@luzmo/analytics-components-kit 1.0.1-alpha.52 → 1.0.1-alpha.54

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 (141) hide show
  1. package/components/{de-Cxe7xkT4.cjs → de-BimXztr7.cjs} +1 -1
  2. package/components/{de-ZPzjN2kc.js → de-Ca_gJecj.js} +0 -1
  3. package/components/display-settings/display-settings.d.ts +1 -0
  4. package/components/display-settings/index.cjs +1 -1
  5. package/components/display-settings/index.js +1 -1
  6. package/components/display-settings-binning/index.cjs +1 -1
  7. package/components/display-settings-binning/index.js +2 -2
  8. package/components/display-settings-datetime/display-settings-datetime.d.ts +1 -1
  9. package/components/display-settings-datetime/index.cjs +43 -56
  10. package/components/display-settings-datetime/index.js +81 -95
  11. package/components/display-settings-grand-totals/index.cjs +1 -1
  12. package/components/display-settings-grand-totals/index.js +2 -2
  13. package/components/display-settings-numeric/index.cjs +19 -19
  14. package/components/display-settings-numeric/index.js +84 -84
  15. package/components/display-settings-period-over-period/index.cjs +1 -1
  16. package/components/display-settings-period-over-period/index.js +2 -2
  17. package/components/draggable-data-item/index.cjs +1 -1
  18. package/components/draggable-data-item/index.js +3 -3
  19. package/components/draggable-data-item-level/index.cjs +1 -1
  20. package/components/draggable-data-item-level/index.js +1 -1
  21. package/components/droppable-slot/index.cjs +2 -2
  22. package/components/droppable-slot/index.js +4 -4
  23. package/components/edit-item/index.cjs +2 -2
  24. package/components/edit-item/index.js +6 -4
  25. package/components/edit-option/index.cjs +1 -1
  26. package/components/edit-option/index.js +1 -1
  27. package/components/{en-GB-BtLbN8o_.js → en-GB-UzDYaNfY.js} +1 -1
  28. package/components/{en-GB-Dd11ROdW.cjs → en-GB-cN3S24Cg.cjs} +1 -1
  29. package/components/{es-C0JGlz18.js → es-BHAnPxmj.js} +0 -1
  30. package/components/{es-4dEouIgb.cjs → es-CDzU1gsd.cjs} +1 -1
  31. package/components/filter-data-item-picker/index.cjs +1 -1
  32. package/components/filter-data-item-picker/index.js +2 -2
  33. package/components/filter-expression-picker/index.cjs +1 -1
  34. package/components/filter-expression-picker/index.js +1 -1
  35. package/components/filter-item/index.cjs +1 -1
  36. package/components/filter-item/index.js +3 -3
  37. package/components/filter-value-picker/index.cjs +1 -1
  38. package/components/filter-value-picker/index.js +1 -1
  39. package/components/filter-value-picker-datetime/index.cjs +1 -1
  40. package/components/filter-value-picker-datetime/index.js +2 -2
  41. package/components/filter-value-picker-hierarchy/index.cjs +1 -1
  42. package/components/filter-value-picker-hierarchy/index.js +2 -2
  43. package/components/filter-value-picker-numeric/index.cjs +1 -1
  44. package/components/filter-value-picker-numeric/index.js +2 -2
  45. package/components/{formatter-CQDms6fU.js → formatter-CqU9_98M.js} +1 -0
  46. package/components/{formatter-DiJYkB6b.cjs → formatter-Lo9PMcxy.cjs} +1 -1
  47. package/components/{fr-B_-_f-VN.js → fr-CKHxPDre.js} +0 -1
  48. package/components/{fr-Dwulhlbi.cjs → fr-s3wNsLiB.cjs} +1 -1
  49. package/components/grid/index.cjs +1 -1
  50. package/components/grid/index.js +2 -2
  51. package/components/{heat-map-options.config-DQya-lag.js → heat-map-options.config-BnLWe8jS.js} +16 -14
  52. package/components/heat-map-options.config-DVH-Bb5-.cjs +20 -0
  53. package/components/index-BF9-Mgs_.cjs +249 -0
  54. package/components/{index-5Z9GD60H.js → index-CZ0HI7ep.js} +2 -2
  55. package/components/index-D05oY5ND.cjs +178 -0
  56. package/components/{index-Df-_TbOD.cjs → index-D4JNE3zI.cjs} +1 -1
  57. package/components/{index-fmbD10nN.js → index-DV63kOPg.js} +269 -242
  58. package/components/{index-BPVXrhaX.js → index-KFE-WtKZ.js} +5 -3
  59. package/components/index.cjs +1 -1
  60. package/components/index.js +4 -4
  61. package/components/item-context-configs.cjs +225 -0
  62. package/components/item-context-configs.js +1013 -0
  63. package/components/item-options-configs.cjs +20 -0
  64. package/components/item-options-configs.js +109 -0
  65. package/components/{localized-decorator-DIXYZ3RL.cjs → localized-decorator-CIHsaT2_.cjs} +1 -1
  66. package/components/{localized-decorator-Bl5gcI6n.js → localized-decorator-Di4TdvRQ.js} +1 -1
  67. package/components/{marker-map-options.config-CYoq89Oz.js → marker-map-options.config-DPJ955tt.js} +1 -1
  68. package/components/{marker-map-options.config-_XFv5XWK.cjs → marker-map-options.config-_FYZzRwA.cjs} +1 -1
  69. package/components/{nl-gdQCG4WV.js → nl-CMVty5rf.js} +0 -1
  70. package/components/{nl-DxdBIXDd.cjs → nl-DHgf0PUG.cjs} +1 -1
  71. package/components/{periods.const-7sXlqgEo.cjs → periods.const-CTd6Hskz.cjs} +1 -1
  72. package/components/{periods.const-B7FKokcH.js → periods.const-D77iT3rK.js} +1 -1
  73. package/components/{set-locale-DCPlazsZ.cjs → set-locale-CSL8WaxL.cjs} +1 -1
  74. package/components/{set-locale-GI34z_M7.js → set-locale-CW9yA503.js} +1 -1
  75. package/components/slot-contents-picker/index.cjs +1 -1
  76. package/components/slot-contents-picker/index.js +3 -3
  77. package/components/slot-menu/index.cjs +8 -8
  78. package/components/slot-menu/index.js +88 -76
  79. package/components/slot-menu-list/index.cjs +1 -1
  80. package/components/slot-menu-list/index.js +9 -10
  81. package/components/{symbol-map-options.config-Bj-UuL9m.js → symbol-map-options.config-DdDA4aa7.js} +1 -1
  82. package/components/{symbol-map-options.config-sdPlHspI.cjs → symbol-map-options.config-m-lwLTtu.cjs} +1 -1
  83. package/components/utils.cjs +1 -1
  84. package/components/utils.js +1 -1
  85. package/components/venn-diagram-options.config-CGUMA930.js +23 -0
  86. package/components/venn-diagram-options.config-mPXMR1CE.cjs +20 -0
  87. package/custom-elements.json +6 -0
  88. package/item-definitions/area-chart/area-chart-context.config.d.ts +20 -0
  89. package/item-definitions/bar-chart/bar-chart-context.config.d.ts +20 -0
  90. package/item-definitions/box-plot/box-plot-context.config.d.ts +17 -0
  91. package/item-definitions/bubble-chart/bubble-chart-context.config.d.ts +20 -0
  92. package/item-definitions/bullet-chart/bullet-chart-context.config.d.ts +20 -0
  93. package/item-definitions/choropleth-map/choropleth-map-context.config.d.ts +20 -0
  94. package/item-definitions/circle-pack-chart/circle-pack-chart-context.config.d.ts +17 -0
  95. package/item-definitions/circular-gauge/circular-gauge-context.config.d.ts +17 -0
  96. package/item-definitions/circular-gauge/circular-gauge-options.config.d.ts +1 -1
  97. package/item-definitions/column-chart/column-chart-context.config.d.ts +20 -0
  98. package/item-definitions/combination-chart/combination-chart-context.config.d.ts +17 -0
  99. package/item-definitions/conditional-number/conditional-number-context.config.d.ts +17 -0
  100. package/item-definitions/context-helpers.d.ts +2 -0
  101. package/item-definitions/date-filter/date-filter-context.config.d.ts +14 -0
  102. package/item-definitions/donut-chart/donut-chart-context.config.d.ts +17 -0
  103. package/item-definitions/dropdown-filter/dropdown-filter-context.config.d.ts +14 -0
  104. package/item-definitions/evolution-number/evolution-number-context.config.d.ts +17 -0
  105. package/item-definitions/funnel-chart/funnel-chart-context.config.d.ts +17 -0
  106. package/item-definitions/heat-map/heat-map-context.config.d.ts +17 -0
  107. package/item-definitions/heat-table/heat-table-context.config.d.ts +20 -0
  108. package/item-definitions/hexbin-map/hexbin-map-context.config.d.ts +17 -0
  109. package/item-definitions/image/image-context.config.d.ts +10 -0
  110. package/item-definitions/item-context.config.d.ts +44 -0
  111. package/item-definitions/item-options.config.d.ts +44 -0
  112. package/item-definitions/line-chart/line-chart-context.config.d.ts +20 -0
  113. package/item-definitions/marker-map/marker-map-context.config.d.ts +17 -0
  114. package/item-definitions/ohlc-chart/ohlc-chart-context.config.d.ts +26 -0
  115. package/item-definitions/parallel-coordinates-plot/parallel-coordinates-plot-context.config.d.ts +17 -0
  116. package/item-definitions/pivot-table/pivot-table-context.config.d.ts +20 -0
  117. package/item-definitions/pyramid-chart/pyramid-chart-context.config.d.ts +20 -0
  118. package/item-definitions/radar-chart/radar-chart-context.config.d.ts +20 -0
  119. package/item-definitions/regular-table/regular-table-context.config.d.ts +14 -0
  120. package/item-definitions/route-map/route-map-context.config.d.ts +23 -0
  121. package/item-definitions/sankey-diagram/sankey-diagram-context.config.d.ts +19 -0
  122. package/item-definitions/scatter-plot/scatter-plot-context.config.d.ts +26 -0
  123. package/item-definitions/search-filter/search-filter-context.config.d.ts +14 -0
  124. package/item-definitions/slicer-filter/slicer-filter-context.config.d.ts +17 -0
  125. package/item-definitions/slider-filter/slider-filter-context.config.d.ts +14 -0
  126. package/item-definitions/spacer/spacer-context.config.d.ts +10 -0
  127. package/item-definitions/speedometer-chart/speedometer-chart-context.config.d.ts +17 -0
  128. package/item-definitions/spike-map/spike-map-context.config.d.ts +20 -0
  129. package/item-definitions/strip-plot/strip-plot-context.config.d.ts +17 -0
  130. package/item-definitions/sunburst-chart/sunburst-chart-context.config.d.ts +17 -0
  131. package/item-definitions/symbol-map/symbol-map-context.config.d.ts +20 -0
  132. package/item-definitions/text/text-context.config.d.ts +10 -0
  133. package/item-definitions/treemap-chart/treemap-chart-context.config.d.ts +20 -0
  134. package/item-definitions/venn-diagram/venn-diagram-context.config.d.ts +20 -0
  135. package/item-definitions/venn-diagram/venn-diagram-options.config.d.ts +2 -0
  136. package/item-definitions/video/video-context.config.d.ts +10 -0
  137. package/item-definitions/wordcloud-chart/wordcloud-chart-context.config.d.ts +20 -0
  138. package/package.json +11 -1
  139. package/components/heat-map-options.config-BQ-Afrbi.cjs +0 -20
  140. package/components/index-3X8Iuo7y.cjs +0 -174
  141. package/components/index-CSfR7FMV.cjs +0 -249
