@schukai/monster 1.19.0 → 1.20.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG +6 -0
- package/README.md +3 -3
- package/dist/modules/constants.js +1 -1
- package/dist/modules/constraints/abstract.js +1 -1
- package/dist/modules/constraints/abstractoperator.js +1 -1
- package/dist/modules/constraints/andoperator.js +1 -1
- package/dist/modules/constraints/invalid.js +1 -1
- package/dist/modules/constraints/isarray.js +1 -1
- package/dist/modules/constraints/isobject.js +1 -1
- package/dist/modules/constraints/namespace.js +1 -1
- package/dist/modules/constraints/oroperator.js +1 -1
- package/dist/modules/constraints/valid.js +1 -1
- package/dist/modules/data/buildmap.js +1 -1
- package/dist/modules/data/diff.js +1 -1
- package/dist/modules/data/extend.js +1 -1
- package/dist/modules/data/namespace.js +1 -1
- package/dist/modules/data/pathfinder.js +1 -1
- package/dist/modules/data/pipe.js +1 -1
- package/dist/modules/data/transformer.js +1 -1
- package/dist/modules/dom/assembler.js +1 -1
- package/dist/modules/dom/attributes.js +1 -1
- package/dist/modules/dom/constants.js +1 -1
- package/dist/modules/dom/customcontrol.js +1 -1
- package/dist/modules/dom/customelement.js +1 -1
- package/dist/modules/dom/events.js +2 -2
- package/dist/modules/dom/locale.js +1 -1
- package/dist/modules/dom/namespace.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 +1 -1
- package/dist/modules/dom/util.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/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/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/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/monster.dev.js +229 -222
- package/dist/monster.dev.js.map +1 -1
- package/dist/monster.js +2 -2
- package/package.json +6 -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 +4 -4
- 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 +24 -24
- package/source/dom/customcontrol.js +2 -2
- package/source/dom/customelement.js +2 -2
- package/source/dom/events.js +20 -10
- package/source/dom/locale.js +2 -2
- package/source/dom/template.js +4 -4
- package/source/dom/theme.js +3 -3
- package/source/dom/updater.js +3 -3
- package/source/dom/util.js +6 -6
- package/source/i18n/locale.js +4 -4
- package/source/i18n/provider.js +2 -2
- package/source/i18n/providers/fetch.js +2 -2
- package/source/i18n/translations.js +2 -2
- 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 +2 -2
- 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/observer.js +3 -3
- package/source/types/observerlist.js +2 -2
- package/source/types/package.d.ts +1 -0
- package/source/types/proxyobserver.js +5 -5
- package/source/types/queue.js +3 -3
- package/source/types/randomid.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/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/test/cases/dom/events.js +5 -3
- package/test/cases/monster.js +1 -1
- package/test/web/monster-dev.html +3 -3
- package/test/web/monster.html +2 -2
- package/test/web/test.html +2 -2
- package/test/web/tests.js +1 -1
package/dist/monster.dev.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/** Monster 1.
|
1
|
+
/** Monster 1.20.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();
|
@@ -132,7 +132,7 @@ var Monster = new Namespace("Monster");
|
|
132
132
|
*
|
133
133
|
* ```
|
134
134
|
* <script type="module">
|
135
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
135
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/namespace.js';
|
136
136
|
* function hello() {
|
137
137
|
* console.log('Hello World!');
|
138
138
|
* }
|
@@ -374,7 +374,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
374
374
|
*
|
375
375
|
* ```
|
376
376
|
* <script type="module">
|
377
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
377
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/base.js';
|
378
378
|
* console.log(new Monster.Types.Base())
|
379
379
|
* </script>
|
380
380
|
* ```
|
@@ -383,7 +383,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
383
383
|
*
|
384
384
|
* ```
|
385
385
|
* <script type="module">
|
386
|
-
* import {Base} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
386
|
+
* import {Base} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/base.js';
|
387
387
|
* console.log(new Base())
|
388
388
|
* </script>
|
389
389
|
* ```
|
@@ -546,7 +546,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
546
546
|
*
|
547
547
|
* ```
|
548
548
|
* <script type="module">
|
549
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
549
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/constraints/andoperator.js';
|
550
550
|
* new Monster.Constraint.AndOperator();
|
551
551
|
* </script>
|
552
552
|
* ```
|
@@ -555,16 +555,16 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
555
555
|
*
|
556
556
|
* ```
|
557
557
|
* <script type="module">
|
558
|
-
* import {AndOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
558
|
+
* import {AndOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/constraints/andoperator.js';
|
559
559
|
* new AndOperator();
|
560
560
|
* </script>
|
561
561
|
* ```
|
562
562
|
*
|
563
563
|
* @example
|
564
564
|
*
|
565
|
-
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
566
|
-
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
567
|
-
* import {AndOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
565
|
+
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/constraints/valid.js';
|
566
|
+
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/constraints/invalid.js';
|
567
|
+
* import {AndOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/constraints/andoperator.js';
|
568
568
|
*
|
569
569
|
* new AndOperator(
|
570
570
|
* new Valid(), new Valid()).isValid()
|
@@ -661,7 +661,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
661
661
|
*
|
662
662
|
* ```
|
663
663
|
* <script type="module">
|
664
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
664
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/constraints/invalid.js';
|
665
665
|
* new Monster.Constraint.Invalid();
|
666
666
|
* </script>
|
667
667
|
* ```
|
@@ -670,14 +670,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
670
670
|
*
|
671
671
|
* ```
|
672
672
|
* <script type="module">
|
673
|
-
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
673
|
+
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/constraints/invalid.js';
|
674
674
|
* new Invalid();
|
675
675
|
* </script>
|
676
676
|
* ```
|
677
677
|
*
|
678
678
|
* @example
|
679
679
|
*
|
680
|
-
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
680
|
+
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/constraints/invalid.js';
|
681
681
|
*
|
682
682
|
* new Invalid().isValid()
|
683
683
|
* .then(()=>console.log(true))
|
@@ -767,7 +767,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
767
767
|
*
|
768
768
|
* ```
|
769
769
|
* <script type="module">
|
770
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
770
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/constraints/isarray.js';
|
771
771
|
* console.log(new Monster.Constraint.IsArray())
|
772
772
|
* </script>
|
773
773
|
* ```
|
@@ -776,14 +776,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
776
776
|
*
|
777
777
|
* ```
|
778
778
|
* <script type="module">
|
779
|
-
* import {IsArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
779
|
+
* import {IsArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/constraints/isarray.js';
|
780
780
|
* console.log(new IsArray())
|
781
781
|
* </script>
|
782
782
|
* ```
|
783
783
|
*
|
784
784
|
* @example
|
785
785
|
*
|
786
|
-
* import {IsArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
786
|
+
* import {IsArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/constraints/isarray.js';
|
787
787
|
*
|
788
788
|
* new IsArray()
|
789
789
|
* .isValid([])
|
@@ -869,7 +869,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
869
869
|
*
|
870
870
|
* ```
|
871
871
|
* <script type="module">
|
872
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
872
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/is.js';
|
873
873
|
* console.log(Monster.Types.isIterable(null)) // ↦ false
|
874
874
|
* console.log(Monster.Types.isIterable('hello')) // ↦ true
|
875
875
|
* console.log(Monster.Types.isIterable([])) // ↦ true
|
@@ -880,7 +880,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
880
880
|
*
|
881
881
|
* ```
|
882
882
|
* <script type="module">
|
883
|
-
* import {isIterable} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
883
|
+
* import {isIterable} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/is.js';
|
884
884
|
* console.log(isIterable(null)) // ↦ false
|
885
885
|
* console.log(isIterable('hello')) // ↦ true
|
886
886
|
* console.log(isIterable([])) // ↦ true
|
@@ -906,7 +906,7 @@ function isIterable(value) {
|
|
906
906
|
*
|
907
907
|
* ```
|
908
908
|
* <script type="module">
|
909
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
909
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/is.js';
|
910
910
|
* console.log(Monster.Types.isPrimitive('2')) // ↦ false
|
911
911
|
* console.log(Monster.Types.isPrimitive([])) // ↦ true
|
912
912
|
* </script>
|
@@ -916,7 +916,7 @@ function isIterable(value) {
|
|
916
916
|
*
|
917
917
|
* ```
|
918
918
|
* <script type="module">
|
919
|
-
* import {isPrimitive} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
919
|
+
* import {isPrimitive} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/is.js';
|
920
920
|
* console.log(isPrimitive('2')) // ↦ true
|
921
921
|
* console.log(isPrimitive([])) // ↦ false
|
922
922
|
* </script>
|
@@ -952,7 +952,7 @@ function isPrimitive(value) {
|
|
952
952
|
*
|
953
953
|
* ```
|
954
954
|
* <script type="module">
|
955
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
955
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/is.js';
|
956
956
|
* console.log(Monster.Types.isSymbol('2')) // ↦ false
|
957
957
|
* console.log(Monster.Types.isSymbol(Symbol('test')) // ↦ true
|
958
958
|
* </script>
|
@@ -962,7 +962,7 @@ function isPrimitive(value) {
|
|
962
962
|
*
|
963
963
|
* ```
|
964
964
|
* <script type="module">
|
965
|
-
* import {isSymbol} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
965
|
+
* import {isSymbol} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/is.js';
|
966
966
|
* console.log(isSymbol(Symbol('a'))) // ↦ true
|
967
967
|
* console.log(isSymbol([]) // ↦ false
|
968
968
|
* </script>
|
@@ -986,7 +986,7 @@ function isSymbol(value) {
|
|
986
986
|
*
|
987
987
|
* ```
|
988
988
|
* <script type="module">
|
989
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
989
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/is.js';
|
990
990
|
* console.log(Monster.Types.isBoolean('2')) // ↦ false
|
991
991
|
* console.log(Monster.Types.isBoolean([])) // ↦ false
|
992
992
|
* console.log(Monster.Types.isBoolean(true)) // ↦ true
|
@@ -997,7 +997,7 @@ function isSymbol(value) {
|
|
997
997
|
*
|
998
998
|
* ```
|
999
999
|
* <script type="module">
|
1000
|
-
* import {isBoolean} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1000
|
+
* import {isBoolean} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/is.js';
|
1001
1001
|
* console.log(isBoolean('2')) // ↦ false
|
1002
1002
|
* console.log(isBoolean([])) // ↦ false
|
1003
1003
|
* console.log(isBoolean(2>4)) // ↦ true
|
@@ -1026,7 +1026,7 @@ function isBoolean(value) {
|
|
1026
1026
|
*
|
1027
1027
|
* ```
|
1028
1028
|
* <script type="module">
|
1029
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1029
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/is.js';
|
1030
1030
|
* console.log(Monster.Types.isString('2')) // ↦ true
|
1031
1031
|
* console.log(Monster.Types.isString([])) // ↦ false
|
1032
1032
|
* </script>
|
@@ -1036,7 +1036,7 @@ function isBoolean(value) {
|
|
1036
1036
|
*
|
1037
1037
|
* ```
|
1038
1038
|
* <script type="module">
|
1039
|
-
* import {isString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1039
|
+
* import {isString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/is.js';
|
1040
1040
|
* console.log(isString('2')) // ↦ true
|
1041
1041
|
* console.log(isString([])) // ↦ false
|
1042
1042
|
* </script>
|
@@ -1064,7 +1064,7 @@ function isString(value) {
|
|
1064
1064
|
*
|
1065
1065
|
* ```
|
1066
1066
|
* <script type="module">
|
1067
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1067
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/is.js';
|
1068
1068
|
* console.log(Monster.Types.isObject('2')) // ↦ false
|
1069
1069
|
* console.log(Monster.Types.isObject([])) // ↦ false
|
1070
1070
|
* console.log(Monster.Types.isObject({})) // ↦ true
|
@@ -1075,7 +1075,7 @@ function isString(value) {
|
|
1075
1075
|
*
|
1076
1076
|
* ```
|
1077
1077
|
* <script type="module">
|
1078
|
-
* import {isObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1078
|
+
* import {isObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/is.js';
|
1079
1079
|
* console.log(isObject('2')) // ↦ false
|
1080
1080
|
* console.log(isObject([])) // ↦ false
|
1081
1081
|
* </script>
|
@@ -1106,7 +1106,7 @@ function isObject(value) {
|
|
1106
1106
|
*
|
1107
1107
|
* ```
|
1108
1108
|
* <script type="module">
|
1109
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1109
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/is.js';
|
1110
1110
|
* console.log(Monster.Types.isInstance('2')) // ↦ false
|
1111
1111
|
* console.log(Monster.Types.isInstance([])) // ↦ false
|
1112
1112
|
* console.log(Monster.Types.isInstance({})) // ↦ true
|
@@ -1117,7 +1117,7 @@ function isObject(value) {
|
|
1117
1117
|
*
|
1118
1118
|
* ```
|
1119
1119
|
* <script type="module">
|
1120
|
-
* import {isInstance} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1120
|
+
* import {isInstance} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/is.js';
|
1121
1121
|
* console.log(isInstance('2')) // ↦ false
|
1122
1122
|
* console.log(isInstance([])) // ↦ false
|
1123
1123
|
* </script>
|
@@ -1145,7 +1145,7 @@ function isInstance(value, instance) {
|
|
1145
1145
|
*
|
1146
1146
|
* ```
|
1147
1147
|
* <script type="module">
|
1148
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1148
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/is.js';
|
1149
1149
|
* console.log(Monster.Types.isArray('2')) // ↦ false
|
1150
1150
|
* console.log(Monster.Types.isArray([])) // ↦ true
|
1151
1151
|
* </script>
|
@@ -1155,7 +1155,7 @@ function isInstance(value, instance) {
|
|
1155
1155
|
*
|
1156
1156
|
* ```
|
1157
1157
|
* <script type="module">
|
1158
|
-
* import {isArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1158
|
+
* import {isArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/is.js';
|
1159
1159
|
* console.log(isArray('2')) // ↦ false
|
1160
1160
|
* console.log(isArray([])) // ↦ true
|
1161
1161
|
* </script>
|
@@ -1183,7 +1183,7 @@ function isArray(value) {
|
|
1183
1183
|
*
|
1184
1184
|
* ```
|
1185
1185
|
* <script type="module">
|
1186
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1186
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/is.js';
|
1187
1187
|
* console.log(Monster.Types.isFunction(()=>{})) // ↦ true
|
1188
1188
|
* console.log(Monster.Types.isFunction('2')) // ↦ false
|
1189
1189
|
* console.log(Monster.Types.isFunction([])) // ↦ false
|
@@ -1194,7 +1194,7 @@ function isArray(value) {
|
|
1194
1194
|
*
|
1195
1195
|
* ```
|
1196
1196
|
* <script type="module">
|
1197
|
-
* import {isFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1197
|
+
* import {isFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/is.js';
|
1198
1198
|
* console.log(isFunction(()=>{})) // ↦ true
|
1199
1199
|
* console.log(isFunction('2')) // ↦ false
|
1200
1200
|
* console.log(isFunction([])) // ↦ false
|
@@ -1226,7 +1226,7 @@ function isFunction(value) {
|
|
1226
1226
|
*
|
1227
1227
|
* ```
|
1228
1228
|
* <script type="module">
|
1229
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1229
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/is.js';
|
1230
1230
|
* console.log(Monster.Types.isInteger(()=>{})) // ↦ true
|
1231
1231
|
* console.log(Monster.Types.isInteger('2')) // ↦ false
|
1232
1232
|
* console.log(Monster.Types.isInteger(2)) // ↦ true
|
@@ -1237,7 +1237,7 @@ function isFunction(value) {
|
|
1237
1237
|
*
|
1238
1238
|
* ```
|
1239
1239
|
* <script type="module">
|
1240
|
-
* import {isInteger} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1240
|
+
* import {isInteger} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/is.js';
|
1241
1241
|
* console.log(isInteger(()=>{})) // ↦ true
|
1242
1242
|
* console.log(isInteger('2')) // ↦ false
|
1243
1243
|
* console.log(isInteger(2)) // ↦ true
|
@@ -1306,7 +1306,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
1306
1306
|
*
|
1307
1307
|
* ```
|
1308
1308
|
* <script type="module">
|
1309
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1309
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/constraints/isobject.js';
|
1310
1310
|
* console.log(new Monster.Constraint.IsObject())
|
1311
1311
|
* </script>
|
1312
1312
|
* ```
|
@@ -1315,14 +1315,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
1315
1315
|
*
|
1316
1316
|
* ```
|
1317
1317
|
* <script type="module">
|
1318
|
-
* import {IsObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1318
|
+
* import {IsObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/constraints/isobject.js';
|
1319
1319
|
* console.log(new IsObject())
|
1320
1320
|
* </script>
|
1321
1321
|
* ```
|
1322
1322
|
*
|
1323
1323
|
* @example
|
1324
1324
|
*
|
1325
|
-
* import {IsObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1325
|
+
* import {IsObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/constraints/isobject.js';
|
1326
1326
|
*
|
1327
1327
|
* new IsObject()
|
1328
1328
|
* .isValid({})
|
@@ -1420,7 +1420,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
1420
1420
|
*
|
1421
1421
|
* ```
|
1422
1422
|
* <script type="module">
|
1423
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1423
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/constraint/oroperator.js';
|
1424
1424
|
* new Monster.Constraint.OrOperator();
|
1425
1425
|
* </script>
|
1426
1426
|
* ```
|
@@ -1429,16 +1429,16 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
1429
1429
|
*
|
1430
1430
|
* ```
|
1431
1431
|
* <script type="module">
|
1432
|
-
* import {OrOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1432
|
+
* import {OrOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/constraint/oroperator.js';
|
1433
1433
|
* new OrOperator();
|
1434
1434
|
* </script>
|
1435
1435
|
* ```
|
1436
1436
|
*
|
1437
1437
|
* @example
|
1438
1438
|
*
|
1439
|
-
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1440
|
-
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1441
|
-
* import {OrOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1439
|
+
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/constraints/valid.js';
|
1440
|
+
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/constraints/invalid.js';
|
1441
|
+
* import {OrOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/constraints/oroperator.js';
|
1442
1442
|
*
|
1443
1443
|
* new OrOperator(
|
1444
1444
|
* new Valid(), new Invalid()).isValid()
|
@@ -1558,7 +1558,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
1558
1558
|
*
|
1559
1559
|
* ```
|
1560
1560
|
* <script type="module">
|
1561
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1561
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/constraints/valid.js';
|
1562
1562
|
* new Monster.Constraint.Valid();
|
1563
1563
|
* </script>
|
1564
1564
|
* ```
|
@@ -1567,14 +1567,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
1567
1567
|
*
|
1568
1568
|
* ```
|
1569
1569
|
* <script type="module">
|
1570
|
-
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1570
|
+
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/constraints/valid.js';
|
1571
1571
|
* new Valid();
|
1572
1572
|
* </script>
|
1573
1573
|
* ```
|
1574
1574
|
*
|
1575
1575
|
* @example
|
1576
1576
|
*
|
1577
|
-
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1577
|
+
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/constraints/valid.js';
|
1578
1578
|
*
|
1579
1579
|
* new Valid().isValid()
|
1580
1580
|
* .then(()=>console.log(true))
|
@@ -1681,7 +1681,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
1681
1681
|
*
|
1682
1682
|
* ```
|
1683
1683
|
* <script type="module">
|
1684
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1684
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/data/buildmap.js';
|
1685
1685
|
* console.log(Monster.Data.buildMap())
|
1686
1686
|
* </script>
|
1687
1687
|
* ```
|
@@ -1690,7 +1690,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
1690
1690
|
*
|
1691
1691
|
* ```
|
1692
1692
|
* <script type="module">
|
1693
|
-
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1693
|
+
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/data/buildmap.js';
|
1694
1694
|
* console.log(buildMap())
|
1695
1695
|
* </script>
|
1696
1696
|
* ```
|
@@ -1701,7 +1701,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
1701
1701
|
*
|
1702
1702
|
* @example
|
1703
1703
|
*
|
1704
|
-
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1704
|
+
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/data/buildmap.js';
|
1705
1705
|
* // a typical data structure as reported by an api
|
1706
1706
|
*
|
1707
1707
|
* let map;
|
@@ -1916,7 +1916,7 @@ function buildFlatMap(subject, selector, key, parentMap) {
|
|
1916
1916
|
* Alternatively to a string selector a callback can be specified. this must return a map.
|
1917
1917
|
*
|
1918
1918
|
* @example
|
1919
|
-
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1919
|
+
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/data/buildmap.js';
|
1920
1920
|
*
|
1921
1921
|
* let obj = {
|
1922
1922
|
* "data": [
|
@@ -2119,7 +2119,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
2119
2119
|
*
|
2120
2120
|
* ```
|
2121
2121
|
* <script type="module">
|
2122
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2122
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/validate.js';
|
2123
2123
|
* console.log(Monster.Types.validateIterable('2')) // ↦ TypeError
|
2124
2124
|
* console.log(Monster.Types.validateIterable([])) // ↦ value
|
2125
2125
|
* </script>
|
@@ -2129,7 +2129,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
2129
2129
|
*
|
2130
2130
|
* ```
|
2131
2131
|
* <script type="module">
|
2132
|
-
* import {validateIterable} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2132
|
+
* import {validateIterable} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/validate.js';
|
2133
2133
|
* console.log(validateIterable('2')) // ↦ TypeError
|
2134
2134
|
* console.log(validateIterable([])) // ↦ value
|
2135
2135
|
* </script>
|
@@ -2160,7 +2160,7 @@ function validateIterable(value) {
|
|
2160
2160
|
*
|
2161
2161
|
* ```
|
2162
2162
|
* <script type="module">
|
2163
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2163
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/validate.js';
|
2164
2164
|
* console.log(Monster.Types.validatePrimitive('2')) // ↦ value
|
2165
2165
|
* console.log(Monster.Types.validatePrimitive([])) // ↦ TypeError
|
2166
2166
|
* </script>
|
@@ -2170,7 +2170,7 @@ function validateIterable(value) {
|
|
2170
2170
|
*
|
2171
2171
|
* ```
|
2172
2172
|
* <script type="module">
|
2173
|
-
* import {validatePrimitive} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2173
|
+
* import {validatePrimitive} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/validate.js';
|
2174
2174
|
* console.log(validatePrimitive('2')) // ↦ value
|
2175
2175
|
* console.log(validatePrimitive([])) // ↦ TypeError
|
2176
2176
|
* </script>
|
@@ -2202,7 +2202,7 @@ function validatePrimitive(value) {
|
|
2202
2202
|
*
|
2203
2203
|
* ```
|
2204
2204
|
* <script type="module">
|
2205
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2205
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/validate.js';
|
2206
2206
|
* console.log(Monster.Types.validateBoolean(true)) // ↦ value
|
2207
2207
|
* console.log(Monster.Types.validateBoolean('2')) // ↦ TypeError
|
2208
2208
|
* console.log(Monster.Types.validateBoolean([])) // ↦ TypeError
|
@@ -2213,7 +2213,7 @@ function validatePrimitive(value) {
|
|
2213
2213
|
*
|
2214
2214
|
* ```
|
2215
2215
|
* <script type="module">
|
2216
|
-
* import {validateBoolean} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2216
|
+
* import {validateBoolean} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/validate.js';
|
2217
2217
|
* console.log(validateBoolean(false)) // ↦ value
|
2218
2218
|
* console.log(validateBoolean('2')) // ↦ TypeError
|
2219
2219
|
* console.log(validateBoolean([])) // ↦ TypeError
|
@@ -2244,7 +2244,7 @@ function validateBoolean(value) {
|
|
2244
2244
|
*
|
2245
2245
|
* ```
|
2246
2246
|
* <script type="module">
|
2247
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2247
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/validate.js';
|
2248
2248
|
* console.log(Monster.Types.validateString('2')) // ↦ value
|
2249
2249
|
* console.log(Monster.Types.validateString([])) // ↦ TypeError
|
2250
2250
|
* </script>
|
@@ -2254,7 +2254,7 @@ function validateBoolean(value) {
|
|
2254
2254
|
*
|
2255
2255
|
* ```
|
2256
2256
|
* <script type="module">
|
2257
|
-
* import {validateString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2257
|
+
* import {validateString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/validate.js';
|
2258
2258
|
* console.log(validateString('2')) // ↦ value
|
2259
2259
|
* console.log(validateString([])) // ↦ TypeError
|
2260
2260
|
* </script>
|
@@ -2283,7 +2283,7 @@ function validateString(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.20.0/dist/modules/types/validate.js';
|
2287
2287
|
* console.log(Monster.Types.validateObject({})) // ↦ value
|
2288
2288
|
* console.log(Monster.Types.validateObject('2')) // ↦ TypeError
|
2289
2289
|
* console.log(Monster.Types.validateObject([])) // ↦ TypeError
|
@@ -2294,7 +2294,7 @@ function validateString(value) {
|
|
2294
2294
|
*
|
2295
2295
|
* ```
|
2296
2296
|
* <script type="module">
|
2297
|
-
* import {validateObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2297
|
+
* import {validateObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/validate.js';
|
2298
2298
|
* console.log(validateObject({})) // ↦ value
|
2299
2299
|
* console.log(validateObject('2')) // ↦ TypeError
|
2300
2300
|
* console.log(validateObject([])) // ↦ TypeError
|
@@ -2324,7 +2324,7 @@ function validateObject(value) {
|
|
2324
2324
|
*
|
2325
2325
|
* ```
|
2326
2326
|
* <script type="module">
|
2327
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2327
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/validate.js';
|
2328
2328
|
* console.log(Monster.Types.validateInstance({}, Object)) // ↦ value
|
2329
2329
|
* console.log(Monster.Types.validateInstance('2', Object)) // ↦ TypeError
|
2330
2330
|
* console.log(Monster.Types.validateInstance([], Object)) // ↦ TypeError
|
@@ -2335,7 +2335,7 @@ function validateObject(value) {
|
|
2335
2335
|
*
|
2336
2336
|
* ```
|
2337
2337
|
* <script type="module">
|
2338
|
-
* import {validateInstance} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2338
|
+
* import {validateInstance} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/validate.js';
|
2339
2339
|
* console.log(validateInstance({}, Object)) // ↦ value
|
2340
2340
|
* console.log(validateInstance('2', Object)) // ↦ TypeError
|
2341
2341
|
* console.log(validateInstance([], Object)) // ↦ TypeError
|
@@ -2375,7 +2375,7 @@ function validateInstance(value, instance) {
|
|
2375
2375
|
*
|
2376
2376
|
* ```
|
2377
2377
|
* <script type="module">
|
2378
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2378
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/validate.js';
|
2379
2379
|
* console.log(Monster.Types.validateArray('2')) // ↦ TypeError
|
2380
2380
|
* console.log(Monster.Types.validateArray([])) // ↦ value
|
2381
2381
|
* </script>
|
@@ -2385,7 +2385,7 @@ function validateInstance(value, instance) {
|
|
2385
2385
|
*
|
2386
2386
|
* ```
|
2387
2387
|
* <script type="module">
|
2388
|
-
* import {validateArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2388
|
+
* import {validateArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/validate.js';
|
2389
2389
|
* console.log(validateArray('2')) // ↦ TypeError
|
2390
2390
|
* console.log(validateArray([])) // ↦ value
|
2391
2391
|
* </script>
|
@@ -2414,7 +2414,7 @@ function validateArray(value) {
|
|
2414
2414
|
*
|
2415
2415
|
* ```
|
2416
2416
|
* <script type="module">
|
2417
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2417
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/validate.js';
|
2418
2418
|
* console.log(Monster.Types.validateSymbol('2')) // ↦ TypeError
|
2419
2419
|
* console.log(Monster.Types.validateSymbol([])) // ↦ value
|
2420
2420
|
* </script>
|
@@ -2424,7 +2424,7 @@ function validateArray(value) {
|
|
2424
2424
|
*
|
2425
2425
|
* ```
|
2426
2426
|
* <script type="module">
|
2427
|
-
* import {validateSymbol} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2427
|
+
* import {validateSymbol} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/validate.js';
|
2428
2428
|
* console.log(validateSymbol('2')) // ↦ TypeError
|
2429
2429
|
* console.log(validateSymbol()) // ↦ value
|
2430
2430
|
* </script>
|
@@ -2453,7 +2453,7 @@ function validateSymbol(value) {
|
|
2453
2453
|
*
|
2454
2454
|
* ```
|
2455
2455
|
* <script type="module">
|
2456
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2456
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/validate.js';
|
2457
2457
|
* console.log(Monster.Types.validateFunction(()=>{})) // ↦ value
|
2458
2458
|
* console.log(Monster.Types.validateFunction('2')) // ↦ TypeError
|
2459
2459
|
* console.log(Monster.Types.validateFunction([])) // ↦ TypeError
|
@@ -2464,7 +2464,7 @@ function validateSymbol(value) {
|
|
2464
2464
|
*
|
2465
2465
|
* ```
|
2466
2466
|
* <script type="module">
|
2467
|
-
* import {validateFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2467
|
+
* import {validateFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/validate.js';
|
2468
2468
|
* console.log(validateFunction(()=>{})) // ↦ value
|
2469
2469
|
* console.log(validateFunction('2')) // ↦ TypeError
|
2470
2470
|
* console.log(validateFunction([])) // ↦ TypeError
|
@@ -2494,7 +2494,7 @@ function validateFunction(value) {
|
|
2494
2494
|
*
|
2495
2495
|
* ```
|
2496
2496
|
* <script type="module">
|
2497
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2497
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/validate.js';
|
2498
2498
|
* console.log(Monster.Types.validateInteger(true)) // ↦ TypeError
|
2499
2499
|
* console.log(Monster.Types.validateInteger('2')) // ↦ TypeError
|
2500
2500
|
* console.log(Monster.Types.validateInteger(2)) // ↦ value
|
@@ -2505,7 +2505,7 @@ function validateFunction(value) {
|
|
2505
2505
|
*
|
2506
2506
|
* ```
|
2507
2507
|
* <script type="module">
|
2508
|
-
* import {validateFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2508
|
+
* import {validateFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/validate.js';
|
2509
2509
|
* console.log(validateInteger(true)) // ↦ TypeError
|
2510
2510
|
* console.log(validateInteger('2')) // ↦ TypeError
|
2511
2511
|
* console.log(validateInteger(2)) // ↦ value
|
@@ -2567,7 +2567,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
2567
2567
|
*
|
2568
2568
|
* ```
|
2569
2569
|
* <script type="module">
|
2570
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2570
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/util/clone.js';
|
2571
2571
|
* console.log(Monster.Util.clone({}))
|
2572
2572
|
* </script>
|
2573
2573
|
* ```
|
@@ -2576,7 +2576,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
2576
2576
|
*
|
2577
2577
|
* ```
|
2578
2578
|
* <script type="module">
|
2579
|
-
* import {clone} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2579
|
+
* import {clone} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/util/clone.js';
|
2580
2580
|
* console.log(clone({}))
|
2581
2581
|
* </script>
|
2582
2582
|
* ```
|
@@ -2782,7 +2782,7 @@ function getGlobal() {
|
|
2782
2782
|
*
|
2783
2783
|
* ```
|
2784
2784
|
* <script type="module">
|
2785
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2785
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/global.js';
|
2786
2786
|
* console.log(Monster.Types.getGlobalObject('document')) // ↦ { }
|
2787
2787
|
* </script>
|
2788
2788
|
* ```
|
@@ -2791,7 +2791,7 @@ function getGlobal() {
|
|
2791
2791
|
*
|
2792
2792
|
* ```
|
2793
2793
|
* <script type="module">
|
2794
|
-
* import {getGlobalObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2794
|
+
* import {getGlobalObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/global.js';
|
2795
2795
|
* console.log(getGlobalObject('document')) // ↦ { }
|
2796
2796
|
* </script>
|
2797
2797
|
* ```
|
@@ -2822,7 +2822,7 @@ function getGlobalObject(name) {
|
|
2822
2822
|
*
|
2823
2823
|
* ```
|
2824
2824
|
* <script type="module">
|
2825
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2825
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/global.js';
|
2826
2826
|
* console.log(Monster.Types.getGlobalFunction('parseInt')) // ↦ f parseInt() { }
|
2827
2827
|
* </script>
|
2828
2828
|
* ```
|
@@ -2831,7 +2831,7 @@ function getGlobalObject(name) {
|
|
2831
2831
|
*
|
2832
2832
|
* ```
|
2833
2833
|
* <script type="module">
|
2834
|
-
* import {getGlobalFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2834
|
+
* import {getGlobalFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/global.js';
|
2835
2835
|
* console.log(getGlobalFunction('parseInt')) // ↦ f parseInt() { }
|
2836
2836
|
* </script>
|
2837
2837
|
* ```
|
@@ -2946,7 +2946,7 @@ var WILDCARD = '*';
|
|
2946
2946
|
*
|
2947
2947
|
* ```
|
2948
2948
|
* <script type="module">
|
2949
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2949
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/data/pathfinder.js';
|
2950
2950
|
* console.log(new Monster.Data.Pathfinder())
|
2951
2951
|
* </script>
|
2952
2952
|
* ```
|
@@ -2955,7 +2955,7 @@ var WILDCARD = '*';
|
|
2955
2955
|
*
|
2956
2956
|
* ```
|
2957
2957
|
* <script type="module">
|
2958
|
-
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2958
|
+
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/data/pathfinder.js';
|
2959
2959
|
* console.log(new Pathfinder())
|
2960
2960
|
* </script>
|
2961
2961
|
* ```
|
@@ -2997,7 +2997,7 @@ var WILDCARD = '*';
|
|
2997
2997
|
*
|
2998
2998
|
* @example
|
2999
2999
|
*
|
3000
|
-
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3000
|
+
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/data/pathfinder.js';
|
3001
3001
|
*
|
3002
3002
|
* let value = new Pathfinder({
|
3003
3003
|
* a: {
|
@@ -3023,7 +3023,7 @@ var WILDCARD = '*';
|
|
3023
3023
|
*
|
3024
3024
|
* @example
|
3025
3025
|
*
|
3026
|
-
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3026
|
+
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/data/pathfinder.js';
|
3027
3027
|
*
|
3028
3028
|
* let p = new Pathfinder({
|
3029
3029
|
* a: {
|
@@ -3434,7 +3434,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
3434
3434
|
*
|
3435
3435
|
* ```
|
3436
3436
|
* <script type="module">
|
3437
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3437
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/stack.js';
|
3438
3438
|
* console.log(new Monster.Types.Stack())
|
3439
3439
|
* </script>
|
3440
3440
|
* ```
|
@@ -3443,7 +3443,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
3443
3443
|
*
|
3444
3444
|
* ```
|
3445
3445
|
* <script type="module">
|
3446
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3446
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/stack.js';
|
3447
3447
|
* console.log(new Stack())
|
3448
3448
|
* </script>
|
3449
3449
|
* ```
|
@@ -3578,7 +3578,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
3578
3578
|
*
|
3579
3579
|
* ```
|
3580
3580
|
* <script type="module">
|
3581
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3581
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/data/diff.js';
|
3582
3582
|
* console.log(Monster.Data.Diff(a, b))
|
3583
3583
|
* </script>
|
3584
3584
|
* ```
|
@@ -3587,14 +3587,14 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
3587
3587
|
*
|
3588
3588
|
* ```
|
3589
3589
|
* <script type="module">
|
3590
|
-
* import {Diff} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3590
|
+
* import {Diff} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/data/diff.js';
|
3591
3591
|
* console.log(Diff(a, b))
|
3592
3592
|
* </script>
|
3593
3593
|
* ```
|
3594
3594
|
*
|
3595
3595
|
* @example
|
3596
3596
|
*
|
3597
|
-
* import {Diff} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3597
|
+
* import {Diff} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/data/diff.js';
|
3598
3598
|
*
|
3599
3599
|
* // given are two objects x and y.
|
3600
3600
|
*
|
@@ -3835,7 +3835,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
3835
3835
|
*
|
3836
3836
|
* ```
|
3837
3837
|
* <script type="module">
|
3838
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3838
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/typeof.js';
|
3839
3839
|
* console.log(Monster.Types.typeOf())
|
3840
3840
|
* </script>
|
3841
3841
|
* ```
|
@@ -3844,14 +3844,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
3844
3844
|
*
|
3845
3845
|
* ```
|
3846
3846
|
* <script type="module">
|
3847
|
-
* import {typeOf} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3847
|
+
* import {typeOf} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/typeof.js';
|
3848
3848
|
* console.log(typeOf())
|
3849
3849
|
* </script>
|
3850
3850
|
* ```
|
3851
3851
|
*
|
3852
3852
|
* @example
|
3853
3853
|
*
|
3854
|
-
* import {typeOf} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3854
|
+
* import {typeOf} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/typeof.js';
|
3855
3855
|
*
|
3856
3856
|
* console.log(typeOf(undefined)); // ↦ undefined
|
3857
3857
|
* console.log(typeOf("")); // ↦ string
|
@@ -3911,7 +3911,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
3911
3911
|
*
|
3912
3912
|
* ```
|
3913
3913
|
* <script type="module">
|
3914
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3914
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/data/extend.js';
|
3915
3915
|
* console.log(Monster.Data.extend(a, b))
|
3916
3916
|
* </script>
|
3917
3917
|
* ```
|
@@ -3920,7 +3920,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
3920
3920
|
*
|
3921
3921
|
* ```
|
3922
3922
|
* <script type="module">
|
3923
|
-
* import {extend} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3923
|
+
* import {extend} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/data/extend.js';
|
3924
3924
|
* console.log(extend(a, b))
|
3925
3925
|
* </script>
|
3926
3926
|
* ```
|
@@ -4049,7 +4049,7 @@ var DELIMITER = '|';
|
|
4049
4049
|
*
|
4050
4050
|
* ```
|
4051
4051
|
* <script type="module">
|
4052
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
4052
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/data/pipe.js';
|
4053
4053
|
* console.log(new Monster.Data.Pipe())
|
4054
4054
|
* </script>
|
4055
4055
|
* ```
|
@@ -4058,7 +4058,7 @@ var DELIMITER = '|';
|
|
4058
4058
|
*
|
4059
4059
|
* ```
|
4060
4060
|
* <script type="module">
|
4061
|
-
* import {Pipe} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
4061
|
+
* import {Pipe} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/data/pipe.js';
|
4062
4062
|
* console.log(new Pipe())
|
4063
4063
|
* </script>
|
4064
4064
|
* ```
|
@@ -4069,7 +4069,7 @@ var DELIMITER = '|';
|
|
4069
4069
|
* the word is then converted to uppercase letters and a prefix Hello is added. the two backslash safe the space char.
|
4070
4070
|
*
|
4071
4071
|
* @example
|
4072
|
-
* import {Pipe} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
4072
|
+
* import {Pipe} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/data/pipe.js';
|
4073
4073
|
*
|
4074
4074
|
* let obj = {
|
4075
4075
|
* a: {
|
@@ -4231,7 +4231,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
4231
4231
|
*
|
4232
4232
|
* ```
|
4233
4233
|
* <script type="module">
|
4234
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
4234
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/data/transformer.js';
|
4235
4235
|
* console.log(new Monster.Data.Transformer())
|
4236
4236
|
* </script>
|
4237
4237
|
* ```
|
@@ -4240,7 +4240,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
4240
4240
|
*
|
4241
4241
|
* ```
|
4242
4242
|
* <script type="module">
|
4243
|
-
* import {Transformer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
4243
|
+
* import {Transformer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/data/transformer.js';
|
4244
4244
|
* console.log(new Transformer())
|
4245
4245
|
* </script>
|
4246
4246
|
* ```
|
@@ -4319,7 +4319,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
4319
4319
|
*
|
4320
4320
|
* @example
|
4321
4321
|
*
|
4322
|
-
* import {Transformer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
4322
|
+
* import {Transformer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/data/transformer.js';
|
4323
4323
|
*
|
4324
4324
|
* const transformer = new Transformer("tolower")
|
4325
4325
|
*
|
@@ -4752,7 +4752,7 @@ var internalCounter = new Map();
|
|
4752
4752
|
*
|
4753
4753
|
* ```
|
4754
4754
|
* <script type="module">
|
4755
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
4755
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/id.js';
|
4756
4756
|
* console.log(new Monster.Types.ID())
|
4757
4757
|
* </script>
|
4758
4758
|
* ```
|
@@ -4761,7 +4761,7 @@ var internalCounter = new Map();
|
|
4761
4761
|
*
|
4762
4762
|
* ```
|
4763
4763
|
* <script type="module">
|
4764
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
4764
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/id.js';
|
4765
4765
|
* console.log(new ID())
|
4766
4766
|
* </script>
|
4767
4767
|
* ```
|
@@ -4881,7 +4881,7 @@ var ATTRIBUTEPREFIX = "data-monster-";
|
|
4881
4881
|
*
|
4882
4882
|
* ```
|
4883
4883
|
* <script type="module">
|
4884
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
4884
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/assembler.js';
|
4885
4885
|
* console.log(new Monster.DOM.Assembler())
|
4886
4886
|
* </script>
|
4887
4887
|
* ```
|
@@ -4890,7 +4890,7 @@ var ATTRIBUTEPREFIX = "data-monster-";
|
|
4890
4890
|
*
|
4891
4891
|
* ```
|
4892
4892
|
* <script type="module">
|
4893
|
-
* import {Assembler} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
4893
|
+
* import {Assembler} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/assembler.js';
|
4894
4894
|
* console.log(new Assembler())
|
4895
4895
|
* </script>
|
4896
4896
|
* ```
|
@@ -5029,7 +5029,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5029
5029
|
*
|
5030
5030
|
* ```
|
5031
5031
|
* <script type="module">
|
5032
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5032
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/proxyobserver.js';
|
5033
5033
|
* console.log(new Monster.Types.ProxyObserver())
|
5034
5034
|
* </script>
|
5035
5035
|
* ```
|
@@ -5038,7 +5038,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5038
5038
|
*
|
5039
5039
|
* ```
|
5040
5040
|
* <script type="module">
|
5041
|
-
* import {ProxyObserver} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5041
|
+
* import {ProxyObserver} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/proxyobserver.js';
|
5042
5042
|
* console.log(new ProxyObserver())
|
5043
5043
|
* </script>
|
5044
5044
|
* ```
|
@@ -5049,9 +5049,9 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5049
5049
|
*
|
5050
5050
|
* @example
|
5051
5051
|
*
|
5052
|
-
* import {ProxyObserver} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5053
|
-
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5054
|
-
* import {isObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5052
|
+
* import {ProxyObserver} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/proxyobserver.js';
|
5053
|
+
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/observer.js';
|
5054
|
+
* import {isObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/is.js';
|
5055
5055
|
*
|
5056
5056
|
* const o = new Observer(function () {
|
5057
5057
|
* if (isObject(this) && this instanceof ProxyObserver) {
|
@@ -5358,7 +5358,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5358
5358
|
*
|
5359
5359
|
* ```
|
5360
5360
|
* <script type="module">
|
5361
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5361
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/observer.js';
|
5362
5362
|
* console.log(new Monster.Types.Observer())
|
5363
5363
|
* </script>
|
5364
5364
|
* ```
|
@@ -5367,7 +5367,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5367
5367
|
*
|
5368
5368
|
* ```
|
5369
5369
|
* <script type="module">
|
5370
|
-
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5370
|
+
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/observer.js';
|
5371
5371
|
* console.log(new Observer())
|
5372
5372
|
* </script>
|
5373
5373
|
* ```
|
@@ -5401,7 +5401,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5401
5401
|
*
|
5402
5402
|
* @example
|
5403
5403
|
*
|
5404
|
-
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5404
|
+
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/observer.js';
|
5405
5405
|
*
|
5406
5406
|
* const observer = new Observer(function(a, b, c) {
|
5407
5407
|
* console.log(this, a, b, c); // ↦ "a", 2, true
|
@@ -5601,7 +5601,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5601
5601
|
*
|
5602
5602
|
* ```
|
5603
5603
|
* <script type="module">
|
5604
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5604
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/tokenlist.js';
|
5605
5605
|
* console.log(new Monster.Types.TokenList("myclass row"))
|
5606
5606
|
* console.log(new Monster.Types.TokenList("myclass row"))
|
5607
5607
|
* </script>
|
@@ -5611,7 +5611,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5611
5611
|
*
|
5612
5612
|
* ```
|
5613
5613
|
* <script type="module">
|
5614
|
-
* import {TokenList} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5614
|
+
* import {TokenList} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/tokenlist.js';
|
5615
5615
|
* console.log(new TokenList("myclass row"))
|
5616
5616
|
* console.log(new TokenList("myclass row"))
|
5617
5617
|
* </script>
|
@@ -6034,7 +6034,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
6034
6034
|
*
|
6035
6035
|
* ```
|
6036
6036
|
* <script type="module">
|
6037
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6037
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/uniquequeue.js';
|
6038
6038
|
* console.log(new Monster.Types.UniqueQueue())
|
6039
6039
|
* </script>
|
6040
6040
|
* ```
|
@@ -6043,7 +6043,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
6043
6043
|
*
|
6044
6044
|
* ```
|
6045
6045
|
* <script type="module">
|
6046
|
-
* import {UniqueQueue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6046
|
+
* import {UniqueQueue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/uniquequeue.js';
|
6047
6047
|
* console.log(new UniqueQueue())
|
6048
6048
|
* </script>
|
6049
6049
|
* ```
|
@@ -6178,7 +6178,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
6178
6178
|
*
|
6179
6179
|
* ```
|
6180
6180
|
* <script type="module">
|
6181
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6181
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/queue.js';
|
6182
6182
|
* console.log(new Monster.Types.Queue())
|
6183
6183
|
* </script>
|
6184
6184
|
* ```
|
@@ -6187,14 +6187,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
6187
6187
|
*
|
6188
6188
|
* ```
|
6189
6189
|
* <script type="module">
|
6190
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6190
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/queue.js';
|
6191
6191
|
* console.log(new Queue())
|
6192
6192
|
* </script>
|
6193
6193
|
* ```
|
6194
6194
|
*
|
6195
6195
|
* @example
|
6196
6196
|
*
|
6197
|
-
* import {Queue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6197
|
+
* import {Queue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/queue.js';
|
6198
6198
|
*
|
6199
6199
|
* const queue = new Queue;
|
6200
6200
|
*
|
@@ -6363,7 +6363,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
6363
6363
|
*
|
6364
6364
|
* ```
|
6365
6365
|
* <script type="module">
|
6366
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6366
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/observerlist.js';
|
6367
6367
|
* console.log(new Monster.Types.ObserverList())
|
6368
6368
|
* console.log(new Monster.Types.ObserverList())
|
6369
6369
|
* </script>
|
@@ -6373,7 +6373,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
6373
6373
|
*
|
6374
6374
|
* ```
|
6375
6375
|
* <script type="module">
|
6376
|
-
* import {ObserverList} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6376
|
+
* import {ObserverList} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/observerlist.js';
|
6377
6377
|
* console.log(ObserverList())
|
6378
6378
|
* console.log(ObserverList())
|
6379
6379
|
* </script>
|
@@ -6532,7 +6532,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
6532
6532
|
*
|
6533
6533
|
* ```
|
6534
6534
|
* <script type="module">
|
6535
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6535
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/updater.js';
|
6536
6536
|
* console.log(Monster.DOM.findClosestObjectLink())
|
6537
6537
|
* </script>
|
6538
6538
|
* ```
|
@@ -6541,7 +6541,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
6541
6541
|
*
|
6542
6542
|
* ```
|
6543
6543
|
* <script type="module">
|
6544
|
-
* import {getUpdaterFromNode} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6544
|
+
* import {getUpdaterFromNode} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/updater.js';
|
6545
6545
|
* console.log(findClosestObjectLink())
|
6546
6546
|
* </script>
|
6547
6547
|
* ```
|
@@ -6562,7 +6562,7 @@ function findClosestObjectLink(element) {
|
|
6562
6562
|
*
|
6563
6563
|
* ```
|
6564
6564
|
* <script type="module">
|
6565
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6565
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/attributes.js';
|
6566
6566
|
* Monster.DOM.addToObjectLink();
|
6567
6567
|
* </script>
|
6568
6568
|
* ```
|
@@ -6571,7 +6571,7 @@ function findClosestObjectLink(element) {
|
|
6571
6571
|
*
|
6572
6572
|
* ```
|
6573
6573
|
* <script type="module">
|
6574
|
-
* import {addToObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6574
|
+
* import {addToObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/attributes.js';
|
6575
6575
|
* addToObjectLink();
|
6576
6576
|
* </script>
|
6577
6577
|
* ```
|
@@ -6603,7 +6603,7 @@ function addToObjectLink(element, symbol, object) {
|
|
6603
6603
|
*
|
6604
6604
|
* ```
|
6605
6605
|
* <script type="module">
|
6606
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6606
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/attributes.js';
|
6607
6607
|
* Monster.DOM.removeObjectLink();
|
6608
6608
|
* </script>
|
6609
6609
|
* ```
|
@@ -6612,7 +6612,7 @@ function addToObjectLink(element, symbol, object) {
|
|
6612
6612
|
*
|
6613
6613
|
* ```
|
6614
6614
|
* <script type="module">
|
6615
|
-
* import {removeObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6615
|
+
* import {removeObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/attributes.js';
|
6616
6616
|
* removeObjectLink();
|
6617
6617
|
* </script>
|
6618
6618
|
* ```
|
@@ -6643,7 +6643,7 @@ function removeObjectLink(element, symbol) {
|
|
6643
6643
|
*
|
6644
6644
|
* ```
|
6645
6645
|
* <script type="module">
|
6646
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6646
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/attributes.js';
|
6647
6647
|
* Monster.DOM.hasObjectLink();
|
6648
6648
|
* </script>
|
6649
6649
|
* ```
|
@@ -6652,7 +6652,7 @@ function removeObjectLink(element, symbol) {
|
|
6652
6652
|
*
|
6653
6653
|
* ```
|
6654
6654
|
* <script type="module">
|
6655
|
-
* import {hasObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6655
|
+
* import {hasObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/attributes.js';
|
6656
6656
|
* hasObjectLink();
|
6657
6657
|
* </script>
|
6658
6658
|
* ```
|
@@ -6688,7 +6688,7 @@ function hasObjectLink(element, symbol) {
|
|
6688
6688
|
*
|
6689
6689
|
* ```
|
6690
6690
|
* <script type="module">
|
6691
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6691
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/attributes.js';
|
6692
6692
|
* Monster.DOM.getLinkedObjects();
|
6693
6693
|
* </script>
|
6694
6694
|
* ```
|
@@ -6697,7 +6697,7 @@ function hasObjectLink(element, symbol) {
|
|
6697
6697
|
*
|
6698
6698
|
* ```
|
6699
6699
|
* <script type="module">
|
6700
|
-
* import {getLinkedObjects} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6700
|
+
* import {getLinkedObjects} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/attributes.js';
|
6701
6701
|
* getLinkedObjects();
|
6702
6702
|
* </script>
|
6703
6703
|
* ```
|
@@ -6731,7 +6731,7 @@ function getLinkedObjects(element, symbol) {
|
|
6731
6731
|
*
|
6732
6732
|
* ```
|
6733
6733
|
* <script type="module">
|
6734
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6734
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/attributes.js';
|
6735
6735
|
* Monster.DOM.toggleAttributeToken();
|
6736
6736
|
* </script>
|
6737
6737
|
* ```
|
@@ -6740,7 +6740,7 @@ function getLinkedObjects(element, symbol) {
|
|
6740
6740
|
*
|
6741
6741
|
* ```
|
6742
6742
|
* <script type="module">
|
6743
|
-
* import {toggleAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6743
|
+
* import {toggleAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/attributes.js';
|
6744
6744
|
* toggleAttributeToken();
|
6745
6745
|
* </script>
|
6746
6746
|
* ```
|
@@ -6775,7 +6775,7 @@ function toggleAttributeToken(element, key, token) {
|
|
6775
6775
|
*
|
6776
6776
|
* ```
|
6777
6777
|
* <script type="module">
|
6778
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6778
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/attributes.js';
|
6779
6779
|
* Monster.DOM.addAttributeToken();
|
6780
6780
|
* </script>
|
6781
6781
|
* ```
|
@@ -6784,7 +6784,7 @@ function toggleAttributeToken(element, key, token) {
|
|
6784
6784
|
*
|
6785
6785
|
* ```
|
6786
6786
|
* <script type="module">
|
6787
|
-
* import {addAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6787
|
+
* import {addAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/attributes.js';
|
6788
6788
|
* addAttributeToken();
|
6789
6789
|
* </script>
|
6790
6790
|
* ```
|
@@ -6821,7 +6821,7 @@ function addAttributeToken(element, key, token) {
|
|
6821
6821
|
*
|
6822
6822
|
* ```
|
6823
6823
|
* <script type="module">
|
6824
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6824
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/attributes.js';
|
6825
6825
|
* Monster.DOM.removeAttributeToken();
|
6826
6826
|
* </script>
|
6827
6827
|
* ```
|
@@ -6830,7 +6830,7 @@ function addAttributeToken(element, key, token) {
|
|
6830
6830
|
*
|
6831
6831
|
* ```
|
6832
6832
|
* <script type="module">
|
6833
|
-
* import {removeAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6833
|
+
* import {removeAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/attributes.js';
|
6834
6834
|
* removeAttributeToken();
|
6835
6835
|
* </script>
|
6836
6836
|
* ```
|
@@ -6866,7 +6866,7 @@ function removeAttributeToken(element, key, token) {
|
|
6866
6866
|
*
|
6867
6867
|
* ```
|
6868
6868
|
* <script type="module">
|
6869
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6869
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/attributes.js';
|
6870
6870
|
* Monster.DOM.containsAttributeToken();
|
6871
6871
|
* </script>
|
6872
6872
|
* ```
|
@@ -6875,7 +6875,7 @@ function removeAttributeToken(element, key, token) {
|
|
6875
6875
|
*
|
6876
6876
|
* ```
|
6877
6877
|
* <script type="module">
|
6878
|
-
* import {containsAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6878
|
+
* import {containsAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/attributes.js';
|
6879
6879
|
* containsAttributeToken();
|
6880
6880
|
* </script>
|
6881
6881
|
* ```
|
@@ -6908,7 +6908,7 @@ function containsAttributeToken(element, key, token) {
|
|
6908
6908
|
*
|
6909
6909
|
* ```
|
6910
6910
|
* <script type="module">
|
6911
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6911
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/attributes.js';
|
6912
6912
|
* Monster.DOM.replaceAttributeToken();
|
6913
6913
|
* </script>
|
6914
6914
|
* ```
|
@@ -6917,7 +6917,7 @@ function containsAttributeToken(element, key, token) {
|
|
6917
6917
|
*
|
6918
6918
|
* ```
|
6919
6919
|
* <script type="module">
|
6920
|
-
* import {replaceAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6920
|
+
* import {replaceAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/attributes.js';
|
6921
6921
|
* replaceAttributeToken();
|
6922
6922
|
* </script>
|
6923
6923
|
* ```
|
@@ -6953,7 +6953,7 @@ function replaceAttributeToken(element, key, from, to) {
|
|
6953
6953
|
*
|
6954
6954
|
* ```
|
6955
6955
|
* <script type="module">
|
6956
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6956
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/attributes.js';
|
6957
6957
|
* Monster.DOM.clearAttributeTokens();
|
6958
6958
|
* </script>
|
6959
6959
|
* ```
|
@@ -6962,7 +6962,7 @@ function replaceAttributeToken(element, key, from, to) {
|
|
6962
6962
|
*
|
6963
6963
|
* ```
|
6964
6964
|
* <script type="module">
|
6965
|
-
* import {clearAttributeTokens} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6965
|
+
* import {clearAttributeTokens} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/attributes.js';
|
6966
6966
|
* clearAttributeTokens();
|
6967
6967
|
* </script>
|
6968
6968
|
* ```
|
@@ -6992,7 +6992,7 @@ function clearAttributeTokens(element, key) {
|
|
6992
6992
|
*
|
6993
6993
|
* ```
|
6994
6994
|
* <script type="module">
|
6995
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6995
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/attributes.js';
|
6996
6996
|
* Monster.DOM.findClosestByAttribute();
|
6997
6997
|
* </script>
|
6998
6998
|
* ```
|
@@ -7001,7 +7001,7 @@ function clearAttributeTokens(element, key) {
|
|
7001
7001
|
*
|
7002
7002
|
* ```
|
7003
7003
|
* <script type="module">
|
7004
|
-
* import {findClosestByAttribute} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7004
|
+
* import {findClosestByAttribute} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/attributes.js';
|
7005
7005
|
* findClosestByAttribute();
|
7006
7006
|
* </script>
|
7007
7007
|
* ```
|
@@ -7237,7 +7237,7 @@ var internalSymbol = Symbol('internalSymbol');
|
|
7237
7237
|
*
|
7238
7238
|
* ```
|
7239
7239
|
* <script type="module">
|
7240
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7240
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/customcontrol.js';
|
7241
7241
|
* console.log(new Monster.DOM.CustomControl())
|
7242
7242
|
* </script>
|
7243
7243
|
* ```
|
@@ -7246,7 +7246,7 @@ var internalSymbol = Symbol('internalSymbol');
|
|
7246
7246
|
*
|
7247
7247
|
* ```
|
7248
7248
|
* <script type="module">
|
7249
|
-
* import {CustomControl} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7249
|
+
* import {CustomControl} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/customcontrol.js';
|
7250
7250
|
* console.log(new CustomControl())
|
7251
7251
|
* </script>
|
7252
7252
|
* ```
|
@@ -7747,7 +7747,7 @@ var assembleMethodSymbol = Symbol('assembleMethodSymbol');
|
|
7747
7747
|
*
|
7748
7748
|
* ```
|
7749
7749
|
* <script type="module">
|
7750
|
-
* import {CustomElement} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7750
|
+
* import {CustomElement} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/customelement.js';
|
7751
7751
|
* console.log(new Monster.DOM.CustomElement())
|
7752
7752
|
* </script>
|
7753
7753
|
* ```
|
@@ -7756,7 +7756,7 @@ var assembleMethodSymbol = Symbol('assembleMethodSymbol');
|
|
7756
7756
|
*
|
7757
7757
|
* ```
|
7758
7758
|
* <script type="module">
|
7759
|
-
* import {CustomElement} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7759
|
+
* import {CustomElement} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/customelement.js';
|
7760
7760
|
* console.log(new CustomElement())
|
7761
7761
|
* </script>
|
7762
7762
|
* ```
|
@@ -8500,7 +8500,7 @@ var internal = Symbol('internal');
|
|
8500
8500
|
*
|
8501
8501
|
* ```
|
8502
8502
|
* <script type="module">
|
8503
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
8503
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/dataurl.js';
|
8504
8504
|
* console.log(new Monster.Types.DataUrl())
|
8505
8505
|
* </script>
|
8506
8506
|
* ```
|
@@ -8509,7 +8509,7 @@ var internal = Symbol('internal');
|
|
8509
8509
|
*
|
8510
8510
|
* ```
|
8511
8511
|
* <script type="module">
|
8512
|
-
* import {DataUrl} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
8512
|
+
* import {DataUrl} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/dataurl.js';
|
8513
8513
|
* console.log(new DataUrl())
|
8514
8514
|
* </script>
|
8515
8515
|
* ```
|
@@ -8589,7 +8589,7 @@ var DataUrl = /*#__PURE__*/function (_Base) {
|
|
8589
8589
|
*
|
8590
8590
|
* ```
|
8591
8591
|
* <script type="module">
|
8592
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
8592
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/dataurl.js';
|
8593
8593
|
* console.log(Monster.Types.parseDataURL())
|
8594
8594
|
* </script>
|
8595
8595
|
* ```
|
@@ -8598,7 +8598,7 @@ var DataUrl = /*#__PURE__*/function (_Base) {
|
|
8598
8598
|
*
|
8599
8599
|
* ```
|
8600
8600
|
* <script type="module">
|
8601
|
-
* import {parseDataURL} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
8601
|
+
* import {parseDataURL} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/dataurl.js';
|
8602
8602
|
* console.log(parseDataURL())
|
8603
8603
|
* </script>
|
8604
8604
|
* ```
|
@@ -8736,7 +8736,7 @@ var internal = Symbol('internal');
|
|
8736
8736
|
*
|
8737
8737
|
* ```
|
8738
8738
|
* <script type="module">
|
8739
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
8739
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/mediatype.js';
|
8740
8740
|
* console.log(new Monster.Types.MediaType())
|
8741
8741
|
* </script>
|
8742
8742
|
* ```
|
@@ -8745,7 +8745,7 @@ var internal = Symbol('internal');
|
|
8745
8745
|
*
|
8746
8746
|
* ```
|
8747
8747
|
* <script type="module">
|
8748
|
-
* import {MediaType} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
8748
|
+
* import {MediaType} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/mediatype.js';
|
8749
8749
|
* console.log(new MediaType())
|
8750
8750
|
* </script>
|
8751
8751
|
* ```
|
@@ -8863,7 +8863,7 @@ var MediaType = /*#__PURE__*/function (_Base) {
|
|
8863
8863
|
*
|
8864
8864
|
* ```
|
8865
8865
|
* <script type="module">
|
8866
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
8866
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/dataurl.js';
|
8867
8867
|
* console.log(Monster.Types.parseMediaType())
|
8868
8868
|
* </script>
|
8869
8869
|
* ```
|
@@ -8872,7 +8872,7 @@ var MediaType = /*#__PURE__*/function (_Base) {
|
|
8872
8872
|
*
|
8873
8873
|
* ```
|
8874
8874
|
* <script type="module">
|
8875
|
-
* import {parseMediaType} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
8875
|
+
* import {parseMediaType} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/dataurl.js';
|
8876
8876
|
* console.log(parseMediaType())
|
8877
8877
|
* </script>
|
8878
8878
|
* ```
|
@@ -9009,7 +9009,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
9009
9009
|
*
|
9010
9010
|
* ```
|
9011
9011
|
* <script type="module">
|
9012
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9012
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/template.js';
|
9013
9013
|
* console.log(new Monster.DOM.Template())
|
9014
9014
|
* </script>
|
9015
9015
|
* ```
|
@@ -9018,7 +9018,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
9018
9018
|
*
|
9019
9019
|
* ```
|
9020
9020
|
* <script type="module">
|
9021
|
-
* import {Template} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9021
|
+
* import {Template} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/template.js';
|
9022
9022
|
* console.log(new Template())
|
9023
9023
|
* </script>
|
9024
9024
|
* ```
|
@@ -9096,7 +9096,7 @@ var Template = /*#__PURE__*/function (_Base) {
|
|
9096
9096
|
*
|
9097
9097
|
* ```
|
9098
9098
|
* <script type="module">
|
9099
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9099
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/template.js';
|
9100
9100
|
* console.log(Monster.DOM.findDocumentTemplate())
|
9101
9101
|
* </script>
|
9102
9102
|
* ```
|
@@ -9105,7 +9105,7 @@ var Template = /*#__PURE__*/function (_Base) {
|
|
9105
9105
|
*
|
9106
9106
|
* ```
|
9107
9107
|
* <script type="module">
|
9108
|
-
* import {findTemplate} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9108
|
+
* import {findTemplate} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/template.js';
|
9109
9109
|
* console.log(findDocumentTemplate())
|
9110
9110
|
* </script>
|
9111
9111
|
* ```
|
@@ -9215,7 +9215,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
9215
9215
|
*
|
9216
9216
|
* ```
|
9217
9217
|
* <script type="module">
|
9218
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9218
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/theme.js';
|
9219
9219
|
* console.log(new Monster.DOM.Theme())
|
9220
9220
|
* </script>
|
9221
9221
|
* ```
|
@@ -9224,14 +9224,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
9224
9224
|
*
|
9225
9225
|
* ```
|
9226
9226
|
* <script type="module">
|
9227
|
-
* import {Theme} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9227
|
+
* import {Theme} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/theme.js';
|
9228
9228
|
* console.log(new Theme())
|
9229
9229
|
* </script>
|
9230
9230
|
* ```
|
9231
9231
|
*
|
9232
9232
|
* @example
|
9233
9233
|
*
|
9234
|
-
* import {getDocumentTheme} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9234
|
+
* import {getDocumentTheme} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/theme.js';
|
9235
9235
|
*
|
9236
9236
|
* const theme = getDocumentTheme();
|
9237
9237
|
* console.log(theme.getName());
|
@@ -9402,7 +9402,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
9402
9402
|
*
|
9403
9403
|
* ```
|
9404
9404
|
* <script type="module">
|
9405
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9405
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/updater.js';
|
9406
9406
|
* console.log(new Monster.DOM.Updater())
|
9407
9407
|
* </script>
|
9408
9408
|
* ```
|
@@ -9411,14 +9411,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
9411
9411
|
*
|
9412
9412
|
* ```
|
9413
9413
|
* <script type="module">
|
9414
|
-
* import {Updater} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9414
|
+
* import {Updater} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/updater.js';
|
9415
9415
|
* console.log(new Updater())
|
9416
9416
|
* </script>
|
9417
9417
|
* ```
|
9418
9418
|
*
|
9419
9419
|
* @example
|
9420
9420
|
*
|
9421
|
-
* import {Updater} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9421
|
+
* import {Updater} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/updater.js';
|
9422
9422
|
*
|
9423
9423
|
* // First we prepare the html document.
|
9424
9424
|
* // This is done here via script, but can also be inserted into the document as pure html.
|
@@ -10257,7 +10257,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
10257
10257
|
*
|
10258
10258
|
* ```
|
10259
10259
|
* <script type="module">
|
10260
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10260
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/util.js';
|
10261
10261
|
* console.log(Monster.DOM.getDocument())
|
10262
10262
|
* </script>
|
10263
10263
|
* ```
|
@@ -10266,7 +10266,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
10266
10266
|
*
|
10267
10267
|
* ```
|
10268
10268
|
* <script type="module">
|
10269
|
-
* import {getDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10269
|
+
* import {getDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/util.js';
|
10270
10270
|
* console.log(getDocument())
|
10271
10271
|
* </script>
|
10272
10272
|
* ```
|
@@ -10321,7 +10321,7 @@ function getDocument() {
|
|
10321
10321
|
*
|
10322
10322
|
* ```
|
10323
10323
|
* <script type="module">
|
10324
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10324
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/util.js';
|
10325
10325
|
* console.log(Monster.DOM.getWindow())
|
10326
10326
|
* </script>
|
10327
10327
|
* ```
|
@@ -10330,7 +10330,7 @@ function getDocument() {
|
|
10330
10330
|
*
|
10331
10331
|
* ```
|
10332
10332
|
* <script type="module">
|
10333
|
-
* import {getWindow} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10333
|
+
* import {getWindow} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/util.js';
|
10334
10334
|
* console.log(getWindow(null))
|
10335
10335
|
* </script>
|
10336
10336
|
* ```
|
@@ -10390,7 +10390,7 @@ function getWindow() {
|
|
10390
10390
|
*
|
10391
10391
|
* ```
|
10392
10392
|
* <script type="module">
|
10393
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10393
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/util.js';
|
10394
10394
|
* console.log(Monster.DOM.getDocumentFragmentFromString())
|
10395
10395
|
* </script>
|
10396
10396
|
* ```
|
@@ -10399,7 +10399,7 @@ function getWindow() {
|
|
10399
10399
|
*
|
10400
10400
|
* ```
|
10401
10401
|
* <script type="module">
|
10402
|
-
* import {getDocumentFragmentFromString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10402
|
+
* import {getDocumentFragmentFromString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/util.js';
|
10403
10403
|
* console.log(getDocumentFragmentFromString('<div></div>'))
|
10404
10404
|
* </script>
|
10405
10405
|
* ```
|
@@ -10462,8 +10462,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
10462
10462
|
/* harmony export */ "fireEvent": function() { return /* binding */ fireEvent; }
|
10463
10463
|
/* harmony export */ });
|
10464
10464
|
/* harmony import */ var _namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
10465
|
-
/* harmony import */ var
|
10466
|
-
/* harmony import */ var
|
10465
|
+
/* harmony import */ var _types_is_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
|
10466
|
+
/* harmony import */ var _types_validate_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14);
|
10467
10467
|
/* harmony import */ var _util_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(41);
|
10468
10468
|
|
10469
10469
|
/**
|
@@ -10485,7 +10485,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
10485
10485
|
*
|
10486
10486
|
* ```
|
10487
10487
|
* <script type="module">
|
10488
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10488
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/events.js';
|
10489
10489
|
* console.log(new Monster.DOM.fireEvent())
|
10490
10490
|
* </script>
|
10491
10491
|
* ```
|
@@ -10494,7 +10494,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
10494
10494
|
*
|
10495
10495
|
* ```
|
10496
10496
|
* <script type="module">
|
10497
|
-
* import {fireEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10497
|
+
* import {fireEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/events.js';
|
10498
10498
|
* console.log(fireEvent())
|
10499
10499
|
* </script>
|
10500
10500
|
* ```
|
@@ -10506,7 +10506,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
10506
10506
|
* @copyright schukai GmbH
|
10507
10507
|
* @memberOf Monster.DOM
|
10508
10508
|
* @throws {TypeError} value is not an instance of HTMLElement or HTMLCollection
|
10509
|
-
* @summary Construct and send and event
|
10509
|
+
* @summary Construct and send and event
|
10510
10510
|
*/
|
10511
10511
|
|
10512
10512
|
function fireEvent(element, type) {
|
@@ -10518,7 +10518,7 @@ function fireEvent(element, type) {
|
|
10518
10518
|
return;
|
10519
10519
|
}
|
10520
10520
|
|
10521
|
-
var event = new Event((0,
|
10521
|
+
var event = new Event((0,_types_validate_js__WEBPACK_IMPORTED_MODULE_2__.validateString)(type), {
|
10522
10522
|
bubbles: true,
|
10523
10523
|
cancelable: true
|
10524
10524
|
});
|
@@ -10543,13 +10543,14 @@ function fireEvent(element, type) {
|
|
10543
10543
|
}
|
10544
10544
|
/**
|
10545
10545
|
* This function gets the path `Event.composedPath()` from an event and tries to find the next element
|
10546
|
-
* up the tree `element.closest()` with the attribute and value. If no value
|
10546
|
+
* up the tree `element.closest()` with the attribute and value. If no value, or a value that is undefined or null,
|
10547
|
+
* is specified, only the attribute is searched.
|
10547
10548
|
*
|
10548
10549
|
* You can call the function via the monster namespace `new Monster.DOM.findTargetElementFromEvent()`.
|
10549
10550
|
*
|
10550
10551
|
* ```
|
10551
10552
|
* <script type="module">
|
10552
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10553
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/events.js';
|
10553
10554
|
* console.log(new Monster.DOM.findTargetElementFromEvent())
|
10554
10555
|
* </script>
|
10555
10556
|
* ```
|
@@ -10558,7 +10559,7 @@ function fireEvent(element, type) {
|
|
10558
10559
|
*
|
10559
10560
|
* ```
|
10560
10561
|
* <script type="module">
|
10561
|
-
* import {findTargetElementFromEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10562
|
+
* import {findTargetElementFromEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/events.js';
|
10562
10563
|
* console.log(findTargetElementFromEvent())
|
10563
10564
|
* </script>
|
10564
10565
|
* ```
|
@@ -10566,7 +10567,7 @@ function fireEvent(element, type) {
|
|
10566
10567
|
* @since 1.14.0
|
10567
10568
|
* @param {Event} event
|
10568
10569
|
* @param {string} attributeName
|
10569
|
-
* @param {string|null} attributeValue
|
10570
|
+
* @param {string|null|undefined} attributeValue
|
10570
10571
|
* @throws {Error} unsupported event
|
10571
10572
|
* @memberOf Monster.DOM
|
10572
10573
|
* @throws {TypeError} value is not a string
|
@@ -10576,17 +10577,23 @@ function fireEvent(element, type) {
|
|
10576
10577
|
|
10577
10578
|
|
10578
10579
|
function findTargetElementFromEvent(event, attributeName, attributeValue) {
|
10579
|
-
(0,
|
10580
|
+
(0,_types_validate_js__WEBPACK_IMPORTED_MODULE_2__.validateInstance)(event, Event);
|
10580
10581
|
|
10581
10582
|
if (typeof event.composedPath !== 'function') {
|
10582
10583
|
throw new Error('unsupported event');
|
10583
10584
|
}
|
10584
10585
|
|
10585
10586
|
var path = event.composedPath();
|
10586
|
-
var element = path === null || path === void 0 ? void 0 : path[0];
|
10587
|
+
var element = path === null || path === void 0 ? void 0 : path[0]; // closest cannot be used here, because closest is not correct for slotted elements
|
10587
10588
|
|
10588
|
-
if (
|
10589
|
-
|
10589
|
+
if ((0,_types_is_js__WEBPACK_IMPORTED_MODULE_1__.isArray)(path)) {
|
10590
|
+
for (var i = 0; i < path.length; i++) {
|
10591
|
+
var o = path[i];
|
10592
|
+
|
10593
|
+
if (o instanceof HTMLElement && o.hasAttribute(attributeName) && (attributeValue === undefined || o.getAttribute(attributeName) === attributeValue)) {
|
10594
|
+
return o;
|
10595
|
+
}
|
10596
|
+
}
|
10590
10597
|
}
|
10591
10598
|
|
10592
10599
|
return undefined;
|
@@ -10630,7 +10637,7 @@ var DEFAULT_LANGUAGE = 'en';
|
|
10630
10637
|
*
|
10631
10638
|
* ```
|
10632
10639
|
* <script type="module">
|
10633
|
-
* import {getLocaleOfDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10640
|
+
* import {getLocaleOfDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/locale.js';
|
10634
10641
|
* console.log(new Monster.DOM.getLocaleOfDocument())
|
10635
10642
|
* </script>
|
10636
10643
|
* ```
|
@@ -10639,7 +10646,7 @@ var DEFAULT_LANGUAGE = 'en';
|
|
10639
10646
|
*
|
10640
10647
|
* ```
|
10641
10648
|
* <script type="module">
|
10642
|
-
* import {getLocaleOfDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10649
|
+
* import {getLocaleOfDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/dom/locale.js';
|
10643
10650
|
* console.log(new getLocaleOfDocument())
|
10644
10651
|
* </script>
|
10645
10652
|
* ```
|
@@ -10732,7 +10739,7 @@ var localeStringSymbol = Symbol('localeString');
|
|
10732
10739
|
*
|
10733
10740
|
* ```
|
10734
10741
|
* <script type="module">
|
10735
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10742
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/i18n/locale.js';
|
10736
10743
|
* console.log(new Monster.I18n.Locale())
|
10737
10744
|
* </script>
|
10738
10745
|
* ```
|
@@ -10741,7 +10748,7 @@ var localeStringSymbol = Symbol('localeString');
|
|
10741
10748
|
*
|
10742
10749
|
* ```
|
10743
10750
|
* <script type="module">
|
10744
|
-
* import {Locale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10751
|
+
* import {Locale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/i18n/locale.js';
|
10745
10752
|
* console.log(new Locale())
|
10746
10753
|
* </script>
|
10747
10754
|
* ```
|
@@ -10932,7 +10939,7 @@ var Locale = /*#__PURE__*/function (_Base) {
|
|
10932
10939
|
*
|
10933
10940
|
* ```
|
10934
10941
|
* <script type="module">
|
10935
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10942
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/i18n/locale.js';
|
10936
10943
|
* console.log(new Monster.I18n.createLocale())
|
10937
10944
|
* </script>
|
10938
10945
|
* ```
|
@@ -10941,7 +10948,7 @@ var Locale = /*#__PURE__*/function (_Base) {
|
|
10941
10948
|
*
|
10942
10949
|
* ```
|
10943
10950
|
* <script type="module">
|
10944
|
-
* import {createLocale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10951
|
+
* import {createLocale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/i18n/locale.js';
|
10945
10952
|
* console.log(createLocale())
|
10946
10953
|
* </script>
|
10947
10954
|
* ```
|
@@ -11117,7 +11124,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
11117
11124
|
*
|
11118
11125
|
* ```
|
11119
11126
|
* <script type="module">
|
11120
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11127
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/i18n/provider.js';
|
11121
11128
|
* console.log(new Monster.I18n.Provider())
|
11122
11129
|
* </script>
|
11123
11130
|
* ```
|
@@ -11126,7 +11133,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
11126
11133
|
*
|
11127
11134
|
* ```
|
11128
11135
|
* <script type="module">
|
11129
|
-
* import {Provider} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11136
|
+
* import {Provider} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/i18n/provider.js';
|
11130
11137
|
* console.log(new Provider())
|
11131
11138
|
* </script>
|
11132
11139
|
* ```
|
@@ -11234,7 +11241,7 @@ var optionsSymbol = Symbol.for(_constants_js__WEBPACK_IMPORTED_MODULE_0__.PROPER
|
|
11234
11241
|
*
|
11235
11242
|
* ```
|
11236
11243
|
* <script type="module">
|
11237
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11244
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/basewithoptions.js';
|
11238
11245
|
* console.log(new Monster.Types.BaseWithOptions())
|
11239
11246
|
* </script>
|
11240
11247
|
* ```
|
@@ -11243,7 +11250,7 @@ var optionsSymbol = Symbol.for(_constants_js__WEBPACK_IMPORTED_MODULE_0__.PROPER
|
|
11243
11250
|
*
|
11244
11251
|
* ```
|
11245
11252
|
* <script type="module">
|
11246
|
-
* import {BaseWithOptions} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11253
|
+
* import {BaseWithOptions} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/basewithoptions.js';
|
11247
11254
|
* console.log(new BaseWithOptions())
|
11248
11255
|
* </script>
|
11249
11256
|
* ```
|
@@ -11384,7 +11391,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
11384
11391
|
*
|
11385
11392
|
* ```
|
11386
11393
|
* <script type="module">
|
11387
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11394
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/i18n/translations.js';
|
11388
11395
|
* console.log(new Monster.I18n.Translations())
|
11389
11396
|
* </script>
|
11390
11397
|
* ```
|
@@ -11393,7 +11400,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
11393
11400
|
*
|
11394
11401
|
* ```
|
11395
11402
|
* <script type="module">
|
11396
|
-
* import {Translations} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11403
|
+
* import {Translations} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/i18n/translations.js';
|
11397
11404
|
* console.log(new Translations())
|
11398
11405
|
* </script>
|
11399
11406
|
* ```
|
@@ -11669,7 +11676,7 @@ var optionsSymbol = Symbol.for(_constants_js__WEBPACK_IMPORTED_MODULE_0__.PROPER
|
|
11669
11676
|
*
|
11670
11677
|
* ```
|
11671
11678
|
* <script type="module">
|
11672
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11679
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/i18n/providers/fetch.js';
|
11673
11680
|
* console.log(new Monster.I18n.Providers.Fetch())
|
11674
11681
|
* </script>
|
11675
11682
|
* ```
|
@@ -11678,7 +11685,7 @@ var optionsSymbol = Symbol.for(_constants_js__WEBPACK_IMPORTED_MODULE_0__.PROPER
|
|
11678
11685
|
*
|
11679
11686
|
* ```
|
11680
11687
|
* <script type="module">
|
11681
|
-
* import {Fetch} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11688
|
+
* import {Fetch} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/i18n/providers/fetch.js';
|
11682
11689
|
* console.log(new Fetch())
|
11683
11690
|
* </script>
|
11684
11691
|
* ```
|
@@ -11847,7 +11854,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
11847
11854
|
*
|
11848
11855
|
* ```
|
11849
11856
|
* <script type="module">
|
11850
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11857
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/text/formatter.js';
|
11851
11858
|
* console.log(new Monster.Text.Formatter())
|
11852
11859
|
* </script>
|
11853
11860
|
* ```
|
@@ -11856,7 +11863,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
11856
11863
|
*
|
11857
11864
|
* ```
|
11858
11865
|
* <script type="module">
|
11859
|
-
* import {Formatter} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11866
|
+
* import {Formatter} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/text/formatter.js';
|
11860
11867
|
* console.log(new Formatter())
|
11861
11868
|
* </script>
|
11862
11869
|
* ```
|
@@ -12039,7 +12046,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12039
12046
|
*
|
12040
12047
|
* ```
|
12041
12048
|
* <script type="module">
|
12042
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12049
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/logging/handler.js';
|
12043
12050
|
* console.log(new Monster.Logging.Handler())
|
12044
12051
|
* </script>
|
12045
12052
|
* ```
|
@@ -12048,7 +12055,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12048
12055
|
*
|
12049
12056
|
* ```
|
12050
12057
|
* <script type="module">
|
12051
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12058
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/logging/handler.js';
|
12052
12059
|
* console.log(new Handler())
|
12053
12060
|
* </script>
|
12054
12061
|
* ```
|
@@ -12286,7 +12293,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12286
12293
|
*
|
12287
12294
|
* ```
|
12288
12295
|
* <script type="module">
|
12289
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12296
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/logging/logentry.js';
|
12290
12297
|
* console.log(new Monster.Logging.LogEntry())
|
12291
12298
|
* </script>
|
12292
12299
|
* ```
|
@@ -12295,7 +12302,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12295
12302
|
*
|
12296
12303
|
* ```
|
12297
12304
|
* <script type="module">
|
12298
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12305
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/logging/logentry.js';
|
12299
12306
|
* console.log(new LogEntry())
|
12300
12307
|
* </script>
|
12301
12308
|
* ```
|
@@ -12481,7 +12488,7 @@ var OFF = 0;
|
|
12481
12488
|
*
|
12482
12489
|
* ```
|
12483
12490
|
* <script type="module">
|
12484
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12491
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/logging/logger.js';
|
12485
12492
|
* console.log(new Monster.Logging.Logger())
|
12486
12493
|
* </script>
|
12487
12494
|
* ```
|
@@ -12490,7 +12497,7 @@ var OFF = 0;
|
|
12490
12497
|
*
|
12491
12498
|
* ```
|
12492
12499
|
* <script type="module">
|
12493
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12500
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/logging/logger.js';
|
12494
12501
|
* console.log(new Logger())
|
12495
12502
|
* </script>
|
12496
12503
|
* ```
|
@@ -12790,7 +12797,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12790
12797
|
*
|
12791
12798
|
* ```
|
12792
12799
|
* <script type="module">
|
12793
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12800
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/logging/handler/console.js';
|
12794
12801
|
* console.log(new Monster.Logging.Handler.ConsoleHandler())
|
12795
12802
|
* </script>
|
12796
12803
|
* ```
|
@@ -12799,7 +12806,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12799
12806
|
*
|
12800
12807
|
* ```
|
12801
12808
|
* <script type="module">
|
12802
|
-
* import {ConsoleHandler} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12809
|
+
* import {ConsoleHandler} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/logging/handler/console.js';
|
12803
12810
|
* console.log(new ConsoleHandler())
|
12804
12811
|
* </script>
|
12805
12812
|
* ```
|
@@ -12875,7 +12882,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
12875
12882
|
*
|
12876
12883
|
* ```
|
12877
12884
|
* <script type="module">
|
12878
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12885
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/math/random.js';
|
12879
12886
|
* console.log(Monster.Math.random(1,10)) // ↦ 5
|
12880
12887
|
* </script>
|
12881
12888
|
* ```
|
@@ -12884,7 +12891,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
12884
12891
|
*
|
12885
12892
|
* ```
|
12886
12893
|
* <script type="module">
|
12887
|
-
* import {random} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12894
|
+
* import {random} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/math/random.js';
|
12888
12895
|
* console.log(random(1,10)) // ↦ 5
|
12889
12896
|
* </script>
|
12890
12897
|
* ```
|
@@ -13036,7 +13043,7 @@ var internalCounter = 0;
|
|
13036
13043
|
*
|
13037
13044
|
* ```
|
13038
13045
|
* <script type="module">
|
13039
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13046
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/randomid.js';
|
13040
13047
|
* console.log(new Monster.Types.RandomID())
|
13041
13048
|
* </script>
|
13042
13049
|
* ```
|
@@ -13045,7 +13052,7 @@ var internalCounter = 0;
|
|
13045
13052
|
*
|
13046
13053
|
* ```
|
13047
13054
|
* <script type="module">
|
13048
|
-
* import {RandomID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13055
|
+
* import {RandomID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/randomid.js';
|
13049
13056
|
* console.log(new RandomID())
|
13050
13057
|
* </script>
|
13051
13058
|
* ```
|
@@ -13128,7 +13135,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
13128
13135
|
*
|
13129
13136
|
* ```
|
13130
13137
|
* <script type="module">
|
13131
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13138
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/version.js';
|
13132
13139
|
* console.log(new Monster.Types.Version('1.2.3')) // ↦ 1.2.3
|
13133
13140
|
* console.log(new Monster.Types.Version('1')) // ↦ 1.0.0
|
13134
13141
|
* </script>
|
@@ -13138,7 +13145,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
13138
13145
|
*
|
13139
13146
|
* ```
|
13140
13147
|
* <script type="module">
|
13141
|
-
* import {Version} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13148
|
+
* import {Version} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/version.js';
|
13142
13149
|
* console.log(new Version('1.2.3')) // ↦ 1.2.3
|
13143
13150
|
* console.log(new Version('1')) // ↦ 1.0.0
|
13144
13151
|
* </script>
|
@@ -13146,7 +13153,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
13146
13153
|
*
|
13147
13154
|
* @example
|
13148
13155
|
*
|
13149
|
-
* import {Version} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13156
|
+
* import {Version} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/version.js';
|
13150
13157
|
*
|
13151
13158
|
* new Version('1.0.0') // ↦ 1.0.0
|
13152
13159
|
* new Version(1) // ↦ 1.0.0
|
@@ -13280,7 +13287,7 @@ var monsterVersion;
|
|
13280
13287
|
*
|
13281
13288
|
* ```
|
13282
13289
|
* <script type="module">
|
13283
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13290
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/version.js';
|
13284
13291
|
* console.log(Monster.getVersion())
|
13285
13292
|
* </script>
|
13286
13293
|
* ```
|
@@ -13289,7 +13296,7 @@ var monsterVersion;
|
|
13289
13296
|
*
|
13290
13297
|
* ```
|
13291
13298
|
* <script type="module">
|
13292
|
-
* import {getVersion} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13299
|
+
* import {getVersion} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/types/version.js';
|
13293
13300
|
* console.log(getVersion())
|
13294
13301
|
* </script>
|
13295
13302
|
* ```
|
@@ -13308,7 +13315,7 @@ function getVersion() {
|
|
13308
13315
|
/**#@+ dont touch, replaced by make with package.json version */
|
13309
13316
|
|
13310
13317
|
|
13311
|
-
monsterVersion = new Version('1.
|
13318
|
+
monsterVersion = new Version('1.20.0');
|
13312
13319
|
/**#@-*/
|
13313
13320
|
|
13314
13321
|
return monsterVersion;
|
@@ -13364,7 +13371,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
13364
13371
|
*
|
13365
13372
|
* ```
|
13366
13373
|
* <script type="module">
|
13367
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13374
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/util/comparator.js';
|
13368
13375
|
* console.log(new Monster.Util.Comparator())
|
13369
13376
|
* </script>
|
13370
13377
|
* ```
|
@@ -13373,7 +13380,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
13373
13380
|
*
|
13374
13381
|
* ```
|
13375
13382
|
* <script type="module">
|
13376
|
-
* import {Comparator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13383
|
+
* import {Comparator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/util/comparator.js';
|
13377
13384
|
* console.log(new Comparator())
|
13378
13385
|
* </script>
|
13379
13386
|
* ```
|
@@ -13398,7 +13405,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
13398
13405
|
*
|
13399
13406
|
* @example
|
13400
13407
|
*
|
13401
|
-
* import {Comparator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13408
|
+
* import {Comparator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/util/comparator.js';
|
13402
13409
|
*
|
13403
13410
|
* console.log(new Comparator().lessThanOrEqual(2, 5))
|
13404
13411
|
* // ↦ true
|
@@ -13611,7 +13618,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
13611
13618
|
*
|
13612
13619
|
* ```
|
13613
13620
|
* <script type="module">
|
13614
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13621
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/util/freeze.js';
|
13615
13622
|
* console.log(Monster.Util.deepFreeze({}))
|
13616
13623
|
* </script>
|
13617
13624
|
* ```
|
@@ -13620,7 +13627,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
13620
13627
|
*
|
13621
13628
|
* ```
|
13622
13629
|
* <script type="module">
|
13623
|
-
* import {deepFreeze} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13630
|
+
* import {deepFreeze} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.20.0/dist/modules/util/freeze.js';
|
13624
13631
|
* console.log(deepFreeze({}))
|
13625
13632
|
* </script>
|
13626
13633
|
* ```
|