@luzmo/analytics-components-kit 1.0.1-alpha.1 → 1.0.1-alpha.10

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 (369) hide show
  1. package/LICENSE +3 -3
  2. package/components/area-chart-slots.config-BLxiYX05.cjs +20 -0
  3. package/components/area-chart-slots.config-C0c2ZzBh.js +52 -0
  4. package/components/async-directive-DWRUSKKF-CmOVMf6V.js +152 -0
  5. package/components/async-directive-DWRUSKKF-D4itZyzc.cjs +56 -0
  6. package/components/bar-chart-slots.config-GSSL7XVA.js +47 -0
  7. package/components/bar-chart-slots.config-Jx1PveTM.cjs +20 -0
  8. package/components/bar-chart.config-B57geUzJ.cjs +20 -0
  9. package/components/bar-chart.config-CQ6HAvs2.js +153 -0
  10. package/components/bar-chart.en-BqYbiHO3.cjs +20 -0
  11. package/components/bar-chart.en-FwT00qdU.js +69 -0
  12. package/components/bar-chart.fr-DGx9smEh.cjs +20 -0
  13. package/components/bar-chart.fr-DbxKiM0j.js +44 -0
  14. package/components/bar-chart.nl-BYzVExsz.cjs +20 -0
  15. package/components/bar-chart.nl-ahX1ARpH.js +44 -0
  16. package/components/base-BjTwmyRF.cjs +24 -0
  17. package/components/base-D76d76ww-BiajPmzU.cjs +40 -0
  18. package/components/base-D76d76ww-gf0ESLsU.js +45 -0
  19. package/components/base-D76d76ww.js +28 -0
  20. package/components/button-base-B7v4eeRh-BKKUK3x0.cjs +43 -0
  21. package/components/button-base-B7v4eeRh-D3-GH03o.js +161 -0
  22. package/components/checkbox-mixin-BFGTmw17-C34LMsgu.js +88 -0
  23. package/components/checkbox-mixin-BFGTmw17-CCjGd0nS.cjs +45 -0
  24. package/components/column-chart.config-B57geUzJ.cjs +20 -0
  25. package/components/column-chart.config-C9hP0kX7.js +153 -0
  26. package/components/cs-DVZ0Tapy.js +89 -0
  27. package/components/cs-I9E81keK.cjs +20 -0
  28. package/components/da-DHy05oSR.js +97 -0
  29. package/components/da-QkdvupDg.cjs +20 -0
  30. package/components/de-BaTUIQk1.js +104 -0
  31. package/components/de-DgHoh7KS.cjs +20 -0
  32. package/components/de-Dn5mUzha.cjs +20 -0
  33. package/components/de-iM39JlAt.js +109 -0
  34. package/components/decompose-numeric-format-B3rVVHpO.cjs +20 -0
  35. package/components/decompose-numeric-format-BuZcjH2k.js +39 -0
  36. package/components/directive-helpers-nlQRAaQt-3kEWF2GV.cjs +80 -0
  37. package/components/directive-helpers-nlQRAaQt-I6T4KZKW.js +115 -0
  38. package/components/display-settings/display-settings.d.ts +70 -0
  39. package/components/display-settings/index.cjs +105 -0
  40. package/components/display-settings/index.d.ts +7 -0
  41. package/components/display-settings/index.js +238 -0
  42. package/components/display-settings-binning/display-settings-binning.d.ts +33 -0
  43. package/components/display-settings-binning/index.cjs +55 -0
  44. package/components/display-settings-binning/index.d.ts +7 -0
  45. package/components/display-settings-binning/index.js +151 -0
  46. package/components/display-settings-datetime/display-settings-datetime.d.ts +85 -0
  47. package/components/display-settings-datetime/index.cjs +20 -0
  48. package/components/display-settings-datetime/index.d.ts +7 -0
  49. package/components/display-settings-datetime/index.js +30 -0
  50. package/components/display-settings-grand-totals/display-settings-grand-totals.d.ts +31 -0
  51. package/components/display-settings-grand-totals/index.cjs +43 -0
  52. package/components/display-settings-grand-totals/index.d.ts +7 -0
  53. package/components/display-settings-grand-totals/index.js +126 -0
  54. package/components/display-settings-numeric/display-settings-numeric.d.ts +73 -0
  55. package/components/display-settings-numeric/helpers/constants.d.ts +18 -0
  56. package/components/display-settings-numeric/index.cjs +156 -0
  57. package/components/display-settings-numeric/index.d.ts +7 -0
  58. package/components/display-settings-numeric/index.js +477 -0
  59. package/components/display-settings-period-over-period/display-settings-period-over-period.d.ts +44 -0
  60. package/components/display-settings-period-over-period/helpers/constants.d.ts +36 -0
  61. package/components/display-settings-period-over-period/index.cjs +103 -0
  62. package/components/display-settings-period-over-period/index.d.ts +7 -0
  63. package/components/display-settings-period-over-period/index.js +314 -0
  64. package/components/divider.module-DwOuLGU3-B19eHVg2.js +40 -0
  65. package/components/divider.module-DwOuLGU3-Bg8RrFkc.cjs +36 -0
  66. package/components/donut-chart-slots.config-BEwhfq27.js +39 -0
  67. package/components/donut-chart-slots.config-DIp-24lO.cjs +20 -0
  68. package/components/donut-chart.config-3DhKiSSM.js +177 -0
  69. package/components/donut-chart.config-DLWJUlHx.cjs +20 -0
  70. package/components/donut-chart.en-Blb9oSdU.cjs +20 -0
  71. package/components/donut-chart.en-CzjT4-XN.js +85 -0
  72. package/components/donut-chart.fr-BeTVa2wh.cjs +20 -0
  73. package/components/donut-chart.fr-DftPrKbG.js +39 -0
  74. package/components/donut-chart.nl-D9YGbOce.cjs +20 -0
  75. package/components/donut-chart.nl-NMatXfhK.js +39 -0
  76. package/components/draggable-data-item/draggable-data-item.d.ts +26 -0
  77. package/components/draggable-data-item/index.cjs +55 -0
  78. package/components/draggable-data-item/index.d.ts +7 -0
  79. package/components/draggable-data-item/index.js +135 -0
  80. package/components/draggable-data-item-level/draggable-data-item-level.d.ts +29 -0
  81. package/components/draggable-data-item-level/helpers/calculate-type-icon.d.ts +2 -0
  82. package/components/draggable-data-item-level/helpers/generate-preview.d.ts +1 -0
  83. package/components/draggable-data-item-level/index.cjs +36 -0
  84. package/components/draggable-data-item-level/index.d.ts +7 -0
  85. package/components/draggable-data-item-level/index.js +293 -0
  86. package/components/droppable-slot/droppable-slot.d.ts +49 -0
  87. package/components/droppable-slot/index.cjs +69 -0
  88. package/components/droppable-slot/index.d.ts +7 -0
  89. package/components/droppable-slot/index.js +266 -0
  90. package/components/droppable-slot/item-slots-configs/area-chart-slots.config.d.ts +44 -0
  91. package/components/droppable-slot/item-slots-configs/bar-chart-slots.config.d.ts +24 -0
  92. package/components/droppable-slot/item-slots-configs/donut-chart-slots.config.d.ts +20 -0
  93. package/components/droppable-slot/item-slots-configs/slot-labels.const.d.ts +8 -0
  94. package/components/edit-item/edit-item.d.ts +50 -0
  95. package/components/edit-item/index.cjs +85 -0
  96. package/components/edit-item/index.d.ts +7 -0
  97. package/components/edit-item/index.js +333 -0
  98. package/components/edit-option/edit-option.d.ts +22 -0
  99. package/components/edit-option/helpers/control-markup.d.ts +14 -0
  100. package/components/edit-option/helpers/control-templates/action-button-group-template.d.ts +2 -0
  101. package/components/edit-option/helpers/control-templates/color-picker-template.d.ts +2 -0
  102. package/components/edit-option/helpers/control-templates/multi-language-field-template.d.ts +8 -0
  103. package/components/edit-option/helpers/control-templates/number-field-template.d.ts +2 -0
  104. package/components/edit-option/helpers/control-templates/picker-template.d.ts +2 -0
  105. package/components/edit-option/helpers/control-templates/positions-number-field-template.d.ts +2 -0
  106. package/components/edit-option/helpers/control-templates/radio-button-group.d.ts +2 -0
  107. package/components/edit-option/helpers/control-templates/slider-template.d.ts +2 -0
  108. package/components/edit-option/helpers/control-templates/switch-template.d.ts +2 -0
  109. package/components/edit-option/helpers/control-templates/text-field-template.d.ts +7 -0
  110. package/components/edit-option/helpers/generate-callback.d.ts +1 -0
  111. package/components/edit-option/helpers/get-control-by-key.d.ts +1 -0
  112. package/components/edit-option/helpers/get-extra-label-values.d.ts +7 -0
  113. package/components/edit-option/helpers/get-value-by-key.d.ts +1 -0
  114. package/components/edit-option/index.cjs +176 -0
  115. package/components/edit-option/index.d.ts +7 -0
  116. package/components/edit-option/index.js +507 -0
  117. package/components/edit-option/item-configs/bar-chart.config.d.ts +108 -0
  118. package/components/edit-option/item-configs/column-chart.config.d.ts +108 -0
  119. package/components/edit-option/item-configs/donut-chart.config.d.ts +102 -0
  120. package/components/edit-option/item-configs/imageobject.config.d.ts +128 -0
  121. package/components/edit-option/item-configs/line-chart.config.d.ts +96 -0
  122. package/components/edit-option/item-configs/textobject.config.d.ts +13 -0
  123. package/components/edit-option/item-translations/bar-chart.en.d.ts +48 -0
  124. package/components/edit-option/item-translations/bar-chart.fr.d.ts +23 -0
  125. package/components/edit-option/item-translations/bar-chart.nl.d.ts +23 -0
  126. package/components/edit-option/item-translations/donut-chart.en.d.ts +64 -0
  127. package/components/edit-option/item-translations/donut-chart.fr.d.ts +18 -0
  128. package/components/edit-option/item-translations/donut-chart.nl.d.ts +18 -0
  129. package/components/edit-option-action-button-group/edit-option-action-button-group.d.ts +27 -0
  130. package/components/edit-option-action-button-group/index.cjs +44 -0
  131. package/components/edit-option-action-button-group/index.d.ts +7 -0
  132. package/components/edit-option-action-button-group/index.js +144 -0
  133. package/components/edit-option-base/edit-option-base.d.ts +22 -0
  134. package/components/edit-option-base-Boz7TNRZ.cjs +53 -0
  135. package/components/edit-option-base-qePiIQWd.js +120 -0
  136. package/components/edit-option-color-picker/edit-option-color-picker.d.ts +23 -0
  137. package/components/edit-option-color-picker/index.cjs +472 -0
  138. package/components/edit-option-color-picker/index.d.ts +7 -0
  139. package/components/edit-option-color-picker/index.js +2553 -0
  140. package/components/edit-option-multi-language-field/edit-option-multi-language-field.d.ts +15 -0
  141. package/components/edit-option-multi-language-field/index.cjs +31 -0
  142. package/components/edit-option-multi-language-field/index.d.ts +7 -0
  143. package/components/edit-option-multi-language-field/index.js +102 -0
  144. package/components/edit-option-number-field/edit-option-number-field.d.ts +19 -0
  145. package/components/edit-option-number-field/index.cjs +32 -0
  146. package/components/edit-option-number-field/index.d.ts +7 -0
  147. package/components/edit-option-number-field/index.js +115 -0
  148. package/components/edit-option-picker/edit-option-picker.d.ts +22 -0
  149. package/components/edit-option-picker/index.cjs +35 -0
  150. package/components/edit-option-picker/index.d.ts +7 -0
  151. package/components/edit-option-picker/index.js +106 -0
  152. package/components/edit-option-positions-number-field/edit-option-positions-number-field.d.ts +28 -0
  153. package/components/edit-option-positions-number-field/index.cjs +42 -0
  154. package/components/edit-option-positions-number-field/index.d.ts +7 -0
  155. package/components/edit-option-positions-number-field/index.js +170 -0
  156. package/components/edit-option-radio-button-group/edit-option-radio-button-group.d.ts +18 -0
  157. package/components/edit-option-radio-button-group/index.cjs +36 -0
  158. package/components/edit-option-radio-button-group/index.d.ts +7 -0
  159. package/components/edit-option-radio-button-group/index.js +113 -0
  160. package/components/edit-option-slider/edit-option-slider.d.ts +15 -0
  161. package/components/edit-option-slider/index.cjs +48 -0
  162. package/components/edit-option-slider/index.d.ts +7 -0
  163. package/components/edit-option-slider/index.js +1253 -0
  164. package/components/edit-option-switch/edit-option-switch.d.ts +11 -0
  165. package/components/edit-option-switch/index.cjs +50 -0
  166. package/components/edit-option-switch/index.d.ts +7 -0
  167. package/components/edit-option-switch/index.js +171 -0
  168. package/components/edit-option-text-field/edit-option-text-field.d.ts +15 -0
  169. package/components/edit-option-text-field/index.cjs +31 -0
  170. package/components/edit-option-text-field/index.d.ts +7 -0
  171. package/components/edit-option-text-field/index.js +100 -0
  172. package/components/element-resolution-FCUT-wql--7ctE626.js +163 -0
  173. package/components/element-resolution-FCUT-wql-DSTvdyds.cjs +68 -0
  174. package/components/en-BByOeNuP.js +1989 -0
  175. package/components/en-BFGuvaVG.cjs +228 -0
  176. package/components/en-GB-Bz4u7Uqv.cjs +20 -0
  177. package/components/en-GB-DX5un7Gr.js +28 -0
  178. package/components/es-ByW01bzN.cjs +20 -0
  179. package/components/es-CwyPlN5d.cjs +20 -0
  180. package/components/es-D37mTCZB.js +104 -0
  181. package/components/es-KhTq4jX8.js +305 -0
  182. package/components/fi-Dh_ebgpe.js +97 -0
  183. package/components/fi-rijeZE5V.cjs +20 -0
  184. package/components/focus-group-DHeTq18L-C9l9oHwM.cjs +36 -0
  185. package/components/focus-group-DHeTq18L-rNUu13eb.js +237 -0
  186. package/components/fr-BWJHvkss.js +104 -0
  187. package/components/fr-BcgE-6S_.cjs +20 -0
  188. package/components/fr-CU727YF1.js +305 -0
  189. package/components/fr-DnFUAglm.cjs +20 -0
  190. package/components/get-css-variable-Bhbr-Kr1.js +1413 -0
  191. package/components/get-css-variable-DLiZYZEi.cjs +24 -0
  192. package/components/he-Au3xg6lR.js +89 -0
  193. package/components/he-O6Ih8Bqh.cjs +20 -0
  194. package/components/hu-BnZ8y3xQ.cjs +20 -0
  195. package/components/hu-DNJ-P_MW.js +97 -0
  196. package/components/if-defined-8BOch-oC.cjs +24 -0
  197. package/components/if-defined-BSAr_4u4-4Ys8VE7T.js +95 -0
  198. package/components/if-defined-BSAr_4u4-gECNwmTC.cjs +60 -0
  199. package/components/if-defined-Bv6MRdSW.js +29 -0
  200. package/components/imageobject.config-B7ld9bj3.cjs +20 -0
  201. package/components/imageobject.config-DZLp9Elq.js +127 -0
  202. package/components/index-86cIx1Ql.cjs +57 -0
  203. package/components/index-B3ve6cAj.js +810 -0
  204. package/components/index-B5Wvyv9s.js +744 -0
  205. package/components/index-BBrer3_5.js +44 -0
  206. package/components/index-BJVxTeoi.cjs +192 -0
  207. package/components/index-BUSWsm5N.js +77 -0
  208. package/components/index-BVX_ozT9.js +77 -0
  209. package/components/index-BYfDERr7.js +145 -0
  210. package/components/index-Bee1uunR.js +299 -0
  211. package/components/index-BrEDK88k.cjs +185 -0
  212. package/components/index-Bt5nP_6w.cjs +59 -0
  213. package/components/index-ByjLd3bT.cjs +95 -0
  214. package/components/index-C8IL2IZ6.js +317 -0
  215. package/components/index-CMvLpPKD-D5MpMVYZ.js +935 -0
  216. package/components/index-CMvLpPKD-Yf1PLWrj.cjs +95 -0
  217. package/components/index-CXIT0cYY.js +3171 -0
  218. package/components/index-CdCtJpK9.js +175 -0
  219. package/components/index-CdUTqQ3L.cjs +39 -0
  220. package/components/index-CdpyJ7hp.cjs +36 -0
  221. package/components/index-CfEn3fIT.js +137 -0
  222. package/components/index-D8qmoauu.cjs +36 -0
  223. package/components/index-DEVOZNSc.cjs +36 -0
  224. package/components/index-DUO13KGl.cjs +54 -0
  225. package/components/index-DVAsMiOm.js +164 -0
  226. package/components/index-DnozlYag.js +48 -0
  227. package/components/index-h9T5DPIm.cjs +36 -0
  228. package/components/index-i8GaIN7i.cjs +67 -0
  229. package/components/index-iYpAy-Kg.cjs +95 -0
  230. package/components/index-ymMEPngt.js +104 -0
  231. package/components/index-zuArOtOt.cjs +42 -0
  232. package/components/index.cjs +20 -0
  233. package/components/index.js +74 -0
  234. package/components/it-Bh5U73z6.js +305 -0
  235. package/components/it-PshtLMkq.cjs +20 -0
  236. package/components/ja-CCcHUL61.js +89 -0
  237. package/components/ja-KIS2HdaG.cjs +20 -0
  238. package/components/ko--l4qmjLV.cjs +20 -0
  239. package/components/ko-DhapsZMM.js +89 -0
  240. package/components/language-resolution-8yZa5r_P-Bn0bYosv.js +161 -0
  241. package/components/language-resolution-8yZa5r_P-FqQChUDW.cjs +52 -0
  242. package/components/line-chart.config-BZcvfO2c.cjs +20 -0
  243. package/components/line-chart.config-CIVN6uLI.js +115 -0
  244. package/components/localize-B6AsX_Zv.js +52 -0
  245. package/components/localize-DbobqcKs.cjs +20 -0
  246. package/components/luzmo-icons-BE2T8vWu.js +613 -0
  247. package/components/luzmo-icons-XsFsTAl3.cjs +31 -0
  248. package/components/mk-B9HPSuKa.js +97 -0
  249. package/components/mk-DZlj-edb.cjs +20 -0
  250. package/components/nl-BKlDqOXb.cjs +20 -0
  251. package/components/nl-BwSt5Bf4.js +109 -0
  252. package/components/nl-CWxJcTNT.js +104 -0
  253. package/components/nl-CpfDNK5c.cjs +20 -0
  254. package/components/no-D-DofYnx.js +109 -0
  255. package/components/no-D_SzxhTu.cjs +20 -0
  256. package/components/observe-slot-text-ggb4kKgY-DBVrKDBD.cjs +86 -0
  257. package/components/observe-slot-text-ggb4kKgY-o5QFWUeA.js +221 -0
  258. package/components/periods.const-CDIkC5CK.cjs +20 -0
  259. package/components/periods.const-GHh5bPfs.js +176 -0
  260. package/components/pl-D_L_0Boq.js +97 -0
  261. package/components/pl-PIK23rK_.cjs +20 -0
  262. package/components/popover-DlkzrLpl-BhTvuvTu.cjs +48 -0
  263. package/components/popover-DlkzrLpl-CCwcTIXr.js +86 -0
  264. package/components/property-0L4eB11h.cjs +112 -0
  265. package/components/property-B2F7x7Cz.js +1481 -0
  266. package/components/pt-B0BBS5VB.js +89 -0
  267. package/components/pt-Dqlu4MS5.cjs +20 -0
  268. package/components/query-D5qWDopr.cjs +24 -0
  269. package/components/query-Ddbd72Um.js +39 -0
  270. package/components/query-assigned-nodes-C76XVPWY-BcyGjObB.cjs +40 -0
  271. package/components/query-assigned-nodes-C76XVPWY-DPC6kOmH.js +55 -0
  272. package/components/roving-tabindex-DOg4z6ZU-DmyYPRYY.cjs +36 -0
  273. package/components/roving-tabindex-DOg4z6ZU-dufnVmvL.js +85 -0
  274. package/components/ru-Vo-m3O_2.js +108 -0
  275. package/components/ru-zyNDTB04.cjs +20 -0
  276. package/components/set-locale-ByIApH40.cjs +60 -0
  277. package/components/set-locale-DJYT4V7U.js +212 -0
  278. package/components/sized-mixin-BxMraZLS-B_y0PzR3.js +82 -0
  279. package/components/sized-mixin-BxMraZLS-DEFWqo8f.cjs +36 -0
  280. package/components/slot-menu/index.cjs +55 -0
  281. package/components/slot-menu/index.d.ts +7 -0
  282. package/components/slot-menu/index.js +188 -0
  283. package/components/slot-menu/slot-menu.d.ts +66 -0
  284. package/components/slot-menu-list/index.cjs +39 -0
  285. package/components/slot-menu-list/index.d.ts +7 -0
  286. package/components/slot-menu-list/index.js +351 -0
  287. package/components/slot-menu-list/slot-menu-list.d.ts +33 -0
  288. package/components/state-BFA93Sye.cjs +24 -0
  289. package/components/state-Joaryhrg.js +31 -0
  290. package/components/sv-1DPTltNQ.cjs +20 -0
  291. package/components/sv-CiozMaev.js +89 -0
  292. package/components/task-B8yMzxui.cjs +24 -0
  293. package/components/task-Cr9aRIbV.js +120 -0
  294. package/components/text-field-CvKSS59x-Dn0_1HO7.js +412 -0
  295. package/components/text-field-CvKSS59x-E9LQElL4.cjs +131 -0
  296. package/components/textobject.config-C8opcGG4.js +52 -0
  297. package/components/textobject.config-DbAajFz8.cjs +20 -0
  298. package/components/tr-BkmWvOG2.cjs +20 -0
  299. package/components/tr-D_D4i5iv.js +109 -0
  300. package/components/utils.cjs +20 -0
  301. package/components/utils.js +20 -0
  302. package/components/when-CDK1Tt5Y-BN3qcTK0.cjs +40 -0
  303. package/components/when-CDK1Tt5Y-C6ViXC43.js +47 -0
  304. package/components/zh-CN-DTZ4OmdP.cjs +20 -0
  305. package/components/zh-CN-wsl7eFSd.js +89 -0
  306. package/components/zh-TW-DTZ4OmdP.cjs +20 -0
  307. package/components/zh-TW-wsl7eFSd.js +89 -0
  308. package/custom-elements.json +4260 -0
  309. package/generated/locale-codes.d.ts +13 -0
  310. package/generated/locales/de.d.ts +82 -0
  311. package/generated/locales/es.d.ts +82 -0
  312. package/generated/locales/fr.d.ts +82 -0
  313. package/generated/locales/nl.d.ts +82 -0
  314. package/index.d.ts +23 -0
  315. package/package.json +130 -20
  316. package/utils/formatter/calculate-duration.d.ts +2 -0
  317. package/utils/formatter/decompose-numeric-format.d.ts +11 -0
  318. package/utils/formatter/default-local-formats.d.ts +20 -0
  319. package/utils/formatter/formats/cs.d.ts +20 -0
  320. package/utils/formatter/formats/da.d.ts +20 -0
  321. package/utils/formatter/formats/de.d.ts +21 -0
  322. package/utils/formatter/formats/en-GB.d.ts +21 -0
  323. package/utils/formatter/formats/en-US.d.ts +1 -0
  324. package/utils/formatter/formats/en.d.ts +1 -0
  325. package/utils/formatter/formats/es.d.ts +54 -0
  326. package/utils/formatter/formats/fi.d.ts +20 -0
  327. package/utils/formatter/formats/fr.d.ts +54 -0
  328. package/utils/formatter/formats/he.d.ts +20 -0
  329. package/utils/formatter/formats/hu.d.ts +20 -0
  330. package/utils/formatter/formats/it.d.ts +54 -0
  331. package/utils/formatter/formats/ja.d.ts +20 -0
  332. package/utils/formatter/formats/ko.d.ts +20 -0
  333. package/utils/formatter/formats/mk.d.ts +20 -0
  334. package/utils/formatter/formats/nl.d.ts +21 -0
  335. package/utils/formatter/formats/no.d.ts +21 -0
  336. package/utils/formatter/formats/pl.d.ts +20 -0
  337. package/utils/formatter/formats/pt.d.ts +20 -0
  338. package/utils/formatter/formats/ru.d.ts +20 -0
  339. package/utils/formatter/formats/sv.d.ts +20 -0
  340. package/utils/formatter/formats/tr.d.ts +21 -0
  341. package/utils/formatter/formats/zh-CN.d.ts +20 -0
  342. package/utils/formatter/formats/zh-TW.d.ts +20 -0
  343. package/utils/formatter/formatter.d.ts +9 -0
  344. package/utils/formatter/localize.d.ts +3 -0
  345. package/utils/formatter/smart-datetime-formats.const.d.ts +36 -0
  346. package/utils/get-css-variable.d.ts +1 -0
  347. package/utils/index.d.ts +1 -0
  348. package/utils/localize/set-locale.d.ts +5 -0
  349. package/utils/time/formats.const.d.ts +4 -0
  350. package/utils/time/periods.const.d.ts +15 -0
  351. package/utils/types/column.types.d.ts +56 -0
  352. package/utils/types/type-check.d.ts +7 -0
  353. package/37.js +0 -1
  354. package/729.js +0 -1
  355. package/README.md +0 -1
  356. package/common-31743c5a.js +0 -13
  357. package/common-b02547a0.js +0 -1
  358. package/common-b49d9a9d.js +0 -1
  359. package/common-b5232813.js +0 -56
  360. package/common-cefd4f4c.js +0 -1
  361. package/common-d6cb565f.js +0 -1
  362. package/common-fd868059.js +0 -1
  363. package/common-fedaf338.js +0 -32
  364. package/edit-option-picker/index.js +0 -314
  365. package/edit-option-slider/index.js +0 -102
  366. package/edit-option-toggle/index.js +0 -114
  367. package/index.js +0 -346
  368. package/vendors-93cc3efa.js +0 -1
  369. package/vendors-bb3d84b5.js +0 -1
