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

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 (235) hide show
  1. package/components/ai-chat-message-assistant/index.cjs +1 -1
  2. package/components/ai-chat-message-assistant/index.js +1 -0
  3. package/components/ai-chat-messages-container/index.cjs +1 -1
  4. package/components/ai-chat-messages-container/index.js +2 -2
  5. package/components/ai-interaction-textarea/index.cjs +1 -1
  6. package/components/ai-interaction-textarea/index.js +2 -1
  7. package/components/area-chart-options.config-C7sMAHco.cjs +20 -0
  8. package/components/{area-chart-options.config-u8itidsi.js → area-chart-options.config-_J0sG4NF.js} +26 -14
  9. package/components/{bar-chart-options.config-DIirbAJ0.js → bar-chart-options.config-D1mb5TDl.js} +35 -21
  10. package/components/bar-chart-options.config-DcxEkOT5.cjs +20 -0
  11. package/components/box-plot-options.config-SrrbDEYW.cjs +20 -0
  12. package/components/{box-plot-options.config-BWROiguA.js → box-plot-options.config-xu_i6ms7.js} +88 -52
  13. package/components/{bubble-chart-options.config-4QD8VPhU.js → bubble-chart-options.config-BacgXkJ_.js} +18 -9
  14. package/components/bubble-chart-options.config-Ihn6eVQI.cjs +20 -0
  15. package/components/{bullet-chart-options.config-3bH7uekx.js → bullet-chart-options.config-CDPpX1yc.js} +1 -1
  16. package/components/{bullet-chart-options.config-tWb6Fio-.cjs → bullet-chart-options.config-DfS4Bwds.cjs} +1 -1
  17. package/components/calculate-data-item-icon-CEa82-5u.cjs +20 -0
  18. package/components/calculate-data-item-icon-DjlZwMdO.js +147 -0
  19. package/components/{choropleth-map-options.config-CMxx3ORp.js → choropleth-map-options.config-B_W9-rhe.js} +84 -63
  20. package/components/choropleth-map-options.config-ZW8yoZH2.cjs +20 -0
  21. package/components/{circular-gauge-options.config-DhIKn44k.js → circular-gauge-options.config-DAIjz4Rl.js} +36 -23
  22. package/components/circular-gauge-options.config-msZ4mfpN.cjs +20 -0
  23. package/components/color-B6LaL8qz.cjs +20 -0
  24. package/components/{color-B7m0j8lX.js → color-DuJ4-73S.js} +950 -941
  25. package/components/{color-range-utils-BSfqtB3A.js → color-range-utils-Bvo9sm5A.js} +32 -31
  26. package/components/color-range-utils-C5yXW7ZC.cjs +20 -0
  27. package/components/{column-chart-options.config-D5-yR7iq.js → column-chart-options.config-B5SjBVdy.js} +37 -27
  28. package/components/column-chart-options.config-BjDvA7i9.cjs +20 -0
  29. package/components/{conditional-number-options.config-DPYsdML5.js → conditional-number-options.config-BCEpSK9J.js} +40 -24
  30. package/components/conditional-number-options.config-DgzUo0xi.cjs +20 -0
  31. package/components/dataset-icon/index.cjs +1 -1
  32. package/components/dataset-icon/index.js +2 -1
  33. package/components/dataset-selector-list/index.cjs +1 -1
  34. package/components/dataset-selector-list/index.js +35 -32
  35. package/components/dataset-selector-row/index.cjs +9 -9
  36. package/components/dataset-selector-row/index.js +52 -50
  37. package/components/{date-comparison-filter-options.config-QaoWaFUn.cjs → date-comparison-filter-options.config-DAVncmi0.cjs} +1 -1
  38. package/components/{date-comparison-filter-options.config-CSwGyuBg.js → date-comparison-filter-options.config-JA_yYpJa.js} +6 -3
  39. package/components/{date-filter-options.config-n-zhWaYa.cjs → date-filter-options.config-CWPMtA18.cjs} +1 -1
  40. package/components/{date-filter-options.config-BTVyHRkp.js → date-filter-options.config-DBRxlTWy.js} +6 -3
  41. package/components/display-settings/index.cjs +1 -1
  42. package/components/display-settings/index.js +1 -1
  43. package/components/display-settings-binning/index.cjs +5 -5
  44. package/components/display-settings-binning/index.js +30 -29
  45. package/components/display-settings-datetime/index.cjs +29 -29
  46. package/components/display-settings-datetime/index.js +120 -112
  47. package/components/display-settings-grand-totals/index.cjs +4 -4
  48. package/components/display-settings-grand-totals/index.js +24 -23
  49. package/components/display-settings-numeric/index.cjs +48 -48
  50. package/components/display-settings-numeric/index.js +206 -190
  51. package/components/display-settings-period-over-period/index.cjs +16 -16
  52. package/components/display-settings-period-over-period/index.js +97 -91
  53. package/components/{donut-chart-options.config-3ZqX8Cbb.js → donut-chart-options.config-BulUEiaH.js} +37 -21
  54. package/components/donut-chart-options.config-tNpqBZfR.cjs +20 -0
  55. package/components/draggable-data-item/index.cjs +5 -5
  56. package/components/draggable-data-item/index.js +46 -45
  57. package/components/draggable-data-item-level/index.cjs +11 -11
  58. package/components/draggable-data-item-level/index.js +73 -70
  59. package/components/{dropdown-filter-options.config-CGJTtgAX.js → dropdown-filter-options.config-D9dvPypF.js} +10 -7
  60. package/components/{dropdown-filter-options.config-DJvfCTk7.cjs → dropdown-filter-options.config-DS-MORmq.cjs} +1 -1
  61. package/components/droppable-slot/index.cjs +16 -16
  62. package/components/droppable-slot/index.js +223 -208
  63. package/components/edit-item/index.cjs +9 -9
  64. package/components/edit-item/index.js +119 -116
  65. package/components/edit-option/index.cjs +1 -1
  66. package/components/edit-option/index.js +1 -1
  67. package/components/edit-option-action-button-group/index.cjs +8 -8
  68. package/components/edit-option-action-button-group/index.js +53 -52
  69. package/components/{edit-option-base-Bh29-Cak.js → edit-option-base-DIc7iC-b.js} +1 -1
  70. package/components/{edit-option-base-tFr8Qg2B.cjs → edit-option-base-VhTih9T1.cjs} +1 -1
  71. package/components/edit-option-color-palette-picker/index.cjs +1 -1
  72. package/components/edit-option-color-palette-picker/index.js +1 -1
  73. package/components/edit-option-color-picker/index.cjs +1 -1
  74. package/components/edit-option-color-picker/index.js +1 -1
  75. package/components/edit-option-color-range/index.cjs +19 -19
  76. package/components/edit-option-color-range/index.js +117 -106
  77. package/components/edit-option-multi-language-field/index.cjs +3 -3
  78. package/components/edit-option-multi-language-field/index.js +27 -26
  79. package/components/edit-option-number-field/index.cjs +1 -1
  80. package/components/edit-option-number-field/index.js +1 -1
  81. package/components/edit-option-picker/index.cjs +5 -5
  82. package/components/edit-option-picker/index.js +7 -7
  83. package/components/edit-option-position-picker/index.cjs +4 -4
  84. package/components/edit-option-position-picker/index.js +25 -21
  85. package/components/edit-option-positions-number-field/index.cjs +9 -9
  86. package/components/edit-option-positions-number-field/index.js +81 -76
  87. package/components/edit-option-radio-button-group/index.cjs +6 -6
  88. package/components/edit-option-radio-button-group/index.js +22 -21
  89. package/components/edit-option-slider/index.cjs +1 -1
  90. package/components/edit-option-slider/index.js +1 -1
  91. package/components/edit-option-switch/index.cjs +1 -1
  92. package/components/edit-option-switch/index.js +1 -1
  93. package/components/edit-option-text-field/index.cjs +2 -2
  94. package/components/edit-option-text-field/index.js +23 -22
  95. package/components/en-BKBhKBXY.cjs +20 -0
  96. package/components/en-BOTjhwEc.js +1488 -0
  97. package/components/{en-GB-ialeqj_z.js → en-GB-CEHEs8F2.js} +1 -1
  98. package/components/{en-GB-TqvgIw9B.cjs → en-GB-DG6uS3sM.cjs} +1 -1
  99. package/components/{evolution-number-options.config-Bc9eKYnn.cjs → evolution-number-options.config-BgIZY4gQ.cjs} +1 -1
  100. package/components/{evolution-number-options.config-BIPO_4n3.js → evolution-number-options.config-DzkfeoIN.js} +14 -11
  101. package/components/{extrapolate-color-C0n1UDs-.cjs → extrapolate-color-0j_AeYkz.cjs} +1 -1
  102. package/components/{extrapolate-color-v1PimdQr.js → extrapolate-color-CC9CURf6.js} +1 -1
  103. package/components/filter-data-item-picker/index.cjs +7 -7
  104. package/components/filter-data-item-picker/index.js +86 -85
  105. package/components/filter-expression-picker/index.cjs +1 -1
  106. package/components/filter-expression-picker/index.js +1 -1
  107. package/components/filter-item/index.cjs +6 -6
  108. package/components/filter-item/index.js +119 -109
  109. package/components/filter-value-picker/index.cjs +2 -2
  110. package/components/filter-value-picker/index.js +36 -34
  111. package/components/filter-value-picker-datetime/index.cjs +8 -8
  112. package/components/filter-value-picker-datetime/index.js +71 -56
  113. package/components/filter-value-picker-hierarchy/index.cjs +12 -12
  114. package/components/filter-value-picker-hierarchy/index.js +124 -113
  115. package/components/filter-value-picker-numeric/index.cjs +8 -8
  116. package/components/filter-value-picker-numeric/index.js +110 -101
  117. package/components/focusable-B3E_hQmm.cjs +20 -0
  118. package/components/{focusable-BS2pbY7w.js → focusable-DCIFkpiW.js} +26 -24
  119. package/components/{funnel-chart-options.config-CrJy2U7_.js → funnel-chart-options.config-C_VjTOvD.js} +20 -5
  120. package/components/funnel-chart-options.config-D7H7gFcx.cjs +20 -0
  121. package/components/get-css-variable-DLiZYZEi.cjs +24 -0
  122. package/components/{get-css-variable-Bb7TxJdX.js → get-css-variable-YlLiVgo8.js} +37 -37
  123. package/components/grid/index.cjs +49 -43
  124. package/components/grid/index.js +1878 -2610
  125. package/components/{heat-map-options.config-CmL87j1j.js → heat-map-options.config-BnLWe8jS.js} +41 -35
  126. package/components/heat-map-options.config-DVH-Bb5-.cjs +20 -0
  127. package/components/heat-table-options.config-B12JEYnp.cjs +20 -0
  128. package/components/{heat-table-options.config-BrCYAgYD.js → heat-table-options.config-CUsDdgUr.js} +88 -60
  129. package/components/helpers-DXQwEH1P.cjs +20 -0
  130. package/components/helpers-v1bPALRP.js +91 -0
  131. package/components/hexbin-map-options.config-DZERRhM8.cjs +20 -0
  132. package/components/{hexbin-map-options.config-BguV1w8q.js → hexbin-map-options.config-F-7uCqxb.js} +38 -20
  133. package/components/{index-BNAmjOkm.cjs → index-BPNsFiyq.cjs} +4 -4
  134. package/components/index-CDi4fe3N.js +1716 -0
  135. package/components/index-CQ9ck-BO.cjs +249 -0
  136. package/components/index-CXn67vdn.cjs +121 -0
  137. package/components/{index-haa7WNrl.js → index-CdIUfo-L.js} +481 -453
  138. package/components/index-Cz9vSXy6.cjs +20 -0
  139. package/components/{index-DdyZ2g5L.js → index-D0GBF6tg.js} +104 -94
  140. package/components/{index-CqKpf0B8.js → index-Do7O9azB.js} +123 -112
  141. package/components/index.cjs +1 -1
  142. package/components/index.js +5 -5
  143. package/components/item-options-configs.cjs +1 -1
  144. package/components/item-options-configs.js +37 -37
  145. package/components/{line-chart-options.config-BhirTGqD.js → line-chart-options.config-DB3IsXXr.js} +28 -13
  146. package/components/line-chart-options.config-DSugoe0t.cjs +20 -0
  147. package/components/{localize-CcDpq940.js → localize-BX7q0S0M.js} +10 -10
  148. package/components/{localize-C4zNlrwK.cjs → localize-r7ALOUy_.cjs} +1 -1
  149. package/components/{marker-map-options.config-Bx17jmiq.js → marker-map-options.config-DPJ955tt.js} +1 -1
  150. package/components/{marker-map-options.config-CvhCylSC.cjs → marker-map-options.config-_FYZzRwA.cjs} +1 -1
  151. package/components/pivot-table-options.config-BiJXKSFR.cjs +20 -0
  152. package/components/{pivot-table-options.config-CFc7y0IT.js → pivot-table-options.config-DNK_AIG7.js} +24 -15
  153. package/components/pyramid-chart-options.config-C4zbFS26.cjs +20 -0
  154. package/components/{pyramid-chart-options.config-2Waxb11l.js → pyramid-chart-options.config-CcVMatYx.js} +43 -29
  155. package/components/{radar-chart-options.config-CPN5fOl8.js → radar-chart-options.config-CUZn_3Fd.js} +23 -11
  156. package/components/radar-chart-options.config-EqQu6PTh.cjs +20 -0
  157. package/components/{regular-table-options.config-CFKCJQK1.js → regular-table-options.config-BoLZsBry.js} +23 -17
  158. package/components/{regular-table-options.config-YRuoijIk.cjs → regular-table-options.config-DTx3RTnS.cjs} +1 -1
  159. package/components/{route-map-options.config-CyolTJfK.js → route-map-options.config-CN86T7c0.js} +109 -87
  160. package/components/route-map-options.config-D7NJePTu.cjs +20 -0
  161. package/components/{sankey-diagram-options.config-D7OSvSqm.cjs → sankey-diagram-options.config-RFB83YLZ.cjs} +1 -1
  162. package/components/{sankey-diagram-options.config-Ldjk84ro.js → sankey-diagram-options.config-tVLKy_Zn.js} +10 -7
  163. package/components/scatter-plot-options.config-CFfGJXsV.cjs +20 -0
  164. package/components/{scatter-plot-options.config-CfxEfkQ1.js → scatter-plot-options.config-Corlzno1.js} +86 -56
  165. package/components/{search-filter-options.config-Oqco9BKj.cjs → search-filter-options.config-BCaDlYqZ.cjs} +1 -1
  166. package/components/{search-filter-options.config-C0syQmP4.js → search-filter-options.config-BE3JhR-F.js} +6 -3
  167. package/components/{set-locale-hKTMz37h.js → set-locale-Dp3N_gXN.js} +8 -1
  168. package/components/{slicer-filter-options.config-DmOe3440.js → slicer-filter-options.config-3JZZcw5C.js} +18 -9
  169. package/components/slicer-filter-options.config-DNI-XevE.cjs +20 -0
  170. package/components/{slider-filter-options.config-B1M8RcDs.js → slider-filter-options.config-DH4SS8wH.js} +1 -1
  171. package/components/{slider-filter-options.config-k45I-t6G.cjs → slider-filter-options.config-_8Z2zKmU.cjs} +1 -1
  172. package/components/slot-contents-picker/index.cjs +33 -33
  173. package/components/slot-contents-picker/index.js +205 -194
  174. package/components/slot-menu/index.cjs +12 -12
  175. package/components/slot-menu/index.js +184 -171
  176. package/components/slot-menu-list/index.cjs +3 -3
  177. package/components/slot-menu-list/index.js +103 -97
  178. package/components/speedometer-chart-options.config-BX9LTQBH.cjs +20 -0
  179. package/components/{speedometer-chart-options.config-CzOmuEF8.js → speedometer-chart-options.config-SL581yOa.js} +53 -31
  180. package/components/{spike-map-options.config-Cbt1YUw6.js → spike-map-options.config-C5KewecZ.js} +122 -91
  181. package/components/spike-map-options.config-DoBFXPmN.cjs +20 -0
  182. package/components/{sunburst-chart-options.config-Yrxc2i57.cjs → sunburst-chart-options.config-AbNjWS6t.cjs} +1 -1
  183. package/components/{sunburst-chart-options.config-_dyLQxPJ.js → sunburst-chart-options.config-CNauGQJv.js} +20 -9
  184. package/components/{symbol-map-options.config-BORL1NSU.js → symbol-map-options.config-DdDA4aa7.js} +20 -11
  185. package/components/symbol-map-options.config-m-lwLTtu.cjs +20 -0
  186. package/components/treemap-chart-options.config-C0Q9aQ1Z.cjs +20 -0
  187. package/components/{treemap-chart-options.config-B9i9qIm_.js → treemap-chart-options.config-D5AJaF_u.js} +37 -20
  188. package/components/utils.cjs +1 -1
  189. package/components/utils.js +97 -94
  190. package/components/{video-options.config-B0asgYt8.cjs → video-options.config-CGsDTwHc.cjs} +1 -1
  191. package/components/{video-options.config-UX-9MDfS.js → video-options.config-Dk36zJ1B.js} +10 -7
  192. package/components/viz-item-menu/index.cjs +2 -2
  193. package/components/viz-item-menu/index.js +5 -4
  194. package/components/{wordcloud-chart-options.config-BKtJT8Va.cjs → wordcloud-chart-options.config-vGfCW8kE.cjs} +1 -1
  195. package/components/{wordcloud-chart-options.config-BoB_KuhA.js → wordcloud-chart-options.config-w2NUIWVA.js} +7 -4
  196. package/custom-elements.json +0 -20
  197. package/package.json +1 -1
  198. package/components/area-chart-options.config-Bl8bhhOo.cjs +0 -20
  199. package/components/bar-chart-options.config-CePAqM83.cjs +0 -20
  200. package/components/box-plot-options.config-BVNrV2eD.cjs +0 -20
  201. package/components/bubble-chart-options.config-BDgOe3GQ.cjs +0 -20
  202. package/components/calculate-data-item-icon-DMDhKq_m.js +0 -147
  203. package/components/calculate-data-item-icon-DtVGbet3.cjs +0 -20
  204. package/components/choropleth-map-options.config-CWJACFd0.cjs +0 -20
  205. package/components/circular-gauge-options.config-BMxgq3zH.cjs +0 -20
  206. package/components/color-Czp4Im5q.cjs +0 -20
  207. package/components/color-range-utils-DYYR-iwx.cjs +0 -20
  208. package/components/column-chart-options.config-BV9R3ssH.cjs +0 -20
  209. package/components/conditional-number-options.config-Co099Qfm.cjs +0 -20
  210. package/components/donut-chart-options.config-BQyPgnC9.cjs +0 -20
  211. package/components/en-D3ihEGXg.js +0 -1483
  212. package/components/en-DZcn_iz_.cjs +0 -20
  213. package/components/focusable-QLh-LlNt.cjs +0 -20
  214. package/components/funnel-chart-options.config-DrP4AFgk.cjs +0 -20
  215. package/components/get-css-variable-Pzks_rOx.cjs +0 -24
  216. package/components/heat-map-options.config-CIHnPdYE.cjs +0 -20
  217. package/components/heat-table-options.config-DTlZRc_i.cjs +0 -20
  218. package/components/helpers-9I0oLoUB.cjs +0 -20
  219. package/components/helpers-bR8Ibjqh.js +0 -79
  220. package/components/hexbin-map-options.config-CKnn3VAB.cjs +0 -20
  221. package/components/index-BekTY3Em.cjs +0 -121
  222. package/components/index-CFL6gmIu.cjs +0 -20
  223. package/components/index-DNPULp4A.js +0 -1755
  224. package/components/index-DvkzMbLt.cjs +0 -249
  225. package/components/line-chart-options.config-Cqwou5u6.cjs +0 -20
  226. package/components/pivot-table-options.config-uZDAertf.cjs +0 -20
  227. package/components/pyramid-chart-options.config-DoGfEvzU.cjs +0 -20
  228. package/components/radar-chart-options.config-CtNUMN1l.cjs +0 -20
  229. package/components/route-map-options.config-CVTk5RVL.cjs +0 -20
  230. package/components/scatter-plot-options.config-5gN7pMTm.cjs +0 -20
  231. package/components/slicer-filter-options.config-CrusP6a0.cjs +0 -20
  232. package/components/speedometer-chart-options.config-B4ceg_qI.cjs +0 -20
  233. package/components/spike-map-options.config-BkkDqb4g.cjs +0 -20
  234. package/components/symbol-map-options.config-NpBKm64d.cjs +0 -20
  235. package/components/treemap-chart-options.config-x4J54WSw.cjs +0 -20
