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

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 (260) hide show
  1. package/angular/README.md +1 -1
  2. package/angular/components/viz-item-menu.component.ts +25 -0
  3. package/angular/esm/components/viz-item-menu.component.d.ts +13 -0
  4. package/angular/esm/components/viz-item-menu.component.js +49 -0
  5. package/angular/esm/index.d.ts +3 -3
  6. package/angular/esm/index.js +3 -3
  7. package/angular/esm/types.d.ts +2 -2
  8. package/angular/index.ts +3 -3
  9. package/angular/types.ts +2 -2
  10. package/components/ai-chat-message-assistant/index.cjs +1 -1
  11. package/components/ai-chat-message-assistant/index.js +0 -1
  12. package/components/ai-chat-messages-container/index.cjs +1 -1
  13. package/components/ai-chat-messages-container/index.js +2 -2
  14. package/components/ai-interaction-textarea/index.cjs +1 -1
  15. package/components/ai-interaction-textarea/index.js +1 -2
  16. package/components/area-chart-options.config-Bl8bhhOo.cjs +20 -0
  17. package/components/{area-chart-options.config-_J0sG4NF.js → area-chart-options.config-u8itidsi.js} +14 -26
  18. package/components/bar-chart-options.config-CePAqM83.cjs +20 -0
  19. package/components/{bar-chart-options.config-D1mb5TDl.js → bar-chart-options.config-DIirbAJ0.js} +21 -35
  20. package/components/box-plot-options.config-BVNrV2eD.cjs +20 -0
  21. package/components/{box-plot-options.config-xu_i6ms7.js → box-plot-options.config-BWROiguA.js} +52 -88
  22. package/components/{bubble-chart-options.config-BacgXkJ_.js → bubble-chart-options.config-4QD8VPhU.js} +9 -18
  23. package/components/bubble-chart-options.config-BDgOe3GQ.cjs +20 -0
  24. package/components/{bullet-chart-options.config-CDPpX1yc.js → bullet-chart-options.config-3bH7uekx.js} +1 -1
  25. package/components/{bullet-chart-options.config-DfS4Bwds.cjs → bullet-chart-options.config-tWb6Fio-.cjs} +1 -1
  26. package/components/calculate-data-item-icon-DMDhKq_m.js +147 -0
  27. package/components/calculate-data-item-icon-DtVGbet3.cjs +20 -0
  28. package/components/{choropleth-map-options.config-B_W9-rhe.js → choropleth-map-options.config-CMxx3ORp.js} +63 -84
  29. package/components/choropleth-map-options.config-CWJACFd0.cjs +20 -0
  30. package/components/circular-gauge-options.config-BMxgq3zH.cjs +20 -0
  31. package/components/{circular-gauge-options.config-DAIjz4Rl.js → circular-gauge-options.config-DhIKn44k.js} +23 -36
  32. package/components/{color-DuJ4-73S.js → color-B7m0j8lX.js} +941 -950
  33. package/components/color-Czp4Im5q.cjs +20 -0
  34. package/components/{color-range-utils-Bvo9sm5A.js → color-range-utils-BSfqtB3A.js} +31 -32
  35. package/components/color-range-utils-DYYR-iwx.cjs +20 -0
  36. package/components/column-chart-options.config-BV9R3ssH.cjs +20 -0
  37. package/components/{column-chart-options.config-B5SjBVdy.js → column-chart-options.config-D5-yR7iq.js} +27 -37
  38. package/components/conditional-number-options.config-Co099Qfm.cjs +20 -0
  39. package/components/{conditional-number-options.config-BCEpSK9J.js → conditional-number-options.config-DPYsdML5.js} +24 -40
  40. package/components/dataset-icon/index.cjs +1 -1
  41. package/components/dataset-icon/index.js +1 -2
  42. package/components/dataset-selector-list/index.cjs +1 -1
  43. package/components/dataset-selector-list/index.js +32 -35
  44. package/components/dataset-selector-row/index.cjs +9 -9
  45. package/components/dataset-selector-row/index.js +50 -52
  46. package/components/{date-comparison-filter-options.config-JA_yYpJa.js → date-comparison-filter-options.config-CSwGyuBg.js} +3 -6
  47. package/components/{date-comparison-filter-options.config-DAVncmi0.cjs → date-comparison-filter-options.config-QaoWaFUn.cjs} +1 -1
  48. package/components/{date-filter-options.config-DBRxlTWy.js → date-filter-options.config-BTVyHRkp.js} +3 -6
  49. package/components/{date-filter-options.config-CWPMtA18.cjs → date-filter-options.config-n-zhWaYa.cjs} +1 -1
  50. package/components/display-settings/index.cjs +1 -1
  51. package/components/display-settings/index.js +1 -1
  52. package/components/display-settings-binning/index.cjs +5 -5
  53. package/components/display-settings-binning/index.js +29 -30
  54. package/components/display-settings-datetime/index.cjs +29 -29
  55. package/components/display-settings-datetime/index.js +112 -120
  56. package/components/display-settings-grand-totals/index.cjs +4 -4
  57. package/components/display-settings-grand-totals/index.js +23 -24
  58. package/components/display-settings-numeric/display-settings-numeric.d.ts +1 -2
  59. package/components/display-settings-numeric/index.cjs +49 -48
  60. package/components/display-settings-numeric/index.js +193 -218
  61. package/components/display-settings-period-over-period/index.cjs +16 -16
  62. package/components/display-settings-period-over-period/index.js +91 -97
  63. package/components/{donut-chart-options.config-BulUEiaH.js → donut-chart-options.config-3ZqX8Cbb.js} +21 -37
  64. package/components/donut-chart-options.config-BQyPgnC9.cjs +20 -0
  65. package/components/draggable-data-item/index.cjs +5 -5
  66. package/components/draggable-data-item/index.js +45 -46
  67. package/components/draggable-data-item-level/index.cjs +11 -11
  68. package/components/draggable-data-item-level/index.js +70 -73
  69. package/components/{dropdown-filter-options.config-D9dvPypF.js → dropdown-filter-options.config-CGJTtgAX.js} +7 -10
  70. package/components/{dropdown-filter-options.config-DS-MORmq.cjs → dropdown-filter-options.config-DJvfCTk7.cjs} +1 -1
  71. package/components/droppable-slot/index.cjs +16 -16
  72. package/components/droppable-slot/index.js +208 -223
  73. package/components/edit-item/index.cjs +9 -9
  74. package/components/edit-item/index.js +116 -119
  75. package/components/edit-option/index.cjs +1 -1
  76. package/components/edit-option/index.js +1 -1
  77. package/components/edit-option-action-button-group/index.cjs +8 -8
  78. package/components/edit-option-action-button-group/index.js +52 -53
  79. package/components/{edit-option-base-DIc7iC-b.js → edit-option-base-Bh29-Cak.js} +1 -1
  80. package/components/{edit-option-base-VhTih9T1.cjs → edit-option-base-tFr8Qg2B.cjs} +1 -1
  81. package/components/edit-option-color-palette-picker/index.cjs +1 -1
  82. package/components/edit-option-color-palette-picker/index.js +1 -1
  83. package/components/edit-option-color-picker/index.cjs +1 -1
  84. package/components/edit-option-color-picker/index.js +1 -1
  85. package/components/edit-option-color-range/index.cjs +19 -19
  86. package/components/edit-option-color-range/index.js +106 -117
  87. package/components/edit-option-multi-language-field/index.cjs +3 -3
  88. package/components/edit-option-multi-language-field/index.js +26 -27
  89. package/components/edit-option-number-field/index.cjs +1 -1
  90. package/components/edit-option-number-field/index.js +1 -1
  91. package/components/edit-option-picker/index.cjs +5 -5
  92. package/components/edit-option-picker/index.js +7 -7
  93. package/components/edit-option-position-picker/index.cjs +4 -4
  94. package/components/edit-option-position-picker/index.js +21 -25
  95. package/components/edit-option-positions-number-field/index.cjs +9 -9
  96. package/components/edit-option-positions-number-field/index.js +76 -81
  97. package/components/edit-option-radio-button-group/index.cjs +6 -6
  98. package/components/edit-option-radio-button-group/index.js +21 -22
  99. package/components/edit-option-slider/index.cjs +1 -1
  100. package/components/edit-option-slider/index.js +1 -1
  101. package/components/edit-option-switch/index.cjs +1 -1
  102. package/components/edit-option-switch/index.js +1 -1
  103. package/components/edit-option-text-field/index.cjs +2 -2
  104. package/components/edit-option-text-field/index.js +22 -23
  105. package/components/en-D3ihEGXg.js +1483 -0
  106. package/components/en-DZcn_iz_.cjs +20 -0
  107. package/components/{en-GB-DG6uS3sM.cjs → en-GB-TqvgIw9B.cjs} +1 -1
  108. package/components/{en-GB-CEHEs8F2.js → en-GB-ialeqj_z.js} +1 -1
  109. package/components/{evolution-number-options.config-DzkfeoIN.js → evolution-number-options.config-BIPO_4n3.js} +11 -14
  110. package/components/{evolution-number-options.config-BgIZY4gQ.cjs → evolution-number-options.config-Bc9eKYnn.cjs} +1 -1
  111. package/components/{extrapolate-color-0j_AeYkz.cjs → extrapolate-color-C0n1UDs-.cjs} +1 -1
  112. package/components/{extrapolate-color-CC9CURf6.js → extrapolate-color-v1PimdQr.js} +1 -1
  113. package/components/filter-data-item-picker/index.cjs +7 -7
  114. package/components/filter-data-item-picker/index.js +85 -86
  115. package/components/filter-expression-picker/index.cjs +1 -1
  116. package/components/filter-expression-picker/index.js +1 -1
  117. package/components/filter-item/index.cjs +6 -6
  118. package/components/filter-item/index.js +109 -119
  119. package/components/filter-value-picker/index.cjs +2 -2
  120. package/components/filter-value-picker/index.js +34 -36
  121. package/components/filter-value-picker-datetime/index.cjs +8 -8
  122. package/components/filter-value-picker-datetime/index.js +56 -71
  123. package/components/filter-value-picker-hierarchy/index.cjs +12 -12
  124. package/components/filter-value-picker-hierarchy/index.js +113 -124
  125. package/components/filter-value-picker-numeric/index.cjs +8 -8
  126. package/components/filter-value-picker-numeric/index.js +101 -110
  127. package/components/{focusable-DCIFkpiW.js → focusable-BS2pbY7w.js} +24 -26
  128. package/components/focusable-QLh-LlNt.cjs +20 -0
  129. package/components/{funnel-chart-options.config-C_VjTOvD.js → funnel-chart-options.config-CrJy2U7_.js} +5 -20
  130. package/components/funnel-chart-options.config-DrP4AFgk.cjs +20 -0
  131. package/components/{get-css-variable-YlLiVgo8.js → get-css-variable-Bb7TxJdX.js} +37 -37
  132. package/components/get-css-variable-Pzks_rOx.cjs +24 -0
  133. package/components/grid/index.cjs +43 -49
  134. package/components/grid/index.js +2610 -1878
  135. package/components/heat-map-options.config-CIHnPdYE.cjs +20 -0
  136. package/components/{heat-map-options.config-BnLWe8jS.js → heat-map-options.config-CmL87j1j.js} +35 -41
  137. package/components/{heat-table-options.config-CUsDdgUr.js → heat-table-options.config-BrCYAgYD.js} +60 -88
  138. package/components/heat-table-options.config-DTlZRc_i.cjs +20 -0
  139. package/components/helpers-9I0oLoUB.cjs +20 -0
  140. package/components/helpers-bR8Ibjqh.js +79 -0
  141. package/components/{hexbin-map-options.config-F-7uCqxb.js → hexbin-map-options.config-BguV1w8q.js} +20 -38
  142. package/components/hexbin-map-options.config-CKnn3VAB.cjs +20 -0
  143. package/components/{index-BPNsFiyq.cjs → index-BNAmjOkm.cjs} +4 -4
  144. package/components/index-BekTY3Em.cjs +121 -0
  145. package/components/index-CFL6gmIu.cjs +20 -0
  146. package/components/{index-Do7O9azB.js → index-CqKpf0B8.js} +112 -123
  147. package/components/index-DNPULp4A.js +1755 -0
  148. package/components/{index-D0GBF6tg.js → index-DdyZ2g5L.js} +94 -104
  149. package/components/index-DvkzMbLt.cjs +249 -0
  150. package/components/{index-CdIUfo-L.js → index-haa7WNrl.js} +453 -481
  151. package/components/index.cjs +1 -1
  152. package/components/index.js +13 -13
  153. package/components/item-options-configs.cjs +1 -1
  154. package/components/item-options-configs.js +37 -37
  155. package/components/{line-chart-options.config-DB3IsXXr.js → line-chart-options.config-BhirTGqD.js} +13 -28
  156. package/components/line-chart-options.config-Cqwou5u6.cjs +20 -0
  157. package/components/{localize-r7ALOUy_.cjs → localize-C4zNlrwK.cjs} +1 -1
  158. package/components/{localize-BX7q0S0M.js → localize-CcDpq940.js} +10 -10
  159. package/components/{marker-map-options.config-DPJ955tt.js → marker-map-options.config-Bx17jmiq.js} +1 -1
  160. package/components/{marker-map-options.config-_FYZzRwA.cjs → marker-map-options.config-CvhCylSC.cjs} +1 -1
  161. package/components/{pivot-table-options.config-DNK_AIG7.js → pivot-table-options.config-CFc7y0IT.js} +15 -24
  162. package/components/pivot-table-options.config-uZDAertf.cjs +20 -0
  163. package/components/{pyramid-chart-options.config-CcVMatYx.js → pyramid-chart-options.config-2Waxb11l.js} +29 -43
  164. package/components/pyramid-chart-options.config-DoGfEvzU.cjs +20 -0
  165. package/components/{radar-chart-options.config-CUZn_3Fd.js → radar-chart-options.config-CPN5fOl8.js} +11 -23
  166. package/components/radar-chart-options.config-CtNUMN1l.cjs +20 -0
  167. package/components/{regular-table-options.config-BoLZsBry.js → regular-table-options.config-CFKCJQK1.js} +17 -23
  168. package/components/{regular-table-options.config-DTx3RTnS.cjs → regular-table-options.config-YRuoijIk.cjs} +1 -1
  169. package/components/route-map-options.config-CVTk5RVL.cjs +20 -0
  170. package/components/{route-map-options.config-CN86T7c0.js → route-map-options.config-CyolTJfK.js} +87 -109
  171. package/components/{sankey-diagram-options.config-RFB83YLZ.cjs → sankey-diagram-options.config-D7OSvSqm.cjs} +1 -1
  172. package/components/{sankey-diagram-options.config-tVLKy_Zn.js → sankey-diagram-options.config-Ldjk84ro.js} +7 -10
  173. package/components/scatter-plot-options.config-5gN7pMTm.cjs +20 -0
  174. package/components/{scatter-plot-options.config-Corlzno1.js → scatter-plot-options.config-CfxEfkQ1.js} +56 -86
  175. package/components/{search-filter-options.config-BE3JhR-F.js → search-filter-options.config-C0syQmP4.js} +3 -6
  176. package/components/{search-filter-options.config-BCaDlYqZ.cjs → search-filter-options.config-Oqco9BKj.cjs} +1 -1
  177. package/components/{set-locale-Dp3N_gXN.js → set-locale-hKTMz37h.js} +1 -8
  178. package/components/slicer-filter-options.config-CrusP6a0.cjs +20 -0
  179. package/components/{slicer-filter-options.config-3JZZcw5C.js → slicer-filter-options.config-DmOe3440.js} +9 -18
  180. package/components/{slider-filter-options.config-DH4SS8wH.js → slider-filter-options.config-B1M8RcDs.js} +1 -1
  181. package/components/{slider-filter-options.config-_8Z2zKmU.cjs → slider-filter-options.config-k45I-t6G.cjs} +1 -1
  182. package/components/slot-contents-picker/index.cjs +33 -33
  183. package/components/slot-contents-picker/index.js +194 -205
  184. package/components/slot-menu/index.cjs +12 -12
  185. package/components/slot-menu/index.js +171 -184
  186. package/components/slot-menu-list/index.cjs +3 -3
  187. package/components/slot-menu-list/index.js +97 -103
  188. package/components/speedometer-chart-options.config-B4ceg_qI.cjs +20 -0
  189. package/components/{speedometer-chart-options.config-SL581yOa.js → speedometer-chart-options.config-CzOmuEF8.js} +31 -53
  190. package/components/spike-map-options.config-BkkDqb4g.cjs +20 -0
  191. package/components/{spike-map-options.config-C5KewecZ.js → spike-map-options.config-Cbt1YUw6.js} +91 -122
  192. package/components/{sunburst-chart-options.config-AbNjWS6t.cjs → sunburst-chart-options.config-Yrxc2i57.cjs} +1 -1
  193. package/components/{sunburst-chart-options.config-CNauGQJv.js → sunburst-chart-options.config-_dyLQxPJ.js} +9 -20
  194. package/components/{symbol-map-options.config-DdDA4aa7.js → symbol-map-options.config-BORL1NSU.js} +11 -20
  195. package/components/symbol-map-options.config-NpBKm64d.cjs +20 -0
  196. package/components/{treemap-chart-options.config-D5AJaF_u.js → treemap-chart-options.config-B9i9qIm_.js} +20 -37
  197. package/components/treemap-chart-options.config-x4J54WSw.cjs +20 -0
  198. package/components/utils.cjs +1 -1
  199. package/components/utils.js +94 -97
  200. package/components/{video-options.config-CGsDTwHc.cjs → video-options.config-B0asgYt8.cjs} +1 -1
  201. package/components/{video-options.config-Dk36zJ1B.js → video-options.config-UX-9MDfS.js} +7 -10
  202. package/components/viz-item-menu/index.cjs +51 -0
  203. package/components/viz-item-menu/index.d.ts +8 -0
  204. package/components/viz-item-menu/index.js +209 -0
  205. package/components/viz-item-menu/viz-item-menu.d.ts +77 -0
  206. package/components/{wordcloud-chart-options.config-vGfCW8kE.cjs → wordcloud-chart-options.config-BKtJT8Va.cjs} +1 -1
  207. package/components/{wordcloud-chart-options.config-w2NUIWVA.js → wordcloud-chart-options.config-BoB_KuhA.js} +4 -7
  208. package/custom-elements.json +43 -23
  209. package/index.d.ts +1 -1
  210. package/package.json +7 -7
  211. package/types.d.ts +2 -2
  212. package/angular/components/widget-menu.component.ts +0 -25
  213. package/angular/esm/components/widget-menu.component.d.ts +0 -13
  214. package/angular/esm/components/widget-menu.component.js +0 -49
  215. package/components/area-chart-options.config-C7sMAHco.cjs +0 -20
  216. package/components/bar-chart-options.config-DcxEkOT5.cjs +0 -20
  217. package/components/box-plot-options.config-SrrbDEYW.cjs +0 -20
  218. package/components/bubble-chart-options.config-Ihn6eVQI.cjs +0 -20
  219. package/components/calculate-data-item-icon-CEa82-5u.cjs +0 -20
  220. package/components/calculate-data-item-icon-DjlZwMdO.js +0 -147
  221. package/components/choropleth-map-options.config-ZW8yoZH2.cjs +0 -20
  222. package/components/circular-gauge-options.config-msZ4mfpN.cjs +0 -20
  223. package/components/color-B6LaL8qz.cjs +0 -20
  224. package/components/color-range-utils-C5yXW7ZC.cjs +0 -20
  225. package/components/column-chart-options.config-BjDvA7i9.cjs +0 -20
  226. package/components/conditional-number-options.config-DgzUo0xi.cjs +0 -20
  227. package/components/donut-chart-options.config-tNpqBZfR.cjs +0 -20
  228. package/components/en-BKBhKBXY.cjs +0 -20
  229. package/components/en-BOTjhwEc.js +0 -1488
  230. package/components/focusable-B3E_hQmm.cjs +0 -20
  231. package/components/funnel-chart-options.config-D7H7gFcx.cjs +0 -20
  232. package/components/get-css-variable-BEYG097C.js +0 -1446
  233. package/components/get-css-variable-BZxY4IOa.cjs +0 -35
  234. package/components/get-css-variable-DLiZYZEi.cjs +0 -24
  235. package/components/heat-map-options.config-DVH-Bb5-.cjs +0 -20
  236. package/components/heat-table-options.config-B12JEYnp.cjs +0 -20
  237. package/components/helpers-DXQwEH1P.cjs +0 -20
  238. package/components/helpers-v1bPALRP.js +0 -91
  239. package/components/hexbin-map-options.config-DZERRhM8.cjs +0 -20
  240. package/components/index-CDi4fe3N.js +0 -1716
  241. package/components/index-CQ9ck-BO.cjs +0 -249
  242. package/components/index-CXn67vdn.cjs +0 -121
  243. package/components/index-Cz9vSXy6.cjs +0 -20
  244. package/components/index-Dn0j_pcR.cjs +0 -20
  245. package/components/index-E239Dotg.js +0 -1735
  246. package/components/line-chart-options.config-DSugoe0t.cjs +0 -20
  247. package/components/pivot-table-options.config-BiJXKSFR.cjs +0 -20
  248. package/components/pyramid-chart-options.config-C4zbFS26.cjs +0 -20
  249. package/components/radar-chart-options.config-EqQu6PTh.cjs +0 -20
  250. package/components/route-map-options.config-D7NJePTu.cjs +0 -20
  251. package/components/scatter-plot-options.config-CFfGJXsV.cjs +0 -20
  252. package/components/slicer-filter-options.config-DNI-XevE.cjs +0 -20
  253. package/components/speedometer-chart-options.config-BX9LTQBH.cjs +0 -20
  254. package/components/spike-map-options.config-DoBFXPmN.cjs +0 -20
  255. package/components/symbol-map-options.config-m-lwLTtu.cjs +0 -20
  256. package/components/treemap-chart-options.config-C0Q9aQ1Z.cjs +0 -20
  257. package/components/widget-menu/index.cjs +0 -51
  258. package/components/widget-menu/index.d.ts +0 -8
  259. package/components/widget-menu/index.js +0 -211
  260. package/components/widget-menu/widget-menu.d.ts +0 -77
