@schukai/monster 3.80.2 → 3.80.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/package.json +1 -1
  3. package/source/components/content/copy.mjs +7 -4
  4. package/source/components/datatable/change-button.mjs +1 -1
  5. package/source/components/datatable/columnbar.mjs +1 -1
  6. package/source/components/datatable/dataset.mjs +3 -3
  7. package/source/components/datatable/datasource/dom.mjs +2 -2
  8. package/source/components/datatable/datasource/rest.mjs +7 -7
  9. package/source/components/datatable/datasource.mjs +3 -3
  10. package/source/components/datatable/datatable/header.mjs +11 -11
  11. package/source/components/datatable/datatable.mjs +15 -15
  12. package/source/components/datatable/embedded-pagination.mjs +2 -2
  13. package/source/components/datatable/filter/date-range.mjs +5 -5
  14. package/source/components/datatable/filter/input.mjs +2 -2
  15. package/source/components/datatable/filter/range.mjs +3 -3
  16. package/source/components/datatable/filter/settings.mjs +5 -5
  17. package/source/components/datatable/filter/util.mjs +3 -3
  18. package/source/components/datatable/filter-button.mjs +1 -1
  19. package/source/components/datatable/filter.mjs +11 -11
  20. package/source/components/datatable/pagination.mjs +3 -3
  21. package/source/components/datatable/save-button.mjs +1 -1
  22. package/source/components/datatable/status.mjs +1 -1
  23. package/source/components/form/action-button.mjs +2 -2
  24. package/source/components/form/api-button.mjs +1 -1
  25. package/source/components/form/button-bar.mjs +3 -3
  26. package/source/components/form/confirm-button.mjs +4 -4
  27. package/source/components/form/context-error.mjs +4 -4
  28. package/source/components/form/context-help.mjs +1 -1
  29. package/source/components/form/field-set.mjs +2 -2
  30. package/source/components/form/form.mjs +3 -3
  31. package/source/components/form/message-state-button.mjs +6 -6
  32. package/source/components/form/popper-button.mjs +1 -1
  33. package/source/components/form/reload.mjs +5 -22
  34. package/source/components/form/select.mjs +2015 -1958
  35. package/source/components/form/shadow-reload.mjs +1 -1
  36. package/source/components/form/state-button.mjs +1 -1
  37. package/source/components/form/style/select.pcss +3 -1
  38. package/source/components/form/stylesheet/select.mjs +7 -14
  39. package/source/components/form/template.mjs +4 -4
  40. package/source/components/form/toggle-switch.mjs +1 -1
  41. package/source/components/form/tree-select.mjs +1 -1
  42. package/source/components/form/util/floating-ui.mjs +1 -1
  43. package/source/components/host/call-button.mjs +1 -1
  44. package/source/components/host/config-manager.mjs +6 -6
  45. package/source/components/host/host.mjs +8 -8
  46. package/source/components/host/overlay.mjs +13 -13
  47. package/source/components/host/toggle-button.mjs +1 -1
  48. package/source/components/host/util.mjs +1 -1
  49. package/source/components/host/viewer.mjs +5 -5
  50. package/source/components/layout/collapse.mjs +20 -19
  51. package/source/components/layout/details.mjs +5 -5
  52. package/source/components/layout/iframe.mjs +2 -2
  53. package/source/components/layout/panel.mjs +3 -3
  54. package/source/components/layout/popper.mjs +1 -1
  55. package/source/components/layout/slider.mjs +6 -6
  56. package/source/components/layout/split-panel.mjs +3 -3
  57. package/source/components/layout/tabs.mjs +3 -9
  58. package/source/components/layout/width-toggle.mjs +4 -4
  59. package/source/components/navigation/table-of-content.mjs +3 -3
  60. package/source/components/notify/message.mjs +0 -1
  61. package/source/components/state/log/entry.mjs +6 -6
  62. package/source/components/state/log.mjs +3 -39
  63. package/source/components/state/state.mjs +1 -1
  64. package/source/components/tree-menu/dragable-tree-menu.mjs +2 -2
  65. package/source/components/tree-menu/tree-menu.mjs +1 -1
  66. package/source/constraints/abstract.mjs +2 -2
  67. package/source/constraints/abstractoperator.mjs +1 -1
  68. package/source/constraints/andoperator.mjs +5 -5
  69. package/source/constraints/invalid.mjs +5 -5
  70. package/source/constraints/isarray.mjs +5 -5
  71. package/source/constraints/isobject.mjs +5 -5
  72. package/source/constraints/oroperator.mjs +5 -5
  73. package/source/constraints/valid.mjs +4 -4
  74. package/source/data/buildmap.mjs +2 -1
  75. package/source/data/datasource/dom.mjs +1 -1
  76. package/source/data/datasource/server/restapi/data-fetch-error.mjs +1 -1
  77. package/source/data/datasource/server/restapi/writeerror.mjs +1 -1
  78. package/source/data/datasource/server/restapi.mjs +2 -2
  79. package/source/data/datasource/server/webconnect.mjs +4 -4
  80. package/source/data/datasource/server.mjs +5 -5
  81. package/source/data/datasource/storage/localstorage.mjs +1 -1
  82. package/source/data/datasource/storage/sessionstorage.mjs +1 -1
  83. package/source/data/datasource/storage.mjs +1 -1
  84. package/source/data/datasource.mjs +4 -5
  85. package/source/data/pathfinder.mjs +10 -9
  86. package/source/data/pipe.mjs +5 -4
  87. package/source/data/transformer.mjs +23 -11
  88. package/source/dom/assembler.mjs +2 -2
  89. package/source/dom/attributes.mjs +2 -2
  90. package/source/dom/customcontrol.mjs +1 -1
  91. package/source/dom/customelement.mjs +36 -67
  92. package/source/dom/dimension.mjs +3 -3
  93. package/source/dom/focusmanager.mjs +1 -1
  94. package/source/dom/locale.mjs +1 -1
  95. package/source/dom/resource/data.mjs +1 -1
  96. package/source/dom/resource/link/stylesheet.mjs +1 -1
  97. package/source/dom/resource/link.mjs +1 -1
  98. package/source/dom/resource/script.mjs +1 -1
  99. package/source/dom/template.mjs +2 -2
  100. package/source/dom/theme.mjs +2 -2
  101. package/source/dom/updater.mjs +5 -6
  102. package/source/dom/util/extract-keys.mjs +1 -1
  103. package/source/dom/util/init-options-from-attributes.mjs +1 -1
  104. package/source/dom/util/set-option-from-attribute.mjs +1 -1
  105. package/source/dom/util.mjs +9 -9
  106. package/source/i18n/formatter.mjs +1 -1
  107. package/source/i18n/locale.mjs +2 -2
  108. package/source/i18n/provider.mjs +1 -1
  109. package/source/i18n/providers/embed.mjs +1 -3
  110. package/source/i18n/translations.mjs +2 -2
  111. package/source/logging/handler/console.mjs +1 -1
  112. package/source/logging/handler.mjs +11 -11
  113. package/source/logging/logentry.mjs +2 -2
  114. package/source/logging/logger.mjs +11 -11
  115. package/source/math/random.mjs +2 -2
  116. package/source/monster.mjs +1 -0
  117. package/source/net/webconnect/message.mjs +3 -3
  118. package/source/net/webconnect.mjs +10 -10
  119. package/source/text/bracketed-key-value-hash.mjs +2 -2
  120. package/source/text/generate-range-comparison-expression.mjs +1 -1
  121. package/source/types/base.mjs +4 -4
  122. package/source/types/basewithoptions.mjs +3 -4
  123. package/source/types/dataurl.mjs +6 -8
  124. package/source/types/global.mjs +2 -2
  125. package/source/types/internal.mjs +3 -3
  126. package/source/types/is.mjs +10 -20
  127. package/source/types/mediatype.mjs +1 -1
  128. package/source/types/node.mjs +1 -1
  129. package/source/types/nodelist.mjs +7 -7
  130. package/source/types/observablequeue.mjs +7 -7
  131. package/source/types/observer.mjs +6 -6
  132. package/source/types/proxyobserver.mjs +8 -8
  133. package/source/types/queue.mjs +3 -3
  134. package/source/types/stack.mjs +3 -3
  135. package/source/types/tokenlist.mjs +12 -12
  136. package/source/types/uniquequeue.mjs +2 -2
  137. package/source/types/version.mjs +4 -4
  138. package/source/util/clone.mjs +2 -2
  139. package/source/util/comparator.mjs +1 -2
  140. package/source/util/deadmansswitch.mjs +7 -5
  141. package/source/util/freeze.mjs +1 -1
  142. package/source/util/processing.mjs +2 -2
  143. package/source/util/runtime.mjs +1 -1
