@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
@@ -162,7 +162,7 @@ class Filter extends CustomElement {
162
162
 
163
163
  /**
164
164
  * This method is called by the `instanceof` operator.
165
- * @returns {symbol}
165
+ * @return {symbol}
166
166
  */
167
167
  static get [instanceSymbol]() {
168
168
  return Symbol.for("@schukai/monster/components/filter@@instance");
@@ -171,7 +171,7 @@ class Filter extends CustomElement {
171
171
  /**
172
172
  *
173
173
  * @param {string} message
174
- * @returns {Monster.Components.Datatable.Filter}
174
+ * @return {Monster.Components.Datatable.Filter}
175
175
  */
176
176
  showFailureMessage(message) {
177
177
  this[searchButtonElementSymbol].setState(
@@ -186,7 +186,7 @@ class Filter extends CustomElement {
186
186
 
187
187
  /**
188
188
  *
189
- * @returns {Monster.Components.Datatable.Filter}
189
+ * @return {Monster.Components.Datatable.Filter}
190
190
  */
191
191
  resetFailureMessage() {
192
192
  this[searchButtonElementSymbol].hideMessage();
@@ -196,7 +196,7 @@ class Filter extends CustomElement {
196
196
 
197
197
  /**
198
198
  *
199
- * @returns {Monster.Components.Datatable.Filter}
199
+ * @return {Monster.Components.Datatable.Filter}
200
200
  */
201
201
  showSuccess() {
202
202
  this[searchButtonElementSymbol].setState(
@@ -458,7 +458,7 @@ function initFilter() {
458
458
  /**
459
459
  *
460
460
  * @param {string} input
461
- * @returns {*}
461
+ * @return {*}
462
462
  */
463
463
  function escapeAttributeValue(input) {
464
464
  if (input === undefined || input === null) {
@@ -476,7 +476,7 @@ function escapeAttributeValue(input) {
476
476
  /**
477
477
  *
478
478
  * @param {HTMLElement} element
479
- * @returns {boolean}
479
+ * @return {boolean}
480
480
  */
481
481
  function getVisibilityFromSlotAttribute(element) {
482
482
  return !(
@@ -832,7 +832,7 @@ function updateFilterTabs() {
832
832
  /**
833
833
  * @private
834
834
  * @param showEffect
835
- * @returns {Promise<*>}
835
+ * @return {Promise<*>}
836
836
  */
837
837
  function doSearch({ showEffect } = { showEffect: true }) {
838
838
  this.resetFailureMessage();
@@ -909,7 +909,7 @@ function doSearch({ showEffect } = { showEffect: true }) {
909
909
  /**
910
910
  * @private
911
911
  * @param queries
912
- * @returns {*|string}
912
+ * @return {*|string}
913
913
  */
914
914
  function buildSearchQuery(queries) {
915
915
  if (!isArray(queries) || queries.length === 0) {
@@ -931,7 +931,7 @@ function buildSearchQuery(queries) {
931
931
 
932
932
  /**
933
933
  * @private
934
- * @returns {Promise<unknown>}
934
+ * @return {Promise<unknown>}
935
935
  */
936
936
  function collectSearchQueries() {
937
937
  const currentHash = parseBracketedKeyValueHash(getGlobal().location.hash);
@@ -1041,7 +1041,7 @@ function collectSearchQueries() {
1041
1041
  /**
1042
1042
  * @private
1043
1043
  * @param label
1044
- * @returns {null|Array|undefined|string}
1044
+ * @return {null|Array|undefined|string}
1045
1045
  */
1046
1046
  function getControlValuesFromLabel(label) {
1047
1047
  const foundControl = label.firstElementChild;
@@ -1080,7 +1080,7 @@ function getControlValuesFromLabel(label) {
1080
1080
 
1081
1081
  /**
1082
1082
  * @private
1083
- * @returns {Promise<unknown>}
1083
+ * @return {Promise<unknown>}
1084
1084
  */
1085
1085
  function initFromConfig() {
1086
1086
  const host = findElementWithSelectorUpwards(this, "monster-host");
@@ -93,7 +93,7 @@ class Pagination extends CustomElement {
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/pagination");
@@ -207,7 +207,7 @@ class Pagination extends CustomElement {
207
207
 
208
208
  /**
209
209
  * @private
210
- * @returns {CSSStyleSheet}
210
+ * @return {CSSStyleSheet}
211
211
  */
212
212
  static getControlCSSStyleSheet() {
213
213
  return PaginationStyleSheet;
@@ -356,7 +356,7 @@ function handleDataSourceChanges() {
356
356
  *
357
357
  * @param current
358
358
  * @param max
359
- * @returns {object}
359
+ * @return {object}
360
360
  */
361
361
  function buildPagination(current, max) {
362
362
  let prev = current === 1 ? null : current - 1;
@@ -61,7 +61,7 @@ const badgeElementSymbol = Symbol("badgeElement");
61
61
  class SaveButton extends CustomElement {
62
62
  /**
63
63
  * This method is called by the `instanceof` operator.
64
- * @returns {symbol}
64
+ * @return {symbol}
65
65
  */
66
66
  static get [instanceSymbol]() {
67
67
  return Symbol.for(
@@ -86,7 +86,7 @@ class DatasourceStatus extends CustomElement {
86
86
 
87
87
  /**
88
88
  * This method is called by the `instanceof` operator.
89
- * @returns {symbol}
89
+ * @return {symbol}
90
90
  */
91
91
  static get [instanceSymbol]() {
92
92
  return Symbol.for(
@@ -88,7 +88,7 @@ const containerElementSymbol = Symbol("containerElement");
88
88
  class ActionButton extends PopperButton {
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(
@@ -130,7 +130,7 @@ class ActionButton extends PopperButton {
130
130
  /**
131
131
  *
132
132
  * @return {Monster.Components.Form.Popper}
133
- * @event monster-action-button-show-dialog
133
+ * @fires monster-action-button-show-dialog
134
134
  */
135
135
  showDialog() {
136
136
  if (this.getOption("buttons").length === 0) {
@@ -101,7 +101,7 @@ const containerElementSymbol = Symbol("containerElement");
101
101
  class ApiButton extends ActionButton {
102
102
  /**
103
103
  * This method is called by the `instanceof` operator.
104
- * @returns {symbol}
104
+ * @return {symbol}
105
105
  */
106
106
  static get [instanceSymbol]() {
107
107
  return Symbol.for("@schukai/monster/components/form/api-button@@instance");
@@ -155,7 +155,7 @@ const ATTRIBUTE_POPPER_POSITION = "data-monster-popper-position";
155
155
  * @copyright schukai GmbH
156
156
  * @memberOf Monster.Components.Form
157
157
  * @summary A configurable tab control
158
- * @fires Monster.Components.event:monster-fetched
158
+ * @fires monster-fetched
159
159
  */
160
160
 
161
161
  /**
@@ -173,7 +173,7 @@ const ATTRIBUTE_POPPER_POSITION = "data-monster-popper-position";
173
173
  class ButtonBar extends CustomElement {
174
174
  /**
175
175
  * This method is called by the `instanceof` operator.
176
- * @returns {symbol}
176
+ * @return {symbol}
177
177
  */
178
178
  static get [instanceSymbol]() {
179
179
  return Symbol.for("@schukai/monster/components/form/button-bar@@instance");
@@ -324,7 +324,7 @@ class ButtonBar extends CustomElement {
324
324
  /**
325
325
  * @private
326
326
  * @param obj
327
- * @returns {*}
327
+ * @return {*}
328
328
  */
329
329
  function initDefaultsFromAttributes(obj) {
330
330
  if (this.hasAttribute(ATTRIBUTE_POPPER_POSITION)) {
@@ -104,7 +104,7 @@ const cancelButtonElementSymbol = Symbol("cancelButtonElement");
104
104
  class ConfirmButton extends PopperButton {
105
105
  /**
106
106
  * This method is called by the `instanceof` operator.
107
- * @returns {symbol}
107
+ * @return {symbol}
108
108
  * @since 2.1.0
109
109
  */
110
110
  static get [instanceSymbol]() {
@@ -192,7 +192,7 @@ class ConfirmButton extends PopperButton {
192
192
 
193
193
  /**
194
194
  *
195
- * @returns {Monster.Components.Form.PopperButton}
195
+ * @return {Monster.Components.Form.PopperButton}
196
196
  */
197
197
  showDialog() {
198
198
  const confirmButtonClass = this.getOption("classes.confirmButton");
@@ -219,7 +219,7 @@ class ConfirmButton extends PopperButton {
219
219
  *
220
220
  * @param {string} state
221
221
  * @param {number} timeout
222
- * @returns {Monster.Components.Form.ConfirmButton}
222
+ * @return {Monster.Components.Form.ConfirmButton}
223
223
  */
224
224
  setConfirmButtonState(state, timeout) {
225
225
  this[confirmButtonElementSymbol].setState(state, timeout);
@@ -231,7 +231,7 @@ class ConfirmButton extends PopperButton {
231
231
  *
232
232
  * @param {string} message
233
233
  * @param {number} timeout
234
- * @returns {Monster.Components.Form.ConfirmButton}
234
+ * @return {Monster.Components.Form.ConfirmButton}
235
235
  */
236
236
  showConfirmButtonMessage(message, timeout) {
237
237
  this[confirmButtonElementSymbol].setMessage(message);
@@ -80,7 +80,7 @@ class ContextError extends Popper {
80
80
  /**
81
81
  * This method is called by the `instanceof` operator.
82
82
  *
83
- * @returns {symbol}
83
+ * @return {symbol}
84
84
  */
85
85
  static get [instanceSymbol]() {
86
86
  return Symbol.for(
@@ -157,7 +157,7 @@ class ContextError extends Popper {
157
157
  *
158
158
  * @param message
159
159
  * @param show {boolean|number|string} - If true the dialog is shown immediately. If false the dialog is hidden by default. If a number is specified the dialog is shown for the specified time in milliseconds.
160
- * @returns {ContextError}
160
+ * @return {ContextError}
161
161
  */
162
162
  setErrorMessage(message, show = false) {
163
163
  message = message.trim();
@@ -191,7 +191,7 @@ class ContextError extends Popper {
191
191
 
192
192
  /**
193
193
  * Reset the error message.
194
- * @returns {ContextError}
194
+ * @return {ContextError}
195
195
  */
196
196
  resetErrorMessage() {
197
197
  this.hideDialog();
@@ -202,7 +202,7 @@ class ContextError extends Popper {
202
202
 
203
203
  /**
204
204
  * Returns true if an error message is set.
205
- * @returns {boolean}
205
+ * @return {boolean}
206
206
  */
207
207
  hasErrorMessage() {
208
208
  const c = this.getOption("content");
@@ -34,7 +34,7 @@ export { ContextHelp };
34
34
  class ContextHelp extends Popper {
35
35
  /**
36
36
  * This method is called by the `instanceof` operator.
37
- * @returns {symbol}
37
+ * @return {symbol}
38
38
  */
39
39
  static get [instanceSymbol]() {
40
40
  return Symbol.for(
@@ -81,7 +81,7 @@ const extendedSwitchElementSymbol = Symbol("extendedSwitchElement");
81
81
  class FieldSet extends CustomControl {
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/form/fieldset@@instance");
@@ -275,7 +275,7 @@ function updateColumns() {
275
275
  /**
276
276
  * @private
277
277
  * @return {initEventHandler}
278
- * @fires event:monster-field-set-clicked
278
+ * @fires monster-field-set-clicked
279
279
  */
280
280
  function initEventHandler() {
281
281
  this[toggleSwitchElementSymbol].setOption(
@@ -130,7 +130,7 @@ class Form extends DataSet {
130
130
  /**
131
131
  * This method is called when the component is created.
132
132
  * @since 3.70.0
133
- * @returns {DataSet}
133
+ * @return {DataSet}
134
134
  */
135
135
  refresh() {
136
136
  this.write();
@@ -142,7 +142,7 @@ class Form extends DataSet {
142
142
  * Run reportValidation on all child html form controls.
143
143
  *
144
144
  * @since 2.10.0
145
- * @returns {boolean}
145
+ * @return {boolean}
146
146
  */
147
147
  reportValidity() {
148
148
  let valid = true;
@@ -166,7 +166,7 @@ function initDataSourceHandler() {}
166
166
 
167
167
  /**
168
168
  * @private
169
- * @returns {initEventHandler}
169
+ * @return {initEventHandler}
170
170
  */
171
171
  function initEventHandler() {
172
172
  this[debounceBindSymbol] = {};
@@ -87,7 +87,7 @@ const buttonElementSymbol = Symbol("buttonElement");
87
87
  class MessageStateButton extends Popper {
88
88
  /**
89
89
  * This method is called by the `instanceof` operator.
90
- * @returns {symbol}
90
+ * @return {symbol}
91
91
  */
92
92
  static get [instanceSymbol]() {
93
93
  return Symbol.for(
@@ -193,7 +193,7 @@ class MessageStateButton extends Popper {
193
193
  * @param {string|HTMLElement}message
194
194
  * @param {string} title
195
195
  * @param {string} icon
196
- * @returns {Monster.Components.Form.MessageStateButton}
196
+ * @return {Monster.Components.Form.MessageStateButton}
197
197
  */
198
198
  setMessage(message, title, icon) {
199
199
  if (isString(message)) {
@@ -243,7 +243,7 @@ class MessageStateButton extends Popper {
243
243
 
244
244
  /**
245
245
  * @param {number} timeout
246
- * @returns {Monster.Components.Form.MessageStateButton}
246
+ * @return {Monster.Components.Form.MessageStateButton}
247
247
  */
248
248
  showMessage(timeout) {
249
249
  super.showDialog();
@@ -259,7 +259,7 @@ class MessageStateButton extends Popper {
259
259
 
260
260
  /**
261
261
  *
262
- * @returns {Monster.Components.Form.MessageStateButton}
262
+ * @return {Monster.Components.Form.MessageStateButton}
263
263
  */
264
264
  hideMessage() {
265
265
  super.hideDialog();
@@ -268,7 +268,7 @@ class MessageStateButton extends Popper {
268
268
 
269
269
  /**
270
270
  *
271
- * @returns {Monster.Components.Form.MessageStateButton}
271
+ * @return {Monster.Components.Form.MessageStateButton}
272
272
  */
273
273
  toggleMessage() {
274
274
  super.toggleDialog();
@@ -277,7 +277,7 @@ class MessageStateButton extends Popper {
277
277
 
278
278
  /**
279
279
  *
280
- * @returns {Object}
280
+ * @return {Object}
281
281
  */
282
282
  getMessage() {
283
283
  return this.getOption("message");
@@ -144,7 +144,7 @@ const arrowElementSymbol = Symbol("arrowElement");
144
144
  class PopperButton extends Popper {
145
145
  /**
146
146
  * This method is called by the `instanceof` operator.
147
- * @returns {symbol}
147
+ * @return {symbol}
148
148
  * @since 2.1.0
149
149
  */
150
150
  static get [instanceSymbol]() {
@@ -91,23 +91,6 @@ const intersectionObserverWasInitialized = Symbol("wasInitialized");
91
91
  * </monster-reload>
92
92
  * ```
93
93
  *
94
- * @startuml reload.png
95
- * skinparam monochrome true
96
- * skinparam shadowing false
97
- * HTMLElement <|-- CustomElement
98
- * CustomElement <|-- CustomControl
99
- * CustomControl <|-- Reload
100
- * @enduml
101
- *
102
- * @copyright schukai GmbH
103
- * @memberOf Monster.Components.Form
104
- * @summary A reload control
105
- * @fires Monster.Components.event:m
106
- */
107
-
108
- /**
109
- * A reload control.
110
- *
111
94
  * @fragments /fragments/components/form/reload/
112
95
  *
113
96
  * @example /examples/components/form/reload-simple
@@ -115,12 +98,12 @@ const intersectionObserverWasInitialized = Symbol("wasInitialized");
115
98
  * @since 1.13.0
116
99
  * @copyright schukai GmbH
117
100
  * @summary A beautiful reload control
118
- * @fires onster-fetched
101
+ * @fires monster-fetched
119
102
  */
120
103
  class Reload extends CustomElement {
121
104
  /**
122
105
  * This method is called by the `instanceof` operator.
123
- * @returns {symbol}
106
+ * @return {symbol}
124
107
  * @since 2.1.0
125
108
  */
126
109
  static get [instanceSymbol]() {
@@ -208,7 +191,7 @@ class Reload extends CustomElement {
208
191
  * @throws {Error} request failed
209
192
  * @throws {Error} not found
210
193
  * @throws {Error} undefined status or type
211
- * @fires Monster.Components.event:monster-fetched
194
+ * @fires monster-fetched
212
195
  * @return {Monster.Components.Form.Form}
213
196
  */
214
197
  [assembleMethodSymbol]() {
@@ -277,7 +260,7 @@ function initOptionsFromArguments() {
277
260
  * @throws {Error} request failed
278
261
  * @throws {Error} not found
279
262
  * @throws {Error} undefined status or type
280
- * @fires Monster.Components.event:monster-fetched
263
+ * @fires monster-fetched
281
264
  */
282
265
  function initIntersectionObserver() {
283
266
  if (this[intersectionObserverWasInitialized] === true) {
@@ -326,7 +309,7 @@ function initIntersectionObserver() {
326
309
  * @throws {Error} undefined status or type
327
310
  * @throws {TypeError} value is not an instance of
328
311
  * @throws {TypeError} value is not a string
329
- * @fires Monster.Components.event:monster-fetched
312
+ * @fires monster-fetched
330
313
  * @return {Promise}
331
314
  */
332
315
  function loadContent() {
@@ -274,13 +274,12 @@ const FILTER_POSITION_INLINE = "inline";
274
274
  *
275
275
  * @fragments /fragments/components/form/select/
276
276
  *
277
- * @example /examples/components/form/select-simple
278
- * @example /examples/components/form/select-with-options
277
+ * @example /examples/components/form/select-with-options Select with options
278
+ * @example /examples/components/form/select-multiple Multiple selection
279
+ * @example /examples/components/form/select-lazy Lazy load
279
280
  *
280
281
  * @copyright schukai GmbH
281
282
  * @summary A beautiful select control that can make your life easier and also looks good.
282
- * @fires monster-options-set
283
- * @fires monster-selected
284
283
  * @fires monster-change
285
284
  * @fires monster-changed
286
285
  */
@@ -295,7 +294,7 @@ class Select extends CustomControl {
295
294
 
296
295
  /**
297
296
  * This method is called by the `instanceof` operator.
298
- * @returns {Symbol}
297
+ * @return {Symbol}
299
298
  */
300
299
  static get [instanceSymbol]() {
301
300
  return Symbol.for("@schukai/monster/components/form/select@@instance");
@@ -311,7 +310,7 @@ class Select extends CustomControl {
311
310
  * // ↦ ['1','2']
312
311
  * ```
313
312
  *
314
- * @returns {string}
313
+ * @return {string}
315
314
  */
316
315
  get value() {
317
316
  return convertSelectionToValue.call(this, this.getOption("selection"));
@@ -335,6 +334,7 @@ class Select extends CustomControl {
335
334
  *
336
335
  * @property {string|array} value
337
336
  * @throws {Error} unsupported type
337
+ * @fires monster-selected this event is fired when the selection is set
338
338
  */
339
339
  set value(value) {
340
340
  const result = convertValueToSelection.call(this, value);
@@ -555,7 +555,7 @@ class Select extends CustomControl {
555
555
 
556
556
  /**
557
557
  *
558
- * @returns {*}
558
+ * @return {*}
559
559
  * @throws {Error} storeFetchedData is not enabled
560
560
  * @since 3.66.0
561
561
  */
@@ -745,6 +745,7 @@ class Select extends CustomControl {
745
745
  * @return {Select}
746
746
  * @throws {Error} map is not iterable
747
747
  * @throws {Error} missing label configuration
748
+ * @fires monster-options-set this event is fired when the options are set
748
749
  */
749
750
  importOptions(data) {
750
751
  const mappingOptions = this.getOption("mapping", {});
@@ -1168,7 +1169,7 @@ function getDefaultTranslation() {
1168
1169
 
1169
1170
  /**
1170
1171
  * @private
1171
- * @returns {string|*}
1172
+ * @return {string|*}
1172
1173
  */
1173
1174
  function setSummaryAndControlText() {
1174
1175
  const translations = getDefaultTranslation.call(this);
@@ -1493,7 +1494,7 @@ function handleFilterKeyboardEvents(event) {
1493
1494
  * @name handleFilterKeyEvents
1494
1495
  *
1495
1496
  * @private
1496
- * @returns {void} This method does not return anything.
1497
+ * @return {void} This method does not return anything.
1497
1498
  */
1498
1499
  function handleFilterKeyEvents() {
1499
1500
  if (this[keyFilterEventSymbol] instanceof DeadMansSwitch) {
@@ -1629,7 +1630,7 @@ function handleOptionKeyboardEvents(event) {
1629
1630
 
1630
1631
  /**
1631
1632
  * @private
1632
- * @returns {string}
1633
+ * @return {string}
1633
1634
  */
1634
1635
  function getFilterMode() {
1635
1636
  switch (this.getOption("filter.mode")) {
@@ -33,7 +33,7 @@ export { ShadowReload };
33
33
  class ShadowReload extends Reload {
34
34
  /**
35
35
  * This method is called by the `instanceof` operator.
36
- * @returns {symbol}
36
+ * @return {symbol}
37
37
  */
38
38
  static get [instanceSymbol]() {
39
39
  return Symbol.for("@schukai/monster/components/form/shadow-reload");
@@ -36,7 +36,7 @@ export { StateButton };
36
36
  class StateButton extends Button {
37
37
  /**
38
38
  * This method is called by the `instanceof` operator.
39
- * @returns {symbol}
39
+ * @return {symbol}
40
40
  * @since 2.1.0
41
41
  */
42
42
  static get [instanceSymbol]() {
@@ -52,7 +52,7 @@ const intersectionObserverWasInitialized = Symbol("wasInitialized");
52
52
  class Template extends CustomElement {
53
53
  /**
54
54
  * This method is called by the `instanceof` operator.
55
- * @returns {symbol}
55
+ * @return {symbol}
56
56
  * @since 2.1.0
57
57
  */
58
58
  static get [instanceSymbol]() {
@@ -138,7 +138,7 @@ class Template extends CustomElement {
138
138
  * @throws {Error} request failed
139
139
  * @throws {Error} not found
140
140
  * @throws {Error} undefined status or type
141
- * @fires Monster.Components.event:monster-fetched
141
+ * @fires monster-fetched
142
142
  * @return {Monster.Components.Form.Form}
143
143
  */
144
144
  [assembleMethodSymbol]() {
@@ -224,7 +224,7 @@ function initOptionsFromArguments() {
224
224
  * @throws {Error} request failed
225
225
  * @throws {Error} not found
226
226
  * @throws {Error} undefined status or type
227
- * @fires Monster.Components.event:monster-fetched
227
+ * @fires monster-fetched
228
228
  */
229
229
  function initIntersectionObserver() {
230
230
  if (this[intersectionObserverWasInitialized] === true) {
@@ -270,7 +270,7 @@ function initIntersectionObserver() {
270
270
  * @throws {Error} undefined status or type
271
271
  * @throws {TypeError} value is not an instance of
272
272
  * @throws {TypeError} value is not a string
273
- * @fires Monster.Components.event:monster-fetched
273
+ * @fires monster-fetched
274
274
  */
275
275
  function loadContent() {
276
276
  if (!this.shadowRoot) {
@@ -295,7 +295,7 @@ class ToggleSwitch extends CustomControl {
295
295
 
296
296
  /**
297
297
  * This method is called by the `instanceof` operator.
298
- * @returns {symbol}
298
+ * @return {symbol}
299
299
  */
300
300
  static get [instanceSymbol]() {
301
301
  return Symbol.for(
@@ -70,7 +70,7 @@ const keyEventHandler = Symbol("keyEventHandler");
70
70
  class TreeSelect extends Select {
71
71
  /**
72
72
  * This method is called by the `instanceof` operator.
73
- * @returns {symbol}
73
+ * @return {symbol}
74
74
  * @since 2.1.0
75
75
  */
76
76
  static get [instanceSymbol]() {
@@ -34,7 +34,7 @@ export { positionPopper };
34
34
  * @param controlElement
35
35
  * @param popperElement
36
36
  * @param options
37
- * @returns {Promise|*}
37
+ * @return {Promise|*}
38
38
  */
39
39
  function positionPopper(controlElement, popperElement, options) {
40
40
  const body = getDocument().body;
@@ -88,7 +88,7 @@ const ATTRIBUTE_CALL = `${ATTRIBUTE_PREFIX}call`;
88
88
  class CallButton 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("@schukai/component-host/call-button@@instance");