@luzmo/analytics-components-kit 1.0.9-beta.12 → 1.0.9-beta.13

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 (1203) hide show
  1. package/README.md +5 -1
  2. package/components/ad-hoc-slot-content-B-qsBK5Y.cjs +20 -0
  3. package/components/ad-hoc-slot-content-BJ2TwuZ_.js +29 -0
  4. package/components/add-to-dashboard/index.cjs +1 -1
  5. package/components/add-to-dashboard/index.js +1 -1
  6. package/components/add-to-dashboard-B702runr.cjs +166 -0
  7. package/components/add-to-dashboard-O9tn5g_w.js +805 -0
  8. package/components/ai-chat/index.cjs +1 -1
  9. package/components/ai-chat/index.js +2 -2
  10. package/components/ai-chat-BBUKgMVk.js +4464 -0
  11. package/components/ai-chat-DxpHdNnM.cjs +393 -0
  12. package/components/ai-interaction-textarea/index.cjs +1 -1
  13. package/components/ai-interaction-textarea/index.js +1 -1
  14. package/components/ai-interaction-textarea-BCa1PnPL.js +823 -0
  15. package/components/ai-interaction-textarea-DSk1A1a5.cjs +101 -0
  16. package/components/area-chart-options.config-CPHMgC3Z.cjs +20 -0
  17. package/components/area-chart-options.config-_vAFPSCl.js +219 -0
  18. package/components/area-chart-options.de-D5Wto0ja.cjs +20 -0
  19. package/components/area-chart-options.de-DQgBZ85Q.js +95 -0
  20. package/components/area-chart-options.en-C_8QeDtL.js +95 -0
  21. package/components/area-chart-options.en-CrffNamW.cjs +20 -0
  22. package/components/area-chart-options.es-BPpe9WGc.cjs +20 -0
  23. package/components/area-chart-options.es-qtqhkLAN.js +95 -0
  24. package/components/area-chart-options.fr-CdlaMfpz.cjs +20 -0
  25. package/components/area-chart-options.fr-Dj1ppAEP.js +95 -0
  26. package/components/area-chart-options.nl-C7RTsytw.cjs +20 -0
  27. package/components/area-chart-options.nl-zW_03PWa.js +95 -0
  28. package/components/area-chart-positioning.config-DDMlv_1g.js +55 -0
  29. package/components/area-chart-positioning.config-DgIFeUfD.cjs +20 -0
  30. package/components/axis-options.config-Dg9pczlQ.cjs +20 -0
  31. package/components/axis-options.config-Dv2BIt_L.js +270 -0
  32. package/components/axis-options.i18n-B4Oq86I1.cjs +20 -0
  33. package/components/axis-options.i18n-b4sAT2xv.js +486 -0
  34. package/components/bar-chart-options.config-CIoiRY3c.cjs +20 -0
  35. package/components/bar-chart-options.config-DTg8EtZB.js +266 -0
  36. package/components/bar-chart-options.de-Cx7sIY-k.js +111 -0
  37. package/components/bar-chart-options.de-D7Aam6Mv.cjs +20 -0
  38. package/components/bar-chart-options.en-CkdOHM9S.cjs +20 -0
  39. package/components/bar-chart-options.en-TmptkrCq.js +111 -0
  40. package/components/bar-chart-options.es-BOKqltQs.js +111 -0
  41. package/components/bar-chart-options.es-C3SZOSiN.cjs +20 -0
  42. package/components/bar-chart-options.fr-_QYj4ma-.js +111 -0
  43. package/components/bar-chart-options.fr-aVs2K5Qh.cjs +20 -0
  44. package/components/bar-chart-options.nl-BoGYJH70.cjs +20 -0
  45. package/components/bar-chart-options.nl-zBlLF4Am.js +111 -0
  46. package/components/bar-chart-positioning.config-CfIg055Z.js +59 -0
  47. package/components/bar-chart-positioning.config-D6pFsRHW.cjs +20 -0
  48. package/components/base-ClbyBq3g.js +248 -0
  49. package/components/base-DOqHO4T0.cjs +20 -0
  50. package/components/box-plot-options.config-rGZR7gQB.js +352 -0
  51. package/components/box-plot-options.config-zD7Csp-M.cjs +20 -0
  52. package/components/box-plot-options.de-CJ5uTyj4.cjs +20 -0
  53. package/components/box-plot-options.de-DkOqW1qm.js +108 -0
  54. package/components/box-plot-options.en-BwkPF9ow.js +108 -0
  55. package/components/box-plot-options.en-D91y5Yn2.cjs +20 -0
  56. package/components/box-plot-options.es-BE_gbUfY.cjs +20 -0
  57. package/components/box-plot-options.es-Bem6QOwX.js +108 -0
  58. package/components/box-plot-options.fr-D6uGRFn8.js +108 -0
  59. package/components/box-plot-options.fr-w8w9Ulrk.cjs +20 -0
  60. package/components/box-plot-options.nl-Dl6tln-c.cjs +20 -0
  61. package/components/box-plot-options.nl-KTVKF4-A.js +108 -0
  62. package/components/box-plot-positioning.config-55vAfMWq.cjs +20 -0
  63. package/components/box-plot-positioning.config-B4w3qGMD.js +48 -0
  64. package/components/bubble-chart-positioning.config-R9U2QcYb.cjs +20 -0
  65. package/components/bubble-chart-positioning.config-sPR3ptvR.js +55 -0
  66. package/components/bullet-chart-options.config-BHw1SMf2.cjs +20 -0
  67. package/components/bullet-chart-options.config-BMWFhdUY.js +95 -0
  68. package/components/bullet-chart-options.de-C6HTRMYV.cjs +20 -0
  69. package/components/bullet-chart-options.de-DeGc5a3k.js +47 -0
  70. package/components/bullet-chart-options.en-BCzDF69d.js +47 -0
  71. package/components/bullet-chart-options.en-C2MDX5A3.cjs +20 -0
  72. package/components/bullet-chart-options.es-CGqpJxSU.cjs +20 -0
  73. package/components/bullet-chart-options.es-D6acIGZV.js +47 -0
  74. package/components/bullet-chart-options.fr-BFtQlQrs.cjs +20 -0
  75. package/components/bullet-chart-options.fr-Bb6iNEnb.js +47 -0
  76. package/components/bullet-chart-options.nl-BSRoEom3.js +47 -0
  77. package/components/bullet-chart-options.nl-BaZDLnDS.cjs +20 -0
  78. package/components/bullet-chart-positioning.config-2TaqHX1E.cjs +20 -0
  79. package/components/bullet-chart-positioning.config-CIMnOzrw.js +56 -0
  80. package/components/choropleth-map-positioning.config-C5yUI4Kf.js +55 -0
  81. package/components/choropleth-map-positioning.config-DzRWowUN.cjs +20 -0
  82. package/components/circle-pack-chart-positioning.config-Bi8XmRUJ.js +48 -0
  83. package/components/circle-pack-chart-positioning.config-DriGXH0O.cjs +20 -0
  84. package/components/circular-gauge-positioning.config--SgX1JzM.cjs +20 -0
  85. package/components/circular-gauge-positioning.config-BcJ0YoWv.js +48 -0
  86. package/components/column-chart-options.config-TQf4dANz.cjs +20 -0
  87. package/components/column-chart-options.config-YW0LC1-g.js +265 -0
  88. package/components/column-chart-options.de-B3M7bxIf.js +111 -0
  89. package/components/column-chart-options.de-BOp0fmxj.cjs +20 -0
  90. package/components/column-chart-options.en-BBFX9b4K.js +111 -0
  91. package/components/column-chart-options.en-CkdOHM9S.cjs +20 -0
  92. package/components/column-chart-options.es-BEfuaiCj.js +111 -0
  93. package/components/column-chart-options.es-BiPP9jKx.cjs +20 -0
  94. package/components/column-chart-options.fr-DVqNXI8g.js +111 -0
  95. package/components/column-chart-options.fr-aVs2K5Qh.cjs +20 -0
  96. package/components/column-chart-options.nl-BoGYJH70.cjs +20 -0
  97. package/components/column-chart-options.nl-CinPRAJ5.js +111 -0
  98. package/components/column-chart-positioning.config-CZ0_ElCf.js +55 -0
  99. package/components/column-chart-positioning.config-Dts3D63x.cjs +20 -0
  100. package/components/combination-chart-options.config-C8SPwDDG.cjs +20 -0
  101. package/components/combination-chart-options.config-DeWB-bAh.js +157 -0
  102. package/components/combination-chart-options.de-COVn8bgM.js +74 -0
  103. package/components/combination-chart-options.de-DycthBF_.cjs +20 -0
  104. package/components/combination-chart-options.en-3zjVUwIY.js +74 -0
  105. package/components/combination-chart-options.en-BIosKCWf.cjs +20 -0
  106. package/components/combination-chart-options.es-CZ6uoD-U.cjs +20 -0
  107. package/components/combination-chart-options.es-Cl5Z-GI5.js +74 -0
  108. package/components/combination-chart-options.fr-B2NH27P6.cjs +20 -0
  109. package/components/combination-chart-options.fr-CBaz1Lhf.js +74 -0
  110. package/components/combination-chart-options.nl-B-vNeGxb.cjs +20 -0
  111. package/components/combination-chart-options.nl-D32yA2uX.js +74 -0
  112. package/components/combination-chart-positioning.config-BTNl8Q0Y.js +48 -0
  113. package/components/combination-chart-positioning.config-CM0o3yFT.cjs +20 -0
  114. package/components/conditional-number-positioning.config-C80ePFmt.js +48 -0
  115. package/components/conditional-number-positioning.config-Ce8Deg6R.cjs +20 -0
  116. package/components/data-field/index.cjs +1 -1
  117. package/components/data-field/index.js +1 -1
  118. package/components/data-field-BLgof095.cjs +54 -0
  119. package/components/data-field-DtiBQ3ec.js +119 -0
  120. package/components/data-field-level/index.cjs +1 -1
  121. package/components/data-field-level/index.js +1 -1
  122. package/components/data-field-level-8Sm39bRZ.js +245 -0
  123. package/components/data-field-level-vBzXLqit.cjs +55 -0
  124. package/components/data-field-panel/index.cjs +1 -1
  125. package/components/data-field-panel/index.js +1 -1
  126. package/components/data-field-panel-DOvbsj7k.cjs +87 -0
  127. package/components/data-field-panel-YL5pqk0y.js +383 -0
  128. package/components/data-fields-select/index.cjs +1 -1
  129. package/components/data-fields-select/index.js +1 -1
  130. package/components/data-fields-select-SKpx1U5b.cjs +43 -0
  131. package/components/data-fields-select-lx0hau0V.js +293 -0
  132. package/components/dataset-selector-list/index.cjs +1 -1
  133. package/components/dataset-selector-list/index.js +1 -1
  134. package/components/dataset-selector-list-DVv3OLwc.cjs +75 -0
  135. package/components/dataset-selector-list-Dw8SseBg.js +321 -0
  136. package/components/dataset-selector-row/index.cjs +1 -1
  137. package/components/dataset-selector-row/index.js +1 -1
  138. package/components/dataset-selector-row-Dfk5cP49.cjs +104 -0
  139. package/components/dataset-selector-row-q3JwXkc7.js +448 -0
  140. package/components/date-comparison-filter-slots.config-BNgZHORP.cjs +20 -0
  141. package/components/date-comparison-filter-slots.config-CO_C1qq2.js +37 -0
  142. package/components/de-DfxglHXp.js +599 -0
  143. package/components/de-k95wCo8e.cjs +20 -0
  144. package/components/display-settings/index.cjs +1 -1
  145. package/components/display-settings/index.js +1 -1
  146. package/components/display-settings-BGU97VQm.cjs +143 -0
  147. package/components/display-settings-CW-aM6Tg.js +317 -0
  148. package/components/display-settings-binning/index.cjs +1 -1
  149. package/components/display-settings-binning/index.js +1 -1
  150. package/components/display-settings-binning-C18iQPBR.js +111 -0
  151. package/components/display-settings-binning-ChgYSZVd.cjs +56 -0
  152. package/components/display-settings-datetime/index.cjs +1 -1
  153. package/components/display-settings-datetime/index.js +1 -1
  154. package/components/display-settings-datetime-DssZrTKW.cjs +217 -0
  155. package/components/display-settings-datetime-NhrNS7pq.js +414 -0
  156. package/components/display-settings-grand-totals/index.cjs +1 -1
  157. package/components/display-settings-grand-totals/index.js +1 -1
  158. package/components/display-settings-grand-totals-CPTypeXs.cjs +44 -0
  159. package/components/display-settings-grand-totals-D0UduzQs.js +90 -0
  160. package/components/display-settings-numeric/index.cjs +1 -1
  161. package/components/display-settings-numeric/index.js +1 -1
  162. package/components/display-settings-numeric-B2AuI2qg.js +480 -0
  163. package/components/display-settings-numeric-BzWEYoHj.cjs +190 -0
  164. package/components/display-settings-period-over-period/index.cjs +1 -1
  165. package/components/display-settings-period-over-period/index.js +1 -1
  166. package/components/display-settings-period-over-period-DfXdZPP9.js +443 -0
  167. package/components/display-settings-period-over-period-Yy1voN9g.cjs +227 -0
  168. package/components/donut-chart-options.config-DAetuaMj.cjs +20 -0
  169. package/components/donut-chart-options.config-DoX09FLQ.js +226 -0
  170. package/components/donut-chart-options.de-AXRfsiXW.cjs +20 -0
  171. package/components/donut-chart-options.de-CSSodjBg.js +86 -0
  172. package/components/donut-chart-options.en-Du6sBhqy.js +86 -0
  173. package/components/donut-chart-options.en-aZqu2oEV.cjs +20 -0
  174. package/components/donut-chart-options.es-7WgxuaDe.cjs +20 -0
  175. package/components/donut-chart-options.es-BWI72OH_.js +86 -0
  176. package/components/donut-chart-options.fr-C0Z8xEyF.cjs +20 -0
  177. package/components/donut-chart-options.fr-DeUbrL1Y.js +86 -0
  178. package/components/donut-chart-options.nl-aKVLbRJY.cjs +20 -0
  179. package/components/donut-chart-options.nl-bixP46Bs.js +86 -0
  180. package/components/donut-chart-positioning.config-0z7hLOs9.js +48 -0
  181. package/components/donut-chart-positioning.config-jWQOJfuv.cjs +20 -0
  182. package/components/es-B4X3tN70.js +599 -0
  183. package/components/es-BvDMibMQ.cjs +20 -0
  184. package/components/evolution-number-options.config-B6iEr_Bp.cjs +20 -0
  185. package/components/evolution-number-options.config-BGvfrpHI.js +230 -0
  186. package/components/evolution-number-options.de-DcLx_BOR.js +76 -0
  187. package/components/evolution-number-options.de-va_ypOy6.cjs +20 -0
  188. package/components/evolution-number-options.en-Afr-jy0u.js +76 -0
  189. package/components/evolution-number-options.en-CtAX9A-5.cjs +20 -0
  190. package/components/evolution-number-options.es-BQKSc22r.js +76 -0
  191. package/components/evolution-number-options.es-CCkbdLdF.cjs +20 -0
  192. package/components/evolution-number-options.fr-97NjkE_T.js +76 -0
  193. package/components/evolution-number-options.fr-QIK5EXQs.cjs +20 -0
  194. package/components/evolution-number-options.nl-BxQ9H4Ml.js +76 -0
  195. package/components/evolution-number-options.nl-CwUSSlVi.cjs +20 -0
  196. package/components/evolution-number-positioning.config-CNwQK1ho.cjs +20 -0
  197. package/components/evolution-number-positioning.config-Ccn4319Q.js +48 -0
  198. package/components/filter-expression-picker/index.cjs +1 -1
  199. package/components/filter-expression-picker/index.js +1 -1
  200. package/components/filter-expression-picker-C5s82Kj8.cjs +40 -0
  201. package/components/filter-expression-picker-ChPk7AhZ.js +434 -0
  202. package/components/filter-item/index.cjs +1 -1
  203. package/components/filter-item/index.js +1 -1
  204. package/components/filter-item-BsUxTNwl.cjs +111 -0
  205. package/components/filter-item-CEIBzW6Y.js +793 -0
  206. package/components/filter-parameter-picker/index.cjs +1 -1
  207. package/components/filter-parameter-picker/index.js +1 -1
  208. package/components/filter-parameter-picker-CBQlNMvr.cjs +124 -0
  209. package/components/filter-parameter-picker-CMQpNcck.js +372 -0
  210. package/components/filter-value-picker/index.cjs +1 -1
  211. package/components/filter-value-picker/index.js +1 -1
  212. package/components/filter-value-picker-6UbVX8EX.cjs +69 -0
  213. package/components/filter-value-picker-CD9AfCEx.js +170 -0
  214. package/components/filter-value-picker-datetime/index.cjs +1 -1
  215. package/components/filter-value-picker-datetime/index.js +1 -1
  216. package/components/filter-value-picker-datetime-BkaNyKM5.cjs +51 -0
  217. package/components/filter-value-picker-datetime-C80_9zmR.js +160 -0
  218. package/components/filter-value-picker-hierarchy/index.cjs +1 -1
  219. package/components/filter-value-picker-hierarchy/index.js +1 -1
  220. package/components/filter-value-picker-hierarchy-Dcuq6QyL.cjs +54 -0
  221. package/components/filter-value-picker-hierarchy-DkoquwOp.js +316 -0
  222. package/components/filter-value-picker-numeric/index.cjs +1 -1
  223. package/components/filter-value-picker-numeric/index.js +1 -1
  224. package/components/filter-value-picker-numeric-BD9OX_qJ.cjs +54 -0
  225. package/components/filter-value-picker-numeric-C5FI37KY.js +237 -0
  226. package/components/filters/filters.d.ts +11 -0
  227. package/components/filters/index.cjs +1 -1
  228. package/components/filters/index.js +1 -1
  229. package/components/filters-BnH330me.js +942 -0
  230. package/components/filters-CBFB5tNm.cjs +187 -0
  231. package/components/formula/index.cjs +1 -1
  232. package/components/formula/index.js +1 -1
  233. package/components/formula--9ohJwgp.js +136 -0
  234. package/components/formula-PROK1Bg8.cjs +45 -0
  235. package/components/formula-codemirror-CF4MDQHE.js +12008 -0
  236. package/components/formula-codemirror-Q1mjfL4P.cjs +215 -0
  237. package/components/formula-display-store-B1rP7Z1I.js +1087 -0
  238. package/components/formula-display-store-kVLhQbcs.cjs +20 -0
  239. package/components/formula-editor/index.cjs +1 -1
  240. package/components/formula-editor/index.js +3 -3
  241. package/components/formula-editor-DQgpmzJD.js +685 -0
  242. package/components/formula-editor-DihYwWUJ.cjs +224 -0
  243. package/components/formula-field/index.cjs +1 -1
  244. package/components/formula-field/index.js +1 -1
  245. package/components/formula-field-3w3LUoPv.js +38 -0
  246. package/components/formula-field-D2pgnvqx.cjs +20 -0
  247. package/components/formula-input-base-BlqLDV8C.js +236 -0
  248. package/components/formula-input-base-YLUm2p_4.cjs +49 -0
  249. package/components/fr-DdBfGHSA.js +599 -0
  250. package/components/fr-RTKQS7AJ.cjs +20 -0
  251. package/components/funnel-chart-options.config-BjAeGQO1.js +220 -0
  252. package/components/funnel-chart-options.config-D2zw9c3U.cjs +20 -0
  253. package/components/funnel-chart-options.de-B2f_xxvV.cjs +20 -0
  254. package/components/funnel-chart-options.de-D677e-vT.js +77 -0
  255. package/components/funnel-chart-options.en-B7fjBNs8.js +77 -0
  256. package/components/funnel-chart-options.en-Cdvkged9.cjs +20 -0
  257. package/components/funnel-chart-options.es-CrAp7hOK.cjs +20 -0
  258. package/components/funnel-chart-options.es-CyfC7rHm.js +77 -0
  259. package/components/funnel-chart-options.fr-0RxiqeZg.cjs +20 -0
  260. package/components/funnel-chart-options.fr-BnAHH5Tc.js +77 -0
  261. package/components/funnel-chart-options.nl-DeidG7iM.js +77 -0
  262. package/components/funnel-chart-options.nl-r_wRg5qR.cjs +20 -0
  263. package/components/funnel-chart-positioning.config-CGQlxp-N.js +48 -0
  264. package/components/funnel-chart-positioning.config-CuPbQwNk.cjs +20 -0
  265. package/components/get-dataset-name-BYvHNJQ6.js +32 -0
  266. package/components/get-dataset-name-Di7POfCE.cjs +20 -0
  267. package/components/groupings-C9y28uVF.js +52 -0
  268. package/components/groupings-Djt4x-m8.cjs +20 -0
  269. package/components/heat-map-positioning.config-B4Mt-5Z-.js +48 -0
  270. package/components/heat-map-positioning.config-DhBaQp_z.cjs +20 -0
  271. package/components/heat-table-options.config-CcG12s1p.cjs +20 -0
  272. package/components/heat-table-options.config-CiAQfvyb.js +277 -0
  273. package/components/heat-table-options.de-Br9DbeCp.cjs +20 -0
  274. package/components/heat-table-options.de-CuJLYAKD.js +114 -0
  275. package/components/heat-table-options.en-BxaSIKKl.js +114 -0
  276. package/components/heat-table-options.en-Cdn-xUSD.cjs +20 -0
  277. package/components/heat-table-options.es-Dkv8Q0Gi.cjs +20 -0
  278. package/components/heat-table-options.es-IS8jBtX3.js +114 -0
  279. package/components/heat-table-options.fr-Rnhqij20.js +114 -0
  280. package/components/heat-table-options.fr-uLTRU2oE.cjs +20 -0
  281. package/components/heat-table-options.nl-Blzg45N9.js +114 -0
  282. package/components/heat-table-options.nl-DaYIbnqr.cjs +20 -0
  283. package/components/heat-table-positioning.config-CY8sBOrD.js +55 -0
  284. package/components/heat-table-positioning.config-nEY0dbDM.cjs +20 -0
  285. package/components/hexbin-map-positioning.config--wq1zdhz.js +48 -0
  286. package/components/hexbin-map-positioning.config-DdWya10E.cjs +20 -0
  287. package/components/index.cjs +1 -1
  288. package/components/index.js +55 -55
  289. package/components/interactive-viz-item/index.cjs +1 -1
  290. package/components/interactive-viz-item/index.js +1 -1
  291. package/components/interactive-viz-item-CMpwMtM-.cjs +261 -0
  292. package/components/interactive-viz-item-DBxAlfyo.js +528 -0
  293. package/components/item-grid/index.cjs +1 -1
  294. package/components/item-grid/index.js +2 -2
  295. package/components/item-grid-DMCkHIh_.cjs +41 -0
  296. package/components/item-grid-NWnUnlNW.js +245 -0
  297. package/components/item-grid-item-actions-menu/index.cjs +1 -1
  298. package/components/item-grid-item-actions-menu/index.js +1 -1
  299. package/components/item-grid-item-actions-menu-CnC_fFq4.cjs +52 -0
  300. package/components/item-grid-item-actions-menu-DfA4PKM9.js +199 -0
  301. package/components/item-option/index.cjs +1 -1
  302. package/components/item-option/index.js +1 -1
  303. package/components/item-option-CFSZXwLt.cjs +269 -0
  304. package/components/item-option-YpwMa7la.js +959 -0
  305. package/components/item-option-action-button-group/index.cjs +1 -1
  306. package/components/item-option-action-button-group/index.js +1 -1
  307. package/components/item-option-action-button-group-BLoh0dmU.js +117 -0
  308. package/components/item-option-action-button-group-Dg87SFd8.cjs +53 -0
  309. package/components/item-option-base-5PYKLoC7.js +120 -0
  310. package/components/item-option-base-CY2pOzjk.cjs +56 -0
  311. package/components/item-option-color-palette-picker/index.cjs +1 -1
  312. package/components/item-option-color-palette-picker/index.js +1 -1
  313. package/components/item-option-color-palette-picker-B0vPoYn4.js +2040 -0
  314. package/components/item-option-color-palette-picker-DfWOwc6s.cjs +40 -0
  315. package/components/item-option-color-picker/index.cjs +1 -1
  316. package/components/item-option-color-picker/index.js +1 -1
  317. package/components/item-option-color-picker-BQ1Kichc.cjs +34 -0
  318. package/components/item-option-color-picker-BgLqlgMF.js +86 -0
  319. package/components/item-option-color-range/index.cjs +1 -1
  320. package/components/item-option-color-range/index.js +1 -1
  321. package/components/item-option-color-range-AadyK2zm.cjs +98 -0
  322. package/components/item-option-color-range-r7Psy6yt.js +219 -0
  323. package/components/item-option-guidelines/index.cjs +1 -1
  324. package/components/item-option-guidelines/index.js +1 -1
  325. package/components/item-option-guidelines-Dj5vjMOy.cjs +135 -0
  326. package/components/item-option-guidelines-WfKKowZh.js +420 -0
  327. package/components/item-option-multi-language-field/index.cjs +1 -1
  328. package/components/item-option-multi-language-field/index.js +1 -1
  329. package/components/item-option-multi-language-field-Cbj5QUsQ.cjs +33 -0
  330. package/components/item-option-multi-language-field-p26WS8e2.js +81 -0
  331. package/components/item-option-number-field/index.cjs +1 -1
  332. package/components/item-option-number-field/index.js +1 -1
  333. package/components/item-option-number-field-CnZQfLko.js +101 -0
  334. package/components/item-option-number-field-DokKaZNJ.cjs +38 -0
  335. package/components/item-option-panel/index.cjs +1 -1
  336. package/components/item-option-panel/index.js +1 -1
  337. package/components/item-option-panel-Cs9BGllC.js +181 -0
  338. package/components/item-option-panel-IeqCr-0M.cjs +67 -0
  339. package/components/item-option-picker/index.cjs +1 -1
  340. package/components/item-option-picker/index.js +1 -1
  341. package/components/item-option-picker-BwZAq7t8.js +76 -0
  342. package/components/item-option-picker-DV-k1tkm.cjs +37 -0
  343. package/components/item-option-position-picker/index.cjs +1 -1
  344. package/components/item-option-position-picker/index.js +1 -1
  345. package/components/item-option-position-picker-CCikjVLj.cjs +32 -0
  346. package/components/item-option-position-picker-D5a_gcn6.js +116 -0
  347. package/components/item-option-positions-number-field/index.cjs +1 -1
  348. package/components/item-option-positions-number-field/index.js +1 -1
  349. package/components/item-option-positions-number-field-Bn8Dwath.js +165 -0
  350. package/components/item-option-positions-number-field-wcQHJTZW.cjs +49 -0
  351. package/components/item-option-radio-button-group/index.cjs +1 -1
  352. package/components/item-option-radio-button-group/index.js +1 -1
  353. package/components/item-option-radio-button-group-DiElJAIW.cjs +37 -0
  354. package/components/item-option-radio-button-group-sZ5dW5N0.js +73 -0
  355. package/components/item-option-slider/index.cjs +1 -1
  356. package/components/item-option-slider/index.js +1 -1
  357. package/components/item-option-slider-CzL6OVqv.cjs +33 -0
  358. package/components/item-option-slider-DH5Q2WZt.js +97 -0
  359. package/components/item-option-switch/index.cjs +1 -1
  360. package/components/item-option-switch/index.js +1 -1
  361. package/components/item-option-switch-DkMh3RqG.cjs +30 -0
  362. package/components/item-option-switch-p552By7W.js +68 -0
  363. package/components/item-option-text-field/index.cjs +1 -1
  364. package/components/item-option-text-field/index.js +1 -1
  365. package/components/item-option-text-field-CDFWXxCi.cjs +33 -0
  366. package/components/item-option-text-field-DXwWeQLc.js +79 -0
  367. package/components/item-options-configs.cjs +1 -1
  368. package/components/item-options-configs.js +16 -16
  369. package/components/item-slot-drop/index.cjs +1 -1
  370. package/components/item-slot-drop/index.js +1 -1
  371. package/components/item-slot-drop-B7xHip7W.js +329 -0
  372. package/components/item-slot-drop-D0aDeRzk.cjs +91 -0
  373. package/components/item-slot-drop-panel/index.cjs +1 -1
  374. package/components/item-slot-drop-panel/index.js +1 -1
  375. package/components/item-slot-drop-panel-CN14Fhl_.js +354 -0
  376. package/components/item-slot-drop-panel-PpoHWxpZ.cjs +57 -0
  377. package/components/item-slot-picker/index.cjs +1 -1
  378. package/components/item-slot-picker/index.js +1 -1
  379. package/components/item-slot-picker/item-slot-picker.d.ts +22 -0
  380. package/components/item-slot-picker-BGQn6mCM.cjs +158 -0
  381. package/components/item-slot-picker-DSliJni4.js +556 -0
  382. package/components/item-slot-picker-panel/index.cjs +1 -1
  383. package/components/item-slot-picker-panel/index.js +1 -1
  384. package/components/item-slot-picker-panel/item-slot-picker-panel.d.ts +6 -0
  385. package/components/item-slot-picker-panel-BV3WnS9j.js +451 -0
  386. package/components/item-slot-picker-panel-CZHlazfn.cjs +82 -0
  387. package/components/item-slots-configs.cjs +1 -1
  388. package/components/item-slots-configs.js +1 -1
  389. package/components/kpi-options.config-CNBlWUeE.js +334 -0
  390. package/components/kpi-options.config-DJW44vTd.cjs +20 -0
  391. package/components/kpi-options.de-BNSyszd2.cjs +20 -0
  392. package/components/kpi-options.de-DTuT_w_B.js +109 -0
  393. package/components/kpi-options.en-Bnf64PJC.js +109 -0
  394. package/components/kpi-options.en-DZkxgBCc.cjs +20 -0
  395. package/components/kpi-options.es-DQFRSRwE.cjs +20 -0
  396. package/components/kpi-options.es-a0gSVDp5.js +109 -0
  397. package/components/kpi-options.fr-BRlaWkQ_.js +109 -0
  398. package/components/kpi-options.fr-Cpm8BfZ9.cjs +20 -0
  399. package/components/kpi-options.nl-01k2djoO.js +109 -0
  400. package/components/kpi-options.nl-W4ujxuOd.cjs +20 -0
  401. package/components/kpi-positioning.config-Bo0-gfhW.cjs +20 -0
  402. package/components/kpi-positioning.config-Cg8-gz35.js +48 -0
  403. package/components/kpi-slots.config-BvTgcJ9e.cjs +20 -0
  404. package/components/kpi-slots.config-tk6nFpOZ.js +36 -0
  405. package/components/line-chart-options.config-Bmru689o.cjs +20 -0
  406. package/components/line-chart-options.config-fYL7fjSK.js +255 -0
  407. package/components/line-chart-options.de-CB8mHJhD.cjs +20 -0
  408. package/components/line-chart-options.de-CFcXltXH.js +89 -0
  409. package/components/line-chart-options.en-B2gp-KSj.js +89 -0
  410. package/components/line-chart-options.en-BrKt9W7U.cjs +20 -0
  411. package/components/line-chart-options.es-BgnNvocl.cjs +20 -0
  412. package/components/line-chart-options.es-OxOYh4jd.js +89 -0
  413. package/components/line-chart-options.fr-CHk40Imh.js +89 -0
  414. package/components/line-chart-options.fr-Jl6XdyHr.cjs +20 -0
  415. package/components/line-chart-options.nl-C6ncBb5a.js +89 -0
  416. package/components/line-chart-options.nl-esSfBoBW.cjs +20 -0
  417. package/components/line-chart-positioning.config-Bb87MKxZ.cjs +20 -0
  418. package/components/line-chart-positioning.config-UEksxjo2.js +55 -0
  419. package/components/localized-mixin-DdMOQmkW.cjs +20 -0
  420. package/components/localized-mixin-Dv4dT_Qo.js +45 -0
  421. package/components/marker-map-positioning.config-3Vbat2pI.js +48 -0
  422. package/components/marker-map-positioning.config-CFmqWXOL.cjs +20 -0
  423. package/components/nl-CA2Q5zqK.cjs +20 -0
  424. package/components/nl-Dvklxh6k.js +599 -0
  425. package/components/ohlc-chart-options.config-C2Ki7XH3.cjs +20 -0
  426. package/components/ohlc-chart-options.config-DpYG3lZD.js +94 -0
  427. package/components/ohlc-chart-positioning.config-CPXmE2C6.js +78 -0
  428. package/components/ohlc-chart-positioning.config-DPG62QFZ.cjs +20 -0
  429. package/components/parallel-coordinates-plot-positioning.config-CiHl_5PC.js +48 -0
  430. package/components/parallel-coordinates-plot-positioning.config-GLUY-_3r.cjs +20 -0
  431. package/components/pivot-table-positioning.config-CBckdPF6.cjs +20 -0
  432. package/components/pivot-table-positioning.config-DlaxbJDe.js +55 -0
  433. package/components/pyramid-chart-options.config-BCBDjb4p.js +222 -0
  434. package/components/pyramid-chart-options.config-CCts-5RK.cjs +20 -0
  435. package/components/pyramid-chart-options.de-DF-c80dq.js +103 -0
  436. package/components/pyramid-chart-options.de-DuOpsLs5.cjs +20 -0
  437. package/components/pyramid-chart-options.en-C3DkPcBH.cjs +20 -0
  438. package/components/pyramid-chart-options.en-CUA9TibF.js +103 -0
  439. package/components/pyramid-chart-options.es-DOU8E08a.js +103 -0
  440. package/components/pyramid-chart-options.es-DWJdStho.cjs +20 -0
  441. package/components/pyramid-chart-options.fr-DqUZ4U9J.js +103 -0
  442. package/components/pyramid-chart-options.fr-Wb5tFvLC.cjs +20 -0
  443. package/components/pyramid-chart-options.nl-8nKaQ7cp.js +103 -0
  444. package/components/pyramid-chart-options.nl-Csec8VMp.cjs +20 -0
  445. package/components/pyramid-chart-positioning.config-B_hdKwE-.cjs +20 -0
  446. package/components/pyramid-chart-positioning.config-DIttV8Bd.js +55 -0
  447. package/components/radar-chart-options.config-BR1P1bC2.cjs +20 -0
  448. package/components/radar-chart-options.config-Cso1juLq.js +173 -0
  449. package/components/radar-chart-options.de-Er7fpAGV.cjs +20 -0
  450. package/components/radar-chart-options.de-vQACT9qo.js +54 -0
  451. package/components/radar-chart-options.en-BEJDfdE6.cjs +20 -0
  452. package/components/radar-chart-options.en-DPzqlJP6.js +54 -0
  453. package/components/radar-chart-options.es-CYh8qQtu.js +54 -0
  454. package/components/radar-chart-options.es-L88u7bqn.cjs +20 -0
  455. package/components/radar-chart-options.fr-CslMsBcG.cjs +20 -0
  456. package/components/radar-chart-options.fr-xpzxqPGa.js +54 -0
  457. package/components/radar-chart-options.nl-03B6BgO1.js +54 -0
  458. package/components/radar-chart-options.nl-CIvGrz_A.cjs +20 -0
  459. package/components/radar-chart-positioning.config-BCmKaEU3.cjs +20 -0
  460. package/components/radar-chart-positioning.config-SuMx33Rb.js +55 -0
  461. package/components/route-map-positioning.config-BHgJfD2W.cjs +20 -0
  462. package/components/route-map-positioning.config-os7LBECw.js +66 -0
  463. package/components/sankey-diagram-positioning.config-BkZ-z93h.cjs +20 -0
  464. package/components/sankey-diagram-positioning.config-CefPXYny.js +66 -0
  465. package/components/scatter-plot-options.config-BjkL6NKA.js +165 -0
  466. package/components/scatter-plot-options.config-iJwa8WRA.cjs +20 -0
  467. package/components/scatter-plot-options.de-CUPe1USU.cjs +20 -0
  468. package/components/scatter-plot-options.de-DiT6Dfgy.js +115 -0
  469. package/components/scatter-plot-options.en-DaPAnBDH.js +115 -0
  470. package/components/scatter-plot-options.en-aCHwE_2o.cjs +20 -0
  471. package/components/scatter-plot-options.es-B2sIEexr.cjs +20 -0
  472. package/components/scatter-plot-options.es-DKVASEN4.js +115 -0
  473. package/components/scatter-plot-options.fr-B-7GyEXc.cjs +20 -0
  474. package/components/scatter-plot-options.fr-DPt3Ffoy.js +115 -0
  475. package/components/scatter-plot-options.nl-B5ytQ1Si.js +115 -0
  476. package/components/scatter-plot-options.nl-Cz-6m7sg.cjs +20 -0
  477. package/components/scatter-plot-positioning.config-Cj97qUBu.cjs +20 -0
  478. package/components/scatter-plot-positioning.config-tPnsj0Bi.js +77 -0
  479. package/components/set-locale-4ytzZDhn.cjs +20 -0
  480. package/components/set-locale-w6Y3RUvf.js +43 -0
  481. package/components/slicer-filter-positioning.config-Bh_p1GYx.js +48 -0
  482. package/components/slicer-filter-positioning.config-CS51YpGW.cjs +20 -0
  483. package/components/slot-content-C9m-z0Ux.js +23 -0
  484. package/components/slot-content-DYiwtIBX.cjs +20 -0
  485. package/components/slot-menu/index.cjs +1 -1
  486. package/components/slot-menu/index.js +1 -1
  487. package/components/slot-menu/slot-menu.d.ts +5 -0
  488. package/components/slot-menu-B7q15GwU.js +436 -0
  489. package/components/slot-menu-H-hVDVNW.cjs +71 -0
  490. package/components/slot-menu-list/index.cjs +1 -1
  491. package/components/slot-menu-list/index.js +1 -1
  492. package/components/slot-menu-list-C1rVkQEG.cjs +44 -0
  493. package/components/slot-menu-list-CMaf2WZ9.js +348 -0
  494. package/components/slot-role-classification-BtYLRqq0.cjs +20 -0
  495. package/components/slot-role-classification-DKClEpT3.js +133 -0
  496. package/components/slots-config-ChJNgCJz.js +77 -0
  497. package/components/slots-config-Cy9pA0wm.cjs +20 -0
  498. package/components/speedometer-chart-positioning.config-CA4mIQVz.cjs +20 -0
  499. package/components/speedometer-chart-positioning.config-DxmmNwvU.js +48 -0
  500. package/components/spike-map-positioning.config-BMnS3qbm.js +55 -0
  501. package/components/spike-map-positioning.config-Drj2qKMJ.cjs +20 -0
  502. package/components/strip-plot-positioning.config-CiGPeVyq.cjs +20 -0
  503. package/components/strip-plot-positioning.config-DOPNhBEE.js +48 -0
  504. package/components/sunburst-chart-options.config-C5ChdoMM.js +190 -0
  505. package/components/sunburst-chart-options.config-CtT-pBM0.cjs +20 -0
  506. package/components/sunburst-chart-options.de-DO65RQI_.cjs +20 -0
  507. package/components/sunburst-chart-options.de-DPRW5IB9.js +61 -0
  508. package/components/sunburst-chart-options.en-BU4abvh8.js +61 -0
  509. package/components/sunburst-chart-options.en-C3IkkUBW.cjs +20 -0
  510. package/components/sunburst-chart-options.es-BV_4fN10.cjs +20 -0
  511. package/components/sunburst-chart-options.es-Bo65ZQ0Y.js +61 -0
  512. package/components/sunburst-chart-options.fr-5_0gm7hs.js +61 -0
  513. package/components/sunburst-chart-options.fr-DO7-oeNe.cjs +20 -0
  514. package/components/sunburst-chart-options.nl-Bcqm8ykQ.js +61 -0
  515. package/components/sunburst-chart-options.nl-DsecjcfE.cjs +20 -0
  516. package/components/sunburst-chart-positioning.config-CveUDnv_.cjs +20 -0
  517. package/components/sunburst-chart-positioning.config-cwQaxuYH.js +48 -0
  518. package/components/symbol-map-positioning.config-CUaCGtpk.cjs +20 -0
  519. package/components/symbol-map-positioning.config-W6EMKyLL.js +55 -0
  520. package/components/treemap-chart-positioning.config-CynNsRhu.cjs +20 -0
  521. package/components/treemap-chart-positioning.config-bQdU3kX_.js +55 -0
  522. package/components/utils/base.cjs +1 -1
  523. package/components/utils/base.js +2 -2
  524. package/components/utils/store.cjs +1 -1
  525. package/components/utils/store.js +1 -1
  526. package/components/utils-1zaS4yM5.js +240 -0
  527. package/components/utils-B_KSNNkR.cjs +20 -0
  528. package/components/utils.cjs +1 -1
  529. package/components/utils.js +2 -2
  530. package/components/venn-diagram-positioning.config-Bv5zft18.js +55 -0
  531. package/components/venn-diagram-positioning.config-CZv8APyM.cjs +20 -0
  532. package/components/wordcloud-chart-positioning.config-BrbvVug5.cjs +20 -0
  533. package/components/wordcloud-chart-positioning.config-C0lpiEgP.js +55 -0
  534. package/custom-elements.json +92 -0
  535. package/package.json +2 -2
  536. package/react/package.json +2 -2
  537. package/standalone/chunks/add-to-dashboard-BlrZ08qE.js +148 -0
  538. package/standalone/chunks/area-chart-options.config-BMvUma_d.js +2 -0
  539. package/standalone/chunks/area-chart-options.de-CiUYKjuF.js +2 -0
  540. package/standalone/chunks/area-chart-options.en-ClANS4ox.js +2 -0
  541. package/standalone/chunks/area-chart-options.es-CJ9G7w-d.js +2 -0
  542. package/standalone/chunks/area-chart-options.fr-HT5lv1Xa.js +2 -0
  543. package/standalone/chunks/area-chart-options.nl-BLkEkEtR.js +2 -0
  544. package/standalone/chunks/axis-options.config-DOE0YdaK.js +2 -0
  545. package/standalone/chunks/axis-options.i18n-WUQx3mVm.js +2 -0
  546. package/standalone/chunks/bar-chart-options.config-BpHqXBFq.js +2 -0
  547. package/standalone/chunks/bar-chart-options.de-BFaQAeSt.js +2 -0
  548. package/standalone/chunks/bar-chart-options.en-uZbbpK84.js +2 -0
  549. package/standalone/chunks/bar-chart-options.es-twNx5B2m.js +2 -0
  550. package/standalone/chunks/bar-chart-options.fr-DRaaaSSH.js +2 -0
  551. package/standalone/chunks/bar-chart-options.nl-CJiMjH5v.js +2 -0
  552. package/standalone/chunks/base-Bo6Un1Yu.js +2 -0
  553. package/standalone/chunks/box-plot-options.config-DDWb_KmV.js +2 -0
  554. package/standalone/chunks/box-plot-options.de-CI5qJAF7.js +2 -0
  555. package/standalone/chunks/box-plot-options.en-BQtMNcl5.js +2 -0
  556. package/standalone/chunks/box-plot-options.es-CHjivUoY.js +2 -0
  557. package/standalone/chunks/box-plot-options.fr-FkvAk1kX.js +2 -0
  558. package/standalone/chunks/box-plot-options.nl-BRnSzvbY.js +2 -0
  559. package/standalone/chunks/bullet-chart-options.config-BhYe0N0o.js +2 -0
  560. package/standalone/chunks/bullet-chart-options.de-kCP9VTDJ.js +2 -0
  561. package/standalone/chunks/bullet-chart-options.en-CQ7u24xM.js +2 -0
  562. package/standalone/chunks/bullet-chart-options.es-CMRwpRyH.js +2 -0
  563. package/standalone/chunks/bullet-chart-options.fr-NLzgxbaB.js +2 -0
  564. package/standalone/chunks/bullet-chart-options.nl-BxNIes0u.js +2 -0
  565. package/standalone/chunks/column-chart-options.config-YIe6cMV5.js +2 -0
  566. package/standalone/chunks/column-chart-options.de-CpCK5x2F.js +2 -0
  567. package/standalone/chunks/column-chart-options.en-uZbbpK84.js +2 -0
  568. package/standalone/chunks/column-chart-options.es-CNgSUKXK.js +2 -0
  569. package/standalone/chunks/column-chart-options.fr-DRaaaSSH.js +2 -0
  570. package/standalone/chunks/column-chart-options.nl-CJiMjH5v.js +2 -0
  571. package/standalone/chunks/combination-chart-options.config-Bf7cNmpc.js +2 -0
  572. package/standalone/chunks/combination-chart-options.de-BarapFn7.js +2 -0
  573. package/standalone/chunks/combination-chart-options.en-Dip8nNUE.js +2 -0
  574. package/standalone/chunks/combination-chart-options.es-3xQbg-Up.js +2 -0
  575. package/standalone/chunks/combination-chart-options.fr-BsXLtxB_.js +2 -0
  576. package/standalone/chunks/combination-chart-options.nl-8LA_bn9G.js +2 -0
  577. package/standalone/chunks/date-comparison-filter-slots.config-GxZF3vb3.js +2 -0
  578. package/standalone/chunks/de-DNm8GJah.js +2 -0
  579. package/standalone/chunks/display-settings-binning-BcAygd33.js +38 -0
  580. package/standalone/chunks/display-settings-datetime-C-c7VS62.js +199 -0
  581. package/standalone/chunks/display-settings-grand-totals-CHUPJMiO.js +26 -0
  582. package/standalone/chunks/display-settings-numeric-CwIsAjlA.js +172 -0
  583. package/standalone/chunks/display-settings-period-over-period-Dgr8fANF.js +209 -0
  584. package/standalone/chunks/donut-chart-options.config-DWpePR5V.js +2 -0
  585. package/standalone/chunks/donut-chart-options.de-IKGJRoDL.js +2 -0
  586. package/standalone/chunks/donut-chart-options.en-O2IK3YiS.js +2 -0
  587. package/standalone/chunks/donut-chart-options.es-gKAHuFAU.js +2 -0
  588. package/standalone/chunks/donut-chart-options.fr-Q-uMrtQG.js +2 -0
  589. package/standalone/chunks/donut-chart-options.nl-B6v6jK4l.js +2 -0
  590. package/standalone/chunks/embed-NStEUFPE.js +228 -0
  591. package/standalone/chunks/es-BKlgDDOM.js +2 -0
  592. package/standalone/chunks/evolution-number-options.config-Brbyq_TD.js +2 -0
  593. package/standalone/chunks/evolution-number-options.de-NPOdl5mB.js +2 -0
  594. package/standalone/chunks/evolution-number-options.en-Eq53ZOMK.js +2 -0
  595. package/standalone/chunks/evolution-number-options.es-WS8nAzvW.js +2 -0
  596. package/standalone/chunks/evolution-number-options.fr-DmcY0jGH.js +2 -0
  597. package/standalone/chunks/evolution-number-options.nl-CvjB2qil.js +2 -0
  598. package/standalone/chunks/filters-BqUlasEq.js +532 -0
  599. package/standalone/chunks/formula-codemirror-CJ8OazqM.js +197 -0
  600. package/standalone/chunks/fr-CYhAyq_i.js +2 -0
  601. package/standalone/chunks/funnel-chart-options.config-S1yxc6IG.js +2 -0
  602. package/standalone/chunks/funnel-chart-options.de-u5OrFyng.js +2 -0
  603. package/standalone/chunks/funnel-chart-options.en-BEGSBn35.js +2 -0
  604. package/standalone/chunks/funnel-chart-options.es-CxWkEgMs.js +2 -0
  605. package/standalone/chunks/funnel-chart-options.fr-DZmmgK2t.js +2 -0
  606. package/standalone/chunks/funnel-chart-options.nl-C6BitaEJ.js +2 -0
  607. package/standalone/chunks/heat-table-options.config-BmtIS2zc.js +2 -0
  608. package/standalone/chunks/heat-table-options.de-B4y9dcra.js +2 -0
  609. package/standalone/chunks/heat-table-options.en-Bouip0NE.js +2 -0
  610. package/standalone/chunks/heat-table-options.es-BRAQP8GK.js +2 -0
  611. package/standalone/chunks/heat-table-options.fr-CTzciHeO.js +2 -0
  612. package/standalone/chunks/heat-table-options.nl-DzmWrTeQ.js +2 -0
  613. package/standalone/chunks/item-option-action-button-group-Z_QOXgGF.js +35 -0
  614. package/standalone/chunks/item-option-base-CwSzaefN.js +38 -0
  615. package/standalone/chunks/item-option-color-palette-picker-ClPI-5Hn.js +22 -0
  616. package/standalone/chunks/item-option-color-picker-1q1JlJS_.js +16 -0
  617. package/standalone/chunks/item-option-color-range-Chg6l7xN.js +80 -0
  618. package/standalone/chunks/item-option-guidelines-LNRztY8Q.js +117 -0
  619. package/standalone/chunks/item-option-multi-language-field-BaN_uPvS.js +15 -0
  620. package/standalone/chunks/item-option-number-field-DOuUp77S.js +20 -0
  621. package/standalone/chunks/item-option-panel-B1Qr4UIW.js +298 -0
  622. package/standalone/chunks/item-option-picker-Zrazb--P.js +19 -0
  623. package/standalone/chunks/item-option-position-picker-CSBgzh-h.js +14 -0
  624. package/standalone/chunks/item-option-positions-number-field-UTA1MQSS.js +31 -0
  625. package/standalone/chunks/item-option-radio-button-group-ClOt6Z30.js +19 -0
  626. package/standalone/chunks/item-option-slider-BLM_vGgf.js +15 -0
  627. package/standalone/chunks/item-option-switch-B-HFT1q3.js +12 -0
  628. package/standalone/chunks/item-option-text-field-CNQhKUVn.js +15 -0
  629. package/standalone/chunks/item-slot-picker-panel-BdW4zXxN.js +425 -0
  630. package/standalone/chunks/kpi-options.config-Brq70MGS.js +2 -0
  631. package/standalone/chunks/kpi-options.de-CJMQBEs7.js +2 -0
  632. package/standalone/chunks/kpi-options.en-BzKmi3Bd.js +2 -0
  633. package/standalone/chunks/kpi-options.es-BTmFYV0w.js +2 -0
  634. package/standalone/chunks/kpi-options.fr-mlazGpRq.js +2 -0
  635. package/standalone/chunks/kpi-options.nl-BV1eFo_U.js +2 -0
  636. package/standalone/chunks/kpi-slots.config-DAjLHdEj.js +2 -0
  637. package/standalone/chunks/line-chart-options.config--_LXaPbB.js +2 -0
  638. package/standalone/chunks/line-chart-options.de-CCCH4dI_.js +2 -0
  639. package/standalone/chunks/line-chart-options.en-BwtEj00F.js +2 -0
  640. package/standalone/chunks/line-chart-options.es-BWWaIDbd.js +2 -0
  641. package/standalone/chunks/line-chart-options.fr-Rp7fs4Id.js +2 -0
  642. package/standalone/chunks/line-chart-options.nl-DcgJ9CUw.js +2 -0
  643. package/standalone/chunks/load-data-fields-for-datasets-CH-5tbXr.js +25 -0
  644. package/standalone/chunks/load-formula-codemirror-CgSaMENO.js +6 -0
  645. package/standalone/chunks/localized-mixin-BAHP4Cln.js +2 -0
  646. package/standalone/chunks/nl-zkCduSpz.js +2 -0
  647. package/standalone/chunks/ohlc-chart-options.config-kyYOgBtR.js +2 -0
  648. package/standalone/chunks/pyramid-chart-options.config-xYIVE_ib.js +2 -0
  649. package/standalone/chunks/pyramid-chart-options.de-CaxalCcg.js +2 -0
  650. package/standalone/chunks/pyramid-chart-options.en-B-weoYGh.js +2 -0
  651. package/standalone/chunks/pyramid-chart-options.es-BahFoH3_.js +2 -0
  652. package/standalone/chunks/pyramid-chart-options.fr-DcTxsNGH.js +2 -0
  653. package/standalone/chunks/pyramid-chart-options.nl-ChImCr8r.js +2 -0
  654. package/standalone/chunks/radar-chart-options.config-CoGFqCqy.js +2 -0
  655. package/standalone/chunks/radar-chart-options.de-vruPXtB4.js +2 -0
  656. package/standalone/chunks/radar-chart-options.en-D8rstMVn.js +2 -0
  657. package/standalone/chunks/radar-chart-options.es-By21lK8S.js +2 -0
  658. package/standalone/chunks/radar-chart-options.fr-C4b5cJxg.js +2 -0
  659. package/standalone/chunks/radar-chart-options.nl-CzEi0MTf.js +2 -0
  660. package/standalone/chunks/scatter-plot-options.config-DG9Ki-mt.js +2 -0
  661. package/standalone/chunks/scatter-plot-options.de-eebqIJA1.js +2 -0
  662. package/standalone/chunks/scatter-plot-options.en-5i08biJm.js +2 -0
  663. package/standalone/chunks/scatter-plot-options.es-Bx8kHesL.js +2 -0
  664. package/standalone/chunks/scatter-plot-options.fr-DK6rPCT_.js +2 -0
  665. package/standalone/chunks/scatter-plot-options.nl-9mS62LyK.js +2 -0
  666. package/standalone/chunks/slot-content-BZhmLTG1.js +2 -0
  667. package/standalone/chunks/sunburst-chart-options.config-DOBSe3i5.js +2 -0
  668. package/standalone/chunks/sunburst-chart-options.de-D3iq4Q-m.js +2 -0
  669. package/standalone/chunks/sunburst-chart-options.en-BUJ_Pr9C.js +2 -0
  670. package/standalone/chunks/sunburst-chart-options.es-stKrKGz2.js +2 -0
  671. package/standalone/chunks/sunburst-chart-options.fr-RkBtlMNp.js +2 -0
  672. package/standalone/chunks/sunburst-chart-options.nl-BUeDNot_.js +2 -0
  673. package/standalone/chunks/version-Byoa09L1.js +2 -0
  674. package/standalone/interactive-viz-item.js +1 -1
  675. package/standalone/item-grid.js +1 -1
  676. package/standalone/manifest.json +137 -129
  677. package/utils/store/index.d.ts +1 -0
  678. package/utils/store/tests/store-base.test.d.ts +1 -0
  679. package/components/ad-hoc-slot-content-BwcFfXCV.cjs +0 -20
  680. package/components/ad-hoc-slot-content-hSlT62VS.js +0 -29
  681. package/components/add-to-dashboard-D11b-HS7.cjs +0 -166
  682. package/components/add-to-dashboard-KLYGiqKE.js +0 -805
  683. package/components/ai-chat-C0XZ_pvG.cjs +0 -393
  684. package/components/ai-chat-CYrWJ8Wa.js +0 -4464
  685. package/components/ai-interaction-textarea-CT698Pph.js +0 -823
  686. package/components/ai-interaction-textarea-Da1ErRHy.cjs +0 -101
  687. package/components/area-chart-options.config-Bf5kti7Z.cjs +0 -20
  688. package/components/area-chart-options.config-DJnPr93H.js +0 -201
  689. package/components/area-chart-options.de-_tPBzxvf.cjs +0 -20
  690. package/components/area-chart-options.de-pUCTG-s0.js +0 -87
  691. package/components/area-chart-options.en-AuSHs27k.cjs +0 -20
  692. package/components/area-chart-options.en-YNsUeMwN.js +0 -87
  693. package/components/area-chart-options.es-2styw_Fz.js +0 -87
  694. package/components/area-chart-options.es-BzRHGbo6.cjs +0 -20
  695. package/components/area-chart-options.fr--WzQVf2z.js +0 -87
  696. package/components/area-chart-options.fr-DYxUQE3x.cjs +0 -20
  697. package/components/area-chart-options.nl-BTEIqBtE.js +0 -87
  698. package/components/area-chart-options.nl-M0xQQ_la.cjs +0 -20
  699. package/components/area-chart-positioning.config-DWLy-uS1.cjs +0 -20
  700. package/components/area-chart-positioning.config-Dpi4gakJ.js +0 -55
  701. package/components/axis-options.config-BCP0Z8VI.js +0 -270
  702. package/components/axis-options.config-s-Js3ug-.cjs +0 -20
  703. package/components/axis-options.i18n-BOGRmWjp.js +0 -486
  704. package/components/axis-options.i18n-Cw-DmewV.cjs +0 -20
  705. package/components/bar-chart-options.config-CI17HU2I.cjs +0 -20
  706. package/components/bar-chart-options.config-D1x5WPbL.js +0 -261
  707. package/components/bar-chart-options.de-3qSh2TNr.js +0 -110
  708. package/components/bar-chart-options.de-545XMRGl.cjs +0 -20
  709. package/components/bar-chart-options.en-DAee9yHp.cjs +0 -20
  710. package/components/bar-chart-options.en-DrhQe9rV.js +0 -110
  711. package/components/bar-chart-options.es-BZ1yNzUQ.js +0 -110
  712. package/components/bar-chart-options.es-CfoAEZ-0.cjs +0 -20
  713. package/components/bar-chart-options.fr-5i13R8bs.js +0 -110
  714. package/components/bar-chart-options.fr-C2Ic0Dq0.cjs +0 -20
  715. package/components/bar-chart-options.nl-Bb6XiSDH.cjs +0 -20
  716. package/components/bar-chart-options.nl-DLj-qucU.js +0 -110
  717. package/components/bar-chart-positioning.config-B3U1-22D.cjs +0 -20
  718. package/components/bar-chart-positioning.config-DDv8hNyi.js +0 -59
  719. package/components/base-BdkFbMZR.cjs +0 -20
  720. package/components/base-Cvcpdy0h.js +0 -248
  721. package/components/box-plot-options.config-CooBIc6N.js +0 -334
  722. package/components/box-plot-options.config-Cp6H9fyb.cjs +0 -20
  723. package/components/box-plot-options.de-BkgscmvG.js +0 -100
  724. package/components/box-plot-options.de-alI5_N9d.cjs +0 -20
  725. package/components/box-plot-options.en-5kGlvxx8.js +0 -100
  726. package/components/box-plot-options.en-DUlXF9r9.cjs +0 -20
  727. package/components/box-plot-options.es-CIm06Gpk.cjs +0 -20
  728. package/components/box-plot-options.es-v_B9Xb9H.js +0 -100
  729. package/components/box-plot-options.fr-C5j-Dzj6.cjs +0 -20
  730. package/components/box-plot-options.fr-CRSOCgU5.js +0 -100
  731. package/components/box-plot-options.nl-DtnBbRo5.cjs +0 -20
  732. package/components/box-plot-options.nl-ZQjVZPau.js +0 -100
  733. package/components/box-plot-positioning.config-1BuF6Gjj.js +0 -48
  734. package/components/box-plot-positioning.config-lfqDTCdY.cjs +0 -20
  735. package/components/bubble-chart-positioning.config-DVBuVeSs.cjs +0 -20
  736. package/components/bubble-chart-positioning.config-V8KfvCkY.js +0 -55
  737. package/components/bullet-chart-options.config-CBmbmhzI.js +0 -76
  738. package/components/bullet-chart-options.config-Drv0yQ4x.cjs +0 -20
  739. package/components/bullet-chart-options.de-DHqxFlm7.js +0 -39
  740. package/components/bullet-chart-options.de-DQhoZIdV.cjs +0 -20
  741. package/components/bullet-chart-options.en-6vj0tO4B.js +0 -39
  742. package/components/bullet-chart-options.en-CTpxw73t.cjs +0 -20
  743. package/components/bullet-chart-options.es-Cc4GzyJG.cjs +0 -20
  744. package/components/bullet-chart-options.es-DeDFLO8Z.js +0 -39
  745. package/components/bullet-chart-options.fr-750sl4sT.js +0 -39
  746. package/components/bullet-chart-options.fr-D2Z5WBfJ.cjs +0 -20
  747. package/components/bullet-chart-options.nl-B7tw2hO6.cjs +0 -20
  748. package/components/bullet-chart-options.nl-CS-xSSVr.js +0 -39
  749. package/components/bullet-chart-positioning.config-CtlmKdzp.cjs +0 -20
  750. package/components/bullet-chart-positioning.config-IrK6KYbE.js +0 -56
  751. package/components/choropleth-map-positioning.config-BSb0ig5Y.js +0 -55
  752. package/components/choropleth-map-positioning.config-ahRkoZNv.cjs +0 -20
  753. package/components/circle-pack-chart-positioning.config-CS1dbWgR.cjs +0 -20
  754. package/components/circle-pack-chart-positioning.config-DfQztqxL.js +0 -48
  755. package/components/circular-gauge-positioning.config-1HH3Rw2L.js +0 -48
  756. package/components/circular-gauge-positioning.config-BeLsxbow.cjs +0 -20
  757. package/components/column-chart-options.config-B2LIl9lL.js +0 -260
  758. package/components/column-chart-options.config-xmSH4NKF.cjs +0 -20
  759. package/components/column-chart-options.de-BX13JkAO.cjs +0 -20
  760. package/components/column-chart-options.de-CIYtauiG.js +0 -110
  761. package/components/column-chart-options.en-BkAsfXYV.js +0 -110
  762. package/components/column-chart-options.en-DAee9yHp.cjs +0 -20
  763. package/components/column-chart-options.es-CClMQLE-.cjs +0 -20
  764. package/components/column-chart-options.es-jWM7TxS7.js +0 -110
  765. package/components/column-chart-options.fr-BB6301nS.js +0 -110
  766. package/components/column-chart-options.fr-C2Ic0Dq0.cjs +0 -20
  767. package/components/column-chart-options.nl-Bb6XiSDH.cjs +0 -20
  768. package/components/column-chart-options.nl-HUMDgKdl.js +0 -110
  769. package/components/column-chart-positioning.config-CLZuZiVa.cjs +0 -20
  770. package/components/column-chart-positioning.config-DVeVPtzS.js +0 -55
  771. package/components/combination-chart-options.config-0ATFph8S.js +0 -139
  772. package/components/combination-chart-options.config-IEamJGCp.cjs +0 -20
  773. package/components/combination-chart-options.de-BiGjuWUS.cjs +0 -20
  774. package/components/combination-chart-options.de-DVJ9sfLC.js +0 -66
  775. package/components/combination-chart-options.en-B5piXq82.js +0 -66
  776. package/components/combination-chart-options.en-e4XMalU0.cjs +0 -20
  777. package/components/combination-chart-options.es-BmuyyP32.js +0 -66
  778. package/components/combination-chart-options.es-OXb8nozF.cjs +0 -20
  779. package/components/combination-chart-options.fr-CIrnpWEu.js +0 -66
  780. package/components/combination-chart-options.fr-CYzANyZs.cjs +0 -20
  781. package/components/combination-chart-options.nl-BDJ7t0BY.js +0 -66
  782. package/components/combination-chart-options.nl-DyAUjvqC.cjs +0 -20
  783. package/components/combination-chart-positioning.config-BPXqur2s.js +0 -48
  784. package/components/combination-chart-positioning.config-DKNRMoZN.cjs +0 -20
  785. package/components/conditional-number-positioning.config-BWJAnFTq.js +0 -48
  786. package/components/conditional-number-positioning.config-HXcO-Ej5.cjs +0 -20
  787. package/components/data-field-BMeV_pUL.js +0 -119
  788. package/components/data-field-C204ZKd3.cjs +0 -54
  789. package/components/data-field-level-Cv4Vgi_o.cjs +0 -55
  790. package/components/data-field-level-Dpta9m5I.js +0 -245
  791. package/components/data-field-panel-Beg-fx10.js +0 -383
  792. package/components/data-field-panel-D71J7_IE.cjs +0 -87
  793. package/components/data-fields-select-BKoQMwZd.js +0 -293
  794. package/components/data-fields-select-CBTGcYRL.cjs +0 -43
  795. package/components/dataset-selector-list-D9ZmjTyU.cjs +0 -75
  796. package/components/dataset-selector-list-DFMfknD5.js +0 -321
  797. package/components/dataset-selector-row-Bq_yYpb9.cjs +0 -104
  798. package/components/dataset-selector-row-DFPwXde5.js +0 -448
  799. package/components/date-comparison-filter-slots.config-BKZ13uzB.js +0 -33
  800. package/components/date-comparison-filter-slots.config-oABOLs3D.cjs +0 -20
  801. package/components/de-DPhR2zPG.js +0 -598
  802. package/components/de-DUAXVtRS.cjs +0 -20
  803. package/components/display-settings-BkbdgMvh.cjs +0 -143
  804. package/components/display-settings-MnSyqIog.js +0 -317
  805. package/components/display-settings-binning-BQYxWvFI.js +0 -111
  806. package/components/display-settings-binning-DqcCzBrG.cjs +0 -56
  807. package/components/display-settings-datetime-9WraOyqr.cjs +0 -217
  808. package/components/display-settings-datetime-D5UwdwAI.js +0 -414
  809. package/components/display-settings-grand-totals-DYSVU-9G.js +0 -90
  810. package/components/display-settings-grand-totals-w2Zbxwt4.cjs +0 -44
  811. package/components/display-settings-numeric-DGyMDswg.cjs +0 -190
  812. package/components/display-settings-numeric-YOsAAqyJ.js +0 -480
  813. package/components/display-settings-period-over-period-CYwQ6KQI.js +0 -443
  814. package/components/display-settings-period-over-period-zme6yEAi.cjs +0 -227
  815. package/components/donut-chart-options.config-C8wpZzyJ.js +0 -217
  816. package/components/donut-chart-options.config-LbmJpNlm.cjs +0 -20
  817. package/components/donut-chart-options.de-MwhxVUQU.cjs +0 -20
  818. package/components/donut-chart-options.de-yLZjyrqC.js +0 -85
  819. package/components/donut-chart-options.en-CtvZekZO.js +0 -85
  820. package/components/donut-chart-options.en-Z9kCIcjz.cjs +0 -20
  821. package/components/donut-chart-options.es-C89OYrl4.js +0 -85
  822. package/components/donut-chart-options.es-Ch83fRxI.cjs +0 -20
  823. package/components/donut-chart-options.fr-B7JWWsro.cjs +0 -20
  824. package/components/donut-chart-options.fr-Cy4UUjdS.js +0 -85
  825. package/components/donut-chart-options.nl-BT6vFbJ5.js +0 -85
  826. package/components/donut-chart-options.nl-Brxyw7wD.cjs +0 -20
  827. package/components/donut-chart-positioning.config-ovPyzL2x.js +0 -48
  828. package/components/donut-chart-positioning.config-xwoqdu-c.cjs +0 -20
  829. package/components/es-C9faREu_.js +0 -598
  830. package/components/es-DKP3YRmv.cjs +0 -20
  831. package/components/evolution-number-options.config-Ca9ABNVM.js +0 -230
  832. package/components/evolution-number-options.config-CoGBgLLw.cjs +0 -20
  833. package/components/evolution-number-options.de-BrdcqfjF.js +0 -76
  834. package/components/evolution-number-options.de-CjNBpzAw.cjs +0 -20
  835. package/components/evolution-number-options.en-B9BpR4nq.cjs +0 -20
  836. package/components/evolution-number-options.en-Sd6L4_T9.js +0 -76
  837. package/components/evolution-number-options.es-CxbiY9G6.cjs +0 -20
  838. package/components/evolution-number-options.es-RgSav5iQ.js +0 -76
  839. package/components/evolution-number-options.fr-BD73JeDU.js +0 -76
  840. package/components/evolution-number-options.fr-Cae20bgZ.cjs +0 -20
  841. package/components/evolution-number-options.nl-BJ-5M5kB.cjs +0 -20
  842. package/components/evolution-number-options.nl-WHBQ04_S.js +0 -76
  843. package/components/evolution-number-positioning.config-B-H5aEXI.js +0 -48
  844. package/components/evolution-number-positioning.config-CfcajD4B.cjs +0 -20
  845. package/components/filter-expression-picker-BBZ7KHqG.cjs +0 -40
  846. package/components/filter-expression-picker-kLhzHUEW.js +0 -434
  847. package/components/filter-item-Dgh9nHGz.js +0 -793
  848. package/components/filter-item-DnYGrUzZ.cjs +0 -111
  849. package/components/filter-parameter-picker-DhTMuymq.js +0 -372
  850. package/components/filter-parameter-picker-UwSmMkoB.cjs +0 -124
  851. package/components/filter-value-picker-CPuUfjLo.cjs +0 -69
  852. package/components/filter-value-picker-Ch4k6xIK.js +0 -170
  853. package/components/filter-value-picker-datetime-BHtjVhx1.cjs +0 -51
  854. package/components/filter-value-picker-datetime-hTOIBHMi.js +0 -160
  855. package/components/filter-value-picker-hierarchy-Bu1OiV4T.js +0 -316
  856. package/components/filter-value-picker-hierarchy-CTZQfWEJ.cjs +0 -54
  857. package/components/filter-value-picker-numeric-BOY9I-y3.cjs +0 -54
  858. package/components/filter-value-picker-numeric-tstYPaES.js +0 -237
  859. package/components/filters-B_43Qb_P.cjs +0 -199
  860. package/components/filters-ESeCEQPQ.js +0 -927
  861. package/components/formula--lmxX7EE.js +0 -136
  862. package/components/formula-CC33nJ0T.cjs +0 -45
  863. package/components/formula-codemirror-CD2ejhzw.js +0 -12008
  864. package/components/formula-codemirror-za5kEnKc.cjs +0 -215
  865. package/components/formula-display-store-B1qQtQbU.cjs +0 -20
  866. package/components/formula-display-store-dxzteJ_B.js +0 -1087
  867. package/components/formula-editor-BDckEUnh.cjs +0 -224
  868. package/components/formula-editor-DNduncPi.js +0 -685
  869. package/components/formula-field-Cs7SaL-J.cjs +0 -20
  870. package/components/formula-field-dSYKahSQ.js +0 -38
  871. package/components/formula-input-base-CzMOxMBx.js +0 -236
  872. package/components/formula-input-base-DCI3s_eW.cjs +0 -49
  873. package/components/fr-BNVUrX6D.cjs +0 -20
  874. package/components/fr-Dfp7e-Vj.js +0 -598
  875. package/components/funnel-chart-options.config-CygQsQVD.js +0 -211
  876. package/components/funnel-chart-options.config-DgpM8mWb.cjs +0 -20
  877. package/components/funnel-chart-options.de-CW29wkd4.cjs +0 -20
  878. package/components/funnel-chart-options.de-DIoKO3fr.js +0 -76
  879. package/components/funnel-chart-options.en-CGVFwHzU.cjs +0 -20
  880. package/components/funnel-chart-options.en-Doj4mREG.js +0 -76
  881. package/components/funnel-chart-options.es-Bcot5MS3.cjs +0 -20
  882. package/components/funnel-chart-options.es-D-GP_b6C.js +0 -76
  883. package/components/funnel-chart-options.fr-7ZROacsE.cjs +0 -20
  884. package/components/funnel-chart-options.fr-BoQkeuls.js +0 -76
  885. package/components/funnel-chart-options.nl-C0VZ6Ure.cjs +0 -20
  886. package/components/funnel-chart-options.nl-CRq-RjxK.js +0 -76
  887. package/components/funnel-chart-positioning.config-2mR2EyN4.cjs +0 -20
  888. package/components/funnel-chart-positioning.config-Bth5tggl.js +0 -48
  889. package/components/get-dataset-name-CSvAYeJM.js +0 -32
  890. package/components/get-dataset-name-DhYRY3e-.cjs +0 -20
  891. package/components/groupings-14w1cCc3.js +0 -52
  892. package/components/groupings-DxuknvWu.cjs +0 -20
  893. package/components/heat-map-positioning.config-B4bGYbFk.js +0 -48
  894. package/components/heat-map-positioning.config-CwcQrF53.cjs +0 -20
  895. package/components/heat-table-options.config-AhmEjDAb.cjs +0 -20
  896. package/components/heat-table-options.config-x-KBTZo1.js +0 -269
  897. package/components/heat-table-options.de-D16uyY3b.cjs +0 -20
  898. package/components/heat-table-options.de-PCwpTsHu.js +0 -112
  899. package/components/heat-table-options.en-DCNhZ0Qw.js +0 -112
  900. package/components/heat-table-options.en-Dhd_yZdX.cjs +0 -20
  901. package/components/heat-table-options.es-DPqviw02.cjs +0 -20
  902. package/components/heat-table-options.es-Dhtu0ztS.js +0 -112
  903. package/components/heat-table-options.fr-BVwdrQWA.cjs +0 -20
  904. package/components/heat-table-options.fr-dtKsuwpe.js +0 -112
  905. package/components/heat-table-options.nl-BAiKDY6k.cjs +0 -20
  906. package/components/heat-table-options.nl-Bc0JFpfk.js +0 -112
  907. package/components/heat-table-positioning.config-BXCOZwaN.js +0 -55
  908. package/components/heat-table-positioning.config-D8UNVnTk.cjs +0 -20
  909. package/components/hexbin-map-positioning.config-B-WZWfLq.js +0 -48
  910. package/components/hexbin-map-positioning.config-Dn-bgQZ8.cjs +0 -20
  911. package/components/interactive-viz-item-CMxReAvq.js +0 -528
  912. package/components/interactive-viz-item-CQz2XYj8.cjs +0 -261
  913. package/components/item-grid-BYqUrmJa.js +0 -245
  914. package/components/item-grid-DKpxUsMo.cjs +0 -41
  915. package/components/item-grid-item-actions-menu-D3WeDgxI.js +0 -199
  916. package/components/item-grid-item-actions-menu-Dhv9sTNi.cjs +0 -52
  917. package/components/item-option-BWGwUzLt.cjs +0 -269
  918. package/components/item-option-DYXzQ13_.js +0 -953
  919. package/components/item-option-action-button-group-B3PD2K1l.js +0 -117
  920. package/components/item-option-action-button-group-Bc26loDM.cjs +0 -53
  921. package/components/item-option-base-B6axTng-.cjs +0 -56
  922. package/components/item-option-base-BJdtApx5.js +0 -120
  923. package/components/item-option-color-palette-picker-BxIWdQLy.js +0 -2040
  924. package/components/item-option-color-palette-picker-C1t_nY1O.cjs +0 -40
  925. package/components/item-option-color-picker-1BzUBXz-.cjs +0 -34
  926. package/components/item-option-color-picker-9DEx5w-z.js +0 -86
  927. package/components/item-option-color-range-B_gmxlEl.cjs +0 -98
  928. package/components/item-option-color-range-DBtnzfJa.js +0 -219
  929. package/components/item-option-guidelines-DhuU5VZu.js +0 -420
  930. package/components/item-option-guidelines-Dv4EoY3s.cjs +0 -135
  931. package/components/item-option-multi-language-field-BoXUM6-u.js +0 -81
  932. package/components/item-option-multi-language-field-C_eP2I2u.cjs +0 -33
  933. package/components/item-option-number-field-BrEXkjWl.js +0 -101
  934. package/components/item-option-number-field-kXpCE4FI.cjs +0 -38
  935. package/components/item-option-panel-CB338Rgo.cjs +0 -67
  936. package/components/item-option-panel-CUoozNxD.js +0 -181
  937. package/components/item-option-picker-BvT4ITzX.cjs +0 -37
  938. package/components/item-option-picker-fKn763j4.js +0 -76
  939. package/components/item-option-position-picker-D7smHuW7.js +0 -116
  940. package/components/item-option-position-picker-D96vKNTF.cjs +0 -32
  941. package/components/item-option-positions-number-field-BPEATH4R.js +0 -165
  942. package/components/item-option-positions-number-field-C4IOForB.cjs +0 -49
  943. package/components/item-option-radio-button-group-Bb-Rc5nv.cjs +0 -37
  944. package/components/item-option-radio-button-group-DQ0knjcY.js +0 -73
  945. package/components/item-option-slider-BuA7tdbc.js +0 -97
  946. package/components/item-option-slider-CLqtmYAE.cjs +0 -33
  947. package/components/item-option-switch-CvzS-KN9.js +0 -68
  948. package/components/item-option-switch-DtRz_zTM.cjs +0 -30
  949. package/components/item-option-text-field-CW3R8voC.js +0 -79
  950. package/components/item-option-text-field-D1NFqoms.cjs +0 -33
  951. package/components/item-slot-drop-B7JmgKMJ.cjs +0 -91
  952. package/components/item-slot-drop-DaTJ-Gym.js +0 -329
  953. package/components/item-slot-drop-panel-0wUkaWiM.js +0 -353
  954. package/components/item-slot-drop-panel-CdCEWBGb.cjs +0 -57
  955. package/components/item-slot-picker-BiHy7QX1.js +0 -524
  956. package/components/item-slot-picker-BvrK1U4h.cjs +0 -169
  957. package/components/item-slot-picker-panel-BmlCimZ9.js +0 -446
  958. package/components/item-slot-picker-panel-CeT847QM.cjs +0 -81
  959. package/components/line-chart-options.config-C3_RnROS.js +0 -237
  960. package/components/line-chart-options.config-RTYFJQSE.cjs +0 -20
  961. package/components/line-chart-options.de-CKbHARjX.cjs +0 -20
  962. package/components/line-chart-options.de-CtxTZ-Nx.js +0 -81
  963. package/components/line-chart-options.en-BgXtU92P.js +0 -81
  964. package/components/line-chart-options.en-DmtT3Hbw.cjs +0 -20
  965. package/components/line-chart-options.es--u7QlrhG.js +0 -81
  966. package/components/line-chart-options.es-BwyQviz-.cjs +0 -20
  967. package/components/line-chart-options.fr-BUwOFGR7.cjs +0 -20
  968. package/components/line-chart-options.fr-BaPc1M70.js +0 -81
  969. package/components/line-chart-options.nl-BkPXShNF.cjs +0 -20
  970. package/components/line-chart-options.nl-C86fSn7a.js +0 -81
  971. package/components/line-chart-positioning.config-DaDYXk9Z.cjs +0 -20
  972. package/components/line-chart-positioning.config-Imvzv3EC.js +0 -55
  973. package/components/localized-mixin-BLUbrY_Z.js +0 -45
  974. package/components/localized-mixin-DceE4W-d.cjs +0 -20
  975. package/components/marker-map-positioning.config-BGDRklk5.cjs +0 -20
  976. package/components/marker-map-positioning.config-DouILqTQ.js +0 -48
  977. package/components/nl-BFAURMxk.cjs +0 -20
  978. package/components/nl-Cs2_7YBI.js +0 -598
  979. package/components/ohlc-chart-options.config-CWRI5bXI.js +0 -94
  980. package/components/ohlc-chart-options.config-Pqd5MFIv.cjs +0 -20
  981. package/components/ohlc-chart-positioning.config-Bcpj8NAt.js +0 -78
  982. package/components/ohlc-chart-positioning.config-CHJbhqWA.cjs +0 -20
  983. package/components/parallel-coordinates-plot-positioning.config-BRPawZLg.js +0 -48
  984. package/components/parallel-coordinates-plot-positioning.config-CnyUP9E-.cjs +0 -20
  985. package/components/pivot-table-positioning.config-8rROPmIw.js +0 -55
  986. package/components/pivot-table-positioning.config-BvD825Uc.cjs +0 -20
  987. package/components/pyramid-chart-options.config-C7btzuZj.js +0 -220
  988. package/components/pyramid-chart-options.config-ClLsv7PT.cjs +0 -20
  989. package/components/pyramid-chart-options.de-BYqibA2g.cjs +0 -20
  990. package/components/pyramid-chart-options.de-C7n_k-tE.js +0 -102
  991. package/components/pyramid-chart-options.en-Cu93qdAo.js +0 -102
  992. package/components/pyramid-chart-options.en-HiLgjfbn.cjs +0 -20
  993. package/components/pyramid-chart-options.es-BQ8qCZ32.cjs +0 -20
  994. package/components/pyramid-chart-options.es-DCRAv4r_.js +0 -102
  995. package/components/pyramid-chart-options.fr-BA7xAAsG.cjs +0 -20
  996. package/components/pyramid-chart-options.fr-CLXgcrPz.js +0 -102
  997. package/components/pyramid-chart-options.nl-BYiPyjuQ.cjs +0 -20
  998. package/components/pyramid-chart-options.nl-CylUmHpw.js +0 -102
  999. package/components/pyramid-chart-positioning.config-CqL_Z0Ok.js +0 -55
  1000. package/components/pyramid-chart-positioning.config-DKd65Pdf.cjs +0 -20
  1001. package/components/radar-chart-options.config-B5WP2MPc.cjs +0 -20
  1002. package/components/radar-chart-options.config-CtA6MpUp.js +0 -152
  1003. package/components/radar-chart-options.de-BZPerBca.js +0 -46
  1004. package/components/radar-chart-options.de-D9sVJ3e-.cjs +0 -20
  1005. package/components/radar-chart-options.en-Brb_kgjH.cjs +0 -20
  1006. package/components/radar-chart-options.en-tDJgJQVC.js +0 -46
  1007. package/components/radar-chart-options.es-BmpV458O.cjs +0 -20
  1008. package/components/radar-chart-options.es-Dz4wRR-P.js +0 -46
  1009. package/components/radar-chart-options.fr-B-gaDJX4.cjs +0 -20
  1010. package/components/radar-chart-options.fr-D5KXeury.js +0 -46
  1011. package/components/radar-chart-options.nl-D3_CmNB3.js +0 -46
  1012. package/components/radar-chart-options.nl-DH_wKvgI.cjs +0 -20
  1013. package/components/radar-chart-positioning.config-CpYbMIeY.js +0 -55
  1014. package/components/radar-chart-positioning.config-oPyZCdrF.cjs +0 -20
  1015. package/components/route-map-positioning.config-BCOVbseo.cjs +0 -20
  1016. package/components/route-map-positioning.config-DPspLTzr.js +0 -66
  1017. package/components/sankey-diagram-positioning.config-BVNDJhvU.js +0 -66
  1018. package/components/sankey-diagram-positioning.config-Da0e_DAS.cjs +0 -20
  1019. package/components/scatter-plot-options.config-BplrME7w.js +0 -133
  1020. package/components/scatter-plot-options.config-DJW85uFv.cjs +0 -20
  1021. package/components/scatter-plot-options.de-3CPVK7Hi.cjs +0 -20
  1022. package/components/scatter-plot-options.de-CNLrv6j3.js +0 -99
  1023. package/components/scatter-plot-options.en-DigMzpQy.js +0 -99
  1024. package/components/scatter-plot-options.en-Dzvigy8-.cjs +0 -20
  1025. package/components/scatter-plot-options.es-C-IH7GVH.cjs +0 -20
  1026. package/components/scatter-plot-options.es-CQm_VVqJ.js +0 -99
  1027. package/components/scatter-plot-options.fr-Cdp6kPQi.cjs +0 -20
  1028. package/components/scatter-plot-options.fr-s0M39VT4.js +0 -99
  1029. package/components/scatter-plot-options.nl-CqpPIO03.js +0 -99
  1030. package/components/scatter-plot-options.nl-DeINlMqc.cjs +0 -20
  1031. package/components/scatter-plot-positioning.config-DMZuAjXU.js +0 -77
  1032. package/components/scatter-plot-positioning.config-vR2_9XYh.cjs +0 -20
  1033. package/components/set-locale-B9greCq4.js +0 -43
  1034. package/components/set-locale-BkbSlaQk.cjs +0 -20
  1035. package/components/slicer-filter-positioning.config-Byf9Q8gT.cjs +0 -20
  1036. package/components/slicer-filter-positioning.config-CzzuCQDP.js +0 -48
  1037. package/components/slot-menu-BAtOYWxs.js +0 -429
  1038. package/components/slot-menu-C_iIcdDw.cjs +0 -71
  1039. package/components/slot-menu-list-DoRLtT2d.js +0 -348
  1040. package/components/slot-menu-list-K4_pghrC.cjs +0 -44
  1041. package/components/slot-role-classification-2wChhpcq.cjs +0 -20
  1042. package/components/slot-role-classification-B8bkGhQ_.js +0 -133
  1043. package/components/slots-config-Cd4xAG4H.cjs +0 -20
  1044. package/components/slots-config-GlSNH7Gr.js +0 -76
  1045. package/components/speedometer-chart-positioning.config-DfnWIx7U.cjs +0 -20
  1046. package/components/speedometer-chart-positioning.config-DsCodDVP.js +0 -48
  1047. package/components/spike-map-positioning.config-DPbVWLF7.cjs +0 -20
  1048. package/components/spike-map-positioning.config-sSSQuxIm.js +0 -55
  1049. package/components/strip-plot-positioning.config-C01KV7Er.js +0 -48
  1050. package/components/strip-plot-positioning.config-Czz4B-U5.cjs +0 -20
  1051. package/components/sunburst-chart-options.config-Bjue_lQN.js +0 -184
  1052. package/components/sunburst-chart-options.config-DszAtggj.cjs +0 -20
  1053. package/components/sunburst-chart-options.de-Cv5jxNjX.js +0 -60
  1054. package/components/sunburst-chart-options.de-DV_80qR9.cjs +0 -20
  1055. package/components/sunburst-chart-options.en-Zfns8M0i.cjs +0 -20
  1056. package/components/sunburst-chart-options.en-wsOVOyb6.js +0 -60
  1057. package/components/sunburst-chart-options.es-BSKiBxl_.cjs +0 -20
  1058. package/components/sunburst-chart-options.es-Qhu6VcVi.js +0 -60
  1059. package/components/sunburst-chart-options.fr-DOcWgNOZ.cjs +0 -20
  1060. package/components/sunburst-chart-options.fr-GdCEoo8O.js +0 -60
  1061. package/components/sunburst-chart-options.nl-D2JXoYTB.cjs +0 -20
  1062. package/components/sunburst-chart-options.nl-oTUKol5z.js +0 -60
  1063. package/components/sunburst-chart-positioning.config-C4u-zAIV.js +0 -48
  1064. package/components/sunburst-chart-positioning.config-g8eXAhP4.cjs +0 -20
  1065. package/components/symbol-map-positioning.config-Be2wvwUD.cjs +0 -20
  1066. package/components/symbol-map-positioning.config-CRZwvQS5.js +0 -55
  1067. package/components/treemap-chart-positioning.config-CvMw2lMe.cjs +0 -20
  1068. package/components/treemap-chart-positioning.config-Dq1nuvca.js +0 -55
  1069. package/components/utils-Bkykodi1.cjs +0 -20
  1070. package/components/utils-C3-82TMs.js +0 -240
  1071. package/components/venn-diagram-positioning.config-CJbmXy8r.cjs +0 -20
  1072. package/components/venn-diagram-positioning.config-DoYvs8k_.js +0 -55
  1073. package/components/wordcloud-chart-positioning.config-BYz4mqOF.cjs +0 -20
  1074. package/components/wordcloud-chart-positioning.config-C5gc4v7C.js +0 -55
  1075. package/standalone/chunks/add-to-dashboard-BitIAbse.js +0 -148
  1076. package/standalone/chunks/area-chart-options.config-CXWPLl-0.js +0 -2
  1077. package/standalone/chunks/area-chart-options.de-Dr8RVJtb.js +0 -2
  1078. package/standalone/chunks/area-chart-options.en-DV1AZ274.js +0 -2
  1079. package/standalone/chunks/area-chart-options.es-Cg7uU7OK.js +0 -2
  1080. package/standalone/chunks/area-chart-options.fr-CJjgrAt2.js +0 -2
  1081. package/standalone/chunks/area-chart-options.nl-CTGxVXNo.js +0 -2
  1082. package/standalone/chunks/axis-options.config-DP9f04t6.js +0 -2
  1083. package/standalone/chunks/axis-options.i18n-BwkGC9PX.js +0 -2
  1084. package/standalone/chunks/bar-chart-options.config-w4REKu0t.js +0 -2
  1085. package/standalone/chunks/bar-chart-options.de-DCVBVtFi.js +0 -2
  1086. package/standalone/chunks/bar-chart-options.en-B4xiZxTy.js +0 -2
  1087. package/standalone/chunks/bar-chart-options.es-UqehXB9Z.js +0 -2
  1088. package/standalone/chunks/bar-chart-options.fr-CaUBeZBK.js +0 -2
  1089. package/standalone/chunks/bar-chart-options.nl-C2tFvUE8.js +0 -2
  1090. package/standalone/chunks/base-DetXzglI.js +0 -2
  1091. package/standalone/chunks/box-plot-options.config-BlYMd4FN.js +0 -2
  1092. package/standalone/chunks/box-plot-options.de-RDAv8kHb.js +0 -2
  1093. package/standalone/chunks/box-plot-options.en-kGLfLsv3.js +0 -2
  1094. package/standalone/chunks/box-plot-options.es-Dw3ivv22.js +0 -2
  1095. package/standalone/chunks/box-plot-options.fr-De5nkQNr.js +0 -2
  1096. package/standalone/chunks/box-plot-options.nl-DD1f-Nlt.js +0 -2
  1097. package/standalone/chunks/bullet-chart-options.config-Cc5lKDjs.js +0 -2
  1098. package/standalone/chunks/bullet-chart-options.de-Ci81seQn.js +0 -2
  1099. package/standalone/chunks/bullet-chart-options.en-Dk95moRX.js +0 -2
  1100. package/standalone/chunks/bullet-chart-options.es-eIqahAOr.js +0 -2
  1101. package/standalone/chunks/bullet-chart-options.fr-CEABbpT0.js +0 -2
  1102. package/standalone/chunks/bullet-chart-options.nl-B3gOPn5D.js +0 -2
  1103. package/standalone/chunks/column-chart-options.config-v7fBgXRI.js +0 -2
  1104. package/standalone/chunks/column-chart-options.de-OoMpZc7N.js +0 -2
  1105. package/standalone/chunks/column-chart-options.en-B4xiZxTy.js +0 -2
  1106. package/standalone/chunks/column-chart-options.es-BL-wKXpp.js +0 -2
  1107. package/standalone/chunks/column-chart-options.fr-CaUBeZBK.js +0 -2
  1108. package/standalone/chunks/column-chart-options.nl-C2tFvUE8.js +0 -2
  1109. package/standalone/chunks/combination-chart-options.config-C9hmUPal.js +0 -2
  1110. package/standalone/chunks/combination-chart-options.de-ChlEhT09.js +0 -2
  1111. package/standalone/chunks/combination-chart-options.en-DhCXqnwj.js +0 -2
  1112. package/standalone/chunks/combination-chart-options.es-DESqZp0U.js +0 -2
  1113. package/standalone/chunks/combination-chart-options.fr-v6P2xQCi.js +0 -2
  1114. package/standalone/chunks/combination-chart-options.nl-D8ato2ve.js +0 -2
  1115. package/standalone/chunks/date-comparison-filter-slots.config-DfHq9lB8.js +0 -2
  1116. package/standalone/chunks/de-DasXCtPF.js +0 -2
  1117. package/standalone/chunks/display-settings-binning-D7udCQZB.js +0 -38
  1118. package/standalone/chunks/display-settings-datetime-DoDqA4cJ.js +0 -199
  1119. package/standalone/chunks/display-settings-grand-totals-LZT2gYJu.js +0 -26
  1120. package/standalone/chunks/display-settings-numeric-7Vq_f1D0.js +0 -172
  1121. package/standalone/chunks/display-settings-period-over-period-CBjYIyKC.js +0 -209
  1122. package/standalone/chunks/donut-chart-options.config-BuZj-QX5.js +0 -2
  1123. package/standalone/chunks/donut-chart-options.de-QusCBL9B.js +0 -2
  1124. package/standalone/chunks/donut-chart-options.en-D0ligFH6.js +0 -2
  1125. package/standalone/chunks/donut-chart-options.es-Bmn34sGt.js +0 -2
  1126. package/standalone/chunks/donut-chart-options.fr-DGBawYKp.js +0 -2
  1127. package/standalone/chunks/donut-chart-options.nl-DzNTu0v4.js +0 -2
  1128. package/standalone/chunks/embed-Dymwil3u.js +0 -228
  1129. package/standalone/chunks/es-cQV58zLc.js +0 -2
  1130. package/standalone/chunks/evolution-number-options.config-B5Cj0YAQ.js +0 -2
  1131. package/standalone/chunks/evolution-number-options.de-Ch0LaHwI.js +0 -2
  1132. package/standalone/chunks/evolution-number-options.en-riChGfa6.js +0 -2
  1133. package/standalone/chunks/evolution-number-options.es-BdG3lvVQ.js +0 -2
  1134. package/standalone/chunks/evolution-number-options.fr-_h0kLeRL.js +0 -2
  1135. package/standalone/chunks/evolution-number-options.nl-CqycrLe1.js +0 -2
  1136. package/standalone/chunks/filters-CF1JZIC1.js +0 -544
  1137. package/standalone/chunks/formula-codemirror-DSKNnuLg.js +0 -197
  1138. package/standalone/chunks/fr-DzRE2NaZ.js +0 -2
  1139. package/standalone/chunks/funnel-chart-options.config-1SyJ_qYd.js +0 -2
  1140. package/standalone/chunks/funnel-chart-options.de-BTxwd7Pe.js +0 -2
  1141. package/standalone/chunks/funnel-chart-options.en-CmY-uO1P.js +0 -2
  1142. package/standalone/chunks/funnel-chart-options.es-DLqBydsE.js +0 -2
  1143. package/standalone/chunks/funnel-chart-options.fr-ztQ5OMZi.js +0 -2
  1144. package/standalone/chunks/funnel-chart-options.nl-DVysx7tP.js +0 -2
  1145. package/standalone/chunks/heat-table-options.config-ByHwT44G.js +0 -2
  1146. package/standalone/chunks/heat-table-options.de-BMx67hXo.js +0 -2
  1147. package/standalone/chunks/heat-table-options.en-BbobGoXs.js +0 -2
  1148. package/standalone/chunks/heat-table-options.es-zKo-QMBY.js +0 -2
  1149. package/standalone/chunks/heat-table-options.fr-XSTL1CSb.js +0 -2
  1150. package/standalone/chunks/heat-table-options.nl-Cgcccsee.js +0 -2
  1151. package/standalone/chunks/item-option-action-button-group-CM3q7mFJ.js +0 -35
  1152. package/standalone/chunks/item-option-base-BoBGd2zN.js +0 -38
  1153. package/standalone/chunks/item-option-color-palette-picker-BTGLKRU6.js +0 -22
  1154. package/standalone/chunks/item-option-color-picker-WIaAaoWa.js +0 -16
  1155. package/standalone/chunks/item-option-color-range-DP8KXyD7.js +0 -80
  1156. package/standalone/chunks/item-option-guidelines-CvvRU02d.js +0 -117
  1157. package/standalone/chunks/item-option-multi-language-field-DOc_5pUa.js +0 -15
  1158. package/standalone/chunks/item-option-number-field-fj7jIBZ4.js +0 -20
  1159. package/standalone/chunks/item-option-panel-C1GmQ9SW.js +0 -298
  1160. package/standalone/chunks/item-option-picker-D0d0BXk7.js +0 -19
  1161. package/standalone/chunks/item-option-position-picker-BpYLyMS7.js +0 -14
  1162. package/standalone/chunks/item-option-positions-number-field-p6ghB0uD.js +0 -31
  1163. package/standalone/chunks/item-option-radio-button-group-DinqecBS.js +0 -19
  1164. package/standalone/chunks/item-option-slider--YXct33p.js +0 -15
  1165. package/standalone/chunks/item-option-switch-BRuMJhT2.js +0 -12
  1166. package/standalone/chunks/item-option-text-field-Cvu0fi5x.js +0 -15
  1167. package/standalone/chunks/item-slot-picker-panel-4ATGR7nP.js +0 -435
  1168. package/standalone/chunks/line-chart-options.config-DyqQLGw8.js +0 -2
  1169. package/standalone/chunks/line-chart-options.de-BScjvJsI.js +0 -2
  1170. package/standalone/chunks/line-chart-options.en-BVWFsre-.js +0 -2
  1171. package/standalone/chunks/line-chart-options.es-CxNJevNs.js +0 -2
  1172. package/standalone/chunks/line-chart-options.fr-LCsLx0Uh.js +0 -2
  1173. package/standalone/chunks/line-chart-options.nl-BOgcjx48.js +0 -2
  1174. package/standalone/chunks/load-data-fields-for-datasets-DWys6Xqn.js +0 -25
  1175. package/standalone/chunks/load-formula-codemirror-BP6dGYyV.js +0 -6
  1176. package/standalone/chunks/localized-mixin-D3GVo182.js +0 -2
  1177. package/standalone/chunks/nl-Bzvdbvjs.js +0 -2
  1178. package/standalone/chunks/ohlc-chart-options.config-Bu2GKlAH.js +0 -2
  1179. package/standalone/chunks/pyramid-chart-options.config-CBd-pgn_.js +0 -2
  1180. package/standalone/chunks/pyramid-chart-options.de-CBL_8UjH.js +0 -2
  1181. package/standalone/chunks/pyramid-chart-options.en-CTozc1Uh.js +0 -2
  1182. package/standalone/chunks/pyramid-chart-options.es-BKciL-nO.js +0 -2
  1183. package/standalone/chunks/pyramid-chart-options.fr-B04m8B_b.js +0 -2
  1184. package/standalone/chunks/pyramid-chart-options.nl-DIhj1NYF.js +0 -2
  1185. package/standalone/chunks/radar-chart-options.config-CnQ8mbs9.js +0 -2
  1186. package/standalone/chunks/radar-chart-options.de-_LSueG69.js +0 -2
  1187. package/standalone/chunks/radar-chart-options.en-DBA8TpKJ.js +0 -2
  1188. package/standalone/chunks/radar-chart-options.es-DjSsFQkP.js +0 -2
  1189. package/standalone/chunks/radar-chart-options.fr-CCh2jYPS.js +0 -2
  1190. package/standalone/chunks/radar-chart-options.nl-tZ0JRjXD.js +0 -2
  1191. package/standalone/chunks/scatter-plot-options.config-BV9Lb6-v.js +0 -2
  1192. package/standalone/chunks/scatter-plot-options.de-Dg3O1b2R.js +0 -2
  1193. package/standalone/chunks/scatter-plot-options.en-CJH2ZlFW.js +0 -2
  1194. package/standalone/chunks/scatter-plot-options.es-7kExRi4J.js +0 -2
  1195. package/standalone/chunks/scatter-plot-options.fr-Bbkf8efT.js +0 -2
  1196. package/standalone/chunks/scatter-plot-options.nl-zrEXoM-k.js +0 -2
  1197. package/standalone/chunks/sunburst-chart-options.config-DRjBFJV0.js +0 -2
  1198. package/standalone/chunks/sunburst-chart-options.de-D6enQCjV.js +0 -2
  1199. package/standalone/chunks/sunburst-chart-options.en-D9DSivE2.js +0 -2
  1200. package/standalone/chunks/sunburst-chart-options.es-Bb7iCI1h.js +0 -2
  1201. package/standalone/chunks/sunburst-chart-options.fr-CCzUgv7r.js +0 -2
  1202. package/standalone/chunks/sunburst-chart-options.nl-bGOCvc4m.js +0 -2
  1203. package/standalone/chunks/version-DJES6maY.js +0 -2