@@ -21,47 +21,49 @@ import "@luzmo/lucero/date-time-picker";
21
21
  import "@luzmo/lucero/number-field";
22
22
  import "@luzmo/lucero/picker";
23
23
  import "@luzmo/lucero/text-field";
24
- import { unsafeCSS as d, html as l } from "lit";
25
- import { SizedMixin as z, LuzmoElement as f, ElementSizes as p } from "@luzmo/lucero/utils";
26
- import { g, t as h, s as b } from "../set-locale-hKTMz37h.js";
27
- import { D as u } from "../periods.const-CjHXYn-w.js";
28
- import { property as n } from "lit/decorators.js";
24
+ import { unsafeCSS as y, html as f } from "lit";
25
+ import { SizedMixin as k, LuzmoElement as w, ElementSizes as _ } from "@luzmo/lucero/utils";
26
+ import { g as S, t as $, s as E } from "../set-locale-Dp3N_gXN.js";
27
+ import { D as h } from "../periods.const-CjHXYn-w.js";
28
+ import { property as b } from "lit/decorators.js";
29
29
  (function() {
30
30
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
31
31
  const e = document.createElement("style");
32
32
  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: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-background-color-alt-1: rgb(250, 250, 250);--luzmo-background-color-alt-2: rgb(239, 239, 239);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-color-disabled);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-secondary-outline: rgba(255, 0, 255, 0.2);--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: #b3241f;--luzmo-negative-color-down: #9f231f;--luzmo-negative-color-focus: #b3241f;--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: rgb(17, 128, 86);--luzmo-positive-color-down: rgb(16, 105, 71);--luzmo-positive-color-focus: rgb(17, 128, 86);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: rgb(70, 70, 70);--luzmo-selected-color-down: rgb(40, 40, 40);--luzmo-selected-color-focus: rgb(70, 70, 70);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: rgb(0, 0, 0);--luzmo-selected-color-hard-down: rgb(0, 0, 0);--luzmo-selected-color-hard-focus: rgb(0, 0, 0);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(e);
33
33
  }
