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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (235) hide show
  1. package/components/ai-chat-message-assistant/index.cjs +1 -1
  2. package/components/ai-chat-message-assistant/index.js +1 -0
  3. package/components/ai-chat-messages-container/index.cjs +1 -1
  4. package/components/ai-chat-messages-container/index.js +2 -2
  5. package/components/ai-interaction-textarea/index.cjs +1 -1
  6. package/components/ai-interaction-textarea/index.js +2 -1
  7. package/components/area-chart-options.config-C7sMAHco.cjs +20 -0
  8. package/components/{area-chart-options.config-u8itidsi.js → area-chart-options.config-_J0sG4NF.js} +26 -14
  9. package/components/{bar-chart-options.config-DIirbAJ0.js → bar-chart-options.config-D1mb5TDl.js} +35 -21
  10. package/components/bar-chart-options.config-DcxEkOT5.cjs +20 -0
  11. package/components/box-plot-options.config-SrrbDEYW.cjs +20 -0
  12. package/components/{box-plot-options.config-BWROiguA.js → box-plot-options.config-xu_i6ms7.js} +88 -52
  13. package/components/{bubble-chart-options.config-4QD8VPhU.js → bubble-chart-options.config-BacgXkJ_.js} +18 -9
  14. package/components/bubble-chart-options.config-Ihn6eVQI.cjs +20 -0
  15. package/components/{bullet-chart-options.config-3bH7uekx.js → bullet-chart-options.config-CDPpX1yc.js} +1 -1
  16. package/components/{bullet-chart-options.config-tWb6Fio-.cjs → bullet-chart-options.config-DfS4Bwds.cjs} +1 -1
  17. package/components/calculate-data-item-icon-CEa82-5u.cjs +20 -0
  18. package/components/calculate-data-item-icon-DjlZwMdO.js +147 -0
  19. package/components/{choropleth-map-options.config-CMxx3ORp.js → choropleth-map-options.config-B_W9-rhe.js} +84 -63
  20. package/components/choropleth-map-options.config-ZW8yoZH2.cjs +20 -0
  21. package/components/{circular-gauge-options.config-DhIKn44k.js → circular-gauge-options.config-DAIjz4Rl.js} +36 -23
  22. package/components/circular-gauge-options.config-msZ4mfpN.cjs +20 -0
  23. package/components/color-B6LaL8qz.cjs +20 -0
  24. package/components/{color-B7m0j8lX.js → color-DuJ4-73S.js} +950 -941
  25. package/components/{color-range-utils-BSfqtB3A.js → color-range-utils-Bvo9sm5A.js} +32 -31
  26. package/components/color-range-utils-C5yXW7ZC.cjs +20 -0
  27. package/components/{column-chart-options.config-D5-yR7iq.js → column-chart-options.config-B5SjBVdy.js} +37 -27
  28. package/components/column-chart-options.config-BjDvA7i9.cjs +20 -0
  29. package/components/{conditional-number-options.config-DPYsdML5.js → conditional-number-options.config-BCEpSK9J.js} +40 -24
  30. package/components/conditional-number-options.config-DgzUo0xi.cjs +20 -0
  31. package/components/dataset-icon/index.cjs +1 -1
  32. package/components/dataset-icon/index.js +2 -1
  33. package/components/dataset-selector-list/index.cjs +1 -1
  34. package/components/dataset-selector-list/index.js +35 -32
  35. package/components/dataset-selector-row/index.cjs +9 -9
  36. package/components/dataset-selector-row/index.js +52 -50
  37. package/components/{date-comparison-filter-options.config-QaoWaFUn.cjs → date-comparison-filter-options.config-DAVncmi0.cjs} +1 -1
  38. package/components/{date-comparison-filter-options.config-CSwGyuBg.js → date-comparison-filter-options.config-JA_yYpJa.js} +6 -3
  39. package/components/{date-filter-options.config-n-zhWaYa.cjs → date-filter-options.config-CWPMtA18.cjs} +1 -1
  40. package/components/{date-filter-options.config-BTVyHRkp.js → date-filter-options.config-DBRxlTWy.js} +6 -3
  41. package/components/display-settings/index.cjs +1 -1
  42. package/components/display-settings/index.js +1 -1
  43. package/components/display-settings-binning/index.cjs +5 -5
  44. package/components/display-settings-binning/index.js +30 -29
  45. package/components/display-settings-datetime/index.cjs +29 -29
  46. package/components/display-settings-datetime/index.js +120 -112
  47. package/components/display-settings-grand-totals/index.cjs +4 -4
  48. package/components/display-settings-grand-totals/index.js +24 -23
  49. package/components/display-settings-numeric/index.cjs +48 -48
  50. package/components/display-settings-numeric/index.js +206 -190
  51. package/components/display-settings-period-over-period/index.cjs +16 -16
  52. package/components/display-settings-period-over-period/index.js +97 -91
  53. package/components/{donut-chart-options.config-3ZqX8Cbb.js → donut-chart-options.config-BulUEiaH.js} +37 -21
  54. package/components/donut-chart-options.config-tNpqBZfR.cjs +20 -0
  55. package/components/draggable-data-item/index.cjs +5 -5
  56. package/components/draggable-data-item/index.js +46 -45
  57. package/components/draggable-data-item-level/index.cjs +11 -11
  58. package/components/draggable-data-item-level/index.js +73 -70
  59. package/components/{dropdown-filter-options.config-CGJTtgAX.js → dropdown-filter-options.config-D9dvPypF.js} +10 -7
  60. package/components/{dropdown-filter-options.config-DJvfCTk7.cjs → dropdown-filter-options.config-DS-MORmq.cjs} +1 -1
  61. package/components/droppable-slot/index.cjs +16 -16
  62. package/components/droppable-slot/index.js +223 -208
  63. package/components/edit-item/index.cjs +9 -9
  64. package/components/edit-item/index.js +119 -116
  65. package/components/edit-option/index.cjs +1 -1
  66. package/components/edit-option/index.js +1 -1
  67. package/components/edit-option-action-button-group/index.cjs +8 -8
  68. package/components/edit-option-action-button-group/index.js +53 -52
  69. package/components/{edit-option-base-Bh29-Cak.js → edit-option-base-DIc7iC-b.js} +1 -1
  70. package/components/{edit-option-base-tFr8Qg2B.cjs → edit-option-base-VhTih9T1.cjs} +1 -1
  71. package/components/edit-option-color-palette-picker/index.cjs +1 -1
  72. package/components/edit-option-color-palette-picker/index.js +1 -1
  73. package/components/edit-option-color-picker/index.cjs +1 -1
  74. package/components/edit-option-color-picker/index.js +1 -1
  75. package/components/edit-option-color-range/index.cjs +19 -19
  76. package/components/edit-option-color-range/index.js +117 -106
  77. package/components/edit-option-multi-language-field/index.cjs +3 -3
  78. package/components/edit-option-multi-language-field/index.js +27 -26
  79. package/components/edit-option-number-field/index.cjs +1 -1
  80. package/components/edit-option-number-field/index.js +1 -1
  81. package/components/edit-option-picker/index.cjs +5 -5
  82. package/components/edit-option-picker/index.js +7 -7
  83. package/components/edit-option-position-picker/index.cjs +4 -4
  84. package/components/edit-option-position-picker/index.js +25 -21
  85. package/components/edit-option-positions-number-field/index.cjs +9 -9
  86. package/components/edit-option-positions-number-field/index.js +81 -76
  87. package/components/edit-option-radio-button-group/index.cjs +6 -6
  88. package/components/edit-option-radio-button-group/index.js +22 -21
  89. package/components/edit-option-slider/index.cjs +1 -1
  90. package/components/edit-option-slider/index.js +1 -1
  91. package/components/edit-option-switch/index.cjs +1 -1
  92. package/components/edit-option-switch/index.js +1 -1
  93. package/components/edit-option-text-field/index.cjs +2 -2
  94. package/components/edit-option-text-field/index.js +23 -22
  95. package/components/en-BKBhKBXY.cjs +20 -0
  96. package/components/en-BOTjhwEc.js +1488 -0
  97. package/components/{en-GB-ialeqj_z.js → en-GB-CEHEs8F2.js} +1 -1
  98. package/components/{en-GB-TqvgIw9B.cjs → en-GB-DG6uS3sM.cjs} +1 -1
  99. package/components/{evolution-number-options.config-Bc9eKYnn.cjs → evolution-number-options.config-BgIZY4gQ.cjs} +1 -1
  100. package/components/{evolution-number-options.config-BIPO_4n3.js → evolution-number-options.config-DzkfeoIN.js} +14 -11
  101. package/components/{extrapolate-color-C0n1UDs-.cjs → extrapolate-color-0j_AeYkz.cjs} +1 -1
  102. package/components/{extrapolate-color-v1PimdQr.js → extrapolate-color-CC9CURf6.js} +1 -1
  103. package/components/filter-data-item-picker/index.cjs +7 -7
  104. package/components/filter-data-item-picker/index.js +86 -85
  105. package/components/filter-expression-picker/index.cjs +1 -1
  106. package/components/filter-expression-picker/index.js +1 -1
  107. package/components/filter-item/index.cjs +6 -6
  108. package/components/filter-item/index.js +119 -109
  109. package/components/filter-value-picker/index.cjs +2 -2
  110. package/components/filter-value-picker/index.js +36 -34
  111. package/components/filter-value-picker-datetime/index.cjs +8 -8
  112. package/components/filter-value-picker-datetime/index.js +71 -56
  113. package/components/filter-value-picker-hierarchy/index.cjs +12 -12
  114. package/components/filter-value-picker-hierarchy/index.js +124 -113
  115. package/components/filter-value-picker-numeric/index.cjs +8 -8
  116. package/components/filter-value-picker-numeric/index.js +110 -101
  117. package/components/focusable-B3E_hQmm.cjs +20 -0
  118. package/components/{focusable-BS2pbY7w.js → focusable-DCIFkpiW.js} +26 -24
  119. package/components/{funnel-chart-options.config-CrJy2U7_.js → funnel-chart-options.config-C_VjTOvD.js} +20 -5
  120. package/components/funnel-chart-options.config-D7H7gFcx.cjs +20 -0
  121. package/components/get-css-variable-DLiZYZEi.cjs +24 -0
  122. package/components/{get-css-variable-Bb7TxJdX.js → get-css-variable-YlLiVgo8.js} +37 -37
  123. package/components/grid/index.cjs +49 -43
  124. package/components/grid/index.js +1878 -2610
  125. package/components/{heat-map-options.config-CmL87j1j.js → heat-map-options.config-BnLWe8jS.js} +41 -35
  126. package/components/heat-map-options.config-DVH-Bb5-.cjs +20 -0
  127. package/components/heat-table-options.config-B12JEYnp.cjs +20 -0
  128. package/components/{heat-table-options.config-BrCYAgYD.js → heat-table-options.config-CUsDdgUr.js} +88 -60
  129. package/components/helpers-DXQwEH1P.cjs +20 -0
  130. package/components/helpers-v1bPALRP.js +91 -0
  131. package/components/hexbin-map-options.config-DZERRhM8.cjs +20 -0
  132. package/components/{hexbin-map-options.config-BguV1w8q.js → hexbin-map-options.config-F-7uCqxb.js} +38 -20
  133. package/components/{index-BNAmjOkm.cjs → index-BPNsFiyq.cjs} +4 -4
  134. package/components/index-CDi4fe3N.js +1716 -0
  135. package/components/index-CQ9ck-BO.cjs +249 -0
  136. package/components/index-CXn67vdn.cjs +121 -0
  137. package/components/{index-haa7WNrl.js → index-CdIUfo-L.js} +481 -453
  138. package/components/index-Cz9vSXy6.cjs +20 -0
  139. package/components/{index-DdyZ2g5L.js → index-D0GBF6tg.js} +104 -94
  140. package/components/{index-CqKpf0B8.js → index-Do7O9azB.js} +123 -112
  141. package/components/index.cjs +1 -1
  142. package/components/index.js +5 -5
  143. package/components/item-options-configs.cjs +1 -1
  144. package/components/item-options-configs.js +37 -37
  145. package/components/{line-chart-options.config-BhirTGqD.js → line-chart-options.config-DB3IsXXr.js} +28 -13
  146. package/components/line-chart-options.config-DSugoe0t.cjs +20 -0
  147. package/components/{localize-CcDpq940.js → localize-BX7q0S0M.js} +10 -10
  148. package/components/{localize-C4zNlrwK.cjs → localize-r7ALOUy_.cjs} +1 -1
  149. package/components/{marker-map-options.config-Bx17jmiq.js → marker-map-options.config-DPJ955tt.js} +1 -1
  150. package/components/{marker-map-options.config-CvhCylSC.cjs → marker-map-options.config-_FYZzRwA.cjs} +1 -1
  151. package/components/pivot-table-options.config-BiJXKSFR.cjs +20 -0
  152. package/components/{pivot-table-options.config-CFc7y0IT.js → pivot-table-options.config-DNK_AIG7.js} +24 -15
  153. package/components/pyramid-chart-options.config-C4zbFS26.cjs +20 -0
  154. package/components/{pyramid-chart-options.config-2Waxb11l.js → pyramid-chart-options.config-CcVMatYx.js} +43 -29
  155. package/components/{radar-chart-options.config-CPN5fOl8.js → radar-chart-options.config-CUZn_3Fd.js} +23 -11
  156. package/components/radar-chart-options.config-EqQu6PTh.cjs +20 -0
  157. package/components/{regular-table-options.config-CFKCJQK1.js → regular-table-options.config-BoLZsBry.js} +23 -17
  158. package/components/{regular-table-options.config-YRuoijIk.cjs → regular-table-options.config-DTx3RTnS.cjs} +1 -1
  159. package/components/{route-map-options.config-CyolTJfK.js → route-map-options.config-CN86T7c0.js} +109 -87
  160. package/components/route-map-options.config-D7NJePTu.cjs +20 -0
  161. package/components/{sankey-diagram-options.config-D7OSvSqm.cjs → sankey-diagram-options.config-RFB83YLZ.cjs} +1 -1
  162. package/components/{sankey-diagram-options.config-Ldjk84ro.js → sankey-diagram-options.config-tVLKy_Zn.js} +10 -7
  163. package/components/scatter-plot-options.config-CFfGJXsV.cjs +20 -0
  164. package/components/{scatter-plot-options.config-CfxEfkQ1.js → scatter-plot-options.config-Corlzno1.js} +86 -56
  165. package/components/{search-filter-options.config-Oqco9BKj.cjs → search-filter-options.config-BCaDlYqZ.cjs} +1 -1
  166. package/components/{search-filter-options.config-C0syQmP4.js → search-filter-options.config-BE3JhR-F.js} +6 -3
  167. package/components/{set-locale-hKTMz37h.js → set-locale-Dp3N_gXN.js} +8 -1
  168. package/components/{slicer-filter-options.config-DmOe3440.js → slicer-filter-options.config-3JZZcw5C.js} +18 -9
  169. package/components/slicer-filter-options.config-DNI-XevE.cjs +20 -0
  170. package/components/{slider-filter-options.config-B1M8RcDs.js → slider-filter-options.config-DH4SS8wH.js} +1 -1
  171. package/components/{slider-filter-options.config-k45I-t6G.cjs → slider-filter-options.config-_8Z2zKmU.cjs} +1 -1
  172. package/components/slot-contents-picker/index.cjs +33 -33
  173. package/components/slot-contents-picker/index.js +205 -194
  174. package/components/slot-menu/index.cjs +12 -12
  175. package/components/slot-menu/index.js +184 -171
  176. package/components/slot-menu-list/index.cjs +3 -3
  177. package/components/slot-menu-list/index.js +103 -97
  178. package/components/speedometer-chart-options.config-BX9LTQBH.cjs +20 -0
  179. package/components/{speedometer-chart-options.config-CzOmuEF8.js → speedometer-chart-options.config-SL581yOa.js} +53 -31
  180. package/components/{spike-map-options.config-Cbt1YUw6.js → spike-map-options.config-C5KewecZ.js} +122 -91
  181. package/components/spike-map-options.config-DoBFXPmN.cjs +20 -0
  182. package/components/{sunburst-chart-options.config-Yrxc2i57.cjs → sunburst-chart-options.config-AbNjWS6t.cjs} +1 -1
  183. package/components/{sunburst-chart-options.config-_dyLQxPJ.js → sunburst-chart-options.config-CNauGQJv.js} +20 -9
  184. package/components/{symbol-map-options.config-BORL1NSU.js → symbol-map-options.config-DdDA4aa7.js} +20 -11
  185. package/components/symbol-map-options.config-m-lwLTtu.cjs +20 -0
  186. package/components/treemap-chart-options.config-C0Q9aQ1Z.cjs +20 -0
  187. package/components/{treemap-chart-options.config-B9i9qIm_.js → treemap-chart-options.config-D5AJaF_u.js} +37 -20
  188. package/components/utils.cjs +1 -1
  189. package/components/utils.js +97 -94
  190. package/components/{video-options.config-B0asgYt8.cjs → video-options.config-CGsDTwHc.cjs} +1 -1
  191. package/components/{video-options.config-UX-9MDfS.js → video-options.config-Dk36zJ1B.js} +10 -7
  192. package/components/viz-item-menu/index.cjs +2 -2
  193. package/components/viz-item-menu/index.js +5 -4
  194. package/components/{wordcloud-chart-options.config-BKtJT8Va.cjs → wordcloud-chart-options.config-vGfCW8kE.cjs} +1 -1
  195. package/components/{wordcloud-chart-options.config-BoB_KuhA.js → wordcloud-chart-options.config-w2NUIWVA.js} +7 -4
  196. package/custom-elements.json +0 -20
  197. package/package.json +1 -1
  198. package/components/area-chart-options.config-Bl8bhhOo.cjs +0 -20
  199. package/components/bar-chart-options.config-CePAqM83.cjs +0 -20
  200. package/components/box-plot-options.config-BVNrV2eD.cjs +0 -20
  201. package/components/bubble-chart-options.config-BDgOe3GQ.cjs +0 -20
  202. package/components/calculate-data-item-icon-DMDhKq_m.js +0 -147
  203. package/components/calculate-data-item-icon-DtVGbet3.cjs +0 -20
  204. package/components/choropleth-map-options.config-CWJACFd0.cjs +0 -20
  205. package/components/circular-gauge-options.config-BMxgq3zH.cjs +0 -20
  206. package/components/color-Czp4Im5q.cjs +0 -20
  207. package/components/color-range-utils-DYYR-iwx.cjs +0 -20
  208. package/components/column-chart-options.config-BV9R3ssH.cjs +0 -20
  209. package/components/conditional-number-options.config-Co099Qfm.cjs +0 -20
  210. package/components/donut-chart-options.config-BQyPgnC9.cjs +0 -20
  211. package/components/en-D3ihEGXg.js +0 -1483
  212. package/components/en-DZcn_iz_.cjs +0 -20
  213. package/components/focusable-QLh-LlNt.cjs +0 -20
  214. package/components/funnel-chart-options.config-DrP4AFgk.cjs +0 -20
  215. package/components/get-css-variable-Pzks_rOx.cjs +0 -24
  216. package/components/heat-map-options.config-CIHnPdYE.cjs +0 -20
  217. package/components/heat-table-options.config-DTlZRc_i.cjs +0 -20
  218. package/components/helpers-9I0oLoUB.cjs +0 -20
  219. package/components/helpers-bR8Ibjqh.js +0 -79
  220. package/components/hexbin-map-options.config-CKnn3VAB.cjs +0 -20
  221. package/components/index-BekTY3Em.cjs +0 -121
  222. package/components/index-CFL6gmIu.cjs +0 -20
  223. package/components/index-DNPULp4A.js +0 -1755
  224. package/components/index-DvkzMbLt.cjs +0 -249
  225. package/components/line-chart-options.config-Cqwou5u6.cjs +0 -20
  226. package/components/pivot-table-options.config-uZDAertf.cjs +0 -20
  227. package/components/pyramid-chart-options.config-DoGfEvzU.cjs +0 -20
  228. package/components/radar-chart-options.config-CtNUMN1l.cjs +0 -20
  229. package/components/route-map-options.config-CVTk5RVL.cjs +0 -20
  230. package/components/scatter-plot-options.config-5gN7pMTm.cjs +0 -20
  231. package/components/slicer-filter-options.config-CrusP6a0.cjs +0 -20
  232. package/components/speedometer-chart-options.config-B4ceg_qI.cjs +0 -20
  233. package/components/spike-map-options.config-BkkDqb4g.cjs +0 -20
  234. package/components/symbol-map-options.config-NpBKm64d.cjs +0 -20
  235. package/components/treemap-chart-options.config-x4J54WSw.cjs +0 -20
