@luzmo/analytics-components-kit 1.0.3 → 1.0.4-beta.1

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 (678) hide show
  1. package/components/ai-chat/ai-chat-events.d.ts +123 -0
  2. package/components/ai-chat/ai-chat-request.d.ts +11 -0
  3. package/components/ai-chat/ai-chat.d.ts +279 -0
  4. package/components/ai-chat/ai-prompt-types.d.ts +94 -0
  5. package/components/ai-chat/empty-state/ai-chat-empty-state.d.ts +46 -0
  6. package/components/ai-chat/empty-state/index.d.ts +8 -0
  7. package/components/ai-chat/empty-state/types.d.ts +14 -0
  8. package/components/ai-chat/index.cjs +20 -0
  9. package/components/ai-chat/index.d.ts +20 -0
  10. package/components/ai-chat/index.js +28 -0
  11. package/components/ai-chat/session/ai-chat-session-controller.d.ts +51 -0
  12. package/components/ai-chat/session/ai-chat-session-types.d.ts +88 -0
  13. package/components/ai-chat/session/ai-chat-session.d.ts +91 -0
  14. package/components/ai-chat/session/index.d.ts +2 -0
  15. package/components/ai-chat/stream/chunk-extractors.d.ts +27 -0
  16. package/components/ai-chat/stream/index.d.ts +52 -0
  17. package/components/ai-chat/stream/progress.d.ts +3 -0
  18. package/components/ai-chat/stream/registry.d.ts +6 -0
  19. package/components/ai-chat/stream/stream-processor.d.ts +2 -0
  20. package/components/ai-chat/stream/transport.d.ts +26 -0
  21. package/components/ai-chat/stream/types.d.ts +55 -0
  22. package/components/ai-chat-BMDfKnEj.cjs +258 -0
  23. package/components/ai-chat-Cd26aDpX.js +3718 -0
  24. package/components/ai-interaction-textarea/ai-interaction-textarea.d.ts +135 -0
  25. package/components/ai-interaction-textarea/index.cjs +20 -0
  26. package/components/ai-interaction-textarea/index.d.ts +8 -0
  27. package/components/ai-interaction-textarea/index.js +28 -0
  28. package/components/ai-interaction-textarea/types.d.ts +5 -0
  29. package/components/ai-interaction-textarea-CPfJqTB0.cjs +68 -0
  30. package/components/ai-interaction-textarea-DkBglh6Q.js +299 -0
  31. package/components/{area-chart-options.config-CU6FV2Zl.js → area-chart-options.config-4OY_kXkB.js} +1 -1
  32. package/components/{area-chart-positioning.config-DRyIQjFn.js → area-chart-positioning.config-CAPrtEZW.js} +1 -1
  33. package/components/{area-chart-positioning.config-Y_6E7SvI.cjs → area-chart-positioning.config-CfC43YUW.cjs} +1 -1
  34. package/components/{area-chart-slots.config-DPuSQAQa.js → area-chart-slots.config--pd_dBTn.js} +1 -1
  35. package/components/{bar-chart-options.config-NGKHlChC.js → bar-chart-options.config-C3puwFpi.js} +1 -1
  36. package/components/{bar-chart-positioning.config-qTk0gXbd.js → bar-chart-positioning.config-C1MLYyl9.js} +1 -1
  37. package/components/{bar-chart-positioning.config-DXS8KSTz.cjs → bar-chart-positioning.config-vJOALpQP.cjs} +1 -1
  38. package/components/{bar-chart-slots.config-C6CGWcGz.js → bar-chart-slots.config-Dr7v4xxd.js} +1 -1
  39. package/components/{base-DoCXVulO.js → base-B_wdCOxV.js} +3 -2
  40. package/components/base-kQ6cjcIZ.cjs +20 -0
  41. package/components/{box-plot-options.config-Bh9txvcB.js → box-plot-options.config-B486nCds.js} +1 -1
  42. package/components/{box-plot-positioning.config-yAg3VqZJ.js → box-plot-positioning.config-CA27sCpO.js} +1 -1
  43. package/components/{box-plot-positioning.config-NwxT5LtO.cjs → box-plot-positioning.config-DVNeh9kg.cjs} +1 -1
  44. package/components/{box-plot-slots.config-Bk8naosI.js → box-plot-slots.config-Bdb7pkky.js} +1 -1
  45. package/components/{bubble-chart-options.config-Djw_bUxZ.js → bubble-chart-options.config-BymUqNR5.js} +1 -1
  46. package/components/{bubble-chart-positioning.config-C_tWwbjm.cjs → bubble-chart-positioning.config-Dg92VJnB.cjs} +1 -1
  47. package/components/{bubble-chart-positioning.config-B2fMLimr.js → bubble-chart-positioning.config-OlbBZU4m.js} +1 -1
  48. package/components/{bubble-chart-slots.config-DR7Uz54G.js → bubble-chart-slots.config-B4tsJDuz.js} +1 -1
  49. package/components/{bullet-chart-options.config-DGmdW4q4.js → bullet-chart-options.config-BtyRdRk2.js} +1 -1
  50. package/components/{bullet-chart-positioning.config-B94J7_4d.cjs → bullet-chart-positioning.config-BwqxpSSL.cjs} +1 -1
  51. package/components/{bullet-chart-positioning.config-DmP7TvxA.js → bullet-chart-positioning.config-Y18yvzoc.js} +1 -1
  52. package/components/{bullet-chart-slots.config-DbzsDrUl.js → bullet-chart-slots.config-ccCSNJ5q.js} +1 -1
  53. package/components/{choropleth-map-options.config-zZOpXVaM.js → choropleth-map-options.config-CqCciAvW.js} +1 -1
  54. package/components/{choropleth-map-positioning.config-9MmmbjBg.js → choropleth-map-positioning.config-Dmzy3fMc.js} +1 -1
  55. package/components/{choropleth-map-positioning.config-BzsmeLhM.cjs → choropleth-map-positioning.config-y-bYMoxr.cjs} +1 -1
  56. package/components/{choropleth-map-slots.config-CRdWjaCE.js → choropleth-map-slots.config-X2YYrSXc.js} +1 -1
  57. package/components/{circle-pack-chart-options.config-CopW_8_S.js → circle-pack-chart-options.config-D9C-ltHA.js} +1 -1
  58. package/components/{circle-pack-chart-positioning.config-B_UwdpKt.js → circle-pack-chart-positioning.config-YDdY2cc2.js} +1 -1
  59. package/components/{circle-pack-chart-positioning.config-DiNINE6m.cjs → circle-pack-chart-positioning.config-wKIQDFe8.cjs} +1 -1
  60. package/components/{circle-pack-chart-slots.config-BBCVJM7e.js → circle-pack-chart-slots.config-BIO1dZsK.js} +1 -1
  61. package/components/{circular-gauge-options.config-gtbMbogY.js → circular-gauge-options.config-De6SlTLT.js} +1 -1
  62. package/components/{circular-gauge-positioning.config-DVrt25rr.js → circular-gauge-positioning.config-C41euPS9.js} +1 -1
  63. package/components/{circular-gauge-positioning.config-CIsU-S4V.cjs → circular-gauge-positioning.config-CKNanoFX.cjs} +1 -1
  64. package/components/{circular-gauge-slots.config-DNnzoRev.js → circular-gauge-slots.config-Dv_7fAD_.js} +1 -1
  65. package/components/{column-chart-options.config-BKtKoP3J.js → column-chart-options.config-5Dbg3FmH.js} +1 -1
  66. package/components/{column-chart-positioning.config-COxTPiE_.js → column-chart-positioning.config-BdyuErF8.js} +1 -1
  67. package/components/{column-chart-positioning.config-C7uLfFA-.cjs → column-chart-positioning.config-Enx15Dqh.cjs} +1 -1
  68. package/components/{column-chart-slots.config-C6c-fKz2.js → column-chart-slots.config-eHvTwZLX.js} +1 -1
  69. package/components/{combination-chart-options.config-B1GjRnKL.js → combination-chart-options.config-BzmLGCal.js} +1 -1
  70. package/components/{combination-chart-positioning.config-DdWD2qhF.js → combination-chart-positioning.config-BQRn0EfF.js} +1 -1
  71. package/components/{combination-chart-positioning.config-B6W7EIix.cjs → combination-chart-positioning.config-CqlKA__j.cjs} +1 -1
  72. package/components/{combination-chart-slots.config-DNXQAw4U.js → combination-chart-slots.config-CG40JjE3.js} +1 -1
  73. package/components/{conditional-number-options.config-C3dodtlk.js → conditional-number-options.config-CVgV7s7f.js} +1 -1
  74. package/components/{conditional-number-positioning.config-7RAsw-TT.js → conditional-number-positioning.config-BBivi4ps.js} +1 -1
  75. package/components/{conditional-number-positioning.config-D5mpM8sp.cjs → conditional-number-positioning.config-CR45rPru.cjs} +1 -1
  76. package/components/{conditional-number-slots.config-BTpG1Uv3.js → conditional-number-slots.config-o22l-qLv.js} +1 -1
  77. package/components/data-field/index.cjs +1 -1
  78. package/components/data-field/index.js +1 -1
  79. package/components/data-field-CAGprHjS.cjs +54 -0
  80. package/components/data-field-CLfUWgK9.js +121 -0
  81. package/components/data-field-level/data-field-level.d.ts +40 -0
  82. package/components/data-field-level/helpers/generate-preview.d.ts +9 -0
  83. package/components/data-field-level/index.cjs +20 -0
  84. package/components/data-field-level/index.d.ts +8 -0
  85. package/components/data-field-level/index.js +28 -0
  86. package/components/data-field-level-7qi9K__S.cjs +55 -0
  87. package/components/{data-field-zG8ljDJR.js → data-field-level-CfJ0dmxo.js} +48 -141
  88. package/components/data-field-panel/index.cjs +1 -1
  89. package/components/data-field-panel/index.js +1 -1
  90. package/components/data-field-panel-DUc8y4WA.cjs +87 -0
  91. package/components/{data-field-panel-DAkWBcEK.js → data-field-panel-N7mukLj6.js} +4 -3
  92. package/components/data-fields-select/data-fields-select.d.ts +127 -0
  93. package/components/data-fields-select/index.cjs +20 -0
  94. package/components/data-fields-select/index.d.ts +9 -0
  95. package/components/data-fields-select/index.js +28 -0
  96. package/components/data-fields-select/types.d.ts +4 -0
  97. package/components/{data-fields-select-DF6uZ8No.js → data-fields-select-B1pwPYt6.js} +2 -1
  98. package/components/data-fields-select-qCWuzckJ.cjs +41 -0
  99. package/components/dataset-icon/dataset-icon.d.ts +45 -0
  100. package/components/dataset-icon/index.cjs +20 -0
  101. package/components/dataset-icon/index.d.ts +8 -0
  102. package/components/dataset-icon/index.js +28 -0
  103. package/components/dataset-icon/types.d.ts +11 -0
  104. package/components/dataset-icon-BAV0S4sZ.cjs +64 -0
  105. package/components/dataset-icon-CWT5Ju8w.js +125 -0
  106. package/components/dataset-selector-list/dataset-selector-list.d.ts +102 -0
  107. package/components/dataset-selector-list/index.cjs +20 -0
  108. package/components/dataset-selector-list/index.d.ts +8 -0
  109. package/components/dataset-selector-list/index.js +28 -0
  110. package/components/dataset-selector-list-BPBZ04Lf.cjs +75 -0
  111. package/components/dataset-selector-list-DmajZuNC.js +313 -0
  112. package/components/dataset-selector-row/dataset-selector-row.d.ts +89 -0
  113. package/components/dataset-selector-row/index.cjs +20 -0
  114. package/components/dataset-selector-row/index.d.ts +8 -0
  115. package/components/dataset-selector-row/index.js +28 -0
  116. package/components/dataset-selector-row-SJzYIpO6.js +273 -0
  117. package/components/dataset-selector-row-qxfmcxpm.cjs +79 -0
  118. package/components/{date-comparison-filter-options.config-DANevgy_.js → date-comparison-filter-options.config-BJg_WqL4.js} +1 -1
  119. package/components/{date-comparison-filter-slots.config-WBp-r2dH.js → date-comparison-filter-slots.config-BIK5aZ6P.js} +1 -1
  120. package/components/{date-filter-options.config-BRI2SLGy.js → date-filter-options.config-N6eGgPGL.js} +1 -1
  121. package/components/{date-filter-slots.config-CWkGrxOt.js → date-filter-slots.config-CJJ4P0v6.js} +1 -1
  122. package/components/decompose-numeric-format-DGJua3rU.cjs +20 -0
  123. package/components/decompose-numeric-format-DS0j2wa1.js +36 -0
  124. package/components/decorate-DCJt-2rt.cjs +20 -0
  125. package/components/{localized-mixin-DoA4mVsP.js → decorate-DyMgX_Uh.js} +2 -26
  126. package/components/default-acceptable-data-field-types-DFOFWWnT.js +53 -0
  127. package/components/default-acceptable-data-field-types-fPsz64ka.cjs +20 -0
  128. package/components/display-settings/display-settings.d.ts +98 -0
  129. package/components/display-settings/index.cjs +20 -0
  130. package/components/display-settings/index.d.ts +8 -0
  131. package/components/display-settings/index.js +28 -0
  132. package/components/display-settings/types.d.ts +9 -0
  133. package/components/display-settings-CkkjJjem.js +272 -0
  134. package/components/display-settings-DnzOjr-1.cjs +120 -0
  135. package/components/display-settings-binning/display-settings-binning.d.ts +32 -0
  136. package/components/display-settings-binning/index.cjs +20 -0
  137. package/components/display-settings-binning/index.d.ts +8 -0
  138. package/components/display-settings-binning/index.js +28 -0
  139. package/components/{display-settings-binning-Cm1rU9_g.js → display-settings-binning-BohjN2qK.js} +17 -19
  140. package/components/{display-settings-binning-D-p-PsFV.cjs → display-settings-binning-C7-gByrp.cjs} +2 -2
  141. package/components/display-settings-datetime/display-settings-datetime.d.ts +86 -0
  142. package/components/display-settings-datetime/index.cjs +20 -0
  143. package/components/display-settings-datetime/index.d.ts +8 -0
  144. package/components/display-settings-datetime/index.js +28 -0
  145. package/components/{display-settings-datetime-BOdXtbJg.js → display-settings-datetime-7pUcku_h.js} +69 -71
  146. package/components/display-settings-datetime-DL0Qcz8Y.cjs +217 -0
  147. package/components/display-settings-grand-totals/display-settings-grand-totals.d.ts +29 -0
  148. package/components/display-settings-grand-totals/index.cjs +20 -0
  149. package/components/display-settings-grand-totals/index.d.ts +8 -0
  150. package/components/display-settings-grand-totals/index.js +28 -0
  151. package/components/{display-settings-grand-totals-C1VhigDX.js → display-settings-grand-totals-CV5guBhH.js} +17 -19
  152. package/components/display-settings-grand-totals-DHQSZqMI.cjs +44 -0
  153. package/components/display-settings-numeric/display-settings-numeric.d.ts +82 -0
  154. package/components/display-settings-numeric/helpers/constants.d.ts +19 -0
  155. package/components/display-settings-numeric/index.cjs +20 -0
  156. package/components/display-settings-numeric/index.d.ts +8 -0
  157. package/components/display-settings-numeric/index.js +28 -0
  158. package/components/display-settings-numeric--5zk8_7K.cjs +190 -0
  159. package/components/{display-settings-numeric-CppfYXI6.js → display-settings-numeric-D2LjMepO.js} +79 -81
  160. package/components/display-settings-period-over-period/display-settings-period-over-period.d.ts +68 -0
  161. package/components/display-settings-period-over-period/helpers/constants.d.ts +44 -0
  162. package/components/display-settings-period-over-period/index.cjs +20 -0
  163. package/components/display-settings-period-over-period/index.d.ts +8 -0
  164. package/components/display-settings-period-over-period/index.js +28 -0
  165. package/components/display-settings-period-over-period-BE22oHvV.cjs +229 -0
  166. package/components/{display-settings-period-over-period-D1IPvtak.js → display-settings-period-over-period-sqZU6Zj_.js} +83 -84
  167. package/components/{donut-chart-options.config-CvSa4vvo.js → donut-chart-options.config-C66yOoed.js} +1 -1
  168. package/components/{donut-chart-positioning.config-CA93p_1i.cjs → donut-chart-positioning.config-B9sm4yFV.cjs} +1 -1
  169. package/components/{donut-chart-positioning.config-6nbFr06e.js → donut-chart-positioning.config-DtaPAgXE.js} +1 -1
  170. package/components/{donut-chart-slots.config-Hzx_LiNh.js → donut-chart-slots.config-2XbT9Uu8.js} +1 -1
  171. package/components/{dropdown-filter-options.config-BBYNqiB8.js → dropdown-filter-options.config-Cm_wK0mn.js} +1 -1
  172. package/components/{dropdown-filter-slots.config-vJX4At6j.js → dropdown-filter-slots.config-CnESCGuw.js} +1 -1
  173. package/components/{en-US-PSeMMGzt.js → en-CcLhGxIh.js} +1 -1
  174. package/components/{en-GB-m6liqSlO.js → en-GB-DzkdeUQh.js} +1 -1
  175. package/components/en-GB-uxY5qmIM.cjs +20 -0
  176. package/components/{en-PSeMMGzt.js → en-US-CcLhGxIh.js} +1 -1
  177. package/components/{en-US-Cxu7QI9q.cjs → en-US-q_Ruzags.cjs} +1 -1
  178. package/components/{en-Cxu7QI9q.cjs → en-q_Ruzags.cjs} +1 -1
  179. package/components/{evolution-number-options.config-Cjj2PxvX.js → evolution-number-options.config-07Jd0oUL.js} +1 -1
  180. package/components/{evolution-number-positioning.config-B1YadWnr.cjs → evolution-number-positioning.config-DVXhBZYj.cjs} +1 -1
  181. package/components/{evolution-number-positioning.config-Ctl0F_-h.js → evolution-number-positioning.config-v8_6kB1H.js} +1 -1
  182. package/components/{evolution-number-slots.config-C820wN9Q.js → evolution-number-slots.config-BKdD3cKw.js} +1 -1
  183. package/components/filter-expression-picker/filter-expression-picker.d.ts +73 -0
  184. package/components/filter-expression-picker/index.cjs +20 -0
  185. package/components/filter-expression-picker/index.d.ts +7 -0
  186. package/components/filter-expression-picker/index.js +28 -0
  187. package/components/filter-expression-picker-CF4Otpll.cjs +38 -0
  188. package/components/filter-expression-picker-DCrCAIhg.js +425 -0
  189. package/components/filter-item/filter-item.d.ts +84 -0
  190. package/components/filter-item/index.cjs +20 -0
  191. package/components/filter-item/index.d.ts +7 -0
  192. package/components/filter-item/index.js +28 -0
  193. package/components/filter-item-CKg3oQlZ.cjs +58 -0
  194. package/components/filter-item-DtdK1jvx.js +242 -0
  195. package/components/filter-parameter-picker/filter-parameter-picker.d.ts +25 -0
  196. package/components/filter-parameter-picker/index.cjs +22 -0
  197. package/components/filter-parameter-picker/index.d.ts +7 -0
  198. package/components/filter-parameter-picker/index.js +58 -0
  199. package/components/filter-value-picker/filter-value-picker.d.ts +65 -0
  200. package/components/filter-value-picker/index.cjs +20 -0
  201. package/components/filter-value-picker/index.d.ts +7 -0
  202. package/components/filter-value-picker/index.js +28 -0
  203. package/components/filter-value-picker-B5fHoLAG.cjs +60 -0
  204. package/components/filter-value-picker-datetime/filter-value-picker-datetime.d.ts +42 -0
  205. package/components/filter-value-picker-datetime/index.cjs +20 -0
  206. package/components/filter-value-picker-datetime/index.d.ts +7 -0
  207. package/components/filter-value-picker-datetime/index.js +28 -0
  208. package/components/filter-value-picker-datetime-CFCV2jkK.js +139 -0
  209. package/components/filter-value-picker-datetime-D20WnWar.cjs +42 -0
  210. package/components/filter-value-picker-hierarchy/filter-value-picker-hierarchy.d.ts +81 -0
  211. package/components/filter-value-picker-hierarchy/index.cjs +20 -0
  212. package/components/filter-value-picker-hierarchy/index.d.ts +7 -0
  213. package/components/filter-value-picker-hierarchy/index.js +28 -0
  214. package/components/filter-value-picker-hierarchy-CSM0RPvX.cjs +47 -0
  215. package/components/filter-value-picker-hierarchy-DEbN7h5L.js +232 -0
  216. package/components/filter-value-picker-numeric/filter-value-picker-numeric.d.ts +82 -0
  217. package/components/filter-value-picker-numeric/index.cjs +20 -0
  218. package/components/filter-value-picker-numeric/index.d.ts +7 -0
  219. package/components/filter-value-picker-numeric/index.js +28 -0
  220. package/components/filter-value-picker-numeric-BYspQRSi.js +219 -0
  221. package/components/filter-value-picker-numeric-BtZaQvkr.cjs +48 -0
  222. package/components/filter-value-picker-tyoO5ISM.js +151 -0
  223. package/components/filters/index.cjs +1 -1
  224. package/components/filters/index.js +1 -1
  225. package/components/filters-C8fHs4_m.js +400 -0
  226. package/components/filters-sR8GxUGw.cjs +150 -0
  227. package/components/formatter-BeXmurVe.cjs +20 -0
  228. package/components/{slots-config-CA1x9W3U.js → formatter-Cq5dFCyU.js} +314 -392
  229. package/components/formula/formula.d.ts +66 -0
  230. package/components/formula/index.cjs +20 -0
  231. package/components/formula/index.d.ts +7 -0
  232. package/components/formula/index.js +28 -0
  233. package/components/formula-BPHH_GKB.cjs +45 -0
  234. package/components/formula-DYdcMG-v.js +138 -0
  235. package/components/formula-codemirror/formula-codemirror.d.ts +79 -0
  236. package/components/formula-codemirror/index.d.ts +7 -0
  237. package/components/formula-codemirror/pills/formula-aggregation/formula-aggregation.d.ts +125 -0
  238. package/components/formula-codemirror/pills/formula-aggregation/index.d.ts +7 -0
  239. package/components/formula-codemirror/pills/formula-empty-argument-pill/formula-empty-argument-pill.d.ts +28 -0
  240. package/components/formula-codemirror/pills/formula-empty-argument-pill/index.d.ts +7 -0
  241. package/components/formula-codemirror/pills/formula-include-exclude-panel.d.ts +38 -0
  242. package/components/formula-codemirror-CFgPlkN8.cjs +215 -0
  243. package/components/{formula-codemirror-CxRJdjY0.js → formula-codemirror-CQonNhmd.js} +38 -34
  244. package/components/formula-display-store-BGzj13Cs.js +1086 -0
  245. package/components/formula-display-store-DFAvw21p.cjs +20 -0
  246. package/components/formula-draggable-field/formula-draggable-field.d.ts +53 -0
  247. package/components/formula-draggable-field/index.d.ts +8 -0
  248. package/components/formula-draggable-field/types.d.ts +24 -0
  249. package/components/formula-editor/formula-aggregations-list.d.ts +21 -0
  250. package/components/formula-editor/formula-datasets-list.d.ts +37 -0
  251. package/components/formula-editor/formula-description.d.ts +17 -0
  252. package/components/formula-editor/formula-editor.d.ts +70 -0
  253. package/components/formula-editor/formula-functions-list.d.ts +28 -0
  254. package/components/formula-editor/index.cjs +20 -0
  255. package/components/formula-editor/index.d.ts +12 -0
  256. package/components/formula-editor/index.js +30 -0
  257. package/components/formula-editor-CtCvJkyS.cjs +218 -0
  258. package/components/formula-editor-KXxQlh2n.js +666 -0
  259. package/components/formula-field/formula-field.d.ts +20 -0
  260. package/components/formula-field/index.cjs +20 -0
  261. package/components/formula-field/index.d.ts +7 -0
  262. package/components/formula-field/index.js +28 -0
  263. package/components/formula-field-OcD4TWAn.js +40 -0
  264. package/components/formula-field-aiqX7nRp.cjs +20 -0
  265. package/components/formula-input-base-CGe2ABn6.cjs +49 -0
  266. package/components/formula-input-base-CQPGmISj.js +236 -0
  267. package/components/{funnel-chart-options.config-CkIVYUyD.js → funnel-chart-options.config-PV1Hlu91.js} +1 -1
  268. package/components/{funnel-chart-positioning.config-CWK690yC.js → funnel-chart-positioning.config-BT-YoTgv.js} +1 -1
  269. package/components/{funnel-chart-positioning.config-BIQQ-zpo.cjs → funnel-chart-positioning.config-C5Z3JkuS.cjs} +1 -1
  270. package/components/{funnel-chart-slots.config-Bbc6r1GZ.js → funnel-chart-slots.config-_9HUPvTb.js} +1 -1
  271. package/components/get-css-variable-CBXsAxR6.cjs +20 -0
  272. package/components/get-css-variable-DYnldi15.js +63 -0
  273. package/components/get-dataset-name-BGCvfcdY.js +27 -0
  274. package/components/get-dataset-name-EkeeFzI3.cjs +20 -0
  275. package/components/groupings-CrE-yp0S.js +52 -0
  276. package/components/groupings-dIFi0bJY.cjs +20 -0
  277. package/components/{heat-map-options.config-Bxj7M6kg.js → heat-map-options.config-CQY6t9AL.js} +1 -1
  278. package/components/{heat-map-positioning.config-BQpzkXu3.js → heat-map-positioning.config-BpFis567.js} +1 -1
  279. package/components/{heat-map-positioning.config-BDbBf5RD.cjs → heat-map-positioning.config-HPftgmdz.cjs} +1 -1
  280. package/components/{heat-map-slots.config-CIYZdLGb.js → heat-map-slots.config-B4AswVSo.js} +1 -1
  281. package/components/{heat-table-options.config-C_PDicoC.js → heat-table-options.config-IlVPk4Q4.js} +1 -1
  282. package/components/{heat-table-positioning.config-By__Tq90.js → heat-table-positioning.config-Canc3aEE.js} +1 -1
  283. package/components/{heat-table-positioning.config-DQKFXpJS.cjs → heat-table-positioning.config-wkrm8Fbk.cjs} +1 -1
  284. package/components/{heat-table-slots.config-fst7kAtH.js → heat-table-slots.config-CB509zU4.js} +1 -1
  285. package/components/{hexbin-map-options.config-DJZZZixE.js → hexbin-map-options.config-vzw6ovva.js} +1 -1
  286. package/components/{hexbin-map-positioning.config-X6OyNJIR.js → hexbin-map-positioning.config-CBv6Lij5.js} +1 -1
  287. package/components/{marker-map-positioning.config-I-HDmH_i.cjs → hexbin-map-positioning.config-D0hAchxV.cjs} +1 -1
  288. package/components/{hexbin-map-slots.config-3HLwV8OK.js → hexbin-map-slots.config-Dyse0pui.js} +1 -1
  289. package/components/icon-element-DpN-9yaN.cjs +20 -0
  290. package/components/icon-element-_jY440X2.js +85 -0
  291. package/components/{image-options.config-b1hHO_hu.js → image-options.config-Cmrsd8Yu.js} +1 -1
  292. package/components/{image-slots.config-C8cFYfbC.js → image-slots.config-CVj-DM07.js} +1 -1
  293. package/components/index.cjs +1 -719
  294. package/components/index.js +63 -6684
  295. package/components/item-grid/index.cjs +1 -1
  296. package/components/item-grid/index.js +1 -1
  297. package/components/{item-grid-BON-D2gT.cjs → item-grid-BXZXJV3g.cjs} +50 -50
  298. package/components/{item-grid-D0dZeOjJ.js → item-grid-uWM-Unjx.js} +2 -1
  299. package/components/item-menu/item-list/item-list.d.ts +37 -0
  300. package/components/item-option/index.cjs +1 -1
  301. package/components/item-option/index.js +1 -1
  302. package/components/item-option-CEwjJc1p.cjs +252 -0
  303. package/components/item-option-action-button-group/index.cjs +1 -1
  304. package/components/item-option-action-button-group/index.js +1 -1
  305. package/components/{item-option-action-button-group-S1d63U_p.js → item-option-action-button-group-BOxQFfBF.js} +2 -2
  306. package/components/item-option-action-button-group-DXCVJqpt.cjs +53 -0
  307. package/components/item-option-base/item-option-base.d.ts +23 -0
  308. package/components/item-option-base-DKieCS-Y.cjs +56 -0
  309. package/components/{item-option-base-xqDg3z0y.js → item-option-base-Dr5-WxZ9.js} +2 -2
  310. package/components/item-option-color-palette-picker/index.cjs +1 -1
  311. package/components/item-option-color-palette-picker/index.js +1 -1
  312. package/components/item-option-color-palette-picker-7vSSpj5o.cjs +40 -0
  313. package/components/{item-option-color-palette-picker-Jpzlm0hc.js → item-option-color-palette-picker-D_mABGWh.js} +2 -2
  314. package/components/item-option-color-picker/index.cjs +1 -1
  315. package/components/item-option-color-picker/index.js +1 -1
  316. package/components/{item-option-color-picker-CD6rbfp3.js → item-option-color-picker-COLBYeRy.js} +2 -2
  317. package/components/{item-option-color-picker-BxSV4n8r.cjs → item-option-color-picker-DMyNeD2e.cjs} +2 -2
  318. package/components/item-option-color-range/index.cjs +1 -1
  319. package/components/item-option-color-range/index.js +1 -1
  320. package/components/item-option-color-range-BFr0B6Vf.cjs +98 -0
  321. package/components/{item-option-color-range-Ds8fbTLQ.js → item-option-color-range-CueVlyT2.js} +2 -2
  322. package/components/item-option-multi-language-field/index.cjs +1 -1
  323. package/components/item-option-multi-language-field/index.js +1 -1
  324. package/components/{item-option-multi-language-field-CzKPujJ2.js → item-option-multi-language-field-CMuQwrwQ.js} +2 -2
  325. package/components/{item-option-multi-language-field-CwVNF00e.cjs → item-option-multi-language-field-q7txF5xA.cjs} +2 -2
  326. package/components/item-option-number-field/index.cjs +1 -1
  327. package/components/item-option-number-field/index.js +1 -1
  328. package/components/{item-option-number-field-CMEF1_zC.js → item-option-number-field-BODNSx66.js} +2 -2
  329. package/components/{item-option-number-field-D9SNipL9.cjs → item-option-number-field-DWeJWUxY.cjs} +2 -2
  330. package/components/item-option-panel/index.cjs +1 -1
  331. package/components/item-option-panel/index.js +1 -1
  332. package/components/{item-option-panel-CFVzIar9.js → item-option-panel-CxOfVI0z.js} +3 -3
  333. package/components/{item-option-panel-rBiAYA96.cjs → item-option-panel-D0dxyUfE.cjs} +2 -2
  334. package/components/item-option-picker/index.cjs +1 -1
  335. package/components/item-option-picker/index.js +1 -1
  336. package/components/{item-option-picker-CoC6THh3.cjs → item-option-picker-BsP_0XyD.cjs} +2 -2
  337. package/components/{item-option-picker-kSepbJdX.js → item-option-picker-CyX7qqrb.js} +2 -2
  338. package/components/item-option-position-picker/index.cjs +1 -1
  339. package/components/item-option-position-picker/index.js +1 -1
  340. package/components/item-option-position-picker-CcmBYyqF.cjs +32 -0
  341. package/components/{item-option-position-picker-C4bdExi6.js → item-option-position-picker-LOg6P4Gl.js} +2 -2
  342. package/components/item-option-positions-number-field/index.cjs +1 -1
  343. package/components/item-option-positions-number-field/index.js +1 -1
  344. package/components/{item-option-positions-number-field-Cv1tA_Pe.js → item-option-positions-number-field-BCbWb1R6.js} +2 -2
  345. package/components/item-option-positions-number-field-o3Qckgwd.cjs +49 -0
  346. package/components/item-option-radio-button-group/index.cjs +1 -1
  347. package/components/item-option-radio-button-group/index.js +1 -1
  348. package/components/{item-option-radio-button-group-BRps0pHb.js → item-option-radio-button-group-CDebmEn3.js} +2 -2
  349. package/components/{item-option-radio-button-group-DK2WnKhT.cjs → item-option-radio-button-group-CjLhWTEJ.cjs} +2 -2
  350. package/components/item-option-slider/index.cjs +1 -1
  351. package/components/item-option-slider/index.js +1 -1
  352. package/components/{item-option-slider-cD6cc904.js → item-option-slider-C9ZJZcdg.js} +2 -2
  353. package/components/{item-option-slider-14YSeg1F.cjs → item-option-slider-CHbkJHLK.cjs} +2 -2
  354. package/components/item-option-switch/index.cjs +1 -1
  355. package/components/item-option-switch/index.js +1 -1
  356. package/components/{item-option-switch-uEeTC7ey.js → item-option-switch-BVMOOWya.js} +2 -2
  357. package/components/{item-option-switch-BvpDNO8q.cjs → item-option-switch-FRAZWozp.cjs} +2 -2
  358. package/components/item-option-text-field/index.cjs +1 -1
  359. package/components/item-option-text-field/index.js +1 -1
  360. package/components/{item-option-text-field-CUF0Gznj.cjs → item-option-text-field-DkYqHfdJ.cjs} +2 -2
  361. package/components/{item-option-text-field-Cveke3fQ.js → item-option-text-field-e6NLDlSq.js} +2 -2
  362. package/components/{item-option-Bpv16SRY.js → item-option-uyAsPcfE.js} +47 -47
  363. package/components/item-options-configs.js +45 -45
  364. package/components/item-slot-drop/index.cjs +1 -1
  365. package/components/item-slot-drop/index.js +1 -1
  366. package/components/item-slot-drop-BUCjEfJf.cjs +91 -0
  367. package/components/{item-slot-drop--ZwfRc3_.js → item-slot-drop-CoReI68M.js} +13 -10
  368. package/components/item-slot-drop-panel/index.cjs +1 -1
  369. package/components/item-slot-drop-panel/index.js +1 -1
  370. package/components/{item-slot-drop-panel-D_AGJhSF.js → item-slot-drop-panel-CEI1q060.js} +41 -40
  371. package/components/item-slot-drop-panel-DqekQtOr.cjs +57 -0
  372. package/components/item-slot-picker/index.cjs +1 -1
  373. package/components/item-slot-picker/index.js +1 -1
  374. package/components/item-slot-picker-CvbXFh6Z.cjs +158 -0
  375. package/components/{item-slot-picker-Dd35AuI2.js → item-slot-picker-dy5hVID5.js} +18 -15
  376. package/components/item-slot-picker-panel/index.cjs +1 -1
  377. package/components/item-slot-picker-panel/index.js +1 -1
  378. package/components/item-slot-picker-panel-BUyp6Hbg.cjs +81 -0
  379. package/components/{item-slot-picker-panel-pGVeLd1V.js → item-slot-picker-panel-CG0NyMDX.js} +5 -4
  380. package/components/item-slots-configs.js +45 -45
  381. package/components/{line-chart-options.config-DSLb95qK.js → line-chart-options.config-1TpSJqeb.js} +1 -1
  382. package/components/{line-chart-positioning.config-CWGSlsV0.js → line-chart-positioning.config-61uNfPZs.js} +1 -1
  383. package/components/{line-chart-positioning.config-BH8RppgE.cjs → line-chart-positioning.config-BNtGFWUK.cjs} +1 -1
  384. package/components/{line-chart-slots.config-CdD8CtUI.js → line-chart-slots.config-CcCpwWzZ.js} +1 -1
  385. package/components/localized-mixin-CiBWThrZ.cjs +20 -0
  386. package/components/localized-mixin-EpweDrTk.js +45 -0
  387. package/components/{marker-map-options.config-D6X6sdKs.js → marker-map-options.config-DTaax79J.js} +1 -1
  388. package/components/{marker-map-positioning.config-DGi1AjpD.js → marker-map-positioning.config-Bi5WCVgJ.js} +1 -1
  389. package/components/{hexbin-map-positioning.config-DHPOyzsM.cjs → marker-map-positioning.config-C2cL7uZJ.cjs} +1 -1
  390. package/components/{marker-map-slots.config-BtyuwUXE.js → marker-map-slots.config-BOWmS_IZ.js} +1 -1
  391. package/components/{ohlc-chart-options.config-B02_nViT.js → ohlc-chart-options.config-Dfes8ROC.js} +1 -1
  392. package/components/{ohlc-chart-positioning.config-CLCmzNVQ.js → ohlc-chart-positioning.config-DFx99k9A.js} +1 -1
  393. package/components/{ohlc-chart-positioning.config-5iMpDBaN.cjs → ohlc-chart-positioning.config-IAOfu4ue.cjs} +1 -1
  394. package/components/{ohlc-chart-slots.config-C6aMcUyV.js → ohlc-chart-slots.config-JRztPEXL.js} +1 -1
  395. package/components/{parallel-coordinates-plot-options.config-B_lWq8Oc.js → parallel-coordinates-plot-options.config-NSk_HC0H.js} +1 -1
  396. package/components/{parallel-coordinates-plot-positioning.config-A5eBN75L.cjs → parallel-coordinates-plot-positioning.config-Bf0Leksw.cjs} +1 -1
  397. package/components/{parallel-coordinates-plot-positioning.config-4zWsg4Nw.js → parallel-coordinates-plot-positioning.config-C9TqUuGC.js} +1 -1
  398. package/components/{parallel-coordinates-plot-slots.config-CChPbNkv.js → parallel-coordinates-plot-slots.config-pmbO5DnL.js} +1 -1
  399. package/components/period-over-period-condition.const-BZ7j5Z5t.js +29 -0
  400. package/components/period-over-period-condition.const-C1NZ9Bkp.cjs +20 -0
  401. package/components/{pivot-table-options.config-smIfG1vv.js → pivot-table-options.config-B3wYlzEq.js} +1 -1
  402. package/components/{pivot-table-positioning.config-Dzb1GNTm.js → pivot-table-positioning.config-CPXqqtcR.js} +1 -1
  403. package/components/{pivot-table-positioning.config-x9el6e15.cjs → pivot-table-positioning.config-D1R3VO88.cjs} +1 -1
  404. package/components/{pivot-table-slots.config-BDDVAkYz.js → pivot-table-slots.config-DaLfGOP9.js} +1 -1
  405. package/components/{get-css-variable-DV0s58yn.js → pragmatic-element-adapter-D0LRKx5U.js} +1 -43
  406. package/components/{get-css-variable-EMi5nnn2.cjs → pragmatic-element-adapter-DdyH32ix.cjs} +1 -1
  407. package/components/{pyramid-chart-options.config-CAtBdIzA.js → pyramid-chart-options.config-DIyiyqGM.js} +1 -1
  408. package/components/{pyramid-chart-positioning.config-HDPD6TX8.cjs → pyramid-chart-positioning.config-BfXdJS8g.cjs} +1 -1
  409. package/components/{pyramid-chart-positioning.config-wbhfjqP_.js → pyramid-chart-positioning.config-JAUQpA0B.js} +1 -1
  410. package/components/{pyramid-chart-slots.config-aUwwVnl9.js → pyramid-chart-slots.config-DtnUlw5y.js} +1 -1
  411. package/components/{radar-chart-options.config-qlcD8CGC.js → radar-chart-options.config-UVOzUnVT.js} +1 -1
  412. package/components/{radar-chart-positioning.config-CXonxhGG.cjs → radar-chart-positioning.config-Bixdrod2.cjs} +1 -1
  413. package/components/{radar-chart-positioning.config-nWkEtlva.js → radar-chart-positioning.config-CdJSazt4.js} +1 -1
  414. package/components/{radar-chart-slots.config-XtL8uHg5.js → radar-chart-slots.config-CkLoeAV7.js} +1 -1
  415. package/components/{regular-table-options.config-Db12iH2p.js → regular-table-options.config-CBvnxTdd.js} +1 -1
  416. package/components/{regular-table-slots.config-Dx3-s6lB.js → regular-table-slots.config-Cc6hL7iu.js} +1 -1
  417. package/components/resolve-column-presentation-BaEP1mvs.js +34 -0
  418. package/components/resolve-column-presentation-DUETRVCH.cjs +20 -0
  419. package/components/{route-map-options.config-Dd3ZCqZP.js → route-map-options.config-DZrlGa5o.js} +1 -1
  420. package/components/{route-map-positioning.config-B9c2U0zN.cjs → route-map-positioning.config-7aca5Iex.cjs} +1 -1
  421. package/components/{route-map-positioning.config-CrDkKZOV.js → route-map-positioning.config-Bk_BndTS.js} +1 -1
  422. package/components/{route-map-slots.config-D22mi7Rb.js → route-map-slots.config-CQxB8gKC.js} +1 -1
  423. package/components/{sankey-diagram-options.config-Bn1ARzxI.js → sankey-diagram-options.config-s_QRVr1r.js} +1 -1
  424. package/components/{sankey-diagram-positioning.config-Dki0WC81.cjs → sankey-diagram-positioning.config-Bvus3RDi.cjs} +1 -1
  425. package/components/{sankey-diagram-positioning.config-DHu11GbV.js → sankey-diagram-positioning.config-DPgQELIu.js} +1 -1
  426. package/components/{sankey-diagram-slots.config-CGCeuScH.js → sankey-diagram-slots.config-C9tIfWHU.js} +1 -1
  427. package/components/{scatter-plot-options.config-DTz98owa.js → scatter-plot-options.config-DI4hlqi5.js} +1 -1
  428. package/components/{scatter-plot-positioning.config-NJLf-yu-.js → scatter-plot-positioning.config-D-ifHW9P.js} +1 -1
  429. package/components/{scatter-plot-positioning.config-CyUEHLu_.cjs → scatter-plot-positioning.config-DBDCDDad.cjs} +1 -1
  430. package/components/{scatter-plot-slots.config-Cx_QRgUG.js → scatter-plot-slots.config-CUURijrN.js} +1 -1
  431. package/components/{search-filter-options.config-DGLdzM_P.js → search-filter-options.config-CPzfgUWV.js} +1 -1
  432. package/components/{search-filter-slots.config-CDthI9k-.js → search-filter-slots.config-DD119qkk.js} +1 -1
  433. package/components/{slicer-filter-options.config-QCSqtuyO.js → slicer-filter-options.config-F2CZ8ckV.js} +1 -1
  434. package/components/{slicer-filter-positioning.config-BoyhFCY3.js → slicer-filter-positioning.config-0uGZ8EgN.js} +1 -1
  435. package/components/{slicer-filter-positioning.config-CYmIirxA.cjs → slicer-filter-positioning.config-Bx2_7jxp.cjs} +1 -1
  436. package/components/{slicer-filter-slots.config-D_SBoI4C.js → slicer-filter-slots.config-D-BhCuA9.js} +1 -1
  437. package/components/{slider-filter-options.config-CS2ItH5t.js → slider-filter-options.config-DO0HHK2l.js} +1 -1
  438. package/components/{slider-filter-slots.config-CG88ssfQ.js → slider-filter-slots.config-CGQG6JqK.js} +1 -1
  439. package/components/{en-GB-DAF4eew-.cjs → slot-menu/index.cjs} +1 -1
  440. package/components/slot-menu/index.d.ts +10 -0
  441. package/components/slot-menu/index.js +28 -0
  442. package/components/slot-menu/slot-menu.d.ts +143 -0
  443. package/components/slot-menu/types.d.ts +24 -0
  444. package/components/slot-menu-Cw5HJ_bk.js +404 -0
  445. package/components/slot-menu-DkyDLDSd.cjs +64 -0
  446. package/components/slot-menu-list/index.cjs +20 -0
  447. package/components/slot-menu-list/index.d.ts +8 -0
  448. package/components/slot-menu-list/index.js +28 -0
  449. package/components/slot-menu-list/slot-menu-list.d.ts +42 -0
  450. package/components/slot-menu-list-BZllvntQ.cjs +38 -0
  451. package/components/slot-menu-list-CTJ-owp1.js +326 -0
  452. package/components/slots-config-BuHluMEl.js +77 -0
  453. package/components/slots-config-DVH0lz6t.cjs +20 -0
  454. package/components/{speedometer-chart-options.config-C-BoHPnb.js → speedometer-chart-options.config-jK_yQjy2.js} +1 -1
  455. package/components/{speedometer-chart-positioning.config-B_GOu6LC.cjs → speedometer-chart-positioning.config-CNOKIw7e.cjs} +1 -1
  456. package/components/{speedometer-chart-positioning.config-BhPvu0D-.js → speedometer-chart-positioning.config-FzFxMi0X.js} +1 -1
  457. package/components/{speedometer-chart-slots.config-CqejfEfV.js → speedometer-chart-slots.config-CjkHAHNX.js} +1 -1
  458. package/components/{spike-map-options.config-DDHR8R04.js → spike-map-options.config-cj07bETE.js} +1 -1
  459. package/components/{spike-map-positioning.config-C8Sq420l.js → spike-map-positioning.config-B4NYfmEw.js} +1 -1
  460. package/components/{spike-map-positioning.config-uqHrpfnq.cjs → spike-map-positioning.config-Bcdt8670.cjs} +1 -1
  461. package/components/{spike-map-slots.config-DfvNwovo.js → spike-map-slots.config-yMkdy-0w.js} +1 -1
  462. package/components/{strip-plot-options.config-DwZ_uMmE.js → strip-plot-options.config-DmAxeY2S.js} +1 -1
  463. package/components/{strip-plot-positioning.config-BUe2VQLN.cjs → strip-plot-positioning.config-BjcqWJoD.cjs} +1 -1
  464. package/components/{strip-plot-positioning.config-CHAOLSTR.js → strip-plot-positioning.config-n9OIxpa_.js} +1 -1
  465. package/components/{strip-plot-slots.config-Bq5Qkdpi.js → strip-plot-slots.config-C07nIM5s.js} +1 -1
  466. package/components/{sunburst-chart-options.config-CmfOjhz4.js → sunburst-chart-options.config-CLyQG-8x.js} +1 -1
  467. package/components/{sunburst-chart-positioning.config-DDKFlKW3.cjs → sunburst-chart-positioning.config-BIpSCpSi.cjs} +1 -1
  468. package/components/{sunburst-chart-positioning.config-CsCLFckU.js → sunburst-chart-positioning.config-CcGOcwOK.js} +1 -1
  469. package/components/{sunburst-chart-slots.config-rNscb225.js → sunburst-chart-slots.config-BU9ma0xm.js} +1 -1
  470. package/components/{symbol-map-options.config-DC1tq8SG.js → symbol-map-options.config-I_gykFhh.js} +1 -1
  471. package/components/{symbol-map-positioning.config-BZq0UkGQ.cjs → symbol-map-positioning.config-DPv89eCY.cjs} +1 -1
  472. package/components/{symbol-map-positioning.config-BFHhRAAZ.js → symbol-map-positioning.config-H3n2ngaa.js} +1 -1
  473. package/components/{symbol-map-slots.config-Cj7_4U7H.js → symbol-map-slots.config-CQJgV5bh.js} +1 -1
  474. package/components/{text-options.config-Mqd1Oy73.js → text-options.config-DUMx63Ol.js} +1 -1
  475. package/components/{text-slots.config-CcjPSmDJ.js → text-slots.config-YmmXsb-0.js} +1 -1
  476. package/components/{treemap-chart-options.config-Cgy7LEyB.js → treemap-chart-options.config-CAWPa5jK.js} +1 -1
  477. package/components/{treemap-chart-positioning.config-2kIvfVAE.js → treemap-chart-positioning.config-Dzp4TodY.js} +1 -1
  478. package/components/{treemap-chart-positioning.config-CZCU1f19.cjs → treemap-chart-positioning.config-W2sl4gZ0.cjs} +1 -1
  479. package/components/{treemap-chart-slots.config-Cpapm2BY.js → treemap-chart-slots.config-QEVbKZyS.js} +1 -1
  480. package/components/utils/base.cjs +1 -1
  481. package/components/utils/base.js +2 -2
  482. package/components/utils/store.js +1 -1
  483. package/components/{utils-qElG-Syn.cjs → utils-3XO8ba12.cjs} +1 -1
  484. package/components/{utils-BFZqe6Y0.js → utils-B6EE0gvH.js} +1 -1
  485. package/components/utils.cjs +1 -1
  486. package/components/utils.js +5 -3
  487. package/components/{venn-diagram-options.config-Cnu8elgc.js → venn-diagram-options.config-KKD89q3q.js} +1 -1
  488. package/components/{venn-diagram-positioning.config-CE4tTFiI.js → venn-diagram-positioning.config-BLSj3JqA.js} +1 -1
  489. package/components/{venn-diagram-positioning.config-oCiElw_6.cjs → venn-diagram-positioning.config-Bv3pFJIU.cjs} +1 -1
  490. package/components/{venn-diagram-slots.config-CN59FT-M.js → venn-diagram-slots.config-DsIqVOI2.js} +1 -1
  491. package/components/{video-options.config-6VlWxo6-.js → video-options.config-D2SEyNrP.js} +1 -1
  492. package/components/{video-slots.config-BVraFye8.js → video-slots.config-B680gLmP.js} +1 -1
  493. package/components/viz-item-menu/index.cjs +20 -0
  494. package/components/viz-item-menu/index.d.ts +8 -0
  495. package/components/viz-item-menu/index.js +28 -0
  496. package/components/viz-item-menu/types.d.ts +9 -0
  497. package/components/viz-item-menu/viz-item-menu.d.ts +75 -0
  498. package/components/viz-item-menu-CiEJJddu.js +170 -0
  499. package/components/viz-item-menu-Dry8xpRA.cjs +55 -0
  500. package/components/{wordcloud-chart-options.config-CVl6-lm0.js → wordcloud-chart-options.config-DLN2RAEK.js} +1 -1
  501. package/components/{wordcloud-chart-positioning.config-BA0jo1KG.js → wordcloud-chart-positioning.config-DVPWXJXb.js} +1 -1
  502. package/components/{wordcloud-chart-positioning.config-CioSulMl.cjs → wordcloud-chart-positioning.config-ZTO2VLdY.cjs} +1 -1
  503. package/components/{wordcloud-chart-slots.config-D2fzZcjk.js → wordcloud-chart-slots.config-mFvqkiQE.js} +1 -1
  504. package/custom-elements.json +16508 -4907
  505. package/index.d.ts +25 -0
  506. package/package.json +131 -1
  507. package/react/README.md +32 -6
  508. package/react/components/ai-chat/empty-state/index.ts +1 -0
  509. package/react/components/ai-chat/empty-state/types.ts +16 -0
  510. package/react/components/ai-chat/stream/index.ts +1 -0
  511. package/react/components/ai-chat/stream/types.ts +60 -0
  512. package/react/components/ai-chat.component.ts +42 -0
  513. package/react/components/ai-interaction-textarea/index.ts +1 -0
  514. package/react/components/ai-interaction-textarea/types.ts +6 -0
  515. package/react/components/ai-interaction-textarea.component.ts +30 -0
  516. package/react/components/data-field-level.component.ts +30 -0
  517. package/react/components/data-fields-select/index.ts +1 -0
  518. package/react/components/data-fields-select/types.ts +5 -0
  519. package/react/components/data-fields-select.component.ts +27 -0
  520. package/react/components/dataset-icon/index.ts +1 -0
  521. package/react/components/dataset-icon/types.ts +8 -0
  522. package/react/components/dataset-icon.component.ts +22 -0
  523. package/react/components/dataset-selector-list.component.ts +27 -0
  524. package/react/components/dataset-selector-row.component.ts +30 -0
  525. package/react/components/display-settings/index.ts +1 -0
  526. package/react/components/display-settings/types.ts +12 -0
  527. package/react/components/display-settings-binning.component.ts +27 -0
  528. package/react/components/display-settings-datetime.component.ts +27 -0
  529. package/react/components/display-settings-grand-totals.component.ts +27 -0
  530. package/react/components/display-settings-numeric.component.ts +27 -0
  531. package/react/components/display-settings-period-over-period.component.ts +27 -0
  532. package/react/components/display-settings.component.ts +33 -0
  533. package/react/components/filter-expression-picker.component.ts +27 -0
  534. package/react/components/filter-item.component.ts +27 -0
  535. package/react/components/filter-parameter-picker.component.ts +22 -0
  536. package/react/components/filter-value-picker-datetime.component.ts +27 -0
  537. package/react/components/filter-value-picker-hierarchy.component.ts +27 -0
  538. package/react/components/filter-value-picker-numeric.component.ts +27 -0
  539. package/react/components/filter-value-picker.component.ts +27 -0
  540. package/react/components/formula-draggable-field/index.ts +1 -0
  541. package/react/components/formula-draggable-field/types.ts +26 -0
  542. package/react/components/formula-editor.component.ts +33 -0
  543. package/react/components/formula-field.component.ts +30 -0
  544. package/react/components/formula.component.ts +30 -0
  545. package/react/components/slot-menu/index.ts +1 -0
  546. package/react/components/slot-menu/types.ts +29 -0
  547. package/react/components/slot-menu-list.component.ts +27 -0
  548. package/react/components/slot-menu.component.ts +42 -0
  549. package/react/components/viz-item-menu/index.ts +1 -0
  550. package/react/components/viz-item-menu/types.ts +11 -0
  551. package/react/components/viz-item-menu.component.ts +33 -0
  552. package/react/esm/components/ai-chat/empty-state/index.d.ts +1 -0
  553. package/react/esm/components/ai-chat/empty-state/index.js +1 -0
  554. package/react/esm/components/ai-chat/empty-state/types.d.ts +14 -0
  555. package/react/esm/components/ai-chat/empty-state/types.js +1 -0
  556. package/react/esm/components/ai-chat/stream/index.d.ts +1 -0
  557. package/react/esm/components/ai-chat/stream/index.js +1 -0
  558. package/react/esm/components/ai-chat/stream/types.d.ts +55 -0
  559. package/react/esm/components/ai-chat/stream/types.js +1 -0
  560. package/react/esm/components/ai-chat.component.d.ts +22 -0
  561. package/react/esm/components/ai-chat.component.js +27 -0
  562. package/react/esm/components/ai-interaction-textarea/index.d.ts +1 -0
  563. package/react/esm/components/ai-interaction-textarea/index.js +1 -0
  564. package/react/esm/components/ai-interaction-textarea/types.d.ts +5 -0
  565. package/react/esm/components/ai-interaction-textarea/types.js +1 -0
  566. package/react/esm/components/ai-interaction-textarea.component.d.ts +14 -0
  567. package/react/esm/components/ai-interaction-textarea.component.js +19 -0
  568. package/react/esm/components/data-field-level.component.d.ts +14 -0
  569. package/react/esm/components/data-field-level.component.js +19 -0
  570. package/react/esm/components/data-fields-select/index.d.ts +1 -0
  571. package/react/esm/components/data-fields-select/index.js +1 -0
  572. package/react/esm/components/data-fields-select/types.d.ts +4 -0
  573. package/react/esm/components/data-fields-select/types.js +1 -0
  574. package/react/esm/components/data-fields-select.component.d.ts +12 -0
  575. package/react/esm/components/data-fields-select.component.js +17 -0
  576. package/react/esm/components/dataset-icon/index.d.ts +1 -0
  577. package/react/esm/components/dataset-icon/index.js +1 -0
  578. package/react/esm/components/dataset-icon/types.d.ts +11 -0
  579. package/react/esm/components/dataset-icon/types.js +1 -0
  580. package/react/esm/components/dataset-icon.component.d.ts +8 -0
  581. package/react/esm/components/dataset-icon.component.js +13 -0
  582. package/react/esm/components/dataset-selector-list.component.d.ts +12 -0
  583. package/react/esm/components/dataset-selector-list.component.js +17 -0
  584. package/react/esm/components/dataset-selector-row.component.d.ts +14 -0
  585. package/react/esm/components/dataset-selector-row.component.js +19 -0
  586. package/react/esm/components/display-settings/index.d.ts +1 -0
  587. package/react/esm/components/display-settings/index.js +1 -0
  588. package/react/esm/components/display-settings/types.d.ts +9 -0
  589. package/react/esm/components/display-settings/types.js +1 -0
  590. package/react/esm/components/display-settings-binning.component.d.ts +12 -0
  591. package/react/esm/components/display-settings-binning.component.js +17 -0
  592. package/react/esm/components/display-settings-datetime.component.d.ts +12 -0
  593. package/react/esm/components/display-settings-datetime.component.js +17 -0
  594. package/react/esm/components/display-settings-grand-totals.component.d.ts +12 -0
  595. package/react/esm/components/display-settings-grand-totals.component.js +17 -0
  596. package/react/esm/components/display-settings-numeric.component.d.ts +12 -0
  597. package/react/esm/components/display-settings-numeric.component.js +17 -0
  598. package/react/esm/components/display-settings-period-over-period.component.d.ts +12 -0
  599. package/react/esm/components/display-settings-period-over-period.component.js +17 -0
  600. package/react/esm/components/display-settings.component.d.ts +16 -0
  601. package/react/esm/components/display-settings.component.js +21 -0
  602. package/react/esm/components/filter-expression-picker.component.d.ts +12 -0
  603. package/react/esm/components/filter-expression-picker.component.js +17 -0
  604. package/react/esm/components/filter-item.component.d.ts +12 -0
  605. package/react/esm/components/filter-item.component.js +17 -0
  606. package/react/esm/components/filter-parameter-picker.component.d.ts +8 -0
  607. package/react/esm/components/filter-parameter-picker.component.js +13 -0
  608. package/react/esm/components/filter-value-picker-datetime.component.d.ts +12 -0
  609. package/react/esm/components/filter-value-picker-datetime.component.js +17 -0
  610. package/react/esm/components/filter-value-picker-hierarchy.component.d.ts +12 -0
  611. package/react/esm/components/filter-value-picker-hierarchy.component.js +17 -0
  612. package/react/esm/components/filter-value-picker-numeric.component.d.ts +12 -0
  613. package/react/esm/components/filter-value-picker-numeric.component.js +17 -0
  614. package/react/esm/components/filter-value-picker.component.d.ts +12 -0
  615. package/react/esm/components/filter-value-picker.component.js +17 -0
  616. package/react/esm/components/formula-draggable-field/index.d.ts +1 -0
  617. package/react/esm/components/formula-draggable-field/index.js +1 -0
  618. package/react/esm/components/formula-draggable-field/types.d.ts +24 -0
  619. package/react/esm/components/formula-draggable-field/types.js +1 -0
  620. package/react/esm/components/formula-editor.component.d.ts +16 -0
  621. package/react/esm/components/formula-editor.component.js +21 -0
  622. package/react/esm/components/formula-field.component.d.ts +14 -0
  623. package/react/esm/components/formula-field.component.js +19 -0
  624. package/react/esm/components/formula.component.d.ts +14 -0
  625. package/react/esm/components/formula.component.js +19 -0
  626. package/react/esm/components/slot-menu/index.d.ts +1 -0
  627. package/react/esm/components/slot-menu/index.js +1 -0
  628. package/react/esm/components/slot-menu/types.d.ts +24 -0
  629. package/react/esm/components/slot-menu/types.js +1 -0
  630. package/react/esm/components/slot-menu-list.component.d.ts +12 -0
  631. package/react/esm/components/slot-menu-list.component.js +17 -0
  632. package/react/esm/components/slot-menu.component.d.ts +22 -0
  633. package/react/esm/components/slot-menu.component.js +27 -0
  634. package/react/esm/components/viz-item-menu/index.d.ts +1 -0
  635. package/react/esm/components/viz-item-menu/index.js +1 -0
  636. package/react/esm/components/viz-item-menu/types.d.ts +9 -0
  637. package/react/esm/components/viz-item-menu/types.js +1 -0
  638. package/react/esm/components/viz-item-menu.component.d.ts +16 -0
  639. package/react/esm/components/viz-item-menu.component.js +21 -0
  640. package/react/esm/index.d.ts +28 -2
  641. package/react/esm/index.js +106 -2
  642. package/react/esm/types.d.ts +15 -0
  643. package/react/index.ts +106 -2
  644. package/react/luzmo-stub.d.ts +167 -0
  645. package/react/types.ts +12 -0
  646. package/storybook/inject-global-vars.d.ts +1 -0
  647. package/storybook/register-components.d.ts +51 -0
  648. package/types/ai-chat.types.d.ts +63 -0
  649. package/types/data-field-events.types.d.ts +7 -0
  650. package/types.d.ts +8 -0
  651. package/components/base-DALdSJnS.cjs +0 -20
  652. package/components/data-field-Da9-w0dV.cjs +0 -89
  653. package/components/data-field-panel-DiQyyB58.cjs +0 -87
  654. package/components/data-fields-select-eTLgAsP7.cjs +0 -41
  655. package/components/display-settings-datetime-Ce9pfoSc.cjs +0 -217
  656. package/components/display-settings-grand-totals-BS1MwDRW.cjs +0 -44
  657. package/components/display-settings-numeric-DkzMeIJ0.cjs +0 -190
  658. package/components/display-settings-period-over-period-Cra_Q5UR.cjs +0 -229
  659. package/components/filters-BlhodZNo.cjs +0 -323
  660. package/components/filters-C3OYCMyw.js +0 -1637
  661. package/components/formula-codemirror-oGmbSSst.cjs +0 -215
  662. package/components/icon-element-BBvOmuv7.js +0 -214
  663. package/components/icon-element-Cp7X6o4B.cjs +0 -20
  664. package/components/item-option-DQY1ywF7.cjs +0 -252
  665. package/components/item-option-action-button-group-BWvqcvi4.cjs +0 -53
  666. package/components/item-option-base-DmC_wT_2.cjs +0 -56
  667. package/components/item-option-color-palette-picker-D5S3orJU.cjs +0 -40
  668. package/components/item-option-color-range-DtGhcSPp.cjs +0 -98
  669. package/components/item-option-position-picker-B4feLDm1.cjs +0 -32
  670. package/components/item-option-positions-number-field-CRo2MkLX.cjs +0 -49
  671. package/components/item-slot-drop-DJhrCthK.cjs +0 -91
  672. package/components/item-slot-drop-panel-CMn3gtpB.cjs +0 -57
  673. package/components/item-slot-picker-panel-CxJeJTSe.cjs +0 -81
  674. package/components/item-slot-picker-wzfaXWHe.cjs +0 -158
  675. package/components/localized-mixin-WdJ00iIC.cjs +0 -20
  676. package/components/slot-menu-BJ1l9wes.cjs +0 -182
  677. package/components/slot-menu-ZNG92h35.js +0 -971
  678. package/components/slots-config-97A9OVQR.cjs +0 -20
