@luzmo/analytics-components-kit 1.0.1-alpha.97 → 1.0.1-alpha.99

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 (116) hide show
  1. package/angular/README.md +2 -2
  2. package/angular/components/ai-interaction-textarea.component.ts +8 -0
  3. package/angular/components/{filter-data-item-picker.component.ts → data-items-select.component.ts} +34 -17
  4. package/angular/components/edit-filters/index.ts +1 -0
  5. package/angular/components/edit-filters/types.ts +10 -0
  6. package/angular/components/edit-filters.component.ts +41 -0
  7. package/angular/components/slot-contents-picker.component.ts +8 -6
  8. package/angular/esm/components/ai-interaction-textarea.component.d.ts +5 -1
  9. package/angular/esm/components/ai-interaction-textarea.component.js +22 -2
  10. package/angular/esm/components/data-items-select.component.d.ts +33 -0
  11. package/angular/esm/components/{filter-data-item-picker.component.js → data-items-select.component.js} +41 -26
  12. package/angular/esm/components/edit-filters/index.d.ts +1 -0
  13. package/angular/esm/components/edit-filters/index.js +1 -0
  14. package/angular/esm/components/edit-filters/types.d.ts +8 -0
  15. package/angular/esm/components/edit-filters/types.js +1 -0
  16. package/angular/esm/components/edit-filters.component.d.ts +21 -0
  17. package/angular/esm/components/edit-filters.component.js +89 -0
  18. package/angular/esm/components/slot-contents-picker.component.d.ts +7 -6
  19. package/angular/esm/components/slot-contents-picker.component.js +11 -6
  20. package/angular/esm/index.d.ts +5 -5
  21. package/angular/esm/index.js +6 -6
  22. package/angular/esm/types.d.ts +9 -0
  23. package/angular/index.ts +6 -6
  24. package/angular/types.ts +17 -0
  25. package/angular/utils/filters/expressions.d.ts +1 -1
  26. package/components/ai-interaction-textarea/ai-interaction-textarea.d.ts +21 -0
  27. package/components/ai-interaction-textarea/index.cjs +17 -15
  28. package/components/ai-interaction-textarea/index.js +90 -65
  29. package/components/{filter-data-item-picker/filter-data-item-picker.d.ts → data-items-select/data-items-select.d.ts} +36 -21
  30. package/components/data-items-select/index.cjs +39 -0
  31. package/components/data-items-select/index.d.ts +6 -0
  32. package/components/{filter-data-item-picker → data-items-select}/index.js +127 -109
  33. package/components/dataset-selector-list/index.cjs +1 -1
  34. package/components/dataset-selector-list/index.js +3 -3
  35. package/components/dataset-selector-row/index.cjs +1 -1
  36. package/components/dataset-selector-row/index.js +1 -1
  37. package/components/{de-COKGBX9L.cjs → de-DOYL4txr.cjs} +1 -1
  38. package/components/{de-DU0DlXuf.js → de-SDzGVifr.js} +10 -1
  39. package/components/display-settings-binning/index.cjs +1 -1
  40. package/components/display-settings-binning/index.js +1 -1
  41. package/components/display-settings-datetime/index.cjs +1 -1
  42. package/components/display-settings-datetime/index.js +1 -1
  43. package/components/display-settings-grand-totals/index.cjs +1 -1
  44. package/components/display-settings-grand-totals/index.js +1 -1
  45. package/components/display-settings-numeric/index.cjs +1 -1
  46. package/components/display-settings-numeric/index.js +1 -1
  47. package/components/display-settings-period-over-period/index.cjs +1 -1
  48. package/components/display-settings-period-over-period/index.js +1 -1
  49. package/components/draggable-data-item/index.cjs +1 -1
  50. package/components/draggable-data-item/index.js +1 -1
  51. package/components/draggable-data-item-level/index.cjs +1 -1
  52. package/components/draggable-data-item-level/index.js +1 -1
  53. package/components/droppable-slot/index.cjs +9 -9
  54. package/components/droppable-slot/index.js +82 -158
  55. package/components/edit-filters/edit-filters.d.ts +79 -0
  56. package/components/edit-filters/index.cjs +144 -0
  57. package/components/edit-filters/index.d.ts +8 -0
  58. package/components/edit-filters/index.js +341 -0
  59. package/components/edit-filters/types.d.ts +8 -0
  60. package/components/{es-BxR1uGKR.js → es-B1TeapPZ.js} +10 -1
  61. package/components/{es-CaKfa7fn.cjs → es-DcQvrHgz.cjs} +1 -1
  62. package/components/filter-expression-picker/index.cjs +1 -1
  63. package/components/filter-expression-picker/index.js +1 -1
  64. package/components/filter-item/filter-item.d.ts +1 -1
  65. package/components/filter-item/index.cjs +7 -5
  66. package/components/filter-item/index.js +78 -68
  67. package/components/filter-value-picker/index.cjs +1 -1
  68. package/components/filter-value-picker/index.js +1 -1
  69. package/components/filter-value-picker-datetime/index.cjs +2 -2
  70. package/components/filter-value-picker-datetime/index.js +4 -4
  71. package/components/filter-value-picker-hierarchy/index.cjs +1 -1
  72. package/components/filter-value-picker-hierarchy/index.js +2 -2
  73. package/components/filter-value-picker-numeric/index.cjs +2 -1
  74. package/components/filter-value-picker-numeric/index.js +3 -2
  75. package/components/{fr-DiZbjx_a.cjs → fr-D6QmA3Ve.cjs} +1 -1
  76. package/components/{fr-CvltYxR_.js → fr-sZFBmltf.js} +10 -1
  77. package/components/{get-css-variable-Pzks_rOx.cjs → get-css-variable-C0B_Sxqf.cjs} +1 -1
  78. package/components/{get-css-variable-Bb7TxJdX.js → get-css-variable-DgTBQV3c.js} +2 -1
  79. package/components/grid/index.cjs +1 -1
  80. package/components/grid/index.js +1 -1
  81. package/components/{index-DNPULp4A.js → index-BikhVAa1.js} +1 -1
  82. package/components/{index-CFL6gmIu.cjs → index-CAbDIHYI.cjs} +1 -1
  83. package/components/{index-BNAmjOkm.cjs → index-DM58h73U.cjs} +3 -3
  84. package/components/{index-DdyZ2g5L.js → index-DR5275fa.js} +48 -18
  85. package/components/index.cjs +1 -1
  86. package/components/index.js +105 -106
  87. package/components/{nl-CLs7FmRK.js → nl-BYXZ-qNp.js} +10 -1
  88. package/components/{nl-Bot6bJ4g.cjs → nl-D7oNsLn0.cjs} +1 -1
  89. package/components/{set-locale-hKTMz37h.js → set-locale-B5562CBM.js} +1 -1
  90. package/components/{set-locale-BRRalqne.cjs → set-locale-B8iQGfk0.cjs} +1 -1
  91. package/components/slot-contents-picker/index.cjs +31 -27
  92. package/components/slot-contents-picker/index.js +137 -124
  93. package/components/slot-contents-picker/slot-contents-picker.d.ts +26 -5
  94. package/components/slot-menu/index.cjs +6 -6
  95. package/components/slot-menu/index.js +76 -76
  96. package/components/slot-menu-list/index.cjs +1 -1
  97. package/components/slot-menu-list/index.js +1 -1
  98. package/components/slot-store-CRfN0nD3.js +98 -0
  99. package/components/slot-store-Dd_cPNXk.cjs +20 -0
  100. package/components/utils.cjs +1 -1
  101. package/components/utils.js +1 -1
  102. package/components/viz-item-menu/index.cjs +6 -6
  103. package/components/viz-item-menu/index.js +27 -28
  104. package/custom-elements.json +1922 -1631
  105. package/index.d.ts +1 -1
  106. package/package.json +12 -12
  107. package/types.d.ts +9 -0
  108. package/utils/filters/expressions.d.ts +1 -1
  109. package/angular/components/filter-group.component.ts +0 -29
  110. package/angular/esm/components/filter-data-item-picker.component.d.ts +0 -30
  111. package/angular/esm/components/filter-group.component.d.ts +0 -12
  112. package/angular/esm/components/filter-group.component.js +0 -56
  113. package/components/filter-data-item-picker/index.cjs +0 -47
  114. package/components/filter-data-item-picker/index.d.ts +0 -7
  115. package/components/filter-group/filter-group.d.ts +0 -26
  116. package/components/filter-group/index.d.ts +0 -7
