load("@rules_closure//closure:defs.bzl", "closure_js_library")

package(default_visibility = ["//visibility:public"])

licenses(["notice"])

closure_js_library(
    name = "abstractdragdrop",
    srcs = ["abstractdragdrop.js"],
    lenient = True,
    deps = [
        ":dragger",
        "//third_party/closure/goog/array",
        "//third_party/closure/goog/asserts",
        "//third_party/closure/goog/dom",
        "//third_party/closure/goog/dom:classlist",
        "//third_party/closure/goog/events",
        "//third_party/closure/goog/events:browserevent",
        "//third_party/closure/goog/events:event",
        "//third_party/closure/goog/events:eventhandler",
        "//third_party/closure/goog/events:eventtarget",
        "//third_party/closure/goog/events:eventtype",
        "//third_party/closure/goog/math:box",
        "//third_party/closure/goog/math:coordinate",
        "//third_party/closure/goog/style",
    ],
)

closure_js_library(
    name = "animation",
    srcs = ["animation.js"],
    lenient = True,
    deps = [
        ":transition",
        ":transitionbase",
        "//third_party/closure/goog/array",
        "//third_party/closure/goog/asserts",
        "//third_party/closure/goog/events:event",
        "//third_party/closure/goog/fx/anim",
    ],
)

closure_js_library(
    name = "dragdropgroup",
    srcs = ["dragdropgroup.js"],
    lenient = True,
    deps = [
        ":abstractdragdrop",
        "//third_party/closure/goog/dom",
    ],
)

closure_js_library(
    name = "dragger",
    srcs = ["dragger.js"],
    lenient = True,
    deps = [
        "//third_party/closure/goog/dom",
        "//third_party/closure/goog/dom:tagname",
        "//third_party/closure/goog/events",
        "//third_party/closure/goog/events:browserevent",
        "//third_party/closure/goog/events:event",
        "//third_party/closure/goog/events:eventhandler",
        "//third_party/closure/goog/events:eventtarget",
        "//third_party/closure/goog/events:eventtype",
        "//third_party/closure/goog/math:coordinate",
        "//third_party/closure/goog/math:rect",
        "//third_party/closure/goog/style",
        "//third_party/closure/goog/style:bidi",
        "//third_party/closure/goog/useragent",
    ],
)

closure_js_library(
    name = "easing",
    srcs = ["easing.js"],
    lenient = True,
)

closure_js_library(
    name = "fx",
    srcs = ["fx.js"],
    lenient = True,
    deps = [
        ":animation",
        ":easing",
        ":transition",
        "//third_party/closure/goog/asserts",
    ],
)

closure_js_library(
    name = "transition",
    srcs = ["transition.js"],
    lenient = True,
)

closure_js_library(
    name = "transitionbase",
    srcs = ["transitionbase.js"],
    lenient = True,
    deps = [
        ":transition",
        "//third_party/closure/goog/events:eventtarget",
    ],
)
