@schukai/monster 1.27.0 → 1.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG +11 -1
- package/README.md +4 -4
- 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 +2 -2
- 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 +2 -2
- package/dist/modules/dom/customcontrol.js +1 -1
- package/dist/modules/dom/customelement.js +1 -1
- 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 +2 -2
- package/dist/modules/types/nodelist.js +2 -2
- package/dist/modules/types/noderecursiveiterator.js +2 -2
- 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/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 +246 -231
- 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 +8 -10
- package/source/data/buildtree.js +51 -17
- 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/constants.js +9 -1
- package/source/dom/customcontrol.js +1 -1
- package/source/dom/customelement.js +1 -1
- package/source/dom/events.js +4 -4
- 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 +25 -13
- 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 +33 -2
- package/source/types/nodelist.js +9 -5
- package/source/types/noderecursiveiterator.js +29 -7
- package/source/types/observer.js +3 -3
- 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/freeze.js +2 -2
- package/source/util/processing.js +3 -3
- package/source/util/trimspaces.js +2 -2
- package/test/cases/data/buildtree.js +84 -21
- package/test/cases/monster.js +1 -1
- package/test/cases/types/node.js +57 -1
- package/test/cases/types/nodelist.js +7 -0
- package/test/cases/types/noderecursiveiterator.js +21 -0
- package/test/web/monster-dev.html +3 -3
- package/test/web/monster.html +2 -2
- package/test/web/test.html +3 -3
- package/test/web/tests.js +2 -2
package/dist/monster.dev.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Monster 1.
|
|
1
|
+
/** Monster 1.28.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.28.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.28.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.28.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.28.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.28.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.28.0/dist/modules/constraints/valid.js';
|
|
588
|
+
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/constraints/invalid.js';
|
|
589
|
+
* import {AndOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.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.28.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.28.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.28.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.28.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.28.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.28.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.28.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.28.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.28.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.28.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.28.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.28.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.28.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.28.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.28.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.28.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.28.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.28.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.28.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.28.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.28.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.28.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.28.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.28.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.28.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.28.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.28.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.28.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.28.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.28.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.28.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.28.0/dist/modules/constraints/valid.js';
|
|
1499
|
+
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/constraints/invalid.js';
|
|
1500
|
+
* import {OrOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.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.28.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.28.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.28.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.28.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.28.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.28.0/dist/modules/data/buildmap.js';
|
|
1771
1771
|
* // a typical data structure as reported by an api
|
|
1772
1772
|
*
|
|
1773
1773
|
* let map;
|
|
@@ -1859,7 +1859,7 @@ function buildMap(subject, selector, valueTemplate, keyTemplate, filter) {
|
|
|
1859
1859
|
* @param {string|Monster.Data~exampleSelectorCallback} selector
|
|
1860
1860
|
* @param {Monster.Data~exampleFilterCallback} [filter]
|
|
1861
1861
|
* @param {function} callback
|
|
1862
|
-
* @return {
|
|
1862
|
+
* @return {Map}
|
|
1863
1863
|
*/
|
|
1864
1864
|
|
|
1865
1865
|
|
|
@@ -1943,7 +1943,7 @@ function buildFlatMap(subject, selector, key, parentMap) {
|
|
|
1943
1943
|
var kk = copyKey.join(_pathfinder_js__WEBPACK_IMPORTED_MODULE_4__.DELIMITER);
|
|
1944
1944
|
var sub = buildFlatMap.call(result, o, parts.join(_pathfinder_js__WEBPACK_IMPORTED_MODULE_4__.DELIMITER), copyKey, o);
|
|
1945
1945
|
|
|
1946
|
-
if ((0,_types_is_js__WEBPACK_IMPORTED_MODULE_1__.isObject)(sub)) {
|
|
1946
|
+
if ((0,_types_is_js__WEBPACK_IMPORTED_MODULE_1__.isObject)(sub) && parentMap !== undefined) {
|
|
1947
1947
|
sub['^'] = parentMap;
|
|
1948
1948
|
}
|
|
1949
1949
|
|
|
@@ -1997,7 +1997,7 @@ function buildFlatMap(subject, selector, key, parentMap) {
|
|
|
1997
1997
|
* Alternatively to a string selector a callback can be specified. this must return a map.
|
|
1998
1998
|
*
|
|
1999
1999
|
* @example
|
|
2000
|
-
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2000
|
+
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/data/buildmap.js';
|
|
2001
2001
|
*
|
|
2002
2002
|
* let obj = {
|
|
2003
2003
|
* "data": [
|
|
@@ -2200,7 +2200,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2200
2200
|
*
|
|
2201
2201
|
* ```
|
|
2202
2202
|
* <script type="module">
|
|
2203
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2203
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
2204
2204
|
* console.log(Monster.Types.validateIterable('2')) // ↦ TypeError
|
|
2205
2205
|
* console.log(Monster.Types.validateIterable([])) // ↦ value
|
|
2206
2206
|
* </script>
|
|
@@ -2210,7 +2210,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2210
2210
|
*
|
|
2211
2211
|
* ```
|
|
2212
2212
|
* <script type="module">
|
|
2213
|
-
* import {validateIterable} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2213
|
+
* import {validateIterable} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/types/validate.js';
|
|
2214
2214
|
* console.log(validateIterable('2')) // ↦ TypeError
|
|
2215
2215
|
* console.log(validateIterable([])) // ↦ value
|
|
2216
2216
|
* </script>
|
|
@@ -2241,7 +2241,7 @@ function validateIterable(value) {
|
|
|
2241
2241
|
*
|
|
2242
2242
|
* ```
|
|
2243
2243
|
* <script type="module">
|
|
2244
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2244
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
2245
2245
|
* console.log(Monster.Types.validatePrimitive('2')) // ↦ value
|
|
2246
2246
|
* console.log(Monster.Types.validatePrimitive([])) // ↦ TypeError
|
|
2247
2247
|
* </script>
|
|
@@ -2251,7 +2251,7 @@ function validateIterable(value) {
|
|
|
2251
2251
|
*
|
|
2252
2252
|
* ```
|
|
2253
2253
|
* <script type="module">
|
|
2254
|
-
* import {validatePrimitive} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2254
|
+
* import {validatePrimitive} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/types/validate.js';
|
|
2255
2255
|
* console.log(validatePrimitive('2')) // ↦ value
|
|
2256
2256
|
* console.log(validatePrimitive([])) // ↦ TypeError
|
|
2257
2257
|
* </script>
|
|
@@ -2283,7 +2283,7 @@ function validatePrimitive(value) {
|
|
|
2283
2283
|
*
|
|
2284
2284
|
* ```
|
|
2285
2285
|
* <script type="module">
|
|
2286
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2286
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
2287
2287
|
* console.log(Monster.Types.validateBoolean(true)) // ↦ value
|
|
2288
2288
|
* console.log(Monster.Types.validateBoolean('2')) // ↦ TypeError
|
|
2289
2289
|
* console.log(Monster.Types.validateBoolean([])) // ↦ TypeError
|
|
@@ -2294,7 +2294,7 @@ function validatePrimitive(value) {
|
|
|
2294
2294
|
*
|
|
2295
2295
|
* ```
|
|
2296
2296
|
* <script type="module">
|
|
2297
|
-
* import {validateBoolean} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2297
|
+
* import {validateBoolean} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/types/validate.js';
|
|
2298
2298
|
* console.log(validateBoolean(false)) // ↦ value
|
|
2299
2299
|
* console.log(validateBoolean('2')) // ↦ TypeError
|
|
2300
2300
|
* console.log(validateBoolean([])) // ↦ TypeError
|
|
@@ -2325,7 +2325,7 @@ function validateBoolean(value) {
|
|
|
2325
2325
|
*
|
|
2326
2326
|
* ```
|
|
2327
2327
|
* <script type="module">
|
|
2328
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2328
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
2329
2329
|
* console.log(Monster.Types.validateString('2')) // ↦ value
|
|
2330
2330
|
* console.log(Monster.Types.validateString([])) // ↦ TypeError
|
|
2331
2331
|
* </script>
|
|
@@ -2335,7 +2335,7 @@ function validateBoolean(value) {
|
|
|
2335
2335
|
*
|
|
2336
2336
|
* ```
|
|
2337
2337
|
* <script type="module">
|
|
2338
|
-
* import {validateString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2338
|
+
* import {validateString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/types/validate.js';
|
|
2339
2339
|
* console.log(validateString('2')) // ↦ value
|
|
2340
2340
|
* console.log(validateString([])) // ↦ TypeError
|
|
2341
2341
|
* </script>
|
|
@@ -2364,7 +2364,7 @@ function validateString(value) {
|
|
|
2364
2364
|
*
|
|
2365
2365
|
* ```
|
|
2366
2366
|
* <script type="module">
|
|
2367
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2367
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
2368
2368
|
* console.log(Monster.Types.validateObject({})) // ↦ value
|
|
2369
2369
|
* console.log(Monster.Types.validateObject('2')) // ↦ TypeError
|
|
2370
2370
|
* console.log(Monster.Types.validateObject([])) // ↦ TypeError
|
|
@@ -2375,7 +2375,7 @@ function validateString(value) {
|
|
|
2375
2375
|
*
|
|
2376
2376
|
* ```
|
|
2377
2377
|
* <script type="module">
|
|
2378
|
-
* import {validateObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2378
|
+
* import {validateObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/types/validate.js';
|
|
2379
2379
|
* console.log(validateObject({})) // ↦ value
|
|
2380
2380
|
* console.log(validateObject('2')) // ↦ TypeError
|
|
2381
2381
|
* console.log(validateObject([])) // ↦ TypeError
|
|
@@ -2405,7 +2405,7 @@ function validateObject(value) {
|
|
|
2405
2405
|
*
|
|
2406
2406
|
* ```
|
|
2407
2407
|
* <script type="module">
|
|
2408
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2408
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
2409
2409
|
* console.log(Monster.Types.validateInstance({}, Object)) // ↦ value
|
|
2410
2410
|
* console.log(Monster.Types.validateInstance('2', Object)) // ↦ TypeError
|
|
2411
2411
|
* console.log(Monster.Types.validateInstance([], Object)) // ↦ TypeError
|
|
@@ -2416,7 +2416,7 @@ function validateObject(value) {
|
|
|
2416
2416
|
*
|
|
2417
2417
|
* ```
|
|
2418
2418
|
* <script type="module">
|
|
2419
|
-
* import {validateInstance} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2419
|
+
* import {validateInstance} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/types/validate.js';
|
|
2420
2420
|
* console.log(validateInstance({}, Object)) // ↦ value
|
|
2421
2421
|
* console.log(validateInstance('2', Object)) // ↦ TypeError
|
|
2422
2422
|
* console.log(validateInstance([], Object)) // ↦ TypeError
|
|
@@ -2456,7 +2456,7 @@ function validateInstance(value, instance) {
|
|
|
2456
2456
|
*
|
|
2457
2457
|
* ```
|
|
2458
2458
|
* <script type="module">
|
|
2459
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2459
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
2460
2460
|
* console.log(Monster.Types.validateArray('2')) // ↦ TypeError
|
|
2461
2461
|
* console.log(Monster.Types.validateArray([])) // ↦ value
|
|
2462
2462
|
* </script>
|
|
@@ -2466,7 +2466,7 @@ function validateInstance(value, instance) {
|
|
|
2466
2466
|
*
|
|
2467
2467
|
* ```
|
|
2468
2468
|
* <script type="module">
|
|
2469
|
-
* import {validateArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2469
|
+
* import {validateArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/types/validate.js';
|
|
2470
2470
|
* console.log(validateArray('2')) // ↦ TypeError
|
|
2471
2471
|
* console.log(validateArray([])) // ↦ value
|
|
2472
2472
|
* </script>
|
|
@@ -2495,7 +2495,7 @@ function validateArray(value) {
|
|
|
2495
2495
|
*
|
|
2496
2496
|
* ```
|
|
2497
2497
|
* <script type="module">
|
|
2498
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2498
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
2499
2499
|
* console.log(Monster.Types.validateSymbol('2')) // ↦ TypeError
|
|
2500
2500
|
* console.log(Monster.Types.validateSymbol([])) // ↦ value
|
|
2501
2501
|
* </script>
|
|
@@ -2505,7 +2505,7 @@ function validateArray(value) {
|
|
|
2505
2505
|
*
|
|
2506
2506
|
* ```
|
|
2507
2507
|
* <script type="module">
|
|
2508
|
-
* import {validateSymbol} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2508
|
+
* import {validateSymbol} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/types/validate.js';
|
|
2509
2509
|
* console.log(validateSymbol('2')) // ↦ TypeError
|
|
2510
2510
|
* console.log(validateSymbol()) // ↦ value
|
|
2511
2511
|
* </script>
|
|
@@ -2534,7 +2534,7 @@ function validateSymbol(value) {
|
|
|
2534
2534
|
*
|
|
2535
2535
|
* ```
|
|
2536
2536
|
* <script type="module">
|
|
2537
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2537
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
2538
2538
|
* console.log(Monster.Types.validateFunction(()=>{})) // ↦ value
|
|
2539
2539
|
* console.log(Monster.Types.validateFunction('2')) // ↦ TypeError
|
|
2540
2540
|
* console.log(Monster.Types.validateFunction([])) // ↦ TypeError
|
|
@@ -2545,7 +2545,7 @@ function validateSymbol(value) {
|
|
|
2545
2545
|
*
|
|
2546
2546
|
* ```
|
|
2547
2547
|
* <script type="module">
|
|
2548
|
-
* import {validateFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2548
|
+
* import {validateFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/types/validate.js';
|
|
2549
2549
|
* console.log(validateFunction(()=>{})) // ↦ value
|
|
2550
2550
|
* console.log(validateFunction('2')) // ↦ TypeError
|
|
2551
2551
|
* console.log(validateFunction([])) // ↦ TypeError
|
|
@@ -2575,7 +2575,7 @@ function validateFunction(value) {
|
|
|
2575
2575
|
*
|
|
2576
2576
|
* ```
|
|
2577
2577
|
* <script type="module">
|
|
2578
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2578
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
2579
2579
|
* console.log(Monster.Types.validateInteger(true)) // ↦ TypeError
|
|
2580
2580
|
* console.log(Monster.Types.validateInteger('2')) // ↦ TypeError
|
|
2581
2581
|
* console.log(Monster.Types.validateInteger(2)) // ↦ value
|
|
@@ -2586,7 +2586,7 @@ function validateFunction(value) {
|
|
|
2586
2586
|
*
|
|
2587
2587
|
* ```
|
|
2588
2588
|
* <script type="module">
|
|
2589
|
-
* import {validateFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2589
|
+
* import {validateFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/types/validate.js';
|
|
2590
2590
|
* console.log(validateInteger(true)) // ↦ TypeError
|
|
2591
2591
|
* console.log(validateInteger('2')) // ↦ TypeError
|
|
2592
2592
|
* console.log(validateInteger(2)) // ↦ value
|
|
@@ -2652,7 +2652,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2652
2652
|
*
|
|
2653
2653
|
* ```
|
|
2654
2654
|
* <script type="module">
|
|
2655
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2655
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
2656
2656
|
* Monster.Util.clone({})
|
|
2657
2657
|
* </script>
|
|
2658
2658
|
* ```
|
|
@@ -2661,7 +2661,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2661
2661
|
*
|
|
2662
2662
|
* ```
|
|
2663
2663
|
* <script type="module">
|
|
2664
|
-
* import {clone} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2664
|
+
* import {clone} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/util/clone.js';
|
|
2665
2665
|
* clone({})
|
|
2666
2666
|
* </script>
|
|
2667
2667
|
* ```
|
|
@@ -2873,7 +2873,7 @@ function getGlobal() {
|
|
|
2873
2873
|
*
|
|
2874
2874
|
* ```
|
|
2875
2875
|
* <script type="module">
|
|
2876
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2876
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
2877
2877
|
* Monster.Types.getGlobalObject('document')
|
|
2878
2878
|
* // ↦ { }
|
|
2879
2879
|
* </script>
|
|
@@ -2883,7 +2883,7 @@ function getGlobal() {
|
|
|
2883
2883
|
*
|
|
2884
2884
|
* ```
|
|
2885
2885
|
* <script type="module">
|
|
2886
|
-
* import {getGlobalObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2886
|
+
* import {getGlobalObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/types/global.js';
|
|
2887
2887
|
* getGlobalObject('document')
|
|
2888
2888
|
* // ↦ { }
|
|
2889
2889
|
* </script>
|
|
@@ -2915,7 +2915,7 @@ function getGlobalObject(name) {
|
|
|
2915
2915
|
*
|
|
2916
2916
|
* ```
|
|
2917
2917
|
* <script type="module">
|
|
2918
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2918
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
2919
2919
|
* console.log(Monster.Types.getGlobalFunction('parseInt')) // ↦ f parseInt() { }
|
|
2920
2920
|
* </script>
|
|
2921
2921
|
* ```
|
|
@@ -2924,7 +2924,7 @@ function getGlobalObject(name) {
|
|
|
2924
2924
|
*
|
|
2925
2925
|
* ```
|
|
2926
2926
|
* <script type="module">
|
|
2927
|
-
* import {getGlobalFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2927
|
+
* import {getGlobalFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/types/global.js';
|
|
2928
2928
|
* console.log(getGlobalFunction('parseInt')) // ↦ f parseInt() { }
|
|
2929
2929
|
* </script>
|
|
2930
2930
|
* ```
|
|
@@ -2975,7 +2975,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2975
2975
|
*
|
|
2976
2976
|
* ```
|
|
2977
2977
|
* <script type="module">
|
|
2978
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2978
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
2979
2979
|
* console.log(Monster.Types.typeOf())
|
|
2980
2980
|
* </script>
|
|
2981
2981
|
* ```
|
|
@@ -2984,14 +2984,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2984
2984
|
*
|
|
2985
2985
|
* ```
|
|
2986
2986
|
* <script type="module">
|
|
2987
|
-
* import {typeOf} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2987
|
+
* import {typeOf} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/types/typeof.js';
|
|
2988
2988
|
* console.log(typeOf())
|
|
2989
2989
|
* </script>
|
|
2990
2990
|
* ```
|
|
2991
2991
|
*
|
|
2992
2992
|
* @example
|
|
2993
2993
|
*
|
|
2994
|
-
* import {typeOf} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
2994
|
+
* import {typeOf} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/types/typeof.js';
|
|
2995
2995
|
*
|
|
2996
2996
|
* console.log(typeOf(undefined)); // ↦ undefined
|
|
2997
2997
|
* console.log(typeOf("")); // ↦ string
|
|
@@ -3110,7 +3110,7 @@ var WILDCARD = '*';
|
|
|
3110
3110
|
*
|
|
3111
3111
|
* ```
|
|
3112
3112
|
* <script type="module">
|
|
3113
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
3113
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
3114
3114
|
* console.log(new Monster.Data.Pathfinder())
|
|
3115
3115
|
* </script>
|
|
3116
3116
|
* ```
|
|
@@ -3119,7 +3119,7 @@ var WILDCARD = '*';
|
|
|
3119
3119
|
*
|
|
3120
3120
|
* ```
|
|
3121
3121
|
* <script type="module">
|
|
3122
|
-
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
3122
|
+
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/data/pathfinder.js';
|
|
3123
3123
|
* console.log(new Pathfinder())
|
|
3124
3124
|
* </script>
|
|
3125
3125
|
* ```
|
|
@@ -3161,7 +3161,7 @@ var WILDCARD = '*';
|
|
|
3161
3161
|
*
|
|
3162
3162
|
* @example
|
|
3163
3163
|
*
|
|
3164
|
-
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
3164
|
+
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/data/pathfinder.js';
|
|
3165
3165
|
*
|
|
3166
3166
|
* let value = new Pathfinder({
|
|
3167
3167
|
* a: {
|
|
@@ -3187,7 +3187,7 @@ var WILDCARD = '*';
|
|
|
3187
3187
|
*
|
|
3188
3188
|
* @example
|
|
3189
3189
|
*
|
|
3190
|
-
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
3190
|
+
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/data/pathfinder.js';
|
|
3191
3191
|
*
|
|
3192
3192
|
* let p = new Pathfinder({
|
|
3193
3193
|
* a: {
|
|
@@ -3602,7 +3602,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
3602
3602
|
*
|
|
3603
3603
|
* ```
|
|
3604
3604
|
* <script type="module">
|
|
3605
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
3605
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
3606
3606
|
* console.log(new Monster.Types.Stack())
|
|
3607
3607
|
* </script>
|
|
3608
3608
|
* ```
|
|
@@ -3611,7 +3611,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
3611
3611
|
*
|
|
3612
3612
|
* ```
|
|
3613
3613
|
* <script type="module">
|
|
3614
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
3614
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/types/stack.js';
|
|
3615
3615
|
* console.log(new Stack())
|
|
3616
3616
|
* </script>
|
|
3617
3617
|
* ```
|
|
@@ -3746,7 +3746,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3746
3746
|
*
|
|
3747
3747
|
* ```
|
|
3748
3748
|
* <script type="module">
|
|
3749
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
3749
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
3750
3750
|
* Monster.Data.Diff(a, b)
|
|
3751
3751
|
* </script>
|
|
3752
3752
|
* ```
|
|
@@ -3755,14 +3755,14 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3755
3755
|
*
|
|
3756
3756
|
* ```
|
|
3757
3757
|
* <script type="module">
|
|
3758
|
-
* import {Diff} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
3758
|
+
* import {Diff} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/data/diff.js';
|
|
3759
3759
|
* Diff(a, b)
|
|
3760
3760
|
* </script>
|
|
3761
3761
|
* ```
|
|
3762
3762
|
*
|
|
3763
3763
|
* @example
|
|
3764
3764
|
*
|
|
3765
|
-
* import {Diff} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
3765
|
+
* import {Diff} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/data/diff.js';
|
|
3766
3766
|
*
|
|
3767
3767
|
* // given are two objects x and y.
|
|
3768
3768
|
*
|
|
@@ -4008,7 +4008,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4008
4008
|
*
|
|
4009
4009
|
* ```
|
|
4010
4010
|
* <script type="module">
|
|
4011
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
4011
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
4012
4012
|
* Monster.Data.extend(a, b)
|
|
4013
4013
|
* </script>
|
|
4014
4014
|
* ```
|
|
@@ -4017,7 +4017,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4017
4017
|
*
|
|
4018
4018
|
* ```
|
|
4019
4019
|
* <script type="module">
|
|
4020
|
-
* import {extend} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
4020
|
+
* import {extend} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/data/extend.js';
|
|
4021
4021
|
* extend(a, b)
|
|
4022
4022
|
* </script>
|
|
4023
4023
|
* ```
|
|
@@ -4146,7 +4146,7 @@ var DELIMITER = '|';
|
|
|
4146
4146
|
*
|
|
4147
4147
|
* ```
|
|
4148
4148
|
* <script type="module">
|
|
4149
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
4149
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
4150
4150
|
* new Monster.Data.Pipe()
|
|
4151
4151
|
* </script>
|
|
4152
4152
|
* ```
|
|
@@ -4155,7 +4155,7 @@ var DELIMITER = '|';
|
|
|
4155
4155
|
*
|
|
4156
4156
|
* ```
|
|
4157
4157
|
* <script type="module">
|
|
4158
|
-
* import {Pipe} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
4158
|
+
* import {Pipe} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/data/pipe.js';
|
|
4159
4159
|
* new Pipe()
|
|
4160
4160
|
* </script>
|
|
4161
4161
|
* ```
|
|
@@ -4166,7 +4166,7 @@ var DELIMITER = '|';
|
|
|
4166
4166
|
* the word is then converted to uppercase letters and a prefix Hello is added. the two backslash safe the space char.
|
|
4167
4167
|
*
|
|
4168
4168
|
* @example
|
|
4169
|
-
* import {Pipe} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
4169
|
+
* import {Pipe} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/data/pipe.js';
|
|
4170
4170
|
*
|
|
4171
4171
|
* let obj = {
|
|
4172
4172
|
* a: {
|
|
@@ -4328,7 +4328,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
4328
4328
|
*
|
|
4329
4329
|
* ```
|
|
4330
4330
|
* <script type="module">
|
|
4331
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
4331
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
4332
4332
|
* new Monster.Data.Transformer()
|
|
4333
4333
|
* </script>
|
|
4334
4334
|
* ```
|
|
@@ -4337,7 +4337,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
4337
4337
|
*
|
|
4338
4338
|
* ```
|
|
4339
4339
|
* <script type="module">
|
|
4340
|
-
* import {Transformer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
4340
|
+
* import {Transformer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/data/transformer.js';
|
|
4341
4341
|
* new Transformer()
|
|
4342
4342
|
* </script>
|
|
4343
4343
|
* ```
|
|
@@ -4423,7 +4423,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
4423
4423
|
*
|
|
4424
4424
|
* @example
|
|
4425
4425
|
*
|
|
4426
|
-
* import {Transformer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
4426
|
+
* import {Transformer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/data/transformer.js';
|
|
4427
4427
|
*
|
|
4428
4428
|
* const transformer = new Transformer("tolower")
|
|
4429
4429
|
*
|
|
@@ -4956,7 +4956,7 @@ var internalCounter = new Map();
|
|
|
4956
4956
|
*
|
|
4957
4957
|
* ```
|
|
4958
4958
|
* <script type="module">
|
|
4959
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
4959
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
4960
4960
|
* console.log(new Monster.Types.ID())
|
|
4961
4961
|
* </script>
|
|
4962
4962
|
* ```
|
|
@@ -4965,7 +4965,7 @@ var internalCounter = new Map();
|
|
|
4965
4965
|
*
|
|
4966
4966
|
* ```
|
|
4967
4967
|
* <script type="module">
|
|
4968
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
4968
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/types/id.js';
|
|
4969
4969
|
* console.log(new ID())
|
|
4970
4970
|
* </script>
|
|
4971
4971
|
* ```
|
|
@@ -5088,7 +5088,7 @@ var ATTRIBUTEPREFIX = "data-monster-";
|
|
|
5088
5088
|
*
|
|
5089
5089
|
* ```
|
|
5090
5090
|
* <script type="module">
|
|
5091
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
5091
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
5092
5092
|
* console.log(new Monster.DOM.Assembler())
|
|
5093
5093
|
* </script>
|
|
5094
5094
|
* ```
|
|
@@ -5097,7 +5097,7 @@ var ATTRIBUTEPREFIX = "data-monster-";
|
|
|
5097
5097
|
*
|
|
5098
5098
|
* ```
|
|
5099
5099
|
* <script type="module">
|
|
5100
|
-
* import {Assembler} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
5100
|
+
* import {Assembler} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/dom/assembler.js';
|
|
5101
5101
|
* console.log(new Assembler())
|
|
5102
5102
|
* </script>
|
|
5103
5103
|
* ```
|
|
@@ -5238,7 +5238,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
5238
5238
|
*
|
|
5239
5239
|
* ```
|
|
5240
5240
|
* <script type="module">
|
|
5241
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
5241
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
5242
5242
|
* new Monster.Types.ProxyObserver()
|
|
5243
5243
|
* </script>
|
|
5244
5244
|
* ```
|
|
@@ -5247,7 +5247,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
5247
5247
|
*
|
|
5248
5248
|
* ```
|
|
5249
5249
|
* <script type="module">
|
|
5250
|
-
* import {ProxyObserver} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
5250
|
+
* import {ProxyObserver} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/types/proxyobserver.js';
|
|
5251
5251
|
* new ProxyObserver()
|
|
5252
5252
|
* </script>
|
|
5253
5253
|
* ```
|
|
@@ -5258,9 +5258,9 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
5258
5258
|
*
|
|
5259
5259
|
* @example
|
|
5260
5260
|
*
|
|
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.
|
|
5261
|
+
* import {ProxyObserver} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/types/proxyobserver.js';
|
|
5262
|
+
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/types/observer.js';
|
|
5263
|
+
* import {isObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/types/is.js';
|
|
5264
5264
|
*
|
|
5265
5265
|
* const o = new Observer(function () {
|
|
5266
5266
|
* if (isObject(this) && this instanceof ProxyObserver) {
|
|
@@ -5586,7 +5586,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
5586
5586
|
*
|
|
5587
5587
|
* ```
|
|
5588
5588
|
* <script type="module">
|
|
5589
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
5589
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
5590
5590
|
* console.log(new Monster.Types.Observer())
|
|
5591
5591
|
* </script>
|
|
5592
5592
|
* ```
|
|
@@ -5595,7 +5595,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
5595
5595
|
*
|
|
5596
5596
|
* ```
|
|
5597
5597
|
* <script type="module">
|
|
5598
|
-
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
5598
|
+
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/types/observer.js';
|
|
5599
5599
|
* console.log(new Observer())
|
|
5600
5600
|
* </script>
|
|
5601
5601
|
* ```
|
|
@@ -5629,7 +5629,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
5629
5629
|
*
|
|
5630
5630
|
* @example
|
|
5631
5631
|
*
|
|
5632
|
-
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
5632
|
+
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/types/observer.js';
|
|
5633
5633
|
*
|
|
5634
5634
|
* const observer = new Observer(function(a, b, c) {
|
|
5635
5635
|
* console.log(this, a, b, c); // ↦ "a", 2, true
|
|
@@ -5829,7 +5829,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
5829
5829
|
*
|
|
5830
5830
|
* ```
|
|
5831
5831
|
* <script type="module">
|
|
5832
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
5832
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
5833
5833
|
* new Monster.Types.TokenList("myclass row")
|
|
5834
5834
|
* </script>
|
|
5835
5835
|
* ```
|
|
@@ -5838,7 +5838,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
5838
5838
|
*
|
|
5839
5839
|
* ```
|
|
5840
5840
|
* <script type="module">
|
|
5841
|
-
* import {TokenList} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
5841
|
+
* import {TokenList} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/types/tokenlist.js';
|
|
5842
5842
|
* new TokenList("myclass row")
|
|
5843
5843
|
* </script>
|
|
5844
5844
|
* ```
|
|
@@ -6261,7 +6261,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
6261
6261
|
*
|
|
6262
6262
|
* ```
|
|
6263
6263
|
* <script type="module">
|
|
6264
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
6264
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
6265
6265
|
* new Monster.Types.UniqueQueue()
|
|
6266
6266
|
* </script>
|
|
6267
6267
|
* ```
|
|
@@ -6270,7 +6270,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
6270
6270
|
*
|
|
6271
6271
|
* ```
|
|
6272
6272
|
* <script type="module">
|
|
6273
|
-
* import {UniqueQueue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
6273
|
+
* import {UniqueQueue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/types/uniquequeue.js';
|
|
6274
6274
|
* new UniqueQueue()
|
|
6275
6275
|
* </script>
|
|
6276
6276
|
* ```
|
|
@@ -6405,7 +6405,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
6405
6405
|
*
|
|
6406
6406
|
* ```
|
|
6407
6407
|
* <script type="module">
|
|
6408
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
6408
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
6409
6409
|
* new Monster.Types.Queue()
|
|
6410
6410
|
* </script>
|
|
6411
6411
|
* ```
|
|
@@ -6414,14 +6414,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
6414
6414
|
*
|
|
6415
6415
|
* ```
|
|
6416
6416
|
* <script type="module">
|
|
6417
|
-
* import {Queue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
6417
|
+
* import {Queue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/types/queue.js';
|
|
6418
6418
|
* new Queue()
|
|
6419
6419
|
* </script>
|
|
6420
6420
|
* ```
|
|
6421
6421
|
*
|
|
6422
6422
|
* @example
|
|
6423
6423
|
*
|
|
6424
|
-
* import {Queue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
6424
|
+
* import {Queue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/types/queue.js';
|
|
6425
6425
|
*
|
|
6426
6426
|
* const queue = new Queue;
|
|
6427
6427
|
*
|
|
@@ -6590,7 +6590,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
6590
6590
|
*
|
|
6591
6591
|
* ```
|
|
6592
6592
|
* <script type="module">
|
|
6593
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
6593
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
6594
6594
|
* console.log(new Monster.Types.ObserverList())
|
|
6595
6595
|
* console.log(new Monster.Types.ObserverList())
|
|
6596
6596
|
* </script>
|
|
@@ -6600,7 +6600,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
6600
6600
|
*
|
|
6601
6601
|
* ```
|
|
6602
6602
|
* <script type="module">
|
|
6603
|
-
* import {ObserverList} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
6603
|
+
* import {ObserverList} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/types/observerlist.js';
|
|
6604
6604
|
* console.log(ObserverList())
|
|
6605
6605
|
* console.log(ObserverList())
|
|
6606
6606
|
* </script>
|
|
@@ -6760,7 +6760,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6760
6760
|
*
|
|
6761
6761
|
* ```
|
|
6762
6762
|
* <script type="module">
|
|
6763
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
6763
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
6764
6764
|
* console.log(Monster.DOM.findClosestObjectLink())
|
|
6765
6765
|
* </script>
|
|
6766
6766
|
* ```
|
|
@@ -6769,7 +6769,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6769
6769
|
*
|
|
6770
6770
|
* ```
|
|
6771
6771
|
* <script type="module">
|
|
6772
|
-
* import {getUpdaterFromNode} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
6772
|
+
* import {getUpdaterFromNode} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/dom/updater.js';
|
|
6773
6773
|
* console.log(findClosestObjectLink())
|
|
6774
6774
|
* </script>
|
|
6775
6775
|
* ```
|
|
@@ -6790,7 +6790,7 @@ function findClosestObjectLink(element) {
|
|
|
6790
6790
|
*
|
|
6791
6791
|
* ```
|
|
6792
6792
|
* <script type="module">
|
|
6793
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
6793
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
6794
6794
|
* Monster.DOM.addToObjectLink();
|
|
6795
6795
|
* </script>
|
|
6796
6796
|
* ```
|
|
@@ -6799,7 +6799,7 @@ function findClosestObjectLink(element) {
|
|
|
6799
6799
|
*
|
|
6800
6800
|
* ```
|
|
6801
6801
|
* <script type="module">
|
|
6802
|
-
* import {addToObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
6802
|
+
* import {addToObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/dom/attributes.js';
|
|
6803
6803
|
* addToObjectLink();
|
|
6804
6804
|
* </script>
|
|
6805
6805
|
* ```
|
|
@@ -6831,7 +6831,7 @@ function addToObjectLink(element, symbol, object) {
|
|
|
6831
6831
|
*
|
|
6832
6832
|
* ```
|
|
6833
6833
|
* <script type="module">
|
|
6834
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
6834
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
6835
6835
|
* Monster.DOM.removeObjectLink();
|
|
6836
6836
|
* </script>
|
|
6837
6837
|
* ```
|
|
@@ -6840,7 +6840,7 @@ function addToObjectLink(element, symbol, object) {
|
|
|
6840
6840
|
*
|
|
6841
6841
|
* ```
|
|
6842
6842
|
* <script type="module">
|
|
6843
|
-
* import {removeObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
6843
|
+
* import {removeObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/dom/attributes.js';
|
|
6844
6844
|
* removeObjectLink();
|
|
6845
6845
|
* </script>
|
|
6846
6846
|
* ```
|
|
@@ -6871,7 +6871,7 @@ function removeObjectLink(element, symbol) {
|
|
|
6871
6871
|
*
|
|
6872
6872
|
* ```
|
|
6873
6873
|
* <script type="module">
|
|
6874
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
6874
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
6875
6875
|
* Monster.DOM.hasObjectLink();
|
|
6876
6876
|
* </script>
|
|
6877
6877
|
* ```
|
|
@@ -6880,7 +6880,7 @@ function removeObjectLink(element, symbol) {
|
|
|
6880
6880
|
*
|
|
6881
6881
|
* ```
|
|
6882
6882
|
* <script type="module">
|
|
6883
|
-
* import {hasObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
6883
|
+
* import {hasObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/dom/attributes.js';
|
|
6884
6884
|
* hasObjectLink();
|
|
6885
6885
|
* </script>
|
|
6886
6886
|
* ```
|
|
@@ -6916,7 +6916,7 @@ function hasObjectLink(element, symbol) {
|
|
|
6916
6916
|
*
|
|
6917
6917
|
* ```
|
|
6918
6918
|
* <script type="module">
|
|
6919
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
6919
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
6920
6920
|
* Monster.DOM.getLinkedObjects();
|
|
6921
6921
|
* </script>
|
|
6922
6922
|
* ```
|
|
@@ -6925,7 +6925,7 @@ function hasObjectLink(element, symbol) {
|
|
|
6925
6925
|
*
|
|
6926
6926
|
* ```
|
|
6927
6927
|
* <script type="module">
|
|
6928
|
-
* import {getLinkedObjects} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
6928
|
+
* import {getLinkedObjects} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/dom/attributes.js';
|
|
6929
6929
|
* getLinkedObjects();
|
|
6930
6930
|
* </script>
|
|
6931
6931
|
* ```
|
|
@@ -6959,7 +6959,7 @@ function getLinkedObjects(element, symbol) {
|
|
|
6959
6959
|
*
|
|
6960
6960
|
* ```
|
|
6961
6961
|
* <script type="module">
|
|
6962
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
6962
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
6963
6963
|
* Monster.DOM.toggleAttributeToken();
|
|
6964
6964
|
* </script>
|
|
6965
6965
|
* ```
|
|
@@ -6968,7 +6968,7 @@ function getLinkedObjects(element, symbol) {
|
|
|
6968
6968
|
*
|
|
6969
6969
|
* ```
|
|
6970
6970
|
* <script type="module">
|
|
6971
|
-
* import {toggleAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
6971
|
+
* import {toggleAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/dom/attributes.js';
|
|
6972
6972
|
* toggleAttributeToken();
|
|
6973
6973
|
* </script>
|
|
6974
6974
|
* ```
|
|
@@ -7003,7 +7003,7 @@ function toggleAttributeToken(element, key, token) {
|
|
|
7003
7003
|
*
|
|
7004
7004
|
* ```
|
|
7005
7005
|
* <script type="module">
|
|
7006
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
7006
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
7007
7007
|
* Monster.DOM.addAttributeToken();
|
|
7008
7008
|
* </script>
|
|
7009
7009
|
* ```
|
|
@@ -7012,7 +7012,7 @@ function toggleAttributeToken(element, key, token) {
|
|
|
7012
7012
|
*
|
|
7013
7013
|
* ```
|
|
7014
7014
|
* <script type="module">
|
|
7015
|
-
* import {addAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
7015
|
+
* import {addAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/dom/attributes.js';
|
|
7016
7016
|
* addAttributeToken();
|
|
7017
7017
|
* </script>
|
|
7018
7018
|
* ```
|
|
@@ -7049,7 +7049,7 @@ function addAttributeToken(element, key, token) {
|
|
|
7049
7049
|
*
|
|
7050
7050
|
* ```
|
|
7051
7051
|
* <script type="module">
|
|
7052
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
7052
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
7053
7053
|
* Monster.DOM.removeAttributeToken();
|
|
7054
7054
|
* </script>
|
|
7055
7055
|
* ```
|
|
@@ -7058,7 +7058,7 @@ function addAttributeToken(element, key, token) {
|
|
|
7058
7058
|
*
|
|
7059
7059
|
* ```
|
|
7060
7060
|
* <script type="module">
|
|
7061
|
-
* import {removeAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
7061
|
+
* import {removeAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/dom/attributes.js';
|
|
7062
7062
|
* removeAttributeToken();
|
|
7063
7063
|
* </script>
|
|
7064
7064
|
* ```
|
|
@@ -7094,7 +7094,7 @@ function removeAttributeToken(element, key, token) {
|
|
|
7094
7094
|
*
|
|
7095
7095
|
* ```
|
|
7096
7096
|
* <script type="module">
|
|
7097
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
7097
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
7098
7098
|
* Monster.DOM.containsAttributeToken();
|
|
7099
7099
|
* </script>
|
|
7100
7100
|
* ```
|
|
@@ -7103,7 +7103,7 @@ function removeAttributeToken(element, key, token) {
|
|
|
7103
7103
|
*
|
|
7104
7104
|
* ```
|
|
7105
7105
|
* <script type="module">
|
|
7106
|
-
* import {containsAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
7106
|
+
* import {containsAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/dom/attributes.js';
|
|
7107
7107
|
* containsAttributeToken();
|
|
7108
7108
|
* </script>
|
|
7109
7109
|
* ```
|
|
@@ -7136,7 +7136,7 @@ function containsAttributeToken(element, key, token) {
|
|
|
7136
7136
|
*
|
|
7137
7137
|
* ```
|
|
7138
7138
|
* <script type="module">
|
|
7139
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
7139
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
7140
7140
|
* Monster.DOM.replaceAttributeToken();
|
|
7141
7141
|
* </script>
|
|
7142
7142
|
* ```
|
|
@@ -7145,7 +7145,7 @@ function containsAttributeToken(element, key, token) {
|
|
|
7145
7145
|
*
|
|
7146
7146
|
* ```
|
|
7147
7147
|
* <script type="module">
|
|
7148
|
-
* import {replaceAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
7148
|
+
* import {replaceAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/dom/attributes.js';
|
|
7149
7149
|
* replaceAttributeToken();
|
|
7150
7150
|
* </script>
|
|
7151
7151
|
* ```
|
|
@@ -7181,7 +7181,7 @@ function replaceAttributeToken(element, key, from, to) {
|
|
|
7181
7181
|
*
|
|
7182
7182
|
* ```
|
|
7183
7183
|
* <script type="module">
|
|
7184
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
7184
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
7185
7185
|
* Monster.DOM.clearAttributeTokens();
|
|
7186
7186
|
* </script>
|
|
7187
7187
|
* ```
|
|
@@ -7190,7 +7190,7 @@ function replaceAttributeToken(element, key, from, to) {
|
|
|
7190
7190
|
*
|
|
7191
7191
|
* ```
|
|
7192
7192
|
* <script type="module">
|
|
7193
|
-
* import {clearAttributeTokens} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
7193
|
+
* import {clearAttributeTokens} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/dom/attributes.js';
|
|
7194
7194
|
* clearAttributeTokens();
|
|
7195
7195
|
* </script>
|
|
7196
7196
|
* ```
|
|
@@ -7238,7 +7238,7 @@ function clearAttributeTokens(element, key) {
|
|
|
7238
7238
|
*
|
|
7239
7239
|
* ```
|
|
7240
7240
|
* <script type="module">
|
|
7241
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
7241
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
7242
7242
|
* Monster.DOM.findClosestByAttribute();
|
|
7243
7243
|
* </script>
|
|
7244
7244
|
* ```
|
|
@@ -7247,7 +7247,7 @@ function clearAttributeTokens(element, key) {
|
|
|
7247
7247
|
*
|
|
7248
7248
|
* ```
|
|
7249
7249
|
* <script type="module">
|
|
7250
|
-
* import {findClosestByAttribute} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
7250
|
+
* import {findClosestByAttribute} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/dom/attributes.js';
|
|
7251
7251
|
* findClosestByAttribute();
|
|
7252
7252
|
* </script>
|
|
7253
7253
|
* ```
|
|
@@ -7305,7 +7305,7 @@ function findClosestByAttribute(element, key, value) {
|
|
|
7305
7305
|
*
|
|
7306
7306
|
* ```
|
|
7307
7307
|
* <script type="module">
|
|
7308
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
7308
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
7309
7309
|
* Monster.DOM.findClosestByClass();
|
|
7310
7310
|
* </script>
|
|
7311
7311
|
* ```
|
|
@@ -7314,7 +7314,7 @@ function findClosestByAttribute(element, key, value) {
|
|
|
7314
7314
|
*
|
|
7315
7315
|
* ```
|
|
7316
7316
|
* <script type="module">
|
|
7317
|
-
* import {findClosestByClass} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
7317
|
+
* import {findClosestByClass} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/dom/attributes.js';
|
|
7318
7318
|
* findClosestByClass();
|
|
7319
7319
|
* </script>
|
|
7320
7320
|
* ```
|
|
@@ -7407,7 +7407,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7407
7407
|
/* harmony export */ "ATTRIBUTE_ERRORMESSAGE": function() { return /* binding */ ATTRIBUTE_ERRORMESSAGE; },
|
|
7408
7408
|
/* harmony export */ "ATTRIBUTE_VALUE": function() { return /* binding */ ATTRIBUTE_VALUE; },
|
|
7409
7409
|
/* harmony export */ "objectUpdaterLinkSymbol": function() { return /* binding */ objectUpdaterLinkSymbol; },
|
|
7410
|
-
/* harmony export */ "ATTRIBUTE_TEMPLATE_PREFIX": function() { return /* binding */ ATTRIBUTE_TEMPLATE_PREFIX; }
|
|
7410
|
+
/* harmony export */ "ATTRIBUTE_TEMPLATE_PREFIX": function() { return /* binding */ ATTRIBUTE_TEMPLATE_PREFIX; },
|
|
7411
|
+
/* harmony export */ "ATTRIBUTE_UPDATER_SELECT_THIS": function() { return /* binding */ ATTRIBUTE_UPDATER_SELECT_THIS; }
|
|
7411
7412
|
/* harmony export */ });
|
|
7412
7413
|
/* harmony import */ var _namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
7413
7414
|
|
|
@@ -7460,6 +7461,13 @@ var ATTRIBUTE_THEME_NAME = ATTRIBUTE_THEME_PREFIX + 'name';
|
|
|
7460
7461
|
*/
|
|
7461
7462
|
|
|
7462
7463
|
var ATTRIBUTE_UPDATER_ATTRIBUTES = ATTRIBUTE_PREFIX + 'attributes';
|
|
7464
|
+
/**
|
|
7465
|
+
* @memberOf Monster.DOM
|
|
7466
|
+
* @type {string}
|
|
7467
|
+
* @since 1.27.1
|
|
7468
|
+
*/
|
|
7469
|
+
|
|
7470
|
+
var ATTRIBUTE_UPDATER_SELECT_THIS = ATTRIBUTE_PREFIX + 'select-this';
|
|
7463
7471
|
/**
|
|
7464
7472
|
* @memberOf Monster.DOM
|
|
7465
7473
|
* @type {string}
|
|
@@ -7840,7 +7848,7 @@ var attachedInternalSymbol = Symbol('attachedInternal');
|
|
|
7840
7848
|
*
|
|
7841
7849
|
* ```
|
|
7842
7850
|
* <script type="module">
|
|
7843
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
7851
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
7844
7852
|
* document.createElement('monster-')
|
|
7845
7853
|
* </script>
|
|
7846
7854
|
* ```
|
|
@@ -8375,7 +8383,7 @@ var attributeObserverSymbol = Symbol('attributeObserver');
|
|
|
8375
8383
|
*
|
|
8376
8384
|
* ```
|
|
8377
8385
|
* <script type="module">
|
|
8378
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
8386
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
8379
8387
|
* document.createElement('monster-')
|
|
8380
8388
|
* </script>
|
|
8381
8389
|
* ```
|
|
@@ -9241,7 +9249,7 @@ var internal = Symbol('internal');
|
|
|
9241
9249
|
*
|
|
9242
9250
|
* ```
|
|
9243
9251
|
* <script type="module">
|
|
9244
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
9252
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
9245
9253
|
* new Monster.Types.DataUrl()
|
|
9246
9254
|
* </script>
|
|
9247
9255
|
* ```
|
|
@@ -9250,7 +9258,7 @@ var internal = Symbol('internal');
|
|
|
9250
9258
|
*
|
|
9251
9259
|
* ```
|
|
9252
9260
|
* <script type="module">
|
|
9253
|
-
* import {DataUrl} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
9261
|
+
* import {DataUrl} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/types/dataurl.js';
|
|
9254
9262
|
* new DataUrl()
|
|
9255
9263
|
* </script>
|
|
9256
9264
|
* ```
|
|
@@ -9330,7 +9338,7 @@ var DataUrl = /*#__PURE__*/function (_Base) {
|
|
|
9330
9338
|
*
|
|
9331
9339
|
* ```
|
|
9332
9340
|
* <script type="module">
|
|
9333
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
9341
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
9334
9342
|
* console.log(Monster.Types.parseDataURL())
|
|
9335
9343
|
* </script>
|
|
9336
9344
|
* ```
|
|
@@ -9339,7 +9347,7 @@ var DataUrl = /*#__PURE__*/function (_Base) {
|
|
|
9339
9347
|
*
|
|
9340
9348
|
* ```
|
|
9341
9349
|
* <script type="module">
|
|
9342
|
-
* import {parseDataURL} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
9350
|
+
* import {parseDataURL} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/types/dataurl.js';
|
|
9343
9351
|
* console.log(parseDataURL())
|
|
9344
9352
|
* </script>
|
|
9345
9353
|
* ```
|
|
@@ -9477,7 +9485,7 @@ var internal = Symbol('internal');
|
|
|
9477
9485
|
*
|
|
9478
9486
|
* ```
|
|
9479
9487
|
* <script type="module">
|
|
9480
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
9488
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
9481
9489
|
* console.log(new Monster.Types.MediaType())
|
|
9482
9490
|
* </script>
|
|
9483
9491
|
* ```
|
|
@@ -9486,7 +9494,7 @@ var internal = Symbol('internal');
|
|
|
9486
9494
|
*
|
|
9487
9495
|
* ```
|
|
9488
9496
|
* <script type="module">
|
|
9489
|
-
* import {MediaType} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
9497
|
+
* import {MediaType} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/types/mediatype.js';
|
|
9490
9498
|
* console.log(new MediaType())
|
|
9491
9499
|
* </script>
|
|
9492
9500
|
* ```
|
|
@@ -9604,7 +9612,7 @@ var MediaType = /*#__PURE__*/function (_Base) {
|
|
|
9604
9612
|
*
|
|
9605
9613
|
* ```
|
|
9606
9614
|
* <script type="module">
|
|
9607
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
9615
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
9608
9616
|
* console.log(Monster.Types.parseMediaType())
|
|
9609
9617
|
* </script>
|
|
9610
9618
|
* ```
|
|
@@ -9613,7 +9621,7 @@ var MediaType = /*#__PURE__*/function (_Base) {
|
|
|
9613
9621
|
*
|
|
9614
9622
|
* ```
|
|
9615
9623
|
* <script type="module">
|
|
9616
|
-
* import {parseMediaType} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
9624
|
+
* import {parseMediaType} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/types/dataurl.js';
|
|
9617
9625
|
* console.log(parseMediaType())
|
|
9618
9626
|
* </script>
|
|
9619
9627
|
* ```
|
|
@@ -9752,7 +9760,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
9752
9760
|
*
|
|
9753
9761
|
* ```
|
|
9754
9762
|
* <script type="module">
|
|
9755
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
9763
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
9756
9764
|
* new Monster.DOM.Template()
|
|
9757
9765
|
* </script>
|
|
9758
9766
|
* ```
|
|
@@ -9761,7 +9769,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
9761
9769
|
*
|
|
9762
9770
|
* ```
|
|
9763
9771
|
* <script type="module">
|
|
9764
|
-
* import {Template} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
9772
|
+
* import {Template} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/dom/template.js';
|
|
9765
9773
|
* new Template()
|
|
9766
9774
|
* </script>
|
|
9767
9775
|
* ```
|
|
@@ -9839,7 +9847,7 @@ var Template = /*#__PURE__*/function (_Base) {
|
|
|
9839
9847
|
*
|
|
9840
9848
|
* ```
|
|
9841
9849
|
* <script type="module">
|
|
9842
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
9850
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
9843
9851
|
* Monster.DOM.findDocumentTemplate()
|
|
9844
9852
|
* </script>
|
|
9845
9853
|
* ```
|
|
@@ -9848,14 +9856,14 @@ var Template = /*#__PURE__*/function (_Base) {
|
|
|
9848
9856
|
*
|
|
9849
9857
|
* ```
|
|
9850
9858
|
* <script type="module">
|
|
9851
|
-
* import {findTemplate} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
9859
|
+
* import {findTemplate} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/dom/template.js';
|
|
9852
9860
|
* findDocumentTemplate()
|
|
9853
9861
|
* </script>
|
|
9854
9862
|
* ```
|
|
9855
9863
|
*
|
|
9856
9864
|
* @example
|
|
9857
9865
|
*
|
|
9858
|
-
* import { findDocumentTemplate } from "https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
9866
|
+
* import { findDocumentTemplate } from "https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/dom/template.js";
|
|
9859
9867
|
*
|
|
9860
9868
|
* const template = document.createElement("template");
|
|
9861
9869
|
* template.id = "myTemplate";
|
|
@@ -10027,7 +10035,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
10027
10035
|
*
|
|
10028
10036
|
* ```
|
|
10029
10037
|
* <script type="module">
|
|
10030
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
10038
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
10031
10039
|
* console.log(new Monster.DOM.Theme())
|
|
10032
10040
|
* </script>
|
|
10033
10041
|
* ```
|
|
@@ -10036,14 +10044,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
10036
10044
|
*
|
|
10037
10045
|
* ```
|
|
10038
10046
|
* <script type="module">
|
|
10039
|
-
* import {Theme} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
10047
|
+
* import {Theme} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/dom/theme.js';
|
|
10040
10048
|
* console.log(new Theme())
|
|
10041
10049
|
* </script>
|
|
10042
10050
|
* ```
|
|
10043
10051
|
*
|
|
10044
10052
|
* @example
|
|
10045
10053
|
*
|
|
10046
|
-
* import {getDocumentTheme} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
10054
|
+
* import {getDocumentTheme} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/dom/theme.js';
|
|
10047
10055
|
*
|
|
10048
10056
|
* const theme = getDocumentTheme();
|
|
10049
10057
|
* console.log(theme.getName());
|
|
@@ -10223,11 +10231,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
10223
10231
|
* For example, to include a string from an object, the attribute `data-monster-replace` can be used.
|
|
10224
10232
|
* a further explanation can be found under {@tutorial dom-based-templating-implementation}.
|
|
10225
10233
|
*
|
|
10234
|
+
* Changes to attributes are made only when the direct values are changed. If you want to assign changes to other values
|
|
10235
|
+
* as well, you have to insert the attribute `data-monster-select-this`. This should be done with care, as it can reduce performance.
|
|
10236
|
+
*
|
|
10226
10237
|
* You can create an object of this class using the monster namespace `new Monster.DOM.Updater()`.
|
|
10227
10238
|
*
|
|
10228
10239
|
* ```
|
|
10229
10240
|
* <script type="module">
|
|
10230
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
10241
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
10231
10242
|
* new Monster.DOM.Updater()
|
|
10232
10243
|
* </script>
|
|
10233
10244
|
* ```
|
|
@@ -10236,14 +10247,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
10236
10247
|
*
|
|
10237
10248
|
* ```
|
|
10238
10249
|
* <script type="module">
|
|
10239
|
-
* import {Updater} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
10250
|
+
* import {Updater} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/dom/updater.js';
|
|
10240
10251
|
* new Updater()
|
|
10241
10252
|
* </script>
|
|
10242
10253
|
* ```
|
|
10243
10254
|
*
|
|
10244
10255
|
* @example
|
|
10245
10256
|
*
|
|
10246
|
-
* import {Updater} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
10257
|
+
* import {Updater} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/dom/updater.js';
|
|
10247
10258
|
*
|
|
10248
10259
|
* // First we prepare the html document.
|
|
10249
10260
|
* // This is done here via script, but can also be inserted into the document as pure html.
|
|
@@ -10995,7 +11006,7 @@ function runUpdateAttributes(container, parts, subject) {
|
|
|
10995
11006
|
var current = parts.join('.');
|
|
10996
11007
|
parts.pop();
|
|
10997
11008
|
var iterator = new Set();
|
|
10998
|
-
var query = '[' + _dom_constants_js__WEBPACK_IMPORTED_MODULE_4__.ATTRIBUTE_UPDATER_ATTRIBUTES + '*="path:' + current + '"], [' + _dom_constants_js__WEBPACK_IMPORTED_MODULE_4__.ATTRIBUTE_UPDATER_ATTRIBUTES + '^="static:"]';
|
|
11009
|
+
var query = '[' + _dom_constants_js__WEBPACK_IMPORTED_MODULE_4__.ATTRIBUTE_UPDATER_SELECT_THIS + '], [' + _dom_constants_js__WEBPACK_IMPORTED_MODULE_4__.ATTRIBUTE_UPDATER_ATTRIBUTES + '*="path:' + current + '"], [' + _dom_constants_js__WEBPACK_IMPORTED_MODULE_4__.ATTRIBUTE_UPDATER_ATTRIBUTES + '^="static:"]';
|
|
10999
11010
|
var e = container.querySelectorAll(query);
|
|
11000
11011
|
|
|
11001
11012
|
if (e.length > 0) {
|
|
@@ -11095,19 +11106,23 @@ function handleInputControlAttributeUpdate(element, name, value) {
|
|
|
11095
11106
|
} else if (element instanceof HTMLInputElement) {
|
|
11096
11107
|
switch (element.type) {
|
|
11097
11108
|
case 'radio':
|
|
11098
|
-
if (name === 'checked'
|
|
11099
|
-
|
|
11100
|
-
|
|
11101
|
-
|
|
11109
|
+
if (name === 'checked') {
|
|
11110
|
+
if (value !== undefined) {
|
|
11111
|
+
element.checked = true;
|
|
11112
|
+
} else {
|
|
11113
|
+
element.checked = false;
|
|
11114
|
+
}
|
|
11102
11115
|
}
|
|
11103
11116
|
|
|
11104
11117
|
break;
|
|
11105
11118
|
|
|
11106
11119
|
case 'checkbox':
|
|
11107
|
-
if (name === 'checked'
|
|
11108
|
-
|
|
11109
|
-
|
|
11110
|
-
|
|
11120
|
+
if (name === 'checked') {
|
|
11121
|
+
if (value !== undefined) {
|
|
11122
|
+
element.checked = true;
|
|
11123
|
+
} else {
|
|
11124
|
+
element.checked = false;
|
|
11125
|
+
}
|
|
11111
11126
|
}
|
|
11112
11127
|
|
|
11113
11128
|
break;
|
|
@@ -11173,7 +11188,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
|
11173
11188
|
*
|
|
11174
11189
|
* ```
|
|
11175
11190
|
* <script type="module">
|
|
11176
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
11191
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
11177
11192
|
* Monster.Util.trimSpaces(" hello ")
|
|
11178
11193
|
* </script>
|
|
11179
11194
|
* ```
|
|
@@ -11182,7 +11197,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
|
11182
11197
|
*
|
|
11183
11198
|
* ```
|
|
11184
11199
|
* <script type="module">
|
|
11185
|
-
* import {trimSpaces} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
11200
|
+
* import {trimSpaces} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/util/trimspaces.js';
|
|
11186
11201
|
* trimSpaces(' hello \\ ')
|
|
11187
11202
|
* </script>
|
|
11188
11203
|
* ```
|
|
@@ -11286,7 +11301,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
11286
11301
|
*
|
|
11287
11302
|
* ```
|
|
11288
11303
|
* <script type="module">
|
|
11289
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
11304
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
11290
11305
|
* console.log(new Monster.DOM.fireEvent())
|
|
11291
11306
|
* </script>
|
|
11292
11307
|
* ```
|
|
@@ -11295,7 +11310,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
11295
11310
|
*
|
|
11296
11311
|
* ```
|
|
11297
11312
|
* <script type="module">
|
|
11298
|
-
* import {fireEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
11313
|
+
* import {fireEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/dom/events.js';
|
|
11299
11314
|
* console.log(fireEvent())
|
|
11300
11315
|
* </script>
|
|
11301
11316
|
* ```
|
|
@@ -11351,7 +11366,7 @@ function fireEvent(element, type) {
|
|
|
11351
11366
|
*
|
|
11352
11367
|
* ```
|
|
11353
11368
|
* <script type="module">
|
|
11354
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
11369
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
11355
11370
|
* new Monster.DOM.findTargetElementFromEvent()
|
|
11356
11371
|
* </script>
|
|
11357
11372
|
* ```
|
|
@@ -11360,7 +11375,7 @@ function fireEvent(element, type) {
|
|
|
11360
11375
|
*
|
|
11361
11376
|
* ```
|
|
11362
11377
|
* <script type="module">
|
|
11363
|
-
* import {findTargetElementFromEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
11378
|
+
* import {findTargetElementFromEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/dom/events.js';
|
|
11364
11379
|
* findTargetElementFromEvent()
|
|
11365
11380
|
* </script>
|
|
11366
11381
|
* ```
|
|
@@ -11431,7 +11446,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
11431
11446
|
*
|
|
11432
11447
|
* ```
|
|
11433
11448
|
* <script type="module">
|
|
11434
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
11449
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
11435
11450
|
* console.log(Monster.DOM.getDocument())
|
|
11436
11451
|
* </script>
|
|
11437
11452
|
* ```
|
|
@@ -11440,7 +11455,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
11440
11455
|
*
|
|
11441
11456
|
* ```
|
|
11442
11457
|
* <script type="module">
|
|
11443
|
-
* import {getDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
11458
|
+
* import {getDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/dom/util.js';
|
|
11444
11459
|
* console.log(getDocument())
|
|
11445
11460
|
* </script>
|
|
11446
11461
|
* ```
|
|
@@ -11495,7 +11510,7 @@ function getDocument() {
|
|
|
11495
11510
|
*
|
|
11496
11511
|
* ```
|
|
11497
11512
|
* <script type="module">
|
|
11498
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
11513
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
11499
11514
|
* console.log(Monster.DOM.getWindow())
|
|
11500
11515
|
* </script>
|
|
11501
11516
|
* ```
|
|
@@ -11504,7 +11519,7 @@ function getDocument() {
|
|
|
11504
11519
|
*
|
|
11505
11520
|
* ```
|
|
11506
11521
|
* <script type="module">
|
|
11507
|
-
* import {getWindow} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
11522
|
+
* import {getWindow} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/dom/util.js';
|
|
11508
11523
|
* console.log(getWindow(null))
|
|
11509
11524
|
* </script>
|
|
11510
11525
|
* ```
|
|
@@ -11564,7 +11579,7 @@ function getWindow() {
|
|
|
11564
11579
|
*
|
|
11565
11580
|
* ```
|
|
11566
11581
|
* <script type="module">
|
|
11567
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
11582
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
11568
11583
|
* console.log(Monster.DOM.getDocumentFragmentFromString())
|
|
11569
11584
|
* </script>
|
|
11570
11585
|
* ```
|
|
@@ -11573,7 +11588,7 @@ function getWindow() {
|
|
|
11573
11588
|
*
|
|
11574
11589
|
* ```
|
|
11575
11590
|
* <script type="module">
|
|
11576
|
-
* import {getDocumentFragmentFromString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
11591
|
+
* import {getDocumentFragmentFromString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/dom/util.js';
|
|
11577
11592
|
* console.log(getDocumentFragmentFromString('<div></div>'))
|
|
11578
11593
|
* </script>
|
|
11579
11594
|
* ```
|
|
@@ -11663,7 +11678,7 @@ var DEFAULT_LANGUAGE = 'en';
|
|
|
11663
11678
|
*
|
|
11664
11679
|
* ```
|
|
11665
11680
|
* <script type="module">
|
|
11666
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
11681
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
11667
11682
|
* new Monster.DOM.getLocaleOfDocument()
|
|
11668
11683
|
* </script>
|
|
11669
11684
|
* ```
|
|
@@ -11672,7 +11687,7 @@ var DEFAULT_LANGUAGE = 'en';
|
|
|
11672
11687
|
*
|
|
11673
11688
|
* ```
|
|
11674
11689
|
* <script type="module">
|
|
11675
|
-
* import {getLocaleOfDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
11690
|
+
* import {getLocaleOfDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/dom/locale.js';
|
|
11676
11691
|
* new getLocaleOfDocument()
|
|
11677
11692
|
* </script>
|
|
11678
11693
|
* ```
|
|
@@ -11765,7 +11780,7 @@ var localeStringSymbol = Symbol('localeString');
|
|
|
11765
11780
|
*
|
|
11766
11781
|
* ```
|
|
11767
11782
|
* <script type="module">
|
|
11768
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
11783
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
11769
11784
|
* new Monster.I18n.Locale()
|
|
11770
11785
|
* </script>
|
|
11771
11786
|
* ```
|
|
@@ -11774,7 +11789,7 @@ var localeStringSymbol = Symbol('localeString');
|
|
|
11774
11789
|
*
|
|
11775
11790
|
* ```
|
|
11776
11791
|
* <script type="module">
|
|
11777
|
-
* import {Locale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
11792
|
+
* import {Locale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/i18n/locale.js';
|
|
11778
11793
|
* new Locale()
|
|
11779
11794
|
* </script>
|
|
11780
11795
|
* ```
|
|
@@ -11967,7 +11982,7 @@ var Locale = /*#__PURE__*/function (_Base) {
|
|
|
11967
11982
|
*
|
|
11968
11983
|
* ```
|
|
11969
11984
|
* <script type="module">
|
|
11970
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
11985
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
11971
11986
|
* new Monster.I18n.createLocale()
|
|
11972
11987
|
* </script>
|
|
11973
11988
|
* ```
|
|
@@ -11976,7 +11991,7 @@ var Locale = /*#__PURE__*/function (_Base) {
|
|
|
11976
11991
|
*
|
|
11977
11992
|
* ```
|
|
11978
11993
|
* <script type="module">
|
|
11979
|
-
* import {createLocale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
11994
|
+
* import {createLocale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/i18n/locale.js';
|
|
11980
11995
|
* createLocale()
|
|
11981
11996
|
* </script>
|
|
11982
11997
|
* ```
|
|
@@ -12152,7 +12167,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
12152
12167
|
*
|
|
12153
12168
|
* ```
|
|
12154
12169
|
* <script type="module">
|
|
12155
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
12170
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
12156
12171
|
* new Monster.I18n.Provider()
|
|
12157
12172
|
* </script>
|
|
12158
12173
|
* ```
|
|
@@ -12161,7 +12176,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
12161
12176
|
*
|
|
12162
12177
|
* ```
|
|
12163
12178
|
* <script type="module">
|
|
12164
|
-
* import {Provider} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
12179
|
+
* import {Provider} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/i18n/provider.js';
|
|
12165
12180
|
* new Provider()
|
|
12166
12181
|
* </script>
|
|
12167
12182
|
* ```
|
|
@@ -12262,7 +12277,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
12262
12277
|
*
|
|
12263
12278
|
* ```
|
|
12264
12279
|
* <script type="module">
|
|
12265
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
12280
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
12266
12281
|
* new Monster.Types.BaseWithOptions()
|
|
12267
12282
|
* </script>
|
|
12268
12283
|
* ```
|
|
@@ -12271,7 +12286,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
12271
12286
|
*
|
|
12272
12287
|
* ```
|
|
12273
12288
|
* <script type="module">
|
|
12274
|
-
* import {BaseWithOptions} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
12289
|
+
* import {BaseWithOptions} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/types/basewithoptions.js';
|
|
12275
12290
|
* new BaseWithOptions()
|
|
12276
12291
|
* </script>
|
|
12277
12292
|
* ```
|
|
@@ -12412,7 +12427,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
12412
12427
|
*
|
|
12413
12428
|
* ```
|
|
12414
12429
|
* <script type="module">
|
|
12415
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
12430
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
12416
12431
|
* new Monster.I18n.Translations()
|
|
12417
12432
|
* </script>
|
|
12418
12433
|
* ```
|
|
@@ -12421,15 +12436,15 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
12421
12436
|
*
|
|
12422
12437
|
* ```
|
|
12423
12438
|
* <script type="module">
|
|
12424
|
-
* import {Translations} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
12439
|
+
* import {Translations} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/i18n/translations.js';
|
|
12425
12440
|
* new Translations()
|
|
12426
12441
|
* </script>
|
|
12427
12442
|
* ```
|
|
12428
12443
|
*
|
|
12429
12444
|
* @example
|
|
12430
12445
|
*
|
|
12431
|
-
* import {Translations} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
12432
|
-
* import {parseLocale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
12446
|
+
* import {Translations} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/i18n/translations.js';
|
|
12447
|
+
* import {parseLocale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/i18n/locale.js';
|
|
12433
12448
|
*
|
|
12434
12449
|
* const translation = new Translations(parseLocale('en-GB'));
|
|
12435
12450
|
*
|
|
@@ -12701,7 +12716,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
12701
12716
|
*
|
|
12702
12717
|
* ```
|
|
12703
12718
|
* <script type="module">
|
|
12704
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
12719
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
12705
12720
|
* new Monster.I18n.Providers.Fetch()
|
|
12706
12721
|
* </script>
|
|
12707
12722
|
* ```
|
|
@@ -12710,14 +12725,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
12710
12725
|
*
|
|
12711
12726
|
* ```
|
|
12712
12727
|
* <script type="module">
|
|
12713
|
-
* import {Fetch} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
12728
|
+
* import {Fetch} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/i18n/providers/fetch.js';
|
|
12714
12729
|
* new Fetch()
|
|
12715
12730
|
* </script>
|
|
12716
12731
|
* ```
|
|
12717
12732
|
*
|
|
12718
12733
|
* @example <caption>das ist ein test</caption>
|
|
12719
12734
|
*
|
|
12720
|
-
* import {Fetch} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
12735
|
+
* import {Fetch} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/i18n/providers/fetch.js';
|
|
12721
12736
|
*
|
|
12722
12737
|
* // fetch from API
|
|
12723
12738
|
* const translation = new Fetch('https://example.com/${language}.json').getTranslation('en-GB');
|
|
@@ -12947,7 +12962,7 @@ var workingDataSymbol = Symbol('workingData');
|
|
|
12947
12962
|
*
|
|
12948
12963
|
* ```
|
|
12949
12964
|
* <script type="module">
|
|
12950
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
12965
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
12951
12966
|
* new Monster.Text.Formatter()
|
|
12952
12967
|
* </script>
|
|
12953
12968
|
* ```
|
|
@@ -12956,7 +12971,7 @@ var workingDataSymbol = Symbol('workingData');
|
|
|
12956
12971
|
*
|
|
12957
12972
|
* ```
|
|
12958
12973
|
* <script type="module">
|
|
12959
|
-
* import {Formatter} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
12974
|
+
* import {Formatter} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/text/formatter.js';
|
|
12960
12975
|
* new Formatter()
|
|
12961
12976
|
* </script>
|
|
12962
12977
|
* ```
|
|
@@ -13001,7 +13016,7 @@ var workingDataSymbol = Symbol('workingData');
|
|
|
13001
13016
|
*
|
|
13002
13017
|
* @example
|
|
13003
13018
|
*
|
|
13004
|
-
* import {Formatter} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
13019
|
+
* import {Formatter} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/text/formatter.js';
|
|
13005
13020
|
*
|
|
13006
13021
|
* new Formatter({
|
|
13007
13022
|
* a: {
|
|
@@ -13346,7 +13361,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
13346
13361
|
*
|
|
13347
13362
|
* ```
|
|
13348
13363
|
* <script type="module">
|
|
13349
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
13364
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
13350
13365
|
* console.log(new Monster.Logging.Handler())
|
|
13351
13366
|
* </script>
|
|
13352
13367
|
* ```
|
|
@@ -13355,7 +13370,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
13355
13370
|
*
|
|
13356
13371
|
* ```
|
|
13357
13372
|
* <script type="module">
|
|
13358
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
13373
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/logging/handler.js';
|
|
13359
13374
|
* console.log(new Handler())
|
|
13360
13375
|
* </script>
|
|
13361
13376
|
* ```
|
|
@@ -13593,7 +13608,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
13593
13608
|
*
|
|
13594
13609
|
* ```
|
|
13595
13610
|
* <script type="module">
|
|
13596
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
13611
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
13597
13612
|
* console.log(new Monster.Logging.LogEntry())
|
|
13598
13613
|
* </script>
|
|
13599
13614
|
* ```
|
|
@@ -13602,7 +13617,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
13602
13617
|
*
|
|
13603
13618
|
* ```
|
|
13604
13619
|
* <script type="module">
|
|
13605
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
13620
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/logging/logentry.js';
|
|
13606
13621
|
* console.log(new LogEntry())
|
|
13607
13622
|
* </script>
|
|
13608
13623
|
* ```
|
|
@@ -13788,7 +13803,7 @@ var OFF = 0;
|
|
|
13788
13803
|
*
|
|
13789
13804
|
* ```
|
|
13790
13805
|
* <script type="module">
|
|
13791
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
13806
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
13792
13807
|
* new Monster.Logging.Logger()
|
|
13793
13808
|
* </script>
|
|
13794
13809
|
* ```
|
|
@@ -13797,7 +13812,7 @@ var OFF = 0;
|
|
|
13797
13812
|
*
|
|
13798
13813
|
* ```
|
|
13799
13814
|
* <script type="module">
|
|
13800
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
13815
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/logging/logger.js';
|
|
13801
13816
|
* new Logger()
|
|
13802
13817
|
* </script>
|
|
13803
13818
|
* ```
|
|
@@ -14097,7 +14112,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
14097
14112
|
*
|
|
14098
14113
|
* ```
|
|
14099
14114
|
* <script type="module">
|
|
14100
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
14115
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
14101
14116
|
* console.log(new Monster.Logging.Handler.ConsoleHandler())
|
|
14102
14117
|
* </script>
|
|
14103
14118
|
* ```
|
|
@@ -14106,7 +14121,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
14106
14121
|
*
|
|
14107
14122
|
* ```
|
|
14108
14123
|
* <script type="module">
|
|
14109
|
-
* import {ConsoleHandler} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
14124
|
+
* import {ConsoleHandler} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/logging/handler/console.js';
|
|
14110
14125
|
* console.log(new ConsoleHandler())
|
|
14111
14126
|
* </script>
|
|
14112
14127
|
* ```
|
|
@@ -14182,7 +14197,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14182
14197
|
*
|
|
14183
14198
|
* ```
|
|
14184
14199
|
* <script type="module">
|
|
14185
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
14200
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
14186
14201
|
* Monster.Math.random(1,10)
|
|
14187
14202
|
* // ↦ 5
|
|
14188
14203
|
* </script>
|
|
@@ -14192,7 +14207,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14192
14207
|
*
|
|
14193
14208
|
* ```
|
|
14194
14209
|
* <script type="module">
|
|
14195
|
-
* import {random} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
14210
|
+
* import {random} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/math/random.js';
|
|
14196
14211
|
* random(1,10)
|
|
14197
14212
|
* // ↦ 5
|
|
14198
14213
|
* </script>
|
|
@@ -14349,7 +14364,7 @@ var internalCounter = 0;
|
|
|
14349
14364
|
*
|
|
14350
14365
|
* ```
|
|
14351
14366
|
* <script type="module">
|
|
14352
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
14367
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
14353
14368
|
* console.log(new Monster.Types.RandomID())
|
|
14354
14369
|
* </script>
|
|
14355
14370
|
* ```
|
|
@@ -14358,7 +14373,7 @@ var internalCounter = 0;
|
|
|
14358
14373
|
*
|
|
14359
14374
|
* ```
|
|
14360
14375
|
* <script type="module">
|
|
14361
|
-
* import {RandomID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
14376
|
+
* import {RandomID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/types/randomid.js';
|
|
14362
14377
|
* console.log(new RandomID())
|
|
14363
14378
|
* </script>
|
|
14364
14379
|
* ```
|
|
@@ -14441,7 +14456,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
14441
14456
|
*
|
|
14442
14457
|
* ```
|
|
14443
14458
|
* <script type="module">
|
|
14444
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
14459
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
14445
14460
|
* console.log(new Monster.Types.Version('1.2.3')) // ↦ 1.2.3
|
|
14446
14461
|
* console.log(new Monster.Types.Version('1')) // ↦ 1.0.0
|
|
14447
14462
|
* </script>
|
|
@@ -14451,7 +14466,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
14451
14466
|
*
|
|
14452
14467
|
* ```
|
|
14453
14468
|
* <script type="module">
|
|
14454
|
-
* import {Version} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
14469
|
+
* import {Version} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/types/version.js';
|
|
14455
14470
|
* console.log(new Version('1.2.3')) // ↦ 1.2.3
|
|
14456
14471
|
* console.log(new Version('1')) // ↦ 1.0.0
|
|
14457
14472
|
* </script>
|
|
@@ -14459,7 +14474,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
14459
14474
|
*
|
|
14460
14475
|
* @example
|
|
14461
14476
|
*
|
|
14462
|
-
* import {Version} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
14477
|
+
* import {Version} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/types/version.js';
|
|
14463
14478
|
*
|
|
14464
14479
|
* new Version('1.0.0') // ↦ 1.0.0
|
|
14465
14480
|
* new Version(1) // ↦ 1.0.0
|
|
@@ -14593,7 +14608,7 @@ var monsterVersion;
|
|
|
14593
14608
|
*
|
|
14594
14609
|
* ```
|
|
14595
14610
|
* <script type="module">
|
|
14596
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
14611
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
14597
14612
|
* console.log(Monster.getVersion())
|
|
14598
14613
|
* </script>
|
|
14599
14614
|
* ```
|
|
@@ -14602,7 +14617,7 @@ var monsterVersion;
|
|
|
14602
14617
|
*
|
|
14603
14618
|
* ```
|
|
14604
14619
|
* <script type="module">
|
|
14605
|
-
* import {getVersion} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
14620
|
+
* import {getVersion} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/types/version.js';
|
|
14606
14621
|
* console.log(getVersion())
|
|
14607
14622
|
* </script>
|
|
14608
14623
|
* ```
|
|
@@ -14621,7 +14636,7 @@ function getVersion() {
|
|
|
14621
14636
|
/**#@+ dont touch, replaced by make with package.json version */
|
|
14622
14637
|
|
|
14623
14638
|
|
|
14624
|
-
monsterVersion = new Version('1.
|
|
14639
|
+
monsterVersion = new Version('1.28.0');
|
|
14625
14640
|
/**#@-*/
|
|
14626
14641
|
|
|
14627
14642
|
return monsterVersion;
|
|
@@ -14677,7 +14692,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
14677
14692
|
*
|
|
14678
14693
|
* ```
|
|
14679
14694
|
* <script type="module">
|
|
14680
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
14695
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
14681
14696
|
* new Monster.Util.Comparator()
|
|
14682
14697
|
* </script>
|
|
14683
14698
|
* ```
|
|
@@ -14686,7 +14701,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
14686
14701
|
*
|
|
14687
14702
|
* ```
|
|
14688
14703
|
* <script type="module">
|
|
14689
|
-
* import {Comparator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
14704
|
+
* import {Comparator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/util/comparator.js';
|
|
14690
14705
|
* console.log(new Comparator())
|
|
14691
14706
|
* </script>
|
|
14692
14707
|
* ```
|
|
@@ -14711,7 +14726,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
14711
14726
|
*
|
|
14712
14727
|
* @example
|
|
14713
14728
|
*
|
|
14714
|
-
* import {Comparator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
14729
|
+
* import {Comparator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/util/comparator.js';
|
|
14715
14730
|
*
|
|
14716
14731
|
* console.log(new Comparator().lessThanOrEqual(2, 5))
|
|
14717
14732
|
* // ↦ true
|
|
@@ -14924,7 +14939,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
14924
14939
|
*
|
|
14925
14940
|
* ```
|
|
14926
14941
|
* <script type="module">
|
|
14927
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
14942
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/monster.js';
|
|
14928
14943
|
* Monster.Util.deepFreeze({})
|
|
14929
14944
|
* </script>
|
|
14930
14945
|
* ```
|
|
@@ -14933,7 +14948,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
14933
14948
|
*
|
|
14934
14949
|
* ```
|
|
14935
14950
|
* <script type="module">
|
|
14936
|
-
* import {deepFreeze} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
|
14951
|
+
* import {deepFreeze} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.28.0/dist/modules/util/freeze.js';
|
|
14937
14952
|
* deepFreeze({})
|
|
14938
14953
|
* </script>
|
|
14939
14954
|
* ```
|