@schukai/monster 3.80.2 → 3.80.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/CHANGELOG.md +15 -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 +11 -10
  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/template.mjs +4 -4
  38. package/source/components/form/toggle-switch.mjs +1 -1
  39. package/source/components/form/tree-select.mjs +1 -1
  40. package/source/components/form/util/floating-ui.mjs +1 -1
  41. package/source/components/host/call-button.mjs +1 -1
  42. package/source/components/host/config-manager.mjs +6 -6
  43. package/source/components/host/host.mjs +8 -8
  44. package/source/components/host/overlay.mjs +13 -13
  45. package/source/components/host/toggle-button.mjs +1 -1
  46. package/source/components/host/util.mjs +1 -1
  47. package/source/components/host/viewer.mjs +5 -5
  48. package/source/components/layout/collapse.mjs +20 -19
  49. package/source/components/layout/details.mjs +5 -5
  50. package/source/components/layout/iframe.mjs +2 -2
  51. package/source/components/layout/panel.mjs +3 -3
  52. package/source/components/layout/popper.mjs +1 -1
  53. package/source/components/layout/slider.mjs +6 -6
  54. package/source/components/layout/split-panel.mjs +3 -3
  55. package/source/components/layout/tabs.mjs +3 -9
  56. package/source/components/layout/width-toggle.mjs +4 -4
  57. package/source/components/navigation/table-of-content.mjs +3 -3
  58. package/source/components/notify/message.mjs +0 -1
  59. package/source/components/state/log/entry.mjs +6 -6
  60. package/source/components/state/log.mjs +3 -39
  61. package/source/components/state/state.mjs +1 -1
  62. package/source/components/tree-menu/dragable-tree-menu.mjs +2 -2
  63. package/source/components/tree-menu/tree-menu.mjs +1 -1
  64. package/source/constraints/abstract.mjs +2 -2
  65. package/source/constraints/abstractoperator.mjs +1 -1
  66. package/source/constraints/andoperator.mjs +5 -5
  67. package/source/constraints/invalid.mjs +5 -5
  68. package/source/constraints/isarray.mjs +5 -5
  69. package/source/constraints/isobject.mjs +5 -5
  70. package/source/constraints/oroperator.mjs +5 -5
  71. package/source/constraints/valid.mjs +4 -4
  72. package/source/data/buildmap.mjs +2 -1
  73. package/source/data/datasource/dom.mjs +1 -1
  74. package/source/data/datasource/server/restapi/data-fetch-error.mjs +1 -1
  75. package/source/data/datasource/server/restapi/writeerror.mjs +1 -1
  76. package/source/data/datasource/server/restapi.mjs +2 -2
  77. package/source/data/datasource/server/webconnect.mjs +4 -4
  78. package/source/data/datasource/server.mjs +5 -5
  79. package/source/data/datasource/storage/localstorage.mjs +1 -1
  80. package/source/data/datasource/storage/sessionstorage.mjs +1 -1
  81. package/source/data/datasource/storage.mjs +1 -1
  82. package/source/data/datasource.mjs +4 -5
  83. package/source/data/pathfinder.mjs +10 -9
  84. package/source/data/pipe.mjs +5 -4
  85. package/source/data/transformer.mjs +23 -11
  86. package/source/dom/assembler.mjs +2 -2
  87. package/source/dom/attributes.mjs +2 -2
  88. package/source/dom/customcontrol.mjs +1 -1
  89. package/source/dom/customelement.mjs +36 -67
  90. package/source/dom/dimension.mjs +3 -3
  91. package/source/dom/focusmanager.mjs +1 -1
  92. package/source/dom/locale.mjs +1 -1
  93. package/source/dom/resource/data.mjs +1 -1
  94. package/source/dom/resource/link/stylesheet.mjs +1 -1
  95. package/source/dom/resource/link.mjs +1 -1
  96. package/source/dom/resource/script.mjs +1 -1
  97. package/source/dom/template.mjs +2 -2
  98. package/source/dom/theme.mjs +2 -2
  99. package/source/dom/updater.mjs +5 -6
  100. package/source/dom/util/extract-keys.mjs +1 -1
  101. package/source/dom/util/init-options-from-attributes.mjs +1 -1
  102. package/source/dom/util/set-option-from-attribute.mjs +1 -1
  103. package/source/dom/util.mjs +9 -9
  104. package/source/i18n/formatter.mjs +1 -1
  105. package/source/i18n/locale.mjs +2 -2
  106. package/source/i18n/provider.mjs +1 -1
  107. package/source/i18n/providers/embed.mjs +1 -3
  108. package/source/i18n/translations.mjs +2 -2
  109. package/source/logging/handler/console.mjs +1 -1
  110. package/source/logging/handler.mjs +11 -11
  111. package/source/logging/logentry.mjs +2 -2
  112. package/source/logging/logger.mjs +11 -11
  113. package/source/math/random.mjs +2 -2
  114. package/source/monster.mjs +1 -0
  115. package/source/net/webconnect/message.mjs +3 -3
  116. package/source/net/webconnect.mjs +10 -10
  117. package/source/text/bracketed-key-value-hash.mjs +2 -2
  118. package/source/text/generate-range-comparison-expression.mjs +1 -1
  119. package/source/types/base.mjs +4 -4
  120. package/source/types/basewithoptions.mjs +3 -4
  121. package/source/types/dataurl.mjs +6 -8
  122. package/source/types/global.mjs +2 -2
  123. package/source/types/internal.mjs +3 -3
  124. package/source/types/is.mjs +10 -20
  125. package/source/types/mediatype.mjs +1 -1
  126. package/source/types/node.mjs +1 -1
  127. package/source/types/nodelist.mjs +7 -7
  128. package/source/types/observablequeue.mjs +7 -7
  129. package/source/types/observer.mjs +6 -6
  130. package/source/types/proxyobserver.mjs +8 -8
  131. package/source/types/queue.mjs +3 -3
  132. package/source/types/stack.mjs +3 -3
  133. package/source/types/tokenlist.mjs +12 -12
  134. package/source/types/uniquequeue.mjs +2 -2
  135. package/source/types/version.mjs +4 -4
  136. package/source/util/clone.mjs +2 -2
  137. package/source/util/comparator.mjs +1 -2
  138. package/source/util/deadmansswitch.mjs +7 -5
  139. package/source/util/freeze.mjs +1 -1
  140. package/source/util/processing.mjs +2 -2
  141. package/source/util/runtime.mjs +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,21 @@
