@schukai/monster 3.80.0 → 3.80.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/package.json +1 -1
  3. package/source/components/content/copy.mjs +1 -1
  4. package/source/components/layout/collapse.mjs +4 -4
  5. package/source/components/style/space.pcss +1 -1
  6. package/source/components/tree-menu/dragable-tree-menu.mjs +664 -664
  7. package/source/components/tree-menu/tree-menu.mjs +1 -24
  8. package/source/data/datasource/server/restapi/data-fetch-error.mjs +0 -1
  9. package/source/dom/customcontrol.mjs +0 -25
  10. package/source/dom/customelement.mjs +1 -9
  11. package/source/i18n/formatter.mjs +0 -2
  12. package/source/i18n/locale.mjs +0 -2
  13. package/source/i18n/provider.mjs +0 -2
  14. package/source/i18n/translations.mjs +0 -1
  15. package/source/logging/handler/console.mjs +0 -1
  16. package/source/logging/handler.mjs +0 -1
  17. package/source/logging/logger.mjs +2 -11
  18. package/source/monster.mjs +0 -1
  19. package/source/net/webconnect/message.mjs +0 -1
  20. package/source/types/base.mjs +1 -3
  21. package/source/types/basewithoptions.mjs +1 -2
  22. package/source/types/nodelist.mjs +0 -1
  23. package/source/types/noderecursiveiterator.mjs +1 -5
  24. package/source/types/observablequeue.mjs +0 -4
  25. package/source/types/observer.mjs +0 -3
  26. package/source/types/observerlist.mjs +0 -2
  27. package/source/types/proxyobserver.mjs +0 -2
  28. package/source/types/queue.mjs +0 -3
  29. package/source/types/randomid.mjs +0 -1
  30. package/source/types/regex.mjs +0 -1
  31. package/source/types/stack.mjs +1 -2
  32. package/source/types/tokenlist.mjs +0 -2
  33. package/source/types/typeof.mjs +0 -2
  34. package/source/types/uniquequeue.mjs +0 -1
  35. package/source/types/uuid.mjs +1 -2
  36. package/source/types/version.mjs +2 -5
  37. package/source/util/processing/callback.mjs +56 -0
  38. package/source/util/processing.mjs +2 -40
  39. package/test/web/test.html +1 -1
@@ -73,32 +73,9 @@ const openEntryEventHandlerSymbol = Symbol("openEntryEventHandler");
73
73
  /**
74
74
  * TreeMenu
75
75
  *
76
- * <img src="./images/tree-menu.png">
77
- *
78
- * You can create this control either by specifying the HTML tag `<monster-tree-menu />` directly in the HTML
79
- *
80
- * ```html
81
- * <monster-tree-menu></monster-tree-menu>
82
- * ```
83
- *
84
- * or using Javascript via the `document.createElement('monster-tree-menu');` method.
85
- *
86
- * ```javascript
87
- * import {TreeMenu} from 'https://cdn.jsdelivr.net/npm/@schukai/component-treemenu@0.1.0/dist/modules/treemenu.js';
88
- * document.createElement('monster-treemenu');
89
- * ```
90
- *
91
- * @startuml tree-menu.png
92
- * skinparam monochrome true
93
- * skinparam shadowing false
94
- * HTMLElement <|-- CustomElement
95
- * CustomElement <|-- CustomControl
96
- * CustomControl <|-- TreeMenu
97
- * @enduml
98
76
  * @since 1.0.0
99
- * @copyright schukai GmbH
100
77
  * @summary A TreeMenu control
101
- * @fires Monster.Components.TreeMenu.event:monster-fetched
78
+ * @fires monster-fetched
102
79
  */
