@schukai/monster 1.24.0 → 1.25.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG +14 -0
- package/README.md +4 -4
- package/dist/modules/constants.js +2 -2
- 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/datasource/namespace.js +1 -1
- package/dist/modules/data/datasource/restapi/writeerror.js +1 -1
- package/dist/modules/data/datasource/restapi.js +1 -1
- package/dist/modules/data/datasource/storage/localstorage.js +1 -1
- package/dist/modules/data/datasource/storage/namespace.js +1 -1
- package/dist/modules/data/datasource/storage/sessionstorage.js +1 -1
- package/dist/modules/data/datasource/storage.js +1 -1
- package/dist/modules/data/datasource.js +1 -1
- package/dist/modules/data/diff.js +1 -1
- package/dist/modules/data/extend.js +1 -1
- package/dist/modules/data/namespace.js +1 -1
- package/dist/modules/data/pathfinder.js +1 -1
- package/dist/modules/data/pipe.js +1 -1
- package/dist/modules/data/transformer.js +2 -2
- package/dist/modules/dom/assembler.js +1 -1
- package/dist/modules/dom/attributes.js +1 -1
- package/dist/modules/dom/constants.js +2 -2
- package/dist/modules/dom/customcontrol.js +1 -1
- package/dist/modules/dom/customelement.js +1 -1
- package/dist/modules/dom/events.js +1 -1
- package/dist/modules/dom/focusmanager.js +2 -0
- package/dist/modules/dom/locale.js +1 -1
- package/dist/modules/dom/namespace.js +1 -1
- package/dist/modules/dom/resource/data.js +2 -0
- package/dist/modules/dom/resource/link/stylesheet.js +2 -0
- package/dist/modules/dom/resource/link.js +2 -0
- package/dist/modules/dom/resource/script.js +2 -0
- package/dist/modules/dom/resource.js +2 -0
- package/dist/modules/dom/resourcemanager.js +2 -0
- 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/dom/worker/factory.js +2 -0
- 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 +2 -2
- 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/uuid.js +2 -0
- package/dist/modules/types/validate.js +1 -1
- package/dist/modules/types/version.js +2 -2
- package/dist/modules/util/clone.js +1 -1
- package/dist/modules/util/comparator.js +1 -1
- package/dist/modules/util/freeze.js +1 -1
- package/dist/modules/util/namespace.js +1 -1
- package/dist/modules/util/processing.js +1 -1
- package/dist/modules/util/trimspaces.js +1 -1
- package/dist/monster.dev.js +549 -249
- package/dist/monster.dev.js.map +1 -1
- package/dist/monster.js +2 -2
- package/package.json +1 -1
- package/source/constants.js +11 -2
- 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/datasource/restapi.js +3 -3
- package/source/data/datasource/storage/localstorage.js +2 -2
- package/source/data/datasource/storage/sessionstorage.js +2 -2
- package/source/data/datasource/storage.js +3 -3
- package/source/data/datasource.js +3 -3
- package/source/data/diff.js +3 -3
- package/source/data/extend.js +2 -2
- package/source/data/pathfinder.js +4 -4
- package/source/data/pipe.js +3 -3
- package/source/data/transformer.js +7 -5
- package/source/dom/assembler.js +2 -2
- package/source/dom/attributes.js +24 -24
- package/source/dom/constants.js +278 -9
- package/source/dom/customcontrol.js +1 -1
- package/source/dom/customelement.js +1 -1
- package/source/dom/events.js +4 -4
- package/source/dom/focusmanager.js +251 -0
- package/source/dom/locale.js +4 -3
- package/source/dom/resource/data.js +170 -0
- package/source/dom/resource/link/stylesheet.js +54 -0
- package/source/dom/resource/link.js +125 -0
- package/source/dom/resource/script.js +112 -0
- package/source/dom/resource.js +268 -0
- package/source/dom/resourcemanager.js +214 -0
- package/source/dom/template.js +40 -10
- package/source/dom/theme.js +3 -3
- package/source/dom/updater.js +7 -7
- package/source/dom/util.js +6 -6
- package/source/dom/worker/factory.js +134 -0
- 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 +3 -3
- 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 +9 -5
- package/source/namespace.js +1 -1
- package/source/text/formatter.js +3 -3
- package/source/types/base.js +4 -4
- 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 +23 -23
- package/source/types/mediatype.js +4 -4
- package/source/types/observer.js +3 -3
- package/source/types/observerlist.js +2 -2
- package/source/types/proxyobserver.js +5 -5
- package/source/types/queue.js +3 -3
- package/source/types/randomid.js +2 -2
- package/source/types/stack.js +2 -2
- package/source/types/tokenlist.js +2 -2
- package/source/types/typeof.js +3 -3
- package/source/types/uniquequeue.js +2 -2
- package/source/types/uuid.js +102 -0
- 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 +4 -4
- package/source/util/freeze.js +5 -5
- package/source/util/processing.js +3 -3
- package/source/util/trimspaces.js +3 -3
- package/test/cases/data/datasource/restapi.js +1 -1
- package/test/cases/data/transformer.js +2 -0
- package/test/cases/dom/customelement.js +0 -3
- package/test/cases/dom/focusmanager.js +111 -0
- package/test/cases/dom/locale.js +1 -4
- package/test/cases/dom/resource/data.js +129 -0
- package/test/cases/dom/resource/link/stylesheet.js +101 -0
- package/test/cases/dom/resource/link.js +101 -0
- package/test/cases/dom/resource/script.js +115 -0
- package/test/cases/dom/resourcemanager.js +118 -0
- package/test/cases/dom/worker/factory.js +63 -0
- package/test/cases/monster.js +1 -1
- package/test/cases/types/uuid.js +42 -0
- package/test/cases/util/freeze.js +30 -4
- package/test/util/cleanupdom.js +48 -0
- package/test/util/jsdom.js +23 -9
- package/test/web/import.js +8 -0
- package/test/web/monster-dev.html +3 -3
- package/test/web/monster.html +2 -2
- package/test/web/test.html +3 -3
- package/test/web/tests.js +7 -7
package/dist/monster.dev.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/** Monster 1.
|
1
|
+
/** Monster 1.25.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();
|
@@ -19,7 +19,8 @@ return /******/ (function() { // webpackBootstrap
|
|
19
19
|
__webpack_require__.r(__webpack_exports__);
|
20
20
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
21
21
|
/* harmony export */ "Monster": function() { return /* reexport safe */ _namespace_js__WEBPACK_IMPORTED_MODULE_0__.Monster; },
|
22
|
-
/* harmony export */ "internalSymbol": function() { return /* binding */ internalSymbol; }
|
22
|
+
/* harmony export */ "internalSymbol": function() { return /* binding */ internalSymbol; },
|
23
|
+
/* harmony export */ "internalStateSymbol": function() { return /* binding */ internalStateSymbol; }
|
23
24
|
/* harmony export */ });
|
24
25
|
/* harmony import */ var _namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
25
26
|
|
@@ -37,7 +38,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
37
38
|
* @since 1.24.0
|
38
39
|
*/
|
39
40
|
|
40
|
-
var internalSymbol = Symbol('
|
41
|
+
var internalSymbol = Symbol('internalData');
|
42
|
+
/**
|
43
|
+
* @private
|
44
|
+
* @type {symbol}
|
45
|
+
* @memberOf Monster
|
46
|
+
* @since 1.25.0
|
47
|
+
*/
|
48
|
+
|
49
|
+
var internalStateSymbol = Symbol('state');
|
41
50
|
|
42
51
|
|
43
52
|
/***/ }),
|
@@ -131,7 +140,7 @@ var Monster = new Namespace("Monster");
|
|
131
140
|
*
|
132
141
|
* ```
|
133
142
|
* <script type="module">
|
134
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
143
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/namespace.js';
|
135
144
|
* function hello() {
|
136
145
|
* console.log('Hello World!');
|
137
146
|
* }
|
@@ -373,8 +382,8 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
373
382
|
*
|
374
383
|
* ```
|
375
384
|
* <script type="module">
|
376
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
377
|
-
*
|
385
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/base.js';
|
386
|
+
* new Monster.Types.Base()
|
378
387
|
* </script>
|
379
388
|
* ```
|
380
389
|
*
|
@@ -382,8 +391,8 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
382
391
|
*
|
383
392
|
* ```
|
384
393
|
* <script type="module">
|
385
|
-
* import {Base} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
386
|
-
*
|
394
|
+
* import {Base} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/base.js';
|
395
|
+
* new Base()
|
387
396
|
* </script>
|
388
397
|
* ```
|
389
398
|
*
|
@@ -545,7 +554,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
545
554
|
*
|
546
555
|
* ```
|
547
556
|
* <script type="module">
|
548
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
557
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/constraints/andoperator.js';
|
549
558
|
* new Monster.Constraint.AndOperator();
|
550
559
|
* </script>
|
551
560
|
* ```
|
@@ -554,16 +563,16 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
554
563
|
*
|
555
564
|
* ```
|
556
565
|
* <script type="module">
|
557
|
-
* import {AndOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
566
|
+
* import {AndOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/constraints/andoperator.js';
|
558
567
|
* new AndOperator();
|
559
568
|
* </script>
|
560
569
|
* ```
|
561
570
|
*
|
562
571
|
* @example
|
563
572
|
*
|
564
|
-
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
565
|
-
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
566
|
-
* import {AndOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
573
|
+
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/constraints/valid.js';
|
574
|
+
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/constraints/invalid.js';
|
575
|
+
* import {AndOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/constraints/andoperator.js';
|
567
576
|
*
|
568
577
|
* new AndOperator(
|
569
578
|
* new Valid(), new Valid()).isValid()
|
@@ -660,7 +669,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
660
669
|
*
|
661
670
|
* ```
|
662
671
|
* <script type="module">
|
663
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
672
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/constraints/invalid.js';
|
664
673
|
* new Monster.Constraint.Invalid();
|
665
674
|
* </script>
|
666
675
|
* ```
|
@@ -669,14 +678,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
669
678
|
*
|
670
679
|
* ```
|
671
680
|
* <script type="module">
|
672
|
-
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
681
|
+
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/constraints/invalid.js';
|
673
682
|
* new Invalid();
|
674
683
|
* </script>
|
675
684
|
* ```
|
676
685
|
*
|
677
686
|
* @example
|
678
687
|
*
|
679
|
-
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
688
|
+
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/constraints/invalid.js';
|
680
689
|
*
|
681
690
|
* new Invalid().isValid()
|
682
691
|
* .then(()=>console.log(true))
|
@@ -766,7 +775,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
766
775
|
*
|
767
776
|
* ```
|
768
777
|
* <script type="module">
|
769
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
778
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/constraints/isarray.js';
|
770
779
|
* console.log(new Monster.Constraint.IsArray())
|
771
780
|
* </script>
|
772
781
|
* ```
|
@@ -775,14 +784,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
775
784
|
*
|
776
785
|
* ```
|
777
786
|
* <script type="module">
|
778
|
-
* import {IsArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
787
|
+
* import {IsArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/constraints/isarray.js';
|
779
788
|
* console.log(new IsArray())
|
780
789
|
* </script>
|
781
790
|
* ```
|
782
791
|
*
|
783
792
|
* @example
|
784
793
|
*
|
785
|
-
* import {IsArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
794
|
+
* import {IsArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/constraints/isarray.js';
|
786
795
|
*
|
787
796
|
* new IsArray()
|
788
797
|
* .isValid([])
|
@@ -868,7 +877,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
868
877
|
*
|
869
878
|
* ```
|
870
879
|
* <script type="module">
|
871
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
880
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/is.js';
|
872
881
|
* console.log(Monster.Types.isIterable(null)) // ↦ false
|
873
882
|
* console.log(Monster.Types.isIterable('hello')) // ↦ true
|
874
883
|
* console.log(Monster.Types.isIterable([])) // ↦ true
|
@@ -879,10 +888,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
879
888
|
*
|
880
889
|
* ```
|
881
890
|
* <script type="module">
|
882
|
-
* import {isIterable} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
883
|
-
*
|
884
|
-
*
|
885
|
-
*
|
891
|
+
* import {isIterable} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/is.js';
|
892
|
+
* isIterable(null) // ↦ false
|
893
|
+
* isIterable('hello') // ↦ true
|
894
|
+
* isIterable([]) // ↦ true
|
886
895
|
* </script>
|
887
896
|
* ```
|
888
897
|
*
|
@@ -905,7 +914,7 @@ function isIterable(value) {
|
|
905
914
|
*
|
906
915
|
* ```
|
907
916
|
* <script type="module">
|
908
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
917
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/is.js';
|
909
918
|
* console.log(Monster.Types.isPrimitive('2')) // ↦ false
|
910
919
|
* console.log(Monster.Types.isPrimitive([])) // ↦ true
|
911
920
|
* </script>
|
@@ -915,7 +924,7 @@ function isIterable(value) {
|
|
915
924
|
*
|
916
925
|
* ```
|
917
926
|
* <script type="module">
|
918
|
-
* import {isPrimitive} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
927
|
+
* import {isPrimitive} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/is.js';
|
919
928
|
* console.log(isPrimitive('2')) // ↦ true
|
920
929
|
* console.log(isPrimitive([])) // ↦ false
|
921
930
|
* </script>
|
@@ -951,7 +960,7 @@ function isPrimitive(value) {
|
|
951
960
|
*
|
952
961
|
* ```
|
953
962
|
* <script type="module">
|
954
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
963
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/is.js';
|
955
964
|
* console.log(Monster.Types.isSymbol('2')) // ↦ false
|
956
965
|
* console.log(Monster.Types.isSymbol(Symbol('test')) // ↦ true
|
957
966
|
* </script>
|
@@ -961,7 +970,7 @@ function isPrimitive(value) {
|
|
961
970
|
*
|
962
971
|
* ```
|
963
972
|
* <script type="module">
|
964
|
-
* import {isSymbol} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
973
|
+
* import {isSymbol} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/is.js';
|
965
974
|
* console.log(isSymbol(Symbol('a'))) // ↦ true
|
966
975
|
* console.log(isSymbol([]) // ↦ false
|
967
976
|
* </script>
|
@@ -985,7 +994,7 @@ function isSymbol(value) {
|
|
985
994
|
*
|
986
995
|
* ```
|
987
996
|
* <script type="module">
|
988
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
997
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/is.js';
|
989
998
|
* console.log(Monster.Types.isBoolean('2')) // ↦ false
|
990
999
|
* console.log(Monster.Types.isBoolean([])) // ↦ false
|
991
1000
|
* console.log(Monster.Types.isBoolean(true)) // ↦ true
|
@@ -996,7 +1005,7 @@ function isSymbol(value) {
|
|
996
1005
|
*
|
997
1006
|
* ```
|
998
1007
|
* <script type="module">
|
999
|
-
* import {isBoolean} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1008
|
+
* import {isBoolean} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/is.js';
|
1000
1009
|
* console.log(isBoolean('2')) // ↦ false
|
1001
1010
|
* console.log(isBoolean([])) // ↦ false
|
1002
1011
|
* console.log(isBoolean(2>4)) // ↦ true
|
@@ -1025,7 +1034,7 @@ function isBoolean(value) {
|
|
1025
1034
|
*
|
1026
1035
|
* ```
|
1027
1036
|
* <script type="module">
|
1028
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1037
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/is.js';
|
1029
1038
|
* console.log(Monster.Types.isString('2')) // ↦ true
|
1030
1039
|
* console.log(Monster.Types.isString([])) // ↦ false
|
1031
1040
|
* </script>
|
@@ -1035,7 +1044,7 @@ function isBoolean(value) {
|
|
1035
1044
|
*
|
1036
1045
|
* ```
|
1037
1046
|
* <script type="module">
|
1038
|
-
* import {isString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1047
|
+
* import {isString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/is.js';
|
1039
1048
|
* console.log(isString('2')) // ↦ true
|
1040
1049
|
* console.log(isString([])) // ↦ false
|
1041
1050
|
* </script>
|
@@ -1063,7 +1072,7 @@ function isString(value) {
|
|
1063
1072
|
*
|
1064
1073
|
* ```
|
1065
1074
|
* <script type="module">
|
1066
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1075
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/is.js';
|
1067
1076
|
* console.log(Monster.Types.isObject('2')) // ↦ false
|
1068
1077
|
* console.log(Monster.Types.isObject([])) // ↦ false
|
1069
1078
|
* console.log(Monster.Types.isObject({})) // ↦ true
|
@@ -1074,7 +1083,7 @@ function isString(value) {
|
|
1074
1083
|
*
|
1075
1084
|
* ```
|
1076
1085
|
* <script type="module">
|
1077
|
-
* import {isObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1086
|
+
* import {isObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/is.js';
|
1078
1087
|
* console.log(isObject('2')) // ↦ false
|
1079
1088
|
* console.log(isObject([])) // ↦ false
|
1080
1089
|
* </script>
|
@@ -1105,7 +1114,7 @@ function isObject(value) {
|
|
1105
1114
|
*
|
1106
1115
|
* ```
|
1107
1116
|
* <script type="module">
|
1108
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1117
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/is.js';
|
1109
1118
|
* console.log(Monster.Types.isInstance('2')) // ↦ false
|
1110
1119
|
* console.log(Monster.Types.isInstance([])) // ↦ false
|
1111
1120
|
* console.log(Monster.Types.isInstance({})) // ↦ true
|
@@ -1116,7 +1125,7 @@ function isObject(value) {
|
|
1116
1125
|
*
|
1117
1126
|
* ```
|
1118
1127
|
* <script type="module">
|
1119
|
-
* import {isInstance} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1128
|
+
* import {isInstance} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/is.js';
|
1120
1129
|
* console.log(isInstance('2')) // ↦ false
|
1121
1130
|
* console.log(isInstance([])) // ↦ false
|
1122
1131
|
* </script>
|
@@ -1144,7 +1153,7 @@ function isInstance(value, instance) {
|
|
1144
1153
|
*
|
1145
1154
|
* ```
|
1146
1155
|
* <script type="module">
|
1147
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1156
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/is.js';
|
1148
1157
|
* console.log(Monster.Types.isArray('2')) // ↦ false
|
1149
1158
|
* console.log(Monster.Types.isArray([])) // ↦ true
|
1150
1159
|
* </script>
|
@@ -1154,7 +1163,7 @@ function isInstance(value, instance) {
|
|
1154
1163
|
*
|
1155
1164
|
* ```
|
1156
1165
|
* <script type="module">
|
1157
|
-
* import {isArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1166
|
+
* import {isArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/is.js';
|
1158
1167
|
* console.log(isArray('2')) // ↦ false
|
1159
1168
|
* console.log(isArray([])) // ↦ true
|
1160
1169
|
* </script>
|
@@ -1182,7 +1191,7 @@ function isArray(value) {
|
|
1182
1191
|
*
|
1183
1192
|
* ```
|
1184
1193
|
* <script type="module">
|
1185
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1194
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/is.js';
|
1186
1195
|
* console.log(Monster.Types.isFunction(()=>{})) // ↦ true
|
1187
1196
|
* console.log(Monster.Types.isFunction('2')) // ↦ false
|
1188
1197
|
* console.log(Monster.Types.isFunction([])) // ↦ false
|
@@ -1193,7 +1202,7 @@ function isArray(value) {
|
|
1193
1202
|
*
|
1194
1203
|
* ```
|
1195
1204
|
* <script type="module">
|
1196
|
-
* import {isFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1205
|
+
* import {isFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/is.js';
|
1197
1206
|
* console.log(isFunction(()=>{})) // ↦ true
|
1198
1207
|
* console.log(isFunction('2')) // ↦ false
|
1199
1208
|
* console.log(isFunction([])) // ↦ false
|
@@ -1225,7 +1234,7 @@ function isFunction(value) {
|
|
1225
1234
|
*
|
1226
1235
|
* ```
|
1227
1236
|
* <script type="module">
|
1228
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1237
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/is.js';
|
1229
1238
|
* console.log(Monster.Types.isInteger(()=>{})) // ↦ true
|
1230
1239
|
* console.log(Monster.Types.isInteger('2')) // ↦ false
|
1231
1240
|
* console.log(Monster.Types.isInteger(2)) // ↦ true
|
@@ -1236,7 +1245,7 @@ function isFunction(value) {
|
|
1236
1245
|
*
|
1237
1246
|
* ```
|
1238
1247
|
* <script type="module">
|
1239
|
-
* import {isInteger} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1248
|
+
* import {isInteger} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/is.js';
|
1240
1249
|
* console.log(isInteger(()=>{})) // ↦ true
|
1241
1250
|
* console.log(isInteger('2')) // ↦ false
|
1242
1251
|
* console.log(isInteger(2)) // ↦ true
|
@@ -1305,7 +1314,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
1305
1314
|
*
|
1306
1315
|
* ```
|
1307
1316
|
* <script type="module">
|
1308
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1317
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/constraints/isobject.js';
|
1309
1318
|
* console.log(new Monster.Constraint.IsObject())
|
1310
1319
|
* </script>
|
1311
1320
|
* ```
|
@@ -1314,14 +1323,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
1314
1323
|
*
|
1315
1324
|
* ```
|
1316
1325
|
* <script type="module">
|
1317
|
-
* import {IsObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1326
|
+
* import {IsObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/constraints/isobject.js';
|
1318
1327
|
* console.log(new IsObject())
|
1319
1328
|
* </script>
|
1320
1329
|
* ```
|
1321
1330
|
*
|
1322
1331
|
* @example
|
1323
1332
|
*
|
1324
|
-
* import {IsObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1333
|
+
* import {IsObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/constraints/isobject.js';
|
1325
1334
|
*
|
1326
1335
|
* new IsObject()
|
1327
1336
|
* .isValid({})
|
@@ -1419,7 +1428,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
1419
1428
|
*
|
1420
1429
|
* ```
|
1421
1430
|
* <script type="module">
|
1422
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1431
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/constraint/oroperator.js';
|
1423
1432
|
* new Monster.Constraint.OrOperator();
|
1424
1433
|
* </script>
|
1425
1434
|
* ```
|
@@ -1428,16 +1437,16 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
1428
1437
|
*
|
1429
1438
|
* ```
|
1430
1439
|
* <script type="module">
|
1431
|
-
* import {OrOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1440
|
+
* import {OrOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/constraint/oroperator.js';
|
1432
1441
|
* new OrOperator();
|
1433
1442
|
* </script>
|
1434
1443
|
* ```
|
1435
1444
|
*
|
1436
1445
|
* @example
|
1437
1446
|
*
|
1438
|
-
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1439
|
-
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1440
|
-
* import {OrOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1447
|
+
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/constraints/valid.js';
|
1448
|
+
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/constraints/invalid.js';
|
1449
|
+
* import {OrOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/constraints/oroperator.js';
|
1441
1450
|
*
|
1442
1451
|
* new OrOperator(
|
1443
1452
|
* new Valid(), new Invalid()).isValid()
|
@@ -1557,7 +1566,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
1557
1566
|
*
|
1558
1567
|
* ```
|
1559
1568
|
* <script type="module">
|
1560
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1569
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/constraints/valid.js';
|
1561
1570
|
* new Monster.Constraint.Valid();
|
1562
1571
|
* </script>
|
1563
1572
|
* ```
|
@@ -1566,14 +1575,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
1566
1575
|
*
|
1567
1576
|
* ```
|
1568
1577
|
* <script type="module">
|
1569
|
-
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1578
|
+
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/constraints/valid.js';
|
1570
1579
|
* new Valid();
|
1571
1580
|
* </script>
|
1572
1581
|
* ```
|
1573
1582
|
*
|
1574
1583
|
* @example
|
1575
1584
|
*
|
1576
|
-
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1585
|
+
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/constraints/valid.js';
|
1577
1586
|
*
|
1578
1587
|
* new Valid().isValid()
|
1579
1588
|
* .then(()=>console.log(true))
|
@@ -1680,7 +1689,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
1680
1689
|
*
|
1681
1690
|
* ```
|
1682
1691
|
* <script type="module">
|
1683
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1692
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/data/buildmap.js';
|
1684
1693
|
* console.log(Monster.Data.buildMap())
|
1685
1694
|
* </script>
|
1686
1695
|
* ```
|
@@ -1689,7 +1698,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
1689
1698
|
*
|
1690
1699
|
* ```
|
1691
1700
|
* <script type="module">
|
1692
|
-
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1701
|
+
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/data/buildmap.js';
|
1693
1702
|
* console.log(buildMap())
|
1694
1703
|
* </script>
|
1695
1704
|
* ```
|
@@ -1700,7 +1709,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
1700
1709
|
*
|
1701
1710
|
* @example
|
1702
1711
|
*
|
1703
|
-
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1712
|
+
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/data/buildmap.js';
|
1704
1713
|
* // a typical data structure as reported by an api
|
1705
1714
|
*
|
1706
1715
|
* let map;
|
@@ -1915,7 +1924,7 @@ function buildFlatMap(subject, selector, key, parentMap) {
|
|
1915
1924
|
* Alternatively to a string selector a callback can be specified. this must return a map.
|
1916
1925
|
*
|
1917
1926
|
* @example
|
1918
|
-
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
1927
|
+
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/data/buildmap.js';
|
1919
1928
|
*
|
1920
1929
|
* let obj = {
|
1921
1930
|
* "data": [
|
@@ -2118,7 +2127,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
2118
2127
|
*
|
2119
2128
|
* ```
|
2120
2129
|
* <script type="module">
|
2121
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2130
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/validate.js';
|
2122
2131
|
* console.log(Monster.Types.validateIterable('2')) // ↦ TypeError
|
2123
2132
|
* console.log(Monster.Types.validateIterable([])) // ↦ value
|
2124
2133
|
* </script>
|
@@ -2128,7 +2137,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
2128
2137
|
*
|
2129
2138
|
* ```
|
2130
2139
|
* <script type="module">
|
2131
|
-
* import {validateIterable} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2140
|
+
* import {validateIterable} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/validate.js';
|
2132
2141
|
* console.log(validateIterable('2')) // ↦ TypeError
|
2133
2142
|
* console.log(validateIterable([])) // ↦ value
|
2134
2143
|
* </script>
|
@@ -2159,7 +2168,7 @@ function validateIterable(value) {
|
|
2159
2168
|
*
|
2160
2169
|
* ```
|
2161
2170
|
* <script type="module">
|
2162
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2171
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/validate.js';
|
2163
2172
|
* console.log(Monster.Types.validatePrimitive('2')) // ↦ value
|
2164
2173
|
* console.log(Monster.Types.validatePrimitive([])) // ↦ TypeError
|
2165
2174
|
* </script>
|
@@ -2169,7 +2178,7 @@ function validateIterable(value) {
|
|
2169
2178
|
*
|
2170
2179
|
* ```
|
2171
2180
|
* <script type="module">
|
2172
|
-
* import {validatePrimitive} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2181
|
+
* import {validatePrimitive} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/validate.js';
|
2173
2182
|
* console.log(validatePrimitive('2')) // ↦ value
|
2174
2183
|
* console.log(validatePrimitive([])) // ↦ TypeError
|
2175
2184
|
* </script>
|
@@ -2201,7 +2210,7 @@ function validatePrimitive(value) {
|
|
2201
2210
|
*
|
2202
2211
|
* ```
|
2203
2212
|
* <script type="module">
|
2204
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2213
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/validate.js';
|
2205
2214
|
* console.log(Monster.Types.validateBoolean(true)) // ↦ value
|
2206
2215
|
* console.log(Monster.Types.validateBoolean('2')) // ↦ TypeError
|
2207
2216
|
* console.log(Monster.Types.validateBoolean([])) // ↦ TypeError
|
@@ -2212,7 +2221,7 @@ function validatePrimitive(value) {
|
|
2212
2221
|
*
|
2213
2222
|
* ```
|
2214
2223
|
* <script type="module">
|
2215
|
-
* import {validateBoolean} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2224
|
+
* import {validateBoolean} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/validate.js';
|
2216
2225
|
* console.log(validateBoolean(false)) // ↦ value
|
2217
2226
|
* console.log(validateBoolean('2')) // ↦ TypeError
|
2218
2227
|
* console.log(validateBoolean([])) // ↦ TypeError
|
@@ -2243,7 +2252,7 @@ function validateBoolean(value) {
|
|
2243
2252
|
*
|
2244
2253
|
* ```
|
2245
2254
|
* <script type="module">
|
2246
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2255
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/validate.js';
|
2247
2256
|
* console.log(Monster.Types.validateString('2')) // ↦ value
|
2248
2257
|
* console.log(Monster.Types.validateString([])) // ↦ TypeError
|
2249
2258
|
* </script>
|
@@ -2253,7 +2262,7 @@ function validateBoolean(value) {
|
|
2253
2262
|
*
|
2254
2263
|
* ```
|
2255
2264
|
* <script type="module">
|
2256
|
-
* import {validateString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2265
|
+
* import {validateString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/validate.js';
|
2257
2266
|
* console.log(validateString('2')) // ↦ value
|
2258
2267
|
* console.log(validateString([])) // ↦ TypeError
|
2259
2268
|
* </script>
|
@@ -2282,7 +2291,7 @@ function validateString(value) {
|
|
2282
2291
|
*
|
2283
2292
|
* ```
|
2284
2293
|
* <script type="module">
|
2285
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2294
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/validate.js';
|
2286
2295
|
* console.log(Monster.Types.validateObject({})) // ↦ value
|
2287
2296
|
* console.log(Monster.Types.validateObject('2')) // ↦ TypeError
|
2288
2297
|
* console.log(Monster.Types.validateObject([])) // ↦ TypeError
|
@@ -2293,7 +2302,7 @@ function validateString(value) {
|
|
2293
2302
|
*
|
2294
2303
|
* ```
|
2295
2304
|
* <script type="module">
|
2296
|
-
* import {validateObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2305
|
+
* import {validateObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/validate.js';
|
2297
2306
|
* console.log(validateObject({})) // ↦ value
|
2298
2307
|
* console.log(validateObject('2')) // ↦ TypeError
|
2299
2308
|
* console.log(validateObject([])) // ↦ TypeError
|
@@ -2323,7 +2332,7 @@ function validateObject(value) {
|
|
2323
2332
|
*
|
2324
2333
|
* ```
|
2325
2334
|
* <script type="module">
|
2326
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2335
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/validate.js';
|
2327
2336
|
* console.log(Monster.Types.validateInstance({}, Object)) // ↦ value
|
2328
2337
|
* console.log(Monster.Types.validateInstance('2', Object)) // ↦ TypeError
|
2329
2338
|
* console.log(Monster.Types.validateInstance([], Object)) // ↦ TypeError
|
@@ -2334,7 +2343,7 @@ function validateObject(value) {
|
|
2334
2343
|
*
|
2335
2344
|
* ```
|
2336
2345
|
* <script type="module">
|
2337
|
-
* import {validateInstance} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2346
|
+
* import {validateInstance} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/validate.js';
|
2338
2347
|
* console.log(validateInstance({}, Object)) // ↦ value
|
2339
2348
|
* console.log(validateInstance('2', Object)) // ↦ TypeError
|
2340
2349
|
* console.log(validateInstance([], Object)) // ↦ TypeError
|
@@ -2374,7 +2383,7 @@ function validateInstance(value, instance) {
|
|
2374
2383
|
*
|
2375
2384
|
* ```
|
2376
2385
|
* <script type="module">
|
2377
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2386
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/validate.js';
|
2378
2387
|
* console.log(Monster.Types.validateArray('2')) // ↦ TypeError
|
2379
2388
|
* console.log(Monster.Types.validateArray([])) // ↦ value
|
2380
2389
|
* </script>
|
@@ -2384,7 +2393,7 @@ function validateInstance(value, instance) {
|
|
2384
2393
|
*
|
2385
2394
|
* ```
|
2386
2395
|
* <script type="module">
|
2387
|
-
* import {validateArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2396
|
+
* import {validateArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/validate.js';
|
2388
2397
|
* console.log(validateArray('2')) // ↦ TypeError
|
2389
2398
|
* console.log(validateArray([])) // ↦ value
|
2390
2399
|
* </script>
|
@@ -2413,7 +2422,7 @@ function validateArray(value) {
|
|
2413
2422
|
*
|
2414
2423
|
* ```
|
2415
2424
|
* <script type="module">
|
2416
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2425
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/validate.js';
|
2417
2426
|
* console.log(Monster.Types.validateSymbol('2')) // ↦ TypeError
|
2418
2427
|
* console.log(Monster.Types.validateSymbol([])) // ↦ value
|
2419
2428
|
* </script>
|
@@ -2423,7 +2432,7 @@ function validateArray(value) {
|
|
2423
2432
|
*
|
2424
2433
|
* ```
|
2425
2434
|
* <script type="module">
|
2426
|
-
* import {validateSymbol} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2435
|
+
* import {validateSymbol} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/validate.js';
|
2427
2436
|
* console.log(validateSymbol('2')) // ↦ TypeError
|
2428
2437
|
* console.log(validateSymbol()) // ↦ value
|
2429
2438
|
* </script>
|
@@ -2452,7 +2461,7 @@ function validateSymbol(value) {
|
|
2452
2461
|
*
|
2453
2462
|
* ```
|
2454
2463
|
* <script type="module">
|
2455
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2464
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/validate.js';
|
2456
2465
|
* console.log(Monster.Types.validateFunction(()=>{})) // ↦ value
|
2457
2466
|
* console.log(Monster.Types.validateFunction('2')) // ↦ TypeError
|
2458
2467
|
* console.log(Monster.Types.validateFunction([])) // ↦ TypeError
|
@@ -2463,7 +2472,7 @@ function validateSymbol(value) {
|
|
2463
2472
|
*
|
2464
2473
|
* ```
|
2465
2474
|
* <script type="module">
|
2466
|
-
* import {validateFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2475
|
+
* import {validateFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/validate.js';
|
2467
2476
|
* console.log(validateFunction(()=>{})) // ↦ value
|
2468
2477
|
* console.log(validateFunction('2')) // ↦ TypeError
|
2469
2478
|
* console.log(validateFunction([])) // ↦ TypeError
|
@@ -2493,7 +2502,7 @@ function validateFunction(value) {
|
|
2493
2502
|
*
|
2494
2503
|
* ```
|
2495
2504
|
* <script type="module">
|
2496
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2505
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/validate.js';
|
2497
2506
|
* console.log(Monster.Types.validateInteger(true)) // ↦ TypeError
|
2498
2507
|
* console.log(Monster.Types.validateInteger('2')) // ↦ TypeError
|
2499
2508
|
* console.log(Monster.Types.validateInteger(2)) // ↦ value
|
@@ -2504,7 +2513,7 @@ function validateFunction(value) {
|
|
2504
2513
|
*
|
2505
2514
|
* ```
|
2506
2515
|
* <script type="module">
|
2507
|
-
* import {validateFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2516
|
+
* import {validateFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/validate.js';
|
2508
2517
|
* console.log(validateInteger(true)) // ↦ TypeError
|
2509
2518
|
* console.log(validateInteger('2')) // ↦ TypeError
|
2510
2519
|
* console.log(validateInteger(2)) // ↦ value
|
@@ -2570,7 +2579,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
2570
2579
|
*
|
2571
2580
|
* ```
|
2572
2581
|
* <script type="module">
|
2573
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2582
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/util/clone.js';
|
2574
2583
|
* Monster.Util.clone({})
|
2575
2584
|
* </script>
|
2576
2585
|
* ```
|
@@ -2579,7 +2588,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
2579
2588
|
*
|
2580
2589
|
* ```
|
2581
2590
|
* <script type="module">
|
2582
|
-
* import {clone} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2591
|
+
* import {clone} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/util/clone.js';
|
2583
2592
|
* clone({})
|
2584
2593
|
* </script>
|
2585
2594
|
* ```
|
@@ -2791,7 +2800,7 @@ function getGlobal() {
|
|
2791
2800
|
*
|
2792
2801
|
* ```
|
2793
2802
|
* <script type="module">
|
2794
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2803
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/global.js';
|
2795
2804
|
* Monster.Types.getGlobalObject('document')
|
2796
2805
|
* // ↦ { }
|
2797
2806
|
* </script>
|
@@ -2801,7 +2810,7 @@ function getGlobal() {
|
|
2801
2810
|
*
|
2802
2811
|
* ```
|
2803
2812
|
* <script type="module">
|
2804
|
-
* import {getGlobalObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2813
|
+
* import {getGlobalObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/global.js';
|
2805
2814
|
* getGlobalObject('document')
|
2806
2815
|
* // ↦ { }
|
2807
2816
|
* </script>
|
@@ -2833,7 +2842,7 @@ function getGlobalObject(name) {
|
|
2833
2842
|
*
|
2834
2843
|
* ```
|
2835
2844
|
* <script type="module">
|
2836
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2845
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/global.js';
|
2837
2846
|
* console.log(Monster.Types.getGlobalFunction('parseInt')) // ↦ f parseInt() { }
|
2838
2847
|
* </script>
|
2839
2848
|
* ```
|
@@ -2842,7 +2851,7 @@ function getGlobalObject(name) {
|
|
2842
2851
|
*
|
2843
2852
|
* ```
|
2844
2853
|
* <script type="module">
|
2845
|
-
* import {getGlobalFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2854
|
+
* import {getGlobalFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/global.js';
|
2846
2855
|
* console.log(getGlobalFunction('parseInt')) // ↦ f parseInt() { }
|
2847
2856
|
* </script>
|
2848
2857
|
* ```
|
@@ -2893,7 +2902,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
2893
2902
|
*
|
2894
2903
|
* ```
|
2895
2904
|
* <script type="module">
|
2896
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2905
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/typeof.js';
|
2897
2906
|
* console.log(Monster.Types.typeOf())
|
2898
2907
|
* </script>
|
2899
2908
|
* ```
|
@@ -2902,14 +2911,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
2902
2911
|
*
|
2903
2912
|
* ```
|
2904
2913
|
* <script type="module">
|
2905
|
-
* import {typeOf} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2914
|
+
* import {typeOf} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/typeof.js';
|
2906
2915
|
* console.log(typeOf())
|
2907
2916
|
* </script>
|
2908
2917
|
* ```
|
2909
2918
|
*
|
2910
2919
|
* @example
|
2911
2920
|
*
|
2912
|
-
* import {typeOf} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
2921
|
+
* import {typeOf} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/typeof.js';
|
2913
2922
|
*
|
2914
2923
|
* console.log(typeOf(undefined)); // ↦ undefined
|
2915
2924
|
* console.log(typeOf("")); // ↦ string
|
@@ -3028,7 +3037,7 @@ var WILDCARD = '*';
|
|
3028
3037
|
*
|
3029
3038
|
* ```
|
3030
3039
|
* <script type="module">
|
3031
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3040
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/data/pathfinder.js';
|
3032
3041
|
* console.log(new Monster.Data.Pathfinder())
|
3033
3042
|
* </script>
|
3034
3043
|
* ```
|
@@ -3037,7 +3046,7 @@ var WILDCARD = '*';
|
|
3037
3046
|
*
|
3038
3047
|
* ```
|
3039
3048
|
* <script type="module">
|
3040
|
-
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3049
|
+
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/data/pathfinder.js';
|
3041
3050
|
* console.log(new Pathfinder())
|
3042
3051
|
* </script>
|
3043
3052
|
* ```
|
@@ -3079,7 +3088,7 @@ var WILDCARD = '*';
|
|
3079
3088
|
*
|
3080
3089
|
* @example
|
3081
3090
|
*
|
3082
|
-
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3091
|
+
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/data/pathfinder.js';
|
3083
3092
|
*
|
3084
3093
|
* let value = new Pathfinder({
|
3085
3094
|
* a: {
|
@@ -3105,7 +3114,7 @@ var WILDCARD = '*';
|
|
3105
3114
|
*
|
3106
3115
|
* @example
|
3107
3116
|
*
|
3108
|
-
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3117
|
+
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/data/pathfinder.js';
|
3109
3118
|
*
|
3110
3119
|
* let p = new Pathfinder({
|
3111
3120
|
* a: {
|
@@ -3520,7 +3529,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
3520
3529
|
*
|
3521
3530
|
* ```
|
3522
3531
|
* <script type="module">
|
3523
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3532
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/stack.js';
|
3524
3533
|
* console.log(new Monster.Types.Stack())
|
3525
3534
|
* </script>
|
3526
3535
|
* ```
|
@@ -3529,7 +3538,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
3529
3538
|
*
|
3530
3539
|
* ```
|
3531
3540
|
* <script type="module">
|
3532
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3541
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/stack.js';
|
3533
3542
|
* console.log(new Stack())
|
3534
3543
|
* </script>
|
3535
3544
|
* ```
|
@@ -3664,7 +3673,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
3664
3673
|
*
|
3665
3674
|
* ```
|
3666
3675
|
* <script type="module">
|
3667
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3676
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/data/diff.js';
|
3668
3677
|
* Monster.Data.Diff(a, b)
|
3669
3678
|
* </script>
|
3670
3679
|
* ```
|
@@ -3673,14 +3682,14 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
3673
3682
|
*
|
3674
3683
|
* ```
|
3675
3684
|
* <script type="module">
|
3676
|
-
* import {Diff} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3685
|
+
* import {Diff} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/data/diff.js';
|
3677
3686
|
* Diff(a, b)
|
3678
3687
|
* </script>
|
3679
3688
|
* ```
|
3680
3689
|
*
|
3681
3690
|
* @example
|
3682
3691
|
*
|
3683
|
-
* import {Diff} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3692
|
+
* import {Diff} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/data/diff.js';
|
3684
3693
|
*
|
3685
3694
|
* // given are two objects x and y.
|
3686
3695
|
*
|
@@ -3926,7 +3935,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
3926
3935
|
*
|
3927
3936
|
* ```
|
3928
3937
|
* <script type="module">
|
3929
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3938
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/data/extend.js';
|
3930
3939
|
* Monster.Data.extend(a, b)
|
3931
3940
|
* </script>
|
3932
3941
|
* ```
|
@@ -3935,7 +3944,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
3935
3944
|
*
|
3936
3945
|
* ```
|
3937
3946
|
* <script type="module">
|
3938
|
-
* import {extend} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
3947
|
+
* import {extend} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/data/extend.js';
|
3939
3948
|
* extend(a, b)
|
3940
3949
|
* </script>
|
3941
3950
|
* ```
|
@@ -4064,7 +4073,7 @@ var DELIMITER = '|';
|
|
4064
4073
|
*
|
4065
4074
|
* ```
|
4066
4075
|
* <script type="module">
|
4067
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
4076
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/data/pipe.js';
|
4068
4077
|
* new Monster.Data.Pipe()
|
4069
4078
|
* </script>
|
4070
4079
|
* ```
|
@@ -4073,7 +4082,7 @@ var DELIMITER = '|';
|
|
4073
4082
|
*
|
4074
4083
|
* ```
|
4075
4084
|
* <script type="module">
|
4076
|
-
* import {Pipe} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
4085
|
+
* import {Pipe} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/data/pipe.js';
|
4077
4086
|
* new Pipe()
|
4078
4087
|
* </script>
|
4079
4088
|
* ```
|
@@ -4084,7 +4093,7 @@ var DELIMITER = '|';
|
|
4084
4093
|
* the word is then converted to uppercase letters and a prefix Hello is added. the two backslash safe the space char.
|
4085
4094
|
*
|
4086
4095
|
* @example
|
4087
|
-
* import {Pipe} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
4096
|
+
* import {Pipe} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/data/pipe.js';
|
4088
4097
|
*
|
4089
4098
|
* let obj = {
|
4090
4099
|
* a: {
|
@@ -4246,7 +4255,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
4246
4255
|
*
|
4247
4256
|
* ```
|
4248
4257
|
* <script type="module">
|
4249
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
4258
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/data/transformer.js';
|
4250
4259
|
* new Monster.Data.Transformer()
|
4251
4260
|
* </script>
|
4252
4261
|
* ```
|
@@ -4255,7 +4264,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
4255
4264
|
*
|
4256
4265
|
* ```
|
4257
4266
|
* <script type="module">
|
4258
|
-
* import {Transformer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
4267
|
+
* import {Transformer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/data/transformer.js';
|
4259
4268
|
* new Transformer()
|
4260
4269
|
* </script>
|
4261
4270
|
* ```
|
@@ -4272,8 +4281,8 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
4272
4281
|
*
|
4273
4282
|
* | command | parameter | alias | description |
|
4274
4283
|
* |:-------------|:---------------------------|:------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
4275
|
-
* | to-base64 | | base64
|
4276
|
-
* | from-base64 | |
|
4284
|
+
* | to-base64 | | base64, btob | Converts the value to base64 |
|
4285
|
+
* | from-base64 | | atob | Converts the value from base64 |
|
4277
4286
|
* | call | function:param1:param2:... | | Calling a callback function. The function can be defined in three places: either globally, in the context `addCallback` or in the passed object |
|
4278
4287
|
* | default | value:type | ?? | If the value is undefined the first argument is returned, otherwise the value. The third optional parameter specifies the desired type. If no type is specified, string is used. Valid types are bool, string, int, float, undefined and object. An object default value must be specified as a base64 encoded json string. (since 1.12.0) |
|
4279
4288
|
* | debug | | | the passed value is output (console) and returned |
|
@@ -4341,7 +4350,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
4341
4350
|
*
|
4342
4351
|
* @example
|
4343
4352
|
*
|
4344
|
-
* import {Transformer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
4353
|
+
* import {Transformer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/data/transformer.js';
|
4345
4354
|
*
|
4346
4355
|
* const transformer = new Transformer("tolower")
|
4347
4356
|
*
|
@@ -4643,9 +4652,11 @@ function transform(value) {
|
|
4643
4652
|
throw new TypeError("unsupported type " + _typeof(value));
|
4644
4653
|
|
4645
4654
|
case 'to-base64':
|
4655
|
+
case 'btoa':
|
4646
4656
|
case 'base64':
|
4647
4657
|
return btoa(convertToString(value));
|
4648
4658
|
|
4659
|
+
case 'atob':
|
4649
4660
|
case 'from-base64':
|
4650
4661
|
return atob(convertToString(value));
|
4651
4662
|
|
@@ -4872,7 +4883,7 @@ var internalCounter = new Map();
|
|
4872
4883
|
*
|
4873
4884
|
* ```
|
4874
4885
|
* <script type="module">
|
4875
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
4886
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/id.js';
|
4876
4887
|
* console.log(new Monster.Types.ID())
|
4877
4888
|
* </script>
|
4878
4889
|
* ```
|
@@ -4881,7 +4892,7 @@ var internalCounter = new Map();
|
|
4881
4892
|
*
|
4882
4893
|
* ```
|
4883
4894
|
* <script type="module">
|
4884
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
4895
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/id.js';
|
4885
4896
|
* console.log(new ID())
|
4886
4897
|
* </script>
|
4887
4898
|
* ```
|
@@ -5001,7 +5012,7 @@ var ATTRIBUTEPREFIX = "data-monster-";
|
|
5001
5012
|
*
|
5002
5013
|
* ```
|
5003
5014
|
* <script type="module">
|
5004
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5015
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/assembler.js';
|
5005
5016
|
* console.log(new Monster.DOM.Assembler())
|
5006
5017
|
* </script>
|
5007
5018
|
* ```
|
@@ -5010,7 +5021,7 @@ var ATTRIBUTEPREFIX = "data-monster-";
|
|
5010
5021
|
*
|
5011
5022
|
* ```
|
5012
5023
|
* <script type="module">
|
5013
|
-
* import {Assembler} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5024
|
+
* import {Assembler} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/assembler.js';
|
5014
5025
|
* console.log(new Assembler())
|
5015
5026
|
* </script>
|
5016
5027
|
* ```
|
@@ -5151,7 +5162,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5151
5162
|
*
|
5152
5163
|
* ```
|
5153
5164
|
* <script type="module">
|
5154
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5165
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/proxyobserver.js';
|
5155
5166
|
* new Monster.Types.ProxyObserver()
|
5156
5167
|
* </script>
|
5157
5168
|
* ```
|
@@ -5160,7 +5171,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5160
5171
|
*
|
5161
5172
|
* ```
|
5162
5173
|
* <script type="module">
|
5163
|
-
* import {ProxyObserver} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5174
|
+
* import {ProxyObserver} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/proxyobserver.js';
|
5164
5175
|
* new ProxyObserver()
|
5165
5176
|
* </script>
|
5166
5177
|
* ```
|
@@ -5171,9 +5182,9 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5171
5182
|
*
|
5172
5183
|
* @example
|
5173
5184
|
*
|
5174
|
-
* import {ProxyObserver} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5175
|
-
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5176
|
-
* import {isObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5185
|
+
* import {ProxyObserver} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/proxyobserver.js';
|
5186
|
+
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/observer.js';
|
5187
|
+
* import {isObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/is.js';
|
5177
5188
|
*
|
5178
5189
|
* const o = new Observer(function () {
|
5179
5190
|
* if (isObject(this) && this instanceof ProxyObserver) {
|
@@ -5499,7 +5510,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5499
5510
|
*
|
5500
5511
|
* ```
|
5501
5512
|
* <script type="module">
|
5502
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5513
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/observer.js';
|
5503
5514
|
* console.log(new Monster.Types.Observer())
|
5504
5515
|
* </script>
|
5505
5516
|
* ```
|
@@ -5508,7 +5519,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5508
5519
|
*
|
5509
5520
|
* ```
|
5510
5521
|
* <script type="module">
|
5511
|
-
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5522
|
+
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/observer.js';
|
5512
5523
|
* console.log(new Observer())
|
5513
5524
|
* </script>
|
5514
5525
|
* ```
|
@@ -5542,7 +5553,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5542
5553
|
*
|
5543
5554
|
* @example
|
5544
5555
|
*
|
5545
|
-
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5556
|
+
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/observer.js';
|
5546
5557
|
*
|
5547
5558
|
* const observer = new Observer(function(a, b, c) {
|
5548
5559
|
* console.log(this, a, b, c); // ↦ "a", 2, true
|
@@ -5742,7 +5753,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5742
5753
|
*
|
5743
5754
|
* ```
|
5744
5755
|
* <script type="module">
|
5745
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5756
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/tokenlist.js';
|
5746
5757
|
* new Monster.Types.TokenList("myclass row")
|
5747
5758
|
* </script>
|
5748
5759
|
* ```
|
@@ -5751,7 +5762,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5751
5762
|
*
|
5752
5763
|
* ```
|
5753
5764
|
* <script type="module">
|
5754
|
-
* import {TokenList} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
5765
|
+
* import {TokenList} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/tokenlist.js';
|
5755
5766
|
* new TokenList("myclass row")
|
5756
5767
|
* </script>
|
5757
5768
|
* ```
|
@@ -6174,7 +6185,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
6174
6185
|
*
|
6175
6186
|
* ```
|
6176
6187
|
* <script type="module">
|
6177
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6188
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/uniquequeue.js';
|
6178
6189
|
* new Monster.Types.UniqueQueue()
|
6179
6190
|
* </script>
|
6180
6191
|
* ```
|
@@ -6183,7 +6194,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
6183
6194
|
*
|
6184
6195
|
* ```
|
6185
6196
|
* <script type="module">
|
6186
|
-
* import {UniqueQueue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6197
|
+
* import {UniqueQueue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/uniquequeue.js';
|
6187
6198
|
* new UniqueQueue()
|
6188
6199
|
* </script>
|
6189
6200
|
* ```
|
@@ -6318,7 +6329,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
6318
6329
|
*
|
6319
6330
|
* ```
|
6320
6331
|
* <script type="module">
|
6321
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6332
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/queue.js';
|
6322
6333
|
* new Monster.Types.Queue()
|
6323
6334
|
* </script>
|
6324
6335
|
* ```
|
@@ -6327,14 +6338,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
6327
6338
|
*
|
6328
6339
|
* ```
|
6329
6340
|
* <script type="module">
|
6330
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6341
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/queue.js';
|
6331
6342
|
* new Queue()
|
6332
6343
|
* </script>
|
6333
6344
|
* ```
|
6334
6345
|
*
|
6335
6346
|
* @example
|
6336
6347
|
*
|
6337
|
-
* import {Queue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6348
|
+
* import {Queue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/queue.js';
|
6338
6349
|
*
|
6339
6350
|
* const queue = new Queue;
|
6340
6351
|
*
|
@@ -6503,7 +6514,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
6503
6514
|
*
|
6504
6515
|
* ```
|
6505
6516
|
* <script type="module">
|
6506
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6517
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/observerlist.js';
|
6507
6518
|
* console.log(new Monster.Types.ObserverList())
|
6508
6519
|
* console.log(new Monster.Types.ObserverList())
|
6509
6520
|
* </script>
|
@@ -6513,7 +6524,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
6513
6524
|
*
|
6514
6525
|
* ```
|
6515
6526
|
* <script type="module">
|
6516
|
-
* import {ObserverList} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6527
|
+
* import {ObserverList} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/observerlist.js';
|
6517
6528
|
* console.log(ObserverList())
|
6518
6529
|
* console.log(ObserverList())
|
6519
6530
|
* </script>
|
@@ -6672,7 +6683,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
6672
6683
|
*
|
6673
6684
|
* ```
|
6674
6685
|
* <script type="module">
|
6675
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6686
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/updater.js';
|
6676
6687
|
* console.log(Monster.DOM.findClosestObjectLink())
|
6677
6688
|
* </script>
|
6678
6689
|
* ```
|
@@ -6681,7 +6692,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
6681
6692
|
*
|
6682
6693
|
* ```
|
6683
6694
|
* <script type="module">
|
6684
|
-
* import {getUpdaterFromNode} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6695
|
+
* import {getUpdaterFromNode} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/updater.js';
|
6685
6696
|
* console.log(findClosestObjectLink())
|
6686
6697
|
* </script>
|
6687
6698
|
* ```
|
@@ -6702,7 +6713,7 @@ function findClosestObjectLink(element) {
|
|
6702
6713
|
*
|
6703
6714
|
* ```
|
6704
6715
|
* <script type="module">
|
6705
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6716
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/attributes.js';
|
6706
6717
|
* Monster.DOM.addToObjectLink();
|
6707
6718
|
* </script>
|
6708
6719
|
* ```
|
@@ -6711,7 +6722,7 @@ function findClosestObjectLink(element) {
|
|
6711
6722
|
*
|
6712
6723
|
* ```
|
6713
6724
|
* <script type="module">
|
6714
|
-
* import {addToObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6725
|
+
* import {addToObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/attributes.js';
|
6715
6726
|
* addToObjectLink();
|
6716
6727
|
* </script>
|
6717
6728
|
* ```
|
@@ -6743,7 +6754,7 @@ function addToObjectLink(element, symbol, object) {
|
|
6743
6754
|
*
|
6744
6755
|
* ```
|
6745
6756
|
* <script type="module">
|
6746
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6757
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/attributes.js';
|
6747
6758
|
* Monster.DOM.removeObjectLink();
|
6748
6759
|
* </script>
|
6749
6760
|
* ```
|
@@ -6752,7 +6763,7 @@ function addToObjectLink(element, symbol, object) {
|
|
6752
6763
|
*
|
6753
6764
|
* ```
|
6754
6765
|
* <script type="module">
|
6755
|
-
* import {removeObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6766
|
+
* import {removeObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/attributes.js';
|
6756
6767
|
* removeObjectLink();
|
6757
6768
|
* </script>
|
6758
6769
|
* ```
|
@@ -6783,7 +6794,7 @@ function removeObjectLink(element, symbol) {
|
|
6783
6794
|
*
|
6784
6795
|
* ```
|
6785
6796
|
* <script type="module">
|
6786
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6797
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/attributes.js';
|
6787
6798
|
* Monster.DOM.hasObjectLink();
|
6788
6799
|
* </script>
|
6789
6800
|
* ```
|
@@ -6792,7 +6803,7 @@ function removeObjectLink(element, symbol) {
|
|
6792
6803
|
*
|
6793
6804
|
* ```
|
6794
6805
|
* <script type="module">
|
6795
|
-
* import {hasObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6806
|
+
* import {hasObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/attributes.js';
|
6796
6807
|
* hasObjectLink();
|
6797
6808
|
* </script>
|
6798
6809
|
* ```
|
@@ -6828,7 +6839,7 @@ function hasObjectLink(element, symbol) {
|
|
6828
6839
|
*
|
6829
6840
|
* ```
|
6830
6841
|
* <script type="module">
|
6831
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6842
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/attributes.js';
|
6832
6843
|
* Monster.DOM.getLinkedObjects();
|
6833
6844
|
* </script>
|
6834
6845
|
* ```
|
@@ -6837,7 +6848,7 @@ function hasObjectLink(element, symbol) {
|
|
6837
6848
|
*
|
6838
6849
|
* ```
|
6839
6850
|
* <script type="module">
|
6840
|
-
* import {getLinkedObjects} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6851
|
+
* import {getLinkedObjects} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/attributes.js';
|
6841
6852
|
* getLinkedObjects();
|
6842
6853
|
* </script>
|
6843
6854
|
* ```
|
@@ -6871,7 +6882,7 @@ function getLinkedObjects(element, symbol) {
|
|
6871
6882
|
*
|
6872
6883
|
* ```
|
6873
6884
|
* <script type="module">
|
6874
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6885
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/attributes.js';
|
6875
6886
|
* Monster.DOM.toggleAttributeToken();
|
6876
6887
|
* </script>
|
6877
6888
|
* ```
|
@@ -6880,7 +6891,7 @@ function getLinkedObjects(element, symbol) {
|
|
6880
6891
|
*
|
6881
6892
|
* ```
|
6882
6893
|
* <script type="module">
|
6883
|
-
* import {toggleAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6894
|
+
* import {toggleAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/attributes.js';
|
6884
6895
|
* toggleAttributeToken();
|
6885
6896
|
* </script>
|
6886
6897
|
* ```
|
@@ -6915,7 +6926,7 @@ function toggleAttributeToken(element, key, token) {
|
|
6915
6926
|
*
|
6916
6927
|
* ```
|
6917
6928
|
* <script type="module">
|
6918
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6929
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/attributes.js';
|
6919
6930
|
* Monster.DOM.addAttributeToken();
|
6920
6931
|
* </script>
|
6921
6932
|
* ```
|
@@ -6924,7 +6935,7 @@ function toggleAttributeToken(element, key, token) {
|
|
6924
6935
|
*
|
6925
6936
|
* ```
|
6926
6937
|
* <script type="module">
|
6927
|
-
* import {addAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6938
|
+
* import {addAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/attributes.js';
|
6928
6939
|
* addAttributeToken();
|
6929
6940
|
* </script>
|
6930
6941
|
* ```
|
@@ -6961,7 +6972,7 @@ function addAttributeToken(element, key, token) {
|
|
6961
6972
|
*
|
6962
6973
|
* ```
|
6963
6974
|
* <script type="module">
|
6964
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6975
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/attributes.js';
|
6965
6976
|
* Monster.DOM.removeAttributeToken();
|
6966
6977
|
* </script>
|
6967
6978
|
* ```
|
@@ -6970,7 +6981,7 @@ function addAttributeToken(element, key, token) {
|
|
6970
6981
|
*
|
6971
6982
|
* ```
|
6972
6983
|
* <script type="module">
|
6973
|
-
* import {removeAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
6984
|
+
* import {removeAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/attributes.js';
|
6974
6985
|
* removeAttributeToken();
|
6975
6986
|
* </script>
|
6976
6987
|
* ```
|
@@ -7006,7 +7017,7 @@ function removeAttributeToken(element, key, token) {
|
|
7006
7017
|
*
|
7007
7018
|
* ```
|
7008
7019
|
* <script type="module">
|
7009
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7020
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/attributes.js';
|
7010
7021
|
* Monster.DOM.containsAttributeToken();
|
7011
7022
|
* </script>
|
7012
7023
|
* ```
|
@@ -7015,7 +7026,7 @@ function removeAttributeToken(element, key, token) {
|
|
7015
7026
|
*
|
7016
7027
|
* ```
|
7017
7028
|
* <script type="module">
|
7018
|
-
* import {containsAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7029
|
+
* import {containsAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/attributes.js';
|
7019
7030
|
* containsAttributeToken();
|
7020
7031
|
* </script>
|
7021
7032
|
* ```
|
@@ -7048,7 +7059,7 @@ function containsAttributeToken(element, key, token) {
|
|
7048
7059
|
*
|
7049
7060
|
* ```
|
7050
7061
|
* <script type="module">
|
7051
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7062
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/attributes.js';
|
7052
7063
|
* Monster.DOM.replaceAttributeToken();
|
7053
7064
|
* </script>
|
7054
7065
|
* ```
|
@@ -7057,7 +7068,7 @@ function containsAttributeToken(element, key, token) {
|
|
7057
7068
|
*
|
7058
7069
|
* ```
|
7059
7070
|
* <script type="module">
|
7060
|
-
* import {replaceAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7071
|
+
* import {replaceAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/attributes.js';
|
7061
7072
|
* replaceAttributeToken();
|
7062
7073
|
* </script>
|
7063
7074
|
* ```
|
@@ -7093,7 +7104,7 @@ function replaceAttributeToken(element, key, from, to) {
|
|
7093
7104
|
*
|
7094
7105
|
* ```
|
7095
7106
|
* <script type="module">
|
7096
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7107
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/attributes.js';
|
7097
7108
|
* Monster.DOM.clearAttributeTokens();
|
7098
7109
|
* </script>
|
7099
7110
|
* ```
|
@@ -7102,7 +7113,7 @@ function replaceAttributeToken(element, key, from, to) {
|
|
7102
7113
|
*
|
7103
7114
|
* ```
|
7104
7115
|
* <script type="module">
|
7105
|
-
* import {clearAttributeTokens} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7116
|
+
* import {clearAttributeTokens} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/attributes.js';
|
7106
7117
|
* clearAttributeTokens();
|
7107
7118
|
* </script>
|
7108
7119
|
* ```
|
@@ -7132,7 +7143,7 @@ function clearAttributeTokens(element, key) {
|
|
7132
7143
|
*
|
7133
7144
|
* ```
|
7134
7145
|
* <script type="module">
|
7135
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7146
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/attributes.js';
|
7136
7147
|
* Monster.DOM.findClosestByAttribute();
|
7137
7148
|
* </script>
|
7138
7149
|
* ```
|
@@ -7141,7 +7152,7 @@ function clearAttributeTokens(element, key) {
|
|
7141
7152
|
*
|
7142
7153
|
* ```
|
7143
7154
|
* <script type="module">
|
7144
|
-
* import {findClosestByAttribute} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7155
|
+
* import {findClosestByAttribute} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/attributes.js';
|
7145
7156
|
* findClosestByAttribute();
|
7146
7157
|
* </script>
|
7147
7158
|
* ```
|
@@ -7185,6 +7196,38 @@ function findClosestByAttribute(element, key, value) {
|
|
7185
7196
|
__webpack_require__.r(__webpack_exports__);
|
7186
7197
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
7187
7198
|
/* harmony export */ "Monster": function() { return /* reexport safe */ _namespace_js__WEBPACK_IMPORTED_MODULE_0__.Monster; },
|
7199
|
+
/* harmony export */ "ATTRIBUTE_HIDDEN": function() { return /* binding */ ATTRIBUTE_HIDDEN; },
|
7200
|
+
/* harmony export */ "ATTRIBUTE_EXPORTPARTS": function() { return /* binding */ ATTRIBUTE_EXPORTPARTS; },
|
7201
|
+
/* harmony export */ "ATTRIBUTE_ENTERKEYHINT": function() { return /* binding */ ATTRIBUTE_ENTERKEYHINT; },
|
7202
|
+
/* harmony export */ "ATTRIBUTE_DRAGGABLE": function() { return /* binding */ ATTRIBUTE_DRAGGABLE; },
|
7203
|
+
/* harmony export */ "ATTRIBUTE_DIR": function() { return /* binding */ ATTRIBUTE_DIR; },
|
7204
|
+
/* harmony export */ "ATTRIBUTE_CONTENTEDITABLE": function() { return /* binding */ ATTRIBUTE_CONTENTEDITABLE; },
|
7205
|
+
/* harmony export */ "ATTRIBUTE_AUTOFOCUS": function() { return /* binding */ ATTRIBUTE_AUTOFOCUS; },
|
7206
|
+
/* harmony export */ "ATTRIBUTE_AUTOCAPITALIZE": function() { return /* binding */ ATTRIBUTE_AUTOCAPITALIZE; },
|
7207
|
+
/* harmony export */ "ATTRIBUTE_ACCESSKEY": function() { return /* binding */ ATTRIBUTE_ACCESSKEY; },
|
7208
|
+
/* harmony export */ "TAG_SCRIPT": function() { return /* binding */ TAG_SCRIPT; },
|
7209
|
+
/* harmony export */ "TAG_LINK": function() { return /* binding */ TAG_LINK; },
|
7210
|
+
/* harmony export */ "ATTRIBUTE_INPUTMODE": function() { return /* binding */ ATTRIBUTE_INPUTMODE; },
|
7211
|
+
/* harmony export */ "ATTRIBUTE_IS": function() { return /* binding */ ATTRIBUTE_IS; },
|
7212
|
+
/* harmony export */ "ATTRIBUTE_ITEMPROP": function() { return /* binding */ ATTRIBUTE_ITEMPROP; },
|
7213
|
+
/* harmony export */ "ATTRIBUTE_ITEMID": function() { return /* binding */ ATTRIBUTE_ITEMID; },
|
7214
|
+
/* harmony export */ "ATTRIBUTE_ITEMREF": function() { return /* binding */ ATTRIBUTE_ITEMREF; },
|
7215
|
+
/* harmony export */ "ATTRIBUTE_ITEMSCOPE": function() { return /* binding */ ATTRIBUTE_ITEMSCOPE; },
|
7216
|
+
/* harmony export */ "TAG_STYLE": function() { return /* binding */ TAG_STYLE; },
|
7217
|
+
/* harmony export */ "ATTRIBUTE_ITEMTYPE": function() { return /* binding */ ATTRIBUTE_ITEMTYPE; },
|
7218
|
+
/* harmony export */ "ATTRIBUTE_HREF": function() { return /* binding */ ATTRIBUTE_HREF; },
|
7219
|
+
/* harmony export */ "ATTRIBUTE_LANG": function() { return /* binding */ ATTRIBUTE_LANG; },
|
7220
|
+
/* harmony export */ "ATTRIBUTE_PART": function() { return /* binding */ ATTRIBUTE_PART; },
|
7221
|
+
/* harmony export */ "ATTRIBUTE_SLOT": function() { return /* binding */ ATTRIBUTE_SLOT; },
|
7222
|
+
/* harmony export */ "ATTRIBUTE_SPELLCHECK": function() { return /* binding */ ATTRIBUTE_SPELLCHECK; },
|
7223
|
+
/* harmony export */ "ATTRIBUTE_SRC": function() { return /* binding */ ATTRIBUTE_SRC; },
|
7224
|
+
/* harmony export */ "ATTRIBUTE_TABINDEX": function() { return /* binding */ ATTRIBUTE_TABINDEX; },
|
7225
|
+
/* harmony export */ "ATTRIBUTE_TRANSLATE": function() { return /* binding */ ATTRIBUTE_TRANSLATE; },
|
7226
|
+
/* harmony export */ "ATTRIBUTE_NONCE": function() { return /* binding */ ATTRIBUTE_NONCE; },
|
7227
|
+
/* harmony export */ "ATTRIBUTE_TYPE": function() { return /* binding */ ATTRIBUTE_TYPE; },
|
7228
|
+
/* harmony export */ "ATTRIBUTE_TITLE": function() { return /* binding */ ATTRIBUTE_TITLE; },
|
7229
|
+
/* harmony export */ "ATTRIBUTE_CLASS": function() { return /* binding */ ATTRIBUTE_CLASS; },
|
7230
|
+
/* harmony export */ "ATTRIBUTE_ID": function() { return /* binding */ ATTRIBUTE_ID; },
|
7188
7231
|
/* harmony export */ "ATTRIBUTE_PREFIX": function() { return /* binding */ ATTRIBUTE_PREFIX; },
|
7189
7232
|
/* harmony export */ "ATTRIBUTE_OPTIONS": function() { return /* binding */ ATTRIBUTE_OPTIONS; },
|
7190
7233
|
/* harmony export */ "DEFAULT_THEME": function() { return /* binding */ DEFAULT_THEME; },
|
@@ -7212,28 +7255,28 @@ __webpack_require__.r(__webpack_exports__);
|
|
7212
7255
|
*/
|
7213
7256
|
|
7214
7257
|
/**
|
7258
|
+
* default theme
|
7215
7259
|
* @memberOf Monster.DOM
|
7216
|
-
* @since 1.8.0
|
7217
7260
|
* @type {string}
|
7218
7261
|
*/
|
7219
7262
|
|
7220
|
-
var
|
7263
|
+
var DEFAULT_THEME = 'monster';
|
7221
7264
|
/**
|
7222
|
-
* This is the name of the attribute to pass options to a control
|
7223
|
-
*
|
7224
7265
|
* @memberOf Monster.DOM
|
7225
7266
|
* @since 1.8.0
|
7226
7267
|
* @type {string}
|
7227
7268
|
*/
|
7228
7269
|
|
7229
|
-
var
|
7270
|
+
var ATTRIBUTE_PREFIX = 'data-monster-';
|
7230
7271
|
/**
|
7231
|
-
*
|
7272
|
+
* This is the name of the attribute to pass options to a control
|
7273
|
+
*
|
7232
7274
|
* @memberOf Monster.DOM
|
7275
|
+
* @since 1.8.0
|
7233
7276
|
* @type {string}
|
7234
7277
|
*/
|
7235
7278
|
|
7236
|
-
var
|
7279
|
+
var ATTRIBUTE_OPTIONS = ATTRIBUTE_PREFIX + 'options';
|
7237
7280
|
/**
|
7238
7281
|
* @memberOf Monster.DOM
|
7239
7282
|
* @type {string}
|
@@ -7331,6 +7374,230 @@ var ATTRIBUTE_ERRORMESSAGE = ATTRIBUTE_PREFIX + 'error';
|
|
7331
7374
|
*/
|
7332
7375
|
|
7333
7376
|
var objectUpdaterLinkSymbol = Symbol('monsterUpdater');
|
7377
|
+
/**
|
7378
|
+
* @memberOf Monster.DOM
|
7379
|
+
* @type {string}
|
7380
|
+
* @since 1.25.0
|
7381
|
+
*/
|
7382
|
+
|
7383
|
+
var TAG_SCRIPT = 'script';
|
7384
|
+
/**
|
7385
|
+
* @memberOf Monster.DOM
|
7386
|
+
* @type {string}
|
7387
|
+
* @since 1.25.0
|
7388
|
+
*/
|
7389
|
+
|
7390
|
+
var TAG_STYLE = 'style';
|
7391
|
+
/**
|
7392
|
+
* @memberOf Monster.DOM
|
7393
|
+
* @type {string}
|
7394
|
+
* @since 1.25.0
|
7395
|
+
*/
|
7396
|
+
|
7397
|
+
var TAG_LINK = 'link';
|
7398
|
+
/**
|
7399
|
+
* @memberOf Monster.DOM
|
7400
|
+
* @type {string}
|
7401
|
+
* @since 1.25.0
|
7402
|
+
*/
|
7403
|
+
|
7404
|
+
var ATTRIBUTE_ID = 'id';
|
7405
|
+
/**
|
7406
|
+
* @memberOf Monster.DOM
|
7407
|
+
* @type {string}
|
7408
|
+
* @since 1.25.0
|
7409
|
+
*/
|
7410
|
+
|
7411
|
+
var ATTRIBUTE_CLASS = 'class';
|
7412
|
+
/**
|
7413
|
+
* @memberOf Monster.DOM
|
7414
|
+
* @type {string}
|
7415
|
+
* @since 1.25.0
|
7416
|
+
*/
|
7417
|
+
|
7418
|
+
var ATTRIBUTE_TITLE = 'title';
|
7419
|
+
/**
|
7420
|
+
* @memberOf Monster.DOM
|
7421
|
+
* @type {string}
|
7422
|
+
* @since 1.25.0
|
7423
|
+
*/
|
7424
|
+
|
7425
|
+
var ATTRIBUTE_SRC = 'src';
|
7426
|
+
/**
|
7427
|
+
* @memberOf Monster.DOM
|
7428
|
+
* @type {string}
|
7429
|
+
* @since 1.25.0
|
7430
|
+
*/
|
7431
|
+
|
7432
|
+
var ATTRIBUTE_HREF = 'href';
|
7433
|
+
/**
|
7434
|
+
* @memberOf Monster.DOM
|
7435
|
+
* @type {string}
|
7436
|
+
* @since 1.25.0
|
7437
|
+
*/
|
7438
|
+
|
7439
|
+
var ATTRIBUTE_TYPE = 'type';
|
7440
|
+
/**
|
7441
|
+
* @memberOf Monster.DOM
|
7442
|
+
* @type {string}
|
7443
|
+
* @since 1.25.0
|
7444
|
+
*/
|
7445
|
+
|
7446
|
+
var ATTRIBUTE_NONCE = 'nonce';
|
7447
|
+
/**
|
7448
|
+
* @memberOf Monster.DOM
|
7449
|
+
* @type {string}
|
7450
|
+
* @since 1.25.0
|
7451
|
+
*/
|
7452
|
+
|
7453
|
+
var ATTRIBUTE_TRANSLATE = 'translate';
|
7454
|
+
/**
|
7455
|
+
* @memberOf Monster.DOM
|
7456
|
+
* @type {string}
|
7457
|
+
* @since 1.25.0
|
7458
|
+
*/
|
7459
|
+
|
7460
|
+
var ATTRIBUTE_TABINDEX = 'tabindex';
|
7461
|
+
/**
|
7462
|
+
* @memberOf Monster.DOM
|
7463
|
+
* @type {string}
|
7464
|
+
* @since 1.25.0
|
7465
|
+
*/
|
7466
|
+
|
7467
|
+
var ATTRIBUTE_SPELLCHECK = 'spellcheck';
|
7468
|
+
/**
|
7469
|
+
* @memberOf Monster.DOM
|
7470
|
+
* @type {string}
|
7471
|
+
* @since 1.25.0
|
7472
|
+
*/
|
7473
|
+
|
7474
|
+
var ATTRIBUTE_SLOT = 'slot';
|
7475
|
+
/**
|
7476
|
+
* @memberOf Monster.DOM
|
7477
|
+
* @type {string}
|
7478
|
+
* @since 1.25.0
|
7479
|
+
*/
|
7480
|
+
|
7481
|
+
var ATTRIBUTE_PART = 'part';
|
7482
|
+
/**
|
7483
|
+
* @memberOf Monster.DOM
|
7484
|
+
* @type {string}
|
7485
|
+
* @since 1.25.0
|
7486
|
+
*/
|
7487
|
+
|
7488
|
+
var ATTRIBUTE_LANG = 'lang';
|
7489
|
+
/**
|
7490
|
+
* @memberOf Monster.DOM
|
7491
|
+
* @type {string}
|
7492
|
+
* @since 1.25.0
|
7493
|
+
*/
|
7494
|
+
|
7495
|
+
var ATTRIBUTE_ITEMTYPE = 'itemtype';
|
7496
|
+
/**
|
7497
|
+
* @memberOf Monster.DOM
|
7498
|
+
* @type {string}
|
7499
|
+
* @since 1.25.0
|
7500
|
+
*/
|
7501
|
+
|
7502
|
+
var ATTRIBUTE_ITEMSCOPE = 'itemscope';
|
7503
|
+
/**
|
7504
|
+
* @memberOf Monster.DOM
|
7505
|
+
* @type {string}
|
7506
|
+
* @since 1.25.0
|
7507
|
+
*/
|
7508
|
+
|
7509
|
+
var ATTRIBUTE_ITEMREF = 'itemref';
|
7510
|
+
/**
|
7511
|
+
* @memberOf Monster.DOM
|
7512
|
+
* @type {string}
|
7513
|
+
* @since 1.25.0
|
7514
|
+
*/
|
7515
|
+
|
7516
|
+
var ATTRIBUTE_ITEMID = 'itemid';
|
7517
|
+
/**
|
7518
|
+
* @memberOf Monster.DOM
|
7519
|
+
* @type {string}
|
7520
|
+
* @since 1.25.0
|
7521
|
+
*/
|
7522
|
+
|
7523
|
+
var ATTRIBUTE_ITEMPROP = 'itemprop';
|
7524
|
+
/**
|
7525
|
+
* @memberOf Monster.DOM
|
7526
|
+
* @type {string}
|
7527
|
+
* @since 1.25.0
|
7528
|
+
*/
|
7529
|
+
|
7530
|
+
var ATTRIBUTE_IS = 'is';
|
7531
|
+
/**
|
7532
|
+
* @memberOf Monster.DOM
|
7533
|
+
* @type {string}
|
7534
|
+
* @since 1.25.0
|
7535
|
+
*/
|
7536
|
+
|
7537
|
+
var ATTRIBUTE_INPUTMODE = 'inputmode';
|
7538
|
+
/**
|
7539
|
+
* @memberOf Monster.DOM
|
7540
|
+
* @type {string}
|
7541
|
+
* @since 1.25.0
|
7542
|
+
*/
|
7543
|
+
|
7544
|
+
var ATTRIBUTE_ACCESSKEY = 'accesskey';
|
7545
|
+
/**
|
7546
|
+
* @memberOf Monster.DOM
|
7547
|
+
* @type {string}
|
7548
|
+
* @since 1.25.0
|
7549
|
+
*/
|
7550
|
+
|
7551
|
+
var ATTRIBUTE_AUTOCAPITALIZE = 'autocapitalize';
|
7552
|
+
/**
|
7553
|
+
* @memberOf Monster.DOM
|
7554
|
+
* @type {string}
|
7555
|
+
* @since 1.25.0
|
7556
|
+
*/
|
7557
|
+
|
7558
|
+
var ATTRIBUTE_AUTOFOCUS = 'autofocus';
|
7559
|
+
/**
|
7560
|
+
* @memberOf Monster.DOM
|
7561
|
+
* @type {string}
|
7562
|
+
* @since 1.25.0
|
7563
|
+
*/
|
7564
|
+
|
7565
|
+
var ATTRIBUTE_CONTENTEDITABLE = 'contenteditable';
|
7566
|
+
/**
|
7567
|
+
* @memberOf Monster.DOM
|
7568
|
+
* @type {string}
|
7569
|
+
* @since 1.25.0
|
7570
|
+
*/
|
7571
|
+
|
7572
|
+
var ATTRIBUTE_DIR = 'dir';
|
7573
|
+
/**
|
7574
|
+
* @memberOf Monster.DOM
|
7575
|
+
* @type {string}
|
7576
|
+
* @since 1.25.0
|
7577
|
+
*/
|
7578
|
+
|
7579
|
+
var ATTRIBUTE_DRAGGABLE = 'draggable';
|
7580
|
+
/**
|
7581
|
+
* @memberOf Monster.DOM
|
7582
|
+
* @type {string}
|
7583
|
+
* @since 1.25.0
|
7584
|
+
*/
|
7585
|
+
|
7586
|
+
var ATTRIBUTE_ENTERKEYHINT = 'enterkeyhint';
|
7587
|
+
/**
|
7588
|
+
* @memberOf Monster.DOM
|
7589
|
+
* @type {string}
|
7590
|
+
* @since 1.25.0
|
7591
|
+
*/
|
7592
|
+
|
7593
|
+
var ATTRIBUTE_EXPORTPARTS = 'exportparts';
|
7594
|
+
/**
|
7595
|
+
* @memberOf Monster.DOM
|
7596
|
+
* @type {string}
|
7597
|
+
* @since 1.25.0
|
7598
|
+
*/
|
7599
|
+
|
7600
|
+
var ATTRIBUTE_HIDDEN = 'hidden';
|
7334
7601
|
|
7335
7602
|
|
7336
7603
|
/***/ }),
|
@@ -7403,7 +7670,7 @@ var attachedInternalSymbol = Symbol('attachedInternal');
|
|
7403
7670
|
*
|
7404
7671
|
* ```
|
7405
7672
|
* <script type="module">
|
7406
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
7673
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/customcontrol.js';
|
7407
7674
|
* document.createElement('monster-')
|
7408
7675
|
* </script>
|
7409
7676
|
* ```
|
@@ -7938,7 +8205,7 @@ var attributeObserverSymbol = Symbol('attributeObserver');
|
|
7938
8205
|
*
|
7939
8206
|
* ```
|
7940
8207
|
* <script type="module">
|
7941
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
8208
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/customelement.js';
|
7942
8209
|
* document.createElement('monster-')
|
7943
8210
|
* </script>
|
7944
8211
|
* ```
|
@@ -8804,7 +9071,7 @@ var internal = Symbol('internal');
|
|
8804
9071
|
*
|
8805
9072
|
* ```
|
8806
9073
|
* <script type="module">
|
8807
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9074
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/dataurl.js';
|
8808
9075
|
* new Monster.Types.DataUrl()
|
8809
9076
|
* </script>
|
8810
9077
|
* ```
|
@@ -8813,7 +9080,7 @@ var internal = Symbol('internal');
|
|
8813
9080
|
*
|
8814
9081
|
* ```
|
8815
9082
|
* <script type="module">
|
8816
|
-
* import {DataUrl} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9083
|
+
* import {DataUrl} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/dataurl.js';
|
8817
9084
|
* new DataUrl()
|
8818
9085
|
* </script>
|
8819
9086
|
* ```
|
@@ -8893,7 +9160,7 @@ var DataUrl = /*#__PURE__*/function (_Base) {
|
|
8893
9160
|
*
|
8894
9161
|
* ```
|
8895
9162
|
* <script type="module">
|
8896
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9163
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/dataurl.js';
|
8897
9164
|
* console.log(Monster.Types.parseDataURL())
|
8898
9165
|
* </script>
|
8899
9166
|
* ```
|
@@ -8902,7 +9169,7 @@ var DataUrl = /*#__PURE__*/function (_Base) {
|
|
8902
9169
|
*
|
8903
9170
|
* ```
|
8904
9171
|
* <script type="module">
|
8905
|
-
* import {parseDataURL} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9172
|
+
* import {parseDataURL} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/dataurl.js';
|
8906
9173
|
* console.log(parseDataURL())
|
8907
9174
|
* </script>
|
8908
9175
|
* ```
|
@@ -9040,7 +9307,7 @@ var internal = Symbol('internal');
|
|
9040
9307
|
*
|
9041
9308
|
* ```
|
9042
9309
|
* <script type="module">
|
9043
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9310
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/mediatype.js';
|
9044
9311
|
* console.log(new Monster.Types.MediaType())
|
9045
9312
|
* </script>
|
9046
9313
|
* ```
|
@@ -9049,7 +9316,7 @@ var internal = Symbol('internal');
|
|
9049
9316
|
*
|
9050
9317
|
* ```
|
9051
9318
|
* <script type="module">
|
9052
|
-
* import {MediaType} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9319
|
+
* import {MediaType} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/mediatype.js';
|
9053
9320
|
* console.log(new MediaType())
|
9054
9321
|
* </script>
|
9055
9322
|
* ```
|
@@ -9167,7 +9434,7 @@ var MediaType = /*#__PURE__*/function (_Base) {
|
|
9167
9434
|
*
|
9168
9435
|
* ```
|
9169
9436
|
* <script type="module">
|
9170
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9437
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/dataurl.js';
|
9171
9438
|
* console.log(Monster.Types.parseMediaType())
|
9172
9439
|
* </script>
|
9173
9440
|
* ```
|
@@ -9176,7 +9443,7 @@ var MediaType = /*#__PURE__*/function (_Base) {
|
|
9176
9443
|
*
|
9177
9444
|
* ```
|
9178
9445
|
* <script type="module">
|
9179
|
-
* import {parseMediaType} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9446
|
+
* import {parseMediaType} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/dataurl.js';
|
9180
9447
|
* console.log(parseMediaType())
|
9181
9448
|
* </script>
|
9182
9449
|
* ```
|
@@ -9313,8 +9580,8 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
9313
9580
|
*
|
9314
9581
|
* ```
|
9315
9582
|
* <script type="module">
|
9316
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9317
|
-
*
|
9583
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/template.js';
|
9584
|
+
* new Monster.DOM.Template()
|
9318
9585
|
* </script>
|
9319
9586
|
* ```
|
9320
9587
|
*
|
@@ -9322,8 +9589,8 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
9322
9589
|
*
|
9323
9590
|
* ```
|
9324
9591
|
* <script type="module">
|
9325
|
-
* import {Template} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9326
|
-
*
|
9592
|
+
* import {Template} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/template.js';
|
9593
|
+
* new Template()
|
9327
9594
|
* </script>
|
9328
9595
|
* ```
|
9329
9596
|
*
|
@@ -9385,7 +9652,7 @@ var Template = /*#__PURE__*/function (_Base) {
|
|
9385
9652
|
/**
|
9386
9653
|
* This method loads a template with the given ID and returns it.
|
9387
9654
|
*
|
9388
|
-
* To do this, it first
|
9655
|
+
* To do this, it first reads the theme of the document and looks for the `data-monster-theme-name` attribute in the HTML tag.
|
9389
9656
|
*
|
9390
9657
|
* ```
|
9391
9658
|
* <html data-monster-theme-name="my-theme">
|
@@ -9395,13 +9662,13 @@ var Template = /*#__PURE__*/function (_Base) {
|
|
9395
9662
|
*
|
9396
9663
|
* Now it is looked if there is a template with the given ID and theme `id-theme` and if yes it is returned.
|
9397
9664
|
* If there is no template a search for a template with the given ID `id` is done. If this is also not found, an error is thrown.
|
9398
|
-
*
|
9665
|
+
*
|
9399
9666
|
* You can call the method via the monster namespace `Monster.DOM.findDocumentTemplate()`.
|
9400
9667
|
*
|
9401
9668
|
* ```
|
9402
9669
|
* <script type="module">
|
9403
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9404
|
-
*
|
9670
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/template.js';
|
9671
|
+
* Monster.DOM.findDocumentTemplate()
|
9405
9672
|
* </script>
|
9406
9673
|
* ```
|
9407
9674
|
*
|
@@ -9409,11 +9676,41 @@ var Template = /*#__PURE__*/function (_Base) {
|
|
9409
9676
|
*
|
9410
9677
|
* ```
|
9411
9678
|
* <script type="module">
|
9412
|
-
* import {findTemplate} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9413
|
-
*
|
9679
|
+
* import {findTemplate} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/template.js';
|
9680
|
+
* findDocumentTemplate()
|
9414
9681
|
* </script>
|
9415
9682
|
* ```
|
9416
9683
|
*
|
9684
|
+
* @example
|
9685
|
+
*
|
9686
|
+
* import { findDocumentTemplate } from "https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/template.js";
|
9687
|
+
*
|
9688
|
+
* const template = document.createElement("template");
|
9689
|
+
* template.id = "myTemplate";
|
9690
|
+
* template.innerHTML = "<p>my default template</p>";
|
9691
|
+
* document.body.appendChild(template);
|
9692
|
+
*
|
9693
|
+
* const themedTemplate = document.createElement("template");
|
9694
|
+
* themedTemplate.id = "myTemplate-myTheme";
|
9695
|
+
* themedTemplate.innerHTML = "<p>my themed template</p>";
|
9696
|
+
* document.body.appendChild(themedTemplate);
|
9697
|
+
*
|
9698
|
+
* // loads the temple and since no theme is set the default template
|
9699
|
+
* const template1 = findDocumentTemplate("myTemplate");
|
9700
|
+
* console.log(template1.createDocumentFragment());
|
9701
|
+
* // ↦ '<p>my default template</p>'
|
9702
|
+
*
|
9703
|
+
* // now we set our own theme
|
9704
|
+
* document
|
9705
|
+
* .querySelector("html")
|
9706
|
+
* .setAttribute("data-monster-theme-name", "myTheme");
|
9707
|
+
*
|
9708
|
+
* // now we don't get the default template,
|
9709
|
+
* // but the template with the theme in the id
|
9710
|
+
* const template2 = findDocumentTemplate("myTemplate");
|
9711
|
+
* console.log(template2.createDocumentFragment());
|
9712
|
+
* // ↦ '<p>my themed template</p>'
|
9713
|
+
*
|
9417
9714
|
* @param {string} id
|
9418
9715
|
* @param {Node} currentNode
|
9419
9716
|
* @return {Monster.DOM.Template}
|
@@ -9519,7 +9816,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
9519
9816
|
*
|
9520
9817
|
* ```
|
9521
9818
|
* <script type="module">
|
9522
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9819
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/theme.js';
|
9523
9820
|
* console.log(new Monster.DOM.Theme())
|
9524
9821
|
* </script>
|
9525
9822
|
* ```
|
@@ -9528,14 +9825,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
9528
9825
|
*
|
9529
9826
|
* ```
|
9530
9827
|
* <script type="module">
|
9531
|
-
* import {Theme} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9828
|
+
* import {Theme} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/theme.js';
|
9532
9829
|
* console.log(new Theme())
|
9533
9830
|
* </script>
|
9534
9831
|
* ```
|
9535
9832
|
*
|
9536
9833
|
* @example
|
9537
9834
|
*
|
9538
|
-
* import {getDocumentTheme} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
9835
|
+
* import {getDocumentTheme} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/theme.js';
|
9539
9836
|
*
|
9540
9837
|
* const theme = getDocumentTheme();
|
9541
9838
|
* console.log(theme.getName());
|
@@ -9715,7 +10012,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
9715
10012
|
*
|
9716
10013
|
* ```
|
9717
10014
|
* <script type="module">
|
9718
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10015
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/updater.js';
|
9719
10016
|
* new Monster.DOM.Updater()
|
9720
10017
|
* </script>
|
9721
10018
|
* ```
|
@@ -9724,14 +10021,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
9724
10021
|
*
|
9725
10022
|
* ```
|
9726
10023
|
* <script type="module">
|
9727
|
-
* import {Updater} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10024
|
+
* import {Updater} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/updater.js';
|
9728
10025
|
* new Updater()
|
9729
10026
|
* </script>
|
9730
10027
|
* ```
|
9731
10028
|
*
|
9732
10029
|
* @example
|
9733
10030
|
*
|
9734
|
-
* import {Updater} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10031
|
+
* import {Updater} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/updater.js';
|
9735
10032
|
*
|
9736
10033
|
* // First we prepare the html document.
|
9737
10034
|
* // This is done here via script, but can also be inserted into the document as pure html.
|
@@ -9745,7 +10042,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
9745
10042
|
* let obj = {
|
9746
10043
|
* headline: "Hello World",
|
9747
10044
|
* };
|
9748
|
-
*
|
10045
|
+
*
|
9749
10046
|
* // Now comes the real magic. we pass the updater the parent HTMLElement
|
9750
10047
|
* // and the desired data structure.
|
9751
10048
|
* const updater = new Updater(body, obj);
|
@@ -9927,13 +10224,13 @@ var Updater = /*#__PURE__*/function (_Base) {
|
|
9927
10224
|
return this.subject.notifyObservers();
|
9928
10225
|
}
|
9929
10226
|
/**
|
9930
|
-
* If you have passed a ProxyObserver in the constructor, you will get the
|
9931
|
-
* However, if you
|
10227
|
+
* If you have passed a ProxyObserver in the constructor, you will get the object that the ProxyObserver manages here.
|
10228
|
+
* However, if you passed a simple object, here you will get a proxy for that object.
|
9932
10229
|
*
|
9933
10230
|
* For changes the ProxyObserver must be used.
|
9934
10231
|
*
|
9935
10232
|
* @since 1.8.0
|
9936
|
-
* @return {
|
10233
|
+
* @return {Proxy}
|
9937
10234
|
*/
|
9938
10235
|
|
9939
10236
|
}, {
|
@@ -10600,7 +10897,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
10600
10897
|
*
|
10601
10898
|
* ```
|
10602
10899
|
* <script type="module">
|
10603
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
10900
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/util/trimspaces.js';
|
10604
10901
|
* Monster.Util.trimSpaces(" hello ")
|
10605
10902
|
* </script>
|
10606
10903
|
* ```
|
@@ -10609,14 +10906,14 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
10609
10906
|
*
|
10610
10907
|
* ```
|
10611
10908
|
* <script type="module">
|
10612
|
-
* import {
|
10909
|
+
* import {trimSpaces} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/util/trimspaces.js';
|
10613
10910
|
* trimSpaces(' hello \\ ')
|
10614
10911
|
* </script>
|
10615
10912
|
* ```
|
10616
10913
|
*
|
10617
10914
|
* Hint: One stroke is escaped by the javascript interpreter, the second stroke escapes the stroke.
|
10618
10915
|
*
|
10619
|
-
* ```
|
10916
|
+
* ```text
|
10620
10917
|
* a\ b ↦ a b
|
10621
10918
|
* a\\ b ↦ a\ b
|
10622
10919
|
* ```
|
@@ -10708,7 +11005,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
10708
11005
|
*
|
10709
11006
|
* ```
|
10710
11007
|
* <script type="module">
|
10711
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11008
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/util.js';
|
10712
11009
|
* console.log(Monster.DOM.getDocument())
|
10713
11010
|
* </script>
|
10714
11011
|
* ```
|
@@ -10717,7 +11014,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
10717
11014
|
*
|
10718
11015
|
* ```
|
10719
11016
|
* <script type="module">
|
10720
|
-
* import {getDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11017
|
+
* import {getDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/util.js';
|
10721
11018
|
* console.log(getDocument())
|
10722
11019
|
* </script>
|
10723
11020
|
* ```
|
@@ -10772,7 +11069,7 @@ function getDocument() {
|
|
10772
11069
|
*
|
10773
11070
|
* ```
|
10774
11071
|
* <script type="module">
|
10775
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11072
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/util.js';
|
10776
11073
|
* console.log(Monster.DOM.getWindow())
|
10777
11074
|
* </script>
|
10778
11075
|
* ```
|
@@ -10781,7 +11078,7 @@ function getDocument() {
|
|
10781
11078
|
*
|
10782
11079
|
* ```
|
10783
11080
|
* <script type="module">
|
10784
|
-
* import {getWindow} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11081
|
+
* import {getWindow} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/util.js';
|
10785
11082
|
* console.log(getWindow(null))
|
10786
11083
|
* </script>
|
10787
11084
|
* ```
|
@@ -10841,7 +11138,7 @@ function getWindow() {
|
|
10841
11138
|
*
|
10842
11139
|
* ```
|
10843
11140
|
* <script type="module">
|
10844
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11141
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/util.js';
|
10845
11142
|
* console.log(Monster.DOM.getDocumentFragmentFromString())
|
10846
11143
|
* </script>
|
10847
11144
|
* ```
|
@@ -10850,7 +11147,7 @@ function getWindow() {
|
|
10850
11147
|
*
|
10851
11148
|
* ```
|
10852
11149
|
* <script type="module">
|
10853
|
-
* import {getDocumentFragmentFromString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11150
|
+
* import {getDocumentFragmentFromString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/util.js';
|
10854
11151
|
* console.log(getDocumentFragmentFromString('<div></div>'))
|
10855
11152
|
* </script>
|
10856
11153
|
* ```
|
@@ -10936,7 +11233,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
10936
11233
|
*
|
10937
11234
|
* ```
|
10938
11235
|
* <script type="module">
|
10939
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11236
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/events.js';
|
10940
11237
|
* console.log(new Monster.DOM.fireEvent())
|
10941
11238
|
* </script>
|
10942
11239
|
* ```
|
@@ -10945,7 +11242,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
10945
11242
|
*
|
10946
11243
|
* ```
|
10947
11244
|
* <script type="module">
|
10948
|
-
* import {fireEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11245
|
+
* import {fireEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/events.js';
|
10949
11246
|
* console.log(fireEvent())
|
10950
11247
|
* </script>
|
10951
11248
|
* ```
|
@@ -11001,7 +11298,7 @@ function fireEvent(element, type) {
|
|
11001
11298
|
*
|
11002
11299
|
* ```
|
11003
11300
|
* <script type="module">
|
11004
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11301
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/events.js';
|
11005
11302
|
* console.log(new Monster.DOM.findTargetElementFromEvent())
|
11006
11303
|
* </script>
|
11007
11304
|
* ```
|
@@ -11010,7 +11307,7 @@ function fireEvent(element, type) {
|
|
11010
11307
|
*
|
11011
11308
|
* ```
|
11012
11309
|
* <script type="module">
|
11013
|
-
* import {findTargetElementFromEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11310
|
+
* import {findTargetElementFromEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/events.js';
|
11014
11311
|
* console.log(findTargetElementFromEvent())
|
11015
11312
|
* </script>
|
11016
11313
|
* ```
|
@@ -11066,14 +11363,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
11066
11363
|
/* harmony import */ var _namespace_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
|
11067
11364
|
/* harmony import */ var _util_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(42);
|
11068
11365
|
|
11069
|
-
|
11070
|
-
|
11071
11366
|
/**
|
11072
11367
|
* @author schukai GmbH
|
11073
11368
|
*/
|
11074
11369
|
|
11075
11370
|
|
11076
11371
|
|
11372
|
+
|
11077
11373
|
/**
|
11078
11374
|
* @private
|
11079
11375
|
* @type {string}
|
@@ -11088,7 +11384,7 @@ var DEFAULT_LANGUAGE = 'en';
|
|
11088
11384
|
*
|
11089
11385
|
* ```
|
11090
11386
|
* <script type="module">
|
11091
|
-
* import {getLocaleOfDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11387
|
+
* import {getLocaleOfDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/locale.js';
|
11092
11388
|
* console.log(new Monster.DOM.getLocaleOfDocument())
|
11093
11389
|
* </script>
|
11094
11390
|
* ```
|
@@ -11097,7 +11393,7 @@ var DEFAULT_LANGUAGE = 'en';
|
|
11097
11393
|
*
|
11098
11394
|
* ```
|
11099
11395
|
* <script type="module">
|
11100
|
-
* import {getLocaleOfDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11396
|
+
* import {getLocaleOfDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/dom/locale.js';
|
11101
11397
|
* console.log(new getLocaleOfDocument())
|
11102
11398
|
* </script>
|
11103
11399
|
* ```
|
@@ -11190,7 +11486,7 @@ var localeStringSymbol = Symbol('localeString');
|
|
11190
11486
|
*
|
11191
11487
|
* ```
|
11192
11488
|
* <script type="module">
|
11193
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11489
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/i18n/locale.js';
|
11194
11490
|
* new Monster.I18n.Locale()
|
11195
11491
|
* </script>
|
11196
11492
|
* ```
|
@@ -11199,7 +11495,7 @@ var localeStringSymbol = Symbol('localeString');
|
|
11199
11495
|
*
|
11200
11496
|
* ```
|
11201
11497
|
* <script type="module">
|
11202
|
-
* import {Locale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11498
|
+
* import {Locale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/i18n/locale.js';
|
11203
11499
|
* new Locale()
|
11204
11500
|
* </script>
|
11205
11501
|
* ```
|
@@ -11390,7 +11686,7 @@ var Locale = /*#__PURE__*/function (_Base) {
|
|
11390
11686
|
*
|
11391
11687
|
* ```
|
11392
11688
|
* <script type="module">
|
11393
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11689
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/i18n/locale.js';
|
11394
11690
|
* new Monster.I18n.createLocale()
|
11395
11691
|
* </script>
|
11396
11692
|
* ```
|
@@ -11399,7 +11695,7 @@ var Locale = /*#__PURE__*/function (_Base) {
|
|
11399
11695
|
*
|
11400
11696
|
* ```
|
11401
11697
|
* <script type="module">
|
11402
|
-
* import {createLocale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11698
|
+
* import {createLocale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/i18n/locale.js';
|
11403
11699
|
* createLocale()
|
11404
11700
|
* </script>
|
11405
11701
|
* ```
|
@@ -11575,7 +11871,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
11575
11871
|
*
|
11576
11872
|
* ```
|
11577
11873
|
* <script type="module">
|
11578
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11874
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/i18n/provider.js';
|
11579
11875
|
* new Monster.I18n.Provider()
|
11580
11876
|
* </script>
|
11581
11877
|
* ```
|
@@ -11584,7 +11880,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
11584
11880
|
*
|
11585
11881
|
* ```
|
11586
11882
|
* <script type="module">
|
11587
|
-
* import {Provider} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11883
|
+
* import {Provider} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/i18n/provider.js';
|
11588
11884
|
* new Provider()
|
11589
11885
|
* </script>
|
11590
11886
|
* ```
|
@@ -11685,7 +11981,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
11685
11981
|
*
|
11686
11982
|
* ```
|
11687
11983
|
* <script type="module">
|
11688
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11984
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/basewithoptions.js';
|
11689
11985
|
* new Monster.Types.BaseWithOptions()
|
11690
11986
|
* </script>
|
11691
11987
|
* ```
|
@@ -11694,7 +11990,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
11694
11990
|
*
|
11695
11991
|
* ```
|
11696
11992
|
* <script type="module">
|
11697
|
-
* import {BaseWithOptions} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
11993
|
+
* import {BaseWithOptions} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/basewithoptions.js';
|
11698
11994
|
* new BaseWithOptions()
|
11699
11995
|
* </script>
|
11700
11996
|
* ```
|
@@ -11835,7 +12131,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
11835
12131
|
*
|
11836
12132
|
* ```
|
11837
12133
|
* <script type="module">
|
11838
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12134
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/i18n/translations.js';
|
11839
12135
|
* new Monster.I18n.Translations()
|
11840
12136
|
* </script>
|
11841
12137
|
* ```
|
@@ -11844,14 +12140,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
11844
12140
|
*
|
11845
12141
|
* ```
|
11846
12142
|
* <script type="module">
|
11847
|
-
* import {Translations} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12143
|
+
* import {Translations} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/i18n/translations.js';
|
11848
12144
|
* new Translations()
|
11849
12145
|
* </script>
|
11850
12146
|
* ```
|
11851
12147
|
*
|
11852
12148
|
* @example
|
11853
12149
|
*
|
11854
|
-
* import {Translations} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12150
|
+
* import {Translations} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/i18n/translations.js';
|
11855
12151
|
* const translation = new Translations(parseLocale('en-GB'));
|
11856
12152
|
*
|
11857
12153
|
* translation.assignTranslations({
|
@@ -12114,7 +12410,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12114
12410
|
*
|
12115
12411
|
* ```
|
12116
12412
|
* <script type="module">
|
12117
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12413
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/i18n/providers/fetch.js';
|
12118
12414
|
* new Monster.I18n.Providers.Fetch()
|
12119
12415
|
* </script>
|
12120
12416
|
* ```
|
@@ -12123,7 +12419,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12123
12419
|
*
|
12124
12420
|
* ```
|
12125
12421
|
* <script type="module">
|
12126
|
-
* import {Fetch} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12422
|
+
* import {Fetch} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/i18n/providers/fetch.js';
|
12127
12423
|
* new Fetch()
|
12128
12424
|
* </script>
|
12129
12425
|
* ```
|
@@ -12306,7 +12602,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12306
12602
|
*
|
12307
12603
|
* ```
|
12308
12604
|
* <script type="module">
|
12309
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12605
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/text/formatter.js';
|
12310
12606
|
* new Monster.Text.Formatter()
|
12311
12607
|
* </script>
|
12312
12608
|
* ```
|
@@ -12315,7 +12611,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12315
12611
|
*
|
12316
12612
|
* ```
|
12317
12613
|
* <script type="module">
|
12318
|
-
* import {Formatter} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12614
|
+
* import {Formatter} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/text/formatter.js';
|
12319
12615
|
* new Formatter()
|
12320
12616
|
* </script>
|
12321
12617
|
* ```
|
@@ -12337,7 +12633,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12337
12633
|
*
|
12338
12634
|
* @example
|
12339
12635
|
*
|
12340
|
-
* import {Formatter} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12636
|
+
* import {Formatter} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/text/formatter.js';
|
12341
12637
|
*
|
12342
12638
|
* new Formatter({
|
12343
12639
|
* a: {
|
@@ -12592,7 +12888,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12592
12888
|
*
|
12593
12889
|
* ```
|
12594
12890
|
* <script type="module">
|
12595
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12891
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/logging/handler.js';
|
12596
12892
|
* console.log(new Monster.Logging.Handler())
|
12597
12893
|
* </script>
|
12598
12894
|
* ```
|
@@ -12601,7 +12897,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12601
12897
|
*
|
12602
12898
|
* ```
|
12603
12899
|
* <script type="module">
|
12604
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
12900
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/logging/handler.js';
|
12605
12901
|
* console.log(new Handler())
|
12606
12902
|
* </script>
|
12607
12903
|
* ```
|
@@ -12839,7 +13135,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12839
13135
|
*
|
12840
13136
|
* ```
|
12841
13137
|
* <script type="module">
|
12842
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13138
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/logging/logentry.js';
|
12843
13139
|
* console.log(new Monster.Logging.LogEntry())
|
12844
13140
|
* </script>
|
12845
13141
|
* ```
|
@@ -12848,7 +13144,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12848
13144
|
*
|
12849
13145
|
* ```
|
12850
13146
|
* <script type="module">
|
12851
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13147
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/logging/logentry.js';
|
12852
13148
|
* console.log(new LogEntry())
|
12853
13149
|
* </script>
|
12854
13150
|
* ```
|
@@ -13034,7 +13330,7 @@ var OFF = 0;
|
|
13034
13330
|
*
|
13035
13331
|
* ```
|
13036
13332
|
* <script type="module">
|
13037
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13333
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/logging/logger.js';
|
13038
13334
|
* new Monster.Logging.Logger()
|
13039
13335
|
* </script>
|
13040
13336
|
* ```
|
@@ -13043,7 +13339,7 @@ var OFF = 0;
|
|
13043
13339
|
*
|
13044
13340
|
* ```
|
13045
13341
|
* <script type="module">
|
13046
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13342
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/logging/logger.js';
|
13047
13343
|
* new Logger()
|
13048
13344
|
* </script>
|
13049
13345
|
* ```
|
@@ -13343,7 +13639,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
13343
13639
|
*
|
13344
13640
|
* ```
|
13345
13641
|
* <script type="module">
|
13346
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13642
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/logging/handler/console.js';
|
13347
13643
|
* console.log(new Monster.Logging.Handler.ConsoleHandler())
|
13348
13644
|
* </script>
|
13349
13645
|
* ```
|
@@ -13352,7 +13648,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
13352
13648
|
*
|
13353
13649
|
* ```
|
13354
13650
|
* <script type="module">
|
13355
|
-
* import {ConsoleHandler} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13651
|
+
* import {ConsoleHandler} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/logging/handler/console.js';
|
13356
13652
|
* console.log(new ConsoleHandler())
|
13357
13653
|
* </script>
|
13358
13654
|
* ```
|
@@ -13428,8 +13724,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
13428
13724
|
*
|
13429
13725
|
* ```
|
13430
13726
|
* <script type="module">
|
13431
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13432
|
-
|
13727
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/math/random.js';
|
13728
|
+
* Monster.Math.random(1,10)
|
13433
13729
|
* // ↦ 5
|
13434
13730
|
* </script>
|
13435
13731
|
* ```
|
@@ -13438,8 +13734,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
13438
13734
|
*
|
13439
13735
|
* ```
|
13440
13736
|
* <script type="module">
|
13441
|
-
* import {random} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13442
|
-
* random(1,10)
|
13737
|
+
* import {random} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/math/random.js';
|
13738
|
+
* random(1,10)
|
13443
13739
|
* // ↦ 5
|
13444
13740
|
* </script>
|
13445
13741
|
* ```
|
@@ -13533,7 +13829,11 @@ function create(min, max) {
|
|
13533
13829
|
return create(min, max);
|
13534
13830
|
}
|
13535
13831
|
|
13536
|
-
|
13832
|
+
if (rval < min) {
|
13833
|
+
rval += min;
|
13834
|
+
}
|
13835
|
+
|
13836
|
+
return rval;
|
13537
13837
|
}
|
13538
13838
|
|
13539
13839
|
(0,_namespace_js__WEBPACK_IMPORTED_MODULE_0__.assignToNamespace)('Monster.Math', random);
|
@@ -13591,7 +13891,7 @@ var internalCounter = 0;
|
|
13591
13891
|
*
|
13592
13892
|
* ```
|
13593
13893
|
* <script type="module">
|
13594
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13894
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/randomid.js';
|
13595
13895
|
* console.log(new Monster.Types.RandomID())
|
13596
13896
|
* </script>
|
13597
13897
|
* ```
|
@@ -13600,7 +13900,7 @@ var internalCounter = 0;
|
|
13600
13900
|
*
|
13601
13901
|
* ```
|
13602
13902
|
* <script type="module">
|
13603
|
-
* import {RandomID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13903
|
+
* import {RandomID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/randomid.js';
|
13604
13904
|
* console.log(new RandomID())
|
13605
13905
|
* </script>
|
13606
13906
|
* ```
|
@@ -13683,7 +13983,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
13683
13983
|
*
|
13684
13984
|
* ```
|
13685
13985
|
* <script type="module">
|
13686
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13986
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/version.js';
|
13687
13987
|
* console.log(new Monster.Types.Version('1.2.3')) // ↦ 1.2.3
|
13688
13988
|
* console.log(new Monster.Types.Version('1')) // ↦ 1.0.0
|
13689
13989
|
* </script>
|
@@ -13693,7 +13993,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
13693
13993
|
*
|
13694
13994
|
* ```
|
13695
13995
|
* <script type="module">
|
13696
|
-
* import {Version} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13996
|
+
* import {Version} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/version.js';
|
13697
13997
|
* console.log(new Version('1.2.3')) // ↦ 1.2.3
|
13698
13998
|
* console.log(new Version('1')) // ↦ 1.0.0
|
13699
13999
|
* </script>
|
@@ -13701,7 +14001,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
13701
14001
|
*
|
13702
14002
|
* @example
|
13703
14003
|
*
|
13704
|
-
* import {Version} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14004
|
+
* import {Version} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/version.js';
|
13705
14005
|
*
|
13706
14006
|
* new Version('1.0.0') // ↦ 1.0.0
|
13707
14007
|
* new Version(1) // ↦ 1.0.0
|
@@ -13835,7 +14135,7 @@ var monsterVersion;
|
|
13835
14135
|
*
|
13836
14136
|
* ```
|
13837
14137
|
* <script type="module">
|
13838
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14138
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/version.js';
|
13839
14139
|
* console.log(Monster.getVersion())
|
13840
14140
|
* </script>
|
13841
14141
|
* ```
|
@@ -13844,7 +14144,7 @@ var monsterVersion;
|
|
13844
14144
|
*
|
13845
14145
|
* ```
|
13846
14146
|
* <script type="module">
|
13847
|
-
* import {getVersion} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14147
|
+
* import {getVersion} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/types/version.js';
|
13848
14148
|
* console.log(getVersion())
|
13849
14149
|
* </script>
|
13850
14150
|
* ```
|
@@ -13863,7 +14163,7 @@ function getVersion() {
|
|
13863
14163
|
/**#@+ dont touch, replaced by make with package.json version */
|
13864
14164
|
|
13865
14165
|
|
13866
|
-
monsterVersion = new Version('1.
|
14166
|
+
monsterVersion = new Version('1.25.0');
|
13867
14167
|
/**#@-*/
|
13868
14168
|
|
13869
14169
|
return monsterVersion;
|
@@ -13919,8 +14219,8 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
13919
14219
|
*
|
13920
14220
|
* ```
|
13921
14221
|
* <script type="module">
|
13922
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
13923
|
-
*
|
14222
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/util/comparator.js';
|
14223
|
+
* new Monster.Util.Comparator()
|
13924
14224
|
* </script>
|
13925
14225
|
* ```
|
13926
14226
|
*
|
@@ -13928,7 +14228,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
13928
14228
|
*
|
13929
14229
|
* ```
|
13930
14230
|
* <script type="module">
|
13931
|
-
* import {Comparator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14231
|
+
* import {Comparator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/util/comparator.js';
|
13932
14232
|
* console.log(new Comparator())
|
13933
14233
|
* </script>
|
13934
14234
|
* ```
|
@@ -13953,7 +14253,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
13953
14253
|
*
|
13954
14254
|
* @example
|
13955
14255
|
*
|
13956
|
-
* import {Comparator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14256
|
+
* import {Comparator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/util/comparator.js';
|
13957
14257
|
*
|
13958
14258
|
* console.log(new Comparator().lessThanOrEqual(2, 5))
|
13959
14259
|
* // ↦ true
|
@@ -14166,8 +14466,8 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
14166
14466
|
*
|
14167
14467
|
* ```
|
14168
14468
|
* <script type="module">
|
14169
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14170
|
-
*
|
14469
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/util/freeze.js';
|
14470
|
+
* Monster.Util.deepFreeze({})
|
14171
14471
|
* </script>
|
14172
14472
|
* ```
|
14173
14473
|
*
|
@@ -14175,8 +14475,8 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
14175
14475
|
*
|
14176
14476
|
* ```
|
14177
14477
|
* <script type="module">
|
14178
|
-
* import {deepFreeze} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.
|
14179
|
-
*
|
14478
|
+
* import {deepFreeze} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.25.0/dist/modules/util/freeze.js';
|
14479
|
+
* deepFreeze({})
|
14180
14480
|
* </script>
|
14181
14481
|
* ```
|
14182
14482
|
*
|