@luzmo/analytics-components-kit 1.0.1-alpha.42 → 1.0.1-alpha.43

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 (101) hide show
  1. package/components/{calculate-data-item-icon-BFpVWXnR.js → calculate-data-item-icon-DKjZwr-x.js} +1 -1
  2. package/components/{calculate-data-item-icon-C_3QUGmB.cjs → calculate-data-item-icon-DlfbBvFN.cjs} +1 -1
  3. package/components/display-settings/display-settings.d.ts +1 -0
  4. package/components/display-settings/index.cjs +1 -86
  5. package/components/display-settings/index.js +6 -216
  6. package/components/display-settings-binning/index.cjs +1 -1
  7. package/components/display-settings-binning/index.js +5 -5
  8. package/components/display-settings-datetime/index.cjs +1 -1
  9. package/components/display-settings-datetime/index.js +5 -5
  10. package/components/display-settings-grand-totals/index.cjs +1 -1
  11. package/components/display-settings-grand-totals/index.js +6 -6
  12. package/components/display-settings-numeric/index.cjs +1 -1
  13. package/components/display-settings-numeric/index.js +5 -5
  14. package/components/display-settings-period-over-period/index.cjs +1 -1
  15. package/components/display-settings-period-over-period/index.js +4 -4
  16. package/components/draggable-data-item/index.cjs +1 -1
  17. package/components/draggable-data-item/index.js +3 -3
  18. package/components/draggable-data-item-level/index.cjs +1 -1
  19. package/components/draggable-data-item-level/index.js +5 -5
  20. package/components/droppable-slot/droppable-slot.d.ts +6 -2
  21. package/components/droppable-slot/index.cjs +71 -10
  22. package/components/droppable-slot/index.js +658 -128
  23. package/components/edit-item/index.cjs +1 -1
  24. package/components/edit-item/index.js +4 -4
  25. package/components/edit-option/index.cjs +1 -1
  26. package/components/edit-option/index.js +1 -1
  27. package/components/edit-option-action-button-group/index.cjs +1 -1
  28. package/components/edit-option-action-button-group/index.js +3 -3
  29. package/components/{edit-option-base-BQc4gXup.js → edit-option-base-CbpBi6I7.js} +3 -3
  30. package/components/{edit-option-base-ByphLI4J.cjs → edit-option-base-Db3JjWMk.cjs} +1 -1
  31. package/components/edit-option-color-picker/index.cjs +1 -1
  32. package/components/edit-option-color-picker/index.js +2 -2
  33. package/components/edit-option-multi-language-field/index.cjs +1 -1
  34. package/components/edit-option-multi-language-field/index.js +2 -2
  35. package/components/edit-option-number-field/index.cjs +1 -1
  36. package/components/edit-option-number-field/index.js +2 -2
  37. package/components/edit-option-picker/index.cjs +1 -1
  38. package/components/edit-option-picker/index.js +2 -2
  39. package/components/edit-option-position-picker/index.cjs +1 -1
  40. package/components/edit-option-position-picker/index.js +2 -2
  41. package/components/edit-option-positions-number-field/index.cjs +1 -1
  42. package/components/edit-option-positions-number-field/index.js +4 -4
  43. package/components/edit-option-radio-button-group/index.cjs +1 -1
  44. package/components/edit-option-radio-button-group/index.js +2 -2
  45. package/components/edit-option-slider/index.cjs +1 -1
  46. package/components/edit-option-slider/index.js +2 -2
  47. package/components/edit-option-switch/index.cjs +1 -1
  48. package/components/edit-option-switch/index.js +2 -2
  49. package/components/edit-option-text-field/index.cjs +1 -1
  50. package/components/edit-option-text-field/index.js +2 -2
  51. package/components/filter-data-item-picker/index.cjs +1 -1
  52. package/components/filter-data-item-picker/index.js +2 -2
  53. package/components/filter-expression-picker/index.cjs +1 -1
  54. package/components/filter-expression-picker/index.js +1 -1
  55. package/components/filter-item/index.cjs +1 -1
  56. package/components/filter-item/index.js +3 -3
  57. package/components/filter-value-picker/index.cjs +1 -1
  58. package/components/filter-value-picker/index.js +1 -1
  59. package/components/filter-value-picker-datetime/index.cjs +1 -1
  60. package/components/filter-value-picker-datetime/index.js +1 -1
  61. package/components/filter-value-picker-hierarchy/index.cjs +1 -1
  62. package/components/filter-value-picker-hierarchy/index.js +2 -2
  63. package/components/filter-value-picker-numeric/index.cjs +1 -1
  64. package/components/filter-value-picker-numeric/index.js +2 -2
  65. package/components/{focusable-BTJYY_Mf.cjs → focusable-B8t8a-WJ.cjs} +1 -1
  66. package/components/{focusable-BXhQz3_k.js → focusable-Bhf_beoW.js} +1 -1
  67. package/components/grid/index.cjs +8 -8
  68. package/components/grid/index.js +126 -126
  69. package/components/{if-defined-CTc4c9nr.js → if-defined-Dg09naf2.js} +1 -1
  70. package/components/{if-defined-Bulnuz1A.cjs → if-defined-DjdbEoAa.cjs} +1 -1
  71. package/components/{index-8fxgV8-A.js → index-BNCgbOV2.js} +2 -2
  72. package/components/{index-DQbl3h5H.cjs → index-BNFpjvqX.cjs} +1 -1
  73. package/components/index-BqMMcuLX.cjs +121 -0
  74. package/components/index-Cw_HnduG.js +304 -0
  75. package/components/{index-BiY07GvX.js → index-DM0JWaVq.js} +4 -4
  76. package/components/{index-DM96Q1fX.cjs → index-MVmoiSxL.cjs} +1 -1
  77. package/components/index.cjs +1 -1
  78. package/components/index.js +3 -3
  79. package/components/{luzmo-icons-CP__dRRM.cjs → luzmo-icons-Bvm-_ECi.cjs} +1 -1
  80. package/components/{luzmo-icons-B2K7AcCF.js → luzmo-icons-DnAqAQCX.js} +9 -9
  81. package/components/{property-Dn4zSyxu.js → property-BFMfZY1k.js} +81 -78
  82. package/components/property-BV1QaY8E.cjs +42 -0
  83. package/components/{sized-mixin-BNtmplgF.cjs → sized-mixin-C48t6K7U.cjs} +1 -1
  84. package/components/{sized-mixin-BR_Ii7le.js → sized-mixin-CkdMApAU.js} +1 -1
  85. package/components/slot-contents-picker/index.cjs +1 -1
  86. package/components/slot-contents-picker/index.js +8 -8
  87. package/components/slot-menu/index.cjs +9 -9
  88. package/components/slot-menu/index.js +149 -80
  89. package/components/slot-menu/slot-menu.d.ts +5 -5
  90. package/components/slot-menu-list/index.cjs +1 -1
  91. package/components/slot-menu-list/index.js +4 -4
  92. package/components/{state-vVJlsarL.js → state-BSTa7W6f.js} +1 -1
  93. package/components/{state-BxZEcclm.cjs → state-CuE7TJCY.cjs} +1 -1
  94. package/components/{task-qPJdeXO1.cjs → task-0B-FC3rj.cjs} +1 -1
  95. package/components/{task-PQaVY8Iw.js → task-CDsB8Kbr.js} +1 -1
  96. package/custom-elements.json +24 -12
  97. package/package.json +1 -1
  98. package/utils/drag/draggable.d.ts +13 -0
  99. package/utils/store/slot-context.d.ts +4 -0
  100. package/utils/store/slot-store.d.ts +21 -0
  101. package/components/property-BCb4Kybn.cjs +0 -42
@@ -17,47 +17,571 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- import { a as C } from "../get-css-variable-YlLiVgo8.js";
21
- import { l as S } from "../localized-decorator-DNr1P1m0.js";
22
- import { m as f, g as k, t as w, s as L } from "../set-locale-DbEAMqUs.js";
23
- import { h as _ } from "../task-PQaVY8Iw.js";
24
- import { a7 as v, ac as $, aa as D } from "../luzmo-icons-B2K7AcCF.js";
20
+ import { a as io } from "../get-css-variable-YlLiVgo8.js";
21
+ import { a as ao, s as no } from "../index-Cw_HnduG.js";
22
+ import { l as co } from "../localized-decorator-DNr1P1m0.js";
23
+ import { m as x, g as po, t as uo, s as mo } from "../set-locale-DbEAMqUs.js";
24
+ import { h as ho } from "../task-CDsB8Kbr.js";
25
+ import { a7 as F, aa as fo, ab as go } from "../luzmo-icons-DnAqAQCX.js";
25
26
  import "../index-BmshD32H.js";
26
- import { l as A } from "../localize-BX7q0S0M.js";
27
- import { x as g, r as E, n as p } from "../property-Dn4zSyxu.js";
28
- import { e as M } from "../query-Ddbd72Um.js";
29
- import { L as O } from "../focusable-BXhQz3_k.js";
30
- import { S as T } from "../sized-mixin-BR_Ii7le.js";
27
+ import { l as bo } from "../localize-BX7q0S0M.js";
28
+ import { x as w, r as vo, n as C } from "../property-BFMfZY1k.js";
29
+ import { e as zo } from "../query-Ddbd72Um.js";
30
+ import { L as yo } from "../focusable-Bhf_beoW.js";
31
+ import { S as Co } from "../sized-mixin-CkdMApAU.js";
31
32
  import "../slot-menu/index.js";
