@schukai/monster 1.28.1 → 1.29.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 +9 -0
- package/README.md +3 -3
- package/dist/modules/constants.js +1 -1
- package/dist/modules/constraints/abstract.js +1 -1
- package/dist/modules/constraints/abstractoperator.js +1 -1
- package/dist/modules/constraints/andoperator.js +1 -1
- package/dist/modules/constraints/invalid.js +1 -1
- package/dist/modules/constraints/isarray.js +1 -1
- package/dist/modules/constraints/isobject.js +1 -1
- package/dist/modules/constraints/namespace.js +1 -1
- package/dist/modules/constraints/oroperator.js +1 -1
- package/dist/modules/constraints/valid.js +1 -1
- package/dist/modules/data/buildmap.js +2 -2
- package/dist/modules/data/buildtree.js +1 -1
- package/dist/modules/data/datasource/namespace.js +1 -1
- package/dist/modules/data/datasource/restapi/writeerror.js +1 -1
- package/dist/modules/data/datasource/restapi.js +1 -1
- package/dist/modules/data/datasource/storage/localstorage.js +1 -1
- package/dist/modules/data/datasource/storage/namespace.js +1 -1
- package/dist/modules/data/datasource/storage/sessionstorage.js +1 -1
- package/dist/modules/data/datasource/storage.js +1 -1
- package/dist/modules/data/datasource.js +1 -1
- package/dist/modules/data/diff.js +1 -1
- package/dist/modules/data/extend.js +1 -1
- package/dist/modules/data/namespace.js +1 -1
- package/dist/modules/data/pathfinder.js +1 -1
- package/dist/modules/data/pipe.js +1 -1
- package/dist/modules/data/transformer.js +1 -1
- package/dist/modules/dom/assembler.js +1 -1
- package/dist/modules/dom/attributes.js +1 -1
- package/dist/modules/dom/constants.js +1 -1
- package/dist/modules/dom/customcontrol.js +1 -1
- package/dist/modules/dom/customelement.js +2 -2
- package/dist/modules/dom/events.js +1 -1
- package/dist/modules/dom/focusmanager.js +1 -1
- package/dist/modules/dom/locale.js +1 -1
- package/dist/modules/dom/namespace.js +1 -1
- package/dist/modules/dom/resource/data.js +1 -1
- package/dist/modules/dom/resource/link/stylesheet.js +1 -1
- package/dist/modules/dom/resource/link.js +1 -1
- package/dist/modules/dom/resource/script.js +1 -1
- package/dist/modules/dom/resource.js +1 -1
- package/dist/modules/dom/resourcemanager.js +1 -1
- package/dist/modules/dom/template.js +1 -1
- package/dist/modules/dom/theme.js +1 -1
- package/dist/modules/dom/updater.js +2 -2
- package/dist/modules/dom/util.js +1 -1
- package/dist/modules/dom/worker/factory.js +1 -1
- package/dist/modules/i18n/formatter.js +1 -1
- package/dist/modules/i18n/locale.js +1 -1
- package/dist/modules/i18n/namespace.js +1 -1
- package/dist/modules/i18n/provider.js +1 -1
- package/dist/modules/i18n/providers/fetch.js +1 -1
- package/dist/modules/i18n/providers/namespace.js +1 -1
- package/dist/modules/i18n/translations.js +1 -1
- package/dist/modules/logging/handler/console.js +1 -1
- package/dist/modules/logging/handler/namespace.js +1 -1
- package/dist/modules/logging/handler.js +1 -1
- package/dist/modules/logging/logentry.js +1 -1
- package/dist/modules/logging/logger.js +1 -1
- package/dist/modules/logging/namespace.js +1 -1
- package/dist/modules/math/namespace.js +1 -1
- package/dist/modules/math/random.js +1 -1
- package/dist/modules/monster.js +1 -1
- package/dist/modules/namespace.js +1 -1
- package/dist/modules/text/formatter.js +1 -1
- package/dist/modules/text/namespace.js +1 -1
- package/dist/modules/types/base.js +1 -1
- package/dist/modules/types/basewithoptions.js +1 -1
- package/dist/modules/types/binary.js +1 -1
- package/dist/modules/types/dataurl.js +1 -1
- package/dist/modules/types/global.js +1 -1
- package/dist/modules/types/id.js +1 -1
- package/dist/modules/types/is.js +1 -1
- package/dist/modules/types/mediatype.js +1 -1
- package/dist/modules/types/namespace.js +1 -1
- package/dist/modules/types/node.js +1 -1
- package/dist/modules/types/nodelist.js +1 -1
- package/dist/modules/types/noderecursiveiterator.js +1 -1
- package/dist/modules/types/observer.js +1 -1
- package/dist/modules/types/observerlist.js +1 -1
- package/dist/modules/types/proxyobserver.js +1 -1
- package/dist/modules/types/queue.js +1 -1
- package/dist/modules/types/randomid.js +1 -1
- package/dist/modules/types/regex.js +1 -1
- package/dist/modules/types/stack.js +1 -1
- package/dist/modules/types/tokenlist.js +1 -1
- package/dist/modules/types/typeof.js +1 -1
- package/dist/modules/types/uniquequeue.js +1 -1
- package/dist/modules/types/uuid.js +1 -1
- package/dist/modules/types/validate.js +1 -1
- package/dist/modules/types/version.js +2 -2
- package/dist/modules/util/clone.js +1 -1
- package/dist/modules/util/comparator.js +1 -1
- package/dist/modules/util/deadmansswitch.js +2 -0
- package/dist/modules/util/freeze.js +1 -1
- package/dist/modules/util/namespace.js +1 -1
- package/dist/modules/util/processing.js +1 -1
- package/dist/modules/util/trimspaces.js +1 -1
- package/dist/monster.dev.js +273 -253
- package/dist/monster.dev.js.map +1 -1
- package/dist/monster.js +2 -2
- package/package.json +1 -1
- package/source/constraints/andoperator.js +5 -5
- package/source/constraints/invalid.js +3 -3
- package/source/constraints/isarray.js +3 -3
- package/source/constraints/isobject.js +3 -3
- package/source/constraints/oroperator.js +5 -5
- package/source/constraints/valid.js +3 -3
- package/source/data/buildmap.js +6 -5
- package/source/data/buildtree.js +2 -2
- package/source/data/datasource/restapi.js +3 -3
- package/source/data/datasource/storage/localstorage.js +2 -2
- package/source/data/datasource/storage/sessionstorage.js +2 -2
- package/source/data/datasource/storage.js +3 -3
- package/source/data/datasource.js +3 -3
- package/source/data/diff.js +3 -3
- package/source/data/extend.js +2 -2
- package/source/data/pathfinder.js +4 -4
- package/source/data/pipe.js +3 -3
- package/source/data/transformer.js +3 -3
- package/source/dom/assembler.js +2 -2
- package/source/dom/attributes.js +26 -26
- package/source/dom/customcontrol.js +1 -1
- package/source/dom/customelement.js +27 -13
- package/source/dom/events.js +7 -7
- package/source/dom/focusmanager.js +2 -2
- package/source/dom/locale.js +2 -2
- package/source/dom/resource/data.js +2 -2
- package/source/dom/resource/link/stylesheet.js +2 -2
- package/source/dom/resource/link.js +2 -2
- package/source/dom/resource/script.js +2 -2
- package/source/dom/resource.js +2 -2
- package/source/dom/resourcemanager.js +2 -2
- package/source/dom/template.js +5 -5
- package/source/dom/theme.js +3 -3
- package/source/dom/updater.js +32 -9
- package/source/dom/util.js +6 -6
- package/source/dom/worker/factory.js +2 -2
- package/source/i18n/formatter.js +4 -4
- package/source/i18n/locale.js +4 -4
- package/source/i18n/provider.js +2 -2
- package/source/i18n/providers/fetch.js +3 -3
- package/source/i18n/translations.js +4 -4
- package/source/logging/handler/console.js +2 -2
- package/source/logging/handler.js +2 -2
- package/source/logging/logentry.js +2 -2
- package/source/logging/logger.js +2 -2
- package/source/math/random.js +2 -2
- package/source/namespace.js +1 -1
- package/source/text/formatter.js +3 -3
- package/source/types/base.js +2 -2
- package/source/types/basewithoptions.js +2 -2
- package/source/types/binary.js +4 -4
- package/source/types/dataurl.js +4 -4
- package/source/types/global.js +4 -4
- package/source/types/id.js +2 -2
- package/source/types/is.js +20 -20
- package/source/types/mediatype.js +4 -4
- package/source/types/node.js +2 -2
- package/source/types/nodelist.js +2 -2
- package/source/types/noderecursiveiterator.js +4 -4
- package/source/types/observer.js +5 -13
- package/source/types/observerlist.js +2 -2
- package/source/types/proxyobserver.js +5 -5
- package/source/types/queue.js +3 -3
- package/source/types/randomid.js +2 -2
- package/source/types/regex.js +2 -2
- package/source/types/stack.js +2 -2
- package/source/types/tokenlist.js +2 -2
- package/source/types/typeof.js +3 -3
- package/source/types/uniquequeue.js +2 -2
- package/source/types/uuid.js +2 -2
- package/source/types/validate.js +20 -20
- package/source/types/version.js +6 -6
- package/source/util/clone.js +2 -2
- package/source/util/comparator.js +3 -3
- package/source/util/deadmansswitch.js +124 -0
- package/source/util/freeze.js +2 -2
- package/source/util/processing.js +3 -3
- package/source/util/trimspaces.js +2 -2
- package/test/cases/math/random.js +3 -0
- package/test/cases/monster.js +1 -1
- package/test/cases/util/deadmansswitch.js +71 -0
- package/test/web/import.js +1 -0
- package/test/web/monster-dev.html +3 -3
- package/test/web/monster.html +2 -2
- package/test/web/test.html +2 -2
- package/test/web/tests.js +2 -2
package/dist/monster.dev.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Monster 1.
|
|
1
|
+
/** Monster 1.29.0, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */
|
|
2
2
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
3
3
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
4
4
|
module.exports = factory();
|
|
@@ -140,7 +140,7 @@ var Monster = new Namespace("Monster");
|
|
|
140
140
|
*
|
|
141
141
|
* ```
|
|
142
142
|
* <script type="module">
|
|
143
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
143
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
144
144
|
* function hello() {
|
|
145
145
|
* console.log('Hello World!');
|
|
146
146
|
* }
|
|
@@ -387,7 +387,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
387
387
|
*
|
|
388
388
|
* ```
|
|
389
389
|
* <script type="module">
|
|
390
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
390
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
391
391
|
* new Monster.Types.Base()
|
|
392
392
|
* </script>
|
|
393
393
|
* ```
|
|
@@ -396,7 +396,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
396
396
|
*
|
|
397
397
|
* ```
|
|
398
398
|
* <script type="module">
|
|
399
|
-
* import {Base} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
399
|
+
* import {Base} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/base.js';
|
|
400
400
|
* new Base()
|
|
401
401
|
* </script>
|
|
402
402
|
* ```
|
|
@@ -568,7 +568,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
568
568
|
*
|
|
569
569
|
* ```
|
|
570
570
|
* <script type="module">
|
|
571
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
571
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
572
572
|
* new Monster.Constraint.AndOperator();
|
|
573
573
|
* </script>
|
|
574
574
|
* ```
|
|
@@ -577,16 +577,16 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
577
577
|
*
|
|
578
578
|
* ```
|
|
579
579
|
* <script type="module">
|
|
580
|
-
* import {AndOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
580
|
+
* import {AndOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/constraints/andoperator.js';
|
|
581
581
|
* new AndOperator();
|
|
582
582
|
* </script>
|
|
583
583
|
* ```
|
|
584
584
|
*
|
|
585
585
|
* @example
|
|
586
586
|
*
|
|
587
|
-
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
588
|
-
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
589
|
-
* import {AndOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
587
|
+
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/constraints/valid.js';
|
|
588
|
+
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/constraints/invalid.js';
|
|
589
|
+
* import {AndOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/constraints/andoperator.js';
|
|
590
590
|
*
|
|
591
591
|
* new AndOperator(
|
|
592
592
|
* new Valid(), new Valid()).isValid()
|
|
@@ -688,7 +688,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
688
688
|
*
|
|
689
689
|
* ```
|
|
690
690
|
* <script type="module">
|
|
691
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
691
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
692
692
|
* new Monster.Constraint.Invalid();
|
|
693
693
|
* </script>
|
|
694
694
|
* ```
|
|
@@ -697,14 +697,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
697
697
|
*
|
|
698
698
|
* ```
|
|
699
699
|
* <script type="module">
|
|
700
|
-
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
700
|
+
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/constraints/invalid.js';
|
|
701
701
|
* new Invalid();
|
|
702
702
|
* </script>
|
|
703
703
|
* ```
|
|
704
704
|
*
|
|
705
705
|
* @example
|
|
706
706
|
*
|
|
707
|
-
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
707
|
+
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/constraints/invalid.js';
|
|
708
708
|
*
|
|
709
709
|
* new Invalid().isValid()
|
|
710
710
|
* .then(()=>console.log(true))
|
|
@@ -799,7 +799,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
799
799
|
*
|
|
800
800
|
* ```
|
|
801
801
|
* <script type="module">
|
|
802
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
802
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
803
803
|
* new Monster.Constraint.IsArray()
|
|
804
804
|
* </script>
|
|
805
805
|
* ```
|
|
@@ -808,14 +808,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
808
808
|
*
|
|
809
809
|
* ```
|
|
810
810
|
* <script type="module">
|
|
811
|
-
* import {IsArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
811
|
+
* import {IsArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/constraints/isarray.js';
|
|
812
812
|
* console.log(new IsArray())
|
|
813
813
|
* </script>
|
|
814
814
|
* ```
|
|
815
815
|
*
|
|
816
816
|
* @example
|
|
817
817
|
*
|
|
818
|
-
* import {IsArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
818
|
+
* import {IsArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/constraints/isarray.js';
|
|
819
819
|
*
|
|
820
820
|
* new IsArray()
|
|
821
821
|
* .isValid([])
|
|
@@ -904,7 +904,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
904
904
|
*
|
|
905
905
|
* ```
|
|
906
906
|
* <script type="module">
|
|
907
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
907
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
908
908
|
* Monster.Types.isIterable(null) // ↦ false
|
|
909
909
|
* Monster.Types.isIterable('hello') // ↦ true
|
|
910
910
|
* Monster.Types.isIterable([]) // ↦ true
|
|
@@ -915,7 +915,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
915
915
|
*
|
|
916
916
|
* ```
|
|
917
917
|
* <script type="module">
|
|
918
|
-
* import {isIterable} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
918
|
+
* import {isIterable} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/is.js';
|
|
919
919
|
* isIterable(null) // ↦ false
|
|
920
920
|
* isIterable('hello') // ↦ true
|
|
921
921
|
* isIterable([]) // ↦ true
|
|
@@ -943,7 +943,7 @@ function isIterable(value) {
|
|
|
943
943
|
*
|
|
944
944
|
* ```
|
|
945
945
|
* <script type="module">
|
|
946
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
946
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
947
947
|
* Monster.Types.isPrimitive('2') // ↦ false
|
|
948
948
|
* Monster.Types.isPrimitive([]) // ↦ true
|
|
949
949
|
* </script>
|
|
@@ -953,7 +953,7 @@ function isIterable(value) {
|
|
|
953
953
|
*
|
|
954
954
|
* ```
|
|
955
955
|
* <script type="module">
|
|
956
|
-
* import {isPrimitive} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
956
|
+
* import {isPrimitive} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/is.js';
|
|
957
957
|
* isPrimitive('2')) // ↦ true
|
|
958
958
|
* isPrimitive([])) // ↦ false
|
|
959
959
|
* </script>
|
|
@@ -991,7 +991,7 @@ function isPrimitive(value) {
|
|
|
991
991
|
*
|
|
992
992
|
* ```
|
|
993
993
|
* <script type="module">
|
|
994
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
994
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
995
995
|
* Monster.Types.isSymbol('2') // ↦ false
|
|
996
996
|
* Monster.Types.isSymbol(Symbol('test') // ↦ true
|
|
997
997
|
* </script>
|
|
@@ -1001,7 +1001,7 @@ function isPrimitive(value) {
|
|
|
1001
1001
|
*
|
|
1002
1002
|
* ```
|
|
1003
1003
|
* <script type="module">
|
|
1004
|
-
* import {isSymbol} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
1004
|
+
* import {isSymbol} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/is.js';
|
|
1005
1005
|
* isSymbol(Symbol('a'))) // ↦ true
|
|
1006
1006
|
* isSymbol([]) // ↦ false
|
|
1007
1007
|
* </script>
|
|
@@ -1027,7 +1027,7 @@ function isSymbol(value) {
|
|
|
1027
1027
|
*
|
|
1028
1028
|
* ```
|
|
1029
1029
|
* <script type="module">
|
|
1030
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
1030
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
1031
1031
|
* Monster.Types.isBoolean('2') // ↦ false
|
|
1032
1032
|
* Monster.Types.isBoolean([]) // ↦ false
|
|
1033
1033
|
* Monster.Types.isBoolean(true) // ↦ true
|
|
@@ -1038,7 +1038,7 @@ function isSymbol(value) {
|
|
|
1038
1038
|
*
|
|
1039
1039
|
* ```
|
|
1040
1040
|
* <script type="module">
|
|
1041
|
-
* import {isBoolean} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
1041
|
+
* import {isBoolean} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/is.js';
|
|
1042
1042
|
* isBoolean('2')) // ↦ false
|
|
1043
1043
|
* isBoolean([])) // ↦ false
|
|
1044
1044
|
* isBoolean(2>4)) // ↦ true
|
|
@@ -1069,7 +1069,7 @@ function isBoolean(value) {
|
|
|
1069
1069
|
*
|
|
1070
1070
|
* ```
|
|
1071
1071
|
* <script type="module">
|
|
1072
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
1072
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
1073
1073
|
* Monster.Types.isString('2') // ↦ true
|
|
1074
1074
|
* Monster.Types.isString([]) // ↦ false
|
|
1075
1075
|
* </script>
|
|
@@ -1079,7 +1079,7 @@ function isBoolean(value) {
|
|
|
1079
1079
|
*
|
|
1080
1080
|
* ```
|
|
1081
1081
|
* <script type="module">
|
|
1082
|
-
* import {isString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
1082
|
+
* import {isString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/is.js';
|
|
1083
1083
|
* isString('2')) // ↦ true
|
|
1084
1084
|
* isString([])) // ↦ false
|
|
1085
1085
|
* </script>
|
|
@@ -1109,7 +1109,7 @@ function isString(value) {
|
|
|
1109
1109
|
*
|
|
1110
1110
|
* ```
|
|
1111
1111
|
* <script type="module">
|
|
1112
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
1112
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
1113
1113
|
* Monster.Types.isObject('2') // ↦ false
|
|
1114
1114
|
* Monster.Types.isObject([]) // ↦ false
|
|
1115
1115
|
* Monster.Types.isObject({}) // ↦ true
|
|
@@ -1120,7 +1120,7 @@ function isString(value) {
|
|
|
1120
1120
|
*
|
|
1121
1121
|
* ```
|
|
1122
1122
|
* <script type="module">
|
|
1123
|
-
* import {isObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
1123
|
+
* import {isObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/is.js';
|
|
1124
1124
|
* isObject('2')) // ↦ false
|
|
1125
1125
|
* isObject([])) // ↦ false
|
|
1126
1126
|
* </script>
|
|
@@ -1153,7 +1153,7 @@ function isObject(value) {
|
|
|
1153
1153
|
*
|
|
1154
1154
|
* ```
|
|
1155
1155
|
* <script type="module">
|
|
1156
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
1156
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
1157
1157
|
* Monster.Types.isInstance('2') // ↦ false
|
|
1158
1158
|
* Monster.Types.isInstance([]) // ↦ false
|
|
1159
1159
|
* Monster.Types.isInstance({}) // ↦ true
|
|
@@ -1164,7 +1164,7 @@ function isObject(value) {
|
|
|
1164
1164
|
*
|
|
1165
1165
|
* ```
|
|
1166
1166
|
* <script type="module">
|
|
1167
|
-
* import {isInstance} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
1167
|
+
* import {isInstance} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/is.js';
|
|
1168
1168
|
* isInstance('2')) // ↦ false
|
|
1169
1169
|
* isInstance([])) // ↦ false
|
|
1170
1170
|
* </script>
|
|
@@ -1194,7 +1194,7 @@ function isInstance(value, instance) {
|
|
|
1194
1194
|
*
|
|
1195
1195
|
* ```
|
|
1196
1196
|
* <script type="module">
|
|
1197
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
1197
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
1198
1198
|
* Monster.Types.isArray('2') // ↦ false
|
|
1199
1199
|
* Monster.Types.isArray([]) // ↦ true
|
|
1200
1200
|
* </script>
|
|
@@ -1204,7 +1204,7 @@ function isInstance(value, instance) {
|
|
|
1204
1204
|
*
|
|
1205
1205
|
* ```
|
|
1206
1206
|
* <script type="module">
|
|
1207
|
-
* import {isArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
1207
|
+
* import {isArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/is.js';
|
|
1208
1208
|
* isArray('2')) // ↦ false
|
|
1209
1209
|
* isArray([])) // ↦ true
|
|
1210
1210
|
* </script>
|
|
@@ -1231,7 +1231,7 @@ function isArray(value) {
|
|
|
1231
1231
|
*
|
|
1232
1232
|
* ```
|
|
1233
1233
|
* <script type="module">
|
|
1234
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
1234
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
1235
1235
|
* Monster.Types.isFunction(()=>{}) // ↦ true
|
|
1236
1236
|
* Monster.Types.isFunction('2') // ↦ false
|
|
1237
1237
|
* Monster.Types.isFunction([]) // ↦ false
|
|
@@ -1242,7 +1242,7 @@ function isArray(value) {
|
|
|
1242
1242
|
*
|
|
1243
1243
|
* ```
|
|
1244
1244
|
* <script type="module">
|
|
1245
|
-
* import {isFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
1245
|
+
* import {isFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/is.js';
|
|
1246
1246
|
* isFunction(()=>{}) // ↦ true
|
|
1247
1247
|
* isFunction('2')) // ↦ false
|
|
1248
1248
|
* isFunction([])) // ↦ false
|
|
@@ -1276,7 +1276,7 @@ function isFunction(value) {
|
|
|
1276
1276
|
*
|
|
1277
1277
|
* ```
|
|
1278
1278
|
* <script type="module">
|
|
1279
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
1279
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
1280
1280
|
* Monster.Types.isInteger(()=>{}) // ↦ true
|
|
1281
1281
|
* Monster.Types.isInteger('2') // ↦ false
|
|
1282
1282
|
* Monster.Types.isInteger(2) // ↦ true
|
|
@@ -1287,7 +1287,7 @@ function isFunction(value) {
|
|
|
1287
1287
|
*
|
|
1288
1288
|
* ```
|
|
1289
1289
|
* <script type="module">
|
|
1290
|
-
* import {isInteger} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
1290
|
+
* import {isInteger} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/is.js';
|
|
1291
1291
|
* isInteger(()=>{}) // ↦ true
|
|
1292
1292
|
* isInteger('2')) // ↦ false
|
|
1293
1293
|
* isInteger(2)) // ↦ true
|
|
@@ -1360,7 +1360,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
1360
1360
|
*
|
|
1361
1361
|
* ```
|
|
1362
1362
|
* <script type="module">
|
|
1363
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
1363
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
1364
1364
|
* console.log(new Monster.Constraint.IsObject())
|
|
1365
1365
|
* </script>
|
|
1366
1366
|
* ```
|
|
@@ -1369,14 +1369,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
1369
1369
|
*
|
|
1370
1370
|
* ```
|
|
1371
1371
|
* <script type="module">
|
|
1372
|
-
* import {IsObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
1372
|
+
* import {IsObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/constraints/isobject.js';
|
|
1373
1373
|
* console.log(new IsObject())
|
|
1374
1374
|
* </script>
|
|
1375
1375
|
* ```
|
|
1376
1376
|
*
|
|
1377
1377
|
* @example
|
|
1378
1378
|
*
|
|
1379
|
-
* import {IsObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
1379
|
+
* import {IsObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/constraints/isobject.js';
|
|
1380
1380
|
*
|
|
1381
1381
|
* new IsObject()
|
|
1382
1382
|
* .isValid({})
|
|
@@ -1479,7 +1479,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
1479
1479
|
*
|
|
1480
1480
|
* ```
|
|
1481
1481
|
* <script type="module">
|
|
1482
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
1482
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
1483
1483
|
* new Monster.Constraint.OrOperator();
|
|
1484
1484
|
* </script>
|
|
1485
1485
|
* ```
|
|
@@ -1488,16 +1488,16 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
1488
1488
|
*
|
|
1489
1489
|
* ```
|
|
1490
1490
|
* <script type="module">
|
|
1491
|
-
* import {OrOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
1491
|
+
* import {OrOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/constraint/oroperator.js';
|
|
1492
1492
|
* new OrOperator();
|
|
1493
1493
|
* </script>
|
|
1494
1494
|
* ```
|
|
1495
1495
|
*
|
|
1496
1496
|
* @example
|
|
1497
1497
|
*
|
|
1498
|
-
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
1499
|
-
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
1500
|
-
* import {OrOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
1498
|
+
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/constraints/valid.js';
|
|
1499
|
+
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/constraints/invalid.js';
|
|
1500
|
+
* import {OrOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/constraints/oroperator.js';
|
|
1501
1501
|
*
|
|
1502
1502
|
* new OrOperator(
|
|
1503
1503
|
* new Valid(), new Invalid()).isValid()
|
|
@@ -1622,7 +1622,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
1622
1622
|
*
|
|
1623
1623
|
* ```
|
|
1624
1624
|
* <script type="module">
|
|
1625
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
1625
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
1626
1626
|
* new Monster.Constraint.Valid();
|
|
1627
1627
|
* </script>
|
|
1628
1628
|
* ```
|
|
@@ -1631,14 +1631,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
1631
1631
|
*
|
|
1632
1632
|
* ```
|
|
1633
1633
|
* <script type="module">
|
|
1634
|
-
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
1634
|
+
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/constraints/valid.js';
|
|
1635
1635
|
* new Valid();
|
|
1636
1636
|
* </script>
|
|
1637
1637
|
* ```
|
|
1638
1638
|
*
|
|
1639
1639
|
* @example
|
|
1640
1640
|
*
|
|
1641
|
-
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
1641
|
+
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/constraints/valid.js';
|
|
1642
1642
|
*
|
|
1643
1643
|
* new Valid().isValid()
|
|
1644
1644
|
* .then(()=>console.log(true))
|
|
@@ -1747,7 +1747,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
1747
1747
|
*
|
|
1748
1748
|
* ```
|
|
1749
1749
|
* <script type="module">
|
|
1750
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
1750
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
1751
1751
|
* console.log(Monster.Data.buildMap())
|
|
1752
1752
|
* </script>
|
|
1753
1753
|
* ```
|
|
@@ -1756,7 +1756,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
1756
1756
|
*
|
|
1757
1757
|
* ```
|
|
1758
1758
|
* <script type="module">
|
|
1759
|
-
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
1759
|
+
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/data/buildmap.js';
|
|
1760
1760
|
* console.log(buildMap())
|
|
1761
1761
|
* </script>
|
|
1762
1762
|
* ```
|
|
@@ -1767,7 +1767,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
1767
1767
|
*
|
|
1768
1768
|
* @example
|
|
1769
1769
|
*
|
|
1770
|
-
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
1770
|
+
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/data/buildmap.js';
|
|
1771
1771
|
* // a typical data structure as reported by an api
|
|
1772
1772
|
*
|
|
1773
1773
|
* let map;
|
|
@@ -1860,6 +1860,7 @@ function buildMap(subject, selector, valueTemplate, keyTemplate, filter) {
|
|
|
1860
1860
|
* @param {Monster.Data~exampleFilterCallback} [filter]
|
|
1861
1861
|
* @param {function} callback
|
|
1862
1862
|
* @return {Map}
|
|
1863
|
+
* @throws {TypeError} selector is neither a string nor a function
|
|
1863
1864
|
*/
|
|
1864
1865
|
|
|
1865
1866
|
|
|
@@ -1877,7 +1878,7 @@ function assembleParts(subject, selector, filter, callback) {
|
|
|
1877
1878
|
map = new Map();
|
|
1878
1879
|
buildFlatMap.call(map, subject, selector);
|
|
1879
1880
|
} else {
|
|
1880
|
-
throw new TypeError('
|
|
1881
|
+
throw new TypeError('selector is neither a string nor a function');
|
|
1881
1882
|
}
|
|
1882
1883
|
|
|
1883
1884
|
if (!(map instanceof Map)) {
|
|
@@ -1997,7 +1998,7 @@ function buildFlatMap(subject, selector, key, parentMap) {
|
|
|
1997
1998
|
* Alternatively to a string selector a callback can be specified. this must return a map.
|
|
1998
1999
|
*
|
|
1999
2000
|
* @example
|
|
2000
|
-
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2001
|
+
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/data/buildmap.js';
|
|
2001
2002
|
*
|
|
2002
2003
|
* let obj = {
|
|
2003
2004
|
* "data": [
|
|
@@ -2200,7 +2201,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2200
2201
|
*
|
|
2201
2202
|
* ```
|
|
2202
2203
|
* <script type="module">
|
|
2203
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2204
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
2204
2205
|
* console.log(Monster.Types.validateIterable('2')) // ↦ TypeError
|
|
2205
2206
|
* console.log(Monster.Types.validateIterable([])) // ↦ value
|
|
2206
2207
|
* </script>
|
|
@@ -2210,7 +2211,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2210
2211
|
*
|
|
2211
2212
|
* ```
|
|
2212
2213
|
* <script type="module">
|
|
2213
|
-
* import {validateIterable} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2214
|
+
* import {validateIterable} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/validate.js';
|
|
2214
2215
|
* console.log(validateIterable('2')) // ↦ TypeError
|
|
2215
2216
|
* console.log(validateIterable([])) // ↦ value
|
|
2216
2217
|
* </script>
|
|
@@ -2241,7 +2242,7 @@ function validateIterable(value) {
|
|
|
2241
2242
|
*
|
|
2242
2243
|
* ```
|
|
2243
2244
|
* <script type="module">
|
|
2244
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2245
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
2245
2246
|
* console.log(Monster.Types.validatePrimitive('2')) // ↦ value
|
|
2246
2247
|
* console.log(Monster.Types.validatePrimitive([])) // ↦ TypeError
|
|
2247
2248
|
* </script>
|
|
@@ -2251,7 +2252,7 @@ function validateIterable(value) {
|
|
|
2251
2252
|
*
|
|
2252
2253
|
* ```
|
|
2253
2254
|
* <script type="module">
|
|
2254
|
-
* import {validatePrimitive} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2255
|
+
* import {validatePrimitive} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/validate.js';
|
|
2255
2256
|
* console.log(validatePrimitive('2')) // ↦ value
|
|
2256
2257
|
* console.log(validatePrimitive([])) // ↦ TypeError
|
|
2257
2258
|
* </script>
|
|
@@ -2283,7 +2284,7 @@ function validatePrimitive(value) {
|
|
|
2283
2284
|
*
|
|
2284
2285
|
* ```
|
|
2285
2286
|
* <script type="module">
|
|
2286
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2287
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
2287
2288
|
* console.log(Monster.Types.validateBoolean(true)) // ↦ value
|
|
2288
2289
|
* console.log(Monster.Types.validateBoolean('2')) // ↦ TypeError
|
|
2289
2290
|
* console.log(Monster.Types.validateBoolean([])) // ↦ TypeError
|
|
@@ -2294,7 +2295,7 @@ function validatePrimitive(value) {
|
|
|
2294
2295
|
*
|
|
2295
2296
|
* ```
|
|
2296
2297
|
* <script type="module">
|
|
2297
|
-
* import {validateBoolean} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2298
|
+
* import {validateBoolean} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/validate.js';
|
|
2298
2299
|
* console.log(validateBoolean(false)) // ↦ value
|
|
2299
2300
|
* console.log(validateBoolean('2')) // ↦ TypeError
|
|
2300
2301
|
* console.log(validateBoolean([])) // ↦ TypeError
|
|
@@ -2325,7 +2326,7 @@ function validateBoolean(value) {
|
|
|
2325
2326
|
*
|
|
2326
2327
|
* ```
|
|
2327
2328
|
* <script type="module">
|
|
2328
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2329
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
2329
2330
|
* console.log(Monster.Types.validateString('2')) // ↦ value
|
|
2330
2331
|
* console.log(Monster.Types.validateString([])) // ↦ TypeError
|
|
2331
2332
|
* </script>
|
|
@@ -2335,7 +2336,7 @@ function validateBoolean(value) {
|
|
|
2335
2336
|
*
|
|
2336
2337
|
* ```
|
|
2337
2338
|
* <script type="module">
|
|
2338
|
-
* import {validateString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2339
|
+
* import {validateString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/validate.js';
|
|
2339
2340
|
* console.log(validateString('2')) // ↦ value
|
|
2340
2341
|
* console.log(validateString([])) // ↦ TypeError
|
|
2341
2342
|
* </script>
|
|
@@ -2364,7 +2365,7 @@ function validateString(value) {
|
|
|
2364
2365
|
*
|
|
2365
2366
|
* ```
|
|
2366
2367
|
* <script type="module">
|
|
2367
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2368
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
2368
2369
|
* console.log(Monster.Types.validateObject({})) // ↦ value
|
|
2369
2370
|
* console.log(Monster.Types.validateObject('2')) // ↦ TypeError
|
|
2370
2371
|
* console.log(Monster.Types.validateObject([])) // ↦ TypeError
|
|
@@ -2375,7 +2376,7 @@ function validateString(value) {
|
|
|
2375
2376
|
*
|
|
2376
2377
|
* ```
|
|
2377
2378
|
* <script type="module">
|
|
2378
|
-
* import {validateObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2379
|
+
* import {validateObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/validate.js';
|
|
2379
2380
|
* console.log(validateObject({})) // ↦ value
|
|
2380
2381
|
* console.log(validateObject('2')) // ↦ TypeError
|
|
2381
2382
|
* console.log(validateObject([])) // ↦ TypeError
|
|
@@ -2405,7 +2406,7 @@ function validateObject(value) {
|
|
|
2405
2406
|
*
|
|
2406
2407
|
* ```
|
|
2407
2408
|
* <script type="module">
|
|
2408
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2409
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
2409
2410
|
* console.log(Monster.Types.validateInstance({}, Object)) // ↦ value
|
|
2410
2411
|
* console.log(Monster.Types.validateInstance('2', Object)) // ↦ TypeError
|
|
2411
2412
|
* console.log(Monster.Types.validateInstance([], Object)) // ↦ TypeError
|
|
@@ -2416,7 +2417,7 @@ function validateObject(value) {
|
|
|
2416
2417
|
*
|
|
2417
2418
|
* ```
|
|
2418
2419
|
* <script type="module">
|
|
2419
|
-
* import {validateInstance} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2420
|
+
* import {validateInstance} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/validate.js';
|
|
2420
2421
|
* console.log(validateInstance({}, Object)) // ↦ value
|
|
2421
2422
|
* console.log(validateInstance('2', Object)) // ↦ TypeError
|
|
2422
2423
|
* console.log(validateInstance([], Object)) // ↦ TypeError
|
|
@@ -2456,7 +2457,7 @@ function validateInstance(value, instance) {
|
|
|
2456
2457
|
*
|
|
2457
2458
|
* ```
|
|
2458
2459
|
* <script type="module">
|
|
2459
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2460
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
2460
2461
|
* console.log(Monster.Types.validateArray('2')) // ↦ TypeError
|
|
2461
2462
|
* console.log(Monster.Types.validateArray([])) // ↦ value
|
|
2462
2463
|
* </script>
|
|
@@ -2466,7 +2467,7 @@ function validateInstance(value, instance) {
|
|
|
2466
2467
|
*
|
|
2467
2468
|
* ```
|
|
2468
2469
|
* <script type="module">
|
|
2469
|
-
* import {validateArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2470
|
+
* import {validateArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/validate.js';
|
|
2470
2471
|
* console.log(validateArray('2')) // ↦ TypeError
|
|
2471
2472
|
* console.log(validateArray([])) // ↦ value
|
|
2472
2473
|
* </script>
|
|
@@ -2495,7 +2496,7 @@ function validateArray(value) {
|
|
|
2495
2496
|
*
|
|
2496
2497
|
* ```
|
|
2497
2498
|
* <script type="module">
|
|
2498
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2499
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
2499
2500
|
* console.log(Monster.Types.validateSymbol('2')) // ↦ TypeError
|
|
2500
2501
|
* console.log(Monster.Types.validateSymbol([])) // ↦ value
|
|
2501
2502
|
* </script>
|
|
@@ -2505,7 +2506,7 @@ function validateArray(value) {
|
|
|
2505
2506
|
*
|
|
2506
2507
|
* ```
|
|
2507
2508
|
* <script type="module">
|
|
2508
|
-
* import {validateSymbol} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2509
|
+
* import {validateSymbol} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/validate.js';
|
|
2509
2510
|
* console.log(validateSymbol('2')) // ↦ TypeError
|
|
2510
2511
|
* console.log(validateSymbol()) // ↦ value
|
|
2511
2512
|
* </script>
|
|
@@ -2534,7 +2535,7 @@ function validateSymbol(value) {
|
|
|
2534
2535
|
*
|
|
2535
2536
|
* ```
|
|
2536
2537
|
* <script type="module">
|
|
2537
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2538
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
2538
2539
|
* console.log(Monster.Types.validateFunction(()=>{})) // ↦ value
|
|
2539
2540
|
* console.log(Monster.Types.validateFunction('2')) // ↦ TypeError
|
|
2540
2541
|
* console.log(Monster.Types.validateFunction([])) // ↦ TypeError
|
|
@@ -2545,7 +2546,7 @@ function validateSymbol(value) {
|
|
|
2545
2546
|
*
|
|
2546
2547
|
* ```
|
|
2547
2548
|
* <script type="module">
|
|
2548
|
-
* import {validateFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2549
|
+
* import {validateFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/validate.js';
|
|
2549
2550
|
* console.log(validateFunction(()=>{})) // ↦ value
|
|
2550
2551
|
* console.log(validateFunction('2')) // ↦ TypeError
|
|
2551
2552
|
* console.log(validateFunction([])) // ↦ TypeError
|
|
@@ -2575,7 +2576,7 @@ function validateFunction(value) {
|
|
|
2575
2576
|
*
|
|
2576
2577
|
* ```
|
|
2577
2578
|
* <script type="module">
|
|
2578
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2579
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
2579
2580
|
* console.log(Monster.Types.validateInteger(true)) // ↦ TypeError
|
|
2580
2581
|
* console.log(Monster.Types.validateInteger('2')) // ↦ TypeError
|
|
2581
2582
|
* console.log(Monster.Types.validateInteger(2)) // ↦ value
|
|
@@ -2586,7 +2587,7 @@ function validateFunction(value) {
|
|
|
2586
2587
|
*
|
|
2587
2588
|
* ```
|
|
2588
2589
|
* <script type="module">
|
|
2589
|
-
* import {validateFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2590
|
+
* import {validateFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/validate.js';
|
|
2590
2591
|
* console.log(validateInteger(true)) // ↦ TypeError
|
|
2591
2592
|
* console.log(validateInteger('2')) // ↦ TypeError
|
|
2592
2593
|
* console.log(validateInteger(2)) // ↦ value
|
|
@@ -2652,7 +2653,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2652
2653
|
*
|
|
2653
2654
|
* ```
|
|
2654
2655
|
* <script type="module">
|
|
2655
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2656
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
2656
2657
|
* Monster.Util.clone({})
|
|
2657
2658
|
* </script>
|
|
2658
2659
|
* ```
|
|
@@ -2661,7 +2662,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2661
2662
|
*
|
|
2662
2663
|
* ```
|
|
2663
2664
|
* <script type="module">
|
|
2664
|
-
* import {clone} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2665
|
+
* import {clone} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/util/clone.js';
|
|
2665
2666
|
* clone({})
|
|
2666
2667
|
* </script>
|
|
2667
2668
|
* ```
|
|
@@ -2873,7 +2874,7 @@ function getGlobal() {
|
|
|
2873
2874
|
*
|
|
2874
2875
|
* ```
|
|
2875
2876
|
* <script type="module">
|
|
2876
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2877
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
2877
2878
|
* Monster.Types.getGlobalObject('document')
|
|
2878
2879
|
* // ↦ { }
|
|
2879
2880
|
* </script>
|
|
@@ -2883,7 +2884,7 @@ function getGlobal() {
|
|
|
2883
2884
|
*
|
|
2884
2885
|
* ```
|
|
2885
2886
|
* <script type="module">
|
|
2886
|
-
* import {getGlobalObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2887
|
+
* import {getGlobalObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/global.js';
|
|
2887
2888
|
* getGlobalObject('document')
|
|
2888
2889
|
* // ↦ { }
|
|
2889
2890
|
* </script>
|
|
@@ -2915,7 +2916,7 @@ function getGlobalObject(name) {
|
|
|
2915
2916
|
*
|
|
2916
2917
|
* ```
|
|
2917
2918
|
* <script type="module">
|
|
2918
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2919
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
2919
2920
|
* console.log(Monster.Types.getGlobalFunction('parseInt')) // ↦ f parseInt() { }
|
|
2920
2921
|
* </script>
|
|
2921
2922
|
* ```
|
|
@@ -2924,7 +2925,7 @@ function getGlobalObject(name) {
|
|
|
2924
2925
|
*
|
|
2925
2926
|
* ```
|
|
2926
2927
|
* <script type="module">
|
|
2927
|
-
* import {getGlobalFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2928
|
+
* import {getGlobalFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/global.js';
|
|
2928
2929
|
* console.log(getGlobalFunction('parseInt')) // ↦ f parseInt() { }
|
|
2929
2930
|
* </script>
|
|
2930
2931
|
* ```
|
|
@@ -2975,7 +2976,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2975
2976
|
*
|
|
2976
2977
|
* ```
|
|
2977
2978
|
* <script type="module">
|
|
2978
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2979
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
2979
2980
|
* console.log(Monster.Types.typeOf())
|
|
2980
2981
|
* </script>
|
|
2981
2982
|
* ```
|
|
@@ -2984,14 +2985,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2984
2985
|
*
|
|
2985
2986
|
* ```
|
|
2986
2987
|
* <script type="module">
|
|
2987
|
-
* import {typeOf} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2988
|
+
* import {typeOf} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/typeof.js';
|
|
2988
2989
|
* console.log(typeOf())
|
|
2989
2990
|
* </script>
|
|
2990
2991
|
* ```
|
|
2991
2992
|
*
|
|
2992
2993
|
* @example
|
|
2993
2994
|
*
|
|
2994
|
-
* import {typeOf} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2995
|
+
* import {typeOf} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/typeof.js';
|
|
2995
2996
|
*
|
|
2996
2997
|
* console.log(typeOf(undefined)); // ↦ undefined
|
|
2997
2998
|
* console.log(typeOf("")); // ↦ string
|
|
@@ -3110,7 +3111,7 @@ var WILDCARD = '*';
|
|
|
3110
3111
|
*
|
|
3111
3112
|
* ```
|
|
3112
3113
|
* <script type="module">
|
|
3113
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
3114
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
3114
3115
|
* console.log(new Monster.Data.Pathfinder())
|
|
3115
3116
|
* </script>
|
|
3116
3117
|
* ```
|
|
@@ -3119,7 +3120,7 @@ var WILDCARD = '*';
|
|
|
3119
3120
|
*
|
|
3120
3121
|
* ```
|
|
3121
3122
|
* <script type="module">
|
|
3122
|
-
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
3123
|
+
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/data/pathfinder.js';
|
|
3123
3124
|
* console.log(new Pathfinder())
|
|
3124
3125
|
* </script>
|
|
3125
3126
|
* ```
|
|
@@ -3161,7 +3162,7 @@ var WILDCARD = '*';
|
|
|
3161
3162
|
*
|
|
3162
3163
|
* @example
|
|
3163
3164
|
*
|
|
3164
|
-
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
3165
|
+
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/data/pathfinder.js';
|
|
3165
3166
|
*
|
|
3166
3167
|
* let value = new Pathfinder({
|
|
3167
3168
|
* a: {
|
|
@@ -3187,7 +3188,7 @@ var WILDCARD = '*';
|
|
|
3187
3188
|
*
|
|
3188
3189
|
* @example
|
|
3189
3190
|
*
|
|
3190
|
-
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
3191
|
+
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/data/pathfinder.js';
|
|
3191
3192
|
*
|
|
3192
3193
|
* let p = new Pathfinder({
|
|
3193
3194
|
* a: {
|
|
@@ -3602,7 +3603,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
3602
3603
|
*
|
|
3603
3604
|
* ```
|
|
3604
3605
|
* <script type="module">
|
|
3605
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
3606
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
3606
3607
|
* console.log(new Monster.Types.Stack())
|
|
3607
3608
|
* </script>
|
|
3608
3609
|
* ```
|
|
@@ -3611,7 +3612,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
3611
3612
|
*
|
|
3612
3613
|
* ```
|
|
3613
3614
|
* <script type="module">
|
|
3614
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
3615
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/stack.js';
|
|
3615
3616
|
* console.log(new Stack())
|
|
3616
3617
|
* </script>
|
|
3617
3618
|
* ```
|
|
@@ -3746,7 +3747,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3746
3747
|
*
|
|
3747
3748
|
* ```
|
|
3748
3749
|
* <script type="module">
|
|
3749
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
3750
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
3750
3751
|
* Monster.Data.Diff(a, b)
|
|
3751
3752
|
* </script>
|
|
3752
3753
|
* ```
|
|
@@ -3755,14 +3756,14 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3755
3756
|
*
|
|
3756
3757
|
* ```
|
|
3757
3758
|
* <script type="module">
|
|
3758
|
-
* import {Diff} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
3759
|
+
* import {Diff} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/data/diff.js';
|
|
3759
3760
|
* Diff(a, b)
|
|
3760
3761
|
* </script>
|
|
3761
3762
|
* ```
|
|
3762
3763
|
*
|
|
3763
3764
|
* @example
|
|
3764
3765
|
*
|
|
3765
|
-
* import {Diff} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
3766
|
+
* import {Diff} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/data/diff.js';
|
|
3766
3767
|
*
|
|
3767
3768
|
* // given are two objects x and y.
|
|
3768
3769
|
*
|
|
@@ -4008,7 +4009,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4008
4009
|
*
|
|
4009
4010
|
* ```
|
|
4010
4011
|
* <script type="module">
|
|
4011
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
4012
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
4012
4013
|
* Monster.Data.extend(a, b)
|
|
4013
4014
|
* </script>
|
|
4014
4015
|
* ```
|
|
@@ -4017,7 +4018,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4017
4018
|
*
|
|
4018
4019
|
* ```
|
|
4019
4020
|
* <script type="module">
|
|
4020
|
-
* import {extend} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
4021
|
+
* import {extend} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/data/extend.js';
|
|
4021
4022
|
* extend(a, b)
|
|
4022
4023
|
* </script>
|
|
4023
4024
|
* ```
|
|
@@ -4146,7 +4147,7 @@ var DELIMITER = '|';
|
|
|
4146
4147
|
*
|
|
4147
4148
|
* ```
|
|
4148
4149
|
* <script type="module">
|
|
4149
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
4150
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
4150
4151
|
* new Monster.Data.Pipe()
|
|
4151
4152
|
* </script>
|
|
4152
4153
|
* ```
|
|
@@ -4155,7 +4156,7 @@ var DELIMITER = '|';
|
|
|
4155
4156
|
*
|
|
4156
4157
|
* ```
|
|
4157
4158
|
* <script type="module">
|
|
4158
|
-
* import {Pipe} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
4159
|
+
* import {Pipe} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/data/pipe.js';
|
|
4159
4160
|
* new Pipe()
|
|
4160
4161
|
* </script>
|
|
4161
4162
|
* ```
|
|
@@ -4166,7 +4167,7 @@ var DELIMITER = '|';
|
|
|
4166
4167
|
* the word is then converted to uppercase letters and a prefix Hello is added. the two backslash safe the space char.
|
|
4167
4168
|
*
|
|
4168
4169
|
* @example
|
|
4169
|
-
* import {Pipe} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
4170
|
+
* import {Pipe} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/data/pipe.js';
|
|
4170
4171
|
*
|
|
4171
4172
|
* let obj = {
|
|
4172
4173
|
* a: {
|
|
@@ -4328,7 +4329,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
4328
4329
|
*
|
|
4329
4330
|
* ```
|
|
4330
4331
|
* <script type="module">
|
|
4331
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
4332
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
4332
4333
|
* new Monster.Data.Transformer()
|
|
4333
4334
|
* </script>
|
|
4334
4335
|
* ```
|
|
@@ -4337,7 +4338,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
4337
4338
|
*
|
|
4338
4339
|
* ```
|
|
4339
4340
|
* <script type="module">
|
|
4340
|
-
* import {Transformer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
4341
|
+
* import {Transformer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/data/transformer.js';
|
|
4341
4342
|
* new Transformer()
|
|
4342
4343
|
* </script>
|
|
4343
4344
|
* ```
|
|
@@ -4423,7 +4424,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
4423
4424
|
*
|
|
4424
4425
|
* @example
|
|
4425
4426
|
*
|
|
4426
|
-
* import {Transformer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
4427
|
+
* import {Transformer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/data/transformer.js';
|
|
4427
4428
|
*
|
|
4428
4429
|
* const transformer = new Transformer("tolower")
|
|
4429
4430
|
*
|
|
@@ -4956,7 +4957,7 @@ var internalCounter = new Map();
|
|
|
4956
4957
|
*
|
|
4957
4958
|
* ```
|
|
4958
4959
|
* <script type="module">
|
|
4959
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
4960
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
4960
4961
|
* console.log(new Monster.Types.ID())
|
|
4961
4962
|
* </script>
|
|
4962
4963
|
* ```
|
|
@@ -4965,7 +4966,7 @@ var internalCounter = new Map();
|
|
|
4965
4966
|
*
|
|
4966
4967
|
* ```
|
|
4967
4968
|
* <script type="module">
|
|
4968
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
4969
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/id.js';
|
|
4969
4970
|
* console.log(new ID())
|
|
4970
4971
|
* </script>
|
|
4971
4972
|
* ```
|
|
@@ -5088,7 +5089,7 @@ var ATTRIBUTEPREFIX = "data-monster-";
|
|
|
5088
5089
|
*
|
|
5089
5090
|
* ```
|
|
5090
5091
|
* <script type="module">
|
|
5091
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
5092
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
5092
5093
|
* console.log(new Monster.DOM.Assembler())
|
|
5093
5094
|
* </script>
|
|
5094
5095
|
* ```
|
|
@@ -5097,7 +5098,7 @@ var ATTRIBUTEPREFIX = "data-monster-";
|
|
|
5097
5098
|
*
|
|
5098
5099
|
* ```
|
|
5099
5100
|
* <script type="module">
|
|
5100
|
-
* import {Assembler} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
5101
|
+
* import {Assembler} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/dom/assembler.js';
|
|
5101
5102
|
* console.log(new Assembler())
|
|
5102
5103
|
* </script>
|
|
5103
5104
|
* ```
|
|
@@ -5238,7 +5239,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
5238
5239
|
*
|
|
5239
5240
|
* ```
|
|
5240
5241
|
* <script type="module">
|
|
5241
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
5242
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
5242
5243
|
* new Monster.Types.ProxyObserver()
|
|
5243
5244
|
* </script>
|
|
5244
5245
|
* ```
|
|
@@ -5247,7 +5248,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
5247
5248
|
*
|
|
5248
5249
|
* ```
|
|
5249
5250
|
* <script type="module">
|
|
5250
|
-
* import {ProxyObserver} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
5251
|
+
* import {ProxyObserver} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/proxyobserver.js';
|
|
5251
5252
|
* new ProxyObserver()
|
|
5252
5253
|
* </script>
|
|
5253
5254
|
* ```
|
|
@@ -5258,9 +5259,9 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
5258
5259
|
*
|
|
5259
5260
|
* @example
|
|
5260
5261
|
*
|
|
5261
|
-
* import {ProxyObserver} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
5262
|
-
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
5263
|
-
* import {isObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
5262
|
+
* import {ProxyObserver} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/proxyobserver.js';
|
|
5263
|
+
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/observer.js';
|
|
5264
|
+
* import {isObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/is.js';
|
|
5264
5265
|
*
|
|
5265
5266
|
* const o = new Observer(function () {
|
|
5266
5267
|
* if (isObject(this) && this instanceof ProxyObserver) {
|
|
@@ -5585,26 +5586,21 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
5585
5586
|
* You can call the method via the monster namespace `new Monster.Types.Observer()`.
|
|
5586
5587
|
*
|
|
5587
5588
|
* ```
|
|
5588
|
-
*
|
|
5589
|
-
*
|
|
5590
|
-
* console.log(new Monster.Types.Observer())
|
|
5591
|
-
* </script>
|
|
5589
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
5590
|
+
* new Monster.Types.Observer()
|
|
5592
5591
|
* ```
|
|
5593
5592
|
*
|
|
5594
5593
|
* Alternatively, you can also integrate this function individually.
|
|
5595
5594
|
*
|
|
5596
5595
|
* ```
|
|
5597
|
-
*
|
|
5598
|
-
*
|
|
5599
|
-
* console.log(new Observer())
|
|
5600
|
-
* </script>
|
|
5596
|
+
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/observer.js';
|
|
5597
|
+
* new Observer()
|
|
5601
5598
|
* ```
|
|
5602
5599
|
*
|
|
5603
5600
|
* The update method is called with the subject object as this pointer. For this reason the callback should not
|
|
5604
5601
|
* be an arrow function, because it gets the this pointer of its own context.
|
|
5605
5602
|
*
|
|
5606
5603
|
* ```
|
|
5607
|
-
* <script>
|
|
5608
5604
|
* new Observer(()=>{
|
|
5609
5605
|
* // this is not subject
|
|
5610
5606
|
* })
|
|
@@ -5612,24 +5608,21 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
5612
5608
|
* new Observer(function() {
|
|
5613
5609
|
* // this is subject
|
|
5614
5610
|
* })
|
|
5615
|
-
* </script>
|
|
5616
5611
|
* ```
|
|
5617
5612
|
*
|
|
5618
5613
|
* Additional arguments can be passed to the callback. To do this, simply specify them.
|
|
5619
5614
|
*
|
|
5620
5615
|
* ```
|
|
5621
|
-
* <script>
|
|
5622
5616
|
* Observer(function(a, b, c) {
|
|
5623
5617
|
* console.log(a, b, c); // ↦ "a", 2, true
|
|
5624
5618
|
* }, "a", 2, true)
|
|
5625
|
-
* </script>
|
|
5626
5619
|
* ```
|
|
5627
5620
|
*
|
|
5628
5621
|
* The callback function must have as many parameters as arguments are given.
|
|
5629
5622
|
*
|
|
5630
5623
|
* @example
|
|
5631
5624
|
*
|
|
5632
|
-
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
5625
|
+
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/observer.js';
|
|
5633
5626
|
*
|
|
5634
5627
|
* const observer = new Observer(function(a, b, c) {
|
|
5635
5628
|
* console.log(this, a, b, c); // ↦ "a", 2, true
|
|
@@ -5829,7 +5822,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
5829
5822
|
*
|
|
5830
5823
|
* ```
|
|
5831
5824
|
* <script type="module">
|
|
5832
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
5825
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
5833
5826
|
* new Monster.Types.TokenList("myclass row")
|
|
5834
5827
|
* </script>
|
|
5835
5828
|
* ```
|
|
@@ -5838,7 +5831,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
5838
5831
|
*
|
|
5839
5832
|
* ```
|
|
5840
5833
|
* <script type="module">
|
|
5841
|
-
* import {TokenList} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
5834
|
+
* import {TokenList} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/tokenlist.js';
|
|
5842
5835
|
* new TokenList("myclass row")
|
|
5843
5836
|
* </script>
|
|
5844
5837
|
* ```
|
|
@@ -6261,7 +6254,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
6261
6254
|
*
|
|
6262
6255
|
* ```
|
|
6263
6256
|
* <script type="module">
|
|
6264
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
6257
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
6265
6258
|
* new Monster.Types.UniqueQueue()
|
|
6266
6259
|
* </script>
|
|
6267
6260
|
* ```
|
|
@@ -6270,7 +6263,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
6270
6263
|
*
|
|
6271
6264
|
* ```
|
|
6272
6265
|
* <script type="module">
|
|
6273
|
-
* import {UniqueQueue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
6266
|
+
* import {UniqueQueue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/uniquequeue.js';
|
|
6274
6267
|
* new UniqueQueue()
|
|
6275
6268
|
* </script>
|
|
6276
6269
|
* ```
|
|
@@ -6405,7 +6398,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
6405
6398
|
*
|
|
6406
6399
|
* ```
|
|
6407
6400
|
* <script type="module">
|
|
6408
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
6401
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
6409
6402
|
* new Monster.Types.Queue()
|
|
6410
6403
|
* </script>
|
|
6411
6404
|
* ```
|
|
@@ -6414,14 +6407,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
6414
6407
|
*
|
|
6415
6408
|
* ```
|
|
6416
6409
|
* <script type="module">
|
|
6417
|
-
* import {Queue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
6410
|
+
* import {Queue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/queue.js';
|
|
6418
6411
|
* new Queue()
|
|
6419
6412
|
* </script>
|
|
6420
6413
|
* ```
|
|
6421
6414
|
*
|
|
6422
6415
|
* @example
|
|
6423
6416
|
*
|
|
6424
|
-
* import {Queue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
6417
|
+
* import {Queue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/queue.js';
|
|
6425
6418
|
*
|
|
6426
6419
|
* const queue = new Queue;
|
|
6427
6420
|
*
|
|
@@ -6590,7 +6583,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
6590
6583
|
*
|
|
6591
6584
|
* ```
|
|
6592
6585
|
* <script type="module">
|
|
6593
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
6586
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
6594
6587
|
* console.log(new Monster.Types.ObserverList())
|
|
6595
6588
|
* console.log(new Monster.Types.ObserverList())
|
|
6596
6589
|
* </script>
|
|
@@ -6600,7 +6593,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
6600
6593
|
*
|
|
6601
6594
|
* ```
|
|
6602
6595
|
* <script type="module">
|
|
6603
|
-
* import {ObserverList} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
6596
|
+
* import {ObserverList} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/observerlist.js';
|
|
6604
6597
|
* console.log(ObserverList())
|
|
6605
6598
|
* console.log(ObserverList())
|
|
6606
6599
|
* </script>
|
|
@@ -6760,7 +6753,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6760
6753
|
*
|
|
6761
6754
|
* ```
|
|
6762
6755
|
* <script type="module">
|
|
6763
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
6756
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
6764
6757
|
* console.log(Monster.DOM.findClosestObjectLink())
|
|
6765
6758
|
* </script>
|
|
6766
6759
|
* ```
|
|
@@ -6769,7 +6762,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6769
6762
|
*
|
|
6770
6763
|
* ```
|
|
6771
6764
|
* <script type="module">
|
|
6772
|
-
* import {getUpdaterFromNode} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
6765
|
+
* import {getUpdaterFromNode} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/dom/updater.js';
|
|
6773
6766
|
* console.log(findClosestObjectLink())
|
|
6774
6767
|
* </script>
|
|
6775
6768
|
* ```
|
|
@@ -6790,7 +6783,7 @@ function findClosestObjectLink(element) {
|
|
|
6790
6783
|
*
|
|
6791
6784
|
* ```
|
|
6792
6785
|
* <script type="module">
|
|
6793
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
6786
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
6794
6787
|
* Monster.DOM.addToObjectLink();
|
|
6795
6788
|
* </script>
|
|
6796
6789
|
* ```
|
|
@@ -6799,7 +6792,7 @@ function findClosestObjectLink(element) {
|
|
|
6799
6792
|
*
|
|
6800
6793
|
* ```
|
|
6801
6794
|
* <script type="module">
|
|
6802
|
-
* import {addToObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
6795
|
+
* import {addToObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/dom/attributes.js';
|
|
6803
6796
|
* addToObjectLink();
|
|
6804
6797
|
* </script>
|
|
6805
6798
|
* ```
|
|
@@ -6831,7 +6824,7 @@ function addToObjectLink(element, symbol, object) {
|
|
|
6831
6824
|
*
|
|
6832
6825
|
* ```
|
|
6833
6826
|
* <script type="module">
|
|
6834
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
6827
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
6835
6828
|
* Monster.DOM.removeObjectLink();
|
|
6836
6829
|
* </script>
|
|
6837
6830
|
* ```
|
|
@@ -6840,7 +6833,7 @@ function addToObjectLink(element, symbol, object) {
|
|
|
6840
6833
|
*
|
|
6841
6834
|
* ```
|
|
6842
6835
|
* <script type="module">
|
|
6843
|
-
* import {removeObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
6836
|
+
* import {removeObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/dom/attributes.js';
|
|
6844
6837
|
* removeObjectLink();
|
|
6845
6838
|
* </script>
|
|
6846
6839
|
* ```
|
|
@@ -6871,7 +6864,7 @@ function removeObjectLink(element, symbol) {
|
|
|
6871
6864
|
*
|
|
6872
6865
|
* ```
|
|
6873
6866
|
* <script type="module">
|
|
6874
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
6867
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
6875
6868
|
* Monster.DOM.hasObjectLink();
|
|
6876
6869
|
* </script>
|
|
6877
6870
|
* ```
|
|
@@ -6880,7 +6873,7 @@ function removeObjectLink(element, symbol) {
|
|
|
6880
6873
|
*
|
|
6881
6874
|
* ```
|
|
6882
6875
|
* <script type="module">
|
|
6883
|
-
* import {hasObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
6876
|
+
* import {hasObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/dom/attributes.js';
|
|
6884
6877
|
* hasObjectLink();
|
|
6885
6878
|
* </script>
|
|
6886
6879
|
* ```
|
|
@@ -6916,7 +6909,7 @@ function hasObjectLink(element, symbol) {
|
|
|
6916
6909
|
*
|
|
6917
6910
|
* ```
|
|
6918
6911
|
* <script type="module">
|
|
6919
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
6912
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
6920
6913
|
* Monster.DOM.getLinkedObjects();
|
|
6921
6914
|
* </script>
|
|
6922
6915
|
* ```
|
|
@@ -6925,7 +6918,7 @@ function hasObjectLink(element, symbol) {
|
|
|
6925
6918
|
*
|
|
6926
6919
|
* ```
|
|
6927
6920
|
* <script type="module">
|
|
6928
|
-
* import {getLinkedObjects} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
6921
|
+
* import {getLinkedObjects} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/dom/attributes.js';
|
|
6929
6922
|
* getLinkedObjects();
|
|
6930
6923
|
* </script>
|
|
6931
6924
|
* ```
|
|
@@ -6959,7 +6952,7 @@ function getLinkedObjects(element, symbol) {
|
|
|
6959
6952
|
*
|
|
6960
6953
|
* ```
|
|
6961
6954
|
* <script type="module">
|
|
6962
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
6955
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
6963
6956
|
* Monster.DOM.toggleAttributeToken();
|
|
6964
6957
|
* </script>
|
|
6965
6958
|
* ```
|
|
@@ -6968,7 +6961,7 @@ function getLinkedObjects(element, symbol) {
|
|
|
6968
6961
|
*
|
|
6969
6962
|
* ```
|
|
6970
6963
|
* <script type="module">
|
|
6971
|
-
* import {toggleAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
6964
|
+
* import {toggleAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/dom/attributes.js';
|
|
6972
6965
|
* toggleAttributeToken();
|
|
6973
6966
|
* </script>
|
|
6974
6967
|
* ```
|
|
@@ -7003,7 +6996,7 @@ function toggleAttributeToken(element, key, token) {
|
|
|
7003
6996
|
*
|
|
7004
6997
|
* ```
|
|
7005
6998
|
* <script type="module">
|
|
7006
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
6999
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
7007
7000
|
* Monster.DOM.addAttributeToken();
|
|
7008
7001
|
* </script>
|
|
7009
7002
|
* ```
|
|
@@ -7012,7 +7005,7 @@ function toggleAttributeToken(element, key, token) {
|
|
|
7012
7005
|
*
|
|
7013
7006
|
* ```
|
|
7014
7007
|
* <script type="module">
|
|
7015
|
-
* import {addAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
7008
|
+
* import {addAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/dom/attributes.js';
|
|
7016
7009
|
* addAttributeToken();
|
|
7017
7010
|
* </script>
|
|
7018
7011
|
* ```
|
|
@@ -7049,7 +7042,7 @@ function addAttributeToken(element, key, token) {
|
|
|
7049
7042
|
*
|
|
7050
7043
|
* ```
|
|
7051
7044
|
* <script type="module">
|
|
7052
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
7045
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
7053
7046
|
* Monster.DOM.removeAttributeToken();
|
|
7054
7047
|
* </script>
|
|
7055
7048
|
* ```
|
|
@@ -7058,7 +7051,7 @@ function addAttributeToken(element, key, token) {
|
|
|
7058
7051
|
*
|
|
7059
7052
|
* ```
|
|
7060
7053
|
* <script type="module">
|
|
7061
|
-
* import {removeAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
7054
|
+
* import {removeAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/dom/attributes.js';
|
|
7062
7055
|
* removeAttributeToken();
|
|
7063
7056
|
* </script>
|
|
7064
7057
|
* ```
|
|
@@ -7094,7 +7087,7 @@ function removeAttributeToken(element, key, token) {
|
|
|
7094
7087
|
*
|
|
7095
7088
|
* ```
|
|
7096
7089
|
* <script type="module">
|
|
7097
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
7090
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
7098
7091
|
* Monster.DOM.containsAttributeToken();
|
|
7099
7092
|
* </script>
|
|
7100
7093
|
* ```
|
|
@@ -7103,7 +7096,7 @@ function removeAttributeToken(element, key, token) {
|
|
|
7103
7096
|
*
|
|
7104
7097
|
* ```
|
|
7105
7098
|
* <script type="module">
|
|
7106
|
-
* import {containsAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
7099
|
+
* import {containsAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/dom/attributes.js';
|
|
7107
7100
|
* containsAttributeToken();
|
|
7108
7101
|
* </script>
|
|
7109
7102
|
* ```
|
|
@@ -7136,7 +7129,7 @@ function containsAttributeToken(element, key, token) {
|
|
|
7136
7129
|
*
|
|
7137
7130
|
* ```
|
|
7138
7131
|
* <script type="module">
|
|
7139
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
7132
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
7140
7133
|
* Monster.DOM.replaceAttributeToken();
|
|
7141
7134
|
* </script>
|
|
7142
7135
|
* ```
|
|
@@ -7145,7 +7138,7 @@ function containsAttributeToken(element, key, token) {
|
|
|
7145
7138
|
*
|
|
7146
7139
|
* ```
|
|
7147
7140
|
* <script type="module">
|
|
7148
|
-
* import {replaceAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
7141
|
+
* import {replaceAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/dom/attributes.js';
|
|
7149
7142
|
* replaceAttributeToken();
|
|
7150
7143
|
* </script>
|
|
7151
7144
|
* ```
|
|
@@ -7181,7 +7174,7 @@ function replaceAttributeToken(element, key, from, to) {
|
|
|
7181
7174
|
*
|
|
7182
7175
|
* ```
|
|
7183
7176
|
* <script type="module">
|
|
7184
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
7177
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
7185
7178
|
* Monster.DOM.clearAttributeTokens();
|
|
7186
7179
|
* </script>
|
|
7187
7180
|
* ```
|
|
@@ -7190,7 +7183,7 @@ function replaceAttributeToken(element, key, from, to) {
|
|
|
7190
7183
|
*
|
|
7191
7184
|
* ```
|
|
7192
7185
|
* <script type="module">
|
|
7193
|
-
* import {clearAttributeTokens} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
7186
|
+
* import {clearAttributeTokens} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/dom/attributes.js';
|
|
7194
7187
|
* clearAttributeTokens();
|
|
7195
7188
|
* </script>
|
|
7196
7189
|
* ```
|
|
@@ -7238,7 +7231,7 @@ function clearAttributeTokens(element, key) {
|
|
|
7238
7231
|
*
|
|
7239
7232
|
* ```
|
|
7240
7233
|
* <script type="module">
|
|
7241
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
7234
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
7242
7235
|
* Monster.DOM.findClosestByAttribute();
|
|
7243
7236
|
* </script>
|
|
7244
7237
|
* ```
|
|
@@ -7247,7 +7240,7 @@ function clearAttributeTokens(element, key) {
|
|
|
7247
7240
|
*
|
|
7248
7241
|
* ```
|
|
7249
7242
|
* <script type="module">
|
|
7250
|
-
* import {findClosestByAttribute} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
7243
|
+
* import {findClosestByAttribute} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/dom/attributes.js';
|
|
7251
7244
|
* findClosestByAttribute();
|
|
7252
7245
|
* </script>
|
|
7253
7246
|
* ```
|
|
@@ -7305,7 +7298,7 @@ function findClosestByAttribute(element, key, value) {
|
|
|
7305
7298
|
*
|
|
7306
7299
|
* ```
|
|
7307
7300
|
* <script type="module">
|
|
7308
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
7301
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
7309
7302
|
* Monster.DOM.findClosestByClass();
|
|
7310
7303
|
* </script>
|
|
7311
7304
|
* ```
|
|
@@ -7314,7 +7307,7 @@ function findClosestByAttribute(element, key, value) {
|
|
|
7314
7307
|
*
|
|
7315
7308
|
* ```
|
|
7316
7309
|
* <script type="module">
|
|
7317
|
-
* import {findClosestByClass} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
7310
|
+
* import {findClosestByClass} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/dom/attributes.js';
|
|
7318
7311
|
* findClosestByClass();
|
|
7319
7312
|
* </script>
|
|
7320
7313
|
* ```
|
|
@@ -7848,7 +7841,7 @@ var attachedInternalSymbol = Symbol('attachedInternal');
|
|
|
7848
7841
|
*
|
|
7849
7842
|
* ```
|
|
7850
7843
|
* <script type="module">
|
|
7851
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
7844
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
7852
7845
|
* document.createElement('monster-')
|
|
7853
7846
|
* </script>
|
|
7854
7847
|
* ```
|
|
@@ -8222,7 +8215,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8222
8215
|
/* harmony export */ "initMethodSymbol": function() { return /* binding */ initMethodSymbol; },
|
|
8223
8216
|
/* harmony export */ "assembleMethodSymbol": function() { return /* binding */ assembleMethodSymbol; },
|
|
8224
8217
|
/* harmony export */ "assignUpdaterToElement": function() { return /* binding */ assignUpdaterToElement; },
|
|
8225
|
-
/* harmony export */ "attributeObserverSymbol": function() { return /* binding */ attributeObserverSymbol; }
|
|
8218
|
+
/* harmony export */ "attributeObserverSymbol": function() { return /* binding */ attributeObserverSymbol; },
|
|
8219
|
+
/* harmony export */ "getSlottedElements": function() { return /* binding */ getSlottedElements; }
|
|
8226
8220
|
/* harmony export */ });
|
|
8227
8221
|
/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
|
|
8228
8222
|
/* harmony import */ var _data_extend_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21);
|
|
@@ -8383,7 +8377,7 @@ var attributeObserverSymbol = Symbol('attributeObserver');
|
|
|
8383
8377
|
*
|
|
8384
8378
|
* ```
|
|
8385
8379
|
* <script type="module">
|
|
8386
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
8380
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
8387
8381
|
* document.createElement('monster-')
|
|
8388
8382
|
* </script>
|
|
8389
8383
|
* ```
|
|
@@ -8840,14 +8834,16 @@ var CustomElement = /*#__PURE__*/function (_HTMLElement) {
|
|
|
8840
8834
|
}( /*#__PURE__*/_wrapNativeSuper(HTMLElement));
|
|
8841
8835
|
/**
|
|
8842
8836
|
* @private
|
|
8843
|
-
* @param {String}
|
|
8837
|
+
* @param {String|undefined} query
|
|
8838
|
+
* @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.)
|
|
8844
8839
|
* @return {*}
|
|
8845
8840
|
* @this CustomElement
|
|
8846
8841
|
* @since 1.23.0
|
|
8842
|
+
* @throws {Error} query must be a string
|
|
8847
8843
|
*/
|
|
8848
8844
|
|
|
8849
8845
|
|
|
8850
|
-
function getSlottedElements(
|
|
8846
|
+
function getSlottedElements(query, name) {
|
|
8851
8847
|
var self = this;
|
|
8852
8848
|
var result = new Set();
|
|
8853
8849
|
|
|
@@ -8855,7 +8851,17 @@ function getSlottedElements(filter) {
|
|
|
8855
8851
|
return result;
|
|
8856
8852
|
}
|
|
8857
8853
|
|
|
8858
|
-
var
|
|
8854
|
+
var selector = 'slot';
|
|
8855
|
+
|
|
8856
|
+
if (name !== undefined) {
|
|
8857
|
+
if (name === null) {
|
|
8858
|
+
selector += ':not([name])';
|
|
8859
|
+
} else {
|
|
8860
|
+
selector += '[name=' + (0,_types_validate_js__WEBPACK_IMPORTED_MODULE_9__.validateString)(name) + ']';
|
|
8861
|
+
}
|
|
8862
|
+
}
|
|
8863
|
+
|
|
8864
|
+
var slots = self.shadowRoot.querySelectorAll(selector);
|
|
8859
8865
|
|
|
8860
8866
|
for (var _i = 0, _Object$entries = Object.entries(slots); _i < _Object$entries.length; _i++) {
|
|
8861
8867
|
var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
|
|
@@ -8864,14 +8870,16 @@ function getSlottedElements(filter) {
|
|
|
8864
8870
|
slot.assignedElements().forEach(function (node) {
|
|
8865
8871
|
if (!(node instanceof HTMLElement)) return;
|
|
8866
8872
|
|
|
8867
|
-
if (
|
|
8868
|
-
node.querySelectorAll(
|
|
8873
|
+
if ((0,_types_is_js__WEBPACK_IMPORTED_MODULE_6__.isString)(query)) {
|
|
8874
|
+
node.querySelectorAll(query).forEach(function (n) {
|
|
8869
8875
|
result.add(n);
|
|
8870
8876
|
});
|
|
8871
8877
|
|
|
8872
|
-
if (node.matches(
|
|
8878
|
+
if (node.matches(query)) {
|
|
8873
8879
|
result.add(node);
|
|
8874
8880
|
}
|
|
8881
|
+
} else if (query !== undefined) {
|
|
8882
|
+
throw new Error('query must be a string');
|
|
8875
8883
|
} else {
|
|
8876
8884
|
result.add(node);
|
|
8877
8885
|
}
|
|
@@ -9249,7 +9257,7 @@ var internal = Symbol('internal');
|
|
|
9249
9257
|
*
|
|
9250
9258
|
* ```
|
|
9251
9259
|
* <script type="module">
|
|
9252
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
9260
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
9253
9261
|
* new Monster.Types.DataUrl()
|
|
9254
9262
|
* </script>
|
|
9255
9263
|
* ```
|
|
@@ -9258,7 +9266,7 @@ var internal = Symbol('internal');
|
|
|
9258
9266
|
*
|
|
9259
9267
|
* ```
|
|
9260
9268
|
* <script type="module">
|
|
9261
|
-
* import {DataUrl} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
9269
|
+
* import {DataUrl} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/dataurl.js';
|
|
9262
9270
|
* new DataUrl()
|
|
9263
9271
|
* </script>
|
|
9264
9272
|
* ```
|
|
@@ -9338,7 +9346,7 @@ var DataUrl = /*#__PURE__*/function (_Base) {
|
|
|
9338
9346
|
*
|
|
9339
9347
|
* ```
|
|
9340
9348
|
* <script type="module">
|
|
9341
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
9349
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
9342
9350
|
* console.log(Monster.Types.parseDataURL())
|
|
9343
9351
|
* </script>
|
|
9344
9352
|
* ```
|
|
@@ -9347,7 +9355,7 @@ var DataUrl = /*#__PURE__*/function (_Base) {
|
|
|
9347
9355
|
*
|
|
9348
9356
|
* ```
|
|
9349
9357
|
* <script type="module">
|
|
9350
|
-
* import {parseDataURL} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
9358
|
+
* import {parseDataURL} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/dataurl.js';
|
|
9351
9359
|
* console.log(parseDataURL())
|
|
9352
9360
|
* </script>
|
|
9353
9361
|
* ```
|
|
@@ -9485,7 +9493,7 @@ var internal = Symbol('internal');
|
|
|
9485
9493
|
*
|
|
9486
9494
|
* ```
|
|
9487
9495
|
* <script type="module">
|
|
9488
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
9496
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
9489
9497
|
* console.log(new Monster.Types.MediaType())
|
|
9490
9498
|
* </script>
|
|
9491
9499
|
* ```
|
|
@@ -9494,7 +9502,7 @@ var internal = Symbol('internal');
|
|
|
9494
9502
|
*
|
|
9495
9503
|
* ```
|
|
9496
9504
|
* <script type="module">
|
|
9497
|
-
* import {MediaType} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
9505
|
+
* import {MediaType} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/mediatype.js';
|
|
9498
9506
|
* console.log(new MediaType())
|
|
9499
9507
|
* </script>
|
|
9500
9508
|
* ```
|
|
@@ -9612,7 +9620,7 @@ var MediaType = /*#__PURE__*/function (_Base) {
|
|
|
9612
9620
|
*
|
|
9613
9621
|
* ```
|
|
9614
9622
|
* <script type="module">
|
|
9615
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
9623
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
9616
9624
|
* console.log(Monster.Types.parseMediaType())
|
|
9617
9625
|
* </script>
|
|
9618
9626
|
* ```
|
|
@@ -9621,7 +9629,7 @@ var MediaType = /*#__PURE__*/function (_Base) {
|
|
|
9621
9629
|
*
|
|
9622
9630
|
* ```
|
|
9623
9631
|
* <script type="module">
|
|
9624
|
-
* import {parseMediaType} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
9632
|
+
* import {parseMediaType} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/dataurl.js';
|
|
9625
9633
|
* console.log(parseMediaType())
|
|
9626
9634
|
* </script>
|
|
9627
9635
|
* ```
|
|
@@ -9760,7 +9768,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
9760
9768
|
*
|
|
9761
9769
|
* ```
|
|
9762
9770
|
* <script type="module">
|
|
9763
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
9771
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
9764
9772
|
* new Monster.DOM.Template()
|
|
9765
9773
|
* </script>
|
|
9766
9774
|
* ```
|
|
@@ -9769,7 +9777,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
9769
9777
|
*
|
|
9770
9778
|
* ```
|
|
9771
9779
|
* <script type="module">
|
|
9772
|
-
* import {Template} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
9780
|
+
* import {Template} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/dom/template.js';
|
|
9773
9781
|
* new Template()
|
|
9774
9782
|
* </script>
|
|
9775
9783
|
* ```
|
|
@@ -9847,7 +9855,7 @@ var Template = /*#__PURE__*/function (_Base) {
|
|
|
9847
9855
|
*
|
|
9848
9856
|
* ```
|
|
9849
9857
|
* <script type="module">
|
|
9850
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
9858
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
9851
9859
|
* Monster.DOM.findDocumentTemplate()
|
|
9852
9860
|
* </script>
|
|
9853
9861
|
* ```
|
|
@@ -9856,14 +9864,14 @@ var Template = /*#__PURE__*/function (_Base) {
|
|
|
9856
9864
|
*
|
|
9857
9865
|
* ```
|
|
9858
9866
|
* <script type="module">
|
|
9859
|
-
* import {findTemplate} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
9867
|
+
* import {findTemplate} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/dom/template.js';
|
|
9860
9868
|
* findDocumentTemplate()
|
|
9861
9869
|
* </script>
|
|
9862
9870
|
* ```
|
|
9863
9871
|
*
|
|
9864
9872
|
* @example
|
|
9865
9873
|
*
|
|
9866
|
-
* import { findDocumentTemplate } from "https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
9874
|
+
* import { findDocumentTemplate } from "https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/dom/template.js";
|
|
9867
9875
|
*
|
|
9868
9876
|
* const template = document.createElement("template");
|
|
9869
9877
|
* template.id = "myTemplate";
|
|
@@ -10035,7 +10043,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
10035
10043
|
*
|
|
10036
10044
|
* ```
|
|
10037
10045
|
* <script type="module">
|
|
10038
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
10046
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
10039
10047
|
* console.log(new Monster.DOM.Theme())
|
|
10040
10048
|
* </script>
|
|
10041
10049
|
* ```
|
|
@@ -10044,14 +10052,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
10044
10052
|
*
|
|
10045
10053
|
* ```
|
|
10046
10054
|
* <script type="module">
|
|
10047
|
-
* import {Theme} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
10055
|
+
* import {Theme} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/dom/theme.js';
|
|
10048
10056
|
* console.log(new Theme())
|
|
10049
10057
|
* </script>
|
|
10050
10058
|
* ```
|
|
10051
10059
|
*
|
|
10052
10060
|
* @example
|
|
10053
10061
|
*
|
|
10054
|
-
* import {getDocumentTheme} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
10062
|
+
* import {getDocumentTheme} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/dom/theme.js';
|
|
10055
10063
|
*
|
|
10056
10064
|
* const theme = getDocumentTheme();
|
|
10057
10065
|
* console.log(theme.getName());
|
|
@@ -10238,7 +10246,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
10238
10246
|
*
|
|
10239
10247
|
* ```
|
|
10240
10248
|
* <script type="module">
|
|
10241
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
10249
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
10242
10250
|
* new Monster.DOM.Updater()
|
|
10243
10251
|
* </script>
|
|
10244
10252
|
* ```
|
|
@@ -10247,14 +10255,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
10247
10255
|
*
|
|
10248
10256
|
* ```
|
|
10249
10257
|
* <script type="module">
|
|
10250
|
-
* import {Updater} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
10258
|
+
* import {Updater} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/dom/updater.js';
|
|
10251
10259
|
* new Updater()
|
|
10252
10260
|
* </script>
|
|
10253
10261
|
* ```
|
|
10254
10262
|
*
|
|
10255
10263
|
* @example
|
|
10256
10264
|
*
|
|
10257
|
-
* import {Updater} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
10265
|
+
* import {Updater} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/dom/updater.js';
|
|
10258
10266
|
*
|
|
10259
10267
|
* // First we prepare the html document.
|
|
10260
10268
|
* // This is done here via script, but can also be inserted into the document as pure html.
|
|
@@ -10569,6 +10577,8 @@ function getControlEventHandler() {
|
|
|
10569
10577
|
* @throws {Error} the bind argument must start as a value with a path
|
|
10570
10578
|
* @param {HTMLElement} element
|
|
10571
10579
|
* @return void
|
|
10580
|
+
* @memberOf Monster.DOM
|
|
10581
|
+
* @private
|
|
10572
10582
|
*/
|
|
10573
10583
|
|
|
10574
10584
|
|
|
@@ -10633,6 +10643,7 @@ function retrieveAndSetValue(element) {
|
|
|
10633
10643
|
/**
|
|
10634
10644
|
* @since 1.27.0
|
|
10635
10645
|
* @return void
|
|
10646
|
+
* @private
|
|
10636
10647
|
*/
|
|
10637
10648
|
|
|
10638
10649
|
|
|
@@ -10700,25 +10711,34 @@ function removeElement(change) {
|
|
|
10700
10711
|
|
|
10701
10712
|
|
|
10702
10713
|
function insertElement(change) {
|
|
10703
|
-
var _this2 = this;
|
|
10704
|
-
|
|
10705
10714
|
var self = this;
|
|
10706
10715
|
var subject = self[_constants_js__WEBPACK_IMPORTED_MODULE_0__.internalSymbol].subject.getRealSubject();
|
|
10707
10716
|
var document = (0,_util_js__WEBPACK_IMPORTED_MODULE_15__.getDocument)();
|
|
10708
10717
|
var mem = new WeakSet();
|
|
10709
10718
|
var wd = 0;
|
|
10719
|
+
var container = self[_constants_js__WEBPACK_IMPORTED_MODULE_0__.internalSymbol].element;
|
|
10710
10720
|
|
|
10711
10721
|
while (true) {
|
|
10712
10722
|
var found = false;
|
|
10713
10723
|
wd++;
|
|
10714
10724
|
var p = (0,_util_clone_js__WEBPACK_IMPORTED_MODULE_11__.clone)(change === null || change === void 0 ? void 0 : change['path']);
|
|
10715
|
-
if (!(0,_types_is_js__WEBPACK_IMPORTED_MODULE_7__.isArray)(p)) return
|
|
10725
|
+
if (!(0,_types_is_js__WEBPACK_IMPORTED_MODULE_7__.isArray)(p)) return self;
|
|
10716
10726
|
|
|
10717
10727
|
while (p.length > 0) {
|
|
10718
10728
|
var current = p.join('.');
|
|
10719
|
-
var
|
|
10729
|
+
var iterator = new Set();
|
|
10730
|
+
var query = '[' + _dom_constants_js__WEBPACK_IMPORTED_MODULE_4__.ATTRIBUTE_UPDATER_INSERT + '*="path:' + current + '"]';
|
|
10731
|
+
var e = container.querySelectorAll(query);
|
|
10732
|
+
|
|
10733
|
+
if (e.length > 0) {
|
|
10734
|
+
iterator = new Set(_toConsumableArray(e));
|
|
10735
|
+
}
|
|
10736
|
+
|
|
10737
|
+
if (container.matches(query)) {
|
|
10738
|
+
iterator.add(container);
|
|
10739
|
+
}
|
|
10720
10740
|
|
|
10721
|
-
var _iterator5 = _createForOfIteratorHelper(
|
|
10741
|
+
var _iterator5 = _createForOfIteratorHelper(iterator.entries()),
|
|
10722
10742
|
_step5;
|
|
10723
10743
|
|
|
10724
10744
|
try {
|
|
@@ -10741,11 +10761,9 @@ function insertElement(change) {
|
|
|
10741
10761
|
}
|
|
10742
10762
|
|
|
10743
10763
|
var pipe = new _data_pipe_js__WEBPACK_IMPORTED_MODULE_3__.Pipe(cmd);
|
|
10744
|
-
|
|
10745
|
-
_this2[_constants_js__WEBPACK_IMPORTED_MODULE_0__.internalSymbol].callbacks.forEach(function (f, n) {
|
|
10764
|
+
self[_constants_js__WEBPACK_IMPORTED_MODULE_0__.internalSymbol].callbacks.forEach(function (f, n) {
|
|
10746
10765
|
pipe.setCallback(n, f);
|
|
10747
10766
|
});
|
|
10748
|
-
|
|
10749
10767
|
var value = void 0;
|
|
10750
10768
|
|
|
10751
10769
|
try {
|
|
@@ -10793,7 +10811,9 @@ function insertElement(change) {
|
|
|
10793
10811
|
node = _Object$entries3$_i[1];
|
|
10794
10812
|
|
|
10795
10813
|
if (!available.has(node.getAttribute(_dom_constants_js__WEBPACK_IMPORTED_MODULE_4__.ATTRIBUTE_UPDATER_INSERT_REFERENCE))) {
|
|
10796
|
-
|
|
10814
|
+
try {
|
|
10815
|
+
containerElement.removeChild(node);
|
|
10816
|
+
} catch (e) {}
|
|
10797
10817
|
}
|
|
10798
10818
|
}
|
|
10799
10819
|
};
|
|
@@ -10919,7 +10939,7 @@ function updateContent(change) {
|
|
|
10919
10939
|
|
|
10920
10940
|
|
|
10921
10941
|
function runUpdateContent(container, parts, subject) {
|
|
10922
|
-
var
|
|
10942
|
+
var _this2 = this;
|
|
10923
10943
|
|
|
10924
10944
|
if (!(0,_types_is_js__WEBPACK_IMPORTED_MODULE_7__.isArray)(parts)) return;
|
|
10925
10945
|
if (!(container instanceof HTMLElement)) return;
|
|
@@ -10945,7 +10965,7 @@ function runUpdateContent(container, parts, subject) {
|
|
|
10945
10965
|
var cmd = (0,_util_trimspaces_js__WEBPACK_IMPORTED_MODULE_12__.trimSpaces)(attributes);
|
|
10946
10966
|
var pipe = new _data_pipe_js__WEBPACK_IMPORTED_MODULE_3__.Pipe(cmd);
|
|
10947
10967
|
|
|
10948
|
-
|
|
10968
|
+
_this2[_constants_js__WEBPACK_IMPORTED_MODULE_0__.internalSymbol].callbacks.forEach(function (f, n) {
|
|
10949
10969
|
pipe.setCallback(n, f);
|
|
10950
10970
|
});
|
|
10951
10971
|
|
|
@@ -10995,7 +11015,7 @@ function updateAttributes(change) {
|
|
|
10995
11015
|
|
|
10996
11016
|
|
|
10997
11017
|
function runUpdateAttributes(container, parts, subject) {
|
|
10998
|
-
var
|
|
11018
|
+
var _this3 = this;
|
|
10999
11019
|
|
|
11000
11020
|
var self = this;
|
|
11001
11021
|
if (!(0,_types_is_js__WEBPACK_IMPORTED_MODULE_7__.isArray)(parts)) return;
|
|
@@ -11049,7 +11069,7 @@ function runUpdateAttributes(container, parts, subject) {
|
|
|
11049
11069
|
element.setAttribute(name, value);
|
|
11050
11070
|
}
|
|
11051
11071
|
|
|
11052
|
-
handleInputControlAttributeUpdate.call(
|
|
11072
|
+
handleInputControlAttributeUpdate.call(_this3, element, name, value);
|
|
11053
11073
|
};
|
|
11054
11074
|
|
|
11055
11075
|
for (var _i9 = 0, _Object$entries8 = Object.entries(attributes.split(',')); _i9 < _Object$entries8.length; _i9++) {
|
|
@@ -11188,7 +11208,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
|
11188
11208
|
*
|
|
11189
11209
|
* ```
|
|
11190
11210
|
* <script type="module">
|
|
11191
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
11211
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
11192
11212
|
* Monster.Util.trimSpaces(" hello ")
|
|
11193
11213
|
* </script>
|
|
11194
11214
|
* ```
|
|
@@ -11197,7 +11217,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
|
11197
11217
|
*
|
|
11198
11218
|
* ```
|
|
11199
11219
|
* <script type="module">
|
|
11200
|
-
* import {trimSpaces} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
11220
|
+
* import {trimSpaces} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/util/trimspaces.js';
|
|
11201
11221
|
* trimSpaces(' hello \\ ')
|
|
11202
11222
|
* </script>
|
|
11203
11223
|
* ```
|
|
@@ -11302,7 +11322,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
11302
11322
|
*
|
|
11303
11323
|
* ```
|
|
11304
11324
|
* <script type="module">
|
|
11305
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
11325
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
11306
11326
|
* new Monster.DOM.fireEvent()
|
|
11307
11327
|
* </script>
|
|
11308
11328
|
* ```
|
|
@@ -11311,7 +11331,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
11311
11331
|
*
|
|
11312
11332
|
* ```
|
|
11313
11333
|
* <script type="module">
|
|
11314
|
-
* import {fireEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
11334
|
+
* import {fireEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/dom/events.js';
|
|
11315
11335
|
* fireEvent()
|
|
11316
11336
|
* </script>
|
|
11317
11337
|
* ```
|
|
@@ -11363,7 +11383,7 @@ function fireEvent(element, type) {
|
|
|
11363
11383
|
*
|
|
11364
11384
|
* ```
|
|
11365
11385
|
* <script type="module">
|
|
11366
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
11386
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
11367
11387
|
* new Monster.DOM.fireCustomEvent()
|
|
11368
11388
|
* </script>
|
|
11369
11389
|
* ```
|
|
@@ -11372,7 +11392,7 @@ function fireEvent(element, type) {
|
|
|
11372
11392
|
*
|
|
11373
11393
|
* ```
|
|
11374
11394
|
* <script type="module">
|
|
11375
|
-
* import {fireCustomEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
11395
|
+
* import {fireCustomEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/dom/events.js';
|
|
11376
11396
|
* fireCustomEvent()
|
|
11377
11397
|
* </script>
|
|
11378
11398
|
* ```
|
|
@@ -11380,7 +11400,7 @@ function fireEvent(element, type) {
|
|
|
11380
11400
|
* @param {HTMLElement|HTMLCollection|NodeList} element
|
|
11381
11401
|
* @param {string} type
|
|
11382
11402
|
* @return {void}
|
|
11383
|
-
* @since 1.
|
|
11403
|
+
* @since 1.29.0
|
|
11384
11404
|
* @copyright schukai GmbH
|
|
11385
11405
|
* @memberOf Monster.DOM
|
|
11386
11406
|
* @throws {TypeError} value is not an instance of HTMLElement or HTMLCollection
|
|
@@ -11431,7 +11451,7 @@ function fireCustomEvent(element, type, detail) {
|
|
|
11431
11451
|
*
|
|
11432
11452
|
* ```
|
|
11433
11453
|
* <script type="module">
|
|
11434
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
11454
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
11435
11455
|
* new Monster.DOM.findTargetElementFromEvent()
|
|
11436
11456
|
* </script>
|
|
11437
11457
|
* ```
|
|
@@ -11440,7 +11460,7 @@ function fireCustomEvent(element, type, detail) {
|
|
|
11440
11460
|
*
|
|
11441
11461
|
* ```
|
|
11442
11462
|
* <script type="module">
|
|
11443
|
-
* import {findTargetElementFromEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
11463
|
+
* import {findTargetElementFromEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/dom/events.js';
|
|
11444
11464
|
* findTargetElementFromEvent()
|
|
11445
11465
|
* </script>
|
|
11446
11466
|
* ```
|
|
@@ -11511,7 +11531,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
11511
11531
|
*
|
|
11512
11532
|
* ```
|
|
11513
11533
|
* <script type="module">
|
|
11514
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
11534
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
11515
11535
|
* console.log(Monster.DOM.getDocument())
|
|
11516
11536
|
* </script>
|
|
11517
11537
|
* ```
|
|
@@ -11520,7 +11540,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
11520
11540
|
*
|
|
11521
11541
|
* ```
|
|
11522
11542
|
* <script type="module">
|
|
11523
|
-
* import {getDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
11543
|
+
* import {getDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/dom/util.js';
|
|
11524
11544
|
* console.log(getDocument())
|
|
11525
11545
|
* </script>
|
|
11526
11546
|
* ```
|
|
@@ -11575,7 +11595,7 @@ function getDocument() {
|
|
|
11575
11595
|
*
|
|
11576
11596
|
* ```
|
|
11577
11597
|
* <script type="module">
|
|
11578
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
11598
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
11579
11599
|
* console.log(Monster.DOM.getWindow())
|
|
11580
11600
|
* </script>
|
|
11581
11601
|
* ```
|
|
@@ -11584,7 +11604,7 @@ function getDocument() {
|
|
|
11584
11604
|
*
|
|
11585
11605
|
* ```
|
|
11586
11606
|
* <script type="module">
|
|
11587
|
-
* import {getWindow} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
11607
|
+
* import {getWindow} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/dom/util.js';
|
|
11588
11608
|
* console.log(getWindow(null))
|
|
11589
11609
|
* </script>
|
|
11590
11610
|
* ```
|
|
@@ -11644,7 +11664,7 @@ function getWindow() {
|
|
|
11644
11664
|
*
|
|
11645
11665
|
* ```
|
|
11646
11666
|
* <script type="module">
|
|
11647
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
11667
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
11648
11668
|
* console.log(Monster.DOM.getDocumentFragmentFromString())
|
|
11649
11669
|
* </script>
|
|
11650
11670
|
* ```
|
|
@@ -11653,7 +11673,7 @@ function getWindow() {
|
|
|
11653
11673
|
*
|
|
11654
11674
|
* ```
|
|
11655
11675
|
* <script type="module">
|
|
11656
|
-
* import {getDocumentFragmentFromString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
11676
|
+
* import {getDocumentFragmentFromString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/dom/util.js';
|
|
11657
11677
|
* console.log(getDocumentFragmentFromString('<div></div>'))
|
|
11658
11678
|
* </script>
|
|
11659
11679
|
* ```
|
|
@@ -11743,7 +11763,7 @@ var DEFAULT_LANGUAGE = 'en';
|
|
|
11743
11763
|
*
|
|
11744
11764
|
* ```
|
|
11745
11765
|
* <script type="module">
|
|
11746
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
11766
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
11747
11767
|
* new Monster.DOM.getLocaleOfDocument()
|
|
11748
11768
|
* </script>
|
|
11749
11769
|
* ```
|
|
@@ -11752,7 +11772,7 @@ var DEFAULT_LANGUAGE = 'en';
|
|
|
11752
11772
|
*
|
|
11753
11773
|
* ```
|
|
11754
11774
|
* <script type="module">
|
|
11755
|
-
* import {getLocaleOfDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
11775
|
+
* import {getLocaleOfDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/dom/locale.js';
|
|
11756
11776
|
* new getLocaleOfDocument()
|
|
11757
11777
|
* </script>
|
|
11758
11778
|
* ```
|
|
@@ -11845,7 +11865,7 @@ var localeStringSymbol = Symbol('localeString');
|
|
|
11845
11865
|
*
|
|
11846
11866
|
* ```
|
|
11847
11867
|
* <script type="module">
|
|
11848
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
11868
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
11849
11869
|
* new Monster.I18n.Locale()
|
|
11850
11870
|
* </script>
|
|
11851
11871
|
* ```
|
|
@@ -11854,7 +11874,7 @@ var localeStringSymbol = Symbol('localeString');
|
|
|
11854
11874
|
*
|
|
11855
11875
|
* ```
|
|
11856
11876
|
* <script type="module">
|
|
11857
|
-
* import {Locale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
11877
|
+
* import {Locale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/i18n/locale.js';
|
|
11858
11878
|
* new Locale()
|
|
11859
11879
|
* </script>
|
|
11860
11880
|
* ```
|
|
@@ -12047,7 +12067,7 @@ var Locale = /*#__PURE__*/function (_Base) {
|
|
|
12047
12067
|
*
|
|
12048
12068
|
* ```
|
|
12049
12069
|
* <script type="module">
|
|
12050
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
12070
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
12051
12071
|
* new Monster.I18n.createLocale()
|
|
12052
12072
|
* </script>
|
|
12053
12073
|
* ```
|
|
@@ -12056,7 +12076,7 @@ var Locale = /*#__PURE__*/function (_Base) {
|
|
|
12056
12076
|
*
|
|
12057
12077
|
* ```
|
|
12058
12078
|
* <script type="module">
|
|
12059
|
-
* import {createLocale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
12079
|
+
* import {createLocale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/i18n/locale.js';
|
|
12060
12080
|
* createLocale()
|
|
12061
12081
|
* </script>
|
|
12062
12082
|
* ```
|
|
@@ -12232,7 +12252,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
12232
12252
|
*
|
|
12233
12253
|
* ```
|
|
12234
12254
|
* <script type="module">
|
|
12235
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
12255
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
12236
12256
|
* new Monster.I18n.Provider()
|
|
12237
12257
|
* </script>
|
|
12238
12258
|
* ```
|
|
@@ -12241,7 +12261,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
12241
12261
|
*
|
|
12242
12262
|
* ```
|
|
12243
12263
|
* <script type="module">
|
|
12244
|
-
* import {Provider} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
12264
|
+
* import {Provider} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/i18n/provider.js';
|
|
12245
12265
|
* new Provider()
|
|
12246
12266
|
* </script>
|
|
12247
12267
|
* ```
|
|
@@ -12342,7 +12362,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
12342
12362
|
*
|
|
12343
12363
|
* ```
|
|
12344
12364
|
* <script type="module">
|
|
12345
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
12365
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
12346
12366
|
* new Monster.Types.BaseWithOptions()
|
|
12347
12367
|
* </script>
|
|
12348
12368
|
* ```
|
|
@@ -12351,7 +12371,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
12351
12371
|
*
|
|
12352
12372
|
* ```
|
|
12353
12373
|
* <script type="module">
|
|
12354
|
-
* import {BaseWithOptions} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
12374
|
+
* import {BaseWithOptions} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/basewithoptions.js';
|
|
12355
12375
|
* new BaseWithOptions()
|
|
12356
12376
|
* </script>
|
|
12357
12377
|
* ```
|
|
@@ -12492,7 +12512,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
12492
12512
|
*
|
|
12493
12513
|
* ```
|
|
12494
12514
|
* <script type="module">
|
|
12495
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
12515
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
12496
12516
|
* new Monster.I18n.Translations()
|
|
12497
12517
|
* </script>
|
|
12498
12518
|
* ```
|
|
@@ -12501,15 +12521,15 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
12501
12521
|
*
|
|
12502
12522
|
* ```
|
|
12503
12523
|
* <script type="module">
|
|
12504
|
-
* import {Translations} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
12524
|
+
* import {Translations} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/i18n/translations.js';
|
|
12505
12525
|
* new Translations()
|
|
12506
12526
|
* </script>
|
|
12507
12527
|
* ```
|
|
12508
12528
|
*
|
|
12509
12529
|
* @example
|
|
12510
12530
|
*
|
|
12511
|
-
* import {Translations} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
12512
|
-
* import {parseLocale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
12531
|
+
* import {Translations} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/i18n/translations.js';
|
|
12532
|
+
* import {parseLocale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/i18n/locale.js';
|
|
12513
12533
|
*
|
|
12514
12534
|
* const translation = new Translations(parseLocale('en-GB'));
|
|
12515
12535
|
*
|
|
@@ -12781,7 +12801,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
12781
12801
|
*
|
|
12782
12802
|
* ```
|
|
12783
12803
|
* <script type="module">
|
|
12784
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
12804
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
12785
12805
|
* new Monster.I18n.Providers.Fetch()
|
|
12786
12806
|
* </script>
|
|
12787
12807
|
* ```
|
|
@@ -12790,14 +12810,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
12790
12810
|
*
|
|
12791
12811
|
* ```
|
|
12792
12812
|
* <script type="module">
|
|
12793
|
-
* import {Fetch} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
12813
|
+
* import {Fetch} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/i18n/providers/fetch.js';
|
|
12794
12814
|
* new Fetch()
|
|
12795
12815
|
* </script>
|
|
12796
12816
|
* ```
|
|
12797
12817
|
*
|
|
12798
12818
|
* @example <caption>das ist ein test</caption>
|
|
12799
12819
|
*
|
|
12800
|
-
* import {Fetch} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
12820
|
+
* import {Fetch} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/i18n/providers/fetch.js';
|
|
12801
12821
|
*
|
|
12802
12822
|
* // fetch from API
|
|
12803
12823
|
* const translation = new Fetch('https://example.com/${language}.json').getTranslation('en-GB');
|
|
@@ -13027,7 +13047,7 @@ var workingDataSymbol = Symbol('workingData');
|
|
|
13027
13047
|
*
|
|
13028
13048
|
* ```
|
|
13029
13049
|
* <script type="module">
|
|
13030
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
13050
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
13031
13051
|
* new Monster.Text.Formatter()
|
|
13032
13052
|
* </script>
|
|
13033
13053
|
* ```
|
|
@@ -13036,7 +13056,7 @@ var workingDataSymbol = Symbol('workingData');
|
|
|
13036
13056
|
*
|
|
13037
13057
|
* ```
|
|
13038
13058
|
* <script type="module">
|
|
13039
|
-
* import {Formatter} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
13059
|
+
* import {Formatter} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/text/formatter.js';
|
|
13040
13060
|
* new Formatter()
|
|
13041
13061
|
* </script>
|
|
13042
13062
|
* ```
|
|
@@ -13081,7 +13101,7 @@ var workingDataSymbol = Symbol('workingData');
|
|
|
13081
13101
|
*
|
|
13082
13102
|
* @example
|
|
13083
13103
|
*
|
|
13084
|
-
* import {Formatter} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
13104
|
+
* import {Formatter} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/text/formatter.js';
|
|
13085
13105
|
*
|
|
13086
13106
|
* new Formatter({
|
|
13087
13107
|
* a: {
|
|
@@ -13426,7 +13446,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
13426
13446
|
*
|
|
13427
13447
|
* ```
|
|
13428
13448
|
* <script type="module">
|
|
13429
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
13449
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
13430
13450
|
* console.log(new Monster.Logging.Handler())
|
|
13431
13451
|
* </script>
|
|
13432
13452
|
* ```
|
|
@@ -13435,7 +13455,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
13435
13455
|
*
|
|
13436
13456
|
* ```
|
|
13437
13457
|
* <script type="module">
|
|
13438
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
13458
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/logging/handler.js';
|
|
13439
13459
|
* console.log(new Handler())
|
|
13440
13460
|
* </script>
|
|
13441
13461
|
* ```
|
|
@@ -13673,7 +13693,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
13673
13693
|
*
|
|
13674
13694
|
* ```
|
|
13675
13695
|
* <script type="module">
|
|
13676
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
13696
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
13677
13697
|
* console.log(new Monster.Logging.LogEntry())
|
|
13678
13698
|
* </script>
|
|
13679
13699
|
* ```
|
|
@@ -13682,7 +13702,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
13682
13702
|
*
|
|
13683
13703
|
* ```
|
|
13684
13704
|
* <script type="module">
|
|
13685
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
13705
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/logging/logentry.js';
|
|
13686
13706
|
* console.log(new LogEntry())
|
|
13687
13707
|
* </script>
|
|
13688
13708
|
* ```
|
|
@@ -13868,7 +13888,7 @@ var OFF = 0;
|
|
|
13868
13888
|
*
|
|
13869
13889
|
* ```
|
|
13870
13890
|
* <script type="module">
|
|
13871
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
13891
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
13872
13892
|
* new Monster.Logging.Logger()
|
|
13873
13893
|
* </script>
|
|
13874
13894
|
* ```
|
|
@@ -13877,7 +13897,7 @@ var OFF = 0;
|
|
|
13877
13897
|
*
|
|
13878
13898
|
* ```
|
|
13879
13899
|
* <script type="module">
|
|
13880
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
13900
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/logging/logger.js';
|
|
13881
13901
|
* new Logger()
|
|
13882
13902
|
* </script>
|
|
13883
13903
|
* ```
|
|
@@ -14177,7 +14197,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
14177
14197
|
*
|
|
14178
14198
|
* ```
|
|
14179
14199
|
* <script type="module">
|
|
14180
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
14200
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
14181
14201
|
* console.log(new Monster.Logging.Handler.ConsoleHandler())
|
|
14182
14202
|
* </script>
|
|
14183
14203
|
* ```
|
|
@@ -14186,7 +14206,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
14186
14206
|
*
|
|
14187
14207
|
* ```
|
|
14188
14208
|
* <script type="module">
|
|
14189
|
-
* import {ConsoleHandler} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
14209
|
+
* import {ConsoleHandler} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/logging/handler/console.js';
|
|
14190
14210
|
* console.log(new ConsoleHandler())
|
|
14191
14211
|
* </script>
|
|
14192
14212
|
* ```
|
|
@@ -14262,7 +14282,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14262
14282
|
*
|
|
14263
14283
|
* ```
|
|
14264
14284
|
* <script type="module">
|
|
14265
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
14285
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
14266
14286
|
* Monster.Math.random(1,10)
|
|
14267
14287
|
* // ↦ 5
|
|
14268
14288
|
* </script>
|
|
@@ -14272,7 +14292,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14272
14292
|
*
|
|
14273
14293
|
* ```
|
|
14274
14294
|
* <script type="module">
|
|
14275
|
-
* import {random} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
14295
|
+
* import {random} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/math/random.js';
|
|
14276
14296
|
* random(1,10)
|
|
14277
14297
|
* // ↦ 5
|
|
14278
14298
|
* </script>
|
|
@@ -14429,7 +14449,7 @@ var internalCounter = 0;
|
|
|
14429
14449
|
*
|
|
14430
14450
|
* ```
|
|
14431
14451
|
* <script type="module">
|
|
14432
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
14452
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
14433
14453
|
* console.log(new Monster.Types.RandomID())
|
|
14434
14454
|
* </script>
|
|
14435
14455
|
* ```
|
|
@@ -14438,7 +14458,7 @@ var internalCounter = 0;
|
|
|
14438
14458
|
*
|
|
14439
14459
|
* ```
|
|
14440
14460
|
* <script type="module">
|
|
14441
|
-
* import {RandomID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
14461
|
+
* import {RandomID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/randomid.js';
|
|
14442
14462
|
* console.log(new RandomID())
|
|
14443
14463
|
* </script>
|
|
14444
14464
|
* ```
|
|
@@ -14521,7 +14541,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
14521
14541
|
*
|
|
14522
14542
|
* ```
|
|
14523
14543
|
* <script type="module">
|
|
14524
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
14544
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
14525
14545
|
* console.log(new Monster.Types.Version('1.2.3')) // ↦ 1.2.3
|
|
14526
14546
|
* console.log(new Monster.Types.Version('1')) // ↦ 1.0.0
|
|
14527
14547
|
* </script>
|
|
@@ -14531,7 +14551,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
14531
14551
|
*
|
|
14532
14552
|
* ```
|
|
14533
14553
|
* <script type="module">
|
|
14534
|
-
* import {Version} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
14554
|
+
* import {Version} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/version.js';
|
|
14535
14555
|
* console.log(new Version('1.2.3')) // ↦ 1.2.3
|
|
14536
14556
|
* console.log(new Version('1')) // ↦ 1.0.0
|
|
14537
14557
|
* </script>
|
|
@@ -14539,7 +14559,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
14539
14559
|
*
|
|
14540
14560
|
* @example
|
|
14541
14561
|
*
|
|
14542
|
-
* import {Version} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
14562
|
+
* import {Version} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/version.js';
|
|
14543
14563
|
*
|
|
14544
14564
|
* new Version('1.0.0') // ↦ 1.0.0
|
|
14545
14565
|
* new Version(1) // ↦ 1.0.0
|
|
@@ -14673,7 +14693,7 @@ var monsterVersion;
|
|
|
14673
14693
|
*
|
|
14674
14694
|
* ```
|
|
14675
14695
|
* <script type="module">
|
|
14676
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
14696
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
14677
14697
|
* console.log(Monster.getVersion())
|
|
14678
14698
|
* </script>
|
|
14679
14699
|
* ```
|
|
@@ -14682,7 +14702,7 @@ var monsterVersion;
|
|
|
14682
14702
|
*
|
|
14683
14703
|
* ```
|
|
14684
14704
|
* <script type="module">
|
|
14685
|
-
* import {getVersion} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
14705
|
+
* import {getVersion} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/types/version.js';
|
|
14686
14706
|
* console.log(getVersion())
|
|
14687
14707
|
* </script>
|
|
14688
14708
|
* ```
|
|
@@ -14701,7 +14721,7 @@ function getVersion() {
|
|
|
14701
14721
|
/**#@+ dont touch, replaced by make with package.json version */
|
|
14702
14722
|
|
|
14703
14723
|
|
|
14704
|
-
monsterVersion = new Version('1.
|
|
14724
|
+
monsterVersion = new Version('1.29.0');
|
|
14705
14725
|
/**#@-*/
|
|
14706
14726
|
|
|
14707
14727
|
return monsterVersion;
|
|
@@ -14757,7 +14777,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
14757
14777
|
*
|
|
14758
14778
|
* ```
|
|
14759
14779
|
* <script type="module">
|
|
14760
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
14780
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
14761
14781
|
* new Monster.Util.Comparator()
|
|
14762
14782
|
* </script>
|
|
14763
14783
|
* ```
|
|
@@ -14766,7 +14786,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
14766
14786
|
*
|
|
14767
14787
|
* ```
|
|
14768
14788
|
* <script type="module">
|
|
14769
|
-
* import {Comparator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
14789
|
+
* import {Comparator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/util/comparator.js';
|
|
14770
14790
|
* console.log(new Comparator())
|
|
14771
14791
|
* </script>
|
|
14772
14792
|
* ```
|
|
@@ -14791,7 +14811,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
14791
14811
|
*
|
|
14792
14812
|
* @example
|
|
14793
14813
|
*
|
|
14794
|
-
* import {Comparator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
14814
|
+
* import {Comparator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/util/comparator.js';
|
|
14795
14815
|
*
|
|
14796
14816
|
* console.log(new Comparator().lessThanOrEqual(2, 5))
|
|
14797
14817
|
* // ↦ true
|
|
@@ -15004,7 +15024,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
15004
15024
|
*
|
|
15005
15025
|
* ```
|
|
15006
15026
|
* <script type="module">
|
|
15007
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
15027
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/monster.js';
|
|
15008
15028
|
* Monster.Util.deepFreeze({})
|
|
15009
15029
|
* </script>
|
|
15010
15030
|
* ```
|
|
@@ -15013,7 +15033,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
15013
15033
|
*
|
|
15014
15034
|
* ```
|
|
15015
15035
|
* <script type="module">
|
|
15016
|
-
* import {deepFreeze} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
15036
|
+
* import {deepFreeze} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.29.0/dist/modules/util/freeze.js';
|
|
15017
15037
|
* deepFreeze({})
|
|
15018
15038
|
* </script>
|
|
15019
15039
|
* ```
|