@schukai/monster 1.31.0 → 2.0.0
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/CHANGELOG +11 -0
- package/README.md +55 -58
- package/example/constraints/andoperator.mjs +17 -0
- package/example/constraints/invalid.mjs +6 -0
- package/example/constraints/isarray.mjs +11 -0
- package/example/constraints/isobject.mjs +12 -0
- package/example/constraints/oroperator.mjs +15 -0
- package/example/constraints/valid.mjs +6 -0
- package/example/data/buildmap.mjs +67 -0
- package/example/data/datasource.mjs +7 -0
- package/example/data/diff.mjs +39 -0
- package/example/data/pathfinder-1.mjs +23 -0
- package/example/data/pathfinder-2.mjs +19 -0
- package/example/data/pipe.mjs +14 -0
- package/example/data/storage/restapi.mjs +11 -0
- package/example/data/transformer.mjs +9 -0
- package/example/dom/customelement.mjs +13 -0
- package/example/dom/theme.mjs +5 -0
- package/example/dom/updater.mjs +23 -0
- package/example/i18n/formatter.mjs +10 -0
- package/example/i18n/providers/fetch.mjs +5 -0
- package/example/i18n/translations.mjs +20 -0
- package/example/types/basewithoptions.mjs +10 -0
- package/example/types/is-1.mjs +5 -0
- package/example/types/is-10.mjs +6 -0
- package/example/types/is-2.mjs +4 -0
- package/example/types/is-3.mjs +4 -0
- package/example/types/is-4.mjs +5 -0
- package/example/types/is-5.mjs +4 -0
- package/example/types/is-6.mjs +4 -0
- package/example/types/is-7.mjs +4 -0
- package/example/types/is-8.mjs +4 -0
- package/example/types/is-9.mjs +6 -0
- package/example/types/noderecursiveiterator.mjs +32 -0
- package/example/types/observer.mjs +9 -0
- package/example/types/proxyobserver.mjs +25 -0
- package/example/types/queue.mjs +20 -0
- package/example/types/tokenlist-1.mjs +4 -0
- package/example/types/tokenlist-2.mjs +7 -0
- package/example/types/tokenlist-3.mjs +5 -0
- package/example/types/tokenlist-4.mjs +5 -0
- package/example/types/tokenlist-5.mjs +5 -0
- package/example/types/typeof.mjs +9 -0
- package/example/types/version-1.mjs +6 -0
- package/example/types/version-2.mjs +3 -0
- package/example/util/comparator.mjs +10 -0
- package/example/util/deadmansswitch.mjs +9 -0
- package/example/util/processing.mjs +17 -0
- package/package.json +5 -59
- package/source/{constants.js → constants.mjs} +7 -10
- package/source/constraints/{abstract.js → abstract.mjs} +8 -9
- package/source/constraints/{abstractoperator.js → abstractoperator.mjs} +11 -8
- package/source/constraints/andoperator.mjs +38 -0
- package/source/constraints/invalid.mjs +38 -0
- package/source/constraints/isarray.mjs +41 -0
- package/source/constraints/isobject.mjs +41 -0
- package/source/constraints/{namespace.js → namespace.mjs} +3 -8
- package/source/constraints/{oroperator.js → oroperator.mjs} +10 -42
- package/source/constraints/valid.mjs +38 -0
- package/source/data/{buildmap.js → buildmap.mjs} +18 -104
- package/source/data/{buildtree.js → buildtree.mjs} +11 -31
- package/source/data/datasource/{namespace.js → namespace.mjs} +1 -9
- package/source/data/datasource/restapi/namespace.mjs +8 -0
- package/source/data/datasource/restapi/{writeerror.js → writeerror.mjs} +8 -9
- package/source/data/datasource/{restapi.js → restapi.mjs} +15 -45
- package/source/data/datasource/storage/localstorage.mjs +45 -0
- package/source/data/datasource/storage/{namespace.js → namespace.mjs} +1 -9
- package/source/data/datasource/storage/sessionstorage.mjs +45 -0
- package/source/data/datasource/{storage.js → storage.mjs} +12 -35
- package/source/data/{datasource.js → datasource.mjs} +17 -45
- package/source/data/{diff.js → diff.mjs} +10 -69
- package/source/data/{extend.js → extend.mjs} +10 -28
- package/source/data/{namespace.js → namespace.mjs} +2 -8
- package/source/data/{pathfinder.js → pathfinder.mjs} +18 -77
- package/source/data/{pipe.js → pipe.mjs} +14 -46
- package/source/data/{transformer.js → transformer.mjs} +18 -43
- package/source/dom/{assembler.js → assembler.mjs} +12 -28
- package/source/dom/{attributes.js → attributes.mjs} +42 -253
- package/source/dom/{constants.js → constants.mjs} +110 -61
- package/source/dom/{customcontrol.js → customcontrol.mjs} +10 -17
- package/source/dom/{customelement.js → customelement.mjs} +28 -52
- package/source/dom/{events.js → events.mjs} +15 -64
- package/source/dom/{focusmanager.js → focusmanager.mjs} +13 -34
- package/source/dom/{locale.js → locale.mjs} +11 -26
- package/source/dom/{namespace.js → namespace.mjs} +1 -8
- package/source/dom/{ready.js → ready.mjs} +12 -30
- package/source/dom/resource/{data.js → data.mjs} +11 -31
- package/source/dom/resource/link/namespace.mjs +10 -0
- package/source/dom/resource/link/stylesheet.mjs +35 -0
- package/source/dom/resource/{link.js → link.mjs} +9 -29
- package/source/dom/resource/namespace.mjs +8 -0
- package/source/dom/resource/{script.js → script.mjs} +9 -29
- package/source/dom/{resource.js → resource.mjs} +19 -39
- package/source/dom/{resourcemanager.js → resourcemanager.mjs} +17 -35
- package/source/dom/{template.js → template.mjs} +18 -43
- package/source/dom/{theme.js → theme.mjs} +14 -36
- package/source/dom/{updater.js → updater.mjs} +34 -68
- package/source/dom/{util.js → util.mjs} +17 -66
- package/source/dom/worker/{factory.js → factory.mjs} +13 -34
- package/source/dom/worker/namespace.mjs +8 -0
- package/source/i18n/{formatter.js → formatter.mjs} +14 -45
- package/source/i18n/{locale.js → locale.mjs} +15 -30
- package/source/i18n/{namespace.js → namespace.mjs} +1 -9
- package/source/i18n/provider.mjs +40 -0
- package/source/i18n/providers/{fetch.js → fetch.mjs} +18 -43
- package/source/i18n/providers/namespace.mjs +8 -0
- package/source/i18n/{translations.js → translations.mjs} +12 -52
- package/source/logging/handler/console.mjs +50 -0
- package/source/logging/handler/namespace.mjs +6 -0
- package/source/logging/{handler.js → handler.mjs} +13 -30
- package/source/logging/logentry.mjs +51 -0
- package/source/logging/{logger.js → logger.mjs} +12 -28
- package/source/logging/{namespace.js → namespace.mjs} +1 -9
- package/source/math/{namespace.js → namespace.mjs} +1 -9
- package/source/math/{random.js → random.mjs} +8 -34
- package/source/monster.mjs +114 -0
- package/source/text/{formatter.js → formatter.mjs} +17 -33
- package/source/text/{namespace.js → namespace.mjs} +1 -9
- package/source/types/base.mjs +31 -0
- package/source/types/{basewithoptions.js → basewithoptions.mjs} +17 -46
- package/source/types/{binary.js → binary.mjs} +10 -42
- package/source/types/{dataurl.js → dataurl.mjs} +12 -46
- package/source/types/{global.js → global.mjs} +20 -12
- package/source/types/{id.js → id.mjs} +10 -27
- package/source/types/is.mjs +225 -0
- package/source/types/{mediatype.js → mediatype.mjs} +13 -29
- package/source/types/{namespace.js → namespace.mjs} +1 -8
- package/source/types/{node.js → node.mjs} +11 -28
- package/source/types/{nodelist.js → nodelist.mjs} +17 -32
- package/source/types/{noderecursiveiterator.js → noderecursiveiterator.mjs} +14 -65
- package/source/types/{observer.js → observer.mjs} +15 -42
- package/source/types/{observerlist.js → observerlist.mjs} +12 -29
- package/source/types/{proxyobserver.js → proxyobserver.mjs} +19 -62
- package/source/types/{queue.js → queue.mjs} +10 -47
- package/source/types/randomid.mjs +45 -0
- package/source/types/regex.mjs +27 -0
- package/source/types/{stack.js → stack.mjs} +8 -24
- package/source/types/{tokenlist.js → tokenlist.mjs} +20 -64
- package/source/types/typeof.mjs +37 -0
- package/source/types/{uniquequeue.js → uniquequeue.mjs} +11 -27
- package/source/types/{uuid.js → uuid.mjs} +15 -33
- package/source/types/{validate.js → validate.mjs} +38 -155
- package/source/types/{version.js → version.mjs} +19 -62
- package/source/util/{clone.js → clone.mjs} +10 -28
- package/source/util/{comparator.js → comparator.mjs} +13 -43
- package/source/util/{deadmansswitch.js → deadmansswitch.mjs} +15 -40
- package/source/util/freeze.mjs +39 -0
- package/source/util/{namespace.js → namespace.mjs} +1 -9
- package/source/util/{processing.js → processing.mjs} +13 -51
- package/source/util/{trimspaces.js → trimspaces.mjs} +14 -21
- package/test/cases/constraint/{andoperator.js → andoperator.mjs} +3 -3
- package/test/cases/constraint/{invalid.js → invalid.mjs} +1 -1
- package/test/cases/constraint/{isarray.js → isarray.mjs} +1 -1
- package/test/cases/constraint/{isobject.js → isobject.mjs} +1 -1
- package/test/cases/constraint/{oroperator.js → oroperator.mjs} +3 -3
- package/test/cases/constraint/{valid.js → valid.mjs} +1 -1
- package/test/cases/data/{buildmap.js → buildmap.mjs} +1 -1
- package/test/cases/data/{buildtree.js → buildtree.mjs} +2 -2
- package/test/cases/data/datasource/{restapi.js → restapi.mjs} +5 -5
- package/test/cases/data/datasource/storage/{localstorage.js → localstorage.mjs} +5 -5
- package/test/cases/data/datasource/storage/{sessionstorage.js → sessionstorage.mjs} +5 -5
- package/test/cases/data/{datasource.js → datasource.mjs} +1 -1
- package/test/cases/data/{diff.js → diff.mjs} +2 -2
- package/test/cases/data/{extend.js → extend.mjs} +1 -1
- package/test/cases/data/{pathfinder.js → pathfinder.mjs} +1 -1
- package/test/cases/data/{pipe.js → pipe.mjs} +19 -5
- package/test/cases/data/{transformer.js → transformer.mjs} +14 -10
- package/test/cases/dom/{assembler.js → assembler.mjs} +2 -2
- package/test/cases/dom/{attributes.js → attributes.mjs} +2 -2
- package/test/cases/dom/{customcontrol.js → customcontrol.mjs} +6 -6
- package/test/cases/dom/{customelement.js → customelement.mjs} +6 -6
- package/test/cases/dom/{events.js → events.mjs} +2 -2
- package/test/cases/dom/{focusmanager.js → focusmanager.mjs} +3 -3
- package/test/cases/dom/{locale.js → locale.mjs} +2 -2
- package/test/cases/dom/{ready.js → ready.mjs} +2 -2
- package/test/cases/dom/resource/{data.js → data.mjs} +9 -9
- package/test/cases/dom/resource/link/{stylesheet.js → stylesheet.mjs} +6 -6
- package/test/cases/dom/resource/{link.js → link.mjs} +6 -6
- package/test/cases/dom/resource/{script.js → script.mjs} +6 -6
- package/test/cases/dom/{resourcemanager.js → resourcemanager.mjs} +6 -6
- package/test/cases/dom/{template.js → template.mjs} +3 -3
- package/test/cases/dom/{theme.js → theme.mjs} +3 -3
- package/test/cases/dom/{updater.js → updater.mjs} +6 -6
- package/test/cases/dom/{util.js → util.mjs} +2 -2
- package/test/cases/dom/worker/{factory.js → factory.mjs} +4 -4
- package/test/cases/i18n/{formatter.js → formatter.mjs} +2 -2
- package/test/cases/i18n/{locale.js → locale.mjs} +1 -1
- package/test/cases/i18n/{provider.js → provider.mjs} +1 -1
- package/test/cases/i18n/providers/{fetch.js → fetch.mjs} +3 -3
- package/test/cases/i18n/{translations.js → translations.mjs} +2 -2
- package/test/cases/logging/handler/{console.js → console.mjs} +3 -3
- package/test/cases/logging/{handler.js → handler.mjs} +3 -3
- package/test/cases/logging/{logentry.js → logentry.mjs} +1 -1
- package/test/cases/logging/{logger.js → logger.mjs} +1 -1
- package/test/cases/math/random.mjs +101 -0
- package/test/cases/monster.mjs +20 -0
- package/test/cases/text/{formatter.js → formatter.mjs} +1 -1
- package/test/cases/types/{base.js → base.mjs} +1 -1
- package/test/cases/types/{basewithoptions.js → basewithoptions.mjs} +1 -1
- package/test/cases/types/{binary.js → binary.mjs} +1 -1
- package/test/cases/types/{dataurl.js → dataurl.mjs} +1 -1
- package/test/cases/types/{global.js → global.mjs} +1 -1
- package/test/cases/types/{id.js → id.mjs} +17 -6
- package/test/cases/types/{is.js → is.mjs} +20 -8
- package/test/cases/types/{mediatype.js → mediatype.mjs} +1 -1
- package/test/cases/types/{node.js → node.mjs} +3 -3
- package/test/cases/types/{nodelist.js → nodelist.mjs} +2 -2
- package/test/cases/types/{noderecursiveiterator.js → noderecursiveiterator.mjs} +3 -3
- package/test/cases/types/{observer.js → observer.mjs} +1 -1
- package/test/cases/types/{observerlist.js → observerlist.mjs} +2 -2
- package/test/cases/types/{proxyobserver.js → proxyobserver.mjs} +4 -4
- package/test/cases/types/{queue.js → queue.mjs} +1 -1
- package/test/cases/types/randomid.mjs +39 -0
- package/test/cases/types/regex.mjs +46 -0
- package/test/cases/types/{stack.js → stack.mjs} +1 -1
- package/test/cases/types/{tokenlist.js → tokenlist.mjs} +1 -1
- package/test/cases/types/{typeof.js → typeof.mjs} +3 -4
- package/test/cases/types/{uniquequeue.js → uniquequeue.mjs} +1 -1
- package/test/cases/types/{uuid.js → uuid.mjs} +30 -10
- package/test/cases/types/{validate.js → validate.mjs} +3 -4
- package/test/cases/types/{version.js → version.mjs} +1 -2
- package/test/cases/util/{clone.js → clone.mjs} +1 -1
- package/test/cases/util/{comparator.js → comparator.mjs} +1 -1
- package/test/cases/util/{deadmansswitch.js → deadmansswitch.mjs} +1 -1
- package/test/cases/util/{freeze.js → freeze.mjs} +1 -1
- package/test/cases/util/{processing.js → processing.mjs} +1 -1
- package/test/cases/util/{trimspaces.js → trimspaces.mjs} +1 -1
- package/test/util/{chai-dom.js → chai-dom.mjs} +0 -0
- package/test/util/{cleanupdom.js → cleanupdom.mjs} +0 -0
- package/test/util/{jsdom.js → jsdom.mjs} +2 -2
- package/test/util/{localstorage.js → localstorage.mjs} +0 -0
- package/test/web/import.js +77 -78
- package/test/web/prepare.js +0 -8
- package/test/web/test.html +5 -4
- package/test/web/tests.js +25731 -587
- package/dist/modules/constants.js +0 -2
- package/dist/modules/constraints/abstract.js +0 -2
- package/dist/modules/constraints/abstractoperator.js +0 -2
- package/dist/modules/constraints/andoperator.js +0 -2
- package/dist/modules/constraints/invalid.js +0 -2
- package/dist/modules/constraints/isarray.js +0 -2
- package/dist/modules/constraints/isobject.js +0 -2
- package/dist/modules/constraints/namespace.js +0 -2
- package/dist/modules/constraints/oroperator.js +0 -2
- package/dist/modules/constraints/valid.js +0 -2
- package/dist/modules/data/buildmap.js +0 -2
- package/dist/modules/data/buildtree.js +0 -2
- package/dist/modules/data/datasource/namespace.js +0 -2
- package/dist/modules/data/datasource/restapi/writeerror.js +0 -2
- package/dist/modules/data/datasource/restapi.js +0 -2
- package/dist/modules/data/datasource/storage/localstorage.js +0 -2
- package/dist/modules/data/datasource/storage/namespace.js +0 -2
- package/dist/modules/data/datasource/storage/sessionstorage.js +0 -2
- package/dist/modules/data/datasource/storage.js +0 -2
- package/dist/modules/data/datasource.js +0 -2
- package/dist/modules/data/diff.js +0 -2
- package/dist/modules/data/extend.js +0 -2
- package/dist/modules/data/namespace.js +0 -2
- package/dist/modules/data/pathfinder.js +0 -2
- package/dist/modules/data/pipe.js +0 -2
- package/dist/modules/data/transformer.js +0 -2
- package/dist/modules/dom/assembler.js +0 -2
- package/dist/modules/dom/attributes.js +0 -2
- package/dist/modules/dom/constants.js +0 -2
- package/dist/modules/dom/customcontrol.js +0 -2
- package/dist/modules/dom/customelement.js +0 -2
- package/dist/modules/dom/events.js +0 -2
- package/dist/modules/dom/focusmanager.js +0 -2
- package/dist/modules/dom/locale.js +0 -2
- package/dist/modules/dom/namespace.js +0 -2
- package/dist/modules/dom/ready.js +0 -2
- package/dist/modules/dom/resource/data.js +0 -2
- package/dist/modules/dom/resource/link/stylesheet.js +0 -2
- package/dist/modules/dom/resource/link.js +0 -2
- package/dist/modules/dom/resource/script.js +0 -2
- package/dist/modules/dom/resource.js +0 -2
- package/dist/modules/dom/resourcemanager.js +0 -2
- package/dist/modules/dom/template.js +0 -2
- package/dist/modules/dom/theme.js +0 -2
- package/dist/modules/dom/updater.js +0 -2
- package/dist/modules/dom/util.js +0 -2
- package/dist/modules/dom/worker/factory.js +0 -2
- package/dist/modules/i18n/formatter.js +0 -2
- package/dist/modules/i18n/locale.js +0 -2
- package/dist/modules/i18n/namespace.js +0 -2
- package/dist/modules/i18n/provider.js +0 -2
- package/dist/modules/i18n/providers/fetch.js +0 -2
- package/dist/modules/i18n/providers/namespace.js +0 -2
- package/dist/modules/i18n/translations.js +0 -2
- package/dist/modules/logging/handler/console.js +0 -2
- package/dist/modules/logging/handler/namespace.js +0 -2
- package/dist/modules/logging/handler.js +0 -2
- package/dist/modules/logging/logentry.js +0 -2
- package/dist/modules/logging/logger.js +0 -2
- package/dist/modules/logging/namespace.js +0 -2
- package/dist/modules/math/namespace.js +0 -2
- package/dist/modules/math/random.js +0 -2
- package/dist/modules/monster.js +0 -2
- package/dist/modules/namespace.js +0 -2
- package/dist/modules/text/formatter.js +0 -2
- package/dist/modules/text/namespace.js +0 -2
- package/dist/modules/types/base.js +0 -2
- package/dist/modules/types/basewithoptions.js +0 -2
- package/dist/modules/types/binary.js +0 -2
- package/dist/modules/types/dataurl.js +0 -2
- package/dist/modules/types/global.js +0 -2
- package/dist/modules/types/id.js +0 -2
- package/dist/modules/types/is.js +0 -2
- package/dist/modules/types/mediatype.js +0 -2
- package/dist/modules/types/namespace.js +0 -2
- package/dist/modules/types/node.js +0 -2
- package/dist/modules/types/nodelist.js +0 -2
- package/dist/modules/types/noderecursiveiterator.js +0 -2
- package/dist/modules/types/observer.js +0 -2
- package/dist/modules/types/observerlist.js +0 -2
- package/dist/modules/types/proxyobserver.js +0 -2
- package/dist/modules/types/queue.js +0 -2
- package/dist/modules/types/randomid.js +0 -2
- package/dist/modules/types/regex.js +0 -2
- package/dist/modules/types/stack.js +0 -2
- package/dist/modules/types/tokenlist.js +0 -2
- package/dist/modules/types/typeof.js +0 -2
- package/dist/modules/types/uniquequeue.js +0 -2
- package/dist/modules/types/uuid.js +0 -2
- package/dist/modules/types/validate.js +0 -2
- package/dist/modules/types/version.js +0 -2
- package/dist/modules/util/clone.js +0 -2
- package/dist/modules/util/comparator.js +0 -2
- package/dist/modules/util/deadmansswitch.js +0 -2
- package/dist/modules/util/freeze.js +0 -2
- package/dist/modules/util/namespace.js +0 -2
- package/dist/modules/util/processing.js +0 -2
- package/dist/modules/util/trimspaces.js +0 -2
- package/dist/monster.dev.js +0 -15490
- package/dist/monster.dev.js.map +0 -1
- package/dist/monster.js +0 -2
- package/source/constraints/andoperator.js +0 -71
- package/source/constraints/invalid.js +0 -63
- package/source/constraints/isarray.js +0 -71
- package/source/constraints/isobject.js +0 -72
- package/source/constraints/valid.js +0 -63
- package/source/data/datasource/storage/localstorage.js +0 -64
- package/source/data/datasource/storage/sessionstorage.js +0 -61
- package/source/dom/resource/link/stylesheet.js +0 -54
- package/source/i18n/provider.js +0 -58
- package/source/i18n/providers/namespace.js +0 -16
- package/source/logging/handler/console.js +0 -66
- package/source/logging/handler/namespace.js +0 -14
- package/source/logging/logentry.js +0 -68
- package/source/monster.js +0 -80
- package/source/namespace.js +0 -171
- package/source/types/base.js +0 -50
- package/source/types/is.js +0 -429
- package/source/types/package.d.ts +0 -1
- package/source/types/randomid.js +0 -60
- package/source/types/regex.js +0 -49
- package/source/types/typeof.js +0 -63
- package/source/util/freeze.js +0 -57
- package/test/cases/math/random.js +0 -82
- package/test/cases/monster.js +0 -23
- package/test/cases/namespace.js +0 -93
- package/test/cases/types/randomid.js +0 -24
- package/test/cases/types/regex.js +0 -32
- package/test/web/monster-dev.html +0 -22
- package/test/web/monster.html +0 -21
|
@@ -1,11 +1,67 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
import {Monster} from '../namespace.js';
|
|
4
1
|
/**
|
|
5
|
-
*
|
|
2
|
+
* Copyright schukai GmbH and contributors 2022. All Rights Reserved.
|
|
3
|
+
* Node module: @schukai/monster
|
|
4
|
+
* This file is licensed under the AGPLv3 License.
|
|
5
|
+
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
|
|
9
|
+
export {
|
|
10
|
+
DEFAULT_THEME,
|
|
11
|
+
ATTRIBUTE_PREFIX,
|
|
12
|
+
ATTRIBUTE_OPTIONS,
|
|
13
|
+
ATTRIBUTE_OPTIONS_SELECTOR,
|
|
14
|
+
ATTRIBUTE_THEME_PREFIX,
|
|
15
|
+
ATTRIBUTE_THEME_NAME,
|
|
16
|
+
ATTRIBUTE_UPDATER_ATTRIBUTES,
|
|
17
|
+
ATTRIBUTE_UPDATER_SELECT_THIS,
|
|
18
|
+
ATTRIBUTE_UPDATER_REPLACE,
|
|
19
|
+
ATTRIBUTE_UPDATER_INSERT,
|
|
20
|
+
ATTRIBUTE_UPDATER_INSERT_REFERENCE,
|
|
21
|
+
ATTRIBUTE_UPDATER_REMOVE,
|
|
22
|
+
ATTRIBUTE_UPDATER_BIND,
|
|
23
|
+
ATTRIBUTE_TEMPLATE_PREFIX,
|
|
24
|
+
ATTRIBUTE_ROLE,
|
|
25
|
+
ATTRIBUTE_DISABLED,
|
|
26
|
+
ATTRIBUTE_VALUE,
|
|
27
|
+
ATTRIBUTE_OBJECTLINK,
|
|
28
|
+
ATTRIBUTE_ERRORMESSAGE,
|
|
29
|
+
TAG_SCRIPT,
|
|
30
|
+
TAG_STYLE,
|
|
31
|
+
TAG_LINK,
|
|
32
|
+
ATTRIBUTE_ID,
|
|
33
|
+
ATTRIBUTE_CLASS,
|
|
34
|
+
ATTRIBUTE_TITLE,
|
|
35
|
+
ATTRIBUTE_SRC,
|
|
36
|
+
ATTRIBUTE_HREF,
|
|
37
|
+
ATTRIBUTE_TYPE,
|
|
38
|
+
ATTRIBUTE_NONCE,
|
|
39
|
+
ATTRIBUTE_TRANSLATE,
|
|
40
|
+
ATTRIBUTE_TABINDEX,
|
|
41
|
+
ATTRIBUTE_SPELLCHECK,
|
|
42
|
+
ATTRIBUTE_SLOT,
|
|
43
|
+
ATTRIBUTE_PART,
|
|
44
|
+
ATTRIBUTE_LANG,
|
|
45
|
+
ATTRIBUTE_ITEMTYPE,
|
|
46
|
+
ATTRIBUTE_ITEMSCOPE,
|
|
47
|
+
ATTRIBUTE_ITEMREF,
|
|
48
|
+
ATTRIBUTE_ITEMID,
|
|
49
|
+
ATTRIBUTE_ITEMPROP,
|
|
50
|
+
ATTRIBUTE_IS,
|
|
51
|
+
ATTRIBUTE_INPUTMODE,
|
|
52
|
+
ATTRIBUTE_ACCESSKEY,
|
|
53
|
+
ATTRIBUTE_AUTOCAPITALIZE,
|
|
54
|
+
ATTRIBUTE_AUTOFOCUS,
|
|
55
|
+
ATTRIBUTE_CONTENTEDITABLE,
|
|
56
|
+
ATTRIBUTE_DIR,
|
|
57
|
+
ATTRIBUTE_DRAGGABLE,
|
|
58
|
+
ATTRIBUTE_ENTERKEYHINT,
|
|
59
|
+
ATTRIBUTE_EXPORTPARTS,
|
|
60
|
+
ATTRIBUTE_HIDDEN,
|
|
61
|
+
objectUpdaterLinkSymbol,
|
|
62
|
+
|
|
63
|
+
}
|
|
64
|
+
|
|
9
65
|
/**
|
|
10
66
|
* default theme
|
|
11
67
|
* @memberOf Monster.DOM
|
|
@@ -15,6 +71,7 @@ const DEFAULT_THEME = 'monster';
|
|
|
15
71
|
|
|
16
72
|
/**
|
|
17
73
|
* @memberOf Monster.DOM
|
|
74
|
+
* @license AGPLv3
|
|
18
75
|
* @since 1.8.0
|
|
19
76
|
* @type {string}
|
|
20
77
|
*/
|
|
@@ -24,6 +81,7 @@ const ATTRIBUTE_PREFIX = 'data-monster-';
|
|
|
24
81
|
* This is the name of the attribute to pass options to a control
|
|
25
82
|
*
|
|
26
83
|
* @memberOf Monster.DOM
|
|
84
|
+
* @license AGPLv3
|
|
27
85
|
* @since 1.8.0
|
|
28
86
|
* @type {string}
|
|
29
87
|
*/
|
|
@@ -33,6 +91,7 @@ const ATTRIBUTE_OPTIONS = ATTRIBUTE_PREFIX + 'options';
|
|
|
33
91
|
* This is the name of the attribute to pass options to a control
|
|
34
92
|
*
|
|
35
93
|
* @memberOf Monster.DOM
|
|
94
|
+
* @license AGPLv3
|
|
36
95
|
* @since 1.30.0
|
|
37
96
|
* @type {string}
|
|
38
97
|
*/
|
|
@@ -41,6 +100,7 @@ const ATTRIBUTE_OPTIONS_SELECTOR = ATTRIBUTE_PREFIX + 'options-selector';
|
|
|
41
100
|
/**
|
|
42
101
|
* @memberOf Monster.DOM
|
|
43
102
|
* @type {string}
|
|
103
|
+
* @license AGPLv3
|
|
44
104
|
* @since 1.8.0
|
|
45
105
|
*/
|
|
46
106
|
const ATTRIBUTE_THEME_PREFIX = ATTRIBUTE_PREFIX + 'theme-';
|
|
@@ -54,6 +114,7 @@ const ATTRIBUTE_THEME_NAME = ATTRIBUTE_THEME_PREFIX + 'name';
|
|
|
54
114
|
/**
|
|
55
115
|
* @memberOf Monster.DOM
|
|
56
116
|
* @type {string}
|
|
117
|
+
* @license AGPLv3
|
|
57
118
|
* @since 1.8.0
|
|
58
119
|
*/
|
|
59
120
|
const ATTRIBUTE_UPDATER_ATTRIBUTES = ATTRIBUTE_PREFIX + 'attributes';
|
|
@@ -61,6 +122,7 @@ const ATTRIBUTE_UPDATER_ATTRIBUTES = ATTRIBUTE_PREFIX + 'attributes';
|
|
|
61
122
|
/**
|
|
62
123
|
* @memberOf Monster.DOM
|
|
63
124
|
* @type {string}
|
|
125
|
+
* @license AGPLv3
|
|
64
126
|
* @since 1.27.1
|
|
65
127
|
*/
|
|
66
128
|
const ATTRIBUTE_UPDATER_SELECT_THIS = ATTRIBUTE_PREFIX + 'select-this';
|
|
@@ -68,6 +130,7 @@ const ATTRIBUTE_UPDATER_SELECT_THIS = ATTRIBUTE_PREFIX + 'select-this';
|
|
|
68
130
|
/**
|
|
69
131
|
* @memberOf Monster.DOM
|
|
70
132
|
* @type {string}
|
|
133
|
+
* @license AGPLv3
|
|
71
134
|
* @since 1.8.0
|
|
72
135
|
*/
|
|
73
136
|
const ATTRIBUTE_UPDATER_REPLACE = ATTRIBUTE_PREFIX + 'replace';
|
|
@@ -75,6 +138,7 @@ const ATTRIBUTE_UPDATER_REPLACE = ATTRIBUTE_PREFIX + 'replace';
|
|
|
75
138
|
/**
|
|
76
139
|
* @memberOf Monster.DOM
|
|
77
140
|
* @type {string}
|
|
141
|
+
* @license AGPLv3
|
|
78
142
|
* @since 1.8.0
|
|
79
143
|
*/
|
|
80
144
|
const ATTRIBUTE_UPDATER_INSERT = ATTRIBUTE_PREFIX + 'insert';
|
|
@@ -82,6 +146,7 @@ const ATTRIBUTE_UPDATER_INSERT = ATTRIBUTE_PREFIX + 'insert';
|
|
|
82
146
|
/**
|
|
83
147
|
* @memberOf Monster.DOM
|
|
84
148
|
* @type {string}
|
|
149
|
+
* @license AGPLv3
|
|
85
150
|
* @since 1.8.0
|
|
86
151
|
*/
|
|
87
152
|
const ATTRIBUTE_UPDATER_INSERT_REFERENCE = ATTRIBUTE_PREFIX + 'insert-reference';
|
|
@@ -89,6 +154,7 @@ const ATTRIBUTE_UPDATER_INSERT_REFERENCE = ATTRIBUTE_PREFIX + 'insert-reference'
|
|
|
89
154
|
/**
|
|
90
155
|
* @memberOf Monster.DOM
|
|
91
156
|
* @type {string}
|
|
157
|
+
* @license AGPLv3
|
|
92
158
|
* @since 1.8.0
|
|
93
159
|
*/
|
|
94
160
|
const ATTRIBUTE_UPDATER_REMOVE = ATTRIBUTE_PREFIX + 'remove';
|
|
@@ -96,6 +162,7 @@ const ATTRIBUTE_UPDATER_REMOVE = ATTRIBUTE_PREFIX + 'remove';
|
|
|
96
162
|
/**
|
|
97
163
|
* @memberOf Monster.DOM
|
|
98
164
|
* @type {string}
|
|
165
|
+
* @license AGPLv3
|
|
99
166
|
* @since 1.9.0
|
|
100
167
|
*/
|
|
101
168
|
const ATTRIBUTE_UPDATER_BIND = ATTRIBUTE_PREFIX + 'bind';
|
|
@@ -103,6 +170,7 @@ const ATTRIBUTE_UPDATER_BIND = ATTRIBUTE_PREFIX + 'bind';
|
|
|
103
170
|
/**
|
|
104
171
|
* @memberOf Monster.DOM
|
|
105
172
|
* @type {string}
|
|
173
|
+
* @license AGPLv3
|
|
106
174
|
* @since 1.27.0
|
|
107
175
|
*/
|
|
108
176
|
const ATTRIBUTE_TEMPLATE_PREFIX = ATTRIBUTE_PREFIX + 'template-prefix';
|
|
@@ -110,6 +178,7 @@ const ATTRIBUTE_TEMPLATE_PREFIX = ATTRIBUTE_PREFIX + 'template-prefix';
|
|
|
110
178
|
/**
|
|
111
179
|
* @memberOf Monster.DOM
|
|
112
180
|
* @type {string}
|
|
181
|
+
* @license AGPLv3
|
|
113
182
|
* @since 1.14.0
|
|
114
183
|
*/
|
|
115
184
|
const ATTRIBUTE_ROLE = ATTRIBUTE_PREFIX + 'role';
|
|
@@ -117,6 +186,7 @@ const ATTRIBUTE_ROLE = ATTRIBUTE_PREFIX + 'role';
|
|
|
117
186
|
/**
|
|
118
187
|
* @memberOf Monster.DOM
|
|
119
188
|
* @type {string}
|
|
189
|
+
* @license AGPLv3
|
|
120
190
|
* @since 1.24.0
|
|
121
191
|
*/
|
|
122
192
|
const ATTRIBUTE_DISABLED = 'disabled';
|
|
@@ -124,6 +194,7 @@ const ATTRIBUTE_DISABLED = 'disabled';
|
|
|
124
194
|
/**
|
|
125
195
|
* @memberOf Monster.DOM
|
|
126
196
|
* @type {string}
|
|
197
|
+
* @license AGPLv3
|
|
127
198
|
* @since 1.24.0
|
|
128
199
|
*/
|
|
129
200
|
const ATTRIBUTE_VALUE = 'value';
|
|
@@ -131,6 +202,7 @@ const ATTRIBUTE_VALUE = 'value';
|
|
|
131
202
|
/**
|
|
132
203
|
* @memberOf Monster.DOM
|
|
133
204
|
* @type {string}
|
|
205
|
+
* @license AGPLv3
|
|
134
206
|
* @since 1.9.0
|
|
135
207
|
*/
|
|
136
208
|
const ATTRIBUTE_OBJECTLINK = ATTRIBUTE_PREFIX + 'objectlink';
|
|
@@ -138,6 +210,7 @@ const ATTRIBUTE_OBJECTLINK = ATTRIBUTE_PREFIX + 'objectlink';
|
|
|
138
210
|
/**
|
|
139
211
|
* @memberOf Monster.DOM
|
|
140
212
|
* @type {string}
|
|
213
|
+
* @license AGPLv3
|
|
141
214
|
* @since 1.24.0
|
|
142
215
|
*/
|
|
143
216
|
const ATTRIBUTE_ERRORMESSAGE = ATTRIBUTE_PREFIX + 'error';
|
|
@@ -145,6 +218,7 @@ const ATTRIBUTE_ERRORMESSAGE = ATTRIBUTE_PREFIX + 'error';
|
|
|
145
218
|
/**
|
|
146
219
|
* @memberOf Monster.DOM
|
|
147
220
|
* @type {symbol}
|
|
221
|
+
* @license AGPLv3
|
|
148
222
|
* @since 1.24.0
|
|
149
223
|
*/
|
|
150
224
|
const objectUpdaterLinkSymbol = Symbol('monsterUpdater');
|
|
@@ -152,6 +226,7 @@ const objectUpdaterLinkSymbol = Symbol('monsterUpdater');
|
|
|
152
226
|
/**
|
|
153
227
|
* @memberOf Monster.DOM
|
|
154
228
|
* @type {string}
|
|
229
|
+
* @license AGPLv3
|
|
155
230
|
* @since 1.25.0
|
|
156
231
|
*/
|
|
157
232
|
const TAG_SCRIPT = 'script';
|
|
@@ -159,6 +234,7 @@ const TAG_SCRIPT = 'script';
|
|
|
159
234
|
/**
|
|
160
235
|
* @memberOf Monster.DOM
|
|
161
236
|
* @type {string}
|
|
237
|
+
* @license AGPLv3
|
|
162
238
|
* @since 1.25.0
|
|
163
239
|
*/
|
|
164
240
|
const TAG_STYLE = 'style';
|
|
@@ -166,6 +242,7 @@ const TAG_STYLE = 'style';
|
|
|
166
242
|
/**
|
|
167
243
|
* @memberOf Monster.DOM
|
|
168
244
|
* @type {string}
|
|
245
|
+
* @license AGPLv3
|
|
169
246
|
* @since 1.25.0
|
|
170
247
|
*/
|
|
171
248
|
const TAG_LINK = 'link';
|
|
@@ -173,6 +250,7 @@ const TAG_LINK = 'link';
|
|
|
173
250
|
/**
|
|
174
251
|
* @memberOf Monster.DOM
|
|
175
252
|
* @type {string}
|
|
253
|
+
* @license AGPLv3
|
|
176
254
|
* @since 1.25.0
|
|
177
255
|
*/
|
|
178
256
|
|
|
@@ -181,6 +259,7 @@ const ATTRIBUTE_ID = 'id';
|
|
|
181
259
|
/**
|
|
182
260
|
* @memberOf Monster.DOM
|
|
183
261
|
* @type {string}
|
|
262
|
+
* @license AGPLv3
|
|
184
263
|
* @since 1.25.0
|
|
185
264
|
*/
|
|
186
265
|
|
|
@@ -189,6 +268,7 @@ const ATTRIBUTE_CLASS = 'class';
|
|
|
189
268
|
/**
|
|
190
269
|
* @memberOf Monster.DOM
|
|
191
270
|
* @type {string}
|
|
271
|
+
* @license AGPLv3
|
|
192
272
|
* @since 1.25.0
|
|
193
273
|
*/
|
|
194
274
|
const ATTRIBUTE_TITLE = 'title';
|
|
@@ -196,12 +276,14 @@ const ATTRIBUTE_TITLE = 'title';
|
|
|
196
276
|
/**
|
|
197
277
|
* @memberOf Monster.DOM
|
|
198
278
|
* @type {string}
|
|
279
|
+
* @license AGPLv3
|
|
199
280
|
* @since 1.25.0
|
|
200
281
|
*/
|
|
201
282
|
const ATTRIBUTE_SRC = 'src';
|
|
202
283
|
/**
|
|
203
284
|
* @memberOf Monster.DOM
|
|
204
285
|
* @type {string}
|
|
286
|
+
* @license AGPLv3
|
|
205
287
|
* @since 1.25.0
|
|
206
288
|
*/
|
|
207
289
|
const ATTRIBUTE_HREF = 'href';
|
|
@@ -209,6 +291,7 @@ const ATTRIBUTE_HREF = 'href';
|
|
|
209
291
|
/**
|
|
210
292
|
* @memberOf Monster.DOM
|
|
211
293
|
* @type {string}
|
|
294
|
+
* @license AGPLv3
|
|
212
295
|
* @since 1.25.0
|
|
213
296
|
*/
|
|
214
297
|
const ATTRIBUTE_TYPE = 'type';
|
|
@@ -216,6 +299,7 @@ const ATTRIBUTE_TYPE = 'type';
|
|
|
216
299
|
/**
|
|
217
300
|
* @memberOf Monster.DOM
|
|
218
301
|
* @type {string}
|
|
302
|
+
* @license AGPLv3
|
|
219
303
|
* @since 1.25.0
|
|
220
304
|
*/
|
|
221
305
|
const ATTRIBUTE_NONCE = 'nonce';
|
|
@@ -223,6 +307,7 @@ const ATTRIBUTE_NONCE = 'nonce';
|
|
|
223
307
|
/**
|
|
224
308
|
* @memberOf Monster.DOM
|
|
225
309
|
* @type {string}
|
|
310
|
+
* @license AGPLv3
|
|
226
311
|
* @since 1.25.0
|
|
227
312
|
*/
|
|
228
313
|
const ATTRIBUTE_TRANSLATE = 'translate';
|
|
@@ -231,6 +316,7 @@ const ATTRIBUTE_TRANSLATE = 'translate';
|
|
|
231
316
|
/**
|
|
232
317
|
* @memberOf Monster.DOM
|
|
233
318
|
* @type {string}
|
|
319
|
+
* @license AGPLv3
|
|
234
320
|
* @since 1.25.0
|
|
235
321
|
*/
|
|
236
322
|
const ATTRIBUTE_TABINDEX = 'tabindex';
|
|
@@ -239,6 +325,7 @@ const ATTRIBUTE_TABINDEX = 'tabindex';
|
|
|
239
325
|
/**
|
|
240
326
|
* @memberOf Monster.DOM
|
|
241
327
|
* @type {string}
|
|
328
|
+
* @license AGPLv3
|
|
242
329
|
* @since 1.25.0
|
|
243
330
|
*/
|
|
244
331
|
const ATTRIBUTE_SPELLCHECK = 'spellcheck';
|
|
@@ -247,6 +334,7 @@ const ATTRIBUTE_SPELLCHECK = 'spellcheck';
|
|
|
247
334
|
/**
|
|
248
335
|
* @memberOf Monster.DOM
|
|
249
336
|
* @type {string}
|
|
337
|
+
* @license AGPLv3
|
|
250
338
|
* @since 1.25.0
|
|
251
339
|
*/
|
|
252
340
|
const ATTRIBUTE_SLOT = 'slot';
|
|
@@ -255,6 +343,7 @@ const ATTRIBUTE_SLOT = 'slot';
|
|
|
255
343
|
/**
|
|
256
344
|
* @memberOf Monster.DOM
|
|
257
345
|
* @type {string}
|
|
346
|
+
* @license AGPLv3
|
|
258
347
|
* @since 1.25.0
|
|
259
348
|
*/
|
|
260
349
|
const ATTRIBUTE_PART = 'part';
|
|
@@ -263,6 +352,7 @@ const ATTRIBUTE_PART = 'part';
|
|
|
263
352
|
/**
|
|
264
353
|
* @memberOf Monster.DOM
|
|
265
354
|
* @type {string}
|
|
355
|
+
* @license AGPLv3
|
|
266
356
|
* @since 1.25.0
|
|
267
357
|
*/
|
|
268
358
|
const ATTRIBUTE_LANG = 'lang';
|
|
@@ -271,6 +361,7 @@ const ATTRIBUTE_LANG = 'lang';
|
|
|
271
361
|
/**
|
|
272
362
|
* @memberOf Monster.DOM
|
|
273
363
|
* @type {string}
|
|
364
|
+
* @license AGPLv3
|
|
274
365
|
* @since 1.25.0
|
|
275
366
|
*/
|
|
276
367
|
const ATTRIBUTE_ITEMTYPE = 'itemtype';
|
|
@@ -279,6 +370,7 @@ const ATTRIBUTE_ITEMTYPE = 'itemtype';
|
|
|
279
370
|
/**
|
|
280
371
|
* @memberOf Monster.DOM
|
|
281
372
|
* @type {string}
|
|
373
|
+
* @license AGPLv3
|
|
282
374
|
* @since 1.25.0
|
|
283
375
|
*/
|
|
284
376
|
const ATTRIBUTE_ITEMSCOPE = 'itemscope';
|
|
@@ -287,6 +379,7 @@ const ATTRIBUTE_ITEMSCOPE = 'itemscope';
|
|
|
287
379
|
/**
|
|
288
380
|
* @memberOf Monster.DOM
|
|
289
381
|
* @type {string}
|
|
382
|
+
* @license AGPLv3
|
|
290
383
|
* @since 1.25.0
|
|
291
384
|
*/
|
|
292
385
|
const ATTRIBUTE_ITEMREF = 'itemref';
|
|
@@ -295,6 +388,7 @@ const ATTRIBUTE_ITEMREF = 'itemref';
|
|
|
295
388
|
/**
|
|
296
389
|
* @memberOf Monster.DOM
|
|
297
390
|
* @type {string}
|
|
391
|
+
* @license AGPLv3
|
|
298
392
|
* @since 1.25.0
|
|
299
393
|
*/
|
|
300
394
|
const ATTRIBUTE_ITEMID = 'itemid';
|
|
@@ -303,6 +397,7 @@ const ATTRIBUTE_ITEMID = 'itemid';
|
|
|
303
397
|
/**
|
|
304
398
|
* @memberOf Monster.DOM
|
|
305
399
|
* @type {string}
|
|
400
|
+
* @license AGPLv3
|
|
306
401
|
* @since 1.25.0
|
|
307
402
|
*/
|
|
308
403
|
const ATTRIBUTE_ITEMPROP = 'itemprop';
|
|
@@ -311,6 +406,7 @@ const ATTRIBUTE_ITEMPROP = 'itemprop';
|
|
|
311
406
|
/**
|
|
312
407
|
* @memberOf Monster.DOM
|
|
313
408
|
* @type {string}
|
|
409
|
+
* @license AGPLv3
|
|
314
410
|
* @since 1.25.0
|
|
315
411
|
*/
|
|
316
412
|
const ATTRIBUTE_IS = 'is';
|
|
@@ -319,6 +415,7 @@ const ATTRIBUTE_IS = 'is';
|
|
|
319
415
|
/**
|
|
320
416
|
* @memberOf Monster.DOM
|
|
321
417
|
* @type {string}
|
|
418
|
+
* @license AGPLv3
|
|
322
419
|
* @since 1.25.0
|
|
323
420
|
*/
|
|
324
421
|
const ATTRIBUTE_INPUTMODE = 'inputmode';
|
|
@@ -327,6 +424,7 @@ const ATTRIBUTE_INPUTMODE = 'inputmode';
|
|
|
327
424
|
/**
|
|
328
425
|
* @memberOf Monster.DOM
|
|
329
426
|
* @type {string}
|
|
427
|
+
* @license AGPLv3
|
|
330
428
|
* @since 1.25.0
|
|
331
429
|
*/
|
|
332
430
|
const ATTRIBUTE_ACCESSKEY = 'accesskey';
|
|
@@ -334,6 +432,7 @@ const ATTRIBUTE_ACCESSKEY = 'accesskey';
|
|
|
334
432
|
/**
|
|
335
433
|
* @memberOf Monster.DOM
|
|
336
434
|
* @type {string}
|
|
435
|
+
* @license AGPLv3
|
|
337
436
|
* @since 1.25.0
|
|
338
437
|
*/
|
|
339
438
|
const ATTRIBUTE_AUTOCAPITALIZE = 'autocapitalize';
|
|
@@ -341,6 +440,7 @@ const ATTRIBUTE_AUTOCAPITALIZE = 'autocapitalize';
|
|
|
341
440
|
/**
|
|
342
441
|
* @memberOf Monster.DOM
|
|
343
442
|
* @type {string}
|
|
443
|
+
* @license AGPLv3
|
|
344
444
|
* @since 1.25.0
|
|
345
445
|
*/
|
|
346
446
|
const ATTRIBUTE_AUTOFOCUS = 'autofocus';
|
|
@@ -348,6 +448,7 @@ const ATTRIBUTE_AUTOFOCUS = 'autofocus';
|
|
|
348
448
|
/**
|
|
349
449
|
* @memberOf Monster.DOM
|
|
350
450
|
* @type {string}
|
|
451
|
+
* @license AGPLv3
|
|
351
452
|
* @since 1.25.0
|
|
352
453
|
*/
|
|
353
454
|
const ATTRIBUTE_CONTENTEDITABLE = 'contenteditable';
|
|
@@ -355,6 +456,7 @@ const ATTRIBUTE_CONTENTEDITABLE = 'contenteditable';
|
|
|
355
456
|
/**
|
|
356
457
|
* @memberOf Monster.DOM
|
|
357
458
|
* @type {string}
|
|
459
|
+
* @license AGPLv3
|
|
358
460
|
* @since 1.25.0
|
|
359
461
|
*/
|
|
360
462
|
const ATTRIBUTE_DIR = 'dir';
|
|
@@ -362,6 +464,7 @@ const ATTRIBUTE_DIR = 'dir';
|
|
|
362
464
|
/**
|
|
363
465
|
* @memberOf Monster.DOM
|
|
364
466
|
* @type {string}
|
|
467
|
+
* @license AGPLv3
|
|
365
468
|
* @since 1.25.0
|
|
366
469
|
*/
|
|
367
470
|
const ATTRIBUTE_DRAGGABLE = 'draggable';
|
|
@@ -370,75 +473,21 @@ const ATTRIBUTE_DRAGGABLE = 'draggable';
|
|
|
370
473
|
/**
|
|
371
474
|
* @memberOf Monster.DOM
|
|
372
475
|
* @type {string}
|
|
476
|
+
* @license AGPLv3
|
|
373
477
|
* @since 1.25.0
|
|
374
478
|
*/
|
|
375
479
|
const ATTRIBUTE_ENTERKEYHINT = 'enterkeyhint';
|
|
376
480
|
/**
|
|
377
481
|
* @memberOf Monster.DOM
|
|
378
482
|
* @type {string}
|
|
483
|
+
* @license AGPLv3
|
|
379
484
|
* @since 1.25.0
|
|
380
485
|
*/
|
|
381
486
|
const ATTRIBUTE_EXPORTPARTS = 'exportparts';
|
|
382
487
|
/**
|
|
383
488
|
* @memberOf Monster.DOM
|
|
384
489
|
* @type {string}
|
|
490
|
+
* @license AGPLv3
|
|
385
491
|
* @since 1.25.0
|
|
386
492
|
*/
|
|
387
493
|
const ATTRIBUTE_HIDDEN = 'hidden';
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
export {
|
|
391
|
-
Monster,
|
|
392
|
-
ATTRIBUTE_HIDDEN,
|
|
393
|
-
ATTRIBUTE_EXPORTPARTS,
|
|
394
|
-
ATTRIBUTE_ENTERKEYHINT,
|
|
395
|
-
ATTRIBUTE_DRAGGABLE,
|
|
396
|
-
ATTRIBUTE_DIR,
|
|
397
|
-
ATTRIBUTE_CONTENTEDITABLE,
|
|
398
|
-
ATTRIBUTE_AUTOFOCUS,
|
|
399
|
-
ATTRIBUTE_AUTOCAPITALIZE,
|
|
400
|
-
ATTRIBUTE_ACCESSKEY,
|
|
401
|
-
TAG_SCRIPT,
|
|
402
|
-
TAG_LINK,
|
|
403
|
-
ATTRIBUTE_INPUTMODE,
|
|
404
|
-
ATTRIBUTE_IS,
|
|
405
|
-
ATTRIBUTE_ITEMPROP,
|
|
406
|
-
ATTRIBUTE_ITEMID,
|
|
407
|
-
ATTRIBUTE_ITEMREF,
|
|
408
|
-
ATTRIBUTE_ITEMSCOPE,
|
|
409
|
-
TAG_STYLE,
|
|
410
|
-
ATTRIBUTE_ITEMTYPE,
|
|
411
|
-
ATTRIBUTE_HREF,
|
|
412
|
-
ATTRIBUTE_LANG,
|
|
413
|
-
ATTRIBUTE_PART,
|
|
414
|
-
ATTRIBUTE_SLOT,
|
|
415
|
-
ATTRIBUTE_SPELLCHECK,
|
|
416
|
-
ATTRIBUTE_SRC,
|
|
417
|
-
ATTRIBUTE_TABINDEX,
|
|
418
|
-
ATTRIBUTE_TRANSLATE,
|
|
419
|
-
ATTRIBUTE_NONCE,
|
|
420
|
-
ATTRIBUTE_TYPE,
|
|
421
|
-
ATTRIBUTE_TITLE,
|
|
422
|
-
ATTRIBUTE_CLASS,
|
|
423
|
-
ATTRIBUTE_ID,
|
|
424
|
-
ATTRIBUTE_PREFIX,
|
|
425
|
-
ATTRIBUTE_OPTIONS,
|
|
426
|
-
DEFAULT_THEME,
|
|
427
|
-
ATTRIBUTE_THEME_PREFIX,
|
|
428
|
-
ATTRIBUTE_ROLE,
|
|
429
|
-
ATTRIBUTE_THEME_NAME,
|
|
430
|
-
ATTRIBUTE_UPDATER_ATTRIBUTES,
|
|
431
|
-
ATTRIBUTE_UPDATER_REPLACE,
|
|
432
|
-
ATTRIBUTE_UPDATER_INSERT,
|
|
433
|
-
ATTRIBUTE_UPDATER_INSERT_REFERENCE,
|
|
434
|
-
ATTRIBUTE_UPDATER_REMOVE,
|
|
435
|
-
ATTRIBUTE_UPDATER_BIND,
|
|
436
|
-
ATTRIBUTE_OBJECTLINK,
|
|
437
|
-
ATTRIBUTE_DISABLED,
|
|
438
|
-
ATTRIBUTE_ERRORMESSAGE,
|
|
439
|
-
ATTRIBUTE_VALUE,
|
|
440
|
-
objectUpdaterLinkSymbol,
|
|
441
|
-
ATTRIBUTE_TEMPLATE_PREFIX,
|
|
442
|
-
ATTRIBUTE_UPDATER_SELECT_THIS,
|
|
443
|
-
ATTRIBUTE_OPTIONS_SELECTOR
|
|
444
|
-
}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
import {extend} from "../data/extend.js";
|
|
4
1
|
/**
|
|
5
|
-
*
|
|
2
|
+
* Copyright schukai GmbH and contributors 2022. All Rights Reserved.
|
|
3
|
+
* Node module: @schukai/monster
|
|
4
|
+
* This file is licensed under the AGPLv3 License.
|
|
5
|
+
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
|
6
6
|
*/
|
|
7
|
-
import {assignToNamespace, Monster} from '../namespace.js';
|
|
8
|
-
import {ATTRIBUTE_VALUE} from "./constants.js";
|
|
9
|
-
import {CustomElement, attributeObserverSymbol} from "./customelement.js";
|
|
10
7
|
|
|
8
|
+
import {extend} from "../data/extend.mjs";
|
|
9
|
+
import {ATTRIBUTE_VALUE} from "./constants.mjs";
|
|
10
|
+
import {CustomElement, attributeObserverSymbol} from "./customelement.mjs";
|
|
11
|
+
|
|
12
|
+
export {CustomControl}
|
|
11
13
|
|
|
12
14
|
/**
|
|
13
15
|
* @private
|
|
@@ -28,13 +30,6 @@ const attachedInternalSymbol = Symbol('attachedInternal');
|
|
|
28
30
|
*
|
|
29
31
|
* You can create the object via the function `document.createElement()`.
|
|
30
32
|
*
|
|
31
|
-
* ```
|
|
32
|
-
* <script type="module">
|
|
33
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/monster.js';
|
|
34
|
-
* document.createElement('monster-')
|
|
35
|
-
* </script>
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
33
|
* @startuml customcontrol-class.png
|
|
39
34
|
* skinparam monochrome true
|
|
40
35
|
* skinparam shadowing false
|
|
@@ -46,6 +41,7 @@ const attachedInternalSymbol = Symbol('attachedInternal');
|
|
|
46
41
|
* @see {@link https://www.npmjs.com/package/element-internals-polyfill}
|
|
47
42
|
* @see {@link https://github.com/WICG/webcomponents}
|
|
48
43
|
* @see {@link https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements}
|
|
44
|
+
* @license AGPLv3
|
|
49
45
|
* @since 1.14.0
|
|
50
46
|
* @copyright schukai GmbH
|
|
51
47
|
* @memberOf Monster.DOM
|
|
@@ -328,6 +324,3 @@ function initObserver() {
|
|
|
328
324
|
}
|
|
329
325
|
|
|
330
326
|
}
|
|
331
|
-
|
|
332
|
-
assignToNamespace('Monster.DOM', CustomControl);
|
|
333
|
-
export {Monster, CustomControl}
|
|
@@ -1,31 +1,33 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
|
-
*
|
|
2
|
+
* Copyright schukai GmbH and contributors 2022. All Rights Reserved.
|
|
3
|
+
* Node module: @schukai/monster
|
|
4
|
+
* This file is licensed under the AGPLv3 License.
|
|
5
|
+
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
|
5
6
|
*/
|
|
6
7
|
|
|
7
|
-
import {internalSymbol} from "../constants.
|
|
8
|
-
import {extend} from "../data/extend.
|
|
9
|
-
import {Pathfinder} from "../data/pathfinder.
|
|
10
|
-
|
|
11
|
-
import {parseDataURL} from "../types/dataurl.
|
|
12
|
-
import {getGlobalObject} from "../types/global.
|
|
13
|
-
import {isArray, isFunction, isObject, isString} from "../types/is.
|
|
14
|
-
import {Observer} from "../types/observer.
|
|
15
|
-
import {ProxyObserver} from "../types/proxyobserver.
|
|
16
|
-
import {validateFunction, validateInstance, validateObject, validateString} from "../types/validate.
|
|
17
|
-
import {clone} from "../util/clone.
|
|
18
|
-
import {addAttributeToken, addToObjectLink, getLinkedObjects, hasObjectLink} from "./attributes.
|
|
8
|
+
import {internalSymbol} from "../constants.mjs";
|
|
9
|
+
import {extend} from "../data/extend.mjs";
|
|
10
|
+
import {Pathfinder} from "../data/pathfinder.mjs";
|
|
11
|
+
|
|
12
|
+
import {parseDataURL} from "../types/dataurl.mjs";
|
|
13
|
+
import {getGlobalObject} from "../types/global.mjs";
|
|
14
|
+
import {isArray, isFunction, isObject, isString} from "../types/is.mjs";
|
|
15
|
+
import {Observer} from "../types/observer.mjs";
|
|
16
|
+
import {ProxyObserver} from "../types/proxyobserver.mjs";
|
|
17
|
+
import {validateFunction, validateInstance, validateObject, validateString} from "../types/validate.mjs";
|
|
18
|
+
import {clone} from "../util/clone.mjs";
|
|
19
|
+
import {addAttributeToken, addToObjectLink, getLinkedObjects, hasObjectLink} from "./attributes.mjs";
|
|
19
20
|
import {
|
|
20
21
|
ATTRIBUTE_DISABLED,
|
|
21
22
|
ATTRIBUTE_ERRORMESSAGE,
|
|
22
23
|
ATTRIBUTE_OPTIONS,
|
|
23
24
|
ATTRIBUTE_OPTIONS_SELECTOR,
|
|
24
25
|
objectUpdaterLinkSymbol
|
|
25
|
-
} from "./constants.
|
|
26
|
-
import {findDocumentTemplate, Template} from "./template.
|
|
27
|
-
import {Updater} from "./updater.
|
|
26
|
+
} from "./constants.mjs";
|
|
27
|
+
import {findDocumentTemplate, Template} from "./template.mjs";
|
|
28
|
+
import {Updater} from "./updater.mjs";
|
|
28
29
|
|
|
30
|
+
export {CustomElement, initMethodSymbol, assembleMethodSymbol, attributeObserverSymbol, registerCustomElement, assignUpdaterToElement}
|
|
29
31
|
|
|
30
32
|
/**
|
|
31
33
|
* @memberOf Monster.DOM
|
|
@@ -101,12 +103,6 @@ const attributeObserverSymbol = Symbol('attributeObserver');
|
|
|
101
103
|
*
|
|
102
104
|
* You can create the object via the function `document.createElement()`.
|
|
103
105
|
*
|
|
104
|
-
* ```
|
|
105
|
-
* <script type="module">
|
|
106
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/monster.js';
|
|
107
|
-
* document.createElement('monster-')
|
|
108
|
-
* </script>
|
|
109
|
-
* ```
|
|
110
106
|
*
|
|
111
107
|
* ## Interaction
|
|
112
108
|
*
|
|
@@ -172,24 +168,10 @@ const attributeObserverSymbol = Symbol('attributeObserver');
|
|
|
172
168
|
* }
|
|
173
169
|
* ```
|
|
174
170
|
*
|
|
175
|
-
* @example
|
|
176
|
-
*
|
|
177
|
-
* // In the example the the user can use his own template by creating a template in the DOM with the ID `my-custom-element`.
|
|
178
|
-
* // You can also specify a theme (for example `mytheme`), then it will search for the ID `my-custom-element-mytheme` and
|
|
179
|
-
* // if not available for the ID `my-custom-element`.
|
|
180
|
-
*
|
|
181
|
-
* class MyCustomElement extends CustomElement {
|
|
182
|
-
*
|
|
183
|
-
* static getTag() {
|
|
184
|
-
* return "my-custom-element"
|
|
185
|
-
* }
|
|
186
|
-
*
|
|
187
|
-
* }
|
|
188
|
-
*
|
|
189
|
-
* // ↦ <my-custom-element></my-custom-element>
|
|
190
|
-
*
|
|
171
|
+
* @externalExample ../../example/dom/theme.mjs
|
|
191
172
|
* @see https://github.com/WICG/webcomponents
|
|
192
173
|
* @see https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements
|
|
174
|
+
* @license AGPLv3
|
|
193
175
|
* @since 1.7.0
|
|
194
176
|
* @copyright schukai GmbH
|
|
195
177
|
* @memberOf Monster.DOM
|
|
@@ -557,6 +539,7 @@ class CustomElement extends HTMLElement {
|
|
|
557
539
|
* @param {String|undefined|null} name name of the slot (if the parameter is undefined, all slots are searched, if the parameter has the value null, all slots without a name are searched. if a string is specified, the slots with this name are searched.)
|
|
558
540
|
* @return {*}
|
|
559
541
|
* @this CustomElement
|
|
542
|
+
* @license AGPLv3
|
|
560
543
|
* @since 1.23.0
|
|
561
544
|
* @throws {Error} query must be a string
|
|
562
545
|
*/
|
|
@@ -631,6 +614,7 @@ function containChildNode(node) {
|
|
|
631
614
|
}
|
|
632
615
|
|
|
633
616
|
/**
|
|
617
|
+
* @license AGPLv3
|
|
634
618
|
* @since 1.15.0
|
|
635
619
|
* @private
|
|
636
620
|
* @this CustomElement
|
|
@@ -828,6 +812,7 @@ function initHtmlContent() {
|
|
|
828
812
|
* @return {CustomElement}
|
|
829
813
|
* @memberOf Monster.DOM
|
|
830
814
|
* @this CustomElement
|
|
815
|
+
* @license AGPLv3
|
|
831
816
|
* @since 1.16.0
|
|
832
817
|
* @throws {TypeError} value is not an instance of
|
|
833
818
|
*/
|
|
@@ -891,6 +876,7 @@ function initCSSStylesheet() {
|
|
|
891
876
|
* @throws {Error} html is not set.
|
|
892
877
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/attachShadow
|
|
893
878
|
* @memberOf Monster.DOM
|
|
879
|
+
* @license AGPLv3
|
|
894
880
|
* @since 1.8.0
|
|
895
881
|
*/
|
|
896
882
|
function initShadowRoot() {
|
|
@@ -927,6 +913,7 @@ function initShadowRoot() {
|
|
|
927
913
|
*
|
|
928
914
|
* @param {CustomElement} element
|
|
929
915
|
* @return {void}
|
|
916
|
+
* @license AGPLv3
|
|
930
917
|
* @since 1.7.0
|
|
931
918
|
* @copyright schukai GmbH
|
|
932
919
|
* @memberOf Monster.DOM
|
|
@@ -943,6 +930,7 @@ function registerCustomElement(element) {
|
|
|
943
930
|
* @param element
|
|
944
931
|
* @param object
|
|
945
932
|
* @return {Promise[]}
|
|
933
|
+
* @license AGPLv3
|
|
946
934
|
* @since 1.23.0
|
|
947
935
|
* @memberOf Monster.DOM
|
|
948
936
|
*/
|
|
@@ -977,15 +965,3 @@ function assignUpdaterToElement(elements, object) {
|
|
|
977
965
|
|
|
978
966
|
return result;
|
|
979
967
|
}
|
|
980
|
-
|
|
981
|
-
assignToNamespace('Monster.DOM', CustomElement, registerCustomElement, assignUpdaterToElement);
|
|
982
|
-
export {
|
|
983
|
-
Monster,
|
|
984
|
-
registerCustomElement,
|
|
985
|
-
CustomElement,
|
|
986
|
-
initMethodSymbol,
|
|
987
|
-
assembleMethodSymbol,
|
|
988
|
-
assignUpdaterToElement,
|
|
989
|
-
attributeObserverSymbol,
|
|
990
|
-
getSlottedElements
|
|
991
|
-
}
|