@@ -0,0 +1,477 @@
1
+ /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
+ *
3
+ * Copyright © 2024 Luzmo
4
+ * All rights reserved.
5
+ * Luzmo web components (“Luzmo Web Components”)
6
+ * must be used according to the Luzmo Terms of Service.
7
+ * This license allows users with a current active Luzmo account
8
+ * to use the Luzmo Web Components. This license terminates
9
+ * automatically if a user no longer has an active Luzmo account.
10
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
11
+ *
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ * SOFTWARE.
19
+ * */
20
+ import { m as s, t as x, s as A, l as L } from "../set-locale-DJYT4V7U.js";
21
+ import "../index-CdCtJpK9.js";
22
+ import "../index-Bee1uunR.js";
23
+ import "../index-BYfDERr7.js";
24
+ import "../index-BBrer3_5.js";
25
+ import "../index-B3ve6cAj.js";
26
+ import "../index-B5Wvyv9s.js";
27
+ import "../index-DnozlYag.js";
28
+ import { k as F, a as $, x as a, n as f } from "../property-B2F7x7Cz.js";
29
+ import { m as S, d as D } from "../sized-mixin-BxMraZLS-B_y0PzR3.js";
30
+ import { d as v } from "../decompose-numeric-format-BuZcjH2k.js";
31
+ import { O as w, T as C } from "../luzmo-icons-BE2T8vWu.js";
32
+ import { a as N } from "../index-CXIT0cYY.js";
33
+ import { r as E } from "../state-Joaryhrg.js";
34
+ import { e as d } from "../query-Ddbd72Um.js";
35
+ const y = () => {
36
+ if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
37
+ const t = document.createElement("style");
38
+ t.setAttribute("data-luzmo-vars", ""), t.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-color-disabled);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-color-negative: #ca221c;--luzmo-color-negative-hover: #b3241f;--luzmo-color-negative-down: #9f231f;--luzmo-color-negative-focus: #b3241f;--luzmo-color-negative-rgb: 202, 34, 28;--luzmo-color-positive: rgb(20, 150, 101);--luzmo-color-positive-hover: rgb(17, 128, 86);--luzmo-color-positive-down: rgb(16, 105, 71);--luzmo-color-positive-focus: rgb(17, 128, 86);--luzmo-color-positive-rgb: 20, 150, 101;--luzmo-color-selected: rgb(110, 110, 110);--luzmo-color-selected-hover: rgb(70, 70, 70);--luzmo-color-selected-down: rgb(40, 40, 40);--luzmo-color-selected-focus: rgb(70, 70, 70);--luzmo-color-selected-hard: #1e1e1e;--luzmo-color-selected-hard-hover: rgb(0, 0, 0);--luzmo-color-selected-hard-down: rgb(0, 0, 0);--luzmo-color-selected-hard-focus: rgb(0, 0, 0);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(t);
39
+ }
40
+ };
41
+ y();
42
+ const O = ":host .settings-container{display:flex;flex-direction:column;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))}: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 )}", M = {
43
+ sum: () => s("Sum", { desc: "Numeric Aggregation option" }),
44
+ cumulativesum: () => s("Cumulative sum", { desc: "Numeric Aggregation option" }),
45
+ average: () => s("Average", { desc: "Numeric Aggregation option" }),
46
+ weightedaverage: () => s("Weighted average", { desc: "Numeric Aggregation option" }),
47
+ median: () => s("Median", { desc: "Numeric Aggregation option" }),
48
+ count: () => s("Count", { desc: "Numeric Aggregation option" }),
49
+ distinctcount: () => s("Distinct count", { desc: "Numeric Aggregation option" }),
50
+ min: () => s("Minimum", { desc: "Numeric Aggregation option" }),
51
+ max: () => s("Maximum", { desc: "Numeric Aggregation option" }),
52
+ stddev: () => s("Standard deviation", { desc: "Numeric Aggregation option" }),
53
+ rate: () => s("Rate", { desc: "Numeric Aggregation option" })
54
+ }, _ = {
55
+ general: "123",
56
+ percentage: "%",
57
+ scientific: "SI"
58
+ }, b = {
59
+ time: () => s("Time", { desc: "Time format option" }),
60
+ short: () => s("Short", { desc: "Short format option" }),
61
+ long: () => s("Long", { desc: "Long format option" })
62
+ }, p = {
63
+ Auto: {
64
+ auto: !0,
65
+ label: () => s("Auto", { desc: "Automatic setting of the option" })
66
+ },
67
+ "1,000.00": {
68
+ auto: !1,
69
+ label: () => "1,000.00",
70
+ thousandSeparator: ",",
71
+ decimalSeparator: "."
72
+ },
73
+ "1.000,00": {
74
+ auto: !1,
75
+ label: () => "1.000,00",
76
+ thousandSeparator: ".",
77
+ decimalSeparator: ","
78
+ },
79
+ "1000.00": { auto: !1, label: () => "1000.00", decimalSeparator: "." },
80
+ "1000,00": { auto: !1, label: () => "1000,00", decimalSeparator: "," }
81
+ }, I = {
82
+ levels: [
83
+ { level: 1, label: "years" },
84
+ { level: 2, label: "quarters" },
85
+ { level: 3, label: "months" },
86
+ { level: 4, label: "weeks" },
87
+ { level: 5, label: "days" },
88
+ { level: 6, label: "hours" },
89
+ { level: 7, label: "minutes" },
90
+ { level: 8, label: "seconds" },
91
+ { level: 9, label: "milliseconds" }
92
+ ]
93
+ };
94
+ var k = Object.defineProperty, T = Object.getOwnPropertyDescriptor, n = (t, e, o, r) => {
95
+ for (var i = r > 1 ? void 0 : r ? T(e, o) : e, u = t.length - 1, m; u >= 0; u--)
96
+ (m = t[u]) && (i = (r ? m(e, o, i) : m(i)) || i);
97
+ return r && i && k(e, o, i), i;
98
+ };
99
+ let l = class extends S(F, {
100
+ validSizes: Object.values(D)
101
+ }) {
102
+ constructor() {
103
+ super(...arguments), this.language = "en", this.slotContent = {}, this.measureColumns = [], this._durationLevels = [], this._renderDurationLevelMenu = !1, this._sendEvent = () => {
104
+ const t = { ...this.slotContent };
105
+ t.format = this._format, t.aggregationFunc = this._aggregationFunc, this._aggregationWeightColumn ? t.aggregationWeight = { ...this._aggregationWeightColumn } : this._aggregationFunc === "rate" && (t.aggregationFunc = "average"), this._displayMode === "duration" ? (t.duration = t.duration ?? {}, t.duration.format = this._durationFormat, t.duration.levels = this._durationLevels) : delete t.duration, this.dispatchEvent(
106
+ new CustomEvent("slot-content-changed", {
107
+ bubbles: !0,
108
+ composed: !0,
109
+ cancelable: !0,
110
+ detail: {
111
+ slotContent: t
112
+ }
113
+ })
114
+ );
115
+ };
116
+ }
117
+ static get styles() {
118
+ return [$(O)];
119
+ }
120
+ _parseSavedNumericFormatSettings() {
121
+ var t, e, o, r, i, u, m, g, h, z;
122
+ if (this._displayMode = ((t = this.slotContent) == null ? void 0 : t.subtype) === "duration" ? ((r = (o = (e = this.slotContent) == null ? void 0 : e.duration) == null ? void 0 : o.levels) == null ? void 0 : r.length) === 1 ? "numeric" : "duration" : "numeric", this._durationFormat = ((u = (i = this.slotContent) == null ? void 0 : i.duration) == null ? void 0 : u.format) ?? "short", this._durationLevels = ((g = (m = this.slotContent) == null ? void 0 : m.duration) == null ? void 0 : g.levels) ?? [1], this._displayMode === "duration")
123
+ this._precision = 2, this._commaDecimals = !1, this._thousandSeparator = !1;
124
+ else {
125
+ this._format = ((h = this.slotContent) == null ? void 0 : h.format) ?? ".0f";
126
+ const c = v(this._format ?? ".0f");
127
+ this._isAuto = ((z = c.typeFormat) == null ? void 0 : z.includes("a")) ?? !1, ["%", "a%", "y", "ay"].includes(c.typeFormat) ? this._displayAs = "percentage" : ["s", "as", "w", "aw"].includes(c.typeFormat) ? this._displayAs = "scientific" : this._displayAs = "general", this._precision = c.precision ? Number.parseInt(c.precision.replace(".", ""), 10) : this._displayAs === "scientific" ? 1 : 0, this._commaDecimals = ["z", "az", "y", "ay", "w", "aw"].includes(
128
+ c.typeFormat
129
+ ), this._thousandSeparator = c.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");
130
+ }
131
+ }
132
+ _setNumericDisplayAs() {
133
+ var t, e;
134
+ 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();
135
+ }
136
+ _setNumericSeparators(t) {
137
+ const e = p[(t == null ? void 0 : t.detail) ?? "Auto"];
138
+ this._thousandSeparator = [",", "."].includes(
139
+ (e == null ? void 0 : e.thousandSeparator) ?? ""
140
+ ), this._commaDecimals = (e == null ? void 0 : e.decimalSeparator) === ",", this._isAuto = e == null ? void 0 : e.auto, this._setNumericFormat(), this._sendEvent();
141
+ }
142
+ _setPrecision() {
143
+ this._precision = this._precisionElement.value, this._setNumericFormat(), this._sendEvent();
144
+ }
145
+ _setNumericFormat() {
146
+ var o;
147
+ let t = "f";
148
+ const e = this.slotContent.subtype === "duration" ? this._durationLevels && ((o = this._durationLevels) == null ? void 0 : o.length) === 1 ? "numeric" : "duration" : "numeric";
149
+ 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);
150
+ }
151
+ _setAggregationFunc() {
152
+ const t = this._aggregationFunc, e = this.slotContent.format;
153
+ if (this._aggregationElement.value !== t) {
154
+ if (this._aggregationFunc = this._aggregationElement.value, t === "rate") {
155
+ const o = v(e), r = ["%", "y", "a%", "ay"].includes(
156
+ o.typeFormat
157
+ );
158
+ this.slotContent.subtype === "currency" && r && this._setNumericDisplayAs();
159
+ }
160
+ this._sendEvent(), (this._aggregationFunc === "rate" || t === "rate") && this.requestUpdate();
161
+ }
162
+ }
163
+ _setAggregationWeight() {
164
+ const t = this._aggregationWeightElement.value;
165
+ if (t === "none")
166
+ this._aggregationWeightColumn = void 0;
167
+ else {
168
+ const e = this.measureColumns.find(
169
+ (o) => o.columnId === t
170
+ );
171
+ this._aggregationWeightColumn = {
172
+ column: e == null ? void 0 : e.columnId,
173
+ set: e == null ? void 0 : e.datasetId,
174
+ columnSubType: e == null ? void 0 : e.subtype
175
+ };
176
+ }
177
+ this._sendEvent();
178
+ }
179
+ _setDurationLevels() {
180
+ const t = this._durationLevels, e = this._durationLevelsElement.value.split(",").filter((o) => o !== "").map((o) => Number.parseInt(o, 10));
181
+ 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();
182
+ }
183
+ _setDurationFormat() {
184
+ var t, e;
185
+ this._durationFormat = (e = (t = this._durationFormatElement) == null ? void 0 : t.selected) == null ? void 0 : e[0], this._fillTimeDurationLevels(), this._setNumericFormat(), this._sendEvent(), this.requestUpdate();
186
+ }
187
+ _fillTimeDurationLevels() {
188
+ if (this._durationFormat === "time") {
189
+ const t = this._durationLevels.sort().at(-1);
190
+ if ([7, 8, 9].includes(t)) {
191
+ const e = {
192
+ lev7: [6],
193
+ lev8: [6, 7],
194
+ lev9: [6, 7, 8]
195
+ };
196
+ for (const o of e["lev" + t])
197
+ this._durationLevels.includes(o) || this._durationLevels.push(o);
198
+ this._durationLevels = [...this._durationLevels].sort();
199
+ }
200
+ }
201
+ }
202
+ // TODO set in upper level the same format for all measures remove this comment once implemented
203
+ /* private setMeasureNumericFormat(
204
+ slot: any,
205
+ changedContent: any,
206
+ changedFormatGroup: string
207
+ ): void {
208
+ if (
209
+ slot.name === 'measure' &&
210
+ changedContent.type === 'numeric' &&
211
+ changedContent.subtype !== 'duration'
212
+ ) {
213
+ slot.content.forEach((content: any) => {
214
+ if (
215
+ content.format !== changedContent.format &&
216
+ content.datasetId === changedContent.datasetId &&
217
+ ((content.columnId && content.columnId === changedContent.columnId) ||
218
+ (content.formula && content.formula === changedContent.formula))
219
+ ) {
220
+ let contentNumericFormatGroup = 'general';
221
+ const contentDecomp = decomposeNumericFormat(content.format);
222
+
223
+ if (['%', 'a%', 'y', 'ay'].includes(contentDecomp.typeFormat)) {
224
+ contentNumericFormatGroup = 'percentage';
225
+ } else if (
226
+ ['s', 'as', 'w', 'aw'].includes(contentDecomp.typeFormat)
227
+ ) {
228
+ contentNumericFormatGroup = 'scientific';
229
+ }
230
+
231
+ if (contentNumericFormatGroup === changedFormatGroup) {
232
+ content.format = changedContent.format;
233
+ }
234
+ }
235
+ });
236
+ }
237
+ } */
238
+ willUpdate(t) {
239
+ var e, o, r;
240
+ t.has("slotContent") && (this._parseSavedNumericFormatSettings(), this._aggregationFunc = ((e = this.slotContent) == null ? void 0 : e.aggregationFunc) ?? ((o = this.slotContent) == null ? void 0 : o.type) === "numeric" ? "sum" : "count", this._aggregationWeightColumn = (r = this.slotContent) == null ? void 0 : r.aggregationWeight), t.has("language") && ([...x].includes(this.language ?? "en") || this.language === "en") && (A(this.language), this.requestUpdate());
241
+ }
242
+ firstUpdated() {
243
+ var t;
244
+ (t = this.slotContent) != null && t.duration && this._durationLevelsOverlay.addEventListener(
245
+ "slottable-request",
246
+ (e) => {
247
+ this._renderDurationLevelMenu = e.data !== N;
248
+ }
249
+ );
250
+ }
251
+ _renderDurationLevelsSettings() {
252
+ const t = I.levels.map((e) => {
253
+ let o = !1;
254
+ return this._durationFormat === "time" && e.level >= 6 && this._durationLevels.includes(e.level) && e.level !== Math.max(...this._durationLevels) && (o = !0), this._durationLevels.length === 1 && this._durationLevels.includes(e.level) && (o = !0), a`<luzmo-menu-item
255
+ value=${e.level}
256
+ ?selected=${this._durationLevels.includes(e.level)}
257
+ ?disabled=${o}
258
+ >
259
+ ${e.label}
260
+ </luzmo-menu-item>`;
261
+ });
262
+ return a` <div class="setting">
263
+ <luzmo-field-label for="duration-levels">
264
+ ${s("Duration levels", { desc: "Label for duration levels setting" })}
265
+ </luzmo-field-label>
266
+ <luzmo-action-button id="trigger" size=${this.size}>
267
+ ${this._durationLevels.length}
268
+ ${this._durationLevels.length === 1 ? "level" : "levels"} active
269
+ <span class="duration-angle-down-icon">
270
+ ${w(C)}
271
+ </span>
272
+ </luzmo-action-button>
273
+ <luzmo-overlay
274
+ id="duration-levels-overlay"
275
+ trigger="trigger@click"
276
+ type="auto"
277
+ placement="bottom-start"
278
+ type="page"
279
+ >
280
+ <luzmo-popover style="position: relative">
281
+ ${this._renderDurationLevelMenu ? a` <luzmo-menu
282
+ id="duration-levels"
283
+ size=${this.size}
284
+ selects="multiple"
285
+ .value=${this._durationLevels.join(",")}
286
+ @change=${this._setDurationLevels}
287
+ >
288
+ ${t}
289
+ </luzmo-menu>` : ""}
290
+ </luzmo-popover>
291
+ </luzmo-overlay>
292
+ </div>`;
293
+ }
294
+ _renderDurationFormatSettings() {
295
+ const t = Object.keys(b).map((e) => e === "time" && (this._maxDurationLevel ?? 1) < 6 ? "" : a`<luzmo-action-button value=${e}>
296
+ ${b[e]()}
297
+ </luzmo-action-button>`);
298
+ return a` <div class="setting">
299
+ <luzmo-field-label for="duration-format">
300
+ ${s("Format", { desc: "Label for format setting" })}
301
+ </luzmo-field-label>
302
+ <luzmo-action-group
303
+ emphasized
304
+ id="duration-format"
305
+ size=${this.size}
306
+ compact=""
307
+ .selected=${[this._durationFormat ?? "short"]}
308
+ selects="single"
309
+ @change=${this._setDurationFormat}
310
+ >
311
+ ${t}
312
+ </luzmo-action-group>
313
+ </div>`;
314
+ }
315
+ _renderNumericDisplayAsSettings() {
316
+ const t = Object.keys(_).map(
317
+ (e) => a`<luzmo-action-button value=${e}
318
+ >${_[e]}</luzmo-action-button
319
+ >`
320
+ );
321
+ return a`<div class="setting">
322
+ <luzmo-field-label for="display-as">
323
+ ${s("Display as", {
324
+ desc: "Label for display as setting for the datetime field"
325
+ })}
326
+ </luzmo-field-label>
327
+ <luzmo-action-group
328
+ emphasized
329
+ id="display-as"
330
+ size=${this.size}
331
+ compact=""
332
+ .selected=${[this._displayAs]}
333
+ selects="single"
334
+ @change=${this._setNumericDisplayAs}
335
+ >
336
+ ${t}
337
+ </luzmo-action-group>
338
+ </div>`;
339
+ }
340
+ _renderNumericFormatSettings() {
341
+ const t = Object.keys(p).map(
342
+ (e) => a`<luzmo-menu-item value=${e}>
343
+ ${p[e].label()}
344
+ </luzmo-menu-item>`
345
+ );
346
+ return a` <div class="setting">
347
+ <luzmo-field-label for="format">
348
+ ${s("Format", { desc: "Label for format setting" })}
349
+ </luzmo-field-label>
350
+ <luzmo-picker
351
+ id="format"
352
+ size=${this.size}
353
+ variant="highlight"
354
+ value=${this._numericFormatGroup ?? "Auto"}
355
+ @change=${this._setNumericSeparators}
356
+ >
357
+ ${t}
358
+ </luzmo-picker>
359
+ </div>
360
+ <div class="setting">
361
+ <luzmo-field-label for="precision" id="precision-label">
362
+ ${this._displayAs === "scientific" ? s("Precision", {
363
+ desc: "Label for precision setting"
364
+ }) : s("Decimals", {
365
+ desc: "Label for decimals setting"
366
+ })}
367
+ </luzmo-field-label>
368
+ <luzmo-number-field
369
+ id="precision"
370
+ min=${this._displayAs === "scientific" ? 1 : 0}
371
+ max="22"
372
+ size=${this.size}
373
+ value=${this._precision ?? (this._displayAs === "scientific" ? 1 : 0)}
374
+ @change=${this._setPrecision}
375
+ ></luzmo-number-field>
376
+ </div>`;
377
+ }
378
+ _renderAggregationSettings() {
379
+ var o, r;
380
+ const t = Object.entries(M).map(
381
+ ([i, u]) => a`<luzmo-menu-item value=${i}>${u()}</luzmo-menu-item>`
382
+ ), e = [
383
+ a`<luzmo-menu-item value="none">No weight</luzmo-menu-item>`,
384
+ ...this.measureColumns.map((i) => {
385
+ var m, g, h;
386
+ const u = ((m = i == null ? void 0 : i.label) == null ? void 0 : m[this.language ?? "en"]) ?? ((h = i == null ? void 0 : i.label) == null ? void 0 : h[(g = Object.keys(i == null ? void 0 : i.label)) == null ? void 0 : g[0]]) ?? "Untitled";
387
+ return a`<luzmo-menu-item value=${i.id}>
388
+ ${u}
389
+ </luzmo-menu-item>`;
390
+ })
391
+ ];
392
+ return a`<div class="settings-row">
393
+ <div class="setting">
394
+ <luzmo-field-label for="aggregation">
395
+ ${s("Aggregation", { desc: "Label for aggregation setting" })}
396
+ </luzmo-field-label>
397
+ <luzmo-picker
398
+ id="aggregation"
399
+ size=${this.size}
400
+ variant="highlight"
401
+ value=${this._aggregationFunc ?? (((o = this.slotContent) == null ? void 0 : o.type) === "numeric" ? "sum" : "count")}
402
+ @change=${this._setAggregationFunc}
403
+ >
404
+ ${t}
405
+ </luzmo-picker>
406
+ </div>
407
+ ${this._aggregationFunc === "rate" ? a`<div class="setting">
408
+ <luzmo-field-label for="weighting-column">
409
+ Denominator
410
+ </luzmo-field-label>
411
+ <luzmo-picker
412
+ id="weighting-column"
413
+ size=${this.size}
414
+ variant="highlight"
415
+ value=${((r = this._aggregationWeightColumn) == null ? void 0 : r.column) ?? "none"}
416
+ @change=${this._setAggregationWeight}
417
+ >
418
+ ${e}
419
+ </luzmo-picker>
420
+ </div>` : ""}
421
+ </div>`;
422
+ }
423
+ render() {
424
+ var t;
425
+ return a`<div class="settings-container">
426
+ <div class="settings-row">
427
+ ${this._displayMode === "duration" ? this._renderDurationLevelsSettings() : this._renderNumericDisplayAsSettings()}
428
+ ${((t = this._durationLevels) == null ? void 0 : t.length) > 1 ? this._renderDurationFormatSettings() : this._renderNumericFormatSettings()}
429
+ </div>
430
+ ${this._renderAggregationSettings()}
431
+ </div>
432
+ </div>`;
433
+ }
434
+ };
435
+ n([
436
+ f({ type: String, reflect: !0 })
437
+ ], l.prototype, "language", 2);
438
+ n([
439
+ f({ type: Object, reflect: !0 })
440
+ ], l.prototype, "slotContent", 2);
441
+ n([
442
+ f({ type: Array, reflect: !1 })
443
+ ], l.prototype, "measureColumns", 2);
444
+ n([
445
+ d("#display-as")
446
+ ], l.prototype, "_displayAsElement", 2);
447
+ n([
448
+ d("#precision")
449
+ ], l.prototype, "_precisionElement", 2);
450
+ n([
451
+ d("#aggregation")
452
+ ], l.prototype, "_aggregationElement", 2);
453
+ n([
454
+ d("#weighting-column")
455
+ ], l.prototype, "_aggregationWeightElement", 2);
456
+ n([
457
+ d("#duration-levels")
458
+ ], l.prototype, "_durationLevelsElement", 2);
459
+ n([
460
+ d("#duration-format")
461
+ ], l.prototype, "_durationFormatElement", 2);
462
+ n([
463
+ d("#duration-levels-overlay")
464
+ ], l.prototype, "_durationLevelsOverlay", 2);
465
+ n([
466
+ E()
467
+ ], l.prototype, "_renderDurationLevelMenu", 2);
468
+ l = n([
469
+ L()
470
+ ], l);
471
+ customElements.get("luzmo-display-settings-numeric") || customElements.define(
472
+ "luzmo-display-settings-numeric",
473
+ l
474
+ );
475
+ export {
476
+ l as LuzmoDisplaySettingsNumeric
477
+ };
@@ -0,0 +1,44 @@
1
+ import '@luzmo/lucero/checkbox';
2
+ import '@luzmo/lucero/field-label';
3
+ import '@luzmo/lucero/menu';
4
+ import '@luzmo/lucero/number-field';
5
+ import '@luzmo/lucero/picker';
6
+ import { LuzmoElement } from '@luzmo/lucero/utils';
7
+ import { CSSResultArray, PropertyValues, TemplateResult } from 'lit';
8
+ declare const LuzmoDisplaySettingsPeriodOverPeriod_base: typeof LuzmoElement & {
9
+ new (...args: any[]): import("@luzmo/lucero").SizedElementInterface;
10
+ prototype: import("@luzmo/lucero").SizedElementInterface;
11
+ };
12
+ /**
13
+ * @element luzmo-display-settings-period-over-period
14
+ * @fires slot-content-changed - Event that is fired when the slot content is changed
15
+ */
16
+ export declare class LuzmoDisplaySettingsPeriodOverPeriod extends LuzmoDisplaySettingsPeriodOverPeriod_base {
17
+ static get styles(): CSSResultArray;
18
+ /**
19
+ * The language used in the settings
20
+ */
21
+ language: string;
22
+ /**
23
+ * The slotContent that is passed to the settings
24
+ */
25
+ slotContent: any;
26
+ private _periodComparisonElement;
27
+ private _numberPeriodsElement;
28
+ private _periodLevelElement;
29
+ private _incompletePeriodsElement;
30
+ private _periodComparison?;
31
+ private _numberPeriods?;
32
+ private _periodLevel?;
33
+ private _incompletePeriods?;
34
+ private _minLevel?;
35
+ protected willUpdate(changedProperties: PropertyValues): void;
36
+ private setPeriodComparison;
37
+ private setNumberOfPeriods;
38
+ private setPeriodLevel;
39
+ private setIncompletePeriods;
40
+ private sendEvent;
41
+ private renderPeriodSettings;
42
+ protected render(): TemplateResult;
43
+ }
44
+ export {};
@@ -0,0 +1,36 @@
1
+ export declare const PERIOD_OVER_PERIOD_VALUES: Record<PeriodOverPeriodType, () => string>;
2
+ export declare const LEVEL_LIST: {
3
+ key: string;
4
+ i18n: () => string;
5
+ }[];
6
+ /**
7
+ * Period over period comparison type:
8
+ * 'none' - turned off,
9
+ * 'past' - absolute value comparison to the past,
10
+ * 'absoluteChange' - absolute change comparison to the past,
11
+ * 'percentageChange' - percentage change comparison to the past
12
+ */
13
+ export type PeriodOverPeriodType = 'none' | 'past' | 'absoluteChange' | 'percentageChange';
14
+ export interface PeriodOverPeriod {
15
+ /**
16
+ * Period over period comparison type
17
+ */
18
+ type: PeriodOverPeriodType;
19
+ /**
20
+ * Period of time level
21
+ * 0 - period, 1 - year, 2 - quarter, 3 - month, 4 - week, 5 - day... 9 - millisecond
22
+ */
23
+ level: number;
24
+ /**
25
+ * Number of periods
26
+ */
27
+ quantity: number;
28
+ /**
29
+ * Turn ON/OFF period to date comparison
30
+ */
31
+ periodToDate: boolean;
32
+ /**
33
+ * Category date level to disallow smaller Period-Over-Period levels. For internal use only
34
+ */
35
+ minLevel: number;
36
+ }