diff --git a/closure/compiler/closure_js_binary.bzl b/closure/compiler/closure_js_binary.bzl index f2f8f61909..f67c682799 100644 --- a/closure/compiler/closure_js_binary.bzl +++ b/closure/compiler/closure_js_binary.bzl @@ -17,7 +17,6 @@ load("//closure/private:defs.bzl", "CLOSURE_WORKER_ATTR", "CLOSURE_LIBRARY_BASE_ATTR", - "CLOSURE_LIBRARY_DEPS_ATTR", "JS_LANGUAGES", "JS_LANGUAGE_IN", "JS_LANGUAGE_OUT_DEFAULT", @@ -43,8 +42,7 @@ def _impl(ctx): ctx.attr.language, ", ".join(JS_LANGUAGES))) deps = unfurl(ctx.attr.deps, provider="closure_js_library") - js = collect_js(deps, ctx.file._closure_library_base, - ctx.file._closure_library_deps, css=ctx.attr.css) + js = collect_js(deps, ctx.files._closure_library_base, css=ctx.attr.css) if not js.srcs: fail("There are no JS source files in the transitive closure") @@ -272,7 +270,6 @@ closure_js_binary = rule( "internal_expect_warnings": attr.bool(default=False), "_ClosureWorker": CLOSURE_WORKER_ATTR, "_closure_library_base": CLOSURE_LIBRARY_BASE_ATTR, - "_closure_library_deps": CLOSURE_LIBRARY_DEPS_ATTR, }, outputs={ "bin": "%{name}.js", diff --git a/closure/compiler/closure_js_deps.bzl b/closure/compiler/closure_js_deps.bzl index 2cdc4b6e2a..55d2bd7291 100644 --- a/closure/compiler/closure_js_deps.bzl +++ b/closure/compiler/closure_js_deps.bzl @@ -24,7 +24,7 @@ load("//closure/private:defs.bzl", def _impl(ctx): deps = unfurl(ctx.attr.deps, provider="closure_js_library") js = collect_js(deps) - closure_root = _dirname(long_path(ctx, ctx.file._closure_library_base)) + closure_root = _dirname(long_path(ctx, ctx.files._closure_library_base[0])) closure_rel = '/'.join(['..' for _ in range(len(closure_root.split('/')))]) outputs = [ctx.outputs.out] # XXX: Other files in same directory will get schlepped in w/o sandboxing. @@ -44,7 +44,7 @@ def _impl(ctx): files=depset(outputs), runfiles=ctx.runfiles( files=outputs + ctx.files.data, - transitive_files=(depset([ctx.file._closure_library_base]) | + transitive_files=(depset(ctx.files._closure_library_base) | collect_runfiles(deps) | collect_runfiles(ctx.attr.data)))) diff --git a/closure/compiler/closure_js_library.bzl b/closure/compiler/closure_js_library.bzl index d43c2f8b1a..a463d5acf1 100644 --- a/closure/compiler/closure_js_library.bzl +++ b/closure/compiler/closure_js_library.bzl @@ -17,7 +17,6 @@ load("//closure/private:defs.bzl", "CLOSURE_WORKER_ATTR", "CLOSURE_LIBRARY_BASE_ATTR", - "CLOSURE_LIBRARY_DEPS_ATTR", "JS_FILE_TYPE", "JS_LANGUAGE_IN", "library_level_checks", @@ -41,8 +40,8 @@ def _maybe_declare_file(actions, file, name): def closure_js_library_impl( actions, label, workspace_name, - srcs, deps, testonly, suppress, - closure_library_base, closure_library_deps, _ClosureWorker, + srcs, deps, testonly, suppress, lenient, + closure_library_base, _ClosureWorker, includes=(), exports=depset(), @@ -60,6 +59,20 @@ def closure_js_library_impl( # TODO(yannic): Figure out how to modify |find_js_module_roots| # so that we won't need |workspace_name| anymore. + if lenient: + suppress = suppress + [ + "analyzerChecks", + "analyzerChecksInternal", + "deprecated", + "legacyGoogScopeRequire", + "lintChecks", + "missingOverride", + "reportUnknownTypes", + "strictCheckTypes", + "superfluousSuppress", + "unnecessaryEscape", + ] + # TODO(yannic): Always use |actions.declare_file()|. info_file = _maybe_declare_file( actions, deprecated_info_file, '%s.pbtxt' % label.name) @@ -74,8 +87,7 @@ def closure_js_library_impl( # Collect all the transitive stuff the child rules have propagated. Bazel has # a special nested set data structure that makes this efficient. - js = collect_js(deps, closure_library_base, closure_library_deps, - bool(srcs), no_closure_library) + js = collect_js(deps, closure_library_base, bool(srcs), no_closure_library) # If closure_js_library depends on closure_css_library, that means # goog.getCssName() is being used in srcs to reference CSS names in the @@ -176,7 +188,7 @@ def closure_js_library_impl( # The list of flags could potentially be very long. So we're going to write # them all to a file which gets loaded automatically by our BazelWorker # middleware. - argfile = create_argfile(actions, label.name, args) + argfile = create_argfile(actions, label.name, args) inputs.append(argfile) # Add a JsChecker edge to the build graph. The command itself will only be @@ -199,6 +211,7 @@ def closure_js_library_impl( output=_maybe_declare_file( actions, deprecated_typecheck_file, '%s_typecheck' % label.name), suppress=suppress, + lenient=lenient, ) # We now export providers to any parent Target. This is considered a public @@ -274,6 +287,8 @@ def _closure_js_library(ctx): fail("Either 'srcs' or 'exports' must be specified") if not ctx.files.srcs and ctx.attr.deps: fail("'srcs' must be set when using 'deps', otherwise consider 'exports'") + if not ctx.files.srcs and (ctx.attr.suppress or ctx.attr.lenient): + fail("'srcs' must be set when using 'suppress' or 'lenient'") if ctx.attr.language: print("The closure_js_library 'language' attribute is now removed and " + "is always set to " + JS_LANGUAGE_IN) @@ -287,9 +302,9 @@ def _closure_js_library(ctx): library = closure_js_library_impl( ctx.actions, ctx.label, ctx.workspace_name, srcs, ctx.attr.deps, ctx.attr.testonly, ctx.attr.suppress, + ctx.attr.lenient, - ctx.file._closure_library_base, - ctx.file._closure_library_deps, + ctx.files._closure_library_base, ctx.executable._ClosureWorker, getattr(ctx.attr, "includes", []), @@ -311,8 +326,7 @@ def _closure_js_library(ctx): runfiles=ctx.runfiles( files=srcs + ctx.files.data, transitive_files=(depset([] if ctx.attr.no_closure_library - else [ctx.file._closure_library_base, - ctx.file._closure_library_deps]) | + else ctx.files._closure_library_base) | collect_runfiles( unfurl(ctx.attr.deps, provider="closure_js_library")) | @@ -337,6 +351,7 @@ closure_js_library = rule( "no_closure_library": attr.bool(), "srcs": attr.label_list(allow_files=JS_FILE_TYPE), "suppress": attr.string_list(), + "lenient": attr.bool(), # deprecated "externs": attr.label_list(allow_files=JS_FILE_TYPE), @@ -347,7 +362,6 @@ closure_js_library = rule( "internal_expect_failure": attr.bool(default=False), "_ClosureWorker": CLOSURE_WORKER_ATTR, "_closure_library_base": CLOSURE_LIBRARY_BASE_ATTR, - "_closure_library_deps": CLOSURE_LIBRARY_DEPS_ATTR, }, # TODO(yannic): Deprecate. # https://docs.bazel.build/versions/master/skylark/lib/globals.html#rule.outputs diff --git a/closure/compiler/test/closure_js_deps/BUILD b/closure/compiler/test/closure_js_deps/BUILD index 49114fa37a..4d1740ae2b 100644 --- a/closure/compiler/test/closure_js_deps/BUILD +++ b/closure/compiler/test/closure_js_deps/BUILD @@ -62,7 +62,7 @@ file_test( closure_js_library( name = "goblin", srcs = ["goblin.js"], - deps = ["//closure/library"], + deps = ["//closure/library/dom"], ) closure_js_deps( diff --git a/closure/library/BUILD b/closure/library/BUILD index bd01b6f7c9..02daca5767 100644 --- a/closure/library/BUILD +++ b/closure/library/BUILD @@ -1,98 +1,217 @@ -# Copyright 2016 The Closure Rules Authors. All rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" package(default_visibility = ["//visibility:public"]) -licenses(["notice"]) # Apache 2.0 +licenses(["notice"]) -load("//closure:defs.bzl", "closure_js_library") load("//closure:defs.bzl", "closure_css_library") +load("//closure:defs.bzl", "closure_js_library") closure_js_library( name = "library", - srcs = ["@com_google_javascript_closure_library//:js_library_files"], - suppress = [ - "JSC_ARRAY_PASSED_TO_GOOG_OBJECT", - "JSC_DEPRECATED_CLASS_REASON", - "JSC_DEPRECATED_PROP", - "JSC_DEPRECATED_PROP_REASON", - "JSC_EXTRA_REQUIRE_WARNING", - "JSC_IMPLICITLY_NULLABLE_JSDOC", - "JSC_INCOMPATIBLE_STRICT_COMPARISON", - "JSC_NTI_ADDING_PROPERTY_TO_NON_OBJECT", - "JSC_NTI_CIRCULAR_TYPEDEF_ENUM", - "JSC_NTI_CONST_PROPERTY_REASSIGNED", - "JSC_NTI_COULD_NOT_INFER_CONST_TYPE", - "JSC_NTI_ENUM_IS_UNION", - "JSC_NTI_FORIN_EXPECTS_OBJECT", - "JSC_NTI_GOOG_BIND_EXPECTS_FUNCTION", - "JSC_NTI_ILLEGAL_PROPERTY_ACCESS", - "JSC_NTI_INEXISTENT_PROPERTY", - "JSC_NTI_INVALID_ARGUMENT_TYPE", - "JSC_NTI_INVALID_CAST", - "JSC_NTI_INVALID_OPERAND_TYPE", - "JSC_NTI_INVALID_PROP_OVERRIDE", - "JSC_NTI_MISTYPED_ASSIGN_RHS", - "JSC_NTI_NOT_UNIQUE_INSTANTIATION", - "JSC_NTI_NULLABLE_DEREFERENCE", - "JSC_NTI_POSSIBLY_INEXISTENT_PROPERTY", - "JSC_NTI_PROPERTY_ACCESS_ON_NONOBJECT", - "JSC_NTI_REDECLARED_PROPERTY", - "JSC_NTI_RETURN_NONDECLARED_TYPE", - "JSC_NTI_UNKNOWN_EXPR_TYPE", - "JSC_NTI_USED_GLOBAL_THIS", - "JSC_NTI_WRONG_ARGUMENT_COUNT", - "JSC_NULLABLE_RETURN_WITH_NAME", - "JSC_UNKNOWN_EXPR_TYPE", - "JSC_UNNECESSARY_ESCAPE", - "JSC_UNUSED_PRIVATE_PROPERTY", - "analyzerChecks", - "lintChecks", - "strictCheckTypes", + exports = [ + "//closure/library/a11y/aria:all_js", + "//closure/library/array:all_js", + "//closure/library/asserts:all_js", + "//closure/library/async:all_js", + "//closure/library/color:all_js", + "//closure/library/crypt:all_js", + "//closure/library/cssom:all_js", + "//closure/library/datasource:all_js", + "//closure/library/date:all_js", + "//closure/library/db:all_js", + "//closure/library/debug:all_js", + "//closure/library/delegate:all_js", + "//closure/library/disposable:all_js", + "//closure/library/dom:all_js", + "//closure/library/editor:all_js", + "//closure/library/events:all_js", + "//closure/library/format:all_js", + "//closure/library/fs:all_js", + "//closure/library/functions:all_js", + "//closure/library/fx:all_js", + "//closure/library/graphics:all_js", + "//closure/library/history:all_js", + "//closure/library/html:all_js", + "//closure/library/i18n:all_js", + "//closure/library/iter:all_js", + "//closure/library/json:all_js", + "//closure/library/loader:all_js", + "//closure/library/locale:all_js", + "//closure/library/log:all_js", + "//closure/library/math:all_js", + "//closure/library/memoize:all_js", + "//closure/library/messaging:all_js", + "//closure/library/module:all_js", + "//closure/library/net:all_js", + "//closure/library/object:all_js", + "//closure/library/positioning:all_js", + "//closure/library/promise:all_js", + "//closure/library/proto:all_js", + "//closure/library/proto2:all_js", + "//closure/library/pubsub:all_js", + "//closure/library/reflect:all_js", + "//closure/library/result:all_js", + "//closure/library/soy:all_js", + "//closure/library/spell:all_js", + "//closure/library/stats:all_js", + "//closure/library/storage:all_js", + "//closure/library/string:all_js", + "//closure/library/structs:all_js", + "//closure/library/style:all_js", + "//closure/library/testing:all_js", + "//closure/library/timer:all_js", + "//closure/library/tweak:all_js", + "//closure/library/uri:all_js", + "//closure/library/useragent:all_js", + "//closure/library/vec:all_js", + "//closure/library/webgl:all_js", + "//closure/library/window:all_js", ], ) closure_js_library( name = "testing", testonly = True, - srcs = ["@com_google_javascript_closure_library//:js_testing_files"], - suppress = [ - "JSC_DEPRECATED_CLASS_REASON", - "JSC_DEPRECATED_PROP", - "JSC_DEPRECATED_PROP_REASON", - "JSC_EXTRA_REQUIRE_WARNING", - "JSC_IMPLICITLY_NULLABLE_JSDOC", - "JSC_MISSING_JSDOC", - "JSC_MISSING_RETURN_JSDOC", - "JSC_MUST_BE_PRIVATE", - "JSC_NULLABLE_RETURN_WITH_NAME", - "JSC_POSSIBLE_INEXISTENT_PROPERTY", - "JSC_PRIMITIVE_OBJECT", - "JSC_REQUIRES_NOT_SORTED", - "JSC_UNDEFINED_VARIABLE", - "JSC_UNKNOWN_EXPR_TYPE", - "JSC_UNUSED_PRIVATE_PROPERTY", - "analyzerChecks", - "lintChecks", - "strictCheckTypes", + exports = [ + "//closure/library:test_module", + "//closure/library:test_module_dep", + "//closure/library/crypt:hashtester", + "//closure/library/events:eventtargettester", + "//closure/library/html:testing", + "//closure/library/promise:testsuiteadapter", + "//closure/library/proto2:test.pb", + "//closure/library/storage:collectablestoragetester", + "//closure/library/storage:storagetester", + "//closure/library/storage/mechanism:iterablemechanismtester", + "//closure/library/storage/mechanism:mechanismseparationtester", + "//closure/library/storage/mechanism:mechanismsharingtester", + "//closure/library/storage/mechanism:mechanismtestdefinition", + "//closure/library/storage/mechanism:mechanismtester", + "//closure/library/style:stylescrollbartester", + "//closure/library/testing:assertionfailure", + "//closure/library/testing:asserts", + "//closure/library/testing:asynctestcase", + "//closure/library/testing:benchmark", + "//closure/library/testing:continuationtestcase", + "//closure/library/testing:deferredtestcase", + "//closure/library/testing:dom", + "//closure/library/testing:expectedfailures", + "//closure/library/testing:functionmock", + "//closure/library/testing:graphics", + "//closure/library/testing:jstdtestcaseadapter", + "//closure/library/testing:jsunit", + "//closure/library/testing:jsunitexception", + "//closure/library/testing:loosemock", + "//closure/library/testing:mock", + "//closure/library/testing:mockclassfactory", + "//closure/library/testing:mockclock", + "//closure/library/testing:mockcontrol", + "//closure/library/testing:mockinterface", + "//closure/library/testing:mockmatchers", + "//closure/library/testing:mockrandom", + "//closure/library/testing:mockrange", + "//closure/library/testing:mockstorage", + "//closure/library/testing:mockuseragent", + "//closure/library/testing:multitestrunner", + "//closure/library/testing:objectpropertystring", + "//closure/library/testing:performancetable", + "//closure/library/testing:performancetimer", + "//closure/library/testing:propertyreplacer", + "//closure/library/testing:pseudorandom", + "//closure/library/testing:recordfunction", + "//closure/library/testing:shardingtestcase", + "//closure/library/testing:singleton", + "//closure/library/testing:stacktrace", + "//closure/library/testing:strictmock", + "//closure/library/testing:testcase", + "//closure/library/testing:testqueue", + "//closure/library/testing:testrunner", + "//closure/library/testing:testsuite", + "//closure/library/testing/async:mockcontrol", + "//closure/library/testing/editor:dom", + "//closure/library/testing/editor:fieldmock", + "//closure/library/testing/editor:testhelper", + "//closure/library/testing/events", + "//closure/library/testing/events:eventobserver", + "//closure/library/testing/events:matchers", + "//closure/library/testing/events:onlinehandler", + "//closure/library/testing/fs", + "//closure/library/testing/fs:blob", + "//closure/library/testing/fs:entry", + "//closure/library/testing/fs:file", + "//closure/library/testing/fs:filereader", + "//closure/library/testing/fs:filesystem", + "//closure/library/testing/fs:filewriter", + "//closure/library/testing/fs:progressevent", + "//closure/library/testing/i18n:asserts", + "//closure/library/testing/messaging:mockmessagechannel", + "//closure/library/testing/messaging:mockmessageevent", + "//closure/library/testing/messaging:mockmessageport", + "//closure/library/testing/messaging:mockportnetwork", + "//closure/library/testing/net:mockiframeio", + "//closure/library/testing/net:xhrio", + "//closure/library/testing/net:xhriopool", + "//closure/library/testing/proto2", + "//closure/library/testing/storage:fakemechanism", + "//closure/library/testing/style", + "//closure/library/testing/style:layoutasserts", + "//closure/library/tweak:testhelpers", + "//closure/library/useragent:useragenttestutil", + ], +) + +closure_js_library( + name = "test_module", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/test_module.js"], + lenient = True, + deps = ["//closure/library:test_module_dep"], +) + +closure_js_library( + name = "test_module_dep", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/test_module_dep.js"], + lenient = True, +) + +filegroup( + name = "base", + srcs = [ + "@com_google_javascript_closure_library//:closure/goog/base.js", + "@com_google_javascript_closure_library//:closure/goog/transitionalforwarddeclarations.js", ], - deps = [":library"], +) + +closure_js_library( + name = "deps", + srcs = ["@com_google_javascript_closure_library//:closure/goog/deps.js"], + lenient = True, +) + +closure_js_library( + name = "transpile", + srcs = ["@com_google_javascript_closure_library//:closure/goog/transpile.js"], + lenient = True, ) closure_css_library( name = "css", - srcs = [ - "@com_google_javascript_closure_library//:css_files", + srcs = ["@com_google_javascript_closure_library//:css_files"], +) + +py_binary( + name = "regenerate", + srcs = ["regenerate.py"], + args = ["$(location @com_google_javascript_closure_library//:closure/goog/base.js)"], + data = [ + "@com_google_javascript_closure_library", + "@com_google_javascript_closure_library//:closure/goog/base.js", + ], + tags = [ + "local", + "manual", ], + visibility = ["//visibility:private"], ) diff --git a/closure/library/a11y/aria/BUILD b/closure/library/a11y/aria/BUILD new file mode 100644 index 0000000000..6e391b9c36 --- /dev/null +++ b/closure/library/a11y/aria/BUILD @@ -0,0 +1,72 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":announcer", + ":aria", + ":attributes", + ":datatables", + ":roles", + ], +) + +closure_js_library( + name = "announcer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/a11y/aria/announcer.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria", + "//closure/library/a11y/aria:attributes", + "//closure/library/disposable", + "//closure/library/dom", + "//closure/library/dom:tagname", + "//closure/library/object", + "//closure/library/timer", + ], +) + +closure_js_library( + name = "aria", + srcs = ["@com_google_javascript_closure_library//:closure/goog/a11y/aria/aria.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria:attributes", + "//closure/library/a11y/aria:datatables", + "//closure/library/a11y/aria:roles", + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:tagname", + "//closure/library/object", + "//closure/library/string", + ], +) + +closure_js_library( + name = "attributes", + srcs = ["@com_google_javascript_closure_library//:closure/goog/a11y/aria/attributes.js"], + lenient = True, +) + +closure_js_library( + name = "datatables", + srcs = ["@com_google_javascript_closure_library//:closure/goog/a11y/aria/datatables.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria:attributes", + "//closure/library/object", + ], +) + +closure_js_library( + name = "roles", + srcs = ["@com_google_javascript_closure_library//:closure/goog/a11y/aria/roles.js"], + lenient = True, +) diff --git a/closure/library/array/BUILD b/closure/library/array/BUILD new file mode 100644 index 0000000000..a98e67f488 --- /dev/null +++ b/closure/library/array/BUILD @@ -0,0 +1,19 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [":array"], +) + +closure_js_library( + name = "array", + srcs = ["@com_google_javascript_closure_library//:closure/goog/array/array.js"], + lenient = True, + deps = ["//closure/library/asserts"], +) diff --git a/closure/library/asserts/BUILD b/closure/library/asserts/BUILD new file mode 100644 index 0000000000..be229166e3 --- /dev/null +++ b/closure/library/asserts/BUILD @@ -0,0 +1,22 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [":asserts"], +) + +closure_js_library( + name = "asserts", + srcs = ["@com_google_javascript_closure_library//:closure/goog/asserts/asserts.js"], + lenient = True, + deps = [ + "//closure/library/debug:error", + "//closure/library/dom:nodetype", + ], +) diff --git a/closure/library/async/BUILD b/closure/library/async/BUILD new file mode 100644 index 0000000000..3e4e98c77f --- /dev/null +++ b/closure/library/async/BUILD @@ -0,0 +1,112 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":animationdelay", + ":conditionaldelay", + ":debouncer", + ":delay", + ":freelist", + ":nexttick", + ":run", + ":throttle", + ":workqueue", + ], +) + +closure_js_library( + name = "animationdelay", + srcs = ["@com_google_javascript_closure_library//:closure/goog/async/animationdelay.js"], + lenient = True, + deps = [ + "//closure/library/disposable", + "//closure/library/events", + "//closure/library/functions", + ], +) + +closure_js_library( + name = "conditionaldelay", + srcs = ["@com_google_javascript_closure_library//:closure/goog/async/conditionaldelay.js"], + lenient = True, + deps = [ + "//closure/library/async:delay", + "//closure/library/disposable", + ], +) + +closure_js_library( + name = "debouncer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/async/debouncer.js"], + lenient = True, + deps = [ + "//closure/library/disposable", + "//closure/library/timer", + ], +) + +closure_js_library( + name = "delay", + srcs = ["@com_google_javascript_closure_library//:closure/goog/async/delay.js"], + lenient = True, + deps = [ + "//closure/library/disposable", + "//closure/library/timer", + ], +) + +closure_js_library( + name = "freelist", + srcs = ["@com_google_javascript_closure_library//:closure/goog/async/freelist.js"], + lenient = True, +) + +closure_js_library( + name = "nexttick", + srcs = ["@com_google_javascript_closure_library//:closure/goog/async/nexttick.js"], + lenient = True, + deps = [ + "//closure/library/debug:entrypointregistry", + "//closure/library/dom:tagname", + "//closure/library/functions", + "//closure/library/labs/useragent:browser", + "//closure/library/labs/useragent:engine", + ], +) + +closure_js_library( + name = "run", + srcs = ["@com_google_javascript_closure_library//:closure/goog/async/run.js"], + lenient = True, + deps = [ + "//closure/library/async:nexttick", + "//closure/library/async:workqueue", + ], +) + +closure_js_library( + name = "throttle", + srcs = ["@com_google_javascript_closure_library//:closure/goog/async/throttle.js"], + lenient = True, + deps = [ + "//closure/library/disposable", + "//closure/library/timer", + ], +) + +closure_js_library( + name = "workqueue", + srcs = ["@com_google_javascript_closure_library//:closure/goog/async/workqueue.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/async:freelist", + ], +) diff --git a/closure/library/bootstrap/BUILD b/closure/library/bootstrap/BUILD new file mode 100644 index 0000000000..a65d51757f --- /dev/null +++ b/closure/library/bootstrap/BUILD @@ -0,0 +1,21 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "nodejs", + srcs = ["@com_google_javascript_closure_library//:closure/goog/bootstrap/nodejs.js"], + lenient = True, + no_closure_library = True, +) + +closure_js_library( + name = "webworkers", + srcs = ["@com_google_javascript_closure_library//:closure/goog/bootstrap/webworkers.js"], + lenient = True, + no_closure_library = True, +) diff --git a/closure/library/closure_library.BUILD b/closure/library/closure_library.BUILD index e0087177a5..853a926161 100644 --- a/closure/library/closure_library.BUILD +++ b/closure/library/closure_library.BUILD @@ -1,969 +1,11 @@ -# Copyright 2016 The Closure Rules Authors. All rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - package(default_visibility = ["//visibility:public"]) -exports_files([ - "closure/goog/base.js", - "closure/goog/deps.js", - "closure/goog/transpile.js", -]) - -filegroup( - name = "js_files", - srcs = [ - "closure/goog/base.js", - "closure/goog/deps.js", - ":js_library_files", - ":js_testing_files", - ], -) - filegroup( - name = "js_library_files", - srcs = [ - # This list was generated by :js_library_files_maker - "closure/goog/a11y/aria/announcer.js", - "closure/goog/a11y/aria/aria.js", - "closure/goog/a11y/aria/attributes.js", - "closure/goog/a11y/aria/datatables.js", - "closure/goog/a11y/aria/roles.js", - "closure/goog/array/array.js", - "closure/goog/asserts/asserts.js", - "closure/goog/async/animationdelay.js", - "closure/goog/async/conditionaldelay.js", - "closure/goog/async/debouncer.js", - "closure/goog/async/delay.js", - "closure/goog/async/freelist.js", - "closure/goog/async/nexttick.js", - "closure/goog/async/run.js", - "closure/goog/async/throttle.js", - "closure/goog/async/workqueue.js", - "closure/goog/bootstrap/nodejs.js", - "closure/goog/bootstrap/webworkers.js", - "closure/goog/color/alpha.js", - "closure/goog/color/color.js", - "closure/goog/color/names.js", - "closure/goog/crypt/aes.js", - "closure/goog/crypt/arc4.js", - "closure/goog/crypt/base64.js", - "closure/goog/crypt/basen.js", - "closure/goog/crypt/blobhasher.js", - "closure/goog/crypt/blockcipher.js", - "closure/goog/crypt/cbc.js", - "closure/goog/crypt/crypt.js", - "closure/goog/crypt/ctr.js", - "closure/goog/crypt/hash.js", - "closure/goog/crypt/hash32.js", - "closure/goog/crypt/hmac.js", - "closure/goog/crypt/md5.js", - "closure/goog/crypt/pbkdf2.js", - "closure/goog/crypt/sha1.js", - "closure/goog/crypt/sha2.js", - "closure/goog/crypt/sha224.js", - "closure/goog/crypt/sha256.js", - "closure/goog/crypt/sha2_64bit.js", - "closure/goog/crypt/sha384.js", - "closure/goog/crypt/sha512.js", - "closure/goog/crypt/sha512_256.js", - "closure/goog/cssom/cssom.js", - "closure/goog/cssom/iframe/style.js", - "closure/goog/datasource/datamanager.js", - "closure/goog/datasource/datasource.js", - "closure/goog/datasource/expr.js", - "closure/goog/datasource/fastdatanode.js", - "closure/goog/datasource/jsdatasource.js", - "closure/goog/datasource/jsondatasource.js", - "closure/goog/datasource/jsxmlhttpdatasource.js", - "closure/goog/datasource/xmldatasource.js", - "closure/goog/date/date.js", - "closure/goog/date/datelike.js", - "closure/goog/date/daterange.js", - "closure/goog/date/duration.js", - "closure/goog/date/relative.js", - "closure/goog/date/relativewithplurals.js", - "closure/goog/date/utcdatetime.js", - "closure/goog/db/cursor.js", - "closure/goog/db/db.js", - "closure/goog/db/error.js", - "closure/goog/db/index.js", - "closure/goog/db/indexeddb.js", - "closure/goog/db/keyrange.js", - "closure/goog/db/objectstore.js", - "closure/goog/db/transaction.js", - "closure/goog/debug/console.js", - "closure/goog/debug/debug.js", - "closure/goog/debug/debugwindow.js", - "closure/goog/debug/devcss/devcss.js", - "closure/goog/debug/devcss/devcssrunner.js", - "closure/goog/debug/divconsole.js", - "closure/goog/debug/entrypointregistry.js", - "closure/goog/debug/error.js", - "closure/goog/debug/errorcontext.js", - "closure/goog/debug/errorhandler.js", - "closure/goog/debug/errorhandlerweakdep.js", - "closure/goog/debug/errorreporter.js", - "closure/goog/debug/fancywindow.js", - "closure/goog/debug/formatter.js", - "closure/goog/debug/fpsdisplay.js", - "closure/goog/debug/logbuffer.js", - "closure/goog/debug/logger.js", - "closure/goog/debug/logrecord.js", - "closure/goog/debug/logrecordserializer.js", - "closure/goog/debug/relativetimeprovider.js", - "closure/goog/debug/tracer.js", - "closure/goog/delegate/delegateregistry.js", - "closure/goog/delegate/delegates.js", - "closure/goog/disposable/disposable.js", - "closure/goog/disposable/idisposable.js", - "closure/goog/dom/abstractmultirange.js", - "closure/goog/dom/abstractrange.js", - "closure/goog/dom/animationframe/animationframe.js", - "closure/goog/dom/animationframe/polyfill.js", - "closure/goog/dom/annotate.js", - "closure/goog/dom/asserts.js", - "closure/goog/dom/attr.js", - "closure/goog/dom/browserfeature.js", - "closure/goog/dom/browserrange/abstractrange.js", - "closure/goog/dom/browserrange/browserrange.js", - "closure/goog/dom/browserrange/geckorange.js", - "closure/goog/dom/browserrange/ierange.js", - "closure/goog/dom/browserrange/operarange.js", - "closure/goog/dom/browserrange/w3crange.js", - "closure/goog/dom/browserrange/webkitrange.js", - "closure/goog/dom/bufferedviewportsizemonitor.js", - "closure/goog/dom/classes.js", - "closure/goog/dom/classlist.js", - "closure/goog/dom/controlrange.js", - "closure/goog/dom/dataset.js", - "closure/goog/dom/dom.js", - "closure/goog/dom/fontsizemonitor.js", - "closure/goog/dom/forms.js", - "closure/goog/dom/fullscreen.js", - "closure/goog/dom/htmlelement.js", - "closure/goog/dom/iframe.js", - "closure/goog/dom/inputtype.js", - "closure/goog/dom/iter.js", - "closure/goog/dom/multirange.js", - "closure/goog/dom/nodeiterator.js", - "closure/goog/dom/nodeoffset.js", - "closure/goog/dom/nodetype.js", - "closure/goog/dom/pattern/abstractpattern.js", - "closure/goog/dom/pattern/allchildren.js", - "closure/goog/dom/pattern/callback/callback.js", - "closure/goog/dom/pattern/callback/counter.js", - "closure/goog/dom/pattern/callback/test.js", - "closure/goog/dom/pattern/childmatches.js", - "closure/goog/dom/pattern/endtag.js", - "closure/goog/dom/pattern/fulltag.js", - "closure/goog/dom/pattern/matcher.js", - "closure/goog/dom/pattern/nodetype.js", - "closure/goog/dom/pattern/pattern.js", - "closure/goog/dom/pattern/repeat.js", - "closure/goog/dom/pattern/sequence.js", - "closure/goog/dom/pattern/starttag.js", - "closure/goog/dom/pattern/tag.js", - "closure/goog/dom/pattern/text.js", - "closure/goog/dom/range.js", - "closure/goog/dom/rangeendpoint.js", - "closure/goog/dom/safe.js", - "closure/goog/dom/savedcaretrange.js", - "closure/goog/dom/savedrange.js", - "closure/goog/dom/selection.js", - "closure/goog/dom/tagiterator.js", - "closure/goog/dom/tagname.js", - "closure/goog/dom/tags.js", - "closure/goog/dom/textassert.js", - "closure/goog/dom/textrange.js", - "closure/goog/dom/textrangeiterator.js", - "closure/goog/dom/uri.js", - "closure/goog/dom/vendor.js", - "closure/goog/dom/viewportsizemonitor.js", - "closure/goog/dom/xml.js", - "closure/goog/editor/browserfeature.js", - "closure/goog/editor/clicktoeditwrapper.js", - "closure/goog/editor/command.js", - "closure/goog/editor/contenteditablefield.js", - "closure/goog/editor/defines.js", - "closure/goog/editor/field.js", - "closure/goog/editor/focus.js", - "closure/goog/editor/icontent.js", - "closure/goog/editor/link.js", - "closure/goog/editor/node.js", - "closure/goog/editor/plugin.js", - "closure/goog/editor/plugins/abstractbubbleplugin.js", - "closure/goog/editor/plugins/abstractdialogplugin.js", - "closure/goog/editor/plugins/abstracttabhandler.js", - "closure/goog/editor/plugins/basictextformatter.js", - "closure/goog/editor/plugins/blockquote.js", - "closure/goog/editor/plugins/emoticons.js", - "closure/goog/editor/plugins/enterhandler.js", - "closure/goog/editor/plugins/firststrong.js", - "closure/goog/editor/plugins/headerformatter.js", - "closure/goog/editor/plugins/linkbubble.js", - "closure/goog/editor/plugins/linkdialogplugin.js", - "closure/goog/editor/plugins/linkshortcutplugin.js", - "closure/goog/editor/plugins/listtabhandler.js", - "closure/goog/editor/plugins/loremipsum.js", - "closure/goog/editor/plugins/removeformatting.js", - "closure/goog/editor/plugins/spacestabhandler.js", - "closure/goog/editor/plugins/tableeditor.js", - "closure/goog/editor/plugins/tagonenterhandler.js", - "closure/goog/editor/plugins/undoredo.js", - "closure/goog/editor/plugins/undoredomanager.js", - "closure/goog/editor/plugins/undoredostate.js", - "closure/goog/editor/range.js", - "closure/goog/editor/seamlessfield.js", - "closure/goog/editor/style.js", - "closure/goog/editor/table.js", - "closure/goog/events/actioneventwrapper.js", - "closure/goog/events/actionhandler.js", - "closure/goog/events/browserevent.js", - "closure/goog/events/browserfeature.js", - "closure/goog/events/event.js", - "closure/goog/events/eventhandler.js", - "closure/goog/events/eventid.js", - "closure/goog/events/events.js", - "closure/goog/events/eventtarget.js", - "closure/goog/events/eventtype.js", - "closure/goog/events/eventwrapper.js", - "closure/goog/events/filedrophandler.js", - "closure/goog/events/focushandler.js", - "closure/goog/events/imehandler.js", - "closure/goog/events/inputhandler.js", - "closure/goog/events/keycodes.js", - "closure/goog/events/keyhandler.js", - "closure/goog/events/keynames.js", - "closure/goog/events/keys.js", - "closure/goog/events/listenable.js", - "closure/goog/events/listener.js", - "closure/goog/events/listenermap.js", - "closure/goog/events/mousewheelhandler.js", - "closure/goog/events/onlinehandler.js", - "closure/goog/events/pastehandler.js", - "closure/goog/events/wheelevent.js", - "closure/goog/events/wheelhandler.js", - "closure/goog/format/emailaddress.js", - "closure/goog/format/format.js", - "closure/goog/format/htmlprettyprinter.js", - "closure/goog/format/internationalizedemailaddress.js", - "closure/goog/format/jsonprettyprinter.js", - "closure/goog/fs/entry.js", - "closure/goog/fs/entryimpl.js", - "closure/goog/fs/error.js", - "closure/goog/fs/filereader.js", - "closure/goog/fs/filesaver.js", - "closure/goog/fs/filesystem.js", - "closure/goog/fs/filesystemimpl.js", - "closure/goog/fs/filewriter.js", - "closure/goog/fs/fs.js", - "closure/goog/fs/progressevent.js", - "closure/goog/fs/url.js", - "closure/goog/functions/functions.js", - "closure/goog/fx/abstractdragdrop.js", - "closure/goog/fx/anim/anim.js", - "closure/goog/fx/animation.js", - "closure/goog/fx/animationqueue.js", - "closure/goog/fx/css3/fx.js", - "closure/goog/fx/css3/transition.js", - "closure/goog/fx/cssspriteanimation.js", - "closure/goog/fx/dom.js", - "closure/goog/fx/dragdrop.js", - "closure/goog/fx/dragdropgroup.js", - "closure/goog/fx/dragger.js", - "closure/goog/fx/draglistgroup.js", - "closure/goog/fx/dragscrollsupport.js", - "closure/goog/fx/easing.js", - "closure/goog/fx/fx.js", - "closure/goog/fx/transition.js", - "closure/goog/fx/transitionbase.js", - "closure/goog/graphics/abstractgraphics.js", - "closure/goog/graphics/affinetransform.js", - "closure/goog/graphics/canvaselement.js", - "closure/goog/graphics/canvasgraphics.js", - "closure/goog/graphics/element.js", - "closure/goog/graphics/ellipseelement.js", - "closure/goog/graphics/ext/coordinates.js", - "closure/goog/graphics/ext/element.js", - "closure/goog/graphics/ext/ellipse.js", - "closure/goog/graphics/ext/ext.js", - "closure/goog/graphics/ext/graphics.js", - "closure/goog/graphics/ext/group.js", - "closure/goog/graphics/ext/image.js", - "closure/goog/graphics/ext/path.js", - "closure/goog/graphics/ext/rectangle.js", - "closure/goog/graphics/ext/shape.js", - "closure/goog/graphics/ext/strokeandfillelement.js", - "closure/goog/graphics/fill.js", - "closure/goog/graphics/font.js", - "closure/goog/graphics/graphics.js", - "closure/goog/graphics/groupelement.js", - "closure/goog/graphics/imageelement.js", - "closure/goog/graphics/lineargradient.js", - "closure/goog/graphics/path.js", - "closure/goog/graphics/pathelement.js", - "closure/goog/graphics/paths.js", - "closure/goog/graphics/rectelement.js", - "closure/goog/graphics/solidfill.js", - "closure/goog/graphics/stroke.js", - "closure/goog/graphics/strokeandfillelement.js", - "closure/goog/graphics/svgelement.js", - "closure/goog/graphics/svggraphics.js", - "closure/goog/graphics/textelement.js", - "closure/goog/graphics/vmlelement.js", - "closure/goog/graphics/vmlgraphics.js", - "closure/goog/history/event.js", - "closure/goog/history/eventtype.js", - "closure/goog/history/history.js", - "closure/goog/history/html5history.js", - "closure/goog/html/cssspecificity.js", - "closure/goog/html/flash.js", - "closure/goog/html/legacyconversions.js", - "closure/goog/html/safehtml.js", - "closure/goog/html/safehtmlformatter.js", - "closure/goog/html/safescript.js", - "closure/goog/html/safestyle.js", - "closure/goog/html/safestylesheet.js", - "closure/goog/html/safeurl.js", - "closure/goog/html/sanitizer/attributewhitelist.js", - "closure/goog/html/sanitizer/csssanitizer.js", - "closure/goog/html/sanitizer/elementweakmap.js", - "closure/goog/html/sanitizer/htmlsanitizer.js", - "closure/goog/html/sanitizer/noclobber.js", - "closure/goog/html/sanitizer/safedomtreeprocessor.js", - "closure/goog/html/sanitizer/tagblacklist.js", - "closure/goog/html/sanitizer/tagwhitelist.js", - "closure/goog/html/sanitizer/unsafe.js", - "closure/goog/html/silverlight.js", - "closure/goog/html/textextractor.js", - "closure/goog/html/trustedresourceurl.js", - "closure/goog/html/uncheckedconversions.js", - "closure/goog/html/utils.js", - "closure/goog/i18n/bidi.js", - "closure/goog/i18n/bidiformatter.js", - "closure/goog/i18n/charlistdecompressor.js", - "closure/goog/i18n/charpickerdata.js", - "closure/goog/i18n/collation.js", - "closure/goog/i18n/compactnumberformatsymbols.js", - "closure/goog/i18n/compactnumberformatsymbolsext.js", - "closure/goog/i18n/currency.js", - "closure/goog/i18n/currencycodemap.js", - "closure/goog/i18n/dateintervalformat.js", - "closure/goog/i18n/dateintervalpatterns.js", - "closure/goog/i18n/dateintervalpatternsext.js", - "closure/goog/i18n/dateintervalsymbols.js", - "closure/goog/i18n/dateintervalsymbolsext.js", - "closure/goog/i18n/datetimeformat.js", - "closure/goog/i18n/datetimeparse.js", - "closure/goog/i18n/datetimepatterns.js", - "closure/goog/i18n/datetimepatternsext.js", - "closure/goog/i18n/datetimesymbols.js", - "closure/goog/i18n/datetimesymbolsext.js", - "closure/goog/i18n/graphemebreak.js", - "closure/goog/i18n/messageformat.js", - "closure/goog/i18n/mime.js", - "closure/goog/i18n/numberformat.js", - "closure/goog/i18n/numberformatsymbols.js", - "closure/goog/i18n/numberformatsymbolsext.js", - "closure/goog/i18n/ordinalrules.js", - "closure/goog/i18n/pluralrules.js", - "closure/goog/i18n/timezone.js", - "closure/goog/i18n/uchar.js", - "closure/goog/i18n/uchar/localnamefetcher.js", - "closure/goog/i18n/uchar/namefetcher.js", - "closure/goog/i18n/uchar/remotenamefetcher.js", - "closure/goog/i18n/ucharnames.js", - "closure/goog/iter/es6.js", - "closure/goog/iter/iter.js", - "closure/goog/json/hybrid.js", - "closure/goog/json/json.js", - "closure/goog/json/nativejsonprocessor.js", - "closure/goog/json/processor.js", - "closure/goog/labs/dom/pagevisibilitymonitor.js", - "closure/goog/labs/events/nondisposableeventtarget.js", - "closure/goog/labs/events/touch.js", - "closure/goog/labs/format/csv.js", - "closure/goog/labs/i18n/listformat.js", - "closure/goog/labs/i18n/listsymbols.js", - "closure/goog/labs/i18n/listsymbolsext.js", - "closure/goog/labs/iterable/iterable.js", - "closure/goog/labs/net/image.js", - "closure/goog/labs/net/webchannel.js", - "closure/goog/labs/net/webchannel/basetestchannel.js", - "closure/goog/labs/net/webchannel/channel.js", - "closure/goog/labs/net/webchannel/channelrequest.js", - "closure/goog/labs/net/webchannel/connectionstate.js", - "closure/goog/labs/net/webchannel/environment.js", - "closure/goog/labs/net/webchannel/forwardchannelrequestpool.js", - "closure/goog/labs/net/webchannel/netutils.js", - "closure/goog/labs/net/webchannel/requeststats.js", - "closure/goog/labs/net/webchannel/webchannelbase.js", - "closure/goog/labs/net/webchannel/webchannelbasetransport.js", - "closure/goog/labs/net/webchannel/webchanneldebug.js", - "closure/goog/labs/net/webchannel/wire.js", - "closure/goog/labs/net/webchannel/wirev8.js", - "closure/goog/labs/net/webchanneltransport.js", - "closure/goog/labs/net/webchanneltransportfactory.js", - "closure/goog/labs/net/xhr.js", - "closure/goog/labs/pubsub/broadcastpubsub.js", - "closure/goog/labs/storage/boundedcollectablestorage.js", - "closure/goog/labs/structs/multimap.js", - "closure/goog/labs/style/pixeldensitymonitor.js", - "closure/goog/labs/useragent/browser.js", - "closure/goog/labs/useragent/device.js", - "closure/goog/labs/useragent/engine.js", - "closure/goog/labs/useragent/platform.js", - "closure/goog/labs/useragent/util.js", - "closure/goog/labs/useragent/verifier.js", - "closure/goog/loader/abstractmodulemanager.js", - "closure/goog/loader/activemodulemanager.js", - "closure/goog/locale/countries.js", - "closure/goog/locale/defaultlocalenameconstants.js", - "closure/goog/locale/genericfontnames.js", - "closure/goog/locale/genericfontnamesdata.js", - "closure/goog/locale/locale.js", - "closure/goog/locale/nativenameconstants.js", - "closure/goog/locale/scriptToLanguages.js", - "closure/goog/locale/timezonedetection.js", - "closure/goog/locale/timezonefingerprint.js", - "closure/goog/locale/timezonelist.js", - "closure/goog/log/log.js", - "closure/goog/math/affinetransform.js", - "closure/goog/math/bezier.js", - "closure/goog/math/box.js", - "closure/goog/math/coordinate.js", - "closure/goog/math/coordinate3.js", - "closure/goog/math/exponentialbackoff.js", - "closure/goog/math/integer.js", - "closure/goog/math/interpolator/interpolator1.js", - "closure/goog/math/interpolator/linear1.js", - "closure/goog/math/interpolator/pchip1.js", - "closure/goog/math/interpolator/spline1.js", - "closure/goog/math/irect.js", - "closure/goog/math/line.js", - "closure/goog/math/long.js", - "closure/goog/math/math.js", - "closure/goog/math/matrix.js", - "closure/goog/math/path.js", - "closure/goog/math/paths.js", - "closure/goog/math/range.js", - "closure/goog/math/rangeset.js", - "closure/goog/math/rect.js", - "closure/goog/math/size.js", - "closure/goog/math/tdma.js", - "closure/goog/math/vec2.js", - "closure/goog/math/vec3.js", - "closure/goog/memoize/memoize.js", - "closure/goog/messaging/abstractchannel.js", - "closure/goog/messaging/bufferedchannel.js", - "closure/goog/messaging/deferredchannel.js", - "closure/goog/messaging/loggerclient.js", - "closure/goog/messaging/loggerserver.js", - "closure/goog/messaging/messagechannel.js", - "closure/goog/messaging/messaging.js", - "closure/goog/messaging/multichannel.js", - "closure/goog/messaging/portcaller.js", - "closure/goog/messaging/portchannel.js", - "closure/goog/messaging/portnetwork.js", - "closure/goog/messaging/portoperator.js", - "closure/goog/messaging/respondingchannel.js", - "closure/goog/messaging/testdata/portchannel_worker.js", - "closure/goog/messaging/testdata/portnetwork_worker1.js", - "closure/goog/messaging/testdata/portnetwork_worker2.js", - "closure/goog/module/abstractmoduleloader.js", - "closure/goog/module/basemodule.js", - "closure/goog/module/loader.js", - "closure/goog/module/module.js", - "closure/goog/module/moduleinfo.js", - "closure/goog/module/moduleloadcallback.js", - "closure/goog/module/moduleloader.js", - "closure/goog/module/modulemanager.js", - "closure/goog/net/browserchannel.js", - "closure/goog/net/browsertestchannel.js", - "closure/goog/net/bulkloader.js", - "closure/goog/net/bulkloaderhelper.js", - "closure/goog/net/channeldebug.js", - "closure/goog/net/channelrequest.js", - "closure/goog/net/cookies.js", - "closure/goog/net/corsxmlhttpfactory.js", - "closure/goog/net/crossdomainrpc.js", - "closure/goog/net/errorcode.js", - "closure/goog/net/eventtype.js", - "closure/goog/net/fetchxmlhttpfactory.js", - "closure/goog/net/filedownloader.js", - "closure/goog/net/httpstatus.js", - "closure/goog/net/httpstatusname.js", - "closure/goog/net/iframeio.js", - "closure/goog/net/iframeloadmonitor.js", - "closure/goog/net/imageloader.js", - "closure/goog/net/ipaddress.js", - "closure/goog/net/jsloader.js", - "closure/goog/net/jsonp.js", - "closure/goog/net/mockiframeio.js", - "closure/goog/net/multiiframeloadmonitor.js", - "closure/goog/net/networkstatusmonitor.js", - "closure/goog/net/networktester.js", - "closure/goog/net/rpc/httpcors.js", - "closure/goog/net/streams/base64pbstreamparser.js", - "closure/goog/net/streams/base64streamdecoder.js", - "closure/goog/net/streams/jsonstreamparser.js", - "closure/goog/net/streams/nodereadablestream.js", - "closure/goog/net/streams/pbjsonstreamparser.js", - "closure/goog/net/streams/pbstreamparser.js", - "closure/goog/net/streams/streamfactory.js", - "closure/goog/net/streams/streamparser.js", - "closure/goog/net/streams/utils.js", - "closure/goog/net/streams/xhrnodereadablestream.js", - "closure/goog/net/streams/xhrstreamreader.js", - "closure/goog/net/tmpnetwork.js", - "closure/goog/net/websocket.js", - "closure/goog/net/wrapperxmlhttpfactory.js", - "closure/goog/net/xhrio.js", - "closure/goog/net/xhriopool.js", - "closure/goog/net/xhrlike.js", - "closure/goog/net/xhrmanager.js", - "closure/goog/net/xmlhttp.js", - "closure/goog/net/xmlhttpfactory.js", - "closure/goog/net/xpc/crosspagechannel.js", - "closure/goog/net/xpc/crosspagechannelrole.js", - "closure/goog/net/xpc/directtransport.js", - "closure/goog/net/xpc/frameelementmethodtransport.js", - "closure/goog/net/xpc/iframepollingtransport.js", - "closure/goog/net/xpc/iframerelaytransport.js", - "closure/goog/net/xpc/nativemessagingtransport.js", - "closure/goog/net/xpc/nixtransport.js", - "closure/goog/net/xpc/relay.js", - "closure/goog/net/xpc/transport.js", - "closure/goog/net/xpc/xpc.js", - "closure/goog/object/object.js", - "closure/goog/positioning/absoluteposition.js", - "closure/goog/positioning/abstractposition.js", - "closure/goog/positioning/anchoredposition.js", - "closure/goog/positioning/anchoredviewportposition.js", - "closure/goog/positioning/clientposition.js", - "closure/goog/positioning/menuanchoredposition.js", - "closure/goog/positioning/positioning.js", - "closure/goog/positioning/viewportclientposition.js", - "closure/goog/positioning/viewportposition.js", - "closure/goog/promise/promise.js", - "closure/goog/promise/resolver.js", - "closure/goog/promise/thenable.js", - "closure/goog/proto/proto.js", - "closure/goog/proto/serializer.js", - "closure/goog/proto2/descriptor.js", - "closure/goog/proto2/fielddescriptor.js", - "closure/goog/proto2/lazydeserializer.js", - "closure/goog/proto2/message.js", - "closure/goog/proto2/objectserializer.js", - "closure/goog/proto2/pbliteserializer.js", - "closure/goog/proto2/serializer.js", - "closure/goog/proto2/textformatserializer.js", - "closure/goog/proto2/util.js", - "closure/goog/pubsub/pubsub.js", - "closure/goog/pubsub/topicid.js", - "closure/goog/pubsub/typedpubsub.js", - "closure/goog/reflect/reflect.js", - "closure/goog/result/deferredadaptor.js", - "closure/goog/result/dependentresult.js", - "closure/goog/result/result_interface.js", - "closure/goog/result/resultutil.js", - "closure/goog/result/simpleresult.js", - "closure/goog/soy/data.js", - "closure/goog/soy/renderer.js", - "closure/goog/soy/soy.js", - "closure/goog/spell/spellcheck.js", - "closure/goog/stats/basicstat.js", - "closure/goog/storage/collectablestorage.js", - "closure/goog/storage/encryptedstorage.js", - "closure/goog/storage/errorcode.js", - "closure/goog/storage/expiringstorage.js", - "closure/goog/storage/mechanism/errorcode.js", - "closure/goog/storage/mechanism/errorhandlingmechanism.js", - "closure/goog/storage/mechanism/html5localstorage.js", - "closure/goog/storage/mechanism/html5sessionstorage.js", - "closure/goog/storage/mechanism/html5webstorage.js", - "closure/goog/storage/mechanism/ieuserdata.js", - "closure/goog/storage/mechanism/iterablemechanism.js", - "closure/goog/storage/mechanism/mechanism.js", - "closure/goog/storage/mechanism/mechanismfactory.js", - "closure/goog/storage/mechanism/prefixedmechanism.js", - "closure/goog/storage/richstorage.js", - "closure/goog/storage/storage.js", - "closure/goog/string/const.js", - "closure/goog/string/linkify.js", - "closure/goog/string/newlines.js", - "closure/goog/string/parser.js", - "closure/goog/string/path.js", - "closure/goog/string/string.js", - "closure/goog/string/stringbuffer.js", - "closure/goog/string/stringformat.js", - "closure/goog/string/stringifier.js", - "closure/goog/string/typedstring.js", - "closure/goog/structs/avltree.js", - "closure/goog/structs/circularbuffer.js", - "closure/goog/structs/collection.js", - "closure/goog/structs/heap.js", - "closure/goog/structs/inversionmap.js", - "closure/goog/structs/linkedmap.js", - "closure/goog/structs/map.js", - "closure/goog/structs/node.js", - "closure/goog/structs/pool.js", - "closure/goog/structs/prioritypool.js", - "closure/goog/structs/priorityqueue.js", - "closure/goog/structs/quadtree.js", - "closure/goog/structs/queue.js", - "closure/goog/structs/set.js", - "closure/goog/structs/simplepool.js", - "closure/goog/structs/stringset.js", - "closure/goog/structs/structs.js", - "closure/goog/structs/treenode.js", - "closure/goog/structs/trie.js", - "closure/goog/style/bidi.js", - "closure/goog/style/cursor.js", - "closure/goog/style/style.js", - "closure/goog/style/transform.js", - "closure/goog/style/transition.js", - "closure/goog/timer/timer.js", - "closure/goog/transitionalforwarddeclarations.js", - "closure/goog/tweak/entries.js", - "closure/goog/tweak/registry.js", - "closure/goog/tweak/tweak.js", - "closure/goog/tweak/tweakui.js", - "closure/goog/ui/abstractspellchecker.js", - "closure/goog/ui/ac/ac.js", - "closure/goog/ui/ac/arraymatcher.js", - "closure/goog/ui/ac/autocomplete.js", - "closure/goog/ui/ac/cachingmatcher.js", - "closure/goog/ui/ac/inputhandler.js", - "closure/goog/ui/ac/remote.js", - "closure/goog/ui/ac/remotearraymatcher.js", - "closure/goog/ui/ac/renderer.js", - "closure/goog/ui/ac/renderoptions.js", - "closure/goog/ui/ac/richinputhandler.js", - "closure/goog/ui/ac/richremote.js", - "closure/goog/ui/ac/richremotearraymatcher.js", - "closure/goog/ui/activitymonitor.js", - "closure/goog/ui/advancedtooltip.js", - "closure/goog/ui/animatedzippy.js", - "closure/goog/ui/attachablemenu.js", - "closure/goog/ui/bidiinput.js", - "closure/goog/ui/bubble.js", - "closure/goog/ui/button.js", - "closure/goog/ui/buttonrenderer.js", - "closure/goog/ui/buttonside.js", - "closure/goog/ui/charcounter.js", - "closure/goog/ui/charpicker.js", - "closure/goog/ui/checkbox.js", - "closure/goog/ui/checkboxmenuitem.js", - "closure/goog/ui/checkboxrenderer.js", - "closure/goog/ui/colormenubutton.js", - "closure/goog/ui/colormenubuttonrenderer.js", - "closure/goog/ui/colorpalette.js", - "closure/goog/ui/colorpicker.js", - "closure/goog/ui/combobox.js", - "closure/goog/ui/component.js", - "closure/goog/ui/container.js", - "closure/goog/ui/containerrenderer.js", - "closure/goog/ui/containerscroller.js", - "closure/goog/ui/control.js", - "closure/goog/ui/controlcontent.js", - "closure/goog/ui/controlrenderer.js", - "closure/goog/ui/cookieeditor.js", - "closure/goog/ui/css3buttonrenderer.js", - "closure/goog/ui/css3menubuttonrenderer.js", - "closure/goog/ui/cssnames.js", - "closure/goog/ui/custombutton.js", - "closure/goog/ui/custombuttonrenderer.js", - "closure/goog/ui/customcolorpalette.js", - "closure/goog/ui/datepicker.js", - "closure/goog/ui/datepickerrenderer.js", - "closure/goog/ui/decorate.js", - "closure/goog/ui/defaultdatepickerrenderer.js", - "closure/goog/ui/dialog.js", - "closure/goog/ui/dimensionpicker.js", - "closure/goog/ui/dimensionpickerrenderer.js", - "closure/goog/ui/dragdropdetector.js", - "closure/goog/ui/drilldownrow.js", - "closure/goog/ui/editor/abstractdialog.js", - "closure/goog/ui/editor/bubble.js", - "closure/goog/ui/editor/defaulttoolbar.js", - "closure/goog/ui/editor/linkdialog.js", - "closure/goog/ui/editor/messages.js", - "closure/goog/ui/editor/tabpane.js", - "closure/goog/ui/editor/toolbarcontroller.js", - "closure/goog/ui/editor/toolbarfactory.js", - "closure/goog/ui/emoji/emoji.js", - "closure/goog/ui/emoji/emojipalette.js", - "closure/goog/ui/emoji/emojipaletterenderer.js", - "closure/goog/ui/emoji/emojipicker.js", - "closure/goog/ui/emoji/popupemojipicker.js", - "closure/goog/ui/emoji/progressiveemojipaletterenderer.js", - "closure/goog/ui/emoji/spriteinfo.js", - "closure/goog/ui/filteredmenu.js", - "closure/goog/ui/filterobservingmenuitem.js", - "closure/goog/ui/filterobservingmenuitemrenderer.js", - "closure/goog/ui/flatbuttonrenderer.js", - "closure/goog/ui/flatmenubuttonrenderer.js", - "closure/goog/ui/formpost.js", - "closure/goog/ui/gauge.js", - "closure/goog/ui/gaugetheme.js", - "closure/goog/ui/hovercard.js", - "closure/goog/ui/hsvapalette.js", - "closure/goog/ui/hsvpalette.js", - "closure/goog/ui/idgenerator.js", - "closure/goog/ui/idletimer.js", - "closure/goog/ui/iframemask.js", - "closure/goog/ui/imagelessbuttonrenderer.js", - "closure/goog/ui/imagelessmenubuttonrenderer.js", - "closure/goog/ui/inputdatepicker.js", - "closure/goog/ui/itemevent.js", - "closure/goog/ui/keyboardshortcuthandler.js", - "closure/goog/ui/labelinput.js", - "closure/goog/ui/linkbuttonrenderer.js", - "closure/goog/ui/media/flashobject.js", - "closure/goog/ui/media/flickr.js", - "closure/goog/ui/media/googlevideo.js", - "closure/goog/ui/media/media.js", - "closure/goog/ui/media/mediamodel.js", - "closure/goog/ui/media/mp3.js", - "closure/goog/ui/media/photo.js", - "closure/goog/ui/media/picasa.js", - "closure/goog/ui/media/vimeo.js", - "closure/goog/ui/media/youtube.js", - "closure/goog/ui/menu.js", - "closure/goog/ui/menubar.js", - "closure/goog/ui/menubardecorator.js", - "closure/goog/ui/menubarrenderer.js", - "closure/goog/ui/menubase.js", - "closure/goog/ui/menubutton.js", - "closure/goog/ui/menubuttonrenderer.js", - "closure/goog/ui/menuheader.js", - "closure/goog/ui/menuheaderrenderer.js", - "closure/goog/ui/menuitem.js", - "closure/goog/ui/menuitemrenderer.js", - "closure/goog/ui/menurenderer.js", - "closure/goog/ui/menuseparator.js", - "closure/goog/ui/menuseparatorrenderer.js", - "closure/goog/ui/mockactivitymonitor.js", - "closure/goog/ui/modalariavisibilityhelper.js", - "closure/goog/ui/modalpopup.js", - "closure/goog/ui/nativebuttonrenderer.js", - "closure/goog/ui/option.js", - "closure/goog/ui/palette.js", - "closure/goog/ui/paletterenderer.js", - "closure/goog/ui/plaintextspellchecker.js", - "closure/goog/ui/popup.js", - "closure/goog/ui/popupbase.js", - "closure/goog/ui/popupcolorpicker.js", - "closure/goog/ui/popupdatepicker.js", - "closure/goog/ui/popupmenu.js", - "closure/goog/ui/progressbar.js", - "closure/goog/ui/prompt.js", - "closure/goog/ui/rangemodel.js", - "closure/goog/ui/ratings.js", - "closure/goog/ui/registry.js", - "closure/goog/ui/richtextspellchecker.js", - "closure/goog/ui/roundedpanel.js", - "closure/goog/ui/roundedtabrenderer.js", - "closure/goog/ui/scrollfloater.js", - "closure/goog/ui/select.js", - "closure/goog/ui/selectionmenubutton.js", - "closure/goog/ui/selectionmodel.js", - "closure/goog/ui/separator.js", - "closure/goog/ui/serverchart.js", - "closure/goog/ui/slider.js", - "closure/goog/ui/sliderbase.js", - "closure/goog/ui/splitpane.js", - "closure/goog/ui/style/app/buttonrenderer.js", - "closure/goog/ui/style/app/menubuttonrenderer.js", - "closure/goog/ui/style/app/primaryactionbuttonrenderer.js", - "closure/goog/ui/submenu.js", - "closure/goog/ui/submenurenderer.js", - "closure/goog/ui/tab.js", - "closure/goog/ui/tabbar.js", - "closure/goog/ui/tabbarrenderer.js", - "closure/goog/ui/tablesorter.js", - "closure/goog/ui/tabpane.js", - "closure/goog/ui/tabrenderer.js", - "closure/goog/ui/textarea.js", - "closure/goog/ui/textarearenderer.js", - "closure/goog/ui/togglebutton.js", - "closure/goog/ui/toolbar.js", - "closure/goog/ui/toolbarbutton.js", - "closure/goog/ui/toolbarbuttonrenderer.js", - "closure/goog/ui/toolbarcolormenubutton.js", - "closure/goog/ui/toolbarcolormenubuttonrenderer.js", - "closure/goog/ui/toolbarmenubutton.js", - "closure/goog/ui/toolbarmenubuttonrenderer.js", - "closure/goog/ui/toolbarrenderer.js", - "closure/goog/ui/toolbarselect.js", - "closure/goog/ui/toolbarseparator.js", - "closure/goog/ui/toolbarseparatorrenderer.js", - "closure/goog/ui/toolbartogglebutton.js", - "closure/goog/ui/tooltip.js", - "closure/goog/ui/tree/basenode.js", - "closure/goog/ui/tree/treecontrol.js", - "closure/goog/ui/tree/treenode.js", - "closure/goog/ui/tree/typeahead.js", - "closure/goog/ui/tristatemenuitem.js", - "closure/goog/ui/tristatemenuitemrenderer.js", - "closure/goog/ui/twothumbslider.js", - "closure/goog/ui/zippy.js", - "closure/goog/uri/uri.js", - "closure/goog/uri/utils.js", - "closure/goog/useragent/adobereader.js", - "closure/goog/useragent/flash.js", - "closure/goog/useragent/iphoto.js", - "closure/goog/useragent/jscript.js", - "closure/goog/useragent/keyboard.js", - "closure/goog/useragent/platform.js", - "closure/goog/useragent/product.js", - "closure/goog/useragent/product_isversion.js", - "closure/goog/useragent/useragent.js", - "closure/goog/vec/float32array.js", - "closure/goog/vec/float64array.js", - "closure/goog/vec/mat3.js", - "closure/goog/vec/mat3d.js", - "closure/goog/vec/mat3f.js", - "closure/goog/vec/mat4.js", - "closure/goog/vec/mat4d.js", - "closure/goog/vec/mat4f.js", - "closure/goog/vec/quaternion.js", - "closure/goog/vec/ray.js", - "closure/goog/vec/vec.js", - "closure/goog/vec/vec2.js", - "closure/goog/vec/vec2d.js", - "closure/goog/vec/vec2f.js", - "closure/goog/vec/vec3.js", - "closure/goog/vec/vec3d.js", - "closure/goog/vec/vec3f.js", - "closure/goog/vec/vec4.js", - "closure/goog/vec/vec4d.js", - "closure/goog/vec/vec4f.js", - "closure/goog/webgl/webgl.js", - "closure/goog/window/window.js", - "third_party/closure/goog/base.js", - "third_party/closure/goog/caja/string/html/htmlparser.js", - "third_party/closure/goog/deps.js", - "third_party/closure/goog/dojo/dom/query.js", - "third_party/closure/goog/loremipsum/text/loremipsum.js", - "third_party/closure/goog/mochikit/async/deferred.js", - "third_party/closure/goog/mochikit/async/deferredlist.js", - "third_party/closure/goog/svgpan/svgpan.js", - ], -) - -filegroup( - name = "js_testing_files", - srcs = [ - # This list was generated by :js_testing_files_maker - "closure/goog/html/testing.js", - "closure/goog/labs/mock/mock.js", - "closure/goog/labs/mock/verificationmode.js", - "closure/goog/labs/testing/assertthat.js", - "closure/goog/labs/testing/decoratormatcher.js", - "closure/goog/labs/testing/dictionarymatcher.js", - "closure/goog/labs/testing/environment.js", - "closure/goog/labs/testing/json_fuzzing.js", - "closure/goog/labs/testing/logicmatcher.js", - "closure/goog/labs/testing/matcher.js", - "closure/goog/labs/testing/numbermatcher.js", - "closure/goog/labs/testing/objectmatcher.js", - "closure/goog/labs/testing/stringmatcher.js", - "closure/goog/labs/useragent/test_agents.js", - "closure/goog/promise/testsuiteadapter.js", - "closure/goog/soy/soy_testhelper.js", - "closure/goog/storage/mechanism/iterablemechanismtester.js", - "closure/goog/storage/mechanism/mechanismseparationtester.js", - "closure/goog/storage/mechanism/mechanismsharingtester.js", - "closure/goog/storage/mechanism/mechanismtestdefinition.js", - "closure/goog/storage/mechanism/mechanismtester.js", - "closure/goog/testing/assertionfailure.js", - "closure/goog/testing/asserts.js", - "closure/goog/testing/async/mockcontrol.js", - "closure/goog/testing/asynctestcase.js", - "closure/goog/testing/benchmark.js", - "closure/goog/testing/continuationtestcase.js", - "closure/goog/testing/deferredtestcase.js", - "closure/goog/testing/dom.js", - "closure/goog/testing/editor/dom.js", - "closure/goog/testing/editor/fieldmock.js", - "closure/goog/testing/editor/testhelper.js", - "closure/goog/testing/events/eventobserver.js", - "closure/goog/testing/events/events.js", - "closure/goog/testing/events/matchers.js", - "closure/goog/testing/events/onlinehandler.js", - "closure/goog/testing/expectedfailures.js", - "closure/goog/testing/fs/blob.js", - "closure/goog/testing/fs/entry.js", - "closure/goog/testing/fs/file.js", - "closure/goog/testing/fs/filereader.js", - "closure/goog/testing/fs/filesystem.js", - "closure/goog/testing/fs/filewriter.js", - "closure/goog/testing/fs/fs.js", - "closure/goog/testing/fs/progressevent.js", - "closure/goog/testing/functionmock.js", - "closure/goog/testing/graphics.js", - "closure/goog/testing/i18n/asserts.js", - "closure/goog/testing/jstdasyncwrapper.js", - "closure/goog/testing/jstdtestcaseadapter.js", - "closure/goog/testing/jsunit.js", - "closure/goog/testing/jsunitexception.js", - "closure/goog/testing/loosemock.js", - "closure/goog/testing/messaging/mockmessagechannel.js", - "closure/goog/testing/messaging/mockmessageevent.js", - "closure/goog/testing/messaging/mockmessageport.js", - "closure/goog/testing/messaging/mockportnetwork.js", - "closure/goog/testing/mock.js", - "closure/goog/testing/mockclassfactory.js", - "closure/goog/testing/mockclock.js", - "closure/goog/testing/mockcontrol.js", - "closure/goog/testing/mockinterface.js", - "closure/goog/testing/mockmatchers.js", - "closure/goog/testing/mockrandom.js", - "closure/goog/testing/mockrange.js", - "closure/goog/testing/mockstorage.js", - "closure/goog/testing/mockuseragent.js", - "closure/goog/testing/multitestrunner.js", - "closure/goog/testing/net/mockiframeio.js", - "closure/goog/testing/net/xhrio.js", - "closure/goog/testing/net/xhriopool.js", - "closure/goog/testing/objectpropertystring.js", - "closure/goog/testing/parallel_closure_test_suite.js", - "closure/goog/testing/performancetable.js", - "closure/goog/testing/performancetimer.js", - "closure/goog/testing/propertyreplacer.js", - "closure/goog/testing/proto2/proto2.js", - "closure/goog/testing/pseudorandom.js", - "closure/goog/testing/recordfunction.js", - "closure/goog/testing/shardingtestcase.js", - "closure/goog/testing/singleton.js", - "closure/goog/testing/stacktrace.js", - "closure/goog/testing/storage/fakemechanism.js", - "closure/goog/testing/strictmock.js", - "closure/goog/testing/style/layoutasserts.js", - "closure/goog/testing/style/style.js", - "closure/goog/testing/testcase.js", - "closure/goog/testing/testqueue.js", - "closure/goog/testing/testrunner.js", - "closure/goog/testing/testsuite.js", - "closure/goog/testing/ui/rendererasserts.js", - "closure/goog/testing/ui/rendererharness.js", - "closure/goog/testing/ui/style.js", - "closure/goog/tweak/testhelpers.js", - "closure/goog/useragent/useragenttestutil.js", - ], + name = "com_google_javascript_closure_library", + srcs = glob([ + "closure/**", + "third_party/**", + ]), ) filegroup( @@ -990,107 +32,3 @@ py_binary( ":build_treescan", ], ) - -# These rules need to be re-run each time the Closure Library is updated. They -# allow us to list all the files explicitly in the BUILD file. This makes Bazel -# go much faster for people who don't have SSDs, because it won't need to glob -# a gigantic directory structure each time the package is loaded. -# -# The reason why these rules are commented out is because all glob() functions -# are evaluated when the BUILD file is loaded, i.e. they're not lazy. Normally -# we'd solve this by putting these rules in a subpackage named glob. But we're -# only allowed to specify a single BUILD file for an external dependency. This -# is unfortunate, because that means there's no way to automatically test that -# the above list is correct. -# -# Instructions: -# 1. Uncomment the lines from "FILESET_MARKER_COMMAND" below. -# 2. From the rules_closure project root directory, run -# "bazel build @com_google_javascript_closure_library//:js_library_files_maker" and -# "bazel build @com_google_javascript_closure_library//:js_testing_files_maker" -# 3. Copy the list of files in -# bazel-genfiles/external/com_google_javascript_closure_library/js_library_files_maker.txt and -# bazel-genfiles/external/com_google_javascript_closure_library/js_testing_files_maker.txt -# to the corresponding filegroup above. -# 4. Run "bazel test //closure/... --test_output=errors" to verify. - -# FILESET_MAKER_COMMAND = "#/bin/bash\n{ for s in $(SRCS); do echo \\\"$${s#external/com_google_javascript_closure_library/}\\\",; done; } | sort >$@" - -# genrule( -# name = "js_library_files_maker", -# srcs = glob( -# [ -# "closure/goog/**/*.js", -# "third_party/closure/goog/**/*.js", -# ], -# exclude = [ -# "closure/goog/**/*_perf.js", -# "closure/goog/**/*_test.js", -# "closure/goog/**/*_test.pb.js", -# "closure/goog/**/*_test_*.js", -# "closure/goog/**/*tests.js", -# "closure/goog/base.js", -# "closure/goog/crypt/hashtester.js", -# "closure/goog/demos/**/*.js", -# "closure/goog/deps.js", -# "closure/goog/events/eventtargettester.js", -# "closure/goog/html/testing.js", -# "closure/goog/labs/mock/**/*.js", -# "closure/goog/labs/testing/**/*.js", -# "closure/goog/labs/useragent/test_agents.js", -# "closure/goog/module/testdata/modA_1.js", -# "closure/goog/module/testdata/modA_2.js", -# "closure/goog/module/testdata/modB_1.js", -# "closure/goog/net/testdata/jsloader_test1.js", -# "closure/goog/net/testdata/jsloader_test2.js", -# "closure/goog/net/testdata/jsloader_test3.js", -# "closure/goog/net/testdata/jsloader_test4.js", -# "closure/goog/promise/testsuiteadapter.js", -# "closure/goog/proto2/test.pb.js", -# "closure/goog/soy/soy_testhelper.js", -# "closure/goog/storage/collectablestoragetester.js", -# "closure/goog/storage/mechanism/mechanismtestdefinition.js", -# "closure/goog/storage/storagetester.js", -# "closure/goog/style/stylescrollbartester.js", -# "closure/goog/test_module.js", -# "closure/goog/test_module_dep.js", -# "closure/goog/testing/**/*.js", -# "closure/goog/transpile.js", -# "closure/goog/tweak/testhelpers.js", -# "closure/goog/useragent/useragenttestutil.js", -# "third_party/closure/goog/**/*_test.js", -# "third_party/closure/goog/osapi/osapi.js", # causes compiler errors -# ], -# ), -# outs = ["js_library_files_maker.txt"], -# cmd = FILESET_MAKER_COMMAND, -# visibility = ["//visibility:private"], -# ) - -# genrule( -# name = "js_testing_files_maker", -# srcs = glob( -# [ -# "closure/goog/labs/mock/**/*.js", -# "closure/goog/labs/testing/**/*.js", -# "closure/goog/testing/**/*.js", -# "closure/goog/storage/mechanism/*test*.js", -# ], -# exclude = [ -# "closure/goog/labs/mock/**/*_test.js", -# "closure/goog/labs/testing/**/*_test.js", -# "closure/goog/testing/**/*_test.js", -# "closure/goog/debug_loader_integration_tests/**/*.js", -# ], -# ) + [ -# "closure/goog/html/testing.js", -# "closure/goog/labs/useragent/test_agents.js", -# "closure/goog/promise/testsuiteadapter.js", -# "closure/goog/soy/soy_testhelper.js", -# "closure/goog/tweak/testhelpers.js", -# "closure/goog/useragent/useragenttestutil.js", -# ], -# outs = ["js_testing_files_maker.txt"], -# cmd = FILESET_MAKER_COMMAND, -# visibility = ["//visibility:private"], -# ) diff --git a/closure/library/color/BUILD b/closure/library/color/BUILD new file mode 100644 index 0000000000..00322bad06 --- /dev/null +++ b/closure/library/color/BUILD @@ -0,0 +1,39 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":alpha", + ":color", + ":names", + ], +) + +closure_js_library( + name = "alpha", + srcs = ["@com_google_javascript_closure_library//:closure/goog/color/alpha.js"], + lenient = True, + deps = ["//closure/library/color"], +) + +closure_js_library( + name = "color", + srcs = ["@com_google_javascript_closure_library//:closure/goog/color/color.js"], + lenient = True, + deps = [ + "//closure/library/color:names", + "//closure/library/math", + ], +) + +closure_js_library( + name = "names", + srcs = ["@com_google_javascript_closure_library//:closure/goog/color/names.js"], + lenient = True, +) diff --git a/closure/library/crypt/BUILD b/closure/library/crypt/BUILD new file mode 100644 index 0000000000..a4a9670fd4 --- /dev/null +++ b/closure/library/crypt/BUILD @@ -0,0 +1,243 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":aes", + ":arc4", + ":base64", + ":basen", + ":blobhasher", + ":blockcipher", + ":cbc", + ":crypt", + ":ctr", + ":hash", + ":hash32", + ":hmac", + ":md5", + ":pbkdf2", + ":sha1", + ":sha2", + ":sha224", + ":sha256", + ":sha2_64bit", + ":sha384", + ":sha512", + ":sha512_256", + ], +) + +closure_js_library( + name = "aes", + srcs = ["@com_google_javascript_closure_library//:closure/goog/crypt/aes.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/crypt:blockcipher", + ], +) + +closure_js_library( + name = "arc4", + srcs = ["@com_google_javascript_closure_library//:closure/goog/crypt/arc4.js"], + lenient = True, + deps = ["//closure/library/asserts"], +) + +closure_js_library( + name = "base64", + srcs = ["@com_google_javascript_closure_library//:closure/goog/crypt/base64.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/crypt", + "//closure/library/string", + "//closure/library/useragent", + "//closure/library/useragent:product", + ], +) + +closure_js_library( + name = "basen", + srcs = ["@com_google_javascript_closure_library//:closure/goog/crypt/basen.js"], + lenient = True, +) + +closure_js_library( + name = "blobhasher", + srcs = ["@com_google_javascript_closure_library//:closure/goog/crypt/blobhasher.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/events:eventtarget", + "//closure/library/fs", + "//closure/library/log", + ], +) + +closure_js_library( + name = "blockcipher", + srcs = ["@com_google_javascript_closure_library//:closure/goog/crypt/blockcipher.js"], + lenient = True, +) + +closure_js_library( + name = "cbc", + srcs = ["@com_google_javascript_closure_library//:closure/goog/crypt/cbc.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/crypt", + "//closure/library/crypt:blockcipher", + ], +) + +closure_js_library( + name = "crypt", + srcs = ["@com_google_javascript_closure_library//:closure/goog/crypt/crypt.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + ], +) + +closure_js_library( + name = "ctr", + srcs = ["@com_google_javascript_closure_library//:closure/goog/crypt/ctr.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/crypt", + ], +) + +closure_js_library( + name = "hash", + srcs = ["@com_google_javascript_closure_library//:closure/goog/crypt/hash.js"], + lenient = True, +) + +closure_js_library( + name = "hash32", + srcs = ["@com_google_javascript_closure_library//:closure/goog/crypt/hash32.js"], + lenient = True, + deps = ["//closure/library/crypt"], +) + +closure_js_library( + name = "hashtester", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/crypt/hashtester.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/crypt", + "//closure/library/dom", + "//closure/library/dom:tagname", + "//closure/library/testing:asserts", + "//closure/library/testing:performancetable", + "//closure/library/testing:pseudorandom", + ], +) + +closure_js_library( + name = "hmac", + srcs = ["@com_google_javascript_closure_library//:closure/goog/crypt/hmac.js"], + lenient = True, + deps = ["//closure/library/crypt:hash"], +) + +closure_js_library( + name = "md5", + srcs = ["@com_google_javascript_closure_library//:closure/goog/crypt/md5.js"], + lenient = True, + deps = ["//closure/library/crypt:hash"], +) + +closure_js_library( + name = "pbkdf2", + srcs = ["@com_google_javascript_closure_library//:closure/goog/crypt/pbkdf2.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/crypt", + "//closure/library/crypt:hmac", + "//closure/library/crypt:sha1", + ], +) + +closure_js_library( + name = "sha1", + srcs = ["@com_google_javascript_closure_library//:closure/goog/crypt/sha1.js"], + lenient = True, + deps = ["//closure/library/crypt:hash"], +) + +closure_js_library( + name = "sha2", + srcs = ["@com_google_javascript_closure_library//:closure/goog/crypt/sha2.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/crypt:hash", + ], +) + +closure_js_library( + name = "sha224", + srcs = ["@com_google_javascript_closure_library//:closure/goog/crypt/sha224.js"], + lenient = True, + deps = ["//closure/library/crypt:sha2"], +) + +closure_js_library( + name = "sha256", + srcs = ["@com_google_javascript_closure_library//:closure/goog/crypt/sha256.js"], + lenient = True, + deps = ["//closure/library/crypt:sha2"], +) + +closure_js_library( + name = "sha2_64bit", + srcs = ["@com_google_javascript_closure_library//:closure/goog/crypt/sha2_64bit.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/crypt:hash", + "//closure/library/math:long", + ], +) + +closure_js_library( + name = "sha384", + srcs = ["@com_google_javascript_closure_library//:closure/goog/crypt/sha384.js"], + lenient = True, + deps = ["//closure/library/crypt:sha2_64bit"], +) + +closure_js_library( + name = "sha512", + srcs = ["@com_google_javascript_closure_library//:closure/goog/crypt/sha512.js"], + lenient = True, + deps = ["//closure/library/crypt:sha2_64bit"], +) + +closure_js_library( + name = "sha512_256", + srcs = ["@com_google_javascript_closure_library//:closure/goog/crypt/sha512_256.js"], + lenient = True, + deps = ["//closure/library/crypt:sha2_64bit"], +) diff --git a/closure/library/cssom/BUILD b/closure/library/cssom/BUILD new file mode 100644 index 0000000000..2db068434d --- /dev/null +++ b/closure/library/cssom/BUILD @@ -0,0 +1,26 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":cssom", + "//closure/library/cssom/iframe:all_js", + ], +) + +closure_js_library( + name = "cssom", + srcs = ["@com_google_javascript_closure_library//:closure/goog/cssom/cssom.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/dom", + "//closure/library/dom:tagname", + ], +) diff --git a/closure/library/cssom/iframe/BUILD b/closure/library/cssom/iframe/BUILD new file mode 100644 index 0000000000..43028322fa --- /dev/null +++ b/closure/library/cssom/iframe/BUILD @@ -0,0 +1,29 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [":style"], +) + +closure_js_library( + name = "style", + srcs = ["@com_google_javascript_closure_library//:closure/goog/cssom/iframe/style.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/cssom", + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/dom:nodetype", + "//closure/library/dom:tagname", + "//closure/library/string", + "//closure/library/style", + "//closure/library/useragent", + ], +) diff --git a/closure/library/datasource/BUILD b/closure/library/datasource/BUILD new file mode 100644 index 0000000000..6339417dd0 --- /dev/null +++ b/closure/library/datasource/BUILD @@ -0,0 +1,123 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":datamanager", + ":datasource", + ":expr", + ":fastdatanode", + ":jsdatasource", + ":jsondatasource", + ":jsxmlhttpdatasource", + ":xmldatasource", + ], +) + +closure_js_library( + name = "datamanager", + srcs = ["@com_google_javascript_closure_library//:closure/goog/datasource/datamanager.js"], + lenient = True, + deps = [ + "//closure/library/datasource", + "//closure/library/datasource:expr", + "//closure/library/object", + "//closure/library/string", + "//closure/library/structs", + "//closure/library/structs:map", + ], +) + +closure_js_library( + name = "datasource", + srcs = ["@com_google_javascript_closure_library//:closure/goog/datasource/datasource.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/log", + ], +) + +closure_js_library( + name = "expr", + srcs = ["@com_google_javascript_closure_library//:closure/goog/datasource/expr.js"], + lenient = True, + deps = [ + "//closure/library/datasource", + "//closure/library/string", + ], +) + +closure_js_library( + name = "fastdatanode", + srcs = ["@com_google_javascript_closure_library//:closure/goog/datasource/fastdatanode.js"], + lenient = True, + deps = [ + "//closure/library/datasource", + "//closure/library/datasource:datamanager", + "//closure/library/string", + ], +) + +closure_js_library( + name = "jsdatasource", + srcs = ["@com_google_javascript_closure_library//:closure/goog/datasource/jsdatasource.js"], + lenient = True, + deps = [ + "//closure/library/datasource", + "//closure/library/datasource:datamanager", + ], +) + +closure_js_library( + name = "jsondatasource", + srcs = ["@com_google_javascript_closure_library//:closure/goog/datasource/jsondatasource.js"], + lenient = True, + deps = [ + "//closure/library/datasource", + "//closure/library/datasource:datamanager", + "//closure/library/datasource:jsdatasource", + "//closure/library/dom", + "//closure/library/dom:tagname", + "//closure/library/log", + "//closure/library/uri", + ], +) + +closure_js_library( + name = "jsxmlhttpdatasource", + srcs = ["@com_google_javascript_closure_library//:closure/goog/datasource/jsxmlhttpdatasource.js"], + lenient = True, + deps = [ + "//closure/library/datasource", + "//closure/library/datasource:datamanager", + "//closure/library/datasource:fastdatanode", + "//closure/library/events", + "//closure/library/log", + "//closure/library/net:eventtype", + "//closure/library/net:xhrio", + "//closure/library/uri", + ], +) + +closure_js_library( + name = "xmldatasource", + srcs = ["@com_google_javascript_closure_library//:closure/goog/datasource/xmldatasource.js"], + lenient = True, + deps = [ + "//closure/library/datasource", + "//closure/library/datasource:datamanager", + "//closure/library/dom:nodetype", + "//closure/library/dom:xml", + "//closure/library/log", + "//closure/library/net:xhrio", + "//closure/library/string", + "//closure/library/uri", + ], +) diff --git a/closure/library/date/BUILD b/closure/library/date/BUILD new file mode 100644 index 0000000000..c239486b04 --- /dev/null +++ b/closure/library/date/BUILD @@ -0,0 +1,85 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":date", + ":datelike", + ":daterange", + ":duration", + ":relative", + ":relativewithplurals", + ":utcdatetime", + ], +) + +closure_js_library( + name = "date", + srcs = ["@com_google_javascript_closure_library//:closure/goog/date/date.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/date:datelike", + "//closure/library/i18n:datetimesymbols", + "//closure/library/string", + ], +) + +closure_js_library( + name = "datelike", + srcs = ["@com_google_javascript_closure_library//:closure/goog/date/datelike.js"], + lenient = True, +) + +closure_js_library( + name = "daterange", + srcs = ["@com_google_javascript_closure_library//:closure/goog/date/daterange.js"], + lenient = True, + deps = [ + "//closure/library/date", + "//closure/library/iter", + ], +) + +closure_js_library( + name = "duration", + srcs = ["@com_google_javascript_closure_library//:closure/goog/date/duration.js"], + lenient = True, + deps = [ + "//closure/library/i18n:datetimeformat", + "//closure/library/i18n:messageformat", + ], +) + +closure_js_library( + name = "relative", + srcs = ["@com_google_javascript_closure_library//:closure/goog/date/relative.js"], + lenient = True, + deps = [ + "//closure/library/i18n:datetimeformat", + "//closure/library/i18n:datetimepatterns", + ], +) + +closure_js_library( + name = "relativewithplurals", + srcs = ["@com_google_javascript_closure_library//:closure/goog/date/relativewithplurals.js"], + lenient = True, + deps = [ + "//closure/library/date:relative", + "//closure/library/i18n:messageformat", + ], +) + +closure_js_library( + name = "utcdatetime", + srcs = ["@com_google_javascript_closure_library//:closure/goog/date/utcdatetime.js"], + lenient = True, + deps = ["//closure/library/date"], +) diff --git a/closure/library/db/BUILD b/closure/library/db/BUILD new file mode 100644 index 0000000000..61d807d926 --- /dev/null +++ b/closure/library/db/BUILD @@ -0,0 +1,119 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":cursor", + ":db", + ":error", + ":index", + ":indexeddb", + ":keyrange", + ":objectstore", + ":transaction", + ], +) + +closure_js_library( + name = "cursor", + srcs = ["@com_google_javascript_closure_library//:closure/goog/db/cursor.js"], + lenient = True, + deps = [ + "//closure/library/db:error", + "//closure/library/db:keyrange", + "//closure/library/debug", + "//closure/library/events:eventtarget", + "//third_party/closure/library/mochikit/async:deferred", + ], +) + +closure_js_library( + name = "db", + srcs = ["@com_google_javascript_closure_library//:closure/goog/db/db.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/db:error", + "//closure/library/db:indexeddb", + "//closure/library/db:transaction", + "//third_party/closure/library/mochikit/async:deferred", + ], +) + +closure_js_library( + name = "error", + srcs = ["@com_google_javascript_closure_library//:closure/goog/db/error.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/debug:error", + ], +) + +closure_js_library( + name = "index", + srcs = ["@com_google_javascript_closure_library//:closure/goog/db/index.js"], + lenient = True, + deps = [ + "//closure/library/db:cursor", + "//closure/library/db:error", + "//closure/library/db:keyrange", + "//closure/library/debug", + "//third_party/closure/library/mochikit/async:deferred", + ], +) + +closure_js_library( + name = "indexeddb", + srcs = ["@com_google_javascript_closure_library//:closure/goog/db/indexeddb.js"], + lenient = True, + deps = [ + "//closure/library/db:error", + "//closure/library/db:objectstore", + "//closure/library/db:transaction", + "//closure/library/events:event", + "//closure/library/events:eventhandler", + "//closure/library/events:eventtarget", + ], +) + +closure_js_library( + name = "keyrange", + srcs = ["@com_google_javascript_closure_library//:closure/goog/db/keyrange.js"], + lenient = True, +) + +closure_js_library( + name = "objectstore", + srcs = ["@com_google_javascript_closure_library//:closure/goog/db/objectstore.js"], + lenient = True, + deps = [ + "//closure/library/db:cursor", + "//closure/library/db:error", + "//closure/library/db:index", + "//closure/library/db:keyrange", + "//closure/library/debug", + "//closure/library/events", + "//third_party/closure/library/mochikit/async:deferred", + ], +) + +closure_js_library( + name = "transaction", + srcs = ["@com_google_javascript_closure_library//:closure/goog/db/transaction.js"], + lenient = True, + deps = [ + "//closure/library/db:error", + "//closure/library/db:objectstore", + "//closure/library/events", + "//closure/library/events:eventhandler", + "//closure/library/events:eventtarget", + "//third_party/closure/library/mochikit/async:deferred", + ], +) diff --git a/closure/library/debug/BUILD b/closure/library/debug/BUILD new file mode 100644 index 0000000000..54ad08cbb7 --- /dev/null +++ b/closure/library/debug/BUILD @@ -0,0 +1,260 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":console", + ":debug", + ":debugwindow", + ":divconsole", + ":entrypointregistry", + ":error", + ":errorcontext", + ":errorhandler", + ":errorhandlerweakdep", + ":errorreporter", + ":fancywindow", + ":formatter", + ":fpsdisplay", + ":logbuffer", + ":logger", + ":logrecord", + ":logrecordserializer", + ":relativetimeprovider", + ":tracer", + "//closure/library/debug/devcss:all_js", + ], +) + +closure_js_library( + name = "console", + srcs = ["@com_google_javascript_closure_library//:closure/goog/debug/console.js"], + lenient = True, + deps = [ + "//closure/library/debug:formatter", + "//closure/library/debug:logger", + ], +) + +closure_js_library( + name = "debug", + srcs = ["@com_google_javascript_closure_library//:closure/goog/debug/debug.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/debug:errorcontext", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "debugwindow", + srcs = ["@com_google_javascript_closure_library//:closure/goog/debug/debugwindow.js"], + lenient = True, + deps = [ + "//closure/library/debug:formatter", + "//closure/library/debug:logger", + "//closure/library/dom:safe", + "//closure/library/html:safehtml", + "//closure/library/html:safestylesheet", + "//closure/library/string:const", + "//closure/library/structs:circularbuffer", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "divconsole", + srcs = ["@com_google_javascript_closure_library//:closure/goog/debug/divconsole.js"], + lenient = True, + deps = [ + "//closure/library/debug:formatter", + "//closure/library/debug:logger", + "//closure/library/dom", + "//closure/library/dom:safe", + "//closure/library/dom:tagname", + "//closure/library/html:safehtml", + "//closure/library/html:safestylesheet", + "//closure/library/string:const", + "//closure/library/style", + ], +) + +closure_js_library( + name = "entrypointregistry", + srcs = ["@com_google_javascript_closure_library//:closure/goog/debug/entrypointregistry.js"], + lenient = True, + deps = ["//closure/library/asserts"], +) + +closure_js_library( + name = "error", + srcs = ["@com_google_javascript_closure_library//:closure/goog/debug/error.js"], + lenient = True, +) + +closure_js_library( + name = "errorcontext", + srcs = ["@com_google_javascript_closure_library//:closure/goog/debug/errorcontext.js"], + lenient = True, +) + +closure_js_library( + name = "errorhandler", + srcs = ["@com_google_javascript_closure_library//:closure/goog/debug/errorhandler.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/debug", + "//closure/library/debug:entrypointregistry", + "//closure/library/debug:error", + "//closure/library/debug:tracer", + "//closure/library/disposable", + ], +) + +closure_js_library( + name = "errorhandlerweakdep", + srcs = ["@com_google_javascript_closure_library//:closure/goog/debug/errorhandlerweakdep.js"], + lenient = True, +) + +closure_js_library( + name = "errorreporter", + srcs = ["@com_google_javascript_closure_library//:closure/goog/debug/errorreporter.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/debug", + "//closure/library/debug:entrypointregistry", + "//closure/library/debug:error", + "//closure/library/debug:errorcontext", + "//closure/library/debug:errorhandler", + "//closure/library/events", + "//closure/library/events:event", + "//closure/library/events:eventtarget", + "//closure/library/log", + "//closure/library/net:xhrio", + "//closure/library/object", + "//closure/library/string", + "//closure/library/uri:utils", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "fancywindow", + srcs = ["@com_google_javascript_closure_library//:closure/goog/debug/fancywindow.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/debug:debugwindow", + "//closure/library/debug:logger", + "//closure/library/dom", + "//closure/library/dom:safe", + "//closure/library/dom:tagname", + "//closure/library/html:safehtml", + "//closure/library/html:safestylesheet", + "//closure/library/object", + "//closure/library/string", + "//closure/library/string:const", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "formatter", + srcs = ["@com_google_javascript_closure_library//:closure/goog/debug/formatter.js"], + lenient = True, + deps = [ + "//closure/library/debug", + "//closure/library/debug:logger", + "//closure/library/debug:relativetimeprovider", + "//closure/library/html:safehtml", + "//closure/library/html:safeurl", + "//closure/library/html:uncheckedconversions", + "//closure/library/string:const", + ], +) + +closure_js_library( + name = "fpsdisplay", + srcs = ["@com_google_javascript_closure_library//:closure/goog/debug/fpsdisplay.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/async:animationdelay", + "//closure/library/dom", + "//closure/library/dom:tagname", + "//closure/library/ui:component", + ], +) + +closure_js_library( + name = "logbuffer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/debug/logbuffer.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/debug:logrecord", + ], +) + +closure_js_library( + name = "logger", + srcs = ["@com_google_javascript_closure_library//:closure/goog/debug/logger.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/debug", + "//closure/library/debug:logbuffer", + "//closure/library/debug:logrecord", + ], +) + +closure_js_library( + name = "logrecord", + srcs = ["@com_google_javascript_closure_library//:closure/goog/debug/logrecord.js"], + lenient = True, +) + +closure_js_library( + name = "logrecordserializer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/debug/logrecordserializer.js"], + lenient = True, + deps = [ + "//closure/library/debug:logger", + "//closure/library/debug:logrecord", + "//closure/library/json", + "//closure/library/object", + ], +) + +closure_js_library( + name = "relativetimeprovider", + srcs = ["@com_google_javascript_closure_library//:closure/goog/debug/relativetimeprovider.js"], + lenient = True, +) + +closure_js_library( + name = "tracer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/debug/tracer.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/debug:logger", + "//closure/library/iter", + "//closure/library/log", + "//closure/library/structs:map", + "//closure/library/structs:simplepool", + ], +) diff --git a/closure/library/debug/devcss/BUILD b/closure/library/debug/devcss/BUILD new file mode 100644 index 0000000000..744bfb9561 --- /dev/null +++ b/closure/library/debug/devcss/BUILD @@ -0,0 +1,37 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":devcss", + ":devcssrunner", + ], +) + +closure_js_library( + name = "devcss", + srcs = ["@com_google_javascript_closure_library//:closure/goog/debug/devcss/devcss.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/cssom", + "//closure/library/dom:classlist", + "//closure/library/events", + "//closure/library/events:eventtype", + "//closure/library/string", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "devcssrunner", + srcs = ["@com_google_javascript_closure_library//:closure/goog/debug/devcss/devcssrunner.js"], + lenient = True, + deps = ["//closure/library/debug/devcss"], +) diff --git a/closure/library/delegate/BUILD b/closure/library/delegate/BUILD new file mode 100644 index 0000000000..9407b3f127 --- /dev/null +++ b/closure/library/delegate/BUILD @@ -0,0 +1,32 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":delegateregistry", + ":delegates", + ], +) + +closure_js_library( + name = "delegateregistry", + srcs = ["@com_google_javascript_closure_library//:closure/goog/delegate/delegateregistry.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/debug", + ], +) + +closure_js_library( + name = "delegates", + srcs = ["@com_google_javascript_closure_library//:closure/goog/delegate/delegates.js"], + lenient = True, +) diff --git a/closure/library/disposable/BUILD b/closure/library/disposable/BUILD new file mode 100644 index 0000000000..56c2ab63ee --- /dev/null +++ b/closure/library/disposable/BUILD @@ -0,0 +1,28 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":disposable", + ":idisposable", + ], +) + +closure_js_library( + name = "disposable", + srcs = ["@com_google_javascript_closure_library//:closure/goog/disposable/disposable.js"], + lenient = True, + deps = ["//closure/library/disposable:idisposable"], +) + +closure_js_library( + name = "idisposable", + srcs = ["@com_google_javascript_closure_library//:closure/goog/disposable/idisposable.js"], + lenient = True, +) diff --git a/closure/library/dom/BUILD b/closure/library/dom/BUILD new file mode 100644 index 0000000000..5b85bda5e1 --- /dev/null +++ b/closure/library/dom/BUILD @@ -0,0 +1,488 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":abstractmultirange", + ":abstractrange", + ":annotate", + ":asserts", + ":attr", + ":browserfeature", + ":bufferedviewportsizemonitor", + ":classes", + ":classlist", + ":controlrange", + ":dataset", + ":dom", + ":fontsizemonitor", + ":forms", + ":fullscreen", + ":htmlelement", + ":iframe", + ":inputtype", + ":iter", + ":multirange", + ":nodeiterator", + ":nodeoffset", + ":nodetype", + ":range", + ":rangeendpoint", + ":safe", + ":savedcaretrange", + ":savedrange", + ":selection", + ":tagiterator", + ":tagname", + ":tags", + ":textassert", + ":textrange", + ":textrangeiterator", + ":uri", + ":vendor", + ":viewportsizemonitor", + ":xml", + "//closure/library/dom/animationframe:all_js", + "//closure/library/dom/browserrange:all_js", + "//closure/library/dom/pattern:all_js", + ], +) + +closure_js_library( + name = "abstractmultirange", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/abstractmultirange.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/dom", + "//closure/library/dom:abstractrange", + "//closure/library/dom:textrange", + ], +) + +closure_js_library( + name = "abstractrange", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/abstractrange.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/dom:nodetype", + "//closure/library/dom:savedcaretrange", + "//closure/library/dom:tagiterator", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "annotate", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/annotate.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:nodetype", + "//closure/library/dom:safe", + "//closure/library/dom:tagname", + "//closure/library/html:safehtml", + "//closure/library/object", + ], +) + +closure_js_library( + name = "asserts", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/asserts.js"], + lenient = True, + deps = ["//closure/library/asserts"], +) + +closure_js_library( + name = "attr", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/attr.js"], + lenient = True, +) + +closure_js_library( + name = "browserfeature", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/browserfeature.js"], + lenient = True, + deps = ["//closure/library/useragent"], +) + +closure_js_library( + name = "bufferedviewportsizemonitor", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/bufferedviewportsizemonitor.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/async:delay", + "//closure/library/events", + "//closure/library/events:eventtarget", + "//closure/library/events:eventtype", + ], +) + +closure_js_library( + name = "classes", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/classes.js"], + lenient = True, + deps = ["//closure/library/array"], +) + +closure_js_library( + name = "classlist", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/classlist.js"], + lenient = True, + deps = ["//closure/library/array"], +) + +closure_js_library( + name = "controlrange", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/controlrange.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/dom", + "//closure/library/dom:abstractmultirange", + "//closure/library/dom:abstractrange", + "//closure/library/dom:savedrange", + "//closure/library/dom:tagiterator", + "//closure/library/dom:textrange", + "//closure/library/iter", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "dataset", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/dataset.js"], + lenient = True, + deps = [ + "//closure/library/labs/useragent:browser", + "//closure/library/string", + "//closure/library/useragent:product", + ], +) + +closure_js_library( + name = "dom", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/dom.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/dom:browserfeature", + "//closure/library/dom:nodetype", + "//closure/library/dom:safe", + "//closure/library/dom:tagname", + "//closure/library/html:safehtml", + "//closure/library/html:uncheckedconversions", + "//closure/library/math:coordinate", + "//closure/library/math:size", + "//closure/library/object", + "//closure/library/string", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "fontsizemonitor", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/fontsizemonitor.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/dom:tagname", + "//closure/library/events", + "//closure/library/events:eventtarget", + "//closure/library/events:eventtype", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "forms", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/forms.js"], + lenient = True, + deps = [ + "//closure/library/dom:inputtype", + "//closure/library/dom:tagname", + "//closure/library/structs:map", + "//closure/library/window", + ], +) + +closure_js_library( + name = "fullscreen", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/fullscreen.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "htmlelement", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/htmlelement.js"], + lenient = True, +) + +closure_js_library( + name = "iframe", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/iframe.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/dom:safe", + "//closure/library/dom:tagname", + "//closure/library/html:safehtml", + "//closure/library/html:safestyle", + "//closure/library/html:trustedresourceurl", + "//closure/library/string:const", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "inputtype", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/inputtype.js"], + lenient = True, +) + +closure_js_library( + name = "iter", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/iter.js"], + lenient = True, + deps = ["//closure/library/iter"], +) + +closure_js_library( + name = "multirange", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/multirange.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/dom", + "//closure/library/dom:abstractmultirange", + "//closure/library/dom:abstractrange", + "//closure/library/dom:savedrange", + "//closure/library/dom:textrange", + "//closure/library/iter", + "//closure/library/log", + ], +) + +closure_js_library( + name = "nodeiterator", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/nodeiterator.js"], + lenient = True, + deps = ["//closure/library/dom:tagiterator"], +) + +closure_js_library( + name = "nodeoffset", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/nodeoffset.js"], + lenient = True, + deps = [ + "//closure/library/disposable", + "//closure/library/dom:tagname", + ], +) + +closure_js_library( + name = "nodetype", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/nodetype.js"], + lenient = True, +) + +closure_js_library( + name = "range", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/range.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/dom:abstractrange", + "//closure/library/dom:browserfeature", + "//closure/library/dom:controlrange", + "//closure/library/dom:multirange", + "//closure/library/dom:nodetype", + "//closure/library/dom:textrange", + ], +) + +closure_js_library( + name = "rangeendpoint", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/rangeendpoint.js"], + lenient = True, +) + +closure_js_library( + name = "safe", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/safe.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/dom:asserts", + "//closure/library/html:safehtml", + "//closure/library/html:safescript", + "//closure/library/html:safestyle", + "//closure/library/html:safeurl", + "//closure/library/html:trustedresourceurl", + "//closure/library/string", + "//closure/library/string:const", + ], +) + +closure_js_library( + name = "savedcaretrange", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/savedcaretrange.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/dom", + "//closure/library/dom:savedrange", + "//closure/library/dom:tagname", + "//closure/library/string", + ], +) + +closure_js_library( + name = "savedrange", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/savedrange.js"], + lenient = True, + deps = [ + "//closure/library/disposable", + "//closure/library/log", + ], +) + +closure_js_library( + name = "selection", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/selection.js"], + lenient = True, + deps = [ + "//closure/library/dom:inputtype", + "//closure/library/string", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "tagiterator", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/tagiterator.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/dom:nodetype", + "//closure/library/iter", + ], +) + +closure_js_library( + name = "tagname", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/tagname.js"], + lenient = True, + deps = ["//closure/library/dom:htmlelement"], +) + +closure_js_library( + name = "tags", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/tags.js"], + lenient = True, + deps = ["//closure/library/object"], +) + +closure_js_library( + name = "textassert", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/textassert.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:tagname", + ], +) + +closure_js_library( + name = "textrange", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/textrange.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/dom", + "//closure/library/dom:abstractrange", + "//closure/library/dom:savedrange", + "//closure/library/dom:tagname", + "//closure/library/dom:textrangeiterator", + "//closure/library/dom/browserrange", + "//closure/library/string", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "textrangeiterator", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/textrangeiterator.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/dom", + "//closure/library/dom:abstractrange", + "//closure/library/dom:nodetype", + "//closure/library/dom:tagname", + "//closure/library/iter", + ], +) + +closure_js_library( + name = "uri", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/uri.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/dom:safe", + "//closure/library/dom:tagname", + "//closure/library/html:uncheckedconversions", + "//closure/library/string:const", + ], +) + +closure_js_library( + name = "vendor", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/vendor.js"], + lenient = True, + deps = [ + "//closure/library/string", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "viewportsizemonitor", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/viewportsizemonitor.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/events", + "//closure/library/events:eventtarget", + "//closure/library/events:eventtype", + "//closure/library/math:size", + ], +) + +closure_js_library( + name = "xml", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/xml.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/dom:nodetype", + "//closure/library/useragent", + ], +) diff --git a/closure/library/dom/animationframe/BUILD b/closure/library/dom/animationframe/BUILD new file mode 100644 index 0000000000..fdd62964d0 --- /dev/null +++ b/closure/library/dom/animationframe/BUILD @@ -0,0 +1,28 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":animationframe", + ":polyfill", + ], +) + +closure_js_library( + name = "animationframe", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/animationframe/animationframe.js"], + lenient = True, + deps = ["//closure/library/dom/animationframe:polyfill"], +) + +closure_js_library( + name = "polyfill", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/animationframe/polyfill.js"], + lenient = True, +) diff --git a/closure/library/dom/browserrange/BUILD b/closure/library/dom/browserrange/BUILD new file mode 100644 index 0000000000..ea286cd41e --- /dev/null +++ b/closure/library/dom/browserrange/BUILD @@ -0,0 +1,114 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":abstractrange", + ":browserrange", + ":geckorange", + ":ierange", + ":operarange", + ":w3crange", + ":webkitrange", + ], +) + +closure_js_library( + name = "abstractrange", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/browserrange/abstractrange.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:nodetype", + "//closure/library/dom:rangeendpoint", + "//closure/library/dom:tagname", + "//closure/library/dom:textrangeiterator", + "//closure/library/iter", + "//closure/library/math:coordinate", + "//closure/library/string", + "//closure/library/string:stringbuffer", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "browserrange", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/browserrange/browserrange.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/dom:browserfeature", + "//closure/library/dom:nodetype", + "//closure/library/dom/browserrange:geckorange", + "//closure/library/dom/browserrange:ierange", + "//closure/library/dom/browserrange:operarange", + "//closure/library/dom/browserrange:w3crange", + "//closure/library/dom/browserrange:webkitrange", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "geckorange", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/browserrange/geckorange.js"], + lenient = True, + deps = ["//closure/library/dom/browserrange:w3crange"], +) + +closure_js_library( + name = "ierange", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/browserrange/ierange.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/dom", + "//closure/library/dom:nodetype", + "//closure/library/dom:rangeendpoint", + "//closure/library/dom:tagname", + "//closure/library/dom/browserrange:abstractrange", + "//closure/library/log", + "//closure/library/string", + ], +) + +closure_js_library( + name = "operarange", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/browserrange/operarange.js"], + lenient = True, + deps = ["//closure/library/dom/browserrange:w3crange"], +) + +closure_js_library( + name = "w3crange", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/browserrange/w3crange.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/dom", + "//closure/library/dom:nodetype", + "//closure/library/dom:rangeendpoint", + "//closure/library/dom:tagname", + "//closure/library/dom/browserrange:abstractrange", + "//closure/library/string", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "webkitrange", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/browserrange/webkitrange.js"], + lenient = True, + deps = [ + "//closure/library/dom:rangeendpoint", + "//closure/library/dom/browserrange:w3crange", + "//closure/library/useragent", + ], +) diff --git a/closure/library/dom/pattern/BUILD b/closure/library/dom/pattern/BUILD new file mode 100644 index 0000000000..f2d8545937 --- /dev/null +++ b/closure/library/dom/pattern/BUILD @@ -0,0 +1,156 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":abstractpattern", + ":allchildren", + ":childmatches", + ":endtag", + ":fulltag", + ":matcher", + ":nodetype", + ":pattern", + ":repeat", + ":sequence", + ":starttag", + ":tag", + ":text", + "//closure/library/dom/pattern/callback:all_js", + ], +) + +closure_js_library( + name = "abstractpattern", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/pattern/abstractpattern.js"], + lenient = True, + deps = ["//closure/library/dom/pattern"], +) + +closure_js_library( + name = "allchildren", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/pattern/allchildren.js"], + lenient = True, + deps = [ + "//closure/library/dom/pattern", + "//closure/library/dom/pattern:abstractpattern", + ], +) + +closure_js_library( + name = "childmatches", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/pattern/childmatches.js"], + lenient = True, + deps = [ + "//closure/library/dom/pattern", + "//closure/library/dom/pattern:allchildren", + ], +) + +closure_js_library( + name = "endtag", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/pattern/endtag.js"], + lenient = True, + deps = [ + "//closure/library/dom:tagiterator", + "//closure/library/dom/pattern:tag", + ], +) + +closure_js_library( + name = "fulltag", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/pattern/fulltag.js"], + lenient = True, + deps = [ + "//closure/library/dom/pattern", + "//closure/library/dom/pattern:starttag", + "//closure/library/dom/pattern:tag", + ], +) + +closure_js_library( + name = "matcher", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/pattern/matcher.js"], + lenient = True, + deps = [ + "//closure/library/dom:tagiterator", + "//closure/library/dom/pattern", + "//closure/library/iter", + ], +) + +closure_js_library( + name = "nodetype", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/pattern/nodetype.js"], + lenient = True, + deps = [ + "//closure/library/dom/pattern", + "//closure/library/dom/pattern:abstractpattern", + ], +) + +closure_js_library( + name = "pattern", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/pattern/pattern.js"], + lenient = True, +) + +closure_js_library( + name = "repeat", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/pattern/repeat.js"], + lenient = True, + deps = [ + "//closure/library/dom:nodetype", + "//closure/library/dom/pattern", + "//closure/library/dom/pattern:abstractpattern", + ], +) + +closure_js_library( + name = "sequence", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/pattern/sequence.js"], + lenient = True, + deps = [ + "//closure/library/dom:nodetype", + "//closure/library/dom/pattern", + "//closure/library/dom/pattern:abstractpattern", + ], +) + +closure_js_library( + name = "starttag", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/pattern/starttag.js"], + lenient = True, + deps = [ + "//closure/library/dom:tagiterator", + "//closure/library/dom/pattern:tag", + ], +) + +closure_js_library( + name = "tag", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/pattern/tag.js"], + lenient = True, + deps = [ + "//closure/library/dom/pattern", + "//closure/library/dom/pattern:abstractpattern", + "//closure/library/object", + ], +) + +closure_js_library( + name = "text", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/pattern/text.js"], + lenient = True, + deps = [ + "//closure/library/dom:nodetype", + "//closure/library/dom/pattern", + "//closure/library/dom/pattern:abstractpattern", + ], +) diff --git a/closure/library/dom/pattern/callback/BUILD b/closure/library/dom/pattern/callback/BUILD new file mode 100644 index 0000000000..f99083acdb --- /dev/null +++ b/closure/library/dom/pattern/callback/BUILD @@ -0,0 +1,40 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":callback", + ":counter", + ":test", + ], +) + +closure_js_library( + name = "callback", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/pattern/callback/callback.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/dom:tagiterator", + "//closure/library/iter", + ], +) + +closure_js_library( + name = "counter", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/pattern/callback/counter.js"], + lenient = True, +) + +closure_js_library( + name = "test", + srcs = ["@com_google_javascript_closure_library//:closure/goog/dom/pattern/callback/test.js"], + lenient = True, + deps = ["//closure/library/iter"], +) diff --git a/closure/library/editor/BUILD b/closure/library/editor/BUILD new file mode 100644 index 0000000000..a161d251d7 --- /dev/null +++ b/closure/library/editor/BUILD @@ -0,0 +1,264 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":browserfeature", + ":clicktoeditwrapper", + ":command", + ":contenteditablefield", + ":defines", + ":field", + ":focus", + ":icontent", + ":link", + ":node", + ":plugin", + ":range", + ":seamlessfield", + ":style", + ":table", + "//closure/library/editor/plugins:all_js", + ], +) + +closure_js_library( + name = "browserfeature", + srcs = ["@com_google_javascript_closure_library//:closure/goog/editor/browserfeature.js"], + lenient = True, + deps = [ + "//closure/library/editor:defines", + "//closure/library/labs/useragent:browser", + "//closure/library/useragent", + "//closure/library/useragent:product", + "//closure/library/useragent:product_isversion", + ], +) + +closure_js_library( + name = "clicktoeditwrapper", + srcs = ["@com_google_javascript_closure_library//:closure/goog/editor/clicktoeditwrapper.js"], + lenient = True, + deps = [ + "//closure/library/disposable", + "//closure/library/dom", + "//closure/library/dom:range", + "//closure/library/dom:tagname", + "//closure/library/editor:browserfeature", + "//closure/library/editor:command", + "//closure/library/editor:field", + "//closure/library/editor:range", + "//closure/library/events:browserevent", + "//closure/library/events:eventhandler", + "//closure/library/events:eventtype", + ], +) + +closure_js_library( + name = "command", + srcs = ["@com_google_javascript_closure_library//:closure/goog/editor/command.js"], + lenient = True, +) + +closure_js_library( + name = "contenteditablefield", + srcs = ["@com_google_javascript_closure_library//:closure/goog/editor/contenteditablefield.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/editor:field", + "//closure/library/log", + ], +) + +closure_js_library( + name = "defines", + srcs = ["@com_google_javascript_closure_library//:closure/goog/editor/defines.js"], + lenient = True, +) + +closure_js_library( + name = "field", + srcs = ["@com_google_javascript_closure_library//:closure/goog/editor/field.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria", + "//closure/library/a11y/aria:roles", + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/async:delay", + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/dom:range", + "//closure/library/dom:safe", + "//closure/library/dom:tagname", + "//closure/library/editor:browserfeature", + "//closure/library/editor:command", + "//closure/library/editor:icontent", + "//closure/library/editor:node", + "//closure/library/editor:plugin", + "//closure/library/editor:range", + "//closure/library/events", + "//closure/library/events:eventhandler", + "//closure/library/events:eventtarget", + "//closure/library/events:eventtype", + "//closure/library/events:keycodes", + "//closure/library/functions", + "//closure/library/html:safehtml", + "//closure/library/html:safestylesheet", + "//closure/library/log", + "//closure/library/string", + "//closure/library/style", + "//closure/library/useragent", + "//closure/library/useragent:product", + ], +) + +closure_js_library( + name = "focus", + srcs = ["@com_google_javascript_closure_library//:closure/goog/editor/focus.js"], + lenient = True, + deps = ["//closure/library/dom:selection"], +) + +closure_js_library( + name = "icontent", + srcs = ["@com_google_javascript_closure_library//:closure/goog/editor/icontent.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/editor:browserfeature", + "//closure/library/style", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "link", + srcs = ["@com_google_javascript_closure_library//:closure/goog/editor/link.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/dom", + "//closure/library/dom:nodetype", + "//closure/library/dom:range", + "//closure/library/dom:tagname", + "//closure/library/editor:browserfeature", + "//closure/library/editor:command", + "//closure/library/editor:field", + "//closure/library/editor:node", + "//closure/library/editor:range", + "//closure/library/string", + "//closure/library/uri:utils", + ], +) + +closure_js_library( + name = "node", + srcs = ["@com_google_javascript_closure_library//:closure/goog/editor/node.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/dom:iter", + "//closure/library/dom:nodetype", + "//closure/library/dom:tagname", + "//closure/library/iter", + "//closure/library/object", + "//closure/library/string", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "plugin", + srcs = ["@com_google_javascript_closure_library//:closure/goog/editor/plugin.js"], + lenient = True, + deps = [ + "//closure/library/events:eventtarget", + "//closure/library/functions", + "//closure/library/log", + "//closure/library/object", + "//closure/library/reflect", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "range", + srcs = ["@com_google_javascript_closure_library//:closure/goog/editor/range.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/dom", + "//closure/library/dom:nodetype", + "//closure/library/dom:range", + "//closure/library/dom:rangeendpoint", + "//closure/library/dom:savedcaretrange", + "//closure/library/editor:node", + "//closure/library/editor:style", + "//closure/library/iter", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "seamlessfield", + srcs = ["@com_google_javascript_closure_library//:closure/goog/editor/seamlessfield.js"], + lenient = True, + deps = [ + "//closure/library/cssom/iframe:style", + "//closure/library/dom", + "//closure/library/dom:range", + "//closure/library/dom:safe", + "//closure/library/dom:tagname", + "//closure/library/editor:browserfeature", + "//closure/library/editor:field", + "//closure/library/editor:icontent", + "//closure/library/editor:node", + "//closure/library/events", + "//closure/library/events:eventtype", + "//closure/library/html:safehtml", + "//closure/library/log", + "//closure/library/style", + ], +) + +closure_js_library( + name = "style", + srcs = ["@com_google_javascript_closure_library//:closure/goog/editor/style.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:nodetype", + "//closure/library/dom:tagname", + "//closure/library/editor:browserfeature", + "//closure/library/events:eventhandler", + "//closure/library/events:eventtype", + "//closure/library/object", + "//closure/library/style", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "table", + srcs = ["@com_google_javascript_closure_library//:closure/goog/editor/table.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:nodetype", + "//closure/library/dom:tagname", + "//closure/library/log", + "//closure/library/string", + "//closure/library/style", + ], +) diff --git a/closure/library/editor/plugins/BUILD b/closure/library/editor/plugins/BUILD new file mode 100644 index 0000000000..f14d9f8e21 --- /dev/null +++ b/closure/library/editor/plugins/BUILD @@ -0,0 +1,387 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":abstractbubbleplugin", + ":abstractdialogplugin", + ":abstracttabhandler", + ":basictextformatter", + ":blockquote", + ":emoticons", + ":enterhandler", + ":firststrong", + ":headerformatter", + ":linkbubble", + ":linkdialogplugin", + ":linkshortcutplugin", + ":listtabhandler", + ":loremipsum", + ":removeformatting", + ":spacestabhandler", + ":tableeditor", + ":tagonenterhandler", + ":undoredo", + ":undoredomanager", + ":undoredostate", + ], +) + +closure_js_library( + name = "abstractbubbleplugin", + srcs = ["@com_google_javascript_closure_library//:closure/goog/editor/plugins/abstractbubbleplugin.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/dom:nodetype", + "//closure/library/dom:range", + "//closure/library/dom:tagname", + "//closure/library/editor:plugin", + "//closure/library/editor:style", + "//closure/library/events", + "//closure/library/events:actioneventwrapper", + "//closure/library/events:eventhandler", + "//closure/library/events:eventtype", + "//closure/library/events:keycodes", + "//closure/library/functions", + "//closure/library/string", + "//closure/library/ui:component", + "//closure/library/ui/editor:bubble", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "abstractdialogplugin", + srcs = ["@com_google_javascript_closure_library//:closure/goog/editor/plugins/abstractdialogplugin.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/dom:range", + "//closure/library/editor:field", + "//closure/library/editor:plugin", + "//closure/library/editor:range", + "//closure/library/events", + "//closure/library/ui/editor:abstractdialog", + ], +) + +closure_js_library( + name = "abstracttabhandler", + srcs = ["@com_google_javascript_closure_library//:closure/goog/editor/plugins/abstracttabhandler.js"], + lenient = True, + deps = [ + "//closure/library/editor:plugin", + "//closure/library/events:keycodes", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "basictextformatter", + srcs = ["@com_google_javascript_closure_library//:closure/goog/editor/plugins/basictextformatter.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/dom", + "//closure/library/dom:nodetype", + "//closure/library/dom:range", + "//closure/library/dom:tagname", + "//closure/library/editor:browserfeature", + "//closure/library/editor:command", + "//closure/library/editor:link", + "//closure/library/editor:node", + "//closure/library/editor:plugin", + "//closure/library/editor:range", + "//closure/library/editor:style", + "//closure/library/iter", + "//closure/library/log", + "//closure/library/object", + "//closure/library/string", + "//closure/library/style", + "//closure/library/ui/editor:messages", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "blockquote", + srcs = ["@com_google_javascript_closure_library//:closure/goog/editor/plugins/blockquote.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/dom:nodetype", + "//closure/library/dom:tagname", + "//closure/library/editor:browserfeature", + "//closure/library/editor:command", + "//closure/library/editor:node", + "//closure/library/editor:plugin", + "//closure/library/functions", + "//closure/library/log", + ], +) + +closure_js_library( + name = "emoticons", + srcs = ["@com_google_javascript_closure_library//:closure/goog/editor/plugins/emoticons.js"], + lenient = True, + deps = [ + "//closure/library/dom:tagname", + "//closure/library/editor:plugin", + "//closure/library/editor:range", + "//closure/library/functions", + "//closure/library/ui/emoji", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "enterhandler", + srcs = ["@com_google_javascript_closure_library//:closure/goog/editor/plugins/enterhandler.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/dom:nodeoffset", + "//closure/library/dom:nodetype", + "//closure/library/dom:range", + "//closure/library/dom:tagname", + "//closure/library/editor:browserfeature", + "//closure/library/editor:node", + "//closure/library/editor:plugin", + "//closure/library/editor:range", + "//closure/library/editor:style", + "//closure/library/editor/plugins:blockquote", + "//closure/library/events:keycodes", + "//closure/library/functions", + "//closure/library/object", + "//closure/library/string", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "firststrong", + srcs = ["@com_google_javascript_closure_library//:closure/goog/editor/plugins/firststrong.js"], + lenient = True, + deps = [ + "//closure/library/dom:nodetype", + "//closure/library/dom:tagiterator", + "//closure/library/dom:tagname", + "//closure/library/editor:command", + "//closure/library/editor:field", + "//closure/library/editor:node", + "//closure/library/editor:plugin", + "//closure/library/editor:range", + "//closure/library/i18n:bidi", + "//closure/library/i18n:uchar", + "//closure/library/iter", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "headerformatter", + srcs = ["@com_google_javascript_closure_library//:closure/goog/editor/plugins/headerformatter.js"], + lenient = True, + deps = [ + "//closure/library/editor:command", + "//closure/library/editor:plugin", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "linkbubble", + srcs = ["@com_google_javascript_closure_library//:closure/goog/editor/plugins/linkbubble.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/dom", + "//closure/library/dom:range", + "//closure/library/dom:tagname", + "//closure/library/editor:command", + "//closure/library/editor:link", + "//closure/library/editor/plugins:abstractbubbleplugin", + "//closure/library/functions", + "//closure/library/string", + "//closure/library/style", + "//closure/library/ui/editor:messages", + "//closure/library/uri:utils", + "//closure/library/window", + ], +) + +closure_js_library( + name = "linkdialogplugin", + srcs = ["@com_google_javascript_closure_library//:closure/goog/editor/plugins/linkdialogplugin.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/dom", + "//closure/library/editor:command", + "//closure/library/editor/plugins:abstractdialogplugin", + "//closure/library/events:eventhandler", + "//closure/library/functions", + "//closure/library/ui/editor:abstractdialog", + "//closure/library/ui/editor:linkdialog", + "//closure/library/uri:utils", + ], +) + +closure_js_library( + name = "linkshortcutplugin", + srcs = ["@com_google_javascript_closure_library//:closure/goog/editor/plugins/linkshortcutplugin.js"], + lenient = True, + deps = [ + "//closure/library/editor:command", + "//closure/library/editor:plugin", + ], +) + +closure_js_library( + name = "listtabhandler", + srcs = ["@com_google_javascript_closure_library//:closure/goog/editor/plugins/listtabhandler.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/dom:tagname", + "//closure/library/editor:command", + "//closure/library/editor/plugins:abstracttabhandler", + "//closure/library/iter", + ], +) + +closure_js_library( + name = "loremipsum", + srcs = ["@com_google_javascript_closure_library//:closure/goog/editor/plugins/loremipsum.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/editor:command", + "//closure/library/editor:field", + "//closure/library/editor:node", + "//closure/library/editor:plugin", + "//closure/library/functions", + "//closure/library/html:safehtml", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "removeformatting", + srcs = ["@com_google_javascript_closure_library//:closure/goog/editor/plugins/removeformatting.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/dom:nodetype", + "//closure/library/dom:range", + "//closure/library/dom:tagname", + "//closure/library/editor:browserfeature", + "//closure/library/editor:node", + "//closure/library/editor:plugin", + "//closure/library/editor:range", + "//closure/library/string", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "spacestabhandler", + srcs = ["@com_google_javascript_closure_library//:closure/goog/editor/plugins/spacestabhandler.js"], + lenient = True, + deps = [ + "//closure/library/dom:tagname", + "//closure/library/editor:range", + "//closure/library/editor/plugins:abstracttabhandler", + ], +) + +closure_js_library( + name = "tableeditor", + srcs = ["@com_google_javascript_closure_library//:closure/goog/editor/plugins/tableeditor.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/dom", + "//closure/library/dom:range", + "//closure/library/dom:tagname", + "//closure/library/editor:node", + "//closure/library/editor:plugin", + "//closure/library/editor:range", + "//closure/library/editor:table", + "//closure/library/object", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "tagonenterhandler", + srcs = ["@com_google_javascript_closure_library//:closure/goog/editor/plugins/tagonenterhandler.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/dom:nodetype", + "//closure/library/dom:range", + "//closure/library/dom:tagname", + "//closure/library/editor:command", + "//closure/library/editor:node", + "//closure/library/editor:range", + "//closure/library/editor:style", + "//closure/library/editor/plugins:enterhandler", + "//closure/library/events:keycodes", + "//closure/library/functions", + "//closure/library/string", + "//closure/library/style", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "undoredo", + srcs = ["@com_google_javascript_closure_library//:closure/goog/editor/plugins/undoredo.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/dom:nodeoffset", + "//closure/library/dom:range", + "//closure/library/editor:browserfeature", + "//closure/library/editor:command", + "//closure/library/editor:field", + "//closure/library/editor:node", + "//closure/library/editor:plugin", + "//closure/library/editor/plugins:undoredomanager", + "//closure/library/editor/plugins:undoredostate", + "//closure/library/events", + "//closure/library/events:eventhandler", + "//closure/library/log", + "//closure/library/object", + ], +) + +closure_js_library( + name = "undoredomanager", + srcs = ["@com_google_javascript_closure_library//:closure/goog/editor/plugins/undoredomanager.js"], + lenient = True, + deps = [ + "//closure/library/editor/plugins:undoredostate", + "//closure/library/events", + "//closure/library/events:eventtarget", + ], +) + +closure_js_library( + name = "undoredostate", + srcs = ["@com_google_javascript_closure_library//:closure/goog/editor/plugins/undoredostate.js"], + lenient = True, + deps = ["//closure/library/events:eventtarget"], +) diff --git a/closure/library/events/BUILD b/closure/library/events/BUILD new file mode 100644 index 0000000000..a5180e6496 --- /dev/null +++ b/closure/library/events/BUILD @@ -0,0 +1,365 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":actioneventwrapper", + ":actionhandler", + ":browserevent", + ":browserfeature", + ":event", + ":eventhandler", + ":eventid", + ":events", + ":eventtarget", + ":eventtype", + ":eventwrapper", + ":filedrophandler", + ":focushandler", + ":imehandler", + ":inputhandler", + ":keycodes", + ":keyhandler", + ":keynames", + ":keys", + ":listenable", + ":listener", + ":listenermap", + ":mousewheelhandler", + ":onlinehandler", + ":pastehandler", + ":wheelevent", + ":wheelhandler", + ], +) + +closure_js_library( + name = "actioneventwrapper", + srcs = ["@com_google_javascript_closure_library//:closure/goog/events/actioneventwrapper.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria", + "//closure/library/a11y/aria:roles", + "//closure/library/dom", + "//closure/library/events", + "//closure/library/events:eventhandler", + "//closure/library/events:eventtype", + "//closure/library/events:eventwrapper", + "//closure/library/events:keycodes", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "actionhandler", + srcs = ["@com_google_javascript_closure_library//:closure/goog/events/actionhandler.js"], + lenient = True, + deps = [ + "//closure/library/events", + "//closure/library/events:browserevent", + "//closure/library/events:eventtarget", + "//closure/library/events:eventtype", + "//closure/library/events:keycodes", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "browserevent", + srcs = ["@com_google_javascript_closure_library//:closure/goog/events/browserevent.js"], + lenient = True, + deps = [ + "//closure/library/debug", + "//closure/library/events:browserfeature", + "//closure/library/events:event", + "//closure/library/events:eventtype", + "//closure/library/reflect", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "browserfeature", + srcs = ["@com_google_javascript_closure_library//:closure/goog/events/browserfeature.js"], + lenient = True, + deps = ["//closure/library/useragent"], +) + +closure_js_library( + name = "event", + srcs = ["@com_google_javascript_closure_library//:closure/goog/events/event.js"], + lenient = True, + deps = [ + "//closure/library/disposable", + "//closure/library/events:eventid", + ], +) + +closure_js_library( + name = "eventhandler", + srcs = ["@com_google_javascript_closure_library//:closure/goog/events/eventhandler.js"], + lenient = True, + deps = [ + "//closure/library/disposable", + "//closure/library/events", + "//closure/library/object", + ], +) + +closure_js_library( + name = "eventid", + srcs = ["@com_google_javascript_closure_library//:closure/goog/events/eventid.js"], + lenient = True, +) + +closure_js_library( + name = "events", + srcs = ["@com_google_javascript_closure_library//:closure/goog/events/events.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/debug:entrypointregistry", + "//closure/library/events:browserevent", + "//closure/library/events:browserfeature", + "//closure/library/events:listenable", + "//closure/library/events:listenermap", + ], +) + +closure_js_library( + name = "eventtarget", + srcs = ["@com_google_javascript_closure_library//:closure/goog/events/eventtarget.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/disposable", + "//closure/library/events", + "//closure/library/events:event", + "//closure/library/events:listenable", + "//closure/library/events:listenermap", + "//closure/library/object", + ], +) + +closure_js_library( + name = "eventtargettester", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/events/eventtargettester.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/events", + "//closure/library/events:event", + "//closure/library/events:eventtarget", + "//closure/library/testing:asserts", + "//closure/library/testing:recordfunction", + ], +) + +closure_js_library( + name = "eventtype", + srcs = ["@com_google_javascript_closure_library//:closure/goog/events/eventtype.js"], + lenient = True, + deps = [ + "//closure/library/events:browserfeature", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "eventwrapper", + srcs = ["@com_google_javascript_closure_library//:closure/goog/events/eventwrapper.js"], + lenient = True, +) + +closure_js_library( + name = "filedrophandler", + srcs = ["@com_google_javascript_closure_library//:closure/goog/events/filedrophandler.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/dom", + "//closure/library/events:browserevent", + "//closure/library/events:eventhandler", + "//closure/library/events:eventtarget", + "//closure/library/events:eventtype", + "//closure/library/log", + ], +) + +closure_js_library( + name = "focushandler", + srcs = ["@com_google_javascript_closure_library//:closure/goog/events/focushandler.js"], + lenient = True, + deps = [ + "//closure/library/events", + "//closure/library/events:browserevent", + "//closure/library/events:eventtarget", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "imehandler", + srcs = ["@com_google_javascript_closure_library//:closure/goog/events/imehandler.js"], + lenient = True, + deps = [ + "//closure/library/events:event", + "//closure/library/events:eventhandler", + "//closure/library/events:eventtarget", + "//closure/library/events:eventtype", + "//closure/library/events:keycodes", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "inputhandler", + srcs = ["@com_google_javascript_closure_library//:closure/goog/events/inputhandler.js"], + lenient = True, + deps = [ + "//closure/library/dom:tagname", + "//closure/library/events:browserevent", + "//closure/library/events:eventhandler", + "//closure/library/events:eventtarget", + "//closure/library/events:keycodes", + "//closure/library/timer", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "keycodes", + srcs = ["@com_google_javascript_closure_library//:closure/goog/events/keycodes.js"], + lenient = True, + deps = ["//closure/library/useragent"], +) + +closure_js_library( + name = "keyhandler", + srcs = ["@com_google_javascript_closure_library//:closure/goog/events/keyhandler.js"], + lenient = True, + deps = [ + "//closure/library/events", + "//closure/library/events:browserevent", + "//closure/library/events:eventtarget", + "//closure/library/events:eventtype", + "//closure/library/events:keycodes", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "keynames", + srcs = ["@com_google_javascript_closure_library//:closure/goog/events/keynames.js"], + lenient = True, +) + +closure_js_library( + name = "keys", + srcs = ["@com_google_javascript_closure_library//:closure/goog/events/keys.js"], + lenient = True, +) + +closure_js_library( + name = "listenable", + srcs = ["@com_google_javascript_closure_library//:closure/goog/events/listenable.js"], + lenient = True, + deps = ["//closure/library/events:eventid"], +) + +closure_js_library( + name = "listener", + srcs = ["@com_google_javascript_closure_library//:closure/goog/events/listener.js"], + lenient = True, + deps = ["//closure/library/events:listenable"], +) + +closure_js_library( + name = "listenermap", + srcs = ["@com_google_javascript_closure_library//:closure/goog/events/listenermap.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/events:listener", + "//closure/library/object", + ], +) + +closure_js_library( + name = "mousewheelhandler", + srcs = ["@com_google_javascript_closure_library//:closure/goog/events/mousewheelhandler.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/events", + "//closure/library/events:browserevent", + "//closure/library/events:eventtarget", + "//closure/library/math", + "//closure/library/style", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "onlinehandler", + srcs = ["@com_google_javascript_closure_library//:closure/goog/events/onlinehandler.js"], + lenient = True, + deps = [ + "//closure/library/events:browserfeature", + "//closure/library/events:eventhandler", + "//closure/library/events:eventtarget", + "//closure/library/events:eventtype", + "//closure/library/net:networkstatusmonitor", + "//closure/library/timer", + ], +) + +closure_js_library( + name = "pastehandler", + srcs = ["@com_google_javascript_closure_library//:closure/goog/events/pastehandler.js"], + lenient = True, + deps = [ + "//closure/library/async:conditionaldelay", + "//closure/library/events:browserevent", + "//closure/library/events:eventhandler", + "//closure/library/events:eventtarget", + "//closure/library/events:eventtype", + "//closure/library/events:keycodes", + "//closure/library/log", + "//closure/library/timer", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "wheelevent", + srcs = ["@com_google_javascript_closure_library//:closure/goog/events/wheelevent.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/events:browserevent", + ], +) + +closure_js_library( + name = "wheelhandler", + srcs = ["@com_google_javascript_closure_library//:closure/goog/events/wheelhandler.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/events", + "//closure/library/events:eventtarget", + "//closure/library/events:wheelevent", + "//closure/library/style", + "//closure/library/useragent", + "//closure/library/useragent:product", + "//closure/library/useragent:product_isversion", + ], +) diff --git a/closure/library/format/BUILD b/closure/library/format/BUILD new file mode 100644 index 0000000000..6f606378e4 --- /dev/null +++ b/closure/library/format/BUILD @@ -0,0 +1,69 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":emailaddress", + ":format", + ":htmlprettyprinter", + ":internationalizedemailaddress", + ":jsonprettyprinter", + ], +) + +closure_js_library( + name = "emailaddress", + srcs = ["@com_google_javascript_closure_library//:closure/goog/format/emailaddress.js"], + lenient = True, + deps = ["//closure/library/string"], +) + +closure_js_library( + name = "format", + srcs = ["@com_google_javascript_closure_library//:closure/goog/format/format.js"], + lenient = True, + deps = [ + "//closure/library/i18n:graphemebreak", + "//closure/library/string", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "htmlprettyprinter", + srcs = ["@com_google_javascript_closure_library//:closure/goog/format/htmlprettyprinter.js"], + lenient = True, + deps = [ + "//closure/library/dom:tagname", + "//closure/library/object", + "//closure/library/string:stringbuffer", + ], +) + +closure_js_library( + name = "internationalizedemailaddress", + srcs = ["@com_google_javascript_closure_library//:closure/goog/format/internationalizedemailaddress.js"], + lenient = True, + deps = [ + "//closure/library/format:emailaddress", + "//closure/library/string", + ], +) + +closure_js_library( + name = "jsonprettyprinter", + srcs = ["@com_google_javascript_closure_library//:closure/goog/format/jsonprettyprinter.js"], + lenient = True, + deps = [ + "//closure/library/html:safehtml", + "//closure/library/json", + "//closure/library/string", + "//closure/library/string:stringformat", + ], +) diff --git a/closure/library/fs/BUILD b/closure/library/fs/BUILD new file mode 100644 index 0000000000..831cece8f6 --- /dev/null +++ b/closure/library/fs/BUILD @@ -0,0 +1,134 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":entry", + ":entryimpl", + ":error", + ":filereader", + ":filesaver", + ":filesystem", + ":filesystemimpl", + ":filewriter", + ":fs", + ":progressevent", + ":url", + ], +) + +closure_js_library( + name = "entry", + srcs = ["@com_google_javascript_closure_library//:closure/goog/fs/entry.js"], + lenient = True, +) + +closure_js_library( + name = "entryimpl", + srcs = ["@com_google_javascript_closure_library//:closure/goog/fs/entryimpl.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/fs:entry", + "//closure/library/fs:error", + "//closure/library/fs:filewriter", + "//closure/library/functions", + "//closure/library/string", + "//third_party/closure/library/mochikit/async:deferred", + ], +) + +closure_js_library( + name = "error", + srcs = ["@com_google_javascript_closure_library//:closure/goog/fs/error.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/debug:error", + "//closure/library/object", + "//closure/library/string", + ], +) + +closure_js_library( + name = "filereader", + srcs = ["@com_google_javascript_closure_library//:closure/goog/fs/filereader.js"], + lenient = True, + deps = [ + "//closure/library/events:eventtarget", + "//closure/library/fs:error", + "//closure/library/fs:progressevent", + "//third_party/closure/library/mochikit/async:deferred", + ], +) + +closure_js_library( + name = "filesaver", + srcs = ["@com_google_javascript_closure_library//:closure/goog/fs/filesaver.js"], + lenient = True, + deps = [ + "//closure/library/events:eventtarget", + "//closure/library/fs:error", + "//closure/library/fs:progressevent", + ], +) + +closure_js_library( + name = "filesystem", + srcs = ["@com_google_javascript_closure_library//:closure/goog/fs/filesystem.js"], + lenient = True, +) + +closure_js_library( + name = "filesystemimpl", + srcs = ["@com_google_javascript_closure_library//:closure/goog/fs/filesystemimpl.js"], + lenient = True, + deps = [ + "//closure/library/fs:entryimpl", + "//closure/library/fs:filesystem", + ], +) + +closure_js_library( + name = "filewriter", + srcs = ["@com_google_javascript_closure_library//:closure/goog/fs/filewriter.js"], + lenient = True, + deps = [ + "//closure/library/fs:error", + "//closure/library/fs:filesaver", + ], +) + +closure_js_library( + name = "fs", + srcs = ["@com_google_javascript_closure_library//:closure/goog/fs/fs.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/fs:error", + "//closure/library/fs:filereader", + "//closure/library/fs:filesystemimpl", + "//closure/library/fs:url", + "//closure/library/useragent", + "//third_party/closure/library/mochikit/async:deferred", + ], +) + +closure_js_library( + name = "progressevent", + srcs = ["@com_google_javascript_closure_library//:closure/goog/fs/progressevent.js"], + lenient = True, + deps = ["//closure/library/events:event"], +) + +closure_js_library( + name = "url", + srcs = ["@com_google_javascript_closure_library//:closure/goog/fs/url.js"], + lenient = True, +) diff --git a/closure/library/functions/BUILD b/closure/library/functions/BUILD new file mode 100644 index 0000000000..56c07ccf0c --- /dev/null +++ b/closure/library/functions/BUILD @@ -0,0 +1,18 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [":functions"], +) + +closure_js_library( + name = "functions", + srcs = ["@com_google_javascript_closure_library//:closure/goog/functions/functions.js"], + lenient = True, +) diff --git a/closure/library/fx/BUILD b/closure/library/fx/BUILD new file mode 100644 index 0000000000..8fc9cd21f4 --- /dev/null +++ b/closure/library/fx/BUILD @@ -0,0 +1,207 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":abstractdragdrop", + ":animation", + ":animationqueue", + ":cssspriteanimation", + ":dom", + ":dragdrop", + ":dragdropgroup", + ":dragger", + ":draglistgroup", + ":dragscrollsupport", + ":easing", + ":fx", + ":transition", + ":transitionbase", + "//closure/library/fx/anim:all_js", + "//closure/library/fx/css3:all_js", + ], +) + +closure_js_library( + name = "abstractdragdrop", + srcs = ["@com_google_javascript_closure_library//:closure/goog/fx/abstractdragdrop.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/events", + "//closure/library/events:event", + "//closure/library/events:eventhandler", + "//closure/library/events:eventtarget", + "//closure/library/events:eventtype", + "//closure/library/fx:dragger", + "//closure/library/math:box", + "//closure/library/math:coordinate", + "//closure/library/style", + ], +) + +closure_js_library( + name = "animation", + srcs = ["@com_google_javascript_closure_library//:closure/goog/fx/animation.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/events:event", + "//closure/library/fx:transition", + "//closure/library/fx:transitionbase", + "//closure/library/fx/anim", + ], +) + +closure_js_library( + name = "animationqueue", + srcs = ["@com_google_javascript_closure_library//:closure/goog/fx/animationqueue.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/events", + "//closure/library/fx:animation", + "//closure/library/fx:transition", + "//closure/library/fx:transitionbase", + ], +) + +closure_js_library( + name = "cssspriteanimation", + srcs = ["@com_google_javascript_closure_library//:closure/goog/fx/cssspriteanimation.js"], + lenient = True, + deps = ["//closure/library/fx:animation"], +) + +closure_js_library( + name = "dom", + srcs = ["@com_google_javascript_closure_library//:closure/goog/fx/dom.js"], + lenient = True, + deps = [ + "//closure/library/color", + "//closure/library/events", + "//closure/library/fx:animation", + "//closure/library/fx:transition", + "//closure/library/style", + "//closure/library/style:bidi", + ], +) + +closure_js_library( + name = "dragdrop", + srcs = ["@com_google_javascript_closure_library//:closure/goog/fx/dragdrop.js"], + lenient = True, + deps = ["//closure/library/fx:abstractdragdrop"], +) + +closure_js_library( + name = "dragdropgroup", + srcs = ["@com_google_javascript_closure_library//:closure/goog/fx/dragdropgroup.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/fx:abstractdragdrop", + ], +) + +closure_js_library( + name = "dragger", + srcs = ["@com_google_javascript_closure_library//:closure/goog/fx/dragger.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/dom:tagname", + "//closure/library/events", + "//closure/library/events:event", + "//closure/library/events:eventhandler", + "//closure/library/events:eventtarget", + "//closure/library/events:eventtype", + "//closure/library/math:coordinate", + "//closure/library/math:rect", + "//closure/library/style", + "//closure/library/style:bidi", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "draglistgroup", + srcs = ["@com_google_javascript_closure_library//:closure/goog/fx/draglistgroup.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/events", + "//closure/library/events:event", + "//closure/library/events:eventhandler", + "//closure/library/events:eventid", + "//closure/library/events:eventtarget", + "//closure/library/events:eventtype", + "//closure/library/fx:dragger", + "//closure/library/math:coordinate", + "//closure/library/string", + "//closure/library/style", + ], +) + +closure_js_library( + name = "dragscrollsupport", + srcs = ["@com_google_javascript_closure_library//:closure/goog/fx/dragscrollsupport.js"], + lenient = True, + deps = [ + "//closure/library/disposable", + "//closure/library/dom", + "//closure/library/events:eventhandler", + "//closure/library/events:eventtype", + "//closure/library/math:coordinate", + "//closure/library/style", + "//closure/library/timer", + ], +) + +closure_js_library( + name = "easing", + srcs = ["@com_google_javascript_closure_library//:closure/goog/fx/easing.js"], + lenient = True, +) + +closure_js_library( + name = "fx", + srcs = ["@com_google_javascript_closure_library//:closure/goog/fx/fx.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/fx:animation", + "//closure/library/fx:easing", + "//closure/library/fx:transition", + ], +) + +closure_js_library( + name = "transition", + srcs = ["@com_google_javascript_closure_library//:closure/goog/fx/transition.js"], + lenient = True, +) + +closure_js_library( + name = "transitionbase", + srcs = ["@com_google_javascript_closure_library//:closure/goog/fx/transitionbase.js"], + lenient = True, + deps = [ + "//closure/library/events:eventtarget", + "//closure/library/fx:transition", + ], +) diff --git a/closure/library/fx/anim/BUILD b/closure/library/fx/anim/BUILD new file mode 100644 index 0000000000..b9f9d9236c --- /dev/null +++ b/closure/library/fx/anim/BUILD @@ -0,0 +1,23 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [":anim"], +) + +closure_js_library( + name = "anim", + srcs = ["@com_google_javascript_closure_library//:closure/goog/fx/anim/anim.js"], + lenient = True, + deps = [ + "//closure/library/async:animationdelay", + "//closure/library/async:delay", + "//closure/library/object", + ], +) diff --git a/closure/library/fx/css3/BUILD b/closure/library/fx/css3/BUILD new file mode 100644 index 0000000000..3ebeb7c8c5 --- /dev/null +++ b/closure/library/fx/css3/BUILD @@ -0,0 +1,35 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":fx", + ":transition", + ], +) + +closure_js_library( + name = "fx", + srcs = ["@com_google_javascript_closure_library//:closure/goog/fx/css3/fx.js"], + lenient = True, + deps = ["//closure/library/fx/css3:transition"], +) + +closure_js_library( + name = "transition", + srcs = ["@com_google_javascript_closure_library//:closure/goog/fx/css3/transition.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/fx:transitionbase", + "//closure/library/style", + "//closure/library/style:transition", + "//closure/library/timer", + ], +) diff --git a/closure/library/graphics/BUILD b/closure/library/graphics/BUILD new file mode 100644 index 0000000000..74eb499816 --- /dev/null +++ b/closure/library/graphics/BUILD @@ -0,0 +1,323 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":abstractgraphics", + ":affinetransform", + ":canvaselement", + ":canvasgraphics", + ":element", + ":ellipseelement", + ":fill", + ":font", + ":graphics", + ":groupelement", + ":imageelement", + ":lineargradient", + ":path", + ":pathelement", + ":paths", + ":rectelement", + ":solidfill", + ":stroke", + ":strokeandfillelement", + ":svgelement", + ":svggraphics", + ":textelement", + ":vmlelement", + ":vmlgraphics", + "//closure/library/graphics/ext:all_js", + ], +) + +closure_js_library( + name = "abstractgraphics", + srcs = ["@com_google_javascript_closure_library//:closure/goog/graphics/abstractgraphics.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/graphics:affinetransform", + "//closure/library/graphics:element", + "//closure/library/graphics:ellipseelement", + "//closure/library/graphics:fill", + "//closure/library/graphics:font", + "//closure/library/graphics:groupelement", + "//closure/library/graphics:path", + "//closure/library/graphics:pathelement", + "//closure/library/graphics:rectelement", + "//closure/library/graphics:stroke", + "//closure/library/graphics:strokeandfillelement", + "//closure/library/graphics:textelement", + "//closure/library/math:coordinate", + "//closure/library/math:size", + "//closure/library/style", + "//closure/library/ui:component", + ], +) + +closure_js_library( + name = "affinetransform", + srcs = ["@com_google_javascript_closure_library//:closure/goog/graphics/affinetransform.js"], + lenient = True, +) + +closure_js_library( + name = "canvaselement", + srcs = ["@com_google_javascript_closure_library//:closure/goog/graphics/canvaselement.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/dom", + "//closure/library/dom:safe", + "//closure/library/dom:tagname", + "//closure/library/graphics:ellipseelement", + "//closure/library/graphics:font", + "//closure/library/graphics:groupelement", + "//closure/library/graphics:imageelement", + "//closure/library/graphics:path", + "//closure/library/graphics:pathelement", + "//closure/library/graphics:rectelement", + "//closure/library/graphics:textelement", + "//closure/library/html:safehtml", + "//closure/library/html:uncheckedconversions", + "//closure/library/math", + "//closure/library/string", + "//closure/library/string:const", + ], +) + +closure_js_library( + name = "canvasgraphics", + srcs = ["@com_google_javascript_closure_library//:closure/goog/graphics/canvasgraphics.js"], + lenient = True, + deps = [ + "//closure/library/dom:tagname", + "//closure/library/events:eventtype", + "//closure/library/graphics:abstractgraphics", + "//closure/library/graphics:canvaselement", + "//closure/library/graphics:font", + "//closure/library/graphics:solidfill", + "//closure/library/math:size", + "//closure/library/style", + ], +) + +closure_js_library( + name = "element", + srcs = ["@com_google_javascript_closure_library//:closure/goog/graphics/element.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/events", + "//closure/library/events:eventtarget", + "//closure/library/events:listenable", + "//closure/library/graphics:affinetransform", + "//closure/library/math", + ], +) + +closure_js_library( + name = "ellipseelement", + srcs = ["@com_google_javascript_closure_library//:closure/goog/graphics/ellipseelement.js"], + lenient = True, + deps = ["//closure/library/graphics:strokeandfillelement"], +) + +closure_js_library( + name = "fill", + srcs = ["@com_google_javascript_closure_library//:closure/goog/graphics/fill.js"], + lenient = True, +) + +closure_js_library( + name = "font", + srcs = ["@com_google_javascript_closure_library//:closure/goog/graphics/font.js"], + lenient = True, +) + +closure_js_library( + name = "graphics", + srcs = ["@com_google_javascript_closure_library//:closure/goog/graphics/graphics.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/graphics:canvasgraphics", + "//closure/library/graphics:svggraphics", + "//closure/library/graphics:vmlgraphics", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "groupelement", + srcs = ["@com_google_javascript_closure_library//:closure/goog/graphics/groupelement.js"], + lenient = True, + deps = ["//closure/library/graphics:element"], +) + +closure_js_library( + name = "imageelement", + srcs = ["@com_google_javascript_closure_library//:closure/goog/graphics/imageelement.js"], + lenient = True, + deps = ["//closure/library/graphics:element"], +) + +closure_js_library( + name = "lineargradient", + srcs = ["@com_google_javascript_closure_library//:closure/goog/graphics/lineargradient.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/graphics:fill", + ], +) + +closure_js_library( + name = "path", + srcs = ["@com_google_javascript_closure_library//:closure/goog/graphics/path.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/graphics:affinetransform", + "//closure/library/math", + ], +) + +closure_js_library( + name = "pathelement", + srcs = ["@com_google_javascript_closure_library//:closure/goog/graphics/pathelement.js"], + lenient = True, + deps = ["//closure/library/graphics:strokeandfillelement"], +) + +closure_js_library( + name = "paths", + srcs = ["@com_google_javascript_closure_library//:closure/goog/graphics/paths.js"], + lenient = True, + deps = [ + "//closure/library/graphics:path", + "//closure/library/math:coordinate", + ], +) + +closure_js_library( + name = "rectelement", + srcs = ["@com_google_javascript_closure_library//:closure/goog/graphics/rectelement.js"], + lenient = True, + deps = ["//closure/library/graphics:strokeandfillelement"], +) + +closure_js_library( + name = "solidfill", + srcs = ["@com_google_javascript_closure_library//:closure/goog/graphics/solidfill.js"], + lenient = True, + deps = ["//closure/library/graphics:fill"], +) + +closure_js_library( + name = "stroke", + srcs = ["@com_google_javascript_closure_library//:closure/goog/graphics/stroke.js"], + lenient = True, +) + +closure_js_library( + name = "strokeandfillelement", + srcs = ["@com_google_javascript_closure_library//:closure/goog/graphics/strokeandfillelement.js"], + lenient = True, + deps = ["//closure/library/graphics:element"], +) + +closure_js_library( + name = "svgelement", + srcs = ["@com_google_javascript_closure_library//:closure/goog/graphics/svgelement.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/graphics:ellipseelement", + "//closure/library/graphics:groupelement", + "//closure/library/graphics:imageelement", + "//closure/library/graphics:pathelement", + "//closure/library/graphics:rectelement", + "//closure/library/graphics:textelement", + ], +) + +closure_js_library( + name = "svggraphics", + srcs = ["@com_google_javascript_closure_library//:closure/goog/graphics/svggraphics.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/events:eventhandler", + "//closure/library/events:eventtype", + "//closure/library/graphics:abstractgraphics", + "//closure/library/graphics:font", + "//closure/library/graphics:lineargradient", + "//closure/library/graphics:path", + "//closure/library/graphics:solidfill", + "//closure/library/graphics:stroke", + "//closure/library/graphics:svgelement", + "//closure/library/math", + "//closure/library/math:size", + "//closure/library/style", + "//closure/library/timer", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "textelement", + srcs = ["@com_google_javascript_closure_library//:closure/goog/graphics/textelement.js"], + lenient = True, + deps = ["//closure/library/graphics:strokeandfillelement"], +) + +closure_js_library( + name = "vmlelement", + srcs = ["@com_google_javascript_closure_library//:closure/goog/graphics/vmlelement.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/graphics:ellipseelement", + "//closure/library/graphics:groupelement", + "//closure/library/graphics:imageelement", + "//closure/library/graphics:pathelement", + "//closure/library/graphics:rectelement", + "//closure/library/graphics:textelement", + ], +) + +closure_js_library( + name = "vmlgraphics", + srcs = ["@com_google_javascript_closure_library//:closure/goog/graphics/vmlgraphics.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/dom:safe", + "//closure/library/dom:tagname", + "//closure/library/events", + "//closure/library/events:eventhandler", + "//closure/library/events:eventtype", + "//closure/library/graphics:abstractgraphics", + "//closure/library/graphics:font", + "//closure/library/graphics:lineargradient", + "//closure/library/graphics:path", + "//closure/library/graphics:solidfill", + "//closure/library/graphics:vmlelement", + "//closure/library/html:uncheckedconversions", + "//closure/library/math", + "//closure/library/math:size", + "//closure/library/reflect", + "//closure/library/string", + "//closure/library/string:const", + "//closure/library/style", + "//closure/library/useragent", + ], +) diff --git a/closure/library/graphics/ext/BUILD b/closure/library/graphics/ext/BUILD new file mode 100644 index 0000000000..5751a14ba0 --- /dev/null +++ b/closure/library/graphics/ext/BUILD @@ -0,0 +1,125 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":coordinates", + ":element", + ":ellipse", + ":ext", + ":graphics", + ":group", + ":image", + ":path", + ":rectangle", + ":shape", + ":strokeandfillelement", + ], +) + +closure_js_library( + name = "coordinates", + srcs = ["@com_google_javascript_closure_library//:closure/goog/graphics/ext/coordinates.js"], + lenient = True, + deps = ["//closure/library/string"], +) + +closure_js_library( + name = "element", + srcs = ["@com_google_javascript_closure_library//:closure/goog/graphics/ext/element.js"], + lenient = True, + deps = [ + "//closure/library/events:eventtarget", + "//closure/library/functions", + "//closure/library/graphics/ext:coordinates", + ], +) + +closure_js_library( + name = "ellipse", + srcs = ["@com_google_javascript_closure_library//:closure/goog/graphics/ext/ellipse.js"], + lenient = True, + deps = ["//closure/library/graphics/ext:strokeandfillelement"], +) + +closure_js_library( + name = "ext", + srcs = ["@com_google_javascript_closure_library//:closure/goog/graphics/ext/ext.js"], + lenient = True, + deps = [ + "//closure/library/graphics/ext:coordinates", + "//closure/library/graphics/ext:ellipse", + "//closure/library/graphics/ext:graphics", + "//closure/library/graphics/ext:group", + "//closure/library/graphics/ext:image", + "//closure/library/graphics/ext:rectangle", + "//closure/library/graphics/ext:shape", + ], +) + +closure_js_library( + name = "graphics", + srcs = ["@com_google_javascript_closure_library//:closure/goog/graphics/ext/graphics.js"], + lenient = True, + deps = [ + "//closure/library/events", + "//closure/library/events:eventtype", + "//closure/library/graphics", + "//closure/library/graphics/ext:group", + ], +) + +closure_js_library( + name = "group", + srcs = ["@com_google_javascript_closure_library//:closure/goog/graphics/ext/group.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/graphics/ext:element", + ], +) + +closure_js_library( + name = "image", + srcs = ["@com_google_javascript_closure_library//:closure/goog/graphics/ext/image.js"], + lenient = True, + deps = ["//closure/library/graphics/ext:element"], +) + +closure_js_library( + name = "path", + srcs = ["@com_google_javascript_closure_library//:closure/goog/graphics/ext/path.js"], + lenient = True, + deps = [ + "//closure/library/graphics:affinetransform", + "//closure/library/graphics:path", + "//closure/library/math:rect", + ], +) + +closure_js_library( + name = "rectangle", + srcs = ["@com_google_javascript_closure_library//:closure/goog/graphics/ext/rectangle.js"], + lenient = True, + deps = ["//closure/library/graphics/ext:strokeandfillelement"], +) + +closure_js_library( + name = "shape", + srcs = ["@com_google_javascript_closure_library//:closure/goog/graphics/ext/shape.js"], + lenient = True, + deps = ["//closure/library/graphics/ext:strokeandfillelement"], +) + +closure_js_library( + name = "strokeandfillelement", + srcs = ["@com_google_javascript_closure_library//:closure/goog/graphics/ext/strokeandfillelement.js"], + lenient = True, + deps = ["//closure/library/graphics/ext:element"], +) diff --git a/closure/library/history/BUILD b/closure/library/history/BUILD new file mode 100644 index 0000000000..8ab19f4d0b --- /dev/null +++ b/closure/library/history/BUILD @@ -0,0 +1,73 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":event", + ":eventtype", + ":history", + ":html5history", + ], +) + +closure_js_library( + name = "event", + srcs = ["@com_google_javascript_closure_library//:closure/goog/history/event.js"], + lenient = True, + deps = [ + "//closure/library/events:event", + "//closure/library/history:eventtype", + ], +) + +closure_js_library( + name = "eventtype", + srcs = ["@com_google_javascript_closure_library//:closure/goog/history/eventtype.js"], + lenient = True, +) + +closure_js_library( + name = "history", + srcs = ["@com_google_javascript_closure_library//:closure/goog/history/history.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:inputtype", + "//closure/library/dom:safe", + "//closure/library/events:event", + "//closure/library/events:eventhandler", + "//closure/library/events:eventtarget", + "//closure/library/events:eventtype", + "//closure/library/history:event", + "//closure/library/history:eventtype", + "//closure/library/html:safehtml", + "//closure/library/html:trustedresourceurl", + "//closure/library/html:uncheckedconversions", + "//closure/library/labs/useragent:device", + "//closure/library/memoize", + "//closure/library/string", + "//closure/library/string:const", + "//closure/library/timer", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "html5history", + srcs = ["@com_google_javascript_closure_library//:closure/goog/history/html5history.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/events", + "//closure/library/events:eventtarget", + "//closure/library/events:eventtype", + "//closure/library/history:event", + ], +) diff --git a/closure/library/html/BUILD b/closure/library/html/BUILD new file mode 100644 index 0000000000..ac0b537438 --- /dev/null +++ b/closure/library/html/BUILD @@ -0,0 +1,229 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":cssspecificity", + ":flash", + ":legacyconversions", + ":safehtml", + ":safehtmlformatter", + ":safescript", + ":safestyle", + ":safestylesheet", + ":safeurl", + ":silverlight", + ":textextractor", + ":trustedresourceurl", + ":uncheckedconversions", + ":utils", + "//closure/library/html/sanitizer:all_js", + ], +) + +closure_js_library( + name = "cssspecificity", + srcs = ["@com_google_javascript_closure_library//:closure/goog/html/cssspecificity.js"], + lenient = True, + deps = [ + "//closure/library/useragent", + "//closure/library/useragent:product", + ], +) + +closure_js_library( + name = "flash", + srcs = ["@com_google_javascript_closure_library//:closure/goog/html/flash.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/html:safehtml", + ], +) + +closure_js_library( + name = "legacyconversions", + srcs = ["@com_google_javascript_closure_library//:closure/goog/html/legacyconversions.js"], + lenient = True, + deps = [ + "//closure/library/html:safehtml", + "//closure/library/html:safescript", + "//closure/library/html:safestyle", + "//closure/library/html:safestylesheet", + "//closure/library/html:safeurl", + "//closure/library/html:trustedresourceurl", + ], +) + +closure_js_library( + name = "safehtml", + srcs = ["@com_google_javascript_closure_library//:closure/goog/html/safehtml.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/dom:tagname", + "//closure/library/dom:tags", + "//closure/library/html:safescript", + "//closure/library/html:safestyle", + "//closure/library/html:safestylesheet", + "//closure/library/html:safeurl", + "//closure/library/html:trustedresourceurl", + "//closure/library/i18n:bidi", + "//closure/library/labs/useragent:browser", + "//closure/library/object", + "//closure/library/string", + "//closure/library/string:const", + "//closure/library/string:typedstring", + ], +) + +closure_js_library( + name = "safehtmlformatter", + srcs = ["@com_google_javascript_closure_library//:closure/goog/html/safehtmlformatter.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/dom:tags", + "//closure/library/html:safehtml", + "//closure/library/string", + ], +) + +closure_js_library( + name = "safescript", + srcs = ["@com_google_javascript_closure_library//:closure/goog/html/safescript.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/string:const", + "//closure/library/string:typedstring", + ], +) + +closure_js_library( + name = "safestyle", + srcs = ["@com_google_javascript_closure_library//:closure/goog/html/safestyle.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/html:safeurl", + "//closure/library/string", + "//closure/library/string:const", + "//closure/library/string:typedstring", + ], +) + +closure_js_library( + name = "safestylesheet", + srcs = ["@com_google_javascript_closure_library//:closure/goog/html/safestylesheet.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/html:safestyle", + "//closure/library/object", + "//closure/library/string", + "//closure/library/string:const", + "//closure/library/string:typedstring", + ], +) + +closure_js_library( + name = "safeurl", + srcs = ["@com_google_javascript_closure_library//:closure/goog/html/safeurl.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/fs:url", + "//closure/library/html:trustedresourceurl", + "//closure/library/i18n:bidi", + "//closure/library/string", + "//closure/library/string:const", + "//closure/library/string:typedstring", + ], +) + +closure_js_library( + name = "silverlight", + srcs = ["@com_google_javascript_closure_library//:closure/goog/html/silverlight.js"], + lenient = True, + deps = [ + "//closure/library/html:flash", + "//closure/library/html:safehtml", + "//closure/library/html:trustedresourceurl", + "//closure/library/string:const", + ], +) + +closure_js_library( + name = "testing", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/html/testing.js"], + lenient = True, + deps = [ + "//closure/library/html:safehtml", + "//closure/library/html:safescript", + "//closure/library/html:safestyle", + "//closure/library/html:safestylesheet", + "//closure/library/html:safeurl", + "//closure/library/html:trustedresourceurl", + "//closure/library/testing:mockmatchers", + ], +) + +closure_js_library( + name = "textextractor", + srcs = ["@com_google_javascript_closure_library//:closure/goog/html/textextractor.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/dom:tagname", + "//closure/library/html/sanitizer:htmlsanitizer", + "//closure/library/object", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "trustedresourceurl", + srcs = ["@com_google_javascript_closure_library//:closure/goog/html/trustedresourceurl.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/i18n:bidi", + "//closure/library/string:const", + "//closure/library/string:typedstring", + ], +) + +closure_js_library( + name = "uncheckedconversions", + srcs = ["@com_google_javascript_closure_library//:closure/goog/html/uncheckedconversions.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/html:safehtml", + "//closure/library/html:safescript", + "//closure/library/html:safestyle", + "//closure/library/html:safestylesheet", + "//closure/library/html:safeurl", + "//closure/library/html:trustedresourceurl", + "//closure/library/string", + "//closure/library/string:const", + ], +) + +closure_js_library( + name = "utils", + srcs = ["@com_google_javascript_closure_library//:closure/goog/html/utils.js"], + lenient = True, + deps = ["//closure/library/string"], +) diff --git a/closure/library/html/sanitizer/BUILD b/closure/library/html/sanitizer/BUILD new file mode 100644 index 0000000000..b3eea395ea --- /dev/null +++ b/closure/library/html/sanitizer/BUILD @@ -0,0 +1,134 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":attributewhitelist", + ":csssanitizer", + ":elementweakmap", + ":htmlsanitizer", + ":noclobber", + ":safedomtreeprocessor", + ":tagblacklist", + ":tagwhitelist", + ":unsafe", + ], +) + +closure_js_library( + name = "attributewhitelist", + srcs = ["@com_google_javascript_closure_library//:closure/goog/html/sanitizer/attributewhitelist.js"], + lenient = True, +) + +closure_js_library( + name = "csssanitizer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/html/sanitizer/csssanitizer.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/dom", + "//closure/library/dom:tagname", + "//closure/library/html:cssspecificity", + "//closure/library/html:safestyle", + "//closure/library/html:safestylesheet", + "//closure/library/html:safeurl", + "//closure/library/html:uncheckedconversions", + "//closure/library/html/sanitizer:noclobber", + "//closure/library/object", + "//closure/library/string", + "//closure/library/useragent", + "//closure/library/useragent:product", + ], +) + +closure_js_library( + name = "elementweakmap", + srcs = ["@com_google_javascript_closure_library//:closure/goog/html/sanitizer/elementweakmap.js"], + lenient = True, + deps = ["//closure/library/html/sanitizer:noclobber"], +) + +closure_js_library( + name = "htmlsanitizer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/html/sanitizer/htmlsanitizer.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:tagname", + "//closure/library/functions", + "//closure/library/html:safehtml", + "//closure/library/html:safestyle", + "//closure/library/html:safestylesheet", + "//closure/library/html:safeurl", + "//closure/library/html:uncheckedconversions", + "//closure/library/html/sanitizer:attributewhitelist", + "//closure/library/html/sanitizer:csssanitizer", + "//closure/library/html/sanitizer:noclobber", + "//closure/library/html/sanitizer:safedomtreeprocessor", + "//closure/library/html/sanitizer:tagblacklist", + "//closure/library/html/sanitizer:tagwhitelist", + "//closure/library/object", + "//closure/library/string", + "//closure/library/string:const", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "noclobber", + srcs = ["@com_google_javascript_closure_library//:closure/goog/html/sanitizer/noclobber.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/dom:nodetype", + "//closure/library/useragent:product", + ], +) + +closure_js_library( + name = "safedomtreeprocessor", + srcs = ["@com_google_javascript_closure_library//:closure/goog/html/sanitizer/safedomtreeprocessor.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/dom:nodetype", + "//closure/library/dom:tagname", + "//closure/library/html/sanitizer:elementweakmap", + "//closure/library/html/sanitizer:noclobber", + "//closure/library/log", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "tagblacklist", + srcs = ["@com_google_javascript_closure_library//:closure/goog/html/sanitizer/tagblacklist.js"], + lenient = True, +) + +closure_js_library( + name = "tagwhitelist", + srcs = ["@com_google_javascript_closure_library//:closure/goog/html/sanitizer/tagwhitelist.js"], + lenient = True, +) + +closure_js_library( + name = "unsafe", + srcs = ["@com_google_javascript_closure_library//:closure/goog/html/sanitizer/unsafe.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/html/sanitizer:htmlsanitizer", + "//closure/library/string", + "//closure/library/string:const", + ], +) diff --git a/closure/library/i18n/BUILD b/closure/library/i18n/BUILD new file mode 100644 index 0000000000..a848e4d7ff --- /dev/null +++ b/closure/library/i18n/BUILD @@ -0,0 +1,301 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":bidi", + ":bidiformatter", + ":charlistdecompressor", + ":charpickerdata", + ":collation", + ":compactnumberformatsymbols", + ":compactnumberformatsymbolsext", + ":currency", + ":currencycodemap", + ":dateintervalformat", + ":dateintervalpatterns", + ":dateintervalpatternsext", + ":dateintervalsymbols", + ":dateintervalsymbolsext", + ":datetimeformat", + ":datetimeparse", + ":datetimepatterns", + ":datetimepatternsext", + ":datetimesymbols", + ":datetimesymbolsext", + ":graphemebreak", + ":messageformat", + ":mime", + ":numberformat", + ":numberformatsymbols", + ":numberformatsymbolsext", + ":ordinalrules", + ":pluralrules", + ":timezone", + ":uchar", + ":ucharnames", + "//closure/library/i18n/uchar:all_js", + ], +) + +closure_js_library( + name = "bidi", + srcs = ["@com_google_javascript_closure_library//:closure/goog/i18n/bidi.js"], + lenient = True, +) + +closure_js_library( + name = "bidiformatter", + srcs = ["@com_google_javascript_closure_library//:closure/goog/i18n/bidiformatter.js"], + lenient = True, + deps = [ + "//closure/library/html:safehtml", + "//closure/library/i18n:bidi", + ], +) + +closure_js_library( + name = "charlistdecompressor", + srcs = ["@com_google_javascript_closure_library//:closure/goog/i18n/charlistdecompressor.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/i18n:uchar", + ], +) + +closure_js_library( + name = "charpickerdata", + srcs = ["@com_google_javascript_closure_library//:closure/goog/i18n/charpickerdata.js"], + lenient = True, +) + +closure_js_library( + name = "collation", + srcs = ["@com_google_javascript_closure_library//:closure/goog/i18n/collation.js"], + lenient = True, +) + +closure_js_library( + name = "compactnumberformatsymbols", + srcs = ["@com_google_javascript_closure_library//:closure/goog/i18n/compactnumberformatsymbols.js"], + lenient = True, +) + +closure_js_library( + name = "compactnumberformatsymbolsext", + srcs = ["@com_google_javascript_closure_library//:closure/goog/i18n/compactnumberformatsymbolsext.js"], + lenient = True, + deps = ["//closure/library/i18n:compactnumberformatsymbols"], +) + +closure_js_library( + name = "currency", + srcs = ["@com_google_javascript_closure_library//:closure/goog/i18n/currency.js"], + lenient = True, +) + +closure_js_library( + name = "currencycodemap", + srcs = ["@com_google_javascript_closure_library//:closure/goog/i18n/currencycodemap.js"], + lenient = True, +) + +closure_js_library( + name = "dateintervalformat", + srcs = ["@com_google_javascript_closure_library//:closure/goog/i18n/dateintervalformat.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/date", + "//closure/library/date:datelike", + "//closure/library/date:daterange", + "//closure/library/i18n:dateintervalsymbols", + "//closure/library/i18n:datetimeformat", + "//closure/library/i18n:datetimesymbols", + "//closure/library/i18n:timezone", + "//closure/library/object", + ], +) + +closure_js_library( + name = "dateintervalpatterns", + srcs = ["@com_google_javascript_closure_library//:closure/goog/i18n/dateintervalpatterns.js"], + lenient = True, + deps = ["//closure/library/i18n:dateintervalsymbols"], +) + +closure_js_library( + name = "dateintervalpatternsext", + srcs = ["@com_google_javascript_closure_library//:closure/goog/i18n/dateintervalpatternsext.js"], + lenient = True, + deps = ["//closure/library/i18n:dateintervalpatterns"], +) + +closure_js_library( + name = "dateintervalsymbols", + srcs = ["@com_google_javascript_closure_library//:closure/goog/i18n/dateintervalsymbols.js"], + lenient = True, +) + +closure_js_library( + name = "dateintervalsymbolsext", + srcs = ["@com_google_javascript_closure_library//:closure/goog/i18n/dateintervalsymbolsext.js"], + lenient = True, + deps = ["//closure/library/i18n:dateintervalsymbols"], +) + +closure_js_library( + name = "datetimeformat", + srcs = ["@com_google_javascript_closure_library//:closure/goog/i18n/datetimeformat.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/date", + "//closure/library/i18n:datetimesymbols", + "//closure/library/i18n:timezone", + "//closure/library/string", + ], +) + +closure_js_library( + name = "datetimeparse", + srcs = ["@com_google_javascript_closure_library//:closure/goog/i18n/datetimeparse.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/date", + "//closure/library/i18n:datetimeformat", + "//closure/library/i18n:datetimesymbols", + ], +) + +closure_js_library( + name = "datetimepatterns", + srcs = ["@com_google_javascript_closure_library//:closure/goog/i18n/datetimepatterns.js"], + lenient = True, +) + +closure_js_library( + name = "datetimepatternsext", + srcs = ["@com_google_javascript_closure_library//:closure/goog/i18n/datetimepatternsext.js"], + lenient = True, + deps = ["//closure/library/i18n:datetimepatterns"], +) + +closure_js_library( + name = "datetimesymbols", + srcs = ["@com_google_javascript_closure_library//:closure/goog/i18n/datetimesymbols.js"], + lenient = True, +) + +closure_js_library( + name = "datetimesymbolsext", + srcs = ["@com_google_javascript_closure_library//:closure/goog/i18n/datetimesymbolsext.js"], + lenient = True, + deps = ["//closure/library/i18n:datetimesymbols"], +) + +closure_js_library( + name = "graphemebreak", + srcs = ["@com_google_javascript_closure_library//:closure/goog/i18n/graphemebreak.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/i18n:uchar", + "//closure/library/structs:inversionmap", + ], +) + +closure_js_library( + name = "messageformat", + srcs = ["@com_google_javascript_closure_library//:closure/goog/i18n/messageformat.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/i18n:compactnumberformatsymbols", + "//closure/library/i18n:numberformat", + "//closure/library/i18n:numberformatsymbols", + "//closure/library/i18n:ordinalrules", + "//closure/library/i18n:pluralrules", + ], +) + +closure_js_library( + name = "mime", + srcs = ["@com_google_javascript_closure_library//:closure/goog/i18n/mime.js"], + lenient = True, + deps = ["//closure/library/array"], +) + +closure_js_library( + name = "numberformat", + srcs = ["@com_google_javascript_closure_library//:closure/goog/i18n/numberformat.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/i18n:compactnumberformatsymbols", + "//closure/library/i18n:currency", + "//closure/library/i18n:numberformatsymbols", + "//closure/library/math", + "//closure/library/string", + ], +) + +closure_js_library( + name = "numberformatsymbols", + srcs = ["@com_google_javascript_closure_library//:closure/goog/i18n/numberformatsymbols.js"], + lenient = True, +) + +closure_js_library( + name = "numberformatsymbolsext", + srcs = ["@com_google_javascript_closure_library//:closure/goog/i18n/numberformatsymbolsext.js"], + lenient = True, + deps = ["//closure/library/i18n:numberformatsymbols"], +) + +closure_js_library( + name = "ordinalrules", + srcs = ["@com_google_javascript_closure_library//:closure/goog/i18n/ordinalrules.js"], + lenient = True, +) + +closure_js_library( + name = "pluralrules", + srcs = ["@com_google_javascript_closure_library//:closure/goog/i18n/pluralrules.js"], + lenient = True, +) + +closure_js_library( + name = "timezone", + srcs = ["@com_google_javascript_closure_library//:closure/goog/i18n/timezone.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/date:datelike", + "//closure/library/object", + "//closure/library/string", + ], +) + +closure_js_library( + name = "uchar", + srcs = ["@com_google_javascript_closure_library//:closure/goog/i18n/uchar.js"], + lenient = True, +) + +closure_js_library( + name = "ucharnames", + srcs = ["@com_google_javascript_closure_library//:closure/goog/i18n/ucharnames.js"], + lenient = True, + deps = ["//closure/library/i18n:uchar"], +) diff --git a/closure/library/i18n/uchar/BUILD b/closure/library/i18n/uchar/BUILD new file mode 100644 index 0000000000..8d2ca17f71 --- /dev/null +++ b/closure/library/i18n/uchar/BUILD @@ -0,0 +1,49 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":localnamefetcher", + ":namefetcher", + ":remotenamefetcher", + ], +) + +closure_js_library( + name = "localnamefetcher", + srcs = ["@com_google_javascript_closure_library//:closure/goog/i18n/uchar/localnamefetcher.js"], + lenient = True, + deps = [ + "//closure/library/i18n:ucharnames", + "//closure/library/i18n/uchar:namefetcher", + "//closure/library/log", + ], +) + +closure_js_library( + name = "namefetcher", + srcs = ["@com_google_javascript_closure_library//:closure/goog/i18n/uchar/namefetcher.js"], + lenient = True, +) + +closure_js_library( + name = "remotenamefetcher", + srcs = ["@com_google_javascript_closure_library//:closure/goog/i18n/uchar/remotenamefetcher.js"], + lenient = True, + deps = [ + "//closure/library/disposable", + "//closure/library/events", + "//closure/library/i18n:uchar", + "//closure/library/i18n/uchar:namefetcher", + "//closure/library/log", + "//closure/library/net:eventtype", + "//closure/library/net:xhrio", + "//closure/library/uri", + ], +) diff --git a/closure/library/iter/BUILD b/closure/library/iter/BUILD new file mode 100644 index 0000000000..34d6a01ef1 --- /dev/null +++ b/closure/library/iter/BUILD @@ -0,0 +1,34 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":es6", + ":iter", + ], +) + +closure_js_library( + name = "es6", + srcs = ["@com_google_javascript_closure_library//:closure/goog/iter/es6.js"], + lenient = True, + deps = ["//closure/library/iter"], +) + +closure_js_library( + name = "iter", + srcs = ["@com_google_javascript_closure_library//:closure/goog/iter/iter.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/functions", + "//closure/library/math", + ], +) diff --git a/closure/library/json/BUILD b/closure/library/json/BUILD new file mode 100644 index 0000000000..bb3b756456 --- /dev/null +++ b/closure/library/json/BUILD @@ -0,0 +1,53 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":hybrid", + ":json", + ":nativejsonprocessor", + ":processor", + ], +) + +closure_js_library( + name = "hybrid", + srcs = ["@com_google_javascript_closure_library//:closure/goog/json/hybrid.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/json", + ], +) + +closure_js_library( + name = "json", + srcs = ["@com_google_javascript_closure_library//:closure/goog/json/json.js"], + lenient = True, +) + +closure_js_library( + name = "nativejsonprocessor", + srcs = ["@com_google_javascript_closure_library//:closure/goog/json/nativejsonprocessor.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/json:processor", + ], +) + +closure_js_library( + name = "processor", + srcs = ["@com_google_javascript_closure_library//:closure/goog/json/processor.js"], + lenient = True, + deps = [ + "//closure/library/string:parser", + "//closure/library/string:stringifier", + ], +) diff --git a/closure/library/labs/dom/BUILD b/closure/library/labs/dom/BUILD new file mode 100644 index 0000000000..1c0c341da9 --- /dev/null +++ b/closure/library/labs/dom/BUILD @@ -0,0 +1,27 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [":pagevisibilitymonitor"], +) + +closure_js_library( + name = "pagevisibilitymonitor", + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/dom/pagevisibilitymonitor.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/dom:vendor", + "//closure/library/events", + "//closure/library/events:event", + "//closure/library/events:eventtarget", + "//closure/library/events:eventtype", + "//closure/library/memoize", + ], +) diff --git a/closure/library/labs/events/BUILD b/closure/library/labs/events/BUILD new file mode 100644 index 0000000000..625ff4c989 --- /dev/null +++ b/closure/library/labs/events/BUILD @@ -0,0 +1,41 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":nondisposableeventtarget", + ":touch", + ], +) + +closure_js_library( + name = "nondisposableeventtarget", + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/events/nondisposableeventtarget.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/events:event", + "//closure/library/events:listenable", + "//closure/library/events:listenermap", + "//closure/library/object", + ], +) + +closure_js_library( + name = "touch", + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/events/touch.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/events:eventtype", + "//closure/library/string", + ], +) diff --git a/closure/library/labs/format/BUILD b/closure/library/labs/format/BUILD new file mode 100644 index 0000000000..fb84f82475 --- /dev/null +++ b/closure/library/labs/format/BUILD @@ -0,0 +1,26 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [":csv"], +) + +closure_js_library( + name = "csv", + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/format/csv.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/debug:error", + "//closure/library/object", + "//closure/library/string", + "//closure/library/string:newlines", + ], +) diff --git a/closure/library/labs/i18n/BUILD b/closure/library/labs/i18n/BUILD new file mode 100644 index 0000000000..a7a21a7650 --- /dev/null +++ b/closure/library/labs/i18n/BUILD @@ -0,0 +1,39 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":listformat", + ":listsymbols", + ":listsymbolsext", + ], +) + +closure_js_library( + name = "listformat", + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/i18n/listformat.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/labs/i18n:listsymbols", + ], +) + +closure_js_library( + name = "listsymbols", + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/i18n/listsymbols.js"], + lenient = True, +) + +closure_js_library( + name = "listsymbolsext", + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/i18n/listsymbolsext.js"], + lenient = True, + deps = ["//closure/library/labs/i18n:listsymbols"], +) diff --git a/closure/library/labs/iterable/BUILD b/closure/library/labs/iterable/BUILD new file mode 100644 index 0000000000..ce0185a702 --- /dev/null +++ b/closure/library/labs/iterable/BUILD @@ -0,0 +1,18 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [":iterable"], +) + +closure_js_library( + name = "iterable", + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/iterable/iterable.js"], + lenient = True, +) diff --git a/closure/library/labs/mock/BUILD b/closure/library/labs/mock/BUILD new file mode 100644 index 0000000000..42a05d9b87 --- /dev/null +++ b/closure/library/labs/mock/BUILD @@ -0,0 +1,34 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [":verificationmode"], +) + +closure_js_library( + name = "mock", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/mock/mock.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/debug", + "//closure/library/debug:error", + "//closure/library/functions", + "//closure/library/labs/mock:verificationmode", + "//closure/library/object", + ], +) + +closure_js_library( + name = "verificationmode", + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/mock/verificationmode.js"], + lenient = True, +) diff --git a/closure/library/labs/net/BUILD b/closure/library/labs/net/BUILD new file mode 100644 index 0000000000..bfc579adf4 --- /dev/null +++ b/closure/library/labs/net/BUILD @@ -0,0 +1,76 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":image", + ":webchannel", + ":webchanneltransport", + ":webchanneltransportfactory", + ":xhr", + "//closure/library/labs/net/webchannel:all_js", + ], +) + +closure_js_library( + name = "image", + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/net/image.js"], + lenient = True, + deps = [ + "//closure/library/events:eventhandler", + "//closure/library/events:eventtype", + "//closure/library/net:eventtype", + "//closure/library/promise", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "webchannel", + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/net/webchannel.js"], + lenient = True, + deps = [ + "//closure/library/events", + "//closure/library/events:event", + "//closure/library/net:xmlhttpfactory", + ], +) + +closure_js_library( + name = "webchanneltransport", + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/net/webchanneltransport.js"], + lenient = True, +) + +closure_js_library( + name = "webchanneltransportfactory", + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/net/webchanneltransportfactory.js"], + lenient = True, + deps = [ + "//closure/library/functions", + "//closure/library/labs/net/webchannel:webchannelbasetransport", + ], +) + +closure_js_library( + name = "xhr", + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/net/xhr.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/debug:error", + "//closure/library/net:httpstatus", + "//closure/library/net:xmlhttp", + "//closure/library/object", + "//closure/library/promise", + "//closure/library/string", + "//closure/library/uri:utils", + "//closure/library/useragent", + ], +) diff --git a/closure/library/labs/net/webchannel/BUILD b/closure/library/labs/net/webchannel/BUILD new file mode 100644 index 0000000000..08d4d3f5f8 --- /dev/null +++ b/closure/library/labs/net/webchannel/BUILD @@ -0,0 +1,194 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":basetestchannel", + ":channel", + ":channelrequest", + ":connectionstate", + ":environment", + ":forwardchannelrequestpool", + ":netutils", + ":requeststats", + ":webchannelbase", + ":webchannelbasetransport", + ":webchanneldebug", + ":wire", + ":wirev8", + ], +) + +closure_js_library( + name = "basetestchannel", + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/net/webchannel/basetestchannel.js"], + lenient = True, + deps = [ + "//closure/library/labs/net:webchannel", + "//closure/library/labs/net/webchannel:channel", + "//closure/library/labs/net/webchannel:channelrequest", + "//closure/library/labs/net/webchannel:requeststats", + "//closure/library/labs/net/webchannel:webchanneldebug", + ], +) + +closure_js_library( + name = "channel", + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/net/webchannel/channel.js"], + lenient = True, +) + +closure_js_library( + name = "channelrequest", + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/net/webchannel/channelrequest.js"], + lenient = True, + deps = [ + "//closure/library/async:throttle", + "//closure/library/events:eventhandler", + "//closure/library/labs/net:webchannel", + "//closure/library/labs/net/webchannel:channel", + "//closure/library/labs/net/webchannel:environment", + "//closure/library/labs/net/webchannel:requeststats", + "//closure/library/labs/net/webchannel:webchanneldebug", + "//closure/library/net:errorcode", + "//closure/library/net:eventtype", + "//closure/library/net:xmlhttp", + "//closure/library/object", + "//closure/library/string", + "//closure/library/timer", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "connectionstate", + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/net/webchannel/connectionstate.js"], + lenient = True, +) + +closure_js_library( + name = "environment", + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/net/webchannel/environment.js"], + lenient = True, + deps = ["//closure/library/useragent"], +) + +closure_js_library( + name = "forwardchannelrequestpool", + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/net/webchannel/forwardchannelrequestpool.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/labs/net/webchannel:channelrequest", + "//closure/library/labs/net/webchannel:wire", + "//closure/library/string", + "//closure/library/structs:set", + ], +) + +closure_js_library( + name = "netutils", + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/net/webchannel/netutils.js"], + lenient = True, + deps = [ + "//closure/library/labs/net/webchannel:webchanneldebug", + "//closure/library/uri", + ], +) + +closure_js_library( + name = "requeststats", + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/net/webchannel/requeststats.js"], + lenient = True, + deps = [ + "//closure/library/events:event", + "//closure/library/events:eventtarget", + ], +) + +closure_js_library( + name = "webchannelbase", + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/net/webchannel/webchannelbase.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/async:run", + "//closure/library/debug:formatter", + "//closure/library/json", + "//closure/library/labs/net:webchannel", + "//closure/library/labs/net/webchannel:basetestchannel", + "//closure/library/labs/net/webchannel:channel", + "//closure/library/labs/net/webchannel:channelrequest", + "//closure/library/labs/net/webchannel:connectionstate", + "//closure/library/labs/net/webchannel:forwardchannelrequestpool", + "//closure/library/labs/net/webchannel:netutils", + "//closure/library/labs/net/webchannel:requeststats", + "//closure/library/labs/net/webchannel:webchanneldebug", + "//closure/library/labs/net/webchannel:wire", + "//closure/library/labs/net/webchannel:wirev8", + "//closure/library/log", + "//closure/library/net:xhrio", + "//closure/library/net:xmlhttpfactory", + "//closure/library/net/rpc:httpcors", + "//closure/library/object", + "//closure/library/string", + "//closure/library/structs", + "//closure/library/structs:circularbuffer", + "//closure/library/uri", + ], +) + +closure_js_library( + name = "webchannelbasetransport", + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/net/webchannel/webchannelbasetransport.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/events:eventtarget", + "//closure/library/json", + "//closure/library/labs/net:webchannel", + "//closure/library/labs/net:webchanneltransport", + "//closure/library/labs/net/webchannel:channelrequest", + "//closure/library/labs/net/webchannel:webchannelbase", + "//closure/library/log", + "//closure/library/object", + "//closure/library/string", + "//closure/library/string:path", + ], +) + +closure_js_library( + name = "webchanneldebug", + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/net/webchannel/webchanneldebug.js"], + lenient = True, + deps = [ + "//closure/library/json", + "//closure/library/log", + ], +) + +closure_js_library( + name = "wire", + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/net/webchannel/wire.js"], + lenient = True, +) + +closure_js_library( + name = "wirev8", + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/net/webchannel/wirev8.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/json", + "//closure/library/json:nativejsonprocessor", + "//closure/library/labs/net/webchannel:wire", + "//closure/library/structs", + ], +) diff --git a/closure/library/labs/pubsub/BUILD b/closure/library/labs/pubsub/BUILD new file mode 100644 index 0000000000..1033d3a000 --- /dev/null +++ b/closure/library/labs/pubsub/BUILD @@ -0,0 +1,33 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [":broadcastpubsub"], +) + +closure_js_library( + name = "broadcastpubsub", + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/pubsub/broadcastpubsub.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/async:run", + "//closure/library/disposable", + "//closure/library/events:eventhandler", + "//closure/library/events:eventtype", + "//closure/library/log", + "//closure/library/math", + "//closure/library/pubsub", + "//closure/library/storage", + "//closure/library/storage/mechanism:html5localstorage", + "//closure/library/string", + "//closure/library/timer", + "//closure/library/useragent", + ], +) diff --git a/closure/library/labs/storage/BUILD b/closure/library/labs/storage/BUILD new file mode 100644 index 0000000000..5cfe5a7bdb --- /dev/null +++ b/closure/library/labs/storage/BUILD @@ -0,0 +1,26 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [":boundedcollectablestorage"], +) + +closure_js_library( + name = "boundedcollectablestorage", + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/storage/boundedcollectablestorage.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/iter", + "//closure/library/storage:collectablestorage", + "//closure/library/storage:errorcode", + "//closure/library/storage:expiringstorage", + ], +) diff --git a/closure/library/labs/structs/BUILD b/closure/library/labs/structs/BUILD new file mode 100644 index 0000000000..0d4c7caab3 --- /dev/null +++ b/closure/library/labs/structs/BUILD @@ -0,0 +1,22 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [":multimap"], +) + +closure_js_library( + name = "multimap", + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/structs/multimap.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/object", + ], +) diff --git a/closure/library/labs/style/BUILD b/closure/library/labs/style/BUILD new file mode 100644 index 0000000000..1d2a489917 --- /dev/null +++ b/closure/library/labs/style/BUILD @@ -0,0 +1,22 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [":pixeldensitymonitor"], +) + +closure_js_library( + name = "pixeldensitymonitor", + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/style/pixeldensitymonitor.js"], + lenient = True, + deps = [ + "//closure/library/events", + "//closure/library/events:eventtarget", + ], +) diff --git a/closure/library/labs/testing/BUILD b/closure/library/labs/testing/BUILD new file mode 100644 index 0000000000..3f058cf54f --- /dev/null +++ b/closure/library/labs/testing/BUILD @@ -0,0 +1,113 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "assertthat", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/testing/assertthat.js"], + lenient = True, + deps = ["//closure/library/debug:error"], +) + +closure_js_library( + name = "decoratormatcher", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/testing/decoratormatcher.js"], + lenient = True, + deps = ["//closure/library/labs/testing:matcher"], +) + +closure_js_library( + name = "dictionarymatcher", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/testing/dictionarymatcher.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/labs/testing:matcher", + "//closure/library/object", + ], +) + +closure_js_library( + name = "environment", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/testing/environment.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/debug:console", + "//closure/library/promise:thenable", + "//closure/library/testing:jsunit", + "//closure/library/testing:mockclock", + "//closure/library/testing:mockcontrol", + "//closure/library/testing:propertyreplacer", + "//closure/library/testing:testcase", + ], +) + +closure_js_library( + name = "json_fuzzing", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/testing/json_fuzzing.js"], + lenient = True, + deps = [ + "//closure/library/string", + "//closure/library/testing:pseudorandom", + ], +) + +closure_js_library( + name = "logicmatcher", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/testing/logicmatcher.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/labs/testing:matcher", + ], +) + +closure_js_library( + name = "matcher", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/testing/matcher.js"], + lenient = True, +) + +closure_js_library( + name = "numbermatcher", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/testing/numbermatcher.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/labs/testing:matcher", + ], +) + +closure_js_library( + name = "objectmatcher", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/testing/objectmatcher.js"], + lenient = True, + deps = ["//closure/library/labs/testing:matcher"], +) + +closure_js_library( + name = "stringmatcher", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/testing/stringmatcher.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/labs/testing:matcher", + "//closure/library/string", + ], +) diff --git a/closure/library/labs/useragent/BUILD b/closure/library/labs/useragent/BUILD new file mode 100644 index 0000000000..d7a9ddcfe2 --- /dev/null +++ b/closure/library/labs/useragent/BUILD @@ -0,0 +1,79 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":browser", + ":device", + ":engine", + ":platform", + ":util", + ":verifier", + ], +) + +closure_js_library( + name = "browser", + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/useragent/browser.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/labs/useragent:util", + "//closure/library/object", + "//closure/library/string", + ], +) + +closure_js_library( + name = "device", + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/useragent/device.js"], + lenient = True, + deps = ["//closure/library/labs/useragent:util"], +) + +closure_js_library( + name = "engine", + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/useragent/engine.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/labs/useragent:util", + "//closure/library/string", + ], +) + +closure_js_library( + name = "platform", + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/useragent/platform.js"], + lenient = True, + deps = [ + "//closure/library/labs/useragent:util", + "//closure/library/string", + ], +) + +closure_js_library( + name = "test_agents", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/useragent/test_agents.js"], + lenient = True, +) + +closure_js_library( + name = "util", + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/useragent/util.js"], + lenient = True, + deps = ["//closure/library/string"], +) + +closure_js_library( + name = "verifier", + srcs = ["@com_google_javascript_closure_library//:closure/goog/labs/useragent/verifier.js"], + lenient = True, +) diff --git a/closure/library/loader/BUILD b/closure/library/loader/BUILD new file mode 100644 index 0000000000..a5947535e8 --- /dev/null +++ b/closure/library/loader/BUILD @@ -0,0 +1,37 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":abstractmodulemanager", + ":activemodulemanager", + ], +) + +closure_js_library( + name = "abstractmodulemanager", + srcs = ["@com_google_javascript_closure_library//:closure/goog/loader/abstractmodulemanager.js"], + lenient = True, + deps = [ + "//closure/library/disposable", + "//closure/library/module:abstractmoduleloader", + "//closure/library/module:moduleinfo", + "//closure/library/module:moduleloadcallback", + ], +) + +closure_js_library( + name = "activemodulemanager", + srcs = ["@com_google_javascript_closure_library//:closure/goog/loader/activemodulemanager.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/loader:abstractmodulemanager", + ], +) diff --git a/closure/library/locale/BUILD b/closure/library/locale/BUILD new file mode 100644 index 0000000000..790f692efa --- /dev/null +++ b/closure/library/locale/BUILD @@ -0,0 +1,87 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":countries", + ":defaultlocalenameconstants", + ":genericfontnames", + ":genericfontnamesdata", + ":locale", + ":nativenameconstants", + ":scriptToLanguages", + ":timezonedetection", + ":timezonefingerprint", + ":timezonelist", + ], +) + +closure_js_library( + name = "countries", + srcs = ["@com_google_javascript_closure_library//:closure/goog/locale/countries.js"], + lenient = True, +) + +closure_js_library( + name = "defaultlocalenameconstants", + srcs = ["@com_google_javascript_closure_library//:closure/goog/locale/defaultlocalenameconstants.js"], + lenient = True, +) + +closure_js_library( + name = "genericfontnames", + srcs = ["@com_google_javascript_closure_library//:closure/goog/locale/genericfontnames.js"], + lenient = True, +) + +closure_js_library( + name = "genericfontnamesdata", + srcs = ["@com_google_javascript_closure_library//:closure/goog/locale/genericfontnamesdata.js"], + lenient = True, +) + +closure_js_library( + name = "locale", + srcs = ["@com_google_javascript_closure_library//:closure/goog/locale/locale.js"], + lenient = True, + deps = ["//closure/library/locale:nativenameconstants"], +) + +closure_js_library( + name = "nativenameconstants", + srcs = ["@com_google_javascript_closure_library//:closure/goog/locale/nativenameconstants.js"], + lenient = True, +) + +closure_js_library( + name = "scriptToLanguages", + srcs = ["@com_google_javascript_closure_library//:closure/goog/locale/scriptToLanguages.js"], + lenient = True, + deps = ["//closure/library/locale"], +) + +closure_js_library( + name = "timezonedetection", + srcs = ["@com_google_javascript_closure_library//:closure/goog/locale/timezonedetection.js"], + lenient = True, + deps = ["//closure/library/locale:timezonefingerprint"], +) + +closure_js_library( + name = "timezonefingerprint", + srcs = ["@com_google_javascript_closure_library//:closure/goog/locale/timezonefingerprint.js"], + lenient = True, +) + +closure_js_library( + name = "timezonelist", + srcs = ["@com_google_javascript_closure_library//:closure/goog/locale/timezonelist.js"], + lenient = True, + deps = ["//closure/library/locale"], +) diff --git a/closure/library/log/BUILD b/closure/library/log/BUILD new file mode 100644 index 0000000000..bcba28bc68 --- /dev/null +++ b/closure/library/log/BUILD @@ -0,0 +1,23 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [":log"], +) + +closure_js_library( + name = "log", + srcs = ["@com_google_javascript_closure_library//:closure/goog/log/log.js"], + lenient = True, + deps = [ + "//closure/library/debug", + "//closure/library/debug:logger", + "//closure/library/debug:logrecord", + ], +) diff --git a/closure/library/math/BUILD b/closure/library/math/BUILD new file mode 100644 index 0000000000..1d948fcea3 --- /dev/null +++ b/closure/library/math/BUILD @@ -0,0 +1,220 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":affinetransform", + ":bezier", + ":box", + ":coordinate", + ":coordinate3", + ":exponentialbackoff", + ":integer", + ":irect", + ":line", + ":long", + ":math", + ":matrix", + ":path", + ":paths", + ":range", + ":rangeset", + ":rect", + ":size", + ":tdma", + ":vec2", + ":vec3", + "//closure/library/math/interpolator:all_js", + ], +) + +closure_js_library( + name = "affinetransform", + srcs = ["@com_google_javascript_closure_library//:closure/goog/math/affinetransform.js"], + lenient = True, +) + +closure_js_library( + name = "bezier", + srcs = ["@com_google_javascript_closure_library//:closure/goog/math/bezier.js"], + lenient = True, + deps = [ + "//closure/library/math", + "//closure/library/math:coordinate", + ], +) + +closure_js_library( + name = "box", + srcs = ["@com_google_javascript_closure_library//:closure/goog/math/box.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/math:coordinate", + ], +) + +closure_js_library( + name = "coordinate", + srcs = ["@com_google_javascript_closure_library//:closure/goog/math/coordinate.js"], + lenient = True, + deps = ["//closure/library/math"], +) + +closure_js_library( + name = "coordinate3", + srcs = ["@com_google_javascript_closure_library//:closure/goog/math/coordinate3.js"], + lenient = True, +) + +closure_js_library( + name = "exponentialbackoff", + srcs = ["@com_google_javascript_closure_library//:closure/goog/math/exponentialbackoff.js"], + lenient = True, + deps = ["//closure/library/asserts"], +) + +closure_js_library( + name = "integer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/math/integer.js"], + lenient = True, +) + +closure_js_library( + name = "irect", + srcs = ["@com_google_javascript_closure_library//:closure/goog/math/irect.js"], + lenient = True, +) + +closure_js_library( + name = "line", + srcs = ["@com_google_javascript_closure_library//:closure/goog/math/line.js"], + lenient = True, + deps = [ + "//closure/library/math", + "//closure/library/math:coordinate", + ], +) + +closure_js_library( + name = "long", + srcs = ["@com_google_javascript_closure_library//:closure/goog/math/long.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/reflect", + ], +) + +closure_js_library( + name = "math", + srcs = ["@com_google_javascript_closure_library//:closure/goog/math/math.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + ], +) + +closure_js_library( + name = "matrix", + srcs = ["@com_google_javascript_closure_library//:closure/goog/math/matrix.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/math", + "//closure/library/math:size", + "//closure/library/string", + ], +) + +closure_js_library( + name = "path", + srcs = ["@com_google_javascript_closure_library//:closure/goog/math/path.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/math", + "//closure/library/math:affinetransform", + ], +) + +closure_js_library( + name = "paths", + srcs = ["@com_google_javascript_closure_library//:closure/goog/math/paths.js"], + lenient = True, + deps = [ + "//closure/library/math:coordinate", + "//closure/library/math:path", + ], +) + +closure_js_library( + name = "range", + srcs = ["@com_google_javascript_closure_library//:closure/goog/math/range.js"], + lenient = True, + deps = ["//closure/library/asserts"], +) + +closure_js_library( + name = "rangeset", + srcs = ["@com_google_javascript_closure_library//:closure/goog/math/rangeset.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/iter", + "//closure/library/math:range", + ], +) + +closure_js_library( + name = "rect", + srcs = ["@com_google_javascript_closure_library//:closure/goog/math/rect.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/math:box", + "//closure/library/math:coordinate", + "//closure/library/math:irect", + "//closure/library/math:size", + ], +) + +closure_js_library( + name = "size", + srcs = ["@com_google_javascript_closure_library//:closure/goog/math/size.js"], + lenient = True, +) + +closure_js_library( + name = "tdma", + srcs = ["@com_google_javascript_closure_library//:closure/goog/math/tdma.js"], + lenient = True, +) + +closure_js_library( + name = "vec2", + srcs = ["@com_google_javascript_closure_library//:closure/goog/math/vec2.js"], + lenient = True, + deps = [ + "//closure/library/math", + "//closure/library/math:coordinate", + ], +) + +closure_js_library( + name = "vec3", + srcs = ["@com_google_javascript_closure_library//:closure/goog/math/vec3.js"], + lenient = True, + deps = [ + "//closure/library/math", + "//closure/library/math:coordinate3", + ], +) diff --git a/closure/library/math/interpolator/BUILD b/closure/library/math/interpolator/BUILD new file mode 100644 index 0000000000..e9371f6fd7 --- /dev/null +++ b/closure/library/math/interpolator/BUILD @@ -0,0 +1,58 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":interpolator1", + ":linear1", + ":pchip1", + ":spline1", + ], +) + +closure_js_library( + name = "interpolator1", + srcs = ["@com_google_javascript_closure_library//:closure/goog/math/interpolator/interpolator1.js"], + lenient = True, +) + +closure_js_library( + name = "linear1", + srcs = ["@com_google_javascript_closure_library//:closure/goog/math/interpolator/linear1.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/math", + "//closure/library/math/interpolator:interpolator1", + ], +) + +closure_js_library( + name = "pchip1", + srcs = ["@com_google_javascript_closure_library//:closure/goog/math/interpolator/pchip1.js"], + lenient = True, + deps = [ + "//closure/library/math", + "//closure/library/math/interpolator:spline1", + ], +) + +closure_js_library( + name = "spline1", + srcs = ["@com_google_javascript_closure_library//:closure/goog/math/interpolator/spline1.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/math", + "//closure/library/math:tdma", + "//closure/library/math/interpolator:interpolator1", + ], +) diff --git a/closure/library/memoize/BUILD b/closure/library/memoize/BUILD new file mode 100644 index 0000000000..732b32d808 --- /dev/null +++ b/closure/library/memoize/BUILD @@ -0,0 +1,18 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [":memoize"], +) + +closure_js_library( + name = "memoize", + srcs = ["@com_google_javascript_closure_library//:closure/goog/memoize/memoize.js"], + lenient = True, +) diff --git a/closure/library/messaging/BUILD b/closure/library/messaging/BUILD new file mode 100644 index 0000000000..e0d8ad6672 --- /dev/null +++ b/closure/library/messaging/BUILD @@ -0,0 +1,174 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":abstractchannel", + ":bufferedchannel", + ":deferredchannel", + ":loggerclient", + ":loggerserver", + ":messagechannel", + ":messaging", + ":multichannel", + ":portcaller", + ":portchannel", + ":portnetwork", + ":portoperator", + ":respondingchannel", + ], +) + +closure_js_library( + name = "abstractchannel", + srcs = ["@com_google_javascript_closure_library//:closure/goog/messaging/abstractchannel.js"], + lenient = True, + deps = [ + "//closure/library/disposable", + "//closure/library/json", + "//closure/library/log", + "//closure/library/messaging:messagechannel", + ], +) + +closure_js_library( + name = "bufferedchannel", + srcs = ["@com_google_javascript_closure_library//:closure/goog/messaging/bufferedchannel.js"], + lenient = True, + deps = [ + "//closure/library/disposable", + "//closure/library/events", + "//closure/library/log", + "//closure/library/messaging:messagechannel", + "//closure/library/messaging:multichannel", + "//closure/library/timer", + ], +) + +closure_js_library( + name = "deferredchannel", + srcs = ["@com_google_javascript_closure_library//:closure/goog/messaging/deferredchannel.js"], + lenient = True, + deps = [ + "//closure/library/disposable", + "//closure/library/messaging:messagechannel", + ], +) + +closure_js_library( + name = "loggerclient", + srcs = ["@com_google_javascript_closure_library//:closure/goog/messaging/loggerclient.js"], + lenient = True, + deps = [ + "//closure/library/debug", + "//closure/library/debug:logger", + "//closure/library/disposable", + ], +) + +closure_js_library( + name = "loggerserver", + srcs = ["@com_google_javascript_closure_library//:closure/goog/messaging/loggerserver.js"], + lenient = True, + deps = [ + "//closure/library/disposable", + "//closure/library/log", + ], +) + +closure_js_library( + name = "messagechannel", + srcs = ["@com_google_javascript_closure_library//:closure/goog/messaging/messagechannel.js"], + lenient = True, +) + +closure_js_library( + name = "messaging", + srcs = ["@com_google_javascript_closure_library//:closure/goog/messaging/messaging.js"], + lenient = True, +) + +closure_js_library( + name = "multichannel", + srcs = ["@com_google_javascript_closure_library//:closure/goog/messaging/multichannel.js"], + lenient = True, + deps = [ + "//closure/library/disposable", + "//closure/library/log", + "//closure/library/messaging:messagechannel", + "//closure/library/object", + ], +) + +closure_js_library( + name = "portcaller", + srcs = ["@com_google_javascript_closure_library//:closure/goog/messaging/portcaller.js"], + lenient = True, + deps = [ + "//closure/library/disposable", + "//closure/library/messaging:deferredchannel", + "//closure/library/messaging:portchannel", + "//closure/library/messaging:portnetwork", + "//closure/library/object", + "//third_party/closure/library/mochikit/async:deferred", + ], +) + +closure_js_library( + name = "portchannel", + srcs = ["@com_google_javascript_closure_library//:closure/goog/messaging/portchannel.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/debug", + "//closure/library/events", + "//closure/library/events:eventtype", + "//closure/library/json", + "//closure/library/log", + "//closure/library/messaging:abstractchannel", + "//closure/library/messaging:deferredchannel", + "//closure/library/object", + "//closure/library/string", + "//closure/library/timer", + "//closure/library/useragent", + "//third_party/closure/library/mochikit/async:deferred", + ], +) + +closure_js_library( + name = "portnetwork", + srcs = ["@com_google_javascript_closure_library//:closure/goog/messaging/portnetwork.js"], + lenient = True, +) + +closure_js_library( + name = "portoperator", + srcs = ["@com_google_javascript_closure_library//:closure/goog/messaging/portoperator.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/disposable", + "//closure/library/log", + "//closure/library/messaging:portchannel", + "//closure/library/messaging:portnetwork", + "//closure/library/object", + ], +) + +closure_js_library( + name = "respondingchannel", + srcs = ["@com_google_javascript_closure_library//:closure/goog/messaging/respondingchannel.js"], + lenient = True, + deps = [ + "//closure/library/disposable", + "//closure/library/log", + "//closure/library/messaging:multichannel", + "//closure/library/promise", + ], +) diff --git a/closure/library/module/BUILD b/closure/library/module/BUILD new file mode 100644 index 0000000000..a4601881f0 --- /dev/null +++ b/closure/library/module/BUILD @@ -0,0 +1,131 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":abstractmoduleloader", + ":basemodule", + ":loader", + ":module", + ":moduleinfo", + ":moduleloadcallback", + ":moduleloader", + ":modulemanager", + ], +) + +closure_js_library( + name = "abstractmoduleloader", + srcs = ["@com_google_javascript_closure_library//:closure/goog/module/abstractmoduleloader.js"], + lenient = True, + deps = [ + "//closure/library/module", + "//closure/library/module:moduleinfo", + ], +) + +closure_js_library( + name = "basemodule", + srcs = ["@com_google_javascript_closure_library//:closure/goog/module/basemodule.js"], + lenient = True, + deps = [ + "//closure/library/disposable", + "//closure/library/module", + ], +) + +closure_js_library( + name = "loader", + srcs = ["@com_google_javascript_closure_library//:closure/goog/module/loader.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:tagname", + "//closure/library/module", + "//closure/library/object", + "//closure/library/timer", + ], +) + +closure_js_library( + name = "module", + srcs = ["@com_google_javascript_closure_library//:closure/goog/module/module.js"], + lenient = True, +) + +closure_js_library( + name = "moduleinfo", + srcs = ["@com_google_javascript_closure_library//:closure/goog/module/moduleinfo.js"], + lenient = True, + deps = [ + "//closure/library/async:nexttick", + "//closure/library/disposable", + "//closure/library/functions", + "//closure/library/html:trustedresourceurl", + "//closure/library/module", + "//closure/library/module:basemodule", + "//closure/library/module:moduleloadcallback", + ], +) + +closure_js_library( + name = "moduleloadcallback", + srcs = ["@com_google_javascript_closure_library//:closure/goog/module/moduleloadcallback.js"], + lenient = True, + deps = [ + "//closure/library/debug:entrypointregistry", + "//closure/library/module", + ], +) + +closure_js_library( + name = "moduleloader", + srcs = ["@com_google_javascript_closure_library//:closure/goog/module/moduleloader.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/events", + "//closure/library/events:event", + "//closure/library/events:eventhandler", + "//closure/library/events:eventid", + "//closure/library/events:eventtarget", + "//closure/library/html:trustedresourceurl", + "//closure/library/labs/useragent:browser", + "//closure/library/log", + "//closure/library/module:abstractmoduleloader", + "//closure/library/net:bulkloader", + "//closure/library/net:eventtype", + "//closure/library/net:jsloader", + "//closure/library/timer", + "//closure/library/useragent", + "//closure/library/useragent:product", + ], +) + +closure_js_library( + name = "modulemanager", + srcs = ["@com_google_javascript_closure_library//:closure/goog/module/modulemanager.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/debug:tracer", + "//closure/library/disposable", + "//closure/library/loader:abstractmodulemanager", + "//closure/library/loader:activemodulemanager", + "//closure/library/log", + "//closure/library/module", + "//closure/library/module:moduleinfo", + "//closure/library/module:moduleloadcallback", + "//closure/library/object", + "//third_party/closure/library/mochikit/async:deferred", + ], +) diff --git a/closure/library/net/BUILD b/closure/library/net/BUILD new file mode 100644 index 0000000000..57ee0e43e4 --- /dev/null +++ b/closure/library/net/BUILD @@ -0,0 +1,492 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":browserchannel", + ":browsertestchannel", + ":bulkloader", + ":bulkloaderhelper", + ":channeldebug", + ":channelrequest", + ":cookies", + ":corsxmlhttpfactory", + ":crossdomainrpc", + ":errorcode", + ":eventtype", + ":fetchxmlhttpfactory", + ":filedownloader", + ":httpstatus", + ":httpstatusname", + ":iframeio", + ":iframeloadmonitor", + ":imageloader", + ":ipaddress", + ":jsloader", + ":jsonp", + ":mockiframeio", + ":multiiframeloadmonitor", + ":networkstatusmonitor", + ":networktester", + ":tmpnetwork", + ":websocket", + ":wrapperxmlhttpfactory", + ":xhrio", + ":xhriopool", + ":xhrlike", + ":xhrmanager", + ":xmlhttp", + ":xmlhttpfactory", + "//closure/library/net/rpc:all_js", + "//closure/library/net/streams:all_js", + "//closure/library/net/xpc:all_js", + ], +) + +closure_js_library( + name = "browserchannel", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/browserchannel.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/debug:formatter", + "//closure/library/events:event", + "//closure/library/events:eventtarget", + "//closure/library/json", + "//closure/library/json:nativejsonprocessor", + "//closure/library/log", + "//closure/library/net:browsertestchannel", + "//closure/library/net:channeldebug", + "//closure/library/net:channelrequest", + "//closure/library/net:tmpnetwork", + "//closure/library/net:xhrio", + "//closure/library/object", + "//closure/library/string", + "//closure/library/structs", + "//closure/library/structs:circularbuffer", + "//closure/library/uri", + ], +) + +closure_js_library( + name = "browsertestchannel", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/browsertestchannel.js"], + lenient = True, + deps = [ + "//closure/library/json:nativejsonprocessor", + "//closure/library/net:channelrequest", + "//closure/library/net:tmpnetwork", + "//closure/library/string:parser", + ], +) + +closure_js_library( + name = "bulkloader", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/bulkloader.js"], + lenient = True, + deps = [ + "//closure/library/events:eventhandler", + "//closure/library/events:eventtarget", + "//closure/library/log", + "//closure/library/net:bulkloaderhelper", + "//closure/library/net:eventtype", + "//closure/library/net:xhrio", + ], +) + +closure_js_library( + name = "bulkloaderhelper", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/bulkloaderhelper.js"], + lenient = True, + deps = ["//closure/library/disposable"], +) + +closure_js_library( + name = "channeldebug", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/channeldebug.js"], + lenient = True, + deps = [ + "//closure/library/json", + "//closure/library/log", + ], +) + +closure_js_library( + name = "channelrequest", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/channelrequest.js"], + lenient = True, + deps = [ + "//closure/library/async:throttle", + "//closure/library/dom:safe", + "//closure/library/dom:tagname", + "//closure/library/events:eventhandler", + "//closure/library/html:safeurl", + "//closure/library/html:uncheckedconversions", + "//closure/library/net:errorcode", + "//closure/library/net:eventtype", + "//closure/library/net:xmlhttp", + "//closure/library/object", + "//closure/library/string", + "//closure/library/string:const", + "//closure/library/timer", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "cookies", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/cookies.js"], + lenient = True, + deps = ["//closure/library/string"], +) + +closure_js_library( + name = "corsxmlhttpfactory", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/corsxmlhttpfactory.js"], + lenient = True, + deps = [ + "//closure/library/net:httpstatus", + "//closure/library/net:xhrlike", + "//closure/library/net:xmlhttp", + "//closure/library/net:xmlhttpfactory", + ], +) + +closure_js_library( + name = "crossdomainrpc", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/crossdomainrpc.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/dom:safe", + "//closure/library/dom:tagname", + "//closure/library/events", + "//closure/library/events:eventtarget", + "//closure/library/events:eventtype", + "//closure/library/html:safehtml", + "//closure/library/log", + "//closure/library/net:eventtype", + "//closure/library/net:httpstatus", + "//closure/library/string", + "//closure/library/uri", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "errorcode", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/errorcode.js"], + lenient = True, +) + +closure_js_library( + name = "eventtype", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/eventtype.js"], + lenient = True, +) + +closure_js_library( + name = "fetchxmlhttpfactory", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/fetchxmlhttpfactory.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/events:eventtarget", + "//closure/library/functions", + "//closure/library/log", + "//closure/library/net:xhrlike", + "//closure/library/net:xmlhttpfactory", + ], +) + +closure_js_library( + name = "filedownloader", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/filedownloader.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/crypt:hash32", + "//closure/library/debug:error", + "//closure/library/disposable", + "//closure/library/events", + "//closure/library/events:eventhandler", + "//closure/library/fs", + "//closure/library/fs:entry", + "//closure/library/fs:error", + "//closure/library/fs:filesaver", + "//closure/library/net:eventtype", + "//closure/library/net:xhrio", + "//closure/library/net:xhriopool", + "//closure/library/object", + "//third_party/closure/library/mochikit/async:deferred", + ], +) + +closure_js_library( + name = "httpstatus", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/httpstatus.js"], + lenient = True, +) + +closure_js_library( + name = "httpstatusname", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/httpstatusname.js"], + lenient = True, +) + +closure_js_library( + name = "iframeio", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/iframeio.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/debug:formatter", + "//closure/library/dom", + "//closure/library/dom:inputtype", + "//closure/library/dom:safe", + "//closure/library/dom:tagname", + "//closure/library/events", + "//closure/library/events:event", + "//closure/library/events:eventtarget", + "//closure/library/events:eventtype", + "//closure/library/html:uncheckedconversions", + "//closure/library/json", + "//closure/library/log", + "//closure/library/net:errorcode", + "//closure/library/net:eventtype", + "//closure/library/reflect", + "//closure/library/string", + "//closure/library/string:const", + "//closure/library/structs", + "//closure/library/timer", + "//closure/library/uri", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "iframeloadmonitor", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/iframeloadmonitor.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/events", + "//closure/library/events:eventtarget", + "//closure/library/events:eventtype", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "imageloader", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/imageloader.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/dom", + "//closure/library/dom:tagname", + "//closure/library/events:eventhandler", + "//closure/library/events:eventtarget", + "//closure/library/events:eventtype", + "//closure/library/net:eventtype", + "//closure/library/object", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "ipaddress", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/ipaddress.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/math:integer", + "//closure/library/object", + "//closure/library/string", + ], +) + +closure_js_library( + name = "jsloader", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/jsloader.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/debug:error", + "//closure/library/dom", + "//closure/library/dom:safe", + "//closure/library/dom:tagname", + "//closure/library/html:trustedresourceurl", + "//closure/library/object", + "//third_party/closure/library/mochikit/async:deferred", + ], +) + +closure_js_library( + name = "jsonp", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/jsonp.js"], + lenient = True, + deps = [ + "//closure/library/html:trustedresourceurl", + "//closure/library/net:jsloader", + "//closure/library/object", + ], +) + +closure_js_library( + name = "mockiframeio", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/mockiframeio.js"], + lenient = True, + deps = [ + "//closure/library/events:eventtarget", + "//closure/library/net:errorcode", + "//closure/library/net:eventtype", + "//closure/library/net:iframeio", + ], +) + +closure_js_library( + name = "multiiframeloadmonitor", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/multiiframeloadmonitor.js"], + lenient = True, + deps = [ + "//closure/library/events", + "//closure/library/net:iframeloadmonitor", + ], +) + +closure_js_library( + name = "networkstatusmonitor", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/networkstatusmonitor.js"], + lenient = True, + deps = ["//closure/library/events:listenable"], +) + +closure_js_library( + name = "networktester", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/networktester.js"], + lenient = True, + deps = [ + "//closure/library/log", + "//closure/library/timer", + "//closure/library/uri", + ], +) + +closure_js_library( + name = "tmpnetwork", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/tmpnetwork.js"], + lenient = True, + deps = [ + "//closure/library/net:channeldebug", + "//closure/library/uri", + ], +) + +closure_js_library( + name = "websocket", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/websocket.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/debug:entrypointregistry", + "//closure/library/events", + "//closure/library/events:event", + "//closure/library/events:eventtarget", + "//closure/library/log", + "//closure/library/timer", + ], +) + +closure_js_library( + name = "wrapperxmlhttpfactory", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/wrapperxmlhttpfactory.js"], + lenient = True, + deps = [ + "//closure/library/net:xhrlike", + "//closure/library/net:xmlhttpfactory", + ], +) + +closure_js_library( + name = "xhrio", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/xhrio.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/debug:entrypointregistry", + "//closure/library/events:eventtarget", + "//closure/library/json:hybrid", + "//closure/library/log", + "//closure/library/net:errorcode", + "//closure/library/net:eventtype", + "//closure/library/net:httpstatus", + "//closure/library/net:xmlhttp", + "//closure/library/string", + "//closure/library/structs", + "//closure/library/structs:map", + "//closure/library/timer", + "//closure/library/uri:utils", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "xhriopool", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/xhriopool.js"], + lenient = True, + deps = [ + "//closure/library/net:xhrio", + "//closure/library/structs:prioritypool", + ], +) + +closure_js_library( + name = "xhrlike", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/xhrlike.js"], + lenient = True, +) + +closure_js_library( + name = "xhrmanager", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/xhrmanager.js"], + lenient = True, + deps = [ + "//closure/library/events", + "//closure/library/events:event", + "//closure/library/events:eventhandler", + "//closure/library/events:eventtarget", + "//closure/library/net:errorcode", + "//closure/library/net:eventtype", + "//closure/library/net:xhrio", + "//closure/library/net:xhriopool", + "//closure/library/structs:map", + ], +) + +closure_js_library( + name = "xmlhttp", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/xmlhttp.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/net:wrapperxmlhttpfactory", + "//closure/library/net:xmlhttpfactory", + ], +) + +closure_js_library( + name = "xmlhttpfactory", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/xmlhttpfactory.js"], + lenient = True, + deps = ["//closure/library/net:xhrlike"], +) diff --git a/closure/library/net/rpc/BUILD b/closure/library/net/rpc/BUILD new file mode 100644 index 0000000000..b1f5ba1fbb --- /dev/null +++ b/closure/library/net/rpc/BUILD @@ -0,0 +1,24 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [":httpcors"], +) + +closure_js_library( + name = "httpcors", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/rpc/httpcors.js"], + lenient = True, + deps = [ + "//closure/library/object", + "//closure/library/string", + "//closure/library/uri", + "//closure/library/uri:utils", + ], +) diff --git a/closure/library/net/streams/BUILD b/closure/library/net/streams/BUILD new file mode 100644 index 0000000000..5d2013e8e1 --- /dev/null +++ b/closure/library/net/streams/BUILD @@ -0,0 +1,141 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":base64pbstreamparser", + ":base64streamdecoder", + ":jsonstreamparser", + ":nodereadablestream", + ":pbjsonstreamparser", + ":pbstreamparser", + ":streamfactory", + ":streamparser", + ":utils", + ":xhrnodereadablestream", + ":xhrstreamreader", + ], +) + +closure_js_library( + name = "base64pbstreamparser", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/streams/base64pbstreamparser.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/net/streams:base64streamdecoder", + "//closure/library/net/streams:pbstreamparser", + "//closure/library/net/streams:streamparser", + ], +) + +closure_js_library( + name = "base64streamdecoder", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/streams/base64streamdecoder.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/crypt:base64", + ], +) + +closure_js_library( + name = "jsonstreamparser", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/streams/jsonstreamparser.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/net/streams:streamparser", + "//closure/library/net/streams:utils", + ], +) + +closure_js_library( + name = "nodereadablestream", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/streams/nodereadablestream.js"], + lenient = True, +) + +closure_js_library( + name = "pbjsonstreamparser", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/streams/pbjsonstreamparser.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/net/streams:jsonstreamparser", + "//closure/library/net/streams:streamparser", + "//closure/library/net/streams:utils", + ], +) + +closure_js_library( + name = "pbstreamparser", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/streams/pbstreamparser.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/net/streams:streamparser", + ], +) + +closure_js_library( + name = "streamfactory", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/streams/streamfactory.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/net/streams:xhrnodereadablestream", + "//closure/library/net/streams:xhrstreamreader", + ], +) + +closure_js_library( + name = "streamparser", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/streams/streamparser.js"], + lenient = True, +) + +closure_js_library( + name = "utils", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/streams/utils.js"], + lenient = True, +) + +closure_js_library( + name = "xhrnodereadablestream", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/streams/xhrnodereadablestream.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/log", + "//closure/library/net/streams:nodereadablestream", + "//closure/library/net/streams:xhrstreamreader", + ], +) + +closure_js_library( + name = "xhrstreamreader", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/streams/xhrstreamreader.js"], + lenient = True, + deps = [ + "//closure/library/events:eventhandler", + "//closure/library/log", + "//closure/library/net:errorcode", + "//closure/library/net:eventtype", + "//closure/library/net:httpstatus", + "//closure/library/net:xhrio", + "//closure/library/net:xmlhttp", + "//closure/library/net/streams:base64pbstreamparser", + "//closure/library/net/streams:jsonstreamparser", + "//closure/library/net/streams:pbjsonstreamparser", + "//closure/library/net/streams:pbstreamparser", + "//closure/library/string", + "//closure/library/useragent", + ], +) diff --git a/closure/library/net/xpc/BUILD b/closure/library/net/xpc/BUILD new file mode 100644 index 0000000000..11d6fe5d9c --- /dev/null +++ b/closure/library/net/xpc/BUILD @@ -0,0 +1,179 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":crosspagechannel", + ":crosspagechannelrole", + ":directtransport", + ":frameelementmethodtransport", + ":iframepollingtransport", + ":iframerelaytransport", + ":nativemessagingtransport", + ":nixtransport", + ":relay", + ":transport", + ":xpc", + ], +) + +closure_js_library( + name = "crosspagechannel", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/xpc/crosspagechannel.js"], + lenient = True, + deps = [ + "//closure/library/async:delay", + "//closure/library/disposable", + "//closure/library/dom", + "//closure/library/dom:tagname", + "//closure/library/events", + "//closure/library/events:eventhandler", + "//closure/library/events:eventtype", + "//closure/library/json", + "//closure/library/log", + "//closure/library/messaging:abstractchannel", + "//closure/library/net/xpc", + "//closure/library/net/xpc:crosspagechannelrole", + "//closure/library/net/xpc:directtransport", + "//closure/library/net/xpc:frameelementmethodtransport", + "//closure/library/net/xpc:iframepollingtransport", + "//closure/library/net/xpc:iframerelaytransport", + "//closure/library/net/xpc:nativemessagingtransport", + "//closure/library/net/xpc:nixtransport", + "//closure/library/string", + "//closure/library/uri", + "//closure/library/uri:utils", + "//closure/library/useragent", + "//third_party/closure/library/mochikit/async:deferred", + ], +) + +closure_js_library( + name = "crosspagechannelrole", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/xpc/crosspagechannelrole.js"], + lenient = True, +) + +closure_js_library( + name = "directtransport", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/xpc/directtransport.js"], + lenient = True, + deps = [ + "//closure/library/events:eventhandler", + "//closure/library/log", + "//closure/library/net/xpc", + "//closure/library/net/xpc:crosspagechannelrole", + "//closure/library/net/xpc:transport", + "//closure/library/object", + "//closure/library/timer", + "//third_party/closure/library/mochikit/async:deferred", + ], +) + +closure_js_library( + name = "frameelementmethodtransport", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/xpc/frameelementmethodtransport.js"], + lenient = True, + deps = [ + "//closure/library/log", + "//closure/library/net/xpc", + "//closure/library/net/xpc:crosspagechannelrole", + "//closure/library/net/xpc:transport", + ], +) + +closure_js_library( + name = "iframepollingtransport", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/xpc/iframepollingtransport.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/dom", + "//closure/library/dom:safe", + "//closure/library/dom:tagname", + "//closure/library/log", + "//closure/library/net/xpc", + "//closure/library/net/xpc:crosspagechannelrole", + "//closure/library/net/xpc:transport", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "iframerelaytransport", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/xpc/iframerelaytransport.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/dom:safe", + "//closure/library/dom:tagname", + "//closure/library/events", + "//closure/library/html:safehtml", + "//closure/library/log", + "//closure/library/net/xpc", + "//closure/library/net/xpc:transport", + "//closure/library/string", + "//closure/library/string:const", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "nativemessagingtransport", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/xpc/nativemessagingtransport.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/events", + "//closure/library/events:eventhandler", + "//closure/library/log", + "//closure/library/net/xpc", + "//closure/library/net/xpc:crosspagechannelrole", + "//closure/library/net/xpc:transport", + "//closure/library/timer", + "//third_party/closure/library/mochikit/async:deferred", + ], +) + +closure_js_library( + name = "nixtransport", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/xpc/nixtransport.js"], + lenient = True, + deps = [ + "//closure/library/log", + "//closure/library/net/xpc", + "//closure/library/net/xpc:crosspagechannelrole", + "//closure/library/net/xpc:transport", + "//closure/library/reflect", + ], +) + +closure_js_library( + name = "relay", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/xpc/relay.js"], + lenient = True, +) + +closure_js_library( + name = "transport", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/xpc/transport.js"], + lenient = True, + deps = [ + "//closure/library/disposable", + "//closure/library/dom", + "//closure/library/net/xpc", + ], +) + +closure_js_library( + name = "xpc", + srcs = ["@com_google_javascript_closure_library//:closure/goog/net/xpc/xpc.js"], + lenient = True, + deps = ["//closure/library/log"], +) diff --git a/closure/library/object/BUILD b/closure/library/object/BUILD new file mode 100644 index 0000000000..51bdcd76e1 --- /dev/null +++ b/closure/library/object/BUILD @@ -0,0 +1,18 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [":object"], +) + +closure_js_library( + name = "object", + srcs = ["@com_google_javascript_closure_library//:closure/goog/object/object.js"], + lenient = True, +) diff --git a/closure/library/positioning/BUILD b/closure/library/positioning/BUILD new file mode 100644 index 0000000000..981c9113c2 --- /dev/null +++ b/closure/library/positioning/BUILD @@ -0,0 +1,124 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":absoluteposition", + ":abstractposition", + ":anchoredposition", + ":anchoredviewportposition", + ":clientposition", + ":menuanchoredposition", + ":positioning", + ":viewportclientposition", + ":viewportposition", + ], +) + +closure_js_library( + name = "absoluteposition", + srcs = ["@com_google_javascript_closure_library//:closure/goog/positioning/absoluteposition.js"], + lenient = True, + deps = [ + "//closure/library/math:coordinate", + "//closure/library/positioning", + "//closure/library/positioning:abstractposition", + ], +) + +closure_js_library( + name = "abstractposition", + srcs = ["@com_google_javascript_closure_library//:closure/goog/positioning/abstractposition.js"], + lenient = True, +) + +closure_js_library( + name = "anchoredposition", + srcs = ["@com_google_javascript_closure_library//:closure/goog/positioning/anchoredposition.js"], + lenient = True, + deps = [ + "//closure/library/positioning", + "//closure/library/positioning:abstractposition", + ], +) + +closure_js_library( + name = "anchoredviewportposition", + srcs = ["@com_google_javascript_closure_library//:closure/goog/positioning/anchoredviewportposition.js"], + lenient = True, + deps = [ + "//closure/library/positioning", + "//closure/library/positioning:anchoredposition", + ], +) + +closure_js_library( + name = "clientposition", + srcs = ["@com_google_javascript_closure_library//:closure/goog/positioning/clientposition.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/math:coordinate", + "//closure/library/positioning", + "//closure/library/positioning:abstractposition", + "//closure/library/style", + ], +) + +closure_js_library( + name = "menuanchoredposition", + srcs = ["@com_google_javascript_closure_library//:closure/goog/positioning/menuanchoredposition.js"], + lenient = True, + deps = [ + "//closure/library/positioning", + "//closure/library/positioning:anchoredviewportposition", + ], +) + +closure_js_library( + name = "positioning", + srcs = ["@com_google_javascript_closure_library//:closure/goog/positioning/positioning.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:tagname", + "//closure/library/math:coordinate", + "//closure/library/math:rect", + "//closure/library/math:size", + "//closure/library/style", + "//closure/library/style:bidi", + ], +) + +closure_js_library( + name = "viewportclientposition", + srcs = ["@com_google_javascript_closure_library//:closure/goog/positioning/viewportclientposition.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/math:coordinate", + "//closure/library/positioning", + "//closure/library/positioning:clientposition", + "//closure/library/style", + ], +) + +closure_js_library( + name = "viewportposition", + srcs = ["@com_google_javascript_closure_library//:closure/goog/positioning/viewportposition.js"], + lenient = True, + deps = [ + "//closure/library/math:coordinate", + "//closure/library/positioning", + "//closure/library/positioning:abstractposition", + "//closure/library/style", + ], +) diff --git a/closure/library/promise/BUILD b/closure/library/promise/BUILD new file mode 100644 index 0000000000..2b2c05a40e --- /dev/null +++ b/closure/library/promise/BUILD @@ -0,0 +1,51 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":promise", + ":resolver", + ":thenable", + ], +) + +closure_js_library( + name = "promise", + srcs = ["@com_google_javascript_closure_library//:closure/goog/promise/promise.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/async:freelist", + "//closure/library/async:nexttick", + "//closure/library/async:run", + "//closure/library/debug:error", + "//closure/library/promise:resolver", + "//closure/library/promise:thenable", + ], +) + +closure_js_library( + name = "resolver", + srcs = ["@com_google_javascript_closure_library//:closure/goog/promise/resolver.js"], + lenient = True, +) + +closure_js_library( + name = "testsuiteadapter", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/promise/testsuiteadapter.js"], + lenient = True, + deps = ["//closure/library/promise"], +) + +closure_js_library( + name = "thenable", + srcs = ["@com_google_javascript_closure_library//:closure/goog/promise/thenable.js"], + lenient = True, +) diff --git a/closure/library/proto/BUILD b/closure/library/proto/BUILD new file mode 100644 index 0000000000..e1ad8070ca --- /dev/null +++ b/closure/library/proto/BUILD @@ -0,0 +1,32 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":proto", + ":serializer", + ], +) + +closure_js_library( + name = "proto", + srcs = ["@com_google_javascript_closure_library//:closure/goog/proto/proto.js"], + lenient = True, + deps = ["//closure/library/proto:serializer"], +) + +closure_js_library( + name = "serializer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/proto/serializer.js"], + lenient = True, + deps = [ + "//closure/library/json", + "//closure/library/string", + ], +) diff --git a/closure/library/proto2/BUILD b/closure/library/proto2/BUILD new file mode 100644 index 0000000000..cff8b6f141 --- /dev/null +++ b/closure/library/proto2/BUILD @@ -0,0 +1,132 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":descriptor", + ":fielddescriptor", + ":lazydeserializer", + ":message", + ":objectserializer", + ":pbliteserializer", + ":serializer", + ":textformatserializer", + ":util", + ], +) + +closure_js_library( + name = "descriptor", + srcs = ["@com_google_javascript_closure_library//:closure/goog/proto2/descriptor.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/object", + "//closure/library/string", + ], +) + +closure_js_library( + name = "fielddescriptor", + srcs = ["@com_google_javascript_closure_library//:closure/goog/proto2/fielddescriptor.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/string", + ], +) + +closure_js_library( + name = "lazydeserializer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/proto2/lazydeserializer.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/proto2:message", + "//closure/library/proto2:serializer", + ], +) + +closure_js_library( + name = "message", + srcs = ["@com_google_javascript_closure_library//:closure/goog/proto2/message.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/proto2:descriptor", + "//closure/library/proto2:fielddescriptor", + ], +) + +closure_js_library( + name = "objectserializer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/proto2/objectserializer.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/proto2:fielddescriptor", + "//closure/library/proto2:serializer", + "//closure/library/string", + ], +) + +closure_js_library( + name = "pbliteserializer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/proto2/pbliteserializer.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/proto2:fielddescriptor", + "//closure/library/proto2:lazydeserializer", + "//closure/library/proto2:serializer", + ], +) + +closure_js_library( + name = "serializer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/proto2/serializer.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/proto2:fielddescriptor", + "//closure/library/proto2:message", + ], +) + +closure_js_library( + name = "test.pb", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/proto2/test.pb.js"], + lenient = True, + deps = ["//closure/library/proto2:message"], +) + +closure_js_library( + name = "textformatserializer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/proto2/textformatserializer.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/math", + "//closure/library/object", + "//closure/library/proto2:fielddescriptor", + "//closure/library/proto2:message", + "//closure/library/proto2:serializer", + "//closure/library/string", + ], +) + +closure_js_library( + name = "util", + srcs = ["@com_google_javascript_closure_library//:closure/goog/proto2/util.js"], + lenient = True, + deps = ["//closure/library/asserts"], +) diff --git a/closure/library/pubsub/BUILD b/closure/library/pubsub/BUILD new file mode 100644 index 0000000000..bdd5d50d93 --- /dev/null +++ b/closure/library/pubsub/BUILD @@ -0,0 +1,43 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":pubsub", + ":topicid", + ":typedpubsub", + ], +) + +closure_js_library( + name = "pubsub", + srcs = ["@com_google_javascript_closure_library//:closure/goog/pubsub/pubsub.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/async:run", + "//closure/library/disposable", + ], +) + +closure_js_library( + name = "topicid", + srcs = ["@com_google_javascript_closure_library//:closure/goog/pubsub/topicid.js"], + lenient = True, +) + +closure_js_library( + name = "typedpubsub", + srcs = ["@com_google_javascript_closure_library//:closure/goog/pubsub/typedpubsub.js"], + lenient = True, + deps = [ + "//closure/library/disposable", + "//closure/library/pubsub", + ], +) diff --git a/closure/library/reflect/BUILD b/closure/library/reflect/BUILD new file mode 100644 index 0000000000..035e16bcc3 --- /dev/null +++ b/closure/library/reflect/BUILD @@ -0,0 +1,18 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [":reflect"], +) + +closure_js_library( + name = "reflect", + srcs = ["@com_google_javascript_closure_library//:closure/goog/reflect/reflect.js"], + lenient = True, +) diff --git a/closure/library/regenerate.py b/closure/library/regenerate.py new file mode 100755 index 0000000000..6cddb047d4 --- /dev/null +++ b/closure/library/regenerate.py @@ -0,0 +1,263 @@ +#!/usr/bin/env python +# Copyright 2018 The Closure Rules Authors. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +"""Closure Library BUILD definition generator. + +This script produces a build rule for each file in the Closure Library. +It also produces coarse-grained targets (e.g. //closure/library) since +the Closure Compiler can skip unused modules very quickly. Fine-grained +build targets are useful in situations without the Closure Compiler. +""" + +import collections +import itertools +import os +import re +import subprocess +import sys + +HEADER = '# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD"\n\n' +REPO = 'com_google_javascript_closure_library' + +PROVIDE_PATTERN = re.compile(r'^goog\.(?:provide|module)\([\'"]([^\'"]+)', re.M) +REQUIRE_PATTERN = re.compile( + r'^(?:(?:const|var) .* = )?goog\.require\([\'"]([^\'"]+)', re.M) + +TESTONLY_PATTERN = re.compile(r'^goog\.setTestOnly\(', re.M) +TESTONLY_PATHS_PATTERN = re.compile(r'(?:%s)' % '|'.join(( + r'^closure/goog/labs/testing/', # forgot to use goog.setTestOnly() + r'^closure/goog/testing/net/mockiframeio\.js$', +))) + +IGNORE_PATHS_PATTERN = re.compile(r'(?:%s)' % '|'.join(( + r'_perf', + r'_test', + r'/demos/', + r'/testdata/', + r'^closure/goog/base\.js$', + r'^closure/goog/deps\.js$', + r'^closure/goog/transitionalforwarddeclarations\.js$', + r'^closure/goog/transpile\.js$', + r'^closure/goog/debug_loader_integration_tests/', + r'^third_party/closure/goog/osapi', +))) + +UNITTEST_PATTERN = re.compile('|'.join(( + r'goog\.require\(.goog\.testing\.testSuite', + r'^function (?:setUp|tearDown)', +)), re.M) + +MASTER = 'closure/library/BUILD' +MASTER_EXCLUDES = ('/ui', '/labs', 'third_party/') +MASTER_EXTRA = ''' +filegroup( + name = "base", + srcs = [ + "@{0}//:closure/goog/base.js", + "@{0}//:closure/goog/transitionalforwarddeclarations.js", + ], +) +closure_js_library( + name = "deps", + srcs = ["@{0}//:closure/goog/deps.js"], + lenient = True, +) +closure_js_library( + name = "transpile", + srcs = ["@{0}//:closure/goog/transpile.js"], + lenient = True, +) +closure_css_library( + name = "css", + srcs = ["@{0}//:css_files"], +) +py_binary( + name = "regenerate", + srcs = ["regenerate.py"], + args = ["$(location @{0}//:closure/goog/base.js)"], + data = [ + "@{0}", + "@{0}//:closure/goog/base.js", + ], + tags = [ + "local", + "manual", + ], + visibility = ["//visibility:private"], +) +'''.format(REPO) + + +def mkdir(path): + try: + os.makedirs(path) + except OSError as e: + if e.errno != 17: # File exists + raise + + +def find(prefix): + for base, _, names in os.walk(prefix): + for name in names: + yield os.path.join(base, name) + + +def normalize(path): + return path.replace('closure/goog', 'closure/library') + + +def file2build(path): + return os.path.join(os.path.dirname(normalize(path)), 'BUILD') + + +def file2name(path): + return os.path.splitext(os.path.basename(path))[0] + + +def file2dep(path): + path = normalize(path) + return '//%s:%s' % (os.path.dirname(path), file2name(path)) + + +def main(basejs, outdir): + assert outdir.startswith('/') + + # cd @com_google_javascript_closure_library// + os.chdir(os.path.join(os.path.dirname(basejs), '../..')) + + # files=$(find {third_party,}closure/goog | sort) + files = sorted(itertools.chain(find('closure/goog'), + find('third_party/closure/goog'))) + + # Find JavaScript sources and determine their relationships. + jslibs = [] + jstestlibs = set() # jslibs with goog.setTestOnly() + jsrawlibs = set() # jslibs without goog.provide() or goog.module() + file2requires = {} # e.g. closure/goog/array/array.js -> goog.asserts + provide2file = {} # e.g. goog.asserts -> closure/goog/asserts/asserts.js + for f in files: + if IGNORE_PATHS_PATTERN.search(f) is not None: + continue + file2requires[f] = [] + if f.endswith('.js'): + with open(f) as fh: + data = fh.read() + provides = [m.group(1) for m in PROVIDE_PATTERN.finditer(data)] + if provides: + if (TESTONLY_PATHS_PATTERN.search(f) is not None or + TESTONLY_PATTERN.search(data) is not None): + if UNITTEST_PATTERN.search(data) is not None: + continue + jstestlibs.add(f) + for provide in provides: + provide2file[provide] = f + file2requires[f] = sorted(set( + m.group(1) for m in REQUIRE_PATTERN.finditer(data))) + else: + jsrawlibs.add(f) + jslibs.append(f) + + # Write a build rule for each JavaScript source file. + builds = collections.defaultdict(list) + for f in jslibs: + deps = set() + for ns in file2requires[f]: + if ns not in provide2file: + sys.stderr.write('%s needs %s but not provided\n' % (f, ns)) + return 1 + deps.add(provide2file[ns]) + build = file2build(f) + name = file2name(f) + rule = 'closure_js_library(name="%s",lenient=True,srcs=["@%s//:%s"],' % ( + name, REPO, f) + if deps: + rule += 'deps=[%s],' % ','.join('"%s"' % file2dep(dep) for dep in deps) + if f in jsrawlibs: + rule += 'no_closure_library = True,' + if f in jstestlibs: + rule += 'testonly = True,' + builds[build].append(rule + ')') + + # Production source modules are grouped by folder for convenience, + # which percolates upwards in the directory hierarchy towards + # //closure/library which exports it all. Test modules are only + # grouped under the //closure/library:testing label. + alls = collections.defaultdict(set) # group rules for :all_js + testall = set() # group rules for //closure/library:testing + for f in jslibs: + if f in jsrawlibs: + continue + if f in jstestlibs: + testall.add(file2dep(f)) + continue + alls[file2build(f)].add(':%s' % file2name(f)) + dn = os.path.dirname # lazy kludge due to third_party dichotomy + dirname = dn(normalize(f)) + for parent in (os.path.join(dn(dirname), 'BUILD'), + os.path.join(dn(dn(dirname)), 'BUILD'), + os.path.join(dn(dn(dn(dirname))), 'BUILD'), + 'closure/library/BUILD'): + if parent in builds: + alls[parent].add('//%s:all_js' % dirname) + break + + # Remove labels by substring for modules like goog.ui and goog.labs + # which we don't want exported by default in the top-level BUILD file. + alls[MASTER] = [t for t in alls[MASTER] + if not any(ss in t for ss in MASTER_EXCLUDES)] + testall = [t for t in testall + if not any(ss in t for ss in MASTER_EXCLUDES)] + + # Make ninja edits to the BUILD files we wrote earlier. + for build in builds: + if alls[build]: + alljs = 'library' if build == MASTER else 'all_js' + rule = 'closure_js_library(name="%s",exports=[%s])' % ( + alljs, ','.join('"%s"' % d for d in alls[build])) + builds[build].insert(0, rule) + if build == MASTER: + builds[build].append(MASTER_EXTRA) + builds[build].insert(1, 'closure_js_library(' + + 'name="testing",' + + 'testonly=True,' + + 'exports=[%s],' % ','.join('"%s"' % d + for d in testall) + + ')') + builds[build].insert( + 0, 'load("//closure:defs.bzl", "closure_css_library")\n' + + 'load("//closure:defs.bzl", "closure_js_library")') + else: + builds[build].insert( + 0, 'load("//closure:defs.bzl", "closure_js_library")') + builds[build].insert(0, 'licenses(["notice"])') + builds[build].insert( + 0, 'package(default_visibility = ["//visibility:public"])') + + # Now actually write the BUILD files to disk. + for build in sorted(builds.keys()): + path = os.path.join(outdir, build) + mkdir(os.path.dirname(path)) + with open(path, 'w') as fh: + fh.write(HEADER) + fh.write('\n\n'.join(builds[build])) + fh.write('\n') + + # Fix the formatting of those BUILD files. + os.chdir(outdir) + return subprocess.call(['buildifier'] + sorted(builds.keys())) + + +if __name__ == '__main__': + sys.exit(main(*sys.argv[1:])) diff --git a/closure/library/result/BUILD b/closure/library/result/BUILD new file mode 100644 index 0000000000..04fa6052ee --- /dev/null +++ b/closure/library/result/BUILD @@ -0,0 +1,67 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":deferredadaptor", + ":dependentresult", + ":result_interface", + ":resultutil", + ":simpleresult", + ], +) + +closure_js_library( + name = "deferredadaptor", + srcs = ["@com_google_javascript_closure_library//:closure/goog/result/deferredadaptor.js"], + lenient = True, + deps = [ + "//closure/library/result:result_interface", + "//closure/library/result:resultutil", + "//third_party/closure/library/mochikit/async:deferred", + ], +) + +closure_js_library( + name = "dependentresult", + srcs = ["@com_google_javascript_closure_library//:closure/goog/result/dependentresult.js"], + lenient = True, + deps = ["//closure/library/result:result_interface"], +) + +closure_js_library( + name = "result_interface", + srcs = ["@com_google_javascript_closure_library//:closure/goog/result/result_interface.js"], + lenient = True, + deps = ["//closure/library/promise:thenable"], +) + +closure_js_library( + name = "resultutil", + srcs = ["@com_google_javascript_closure_library//:closure/goog/result/resultutil.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/result:dependentresult", + "//closure/library/result:result_interface", + "//closure/library/result:simpleresult", + ], +) + +closure_js_library( + name = "simpleresult", + srcs = ["@com_google_javascript_closure_library//:closure/goog/result/simpleresult.js"], + lenient = True, + deps = [ + "//closure/library/debug:error", + "//closure/library/promise", + "//closure/library/promise:thenable", + "//closure/library/result:result_interface", + ], +) diff --git a/closure/library/soy/BUILD b/closure/library/soy/BUILD new file mode 100644 index 0000000000..e73e201be7 --- /dev/null +++ b/closure/library/soy/BUILD @@ -0,0 +1,62 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":data", + ":renderer", + ":soy", + ], +) + +closure_js_library( + name = "data", + srcs = ["@com_google_javascript_closure_library//:closure/goog/soy/data.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/html:safehtml", + "//closure/library/html:safescript", + "//closure/library/html:safestyle", + "//closure/library/html:safestylesheet", + "//closure/library/html:safeurl", + "//closure/library/html:trustedresourceurl", + "//closure/library/html:uncheckedconversions", + "//closure/library/i18n:bidi", + "//closure/library/string:const", + "//closure/library/uri", + ], +) + +closure_js_library( + name = "renderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/soy/renderer.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/soy", + "//closure/library/soy:data", + ], +) + +closure_js_library( + name = "soy", + srcs = ["@com_google_javascript_closure_library//:closure/goog/soy/soy.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:nodetype", + "//closure/library/dom:tagname", + "//closure/library/html:legacyconversions", + "//closure/library/soy:data", + "//closure/library/string", + ], +) diff --git a/closure/library/spell/BUILD b/closure/library/spell/BUILD new file mode 100644 index 0000000000..6e5905c417 --- /dev/null +++ b/closure/library/spell/BUILD @@ -0,0 +1,24 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [":spellcheck"], +) + +closure_js_library( + name = "spellcheck", + srcs = ["@com_google_javascript_closure_library//:closure/goog/spell/spellcheck.js"], + lenient = True, + deps = [ + "//closure/library/events:event", + "//closure/library/events:eventtarget", + "//closure/library/structs:set", + "//closure/library/timer", + ], +) diff --git a/closure/library/stats/BUILD b/closure/library/stats/BUILD new file mode 100644 index 0000000000..7d7495adc2 --- /dev/null +++ b/closure/library/stats/BUILD @@ -0,0 +1,24 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [":basicstat"], +) + +closure_js_library( + name = "basicstat", + srcs = ["@com_google_javascript_closure_library//:closure/goog/stats/basicstat.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/log", + "//closure/library/string:stringformat", + "//closure/library/structs:circularbuffer", + ], +) diff --git a/closure/library/storage/BUILD b/closure/library/storage/BUILD new file mode 100644 index 0000000000..8bca103c53 --- /dev/null +++ b/closure/library/storage/BUILD @@ -0,0 +1,102 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":collectablestorage", + ":encryptedstorage", + ":errorcode", + ":expiringstorage", + ":richstorage", + ":storage", + "//closure/library/storage/mechanism:all_js", + ], +) + +closure_js_library( + name = "collectablestorage", + srcs = ["@com_google_javascript_closure_library//:closure/goog/storage/collectablestorage.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/iter", + "//closure/library/storage:errorcode", + "//closure/library/storage:expiringstorage", + "//closure/library/storage:richstorage", + ], +) + +closure_js_library( + name = "collectablestoragetester", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/storage/collectablestoragetester.js"], + lenient = True, + deps = ["//closure/library/testing:asserts"], +) + +closure_js_library( + name = "encryptedstorage", + srcs = ["@com_google_javascript_closure_library//:closure/goog/storage/encryptedstorage.js"], + lenient = True, + deps = [ + "//closure/library/crypt", + "//closure/library/crypt:arc4", + "//closure/library/crypt:base64", + "//closure/library/crypt:sha1", + "//closure/library/json", + "//closure/library/storage:collectablestorage", + "//closure/library/storage:errorcode", + "//closure/library/storage:richstorage", + ], +) + +closure_js_library( + name = "errorcode", + srcs = ["@com_google_javascript_closure_library//:closure/goog/storage/errorcode.js"], + lenient = True, +) + +closure_js_library( + name = "expiringstorage", + srcs = ["@com_google_javascript_closure_library//:closure/goog/storage/expiringstorage.js"], + lenient = True, + deps = ["//closure/library/storage:richstorage"], +) + +closure_js_library( + name = "richstorage", + srcs = ["@com_google_javascript_closure_library//:closure/goog/storage/richstorage.js"], + lenient = True, + deps = [ + "//closure/library/storage", + "//closure/library/storage:errorcode", + ], +) + +closure_js_library( + name = "storage", + srcs = ["@com_google_javascript_closure_library//:closure/goog/storage/storage.js"], + lenient = True, + deps = [ + "//closure/library/json", + "//closure/library/storage:errorcode", + ], +) + +closure_js_library( + name = "storagetester", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/storage/storagetester.js"], + lenient = True, + deps = [ + "//closure/library/storage", + "//closure/library/structs:map", + "//closure/library/testing:asserts", + ], +) diff --git a/closure/library/storage/mechanism/BUILD b/closure/library/storage/mechanism/BUILD new file mode 100644 index 0000000000..8b11bc2d12 --- /dev/null +++ b/closure/library/storage/mechanism/BUILD @@ -0,0 +1,172 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":errorcode", + ":errorhandlingmechanism", + ":html5localstorage", + ":html5sessionstorage", + ":html5webstorage", + ":ieuserdata", + ":iterablemechanism", + ":mechanism", + ":mechanismfactory", + ":prefixedmechanism", + ], +) + +closure_js_library( + name = "errorcode", + srcs = ["@com_google_javascript_closure_library//:closure/goog/storage/mechanism/errorcode.js"], + lenient = True, +) + +closure_js_library( + name = "errorhandlingmechanism", + srcs = ["@com_google_javascript_closure_library//:closure/goog/storage/mechanism/errorhandlingmechanism.js"], + lenient = True, + deps = ["//closure/library/storage/mechanism"], +) + +closure_js_library( + name = "html5localstorage", + srcs = ["@com_google_javascript_closure_library//:closure/goog/storage/mechanism/html5localstorage.js"], + lenient = True, + deps = ["//closure/library/storage/mechanism:html5webstorage"], +) + +closure_js_library( + name = "html5sessionstorage", + srcs = ["@com_google_javascript_closure_library//:closure/goog/storage/mechanism/html5sessionstorage.js"], + lenient = True, + deps = ["//closure/library/storage/mechanism:html5webstorage"], +) + +closure_js_library( + name = "html5webstorage", + srcs = ["@com_google_javascript_closure_library//:closure/goog/storage/mechanism/html5webstorage.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/iter", + "//closure/library/storage/mechanism:errorcode", + "//closure/library/storage/mechanism:iterablemechanism", + ], +) + +closure_js_library( + name = "ieuserdata", + srcs = ["@com_google_javascript_closure_library//:closure/goog/storage/mechanism/ieuserdata.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/iter", + "//closure/library/storage/mechanism:errorcode", + "//closure/library/storage/mechanism:iterablemechanism", + "//closure/library/structs:map", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "iterablemechanism", + srcs = ["@com_google_javascript_closure_library//:closure/goog/storage/mechanism/iterablemechanism.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/iter", + "//closure/library/storage/mechanism", + ], +) + +closure_js_library( + name = "iterablemechanismtester", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/storage/mechanism/iterablemechanismtester.js"], + lenient = True, + deps = [ + "//closure/library/iter", + "//closure/library/testing:asserts", + ], +) + +closure_js_library( + name = "mechanism", + srcs = ["@com_google_javascript_closure_library//:closure/goog/storage/mechanism/mechanism.js"], + lenient = True, +) + +closure_js_library( + name = "mechanismfactory", + srcs = ["@com_google_javascript_closure_library//:closure/goog/storage/mechanism/mechanismfactory.js"], + lenient = True, + deps = [ + "//closure/library/storage/mechanism:html5localstorage", + "//closure/library/storage/mechanism:html5sessionstorage", + "//closure/library/storage/mechanism:ieuserdata", + "//closure/library/storage/mechanism:prefixedmechanism", + ], +) + +closure_js_library( + name = "mechanismseparationtester", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/storage/mechanism/mechanismseparationtester.js"], + lenient = True, + deps = [ + "//closure/library/iter", + "//closure/library/storage/mechanism:mechanismtestdefinition", + "//closure/library/testing:asserts", + ], +) + +closure_js_library( + name = "mechanismsharingtester", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/storage/mechanism/mechanismsharingtester.js"], + lenient = True, + deps = [ + "//closure/library/iter", + "//closure/library/storage/mechanism:mechanismtestdefinition", + "//closure/library/testing:asserts", + ], +) + +closure_js_library( + name = "mechanismtestdefinition", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/storage/mechanism/mechanismtestdefinition.js"], + lenient = True, +) + +closure_js_library( + name = "mechanismtester", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/storage/mechanism/mechanismtester.js"], + lenient = True, + deps = [ + "//closure/library/storage/mechanism:errorcode", + "//closure/library/testing:asserts", + "//closure/library/useragent", + "//closure/library/useragent:product", + "//closure/library/useragent:product_isversion", + ], +) + +closure_js_library( + name = "prefixedmechanism", + srcs = ["@com_google_javascript_closure_library//:closure/goog/storage/mechanism/prefixedmechanism.js"], + lenient = True, + deps = [ + "//closure/library/iter", + "//closure/library/storage/mechanism:iterablemechanism", + ], +) diff --git a/closure/library/string/BUILD b/closure/library/string/BUILD new file mode 100644 index 0000000000..0447891417 --- /dev/null +++ b/closure/library/string/BUILD @@ -0,0 +1,97 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":const", + ":linkify", + ":newlines", + ":parser", + ":path", + ":string", + ":stringbuffer", + ":stringformat", + ":stringifier", + ":typedstring", + ], +) + +closure_js_library( + name = "const", + srcs = ["@com_google_javascript_closure_library//:closure/goog/string/const.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/string:typedstring", + ], +) + +closure_js_library( + name = "linkify", + srcs = ["@com_google_javascript_closure_library//:closure/goog/string/linkify.js"], + lenient = True, + deps = [ + "//closure/library/html:safehtml", + "//closure/library/string", + ], +) + +closure_js_library( + name = "newlines", + srcs = ["@com_google_javascript_closure_library//:closure/goog/string/newlines.js"], + lenient = True, + deps = ["//closure/library/array"], +) + +closure_js_library( + name = "parser", + srcs = ["@com_google_javascript_closure_library//:closure/goog/string/parser.js"], + lenient = True, +) + +closure_js_library( + name = "path", + srcs = ["@com_google_javascript_closure_library//:closure/goog/string/path.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/string", + ], +) + +closure_js_library( + name = "string", + srcs = ["@com_google_javascript_closure_library//:closure/goog/string/string.js"], + lenient = True, +) + +closure_js_library( + name = "stringbuffer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/string/stringbuffer.js"], + lenient = True, +) + +closure_js_library( + name = "stringformat", + srcs = ["@com_google_javascript_closure_library//:closure/goog/string/stringformat.js"], + lenient = True, + deps = ["//closure/library/string"], +) + +closure_js_library( + name = "stringifier", + srcs = ["@com_google_javascript_closure_library//:closure/goog/string/stringifier.js"], + lenient = True, +) + +closure_js_library( + name = "typedstring", + srcs = ["@com_google_javascript_closure_library//:closure/goog/string/typedstring.js"], + lenient = True, +) diff --git a/closure/library/structs/BUILD b/closure/library/structs/BUILD new file mode 100644 index 0000000000..7e31d32011 --- /dev/null +++ b/closure/library/structs/BUILD @@ -0,0 +1,193 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":avltree", + ":circularbuffer", + ":collection", + ":heap", + ":inversionmap", + ":linkedmap", + ":map", + ":node", + ":pool", + ":prioritypool", + ":priorityqueue", + ":quadtree", + ":queue", + ":set", + ":simplepool", + ":stringset", + ":structs", + ":treenode", + ":trie", + ], +) + +closure_js_library( + name = "avltree", + srcs = ["@com_google_javascript_closure_library//:closure/goog/structs/avltree.js"], + lenient = True, + deps = ["//closure/library/structs:collection"], +) + +closure_js_library( + name = "circularbuffer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/structs/circularbuffer.js"], + lenient = True, +) + +closure_js_library( + name = "collection", + srcs = ["@com_google_javascript_closure_library//:closure/goog/structs/collection.js"], + lenient = True, +) + +closure_js_library( + name = "heap", + srcs = ["@com_google_javascript_closure_library//:closure/goog/structs/heap.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/object", + "//closure/library/structs:node", + ], +) + +closure_js_library( + name = "inversionmap", + srcs = ["@com_google_javascript_closure_library//:closure/goog/structs/inversionmap.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + ], +) + +closure_js_library( + name = "linkedmap", + srcs = ["@com_google_javascript_closure_library//:closure/goog/structs/linkedmap.js"], + lenient = True, + deps = ["//closure/library/structs:map"], +) + +closure_js_library( + name = "map", + srcs = ["@com_google_javascript_closure_library//:closure/goog/structs/map.js"], + lenient = True, + deps = ["//closure/library/iter"], +) + +closure_js_library( + name = "node", + srcs = ["@com_google_javascript_closure_library//:closure/goog/structs/node.js"], + lenient = True, +) + +closure_js_library( + name = "pool", + srcs = ["@com_google_javascript_closure_library//:closure/goog/structs/pool.js"], + lenient = True, + deps = [ + "//closure/library/disposable", + "//closure/library/structs:queue", + "//closure/library/structs:set", + ], +) + +closure_js_library( + name = "prioritypool", + srcs = ["@com_google_javascript_closure_library//:closure/goog/structs/prioritypool.js"], + lenient = True, + deps = [ + "//closure/library/structs:pool", + "//closure/library/structs:priorityqueue", + ], +) + +closure_js_library( + name = "priorityqueue", + srcs = ["@com_google_javascript_closure_library//:closure/goog/structs/priorityqueue.js"], + lenient = True, + deps = ["//closure/library/structs:heap"], +) + +closure_js_library( + name = "quadtree", + srcs = ["@com_google_javascript_closure_library//:closure/goog/structs/quadtree.js"], + lenient = True, + deps = ["//closure/library/math:coordinate"], +) + +closure_js_library( + name = "queue", + srcs = ["@com_google_javascript_closure_library//:closure/goog/structs/queue.js"], + lenient = True, + deps = ["//closure/library/array"], +) + +closure_js_library( + name = "set", + srcs = ["@com_google_javascript_closure_library//:closure/goog/structs/set.js"], + lenient = True, + deps = [ + "//closure/library/structs", + "//closure/library/structs:collection", + "//closure/library/structs:map", + ], +) + +closure_js_library( + name = "simplepool", + srcs = ["@com_google_javascript_closure_library//:closure/goog/structs/simplepool.js"], + lenient = True, + deps = ["//closure/library/disposable"], +) + +closure_js_library( + name = "stringset", + srcs = ["@com_google_javascript_closure_library//:closure/goog/structs/stringset.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/iter", + ], +) + +closure_js_library( + name = "structs", + srcs = ["@com_google_javascript_closure_library//:closure/goog/structs/structs.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/object", + ], +) + +closure_js_library( + name = "treenode", + srcs = ["@com_google_javascript_closure_library//:closure/goog/structs/treenode.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/structs:node", + ], +) + +closure_js_library( + name = "trie", + srcs = ["@com_google_javascript_closure_library//:closure/goog/structs/trie.js"], + lenient = True, + deps = [ + "//closure/library/object", + "//closure/library/structs", + ], +) diff --git a/closure/library/style/BUILD b/closure/library/style/BUILD new file mode 100644 index 0000000000..6a7918c47a --- /dev/null +++ b/closure/library/style/BUILD @@ -0,0 +1,107 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":bidi", + ":cursor", + ":style", + ":transform", + ":transition", + ], +) + +closure_js_library( + name = "bidi", + srcs = ["@com_google_javascript_closure_library//:closure/goog/style/bidi.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/style", + "//closure/library/useragent", + "//closure/library/useragent:platform", + "//closure/library/useragent:product", + "//closure/library/useragent:product_isversion", + ], +) + +closure_js_library( + name = "cursor", + srcs = ["@com_google_javascript_closure_library//:closure/goog/style/cursor.js"], + lenient = True, + deps = ["//closure/library/useragent"], +) + +closure_js_library( + name = "style", + srcs = ["@com_google_javascript_closure_library//:closure/goog/style/style.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:nodetype", + "//closure/library/dom:tagname", + "//closure/library/dom:vendor", + "//closure/library/html:safestylesheet", + "//closure/library/math:box", + "//closure/library/math:coordinate", + "//closure/library/math:rect", + "//closure/library/math:size", + "//closure/library/object", + "//closure/library/reflect", + "//closure/library/string", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "stylescrollbartester", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/style/stylescrollbartester.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/dom:tagname", + "//closure/library/style", + "//closure/library/testing:asserts", + ], +) + +closure_js_library( + name = "transform", + srcs = ["@com_google_javascript_closure_library//:closure/goog/style/transform.js"], + lenient = True, + deps = [ + "//closure/library/functions", + "//closure/library/math:coordinate", + "//closure/library/math:coordinate3", + "//closure/library/style", + "//closure/library/useragent", + "//closure/library/useragent:product_isversion", + ], +) + +closure_js_library( + name = "transition", + srcs = ["@com_google_javascript_closure_library//:closure/goog/style/transition.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:safe", + "//closure/library/dom:tagname", + "//closure/library/dom:vendor", + "//closure/library/functions", + "//closure/library/html:safehtml", + "//closure/library/style", + "//closure/library/useragent", + ], +) diff --git a/closure/library/testing/BUILD b/closure/library/testing/BUILD new file mode 100644 index 0000000000..0fd1148796 --- /dev/null +++ b/closure/library/testing/BUILD @@ -0,0 +1,489 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [":jstdasyncwrapper"], +) + +closure_js_library( + name = "assertionfailure", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/assertionfailure.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/testing:asserts", + ], +) + +closure_js_library( + name = "asserts", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/asserts.js"], + lenient = True, + deps = ["//closure/library/testing:jsunitexception"], +) + +closure_js_library( + name = "asynctestcase", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/asynctestcase.js"], + lenient = True, + deps = [ + "//closure/library/testing:asserts", + "//closure/library/testing:testcase", + ], +) + +closure_js_library( + name = "benchmark", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/benchmark.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/dom:tagname", + "//closure/library/testing:performancetable", + "//closure/library/testing:performancetimer", + "//closure/library/testing:testcase", + ], +) + +closure_js_library( + name = "continuationtestcase", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/continuationtestcase.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/events:eventhandler", + "//closure/library/testing:asserts", + "//closure/library/testing:testcase", + ], +) + +closure_js_library( + name = "deferredtestcase", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/deferredtestcase.js"], + lenient = True, + deps = [ + "//closure/library/testing:asynctestcase", + "//closure/library/testing:testcase", + ], +) + +closure_js_library( + name = "dom", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/dom.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/dom:inputtype", + "//closure/library/dom:nodeiterator", + "//closure/library/dom:nodetype", + "//closure/library/dom:tagiterator", + "//closure/library/dom:tagname", + "//closure/library/iter", + "//closure/library/object", + "//closure/library/string", + "//closure/library/style", + "//closure/library/testing:asserts", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "expectedfailures", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/expectedfailures.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/debug:divconsole", + "//closure/library/dom", + "//closure/library/dom:tagname", + "//closure/library/events", + "//closure/library/events:eventtype", + "//closure/library/log", + "//closure/library/style", + "//closure/library/testing:asserts", + "//closure/library/testing:jsunitexception", + "//closure/library/testing:testcase", + ], +) + +closure_js_library( + name = "functionmock", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/functionmock.js"], + lenient = True, + deps = [ + "//closure/library/object", + "//closure/library/testing:loosemock", + "//closure/library/testing:mock", + "//closure/library/testing:propertyreplacer", + "//closure/library/testing:strictmock", + ], +) + +closure_js_library( + name = "graphics", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/graphics.js"], + lenient = True, + deps = [ + "//closure/library/graphics:path", + "//closure/library/testing:asserts", + ], +) + +closure_js_library( + name = "jstdasyncwrapper", + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/jstdasyncwrapper.js"], + lenient = True, + deps = ["//closure/library/promise"], +) + +closure_js_library( + name = "jstdtestcaseadapter", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/jstdtestcaseadapter.js"], + lenient = True, + deps = [ + "//closure/library/async:run", + "//closure/library/functions", + "//closure/library/testing:jstdasyncwrapper", + "//closure/library/testing:jsunit", + "//closure/library/testing:testcase", + ], +) + +closure_js_library( + name = "jsunit", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/jsunit.js"], + lenient = True, + deps = [ + "//closure/library/dom:tagname", + "//closure/library/testing:testcase", + "//closure/library/testing:testrunner", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "jsunitexception", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/jsunitexception.js"], + lenient = True, + deps = ["//closure/library/testing:stacktrace"], +) + +closure_js_library( + name = "loosemock", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/loosemock.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/structs:map", + "//closure/library/testing:mock", + ], +) + +closure_js_library( + name = "mock", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/mock.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/object", + "//closure/library/testing:jsunitexception", + "//closure/library/testing:mockinterface", + "//closure/library/testing:mockmatchers", + ], +) + +closure_js_library( + name = "mockclassfactory", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/mockclassfactory.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/object", + "//closure/library/testing:loosemock", + "//closure/library/testing:mockmatchers", + "//closure/library/testing:strictmock", + "//closure/library/testing:testcase", + ], +) + +closure_js_library( + name = "mockclock", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/mockclock.js"], + lenient = True, + deps = [ + "//closure/library/async:run", + "//closure/library/disposable", + "//closure/library/promise", + "//closure/library/promise:thenable", + "//closure/library/testing:propertyreplacer", + "//closure/library/testing/events", + ], +) + +closure_js_library( + name = "mockcontrol", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/mockcontrol.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/testing:functionmock", + "//closure/library/testing:loosemock", + "//closure/library/testing:strictmock", + ], +) + +closure_js_library( + name = "mockinterface", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/mockinterface.js"], + lenient = True, +) + +closure_js_library( + name = "mockmatchers", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/mockmatchers.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/dom", + "//closure/library/testing:asserts", + ], +) + +closure_js_library( + name = "mockrandom", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/mockrandom.js"], + lenient = True, + deps = ["//closure/library/disposable"], +) + +closure_js_library( + name = "mockrange", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/mockrange.js"], + lenient = True, + deps = [ + "//closure/library/dom:abstractrange", + "//closure/library/testing:loosemock", + ], +) + +closure_js_library( + name = "mockstorage", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/mockstorage.js"], + lenient = True, + deps = ["//closure/library/structs:map"], +) + +closure_js_library( + name = "mockuseragent", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/mockuseragent.js"], + lenient = True, + deps = [ + "//closure/library/disposable", + "//closure/library/labs/useragent:util", + "//closure/library/testing:propertyreplacer", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "multitestrunner", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/multitestrunner.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/dom:tagname", + "//closure/library/events:eventhandler", + "//closure/library/functions", + "//closure/library/object", + "//closure/library/string", + "//closure/library/testing:testcase", + "//closure/library/timer", + "//closure/library/ui:component", + "//closure/library/ui:serverchart", + "//closure/library/ui:tablesorter", + ], +) + +closure_js_library( + name = "objectpropertystring", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/objectpropertystring.js"], + lenient = True, +) + +closure_js_library( + name = "performancetable", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/performancetable.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:tagname", + "//closure/library/testing:performancetimer", + ], +) + +closure_js_library( + name = "performancetimer", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/performancetimer.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/math", + "//third_party/closure/library/mochikit/async:deferred", + ], +) + +closure_js_library( + name = "propertyreplacer", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/propertyreplacer.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/testing:objectpropertystring", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "pseudorandom", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/pseudorandom.js"], + lenient = True, + deps = ["//closure/library/disposable"], +) + +closure_js_library( + name = "recordfunction", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/recordfunction.js"], + lenient = True, + deps = ["//closure/library/testing:asserts"], +) + +closure_js_library( + name = "shardingtestcase", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/shardingtestcase.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/testing:testcase", + ], +) + +closure_js_library( + name = "singleton", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/singleton.js"], + lenient = True, +) + +closure_js_library( + name = "stacktrace", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/stacktrace.js"], + lenient = True, +) + +closure_js_library( + name = "strictmock", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/strictmock.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/testing:mock", + ], +) + +closure_js_library( + name = "testcase", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/testcase.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:tagname", + "//closure/library/json", + "//closure/library/object", + "//closure/library/promise", + "//closure/library/promise:thenable", + "//closure/library/testing:asserts", + "//closure/library/testing:jsunitexception", + ], +) + +closure_js_library( + name = "testqueue", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/testqueue.js"], + lenient = True, +) + +closure_js_library( + name = "testrunner", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/testrunner.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/dom:safe", + "//closure/library/dom:tagname", + "//closure/library/testing:testcase", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "testsuite", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/testsuite.js"], + lenient = True, + deps = [ + "//closure/library/labs/testing:environment", + "//closure/library/testing:testcase", + ], +) diff --git a/closure/library/testing/async/BUILD b/closure/library/testing/async/BUILD new file mode 100644 index 0000000000..aad811014d --- /dev/null +++ b/closure/library/testing/async/BUILD @@ -0,0 +1,21 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "mockcontrol", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/async/mockcontrol.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/debug", + "//closure/library/testing:asserts", + "//closure/library/testing:mockmatchers", + "//third_party/closure/library/mochikit/async:deferred", + ], +) diff --git a/closure/library/testing/editor/BUILD b/closure/library/testing/editor/BUILD new file mode 100644 index 0000000000..8f84d266e9 --- /dev/null +++ b/closure/library/testing/editor/BUILD @@ -0,0 +1,51 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "dom", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/editor/dom.js"], + lenient = True, + deps = [ + "//closure/library/dom:nodetype", + "//closure/library/dom:tagiterator", + "//closure/library/iter", + "//closure/library/string", + "//closure/library/testing:asserts", + ], +) + +closure_js_library( + name = "fieldmock", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/editor/fieldmock.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/dom:range", + "//closure/library/editor:field", + "//closure/library/testing:loosemock", + "//closure/library/testing:mockmatchers", + ], +) + +closure_js_library( + name = "testhelper", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/editor/testhelper.js"], + lenient = True, + deps = [ + "//closure/library/disposable", + "//closure/library/dom", + "//closure/library/dom:range", + "//closure/library/editor:browserfeature", + "//closure/library/editor:node", + "//closure/library/editor/plugins:abstractbubbleplugin", + "//closure/library/testing:dom", + ], +) diff --git a/closure/library/testing/events/BUILD b/closure/library/testing/events/BUILD new file mode 100644 index 0000000000..c79b9c7160 --- /dev/null +++ b/closure/library/testing/events/BUILD @@ -0,0 +1,58 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "eventobserver", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/events/eventobserver.js"], + lenient = True, + deps = ["//closure/library/array"], +) + +closure_js_library( + name = "events", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/events/events.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/disposable", + "//closure/library/dom:nodetype", + "//closure/library/events", + "//closure/library/events:browserevent", + "//closure/library/events:browserfeature", + "//closure/library/events:eventtarget", + "//closure/library/events:eventtype", + "//closure/library/events:keycodes", + "//closure/library/object", + "//closure/library/style", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "matchers", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/events/matchers.js"], + lenient = True, + deps = [ + "//closure/library/events:event", + "//closure/library/testing:mockmatchers", + ], +) + +closure_js_library( + name = "onlinehandler", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/events/onlinehandler.js"], + lenient = True, + deps = [ + "//closure/library/events:eventtarget", + "//closure/library/net:networkstatusmonitor", + ], +) diff --git a/closure/library/testing/fs/BUILD b/closure/library/testing/fs/BUILD new file mode 100644 index 0000000000..cb040b75da --- /dev/null +++ b/closure/library/testing/fs/BUILD @@ -0,0 +1,110 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "blob", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/fs/blob.js"], + lenient = True, + deps = [ + "//closure/library/crypt", + "//closure/library/crypt:base64", + ], +) + +closure_js_library( + name = "entry", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/fs/entry.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/fs:entry", + "//closure/library/fs:entryimpl", + "//closure/library/fs:error", + "//closure/library/functions", + "//closure/library/object", + "//closure/library/string", + "//closure/library/testing/fs:file", + "//closure/library/testing/fs:filewriter", + "//closure/library/timer", + "//third_party/closure/library/mochikit/async:deferred", + ], +) + +closure_js_library( + name = "file", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/fs/file.js"], + lenient = True, + deps = ["//closure/library/testing/fs:blob"], +) + +closure_js_library( + name = "filereader", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/fs/filereader.js"], + lenient = True, + deps = [ + "//closure/library/events:eventtarget", + "//closure/library/fs:error", + "//closure/library/fs:filereader", + "//closure/library/testing/fs:progressevent", + "//closure/library/timer", + ], +) + +closure_js_library( + name = "filesystem", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/fs/filesystem.js"], + lenient = True, + deps = [ + "//closure/library/fs:filesystem", + "//closure/library/testing/fs:entry", + ], +) + +closure_js_library( + name = "filewriter", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/fs/filewriter.js"], + lenient = True, + deps = [ + "//closure/library/events:eventtarget", + "//closure/library/fs:error", + "//closure/library/fs:filesaver", + "//closure/library/string", + "//closure/library/testing/fs:progressevent", + "//closure/library/timer", + ], +) + +closure_js_library( + name = "fs", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/fs/fs.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/fs", + "//closure/library/testing/fs:blob", + "//closure/library/testing/fs:filesystem", + "//closure/library/timer", + "//third_party/closure/library/mochikit/async:deferred", + ], +) + +closure_js_library( + name = "progressevent", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/fs/progressevent.js"], + lenient = True, + deps = ["//closure/library/events:event"], +) diff --git a/closure/library/testing/i18n/BUILD b/closure/library/testing/i18n/BUILD new file mode 100644 index 0000000000..994ac20921 --- /dev/null +++ b/closure/library/testing/i18n/BUILD @@ -0,0 +1,15 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "asserts", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/i18n/asserts.js"], + lenient = True, + deps = ["//closure/library/testing:jsunit"], +) diff --git a/closure/library/testing/messaging/BUILD b/closure/library/testing/messaging/BUILD new file mode 100644 index 0000000000..d96d3dbb9f --- /dev/null +++ b/closure/library/testing/messaging/BUILD @@ -0,0 +1,49 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "mockmessagechannel", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/messaging/mockmessagechannel.js"], + lenient = True, + deps = [ + "//closure/library/messaging:abstractchannel", + "//closure/library/testing:asserts", + ], +) + +closure_js_library( + name = "mockmessageevent", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/messaging/mockmessageevent.js"], + lenient = True, + deps = [ + "//closure/library/events:browserevent", + "//closure/library/events:eventtype", + "//closure/library/testing/events", + ], +) + +closure_js_library( + name = "mockmessageport", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/messaging/mockmessageport.js"], + lenient = True, + deps = ["//closure/library/events:eventtarget"], +) + +closure_js_library( + name = "mockportnetwork", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/messaging/mockportnetwork.js"], + lenient = True, + deps = [ + "//closure/library/messaging:portnetwork", + "//closure/library/testing/messaging:mockmessagechannel", + ], +) diff --git a/closure/library/testing/net/BUILD b/closure/library/testing/net/BUILD new file mode 100644 index 0000000000..41eecbe10a --- /dev/null +++ b/closure/library/testing/net/BUILD @@ -0,0 +1,55 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "mockiframeio", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/net/mockiframeio.js"], + lenient = True, + deps = [ + "//closure/library/events:eventtarget", + "//closure/library/net:errorcode", + "//closure/library/net:eventtype", + "//closure/library/net:iframeio", + "//closure/library/testing:testqueue", + ], +) + +closure_js_library( + name = "xhrio", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/net/xhrio.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/dom:xml", + "//closure/library/events", + "//closure/library/events:eventtarget", + "//closure/library/net:errorcode", + "//closure/library/net:eventtype", + "//closure/library/net:httpstatus", + "//closure/library/net:xhrio", + "//closure/library/net:xmlhttp", + "//closure/library/object", + "//closure/library/structs", + "//closure/library/structs:map", + "//closure/library/testing:testqueue", + "//closure/library/uri:utils", + ], +) + +closure_js_library( + name = "xhriopool", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/net/xhriopool.js"], + lenient = True, + deps = [ + "//closure/library/net:xhriopool", + "//closure/library/testing/net:xhrio", + ], +) diff --git a/closure/library/testing/proto2/BUILD b/closure/library/testing/proto2/BUILD new file mode 100644 index 0000000000..396308c9b8 --- /dev/null +++ b/closure/library/testing/proto2/BUILD @@ -0,0 +1,19 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "proto2", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/proto2/proto2.js"], + lenient = True, + deps = [ + "//closure/library/proto2:message", + "//closure/library/proto2:objectserializer", + "//closure/library/testing:asserts", + ], +) diff --git a/closure/library/testing/storage/BUILD b/closure/library/testing/storage/BUILD new file mode 100644 index 0000000000..f336de5c60 --- /dev/null +++ b/closure/library/testing/storage/BUILD @@ -0,0 +1,18 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "fakemechanism", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/storage/fakemechanism.js"], + lenient = True, + deps = [ + "//closure/library/storage/mechanism:iterablemechanism", + "//closure/library/structs:map", + ], +) diff --git a/closure/library/testing/style/BUILD b/closure/library/testing/style/BUILD new file mode 100644 index 0000000000..76484b09cb --- /dev/null +++ b/closure/library/testing/style/BUILD @@ -0,0 +1,31 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "layoutasserts", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/style/layoutasserts.js"], + lenient = True, + deps = [ + "//closure/library/style", + "//closure/library/testing:asserts", + "//closure/library/testing/style", + ], +) + +closure_js_library( + name = "style", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/style/style.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/math:rect", + "//closure/library/style", + ], +) diff --git a/closure/library/testing/ui/BUILD b/closure/library/testing/ui/BUILD new file mode 100644 index 0000000000..0fc79d2447 --- /dev/null +++ b/closure/library/testing/ui/BUILD @@ -0,0 +1,45 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "rendererasserts", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/ui/rendererasserts.js"], + lenient = True, + deps = [ + "//closure/library/testing:asserts", + "//closure/library/ui:controlrenderer", + ], +) + +closure_js_library( + name = "rendererharness", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/ui/rendererharness.js"], + lenient = True, + deps = [ + "//closure/library/disposable", + "//closure/library/dom:nodetype", + "//closure/library/testing:asserts", + "//closure/library/testing:dom", + ], +) + +closure_js_library( + name = "style", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/testing/ui/style.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/testing:asserts", + ], +) diff --git a/closure/library/timer/BUILD b/closure/library/timer/BUILD new file mode 100644 index 0000000000..ccf26faaa7 --- /dev/null +++ b/closure/library/timer/BUILD @@ -0,0 +1,22 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [":timer"], +) + +closure_js_library( + name = "timer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/timer/timer.js"], + lenient = True, + deps = [ + "//closure/library/events:eventtarget", + "//closure/library/promise", + ], +) diff --git a/closure/library/tweak/BUILD b/closure/library/tweak/BUILD new file mode 100644 index 0000000000..56cc32c806 --- /dev/null +++ b/closure/library/tweak/BUILD @@ -0,0 +1,88 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":entries", + ":registry", + ":tweak", + ":tweakui", + ], +) + +closure_js_library( + name = "entries", + srcs = ["@com_google_javascript_closure_library//:closure/goog/tweak/entries.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/log", + "//closure/library/object", + ], +) + +closure_js_library( + name = "registry", + srcs = ["@com_google_javascript_closure_library//:closure/goog/tweak/registry.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/log", + "//closure/library/string", + "//closure/library/tweak:entries", + "//closure/library/uri:utils", + ], +) + +closure_js_library( + name = "testhelpers", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/tweak/testhelpers.js"], + lenient = True, + deps = [ + "//closure/library/tweak", + "//closure/library/tweak:entries", + "//closure/library/tweak:registry", + ], +) + +closure_js_library( + name = "tweak", + srcs = ["@com_google_javascript_closure_library//:closure/goog/tweak/tweak.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/tweak:entries", + "//closure/library/tweak:registry", + ], +) + +closure_js_library( + name = "tweakui", + srcs = ["@com_google_javascript_closure_library//:closure/goog/tweak/tweakui.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:safe", + "//closure/library/dom:tagname", + "//closure/library/html:safehtml", + "//closure/library/html:safestylesheet", + "//closure/library/object", + "//closure/library/string:const", + "//closure/library/style", + "//closure/library/tweak", + "//closure/library/tweak:entries", + "//closure/library/ui:zippy", + "//closure/library/useragent", + ], +) diff --git a/closure/library/ui/BUILD b/closure/library/ui/BUILD new file mode 100644 index 0000000000..5de3da1ee2 --- /dev/null +++ b/closure/library/ui/BUILD @@ -0,0 +1,2256 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":abstractspellchecker", + ":activitymonitor", + ":advancedtooltip", + ":animatedzippy", + ":attachablemenu", + ":bidiinput", + ":bubble", + ":button", + ":buttonrenderer", + ":buttonside", + ":charcounter", + ":charpicker", + ":checkbox", + ":checkboxmenuitem", + ":checkboxrenderer", + ":colormenubutton", + ":colormenubuttonrenderer", + ":colorpalette", + ":colorpicker", + ":combobox", + ":component", + ":container", + ":containerrenderer", + ":containerscroller", + ":control", + ":controlcontent", + ":controlrenderer", + ":cookieeditor", + ":css3buttonrenderer", + ":css3menubuttonrenderer", + ":cssnames", + ":custombutton", + ":custombuttonrenderer", + ":customcolorpalette", + ":datepicker", + ":datepickerrenderer", + ":decorate", + ":defaultdatepickerrenderer", + ":dialog", + ":dimensionpicker", + ":dimensionpickerrenderer", + ":dragdropdetector", + ":drilldownrow", + ":filteredmenu", + ":filterobservingmenuitem", + ":filterobservingmenuitemrenderer", + ":flatbuttonrenderer", + ":flatmenubuttonrenderer", + ":formpost", + ":gauge", + ":gaugetheme", + ":hovercard", + ":hsvapalette", + ":hsvpalette", + ":idgenerator", + ":idletimer", + ":iframemask", + ":imagelessbuttonrenderer", + ":imagelessmenubuttonrenderer", + ":inputdatepicker", + ":itemevent", + ":keyboardshortcuthandler", + ":labelinput", + ":linkbuttonrenderer", + ":menu", + ":menubar", + ":menubardecorator", + ":menubarrenderer", + ":menubase", + ":menubutton", + ":menubuttonrenderer", + ":menuheader", + ":menuheaderrenderer", + ":menuitem", + ":menuitemrenderer", + ":menurenderer", + ":menuseparator", + ":menuseparatorrenderer", + ":mockactivitymonitor", + ":modalariavisibilityhelper", + ":modalpopup", + ":nativebuttonrenderer", + ":option", + ":palette", + ":paletterenderer", + ":plaintextspellchecker", + ":popup", + ":popupbase", + ":popupcolorpicker", + ":popupdatepicker", + ":popupmenu", + ":progressbar", + ":prompt", + ":rangemodel", + ":ratings", + ":registry", + ":richtextspellchecker", + ":roundedpanel", + ":roundedtabrenderer", + ":scrollfloater", + ":select", + ":selectionmenubutton", + ":selectionmodel", + ":separator", + ":serverchart", + ":slider", + ":sliderbase", + ":splitpane", + ":submenu", + ":submenurenderer", + ":tab", + ":tabbar", + ":tabbarrenderer", + ":tablesorter", + ":tabpane", + ":tabrenderer", + ":textarea", + ":textarearenderer", + ":togglebutton", + ":toolbar", + ":toolbarbutton", + ":toolbarbuttonrenderer", + ":toolbarcolormenubutton", + ":toolbarcolormenubuttonrenderer", + ":toolbarmenubutton", + ":toolbarmenubuttonrenderer", + ":toolbarrenderer", + ":toolbarselect", + ":toolbarseparator", + ":toolbarseparatorrenderer", + ":toolbartogglebutton", + ":tooltip", + ":tristatemenuitem", + ":tristatemenuitemrenderer", + ":twothumbslider", + ":zippy", + "//closure/library/ui/ac:all_js", + "//closure/library/ui/editor:all_js", + "//closure/library/ui/emoji:all_js", + "//closure/library/ui/media:all_js", + "//closure/library/ui/style/app:all_js", + "//closure/library/ui/tree:all_js", + ], +) + +closure_js_library( + name = "abstractspellchecker", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/abstractspellchecker.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria", + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/dom:inputtype", + "//closure/library/dom:nodetype", + "//closure/library/dom:selection", + "//closure/library/dom:tagname", + "//closure/library/events", + "//closure/library/events:event", + "//closure/library/events:eventtype", + "//closure/library/math:coordinate", + "//closure/library/spell:spellcheck", + "//closure/library/structs:set", + "//closure/library/style", + "//closure/library/ui:component", + "//closure/library/ui:menuitem", + "//closure/library/ui:menuseparator", + "//closure/library/ui:popupmenu", + ], +) + +closure_js_library( + name = "activitymonitor", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/activitymonitor.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/events:eventhandler", + "//closure/library/events:eventtarget", + "//closure/library/events:eventtype", + ], +) + +closure_js_library( + name = "advancedtooltip", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/advancedtooltip.js"], + lenient = True, + deps = [ + "//closure/library/events", + "//closure/library/events:eventtype", + "//closure/library/math:box", + "//closure/library/math:coordinate", + "//closure/library/style", + "//closure/library/ui:tooltip", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "animatedzippy", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/animatedzippy.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria:roles", + "//closure/library/dom", + "//closure/library/dom:tagname", + "//closure/library/events", + "//closure/library/fx:animation", + "//closure/library/fx:easing", + "//closure/library/fx:transition", + "//closure/library/ui:zippy", + ], +) + +closure_js_library( + name = "attachablemenu", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/attachablemenu.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria", + "//closure/library/a11y/aria:attributes", + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/events:event", + "//closure/library/events:keycodes", + "//closure/library/string", + "//closure/library/style", + "//closure/library/ui:itemevent", + "//closure/library/ui:menubase", + "//closure/library/ui:popupbase", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "bidiinput", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/bidiinput.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/dom:inputtype", + "//closure/library/dom:tagname", + "//closure/library/events", + "//closure/library/events:inputhandler", + "//closure/library/i18n:bidi", + "//closure/library/ui:component", + ], +) + +closure_js_library( + name = "bubble", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/bubble.js"], + lenient = True, + deps = [ + "//closure/library/dom:safe", + "//closure/library/events", + "//closure/library/events:eventtype", + "//closure/library/html:safehtml", + "//closure/library/math:box", + "//closure/library/positioning", + "//closure/library/positioning:absoluteposition", + "//closure/library/positioning:anchoredposition", + "//closure/library/string:const", + "//closure/library/style", + "//closure/library/timer", + "//closure/library/ui:component", + "//closure/library/ui:popup", + ], +) + +closure_js_library( + name = "button", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/button.js"], + lenient = True, + deps = [ + "//closure/library/events:eventtype", + "//closure/library/events:keycodes", + "//closure/library/events:keyhandler", + "//closure/library/ui:buttonrenderer", + "//closure/library/ui:buttonside", + "//closure/library/ui:component", + "//closure/library/ui:control", + "//closure/library/ui:nativebuttonrenderer", + "//closure/library/ui:registry", + ], +) + +closure_js_library( + name = "buttonrenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/buttonrenderer.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria", + "//closure/library/a11y/aria:attributes", + "//closure/library/a11y/aria:roles", + "//closure/library/asserts", + "//closure/library/ui:buttonside", + "//closure/library/ui:component", + "//closure/library/ui:controlrenderer", + ], +) + +closure_js_library( + name = "buttonside", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/buttonside.js"], + lenient = True, +) + +closure_js_library( + name = "charcounter", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/charcounter.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/events", + "//closure/library/events:eventtarget", + "//closure/library/events:inputhandler", + ], +) + +closure_js_library( + name = "charpicker", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/charpicker.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria", + "//closure/library/a11y/aria:attributes", + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/dom:tagname", + "//closure/library/events", + "//closure/library/events:event", + "//closure/library/events:eventhandler", + "//closure/library/events:eventtype", + "//closure/library/events:inputhandler", + "//closure/library/events:keycodes", + "//closure/library/events:keyhandler", + "//closure/library/i18n:charlistdecompressor", + "//closure/library/i18n:charpickerdata", + "//closure/library/i18n:uchar", + "//closure/library/i18n/uchar:namefetcher", + "//closure/library/structs:set", + "//closure/library/style", + "//closure/library/ui:button", + "//closure/library/ui:component", + "//closure/library/ui:containerscroller", + "//closure/library/ui:flatbuttonrenderer", + "//closure/library/ui:hovercard", + "//closure/library/ui:labelinput", + "//closure/library/ui:menu", + "//closure/library/ui:menubutton", + "//closure/library/ui:menuitem", + "//closure/library/ui:tooltip", + ], +) + +closure_js_library( + name = "checkbox", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/checkbox.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria", + "//closure/library/a11y/aria:attributes", + "//closure/library/events:eventtype", + "//closure/library/events:keycodes", + "//closure/library/string", + "//closure/library/ui:checkboxrenderer", + "//closure/library/ui:component", + "//closure/library/ui:control", + "//closure/library/ui:registry", + ], +) + +closure_js_library( + name = "checkboxmenuitem", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/checkboxmenuitem.js"], + lenient = True, + deps = [ + "//closure/library/ui:menuitem", + "//closure/library/ui:registry", + ], +) + +closure_js_library( + name = "checkboxrenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/checkboxrenderer.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria", + "//closure/library/a11y/aria:attributes", + "//closure/library/a11y/aria:roles", + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/dom:classlist", + "//closure/library/dom:tagname", + "//closure/library/object", + "//closure/library/ui:controlrenderer", + ], +) + +closure_js_library( + name = "colormenubutton", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/colormenubutton.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/object", + "//closure/library/ui:colormenubuttonrenderer", + "//closure/library/ui:colorpalette", + "//closure/library/ui:component", + "//closure/library/ui:menu", + "//closure/library/ui:menubutton", + "//closure/library/ui:registry", + ], +) + +closure_js_library( + name = "colormenubuttonrenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/colormenubuttonrenderer.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/color", + "//closure/library/dom:classlist", + "//closure/library/dom:tagname", + "//closure/library/ui:menubuttonrenderer", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "colorpalette", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/colorpalette.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/color", + "//closure/library/dom:tagname", + "//closure/library/style", + "//closure/library/ui:palette", + "//closure/library/ui:paletterenderer", + ], +) + +closure_js_library( + name = "colorpicker", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/colorpicker.js"], + lenient = True, + deps = [ + "//closure/library/ui:colorpalette", + "//closure/library/ui:component", + ], +) + +closure_js_library( + name = "combobox", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/combobox.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/dom:inputtype", + "//closure/library/dom:tagname", + "//closure/library/events:eventtype", + "//closure/library/events:inputhandler", + "//closure/library/events:keycodes", + "//closure/library/events:keyhandler", + "//closure/library/log", + "//closure/library/positioning", + "//closure/library/positioning:menuanchoredposition", + "//closure/library/string", + "//closure/library/style", + "//closure/library/timer", + "//closure/library/ui:component", + "//closure/library/ui:itemevent", + "//closure/library/ui:labelinput", + "//closure/library/ui:menu", + "//closure/library/ui:menuitem", + "//closure/library/ui:menuseparator", + "//closure/library/ui:registry", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "component", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/component.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:nodetype", + "//closure/library/dom:tagname", + "//closure/library/events:eventhandler", + "//closure/library/events:eventtarget", + "//closure/library/object", + "//closure/library/style", + "//closure/library/ui:idgenerator", + ], +) + +closure_js_library( + name = "container", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/container.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria", + "//closure/library/a11y/aria:attributes", + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/events:eventtype", + "//closure/library/events:keycodes", + "//closure/library/events:keyhandler", + "//closure/library/object", + "//closure/library/style", + "//closure/library/ui:component", + "//closure/library/ui:containerrenderer", + "//closure/library/ui:control", + ], +) + +closure_js_library( + name = "containerrenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/containerrenderer.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria", + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/dom:classlist", + "//closure/library/dom:nodetype", + "//closure/library/dom:tagname", + "//closure/library/string", + "//closure/library/style", + "//closure/library/ui:registry", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "containerscroller", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/containerscroller.js"], + lenient = True, + deps = [ + "//closure/library/disposable", + "//closure/library/events:eventhandler", + "//closure/library/style", + "//closure/library/timer", + "//closure/library/ui:component", + "//closure/library/ui:container", + ], +) + +closure_js_library( + name = "control", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/control.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/disposable", + "//closure/library/dom", + "//closure/library/events:browserevent", + "//closure/library/events:event", + "//closure/library/events:eventhandler", + "//closure/library/events:eventtype", + "//closure/library/events:keycodes", + "//closure/library/events:keyhandler", + "//closure/library/string", + "//closure/library/ui:component", + "//closure/library/ui:controlcontent", + "//closure/library/ui:controlrenderer", + "//closure/library/ui:registry", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "controlcontent", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/controlcontent.js"], + lenient = True, +) + +closure_js_library( + name = "controlrenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/controlrenderer.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria", + "//closure/library/a11y/aria:attributes", + "//closure/library/a11y/aria:roles", + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/dom:tagname", + "//closure/library/object", + "//closure/library/string", + "//closure/library/style", + "//closure/library/ui:component", + "//closure/library/ui:controlcontent", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "cookieeditor", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/cookieeditor.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:tagname", + "//closure/library/events:eventtype", + "//closure/library/net:cookies", + "//closure/library/string", + "//closure/library/style", + "//closure/library/ui:component", + ], +) + +closure_js_library( + name = "css3buttonrenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/css3buttonrenderer.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/dom:classlist", + "//closure/library/dom:tagname", + "//closure/library/ui:button", + "//closure/library/ui:buttonrenderer", + "//closure/library/ui:component", + "//closure/library/ui:cssnames", + "//closure/library/ui:registry", + ], +) + +closure_js_library( + name = "css3menubuttonrenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/css3menubuttonrenderer.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/dom:tagname", + "//closure/library/ui:cssnames", + "//closure/library/ui:menubutton", + "//closure/library/ui:menubuttonrenderer", + "//closure/library/ui:registry", + ], +) + +closure_js_library( + name = "cssnames", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/cssnames.js"], + lenient = True, +) + +closure_js_library( + name = "custombutton", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/custombutton.js"], + lenient = True, + deps = [ + "//closure/library/ui:button", + "//closure/library/ui:custombuttonrenderer", + "//closure/library/ui:registry", + ], +) + +closure_js_library( + name = "custombuttonrenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/custombuttonrenderer.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria:roles", + "//closure/library/asserts", + "//closure/library/dom:classlist", + "//closure/library/dom:nodetype", + "//closure/library/dom:tagname", + "//closure/library/string", + "//closure/library/ui:buttonrenderer", + "//closure/library/ui:cssnames", + ], +) + +closure_js_library( + name = "customcolorpalette", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/customcolorpalette.js"], + lenient = True, + deps = [ + "//closure/library/color", + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/dom:tagname", + "//closure/library/ui:colorpalette", + "//closure/library/ui:component", + ], +) + +closure_js_library( + name = "datepicker", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/datepicker.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria", + "//closure/library/asserts", + "//closure/library/date", + "//closure/library/date:daterange", + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/dom:nodetype", + "//closure/library/dom:tagname", + "//closure/library/events:event", + "//closure/library/events:eventtype", + "//closure/library/events:keyhandler", + "//closure/library/i18n:datetimeformat", + "//closure/library/i18n:datetimepatterns", + "//closure/library/i18n:datetimesymbols", + "//closure/library/style", + "//closure/library/ui:component", + "//closure/library/ui:defaultdatepickerrenderer", + "//closure/library/ui:idgenerator", + ], +) + +closure_js_library( + name = "datepickerrenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/datepickerrenderer.js"], + lenient = True, +) + +closure_js_library( + name = "decorate", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/decorate.js"], + lenient = True, + deps = ["//closure/library/ui:registry"], +) + +closure_js_library( + name = "defaultdatepickerrenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/defaultdatepickerrenderer.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/dom:tagname", + "//closure/library/ui:datepickerrenderer", + ], +) + +closure_js_library( + name = "dialog", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/dialog.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria", + "//closure/library/a11y/aria:attributes", + "//closure/library/a11y/aria:roles", + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/dom:nodetype", + "//closure/library/dom:safe", + "//closure/library/dom:tagname", + "//closure/library/events", + "//closure/library/events:event", + "//closure/library/events:eventtype", + "//closure/library/events:keycodes", + "//closure/library/fx:dragger", + "//closure/library/html:safehtml", + "//closure/library/math:rect", + "//closure/library/string", + "//closure/library/structs:map", + "//closure/library/style", + "//closure/library/ui:modalpopup", + ], +) + +closure_js_library( + name = "dimensionpicker", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/dimensionpicker.js"], + lenient = True, + deps = [ + "//closure/library/events:eventtype", + "//closure/library/events:keycodes", + "//closure/library/math:size", + "//closure/library/ui:component", + "//closure/library/ui:control", + "//closure/library/ui:dimensionpickerrenderer", + "//closure/library/ui:registry", + ], +) + +closure_js_library( + name = "dimensionpickerrenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/dimensionpickerrenderer.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria:announcer", + "//closure/library/a11y/aria:attributes", + "//closure/library/dom", + "//closure/library/dom:tagname", + "//closure/library/i18n:bidi", + "//closure/library/style", + "//closure/library/ui:controlrenderer", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "dragdropdetector", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/dragdropdetector.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/dom:inputtype", + "//closure/library/dom:tagname", + "//closure/library/events:event", + "//closure/library/events:eventhandler", + "//closure/library/events:eventtarget", + "//closure/library/events:eventtype", + "//closure/library/math:coordinate", + "//closure/library/string", + "//closure/library/style", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "drilldownrow", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/drilldownrow.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/dom:safe", + "//closure/library/dom:tagname", + "//closure/library/html:safehtml", + "//closure/library/string", + "//closure/library/ui:component", + ], +) + +closure_js_library( + name = "filteredmenu", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/filteredmenu.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria", + "//closure/library/a11y/aria:attributes", + "//closure/library/dom", + "//closure/library/dom:inputtype", + "//closure/library/dom:tagname", + "//closure/library/events", + "//closure/library/events:eventtype", + "//closure/library/events:inputhandler", + "//closure/library/events:keycodes", + "//closure/library/string", + "//closure/library/style", + "//closure/library/ui:component", + "//closure/library/ui:filterobservingmenuitem", + "//closure/library/ui:menu", + "//closure/library/ui:menuitem", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "filterobservingmenuitem", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/filterobservingmenuitem.js"], + lenient = True, + deps = [ + "//closure/library/ui:filterobservingmenuitemrenderer", + "//closure/library/ui:menuitem", + "//closure/library/ui:registry", + ], +) + +closure_js_library( + name = "filterobservingmenuitemrenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/filterobservingmenuitemrenderer.js"], + lenient = True, + deps = ["//closure/library/ui:menuitemrenderer"], +) + +closure_js_library( + name = "flatbuttonrenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/flatbuttonrenderer.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria:roles", + "//closure/library/asserts", + "//closure/library/dom:classlist", + "//closure/library/dom:tagname", + "//closure/library/ui:button", + "//closure/library/ui:buttonrenderer", + "//closure/library/ui:cssnames", + "//closure/library/ui:registry", + ], +) + +closure_js_library( + name = "flatmenubuttonrenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/flatmenubuttonrenderer.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/dom:tagname", + "//closure/library/style", + "//closure/library/ui:cssnames", + "//closure/library/ui:flatbuttonrenderer", + "//closure/library/ui:menu", + "//closure/library/ui:menubutton", + "//closure/library/ui:menurenderer", + "//closure/library/ui:registry", + ], +) + +closure_js_library( + name = "formpost", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/formpost.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/dom:inputtype", + "//closure/library/dom:safe", + "//closure/library/dom:tagname", + "//closure/library/html:safehtml", + "//closure/library/ui:component", + ], +) + +closure_js_library( + name = "gauge", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/gauge.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria", + "//closure/library/asserts", + "//closure/library/dom:tagname", + "//closure/library/events", + "//closure/library/fx:animation", + "//closure/library/fx:easing", + "//closure/library/fx:transition", + "//closure/library/graphics", + "//closure/library/graphics:font", + "//closure/library/graphics:path", + "//closure/library/graphics:solidfill", + "//closure/library/math", + "//closure/library/ui:component", + "//closure/library/ui:gaugetheme", + ], +) + +closure_js_library( + name = "gaugetheme", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/gaugetheme.js"], + lenient = True, + deps = [ + "//closure/library/graphics:lineargradient", + "//closure/library/graphics:solidfill", + "//closure/library/graphics:stroke", + ], +) + +closure_js_library( + name = "hovercard", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/hovercard.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/dom", + "//closure/library/events", + "//closure/library/events:event", + "//closure/library/events:eventtype", + "//closure/library/ui:advancedtooltip", + "//closure/library/ui:popupbase", + "//closure/library/ui:tooltip", + ], +) + +closure_js_library( + name = "hsvapalette", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/hsvapalette.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/color:alpha", + "//closure/library/dom:tagname", + "//closure/library/events", + "//closure/library/events:eventtype", + "//closure/library/style", + "//closure/library/ui:component", + "//closure/library/ui:hsvpalette", + ], +) + +closure_js_library( + name = "hsvpalette", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/hsvpalette.js"], + lenient = True, + deps = [ + "//closure/library/color", + "//closure/library/dom:inputtype", + "//closure/library/dom:tagname", + "//closure/library/events", + "//closure/library/events:eventtype", + "//closure/library/events:inputhandler", + "//closure/library/style", + "//closure/library/style:bidi", + "//closure/library/ui:component", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "idgenerator", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/idgenerator.js"], + lenient = True, +) + +closure_js_library( + name = "idletimer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/idletimer.js"], + lenient = True, + deps = [ + "//closure/library/events", + "//closure/library/events:eventtarget", + "//closure/library/structs:set", + "//closure/library/timer", + "//closure/library/ui:activitymonitor", + ], +) + +closure_js_library( + name = "iframemask", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/iframemask.js"], + lenient = True, + deps = [ + "//closure/library/disposable", + "//closure/library/dom", + "//closure/library/dom:iframe", + "//closure/library/events:eventhandler", + "//closure/library/structs:pool", + "//closure/library/style", + "//closure/library/timer", + ], +) + +closure_js_library( + name = "imagelessbuttonrenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/imagelessbuttonrenderer.js"], + lenient = True, + deps = [ + "//closure/library/dom:classlist", + "//closure/library/dom:tagname", + "//closure/library/ui:button", + "//closure/library/ui:component", + "//closure/library/ui:cssnames", + "//closure/library/ui:custombuttonrenderer", + "//closure/library/ui:registry", + ], +) + +closure_js_library( + name = "imagelessmenubuttonrenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/imagelessmenubuttonrenderer.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/dom:tagname", + "//closure/library/ui:cssnames", + "//closure/library/ui:menubutton", + "//closure/library/ui:menubuttonrenderer", + "//closure/library/ui:registry", + ], +) + +closure_js_library( + name = "inputdatepicker", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/inputdatepicker.js"], + lenient = True, + deps = [ + "//closure/library/date", + "//closure/library/dom", + "//closure/library/dom:inputtype", + "//closure/library/dom:tagname", + "//closure/library/i18n:datetimeparse", + "//closure/library/string", + "//closure/library/ui:component", + "//closure/library/ui:datepicker", + "//closure/library/ui:labelinput", + "//closure/library/ui:popupbase", + "//closure/library/ui:popupdatepicker", + ], +) + +closure_js_library( + name = "itemevent", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/itemevent.js"], + lenient = True, + deps = ["//closure/library/events:event"], +) + +closure_js_library( + name = "keyboardshortcuthandler", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/keyboardshortcuthandler.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/dom:tagname", + "//closure/library/events", + "//closure/library/events:event", + "//closure/library/events:eventtarget", + "//closure/library/events:eventtype", + "//closure/library/events:keycodes", + "//closure/library/events:keynames", + "//closure/library/events:keys", + "//closure/library/object", + "//closure/library/timer", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "labelinput", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/labelinput.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria", + "//closure/library/a11y/aria:attributes", + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/dom:inputtype", + "//closure/library/dom:tagname", + "//closure/library/events:eventhandler", + "//closure/library/events:eventtype", + "//closure/library/timer", + "//closure/library/ui:component", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "linkbuttonrenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/linkbuttonrenderer.js"], + lenient = True, + deps = [ + "//closure/library/ui:button", + "//closure/library/ui:flatbuttonrenderer", + "//closure/library/ui:registry", + ], +) + +closure_js_library( + name = "menu", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/menu.js"], + lenient = True, + deps = [ + "//closure/library/dom:tagname", + "//closure/library/math:coordinate", + "//closure/library/string", + "//closure/library/style", + "//closure/library/ui:component", + "//closure/library/ui:container", + "//closure/library/ui:menuheader", + "//closure/library/ui:menuitem", + "//closure/library/ui:menurenderer", + "//closure/library/ui:menuseparator", + ], +) + +closure_js_library( + name = "menubar", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/menubar.js"], + lenient = True, + deps = [ + "//closure/library/ui:container", + "//closure/library/ui:menubarrenderer", + ], +) + +closure_js_library( + name = "menubardecorator", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/menubardecorator.js"], + lenient = True, + deps = [ + "//closure/library/ui:menubar", + "//closure/library/ui:menubarrenderer", + "//closure/library/ui:registry", + ], +) + +closure_js_library( + name = "menubarrenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/menubarrenderer.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria:roles", + "//closure/library/ui:container", + "//closure/library/ui:containerrenderer", + ], +) + +closure_js_library( + name = "menubase", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/menubase.js"], + lenient = True, + deps = [ + "//closure/library/events:eventhandler", + "//closure/library/events:eventtype", + "//closure/library/events:keyhandler", + "//closure/library/ui:popup", + ], +) + +closure_js_library( + name = "menubutton", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/menubutton.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria", + "//closure/library/a11y/aria:attributes", + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/events:eventtype", + "//closure/library/events:keycodes", + "//closure/library/events:keyhandler", + "//closure/library/math:box", + "//closure/library/math:rect", + "//closure/library/positioning", + "//closure/library/positioning:menuanchoredposition", + "//closure/library/style", + "//closure/library/timer", + "//closure/library/ui:button", + "//closure/library/ui:component", + "//closure/library/ui:idgenerator", + "//closure/library/ui:menu", + "//closure/library/ui:menubuttonrenderer", + "//closure/library/ui:menuitem", + "//closure/library/ui:menurenderer", + "//closure/library/ui:registry", + "//closure/library/useragent", + "//closure/library/useragent:product", + ], +) + +closure_js_library( + name = "menubuttonrenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/menubuttonrenderer.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/dom:tagname", + "//closure/library/style", + "//closure/library/ui:cssnames", + "//closure/library/ui:custombuttonrenderer", + "//closure/library/ui:menu", + "//closure/library/ui:menurenderer", + ], +) + +closure_js_library( + name = "menuheader", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/menuheader.js"], + lenient = True, + deps = [ + "//closure/library/ui:component", + "//closure/library/ui:control", + "//closure/library/ui:menuheaderrenderer", + "//closure/library/ui:registry", + ], +) + +closure_js_library( + name = "menuheaderrenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/menuheaderrenderer.js"], + lenient = True, + deps = ["//closure/library/ui:controlrenderer"], +) + +closure_js_library( + name = "menuitem", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/menuitem.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria:roles", + "//closure/library/array", + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/math:coordinate", + "//closure/library/string", + "//closure/library/ui:component", + "//closure/library/ui:control", + "//closure/library/ui:menuitemrenderer", + "//closure/library/ui:registry", + ], +) + +closure_js_library( + name = "menuitemrenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/menuitemrenderer.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria:roles", + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/dom:tagname", + "//closure/library/ui:component", + "//closure/library/ui:controlrenderer", + ], +) + +closure_js_library( + name = "menurenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/menurenderer.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria", + "//closure/library/a11y/aria:attributes", + "//closure/library/a11y/aria:roles", + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:tagname", + "//closure/library/ui:containerrenderer", + "//closure/library/ui:separator", + ], +) + +closure_js_library( + name = "menuseparator", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/menuseparator.js"], + lenient = True, + deps = [ + "//closure/library/ui:menuseparatorrenderer", + "//closure/library/ui:registry", + "//closure/library/ui:separator", + ], +) + +closure_js_library( + name = "menuseparatorrenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/menuseparatorrenderer.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/dom:tagname", + "//closure/library/ui:controlrenderer", + ], +) + +closure_js_library( + name = "mockactivitymonitor", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/mockactivitymonitor.js"], + lenient = True, + deps = [ + "//closure/library/events:eventtype", + "//closure/library/ui:activitymonitor", + ], +) + +closure_js_library( + name = "modalariavisibilityhelper", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/modalariavisibilityhelper.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria", + "//closure/library/a11y/aria:attributes", + ], +) + +closure_js_library( + name = "modalpopup", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/modalpopup.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/dom:iframe", + "//closure/library/dom:tagname", + "//closure/library/dom/animationframe", + "//closure/library/events", + "//closure/library/events:eventtype", + "//closure/library/events:focushandler", + "//closure/library/fx:transition", + "//closure/library/string", + "//closure/library/style", + "//closure/library/timer", + "//closure/library/ui:component", + "//closure/library/ui:modalariavisibilityhelper", + "//closure/library/ui:popupbase", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "nativebuttonrenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/nativebuttonrenderer.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/dom:classlist", + "//closure/library/dom:inputtype", + "//closure/library/dom:tagname", + "//closure/library/events:eventtype", + "//closure/library/ui:buttonrenderer", + "//closure/library/ui:component", + ], +) + +closure_js_library( + name = "option", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/option.js"], + lenient = True, + deps = [ + "//closure/library/ui:component", + "//closure/library/ui:menuitem", + "//closure/library/ui:registry", + ], +) + +closure_js_library( + name = "palette", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/palette.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/dom", + "//closure/library/events", + "//closure/library/events:eventtype", + "//closure/library/events:keycodes", + "//closure/library/math:size", + "//closure/library/ui:component", + "//closure/library/ui:control", + "//closure/library/ui:paletterenderer", + "//closure/library/ui:selectionmodel", + ], +) + +closure_js_library( + name = "paletterenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/paletterenderer.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria", + "//closure/library/a11y/aria:attributes", + "//closure/library/a11y/aria:roles", + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/dom:nodeiterator", + "//closure/library/dom:nodetype", + "//closure/library/dom:tagname", + "//closure/library/iter", + "//closure/library/style", + "//closure/library/ui:controlrenderer", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "plaintextspellchecker", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/plaintextspellchecker.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria", + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:tagname", + "//closure/library/events:eventhandler", + "//closure/library/events:eventtype", + "//closure/library/events:keycodes", + "//closure/library/events:keyhandler", + "//closure/library/spell:spellcheck", + "//closure/library/style", + "//closure/library/timer", + "//closure/library/ui:abstractspellchecker", + "//closure/library/ui:component", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "popup", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/popup.js"], + lenient = True, + deps = [ + "//closure/library/math:box", + "//closure/library/positioning", + "//closure/library/positioning:abstractposition", + "//closure/library/style", + "//closure/library/ui:popupbase", + ], +) + +closure_js_library( + name = "popupbase", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/popupbase.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/dom", + "//closure/library/dom:tagname", + "//closure/library/events", + "//closure/library/events:eventhandler", + "//closure/library/events:eventtarget", + "//closure/library/events:eventtype", + "//closure/library/events:keycodes", + "//closure/library/fx:transition", + "//closure/library/style", + "//closure/library/timer", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "popupcolorpicker", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/popupcolorpicker.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/dom:classlist", + "//closure/library/events:eventtype", + "//closure/library/positioning", + "//closure/library/positioning:anchoredposition", + "//closure/library/ui:colorpicker", + "//closure/library/ui:component", + "//closure/library/ui:popup", + ], +) + +closure_js_library( + name = "popupdatepicker", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/popupdatepicker.js"], + lenient = True, + deps = [ + "//closure/library/events:eventtype", + "//closure/library/positioning", + "//closure/library/positioning:anchoredposition", + "//closure/library/style", + "//closure/library/ui:component", + "//closure/library/ui:datepicker", + "//closure/library/ui:popup", + "//closure/library/ui:popupbase", + ], +) + +closure_js_library( + name = "popupmenu", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/popupmenu.js"], + lenient = True, + deps = [ + "//closure/library/events", + "//closure/library/events:browserevent", + "//closure/library/events:eventtype", + "//closure/library/events:keycodes", + "//closure/library/positioning", + "//closure/library/positioning:anchoredviewportposition", + "//closure/library/positioning:menuanchoredposition", + "//closure/library/positioning:viewportclientposition", + "//closure/library/structs:map", + "//closure/library/style", + "//closure/library/ui:component", + "//closure/library/ui:menu", + "//closure/library/ui:popupbase", + ], +) + +closure_js_library( + name = "progressbar", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/progressbar.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria", + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/dom:tagname", + "//closure/library/events", + "//closure/library/events:eventtype", + "//closure/library/ui:component", + "//closure/library/ui:rangemodel", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "prompt", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/prompt.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/dom:inputtype", + "//closure/library/dom:tagname", + "//closure/library/events", + "//closure/library/events:eventtype", + "//closure/library/functions", + "//closure/library/html:safehtml", + "//closure/library/timer", + "//closure/library/ui:component", + "//closure/library/ui:dialog", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "rangemodel", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/rangemodel.js"], + lenient = True, + deps = [ + "//closure/library/events:eventtarget", + "//closure/library/ui:component", + ], +) + +closure_js_library( + name = "ratings", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/ratings.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria", + "//closure/library/a11y/aria:attributes", + "//closure/library/a11y/aria:roles", + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/dom:tagname", + "//closure/library/events:eventtype", + "//closure/library/ui:component", + ], +) + +closure_js_library( + name = "registry", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/registry.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/dom:classlist", + ], +) + +closure_js_library( + name = "richtextspellchecker", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/richtextspellchecker.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:nodetype", + "//closure/library/dom:range", + "//closure/library/events:eventhandler", + "//closure/library/events:eventtype", + "//closure/library/events:keycodes", + "//closure/library/events:keyhandler", + "//closure/library/math:coordinate", + "//closure/library/spell:spellcheck", + "//closure/library/string:stringbuffer", + "//closure/library/style", + "//closure/library/timer", + "//closure/library/ui:abstractspellchecker", + "//closure/library/ui:component", + "//closure/library/ui:popupmenu", + ], +) + +closure_js_library( + name = "roundedpanel", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/roundedpanel.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/dom:tagname", + "//closure/library/graphics", + "//closure/library/graphics:path", + "//closure/library/graphics:solidfill", + "//closure/library/graphics:stroke", + "//closure/library/math", + "//closure/library/math:coordinate", + "//closure/library/style", + "//closure/library/ui:component", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "roundedtabrenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/roundedtabrenderer.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/dom:tagname", + "//closure/library/ui:registry", + "//closure/library/ui:tab", + "//closure/library/ui:tabbar", + "//closure/library/ui:tabrenderer", + ], +) + +closure_js_library( + name = "scrollfloater", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/scrollfloater.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/dom:tagname", + "//closure/library/events:eventtype", + "//closure/library/style", + "//closure/library/ui:component", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "select", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/select.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria", + "//closure/library/a11y/aria:attributes", + "//closure/library/a11y/aria:roles", + "//closure/library/array", + "//closure/library/events:eventtype", + "//closure/library/ui:component", + "//closure/library/ui:idgenerator", + "//closure/library/ui:menubutton", + "//closure/library/ui:menuitem", + "//closure/library/ui:menurenderer", + "//closure/library/ui:registry", + "//closure/library/ui:selectionmodel", + ], +) + +closure_js_library( + name = "selectionmenubutton", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/selectionmenubutton.js"], + lenient = True, + deps = [ + "//closure/library/dom:inputtype", + "//closure/library/dom:tagname", + "//closure/library/events:eventtype", + "//closure/library/style", + "//closure/library/ui:component", + "//closure/library/ui:menubutton", + "//closure/library/ui:menuitem", + "//closure/library/ui:registry", + ], +) + +closure_js_library( + name = "selectionmodel", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/selectionmodel.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/events:eventtarget", + "//closure/library/events:eventtype", + ], +) + +closure_js_library( + name = "separator", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/separator.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria", + "//closure/library/asserts", + "//closure/library/ui:component", + "//closure/library/ui:control", + "//closure/library/ui:menuseparatorrenderer", + "//closure/library/ui:registry", + ], +) + +closure_js_library( + name = "serverchart", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/serverchart.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/dom:safe", + "//closure/library/dom:tagname", + "//closure/library/events:event", + "//closure/library/string", + "//closure/library/ui:component", + "//closure/library/uri", + ], +) + +closure_js_library( + name = "slider", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/slider.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria", + "//closure/library/a11y/aria:roles", + "//closure/library/dom", + "//closure/library/dom:tagname", + "//closure/library/ui:sliderbase", + ], +) + +closure_js_library( + name = "sliderbase", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/sliderbase.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria", + "//closure/library/a11y/aria:attributes", + "//closure/library/a11y/aria:roles", + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/dom:tagname", + "//closure/library/events", + "//closure/library/events:eventtype", + "//closure/library/events:keycodes", + "//closure/library/events:keyhandler", + "//closure/library/events:mousewheelhandler", + "//closure/library/functions", + "//closure/library/fx:animationqueue", + "//closure/library/fx:dom", + "//closure/library/fx:dragger", + "//closure/library/fx:transition", + "//closure/library/math", + "//closure/library/math:coordinate", + "//closure/library/style", + "//closure/library/style:bidi", + "//closure/library/timer", + "//closure/library/ui:component", + "//closure/library/ui:rangemodel", + ], +) + +closure_js_library( + name = "splitpane", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/splitpane.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/dom:tagname", + "//closure/library/events:eventtype", + "//closure/library/fx:dragger", + "//closure/library/math:rect", + "//closure/library/math:size", + "//closure/library/style", + "//closure/library/ui:component", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "submenu", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/submenu.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/events:keycodes", + "//closure/library/positioning", + "//closure/library/positioning:anchoredviewportposition", + "//closure/library/style", + "//closure/library/timer", + "//closure/library/ui:component", + "//closure/library/ui:menu", + "//closure/library/ui:menuitem", + "//closure/library/ui:registry", + "//closure/library/ui:submenurenderer", + ], +) + +closure_js_library( + name = "submenurenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/submenurenderer.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria", + "//closure/library/a11y/aria:attributes", + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/dom:tagname", + "//closure/library/style", + "//closure/library/ui:menu", + "//closure/library/ui:menuitemrenderer", + ], +) + +closure_js_library( + name = "tab", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/tab.js"], + lenient = True, + deps = [ + "//closure/library/ui:component", + "//closure/library/ui:control", + "//closure/library/ui:registry", + "//closure/library/ui:tabrenderer", + ], +) + +closure_js_library( + name = "tabbar", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/tabbar.js"], + lenient = True, + deps = [ + "//closure/library/ui:component", + "//closure/library/ui:container", + "//closure/library/ui:registry", + "//closure/library/ui:tab", + "//closure/library/ui:tabbarrenderer", + ], +) + +closure_js_library( + name = "tabbarrenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/tabbarrenderer.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria:roles", + "//closure/library/object", + "//closure/library/ui:containerrenderer", + ], +) + +closure_js_library( + name = "tablesorter", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/tablesorter.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/dom:tagname", + "//closure/library/events:eventtype", + "//closure/library/functions", + "//closure/library/ui:component", + ], +) + +closure_js_library( + name = "tabpane", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/tabpane.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/dom:tagname", + "//closure/library/events", + "//closure/library/events:event", + "//closure/library/events:eventtarget", + "//closure/library/events:eventtype", + "//closure/library/events:keycodes", + "//closure/library/html:safestylesheet", + "//closure/library/style", + ], +) + +closure_js_library( + name = "tabrenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/tabrenderer.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria:roles", + "//closure/library/ui:component", + "//closure/library/ui:controlrenderer", + ], +) + +closure_js_library( + name = "textarea", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/textarea.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/events:eventtype", + "//closure/library/style", + "//closure/library/ui:control", + "//closure/library/ui:textarearenderer", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "textarearenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/textarearenderer.js"], + lenient = True, + deps = [ + "//closure/library/dom:tagname", + "//closure/library/ui:component", + "//closure/library/ui:controlrenderer", + ], +) + +closure_js_library( + name = "togglebutton", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/togglebutton.js"], + lenient = True, + deps = [ + "//closure/library/ui:button", + "//closure/library/ui:component", + "//closure/library/ui:custombuttonrenderer", + "//closure/library/ui:registry", + ], +) + +closure_js_library( + name = "toolbar", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/toolbar.js"], + lenient = True, + deps = [ + "//closure/library/ui:container", + "//closure/library/ui:toolbarrenderer", + ], +) + +closure_js_library( + name = "toolbarbutton", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/toolbarbutton.js"], + lenient = True, + deps = [ + "//closure/library/ui:button", + "//closure/library/ui:registry", + "//closure/library/ui:toolbarbuttonrenderer", + ], +) + +closure_js_library( + name = "toolbarbuttonrenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/toolbarbuttonrenderer.js"], + lenient = True, + deps = ["//closure/library/ui:custombuttonrenderer"], +) + +closure_js_library( + name = "toolbarcolormenubutton", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/toolbarcolormenubutton.js"], + lenient = True, + deps = [ + "//closure/library/ui:colormenubutton", + "//closure/library/ui:registry", + "//closure/library/ui:toolbarcolormenubuttonrenderer", + ], +) + +closure_js_library( + name = "toolbarcolormenubuttonrenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/toolbarcolormenubuttonrenderer.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/dom:classlist", + "//closure/library/ui:colormenubuttonrenderer", + "//closure/library/ui:menubuttonrenderer", + "//closure/library/ui:toolbarmenubuttonrenderer", + ], +) + +closure_js_library( + name = "toolbarmenubutton", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/toolbarmenubutton.js"], + lenient = True, + deps = [ + "//closure/library/ui:menubutton", + "//closure/library/ui:registry", + "//closure/library/ui:toolbarmenubuttonrenderer", + ], +) + +closure_js_library( + name = "toolbarmenubuttonrenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/toolbarmenubuttonrenderer.js"], + lenient = True, + deps = ["//closure/library/ui:menubuttonrenderer"], +) + +closure_js_library( + name = "toolbarrenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/toolbarrenderer.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria:roles", + "//closure/library/dom:tagname", + "//closure/library/ui:container", + "//closure/library/ui:containerrenderer", + "//closure/library/ui:separator", + "//closure/library/ui:toolbarseparatorrenderer", + ], +) + +closure_js_library( + name = "toolbarselect", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/toolbarselect.js"], + lenient = True, + deps = [ + "//closure/library/ui:registry", + "//closure/library/ui:select", + "//closure/library/ui:toolbarmenubuttonrenderer", + ], +) + +closure_js_library( + name = "toolbarseparator", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/toolbarseparator.js"], + lenient = True, + deps = [ + "//closure/library/ui:registry", + "//closure/library/ui:separator", + "//closure/library/ui:toolbarseparatorrenderer", + ], +) + +closure_js_library( + name = "toolbarseparatorrenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/toolbarseparatorrenderer.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/dom:classlist", + "//closure/library/dom:tagname", + "//closure/library/ui:cssnames", + "//closure/library/ui:menuseparatorrenderer", + ], +) + +closure_js_library( + name = "toolbartogglebutton", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/toolbartogglebutton.js"], + lenient = True, + deps = [ + "//closure/library/ui:registry", + "//closure/library/ui:togglebutton", + "//closure/library/ui:toolbarbuttonrenderer", + ], +) + +closure_js_library( + name = "tooltip", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/tooltip.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:safe", + "//closure/library/dom:tagname", + "//closure/library/events", + "//closure/library/events:eventtype", + "//closure/library/events:focushandler", + "//closure/library/math:box", + "//closure/library/math:coordinate", + "//closure/library/positioning", + "//closure/library/positioning:anchoredposition", + "//closure/library/positioning:viewportposition", + "//closure/library/structs:set", + "//closure/library/style", + "//closure/library/timer", + "//closure/library/ui:popup", + "//closure/library/ui:popupbase", + ], +) + +closure_js_library( + name = "tristatemenuitem", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/tristatemenuitem.js"], + lenient = True, + deps = [ + "//closure/library/dom:classlist", + "//closure/library/ui:component", + "//closure/library/ui:menuitem", + "//closure/library/ui:registry", + "//closure/library/ui:tristatemenuitemrenderer", + ], +) + +closure_js_library( + name = "tristatemenuitemrenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/tristatemenuitemrenderer.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/dom:classlist", + "//closure/library/ui:menuitemrenderer", + ], +) + +closure_js_library( + name = "twothumbslider", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/twothumbslider.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria", + "//closure/library/a11y/aria:roles", + "//closure/library/dom", + "//closure/library/dom:tagname", + "//closure/library/ui:sliderbase", + ], +) + +closure_js_library( + name = "zippy", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/zippy.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria", + "//closure/library/a11y/aria:attributes", + "//closure/library/a11y/aria:roles", + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/events:event", + "//closure/library/events:eventhandler", + "//closure/library/events:eventtarget", + "//closure/library/events:eventtype", + "//closure/library/events:keycodes", + "//closure/library/events:keyhandler", + "//closure/library/style", + ], +) diff --git a/closure/library/ui/ac/BUILD b/closure/library/ui/ac/BUILD new file mode 100644 index 0000000000..d537604bee --- /dev/null +++ b/closure/library/ui/ac/BUILD @@ -0,0 +1,180 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":ac", + ":arraymatcher", + ":autocomplete", + ":cachingmatcher", + ":inputhandler", + ":remote", + ":remotearraymatcher", + ":renderer", + ":renderoptions", + ":richinputhandler", + ":richremote", + ":richremotearraymatcher", + ], +) + +closure_js_library( + name = "ac", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/ac/ac.js"], + lenient = True, + deps = [ + "//closure/library/ui/ac:arraymatcher", + "//closure/library/ui/ac:autocomplete", + "//closure/library/ui/ac:inputhandler", + "//closure/library/ui/ac:renderer", + ], +) + +closure_js_library( + name = "arraymatcher", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/ac/arraymatcher.js"], + lenient = True, + deps = ["//closure/library/string"], +) + +closure_js_library( + name = "autocomplete", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/ac/autocomplete.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/events", + "//closure/library/events:eventtarget", + "//closure/library/object", + "//closure/library/ui/ac:renderoptions", + ], +) + +closure_js_library( + name = "cachingmatcher", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/ac/cachingmatcher.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/async:throttle", + "//closure/library/ui/ac:arraymatcher", + "//closure/library/ui/ac:renderoptions", + ], +) + +closure_js_library( + name = "inputhandler", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/ac/inputhandler.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria", + "//closure/library/a11y/aria:attributes", + "//closure/library/a11y/aria:roles", + "//closure/library/disposable", + "//closure/library/dom", + "//closure/library/dom:selection", + "//closure/library/events:eventhandler", + "//closure/library/events:eventtype", + "//closure/library/events:keycodes", + "//closure/library/events:keyhandler", + "//closure/library/string", + "//closure/library/timer", + "//closure/library/useragent", + "//closure/library/useragent:product", + ], +) + +closure_js_library( + name = "remote", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/ac/remote.js"], + lenient = True, + deps = [ + "//closure/library/ui/ac:autocomplete", + "//closure/library/ui/ac:inputhandler", + "//closure/library/ui/ac:remotearraymatcher", + "//closure/library/ui/ac:renderer", + ], +) + +closure_js_library( + name = "remotearraymatcher", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/ac/remotearraymatcher.js"], + lenient = True, + deps = [ + "//closure/library/disposable", + "//closure/library/events", + "//closure/library/net:eventtype", + "//closure/library/net:xhrio", + "//closure/library/uri", + ], +) + +closure_js_library( + name = "renderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/ac/renderer.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria", + "//closure/library/a11y/aria:attributes", + "//closure/library/a11y/aria:roles", + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/disposable", + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/dom:nodetype", + "//closure/library/dom:tagname", + "//closure/library/events", + "//closure/library/events:eventtarget", + "//closure/library/events:eventtype", + "//closure/library/fx:dom", + "//closure/library/positioning", + "//closure/library/string", + "//closure/library/style", + "//closure/library/ui:idgenerator", + "//closure/library/ui/ac:autocomplete", + ], +) + +closure_js_library( + name = "renderoptions", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/ac/renderoptions.js"], + lenient = True, +) + +closure_js_library( + name = "richinputhandler", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/ac/richinputhandler.js"], + lenient = True, + deps = ["//closure/library/ui/ac:inputhandler"], +) + +closure_js_library( + name = "richremote", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/ac/richremote.js"], + lenient = True, + deps = [ + "//closure/library/ui/ac:autocomplete", + "//closure/library/ui/ac:remote", + "//closure/library/ui/ac:renderer", + "//closure/library/ui/ac:richinputhandler", + "//closure/library/ui/ac:richremotearraymatcher", + ], +) + +closure_js_library( + name = "richremotearraymatcher", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/ac/richremotearraymatcher.js"], + lenient = True, + deps = [ + "//closure/library/dom", + "//closure/library/ui/ac:remotearraymatcher", + ], +) diff --git a/closure/library/ui/editor/BUILD b/closure/library/ui/editor/BUILD new file mode 100644 index 0000000000..befd015010 --- /dev/null +++ b/closure/library/ui/editor/BUILD @@ -0,0 +1,175 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":abstractdialog", + ":bubble", + ":defaulttoolbar", + ":linkdialog", + ":messages", + ":tabpane", + ":toolbarcontroller", + ":toolbarfactory", + ], +) + +closure_js_library( + name = "abstractdialog", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/editor/abstractdialog.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/events:eventtarget", + "//closure/library/string", + "//closure/library/ui:dialog", + "//closure/library/ui:popupbase", + ], +) + +closure_js_library( + name = "bubble", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/editor/bubble.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/dom:tagname", + "//closure/library/dom:viewportsizemonitor", + "//closure/library/editor:style", + "//closure/library/events:eventhandler", + "//closure/library/events:eventtarget", + "//closure/library/events:eventtype", + "//closure/library/functions", + "//closure/library/log", + "//closure/library/math:box", + "//closure/library/object", + "//closure/library/positioning", + "//closure/library/string", + "//closure/library/style", + "//closure/library/ui:component", + "//closure/library/ui:popupbase", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "defaulttoolbar", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/editor/defaulttoolbar.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/dom:tagname", + "//closure/library/editor:command", + "//closure/library/style", + "//closure/library/ui/editor:messages", + "//closure/library/ui/editor:toolbarfactory", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "linkdialog", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/editor/linkdialog.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria", + "//closure/library/a11y/aria:attributes", + "//closure/library/dom", + "//closure/library/dom:inputtype", + "//closure/library/dom:safe", + "//closure/library/dom:tagname", + "//closure/library/editor:browserfeature", + "//closure/library/editor:focus", + "//closure/library/editor:link", + "//closure/library/editor:node", + "//closure/library/events:event", + "//closure/library/events:eventhandler", + "//closure/library/events:inputhandler", + "//closure/library/html:safehtml", + "//closure/library/html:safehtmlformatter", + "//closure/library/string", + "//closure/library/style", + "//closure/library/ui:button", + "//closure/library/ui:component", + "//closure/library/ui:linkbuttonrenderer", + "//closure/library/ui/editor:abstractdialog", + "//closure/library/ui/editor:messages", + "//closure/library/ui/editor:tabpane", + "//closure/library/useragent", + "//closure/library/window", + ], +) + +closure_js_library( + name = "messages", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/editor/messages.js"], + lenient = True, + deps = ["//closure/library/html:safehtmlformatter"], +) + +closure_js_library( + name = "tabpane", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/editor/tabpane.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/dom", + "//closure/library/dom:classlist", + "//closure/library/dom:inputtype", + "//closure/library/dom:tagname", + "//closure/library/events:eventhandler", + "//closure/library/events:eventtype", + "//closure/library/style", + "//closure/library/ui:component", + "//closure/library/ui:control", + "//closure/library/ui:tab", + "//closure/library/ui:tabbar", + ], +) + +closure_js_library( + name = "toolbarcontroller", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/editor/toolbarcontroller.js"], + lenient = True, + deps = [ + "//closure/library/editor:field", + "//closure/library/events:eventhandler", + "//closure/library/events:eventtarget", + "//closure/library/ui:component", + ], +) + +closure_js_library( + name = "toolbarfactory", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/editor/toolbarfactory.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/dom", + "//closure/library/dom:tagname", + "//closure/library/string", + "//closure/library/style", + "//closure/library/ui:component", + "//closure/library/ui:container", + "//closure/library/ui:option", + "//closure/library/ui:toolbar", + "//closure/library/ui:toolbarbutton", + "//closure/library/ui:toolbarcolormenubutton", + "//closure/library/ui:toolbarmenubutton", + "//closure/library/ui:toolbarrenderer", + "//closure/library/ui:toolbarselect", + "//closure/library/useragent", + ], +) diff --git a/closure/library/ui/emoji/BUILD b/closure/library/ui/emoji/BUILD new file mode 100644 index 0000000000..9a8cc11ae8 --- /dev/null +++ b/closure/library/ui/emoji/BUILD @@ -0,0 +1,102 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":emoji", + ":emojipalette", + ":emojipaletterenderer", + ":emojipicker", + ":popupemojipicker", + ":progressiveemojipaletterenderer", + ":spriteinfo", + ], +) + +closure_js_library( + name = "emoji", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/emoji/emoji.js"], + lenient = True, +) + +closure_js_library( + name = "emojipalette", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/emoji/emojipalette.js"], + lenient = True, + deps = [ + "//closure/library/events:eventtype", + "//closure/library/net:imageloader", + "//closure/library/ui:palette", + "//closure/library/ui/emoji", + "//closure/library/ui/emoji:emojipaletterenderer", + ], +) + +closure_js_library( + name = "emojipaletterenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/emoji/emojipaletterenderer.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria", + "//closure/library/asserts", + "//closure/library/dom:classlist", + "//closure/library/dom:nodetype", + "//closure/library/dom:tagname", + "//closure/library/style", + "//closure/library/ui:paletterenderer", + "//closure/library/ui/emoji", + ], +) + +closure_js_library( + name = "emojipicker", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/emoji/emojipicker.js"], + lenient = True, + deps = [ + "//closure/library/dom:tagname", + "//closure/library/style", + "//closure/library/ui:component", + "//closure/library/ui:tabpane", + "//closure/library/ui/emoji", + "//closure/library/ui/emoji:emojipalette", + "//closure/library/ui/emoji:emojipaletterenderer", + "//closure/library/ui/emoji:progressiveemojipaletterenderer", + ], +) + +closure_js_library( + name = "popupemojipicker", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/emoji/popupemojipicker.js"], + lenient = True, + deps = [ + "//closure/library/events:eventtype", + "//closure/library/positioning", + "//closure/library/positioning:anchoredposition", + "//closure/library/ui:component", + "//closure/library/ui:popup", + "//closure/library/ui/emoji:emojipicker", + ], +) + +closure_js_library( + name = "progressiveemojipaletterenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/emoji/progressiveemojipaletterenderer.js"], + lenient = True, + deps = [ + "//closure/library/dom:tagname", + "//closure/library/style", + "//closure/library/ui/emoji:emojipaletterenderer", + ], +) + +closure_js_library( + name = "spriteinfo", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/emoji/spriteinfo.js"], + lenient = True, +) diff --git a/closure/library/ui/media/BUILD b/closure/library/ui/media/BUILD new file mode 100644 index 0000000000..c886341752 --- /dev/null +++ b/closure/library/ui/media/BUILD @@ -0,0 +1,162 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":flashobject", + ":flickr", + ":googlevideo", + ":media", + ":mediamodel", + ":mp3", + ":photo", + ":picasa", + ":vimeo", + ":youtube", + ], +) + +closure_js_library( + name = "flashobject", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/media/flashobject.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/dom:safe", + "//closure/library/dom:tagname", + "//closure/library/events:event", + "//closure/library/events:eventhandler", + "//closure/library/events:eventtype", + "//closure/library/html:flash", + "//closure/library/html:trustedresourceurl", + "//closure/library/log", + "//closure/library/object", + "//closure/library/string", + "//closure/library/structs:map", + "//closure/library/style", + "//closure/library/ui:component", + "//closure/library/useragent", + "//closure/library/useragent:flash", + ], +) + +closure_js_library( + name = "flickr", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/media/flickr.js"], + lenient = True, + deps = [ + "//closure/library/html:trustedresourceurl", + "//closure/library/string:const", + "//closure/library/ui/media", + "//closure/library/ui/media:flashobject", + "//closure/library/ui/media:mediamodel", + ], +) + +closure_js_library( + name = "googlevideo", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/media/googlevideo.js"], + lenient = True, + deps = [ + "//closure/library/html:trustedresourceurl", + "//closure/library/string", + "//closure/library/string:const", + "//closure/library/ui/media", + "//closure/library/ui/media:flashobject", + "//closure/library/ui/media:mediamodel", + ], +) + +closure_js_library( + name = "media", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/media/media.js"], + lenient = True, + deps = [ + "//closure/library/asserts", + "//closure/library/dom:tagname", + "//closure/library/style", + "//closure/library/ui:component", + "//closure/library/ui:control", + "//closure/library/ui:controlrenderer", + ], +) + +closure_js_library( + name = "mediamodel", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/media/mediamodel.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/html:trustedresourceurl", + ], +) + +closure_js_library( + name = "mp3", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/media/mp3.js"], + lenient = True, + deps = [ + "//closure/library/string", + "//closure/library/ui/media", + "//closure/library/ui/media:flashobject", + ], +) + +closure_js_library( + name = "photo", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/media/photo.js"], + lenient = True, + deps = [ + "//closure/library/dom:tagname", + "//closure/library/ui/media", + ], +) + +closure_js_library( + name = "picasa", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/media/picasa.js"], + lenient = True, + deps = [ + "//closure/library/html:trustedresourceurl", + "//closure/library/string:const", + "//closure/library/ui/media", + "//closure/library/ui/media:flashobject", + "//closure/library/ui/media:mediamodel", + ], +) + +closure_js_library( + name = "vimeo", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/media/vimeo.js"], + lenient = True, + deps = [ + "//closure/library/html:trustedresourceurl", + "//closure/library/string", + "//closure/library/string:const", + "//closure/library/ui/media", + "//closure/library/ui/media:flashobject", + "//closure/library/ui/media:mediamodel", + ], +) + +closure_js_library( + name = "youtube", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/media/youtube.js"], + lenient = True, + deps = [ + "//closure/library/dom:tagname", + "//closure/library/html:trustedresourceurl", + "//closure/library/string", + "//closure/library/string:const", + "//closure/library/ui:component", + "//closure/library/ui/media", + "//closure/library/ui/media:flashobject", + "//closure/library/ui/media:mediamodel", + ], +) diff --git a/closure/library/ui/style/app/BUILD b/closure/library/ui/style/app/BUILD new file mode 100644 index 0000000000..312698a412 --- /dev/null +++ b/closure/library/ui/style/app/BUILD @@ -0,0 +1,57 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":buttonrenderer", + ":menubuttonrenderer", + ":primaryactionbuttonrenderer", + ], +) + +closure_js_library( + name = "buttonrenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/style/app/buttonrenderer.js"], + lenient = True, + deps = [ + "//closure/library/dom:classlist", + "//closure/library/dom:tagname", + "//closure/library/ui:button", + "//closure/library/ui:cssnames", + "//closure/library/ui:custombuttonrenderer", + "//closure/library/ui:registry", + ], +) + +closure_js_library( + name = "menubuttonrenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/style/app/menubuttonrenderer.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria:roles", + "//closure/library/array", + "//closure/library/dom", + "//closure/library/dom:tagname", + "//closure/library/style", + "//closure/library/ui:menu", + "//closure/library/ui:menurenderer", + "//closure/library/ui/style/app:buttonrenderer", + ], +) + +closure_js_library( + name = "primaryactionbuttonrenderer", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/style/app/primaryactionbuttonrenderer.js"], + lenient = True, + deps = [ + "//closure/library/ui:button", + "//closure/library/ui:registry", + "//closure/library/ui/style/app:buttonrenderer", + ], +) diff --git a/closure/library/ui/tree/BUILD b/closure/library/ui/tree/BUILD new file mode 100644 index 0000000000..6b57a49104 --- /dev/null +++ b/closure/library/ui/tree/BUILD @@ -0,0 +1,77 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":basenode", + ":treecontrol", + ":treenode", + ":typeahead", + ], +) + +closure_js_library( + name = "basenode", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/tree/basenode.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria", + "//closure/library/a11y/aria:attributes", + "//closure/library/asserts", + "//closure/library/dom:safe", + "//closure/library/events:event", + "//closure/library/events:keycodes", + "//closure/library/html:safehtml", + "//closure/library/html:safestyle", + "//closure/library/string", + "//closure/library/string:stringbuffer", + "//closure/library/style", + "//closure/library/timer", + "//closure/library/ui:component", + ], +) + +closure_js_library( + name = "treecontrol", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/tree/treecontrol.js"], + lenient = True, + deps = [ + "//closure/library/a11y/aria", + "//closure/library/asserts", + "//closure/library/dom:classlist", + "//closure/library/events:eventtype", + "//closure/library/events:focushandler", + "//closure/library/events:keyhandler", + "//closure/library/html:safehtml", + "//closure/library/log", + "//closure/library/ui/tree:basenode", + "//closure/library/ui/tree:treenode", + "//closure/library/ui/tree:typeahead", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "treenode", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/tree/treenode.js"], + lenient = True, + deps = ["//closure/library/ui/tree:basenode"], +) + +closure_js_library( + name = "typeahead", + srcs = ["@com_google_javascript_closure_library//:closure/goog/ui/tree/typeahead.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/events:keycodes", + "//closure/library/string", + "//closure/library/structs:trie", + ], +) diff --git a/closure/library/uri/BUILD b/closure/library/uri/BUILD new file mode 100644 index 0000000000..2e6ab3628f --- /dev/null +++ b/closure/library/uri/BUILD @@ -0,0 +1,40 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":uri", + ":utils", + ], +) + +closure_js_library( + name = "uri", + srcs = ["@com_google_javascript_closure_library//:closure/goog/uri/uri.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/string", + "//closure/library/structs", + "//closure/library/structs:map", + "//closure/library/uri:utils", + ], +) + +closure_js_library( + name = "utils", + srcs = ["@com_google_javascript_closure_library//:closure/goog/uri/utils.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/string", + ], +) diff --git a/closure/library/useragent/BUILD b/closure/library/useragent/BUILD new file mode 100644 index 0000000000..c13ef9a41f --- /dev/null +++ b/closure/library/useragent/BUILD @@ -0,0 +1,128 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":adobereader", + ":flash", + ":iphoto", + ":jscript", + ":keyboard", + ":platform", + ":product", + ":product_isversion", + ":useragent", + ], +) + +closure_js_library( + name = "adobereader", + srcs = ["@com_google_javascript_closure_library//:closure/goog/useragent/adobereader.js"], + lenient = True, + deps = [ + "//closure/library/string", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "flash", + srcs = ["@com_google_javascript_closure_library//:closure/goog/useragent/flash.js"], + lenient = True, + deps = ["//closure/library/string"], +) + +closure_js_library( + name = "iphoto", + srcs = ["@com_google_javascript_closure_library//:closure/goog/useragent/iphoto.js"], + lenient = True, + deps = [ + "//closure/library/string", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "jscript", + srcs = ["@com_google_javascript_closure_library//:closure/goog/useragent/jscript.js"], + lenient = True, + deps = ["//closure/library/string"], +) + +closure_js_library( + name = "keyboard", + srcs = ["@com_google_javascript_closure_library//:closure/goog/useragent/keyboard.js"], + lenient = True, + deps = ["//closure/library/labs/useragent:platform"], +) + +closure_js_library( + name = "platform", + srcs = ["@com_google_javascript_closure_library//:closure/goog/useragent/platform.js"], + lenient = True, + deps = [ + "//closure/library/string", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "product", + srcs = ["@com_google_javascript_closure_library//:closure/goog/useragent/product.js"], + lenient = True, + deps = [ + "//closure/library/labs/useragent:browser", + "//closure/library/labs/useragent:platform", + "//closure/library/useragent", + ], +) + +closure_js_library( + name = "product_isversion", + srcs = ["@com_google_javascript_closure_library//:closure/goog/useragent/product_isversion.js"], + lenient = True, + deps = [ + "//closure/library/labs/useragent:platform", + "//closure/library/string", + "//closure/library/useragent", + "//closure/library/useragent:product", + ], +) + +closure_js_library( + name = "useragent", + srcs = ["@com_google_javascript_closure_library//:closure/goog/useragent/useragent.js"], + lenient = True, + deps = [ + "//closure/library/labs/useragent:browser", + "//closure/library/labs/useragent:engine", + "//closure/library/labs/useragent:platform", + "//closure/library/labs/useragent:util", + "//closure/library/reflect", + "//closure/library/string", + ], +) + +closure_js_library( + name = "useragenttestutil", + testonly = True, + srcs = ["@com_google_javascript_closure_library//:closure/goog/useragent/useragenttestutil.js"], + lenient = True, + deps = [ + "//closure/library/labs/useragent:browser", + "//closure/library/labs/useragent:engine", + "//closure/library/labs/useragent:platform", + "//closure/library/object", + "//closure/library/useragent", + "//closure/library/useragent:keyboard", + "//closure/library/useragent:platform", + "//closure/library/useragent:product", + "//closure/library/useragent:product_isversion", + ], +) diff --git a/closure/library/vec/BUILD b/closure/library/vec/BUILD new file mode 100644 index 0000000000..d12968652c --- /dev/null +++ b/closure/library/vec/BUILD @@ -0,0 +1,198 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":float32array", + ":float64array", + ":mat3", + ":mat3d", + ":mat3f", + ":mat4", + ":mat4d", + ":mat4f", + ":quaternion", + ":ray", + ":vec", + ":vec2", + ":vec2d", + ":vec2f", + ":vec3", + ":vec3d", + ":vec3f", + ":vec4", + ":vec4d", + ":vec4f", + ], +) + +closure_js_library( + name = "float32array", + srcs = ["@com_google_javascript_closure_library//:closure/goog/vec/float32array.js"], + lenient = True, +) + +closure_js_library( + name = "float64array", + srcs = ["@com_google_javascript_closure_library//:closure/goog/vec/float64array.js"], + lenient = True, +) + +closure_js_library( + name = "mat3", + srcs = ["@com_google_javascript_closure_library//:closure/goog/vec/mat3.js"], + lenient = True, + deps = ["//closure/library/vec"], +) + +closure_js_library( + name = "mat3d", + srcs = ["@com_google_javascript_closure_library//:closure/goog/vec/mat3d.js"], + lenient = True, + deps = [ + "//closure/library/vec", + "//closure/library/vec:vec3d", + ], +) + +closure_js_library( + name = "mat3f", + srcs = ["@com_google_javascript_closure_library//:closure/goog/vec/mat3f.js"], + lenient = True, + deps = [ + "//closure/library/vec", + "//closure/library/vec:vec3f", + ], +) + +closure_js_library( + name = "mat4", + srcs = ["@com_google_javascript_closure_library//:closure/goog/vec/mat4.js"], + lenient = True, + deps = [ + "//closure/library/vec", + "//closure/library/vec:vec3", + "//closure/library/vec:vec4", + ], +) + +closure_js_library( + name = "mat4d", + srcs = ["@com_google_javascript_closure_library//:closure/goog/vec/mat4d.js"], + lenient = True, + deps = [ + "//closure/library/vec", + "//closure/library/vec:quaternion", + "//closure/library/vec:vec3d", + "//closure/library/vec:vec4d", + ], +) + +closure_js_library( + name = "mat4f", + srcs = ["@com_google_javascript_closure_library//:closure/goog/vec/mat4f.js"], + lenient = True, + deps = [ + "//closure/library/vec", + "//closure/library/vec:quaternion", + "//closure/library/vec:vec3f", + "//closure/library/vec:vec4f", + ], +) + +closure_js_library( + name = "quaternion", + srcs = ["@com_google_javascript_closure_library//:closure/goog/vec/quaternion.js"], + lenient = True, + deps = [ + "//closure/library/vec", + "//closure/library/vec:vec3", + "//closure/library/vec:vec4", + ], +) + +closure_js_library( + name = "ray", + srcs = ["@com_google_javascript_closure_library//:closure/goog/vec/ray.js"], + lenient = True, + deps = ["//closure/library/vec:vec3"], +) + +closure_js_library( + name = "vec", + srcs = ["@com_google_javascript_closure_library//:closure/goog/vec/vec.js"], + lenient = True, + deps = [ + "//closure/library/vec:float32array", + "//closure/library/vec:float64array", + ], +) + +closure_js_library( + name = "vec2", + srcs = ["@com_google_javascript_closure_library//:closure/goog/vec/vec2.js"], + lenient = True, + deps = ["//closure/library/vec"], +) + +closure_js_library( + name = "vec2d", + srcs = ["@com_google_javascript_closure_library//:closure/goog/vec/vec2d.js"], + lenient = True, + deps = ["//closure/library/vec"], +) + +closure_js_library( + name = "vec2f", + srcs = ["@com_google_javascript_closure_library//:closure/goog/vec/vec2f.js"], + lenient = True, + deps = ["//closure/library/vec"], +) + +closure_js_library( + name = "vec3", + srcs = ["@com_google_javascript_closure_library//:closure/goog/vec/vec3.js"], + lenient = True, + deps = ["//closure/library/vec"], +) + +closure_js_library( + name = "vec3d", + srcs = ["@com_google_javascript_closure_library//:closure/goog/vec/vec3d.js"], + lenient = True, + deps = ["//closure/library/vec"], +) + +closure_js_library( + name = "vec3f", + srcs = ["@com_google_javascript_closure_library//:closure/goog/vec/vec3f.js"], + lenient = True, + deps = ["//closure/library/vec"], +) + +closure_js_library( + name = "vec4", + srcs = ["@com_google_javascript_closure_library//:closure/goog/vec/vec4.js"], + lenient = True, + deps = ["//closure/library/vec"], +) + +closure_js_library( + name = "vec4d", + srcs = ["@com_google_javascript_closure_library//:closure/goog/vec/vec4d.js"], + lenient = True, + deps = ["//closure/library/vec"], +) + +closure_js_library( + name = "vec4f", + srcs = ["@com_google_javascript_closure_library//:closure/goog/vec/vec4f.js"], + lenient = True, + deps = ["//closure/library/vec"], +) diff --git a/closure/library/webgl/BUILD b/closure/library/webgl/BUILD new file mode 100644 index 0000000000..ee4fa6e3ff --- /dev/null +++ b/closure/library/webgl/BUILD @@ -0,0 +1,18 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [":webgl"], +) + +closure_js_library( + name = "webgl", + srcs = ["@com_google_javascript_closure_library//:closure/goog/webgl/webgl.js"], + lenient = True, +) diff --git a/closure/library/window/BUILD b/closure/library/window/BUILD new file mode 100644 index 0000000000..72fa6bd5f0 --- /dev/null +++ b/closure/library/window/BUILD @@ -0,0 +1,28 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [":window"], +) + +closure_js_library( + name = "window", + srcs = ["@com_google_javascript_closure_library//:closure/goog/window/window.js"], + lenient = True, + deps = [ + "//closure/library/dom:safe", + "//closure/library/dom:tagname", + "//closure/library/html:safeurl", + "//closure/library/html:uncheckedconversions", + "//closure/library/labs/useragent:platform", + "//closure/library/string", + "//closure/library/string:const", + "//closure/library/useragent", + ], +) diff --git a/closure/private/defs.bzl b/closure/private/defs.bzl index dfc595b7e8..b3521a4e15 100644 --- a/closure/private/defs.bzl +++ b/closure/private/defs.bzl @@ -32,14 +32,8 @@ JS_LANGUAGES = depset([ ]) CLOSURE_LIBRARY_BASE_ATTR = attr.label( - default=Label("@com_google_javascript_closure_library//:closure/goog/base.js"), - allow_files=True, - single_file=True) - -CLOSURE_LIBRARY_DEPS_ATTR = attr.label( - default=Label("@com_google_javascript_closure_library//:closure/goog/deps.js"), - allow_files=True, - single_file=True) + default=Label("//closure/library:base"), + allow_files=True) CLOSURE_WORKER_ATTR = attr.label( default=Label("//java/io/bazel/rules/closure:ClosureWorker"), @@ -60,7 +54,6 @@ def unfurl(deps, provider=""): def collect_js(deps, closure_library_base=None, - closure_library_deps=None, has_direct_srcs=False, no_closure_library=False, css=None): @@ -89,13 +82,13 @@ def collect_js(deps, fail("no_closure_library can't be used when Closure Library is " + "already part of the transitive closure") elif has_direct_srcs and not has_closure_library: - tmp = depset([closure_library_base, closure_library_deps]) + tmp = depset(closure_library_base) tmp += srcs srcs = tmp has_closure_library = True if css: - tmp = depset([closure_library_base, - css.closure_css_binary.renaming_map]) + tmp = depset(closure_library_base) + tmp += [css.closure_css_binary.renaming_map] tmp += srcs srcs = tmp return struct( @@ -222,7 +215,9 @@ def create_argfile(actions, name, args): return argfile def library_level_checks( - actions, label, ijs_deps, srcs, executable, output, suppress = []): + actions, label, ijs_deps, srcs, executable, output, + suppress = [], + lenient = False): args = [ "JsCompiler", "--checks_only", @@ -243,6 +238,8 @@ def library_level_checks( for s in suppress: args.append("--suppress") args.append(s) + if lenient: + args.append("--lenient") actions.run( inputs=inputs, outputs=[output], diff --git a/closure/protobuf/BUILD b/closure/protobuf/BUILD index 421b1cd482..91f951a592 100644 --- a/closure/protobuf/BUILD +++ b/closure/protobuf/BUILD @@ -27,5 +27,12 @@ closure_js_library( "reportUnknownTypes", "strictCheckTypes", ], - deps = ["//closure/library"], + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/crypt", + "//closure/library/crypt:base64", + "//closure/library/object", + "//closure/library/string", + ], ) diff --git a/closure/protobuf/closure_js_proto_library.bzl b/closure/protobuf/closure_js_proto_library.bzl index 4bbeca1423..683f41671e 100644 --- a/closure/protobuf/closure_js_proto_library.bzl +++ b/closure/protobuf/closure_js_proto_library.bzl @@ -69,16 +69,14 @@ def closure_js_proto_library( srcs = [name + ".js"], testonly = testonly, deps = [ - str(Label("//closure/library")), + str(Label("//closure/library/array")), str(Label("//closure/protobuf:jspb")), ], internal_descriptors = [name + ".descriptor"], suppress = suppress + [ - "analyzerChecks", - "missingOverride", "missingProperties", - "reportUnknownTypes", "unusedLocalVariables", ], + lenient = True, **kwargs ) diff --git a/closure/protobuf/closure_proto_library.bzl b/closure/protobuf/closure_proto_library.bzl index 4e2ff08edd..e76fd463df 100644 --- a/closure/protobuf/closure_proto_library.bzl +++ b/closure/protobuf/closure_proto_library.bzl @@ -19,7 +19,6 @@ load("//closure/compiler:closure_js_library.bzl", "closure_js_library_impl") load("//closure/private:defs.bzl", "CLOSURE_WORKER_ATTR", "CLOSURE_LIBRARY_BASE_ATTR", - "CLOSURE_LIBRARY_DEPS_ATTR", "unfurl") # This was borrowed from Rules Go, licensed under Apache 2. @@ -96,19 +95,15 @@ def _closure_proto_aspect_impl(target, ctx): deps += [ctx.attr._closure_library, ctx.attr._closure_protobuf_jspb] suppress = [ - "analyzerChecks", - "missingOverride", "missingProperties", - "reportUnknownTypes", "unusedLocalVariables", ] library = closure_js_library_impl( ctx.actions, ctx.label, ctx.workspace_name, - srcs, deps, ctx.rule.attr.testonly, suppress, + srcs, deps, ctx.rule.attr.testonly, suppress, True, - ctx.file._closure_library_base, - ctx.file._closure_library_deps, + ctx.files._closure_library_base, ctx.executable._ClosureWorker) return struct( exports = library.exports, @@ -127,9 +122,8 @@ _closure_proto_aspect = aspect( ), "_ClosureWorker": CLOSURE_WORKER_ATTR, "_closure_library_base": CLOSURE_LIBRARY_BASE_ATTR, - "_closure_library_deps": CLOSURE_LIBRARY_DEPS_ATTR, "_closure_library": attr.label( - default = Label("//closure/library"), + default = Label("//closure/library/array"), ), "_closure_protobuf_jspb": attr.label( default = Label("//closure/protobuf:jspb"), diff --git a/closure/repositories.bzl b/closure/repositories.bzl index e0e675c653..fc80dd5e83 100644 --- a/closure/repositories.bzl +++ b/closure/repositories.bzl @@ -635,9 +635,7 @@ def com_google_javascript_closure_compiler(): ) def com_google_javascript_closure_library(): - # To update Closure Library, one needs to uncomment and run the - # js_library_files_maker and js_testing_files_maker genrules in - # closure_library.BUILD. + # After updating: bazel run //closure/library:regenerate -- "$PWD" native.new_http_archive( name = "com_google_javascript_closure_library", urls = [ diff --git a/closure/templates/BUILD b/closure/templates/BUILD index f64f886ce7..6102f801d1 100644 --- a/closure/templates/BUILD +++ b/closure/templates/BUILD @@ -32,15 +32,28 @@ closure_js_proto_library( closure_js_library( name = "soy_jssrc", srcs = ["@com_google_template_soy_jssrc"], - suppress = [ - "analyzerChecks", - "lintChecks", - "reportUnknownTypes", - "strictCheckTypes", - ], + lenient = True, deps = [ ":soy_html_proto", - "//closure/library", + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/debug", + "//closure/library/format", + "//closure/library/html:safehtml", + "//closure/library/html:safescript", + "//closure/library/html:safestyle", + "//closure/library/html:safestylesheet", + "//closure/library/html:safeurl", + "//closure/library/html:trustedresourceurl", + "//closure/library/html:uncheckedconversions", + "//closure/library/i18n:bidi", + "//closure/library/i18n:bidiformatter", + "//closure/library/i18n:numberformat", + "//closure/library/object", + "//closure/library/soy:all_js", + "//closure/library/string", + "//closure/library/string:const", + "//closure/library/uri", ], ) @@ -53,7 +66,8 @@ closure_js_library( ], deps = [ ":soy_jssrc", - "//closure/library", + "//closure/library/soy", + "//closure/library/soy:data", "//third_party/javascript/incremental_dom", ], ) diff --git a/closure/templates/closure_js_template_library.bzl b/closure/templates/closure_js_template_library.bzl index 2fc475feaa..bb7f1aee78 100644 --- a/closure/templates/closure_js_template_library.bzl +++ b/closure/templates/closure_js_template_library.bzl @@ -120,8 +120,28 @@ def closure_js_template_library( compiler = compiler, ) - deps = deps + [str(Label("//closure/library")), - str(Label("//closure/templates:soy_jssrc"))] + deps = deps + [ + str(Label("//closure/library/array")), + str(Label("//closure/library/asserts")), + str(Label("//closure/library/debug")), + str(Label("//closure/library/format")), + str(Label("//closure/library/html:safehtml")), + str(Label("//closure/library/html:safescript")), + str(Label("//closure/library/html:safestyle")), + str(Label("//closure/library/html:safestylesheet")), + str(Label("//closure/library/html:safeurl")), + str(Label("//closure/library/html:trustedresourceurl")), + str(Label("//closure/library/html:uncheckedconversions")), + str(Label("//closure/library/i18n:bidi")), + str(Label("//closure/library/i18n:bidiformatter")), + str(Label("//closure/library/i18n:numberformat")), + str(Label("//closure/library/object")), + str(Label("//closure/library/soy:all_js")), + str(Label("//closure/library/string")), + str(Label("//closure/library/string:const")), + str(Label("//closure/library/uri")), + str(Label("//closure/templates:soy_jssrc")), + ] if incremental_dom: deps = deps + [ str(Label("//closure/templates:soy_jssrc_idom")), diff --git a/closure/templates/test/BUILD b/closure/templates/test/BUILD index 9138824d1d..98adedb52f 100644 --- a/closure/templates/test/BUILD +++ b/closure/templates/test/BUILD @@ -58,7 +58,7 @@ closure_js_library( srcs = ["greeter.js"], deps = [ ":greeter_soy", - "//closure/library", + "//closure/library/soy", ], ) @@ -67,7 +67,6 @@ closure_js_library( srcs = ["greeter_idom.js"], deps = [ ":greeter_idom_soy", - "//closure/library", "//third_party/javascript/incremental_dom", ], ) @@ -78,7 +77,7 @@ closure_js_library( deps = [ ":greeter_proto_soy", ":person_proto", - "//closure/library", + "//closure/library/soy", ], ) @@ -88,7 +87,6 @@ closure_js_library( deps = [ ":greeter_idom_proto_soy", ":person_proto", - "//closure/library", "//third_party/javascript/incremental_dom", ], ) @@ -99,8 +97,9 @@ closure_js_test( srcs = ["greeter_test.js"], deps = [ ":greeter_lib", - "//closure/library", - "//closure/library:testing", + "//closure/library/asserts", + "//closure/library/testing:asserts", + "//closure/library/testing:jsunit", ], ) @@ -110,8 +109,9 @@ closure_js_test( srcs = ["greeter_idom_test.js"], deps = [ ":greeter_idom_lib", - "//closure/library", - "//closure/library:testing", + "//closure/library/module", + "//closure/library/testing:asserts", + "//closure/library/testing:jsunit", ], ) @@ -121,8 +121,9 @@ closure_js_test( srcs = ["greeter_proto_test.js"], deps = [ ":greeter_proto_lib", - "//closure/library", - "//closure/library:testing", + "//closure/library/asserts", + "//closure/library/testing:asserts", + "//closure/library/testing:jsunit", ], ) @@ -132,8 +133,9 @@ closure_js_test( srcs = ["greeter_idom_proto_test.js"], deps = [ ":greeter_idom_proto_lib", - "//closure/library", - "//closure/library:testing", + "//closure/library/module", + "//closure/library/testing:asserts", + "//closure/library/testing:jsunit", ], ) @@ -158,7 +160,6 @@ closure_js_library( srcs = ["greeter_idom_fail.js"], deps = [ ":greeter_idom_soy", - "//closure/library", "//third_party/javascript/incremental_dom", ], ) diff --git a/closure/testing/test/BUILD b/closure/testing/test/BUILD index 29242e3786..db9856843e 100644 --- a/closure/testing/test/BUILD +++ b/closure/testing/test/BUILD @@ -29,7 +29,10 @@ closure_js_test( name = "simple_test", timeout = "short", srcs = ["simple_test.js"], - deps = ["//closure/library:testing"], + deps = [ + "//closure/library/testing:asserts", + "//closure/library/testing:jsunit", + ], ) closure_js_library( @@ -45,7 +48,9 @@ closure_js_test( entry_points = ["goog:arithmetic_module_test"], deps = [ ":arithmetic_module_lib", - "//closure/library:testing", + "//closure/library/testing:asserts", + "//closure/library/testing:jsunit", + "//closure/library/testing:testsuite", ], ) @@ -55,7 +60,9 @@ closure_js_test( srcs = ["arithmetic_scope_test.js"], deps = [ ":arithmetic_lib", - "//closure/library:testing", + "//closure/library/testing:asserts", + "//closure/library/testing:jsunit", + "//closure/library/testing:testsuite", ], ) diff --git a/java/com/google/javascript/jscomp/Diagnostics.java b/java/com/google/javascript/jscomp/Diagnostics.java index fe41a61a95..cefb1ce6d2 100644 --- a/java/com/google/javascript/jscomp/Diagnostics.java +++ b/java/com/google/javascript/jscomp/Diagnostics.java @@ -61,13 +61,6 @@ final class Diagnostics { "superfluousSuppress", "useOfGoogBase"); - /** Diagnostic groups both {@link JsChecker} and {@link JsCompiler} will check. */ - static final ImmutableSet JSCHECKER_EXTRA_ERRORS = - ImmutableSet.of( - // Even though we're not running the typechecker, enable the checkTypes DiagnosticGroup, - // since it contains some warnings we do want to report, such as JSDoc parse warnings. - "checkTypes"); - /** Legal values for a {@code @suppress {foo}} JSDoc tag. */ // Keep in sync with com/google/javascript/jscomp/parsing/ParserConfig.properties private static final ImmutableSet LEGAL_JSDOC_SUPPRESSIONS = @@ -117,6 +110,13 @@ final class Diagnostics { "visibility", "with"); + /** Diagnostic groups both {@link JsChecker} and {@link JsCompiler} will check. */ + static final ImmutableSet JSCHECKER_EXTRA_ERRORS = + ImmutableSet.of( + // Even though we're not running the typechecker, enable the checkTypes DiagnosticGroup, + // since it contains some warnings we do want to report, such as JSDoc parse warnings. + "checkTypes"); + /** Checks to suppress if closure_js_library convention is not GOOGLE. */ static final ImmutableSet GOOGLE_LINTER_CHECKS = ImmutableSet.of( diff --git a/java/com/google/javascript/jscomp/JsChecker.java b/java/com/google/javascript/jscomp/JsChecker.java index ad635cccee..8a9b2d707b 100644 --- a/java/com/google/javascript/jscomp/JsChecker.java +++ b/java/com/google/javascript/jscomp/JsChecker.java @@ -261,13 +261,15 @@ public CheckLevel level(JSError error) { // linting were actually suppressed. However we can only offer this safety on the checks over // which JsChecker has sole dominion. Other suppress codes won't actually be suppressed until // they've been propagated up to the closure_js_binary rule. - Set useless = - Sets.intersection( - Sets.difference(ImmutableSet.copyOf(suppress), actuallySuppressed), - Diagnostics.JSCHECKER_ONLY_SUPPRESS_CODES); - if (!useless.isEmpty()) { - errorManager.report(CheckLevel.ERROR, - JSError.make(Diagnostics.SUPERFLUOUS_SUPPRESS, label, Joiner.on(", ").join(useless))); + if (!suppress.contains("superfluousSuppress")) { + Set useless = + Sets.intersection( + Sets.difference(ImmutableSet.copyOf(suppress), actuallySuppressed), + Diagnostics.JSCHECKER_ONLY_SUPPRESS_CODES); + if (!useless.isEmpty()) { + errorManager.report(CheckLevel.ERROR, + JSError.make(Diagnostics.SUPERFLUOUS_SUPPRESS, label, Joiner.on(", ").join(useless))); + } } // TODO: Make compiler.compile() package private so we don't have to do this. diff --git a/third_party/closure/library/BUILD b/third_party/closure/library/BUILD new file mode 100644 index 0000000000..5136bd80d8 --- /dev/null +++ b/third_party/closure/library/BUILD @@ -0,0 +1,32 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + "//third_party/closure/library/caja/string/html:all_js", + "//third_party/closure/library/dojo/dom:all_js", + "//third_party/closure/library/loremipsum/text:all_js", + "//third_party/closure/library/mochikit/async:all_js", + "//third_party/closure/library/svgpan:all_js", + ], +) + +closure_js_library( + name = "base", + srcs = ["@com_google_javascript_closure_library//:third_party/closure/goog/base.js"], + lenient = True, + no_closure_library = True, +) + +closure_js_library( + name = "deps", + srcs = ["@com_google_javascript_closure_library//:third_party/closure/goog/deps.js"], + lenient = True, + no_closure_library = True, +) diff --git a/third_party/closure/library/caja/string/html/BUILD b/third_party/closure/library/caja/string/html/BUILD new file mode 100644 index 0000000000..c266988f83 --- /dev/null +++ b/third_party/closure/library/caja/string/html/BUILD @@ -0,0 +1,18 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [":htmlparser"], +) + +closure_js_library( + name = "htmlparser", + srcs = ["@com_google_javascript_closure_library//:third_party/closure/goog/caja/string/html/htmlparser.js"], + lenient = True, +) diff --git a/third_party/closure/library/dojo/dom/BUILD b/third_party/closure/library/dojo/dom/BUILD new file mode 100644 index 0000000000..f605879c67 --- /dev/null +++ b/third_party/closure/library/dojo/dom/BUILD @@ -0,0 +1,25 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [":query"], +) + +closure_js_library( + name = "query", + srcs = ["@com_google_javascript_closure_library//:third_party/closure/goog/dojo/dom/query.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/dom", + "//closure/library/functions", + "//closure/library/string", + "//closure/library/useragent", + ], +) diff --git a/third_party/closure/library/loremipsum/text/BUILD b/third_party/closure/library/loremipsum/text/BUILD new file mode 100644 index 0000000000..8847311013 --- /dev/null +++ b/third_party/closure/library/loremipsum/text/BUILD @@ -0,0 +1,25 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [":loremipsum"], +) + +closure_js_library( + name = "loremipsum", + srcs = ["@com_google_javascript_closure_library//:third_party/closure/goog/loremipsum/text/loremipsum.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/math", + "//closure/library/string", + "//closure/library/structs:map", + "//closure/library/structs:set", + ], +) diff --git a/third_party/closure/library/mochikit/async/BUILD b/third_party/closure/library/mochikit/async/BUILD new file mode 100644 index 0000000000..3563bf7565 --- /dev/null +++ b/third_party/closure/library/mochikit/async/BUILD @@ -0,0 +1,35 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [ + ":deferred", + ":deferredlist", + ], +) + +closure_js_library( + name = "deferred", + srcs = ["@com_google_javascript_closure_library//:third_party/closure/goog/mochikit/async/deferred.js"], + lenient = True, + deps = [ + "//closure/library/array", + "//closure/library/asserts", + "//closure/library/debug:error", + "//closure/library/promise", + "//closure/library/promise:thenable", + ], +) + +closure_js_library( + name = "deferredlist", + srcs = ["@com_google_javascript_closure_library//:third_party/closure/goog/mochikit/async/deferredlist.js"], + lenient = True, + deps = ["//third_party/closure/library/mochikit/async:deferred"], +) diff --git a/third_party/closure/library/svgpan/BUILD b/third_party/closure/library/svgpan/BUILD new file mode 100644 index 0000000000..98807da40e --- /dev/null +++ b/third_party/closure/library/svgpan/BUILD @@ -0,0 +1,24 @@ +# DO NOT EDIT -- bazel run //closure/library:regenerate -- "$PWD" + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +load("//closure:defs.bzl", "closure_js_library") + +closure_js_library( + name = "all_js", + exports = [":svgpan"], +) + +closure_js_library( + name = "svgpan", + srcs = ["@com_google_javascript_closure_library//:third_party/closure/goog/svgpan/svgpan.js"], + lenient = True, + deps = [ + "//closure/library/disposable", + "//closure/library/events", + "//closure/library/events:eventtype", + "//closure/library/events:mousewheelhandler", + ], +)