@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
@@ -17,13 +17,13 @@
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 { unsafeCSS as d, html as c } from "lit";
21
- import { localized as f } from "@lit/localize";
22
- import { SizedMixin as h, LuzmoElement as g, ElementSizes as z } from "@luzmo/lucero/utils";
23
- import { g as b, t as y, s as x } from "../set-locale-hKTMz37h.js";
24
- import { d as p } from "../index-DNPULp4A.js";
25
- import { property as n, state as m } from "lit/decorators.js";
26
- import { g as _ } from "../index-DdyZ2g5L.js";
20
+ import { unsafeCSS as P, html as T } from "lit";
21
+ import { localized as A } from "@lit/localize";
22
+ import { SizedMixin as K, LuzmoElement as V, ElementSizes as j } from "@luzmo/lucero/utils";
23
+ import { g as q, t as M, s as Z } from "../set-locale-Dp3N_gXN.js";
24
+ import { d as O } from "../index-CDi4fe3N.js";
25
+ import { property as c, state as b } from "lit/decorators.js";
26
+ import { g as B } from "../index-D0GBF6tg.js";
27
27
  import "../filter-data-item-picker/index.js";
28
28
  import "../filter-value-picker/index.js";
29
29
  (function() {
@@ -32,25 +32,25 @@ import "../filter-value-picker/index.js";
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-item-gap, var(--filter-item-gap))}:host{--filter-item-gap: var(--luzmo-spacing-3)}:host([size=s]){--filter-item-gap: var(--luzmo-spacing-2)}:host([size=m]){--filter-item-gap: var(--luzmo-spacing-3)}:host([size=l]){--filter-item-gap: calc(var(--luzmo-spacing-3) + var(--luzmo-spacing-1))}:host([size=xl]){--filter-item-gap: var(--luzmo-spacing-4)}";
36
- var I = Object.defineProperty, k = Object.getOwnPropertyDescriptor, s = (t, e, i, r) => {
37
- for (var a = r > 1 ? void 0 : r ? k(e, i) : e, u = t.length - 1, l; u >= 0; u--)
38
- (l = t[u]) && (a = (r ? l(e, i, a) : l(a)) || a);
39
- return r && a && I(e, i, a), a;
35
+ const H = ":host{display:flex;flex-direction:row;gap:var(--luzmo-filter-item-gap, var(--filter-item-gap))}:host{--filter-item-gap: var(--luzmo-spacing-3)}:host([size=s]){--filter-item-gap: var(--luzmo-spacing-2)}:host([size=m]){--filter-item-gap: var(--luzmo-spacing-3)}:host([size=l]){--filter-item-gap: calc(var(--luzmo-spacing-3) + var(--luzmo-spacing-1))}:host([size=xl]){--filter-item-gap: var(--luzmo-spacing-4)}";
36
+ var N = Object.defineProperty, W = Object.getOwnPropertyDescriptor, n = (t, e, o, i) => {
37
+ for (var r = i > 1 ? void 0 : i ? W(e, o) : e, s = t.length - 1, a; s >= 0; s--)
38
+ (a = t[s]) && (r = (i ? a(e, o, r) : a(r)) || r);
39
+ return i && r && N(e, o, r), r;
40
40
  };
41
- let o = class extends h(g, {
42
- validSizes: Object.values(z)
41
+ let l = class extends K(V, {
42
+ validSizes: Object.values(j)
43
43
  }) {
44
44
  constructor() {
45
45
  super(...arguments), this.apiUrl = "https://api.luzmo.com", this.language = "en", this.contentLanguage = "en", this.filter = {}, this._loading = !1, this._datasetsDataItems = [];
46
46
  }
47
47
  static get styles() {
48
- return [d(v)];
48
+ return [P(H)];
49
49
  }
50
50
  connectedCallback() {
51
51
  super.connectedCallback();
52
52
  const t = {};
53
- this.apiUrl && (t.apiUrl = this.apiUrl), this.cacheTime && (t.staleTime = this.cacheTime, t.gcTime = this.cacheTime * 2), this.authKey && this.authToken && (t.authKey = this.authKey, t.authToken = this.authToken), p.configure(t);
53
+ this.apiUrl && (t.apiUrl = this.apiUrl), this.cacheTime && (t.staleTime = this.cacheTime, t.gcTime = this.cacheTime * 2), this.authKey && this.authToken && (t.authKey = this.authKey, t.authToken = this.authToken), O.configure(t);
54
54
  }
55
55
  /**
56
56
  * Fetches hierarchy values from the databroker
@@ -62,12 +62,12 @@ let o = class extends h(g, {
62
62
  }
63
63
  this._loading = !0, this._error = null;
64
64
  try {
65
- const t = await p.fetchDatasetsWithColumnsAndFormulas(
65
+ const t = await O.fetchDatasetsWithColumnsAndFormulas(
66
66
  this.datasetIds
67
67
  );
68
68
  for (const e of t)
69
- for (const i of [...e.columns, ...e.formulas])
70
- i.id = e.id;
69
+ for (const o of [...e.columns, ...e.formulas])
70
+ o.id = e.id;
71
71
  this._datasetsDataItems = t;
72
72
  } catch (t) {
73
73
  console.error("Error fetching dataset columns & formulas:", t), this._error = t instanceof Error ? t.message : "Unknown error", this._datasetsDataItems = [];
@@ -76,23 +76,27 @@ let o = class extends h(g, {
76
76
  }
77
77
  }
78
78
  willUpdate(t) {
79
- const e = t.has("filter"), i = t.has("language"), r = t.has("datasetIds"), a = t.has("_datasetsDataItems");
80
- if (i && this.language !== b() && ([...y].includes(this.language ?? "en") || this.language === "en") && x(this.language), e || r || a && this.filter?.parameters?.[0]?.columnId && (this.filter?.parameters?.[0]?.datasetId || this.filter?.parameters?.[0]?.formulaId)) {
81
- const u = this._datasetsDataItems.find(
82
- (l) => l.id === this.filter.parameters?.[0]?.datasetId
79
+ var s, a, p, d, h, f, u, g, y, x, _, I, v, k, $;
80
+ const e = t.has("filter"), o = t.has("language"), i = t.has("datasetIds"), r = t.has("_datasetsDataItems");
81
+ if (o && this.language !== q() && ([...M].includes(this.language ?? "en") || this.language === "en") && Z(this.language), e || i || r && ((p = (a = (s = this.filter) == null ? void 0 : s.parameters) == null ? void 0 : a[0]) != null && p.columnId) && ((f = (h = (d = this.filter) == null ? void 0 : d.parameters) == null ? void 0 : h[0]) != null && f.datasetId || (y = (g = (u = this.filter) == null ? void 0 : u.parameters) == null ? void 0 : g[0]) != null && y.formulaId)) {
82
+ const z = this._datasetsDataItems.find(
83
+ (m) => {
84
+ var D, w;
85
+ return m.id === ((w = (D = this.filter.parameters) == null ? void 0 : D[0]) == null ? void 0 : w.datasetId);
86
+ }
83
87
  );
84
- if (u) {
85
- for (const l of [
86
- ...u.columns || [],
87
- ...u?.formulas || []
88
+ if (z) {
89
+ for (const m of [
90
+ ...z.columns || [],
91
+ ...(z == null ? void 0 : z.formulas) || []
88
92
  ])
89
- if (l.id === this.filter.parameters?.[0]?.columnId || l.id === this.filter.parameters?.[0]?.formulaId) {
90
- this._type = l.type, this._subType = l.subtype, this._isFormula = l.id === this.filter.parameters?.[0]?.formulaId;
93
+ if (m.id === ((_ = (x = this.filter.parameters) == null ? void 0 : x[0]) == null ? void 0 : _.columnId) || m.id === ((v = (I = this.filter.parameters) == null ? void 0 : I[0]) == null ? void 0 : v.formulaId)) {
94
+ this._type = m.type, this._subType = m.subtype, this._isFormula = m.id === (($ = (k = this.filter.parameters) == null ? void 0 : k[0]) == null ? void 0 : $.formulaId);
91
95
  break;
92
96
  }
93
97
  }
94
98
  }
95
- r && this._fetchDatasetDataItems();
99
+ i && this._fetchDatasetDataItems();
96
100
  }
97
101
  _sendChangeEvent() {
98
102
  this.dispatchEvent(
@@ -107,63 +111,67 @@ let o = class extends h(g, {
107
111
  );
108
112
  }
109
113
  setFilterDataItem(t) {
110
- const e = this._type, i = this.filter?.parameters?.[0]?.columnId || this.filter?.parameters?.[0]?.formulaId, r = t.detail?.dataItem?.id;
111
- this._type = t.detail?.dataItem?.type, this._subType = t.detail?.dataItem?.subtype, this._isFormula = t.detail?.dataItem?.isFormula;
112
- const a = _(
114
+ var s, a, p, d, h, f, u, g, y, x, _, I, v, k, $, z, m, D, w, S, F, E, C, L, U;
115
+ const e = this._type, o = ((p = (a = (s = this.filter) == null ? void 0 : s.parameters) == null ? void 0 : a[0]) == null ? void 0 : p.columnId) || ((f = (h = (d = this.filter) == null ? void 0 : d.parameters) == null ? void 0 : h[0]) == null ? void 0 : f.formulaId), i = (g = (u = t.detail) == null ? void 0 : u.dataItem) == null ? void 0 : g.id;
116
+ this._type = (x = (y = t.detail) == null ? void 0 : y.dataItem) == null ? void 0 : x.type, this._subType = (I = (_ = t.detail) == null ? void 0 : _.dataItem) == null ? void 0 : I.subtype, this._isFormula = (k = (v = t.detail) == null ? void 0 : v.dataItem) == null ? void 0 : k.isFormula;
117
+ const r = B(
113
118
  this._type,
114
119
  this._subType,
115
120
  this._isFormula
116
121
  );
117
- this.filter = structuredClone(this.filter ?? {}), a?.includes(this.filter?.expression) || (this.filter.expression = a?.[0]?.expression), this.filter.parameters = this.filter?.parameters ?? [], this.filter.parameters[0] = {
118
- datasetId: t.detail?.dataItem?.datasetId
119
- }, this._isFormula ? this.filter.parameters[0].formulaId = t.detail?.dataItem?.id : this.filter.parameters[0].columnId = t.detail?.dataItem?.id, t.detail?.dataItem?.lowestLevel, e !== this._type ? this._type === "hierarchy" ? (this.filter.expression = "? like ?", this.filter.parameters[1] = "") : this._type === "numeric" ? (this.filter.expression = "? > ?", this.filter.parameters[1] = 0) : this._type === "datetime" ? (this.filter.expression = "? < ?", this.filter.parameters[1] = (/* @__PURE__ */ new Date()).toISOString()) : (this.filter.expression = "? is not null", this.filter.parameters = [this.filter.parameters[0]]) : (
122
+ this.filter = structuredClone(this.filter ?? {}), r != null && r.includes(($ = this.filter) == null ? void 0 : $.expression) || (this.filter.expression = (z = r == null ? void 0 : r[0]) == null ? void 0 : z.expression), this.filter.parameters = ((m = this.filter) == null ? void 0 : m.parameters) ?? [], this.filter.parameters[0] = {
123
+ datasetId: (w = (D = t.detail) == null ? void 0 : D.dataItem) == null ? void 0 : w.datasetId
124
+ }, this._isFormula ? this.filter.parameters[0].formulaId = (F = (S = t.detail) == null ? void 0 : S.dataItem) == null ? void 0 : F.id : this.filter.parameters[0].columnId = (C = (E = t.detail) == null ? void 0 : E.dataItem) == null ? void 0 : C.id, (U = (L = t.detail) == null ? void 0 : L.dataItem) != null && U.lowestLevel, e !== this._type ? this._type === "hierarchy" ? (this.filter.expression = "? like ?", this.filter.parameters[1] = "") : this._type === "numeric" ? (this.filter.expression = "? > ?", this.filter.parameters[1] = 0) : this._type === "datetime" ? (this.filter.expression = "? < ?", this.filter.parameters[1] = (/* @__PURE__ */ new Date()).toISOString()) : (this.filter.expression = "? is not null", this.filter.parameters = [this.filter.parameters[0]]) : (
120
125
  // if same type and type is hierarchy but different column, reset the value
121
- i !== r && this._type === "hierarchy" && (this.filter.parameters[1] = ["? in ?", "? not in ?"].includes(
126
+ o !== i && this._type === "hierarchy" && (this.filter.parameters[1] = ["? in ?", "? not in ?"].includes(
122
127
  this.filter.expression
123
128
  ) ? [] : "")
124
129
  ), this._sendChangeEvent();
125
130
  }
126
131
  setFilterExpression(t) {
127
- const e = structuredClone(this.filter ?? {}), i = e.expression;
128
- if (e.expression = t.detail?.expression, i !== e.expression) {
132
+ var i, r, s, a, p, d, h, f;
133
+ const e = structuredClone(this.filter ?? {}), o = e.expression;
134
+ if (e.expression = (i = t.detail) == null ? void 0 : i.expression, o !== e.expression) {
129
135
  if (["? is null", "? is not null"].includes(e.expression))
130
136
  e.parameters = [e.parameters[0]];
131
137
  else if (this._type === "datetime")
132
138
  if (["YTD", "QTD", "MTD", "WTD"].includes(e.expression)) {
133
- const r = t?.detail?.unit;
134
- r && (e.parameters[1] = {
135
- unit: typeof r == "number" ? r : 1
139
+ const u = (r = t == null ? void 0 : t.detail) == null ? void 0 : r.unit;
140
+ u && (e.parameters[1] = {
141
+ unit: typeof u == "number" ? u : 1
136
142
  });
137
143
  } else if (["last_completed", "next_full", "to_date"].includes(e.expression)) {
138
- const r = e?.parameters?.[1]?.unit;
144
+ const u = (a = (s = e == null ? void 0 : e.parameters) == null ? void 0 : s[1]) == null ? void 0 : a.unit;
139
145
  e.parameters[1] = {
140
- unit: typeof r == "number" ? r : 1
146
+ unit: typeof u == "number" ? u : 1
141
147
  };
142
148
  } else if (["last_now", "last_available", "next_now"].includes(e.expression)) {
143
- const r = e?.parameters?.[1]?.unit, a = e?.parameters?.[1]?.quantity;
149
+ const u = (d = (p = e == null ? void 0 : e.parameters) == null ? void 0 : p[1]) == null ? void 0 : d.unit, g = (f = (h = e == null ? void 0 : e.parameters) == null ? void 0 : h[1]) == null ? void 0 : f.quantity;
144
150
  e.parameters[1] = {
145
- unit: typeof r == "number" ? r : 1,
146
- quantity: typeof a == "number" ? a : 1
151
+ unit: typeof u == "number" ? u : 1,
152
+ quantity: typeof g == "number" ? g : 1
147
153
  };
148
154
  } else
149
155
  e.parameters[1] = (/* @__PURE__ */ new Date()).toISOString();
150
- else this._type === "hierarchy" ? ["? in ?", "? not in ?"].includes(e.expression) ? ["? = ?", "? != ?"].includes(i) ? e.parameters[1] = e.parameters[1] ? [e.parameters[1]] : [] : e.parameters[1] = [] : ["? = ?", "? != ?"].includes(e.expression) ? ["? in ?", "? not in ?"].includes(i) ? e.parameters[1] = Array.isArray(e.parameters[1]) && e.parameters[1][0] ? e.parameters[1][0] : "" : e.parameters[1] = "" : e.parameters[1] = ["? in ?", "? not in ?"].includes(
151
- i
152
- ) ? "" : e.parameters[1] ?? "" : this._type === "numeric" && (["? in ?", "? not in ?"].includes(e.expression) && ["? in ?", "? not in ?"].includes(i) ? e.parameters[1] = e.parameters[1] ?? [] : ["? in ?", "? not in ?"].includes(e.expression) ? e.parameters[1] = [] : e.parameters[1] = ["? in ?", "? not in ?"].includes(
153
- i
156
+ else this._type === "hierarchy" ? ["? in ?", "? not in ?"].includes(e.expression) ? ["? = ?", "? != ?"].includes(o) ? e.parameters[1] = e.parameters[1] ? [e.parameters[1]] : [] : e.parameters[1] = [] : ["? = ?", "? != ?"].includes(e.expression) ? ["? in ?", "? not in ?"].includes(o) ? e.parameters[1] = Array.isArray(e.parameters[1]) && e.parameters[1][0] ? e.parameters[1][0] : "" : e.parameters[1] = "" : e.parameters[1] = ["? in ?", "? not in ?"].includes(
157
+ o
158
+ ) ? "" : e.parameters[1] ?? "" : this._type === "numeric" && (["? in ?", "? not in ?"].includes(e.expression) && ["? in ?", "? not in ?"].includes(o) ? e.parameters[1] = e.parameters[1] ?? [] : ["? in ?", "? not in ?"].includes(e.expression) ? e.parameters[1] = [] : e.parameters[1] = ["? in ?", "? not in ?"].includes(
159
+ o
154
160
  ) ? 0 : e.parameters[1] ?? 0);
155
161
  this.filter = e, this._sendChangeEvent();
156
162
  }
157
163
  }
158
164
  setFilterValue(t) {
159
- this.filter.parameters[1] = t?.detail?.value, this._sendChangeEvent();
165
+ var e;
166
+ this.filter.parameters[1] = (e = t == null ? void 0 : t.detail) == null ? void 0 : e.value, this._sendChangeEvent();
160
167
  }
161
168
  renderDataItemPicker() {
162
- return c`<luzmo-filter-data-item-picker
169
+ var t, e, o, i, r, s;
170
+ return T`<luzmo-filter-data-item-picker
163
171
  .language=${this.language}
164
172
  .contentLanguage=${this.contentLanguage}
165
173
  .size=${this.size}
166
- .dataItemId=${this._loading ? "" : this.filter?.parameters?.[0]?.columnId || this.filter?.parameters?.[0]?.formulaId}
174
+ .dataItemId=${this._loading ? "" : ((o = (e = (t = this.filter) == null ? void 0 : t.parameters) == null ? void 0 : e[0]) == null ? void 0 : o.columnId) || ((s = (r = (i = this.filter) == null ? void 0 : i.parameters) == null ? void 0 : r[0]) == null ? void 0 : s.formulaId)}
167
175
  .datasetsDataItems=${this._datasetsDataItems}
168
176
  .invalid=${!!this._error}
169
177
  .loading=${this._loading}
@@ -171,8 +179,9 @@ let o = class extends h(g, {
171
179
  ></luzmo-filter-data-item-picker>`;
172
180
  }
173
181
  renderExpressionPicker() {
174
- const t = !this.filter?.parameters?.[0]?.datasetId || !this.filter?.parameters?.[0]?.columnId;
175
- return c`<luzmo-filter-expression-picker
182
+ var e, o, i, r, s, a;
183
+ const t = !((i = (o = (e = this.filter) == null ? void 0 : e.parameters) == null ? void 0 : o[0]) != null && i.datasetId) || !((a = (s = (r = this.filter) == null ? void 0 : r.parameters) == null ? void 0 : s[0]) != null && a.columnId);
184
+ return T`<luzmo-filter-expression-picker
176
185
  .language=${this.language}
177
186
  .size=${this.size}
178
187
  .type=${this._type}
@@ -184,8 +193,9 @@ let o = class extends h(g, {
184
193
  ></luzmo-filter-expression-picker>`;
185
194
  }
186
195
  renderValuePicker() {
187
- const t = !this.filter?.parameters?.[0]?.datasetId || !this.filter?.parameters?.[0]?.columnId;
188
- return c`<luzmo-filter-value-picker
196
+ var e, o, i, r, s, a;
197
+ const t = !((i = (o = (e = this.filter) == null ? void 0 : e.parameters) == null ? void 0 : o[0]) != null && i.datasetId) || !((a = (s = (r = this.filter) == null ? void 0 : r.parameters) == null ? void 0 : s[0]) != null && a.columnId);
198
+ return T`<luzmo-filter-value-picker
189
199
  .apiUrl=${this.apiUrl}
190
200
  .authKey=${this.authKey}
191
201
  .authToken=${this.authToken}
@@ -201,59 +211,59 @@ let o = class extends h(g, {
201
211
  ></luzmo-filter-value-picker>`;
202
212
  }
203
213
  render() {
204
- return c`${this.renderDataItemPicker()} ${this.renderExpressionPicker()}
214
+ return T`${this.renderDataItemPicker()} ${this.renderExpressionPicker()}
205
215
  ${this.renderValuePicker()}`;
206
216
  }
207
217
  };
208
- s([
209
- n({ type: String, attribute: "api-url", reflect: !0 })
210
- ], o.prototype, "apiUrl", 2);
211
- s([
212
- n({ type: String, attribute: "auth-key", reflect: !0 })
213
- ], o.prototype, "authKey", 2);
214
- s([
215
- n({ type: String, attribute: "auth-token", reflect: !0 })
216
- ], o.prototype, "authToken", 2);
217
- s([
218
- n({ type: Number, attribute: "cache-time", reflect: !0 })
219
- ], o.prototype, "cacheTime", 2);
220
- s([
221
- n({ type: String, reflect: !0 })
222
- ], o.prototype, "language", 2);
223
- s([
224
- n({ type: String, reflect: !0 })
225
- ], o.prototype, "contentLanguage", 2);
226
- s([
227
- n({ type: String, attribute: "time-zone", reflect: !0 })
228
- ], o.prototype, "timeZone", 2);
229
- s([
230
- n({ type: Array, attribute: "dataset-ids", reflect: !0 })
231
- ], o.prototype, "datasetIds", 2);
232
- s([
233
- n({ type: Object, reflect: !1 })
234
- ], o.prototype, "filter", 2);
235
- s([
236
- m()
237
- ], o.prototype, "_type", 2);
238
- s([
239
- m()
240
- ], o.prototype, "_subType", 2);
241
- s([
242
- m()
243
- ], o.prototype, "_isFormula", 2);
244
- s([
245
- m()
246
- ], o.prototype, "_error", 2);
247
- s([
248
- m()
249
- ], o.prototype, "_loading", 2);
250
- s([
251
- m()
252
- ], o.prototype, "_datasetsDataItems", 2);
253
- o = s([
254
- f()
255
- ], o);
256
- customElements.get("luzmo-filter-item") || customElements.define("luzmo-filter-item", o);
218
+ n([
219
+ c({ type: String, attribute: "api-url", reflect: !0 })
220
+ ], l.prototype, "apiUrl", 2);
221
+ n([
222
+ c({ type: String, attribute: "auth-key", reflect: !0 })
223
+ ], l.prototype, "authKey", 2);
224
+ n([
225
+ c({ type: String, attribute: "auth-token", reflect: !0 })
226
+ ], l.prototype, "authToken", 2);
227
+ n([
228
+ c({ type: Number, attribute: "cache-time", reflect: !0 })
229
+ ], l.prototype, "cacheTime", 2);
230
+ n([
231
+ c({ type: String, reflect: !0 })
232
+ ], l.prototype, "language", 2);
233
+ n([
234
+ c({ type: String, reflect: !0 })
235
+ ], l.prototype, "contentLanguage", 2);
236
+ n([
237
+ c({ type: String, attribute: "time-zone", reflect: !0 })
238
+ ], l.prototype, "timeZone", 2);
239
+ n([
240
+ c({ type: Array, attribute: "dataset-ids", reflect: !0 })
241
+ ], l.prototype, "datasetIds", 2);
242
+ n([
243
+ c({ type: Object, reflect: !1 })
244
+ ], l.prototype, "filter", 2);
245
+ n([
246
+ b()
247
+ ], l.prototype, "_type", 2);
248
+ n([
249
+ b()
250
+ ], l.prototype, "_subType", 2);
251
+ n([
252
+ b()
253
+ ], l.prototype, "_isFormula", 2);
254
+ n([
255
+ b()
256
+ ], l.prototype, "_error", 2);
257
+ n([
258
+ b()
259
+ ], l.prototype, "_loading", 2);
260
+ n([
261
+ b()
262
+ ], l.prototype, "_datasetsDataItems", 2);
263
+ l = n([
264
+ A()
265
+ ], l);
266
+ customElements.get("luzmo-filter-item") || customElements.define("luzmo-filter-item", l);
257
267
  export {
258
- o as LuzmoFilterItem
268
+ l as LuzmoFilterItem
259
269
  };
@@ -17,7 +17,7 @@
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/picker");const l=require("lit"),c=require("@luzmo/lucero/utils"),r=require("lit/decorators.js"),o=require("../set-locale-BRRalqne.cjs");require("../filter-value-picker-datetime/index.cjs");require("../filter-value-picker-hierarchy/index.cjs");require("../filter-value-picker-numeric/index.cjs");const p=":host{--var: red}:host{--var: blue}";var g=Object.defineProperty,i=(n,e,a,m)=>{for(var u=void 0,s=n.length-1,h;s>=0;s--)(h=n[s])&&(u=h(e,a,u)||u);return u&&g(e,a,u),u};class t extends c.SizedMixin(c.LuzmoElement,{validSizes:Object.values(c.ElementSizes)}){constructor(){super(...arguments),this.language="en",this.contentLanguage="en",this._expressionsWithoutValuePicker=new Set(["? is null","? is not null","to_date"])}static get styles(){return[l.unsafeCSS(p)]}_sendChangeEvent(e){this.dispatchEvent(new CustomEvent("filter-value-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:e}}))}setFilterValue(e){e.stopPropagation(),this._sendChangeEvent(e?.detail?.value)}renderNumericValuePicker(){return l.html`<luzmo-filter-value-picker-numeric
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@luzmo/lucero/picker");const l=require("lit"),o=require("@luzmo/lucero/utils"),i=require("lit/decorators.js"),h=require("../set-locale-BRRalqne.cjs");require("../filter-value-picker-datetime/index.cjs");require("../filter-value-picker-hierarchy/index.cjs");require("../filter-value-picker-numeric/index.cjs");const g=":host{--var: red}:host{--var: blue}";var m=Object.defineProperty,a=(n,e,r,s)=>{for(var u=void 0,c=n.length-1,p;c>=0;c--)(p=n[c])&&(u=p(e,r,u)||u);return u&&m(e,r,u),u};class t extends o.SizedMixin(o.LuzmoElement,{validSizes:Object.values(o.ElementSizes)}){constructor(){super(...arguments),this.language="en",this.contentLanguage="en",this._expressionsWithoutValuePicker=new Set(["? is null","? is not null","to_date"])}static get styles(){return[l.unsafeCSS(g)]}_sendChangeEvent(e){this.dispatchEvent(new CustomEvent("filter-value-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:e}}))}setFilterValue(e){var r;e.stopPropagation(),this._sendChangeEvent((r=e==null?void 0:e.detail)==null?void 0:r.value)}renderNumericValuePicker(){return l.html`<luzmo-filter-value-picker-numeric
21
21
  .apiUrl=${this.apiUrl}
22
22
  .authKey=${this.authKey}
23
23
  .authToken=${this.authToken}
@@ -48,4 +48,4 @@
48
48
  .contentLanguage=${this.contentLanguage}
49
49
  .size=${this.size}
50
50
  @filter-value-changed=${this.setFilterValue}
51
- ></luzmo-filter-value-picker-datetime>`}willUpdate(e){e.has("language")&&this.language!==o.getLocale()&&([...o.targetLocales].includes(this.language??"en")||this.language==="en")&&o.setLocale(this.language)}render(){const e=this.valueType??"",a=this.filter?.expression;return!a||this._expressionsWithoutValuePicker.has(a)||!["numeric","hierarchy","datetime"].includes(e)?l.html``:e==="numeric"?this.renderNumericValuePicker():e==="datetime"?this.renderDateTimeValuePicker():this.renderHierarchyValuePicker()}}i([r.property({type:String,attribute:"api-url",reflect:!0})],t.prototype,"apiUrl");i([r.property({type:String,attribute:"auth-key",reflect:!0})],t.prototype,"authKey");i([r.property({type:String,attribute:"auth-token",reflect:!0})],t.prototype,"authToken");i([r.property({type:Number,attribute:"cache-time",reflect:!0})],t.prototype,"cacheTime");i([r.property({type:String,reflect:!0})],t.prototype,"language");i([r.property({type:String,attribute:"content-language",reflect:!0})],t.prototype,"contentLanguage");i([r.property({type:String,attribute:"time-zone",reflect:!0})],t.prototype,"timeZone");i([r.property({type:String,attribute:"value-type",reflect:!0})],t.prototype,"valueType");i([r.property({type:Object,reflect:!1})],t.prototype,"filter");customElements.get("luzmo-filter-value-picker")||customElements.define("luzmo-filter-value-picker",t);exports.LuzmoFilterValuePicker=t;
51
+ ></luzmo-filter-value-picker-datetime>`}willUpdate(e){e.has("language")&&this.language!==h.getLocale()&&([...h.targetLocales].includes(this.language??"en")||this.language==="en")&&h.setLocale(this.language)}render(){var s;const e=this.valueType??"",r=(s=this.filter)==null?void 0:s.expression;return!r||this._expressionsWithoutValuePicker.has(r)||!["numeric","hierarchy","datetime"].includes(e)?l.html``:e==="numeric"?this.renderNumericValuePicker():e==="datetime"?this.renderDateTimeValuePicker():this.renderHierarchyValuePicker()}}a([i.property({type:String,attribute:"api-url",reflect:!0})],t.prototype,"apiUrl");a([i.property({type:String,attribute:"auth-key",reflect:!0})],t.prototype,"authKey");a([i.property({type:String,attribute:"auth-token",reflect:!0})],t.prototype,"authToken");a([i.property({type:Number,attribute:"cache-time",reflect:!0})],t.prototype,"cacheTime");a([i.property({type:String,reflect:!0})],t.prototype,"language");a([i.property({type:String,attribute:"content-language",reflect:!0})],t.prototype,"contentLanguage");a([i.property({type:String,attribute:"time-zone",reflect:!0})],t.prototype,"timeZone");a([i.property({type:String,attribute:"value-type",reflect:!0})],t.prototype,"valueType");a([i.property({type:Object,reflect:!1})],t.prototype,"filter");customElements.get("luzmo-filter-value-picker")||customElements.define("luzmo-filter-value-picker",t);exports.LuzmoFilterValuePicker=t;
@@ -18,10 +18,10 @@
18
18
  * SOFTWARE.
19
19
  * */
20
20
  import "@luzmo/lucero/picker";
21
- import { unsafeCSS as m, html as a } from "lit";
22
- import { SizedMixin as s, LuzmoElement as g, ElementSizes as z } from "@luzmo/lucero/utils";
23
- import { property as r } from "lit/decorators.js";
24
- import { g as h, t as d, s as p } from "../set-locale-hKTMz37h.js";
21
+ import { unsafeCSS as s, html as a } from "lit";
22
+ import { SizedMixin as g, LuzmoElement as z, ElementSizes as h } from "@luzmo/lucero/utils";
23
+ import { property as t } from "lit/decorators.js";
24
+ import { g as d, t as p, s as f } from "../set-locale-Dp3N_gXN.js";
25
25
  import "../filter-value-picker-datetime/index.js";
26
26
  import "../filter-value-picker-hierarchy/index.js";
27
27
  import "../filter-value-picker-numeric/index.js";
@@ -31,14 +31,14 @@ import "../filter-value-picker-numeric/index.js";
31
31
  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);
32
32
  }
33
33
  })();
34
- const f = ":host{--var: red}:host{--var: blue}";
35
- var b = Object.defineProperty, t = (u, e, l, v) => {
36
- for (var i = void 0, n = u.length - 1, c; n >= 0; n--)
37
- (c = u[n]) && (i = c(e, l, i) || i);
38
- return i && b(e, l, i), i;
34
+ const b = ":host{--var: red}:host{--var: blue}";
35
+ var y = Object.defineProperty, l = (u, e, r, n) => {
36
+ for (var i = void 0, c = u.length - 1, m; c >= 0; c--)
37
+ (m = u[c]) && (i = m(e, r, i) || i);
38
+ return i && y(e, r, i), i;
39
39
  };
40
- class o extends s(g, {
41
- validSizes: Object.values(z)
40
+ class o extends g(z, {
41
+ validSizes: Object.values(h)
42
42
  }) {
43
43
  constructor() {
44
44
  super(...arguments), this.language = "en", this.contentLanguage = "en", this._expressionsWithoutValuePicker = /* @__PURE__ */ new Set([
@@ -48,7 +48,7 @@ class o extends s(g, {
48
48
  ]);
49
49
  }
50
50
  static get styles() {
51
- return [m(f)];
51
+ return [s(b)];
52
52
  }
53
53
  _sendChangeEvent(e) {
54
54
  this.dispatchEvent(
@@ -63,7 +63,8 @@ class o extends s(g, {
63
63
  );
64
64
  }
65
65
  setFilterValue(e) {
66
- e.stopPropagation(), this._sendChangeEvent(e?.detail?.value);
66
+ var r;
67
+ e.stopPropagation(), this._sendChangeEvent((r = e == null ? void 0 : e.detail) == null ? void 0 : r.value);
67
68
  }
68
69
  renderNumericValuePicker() {
69
70
  return a`<luzmo-filter-value-picker-numeric
@@ -106,39 +107,40 @@ class o extends s(g, {
106
107
  ></luzmo-filter-value-picker-datetime>`;
107
108
  }
108
109
  willUpdate(e) {
109
- e.has("language") && this.language !== h() && ([...d].includes(this.language ?? "en") || this.language === "en") && p(this.language);
110
+ e.has("language") && this.language !== d() && ([...p].includes(this.language ?? "en") || this.language === "en") && f(this.language);
110
111
  }
111
112
  render() {
112
- const e = this.valueType ?? "", l = this.filter?.expression;
113
- return !l || this._expressionsWithoutValuePicker.has(l) || !["numeric", "hierarchy", "datetime"].includes(e) ? a`` : e === "numeric" ? this.renderNumericValuePicker() : e === "datetime" ? this.renderDateTimeValuePicker() : this.renderHierarchyValuePicker();
113
+ var n;
114
+ const e = this.valueType ?? "", r = (n = this.filter) == null ? void 0 : n.expression;
115
+ return !r || this._expressionsWithoutValuePicker.has(r) || !["numeric", "hierarchy", "datetime"].includes(e) ? a`` : e === "numeric" ? this.renderNumericValuePicker() : e === "datetime" ? this.renderDateTimeValuePicker() : this.renderHierarchyValuePicker();
114
116
  }
115
117
  }
116
- t([
117
- r({ type: String, attribute: "api-url", reflect: !0 })
118
+ l([
119
+ t({ type: String, attribute: "api-url", reflect: !0 })
118
120
  ], o.prototype, "apiUrl");
119
- t([
120
- r({ type: String, attribute: "auth-key", reflect: !0 })
121
+ l([
122
+ t({ type: String, attribute: "auth-key", reflect: !0 })
121
123
  ], o.prototype, "authKey");
122
- t([
123
- r({ type: String, attribute: "auth-token", reflect: !0 })
124
+ l([
125
+ t({ type: String, attribute: "auth-token", reflect: !0 })
124
126
  ], o.prototype, "authToken");
125
- t([
126
- r({ type: Number, attribute: "cache-time", reflect: !0 })
127
+ l([
128
+ t({ type: Number, attribute: "cache-time", reflect: !0 })
127
129
  ], o.prototype, "cacheTime");
128
- t([
129
- r({ type: String, reflect: !0 })
130
+ l([
131
+ t({ type: String, reflect: !0 })
130
132
  ], o.prototype, "language");
131
- t([
132
- r({ type: String, attribute: "content-language", reflect: !0 })
133
+ l([
134
+ t({ type: String, attribute: "content-language", reflect: !0 })
133
135
  ], o.prototype, "contentLanguage");
134
- t([
135
- r({ type: String, attribute: "time-zone", reflect: !0 })
136
+ l([
137
+ t({ type: String, attribute: "time-zone", reflect: !0 })
136
138
  ], o.prototype, "timeZone");
137
- t([
138
- r({ type: String, attribute: "value-type", reflect: !0 })
139
+ l([
140
+ t({ type: String, attribute: "value-type", reflect: !0 })
139
141
  ], o.prototype, "valueType");
140
- t([
141
- r({ type: Object, reflect: !1 })
142
+ l([
143
+ t({ type: Object, reflect: !1 })
142
144
  ], o.prototype, "filter");
143
145
  customElements.get("luzmo-filter-value-picker") || customElements.define("luzmo-filter-value-picker", o);
144
146
  export {
@@ -17,23 +17,23 @@
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/date-time-picker");require("@luzmo/lucero/number-field");require("@luzmo/lucero/picker");require("@luzmo/lucero/text-field");const a=require("lit"),c=require("@luzmo/lucero/utils"),m=require("../set-locale-BRRalqne.cjs"),l=require("../periods.const-3jA-ECRf.cjs"),n=require("lit/decorators.js"),f=":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)}";var g=Object.defineProperty,u=(o,e,t,i)=>{for(var r=void 0,p=o.length-1,h;p>=0;p--)(h=o[p])&&(r=h(e,t,r)||r);return r&&g(e,t,r),r};class s extends c.SizedMixin(c.LuzmoElement,{validSizes:Object.values(c.ElementSizes)}){constructor(){super(...arguments),this.language="en",this.contentLanguage="en"}static get styles(){return[a.unsafeCSS(f)]}willUpdate(e){const t=e.has("language"),i=e.get("filter");t&&this.language!==m.getLocale()&&([...m.targetLocales].includes(this.language??"en")||this.language==="en")&&m.setLocale(this.language),i&&(["last_now","last_available","next_now"].includes(this.filter?.expression)?this.filter.parameters[1]={quantity:this.filter?.parameters?.[1]?.quantity??1,unit:this.filter?.parameters?.[1]?.unit??1}:["last_completed","next_full","to_date"].includes(this.filter?.expression)?this.filter.parameters[1]={unit:this.filter?.parameters?.[1]?.unit??1}:this.filter.parameters[1]=typeof this.filter.parameters[1]=="string"?this.filter.parameters[1]:new Date().toISOString())}_sendChangeEvent(){this.filter.parameters=[{...this.filter?.parameters?.[0]},this._value],this.dispatchEvent(new CustomEvent("filter-value-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:this._value}}))}setDate(e){this._value=e.detail.value,this._value!==this.filter?.parameters?.[1]&&this._sendChangeEvent()}setUnit(e){const t=l.DATETIME_LEVELS.find(i=>i.key===e?.target?.value)?.level;this.filter?.parameters?.[1]?.unit!==t&&(this._value={unit:t??1,quantity:this.filter?.parameters?.[1]?.quantity??1},this._sendChangeEvent())}setQuantity(e){const t=e?.target?.value;this.filter?.parameters?.[1]?.quantity!==t&&(this._value={quantity:t,unit:this.filter?.parameters?.[1]?.unit??1},this._sendChangeEvent())}renderDatePicker(){let e="second";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"),a.html`<luzmo-date-time-picker
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@luzmo/lucero/date-time-picker");require("@luzmo/lucero/number-field");require("@luzmo/lucero/picker");require("@luzmo/lucero/text-field");const c=require("lit"),_=require("@luzmo/lucero/utils"),E=require("../set-locale-BRRalqne.cjs"),d=require("../periods.const-3jA-ECRf.cjs"),v=require("lit/decorators.js"),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)}";var S=Object.defineProperty,y=(z,e,t,r)=>{for(var i=void 0,s=z.length-1,a;s>=0;s--)(a=z[s])&&(i=a(e,t,i)||i);return i&&S(e,t,i),i};class m extends _.SizedMixin(_.LuzmoElement,{validSizes:Object.values(_.ElementSizes)}){constructor(){super(...arguments),this.language="en",this.contentLanguage="en"}static get styles(){return[c.unsafeCSS(L)]}willUpdate(e){var i,s,a,l,n,u,p,o,h,f,g;const t=e.has("language"),r=e.get("filter");t&&this.language!==E.getLocale()&&([...E.targetLocales].includes(this.language??"en")||this.language==="en")&&E.setLocale(this.language),r&&(["last_now","last_available","next_now"].includes((i=this.filter)==null?void 0:i.expression)?this.filter.parameters[1]={quantity:((l=(a=(s=this.filter)==null?void 0:s.parameters)==null?void 0:a[1])==null?void 0:l.quantity)??1,unit:((p=(u=(n=this.filter)==null?void 0:n.parameters)==null?void 0:u[1])==null?void 0:p.unit)??1}:["last_completed","next_full","to_date"].includes((o=this.filter)==null?void 0:o.expression)?this.filter.parameters[1]={unit:((g=(f=(h=this.filter)==null?void 0:h.parameters)==null?void 0:f[1])==null?void 0:g.unit)??1}:this.filter.parameters[1]=typeof this.filter.parameters[1]=="string"?this.filter.parameters[1]:new Date().toISOString())}_sendChangeEvent(){var e,t;this.filter.parameters=[{...(t=(e=this.filter)==null?void 0:e.parameters)==null?void 0:t[0]},this._value],this.dispatchEvent(new CustomEvent("filter-value-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:this._value}}))}setDate(e){var t,r;this._value=e.detail.value,this._value!==((r=(t=this.filter)==null?void 0:t.parameters)==null?void 0:r[1])&&this._sendChangeEvent()}setUnit(e){var r,i,s,a,l,n,u;const t=(r=d.DATETIME_LEVELS.find(p=>{var o;return p.key===((o=e==null?void 0:e.target)==null?void 0:o.value)}))==null?void 0:r.level;((a=(s=(i=this.filter)==null?void 0:i.parameters)==null?void 0:s[1])==null?void 0:a.unit)!==t&&(this._value={unit:t??1,quantity:((u=(n=(l=this.filter)==null?void 0:l.parameters)==null?void 0:n[1])==null?void 0:u.quantity)??1},this._sendChangeEvent())}setQuantity(e){var r,i,s,a,l,n,u;const t=(r=e==null?void 0:e.target)==null?void 0:r.value;((a=(s=(i=this.filter)==null?void 0:i.parameters)==null?void 0:s[1])==null?void 0:a.quantity)!==t&&(this._value={quantity:t,unit:((u=(n=(l=this.filter)==null?void 0:l.parameters)==null?void 0:n[1])==null?void 0:u.unit)??1},this._sendChangeEvent())}renderDatePicker(){var t,r,i,s,a,l,n,u,p,o,h,f,g,k;let e="second";return((i=(r=(t=this.filter)==null?void 0:t.parameters)==null?void 0:r[0])==null?void 0:i.lowestLevel)>4&&(((l=(a=(s=this.filter)==null?void 0:s.parameters)==null?void 0:a[0])==null?void 0:l.lowestLevel)===5?e="day":((p=(u=(n=this.filter)==null?void 0:n.parameters)==null?void 0:u[0])==null?void 0:p.lowestLevel)===6?e="hour":((f=(h=(o=this.filter)==null?void 0:o.parameters)==null?void 0:h[0])==null?void 0:f.lowestLevel)===7?e="minute":e="second"),c.html`<luzmo-date-time-picker
21
21
  .size=${this.size}
22
22
  .precision=${e}
23
23
  .timeZone=${this.timeZone}
24
24
  @change=${this.setDate}
25
- .value=${this.filter?.parameters?.[1]}
26
- ></luzmo-date-time-picker>`}renderQuantityField(){return a.html`<luzmo-number-field
25
+ .value=${(k=(g=this.filter)==null?void 0:g.parameters)==null?void 0:k[1]}
26
+ ></luzmo-date-time-picker>`}renderQuantityField(){var e,t,r;return c.html`<luzmo-number-field
27
27
  .size=${this.size}
28
- .value=${this.filter?.parameters?.[1]?.quantity}
28
+ .value=${(r=(t=(e=this.filter)==null?void 0:e.parameters)==null?void 0:t[1])==null?void 0:r.quantity}
29
29
  @input=${this.setQuantity}
30
30
  @change=${this.setQuantity}
31
- ></luzmo-number-field>`}renderUnitPicker(){const e=l.DATETIME_LEVELS.map(i=>a.html`<luzmo-menu-item .value=${i.key}>
32
- ${i.i18n()}
33
- </luzmo-menu-item>`),t=l.DATETIME_LEVELS.find(i=>i.level===this.filter?.parameters?.[1]?.unit)?.key??l.DATETIME_LEVELS?.[0]?.key;return a.html`<luzmo-picker
31
+ ></luzmo-number-field>`}renderUnitPicker(){var r,i,s;const e=d.DATETIME_LEVELS.map(a=>c.html`<luzmo-menu-item .value=${a.key}>
32
+ ${a.i18n()}
33
+ </luzmo-menu-item>`),t=((r=d.DATETIME_LEVELS.find(a=>{var l,n,u;return a.level===((u=(n=(l=this.filter)==null?void 0:l.parameters)==null?void 0:n[1])==null?void 0:u.unit)}))==null?void 0:r.key)??((s=(i=d.DATETIME_LEVELS)==null?void 0:i[0])==null?void 0:s.key);return c.html`<luzmo-picker
34
34
  .size=${this.size}
35
35
  .value=${t}
36
36
  @change=${this.setUnit}
37
37
  variant="highlight"
38
38
  >${e}</luzmo-picker
39
- >`}render(){const e=this.filter?.expression;return["last_now","last_available","next_now"].includes(e)?a.html`${this.renderQuantityField()}${this.renderUnitPicker()}`:["last_completed","next_full"].includes(e)?this.renderUnitPicker():this.renderDatePicker()}}u([n.property({type:String,reflect:!0})],s.prototype,"language");u([n.property({type:String,attribute:"content-language",reflect:!0})],s.prototype,"contentLanguage");u([n.property({type:String,attribute:"time-zone",reflect:!0})],s.prototype,"timeZone");u([n.property({type:Object,reflect:!1})],s.prototype,"filter");customElements.get("luzmo-filter-value-picker-datetime")||customElements.define("luzmo-filter-value-picker-datetime",s);exports.LuzmoFilterValuePickerDatetime=s;
39
+ >`}render(){var t;const e=(t=this.filter)==null?void 0:t.expression;return["last_now","last_available","next_now"].includes(e)?c.html`${this.renderQuantityField()}${this.renderUnitPicker()}`:["last_completed","next_full"].includes(e)?this.renderUnitPicker():this.renderDatePicker()}}y([v.property({type:String,reflect:!0})],m.prototype,"language");y([v.property({type:String,attribute:"content-language",reflect:!0})],m.prototype,"contentLanguage");y([v.property({type:String,attribute:"time-zone",reflect:!0})],m.prototype,"timeZone");y([v.property({type:Object,reflect:!1})],m.prototype,"filter");customElements.get("luzmo-filter-value-picker-datetime")||customElements.define("luzmo-filter-value-picker-datetime",m);exports.LuzmoFilterValuePickerDatetime=m;