@@ -17,21 +17,21 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@lit/localize");require("@luzmo/lucero/action-button");require("@luzmo/lucero/action-group");require("@luzmo/lucero/field-label");require("@luzmo/lucero/menu");require("@luzmo/lucero/number-field");require("@luzmo/lucero/picker");require("@luzmo/lucero/popover");const f=require("../decompose-numeric-format-B3rVVHpO.cjs"),o=require("lit"),g=require("@luzmo/icons"),$=require("@luzmo/lucero/overlay");require("@luzmo/lucero/tooltip");const D=require("../calculate-data-item-icon-CEa82-5u.cjs"),y=require("../localize-r7ALOUy_.cjs"),m=require("lit/decorators.js"),N=require("../focusable-B3E_hQmm.cjs"),z=require("../sized-mixin-DcvJLFeo.cjs"),h=require("../set-locale-BRRalqne.cjs"),w=":host .settings-container{display:flex;flex-direction:column;gap:var(--luzmo-display-settings-vertical-gap, var(--luzmo-spacing-2))}:host .settings-row{display:flex;justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-numeric-gap, var(--display-settings-numeric-gap))}.duration-angle-down-icon{margin-inline-start:var(--luzmo-numeric-duration-levels-dropdown-icon-margin-inline-start, var(--numeric-duration-levels-dropdown-icon-margin-inline-start))}.dataset-header{max-width:100%;font-weight:600;text-transform:uppercase;margin:.5rem 1rem;color:var(--luzmo-font-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:default}.no-weight-label{margin-left:1rem}.with-secondary-icon{clip-path:polygon(0 0,60% 0,65% 60%,100% 65%,100% 100%,0 100%)}.secondary-icon{position:absolute;bottom:45%;left:60%;width:auto;font-size:.75em;line-height:1}.data-icon-type{width:1.5rem;text-align:center;position:relative;display:inline-block}:host{--display-settings-numeric-gap: var(--luzmo-spacing-3);--numeric-duration-levels-dropdown-icon-margin-inline-start: var( --luzmo-spacing-2 )}:host([size=s]){--display-settings-numeric-gap: var(--luzmo-spacing-3);--numeric-duration-levels-dropdown-icon-margin-inline-start: var( --luzmo-spacing-1 )}:host([size=l]){--display-settings-numeric-gap: var(--luzmo-spacing-4);--numeric-duration-levels-dropdown-icon-margin-inline-start: var( --luzmo-spacing-3 )}:host([size=xl]){--display-settings-numeric-gap: var(--luzmo-spacing-5);--numeric-duration-levels-dropdown-icon-margin-inline-start: var( --luzmo-spacing-4 )}",C={sum:()=>n.msg("Sum",{desc:"Numeric Aggregation option"}),cumulativesum:()=>n.msg("Cumulative sum",{desc:"Numeric Aggregation option"}),average:()=>n.msg("Average",{desc:"Numeric Aggregation option"}),median:()=>n.msg("Median",{desc:"Numeric Aggregation option"}),count:()=>n.msg("Count rows",{desc:"Numeric Aggregation option"}),distinctcount:()=>n.msg("Count distinct",{desc:"Numeric Aggregation option"}),min:()=>n.msg("Minimum",{desc:"Numeric Aggregation option"}),max:()=>n.msg("Maximum",{desc:"Numeric Aggregation option"}),stddev:()=>n.msg("Standard deviation",{desc:"Numeric Aggregation option"}),rate:()=>n.msg("Rate",{desc:"Numeric Aggregation option"})},b={general:"123",percentage:"%",scientific:"SI"},L={time:()=>n.msg("Time",{desc:"Time format option"}),short:()=>n.msg("Short",{desc:"Short format option"}),long:()=>n.msg("Long",{desc:"Long format option"})},S={Auto:{auto:!0,label:()=>n.msg("Auto",{desc:"Automatic setting of the option"})},"1,000.00":{auto:!1,label:()=>"1,000.00",thousandSeparator:",",decimalSeparator:".",hiddenFor:"scientific"},"1.000,00":{auto:!1,label:()=>"1.000,00",thousandSeparator:".",decimalSeparator:",",hiddenFor:"scientific"},"1000.00":{auto:!1,label:()=>"1000.00",decimalSeparator:"."},"1000,00":{auto:!1,label:()=>"1000,00",decimalSeparator:","}},q={levels:[{level:1,label:"years"},{level:2,label:"quarters"},{level:3,label:"months"},{level:4,label:"weeks"},{level:5,label:"days"},{level:6,label:"hours"},{level:7,label:"minutes"},{level:8,label:"seconds"},{level:9,label:"milliseconds"}]};var E=Object.defineProperty,I=Object.getOwnPropertyDescriptor,u=(d,t,e,i)=>{for(var s=i>1?void 0:i?I(t,e):t,a=d.length-1,r;a>=0;a--)(r=d[a])&&(s=(i?r(t,e,s):r(s))||s);return i&&s&&E(t,e,s),s};exports.LuzmoDisplaySettingsNumeric=class extends z.SizedMixin(N.LuzmoElement,{validSizes:Object.values(z.ElementSizes)}){constructor(){super(...arguments),this.language="en",this.slotContent={},this.measureColumns=[],this._durationLevels=[],this._renderDurationLevelMenu=!1,this._sendEvent=()=>{const t={...this.slotContent};t.format=this._format,t.aggregationFunc=this._aggregationFunc,this._aggregationWeightColumn?t.aggregationWeight={...this._aggregationWeightColumn}:delete t.aggregationWeight,this._displayMode==="duration"?(t.duration=t.duration??{},t.duration.format=this._durationFormat,t.duration.levels=this._durationLevels):delete t.duration,this.dispatchEvent(new CustomEvent("slot-content-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:t}}))}}static get styles(){return[o.unsafeCSS(w)]}_parseSavedNumericFormatSettings(){var t,e,i,s,a,r,c;if(this._displayMode=((t=this.slotContent)==null?void 0:t.subtype)==="duration"?"duration":"numeric",this._durationFormat=((i=(e=this.slotContent)==null?void 0:e.duration)==null?void 0:i.format)??"short",this._durationLevels=((a=(s=this.slotContent)==null?void 0:s.duration)==null?void 0:a.levels)??[1],this._displayMode==="duration")this._precision=2,this._commaDecimals=!1,this._thousandSeparator=!1;else{this._format=((r=this.slotContent)==null?void 0:r.format)??".0f";const l=f.decomposeNumericFormat(this._format??".0f");this._isAuto=((c=l.typeFormat)==null?void 0:c.includes("a"))??!1,["%","a%","y","ay"].includes(l.typeFormat)?this._displayAs="percentage":["s","as","w","aw"].includes(l.typeFormat)?this._displayAs="scientific":this._displayAs="general",this._precision=l.precision?Number.parseInt(l.precision.replace(".",""),10):this._displayAs==="scientific"?1:0,this._commaDecimals=["z","az","y","ay","w","aw"].includes(l.typeFormat),this._thousandSeparator=l.comma===",",this._isAuto?this._numericFormatGroup="Auto":this._commaDecimals&&this._thousandSeparator?this._numericFormatGroup="1.000,00":!this._commaDecimals&&this._thousandSeparator?this._numericFormatGroup="1,000.00":this._commaDecimals&&!this._thousandSeparator?this._numericFormatGroup="1000,00":!this._commaDecimals&&!this._thousandSeparator&&(this._numericFormatGroup="1000.00")}}_setNumericDisplayAs(){var t,e;this._displayAs=((e=(t=this._displayAsElement)==null?void 0:t.selected)==null?void 0:e[0])??"general",this._displayAs==="scientific"&&(this._precision=Math.max(this._precision??0,1),this._thousandSeparator=!1),this._setNumericFormat(),this._sendEvent(),this.requestUpdate()}_setNumericSeparators(t){const e=S[(t==null?void 0:t.detail)??"Auto"];this._thousandSeparator=[",","."].includes((e==null?void 0:e.thousandSeparator)??""),this._commaDecimals=(e==null?void 0:e.decimalSeparator)===",",this._isAuto=e==null?void 0:e.auto,this._setNumericFormat(),this._sendEvent()}_setPrecision(){this._precision=this._precisionElement.value,this._setNumericFormat(),this._sendEvent()}_setNumericFormat(){var i;let t="f";const e=this.slotContent.subtype==="duration"?this._durationLevels&&((i=this._durationLevels)==null?void 0:i.length)===1?"numeric":"duration":"numeric";this._maxDurationLevel=Math.min(...this._durationLevels),e==="duration"?(!["time","short","long"].includes(this._durationFormat??"")||this._maxDurationLevel<6&&this._durationFormat==="time")&&(this._durationFormat="short"):(this._displayAs==="general"&&this._commaDecimals?t="z":this._displayAs==="percentage"&&this._commaDecimals?t="y":this._displayAs==="scientific"&&this._commaDecimals?t="w":this._displayAs==="percentage"?t="%":this._displayAs==="scientific"&&(t="s"),this._format=(this._thousandSeparator||this._isAuto?",":"")+"."+this._precision+(this._isAuto?"a":"")+t)}_setAggregationFunc(){var a;const t=this._aggregationElement.value,e=this._aggregationFunc,i=this.slotContent.format;if(t!==(e==="weightedaverage"?"average":e)){if(this._aggregationFunc=t==="average"&&((a=this._aggregationWeightColumn)!=null&&a.column)?"weightedaverage":t,e==="rate"){const r=f.decomposeNumericFormat(i),c=["%","y","a%","ay"].includes(r.typeFormat);this.slotContent.subtype==="currency"&&c&&this._setNumericDisplayAs()}this._sendEvent(),(this._aggregationFunc==="rate"||e==="rate")&&this.requestUpdate()}}_setAggregationWeight(){var i;const t=this._aggregationWeightElement.value,e=this._aggregationFunc;if(t==="none")this._aggregationWeightColumn=void 0,this._aggregationFunc==="weightedaverage"&&(this._aggregationFunc="average");else{let s,a;for(const r of this.measureColumns??[]){const c=(i=r.columns)==null?void 0:i.find(l=>l.id===t);if(c){s=c,a=r.datasetId;break}}s&&(this._aggregationWeightColumn={column:s.id,set:a,columnSubType:s.subtype}),this._aggregationFunc==="average"&&(this._aggregationFunc="weightedaverage")}this._sendEvent(),this.requestUpdate(),(e==="weightedaverage"&&this._aggregationFunc==="average"||e==="average"&&this._aggregationFunc==="weightedaverage")&&this.requestUpdate()}_setDurationLevels(){const t=this._durationLevels,e=this._durationLevelsElement.value.split(",").filter(i=>i!=="").map(i=>Number.parseInt(i,10));this._durationLevels=((e==null?void 0:e.length)??0)>=1?e:t,this._maxDurationLevel=Math.min(...this._durationLevels),this._fillTimeDurationLevels(),this._setNumericFormat(),this._sendEvent(),this.requestUpdate()}_setDurationFormat(){var t,e;this._durationFormat=(e=(t=this._durationFormatElement)==null?void 0:t.selected)==null?void 0:e[0],this._fillTimeDurationLevels(),this._setNumericFormat(),this._sendEvent(),this.requestUpdate()}_fillTimeDurationLevels(){if(this._durationFormat==="time"){const t=this._durationLevels.sort().at(-1);if([7,8,9].includes(t)){const e={lev7:[6],lev8:[6,7],lev9:[6,7,8]};for(const i of e["lev"+t])this._durationLevels.includes(i)||this._durationLevels.push(i);this._durationLevels=[...this._durationLevels].sort()}}}willUpdate(t){var e,i,s,a,r;t.has("slotContent")&&(this._parseSavedNumericFormatSettings(),this._aggregationFunc=((e=this.slotContent)==null?void 0:e.aggregationFunc)??(((i=this.slotContent)==null?void 0:i.type)==="numeric"?"sum":"count"),this._aggregationWeightColumn=(s=this.slotContent)==null?void 0:s.aggregationWeight,this._isFormula=((a=this.slotContent)==null?void 0:a.formula)||((r=this.slotContent)==null?void 0:r.formulaId)),t.has("language")&&this.language!==h.getLocale()&&([...h.targetLocales].includes(this.language??"en")||this.language==="en")&&h.setLocale(this.language)}firstUpdated(){var t;(t=this.slotContent)!=null&&t.duration&&this._durationLevelsOverlay.addEventListener("slottable-request",e=>{this._renderDurationLevelMenu=e.data!==$.removeSlottableRequest})}_renderDurationLevelsSettings(){const t=q.levels.map(e=>{let i=!1;return this._durationFormat==="time"&&e.level>=6&&this._durationLevels.includes(e.level)&&e.level!==Math.max(...this._durationLevels)&&(i=!0),this._durationLevels.length===1&&this._durationLevels.includes(e.level)&&(i=!0),o.html`<luzmo-menu-item
21
- value=${e.level}
22
- ?selected=${this._durationLevels.includes(e.level)}
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("@lit/localize");require("@luzmo/lucero/action-button");require("@luzmo/lucero/action-group");require("@luzmo/lucero/field-label");require("@luzmo/lucero/menu");require("@luzmo/lucero/number-field");require("@luzmo/lucero/picker");require("@luzmo/lucero/popover");const _=require("../decompose-numeric-format-B3rVVHpO.cjs"),s=require("lit"),c=require("@luzmo/icons"),F=require("@luzmo/lucero/overlay");require("@luzmo/lucero/tooltip");const $=require("../calculate-data-item-icon-DtVGbet3.cjs"),f=require("../localize-C4zNlrwK.cjs"),r=require("lit/decorators.js"),D=require("../focusable-QLh-LlNt.cjs"),y=require("../sized-mixin-DcvJLFeo.cjs"),d=require("../set-locale-BRRalqne.cjs"),N=":host .settings-container{display:flex;flex-direction:column;gap:var(--luzmo-display-settings-vertical-gap, var(--luzmo-spacing-2))}:host .settings-row{display:flex;justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-numeric-gap, var(--display-settings-numeric-gap))}.duration-angle-down-icon{margin-inline-start:var(--luzmo-numeric-duration-levels-dropdown-icon-margin-inline-start, var(--numeric-duration-levels-dropdown-icon-margin-inline-start))}.dataset-header{max-width:100%;font-weight:600;text-transform:uppercase;margin:.5rem 1rem;color:var(--luzmo-font-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:default}.no-weight-label{margin-left:1rem}.with-secondary-icon{clip-path:polygon(0 0,60% 0,65% 60%,100% 65%,100% 100%,0 100%)}.secondary-icon{position:absolute;bottom:45%;left:60%;width:auto;font-size:.75em;line-height:1}.data-icon-type{width:1.5rem;text-align:center;position:relative;display:inline-block}:host{--display-settings-numeric-gap: var(--luzmo-spacing-3);--numeric-duration-levels-dropdown-icon-margin-inline-start: var( --luzmo-spacing-2 )}:host([size=s]){--display-settings-numeric-gap: var(--luzmo-spacing-3);--numeric-duration-levels-dropdown-icon-margin-inline-start: var( --luzmo-spacing-1 )}:host([size=l]){--display-settings-numeric-gap: var(--luzmo-spacing-4);--numeric-duration-levels-dropdown-icon-margin-inline-start: var( --luzmo-spacing-3 )}:host([size=xl]){--display-settings-numeric-gap: var(--luzmo-spacing-5);--numeric-duration-levels-dropdown-icon-margin-inline-start: var( --luzmo-spacing-4 )}",w={sum:()=>a.msg("Sum",{desc:"Numeric Aggregation option"}),cumulativesum:()=>a.msg("Cumulative sum",{desc:"Numeric Aggregation option"}),average:()=>a.msg("Average",{desc:"Numeric Aggregation option"}),median:()=>a.msg("Median",{desc:"Numeric Aggregation option"}),count:()=>a.msg("Count rows",{desc:"Numeric Aggregation option"}),distinctcount:()=>a.msg("Count distinct",{desc:"Numeric Aggregation option"}),min:()=>a.msg("Minimum",{desc:"Numeric Aggregation option"}),max:()=>a.msg("Maximum",{desc:"Numeric Aggregation option"}),stddev:()=>a.msg("Standard deviation",{desc:"Numeric Aggregation option"}),rate:()=>a.msg("Rate",{desc:"Numeric Aggregation option"})},z={general:"123",percentage:"%",scientific:"SI"},b={time:()=>a.msg("Time",{desc:"Time format option"}),short:()=>a.msg("Short",{desc:"Short format option"}),long:()=>a.msg("Long",{desc:"Long format option"})},L={Auto:{auto:!0,label:()=>a.msg("Auto",{desc:"Automatic setting of the option"})},"1,000.00":{auto:!1,label:()=>"1,000.00",thousandSeparator:",",decimalSeparator:".",hiddenFor:"scientific"},"1.000,00":{auto:!1,label:()=>"1.000,00",thousandSeparator:".",decimalSeparator:",",hiddenFor:"scientific"},"1000.00":{auto:!1,label:()=>"1000.00",decimalSeparator:"."},"1000,00":{auto:!1,label:()=>"1000,00",decimalSeparator:","}},C={levels:[{level:1,label:"years"},{level:2,label:"quarters"},{level:3,label:"months"},{level:4,label:"weeks"},{level:5,label:"days"},{level:6,label:"hours"},{level:7,label:"minutes"},{level:8,label:"seconds"},{level:9,label:"milliseconds"}]};var q=Object.defineProperty,E=Object.getOwnPropertyDescriptor,n=(g,e,t,i)=>{for(var o=i>1?void 0:i?E(e,t):e,l=g.length-1,u;l>=0;l--)(u=g[l])&&(o=(i?u(e,t,o):u(o))||o);return i&&o&&q(e,t,o),o};exports.LuzmoDisplaySettingsNumeric=class extends y.SizedMixin(D.LuzmoElement,{validSizes:Object.values(y.ElementSizes)}){constructor(){super(...arguments),this.language="en",this.slotContent={},this.measureColumns=[],this._durationLevels=[],this._renderDurationLevelMenu=!1,this._handleSlottableRequest=e=>{this._renderDurationLevelMenu=e.data!==F.removeSlottableRequest},this._sendEvent=()=>{const e={...this.slotContent,format:this._format,aggregationFunc:this._aggregationFunc};this._aggregationWeightColumn?e.aggregationWeight={...this._aggregationWeightColumn}:delete e.aggregationWeight,this._displayMode==="duration"?(e.duration=e.duration??{},e.duration.format=this._durationFormat,e.duration.levels=this._durationLevels):delete e.duration,this.dispatchEvent(new CustomEvent("slot-content-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:e}}))}}static get styles(){return[s.unsafeCSS(N)]}_parseSavedNumericFormatSettings(){if(this._displayMode=this.slotContent?.subtype==="duration"?"duration":"numeric",this._durationFormat=this.slotContent?.duration?.format??"short",this._durationLevels=this.slotContent?.duration?.levels??[1],this._displayMode==="duration")this._precision=2,this._commaDecimals=!1,this._thousandSeparator=!1;else{this._format=this.slotContent?.format??".0f";const e=_.decomposeNumericFormat(this._format??".0f");this._isAuto=e.typeFormat?.includes("a")??!1,["%","a%","y","ay"].includes(e.typeFormat)?this._displayAs="percentage":["s","as","w","aw"].includes(e.typeFormat)?this._displayAs="scientific":this._displayAs="general",this._precision=e.precision?Number.parseInt(e.precision.replace(".",""),10):this._displayAs==="scientific"?1:0,this._commaDecimals=["z","az","y","ay","w","aw"].includes(e.typeFormat),this._thousandSeparator=e.comma===",",this._isAuto?this._numericFormatGroup="Auto":this._commaDecimals&&this._thousandSeparator?this._numericFormatGroup="1.000,00":!this._commaDecimals&&this._thousandSeparator?this._numericFormatGroup="1,000.00":this._commaDecimals&&!this._thousandSeparator?this._numericFormatGroup="1000,00":!this._commaDecimals&&!this._thousandSeparator&&(this._numericFormatGroup="1000.00")}}_setNumericDisplayAs(){this._displayAs=this._displayAsElement?.selected?.[0]??"general",this._displayAs==="scientific"&&(this._precision=Math.max(this._precision??0,1),this._thousandSeparator=!1),this._setNumericFormat(),this._sendEvent(),this.requestUpdate()}_setNumericSeparators(e){const t=L[e?.detail??"Auto"];this._thousandSeparator=[",","."].includes(t?.thousandSeparator??""),this._commaDecimals=t?.decimalSeparator===",",this._isAuto=t?.auto,this._setNumericFormat(),this._sendEvent()}_setPrecision(){this._precision=this._precisionElement.value,this._setNumericFormat(),this._sendEvent()}_setNumericFormat(){let e="f";const t=this.slotContent.subtype==="duration"?this._durationLevels&&this._durationLevels?.length===1?"numeric":"duration":"numeric";this._maxDurationLevel=Math.min(...this._durationLevels),t==="duration"?(!["time","short","long"].includes(this._durationFormat??"")||this._maxDurationLevel<6&&this._durationFormat==="time")&&(this._durationFormat="short"):(this._displayAs==="general"&&this._commaDecimals?e="z":this._displayAs==="percentage"&&this._commaDecimals?e="y":this._displayAs==="scientific"&&this._commaDecimals?e="w":this._displayAs==="percentage"?e="%":this._displayAs==="scientific"&&(e="s"),this._format=(this._thousandSeparator||this._isAuto?",":"")+"."+this._precision+(this._isAuto?"a":"")+e)}_setAggregationFunc(){const e=this._aggregationElement.value,t=this._aggregationFunc,i=this.slotContent.format;if(e!==(t==="weightedaverage"?"average":t)){if(this._aggregationFunc=e==="average"&&this._aggregationWeightColumn?.column?"weightedaverage":e,t==="rate"){const l=_.decomposeNumericFormat(i),u=["%","y","a%","ay"].includes(l.typeFormat);this.slotContent.subtype==="currency"&&u&&this._setNumericDisplayAs()}this._sendEvent(),(this._aggregationFunc==="rate"||t==="rate")&&this.requestUpdate()}}_setAggregationWeight(){const e=this._aggregationWeightElement.value,t=this._aggregationFunc;if(e==="none")this._aggregationWeightColumn=void 0,this._aggregationFunc==="weightedaverage"&&(this._aggregationFunc="average");else{let i,o;for(const l of this.measureColumns??[]){const u=l.columns?.find(m=>m.id===e);if(u){i=u,o=l.datasetId;break}}i&&(this._aggregationWeightColumn={column:i.id,set:o,columnSubType:i.subtype}),this._aggregationFunc==="average"&&(this._aggregationFunc="weightedaverage")}this._sendEvent(),this.requestUpdate(),(t==="weightedaverage"&&this._aggregationFunc==="average"||t==="average"&&this._aggregationFunc==="weightedaverage")&&this.requestUpdate()}_setDurationLevels(){const e=this._durationLevels,t=this._durationLevelsElement.value.split(",").filter(i=>i!=="").map(i=>Number.parseInt(i,10));this._durationLevels=(t?.length??0)>=1?t:e,this._maxDurationLevel=Math.min(...this._durationLevels),this._fillTimeDurationLevels(),this._setNumericFormat(),this._sendEvent(),this.requestUpdate()}_setDurationFormat(){this._durationFormat=this._durationFormatElement?.selected?.[0],this._fillTimeDurationLevels(),this._setNumericFormat(),this._sendEvent(),this.requestUpdate()}_fillTimeDurationLevels(){if(this._durationFormat==="time"){const e=this._durationLevels.sort().at(-1);if([7,8,9].includes(e)){const t={lev7:[6],lev8:[6,7],lev9:[6,7,8]};for(const i of t["lev"+e])this._durationLevels.includes(i)||this._durationLevels.push(i);this._durationLevels=[...this._durationLevels].sort()}}}willUpdate(e){e.has("slotContent")&&(this._parseSavedNumericFormatSettings(),this._aggregationFunc=this.slotContent?.aggregationFunc??(this.slotContent?.type==="numeric"?"sum":"count"),this._aggregationWeightColumn=this.slotContent?.aggregationWeight,this._isFormula=this.slotContent?.formula||this.slotContent?.formulaId),e.has("language")&&this.language!==d.getLocale()&&([...d.targetLocales].includes(this.language??"en")||this.language==="en")&&d.setLocale(this.language)}_renderDurationLevelsSettings(){const e=C.levels.map(t=>{let i=!1;return this._durationFormat==="time"&&t.level>=6&&this._durationLevels.includes(t.level)&&t.level!==Math.max(...this._durationLevels)&&(i=!0),this._durationLevels.length===1&&this._durationLevels.includes(t.level)&&(i=!0),s.html`<luzmo-menu-item
21
+ value=${t.level}
22
+ ?selected=${this._durationLevels.includes(t.level)}
23
23
  ?disabled=${i}
24
24
  >
25
- ${e.label}
26
- </luzmo-menu-item>`});return o.html` <div class="setting">
25
+ ${t.label}
26
+ </luzmo-menu-item>`});return s.html` <div class="setting">
27
27
  <luzmo-field-label for="duration-levels">
28
- ${n.msg("Duration levels",{desc:"Label for duration levels setting"})}
28
+ ${a.msg("Duration levels",{desc:"Label for duration levels setting"})}
29
29
  </luzmo-field-label>
30
30
  <luzmo-action-button id="duration-levels-trigger" size=${this.size}>
31
31
  ${this._durationLevels.length}
32
32
  ${this._durationLevels.length===1?"level":"levels"} active
33
33
  <span class="duration-angle-down-icon">
34
- ${g.luzmoIcon(g.luzmoAngleDown)}
34
+ ${c.luzmoIcon(c.luzmoAngleDown)}
35
35
  </span>
36
36
  </luzmo-action-button>
37
37
  <luzmo-overlay
@@ -40,24 +40,25 @@
40
40
  type="auto"
41
41
  placement="bottom-start"
42
42
  type="page"
43
+ @slottable-request=${this._handleSlottableRequest}
43
44
  >
44
45
  <luzmo-popover style="position: relative">
45
- ${this._renderDurationLevelMenu?o.html` <luzmo-menu
46
+ ${this._renderDurationLevelMenu?s.html` <luzmo-menu
46
47
  id="duration-levels"
47
48
  size=${this.size}
48
49
  selects="multiple"
49
50
  .value=${this._durationLevels.join(",")}
50
51
  @change=${this._setDurationLevels}
51
52
  >
52
- ${t}
53
+ ${e}
53
54
  </luzmo-menu>`:""}
54
55
  </luzmo-popover>
55
56
  </luzmo-overlay>
56
- </div>`}_renderDurationFormatSettings(){const t=Object.keys(L).map(e=>e==="time"&&(this._maxDurationLevel??1)<6?"":o.html`<luzmo-action-button value=${e}>
57
- ${L[e]()}
58
- </luzmo-action-button>`);return o.html` <div class="setting">
57
+ </div>`}_renderDurationFormatSettings(){const e=Object.keys(b).map(t=>t==="time"&&(this._maxDurationLevel??1)<6?"":s.html`<luzmo-action-button value=${t}>
58
+ ${b[t]()}
59
+ </luzmo-action-button>`);return s.html` <div class="setting">
59
60
  <luzmo-field-label for="duration-format">
60
- ${n.msg("Format",{desc:"Label for format setting"})}
61
+ ${a.msg("Format",{desc:"Label for format setting"})}
61
62
  </luzmo-field-label>
62
63
  <luzmo-action-group
63
64
  emphasized
@@ -68,13 +69,13 @@
68
69
  selects="single"
69
70
  @change=${this._setDurationFormat}
70
71
  >
71
- ${t}
72
+ ${e}
72
73
  </luzmo-action-group>
73
- </div>`}_renderNumericDisplayAsSettings(){const t=Object.keys(b).filter(e=>{var i;return e!=="percentage"||(this.slotContent.subtype!=="currency"||this.slotContent.aggregationFunc==="rate")&&((i=this.slotContent.periodOverPeriod)==null?void 0:i.type)!=="percentageChange"}).map(e=>o.html`<luzmo-action-button value=${e}
74
- >${b[e]}</luzmo-action-button
75
- >`);return o.html`<div class="setting">
74
+ </div>`}_renderNumericDisplayAsSettings(){const e=Object.keys(z).filter(t=>t!=="percentage"||(this.slotContent.subtype!=="currency"||this.slotContent.aggregationFunc==="rate")&&this.slotContent.periodOverPeriod?.type!=="percentageChange").map(t=>s.html`<luzmo-action-button value=${t}
75
+ >${z[t]}</luzmo-action-button
76
+ >`);return s.html`<div class="setting">
76
77
  <luzmo-field-label for="display-as">
77
- ${n.msg("Display as",{desc:"Label for display as setting for the datetime field"})}
78
+ ${a.msg("Display as",{desc:"Label for display as setting for the datetime field"})}
78
79
  </luzmo-field-label>
79
80
  <luzmo-action-group
80
81
  emphasized
@@ -85,11 +86,11 @@
85
86
  selects="single"
86
87
  @change=${this._setNumericDisplayAs}
87
88
  >
88
- ${t}
89
+ ${e}
89
90
  </luzmo-action-group>
90
- </div>`}_renderNumericFormatSettings(){const t=Object.entries(S).filter(([,{hiddenFor:e}])=>!e||e!==this._displayAs).map(([e,{label:i}])=>o.html`<luzmo-menu-item value=${e}>${i()}</luzmo-menu-item>`);return o.html` <div class="setting">
91
+ </div>`}_renderNumericFormatSettings(){const e=Object.entries(L).filter(([,{hiddenFor:t}])=>!t||t!==this._displayAs).map(([t,{label:i}])=>s.html`<luzmo-menu-item value=${t}>${i()}</luzmo-menu-item>`);return s.html` <div class="setting">
91
92
  <luzmo-field-label for="format">
92
- ${n.msg("Format",{desc:"Label for format setting"})}
93
+ ${a.msg("Format",{desc:"Label for format setting"})}
93
94
  </luzmo-field-label>
94
95
  <luzmo-picker
95
96
  id="format"
@@ -98,12 +99,12 @@
98
99
  value=${this._numericFormatGroup??"Auto"}
99
100
  @change=${this._setNumericSeparators}
100
101
  >
101
- ${t}
102
+ ${e}
102
103
  </luzmo-picker>
103
104
  </div>
104
105
  <div class="setting">
105
106
  <luzmo-field-label for="precision" id="precision-label">
106
- ${this._displayAs==="scientific"?n.msg("Precision",{desc:"Label for precision setting"}):n.msg("Decimals",{desc:"Label for decimals setting"})}
107
+ ${this._displayAs==="scientific"?a.msg("Precision",{desc:"Label for precision setting"}):a.msg("Decimals",{desc:"Label for decimals setting"})}
107
108
  </luzmo-field-label>
108
109
  <luzmo-number-field
109
110
  id="precision"
@@ -113,57 +114,57 @@
113
114
  value=${this._precision??(this._displayAs==="scientific"?1:0)}
114
115
  @change=${this._setPrecision}
115
116
  ></luzmo-number-field>
116
- </div>`}_renderAggregationSettings(){var i;const t=Object.entries(C).filter(([s])=>{var a;return["count","distinctcount"].includes(s)||((a=this.slotContent)==null?void 0:a.type)==="numeric"}).filter(([s])=>s!=="cumulativesum"||this.isCumulativeSumEnabled).map(([s,a])=>o.html`<luzmo-menu-item value=${s}>${a()}</luzmo-menu-item>`),e=[o.html`<luzmo-menu-item value="none" class="no-weight">
117
+ </div>`}_renderAggregationSettings(){const e=Object.entries(w).filter(([i])=>["count","distinctcount"].includes(i)||this.slotContent?.type==="numeric").filter(([i])=>i!=="cumulativesum"||this.isCumulativeSumEnabled).map(([i,o])=>s.html`<luzmo-menu-item value=${i}>${o()}</luzmo-menu-item>`),t=[s.html`<luzmo-menu-item value="none" class="no-weight">
117
118
  <span class="no-weight-label">No weight</span>
118
- </luzmo-menu-item>`,...(this.measureColumns??[]).flatMap(s=>{const a=typeof s.datasetName=="object"?y.localize(s.datasetName,this.language):s.datasetName,r=o.html`<div class="dataset-header">
119
- ${a}
119
+ </luzmo-menu-item>`,...(this.measureColumns??[]).flatMap(i=>{const o=typeof i.datasetName=="object"?f.localize(i.datasetName,this.language):i.datasetName,l=s.html`<div class="dataset-header">
120
+ ${o}
120
121
  <luzmo-tooltip self-managed placement="right" size=${this.size}>
121
- ${a}
122
+ ${o}
122
123
  </luzmo-tooltip>
123
- </div>`,c=(s.columns??[]).map(l=>{const p=typeof l.name=="object"?y.localize(l.name,this.language):l.name,A=g.luzmoIcon(D.calculateDataItemIcon(l,"s")),v=l.expression?g.luzmoTypeDerived12:void 0,_=!!v,F=_?o.html`<span class="secondary-icon"
124
- >${g.luzmoIcon(v)}</span
125
- >`:o.nothing;return o.html`<luzmo-menu-item value=${l.id}>
124
+ </div>`,u=(i.columns??[]).map(m=>{const h=typeof m.name=="object"?f.localize(m.name,this.language):m.name,S=c.luzmoIcon($.calculateDataItemIcon(m,"s")),p=m.expression?c.luzmoTypeDerived12:void 0,v=!!p,A=v?s.html`<span class="secondary-icon"
125
+ >${c.luzmoIcon(p)}</span
126
+ >`:s.nothing;return s.html`<luzmo-menu-item value=${m.id}>
126
127
  <span class="data-icon-type" slot="icon">
127
- <span class=${_?"with-secondary-icon":""}
128
- >${A}</span
128
+ <span class=${v?"with-secondary-icon":""}
129
+ >${S}</span
129
130
  >
130
- ${F}
131
+ ${A}
131
132
  </span>
132
- <span class="column-label text-truncate">${p}</span>
133
+ <span class="column-label text-truncate">${h}</span>
133
134
  <luzmo-tooltip self-managed placement="right" size=${this.size}>
134
- ${p}
135
+ ${h}
135
136
  </luzmo-tooltip>
136
- </luzmo-menu-item>`});return[r,...c]})];return o.html`<div class="settings-row">
137
+ </luzmo-menu-item>`});return[l,...u]})];return s.html`<div class="settings-row">
137
138
  <div class="setting">
138
139
  <luzmo-field-label for="aggregation">
139
- ${n.msg("Aggregation",{desc:"Label for aggregation setting"})}
140
+ ${a.msg("Aggregation",{desc:"Label for aggregation setting"})}
140
141
  </luzmo-field-label>
141
142
  <luzmo-picker
142
143
  id="aggregation"
143
144
  size=${this.size}
144
145
  variant="highlight"
145
- value=${(()=>{var a;const s=((a=this.slotContent)==null?void 0:a.type)==="numeric"?"sum":"count";return this._aggregationFunc==="weightedaverage"?"average":this._aggregationFunc??s})()}
146
+ value=${(()=>{const i=this.slotContent?.type==="numeric"?"sum":"count";return this._aggregationFunc==="weightedaverage"?"average":this._aggregationFunc??i})()}
146
147
  @change=${this._setAggregationFunc}
147
148
  >
148
- ${t}
149
+ ${e}
149
150
  </luzmo-picker>
150
151
  </div>
151
- ${["rate","average","weightedaverage"].includes(this._aggregationFunc??"")?o.html`<div class="setting">
152
+ ${["rate","average","weightedaverage"].includes(this._aggregationFunc??"")?s.html`<div class="setting">
152
153
  <luzmo-field-label for="weighting-column">
153
154
  ${this._aggregationFunc==="rate"?"Denominator":"Weight"}
154
155
  </luzmo-field-label>
155
- ${this.measureColumns.length>0?o.html`
156
+ ${this.measureColumns.length>0?s.html`
156
157
  <luzmo-picker
157
158
  id="weighting-column"
158
159
  size=${this.size}
159
160
  variant="highlight"
160
161
  icons="none"
161
- value=${((i=this._aggregationWeightColumn)==null?void 0:i.column)??"none"}
162
+ value=${this._aggregationWeightColumn?.column??"none"}
162
163
  @change=${this._setAggregationWeight}
163
164
  >
164
- ${e}
165
+ ${t}
165
166
  </luzmo-picker>
166
- `:o.html`<luzmo-picker
167
+ `:s.html`<luzmo-picker
167
168
  id="weighting-column"
168
169
  size=${this.size}
169
170
  variant="highlight"
@@ -173,11 +174,11 @@
173
174
  <luzmo-menu-item value="none">No weight</luzmo-menu-item>
174
175
  </luzmo-picker>`}
175
176
  </div>`:""}
176
- </div>`}render(){var t;return o.html`<div class="settings-container">
177
+ </div>`}render(){return s.html`<div class="settings-container">
177
178
  <div class="settings-row">
178
179
  ${this._displayMode==="duration"?this._renderDurationLevelsSettings():this._renderNumericDisplayAsSettings()}
179
- ${((t=this._durationLevels)==null?void 0:t.length)>1?this._renderDurationFormatSettings():this._renderNumericFormatSettings()}
180
+ ${this._durationLevels?.length>1?this._renderDurationFormatSettings():this._renderNumericFormatSettings()}
180
181
  </div>
181
- ${this._isFormula||this.isAggregationDisabled?o.nothing:this._renderAggregationSettings()}
182
+ ${this._isFormula||this.isAggregationDisabled?s.nothing:this._renderAggregationSettings()}
182
183
  </div>
183
- </div>`}};u([m.property({type:String,reflect:!0})],exports.LuzmoDisplaySettingsNumeric.prototype,"language",2);u([m.property({type:Object,reflect:!0})],exports.LuzmoDisplaySettingsNumeric.prototype,"slotContent",2);u([m.property({type:Array,reflect:!1})],exports.LuzmoDisplaySettingsNumeric.prototype,"measureColumns",2);u([m.property({type:Boolean})],exports.LuzmoDisplaySettingsNumeric.prototype,"isAggregationDisabled",2);u([m.property({type:Boolean})],exports.LuzmoDisplaySettingsNumeric.prototype,"isCumulativeSumEnabled",2);u([m.query("#display-as")],exports.LuzmoDisplaySettingsNumeric.prototype,"_displayAsElement",2);u([m.query("#precision")],exports.LuzmoDisplaySettingsNumeric.prototype,"_precisionElement",2);u([m.query("#aggregation")],exports.LuzmoDisplaySettingsNumeric.prototype,"_aggregationElement",2);u([m.query("#weighting-column")],exports.LuzmoDisplaySettingsNumeric.prototype,"_aggregationWeightElement",2);u([m.query("#duration-levels")],exports.LuzmoDisplaySettingsNumeric.prototype,"_durationLevelsElement",2);u([m.query("#duration-format")],exports.LuzmoDisplaySettingsNumeric.prototype,"_durationFormatElement",2);u([m.query("#duration-levels-overlay")],exports.LuzmoDisplaySettingsNumeric.prototype,"_durationLevelsOverlay",2);u([m.state()],exports.LuzmoDisplaySettingsNumeric.prototype,"_renderDurationLevelMenu",2);exports.LuzmoDisplaySettingsNumeric=u([n.localized()],exports.LuzmoDisplaySettingsNumeric);customElements.get("luzmo-display-settings-numeric")||customElements.define("luzmo-display-settings-numeric",exports.LuzmoDisplaySettingsNumeric);
184
+ </div>`}};n([r.property({type:String,reflect:!0})],exports.LuzmoDisplaySettingsNumeric.prototype,"language",2);n([r.property({type:Object,reflect:!0})],exports.LuzmoDisplaySettingsNumeric.prototype,"slotContent",2);n([r.property({type:Array,reflect:!1})],exports.LuzmoDisplaySettingsNumeric.prototype,"measureColumns",2);n([r.property({type:Boolean})],exports.LuzmoDisplaySettingsNumeric.prototype,"isAggregationDisabled",2);n([r.property({type:Boolean})],exports.LuzmoDisplaySettingsNumeric.prototype,"isCumulativeSumEnabled",2);n([r.query("#display-as")],exports.LuzmoDisplaySettingsNumeric.prototype,"_displayAsElement",2);n([r.query("#precision")],exports.LuzmoDisplaySettingsNumeric.prototype,"_precisionElement",2);n([r.query("#aggregation")],exports.LuzmoDisplaySettingsNumeric.prototype,"_aggregationElement",2);n([r.query("#weighting-column")],exports.LuzmoDisplaySettingsNumeric.prototype,"_aggregationWeightElement",2);n([r.query("#duration-levels")],exports.LuzmoDisplaySettingsNumeric.prototype,"_durationLevelsElement",2);n([r.query("#duration-format")],exports.LuzmoDisplaySettingsNumeric.prototype,"_durationFormatElement",2);n([r.state()],exports.LuzmoDisplaySettingsNumeric.prototype,"_renderDurationLevelMenu",2);exports.LuzmoDisplaySettingsNumeric=n([a.localized()],exports.LuzmoDisplaySettingsNumeric);customElements.get("luzmo-display-settings-numeric")||customElements.define("luzmo-display-settings-numeric",exports.LuzmoDisplaySettingsNumeric);