2
2
 
3
3
 
4
4
 
5
+ ## [3.80.3] - 2024-10-11
6
+
7
+ ### Bug Fixes
8
+
9
+ - some minor fixes
10
+ ### Changes
11
+
12
+ - code format
13
+ ### Documentation
14
+
15
+ - fix doc tags
16
+ - clean the fire definitions
17
+
18
+
19
+
5
20
  ## [3.80.2] - 2024-10-07
6
21
 
7
22
  ### Bug Fixes
package/package.json CHANGED
@@ -1 +1 @@
1
- {"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.6.11","@popperjs/core":"^2.11.8"},"description":"Monster is a simple library for creating fast, robust and lightweight websites.","homepage":"https://monsterjs.org/","keywords":["framework","web","dom","css","sass","mobile-first","app","front-end","templates","schukai","core","shopcloud","alvine","monster","buildmap","stack","observer","observable","uuid","node","nodelist","css-in-js","logger","log","theme"],"license":"AGPL 3.0","main":"source/monster.mjs","module":"source/monster.mjs","name":"@schukai/monster","repository":{"type":"git","url":"https://gitlab.schukai.com/oss/libraries/javascript/monster.git"},"type":"module","version":"3.80.2"}
1
+ {"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.6.11","@popperjs/core":"^2.11.8"},"description":"Monster is a simple library for creating fast, robust and lightweight websites.","homepage":"https://monsterjs.org/","keywords":["framework","web","dom","css","sass","mobile-first","app","front-end","templates","schukai","core","shopcloud","alvine","monster","buildmap","stack","observer","observable","uuid","node","nodelist","css-in-js","logger","log","theme"],"license":"AGPL 3.0","main":"source/monster.mjs","module":"source/monster.mjs","name":"@schukai/monster","repository":{"type":"git","url":"https://gitlab.schukai.com/oss/libraries/javascript/monster.git"},"type":"module","version":"3.80.3"}
@@ -85,7 +85,7 @@ const resizeObserverSymbol = Symbol("resizeObserver");
85
85
  class Copy extends CustomElement {
86
86
  /**
87
87
  * This method is called by the `instanceof` operator.
88
- * @returns {symbol}
88
+ * @return {symbol}
89
89
  */
90
90
  static get [instanceSymbol]() {
91
91
  return Symbol.for("@schukai/monster/components/content/copy@@instance");
@@ -94,6 +94,9 @@ class Copy extends CustomElement {
94
94
  /**
95
95
  *
96
96
  * @return {Components.Content.Copy
97
+ * @fires monster-copy-clicked This event is fired when the copy button is clicked.
98
+ * @fires monster-copy-success This event is fired when the copy action is successful.
99
+ * @fires monster-copy-error This event is fired when the copy action fails.
97
100
  */
98
101
  [assembleMethodSymbol]() {
99
102
  super[assembleMethodSymbol]();
@@ -244,6 +247,9 @@ function attachResizeObserver() {
244
247
  this[resizeObserverSymbol].observe(this.parentElement);
245
248
  }
246
249
 
250
+ /**
251
+ * @private
252
+ */
247
253
  function disconnectResizeObserver() {
248
254
  if (this[resizeObserverSymbol] instanceof ResizeObserver) {
249
255
  this[resizeObserverSymbol].disconnect();
@@ -324,9 +330,6 @@ function updatePopper() {
324
330
  /**
325
331
  * @private
326
332
  * @return {initEventHandler}
327
- * @fires monster-copy-clicked
328
- * @fires monster-copy-success
329
- * @fires monster-copy-error
330
333
  */
331
334
  function initEventHandler() {
332
335
  const self = this;
@@ -88,7 +88,7 @@ const overlayLinkedElementSymbol = Symbol("overlayLinkedElement");
88
88
  class ChangeButton extends CustomElement {
89
89
  /**
90
90
  * This method is called by the `instanceof` operator.
91
- * @returns {symbol}
91
+ * @return {symbol}
92
92
  */
93
93
  static get [instanceSymbol]() {
94
94
  return Symbol.for(
@@ -96,7 +96,7 @@ const popperInstanceSymbol = Symbol("popperInstance");
96
96
  class ColumnBar extends CustomElement {
97
97
  /**
98
98
  * This method is called by the `instanceof` operator.
99
- * @returns {symbol}
99
+ * @return {symbol}
100
100
  */
101
101
  static get [instanceSymbol]() {
102
102
  return Symbol.for("@schukai/monster/components/column-bar");
@@ -81,7 +81,7 @@ export { DataSet };
81
81
  class DataSet extends CustomElement {
82
82
  /**
83
83
  * This method is called by the `instanceof` operator.
84
- * @returns {symbol}
84
+ * @return {symbol}
85
85
  */
86
86
  static get [instanceSymbol]() {
87
87
  return Symbol.for("@schukai/monster/components/dataset@@instance");
@@ -163,7 +163,7 @@ class DataSet extends CustomElement {
163
163
  /**
164
164
  * This method is called when the component is created.
165
165
  * @since 3.70.0
166
- * @returns {DataSet}
166
+ * @return {DataSet}
167
167
  */
168
168
  refresh() {
169
169
  // makes sure that handleDataSourceChanges is called
@@ -173,7 +173,7 @@ class DataSet extends CustomElement {
173
173
 
174
174
  /**
175
175
  *
176
- * @returns {Promise<unknown>}
176
+ * @return {Promise<unknown>}
177
177
  */
178
178
  write() {
179
179
  return new Promise((resolve, reject) => {
@@ -52,7 +52,7 @@ const dataChangeEventHandlerSymbol = Symbol("dataChangeEventHandler");
52
52
  class Dom extends Datasource {
53
53
  /**
54
54
  * This method is called by the `instanceof` operator.
55
- * @returns {symbol}
55
+ * @return {symbol}
56
56
  */
57
57
  static get [instanceSymbol]() {
58
58
  return Symbol.for("@schukai/monster/components/datasource/dom@@instance");
@@ -107,7 +107,7 @@ class Dom extends Datasource {
107
107
 
108
108
  /**
109
109
  * Reloads the data
110
- * @returns {Promise<never>|*}
110
+ * @return {Promise<never>|*}
111
111
  */
112
112
  reload() {}
113
113
 
@@ -93,7 +93,7 @@ class Rest extends Datasource {
93
93
 
94
94
  /**
95
95
  * This method is called by the `instanceof` operator.
96
- * @returns {symbol}
96
+ * @return {symbol}
97
97
  */
98
98
  static get [instanceSymbol]() {
99
99
  return Symbol.for("@schukai/monster/components/datasource/rest@@instance");
@@ -176,7 +176,7 @@ class Rest extends Datasource {
176
176
  * @param {string} page
177
177
  * @param {string} query
178
178
  * @param {string} orderBy
179
- * @returns {Monster.Components.Datatable.Datasource.Rest}
179
+ * @return {Monster.Components.Datatable.Datasource.Rest}
180
180
  */
181
181
  setParameters({ page, query, orderBy }) {
182
182
  const parameters = this.getOption("read.parameters");
@@ -204,7 +204,7 @@ class Rest extends Datasource {
204
204
 
205
205
  /**
206
206
  * @deprecated 2023-06-25
207
- * @returns {Promise<never>|*}
207
+ * @return {Promise<never>|*}
208
208
  */
209
209
  reload() {
210
210
  return this.fetch();
@@ -212,7 +212,7 @@ class Rest extends Datasource {
212
212
 
213
213
  /**
214
214
  * Fetches the data from the rest api
215
- * @returns {Promise<never>|*}
215
+ * @return {Promise<never>|*}
216
216
  */
217
217
  fetch() {
218
218
  const opt = clone(this.getOption("read"));
@@ -276,7 +276,7 @@ class Rest extends Datasource {
276
276
  * This method activates the intersection observer manually.
277
277
  * For this purpose, the option `autoInit.intersectionObserver` must be set to `false`.
278
278
  *
279
- * @returns {Monster.Components.Datatable.Datasource.Rest}
279
+ * @return {Monster.Components.Datatable.Datasource.Rest}
280
280
  */
281
281
  initIntersectionObserver() {
282
282
  initIntersectionObserver.call(this);
@@ -305,7 +305,7 @@ class Rest extends Datasource {
305
305
  }
306
306
 
307
307
  /**
308
- * @returns {Promise<never>|*}
308
+ * @return {Promise<never>|*}
309
309
  */
310
310
  read() {
311
311
  return this.fetch();
@@ -313,7 +313,7 @@ class Rest extends Datasource {
313
313
 
314
314
  /**
315
315
  * Fetches the data from the rest api
316
- * @returns {Promise<never>|*}
316
+ * @return {Promise<never>|*}
317
317
  */
318
318
  write() {
319
319
  const opt = clone(this.getOption("write"));
@@ -58,7 +58,7 @@ class Datasource extends CustomElement {
58
58
 
59
59
  /**
60
60
  * This method is called by the `instanceof` operator.
61
- * @returns {symbol}
61
+ * @return {symbol}
62
62
  */
63
63
  static get [instanceSymbol]() {
64
64
  return Symbol.for("@schukai/monster/components/datasource@@instance");
@@ -87,7 +87,7 @@ class Datasource extends CustomElement {
87
87
 
88
88
  /**
89
89
  * Get the data, without proxy
90
- * @returns {Object}
90
+ * @return {Object}
91
91
  */
92
92
  get data() {
93
93
  return this[dataSourceSymbol].get();
@@ -103,7 +103,7 @@ class Datasource extends CustomElement {
103
103
 
104
104
  /**
105
105
  * Get the datasource
106
- * @returns {Monster.Data.Datasource}
106
+ * @return {Monster.Data.Datasource}
107
107
  */
108
108
  get datasource() {
109
109
  return this[dataSourceSymbol];
@@ -82,7 +82,7 @@ class Header extends Base {
82
82
 
83
83
  /**
84
84
  * This method is called by the `instanceof` operator.
85
- * @returns {symbol}
85
+ * @return {symbol}
86
86
  */
87
87
  static get [instanceSymbol]() {
88
88
  return Symbol.for("@schukai/monster/components/datatable/header@@instance");
@@ -90,7 +90,7 @@ class Header extends Base {
90
90
 
91
91
  /**
92
92
  *
93
- * @returns {object}
93
+ * @return {object}
94
94
  */
95
95
  get internalDefaults() {
96
96
  return {
@@ -174,14 +174,14 @@ class Header extends Base {
174
174
  }
175
175
 
176
176
  /**
177
- * @returns {string}
177
+ * @return {string}
178
178
  */
179
179
  get labelKey() {
180
180
  return this.getInternal("labelKey");
181
181
  }
182
182
 
183
183
  /**
184
- * @returns {string}
184
+ * @return {string}
185
185
  */
186
186
  get html() {
187
187
  return this.getInternal("html");
@@ -192,42 +192,42 @@ class Header extends Base {
192
192
  }
193
193
 
194
194
  /**
195
- * @returns {string}
195
+ * @return {string}
196
196
  */
197
197
  get field() {
198
198
  return this.getInternal("field");
199
199
  }
200
200
 
201
201
  /**
202
- * @returns {string}
202
+ * @return {string}
203
203
  */
204
204
  get index() {
205
205
  return this.getInternal("index");
206
206
  }
207
207
 
208
208
  /**
209
- * @returns {string}
209
+ * @return {string}
210
210
  */
211
211
  get classes() {
212
212
  return this.getInternal("classes");
213
213
  }
214
214
 
215
215
  /**
216
- * @returns {string}
216
+ * @return {string}
217
217
  */
218
218
  get label() {
219
219
  return this.getInternal("label");
220
220
  }
221
221
 
222
222
  /**
223
- * @returns {string}
223
+ * @return {string}
224
224
  */
225
225
  get direction() {
226
226
  return this.getInternal("direction");
227
227
  }
228
228
 
229
229
  /**
230
- * @returns {string}
230
+ * @return {string}
231
231
  */
232
232
  get mode() {
233
233
  return this.getInternal("mode");
@@ -237,7 +237,7 @@ class Header extends Base {
237
237
  /**
238
238
  * @private
239
239
  * @param {Array<Header>} headers
240
- * @returns {string}
240
+ * @return {string}
241
241
  */
242
242
  function createOrderStatement(headers) {
243
243
  validateIterable(headers);
@@ -139,14 +139,14 @@ const columnBarElementSymbol = Symbol("columnBarElement");
139
139
  * @copyright schukai GmbH
140
140
  * @memberOf Monster.Components.Datatable
141
141
  * @summary A data table
142
- * @fire Monster.Components.Datatable.event:monster-datatable-row-copied
143
- * @fire Monster.Components.Datatable.event:monster-datatable-row-removed
144
- * @fire Monster.Components.Datatable.event:monster-datatable-row-added
142
+ * @fires monster-datatable-row-copied
143
+ * @fires monster-datatable-row-removed
144
+ * @fires monster-datatable-row-added
145
145
  */
146
146
  class DataTable extends CustomElement {
147
147
  /**
148
148
  * This method is called by the `instanceof` operator.
149
- * @returns {symbol}
149
+ * @return {symbol}
150
150
  */
151
151
  static get [instanceSymbol]() {
152
152
  return Symbol.for("@schukai/monster/components/datatable@@instance");
@@ -233,7 +233,7 @@ class DataTable extends CustomElement {
233
233
  /**
234
234
  *
235
235
  * @param {string} selector
236
- * @returns {NodeListOf<*>}
236
+ * @return {NodeListOf<*>}
237
237
  */
238
238
  getGridElements(selector) {
239
239
  return this[gridElementSymbol].querySelectorAll(selector);
@@ -358,8 +358,8 @@ class DataTable extends CustomElement {
358
358
  * Copy a row from the datatable
359
359
  * @param {number} fromIndex
360
360
  * @param {number} toIndex
361
- * @returns {Monster.Components.Datatable.DataTable}
362
- * @fire Monster.Components.Datatable.event:monster-datatable-row-copied
361
+ * @return {Monster.Components.Datatable.DataTable}
362
+ * @fires monster-datatable-row-copied
363
363
  */
364
364
  copyRow(fromIndex, toIndex) {
365
365
  const datasource = this[datasourceLinkedElementSymbol];
@@ -412,8 +412,8 @@ class DataTable extends CustomElement {
412
412
  /**
413
413
  * Remove a row from the datatable
414
414
  * @param index
415
- * @returns {Monster.Components.Datatable.DataTable}
416
- * @fire Monster.Components.Datatable.event:monster-datatable-row-removed
415
+ * @return {Monster.Components.Datatable.DataTable}
416
+ * @fires monster-datatable-row-removed
417
417
  */
418
418
  removeRow(index) {
419
419
  const datasource = this[datasourceLinkedElementSymbol];
@@ -458,8 +458,8 @@ class DataTable extends CustomElement {
458
458
  /**
459
459
  * Add a row to the datatable
460
460
  * @param {Object} data
461
- * @returns {Monster.Components.Datatable.DataTable}
462
- * @fire Monster.Components.Datatable.event:monster-datatable-row-added
461
+ * @return {Monster.Components.Datatable.DataTable}
462
+ * @fires monster-datatable-row-added
463
463
  **/
464
464
  addRow(data) {
465
465
  const datasource = this[datasourceLinkedElementSymbol];
@@ -496,7 +496,7 @@ class DataTable extends CustomElement {
496
496
 
497
497
  /**
498
498
  * @private
499
- * @returns {string}
499
+ * @return {string}
500
500
  */
501
501
  function getColumnVisibilityConfigKey() {
502
502
  return generateUniqueConfigKey("datatable", this?.id, "columns-visibility");
@@ -504,7 +504,7 @@ function getColumnVisibilityConfigKey() {
504
504
 
505
505
  /**
506
506
  * @private
507
- * @returns {string}
507
+ * @return {string}
508
508
  */
509
509
  function getFilterConfigKey() {
510
510
  return generateUniqueConfigKey("datatable", this?.id, "filter");
@@ -512,7 +512,7 @@ function getFilterConfigKey() {
512
512
 
513
513
  /**
514
514
  * @private
515
- * @returns {Promise}
515
+ * @return {Promise}
516
516
  */
517
517
  function getHostConfig(callback) {
518
518
  const host = findElementWithSelectorUpwards(this, "monster-host");
@@ -804,7 +804,7 @@ function initGridAndStructs(hostConfig, headerOrderMap) {
804
804
 
805
805
  /**
806
806
  * @private
807
- * @returns {string}
807
+ * @return {string}
808
808
  */
809
809
  export function getStoredOrderConfigKey() {
810
810
  return generateUniqueConfigKey("datatable", this?.id, "stored-order");
@@ -62,7 +62,7 @@ export { EmbeddedPagination };
62
62
  class EmbeddedPagination extends Pagination {
63
63
  /**
64
64
  * This method is called by the `instanceof` operator.
65
- * @returns {symbol}
65
+ * @return {symbol}
66
66
  */
67
67
  static get [instanceSymbol]() {
68
68
  return Symbol.for("@schukai/monster/components/embedded-pagination");
@@ -93,7 +93,7 @@ class EmbeddedPagination extends Pagination {
93
93
 
94
94
  /**
95
95
  * @private
96
- * @returns {CSSStyleSheet}
96
+ * @return {CSSStyleSheet}
97
97
  */
98
98
  static getControlCSSStyleSheet() {
99
99
  return EmbeddedPaginationStyleSheet;
@@ -149,7 +149,7 @@ class DateRange extends AbstractBase {
149
149
 
150
150
  /**
151
151
  * This method is called by the `instanceof` operator.
152
- * @returns {symbol}
152
+ * @return {symbol}
153
153
  */
154
154
  static get [instanceSymbol]() {
155
155
  return Symbol.for(
@@ -178,7 +178,7 @@ class DateRange extends AbstractBase {
178
178
  }
179
179
 
180
180
  /**
181
- * @returns {*}
181
+ * @return {*}
182
182
  */
183
183
  get value() {
184
184
  return this[inputElementSymbol].value;
@@ -190,7 +190,7 @@ class DateRange extends AbstractBase {
190
190
  *
191
191
  * The individual configuration values can be found in the table.
192
192
  *
193
- * @returns {Object}
193
+ * @return {Object}
194
194
  *
195
195
  * @property {Object} templates
196
196
  * @property {string} templates.main
@@ -627,7 +627,7 @@ function clearAndDisableFormGroups() {
627
627
 
628
628
  /**
629
629
  * @private
630
- * @returns {string}
630
+ * @return {string}
631
631
  */
632
632
  function guessRangeTypeFromCurrentValue() {
633
633
  const value = this[inputElementSymbol].value.trim();
@@ -686,7 +686,7 @@ function getRangeTypeFromForm() {
686
686
  *
687
687
  * @param {string} date
688
688
  * @param {string} unit (day, month, year, week)
689
- * @returns {number} range
689
+ * @return {number} range
690
690
  */
691
691
  function calculateDateRangeFromToday(date, unit) {
692
692
  // calculate the date of today -1
@@ -75,7 +75,7 @@ const inputElementSymbol = Symbol("inputElement");
75
75
  class Input extends AbstractBase {
76
76
  /**
77
77
  * This method is called by the `instanceof` operator.
78
- * @returns {symbol}
78
+ * @return {symbol}
79
79
  */
80
80
  static get [instanceSymbol]() {
81
81
  return Symbol.for("@schukai/monster/components/filter/input@@instance");
@@ -139,7 +139,7 @@ class Input extends AbstractBase {
139
139
  }
140
140
 
141
141
  /**
142
- * @returns {*}
142
+ * @return {*}
143
143
  */
144
144
  get value() {
145
145
  return this[inputElementSymbol].value;
@@ -121,7 +121,7 @@ const arrowElementSymbol = Symbol("arrowElement");
121
121
  class Range extends AbstractBase {
122
122
  /**
123
123
  * This method is called by the `instanceof` operator.
124
- * @returns {symbol}
124
+ * @return {symbol}
125
125
  */
126
126
  static get [instanceSymbol]() {
127
127
  return Symbol.for("@schukai/monster/components/filter/range@@instance");
@@ -148,7 +148,7 @@ class Range extends AbstractBase {
148
148
  }
149
149
 
150
150
  /**
151
- * @returns {*}
151
+ * @return {*}
152
152
  */
153
153
  get value() {
154
154
  return this[inputElementSymbol].value;
@@ -160,7 +160,7 @@ class Range extends AbstractBase {
160
160
  *
161
161
  * The individual configuration values can be found in the table.
162
162
  *
163
- * @returns {Object}
163
+ * @return {Object}
164
164
  *
165
165
  * @property {Object} templates
166
166
  * @property {string} templates.main
@@ -43,7 +43,7 @@ class Settings extends Base {
43
43
  /**
44
44
  *
45
45
  * @param value
46
- * @returns {*}
46
+ * @return {*}
47
47
  */
48
48
  get(value) {
49
49
  return this.getInternal("option." + value);
@@ -55,7 +55,7 @@ class Settings extends Base {
55
55
  * @param value
56
56
  * @param label
57
57
  * @param visible
58
- * @returns {Settings}
58
+ * @return {Settings}
59
59
  */
60
60
  set({ value, label, visible = true }) {
61
61
  let d = this.getInternal("option." + value);
@@ -81,7 +81,7 @@ class Settings extends Base {
81
81
 
82
82
  /**
83
83
  *
84
- * @returns {Array}
84
+ * @return {Array}
85
85
  */
86
86
  getOptions() {
87
87
  const option = this.getInternal("option");
@@ -101,7 +101,7 @@ class Settings extends Base {
101
101
  /**
102
102
  *
103
103
  * @param options
104
- * @returns {Settings}
104
+ * @return {Settings}
105
105
  */
106
106
  setOptions(options) {
107
107
  for (const key in options) {
@@ -112,7 +112,7 @@ class Settings extends Base {
112
112
 
113
113
  /**
114
114
  *
115
- * @returns {Array}
115
+ * @return {Array}
116
116
  */
117
117
  getSelected() {
118
118
  const option = this.getInternal("option");
@@ -16,7 +16,7 @@ import { generateUniqueConfigKey } from "../../host/util.mjs";
16
16
 
17
17
  /**
18
18
  * @private
19
- * @returns {string}
19
+ * @return {string}
20
20
  */
21
21
  export function getFilterConfigKey() {
22
22
  return generateUniqueConfigKey("datatable", this?.id, "filter");
@@ -24,7 +24,7 @@ export function getFilterConfigKey() {
24
24
 
25
25
  /**
26
26
  * @private
27
- * @returns {string}
27
+ * @return {string}
28
28
  */
29
29
  export function getStoredFilterConfigKey() {
30
30
  return generateUniqueConfigKey("datatable", this?.id, "stored-filter");
@@ -34,7 +34,7 @@ export function getStoredFilterConfigKey() {
34
34
  * @private
35
35
  * @param {String} str
36
36
  * @param {String} field
37
- * @returns {String}
37
+ * @return {String}
38
38
  * @throws {Error} if no field is defined
39
39
  */
40
40
  export function parseDateInput(str, field) {
@@ -63,7 +63,7 @@ export { FilterButton };
63
63
  class FilterButton extends ToggleButton {
64
64
  /**
65
65
  * This method is called by the `instanceof` operator.
66
- * @returns {symbol}
66
+ * @return {symbol}
67
67
  */
68
68
  static get [instanceSymbol]() {
69
69
  return Symbol.for("@schukai/monster/components/filter-button@@instance");