@@ -0,0 +1,532 @@
1
+
2
+ import{n as e,t}from"./localized-mixin-BAHP4Cln.js";import{n,r}from"./lit-localize-CIGP-NUw.js";import{t as i}from"./localized-decorator-Buib6Rq1.js";import{t as a}from"./luzmoTrashOutline-DXZpJx7f.js";import{n as o,r as s,t as c}from"./calculate-data-field-icon-CrEVAfzJ.js";import{t as l}from"./luzmoPlus-Dyrrz0v8.js";import{t as u}from"./luzmo-icon-markup-27PRW8QM.js";import{t as d}from"./v4-CI0qP0ur.js";import{n as f}from"./data-broker-Dgg5mQze.js";import{c as ee}from"./type-check-CC6bgirK.js";import{t as p}from"./localize-BXHWaHdZ.js";import{n as m}from"./periods.const-Cie50jR4.js";import"./load-data-fields-for-datasets-CH-5tbXr.js";import{html as h,ifDefined as te,nothing as g,property as _,query as ne,repeat as re,state as v,unsafeCSS as y}from"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.5.1/standalone/lit.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.5.1/standalone/action-button.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.5.1/standalone/field-label.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.5.1/standalone/icon.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.5.1/standalone/number-field.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.5.1/standalone/overlay.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.5.1/standalone/picker.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.5.1/standalone/popover.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.5.1/standalone/progress-circle.js";import{ElementSizes as b,LuzmoElement as x,SizedMixin as S}from"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.5.1/standalone/utils.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.5.1/standalone/tooltip.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.5.1/standalone/button.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.5.1/standalone/divider.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.5.1/standalone/menu.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.5.1/standalone/badge.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.5.1/standalone/select.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.5.1/standalone/options.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.5.1/standalone/tags.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.5.1/standalone/text-field.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.5.1/standalone/date-time-picker.js";var C=[``,``,``],ie=`⁣`;function w(e,t){let n=RegExp(`(${C.join(`|`)})`,`u`),r=[];for(let i of e.replaceAll(ie,``).split(n)){let e=C.indexOf(i);e===-1?i&&r.push(i):r.push(t[e])}return r}var T=()=>[{id:`? = ?`,key:`? = ?`,expression:`? = ?`,name:n(`equals`,{desc:`Filter expression for equals comparison`}),description:n(`equals`,{desc:`Filter expression for equals comparison`}),tiny:n(`eq`,{desc:`Short form of equals comparison`}),type:[`numeric`,`hierarchy`],subtype:[`ip_address`]},{id:`? != ?`,key:`? != ?`,expression:`? != ?`,name:n(`not equals`,{desc:`Filter expression for not equals comparison`}),description:n(`not equals`,{desc:`Filter expression for not equals comparison`}),tiny:n(`not eq`,{desc:`Short form of not equals comparison`}),type:[`numeric`,`hierarchy`],subtype:[`ip_address`]},{id:`? in ?`,key:`? in ?`,expression:`? in ?`,name:n(`is in`,{desc:`Filter expression for in comparison`}),description:n(`is in`,{desc:`Filter expression for in comparison`}),tiny:n(`is in`,{desc:`Filter expression for in comparison`}),type:[`numeric`,`hierarchy`],subtype:[`ip_address`]},{id:`? not in ?`,key:`? not in ?`,expression:`? not in ?`,name:n(`is not in`,{desc:`Filter expression for not in comparison`}),description:n(`is not in`,{desc:`Filter expression for not in comparison`}),tiny:n(`is not in`,{desc:`Filter expression for not in comparison`}),type:[`numeric`,`hierarchy`],subtype:[`ip_address`]},{id:`? like ?`,key:`? like ?`,expression:`? like ?`,name:n(`contains`,{desc:`Filter expression for contains comparison`}),description:n(`contains`,{desc:`Filter expression for contains comparison`}),tiny:n(`cont`,{desc:`Short form of contains comparison in filter expression`}),type:[`hierarchy`],subtype:[`ip_address`]},{id:`? not like ?`,key:`? not like ?`,expression:`? not like ?`,name:n(`does not contain`,{desc:`Filter expression for does not contain comparison`}),description:n(`does not contain`,{desc:`Filter expression for does not contain comparison`}),tiny:n(`not cont`,{desc:`Short form of does not contain comparison in filter expression`}),type:[`hierarchy`],subtype:[`ip_address`]},{id:`? starts with ?`,key:`? starts with ?`,expression:`? starts with ?`,name:n(`starts with`,{desc:`Filter expression for starts with comparison`}),description:n(`starts with`,{desc:`Filter expression for starts with comparison`}),tiny:n(`starts with`,{desc:`Filter expression for starts with comparison`}),type:[`hierarchy`],subtype:[`ip_address`]},{id:`? not starts with ?`,key:`? not starts with ?`,expression:`? not starts with ?`,name:n(`does not start with`,{desc:`Filter expression for does not start with comparison`}),description:n(`does not start with`,{desc:`Filter expression for does not start with comparison`}),tiny:n(`not starts with`,{desc:`Short form of does not start with comparison in filter expression`}),type:[`hierarchy`],subtype:[`ip_address`]},{id:`? ends with ?`,key:`? ends with ?`,expression:`? ends with ?`,name:n(`ends with`,{desc:`Filter expression for ends with comparison`}),description:n(`ends with`,{desc:`Filter expression for ends with comparison`}),tiny:n(`ends with`,{desc:`Filter expression for ends with comparison`}),type:[`hierarchy`],subtype:[`ip_address`]},{id:`? not ends with ?`,key:`? not ends with ?`,expression:`? not ends with ?`,name:n(`does not end with`,{desc:`Filter expression for does not end with comparison`}),description:n(`does not end with`,{desc:`Filter expression for does not end with comparison`}),tiny:n(`not ends with`,{desc:`Short form of does not end with comparison in filter expression`}),type:[`hierarchy`],subtype:[`ip_address`]},{id:`? < ?`,key:`? < ?`,expression:`? < ?`,name:n(`less than`,{desc:`Filter expression for less than comparison`}),description:n(`less than`,{desc:`Filter expression for less than comparison`}),tiny:`<`,type:[`numeric`,`datetime`],subtype:[`ip_address`]},{id:`? <= ?`,key:`? <= ?`,expression:`? <= ?`,name:n(`less than or equal`,{desc:`Filter expression for less than or equal comparison`}),description:n(`less than or equal`,{desc:`Filter expression for less than or equal comparison`}),tiny:`<=`,type:[`numeric`,`datetime`],subtype:[`ip_address`]},{id:`? > ?`,key:`? > ?`,expression:`? > ?`,name:n(`greater than`,{desc:`Filter expression for greater than comparison`}),description:n(`greater than`,{desc:`Filter expression for greater than comparison`}),tiny:`>`,type:[`numeric`,`datetime`],subtype:[`ip_address`]},{id:`? >= ?`,key:`? >= ?`,expression:`? >= ?`,name:n(`greater than or equal`,{desc:`Filter expression for greater than or equal comparison`}),description:n(`greater than or equal`,{desc:`Filter expression for greater than or equal comparison`}),tiny:`>=`,type:[`numeric`,`datetime`],subtype:[`ip_address`]},{id:`? between ?`,key:`? between ?`,expression:`? between ?`,name:n(`is between`,{desc:`Filter expression for between comparison`}),description:n(`is between`,{desc:`Filter expression for between comparison`}),tiny:n(`between`,{desc:`Short form of between comparison in filter expression`}),type:[],subtype:[`ip_address`]},{id:`last_now`,key:`last_now`,expression:`last_now`,name:n(`last (x) periods`,{desc:`Filter expression for last (x) periods`}),description:n(`last (x) periods`,{desc:`Filter expression for last (x) periods`}),tiny:n(`last`,{desc:`Short form of last (x) periods in filter expression`}),type:[`datetime`]},{id:`last_available`,key:`last_available`,expression:`last_available`,name:n(`last (x) available periods`,{desc:`Filter expression for last (x) available periods`}),description:n(`last (x) available periods`,{desc:`Filter expression for last (x) available periods`}),tiny:n(`last available`,{desc:`Short form of last (x) available periods in filter expression`}),type:[`datetime`]},{id:`last_completed`,key:`last_completed`,expression:`last_completed`,name:n(`last completed period`,{desc:`Filter expression for last completed period`}),description:n(`last completed (period)`,{desc:`Filter expression for last completed period`}),tiny:n(`last completed`,{desc:`Short form of last completed period in filter expression`}),type:[`datetime`]},{id:`next_now`,key:`next_now`,expression:`next_now`,name:n(`next (x) periods`,{desc:`Filter expression for next (x) periods`}),description:n(`next (x) periods`,{desc:`Filter expression for next (x) periods`}),tiny:n(`next`,{desc:`Short form of next (x) periods in filter expression`}),type:[`datetime`]},{id:`more_than_ago`,key:`more_than_ago`,expression:`more_than_ago`,name:n(`more than (x) periods ago`,{desc:`Filter expression for more than (x) periods ago`}),description:n(`more than (x) periods ago`,{desc:`Filter expression for more than (x) periods ago`}),tiny:n(`more than ago`,{desc:`Short form of more than (x) periods ago in filter expression`}),type:[`datetime`]},{id:`or_more_ago`,key:`or_more_ago`,expression:`or_more_ago`,name:n(`(x) periods or more ago`,{desc:`Filter expression for (x) periods or more ago`}),description:n(`(x) periods or more ago`,{desc:`Filter expression for (x) periods or more ago`}),tiny:n(`or more ago`,{desc:`Short form of (x) periods or more ago in filter expression`}),type:[`datetime`]},{id:`next_full`,key:`next_full`,expression:`next_full`,name:n(`next full (period)`,{desc:`Filter expression for next full period`}),description:n(`next full (period)`,{desc:`Filter expression for next full period`}),tiny:n(`next full`,{desc:`Short form of next full period in filter expression`}),type:[`datetime`]},{id:`WTD`,key:`to_date`,expression:`to_date`,unit:4,name:n(`week to date`,{desc:`Filter expression for week to date`}),description:n(`week to date`,{desc:`Filter expression for week to date`}),tiny:n(`WTD`,{desc:`Short form of week to date in filter expression`}),type:[`datetime`]},{id:`MTD`,key:`to_date`,expression:`to_date`,unit:3,name:n(`month to date`,{desc:`Filter expression for month to date`}),description:n(`month to date`,{desc:`Filter expression for month to date`}),tiny:n(`MTD`,{desc:`Short form of month to date in filter expression`}),type:[`datetime`]},{id:`QTD`,key:`to_date`,expression:`to_date`,unit:2,name:n(`quarter to date`,{desc:`Filter expression for quarter to date`}),description:n(`quarter to date`,{desc:`Filter expression for quarter to date`}),tiny:n(`QTD`,{desc:`Short form of quarter to date in filter expression`}),type:[`datetime`]},{id:`YTD`,key:`to_date`,expression:`to_date`,unit:1,name:n(`year to date`,{desc:`Filter expression for year to date`}),description:n(`year to date`,{desc:`Filter expression for year to date`}),tiny:n(`YTD`,{desc:`Short form of year to date in filter expression`}),type:[`datetime`]},{id:`? is null`,key:`? is null`,expression:`? is null`,name:n(`is missing`,{desc:`Filter expression for is missing`}),description:n(`is missing`,{desc:`Filter expression for is missing`}),tiny:n(`missing`,{desc:`Short form of is missing in filter expression`}),type:[`numeric`,`datetime`,`hierarchy`,`spatial`],subtype:[`ip_address`]},{id:`? is not null`,key:`? is not null`,expression:`? is not null`,name:n(`is not missing`,{desc:`Filter expression for is not missing`}),description:n(`is not missing`,{desc:`Filter expression for is not missing`}),tiny:n(`not missing`,{desc:`Short form of is not missing in filter expression`}),type:[`numeric`,`datetime`,`hierarchy`,`spatial`],subtype:[`ip_address`]}],ae=(e,t,n)=>{let r=new Set([`? in ?`,`? not in ?`]);return!e&&!t?T():T().filter(i=>(e&&i.type.includes(e)||t&&i.subtype?.includes(t))&&!(n&&r.has(i.key)))},oe=new Set([`last_now`,`last_available`,`next_now`,`more_than_ago`,`or_more_ago`]),se=new Set([`last_completed`,`next_full`]),ce=new Set([`? is null`,`? is not null`,`to_date`]),le=new Set([`? = ?`,`? != ?`,`? < ?`,`? <= ?`,`? > ?`,`? >= ?`]),ue=3,de=32;function E(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function D(e){return E(e)?typeof e.columnId==`string`||typeof e.column_id==`string`||typeof e.formulaId==`string`||typeof e.formula_id==`string`||typeof e.formula==`string`||(typeof e.datasetId==`string`||typeof e.dataset_id==`string`)&&(e.columnExpression!==void 0||e.expression!==void 0):!1}function fe(e){return e.length<=de?{display:e,truncated:!1}:{display:`${e.slice(0,de-1)}…`,truncated:!0}}function pe(e,t,n){try{return new Intl.ListFormat(e||void 0,{style:`long`,type:n}).format(t)}catch{return t.join(`, `)}}function O(e,t,n){let r=Te(e,t,n),{display:i,truncated:a}=fe(r);return{label:i,full:r,truncated:a}}function me(e){return e===1?n(`1 item`,{desc:`One selected hierarchy value whose name is still loading`}):n(r`${e} items`,{desc:`Selected hierarchy values whose names are still loading`})}function he(){return n(`Some item names could not be retrieved`,{desc:`Tooltip when a hierarchy filter value is still an id after name lookup`})}function ge(e,t){return!!(t?.type===`hierarchy`&&t.datasetId&&t.fieldId&&!(E(e)&&e.name!==void 0)&&M(e))}function _e(e,t,n){let r=n?.datasetId,i=n?.fieldId;return!r||!i?[]:e.flatMap(e=>{if(!ge(e,n))return[];let a=M(e);return a?t.hierarchyLabels?.get(j(r,i,a))?[]:[a]:[]})}function ve(e,t,n){return n.hierarchyLabelsLoading&&t.length>0?{valueText:me(t.length),valuePending:!0}:n.hierarchyLabels&&!n.hierarchyLabelsLoading&&t.length>0&&!e.valueTooltip?{...e,valueTooltip:he()}:e}function ye(e,t,i){let a=e.map(e=>O(e,t,i)),o=a.map(e=>e.full),s=pe(t.contentLanguage,o,`conjunction`);if(e.length===1){let[e]=a;return{valueText:e.label,valueTooltip:e.truncated?e.full:void 0}}let c=Math.min(ue,a.length),l=a.length-c,u=a.slice(0,c).map(e=>e.label),d=a.some(e=>e.truncated),f;return f=l>0?n(r`${pe(t.contentLanguage,u,`unit`)}, and ${l} more`,{desc:`Filter values after the first few shown in a read-only sentence, e.g. "Dresses, Shoes, Shorts, and 1 more"`}):pe(t.contentLanguage,a.map(e=>e.label),`conjunction`),{valueText:f,valueTooltip:l>0||d?s:void 0}}function k(e,t,n){if(typeof e==`string`||typeof e==`number`||typeof e==`boolean`){let t=String(e);return t.length>0?t:n}if(e&&typeof e==`object`){let n=p(e,t);if(n)return n}return n}function be(e,t){for(let n of t){let t=e[n];if(typeof t==`string`&&t.length>0)return t}}function A(e,t){let n=be(e,[`datasetId`,`dataset_id`]),r=be(e,[`columnId`,`column_id`]),i=be(e,[`formulaId`,`formula_id`]),a=typeof e.formula==`string`?e.formula:void 0,o=t.datasets.find(e=>e.id===n),s=o?k(o.name,t.contentLanguage,``):``;if(i){let e=o?.formulas?.find(e=>e.id===i),r=k(e?.name,t.contentLanguage,i);return{label:r,tooltip:s?`${s} · ${r}`:r,type:e?.type,subtype:e?.subtype,formula:!0,datasetId:n,fieldId:i}}if(a)return{label:a,tooltip:s?`${s} · ${a}`:a,formula:!0,datasetId:n};let c=!r&&typeof e.expression==`string`?e.expression:void 0;if(c)return{label:c,tooltip:s?`${s} · ${c}`:c,formula:!0,datasetId:n};let l=r?o?.columns?.find(e=>e.id===r):void 0,u=r??(typeof e.columnExpression==`string`?e.columnExpression:``),d=k(l?.name,t.contentLanguage,u);return{label:d,tooltip:s?`${s} · ${d}`:d,type:l?.type,subtype:l?.subtype,formula:!1,datasetId:n,fieldId:r}}function xe(e){let t=m.find(t=>t.level===e);return t?t.i18n():``}function Se(e,t){switch(t){case 1:return e===1?n(r`${e} Year`,{desc:`Singular relative filter quantity in years`}):n(r`${e} Years`,{desc:`Plural relative filter quantity in years`});case 2:return e===1?n(r`${e} Quarter`,{desc:`Singular relative filter quantity in quarters`}):n(r`${e} Quarters`,{desc:`Plural relative filter quantity in quarters`});case 3:return e===1?n(r`${e} Month`,{desc:`Singular relative filter quantity in months`}):n(r`${e} Months`,{desc:`Plural relative filter quantity in months`});case 4:return e===1?n(r`${e} Week`,{desc:`Singular relative filter quantity in weeks`}):n(r`${e} Weeks`,{desc:`Plural relative filter quantity in weeks`});case 5:return e===1?n(r`${e} Day`,{desc:`Singular relative filter quantity in days`}):n(r`${e} Days`,{desc:`Plural relative filter quantity in days`});case 6:return e===1?n(r`${e} Hour`,{desc:`Singular relative filter quantity in hours`}):n(r`${e} Hours`,{desc:`Plural relative filter quantity in hours`});case 7:return e===1?n(r`${e} Minute`,{desc:`Singular relative filter quantity in minutes`}):n(r`${e} Minutes`,{desc:`Plural relative filter quantity in minutes`});case 8:return e===1?n(r`${e} Second`,{desc:`Singular relative filter quantity in seconds`}):n(r`${e} Seconds`,{desc:`Plural relative filter quantity in seconds`});case 9:return e===1?n(r`${e} Millisecond`,{desc:`Singular relative filter quantity in milliseconds`}):n(r`${e} Milliseconds`,{desc:`Plural relative filter quantity in milliseconds`});default:return n(r`${e}`,{desc:`Relative filter quantity`})}}function Ce(e,t){let n=new Date(e);if(Number.isNaN(n.getTime()))return e;try{return new Intl.DateTimeFormat(t.contentLanguage||void 0,{dateStyle:`medium`,timeStyle:`short`,...t.timeZone?{timeZone:t.timeZone}:{}}).format(n)}catch{return e}}function we(e){return/^\d{4}-\d{2}-\d{2}(?:T|$)/.test(e)}function j(e,t,n){return`${e}:${t}:${n}`}function M(e){if(typeof e==`string`||typeof e==`number`)return String(e);if(E(e)&&(typeof e.id==`string`||typeof e.id==`number`))return String(e.id)}function Te(e,t,n){if(n?.type===`hierarchy`&&n.datasetId&&n.fieldId&&!(E(e)&&e.name!==void 0)){let r=M(e),i=r===void 0?void 0:t.hierarchyLabels?.get(j(n.datasetId,n.fieldId,r));if(i)return i}if(typeof e==`number`&&Number.isFinite(e))return new Intl.NumberFormat(t.contentLanguage||void 0).format(e);if(typeof e==`string`)return we(e)?Ce(e,t):e;if(typeof e==`boolean`)return String(e);if(E(e)){if(typeof e.parameter==`string`)return e.parameter;if(e.name!==void 0){let n=k(e.name,t.contentLanguage,``);if(n)return n}if(typeof e.id==`string`||typeof e.id==`number`)return String(e.id)}return``}function Ee(e,t){let n=T().filter(t=>t.expression===e),r=E(t)&&typeof t.unit==`number`?t.unit:void 0;return(e===`to_date`&&r!==void 0?n.find(e=>e.unit===r)??n[0]:n[0])?.tiny??e}function De(e,t,i,a){if(ce.has(e)||t==null)return{valueText:``};if(E(t)&&typeof t.parameter==`string`){let e=t.parameter;if(!D(t))return{valueText:e}}if(le.has(e)&&D(t))return{valueText:``,valueField:A(t,i)};if(e===`? between ?`&&Array.isArray(t)&&t.length===2){let e=O(t[0],i,a),o=O(t[1],i,a);return ve({valueText:n(r`${e.label} and ${o.label}`,{desc:`Inclusive range shown between two filter values`}),valueTooltip:e.truncated||o.truncated?n(r`${e.full} and ${o.full}`,{id:`filter-range-tooltip`,desc:`Full inclusive range shown in a tooltip`}):void 0},_e(t,i,a),i)}if(oe.has(e)&&E(t))return{valueText:Se(typeof t.quantity==`number`?t.quantity:1,t.unit)};if(se.has(e)&&E(t))return{valueText:xe(t.unit)};if(Array.isArray(t))return t.length===0?{valueText:``}:ve(ye(t,i,a),_e(t,i,a),i);let o=O(t,i,a);return ve({valueText:o.label,valueTooltip:o.truncated?o.full:void 0},_e([t],i,a),i)}function Oe(e,t){let n=e.parameters?.[0];if(!E(n)||!D(n))return null;let r=A(n,t),i=typeof e.expression==`string`?e.expression:``,a=e.parameters?.[1];return{field:r,expression:i?Ee(i,a):``,...De(i,a,t,r)}}function ke(e){return`condition`in e&&`filters`in e}function Ae(e){if(e==null)return[];if(Array.isArray(e))return e.flatMap(Ae);if(E(e)){if(typeof e.parameter==`string`||e.name!==void 0||D(e))return[];let t=M(e);return t?[t]:[]}let t=M(e);return t?[t]:[]}function je(e,t){let n=new Map,r=e=>{if(ke(e)){e.filters.forEach(r);return}let i=e.parameters?.[0];if(!E(i)||!D(i))return;let a=A(i,t);if(a.type!==`hierarchy`||!a.datasetId||!a.fieldId)return;let o=[...new Set(Ae(e.parameters?.[1]))];if(o.length===0)return;let s=`${a.datasetId}:${a.fieldId}`,c=n.get(s);if(c){c.ids=[...new Set([...c.ids,...o])];return}n.set(s,{datasetId:a.datasetId,...a.formula?{formulaId:a.fieldId}:{columnId:a.fieldId},ids:o})};return r(e),[...n.values()]}async function Me(e,t){let n=new Map;return await Promise.all(e.map(async e=>{let r={dataset_id:e.datasetId,column_id:e.columnId,formula_id:e.formulaId},i=await f.fetchData({dimensions:[r],where:[{expression:`? in ?`,parameters:[r,e.ids]}],limit:{by:e.ids.length,offset:0}}),a=e.columnId??e.formulaId??``;for(let r of i.data??[]){let i=r[0],o=i&&typeof i==`object`&&`id`in i?String(i.id):String(i),s=i&&typeof i==`object`&&`name`in i?p(i.name,t):``;s&&n.set(j(e.datasetId,a,o),s)}})),n}var Ne=20,N=class extends Error{constructor(e){super(e),this.name=`FilterUnrepresentableError`}},Pe=new Set([`and`,`or`]),Fe=[`datasetId`,`dataset_id`,`columnId`,`column_id`,`formulaId`,`formula_id`,`formula`,`columnExpression`,`value`,`ignoredItemIds`];function P(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function F(e){return!P(e)||e.condition!==void 0&&(typeof e.condition!=`string`||!Pe.has(e.condition.toLowerCase()))?!1:`filters`in e||`subGroups`in e}function Ie(e){return P(e)&&`expression`in e&&!(`condition`in e)}function Le(e){return Fe.some(t=>t in e)}function Re(e,t=!1){let n=[e.columnId!==void 0||e.column_id!==void 0,e.formulaId!==void 0||e.formula_id!==void 0,e.formula!==void 0].filter(Boolean).length;return n===1?!0:n>1?!1:e.columnExpression!==void 0||t&&e.expression!==void 0}function ze(e){return!Ie(e)||typeof e.expression!=`string`||e.expression.length===0||`parameters`in e||typeof e.datasetId!=`string`&&typeof e.dataset_id!=`string`?!1:Re(e)}function Be(e){return!Ie(e)||!Array.isArray(e.parameters)?!1:!Le(e)}function Ve(e){if(!(`parameters`in e))return;let t=Fe.find(t=>t in e);if(t!==void 0)throw new N(`Filter leaf mixes "parameters" with the clean inline key "${t}".`)}function He(e){throw typeof e.expression!=`string`||e.expression.length===0?new N(`Clean filter leaf is missing a non-empty "expression".`):typeof e.datasetId!=`string`&&typeof e.dataset_id!=`string`?new N(`Clean filter leaf "${e.expression}" is missing a "datasetId".`):new N(`Clean filter leaf "${e.expression}" must name exactly one of "columnId", "formulaId", "formula", or "columnExpression".`)}function Ue(e){return e===`where`||e===`having`}function I(e){if(e>20)throw new N(`Filter nesting exceeds the maximum depth of 20.`)}function We(e){if(e==null)return`empty`;if(!Array.isArray(e))return`unknown`;if(e.length===0)return`empty`;let t=!1,n=!1,r=!1,i=(e,a)=>{if(a>20){r=!0;return}if(F(e)){Ue(e.clause)&&(n=!0);let t=[...Array.isArray(e.filters)?e.filters:[],...Array.isArray(e.subGroups)?e.subGroups:[]];for(let e of t)i(e,a+1);return}if(Ie(e)){`parameters`in e&&Le(e)?r=!0:ze(e)?n=!0:Be(e)?t=!0:r=!0;return}r=!0};for(let t of e)i(t,1);return r?`unknown`:n&&t?`mixed`:n?`clean`:t?`canonical`:`empty`}var Ge=new Set([`? is null`,`? is not null`]),Ke=new Set([`? = ?`,`? != ?`,`? < ?`,`? <= ?`,`? > ?`,`? >= ?`]),qe=new Set([`? in ?`,`? not in ?`,`? between ?`]),Je={"array[numeric]":`numeric[]`,"array[hierarchy]":`hierarchy[]`,"array[datetime]":`datetime[]`},Ye=new Set([`level`,`lowestLevel`,`unnest`,`discretization`,`aggregation`,`index`,`include_nonoccurring`,`simplification`]);function L(e,t){return e!==`lowestLevel`&&!(t===null&&Ye.has(e))}function R(e){return structuredClone(e)}function Xe(e){let t=e.datasetId??e.dataset_id;if(typeof t!=`string`||t.length===0)throw new N(`Filter reference is missing a "datasetId".`);return t}function Ze(e){return P(e)?typeof e.columnId==`string`||typeof e.column_id==`string`||typeof e.formulaId==`string`||typeof e.formula_id==`string`||typeof e.formula==`string`||(typeof e.datasetId==`string`||typeof e.dataset_id==`string`)&&(e.columnExpression!==void 0||e.expression!==void 0):!1}function Qe(e){let t={type:e.type};return e.bins!==void 0&&(t.bins=e.bins),Array.isArray(e.over)&&(t.over=e.over.map(e=>at(e))),t}function $e(e){let t={type:e.type},n=e.datasetId??e.dataset_id,r=e.columnId??e.column_id;return n!==void 0&&(t.datasetId=n),r!==void 0&&(t.columnId=r),e.level!==void 0&&L(`level`,e.level)&&(t.level=e.level),P(e.discretization)&&(t.discretization=Qe(e.discretization)),e.unnest!==void 0&&L(`unnest`,e.unnest)&&(t.unnest=e.unnest),t}function et(e){let t={type:e.type};return e.bins!==void 0&&(t.bins=e.bins),Array.isArray(e.over)&&(t.over=e.over.map(e=>P(e)?it(e):e)),t}function tt(e){let t={type:e.type},n=e.datasetId??e.dataset_id,r=e.columnId??e.column_id;return n!==void 0&&(t.datasetId=n),r!==void 0&&(t.columnId=r),e.level!==void 0&&(t.level=e.level),P(e.discretization)&&(t.discretization=et(e.discretization)),e.unnest!==void 0&&(t.unnest=e.unnest),t}function nt(e,t){e.level!==void 0&&(t.level=R(e.level)),P(e.discretization)&&(t.discretization=et(e.discretization)),P(e.aggregation)&&(t.aggregation=tt(e.aggregation)),e.unnest!==void 0&&(t.unnest=R(e.unnest))}function rt(e,t){let n=e.columnId??e.column_id;if(n!==void 0)return{kind:`columnId`,value:n};let r=e.formulaId??e.formula_id;if(r!==void 0)return{kind:`formulaId`,value:r};if(e.formula!==void 0)return{kind:`formula`,value:e.formula};let i=e.columnExpression??(t?e.expression:void 0);if(i!==void 0)return{kind:`expression`,value:i}}function it(e,t=!0){let n={datasetId:Xe(e)},r=rt(e,t);return r!==void 0&&(r.kind===`expression`?n.expression=r.value:n[r.kind]=r.value),nt(e,n),n}function at(e){if(!P(e))throw new N(`Cannot emit a clean filter reference.`);let t={datasetId:Xe(e)};e.level!==void 0&&L(`level`,e.level)&&(t.level=e.level),P(e.discretization)&&(t.discretization=Qe(e.discretization)),P(e.aggregation)&&(t.aggregation=$e(e.aggregation)),e.unnest!==void 0&&L(`unnest`,e.unnest)&&(t.unnest=e.unnest);let n=rt(e,!0);if(n===void 0)throw new N(`Cannot emit a clean filter reference: no column, formula, or expression.`);return n.kind===`expression`?t.columnExpression=n.value:t[n.kind]=n.value,t}function ot(e){if(!P(e)||typeof e.parameter!=`string`||typeof e.type!=`string`)return e;let t=Je[e.type];return t===void 0?e:{...e,type:t}}function st(e,t){return P(t)&&typeof t.parameter==`string`?!0:Array.isArray(t)?e!==`? between ?`||t.length===2:!1}function ct(e,t){let n=e.expression,r=[it(e,!1)];if(!Ge.has(n)&&e.value!==void 0){let t=Ke.has(n)&&Ze(e.value);r.push(t?it(e.value):R(e.value))}let i={};typeof e.id==`string`&&(i.id=e.id),`ignoredItemIds`in e&&(i.ignore=R(e.ignoredItemIds)),t!==void 0&&(i.type=t);let a={expression:n,parameters:r};return Object.keys(i).length>0&&(a.properties=i),a}function lt(e){let{expression:t}=e;if(typeof t!=`string`||t.length===0)return null;let n=Array.isArray(e.parameters)?e.parameters:[];if(!P(n[0]))throw new N(`Cannot emit a clean filter reference for "${t}".`);let r={...at(n[0]),expression:t};if(!Ge.has(t)){let e=n[1];if(e===void 0)throw new N(`Filter "${t}" is missing its value operand.`);if(r.value=Ze(e)&&Ke.has(t)?at(e):ot(R(e)),qe.has(t)&&!st(t,r.value))throw new N(`Cannot emit an invalid clean filter value for "${t}".`)}let{properties:i}=e;return i?.id!==void 0&&(r.id=i.id),i!==void 0&&`ignore`in i&&(r.ignoredItemIds=R(i.ignore)),r}function ut(e){return F(e)}function dt(e){return Array.isArray(e.filters)?e.filters:[]}function ft(e,t){return e.properties?.type===`having`||e.properties?.type===`where`?e.properties.type:t??`where`}function z(e,t,n=1,r=new Set){I(n);let i=e.clause??t;for(let t of dt(e))ut(t)?z(t,i,n+1,r):typeof t.expression==`string`&&t.expression.length>0&&r.add(ft(t,i));return r}function pt(e,t,n=1){I(n);let r=e.clause??t;if(e.condition===`or`&&z(e,r,n).size>1)throw new N(`An "or" group mixes "where" and "having" filters, which clean output cannot represent.`);for(let t of dt(e))ut(t)&&pt(t,r,n+1)}function mt(e,t,n,r=1){I(r);let i=e.clause??n,a=[];for(let n of dt(e)){if(ut(n)){let e=mt(n,t,i,r+1);e.filters.length>0&&a.push(e);continue}if(ft(n,i)!==t)continue;let e=lt(n);e&&a.push(e)}let o={condition:e.condition===`or`?`or`:`and`,filters:a};return e.id!==void 0&&z(e,i,r).size<=1&&(o.id=e.id),o}function ht(e){let t=e.clause;pt(e,t);let n=z(e,t);return n.size===0&&n.add(t??`where`),[`where`,`having`].filter(e=>n.has(e)).map(n=>({...mt(e,n,t),clause:n})).filter(e=>e.filters.length>0)}var gt=[`origin`,`datasetId`,`vizId`,`itemId`,`isDrilldown`,`type`];function B(e){return typeof e==`string`&&e.toLowerCase()===`or`?`or`:`and`}function _t(e){return F(e)}function vt(e){if(!Array.isArray(e)||e.length===0)return[];let t=P(e[0])?e[0]:void 0,n=e.length>1?e[1]:void 0;return e.length>1?[t,n]:[t]}function yt(e){if(typeof e.expression!=`string`||e.expression.length===0)return null;let t={expression:e.expression,parameters:vt(e.parameters)};return e.properties!==void 0&&Object.keys(e.properties).length>0&&(t.properties=structuredClone(e.properties)),t}function bt(e,t){let n=e,r=t;for(let e of gt)n[e]!==void 0&&(r[e]=n[e])}function xt(e){if(!e||!e.filters)return{condition:`and`,filters:[],subGroups:[]};let t=[],n=[];for(let r of e.filters)if(_t(r))n.push(xt(r));else{let e=yt(r);e&&t.push(e)}let r={condition:B(e.condition),filters:t,subGroups:n};return e.id!==void 0&&(r.id=e.id),bt(e,r),r}function St(e,t){return e?t?.format===`clean`?ht(e):[xt(e)]:[]}function Ct(e,t){let n={expression:typeof e.expression==`string`?e.expression:void 0,parameters:Array.isArray(e.parameters)?[...e.parameters]:[]},r=P(e.properties)?structuredClone(e.properties):{};return t!==void 0&&r.type===void 0&&(r.type=t),Object.keys(r).length>0&&(n.properties=r),n}function wt(e,t,n){if(F(e))return Tt(e,t,n);if(!P(e))return;let r=e.expression;if(Ve(e),ze(e))return ct(e,t);if(Le(e)&&He(e),Be(e))return Ct(e,t);throw new N(`Filter leaf "${String(r)}" matches neither a complete clean nor a complete canonical encoding.`)}function Tt(e,t,n){I(n);let r=Ue(e.clause)?e.clause:void 0,i=r??t,a=[];for(let t of Array.isArray(e.filters)?e.filters:[]){let e=wt(t,i,n+1);e!==void 0&&a.push(e)}for(let t of Array.isArray(e.subGroups)?e.subGroups:[])F(t)&&a.push(Tt(t,i,n+1));let o={condition:B(e.condition),filters:a};return typeof e.id==`string`&&(o.id=e.id),r!==void 0&&(o.clause=r),bt(e,o),o}function Et(e){return!e||e.length===0?[]:e.filter(e=>F(e)).map(e=>Tt(e,void 0,1))}var Dt=`:host{font-family:var(--luzmo-font-family)}luzmo-select{width:100%}:host{--var:blue}`,V=class extends t(S(x,{validSizes:Object.values(b)})){constructor(...e){super(...e),this.hasLabel=!1,this.allowEmpty=!1,this.placeholder=``,this.disabled=!1,this.readonly=!1,this.quiet=!1,this.invalid=!1,this.isFormula=!1,this._expressionConfigurations=T()}static get styles(){return[y(Dt)]}_sendChangeEvent(){if(this.disabled||this.readonly)return;let e={expression:this.filter?.expression};this.filter?.parameters?.[1]?.unit&&(e.unit=this.filter?.parameters?.[1]?.unit),this.dispatchEvent(new CustomEvent(`luzmo-expression-selected`,{bubbles:!0,composed:!0,cancelable:!0,detail:e}))}setExpression(e){this._richExpression=e?.detail?.value?.[0];let t=this._expressionConfigurations.find(e=>e.id===this._richExpression),n=structuredClone(this.filter);n.expression=t?.expression,t?.unit&&(this._unit=t.unit,n?.parameters[0]&&(n.parameters[1]={unit:this._unit})),this.filter=n,this._sendChangeEvent()}willUpdate(e){super.willUpdate(e);let t=e.has(`filter`),n=e.has(`type`),r=e.has(`subtype`),i=e.has(`isFormula`),a=ae(this.type,this.subtype,this.isFormula),o=[`YTD`,`QTD`,`MTD`,`WTD`];if(this.filter?.expression===`to_date`){let e=this.filter?.parameters[1]?.unit??1;this._unit=e,this._richExpression=o[e-1]??`YTD`}else this._richExpression=this.filter?.expression;(n||r||i||t)&&this.filter&&!this.disabled&&!this.readonly&&!a?.find(e=>e.expression===this.filter?.expression)?(this.invalid=!0,console.warn(`Warning: ${this.filter?.expression} is not valid given the type: ${this.type} and subtype: ${this.subtype}`)):this.invalid=!1,!this.filter?.expression&&!this.allowEmpty&&(this._richExpression=a?.[0]?.id,this.filter={...this.filter,expression:this._richExpression},this._sendChangeEvent())}render(){let e=ae(this.type,this.subtype,this.isFormula)?.map(e=>({value:e.id,label:e.description,shortLabel:e.tiny})),t=this.disabled||!this.filter?.expression&&!this.allowEmpty,r=h`<luzmo-field-label
3
+ for="expression"
4
+ size=${this.size}
5
+ >${this.label??n(`Select an expression`,{desc:`Label for expression picker`})}</luzmo-field-label
6
+ >`,i=this.hasLabel?this.placeholder??n(`Select...`):this.placeholder||this.label||n(`Filter expression`,{desc:`Accessible label for expression picker`});return h`${this.hasLabel?r:``}
7
+ <luzmo-select
8
+ label=${i}
9
+ id="expression"
10
+ size=${this.size}
11
+ variant="highlight"
12
+ .quiet=${this.quiet}
13
+ selects="single"
14
+ .language=${this.language}
15
+ ?disabled=${t}
16
+ .readonly=${this.readonly}
17
+ ?invalid=${this.invalid}
18
+ .options=${e}
19
+ .value=${[this._richExpression]}
20
+ @change=${this.setExpression}
21
+ >
22
+ </luzmo-select>`}};e([_({type:String,reflect:!0})],V.prototype,`filter`,void 0),e([_({type:Boolean,attribute:`has-label`,reflect:!0})],V.prototype,`hasLabel`,void 0),e([_({type:String,reflect:!0})],V.prototype,`label`,void 0),e([_({type:Boolean,attribute:`allow-empty`,reflect:!0})],V.prototype,`allowEmpty`,void 0),e([_({type:String,attribute:`placeholder`,reflect:!0})],V.prototype,`placeholder`,void 0),e([_({type:Boolean,attribute:`disabled`,reflect:!0})],V.prototype,`disabled`,void 0),e([_({type:Boolean,reflect:!0})],V.prototype,`readonly`,void 0),e([_({type:Boolean,reflect:!0})],V.prototype,`quiet`,void 0),e([_({type:String,attribute:`type`,reflect:!0})],V.prototype,`type`,void 0),e([_({type:String,attribute:`subtype`,reflect:!0})],V.prototype,`subtype`,void 0),e([_({type:Boolean,attribute:`invalid`,reflect:!0})],V.prototype,`invalid`,void 0),e([_({type:Boolean,attribute:`is-formula`,reflect:!0})],V.prototype,`isFormula`,void 0),e([v()],V.prototype,`_richExpression`,void 0),e([v()],V.prototype,`_unit`,void 0),V=e([i()],V),customElements.get(`luzmo-filter-expression-picker`)||customElements.define(`luzmo-filter-expression-picker`,V);var Ot=new Set([`? is null`,`? is not null`,`? between ?`,`YTD`,`QTD`,`MTD`,`WTD`,`to_date`,`last_available`,`last_completed`,`last_now`,`more_than_ago`,`or_more_ago`,`next_now`,`next_full`]),kt=new Set([`? length = ?`,`? length >= ?`,`? length <= ?`]),At=new Set([`? in ?`,`? not in ?`,`? includes all ?`,`? includes any ?`,`? includes only ?`]);function H(e,t){return!e||e===`spatial`||!t||Ot.has(t)?[]:kt.has(t)?[`numeric`]:e===`numeric`||e===`array[numeric]`?At.has(t)?[`array[numeric]`]:[`numeric`]:e===`datetime`||e===`array[datetime]`?At.has(t)?[`array[datetime]`,`datetime`]:[`datetime`,`array[datetime]`]:e===`hierarchy`||e===`array[hierarchy]`?At.has(t)?[`array[hierarchy]`]:[`hierarchy`]:[]}var jt={numeric:()=>n(`Numeric`,{id:`filter-parameter-type-numeric`,desc:`Numeric filter parameter type`}),datetime:()=>n(`Datetime`,{id:`filter-parameter-type-datetime`,desc:`Datetime filter parameter type`}),hierarchy:()=>n(`Hierarchy`,{id:`filter-parameter-type-hierarchy`,desc:`Hierarchy filter parameter type`}),"array[numeric]":()=>n(`Numeric[]`,{id:`filter-parameter-type-numeric-list`,desc:`List of numeric values filter parameter type`}),"array[datetime]":()=>n(`Datetime[]`,{id:`filter-parameter-type-datetime-list`,desc:`List of datetime values filter parameter type`}),"array[hierarchy]":()=>n(`Hierarchy[]`,{id:`filter-parameter-type-hierarchy-list`,desc:`List of hierarchy values filter parameter type`})};function Mt(e){return jt[e]?.()??e}function U(e){if(!e||typeof e!=`object`||Array.isArray(e))return!1;let t=e;return typeof t.parameter==`string`&&typeof t.type==`string`&&`value`in t}function W(e){return`metadata.${e.trim().replace(/^metadata\./i,``)}`}function Nt(e,t,n){let r;if(t.startsWith(`array[`))r=Array.isArray(n)?structuredClone(n):[];else if(t===`numeric`)r=typeof n==`number`&&Number.isFinite(n)?n:0;else if(t===`datetime`){let e=n instanceof Date?n:new Date(typeof n==`string`?n:Date.now());r=Number.isNaN(e.getTime())?new Date().toISOString():e.toISOString()}else r=typeof n==`string`?n:``;return{parameter:W(e),type:t,value:r}}function G(e,t){if(!t||t===`? is null`||t===`? is not null`)return;let[n]=H(e,t);if(n?.startsWith(`array[`))return[];if(n===`numeric`)return 0;if(n===`datetime`)return new Date().toISOString();if(n===`hierarchy`)return``}var Pt=`:host{min-width:0;max-width:100%;color:var(--luzmo-font-color);font-family:var(--luzmo-font-family);font-size:var(--luzmo-font-size);align-items:center;display:inline-flex;position:relative}.parameter-control{align-items:center;gap:var(--filter-parameter-picker-gap);min-width:0;max-width:100%;display:flex}.create-row{align-items:center;gap:var(--filter-parameter-picker-panel-gap);display:flex}.parameter-trigger,.create-parameter{flex:none}.parameter-trigger{font-weight:var(--luzmo-font-weight-bold)}.selected-parameter-tags{--luzmo-tag-group-item-margin-block:0;min-width:0;max-width:100%}.selected-parameter{--luzmo-tag-max-inline-size:min(180px, 100%);min-width:0;max-width:100%}.parameter-panel{min-inline-size:var(--filter-parameter-picker-panel-min-width);padding:var(--filter-parameter-picker-panel-padding);display:block}.parameter-name-input{--luzmo-text-field-width:100%;flex:1;min-inline-size:0}.panel-content{gap:var(--filter-parameter-picker-panel-gap);flex-direction:column;display:flex}.validation-message{color:var(--filter-parameter-picker-error-color);font-size:var(--luzmo-font-size-s)}.parameter-options{max-block-size:var(--filter-parameter-picker-options-max-height);overflow-y:auto}.parameter-type-footer{gap:var(--filter-parameter-picker-panel-gap);flex-direction:column;display:flex}.parameter-type{justify-content:flex-end;align-items:center;gap:var(--luzmo-spacing-1);font-size:var(--filter-parameter-picker-type-font-size);font-weight:var(--luzmo-font-weight);display:flex}.parameter-type-icon{justify-content:center;align-items:center;min-block-size:24px;min-inline-size:24px;display:inline-flex}:host{--filter-parameter-picker-gap:var(--luzmo-spacing-2);--filter-parameter-picker-control-size:var(--luzmo-component-height);--filter-parameter-picker-panel-min-width:220px;--filter-parameter-picker-options-max-height:240px;--filter-parameter-picker-panel-padding:var(--luzmo-spacing-3);--filter-parameter-picker-panel-gap:var(--luzmo-spacing-3);--filter-parameter-picker-type-font-size:var(--luzmo-font-size-s);--filter-parameter-picker-panel-background:var(--luzmo-background-color);--filter-parameter-picker-panel-border:var(--luzmo-border-color);--filter-parameter-picker-error-color:var(--luzmo-negative-color)}:host([size=xxs]),:host([size=xs]){--filter-parameter-picker-panel-padding:var(--luzmo-spacing-2);--filter-parameter-picker-panel-gap:var(--luzmo-spacing-2);--filter-parameter-picker-type-font-size:var(--luzmo-font-size-xs)}:host([size=s]){--filter-parameter-picker-panel-padding:var(--luzmo-spacing-3);--filter-parameter-picker-panel-gap:var(--luzmo-spacing-3);--filter-parameter-picker-type-font-size:var(--luzmo-font-size-xs)}:host([size=l]){--filter-parameter-picker-panel-padding:var(--luzmo-spacing-4);--filter-parameter-picker-panel-gap:var(--luzmo-spacing-4);--filter-parameter-picker-type-font-size:var(--luzmo-font-size-m)}:host([size=xl]){--filter-parameter-picker-panel-padding:var(--luzmo-spacing-4);--filter-parameter-picker-panel-gap:var(--luzmo-spacing-4);--filter-parameter-picker-type-font-size:var(--luzmo-font-size-l)}:host([size=xxl]){--filter-parameter-picker-panel-padding:var(--luzmo-spacing-5);--filter-parameter-picker-panel-gap:var(--luzmo-spacing-5);--filter-parameter-picker-type-font-size:var(--luzmo-font-size-xl)}`,K=class extends t(S(x,{validSizes:Object.values(b)})){constructor(...e){super(...e),this.parameters=[],this.allowedTypes=[],this.disabled=!1,this.readonly=!1,this.quiet=!1,this._open=!1,this._newParameterName=``,this._handleDocumentClick=e=>{this._open&&!e.composedPath().includes(this)&&this._close()}}static get styles(){return[...super.styles??[],y(Pt)]}connectedCallback(){super.connectedCallback(),document.addEventListener(`click`,this._handleDocumentClick)}disconnectedCallback(){document.removeEventListener(`click`,this._handleDocumentClick),super.disconnectedCallback()}get _selectableParameters(){return this.parameters.filter(e=>this.allowedTypes.includes(e.type))}get _parameterOptions(){return this._selectableParameters.map(e=>({label:e.parameter.replace(/^metadata\./i,``),value:e.parameter}))}get _parameterType(){return this.selectedParameter?.type??this.allowedTypes[0]}get _duplicateName(){if(!this._hasParameterName)return!1;let e=W(this._newParameterName).toLowerCase();return this.parameters.some(t=>W(t.parameter).toLowerCase()===e)}get _triggerIconSize(){return{xxs:`xs`,xs:`xs`,s:`xs`,m:`xs`,l:`s`,xl:`m`,xxl:`l`}[this.size]??`xs`}get _hasParameterName(){return W(this._newParameterName).replace(/^metadata\./i,``).trim().length>0}_dispatchSelected(e){this.dispatchEvent(new CustomEvent(`luzmo-parameter-selected`,{bubbles:!0,composed:!0,detail:{parameter:e}}))}_dispatchCreated(e){this.dispatchEvent(new CustomEvent(`luzmo-parameter-created`,{bubbles:!0,composed:!0,detail:{parameter:e}}))}_dispatchRemoved(e){this.dispatchEvent(new CustomEvent(`luzmo-parameter-removed`,{bubbles:!0,composed:!0,detail:{parameter:e}}))}async _handleTriggerClick(){this.disabled||this.readonly||this.allowedTypes.length===0||!this._overlay||(this._open=!0,this._newParameterName=``,this._overlay.open=!0,await this.updateComplete,this.shadowRoot?.querySelector(`.parameter-name-input`)?.focusElement.focus())}_handleTriggerKeydown(e){e.key!==`Enter`&&e.key!==` `&&e.key!==`Space`||(e.preventDefault(),this._handleTriggerClick())}_handleOpened(){this.shadowRoot?.querySelector(`.parameter-name-input`)?.focusElement.focus()}_handleClosed(){this._open=!1,this._newParameterName=``}_close(){this._overlay&&(this._overlay.open=!1),this._handleClosed(),this._triggerElement?.focusElement.focus()}_handlePanelKeydown(e){e.key===`Escape`&&(e.preventDefault(),this._close())}_handleNameInput(e){this._newParameterName=e.currentTarget.value}_selectParameter(e){this.disabled||this.readonly||(this.selectedParameter=e,this._dispatchSelected(e),this._close())}_handleOptionsChange(e){e.stopPropagation();let[t]=e.detail.value,n=this._selectableParameters.find(e=>e.parameter===t);n&&this._selectParameter(n)}async _handleCreateParameter(){if(this.disabled||this.readonly)return;let e=this.allowedTypes[0];if(!e||!this._hasParameterName||this._duplicateName)return;let t=Nt(this._newParameterName,e,this.currentValue);this.parameters=[...this.parameters,t],this._newParameterName=``,this._dispatchCreated(t),await this.updateComplete,this.shadowRoot?.querySelector(`.parameter-name-input`)?.focusElement.focus()}_handleNameKeydown(e){if(e.key===`Enter`){e.preventDefault(),this._handleCreateParameter();return}e.key===`ArrowDown`&&this._optionsElement&&(e.preventDefault(),this._optionsElement.focus())}_handleRemoveParameter(){this.disabled||this.readonly||!this.selectedParameter||this._dispatchRemoved(this.selectedParameter)}_renderParameterType(){let e=this._parameterType;if(!e)return g;let t=Mt(e);return h`
23
+ <div class="parameter-type-footer">
24
+ <luzmo-divider class="parameter-type-divider" size="s"></luzmo-divider>
25
+ <div class="parameter-type">
26
+ <span>${n(`Parameter type:`,{desc:`Label preceding the type of the filter parameter`})}</span>
27
+ <span class="parameter-type-icon" tabindex="0" role="img" aria-label=${t}>
28
+ <luzmo-icon
29
+ aria-hidden="true"
30
+ .icon=${c({type:e},`s`)}
31
+ size="s"
32
+ ></luzmo-icon>
33
+ <luzmo-tooltip self-managed placement="top" .size=${this.size}>${t}</luzmo-tooltip>
34
+ </span>
35
+ </div>
36
+ </div>
37
+ `}render(){let e=this.selectedParameter?.parameter.replace(/^metadata\./i,``),t=!this._hasParameterName||this._duplicateName;return h`
38
+ <div class="parameter-control">
39
+ ${this.selectedParameter?h`
40
+ <luzmo-tags class="selected-parameter-tags">
41
+ <luzmo-tag
42
+ class="selected-parameter"
43
+ size=${this.size}
44
+ variant="accent"
45
+ treatment="fill"
46
+ ?deletable=${!this.disabled&&!this.readonly}
47
+ ?disabled=${this.disabled}
48
+ aria-label=${n(`Remove parameter`,{desc:`Detach a parameter from a filter`})}
49
+ @delete=${this._handleRemoveParameter}
50
+ >
51
+ ${e}
52
+ </luzmo-tag>
53
+ </luzmo-tags>
54
+ `:g}
55
+ <luzmo-action-button
56
+ id="parameter-trigger"
57
+ class="parameter-trigger"
58
+ size=${this.size}
59
+ ?quiet=${this.quiet||!this.selectedParameter}
60
+ .variant=${this.selectedParameter?`primary`:`neutral`}
61
+ aria-label=${n(`Use parameter`,{desc:`Open the filter parameter picker`})}
62
+ .label=${n(`Use parameter`,{desc:`Open the filter parameter picker`})}
63
+ aria-haspopup="dialog"
64
+ aria-disabled=${this.readonly?`true`:`false`}
65
+ aria-expanded=${this._open?`true`:`false`}
66
+ .disabled=${this.disabled||this.allowedTypes.length===0}
67
+ @click=${this._handleTriggerClick}
68
+ @keydown=${this._handleTriggerKeydown}
69
+ >
70
+ <luzmo-icon slot="icon" .icon=${s} .size=${this._triggerIconSize}></luzmo-icon>
71
+ </luzmo-action-button>
72
+ <luzmo-overlay
73
+ type="manual"
74
+ placement="bottom-end"
75
+ trigger="parameter-trigger"
76
+ receives-focus="false"
77
+ @luzmo-opened=${this._handleOpened}
78
+ @luzmo-closed=${this._handleClosed}
79
+ >
80
+ <luzmo-popover
81
+ class="parameter-panel"
82
+ size=${this.size}
83
+ role="dialog"
84
+ aria-label=${n(`Filter parameters`,{desc:`Filter parameter picker dialog label`})}
85
+ @keydown=${this._handlePanelKeydown}
86
+ >
87
+ <div class="panel-content">
88
+ <div class="create-row">
89
+ <luzmo-text-field
90
+ id="parameter-name"
91
+ class="parameter-name-input"
92
+ size=${this.size}
93
+ .label=${n(`Parameter name`,{desc:`Name for a new filter parameter`})}
94
+ .placeholder=${n(`New parameter…`,{desc:`Placeholder of the new filter parameter name field`})}
95
+ .invalid=${this._duplicateName}
96
+ .value=${this._newParameterName}
97
+ @input=${this._handleNameInput}
98
+ @keydown=${this._handleNameKeydown}
99
+ ></luzmo-text-field>
100
+ <luzmo-button
101
+ class="create-parameter"
102
+ size=${this.size}
103
+ variant="primary"
104
+ ?disabled=${t}
105
+ @click=${this._handleCreateParameter}
106
+ >
107
+ ${n(`Add`,{desc:`Create a new filter parameter`})}
108
+ </luzmo-button>
109
+ </div>
110
+ ${this._duplicateName?h`<div class="validation-message" role="alert">
111
+ ${n(`A parameter with this name already exists.`,{desc:`Duplicate filter parameter name error`})}
112
+ </div>`:g}
113
+ ${this._parameterOptions.length>0?h`<luzmo-options
114
+ class="parameter-options"
115
+ size=${this.size}
116
+ .label=${n(`Available parameters`,{desc:`Accessible label of the filter parameter list`})}
117
+ .options=${this._parameterOptions}
118
+ .value=${this.selectedParameter?[this.selectedParameter.parameter]:[]}
119
+ @change=${this._handleOptionsChange}
120
+ ></luzmo-options>`:g}
121
+ ${this._renderParameterType()}
122
+ </div>
123
+ </luzmo-popover>
124
+ </luzmo-overlay>
125
+ </div>
126
+ `}};e([_({attribute:!1})],K.prototype,`parameters`,void 0),e([_({attribute:!1})],K.prototype,`allowedTypes`,void 0),e([_({attribute:!1})],K.prototype,`selectedParameter`,void 0),e([_({attribute:!1})],K.prototype,`currentValue`,void 0),e([_({type:Boolean,reflect:!0})],K.prototype,`disabled`,void 0),e([_({type:Boolean,reflect:!0})],K.prototype,`readonly`,void 0),e([_({type:Boolean,reflect:!0})],K.prototype,`quiet`,void 0),e([v()],K.prototype,`_open`,void 0),e([v()],K.prototype,`_newParameterName`,void 0),e([ne(`luzmo-overlay`)],K.prototype,`_overlay`,void 0),e([ne(`.parameter-trigger`)],K.prototype,`_triggerElement`,void 0),e([ne(`.parameter-options`)],K.prototype,`_optionsElement`,void 0),K=e([i()],K),typeof customElements<`u`&&!customElements.get(`luzmo-filter-parameter-picker`)&&customElements.define(`luzmo-filter-parameter-picker`,K);var Ft=`:host{flex-direction:row;min-width:0;max-width:100%;display:flex}luzmo-text-field{min-width:var(--luzmo-filter-value-picker-control-min-width,var(--filter-value-picker-control-min-width));max-width:100%}luzmo-filter-value-picker-datetime,luzmo-filter-value-picker-hierarchy,luzmo-filter-value-picker-numeric{flex:1;min-width:0;max-width:100%}:host{--filter-value-picker-control-min-width:0}`,It=`:host{gap:var(--luzmo-filter-value-picker-datetime-gap,var(--filter-value-picker-datetime-gap));flex-flow:row;width:100%;min-width:0;max-width:100%;display:flex}luzmo-date-time-picker{--luzmo-date-time-picker-min-width:var(--luzmo-filter-value-picker-datetime-control-min-width,var(--filter-value-picker-datetime-control-min-width));flex:auto;min-width:0;max-width:100%}luzmo-number-field{flex:0 1 var(--luzmo-filter-value-picker-datetime-quantity-width,var(--filter-value-picker-datetime-quantity-width));min-width:0;max-width:100%}luzmo-picker{flex:1 1 var(--luzmo-filter-value-picker-datetime-control-min-width,var(--filter-value-picker-datetime-control-min-width));min-width:0;max-width:100%}:host{--filter-value-picker-datetime-gap:var(--luzmo-spacing-3);--filter-value-picker-datetime-control-min-width:5rem;--filter-value-picker-datetime-quantity-width:4.5rem}: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)}`,q=class extends t(S(x,{validSizes:Object.values(b)})){constructor(...e){super(...e),this.contentLanguage=`en`,this.quiet=!1,this.readonly=!1,this.disabled=!1}static get styles(){return[y(It)]}willUpdate(e){super.willUpdate(e),e.get(`filter`)&&([`last_now`,`last_available`,`next_now`,`more_than_ago`,`or_more_ago`].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(`luzmo-filter-value-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{value:this._value}}))}setDate(e){this.readonly||this.disabled||(this._value=e.detail.value,this._value!==this.filter?.parameters?.[1]&&this._sendChangeEvent())}setUnit(e){if(this.readonly||this.disabled)return;let t=m.find(t=>t.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){if(this.readonly||this.disabled)return;let 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&&(e=this.filter?.parameters?.[0]?.lowestLevel===5?`day`:this.filter?.parameters?.[0]?.lowestLevel===6?`hour`:this.filter?.parameters?.[0]?.lowestLevel===7?`minute`:`second`),h`<luzmo-date-time-picker
127
+ aria-label=${n(`Filter date`,{desc:`Aria label for filter date picker`})}
128
+ .size=${this.size}
129
+ .quiet=${this.quiet}
130
+ .readonly=${this.readonly}
131
+ .disabled=${this.disabled}
132
+ .precision=${e}
133
+ .timeZone=${this.timeZone}
134
+ @change=${this.setDate}
135
+ .value=${this.filter?.parameters?.[1]}
136
+ ></luzmo-date-time-picker>`}renderQuantityField(){return h`<luzmo-number-field
137
+ label=${n(`Quantity`,{desc:`Label for quantity number field`})}
138
+ .size=${this.size}
139
+ .quiet=${this.quiet}
140
+ .readonly=${this.readonly}
141
+ .disabled=${this.disabled}
142
+ .value=${this.filter?.parameters?.[1]?.quantity}
143
+ @input=${this.setQuantity}
144
+ @change=${this.setQuantity}
145
+ ></luzmo-number-field>`}renderUnitPicker(){let e=m.map(e=>h`<luzmo-menu-item .value=${e.key}>
146
+ ${e.i18n()}
147
+ </luzmo-menu-item>`),t=m.find(e=>e.level===this.filter?.parameters?.[1]?.unit)?.key??m?.[0]?.key;return h`<luzmo-picker
148
+ .label=${n(`Time unit`,{desc:`Aria label for time unit picker`})}
149
+ .size=${this.size}
150
+ .quiet=${this.quiet}
151
+ .readonly=${this.readonly}
152
+ .disabled=${this.disabled}
153
+ .value=${t}
154
+ @change=${this.setUnit}
155
+ variant="highlight"
156
+ >${e}</luzmo-picker
157
+ >`}render(){let e=this.filter?.expression;return[`last_now`,`last_available`,`next_now`,`more_than_ago`,`or_more_ago`].includes(e)?h`${this.renderQuantityField()}${this.renderUnitPicker()}`:[`last_completed`,`next_full`].includes(e)?this.renderUnitPicker():this.renderDatePicker()}};e([_({type:String,attribute:`content-language`,reflect:!0})],q.prototype,`contentLanguage`,void 0),e([_({type:String,attribute:`time-zone`,reflect:!0})],q.prototype,`timeZone`,void 0),e([_({type:Object,reflect:!1})],q.prototype,`filter`,void 0),e([_({type:Boolean,reflect:!0})],q.prototype,`quiet`,void 0),e([_({type:Boolean,reflect:!0})],q.prototype,`readonly`,void 0),e([_({type:Boolean,reflect:!0})],q.prototype,`disabled`,void 0),q=e([i()],q),customElements.get(`luzmo-filter-value-picker-datetime`)||customElements.define(`luzmo-filter-value-picker-datetime`,q);var Lt=`:host{flex-direction:row;flex-shrink:1;min-width:0;display:flex}luzmo-select,luzmo-text-field{min-width:var(--luzmo-filter-value-picker-hierarchy-control-min-width,var(--filter-value-picker-hierarchy-control-min-width));flex:auto;max-width:100%}.missing-value{color:var(--luzmo-filter-value-picker-hierarchy-missing-value-color,#767676)}:host{--filter-value-picker-hierarchy-control-min-width:0}`,Rt=5e3,J=class extends t(S(x,{validSizes:Object.values(b)})){constructor(...e){super(...e),this.contentLanguage=`en`,this.quiet=!1,this.readonly=!1,this.disabled=!1,this._hierarchyValues=[],this._retrieving=!1,this._search=``,this._error=null,this._pending=!1,this._allValuesRetrieved=!1,this._hierarchyRequestGeneration=0,this._runningQueries=[]}static get styles(){return[y(Lt)]}connectedCallback(){super.connectedCallback();let e={};this.apiUrl&&(e.apiUrl=this.apiUrl),this.cacheTime&&(e.staleTime=this.cacheTime,e.gcTime=this.cacheTime*2),this.authKey&&this.authToken&&(e.authKey=this.authKey,e.authToken=this.authToken),f.configure(e)}willUpdate(e){if(super.willUpdate(e),e.has(`filter`)&&this.filter){let t=e.get(`filter`),n=t?.expression,r=t?.parameters?.[0],i=this.filter?.parameters?.[0],a=(r?.columnId||r?.formulaId)!==(this.filter?.parameters?.[0]?.columnId||this.filter?.parameters?.[0]?.formulaId)||r?.datasetId!==i?.datasetId;this.filter?.parameters?.[1]!==this._lastResolvedOutput&&(this._lastResolutionKey=void 0),a&&(this._hierarchyRequestGeneration++,this._pending=!1,this._retrieving=!1),a&&([`? in ?`,`? not in ?`,`? = ?`,`? != ?`].includes(this.filter?.expression)||![`? in ?`,`? not in ?`,`? = ?`,`? != ?`].includes(n))&&(this._hierarchyValues=[],this._allValuesRetrieved=!1),[`? in ?`,`? not in ?`,`? = ?`,`? != ?`].includes(this.filter.expression)&&this._hierarchyValues.length===0&&this._restoreCachedFirstPage()}}updated(e){if(super.updated(e),!e.has(`filter`)||!this.filter)return;let t=e.get(`filter`)?.expression,n=[`? = ?`,`? != ?`].includes(this.filter.expression)&&t!==void 0&&![`? in ?`,`? not in ?`,`? = ?`,`? != ?`].includes(t);n&&this._hierarchyValues.length>0?this._resolveSingleSelectValue():n&&!this._retrieving&&queueMicrotask(()=>{[`? = ?`,`? != ?`].includes(this.filter?.expression)&&this._hierarchyValues.length===0&&!this._retrieving&&this._fetchHierarchyValues(0,!0)})}_buildHierarchyQuery(e=0,t=this._search){let n=this.filter?.parameters?.[0];if(!n?.datasetId||!n.columnId&&!n.formulaId)return null;let r={column_id:n.columnId,formula_id:n.formulaId,dataset_id:n.datasetId},i={dimensions:[r],where:[],order:[{...r,order:`asc`}],limit:{by:Rt,offset:e}};return t&&i.where.push({expression:`? like ?`,parameters:[r,t]}),i}_getValues(e){return e&&Array.isArray(e.data)?e.data.map(e=>e[0]):[]}_applyHierarchyResult(e,t,n){let r=this._getValues(e);n||(this._allValuesRetrieved=r.length<Rt),this._hierarchyValues=t>0?[...this._hierarchyValues,...r]:r}_restoreCachedFirstPage(){let e=this._buildHierarchyQuery(0,``);if(!e)return!1;let t=f.getCachedData(e);return t?(this._applyHierarchyResult(t,0,``),this._retrieving=!1,this._error=null,!0):!1}_getMemberLabel(e){let t=p(e?.name,this.contentLanguage,{allowEmpty:!0});return typeof t==`string`?t:``}_findExactMember(e){return this._hierarchyValues.find(t=>String(t?.id)===e||this._getMemberLabel(t)===e)}_resolveSingleSelectValue(){if(![`? = ?`,`? != ?`].includes(this.filter?.expression)||this._hierarchyValues.length===0)return;let e=this.filter?.parameters?.[1];if(typeof e!=`string`&&typeof e!=`number`)return;let t=String(e),n=this._findExactMember(t),r=t.toLocaleLowerCase(this.contentLanguage),i=n??this._hierarchyValues.find(e=>String(e?.id).toLocaleLowerCase(this.contentLanguage).includes(r)||this._getMemberLabel(e).toLocaleLowerCase(this.contentLanguage).includes(r)),a=(n??i??this._hierarchyValues[0])?.id;if(typeof a!=`string`&&typeof a!=`number`)return;let o=this.filter.parameters[0],s=[o.datasetId,o.columnId??o.formulaId,this.filter.expression,String(e),String(a)].join(`|`);s!==this._lastResolutionKey&&(this._lastResolutionKey=s,this._lastResolvedOutput=a,this._value=a,this.filter={...this.filter,parameters:[{...this.filter.parameters[0]},a]},this._sendChangeEvent())}async _fetchHierarchyValues(e=0,t=!1){let n=this._search;if(!n&&this._allValuesRetrieved){this._retrieving=!1;return}if(e===0&&!n&&(this._restoreCachedFirstPage()||this._hierarchyValues.length>0)){this._retrieving=!1;return}if(!this.filter?.parameters?.[0]){this._retrieving=!1,this._error=`Missing column parameters`;return}let r=this.filter.parameters[0],i=r.columnId,a=r.formulaId,o=r.datasetId;if(!i&&!a){this._retrieving=!1,this._error=`Missing column id or formula id`;return}else if(!o){this._retrieving=!1,this._error=`Missing dataset id`;return}let s=this._buildHierarchyQuery(e,n);if(!s)return;let c=this._hierarchyRequestGeneration;this._pending=t,this._retrieving=!0,this._error=null;let l=new AbortController,u=new Promise((e,t)=>{f.fetchData(s).then(e).catch(t),l.signal.addEventListener(`abort`,()=>{console.warn(`Request aborted`),t({status:`aborted`})})}),d={promise:u,abortController:l};this._runningQueries.push(d);try{let r=await u;if(c!==this._hierarchyRequestGeneration)return;this._applyHierarchyResult(r,e,n),t&&!n&&this._resolveSingleSelectValue()}catch(e){if(c!==this._hierarchyRequestGeneration||e?.status===`aborted`)return;this._error=e instanceof Error?e.message:`Unknown error`,this._hierarchyValues=[]}finally{this._runningQueries=this._runningQueries.filter(e=>e.promise!==u),c===this._hierarchyRequestGeneration&&(this._pending=!1,this._retrieving=!1)}}_sendChangeEvent(){this.dispatchEvent(new CustomEvent(`luzmo-filter-value-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{value:this._value}}))}setHierarchy(e){if(this.readonly||this.disabled)return;let t;t=[`? in ?`,`? not in ?`].includes(this.filter?.expression)?e?.detail?.value:[`? = ?`,`? != ?`].includes(this.filter?.expression)?e?.detail?.value?.[0]:e?.target?.value,this._value!==t&&(this._value=t,this.filter={...this.filter,parameters:[{...this.filter?.parameters?.[0]},this._value]},this._sendChangeEvent())}onScrolled(e){!this._retrieving&&!this._allValuesRetrieved&&e?.detail?.last===this._hierarchyValues.length-1&&this._fetchHierarchyValues(this._hierarchyValues.length)}renderTextField(){return h`<luzmo-text-field
158
+ label=${n(`Filter value`,{desc:`Label for filter value text field`})}
159
+ .size=${this.size}
160
+ .quiet=${this.quiet}
161
+ .readonly=${this.readonly}
162
+ .disabled=${this.disabled}
163
+ @change=${this.setHierarchy}
164
+ @input=${this.setHierarchy}
165
+ .value=${this.filter?.parameters?.[1]??``}
166
+ ></luzmo-text-field>`}setSearchString(e){this._search=e?.detail?.string??``,this._allValuesRetrieved||(this._searchQueryTimeout&&(this._runningQueries.forEach(e=>{e?.abortController&&e.abortController.abort()}),this._runningQueries=[],clearTimeout(this._searchQueryTimeout)),this._searchQueryTimeout=setTimeout(()=>{this._fetchHierarchyValues()},500))}resetSearchString(){this._search=``,this._hierarchyRequestGeneration++,this._pending=!1,this._retrieving=!1,this._restoreCachedFirstPage()}onOpened(){this._fetchHierarchyValues()}_getSelectedOptionValue(){let e=this.filter?.parameters?.[1];return typeof e!=`string`&&typeof e!=`number`?e:this._findExactMember(String(e))?.id??e}renderHierarchyPicker(){if(this._error)return h`<div class="error" role="alert">Error: ${this._error}</div>`;let e=(this._search?this._hierarchyValues.filter(e=>p(e.name,this.contentLanguage,{allowEmpty:!0})?.toLowerCase().includes(this._search.toLowerCase())||e.toString().toLowerCase().includes(this._search.toLowerCase())):this._hierarchyValues).map(e=>{let t=p(e?.name,this.contentLanguage)??`N/A`;return typeof t!=`string`&&(t=`N/A`),{value:e?.id,label:t}}),t=this.filter?.expression,r=[`? = ?`,`? != ?`].includes(t),i=n(`Selected {count} items`),a=n(`Search`),o=n(`No data`),s=n(`No results`),c=n(`Select...`);return h`<luzmo-select
167
+ .size=${this.size}
168
+ .label=${c}
169
+ .retrieving=${this._retrieving}
170
+ .pending=${this._pending}
171
+ .selects=${r?`single`:`multiple`}
172
+ .variant=${r?`highlight`:`checkboxes`}
173
+ ?emphasized=${!this.quiet}
174
+ .quiet=${this.quiet}
175
+ .readonly=${this.readonly}
176
+ .disabled=${this.disabled}
177
+ no-wrap
178
+ ?invalid=${!!this._error}
179
+ .multipleLabelTemplate=${i}
180
+ .searchLabel=${a}
181
+ .noDataLabel=${o}
182
+ .noResultsLabel=${s}
183
+ @change=${this.setHierarchy}
184
+ @luzmo-search=${this.setSearchString}
185
+ @luzmo-opened=${this.onOpened}
186
+ @luzmo-closed=${this.resetSearchString}
187
+ @luzmo-scrolled=${this.onScrolled}
188
+ .options=${e}
189
+ .value=${r?[this._getSelectedOptionValue()]:this.filter?.parameters?.[1]}
190
+ >
191
+ </luzmo-select>`}render(){let e=this.filter?.expression;return[`? in ?`,`? not in ?`,`? = ?`,`? != ?`].includes(e)?this.renderHierarchyPicker():this.renderTextField()}};e([_({type:String,attribute:`api-url`,reflect:!0})],J.prototype,`apiUrl`,void 0),e([_({type:String,attribute:`auth-key`,reflect:!0})],J.prototype,`authKey`,void 0),e([_({type:String,attribute:`auth-token`,reflect:!0})],J.prototype,`authToken`,void 0),e([_({type:Number,attribute:`cache-time`,reflect:!0})],J.prototype,`cacheTime`,void 0),e([_({type:String,attribute:`content-language`,reflect:!0})],J.prototype,`contentLanguage`,void 0),e([_({type:Object,reflect:!1})],J.prototype,`filter`,void 0),e([_({type:Boolean,reflect:!0})],J.prototype,`quiet`,void 0),e([_({type:Boolean,reflect:!0})],J.prototype,`readonly`,void 0),e([_({type:Boolean,reflect:!0})],J.prototype,`disabled`,void 0),e([v()],J.prototype,`_hierarchyValues`,void 0),e([v()],J.prototype,`_retrieving`,void 0),e([v()],J.prototype,`_search`,void 0),e([v()],J.prototype,`_error`,void 0),e([v()],J.prototype,`_pending`,void 0),J=e([i()],J),customElements.get(`luzmo-filter-value-picker-hierarchy`)||customElements.define(`luzmo-filter-value-picker-hierarchy`,J);var zt=`:host{flex-direction:row;flex-shrink:1;min-width:0;display:flex}luzmo-number-field,luzmo-select{min-width:var(--luzmo-filter-value-picker-numeric-control-min-width,var(--filter-value-picker-numeric-control-min-width));flex:auto;max-width:100%}.missing-value{opacity:.4}:host{--filter-value-picker-numeric-control-min-width:0}`,Bt=5e3,Y=class extends t(S(x,{validSizes:Object.values(b)})){constructor(...e){super(...e),this.contentLanguage=`en`,this.quiet=!1,this.readonly=!1,this.disabled=!1,this._numericValues=[],this._retrieving=!0,this._search=``,this._error=null,this._allValuesRetrieved=!1,this._runningQueries=[]}static get styles(){return[y(zt)]}connectedCallback(){super.connectedCallback();let e={};this.apiUrl&&(e.apiUrl=this.apiUrl),this.cacheTime&&(e.staleTime=this.cacheTime,e.gcTime=this.cacheTime*2),this.authKey&&this.authToken&&(e.authKey=this.authKey,e.authToken=this.authToken),f.configure(e)}willUpdate(e){if(super.willUpdate(e),e.has(`filter`)&&this.filter){let t=e.get(`filter`)?.expression,n=this.filter?.expression;((e.get(`filter`)?.parameters?.[0]?.columnId||e.get(`filter`)?.parameters?.[0]?.formulaId)!==(this.filter?.parameters?.[0]?.columnId||this.filter?.parameters?.[0]?.formulaId)||![`? in ?`,`? not in ?`].includes(t))&&[`? in ?`,`? not in ?`].includes(n)&&(this._numericValues=[],this._allValuesRetrieved=!1,this._retrieving=!0)}}async _fetchNumericValues(e=0){if(this._allValuesRetrieved){this._retrieving=!1;return}if(!this.filter?.parameters?.[0]){this._retrieving=!1,this._error=`Missing column parameters`;return}let t=this.filter.parameters[0],n=t.columnId,r=t.formulaId,i=t.datasetId;if(!n&&!r){this._retrieving=!1,this._error=`Missing column id or formula id`;return}else if(!i){this._retrieving=!1,this._error=`Missing dataset id`;return}this._retrieving=!0,this._error=null;let a={expression:`? like ?`,parameters:[{dataset_id:i,expression:`CAST({${i}:${n??r}},hierarchy)`},this._search]},o={dimensions:[{column_id:n,formula_id:r,dataset_id:i}],where:[],order:[{column_id:n,formula_id:r,dataset_id:i,order:`asc`}],limit:{by:Bt,offset:e}};this._search&&!this._allValuesRetrieved&&o.where.push(a);let s=new AbortController,c=new Promise((e,t)=>{f.fetchData(o).then(e).catch(t),s.signal.addEventListener(`abort`,()=>{console.warn(`Request aborted`),t({status:`aborted`})})}),l={promise:c,abortController:s};this._runningQueries.push(l);try{let t=await c,n=t&&Array.isArray(t.data)?t.data.map(e=>e[0]):[];this._search||(this._allValuesRetrieved=n.length<Bt),this._numericValues=e>0?[...this._numericValues,...n]:n}catch(e){if(e?.status===`aborted`)return;this._error=e instanceof Error?e.message:`Unknown error`,this._numericValues=[]}finally{this._runningQueries=this._runningQueries.filter(e=>e.promise!==c),this._retrieving=!1}}_sendChangeEvent(){this.dispatchEvent(new CustomEvent(`luzmo-filter-value-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{value:this._value}}))}setValue(e){if(this.readonly||this.disabled)return;let t=[`? in ?`,`? not in ?`].includes(this.filter?.expression)?e?.detail?.value:e?.target?.value;this._value!==t&&(this._value=t,this.filter={...this.filter,parameters:[{...this.filter?.parameters?.[0]},t]},this._sendChangeEvent())}selectValue(e){if(this.readonly||this.disabled)return;let t=(e.detail?.value??``).map(e=>Number.parseFloat(e));this.filter={...this.filter,parameters:[{...this.filter?.parameters?.[0]},t]},this._value=t,this._sendChangeEvent()}onScrolled(e){!this._retrieving&&!this._allValuesRetrieved&&e?.detail?.last===this._numericValues.length-1&&this._fetchNumericValues(this._numericValues.length)}renderNumberField(){return h`<luzmo-number-field
192
+ label="Numeric filter value"
193
+ grows
194
+ .size=${this.size}
195
+ .quiet=${this.quiet}
196
+ .readonly=${this.readonly}
197
+ .disabled=${this.disabled}
198
+ @change=${this.setValue}
199
+ @input=${this.setValue}
200
+ .value=${this.filter?.parameters?.[1]}
201
+ ></luzmo-number-field>`}setSearchString(e){this._search=e?.detail?.string??``,this._allValuesRetrieved||(this._searchQueryTimeout&&(this._runningQueries.forEach(e=>{e?.abortController&&e.abortController.abort()}),this._runningQueries=[],clearTimeout(this._searchQueryTimeout)),this._searchQueryTimeout=setTimeout(()=>{this._fetchNumericValues()},500))}resetSearchString(){this._search=``}onOpened(){this._fetchNumericValues()}renderValuePicker(){if(this._error)return h`<div class="error" role="alert">${this._error}</div>`;let e=this._numericValues.filter(e=>e.toString().toLowerCase().includes(this._search.toLowerCase())).map(e=>({value:e,label:e})),t=n(`Selected {count} items`),r=n(`Search`),i=n(`No data`),a=n(`No results`),o=n(`Select...`);return h`<luzmo-select
202
+ .size=${this.size}
203
+ .label=${o}
204
+ .retrieving=${this._retrieving}
205
+ selects="multiple"
206
+ variant="checkboxes"
207
+ ?emphasized=${!this.quiet}
208
+ .quiet=${this.quiet}
209
+ .readonly=${this.readonly}
210
+ .disabled=${this.disabled}
211
+ no-wrap
212
+ ?invalid=${!!this._error}
213
+ .multipleLabelTemplate=${t}
214
+ .searchLabel=${r}
215
+ .noDataLabel=${i}
216
+ .noResultsLabel=${a}
217
+ @change=${this.selectValue}
218
+ @luzmo-search=${this.setSearchString}
219
+ @luzmo-opened=${this.onOpened}
220
+ @luzmo-closed=${this.resetSearchString}
221
+ @luzmo-scrolled=${this.onScrolled}
222
+ .options=${e}
223
+ .value=${this.filter?.parameters?.[1]}
224
+ >
225
+ </luzmo-select>`}render(){let e=this.filter?.expression;return[`? in ?`,`? not in ?`].includes(e)?this.renderValuePicker():this.renderNumberField()}};e([_({type:String,attribute:`api-url`,reflect:!0})],Y.prototype,`apiUrl`,void 0),e([_({type:String,attribute:`auth-key`,reflect:!0})],Y.prototype,`authKey`,void 0),e([_({type:String,attribute:`auth-token`,reflect:!0})],Y.prototype,`authToken`,void 0),e([_({type:Number,attribute:`cache-time`,reflect:!0})],Y.prototype,`cacheTime`,void 0),e([_({type:String,attribute:`content-language`,reflect:!0})],Y.prototype,`contentLanguage`,void 0),e([_({type:Object,reflect:!1})],Y.prototype,`filter`,void 0),e([_({type:Boolean,reflect:!0})],Y.prototype,`quiet`,void 0),e([_({type:Boolean,reflect:!0})],Y.prototype,`readonly`,void 0),e([_({type:Boolean,reflect:!0})],Y.prototype,`disabled`,void 0),e([v()],Y.prototype,`_numericValues`,void 0),e([v()],Y.prototype,`_retrieving`,void 0),e([v()],Y.prototype,`_search`,void 0),e([v()],Y.prototype,`_error`,void 0),Y=e([i()],Y),customElements.get(`luzmo-filter-value-picker-numeric`)||customElements.define(`luzmo-filter-value-picker-numeric`,Y);var X=class extends t(S(x,{validSizes:Object.values(b)})){constructor(...e){super(...e),this.contentLanguage=`en`,this.quiet=!1,this.readonly=!1,this.disabled=!1,this._expressionsWithoutValuePicker=new Set([`? is null`,`? is not null`,`to_date`])}static get styles(){return[y(Ft)]}_sendChangeEvent(e){this.dispatchEvent(new CustomEvent(`luzmo-filter-value-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{value:e}}))}setFilterValue(e){e.stopPropagation(),!(this.readonly||this.disabled)&&this._sendChangeEvent(e?.detail?.value)}renderNumericValuePicker(){return h`<luzmo-filter-value-picker-numeric
226
+ .apiUrl=${this.apiUrl}
227
+ .authKey=${this.authKey}
228
+ .authToken=${this.authToken}
229
+ .cacheTime=${this.cacheTime}
230
+ .filter=${this.filter}
231
+ .size=${this.size}
232
+ .language=${this.language}
233
+ .contentLanguage=${this.contentLanguage}
234
+ .quiet=${this.quiet}
235
+ .readonly=${this.readonly}
236
+ .disabled=${this.disabled}
237
+ @luzmo-filter-value-changed=${this.setFilterValue}
238
+ ></luzmo-filter-value-picker-numeric>`}renderHierarchyValuePicker(){return h`<luzmo-filter-value-picker-hierarchy
239
+ .apiUrl=${this.apiUrl}
240
+ .authKey=${this.authKey}
241
+ .authToken=${this.authToken}
242
+ .cacheTime=${this.cacheTime}
243
+ .filter=${this.filter}
244
+ .size=${this.size}
245
+ .language=${this.language}
246
+ .contentLanguage=${this.contentLanguage}
247
+ .quiet=${this.quiet}
248
+ .readonly=${this.readonly}
249
+ .disabled=${this.disabled}
250
+ @luzmo-filter-value-changed=${this.setFilterValue}
251
+ ></luzmo-filter-value-picker-hierarchy>`}renderDateTimeValuePicker(){return h`<luzmo-filter-value-picker-datetime
252
+ .apiUrl=${this.apiUrl}
253
+ .authKey=${this.authKey}
254
+ .authToken=${this.authToken}
255
+ .cacheTime=${this.cacheTime}
256
+ .filter=${this.filter}
257
+ .timeZone=${this.timeZone}
258
+ .language=${this.language}
259
+ .contentLanguage=${this.contentLanguage}
260
+ .size=${this.size}
261
+ .quiet=${this.quiet}
262
+ .readonly=${this.readonly}
263
+ .disabled=${this.disabled}
264
+ @luzmo-filter-value-changed=${this.setFilterValue}
265
+ ></luzmo-filter-value-picker-datetime>`}renderDisabledTextField(){let e=this.filter?.parameters?.[1]??``;return h`<luzmo-text-field
266
+ label=${n(`Filter value`,{desc:`Label for filter value text field`})}
267
+ .size=${this.size}
268
+ .value=${e}
269
+ .disabled=${!0}
270
+ ></luzmo-text-field>`}render(){let e=this.valueType??``,t=this.filter?.expression;return!t||this._expressionsWithoutValuePicker.has(t)?h`
271
+
272
+ `:[`numeric`,`hierarchy`,`datetime`].includes(e)?e===`numeric`?this.renderNumericValuePicker():e===`datetime`?this.renderDateTimeValuePicker():this.renderHierarchyValuePicker():typeof this.filter?.parameters?.[1]==`string`?this.renderDisabledTextField():h`
273
+
274
+ `}};e([_({type:String,attribute:`api-url`,reflect:!0})],X.prototype,`apiUrl`,void 0),e([_({type:String,attribute:`auth-key`,reflect:!0})],X.prototype,`authKey`,void 0),e([_({type:String,attribute:`auth-token`,reflect:!0})],X.prototype,`authToken`,void 0),e([_({type:Number,attribute:`cache-time`,reflect:!0})],X.prototype,`cacheTime`,void 0),e([_({type:String,attribute:`content-language`,reflect:!0})],X.prototype,`contentLanguage`,void 0),e([_({type:String,attribute:`time-zone`,reflect:!0})],X.prototype,`timeZone`,void 0),e([_({type:String,attribute:`value-type`,reflect:!0})],X.prototype,`valueType`,void 0),e([_({type:Object,reflect:!1})],X.prototype,`filter`,void 0),e([_({type:Boolean,reflect:!0})],X.prototype,`quiet`,void 0),e([_({type:Boolean,reflect:!0})],X.prototype,`readonly`,void 0),e([_({type:Boolean,reflect:!0})],X.prototype,`disabled`,void 0),customElements.get(`luzmo-filter-value-picker`)||customElements.define(`luzmo-filter-value-picker`,X);var Vt=`:host{box-sizing:border-box;min-width:0;max-width:100%;font-family:var(--luzmo-font-family);color:var(--luzmo-font-color);flex-direction:row;display:flex}:host([display=text]){vertical-align:middle;align-items:center;max-width:100%;display:inline-flex}.filter-item-text{min-width:0;max-width:100%;font-size:var(--luzmo-filter-item-text-font-size,var(--filter-item-text-font-size));white-space:normal;flex-wrap:wrap;align-items:center;column-gap:.25em;line-height:1.5;display:inline-flex}.filter-item-text-field{white-space:nowrap}.filter-item-column-badge{white-space:nowrap;align-items:center;display:inline-flex}.filter-item-text-field-icon{margin-inline-end:var(--luzmo-filter-item-text-icon-gap,var(--filter-item-text-icon-gap))}.filter-item-column-badge luzmo-icon{--luzmo-icon-vertical-align:0}.filter-item-text-expression{color:var(--luzmo-filter-item-text-expression-color,var(--filter-item-text-expression-color));font-weight:var(--luzmo-filter-item-text-expression-font-weight,var(--filter-item-text-expression-font-weight))}:host([column-display=outline]) .filter-item-column-badge luzmo-badge{--luzmo-badge-border-color:var(--luzmo-filter-item-column-badge-color,var(--luzmo-border-color-full));--luzmo-badge-content-color:var(--luzmo-filter-item-column-badge-font-color,var(--luzmo-filter-item-column-badge-color,var(--luzmo-font-color)))}:host([column-display=subtle]) .filter-item-column-badge luzmo-badge{--luzmo-badge-background-color:color-mix(in srgb, var(--luzmo-filter-item-column-badge-color,var(--luzmo-selected-color-hard)) 10%, var(--luzmo-background-color));--luzmo-badge-content-color:var(--luzmo-filter-item-column-badge-font-color)}:host([column-display=fill]) .filter-item-column-badge luzmo-badge{--luzmo-badge-background-color:var(--luzmo-filter-item-column-badge-color,var(--luzmo-selected-color-hard));--luzmo-badge-border-color:transparent;--luzmo-badge-content-color:var(--luzmo-filter-item-column-badge-font-color,var(--luzmo-background-color))}.filter-item-text-value{align-items:center;gap:var(--luzmo-spacing-1);display:inline-flex}.filter-item-text-value luzmo-progress-circle{--luzmo-progress-circle-size:var(--filter-item-progress-circle-size)}.filter-item-text-value--has-tooltip{text-underline-offset:.15em;cursor:help;text-decoration-line:underline;text-decoration-style:dotted;text-decoration-color:currentColor}[role=group]{box-sizing:border-box;align-items:center;gap:var(--luzmo-filter-item-gap,var(--filter-item-gap));flex-flow:wrap;width:100%;min-width:0;max-width:100%;display:flex}luzmo-data-fields-select{flex:0 1 var(--luzmo-filter-item-field-width,var(--filter-item-field-width));min-width:min(100%, var(--luzmo-filter-item-field-min-width,var(--filter-item-field-min-width)));max-width:100%}luzmo-filter-expression-picker{flex:0 0 var(--luzmo-filter-item-expression-width,var(--filter-item-expression-width));max-width:100%}.value-controls{align-items:center;gap:var(--luzmo-filter-item-gap,var(--filter-item-gap));flex-wrap:nowrap;flex:var(--luzmo-filter-item-value-grow,var(--filter-item-value-grow)) 1 var(--luzmo-filter-item-value-width,var(--filter-item-value-width));min-width:min(100%, var(--luzmo-filter-item-value-min-width,var(--filter-item-value-min-width)));max-width:100%;display:flex}luzmo-filter-value-picker{flex:auto;min-width:0;max-width:100%}luzmo-filter-parameter-picker{flex:0 auto;min-width:0;max-width:100%}:host{--filter-item-gap:var(--luzmo-spacing-3);--filter-item-field-width:auto;--filter-item-expression-width:auto;--filter-item-value-width:auto;--filter-item-value-grow:0;--filter-item-field-min-width:4.5rem;--filter-item-value-min-width:4.5rem;--filter-item-text-font-size:var(--luzmo-font-size-m);--filter-item-text-icon-gap:var(--luzmo-spacing-1);--filter-item-text-expression-color:var(--luzmo-font-color);--filter-item-text-expression-font-weight:var(--luzmo-font-weight);--filter-item-progress-circle-size:var(--luzmo-component-height)}:host([size=s]){--filter-item-gap:var(--luzmo-spacing-2);--filter-item-text-font-size:var(--luzmo-font-size-s);--filter-item-progress-circle-size:var(--luzmo-component-height-s)}: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));--filter-item-text-font-size:var(--luzmo-font-size-l);--filter-item-text-icon-gap:var(--luzmo-spacing-2);--filter-item-progress-circle-size:var(--luzmo-component-height-l)}:host([size=xl]){--filter-item-gap:var(--luzmo-spacing-4);--filter-item-text-font-size:var(--luzmo-font-size-xl);--filter-item-text-icon-gap:var(--luzmo-spacing-2);--filter-item-progress-circle-size:var(--luzmo-component-height-xl)}`,Z=class extends t(S(x,{validSizes:Object.values(b)})){constructor(...e){super(...e),this.apiUrl=`https://api.luzmo.com`,this.contentLanguage=`en`,this.filter={},this.display=`rich`,this.columnDisplay=`text`,this.quiet=!1,this.readonly=!1,this.disabled=!1,this.allowParameters=!1,this.parameters=[],this._loading=!1,this._datasetsDataFields=[],this._hierarchyLabels=new Map,this._hierarchyLabelsLoading=!1,this._hierarchyRequest=0}static get styles(){return[y(Vt)]}connectedCallback(){if(super.connectedCallback(),this.textContext)return;let e={};this.apiUrl&&(e.apiUrl=this.apiUrl),this.cacheTime&&(e.staleTime=this.cacheTime,e.gcTime=this.cacheTime*2),e.authKey=this.authKey||``,e.authToken=this.authToken||``,f.configure(e),this.hasUpdated&&this.display===`text`&&this._loadHierarchyLabelsForText()}disconnectedCallback(){super.disconnectedCallback(),this._hierarchyRequest+=1}_clearTypeState(){this._type=void 0,this._subType=void 0,this._isFormula=void 0}async _fetchDatasetDataFields(){if(!this.datasetIds||this.datasetIds.length===0){this._error=`Missing dataset ids to fetch columns & formulas`,this._datasetsDataFields=[],this._loading=!1;return}let{valid:e,invalid:t}=ee(this.datasetIds);if(t.length>0&&console.warn(`[LuzmoFilterItem] Invalid dataset IDs provided (not valid UUIDs): ${t.join(`, `)}. These will be skipped.`),e.length===0){this._error=`Invalid dataset IDs provided. Dataset IDs must be valid UUIDs.`,this._datasetsDataFields=[],this._loading=!1;return}this._loading=!0,this._error=null;try{let t=await f.fetchDatasetsWithColumnsAndFormulas(e);for(let e of t)for(let t of[...e.columns,...e.formulas])t.datasetId=e.id;this._datasetsDataFields=t}catch(e){console.error(`Error fetching dataset columns & formulas:`,e),this._error=e instanceof Error?e.message:`Unknown error`,this._datasetsDataFields=[]}finally{this._loading=!1}}willUpdate(e){super.willUpdate(e);let t=e.has(`filter`),n=e.has(`datasetIds`),r=e.has(`authKey`),i=e.has(`authToken`),a=e.has(`_datasetsDataFields`),o=e.has(`parameters`);if(!this.textContext&&this.display===`text`&&(t||a||e.has(`display`)||e.has(`contentLanguage`))&&this._loadHierarchyLabelsForText(),t||n||a&&(this.filter?.parameters?.[0]?.columnId||this.filter?.parameters?.[0]?.formulaId)&&this.filter?.parameters?.[0]?.datasetId)if(!this.datasetIds||this.datasetIds.length===0||this._datasetsDataFields.length===0)this._clearTypeState();else{let e=this._datasetsDataFields.find(e=>e.id===this.filter.parameters?.[0]?.datasetId);if(e){let t=!1;for(let n of[...e.columns||[],...e?.formulas||[]])if(n.id===this.filter.parameters?.[0]?.columnId||n.id===this.filter.parameters?.[0]?.formulaId){this._type=n.type,this._subType=n.subtype,this._isFormula=n.id===this.filter.parameters?.[0]?.formulaId,t=!0;break}t||this._clearTypeState()}else this._clearTypeState()}if(!this.textContext&&(r||i)){let e={authKey:this.authKey||``,authToken:this.authToken||``};f.configure(e)}!this.textContext&&(n||r||i)&&this._fetchDatasetDataFields();let s=this.filter?.parameters?.[1],c=e.get(`filter`),l=!!c&&c.expression!==this.filter?.expression;if(this.allowParameters&&this._type&&(o||e.has(`_type`)||l)&&U(s)){let t=this.parameters.find(e=>e.parameter===s.parameter),n=H(this._type,this.filter?.expression),r=o||e.has(`_type`);if(l&&!n.includes(s.type)||r&&(!t||!n.includes(t.type))){let e=structuredClone(this.filter),t=G(this._type,e.expression);e.parameters=t===void 0?[e.parameters[0]]:[e.parameters[0],t],this.filter=e,this._sendChangeEvent()}else if(r&&t&&JSON.stringify(t)!==JSON.stringify(s)){let e=structuredClone(this.filter);e.parameters[1]=structuredClone(t),this.filter=e,this._sendChangeEvent()}}}async _loadHierarchyLabelsForText(){let e=++this._hierarchyRequest,t=this._filterTextContext(),n=je({condition:`and`,filters:[this.filter]},t);if(n.length===0){this._hierarchyLabels=new Map,this._hierarchyLabelsLoading=!1;return}this._hierarchyLabelsLoading=!0;try{let t=await Me(n,this.contentLanguage);e===this._hierarchyRequest&&(this._hierarchyLabels=t)}catch(t){e===this._hierarchyRequest&&console.error(`[${this.localName}] Error fetching hierarchy member names:`,t)}finally{e===this._hierarchyRequest&&(this._hierarchyLabelsLoading=!1)}}_sendChangeEvent(){this.readonly||this.disabled||this.dispatchEvent(new CustomEvent(`luzmo-filter-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{filter:this.filter}}))}setFilterDataField(e){if(this.readonly||this.disabled||this._cannotReferenceColumn())return;let t=e.detail?.dataFields?.[0],n=this._type,r=this.filter?.parameters?.[0]?.columnId||this.filter?.parameters?.[0]?.formulaId,i=!!this.filter?.parameters?.[0]?.formulaId,a=t?.columnId||t?.formulaId,o=U(this.filter?.parameters?.[1]);this._type=t?.type,this._subType=t?.subtype,this._isFormula=!!t?.formulaId;let s=ae(this._type,this._subType,this._isFormula);this.filter=structuredClone(this.filter??{}),s?.includes(this.filter?.expression)||(this.filter.expression=s?.[0]?.expression),this.filter.parameters=this.filter?.parameters??[],this.filter.parameters[0]={datasetId:t?.datasetId},this._isFormula?this.filter.parameters[0].formulaId=t?.formulaId:this.filter.parameters[0].columnId=t?.columnId;let c=this.filter.properties??{};if(this._isFormula?i&&c.type!==void 0||(this.filter.properties={...c,type:`having`}):(c.type===void 0||i&&c.type===`having`)&&(this.filter.properties={...c,type:`where`}),t?.lowestLevel,n!==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]=new Date().toISOString()):(this.filter.expression=`? is not null`,this.filter.parameters=[this.filter.parameters[0]]);else if(o&&r!==a){let e=G(this._type,this.filter.expression);this.filter.parameters=e===void 0?[this.filter.parameters[0]]:[this.filter.parameters[0],e]}else r!==a&&this._type===`hierarchy`&&(this.filter.parameters[1]=[`? in ?`,`? not in ?`].includes(this.filter.expression)?[]:``);this._sendChangeEvent()}setFilterExpression(e){if(this.readonly||this.disabled||this._cannotReferenceColumn())return;let t=structuredClone(this.filter??{}),n=t.expression;if(t.expression=e.detail?.expression,n!==t.expression){if(U(t.parameters?.[1])){let e=t.parameters[1];if(!H(this._type,t.expression).some(t=>t===e.type)){let e=G(this._type,t.expression);t.parameters=e===void 0?[t.parameters[0]]:[t.parameters[0],e]}}else if([`? is null`,`? is not null`].includes(t.expression))t.parameters=[t.parameters[0]];else if(this._type===`datetime`)if([`YTD`,`QTD`,`MTD`,`WTD`].includes(t.expression)){let n=e?.detail?.unit;n&&(t.parameters[1]={unit:typeof n==`number`?n:1})}else if([`last_completed`,`next_full`,`to_date`].includes(t.expression)){let e=t?.parameters?.[1]?.unit;t.parameters[1]={unit:typeof e==`number`?e:1}}else if([`last_now`,`last_available`,`next_now`,`more_than_ago`,`or_more_ago`].includes(t.expression)){let e=t?.parameters?.[1]?.unit,n=t?.parameters?.[1]?.quantity;t.parameters[1]={unit:typeof e==`number`?e:1,quantity:typeof n==`number`?n:1}}else t.parameters[1]=new Date().toISOString();else if(this._type===`hierarchy`)if([`? in ?`,`? not in ?`].includes(t.expression))[`? = ?`,`? != ?`].includes(n)?t.parameters[1]=t.parameters[1]?[t.parameters[1]]:[]:t.parameters[1]=[];else if([`? = ?`,`? != ?`].includes(t.expression))if([`? in ?`,`? not in ?`].includes(n))t.parameters[1]=Array.isArray(t.parameters[1])&&t.parameters[1][0]!=null?t.parameters[1][0]:``;else{let e=t.parameters[1];t.parameters[1]=typeof e==`string`||typeof e==`number`?e:``}else t.parameters[1]=[`? in ?`,`? not in ?`].includes(n)?``:t.parameters[1]??``;else this._type===`numeric`&&([`? in ?`,`? not in ?`].includes(t.expression)&&[`? in ?`,`? not in ?`].includes(n)?t.parameters[1]=t.parameters[1]??[]:[`? in ?`,`? not in ?`].includes(t.expression)?t.parameters[1]=[]:t.parameters[1]=[`? in ?`,`? not in ?`].includes(n)?0:t.parameters[1]??0);this.filter=t,this._sendChangeEvent()}}setFilterValue(e){this.readonly||this.disabled||this._cannotReferenceColumn()||(this.filter.parameters[1]=e?.detail?.value,this._sendChangeEvent())}handleFilterParameterSelected(e){if(this.readonly||this.disabled)return;let t=e.detail?.parameter;if(!t)return;let n=structuredClone(this.filter??{});n.parameters=n.parameters??[],n.parameters[1]=structuredClone(t),this.filter=n,this._sendChangeEvent()}handleFilterParameterRemoved(){if(this.readonly||this.disabled||!U(this.filter?.parameters?.[1]))return;let e=structuredClone(this.filter),t=G(this._type,e.expression);e.parameters=t===void 0?[e.parameters[0]]:[e.parameters[0],t],this.filter=e,this._sendChangeEvent()}_cannotReferenceColumn(){if(!(this.filter?.parameters?.[0]?.columnId||this.filter?.parameters?.[0]?.formulaId))return!1;if(!this.datasetIds||this.datasetIds.length===0||this._datasetsDataFields.length===0)return!0;let e=this.filter?.parameters?.[0]?.datasetId,t=this._datasetsDataFields.find(t=>t.id===e);return!t||![...t.columns||[],...t.formulas||[]].find(e=>e.id===this.filter?.parameters?.[0]?.columnId||e.id===this.filter?.parameters?.[0]?.formulaId)}renderDataFieldPicker(){let e=this._cannotReferenceColumn(),t=e?n(`Unknown`):void 0,r=e||this._loading?``:this.filter?.parameters?.[0]?.columnId||this.filter?.parameters?.[0]?.formulaId;return h`<luzmo-data-fields-select
275
+ .language=${this.language}
276
+ .contentLanguage=${this.contentLanguage}
277
+ .size=${this.size}
278
+ .value=${r?[r]:[]}
279
+ selects="single"
280
+ levels="off"
281
+ .datasetsDataFields=${this._datasetsDataFields}
282
+ placeholder=${te(t)}
283
+ .invalid=${!!this._error||e}
284
+ ?disabled=${e||this.disabled}
285
+ .readonly=${this.readonly}
286
+ .retrieving=${this._loading}
287
+ .pending=${this._loading}
288
+ .quiet=${this.quiet}
289
+ @luzmo-data-fields-selected=${this.setFilterDataField}
290
+ ></luzmo-data-fields-select>`}renderExpressionPicker(){let e=this._cannotReferenceColumn(),t=this.filter?.parameters?.[0],n=!t?.datasetId||!t?.columnId&&!t?.formulaId||e;return h`<luzmo-filter-expression-picker
291
+ .language=${this.language}
292
+ .size=${this.size}
293
+ .type=${this._type}
294
+ .subtype=${this._subType}
295
+ .filter=${this.filter}
296
+ ?isFormula=${this._isFormula}
297
+ ?disabled=${n||this.disabled}
298
+ .readonly=${this.readonly}
299
+ .quiet=${this.quiet}
300
+ @luzmo-expression-selected=${this.setFilterExpression}
301
+ ></luzmo-filter-expression-picker>`}renderValuePicker(){let e=this._cannotReferenceColumn(),t=this.filter?.parameters?.[0],n=!t?.datasetId||!t?.columnId&&!t?.formulaId||e;return h`<luzmo-filter-value-picker
302
+ .apiUrl=${this.apiUrl}
303
+ .authKey=${this.authKey}
304
+ .authToken=${this.authToken}
305
+ .cacheTime=${this.cacheTime}
306
+ .language=${this.language}
307
+ .contentLanguage=${this.contentLanguage}
308
+ .timeZone=${this.timeZone}
309
+ .size=${this.size}
310
+ .filter=${this.filter}
311
+ .valueType=${this._type}
312
+ ?disabled=${n||this.disabled}
313
+ .readonly=${this.readonly}
314
+ .quiet=${this.quiet}
315
+ @luzmo-filter-value-changed=${this.setFilterValue}
316
+ ></luzmo-filter-value-picker>`}renderParameterPicker(){if(!this.allowParameters)return null;let e=H(this._type,this.filter?.expression);if(e.length===0)return null;let t=U(this.filter?.parameters?.[1])?this.filter.parameters[1]:void 0;return h`<luzmo-filter-parameter-picker
317
+ .language=${this.language}
318
+ .size=${this.size}
319
+ .parameters=${this.parameters}
320
+ .allowedTypes=${e}
321
+ .selectedParameter=${t}
322
+ .currentValue=${t?t.value:this.filter?.parameters?.[1]}
323
+ ?disabled=${this._cannotReferenceColumn()||this.disabled}
324
+ .readonly=${this.readonly}
325
+ .quiet=${this.quiet}
326
+ @luzmo-parameter-selected=${this.handleFilterParameterSelected}
327
+ @luzmo-parameter-removed=${this.handleFilterParameterRemoved}
328
+ ></luzmo-filter-parameter-picker>`}_filterTextContext(){return this.textContext??{datasets:this._datasetsDataFields,contentLanguage:this.contentLanguage,timeZone:this.timeZone,hierarchyLabels:this._hierarchyLabels,hierarchyLabelsLoading:this._hierarchyLabelsLoading}}get _columnBadgeSize(){return{xxs:`xs`,xs:`xs`,s:`xs`,m:`s`,l:`m`,xl:`l`,xxl:`xl`}[this.size]??`s`}_textFieldIcon(e,t){return e.formula?o({formulaId:`formula`},t):c({type:e.type??`hierarchy`,subtype:e.subtype},t)}_renderTextField(e){if(this.columnDisplay!==`text`){let t=this._columnBadgeSize,n=this._textFieldIcon(e,t);return h`<span
329
+ class="filter-item-column-badge filters-text-field"
330
+ part="filter-item-text-field"
331
+ title=${e.tooltip}
332
+ >
333
+ <luzmo-badge role="none" .size=${t} .treatment=${this.columnDisplay}>
334
+ ${n?h`<luzmo-icon slot="icon" .icon=${n} .size=${t}></luzmo-icon>`:g}${e.label}
335
+ </luzmo-badge>
336
+ </span>`}let t=this._textFieldIcon(e,`s`);return h`<span
337
+ class="filter-item-text-field filters-text-field"
338
+ part="filter-item-text-field"
339
+ title=${e.tooltip}
340
+ ><span class="filter-item-text-field-icon filters-text-field-icon" aria-hidden="true">${t?u(t):g}</span
341
+ ><span class="filter-item-text-field-label filters-text-field-label">${e.label}</span></span
342
+ >`}_renderTextValue(e){if(e.valueField)return this._renderTextField(e.valueField);if(!e.valueText)return g;let t=e.valuePending?h`<luzmo-progress-circle
343
+ indeterminate
344
+ .label=${n(`Loading item names`,{desc:`Accessible label while hierarchy item names load beside the item count`})}
345
+ .size=${this.size}
346
+ ></luzmo-progress-circle>`:g;return e.valueTooltip?h`<span
347
+ class="filter-item-text-value filter-item-text-value--has-tooltip filters-text-value filters-text-value--has-tooltip outline-value outline-value--has-tooltip"
348
+ tabindex="0"
349
+ aria-live="polite"
350
+ >${e.valueText}<luzmo-tooltip self-managed placement="top" .size=${this.size}
351
+ >${e.valueTooltip}</luzmo-tooltip
352
+ ></span
353
+ >`:h`<span class="filter-item-text-value filters-text-value outline-value" aria-live="polite">${e.valueText}${t}</span>`}_renderTextDisplay(){let e=Oe(this.filter,this._filterTextContext());if(!e)return h`
354
+ <span
355
+ class="filter-item-text"
356
+ part="filter-item-text"
357
+ ></span>
358
+ `;let t=this._renderTextField(e.field),i=h`<span class="filter-item-text-expression filters-text-expression outline-expression"
359
+ >${e.expression}</span
360
+ >`,a=e.valueField||e.valueText?this._renderTextValue(e):g;return h`<span class="filter-item-text" part="filter-item-text">${e.expression&&a!==g?w(n(r`${C[0]}\u2063 ${C[1]}\u2063 ${C[2]}`,{id:`filter-item-field-expression-value`,desc:`Field, expression, and value in a read-only filter sentence`}),[t,i,a]):e.expression?w(n(r`${C[0]}\u2063 ${C[1]}`,{id:`filter-item-field-expression`,desc:`Field and expression in a read-only filter sentence without a value`}),[t,i]):a===g?t:w(n(r`${C[0]}\u2063 ${C[1]}`,{id:`filter-item-field-value`,desc:`Field and value in a read-only filter sentence without an expression`}),[t,a])}</span>`}render(){if(this.display===`text`)return this._renderTextDisplay();let e=U(this.filter?.parameters?.[1]);return h`<div role="group" aria-label=${n(`Filter condition`,{desc:`Accessible label for filter item group`})}>
361
+ ${this.renderDataFieldPicker()} ${this.renderExpressionPicker()}
362
+ <div class="value-controls">
363
+ ${e?null:this.renderValuePicker()} ${this.renderParameterPicker()}
364
+ </div>
365
+ </div>`}};e([_({type:String,attribute:`api-url`,reflect:!0})],Z.prototype,`apiUrl`,void 0),e([_({type:String,attribute:`auth-key`,reflect:!0})],Z.prototype,`authKey`,void 0),e([_({type:String,attribute:`auth-token`,reflect:!0})],Z.prototype,`authToken`,void 0),e([_({type:Number,attribute:`cache-time`,reflect:!0})],Z.prototype,`cacheTime`,void 0),e([_({type:String,reflect:!0})],Z.prototype,`contentLanguage`,void 0),e([_({type:String,attribute:`time-zone`,reflect:!0})],Z.prototype,`timeZone`,void 0),e([_({type:Array,attribute:`dataset-ids`,reflect:!0})],Z.prototype,`datasetIds`,void 0),e([_({type:Object,reflect:!1})],Z.prototype,`filter`,void 0),e([_({type:String,reflect:!0})],Z.prototype,`display`,void 0),e([_({type:String,attribute:`column-display`,reflect:!0})],Z.prototype,`columnDisplay`,void 0),e([_({type:Boolean,reflect:!0})],Z.prototype,`quiet`,void 0),e([_({type:Boolean,reflect:!0})],Z.prototype,`readonly`,void 0),e([_({type:Boolean,reflect:!0})],Z.prototype,`disabled`,void 0),e([_({attribute:!1})],Z.prototype,`textContext`,void 0),e([_({type:Boolean,attribute:`allow-parameters`,reflect:!0})],Z.prototype,`allowParameters`,void 0),e([_({attribute:!1})],Z.prototype,`parameters`,void 0),e([v()],Z.prototype,`_type`,void 0),e([v()],Z.prototype,`_subType`,void 0),e([v()],Z.prototype,`_isFormula`,void 0),e([v()],Z.prototype,`_error`,void 0),e([v()],Z.prototype,`_loading`,void 0),e([v()],Z.prototype,`_datasetsDataFields`,void 0),e([v()],Z.prototype,`_hierarchyLabels`,void 0),e([v()],Z.prototype,`_hierarchyLabelsLoading`,void 0),Z=e([i()],Z),customElements.get(`luzmo-filter-item`)||customElements.define(`luzmo-filter-item`,Z);var Ht=`:host{font-family:var(--luzmo-filters-font-family,var(--luzmo-font-family));color:var(--luzmo-filters-font-color,var(--luzmo-font-color));max-width:100%;display:block;container-type:inline-size}.filter-group-container{max-width:100%;padding:calc(var(--luzmo-indicator-gap) + 2 * var(--luzmo-indicator-width));overflow-x:hidden}.filter-group{flex-direction:row;min-width:0;max-width:100%;display:flex}.filter-group.nested{margin-top:var(--luzmo-filters-nested-group-margin-top,var(--filters-nested-group-margin-top));margin-bottom:var(--luzmo-filters-nested-group-margin-bottom,var(--filters-nested-group-margin-bottom))}.group-content{flex-direction:column;flex:1;min-width:0;display:flex}.filters-list{gap:var(--luzmo-filters-filters-list-gap,var(--filters-filters-list-gap));flex-direction:column;min-width:0;max-width:100%;display:flex}.filter-item-wrapper{align-items:flex-start;min-width:0;max-width:100%;display:flex;position:relative}.filter-item-content{align-items:flex-start;gap:var(--luzmo-filters-filter-line-gap,var(--filters-filter-line-gap));flex-wrap:nowrap;flex:1;min-width:0;display:flex}.filter-item-content luzmo-filter-item{flex:1;min-width:0}.filter-item-content .delete-filter-button{flex-shrink:0;align-self:flex-end;margin-inline-start:auto}.condition-wrapper{flex:0 0 var(--luzmo-filters-condition-warpper-width,var(--filters-condition-warpper-width));justify-content:center;align-items:center;display:flex;position:relative}.condition-wrapper:before{content:"";left:50%;top:var(--luzmo-filters-vertical-line-top,var(--filters-vertical-line-top));bottom:var(--luzmo-filters-vertical-line-bottom,var(--filters-vertical-line-bottom));width:var(--luzmo-filters-vertical-line-width,var(--filters-vertical-line-width));background:var(--luzmo-filters-vertical-line-color,var(--luzmo-border-color));position:absolute}.condition-badge{min-width:auto;padding-inline:var(--luzmo-filters-condition-padding-horizontal,var(--filters-condition-padding-horizontal));font-weight:var(--luzmo-filters-condition-font-weight,var(--filters-condition-font-weight-emphasized));text-transform:uppercase;background:var(--luzmo-filters-condition-badge-background,var(--luzmo-primary));color:var(--luzmo-filters-condition-badge-color,var(--luzmo-primary-inverse-color));border-radius:var(--luzmo-filters-condition-badge-border-radius,var(--luzmo-border-radius));box-shadow:0 0 0 var(--luzmo-filters-condition-badge-halo,var(--filters-condition-badge-halo)) var(--luzmo-filters-condition-badge-background,var(--luzmo-background-color))}.condition-badge:hover{background:var(--luzmo-filters-condition-badge-background-hover,var(--luzmo-primary-hover))}.group-actions{margin-top:var(--luzmo-filters-group-actions-margin-top,var(--filters-group-actions-margin-top));gap:var(--luzmo-filters-group-actions-gap,var(--filters-group-actions-gap));flex-wrap:wrap;display:flex}.delete-group-button{margin-left:auto}.add-root-group-container{margin-top:var(--luzmo-filters-add-root-group-container-margin-top,var(--filters-add-root-group-container-margin-top));padding-left:0}.add-subgroup-button,.add-filter-button{--luzmo-action-button-text-to-visual:var(--luzmo-filters-group-actions-text-to-visual,var(--filters-group-actions-text-to-visual));--luzmo-action-button-content-color-default:var(--luzmo-filters-group-actions-color,var(--luzmo-primary-hover));--luzmo-action-button-content-color-hover:var(--luzmo-filters-group-actions-color-hover,var(--luzmo-primary-hover));--luzmo-action-button-content-color-down:var(--luzmo-filters-group-actions-color-down,var(--luzmo-primary-down));--luzmo-action-button-content-color-focus:var(--luzmo-filters-group-actions-color-focus,var(--luzmo-primary-focus))}.add-group-button{--luzmo-button-padding-label-to-icon:var(--luzmo-filters-add-group-button-text-to-visual,var(--filters-add-group-button-text-to-visual))}.dataset-ids-empty-message{color:var(--luzmo-filters-error-message-color,var(--luzmo-disabled-color));font-size:var(--luzmo-filters-error-message-font-size,var(--filters-font-size))}@container (width<=480px){.condition-badge{--luzmo-action-button-font-size:.6875rem;--luzmo-action-button-height:1.2rem;--luzmo-button-line-height:1.2rem;font-size:.6875rem;line-height:1.2rem;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)rotate(-90deg)}:host([dir=rtl]) .condition-badge{transform:translate(-50%,-50%)rotate(90deg)}}.filters-loading{min-height:var(--filters-progress-circle-size);align-items:center;display:inline-flex}.filters-loading luzmo-progress-circle{--luzmo-progress-circle-size:var(--filters-progress-circle-size)}.filters-text,.filters-outline{font-size:var(--luzmo-filters-text-font-size,var(--filters-text-font-size));line-height:1.5}.filters-outline{--filters-outline-sentence-padding-block:calc((var(--filters-outline-row-min-height) - 1lh) / 2)}luzmo-filter-item[display=text]{--luzmo-filter-item-column-badge-color:var(--luzmo-filters-column-badge-color);--luzmo-filter-item-column-badge-font-color:var(--luzmo-filters-column-badge-font-color);--luzmo-filter-item-text-font-size:var(--luzmo-filters-text-font-size,var(--filters-text-font-size));--luzmo-filter-item-text-expression-color:var(--luzmo-filters-expression-color,var(--filters-expression-color));--luzmo-filter-item-text-expression-font-weight:var(--luzmo-filters-expression-font-weight,var(--filters-expression-font-weight))}.filters-text luzmo-filter-item[display=text],.filters-text-group luzmo-filter-item[display=text]{--luzmo-filter-item-text-icon-gap:var(--luzmo-filters-text-icon-gap,var(--filters-text-icon-gap))}.outline-sentence>luzmo-filter-item[display=text]{--luzmo-filter-item-text-icon-gap:var(--luzmo-filters-text-part-gap,var(--filters-text-part-gap))}.filters-text{white-space:pre-wrap;word-break:break-word}.filters-text .filters-text-condition{margin-inline:0}.filters-text-condition,.filters-text-paren{vertical-align:middle}.filters-text-condition{color:var(--luzmo-filters-condition-color,var(--filters-condition-color));font-weight:var(--luzmo-filters-condition-font-weight,var(--filters-condition-font-weight))}.outline-group{gap:var(--luzmo-spacing-1);flex-direction:column;min-width:0;display:flex}.outline-children>.outline-group:not(:first-child){margin-top:calc(var(--luzmo-spacing-1) + var(--filters-outline-sentence-padding-block) + var(--filters-outline-join-spacing) - var(--luzmo-spacing-2))}.outline-condition{color:var(--luzmo-filters-condition-color,var(--filters-condition-color));font-size:var(--luzmo-filters-outline-condition-font-size,var(--filters-outline-condition-font-size));font-weight:var(--luzmo-filters-condition-font-weight,var(--filters-condition-font-weight-emphasized));letter-spacing:.04em}.outline-children{gap:var(--luzmo-spacing-2);min-width:0;flex-direction:column;margin-inline-start:var(--luzmo-filters-outline-children-margin-inline-start,var(--filters-outline-children-margin-inline-start));padding-inline-start:var(--luzmo-filters-outline-children-padding-inline-start,var(--filters-outline-children-padding-inline-start));display:flex;position:relative}.outline-children:not(.outline-children--single):before{content:"";inset-inline-start:0;inset-block:var(--luzmo-filters-outline-bracket-inset,var(--filters-outline-bracket-inset));width:var(--luzmo-spacing-2);border-inline-start:1px solid var(--luzmo-border-color);border-block-start:1px solid var(--luzmo-border-color);border-block-end:1px solid var(--luzmo-border-color);border-start-start-radius:var(--luzmo-border-radius);border-end-start-radius:var(--luzmo-border-radius);position:absolute}.outline-children--single{margin-inline-start:0;padding-inline-start:0}.outline-row{align-items:flex-start;column-gap:var(--luzmo-spacing-2);min-width:0;min-height:var(--filters-outline-row-min-height);flex-wrap:nowrap;display:flex}.outline-sentence{align-items:center;gap:var(--luzmo-filters-text-part-gap,var(--filters-text-part-gap));min-width:0;padding-block:var(--filters-outline-sentence-padding-block);flex-wrap:wrap;flex:auto;display:flex}.outline-delete{flex:none;align-self:flex-end;margin-inline-start:auto}:host{--filters-condition-warpper-width:56px;--filters-condition-padding-horizontal:var(--luzmo-spacing-2);--filters-condition-badge-halo:var(--luzmo-spacing-3);--filters-filters-list-gap:var(--luzmo-spacing-3);--filters-nested-group-margin-top:var(--luzmo-spacing-3);--filters-nested-group-margin-bottom:var(--luzmo-spacing-3);--filters-vertical-line-top:var(--luzmo-spacing-2);--filters-vertical-line-bottom:var(--luzmo-spacing-2);--filters-vertical-line-width:1px;--filters-group-actions-text-to-visual:var(--luzmo-spacing-2);--filters-add-group-button-text-to-visual:var(--luzmo-spacing-3);--filters-group-actions-gap:var(--luzmo-spacing-3);--filters-add-root-group-container-margin-top:var(--luzmo-spacing-4);--filters-filter-line-gap:var(--luzmo-spacing-3);--filters-group-actions-margin-top:var(--luzmo-spacing-3);--filters-error-message-font-size:var(--luzmo-font-size);--filters-text-font-size:var(--luzmo-font-size-m);--filters-outline-row-min-height:var(--luzmo-component-height);--filters-progress-circle-size:var(--luzmo-component-height);--filters-text-part-gap:var(--luzmo-spacing-2);--filters-text-icon-gap:var(--luzmo-spacing-1);--filters-outline-children-margin-inline-start:var(--luzmo-spacing-2);--filters-outline-children-padding-inline-start:var(--luzmo-spacing-3);--filters-outline-bracket-inset:var(--luzmo-spacing-2);--filters-outline-join-spacing:var(--luzmo-spacing-2);--filters-expression-color:var(--luzmo-filters-font-color,var(--luzmo-font-color));--filters-expression-font-weight:var(--luzmo-font-weight);--filters-condition-color:var(--luzmo-filters-font-color,var(--luzmo-font-color));--filters-condition-font-weight:var(--luzmo-font-weight);--filters-condition-font-weight-emphasized:var(--luzmo-font-weight-bold);--filters-outline-condition-font-size:var(--luzmo-font-size-s)}:host([size=s]){--filters-condition-warpper-width:48px;--filters-condition-padding-horizontal:var(--luzmo-spacing-2);--filters-condition-badge-halo:var(--luzmo-spacing-2);--filters-filters-list-gap:calc(var(--luzmo-spacing-2) + var(--luzmo-spacing-1));--filters-nested-group-margin-top:calc(var(--luzmo-spacing-2) + var(--luzmo-spacing-1));--filters-nested-group-margin-bottom:calc(var(--luzmo-spacing-2) + var(--luzmo-spacing-1));--filters-vertical-line-top:var(--luzmo-spacing-2);--filters-vertical-line-bottom:var(--luzmo-spacing-2);--filters-group-actions-text-to-visual:var(--luzmo-spacing-1);--filters-add-group-button-text-to-visual:var(--luzmo-spacing-2);--filters-group-actions-gap:var(--luzmo-spacing-2);--filters-add-root-group-container-margin-top:var(--luzmo-spacing-3);--filters-filter-line-gap:var(--luzmo-spacing-2);--filters-group-actions-margin-top:var(--luzmo-spacing-2);--filters-error-message-font-size:var(--luzmo-font-size-s);--filters-text-font-size:var(--luzmo-font-size-s);--filters-outline-row-min-height:var(--luzmo-component-height-s);--filters-progress-circle-size:var(--luzmo-component-height-s);--filters-text-part-gap:var(--luzmo-spacing-1);--filters-text-icon-gap:var(--luzmo-spacing-1);--filters-outline-children-margin-inline-start:var(--luzmo-spacing-1);--filters-outline-children-padding-inline-start:var(--luzmo-spacing-3);--filters-outline-bracket-inset:var(--luzmo-spacing-1);--filters-outline-join-spacing:var(--luzmo-spacing-1);--filters-outline-condition-font-size:var(--luzmo-font-size-xs)}:host([size=l]){--filters-condition-warpper-width:64px;--filters-condition-padding-horizontal:var(--luzmo-spacing-3);--filters-condition-badge-halo:var(--luzmo-spacing-4);--filters-filters-list-gap:var(--luzmo-spacing-4);--filters-nested-group-margin-top:var(--luzmo-spacing-4);--filters-nested-group-margin-bottom:var(--luzmo-spacing-4);--filters-vertical-line-top:var(--luzmo-spacing-3);--filters-vertical-line-bottom:var(--luzmo-spacing-3);--filters-group-actions-text-to-visual:var(--luzmo-spacing-2);--filters-add-group-button-text-to-visual:calc(var(--luzmo-spacing-3) + var(--luzmo-spacing-1));--filters-group-actions-gap:var(--luzmo-spacing-3);--filters-add-root-group-container-margin-top:calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-1));--filters-filter-line-gap:var(--luzmo-spacing-3);--filters-group-actions-margin-top:var(--luzmo-spacing-3);--filters-error-message-font-size:var(--luzmo-font-size-l);--filters-text-font-size:var(--luzmo-font-size-l);--filters-outline-row-min-height:var(--luzmo-component-height-l);--filters-progress-circle-size:var(--luzmo-component-height-l);--filters-text-part-gap:var(--luzmo-spacing-3);--filters-text-icon-gap:var(--luzmo-spacing-2);--filters-outline-children-margin-inline-start:var(--luzmo-spacing-3);--filters-outline-children-padding-inline-start:var(--luzmo-spacing-4);--filters-outline-bracket-inset:var(--luzmo-spacing-2);--filters-outline-join-spacing:var(--luzmo-spacing-3);--filters-outline-condition-font-size:var(--luzmo-font-size-m)}:host([size=xl]){--filters-condition-warpper-width:72px;--filters-condition-padding-horizontal:var(--luzmo-spacing-3);--filters-condition-badge-halo:var(--luzmo-spacing-4);--filters-filters-list-gap:calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-1));--filters-nested-group-margin-top:calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-1));--filters-nested-group-margin-bottom:calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-1));--filters-vertical-line-top:var(--luzmo-spacing-3);--filters-vertical-line-bottom:var(--luzmo-spacing-3);--filters-group-actions-text-to-visual:calc(var(--luzmo-spacing-3) + var(--luzmo-spacing-1));--filters-add-group-button-text-to-visual:var(--luzmo-spacing-4);--filters-group-actions-gap:var(--luzmo-spacing-4);--filters-add-root-group-container-margin-top:var(--luzmo-spacing-5);--filters-filter-line-gap:var(--luzmo-spacing-4);--filters-group-actions-margin-top:var(--luzmo-spacing-4);--filters-error-message-font-size:var(--luzmo-font-size-xl);--filters-text-font-size:var(--luzmo-font-size-xl);--filters-outline-row-min-height:var(--luzmo-component-height-xl);--filters-progress-circle-size:var(--luzmo-component-height-xl);--filters-text-part-gap:var(--luzmo-spacing-4);--filters-text-icon-gap:var(--luzmo-spacing-2);--filters-outline-children-margin-inline-start:var(--luzmo-spacing-4);--filters-outline-children-padding-inline-start:var(--luzmo-spacing-5);--filters-outline-bracket-inset:var(--luzmo-spacing-3);--filters-outline-join-spacing:var(--luzmo-spacing-3);--filters-outline-condition-font-size:var(--luzmo-font-size-l)}@container (width<=480px){.filter-group-container{--filters-condition-warpper-width:32px;--filters-condition-padding-horizontal:var(--luzmo-spacing-2);--filters-condition-badge-halo:var(--luzmo-spacing-2);--filters-filters-list-gap:var(--luzmo-spacing-5)}}`;function Ut(e){if(e instanceof N)return e;throw e}var Wt={and:()=>n(`AND`,{desc:`Logical AND condition for combining filters`}),or:()=>n(`OR`,{desc:`Logical OR condition for combining filters`})};function Q(e){return e===`and`?`or`:`and`}var $=class extends t(S(x,{validSizes:Object.values(b)})){constructor(...e){super(...e),this.apiUrl=`https://api.luzmo.com`,this.contentLanguage=`en`,this.filters=[],this.format=`canonical`,this.simple=!1,this.display=`rich`,this.columnDisplay=`text`,this.quiet=!1,this.readonly=!1,this.allowParameters=!1,this.parameters=[],this.debounce=300,this._internalFilterGroup=null,this._datasets=[],this._datasetsLoading=!1,this._hierarchyLabels=new Map,this._hierarchyLabelsLoading=!1,this._hasSyntheticRoot=!1,this._datasetRequest=0,this._hierarchyRequest=0,this._debounceTimeout=null,this._filterKeys=new WeakMap}static get styles(){return[y(Ht)]}_filterKey(e){let t=this._filterKeys.get(e);return t||(t={},this._filterKeys.set(e,t)),t}_preserveFilterKeys(e,t){this._isGroup(e)===this._isGroup(t)&&(this._filterKeys.set(t,this._filterKey(e)),this._isGroup(e)&&this._isGroup(t)&&t.filters.forEach((t,n)=>{let r=e.filters[n];r&&this._preserveFilterKeys(r,t)}))}_isCurrentGroup(e){return this._internalFilterGroup!==null&&(e===this._internalFilterGroup||this._findParentGroup(this._internalFilterGroup,e)!==null)}get _oneSizeSmaller(){return{xxs:`xxs`,xs:`xs`,s:`xs`,m:`s`,l:`m`,xl:`l`,xxl:`xl`}[this.size]||`s`}get _isDatasetIdsEmpty(){return!this.datasetIds||this.datasetIds.length===0}get _hasUnsupportedConditions(){let e=t=>t.condition===`or`||t.filters.some(t=>this._isGroup(t)&&e(t));return this.simple&&this._internalFilterGroup!==null&&e(this._internalFilterGroup)}connectedCallback(){super.connectedCallback(),this.hasUpdated&&this.display!==`rich`&&this._loadDatasetsForDisplay()}disconnectedCallback(){super.disconnectedCallback(),this._datasetRequest+=1,this._hierarchyRequest+=1,this._debounceTimeout&&=(clearTimeout(this._debounceTimeout),null)}willUpdate(e){if(super.willUpdate(e),e.has(`filters`))try{let e=Et(this.filters),t=this._internalFilterGroup;this._debounceTimeout&&=(clearTimeout(this._debounceTimeout),null),e.length===0?(this._internalFilterGroup=null,this._hasSyntheticRoot=!1):e.length===1?(this._internalFilterGroup=structuredClone(e[0]),this._hasSyntheticRoot=!1):(this._internalFilterGroup={condition:`and`,filters:structuredClone(e)},this._hasSyntheticRoot=!0),t&&this._internalFilterGroup&&this._preserveFilterKeys(t,this._internalFilterGroup)}catch(t){console.warn(`[${this.localName}] Keeping the current filters, the new value cannot be normalized:`,Ut(t)),this.filters=e.get(`filters`)??[]}this.display!==`rich`&&(e.has(`display`)||e.has(`datasetIds`)||e.has(`authKey`)||e.has(`authToken`)||e.has(`apiUrl`)||e.has(`cacheTime`))&&this._loadDatasetsForDisplay(),this.display!==`rich`&&(e.has(`filters`)||e.has(`display`)||e.has(`contentLanguage`))&&this._loadHierarchyLabelsForDisplay()}async _loadDatasetsForDisplay(){let e=++this._datasetRequest;if(!this.datasetIds||this.datasetIds.length===0){this._datasets=[],this._datasetsLoading=!1,this._loadHierarchyLabelsForDisplay();return}let{valid:t,invalid:n}=ee(this.datasetIds);if(n.length>0&&console.warn(`[${this.localName}] Invalid dataset IDs provided (not valid UUIDs): ${n.join(`, `)}. These will be skipped.`),t.length===0){this._datasets=[],this._datasetsLoading=!1,this._loadHierarchyLabelsForDisplay();return}this._datasetsLoading=!0,this._configureDataBroker();try{let n=await f.fetchDatasetsWithColumnsAndFormulas(t);if(!this.isConnected||e!==this._datasetRequest)return;this._datasets=n}catch(t){if(!this.isConnected||e!==this._datasetRequest)return;console.error(`[${this.localName}] Error fetching dataset columns & formulas:`,t),this._datasets=[]}finally{this.isConnected&&e===this._datasetRequest&&(this._datasetsLoading=!1,this._loadHierarchyLabelsForDisplay())}}_configureDataBroker(){let e={authKey:this.authKey||``,authToken:this.authToken||``};this.apiUrl&&(e.apiUrl=this.apiUrl),this.cacheTime&&(e.staleTime=this.cacheTime,e.gcTime=this.cacheTime*2),f.configure(e)}async _loadHierarchyLabelsForDisplay(){let e=++this._hierarchyRequest;if(this.display===`rich`||!this._internalFilterGroup){if(!this.isConnected||e!==this._hierarchyRequest)return;this._hierarchyLabels=new Map,this._hierarchyLabelsLoading=!1;return}let t=je(this._internalFilterGroup,this._filterTextContext());if(t.length===0){if(!this.isConnected||e!==this._hierarchyRequest)return;this._hierarchyLabels=new Map,this._hierarchyLabelsLoading=!1;return}this._hierarchyLabelsLoading=!0,this._configureDataBroker();try{let n=await Me(t,this.contentLanguage);if(!this.isConnected||e!==this._hierarchyRequest)return;this._hierarchyLabels=n}catch(t){if(!this.isConnected||e!==this._hierarchyRequest)return;console.error(`[${this.localName}] Error fetching hierarchy member names:`,t)}finally{this.isConnected&&e===this._hierarchyRequest&&(this._hierarchyLabelsLoading=!1)}}_filterTextContext(){return{datasets:this._datasets,contentLanguage:this.contentLanguage,timeZone:this.timeZone,hierarchyLabels:this._hierarchyLabels,hierarchyLabelsLoading:this._hierarchyLabelsLoading}}_generateEmptyGroup(){return{id:d(),condition:`and`,filters:[]}}_generateEmptyFilter(){return{expression:void 0,parameters:[],properties:{id:d()}}}_rootGroupsForExport(){if(!this._internalFilterGroup)return[];let e=this._internalFilterGroup.filters.length>0&&this._internalFilterGroup.filters.every(e=>this._isGroup(e));return this._hasSyntheticRoot&&e?structuredClone(this._internalFilterGroup.filters):[structuredClone(this._internalFilterGroup)]}_getFiltersForExport(){let e=this._rootGroupsForExport(),t=this.format===`clean`?`clean`:`canonical`;if(e.length===0)return{filters:[],format:t};if(t===`clean`)try{return{filters:e.flatMap(e=>St(e,{format:`clean`})),format:`clean`}}catch(e){console.warn(`[${this.localName}] Cannot emit clean filters, falling back to canonical output:`,Ut(e))}return{filters:e.flatMap(e=>St(e)),format:`canonical`}}_sendChangeEvent(){this._debounceTimeout&&clearTimeout(this._debounceTimeout);let e=()=>{this._debounceTimeout=null,!this._hasUnsupportedConditions&&this.dispatchEvent(new CustomEvent(`luzmo-filters-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:this._getFiltersForExport()}))};this.debounce>0?this._debounceTimeout=setTimeout(e,this.debounce):e()}_isGroup(e){return`condition`in e&&`filters`in e}_handleParameterCreated(e){let t=e.detail?.parameter;this.readonly||!t||this.parameters.some(({parameter:e})=>e===t.parameter)||(this.parameters=[...this.parameters,t])}_toggleCondition(e){this.readonly||this.simple||(e.condition=Q(e.condition),e===this._internalFilterGroup&&(this._hasSyntheticRoot=!1),this.requestUpdate(),this._sendChangeEvent())}_addFilter(e){if(this.readonly||this._isDatasetIdsEmpty||this._hasUnsupportedConditions)return;let t=e;t||=(this._internalFilterGroup||=this._generateEmptyGroup(),this._internalFilterGroup),t.filters.push(this._generateEmptyFilter()),this.requestUpdate(),this._sendChangeEvent()}_addSubGroup(e){if(this.readonly||this._isDatasetIdsEmpty||this.simple)return;let t=this._generateEmptyGroup();t.condition=Q(e.condition),t.filters.push(this._generateEmptyFilter()),e.filters.push(t),this.requestUpdate(),this._sendChangeEvent()}_removeFilter(e,t){if(this.readonly||!this._internalFilterGroup||!this._isCurrentGroup(e)||this._hasUnsupportedConditions)return;let n=e.filters.findIndex(e=>this._filterKey(e)===t);if(n!==-1){if(e.filters.splice(n,1),e!==this._internalFilterGroup&&e.filters.length===0){let t=this._findParentGroup(this._internalFilterGroup,e);if(t){let n=t.filters.indexOf(e);n!==-1&&t.filters.splice(n,1)}}this._collapseGroupsAfterDelete(),this.requestUpdate(),this._sendChangeEvent()}}_updateFilter(e,t,n){n.stopPropagation();let r=n.currentTarget;if(this.readonly||!r?.isConnected||this._hasUnsupportedConditions||!this._isCurrentGroup(e))return;let i=e.filters.findIndex(e=>this._filterKey(e)===t);i!==-1&&(this._isGroup(e.filters[i])||(this._filterKeys.set(n.detail.filter,t),e.filters[i]=n.detail.filter,this._sendChangeEvent()))}_addGroup(){if(this.readonly||this._isDatasetIdsEmpty||this.simple)return;this._internalFilterGroup||=this._generateEmptyGroup();let e=this._generateEmptyGroup();e.condition=Q(this._internalFilterGroup.condition),e.filters.push(this._internalFilterGroup);let t=this._generateEmptyGroup();t.condition=Q(e.condition),t.filters.push(this._generateEmptyFilter()),e.filters.push(t),this._internalFilterGroup=e,this._hasSyntheticRoot=!1,this.requestUpdate(),this._sendChangeEvent()}_renderFilterItem(e,t){return h`
366
+ <div class="filter-item-wrapper">
367
+ <div class="filter-item-content">
368
+ <luzmo-filter-item
369
+ .apiUrl=${this.apiUrl}
370
+ .authKey=${this.authKey}
371
+ .authToken=${this.authToken}
372
+ .cacheTime=${this.cacheTime}
373
+ .language=${this.language}
374
+ .contentLanguage=${this.contentLanguage}
375
+ .timeZone=${this.timeZone}
376
+ .datasetIds=${this.datasetIds}
377
+ .filter=${e}
378
+ .allowParameters=${this.allowParameters}
379
+ .parameters=${this.parameters}
380
+ .size=${this.size}
381
+ .quiet=${this.quiet}
382
+ .readonly=${this.readonly}
383
+ @luzmo-filter-changed=${this._updateFilter.bind(this,t,this._filterKey(e))}
384
+ @luzmo-parameter-created=${this._handleParameterCreated}
385
+ ></luzmo-filter-item>
386
+ <luzmo-action-button
387
+ class="delete-filter-button"
388
+ .size=${this.size}
389
+ quiet
390
+ aria-disabled=${this.readonly?`true`:g}
391
+ .label=${n(`Remove filter`,{desc:`Aria label for remove filter button`})}
392
+ @click=${this._removeFilter.bind(this,t,this._filterKey(e))}
393
+ >
394
+ <luzmo-icon slot="icon" .icon=${a} .size=${this.size}></luzmo-icon>
395
+ </luzmo-action-button>
396
+ </div>
397
+ </div>
398
+ `}_renderGroup(e,t=!1){let r=e.filters.length>0,i=e.filters.length>1,a=Wt[e.condition]?.()??e.condition;return h`
399
+ <div class="filter-group ${t&&!this.simple?`nested`:``}" role="group">
400
+ ${!this.simple&&(t||i)?h`
401
+ <div class="condition-wrapper">
402
+ ${i?h`
403
+ <luzmo-action-button
404
+ class="condition-badge"
405
+ .size=${this._oneSizeSmaller}
406
+ quiet
407
+ aria-disabled=${this.readonly?`true`:g}
408
+ aria-pressed=${e.condition===`and`?`true`:`false`}
409
+ .label=${n(`Toggle filter condition, currently `,{desc:`Aria label prefix for filter condition toggle`})+a}
410
+ @click=${this._toggleCondition.bind(this,e)}
411
+ >
412
+ ${a}
413
+ </luzmo-action-button>
414
+ `:g}
415
+ </div>
416
+ `:g}
417
+ <div class="group-content">
418
+ ${r?h`
419
+ <div class="filters-list">
420
+ ${re(e.filters,e=>this._filterKey(e),t=>h`
421
+ ${this._isGroup(t)?this._renderGroup(t,!0):this._renderFilterItem(t,e)}
422
+ `)}
423
+ </div>
424
+ `:``}
425
+
426
+ <div class="group-actions">
427
+ <luzmo-action-button
428
+ class="add-filter-button"
429
+ .size=${this.size}
430
+ quiet
431
+ aria-disabled=${this.readonly?`true`:g}
432
+ ?disabled=${this._isDatasetIdsEmpty}
433
+ @click=${this._addFilter.bind(this,e)}
434
+ >
435
+ <luzmo-icon slot="icon" .icon=${l} .size=${this._oneSizeSmaller}></luzmo-icon>
436
+ ${n(`Filter`,{desc:`Add filter button label`})}
437
+ </luzmo-action-button>
438
+
439
+ ${this.simple?g:h`<luzmo-action-button
440
+ class="add-subgroup-button"
441
+ .size=${this.size}
442
+ quiet
443
+ aria-disabled=${this.readonly?`true`:g}
444
+ ?disabled=${this._isDatasetIdsEmpty}
445
+ @click=${this._addSubGroup.bind(this,e)}
446
+ >
447
+ <luzmo-icon slot="icon" .icon=${l} .size=${this._oneSizeSmaller}></luzmo-icon>
448
+ ${n(`Subgroup`,{desc:`Add subgroup button label`})}
449
+ </luzmo-action-button>`}
450
+ </div>
451
+ </div>
452
+ </div>
453
+ `}_findParentGroup(e,t){for(let n of e.filters){if(n===t)return e;if(this._isGroup(n)){let e=this._findParentGroup(n,t);if(e)return e}}return null}_collapseIfNeeded(e){if(e.filters.length===1&&this._isGroup(e.filters[0])){let t=e.filters[0];e.condition=t.condition,e.filters=t.filters,e.id=t.id,e.clause=t.clause,e.origin=t.origin,e.datasetId=t.datasetId,e.vizId=t.vizId,e.itemId=t.itemId,e.isDrilldown=t.isDrilldown,e.type=t.type,e===this._internalFilterGroup&&(this._hasSyntheticRoot=!1)}}_collapseGroupsAfterDelete(){if(!this._internalFilterGroup)return;let e=t=>{for(let n of t.filters)this._isGroup(n)&&e(n);this._collapseIfNeeded(t)};e(this._internalFilterGroup)}_renderTextLeaf(e){return Oe(e,this._filterTextContext())?h`<luzmo-filter-item
454
+ class="filters-text-leaf"
455
+ display="text"
456
+ .columnDisplay=${this.columnDisplay}
457
+ .filter=${e}
458
+ .textContext=${this._filterTextContext()}
459
+ .language=${this.language}
460
+ .contentLanguage=${this.contentLanguage}
461
+ .timeZone=${this.timeZone}
462
+ .size=${this.size}
463
+ readonly
464
+ ></luzmo-filter-item>`:g}_renderTextGroup(e,t){let i=[];for(let t of e.filters){let e=this._isGroup(t)?this._renderTextGroup(t,!1):this._renderTextLeaf(t);e!==g&&i.push(e)}if(i.length===0)return g;if(i.length===1)return i[0];let a=h`<span class="filters-text-condition">${Wt[e.condition]()}</span>`,o=e.condition===`or`?n(r`${C[0]}\u2063 ${C[1]}\u2063 ${C[2]}`,{id:`filters-sentence-or`,desc:`Left filter sentence, logical OR condition, and right filter sentence`}):n(r`${C[0]}\u2063 ${C[1]}\u2063 ${C[2]}`,{id:`filters-sentence-and`,desc:`Left filter sentence, logical AND condition, and right filter sentence`}),s=i.slice(1).reduce((e,t)=>w(o,[h`${e}`,a,t]),[i[0]]);return t?h`${s}`:h`<span class="filters-text-group"
465
+ >${w(n(r`(${C[0]})`,{id:`filters-sentence-parentheses`,desc:`Nested filter sentence wrapped in parentheses`}),[h`${s}`]).map(e=>typeof e==`string`?h`<span class="filters-text-paren">${e}</span>`:e)}</span
466
+ >`}_renderDatasetLoading(){return h`<div class="filters-loading" role="status">
467
+ <luzmo-progress-circle indeterminate .label=${n(`Loading filters`,{desc:`Accessible label while filter column names are loading`})} .size=${this.size}></luzmo-progress-circle>
468
+ </div>`}_renderTextDisplay(){return h`<span class="filters-text" part="filters-text"
469
+ >${this._internalFilterGroup?this._renderTextGroup(this._internalFilterGroup,!0):g}</span
470
+ >`}_deleteOutlineFilter(e,t){this.readonly||this.display!==`outline`||this._removeFilter(e,t)}_renderOutlineRow(e,t){let r=this._renderTextLeaf(e);if(r===g)return g;let i=n(`Remove filter`,{desc:`Aria label for remove filter button`});return h`<div class="outline-row" part="filters-outline-row">
471
+ <span class="outline-sentence">${r}</span>
472
+ ${this.readonly?g:h`<luzmo-action-button
473
+ class="delete-filter-button outline-delete"
474
+ .size=${this.size}
475
+ quiet
476
+ .label=${i}
477
+ @click=${()=>this._deleteOutlineFilter(t,this._filterKey(e))}
478
+ >
479
+ <luzmo-icon slot="icon" .icon=${a} .size=${this.size}></luzmo-icon>
480
+ </luzmo-action-button>`}
481
+ </div>`}_renderOutlineGroup(e,t=!0){let n=e.filters.some(e=>this._isGroup(e)),r=e.filters.length>1&&!(t&&!n&&e.condition===`and`),i=Wt[e.condition]?.()??e.condition;return h`<div class="outline-group" role=${r?`group`:g} aria-label=${r?i:g}>
482
+ ${r?h`<div class="outline-condition">${i}</div>`:g}
483
+ <div class=${r?`outline-children`:`outline-children outline-children--single`}>
484
+ ${re(e.filters,e=>this._filterKey(e),t=>this._isGroup(t)?this._renderOutlineGroup(t,!1):this._renderOutlineRow(t,e))}
485
+ </div>
486
+ </div>`}_renderOutlineDisplay(){return h`<div class="filters-outline" part="filters-outline">
487
+ ${this._internalFilterGroup?this._renderOutlineGroup(this._internalFilterGroup):g}
488
+ </div>`}render(){if(this._hasUnsupportedConditions&&this.display!==`text`)return h`<div class="filter-group-container" role="status">
489
+ ${n(`Filters containing OR cannot be edited in AND-only mode.`,{desc:`Explains why existing OR filters are not editable in the simplified filter editor`})}
490
+ </div>`;if(this.display===`text`||this.display===`outline`)return this._datasetsLoading&&this._datasets.length===0?this._renderDatasetLoading():this.display===`text`?this._renderTextDisplay():this._renderOutlineDisplay();if(this._isDatasetIdsEmpty)return h`
491
+ <div class="filter-group-container">
492
+ <div class="dataset-ids-empty-message" role="status">
493
+ ${n(`Cannot retrieve dataset data fields`,{desc:`Error message when datasetIds is empty`})}
494
+ </div>
495
+ </div>
496
+ `;if(!this._internalFilterGroup||this._internalFilterGroup.filters.length===0)return h`
497
+ <div class="filter-group-container">
498
+ <luzmo-button
499
+ class="add-filter-button"
500
+ .size=${this.size}
501
+ treatment="outline"
502
+ ?quiet=${this.quiet}
503
+ aria-disabled=${this.readonly?`true`:g}
504
+ ?disabled=${this._isDatasetIdsEmpty}
505
+ @click=${()=>this._addFilter()}
506
+ >
507
+ <luzmo-icon slot="icon" .icon=${l} .size=${this._oneSizeSmaller}></luzmo-icon>
508
+ ${n(`Add filter`,{desc:`Add filter button label`})}
509
+ </luzmo-button>
510
+ </div>
511
+ `;let e=this._internalFilterGroup.filters.length>1;return h`
512
+ <div class="filter-group-container">
513
+ ${this._renderGroup(this._internalFilterGroup)}
514
+
515
+ ${e&&!this.simple?h`
516
+ <div class="add-root-group-container">
517
+ <luzmo-button
518
+ class="add-group-button"
519
+ .size=${this.size}
520
+ treatment="outline"
521
+ ?quiet=${this.quiet}
522
+ aria-disabled=${this.readonly?`true`:g}
523
+ ?disabled=${this._isDatasetIdsEmpty}
524
+ @click=${this._addGroup}
525
+ >
526
+ <luzmo-icon slot="icon" .icon=${l} .size=${this._oneSizeSmaller}></luzmo-icon>
527
+ ${n(`Group`,{desc:`Add group button label`})}
528
+ </luzmo-button>
529
+ </div>
530
+ `:``}
531
+ </div>
532
+ `}};e([_({type:String,attribute:`api-url`,reflect:!0})],$.prototype,`apiUrl`,void 0),e([_({type:String,attribute:`auth-key`,reflect:!0})],$.prototype,`authKey`,void 0),e([_({type:String,attribute:`auth-token`,reflect:!0})],$.prototype,`authToken`,void 0),e([_({type:Number,attribute:`cache-time`,reflect:!0})],$.prototype,`cacheTime`,void 0),e([_({type:String,attribute:`content-language`,reflect:!0})],$.prototype,`contentLanguage`,void 0),e([_({type:String,attribute:`time-zone`,reflect:!0})],$.prototype,`timeZone`,void 0),e([_({type:Array,attribute:`dataset-ids`,reflect:!0})],$.prototype,`datasetIds`,void 0),e([_({type:Array,reflect:!1})],$.prototype,`filters`,void 0),e([_({type:String,reflect:!0})],$.prototype,`format`,void 0),e([_({type:Boolean,reflect:!0})],$.prototype,`simple`,void 0),e([_({type:String,reflect:!0})],$.prototype,`display`,void 0),e([_({type:String,attribute:`column-display`,reflect:!0})],$.prototype,`columnDisplay`,void 0),e([_({type:Boolean,reflect:!0})],$.prototype,`quiet`,void 0),e([_({type:Boolean,reflect:!0})],$.prototype,`readonly`,void 0),e([_({type:Boolean,attribute:`allow-parameters`,reflect:!0})],$.prototype,`allowParameters`,void 0),e([_({attribute:!1})],$.prototype,`parameters`,void 0),e([_({type:Number,reflect:!0})],$.prototype,`debounce`,void 0),e([v()],$.prototype,`_internalFilterGroup`,void 0),e([v()],$.prototype,`_datasets`,void 0),e([v()],$.prototype,`_datasetsLoading`,void 0),e([v()],$.prototype,`_hierarchyLabels`,void 0),e([v()],$.prototype,`_hierarchyLabelsLoading`,void 0),$=e([i()],$),customElements.get(`luzmo-filters`)||customElements.define(`luzmo-filters`,$);export{N as FilterUnrepresentableError,$ as LuzmoFilters,Ne as MAX_FILTER_NESTING_DEPTH,We as detectFiltersFormat,Et as reverseTransformFilters,B as toLogicalCondition,St as transformFilters};