@@ -17,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 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)}
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._handleSlottableRequest=t=>{this._renderDurationLevelMenu=t.data!==$.removeSlottableRequest},this._sendEvent=()=>{const t={...this.slotContent,format:this._format,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)}_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)}
23
23
  ?disabled=${i}
24
24
  >
25
- ${t.label}
26
- </luzmo-menu-item>`});return s.html` <div class="setting">
25
+ ${e.label}
26
+ </luzmo-menu-item>`});return o.html` <div class="setting">
27
27
  <luzmo-field-label for="duration-levels">
28
- ${a.msg("Duration levels",{desc:"Label for duration levels setting"})}
28
+ ${n.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
- ${c.luzmoIcon(c.luzmoAngleDown)}
34
+ ${g.luzmoIcon(g.luzmoAngleDown)}
35
35
  </span>
36
36
  </luzmo-action-button>
37
37
  <luzmo-overlay
@@ -43,22 +43,22 @@
43
43
  @slottable-request=${this._handleSlottableRequest}
44
44
  >
45
45
  <luzmo-popover style="position: relative">
46
- ${this._renderDurationLevelMenu?s.html` <luzmo-menu
46
+ ${this._renderDurationLevelMenu?o.html` <luzmo-menu
47
47
  id="duration-levels"
48
48
  size=${this.size}
49
49
  selects="multiple"
50
50
  .value=${this._durationLevels.join(",")}
51
51
  @change=${this._setDurationLevels}
52
52
  >
53
- ${e}
53
+ ${t}
54
54
  </luzmo-menu>`:""}
55
55
  </luzmo-popover>
56
56
  </luzmo-overlay>
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">
57
+ </div>`}_renderDurationFormatSettings(){const t=Object.keys(L).map(e=>e==="time"&&(this._maxDurationLevel??1)<6?"":o.html`<luzmo-action-button value=${e}>
58
+ ${L[e]()}
59
+ </luzmo-action-button>`);return o.html` <div class="setting">
60
60
  <luzmo-field-label for="duration-format">
61
- ${a.msg("Format",{desc:"Label for format setting"})}
61
+ ${n.msg("Format",{desc:"Label for format setting"})}
62
62
  </luzmo-field-label>
63
63
  <luzmo-action-group
64
64
  emphasized
@@ -69,13 +69,13 @@
69
69
  selects="single"
70
70
  @change=${this._setDurationFormat}
71
71
  >
72
- ${e}
72
+ ${t}
73
73
  </luzmo-action-group>
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">
74
+ </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}
75
+ >${b[e]}</luzmo-action-button
76
+ >`);return o.html`<div class="setting">
77
77
  <luzmo-field-label for="display-as">
78
- ${a.msg("Display as",{desc:"Label for display as setting for the datetime field"})}
78
+ ${n.msg("Display as",{desc:"Label for display as setting for the datetime field"})}
79
79
  </luzmo-field-label>
80
80
  <luzmo-action-group
81
81
  emphasized
@@ -86,11 +86,11 @@
86
86
  selects="single"
87
87
  @change=${this._setNumericDisplayAs}
88
88
  >
89
- ${e}
89
+ ${t}
90
90
  </luzmo-action-group>
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
+ </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">
92
92
  <luzmo-field-label for="format">
93
- ${a.msg("Format",{desc:"Label for format setting"})}
93
+ ${n.msg("Format",{desc:"Label for format setting"})}
94
94
  </luzmo-field-label>
95
95
  <luzmo-picker
96
96
  id="format"
@@ -99,12 +99,12 @@
99
99
  value=${this._numericFormatGroup??"Auto"}
100
100
  @change=${this._setNumericSeparators}
101
101
  >
102
- ${e}
102
+ ${t}
103
103
  </luzmo-picker>
104
104
  </div>
105
105
  <div class="setting">
106
106
  <luzmo-field-label for="precision" id="precision-label">
107
- ${this._displayAs==="scientific"?a.msg("Precision",{desc:"Label for precision setting"}):a.msg("Decimals",{desc:"Label for decimals setting"})}
107
+ ${this._displayAs==="scientific"?n.msg("Precision",{desc:"Label for precision setting"}):n.msg("Decimals",{desc:"Label for decimals setting"})}
108
108
  </luzmo-field-label>
109
109
  <luzmo-number-field
110
110
  id="precision"
@@ -114,57 +114,57 @@
114
114
  value=${this._precision??(this._displayAs==="scientific"?1:0)}
115
115
  @change=${this._setPrecision}
116
116
  ></luzmo-number-field>
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
+ </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">
118
118
  <span class="no-weight-label">No weight</span>
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}
119
+ </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">
120
+ ${a}
121
121
  <luzmo-tooltip self-managed placement="right" size=${this.size}>
122
- ${o}
122
+ ${a}
123
123
  </luzmo-tooltip>
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}>
124
+ </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"
125
+ >${g.luzmoIcon(v)}</span
126
+ >`:o.nothing;return o.html`<luzmo-menu-item value=${l.id}>
127
127
  <span class="data-icon-type" slot="icon">
128
- <span class=${v?"with-secondary-icon":""}
129
- >${S}</span
128
+ <span class=${_?"with-secondary-icon":""}
129
+ >${A}</span
130
130
  >
131
- ${A}
131
+ ${F}
132
132
  </span>
133
- <span class="column-label text-truncate">${h}</span>
133
+ <span class="column-label text-truncate">${p}</span>
134
134
  <luzmo-tooltip self-managed placement="right" size=${this.size}>
135
- ${h}
135
+ ${p}
136
136
  </luzmo-tooltip>
137
- </luzmo-menu-item>`});return[l,...u]})];return s.html`<div class="settings-row">
137
+ </luzmo-menu-item>`});return[r,...c]})];return o.html`<div class="settings-row">
138
138
  <div class="setting">
139
139
  <luzmo-field-label for="aggregation">
140
- ${a.msg("Aggregation",{desc:"Label for aggregation setting"})}
140
+ ${n.msg("Aggregation",{desc:"Label for aggregation setting"})}
141
141
  </luzmo-field-label>
142
142
  <luzmo-picker
143
143
  id="aggregation"
144
144
  size=${this.size}
145
145
  variant="highlight"
146
- value=${(()=>{const i=this.slotContent?.type==="numeric"?"sum":"count";return this._aggregationFunc==="weightedaverage"?"average":this._aggregationFunc??i})()}
146
+ value=${(()=>{var a;const s=((a=this.slotContent)==null?void 0:a.type)==="numeric"?"sum":"count";return this._aggregationFunc==="weightedaverage"?"average":this._aggregationFunc??s})()}
147
147
  @change=${this._setAggregationFunc}
148
148
  >
149
- ${e}
149
+ ${t}
150
150
  </luzmo-picker>
151
151
  </div>
152
- ${["rate","average","weightedaverage"].includes(this._aggregationFunc??"")?s.html`<div class="setting">
152
+ ${["rate","average","weightedaverage"].includes(this._aggregationFunc??"")?o.html`<div class="setting">
153
153
  <luzmo-field-label for="weighting-column">
154
154
  ${this._aggregationFunc==="rate"?"Denominator":"Weight"}
155
155
  </luzmo-field-label>
156
- ${this.measureColumns.length>0?s.html`
156
+ ${this.measureColumns.length>0?o.html`
157
157
  <luzmo-picker
158
158
  id="weighting-column"
159
159
  size=${this.size}
160
160
  variant="highlight"
161
161
  icons="none"
162
- value=${this._aggregationWeightColumn?.column??"none"}
162
+ value=${((i=this._aggregationWeightColumn)==null?void 0:i.column)??"none"}
163
163
  @change=${this._setAggregationWeight}
164
164
  >
165
- ${t}
165
+ ${e}
166
166
  </luzmo-picker>
167
- `:s.html`<luzmo-picker
167
+ `:o.html`<luzmo-picker
168
168
  id="weighting-column"
169
169
  size=${this.size}
170
170
  variant="highlight"
@@ -174,11 +174,11 @@
174
174
  <luzmo-menu-item value="none">No weight</luzmo-menu-item>
175
175
  </luzmo-picker>`}
176
176
  </div>`:""}
177
- </div>`}render(){return s.html`<div class="settings-container">
177
+ </div>`}render(){var t;return o.html`<div class="settings-container">
178
178
  <div class="settings-row">
179
179
  ${this._displayMode==="duration"?this._renderDurationLevelsSettings():this._renderNumericDisplayAsSettings()}
180
- ${this._durationLevels?.length>1?this._renderDurationFormatSettings():this._renderNumericFormatSettings()}
180
+ ${((t=this._durationLevels)==null?void 0:t.length)>1?this._renderDurationFormatSettings():this._renderNumericFormatSettings()}
181
181
  </div>
182
- ${this._isFormula||this.isAggregationDisabled?s.nothing:this._renderAggregationSettings()}
182
+ ${this._isFormula||this.isAggregationDisabled?o.nothing:this._renderAggregationSettings()}
183
183
  </div>
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);
184
+ </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.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);