@luzmo/analytics-components-kit 1.0.1-alpha.40 → 1.0.1-alpha.41

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 (199) hide show
  1. package/components/{area-chart-slots.config-P7xa-pHi.js → area-chart-slots.config-DoytjTpw.js} +1 -1
  2. package/components/{area-chart-slots.config-CIfDfftd.cjs → area-chart-slots.config-Dx_ysVZK.cjs} +1 -1
  3. package/components/{bar-chart-slots.config-MQAjNXqV.js → bar-chart-slots.config-Dn0IV43j.js} +1 -1
  4. package/components/{bar-chart-slots.config-DszaQhMd.cjs → bar-chart-slots.config-c_9ABPOI.cjs} +1 -1
  5. package/components/{box-plot-slots.config-BRhnF2FE.js → box-plot-slots.config-FI5Id-7p.js} +1 -1
  6. package/components/box-plot-slots.config-K-1CiWO-.cjs +20 -0
  7. package/components/{calculate-data-item-icon-DlyGQVBA.js → calculate-data-item-icon-B9B0iLjm.js} +1 -1
  8. package/components/{calculate-data-item-icon-Bygfq3KO.cjs → calculate-data-item-icon-CjHO4KtA.cjs} +1 -1
  9. package/components/choropleth-map-slots.config-CFERs0ca.cjs +20 -0
  10. package/components/{choropleth-map-slots.config-B-uJTj4q.js → choropleth-map-slots.config-DStOyVgQ.js} +7 -2
  11. package/components/{sunburst-chart-slots.config-C-_ganmv.cjs → circle-pack-chart-slots.config-B18aqdH1.cjs} +1 -1
  12. package/components/{circle-pack-chart-slots.config-xwVdRiwS.js → circle-pack-chart-slots.config-lV4uNMcp.js} +1 -1
  13. package/components/{column-chart-slots.config-C7MhpoR8.cjs → column-chart-slots.config-C0nGjkmv.cjs} +1 -1
  14. package/components/{column-chart-slots.config-DAdAk17k.js → column-chart-slots.config-epF0y5yo.js} +1 -1
  15. package/components/{combination-chart-slots.config-crMO01EO.cjs → combination-chart-slots.config-CY07Q5Hw.cjs} +1 -1
  16. package/components/{combination-chart-slots.config-CqKLFKCZ.js → combination-chart-slots.config-DRKSJyCC.js} +1 -1
  17. package/components/{date-filter-slots.config-Cb1LcT9W.cjs → date-filter-slots.config-CrA5ijD3.cjs} +1 -1
  18. package/components/{date-filter-slots.config-CxB8IF5B.js → date-filter-slots.config-DIjChKTZ.js} +2 -2
  19. package/components/display-settings/display-settings.d.ts +1 -0
  20. package/components/display-settings/index.cjs +1 -1
  21. package/components/display-settings/index.js +2 -1
  22. package/components/display-settings-binning/index.cjs +1 -1
  23. package/components/display-settings-binning/index.js +1 -1
  24. package/components/display-settings-datetime/index.cjs +1 -1
  25. package/components/display-settings-datetime/index.js +2 -2
  26. package/components/display-settings-grand-totals/index.cjs +1 -1
  27. package/components/display-settings-grand-totals/index.js +1 -1
  28. package/components/display-settings-numeric/index.cjs +2 -2
  29. package/components/display-settings-numeric/index.js +56 -51
  30. package/components/display-settings-period-over-period/index.cjs +1 -1
  31. package/components/display-settings-period-over-period/index.js +2 -2
  32. package/components/{donut-chart-slots.config-BEwhfq27.js → donut-chart-slots.config-CHLEBSDg.js} +1 -1
  33. package/components/{donut-chart-slots.config-DIp-24lO.cjs → donut-chart-slots.config-DBowIZNO.cjs} +1 -1
  34. package/components/draggable-data-item-level/index.cjs +1 -1
  35. package/components/draggable-data-item-level/index.js +3 -3
  36. package/components/{dropdown-filter-slots.config-I2n4b_6V.cjs → dropdown-filter-slots.config-0wn6pMvi.cjs} +1 -1
  37. package/components/{dropdown-filter-slots.config-B8J6ftCh.js → dropdown-filter-slots.config-D2J9Z5aQ.js} +1 -1
  38. package/components/droppable-slot/droppable-slot.d.ts +1 -1
  39. package/components/droppable-slot/index.cjs +2 -2
  40. package/components/droppable-slot/index.js +71 -64
  41. package/components/edit-option-action-button-group/index.cjs +1 -1
  42. package/components/edit-option-action-button-group/index.js +2 -2
  43. package/components/{edit-option-base-Cw2iO2Av.js → edit-option-base-BQc4gXup.js} +1 -1
  44. package/components/{edit-option-base-B7owFMOO.cjs → edit-option-base-ByphLI4J.cjs} +1 -1
  45. package/components/edit-option-color-picker/index.cjs +1 -1
  46. package/components/edit-option-color-picker/index.js +3 -3
  47. package/components/edit-option-multi-language-field/index.cjs +1 -1
  48. package/components/edit-option-multi-language-field/index.js +1 -1
  49. package/components/edit-option-number-field/index.cjs +1 -1
  50. package/components/edit-option-number-field/index.js +1 -1
  51. package/components/edit-option-picker/index.cjs +1 -1
  52. package/components/edit-option-picker/index.js +3 -3
  53. package/components/edit-option-position-picker/index.cjs +1 -1
  54. package/components/edit-option-position-picker/index.js +1 -1
  55. package/components/edit-option-positions-number-field/index.cjs +1 -1
  56. package/components/edit-option-positions-number-field/index.js +2 -2
  57. package/components/edit-option-radio-button-group/index.cjs +1 -1
  58. package/components/edit-option-radio-button-group/index.js +1 -1
  59. package/components/edit-option-slider/index.cjs +1 -1
  60. package/components/edit-option-slider/index.js +1 -1
  61. package/components/edit-option-switch/index.cjs +1 -1
  62. package/components/edit-option-switch/index.js +1 -1
  63. package/components/edit-option-text-field/index.cjs +1 -1
  64. package/components/edit-option-text-field/index.js +1 -1
  65. package/components/{evolution-number-slots.config-BI-sFIug.cjs → evolution-number-slots.config-CNNVp6vR.cjs} +1 -1
  66. package/components/{evolution-number-slots.config-CW21b2ua.js → evolution-number-slots.config-CSDEf5Lv.js} +1 -1
  67. package/components/filter-data-item-picker/index.cjs +1 -1
  68. package/components/filter-data-item-picker/index.js +3 -3
  69. package/components/filter-expression-picker/index.cjs +1 -1
  70. package/components/filter-expression-picker/index.js +1 -1
  71. package/components/filter-item/index.cjs +1 -1
  72. package/components/filter-item/index.js +1 -1
  73. package/components/filter-value-picker/index.cjs +1 -1
  74. package/components/filter-value-picker/index.js +1 -1
  75. package/components/filter-value-picker-datetime/index.cjs +1 -1
  76. package/components/filter-value-picker-datetime/index.js +3 -3
  77. package/components/filter-value-picker-hierarchy/index.cjs +1 -1
  78. package/components/filter-value-picker-hierarchy/index.js +1 -1
  79. package/components/filter-value-picker-numeric/index.cjs +1 -1
  80. package/components/filter-value-picker-numeric/index.js +1 -1
  81. package/components/{funnel-chart-slots.config-BBhMS2qi.js → funnel-chart-slots.config-B-72sm5j.js} +6 -1
  82. package/components/{box-plot-slots.config-DZxyy3sS.cjs → funnel-chart-slots.config-GKBCY9xN.cjs} +1 -1
  83. package/components/grid/index.cjs +1 -1
  84. package/components/grid/index.js +3 -3
  85. package/components/{marker-map-slots.config-cdD8XTmI.js → heat-map-slots.config-CAj40INL.js} +1 -1
  86. package/components/{heat-map-slots.config-CSxSsQwX.cjs → heat-map-slots.config-D7cSAVdX.cjs} +1 -1
  87. package/components/{hexbin-map-slots.config-cdD8XTmI.js → hexbin-map-slots.config-CAj40INL.js} +1 -1
  88. package/components/{hexbin-map-slots.config-CSxSsQwX.cjs → hexbin-map-slots.config-D7cSAVdX.cjs} +1 -1
  89. package/components/{index-UWOCtc0Y.js → index-8fxgV8-A.js} +2 -2
  90. package/components/{index-BIrO4_kD.cjs → index-B_rfLdXx.cjs} +1 -1
  91. package/components/{index-Ciad94jH.js → index-Bdy8Bz-n.js} +3 -3
  92. package/components/{index-BEAYzHcY.js → index-Bg5PqKqt.js} +32 -32
  93. package/components/{index-Jmmy73Aq.js → index-BmshD32H.js} +34 -34
  94. package/components/{index-sCesmw8l.js → index-CDpuEf8W.js} +4 -4
  95. package/components/{index-CT2vEcpn.cjs → index-CHFwXYcm.cjs} +2 -2
  96. package/components/{index-B_dW2-QA.cjs → index-CNA9joKT.cjs} +1 -1
  97. package/components/{index-CcDZIqpD.cjs → index-CUvucmA0.cjs} +1 -1
  98. package/components/{index-CAJRL5rT.cjs → index-CYeQkVeJ.cjs} +5 -5
  99. package/components/{utils-B1rr30GZ.js → index-CgnTl6Sc.js} +11 -13
  100. package/components/{index-BNwJ9moR.js → index-ChDwMQlU.js} +3 -3
  101. package/components/{index-CzRmB9z3.cjs → index-DM96Q1fX.cjs} +1 -1
  102. package/components/{index-Boxjo5I0.js → index-DUF6bALI.js} +7 -7
  103. package/components/{index-CaVIv7B9.cjs → index-EXO-Hsj2.cjs} +1 -1
  104. package/components/{utils-CvCeHVBQ.cjs → index-Vdyb9z2D.cjs} +1 -1
  105. package/components/index.cjs +1 -1
  106. package/components/index.js +18 -16
  107. package/components/item-slots-configs.cjs +1 -1
  108. package/components/item-slots-configs.js +32 -32
  109. package/components/{line-chart-slots.config-P7xa-pHi.js → line-chart-slots.config-DoytjTpw.js} +1 -1
  110. package/components/{line-chart-slots.config-CIfDfftd.cjs → line-chart-slots.config-Dx_ysVZK.cjs} +1 -1
  111. package/components/luzmo-icons-B_3XTuMC.cjs +31 -0
  112. package/components/{luzmo-icons-DEoJcvoL.js → luzmo-icons-v9hKZ3HV.js} +115 -107
  113. package/components/{heat-map-slots.config-cdD8XTmI.js → marker-map-slots.config-CAj40INL.js} +1 -1
  114. package/components/{marker-map-slots.config-CSxSsQwX.cjs → marker-map-slots.config-D7cSAVdX.cjs} +1 -1
  115. package/components/{parallel-coordinates-plot-slots.config-BRXA5nUl.cjs → parallel-coordinates-plot-slots.config--fk40ZDu.cjs} +1 -1
  116. package/components/{parallel-coordinates-plot-slots.config-CQW2CJW6.js → parallel-coordinates-plot-slots.config-BjRcJdWM.js} +7 -2
  117. package/components/{pending-state-DTX7ggyF-D1SvcIIz.js → pending-state-DTX7ggyF-BQdsLMT1.js} +2 -2
  118. package/components/{pending-state-DTX7ggyF-DZzxjogp.cjs → pending-state-DTX7ggyF-CoV2RbDq.cjs} +1 -1
  119. package/components/{pivot-table-slots.config-DzGWM3Ez.cjs → pivot-table-slots.config-45V_Gdm7.cjs} +1 -1
  120. package/components/{pivot-table-slots.config-BH5fOJre.js → pivot-table-slots.config-CGU7IyDG.js} +3 -3
  121. package/components/{pyramid-chart-slots.config-DeWrVApy.cjs → pyramid-chart-slots.config-D5F0WX2d.cjs} +1 -1
  122. package/components/{pyramid-chart-slots.config-Cm9bQsXT.js → pyramid-chart-slots.config-lfxmIAy_.js} +1 -1
  123. package/components/radar-chart-slots.config-BEigR_Ml.cjs +20 -0
  124. package/components/{radar-chart-slots.config-Dpmytmc3.js → radar-chart-slots.config-CuQvda0y.js} +6 -1
  125. package/components/{regular-table-slots.config-ChrvnRDb.cjs → regular-table-slots.config-RLnMgOXn.cjs} +1 -1
  126. package/components/{regular-table-slots.config-EUS-V9lL.js → regular-table-slots.config-eQ8HccjY.js} +1 -1
  127. package/components/{route-map-slots.config-DYCcaQZi.js → route-map-slots.config-B9dcwOXi.js} +7 -2
  128. package/components/{route-map-slots.config-BfbIWCr0.cjs → route-map-slots.config-DsVJBR3D.cjs} +1 -1
  129. package/components/{sankey-diagram-slots.config-B7Q-ZfUP.cjs → sankey-diagram-slots.config-CiyYElLX.cjs} +1 -1
  130. package/components/{sankey-diagram-slots.config-BSTBEZDe.js → sankey-diagram-slots.config-DmqnP_mH.js} +1 -1
  131. package/components/{scatter-plot-slots.config-wlX_PVu8.cjs → scatter-plot-slots.config-47cB5_RC.cjs} +1 -1
  132. package/components/{scatter-plot-slots.config-BuWYqDWK.js → scatter-plot-slots.config-DjURFO07.js} +1 -1
  133. package/components/{search-filter-slots.config-DmiVXOva.js → search-filter-slots.config-CCEWnbiJ.js} +2 -2
  134. package/components/{search-filter-slots.config-DOlr8VaD.cjs → search-filter-slots.config-DeHkvc2Q.cjs} +1 -1
  135. package/components/{slicer-filter-slots.config-CHQ0ZXga.js → slicer-filter-slots.config-AOwwW5Ut.js} +2 -2
  136. package/components/{slicer-filter-slots.config-Dyte3aGp.cjs → slicer-filter-slots.config-V7hURjKI.cjs} +1 -1
  137. package/components/{slider-filter-slots.config-Cr5oXbok.cjs → slider-filter-slots.config-B--K9cpP.cjs} +1 -1
  138. package/components/{slider-filter-slots.config-BN3K1rnl.js → slider-filter-slots.config-D7cv_Ky4.js} +7 -2
  139. package/components/slot-contents-picker/index.cjs +145 -0
  140. package/components/slot-contents-picker/index.d.ts +7 -0
  141. package/components/slot-contents-picker/index.js +461 -0
  142. package/components/slot-contents-picker/slot-contents-picker.d.ts +112 -0
  143. package/components/slot-menu/index.cjs +12 -11
  144. package/components/slot-menu/index.js +31 -23
  145. package/components/slot-menu/slot-menu.d.ts +13 -0
  146. package/components/slot-menu-list/index.cjs +1 -1
  147. package/components/slot-menu-list/index.js +1 -1
  148. package/components/{spike-map-slots.config-Drga6_j0.cjs → spike-map-slots.config-BM5-Dlub.cjs} +1 -1
  149. package/components/{spike-map-slots.config-CuqpgkvN.js → spike-map-slots.config-Bq0WfdI4.js} +1 -1
  150. package/components/{strip-plot-slots.config-Co8ghEv8.js → strip-plot-slots.config-B1OLcL4K.js} +1 -1
  151. package/components/{strip-plot-slots.config-JvkKY5Ga.cjs → strip-plot-slots.config-DDUlLO8K.cjs} +1 -1
  152. package/components/{circle-pack-chart-slots.config-C-_ganmv.cjs → sunburst-chart-slots.config-B18aqdH1.cjs} +1 -1
  153. package/components/{sunburst-chart-slots.config-xwVdRiwS.js → sunburst-chart-slots.config-lV4uNMcp.js} +1 -1
  154. package/components/{symbol-map-slots.config-C5CKaVED.js → symbol-map-slots.config-DT5lvWh_.js} +7 -2
  155. package/components/{choropleth-map-slots.config-PNwSR0XY.cjs → symbol-map-slots.config-Dm_FRGHA.cjs} +1 -1
  156. package/components/utils.cjs +1 -1
  157. package/components/utils.js +34 -34
  158. package/components/{venn-diagram-slots.config-DPmj71cR.js → venn-diagram-slots.config-BPxkBFb6.js} +2 -2
  159. package/components/{venn-diagram-slots.config-CpOPbUjs.cjs → venn-diagram-slots.config-GytlZGbF.cjs} +1 -1
  160. package/custom-elements.json +412 -9
  161. package/index.d.ts +1 -0
  162. package/item-definitions/area-chart/area-chart-slots.config.d.ts +3 -3
  163. package/item-definitions/bar-chart/bar-chart-slots.config.d.ts +2 -2
  164. package/item-definitions/box-plot/box-plot-slots.config.d.ts +2 -2
  165. package/item-definitions/choropleth-map/choropleth-map-slots.config.d.ts +3 -3
  166. package/item-definitions/circle-pack-chart/circle-pack-chart-slots.config.d.ts +2 -2
  167. package/item-definitions/column-chart/column-chart-slots.config.d.ts +2 -2
  168. package/item-definitions/combination-chart/combination-chart-slots.config.d.ts +2 -2
  169. package/item-definitions/date-filter/date-filter-slots.config.d.ts +2 -2
  170. package/item-definitions/donut-chart/donut-chart-slots.config.d.ts +2 -2
  171. package/item-definitions/dropdown-filter/dropdown-filter-slots.config.d.ts +1 -1
  172. package/item-definitions/evolution-number/evolution-number-slots.config.d.ts +2 -2
  173. package/item-definitions/funnel-chart/funnel-chart-slots.config.d.ts +2 -2
  174. package/item-definitions/heat-map/heat-map-slots.config.d.ts +2 -2
  175. package/item-definitions/hexbin-map/hexbin-map-slots.config.d.ts +2 -2
  176. package/item-definitions/line-chart/line-chart-slots.config.d.ts +3 -3
  177. package/item-definitions/marker-map/marker-map-slots.config.d.ts +2 -2
  178. package/item-definitions/parallel-coordinates-plot/parallel-coordinates-plot-slots.config.d.ts +4 -4
  179. package/item-definitions/pivot-table/pivot-table-slots.config.d.ts +2 -2
  180. package/item-definitions/pyramid-chart/pyramid-chart-slots.config.d.ts +3 -3
  181. package/item-definitions/radar-chart/radar-chart-slots.config.d.ts +3 -3
  182. package/item-definitions/regular-table/regular-table-slots.config.d.ts +1 -1
  183. package/item-definitions/route-map/route-map-slots.config.d.ts +3 -3
  184. package/item-definitions/sankey-diagram/sankey-diagram-slots.config.d.ts +3 -3
  185. package/item-definitions/scatter-plot/scatter-plot-slots.config.d.ts +4 -4
  186. package/item-definitions/search-filter/search-filter-slots.config.d.ts +2 -2
  187. package/item-definitions/slicer-filter/slicer-filter-slots.config.d.ts +2 -2
  188. package/item-definitions/slider-filter/slider-filter-slots.config.d.ts +2 -2
  189. package/item-definitions/spike-map/spike-map-slots.config.d.ts +3 -3
  190. package/item-definitions/strip-plot/strip-plot-slots.config.d.ts +2 -2
  191. package/item-definitions/sunburst-chart/sunburst-chart-slots.config.d.ts +2 -2
  192. package/item-definitions/symbol-map/symbol-map-slots.config.d.ts +3 -3
  193. package/item-definitions/venn-diagram/venn-diagram-slots.config.d.ts +2 -2
  194. package/package.json +6 -1
  195. package/components/funnel-chart-slots.config-WrokHS7f.cjs +0 -20
  196. package/components/luzmo-icons-DAsjNJNI.cjs +0 -31
  197. package/components/radar-chart-slots.config-Dxx5fKnS.cjs +0 -20
  198. package/components/symbol-map-slots.config-DtW-3xkd.cjs +0 -20
  199. package/utils/themes/utils.d.ts +0 -1
