projen 0.98.32 → 0.98.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +1906 -626
- package/lib/ai-instructions.js +2 -2
- package/lib/awscdk/auto-discover.js +5 -5
- package/lib/awscdk/awscdk-app-java.js +1 -1
- package/lib/awscdk/awscdk-app-py.js +1 -1
- package/lib/awscdk/awscdk-app-ts.js +1 -1
- package/lib/awscdk/awscdk-construct.js +2 -2
- package/lib/awscdk/awscdk-deps-java.js +1 -1
- package/lib/awscdk/awscdk-deps-js.js +1 -1
- package/lib/awscdk/awscdk-deps-py.js +1 -1
- package/lib/awscdk/awscdk-deps.js +1 -1
- package/lib/awscdk/cdk-config.js +4 -4
- package/lib/awscdk/cdk-tasks.js +1 -1
- package/lib/awscdk/integration-test.js +1 -1
- package/lib/awscdk/internal.d.ts +1 -2
- package/lib/awscdk/lambda-extension.js +1 -1
- package/lib/awscdk/lambda-function.js +2 -2
- package/lib/awscdk/private/feature-flags-v2.const.d.ts +2 -3
- package/lib/awscdk/private/feature-flags-v2.const.js +4 -5
- package/lib/build/build-workflow.js +6 -7
- package/lib/cdk/auto-discover-base.js +2 -2
- package/lib/cdk/construct-lib.js +1 -1
- package/lib/cdk/integration-test-base.js +1 -1
- package/lib/cdk/jsii-docgen.js +1 -1
- package/lib/cdk/jsii-project.js +1 -1
- package/lib/cdk8s/auto-discover.js +2 -2
- package/lib/cdk8s/cdk8s-app-py.js +1 -1
- package/lib/cdk8s/cdk8s-app-ts.js +1 -1
- package/lib/cdk8s/cdk8s-construct.js +1 -1
- package/lib/cdk8s/cdk8s-deps-py.js +1 -1
- package/lib/cdk8s/cdk8s-deps.js +1 -1
- package/lib/cdk8s/integration-test.js +1 -1
- package/lib/cdktf/cdktf-construct.js +1 -1
- package/lib/circleci/circleci.js +1 -1
- package/lib/cli/index.js +6 -3
- package/lib/component.js +1 -1
- package/lib/dependencies.js +1 -1
- package/lib/dev-env.js +1 -1
- package/lib/docker-compose/docker-compose-service.js +1 -1
- package/lib/docker-compose/docker-compose.js +1 -1
- package/lib/file.js +1 -1
- package/lib/gitattributes.js +1 -1
- package/lib/github/actions-provider.js +1 -1
- package/lib/github/auto-approve.js +1 -1
- package/lib/github/auto-merge.js +1 -1
- package/lib/github/auto-queue.js +1 -1
- package/lib/github/dependabot.js +1 -1
- package/lib/github/github-credentials.js +1 -1
- package/lib/github/github-project.js +1 -1
- package/lib/github/github.js +1 -1
- package/lib/github/merge-queue.js +1 -1
- package/lib/github/mergify.js +1 -1
- package/lib/github/pr-template.js +1 -1
- package/lib/github/private/util.d.ts +14 -0
- package/lib/github/private/util.js +20 -1
- package/lib/github/pull-request-backport.js +1 -1
- package/lib/github/pull-request-lint.js +1 -1
- package/lib/github/stale.js +1 -1
- package/lib/github/task-workflow-job.js +1 -1
- package/lib/github/task-workflow.js +1 -1
- package/lib/github/workflow-actions.js +1 -1
- package/lib/github/workflow-jobs.js +1 -1
- package/lib/github/workflow-steps.js +1 -1
- package/lib/github/workflows.js +1 -1
- package/lib/gitlab/configuration.js +1 -1
- package/lib/gitlab/gitlab-configuration.js +1 -1
- package/lib/gitlab/nested-configuration.js +1 -1
- package/lib/gitpod.js +1 -1
- package/lib/ignore-file.js +1 -1
- package/lib/ini.js +1 -1
- package/lib/java/java-project.js +1 -1
- package/lib/java/junit.js +1 -1
- package/lib/java/maven-compile.js +1 -1
- package/lib/java/maven-packaging.js +1 -1
- package/lib/java/maven-sample.js +1 -1
- package/lib/java/pom.js +2 -2
- package/lib/java/projenrc.js +1 -1
- package/lib/javascript/biome/biome-config.d.ts +126 -50
- package/lib/javascript/biome/biome-config.js +74 -39
- package/lib/javascript/biome/biome.js +1 -1
- package/lib/javascript/bundler.js +1 -1
- package/lib/javascript/eslint.js +1 -1
- package/lib/javascript/jest.js +4 -4
- package/lib/javascript/license-checker.js +1 -1
- package/lib/javascript/node-package.js +1 -1
- package/lib/javascript/node-project.d.ts +2 -2
- package/lib/javascript/node-project.js +3 -3
- package/lib/javascript/npm-config.js +1 -1
- package/lib/javascript/prettier.js +1 -1
- package/lib/javascript/projenrc.js +1 -1
- package/lib/javascript/typescript-config.js +2 -2
- package/lib/javascript/upgrade-dependencies.js +17 -9
- package/lib/javascript/yarnrc.js +1 -1
- package/lib/json-patch.js +1 -1
- package/lib/json.js +1 -1
- package/lib/license.js +1 -1
- package/lib/logger.js +1 -1
- package/lib/makefile.js +1 -1
- package/lib/object-file.js +1 -1
- package/lib/project-build.js +1 -1
- package/lib/project-tree.js +1 -1
- package/lib/project.js +1 -1
- package/lib/projects.js +1 -1
- package/lib/projenrc-json.js +2 -2
- package/lib/projenrc.js +1 -1
- package/lib/python/pip.js +1 -1
- package/lib/python/poetry.js +2 -2
- package/lib/python/projenrc.js +1 -1
- package/lib/python/pyproject-toml-file.js +1 -1
- package/lib/python/pytest-sample.js +1 -1
- package/lib/python/pytest.js +1 -1
- package/lib/python/python-project.js +1 -1
- package/lib/python/python-sample.js +1 -1
- package/lib/python/requirements-file.js +1 -1
- package/lib/python/setuppy.js +1 -1
- package/lib/python/setuptools.js +1 -1
- package/lib/python/uv-config.d.ts +437 -21
- package/lib/python/uv-config.js +437 -2
- package/lib/python/uv.js +1 -1
- package/lib/python/venv.js +1 -1
- package/lib/readme.js +1 -1
- package/lib/release/publisher.js +1 -1
- package/lib/release/release-trigger.js +1 -1
- package/lib/release/release.js +15 -18
- package/lib/renovatebot.js +1 -1
- package/lib/sample-file.js +2 -2
- package/lib/semver.js +1 -1
- package/lib/source-code.js +1 -1
- package/lib/task-runtime.js +1 -1
- package/lib/task.js +1 -1
- package/lib/tasks.js +1 -1
- package/lib/testing.js +1 -1
- package/lib/textfile.js +1 -1
- package/lib/toml.js +1 -1
- package/lib/typescript/projenrc-ts.js +1 -1
- package/lib/typescript/projenrc.js +1 -1
- package/lib/typescript/typescript-typedoc.js +1 -1
- package/lib/typescript/typescript.js +6 -6
- package/lib/version.js +2 -2
- package/lib/vscode/devcontainer.js +1 -1
- package/lib/vscode/extensions.js +1 -1
- package/lib/vscode/launch-config.js +1 -1
- package/lib/vscode/settings.js +1 -1
- package/lib/vscode/vscode.js +1 -1
- package/lib/web/next.js +3 -3
- package/lib/web/postcss.js +1 -1
- package/lib/web/react.js +4 -4
- package/lib/web/tailwind.js +1 -1
- package/lib/xmlfile.js +1 -1
- package/lib/yaml.js +1 -1
- package/node_modules/@oozcitak/dom/README.md +2 -4
- package/node_modules/@oozcitak/dom/lib/algorithm/AbortAlgorithm.js +7 -29
- package/node_modules/@oozcitak/dom/lib/algorithm/AbortAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/AttrAlgorithm.js +3 -3
- package/node_modules/@oozcitak/dom/lib/algorithm/AttrAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/BoundaryPointAlgorithm.js +14 -14
- package/node_modules/@oozcitak/dom/lib/algorithm/BoundaryPointAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/CharacterDataAlgorithm.js +40 -62
- package/node_modules/@oozcitak/dom/lib/algorithm/CharacterDataAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/CreateAlgorithm.js +53 -54
- package/node_modules/@oozcitak/dom/lib/algorithm/CreateAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/CustomElementAlgorithm.js +14 -14
- package/node_modules/@oozcitak/dom/lib/algorithm/CustomElementAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/DOMAlgorithm.js +29 -51
- package/node_modules/@oozcitak/dom/lib/algorithm/DOMAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/DOMTokenListAlgorithm.js +11 -11
- package/node_modules/@oozcitak/dom/lib/algorithm/DOMTokenListAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/DocumentAlgorithm.js +25 -63
- package/node_modules/@oozcitak/dom/lib/algorithm/DocumentAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/ElementAlgorithm.js +79 -85
- package/node_modules/@oozcitak/dom/lib/algorithm/ElementAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/EventAlgorithm.d.ts +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/EventAlgorithm.js +96 -153
- package/node_modules/@oozcitak/dom/lib/algorithm/EventAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/EventTargetAlgorithm.js +15 -37
- package/node_modules/@oozcitak/dom/lib/algorithm/EventTargetAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/MutationAlgorithm.js +229 -404
- package/node_modules/@oozcitak/dom/lib/algorithm/MutationAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/MutationObserverAlgorithm.js +47 -109
- package/node_modules/@oozcitak/dom/lib/algorithm/MutationObserverAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/NamespaceAlgorithm.d.ts +5 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/NamespaceAlgorithm.js +19 -19
- package/node_modules/@oozcitak/dom/lib/algorithm/NamespaceAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/NodeAlgorithm.js +69 -124
- package/node_modules/@oozcitak/dom/lib/algorithm/NodeAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/NodeIteratorAlgorithm.js +11 -11
- package/node_modules/@oozcitak/dom/lib/algorithm/NodeIteratorAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/OrderedSetAlgorithm.js +20 -72
- package/node_modules/@oozcitak/dom/lib/algorithm/OrderedSetAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/ParentNodeAlgorithm.js +12 -34
- package/node_modules/@oozcitak/dom/lib/algorithm/ParentNodeAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/RangeAlgorithm.js +183 -289
- package/node_modules/@oozcitak/dom/lib/algorithm/RangeAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/SelectorsAlgorithm.js +2 -2
- package/node_modules/@oozcitak/dom/lib/algorithm/SelectorsAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/ShadowTreeAlgorithm.js +65 -140
- package/node_modules/@oozcitak/dom/lib/algorithm/ShadowTreeAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/TextAlgorithm.js +63 -89
- package/node_modules/@oozcitak/dom/lib/algorithm/TextAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/TraversalAlgorithm.js +6 -6
- package/node_modules/@oozcitak/dom/lib/algorithm/TraversalAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/TreeAlgorithm.js +141 -208
- package/node_modules/@oozcitak/dom/lib/algorithm/TreeAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/TreeWalkerAlgorithm.js +13 -13
- package/node_modules/@oozcitak/dom/lib/algorithm/TreeWalkerAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/WebIDLAlgorithm.js +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/WebIDLAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/XMLAlgorithm.js +16 -16
- package/node_modules/@oozcitak/dom/lib/algorithm/XMLAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/algorithm/index.js +42 -31
- package/node_modules/@oozcitak/dom/lib/algorithm/index.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/AbortControllerImpl.js +12 -15
- package/node_modules/@oozcitak/dom/lib/dom/AbortControllerImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/AbortSignalImpl.js +20 -43
- package/node_modules/@oozcitak/dom/lib/dom/AbortSignalImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/AbstractRangeImpl.js +20 -62
- package/node_modules/@oozcitak/dom/lib/dom/AbstractRangeImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/AttrImpl.js +53 -92
- package/node_modules/@oozcitak/dom/lib/dom/AttrImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/CDATASectionImpl.js +13 -27
- package/node_modules/@oozcitak/dom/lib/dom/CDATASectionImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/CharacterDataImpl.js +40 -88
- package/node_modules/@oozcitak/dom/lib/dom/CharacterDataImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/ChildNodeImpl.js +41 -55
- package/node_modules/@oozcitak/dom/lib/dom/ChildNodeImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/CommentImpl.js +13 -28
- package/node_modules/@oozcitak/dom/lib/dom/CommentImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/CustomEventImpl.js +14 -36
- package/node_modules/@oozcitak/dom/lib/dom/CustomEventImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/DOMException.js +114 -204
- package/node_modules/@oozcitak/dom/lib/dom/DOMException.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/DOMImpl.js +51 -68
- package/node_modules/@oozcitak/dom/lib/dom/DOMImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/DOMImplementationImpl.js +32 -31
- package/node_modules/@oozcitak/dom/lib/dom/DOMImplementationImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/DOMTokenListImpl.js +105 -163
- package/node_modules/@oozcitak/dom/lib/dom/DOMTokenListImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/DocumentFragmentImpl.d.ts +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/DocumentFragmentImpl.js +30 -73
- package/node_modules/@oozcitak/dom/lib/dom/DocumentFragmentImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/DocumentImpl.d.ts +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/DocumentImpl.js +198 -330
- package/node_modules/@oozcitak/dom/lib/dom/DocumentImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/DocumentOrShadowRootImpl.js +3 -5
- package/node_modules/@oozcitak/dom/lib/dom/DocumentOrShadowRootImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/DocumentTypeImpl.js +29 -75
- package/node_modules/@oozcitak/dom/lib/dom/DocumentTypeImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/ElementImpl.d.ts +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/ElementImpl.js +234 -393
- package/node_modules/@oozcitak/dom/lib/dom/ElementImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/EventImpl.js +89 -137
- package/node_modules/@oozcitak/dom/lib/dom/EventImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/EventTargetImpl.js +32 -57
- package/node_modules/@oozcitak/dom/lib/dom/EventTargetImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/HTMLCollectionImpl.js +58 -64
- package/node_modules/@oozcitak/dom/lib/dom/HTMLCollectionImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/MutationObserverImpl.js +36 -88
- package/node_modules/@oozcitak/dom/lib/dom/MutationObserverImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/MutationRecordImpl.js +33 -60
- package/node_modules/@oozcitak/dom/lib/dom/MutationRecordImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/NamedNodeMapImpl.js +33 -47
- package/node_modules/@oozcitak/dom/lib/dom/NamedNodeMapImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/NodeFilterImpl.js +58 -42
- package/node_modules/@oozcitak/dom/lib/dom/NodeFilterImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/NodeImpl.d.ts +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/NodeImpl.js +375 -471
- package/node_modules/@oozcitak/dom/lib/dom/NodeImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/NodeIteratorImpl.js +29 -49
- package/node_modules/@oozcitak/dom/lib/dom/NodeIteratorImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/NodeListImpl.js +69 -97
- package/node_modules/@oozcitak/dom/lib/dom/NodeListImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/NodeListStaticImpl.js +66 -93
- package/node_modules/@oozcitak/dom/lib/dom/NodeListStaticImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/NonDocumentTypeChildNodeImpl.js +33 -43
- package/node_modules/@oozcitak/dom/lib/dom/NonDocumentTypeChildNodeImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/NonElementParentNodeImpl.js +9 -11
- package/node_modules/@oozcitak/dom/lib/dom/NonElementParentNodeImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/ParentNodeImpl.js +73 -121
- package/node_modules/@oozcitak/dom/lib/dom/ParentNodeImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/ProcessingInstructionImpl.js +19 -36
- package/node_modules/@oozcitak/dom/lib/dom/ProcessingInstructionImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/RangeImpl.js +174 -241
- package/node_modules/@oozcitak/dom/lib/dom/RangeImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/ShadowRootImpl.js +22 -43
- package/node_modules/@oozcitak/dom/lib/dom/ShadowRootImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/SlotableImpl.js +13 -25
- package/node_modules/@oozcitak/dom/lib/dom/SlotableImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/StaticRangeImpl.js +12 -25
- package/node_modules/@oozcitak/dom/lib/dom/StaticRangeImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/TextImpl.js +34 -80
- package/node_modules/@oozcitak/dom/lib/dom/TextImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/TraverserImpl.js +15 -23
- package/node_modules/@oozcitak/dom/lib/dom/TraverserImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/TreeWalkerImpl.js +46 -64
- package/node_modules/@oozcitak/dom/lib/dom/TreeWalkerImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/WindowImpl.js +21 -42
- package/node_modules/@oozcitak/dom/lib/dom/WindowImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/XMLDocumentImpl.js +6 -20
- package/node_modules/@oozcitak/dom/lib/dom/XMLDocumentImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/index.js +92 -91
- package/node_modules/@oozcitak/dom/lib/dom/index.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/dom/interfaces.d.ts +28 -25
- package/node_modules/@oozcitak/dom/lib/dom/interfaces.js +9 -7
- package/node_modules/@oozcitak/dom/lib/dom/interfaces.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/index.js +5 -4
- package/node_modules/@oozcitak/dom/lib/index.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/parser/DOMParserImpl.js +13 -15
- package/node_modules/@oozcitak/dom/lib/parser/DOMParserImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/parser/XMLParserImpl.js +78 -128
- package/node_modules/@oozcitak/dom/lib/parser/XMLParserImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/parser/XMLStringLexer.js +107 -123
- package/node_modules/@oozcitak/dom/lib/parser/XMLStringLexer.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/parser/index.js +2 -1
- package/node_modules/@oozcitak/dom/lib/parser/index.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/parser/interfaces.d.ts +2 -2
- package/node_modules/@oozcitak/dom/lib/parser/interfaces.js +2 -1
- package/node_modules/@oozcitak/dom/lib/parser/interfaces.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/serializer/LocalNameSet.js +10 -12
- package/node_modules/@oozcitak/dom/lib/serializer/LocalNameSet.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/serializer/NamespacePrefixMap.js +23 -25
- package/node_modules/@oozcitak/dom/lib/serializer/NamespacePrefixMap.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/serializer/XMLSerializerImpl.js +405 -517
- package/node_modules/@oozcitak/dom/lib/serializer/XMLSerializerImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/serializer/index.js +2 -1
- package/node_modules/@oozcitak/dom/lib/serializer/index.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/util/Cast.js +6 -8
- package/node_modules/@oozcitak/dom/lib/util/Cast.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/util/EmptySet.d.ts +13 -5
- package/node_modules/@oozcitak/dom/lib/util/EmptySet.js +33 -46
- package/node_modules/@oozcitak/dom/lib/util/EmptySet.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/util/Guard.js +47 -49
- package/node_modules/@oozcitak/dom/lib/util/Guard.js.map +1 -1
- package/node_modules/@oozcitak/dom/lib/util/index.js +4 -3
- package/node_modules/@oozcitak/dom/lib/util/index.js.map +1 -1
- package/node_modules/@oozcitak/dom/package.json +14 -41
- package/node_modules/@oozcitak/infra/LICENSE +21 -21
- package/node_modules/@oozcitak/infra/README.md +11 -13
- package/node_modules/@oozcitak/infra/lib/Base64.js +3 -3
- package/node_modules/@oozcitak/infra/lib/Base64.js.map +1 -1
- package/node_modules/@oozcitak/infra/lib/Byte.js +1 -1
- package/node_modules/@oozcitak/infra/lib/Byte.js.map +1 -1
- package/node_modules/@oozcitak/infra/lib/ByteSequence.js +19 -39
- package/node_modules/@oozcitak/infra/lib/ByteSequence.js.map +1 -1
- package/node_modules/@oozcitak/infra/lib/CodePoints.js +1 -0
- package/node_modules/@oozcitak/infra/lib/CodePoints.js.map +1 -1
- package/node_modules/@oozcitak/infra/lib/JSON.d.ts +1 -1
- package/node_modules/@oozcitak/infra/lib/JSON.js +18 -40
- package/node_modules/@oozcitak/infra/lib/JSON.js.map +1 -1
- package/node_modules/@oozcitak/infra/lib/List.d.ts +4 -4
- package/node_modules/@oozcitak/infra/lib/List.js +49 -173
- package/node_modules/@oozcitak/infra/lib/List.js.map +1 -1
- package/node_modules/@oozcitak/infra/lib/Map.d.ts +1 -1
- package/node_modules/@oozcitak/infra/lib/Map.js +43 -177
- package/node_modules/@oozcitak/infra/lib/Map.js.map +1 -1
- package/node_modules/@oozcitak/infra/lib/Namespace.js +1 -0
- package/node_modules/@oozcitak/infra/lib/Namespace.js.map +1 -1
- package/node_modules/@oozcitak/infra/lib/Queue.d.ts +1 -1
- package/node_modules/@oozcitak/infra/lib/Queue.js +2 -2
- package/node_modules/@oozcitak/infra/lib/Queue.js.map +1 -1
- package/node_modules/@oozcitak/infra/lib/Set.d.ts +1 -1
- package/node_modules/@oozcitak/infra/lib/Set.js +76 -254
- package/node_modules/@oozcitak/infra/lib/Set.js.map +1 -1
- package/node_modules/@oozcitak/infra/lib/Stack.d.ts +1 -1
- package/node_modules/@oozcitak/infra/lib/Stack.js +2 -2
- package/node_modules/@oozcitak/infra/lib/Stack.js.map +1 -1
- package/node_modules/@oozcitak/infra/lib/String.d.ts +2 -2
- package/node_modules/@oozcitak/infra/lib/String.js +75 -131
- package/node_modules/@oozcitak/infra/lib/String.js.map +1 -1
- package/node_modules/@oozcitak/infra/lib/index.js +46 -19
- package/node_modules/@oozcitak/infra/lib/index.js.map +1 -1
- package/node_modules/@oozcitak/infra/package.json +41 -54
- package/node_modules/@oozcitak/url/LICENSE +21 -21
- package/node_modules/@oozcitak/url/README.md +25 -27
- package/node_modules/@oozcitak/url/lib/URLAlgorithm.d.ts +3 -3
- package/node_modules/@oozcitak/url/lib/URLAlgorithm.js +287 -460
- package/node_modules/@oozcitak/url/lib/URLAlgorithm.js.map +1 -1
- package/node_modules/@oozcitak/url/lib/URLImpl.js +285 -331
- package/node_modules/@oozcitak/url/lib/URLImpl.js.map +1 -1
- package/node_modules/@oozcitak/url/lib/URLSearchParamsImpl.d.ts +1 -1
- package/node_modules/@oozcitak/url/lib/URLSearchParamsImpl.js +71 -190
- package/node_modules/@oozcitak/url/lib/URLSearchParamsImpl.js.map +1 -1
- package/node_modules/@oozcitak/url/lib/index.js +3 -2
- package/node_modules/@oozcitak/url/lib/index.js.map +1 -1
- package/node_modules/@oozcitak/url/lib/interfaces.d.ts +2 -2
- package/node_modules/@oozcitak/url/lib/interfaces.js +2 -1
- package/node_modules/@oozcitak/url/lib/interfaces.js.map +1 -1
- package/node_modules/@oozcitak/url/package.json +42 -55
- package/node_modules/@oozcitak/util/LICENSE +21 -21
- package/node_modules/@oozcitak/util/README.md +8 -10
- package/node_modules/@oozcitak/util/lib/CompareCache.js +12 -12
- package/node_modules/@oozcitak/util/lib/CompareCache.js.map +1 -1
- package/node_modules/@oozcitak/util/lib/FixedSizeSet.d.ts +6 -6
- package/node_modules/@oozcitak/util/lib/FixedSizeSet.js +42 -117
- package/node_modules/@oozcitak/util/lib/FixedSizeSet.js.map +1 -1
- package/node_modules/@oozcitak/util/lib/Lazy.js +17 -19
- package/node_modules/@oozcitak/util/lib/Lazy.js.map +1 -1
- package/node_modules/@oozcitak/util/lib/ObjectCache.d.ts +4 -4
- package/node_modules/@oozcitak/util/lib/ObjectCache.js +44 -118
- package/node_modules/@oozcitak/util/lib/ObjectCache.js.map +1 -1
- package/node_modules/@oozcitak/util/lib/StringWalker.js +41 -47
- package/node_modules/@oozcitak/util/lib/StringWalker.js.map +1 -1
- package/node_modules/@oozcitak/util/lib/index.d.ts +23 -25
- package/node_modules/@oozcitak/util/lib/index.js +62 -88
- package/node_modules/@oozcitak/util/lib/index.js.map +1 -1
- package/node_modules/@oozcitak/util/package.json +37 -50
- package/node_modules/argparse/LICENSE +254 -0
- package/node_modules/argparse/README.md +84 -0
- package/node_modules/argparse/argparse.js +3707 -0
- package/node_modules/argparse/lib/sub.js +67 -0
- package/node_modules/argparse/lib/textwrap.js +440 -0
- package/node_modules/argparse/package.json +31 -0
- package/node_modules/{xmlbuilder2/node_modules/js-yaml → js-yaml}/README.md +36 -88
- package/node_modules/{xmlbuilder2/node_modules/js-yaml → js-yaml}/bin/js-yaml.js +17 -23
- package/node_modules/js-yaml/dist/js-yaml.js +3880 -0
- package/node_modules/js-yaml/dist/js-yaml.min.js +2 -0
- package/node_modules/{xmlbuilder2/node_modules/js-yaml/dist/js-yaml.js → js-yaml/dist/js-yaml.mjs} +2926 -3075
- package/node_modules/js-yaml/index.js +47 -0
- package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/dumper.js +205 -90
- package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/exception.js +22 -10
- package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/loader.js +149 -76
- package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/schema/core.js +1 -8
- package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js → js-yaml/lib/schema/default.js} +1 -7
- package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/schema/json.js +1 -7
- package/node_modules/js-yaml/lib/schema.js +121 -0
- package/node_modules/js-yaml/lib/snippet.js +101 -0
- package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/binary.js +4 -17
- package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/float.js +2 -21
- package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/int.js +18 -35
- package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/null.js +2 -1
- package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type.js +14 -9
- package/node_modules/js-yaml/package.json +66 -0
- package/node_modules/xmlbuilder2/README.md +8 -7
- package/node_modules/xmlbuilder2/lib/builder/BuilderFunctions.js +36 -37
- package/node_modules/xmlbuilder2/lib/builder/BuilderFunctions.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/builder/BuilderFunctionsCB.js +3 -3
- package/node_modules/xmlbuilder2/lib/builder/BuilderFunctionsCB.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/builder/XMLBuilderCBImpl.d.ts +0 -1
- package/node_modules/xmlbuilder2/lib/builder/XMLBuilderCBImpl.js +235 -333
- package/node_modules/xmlbuilder2/lib/builder/XMLBuilderCBImpl.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/builder/XMLBuilderImpl.js +271 -371
- package/node_modules/xmlbuilder2/lib/builder/XMLBuilderImpl.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/builder/dom.js +13 -13
- package/node_modules/xmlbuilder2/lib/builder/dom.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/builder/index.js +9 -8
- package/node_modules/xmlbuilder2/lib/builder/index.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/constants.js +1 -0
- package/node_modules/xmlbuilder2/lib/constants.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/index.js +7 -6
- package/node_modules/xmlbuilder2/lib/index.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/interfaces.d.ts +25 -24
- package/node_modules/xmlbuilder2/lib/interfaces.js +1 -0
- package/node_modules/xmlbuilder2/lib/interfaces.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/readers/BaseReader.js +53 -56
- package/node_modules/xmlbuilder2/lib/readers/BaseReader.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/readers/JSONReader.js +7 -24
- package/node_modules/xmlbuilder2/lib/readers/JSONReader.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/readers/ObjectReader.js +59 -77
- package/node_modules/xmlbuilder2/lib/readers/ObjectReader.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/readers/XMLReader.js +61 -126
- package/node_modules/xmlbuilder2/lib/readers/XMLReader.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/readers/YAMLReader.js +9 -26
- package/node_modules/xmlbuilder2/lib/readers/YAMLReader.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/readers/index.js +5 -4
- package/node_modules/xmlbuilder2/lib/readers/index.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/writers/BaseCBWriter.d.ts +1 -0
- package/node_modules/xmlbuilder2/lib/writers/BaseCBWriter.js +14 -8
- package/node_modules/xmlbuilder2/lib/writers/BaseCBWriter.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/writers/BaseWriter.js +474 -609
- package/node_modules/xmlbuilder2/lib/writers/BaseWriter.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/writers/JSONCBWriter.js +48 -64
- package/node_modules/xmlbuilder2/lib/writers/JSONCBWriter.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/writers/JSONWriter.js +54 -95
- package/node_modules/xmlbuilder2/lib/writers/JSONWriter.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/writers/MapWriter.js +21 -36
- package/node_modules/xmlbuilder2/lib/writers/MapWriter.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/writers/ObjectWriter.js +131 -166
- package/node_modules/xmlbuilder2/lib/writers/ObjectWriter.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/writers/XMLCBWriter.d.ts +1 -1
- package/node_modules/xmlbuilder2/lib/writers/XMLCBWriter.js +42 -56
- package/node_modules/xmlbuilder2/lib/writers/XMLCBWriter.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/writers/XMLWriter.js +48 -62
- package/node_modules/xmlbuilder2/lib/writers/XMLWriter.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/writers/YAMLCBWriter.js +43 -59
- package/node_modules/xmlbuilder2/lib/writers/YAMLCBWriter.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/writers/YAMLWriter.js +49 -89
- package/node_modules/xmlbuilder2/lib/writers/YAMLWriter.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/writers/index.js +6 -5
- package/node_modules/xmlbuilder2/lib/writers/index.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/xmlbuilder2.min.js +2 -8
- package/node_modules/xmlbuilder2/lib/xmlbuilder2.min.js.LICENSE.txt +10 -0
- package/node_modules/xmlbuilder2/package.json +34 -52
- package/package.json +8 -13
- package/node_modules/sprintf-js/.npmignore +0 -1
- package/node_modules/sprintf-js/LICENSE +0 -24
- package/node_modules/sprintf-js/README.md +0 -88
- package/node_modules/sprintf-js/bower.json +0 -14
- package/node_modules/sprintf-js/demo/angular.html +0 -20
- package/node_modules/sprintf-js/dist/angular-sprintf.min.js +0 -4
- package/node_modules/sprintf-js/dist/angular-sprintf.min.js.map +0 -1
- package/node_modules/sprintf-js/dist/angular-sprintf.min.map +0 -1
- package/node_modules/sprintf-js/dist/sprintf.min.js +0 -4
- package/node_modules/sprintf-js/dist/sprintf.min.js.map +0 -1
- package/node_modules/sprintf-js/dist/sprintf.min.map +0 -1
- package/node_modules/sprintf-js/gruntfile.js +0 -36
- package/node_modules/sprintf-js/package.json +0 -22
- package/node_modules/sprintf-js/src/angular-sprintf.js +0 -18
- package/node_modules/sprintf-js/src/sprintf.js +0 -208
- package/node_modules/sprintf-js/test/test.js +0 -82
- package/node_modules/xmlbuilder2/node_modules/argparse/LICENSE +0 -21
- package/node_modules/xmlbuilder2/node_modules/argparse/README.md +0 -257
- package/node_modules/xmlbuilder2/node_modules/argparse/index.js +0 -3
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/append/constant.js +0 -47
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/append.js +0 -53
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/count.js +0 -40
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/help.js +0 -47
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/store/constant.js +0 -43
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/store/false.js +0 -27
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/store/true.js +0 -26
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/store.js +0 -50
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/subparsers.js +0 -149
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/version.js +0 -47
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/action.js +0 -146
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/action_container.js +0 -482
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/argparse.js +0 -14
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/argument/error.js +0 -50
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/argument/exclusive.js +0 -54
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/argument/group.js +0 -75
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/argument_parser.js +0 -1161
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/const.js +0 -21
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/help/added_formatters.js +0 -87
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/help/formatter.js +0 -795
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/namespace.js +0 -76
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/utils.js +0 -57
- package/node_modules/xmlbuilder2/node_modules/argparse/package.json +0 -34
- package/node_modules/xmlbuilder2/node_modules/js-yaml/dist/js-yaml.min.js +0 -1
- package/node_modules/xmlbuilder2/node_modules/js-yaml/index.js +0 -7
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/mark.js +0 -76
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/schema/default_full.js +0 -25
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/schema.js +0 -108
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/js/function.js +0 -93
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js +0 -60
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js +0 -28
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml.js +0 -39
- package/node_modules/xmlbuilder2/node_modules/js-yaml/package.json +0 -49
- /package/node_modules/{xmlbuilder2/node_modules/js-yaml → js-yaml}/LICENSE +0 -0
- /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/common.js +0 -0
- /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/schema/failsafe.js +0 -0
- /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/bool.js +0 -0
- /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/map.js +0 -0
- /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/merge.js +0 -0
- /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/omap.js +0 -0
- /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/pairs.js +0 -0
- /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/seq.js +0 -0
- /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/set.js +0 -0
- /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/str.js +0 -0
- /package/node_modules/{xmlbuilder2/node_modules/js-yaml/lib/js-yaml → js-yaml/lib}/type/timestamp.js +0 -0
- /package/node_modules/xmlbuilder2/{LICENSE → LICENSE.txt} +0 -0
|
@@ -1,207 +1,121 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
extendStatics(d, b);
|
|
11
|
-
function __() { this.constructor = d; }
|
|
12
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
-
};
|
|
14
|
-
})();
|
|
15
|
-
var __values = (this && this.__values) || function(o) {
|
|
16
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
17
|
-
if (m) return m.call(o);
|
|
18
|
-
if (o && typeof o.length === "number") return {
|
|
19
|
-
next: function () {
|
|
20
|
-
if (o && i >= o.length) o = void 0;
|
|
21
|
-
return { value: o && o[i++], done: !o };
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
25
|
-
};
|
|
26
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
27
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
28
|
-
if (!m) return o;
|
|
29
|
-
var i = m.call(o), r, ar = [], e;
|
|
30
|
-
try {
|
|
31
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
32
|
-
}
|
|
33
|
-
catch (error) { e = { error: error }; }
|
|
34
|
-
finally {
|
|
35
|
-
try {
|
|
36
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
37
|
-
}
|
|
38
|
-
finally { if (e) throw e.error; }
|
|
39
|
-
}
|
|
40
|
-
return ar;
|
|
41
|
-
};
|
|
42
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
3
|
+
exports.ElementImpl = void 0;
|
|
4
|
+
const interfaces_1 = require("./interfaces");
|
|
5
|
+
const NodeImpl_1 = require("./NodeImpl");
|
|
6
|
+
const DOMException_1 = require("./DOMException");
|
|
7
|
+
const infra_1 = require("@oozcitak/infra");
|
|
8
|
+
const algorithm_1 = require("../algorithm");
|
|
9
|
+
const WebIDLAlgorithm_1 = require("../algorithm/WebIDLAlgorithm");
|
|
49
10
|
/**
|
|
50
11
|
* Represents an element node.
|
|
51
12
|
*/
|
|
52
|
-
|
|
53
|
-
|
|
13
|
+
class ElementImpl extends NodeImpl_1.NodeImpl {
|
|
14
|
+
_nodeType = interfaces_1.NodeType.Element;
|
|
15
|
+
_children = new Set();
|
|
16
|
+
_namespace = null;
|
|
17
|
+
_namespacePrefix = null;
|
|
18
|
+
_localName = "";
|
|
19
|
+
_customElementState = "undefined";
|
|
20
|
+
_customElementDefinition = null;
|
|
21
|
+
_is = null;
|
|
22
|
+
_shadowRoot = null;
|
|
23
|
+
_attributeList = (0, algorithm_1.create_namedNodeMap)(this);
|
|
24
|
+
_uniqueIdentifier;
|
|
25
|
+
_attributeChangeSteps = [];
|
|
26
|
+
_name = '';
|
|
27
|
+
_assignedSlot = null;
|
|
54
28
|
/**
|
|
55
29
|
* Initializes a new instance of `Element`.
|
|
56
30
|
*/
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
get: function () {
|
|
100
|
-
return algorithm_1.element_getAnAttributeValue(this, "id");
|
|
101
|
-
},
|
|
102
|
-
set: function (value) {
|
|
103
|
-
algorithm_1.element_setAnAttributeValue(this, "id", value);
|
|
104
|
-
},
|
|
105
|
-
enumerable: true,
|
|
106
|
-
configurable: true
|
|
107
|
-
});
|
|
108
|
-
Object.defineProperty(ElementImpl.prototype, "className", {
|
|
109
|
-
/** @inheritdoc */
|
|
110
|
-
get: function () {
|
|
111
|
-
return algorithm_1.element_getAnAttributeValue(this, "class");
|
|
112
|
-
},
|
|
113
|
-
set: function (value) {
|
|
114
|
-
algorithm_1.element_setAnAttributeValue(this, "class", value);
|
|
115
|
-
},
|
|
116
|
-
enumerable: true,
|
|
117
|
-
configurable: true
|
|
118
|
-
});
|
|
119
|
-
Object.defineProperty(ElementImpl.prototype, "classList", {
|
|
120
|
-
/** @inheritdoc */
|
|
121
|
-
get: function () {
|
|
122
|
-
var attr = algorithm_1.element_getAnAttributeByName("class", this);
|
|
123
|
-
if (attr === null) {
|
|
124
|
-
attr = algorithm_1.create_attr(this._nodeDocument, "class");
|
|
125
|
-
}
|
|
126
|
-
return algorithm_1.create_domTokenList(this, attr);
|
|
127
|
-
},
|
|
128
|
-
enumerable: true,
|
|
129
|
-
configurable: true
|
|
130
|
-
});
|
|
131
|
-
Object.defineProperty(ElementImpl.prototype, "slot", {
|
|
132
|
-
/** @inheritdoc */
|
|
133
|
-
get: function () {
|
|
134
|
-
return algorithm_1.element_getAnAttributeValue(this, "slot");
|
|
135
|
-
},
|
|
136
|
-
set: function (value) {
|
|
137
|
-
algorithm_1.element_setAnAttributeValue(this, "slot", value);
|
|
138
|
-
},
|
|
139
|
-
enumerable: true,
|
|
140
|
-
configurable: true
|
|
141
|
-
});
|
|
142
|
-
/** @inheritdoc */
|
|
143
|
-
ElementImpl.prototype.hasAttributes = function () {
|
|
31
|
+
constructor() {
|
|
32
|
+
super();
|
|
33
|
+
}
|
|
34
|
+
/** @inheritdoc */
|
|
35
|
+
get namespaceURI() { return this._namespace; }
|
|
36
|
+
/** @inheritdoc */
|
|
37
|
+
get prefix() { return this._namespacePrefix; }
|
|
38
|
+
/** @inheritdoc */
|
|
39
|
+
get localName() { return this._localName; }
|
|
40
|
+
/** @inheritdoc */
|
|
41
|
+
get tagName() { return this._htmlUppercasedQualifiedName; }
|
|
42
|
+
/** @inheritdoc */
|
|
43
|
+
get id() {
|
|
44
|
+
return (0, algorithm_1.element_getAnAttributeValue)(this, "id");
|
|
45
|
+
}
|
|
46
|
+
set id(value) {
|
|
47
|
+
(0, algorithm_1.element_setAnAttributeValue)(this, "id", value);
|
|
48
|
+
}
|
|
49
|
+
/** @inheritdoc */
|
|
50
|
+
get className() {
|
|
51
|
+
return (0, algorithm_1.element_getAnAttributeValue)(this, "class");
|
|
52
|
+
}
|
|
53
|
+
set className(value) {
|
|
54
|
+
(0, algorithm_1.element_setAnAttributeValue)(this, "class", value);
|
|
55
|
+
}
|
|
56
|
+
/** @inheritdoc */
|
|
57
|
+
get classList() {
|
|
58
|
+
let attr = (0, algorithm_1.element_getAnAttributeByName)("class", this);
|
|
59
|
+
if (attr === null) {
|
|
60
|
+
attr = (0, algorithm_1.create_attr)(this._nodeDocument, "class");
|
|
61
|
+
}
|
|
62
|
+
return (0, algorithm_1.create_domTokenList)(this, attr);
|
|
63
|
+
}
|
|
64
|
+
/** @inheritdoc */
|
|
65
|
+
get slot() {
|
|
66
|
+
return (0, algorithm_1.element_getAnAttributeValue)(this, "slot");
|
|
67
|
+
}
|
|
68
|
+
set slot(value) {
|
|
69
|
+
(0, algorithm_1.element_setAnAttributeValue)(this, "slot", value);
|
|
70
|
+
}
|
|
71
|
+
/** @inheritdoc */
|
|
72
|
+
hasAttributes() {
|
|
144
73
|
return this._attributeList.length !== 0;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
get: function () { return this._attributeList; },
|
|
149
|
-
enumerable: true,
|
|
150
|
-
configurable: true
|
|
151
|
-
});
|
|
74
|
+
}
|
|
75
|
+
/** @inheritdoc */
|
|
76
|
+
get attributes() { return this._attributeList; }
|
|
152
77
|
/** @inheritdoc */
|
|
153
|
-
|
|
154
|
-
var e_1, _a;
|
|
78
|
+
getAttributeNames() {
|
|
155
79
|
/**
|
|
156
80
|
* The getAttributeNames() method, when invoked, must return the qualified
|
|
157
81
|
* names of the attributes in context object’s attribute list, in order,
|
|
158
82
|
* and a new list otherwise.
|
|
159
83
|
*/
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
var attr = _c.value;
|
|
164
|
-
names.push(attr._qualifiedName);
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
168
|
-
finally {
|
|
169
|
-
try {
|
|
170
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
171
|
-
}
|
|
172
|
-
finally { if (e_1) throw e_1.error; }
|
|
84
|
+
const names = [];
|
|
85
|
+
for (const attr of this._attributeList) {
|
|
86
|
+
names.push(attr._qualifiedName);
|
|
173
87
|
}
|
|
174
88
|
return names;
|
|
175
|
-
}
|
|
89
|
+
}
|
|
176
90
|
/** @inheritdoc */
|
|
177
|
-
|
|
91
|
+
getAttribute(qualifiedName) {
|
|
178
92
|
/**
|
|
179
93
|
* 1. Let attr be the result of getting an attribute given qualifiedName
|
|
180
94
|
* and the context object.
|
|
181
95
|
* 2. If attr is null, return null.
|
|
182
96
|
* 3. Return attr’s value.
|
|
183
97
|
*/
|
|
184
|
-
|
|
98
|
+
const attr = (0, algorithm_1.element_getAnAttributeByName)(qualifiedName, this);
|
|
185
99
|
return (attr ? attr._value : null);
|
|
186
|
-
}
|
|
100
|
+
}
|
|
187
101
|
/** @inheritdoc */
|
|
188
|
-
|
|
102
|
+
getAttributeNS(namespace, localName) {
|
|
189
103
|
/**
|
|
190
104
|
* 1. Let attr be the result of getting an attribute given namespace,
|
|
191
105
|
* localName, and the context object.
|
|
192
106
|
* 2. If attr is null, return null.
|
|
193
107
|
* 3. Return attr’s value.
|
|
194
108
|
*/
|
|
195
|
-
|
|
109
|
+
const attr = (0, algorithm_1.element_getAnAttributeByNamespaceAndLocalName)(namespace, localName, this);
|
|
196
110
|
return (attr ? attr._value : null);
|
|
197
|
-
}
|
|
111
|
+
}
|
|
198
112
|
/** @inheritdoc */
|
|
199
|
-
|
|
113
|
+
setAttribute(qualifiedName, value) {
|
|
200
114
|
/**
|
|
201
115
|
* 1. If qualifiedName does not match the Name production in XML, then
|
|
202
116
|
* throw an "InvalidCharacterError" DOMException.
|
|
203
117
|
*/
|
|
204
|
-
if (!algorithm_1.xml_isName(qualifiedName))
|
|
118
|
+
if (!(0, algorithm_1.xml_isName)(qualifiedName))
|
|
205
119
|
throw new DOMException_1.InvalidCharacterError();
|
|
206
120
|
/**
|
|
207
121
|
* 2. If the context object is in the HTML namespace and its node document
|
|
@@ -215,9 +129,9 @@ var ElementImpl = /** @class */ (function (_super) {
|
|
|
215
129
|
* 3. Let attribute be the first attribute in context object’s attribute
|
|
216
130
|
* list whose qualified name is qualifiedName, and null otherwise.
|
|
217
131
|
*/
|
|
218
|
-
|
|
219
|
-
for (
|
|
220
|
-
|
|
132
|
+
let attribute = null;
|
|
133
|
+
for (let i = 0; i < this._attributeList.length; i++) {
|
|
134
|
+
const attr = this._attributeList[i];
|
|
221
135
|
if (attr._qualifiedName === qualifiedName) {
|
|
222
136
|
attribute = attr;
|
|
223
137
|
break;
|
|
@@ -230,47 +144,47 @@ var ElementImpl = /** @class */ (function (_super) {
|
|
|
230
144
|
* then return.
|
|
231
145
|
*/
|
|
232
146
|
if (attribute === null) {
|
|
233
|
-
attribute = algorithm_1.create_attr(this._nodeDocument, qualifiedName);
|
|
147
|
+
attribute = (0, algorithm_1.create_attr)(this._nodeDocument, qualifiedName);
|
|
234
148
|
attribute._value = value;
|
|
235
|
-
algorithm_1.element_append(attribute, this);
|
|
149
|
+
(0, algorithm_1.element_append)(attribute, this);
|
|
236
150
|
return;
|
|
237
151
|
}
|
|
238
152
|
/**
|
|
239
153
|
* 5. Change attribute from context object to value.
|
|
240
154
|
*/
|
|
241
|
-
algorithm_1.element_change(attribute, this, value);
|
|
242
|
-
}
|
|
155
|
+
(0, algorithm_1.element_change)(attribute, this, value);
|
|
156
|
+
}
|
|
243
157
|
/** @inheritdoc */
|
|
244
|
-
|
|
158
|
+
setAttributeNS(namespace, qualifiedName, value) {
|
|
245
159
|
/**
|
|
246
160
|
* 1. Let namespace, prefix, and localName be the result of passing
|
|
247
161
|
* namespace and qualifiedName to validate and extract.
|
|
248
162
|
* 2. Set an attribute value for the context object using localName, value,
|
|
249
163
|
* and also prefix and namespace.
|
|
250
164
|
*/
|
|
251
|
-
|
|
252
|
-
algorithm_1.element_setAnAttributeValue(this, localName, value, prefix, ns);
|
|
253
|
-
}
|
|
165
|
+
const [ns, prefix, localName] = (0, algorithm_1.namespace_validateAndExtract)(namespace, qualifiedName);
|
|
166
|
+
(0, algorithm_1.element_setAnAttributeValue)(this, localName, value, prefix, ns);
|
|
167
|
+
}
|
|
254
168
|
/** @inheritdoc */
|
|
255
|
-
|
|
169
|
+
removeAttribute(qualifiedName) {
|
|
256
170
|
/**
|
|
257
171
|
* The removeAttribute(qualifiedName) method, when invoked, must remove an
|
|
258
172
|
* attribute given qualifiedName and the context object, and then return
|
|
259
173
|
* undefined.
|
|
260
174
|
*/
|
|
261
|
-
algorithm_1.element_removeAnAttributeByName(qualifiedName, this);
|
|
262
|
-
}
|
|
175
|
+
(0, algorithm_1.element_removeAnAttributeByName)(qualifiedName, this);
|
|
176
|
+
}
|
|
263
177
|
/** @inheritdoc */
|
|
264
|
-
|
|
178
|
+
removeAttributeNS(namespace, localName) {
|
|
265
179
|
/**
|
|
266
180
|
* The removeAttributeNS(namespace, localName) method, when invoked, must
|
|
267
181
|
* remove an attribute given namespace, localName, and context object, and
|
|
268
182
|
* then return undefined.
|
|
269
183
|
*/
|
|
270
|
-
algorithm_1.element_removeAnAttributeByNamespaceAndLocalName(namespace, localName, this);
|
|
271
|
-
}
|
|
184
|
+
(0, algorithm_1.element_removeAnAttributeByNamespaceAndLocalName)(namespace, localName, this);
|
|
185
|
+
}
|
|
272
186
|
/** @inheritdoc */
|
|
273
|
-
|
|
187
|
+
hasAttribute(qualifiedName) {
|
|
274
188
|
/**
|
|
275
189
|
* 1. If the context object is in the HTML namespace and its node document
|
|
276
190
|
* is an HTML document, then set qualifiedName to qualifiedName in ASCII
|
|
@@ -281,21 +195,21 @@ var ElementImpl = /** @class */ (function (_super) {
|
|
|
281
195
|
if (this._namespace === infra_1.namespace.HTML && this._nodeDocument._type === "html") {
|
|
282
196
|
qualifiedName = qualifiedName.toLowerCase();
|
|
283
197
|
}
|
|
284
|
-
for (
|
|
285
|
-
|
|
198
|
+
for (let i = 0; i < this._attributeList.length; i++) {
|
|
199
|
+
const attr = this._attributeList[i];
|
|
286
200
|
if (attr._qualifiedName === qualifiedName) {
|
|
287
201
|
return true;
|
|
288
202
|
}
|
|
289
203
|
}
|
|
290
204
|
return false;
|
|
291
|
-
}
|
|
205
|
+
}
|
|
292
206
|
/** @inheritdoc */
|
|
293
|
-
|
|
207
|
+
toggleAttribute(qualifiedName, force) {
|
|
294
208
|
/**
|
|
295
209
|
* 1. If qualifiedName does not match the Name production in XML, then
|
|
296
210
|
* throw an "InvalidCharacterError" DOMException.
|
|
297
211
|
*/
|
|
298
|
-
if (!algorithm_1.xml_isName(qualifiedName))
|
|
212
|
+
if (!(0, algorithm_1.xml_isName)(qualifiedName))
|
|
299
213
|
throw new DOMException_1.InvalidCharacterError();
|
|
300
214
|
/**
|
|
301
215
|
* 2. If the context object is in the HTML namespace and its node document
|
|
@@ -309,9 +223,9 @@ var ElementImpl = /** @class */ (function (_super) {
|
|
|
309
223
|
* 3. Let attribute be the first attribute in the context object’s attribute
|
|
310
224
|
* list whose qualified name is qualifiedName, and null otherwise.
|
|
311
225
|
*/
|
|
312
|
-
|
|
313
|
-
for (
|
|
314
|
-
|
|
226
|
+
let attribute = null;
|
|
227
|
+
for (let i = 0; i < this._attributeList.length; i++) {
|
|
228
|
+
const attr = this._attributeList[i];
|
|
315
229
|
if (attr._qualifiedName === qualifiedName) {
|
|
316
230
|
attribute = attr;
|
|
317
231
|
break;
|
|
@@ -327,9 +241,9 @@ var ElementImpl = /** @class */ (function (_super) {
|
|
|
327
241
|
* 4.2. Return false.
|
|
328
242
|
*/
|
|
329
243
|
if (force === undefined || force === true) {
|
|
330
|
-
attribute = algorithm_1.create_attr(this._nodeDocument, qualifiedName);
|
|
244
|
+
attribute = (0, algorithm_1.create_attr)(this._nodeDocument, qualifiedName);
|
|
331
245
|
attribute._value = '';
|
|
332
|
-
algorithm_1.element_append(attribute, this);
|
|
246
|
+
(0, algorithm_1.element_append)(attribute, this);
|
|
333
247
|
return true;
|
|
334
248
|
}
|
|
335
249
|
return false;
|
|
@@ -339,71 +253,71 @@ var ElementImpl = /** @class */ (function (_super) {
|
|
|
339
253
|
* 5. Otherwise, if force is not given or is false, remove an attribute
|
|
340
254
|
* given qualifiedName and the context object, and then return false.
|
|
341
255
|
*/
|
|
342
|
-
algorithm_1.element_removeAnAttributeByName(qualifiedName, this);
|
|
256
|
+
(0, algorithm_1.element_removeAnAttributeByName)(qualifiedName, this);
|
|
343
257
|
return false;
|
|
344
258
|
}
|
|
345
259
|
/**
|
|
346
260
|
* 6. Return true.
|
|
347
261
|
*/
|
|
348
262
|
return true;
|
|
349
|
-
}
|
|
263
|
+
}
|
|
350
264
|
/** @inheritdoc */
|
|
351
|
-
|
|
265
|
+
hasAttributeNS(namespace, localName) {
|
|
352
266
|
/**
|
|
353
267
|
* 1. If namespace is the empty string, set it to null.
|
|
354
268
|
* 2. Return true if the context object has an attribute whose namespace is
|
|
355
269
|
* namespace and local name is localName, and false otherwise.
|
|
356
270
|
*/
|
|
357
|
-
|
|
358
|
-
for (
|
|
359
|
-
|
|
271
|
+
const ns = namespace || null;
|
|
272
|
+
for (let i = 0; i < this._attributeList.length; i++) {
|
|
273
|
+
const attr = this._attributeList[i];
|
|
360
274
|
if (attr._namespace === ns && attr._localName === localName) {
|
|
361
275
|
return true;
|
|
362
276
|
}
|
|
363
277
|
}
|
|
364
278
|
return false;
|
|
365
|
-
}
|
|
279
|
+
}
|
|
366
280
|
/** @inheritdoc */
|
|
367
|
-
|
|
281
|
+
getAttributeNode(qualifiedName) {
|
|
368
282
|
/**
|
|
369
283
|
* The getAttributeNode(qualifiedName) method, when invoked, must return the
|
|
370
284
|
* result of getting an attribute given qualifiedName and context object.
|
|
371
285
|
*/
|
|
372
|
-
return algorithm_1.element_getAnAttributeByName(qualifiedName, this);
|
|
373
|
-
}
|
|
286
|
+
return (0, algorithm_1.element_getAnAttributeByName)(qualifiedName, this);
|
|
287
|
+
}
|
|
374
288
|
/** @inheritdoc */
|
|
375
|
-
|
|
289
|
+
getAttributeNodeNS(namespace, localName) {
|
|
376
290
|
/**
|
|
377
291
|
* The getAttributeNodeNS(namespace, localName) method, when invoked, must
|
|
378
292
|
* return the result of getting an attribute given namespace, localName, and
|
|
379
293
|
* the context object.
|
|
380
294
|
*/
|
|
381
|
-
return algorithm_1.element_getAnAttributeByNamespaceAndLocalName(namespace, localName, this);
|
|
382
|
-
}
|
|
295
|
+
return (0, algorithm_1.element_getAnAttributeByNamespaceAndLocalName)(namespace, localName, this);
|
|
296
|
+
}
|
|
383
297
|
/** @inheritdoc */
|
|
384
|
-
|
|
298
|
+
setAttributeNode(attr) {
|
|
385
299
|
/**
|
|
386
300
|
* The setAttributeNode(attr) and setAttributeNodeNS(attr) methods, when
|
|
387
301
|
* invoked, must return the result of setting an attribute given attr and
|
|
388
302
|
* the context object.
|
|
389
303
|
*/
|
|
390
|
-
return algorithm_1.element_setAnAttribute(attr, this);
|
|
391
|
-
}
|
|
304
|
+
return (0, algorithm_1.element_setAnAttribute)(attr, this);
|
|
305
|
+
}
|
|
392
306
|
/** @inheritdoc */
|
|
393
|
-
|
|
394
|
-
return algorithm_1.element_setAnAttribute(attr, this);
|
|
395
|
-
}
|
|
307
|
+
setAttributeNodeNS(attr) {
|
|
308
|
+
return (0, algorithm_1.element_setAnAttribute)(attr, this);
|
|
309
|
+
}
|
|
396
310
|
/** @inheritdoc */
|
|
397
|
-
|
|
311
|
+
removeAttributeNode(attr) {
|
|
398
312
|
/**
|
|
399
313
|
* 1. If context object’s attribute list does not contain attr, then throw
|
|
400
314
|
* a "NotFoundError" DOMException.
|
|
401
315
|
* 2. Remove attr from context object.
|
|
402
316
|
* 3. Return attr.
|
|
403
317
|
*/
|
|
404
|
-
|
|
405
|
-
for (
|
|
406
|
-
|
|
318
|
+
let found = false;
|
|
319
|
+
for (let i = 0; i < this._attributeList.length; i++) {
|
|
320
|
+
const attribute = this._attributeList[i];
|
|
407
321
|
if (attribute === attr) {
|
|
408
322
|
found = true;
|
|
409
323
|
break;
|
|
@@ -411,11 +325,11 @@ var ElementImpl = /** @class */ (function (_super) {
|
|
|
411
325
|
}
|
|
412
326
|
if (!found)
|
|
413
327
|
throw new DOMException_1.NotFoundError();
|
|
414
|
-
algorithm_1.element_remove(attr, this);
|
|
328
|
+
(0, algorithm_1.element_remove)(attr, this);
|
|
415
329
|
return attr;
|
|
416
|
-
}
|
|
330
|
+
}
|
|
417
331
|
/** @inheritdoc */
|
|
418
|
-
|
|
332
|
+
attachShadow(init) {
|
|
419
333
|
/**
|
|
420
334
|
* 1. If context object’s namespace is not the HTML namespace, then throw a
|
|
421
335
|
* "NotSupportedError" DOMException.
|
|
@@ -428,8 +342,8 @@ var ElementImpl = /** @class */ (function (_super) {
|
|
|
428
342
|
* "h3", "h4", "h5", "h6", "header", "main" "nav", "p", "section",
|
|
429
343
|
* or "span", then throw a "NotSupportedError" DOMException.
|
|
430
344
|
*/
|
|
431
|
-
if (!algorithm_1.customElement_isValidCustomElementName(this._localName) &&
|
|
432
|
-
!algorithm_1.customElement_isValidShadowHostName(this._localName))
|
|
345
|
+
if (!(0, algorithm_1.customElement_isValidCustomElementName)(this._localName) &&
|
|
346
|
+
!(0, algorithm_1.customElement_isValidShadowHostName)(this._localName))
|
|
433
347
|
throw new DOMException_1.NotSupportedError();
|
|
434
348
|
/**
|
|
435
349
|
* 3. If context object’s local name is a valid custom element name,
|
|
@@ -440,8 +354,8 @@ var ElementImpl = /** @class */ (function (_super) {
|
|
|
440
354
|
* 3.2. If definition is not null and definition’s disable shadow is true,
|
|
441
355
|
* then throw a "NotSupportedError" DOMException.
|
|
442
356
|
*/
|
|
443
|
-
if (algorithm_1.customElement_isValidCustomElementName(this._localName) || this._is !== null) {
|
|
444
|
-
|
|
357
|
+
if ((0, algorithm_1.customElement_isValidCustomElementName)(this._localName) || this._is !== null) {
|
|
358
|
+
const definition = (0, algorithm_1.customElement_lookUpACustomElementDefinition)(this._nodeDocument, this._namespace, this._localName, this._is);
|
|
445
359
|
if (definition !== null && definition.disableShadow === true) {
|
|
446
360
|
throw new DOMException_1.NotSupportedError();
|
|
447
361
|
}
|
|
@@ -458,30 +372,26 @@ var ElementImpl = /** @class */ (function (_super) {
|
|
|
458
372
|
* 6. Set context object’s shadow root to shadow.
|
|
459
373
|
* 7. Return shadow.
|
|
460
374
|
*/
|
|
461
|
-
|
|
375
|
+
const shadow = (0, algorithm_1.create_shadowRoot)(this._nodeDocument, this);
|
|
462
376
|
shadow._mode = init.mode;
|
|
463
377
|
this._shadowRoot = shadow;
|
|
464
378
|
return shadow;
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
configurable: true
|
|
482
|
-
});
|
|
483
|
-
/** @inheritdoc */
|
|
484
|
-
ElementImpl.prototype.closest = function (selectors) {
|
|
379
|
+
}
|
|
380
|
+
/** @inheritdoc */
|
|
381
|
+
get shadowRoot() {
|
|
382
|
+
/**
|
|
383
|
+
* 1. Let shadow be context object’s shadow root.
|
|
384
|
+
* 2. If shadow is null or its mode is "closed", then return null.
|
|
385
|
+
* 3. Return shadow.
|
|
386
|
+
*/
|
|
387
|
+
const shadow = this._shadowRoot;
|
|
388
|
+
if (shadow === null || shadow.mode === "closed")
|
|
389
|
+
return null;
|
|
390
|
+
else
|
|
391
|
+
return shadow;
|
|
392
|
+
}
|
|
393
|
+
/** @inheritdoc */
|
|
394
|
+
closest(selectors) {
|
|
485
395
|
/**
|
|
486
396
|
* TODO: Selectors
|
|
487
397
|
* 1. Let s be the result of parse a selector from selectors. [SELECTORS4]
|
|
@@ -494,9 +404,9 @@ var ElementImpl = /** @class */ (function (_super) {
|
|
|
494
404
|
* 5. Return null.
|
|
495
405
|
*/
|
|
496
406
|
throw new DOMException_1.NotImplementedError();
|
|
497
|
-
}
|
|
407
|
+
}
|
|
498
408
|
/** @inheritdoc */
|
|
499
|
-
|
|
409
|
+
matches(selectors) {
|
|
500
410
|
/**
|
|
501
411
|
* TODO: Selectors
|
|
502
412
|
* 1. Let s be the result of parse a selector from selectors. [SELECTORS4]
|
|
@@ -506,186 +416,120 @@ var ElementImpl = /** @class */ (function (_super) {
|
|
|
506
416
|
* and false otherwise. [SELECTORS4]
|
|
507
417
|
*/
|
|
508
418
|
throw new DOMException_1.NotImplementedError();
|
|
509
|
-
}
|
|
419
|
+
}
|
|
510
420
|
/** @inheritdoc */
|
|
511
|
-
|
|
421
|
+
webkitMatchesSelector(selectors) {
|
|
512
422
|
return this.matches(selectors);
|
|
513
|
-
}
|
|
423
|
+
}
|
|
514
424
|
/** @inheritdoc */
|
|
515
|
-
|
|
425
|
+
getElementsByTagName(qualifiedName) {
|
|
516
426
|
/**
|
|
517
427
|
* The getElementsByTagName(qualifiedName) method, when invoked, must return
|
|
518
428
|
* the list of elements with qualified name qualifiedName for context
|
|
519
429
|
* object.
|
|
520
430
|
*/
|
|
521
|
-
return algorithm_1.node_listOfElementsWithQualifiedName(qualifiedName, this);
|
|
522
|
-
}
|
|
431
|
+
return (0, algorithm_1.node_listOfElementsWithQualifiedName)(qualifiedName, this);
|
|
432
|
+
}
|
|
523
433
|
/** @inheritdoc */
|
|
524
|
-
|
|
434
|
+
getElementsByTagNameNS(namespace, localName) {
|
|
525
435
|
/**
|
|
526
436
|
* The getElementsByTagNameNS(namespace, localName) method, when invoked,
|
|
527
437
|
* must return the list of elements with namespace namespace and local name
|
|
528
438
|
* localName for context object.
|
|
529
439
|
*/
|
|
530
|
-
return algorithm_1.node_listOfElementsWithNamespace(namespace, localName, this);
|
|
531
|
-
}
|
|
440
|
+
return (0, algorithm_1.node_listOfElementsWithNamespace)(namespace, localName, this);
|
|
441
|
+
}
|
|
532
442
|
/** @inheritdoc */
|
|
533
|
-
|
|
443
|
+
getElementsByClassName(classNames) {
|
|
534
444
|
/**
|
|
535
445
|
* The getElementsByClassName(classNames) method, when invoked, must return
|
|
536
446
|
* the list of elements with class names classNames for context object.
|
|
537
447
|
*/
|
|
538
|
-
return algorithm_1.node_listOfElementsWithClassNames(classNames, this);
|
|
539
|
-
}
|
|
448
|
+
return (0, algorithm_1.node_listOfElementsWithClassNames)(classNames, this);
|
|
449
|
+
}
|
|
540
450
|
/** @inheritdoc */
|
|
541
|
-
|
|
451
|
+
insertAdjacentElement(where, element) {
|
|
542
452
|
/**
|
|
543
453
|
* The insertAdjacentElement(where, element) method, when invoked, must
|
|
544
454
|
* return the result of running insert adjacent, given context object,
|
|
545
455
|
* where, and element.
|
|
546
456
|
*/
|
|
547
|
-
return algorithm_1.element_insertAdjacent(this, where, element);
|
|
548
|
-
}
|
|
457
|
+
return (0, algorithm_1.element_insertAdjacent)(this, where, element);
|
|
458
|
+
}
|
|
549
459
|
/** @inheritdoc */
|
|
550
|
-
|
|
460
|
+
insertAdjacentText(where, data) {
|
|
551
461
|
/**
|
|
552
462
|
* 1. Let text be a new Text node whose data is data and node document is
|
|
553
463
|
* context object’s node document.
|
|
554
464
|
* 2. Run insert adjacent, given context object, where, and text.
|
|
555
465
|
*/
|
|
556
|
-
|
|
557
|
-
algorithm_1.element_insertAdjacent(this, where, text);
|
|
558
|
-
}
|
|
559
|
-
|
|
466
|
+
const text = (0, algorithm_1.create_text)(this._nodeDocument, data);
|
|
467
|
+
(0, algorithm_1.element_insertAdjacent)(this, where, text);
|
|
468
|
+
}
|
|
469
|
+
/**
|
|
470
|
+
* Returns the qualified name.
|
|
471
|
+
*/
|
|
472
|
+
get _qualifiedName() {
|
|
560
473
|
/**
|
|
561
|
-
*
|
|
474
|
+
* An element’s qualified name is its local name if its namespace prefix is
|
|
475
|
+
* null, and its namespace prefix, followed by ":", followed by its
|
|
476
|
+
* local name, otherwise.
|
|
562
477
|
*/
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
/**
|
|
582
|
-
* 1. Let qualifiedName be context object’s qualified name.
|
|
583
|
-
* 2. If the context object is in the HTML namespace and its node document
|
|
584
|
-
* is an HTML document, then set qualifiedName to qualifiedName in ASCII
|
|
585
|
-
* uppercase.
|
|
586
|
-
* 3. Return qualifiedName.
|
|
587
|
-
*/
|
|
588
|
-
var qualifiedName = this._qualifiedName;
|
|
589
|
-
if (this._namespace === infra_1.namespace.HTML && this._nodeDocument._type === "html") {
|
|
590
|
-
qualifiedName = qualifiedName.toUpperCase();
|
|
591
|
-
}
|
|
592
|
-
return qualifiedName;
|
|
593
|
-
},
|
|
594
|
-
enumerable: true,
|
|
595
|
-
configurable: true
|
|
596
|
-
});
|
|
597
|
-
Object.defineProperty(ElementImpl.prototype, "children", {
|
|
598
|
-
// MIXIN: ParentNode
|
|
599
|
-
/* istanbul ignore next */
|
|
600
|
-
get: function () { throw new Error("Mixin: ParentNode not implemented."); },
|
|
601
|
-
enumerable: true,
|
|
602
|
-
configurable: true
|
|
603
|
-
});
|
|
604
|
-
Object.defineProperty(ElementImpl.prototype, "firstElementChild", {
|
|
605
|
-
/* istanbul ignore next */
|
|
606
|
-
get: function () { throw new Error("Mixin: ParentNode not implemented."); },
|
|
607
|
-
enumerable: true,
|
|
608
|
-
configurable: true
|
|
609
|
-
});
|
|
610
|
-
Object.defineProperty(ElementImpl.prototype, "lastElementChild", {
|
|
611
|
-
/* istanbul ignore next */
|
|
612
|
-
get: function () { throw new Error("Mixin: ParentNode not implemented."); },
|
|
613
|
-
enumerable: true,
|
|
614
|
-
configurable: true
|
|
615
|
-
});
|
|
616
|
-
Object.defineProperty(ElementImpl.prototype, "childElementCount", {
|
|
617
|
-
/* istanbul ignore next */
|
|
618
|
-
get: function () { throw new Error("Mixin: ParentNode not implemented."); },
|
|
619
|
-
enumerable: true,
|
|
620
|
-
configurable: true
|
|
621
|
-
});
|
|
622
|
-
/* istanbul ignore next */
|
|
623
|
-
ElementImpl.prototype.prepend = function () {
|
|
624
|
-
var nodes = [];
|
|
625
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
626
|
-
nodes[_i] = arguments[_i];
|
|
478
|
+
return (this._namespacePrefix ?
|
|
479
|
+
this._namespacePrefix + ':' + this._localName :
|
|
480
|
+
this._localName);
|
|
481
|
+
}
|
|
482
|
+
/**
|
|
483
|
+
* Returns the upper-cased qualified name for a html element.
|
|
484
|
+
*/
|
|
485
|
+
get _htmlUppercasedQualifiedName() {
|
|
486
|
+
/**
|
|
487
|
+
* 1. Let qualifiedName be context object’s qualified name.
|
|
488
|
+
* 2. If the context object is in the HTML namespace and its node document
|
|
489
|
+
* is an HTML document, then set qualifiedName to qualifiedName in ASCII
|
|
490
|
+
* uppercase.
|
|
491
|
+
* 3. Return qualifiedName.
|
|
492
|
+
*/
|
|
493
|
+
let qualifiedName = this._qualifiedName;
|
|
494
|
+
if (this._namespace === infra_1.namespace.HTML && this._nodeDocument._type === "html") {
|
|
495
|
+
qualifiedName = qualifiedName.toUpperCase();
|
|
627
496
|
}
|
|
628
|
-
|
|
629
|
-
}
|
|
497
|
+
return qualifiedName;
|
|
498
|
+
}
|
|
499
|
+
// MIXIN: ParentNode
|
|
630
500
|
/* istanbul ignore next */
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
nodes[_i] = arguments[_i];
|
|
635
|
-
}
|
|
636
|
-
throw new Error("Mixin: ParentNode not implemented.");
|
|
637
|
-
};
|
|
501
|
+
get children() { throw new Error("Mixin: ParentNode not implemented."); }
|
|
502
|
+
/* istanbul ignore next */
|
|
503
|
+
get firstElementChild() { throw new Error("Mixin: ParentNode not implemented."); }
|
|
638
504
|
/* istanbul ignore next */
|
|
639
|
-
|
|
505
|
+
get lastElementChild() { throw new Error("Mixin: ParentNode not implemented."); }
|
|
640
506
|
/* istanbul ignore next */
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
507
|
+
get childElementCount() { throw new Error("Mixin: ParentNode not implemented."); }
|
|
508
|
+
/* istanbul ignore next */
|
|
509
|
+
prepend(...nodes) { throw new Error("Mixin: ParentNode not implemented."); }
|
|
510
|
+
/* istanbul ignore next */
|
|
511
|
+
append(...nodes) { throw new Error("Mixin: ParentNode not implemented."); }
|
|
512
|
+
/* istanbul ignore next */
|
|
513
|
+
querySelector(selectors) { throw new Error("Mixin: ParentNode not implemented."); }
|
|
514
|
+
/* istanbul ignore next */
|
|
515
|
+
querySelectorAll(selectors) { throw new Error("Mixin: ParentNode not implemented."); }
|
|
516
|
+
// MIXIN: NonDocumentTypeChildNode
|
|
517
|
+
/* istanbul ignore next */
|
|
518
|
+
get previousElementSibling() { throw new Error("Mixin: NonDocumentTypeChildNode not implemented."); }
|
|
519
|
+
/* istanbul ignore next */
|
|
520
|
+
get nextElementSibling() { throw new Error("Mixin: NonDocumentTypeChildNode not implemented."); }
|
|
655
521
|
// MIXIN: ChildNode
|
|
656
522
|
/* istanbul ignore next */
|
|
657
|
-
|
|
658
|
-
var nodes = [];
|
|
659
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
660
|
-
nodes[_i] = arguments[_i];
|
|
661
|
-
}
|
|
662
|
-
throw new Error("Mixin: ChildNode not implemented.");
|
|
663
|
-
};
|
|
523
|
+
before(...nodes) { throw new Error("Mixin: ChildNode not implemented."); }
|
|
664
524
|
/* istanbul ignore next */
|
|
665
|
-
|
|
666
|
-
var nodes = [];
|
|
667
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
668
|
-
nodes[_i] = arguments[_i];
|
|
669
|
-
}
|
|
670
|
-
throw new Error("Mixin: ChildNode not implemented.");
|
|
671
|
-
};
|
|
525
|
+
after(...nodes) { throw new Error("Mixin: ChildNode not implemented."); }
|
|
672
526
|
/* istanbul ignore next */
|
|
673
|
-
|
|
674
|
-
var nodes = [];
|
|
675
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
676
|
-
nodes[_i] = arguments[_i];
|
|
677
|
-
}
|
|
678
|
-
throw new Error("Mixin: ChildNode not implemented.");
|
|
679
|
-
};
|
|
527
|
+
replaceWith(...nodes) { throw new Error("Mixin: ChildNode not implemented."); }
|
|
680
528
|
/* istanbul ignore next */
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
get: function () { throw new Error("Mixin: Slotable not implemented."); },
|
|
686
|
-
enumerable: true,
|
|
687
|
-
configurable: true
|
|
688
|
-
});
|
|
529
|
+
remove() { throw new Error("Mixin: ChildNode not implemented."); }
|
|
530
|
+
// MIXIN: Slotable
|
|
531
|
+
/* istanbul ignore next */
|
|
532
|
+
get assignedSlot() { throw new Error("Mixin: Slotable not implemented."); }
|
|
689
533
|
/**
|
|
690
534
|
* Creates a new `Element`.
|
|
691
535
|
*
|
|
@@ -694,21 +538,18 @@ var ElementImpl = /** @class */ (function (_super) {
|
|
|
694
538
|
* @param namespace - namespace
|
|
695
539
|
* @param prefix - namespace prefix
|
|
696
540
|
*/
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
if (namespacePrefix === void 0) { namespacePrefix = null; }
|
|
700
|
-
var node = new ElementImpl();
|
|
541
|
+
static _create(document, localName, namespace = null, namespacePrefix = null) {
|
|
542
|
+
const node = new ElementImpl();
|
|
701
543
|
node._localName = localName;
|
|
702
544
|
node._namespace = namespace;
|
|
703
545
|
node._namespacePrefix = namespacePrefix;
|
|
704
546
|
node._nodeDocument = document;
|
|
705
547
|
return node;
|
|
706
|
-
}
|
|
707
|
-
|
|
708
|
-
}(NodeImpl_1.NodeImpl));
|
|
548
|
+
}
|
|
549
|
+
}
|
|
709
550
|
exports.ElementImpl = ElementImpl;
|
|
710
551
|
/**
|
|
711
552
|
* Initialize prototype properties
|
|
712
553
|
*/
|
|
713
|
-
WebIDLAlgorithm_1.idl_defineConst(ElementImpl.prototype, "_nodeType", interfaces_1.NodeType.Element);
|
|
554
|
+
(0, WebIDLAlgorithm_1.idl_defineConst)(ElementImpl.prototype, "_nodeType", interfaces_1.NodeType.Element);
|
|
714
555
|
//# sourceMappingURL=ElementImpl.js.map
|