@@ -0,0 +1,57 @@
1
+ /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
+ *
3
+ * Copyright © 2026 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
+ const e=require("./base-kQ6cjcIZ.cjs"),t=require("./decorate-DCJt-2rt.cjs"),n=require("./localized-mixin-CiBWThrZ.cjs"),r=require("./slots-config-DVH0lz6t.cjs");require("./item-slot-drop-BUCjEfJf.cjs");let i=require("lit"),a=require("lit/decorators.js"),o=require("@lit/localize"),s=require("@lit/task"),c=require("lit/directives/if-defined.js"),l=require("lit/directives/style-map.js");var u=`auto`;function d(e){let t={};return e.forEach((e,n)=>{t[e]={column:1,row:n+1,align:`center`,justify:`center`,rotate:!1}}),{grid:{columns:1,rows:e.length,columnSizes:[`1fr`],rowSizes:e.map(()=>u),gap:`0`},slots:t}}var f={"area-chart":()=>Promise.resolve().then(()=>require("./area-chart-positioning.config-CfC43YUW.cjs")),"bar-chart":()=>Promise.resolve().then(()=>require("./bar-chart-positioning.config-vJOALpQP.cjs")),"box-plot":()=>Promise.resolve().then(()=>require("./box-plot-positioning.config-DVNeh9kg.cjs")),"bubble-chart":()=>Promise.resolve().then(()=>require("./bubble-chart-positioning.config-Dg92VJnB.cjs")),"bullet-chart":()=>Promise.resolve().then(()=>require("./bullet-chart-positioning.config-BwqxpSSL.cjs")),"choropleth-map":()=>Promise.resolve().then(()=>require("./choropleth-map-positioning.config-y-bYMoxr.cjs")),"circle-pack-chart":()=>Promise.resolve().then(()=>require("./circle-pack-chart-positioning.config-wKIQDFe8.cjs")),"circular-gauge":()=>Promise.resolve().then(()=>require("./circular-gauge-positioning.config-CKNanoFX.cjs")),"column-chart":()=>Promise.resolve().then(()=>require("./column-chart-positioning.config-Enx15Dqh.cjs")),"combination-chart":()=>Promise.resolve().then(()=>require("./combination-chart-positioning.config-CqlKA__j.cjs")),"conditional-number":()=>Promise.resolve().then(()=>require("./conditional-number-positioning.config-CR45rPru.cjs")),"date-comparison-filter":()=>Promise.resolve().then(()=>require("./date-comparison-filter-positioning.config-DZI9jN5L.cjs")),"date-filter":()=>Promise.resolve().then(()=>require("./date-filter-positioning.config-CtEFg3RO.cjs")),"donut-chart":()=>Promise.resolve().then(()=>require("./donut-chart-positioning.config-B9sm4yFV.cjs")),"dropdown-filter":()=>Promise.resolve().then(()=>require("./dropdown-filter-positioning.config-Ck97Moc_.cjs")),"evolution-number":()=>Promise.resolve().then(()=>require("./evolution-number-positioning.config-DVXhBZYj.cjs")),"funnel-chart":()=>Promise.resolve().then(()=>require("./funnel-chart-positioning.config-C5Z3JkuS.cjs")),"heat-map":()=>Promise.resolve().then(()=>require("./heat-map-positioning.config-HPftgmdz.cjs")),"heat-table":()=>Promise.resolve().then(()=>require("./heat-table-positioning.config-wkrm8Fbk.cjs")),"hexbin-map":()=>Promise.resolve().then(()=>require("./hexbin-map-positioning.config-D0hAchxV.cjs")),"line-chart":()=>Promise.resolve().then(()=>require("./line-chart-positioning.config-BNtGFWUK.cjs")),"marker-map":()=>Promise.resolve().then(()=>require("./marker-map-positioning.config-C2cL7uZJ.cjs")),"ohlc-chart":()=>Promise.resolve().then(()=>require("./ohlc-chart-positioning.config-IAOfu4ue.cjs")),"parallel-coordinates-plot":()=>Promise.resolve().then(()=>require("./parallel-coordinates-plot-positioning.config-Bf0Leksw.cjs")),"pivot-table":()=>Promise.resolve().then(()=>require("./pivot-table-positioning.config-D1R3VO88.cjs")),"pyramid-chart":()=>Promise.resolve().then(()=>require("./pyramid-chart-positioning.config-BfXdJS8g.cjs")),"radar-chart":()=>Promise.resolve().then(()=>require("./radar-chart-positioning.config-Bixdrod2.cjs")),"regular-table":()=>Promise.resolve().then(()=>require("./regular-table-positioning.config-CXabhyJu.cjs")),"route-map":()=>Promise.resolve().then(()=>require("./route-map-positioning.config-7aca5Iex.cjs")),"sankey-diagram":()=>Promise.resolve().then(()=>require("./sankey-diagram-positioning.config-Bvus3RDi.cjs")),"scatter-plot":()=>Promise.resolve().then(()=>require("./scatter-plot-positioning.config-DBDCDDad.cjs")),"search-filter":()=>Promise.resolve().then(()=>require("./search-filter-positioning.config-BvwxJS-1.cjs")),"slicer-filter":()=>Promise.resolve().then(()=>require("./slicer-filter-positioning.config-Bx2_7jxp.cjs")),"slider-filter":()=>Promise.resolve().then(()=>require("./slider-filter-positioning.config-a7tK-5va.cjs")),"speedometer-chart":()=>Promise.resolve().then(()=>require("./speedometer-chart-positioning.config-CNOKIw7e.cjs")),"spike-map":()=>Promise.resolve().then(()=>require("./spike-map-positioning.config-Bcdt8670.cjs")),"strip-plot":()=>Promise.resolve().then(()=>require("./strip-plot-positioning.config-BjcqWJoD.cjs")),"sunburst-chart":()=>Promise.resolve().then(()=>require("./sunburst-chart-positioning.config-BIpSCpSi.cjs")),"symbol-map":()=>Promise.resolve().then(()=>require("./symbol-map-positioning.config-DPv89eCY.cjs")),"treemap-chart":()=>Promise.resolve().then(()=>require("./treemap-chart-positioning.config-W2sl4gZ0.cjs")),"venn-diagram":()=>Promise.resolve().then(()=>require("./venn-diagram-positioning.config-Bv3pFJIU.cjs")),"wordcloud-chart":()=>Promise.resolve().then(()=>require("./wordcloud-chart-positioning.config-ZTO2VLdY.cjs"))},p=e=>`${e.replaceAll(/-([a-z])/g,(e,t)=>t.toUpperCase())}PositioningConfig`,m=async e=>{try{let t=f[e];return t?(await t())[p(e)]??null:null}catch{return null}},h=e=>e?m(e):Promise.resolve(null),g=`:host{font-size:var(--luzmo-item-slot-drop-panel-font-size,var(--luzmo-font-size));--luzmo-slot-cell-padding-inline-min:var(--luzmo-spacing-4);--luzmo-slot-cell-padding-block-min:var(--luzmo-spacing-4);--luzmo-slot-cell-padding-inline-max:calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-2));--luzmo-slot-cell-padding-block-max:calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-2));display:block}:host([size=s]){font-size:var(--luzmo-item-slot-drop-panel-font-size-s,var(--luzmo-font-size-s));--luzmo-slot-cell-padding-inline-min:var(--luzmo-spacing-3);--luzmo-slot-cell-padding-block-min:var(--luzmo-spacing-3);--luzmo-slot-cell-padding-inline-max:var(--luzmo-spacing-5);--luzmo-slot-cell-padding-block-max:var(--luzmo-spacing-5)}:host([size=l]){font-size:var(--luzmo-item-slot-drop-panel-font-size-l,var(--luzmo-font-size-l));--luzmo-slot-cell-padding-inline-min:var(--luzmo-spacing-4);--luzmo-slot-cell-padding-block-min:var(--luzmo-spacing-4);--luzmo-slot-cell-padding-inline-max:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-1));--luzmo-slot-cell-padding-block-max:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-1))}:host([size=xl]){font-size:var(--luzmo-item-slot-drop-panel-font-size-xl,var(--luzmo-font-size-xl));--luzmo-slot-cell-padding-inline-min:var(--luzmo-spacing-5);--luzmo-slot-cell-padding-block-min:var(--luzmo-spacing-5);--luzmo-slot-cell-padding-inline-max:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-2));--luzmo-slot-cell-padding-block-max:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-2))}.slots-panel{align-items:var(--luzmo-item-slot-drop-panel-align,center);gap:var(--luzmo-item-slot-drop-panel-gap,var(--luzmo-spacing-4));flex-direction:column;display:flex}.slots-panel luzmo-item-slot-drop{flex:0 auto;min-width:0;max-width:100%}:host([grows]) .slots-panel luzmo-item-slot-drop{width:100%}.slots-grid{box-sizing:border-box;container:slots-grid/size}.slots-grid luzmo-item-slot-drop{height:var(--luzmo-item-slot-drop-height,var(--item-slot-drop-height));display:block}.slots-grid luzmo-item-slot-drop[rotate]{height:auto}.slot-cell{box-sizing:border-box;min-width:0;min-height:0;padding-inline:var(--luzmo-slot-cell-padding-inline-min);padding-block:var(--luzmo-slot-cell-padding-block-min);justify-content:center;align-items:center;display:flex}@container slots-grid (width>=320px){.slot-cell{padding-inline:calc((var(--luzmo-slot-cell-padding-inline-min) + var(--luzmo-slot-cell-padding-inline-max)) / 2)}}@container slots-grid (width>=640px){.slot-cell{padding-inline:var(--luzmo-slot-cell-padding-inline-max)}}@container slots-grid (height>=240px){.slot-cell{padding-block:calc((var(--luzmo-slot-cell-padding-block-min) + var(--luzmo-slot-cell-padding-block-max)) / 2)}}@container slots-grid (height>=480px){.slot-cell{padding-block:var(--luzmo-slot-cell-padding-block-max)}}:host([positioned]){width:100%;height:100%;min-width:var(--luzmo-item-slot-drop-panel-min-width,150px);min-height:var(--luzmo-item-slot-drop-panel-min-height,150px)}`,_=class extends n.t(e.n(e.i,{validSizes:[`s`,`m`,`l`,`xl`],noDefaultSize:!0})){constructor(...e){super(...e),this._loadSlotsConfig=new s.Task(this,{task:async([e,t])=>{if(e&&e!==this._itemTypeLoaded){this._itemTypeLoaded=e;let n=await r.t(e);return this._slotsConfig=n??[],this._positioningConfig=t?await h(e):null,this._slotsConfig}return this._slotsConfig},args:()=>[this.itemType,this.positioned,this.language]}),this._slotsConfig=[],this._positioningConfig=null,this.contentLanguage=`en`,this.slotsContents=[],this.positioned=!1,this.slotMenuPlacement=`bottom-end`,this.hideDelete=!0,this.hideConfiguration=!1,this.constraintMode=`auto`,this.slotMenuMode=`default`,this.apiUrl=`https://api.luzmo.com`,this.authKey=``,this.authToken=``,this._currentSlotsContents=[],this._createSlotChangeHandler=e=>t=>{t.stopPropagation();let n=t.detail.slotContents??[],r=t.detail.linkedDatasetsIds??[],i=this._applySlotConstraints(e,n,r);if(i===null){t.preventDefault();return}this._currentSlotsContents=i,this.slotsContents=structuredClone(i),this.dispatchEvent(new CustomEvent(`luzmo-slots-contents-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{slotsContents:i,linkedDatasetsIds:r}}))}}static{this.styles=(0,i.unsafeCSS)(g)}willUpdate(e){super.willUpdate(e),e.has(`slotsContents`)&&(this._currentSlotsContents=structuredClone(this.slotsContents??[])),e.has(`positioned`)&&this.itemType&&(this._itemTypeLoaded=void 0)}_getDatasetIdFromContent(e){return e?.set??e?.datasetId}_isDatasetLinked(e,t,n){if(t.size===0||t.has(e))return!0;for(let e of t)if(n.includes(e))return!0;for(let e of n)if(t.has(e))return!0;return!1}_applySlotConstraints(e,t,n=[]){let r=this.slotsConfiguration??this._slotsConfig,i=structuredClone(this._currentSlotsContents),a=structuredClone(this._currentSlotsContents),o=[];if(t.length>0){let r=new Set;for(let e of this._currentSlotsContents)for(let t of e.content??[]){let e=this._getDatasetIdFromContent(t);e&&r.add(e)}let i=t[t.length-1],s=this._getDatasetIdFromContent(i);if(s&&!this._isDatasetLinked(s,r,n)){for(let t of a)t.name!==e&&t.content.length>0&&(o.push({type:`clearSlotsWhenUnlinkedDataset`,affectedSlotName:t.name,triggeredBySlotName:e}),t.content=[]);(this._currentSlotsContents.find(t=>t.name===e)?.content?.length??0)>0&&o.push({type:`clearSlotsWhenUnlinkedDataset`,affectedSlotName:e,triggeredBySlotName:e}),t=[i]}}let s=a.findIndex(t=>t.name===e);s===-1?a.push({name:e,content:t}):a[s].content=t;for(let n of r){if(n.keepOnlyFirstWhenOtherSlotFilled?.includes(e)&&t.length>0){let t=a.findIndex(e=>e.name===n.name);t!==-1&&a[t].content.length>1&&(o.push({type:`keepOnlyFirstWhenOtherSlotFilled`,affectedSlotName:n.name,triggeredBySlotName:e}),a[t].content=[a[t].content[0]])}if(n.clearWhenOtherSlotHasMultipleItems?.includes(e)&&t.length>1){let t=a.findIndex(e=>e.name===n.name);t!==-1&&a[t].content.length>0&&(o.push({type:`clearWhenOtherSlotHasMultipleItems`,affectedSlotName:n.name,triggeredBySlotName:e}),a[t].content=[])}}if(this.constraintMode===`event-only`&&o.length>0){let n={triggerSlotName:e,proposedTriggerContents:t,originalSlotsContents:i,proposedSlotsContents:a,constraints:o};return this.dispatchEvent(new CustomEvent(`luzmo-slot-constraint-triggered`,{detail:n,bubbles:!0,composed:!0})),null}return a}_getPositioningConfig(){return this.positioningConfiguration??this._positioningConfig}_renderSlot(e,t){let n=this._createSlotChangeHandler(e.name),r=this.positioned?t?.rotate??!1:!1;return i.html`
21
+ <luzmo-item-slot-drop
22
+ part="item-slot-drop"
23
+ item-type=${(0,c.ifDefined)(this.itemType)}
24
+ slot-name=${e.name}
25
+ language=${this.language}
26
+ content-language=${this.contentLanguage}
27
+ size=${this.size}
28
+ menu=${this.slotMenuMode}
29
+ placement=${this.slotMenuPlacement}
30
+ drag-boundary=${(0,c.ifDefined)(this.dragBoundary)}
31
+ ?hide-delete=${this.hideDelete}
32
+ ?hide-configuration=${this.hideConfiguration}
33
+ ?rotate=${r}
34
+ api-url=${(0,c.ifDefined)(this.apiUrl)}
35
+ auth-key=${(0,c.ifDefined)(this.authKey)}
36
+ auth-token=${(0,c.ifDefined)(this.authToken)}
37
+ .slotConfiguration=${e}
38
+ .slotsContents=${this._currentSlotsContents}
39
+ @luzmo-slot-contents-changed=${n}
40
+ ></luzmo-item-slot-drop>
41
+ `}_renderPositionedSlots(e){let{grid:t,slots:n}=this._getPositioningConfig()??d(e.map(e=>e.name)),r={display:`grid`,gridTemplateColumns:t.columnSizes?.join(` `)??`repeat(${t.columns}, 1fr)`,gridTemplateRows:t.rowSizes?.join(` `)??`repeat(${t.rows}, 1fr)`,gap:t.gap??`0.25rem`,width:`100%`,height:`100%`},a=e.map(e=>{let t=n[e.name];if(!t)return this._renderSlot(e);let r={gridColumn:t.columnSpan?`${t.column} / span ${t.columnSpan}`:String(t.column),gridRow:t.rowSpan?`${t.row} / span ${t.rowSpan}`:String(t.row)};return t.padding&&(r.padding=t.padding),i.html`
42
+ <div class="slot-cell" part="slot-cell" style=${(0,l.styleMap)(r)}>
43
+ ${this._renderSlot(e,t)}
44
+ </div>
45
+ `});return i.html`
46
+ <div class="slots-grid" part="slots-grid" style=${(0,l.styleMap)(r)}>
47
+ ${a}
48
+ </div>
49
+ `}_renderSlots(e){return i.html`
50
+ <div class="slots-panel" part="slots-panel">
51
+ ${e.map(e=>this._renderSlot(e))}
52
+ </div>
53
+ `}render(){return this.slotsConfiguration&&this.slotsConfiguration.length>0?this.positioned?this._renderPositionedSlots(this.slotsConfiguration):this._renderSlots(this.slotsConfiguration):this._loadSlotsConfig.render({pending:()=>i.html`
54
+ <p role="status">Loading...</p>
55
+ `,complete:e=>!e||e.length===0?i.html`<p>No slots configuration found for ${this.itemType}</p>`:this.positioned?this._renderPositionedSlots(e):this._renderSlots(e),error:e=>i.html`
56
+ <div role="alert">Could not load slots configuration for '${this.itemType}': ${e}.</div>
57
+ `})}};t.t([(0,a.property)({type:String,reflect:!0,attribute:`item-type`})],_.prototype,`itemType`,void 0),t.t([(0,a.property)({type:String,attribute:`content-language`,reflect:!0})],_.prototype,`contentLanguage`,void 0),t.t([(0,a.property)({type:Array})],_.prototype,`slotsConfiguration`,void 0),t.t([(0,a.property)({type:Object})],_.prototype,`positioningConfiguration`,void 0),t.t([(0,a.property)({type:Array})],_.prototype,`slotsContents`,void 0),t.t([(0,a.property)({type:Boolean,reflect:!0})],_.prototype,`positioned`,void 0),t.t([(0,a.property)({type:String,reflect:!0,attribute:`drag-boundary`})],_.prototype,`dragBoundary`,void 0),t.t([(0,a.property)({type:String,reflect:!0,attribute:`slot-menu-placement`})],_.prototype,`slotMenuPlacement`,void 0),t.t([(0,a.property)({type:Boolean,reflect:!0,attribute:`hide-delete`})],_.prototype,`hideDelete`,void 0),t.t([(0,a.property)({type:Boolean,reflect:!0,attribute:`hide-configuration`})],_.prototype,`hideConfiguration`,void 0),t.t([(0,a.property)({type:Boolean,reflect:!0,attribute:`grows`})],_.prototype,`grows`,void 0),t.t([(0,a.property)({type:String,reflect:!0,attribute:`constraint-mode`})],_.prototype,`constraintMode`,void 0),t.t([(0,a.property)({type:String,reflect:!0,attribute:`slot-menu-mode`})],_.prototype,`slotMenuMode`,void 0),t.t([(0,a.property)({type:String,attribute:`api-url`,reflect:!0})],_.prototype,`apiUrl`,void 0),t.t([(0,a.property)({type:String,attribute:`auth-key`,reflect:!0})],_.prototype,`authKey`,void 0),t.t([(0,a.property)({type:String,attribute:`auth-token`,reflect:!0})],_.prototype,`authToken`,void 0),t.t([(0,a.state)()],_.prototype,`_currentSlotsContents`,void 0),_=t.t([(0,o.localized)()],_),customElements.get(`luzmo-item-slot-drop-panel`)||customElements.define(`luzmo-item-slot-drop-panel`,_),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return _}});
@@ -17,4 +17,4 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../item-slot-picker-wzfaXWHe.cjs");Object.defineProperty(exports,"LuzmoItemSlotPicker",{enumerable:!0,get:function(){return e.t}});
20
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../item-slot-picker-CvbXFh6Z.cjs");Object.defineProperty(exports,"LuzmoItemSlotPicker",{enumerable:!0,get:function(){return e.t}});
@@ -24,5 +24,5 @@
24
24
  e.setAttribute("data-luzmo-vars", ""), e.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: color-mix(in oklch, var(--luzmo-border-color-full), black 25%);--luzmo-border-color-full-down: color-mix(in oklch, var(--luzmo-border-color-full), black 45%);--luzmo-border-color-full-focus: color-mix(in oklch, var(--luzmo-border-color-full), black 25%);--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: color-mix( in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 5%), black 1.5% );--luzmo-background-color-down: color-mix(in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 7%), black 1%);--luzmo-background-color-focus: color-mix( in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 5%), black 1.5% );--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: color-mix(in oklch, var(--luzmo-background-color-highlight), black 10%);--luzmo-background-color-highlight-down: color-mix(in oklch, var(--luzmo-background-color-highlight), black 20%);--luzmo-background-color-highlight-focus: color-mix(in oklch, var(--luzmo-background-color-highlight), black 10%);--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: color-mix(in oklch, var(--luzmo-font-color), black 8%);--luzmo-font-color-down: color-mix(in oklch, var(--luzmo-font-color), black 20%);--luzmo-font-color-focus: color-mix(in oklch, var(--luzmo-font-color), black 8%);--luzmo-scrollbar-size: 6px;--luzmo-scrollbar-width: thin;--luzmo-scrollbar-track-background: transparent;--luzmo-scrollbar-track-border-radius: var(--luzmo-border-radius-s);--luzmo-scrollbar-thumb-background: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-scrollbar-thumb-border-radius: var(--luzmo-border-radius-s);--luzmo-scrollbar-thumb-hover-background: rgba(var(--luzmo-border-color-rgb), 0.4);--luzmo-primary: #4434ff;--luzmo-primary-hover: color-mix(in oklch, var(--luzmo-primary), black 8%);--luzmo-primary-down: color-mix(in oklch, var(--luzmo-primary), black 20%);--luzmo-primary-focus: color-mix(in oklch, var(--luzmo-primary), black 8%);--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: color-mix(in oklch, var(--luzmo-secondary), black 8%);--luzmo-secondary-down: color-mix(in oklch, var(--luzmo-secondary), black 20%);--luzmo-secondary-focus: color-mix(in oklch, var(--luzmo-secondary), black 8%);--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: color-mix(in oklch, var(--luzmo-negative-color), black 8%);--luzmo-negative-color-down: color-mix(in oklch, var(--luzmo-negative-color), black 20%);--luzmo-negative-color-focus: color-mix(in oklch, var(--luzmo-negative-color), black 8%);--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: color-mix(in oklch, var(--luzmo-positive-color), black 8%);--luzmo-positive-color-down: color-mix(in oklch, var(--luzmo-positive-color), black 20%);--luzmo-positive-color-focus: color-mix(in oklch, var(--luzmo-positive-color), black 8%);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: color-mix(in oklch, var(--luzmo-selected-color), black 25%);--luzmo-selected-color-down: color-mix(in oklch, var(--luzmo-selected-color), black 45%);--luzmo-selected-color-focus: color-mix(in oklch, var(--luzmo-selected-color), black 25%);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: color-mix(in oklch, var(--luzmo-selected-color-hard), black 25%);--luzmo-selected-color-hard-down: color-mix(in oklch, var(--luzmo-selected-color-hard), black 45%);--luzmo-selected-color-hard-focus: color-mix(in oklch, var(--luzmo-selected-color-hard), black 25%);--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(e);
25
25
  }
26
26
  })();
27
- import { t as e } from "../item-slot-picker-Dd35AuI2.js";
27
+ import { t as e } from "../item-slot-picker-dy5hVID5.js";
28
28
  export { e as LuzmoItemSlotPicker };
@@ -0,0 +1,158 @@
1
+ /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
+ *
3
+ * Copyright © 2026 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
+ const e=require("./base-kQ6cjcIZ.cjs"),t=require("./decorate-DCJt-2rt.cjs"),n=require("./localized-mixin-CiBWThrZ.cjs"),r=require("./display-settings-DnzOjr-1.cjs"),i=require("./slots-config-DVH0lz6t.cjs"),a=require("./default-acceptable-data-field-types-fPsz64ka.cjs"),o=require("./slot-menu-DkyDLDSd.cjs");require("./data-fields-select-qCWuzckJ.cjs");let s=require("@luzmo/icons");require("@luzmo/lucero/overlay");let c=require("lit"),l=require("lit/decorators.js"),u=require("@lit/localize");require("@luzmo/lucero/tooltip"),require("@luzmo/lucero/action-button");let d=require("@lit/context"),f=require("@lit/task");require("@luzmo/lucero/field-label");let p=require("lit/directives/if-defined.js");var m=`:host{--luzmo-select-inline-size:100%;font-family:var(--luzmo-item-slot-picker-font-family,var(--luzmo-font-family))}.container{gap:var(--luzmo-item-slot-picker-gap,var(--item-slot-picker-gap,var(--luzmo-spacing-5)));flex-direction:column;width:fit-content;display:flex}.select-container{flex-direction:column;display:flex}.select-container .select-controls{align-items:center;gap:var(--luzmo-item-slot-picker-controls-gap,var(--item-slot-picker-controls-gap));flex-direction:row;flex:auto;display:flex}luzmo-data-fields-select{flex-grow:var(--luzmo-item-slot-picker-data-fields-select-flex-grow,var(--item-slot-picker-data-fields-select-flex-grow))}:host([grows]){--item-slot-picker-data-fields-select-flex-grow:1}:host([grows]) .container{width:100%}:host([grows]) .select-container{flex:auto}.extra-data-field-button-container{justify-content:center;align-items:center;display:flex}.item-slot-picker-label{font-size:var(--luzmo-item-slot-picker-label-font-size,var(--item-slot-picker-label-font-size));margin-right:var(--luzmo-item-slot-picker-text-to-controls,var(--item-slot-picker-text-to-controls));text-overflow:ellipsis;white-space:nowrap;flex-grow:1;overflow:hidden}.controls{align-items:center;gap:var(--luzmo-item-slot-picker-controls-gap,var(--item-slot-picker-controls-gap));background-color:var(--luzmo-item-slot-picker-controls-background-color,var(--item-slot-picker-controls-background-color));height:100%;color:var(--luzmo-item-slot-picker-controls-color,var(--item-slot-picker-controls-color));margin-right:var(--luzmo-item-slot-picker-controls-to-edge,var(--item-slot-picker-controls-to-edge));padding:0 var(--luzmo-item-slot-picker-controls-horizontal-padding,var(--item-slot-picker-controls-horizontal-padding));display:flex}.controls div{cursor:pointer;height:100%;padding:0 var(--luzmo-item-slot-picker-controls-control-horizontal-padding,var(--item-slot-picker-controls-control-horizontal-padding));align-items:center;display:flex}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-item-slot-picker-overlay-vertical-gap,var(--item-slot-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-item-slot-picker-overlay-horizontal-gap,var(--item-slot-picker-overlay-horizontal-gap))}:host{--item-slot-picker-border-width:var(--luzmo-border-width);--item-slot-picker-border-style:dashed;--item-slot-picker-border-color:var(--luzmo-border-color);--item-slot-picker-accept-drag-controls-background-color:transparent;--item-slot-picker-font-color:var(--luzmo-font-color);--item-slot-picker-controls-background-color:transparent;--item-slot-picker-text-to-controls:var(--luzmo-spacing-3);--item-slot-picker-controls-to-edge:0;--item-slot-picker-controls-gap:var(--luzmo-spacing-2);--item-slot-picker-controls-horizontal-padding:var(--luzmo-spacing-2);--item-slot-picker-controls-control-horizontal-padding:var(--luzmo-spacing-3);--item-slot-picker-label-font-size:var(--luzmo-font-size);--item-slot-picker-horizontal-padding:var(--luzmo-spacing-4);--item-slot-picker-overlay-horizontal-gap:var(--luzmo-spacing-4);--item-slot-picker-overlay-vertical-gap:var(--luzmo-spacing-4)}:host([size=s]){--item-slot-picker-horizontal-padding:var(--luzmo-spacing-4);--item-slot-picker-overlay-horizontal-gap:var(--luzmo-spacing-4);--item-slot-picker-overlay-vertical-gap:var(--luzmo-spacing-4)}:host([size=l]),:host([size=xl]){--item-slot-picker-horizontal-padding:var(--luzmo-spacing-5);--item-slot-picker-overlay-horizontal-gap:var(--luzmo-spacing-5);--item-slot-picker-overlay-vertical-gap:var(--luzmo-spacing-5)}:host{box-sizing:border-box}`,h=e=>{if(`columnId`in e&&e.columnId)return e.columnId;if(`formulaId`in e&&e.formulaId)return e.formulaId;if(`formula`in e&&e.formula)return e.formula},g=e=>{if(e)return e.columnId??e.formulaId??e.column??e.formula},_=`::level::`,v=(e,t)=>`${e}${_}${t}`,y=class extends n.t(e.n(e.i,{validSizes:[`s`,`m`,`l`,`xl`],noDefaultSize:!0})){static{this.styles=(0,c.unsafeCSS)(m)}_isAdHocFormula(e){return`formula`in e&&typeof e.formula==`string`}constructor(){super(),this._loadSlotsConfig=new f.Task(this,{task:async([e])=>{if(!e)return this._slotsConfig;if(e!==this._itemTypeLoaded){this._itemTypeLoaded=e;let t=await i.t(e);return this._slotsConfig=t??[],this._slotsConfig}return this._slotsConfig},args:()=>[this.itemType,this.language]}),this._slotsConfig=[],this.slotConfiguration={},this.slotContents=[],this.contentLanguage=`en`,this.disabled=!1,this.grows=!1,this.menu=`default`,this.hasLabel=!1,this.selects=`multiple`,this.search=`auto`,this.icons=`menu-only`,this.datasetsDataFields=[],this.placement=`bottom-start`,this.slotMenuPlacement=`bottom-end`,this.hideClear=!1,this._hasExtraEmptySelects=!1,this._currentSlotContents=[],this._store=new o.n,this._changedSlotContents=(e,t=[])=>{let n=new CustomEvent(`luzmo-slot-contents-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContents:e,linkedDatasetsIds:t}});return this.dispatchEvent(n),n},new d.ContextProvider(this,{context:r.n,initialValue:this._store})}willUpdate(e){super.willUpdate(e),e.has(`slotContents`)&&(this._currentSlotContents=structuredClone(this.slotContents??[]),this._store?.setContents(this._currentSlotContents??[],this.slotName))}_onSlotMenuChanges(e){e.preventDefault(),e.stopPropagation(),(this.slotContents?.length??0)===(e.detail.slotContents?.length??0)?(this._currentSlotContents=structuredClone(e.detail.slotContents??[]),this.slotContents=structuredClone(e.detail.slotContents??[]),this._store?.setContents(this._currentSlotContents??[],this.slotName),this._changedSlotContents(this._currentSlotContents,e.detail.linkedDatasetsIds??[])):(this.slotContents=e.detail.slotContents??[],this._store?.setContents(this.slotContents??[],this.slotName),this._changedSlotContents(this.slotContents,e.detail.linkedDatasetsIds??[]))}_setSlotContentAtIndex(e,t){let n=e.detail?.dataFields??[],r=n.length===0;t>=this._currentSlotContents.length&&this._removeEmptySelect();for(let e=this._currentSlotContents.length;e<=t;e++)this._currentSlotContents[e]||this._currentSlotContents.push({});if(n.length>0){let e=n[0],r=h(e),i=this._currentSlotContents[t],o=g(i),s=i?.level,c=e.level;if(r&&(r!==o||s!==c)){let n=typeof e.level==`number`;this._currentSlotContents[t]=a.n(e,n)}}else r&&this._currentSlotContents.splice(t,1);this.slotContents=structuredClone(this._currentSlotContents.filter(e=>!!g(e))),this._changedSlotContents(this.slotContents)}_setSlotContents(e){let t=e.detail.dataFields??[];this.slotConfiguration?.canAcceptMultipleDataFields&&t.length>1||(t=t.slice(0,1));let n=this._getFilteredDatasetsDataFields(),r=t.map(e=>{let t=a.n(e,typeof e.level==`number`),r=this._getSelectValueForSlotContent(t,n);if(r)return{selectionValue:r,slotContent:t}}).filter(e=>!!e),i=new Set(r.map(e=>e.selectionValue));this._currentSlotContents=this._currentSlotContents?.filter(e=>{let t=this._getSelectValueForSlotContent(e,n);return t?i.has(t):!1})??[],r.forEach(({selectionValue:e,slotContent:t})=>{let r=this._currentSlotContents.findIndex(t=>this._getSelectValueForSlotContent(t,n)===e);if(r!==-1){this._currentSlotContents[r]=t;return}this._currentSlotContents.push(t)}),this.slotContents=structuredClone(this._currentSlotContents),this._changedSlotContents(this._currentSlotContents)}_renderFieldLabel(){return c.html`<luzmo-field-label for="data-fields" size=${this.size}
21
+ >${this.label??(0,u.msg)(`Select...`)}
22
+ </luzmo-field-label>`}_removeEmptySelect(){this._hasExtraEmptySelects=!1}_getAcceptableDataFields(){let e=[],t=this.slotConfiguration?.acceptableDataFieldTypes?.length?this.slotConfiguration.acceptableDataFieldTypes:a.t;return this.datasetsDataFields.forEach(n=>{(n.columns?.filter(e=>t.includes(e.type??``))??[]).forEach(t=>{e.push({datasetId:n.id,type:t.type,name:t.name,columnId:t.id,description:t.description,subtype:t.subtype,format:t.format,lowestLevel:t.lowestLevel,duration_levels:t.duration_levels,duration_format:t.duration_format,expression:t.expression,hierarchyLevels:t.hierarchyLevels,currency:t.currency})}),this.slotConfiguration?.canAcceptFormula&&(n.formulas??[]).forEach(t=>{t.type&&(this._isAdHocFormula(t)?e.push({datasetId:n.id,type:t.type,name:t.label??{en:`Ad-hoc formula`},formula:t.formula,subtype:t.subtype??void 0,format:t.format}):e.push({datasetId:n.id,type:t.type,name:t.name,formulaId:t.id,description:t.description,subtype:t.subtype,format:t.format,lowestLevel:t.lowestLevel,duration_levels:t.duration_levels,duration_format:t.duration_format,expression:t.expression,currency:t.currency}))})}),e}_getFirstAvailableDataField(){let e=this._getAcceptableDataFields(),t=new Set(this._currentSlotContents.map(e=>e.columnId??e.formulaId??e.column??e.formula));return e.find(e=>{let n=h(e);return n?!t.has(n):!1})}_hasAvailableDataFields(){return!!this._getFirstAvailableDataField()}_addDataField(){let e=this._getFirstAvailableDataField();if(e){let t=a.n(e,!1);this._currentSlotContents.push(t),this.slotContents=structuredClone(this._currentSlotContents),this._changedSlotContents(this.slotContents)}else this._hasExtraEmptySelects=!0}_renderExtraDataFieldButton(){return this._hasAvailableDataFields()?c.html`<div class="extra-data-field-button-container">
23
+ <luzmo-action-button
24
+ size="xs"
25
+ .label=${(0,u.msg)(`Add data field`,{desc:`Aria label for add data field button`})}
26
+ @click=${this._addDataField}
27
+ ?disabled=${this._hasExtraEmptySelects||this.disabled}
28
+ >
29
+ ${(0,s.luzmoIcon)(s.luzmoPlus)}
30
+ </luzmo-action-button>
31
+ <luzmo-tooltip self-managed placement="top" size=${this.size}>
32
+ Add data field
33
+ </luzmo-tooltip>
34
+ </div>`:c.html`
35
+
36
+ `}_renderSingleSelect(){let e=this._renderFieldLabel(),t=this._currentSlotContents.length>0;if(!t&&!this._hasExtraEmptySelects)return c.html`<div class="select-container">
37
+ ${this.hasLabel?e:``} ${this._renderSelectMenu(0)}
38
+ </div>`;let n=this._currentSlotContents.map((t,n)=>c.html` <div class="select-container">
39
+ ${this.hasLabel&&n===0?e:``}
40
+ <div class="select-controls">
41
+ ${this._renderSelectMenu(n)}
42
+ ${this.slotContents?.length>0&&!this.hideConfiguration?c.html`<div class="controls">
43
+ <luzmo-action-button
44
+ .size=${this.size}
45
+ quiet
46
+ id=${`trigger-${n}`}
47
+ .label=${(0,u.msg)(`Edit`,{desc:`Edit action label`})}
48
+ ?disabled=${this.disabled}
49
+ >
50
+ ${(0,s.luzmoIcon)(s.luzmoCog)}
51
+ <luzmo-tooltip
52
+ self-managed
53
+ placement="top"
54
+ size=${this.size}
55
+ >
56
+ edit
57
+ </luzmo-tooltip>
58
+ </luzmo-action-button>
59
+ </div>`:``}
60
+ ${this.slotContents?.length>0?c.html`<luzmo-overlay
61
+ trigger=${`trigger-${n}@click`}
62
+ .placement=${this.slotMenuPlacement}
63
+ >
64
+ <luzmo-slot-menu
65
+ language=${this.language}
66
+ content-language=${this.contentLanguage}
67
+ slot-type=${this.slotConfiguration?.type}
68
+ slot-name=${(0,p.ifDefined)(this.slotName)}
69
+ item-type=${(0,p.ifDefined)(this.itemType)}
70
+ api-url=${(0,p.ifDefined)(this.apiUrl)}
71
+ auth-key=${(0,p.ifDefined)(this.authKey)}
72
+ auth-token=${(0,p.ifDefined)(this.authToken)}
73
+ .areGrandTotalsEnabled=${this.slotConfiguration?.options?.areGrandTotalsEnabled}
74
+ .areDatetimeOptionsEnabled=${this.slotConfiguration?.options?.areDatetimeOptionsEnabled}
75
+ .isBinningDisabled=${this.slotConfiguration?.options?.isBinningDisabled}
76
+ .isAggregationDisabled=${this.slotConfiguration?.options?.isAggregationDisabled}
77
+ .isCumulativeSumEnabled=${this.slotConfiguration?.options?.isCumulativeSumEnabled}
78
+ .slotIndex=${n}
79
+ variant="popup"
80
+ .size=${this.size}
81
+ @luzmo-slot-contents-changed=${this._onSlotMenuChanges}
82
+ ></luzmo-slot-menu>
83
+ </luzmo-overlay>`:``}
84
+ </div>
85
+ </div>`);return this._hasExtraEmptySelects&&n.push(c.html`<div class="select-container">
86
+ ${this._renderSelectMenu(this._currentSlotContents.length)}
87
+ </div>`),t&&this.slotConfiguration?.canAcceptMultipleDataFields&&n.push(this._renderExtraDataFieldButton()),n}_renderMultipleSelect(){let e=this._renderFieldLabel();return c.html`<div class="select-container">
88
+ ${this.hasLabel?e:``}
89
+
90
+ <div class="select-controls">
91
+ ${this._renderSelectMenu()}
92
+ ${this.slotContents?.length>0&&!this.hideConfiguration?c.html`<div class="controls">
93
+ <luzmo-action-button
94
+ .size=${this.size}
95
+ quiet
96
+ id="trigger"
97
+ .label=${(0,u.msg)(`Edit`,{desc:`Edit action label`})}
98
+ ?disabled=${this.disabled}
99
+ >
100
+ ${(0,s.luzmoIcon)(s.luzmoCog)}
101
+ <luzmo-tooltip self-managed placement="top" size=${this.size}>
102
+ edit
103
+ </luzmo-tooltip>
104
+ </luzmo-action-button>
105
+ </div>`:``}
106
+ ${this.slotContents?.length>0?c.html`<luzmo-overlay
107
+ trigger="trigger@click"
108
+ .placement=${this.slotMenuPlacement}
109
+ >
110
+ <luzmo-slot-menu
111
+ language=${this.language}
112
+ content-language=${this.contentLanguage}
113
+ slot-type=${this.slotConfiguration?.type}
114
+ slot-name=${(0,p.ifDefined)(this.slotName)}
115
+ item-type=${(0,p.ifDefined)(this.itemType)}
116
+ api-url=${(0,p.ifDefined)(this.apiUrl)}
117
+ auth-key=${(0,p.ifDefined)(this.authKey)}
118
+ auth-token=${(0,p.ifDefined)(this.authToken)}
119
+ .areGrandTotalsEnabled=${this.slotConfiguration?.options?.areGrandTotalsEnabled}
120
+ .areDatetimeOptionsEnabled=${this.slotConfiguration?.options?.areDatetimeOptionsEnabled}
121
+ .isBinningDisabled=${this.slotConfiguration?.options?.isBinningDisabled}
122
+ .isAggregationDisabled=${this.slotConfiguration?.options?.isAggregationDisabled}
123
+ .isCumulativeSumEnabled=${this.slotConfiguration?.options?.isCumulativeSumEnabled}
124
+ variant="popup"
125
+ .size=${this.size}
126
+ @luzmo-slot-contents-changed=${this._onSlotMenuChanges}
127
+ ></luzmo-slot-menu>
128
+ </luzmo-overlay>`:``}
129
+ </div>
130
+ </div>`}_getSelectValueForSlotContent(e,t){let n=g(e);if(!n)return;let r=e.columnId,i=e.level;if(!r||typeof i!=`number`||Number.isNaN(i))return n;let a;for(let e of t)if(a=e.columns?.find(e=>e.id===r),a)break;return a&&(Array.isArray(a.hierarchyLevels)&&a.hierarchyLevels.length>2&&a.hierarchy_enabled===!0&&i>=1||(a.type===`datetime`||a.type===`array[datetime]`)&&typeof a.lowestLevel==`number`&&i!==a.lowestLevel)?v(r,i):n}_getFilteredDatasetsDataFields(){let e=this.slotConfiguration?.acceptableDataFieldTypes?.length?this.slotConfiguration.acceptableDataFieldTypes:a.t;return this.datasetsDataFields.map(t=>({...t,columns:t.columns?.filter(t=>e.includes(t.type??``))??[],formulas:this.slotConfiguration?.canAcceptFormula?t.formulas??[]:[]}))}_renderSelectMenu(e){let t=[],n=this._getFilteredDatasetsDataFields();if(e!==void 0&&e>=this._currentSlotContents.length)t=[];else if(t=this._currentSlotContents.map(e=>this._getSelectValueForSlotContent(e,n)).filter(e=>typeof e==`string`&&e.length>0),this.selects===`single`&&t?.length>0){let n=t[e??0];t=n?[n]:[]}return c.html`<luzmo-data-fields-select
131
+ .language=${this.language}
132
+ .contentLanguage=${this.contentLanguage}
133
+ .size=${this.size}
134
+ .icons=${this.icons}
135
+ .placeholder=${this.placeholder??(0,u.msg)(`Select...`)}
136
+ .placement=${this.placement}
137
+ .search=${this.search}
138
+ ?disabled=${this.disabled}
139
+ allow-empty
140
+ .datasetsDataFields=${n}
141
+ .value=${t}
142
+ ?clearable=${!this.hideClear}
143
+ .selects=${this.selects===`multiple`&&this.slotConfiguration?.canAcceptMultipleDataFields?`multiple`:`single`}
144
+ data-index=${e??0}
145
+ @luzmo-data-fields-selected=${this._handleSelectChange}
146
+ >
147
+ </luzmo-data-fields-select>`}_handleSelectChange(e){if(this.selects===`single`){let t=e.currentTarget?.dataset?.index,n=t?Number.parseInt(t,10):0;this._setSlotContentAtIndex(e,Number.isNaN(n)?0:n)}else this._setSlotContents(e)}_itemSlotPickerMarkup(){return c.html`
148
+ <div class="container">
149
+ ${this.selects===`multiple`?this._renderMultipleSelect():this._renderSingleSelect()}
150
+ </div>
151
+ `}render(){return this._loadSlotsConfig.render({pending:()=>c.html`
152
+ <p>Loading...</p>
153
+ `,complete:e=>{if(this.slotName&&this.itemType&&e){let t=e.find(e=>e.name===this.slotName);t&&(this.slotConfiguration=t)}return this._itemSlotPickerMarkup()},error:e=>c.html`
154
+ <div>
155
+ Could not load item-slot-picker: '${this.slotName}' of chart
156
+ '${this.itemType}': ${e}.
157
+ </div>
158
+ `})}};t.t([(0,l.property)({type:String,attribute:`api-url`,reflect:!0})],y.prototype,`apiUrl`,void 0),t.t([(0,l.property)({type:String,attribute:`auth-key`,reflect:!0})],y.prototype,`authKey`,void 0),t.t([(0,l.property)({type:String,attribute:`auth-token`,reflect:!0})],y.prototype,`authToken`,void 0),t.t([(0,l.property)({type:String,reflect:!0,attribute:`item-type`})],y.prototype,`itemType`,void 0),t.t([(0,l.property)({type:String,reflect:!0,attribute:`slot-name`})],y.prototype,`slotName`,void 0),t.t([(0,l.property)({type:Object})],y.prototype,`slotConfiguration`,void 0),t.t([(0,l.property)({type:Array})],y.prototype,`slotContents`,void 0),t.t([(0,l.property)({type:String,attribute:`content-language`,reflect:!0})],y.prototype,`contentLanguage`,void 0),t.t([(0,l.property)({type:Boolean,attribute:`disabled`,reflect:!0})],y.prototype,`disabled`,void 0),t.t([(0,l.property)({type:Boolean,attribute:`grows`,reflect:!0})],y.prototype,`grows`,void 0),t.t([(0,l.property)({type:String,reflect:!0})],y.prototype,`menu`,void 0),t.t([(0,l.property)({type:Boolean,attribute:`has-label`,reflect:!0})],y.prototype,`hasLabel`,void 0),t.t([(0,l.property)({type:String,reflect:!0})],y.prototype,`label`,void 0),t.t([(0,l.property)({type:String,reflect:!0})],y.prototype,`selects`,void 0),t.t([(0,l.property)({type:String,reflect:!0})],y.prototype,`search`,void 0),t.t([(0,l.property)({type:String,reflect:!0})],y.prototype,`icons`,void 0),t.t([(0,l.property)({type:String,attribute:`placeholder`,reflect:!0})],y.prototype,`placeholder`,void 0),t.t([(0,l.property)({type:Array,reflect:!1})],y.prototype,`datasetsDataFields`,void 0),t.t([(0,l.property)({type:String,reflect:!0})],y.prototype,`placement`,void 0),t.t([(0,l.property)({type:String,reflect:!0,attribute:`slot-menu-placement`})],y.prototype,`slotMenuPlacement`,void 0),t.t([(0,l.property)({type:Boolean,reflect:!0,attribute:`hide-configuration`})],y.prototype,`hideConfiguration`,void 0),t.t([(0,l.property)({type:Boolean,reflect:!0,attribute:`hide-clear`})],y.prototype,`hideClear`,void 0),t.t([(0,l.state)()],y.prototype,`_hasExtraEmptySelects`,void 0),y=t.t([(0,u.localized)()],y),customElements.get(`luzmo-item-slot-picker`)||customElements.define(`luzmo-item-slot-picker`,y),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return y}});
@@ -17,11 +17,14 @@
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 { i as e, n as t } from "./base-DoCXVulO.js";
21
- import { n, t as r } from "./localized-mixin-DoA4mVsP.js";
22
- import { t as i } from "./slots-config-CA1x9W3U.js";
23
- import { a, i as o, r as s, s as c } from "./slot-menu-ZNG92h35.js";
24
- import "./data-fields-select-DF6uZ8No.js";
20
+ import { i as e, n as t } from "./base-B_wdCOxV.js";
21
+ import { t as n } from "./decorate-DyMgX_Uh.js";
22
+ import { t as r } from "./localized-mixin-EpweDrTk.js";
23
+ import { n as i } from "./display-settings-CkkjJjem.js";
24
+ import { t as a } from "./slots-config-BuHluMEl.js";
25
+ import { n as o, t as s } from "./default-acceptable-data-field-types-DFOFWWnT.js";
26
+ import { n as c } from "./slot-menu-Cw5HJ_bk.js";
27
+ import "./data-fields-select-B1pwPYt6.js";
25
28
  import { luzmoCog as l, luzmoIcon as u, luzmoPlus as d } from "@luzmo/icons";