@@ -17,22 +17,25 @@
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 { msg as f, localized as z } from "@lit/localize";
21
- import { Task as b } from "@lit/task";
22
- import { luzmoIcon as m, luzmoPlus as v, luzmoCog as d, luzmoTrashOutline as p } from "@luzmo/icons";
20
+ import { ContextProvider as z } from "@lit/context";
21
+ import { msg as b, localized as v } from "@lit/localize";
22
+ import { Task as y } from "@lit/task";
23
+ import { luzmoIcon as m, luzmoPlus as C, luzmoCog as h, luzmoTrashOutline as d } from "@luzmo/icons";
23
24
  import "@luzmo/lucero/action-button";
24
25
  import "@luzmo/lucero/field-label";
25
26
  import "@luzmo/lucero/overlay";
26
27
  import "@luzmo/lucero/select";
27
28
  import "@luzmo/lucero/tooltip";
28
- import { c as h } from "../calculate-data-item-icon-DMDhKq_m.js";
29
+ import { c as f } from "../calculate-data-item-icon-DMDhKq_m.js";
29
30
  import { l as g } from "../localize-CcDpq940.js";
30
- import { html as a, unsafeCSS as y } from "lit";
31
- import { property as c, state as C } from "lit/decorators.js";
32
- import { L as S } from "../focusable-BS2pbY7w.js";
33
- import { S as _ } from "../sized-mixin-cJbo3PKR.js";
34
- import { g as k, t as x, s as $ } from "../set-locale-hKTMz37h.js";
35
- import "../index-CqKpf0B8.js";
31
+ import { html as c, unsafeCSS as _ } from "lit";
32
+ import { property as a, state as S } from "lit/decorators.js";
33
+ import { ifDefined as u } from "lit/directives/if-defined.js";
34
+ import { L as k } from "../focusable-BS2pbY7w.js";
35
+ import { S as x } from "../sized-mixin-cJbo3PKR.js";
36
+ import { g as $, t as I, s as w } from "../set-locale-B5562CBM.js";
37
+ import { s as D } from "../index-CqKpf0B8.js";
38
+ import { S as E } from "../slot-store-CRfN0nD3.js";
36
39
  import "../slot-menu/index.js";
37
40
  (function() {
38
41
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
@@ -40,18 +43,18 @@ import "../slot-menu/index.js";
40
43
  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-background-color-alt-1: rgb(250, 250, 250);--luzmo-background-color-alt-2: rgb(239, 239, 239);--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-secondary-outline: rgba(255, 0, 255, 0.2);--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);
41
44
  }
42
45
  })();