@@ -17,8 +17,8 @@
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 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";
20
+ import { m as a, g as w, t as S, s as D } from "../set-locale-CW9yA503.js";
21
+ import { l as C } from "../localized-decorator-Di4TdvRQ.js";
22
22
  import "../index-D_jFGBMs.js";
23
23
  import "../index-BW3AUnEX.js";
24
24
  import "../index-CsDgk_sj.js";
@@ -26,15 +26,15 @@ import "../index-BssHAgUU.js";
26
26
  import "../index-DsP81c4M.js";
27
27
  import "../index-B2ngKWOI.js";
28
28
  import "../index-CTVNGPeT.js";
29
- import { d as _ } from "../decompose-numeric-format-BuZcjH2k.js";
30
- import { r as N, x as r, E as b, n as z } from "../property-DCzt3DR1.js";
31
- import { a8 as f, ac as E } from "../luzmo-icons-CVeTZ59u.js";
29
+ import { d as v } from "../decompose-numeric-format-BuZcjH2k.js";
30
+ import { r as N, x as r, E as _, n as h } from "../property-DCzt3DR1.js";
31
+ import { a8 as g, ac as E } from "../luzmo-icons-CVeTZ59u.js";
32
32
  import { a as I } from "../index-DUF6bALI.js";
33
33
  import "../index-BmshD32H.js";
34
34
  import { c as M, a as O } from "../calculate-data-item-icon-Dpvf1aLI.js";
35
- import { l as y } from "../localize-BX7q0S0M.js";
35
+ import { l as b } from "../localize-BX7q0S0M.js";
36
36
  import { r as k } from "../state-nDsQPund.js";
37
- import { e as g } from "../query-Ddbd72Um.js";
37
+ import { e as d } from "../query-Ddbd72Um.js";
38
38
  import { L as W } from "../focusable-BbymtxWI.js";
39
39
  import { S as T, E as U } from "../sized-mixin-BGzkX2g1.js";
40
40
  const L = () => {
@@ -44,7 +44,7 @@ const L = () => {
44
44
  }
45
45
  };