26
29
  import "@luzmo/lucero/overlay";
27
30
  import { html as f, unsafeCSS as p } from "lit";
@@ -61,13 +64,13 @@ var x = ":host{--luzmo-select-inline-size:100%;font-family:var(--luzmo-item-slot
61
64
  if (!e) return this._slotsConfig;
62
65
  if (e !== this._itemTypeLoaded) {
63
66
  this._itemTypeLoaded = e;
64
- let t = await i(e);
67
+ let t = await a(e);
65
68
  return this._slotsConfig = t ?? [], this._slotsConfig;
66
69
  }
67
70
  return this._slotsConfig;
68
71
  },
69
72
  args: () => [this.itemType, this.language]
70
- }), this._slotsConfig = [], this.slotConfiguration = {}, this.slotContents = [], this.contentLanguage = "en", this.disabled = !1, this.grows = !1, this.menu = "default", this.hasLabel = !1, this.selects = "multiple", this.search = "auto", this.icons = "menu-only", this.datasetsDataFields = [], this.placement = "bottom-start", this.slotMenuPlacement = "bottom-end", this.hideClear = !1, this._hasExtraEmptySelects = !1, this._currentSlotContents = [], this._store = new s(), this._changedSlotContents = (e, t = []) => {
73
+ }), this._slotsConfig = [], this.slotConfiguration = {}, this.slotContents = [], this.contentLanguage = "en", this.disabled = !1, this.grows = !1, this.menu = "default", this.hasLabel = !1, this.selects = "multiple", this.search = "auto", this.icons = "menu-only", this.datasetsDataFields = [], this.placement = "bottom-start", this.slotMenuPlacement = "bottom-end", this.hideClear = !1, this._hasExtraEmptySelects = !1, this._currentSlotContents = [], this._store = new c(), this._changedSlotContents = (e, t = []) => {
71
74
  let n = new CustomEvent("luzmo-slot-contents-changed", {
72
75
  bubbles: !0,
73
76
  composed: !0,
@@ -79,7 +82,7 @@ var x = ":host{--luzmo-select-inline-size:100%;font-family:var(--luzmo-item-slot
79
82
  });
80
83
  return this.dispatchEvent(n), n;
81
84
  }, new v(this, {
82
- context: c,
85
+ context: i,
83
86
  initialValue: this._store
84
87
  });