@@ -0,0 +1,461 @@
1
+ /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
+ *
3
+ * Copyright © 2025 Luzmo
4
+ * All rights reserved.
5
+ * Luzmo web components (“Luzmo Web Components”)
6
+ * must be used according to the Luzmo Terms of Service.
7
+ * This license allows users with a current active Luzmo account
8
+ * to use the Luzmo Web Components. This license terminates
9
+ * automatically if a user no longer has an active Luzmo account.
10
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
11
+ *
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ * SOFTWARE.
19
+ * */
20
+ import { g as C, t as _, s as S, m as k } from "../set-locale-DbEAMqUs.js";
21
+ import { l as x } from "../localized-decorator-DNr1P1m0.js";
22
+ import { h as $ } from "../task-PQaVY8Iw.js";
23
+ import { a3 as d, a7 as I, a8 as z, a6 as h } from "../luzmo-icons-v9hKZ3HV.js";
24
+ import "../index-rQxtPaJl.js";
25
+ import "../index-CsDgk_sj.js";
26
+ import "../index-DUF6bALI.js";
27
+ import "../index-ChDwMQlU.js";
28
+ import "../index-BmshD32H.js";
29
+ import { c as b } from "../calculate-data-item-icon-B9B0iLjm.js";
30
+ import { l as v } from "../localize-BX7q0S0M.js";
31
+ import { x as c, r as w, n as m } from "../property-Dn4zSyxu.js";
32
+ import { r as D } from "../state-vVJlsarL.js";
33
+ import { L as E } from "../focusable-BXhQz3_k.js";
34
+ import { S as O } from "../sized-mixin-BR_Ii7le.js";
35
+ import "../display-settings/index.js";
36
+ import "../slot-menu/index.js";
37
+ const y = () => {
38
+ if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
39
+ const t = document.createElement("style");
40
+ 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);
41
+ }
42
+ };
43
+ y();
44
+ const L = ":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}";
45
+ var M = Object.defineProperty, A = Object.getOwnPropertyDescriptor, a = (t, o, l, e) => {
46
+ for (var s = e > 1 ? void 0 : e ? A(o, l) : o, u = t.length - 1, i; u >= 0; u--)
47
+ (i = t[u]) && (s = (e ? i(o, l, s) : i(s)) || s);
48
+ return e && s && M(o, l, s), s;
49
+ };
50
+ let n = class extends O(E, {
51
+ validSizes: ["s", "m", "l", "xl"],
52
+ noDefaultSize: !0
53
+ }) {
54
+ constructor() {
55
+ super(...arguments), this._loadSlotsConfig = new $(this, {
56
+ task: async ([t]) => {
57
+ if (t && t !== this._itemTypeLoaded) {
58
+ const o = /* @__PURE__ */ Object.assign({
59
+ "../../item-definitions/area-chart/area-chart-slots.config.ts": () => import("../area-chart-slots.config-DoytjTpw.js"),
60
+ "../../item-definitions/bar-chart/bar-chart-slots.config.ts": () => import("../bar-chart-slots.config-Dn0IV43j.js"),
61
+ "../../item-definitions/box-plot/box-plot-slots.config.ts": () => import("../box-plot-slots.config-FI5Id-7p.js"),
62
+ "../../item-definitions/bubble-chart/bubble-chart-slots.config.ts": () => import("../bubble-chart-slots.config-Bbh94VgZ.js"),
63
+ "../../item-definitions/bullet-chart/bullet-chart-slots.config.ts": () => import("../bullet-chart-slots.config-BlWTleBt.js"),
64
+ "../../item-definitions/choropleth-map/choropleth-map-slots.config.ts": () => import("../choropleth-map-slots.config-DStOyVgQ.js"),
65
+ "../../item-definitions/circle-pack-chart/circle-pack-chart-slots.config.ts": () => import("../circle-pack-chart-slots.config-lV4uNMcp.js"),
66
+ "../../item-definitions/circular-gauge/circular-gauge-slots.config.ts": () => import("../circular-gauge-slots.config-DA-ZAc5d.js"),
67
+ "../../item-definitions/column-chart/column-chart-slots.config.ts": () => import("../column-chart-slots.config-epF0y5yo.js"),
68
+ "../../item-definitions/combination-chart/combination-chart-slots.config.ts": () => import("../combination-chart-slots.config-DRKSJyCC.js"),
69
+ "../../item-definitions/conditional-number/conditional-number-slots.config.ts": () => import("../conditional-number-slots.config-L3t5pb1-.js"),
70
+ "../../item-definitions/date-filter/date-filter-slots.config.ts": () => import("../date-filter-slots.config-DIjChKTZ.js"),
71
+ "../../item-definitions/donut-chart/donut-chart-slots.config.ts": () => import("../donut-chart-slots.config-CHLEBSDg.js"),
72
+ "../../item-definitions/dropdown-filter/dropdown-filter-slots.config.ts": () => import("../dropdown-filter-slots.config-D2J9Z5aQ.js"),
73
+ "../../item-definitions/evolution-number/evolution-number-slots.config.ts": () => import("../evolution-number-slots.config-CSDEf5Lv.js"),
74
+ "../../item-definitions/funnel-chart/funnel-chart-slots.config.ts": () => import("../funnel-chart-slots.config-B-72sm5j.js"),
75
+ "../../item-definitions/heat-map/heat-map-slots.config.ts": () => import("../heat-map-slots.config-CAj40INL.js"),
76
+ "../../item-definitions/heat-table/heat-table-slots.config.ts": () => import("../heat-table-slots.config-DJkP72oT.js"),
77
+ "../../item-definitions/hexbin-map/hexbin-map-slots.config.ts": () => import("../hexbin-map-slots.config-CAj40INL.js"),
78
+ "../../item-definitions/image/image-slots.config.ts": () => import("../image-slots.config-IpwUxDyU.js"),
79
+ "../../item-definitions/line-chart/line-chart-slots.config.ts": () => import("../line-chart-slots.config-DoytjTpw.js"),
80
+ "../../item-definitions/marker-map/marker-map-slots.config.ts": () => import("../marker-map-slots.config-CAj40INL.js"),
81
+ "../../item-definitions/ohlc-chart/ohlc-chart-slots.config.ts": () => import("../ohlc-chart-slots.config-Cvy5n1xv.js"),
82
+ "../../item-definitions/parallel-coordinates-plot/parallel-coordinates-plot-slots.config.ts": () => import("../parallel-coordinates-plot-slots.config-BjRcJdWM.js"),
83
+ "../../item-definitions/pivot-table/pivot-table-slots.config.ts": () => import("../pivot-table-slots.config-CGU7IyDG.js"),
84
+ "../../item-definitions/pyramid-chart/pyramid-chart-slots.config.ts": () => import("../pyramid-chart-slots.config-lfxmIAy_.js"),
85
+ "../../item-definitions/radar-chart/radar-chart-slots.config.ts": () => import("../radar-chart-slots.config-CuQvda0y.js"),
86
+ "../../item-definitions/regular-table/regular-table-slots.config.ts": () => import("../regular-table-slots.config-eQ8HccjY.js"),
87
+ "../../item-definitions/route-map/route-map-slots.config.ts": () => import("../route-map-slots.config-B9dcwOXi.js"),
88
+ "../../item-definitions/sankey-diagram/sankey-diagram-slots.config.ts": () => import("../sankey-diagram-slots.config-DmqnP_mH.js"),
89
+ "../../item-definitions/scatter-plot/scatter-plot-slots.config.ts": () => import("../scatter-plot-slots.config-DjURFO07.js"),
90
+ "../../item-definitions/search-filter/search-filter-slots.config.ts": () => import("../search-filter-slots.config-CCEWnbiJ.js"),
91
+ "../../item-definitions/slicer-filter/slicer-filter-slots.config.ts": () => import("../slicer-filter-slots.config-AOwwW5Ut.js"),
92
+ "../../item-definitions/slider-filter/slider-filter-slots.config.ts": () => import("../slider-filter-slots.config-D7cv_Ky4.js"),
93
+ "../../item-definitions/speedometer-chart/speedometer-chart-slots.config.ts": () => import("../speedometer-chart-slots.config-DA-ZAc5d.js"),
94
+ "../../item-definitions/spike-map/spike-map-slots.config.ts": () => import("../spike-map-slots.config-Bq0WfdI4.js"),
95
+ "../../item-definitions/strip-plot/strip-plot-slots.config.ts": () => import("../strip-plot-slots.config-B1OLcL4K.js"),
96
+ "../../item-definitions/sunburst-chart/sunburst-chart-slots.config.ts": () => import("../sunburst-chart-slots.config-lV4uNMcp.js"),
97
+ "../../item-definitions/symbol-map/symbol-map-slots.config.ts": () => import("../symbol-map-slots.config-DT5lvWh_.js"),
98
+ "../../item-definitions/text/text-slots.config.ts": () => import("../text-slots.config-Hy5yNIAX.js"),
99
+ "../../item-definitions/treemap-chart/treemap-chart-slots.config.ts": () => import("../treemap-chart-slots.config-xLD22K9V.js"),
100
+ "../../item-definitions/venn-diagram/venn-diagram-slots.config.ts": () => import("../venn-diagram-slots.config-BPxkBFb6.js"),
101
+ "../../item-definitions/video/video-slots.config.ts": () => import("../video-slots.config-IpwUxDyU.js"),
102
+ "../../item-definitions/wordcloud-chart/wordcloud-chart-slots.config.ts": () => import("../wordcloud-chart-slots.config-BS4sOOHt.js")
103
+ });
104
+ if (o[`../../item-definitions/${t}/${t}-slots.config.ts`]) {
105
+ const l = await o[`../../item-definitions/${t}/${t}-slots.config.ts`]();
106
+ this._slotsConfig = (l == null ? void 0 : l.default) ?? {};
107
+ }
108
+ return this._slotsConfig;
109
+ }
110
+ },
111
+ 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) => {
113
+ this.dispatchEvent(
114
+ new CustomEvent("slot-contents-changed", {
115
+ bubbles: !0,
116
+ composed: !0,
117
+ cancelable: !0,
118
+ detail: {
119
+ slotContents: t
120
+ }
121
+ })
122
+ );
123
+ };
124
+ }
125
+ _emptySlotContents(t) {
126
+ typeof t != "number" ? (this.slotContents = [], this._currentSlotContents = [], this._changedSlotContents([])) : (this._currentSlotContents = this._currentSlotContents.filter(
127
+ (l, e) => e !== t
128
+ ), this._changedSlotContents(this._currentSlotContents));
129
+ }
130
+ willUpdate(t) {
131
+ const o = t.has("slotContents"), l = t.has("datasetsDataItems"), e = t.has("language");
132
+ o && (this._currentSlotContents = structuredClone(this.slotContents)), l && (this._selectOptions = this._createSelectOptions(), this._slotContentOptions = this._createSlotContentOptions()), e && this.language !== C() && ([..._].includes(this.language ?? "en") || this.language === "en") && S(this.language);
133
+ }
134
+ _onSlotMenuChanges(t) {
135
+ var o;
136
+ t.preventDefault(), t.stopPropagation(), this.slotContents.length === ((o = t.detail.slotContents) == null ? void 0 : o.length) ? (this._currentSlotContents = t.detail.slotContents, this._changedSlotContents(this._currentSlotContents)) : (this.slotContents = t.detail.slotContents, this._changedSlotContents(this.slotContents));
137
+ }
138
+ _setSlotContentAtIndex(t, o) {
139
+ var e, s, u, i, r, f;
140
+ const l = (s = (e = t == null ? void 0 : t.detail) == null ? void 0 : e.value) == null ? void 0 : s[0];
141
+ o >= this._currentSlotContents.length && this._removeEmptySelect();
142
+ for (let p = this._currentSlotContents.length; p <= o; p++)
143
+ this._currentSlotContents[p] || this._currentSlotContents.push({});
144
+ if (l && !(l === ((u = this._currentSlotContents[o]) == null ? void 0 : u.columnId) || l === ((i = this._currentSlotContents[o]) == null ? void 0 : i.column) || l === ((r = this._currentSlotContents[o]) == null ? void 0 : r.formulaId) || l === ((f = this._currentSlotContents[o]) == null ? void 0 : f.formula))) {
145
+ const p = this._slotContentOptions.find(
146
+ (g) => g.columnId === l || g.formulaId === l
147
+ );
148
+ p && (this._currentSlotContents[o] = structuredClone(p));
149
+ }
150
+ this.slotContents = structuredClone(
151
+ this._currentSlotContents.filter(
152
+ (p) => p.columnId || p.formulaId || p.column || p.formula
153
+ )
154
+ ), this._changedSlotContents(this.slotContents);
155
+ }
156
+ _setSlotContents(t) {
157
+ var l, e;
158
+ let o = t.detail.value;
159
+ (l = this.slotConfiguration) != null && l.canAcceptMultipleDataItems && o.length > 1 || (o = o.slice(0, 1)), this._currentSlotContents = ((e = this._currentSlotContents) == null ? void 0 : e.filter((s) => o.includes(s.columnId ?? s.formulaId))) ?? [], o.forEach((s) => {
160
+ if (this._currentSlotContents.some(
161
+ (i) => i.columnId === s || i.formulaId === s
162
+ ))
163
+ return;
164
+ const u = this._slotContentOptions.find(
165
+ (i) => i.columnId === s || i.formulaId === s
166
+ );
167
+ u && this._currentSlotContents.push(structuredClone(u));
168
+ }), this.slotContents = structuredClone(this._currentSlotContents), this._changedSlotContents(this._currentSlotContents);
169
+ }
170
+ _createSlotContentOptions() {
171
+ var o, l;
172
+ const t = [];
173
+ for (const e of this.datasetsDataItems ?? []) {
174
+ const s = (e == null ? void 0 : e.columns) ?? [], u = (e == null ? void 0 : e.formulas) ?? [];
175
+ for (const i of s)
176
+ if ((((o = this.slotConfiguration) == null ? void 0 : o.acceptableDataItemTypes) ?? [
177
+ "hierarchy",
178
+ "numeric",
179
+ "datetime",
180
+ "array[hierarchy]",
181
+ "array[numeric]",
182
+ "array[datetime]"
183
+ ]).includes(i.type)) {
184
+ const r = structuredClone(i);
185
+ r.columnId = i.id, r.datasetId = e.id, r.label = i.name, delete r.name, delete r.id, t.push(r);
186
+ }
187
+ if ((l = this.slotConfiguration) != null && l.canAcceptFormula)
188
+ for (const i of u) {
189
+ const r = structuredClone(i);
190
+ r.formulaId = i.id, r.datasetId = e.id, r.label = i.name, delete r.name, delete r.id, t.push(r);
191
+ }
192
+ }
193
+ return t;
194
+ }
195
+ _createSelectOptions() {
196
+ var o, l;
197
+ const t = [];
198
+ for (const e of this.datasetsDataItems ?? []) {
199
+ const s = (e == null ? void 0 : e.columns) ?? [], u = (e == null ? void 0 : e.formulas) ?? [];
200
+ for (const i of s)
201
+ (((o = this.slotConfiguration) == null ? void 0 : o.acceptableDataItemTypes) ?? [
202
+ "hierarchy",
203
+ "numeric",
204
+ "datetime",
205
+ "array[hierarchy]",
206
+ "array[numeric]",
207
+ "array[datetime]"
208
+ ]).includes(i.type) && t.push({
209
+ value: i.id,
210
+ label: v((i == null ? void 0 : i.name) ?? {}, this.language),
211
+ icon: b(i, this.size)
212
+ });
213
+ if ((l = this.slotConfiguration) != null && l.canAcceptFormula)
214
+ for (const i of u)
215
+ t.push({
216
+ value: i.id,
217
+ label: v((i == null ? void 0 : i.name) ?? {}, this.language),
218
+ icon: b(i, this.size)
219
+ });
220
+ }
221
+ return t;
222
+ }
223
+ _renderFieldLabel() {
224
+ return c`<luzmo-field-label for="data-item" size=${this.size}
225
+ >${this.label ?? k("Select...")}
226
+ </luzmo-field-label>`;
227
+ }
228
+ _removeEmptySelect() {
229
+ this._hasExtraEmptySelects = !1;
230
+ }
231
+ _addDataItem() {
232
+ this._hasExtraEmptySelects = !0;
233
+ }
234
+ _renderExtraDataItemButton() {
235
+ return c`<div class="extra-data-item-button-container">
236
+ <luzmo-action-button
237
+ size="xs"
238
+ @click=${this._addDataItem}
239
+ ?disabled=${this._hasExtraEmptySelects}
240
+ >
241
+ ${d(I)}
242
+ </luzmo-action-button>
243
+ <luzmo-tooltip self-managed placement="top" size=${this.size}>
244
+ Add data item
245
+ </luzmo-tooltip>
246
+ </div>`;
247
+ }
248
+ _renderSingleSelect() {
249
+ const t = this._renderFieldLabel(), o = this._currentSlotContents.map(
250
+ (l, e) => {
251
+ var s, u, i, r;
252
+ return c` <div class="select-container">
253
+ ${this.hasLabel && e === 0 ? t : ""}
254
+ ${this._renderSelectMenu(e)}
255
+ ${((s = this.slotContents) == null ? void 0 : s.length) > 0 && !(this.hideConfiguration && this.hideDelete) ? c`<div class="controls">
256
+ ${this.hideConfiguration ? "" : c`<luzmo-action-button
257
+ .size=${this.size}
258
+ quiet
259
+ id=${`trigger-${e}`}
260
+ >
261
+ ${d(z)}
262
+ <luzmo-tooltip
263
+ self-managed
264
+ placement="top"
265
+ size=${this.size}
266
+ >
267
+ edit
268
+ </luzmo-tooltip>
269
+ </luzmo-action-button>`}
270
+ ${this.hideDelete ? "" : c`<div
271
+ @click=${this._emptySlotContents.bind(this, e)}
272
+ >
273
+ ${d(h)}
274
+ <luzmo-tooltip
275
+ self-managed
276
+ placement="top"
277
+ size=${this.size}
278
+ >
279
+ Delete
280
+ </luzmo-tooltip>
281
+ </div>`}
282
+ </div>` : ""}
283
+ ${((u = this.slotContents) == null ? void 0 : u.length) > 0 ? c`<luzmo-overlay
284
+ trigger=${`trigger-${e}@click`}
285
+ .placement=${this.placement}
286
+ >
287
+ <luzmo-slot-menu
288
+ language=${this.language}
289
+ content-language=${this.language}
290
+ slot-type=${(i = this.slotConfiguration) == null ? void 0 : i.type}
291
+ .slotContents=${this._currentSlotContents}
292
+ .slotIndex=${(r = this.slotConfiguration) != null && r.canAcceptMultipleDataItems ? e : void 0}
293
+ variant="popup"
294
+ .size=${this.size}
295
+ @slot-contents-changed=${this._onSlotMenuChanges}
296
+ ></luzmo-slot-menu>
297
+ </luzmo-overlay>` : ""}
298
+ </div>`;
299
+ }
300
+ );
301
+ return this._hasExtraEmptySelects && o.push(
302
+ c`<div class="select-container">
303
+ ${this._renderSelectMenu(this._currentSlotContents.length)}
304
+ <div class="controls">
305
+ <luzmo-action-button
306
+ .size=${this.size}
307
+ quiet
308
+ @click=${this._removeEmptySelect}
309
+ >
310
+ ${d(h)}
311
+ <luzmo-tooltip self-managed placement="top" size=${this.size}>
312
+ Delete
313
+ </luzmo-tooltip>
314
+ </luzmo-action-button>
315
+ </div>
316
+ </div>`
317
+ ), o.push(this._renderExtraDataItemButton()), o;
318
+ }
319
+ _renderMultipleSelect() {
320
+ var o, l, e;
321
+ const t = this._renderFieldLabel();
322
+ return c`<div class="select-container">
323
+ ${this.hasLabel ? t : ""} ${this._renderSelectMenu()}
324
+ ${((o = this.slotContents) == null ? void 0 : o.length) > 0 && !(this.hideConfiguration && this.hideDelete) ? c`<div class="controls">
325
+ ${this.hideConfiguration ? "" : c`<luzmo-action-button .size=${this.size} quiet id="trigger">
326
+ ${d(z)}
327
+ <luzmo-tooltip self-managed placement="top" size=${this.size}>
328
+ edit
329
+ </luzmo-tooltip>
330
+ </luzmo-action-button>`}
331
+ ${this.hideDelete ? "" : c`<div @click=${this._emptySlotContents}>
332
+ ${d(h)}
333
+ <luzmo-tooltip self-managed placement="top" size=${this.size}>
334
+ Delete
335
+ </luzmo-tooltip>
336
+ </div>`}
337
+ </div>` : ""}
338
+ ${((l = this.slotContents) == null ? void 0 : l.length) > 0 ? c`<luzmo-overlay
339
+ trigger="trigger@click"
340
+ .placement=${this.placement}
341
+ >
342
+ <luzmo-slot-menu
343
+ language=${this.language}
344
+ content-language=${this.language}
345
+ slot-type=${(e = this.slotConfiguration) == null ? void 0 : e.type}
346
+ .slotContents=${this._currentSlotContents}
347
+ variant="popup"
348
+ .size=${this.size}
349
+ @slot-contents-changed=${this._onSlotMenuChanges}
350
+ ></luzmo-slot-menu>
351
+ </luzmo-overlay>` : ""}
352
+ </div>`;
353
+ }
354
+ _renderSelectMenu(t) {
355
+ var l, e;
356
+ let o;
357
+ return t && t >= this._currentSlotContents.length ? o = [] : (o = (l = this._currentSlotContents) == null ? void 0 : l.map((s) => s.columnId ?? s.formulaId ?? s.column ?? s.formula), this.selects === "single" && (o == null ? void 0 : o.length) > 0 && (o = [o[t ?? 0]])), c`<luzmo-select
358
+ label="Select..."
359
+ id="expression"
360
+ size=${this.size}
361
+ variant="highlight"
362
+ .language=${this.language}
363
+ placement="bottom-start"
364
+ ?disabled=${this.disabled}
365
+ .options=${this._selectOptions}
366
+ .value=${o}
367
+ selects=${this.selects === "multiple" && ((e = this.slotConfiguration) != null && e.canAcceptMultipleDataItems) ? "multiple" : "single"}
368
+ @change=${(s) => this.selects === "single" ? this._setSlotContentAtIndex(s, t ?? 0) : this._setSlotContents(s)}
369
+ >
370
+ </luzmo-select>`;
371
+ }
372
+ _slotContentsPickerMarkup() {
373
+ return c`
374
+ <div class="container">
375
+ ${this.selects === "multiple" ? this._renderMultipleSelect() : this._renderSingleSelect()}
376
+ </div>
377
+ `;
378
+ }
379
+ render() {
380
+ return this._loadSlotsConfig.render({
381
+ pending: () => c`<p>Loading...</p>`,
382
+ complete: (t) => {
383
+ if (this.slotName && this.itemType && t) {
384
+ const o = t.find(
385
+ (l) => l.name === this.slotName
386
+ );
387
+ o && (this.slotConfiguration = o);
388
+ }
389
+ return this._slotContentsPickerMarkup();
390
+ },
391
+ error: (t) => c`
392
+ <div>
393
+ Could not load slot-contents-picker: '${this.slotName}' of chart
394
+ '${this.itemType}': ${t}.
395
+ </div>
396
+ `
397
+ });
398
+ }
399
+ };
400
+ n.styles = w(L);
401
+ a([
402
+ m({ type: String, reflect: !0, attribute: "item-type" })
403
+ ], n.prototype, "itemType", 2);
404
+ a([
405
+ m({ type: String, reflect: !0, attribute: "slot-name" })
406
+ ], n.prototype, "slotName", 2);
407
+ a([
408
+ m({ type: Object })
409
+ ], n.prototype, "slotConfiguration", 2);
410
+ a([
411
+ m({ type: Object })
412
+ ], n.prototype, "slotContents", 2);
413
+ a([
414
+ m({ type: String, reflect: !0 })
415
+ ], n.prototype, "language", 2);
416
+ a([
417
+ m({ type: Boolean, attribute: "disabled", reflect: !0 })
418
+ ], n.prototype, "disabled", 2);
419
+ a([
420
+ m({ type: String, reflect: !0 })
421
+ ], n.prototype, "menu", 2);
422
+ a([
423
+ m({ type: Boolean, attribute: "has-label", reflect: !0 })
424
+ ], n.prototype, "hasLabel", 2);
425
+ a([
426
+ m({ type: String, reflect: !0 })
427
+ ], n.prototype, "label", 2);
428
+ a([
429
+ m({ type: String, reflect: !0 })
430
+ ], n.prototype, "selects", 2);
431
+ a([
432
+ m({ type: String, reflect: !0 })
433
+ ], n.prototype, "icons", 2);
434
+ a([
435
+ m({ type: String, attribute: "placeholder", reflect: !0 })
436
+ ], n.prototype, "placeholder", 2);
437
+ a([
438
+ m({ type: Array, reflect: !1 })
439
+ ], n.prototype, "datasetsDataItems", 2);
440
+ a([
441
+ m({ type: String, reflect: !0 })
442
+ ], n.prototype, "placement", 2);
443
+ a([
444
+ m({ type: Boolean, reflect: !0, attribute: "hide-delete" })
445
+ ], n.prototype, "hideDelete", 2);
446
+ a([
447
+ m({ type: Boolean, reflect: !0, attribute: "hide-configuration" })
448
+ ], n.prototype, "hideConfiguration", 2);
449
+ a([
450
+ D()
451
+ ], n.prototype, "_hasExtraEmptySelects", 2);
452
+ a([
453
+ m({ type: Boolean, reflect: !0 })
454
+ ], n.prototype, "stretch", 2);
455
+ n = a([
456
+ x()
457
+ ], n);
458
+ customElements.get("luzmo-slot-contents-picker") || customElements.define("luzmo-slot-contents-picker", n);
459
+ export {
460
+ n as LuzmoSlotContentsPicker
461
+ };
@@ -0,0 +1,112 @@
1
+ import { Placement } from '@floating-ui/dom';
2
+ import '@luzmo/lucero/action-button';
3
+ import '@luzmo/lucero/field-label';
4
+ import '@luzmo/lucero/overlay';
5
+ import '@luzmo/lucero/select';
6
+ import '@luzmo/lucero/tooltip';
7
+ import { PropertyValues } from 'lit';
8
+ import { LuzmoElement } from '../../utils/base';
9
+ import './../display-settings';
10
+ import './../slot-menu';
11
+ declare const LuzmoSlotContentsPicker_base: typeof LuzmoElement & {
12
+ new (...args: any[]): import("../../utils/base/sized-mixin").SizedElementInterface;
13
+ prototype: import("../../utils/base/sized-mixin").SizedElementInterface;
14
+ };
15
+ /**
16
+ * @element luzmo-slot-contents-picker
17
+ * @fires slot-contents-changed - Announces that the slot contents has changed
18
+ */
19
+ export declare class LuzmoSlotContentsPicker extends LuzmoSlotContentsPicker_base {
20
+ static styles: import("lit").CSSResult;
21
+ private _loadSlotsConfig;
22
+ private _itemTypeLoaded?;
23
+ private _slotsConfig?;
24
+ /**
25
+ * The type of the item
26
+ */
27
+ itemType?: string;
28
+ /**
29
+ * The name of the slot
30
+ */
31
+ slotName?: string;
32
+ /**
33
+ * (Optional) The configuration of the slot, overrides the slot configuration loaded from the item type & slot name.
34
+ */
35
+ slotConfiguration: any;
36
+ /**
37
+ * The contents of the slot
38
+ */
39
+ slotContents: any;
40
+ /**
41
+ * The language of the slot-menu
42
+ */
43
+ language: string;
44
+ /**
45
+ * Whether the picker is disabled
46
+ */
47
+ disabled: boolean;
48
+ /**
49
+ * The type of config interaction
50
+ */
51
+ menu: 'default' | 'draggable' | 'event-only';
52
+ /**
53
+ * Whether the picker has a label
54
+ */
55
+ hasLabel: boolean;
56
+ /**
57
+ * The label for the picker, if hasLabel is true
58
+ */
59
+ label?: string;
60
+ /**
61
+ * Whether the picker allows multiple selections. Only relevant if the slot configuration allows multiple data items.
62
+ */
63
+ selects: 'single' | 'multiple';
64
+ /**
65
+ * Where to show icons
66
+ */
67
+ icons?: 'none' | 'only-menu' | 'all';
68
+ /**
69
+ * The placeholder text for the picker is no value selected.
70
+ */
71
+ placeholder?: string;
72
+ /**
73
+ * The datasets and their dataItems to display
74
+ */
75
+ datasetsDataItems: {
76
+ id: string;
77
+ name: {
78
+ [key: string]: string;
79
+ };
80
+ columns: any[];
81
+ formulas: any[];
82
+ }[];
83
+ /**
84
+ * Placement of the slot menu. Only relevant for 'popup' and 'draggable' menu type
85
+ */
86
+ placement: Placement;
87
+ hideDelete: boolean;
88
+ hideConfiguration?: boolean;
89
+ private _hasExtraEmptySelects;
90
+ private _currentSlotContents;
91
+ private _selectOptions;
92
+ private _slotContentOptions;
93
+ stretch: boolean;
94
+ private _changedSlotContents;
95
+ private _emptySlotContents;
96
+ protected willUpdate(changedProperties: PropertyValues): void;
97
+ private _onSlotMenuChanges;
98
+ private _setSlotContentAtIndex;
99
+ private _setSlotContents;
100
+ private _createSlotContentOptions;
101
+ private _createSelectOptions;
102
+ private _renderFieldLabel;
103
+ private _removeEmptySelect;
104
+ private _addDataItem;
105
+ private _renderExtraDataItemButton;
106
+ private _renderSingleSelect;
107
+ private _renderMultipleSelect;
108
+ private _renderSelectMenu;
109
+ private _slotContentsPickerMarkup;
110
+ render(): import("lit-html").TemplateResult<1> | undefined;
111
+ }
112
+ export {};