@luzmo/analytics-components-kit 1.0.1-alpha.84 → 1.0.1-alpha.85

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 (237) hide show
  1. package/angular/components/droppable-slot.component.ts +2 -2
  2. package/angular/esm/components/droppable-slot.component.d.ts +2 -2
  3. package/angular/esm/types.d.ts +1 -1
  4. package/angular/types.ts +2 -2
  5. package/components/ai-chat-messages-container/index.cjs +1 -1
  6. package/components/ai-chat-messages-container/index.js +2 -2
  7. package/components/ai-interaction-textarea/index.cjs +50 -0
  8. package/components/ai-interaction-textarea/index.d.ts +1 -1
  9. package/components/ai-interaction-textarea/index.js +152 -0
  10. package/components/area-chart-options.config-Bl8bhhOo.cjs +20 -0
  11. package/components/{area-chart-options.config-_J0sG4NF.js → area-chart-options.config-u8itidsi.js} +14 -26
  12. package/components/bar-chart-options.config-CePAqM83.cjs +20 -0
  13. package/components/{bar-chart-options.config-D1mb5TDl.js → bar-chart-options.config-DIirbAJ0.js} +21 -35
  14. package/components/box-plot-options.config-BVNrV2eD.cjs +20 -0
  15. package/components/{box-plot-options.config-xu_i6ms7.js → box-plot-options.config-BWROiguA.js} +52 -88
  16. package/components/{bubble-chart-options.config-BacgXkJ_.js → bubble-chart-options.config-4QD8VPhU.js} +9 -18
  17. package/components/bubble-chart-options.config-BDgOe3GQ.cjs +20 -0
  18. package/components/{bullet-chart-options.config-CDPpX1yc.js → bullet-chart-options.config-3bH7uekx.js} +1 -1
  19. package/components/{bullet-chart-options.config-DfS4Bwds.cjs → bullet-chart-options.config-tWb6Fio-.cjs} +1 -1
  20. package/components/calculate-data-item-icon-C8CbsMQf.js +139 -0
  21. package/components/{calculate-data-item-icon-DjW1_RI1.cjs → calculate-data-item-icon-CX4VW9Km.cjs} +1 -1
  22. package/components/{choropleth-map-options.config-B_W9-rhe.js → choropleth-map-options.config-CMxx3ORp.js} +63 -84
  23. package/components/choropleth-map-options.config-CWJACFd0.cjs +20 -0
  24. package/components/circular-gauge-options.config-BMxgq3zH.cjs +20 -0
  25. package/components/{circular-gauge-options.config-DAIjz4Rl.js → circular-gauge-options.config-DhIKn44k.js} +23 -36
  26. package/components/{color-DuJ4-73S.js → color-B7m0j8lX.js} +941 -950
  27. package/components/color-Czp4Im5q.cjs +20 -0
  28. package/components/{color-range-utils-Bvo9sm5A.js → color-range-utils-BSfqtB3A.js} +31 -32
  29. package/components/color-range-utils-DYYR-iwx.cjs +20 -0
  30. package/components/column-chart-options.config-BV9R3ssH.cjs +20 -0
  31. package/components/{column-chart-options.config-B5SjBVdy.js → column-chart-options.config-D5-yR7iq.js} +27 -37
  32. package/components/conditional-number-options.config-Co099Qfm.cjs +20 -0
  33. package/components/{conditional-number-options.config-BCEpSK9J.js → conditional-number-options.config-DPYsdML5.js} +24 -40
  34. package/components/dataset-selector-list/index.cjs +11 -11
  35. package/components/dataset-selector-list/index.js +65 -69
  36. package/components/dataset-selector-row/dataset-selector-row.d.ts +1 -0
  37. package/components/dataset-selector-row/index.cjs +79 -0
  38. package/components/dataset-selector-row/index.d.ts +1 -1
  39. package/components/dataset-selector-row/index.js +209 -0
  40. package/components/{date-comparison-filter-options.config-JA_yYpJa.js → date-comparison-filter-options.config-CSwGyuBg.js} +3 -6
  41. package/components/{date-comparison-filter-options.config-DAVncmi0.cjs → date-comparison-filter-options.config-QaoWaFUn.cjs} +1 -1
  42. package/components/{date-filter-options.config-DBRxlTWy.js → date-filter-options.config-BTVyHRkp.js} +3 -6
  43. package/components/{date-filter-options.config-CWPMtA18.cjs → date-filter-options.config-n-zhWaYa.cjs} +1 -1
  44. package/components/display-settings/index.cjs +1 -1
  45. package/components/display-settings/index.js +1 -1
  46. package/components/display-settings-binning/index.cjs +5 -5
  47. package/components/display-settings-binning/index.js +29 -30
  48. package/components/display-settings-datetime/index.cjs +29 -29
  49. package/components/display-settings-datetime/index.js +112 -120
  50. package/components/display-settings-grand-totals/index.cjs +4 -4
  51. package/components/display-settings-grand-totals/index.js +23 -24
  52. package/components/display-settings-numeric/index.cjs +48 -48
  53. package/components/display-settings-numeric/index.js +194 -211
  54. package/components/display-settings-period-over-period/index.cjs +16 -16
  55. package/components/display-settings-period-over-period/index.js +91 -97
  56. package/components/{donut-chart-options.config-BulUEiaH.js → donut-chart-options.config-3ZqX8Cbb.js} +21 -37
  57. package/components/donut-chart-options.config-BQyPgnC9.cjs +20 -0
  58. package/components/draggable-data-item/index.cjs +8 -8
  59. package/components/draggable-data-item/index.js +44 -45
  60. package/components/draggable-data-item-level/index.cjs +11 -11
  61. package/components/draggable-data-item-level/index.js +89 -92
  62. package/components/{dropdown-filter-options.config-D9dvPypF.js → dropdown-filter-options.config-CGJTtgAX.js} +7 -10
  63. package/components/{dropdown-filter-options.config-DS-MORmq.cjs → dropdown-filter-options.config-DJvfCTk7.cjs} +1 -1
  64. package/components/droppable-slot/droppable-slot.d.ts +2 -2
  65. package/components/droppable-slot/index.cjs +20 -20
  66. package/components/droppable-slot/index.js +167 -181
  67. package/components/edit-item/index.cjs +9 -9
  68. package/components/edit-item/index.js +116 -119
  69. package/components/edit-option/index.cjs +1 -1
  70. package/components/edit-option/index.js +1 -1
  71. package/components/edit-option-action-button-group/index.cjs +8 -8
  72. package/components/edit-option-action-button-group/index.js +52 -53
  73. package/components/{edit-option-base-DIc7iC-b.js → edit-option-base-Bh29-Cak.js} +1 -1
  74. package/components/{edit-option-base-VhTih9T1.cjs → edit-option-base-tFr8Qg2B.cjs} +1 -1
  75. package/components/edit-option-color-palette-picker/index.cjs +1 -1
  76. package/components/edit-option-color-palette-picker/index.js +1 -1
  77. package/components/edit-option-color-picker/index.cjs +1 -1
  78. package/components/edit-option-color-picker/index.js +1 -1
  79. package/components/edit-option-color-range/index.cjs +19 -19
  80. package/components/edit-option-color-range/index.js +106 -117
  81. package/components/edit-option-multi-language-field/index.cjs +3 -3
  82. package/components/edit-option-multi-language-field/index.js +26 -27
  83. package/components/edit-option-number-field/index.cjs +1 -1
  84. package/components/edit-option-number-field/index.js +1 -1
  85. package/components/edit-option-picker/index.cjs +5 -5
  86. package/components/edit-option-picker/index.js +7 -7
  87. package/components/edit-option-position-picker/index.cjs +4 -4
  88. package/components/edit-option-position-picker/index.js +21 -25
  89. package/components/edit-option-positions-number-field/index.cjs +9 -9
  90. package/components/edit-option-positions-number-field/index.js +76 -81
  91. package/components/edit-option-radio-button-group/index.cjs +6 -6
  92. package/components/edit-option-radio-button-group/index.js +21 -22
  93. package/components/edit-option-slider/index.cjs +1 -1
  94. package/components/edit-option-slider/index.js +1 -1
  95. package/components/edit-option-switch/index.cjs +1 -1
  96. package/components/edit-option-switch/index.js +1 -1
  97. package/components/edit-option-text-field/index.cjs +2 -2
  98. package/components/edit-option-text-field/index.js +22 -23
  99. package/components/en--a5SfjnM.cjs +20 -0
  100. package/components/en-CtCctD2c.js +1483 -0
  101. package/components/{en-GB-DG6uS3sM.cjs → en-GB-CXVKFWyH.cjs} +1 -1
  102. package/components/{en-GB-CEHEs8F2.js → en-GB-CbNfyZMo.js} +1 -1
  103. package/components/{evolution-number-options.config-DzkfeoIN.js → evolution-number-options.config-BIPO_4n3.js} +11 -14
  104. package/components/{evolution-number-options.config-BgIZY4gQ.cjs → evolution-number-options.config-Bc9eKYnn.cjs} +1 -1
  105. package/components/{extrapolate-color-0j_AeYkz.cjs → extrapolate-color-C0n1UDs-.cjs} +1 -1
  106. package/components/{extrapolate-color-CC9CURf6.js → extrapolate-color-v1PimdQr.js} +1 -1
  107. package/components/filter-data-item-picker/index.cjs +7 -7
  108. package/components/filter-data-item-picker/index.js +85 -86
  109. package/components/filter-expression-picker/index.cjs +1 -1
  110. package/components/filter-expression-picker/index.js +1 -1
  111. package/components/filter-item/index.cjs +6 -6
  112. package/components/filter-item/index.js +109 -119
  113. package/components/filter-value-picker/index.cjs +2 -2
  114. package/components/filter-value-picker/index.js +34 -36
  115. package/components/filter-value-picker-datetime/index.cjs +8 -8
  116. package/components/filter-value-picker-datetime/index.js +56 -71
  117. package/components/filter-value-picker-hierarchy/index.cjs +12 -12
  118. package/components/filter-value-picker-hierarchy/index.js +113 -124
  119. package/components/filter-value-picker-numeric/index.cjs +8 -8
  120. package/components/filter-value-picker-numeric/index.js +101 -110
  121. package/components/{focusable-DCIFkpiW.js → focusable-BS2pbY7w.js} +24 -26
  122. package/components/focusable-QLh-LlNt.cjs +20 -0
  123. package/components/{funnel-chart-options.config-C_VjTOvD.js → funnel-chart-options.config-CrJy2U7_.js} +5 -20
  124. package/components/funnel-chart-options.config-DrP4AFgk.cjs +20 -0
  125. package/components/{get-css-variable-DLiZYZEi.cjs → get-css-variable-CuDaWSjr.cjs} +2 -2
  126. package/components/{get-css-variable-YlLiVgo8.js → get-css-variable-DEf4GhTH.js} +4 -4
  127. package/components/grid/index.cjs +46 -46
  128. package/components/grid/index.js +2612 -1873
  129. package/components/heat-map-options.config-CIHnPdYE.cjs +20 -0
  130. package/components/{heat-map-options.config-BnLWe8jS.js → heat-map-options.config-CmL87j1j.js} +35 -41
  131. package/components/{heat-table-options.config-CUsDdgUr.js → heat-table-options.config-BrCYAgYD.js} +60 -88
  132. package/components/heat-table-options.config-DTlZRc_i.cjs +20 -0
  133. package/components/helpers-9I0oLoUB.cjs +20 -0
  134. package/components/helpers-bR8Ibjqh.js +79 -0
  135. package/components/{hexbin-map-options.config-F-7uCqxb.js → hexbin-map-options.config-BguV1w8q.js} +20 -38
  136. package/components/hexbin-map-options.config-CKnn3VAB.cjs +20 -0
  137. package/components/{index-Do7O9azB.js → index-3WsfvkZF.js} +112 -123
  138. package/components/{index-PMDgRSzR.js → index-BDFBUGBc.js} +94 -104
  139. package/components/index-BGb_wRRW.js +1766 -0
  140. package/components/{index-BPNsFiyq.cjs → index-BNAmjOkm.cjs} +4 -4
  141. package/components/index-BUal0r_D.cjs +121 -0
  142. package/components/index-D1Y5TRsH.cjs +20 -0
  143. package/components/index-DvkzMbLt.cjs +249 -0
  144. package/components/{index-CdIUfo-L.js → index-haa7WNrl.js} +453 -481
  145. package/components/index.cjs +1 -60
  146. package/components/index.js +102 -281
  147. package/components/item-options-configs.cjs +1 -1
  148. package/components/item-options-configs.js +37 -37
  149. package/components/{line-chart-options.config-DB3IsXXr.js → line-chart-options.config-BhirTGqD.js} +13 -28
  150. package/components/line-chart-options.config-Cqwou5u6.cjs +20 -0
  151. package/components/{localize-r7ALOUy_.cjs → localize-C4zNlrwK.cjs} +1 -1
  152. package/components/{localize-BX7q0S0M.js → localize-CcDpq940.js} +10 -10
  153. package/components/{marker-map-options.config-DPJ955tt.js → marker-map-options.config-Bx17jmiq.js} +1 -1
  154. package/components/{marker-map-options.config-_FYZzRwA.cjs → marker-map-options.config-CvhCylSC.cjs} +1 -1
  155. package/components/{pivot-table-options.config-DNK_AIG7.js → pivot-table-options.config-CFc7y0IT.js} +15 -24
  156. package/components/pivot-table-options.config-uZDAertf.cjs +20 -0
  157. package/components/{pyramid-chart-options.config-CcVMatYx.js → pyramid-chart-options.config-2Waxb11l.js} +29 -43
  158. package/components/pyramid-chart-options.config-DoGfEvzU.cjs +20 -0
  159. package/components/{radar-chart-options.config-CUZn_3Fd.js → radar-chart-options.config-CPN5fOl8.js} +11 -23
  160. package/components/radar-chart-options.config-CtNUMN1l.cjs +20 -0
  161. package/components/{regular-table-options.config-BoLZsBry.js → regular-table-options.config-CFKCJQK1.js} +17 -23
  162. package/components/{regular-table-options.config-DTx3RTnS.cjs → regular-table-options.config-YRuoijIk.cjs} +1 -1
  163. package/components/route-map-options.config-CVTk5RVL.cjs +20 -0
  164. package/components/{route-map-options.config-CN86T7c0.js → route-map-options.config-CyolTJfK.js} +87 -109
  165. package/components/{sankey-diagram-options.config-RFB83YLZ.cjs → sankey-diagram-options.config-D7OSvSqm.cjs} +1 -1
  166. package/components/{sankey-diagram-options.config-tVLKy_Zn.js → sankey-diagram-options.config-Ldjk84ro.js} +7 -10
  167. package/components/scatter-plot-options.config-5gN7pMTm.cjs +20 -0
  168. package/components/{scatter-plot-options.config-Corlzno1.js → scatter-plot-options.config-CfxEfkQ1.js} +56 -86
  169. package/components/{search-filter-options.config-BE3JhR-F.js → search-filter-options.config-C0syQmP4.js} +3 -6
  170. package/components/{search-filter-options.config-BCaDlYqZ.cjs → search-filter-options.config-Oqco9BKj.cjs} +1 -1
  171. package/components/{set-locale-B-Tz2sdI.js → set-locale-nv7fWEtl.js} +1 -8
  172. package/components/slicer-filter-options.config-CrusP6a0.cjs +20 -0
  173. package/components/{slicer-filter-options.config-3JZZcw5C.js → slicer-filter-options.config-DmOe3440.js} +9 -18
  174. package/components/{slider-filter-options.config-DH4SS8wH.js → slider-filter-options.config-B1M8RcDs.js} +1 -1
  175. package/components/{slider-filter-options.config-_8Z2zKmU.cjs → slider-filter-options.config-k45I-t6G.cjs} +1 -1
  176. package/components/slot-contents-picker/index.cjs +33 -33
  177. package/components/slot-contents-picker/index.js +194 -205
  178. package/components/slot-menu/index.cjs +12 -12
  179. package/components/slot-menu/index.js +171 -184
  180. package/components/slot-menu-list/index.cjs +3 -3
  181. package/components/slot-menu-list/index.js +97 -103
  182. package/components/speedometer-chart-options.config-B4ceg_qI.cjs +20 -0
  183. package/components/{speedometer-chart-options.config-SL581yOa.js → speedometer-chart-options.config-CzOmuEF8.js} +31 -53
  184. package/components/spike-map-options.config-BkkDqb4g.cjs +20 -0
  185. package/components/{spike-map-options.config-C5KewecZ.js → spike-map-options.config-Cbt1YUw6.js} +91 -122
  186. package/components/{sunburst-chart-options.config-AbNjWS6t.cjs → sunburst-chart-options.config-Yrxc2i57.cjs} +1 -1
  187. package/components/{sunburst-chart-options.config-CNauGQJv.js → sunburst-chart-options.config-_dyLQxPJ.js} +9 -20
  188. package/components/{symbol-map-options.config-DdDA4aa7.js → symbol-map-options.config-BORL1NSU.js} +11 -20
  189. package/components/symbol-map-options.config-NpBKm64d.cjs +20 -0
  190. package/components/{treemap-chart-options.config-D5AJaF_u.js → treemap-chart-options.config-B9i9qIm_.js} +20 -37
  191. package/components/treemap-chart-options.config-x4J54WSw.cjs +20 -0
  192. package/components/utils.cjs +1 -1
  193. package/components/utils.js +64 -65
  194. package/components/{video-options.config-CGsDTwHc.cjs → video-options.config-B0asgYt8.cjs} +1 -1
  195. package/components/{video-options.config-Dk36zJ1B.js → video-options.config-UX-9MDfS.js} +7 -10
  196. package/components/{wordcloud-chart-options.config-vGfCW8kE.cjs → wordcloud-chart-options.config-BKtJT8Va.cjs} +1 -1
  197. package/components/{wordcloud-chart-options.config-w2NUIWVA.js → wordcloud-chart-options.config-BoB_KuhA.js} +4 -7
  198. package/custom-elements.json +22 -2
  199. package/index.d.ts +1 -0
  200. package/package.json +5 -5
  201. package/types.d.ts +1 -1
  202. package/components/area-chart-options.config-C7sMAHco.cjs +0 -20
  203. package/components/bar-chart-options.config-DcxEkOT5.cjs +0 -20
  204. package/components/box-plot-options.config-SrrbDEYW.cjs +0 -20
  205. package/components/bubble-chart-options.config-Ihn6eVQI.cjs +0 -20
  206. package/components/calculate-data-item-icon-DZDqb3xu.js +0 -139
  207. package/components/choropleth-map-options.config-ZW8yoZH2.cjs +0 -20
  208. package/components/circular-gauge-options.config-msZ4mfpN.cjs +0 -20
  209. package/components/color-B6LaL8qz.cjs +0 -20
  210. package/components/color-range-utils-C5yXW7ZC.cjs +0 -20
  211. package/components/column-chart-options.config-BjDvA7i9.cjs +0 -20
  212. package/components/conditional-number-options.config-DgzUo0xi.cjs +0 -20
  213. package/components/donut-chart-options.config-tNpqBZfR.cjs +0 -20
  214. package/components/en-BKBhKBXY.cjs +0 -20
  215. package/components/en-BOTjhwEc.js +0 -1488
  216. package/components/focusable-B3E_hQmm.cjs +0 -20
  217. package/components/funnel-chart-options.config-D7H7gFcx.cjs +0 -20
  218. package/components/heat-map-options.config-DVH-Bb5-.cjs +0 -20
  219. package/components/heat-table-options.config-B12JEYnp.cjs +0 -20
  220. package/components/helpers-DXQwEH1P.cjs +0 -20
  221. package/components/helpers-v1bPALRP.js +0 -91
  222. package/components/hexbin-map-options.config-DZERRhM8.cjs +0 -20
  223. package/components/index-BPN3bG9X.js +0 -1733
  224. package/components/index-CQ9ck-BO.cjs +0 -249
  225. package/components/index-CXn67vdn.cjs +0 -121
  226. package/components/index-cfj52IbK.cjs +0 -20
  227. package/components/line-chart-options.config-DSugoe0t.cjs +0 -20
  228. package/components/pivot-table-options.config-BiJXKSFR.cjs +0 -20
  229. package/components/pyramid-chart-options.config-C4zbFS26.cjs +0 -20
  230. package/components/radar-chart-options.config-EqQu6PTh.cjs +0 -20
  231. package/components/route-map-options.config-D7NJePTu.cjs +0 -20
  232. package/components/scatter-plot-options.config-CFfGJXsV.cjs +0 -20
  233. package/components/slicer-filter-options.config-DNI-XevE.cjs +0 -20
  234. package/components/speedometer-chart-options.config-BX9LTQBH.cjs +0 -20
  235. package/components/spike-map-options.config-DoBFXPmN.cjs +0 -20
  236. package/components/symbol-map-options.config-m-lwLTtu.cjs +0 -20
  237. package/components/treemap-chart-options.config-C0Q9aQ1Z.cjs +0 -20