85
88
  }
@@ -94,10 +97,10 @@ var x = ":host{--luzmo-select-inline-size:100%;font-family:var(--luzmo-item-slot
94
97
  t >= this._currentSlotContents.length && this._removeEmptySelect();
95
98
  for (let e = this._currentSlotContents.length; e <= t; e++) this._currentSlotContents[e] || this._currentSlotContents.push({});
96
99
  if (n.length > 0) {
97
- let e = n[0], r = S(e), i = this._currentSlotContents[t], o = C(i), s = i?.level, c = e.level;
98
- if (r && (r !== o || s !== c)) {
100
+ let e = n[0], r = S(e), i = this._currentSlotContents[t], a = C(i), s = i?.level, c = e.level;
101
+ if (r && (r !== a || s !== c)) {
99
102
  let n = typeof e.level == "number";
100
- this._currentSlotContents[t] = a(e, n);
103
+ this._currentSlotContents[t] = o(e, n);
101
104
  }
102
105
  } else r && this._currentSlotContents.splice(t, 1);
103
106
  this.slotContents = structuredClone(this._currentSlotContents.filter((e) => !!C(e))), this._changedSlotContents(this.slotContents);
@@ -106,7 +109,7 @@ var x = ":host{--luzmo-select-inline-size:100%;font-family:var(--luzmo-item-slot
106
109
  let t = e.detail.dataFields ?? [];
107
110
  this.slotConfiguration?.canAcceptMultipleDataFields && t.length > 1 || (t = t.slice(0, 1));
108
111
  let n = this._getFilteredDatasetsDataFields(), r = t.map((e) => {
109
- let t = a(e, typeof e.level == "number"), r = this._getSelectValueForSlotContent(t, n);
112
+ let t = o(e, typeof e.level == "number"), r = this._getSelectValueForSlotContent(t, n);
110
113
  if (r) return {
111
114
  selectionValue: r,
112
115
  slotContent: t
@@ -133,7 +136,7 @@ var x = ":host{--luzmo-select-inline-size:100%;font-family:var(--luzmo-item-slot
133
136
  this._hasExtraEmptySelects = !1;
134
137
  }
135
138
  _getAcceptableDataFields() {
136
- let e = [], t = this.slotConfiguration?.acceptableDataFieldTypes?.length ? this.slotConfiguration.acceptableDataFieldTypes : o;
139
+ let e = [], t = this.slotConfiguration?.acceptableDataFieldTypes?.length ? this.slotConfiguration.acceptableDataFieldTypes : s;
137
140
  return this.datasetsDataFields.forEach((n) => {
138
141
  (n.columns?.filter((e) => t.includes(e.type ?? "")) ?? []).forEach((t) => {
139
142
  e.push({
@@ -189,7 +192,7 @@ var x = ":host{--luzmo-select-inline-size:100%;font-family:var(--luzmo-item-slot
189
192
  _addDataField() {
190
193
  let e = this._getFirstAvailableDataField();
191
194
  if (e) {
192
- let t = a(e, !1);
195
+ let t = o(e, !1);
193
196
  this._currentSlotContents.push(t), this.slotContents = structuredClone(this._currentSlotContents), this._changedSlotContents(this.slotContents);
194
197
  } else this._hasExtraEmptySelects = !0;
195
198
  }
@@ -324,7 +327,7 @@ var x = ":host{--luzmo-select-inline-size:100%;font-family:var(--luzmo-item-slot
324
327
  return a && (Array.isArray(a.hierarchyLevels) && a.hierarchyLevels.length > 2 && a.hierarchy_enabled === !0 && i >= 1 || (a.type === "datetime" || a.type === "array[datetime]") && typeof a.lowestLevel == "number" && i !== a.lowestLevel) ? T(r, i) : n;
325
328
  }
326
329
  _getFilteredDatasetsDataFields() {
327
- let e = this.slotConfiguration?.acceptableDataFieldTypes?.length ? this.slotConfiguration.acceptableDataFieldTypes : o;
330
+ let e = this.slotConfiguration?.acceptableDataFieldTypes?.length ? this.slotConfiguration.acceptableDataFieldTypes : s;
328
331
  return this.datasetsDataFields.map((t) => ({
329
332
  ...t,
330
333
  columns: t.columns?.filter((t) => e.includes(t.type ?? "")) ?? [],
@@ -17,4 +17,4 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../item-slot-picker-panel-CxJeJTSe.cjs");Object.defineProperty(exports,"LuzmoItemSlotPickerPanel",{enumerable:!0,get:function(){return e.t}});
20
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../item-slot-picker-panel-BUyp6Hbg.cjs");Object.defineProperty(exports,"LuzmoItemSlotPickerPanel",{enumerable:!0,get:function(){return e.t}});
@@ -24,5 +24,5 @@
24
24
  e.setAttribute("data-luzmo-vars", ""), e.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: color-mix(in oklch, var(--luzmo-border-color-full), black 25%);--luzmo-border-color-full-down: color-mix(in oklch, var(--luzmo-border-color-full), black 45%);--luzmo-border-color-full-focus: color-mix(in oklch, var(--luzmo-border-color-full), black 25%);--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: color-mix( in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 5%), black 1.5% );--luzmo-background-color-down: color-mix(in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 7%), black 1%);--luzmo-background-color-focus: color-mix( in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 5%), black 1.5% );--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: color-mix(in oklch, var(--luzmo-background-color-highlight), black 10%);--luzmo-background-color-highlight-down: color-mix(in oklch, var(--luzmo-background-color-highlight), black 20%);--luzmo-background-color-highlight-focus: color-mix(in oklch, var(--luzmo-background-color-highlight), black 10%);--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: color-mix(in oklch, var(--luzmo-font-color), black 8%);--luzmo-font-color-down: color-mix(in oklch, var(--luzmo-font-color), black 20%);--luzmo-font-color-focus: color-mix(in oklch, var(--luzmo-font-color), black 8%);--luzmo-scrollbar-size: 6px;--luzmo-scrollbar-width: thin;--luzmo-scrollbar-track-background: transparent;--luzmo-scrollbar-track-border-radius: var(--luzmo-border-radius-s);--luzmo-scrollbar-thumb-background: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-scrollbar-thumb-border-radius: var(--luzmo-border-radius-s);--luzmo-scrollbar-thumb-hover-background: rgba(var(--luzmo-border-color-rgb), 0.4);--luzmo-primary: #4434ff;--luzmo-primary-hover: color-mix(in oklch, var(--luzmo-primary), black 8%);--luzmo-primary-down: color-mix(in oklch, var(--luzmo-primary), black 20%);--luzmo-primary-focus: color-mix(in oklch, var(--luzmo-primary), black 8%);--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: color-mix(in oklch, var(--luzmo-secondary), black 8%);--luzmo-secondary-down: color-mix(in oklch, var(--luzmo-secondary), black 20%);--luzmo-secondary-focus: color-mix(in oklch, var(--luzmo-secondary), black 8%);--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: color-mix(in oklch, var(--luzmo-negative-color), black 8%);--luzmo-negative-color-down: color-mix(in oklch, var(--luzmo-negative-color), black 20%);--luzmo-negative-color-focus: color-mix(in oklch, var(--luzmo-negative-color), black 8%);--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: color-mix(in oklch, var(--luzmo-positive-color), black 8%);--luzmo-positive-color-down: color-mix(in oklch, var(--luzmo-positive-color), black 20%);--luzmo-positive-color-focus: color-mix(in oklch, var(--luzmo-positive-color), black 8%);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: color-mix(in oklch, var(--luzmo-selected-color), black 25%);--luzmo-selected-color-down: color-mix(in oklch, var(--luzmo-selected-color), black 45%);--luzmo-selected-color-focus: color-mix(in oklch, var(--luzmo-selected-color), black 25%);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: color-mix(in oklch, var(--luzmo-selected-color-hard), black 25%);--luzmo-selected-color-hard-down: color-mix(in oklch, var(--luzmo-selected-color-hard), black 45%);--luzmo-selected-color-hard-focus: color-mix(in oklch, var(--luzmo-selected-color-hard), black 25%);--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(e);
25
25
  }
26
26
  })();
27
- import { t as e } from "../item-slot-picker-panel-pGVeLd1V.js";
27
+ import { t as e } from "../item-slot-picker-panel-CG0NyMDX.js";
28
28
  export { e as LuzmoItemSlotPickerPanel };
@@ -0,0 +1,81 @@
1
+ /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
+ *
3
+ * Copyright © 2026 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
+ const e=require("./base-kQ6cjcIZ.cjs"),t=require("./decorate-DCJt-2rt.cjs"),n=require("./localized-mixin-CiBWThrZ.cjs"),r=require("./data-broker-DWEXs6-2.cjs"),i=require("./type-check-BehV9ZL1.cjs"),a=require("./localize-D3i4Epy_.cjs"),o=require("./slots-config-DVH0lz6t.cjs"),s=require("./slot-labels.config-DKnxOncr.cjs");require("./item-slot-picker-CvbXFh6Z.cjs");let c=require("lit"),l=require("lit/decorators.js"),u=require("@lit/localize");require("@luzmo/lucero/select");let d=require("@lit/task");require("@luzmo/lucero/field-label");let f=require("lit/directives/if-defined.js");var p=`:host{font-size:var(--luzmo-item-slot-picker-panel-font-size,var(--luzmo-font-size));font-family:var(--luzmo-font-family,sans-serif);color:var(--luzmo-font-color,inherit);display:block}:host([size=s]){font-size:var(--luzmo-item-slot-picker-panel-font-size-s,var(--luzmo-font-size-s))}:host([size=l]){font-size:var(--luzmo-item-slot-picker-panel-font-size-l,var(--luzmo-font-size-l))}:host([size=xl]){font-size:var(--luzmo-item-slot-picker-panel-font-size-xl,var(--luzmo-font-size-xl))}.container{flex-direction:column;align-items:flex-start;display:flex}.dataset-picker{align-self:stretch;align-items:flex-start;gap:var(--luzmo-item-slot-picker-panel-dataset-picker-gap,var(--luzmo-spacing-2));border-bottom-style:solid;border-bottom-width:var(--luzmo-item-slot-picker-panel-dataset-picker-border-width,1px);border-bottom-color:var(--luzmo-item-slot-picker-panel-dataset-picker-border-color,var(--luzmo-border-color));flex-direction:column;flex-shrink:0;margin-block-end:var(--luzmo-item-slot-picker-panel-dataset-picker-margin-block-end,var(--luzmo-spacing-4));padding-block-end:var(--luzmo-item-slot-picker-panel-dataset-picker-padding-block-end,var(--luzmo-spacing-4));display:flex}.slots-panel{gap:var(--luzmo-item-slot-picker-panel-gap,var(--luzmo-spacing-4));flex-direction:column;display:flex}.slot-container{gap:var(--luzmo-item-slot-picker-panel-slot-gap,var(--luzmo-spacing-2));flex-direction:column;display:flex}luzmo-field-label{margin:0}luzmo-item-slot-picker{display:block}:host([grows]) .container{align-items:stretch;width:100%}:host([grows]) .dataset-picker{align-items:stretch}:host([grows]) .dataset-picker luzmo-select{width:100%}`,m=50,h=class extends n.t(e.n(e.i,{validSizes:[`s`,`m`,`l`,`xl`],noDefaultSize:!0})){constructor(...e){super(...e),this._loadSlotsConfig=new d.Task(this,{task:async([e])=>{if(e&&e!==this._itemTypeLoaded){this._itemTypeLoaded=e;let t=await o.t(e);return this._slotsConfig=t??[],this._slotsConfig}return this._slotsConfig},args:()=>[this.itemType,this.language]}),this._slotsConfig=[],this._datasetListItems=[],this._datasetListRetrieving=!1,this._datasetListPending=!1,this._datasetNamesFetchAttempted=!1,this._hasMoreDatasets=!0,this._fetchedDatasetsDataFields=[],this._failedDatasetIds=new Set,this._loadDataFieldsTask=new d.Task(this,{args:()=>[this._currentDatasetId,this.apiUrl,this.authKey,this.authToken,this.datasetsDataFields.length],task:async([e,t,n,a,o])=>{if(o>0||!e)return null;if(!i.s(e))return console.warn(`[LuzmoItemSlotPickerPanel] Invalid dataset ID provided (not a valid UUID): ${e}`),this._failedDatasetIds.add(e),null;if(this._failedDatasetIds.has(e))return null;let s=this._fetchedDatasetsDataFields.find(t=>t.id===e);if(s&&s.columns&&s.columns.length>0)return s;try{let t=await r.t.fetchDatasetsWithColumnsAndFormulas([e]);if(t.length===0)return this._failedDatasetIds.add(e),null;let n=t[0],i=this._fetchedDatasetsDataFields.findIndex(t=>t.id===e);return i===-1?this._fetchedDatasetsDataFields=[...this._fetchedDatasetsDataFields,n]:this._fetchedDatasetsDataFields[i]=n,n}catch(t){return console.warn(`Failed to fetch dataset data fields:`,t),this._failedDatasetIds.add(e),null}}}),this.contentLanguage=`en`,this.slotsContents=[],this.selects=`multiple`,this.dataFieldsSearch=`auto`,this.datasetSearch=`auto`,this.icons=`menu-only`,this.datasetsDataFields=[],this.datasetIds=[],this.datasetPicker=!1,this.apiUrl=`https://api.luzmo.com`,this.placement=`bottom-start`,this.slotMenuPlacement=`bottom-end`,this.constraintMode=`auto`,this.grows=!1,this._currentSlotsContents=[],this._createSlotChangeHandler=e=>t=>{t.preventDefault(),t.stopPropagation();let n=t.detail.slotContents??[],r=this._applySlotConstraints(e,n);r!==null&&(this._currentSlotsContents=r,this.slotsContents=structuredClone(r),this.dispatchEvent(new CustomEvent(`luzmo-slots-contents-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{slotsContents:r}})))}}static{this.styles=(0,c.unsafeCSS)(p)}get _availableDatasets(){return this.datasetsDataFields.length>0?this.datasetsDataFields:this.datasetIds.length>0?this.datasetIds.map(e=>{let t=this._datasetListItems.find(t=>t.id===e);return t?{id:t.id,name:t.name,description:t.description}:{id:e,name:{en:e}}}):this._datasetListItems.length>0?this._datasetListItems.map(e=>({id:e.id,name:e.name,description:e.description})):[]}get _currentDatasetsDataFields(){if(this.datasetsDataFields.length>0){if(!this._currentDatasetId)return this.datasetsDataFields;let e=this.datasetsDataFields.find(e=>e.id===this._currentDatasetId);return e?[e]:this.datasetsDataFields}let e=this._loadDataFieldsTask.value;if(e)return[{id:e.id,name:e.name,description:e.description,columns:e.columns??[],formulas:e.formulas??[]}];if(this._fetchedDatasetsDataFields.length>0&&this._currentDatasetId){let e=this._fetchedDatasetsDataFields.find(e=>e.id===this._currentDatasetId);if(e)return[{id:e.id,name:e.name,description:e.description,columns:e.columns??[],formulas:e.formulas??[]}]}return[]}get _shouldFetchDatasetList(){return this.datasetPicker&&this.datasetsDataFields.length===0}_areDatasetsLinked(e,t){return e===t}_getUsedDatasetIds(){let e=new Set;for(let t of this._currentSlotsContents)for(let n of t.content)n.datasetId&&e.add(n.datasetId);return[...e]}willUpdate(e){super.willUpdate(e),e.has(`slotsContents`)&&(this._currentSlotsContents=structuredClone(this.slotsContents??[]));let t=e.has(`selectedDatasetId`),n=e.has(`datasetsDataFields`),i=e.has(`datasetIds`),a=e.has(`datasetPicker`),o=e.has(`authKey`),s=e.has(`authToken`),c=e.has(`apiUrl`);(i||o||s||c)&&(this._datasetListItems=[],this._hasMoreDatasets=!0,this._datasetNamesFetchAttempted=!1,this._fetchedDatasetsDataFields=[],this._failedDatasetIds.clear(),r.t.configure({apiUrl:this.apiUrl,authKey:this.authKey??``,authToken:this.authToken??``})),n&&this.datasetsDataFields.length>0&&(this._datasetListItems=[],this._hasMoreDatasets=!0,this._fetchedDatasetsDataFields=[],this._failedDatasetIds.clear()),(t||n||i)&&this._updateCurrentDatasetId(),(i||o||s||c||a)&&this.datasetIds.length>0&&this.datasetPicker&&this.datasetsDataFields.length===0&&this._datasetListItems.length===0&&this._fetchDatasetNamesForPicker()}_updateCurrentDatasetId(){let e=this._availableDatasets;if(this.selectedDatasetId&&e.some(e=>e.id===this.selectedDatasetId)){this._currentDatasetId=this.selectedDatasetId;return}if(this.selectedDatasetId&&this.datasetIds.includes(this.selectedDatasetId)){this._currentDatasetId=this.selectedDatasetId;return}this._currentDatasetId=e.length>0?e[0].id:void 0}async _fetchDatasetNamesForPicker(){if(this.datasetIds.length!==0){this._datasetListPending=!0;try{let e=await r.t.fetchDatasetNames(this.datasetIds);this._datasetListItems=e}catch(e){console.warn(`Failed to fetch dataset names:`,e)}finally{this._datasetListPending=!1,this._datasetNamesFetchAttempted=!0}}}async _loadMoreDatasets(e){if(!(this._datasetListRetrieving||!this._hasMoreDatasets)){this._datasetListRetrieving=!0,e&&(e.retrieving=!0);try{let e=this._datasetListItems.length,t=await r.t.fetchAllDatasets({offset:e,limit:m});this._datasetListItems=[...this._datasetListItems,...t.data],this._hasMoreDatasets=e+m<(t.pagination?.total??0),!this._currentDatasetId&&this._datasetListItems.length>0&&this._updateCurrentDatasetId()}catch(e){console.warn(`Failed to load dataset list:`,e),this._hasMoreDatasets=!1}finally{this._datasetListRetrieving=!1,e&&(e.retrieving=!1)}}}_handlePickerScrolled(e){if(this.datasetIds.length>0)return;let t=e.target,{last:n}=e.detail;n>=this._datasetListItems.length-10&&this._hasMoreDatasets&&this._loadMoreDatasets(t)}async _handlePickerOpened(e){let t=e.target;if(this._datasetListItems.length===0&&this._shouldFetchDatasetList&&this.datasetIds.length===0&&this._hasMoreDatasets){t.pending=!0;try{await this._loadMoreDatasets(t)}finally{t.pending=!1}}}_handleDatasetChange(e){let t=e.detail?.value?.[0];if(!t||t===this._currentDatasetId)return;let n=this._getUsedDatasetIds(),r=this._currentSlotsContents.some(e=>e.content.length>0),i=n.every(e=>this._areDatasetsLinked(e,t));if(r&&!i){if(this.constraintMode===`event-only`){this.dispatchEvent(new CustomEvent(`luzmo-dataset-constraint-triggered`,{bubbles:!0,composed:!0,detail:{previousDatasetId:this._currentDatasetId,newDatasetId:t,currentSlotsContents:structuredClone(this._currentSlotsContents),wouldClearSlots:!0}}));return}this._currentSlotsContents=[],this.slotsContents=[],this.dispatchEvent(new CustomEvent(`luzmo-slots-contents-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{slotsContents:[]}}))}this._currentDatasetId=t,this.dispatchEvent(new CustomEvent(`luzmo-dataset-changed`,{bubbles:!0,composed:!0,detail:{datasetId:t}}))}_getSlotContents(e){return this._currentSlotsContents?.find(t=>t.name===e)?.content??[]}_applySlotConstraints(e,t){let n=this.slotsConfiguration??this._slotsConfig,r=structuredClone(this._currentSlotsContents),i=structuredClone(this._currentSlotsContents),a=i.findIndex(t=>t.name===e);a===-1?i.push({name:e,content:t}):i[a].content=t;let o=[];for(let r of n){if(r.keepOnlyFirstWhenOtherSlotFilled?.includes(e)&&t.length>0){let t=i.findIndex(e=>e.name===r.name);t!==-1&&i[t].content.length>1&&(o.push({type:`keepOnlyFirstWhenOtherSlotFilled`,affectedSlotName:r.name,triggeredBySlotName:e}),i[t].content=[i[t].content[0]])}if(r.clearWhenOtherSlotHasMultipleItems?.includes(e)&&t.length>1){let t=i.findIndex(e=>e.name===r.name);t!==-1&&i[t].content.length>0&&(o.push({type:`clearWhenOtherSlotHasMultipleItems`,affectedSlotName:r.name,triggeredBySlotName:e}),i[t].content=[])}}if(this.constraintMode===`event-only`&&o.length>0){let n={triggerSlotName:e,proposedTriggerContents:t,originalSlotsContents:r,proposedSlotsContents:i,constraints:o};return this.dispatchEvent(new CustomEvent(`luzmo-slot-constraint-triggered`,{detail:n,bubbles:!0,composed:!0})),null}return i}_getTranslatedLabel(e){let t=(typeof e.label==`string`?e.label:e.label?a.t(e.label,this.language):void 0)??e.name;return s.t[t]?s.t[t]():t}_renderDatasetPicker(){if(!this.datasetPicker)return c.nothing;let e=this._availableDatasets,t=e.length>1,n=this.datasetIds.length>0,r=this._shouldFetchDatasetList;if(!t&&!n&&!r)return c.nothing;let i=this._datasetListPending||this.datasetIds.length>0&&this._datasetListItems.length===0&&this.datasetsDataFields.length===0&&!this._datasetNamesFetchAttempted,o=i?[]:e.map(e=>({value:e.id,label:a.t(e.name,this.contentLanguage)||e.id})),s=i?[]:this._currentDatasetId?[this._currentDatasetId]:[],l=i?(0,u.msg)(`Loading datasets...`):(0,u.msg)(`Select dataset...`);return c.html`
21
+ <div class="dataset-picker" part="dataset-picker">
22
+ <luzmo-field-label part="dataset-field-label" size=${this.size}>
23
+ ${this.datasetPickerLabel??(0,u.msg)(`Dataset`)}
24
+ </luzmo-field-label>
25
+ <luzmo-select
26
+ selects="single"
27
+ variant="highlight"
28
+ search=${(0,f.ifDefined)(this.datasetSearch)}
29
+ placement=${this.placement}
30
+ .size=${this.size}
31
+ .options=${o}
32
+ .value=${s}
33
+ .label=${l}
34
+ ?pending=${i}
35
+ @change=${this._handleDatasetChange}
36
+ @luzmo-opened=${this._handlePickerOpened}
37
+ @luzmo-scrolled=${this._handlePickerScrolled}
38
+ ></luzmo-select>
39
+ </div>
40
+ `}_renderSlot(e){let t=this._getSlotContents(e.name),n=this._createSlotChangeHandler(e.name),r=this._getTranslatedLabel(e);return c.html`
41
+ <div class="slot-container" part="slot-container">
42
+ <luzmo-field-label part="field-label" size=${this.size}>
43
+ ${r}${e.isRequired?` *`:``}
44
+ </luzmo-field-label>
45
+ <luzmo-item-slot-picker
46
+ part="item-slot-picker"
47
+ item-type=${(0,f.ifDefined)(this.itemType)}
48
+ slot-name=${e.name}
49
+ language=${this.language}
50
+ content-language=${this.contentLanguage}
51
+ api-url=${(0,f.ifDefined)(this.apiUrl)}
52
+ auth-key=${(0,f.ifDefined)(this.authKey)}
53
+ auth-token=${(0,f.ifDefined)(this.authToken)}
54
+ size=${this.size}
55
+ selects=${this.selects}
56
+ search=${(0,f.ifDefined)(this.dataFieldsSearch)}
57
+ icons=${(0,f.ifDefined)(this.icons)}
58
+ placement=${this.placement}
59
+ slot-menu-placement=${this.slotMenuPlacement}
60
+ ?grows=${this.grows}
61
+ aria-required=${e.isRequired?`true`:c.nothing}
62
+ .slotConfiguration=${e}
63
+ .slotContents=${t}
64
+ .datasetsDataFields=${this._currentDatasetsDataFields}
65
+ @luzmo-slot-contents-changed=${n}
66
+ ></luzmo-item-slot-picker>
67
+ </div>
68
+ `}_renderSlots(e){return c.html`
69
+ <div class="slots-panel" part="slots-panel">
70
+ ${e.map(e=>this._renderSlot(e))}
71
+ </div>
72
+ `}_renderContent(e){return c.html`
73
+ <div class="container" part="container">
74
+ ${this._renderDatasetPicker()}
75
+ ${this._renderSlots(e)}
76
+ </div>
77
+ `}render(){return this.slotsConfiguration&&this.slotsConfiguration.length>0?this._renderContent(this.slotsConfiguration):this._loadSlotsConfig.render({pending:()=>c.html`
78
+ <p role="status">Loading...</p>
79
+ `,complete:e=>!e||e.length===0?c.html`<p>No slots configuration found for ${this.itemType}</p>`:this._renderContent(e),error:e=>c.html`
80
+ <div role="alert">Could not load slots configuration for '${this.itemType}': ${e}.</div>
81
+ `})}};t.t([(0,l.state)()],h.prototype,`_datasetListItems`,void 0),t.t([(0,l.state)()],h.prototype,`_datasetListRetrieving`,void 0),t.t([(0,l.state)()],h.prototype,`_datasetListPending`,void 0),t.t([(0,l.state)()],h.prototype,`_currentDatasetId`,void 0),t.t([(0,l.state)()],h.prototype,`_fetchedDatasetsDataFields`,void 0),t.t([(0,l.property)({type:String,reflect:!0,attribute:`item-type`})],h.prototype,`itemType`,void 0),t.t([(0,l.property)({type:String,attribute:`content-language`,reflect:!0})],h.prototype,`contentLanguage`,void 0),t.t([(0,l.property)({type:Array})],h.prototype,`slotsConfiguration`,void 0),t.t([(0,l.property)({type:Array})],h.prototype,`slotsContents`,void 0),t.t([(0,l.property)({type:String,reflect:!0})],h.prototype,`selects`,void 0),t.t([(0,l.property)({type:String,reflect:!0,attribute:`data-fields-search`})],h.prototype,`dataFieldsSearch`,void 0),t.t([(0,l.property)({type:String,reflect:!0,attribute:`dataset-search`})],h.prototype,`datasetSearch`,void 0),t.t([(0,l.property)({type:String,reflect:!0})],h.prototype,`icons`,void 0),t.t([(0,l.property)({type:Array,reflect:!1})],h.prototype,`datasetsDataFields`,void 0),t.t([(0,l.property)({type:Array,attribute:`dataset-ids`})],h.prototype,`datasetIds`,void 0),t.t([(0,l.property)({type:String,attribute:`selected-dataset-id`,reflect:!0})],h.prototype,`selectedDatasetId`,void 0),t.t([(0,l.property)({type:Boolean,attribute:`dataset-picker`,reflect:!0})],h.prototype,`datasetPicker`,void 0),t.t([(0,l.property)({type:String,attribute:`dataset-picker-label`})],h.prototype,`datasetPickerLabel`,void 0),t.t([(0,l.property)({type:String,attribute:`api-url`})],h.prototype,`apiUrl`,void 0),t.t([(0,l.property)({type:String,attribute:`auth-key`})],h.prototype,`authKey`,void 0),t.t([(0,l.property)({type:String,attribute:`auth-token`})],h.prototype,`authToken`,void 0),t.t([(0,l.property)({type:String,reflect:!0})],h.prototype,`placement`,void 0),t.t([(0,l.property)({type:String,reflect:!0,attribute:`slot-menu-placement`})],h.prototype,`slotMenuPlacement`,void 0),t.t([(0,l.property)({type:String,reflect:!0,attribute:`constraint-mode`})],h.prototype,`constraintMode`,void 0),t.t([(0,l.property)({type:Boolean,reflect:!0})],h.prototype,`grows`,void 0),t.t([(0,l.state)()],h.prototype,`_currentSlotsContents`,void 0),h=t.t([(0,u.localized)()],h),customElements.get(`luzmo-item-slot-picker-panel`)||customElements.define(`luzmo-item-slot-picker-panel`,h),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return h}});
@@ -17,14 +17,15 @@
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 { i as e, n as t } from "./base-DoCXVulO.js";
21
- import { n, t as r } from "./localized-mixin-DoA4mVsP.js";
20
+ import { i as e, n as t } from "./base-B_wdCOxV.js";
21
+ import { t as n } from "./decorate-DyMgX_Uh.js";
22
+ import { t as r } from "./localized-mixin-EpweDrTk.js";
22
23
  import { t as i } from "./data-broker-Bdv5V8Yp.js";
23
24
  import { s as a } from "./type-check-CGREdneG.js";
24
25
  import { t as o } from "./localize-BT7REYBY.js";
25
- import { t as s } from "./slots-config-CA1x9W3U.js";
26
+ import { t as s } from "./slots-config-BuHluMEl.js";
26
27
  import { t as c } from "./slot-labels.config-3nXLBRdr.js";
27
- import "./item-slot-picker-Dd35AuI2.js";
28
+ import "./item-slot-picker-dy5hVID5.js";
28
29
  import { html as l, nothing as u, unsafeCSS as d } from "lit";
29
30
  import { property as f, state as p } from "lit/decorators.js";
30
31
  import { localized as m, msg as h } from "@lit/localize";