@schukai/monster 3.52.1 → 3.54.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +1 -1
  3. package/package.json +1 -1
  4. package/source/components/datatable/columnbar.mjs +2 -3
  5. package/source/components/datatable/dataset.mjs +3 -5
  6. package/source/components/datatable/datasource/dom.mjs +5 -8
  7. package/source/components/datatable/datasource/rest.mjs +12 -18
  8. package/source/components/datatable/datasource.mjs +1 -1
  9. package/source/components/datatable/datatable/header.mjs +3 -5
  10. package/source/components/datatable/datatable.mjs +13 -18
  11. package/source/components/datatable/filter/date-range.mjs +15 -27
  12. package/source/components/datatable/filter/input.mjs +3 -5
  13. package/source/components/datatable/filter/range.mjs +10 -17
  14. package/source/components/datatable/filter/settings.mjs +6 -7
  15. package/source/components/datatable/filter.mjs +14 -21
  16. package/source/components/datatable/pagination.mjs +5 -7
  17. package/source/components/datatable/util.mjs +1 -2
  18. package/source/components/form/action-button.mjs +2 -3
  19. package/source/components/form/api-button.mjs +5 -9
  20. package/source/components/form/button-bar.mjs +15 -27
  21. package/source/components/form/button.mjs +2 -2
  22. package/source/components/form/confirm-button.mjs +9 -12
  23. package/source/components/form/form.mjs +8 -14
  24. package/source/components/form/message-state-button.mjs +4 -5
  25. package/source/components/form/popper-button.mjs +7 -11
  26. package/source/components/form/popper.mjs +7 -11
  27. package/source/components/form/reload.mjs +5 -7
  28. package/source/components/form/select.mjs +50 -76
  29. package/source/components/form/tabs.mjs +41 -45
  30. package/source/components/form/template.mjs +6 -9
  31. package/source/components/form/tree-select.mjs +7 -10
  32. package/source/components/form/util/popper.mjs +1 -2
  33. package/source/components/host/call-button.mjs +4 -6
  34. package/source/components/host/collapse.mjs +14 -22
  35. package/source/components/host/config-manager.mjs +7 -9
  36. package/source/components/host/details.mjs +5 -8
  37. package/source/components/host/host.mjs +7 -12
  38. package/source/components/host/overlay.mjs +4 -6
  39. package/source/components/host/viewer.mjs +2 -3
  40. package/source/components/notify/message.mjs +10 -13
  41. package/source/components/notify/notify.mjs +4 -6
  42. package/source/components/state/log/entry.mjs +1 -1
  43. package/source/components/state/log.mjs +6 -11
  44. package/source/components/style/icons.pcss +110 -0
  45. package/source/components/style/mixin/icon.pcss +43 -0
  46. package/source/components/stylesheet/icons.mjs +27 -0
  47. package/source/components/tree-menu/tree-menu.mjs +9 -14
  48. package/source/data/transformer.mjs +9 -4
  49. package/source/dom/customelement.mjs +1 -1
  50. package/source/dom/util.mjs +4 -5
  51. package/source/monster.mjs +0 -1
  52. package/source/types/observer.mjs +4 -4
  53. package/source/types/version.mjs +1 -1
  54. package/source/util/clone.mjs +1 -1
  55. package/test/cases/monster.mjs +1 -1
  56. package/test/web/test.html +1 -1
@@ -13,7 +13,7 @@ export { Settings };
13
13
  */