@@ -46,7 +46,7 @@ class TokenList extends Base {
46
46
  /**
47
47
  * Iterator protocol
48
48
  *
49
- * @returns {Symbol.iterator}
49
+ * @return {Symbol.iterator}
50
50
  */
51
51
  getIterator() {
52
52
  return this[Symbol.iterator]();
@@ -55,7 +55,7 @@ class TokenList extends Base {
55
55
  /**
56
56
  * Iterator
57
57
  *
58
- * @returns {{next: ((function(): ({value: *, done: boolean}))|*)}}
58
+ * @return {{next: ((function(): ({value: *, done: boolean}))|*)}}
59
59
  */
60
60
  [Symbol.iterator]() {
61
61
  // Use a new index for each iterator. This makes multiple
@@ -80,7 +80,7 @@ class TokenList extends Base {
80
80
  *
81
81
  * @externalExample ../../example/types/tokenlist-2.mjs
82
82
  * @param {array|string|iteratable} value
83
- * @returns {boolean}
83
+ * @return {boolean}
84
84
  */
85
85
  contains(value) {
86
86
  if (isString(value)) {
@@ -111,7 +111,7 @@ class TokenList extends Base {
111
111
  *
112
112
  * @externalExample ../../example/types/tokenlist-3.mjs
113
113
  * @param {array|string|iteratable} value
114
- * @returns {TokenList}
114
+ * @return {TokenList}
115
115
  * @throws {TypeError} unsupported value
116
116
  */
117
117
  add(value) {
@@ -134,7 +134,7 @@ class TokenList extends Base {
134
134
  /**
135
135
  * remove all tokens
136
136
  *
137
- * @returns {TokenList}
137
+ * @return {TokenList}
138
138
  */
139
139
  clear() {
140
140
  this.tokens.clear();
@@ -146,7 +146,7 @@ class TokenList extends Base {
146
146
  *
147
147
  * @externalExample ../../example/types/tokenlist-4.mjs
148
148
  * @param {array|string|iteratable} value
149
- * @returns {TokenList}
149
+ * @return {TokenList}
150
150
  * @throws {TypeError} unsupported value
151
151
  */
152
152
  remove(value) {
@@ -174,7 +174,7 @@ class TokenList extends Base {
174
174
  *
175
175
  * @param {string} token
176
176
  * @param {string} newToken
177
- * @returns {TokenList}
177
+ * @return {TokenList}
178
178
  */
179
179
  replace(token, newToken) {
180
180
  validateString(token);
@@ -199,7 +199,7 @@ class TokenList extends Base {
199
199
  *
200
200
  * @externalExample ../../example/types/tokenlist-5.mjs
201
201
  * @param {array|string|iteratable} value
202
- * @returns {boolean}
202
+ * @return {boolean}
203
203
  * @throws {TypeError} unsupported value
204
204
  */
205
205
  toggle(value) {
@@ -221,7 +221,7 @@ class TokenList extends Base {
221
221
  /**
222
222
  * returns an array with all tokens
223
223
  *
224
- * @returns {array}
224
+ * @return {array}
225
225
  */
226
226
  entries() {
227
227
  return Array.from(this.tokens);
@@ -231,7 +231,7 @@ class TokenList extends Base {
231
231
  * executes the provided function with each value of the set
232
232
  *
233
233
  * @param {function} callback
234
- * @returns {TokenList}
234
+ * @return {TokenList}
235
235
  */
236
236
  forEach(callback) {
237
237
  validateFunction(callback);
@@ -242,7 +242,7 @@ class TokenList extends Base {
242
242
  /**
243
243
  * returns the individual tokens separated by a blank character
244
244
  *
245
- * @returns {string}
245
+ * @return {string}
246
246
  */
247
247
  toString() {
248
248
  return this.entries().join(" ");
@@ -252,7 +252,7 @@ class TokenList extends Base {
252
252
  /**
253
253
  * @private
254
254
  * @param token
255
- * @returns {toggleValue}
255
+ * @return {toggleValue}
256
256
  * @throws {Error} must be called with TokenList.call
257
257
  */
258
258
  function toggleValue(token) {
@@ -41,7 +41,7 @@ class UniqueQueue extends Queue {
41
41
  * Add a new element to the end of the queue.
42
42
  *
43
43
  * @param {object} value
44
- * @returns {Queue}
44
+ * @return {Queue}
45
45
  * @throws {TypeError} value is not a object
46
46
  */
47
47
  add(value) {
@@ -58,7 +58,7 @@ class UniqueQueue extends Queue {
58
58
  /**
59
59
  * remove all entries
60
60
  *
61
- * @returns {Queue}
61
+ * @return {Queue}
62
62
  */
63
63
  clear() {
64
64
  super.clear();
@@ -82,7 +82,7 @@ class Version extends Base {
82
82
 
83
83
  /**
84
84
  * This method is called by the `instanceof` operator.
85
- * @returns {symbol}
85
+ * @return {symbol}
86
86
  * @since 2.1.0
87
87
  */
88
88
  static get [instanceSymbol]() {
@@ -91,7 +91,7 @@ class Version extends Base {
91
91
 
92
92
  /**
93
93
  *
94
- * @returns {string}
94
+ * @return {string}
95
95
  */
96
96
  toString() {
97
97
  return `${this.major}.${this.minor}.${this.patch}`;
@@ -102,7 +102,7 @@ class Version extends Base {
102
102
  * than the compared version
103
103
  *
104
104
  * @param {string|Version} version Version to compare
105
- * @returns {number}
105
+ * @return {number}
106
106
  */
107
107
  compareTo(version) {
108
108
  if (version instanceof Version) {
@@ -144,7 +144,7 @@ let monsterVersion;
144
144
  /**
145
145
  * Version of monster
146
146
  *
147
- * @returns {Version}
147
+ * @return {Version}
148
148
  * @license AGPLv3
149
149
  * @since 1.0.0
150
150
  * @copyright schukai GmbH
@@ -29,7 +29,7 @@ export { clone };
29
29
  * If an object has a method `getClone()`, this method is used to create the clone.
30
30
  *
31
31
  * @param {*} obj object to be cloned
32
- * @returns {*}
32
+ * @return {*}
33
33
  * @license AGPLv3
34
34
  * @since 1.0.0
35
35
  * @memberOf Monster.Util
@@ -106,7 +106,7 @@ function clone(obj) {
106
106
  /**
107
107
  *
108
108
  * @param {object} obj
109
- * @returns {object}
109
+ * @return {object}
110
110
  * @private
111
111
  */
112
112
  function cloneObject(obj) {
@@ -38,10 +38,9 @@ export { Comparator };
38
38
  * }).equal({v: 2}, {v: 2}); // ↦ true
39
39
  * ```
40
40
  *
41
- * @externalExample ../../example/util/comparator.mjs
41
+ * @example /example/comparator/simple/ Simple example
42
42
  * @license AGPLv3
43
43
  * @since 1.3.0
44
- * @memberOf Monster.Util
45
44
  */
46
45
  class Comparator extends Base {
47
46
  /**
@@ -21,13 +21,13 @@ import { validateFunction, validateInteger } from "../types/validate.mjs";
21
21
  export { DeadMansSwitch };
22
22
 
23
23
  /**
24
- * The dead man's switch allows to set a timer which can be reset again and again within a defined period of time.
24
+ * The dead man's switch allows setting a timer which can be reset again
25
+ * and again within a defined period of time.
25
26
  *
26
- * @externalExample ../../example/util/deadmansswitch.mjs
27
+ * @example /example/util/deadmansswitch/simple/ Simple example
27
28
  * @copyright schukai GmbH
28
29
  * @license AGPLv3
29
30
  * @since 1.29.0
30
- * @memberOf Monster.Util
31
31
  * @summary Class to be able to execute function chains
32
32
  */
33
33
  class DeadMansSwitch extends Base {
@@ -46,8 +46,10 @@ class DeadMansSwitch extends Base {
46
46
  }
47
47
 
48
48
  /**
49
- *
50
- * @param {Integer|undefined} [delay]
49
+ * @param delay
50
+ * @returns {DeadMansSwitch}
51
+ * @throws {Error} has already run
52
+ * @throws {Error} unsupported argument
51
53
  */
52
54
  touch(delay) {
53
55
  if (this[internalSymbol]["isAlreadyRun"] === true) {
@@ -22,7 +22,7 @@ export { deepFreeze };
22
22
  * @param {object} object object to be freeze
23
23
  * @license AGPLv3
24
24
  * @since 1.0.0
25
- * @returns {object}
25
+ * @return {object}
26
26
  * @memberOf Monster.Util
27
27
  * @copyright schukai GmbH
28
28
  * @throws {TypeError} value is not a object
@@ -34,11 +34,11 @@ export { Processing };
34
34
  *
35
35
  * The result of `run()` is a promise.
36
36
  *
37
- * @externalExample ../../example/util/processing.mjs
37
+ * @example /examples/libraries/util/processing/simple/ A simple example
38
+ *
38
39
  * @copyright schukai GmbH
39
40
  * @license AGPLv3
40
41
  * @since 1.21.0
41
- * @memberOf Monster.Util
42
42
  * @summary Class to be able to execute function chains
43
43
  */
44
44
  class Processing extends Base {
@@ -64,7 +64,7 @@ const ENV_UNKNOWN = "unknown";
64
64
  *
65
65
  * @since 3.34.0
66
66
  * @memberOf Monster.Util
67
- * @returns {string} The detected runtime environment. Possible values are:
67
+ * @return {string} The detected runtime environment. Possible values are:
68
68
  */
69
69
  function detectRuntimeEnvironment() {
70
70
  // AWS Lambda environment