@schukai/monster 3.80.0 → 3.80.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
  /**
@@ -1211,7 +1211,7 @@ function initShadowRoot() {
1211
1211
  const mapping = this.getOption("templateMapping", {});
1212
1212
  if (isObject(mapping)) {
1213
1213
  const formatter = new Formatter(mapping);
1214
- if (this.getOption("templateFormatter.marker.open")!==null) {
1214
+ if (this.getOption("templateFormatter.marker.open") !== null) {
1215
1215
  formatter.setMarker(
1216
1216
  this.getOption("templateFormatter.marker.open"),
1217
1217
  this.getOption("templateFormatter.marker.close"),
@@ -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";
@@ -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() {
@@ -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 {
@@ -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,9 @@ 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
31
  * @copyright schukai GmbH
33
- * @memberOf Monster.Types
34
32
  * @summary A Queue (Fifo)
35
33
  */
36
34
  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) {
@@ -10,7 +10,7 @@
10
10
  <body>
11
11
  <div id="headline" style="display: flex;align-items: center;justify-content: center;flex-direction: column;">
12
12
  <h1 style='margin-bottom: 0.1em;'>Monster 3.79.0</h1>
13
- <div id="lastupdate" style='font-size:0.7em'>last update So 6. Okt 14:31:55 CEST 2024</div>
13
+ <div id="lastupdate" style='font-size:0.7em'>last update So 6. Okt 14:35:17 CEST 2024</div>
14
14
  </div>
15
15
  <div id="mocha-errors"
16
16
  style="color: red;font-weight: bold;display: flex;align-items: center;justify-content: center;flex-direction: column;margin:20px;"></div>