@@ -20,12 +20,12 @@
20
20
  import "@luzmo/lucero/field-label";
21
21
  import "@luzmo/lucero/menu";
22
22
  import "@luzmo/lucero/select";
23
- import { unsafeCSS as v, html as _ } from "lit";
24
- import { msg as e, localized as q } from "@lit/localize";
25
- import { SizedMixin as E, LuzmoElement as z, ElementSizes as D } from "@luzmo/lucero/utils";
26
- import { property as d, state as S } from "lit/decorators.js";
27
- import { g as T, t as $, s as L } from "./set-locale-B-Tz2sdI.js";
28
- const m = () => [
23
+ import { unsafeCSS as y, html as f } from "lit";
24
+ import { msg as e, localized as b } from "@lit/localize";
25
+ import { SizedMixin as g, LuzmoElement as w, ElementSizes as F } from "@luzmo/lucero/utils";
26
+ import { property as p, state as x } from "lit/decorators.js";
27
+ import { g as _, t as k, s as v } from "./set-locale-nv7fWEtl.js";
28
+ const h = () => [
29
29
  {
30
30
  id: "? = ?",
31
31
  key: "? = ?",
@@ -439,96 +439,86 @@ const m = () => [
439
439
  type: ["numeric", "datetime", "hierarchy", "spatial"],
440
440
  subtype: ["ip_address"]
441
441
  }
442
- ], k = (i, s, r) => {
442
+ ], m = (s, t, r) => {
443
443
  const o = /* @__PURE__ */ new Set(["? in ?", "? not in ?"]);
444
- return !i && !s ? m() : m().filter((t) => {
445
- var n;
446
- return (i && t.type.includes(i) || s && ((n = t.subtype) == null ? void 0 : n.includes(s))) && !(r && o.has(t.key));
447
- });
448
- }, C = ":host{font-family:var(--luzmo-font-family)}:host{--var: blue}";
449
- var B = Object.defineProperty, O = Object.getOwnPropertyDescriptor, p = (i, s, r, o) => {
450
- for (var t = o > 1 ? void 0 : o ? O(s, r) : s, n = i.length - 1, l; n >= 0; n--)
451
- (l = i[n]) && (t = (o ? l(s, r, t) : l(t)) || t);
452
- return o && t && B(s, r, t), t;
444
+ return !s && !t ? h() : h().filter((a) => (s && a.type.includes(s) || t && a.subtype?.includes(t)) && !(r && o.has(a.key)));
445
+ }, S = ":host{font-family:var(--luzmo-font-family)}:host{--var: blue}";
446
+ var E = Object.defineProperty, q = Object.getOwnPropertyDescriptor, n = (s, t, r, o) => {
447
+ for (var a = o > 1 ? void 0 : o ? q(t, r) : t, d = s.length - 1, l; d >= 0; d--)
448
+ (l = s[d]) && (a = (o ? l(t, r, a) : l(a)) || a);
449
+ return o && a && E(t, r, a), a;
453
450
  };
454
- let a = class extends E(z, {
455
- validSizes: Object.values(D)
451
+ let i = class extends g(w, {
452
+ validSizes: Object.values(F)
456
453
  }) {
457
454
  constructor() {
458
- super(...arguments), this.language = "en", this.hasLabel = !1, this.allowEmpty = !1, this.placeholder = "", this.disabled = !1, this.invalid = !1, this.isFormula = !1, this._expressionConfigurations = m();
455
+ super(...arguments), this.language = "en", this.hasLabel = !1, this.allowEmpty = !1, this.placeholder = "", this.disabled = !1, this.invalid = !1, this.isFormula = !1, this._expressionConfigurations = h();
459
456
  }
460
457
  static get styles() {
461
- return [v(C)];
458
+ return [y(S)];
462
459
  }
463
460
  _sendChangeEvent() {
464
- var s, r, o, t, n, l, c;
465
461
  if (this.disabled) return;
466
- const i = {
467
- expression: (s = this.filter) == null ? void 0 : s.expression
462
+ const s = {
463
+ expression: this.filter?.expression
468
464
  };
469
- (t = (o = (r = this.filter) == null ? void 0 : r.parameters) == null ? void 0 : o[1]) != null && t.unit && (i.unit = (c = (l = (n = this.filter) == null ? void 0 : n.parameters) == null ? void 0 : l[1]) == null ? void 0 : c.unit), this.dispatchEvent(
465
+ this.filter?.parameters?.[1]?.unit && (s.unit = this.filter?.parameters?.[1]?.unit), this.dispatchEvent(
470
466
  new CustomEvent("expression-selected", {
471
467
  bubbles: !0,
472
468
  composed: !0,
473
469
  cancelable: !0,
474
- detail: i
470
+ detail: s
475
471
  })
476
472
  );
477
473
  }
478
- setExpression(i) {
479
- var o, t;
480
- this._richExpression = (t = (o = i == null ? void 0 : i.detail) == null ? void 0 : o.value) == null ? void 0 : t[0];
481
- const s = this._expressionConfigurations.find(
482
- (n) => n.id === this._richExpression
474
+ setExpression(s) {
475
+ this._richExpression = s?.detail?.value?.[0];
476
+ const t = this._expressionConfigurations.find(
477
+ (o) => o.id === this._richExpression
483
478
  ), r = structuredClone(this.filter);
484
- r.expression = s == null ? void 0 : s.expression, s != null && s.unit && (this._unit = s.unit, r != null && r.parameters[0] && (r.parameters[1] = {
479
+ r.expression = t?.expression, t?.unit && (this._unit = t.unit, r?.parameters[0] && (r.parameters[1] = {
485
480
  unit: this._unit
486
481
  })), this.filter = r, this._sendChangeEvent();
487
482
  }
488
- willUpdate(i) {
489
- var f, u, x, y, b, w, F;
490
- const s = i.has("language"), r = i.has("filter"), o = i.has("type"), t = i.has("subtype"), n = i.has("isFormula");
491
- s && this.language !== T() && ([...$].includes(this.language ?? "en") || this.language === "en") && L(this.language);
492
- const l = k(
483
+ willUpdate(s) {
484
+ const t = s.has("language"), r = s.has("filter"), o = s.has("type"), a = s.has("subtype"), d = s.has("isFormula");
485
+ t && this.language !== _() && ([...k].includes(this.language ?? "en") || this.language === "en") && v(this.language);
486
+ const l = m(
493
487
  this.type,
494
488
  this.subtype,
495
489
  this.isFormula
496
- ), c = ["YTD", "QTD", "MTD", "WTD"];
497
- if (((f = this.filter) == null ? void 0 : f.expression) === "to_date") {
498
- const h = ((x = (u = this.filter) == null ? void 0 : u.parameters[1]) == null ? void 0 : x.unit) ?? 1;
499
- this._unit = h, this._richExpression = c[h - 1] ?? "YTD";
490
+ ), u = ["YTD", "QTD", "MTD", "WTD"];
491
+ if (this.filter?.expression === "to_date") {
492
+ const c = this.filter?.parameters[1]?.unit ?? 1;
493
+ this._unit = c, this._richExpression = u[c - 1] ?? "YTD";
500
494
  } else
501
- this._richExpression = (y = this.filter) == null ? void 0 : y.expression;
502
- (o || t || n || r) && this.filter && !this.disabled && !(l != null && l.find(
503
- (h) => {
504
- var g;
505
- return h.expression === ((g = this.filter) == null ? void 0 : g.expression);
506
- }
507
- )) ? (this.invalid = !0, console.warn(
508
- `Warning: ${(b = this.filter) == null ? void 0 : b.expression} is not valid given the type: ${this.type} and subtype: ${this.subtype}`
509
- )) : this.invalid = !1, !((w = this.filter) != null && w.expression) && !this.allowEmpty && (this._richExpression = (F = l == null ? void 0 : l[0]) == null ? void 0 : F.id, this.filter = {
495
+ this._richExpression = this.filter?.expression;
496
+ (o || a || d || r) && this.filter && !this.disabled && !l?.find(
497
+ (c) => c.expression === this.filter?.expression
498
+ ) ? (this.invalid = !0, console.warn(
499
+ `Warning: ${this.filter?.expression} is not valid given the type: ${this.type} and subtype: ${this.subtype}`
500
+ )) : this.invalid = !1, !this.filter?.expression && !this.allowEmpty && (this._richExpression = l?.[0]?.id, this.filter = {
510
501
  ...this.filter,
511
502
  expression: this._richExpression
512
503
  }, this._sendChangeEvent());
513
504
  }
514
505
  render() {
515
- var o, t;
516
- const i = (o = k(
506
+ const s = m(
517
507
  this.type,
518
508
  this.subtype,
519
509
  this.isFormula
520
- )) == null ? void 0 : o.map((n) => ({
521
- value: n.id,
522
- label: n.description,
523
- shortLabel: n.tiny
524
- })), s = this.disabled || !((t = this.filter) != null && t.expression) && !this.allowEmpty, r = _`<luzmo-field-label
510
+ )?.map((o) => ({
511
+ value: o.id,
512
+ label: o.description,
513
+ shortLabel: o.tiny
514
+ })), t = this.disabled || !this.filter?.expression && !this.allowEmpty, r = f`<luzmo-field-label
525
515
  for="expression"
526
516
  size=${this.size}
527
517
  >${this.label ?? e("Select an expression", {
528
518
  desc: "Label for expression picker"
529
519
  })}</luzmo-field-label
530
520
  >`;
531
- return _`${this.hasLabel ? r : ""}
521
+ return f`${this.hasLabel ? r : ""}
532
522
  <luzmo-select
533
523
  label=${this.placeholder ?? e("Select...")}
534
524
  id="expression"
@@ -536,62 +526,62 @@ let a = class extends E(z, {
536
526
  variant="highlight"
537
527
  selects="single"
538
528
  .language=${this.language}
539
- ?disabled=${s}
529
+ ?disabled=${t}
540
530
  ?invalid=${this.invalid}
541
- .options=${i}
531
+ .options=${s}
542
532
  .value=${[this._richExpression]}
543
533
  @change=${this.setExpression}
544
534
  >
545
535
  </luzmo-select>`;
546
536
  }
547
537
  };
548
- p([
549
- d({ type: String, reflect: !0 })
550
- ], a.prototype, "language", 2);
551
- p([
552
- d({ type: String, reflect: !0 })
553
- ], a.prototype, "filter", 2);
554
- p([
555
- d({ type: Boolean, attribute: "has-label", reflect: !0 })
556
- ], a.prototype, "hasLabel", 2);
557
- p([
558
- d({ type: String, reflect: !0 })
559
- ], a.prototype, "label", 2);
560
- p([
561
- d({ type: Boolean, attribute: "allow-empty", reflect: !0 })
562
- ], a.prototype, "allowEmpty", 2);
563
- p([
564
- d({ type: String, attribute: "placeholder", reflect: !0 })
565
- ], a.prototype, "placeholder", 2);
566
- p([
567
- d({ type: Boolean, attribute: "disabled", reflect: !0 })
568
- ], a.prototype, "disabled", 2);
569
- p([
570
- d({ type: String, attribute: "type", reflect: !0 })
571
- ], a.prototype, "type", 2);
572
- p([
573
- d({ type: String, attribute: "subtype", reflect: !0 })
574
- ], a.prototype, "subtype", 2);
575
- p([
576
- d({ type: Boolean, attribute: "invalid", reflect: !0 })
577
- ], a.prototype, "invalid", 2);
578
- p([
579
- d({ type: Boolean, attribute: "is-formula", reflect: !0 })
580
- ], a.prototype, "isFormula", 2);
581
- p([
582
- S()
583
- ], a.prototype, "_richExpression", 2);
584
- p([
585
- S()
586
- ], a.prototype, "_unit", 2);
587
- a = p([
588
- q()
589
- ], a);
538
+ n([
539
+ p({ type: String, reflect: !0 })
540
+ ], i.prototype, "language", 2);
541
+ n([
542
+ p({ type: String, reflect: !0 })
543
+ ], i.prototype, "filter", 2);
544
+ n([
545
+ p({ type: Boolean, attribute: "has-label", reflect: !0 })
546
+ ], i.prototype, "hasLabel", 2);
547
+ n([
548
+ p({ type: String, reflect: !0 })
549
+ ], i.prototype, "label", 2);
550
+ n([
551
+ p({ type: Boolean, attribute: "allow-empty", reflect: !0 })
552
+ ], i.prototype, "allowEmpty", 2);
553
+ n([
554
+ p({ type: String, attribute: "placeholder", reflect: !0 })
555
+ ], i.prototype, "placeholder", 2);
556
+ n([
557
+ p({ type: Boolean, attribute: "disabled", reflect: !0 })
558
+ ], i.prototype, "disabled", 2);
559
+ n([
560
+ p({ type: String, attribute: "type", reflect: !0 })
561
+ ], i.prototype, "type", 2);
562
+ n([
563
+ p({ type: String, attribute: "subtype", reflect: !0 })
564
+ ], i.prototype, "subtype", 2);
565
+ n([
566
+ p({ type: Boolean, attribute: "invalid", reflect: !0 })
567
+ ], i.prototype, "invalid", 2);
568
+ n([
569
+ p({ type: Boolean, attribute: "is-formula", reflect: !0 })
570
+ ], i.prototype, "isFormula", 2);
571
+ n([
572
+ x()
573
+ ], i.prototype, "_richExpression", 2);
574
+ n([
575
+ x()
576
+ ], i.prototype, "_unit", 2);
577
+ i = n([
578
+ b()
579
+ ], i);
590
580
  customElements.get("luzmo-filter-expression-picker") || customElements.define(
591
581
  "luzmo-filter-expression-picker",
592
- a
582
+ i
593
583
  );
594
584
  export {
595
- a as L,
596
- k as g
585
+ i as L,
586
+ m as g
597
587
  };