14
14
  class Settings extends Base {
15
15
  constructor() {
16
- super();;
16
+ super();
17
17
 
18
18
  /**
19
19
  * - attachInternalObserver
@@ -31,7 +31,7 @@ class Settings extends Base {
31
31
  * @param value
32
32
  * @returns {*}
33
33
  */
34
- get(value) {;
34
+ get(value) {
35
35
  return this.getInternal("option." + value);
36
36
  }
37
37
 
@@ -43,8 +43,7 @@ class Settings extends Base {
43
43
  * @param visible
44
44
  * @returns {Settings}
45
45
  */
46
- set({ value, label, visible = true }) {;
47
-
46
+ set({ value, label, visible = true }) {
48
47
  let d = this.getInternal("option." + value);
49
48
  if (d) {
50
49
  if (d.label !== label && label) {
@@ -70,7 +69,7 @@ class Settings extends Base {
70
69
  *
71
70
  * @returns {Array}
72
71
  */
73
- getOptions() {;
72
+ getOptions() {
74
73
  const option = this.getInternal("option");
75
74
 
76
75
  const options = [];
@@ -90,7 +89,7 @@ class Settings extends Base {
90
89
  * @param options
91
90
  * @returns {Settings}
92
91
  */
93
- setOptions(options) {;
92
+ setOptions(options) {
94
93
  for (const key in options) {
95
94
  this.set(options[key]);
96
95
  }
@@ -101,7 +100,7 @@ class Settings extends Base {
101
100
  *
102
101
  * @returns {Array}
103
102
  */
104
- getSelected() {;
103
+ getSelected() {
105
104
  const option = this.getInternal("option");
106
105
 
107
106
  const selectedValues = [];
@@ -114,7 +114,7 @@ class Filter extends CustomElement {
114
114
  *
115
115
  */
116
116
  constructor() {
117
- super();;
117
+ super();
118
118
  this[settingsSymbol] = new Settings();
119
119
  }
120
120
 
@@ -131,7 +131,7 @@ class Filter extends CustomElement {
131
131
  * @param {string} message
132
132
  * @returns {Monster.Components.Datatable.Filter}
133
133
  */
134
- showFailureMessage(message) {;
134
+ showFailureMessage(message) {
135
135
  this[searchButtonElementSymbol].setState("failed", 10000);
136
136
  this[searchButtonElementSymbol]
137
137
  .setMessage(String(message))
@@ -143,7 +143,7 @@ class Filter extends CustomElement {
143
143
  *
144
144
  * @returns {Monster.Components.Datatable.Filter}
145
145
  */
146
- resetFailureMessage() {;
146
+ resetFailureMessage() {
147
147
  this[searchButtonElementSymbol].hideMessage();
148
148
  this[searchButtonElementSymbol].removeState();
149
149
  return this;
@@ -153,7 +153,7 @@ class Filter extends CustomElement {
153
153
  *
154
154
  * @returns {Monster.Components.Datatable.Filter}
155
155
  */
156
- showSuccess() {;
156
+ showSuccess() {
157
157
  this[searchButtonElementSymbol].setState("successful", 5000);
158
158
  return this;
159
159
  }
@@ -216,7 +216,7 @@ class Filter extends CustomElement {
216
216
  /**
217
217
  * @return {FilterButton}
218
218
  */
219
- [assembleMethodSymbol]() {;
219
+ [assembleMethodSymbol]() {
220
220
  super[assembleMethodSymbol]();
221
221
 
222
222
  initControlReferences.call(this);
@@ -235,7 +235,7 @@ class Filter extends CustomElement {
235
235
  /**
236
236
  *
237
237
  */
238
- connectedCallback() {;
238
+ connectedCallback() {
239
239
  super.connectedCallback();
240
240
 
241
241
  getWindow().addEventListener(
@@ -247,7 +247,7 @@ class Filter extends CustomElement {
247
247
  /**
248
248
  *
249
249
  */
250
- disconnectedCallback() {;
250
+ disconnectedCallback() {
251
251
  super.disconnectedCallback();
252
252
 
253
253
  getWindow().removeEventListener(
@@ -268,8 +268,7 @@ class Filter extends CustomElement {
268
268
  * @private
269
269
  * @return {FilterButton}
270
270
  */
271
- function initControlReferences() {;
272
-
271
+ function initControlReferences() {
273
272
  if (!this.shadowRoot) {
274
273
  throw new Error("no shadow-root is defined");
275
274
  }
@@ -293,8 +292,7 @@ function initControlReferences() {;
293
292
  * @private
294
293
  * @throws {Error} no filter label is defined
295
294
  */
296
- function initFilter() {;
297
-
295
+ function initFilter() {
298
296
  const storedConfig = this[settingsSymbol];
299
297
  this[settingsSymbol] = new Settings();
300
298
 
@@ -499,8 +497,7 @@ function initEventHandler() {
499
497
  /**
500
498
  * @private
501
499
  */
502
- function doSearch({ showEffect } = { showEffect: true }) {;
503
-
500
+ function doSearch({ showEffect } = { showEffect: true }) {
504
501
  this.resetFailureMessage();
505
502
 
506
503
  if (showEffect) {
@@ -555,8 +552,7 @@ function doSearch({ showEffect } = { showEffect: true }) {;
555
552
  * @param queries
556
553
  * @returns {string|undefind}
557
554
  */
558
- function buildSearchQuery(queries) {;
559
-
555
+ function buildSearchQuery(queries) {
560
556
  if (!isArray(queries) || queries.length === 0) {
561
557
  return this.getOption("defaultQuery");
562
558
  }
@@ -578,8 +574,7 @@ function buildSearchQuery(queries) {;
578
574
  * @private
579
575
  * @returns {Promise<unknown>}
580
576
  */
581
- function collectSearchQueries() {;
582
-
577
+ function collectSearchQueries() {
583
578
  const currentHash = parseBracketedKeyValueHash(getGlobal().location.hash);
584
579
 
585
580
  return new Promise((resolve, reject) => {
@@ -840,8 +835,7 @@ function getFilterConfigKey() {
840
835
  * @private
841
836
  * @returns {Promise<unknown>}
842
837
  */
843
- function initFromConfig() {;
844
-
838
+ function initFromConfig() {
845
839
  const document = getDocument();
846
840
  const host = document.querySelector("monster-host");
847
841
 
@@ -875,8 +869,7 @@ function initFromConfig() {;
875
869
  /**
876
870
  * @private
877
871
  */
878
- function updateConfig() {;
879
-
872
+ function updateConfig() {
880
873
  const document = getDocument();
881
874
  const host = document.querySelector("monster-host");
882
875
  if (!(host && this.id)) {
@@ -156,7 +156,7 @@ class Pagination extends CustomElement {
156
156
  *
157
157
  * @return {Monster.Components.Form.Form}
158
158
  */
159
- [assembleMethodSymbol]() {;
159
+ [assembleMethodSymbol]() {
160
160
  super[assembleMethodSymbol]();
161
161
 
162
162
  initControlReferences.call(this);
@@ -196,8 +196,7 @@ class Pagination extends CustomElement {
196
196
  * @return {Select}
197
197
  * @throws {Error} no shadow-root is defined
198
198
  */
199
- function initControlReferences() {;
200
-
199
+ function initControlReferences() {
201
200
  if (!this.shadowRoot) {
202
201
  throw new Error("no shadow-root is defined");
203
202
  }
@@ -279,7 +278,7 @@ function initEventHandler() {
279
278
  * @throws {TypeError} incorrect arguments passed for the datasource
280
279
  * @throws {Error} the datasource could not be initialized
281
280
  */
282
- function initOptionsFromArguments() {;
281
+ function initOptionsFromArguments() {
283
282
  const options = {};
284
283
  const selector = this.getAttribute(ATTRIBUTE_DATASOURCE_SELECTOR);
285
284
  if (selector) {
@@ -292,7 +291,7 @@ function initOptionsFromArguments() {;
292
291
  /**
293
292
  * @private
294
293
  */
295
- function handleDataSourceChanges() {;
294
+ function handleDataSourceChanges() {
296
295
  let pagination;
297
296
 
298
297
  if (!this[datasourceLinkedElementSymbol]) {
@@ -328,8 +327,7 @@ function handleDataSourceChanges() {;
328
327
  * @param max
329
328
  * @returns {object}
330
329
  */
331
- function buildPagination(current, max) {;
332
-
330
+ function buildPagination(current, max) {
333
331
  let prev = current === 1 ? null : current - 1;
334
332
  let next = current === max ? null : current + 1;
335
333
  const itemList = [1];
@@ -18,8 +18,7 @@ const datasourceLinkedElementSymbol = Symbol("datasourceLinkedElement");
18
18
  /**
19
19
  * @private
20
20
  */
21
- function handleDataSourceChanges() {;
22
-
21
+ function handleDataSourceChanges() {
23
22
  if (!this[datasourceLinkedElementSymbol]) {
24
23
  return;
25
24
  }
@@ -124,7 +124,7 @@ class ActionButton extends PopperButton {
124
124
  * @return {Monster.Components.Form.Popper}
125
125
  */
126
126
  [assembleMethodSymbol]() {
127
- super[assembleMethodSymbol]();;
127
+ super[assembleMethodSymbol]();
128
128
  initControlReferences.call(this);
129
129
  initEventHandler.call(this);
130
130
 
@@ -152,8 +152,7 @@ class ActionButton extends PopperButton {
152
152
  * @private
153
153
  * @return {Monster.Components.Form.Popper}
154
154
  */
155
- function initEventHandler() {;
156
-
155
+ function initEventHandler() {
157
156
  this[containerElementSymbol].addEventListener("click", (event) => {
158
157
  const element = findTargetElementFromEvent(event, ATTRIBUTE_ROLE, "button");
159
158
  const attr = element.getAttribute("data-monster-insert-reference");
@@ -158,8 +158,7 @@ class ApiButton extends ActionButton {
158
158
  *
159
159
  * @return {Promise}
160
160
  */
161
- fetch(url) {;
162
-
161
+ fetch(url) {
163
162
  if (url instanceof URL) {
164
163
  url = url.toString();
165
164
  }
@@ -188,8 +187,7 @@ class ApiButton extends ActionButton {
188
187
  * @throws {Error} map is not iterable
189
188
  * @throws {Error} missing label configuration
190
189
  */
191
- importButtons(data) {;
192
-
190
+ importButtons(data) {
193
191
  const mappingOptions = this.getOption("mapping", {});
194
192
  const selector = mappingOptions?.["selector"];
195
193
  const labelSelector = mappingOptions?.["labelSelector"];
@@ -271,7 +269,7 @@ class ApiButton extends ActionButton {
271
269
  * @return {Monster.Components.Form.Popper}
272
270
  */
273
271
  [assembleMethodSymbol]() {
274
- super[assembleMethodSymbol]();;
272
+ super[assembleMethodSymbol]();
275
273
  initControlReferences.call(this);
276
274
  initEventHandler.call(this);
277
275
 
@@ -450,8 +448,7 @@ function executeAPIButton(event, button, element) {
450
448
  * @throws {TypeError} the result cannot be parsed
451
449
  * @throws {TypeError} unsupported response
452
450
  */
453
- function fetchData(url) {;
454
-
451
+ function fetchData(url) {
455
452
  if (!url) url = this.getOption("url");
456
453
  if (!url) return Promise.resolve();
457
454
 
@@ -481,8 +478,7 @@ function fetchData(url) {;
481
478
  * @private
482
479
  * @return {Monster.Components.Form.Popper}
483
480
  */
484
- function initEventHandler() {;
485
-
481
+ function initEventHandler() {
486
482
  this[containerElementSymbol].addEventListener("click", (event) => {
487
483
  const element = findTargetElementFromEvent(
488
484
  event,
@@ -188,7 +188,7 @@ class ButtonBar extends CustomElement {
188
188
  /**
189
189
  * This method is called internal and should not be called directly.
190
190
  */
191
- [assembleMethodSymbol]() {;
191
+ [assembleMethodSymbol]() {
192
192
  super[assembleMethodSymbol]();
193
193
 
194
194
  this[dimensionsSymbol] = new Pathfinder({ data: {} });
@@ -228,7 +228,7 @@ class ButtonBar extends CustomElement {
228
228
  connectedCallback() {
229
229
  super.connectedCallback();
230
230
 
231
- const document = getDocument();;
231
+ const document = getDocument();
232
232
 
233
233
  for (const [, type] of Object.entries(["click", "touch"])) {
234
234
  // close on outside ui-events
@@ -303,8 +303,7 @@ class ButtonBar extends CustomElement {
303
303
  * @param obj
304
304
  * @returns {*}
305
305
  */
306
- function initDefaultsFromAttributes(obj) {;
307
-
306
+ function initDefaultsFromAttributes(obj) {
308
307
  if (this.hasAttribute(ATTRIBUTE_POPPER_POSITION)) {
309
308
  obj.popper.placement = this.getAttribute(ATTRIBUTE_POPPER_POSITION);
310
309
  }
@@ -375,15 +374,13 @@ function initEventhandler() {
375
374
  initSlotChangedHandler.call(self);
376
375
  }
377
376
 
378
- function initSlotChangedHandler() {;
379
-
377
+ function initSlotChangedHandler() {
380
378
  this[buttonBarElementSymbol].addEventListener("slotchange", () => {
381
379
  updateResizeObserverObservation.call(this);
382
380
  });
383
381
  }
384
382
 
385
- function checkAndRearrangeButtons() {;
386
-
383
+ function checkAndRearrangeButtons() {
387
384
  if (this[dimensionsSymbol].getVia("data.calculated", false) !== true) {
388
385
  calculateButtonBarDimensions.call(this);
389
386
  }
@@ -395,8 +392,7 @@ function checkAndRearrangeButtons() {;
395
392
  * @private
396
393
  * @return {Object}
397
394
  */
398
- function rearrangeButtons() {;
399
-
395
+ function rearrangeButtons() {
400
396
  const switchWidth = this[switchElementSymbol].offsetWidth;
401
397
 
402
398
  let sum = switchWidth;
@@ -476,8 +472,7 @@ function calcBoxWidth(node) {
476
472
  * @private
477
473
  * @return {Object}
478
474
  */
479
- function calculateButtonBarDimensions() {;
480
-
475
+ function calculateButtonBarDimensions() {
481
476
  const computedStyle = getComputedStyle(this.parentElement);
482
477
  if (computedStyle === null) {
483
478
  throw new Error("no computed style");
@@ -546,8 +541,7 @@ function calculateButtonBarDimensions() {;
546
541
  /**
547
542
  * @private
548
543
  */
549
- function updateResizeObserverObservation() {;
550
-
544
+ function updateResizeObserverObservation() {
551
545
  this[resizeObserverSymbol].disconnect();
552
546
 
553
547
  const slottedNodes = getSlottedElements.call(this);
@@ -562,7 +556,7 @@ function updateResizeObserverObservation() {;
562
556
  /**
563
557
  * @private
564
558
  */
565
- function disconnectResizeObserver() {;
559
+ function disconnectResizeObserver() {
566
560
  if (this[resizeObserverSymbol] instanceof ResizeObserver) {
567
561
  this[resizeObserverSymbol].disconnect();
568
562
  }
@@ -582,8 +576,7 @@ function toggle() {
582
576
  /**
583
577
  * @private
584
578
  */
585
- function hide() {;
586
-
579
+ function hide() {
587
580
  this[popperElementSymbol].style.display = "none";
588
581
  removeAttributeToken(this[controlElementSymbol], "class", "open");
589
582
  }
@@ -592,8 +585,7 @@ function hide() {;
592
585
  * @private
593
586
  * @this PopperButton
594
587
  */
595
- function show() {;
596
-
588
+ function show() {
597
589
  if (this.getOption("disabled", false) === true) {
598
590
  return;
599
591
  }
@@ -613,8 +605,7 @@ function show() {;
613
605
  /**
614
606
  * @private
615
607
  */
616
- function updatePopper() {;
617
-
608
+ function updatePopper() {
618
609
  if (this[popperElementSymbol].style.display !== STYLE_DISPLAY_MODE_BLOCK) {
619
610
  return;
620
611
  }
@@ -636,8 +627,7 @@ function updatePopper() {;
636
627
  * @return {Select}
637
628
  * @throws {Error} no shadow-root is defined
638
629
  */
639
- function initControlReferences() {;
640
-
630
+ function initControlReferences() {
641
631
  if (!this.shadowRoot) {
642
632
  throw new Error("no shadow-root is defined");
643
633
  }
@@ -674,8 +664,7 @@ function initControlReferences() {;
674
664
  * @throws {Error} no shadow-root is defined
675
665
  *
676
666
  */
677
- function initButtonBar() {;
678
-
667
+ function initButtonBar() {
679
668
  if (!this.shadowRoot) {
680
669
  throw new Error("no shadow-root is defined");
681
670
  }
@@ -688,8 +677,7 @@ function initButtonBar() {;
688
677
  /**
689
678
  * @private
690
679
  */
691
- function initPopperSwitch() {;
692
-
680
+ function initPopperSwitch() {
693
681
  /**
694
682
  * @param {Event} event
695
683
  */
@@ -84,7 +84,7 @@ class Button extends CustomControl {
84
84
  * @return {Monster.Components.Form.Button}
85
85
  */
86
86
  [assembleMethodSymbol]() {
87
- super[assembleMethodSymbol]();;
87
+ super[assembleMethodSymbol]();
88
88
  initControlReferences.call(this);
89
89
  initEventhandler.call(this);
90
90
  return this;
@@ -327,7 +327,7 @@ function getTemplate() {
327
327
  </div>`;
328
328
  }
329
329
 
330
- function createRipple(event) {;
330
+ function createRipple(event) {
331
331
  const button = this[buttonElementSymbol];
332
332
 
333
333
  const circle = document.createElement("span");
@@ -111,8 +111,7 @@ class ConfirmButton extends PopperButton {
111
111
  * @property {string} popper.placement=top PopperJS placement
112
112
  * @extends {PopperButton}
113
113
  */
114
- get defaults() {;
115
-
114
+ get defaults() {
116
115
  const obj = Object.assign({}, super.defaults, {
117
116
  templates: {
118
117
  main: getTemplate(),
@@ -138,7 +137,7 @@ class ConfirmButton extends PopperButton {
138
137
  return obj;
139
138
  }
140
139
 
141
- hideDialog() {;
140
+ hideDialog() {
142
141
  super.hideDialog();
143
142
  this[confirmButtonElementSymbol].removeState();
144
143
  return this;
@@ -149,7 +148,7 @@ class ConfirmButton extends PopperButton {
149
148
  * @return {Monster.Components.Form.PopperButton}
150
149
  */
151
150
  [assembleMethodSymbol]() {
152
- super[assembleMethodSymbol]();;
151
+ super[assembleMethodSymbol]();
153
152
  initControlReferences.call(this);
154
153
  initEventhandler.call(this);
155
154
  }
@@ -174,7 +173,7 @@ class ConfirmButton extends PopperButton {
174
173
  *
175
174
  * @returns {Monster.Components.Form.PopperButton}
176
175
  */
177
- showDialog() {;
176
+ showDialog() {
178
177
  const confirmButtonClass = this.getOption("classes.confirmButton");
179
178
  if (confirmButtonClass) {
180
179
  this[confirmButtonElementSymbol].setOption(
@@ -201,7 +200,7 @@ class ConfirmButton extends PopperButton {
201
200
  * @param {number} timeout
202
201
  * @returns {Monster.Components.Form.ConfirmButton}
203
202
  */
204
- setConfirmButtonState(state, timeout) {;
203
+ setConfirmButtonState(state, timeout) {
205
204
  this[confirmButtonElementSymbol].setState(state, timeout);
206
205
  return this;
207
206
  }
@@ -213,7 +212,7 @@ class ConfirmButton extends PopperButton {
213
212
  * @param {number} timeout
214
213
  * @returns {Monster.Components.Form.ConfirmButton}
215
214
  */
216
- showConfirmButtonMessage(message, timeout) {;
215
+ showConfirmButtonMessage(message, timeout) {
217
216
  this[confirmButtonElementSymbol].setMessage(message);
218
217
  setTimeout(() => {
219
218
  this[confirmButtonElementSymbol].showMessage(timeout);
@@ -230,8 +229,7 @@ class ConfirmButton extends PopperButton {
230
229
  function getAction(type) {
231
230
  const self = this;
232
231
 
233
- return function (event) {;
234
-
232
+ return function (event) {
235
233
  const callback = self.getOption(`actions.${type}`);
236
234
  if (typeOf(callback) !== "function") {
237
235
  return;
@@ -247,8 +245,7 @@ function getAction(type) {
247
245
  * @fires Monster.Components.Form.PopperButton#monster-confirm
248
246
  * @fires Monster.Components.Form.PopperButton#monster-confirmed
249
247
  */
250
- function initEventhandler() {;
251
-
248
+ function initEventhandler() {
252
249
  this[cancelButtonElementSymbol].setOption(
253
250
  "clickEventType",
254
251
  this.getOption("clickEventType", ["click"]),
@@ -276,7 +273,7 @@ function initEventhandler() {;
276
273
  * @private
277
274
  * @return {Select}
278
275
  */
279
- function initControlReferences() {;
276
+ function initControlReferences() {
280
277
  this[confirmButtonElementSymbol] = this.shadowRoot.querySelector(
281
278
  `[${ATTRIBUTE_ROLE}=confirm]`,
282
279
  );
@@ -200,8 +200,7 @@ class Form extends CustomElement {
200
200
  * @return {Form}
201
201
  * @throws {Error} undefined datasource
202
202
  */
203
- refresh() {;
204
-
203
+ refresh() {
205
204
  try {
206
205
  this.setAttribute(ATTRIBUTE_DISABLED, "");
207
206
  const datasource = this.getOption("datasource");
@@ -235,7 +234,7 @@ class Form extends CustomElement {
235
234
  *
236
235
  * @return {Monster.Components.Form.Form}
237
236
  */
238
- [assembleMethodSymbol]() {;
237
+ [assembleMethodSymbol]() {
239
238
  super[assembleMethodSymbol]();
240
239
 
241
240
  initControlReferences.call(this);
@@ -331,8 +330,7 @@ class Form extends CustomElement {
331
330
  /**
332
331
  * @private
333
332
  */
334
- function initUpdater() {;
335
-
333
+ function initUpdater() {
336
334
  if (!this.shadowRoot) {
337
335
  throw new Error("no shadow-root is defined");
338
336
  }
@@ -370,8 +368,7 @@ function initUpdater() {;
370
368
  /**
371
369
  * @private
372
370
  */
373
- function initDatasource() {;
374
-
371
+ function initDatasource() {
375
372
  if (!this.shadowRoot) {
376
373
  throw new Error("no shadow-root is defined");
377
374
  }
@@ -405,8 +402,7 @@ function initDatasource() {;
405
402
  * @private
406
403
  * @param elements
407
404
  */
408
- function initWriteActions(elements) {;
409
-
405
+ function initWriteActions(elements) {
410
406
  elements.forEach((element) => {
411
407
  if (element instanceof HTMLElement) {
412
408
  element.addEventListener("click", () => {
@@ -437,8 +433,7 @@ function initWriteActions(elements) {;
437
433
  });
438
434
  }
439
435
 
440
- function runWriteCallback(button) {;
441
-
436
+ function runWriteCallback(button) {
442
437
  if (typeof this.reportValidity === "function") {
443
438
  if (this.reportValidity() === false) {
444
439
  if (
@@ -508,7 +503,7 @@ function runWriteCallback(button) {;
508
503
  * @private
509
504
  * @return {object}
510
505
  */
511
- function initOptionsFromArguments() {;
506
+ function initOptionsFromArguments() {
512
507
  const options = {};
513
508
 
514
509
  const datasource = this.getAttribute(ATTRIBUTE_FORM_DATASOURCE);
@@ -569,8 +564,7 @@ function initObserver() {
569
564
  * @private
570
565
  * @return {Monster.Components.Form.Form}
571
566
  */
572
- function initControlReferences() {;
573
-
567
+ function initControlReferences() {
574
568
  if (!this.shadowRoot) {
575
569
  throw new Error("no shadow-root is defined");
576
570
  }
@@ -138,7 +138,7 @@ class MessageStateButton extends Popper {
138
138
  /**
139
139
  */
140
140
  [assembleMethodSymbol]() {
141
- super[assembleMethodSymbol]();;
141
+ super[assembleMethodSymbol]();
142
142
  initControlReferences.call(this);
143
143
 
144
144
  let modes = null;
@@ -221,7 +221,7 @@ class MessageStateButton extends Popper {
221
221
  * @param {number} timeout
222
222
  * @returns {Monster.Components.Form.MessageStateButton}
223
223
  */
224
- showMessage(timeout) {;
224
+ showMessage(timeout) {
225
225
  super.showDialog();
226
226
 
227
227
  if (timeout !== undefined) {
@@ -330,8 +330,7 @@ class MessageStateButton extends Popper {
330
330
  }
331
331
  }
332
332
 
333
- function initEventHandlerByMode(mode) {;
334
-
333
+ function initEventHandlerByMode(mode) {
335
334
  switch (mode) {
336
335
  case "manual":
337
336
  this[buttonElementSymbol].setOption("actions.click", (e) => {
@@ -359,7 +358,7 @@ function initEventHandlerByMode(mode) {;
359
358
  * @private
360
359
  * @return {Select}
361
360
  */
362
- function initControlReferences() {;
361
+ function initControlReferences() {
363
362
  this[buttonElementSymbol] = this.shadowRoot.querySelector(
364
363
  `[${ATTRIBUTE_ROLE}=button]`,
365
364
  );