@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
@@ -0,0 +1,787 @@
1
+ /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
+ *
3
+ * Copyright © 2025 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 { r as ie, x as y, n as f } from "./property-DCzt3DR1.js";
21
+ import { h as oe } from "./task-Bh_X-xIU.js";
22
+ import "./index-CskV_bXp.js";
23
+ import "./index-CsDgk_sj.js";
24
+ import "./index-BC1LV3vH.js";
25
+ import "./index-CbuHBIDB.js";
26
+ import "./index-C3N6qTxJ.js";
27
+ import "./index-DE3d0E0P.js";
28
+ import "./index-BmshD32H.js";
29
+ import { r as ne } from "./state-nDsQPund.js";
30
+ import { e as ae } from "./query-Ddbd72Um.js";
31
+ import { a8 as V, af as le, a7 as ue } from "./luzmo-icons-CVeTZ59u.js";
32
+ import { L as ce } from "./focusable-BbymtxWI.js";
33
+ import { S as de, E as pe } from "./sized-mixin-BGzkX2g1.js";
34
+ var he = Object.defineProperty, me = (e, t, s) => t in e ? he(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, L = (e, t, s) => (me(e, typeof t != "symbol" ? t + "" : t, s), s), ge = (e, t, s) => {
35
+ if (!t.has(e))
36
+ throw TypeError("Cannot " + s);
37
+ }, P = (e, t) => {
38
+ if (Object(t) !== t)
39
+ throw TypeError('Cannot use the "in" operator on this value');
40
+ return e.has(t);
41
+ }, N = (e, t, s) => {
42
+ if (t.has(e))
43
+ throw TypeError("Cannot add the same private member more than once");
44
+ t instanceof WeakSet ? t.add(e) : t.set(e, s);
45
+ }, B = (e, t, s) => (ge(e, t, "access private method"), s);
46
+ /**
47
+ * @license
48
+ * Copyright Google LLC All Rights Reserved.
49
+ *
50
+ * Use of this source code is governed by an MIT-style license that can be
51
+ * found in the LICENSE file at https://angular.io/license
52
+ */
53
+ function G(e, t) {
54
+ return Object.is(e, t);
55
+ }
56
+ /**
57
+ * @license
58
+ * Copyright Google LLC All Rights Reserved.
59
+ *
60
+ * Use of this source code is governed by an MIT-style license that can be
61
+ * found in the LICENSE file at https://angular.io/license
62
+ */
63
+ let u = null, x = !1, E = 1;
64
+ const I = /* @__PURE__ */ Symbol("SIGNAL");
65
+ function S(e) {
66
+ const t = u;
67
+ return u = e, t;
68
+ }
69
+ function ve() {
70
+ return u;
71
+ }
72
+ function fe() {
73
+ return x;
74
+ }
75
+ const A = {
76
+ version: 0,
77
+ lastCleanEpoch: 0,
78
+ dirty: !1,
79
+ producerNode: void 0,
80
+ producerLastReadVersion: void 0,
81
+ producerIndexOfThis: void 0,
82
+ nextProducerIndex: 0,
83
+ liveConsumerNode: void 0,
84
+ liveConsumerIndexOfThis: void 0,
85
+ consumerAllowSignalWrites: !1,
86
+ consumerIsAlwaysLive: !1,
87
+ producerMustRecompute: () => !1,
88
+ producerRecomputeValue: () => {
89
+ },
90
+ consumerMarkedDirty: () => {
91
+ },
92
+ consumerOnSignalRead: () => {
93
+ }
94
+ };
95
+ function O(e) {
96
+ if (x)
97
+ throw new Error(
98
+ typeof ngDevMode < "u" && ngDevMode ? "Assertion error: signal read during notification phase" : ""
99
+ );
100
+ if (u === null)
101
+ return;
102
+ u.consumerOnSignalRead(e);
103
+ const t = u.nextProducerIndex++;
104
+ if ($(u), t < u.producerNode.length && u.producerNode[t] !== e && R(u)) {
105
+ const s = u.producerNode[t];
106
+ k(s, u.producerIndexOfThis[t]);
107
+ }
108
+ u.producerNode[t] !== e && (u.producerNode[t] = e, u.producerIndexOfThis[t] = R(u) ? K(e, u, t) : 0), u.producerLastReadVersion[t] = e.version;
109
+ }
110
+ function ye() {
111
+ E++;
112
+ }
113
+ function H(e) {
114
+ if (!(!e.dirty && e.lastCleanEpoch === E)) {
115
+ if (!e.producerMustRecompute(e) && !_e(e)) {
116
+ e.dirty = !1, e.lastCleanEpoch = E;
117
+ return;
118
+ }
119
+ e.producerRecomputeValue(e), e.dirty = !1, e.lastCleanEpoch = E;
120
+ }
121
+ }
122
+ function J(e) {
123
+ if (e.liveConsumerNode === void 0)
124
+ return;
125
+ const t = x;
126
+ x = !0;
127
+ try {
128
+ for (const s of e.liveConsumerNode)
129
+ s.dirty || ze(s);
130
+ } finally {
131
+ x = t;
132
+ }
133
+ }
134
+ function be() {
135
+ return (u == null ? void 0 : u.consumerAllowSignalWrites) !== !1;
136
+ }
137
+ function ze(e) {
138
+ var t;
139
+ e.dirty = !0, J(e), (t = e.consumerMarkedDirty) == null || t.call(e.wrapper ?? e);
140
+ }
141
+ function we(e) {
142
+ return e && (e.nextProducerIndex = 0), S(e);
143
+ }
144
+ function Ce(e, t) {
145
+ if (S(t), !(!e || e.producerNode === void 0 || e.producerIndexOfThis === void 0 || e.producerLastReadVersion === void 0)) {
146
+ if (R(e))
147
+ for (let s = e.nextProducerIndex; s < e.producerNode.length; s++)
148
+ k(e.producerNode[s], e.producerIndexOfThis[s]);
149
+ for (; e.producerNode.length > e.nextProducerIndex; )
150
+ e.producerNode.pop(), e.producerLastReadVersion.pop(), e.producerIndexOfThis.pop();
151
+ }
152
+ }
153
+ function _e(e) {
154
+ $(e);
155
+ for (let t = 0; t < e.producerNode.length; t++) {
156
+ const s = e.producerNode[t], o = e.producerLastReadVersion[t];
157
+ if (o !== s.version || (H(s), o !== s.version))
158
+ return !0;
159
+ }
160
+ return !1;
161
+ }
162
+ function K(e, t, s) {
163
+ var o;
164
+ if (U(e), $(e), e.liveConsumerNode.length === 0) {
165
+ (o = e.watched) == null || o.call(e.wrapper);
166
+ for (let r = 0; r < e.producerNode.length; r++)
167
+ e.producerIndexOfThis[r] = K(e.producerNode[r], e, r);
168
+ }
169
+ return e.liveConsumerIndexOfThis.push(s), e.liveConsumerNode.push(t) - 1;
170
+ }
171
+ function k(e, t) {
172
+ var s;
173
+ if (U(e), $(e), typeof ngDevMode < "u" && ngDevMode && t >= e.liveConsumerNode.length)
174
+ throw new Error(
175
+ `Assertion error: active consumer index ${t} is out of bounds of ${e.liveConsumerNode.length} consumers)`
176
+ );
177
+ if (e.liveConsumerNode.length === 1) {
178
+ (s = e.unwatched) == null || s.call(e.wrapper);
179
+ for (let r = 0; r < e.producerNode.length; r++)
180
+ k(e.producerNode[r], e.producerIndexOfThis[r]);
181
+ }
182
+ const o = e.liveConsumerNode.length - 1;
183
+ if (e.liveConsumerNode[t] = e.liveConsumerNode[o], e.liveConsumerIndexOfThis[t] = e.liveConsumerIndexOfThis[o], e.liveConsumerNode.length--, e.liveConsumerIndexOfThis.length--, t < e.liveConsumerNode.length) {
184
+ const r = e.liveConsumerIndexOfThis[t], l = e.liveConsumerNode[t];
185
+ $(l), l.producerIndexOfThis[r] = t;
186
+ }
187
+ }
188
+ function R(e) {
189
+ var t;
190
+ return e.consumerIsAlwaysLive || (((t = e == null ? void 0 : e.liveConsumerNode) == null ? void 0 : t.length) ?? 0) > 0;
191
+ }
192
+ function $(e) {
193
+ e.producerNode ?? (e.producerNode = []), e.producerIndexOfThis ?? (e.producerIndexOfThis = []), e.producerLastReadVersion ?? (e.producerLastReadVersion = []);
194
+ }
195
+ function U(e) {
196
+ e.liveConsumerNode ?? (e.liveConsumerNode = []), e.liveConsumerIndexOfThis ?? (e.liveConsumerIndexOfThis = []);
197
+ }
198
+ /**
199
+ * @license
200
+ * Copyright Google LLC All Rights Reserved.
201
+ *
202
+ * Use of this source code is governed by an MIT-style license that can be
203
+ * found in the LICENSE file at https://angular.io/license
204
+ */
205
+ function Q(e) {
206
+ if (H(e), O(e), e.value === q)
207
+ throw e.error;
208
+ return e.value;
209
+ }
210
+ function Se(e) {
211
+ const t = Object.create($e);
212
+ t.computation = e;
213
+ const s = () => Q(t);
214
+ return s[I] = t, s;
215
+ }
216
+ const W = /* @__PURE__ */ Symbol("UNSET"), D = /* @__PURE__ */ Symbol("COMPUTING"), q = /* @__PURE__ */ Symbol("ERRORED"), $e = {
217
+ ...A,
218
+ value: W,
219
+ dirty: !0,
220
+ error: null,
221
+ equal: G,
222
+ producerMustRecompute(e) {
223
+ return e.value === W || e.value === D;
224
+ },
225
+ producerRecomputeValue(e) {
226
+ if (e.value === D)
227
+ throw new Error("Detected cycle in computations.");
228
+ const t = e.value;
229
+ e.value = D;
230
+ const s = we(e);
231
+ let o, r = !1;
232
+ try {
233
+ o = e.computation.call(e.wrapper), r = t !== W && t !== q && e.equal.call(e.wrapper, t, o);
234
+ } catch (l) {
235
+ o = q, e.error = l;
236
+ } finally {
237
+ Ce(e, s);
238
+ }
239
+ if (r) {
240
+ e.value = t;
241
+ return;
242
+ }
243
+ e.value = o, e.version++;
244
+ }
245
+ };
246
+ /**
247
+ * @license
248
+ * Copyright Google LLC All Rights Reserved.
249
+ *
250
+ * Use of this source code is governed by an MIT-style license that can be
251
+ * found in the LICENSE file at https://angular.io/license
252
+ */
253
+ function xe() {
254
+ throw new Error();
255
+ }
256
+ let Te = xe;
257
+ function Ne() {
258
+ Te();
259
+ }
260
+ /**
261
+ * @license
262
+ * Copyright Google LLC All Rights Reserved.
263
+ *
264
+ * Use of this source code is governed by an MIT-style license that can be
265
+ * found in the LICENSE file at https://angular.io/license
266
+ */
267
+ function Ee(e) {
268
+ const t = Object.create(ke);
269
+ t.value = e;
270
+ const s = () => (O(t), t.value);
271
+ return s[I] = t, s;
272
+ }
273
+ function Ie() {
274
+ return O(this), this.value;
275
+ }
276
+ function Oe(e, t) {
277
+ be() || Ne(), e.equal.call(e.wrapper, e.value, t) || (e.value = t, Le(e));
278
+ }
279
+ const ke = {
280
+ ...A,
281
+ equal: G,
282
+ value: void 0
283
+ };
284
+ function Le(e) {
285
+ e.version++, ye(), J(e);
286
+ }
287
+ /**
288
+ * @license
289
+ * Copyright 2024 Bloomberg Finance L.P.
290
+ *
291
+ * Licensed under the Apache License, Version 2.0 (the "License");
292
+ * you may not use this file except in compliance with the License.
293
+ * You may obtain a copy of the License at
294
+ *
295
+ * http://www.apache.org/licenses/LICENSE-2.0
296
+ *
297
+ * Unless required by applicable law or agreed to in writing, software
298
+ * distributed under the License is distributed on an "AS IS" BASIS,
299
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
300
+ * See the License for the specific language governing permissions and
301
+ * limitations under the License.
302
+ */
303
+ const d = Symbol("node");
304
+ var b;
305
+ ((e) => {
306
+ var t, s, o, r;
307
+ class l {
308
+ constructor(w, h = {}) {
309
+ N(this, s), L(this, t);
310
+ const p = Ee(w)[I];
311
+ if (this[d] = p, p.wrapper = this, h) {
312
+ const C = h.equals;
313
+ C && (p.equal = C), p.watched = h[e.subtle.watched], p.unwatched = h[e.subtle.unwatched];
314
+ }
315
+ }
316
+ get() {
317
+ if (!(0, e.isState)(this))
318
+ throw new TypeError("Wrong receiver type for Signal.State.prototype.get");
319
+ return Ie.call(this[d]);
320
+ }
321
+ set(w) {
322
+ if (!(0, e.isState)(this))
323
+ throw new TypeError("Wrong receiver type for Signal.State.prototype.set");
324
+ if (fe())
325
+ throw new Error("Writes to signals not permitted during Watcher callback");
326
+ const h = this[d];
327
+ Oe(h, w);
328
+ }
329
+ }
330
+ t = d, s = /* @__PURE__ */ new WeakSet(), e.isState = (c) => typeof c == "object" && P(s, c), e.State = l;
331
+ class z {
332
+ // Create a Signal which evaluates to the value returned by the callback.
333
+ // Callback is called with this signal as the parameter.
334
+ constructor(w, h) {
335
+ N(this, r), L(this, o);
336
+ const p = Se(w)[I];
337
+ if (p.consumerAllowSignalWrites = !0, this[d] = p, p.wrapper = this, h) {
338
+ const C = h.equals;
339
+ C && (p.equal = C), p.watched = h[e.subtle.watched], p.unwatched = h[e.subtle.unwatched];
340
+ }
341
+ }
342
+ get() {
343
+ if (!(0, e.isComputed)(this))
344
+ throw new TypeError("Wrong receiver type for Signal.Computed.prototype.get");
345
+ return Q(this[d]);
346
+ }
347
+ }
348
+ o = d, r = /* @__PURE__ */ new WeakSet(), e.isComputed = (c) => typeof c == "object" && P(r, c), e.Computed = z, ((c) => {
349
+ var w, h, _, p;
350
+ function C(a) {
351
+ let n, i = null;
352
+ try {
353
+ i = S(null), n = a();
354
+ } finally {
355
+ S(i);
356
+ }
357
+ return n;
358
+ }
359
+ c.untrack = C;
360
+ function X(a) {
361
+ var n;
362
+ if (!(0, e.isComputed)(a) && !(0, e.isWatcher)(a))
363
+ throw new TypeError("Called introspectSources without a Computed or Watcher argument");
364
+ return ((n = a[d].producerNode) == null ? void 0 : n.map((i) => i.wrapper)) ?? [];
365
+ }
366
+ c.introspectSources = X;
367
+ function Y(a) {
368
+ var n;
369
+ if (!(0, e.isComputed)(a) && !(0, e.isState)(a))
370
+ throw new TypeError("Called introspectSinks without a Signal argument");
371
+ return ((n = a[d].liveConsumerNode) == null ? void 0 : n.map((i) => i.wrapper)) ?? [];
372
+ }
373
+ c.introspectSinks = Y;
374
+ function Z(a) {
375
+ if (!(0, e.isComputed)(a) && !(0, e.isState)(a))
376
+ throw new TypeError("Called hasSinks without a Signal argument");
377
+ const n = a[d].liveConsumerNode;
378
+ return n ? n.length > 0 : !1;
379
+ }
380
+ c.hasSinks = Z;
381
+ function ee(a) {
382
+ if (!(0, e.isComputed)(a) && !(0, e.isWatcher)(a))
383
+ throw new TypeError("Called hasSources without a Computed or Watcher argument");
384
+ const n = a[d].producerNode;
385
+ return n ? n.length > 0 : !1;
386
+ }
387
+ c.hasSources = ee;
388
+ class te {
389
+ // When a (recursive) source of Watcher is written to, call this callback,
390
+ // if it hasn't already been called since the last `watch` call.
391
+ // No signals may be read or written during the notify.
392
+ constructor(n) {
393
+ N(this, h), N(this, _), L(this, w);
394
+ let i = Object.create(A);
395
+ i.wrapper = this, i.consumerMarkedDirty = n, i.consumerIsAlwaysLive = !0, i.consumerAllowSignalWrites = !1, i.producerNode = [], this[d] = i;
396
+ }
397
+ // Add these signals to the Watcher's set, and set the watcher to run its
398
+ // notify callback next time any signal in the set (or one of its dependencies) changes.
399
+ // Can be called with no arguments just to reset the "notified" state, so that
400
+ // the notify callback will be invoked again.
401
+ watch(...n) {
402
+ if (!(0, e.isWatcher)(this))
403
+ throw new TypeError("Called unwatch without Watcher receiver");
404
+ B(this, _, p).call(this, n);
405
+ const i = this[d];
406
+ i.dirty = !1;
407
+ const g = S(i);
408
+ for (const T of n)
409
+ O(T[d]);
410
+ S(g);
411
+ }
412
+ // Remove these signals from the watched set (e.g., for an effect which is disposed)
413
+ unwatch(...n) {
414
+ if (!(0, e.isWatcher)(this))
415
+ throw new TypeError("Called unwatch without Watcher receiver");
416
+ B(this, _, p).call(this, n);
417
+ const i = this[d];
418
+ $(i);
419
+ for (let g = i.producerNode.length - 1; g >= 0; g--)
420
+ if (n.includes(i.producerNode[g].wrapper)) {
421
+ k(i.producerNode[g], i.producerIndexOfThis[g]);
422
+ const T = i.producerNode.length - 1;
423
+ if (i.producerNode[g] = i.producerNode[T], i.producerIndexOfThis[g] = i.producerIndexOfThis[T], i.producerNode.length--, i.producerIndexOfThis.length--, i.nextProducerIndex--, g < i.producerNode.length) {
424
+ const re = i.producerIndexOfThis[g], M = i.producerNode[g];
425
+ U(M), M.liveConsumerIndexOfThis[re] = g;
426
+ }
427
+ }
428
+ }
429
+ // Returns the set of computeds in the Watcher's set which are still yet
430
+ // to be re-evaluated
431
+ getPending() {
432
+ if (!(0, e.isWatcher)(this))
433
+ throw new TypeError("Called getPending without Watcher receiver");
434
+ return this[d].producerNode.filter((i) => i.dirty).map((i) => i.wrapper);
435
+ }
436
+ }
437
+ w = d, h = /* @__PURE__ */ new WeakSet(), _ = /* @__PURE__ */ new WeakSet(), p = function(a) {
438
+ for (const n of a)
439
+ if (!(0, e.isComputed)(n) && !(0, e.isState)(n))
440
+ throw new TypeError("Called watch/unwatch without a Computed or State argument");
441
+ }, e.isWatcher = (a) => P(h, a), c.Watcher = te;
442
+ function se() {
443
+ var a;
444
+ return (a = ve()) == null ? void 0 : a.wrapper;
445
+ }
446
+ c.currentComputed = se, c.watched = Symbol("watched"), c.unwatched = Symbol("unwatched");
447
+ })(e.subtle || (e.subtle = {}));
448
+ })(b || (b = {}));
449
+ /**
450
+ * @license
451
+ * Copyright 2023 Google LLC
452
+ * SPDX-License-Identifier: BSD-3-Clause
453
+ */
454
+ const Pe = Symbol("SignalWatcherBrand"), We = new FinalizationRegistry(({ watcher: e, signal: t }) => {
455
+ e.unwatch(t);
456
+ }), F = /* @__PURE__ */ new WeakMap();
457
+ function De(e) {
458
+ return e[Pe] === !0 ? (console.warn("SignalWatcher should not be applied to the same class more than once."), e) : class extends e {
459
+ constructor() {
460
+ super(...arguments), this._$St = new b.State(0), this._$Si = !1, this._$So = !0, this._$Sh = /* @__PURE__ */ new Set();
461
+ }
462
+ _$Sl() {
463
+ if (this._$Su !== void 0) return;
464
+ this._$Sv = new b.Computed(() => {
465
+ this._$St.get(), super.performUpdate();
466
+ });
467
+ const t = this._$Su = new b.subtle.Watcher(function() {
468
+ const s = F.get(this);
469
+ s !== void 0 && (s._$Si === !1 && s.requestUpdate(), this.watch());
470
+ });
471
+ F.set(t, this), We.register(this, { watcher: t, signal: this._$Sv }), t.watch(this._$Sv);
472
+ }
473
+ _$Sp() {
474
+ this._$Su !== void 0 && (this._$Su.unwatch(this._$Sv), this._$Sv = void 0, this._$Su = void 0);
475
+ }
476
+ performUpdate() {
477
+ this.isUpdatePending && (this._$Sl(), this._$Si = !0, this._$St.set(this._$St.get() + 1), this._$Si = !1, this._$Sv.get());
478
+ }
479
+ update(t) {
480
+ try {
481
+ this._$So ? (this._$So = !1, super.update(t)) : this._$Sh.forEach((s) => s.commit());
482
+ } finally {
483
+ this.isUpdatePending = !1, this._$Sh.clear();
484
+ }
485
+ }
486
+ requestUpdate(t, s, o) {
487
+ this._$So = !0, super.requestUpdate(t, s, o);
488
+ }
489
+ connectedCallback() {
490
+ super.connectedCallback(), this.requestUpdate();
491
+ }
492
+ disconnectedCallback() {
493
+ super.disconnectedCallback(), queueMicrotask(() => {
494
+ this.isConnected === !1 && this._$Sp();
495
+ });
496
+ }
497
+ _(t) {
498
+ this._$Sh.add(t);
499
+ const s = this._$So;
500
+ this.requestUpdate(), this._$So = s;
501
+ }
502
+ m(t) {
503
+ this._$Sh.delete(t);
504
+ }
505
+ };
506
+ }
507
+ /**
508
+ * @license
509
+ * Copyright 2023 Google LLC
510
+ * SPDX-License-Identifier: BSD-3-Clause
511
+ */
512
+ b.State;
513
+ b.Computed;
514
+ const st = (e, t) => new b.State(e, t), rt = (e, t) => new b.Computed(e, t);
515
+ /**
516
+ * @license
517
+ * Copyright 2021 Google LLC
518
+ * SPDX-License-Identifier: BSD-3-Clause
519
+ */
520
+ let Re = class extends Event {
521
+ constructor(t, s, o, r) {
522
+ super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.contextTarget = s, this.callback = o, this.subscribe = r ?? !1;
523
+ }
524
+ };
525
+ /**
526
+ * @license
527
+ * Copyright 2021 Google LLC
528
+ * SPDX-License-Identifier: BSD-3-Clause
529
+ */
530
+ /**
531
+ * @license
532
+ * Copyright 2021 Google LLC
533
+ * SPDX-License-Identifier: BSD-3-Clause
534
+ */
535
+ class j {
536
+ constructor(t, s, o, r) {
537
+ if (this.subscribe = !1, this.provided = !1, this.value = void 0, this.t = (l, z) => {
538
+ this.unsubscribe && (this.unsubscribe !== z && (this.provided = !1, this.unsubscribe()), this.subscribe || this.unsubscribe()), this.value = l, this.host.requestUpdate(), this.provided && !this.subscribe || (this.provided = !0, this.callback && this.callback(l, z)), this.unsubscribe = z;
539
+ }, this.host = t, s.context !== void 0) {
540
+ const l = s;
541
+ this.context = l.context, this.callback = l.callback, this.subscribe = l.subscribe ?? !1;
542
+ } else this.context = s, this.callback = o, this.subscribe = r ?? !1;
543
+ this.host.addController(this);
544
+ }
545
+ hostConnected() {
546
+ this.dispatchRequest();
547
+ }
548
+ hostDisconnected() {
549
+ this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0);
550
+ }
551
+ dispatchRequest() {
552
+ this.host.dispatchEvent(new Re(this.context, this.host, this.t, this.subscribe));
553
+ }
554
+ }
555
+ /**
556
+ * @license
557
+ * Copyright 2022 Google LLC
558
+ * SPDX-License-Identifier: BSD-3-Clause
559
+ */
560
+ function qe({ context: e, subscribe: t }) {
561
+ return (s, o) => {
562
+ typeof o == "object" ? o.addInitializer(function() {
563
+ new j(this, { context: e, callback: (r) => {
564
+ s.set.call(this, r);
565
+ }, subscribe: t });
566
+ }) : s.constructor.addInitializer((r) => {
567
+ new j(r, { context: e, callback: (l) => {
568
+ r[o] = l;
569
+ }, subscribe: t });
570
+ });
571
+ };
572
+ }
573
+ const Ae = Symbol("slot-store-context"), Ue = ":host{font-family:var(--luzmo-display-settings-font-family, var(--luzmo-font-family));font-size:var(--luzmo-display-settings-font-size, var(--display-settings-font-size));color:var(--luzmo-display-settings-font-color, var(--luzmo-font-color))}.settings-container{display:flex;flex-direction:column;gap:var(--luzmo-spacing-2)}.settings-row{display:flex;justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-gap, var(--display-settings-gap))}luzmo-divider{margin:var(--luzmo-display-settings-ids-container-vertical-margin, var(--display-settings-ids-container-vertical-margin)) 0}.setting{display:flex;align-items:center}.label-action-container{display:flex;align-items:center;justify-content:space-between;gap:var(--luzmo-display-settings-info-to-remove-icon-gap, var(--display-settings-info-to-remove-icon-gap))}.id-button,.remove-button{outline:none;cursor:pointer;border:none;background:none;font-size:var(--luzmo-display-settings-font-size, var(--display-settings-font-size));color:var(--luzmo-display-settings-font-color, var(--luzmo-font-color))}.remove-button{display:block;width:var(--luzmo-display-settings-remove-button-size, var(--display-settings-remove-button-size));height:var(--luzmo-display-settings-remove-button-size, var(--display-settings-remove-button-size));border-radius:var(--luzmo-display-settings-remove-button-border-radius, 50%)}.remove-button:hover{background-color:var(--luzmo-display-settings-remove-button-background-color-hover, var(--luzmo-background-color-hover))}.remove-button:active,.remove-button:focus{background-color:var(--luzmo-display-settings-remove-button-background-color-down, var(--luzmo-background-color-down))}.remove-button:focus-visible{box-shadow:0 0 0 var(--luzmo-display-settings-remove-button-indicator-thickness, var(--display-settings-remove-button-indicator-thickness)) var(--highcontrast-remove-button-indicator-color, var(--luzmo-display-settings-remove-button-indicator-color, var(--display-settings-remove-button-indicator-color)))}.ids-container{display:flex;flex-direction:column;gap:var(--luzmo-display-settings-gap, var(--display-settings-gap));border-radius:50%}.id-label{text-transform:var(--luzmo-display-settings-id-label-text-transform, var(--display-settings-id-label-text-transform));font-size:var(--luzmo-display-settings-id-label-font-size, var(--display-settings-id-label-font-size));color:var(--luzmo-display-settings-id-label-color, var(--display-settings-id-label-color))}:host{--display-settings-font-family: var(--luzmo-font-family);--display-settings-id-label-text-transform: uppercase;--display-settings-id-label-color: var(--luzmo-secondary);--display-settings-remove-button-indicator-color: var(--luzmo-primary);--display-settings-remove-button-indicator-thickness: var( --luzmo-border-width )}:host{--display-settings-font-size: var(--luzmo-font-size);--display-settings-id-label-font-size: var(--luzmo-font-size-s);--display-settings-gap: var(--luzmo-spacing-3);--display-settings-ids-container-vertical-margin: var(--luzmo-spacing-4);--display-settings-info-to-remove-icon-gap: var(--luzmo-spacing-5);--display-settings-remove-button-size: var(--luzmo-component-height)}:host([size=s]){--display-settings-id-label-font-size: var(--luzmo-font-size-s);--display-settings-font-size: var(--luzmo-font-size-s);--display-settings-gap: var(--luzmo-spacing-3);--display-settings-ids-container-vertical-margin: var(--luzmo-spacing-3);--display-settings-info-to-remove-icon-gap: var(--luzmo-spacing-4);--display-settings-remove-button-size: var(--luzmo-component-height-s)}:host([size=l]){--display-settings-id-label-font-size: var(--luzmo-font-size);--display-settings-font-size: var(--luzmo-font-size-l);--display-settings-gap: var(--luzmo-spacing-4);--display-settings-ids-container-vertical-margin: var(--luzmo-spacing-5);--display-settings-info-to-remove-icon-gap: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-1) );--display-settings-remove-button-size: var(--luzmo-component-height-l)}:host([size=xl]){--display-settings-id-label-font-size: var(--luzmo-font-size-l);--display-settings-font-size: var(--luzmo-font-size-xl);--display-settings-gap: var(--luzmo-spacing-5);--display-settings-ids-container-vertical-margin: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-1) );--display-settings-info-to-remove-icon-gap: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-2) );--display-settings-remove-button-size: var(--luzmo-component-height-xl)}";
574
+ var Me = Object.defineProperty, v = (e, t, s, o) => {
575
+ for (var r = void 0, l = e.length - 1, z; l >= 0; l--)
576
+ (z = e[l]) && (r = z(t, s, r) || r);
577
+ return r && Me(t, s, r), r;
578
+ };
579
+ class m extends De(
580
+ de(ce, {
581
+ validSizes: Object.values(pe)
582
+ })
583
+ ) {
584
+ constructor() {
585
+ super(...arguments), this._loadDisplaySettings = new oe(this, {
586
+ task: async ([t, s, o]) => {
587
+ const r = [];
588
+ this.grandTotals && r.push("grandTotals"), this.periodOverPeriod && r.push("periodOverPeriod"), (s === "numeric" || s === "mixed" && (t == null ? void 0 : t.type) === "numeric") && r.push("numeric"), s !== "numeric" && (t == null ? void 0 : t.type) === "datetime" && r.push("datetime"), !["numeric", "mixed"].includes(s ?? "") && (t == null ? void 0 : t.type) === "numeric" && !this.binningDisabled && r.push("binning"), r.length > 0 && !o && (r.includes("numeric") && !this._settingsTypeLoaded.numeric ? (await import("./display-settings-numeric/index.js"), this._settingsTypeLoaded.numeric = !0, r.includes("periodOverPeriod") && !this._settingsTypeLoaded.periodOverPeriod && (await import("./display-settings-period-over-period/index.js"), this._settingsTypeLoaded.periodOverPeriod = !0)) : r.includes("datetime") && !this._settingsTypeLoaded.datetime ? (await import("./display-settings-datetime/index.js"), this._settingsTypeLoaded.datetime = !0) : r.includes("binning") && !this._settingsTypeLoaded.binning ? (await import("./display-settings-binning/index.js"), this._settingsTypeLoaded.binning = !0) : r.includes("grandTotals") && !this._settingsTypeLoaded.grandTotals && (await import("./display-settings-grand-totals/index.js"), this._settingsTypeLoaded.grandTotals = !0));
589
+ },
590
+ args: () => [this.slotContent, this.slotType, this.hideDisplaySettings]
591
+ }), this.language = "en", this.contentLanguage = "en", this.slotType = "numeric", this.slotContent = {}, this._showIds = !1, this.measureColumns = [], this._settingsTypeLoaded = {
592
+ binning: !1,
593
+ datetime: !1,
594
+ numeric: !1,
595
+ grandTotals: !1,
596
+ periodOverPeriod: !1,
597
+ hierarchy: !0
598
+ }, this._currentSlotContent = {};
599
+ }
600
+ static get styles() {
601
+ return [ie(Ue)];
602
+ }
603
+ willUpdate() {
604
+ var s;
605
+ const t = (s = this._store) == null ? void 0 : s.activeSlotContents.get();
606
+ t && t !== this._currentSlotContent && (this._currentSlotContent = structuredClone(t));
607
+ }
608
+ _onSlotContentChange(t) {
609
+ t.stopPropagation(), t.preventDefault(), this._currentSlotContent = structuredClone(t.detail.slotContent), this._sendEvent(), this.requestUpdate();
610
+ }
611
+ _onLabelChange() {
612
+ this._currentSlotContent = structuredClone(this._currentSlotContent), this._currentSlotContent.label = this._multiLanguageFieldElement.value || {}, this._sendEvent(), this.requestUpdate();
613
+ }
614
+ _sendEvent() {
615
+ this.dispatchEvent(
616
+ new CustomEvent("slot-content-changed", {
617
+ bubbles: !0,
618
+ composed: !0,
619
+ cancelable: !0,
620
+ detail: {
621
+ slotContent: { ...this._currentSlotContent }
622
+ }
623
+ })
624
+ ), this._store && this._store.updateContent({ ...this._currentSlotContent });
625
+ }
626
+ _removeEvent() {
627
+ this.dispatchEvent(
628
+ new CustomEvent("remove-slot-content", {
629
+ bubbles: !0,
630
+ composed: !0,
631
+ cancelable: !0,
632
+ detail: {
633
+ slotContent: this._currentSlotContent
634
+ }
635
+ })
636
+ );
637
+ }
638
+ _toggleIds() {
639
+ this._showIds = !this._showIds;
640
+ }
641
+ _renderDisplaySettings() {
642
+ return y`<div class="settings-container">
643
+ <div class="settings-row">
644
+ <div class="setting">
645
+ <div class="label-container">
646
+ <luzmo-field-label side-aligned="start" .size=${this.size}
647
+ >Label:</luzmo-field-label
648
+ >
649
+ <luzmo-multi-language-field
650
+ .language=${this.language}
651
+ .value=${this._currentSlotContent.label}
652
+ .size=${this.size}
653
+ debounce="200"
654
+ @change=${this._onLabelChange}
655
+ ></luzmo-multi-language-field>
656
+ </div>
657
+ <div class="label-action-container">
658
+ <button class="id-button" @click=${this._toggleIds}>
659
+ ${V(le)}
660
+ <luzmo-tooltip self-managed placement="top" size=${this.size}>
661
+ Show dataset and column id's
662
+ </luzmo-tooltip>
663
+ </button>
664
+ ${this.showRemoveButton ? y`<button
665
+ class="remove-button"
666
+ @click=${this._removeEvent}
667
+ >
668
+ ${V(ue)}
669
+ <luzmo-tooltip
670
+ self-managed
671
+ placement="top"
672
+ size=${this.size}
673
+ >
674
+ Remove
675
+ </luzmo-tooltip>
676
+ </button>` : ""}
677
+ </div>
678
+ </div>
679
+ </div>
680
+ ${this.grandTotals ? y`<luzmo-display-settings-grand-totals
681
+ .language=${this.language}
682
+ .slotContent=${this._currentSlotContent}
683
+ .size=${this.size}
684
+ @slot-content-changed=${this._onSlotContentChange}
685
+ ></luzmo-display-settings-grand-totals>` : ""}
686
+ ${this.slotType === "numeric" || this.slotType === "mixed" && this.slotContent.type === "numeric" ? y`<luzmo-display-settings-numeric
687
+ .language=${this.language}
688
+ .slotContent=${this._currentSlotContent}
689
+ .size=${this.size}
690
+ .measureColumns=${this.measureColumns}
691
+ @slot-content-changed=${this._onSlotContentChange}
692
+ ></luzmo-display-settings-numeric>` : ""}
693
+ ${this.slotType !== "numeric" && this.slotContent.type === "datetime" ? y`<luzmo-display-settings-datetime
694
+ .language=${this.language}
695
+ .contentLanguage=${this.contentLanguage}
696
+ .slotContent=${this._currentSlotContent}
697
+ .size=${this.size}
698
+ @slot-content-changed=${this._onSlotContentChange}
699
+ ></luzmo-display-settings-datetime>` : ""}
700
+ ${!["numeric", "mixed"].includes(this.slotType ?? "") && this.slotContent.type === "numeric" && !this.binningDisabled ? y`<luzmo-display-settings-binning
701
+ .language=${this.language}
702
+ .slotContent=${this._currentSlotContent}
703
+ .size=${this.size}
704
+ @slot-content-changed=${this._onSlotContentChange}
705
+ ></luzmo-display-settings-binning>` : ""}
706
+ ${this.periodOverPeriod ? y`<luzmo-display-settings-period-over-period
707
+ .language=${this.language}
708
+ .slotContent=${this._currentSlotContent}
709
+ .size=${this.size}
710
+ @slot-content-changed=${this._onSlotContentChange}
711
+ ></luzmo-display-settings-period-over-period>` : ""}
712
+ </div>
713
+ ${this._showIds ? y` <luzmo-divider></luzmo-divider>
714
+ <div class="ids-container">
715
+ <div>
716
+ <span class="id-label">Column: </span>
717
+ ${this._currentSlotContent.columnId ?? // eslint-disable-next-line @typescript-eslint/no-deprecated
718
+ this._currentSlotContent.column}
719
+ </div>
720
+ <div>
721
+ <span class="id-label">Dataset: </span>
722
+ ${this._currentSlotContent.datasetId ?? // eslint-disable-next-line @typescript-eslint/no-deprecated
723
+ this._currentSlotContent.set}
724
+ </div>
725
+ <div></div>
726
+ </div>` : ""}`;
727
+ }
728
+ render() {
729
+ return this._loadDisplaySettings.render({
730
+ pending: () => y`<luzmo-progress-circle
731
+ indeterminate
732
+ .size=${this.size}
733
+ ></luzmo-progress-circle>`,
734
+ complete: () => this._renderDisplaySettings(),
735
+ error: () => this._renderDisplaySettings()
736
+ });
737
+ }
738
+ }
739
+ v([
740
+ f({ type: String })
741
+ ], m.prototype, "language");
742
+ v([
743
+ f({ type: String, attribute: "content-language" })
744
+ ], m.prototype, "contentLanguage");
745
+ v([
746
+ f({ type: Boolean, attribute: "hide-display-settings" })
747
+ ], m.prototype, "hideDisplaySettings");
748
+ v([
749
+ f({ type: Boolean, attribute: "binning-disabled" })
750
+ ], m.prototype, "binningDisabled");
751
+ v([
752
+ f({ type: Boolean, attribute: "grand-totals" })
753
+ ], m.prototype, "grandTotals");
754
+ v([
755
+ f({ type: Boolean, attribute: "period-over-period" })
756
+ ], m.prototype, "periodOverPeriod");
757
+ v([
758
+ f({ type: Boolean, attribute: "show-remove-button" })
759
+ ], m.prototype, "showRemoveButton");
760
+ v([
761
+ f({ type: String, attribute: "slot-type" })
762
+ ], m.prototype, "slotType");
763
+ v([
764
+ f()
765
+ ], m.prototype, "slotContent");
766
+ v([
767
+ ne()
768
+ ], m.prototype, "_showIds");
769
+ v([
770
+ f({ type: Array, reflect: !1 })
771
+ ], m.prototype, "measureColumns");
772
+ v([
773
+ ae("luzmo-multi-language-field")
774
+ ], m.prototype, "_multiLanguageFieldElement");
775
+ v([
776
+ qe({ context: Ae, subscribe: !0 })
777
+ ], m.prototype, "_store");
778
+ customElements.get("luzmo-display-settings") || customElements.define("luzmo-display-settings", m);
779
+ export {
780
+ m as L,
781
+ Re as a,
782
+ qe as c,
783
+ De as e,
784
+ rt as i,
785
+ st as r,
786
+ Ae as s
787
+ };