@schukai/monster 3.52.0 → 3.53.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (127) hide show
  1. package/CHANGELOG.md +22 -1
  2. package/README.md +1 -1
  3. package/example/data/datasource/server/restapi.mjs +7 -1
  4. package/package.json +1 -1
  5. package/source/components/datatable/columnbar.mjs +2 -3
  6. package/source/components/datatable/dataset.mjs +3 -5
  7. package/source/components/datatable/datasource/dom.mjs +5 -8
  8. package/source/components/datatable/datasource/rest.mjs +12 -18
  9. package/source/components/datatable/datasource.mjs +1 -1
  10. package/source/components/datatable/datatable/header.mjs +3 -5
  11. package/source/components/datatable/datatable.mjs +13 -18
  12. package/source/components/datatable/filter/date-range.mjs +15 -27
  13. package/source/components/datatable/filter/input.mjs +3 -5
  14. package/source/components/datatable/filter/range.mjs +10 -17
  15. package/source/components/datatable/filter/settings.mjs +6 -7
  16. package/source/components/datatable/filter.mjs +14 -21
  17. package/source/components/datatable/pagination.mjs +5 -7
  18. package/source/components/datatable/stylesheet/column-bar.mjs +8 -14
  19. package/source/components/datatable/stylesheet/dataset.mjs +8 -14
  20. package/source/components/datatable/stylesheet/datasource.mjs +7 -13
  21. package/source/components/datatable/stylesheet/datatable.mjs +8 -14
  22. package/source/components/datatable/stylesheet/embedded-pagination.mjs +7 -13
  23. package/source/components/datatable/stylesheet/filter-button.mjs +7 -13
  24. package/source/components/datatable/stylesheet/filter-controls-defaults.mjs +7 -13
  25. package/source/components/datatable/stylesheet/filter-date-range.mjs +7 -13
  26. package/source/components/datatable/stylesheet/filter-range.mjs +7 -13
  27. package/source/components/datatable/stylesheet/filter.mjs +8 -14
  28. package/source/components/datatable/stylesheet/pagination.mjs +8 -14
  29. package/source/components/datatable/stylesheet/select-filter.mjs +8 -14
  30. package/source/components/datatable/util.mjs +1 -2
  31. package/source/components/form/action-button.mjs +2 -3
  32. package/source/components/form/api-button.mjs +5 -9
  33. package/source/components/form/button-bar.mjs +15 -27
  34. package/source/components/form/button.mjs +2 -2
  35. package/source/components/form/confirm-button.mjs +9 -12
  36. package/source/components/form/form.mjs +8 -14
  37. package/source/components/form/message-state-button.mjs +4 -5
  38. package/source/components/form/popper-button.mjs +7 -11
  39. package/source/components/form/popper.mjs +7 -11
  40. package/source/components/form/reload.mjs +5 -7
  41. package/source/components/form/select.mjs +42 -74
  42. package/source/components/form/style/tabs.pcss +22 -19
  43. package/source/components/form/stylesheet/action-button.mjs +7 -13
  44. package/source/components/form/stylesheet/api-button.mjs +7 -13
  45. package/source/components/form/stylesheet/button-bar.mjs +8 -14
  46. package/source/components/form/stylesheet/button.mjs +8 -14
  47. package/source/components/form/stylesheet/confirm-button.mjs +7 -13
  48. package/source/components/form/stylesheet/context-help.mjs +7 -13
  49. package/source/components/form/stylesheet/form.mjs +7 -13
  50. package/source/components/form/stylesheet/message-state-button.mjs +7 -13
  51. package/source/components/form/stylesheet/popper-button.mjs +8 -14
  52. package/source/components/form/stylesheet/popper.mjs +7 -13
  53. package/source/components/form/stylesheet/select.mjs +7 -13
  54. package/source/components/form/stylesheet/state-button.mjs +7 -13
  55. package/source/components/form/stylesheet/tabs.mjs +8 -14
  56. package/source/components/form/stylesheet/tree-select.mjs +7 -13
  57. package/source/components/form/tabs.mjs +59 -45
  58. package/source/components/form/template.mjs +6 -9
  59. package/source/components/form/tree-select.mjs +7 -10
  60. package/source/components/form/util/popper.mjs +1 -2
  61. package/source/components/host/call-button.mjs +4 -6
  62. package/source/components/host/collapse.mjs +14 -22
  63. package/source/components/host/config-manager.mjs +7 -9
  64. package/source/components/host/details.mjs +5 -8
  65. package/source/components/host/host.mjs +7 -12
  66. package/source/components/host/overlay.mjs +4 -6
  67. package/source/components/host/stylesheet/call-button.mjs +8 -14
  68. package/source/components/host/stylesheet/collapse.mjs +8 -14
  69. package/source/components/host/stylesheet/config-manager.mjs +7 -13
  70. package/source/components/host/stylesheet/details.mjs +8 -14
  71. package/source/components/host/stylesheet/host.mjs +7 -13
  72. package/source/components/host/stylesheet/overlay.mjs +7 -13
  73. package/source/components/host/stylesheet/toggle-button.mjs +8 -14
  74. package/source/components/host/stylesheet/viewer.mjs +8 -14
  75. package/source/components/host/viewer.mjs +2 -3
  76. package/source/components/notify/message.mjs +10 -13
  77. package/source/components/notify/notify.mjs +4 -6
  78. package/source/components/notify/stylesheet/message.mjs +7 -13
  79. package/source/components/notify/stylesheet/notify.mjs +7 -13
  80. package/source/components/state/log/entry.mjs +1 -1
  81. package/source/components/state/log.mjs +6 -11
  82. package/source/components/state/stylesheet/log.mjs +7 -13
  83. package/source/components/state/stylesheet/state.mjs +8 -14
  84. package/source/components/style/common.pcss +12 -10
  85. package/source/components/style/icons.pcss +110 -0
  86. package/source/components/style/link.pcss +1 -1
  87. package/source/components/style/mixin/button.pcss +0 -2
  88. package/source/components/style/mixin/icon.pcss +43 -0
  89. package/source/components/style/mixin/property.pcss +4 -0
  90. package/source/components/stylesheet/badge.mjs +7 -13
  91. package/source/components/stylesheet/border.mjs +7 -13
  92. package/source/components/stylesheet/button.mjs +8 -14
  93. package/source/components/stylesheet/card.mjs +7 -13
  94. package/source/components/stylesheet/color.mjs +7 -13
  95. package/source/components/stylesheet/common.mjs +8 -14
  96. package/source/components/stylesheet/control.mjs +7 -13
  97. package/source/components/stylesheet/data-grid.mjs +7 -13
  98. package/source/components/stylesheet/display.mjs +7 -13
  99. package/source/components/stylesheet/floating-ui.mjs +7 -13
  100. package/source/components/stylesheet/form.mjs +7 -13
  101. package/source/components/stylesheet/host.mjs +7 -13
  102. package/source/components/stylesheet/icons.mjs +27 -0
  103. package/source/components/stylesheet/link.mjs +8 -14
  104. package/source/components/stylesheet/normalize.mjs +7 -13
  105. package/source/components/stylesheet/popper.mjs +7 -13
  106. package/source/components/stylesheet/property.mjs +7 -13
  107. package/source/components/stylesheet/ripple.mjs +7 -13
  108. package/source/components/stylesheet/skeleton.mjs +7 -13
  109. package/source/components/stylesheet/space.mjs +7 -13
  110. package/source/components/stylesheet/spinner.mjs +7 -13
  111. package/source/components/stylesheet/table.mjs +7 -13
  112. package/source/components/stylesheet/theme.mjs +7 -13
  113. package/source/components/stylesheet/typography.mjs +7 -13
  114. package/source/components/tree-menu/stylesheet/tree-menu.mjs +7 -13
  115. package/source/components/tree-menu/tree-menu.mjs +9 -14
  116. package/source/data/datasource/server/restapi/writeerror.mjs +2 -1
  117. package/source/data/datasource/server.mjs +4 -4
  118. package/source/data/datasource.mjs +1 -1
  119. package/source/data/transformer.mjs +9 -4
  120. package/source/dom/customelement.mjs +1 -1
  121. package/source/dom/util.mjs +4 -5
  122. package/source/monster.mjs +0 -1
  123. package/source/types/observer.mjs +10 -2
  124. package/source/types/version.mjs +1 -1
  125. package/source/util/clone.mjs +1 -1
  126. package/test/cases/monster.mjs +1 -1
  127. package/test/web/test.html +1 -1