103
80
  class TreeMenu extends CustomElement {
104
81
  /**
@@ -41,7 +41,6 @@ class DataFetchError extends Error {
41
41
  /**
42
42
  * This method is called by the `instanceof` operator.
43
43
  * @returns {symbol}
44
- * @since 2.1.0
45
44
  */
46
45
  static get [instanceSymbol]() {
47
46
  return Symbol.for(
@@ -32,8 +32,6 @@ const attachedInternalSymbol = Symbol("attachedInternal");
32
32
  * After defining a `CustomElement`, the `registerCustomElement` method must be called with the new class name. Only then
33
33
  * will the tag defined via the `getTag` method be made known to the DOM.
34
34
  *
35
- * <img src="./images/custom-control.png">
36
- *
37
35
  * This control uses `attachInternals()` to integrate the control into a form. If the target environment does not support
38
36
  * this method, the [polyfill](https://www.npmjs.com/package/element-internals-polyfill) can be used.
39
37
  *
@@ -48,18 +46,9 @@ const attachedInternalSymbol = Symbol("attachedInternal");
48
46
  *
49
47
  * Read the HTML specification for Custom Element Reactions: {@link https://html.spec.whatwg.org/dev/custom-elements.html#custom-element-reactions|Custom Element Reactions}.
50
48
  *
51
- * @startuml custom-control.png
52
- * skinparam monochrome true
53
- * skinparam shadowing false
54
- * HTMLElement <|-- CustomElement
55
- * CustomElement <|-- CustomControl
56
- * @enduml
57
49
  * @summary A base class for custom controls based on CustomElement.
58
- * @copyright schukai GmbH
59
50
  * @license AGPLv3
60
51
  * @since 1.14.0
61
- * @memberOf Monster.DOM
62
- * @extends Monster.DOM.CustomElement
63
52
  */
64
53
  class CustomControl extends CustomElement {
65
54
  /**
@@ -74,7 +63,6 @@ class CustomControl extends CustomElement {
74
63
  *
75
64
  * @inheritdoc
76
65
  * @throws {Error} the ElementInternals is not supported and a polyfill is necessary
77
- * @since 1.7.0
78
66
  */
79
67
  constructor() {
80
68
  super();
@@ -117,14 +105,12 @@ class CustomControl extends CustomElement {
117
105
  *
118
106
  * @see [attachInternals()]{@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/attachInternals}
119
107
  * @see [Custom Elements Face Example]{@link https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements-face-example}
120
- * @since 1.14.0
121
108
  * @return {boolean}
122
109
  */
123
110
  static formAssociated = true;
124
111
 
125
112
  /**
126
113
  * @inheritdoc
127
- * @since 1.14.0
128
114
  **/
129
115
  get defaults() {
130
116
  return extend({}, super.defaults);
@@ -135,7 +121,6 @@ class CustomControl extends CustomElement {
135
121
  *
136
122
  * This is a method of [internal API](https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals), which is a part of the web standard for custom elements.
137
123
  *
138
- * @since 1.14.0
139
124
  * @throws {Error} the value getter must be overwritten by the derived class
140
125
  */
141
126
  get value() {
@@ -148,7 +133,6 @@ class CustomControl extends CustomElement {
148
133
  * This is a method of [internal API](https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals), which is a part of the web standard for custom elements.
149
134
  *
150
135
  * @param {*} value The value to set.
151
- * @since 1.14.0
152
136
  * @throws {Error} the value setter must be overwritten by the derived class
153
137
  */
154
138
  set value(value) {
@@ -159,7 +143,6 @@ class CustomControl extends CustomElement {
159
143
  * This is a method of [internal api](https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals)
160
144
  *
161
145
  * @return {NodeList}
162
- * @since 1.14.0
163
146
  * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/labels}
164
147
  * @throws {Error} the ElementInternals is not supported and a polyfill is necessary
165
148
  */
@@ -201,7 +184,6 @@ class CustomControl extends CustomElement {
201
184
  * This is a method of [internal api](https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals)
202
185
  *
203
186
  * @return {string}
204
- * @since 1.14.0
205
187
  * @see https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/validationMessage
206
188
  * @throws {Error} the ElementInternals is not supported and a polyfill is necessary
207
189
  */
@@ -213,7 +195,6 @@ class CustomControl extends CustomElement {
213
195
  * This is a method of [internal api](https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals)
214
196
  *
215
197
  * @return {boolean}
216
- * @since 1.14.0
217
198
  * @see https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/willValidate
218
199
  * @throws {Error} the ElementInternals is not supported and a polyfill is necessary
219
200
  */
@@ -225,7 +206,6 @@ class CustomControl extends CustomElement {
225
206
  * This is a method of [internal api](https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals)
226
207
  *
227
208
  * @return {boolean}
228
- * @since 1.14.0
229
209
  * @see https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/states
230
210
  * @throws {Error} the ElementInternals is not supported and a polyfill is necessary
231
211
  */
@@ -237,7 +217,6 @@ class CustomControl extends CustomElement {
237
217
  * This is a method of [internal api](https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals)
238
218
  *
239
219
  * @return {HTMLFontElement|null}
240
- * @since 1.14.0
241
220
  * @see https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/form
242
221
  * @throws {Error} the ElementInternals is not supported and a polyfill is necessary
243
222
  */
@@ -259,7 +238,6 @@ class CustomControl extends CustomElement {
259
238
  *
260
239
  * @param {File|string|FormData} value
261
240
  * @param {File|string|FormData} state
262
- * @since 1.14.0
263
241
  * @return {undefined}
264
242
  * @throws {DOMException} NotSupportedError
265
243
  * @throws {Error} the ElementInternals is not supported and a polyfill is necessary
@@ -275,7 +253,6 @@ class CustomControl extends CustomElement {
275
253
  * @param {string|undefined} message
276
254
  * @param {HTMLElement} anchor
277
255
  * @see https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/setValidity
278
- * @since 1.14.0
279
256
  * @return {undefined}
280
257
  * @throws {DOMException} NotSupportedError
281
258
  * @throws {Error} the ElementInternals is not supported and a polyfill is necessary
@@ -288,7 +265,6 @@ class CustomControl extends CustomElement {
288
265
  * This is a method of [internal api](https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals)
289
266
  *
290
267
  * @see https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/checkValidity
291
- * @since 1.14.0
292
268
  * @return {boolean}
293
269
  * @throws {DOMException} NotSupportedError
294
270
  * @throws {Error} the ElementInternals is not supported and a polyfill is necessary
@@ -301,7 +277,6 @@ class CustomControl extends CustomElement {
301
277
  * This is a method of [internal api](https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals)
302
278
  *
303
279
  * @return {boolean}
304
- * @since 1.14.0
305
280
  * @see https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/reportValidity
306
281
  * @throws {Error} the ElementInternals is not supported and a polyfill is necessary
307
282
  * @throws {DOMException} NotSupportedError
@@ -170,10 +170,6 @@ const scriptHostElementSymbol = Symbol("scriptHostElement");
170
170
  *
171
171
  * You can create an instance of the object via the `document.createElement()` function.
172
172
  *
173
- * ## Interaction
174
- *
175
- * <img src="./images/customelement-sequencediagram.png">
176
- *
177
173
  * ## Styling
178
174
  *
179
175
  * To display custom elements optimally, the `:defined` pseudo-class can be used. To prevent custom elements from being displayed and flickering until the control is registered,
@@ -234,12 +230,9 @@ const scriptHostElementSymbol = Symbol("scriptHostElement");
234
230
  * More information about Custom Elements can be found in the [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements).
235
231
  * And in the [HTML Standard](https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements) or in the [WHATWG Wiki](https://wiki.whatwg.org/wiki/Custom_Elements).
236
232
  *
237
- * @externalExample ../../example/dom/theme.mjs
238
233
  * @license AGPLv3
239
234
  * @since 1.7.0
240
235
  * @copyright schukai GmbH
241
- * @memberOf Monster.DOM
242
- * @extends external:HTMLElement
243
236
  * @summary A base class for HTML5 custom controls.
244
237
  */
245
238
  class CustomElement extends HTMLElement {
@@ -250,7 +243,6 @@ class CustomElement extends HTMLElement {
250
243
  * IMPORTANT: CustomControls instances are not created via the constructor, but either via a tag in the HTML or via <code>document.createElement()</code>.
251
244
  *
252
245
  * @throws {Error} the options attribute does not contain a valid json definition.
253
- * @since 1.7.0
254
246
  */
255
247
  constructor() {
256
248
  super();
@@ -1211,7 +1203,7 @@ function initShadowRoot() {
1211
1203
  const mapping = this.getOption("templateMapping", {});
1212
1204
  if (isObject(mapping)) {
1213
1205
  const formatter = new Formatter(mapping);
1214
- if (this.getOption("templateFormatter.marker.open")!==null) {
1206
+ if (this.getOption("templateFormatter.marker.open") !== null) {
1215
1207
  formatter.setMarker(
1216
1208
  this.getOption("templateFormatter.marker.open"),
1217
1209
  this.getOption("templateFormatter.marker.close"),
@@ -30,11 +30,9 @@ const internalTranslationSymbol = Symbol("internalTranslation");
30
30
  /**
31
31
  * The Formatter extends the Text.Formatter with the possibility to replace the key by a translation.
32
32
  *
33
- * @externalExample ../../example/i18n/formatter.mjs
34
33
  * @license AGPLv3
35
34
  * @since 1.26.0
36
35
  * @copyright schukai GmbH
37
- * @memberOf Monster.I18n
38
36
  */
39
37
  class Formatter extends TextFormatter {
40
38
  /**
@@ -20,14 +20,12 @@ import { clone } from "../util/clone.mjs";
20
20
  export { Locale, parseLocale };
21
21
 
22
22
  /**
23
- * @memberOf Monster.I18n
24
23
  * @type {symbol}
25
24
  */
26
25
  const propertiesSymbol = Symbol("properties");
27
26
 
28
27
  /**
29
28
  * @type {symbol}
30
- * @memberOf Monster.I18n
31
29
  */
32
30
  const localeStringSymbol = Symbol("localeString");
33
31
 
@@ -26,7 +26,6 @@ import { Translations } from "./translations.mjs";
26
26
  export { Provider, translationsLinkSymbol };
27
27
 
28
28
  /**
29
- * @memberOf Monster.I18n
30
29
  * @type {symbol}
31
30
  * @license AGPLv3
32
31
  * @since 3.9.0
@@ -42,7 +41,6 @@ const translationsLinkSymbol = Symbol.for(
42
41
  * @license AGPLv3
43
42
  * @since 1.13.0
44
43
  * @copyright schukai GmbH
45
- * @memberOf Monster.I18n
46
44
  * @see {@link https://datatracker.ietf.org/doc/html/rfc3066}
47
45
  */
48
46
  class Provider extends BaseWithOptions {
@@ -35,7 +35,6 @@ export { Translations, getDocumentTranslations };
35
35
  * @license AGPLv3
36
36
  * @since 1.13.0
37
37
  * @copyright schukai GmbH
38
- * @memberOf Monster.I18n
39
38
  * @see https://datatracker.ietf.org/doc/html/rfc3066
40
39
  */
41
40
  class Translations extends Base {
@@ -25,7 +25,6 @@ export { ConsoleHandler };
25
25
  * @license AGPLv3
26
26
  * @since 1.5.0
27
27
  * @copyright schukai GmbH
28
- * @memberOf Monster.Logging.Handler
29
28
  */
30
29
  class ConsoleHandler extends Handler {
31
30
  /**
@@ -25,7 +25,6 @@ export { Handler };
25
25
  * @license AGPLv3
26
26
  * @since 1.5.0
27
27
  * @copyright schukai GmbH
28
- * @memberOf Monster.Logging
29
28
  */
30
29
  class Handler extends Base {
31
30
  constructor() {
@@ -12,8 +12,8 @@
12
12
  * SPDX-License-Identifier: AGPL-3.0
13
13
  */
14
14
 
15
- import { Handler } from "../logging/handler.mjs";
16
- import { LogEntry } from "../logging/logentry.mjs";
15
+ import { Handler } from "./handler.mjs";
16
+ import { LogEntry } from "./logentry.mjs";
17
17
 
18
18
  import { Base } from "../types/base.mjs";
19
19
  import {
@@ -27,49 +27,41 @@ export { Logger, ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF };
27
27
  /**
28
28
  * ALL > TRACE > DEBUG > INFO > WARN > ERROR > FATAL > OFF
29
29
  * @type {number}
30
- * @memberOf Monster.Logging
31
30
  */
32
31
  const ALL = 255;
33
32
  /**
34
33
  * ALL > TRACE > DEBUG > INFO > WARN > ERROR > FATAL > OFF
35
34
  * @type {number}
36
- * @memberOf Monster.Logging
37
35
  */
38
36
  const TRACE = 64;
39
37
  /**
40
38
  * ALL > TRACE > DEBUG > INFO > WARN > ERROR > FATAL > OFF
41
39
  * @type {number}
42
- * @memberOf Monster.Logging
43
40
  */
44
41
  const DEBUG = 32;
45
42
  /**
46
43
  * ALL > TRACE > DEBUG > INFO > WARN > ERROR > FATAL > OFF
47
44
  * @type {number}
48
- * @memberOf Monster.Logging
49
45
  */
50
46
  const INFO = 16;
51
47
  /**
52
48
  * ALL > TRACE > DEBUG > INFO > WARN > ERROR > FATAL > OFF
53
49
  * @type {number}
54
- * @memberOf Monster.Logging
55
50
  */
56
51
  const WARN = 8;
57
52
  /**
58
53
  * ALL > TRACE > DEBUG > INFO > WARN > ERROR > FATAL > OFF
59
54
  * @type {number}
60
- * @memberOf Monster.Logging
61
55
  */
62
56
  const ERROR = 4;
63
57
  /**
64
58
  * ALL > TRACE > DEBUG > INFO > WARN > ERROR > FATAL > OFF
65
59
  * @type {number}
66
- * @memberOf Monster.Logging
67
60
  */
68
61
  const FATAL = 2;
69
62
  /**
70
63
  * ALL > TRACE > DEBUG > INFO > WARN > ERROR > FATAL > OFF
71
64
  * @type {number}
72
- * @memberOf Monster.Logging
73
65
  */
74
66
  const OFF = 0;
75
67
 
@@ -79,7 +71,6 @@ const OFF = 0;
79
71
  * @license AGPLv3
80
72
  * @since 1.5.0
81
73
  * @copyright schukai GmbH
82
- * @memberOf Monster.Logging
83
74
  */
84
75
  class Logger extends Base {
85
76
  /**
@@ -56,7 +56,6 @@ export * from "./components/form/constants.mjs";
56
56
  export * from "./components/notify/message.mjs";
57
57
  export * from "./components/notify/notify.mjs";
58
58
  export * from "./components/notify/constants.mjs";
59
- export * from "./components/tree-menu/dragable-tree-menu.mjs";
60
59
  export * from "./components/tree-menu/tree-menu.mjs";
61
60
  export * from "./components/host/collapse.mjs";
62
61
  export * from "./components/host/config-manager.mjs";
@@ -25,7 +25,6 @@ const dataSymbol = Symbol("@@data");
25
25
  * @license AGPLv3
26
26
  * @since 3.4.0
27
27
  * @copyright schukai GmbH
28
- * @memberOf Monster.Net.WebSocket
29
28
  * @summary The Message class encapsulates a WebSocket message.
30
29
  */
31
30
  class Message extends Base {
@@ -37,14 +37,12 @@ export { Base };
37
37
  *
38
38
  * The class was formerly called Object.
39
39
  *
40
- * @license AGPLv3
41
40
  * @since 1.5.0
42
41
  * @copyright schukai GmbH
43
- * @memberOf Monster.Types
42
+ * @summary The base class for the most classes in the monster library
44
43
  */
45
44
  class Base extends Object {
46
45
  /**
47
- *
48
46
  * @returns {string}
49
47
  */
50
48
  toString() {
@@ -32,8 +32,7 @@ export { BaseWithOptions };
32
32
  * @license AGPLv3
33
33
  * @since 1.13.0
34
34
  * @copyright schukai GmbH
35
- * @memberOf Monster.Types
36
- * @deprecated since 3.15.0 use {@link Monster.Types.Base} with {@link Monster.Types.equipWithInternal} instead.
35
+ * @deprecated since 3.15.0 use `BaseWithOptions` instead of `BaseWithOptions`
37
36
  */
38
37
  class BaseWithOptions extends Base {
39
38
  /**
@@ -24,7 +24,6 @@ export { NodeList };
24
24
  * @license AGPLv3
25
25
  * @since 1.26.0
26
26
  * @copyright schukai GmbH
27
- * @memberOf Monster.Types
28
27
  * @summary A NodeList class
29
28
  */
30
29
  class NodeList extends Set {
@@ -31,11 +31,7 @@ const isNodeListSymbol = Symbol("isNodeList");
31
31
  /**
32
32
  * Represents a recursive iterator for traversing nodes in a DOM tree.
33
33
  *
34
- * @externalExample ../../example/types/noderecursiveiterator.mjs
35
- * @license AGPLv3
36
34
  * @since 1.26.0
37
- * @copyright schukai GmbH
38
- * @memberOf Monster.Types
39
35
  * @summary An iterator to run recursively through a tree of nodes
40
36
  * @extends Base
41
37
  */
@@ -91,7 +87,7 @@ class NodeRecursiveIterator extends Base {
91
87
 
92
88
  /**
93
89
  * @param {function} callback
94
- * @return {Monster.Types.NodeRecursiveIterator}
90
+ * @return {NodeRecursiveIterator}
95
91
  */
96
92
  forEach(callback) {
97
93
  for (const node of this) {
@@ -23,11 +23,8 @@ export { ObservableQueue };
23
23
  *
24
24
  * `Queue.add()` and `Queue.clear()` notify all observers.
25
25
  *
26
- * @externalExample ../../example/types/queue.mjs
27
- * @license AGPLv3
28
26
  * @since 3.3.0
29
27
  * @copyright schukai GmbH
30
- * @memberOf Monster.Types
31
28
  * @summary An observable Queue (Fifo)
32
29
  */
33
30
  class ObservableQueue extends Queue {
@@ -44,7 +41,6 @@ class ObservableQueue extends Queue {
44
41
  /**
45
42
  * This method is called by the `instanceof` operator.
46
43
  * @returns {symbol}
47
- * @since 2.1.0
48
44
  */
49
45
  static get [instanceSymbol]() {
50
46
  return Symbol.for("@schukai/monster/types/observablequeue");
@@ -53,11 +53,8 @@ export { Observer };
53
53
  *
54
54
  * The callback function must have as many parameters as arguments are given.
55
55
  *
56
- * @externalExample ../../example/types/observer.mjs
57
56
  * @license AGPLv3
58
57
  * @since 1.0.0
59
- * @copyright schukai GmbH
60
- * @memberOf Monster.Types
61
58
  */
62
59
  class Observer extends Base {
63
60
  /**
@@ -23,8 +23,6 @@ export { ObserverList };
23
23
  *
24
24
  * @license AGPLv3
25
25
  * @since 1.0.0
26
- * @copyright schukai GmbH
27
- * @memberOf Monster.Types
28
26
  */
29
27
  class ObserverList extends Base {
30
28
  /**
@@ -30,11 +30,9 @@ export { ProxyObserver };
30
30
  *
31
31
  * This also applies to nested objects.
32
32
  *
33
- * @externalExample ../../example/types/proxyobserver.mjs
34
33
  * @license AGPLv3
35
34
  * @since 1.0.0
36
35
  * @copyright schukai GmbH
37
- * @memberOf Monster.Types
38
36
  */
39
37
  class ProxyObserver extends Base {
40
38
  /**
@@ -26,11 +26,8 @@ export { Queue };
26
26
  *
27
27
  * You can create the instance via `new Queue()`.
28
28
  *
29
- * @externalExample ../../example/types/queue.mjs
30
29
  * @license AGPLv3
31
30
  * @since 1.4.0
32
- * @copyright schukai GmbH
33
- * @memberOf Monster.Types
34
31
  * @summary A Queue (Fifo)
35
32
  */
36
33
  class Queue extends Base {
@@ -30,7 +30,6 @@ let internalCounter = 0;
30
30
  * @license AGPLv3
31
31
  * @since 1.6.0
32
32
  * @copyright schukai GmbH
33
- * @memberOf Monster.Types
34
33
  * @summary class to generate random numbers
35
34
  */
36
35
  class RandomID extends ID {
@@ -24,7 +24,6 @@ export { escapeString };
24
24
  * @license AGPLv3
25
25
  * @since 1.26.0
26
26
  * @copyright schukai GmbH
27
- * @memberOf Monster.Types
28
27
  * @throws {TypeError} value is not a string
29
28
  */
30
29
  function escapeString(value) {
@@ -17,12 +17,11 @@ import { instanceSymbol } from "../constants.mjs";
17
17
  export { Stack };
18
18
 
19
19
  /**
20
- * You can call the method via the monster namespace `new Monster.Types.Queue()`.
20
+ * You can call the method via the monster namespace `new Queue()`.
21
21
  *
22
22
  * @license AGPLv3
23
23
  * @since 1.4.0
24
24
  * @copyright schukai GmbH
25
- * @memberOf Monster.Types
26
25
  */
27
26
  class Stack extends Base {
28
27
  /**
@@ -25,11 +25,9 @@ export { TokenList };
25
25
  *
26
26
  * This class implements the [iteration protocol](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).
27
27
  *
28
- * @externalExample ../../example/types/tokenlist-1.mjs
29
28
  * @license AGPLv3
30
29
  * @since 1.2.0
31
30
  * @copyright schukai GmbH
32
- * @memberOf Monster.Types
33
31
  */
34
32
  class TokenList extends Base {
35
33
  /**
@@ -17,13 +17,11 @@ export { typeOf };
17
17
  /**
18
18
  * The built-in typeof method is known to have some historical weaknesses. This function tries to provide a better and more accurate result.
19
19
  *
20
- * @externalExample ../../example/types/typeof.mjs
21
20
  * @param {*} value
22
21
  * @return {string}
23
22
  * @license AGPLv3
24
23
  * @since 1.7.0
25
24
  * @copyright schukai GmbH
26
- * @memberOf Monster.Types
27
25
  * @throws {TypeError} value is not a primitive
28
26
  */
29
27
  function typeOf(value) {
@@ -24,7 +24,6 @@ export { UniqueQueue };
24
24
  * @license AGPLv3
25
25
  * @since 1.4.0
26
26
  * @copyright schukai GmbH
27
- * @memberOf Monster.Types
28
27
  * @summary A queue for unique values
29
28
  */
30
29
  class UniqueQueue extends Queue {
@@ -14,7 +14,7 @@
14
14
 
15
15
  import { internalSymbol } from "../constants.mjs";
16
16
  import { random } from "../math/random.mjs";
17
- import { isObject } from "../types/is.mjs";
17
+ import { isObject } from "./is.mjs";
18
18
  import { Base } from "./base.mjs";
19
19
  import { getGlobalObject } from "./global.mjs";
20
20
 
@@ -26,7 +26,6 @@ export { UUID };
26
26
  * @license AGPLv3
27
27
  * @since 1.25.0
28
28
  * @copyright schukai GmbH
29
- * @memberOf Monster.Types
30
29
  * @throws {Error} unsupported
31
30
  */
32
31
  class UUID extends Base {
@@ -25,8 +25,7 @@ export { Version, getMonsterVersion };
25
25
  * @since 1.0.0
26
26
  * @author schukai GmbH
27
27
  * @copyright schukai GmbH
28
- * @memberOf Monster.Types
29
- * @summary The version object contains a sematic version number
28
+ * @summary The version object contains a semantic version number
30
29
  */
31
30
  class Version extends Base {
32
31
  /**
@@ -145,13 +144,11 @@ let monsterVersion;
145
144
  /**
146
145
  * Version of monster
147
146
  *
148
- * @externalExample ../../example/types/version-2.mjs
149
- * @returns {Monster.Types.Version}
147
+ * @returns {Version}
150
148
  * @license AGPLv3
151
149
  * @since 1.0.0
152
150
  * @copyright schukai GmbH
153
151
  * @author schukai GmbH
154
- * @memberOf Monster
155
152
  */
156
153
  function getMonsterVersion() {
157
154
  if (monsterVersion instanceof Version) {