@luzmo/analytics-components-kit 1.0.1-alpha.48 → 1.0.1-alpha.49

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 (191) hide show
  1. package/components/{bar-chart-options.config-BdbbHUJZ.js → bar-chart-options.config-D1mb5TDl.js} +1 -0
  2. package/components/{bar-chart-options.config-C9XGEujs.cjs → bar-chart-options.config-DcxEkOT5.cjs} +1 -1
  3. package/components/{bar-chart-options.de-DwTn_qfu.js → bar-chart-options.de-BQ4qGaQc.js} +1 -0
  4. package/components/{bar-chart-options.de-BGzu5Zgd.cjs → bar-chart-options.de-Dr5zKz8Q.cjs} +1 -1
  5. package/components/{column-chart-options.en-D1UfGsS3.cjs → bar-chart-options.en-DdQ2PYrw.cjs} +1 -1
  6. package/components/{bar-chart-options.en-Crc8tYUJ.js → bar-chart-options.en-LjG6f4hw.js} +1 -0
  7. package/components/{bar-chart-options.es-ByT_D06p.js → bar-chart-options.es-BfIKCPf-.js} +1 -0
  8. package/components/{bar-chart-options.es-B2UWafXc.cjs → bar-chart-options.es-DgYVxn9U.cjs} +1 -1
  9. package/components/{bar-chart-options.fr-BwiGRlQf.js → bar-chart-options.fr-Cg1lQV2y.js} +1 -0
  10. package/components/{bar-chart-options.fr-CP7DTrlk.cjs → bar-chart-options.fr-rteFm93C.cjs} +1 -1
  11. package/components/{column-chart-options.nl-3wAj9uWY.cjs → bar-chart-options.nl--gwlkpc0.cjs} +1 -1
  12. package/components/{bar-chart-options.nl-DzXnHdwX.js → bar-chart-options.nl-CB2W4rzf.js} +1 -0
  13. package/components/{calculate-data-item-icon-DlfbBvFN.cjs → calculate-data-item-icon-Dn-9Kd0U.cjs} +1 -1
  14. package/components/{calculate-data-item-icon-BiIL_s4Z.js → calculate-data-item-icon-Dpvf1aLI.js} +51 -51
  15. package/components/{column-chart-options.config-BqSQ1Sl9.js → column-chart-options.config-B5SjBVdy.js} +10 -9
  16. package/components/{column-chart-options.config-Bi0RAzK-.cjs → column-chart-options.config-BjDvA7i9.cjs} +1 -1
  17. package/components/{column-chart-options.de-pgdcIHqk.cjs → column-chart-options.de-BU__cJy3.cjs} +1 -1
  18. package/components/{column-chart-options.de-VQVdi8aP.js → column-chart-options.de-BkkWD9rB.js} +1 -0
  19. package/components/{bar-chart-options.en-D1UfGsS3.cjs → column-chart-options.en-DdQ2PYrw.cjs} +1 -1
  20. package/components/{column-chart-options.en-Crc8tYUJ.js → column-chart-options.en-LjG6f4hw.js} +1 -0
  21. package/components/{column-chart-options.es-CT9ZtjV_.js → column-chart-options.es-BgOc-gTh.js} +1 -0
  22. package/components/{column-chart-options.es-CAAXJv_2.cjs → column-chart-options.es-CkaTU6qn.cjs} +1 -1
  23. package/components/{column-chart-options.fr-BwiGRlQf.js → column-chart-options.fr-Cg1lQV2y.js} +1 -0
  24. package/components/{column-chart-options.fr-CP7DTrlk.cjs → column-chart-options.fr-rteFm93C.cjs} +1 -1
  25. package/components/{bar-chart-options.nl-DZe2pKRa.cjs → column-chart-options.nl-Bhe6rcUo.cjs} +1 -1
  26. package/components/{column-chart-options.nl-DB2dcotu.js → column-chart-options.nl-CAeBYwQC.js} +1 -0
  27. package/components/{de-eIqMhTVC.cjs → de-Cxe7xkT4.cjs} +1 -1
  28. package/components/{de-BbcctJsI.js → de-ZPzjN2kc.js} +0 -1
  29. package/components/directive-BOOaQO_r.cjs +24 -0
  30. package/components/directive-CF_9GVrT.js +46 -0
  31. package/components/display-settings/display-settings.d.ts +2 -2
  32. package/components/display-settings/index.cjs +1 -1
  33. package/components/display-settings/index.js +2 -2
  34. package/components/display-settings-binning/index.cjs +1 -1
  35. package/components/display-settings-binning/index.js +11 -11
  36. package/components/display-settings-datetime/index.cjs +1 -1
  37. package/components/display-settings-datetime/index.js +13 -13
  38. package/components/display-settings-grand-totals/index.cjs +1 -1
  39. package/components/display-settings-grand-totals/index.js +11 -11
  40. package/components/display-settings-numeric/display-settings-numeric.d.ts +3 -1
  41. package/components/display-settings-numeric/index.cjs +61 -40
  42. package/components/display-settings-numeric/index.js +223 -182
  43. package/components/display-settings-period-over-period/index.cjs +6 -6
  44. package/components/display-settings-period-over-period/index.js +11 -11
  45. package/components/draggable-data-item/draggable-data-item.d.ts +1 -0
  46. package/components/draggable-data-item/index.cjs +8 -5
  47. package/components/draggable-data-item/index.js +44 -38
  48. package/components/draggable-data-item-level/draggable-data-item-level.d.ts +4 -0
  49. package/components/draggable-data-item-level/index.cjs +10 -10
  50. package/components/draggable-data-item-level/index.js +102 -77
  51. package/components/droppable-slot/droppable-slot.d.ts +29 -9
  52. package/components/droppable-slot/index.cjs +25 -71
  53. package/components/droppable-slot/index.js +274 -623
  54. package/components/edit-item/index.cjs +2 -2
  55. package/components/edit-item/index.js +18 -18
  56. package/components/edit-option/index.cjs +1 -1
  57. package/components/edit-option/index.js +2 -2
  58. package/components/edit-option-action-button-group/index.cjs +1 -1
  59. package/components/edit-option-action-button-group/index.js +6 -6
  60. package/components/{edit-option-base-D25zHZVl.js → edit-option-base-CG0JcbX9.js} +3 -3
  61. package/components/{edit-option-base-h5ndfVK4.cjs → edit-option-base-a2yoNqdf.cjs} +1 -1
  62. package/components/edit-option-color-palette-picker/index.cjs +1 -1
  63. package/components/edit-option-color-palette-picker/index.js +3 -3
  64. package/components/edit-option-color-picker/index.cjs +1 -1
  65. package/components/edit-option-color-picker/index.js +5 -5
  66. package/components/edit-option-color-range/index.cjs +1 -1
  67. package/components/edit-option-color-range/index.js +12 -12
  68. package/components/edit-option-multi-language-field/index.cjs +1 -1
  69. package/components/edit-option-multi-language-field/index.js +4 -4
  70. package/components/edit-option-number-field/index.cjs +1 -1
  71. package/components/edit-option-number-field/index.js +5 -5
  72. package/components/edit-option-picker/index.cjs +1 -1
  73. package/components/edit-option-picker/index.js +5 -5
  74. package/components/edit-option-position-picker/index.cjs +1 -1
  75. package/components/edit-option-position-picker/index.js +4 -4
  76. package/components/edit-option-positions-number-field/index.cjs +1 -1
  77. package/components/edit-option-positions-number-field/index.js +6 -6
  78. package/components/edit-option-radio-button-group/index.cjs +1 -1
  79. package/components/edit-option-radio-button-group/index.js +4 -4
  80. package/components/edit-option-slider/index.cjs +1 -1
  81. package/components/edit-option-slider/index.js +3 -3
  82. package/components/edit-option-switch/index.cjs +1 -1
  83. package/components/edit-option-switch/index.js +3 -3
  84. package/components/edit-option-text-field/index.cjs +1 -1
  85. package/components/edit-option-text-field/index.js +7 -7
  86. package/components/{es-tWaYVbsQ.cjs → es-4dEouIgb.cjs} +1 -1
  87. package/components/{es-ByWFTJ0s.js → es-C0JGlz18.js} +0 -1
  88. package/components/filter-data-item-picker/index.cjs +1 -1
  89. package/components/filter-data-item-picker/index.js +8 -8
  90. package/components/filter-expression-picker/index.cjs +1 -1
  91. package/components/filter-expression-picker/index.js +2 -2
  92. package/components/filter-item/index.cjs +1 -1
  93. package/components/filter-item/index.js +24 -24
  94. package/components/filter-value-picker/index.cjs +1 -1
  95. package/components/filter-value-picker/index.js +4 -4
  96. package/components/filter-value-picker-datetime/index.cjs +1 -1
  97. package/components/filter-value-picker-datetime/index.js +302 -302
  98. package/components/filter-value-picker-hierarchy/index.cjs +1 -1
  99. package/components/filter-value-picker-hierarchy/index.js +8 -8
  100. package/components/filter-value-picker-numeric/index.cjs +1 -1
  101. package/components/filter-value-picker-numeric/index.js +8 -8
  102. package/components/{focusable-Bhf_beoW.js → focusable-BbymtxWI.js} +1 -1
  103. package/components/{focusable-B8t8a-WJ.cjs → focusable-DAGGGYyz.cjs} +1 -1
  104. package/components/{fr-C5b2Wgoz.js → fr-B_-_f-VN.js} +0 -1
  105. package/components/{fr-2igiTsHU.cjs → fr-Dwulhlbi.cjs} +1 -1
  106. package/components/grid/index.cjs +18 -22
  107. package/components/grid/index.js +28 -49
  108. package/components/{if-defined-Dg09naf2.js → if-defined-Barg9gGQ.js} +1 -1
  109. package/components/{if-defined-DjdbEoAa.cjs → if-defined-wiCAR_aA.cjs} +1 -1
  110. package/components/{index-cbfU96gS.cjs → index-1oIrlkAr.cjs} +8 -8
  111. package/components/{index-BqSQoHjg.js → index-5Z9GD60H.js} +6 -6
  112. package/components/{index-9LxnqLJa.js → index-B2ngKWOI.js} +2 -2
  113. package/components/{index-COU9XhBt.js → index-BC1LV3vH.js} +1 -1
  114. package/components/{index-Cf_a7VrO.js → index-BEtf1WaQ.js} +2 -2
  115. package/components/{index-DMhm0FM8.cjs → index-BbpsZYZF.cjs} +25 -26
  116. package/components/{index-DRLFjkH0.cjs → index-BfzppmHn.cjs} +2 -2
  117. package/components/{index-BobhBKA2.js → index-BssHAgUU.js} +1 -1
  118. package/components/index-Bt3JTHTC.js +787 -0
  119. package/components/index-CY_cyFdI.cjs +174 -0
  120. package/components/{index-DeIay7ZE.js → index-CbuHBIDB.js} +2 -2
  121. package/components/{index-BukPAqqU.cjs → index-Ck5VRoXN.cjs} +1 -1
  122. package/components/{index-DYmi-X87.js → index-DE3d0E0P.js} +2 -2
  123. package/components/{index-fwJBhawL.cjs → index-DSQyBS9Z.cjs} +1 -1
  124. package/components/{index-BY1yDIAI.js → index-DTI4dIyd.js} +586 -634
  125. package/components/index-D_jFGBMs.js +174 -0
  126. package/components/{index-D9yzIoGv.js → index-Delpl7qa.js} +368 -306
  127. package/components/{index-B7AFYrfv.cjs → index-Df-_TbOD.cjs} +1 -1
  128. package/components/{index-C6NpWavw.js → index-DsP81c4M.js} +2 -2
  129. package/components/index-Dy_5M3M5.cjs +42 -0
  130. package/components/{index-Bpdwb9Js.cjs → index-MPM_B4re.cjs} +3 -3
  131. package/components/{index-ydBgjAru.js → index-N845QLku.js} +16 -16
  132. package/components/{index--3gSNupB.cjs → index-Tx5oQjbt.cjs} +1 -1
  133. package/components/{index-BSgp4MWQ.cjs → index-cHKqEi5-.cjs} +1 -1
  134. package/components/index-eBsINoH9.cjs +20 -0
  135. package/components/{index-BKx2WhDB.cjs → index-tXl_aMnZ.cjs} +1 -1
  136. package/components/index.cjs +1 -1
  137. package/components/index.js +4 -4
  138. package/components/{localized-decorator-DNr1P1m0.js → localized-decorator-Bl5gcI6n.js} +1 -1
  139. package/components/{localized-decorator-SOrjcPab.cjs → localized-decorator-DIXYZ3RL.cjs} +1 -1
  140. package/components/{luzmo-icons-4Tmb3sKr.js → luzmo-icons-CVeTZ59u.js} +9 -9
  141. package/components/{luzmo-icons-4nDFv1Lq-D6-m-VWM.cjs → luzmo-icons-DbwDQtuO-DSQ-uVxy.cjs} +2 -2
  142. package/components/{luzmo-icons-4nDFv1Lq-DffGNBpO.js → luzmo-icons-DbwDQtuO-QG0fLECn.js} +7 -7
  143. package/components/{luzmo-icons-Bvm-_ECi.cjs → luzmo-icons-DonyjSXg.cjs} +1 -1
  144. package/components/{nl-B50x7wMn.cjs → nl-DxdBIXDd.cjs} +1 -1
  145. package/components/{nl-76jn_zMH.js → nl-gdQCG4WV.js} +0 -1
  146. package/components/{periods.const-CfXsouLz.cjs → periods.const-7sXlqgEo.cjs} +1 -1
  147. package/components/{periods.const-C89NNRX-.js → periods.const-B7FKokcH.js} +1 -1
  148. package/components/property-Cu4Q1hS4.cjs +42 -0
  149. package/components/{property-BFMfZY1k.js → property-DCzt3DR1.js} +277 -277
  150. package/components/{set-locale-Cam8nRIW.cjs → set-locale-DCPlazsZ.cjs} +1 -1
  151. package/components/{set-locale-DbEAMqUs.js → set-locale-GI34z_M7.js} +1 -1
  152. package/components/{sized-mixin-CkdMApAU.js → sized-mixin-BGzkX2g1.js} +1 -1
  153. package/components/{sized-mixin-C48t6K7U.cjs → sized-mixin-j_7aJM4b.cjs} +1 -1
  154. package/components/slot-contents-picker/index.cjs +1 -1
  155. package/components/slot-contents-picker/index.js +16 -16
  156. package/components/slot-menu/index.cjs +27 -22
  157. package/components/slot-menu/index.js +237 -148
  158. package/components/slot-menu/slot-menu.d.ts +34 -12
  159. package/components/slot-menu-list/index.cjs +1 -1
  160. package/components/slot-menu-list/index.js +5 -5
  161. package/components/{state-CuE7TJCY.cjs → state-fyl3IYMu.cjs} +1 -1
  162. package/components/{state-BSTa7W6f.js → state-nDsQPund.js} +1 -1
  163. package/components/{task-CDsB8Kbr.js → task-Bh_X-xIU.js} +1 -1
  164. package/components/{task-0B-FC3rj.cjs → task-CwmAXlv0.cjs} +1 -1
  165. package/components/{text-field-ol9Ed5lQ-cRqtIf_0.cjs → text-field-BIADXoLC-B8w9TVmS.cjs} +1 -1
  166. package/components/{text-field-ol9Ed5lQ-DbpeM4EP.js → text-field-BIADXoLC-B9oE05VF.js} +1 -1
  167. package/custom-elements.json +226 -41
  168. package/item-definitions/bar-chart/i18n/bar-chart-options.de.d.ts +1 -0
  169. package/item-definitions/bar-chart/i18n/bar-chart-options.en.d.ts +1 -0
  170. package/item-definitions/bar-chart/i18n/bar-chart-options.es.d.ts +1 -0
  171. package/item-definitions/bar-chart/i18n/bar-chart-options.fr.d.ts +1 -0
  172. package/item-definitions/bar-chart/i18n/bar-chart-options.nl.d.ts +1 -0
  173. package/item-definitions/box-plot/box-plot-options.config.d.ts +1 -1
  174. package/item-definitions/choropleth-map/choropleth-map-options.config.d.ts +1 -1
  175. package/item-definitions/column-chart/i18n/column-chart-options.de.d.ts +1 -0
  176. package/item-definitions/column-chart/i18n/column-chart-options.en.d.ts +1 -0
  177. package/item-definitions/column-chart/i18n/column-chart-options.es.d.ts +1 -0
  178. package/item-definitions/column-chart/i18n/column-chart-options.fr.d.ts +1 -0
  179. package/item-definitions/column-chart/i18n/column-chart-options.nl.d.ts +1 -0
  180. package/item-definitions/hexbin-map/hexbin-map-options.config.d.ts +1 -1
  181. package/item-definitions/route-map/route-map-options.config.d.ts +1 -1
  182. package/item-definitions/spike-map/spike-map-options.config.d.ts +1 -1
  183. package/package.json +1 -1
  184. package/utils/data-broker/index.d.ts +9 -0
  185. package/utils/store/slot-store.d.ts +9 -3
  186. package/components/index-Be-pSgzQ.js +0 -174
  187. package/components/index-DCdx3dxQ.cjs +0 -42
  188. package/components/index-PGX2p9Ns.js +0 -304
  189. package/components/index-TQG9Xdxu.cjs +0 -20
  190. package/components/index-VHrmgynd.cjs +0 -121
  191. package/components/property-BV1QaY8E.cjs +0 -42
