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,249 +1,151 @@
|
|
|
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
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
3
|
+
exports.DocumentImpl = void 0;
|
|
4
|
+
const DOMImpl_1 = require("./DOMImpl");
|
|
5
|
+
const interfaces_1 = require("./interfaces");
|
|
6
|
+
const DOMException_1 = require("./DOMException");
|
|
7
|
+
const NodeImpl_1 = require("./NodeImpl");
|
|
8
|
+
const util_1 = require("../util");
|
|
9
|
+
const util_2 = require("@oozcitak/util");
|
|
10
|
+
const infra_1 = require("@oozcitak/infra");
|
|
11
|
+
const URLAlgorithm_1 = require("@oozcitak/url/lib/URLAlgorithm");
|
|
12
|
+
const algorithm_1 = require("../algorithm");
|
|
13
|
+
const WebIDLAlgorithm_1 = require("../algorithm/WebIDLAlgorithm");
|
|
53
14
|
/**
|
|
54
15
|
* Represents a document node.
|
|
55
16
|
*/
|
|
56
|
-
|
|
57
|
-
|
|
17
|
+
class DocumentImpl extends NodeImpl_1.NodeImpl {
|
|
18
|
+
_nodeType = interfaces_1.NodeType.Document;
|
|
19
|
+
_children = new Set();
|
|
20
|
+
_encoding = {
|
|
21
|
+
name: "UTF-8",
|
|
22
|
+
labels: ["unicode-1-1-utf-8", "utf-8", "utf8"]
|
|
23
|
+
};
|
|
24
|
+
_contentType = 'application/xml';
|
|
25
|
+
_URL = {
|
|
26
|
+
scheme: "about",
|
|
27
|
+
username: "",
|
|
28
|
+
password: "",
|
|
29
|
+
host: null,
|
|
30
|
+
port: null,
|
|
31
|
+
path: ["blank"],
|
|
32
|
+
query: null,
|
|
33
|
+
fragment: null,
|
|
34
|
+
_cannotBeABaseURLFlag: true,
|
|
35
|
+
_blobURLEntry: null
|
|
36
|
+
};
|
|
37
|
+
_origin = null;
|
|
38
|
+
_type = "xml";
|
|
39
|
+
_mode = "no-quirks";
|
|
40
|
+
_implementation;
|
|
41
|
+
_documentElement = null;
|
|
42
|
+
_hasNamespaces = false;
|
|
43
|
+
_nodeDocumentOverwrite = null;
|
|
44
|
+
get _nodeDocument() { return this._nodeDocumentOverwrite || this; }
|
|
45
|
+
set _nodeDocument(val) { this._nodeDocumentOverwrite = val; }
|
|
58
46
|
/**
|
|
59
47
|
* Initializes a new instance of `Document`.
|
|
60
48
|
*/
|
|
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
|
-
|
|
49
|
+
constructor() {
|
|
50
|
+
super();
|
|
51
|
+
}
|
|
52
|
+
/** @inheritdoc */
|
|
53
|
+
get implementation() {
|
|
54
|
+
/**
|
|
55
|
+
* The implementation attribute’s getter must return the DOMImplementation
|
|
56
|
+
* object that is associated with the document.
|
|
57
|
+
*/
|
|
58
|
+
return this._implementation || (this._implementation = (0, algorithm_1.create_domImplementation)(this));
|
|
59
|
+
}
|
|
60
|
+
/** @inheritdoc */
|
|
61
|
+
get URL() {
|
|
62
|
+
/**
|
|
63
|
+
* The URL attribute’s getter and documentURI attribute’s getter must return
|
|
64
|
+
* the URL, serialized.
|
|
65
|
+
* See: https://url.spec.whatwg.org/#concept-url-serializer
|
|
66
|
+
*/
|
|
67
|
+
return (0, URLAlgorithm_1.urlSerializer)(this._URL);
|
|
68
|
+
}
|
|
69
|
+
/** @inheritdoc */
|
|
70
|
+
get documentURI() { return this.URL; }
|
|
71
|
+
/** @inheritdoc */
|
|
72
|
+
get origin() {
|
|
73
|
+
return "null";
|
|
74
|
+
}
|
|
75
|
+
/** @inheritdoc */
|
|
76
|
+
get compatMode() {
|
|
77
|
+
/**
|
|
78
|
+
* The compatMode attribute’s getter must return "BackCompat" if context
|
|
79
|
+
* object’s mode is "quirks", and "CSS1Compat" otherwise.
|
|
80
|
+
*/
|
|
81
|
+
return this._mode === "quirks" ? "BackCompat" : "CSS1Compat";
|
|
82
|
+
}
|
|
83
|
+
/** @inheritdoc */
|
|
84
|
+
get characterSet() {
|
|
85
|
+
/**
|
|
86
|
+
* The characterSet attribute’s getter, charset attribute’s getter, and
|
|
87
|
+
* inputEncoding attribute’s getter, must return context object’s
|
|
88
|
+
* encoding’s name.
|
|
89
|
+
*/
|
|
90
|
+
return this._encoding.name;
|
|
91
|
+
}
|
|
92
|
+
/** @inheritdoc */
|
|
93
|
+
get charset() { return this._encoding.name; }
|
|
94
|
+
/** @inheritdoc */
|
|
95
|
+
get inputEncoding() { return this._encoding.name; }
|
|
96
|
+
/** @inheritdoc */
|
|
97
|
+
get contentType() {
|
|
98
|
+
/**
|
|
99
|
+
* The contentType attribute’s getter must return the content type.
|
|
100
|
+
*/
|
|
101
|
+
return this._contentType;
|
|
102
|
+
}
|
|
103
|
+
/** @inheritdoc */
|
|
104
|
+
get doctype() {
|
|
105
|
+
/**
|
|
106
|
+
* The doctype attribute’s getter must return the child of the document
|
|
107
|
+
* that is a doctype, and null otherwise.
|
|
108
|
+
*/
|
|
109
|
+
for (const child of this._children) {
|
|
110
|
+
if (util_1.Guard.isDocumentTypeNode(child))
|
|
111
|
+
return child;
|
|
112
|
+
}
|
|
113
|
+
return null;
|
|
114
|
+
}
|
|
115
|
+
/** @inheritdoc */
|
|
116
|
+
get documentElement() {
|
|
117
|
+
/**
|
|
118
|
+
* The documentElement attribute’s getter must return the document element.
|
|
119
|
+
*/
|
|
120
|
+
return this._documentElement;
|
|
88
121
|
}
|
|
89
|
-
Object.defineProperty(DocumentImpl.prototype, "_nodeDocument", {
|
|
90
|
-
get: function () { return this._nodeDocumentOverwrite || this; },
|
|
91
|
-
set: function (val) { this._nodeDocumentOverwrite = val; },
|
|
92
|
-
enumerable: true,
|
|
93
|
-
configurable: true
|
|
94
|
-
});
|
|
95
|
-
Object.defineProperty(DocumentImpl.prototype, "implementation", {
|
|
96
|
-
/** @inheritdoc */
|
|
97
|
-
get: function () {
|
|
98
|
-
/**
|
|
99
|
-
* The implementation attribute’s getter must return the DOMImplementation
|
|
100
|
-
* object that is associated with the document.
|
|
101
|
-
*/
|
|
102
|
-
return this._implementation || (this._implementation = algorithm_1.create_domImplementation(this));
|
|
103
|
-
},
|
|
104
|
-
enumerable: true,
|
|
105
|
-
configurable: true
|
|
106
|
-
});
|
|
107
|
-
Object.defineProperty(DocumentImpl.prototype, "URL", {
|
|
108
|
-
/** @inheritdoc */
|
|
109
|
-
get: function () {
|
|
110
|
-
/**
|
|
111
|
-
* The URL attribute’s getter and documentURI attribute’s getter must return
|
|
112
|
-
* the URL, serialized.
|
|
113
|
-
* See: https://url.spec.whatwg.org/#concept-url-serializer
|
|
114
|
-
*/
|
|
115
|
-
return URLAlgorithm_1.urlSerializer(this._URL);
|
|
116
|
-
},
|
|
117
|
-
enumerable: true,
|
|
118
|
-
configurable: true
|
|
119
|
-
});
|
|
120
|
-
Object.defineProperty(DocumentImpl.prototype, "documentURI", {
|
|
121
|
-
/** @inheritdoc */
|
|
122
|
-
get: function () { return this.URL; },
|
|
123
|
-
enumerable: true,
|
|
124
|
-
configurable: true
|
|
125
|
-
});
|
|
126
|
-
Object.defineProperty(DocumentImpl.prototype, "origin", {
|
|
127
|
-
/** @inheritdoc */
|
|
128
|
-
get: function () {
|
|
129
|
-
return "null";
|
|
130
|
-
},
|
|
131
|
-
enumerable: true,
|
|
132
|
-
configurable: true
|
|
133
|
-
});
|
|
134
|
-
Object.defineProperty(DocumentImpl.prototype, "compatMode", {
|
|
135
|
-
/** @inheritdoc */
|
|
136
|
-
get: function () {
|
|
137
|
-
/**
|
|
138
|
-
* The compatMode attribute’s getter must return "BackCompat" if context
|
|
139
|
-
* object’s mode is "quirks", and "CSS1Compat" otherwise.
|
|
140
|
-
*/
|
|
141
|
-
return this._mode === "quirks" ? "BackCompat" : "CSS1Compat";
|
|
142
|
-
},
|
|
143
|
-
enumerable: true,
|
|
144
|
-
configurable: true
|
|
145
|
-
});
|
|
146
|
-
Object.defineProperty(DocumentImpl.prototype, "characterSet", {
|
|
147
|
-
/** @inheritdoc */
|
|
148
|
-
get: function () {
|
|
149
|
-
/**
|
|
150
|
-
* The characterSet attribute’s getter, charset attribute’s getter, and
|
|
151
|
-
* inputEncoding attribute’s getter, must return context object’s
|
|
152
|
-
* encoding’s name.
|
|
153
|
-
*/
|
|
154
|
-
return this._encoding.name;
|
|
155
|
-
},
|
|
156
|
-
enumerable: true,
|
|
157
|
-
configurable: true
|
|
158
|
-
});
|
|
159
|
-
Object.defineProperty(DocumentImpl.prototype, "charset", {
|
|
160
|
-
/** @inheritdoc */
|
|
161
|
-
get: function () { return this._encoding.name; },
|
|
162
|
-
enumerable: true,
|
|
163
|
-
configurable: true
|
|
164
|
-
});
|
|
165
|
-
Object.defineProperty(DocumentImpl.prototype, "inputEncoding", {
|
|
166
|
-
/** @inheritdoc */
|
|
167
|
-
get: function () { return this._encoding.name; },
|
|
168
|
-
enumerable: true,
|
|
169
|
-
configurable: true
|
|
170
|
-
});
|
|
171
|
-
Object.defineProperty(DocumentImpl.prototype, "contentType", {
|
|
172
|
-
/** @inheritdoc */
|
|
173
|
-
get: function () {
|
|
174
|
-
/**
|
|
175
|
-
* The contentType attribute’s getter must return the content type.
|
|
176
|
-
*/
|
|
177
|
-
return this._contentType;
|
|
178
|
-
},
|
|
179
|
-
enumerable: true,
|
|
180
|
-
configurable: true
|
|
181
|
-
});
|
|
182
|
-
Object.defineProperty(DocumentImpl.prototype, "doctype", {
|
|
183
|
-
/** @inheritdoc */
|
|
184
|
-
get: function () {
|
|
185
|
-
var e_1, _a;
|
|
186
|
-
try {
|
|
187
|
-
/**
|
|
188
|
-
* The doctype attribute’s getter must return the child of the document
|
|
189
|
-
* that is a doctype, and null otherwise.
|
|
190
|
-
*/
|
|
191
|
-
for (var _b = __values(this._children), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
192
|
-
var child = _c.value;
|
|
193
|
-
if (util_1.Guard.isDocumentTypeNode(child))
|
|
194
|
-
return child;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
198
|
-
finally {
|
|
199
|
-
try {
|
|
200
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
201
|
-
}
|
|
202
|
-
finally { if (e_1) throw e_1.error; }
|
|
203
|
-
}
|
|
204
|
-
return null;
|
|
205
|
-
},
|
|
206
|
-
enumerable: true,
|
|
207
|
-
configurable: true
|
|
208
|
-
});
|
|
209
|
-
Object.defineProperty(DocumentImpl.prototype, "documentElement", {
|
|
210
|
-
/** @inheritdoc */
|
|
211
|
-
get: function () {
|
|
212
|
-
/**
|
|
213
|
-
* The documentElement attribute’s getter must return the document element.
|
|
214
|
-
*/
|
|
215
|
-
return this._documentElement;
|
|
216
|
-
},
|
|
217
|
-
enumerable: true,
|
|
218
|
-
configurable: true
|
|
219
|
-
});
|
|
220
122
|
/** @inheritdoc */
|
|
221
|
-
|
|
123
|
+
getElementsByTagName(qualifiedName) {
|
|
222
124
|
/**
|
|
223
125
|
* The getElementsByTagName(qualifiedName) method, when invoked, must return
|
|
224
126
|
* the list of elements with qualified name qualifiedName for the context object.
|
|
225
127
|
*/
|
|
226
|
-
return algorithm_1.node_listOfElementsWithQualifiedName(qualifiedName, this);
|
|
227
|
-
}
|
|
128
|
+
return (0, algorithm_1.node_listOfElementsWithQualifiedName)(qualifiedName, this);
|
|
129
|
+
}
|
|
228
130
|
/** @inheritdoc */
|
|
229
|
-
|
|
131
|
+
getElementsByTagNameNS(namespace, localName) {
|
|
230
132
|
/**
|
|
231
133
|
* The getElementsByTagNameNS(namespace, localName) method, when invoked,
|
|
232
134
|
* must return the list of elements with namespace namespace and local name
|
|
233
135
|
* localName for the context object.
|
|
234
136
|
*/
|
|
235
|
-
return algorithm_1.node_listOfElementsWithNamespace(namespace, localName, this);
|
|
236
|
-
}
|
|
137
|
+
return (0, algorithm_1.node_listOfElementsWithNamespace)(namespace, localName, this);
|
|
138
|
+
}
|
|
237
139
|
/** @inheritdoc */
|
|
238
|
-
|
|
140
|
+
getElementsByClassName(classNames) {
|
|
239
141
|
/**
|
|
240
142
|
* The getElementsByClassName(classNames) method, when invoked, must return
|
|
241
143
|
* the list of elements with class names classNames for the context object.
|
|
242
144
|
*/
|
|
243
|
-
return algorithm_1.node_listOfElementsWithClassNames(classNames, this);
|
|
244
|
-
}
|
|
145
|
+
return (0, algorithm_1.node_listOfElementsWithClassNames)(classNames, this);
|
|
146
|
+
}
|
|
245
147
|
/** @inheritdoc */
|
|
246
|
-
|
|
148
|
+
createElement(localName, options) {
|
|
247
149
|
/**
|
|
248
150
|
* 1. If localName does not match the Name production, then throw an
|
|
249
151
|
* "InvalidCharacterError" DOMException.
|
|
@@ -259,50 +161,50 @@ var DocumentImpl = /** @class */ (function (_super) {
|
|
|
259
161
|
* localName, namespace, null, is, and with the synchronous custom elements
|
|
260
162
|
* flag set.
|
|
261
163
|
*/
|
|
262
|
-
if (!algorithm_1.xml_isName(localName))
|
|
164
|
+
if (!(0, algorithm_1.xml_isName)(localName))
|
|
263
165
|
throw new DOMException_1.InvalidCharacterError();
|
|
264
166
|
if (this._type === "html")
|
|
265
167
|
localName = localName.toLowerCase();
|
|
266
|
-
|
|
168
|
+
let is = null;
|
|
267
169
|
if (options !== undefined) {
|
|
268
|
-
if (util_2.isString(options)) {
|
|
170
|
+
if ((0, util_2.isString)(options)) {
|
|
269
171
|
is = options;
|
|
270
172
|
}
|
|
271
173
|
else {
|
|
272
174
|
is = options.is;
|
|
273
175
|
}
|
|
274
176
|
}
|
|
275
|
-
|
|
177
|
+
const namespace = (this._type === "html" || this._contentType === "application/xhtml+xml") ?
|
|
276
178
|
infra_1.namespace.HTML : null;
|
|
277
|
-
return algorithm_1.element_createAnElement(this, localName, namespace, null, is, true);
|
|
278
|
-
}
|
|
179
|
+
return (0, algorithm_1.element_createAnElement)(this, localName, namespace, null, is, true);
|
|
180
|
+
}
|
|
279
181
|
/** @inheritdoc */
|
|
280
|
-
|
|
182
|
+
createElementNS(namespace, qualifiedName, options) {
|
|
281
183
|
/**
|
|
282
184
|
* The createElementNS(namespace, qualifiedName, options) method, when
|
|
283
185
|
* invoked, must return the result of running the internal createElementNS
|
|
284
186
|
* steps, given context object, namespace, qualifiedName, and options.
|
|
285
187
|
*/
|
|
286
|
-
return algorithm_1.document_internalCreateElementNS(this, namespace, qualifiedName, options);
|
|
287
|
-
}
|
|
188
|
+
return (0, algorithm_1.document_internalCreateElementNS)(this, namespace, qualifiedName, options);
|
|
189
|
+
}
|
|
288
190
|
/** @inheritdoc */
|
|
289
|
-
|
|
191
|
+
createDocumentFragment() {
|
|
290
192
|
/**
|
|
291
193
|
* The createDocumentFragment() method, when invoked, must return a new
|
|
292
194
|
* DocumentFragment node with its node document set to the context object.
|
|
293
195
|
*/
|
|
294
|
-
return algorithm_1.create_documentFragment(this);
|
|
295
|
-
}
|
|
196
|
+
return (0, algorithm_1.create_documentFragment)(this);
|
|
197
|
+
}
|
|
296
198
|
/** @inheritdoc */
|
|
297
|
-
|
|
199
|
+
createTextNode(data) {
|
|
298
200
|
/**
|
|
299
201
|
* The createTextNode(data) method, when invoked, must return a new Text
|
|
300
202
|
* node with its data set to data and node document set to the context object.
|
|
301
203
|
*/
|
|
302
|
-
return algorithm_1.create_text(this, data);
|
|
303
|
-
}
|
|
204
|
+
return (0, algorithm_1.create_text)(this, data);
|
|
205
|
+
}
|
|
304
206
|
/** @inheritdoc */
|
|
305
|
-
|
|
207
|
+
createCDATASection(data) {
|
|
306
208
|
/**
|
|
307
209
|
* 1. If context object is an HTML document, then throw a
|
|
308
210
|
* "NotSupportedError" DOMException.
|
|
@@ -315,18 +217,18 @@ var DocumentImpl = /** @class */ (function (_super) {
|
|
|
315
217
|
throw new DOMException_1.NotSupportedError();
|
|
316
218
|
if (data.indexOf(']]>') !== -1)
|
|
317
219
|
throw new DOMException_1.InvalidCharacterError();
|
|
318
|
-
return algorithm_1.create_cdataSection(this, data);
|
|
319
|
-
}
|
|
220
|
+
return (0, algorithm_1.create_cdataSection)(this, data);
|
|
221
|
+
}
|
|
320
222
|
/** @inheritdoc */
|
|
321
|
-
|
|
223
|
+
createComment(data) {
|
|
322
224
|
/**
|
|
323
225
|
* The createComment(data) method, when invoked, must return a new Comment
|
|
324
226
|
* node with its data set to data and node document set to the context object.
|
|
325
227
|
*/
|
|
326
|
-
return algorithm_1.create_comment(this, data);
|
|
327
|
-
}
|
|
228
|
+
return (0, algorithm_1.create_comment)(this, data);
|
|
229
|
+
}
|
|
328
230
|
/** @inheritdoc */
|
|
329
|
-
|
|
231
|
+
createProcessingInstruction(target, data) {
|
|
330
232
|
/**
|
|
331
233
|
* 1. If target does not match the Name production, then throw an
|
|
332
234
|
* "InvalidCharacterError" DOMException.
|
|
@@ -335,15 +237,14 @@ var DocumentImpl = /** @class */ (function (_super) {
|
|
|
335
237
|
* 3. Return a new ProcessingInstruction node, with target set to target,
|
|
336
238
|
* data set to data, and node document set to the context object.
|
|
337
239
|
*/
|
|
338
|
-
if (!algorithm_1.xml_isName(target))
|
|
240
|
+
if (!(0, algorithm_1.xml_isName)(target))
|
|
339
241
|
throw new DOMException_1.InvalidCharacterError();
|
|
340
242
|
if (data.indexOf("?>") !== -1)
|
|
341
243
|
throw new DOMException_1.InvalidCharacterError();
|
|
342
|
-
return algorithm_1.create_processingInstruction(this, target, data);
|
|
343
|
-
}
|
|
244
|
+
return (0, algorithm_1.create_processingInstruction)(this, target, data);
|
|
245
|
+
}
|
|
344
246
|
/** @inheritdoc */
|
|
345
|
-
|
|
346
|
-
if (deep === void 0) { deep = false; }
|
|
247
|
+
importNode(node, deep = false) {
|
|
347
248
|
/**
|
|
348
249
|
* 1. If node is a document or shadow root, then throw a "NotSupportedError" DOMException.
|
|
349
250
|
*/
|
|
@@ -352,10 +253,10 @@ var DocumentImpl = /** @class */ (function (_super) {
|
|
|
352
253
|
/**
|
|
353
254
|
* 2. Return a clone of node, with context object and the clone children flag set if deep is true.
|
|
354
255
|
*/
|
|
355
|
-
return algorithm_1.node_clone(node, this, deep);
|
|
356
|
-
}
|
|
256
|
+
return (0, algorithm_1.node_clone)(node, this, deep);
|
|
257
|
+
}
|
|
357
258
|
/** @inheritdoc */
|
|
358
|
-
|
|
259
|
+
adoptNode(node) {
|
|
359
260
|
/**
|
|
360
261
|
* 1. If node is a document, then throw a "NotSupportedError" DOMException.
|
|
361
262
|
*/
|
|
@@ -370,11 +271,11 @@ var DocumentImpl = /** @class */ (function (_super) {
|
|
|
370
271
|
* 3. Adopt node into the context object.
|
|
371
272
|
* 4. Return node.
|
|
372
273
|
*/
|
|
373
|
-
algorithm_1.document_adopt(node, this);
|
|
274
|
+
(0, algorithm_1.document_adopt)(node, this);
|
|
374
275
|
return node;
|
|
375
|
-
}
|
|
276
|
+
}
|
|
376
277
|
/** @inheritdoc */
|
|
377
|
-
|
|
278
|
+
createAttribute(localName) {
|
|
378
279
|
/**
|
|
379
280
|
* 1. If localName does not match the Name production in XML, then throw
|
|
380
281
|
* an "InvalidCharacterError" DOMException.
|
|
@@ -383,47 +284,45 @@ var DocumentImpl = /** @class */ (function (_super) {
|
|
|
383
284
|
* 3. Return a new attribute whose local name is localName and node document
|
|
384
285
|
* is context object.
|
|
385
286
|
*/
|
|
386
|
-
if (!algorithm_1.xml_isName(localName))
|
|
287
|
+
if (!(0, algorithm_1.xml_isName)(localName))
|
|
387
288
|
throw new DOMException_1.InvalidCharacterError();
|
|
388
289
|
if (this._type === "html") {
|
|
389
290
|
localName = localName.toLowerCase();
|
|
390
291
|
}
|
|
391
|
-
|
|
292
|
+
const attr = (0, algorithm_1.create_attr)(this, localName);
|
|
392
293
|
return attr;
|
|
393
|
-
}
|
|
294
|
+
}
|
|
394
295
|
/** @inheritdoc */
|
|
395
|
-
|
|
296
|
+
createAttributeNS(namespace, qualifiedName) {
|
|
396
297
|
/**
|
|
397
298
|
* 1. Let namespace, prefix, and localName be the result of passing
|
|
398
299
|
* namespace and qualifiedName to validate and extract.
|
|
399
300
|
* 2. Return a new attribute whose namespace is namespace, namespace prefix
|
|
400
301
|
* is prefix, local name is localName, and node document is context object.
|
|
401
302
|
*/
|
|
402
|
-
|
|
403
|
-
|
|
303
|
+
const [ns, prefix, localName] = (0, algorithm_1.namespace_validateAndExtract)(namespace, qualifiedName);
|
|
304
|
+
const attr = (0, algorithm_1.create_attr)(this, localName);
|
|
404
305
|
attr._namespace = ns;
|
|
405
306
|
attr._namespacePrefix = prefix;
|
|
406
307
|
return attr;
|
|
407
|
-
}
|
|
308
|
+
}
|
|
408
309
|
/** @inheritdoc */
|
|
409
|
-
|
|
410
|
-
return algorithm_1.event_createLegacyEvent(eventInterface);
|
|
411
|
-
}
|
|
310
|
+
createEvent(eventInterface) {
|
|
311
|
+
return (0, algorithm_1.event_createLegacyEvent)(eventInterface);
|
|
312
|
+
}
|
|
412
313
|
/** @inheritdoc */
|
|
413
|
-
|
|
314
|
+
createRange() {
|
|
414
315
|
/**
|
|
415
316
|
* The createRange() method, when invoked, must return a new live range
|
|
416
317
|
* with (context object, 0) as its start and end.
|
|
417
318
|
*/
|
|
418
|
-
|
|
319
|
+
const range = (0, algorithm_1.create_range)();
|
|
419
320
|
range._start = [this, 0];
|
|
420
321
|
range._end = [this, 0];
|
|
421
322
|
return range;
|
|
422
|
-
}
|
|
323
|
+
}
|
|
423
324
|
/** @inheritdoc */
|
|
424
|
-
|
|
425
|
-
if (whatToShow === void 0) { whatToShow = interfaces_1.WhatToShow.All; }
|
|
426
|
-
if (filter === void 0) { filter = null; }
|
|
325
|
+
createNodeIterator(root, whatToShow = interfaces_1.WhatToShow.All, filter = null) {
|
|
427
326
|
/**
|
|
428
327
|
* 1. Let iterator be a new NodeIterator object.
|
|
429
328
|
* 2. Set iterator’s root and iterator’s reference to root.
|
|
@@ -432,22 +331,20 @@ var DocumentImpl = /** @class */ (function (_super) {
|
|
|
432
331
|
* 5. Set iterator’s filter to filter.
|
|
433
332
|
* 6. Return iterator.
|
|
434
333
|
*/
|
|
435
|
-
|
|
334
|
+
const iterator = (0, algorithm_1.create_nodeIterator)(root, root, true);
|
|
436
335
|
iterator._whatToShow = whatToShow;
|
|
437
|
-
iterator._iteratorCollection = algorithm_1.create_nodeList(root);
|
|
438
|
-
if (util_2.isFunction(filter)) {
|
|
439
|
-
iterator._filter = algorithm_1.create_nodeFilter();
|
|
336
|
+
iterator._iteratorCollection = (0, algorithm_1.create_nodeList)(root);
|
|
337
|
+
if ((0, util_2.isFunction)(filter)) {
|
|
338
|
+
iterator._filter = (0, algorithm_1.create_nodeFilter)();
|
|
440
339
|
iterator._filter.acceptNode = filter;
|
|
441
340
|
}
|
|
442
341
|
else {
|
|
443
342
|
iterator._filter = filter;
|
|
444
343
|
}
|
|
445
344
|
return iterator;
|
|
446
|
-
}
|
|
345
|
+
}
|
|
447
346
|
/** @inheritdoc */
|
|
448
|
-
|
|
449
|
-
if (whatToShow === void 0) { whatToShow = interfaces_1.WhatToShow.All; }
|
|
450
|
-
if (filter === void 0) { filter = null; }
|
|
347
|
+
createTreeWalker(root, whatToShow = interfaces_1.WhatToShow.All, filter = null) {
|
|
451
348
|
/**
|
|
452
349
|
* 1. Let walker be a new TreeWalker object.
|
|
453
350
|
* 2. Set walker’s root and walker’s current to root.
|
|
@@ -455,23 +352,23 @@ var DocumentImpl = /** @class */ (function (_super) {
|
|
|
455
352
|
* 4. Set walker’s filter to filter.
|
|
456
353
|
* 5. Return walker.
|
|
457
354
|
*/
|
|
458
|
-
|
|
355
|
+
const walker = (0, algorithm_1.create_treeWalker)(root, root);
|
|
459
356
|
walker._whatToShow = whatToShow;
|
|
460
|
-
if (util_2.isFunction(filter)) {
|
|
461
|
-
walker._filter = algorithm_1.create_nodeFilter();
|
|
357
|
+
if ((0, util_2.isFunction)(filter)) {
|
|
358
|
+
walker._filter = (0, algorithm_1.create_nodeFilter)();
|
|
462
359
|
walker._filter.acceptNode = filter;
|
|
463
360
|
}
|
|
464
361
|
else {
|
|
465
362
|
walker._filter = filter;
|
|
466
363
|
}
|
|
467
364
|
return walker;
|
|
468
|
-
}
|
|
365
|
+
}
|
|
469
366
|
/**
|
|
470
367
|
* Gets the parent event target for the given event.
|
|
471
368
|
*
|
|
472
369
|
* @param event - an event
|
|
473
370
|
*/
|
|
474
|
-
|
|
371
|
+
_getTheParent(event) {
|
|
475
372
|
/**
|
|
476
373
|
* TODO: Implement realms
|
|
477
374
|
* A document’s get the parent algorithm, given an event, returns null if
|
|
@@ -484,62 +381,33 @@ var DocumentImpl = /** @class */ (function (_super) {
|
|
|
484
381
|
else {
|
|
485
382
|
return DOMImpl_1.dom.window;
|
|
486
383
|
}
|
|
487
|
-
}
|
|
384
|
+
}
|
|
488
385
|
// MIXIN: NonElementParentNode
|
|
489
386
|
/* istanbul ignore next */
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
// MIXIN: ParentNode
|
|
495
|
-
/* istanbul ignore next */
|
|
496
|
-
get: function () { throw new Error("Mixin: ParentNode not implemented."); },
|
|
497
|
-
enumerable: true,
|
|
498
|
-
configurable: true
|
|
499
|
-
});
|
|
500
|
-
Object.defineProperty(DocumentImpl.prototype, "firstElementChild", {
|
|
501
|
-
/* istanbul ignore next */
|
|
502
|
-
get: function () { throw new Error("Mixin: ParentNode not implemented."); },
|
|
503
|
-
enumerable: true,
|
|
504
|
-
configurable: true
|
|
505
|
-
});
|
|
506
|
-
Object.defineProperty(DocumentImpl.prototype, "lastElementChild", {
|
|
507
|
-
/* istanbul ignore next */
|
|
508
|
-
get: function () { throw new Error("Mixin: ParentNode not implemented."); },
|
|
509
|
-
enumerable: true,
|
|
510
|
-
configurable: true
|
|
511
|
-
});
|
|
512
|
-
Object.defineProperty(DocumentImpl.prototype, "childElementCount", {
|
|
513
|
-
/* istanbul ignore next */
|
|
514
|
-
get: function () { throw new Error("Mixin: ParentNode not implemented."); },
|
|
515
|
-
enumerable: true,
|
|
516
|
-
configurable: true
|
|
517
|
-
});
|
|
387
|
+
getElementById(elementId) { throw new Error("Mixin: NonElementParentNode not implemented."); }
|
|
388
|
+
// MIXIN: DocumentOrShadowRoot
|
|
389
|
+
// No elements
|
|
390
|
+
// MIXIN: ParentNode
|
|
518
391
|
/* istanbul ignore next */
|
|
519
|
-
|
|
520
|
-
var nodes = [];
|
|
521
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
522
|
-
nodes[_i] = arguments[_i];
|
|
523
|
-
}
|
|
524
|
-
throw new Error("Mixin: ParentNode not implemented.");
|
|
525
|
-
};
|
|
392
|
+
get children() { throw new Error("Mixin: ParentNode not implemented."); }
|
|
526
393
|
/* istanbul ignore next */
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
}
|
|
394
|
+
get firstElementChild() { throw new Error("Mixin: ParentNode not implemented."); }
|
|
395
|
+
/* istanbul ignore next */
|
|
396
|
+
get lastElementChild() { throw new Error("Mixin: ParentNode not implemented."); }
|
|
397
|
+
/* istanbul ignore next */
|
|
398
|
+
get childElementCount() { throw new Error("Mixin: ParentNode not implemented."); }
|
|
399
|
+
/* istanbul ignore next */
|
|
400
|
+
prepend(...nodes) { throw new Error("Mixin: ParentNode not implemented."); }
|
|
401
|
+
/* istanbul ignore next */
|
|
402
|
+
append(...nodes) { throw new Error("Mixin: ParentNode not implemented."); }
|
|
534
403
|
/* istanbul ignore next */
|
|
535
|
-
|
|
404
|
+
querySelector(selectors) { throw new Error("Mixin: ParentNode not implemented."); }
|
|
536
405
|
/* istanbul ignore next */
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
}(NodeImpl_1.NodeImpl));
|
|
406
|
+
querySelectorAll(selectors) { throw new Error("Mixin: ParentNode not implemented."); }
|
|
407
|
+
}
|
|
540
408
|
exports.DocumentImpl = DocumentImpl;
|
|
541
409
|
/**
|
|
542
410
|
* Initialize prototype properties
|
|
543
411
|
*/
|
|
544
|
-
WebIDLAlgorithm_1.idl_defineConst(DocumentImpl.prototype, "_nodeType", interfaces_1.NodeType.Document);
|
|
412
|
+
(0, WebIDLAlgorithm_1.idl_defineConst)(DocumentImpl.prototype, "_nodeType", interfaces_1.NodeType.Document);
|
|
545
413
|
//# sourceMappingURL=DocumentImpl.js.map
|