46
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:.5rem 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 = {
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{max-width:100%;font-weight:600;text-transform:uppercase;margin:.5rem 1rem;color:var(--luzmo-font-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:default}.no-weight-label{margin-left:1rem}.with-secondary-icon{clip-path:polygon(0 0,60% 0,65% 60%,100% 65%,100% 100%,0 100%)}.secondary-icon{position:absolute;bottom:45%;left:60%;width:auto;font-size:.75em;line-height:1}.data-icon-type{width:1.5rem;text-align:center;position:relative;display:inline-block}:host{--display-settings-numeric-gap: var(--luzmo-spacing-3);--numeric-duration-levels-dropdown-icon-margin-inline-start: var( --luzmo-spacing-2 )}:host([size=s]){--display-settings-numeric-gap: var(--luzmo-spacing-3);--numeric-duration-levels-dropdown-icon-margin-inline-start: var( --luzmo-spacing-1 )}:host([size=l]){--display-settings-numeric-gap: var(--luzmo-spacing-4);--numeric-duration-levels-dropdown-icon-margin-inline-start: var( --luzmo-spacing-3 )}:host([size=xl]){--display-settings-numeric-gap: var(--luzmo-spacing-5);--numeric-duration-levels-dropdown-icon-margin-inline-start: var( --luzmo-spacing-4 )}", P = {
48
48
  sum: () => a("Sum", { desc: "Numeric Aggregation option" }),
49
49
  cumulativesum: () => a("Cumulative sum", { desc: "Numeric Aggregation option" }),
50
50
  average: () => a("Average", { desc: "Numeric Aggregation option" }),
@@ -55,15 +55,15 @@ const j = ":host .settings-container{display:flex;flex-direction:column;gap:var(
55
55
  max: () => a("Maximum", { desc: "Numeric Aggregation option" }),
56
56
  stddev: () => a("Standard deviation", { desc: "Numeric Aggregation option" }),
57
57
  rate: () => a("Rate", { desc: "Numeric Aggregation option" })
58
- }, x = {
58
+ }, y = {
59
59
  general: "123",
60
60
  percentage: "%",
61
61
  scientific: "SI"
62
- }, A = {
62
+ }, x = {
63
63
  time: () => a("Time", { desc: "Time format option" }),
64
64
  short: () => a("Short", { desc: "Short format option" }),
65
65
  long: () => a("Long", { desc: "Long format option" })
66
- }, $ = {
66
+ }, A = {
67
67
  Auto: {
68
68
  auto: !0,
69
69
  label: () => a("Auto", { desc: "Automatic setting of the option" })
@@ -105,12 +105,12 @@ const j = ":host .settings-container{display:flex;flex-direction:column;gap:var(
105
105
  { level: 9, label: "milliseconds" }
106
106
  ]
107
107
  };
108
- var R = Object.defineProperty, q = Object.getOwnPropertyDescriptor, m = (e, t, o, s) => {
109
- for (var i = s > 1 ? void 0 : s ? q(t, o) : t, l = e.length - 1, u; l >= 0; l--)
110
- (u = e[l]) && (i = (s ? u(t, o, i) : u(i)) || i);
108
+ var R = Object.defineProperty, q = Object.getOwnPropertyDescriptor, c = (e, t, o, s) => {
109
+ for (var i = s > 1 ? void 0 : s ? q(t, o) : t, l = e.length - 1, m; l >= 0; l--)
110
+ (m = e[l]) && (i = (s ? m(t, o, i) : m(i)) || i);
111
111
  return s && i && R(t, o, i), i;
112
112
  };
113
- let n = class extends T(W, {
113
+ let u = class extends T(W, {
114
114
  validSizes: Object.values(U)
115
115
  }) {
116
116
  constructor() {
@@ -132,15 +132,15 @@ let n = class extends T(W, {
132
132
  return [N(j)];
133
133
  }
134
134
  _parseSavedNumericFormatSettings() {
135
- var e, t, o, s, i, l, u, c, h, p;
136
- 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")
135
+ var e, t, o, s, i, l, m;
136
+ if (this._displayMode = ((e = this.slotContent) == null ? void 0 : e.subtype) === "duration" ? "duration" : "numeric", this._durationFormat = ((o = (t = this.slotContent) == null ? void 0 : t.duration) == null ? void 0 : o.format) ?? "short", this._durationLevels = ((i = (s = this.slotContent) == null ? void 0 : s.duration) == null ? void 0 : i.levels) ?? [1], this._displayMode === "duration")
137
137
  this._precision = 2, this._commaDecimals = !1, this._thousandSeparator = !1;
138
138
  else {
139
- this._format = ((h = this.slotContent) == null ? void 0 : h.format) ?? ".0f";
140
- const d = _(this._format ?? ".0f");
141
- 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(
142
- d.typeFormat
143
- ), 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");
139
+ this._format = ((l = this.slotContent) == null ? void 0 : l.format) ?? ".0f";
140
+ const n = v(this._format ?? ".0f");
141
+ this._isAuto = ((m = n.typeFormat) == null ? void 0 : m.includes("a")) ?? !1, ["%", "a%", "y", "ay"].includes(n.typeFormat) ? this._displayAs = "percentage" : ["s", "as", "w", "aw"].includes(n.typeFormat) ? this._displayAs = "scientific" : this._displayAs = "general", this._precision = n.precision ? Number.parseInt(n.precision.replace(".", ""), 10) : this._displayAs === "scientific" ? 1 : 0, this._commaDecimals = ["z", "az", "y", "ay", "w", "aw"].includes(
142
+ n.typeFormat
143
+ ), this._thousandSeparator = n.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");
144
144
  }
145
145
  }
146
146
  _setNumericDisplayAs() {
@@ -148,7 +148,7 @@ let n = class extends T(W, {
148
148
  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();
149
149
  }
150
150
  _setNumericSeparators(e) {
151
- const t = $[(e == null ? void 0 : e.detail) ?? "Auto"];
151
+ const t = A[(e == null ? void 0 : e.detail) ?? "Auto"];
152
152
  this._thousandSeparator = [",", "."].includes(
153
153
  (t == null ? void 0 : t.thousandSeparator) ?? ""
154
154
  ), this._commaDecimals = (t == null ? void 0 : t.decimalSeparator) === ",", this._isAuto = t == null ? void 0 : t.auto, this._setNumericFormat(), this._sendEvent();
@@ -167,10 +167,10 @@ let n = class extends T(W, {
167
167
  const e = this._aggregationElement.value, t = this._aggregationFunc, o = this.slotContent.format;
168
168
  if (e !== (t === "weightedaverage" ? "average" : t)) {
169
169
  if (this._aggregationFunc = e === "average" && ((i = this._aggregationWeightColumn) != null && i.column) ? "weightedaverage" : e, t === "rate") {
170
- const l = _(o), u = ["%", "y", "a%", "ay"].includes(
170
+ const l = v(o), m = ["%", "y", "a%", "ay"].includes(
171
171
  l.typeFormat
172
172
  );
173
- this.slotContent.subtype === "currency" && u && this._setNumericDisplayAs();
173
+ this.slotContent.subtype === "currency" && m && this._setNumericDisplayAs();
174
174
  }
175
175
  this._sendEvent(), (this._aggregationFunc === "rate" || t === "rate") && this.requestUpdate();
176
176
  }
@@ -183,9 +183,9 @@ let n = class extends T(W, {
183
183
  else {
184
184
  let s, i;
185
185
  for (const l of this.measureColumns ?? []) {
186
- const u = (o = l.columns) == null ? void 0 : o.find((c) => c.id === e);
187
- if (u) {
188
- s = u, i = l.datasetId;
186
+ const m = (o = l.columns) == null ? void 0 : o.find((n) => n.id === e);
187
+ if (m) {
188
+ s = m, i = l.datasetId;
189
189
  break;
190
190
  }
191
191
  }
@@ -284,16 +284,16 @@ let n = class extends T(W, {
284
284
  <luzmo-field-label for="duration-levels">
285
285
  ${a("Duration levels", { desc: "Label for duration levels setting" })}
286
286
  </luzmo-field-label>
287
- <luzmo-action-button id="trigger" size=${this.size}>
287
+ <luzmo-action-button id="duration-levels-trigger" size=${this.size}>
288
288
  ${this._durationLevels.length}
289
289
  ${this._durationLevels.length === 1 ? "level" : "levels"} active
290
290
  <span class="duration-angle-down-icon">
291
- ${f(E)}
291
+ ${g(E)}
292
292
  </span>
293
293
  </luzmo-action-button>
294
294
  <luzmo-overlay
295
295
  id="duration-levels-overlay"
296
- trigger="trigger@click"
296
+ trigger="duration-levels-trigger@click"
297
297
  type="auto"
298
298
  placement="bottom-start"
299
299
  type="page"
@@ -313,8 +313,8 @@ let n = class extends T(W, {
313
313
  </div>`;
314
314
  }
315
315
  _renderDurationFormatSettings() {
316
- const e = Object.keys(A).map((t) => t === "time" && (this._maxDurationLevel ?? 1) < 6 ? "" : r`<luzmo-action-button value=${t}>
317
- ${A[t]()}
316
+ const e = Object.keys(x).map((t) => t === "time" && (this._maxDurationLevel ?? 1) < 6 ? "" : r`<luzmo-action-button value=${t}>
317
+ ${x[t]()}
318
318
  </luzmo-action-button>`);
319
319
  return r` <div class="setting">
320
320
  <luzmo-field-label for="duration-format">
@@ -334,9 +334,9 @@ let n = class extends T(W, {
334
334
  </div>`;
335
335
  }
336
336
  _renderNumericDisplayAsSettings() {
337
- const e = Object.keys(x).map(
337
+ const e = Object.keys(y).map(
338
338
  (t) => r`<luzmo-action-button value=${t}
339
- >${x[t]}</luzmo-action-button
339
+ >${y[t]}</luzmo-action-button
340
340
  >`
341
341
  );
342
342
  return r`<div class="setting">
@@ -359,7 +359,7 @@ let n = class extends T(W, {
359
359
  </div>`;
360
360
  }
361
361
  _renderNumericFormatSettings() {
362
- const e = Object.entries($).filter(
362
+ const e = Object.entries(A).filter(
363
363
  ([, { hiddenFor: t }]) => !t || t !== this._displayAs
364
364
  ).map(
365
365
  ([t, { label: o }]) => r`<luzmo-menu-item value=${t}>${o()}</luzmo-menu-item>`
@@ -410,7 +410,7 @@ let n = class extends T(W, {
410
410
  <span class="no-weight-label">No weight</span>
411
411
  </luzmo-menu-item>`,
412
412
  ...(this.measureColumns ?? []).flatMap((s) => {
413
- const i = typeof s.datasetName == "object" ? y(
413
+ const i = typeof s.datasetName == "object" ? b(
414
414
  s.datasetName,
415
415
  this.language
416
416
  ) : s.datasetName, l = r`<div class="dataset-header">
@@ -418,24 +418,24 @@ let n = class extends T(W, {
418
418
  <luzmo-tooltip self-managed placement="right" size=${this.size}>
419
419
  ${i}
420
420
  </luzmo-tooltip>
421
- </div>`, u = (s.columns ?? []).map((c) => {
422
- const h = typeof c.name == "object" ? y(c.name, this.language) : c.name, p = f(M(c, "s")), d = c.expression ? O("derived", "s") : void 0, v = !!d, F = v ? r`<span class="secondary-icon"
423
- >${f(d)}</span
424
- >` : b;
425
- return r`<luzmo-menu-item value=${c.id}>
421
+ </div>`, m = (s.columns ?? []).map((n) => {
422
+ const p = typeof n.name == "object" ? b(n.name, this.language) : n.name, $ = g(M(n, "s")), f = n.expression ? O("derived", "s") : void 0, z = !!f, F = z ? r`<span class="secondary-icon"
423
+ >${g(f)}</span
424
+ >` : _;
425
+ return r`<luzmo-menu-item value=${n.id}>
426
426
  <span class="data-icon-type" slot="icon">
427
- <span class=${v ? "with-secondary-icon" : ""}
428
- >${p}</span
427
+ <span class=${z ? "with-secondary-icon" : ""}
428
+ >${$}</span
429
429
  >
430
430
  ${F}
431
431
  </span>
432
- <span class="column-label text-truncate">${h}</span>
432
+ <span class="column-label text-truncate">${p}</span>
433
433
  <luzmo-tooltip self-managed placement="right" size=${this.size}>
434
- ${h}
434
+ ${p}
435
435
  </luzmo-tooltip>
436
436
  </luzmo-menu-item>`;
437
437
  });
438
- return [l, ...u];
438
+ return [l, ...m];
439
439
  })
440
440
  ];
441
441
  return r`<div class="settings-row">
@@ -493,51 +493,51 @@ let n = class extends T(W, {
493
493
  ${this._displayMode === "duration" ? this._renderDurationLevelsSettings() : this._renderNumericDisplayAsSettings()}
494
494
  ${((e = this._durationLevels) == null ? void 0 : e.length) > 1 ? this._renderDurationFormatSettings() : this._renderNumericFormatSettings()}
495
495
  </div>
496
- ${this._isFormula ? b : this._renderAggregationSettings()}
496
+ ${this._isFormula ? _ : this._renderAggregationSettings()}
497
497
  </div>
498
498
  </div>`;
499
499
  }
500
500
  };
501
- m([
502
- z({ type: String, reflect: !0 })
503
- ], n.prototype, "language", 2);
504
- m([
505
- z({ type: Object, reflect: !0 })
506
- ], n.prototype, "slotContent", 2);
507
- m([
508
- z({ type: Array, reflect: !1 })
509
- ], n.prototype, "measureColumns", 2);
510
- m([
511
- g("#display-as")
512
- ], n.prototype, "_displayAsElement", 2);
513
- m([
514
- g("#precision")
515
- ], n.prototype, "_precisionElement", 2);
516
- m([
517
- g("#aggregation")
518
- ], n.prototype, "_aggregationElement", 2);
519
- m([
520
- g("#weighting-column")
521
- ], n.prototype, "_aggregationWeightElement", 2);
522
- m([
523
- g("#duration-levels")
524
- ], n.prototype, "_durationLevelsElement", 2);
525
- m([
526
- g("#duration-format")
527
- ], n.prototype, "_durationFormatElement", 2);
528
- m([
529
- g("#duration-levels-overlay")
530
- ], n.prototype, "_durationLevelsOverlay", 2);
531
- m([
501
+ c([
502
+ h({ type: String, reflect: !0 })
503
+ ], u.prototype, "language", 2);
504
+ c([
505
+ h({ type: Object, reflect: !0 })
506
+ ], u.prototype, "slotContent", 2);
507
+ c([
508
+ h({ type: Array, reflect: !1 })
509
+ ], u.prototype, "measureColumns", 2);
510
+ c([
511
+ d("#display-as")
512
+ ], u.prototype, "_displayAsElement", 2);
513
+ c([
514
+ d("#precision")
515
+ ], u.prototype, "_precisionElement", 2);
516
+ c([
517
+ d("#aggregation")
518
+ ], u.prototype, "_aggregationElement", 2);
519
+ c([
520
+ d("#weighting-column")
521
+ ], u.prototype, "_aggregationWeightElement", 2);
522
+ c([
523
+ d("#duration-levels")
524
+ ], u.prototype, "_durationLevelsElement", 2);
525
+ c([
526
+ d("#duration-format")
527
+ ], u.prototype, "_durationFormatElement", 2);
528
+ c([
529
+ d("#duration-levels-overlay")
530
+ ], u.prototype, "_durationLevelsOverlay", 2);
531
+ c([
532
532
  k()
533
- ], n.prototype, "_renderDurationLevelMenu", 2);
534
- n = m([
533
+ ], u.prototype, "_renderDurationLevelMenu", 2);
534
+ u = c([
535
535
  C()
536
- ], n);
536
+ ], u);
537
537
  customElements.get("luzmo-display-settings-numeric") || customElements.define(
538
538
  "luzmo-display-settings-numeric",
539
- n
539
+ u
540
540
  );
541
541
  export {
542
- n as LuzmoDisplaySettingsNumeric
542
+ u as LuzmoDisplaySettingsNumeric
543
543
  };
@@ -17,7 +17,7 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../set-locale-DCPlazsZ.cjs"),E=require("../localized-decorator-DIXYZ3RL.cjs"),x=require("../luzmo-icons-DbwDQtuO-DSQ-uVxy.cjs"),i=require("../base-D76d76ww-tT6yr8eb.cjs"),$=require("../checkbox-mixin-Do7EgtpQ-D3m-dMTI.cjs");require("../index-j8UKjHqY.cjs");require("../index-tXl_aMnZ.cjs");require("../index-MPM_B4re.cjs");require("../index-Ck5VRoXN.cjs");const S=require("../decompose-numeric-format-B3rVVHpO.cjs"),s=require("../property-Cu4Q1hS4.cjs"),D=require("../state-fyl3IYMu.cjs"),g=require("../query-D5qWDopr.cjs"),I=require("../focusable-DAGGGYyz.cjs"),_=require("../sized-mixin-j_7aJM4b.cjs");/*! * Lucero - The design system for Luzmo.
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../set-locale-CSL8WaxL.cjs"),E=require("../localized-decorator-CIHsaT2_.cjs"),x=require("../luzmo-icons-DbwDQtuO-DSQ-uVxy.cjs"),i=require("../base-D76d76ww-tT6yr8eb.cjs"),$=require("../checkbox-mixin-Do7EgtpQ-D3m-dMTI.cjs");require("../index-j8UKjHqY.cjs");require("../index-tXl_aMnZ.cjs");require("../index-MPM_B4re.cjs");require("../index-Ck5VRoXN.cjs");const S=require("../decompose-numeric-format-B3rVVHpO.cjs"),s=require("../property-Cu4Q1hS4.cjs"),D=require("../state-fyl3IYMu.cjs"),g=require("../query-D5qWDopr.cjs"),I=require("../focusable-DAGGGYyz.cjs"),_=require("../sized-mixin-j_7aJM4b.cjs");/*! * Lucero - The design system for Luzmo.
21
21
  *
22
22
  * Copyright © 2025 Luzmo
23
23
  * All rights reserved.
@@ -17,8 +17,8 @@
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 t, g as I, t as j, s as A } from "../set-locale-GI34z_M7.js";
21
- import { l as D } from "../localized-decorator-Bl5gcI6n.js";
20
+ import { m as t, g as I, t as j, s as A } from "../set-locale-CW9yA503.js";
21
+ import { l as D } from "../localized-decorator-Di4TdvRQ.js";
22
22
  import { D as $, Z as T, g as F } from "../luzmo-icons-DbwDQtuO-QG0fLECn.js";
23
23
  import { m as H, a as B, R as p, I as E, z as h } from "../base-D76d76ww-BGkuhs54.js";
24
24
  import { k as N } from "../checkbox-mixin-Do7EgtpQ-hne79zc-.js";
@@ -17,7 +17,7 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../localized-decorator-DIXYZ3RL.cjs"),m=require("../set-locale-DCPlazsZ.cjs"),v=require("../periods.const-7sXlqgEo.cjs"),e=require("../property-Cu4Q1hS4.cjs"),p=require("../focusable-DAGGGYyz.cjs"),h=require("../sized-mixin-j_7aJM4b.cjs");require("../draggable-data-item-level/index.cjs");const y=":host{--draggable-data-item-sublevels-margin-vertical: var(--luzmo-spacing-1);--draggable-data-item-sublevels-gap: 0}:host([size=s]){--draggable-data-item-sublevels-margin-vertical: var(--luzmo-spacing-1)}:host([size=l]){--draggable-data-item-sublevels-margin-vertical: var(--luzmo-spacing-2)}:host([size=xl]){--draggable-data-item-sublevels-margin-vertical: var(--luzmo-spacing-3)}.draggable-data-item-sublevels{display:flex;flex-direction:column;gap:var(--luzmo-draggable-data-item-sublevels-gap, var(--draggable-data-item-sublevels-gap));margin:var(--luzmo-draggable-data-item-sublevels-margin-vertical, var(--draggable-data-item-sublevels-margin-vertical)) 0}:host{box-sizing:border-box}";var z=Object.defineProperty,D=Object.getOwnPropertyDescriptor,t=(n,l,s,i)=>{for(var a=i>1?void 0:i?D(l,s):l,g=n.length-1,o;g>=0;g--)(o=n[g])&&(a=(i?o(l,s,a):o(a))||a);return i&&a&&z(l,s,a),a};exports.LuzmoDraggableDataItem=class extends h.SizedMixin(p.LuzmoElement,{validSizes:["s","m","l","xl"],noDefaultSize:!0}){constructor(){super(...arguments),this.language="en",this.data={}}willUpdate(l){l.has("language")&&this.language!==m.getLocale()&&([...m.targetLocales].includes(this.language??"en")||this.language==="en")&&m.setLocale(this.language)}renderSublevels(){var s,i,a,g,o;let l;if(((s=this.data)==null?void 0:s.type)==="datetime")return l=((i=this.data)==null?void 0:i.subtype)==="date"?this.data.lowestLevel??5:this.data.lowestLevel??9,e.x`
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../localized-decorator-CIHsaT2_.cjs"),m=require("../set-locale-CSL8WaxL.cjs"),v=require("../periods.const-CTd6Hskz.cjs"),e=require("../property-Cu4Q1hS4.cjs"),p=require("../focusable-DAGGGYyz.cjs"),h=require("../sized-mixin-j_7aJM4b.cjs");require("../draggable-data-item-level/index.cjs");const y=":host{--draggable-data-item-sublevels-margin-vertical: var(--luzmo-spacing-1);--draggable-data-item-sublevels-gap: 0}:host([size=s]){--draggable-data-item-sublevels-margin-vertical: var(--luzmo-spacing-1)}:host([size=l]){--draggable-data-item-sublevels-margin-vertical: var(--luzmo-spacing-2)}:host([size=xl]){--draggable-data-item-sublevels-margin-vertical: var(--luzmo-spacing-3)}.draggable-data-item-sublevels{display:flex;flex-direction:column;gap:var(--luzmo-draggable-data-item-sublevels-gap, var(--draggable-data-item-sublevels-gap));margin:var(--luzmo-draggable-data-item-sublevels-margin-vertical, var(--draggable-data-item-sublevels-margin-vertical)) 0}:host{box-sizing:border-box}";var z=Object.defineProperty,D=Object.getOwnPropertyDescriptor,t=(n,l,s,i)=>{for(var a=i>1?void 0:i?D(l,s):l,g=n.length-1,o;g>=0;g--)(o=n[g])&&(a=(i?o(l,s,a):o(a))||a);return i&&a&&z(l,s,a),a};exports.LuzmoDraggableDataItem=class extends h.SizedMixin(p.LuzmoElement,{validSizes:["s","m","l","xl"],noDefaultSize:!0}){constructor(){super(...arguments),this.language="en",this.data={}}willUpdate(l){l.has("language")&&this.language!==m.getLocale()&&([...m.targetLocales].includes(this.language??"en")||this.language==="en")&&m.setLocale(this.language)}renderSublevels(){var s,i,a,g,o;let l;if(((s=this.data)==null?void 0:s.type)==="datetime")return l=((i=this.data)==null?void 0:i.subtype)==="date"?this.data.lowestLevel??5:this.data.lowestLevel??9,e.x`
21
21
  <div class="draggable-data-item-sublevels">
22
22
  ${Array.from({length:l},(b,r)=>{const d=v.DATETIME_LEVELS[r].i18n(),u={...this.data,level:r+1};return e.x`<luzmo-draggable-data-item-level
23
23
  sublevel
@@ -17,9 +17,9 @@
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 { l as b } from "../localized-decorator-Bl5gcI6n.js";
21
- import { g as p, t as h, s as f } from "../set-locale-GI34z_M7.js";
22
- import { D as v } from "../periods.const-B7FKokcH.js";
20
+ import { l as b } from "../localized-decorator-Di4TdvRQ.js";
21
+ import { g as p, t as h, s as f } from "../set-locale-CW9yA503.js";
22
+ import { D as v } from "../periods.const-D77iT3rK.js";
23
23
  import { x as n, r as y, n as a } from "../property-DCzt3DR1.js";
24
24
  import { L as x } from "../focusable-BbymtxWI.js";
25
25
  import { S as $ } from "../sized-mixin-BGzkX2g1.js";
@@ -17,7 +17,7 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("../get-css-variable-DLiZYZEi.cjs"),z=require("../luzmo-icons-DonyjSXg.cjs");require("../index-DSQyBS9Z.cjs");require("../index-CYeQkVeJ.cjs");const r=require("../property-Cu4Q1hS4.cjs"),T=require("../focusable-DAGGGYyz.cjs"),j=require("../sized-mixin-j_7aJM4b.cjs"),I=require("../calculate-data-item-icon-Dn-9Kd0U.cjs"),R=require("../localize-r7ALOUy_.cjs"),B=":host{font-family:var(--luzmo-draggable-data-item-level-font-family, var(--luzmo-font-family));color:var(--luzmo-draggable-data-item-level-font-color, var(--draggable-data-item-level-font-color))}.draggable-data-item-level{transition:background-color var(--luzmo-animation-duration);background-color:var(--luzmo-draggable-data-item-level-background-color, var(--draggable-data-item-level-background-color));display:flex;justify-content:space-between;align-items:center;padding:0 var(--luzmo-draggable-data-item-level-horizontal-padding, var(--draggable-data-item-level-horizontal-padding));gap:var(--luzmo-draggable-data-item-level-gap, var(--draggable-data-item-level-gap));border-radius:var(--luzmo-draggable-data-item-level-border-radius, var(--draggable-data-item-level-border-radius));border-width:var(--luzmo-draggable-data-item-level-border-width, var(--draggable-data-item-level-border-width));border-style:var(--luzmo-draggable-data-item-level-border-style, var(--draggable-data-item-level-border-style));border-color:var(--luzmo-draggable-data-item-level-border-color, var(--draggable-data-item-level-border-color));height:var(--luzmo-draggable-data-item-level-height, var(--draggable-data-item-level-height));cursor:move}.draggable-data-item-level:hover{background-color:var(--luzmo-draggable-data-item-level-background-color-hover, var(--draggable-data-item-level-background-color-hover));color:var(--luzmo-draggable-data-item-level-font-color-hover, var(--draggable-data-item-level-font-color-hover));border-color:var(--luzmo-draggable-data-item-level-border-color-hover, var(--draggable-data-item-level-border-color-hover))}.draggable-data-item-level .data-label{font-size:var(--luzmo-draggable-data-item-level-label-font-size, var(--draggable-data-item-level-label-font-size));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host([sublevel]) .draggable-data-item-level{height:var(--luzmo-draggable-data-item-level-sublevel-height, var(--draggable-data-item-level-sublevel-height));background-color:var(--luzmo-draggable-data-item-level-sublevel-background-color, var(--draggable-data-item-level-sublevel-background-color));border-color:var(--luzmo-draggable-data-item-level-sublevel-border-color, var(--draggable-data-item-level-sublevel-border-color));margin-inline-start:var(--luzmo-draggable-data-item-level-sublevel-margin-inline-start, var(--draggable-data-item-level-sublevel-margin-inline-start))}:host([sublevel]) .draggable-data-item-level:hover{background-color:var(--luzmo-draggable-data-item-level-sublevel-background-color-hover, var(--draggable-data-item-level-sublevel-background-color-hover))}:host([sublevel]) .draggable-data-item-level .drag-handle-icon{width:var(--luzmo-draggable-data-item-level-sublevel-drag-handle-width, var(--draggable-data-item-level-sublevel-drag-handle-width));text-align:center}:host([disabled]) .draggable-data-item-level{background-color:var(--luzmo-draggable-data-item-level-background-color-disabled, var(--draggable-data-item-level-background-color-disabled));color:var(--luzmo-draggable-data-item-level-color-disabled, var(--draggable-data-item-level-color-disabled));cursor:not-allowed}:host([disabled]) .drag-handle-icon{opacity:.25}:host([sublevel][disabled]) .draggable-data-item-level{background-color:var(--luzmo-draggable-data-item-level-sublevel-background-color-disabled, var(--draggable-data-item-level-sublevel-background-color-disabled))}.drag-handle-icon{opacity:.6;font-size:var(--luzmo-draggable-data-item-level-drag-handle-size, var(--luzmo-draggable-data-item-level-drag-handle-size));width:var(--luzmo-draggable-data-item-level-drag-handle-width, var(--luzmo-draggable-data-item-level-drag-handle-width));text-align:center}.data-icon-type{width:var(--luzmo-draggable-data-item-level-data-icon-width, var(--luzmo-draggable-data-item-level-data-icon-width));text-align:center;position:relative}.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:70%;width:auto;font-size:.75em;line-height:1}.data-label{flex-grow:1}.data-description{height:100%;display:flex;align-items:center;background-color:transparent;outline:none;border:none;color:var(--luzmo-draggable-data-item-level-font-color, var(--draggable-data-item-level-font-color));font-size:var(--luzmo-draggable-data-item-level-label-font-size, var(--draggable-data-item-level-label-font-size))}:host([variant=highlight]){--draggable-data-item-level-background-color: var( --luzmo-background-color-highlight );--draggable-data-item-level-border-color: var( --luzmo-background-color-highlight );--draggable-data-item-level-background-color-hover: var( --luzmo-background-color-highlight-hover );--draggable-data-item-level-font-color-hover: var(--luzmo-font-color-hover);--draggable-data-item-level-border-color-hover: var( --luzmo-background-color-highlight-hover )}:host{--draggable-data-item-level-height: var(--luzmo-component-height);--draggable-data-item-level-label-font-size: var(--luzmo-font-size);--draggable-data-item-level-icon-type-size: var(--luzmo-font-size);--draggable-data-item-level-horizontal-padding: var(--luzmo-spacing-5);--draggable-data-item-level-border-width: var(--luzmo-border-width);--draggable-data-item-level-border-style: solid;--draggable-data-item-level-border-color: var(--luzmo-border-color-hover);--draggable-data-item-level-border-radius: var(--luzmo-border-radius);--draggable-data-item-level-gap: var(--luzmo-spacing-4);--draggable-data-item-level-font-color: var(--luzmo-font-color);--draggable-data-item-level-color-disabled: var(--luzmo-color-disabled);--draggable-data-item-level-background-color-disabled: var( --luzmo-background-color-disabled );--luzmo-draggable-data-item-level-drag-handle-size: var(--luzmo-font-size-s);--luzmo-draggable-data-item-level-drag-handle-width: var( --draggable-data-item-level-icon-type-size );--luzmo-draggable-data-item-level-data-icon-width: calc( var(--draggable-data-item-level-icon-type-size) + var(--luzmo-spacing-3) );--draggable-data-item-level-sublevel-height: var(--luzmo-component-height-s);--draggable-data-item-level-sublevel-border-color: transparent;--draggable-data-item-level-sublevel-background-color: transparent;--draggable-data-item-level-sublevel-background-color-disabled: transparent;--draggable-data-item-level-sublevel-margin-inline-start: calc( var(--draggable-data-item-level-gap) + var(--luzmo-draggable-data-item-level-drag-handle-width) );--luzmo-draggable-data-item-level-sublevel-drag-handle-width: var( --luzmo-draggable-data-item-level-data-icon-width );--draggable-data-item-level-sublevel-background-color-hover: rgba( var(--luzmo-border-color-rgb), .05 )}:host([hide-type-icon]){--draggable-data-item-level-sublevel-margin-inline-start: var( --draggable-data-item-level-gap )}:host(.highlighted) .draggable-data-item-level{background-color:var(--luzmo-primary);color:var(--luzmo-primary-inverse-color);border-color:var(--luzmo-primary)}:host([size=s]){--draggable-data-item-level-height: var(--luzmo-component-height-s);--draggable-data-item-level-label-font-size: var(--luzmo-font-size-s);--draggable-data-item-level-icon-type-size: var(--luzmo-font-size-s);--draggable-data-item-level-horizontal-padding: var(--luzmo-spacing-4);--draggable-data-item-level-border-radius: var(--luzmo-border-radius);--draggable-data-item-level-gap: var(--luzmo-spacing-3);--draggable-data-item-level-sublevel-height: var(--luzmo-component-height-xs);--luzmo-draggable-data-item-level-drag-handle-size: var(--luzmo-font-size-xs)}:host([size=l]){--draggable-data-item-level-height: var(--luzmo-component-height-l);--draggable-data-item-level-label-font-size: var(--luzmo-font-size-l);--draggable-data-item-level-icon-type-size: var(--luzmo-font-size-l);--draggable-data-item-level-horizontal-padding: var(--luzmo-spacing-5);--draggable-data-item-level-border-radius: var(--luzmo-border-radius-l);--draggable-data-item-level-gap: var(--luzmo-spacing-5);--draggable-data-item-level-sublevel-height: var(--luzmo-component-height);--luzmo-draggable-data-item-level-drag-handle-size: var(--luzmo-font-size)}:host([size=xl]){--draggable-data-item-level-height: var(--luzmo-component-height-xl);--draggable-data-item-level-label-font-size: var(--luzmo-font-size-xl);--draggable-data-item-level-icon-type-size: var(--luzmo-font-size-xl);--draggable-data-item-level-horizontal-padding: var(--luzmo-spacing-5);--draggable-data-item-level-border-radius: var(--luzmo-border-radius-xl);--draggable-data-item-level-gap: var(--luzmo-spacing-5);--draggable-data-item-level-sublevel-height: var(--luzmo-component-height-l);--luzmo-draggable-data-item-level-drag-handle-size: var(--luzmo-font-size-l)}:host{box-sizing:border-box}",M=a=>{var b,c,m,u,h,p,y,k,C,D,S,_,E,H,$,q,L;const o=a.source.element;let e="";(u=(m=(c=(b=a.source)==null?void 0:b.element)==null?void 0:c.renderRoot)==null?void 0:m.querySelector(".data-label"))!=null&&u.textContent&&(e=(y=(p=(h=a.source)==null?void 0:h.element)==null?void 0:p.renderRoot)==null?void 0:y.querySelector(".data-label").textContent),e||(e=R.localize((C=(k=a==null?void 0:a.source)==null?void 0:k.data)==null?void 0:C.label,(S=(D=a==null?void 0:a.source)==null?void 0:D.element)==null?void 0:S.language),e=e||"Untitled");const n=(E=(_=a==null?void 0:a.source)==null?void 0:_.data)==null?void 0:E.type,t=($=(H=a==null?void 0:a.source)==null?void 0:H.data)==null?void 0:$.subtype,d=I.calculateDataItemIcon({type:n,subtype:t},o.size),l={};[["borderColor","--luzmo-draggable-data-item-level-border-color","--draggable-data-item-level-border-color"],["backgroundColor","--luzmo-draggable-data-item-level-background-color","--draggable-data-item-level-background-color"],["color","--luzmo-draggable-data-item-level-font-color","--draggable-data-item-level-font-color"],["fontSize","--luzmo-draggable-data-item-level-label-font-size","--draggable-data-item-level-label-font-size"],["height","--luzmo-draggable-data-item-level-height","--draggable-data-item-level-height"],["borderRadius","--luzmo-draggable-data-item-level-border-radius","--draggable-data-item-level-border-radius"],["fontFamily","--luzmo-draggable-data-item-level-font-family","--luzmo-font-family"],["horizontalPadding","--luzmo-draggable-data-item-level-horizontal-padding","--draggable-data-item-level-horizontal-padding"],["gap","--luzmo-draggable-data-item-level-gap","--draggable-data-item-level-gap"]].forEach(([f,P,V])=>{const O=w.getCssVariableValue(o,P)||w.getCssVariableValue(o,V);l[f]=O});const s=document.createElement("div"),g=document.createElement("div");if(s.innerHTML=e,!((L=(q=a==null?void 0:a.source)==null?void 0:q.element)!=null&&L.sublevel)){const f=document.createElement("luzmo-icon");f.icon=d,g.append(f)}return g.append(s),Object.assign(g.style,{display:"flex",alignItems:"center",height:l.height,border:`1px solid ${l.borderColor}`,backgroundColor:l.backgroundColor,borderRadius:l.borderRadius,fontFamily:l.fontFamily,fontSize:l.fontSize,color:l.color,padding:`0 ${l.horizontalPadding}`,gap:l.gap}),g};var F=Object.defineProperty,v=(a,o,e,n)=>{for(var t=void 0,d=a.length-1,l;d>=0;d--)(l=a[d])&&(t=l(o,e,t)||t);return t&&F(o,e,t),t};const x=class x extends j.SizedMixin(T.LuzmoElement,{validSizes:["s","m","l","xl"],noDefaultSize:!0}){constructor(){super(...arguments),this.language="en",this.data={},this._isCurrentlyHighlighted=!1,this._handleHighlight=o=>{var g,b,c,m,u,h;const e=o.detail??{},{columnId:n,level:t}=e,d=((g=this.data)==null?void 0:g.columnId)??((b=this.data)==null?void 0:b.column)??((c=this.data)==null?void 0:c.formulaId)??((m=this.data)==null?void 0:m.formula)??((u=this.data)==null?void 0:u.id),l=((h=this.data)==null?void 0:h.level)??0,s=d===n&&l===(t??0);if(this.classList.toggle("highlighted",s),s&&!this._isCurrentlyHighlighted){this._isCurrentlyHighlighted=!0;const p=this.getBoundingClientRect(),y=window.innerHeight||document.documentElement.clientHeight;if(p.top<0||p.bottom>y)try{this.scrollIntoView({block:"center"})}catch{this.scrollIntoView(!0)}}else!s&&this._isCurrentlyHighlighted&&(this._isCurrentlyHighlighted=!1)},this._clearHighlight=()=>{this.classList.remove("highlighted"),this._isCurrentlyHighlighted=!1},this.dataItemLevelDropped=o=>{this.dispatchEvent(new CustomEvent("data-item-dropped",{bubbles:!0,composed:!0,cancelable:!0,detail:{data:o}}))},this.dataItemLevelDragStarted=()=>{this.dispatchEvent(new CustomEvent("data-item-drag-started",{bubbles:!0,composed:!0,cancelable:!0,detail:{data:this.data}}))}}disconnectedCallback(){super.disconnectedCallback(),this._cleanupDraggable&&(this._cleanupDraggable(),this._cleanupDraggable=void 0),window.removeEventListener("slot-menu-highlight",this._handleHighlight),window.removeEventListener("slot-menu-inactive",this._clearHighlight)}connectedCallback(){super.connectedCallback(),window.addEventListener("slot-menu-highlight",this._handleHighlight),window.addEventListener("slot-menu-inactive",this._clearHighlight)}firstUpdated(o){this._cleanupDraggable=w.draggable({element:this,canDrag:()=>!this.disabled,onDragStart:()=>{this.style.opacity="0.5",this.dataItemLevelDragStarted()},onDrop:()=>{this.style.opacity="1",this.dataItemLevelDropped(this.data)},getInitialData:()=>{const e={...this.data};return this.label&&this.language&&!this.sublevel&&(e.label={},e.label[this.language]=this.label),this.description&&this.language&&(e.description={},e.description[this.language]=this.description),e},onGenerateDragPreview:e=>{const n=e.nativeSetDragImage;w.setCustomNativeDragPreview({render({container:t}){const d=M(e);t.append(d)},nativeSetDragImage:n})}})}render(){var t,d,l,s,g,b,c,m,u,h;const o=this.label??((d=(t=this.data)==null?void 0:t.label)==null?void 0:d[this.language])??((g=(l=this.data)==null?void 0:l.label)==null?void 0:g[Object.keys((s=this.data)==null?void 0:s.label)[0]])??"Untitled",e=this.description??((c=(b=this.data)==null?void 0:b.description)==null?void 0:c[this.language])??((h=(m=this.data)==null?void 0:m.description)==null?void 0:h[Object.keys((u=this.data)==null?void 0:u.description)[0]]),n=this.secondaryIconType?I.calculateDataItemSecondaryIcon(this.secondaryIconType,this.size):void 0;return r.x`
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("../get-css-variable-DLiZYZEi.cjs"),z=require("../luzmo-icons-DonyjSXg.cjs");require("../index-DSQyBS9Z.cjs");require("../index-CYeQkVeJ.cjs");const r=require("../property-Cu4Q1hS4.cjs"),T=require("../focusable-DAGGGYyz.cjs"),j=require("../sized-mixin-j_7aJM4b.cjs"),I=require("../calculate-data-item-icon-Dn-9Kd0U.cjs"),R=require("../localize-r7ALOUy_.cjs"),B=":host{font-family:var(--luzmo-draggable-data-item-level-font-family, var(--luzmo-font-family));color:var(--luzmo-draggable-data-item-level-font-color, var(--draggable-data-item-level-font-color))}.draggable-data-item-level{transition:background-color var(--luzmo-animation-duration);background-color:var(--luzmo-draggable-data-item-level-background-color, var(--draggable-data-item-level-background-color));display:flex;justify-content:space-between;align-items:center;padding:0 var(--luzmo-draggable-data-item-level-horizontal-padding, var(--draggable-data-item-level-horizontal-padding));gap:var(--luzmo-draggable-data-item-level-gap, var(--draggable-data-item-level-gap));border-radius:var(--luzmo-draggable-data-item-level-border-radius, var(--draggable-data-item-level-border-radius));border-width:var(--luzmo-draggable-data-item-level-border-width, var(--draggable-data-item-level-border-width));border-style:var(--luzmo-draggable-data-item-level-border-style, var(--draggable-data-item-level-border-style));border-color:var(--luzmo-draggable-data-item-level-border-color, var(--draggable-data-item-level-border-color));height:var(--luzmo-draggable-data-item-level-height, var(--draggable-data-item-level-height));cursor:move}.draggable-data-item-level:hover{background-color:var(--luzmo-draggable-data-item-level-background-color-hover, var(--draggable-data-item-level-background-color-hover));color:var(--luzmo-draggable-data-item-level-font-color-hover, var(--draggable-data-item-level-font-color-hover));border-color:var(--luzmo-draggable-data-item-level-border-color-hover, var(--draggable-data-item-level-border-color-hover))}.draggable-data-item-level .data-label{font-size:var(--luzmo-draggable-data-item-level-label-font-size, var(--draggable-data-item-level-label-font-size));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host([sublevel]) .draggable-data-item-level{height:var(--luzmo-draggable-data-item-level-sublevel-height, var(--draggable-data-item-level-sublevel-height));background-color:var(--luzmo-draggable-data-item-level-sublevel-background-color, var(--draggable-data-item-level-sublevel-background-color));border-color:var(--luzmo-draggable-data-item-level-sublevel-border-color, var(--draggable-data-item-level-sublevel-border-color));margin-inline-start:var(--luzmo-draggable-data-item-level-sublevel-margin-inline-start, var(--draggable-data-item-level-sublevel-margin-inline-start))}:host([sublevel]) .draggable-data-item-level:hover{background-color:var(--luzmo-draggable-data-item-level-sublevel-background-color-hover, var(--draggable-data-item-level-sublevel-background-color-hover))}:host([sublevel]) .draggable-data-item-level .drag-handle-icon{width:var(--luzmo-draggable-data-item-level-sublevel-drag-handle-width, var(--draggable-data-item-level-sublevel-drag-handle-width));text-align:center}:host([disabled]) .draggable-data-item-level{background-color:var(--luzmo-draggable-data-item-level-background-color-disabled, var(--draggable-data-item-level-background-color-disabled));color:var(--luzmo-draggable-data-item-level-color-disabled, var(--draggable-data-item-level-color-disabled));cursor:not-allowed}:host([disabled]) .drag-handle-icon{opacity:.25}:host([sublevel][disabled]) .draggable-data-item-level{background-color:var(--luzmo-draggable-data-item-level-sublevel-background-color-disabled, var(--draggable-data-item-level-sublevel-background-color-disabled))}.drag-handle-icon{opacity:.6;font-size:var(--luzmo-draggable-data-item-level-drag-handle-size, var(--luzmo-draggable-data-item-level-drag-handle-size));width:var(--luzmo-draggable-data-item-level-drag-handle-width, var(--luzmo-draggable-data-item-level-drag-handle-width));text-align:center}.data-icon-type{width:var(--luzmo-draggable-data-item-level-data-icon-width, var(--luzmo-draggable-data-item-level-data-icon-width));text-align:center;position:relative}.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:70%;width:auto;font-size:.75em;line-height:1}.data-label{flex-grow:1}.data-description{height:100%;display:flex;align-items:center;background-color:transparent;outline:none;border:none;color:var(--luzmo-draggable-data-item-level-font-color, var(--draggable-data-item-level-font-color));font-size:var(--luzmo-draggable-data-item-level-label-font-size, var(--draggable-data-item-level-label-font-size))}:host([variant=highlight]){--draggable-data-item-level-background-color: var( --luzmo-background-color-highlight );--draggable-data-item-level-border-color: var( --luzmo-background-color-highlight );--draggable-data-item-level-background-color-hover: var( --luzmo-background-color-highlight-hover );--draggable-data-item-level-font-color-hover: var(--luzmo-font-color-hover);--draggable-data-item-level-border-color-hover: var( --luzmo-background-color-highlight-hover )}:host{--draggable-data-item-level-height: var(--luzmo-component-height);--draggable-data-item-level-label-font-size: var(--luzmo-font-size);--draggable-data-item-level-icon-type-size: var(--luzmo-font-size);--draggable-data-item-level-horizontal-padding: var(--luzmo-spacing-5);--draggable-data-item-level-border-width: var(--luzmo-border-width);--draggable-data-item-level-border-style: solid;--draggable-data-item-level-border-color: var(--luzmo-border-color-hover);--draggable-data-item-level-border-radius: var(--luzmo-border-radius);--draggable-data-item-level-gap: var(--luzmo-spacing-4);--draggable-data-item-level-font-color: var(--luzmo-font-color);--draggable-data-item-level-color-disabled: var(--luzmo-color-disabled);--draggable-data-item-level-background-color-disabled: var( --luzmo-background-color-disabled );--luzmo-draggable-data-item-level-drag-handle-size: var(--luzmo-font-size-s);--luzmo-draggable-data-item-level-drag-handle-width: var( --draggable-data-item-level-icon-type-size );--luzmo-draggable-data-item-level-data-icon-width: calc( var(--draggable-data-item-level-icon-type-size) + var(--luzmo-spacing-3) );--draggable-data-item-level-sublevel-height: var(--luzmo-component-height-s);--draggable-data-item-level-sublevel-border-color: transparent;--draggable-data-item-level-sublevel-background-color: transparent;--draggable-data-item-level-sublevel-background-color-disabled: transparent;--draggable-data-item-level-sublevel-margin-inline-start: calc( var(--draggable-data-item-level-gap) + var(--luzmo-draggable-data-item-level-drag-handle-width) );--luzmo-draggable-data-item-level-sublevel-drag-handle-width: var( --luzmo-draggable-data-item-level-data-icon-width );--draggable-data-item-level-sublevel-background-color-hover: rgba( var(--luzmo-border-color-rgb), .05 )}:host([hide-type-icon]){--draggable-data-item-level-sublevel-margin-inline-start: var( --draggable-data-item-level-gap )}:host(.highlighted) .draggable-data-item-level,:host(.highlighted) .data-description{background-color:var(--luzmo-primary);color:var(--luzmo-primary-inverse-color);border-color:var(--luzmo-primary)}:host([size=s]){--draggable-data-item-level-height: var(--luzmo-component-height-s);--draggable-data-item-level-label-font-size: var(--luzmo-font-size-s);--draggable-data-item-level-icon-type-size: var(--luzmo-font-size-s);--draggable-data-item-level-horizontal-padding: var(--luzmo-spacing-4);--draggable-data-item-level-border-radius: var(--luzmo-border-radius);--draggable-data-item-level-gap: var(--luzmo-spacing-3);--draggable-data-item-level-sublevel-height: var(--luzmo-component-height-xs);--luzmo-draggable-data-item-level-drag-handle-size: var(--luzmo-font-size-xs)}:host([size=l]){--draggable-data-item-level-height: var(--luzmo-component-height-l);--draggable-data-item-level-label-font-size: var(--luzmo-font-size-l);--draggable-data-item-level-icon-type-size: var(--luzmo-font-size-l);--draggable-data-item-level-horizontal-padding: var(--luzmo-spacing-5);--draggable-data-item-level-border-radius: var(--luzmo-border-radius-l);--draggable-data-item-level-gap: var(--luzmo-spacing-5);--draggable-data-item-level-sublevel-height: var(--luzmo-component-height);--luzmo-draggable-data-item-level-drag-handle-size: var(--luzmo-font-size)}:host([size=xl]){--draggable-data-item-level-height: var(--luzmo-component-height-xl);--draggable-data-item-level-label-font-size: var(--luzmo-font-size-xl);--draggable-data-item-level-icon-type-size: var(--luzmo-font-size-xl);--draggable-data-item-level-horizontal-padding: var(--luzmo-spacing-5);--draggable-data-item-level-border-radius: var(--luzmo-border-radius-xl);--draggable-data-item-level-gap: var(--luzmo-spacing-5);--draggable-data-item-level-sublevel-height: var(--luzmo-component-height-l);--luzmo-draggable-data-item-level-drag-handle-size: var(--luzmo-font-size-l)}:host{box-sizing:border-box}",M=a=>{var c,b,m,u,h,p,y,k,C,D,S,_,E,H,$,q,L;const o=a.source.element;let e="";(u=(m=(b=(c=a.source)==null?void 0:c.element)==null?void 0:b.renderRoot)==null?void 0:m.querySelector(".data-label"))!=null&&u.textContent&&(e=(y=(p=(h=a.source)==null?void 0:h.element)==null?void 0:p.renderRoot)==null?void 0:y.querySelector(".data-label").textContent),e||(e=R.localize((C=(k=a==null?void 0:a.source)==null?void 0:k.data)==null?void 0:C.label,(S=(D=a==null?void 0:a.source)==null?void 0:D.element)==null?void 0:S.language),e=e||"Untitled");const n=(E=(_=a==null?void 0:a.source)==null?void 0:_.data)==null?void 0:E.type,t=($=(H=a==null?void 0:a.source)==null?void 0:H.data)==null?void 0:$.subtype,d=I.calculateDataItemIcon({type:n,subtype:t},o.size),l={};[["borderColor","--luzmo-draggable-data-item-level-border-color","--draggable-data-item-level-border-color"],["backgroundColor","--luzmo-draggable-data-item-level-background-color","--draggable-data-item-level-background-color"],["color","--luzmo-draggable-data-item-level-font-color","--draggable-data-item-level-font-color"],["fontSize","--luzmo-draggable-data-item-level-label-font-size","--draggable-data-item-level-label-font-size"],["height","--luzmo-draggable-data-item-level-height","--draggable-data-item-level-height"],["borderRadius","--luzmo-draggable-data-item-level-border-radius","--draggable-data-item-level-border-radius"],["fontFamily","--luzmo-draggable-data-item-level-font-family","--luzmo-font-family"],["horizontalPadding","--luzmo-draggable-data-item-level-horizontal-padding","--draggable-data-item-level-horizontal-padding"],["gap","--luzmo-draggable-data-item-level-gap","--draggable-data-item-level-gap"]].forEach(([f,P,V])=>{const O=w.getCssVariableValue(o,P)||w.getCssVariableValue(o,V);l[f]=O});const s=document.createElement("div"),g=document.createElement("div");if(s.innerHTML=e,!((L=(q=a==null?void 0:a.source)==null?void 0:q.element)!=null&&L.sublevel)){const f=document.createElement("luzmo-icon");f.icon=d,g.append(f)}return g.append(s),Object.assign(g.style,{display:"flex",alignItems:"center",height:l.height,border:`1px solid ${l.borderColor}`,backgroundColor:l.backgroundColor,borderRadius:l.borderRadius,fontFamily:l.fontFamily,fontSize:l.fontSize,color:l.color,padding:`0 ${l.horizontalPadding}`,gap:l.gap}),g};var F=Object.defineProperty,v=(a,o,e,n)=>{for(var t=void 0,d=a.length-1,l;d>=0;d--)(l=a[d])&&(t=l(o,e,t)||t);return t&&F(o,e,t),t};const x=class x extends j.SizedMixin(T.LuzmoElement,{validSizes:["s","m","l","xl"],noDefaultSize:!0}){constructor(){super(...arguments),this.language="en",this.data={},this._isCurrentlyHighlighted=!1,this._handleHighlight=o=>{var g,c,b,m,u,h;const e=o.detail??{},{columnId:n,level:t}=e,d=((g=this.data)==null?void 0:g.columnId)??((c=this.data)==null?void 0:c.column)??((b=this.data)==null?void 0:b.formulaId)??((m=this.data)==null?void 0:m.formula)??((u=this.data)==null?void 0:u.id),l=((h=this.data)==null?void 0:h.level)??0,s=d===n&&l===(t??0);if(this.classList.toggle("highlighted",s),s&&!this._isCurrentlyHighlighted){this._isCurrentlyHighlighted=!0;const p=this.getBoundingClientRect(),y=window.innerHeight||document.documentElement.clientHeight;if(p.top<0||p.bottom>y)try{this.scrollIntoView({block:"center"})}catch{this.scrollIntoView(!0)}}else!s&&this._isCurrentlyHighlighted&&(this._isCurrentlyHighlighted=!1)},this._clearHighlight=()=>{this.classList.remove("highlighted"),this._isCurrentlyHighlighted=!1},this.dataItemLevelDropped=o=>{this.dispatchEvent(new CustomEvent("data-item-dropped",{bubbles:!0,composed:!0,cancelable:!0,detail:{data:o}}))},this.dataItemLevelDragStarted=()=>{this.dispatchEvent(new CustomEvent("data-item-drag-started",{bubbles:!0,composed:!0,cancelable:!0,detail:{data:this.data}}))}}disconnectedCallback(){super.disconnectedCallback(),this._cleanupDraggable&&(this._cleanupDraggable(),this._cleanupDraggable=void 0),window.removeEventListener("slot-menu-highlight",this._handleHighlight),window.removeEventListener("slot-menu-inactive",this._clearHighlight)}connectedCallback(){super.connectedCallback(),window.addEventListener("slot-menu-highlight",this._handleHighlight),window.addEventListener("slot-menu-inactive",this._clearHighlight)}firstUpdated(o){this._cleanupDraggable=w.draggable({element:this,canDrag:()=>!this.disabled,onDragStart:()=>{this.style.opacity="0.5",this.dataItemLevelDragStarted()},onDrop:()=>{this.style.opacity="1",this.dataItemLevelDropped(this.data)},getInitialData:()=>{const e={...this.data};return this.label&&this.language&&!this.sublevel&&(e.label={},e.label[this.language]=this.label),this.description&&this.language&&(e.description={},e.description[this.language]=this.description),e},onGenerateDragPreview:e=>{const n=e.nativeSetDragImage;w.setCustomNativeDragPreview({render({container:t}){const d=M(e);t.append(d)},nativeSetDragImage:n})}})}render(){var t,d,l,s,g,c,b,m,u,h;const o=this.label??((d=(t=this.data)==null?void 0:t.label)==null?void 0:d[this.language])??((g=(l=this.data)==null?void 0:l.label)==null?void 0:g[Object.keys((s=this.data)==null?void 0:s.label)[0]])??"Untitled",e=this.description??((b=(c=this.data)==null?void 0:c.description)==null?void 0:b[this.language])??((h=(m=this.data)==null?void 0:m.description)==null?void 0:h[Object.keys((u=this.data)==null?void 0:u.description)[0]]),n=this.secondaryIconType?I.calculateDataItemSecondaryIcon(this.secondaryIconType,this.size):void 0;return r.x`
21
21
  <div class="draggable-data-item-level">
22
22
  <div class="drag-handle-icon">
23
23
  ${this.sublevel?z.y3(z.b0):z.y3(z.W)}
@@ -33,7 +33,7 @@ const j = () => {
33
33
  }
34
34
  };
35
35
  j();
36
- const K = ":host{font-family:var(--luzmo-draggable-data-item-level-font-family, var(--luzmo-font-family));color:var(--luzmo-draggable-data-item-level-font-color, var(--draggable-data-item-level-font-color))}.draggable-data-item-level{transition:background-color var(--luzmo-animation-duration);background-color:var(--luzmo-draggable-data-item-level-background-color, var(--draggable-data-item-level-background-color));display:flex;justify-content:space-between;align-items:center;padding:0 var(--luzmo-draggable-data-item-level-horizontal-padding, var(--draggable-data-item-level-horizontal-padding));gap:var(--luzmo-draggable-data-item-level-gap, var(--draggable-data-item-level-gap));border-radius:var(--luzmo-draggable-data-item-level-border-radius, var(--draggable-data-item-level-border-radius));border-width:var(--luzmo-draggable-data-item-level-border-width, var(--draggable-data-item-level-border-width));border-style:var(--luzmo-draggable-data-item-level-border-style, var(--draggable-data-item-level-border-style));border-color:var(--luzmo-draggable-data-item-level-border-color, var(--draggable-data-item-level-border-color));height:var(--luzmo-draggable-data-item-level-height, var(--draggable-data-item-level-height));cursor:move}.draggable-data-item-level:hover{background-color:var(--luzmo-draggable-data-item-level-background-color-hover, var(--draggable-data-item-level-background-color-hover));color:var(--luzmo-draggable-data-item-level-font-color-hover, var(--draggable-data-item-level-font-color-hover));border-color:var(--luzmo-draggable-data-item-level-border-color-hover, var(--draggable-data-item-level-border-color-hover))}.draggable-data-item-level .data-label{font-size:var(--luzmo-draggable-data-item-level-label-font-size, var(--draggable-data-item-level-label-font-size));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host([sublevel]) .draggable-data-item-level{height:var(--luzmo-draggable-data-item-level-sublevel-height, var(--draggable-data-item-level-sublevel-height));background-color:var(--luzmo-draggable-data-item-level-sublevel-background-color, var(--draggable-data-item-level-sublevel-background-color));border-color:var(--luzmo-draggable-data-item-level-sublevel-border-color, var(--draggable-data-item-level-sublevel-border-color));margin-inline-start:var(--luzmo-draggable-data-item-level-sublevel-margin-inline-start, var(--draggable-data-item-level-sublevel-margin-inline-start))}:host([sublevel]) .draggable-data-item-level:hover{background-color:var(--luzmo-draggable-data-item-level-sublevel-background-color-hover, var(--draggable-data-item-level-sublevel-background-color-hover))}:host([sublevel]) .draggable-data-item-level .drag-handle-icon{width:var(--luzmo-draggable-data-item-level-sublevel-drag-handle-width, var(--draggable-data-item-level-sublevel-drag-handle-width));text-align:center}:host([disabled]) .draggable-data-item-level{background-color:var(--luzmo-draggable-data-item-level-background-color-disabled, var(--draggable-data-item-level-background-color-disabled));color:var(--luzmo-draggable-data-item-level-color-disabled, var(--draggable-data-item-level-color-disabled));cursor:not-allowed}:host([disabled]) .drag-handle-icon{opacity:.25}:host([sublevel][disabled]) .draggable-data-item-level{background-color:var(--luzmo-draggable-data-item-level-sublevel-background-color-disabled, var(--draggable-data-item-level-sublevel-background-color-disabled))}.drag-handle-icon{opacity:.6;font-size:var(--luzmo-draggable-data-item-level-drag-handle-size, var(--luzmo-draggable-data-item-level-drag-handle-size));width:var(--luzmo-draggable-data-item-level-drag-handle-width, var(--luzmo-draggable-data-item-level-drag-handle-width));text-align:center}.data-icon-type{width:var(--luzmo-draggable-data-item-level-data-icon-width, var(--luzmo-draggable-data-item-level-data-icon-width));text-align:center;position:relative}.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:70%;width:auto;font-size:.75em;line-height:1}.data-label{flex-grow:1}.data-description{height:100%;display:flex;align-items:center;background-color:transparent;outline:none;border:none;color:var(--luzmo-draggable-data-item-level-font-color, var(--draggable-data-item-level-font-color));font-size:var(--luzmo-draggable-data-item-level-label-font-size, var(--draggable-data-item-level-label-font-size))}:host([variant=highlight]){--draggable-data-item-level-background-color: var( --luzmo-background-color-highlight );--draggable-data-item-level-border-color: var( --luzmo-background-color-highlight );--draggable-data-item-level-background-color-hover: var( --luzmo-background-color-highlight-hover );--draggable-data-item-level-font-color-hover: var(--luzmo-font-color-hover);--draggable-data-item-level-border-color-hover: var( --luzmo-background-color-highlight-hover )}:host{--draggable-data-item-level-height: var(--luzmo-component-height);--draggable-data-item-level-label-font-size: var(--luzmo-font-size);--draggable-data-item-level-icon-type-size: var(--luzmo-font-size);--draggable-data-item-level-horizontal-padding: var(--luzmo-spacing-5);--draggable-data-item-level-border-width: var(--luzmo-border-width);--draggable-data-item-level-border-style: solid;--draggable-data-item-level-border-color: var(--luzmo-border-color-hover);--draggable-data-item-level-border-radius: var(--luzmo-border-radius);--draggable-data-item-level-gap: var(--luzmo-spacing-4);--draggable-data-item-level-font-color: var(--luzmo-font-color);--draggable-data-item-level-color-disabled: var(--luzmo-color-disabled);--draggable-data-item-level-background-color-disabled: var( --luzmo-background-color-disabled );--luzmo-draggable-data-item-level-drag-handle-size: var(--luzmo-font-size-s);--luzmo-draggable-data-item-level-drag-handle-width: var( --draggable-data-item-level-icon-type-size );--luzmo-draggable-data-item-level-data-icon-width: calc( var(--draggable-data-item-level-icon-type-size) + var(--luzmo-spacing-3) );--draggable-data-item-level-sublevel-height: var(--luzmo-component-height-s);--draggable-data-item-level-sublevel-border-color: transparent;--draggable-data-item-level-sublevel-background-color: transparent;--draggable-data-item-level-sublevel-background-color-disabled: transparent;--draggable-data-item-level-sublevel-margin-inline-start: calc( var(--draggable-data-item-level-gap) + var(--luzmo-draggable-data-item-level-drag-handle-width) );--luzmo-draggable-data-item-level-sublevel-drag-handle-width: var( --luzmo-draggable-data-item-level-data-icon-width );--draggable-data-item-level-sublevel-background-color-hover: rgba( var(--luzmo-border-color-rgb), .05 )}:host([hide-type-icon]){--draggable-data-item-level-sublevel-margin-inline-start: var( --draggable-data-item-level-gap )}:host(.highlighted) .draggable-data-item-level{background-color:var(--luzmo-primary);color:var(--luzmo-primary-inverse-color);border-color:var(--luzmo-primary)}:host([size=s]){--draggable-data-item-level-height: var(--luzmo-component-height-s);--draggable-data-item-level-label-font-size: var(--luzmo-font-size-s);--draggable-data-item-level-icon-type-size: var(--luzmo-font-size-s);--draggable-data-item-level-horizontal-padding: var(--luzmo-spacing-4);--draggable-data-item-level-border-radius: var(--luzmo-border-radius);--draggable-data-item-level-gap: var(--luzmo-spacing-3);--draggable-data-item-level-sublevel-height: var(--luzmo-component-height-xs);--luzmo-draggable-data-item-level-drag-handle-size: var(--luzmo-font-size-xs)}:host([size=l]){--draggable-data-item-level-height: var(--luzmo-component-height-l);--draggable-data-item-level-label-font-size: var(--luzmo-font-size-l);--draggable-data-item-level-icon-type-size: var(--luzmo-font-size-l);--draggable-data-item-level-horizontal-padding: var(--luzmo-spacing-5);--draggable-data-item-level-border-radius: var(--luzmo-border-radius-l);--draggable-data-item-level-gap: var(--luzmo-spacing-5);--draggable-data-item-level-sublevel-height: var(--luzmo-component-height);--luzmo-draggable-data-item-level-drag-handle-size: var(--luzmo-font-size)}:host([size=xl]){--draggable-data-item-level-height: var(--luzmo-component-height-xl);--draggable-data-item-level-label-font-size: var(--luzmo-font-size-xl);--draggable-data-item-level-icon-type-size: var(--luzmo-font-size-xl);--draggable-data-item-level-horizontal-padding: var(--luzmo-spacing-5);--draggable-data-item-level-border-radius: var(--luzmo-border-radius-xl);--draggable-data-item-level-gap: var(--luzmo-spacing-5);--draggable-data-item-level-sublevel-height: var(--luzmo-component-height-l);--luzmo-draggable-data-item-level-drag-handle-size: var(--luzmo-font-size-l)}:host{box-sizing:border-box}", Q = (e) => {
36
+ const K = ":host{font-family:var(--luzmo-draggable-data-item-level-font-family, var(--luzmo-font-family));color:var(--luzmo-draggable-data-item-level-font-color, var(--draggable-data-item-level-font-color))}.draggable-data-item-level{transition:background-color var(--luzmo-animation-duration);background-color:var(--luzmo-draggable-data-item-level-background-color, var(--draggable-data-item-level-background-color));display:flex;justify-content:space-between;align-items:center;padding:0 var(--luzmo-draggable-data-item-level-horizontal-padding, var(--draggable-data-item-level-horizontal-padding));gap:var(--luzmo-draggable-data-item-level-gap, var(--draggable-data-item-level-gap));border-radius:var(--luzmo-draggable-data-item-level-border-radius, var(--draggable-data-item-level-border-radius));border-width:var(--luzmo-draggable-data-item-level-border-width, var(--draggable-data-item-level-border-width));border-style:var(--luzmo-draggable-data-item-level-border-style, var(--draggable-data-item-level-border-style));border-color:var(--luzmo-draggable-data-item-level-border-color, var(--draggable-data-item-level-border-color));height:var(--luzmo-draggable-data-item-level-height, var(--draggable-data-item-level-height));cursor:move}.draggable-data-item-level:hover{background-color:var(--luzmo-draggable-data-item-level-background-color-hover, var(--draggable-data-item-level-background-color-hover));color:var(--luzmo-draggable-data-item-level-font-color-hover, var(--draggable-data-item-level-font-color-hover));border-color:var(--luzmo-draggable-data-item-level-border-color-hover, var(--draggable-data-item-level-border-color-hover))}.draggable-data-item-level .data-label{font-size:var(--luzmo-draggable-data-item-level-label-font-size, var(--draggable-data-item-level-label-font-size));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host([sublevel]) .draggable-data-item-level{height:var(--luzmo-draggable-data-item-level-sublevel-height, var(--draggable-data-item-level-sublevel-height));background-color:var(--luzmo-draggable-data-item-level-sublevel-background-color, var(--draggable-data-item-level-sublevel-background-color));border-color:var(--luzmo-draggable-data-item-level-sublevel-border-color, var(--draggable-data-item-level-sublevel-border-color));margin-inline-start:var(--luzmo-draggable-data-item-level-sublevel-margin-inline-start, var(--draggable-data-item-level-sublevel-margin-inline-start))}:host([sublevel]) .draggable-data-item-level:hover{background-color:var(--luzmo-draggable-data-item-level-sublevel-background-color-hover, var(--draggable-data-item-level-sublevel-background-color-hover))}:host([sublevel]) .draggable-data-item-level .drag-handle-icon{width:var(--luzmo-draggable-data-item-level-sublevel-drag-handle-width, var(--draggable-data-item-level-sublevel-drag-handle-width));text-align:center}:host([disabled]) .draggable-data-item-level{background-color:var(--luzmo-draggable-data-item-level-background-color-disabled, var(--draggable-data-item-level-background-color-disabled));color:var(--luzmo-draggable-data-item-level-color-disabled, var(--draggable-data-item-level-color-disabled));cursor:not-allowed}:host([disabled]) .drag-handle-icon{opacity:.25}:host([sublevel][disabled]) .draggable-data-item-level{background-color:var(--luzmo-draggable-data-item-level-sublevel-background-color-disabled, var(--draggable-data-item-level-sublevel-background-color-disabled))}.drag-handle-icon{opacity:.6;font-size:var(--luzmo-draggable-data-item-level-drag-handle-size, var(--luzmo-draggable-data-item-level-drag-handle-size));width:var(--luzmo-draggable-data-item-level-drag-handle-width, var(--luzmo-draggable-data-item-level-drag-handle-width));text-align:center}.data-icon-type{width:var(--luzmo-draggable-data-item-level-data-icon-width, var(--luzmo-draggable-data-item-level-data-icon-width));text-align:center;position:relative}.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:70%;width:auto;font-size:.75em;line-height:1}.data-label{flex-grow:1}.data-description{height:100%;display:flex;align-items:center;background-color:transparent;outline:none;border:none;color:var(--luzmo-draggable-data-item-level-font-color, var(--draggable-data-item-level-font-color));font-size:var(--luzmo-draggable-data-item-level-label-font-size, var(--draggable-data-item-level-label-font-size))}:host([variant=highlight]){--draggable-data-item-level-background-color: var( --luzmo-background-color-highlight );--draggable-data-item-level-border-color: var( --luzmo-background-color-highlight );--draggable-data-item-level-background-color-hover: var( --luzmo-background-color-highlight-hover );--draggable-data-item-level-font-color-hover: var(--luzmo-font-color-hover);--draggable-data-item-level-border-color-hover: var( --luzmo-background-color-highlight-hover )}:host{--draggable-data-item-level-height: var(--luzmo-component-height);--draggable-data-item-level-label-font-size: var(--luzmo-font-size);--draggable-data-item-level-icon-type-size: var(--luzmo-font-size);--draggable-data-item-level-horizontal-padding: var(--luzmo-spacing-5);--draggable-data-item-level-border-width: var(--luzmo-border-width);--draggable-data-item-level-border-style: solid;--draggable-data-item-level-border-color: var(--luzmo-border-color-hover);--draggable-data-item-level-border-radius: var(--luzmo-border-radius);--draggable-data-item-level-gap: var(--luzmo-spacing-4);--draggable-data-item-level-font-color: var(--luzmo-font-color);--draggable-data-item-level-color-disabled: var(--luzmo-color-disabled);--draggable-data-item-level-background-color-disabled: var( --luzmo-background-color-disabled );--luzmo-draggable-data-item-level-drag-handle-size: var(--luzmo-font-size-s);--luzmo-draggable-data-item-level-drag-handle-width: var( --draggable-data-item-level-icon-type-size );--luzmo-draggable-data-item-level-data-icon-width: calc( var(--draggable-data-item-level-icon-type-size) + var(--luzmo-spacing-3) );--draggable-data-item-level-sublevel-height: var(--luzmo-component-height-s);--draggable-data-item-level-sublevel-border-color: transparent;--draggable-data-item-level-sublevel-background-color: transparent;--draggable-data-item-level-sublevel-background-color-disabled: transparent;--draggable-data-item-level-sublevel-margin-inline-start: calc( var(--draggable-data-item-level-gap) + var(--luzmo-draggable-data-item-level-drag-handle-width) );--luzmo-draggable-data-item-level-sublevel-drag-handle-width: var( --luzmo-draggable-data-item-level-data-icon-width );--draggable-data-item-level-sublevel-background-color-hover: rgba( var(--luzmo-border-color-rgb), .05 )}:host([hide-type-icon]){--draggable-data-item-level-sublevel-margin-inline-start: var( --draggable-data-item-level-gap )}:host(.highlighted) .draggable-data-item-level,:host(.highlighted) .data-description{background-color:var(--luzmo-primary);color:var(--luzmo-primary-inverse-color);border-color:var(--luzmo-primary)}:host([size=s]){--draggable-data-item-level-height: var(--luzmo-component-height-s);--draggable-data-item-level-label-font-size: var(--luzmo-font-size-s);--draggable-data-item-level-icon-type-size: var(--luzmo-font-size-s);--draggable-data-item-level-horizontal-padding: var(--luzmo-spacing-4);--draggable-data-item-level-border-radius: var(--luzmo-border-radius);--draggable-data-item-level-gap: var(--luzmo-spacing-3);--draggable-data-item-level-sublevel-height: var(--luzmo-component-height-xs);--luzmo-draggable-data-item-level-drag-handle-size: var(--luzmo-font-size-xs)}:host([size=l]){--draggable-data-item-level-height: var(--luzmo-component-height-l);--draggable-data-item-level-label-font-size: var(--luzmo-font-size-l);--draggable-data-item-level-icon-type-size: var(--luzmo-font-size-l);--draggable-data-item-level-horizontal-padding: var(--luzmo-spacing-5);--draggable-data-item-level-border-radius: var(--luzmo-border-radius-l);--draggable-data-item-level-gap: var(--luzmo-spacing-5);--draggable-data-item-level-sublevel-height: var(--luzmo-component-height);--luzmo-draggable-data-item-level-drag-handle-size: var(--luzmo-font-size)}:host([size=xl]){--draggable-data-item-level-height: var(--luzmo-component-height-xl);--draggable-data-item-level-label-font-size: var(--luzmo-font-size-xl);--draggable-data-item-level-icon-type-size: var(--luzmo-font-size-xl);--draggable-data-item-level-horizontal-padding: var(--luzmo-spacing-5);--draggable-data-item-level-border-radius: var(--luzmo-border-radius-xl);--draggable-data-item-level-gap: var(--luzmo-spacing-5);--draggable-data-item-level-sublevel-height: var(--luzmo-component-height-l);--luzmo-draggable-data-item-level-drag-handle-size: var(--luzmo-font-size-l)}:host{box-sizing:border-box}", Q = (e) => {
37
37
  var c, u, b, v, h, z, f, w, C, S, I, _, D, E, H, $, L;
38
38
  const t = e.source.element;
39
39
  let l = "";