43
- const I = ":host{font-family:var(--luzmo-slot-contents-picker-font-family, var(--luzmo-font-family))}.container{width:fit-content;display:flex;flex-direction:column;gap:var(--luzmo-slot-contents-picker-gap, var(--slot-contents-picker-gap, var(--luzmo-spacing-5)))}.select-container{display:flex;align-items:center}:host([stretch]) .container{width:100%}:host([stretch]) .select-container{width:100%}:host([stretch]) luzmo-select{flex-grow:1}.extra-data-item-button-container{display:flex;align-items:center;justify-content:center}.slot-contents-picker-label{font-size:var(--luzmo-slot-contents-picker-label-font-size, var(--slot-contents-picker-label-font-size));flex-grow:1;margin-right:var(--luzmo-slot-contents-picker-text-to-controls, var(--slot-contents-picker-text-to-controls));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.controls{height:100%;display:flex;align-items:center;gap:var(--luzmo-slot-contents-picker-controls-gap, var(--slot-contents-picker-controls-gap));background-color:var(--luzmo-slot-contents-picker-controls-background-color, var(--slot-contents-picker-controls-background-color));color:var(--luzmo-slot-contents-picker-controls-color, var(--slot-contents-picker-controls-color));margin-right:var(--luzmo-slot-contents-picker-controls-to-edge, var(--slot-contents-picker-controls-to-edge));padding:0 var(--luzmo-slot-contents-picker-controls-horizontal-padding, var(--slot-contents-picker-controls-horizontal-padding))}.controls div{cursor:pointer;height:100%;display:flex;align-items:center;padding:0 var(--luzmo-slot-contents-picker-controls-control-horizontal-padding, var(--slot-contents-picker-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-slot-contents-picker-overlay-vertical-gap, var(--slot-contents-picker-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-slot-contents-picker-overlay-horizontal-gap, var(--slot-contents-picker-overlay-horizontal-gap))}:host{--slot-contents-picker-border-width: var(--luzmo-border-width);--slot-contents-picker-border-style: dashed;--slot-contents-picker-border-color: var(--luzmo-border-color);--slot-contents-picker-accept-drag-controls-background-color: transparent;--slot-contents-picker-font-color: var(--luzmo-font-color);--slot-contents-picker-controls-background-color: transparent;--slot-contents-picker-text-to-controls: var(--luzmo-spacing-3);--slot-contents-picker-controls-to-edge: 0;--slot-contents-picker-controls-gap: var(--luzmo-spacing-2);--slot-contents-picker-controls-horizontal-padding: var(--luzmo-spacing-2);--slot-contents-picker-controls-control-horizontal-padding: var( --luzmo-spacing-3 );--slot-contents-picker-label-font-size: var(--luzmo-font-size)}:host{--slot-contents-picker-horizontal-padding: var(--luzmo-spacing-4);--slot-contents-picker-overlay-horizontal-gap: var(--luzmo-spacing-4);--slot-contents-picker-overlay-vertical-gap: var(--luzmo-spacing-4)}:host([size=s]){--slot-contents-picker-horizontal-padding: var(--luzmo-spacing-4);--slot-contents-picker-overlay-horizontal-gap: var(--luzmo-spacing-4);--slot-contents-picker-overlay-vertical-gap: var(--luzmo-spacing-4)}:host([size=l]){--slot-contents-picker-horizontal-padding: var(--luzmo-spacing-5);--slot-contents-picker-overlay-horizontal-gap: var(--luzmo-spacing-5);--slot-contents-picker-overlay-vertical-gap: var(--luzmo-spacing-5)}:host([size=xl]){--slot-contents-picker-horizontal-padding: var(--luzmo-spacing-5);--slot-contents-picker-overlay-horizontal-gap: var(--luzmo-spacing-5);--slot-contents-picker-overlay-vertical-gap: var(--luzmo-spacing-5)}:host{box-sizing:border-box}";
44
- var w = Object.defineProperty, D = Object.getOwnPropertyDescriptor, n = (t, o, e, l) => {
45
- for (var i = l > 1 ? void 0 : l ? D(o, e) : o, r = t.length - 1, u; r >= 0; r--)
46
- (u = t[r]) && (i = (l ? u(o, e, i) : u(i)) || i);
47
- return l && i && w(o, e, i), i;
46
+ const O = ":host{font-family:var(--luzmo-slot-contents-picker-font-family, var(--luzmo-font-family))}.container{flex-grow:1;display:flex;flex-direction:column;gap:var(--luzmo-slot-contents-picker-gap, var(--slot-contents-picker-gap, var(--luzmo-spacing-5)))}.select-container{display:flex;flex-grow:1;align-items:center}luzmo-select{flex-grow:var(--luzmo-slot-contents-picker-select-flex-grow, 1)}.extra-data-item-button-container{display:flex;align-items:center;justify-content:center}.slot-contents-picker-label{font-size:var(--luzmo-slot-contents-picker-label-font-size, var(--slot-contents-picker-label-font-size));flex-grow:1;margin-right:var(--luzmo-slot-contents-picker-text-to-controls, var(--slot-contents-picker-text-to-controls));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.controls{height:100%;display:flex;align-items:center;gap:var(--luzmo-slot-contents-picker-controls-gap, var(--slot-contents-picker-controls-gap));background-color:var(--luzmo-slot-contents-picker-controls-background-color, var(--slot-contents-picker-controls-background-color));color:var(--luzmo-slot-contents-picker-controls-color, var(--slot-contents-picker-controls-color));margin-right:var(--luzmo-slot-contents-picker-controls-to-edge, var(--slot-contents-picker-controls-to-edge));padding:0 var(--luzmo-slot-contents-picker-controls-horizontal-padding, var(--slot-contents-picker-controls-horizontal-padding))}.controls div{cursor:pointer;height:100%;display:flex;align-items:center;padding:0 var(--luzmo-slot-contents-picker-controls-control-horizontal-padding, var(--slot-contents-picker-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-slot-contents-picker-overlay-vertical-gap, var(--slot-contents-picker-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-slot-contents-picker-overlay-horizontal-gap, var(--slot-contents-picker-overlay-horizontal-gap))}:host{--slot-contents-picker-border-width: var(--luzmo-border-width);--slot-contents-picker-border-style: dashed;--slot-contents-picker-border-color: var(--luzmo-border-color);--slot-contents-picker-accept-drag-controls-background-color: transparent;--slot-contents-picker-font-color: var(--luzmo-font-color);--slot-contents-picker-controls-background-color: transparent;--slot-contents-picker-text-to-controls: var(--luzmo-spacing-3);--slot-contents-picker-controls-to-edge: 0;--slot-contents-picker-controls-gap: var(--luzmo-spacing-2);--slot-contents-picker-controls-horizontal-padding: var(--luzmo-spacing-2);--slot-contents-picker-controls-control-horizontal-padding: var( --luzmo-spacing-3 );--slot-contents-picker-label-font-size: var(--luzmo-font-size)}:host{--slot-contents-picker-horizontal-padding: var(--luzmo-spacing-4);--slot-contents-picker-overlay-horizontal-gap: var(--luzmo-spacing-4);--slot-contents-picker-overlay-vertical-gap: var(--luzmo-spacing-4)}:host([size=s]){--slot-contents-picker-horizontal-padding: var(--luzmo-spacing-4);--slot-contents-picker-overlay-horizontal-gap: var(--luzmo-spacing-4);--slot-contents-picker-overlay-vertical-gap: var(--luzmo-spacing-4)}:host([size=l]){--slot-contents-picker-horizontal-padding: var(--luzmo-spacing-5);--slot-contents-picker-overlay-horizontal-gap: var(--luzmo-spacing-5);--slot-contents-picker-overlay-vertical-gap: var(--luzmo-spacing-5)}:host([size=xl]){--slot-contents-picker-horizontal-padding: var(--luzmo-spacing-5);--slot-contents-picker-overlay-horizontal-gap: var(--luzmo-spacing-5);--slot-contents-picker-overlay-vertical-gap: var(--luzmo-spacing-5)}:host{box-sizing:border-box}";
47
+ var L = Object.defineProperty, M = Object.getOwnPropertyDescriptor, r = (t, o, i, l) => {
48
+ for (var e = l > 1 ? void 0 : l ? M(o, i) : o, n = t.length - 1, p; n >= 0; n--)
49
+ (p = t[n]) && (e = (l ? p(o, i, e) : p(e)) || e);
50
+ return l && e && L(o, i, e), e;
48
51
  };
49
- let s = class extends _(S, {
52
+ let s = class extends x(k, {
50
53
  validSizes: ["s", "m", "l", "xl"],
51
54
  noDefaultSize: !0
52
55
  }) {
53
56
  constructor() {
54
- super(...arguments), this._loadSlotsConfig = new b(this, {
57
+ super(), this._loadSlotsConfig = new y(this, {
55
58
  task: async ([t]) => {
56
59
  if (t && t !== this._itemTypeLoaded) {
57
60
  const o = /* @__PURE__ */ Object.assign({
@@ -102,14 +105,14 @@ let s = class extends _(S, {
102
105
  "../../item-definitions/wordcloud-chart/wordcloud-chart-slots.config.ts": () => import("../wordcloud-chart-slots.config-BS4sOOHt.js")
103
106
  });
104
107
  if (o[`../../item-definitions/${t}/${t}-slots.config.ts`]) {
105
- const e = await o[`../../item-definitions/${t}/${t}-slots.config.ts`]();
106
- this._slotsConfig = e?.default ?? {};
108
+ const i = await o[`../../item-definitions/${t}/${t}-slots.config.ts`]();
109
+ this._slotsConfig = i?.default ?? {};
107
110
  }
108
111
  return this._slotsConfig;
109
112
  }
110
113
  },
111
114
  args: () => [this.itemType, this.language]
112
- }), this.slotConfiguration = {}, this.slotContents = [], this.language = "en", this.disabled = !1, this.menu = "default", this.hasLabel = !1, this.selects = "multiple", this.icons = "only-menu", this.datasetsDataItems = [], this.placement = "bottom-end", this.hideDelete = !0, this._hasExtraEmptySelects = !1, this._currentSlotContents = [], this._selectOptions = [], this._slotContentOptions = [], this.stretch = !1, this._changedSlotContents = (t) => {
115
+ }), this.slotConfiguration = {}, this.slotContents = [], this.language = "en", this.disabled = !1, this.menu = "default", this.hasLabel = !1, this.selects = "multiple", this.search = "auto", this.icons = "menu-only", this.datasetsDataItems = [], this.placement = "bottom-end", this.hideDelete = !0, this.hideClear = !1, this._hasExtraEmptySelects = !1, this._currentSlotContents = [], this._selectOptions = [], this._slotContentOptions = [], this._store = new E(), this._changedSlotContents = (t) => {
113
116
  this.dispatchEvent(
114
117
  new CustomEvent("slot-contents-changed", {
115
118
  bubbles: !0,
@@ -120,46 +123,49 @@ let s = class extends _(S, {
120
123
  }
121
124
  })
122
125
  );
123
- };
126
+ }, new z(this, {
127
+ context: D,
128
+ initialValue: this._store
129
+ });
124
130
  }
125
131
  _emptySlotContents(t) {
126
132
  typeof t != "number" ? (this.slotContents = [], this._currentSlotContents = [], this._changedSlotContents([])) : (this._currentSlotContents = this._currentSlotContents.filter(
127
- (e, l) => l !== t
133
+ (i, l) => l !== t
128
134
  ), this._changedSlotContents(this._currentSlotContents));
129
135
  }
130
136
  willUpdate(t) {
131
- const o = t.has("slotContents"), e = t.has("datasetsDataItems"), l = t.has("language");
132
- o && (this._currentSlotContents = structuredClone(this.slotContents)), e && (this._selectOptions = this._createSelectOptions(), this._slotContentOptions = this._createSlotContentOptions()), l && this.language !== k() && ([...x].includes(this.language ?? "en") || this.language === "en") && $(this.language);
137
+ const o = t.has("slotContents"), i = t.has("datasetsDataItems"), l = t.has("language");
138
+ o && (this._currentSlotContents = structuredClone(this.slotContents ?? []), this._store?.setContents(this._currentSlotContents ?? [], this.slotName)), i && (this._selectOptions = this._createSelectOptions(), this._slotContentOptions = this._createSlotContentOptions()), l && this.language !== $() && ([...I].includes(this.language ?? "en") || this.language === "en") && w(this.language);
133
139
  }
134
140
  _onSlotMenuChanges(t) {
135
- t.preventDefault(), t.stopPropagation(), this.slotContents.length === t.detail.slotContents?.length ? (this._currentSlotContents = t.detail.slotContents, this._changedSlotContents(this._currentSlotContents)) : (this.slotContents = t.detail.slotContents, this._changedSlotContents(this.slotContents));
141
+ t.preventDefault(), t.stopPropagation(), (this.slotContents?.length ?? 0) === (t.detail.slotContents?.length ?? 0) ? (this._currentSlotContents = structuredClone(t.detail.slotContents ?? []), this.slotContents = structuredClone(t.detail.slotContents ?? []), this._store?.setContents(this._currentSlotContents ?? [], this.slotName), this._changedSlotContents(this._currentSlotContents)) : (this.slotContents = t.detail.slotContents ?? [], this._store?.setContents(this.slotContents ?? [], this.slotName), this._changedSlotContents(this.slotContents));
136
142
  }
137
143
  _setSlotContentAtIndex(t, o) {
138
- const e = t?.detail?.value?.[0];
144
+ const i = t?.detail?.value?.[0], l = t?.detail?.value?.length === 0;
139
145
  o >= this._currentSlotContents.length && this._removeEmptySelect();
140
- for (let l = this._currentSlotContents.length; l <= o; l++)
141
- this._currentSlotContents[l] || this._currentSlotContents.push({});
142
- if (e && !(e === this._currentSlotContents[o]?.columnId || e === this._currentSlotContents[o]?.column || e === this._currentSlotContents[o]?.formulaId || e === this._currentSlotContents[o]?.formula)) {
143
- const l = this._slotContentOptions.find(
144
- (i) => i.columnId === e || i.formulaId === e
146
+ for (let e = this._currentSlotContents.length; e <= o; e++)
147
+ this._currentSlotContents[e] || this._currentSlotContents.push({});
148
+ if (i && !(i === this._currentSlotContents[o]?.columnId || i === this._currentSlotContents[o]?.column || i === this._currentSlotContents[o]?.formulaId || i === this._currentSlotContents[o]?.formula)) {
149
+ const e = this._slotContentOptions.find(
150
+ (n) => n.columnId === i || n.formulaId === i
145
151
  );
146
- l && (this._currentSlotContents[o] = structuredClone(l));
147
- }
152
+ e && (this._currentSlotContents[o] = structuredClone(e));
153
+ } else l && this._currentSlotContents.splice(o, 1);
148
154
  this.slotContents = structuredClone(
149
155
  this._currentSlotContents.filter(
150
- (l) => l.columnId || l.formulaId || l.column || l.formula
156
+ (e) => e.columnId || e.formulaId || e.column || e.formula
151
157
  )
152
158
  ), this._changedSlotContents(this.slotContents);
153
159
  }
154
160
  _setSlotContents(t) {
155
161
  let o = t.detail.value;
156
- this.slotConfiguration?.canAcceptMultipleDataItems && o.length > 1 || (o = o.slice(0, 1)), this._currentSlotContents = this._currentSlotContents?.filter((e) => o.includes(e.columnId ?? e.formulaId)) ?? [], o.forEach((e) => {
162
+ this.slotConfiguration?.canAcceptMultipleDataItems && o.length > 1 || (o = o.slice(0, 1)), this._currentSlotContents = this._currentSlotContents?.filter((i) => o.includes(i.columnId ?? i.formulaId)) ?? [], o.forEach((i) => {
157
163
  if (this._currentSlotContents.some(
158
- (i) => i.columnId === e || i.formulaId === e
164
+ (e) => e.columnId === i || e.formulaId === i
159
165
  ))
160
166
  return;
161
167
  const l = this._slotContentOptions.find(
162
- (i) => i.columnId === e || i.formulaId === e
168
+ (e) => e.columnId === i || e.formulaId === i
163
169
  );
164
170
  l && this._currentSlotContents.push(structuredClone(l));
165
171
  }), this.slotContents = structuredClone(this._currentSlotContents), this._changedSlotContents(this._currentSlotContents);
@@ -167,8 +173,8 @@ let s = class extends _(S, {
167
173
  _createSlotContentOptions() {
168
174
  const t = [];
169
175
  for (const o of this.datasetsDataItems ?? []) {
170
- const e = o?.columns ?? [], l = o?.formulas ?? [];
171
- for (const i of e)
176
+ const i = o?.columns ?? [], l = o?.formulas ?? [];
177
+ for (const e of i)
172
178
  if ((this.slotConfiguration?.acceptableDataItemTypes ?? [
173
179
  "hierarchy",
174
180
  "numeric",
@@ -176,14 +182,14 @@ let s = class extends _(S, {
176
182
  "array[hierarchy]",
177
183
  "array[numeric]",
178
184
  "array[datetime]"
179
- ]).includes(i.type)) {
180
- const r = structuredClone(i);
181
- r.columnId = i.id, r.datasetId = o.id, r.label = i.name, delete r.name, delete r.id, t.push(r);
185
+ ]).includes(e.type)) {
186
+ const n = structuredClone(e);
187
+ n.columnId = e.id, n.datasetId = o.id, n.label = e.name, delete n.name, delete n.id, t.push(n);
182
188
  }
183
189
  if (this.slotConfiguration?.canAcceptFormula)
184
- for (const i of l) {
185
- const r = structuredClone(i);
186
- r.formulaId = i.id, r.datasetId = o.id, r.label = i.name, delete r.name, delete r.id, t.push(r);
190
+ for (const e of l) {
191
+ const n = structuredClone(e);
192
+ n.formulaId = e.id, n.datasetId = o.id, n.label = e.name, delete n.name, delete n.id, t.push(n);
187
193
  }
188
194
  }
189
195
  return t;
@@ -191,8 +197,8 @@ let s = class extends _(S, {
191
197
  _createSelectOptions() {
192
198
  const t = [];
193
199
  for (const o of this.datasetsDataItems ?? []) {
194
- const e = o?.columns ?? [], l = o?.formulas ?? [];
195
- for (const i of e)
200
+ const i = o?.columns ?? [], l = o?.formulas ?? [];
201
+ for (const e of i)
196
202
  (this.slotConfiguration?.acceptableDataItemTypes ?? [
197
203
  "hierarchy",
198
204
  "numeric",
@@ -200,24 +206,24 @@ let s = class extends _(S, {
200
206
  "array[hierarchy]",
201
207
  "array[numeric]",
202
208
  "array[datetime]"
203
- ]).includes(i.type) && t.push({
204
- value: i.id,
205
- label: g(i?.name ?? {}, this.language),
206
- icon: h(i, this.size)
209
+ ]).includes(e.type) && t.push({
210
+ value: e.id,
211
+ label: g(e?.name ?? {}, this.language),
212
+ icon: f(e, this.size)
207
213
  });
208
214
  if (this.slotConfiguration?.canAcceptFormula)
209
- for (const i of l)
215
+ for (const e of l)
210
216
  t.push({
211
- value: i.id,
212
- label: g(i?.name ?? {}, this.language),
213
- icon: h(i, this.size)
217
+ value: e.id,
218
+ label: g(e?.name ?? {}, this.language),
219
+ icon: f(e, this.size)
214
220
  });
215
221
  }
216
222
  return t;
217
223
  }
218
224
  _renderFieldLabel() {
219
- return a`<luzmo-field-label for="data-item" size=${this.size}
220
- >${this.label ?? f("Select...")}
225
+ return c`<luzmo-field-label for="data-item" size=${this.size}
226
+ >${this.label ?? b("Select...")}
221
227
  </luzmo-field-label>`;
222
228
  }
223
229
  _removeEmptySelect() {
@@ -227,13 +233,13 @@ let s = class extends _(S, {
227
233
  this._hasExtraEmptySelects = !0;
228
234
  }
229
235
  _renderExtraDataItemButton() {
230
- return a`<div class="extra-data-item-button-container">
236
+ return c`<div class="extra-data-item-button-container">
231
237
  <luzmo-action-button
232
238
  size="xs"
233
239
  @click=${this._addDataItem}
234
240
  ?disabled=${this._hasExtraEmptySelects}
235
241
  >
236
- ${m(v)}
242
+ ${m(C)}
237
243
  </luzmo-action-button>
238
244
  <luzmo-tooltip self-managed placement="top" size=${this.size}>
239
245
  Add data item
@@ -242,16 +248,16 @@ let s = class extends _(S, {
242
248
  }
243
249
  _renderSingleSelect() {
244
250
  const t = this._renderFieldLabel(), o = this._currentSlotContents.map(
245
- (e, l) => a` <div class="select-container">
251
+ (i, l) => c` <div class="select-container">
246
252
  ${this.hasLabel && l === 0 ? t : ""}
247
253
  ${this._renderSelectMenu(l)}
248
- ${this.slotContents?.length > 0 && !(this.hideConfiguration && this.hideDelete) ? a`<div class="controls">
249
- ${this.hideConfiguration ? "" : a`<luzmo-action-button
254
+ ${this.slotContents?.length > 0 && !(this.hideConfiguration && this.hideDelete) ? c`<div class="controls">
255
+ ${this.hideConfiguration ? "" : c`<luzmo-action-button
250
256
  .size=${this.size}
251
257
  quiet
252
258
  id=${`trigger-${l}`}
253
259
  >
254
- ${m(d)}
260
+ ${m(h)}
255
261
  <luzmo-tooltip
256
262
  self-managed
257
263
  placement="top"
@@ -260,10 +266,10 @@ let s = class extends _(S, {
260
266
  edit
261
267
  </luzmo-tooltip>
262
268
  </luzmo-action-button>`}
263
- ${this.hideDelete ? "" : a`<div
269
+ ${this.hideDelete ? "" : c`<div
264
270
  @click=${this._emptySlotContents.bind(this, l)}
265
271
  >
266
- ${m(p)}
272
+ ${m(d)}
267
273
  <luzmo-tooltip
268
274
  self-managed
269
275
  placement="top"
@@ -273,7 +279,7 @@ let s = class extends _(S, {
273
279
  </luzmo-tooltip>
274
280
  </div>`}
275
281
  </div>` : ""}
276
- ${this.slotContents?.length > 0 ? a`<luzmo-overlay
282
+ ${this.slotContents?.length > 0 ? c`<luzmo-overlay
277
283
  trigger=${`trigger-${l}@click`}
278
284
  .placement=${this.placement}
279
285
  >
@@ -281,7 +287,8 @@ let s = class extends _(S, {
281
287
  language=${this.language}
282
288
  content-language=${this.language}
283
289
  slot-type=${this.slotConfiguration?.type}
284
- .slotContents=${this._currentSlotContents}
290
+ slot-name=${u(this.slotName)}
291
+ item-type=${u(this.itemType)}
285
292
  .slotIndex=${this.slotConfiguration?.canAcceptMultipleDataItems ? l : void 0}
286
293
  variant="popup"
287
294
  .size=${this.size}
@@ -291,7 +298,7 @@ let s = class extends _(S, {
291
298
  </div>`
292
299
  );
293
300
  return this._hasExtraEmptySelects && o.push(
294
- a`<div class="select-container">
301
+ c`<div class="select-container">
295
302
  ${this._renderSelectMenu(this._currentSlotContents.length)}
296
303
  <div class="controls">
297
304
  <luzmo-action-button
@@ -299,7 +306,7 @@ let s = class extends _(S, {
299
306
  quiet
300
307
  @click=${this._removeEmptySelect}
301
308
  >
302
- ${m(p)}
309
+ ${m(d)}
303
310
  <luzmo-tooltip self-managed placement="top" size=${this.size}>
304
311
  Delete
305
312
  </luzmo-tooltip>
@@ -310,23 +317,23 @@ let s = class extends _(S, {
310
317
  }
311
318
  _renderMultipleSelect() {
312
319
  const t = this._renderFieldLabel();
313
- return a`<div class="select-container">
320
+ return c`<div class="select-container">
314
321
  ${this.hasLabel ? t : ""} ${this._renderSelectMenu()}
315
- ${this.slotContents?.length > 0 && !(this.hideConfiguration && this.hideDelete) ? a`<div class="controls">
316
- ${this.hideConfiguration ? "" : a`<luzmo-action-button .size=${this.size} quiet id="trigger">
317
- ${m(d)}
322
+ ${this.slotContents?.length > 0 && !(this.hideConfiguration && this.hideDelete) ? c`<div class="controls">
323
+ ${this.hideConfiguration ? "" : c`<luzmo-action-button .size=${this.size} quiet id="trigger">
324
+ ${m(h)}
318
325
  <luzmo-tooltip self-managed placement="top" size=${this.size}>
319
326
  edit
320
327
  </luzmo-tooltip>
321
328
  </luzmo-action-button>`}
322
- ${this.hideDelete ? "" : a`<div @click=${this._emptySlotContents}>
323
- ${m(p)}
329
+ ${this.hideDelete ? "" : c`<div @click=${this._emptySlotContents}>
330
+ ${m(d)}
324
331
  <luzmo-tooltip self-managed placement="top" size=${this.size}>
325
332
  Delete
326
333
  </luzmo-tooltip>
327
334
  </div>`}
328
335
  </div>` : ""}
329
- ${this.slotContents?.length > 0 ? a`<luzmo-overlay
336
+ ${this.slotContents?.length > 0 ? c`<luzmo-overlay
330
337
  trigger="trigger@click"
331
338
  .placement=${this.placement}
332
339
  >
@@ -334,7 +341,8 @@ let s = class extends _(S, {
334
341
  language=${this.language}
335
342
  content-language=${this.language}
336
343
  slot-type=${this.slotConfiguration?.type}
337
- .slotContents=${this._currentSlotContents}
344
+ slot-name=${u(this.slotName)}
345
+ item-type=${u(this.itemType)}
338
346
  variant="popup"
339
347
  .size=${this.size}
340
348
  @slot-contents-changed=${this._onSlotMenuChanges}
@@ -344,16 +352,18 @@ let s = class extends _(S, {
344
352
  }
345
353
  _renderSelectMenu(t) {
346
354
  let o;
347
- return t && t >= this._currentSlotContents.length ? o = [] : (o = this._currentSlotContents?.map((e) => e.columnId ?? e.formulaId ?? e.column ?? e.formula), this.selects === "single" && o?.length > 0 && (o = [o[t ?? 0]])), a`<luzmo-select
355
+ return t && t >= this._currentSlotContents.length ? o = [] : (o = this._currentSlotContents?.map((i) => i.columnId ?? i.formulaId ?? i.column ?? i.formula), this.selects === "single" && o?.length > 0 && (o = [o[t ?? 0]])), c`<luzmo-select
356
+ .search=${this.search}
348
357
  label="Select..."
349
358
  id="expression"
350
359
  size=${this.size}
351
360
  variant="highlight"
352
361
  .language=${this.language}
353
- placement="bottom-start"
362
+ .placement=${this.placement}
354
363
  ?disabled=${this.disabled}
355
364
  .options=${this._selectOptions}
356
365
  .value=${o}
366
+ ?clearable=${!this.hideClear}
357
367
  selects=${this.selects === "multiple" && this.slotConfiguration?.canAcceptMultipleDataItems ? "multiple" : "single"}
358
368
  data-index=${t ?? 0}
359
369
  @change=${this._handleSelectChange}
@@ -362,13 +372,13 @@ let s = class extends _(S, {
362
372
  }
363
373
  _handleSelectChange(t) {
364
374
  if (this.selects === "single") {
365
- const e = t.currentTarget?.dataset?.index, l = e ? Number.parseInt(e, 10) : 0;
375
+ const i = t.currentTarget?.dataset?.index, l = i ? Number.parseInt(i, 10) : 0;
366
376
  this._setSlotContentAtIndex(t, Number.isNaN(l) ? 0 : l);
367
377
  } else
368
378
  this._setSlotContents(t);
369
379
  }
370
380
  _slotContentsPickerMarkup() {
371
- return a`
381
+ return c`
372
382
  <div class="container">
373
383
  ${this.selects === "multiple" ? this._renderMultipleSelect() : this._renderSingleSelect()}
374
384
  </div>
@@ -376,17 +386,17 @@ let s = class extends _(S, {
376
386
  }
377
387
  render() {
378
388
  return this._loadSlotsConfig.render({
379
- pending: () => a`<p>Loading...</p>`,
389
+ pending: () => c`<p>Loading...</p>`,
380
390
  complete: (t) => {
381
391
  if (this.slotName && this.itemType && t) {
382
392
  const o = t.find(
383
- (e) => e.name === this.slotName
393
+ (i) => i.name === this.slotName
384
394
  );
385
395
  o && (this.slotConfiguration = o);
386
396
  }
387
397
  return this._slotContentsPickerMarkup();
388
398
  },
389
- error: (t) => a`
399
+ error: (t) => c`
390
400
  <div>
391
401
  Could not load slot-contents-picker: '${this.slotName}' of chart
392
402
  '${this.itemType}': ${t}.
@@ -395,63 +405,66 @@ let s = class extends _(S, {
395
405
  });
396
406
  }
397
407
  };
398
- s.styles = y(I);
399
- n([
400
- c({ type: String, reflect: !0, attribute: "item-type" })
408
+ s.styles = _(O);
409
+ r([
410
+ a({ type: String, reflect: !0, attribute: "item-type" })
401
411
  ], s.prototype, "itemType", 2);
402
- n([
403
- c({ type: String, reflect: !0, attribute: "slot-name" })
412
+ r([
413
+ a({ type: String, reflect: !0, attribute: "slot-name" })
404
414
  ], s.prototype, "slotName", 2);
405
- n([
406
- c({ type: Object })
415
+ r([
416
+ a({ type: Object })
407
417
  ], s.prototype, "slotConfiguration", 2);
408
- n([
409
- c({ type: Object })
418
+ r([
419
+ a({ type: Object })
410
420
  ], s.prototype, "slotContents", 2);
411
- n([
412
- c({ type: String, reflect: !0 })
421
+ r([
422
+ a({ type: String, reflect: !0 })
413
423
  ], s.prototype, "language", 2);
414
- n([
415
- c({ type: Boolean, attribute: "disabled", reflect: !0 })
424
+ r([
425
+ a({ type: Boolean, attribute: "disabled", reflect: !0 })
416
426
  ], s.prototype, "disabled", 2);
417
- n([
418
- c({ type: String, reflect: !0 })
427
+ r([
428
+ a({ type: String, reflect: !0 })
419
429
  ], s.prototype, "menu", 2);
420
- n([
421
- c({ type: Boolean, attribute: "has-label", reflect: !0 })
430
+ r([
431
+ a({ type: Boolean, attribute: "has-label", reflect: !0 })
422
432
  ], s.prototype, "hasLabel", 2);
423
- n([
424
- c({ type: String, reflect: !0 })
433
+ r([
434
+ a({ type: String, reflect: !0 })
425
435
  ], s.prototype, "label", 2);
426
- n([
427
- c({ type: String, reflect: !0 })
436
+ r([
437
+ a({ type: String, reflect: !0 })
428
438
  ], s.prototype, "selects", 2);
429
- n([
430
- c({ type: String, reflect: !0 })
439
+ r([
440
+ a({ type: String, reflect: !0 })
441
+ ], s.prototype, "search", 2);
442
+ r([
443
+ a({ type: String, reflect: !0 })
431
444
  ], s.prototype, "icons", 2);
432
- n([
433
- c({ type: String, attribute: "placeholder", reflect: !0 })
445
+ r([
446
+ a({ type: String, attribute: "placeholder", reflect: !0 })
434
447
  ], s.prototype, "placeholder", 2);
435
- n([
436
- c({ type: Array, reflect: !1 })
448
+ r([
449
+ a({ type: Array, reflect: !1 })
437
450
  ], s.prototype, "datasetsDataItems", 2);
438
- n([
439
- c({ type: String, reflect: !0 })
451
+ r([
452
+ a({ type: String, reflect: !0 })
440
453
  ], s.prototype, "placement", 2);
441
- n([
442
- c({ type: Boolean, reflect: !0, attribute: "hide-delete" })
454
+ r([
455
+ a({ type: Boolean, reflect: !0, attribute: "hide-delete" })
443
456
  ], s.prototype, "hideDelete", 2);
444
- n([
445
- c({ type: Boolean, reflect: !0, attribute: "hide-configuration" })
457
+ r([
458
+ a({ type: Boolean, reflect: !0, attribute: "hide-configuration" })
446
459
  ], s.prototype, "hideConfiguration", 2);
447
- n([
448
- C()
460
+ r([
461
+ a({ type: Boolean, reflect: !0, attribute: "hide-clear" })
462
+ ], s.prototype, "hideClear", 2);
463
+ r([
464
+ S()
449
465
  ], s.prototype, "_hasExtraEmptySelects", 2);
450
- n([
451
- c({ type: Boolean, reflect: !0 })
452
- ], s.prototype, "stretch", 2);
453
- s = n([
454
- z()
466
+ s = r([
467
+ v()
455
468
  ], s);
456
469
  customElements.get("luzmo-slot-contents-picker") || customElements.define("luzmo-slot-contents-picker", s);
457
470
  export {
@@ -1,4 +1,5 @@
1
1
  import { Placement } from '@floating-ui/dom';
2
+ import { SlotName, VizItemType } from '@luzmo/dashboard-contents-types';
2
3
  import '@luzmo/lucero/action-button';
3
4
  import '@luzmo/lucero/field-label';
4
5
  import '@luzmo/lucero/overlay';
@@ -24,11 +25,11 @@ export declare class LuzmoSlotContentsPicker extends LuzmoSlotContentsPicker_bas
24
25
  /**
25
26
  * The type of the item
26
27
  */
27
- itemType?: string;
28
+ itemType?: VizItemType;
28
29
  /**
29
30
  * The name of the slot
30
31
  */
31
- slotName?: string;
32
+ slotName?: SlotName;
32
33
  /**
33
34
  * (Optional) The configuration of the slot, overrides the slot configuration loaded from the item type & slot name.
34
35
  */
@@ -58,13 +59,19 @@ export declare class LuzmoSlotContentsPicker extends LuzmoSlotContentsPicker_bas
58
59
  */
59
60
  label?: string;
60
61
  /**
61
- * Whether the picker allows multiple selections. Only relevant if the slot configuration allows multiple data items.
62
+ * Whether the picker allows single or multiple selections. Only relevant if the slot configuration allows multiple data items.
63
+ * @default 'multiple'
62
64
  */
63
65
  selects: 'single' | 'multiple';
66
+ /**
67
+ * @attr search - Whether the search input is visible.
68
+ * @default 'auto'
69
+ */
70
+ search?: 'on' | 'off' | 'auto';
64
71
  /**
65
72
  * Where to show icons
66
73
  */
67
- icons?: 'none' | 'only-menu' | 'all';
74
+ icons?: 'none' | 'menu-only' | 'all';
68
75
  /**
69
76
  * The placeholder text for the picker is no value selected.
70
77
  */
@@ -84,13 +91,27 @@ export declare class LuzmoSlotContentsPicker extends LuzmoSlotContentsPicker_bas
84
91
  * Placement of the slot menu. Only relevant for 'popup' and 'draggable' menu type
85
92
  */
86
93
  placement: Placement;
94
+ /**
95
+ * Whether to hide the delete button
96
+ * @default true
97
+ */
87
98
  hideDelete: boolean;
99
+ /**
100
+ * Whether to hide the configuration button
101
+ * @default false
102
+ */
88
103
  hideConfiguration?: boolean;
104
+ /**
105
+ * Whether to hide the clear button op a select
106
+ * @default false
107
+ */
108
+ hideClear: boolean;
89
109
  private _hasExtraEmptySelects;
90
110
  private _currentSlotContents;
91
111
  private _selectOptions;
92
112
  private _slotContentOptions;
93
- stretch: boolean;
113
+ private readonly _store;
114
+ constructor();
94
115
  private _changedSlotContents;
95
116
  private _emptySlotContents;
96
117
  protected willUpdate(changedProperties: PropertyValues): void;