@@ -17,54 +17,56 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- import { m as s, g as x, t as A, s as L } from "../set-locale-DbEAMqUs.js";
21
- import { l as F } from "../localized-decorator-DNr1P1m0.js";
22
- import "../index-Be-pSgzQ.js";
20
+ import { m as a, g as w, t as S, s as D } from "../set-locale-GI34z_M7.js";
21
+ import { l as C } from "../localized-decorator-Bl5gcI6n.js";
22
+ import "../index-D_jFGBMs.js";
23
23
  import "../index-BW3AUnEX.js";
24
24
  import "../index-CsDgk_sj.js";
25
- import "../index-BobhBKA2.js";
26
- import "../index-C6NpWavw.js";
27
- import "../index-9LxnqLJa.js";
25
+ import "../index-BssHAgUU.js";
26
+ import "../index-DsP81c4M.js";
27
+ import "../index-B2ngKWOI.js";
28
28
  import "../index-CTVNGPeT.js";
29
- import { d as v } from "../decompose-numeric-format-BuZcjH2k.js";
30
- import { r as S, x as l, E as $, n as f } from "../property-BFMfZY1k.js";
31
- import { a8 as D, ac as w } from "../luzmo-icons-4Tmb3sKr.js";
32
- import { a as C } from "../index-DUF6bALI.js";
33
- import { r as N } from "../state-BSTa7W6f.js";
34
- import { e as d } from "../query-Ddbd72Um.js";
35
- import { L as E } from "../focusable-Bhf_beoW.js";
36
- import { S as M, E as O } from "../sized-mixin-CkdMApAU.js";
37
- const y = () => {
29
+ import { d as y } from "../decompose-numeric-format-BuZcjH2k.js";
30
+ import { r as N, x as r, E as f, n as _ } from "../property-DCzt3DR1.js";
31
+ import { a8 as z, ac as E } from "../luzmo-icons-CVeTZ59u.js";
32
+ import { a as I } from "../index-DUF6bALI.js";
33
+ import "../index-BmshD32H.js";
34
+ import { c as M, a as O } from "../calculate-data-item-icon-Dpvf1aLI.js";
35
+ import { l as x } from "../localize-BX7q0S0M.js";
36
+ import { r as k } from "../state-nDsQPund.js";
37
+ import { e as g } from "../query-Ddbd72Um.js";
38
+ import { L as W } from "../focusable-BbymtxWI.js";
39
+ import { S as T, E as U } from "../sized-mixin-BGzkX2g1.js";
40
+ const L = () => {
38
41
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
39
- const t = document.createElement("style");
40
- 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-negative-color: #ca221c;--luzmo-negative-color-hover: #b3241f;--luzmo-negative-color-down: #9f231f;--luzmo-negative-color-focus: #b3241f;--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: rgb(17, 128, 86);--luzmo-positive-color-down: rgb(16, 105, 71);--luzmo-positive-color-focus: rgb(17, 128, 86);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: rgb(70, 70, 70);--luzmo-selected-color-down: rgb(40, 40, 40);--luzmo-selected-color-focus: rgb(70, 70, 70);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: rgb(0, 0, 0);--luzmo-selected-color-hard-down: rgb(0, 0, 0);--luzmo-selected-color-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);
42
+ const e = document.createElement("style");
43
+ e.setAttribute("data-luzmo-vars", ""), e.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-secondary-outline: rgba(255, 0, 255, 0.2);--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: #b3241f;--luzmo-negative-color-down: #9f231f;--luzmo-negative-color-focus: #b3241f;--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: rgb(17, 128, 86);--luzmo-positive-color-down: rgb(16, 105, 71);--luzmo-positive-color-focus: rgb(17, 128, 86);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: rgb(70, 70, 70);--luzmo-selected-color-down: rgb(40, 40, 40);--luzmo-selected-color-focus: rgb(70, 70, 70);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: rgb(0, 0, 0);--luzmo-selected-color-hard-down: rgb(0, 0, 0);--luzmo-selected-color-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(e);
41
44
  }
42
45
  };