@@ -349,8 +349,7 @@ class Select extends CustomControl {
349
349
  * @since 1.2.0
350
350
  * @throws {Error} unsupported type
351
351
  */
352
- set value(value) {;
353
-
352
+ set value(value) {
354
353
  const result = convertValueToSelection.call(this, value);
355
354
  setSelection
356
355
  .call(this, result.selection)
@@ -558,7 +557,7 @@ class Select extends CustomControl {
558
557
  * @since 3.27.0
559
558
  * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/click}
560
559
  */
561
- click() {;
560
+ click() {
562
561
  if (this.getOption("disabled") === true) {
563
562
  return;
564
563
  }
@@ -572,7 +571,7 @@ class Select extends CustomControl {
572
571
  * @since 3.27.0
573
572
  * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus}
574
573
  */
575
- focus(options) {;
574
+ focus(options) {
576
575
  if (this.getOption("disabled") === true) {
577
576
  return;
578
577
  }
@@ -591,7 +590,7 @@ class Select extends CustomControl {
591
590
  * The Button.blur() method removes focus from the internal button element.
592
591
  * @link https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/blur
593
592
  */
594
- blur() {;
593
+ blur() {
595
594
  new Processing(() => {
596
595
  gatherState.call(this);
597
596
  blurFilter.call(this);
@@ -608,8 +607,7 @@ class Select extends CustomControl {
608
607
  * @param {string|URL} url URL to fetch the options
609
608
  * @return {Promise}
610
609
  */
611
- fetch(url) {;
612
-
610
+ fetch(url) {
613
611
  if (url instanceof URL) {
614
612
  url = url.toString();
615
613
  }
@@ -634,7 +632,7 @@ class Select extends CustomControl {
634
632
  */
635
633
  connectedCallback() {
636
634
  super.connectedCallback();
637
- const document = getDocument();;
635
+ const document = getDocument();
638
636
 
639
637
  for (const [, type] of Object.entries(["click", "touch"])) {
640
638
  // close on outside ui-events
@@ -656,7 +654,7 @@ class Select extends CustomControl {
656
654
  */
657
655
  disconnectedCallback() {
658
656
  super.disconnectedCallback();
659
- const document = getDocument();;
657
+ const document = getDocument();
660
658
 
661
659
  // close on outside ui-events
662
660
  for (const [, type] of Object.entries(["click", "touch"])) {
@@ -676,8 +674,7 @@ class Select extends CustomControl {
676
674
  * @throws {Error} map is not iterable
677
675
  * @throws {Error} missing label configuration
678
676
  */
679
- importOptions(data) {;
680
-
677
+ importOptions(data) {
681
678
  const mappingOptions = this.getOption("mapping", {});
682
679
  const selector = mappingOptions?.["selector"];
683
680
  const labelTemplate = mappingOptions?.["labelTemplate"];
@@ -762,7 +759,7 @@ class Select extends CustomControl {
762
759
  * @private
763
760
  * @return {object}
764
761
  */
765
- function initOptionsFromArguments() {;
762
+ function initOptionsFromArguments() {
766
763
  const options = {};
767
764
 
768
765
  const template = this.getAttribute("data-monster-selected-template");
@@ -792,8 +789,7 @@ function initOptionsFromArguments() {;
792
789
  /**
793
790
  * @private
794
791
  */
795
- function attachResizeObserver() {;
796
-
792
+ function attachResizeObserver() {
797
793
  // against flickering
798
794
  this[resizeObserverSymbol] = new ResizeObserver((entries) => {
799
795
  if (this[timerCallbackSymbol] instanceof DeadMansSwitch) {
@@ -814,7 +810,7 @@ function attachResizeObserver() {;
814
810
  this[resizeObserverSymbol].observe(this.parentElement);
815
811
  }
816
812
 
817
- function disconnectResizeObserver() {;
813
+ function disconnectResizeObserver() {
818
814
  if (this[resizeObserverSymbol] instanceof ResizeObserver) {
819
815
  this[resizeObserverSymbol].disconnect();
820
816
  }
@@ -848,8 +844,7 @@ function getSummaryTemplate() {
848
844
  * @return {void}
849
845
  * @private
850
846
  */
851
- function parseSlotsToOptions() {;
852
-
847
+ function parseSlotsToOptions() {
853
848
  let options = this.getOption("options");
854
849
  if (!isIterable(options)) {
855
850
  options = [];
@@ -928,7 +923,7 @@ function runAsOptionLengthChanged(targetLength) {
928
923
  * @param {*} value
929
924
  * @return {*}
930
925
  */
931
- function buildSelectionLabel(value) {;
926
+ function buildSelectionLabel(value) {
932
927
  const options = this.getOption("options");
933
928
 
934
929
  for (let i = 0; i < options.length; i++) {
@@ -949,8 +944,7 @@ function buildSelectionLabel(value) {;
949
944
  * @return {string}
950
945
  * @throws {Error} no value found
951
946
  */
952
- function getSelectionLabel(value) {;
953
-
947
+ function getSelectionLabel(value) {
954
948
  const callback = this.getOption("formatter.selection");
955
949
  if (isFunction(callback)) {
956
950
  const label = callback.call(this, value);
@@ -968,8 +962,7 @@ function getSelectionLabel(value) {;
968
962
  * @private
969
963
  * @param {Event} event
970
964
  */
971
- function handleToggleKeyboardEvents(event) {;
972
-
965
+ function handleToggleKeyboardEvents(event) {
973
966
  switch (event?.["code"]) {
974
967
  case "Escape":
975
968
  toggle.call(this);
@@ -1007,8 +1000,7 @@ function initOptionObserver() {
1007
1000
  );
1008
1001
  }
1009
1002
 
1010
- function getDefaultTranslation() {;
1011
-
1003
+ function getDefaultTranslation() {
1012
1004
  const translation = new Translations("en").assignTranslations(
1013
1005
  this.getOption("labels", {}),
1014
1006
  );
@@ -1025,8 +1017,7 @@ function getDefaultTranslation() {;
1025
1017
  * @private
1026
1018
  * @returns {string|*}
1027
1019
  */
1028
- function setSummaryAndControlText() {;
1029
-
1020
+ function setSummaryAndControlText() {
1030
1021
  const translations = getDefaultTranslation.call(this);
1031
1022
  const selections = this.getOption("selection");
1032
1023
 
@@ -1091,8 +1082,7 @@ function getOptionElements() {
1091
1082
  /**
1092
1083
  * @private
1093
1084
  */
1094
- function calcAndSetOptionsDimension() {;
1095
-
1085
+ function calcAndSetOptionsDimension() {
1096
1086
  const options = getOptionElements.call(this);
1097
1087
  const container = this[optionsElementSymbol];
1098
1088
  if (!(container instanceof HTMLElement && options instanceof NodeList)) {
@@ -1168,8 +1158,7 @@ function calcAndSetOptionsDimension() {;
1168
1158
  * @param {number} direction
1169
1159
  * @throws {Error} no shadow-root is defined
1170
1160
  */
1171
- function activateCurrentOption(direction) {;
1172
-
1161
+ function activateCurrentOption(direction) {
1173
1162
  if (!this.shadowRoot) {
1174
1163
  throw new Error("no shadow-root is defined");
1175
1164
  }
@@ -1237,8 +1226,7 @@ function activateCurrentOption(direction) {;
1237
1226
  /**
1238
1227
  * @private
1239
1228
  */
1240
- function filterOptions() {;
1241
-
1229
+ function filterOptions() {
1242
1230
  new Processing(() => {
1243
1231
  let filterValue;
1244
1232
 
@@ -1285,8 +1273,7 @@ function filterOptions() {;
1285
1273
  * @private
1286
1274
  * @param {Event} event
1287
1275
  */
1288
- function handleFilterKeyboardEvents(event) {;
1289
-
1276
+ function handleFilterKeyboardEvents(event) {
1290
1277
  const shiftKey = event?.["shiftKey"];
1291
1278
 
1292
1279
  switch (event?.["code"]) {
@@ -1322,8 +1309,7 @@ function handleFilterKeyboardEvents(event) {;
1322
1309
  /**
1323
1310
  * @private
1324
1311
  */
1325
- function filterFromRemote() {;
1326
-
1312
+ function filterFromRemote() {
1327
1313
  if (!(this[inlineFilterElementSymbol] instanceof HTMLElement)) {
1328
1314
  return;
1329
1315
  }
@@ -1347,8 +1333,7 @@ function filterFromRemote() {;
1347
1333
  url = new Formatter({ filter: filterValue }).format(optionUrl);
1348
1334
  }
1349
1335
 
1350
- this
1351
- .fetch(url)
1336
+ this.fetch(url)
1352
1337
  .then(() => {
1353
1338
  checkOptionState.call(this);
1354
1339
  })
@@ -1363,8 +1348,7 @@ function filterFromRemote() {;
1363
1348
  * @param {Event} event
1364
1349
  * @private
1365
1350
  */
1366
- function handleOptionKeyboardEvents(event) {;
1367
-
1351
+ function handleOptionKeyboardEvents(event) {
1368
1352
  const shiftKey = event?.["shiftKey"];
1369
1353
 
1370
1354
  switch (event?.["code"]) {
@@ -1410,8 +1394,7 @@ function handleOptionKeyboardEvents(event) {;
1410
1394
  * @private
1411
1395
  * @returns {string}
1412
1396
  */
1413
- function getFilterMode() {;
1414
-
1397
+ function getFilterMode() {
1415
1398
  switch (this.getOption("filter.mode")) {
1416
1399
  case FILTER_MODE_OPTIONS:
1417
1400
  return FILTER_MODE_OPTIONS;
@@ -1425,8 +1408,7 @@ function getFilterMode() {;
1425
1408
  /**
1426
1409
  * @private
1427
1410
  */
1428
- function blurFilter() {;
1429
-
1411
+ function blurFilter() {
1430
1412
  if (!(this[inlineFilterElementSymbol] instanceof HTMLElement)) {
1431
1413
  return;
1432
1414
  }
@@ -1446,8 +1428,7 @@ function blurFilter() {;
1446
1428
  * @private
1447
1429
  * @param focusOptions
1448
1430
  */
1449
- function focusPopperFilter(focusOptions) {;
1450
-
1431
+ function focusPopperFilter(focusOptions) {
1451
1432
  this[popperFilterContainerElementSymbol].classList.remove("d-none");
1452
1433
  this[popperFilterElementSymbol].classList.add("active");
1453
1434
  this[inlineFilterElementSymbol].classList.remove("active");
@@ -1477,8 +1458,7 @@ function focusPopperFilter(focusOptions) {;
1477
1458
  * @private
1478
1459
  * @param focusOptions
1479
1460
  */
1480
- function focusInlineFilter(focusOptions) {;
1481
-
1461
+ function focusInlineFilter(focusOptions) {
1482
1462
  const options = this.getOption("options");
1483
1463
  if (
1484
1464
  (!isArray(options) || options.length === 0) &&
@@ -1505,8 +1485,7 @@ function focusInlineFilter(focusOptions) {;
1505
1485
  /**
1506
1486
  * @private
1507
1487
  */
1508
- function focusFilter(focusOptions) {;
1509
-
1488
+ function focusFilter(focusOptions) {
1510
1489
  if (getFilterMode.call(this) === FILTER_MODE_DISABLED) {
1511
1490
  this[popperFilterContainerElementSymbol].classList.add("d-none");
1512
1491
  this[inlineFilterElementSymbol].classList.add("d-none");
@@ -1526,8 +1505,7 @@ function focusFilter(focusOptions) {;
1526
1505
  * @throws {Error} no shadow-root is defined
1527
1506
  * @throws {Error} unsupported type
1528
1507
  */
1529
- function gatherState() {;
1530
-
1508
+ function gatherState() {
1531
1509
  const type = this.getOption("type");
1532
1510
  if (["radio", "checkbox"].indexOf(type) === -1) {
1533
1511
  throw new Error("unsupported type");
@@ -1563,8 +1541,7 @@ function gatherState() {;
1563
1541
  * @throws {Error} no shadow-root is defined
1564
1542
  * @throws {Error} unsupported type
1565
1543
  */
1566
- function clearSelection() {;
1567
-
1544
+ function clearSelection() {
1568
1545
  const type = this.getOption("type");
1569
1546
  if (["radio", "checkbox"].indexOf(type) === -1) {
1570
1547
  throw new Error("unsupported type");
@@ -1585,8 +1562,7 @@ function clearSelection() {;
1585
1562
  /**
1586
1563
  * @private
1587
1564
  */
1588
- function areOptionsAvailableAndInit() {;
1589
-
1565
+ function areOptionsAvailableAndInit() {
1590
1566
  // prevent multiple calls
1591
1567
  if (this[areOptionsAvailableAndInitSymbol] === undefined) {
1592
1568
  this[areOptionsAvailableAndInitSymbol] = 0;
@@ -1676,8 +1652,7 @@ function areOptionsAvailableAndInit() {;
1676
1652
  * @private
1677
1653
  * @throws {Error} no shadow-root is defined
1678
1654
  */
1679
- function checkOptionState() {;
1680
-
1655
+ function checkOptionState() {
1681
1656
  if (!this.shadowRoot) {
1682
1657
  throw new Error("no shadow-root is defined");
1683
1658
  }
@@ -1709,7 +1684,7 @@ function checkOptionState() {;
1709
1684
  * @param {*} value
1710
1685
  * @return {Object}
1711
1686
  */
1712
- function convertValueToSelection(value) {;
1687
+ function convertValueToSelection(value) {
1713
1688
  const selection = [];
1714
1689
 
1715
1690
  if (isString(value)) {
@@ -1752,8 +1727,7 @@ function convertValueToSelection(value) {;
1752
1727
  * @param {array} selection
1753
1728
  * @return {string}
1754
1729
  */
1755
- function convertSelectionToValue(selection) {;
1756
-
1730
+ function convertSelectionToValue(selection) {
1757
1731
  const value = [];
1758
1732
 
1759
1733
  if (isArray(selection)) {
@@ -1778,8 +1752,7 @@ function convertSelectionToValue(selection) {;
1778
1752
  * @return {Promise}
1779
1753
  * @throws {Error} no shadow-root is defined
1780
1754
  */
1781
- function setSelection(selection) {;
1782
-
1755
+ function setSelection(selection) {
1783
1756
  if (isString(selection)) {
1784
1757
  const result = convertValueToSelection.call(this, selection);
1785
1758
  selection = result?.selection;
@@ -1837,8 +1810,7 @@ function setSelection(selection) {;
1837
1810
  * @throws {TypeError} the result cannot be parsed
1838
1811
  * @throws {TypeError} unsupported response
1839
1812
  */
1840
- function fetchData(url) {;
1841
-
1813
+ function fetchData(url) {
1842
1814
  if (!url) url = this.getOption("url");
1843
1815
  if (!url) return Promise.resolve();
1844
1816
 
@@ -1872,8 +1844,7 @@ function fetchData(url) {;
1872
1844
  /**
1873
1845
  * @private
1874
1846
  */
1875
- function hide() {;
1876
-
1847
+ function hide() {
1877
1848
  this[popperElementSymbol].style.display = "none";
1878
1849
  setStatusOrRemoveBadges.call(this, "status");
1879
1850
  removeAttributeToken(this[controlElementSymbol], "class", "open");
@@ -1882,8 +1853,7 @@ function hide() {;
1882
1853
  /**
1883
1854
  * @private
1884
1855
  */
1885
- function show() {;
1886
-
1856
+ function show() {
1887
1857
  if (this.getOption("disabled", undefined) === true) {
1888
1858
  return;
1889
1859
  }
@@ -2131,7 +2101,7 @@ function initEventhandler() {
2131
2101
  * @private
2132
2102
  * @return {Select}
2133
2103
  */
2134
- function setStatusOrRemoveBadges(suggestion) {;
2104
+ function setStatusOrRemoveBadges(suggestion) {
2135
2105
  setTimeout(() => {
2136
2106
  const selection = this.getOption("selection");
2137
2107
  const clearAllFlag =
@@ -2178,8 +2148,7 @@ function setStatusOrRemoveBadges(suggestion) {;
2178
2148
  * @return {Select}
2179
2149
  * @throws {Error} no shadow-root is defined
2180
2150
  */
2181
- function initControlReferences() {;
2182
-
2151
+ function initControlReferences() {
2183
2152
  if (!this.shadowRoot) {
2184
2153
  throw new Error("no shadow-root is defined");
2185
2154
  }
@@ -2218,8 +2187,7 @@ function initControlReferences() {;
2218
2187
  /**
2219
2188
  * @private
2220
2189
  */
2221
- function updatePopper() {;
2222
-
2190
+ function updatePopper() {
2223
2191
  if (this[popperElementSymbol].style.display !== STYLE_DISPLAY_MODE_BLOCK) {
2224
2192
  return;
2225
2193
  }
@@ -21,9 +21,9 @@ nav[data-monster-role=nav] {
21
21
  margin-bottom: .75rem;
22
22
 
23
23
  border-bottom-width: thin;
24
- border-bottom-radius: var(--monster-border-radius);
24
+ border-radius: var(--monster-border-radius);
25
25
  border-bottom-style: var(--monster-border-style);
26
- border-bottom-shadow: var(--monster-box-shadow-1);
26
+ box-shadow: var(--monster-box-shadow-1);
27
27
  border-color: var(--monster-bg-color-primary-2);
28
28
 
29
29
  flex-wrap: nowrap
@@ -37,7 +37,6 @@ nav[data-monster-role=nav] {
37
37
  width: 16px;
38
38
  min-height: 16px;
39
39
  order: 2;
40
- width: 16px;
41
40
  height: 16px;
42
41
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'><path d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
43
42
  flex-wrap: nowrap
@@ -61,15 +60,19 @@ nav[data-monster-role=nav] {
61
60
  padding: .375rem 0;
62
61
  margin-right: .75rem;
63
62
  font-size: 1rem;
64
- display: flex;
65
- color: var(--monster-btn-color, black);
66
- background-color: var(--monster-btn-bg-color);
63
+ display: flex;
67
64
  justify-content: center;
68
65
 
69
- border-bottom-width: var(--monster-border-width);
70
- border-bottom-radius: var(--monster-border-radius);
66
+ color: var(--monster-color-gray-6);
67
+ background-color: var(--monster-color-gray-1);
68
+ @media (prefers-color-scheme: dark) {
69
+ color: var(--monster-color-gray-1);
70
+ background-color: var(--monster-color-gray-6);
71
+ }
72
+
73
+ border-radius: var(--monster-border-radius);
71
74
  border-bottom-style: var(--monster-border-style);
72
- border-bottom-shadow: var(--monster-box-shadow-1);
75
+ box-shadow: var(--monster-box-shadow-1);
73
76
  border-color: var(--monster-bg-color-primary-4);
74
77
 
75
78
  transition: color 0.8s;
@@ -80,10 +83,10 @@ nav[data-monster-role=nav] {
80
83
  }
81
84
 
82
85
  [data-monster-role=nav] button:not([disabled]):hover {
83
- border-bottom-width: var(--monster-border-width);
84
- border-bottom-radius: var(--monster-border-radius);
86
+
87
+ border-radius: var(--monster-border-radius);
85
88
  border-bottom-style: var(--monster-border-style);
86
- border-bottom-shadow: var(--monster-box-shadow-1);
89
+ box-shadow: var(--monster-box-shadow-1);
87
90
  border-color: var(--monster-bg-color-secondary-3);
88
91
  color: var(--monster-bg-color-secondary-3);
89
92
 
@@ -91,16 +94,16 @@ nav[data-monster-role=nav] {
91
94
 
92
95
  [data-monster-role=nav] button[data-monster-state=active]:not([disabled]):hover,
93
96
  [data-monster-role=nav] button[data-monster-state=active] {
94
- border-bottom-width: var(--monster-border-width);
95
- border-bottom-radius: var(--monster-border-radius);
97
+ border-radius: var(--monster-border-radius);
96
98
  border-bottom-style: var(--monster-border-style);
97
- border-bottom-shadow: var(--monster-box-shadow-1);
99
+ box-shadow: var(--monster-box-shadow-1);
98
100
  border-color: var(--monster-bg-color-secondary-3);
99
101
  color: var(--monster-bg-color-secondary-3);
100
102
  }
101
103
 
102
104
  [data-monster-role=nav] button[disabled] {
103
- color: var(--monster-disabled-color, rgb(84, 84, 84));
105
+ color: var(--monster-color-primary-disabled-1);
106
+ background-color: var(--monster-bg-color-primary-disabled-1);
104
107
  cursor: not-allowed;
105
108
  }
106
109
 
@@ -132,10 +135,10 @@ nav[data-monster-role=nav] {
132
135
  ::slotted([slot]) {
133
136
 
134
137
  border-bottom-width: var(--monster-border-width);
135
- border-bottom-radius: var(--monster-border-radius);
138
+ border-radius: var(--monster-border-radius);
136
139
  border-bottom-style: var(--monster-border-style);
137
- border-bottom-shadow: var(--monster-box-shadow-1);
138
-
140
+ box-shadow: var(--monster-box-shadow-1);
141
+
139
142
  border-color: var(--monster-bg-color-primary-4);
140
143
 
141
144
  }
@@ -1,3 +1,4 @@
1
+
1
2
  /**
2
3
  * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
4
  * Node module: @schukai/monster
@@ -5,10 +6,10 @@
5
6
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
6
7
  */
7
8
 
8
- import { addAttributeToken } from "../../../dom/attributes.mjs";
9
- import { ATTRIBUTE_ERRORMESSAGE } from "../../../dom/constants.mjs";
9
+ import {addAttributeToken} from "../../../dom/attributes.mjs";
10
+ import {ATTRIBUTE_ERRORMESSAGE} from "../../../dom/constants.mjs";
10
11
 
11
- export { ActionButtonStyleSheet };
12
+ export {ActionButtonStyleSheet}
12
13
 
13
14
  /**
14
15
  * @private
@@ -17,17 +18,10 @@ export { ActionButtonStyleSheet };
17
18
  const ActionButtonStyleSheet = new CSSStyleSheet();
18
19
 
19
20
  try {
20
- ActionButtonStyleSheet.insertRule(
21
- `
21
+ ActionButtonStyleSheet.insertRule(`
22
22
  @layer actionbutton {
23
23
  :after,:before,:root{--monster-font-family:-apple-system,BlinkMacSystemFont,\"Quicksand\",\"Segoe UI\",\"Roboto\",\"Oxygen\",\"Ubuntu\",\"Cantarell\",\"Fira Sans\",\"Droid Sans\",\"Helvetica Neue\",Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\";--monster-color-primary-1:var(--monster-color-gray-6);--monster-color-primary-2:var(--monster-color-gray-6);--monster-color-primary-3:var(--monster-color-gray-1);--monster-color-primary-4:var(--monster-color-gray-1);--monster-bg-color-primary-1:var(--monster-color-gray-1);--monster-bg-color-primary-2:var(--monster-color-gray-2);--monster-bg-color-primary-3:var(--monster-color-gray-3);--monster-bg-color-primary-4:var(--monster-color-gray-6);--monster-color-secondary-1:var(--monster-color-red-4);--monster-color-secondary-2:var(--monster-color-red-4);--monster-color-secondary-3:var(--monster-color-red-1);--monster-color-secondary-4:var(--monster-color-red-1);--monster-bg-color-secondary-1:var(--monster-color-gray-1);--monster-bg-color-secondary-2:var(--monster-color-red-2);--monster-bg-color-secondary-3:var(--monster-color-red-3);--monster-bg-color-secondary-4:var(--monster-color-red-6);--monster-color-tertiary-1:var(--monster-color-magenta-4);--monster-color-tertiary-2:var(--monster-color-magenta-4);--monster-color-tertiary-3:var(--monster-color-magenta-6);--monster-color-tertiary-4:var(--monster-color-magenta-1);--monster-bg-color-tertiary-1:var(--monster-color-gray-1);--monster-bg-color-tertiary-2:var(--monster-color-magenta-1);--monster-bg-color-tertiary-3:var(--monster-color-magenta-2);--monster-bg-color-tertiary-4:var(--monster-color-magenta-6);--monster-color-destructive-1:var(--monster-color-red-1);--monster-color-destructive-2:var(--monster-color-red-4);--monster-color-destructive-3:var(--monster-color-red-6);--monster-color-destructive-4:var(--monster-color-red-1);--monster-bg-color-destructive-1:var(--monster-color-red-4);--monster-bg-color-destructive-2:var(--monster-color-gray-1);--monster-bg-color-destructive-3:var(--monster-color-red-2);--monster-bg-color-destructive-4:var(--monster-color-red-5);--monster-color-success-1:var(--monster-color-green-1);--monster-color-success-2:var(--monster-color-green-4);--monster-color-success-3:var(--monster-color-green-6);--monster-color-success-4:var(--monster-color-green-1);--monster-bg-color-success-1:var(--monster-color-green-3);--monster-bg-color-success-2:var(--monster-color-gray-1);--monster-bg-color-success-3:var(--monster-color-green-2);--monster-bg-color-success-4:var(--monster-color-green-5);--monster-color-warning-1:var(--monster-color-orange-1);--monster-color-warning-2:var(--monster-color-orange-4);--monster-color-warning-3:var(--monster-color-orange-6);--monster-color-warning-4:var(--monster-color-orange-1);--monster-bg-color-warning-1:var(--monster-color-orange-3);--monster-bg-color-warning-2:var(--monster-color-gray-1);--monster-bg-color-warning-3:var(--monster-color-orange-2);--monster-bg-color-warning-4:var(--monster-color-orange-5);--monster-color-error-1:var(--monster-color-red-1);--monster-color-error-2:var(--monster-color-red-4);--monster-color-error-3:var(--monster-color-red-6);--monster-color-error-4:var(--monster-color-red-1);--monster-bg-color-error-1:var(--monster-color-red-4);--monster-bg-color-error-2:var(--monster-color-gray-1);--monster-bg-color-error-3:var(--monster-color-red-2);--monster-bg-color-error-4:var(--monster-color-red-5);--monster-color-selection-1:var(--monster-color-gray-6);--monster-color-selection-2:var(--monster-color-gray-6);--monster-color-selection-3:var(--monster-color-gray-6);--monster-color-selection-4:var(--monster-color-gray-1);--monster-bg-color-selection-1:var(--monster-color-yellow-2);--monster-bg-color-selection-2:var(--monster-color-yellow-1);--monster-bg-color-selection-3:var(--monster-color-yellow-2);--monster-bg-color-selection-4:var(--monster-color-yellow-6);--monster-color-primary-disabled-1:var(--monster-color-gray-3);--monster-color-primary-disabled-2:var(--monster-color-gray-1);--monster-color-primary-disabled-3:var(--monster-color-gray-4);--monster-color-primary-disabled-4:var(--monster-color-gray-4);--monster-bg-color-primary-disabled-1:var(--monster-color-gray-1);--monster-bg-color-primary-disabled-2:var(--monster-color-gray-2);--monster-bg-color-primary-disabled-3:var(--monster-color-gray-3);--monster-bg-color-primary-disabled-4:var(--monster-color-gray-6);--monster-color-gradient-1:#833ab4;--monster-color-gradient-2:#fd1d1d;--monster-color-gradient-3:#fcb045;--monster-box-shadow-1:none;--monster-box-shadow-2:-1px 1px 10px 1px hsla(0,0%,76%,.61);--monster-text-shadow:none;--monster-border-style:solid;--monster-border-width:2px;--monster-border-radius:0;--monster-popper-witharrrow-distance:-4px;--monster-z-index-default:0;--monster-z-index-outline:10;--monster-z-index-dropdown:200;--monster-z-index-dropdown-overlay:210;--monster-z-index-sticky:300;--monster-z-index-sticky-overlay:310;--monster-z-index-fixed:400;--monster-z-index-fixed-overlay:410;--monster-z-index-modal-backdrop:500;--monster-z-index-modal-backdrop-overlay:510;--monster-z-index-offcanvas:600;--monster-z-index-offcanvas-overlay:610;--monster-z-index-modal:700;--monster-z-index-modal-overlay:710;--monster-z-index-popover:800;--monster-z-index-popover-overlay:810;--monster-z-index-tooltip:800;--monster-z-index-tooltip-overlay:910;--monster-space-0:0;--monster-space-1:2px;--monster-space-2:4px;--monster-space-3:6px;--monster-space-4:10px;--monster-space-5:16px;--monster-space-6:26px;--monster-space-7:42px;--monster-breakpoint-0:480px;--monster-breakpoint-4:480px;--monster-breakpoint-7:768px;--monster-breakpoint-9:992px;--monster-breakpoint-12:1200px}@media (prefers-color-scheme:dark){:after,:before,:root{--monster-color-primary-1:var(--monster-color-gray-1);--monster-color-primary-2:var(--monster-color-gray-1);--monster-color-primary-3:var(--monster-color-gray-6);--monster-color-primary-4:var(--monster-color-gray-6);--monster-bg-color-primary-1:var(--monster-color-gray-6);--monster-bg-color-primary-2:var(--monster-color-gray-3);--monster-bg-color-primary-3:var(--monster-color-gray-2);--monster-bg-color-primary-4:var(--monster-color-gray-1);--monster-color-secondary-1:var(--monster-color-red-1);--monster-color-secondary-2:var(--monster-color-red-1);--monster-color-secondary-3:var(--monster-color-red-6);--monster-color-secondary-4:var(--monster-color-red-4);--monster-bg-color-secondary-1:var(--monster-color-gray-6);--monster-bg-color-secondary-2:var(--monster-color-red-3);--monster-bg-color-secondary-3:var(--monster-color-red-2);--monster-bg-color-secondary-4:var(--monster-color-red-1);--monster-color-tertiary-1:var(--monster-color-magenta-1);--monster-color-tertiary-2:var(--monster-color-magenta-6);--monster-color-tertiary-3:var(--monster-color-magenta-4);--monster-color-tertiary-4:var(--monster-color-magenta-4);--monster-bg-color-tertiary-1:var(--monster-color-gray-6);--monster-bg-color-tertiary-2:var(--monster-color-magenta-2);--monster-bg-color-tertiary-3:var(--monster-color-magenta-1);--monster-bg-color-tertiary-4:var(--monster-color-magenta-1);--monster-color-destructive-1:var(--monster-color-red-1);--monster-color-destructive-2:var(--monster-color-red-3);--monster-color-destructive-3:var(--monster-color-red-4);--monster-color-destructive-4:var(--monster-color-red-1);--monster-bg-color-destructive-1:var(--monster-color-red-5);--monster-bg-color-destructive-2:var(--monster-color-gray-6);--monster-bg-color-destructive-3:var(--monster-color-red-1);--monster-bg-color-destructive-4:var(--monster-color-red-4);--monster-color-success-1:var(--monster-color-green-1);--monster-color-success-2:var(--monster-color-green-2);--monster-color-success-3:var(--monster-color-green-4);--monster-color-success-4:var(--monster-color-green-1);--monster-bg-color-success-1:var(--monster-color-green-5);--monster-bg-color-success-2:var(--monster-color-gray-6);--monster-bg-color-success-3:var(--monster-color-green-1);--monster-bg-color-success-4:var(--monster-color-green-3);--monster-color-warning-1:var(--monster-color-orange-1);--monster-color-warning-2:var(--monster-color-orange-3);--monster-color-warning-3:var(--monster-color-orange-4);--monster-color-warning-4:var(--monster-color-orange-1);--monster-bg-color-warning-1:var(--monster-color-orange-5);--monster-bg-color-warning-2:var(--monster-color-gray-6);--monster-bg-color-warning-3:var(--monster-color-orange-1);--monster-bg-color-warning-4:var(--monster-color-orange-3);--monster-color-error-1:var(--monster-color-red-1);--monster-color-error-2:var(--monster-color-red-3);--monster-color-error-3:var(--monster-color-red-4);--monster-color-error-4:var(--monster-color-red-1);--monster-bg-color-error-1:var(--monster-color-red-5);--monster-bg-color-error-2:var(--monster-color-gray-6);--monster-bg-color-error-3:var(--monster-color-red-1);--monster-bg-color-error-4:var(--monster-color-red-4);--monster-color-selection-1:var(--monster-color-gray-6);--monster-color-selection-2:var(--monster-color-gray-6);--monster-color-selection-3:var(--monster-color-gray-6);--monster-color-selection-4:var(--monster-color-gray-1);--monster-bg-color-selection-1:var(--monster-color-yellow-2);--monster-bg-color-selection-2:var(--monster-color-yellow-1);--monster-bg-color-selection-3:var(--monster-color-yellow-2);--monster-bg-color-selection-4:var(--monster-color-yellow-6);--monster-color-primary-disabled-1:var(--monster-color-gray-4);--monster-color-primary-disabled-2:var(--monster-color-gray-4);--monster-color-primary-disabled-3:var(--monster-color-gray-3);--monster-color-primary-disabled-4:var(--monster-color-gray-3);--monster-bg-color-primary-disabled-1:var(--monster-color-gray-6);--monster-bg-color-primary-disabled-2:var(--monster-color-gray-3);--monster-bg-color-primary-disabled-3:var(--monster-color-gray-2);--monster-bg-color-primary-disabled-4:var(--monster-color-gray-1)}}:after,:before,:root{--monster-color-gray-1:#f6f6f6;--monster-color-gray-2:#e2e2e2;--monster-color-gray-3:#8b8b8b;--monster-color-gray-4:#6f6f6f;--monster-color-gray-5:#3e3e3e;--monster-color-gray-6:#222;--monster-color-rose-1:#fff7f9;--monster-color-rose-2:#ffdce5;--monster-color-rose-3:#ff3b8d;--monster-color-rose-4:#db0072;--monster-color-rose-5:#800040;--monster-color-rose-6:#4c0023;--monster-color-raspberry-1:#fff8f8;--monster-color-raspberry-2:#ffdddf;--monster-color-raspberry-3:#ff426c;--monster-color-raspberry-4:#de0051;--monster-color-raspberry-5:#82002c;--monster-color-raspberry-6:#510018;--monster-color-red-1:#fff8f6;--monster-color-red-2:#ffddd8;--monster-color-red-3:#ff4647;--monster-color-red-4:#e0002b;--monster-color-red-5:#830014;--monster-color-red-6:#530003;--monster-color-orange-1:#fff8f5;--monster-color-orange-2:#ffded1;--monster-color-orange-3:#fd4d00;--monster-color-orange-4:#cd3c00;--monster-color-orange-5:#752100;--monster-color-orange-6:#401600;--monster-color-cinnamon-1:#fff8f3;--monster-color-cinnamon-2:#ffdfc6;--monster-color-cinnamon-3:#d57300;--monster-color-cinnamon-4:#ac5c00;--monster-color-cinnamon-5:#633300;--monster-color-cinnamon-6:#371d00;--monster-color-amber-1:#fff8ef;--monster-color-amber-2:#ffe0b2;--monster-color-amber-3:#b98300;--monster-color-amber-4:#926700;--monster-color-amber-5:#523800;--monster-color-amber-6:#302100;--monster-color-yellow-1:#fff9e5;--monster-color-yellow-2:#ffe53e;--monster-color-yellow-3:#9c8b00;--monster-color-yellow-4:#7d6f00;--monster-color-yellow-5:#463d00;--monster-color-yellow-6:#292300;--monster-color-lime-1:#f7ffac;--monster-color-lime-2:#d5f200;--monster-color-lime-3:#819300;--monster-color-lime-4:#677600;--monster-color-lime-5:#394100;--monster-color-lime-6:#222600;--monster-color-chartreuse-1:#e5ffc3;--monster-color-chartreuse-2:#98fb00;--monster-color-chartreuse-3:#5c9b00;--monster-color-chartreuse-4:#497c00;--monster-color-chartreuse-5:#264500;--monster-color-chartreuse-6:#182600;--monster-color-green-1:#e0ffd9;--monster-color-green-2:#72ff6c;--monster-color-green-3:#00a21f;--monster-color-green-4:#008217;--monster-color-green-5:#004908;--monster-color-green-6:#062800;--monster-color-emerald-1:#dcffe6;--monster-color-emerald-2:#5dffa2;--monster-color-emerald-3:#00a05a;--monster-color-emerald-4:#008147;--monster-color-emerald-5:#004825;--monster-color-emerald-6:#002812;--monster-color-aquamarine-1:#daffef;--monster-color-aquamarine-2:#42ffc6;--monster-color-aquamarine-3:#009f78;--monster-color-aquamarine-4:#007f5f;--monster-color-aquamarine-5:#004734;--monster-color-aquamarine-6:#00281b;--monster-color-teal-1:#d7fff7;--monster-color-teal-2:#00ffe4;--monster-color-teal-3:#009e8c;--monster-color-teal-4:#007c6e;--monster-color-teal-5:#00443c;--monster-color-teal-6:#002722;--monster-color-cyan-1:#c4fffe;--monster-color-cyan-2:#00fafb;--monster-color-cyan-3:#00999a;--monster-color-cyan-4:#007a7b;--monster-color-cyan-5:#004344;--monster-color-cyan-6:#002525;--monster-color-powder-1:#dafaff;--monster-color-powder-2:#8df0ff;--monster-color-powder-3:#0098a9;--monster-color-powder-4:#007987;--monster-color-powder-5:#004048;--monster-color-powder-6:#002227;--monster-color-sky-1:#e3f7ff;--monster-color-sky-2:#aee9ff;--monster-color-sky-3:#0094b4;--monster-color-sky-4:#007590;--monster-color-sky-5:#00404f;--monster-color-sky-6:#001f28;--monster-color-cerulean-1:#e8f6ff;--monster-color-cerulean-2:#b9e3ff;--monster-color-cerulean-3:#0092c5;--monster-color-cerulean-4:#00749d;--monster-color-cerulean-5:#003c54;--monster-color-cerulean-6:#001d2a;--monster-color-azure-1:#e8f2ff;--monster-color-azure-2:#c6e0ff;--monster-color-azure-3:#008fdb;--monster-color-azure-4:#0071af;--monster-color-azure-5:#003b5e;--monster-color-azure-6:#001c30;--monster-color-blue-1:#f0f4ff;--monster-color-blue-2:#d4e0ff;--monster-color-blue-3:#0089fc;--monster-color-blue-4:#006dca;--monster-color-blue-5:#00386d;--monster-color-blue-6:#001a39;--monster-color-indigo-1:#f3f3ff;--monster-color-indigo-2:#deddff;--monster-color-indigo-3:#657eff;--monster-color-indigo-4:#0061fc;--monster-color-indigo-5:#00328a;--monster-color-indigo-6:#001649;--monster-color-violet-1:#f7f1ff;--monster-color-violet-2:#e8daff;--monster-color-violet-3:#9b70ff;--monster-color-violet-4:#794aff;--monster-color-violet-5:#2d0fbf;--monster-color-violet-6:#0b0074;--monster-color-purple-1:#fdf4ff;--monster-color-purple-2:#f7d9ff;--monster-color-purple-3:#d150ff;--monster-color-purple-4:#b01fe3;--monster-color-purple-5:#660087;--monster-color-purple-6:#3a004f;--monster-color-magenta-1:#fff3fc;--monster-color-magenta-2:#ffd7f6;--monster-color-magenta-3:#f911e0;--monster-color-magenta-4:#ca00b6;--monster-color-magenta-5:#740068;--monster-color-magenta-6:#44003c;--monster-color-pink-1:#fff7fb;--monster-color-pink-2:#ffdcec;--monster-color-pink-3:#ff2fb2;--monster-color-pink-4:#d2008f;--monster-color-pink-5:#790051;--monster-color-pink-6:#4b0030}.monster-border-primary-1,.monster-border-primary-2,.monster-border-primary-3,.monster-border-primary-4{border-shadow:var(--monster-box-shadow-1);border-radius:var(--monster-border-radius);border-style:var(--monster-border-style);border-width:var(--monster-border-width)}.monster-border-0{border-shadow:none;border-radius:0;border-style:none;border-width:0}.monster-border-primary-1{border-color:var(--monster-bg-color-primary-1)}.monster-border-primary-2{border-color:var(--monster-bg-color-primary-2)}.monster-border-primary-3{border-color:var(--monster-bg-color-primary-3)}.monster-border-primary-4{border-color:var(--monster-bg-color-primary-4)}.monster-border-secondary-1,.monster-border-secondary-2,.monster-border-secondary-3,.monster-border-secondary-4{border-shadow:var(--monster-box-shadow-1);border-radius:var(--monster-border-radius);border-style:var(--monster-border-style);border-width:var(--monster-border-width)}.monster-border-secondary-1{border-color:var(--monster-bg-color-secondary-1)}.monster-border-secondary-2{border-color:var(--monster-bg-color-secondary-2)}.monster-border-secondary-3{border-color:var(--monster-bg-color-secondary-3)}.monster-border-secondary-4{border-color:var(--monster-bg-color-secondary-4)}.monster-border-tertiary-1,.monster-border-tertiary-2,.monster-border-tertiary-3,.monster-border-tertiary-4{border-shadow:var(--monster-box-shadow-1);border-radius:var(--monster-border-radius);border-style:var(--monster-border-style);border-width:var(--monster-border-width)}.monster-border-tertiary-1{border-color:var(--monster-bg-color-tertiary-1)}.monster-border-tertiary-2{border-color:var(--monster-bg-color-tertiary-2)}.monster-border-tertiary-3{border-color:var(--monster-bg-color-tertiary-3)}.monster-border-tertiary-4{border-color:var(--monster-bg-color-tertiary-4)}[data-monster-role=control] div[data-monster-role=popper]{padding:2px}[data-monster-role=control] [data-monster-role=container] [data-monster-role=buttons]{display:flex;flex-direction:column}[data-monster-role=control] [data-monster-role=container] [data-monster-role=buttons] button{background:transparent;border:0}[data-monster-role=control] [data-monster-role=container] [data-monster-role=buttons] monster-message-state-button:not(:last-child){border-bottom:var(--monster-border-width) var(--monster-border-style) var(--monster-color-primary-1)}[data-monster-role=control] [data-monster-role=container] [data-monster-role=buttons] monster-message-state-button:not(:last-child) ::part(button){border-bottom:var(--monster-border-width) var(--monster-border-style) var(--monster-color-primary-1)}
24
- }`,
25
- 0,
26
- );
24
+ }`, 0);
27
25
  } catch (e) {
28
- addAttributeToken(
29
- document.getRootNode().querySelector("html"),
30
- ATTRIBUTE_ERRORMESSAGE,
31
- e + "",
32
- );
26
+ addAttributeToken(document.getRootNode().querySelector('html'), ATTRIBUTE_ERRORMESSAGE, e + "");
33
27
  }
@@ -1,3 +1,4 @@
1
+
1
2
  /**
2
3
  * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
4
  * Node module: @schukai/monster
@@ -5,10 +6,10 @@
5
6
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
6
7
  */
7
8
 
8
- import { addAttributeToken } from "../../../dom/attributes.mjs";
9
- import { ATTRIBUTE_ERRORMESSAGE } from "../../../dom/constants.mjs";
9
+ import {addAttributeToken} from "../../../dom/attributes.mjs";
10
+ import {ATTRIBUTE_ERRORMESSAGE} from "../../../dom/constants.mjs";
10
11
 
11
- export { ApiButtonStyleSheet };
12
+ export {ApiButtonStyleSheet}
12
13
 
13
14
  /**
14
15
  * @private
@@ -17,17 +18,10 @@ export { ApiButtonStyleSheet };
17
18
  const ApiButtonStyleSheet = new CSSStyleSheet();
18
19
 
19
20
  try {
20
- ApiButtonStyleSheet.insertRule(
21
- `
21
+ ApiButtonStyleSheet.insertRule(`
22
22
  @layer apibutton {
23
23
 
24
- }`,
25
- 0,
26
- );
24
+ }`, 0);
27
25
  } catch (e) {
28
- addAttributeToken(
29
- document.getRootNode().querySelector("html"),
30
- ATTRIBUTE_ERRORMESSAGE,
31
- e + "",
32
- );
26
+ addAttributeToken(document.getRootNode().querySelector('html'), ATTRIBUTE_ERRORMESSAGE, e + "");
33
27
  }