32
- const x = () => {
33
+ const so = () => {
33
34
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
34
- const t = document.createElement("style");
35
- t.setAttribute("data-luzmo-vars", ""), t.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-color-disabled);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: #b3241f;--luzmo-negative-color-down: #9f231f;--luzmo-negative-color-focus: #b3241f;--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: rgb(17, 128, 86);--luzmo-positive-color-down: rgb(16, 105, 71);--luzmo-positive-color-focus: rgb(17, 128, 86);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: rgb(70, 70, 70);--luzmo-selected-color-down: rgb(40, 40, 40);--luzmo-selected-color-focus: rgb(70, 70, 70);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: rgb(0, 0, 0);--luzmo-selected-color-hard-down: rgb(0, 0, 0);--luzmo-selected-color-hard-focus: rgb(0, 0, 0);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(t);
35
+ const o = document.createElement("style");
36
+ o.setAttribute("data-luzmo-vars", ""), o.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-color-disabled);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: #b3241f;--luzmo-negative-color-down: #9f231f;--luzmo-negative-color-focus: #b3241f;--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: rgb(17, 128, 86);--luzmo-positive-color-down: rgb(16, 105, 71);--luzmo-positive-color-focus: rgb(17, 128, 86);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: rgb(70, 70, 70);--luzmo-selected-color-down: rgb(40, 40, 40);--luzmo-selected-color-focus: rgb(70, 70, 70);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: rgb(0, 0, 0);--luzmo-selected-color-hard-down: rgb(0, 0, 0);--luzmo-selected-color-hard-focus: rgb(0, 0, 0);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(o);
36
37
  }
37
38
  };