34
34
  })();
35
- const v = ":host{display:flex;flex-direction:row;gap:var(--luzmo-filter-value-picker-datetime-gap, var(--filter-value-picker-datetime-gap))}:host{--filter-value-picker-datetime-gap: var(--luzmo-spacing-3)}:host([size=s]){--filter-value-picker-datetime-gap: var(--luzmo-spacing-2)}:host([size=m]){--filter-value-picker-datetime-gap: var(--luzmo-spacing-3)}:host([size=l]){--filter-value-picker-datetime-gap: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) )}:host([size=xl]){--filter-value-picker-datetime-gap: var(--luzmo-spacing-4)}";
36
- var x = Object.defineProperty, s = (a, e, o, t) => {
37
- for (var r = void 0, m = a.length - 1, c; m >= 0; m--)
38
- (c = a[m]) && (r = c(e, o, r) || r);
39
- return r && x(e, o, r), r;
35
+ const L = ":host{display:flex;flex-direction:row;gap:var(--luzmo-filter-value-picker-datetime-gap, var(--filter-value-picker-datetime-gap))}:host{--filter-value-picker-datetime-gap: var(--luzmo-spacing-3)}:host([size=s]){--filter-value-picker-datetime-gap: var(--luzmo-spacing-2)}:host([size=m]){--filter-value-picker-datetime-gap: var(--luzmo-spacing-3)}:host([size=l]){--filter-value-picker-datetime-gap: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) )}:host([size=xl]){--filter-value-picker-datetime-gap: var(--luzmo-spacing-4)}";
36
+ var C = Object.defineProperty, v = (g, e, o, r) => {
37
+ for (var t = void 0, i = g.length - 1, l; i >= 0; i--)
38
+ (l = g[i]) && (t = l(e, o, t) || t);
39
+ return t && C(e, o, t), t;
40
40
  };
41
- class i extends z(f, {
42
- validSizes: Object.values(p)
41
+ class p extends k(w, {
42
+ validSizes: Object.values(_)
43
43
  }) {
44
44
  constructor() {
45
45
  super(...arguments), this.language = "en", this.contentLanguage = "en";
46
46
  }
47
47
  static get styles() {
48
- return [d(v)];
48
+ return [y(L)];
49
49
  }
50
50
  willUpdate(e) {
51
- const o = e.has("language"), t = e.get("filter");
52
- o && this.language !== g() && ([...h].includes(this.language ?? "en") || this.language === "en") && b(this.language), t && (["last_now", "last_available", "next_now"].includes(
53
- this.filter?.expression
51
+ var t, i, l, a, u, s, m, n, c, d, z;
52
+ const o = e.has("language"), r = e.get("filter");
53
+ o && this.language !== S() && ([...$].includes(this.language ?? "en") || this.language === "en") && E(this.language), r && (["last_now", "last_available", "next_now"].includes(
54
+ (t = this.filter) == null ? void 0 : t.expression
54
55
  ) ? this.filter.parameters[1] = {
55
- quantity: this.filter?.parameters?.[1]?.quantity ?? 1,
56
- unit: this.filter?.parameters?.[1]?.unit ?? 1
56
+ quantity: ((a = (l = (i = this.filter) == null ? void 0 : i.parameters) == null ? void 0 : l[1]) == null ? void 0 : a.quantity) ?? 1,
57
+ unit: ((m = (s = (u = this.filter) == null ? void 0 : u.parameters) == null ? void 0 : s[1]) == null ? void 0 : m.unit) ?? 1
57
58
  } : ["last_completed", "next_full", "to_date"].includes(
58
- this.filter?.expression
59
+ (n = this.filter) == null ? void 0 : n.expression
59
60
  ) ? this.filter.parameters[1] = {
60
- unit: this.filter?.parameters?.[1]?.unit ?? 1
61
+ unit: ((z = (d = (c = this.filter) == null ? void 0 : c.parameters) == null ? void 0 : d[1]) == null ? void 0 : z.unit) ?? 1
61
62
  } : this.filter.parameters[1] = typeof this.filter.parameters[1] == "string" ? this.filter.parameters[1] : (/* @__PURE__ */ new Date()).toISOString());
62
63
  }
63
64
  _sendChangeEvent() {
64
- this.filter.parameters = [{ ...this.filter?.parameters?.[0] }, this._value], this.dispatchEvent(
65
+ var e, o;
66
+ this.filter.parameters = [{ ...(o = (e = this.filter) == null ? void 0 : e.parameters) == null ? void 0 : o[0] }, this._value], this.dispatchEvent(
65
67
  new CustomEvent("filter-value-changed", {
66
68
  bubbles: !0,
67
69
  composed: !0,
@@ -73,49 +75,61 @@ class i extends z(f, {
73
75
  );
74
76
  }
75
77
  setDate(e) {
76
- this._value = e.detail.value, this._value !== this.filter?.parameters?.[1] && this._sendChangeEvent();
78
+ var o, r;
79
+ this._value = e.detail.value, this._value !== ((r = (o = this.filter) == null ? void 0 : o.parameters) == null ? void 0 : r[1]) && this._sendChangeEvent();
77
80
  }
78
81
  setUnit(e) {
79
- const o = u.find(
80
- (t) => t.key === e?.target?.value
81
- )?.level;
82
- this.filter?.parameters?.[1]?.unit !== o && (this._value = {
82
+ var r, t, i, l, a, u, s;
83
+ const o = (r = h.find(
84
+ (m) => {
85
+ var n;
86
+ return m.key === ((n = e == null ? void 0 : e.target) == null ? void 0 : n.value);
87
+ }
88
+ )) == null ? void 0 : r.level;
89
+ ((l = (i = (t = this.filter) == null ? void 0 : t.parameters) == null ? void 0 : i[1]) == null ? void 0 : l.unit) !== o && (this._value = {
83
90
  unit: o ?? 1,
84
- quantity: this.filter?.parameters?.[1]?.quantity ?? 1
91
+ quantity: ((s = (u = (a = this.filter) == null ? void 0 : a.parameters) == null ? void 0 : u[1]) == null ? void 0 : s.quantity) ?? 1
85
92
  }, this._sendChangeEvent());
86
93
  }
87
94
  setQuantity(e) {
88
- const o = e?.target?.value;
89
- this.filter?.parameters?.[1]?.quantity !== o && (this._value = {
95
+ var r, t, i, l, a, u, s;
96
+ const o = (r = e == null ? void 0 : e.target) == null ? void 0 : r.value;
97
+ ((l = (i = (t = this.filter) == null ? void 0 : t.parameters) == null ? void 0 : i[1]) == null ? void 0 : l.quantity) !== o && (this._value = {
90
98
  quantity: o,
91
- unit: this.filter?.parameters?.[1]?.unit ?? 1
99
+ unit: ((s = (u = (a = this.filter) == null ? void 0 : a.parameters) == null ? void 0 : u[1]) == null ? void 0 : s.unit) ?? 1
92
100
  }, this._sendChangeEvent());
93
101
  }
94
102
  renderDatePicker() {
103
+ var o, r, t, i, l, a, u, s, m, n, c, d, z, x;
95
104
  let e = "second";
96
- return this.filter?.parameters?.[0]?.lowestLevel > 4 && (this.filter?.parameters?.[0]?.lowestLevel === 5 ? e = "day" : this.filter?.parameters?.[0]?.lowestLevel === 6 ? e = "hour" : this.filter?.parameters?.[0]?.lowestLevel === 7 ? e = "minute" : e = "second"), l`<luzmo-date-time-picker
105
+ return ((t = (r = (o = this.filter) == null ? void 0 : o.parameters) == null ? void 0 : r[0]) == null ? void 0 : t.lowestLevel) > 4 && (((a = (l = (i = this.filter) == null ? void 0 : i.parameters) == null ? void 0 : l[0]) == null ? void 0 : a.lowestLevel) === 5 ? e = "day" : ((m = (s = (u = this.filter) == null ? void 0 : u.parameters) == null ? void 0 : s[0]) == null ? void 0 : m.lowestLevel) === 6 ? e = "hour" : ((d = (c = (n = this.filter) == null ? void 0 : n.parameters) == null ? void 0 : c[0]) == null ? void 0 : d.lowestLevel) === 7 ? e = "minute" : e = "second"), f`<luzmo-date-time-picker
97
106
  .size=${this.size}
98
107
  .precision=${e}
99
108
  .timeZone=${this.timeZone}
100
109
  @change=${this.setDate}
101
- .value=${this.filter?.parameters?.[1]}
110
+ .value=${(x = (z = this.filter) == null ? void 0 : z.parameters) == null ? void 0 : x[1]}
102
111
  ></luzmo-date-time-picker>`;
103
112
  }
104
113
  renderQuantityField() {
105
- return l`<luzmo-number-field
114
+ var e, o, r;
115
+ return f`<luzmo-number-field
106
116
  .size=${this.size}
107
- .value=${this.filter?.parameters?.[1]?.quantity}
117
+ .value=${(r = (o = (e = this.filter) == null ? void 0 : e.parameters) == null ? void 0 : o[1]) == null ? void 0 : r.quantity}
108
118
  @input=${this.setQuantity}
109
119
  @change=${this.setQuantity}
110
120
  ></luzmo-number-field>`;
111
121
  }
112
122
  renderUnitPicker() {
113
- const e = u.map((t) => l`<luzmo-menu-item .value=${t.key}>
114
- ${t.i18n()}
115
- </luzmo-menu-item>`), o = u.find(
116
- (t) => t.level === this.filter?.parameters?.[1]?.unit
117
- )?.key ?? u?.[0]?.key;
118
- return l`<luzmo-picker
123
+ var r, t, i;
124
+ const e = h.map((l) => f`<luzmo-menu-item .value=${l.key}>
125
+ ${l.i18n()}
126
+ </luzmo-menu-item>`), o = ((r = h.find(
127
+ (l) => {
128
+ var a, u, s;
129
+ return l.level === ((s = (u = (a = this.filter) == null ? void 0 : a.parameters) == null ? void 0 : u[1]) == null ? void 0 : s.unit);
130
+ }
131
+ )) == null ? void 0 : r.key) ?? ((i = (t = h) == null ? void 0 : t[0]) == null ? void 0 : i.key);
132
+ return f`<luzmo-picker
119
133
  .size=${this.size}
120
134
  .value=${o}
121
135
  @change=${this.setUnit}
@@ -124,26 +138,27 @@ class i extends z(f, {
124
138
  >`;
125
139
  }
126
140
  render() {
127
- const e = this.filter?.expression;
128
- return ["last_now", "last_available", "next_now"].includes(e) ? l`${this.renderQuantityField()}${this.renderUnitPicker()}` : ["last_completed", "next_full"].includes(e) ? this.renderUnitPicker() : this.renderDatePicker();
141
+ var o;
142
+ const e = (o = this.filter) == null ? void 0 : o.expression;
143
+ return ["last_now", "last_available", "next_now"].includes(e) ? f`${this.renderQuantityField()}${this.renderUnitPicker()}` : ["last_completed", "next_full"].includes(e) ? this.renderUnitPicker() : this.renderDatePicker();
129
144
  }
130
145
  }
131
- s([
132
- n({ type: String, reflect: !0 })
133
- ], i.prototype, "language");
134
- s([
135
- n({ type: String, attribute: "content-language", reflect: !0 })
136
- ], i.prototype, "contentLanguage");
137
- s([
138
- n({ type: String, attribute: "time-zone", reflect: !0 })
139
- ], i.prototype, "timeZone");
140
- s([
141
- n({ type: Object, reflect: !1 })
142
- ], i.prototype, "filter");
146
+ v([
147
+ b({ type: String, reflect: !0 })
148
+ ], p.prototype, "language");
149
+ v([
150
+ b({ type: String, attribute: "content-language", reflect: !0 })
151
+ ], p.prototype, "contentLanguage");
152
+ v([
153
+ b({ type: String, attribute: "time-zone", reflect: !0 })
154
+ ], p.prototype, "timeZone");
155
+ v([
156
+ b({ type: Object, reflect: !1 })
157
+ ], p.prototype, "filter");
143
158
  customElements.get("luzmo-filter-value-picker-datetime") || customElements.define(
144
159
  "luzmo-filter-value-picker-datetime",
145
- i
160
+ p
146
161
  );
147
162
  export {
148
- i as LuzmoFilterValuePickerDatetime
163
+ p as LuzmoFilterValuePickerDatetime
149
164
  };
@@ -17,30 +17,30 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@luzmo/lucero/select");require("@luzmo/lucero/text-field");const f=require("lit"),c=require("@lit/localize"),_=require("@luzmo/lucero/utils"),L=require("../index-CFL6gmIu.cjs"),b=require("../localize-C4zNlrwK.cjs"),n=require("lit/decorators.js"),y=require("../set-locale-BRRalqne.cjs"),V=".missing-value{opacity:.4}:host{--var: blue}";var k=Object.defineProperty,S=Object.getOwnPropertyDescriptor,a=(g,e,t,i)=>{for(var r=i>1?void 0:i?S(e,t):e,s=g.length-1,u;s>=0;s--)(u=g[s])&&(r=(i?u(e,t,r):u(r))||r);return i&&r&&k(e,t,r),r};const z=5e3;exports.LuzmoFilterValuePickerHierarchy=class extends _.SizedMixin(_.LuzmoElement,{validSizes:Object.values(_.ElementSizes)}){constructor(){super(...arguments),this.language="en",this.contentLanguage="en",this._hierarchyValues=[],this._retrieving=!0,this._search="",this._error=null,this._allValuesRetrieved=!1,this._runningQueries=[]}static get styles(){return[f.unsafeCSS(V)]}connectedCallback(){super.connectedCallback();const e={};this.apiUrl&&(e.apiUrl=this.apiUrl),this.cacheTime&&(e.staleTime=this.cacheTime,e.gcTime=this.cacheTime*2),this.authKey&&this.authToken&&(e.authKey=this.authKey,e.authToken=this.authToken),L.dataBroker.configure(e)}willUpdate(e){if(e.has("language")&&this.language!==y.getLocale()&&([...y.targetLocales].includes(this.language??"en")||this.language==="en")&&y.setLocale(this.language),e.has("filter")&&this.filter){const i=e.get("filter")?.expression,r=e.get("filter")?.parameters?.[0]?.columnId||e.get("filter")?.parameters?.[0]?.formulaId,s=this.filter?.parameters?.[0]?.columnId||this.filter?.parameters?.[0]?.formulaId;r!==s&&(["? in ?","? not in ?","? = ?","? != ?"].includes(this.filter?.expression)||!["? in ?","? not in ?","? = ?","? != ?"].includes(i))&&(this._hierarchyValues=[],this._allValuesRetrieved=!1,this._retrieving=!0)}}async _fetchHierarchyValues(e=0){if(this._allValuesRetrieved){this._retrieving=!1;return}if(!this.filter?.parameters?.[0]){this._retrieving=!1,this._error="Missing column parameters";return}const t=this.filter.parameters[0],i=t.columnId,r=t.formulaId,s=t.datasetId;if(!i&&!r){this._retrieving=!1,this._error="Missing column id or formula id";return}else if(!s){this._retrieving=!1,this._error="Missing dataset id";return}this._retrieving=!0,this._error=null;const u={expression:"? like ?",parameters:[{column_id:i,formula_id:r,dataset_id:s},this._search]},p={dimensions:[{column_id:i,formula_id:r,dataset_id:s}],where:[],order:[{column_id:i,formula_id:r,dataset_id:s,order:"asc"}],limit:{by:z,offset:e}};this._search&&this._allValuesRetrieved&&p.where.push(u);const d=new AbortController,o=new Promise((l,h)=>{L.dataBroker.fetchData(p).then(l).catch(h),d.signal.addEventListener("abort",()=>{console.warn("Request aborted"),h({status:"aborted"})})}),m={promise:o,abortController:d};this._runningQueries.push(m);try{const l=await o,h=l&&Array.isArray(l.data)?l.data.map(v=>v[0]):[];this._search||(this._allValuesRetrieved=h.length<z),this._hierarchyValues=e>0?[...this._hierarchyValues,...h]:h}catch(l){if(l?.status==="aborted")return;this._error=l instanceof Error?l.message:"Unknown error",this._hierarchyValues=[]}finally{this._runningQueries=this._runningQueries.filter(l=>l.promise!==o),this._retrieving=!1}}_sendChangeEvent(){this.dispatchEvent(new CustomEvent("filter-value-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:this._value}}))}setHierarchy(e){let t;["? in ?","? not in ?"].includes(this.filter?.expression)?t=e?.detail?.value:["? = ?","? != ?"].includes(this.filter?.expression)?t=e?.detail?.value?.[0]:t=e?.target?.value,this._value!==t&&(this._value=t,this.filter={...this.filter,parameters:[{...this.filter?.parameters?.[0]},this._value]},this._sendChangeEvent())}onScrolled(e){!this._retrieving&&!this._allValuesRetrieved&&e?.detail?.last===this._hierarchyValues.length-1&&this._fetchHierarchyValues(this._hierarchyValues.length)}renderTextField(){return f.html`<luzmo-text-field
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@luzmo/lucero/select");require("@luzmo/lucero/text-field");const y=require("lit"),_=require("@lit/localize"),b=require("@luzmo/lucero/utils"),k=require("../index-Cz9vSXy6.cjs"),S=require("../localize-r7ALOUy_.cjs"),u=require("lit/decorators.js"),z=require("../set-locale-BRRalqne.cjs"),T=".missing-value{opacity:.4}:host{--var: blue}";var F=Object.defineProperty,x=Object.getOwnPropertyDescriptor,c=(L,e,t,r)=>{for(var i=r>1?void 0:r?x(e,t):e,l=L.length-1,o;l>=0;l--)(o=L[l])&&(i=(r?o(e,t,i):o(i))||i);return r&&i&&F(e,t,i),i};const H=5e3;exports.LuzmoFilterValuePickerHierarchy=class extends b.SizedMixin(b.LuzmoElement,{validSizes:Object.values(b.ElementSizes)}){constructor(){super(...arguments),this.language="en",this.contentLanguage="en",this._hierarchyValues=[],this._retrieving=!0,this._search="",this._error=null,this._allValuesRetrieved=!1,this._runningQueries=[]}static get styles(){return[y.unsafeCSS(T)]}connectedCallback(){super.connectedCallback();const e={};this.apiUrl&&(e.apiUrl=this.apiUrl),this.cacheTime&&(e.staleTime=this.cacheTime,e.gcTime=this.cacheTime*2),this.authKey&&this.authToken&&(e.authKey=this.authKey,e.authToken=this.authToken),k.dataBroker.configure(e)}willUpdate(e){var r,i,l,o,m,p,n,d,f,g,s,a,h,V;if(e.has("language")&&this.language!==z.getLocale()&&([...z.targetLocales].includes(this.language??"en")||this.language==="en")&&z.setLocale(this.language),e.has("filter")&&this.filter){const v=(r=e.get("filter"))==null?void 0:r.expression,P=((o=(l=(i=e.get("filter"))==null?void 0:i.parameters)==null?void 0:l[0])==null?void 0:o.columnId)||((n=(p=(m=e.get("filter"))==null?void 0:m.parameters)==null?void 0:p[0])==null?void 0:n.formulaId),$=((g=(f=(d=this.filter)==null?void 0:d.parameters)==null?void 0:f[0])==null?void 0:g.columnId)||((h=(a=(s=this.filter)==null?void 0:s.parameters)==null?void 0:a[0])==null?void 0:h.formulaId);P!==$&&(["? in ?","? not in ?","? = ?","? != ?"].includes((V=this.filter)==null?void 0:V.expression)||!["? in ?","? not in ?","? = ?","? != ?"].includes(v))&&(this._hierarchyValues=[],this._allValuesRetrieved=!1,this._retrieving=!0)}}async _fetchHierarchyValues(e=0){var f,g;if(this._allValuesRetrieved){this._retrieving=!1;return}if(!((g=(f=this.filter)==null?void 0:f.parameters)!=null&&g[0])){this._retrieving=!1,this._error="Missing column parameters";return}const t=this.filter.parameters[0],r=t.columnId,i=t.formulaId,l=t.datasetId;if(!r&&!i){this._retrieving=!1,this._error="Missing column id or formula id";return}else if(!l){this._retrieving=!1,this._error="Missing dataset id";return}this._retrieving=!0,this._error=null;const o={expression:"? like ?",parameters:[{column_id:r,formula_id:i,dataset_id:l},this._search]},m={dimensions:[{column_id:r,formula_id:i,dataset_id:l}],where:[],order:[{column_id:r,formula_id:i,dataset_id:l,order:"asc"}],limit:{by:H,offset:e}};this._search&&this._allValuesRetrieved&&m.where.push(o);const p=new AbortController,n=new Promise((s,a)=>{k.dataBroker.fetchData(m).then(s).catch(a),p.signal.addEventListener("abort",()=>{console.warn("Request aborted"),a({status:"aborted"})})}),d={promise:n,abortController:p};this._runningQueries.push(d);try{const s=await n,a=s&&Array.isArray(s.data)?s.data.map(h=>h[0]):[];this._search||(this._allValuesRetrieved=a.length<H),this._hierarchyValues=e>0?[...this._hierarchyValues,...a]:a}catch(s){if((s==null?void 0:s.status)==="aborted")return;this._error=s instanceof Error?s.message:"Unknown error",this._hierarchyValues=[]}finally{this._runningQueries=this._runningQueries.filter(s=>s.promise!==n),this._retrieving=!1}}_sendChangeEvent(){this.dispatchEvent(new CustomEvent("filter-value-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:this._value}}))}setHierarchy(e){var r,i,l,o,m,p,n,d;let t;["? in ?","? not in ?"].includes((r=this.filter)==null?void 0:r.expression)?t=(i=e==null?void 0:e.detail)==null?void 0:i.value:["? = ?","? != ?"].includes((l=this.filter)==null?void 0:l.expression)?t=(m=(o=e==null?void 0:e.detail)==null?void 0:o.value)==null?void 0:m[0]:t=(p=e==null?void 0:e.target)==null?void 0:p.value,this._value!==t&&(this._value=t,this.filter={...this.filter,parameters:[{...(d=(n=this.filter)==null?void 0:n.parameters)==null?void 0:d[0]},this._value]},this._sendChangeEvent())}onScrolled(e){var t;!this._retrieving&&!this._allValuesRetrieved&&((t=e==null?void 0:e.detail)==null?void 0:t.last)===this._hierarchyValues.length-1&&this._fetchHierarchyValues(this._hierarchyValues.length)}renderTextField(){var e,t;return y.html`<luzmo-text-field
21
21
  .size=${this.size}
22
22
  @change=${this.setHierarchy}
23
23
  @input=${this.setHierarchy}
24
- .value=${this.filter?.parameters?.[1]??""}
25
- ></luzmo-text-field>`}setSearchString(e){this._search=e?.detail?.string??"",this._allValuesRetrieved||(this._searchQueryTimeout&&(this._runningQueries.forEach(t=>{t?.abortController&&t.abortController.abort()}),this._runningQueries=[],clearTimeout(this._searchQueryTimeout)),this._searchQueryTimeout=setTimeout(()=>{this._fetchHierarchyValues()},500))}resetSearchString(){this._search=""}onOpened(){this._fetchHierarchyValues()}renderHierarchyPicker(){if(this._error)return f.html`<div class="error">Error: ${this._error}</div>`;const e=(this._search?this._hierarchyValues.filter(o=>b.localize(o.name,this.contentLanguage,{allowEmpty:!0})?.toLowerCase().includes(this._search.toLowerCase())||o.toString().toLowerCase().includes(this._search.toLowerCase())):this._hierarchyValues).map(o=>{let m=b.localize(o?.name,this.contentLanguage)??"N/A";return typeof m!="string"&&(m="N/A"),{value:o?.id,label:m}}),t=this.filter?.expression,i=["? = ?","? != ?"].includes(t),r=c.msg("Selected {count} items"),s=c.msg("Search"),u=c.msg("No data"),p=c.msg("No results"),d=c.msg("Select...");return f.html`<luzmo-select
24
+ .value=${((t=(e=this.filter)==null?void 0:e.parameters)==null?void 0:t[1])??""}
25
+ ></luzmo-text-field>`}setSearchString(e){var t;this._search=((t=e==null?void 0:e.detail)==null?void 0:t.string)??"",this._allValuesRetrieved||(this._searchQueryTimeout&&(this._runningQueries.forEach(r=>{r!=null&&r.abortController&&r.abortController.abort()}),this._runningQueries=[],clearTimeout(this._searchQueryTimeout)),this._searchQueryTimeout=setTimeout(()=>{this._fetchHierarchyValues()},500))}resetSearchString(){this._search=""}onOpened(){this._fetchHierarchyValues()}renderHierarchyPicker(){var n,d,f,g,s;if(this._error)return y.html`<div class="error">Error: ${this._error}</div>`;const e=(this._search?this._hierarchyValues.filter(a=>{var h;return((h=S.localize(a.name,this.contentLanguage,{allowEmpty:!0}))==null?void 0:h.toLowerCase().includes(this._search.toLowerCase()))||a.toString().toLowerCase().includes(this._search.toLowerCase())}):this._hierarchyValues).map(a=>{let h=S.localize(a==null?void 0:a.name,this.contentLanguage)??"N/A";return typeof h!="string"&&(h="N/A"),{value:a==null?void 0:a.id,label:h}}),t=(n=this.filter)==null?void 0:n.expression,r=["? = ?","? != ?"].includes(t),i=_.msg("Selected {count} items"),l=_.msg("Search"),o=_.msg("No data"),m=_.msg("No results"),p=_.msg("Select...");return y.html`<luzmo-select
26
26
  .size=${this.size}
27
- .label=${d}
27
+ .label=${p}
28
28
  .retrieving=${this._retrieving}
29
- .selects=${i?"single":"multiple"}
30
- .variant=${i?"highlight":"checkboxes"}
29
+ .selects=${r?"single":"multiple"}
30
+ .variant=${r?"highlight":"checkboxes"}
31
31
  emphasized
32
32
  no-wrap
33
33
  ?invalid=${!!this._error}
34
- .multipleLabelTemplate=${r}
35
- .searchLabel=${s}
36
- .noDataLabel=${u}
37
- .noResultsLabel=${p}
34
+ .multipleLabelTemplate=${i}
35
+ .searchLabel=${l}
36
+ .noDataLabel=${o}
37
+ .noResultsLabel=${m}
38
38
  @change=${this.setHierarchy}
39
39
  @luzmo-search=${this.setSearchString}
40
40
  @luzmo-opened=${this.onOpened}
41
41
  @luzmo-closed=${this.resetSearchString}
42
42
  @luzmo-scrolled=${this.onScrolled}
43
43
  .options=${e}
44
- .value=${i?[this.filter?.parameters?.[1]]:this.filter?.parameters?.[1]}
44
+ .value=${r?[(f=(d=this.filter)==null?void 0:d.parameters)==null?void 0:f[1]]:(s=(g=this.filter)==null?void 0:g.parameters)==null?void 0:s[1]}
45
45
  >
46
- </luzmo-select>`}render(){const e=this.filter?.expression;return["? in ?","? not in ?","? = ?","? != ?"].includes(e)?this.renderHierarchyPicker():this.renderTextField()}};a([n.property({type:String,attribute:"api-url",reflect:!0})],exports.LuzmoFilterValuePickerHierarchy.prototype,"apiUrl",2);a([n.property({type:String,attribute:"auth-key",reflect:!0})],exports.LuzmoFilterValuePickerHierarchy.prototype,"authKey",2);a([n.property({type:String,attribute:"auth-token",reflect:!0})],exports.LuzmoFilterValuePickerHierarchy.prototype,"authToken",2);a([n.property({type:Number,attribute:"cache-time",reflect:!0})],exports.LuzmoFilterValuePickerHierarchy.prototype,"cacheTime",2);a([n.property({type:String,reflect:!0})],exports.LuzmoFilterValuePickerHierarchy.prototype,"language",2);a([n.property({type:String,attribute:"content-language",reflect:!0})],exports.LuzmoFilterValuePickerHierarchy.prototype,"contentLanguage",2);a([n.property({type:Object,reflect:!1})],exports.LuzmoFilterValuePickerHierarchy.prototype,"filter",2);a([n.state()],exports.LuzmoFilterValuePickerHierarchy.prototype,"_hierarchyValues",2);a([n.state()],exports.LuzmoFilterValuePickerHierarchy.prototype,"_retrieving",2);a([n.state()],exports.LuzmoFilterValuePickerHierarchy.prototype,"_search",2);a([n.state()],exports.LuzmoFilterValuePickerHierarchy.prototype,"_error",2);exports.LuzmoFilterValuePickerHierarchy=a([c.localized()],exports.LuzmoFilterValuePickerHierarchy);customElements.get("luzmo-filter-value-picker-hierarchy")||customElements.define("luzmo-filter-value-picker-hierarchy",exports.LuzmoFilterValuePickerHierarchy);
46
+ </luzmo-select>`}render(){var t;const e=(t=this.filter)==null?void 0:t.expression;return["? in ?","? not in ?","? = ?","? != ?"].includes(e)?this.renderHierarchyPicker():this.renderTextField()}};c([u.property({type:String,attribute:"api-url",reflect:!0})],exports.LuzmoFilterValuePickerHierarchy.prototype,"apiUrl",2);c([u.property({type:String,attribute:"auth-key",reflect:!0})],exports.LuzmoFilterValuePickerHierarchy.prototype,"authKey",2);c([u.property({type:String,attribute:"auth-token",reflect:!0})],exports.LuzmoFilterValuePickerHierarchy.prototype,"authToken",2);c([u.property({type:Number,attribute:"cache-time",reflect:!0})],exports.LuzmoFilterValuePickerHierarchy.prototype,"cacheTime",2);c([u.property({type:String,reflect:!0})],exports.LuzmoFilterValuePickerHierarchy.prototype,"language",2);c([u.property({type:String,attribute:"content-language",reflect:!0})],exports.LuzmoFilterValuePickerHierarchy.prototype,"contentLanguage",2);c([u.property({type:Object,reflect:!1})],exports.LuzmoFilterValuePickerHierarchy.prototype,"filter",2);c([u.state()],exports.LuzmoFilterValuePickerHierarchy.prototype,"_hierarchyValues",2);c([u.state()],exports.LuzmoFilterValuePickerHierarchy.prototype,"_retrieving",2);c([u.state()],exports.LuzmoFilterValuePickerHierarchy.prototype,"_search",2);c([u.state()],exports.LuzmoFilterValuePickerHierarchy.prototype,"_error",2);exports.LuzmoFilterValuePickerHierarchy=c([_.localized()],exports.LuzmoFilterValuePickerHierarchy);customElements.get("luzmo-filter-value-picker-hierarchy")||customElements.define("luzmo-filter-value-picker-hierarchy",exports.LuzmoFilterValuePickerHierarchy);