43
- y();
44
- const I = ":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 )}", k = {
45
- sum: () => s("Sum", { desc: "Numeric Aggregation option" }),
46
- cumulativesum: () => s("Cumulative sum", { desc: "Numeric Aggregation option" }),
47
- average: () => s("Average", { desc: "Numeric Aggregation option" }),
48
- weightedaverage: () => s("Weighted average", { desc: "Numeric Aggregation option" }),
49
- median: () => s("Median", { desc: "Numeric Aggregation option" }),
50
- count: () => s("Count", { desc: "Numeric Aggregation option" }),
51
- distinctcount: () => s("Distinct count", { desc: "Numeric Aggregation option" }),
52
- min: () => s("Minimum", { desc: "Numeric Aggregation option" }),
53
- max: () => s("Maximum", { desc: "Numeric Aggregation option" }),
54
- stddev: () => s("Standard deviation", { desc: "Numeric Aggregation option" }),
55
- rate: () => s("Rate", { desc: "Numeric Aggregation option" })
56
- }, _ = {
46
+ L();
47
+ const j = ":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))}.dataset-header{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;font-weight:600;text-transform:uppercase;margin-bottom:.5rem;margin-top:.5rem;margin-left:1rem}.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 )}", P = {
48
+ sum: () => a("Sum", { desc: "Numeric Aggregation option" }),
49
+ cumulativesum: () => a("Cumulative sum", { desc: "Numeric Aggregation option" }),
50
+ average: () => a("Average", { desc: "Numeric Aggregation option" }),
51
+ median: () => a("Median", { desc: "Numeric Aggregation option" }),
52
+ count: () => a("Count", { desc: "Numeric Aggregation option" }),
53
+ distinctcount: () => a("Distinct count", { desc: "Numeric Aggregation option" }),
54
+ min: () => a("Minimum", { desc: "Numeric Aggregation option" }),
55
+ max: () => a("Maximum", { desc: "Numeric Aggregation option" }),
56
+ stddev: () => a("Standard deviation", { desc: "Numeric Aggregation option" }),
57
+ rate: () => a("Rate", { desc: "Numeric Aggregation option" })
58
+ }, A = {
57
59
  general: "123",
58
60
  percentage: "%",
59
61
  scientific: "SI"
60
- }, b = {
61
- time: () => s("Time", { desc: "Time format option" }),
62
- short: () => s("Short", { desc: "Short format option" }),
63
- long: () => s("Long", { desc: "Long format option" })
64
- }, p = {
62
+ }, $ = {
63
+ time: () => a("Time", { desc: "Time format option" }),
64
+ short: () => a("Short", { desc: "Short format option" }),
65
+ long: () => a("Long", { desc: "Long format option" })
66
+ }, v = {
65
67
  Auto: {
66
68
  auto: !0,
67
- label: () => s("Auto", { desc: "Automatic setting of the option" })
69
+ label: () => a("Auto", { desc: "Automatic setting of the option" })
68
70
  },
69
71
  "1,000.00": {
70
72
  auto: !1,
@@ -80,7 +82,7 @@ const I = ":host .settings-container{display:flex;flex-direction:column;gap:var(
80
82
  },
81
83
  "1000.00": { auto: !1, label: () => "1000.00", decimalSeparator: "." },
82
84
  "1000,00": { auto: !1, label: () => "1000,00", decimalSeparator: "," }
83
- }, T = {
85
+ }, G = {
84
86
  levels: [
85
87
  { level: 1, label: "years" },
86
88
  { level: 2, label: "quarters" },
@@ -93,109 +95,116 @@ const I = ":host .settings-container{display:flex;flex-direction:column;gap:var(
93
95
  { level: 9, label: "milliseconds" }
94
96
  ]
95
97
  };
96
- var W = Object.defineProperty, U = Object.getOwnPropertyDescriptor, u = (t, e, o, a) => {
97
- for (var i = a > 1 ? void 0 : a ? U(e, o) : e, r = t.length - 1, m; r >= 0; r--)
98
- (m = t[r]) && (i = (a ? m(e, o, i) : m(i)) || i);
99
- return a && i && W(e, o, i), i;
98
+ var R = Object.defineProperty, q = Object.getOwnPropertyDescriptor, m = (e, t, o, s) => {
99
+ for (var i = s > 1 ? void 0 : s ? q(t, o) : t, l = e.length - 1, u; l >= 0; l--)
100
+ (u = e[l]) && (i = (s ? u(t, o, i) : u(i)) || i);
101
+ return s && i && R(t, o, i), i;
100
102
  };
101
- let n = class extends M(E, {
102
- validSizes: Object.values(O)
103
+ let n = class extends T(W, {
104
+ validSizes: Object.values(U)
103
105
  }) {
104
106
  constructor() {
105
107
  super(...arguments), this.language = "en", this.slotContent = {}, this.measureColumns = [], this._durationLevels = [], this._renderDurationLevelMenu = !1, this._sendEvent = () => {
106
- const t = { ...this.slotContent };
107
- 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(
108
+ const e = { ...this.slotContent };
109
+ e.format = this._format, e.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(
108
110
  new CustomEvent("slot-content-changed", {
109
111
  bubbles: !0,
110
112
  composed: !0,
111
113
  cancelable: !0,
112
114
  detail: {
113
- slotContent: t
115
+ slotContent: e
114
116
  }
115
117
  })
116
118
  );
117
119
  };
118
120
  }
119
121
  static get styles() {
120
- return [S(I)];
122
+ return [N(j)];
121
123
  }
122
124
  _parseSavedNumericFormatSettings() {
123
- var t, e, o, a, i, r, m, g, h, z;
124
- if (this._displayMode = ((t = this.slotContent) == null ? void 0 : t.subtype) === "duration" ? ((a = (o = (e = this.slotContent) == null ? void 0 : e.duration) == null ? void 0 : o.levels) == null ? void 0 : a.length) === 1 ? "numeric" : "duration" : "numeric", this._durationFormat = ((r = (i = this.slotContent) == null ? void 0 : i.duration) == null ? void 0 : r.format) ?? "short", this._durationLevels = ((g = (m = this.slotContent) == null ? void 0 : m.duration) == null ? void 0 : g.levels) ?? [1], this._displayMode === "duration")
125
+ var e, t, o, s, i, l, u, c, h, p;
126
+ if (this._displayMode = ((e = this.slotContent) == null ? void 0 : e.subtype) === "duration" ? ((s = (o = (t = this.slotContent) == null ? void 0 : t.duration) == null ? void 0 : o.levels) == null ? void 0 : s.length) === 1 ? "numeric" : "duration" : "numeric", this._durationFormat = ((l = (i = this.slotContent) == null ? void 0 : i.duration) == null ? void 0 : l.format) ?? "short", this._durationLevels = ((c = (u = this.slotContent) == null ? void 0 : u.duration) == null ? void 0 : c.levels) ?? [1], this._displayMode === "duration")
125
127
  this._precision = 2, this._commaDecimals = !1, this._thousandSeparator = !1;
126
128
  else {
127
129
  this._format = ((h = this.slotContent) == null ? void 0 : h.format) ?? ".0f";
128
- const c = v(this._format ?? ".0f");
129
- 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(
130
- c.typeFormat
131
- ), 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
+ const d = y(this._format ?? ".0f");
131
+ this._isAuto = ((p = d.typeFormat) == null ? void 0 : p.includes("a")) ?? !1, ["%", "a%", "y", "ay"].includes(d.typeFormat) ? this._displayAs = "percentage" : ["s", "as", "w", "aw"].includes(d.typeFormat) ? this._displayAs = "scientific" : this._displayAs = "general", this._precision = d.precision ? Number.parseInt(d.precision.replace(".", ""), 10) : this._displayAs === "scientific" ? 1 : 0, this._commaDecimals = ["z", "az", "y", "ay", "w", "aw"].includes(
132
+ d.typeFormat
133
+ ), this._thousandSeparator = d.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");
132
134
  }
133
135
  }
134
136
  _setNumericDisplayAs() {
135
- var t, e;
136
- 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();
137
+ var e, t;
138
+ this._displayAs = ((t = (e = this._displayAsElement) == null ? void 0 : e.selected) == null ? void 0 : t[0]) ?? "general", this._displayAs === "scientific" && (this._precision = Math.max(this._precision ?? 0, 1), this._thousandSeparator = !1), this._setNumericFormat(), this._sendEvent(), this.requestUpdate();
137
139
  }
138
- _setNumericSeparators(t) {
139
- const e = p[(t == null ? void 0 : t.detail) ?? "Auto"];
140
+ _setNumericSeparators(e) {
141
+ const t = v[(e == null ? void 0 : e.detail) ?? "Auto"];
140
142
  this._thousandSeparator = [",", "."].includes(
141
- (e == null ? void 0 : e.thousandSeparator) ?? ""
142
- ), this._commaDecimals = (e == null ? void 0 : e.decimalSeparator) === ",", this._isAuto = e == null ? void 0 : e.auto, this._setNumericFormat(), this._sendEvent();
143
+ (t == null ? void 0 : t.thousandSeparator) ?? ""
144
+ ), this._commaDecimals = (t == null ? void 0 : t.decimalSeparator) === ",", this._isAuto = t == null ? void 0 : t.auto, this._setNumericFormat(), this._sendEvent();
143
145
  }
144
146
  _setPrecision() {
145
147
  this._precision = this._precisionElement.value, this._setNumericFormat(), this._sendEvent();
146
148
  }
147
149
  _setNumericFormat() {
148
150
  var o;
149
- let t = "f";
150
- const e = this.slotContent.subtype === "duration" ? this._durationLevels && ((o = this._durationLevels) == null ? void 0 : o.length) === 1 ? "numeric" : "duration" : "numeric";
151
- 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);
151
+ let e = "f";
152
+ const t = this.slotContent.subtype === "duration" ? this._durationLevels && ((o = this._durationLevels) == null ? void 0 : o.length) === 1 ? "numeric" : "duration" : "numeric";
153
+ 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);
152
154
  }
153
155
  _setAggregationFunc() {
154
- const t = this._aggregationFunc, e = this.slotContent.format;
155
- if (this._aggregationElement.value !== t) {
156
- if (this._aggregationFunc = this._aggregationElement.value, t === "rate") {
157
- const o = v(e), a = ["%", "y", "a%", "ay"].includes(
158
- o.typeFormat
156
+ var i;
157
+ const e = this._aggregationElement.value, t = this._aggregationFunc, o = this.slotContent.format;
158
+ if (e !== (t === "weightedaverage" ? "average" : t)) {
159
+ if (this._aggregationFunc = e === "average" && ((i = this._aggregationWeightColumn) != null && i.column) ? "weightedaverage" : e, t === "rate") {
160
+ const l = y(o), u = ["%", "y", "a%", "ay"].includes(
161
+ l.typeFormat
159
162
  );
160
- this.slotContent.subtype === "currency" && a && this._setNumericDisplayAs();
163
+ this.slotContent.subtype === "currency" && u && this._setNumericDisplayAs();
161
164
  }
162
165
  this._sendEvent(), (this._aggregationFunc === "rate" || t === "rate") && this.requestUpdate();
163
166
  }
164
167
  }
165
168
  _setAggregationWeight() {
166
- const t = this._aggregationWeightElement.value;
167
- if (t === "none")
168
- this._aggregationWeightColumn = void 0;
169
+ var o;
170
+ const e = this._aggregationWeightElement.value, t = this._aggregationFunc;
171
+ if (e === "none")
172
+ this._aggregationWeightColumn = void 0, this._aggregationFunc === "weightedaverage" && (this._aggregationFunc = "average");
169
173
  else {
170
- const e = this.measureColumns.find(
171
- (o) => o.columnId === t
172
- );
173
- this._aggregationWeightColumn = {
174
- column: e == null ? void 0 : e.columnId,
175
- set: e == null ? void 0 : e.datasetId,
176
- columnSubType: e == null ? void 0 : e.subtype
177
- };
174
+ let s, i;
175
+ for (const l of this.measureColumns ?? []) {
176
+ const u = (o = l.columns) == null ? void 0 : o.find((c) => c.id === e);
177
+ if (u) {
178
+ s = u, i = l.datasetId;
179
+ break;
180
+ }
181
+ }
182
+ s && (this._aggregationWeightColumn = {
183
+ column: s.id,
184
+ set: i,
185
+ columnSubType: s.subtype
186
+ }), this._aggregationFunc === "average" && (this._aggregationFunc = "weightedaverage");
178
187
  }
179
- this._sendEvent();
188
+ this._sendEvent(), this.requestUpdate(), (t === "weightedaverage" && this._aggregationFunc === "average" || t === "average" && this._aggregationFunc === "weightedaverage") && this.requestUpdate();
180
189
  }
181
190
  _setDurationLevels() {
182
- const t = this._durationLevels, e = this._durationLevelsElement.value.split(",").filter((o) => o !== "").map((o) => Number.parseInt(o, 10));
183
- 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();
191
+ const e = this._durationLevels, t = this._durationLevelsElement.value.split(",").filter((o) => o !== "").map((o) => Number.parseInt(o, 10));
192
+ this._durationLevels = ((t == null ? void 0 : t.length) ?? 0) >= 1 ? t : e, this._maxDurationLevel = Math.min(...this._durationLevels), this._fillTimeDurationLevels(), this._setNumericFormat(), this._sendEvent(), this.requestUpdate();
184
193
  }
185
194
  _setDurationFormat() {
186
- var t, e;
187
- this._durationFormat = (e = (t = this._durationFormatElement) == null ? void 0 : t.selected) == null ? void 0 : e[0], this._fillTimeDurationLevels(), this._setNumericFormat(), this._sendEvent(), this.requestUpdate();
195
+ var e, t;
196
+ this._durationFormat = (t = (e = this._durationFormatElement) == null ? void 0 : e.selected) == null ? void 0 : t[0], this._fillTimeDurationLevels(), this._setNumericFormat(), this._sendEvent(), this.requestUpdate();
188
197
  }
189
198
  _fillTimeDurationLevels() {
190
199
  if (this._durationFormat === "time") {
191
- const t = this._durationLevels.sort().at(-1);
192
- if ([7, 8, 9].includes(t)) {
193
- const e = {
200
+ const e = this._durationLevels.sort().at(-1);
201
+ if ([7, 8, 9].includes(e)) {
202
+ const t = {
194
203
  lev7: [6],
195
204
  lev8: [6, 7],
196
205
  lev9: [6, 7, 8]
197
206
  };
198
- for (const o of e["lev" + t])
207
+ for (const o of t["lev" + e])
199
208
  this._durationLevels.includes(o) || this._durationLevels.push(o);
200
209
  this._durationLevels = [...this._durationLevels].sort();
201
210
  }
@@ -237,39 +246,39 @@ let n = class extends M(E, {
237
246
  });
238
247
  }
239
248
  } */
240
- willUpdate(t) {
241
- var e, o, a, i, r;
242
- 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 = (a = this.slotContent) == null ? void 0 : a.aggregationWeight, this._isFormula = ((i = this.slotContent) == null ? void 0 : i.formula) || ((r = this.slotContent) == null ? void 0 : r.formulaId)), t.has("language") && this.language !== x() && ([...A].includes(this.language ?? "en") || this.language === "en") && L(this.language);
249
+ willUpdate(e) {
250
+ var t, o, s, i, l;
251
+ e.has("slotContent") && (this._parseSavedNumericFormatSettings(), this._aggregationFunc = ((t = this.slotContent) == null ? void 0 : t.aggregationFunc) ?? (((o = this.slotContent) == null ? void 0 : o.type) === "numeric" ? "sum" : "count"), this._aggregationWeightColumn = (s = this.slotContent) == null ? void 0 : s.aggregationWeight, this._isFormula = ((i = this.slotContent) == null ? void 0 : i.formula) || ((l = this.slotContent) == null ? void 0 : l.formulaId)), e.has("language") && this.language !== w() && ([...S].includes(this.language ?? "en") || this.language === "en") && D(this.language);
243
252
  }
244
253
  firstUpdated() {
245
- var t;
246
- (t = this.slotContent) != null && t.duration && this._durationLevelsOverlay.addEventListener(
254
+ var e;
255
+ (e = this.slotContent) != null && e.duration && this._durationLevelsOverlay.addEventListener(
247
256
  "slottable-request",
248
- (e) => {
249
- this._renderDurationLevelMenu = e.data !== C;
257
+ (t) => {
258
+ this._renderDurationLevelMenu = t.data !== I;
250
259
  }
251
260
  );
252
261
  }
253
262
  _renderDurationLevelsSettings() {
254
- const t = T.levels.map((e) => {
263
+ const e = G.levels.map((t) => {
255
264
  let o = !1;
256
- 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), l`<luzmo-menu-item
257
- value=${e.level}
258
- ?selected=${this._durationLevels.includes(e.level)}
265
+ return this._durationFormat === "time" && t.level >= 6 && this._durationLevels.includes(t.level) && t.level !== Math.max(...this._durationLevels) && (o = !0), this._durationLevels.length === 1 && this._durationLevels.includes(t.level) && (o = !0), r`<luzmo-menu-item
266
+ value=${t.level}
267
+ ?selected=${this._durationLevels.includes(t.level)}
259
268
  ?disabled=${o}
260
269
  >
261
- ${e.label}
270
+ ${t.label}
262
271
  </luzmo-menu-item>`;
263
272
  });
264
- return l` <div class="setting">
273
+ return r` <div class="setting">
265
274
  <luzmo-field-label for="duration-levels">
266
- ${s("Duration levels", { desc: "Label for duration levels setting" })}
275
+ ${a("Duration levels", { desc: "Label for duration levels setting" })}
267
276
  </luzmo-field-label>
268
277
  <luzmo-action-button id="trigger" size=${this.size}>
269
278
  ${this._durationLevels.length}
270
279
  ${this._durationLevels.length === 1 ? "level" : "levels"} active
271
280
  <span class="duration-angle-down-icon">
272
- ${D(w)}
281
+ ${z(E)}
273
282
  </span>
274
283
  </luzmo-action-button>
275
284
  <luzmo-overlay
@@ -280,26 +289,26 @@ let n = class extends M(E, {
280
289
  type="page"
281
290
  >
282
291
  <luzmo-popover style="position: relative">
283
- ${this._renderDurationLevelMenu ? l` <luzmo-menu
292
+ ${this._renderDurationLevelMenu ? r` <luzmo-menu
284
293
  id="duration-levels"
285
294
  size=${this.size}
286
295
  selects="multiple"
287
296
  .value=${this._durationLevels.join(",")}
288
297
  @change=${this._setDurationLevels}
289
298
  >
290
- ${t}
299
+ ${e}
291
300
  </luzmo-menu>` : ""}
292
301
  </luzmo-popover>
293
302
  </luzmo-overlay>
294
303
  </div>`;
295
304
  }
296
305
  _renderDurationFormatSettings() {
297
- const t = Object.keys(b).map((e) => e === "time" && (this._maxDurationLevel ?? 1) < 6 ? "" : l`<luzmo-action-button value=${e}>
298
- ${b[e]()}
306
+ const e = Object.keys($).map((t) => t === "time" && (this._maxDurationLevel ?? 1) < 6 ? "" : r`<luzmo-action-button value=${t}>
307
+ ${$[t]()}
299
308
  </luzmo-action-button>`);
300
- return l` <div class="setting">
309
+ return r` <div class="setting">
301
310
  <luzmo-field-label for="duration-format">
302
- ${s("Format", { desc: "Label for format setting" })}
311
+ ${a("Format", { desc: "Label for format setting" })}
303
312
  </luzmo-field-label>
304
313
  <luzmo-action-group
305
314
  emphasized
@@ -310,19 +319,19 @@ let n = class extends M(E, {
310
319
  selects="single"
311
320
  @change=${this._setDurationFormat}
312
321
  >
313
- ${t}
322
+ ${e}
314
323
  </luzmo-action-group>
315
324
  </div>`;
316
325
  }
317
326
  _renderNumericDisplayAsSettings() {
318
- const t = Object.keys(_).map(
319
- (e) => l`<luzmo-action-button value=${e}
320
- >${_[e]}</luzmo-action-button
327
+ const e = Object.keys(A).map(
328
+ (t) => r`<luzmo-action-button value=${t}
329
+ >${A[t]}</luzmo-action-button
321
330
  >`
322
331
  );
323
- return l`<div class="setting">
332
+ return r`<div class="setting">
324
333
  <luzmo-field-label for="display-as">
325
- ${s("Display as", {
334
+ ${a("Display as", {
326
335
  desc: "Label for display as setting for the datetime field"
327
336
  })}
328
337
  </luzmo-field-label>
@@ -335,19 +344,19 @@ let n = class extends M(E, {
335
344
  selects="single"
336
345
  @change=${this._setNumericDisplayAs}
337
346
  >
338
- ${t}
347
+ ${e}
339
348
  </luzmo-action-group>
340
349
  </div>`;
341
350
  }
342
351
  _renderNumericFormatSettings() {
343
- const t = Object.keys(p).map(
344
- (e) => l`<luzmo-menu-item value=${e}>
345
- ${p[e].label()}
352
+ const e = Object.keys(v).map(
353
+ (t) => r`<luzmo-menu-item value=${t}>
354
+ ${v[t].label()}
346
355
  </luzmo-menu-item>`
347
356
  );
348
- return l` <div class="setting">
357
+ return r` <div class="setting">
349
358
  <luzmo-field-label for="format">
350
- ${s("Format", { desc: "Label for format setting" })}
359
+ ${a("Format", { desc: "Label for format setting" })}
351
360
  </luzmo-field-label>
352
361
  <luzmo-picker
353
362
  id="format"
@@ -356,14 +365,14 @@ let n = class extends M(E, {
356
365
  value=${this._numericFormatGroup ?? "Auto"}
357
366
  @change=${this._setNumericSeparators}
358
367
  >
359
- ${t}
368
+ ${e}
360
369
  </luzmo-picker>
361
370
  </div>
362
371
  <div class="setting">
363
372
  <luzmo-field-label for="precision" id="precision-label">
364
- ${this._displayAs === "scientific" ? s("Precision", {
373
+ ${this._displayAs === "scientific" ? a("Precision", {
365
374
  desc: "Label for precision setting"
366
- }) : s("Decimals", {
375
+ }) : a("Decimals", {
367
376
  desc: "Label for decimals setting"
368
377
  })}
369
378
  </luzmo-field-label>
@@ -378,102 +387,134 @@ let n = class extends M(E, {
378
387
  </div>`;
379
388
  }
380
389
  _renderAggregationSettings() {
381
- var o, a;
382
- const t = Object.entries(k).filter(
383
- ([i]) => {
384
- var r;
385
- return ["count", "distinctcount"].includes(i) || ((r = this.slotContent) == null ? void 0 : r.type) === "numeric";
390
+ var o;
391
+ const e = Object.entries(P).filter(
392
+ ([s]) => {
393
+ var i;
394
+ return ["count", "distinctcount"].includes(s) || ((i = this.slotContent) == null ? void 0 : i.type) === "numeric";
386
395
  }
387
396
  ).map(
388
- ([i, r]) => l`<luzmo-menu-item value=${i}>${r()}</luzmo-menu-item>`
389
- ), e = [
390
- l`<luzmo-menu-item value="none">No weight</luzmo-menu-item>`,
391
- ...this.measureColumns.map((i) => {
392
- var m, g, h;
393
- const r = ((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";
394
- return l`<luzmo-menu-item value=${i.id}>
395
- ${r}
396
- </luzmo-menu-item>`;
397
+ ([s, i]) => r`<luzmo-menu-item value=${s}>${i()}</luzmo-menu-item>`
398
+ ), t = [
399
+ r`<luzmo-menu-item value="none" class="no-weight">
400
+ <span class="no-weight-label">No weight</span>
401
+ </luzmo-menu-item>`,
402
+ ...(this.measureColumns ?? []).flatMap((s) => {
403
+ const i = typeof s.datasetName == "object" ? x(
404
+ s.datasetName,
405
+ this.language
406
+ ) : s.datasetName, l = r`<div class="dataset-header">
407
+ ${i}
408
+ <luzmo-tooltip self-managed placement="right" size=${this.size}>
409
+ ${i}
410
+ </luzmo-tooltip>
411
+ </div>`, u = (s.columns ?? []).map((c) => {
412
+ const h = typeof c.name == "object" ? x(c.name, this.language) : c.name, p = z(M(c, "s")), d = c.expression ? O("derived", "s") : void 0, b = !!d, F = b ? r`<span class="secondary-icon"
413
+ >${z(d)}</span
414
+ >` : f;
415
+ return r`<luzmo-menu-item value=${c.id}>
416
+ <span class="data-icon-type" slot="icon">
417
+ <span class=${b ? "with-secondary-icon" : ""}
418
+ >${p}</span
419
+ >
420
+ ${F}
421
+ </span>
422
+ <span class="column-label text-truncate">${h}</span>
423
+ <luzmo-tooltip self-managed placement="right" size=${this.size}>
424
+ ${h}
425
+ </luzmo-tooltip>
426
+ </luzmo-menu-item>`;
427
+ });
428
+ return [l, ...u];
397
429
  })
398
430
  ];
399
- return l`<div class="settings-row">
431
+ return r`<div class="settings-row">
400
432
  <div class="setting">
401
433
  <luzmo-field-label for="aggregation">
402
- ${s("Aggregation", { desc: "Label for aggregation setting" })}
434
+ ${a("Aggregation", { desc: "Label for aggregation setting" })}
403
435
  </luzmo-field-label>
404
436
  <luzmo-picker
405
437
  id="aggregation"
406
438
  size=${this.size}
407
439
  variant="highlight"
408
- value=${this._aggregationFunc ?? (((o = this.slotContent) == null ? void 0 : o.type) === "numeric" ? "sum" : "count")}
440
+ value=${(() => {
441
+ var i;
442
+ const s = ((i = this.slotContent) == null ? void 0 : i.type) === "numeric" ? "sum" : "count";
443
+ return this._aggregationFunc === "weightedaverage" ? "average" : this._aggregationFunc ?? s;
444
+ })()}
409
445
  @change=${this._setAggregationFunc}
410
446
  >
411
- ${t}
447
+ ${e}
412
448
  </luzmo-picker>
413
449
  </div>
414
- ${this._aggregationFunc === "rate" ? l`<div class="setting">
450
+ ${["rate", "average", "weightedaverage"].includes(
451
+ this._aggregationFunc ?? ""
452
+ ) ? r`<div class="setting">
415
453
  <luzmo-field-label for="weighting-column">
416
- Denominator
454
+ ${this._aggregationFunc === "rate" ? "Denominator" : "Weight"}
417
455
  </luzmo-field-label>
418
- <luzmo-picker
419
- id="weighting-column"
420
- size=${this.size}
421
- variant="highlight"
422
- value=${((a = this._aggregationWeightColumn) == null ? void 0 : a.column) ?? "none"}
423
- @change=${this._setAggregationWeight}
424
- >
425
- ${e}
426
- </luzmo-picker>
456
+ ${this.measureColumns.length > 0 ? r`
457
+ <luzmo-picker
458
+ id="weighting-column"
459
+ size=${this.size}
460
+ variant="highlight"
461
+ icons="none"
462
+ value=${((o = this._aggregationWeightColumn) == null ? void 0 : o.column) ?? "none"}
463
+ @change=${this._setAggregationWeight}
464
+ >
465
+ ${t}
466
+ </luzmo-picker>
467
+ ` : f}
427
468
  </div>` : ""}
428
469
  </div>`;
429
470
  }
430
471
  render() {
431
- var t;
432
- return l`<div class="settings-container">
472
+ var e;
473
+ return r`<div class="settings-container">
433
474
  <div class="settings-row">
434
475
  ${this._displayMode === "duration" ? this._renderDurationLevelsSettings() : this._renderNumericDisplayAsSettings()}
435
- ${((t = this._durationLevels) == null ? void 0 : t.length) > 1 ? this._renderDurationFormatSettings() : this._renderNumericFormatSettings()}
476
+ ${((e = this._durationLevels) == null ? void 0 : e.length) > 1 ? this._renderDurationFormatSettings() : this._renderNumericFormatSettings()}
436
477
  </div>
437
- ${this._isFormula ? $ : this._renderAggregationSettings()}
478
+ ${this._isFormula ? f : this._renderAggregationSettings()}
438
479
  </div>
439
480
  </div>`;
440
481
  }
441
482
  };
442
- u([
443
- f({ type: String, reflect: !0 })
483
+ m([
484
+ _({ type: String, reflect: !0 })
444
485
  ], n.prototype, "language", 2);
445
- u([
446
- f({ type: Object, reflect: !0 })
486
+ m([
487
+ _({ type: Object, reflect: !0 })
447
488
  ], n.prototype, "slotContent", 2);
448
- u([
449
- f({ type: Array, reflect: !1 })
489
+ m([
490
+ _({ type: Array, reflect: !1 })
450
491
  ], n.prototype, "measureColumns", 2);
451
- u([
452
- d("#display-as")
492
+ m([
493
+ g("#display-as")
453
494
  ], n.prototype, "_displayAsElement", 2);
454
- u([
455
- d("#precision")
495
+ m([
496
+ g("#precision")
456
497
  ], n.prototype, "_precisionElement", 2);
457
- u([
458
- d("#aggregation")
498
+ m([
499
+ g("#aggregation")
459
500
  ], n.prototype, "_aggregationElement", 2);
460
- u([
461
- d("#weighting-column")
501
+ m([
502
+ g("#weighting-column")
462
503
  ], n.prototype, "_aggregationWeightElement", 2);
463
- u([
464
- d("#duration-levels")
504
+ m([
505
+ g("#duration-levels")
465
506
  ], n.prototype, "_durationLevelsElement", 2);
466
- u([
467
- d("#duration-format")
507
+ m([
508
+ g("#duration-format")
468
509
  ], n.prototype, "_durationFormatElement", 2);
469
- u([
470
- d("#duration-levels-overlay")
510
+ m([
511
+ g("#duration-levels-overlay")
471
512
  ], n.prototype, "_durationLevelsOverlay", 2);
472
- u([
473
- N()
513
+ m([
514
+ k()
474
515
  ], n.prototype, "_renderDurationLevelMenu", 2);
475
- n = u([
476
- F()
516
+ n = m([
517
+ C()
477
518
  ], n);
478
519
  customElements.get("luzmo-display-settings-numeric") || customElements.define(
479
520
  "luzmo-display-settings-numeric",