38
- x();
39
- const U = ":host{font-family:var(--luzmo-droppable-slot-font-family, var(--luzmo-font-family))}.droppable-slot[filled]{cursor:pointer;border:var(--luzmo-droppable-slot-filled-border-width, var(--droppable-slot-filled-border-width)) var(--luzmo-droppable-slot-filled-border-style, var(--droppable-slot-filled-border-style)) var(--luzmo-droppable-slot-filled-border-color, var(--droppable-slot-filled-border-color));background-color:var(--luzmo-droppable-slot-filled-background-color, var(--droppable-slot-filled-background-color));color:var(--luzmo-droppable-slot-filled-color, var(--droppable-slot-filled-color))}.droppable-slot{background-color:var(--luzmo-droppable-slot-background-color, var(--droppable-slot-background-color));color:var(--luzmo-droppable-slot-font-color, var(--droppable-slot-font-color));border:var(--luzmo-droppable-slot-border-width, var(--droppable-slot-border-width)) var(--luzmo-droppable-slot-border-style, var(--droppable-slot-border-style)) var(--luzmo-droppable-slot-border-color, var(--droppable-slot-border-color));display:flex;justify-content:space-between;align-items:center;padding-left:var(--luzmo-droppable-slot-edge-to-label, var(--droppable-slot-edge-to-label));gap:var(--luzmo-spacing-5);border-radius:var(--luzmo-border-radius);height:var(--luzmo-droppable-slot-height, var(--droppable-slot-height));cursor:move}:host([accept-drag]) .droppable-slot{background-color:var(--luzmo-droppable-slot-accept-drag-background-color, var(--droppable-slot-accept-drag-background-color));color:var(--luzmo-droppable-slot-accept-drag-font-color, var(--droppable-slot-accept-drag-font-color));border-color:var(--luzmo-droppable-slot-accept-drag-border-color, var(--droppable-slot-accept-drag-border-color))}:host([accept-drag]) .controls{background-color:var(--luzmo-droppable-slot-accept-drag-controls-background-color, var(--droppable-slot-accept-drag-controls-background-color));color:var(--luzmo-droppable-slot-accept-drag-controls-color, var(--droppable-slot-accept-drag-controls-color))}:host([disabled]) .droppable-slot{background-color:var(--luzmo-droppable-slot-background-color-disabled, var(--droppable-slot-background-color-disabled));color:var(--luzmo-droppable-slot-color-disabled, var(--droppable-slot-color-disabled));cursor:not-allowed}:host([disabled]) .drag-handle-icon{opacity:.25;font-size:12px}.drag-handle-icon{opacity:.5;font-size:12px}.droppable-slot-label{font-size:var(--luzmo-droppable-slot-label-font-size, var(--droppable-slot-label-font-size));flex-grow:1;margin-right:var(--luzmo-droppable-slot-text-to-controls, var(--droppable-slot-text-to-controls));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.controls{height:100%;display:flex;align-items:center;gap:var(--luzmo-droppable-slot-controls-gap, var(--droppable-slot-controls-gap));background-color:var(--luzmo-droppable-slot-controls-background-color, var(--droppable-slot-controls-background-color));color:var(--luzmo-droppable-slot-controls-color, var(--droppable-slot-controls-color));margin-right:var(--luzmo-droppable-slot-controls-to-edge, var(--droppable-slot-controls-to-edge));padding:0 var(--luzmo-droppable-slot-controls-horizontal-padding, var(--droppable-slot-controls-horizontal-padding))}.controls div{cursor:pointer;height:100%;display:flex;align-items:center;padding:0 var(--luzmo-droppable-slot-controls-control-horizontal-padding, var(--droppable-slot-controls-control-horizontal-padding))}luzmo-slot-menu[placement=bottom],luzmo-slot-menu[placement=top],luzmo-slot-menu[placement=bottom-start],luzmo-slot-menu[placement=top-start],luzmo-slot-menu[placement=bottom-end],luzmo-slot-menu[placement=top-end]{margin:var(--luzmo-droppable-slot-overlay-vertical-gap, var(--droppable-slot-overlay-vertical-gap)) 0}luzmo-slot-menu[placement=left],luzmo-slot-menu[placement=right],luzmo-slot-menu[placement=left-start],luzmo-slot-menu[placement=right-start],luzmo-slot-menu[placement=left-end],luzmo-slot-menu[placement=right-end]{margin:0 var(--luzmo-droppable-slot-overlay-horizontal-gap, var(--droppable-slot-overlay-horizontal-gap))}:host{--droppable-slot-border-width: var(--luzmo-border-width);--droppable-slot-border-style: dashed;--droppable-slot-border-color: var(--luzmo-border-color);--droppable-slot-background-color: transparent;--droppable-slot-accept-drag-background-color: var(--luzmo-positive-color);--droppable-slot-accept-drag-color: white;--droppable-slot-accept-drag-border-color: var(--luzmo-positive-color-down);--droppable-slot-accept-drag-font-color: white;--droppable-slot-font-color: var(--luzmo-font-color);--droppable-slot-controls-background-color: var(--luzmo-primary-down);--droppable-slot-controls-color: var(--luzmo-primary-inverse-color);--droppable-slot-accept-drag-controls-background-color: var( --luzmo-positive-color-down );--droppable-slot-accept-drag-controls-color: white;--droppable-slot-text-to-controls: var(--luzmo-spacing-3);--droppable-slot-controls-to-edge: 0;--droppable-slot-controls-gap: var(--luzmo-spacing-2);--droppable-slot-controls-horizontal-padding: var(--luzmo-spacing-2);--droppable-slot-controls-control-horizontal-padding: var(--luzmo-spacing-3);--droppable-slot-filled-background-color: var(--luzmo-primary);--droppable-slot-filled-color: var(--luzmo-primary-inverse-color);--droppable-slot-filled-border-width: var(--luzmo-border-width);--droppable-slot-filled-border-style: solid;--droppable-slot-filled-border-color: var(--luzmo-primary-down);--droppable-slot-height: var(--luzmo-component-height);--droppable-slot-label-font-size: var(--luzmo-font-size);--droppable-slot-icon-type-font-size: var(--luzmo-font-size);--droppable-slot-edge-to-label: var(--luzmo-spacing-5);--droppable-slot-color-disabled: var(--luzmo-color-disabled);--droppable-slot-background-color-disabled: var( --luzmo-background-color-disabled )}:host{--droppable-slot-height: var(--luzmo-component-height);--droppable-slot-label-font-size: var(--luzmo-font-size);--droppable-slot-icon-type-font-size: var(--luzmo-font-size);--droppable-slot-horizontal-padding: var(--luzmo-spacing-4);--droppable-slot-overlay-horizontal-gap: var(--luzmo-spacing-4);--droppable-slot-overlay-vertical-gap: var(--luzmo-spacing-4)}:host([size=s]){--droppable-slot-height: var(--luzmo-component-height-s);--droppable-slot-label-font-size: var(--luzmo-font-size-s);--droppable-slot-icon-type-font-size: var(--luzmo-font-size-s);--droppable-slot-horizontal-padding: var(--luzmo-spacing-4);--droppable-slot-overlay-horizontal-gap: var(--luzmo-spacing-4);--droppable-slot-overlay-vertical-gap: var(--luzmo-spacing-4)}:host([size=l]){--droppable-slot-height: var(--luzmo-component-height-l);--droppable-slot-label-font-size: var(--luzmo-font-size-l);--droppable-slot-icon-type-font-size: var(--luzmo-font-size-l);--droppable-slot-horizontal-padding: var(--luzmo-spacing-5);--droppable-slot-overlay-horizontal-gap: var(--luzmo-spacing-5);--droppable-slot-overlay-vertical-gap: var(--luzmo-spacing-5)}:host([size=xl]){--droppable-slot-height: var(--luzmo-component-height-xl);--droppable-slot-label-font-size: var(--luzmo-font-size-xl);--droppable-slot-icon-type-font-size: var(--luzmo-font-size-xl);--droppable-slot-horizontal-padding: var(--luzmo-spacing-5);--droppable-slot-overlay-horizontal-gap: var(--luzmo-spacing-5);--droppable-slot-overlay-vertical-gap: var(--luzmo-spacing-5)}:host{box-sizing:border-box}", y = {
40
- Category: () => f("Category", { desc: "Category label" }),
41
- Measure: () => f("Measure", { desc: "Measure label" }),
42
- Legend: () => f("Legend", { desc: "Legend label" }),
43
- "Y-Axis": () => f("Y-Axis", { desc: "Y-Axis label" }),
44
- "X-Axis": () => f("X-Axis", { desc: "X-Axis label" }),
45
- "Group by": () => f("Group by", { desc: "Group by label" })
39
+ so();
40
+ /**
41
+ * @license
42
+ * Copyright 2021 Google LLC
43
+ * SPDX-License-Identifier: BSD-3-Clause
44
+ */
45
+ class wo {
46
+ get value() {
47
+ return this.o;
48
+ }
49
+ set value(t) {
50
+ this.setValue(t);
51
+ }
52
+ setValue(t, e = !1) {
53
+ const r = e || !Object.is(t, this.o);
54
+ this.o = t, r && this.updateObservers();
55
+ }
56
+ constructor(t) {
57
+ this.subscriptions = /* @__PURE__ */ new Map(), this.updateObservers = () => {
58
+ for (const [e, { disposer: r }] of this.subscriptions) e(this.o, r);
59
+ }, t !== void 0 && (this.value = t);
60
+ }
61
+ addCallback(t, e, r) {
62
+ if (!r) return void t(this.value);
63
+ this.subscriptions.has(t) || this.subscriptions.set(t, { disposer: () => {
64
+ this.subscriptions.delete(t);
65
+ }, consumerHost: e });
66
+ const { disposer: l } = this.subscriptions.get(t);
67
+ t(this.value, l);
68
+ }
69
+ clearCallbacks() {
70
+ this.subscriptions.clear();
71
+ }
72
+ }
73
+ /**
74
+ * @license
75
+ * Copyright 2021 Google LLC
76
+ * SPDX-License-Identifier: BSD-3-Clause
77
+ */
78
+ class xo extends Event {
79
+ constructor(t, e) {
80
+ super("context-provider", { bubbles: !0, composed: !0 }), this.context = t, this.contextTarget = e;
81
+ }
82
+ }
83
+ class So extends wo {
84
+ constructor(t, e, r) {
85
+ var l, d;
86
+ super(e.context !== void 0 ? e.initialValue : r), this.onContextRequest = (a) => {
87
+ if (a.context !== this.context) return;
88
+ const i = a.contextTarget ?? a.composedPath()[0];
89
+ i !== this.host && (a.stopPropagation(), this.addCallback(a.callback, i, a.subscribe));
90
+ }, this.onProviderRequest = (a) => {
91
+ if (a.context !== this.context || (a.contextTarget ?? a.composedPath()[0]) === this.host) return;
92
+ const i = /* @__PURE__ */ new Set();
93
+ for (const [m, { consumerHost: n }] of this.subscriptions) i.has(m) || (i.add(m), n.dispatchEvent(new ao(this.context, n, m, !0)));
94
+ a.stopPropagation();
95
+ }, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (d = (l = this.host).addController) == null || d.call(l, this);
96
+ }
97
+ attachListeners() {
98
+ this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
99
+ }
100
+ hostConnected() {
101
+ this.host.dispatchEvent(new xo(this.context, this.host));
102
+ }
103
+ }
104
+ var No = Object.defineProperty, ko = (o, t, e) => t in o ? No(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e, $ = (o, t, e) => (ko(o, typeof t != "symbol" ? t + "" : t, e), e), _o = (o, t, e) => {
105
+ if (!t.has(o))
106
+ throw TypeError("Cannot " + e);
107
+ }, M = (o, t) => {
108
+ if (Object(t) !== t)
109
+ throw TypeError('Cannot use the "in" operator on this value');
110
+ return o.has(t);
111
+ }, I = (o, t, e) => {
112
+ if (t.has(o))
113
+ throw TypeError("Cannot add the same private member more than once");
114
+ t instanceof WeakSet ? t.add(o) : t.set(o, e);
115
+ }, j = (o, t, e) => (_o(o, t, "access private method"), e);
116
+ /**
117
+ * @license
118
+ * Copyright Google LLC All Rights Reserved.
119
+ *
120
+ * Use of this source code is governed by an MIT-style license that can be
121
+ * found in the LICENSE file at https://angular.io/license
122
+ */
123
+ function Y(o, t) {
124
+ return Object.is(o, t);
125
+ }
126
+ /**
127
+ * @license
128
+ * Copyright Google LLC All Rights Reserved.
129
+ *
130
+ * Use of this source code is governed by an MIT-style license that can be
131
+ * found in the LICENSE file at https://angular.io/license
132
+ */
133
+ let h = null, k = !1, O = 1;
134
+ const L = /* @__PURE__ */ Symbol("SIGNAL");
135
+ function S(o) {
136
+ const t = h;
137
+ return h = o, t;
138
+ }
139
+ function Eo() {
140
+ return h;
141
+ }
142
+ function To() {
143
+ return k;
144
+ }
145
+ const q = {
146
+ version: 0,
147
+ lastCleanEpoch: 0,
148
+ dirty: !1,
149
+ producerNode: void 0,
150
+ producerLastReadVersion: void 0,
151
+ producerIndexOfThis: void 0,
152
+ nextProducerIndex: 0,
153
+ liveConsumerNode: void 0,
154
+ liveConsumerIndexOfThis: void 0,
155
+ consumerAllowSignalWrites: !1,
156
+ consumerIsAlwaysLive: !1,
157
+ producerMustRecompute: () => !1,
158
+ producerRecomputeValue: () => {
159
+ },
160
+ consumerMarkedDirty: () => {
161
+ },
162
+ consumerOnSignalRead: () => {
163
+ }
164
+ };
165
+ function A(o) {
166
+ if (k)
167
+ throw new Error(
168
+ typeof ngDevMode < "u" && ngDevMode ? "Assertion error: signal read during notification phase" : ""
169
+ );
170
+ if (h === null)
171
+ return;
172
+ h.consumerOnSignalRead(o);
173
+ const t = h.nextProducerIndex++;
174
+ if (N(h), t < h.producerNode.length && h.producerNode[t] !== o && W(h)) {
175
+ const e = h.producerNode[t];
176
+ D(e, h.producerIndexOfThis[t]);
177
+ }
178
+ h.producerNode[t] !== o && (h.producerNode[t] = o, h.producerIndexOfThis[t] = W(h) ? Q(o, h, t) : 0), h.producerLastReadVersion[t] = o.version;
179
+ }
180
+ function Io() {
181
+ O++;
182
+ }
183
+ function X(o) {
184
+ if (!(!o.dirty && o.lastCleanEpoch === O)) {
185
+ if (!o.producerMustRecompute(o) && !$o(o)) {
186
+ o.dirty = !1, o.lastCleanEpoch = O;
187
+ return;
188
+ }
189
+ o.producerRecomputeValue(o), o.dirty = !1, o.lastCleanEpoch = O;
190
+ }
191
+ }
192
+ function Z(o) {
193
+ if (o.liveConsumerNode === void 0)
194
+ return;
195
+ const t = k;
196
+ k = !0;
197
+ try {
198
+ for (const e of o.liveConsumerNode)
199
+ e.dirty || Lo(e);
200
+ } finally {
201
+ k = t;
202
+ }
203
+ }
204
+ function Oo() {
205
+ return (h == null ? void 0 : h.consumerAllowSignalWrites) !== !1;
206
+ }
207
+ function Lo(o) {
208
+ var t;
209
+ o.dirty = !0, Z(o), (t = o.consumerMarkedDirty) == null || t.call(o.wrapper ?? o);
210
+ }
211
+ function Ao(o) {
212
+ return o && (o.nextProducerIndex = 0), S(o);
213
+ }
214
+ function Do(o, t) {
215
+ if (S(t), !(!o || o.producerNode === void 0 || o.producerIndexOfThis === void 0 || o.producerLastReadVersion === void 0)) {
216
+ if (W(o))
217
+ for (let e = o.nextProducerIndex; e < o.producerNode.length; e++)
218
+ D(o.producerNode[e], o.producerIndexOfThis[e]);
219
+ for (; o.producerNode.length > o.nextProducerIndex; )
220
+ o.producerNode.pop(), o.producerLastReadVersion.pop(), o.producerIndexOfThis.pop();
221
+ }
222
+ }
223
+ function $o(o) {
224
+ N(o);
225
+ for (let t = 0; t < o.producerNode.length; t++) {
226
+ const e = o.producerNode[t], r = o.producerLastReadVersion[t];
227
+ if (r !== e.version || (X(e), r !== e.version))
228
+ return !0;
229
+ }
230
+ return !1;
231
+ }
232
+ function Q(o, t, e) {
233
+ var r;
234
+ if (U(o), N(o), o.liveConsumerNode.length === 0) {
235
+ (r = o.watched) == null || r.call(o.wrapper);
236
+ for (let l = 0; l < o.producerNode.length; l++)
237
+ o.producerIndexOfThis[l] = Q(o.producerNode[l], o, l);
238
+ }
239
+ return o.liveConsumerIndexOfThis.push(e), o.liveConsumerNode.push(t) - 1;
240
+ }
241
+ function D(o, t) {
242
+ var e;
243
+ if (U(o), N(o), typeof ngDevMode < "u" && ngDevMode && t >= o.liveConsumerNode.length)
244
+ throw new Error(
245
+ `Assertion error: active consumer index ${t} is out of bounds of ${o.liveConsumerNode.length} consumers)`
246
+ );
247
+ if (o.liveConsumerNode.length === 1) {
248
+ (e = o.unwatched) == null || e.call(o.wrapper);
249
+ for (let l = 0; l < o.producerNode.length; l++)
250
+ D(o.producerNode[l], o.producerIndexOfThis[l]);
251
+ }
252
+ const r = o.liveConsumerNode.length - 1;
253
+ if (o.liveConsumerNode[t] = o.liveConsumerNode[r], o.liveConsumerIndexOfThis[t] = o.liveConsumerIndexOfThis[r], o.liveConsumerNode.length--, o.liveConsumerIndexOfThis.length--, t < o.liveConsumerNode.length) {
254
+ const l = o.liveConsumerIndexOfThis[t], d = o.liveConsumerNode[t];
255
+ N(d), d.producerIndexOfThis[l] = t;
256
+ }
257
+ }
258
+ function W(o) {
259
+ var t;
260
+ return o.consumerIsAlwaysLive || (((t = o == null ? void 0 : o.liveConsumerNode) == null ? void 0 : t.length) ?? 0) > 0;
261
+ }
262
+ function N(o) {
263
+ o.producerNode ?? (o.producerNode = []), o.producerIndexOfThis ?? (o.producerIndexOfThis = []), o.producerLastReadVersion ?? (o.producerLastReadVersion = []);
264
+ }
265
+ function U(o) {
266
+ o.liveConsumerNode ?? (o.liveConsumerNode = []), o.liveConsumerIndexOfThis ?? (o.liveConsumerIndexOfThis = []);
267
+ }
268
+ /**
269
+ * @license
270
+ * Copyright Google LLC All Rights Reserved.
271
+ *
272
+ * Use of this source code is governed by an MIT-style license that can be
273
+ * found in the LICENSE file at https://angular.io/license
274
+ */
275
+ function J(o) {
276
+ if (X(o), A(o), o.value === V)
277
+ throw o.error;
278
+ return o.value;
279
+ }
280
+ function Mo(o) {
281
+ const t = Object.create(Po);
282
+ t.computation = o;
283
+ const e = () => J(t);
284
+ return e[L] = t, e;
285
+ }
286
+ const P = /* @__PURE__ */ Symbol("UNSET"), R = /* @__PURE__ */ Symbol("COMPUTING"), V = /* @__PURE__ */ Symbol("ERRORED"), Po = {
287
+ ...q,
288
+ value: P,
289
+ dirty: !0,
290
+ error: null,
291
+ equal: Y,
292
+ producerMustRecompute(o) {
293
+ return o.value === P || o.value === R;
294
+ },
295
+ producerRecomputeValue(o) {
296
+ if (o.value === R)
297
+ throw new Error("Detected cycle in computations.");
298
+ const t = o.value;
299
+ o.value = R;
300
+ const e = Ao(o);
301
+ let r, l = !1;
302
+ try {
303
+ r = o.computation.call(o.wrapper), l = t !== P && t !== V && o.equal.call(o.wrapper, t, r);
304
+ } catch (d) {
305
+ r = V, o.error = d;
306
+ } finally {
307
+ Do(o, e);
308
+ }
309
+ if (l) {
310
+ o.value = t;
311
+ return;
312
+ }
313
+ o.value = r, o.version++;
314
+ }
46
315
  };
47
- var G = Object.defineProperty, j = Object.getOwnPropertyDescriptor, n = (t, o, l, e) => {
48
- for (var r = e > 1 ? void 0 : e ? j(o, l) : o, i = t.length - 1, s; i >= 0; i--)
49
- (s = t[i]) && (r = (e ? s(o, l, r) : s(r)) || r);
50
- return e && r && G(o, l, r), r;
316
+ /**
317
+ * @license
318
+ * Copyright Google LLC All Rights Reserved.
319
+ *
320
+ * Use of this source code is governed by an MIT-style license that can be
321
+ * found in the LICENSE file at https://angular.io/license
322
+ */
323
+ function Ro() {
324
+ throw new Error();
325
+ }
326
+ let Wo = Ro;
327
+ function Vo() {
328
+ Wo();
329
+ }
330
+ /**
331
+ * @license
332
+ * Copyright Google LLC All Rights Reserved.
333
+ *
334
+ * Use of this source code is governed by an MIT-style license that can be
335
+ * found in the LICENSE file at https://angular.io/license
336
+ */
337
+ function qo(o) {
338
+ const t = Object.create(Fo);
339
+ t.value = o;
340
+ const e = () => (A(t), t.value);
341
+ return e[L] = t, e;
342
+ }
343
+ function Uo() {
344
+ return A(this), this.value;
345
+ }
346
+ function Go(o, t) {
347
+ Oo() || Vo(), o.equal.call(o.wrapper, o.value, t) || (o.value = t, jo(o));
348
+ }
349
+ const Fo = {
350
+ ...q,
351
+ equal: Y,
352
+ value: void 0
51
353
  };
52
- let a = class extends T(O, {
354
+ function jo(o) {
355
+ o.version++, Io(), Z(o);
356
+ }
357
+ /**
358
+ * @license
359
+ * Copyright 2024 Bloomberg Finance L.P.
360
+ *
361
+ * Licensed under the Apache License, Version 2.0 (the "License");
362
+ * you may not use this file except in compliance with the License.
363
+ * You may obtain a copy of the License at
364
+ *
365
+ * http://www.apache.org/licenses/LICENSE-2.0
366
+ *
367
+ * Unless required by applicable law or agreed to in writing, software
368
+ * distributed under the License is distributed on an "AS IS" BASIS,
369
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
370
+ * See the License for the specific language governing permissions and
371
+ * limitations under the License.
372
+ */
373
+ const f = Symbol("node");
374
+ var _;
375
+ ((o) => {
376
+ var t, e, r, l;
377
+ class d {
378
+ constructor(m, n = {}) {
379
+ I(this, e), $(this, t);
380
+ const u = qo(m)[L];
381
+ if (this[f] = u, u.wrapper = this, n) {
382
+ const v = n.equals;
383
+ v && (u.equal = v), u.watched = n[o.subtle.watched], u.unwatched = n[o.subtle.unwatched];
384
+ }
385
+ }
386
+ get() {
387
+ if (!(0, o.isState)(this))
388
+ throw new TypeError("Wrong receiver type for Signal.State.prototype.get");
389
+ return Uo.call(this[f]);
390
+ }
391
+ set(m) {
392
+ if (!(0, o.isState)(this))
393
+ throw new TypeError("Wrong receiver type for Signal.State.prototype.set");
394
+ if (To())
395
+ throw new Error("Writes to signals not permitted during Watcher callback");
396
+ const n = this[f];
397
+ Go(n, m);
398
+ }
399
+ }
400
+ t = f, e = /* @__PURE__ */ new WeakSet(), o.isState = (i) => typeof i == "object" && M(e, i), o.State = d;
401
+ class a {
402
+ // Create a Signal which evaluates to the value returned by the callback.
403
+ // Callback is called with this signal as the parameter.
404
+ constructor(m, n) {
405
+ I(this, l), $(this, r);
406
+ const u = Mo(m)[L];
407
+ if (u.consumerAllowSignalWrites = !0, this[f] = u, u.wrapper = this, n) {
408
+ const v = n.equals;
409
+ v && (u.equal = v), u.watched = n[o.subtle.watched], u.unwatched = n[o.subtle.unwatched];
410
+ }
411
+ }
412
+ get() {
413
+ if (!(0, o.isComputed)(this))
414
+ throw new TypeError("Wrong receiver type for Signal.Computed.prototype.get");
415
+ return J(this[f]);
416
+ }
417
+ }
418
+ r = f, l = /* @__PURE__ */ new WeakSet(), o.isComputed = (i) => typeof i == "object" && M(l, i), o.Computed = a, ((i) => {
419
+ var m, n, b, u;
420
+ function v(p) {
421
+ let c, s = null;
422
+ try {
423
+ s = S(null), c = p();
424
+ } finally {
425
+ S(s);
426
+ }
427
+ return c;
428
+ }
429
+ i.untrack = v;
430
+ function E(p) {
431
+ var c;
432
+ if (!(0, o.isComputed)(p) && !(0, o.isWatcher)(p))
433
+ throw new TypeError("Called introspectSources without a Computed or Watcher argument");
434
+ return ((c = p[f].producerNode) == null ? void 0 : c.map((s) => s.wrapper)) ?? [];
435
+ }
436
+ i.introspectSources = E;
437
+ function K(p) {
438
+ var c;
439
+ if (!(0, o.isComputed)(p) && !(0, o.isState)(p))
440
+ throw new TypeError("Called introspectSinks without a Signal argument");
441
+ return ((c = p[f].liveConsumerNode) == null ? void 0 : c.map((s) => s.wrapper)) ?? [];
442
+ }
443
+ i.introspectSinks = K;
444
+ function oo(p) {
445
+ if (!(0, o.isComputed)(p) && !(0, o.isState)(p))
446
+ throw new TypeError("Called hasSinks without a Signal argument");
447
+ const c = p[f].liveConsumerNode;
448
+ return c ? c.length > 0 : !1;
449
+ }
450
+ i.hasSinks = oo;
451
+ function to(p) {
452
+ if (!(0, o.isComputed)(p) && !(0, o.isWatcher)(p))
453
+ throw new TypeError("Called hasSources without a Computed or Watcher argument");
454
+ const c = p[f].producerNode;
455
+ return c ? c.length > 0 : !1;
456
+ }
457
+ i.hasSources = to;
458
+ class eo {
459
+ // When a (recursive) source of Watcher is written to, call this callback,
460
+ // if it hasn't already been called since the last `watch` call.
461
+ // No signals may be read or written during the notify.
462
+ constructor(c) {
463
+ I(this, n), I(this, b), $(this, m);
464
+ let s = Object.create(q);
465
+ s.wrapper = this, s.consumerMarkedDirty = c, s.consumerIsAlwaysLive = !0, s.consumerAllowSignalWrites = !1, s.producerNode = [], this[f] = s;
466
+ }
467
+ // Add these signals to the Watcher's set, and set the watcher to run its
468
+ // notify callback next time any signal in the set (or one of its dependencies) changes.
469
+ // Can be called with no arguments just to reset the "notified" state, so that
470
+ // the notify callback will be invoked again.
471
+ watch(...c) {
472
+ if (!(0, o.isWatcher)(this))
473
+ throw new TypeError("Called unwatch without Watcher receiver");
474
+ j(this, b, u).call(this, c);
475
+ const s = this[f];
476
+ s.dirty = !1;
477
+ const z = S(s);
478
+ for (const T of c)
479
+ A(T[f]);
480
+ S(z);
481
+ }
482
+ // Remove these signals from the watched set (e.g., for an effect which is disposed)
483
+ unwatch(...c) {
484
+ if (!(0, o.isWatcher)(this))
485
+ throw new TypeError("Called unwatch without Watcher receiver");
486
+ j(this, b, u).call(this, c);
487
+ const s = this[f];
488
+ N(s);
489
+ for (let z = s.producerNode.length - 1; z >= 0; z--)
490
+ if (c.includes(s.producerNode[z].wrapper)) {
491
+ D(s.producerNode[z], s.producerIndexOfThis[z]);
492
+ const T = s.producerNode.length - 1;
493
+ if (s.producerNode[z] = s.producerNode[T], s.producerIndexOfThis[z] = s.producerIndexOfThis[T], s.producerNode.length--, s.producerIndexOfThis.length--, s.nextProducerIndex--, z < s.producerNode.length) {
494
+ const lo = s.producerIndexOfThis[z], G = s.producerNode[z];
495
+ U(G), G.liveConsumerIndexOfThis[lo] = z;
496
+ }
497
+ }
498
+ }
499
+ // Returns the set of computeds in the Watcher's set which are still yet
500
+ // to be re-evaluated
501
+ getPending() {
502
+ if (!(0, o.isWatcher)(this))
503
+ throw new TypeError("Called getPending without Watcher receiver");
504
+ return this[f].producerNode.filter((s) => s.dirty).map((s) => s.wrapper);
505
+ }
506
+ }
507
+ m = f, n = /* @__PURE__ */ new WeakSet(), b = /* @__PURE__ */ new WeakSet(), u = function(p) {
508
+ for (const c of p)
509
+ if (!(0, o.isComputed)(c) && !(0, o.isState)(c))
510
+ throw new TypeError("Called watch/unwatch without a Computed or State argument");
511
+ }, o.isWatcher = (p) => M(n, p), i.Watcher = eo;
512
+ function ro() {
513
+ var p;
514
+ return (p = Eo()) == null ? void 0 : p.wrapper;
515
+ }
516
+ i.currentComputed = ro, i.watched = Symbol("watched"), i.unwatched = Symbol("unwatched");
517
+ })(o.subtle || (o.subtle = {}));
518
+ })(_ || (_ = {}));
519
+ /**
520
+ * @license
521
+ * Copyright 2023 Google LLC
522
+ * SPDX-License-Identifier: BSD-3-Clause
523
+ */
524
+ new FinalizationRegistry(({ watcher: o, signal: t }) => {
525
+ o.unwatch(t);
526
+ });
527
+ /**
528
+ * @license
529
+ * Copyright 2023 Google LLC
530
+ * SPDX-License-Identifier: BSD-3-Clause
531
+ */
532
+ _.State;
533
+ _.Computed;
534
+ const B = (o, t) => new _.State(o, t);
535
+ class Bo {
536
+ constructor() {
537
+ this.slotContents = B([]), this.activeIndex = B(0);
538
+ }
539
+ get activeContent() {
540
+ return this.slotContents.get()[this.activeIndex.get()];
541
+ }
542
+ /** Replace the full list (e.g. after dropping or re-ordering). */
543
+ setContents(t) {
544
+ this.slotContents.set(t), this.activeIndex.get() >= t.length && this.activeIndex.set(t.length > 0 ? t.length - 1 : 0);
545
+ }
546
+ /** Change which item is considered active (e.g. user clicked in list). */
547
+ updateActive(t) {
548
+ t >= 0 && t < this.slotContents.get().length && this.activeIndex.set(t);
549
+ }
550
+ /** Update / overwrite a single content entry. */
551
+ updateContent(t, e = this.activeIndex.get()) {
552
+ if (e < 0 || e >= this.slotContents.get().length) return;
553
+ const r = [...this.slotContents.get()];
554
+ r[e] = structuredClone(t), this.slotContents.set(r);
555
+ }
556
+ /** Remove one content entry by index. */
557
+ removeContent(t) {
558
+ if (t < 0 || t >= this.slotContents.get().length) return;
559
+ const e = this.slotContents.get().filter((r, l) => l !== t);
560
+ this.slotContents.set(e), this.activeIndex.get() >= e.length && this.activeIndex.set(e.length > 0 ? e.length - 1 : 0);
561
+ }
562
+ }
563
+ const Ho = ":host{font-family:var(--luzmo-droppable-slot-font-family, var(--luzmo-font-family))}.droppable-slot[filled]{cursor:pointer;border:var(--luzmo-droppable-slot-filled-border-width, var(--droppable-slot-filled-border-width)) var(--luzmo-droppable-slot-filled-border-style, var(--droppable-slot-filled-border-style)) var(--luzmo-droppable-slot-filled-border-color, var(--droppable-slot-filled-border-color));background-color:var(--luzmo-droppable-slot-filled-background-color, var(--droppable-slot-filled-background-color));color:var(--luzmo-droppable-slot-filled-color, var(--droppable-slot-filled-color))}.droppable-slot{background-color:var(--luzmo-droppable-slot-background-color, var(--droppable-slot-background-color));color:var(--luzmo-droppable-slot-font-color, var(--droppable-slot-font-color));border:var(--luzmo-droppable-slot-border-width, var(--droppable-slot-border-width)) var(--luzmo-droppable-slot-border-style, var(--droppable-slot-border-style)) var(--luzmo-droppable-slot-border-color, var(--droppable-slot-border-color));display:flex;justify-content:space-between;align-items:center;padding-left:var(--luzmo-droppable-slot-edge-to-label, var(--droppable-slot-edge-to-label));gap:var(--luzmo-spacing-5);border-radius:var(--luzmo-border-radius);height:var(--luzmo-droppable-slot-height, var(--droppable-slot-height));cursor:move}:host([accept-drag]) .droppable-slot{background-color:var(--luzmo-droppable-slot-accept-drag-background-color, var(--droppable-slot-accept-drag-background-color));color:var(--luzmo-droppable-slot-accept-drag-font-color, var(--droppable-slot-accept-drag-font-color));border-color:var(--luzmo-droppable-slot-accept-drag-border-color, var(--droppable-slot-accept-drag-border-color))}:host([accept-drag]) .controls{background-color:var(--luzmo-droppable-slot-accept-drag-controls-background-color, var(--droppable-slot-accept-drag-controls-background-color));color:var(--luzmo-droppable-slot-accept-drag-controls-color, var(--droppable-slot-accept-drag-controls-color))}:host([disabled]) .droppable-slot{background-color:var(--luzmo-droppable-slot-background-color-disabled, var(--droppable-slot-background-color-disabled));color:var(--luzmo-droppable-slot-color-disabled, var(--droppable-slot-color-disabled));cursor:not-allowed}:host([disabled]) .drag-handle-icon{opacity:.25;font-size:12px}.drag-handle-icon{opacity:.5;font-size:12px}.droppable-slot-label{font-size:var(--luzmo-droppable-slot-label-font-size, var(--droppable-slot-label-font-size));flex-grow:1;margin-right:var(--luzmo-droppable-slot-text-to-controls, var(--droppable-slot-text-to-controls));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.controls{height:100%;display:flex;align-items:center;gap:var(--luzmo-droppable-slot-controls-gap, var(--droppable-slot-controls-gap));background-color:var(--luzmo-droppable-slot-controls-background-color, var(--droppable-slot-controls-background-color));color:var(--luzmo-droppable-slot-controls-color, var(--droppable-slot-controls-color));margin-right:var(--luzmo-droppable-slot-controls-to-edge, var(--droppable-slot-controls-to-edge));padding:0 var(--luzmo-droppable-slot-controls-horizontal-padding, var(--droppable-slot-controls-horizontal-padding))}.controls div{cursor:pointer;height:100%;display:flex;align-items:center;padding:0 var(--luzmo-droppable-slot-controls-control-horizontal-padding, var(--droppable-slot-controls-control-horizontal-padding))}luzmo-slot-menu[placement=bottom],luzmo-slot-menu[placement=top],luzmo-slot-menu[placement=bottom-start],luzmo-slot-menu[placement=top-start],luzmo-slot-menu[placement=bottom-end],luzmo-slot-menu[placement=top-end]{margin:var(--luzmo-droppable-slot-overlay-vertical-gap, var(--droppable-slot-overlay-vertical-gap)) 0}luzmo-slot-menu[placement=left],luzmo-slot-menu[placement=right],luzmo-slot-menu[placement=left-start],luzmo-slot-menu[placement=right-start],luzmo-slot-menu[placement=left-end],luzmo-slot-menu[placement=right-end]{margin:0 var(--luzmo-droppable-slot-overlay-horizontal-gap, var(--droppable-slot-overlay-horizontal-gap))}:host{--droppable-slot-border-width: var(--luzmo-border-width);--droppable-slot-border-style: dashed;--droppable-slot-border-color: var(--luzmo-border-color);--droppable-slot-background-color: transparent;--droppable-slot-accept-drag-background-color: var(--luzmo-positive-color);--droppable-slot-accept-drag-color: white;--droppable-slot-accept-drag-border-color: var(--luzmo-positive-color-down);--droppable-slot-accept-drag-font-color: white;--droppable-slot-font-color: var(--luzmo-font-color);--droppable-slot-controls-background-color: var(--luzmo-primary-down);--droppable-slot-controls-color: var(--luzmo-primary-inverse-color);--droppable-slot-accept-drag-controls-background-color: var( --luzmo-positive-color-down );--droppable-slot-accept-drag-controls-color: white;--droppable-slot-text-to-controls: var(--luzmo-spacing-3);--droppable-slot-controls-to-edge: 0;--droppable-slot-controls-gap: var(--luzmo-spacing-2);--droppable-slot-controls-horizontal-padding: var(--luzmo-spacing-2);--droppable-slot-controls-control-horizontal-padding: var(--luzmo-spacing-3);--droppable-slot-filled-background-color: var(--luzmo-primary);--droppable-slot-filled-color: var(--luzmo-primary-inverse-color);--droppable-slot-filled-border-width: var(--luzmo-border-width);--droppable-slot-filled-border-style: solid;--droppable-slot-filled-border-color: var(--luzmo-primary-down);--droppable-slot-height: var(--luzmo-component-height);--droppable-slot-label-font-size: var(--luzmo-font-size);--droppable-slot-icon-type-font-size: var(--luzmo-font-size);--droppable-slot-edge-to-label: var(--luzmo-spacing-5);--droppable-slot-color-disabled: var(--luzmo-color-disabled);--droppable-slot-background-color-disabled: var( --luzmo-background-color-disabled )}:host{--droppable-slot-height: var(--luzmo-component-height);--droppable-slot-label-font-size: var(--luzmo-font-size);--droppable-slot-icon-type-font-size: var(--luzmo-font-size);--droppable-slot-horizontal-padding: var(--luzmo-spacing-4);--droppable-slot-overlay-horizontal-gap: var(--luzmo-spacing-4);--droppable-slot-overlay-vertical-gap: var(--luzmo-spacing-4)}:host([size=s]){--droppable-slot-height: var(--luzmo-component-height-s);--droppable-slot-label-font-size: var(--luzmo-font-size-s);--droppable-slot-icon-type-font-size: var(--luzmo-font-size-s);--droppable-slot-horizontal-padding: var(--luzmo-spacing-4);--droppable-slot-overlay-horizontal-gap: var(--luzmo-spacing-4);--droppable-slot-overlay-vertical-gap: var(--luzmo-spacing-4)}:host([size=l]){--droppable-slot-height: var(--luzmo-component-height-l);--droppable-slot-label-font-size: var(--luzmo-font-size-l);--droppable-slot-icon-type-font-size: var(--luzmo-font-size-l);--droppable-slot-horizontal-padding: var(--luzmo-spacing-5);--droppable-slot-overlay-horizontal-gap: var(--luzmo-spacing-5);--droppable-slot-overlay-vertical-gap: var(--luzmo-spacing-5)}:host([size=xl]){--droppable-slot-height: var(--luzmo-component-height-xl);--droppable-slot-label-font-size: var(--luzmo-font-size-xl);--droppable-slot-icon-type-font-size: var(--luzmo-font-size-xl);--droppable-slot-horizontal-padding: var(--luzmo-spacing-5);--droppable-slot-overlay-horizontal-gap: var(--luzmo-spacing-5);--droppable-slot-overlay-vertical-gap: var(--luzmo-spacing-5)}:host{box-sizing:border-box}", H = {
564
+ Category: () => x("Category", { desc: "Category label" }),
565
+ Measure: () => x("Measure", { desc: "Measure label" }),
566
+ Legend: () => x("Legend", { desc: "Legend label" }),
567
+ "Y-Axis": () => x("Y-Axis", { desc: "Y-Axis label" }),
568
+ "X-Axis": () => x("X-Axis", { desc: "X-Axis label" }),
569
+ "Group by": () => x("Group by", { desc: "Group by label" })
570
+ };
571
+ var Yo = Object.defineProperty, Xo = Object.getOwnPropertyDescriptor, y = (o, t, e, r) => {
572
+ for (var l = r > 1 ? void 0 : r ? Xo(t, e) : t, d = o.length - 1, a; d >= 0; d--)
573
+ (a = o[d]) && (l = (r ? a(t, e, l) : a(l)) || l);
574
+ return r && l && Yo(t, e, l), l;
575
+ };
576
+ let g = class extends Co(yo, {
53
577
  validSizes: ["s", "m", "l", "xl"],
54
578
  noDefaultSize: !0
55
579
  }) {
56
580
  constructor() {
57
- super(...arguments), this._loadSlotsConfig = new _(this, {
58
- task: async ([t]) => {
59
- if (t && t !== this._itemTypeLoaded) {
60
- const o = /* @__PURE__ */ Object.assign({
581
+ super(), this._loadSlotsConfig = new ho(this, {
582
+ task: async ([o]) => {
583
+ if (o && o !== this._itemTypeLoaded) {
584
+ const t = /* @__PURE__ */ Object.assign({
61
585
  "../../item-definitions/area-chart/area-chart-slots.config.ts": () => import("../area-chart-slots.config-DoytjTpw.js"),
62
586
  "../../item-definitions/bar-chart/bar-chart-slots.config.ts": () => import("../bar-chart-slots.config-Dn0IV43j.js"),
63
587
  "../../item-definitions/box-plot/box-plot-slots.config.ts": () => import("../box-plot-slots.config-FI5Id-7p.js"),
@@ -103,46 +627,49 @@ let a = class extends T(O, {
103
627
  "../../item-definitions/video/video-slots.config.ts": () => import("../video-slots.config-IpwUxDyU.js"),
104
628
  "../../item-definitions/wordcloud-chart/wordcloud-chart-slots.config.ts": () => import("../wordcloud-chart-slots.config-BS4sOOHt.js")
105
629
  });
106
- if (o[`../../item-definitions/${t}/${t}-slots.config.ts`]) {
107
- const l = await o[`../../item-definitions/${t}/${t}-slots.config.ts`]();
108
- this._slotsConfig = (l == null ? void 0 : l.default) ?? {};
630
+ if (t[`../../item-definitions/${o}/${o}-slots.config.ts`]) {
631
+ const e = await t[`../../item-definitions/${o}/${o}-slots.config.ts`]();
632
+ this._slotsConfig = (e == null ? void 0 : e.default) ?? {};
109
633
  }
110
634
  return this._slotsConfig;
111
635
  }
112
636
  },
113
637
  args: () => [this.itemType, this.language]
114
- }), this.slotConfiguration = {}, this.slotContents = [], this.language = "en", this.menu = "default", this.placement = "bottom-end", this.changedSlotContents = (t) => {
115
- this.dispatchEvent(
638
+ }), this.slotConfiguration = {}, this.slotContents = [], this.language = "en", this.menu = "default", this.placement = "bottom-end", this._store = new Bo(), this._currentSlotContents = [], this.changedSlotContents = (o) => {
639
+ this._store.setContents(o), this.dispatchEvent(
116
640
  new CustomEvent("slot-contents-changed", {
117
641
  bubbles: !0,
118
642
  composed: !0,
119
643
  cancelable: !0,
120
644
  detail: {
121
- slotContents: t
645
+ slotContents: o
122
646
  }
123
647
  })
124
648
  );
125
- }, this._currentSlotContents = [];
649
+ }, new So(this, {
650
+ context: no,
651
+ initialValue: this._store
652
+ });
126
653
  }
127
654
  disconnectedCallback() {
128
655
  super.disconnectedCallback(), this._cleanupDroppable();
129
656
  }
130
- emptySlotContents(t) {
131
- t.preventDefault(), t.stopPropagation(), this.slotContents = [], this.changedSlotContents([]);
657
+ emptySlotContents(o) {
658
+ o.preventDefault(), o.stopPropagation(), this.slotContents = [], this.changedSlotContents([]);
132
659
  }
133
- willUpdate(t) {
134
- t.has("slotContents") && (this._currentSlotContents = structuredClone(this.slotContents)), t.has("language") && this.language !== k() && ([...w].includes(this.language ?? "en") || this.language === "en") && L(this.language);
660
+ willUpdate(o) {
661
+ o.has("slotContents") && (this._currentSlotContents = structuredClone(this.slotContents), this._store.setContents(this.slotContents ?? [])), o.has("language") && this.language !== po() && ([...uo].includes(this.language ?? "en") || this.language === "en") && mo(this.language);
135
662
  }
136
- firstUpdated(t) {
137
- this._cleanupDroppable || (this._cleanupDroppable = C({
663
+ firstUpdated(o) {
664
+ this._cleanupDroppable || (this._cleanupDroppable = io({
138
665
  element: this,
139
- onDrop: (o) => {
140
- var i, s, c, d;
141
- const l = { ...(i = o.source) == null ? void 0 : i.data }, e = {
142
- ...(l == null ? void 0 : l.label) ?? { en: "Untitled" }
143
- }, r = l == null ? void 0 : l.type;
144
- if (r === "datetime" && !l.level && (l.level = l.lowestLevel ?? (l.subtype === "date" ? 5 : 9)), r === "datetime" && ((c = (s = o == null ? void 0 : o.source) == null ? void 0 : s.element) != null && c.hasAttribute("sublevel"))) {
145
- const m = [
666
+ onDrop: (t) => {
667
+ var d, a, i, m;
668
+ const e = { ...(d = t.source) == null ? void 0 : d.data }, r = {
669
+ ...(e == null ? void 0 : e.label) ?? { en: "Untitled" }
670
+ }, l = e == null ? void 0 : e.type;
671
+ if (l === "datetime" && !e.level && (e.level = e.lowestLevel ?? (e.subtype === "date" ? 5 : 9)), l === "datetime" && ((i = (a = t == null ? void 0 : t.source) == null ? void 0 : a.element) != null && i.hasAttribute("sublevel"))) {
672
+ const n = [
146
673
  "(Yr)",
147
674
  "(Qtr)",
148
675
  "(Mth)",
@@ -152,21 +679,21 @@ let a = class extends T(O, {
152
679
  "(Min)",
153
680
  "(Sec)",
154
681
  "(Msec)"
155
- ], u = (l == null ? void 0 : l.level) ?? 1, b = Object.keys(e);
156
- for (const h of b)
157
- e[h] = `${e[h]} ${m[u - 1]}`;
158
- l.label = e;
682
+ ], b = (e == null ? void 0 : e.level) ?? 1, u = Object.keys(r);
683
+ for (const v of u)
684
+ r[v] = `${r[v]} ${n[b - 1]}`;
685
+ e.label = r;
159
686
  }
160
- this.slotContents = (d = this.slotConfiguration) != null && d.canAcceptMultipleDataItems ? [...this.slotContents ?? [], l] : [l], this.removeAttribute("accept-drag"), this.changedSlotContents(this.slotContents);
687
+ this.slotContents = (m = this.slotConfiguration) != null && m.canAcceptMultipleDataItems ? [...this.slotContents ?? [], e] : [e], this.removeAttribute("accept-drag"), this.changedSlotContents(this.slotContents);
161
688
  },
162
- canDrop: ({ source: o }) => {
163
- var e, r, i, s, c, d, m, u, b, h, z;
689
+ canDrop: ({ source: t }) => {
690
+ var r, l, d, a, i, m, n, b, u, v, E;
164
691
  if (![
165
692
  "LUZMO-DRAGGABLE-DATA-ITEM-LEVEL",
166
693
  "LUZMO-DRAGGABLE-DATA-ITEM"
167
- ].includes((e = o.element) == null ? void 0 : e.tagName) || !((r = this.slotConfiguration) != null && r.canAcceptFormula) && ((i = o == null ? void 0 : o.data) != null && i.formulaId))
694
+ ].includes((r = t.element) == null ? void 0 : r.tagName) || !((l = this.slotConfiguration) != null && l.canAcceptFormula) && ((d = t == null ? void 0 : t.data) != null && d.formulaId))
168
695
  return !1;
169
- const l = ((c = (s = this.slotConfiguration) == null ? void 0 : s.acceptableDataItemTypes) == null ? void 0 : c.length) > 0 ? this.slotConfiguration.acceptableDataItemTypes : [
696
+ const e = ((i = (a = this.slotConfiguration) == null ? void 0 : a.acceptableDataItemTypes) == null ? void 0 : i.length) > 0 ? this.slotConfiguration.acceptableDataItemTypes : [
170
697
  "datetime",
171
698
  "hierarchy",
172
699
  "numeric",
@@ -174,8 +701,8 @@ let a = class extends T(O, {
174
701
  "array[numeric]",
175
702
  "array[hierarchy]"
176
703
  ];
177
- return (d = o == null ? void 0 : o.data) != null && d.type && !l.includes((m = o == null ? void 0 : o.data) == null ? void 0 : m.type) ? !1 : !((u = o == null ? void 0 : o.data) != null && u.subtype && ((h = (b = this.slotConfiguration) == null ? void 0 : b.acceptableColumnSubtypes) == null ? void 0 : h.length) > 0 && !this.slotConfiguration.acceptableColumnSubtypes.includes(
178
- (z = o == null ? void 0 : o.data) == null ? void 0 : z.subtype
704
+ return (m = t == null ? void 0 : t.data) != null && m.type && !e.includes((n = t == null ? void 0 : t.data) == null ? void 0 : n.type) ? !1 : !((b = t == null ? void 0 : t.data) != null && b.subtype && ((v = (u = this.slotConfiguration) == null ? void 0 : u.acceptableColumnSubtypes) == null ? void 0 : v.length) > 0 && !this.slotConfiguration.acceptableColumnSubtypes.includes(
705
+ (E = t == null ? void 0 : t.data) == null ? void 0 : E.subtype
179
706
  ));
180
707
  },
181
708
  getDropEffect: () => "move",
@@ -190,32 +717,32 @@ let a = class extends T(O, {
190
717
  updated() {
191
718
  this.createFullLabel();
192
719
  }
193
- _onSlotMenuChanges(t) {
194
- var o;
195
- t.preventDefault(), t.stopPropagation(), this.slotContents.length === ((o = t.detail.slotContents) == null ? void 0 : o.length) ? (this._currentSlotContents = t.detail.slotContents, this.createFullLabel(), this.changedSlotContents(this._currentSlotContents)) : (this.slotContents = t.detail.slotContents, this.changedSlotContents(this.slotContents));
720
+ _onSlotMenuChanges(o) {
721
+ var t;
722
+ o.preventDefault(), o.stopPropagation(), this.slotContents.length === ((t = o.detail.slotContents) == null ? void 0 : t.length) ? (this._currentSlotContents = o.detail.slotContents, this.createFullLabel(), this.changedSlotContents(this._currentSlotContents)) : (this.slotContents = o.detail.slotContents, this.changedSlotContents(this.slotContents));
196
723
  }
197
724
  // we update the label outside the lit render method to not lose focus when typing in the display settings bc of rerender
198
725
  // we use a copy of slotContents '_currentSlotContents' to not trigger a rerender when the slotContents change from the slot-menu
199
726
  createFullLabel() {
200
- var e, r, i, s, c, d, m, u, b;
201
- let t = "";
202
- const o = y[(e = this.slotConfiguration) == null ? void 0 : e.label] ? y[(r = this.slotConfiguration) == null ? void 0 : r.label]() : (i = this.slotConfiguration) == null ? void 0 : i.label;
203
- ((s = this._currentSlotContents) == null ? void 0 : s.length) === 1 ? t = A((d = (c = this._currentSlotContents) == null ? void 0 : c[0]) == null ? void 0 : d.label, this.language) ?? "Untitled" : ((m = this._currentSlotContents) == null ? void 0 : m.length) > 1 && (t = `${this._currentSlotContents.length} items`);
204
- let l = "";
205
- this.label ? l = this.label : o && (l = o), l = l || "Untitled", ((u = this._currentSlotContents) == null ? void 0 : u.length) > 0 && (l += ((b = this._currentSlotContents) == null ? void 0 : b.length) > 1 ? `: ${this._currentSlotContents.length} items` : `: ${t}`), this._droppableSlotLabelElement && (this._droppableSlotLabelElement.textContent = l);
727
+ var r, l, d, a, i, m, n, b, u;
728
+ let o = "";
729
+ const t = H[(r = this.slotConfiguration) == null ? void 0 : r.label] ? H[(l = this.slotConfiguration) == null ? void 0 : l.label]() : (d = this.slotConfiguration) == null ? void 0 : d.label;
730
+ ((a = this._currentSlotContents) == null ? void 0 : a.length) === 1 ? o = bo((m = (i = this._currentSlotContents) == null ? void 0 : i[0]) == null ? void 0 : m.label, this.language) ?? "Untitled" : ((n = this._currentSlotContents) == null ? void 0 : n.length) > 1 && (o = `${this._currentSlotContents.length} items`);
731
+ let e = "";
732
+ this.label ? e = this.label : t && (e = t), e = e || "Untitled", ((b = this._currentSlotContents) == null ? void 0 : b.length) > 0 && (e += ((u = this._currentSlotContents) == null ? void 0 : u.length) > 1 ? `: ${this._currentSlotContents.length} items` : `: ${o}`), this._droppableSlotLabelElement && (this._droppableSlotLabelElement.textContent = e);
206
733
  }
207
734
  droppableSlotMarkup() {
208
- var t, o, l, e;
209
- return g`
735
+ var o, t, e, r;
736
+ return w`
210
737
  <div
211
738
  class="droppable-slot"
212
- ?filled=${((t = this.slotContents) == null ? void 0 : t.length) > 0}
739
+ ?filled=${((o = this.slotContents) == null ? void 0 : o.length) > 0}
213
740
  id="trigger"
214
741
  >
215
742
  <div class="droppable-slot-label"></div>
216
- ${((o = this.slotContents) == null ? void 0 : o.length) > 0 && !(this.hideConfiguration && this.hideDelete) ? g`<div class="controls">
217
- ${this.hideConfiguration ? "" : g`<div>
218
- ${v($)}
743
+ ${((t = this.slotContents) == null ? void 0 : t.length) > 0 && !(this.hideConfiguration && this.hideDelete) ? w`<div class="controls">
744
+ ${this.hideConfiguration ? "" : w`<div>
745
+ ${F(fo)}
219
746
  <luzmo-tooltip
220
747
  self-managed
221
748
  placement="top"
@@ -224,8 +751,8 @@ let a = class extends T(O, {
224
751
  edit
225
752
  </luzmo-tooltip>
226
753
  </div> `}
227
- ${this.hideDelete ? "" : g`<div @click=${this.emptySlotContents}>
228
- ${v(D)}
754
+ ${this.hideDelete ? "" : w`<div @click=${this.emptySlotContents}>
755
+ ${F(go)}
229
756
  <luzmo-tooltip
230
757
  self-managed
231
758
  placement="top"
@@ -235,15 +762,15 @@ let a = class extends T(O, {
235
762
  </luzmo-tooltip>
236
763
  </div>`}
237
764
  </div>` : ""}
238
- ${((l = this.slotContents) == null ? void 0 : l.length) > 0 ? g`<luzmo-overlay
765
+ ${((e = this.slotContents) == null ? void 0 : e.length) > 0 ? w`<luzmo-overlay
239
766
  trigger="trigger@click"
240
767
  .placement=${this.placement}
241
768
  >
242
769
  <luzmo-slot-menu
243
770
  language=${this.language}
244
771
  content-language=${this.language}
245
- slot-type=${(e = this.slotConfiguration) == null ? void 0 : e.type}
246
- .slotContents=${this._currentSlotContents}
772
+ drag-boundary=${this.dragBoundary}
773
+ slot-type=${(r = this.slotConfiguration) == null ? void 0 : r.type}
247
774
  variant=${this.menu === "draggable" ? "draggable" : "popup"}
248
775
  .size=${this.size}
249
776
  @slot-contents-changed=${this._onSlotMenuChanges}
@@ -254,63 +781,66 @@ let a = class extends T(O, {
254
781
  }
255
782
  render() {
256
783
  return this._loadSlotsConfig.render({
257
- pending: () => g`<p>Loading...</p>`,
258
- complete: (t) => {
259
- if (this.slotName && this.itemType && t) {
260
- const o = t.find(
261
- (l) => l.name === this.slotName
784
+ pending: () => w`<p>Loading...</p>`,
785
+ complete: (o) => {
786
+ if (this.slotName && this.itemType && o) {
787
+ const t = o.find(
788
+ (e) => e.name === this.slotName
262
789
  );
263
- o && !this.slotConfiguration && (this.slotConfiguration = o);
790
+ t && !this.slotConfiguration && (this.slotConfiguration = t);
264
791
  }
265
792
  return this.droppableSlotMarkup();
266
793
  },
267
- error: (t) => g`
794
+ error: (o) => w`
268
795
  <div>
269
796
  Could not load droppable slot: '${this.slotName}' of chart
270
- '${this.itemType}': ${t}.
797
+ '${this.itemType}': ${o}.
271
798
  </div>
272
799
  `
273
800
  });
274
801
  }
275
802
  };
276
- a.styles = E(U);
277
- n([
278
- p({ type: String, reflect: !0, attribute: "item-type" })
279
- ], a.prototype, "itemType", 2);
280
- n([
281
- p({ type: String, reflect: !0, attribute: "slot-name" })
282
- ], a.prototype, "slotName", 2);
283
- n([
284
- p({ type: Object })
285
- ], a.prototype, "slotConfiguration", 2);
286
- n([
287
- p({ type: Object })
288
- ], a.prototype, "slotContents", 2);
289
- n([
290
- p({ type: String, reflect: !0 })
291
- ], a.prototype, "label", 2);
292
- n([
293
- p({ type: String, reflect: !0 })
294
- ], a.prototype, "language", 2);
295
- n([
296
- p({ type: String, reflect: !0 })
297
- ], a.prototype, "menu", 2);
298
- n([
299
- p({ type: String, reflect: !0 })
300
- ], a.prototype, "placement", 2);
301
- n([
302
- p({ type: Boolean, reflect: !0, attribute: "hide-delete" })
303
- ], a.prototype, "hideDelete", 2);
304
- n([
305
- p({ type: Boolean, reflect: !0, attribute: "hide-configuration" })
306
- ], a.prototype, "hideConfiguration", 2);
307
- n([
308
- M(".droppable-slot-label")
309
- ], a.prototype, "_droppableSlotLabelElement", 2);
310
- a = n([
311
- S()
312
- ], a);
313
- customElements.get("luzmo-droppable-slot") || customElements.define("luzmo-droppable-slot", a);
803
+ g.styles = vo(Ho);
804
+ y([
805
+ C({ type: String, reflect: !0, attribute: "item-type" })
806
+ ], g.prototype, "itemType", 2);
807
+ y([
808
+ C({ type: String, reflect: !0, attribute: "slot-name" })
809
+ ], g.prototype, "slotName", 2);
810
+ y([
811
+ C({ type: Object })
812
+ ], g.prototype, "slotConfiguration", 2);
813
+ y([
814
+ C({ type: Object })
815
+ ], g.prototype, "slotContents", 2);
816
+ y([
817
+ C({ type: String, reflect: !0 })
818
+ ], g.prototype, "label", 2);
819
+ y([
820
+ C({ type: String, reflect: !0 })
821
+ ], g.prototype, "language", 2);
822
+ y([
823
+ C({ type: String, reflect: !0, attribute: "drag-boundary" })
824
+ ], g.prototype, "dragBoundary", 2);
825
+ y([
826
+ C({ type: String, reflect: !0 })
827
+ ], g.prototype, "menu", 2);
828
+ y([
829
+ C({ type: String, reflect: !0 })
830
+ ], g.prototype, "placement", 2);
831
+ y([
832
+ C({ type: Boolean, reflect: !0, attribute: "hide-delete" })
833
+ ], g.prototype, "hideDelete", 2);
834
+ y([
835
+ C({ type: Boolean, reflect: !0, attribute: "hide-configuration" })
836
+ ], g.prototype, "hideConfiguration", 2);
837
+ y([
838
+ zo(".droppable-slot-label")
839
+ ], g.prototype, "_droppableSlotLabelElement", 2);
840
+ g = y([
841
+ co()
842
+ ], g);
843
+ customElements.get("luzmo-droppable-slot") || customElements.define("luzmo-droppable-slot", g);
314
844
  export {
315
- a as LuzmoDroppableSlot
845
+ g as LuzmoDroppableSlot
316
846
  };