@luzmo/analytics-components-kit 1.0.1-alpha.36 → 1.0.1-alpha.38

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 (83) hide show
  1. package/components/{calculate-data-item-icon-DauSiV8c.js → calculate-data-item-icon-BPZYysi7.js} +23 -23
  2. package/components/{calculate-data-item-icon-BtUWtDx3.cjs → calculate-data-item-icon-BpMATs29.cjs} +1 -1
  3. package/components/display-settings/index.cjs +3 -3
  4. package/components/display-settings/index.js +4 -4
  5. package/components/display-settings-binning/index.cjs +2 -2
  6. package/components/display-settings-binning/index.js +12 -12
  7. package/components/display-settings-datetime/index.cjs +4 -4
  8. package/components/display-settings-datetime/index.js +10 -10
  9. package/components/display-settings-grand-totals/index.cjs +2 -2
  10. package/components/display-settings-grand-totals/index.js +6 -6
  11. package/components/display-settings-numeric/index.cjs +2 -2
  12. package/components/display-settings-numeric/index.js +5 -5
  13. package/components/display-settings-period-over-period/index.cjs +1 -1
  14. package/components/display-settings-period-over-period/index.js +4 -4
  15. package/components/draggable-data-item-level/index.cjs +4 -4
  16. package/components/draggable-data-item-level/index.js +5 -5
  17. package/components/droppable-slot/index.cjs +3 -3
  18. package/components/droppable-slot/index.js +2 -2
  19. package/components/edit-item/index.cjs +5 -5
  20. package/components/edit-item/index.js +1 -1
  21. package/components/edit-option-action-button-group/index.cjs +1 -1
  22. package/components/edit-option-action-button-group/index.js +21 -21
  23. package/components/edit-option-color-picker/index.cjs +30 -30
  24. package/components/edit-option-color-picker/index.js +3 -3
  25. package/components/edit-option-multi-language-field/index.cjs +1 -1
  26. package/components/edit-option-multi-language-field/index.js +1 -1
  27. package/components/edit-option-number-field/index.cjs +1 -1
  28. package/components/edit-option-number-field/index.js +1 -1
  29. package/components/edit-option-picker/index.cjs +1 -1
  30. package/components/edit-option-picker/index.js +2 -2
  31. package/components/edit-option-position-picker/index.cjs +1 -1
  32. package/components/edit-option-position-picker/index.js +1 -1
  33. package/components/edit-option-positions-number-field/index.cjs +2 -2
  34. package/components/edit-option-positions-number-field/index.js +6 -6
  35. package/components/edit-option-radio-button-group/index.cjs +1 -1
  36. package/components/edit-option-radio-button-group/index.js +1 -1
  37. package/components/edit-option-text-field/index.cjs +1 -1
  38. package/components/edit-option-text-field/index.js +1 -1
  39. package/components/filter-data-item-picker/index.cjs +1 -1
  40. package/components/filter-data-item-picker/index.js +4 -4
  41. package/components/filter-expression-picker/index.cjs +1 -1
  42. package/components/filter-expression-picker/index.js +1 -1
  43. package/components/filter-item/index.cjs +1 -1
  44. package/components/filter-item/index.js +1 -1
  45. package/components/filter-value-picker/index.cjs +1 -1
  46. package/components/filter-value-picker/index.js +1 -1
  47. package/components/filter-value-picker-datetime/index.cjs +2 -2
  48. package/components/filter-value-picker-datetime/index.js +7 -7
  49. package/components/filter-value-picker-hierarchy/index.cjs +1 -1
  50. package/components/filter-value-picker-hierarchy/index.js +2 -2
  51. package/components/filter-value-picker-numeric/index.cjs +1 -1
  52. package/components/filter-value-picker-numeric/index.js +2 -2
  53. package/components/{index-DfTZDl-O.js → index-0AQhhYNR.js} +1 -1
  54. package/components/{index-CoZF4QUN.js → index-5UNCjfdE.js} +2 -2
  55. package/components/{index-Tx5oQjbt.cjs → index-B0rH2mr9.cjs} +1 -1
  56. package/components/{index-BC1LV3vH.js → index-BNBJLKST.js} +1 -1
  57. package/components/{index-Y9hjNorm.js → index-BlLF9xYw.js} +2 -2
  58. package/components/{index-D07V2c7z.cjs → index-C0mIH6sE.cjs} +1 -1
  59. package/components/{index-cHKqEi5-.cjs → index-C7pagyza.cjs} +3 -3
  60. package/components/{index-DSQyBS9Z.cjs → index-CKenYdIM.cjs} +1 -1
  61. package/components/{index-CTaPKPdt.cjs → index-COiTyPcJ.cjs} +1 -1
  62. package/components/{index-DE3d0E0P.js → index-CyAospmR.js} +2 -2
  63. package/components/{index-CpQnVCVV.js → index-D5asknFy.js} +2 -2
  64. package/components/{index-rQxtPaJl.js → index-DDR_JmOh.js} +1 -1
  65. package/components/{index-CbuHBIDB.js → index-DFe4VuxB.js} +2 -2
  66. package/components/{index-CRYEL3MP.cjs → index-DJKhZGty.cjs} +14 -14
  67. package/components/{index-CBOAQ3-E.cjs → index-ROT368zu.cjs} +5 -5
  68. package/components/{index-Cltytvm7.cjs → index-eHmbYtYG.cjs} +1 -1
  69. package/components/{index-Desl7GJ0.js → index-jlphu2Tm.js} +2 -2
  70. package/components/{index-C2PPSv8E.cjs → index-uoJRMChX.cjs} +2 -2
  71. package/components/index.cjs +1 -1
  72. package/components/index.js +1 -1
  73. package/components/{luzmo-icons-CPucBq6e.js → luzmo-icons-BZPchcMw.js} +61 -61
  74. package/components/{luzmo-icons-Nyf1P71v.cjs → luzmo-icons-BpFUFRQm.cjs} +2 -2
  75. package/components/{luzmo-icons-DbwDQtuO-DSQ-uVxy.cjs → luzmo-icons-NEyaMpEM-1fxXxs3F.cjs} +2 -2
  76. package/components/{luzmo-icons-DbwDQtuO-QG0fLECn.js → luzmo-icons-NEyaMpEM-DbyDs_5B.js} +9 -9
  77. package/components/slot-menu/index.cjs +4 -4
  78. package/components/slot-menu/index.js +1 -1
  79. package/components/slot-menu-list/index.cjs +3 -3
  80. package/components/slot-menu-list/index.js +6 -6
  81. package/components/{text-field-BIADXoLC-B8w9TVmS.cjs → text-field-B9IkRRxO-CRU1UGaM.cjs} +1 -1
  82. package/components/{text-field-BIADXoLC-B9oE05VF.js → text-field-B9IkRRxO-CWWQN_rn.js} +1 -1
  83. package/package.json +1 -1
@@ -17,31 +17,31 @@
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 { x as u, w as b, D as g, N as n, Q as D, O as k, W as l, u as m, Z as w, A, p as i, H as B, V as E, f as p, S as F, k as H, _ as y, Y as I, X as L, r as o, L as M, M as N, t as c, o as O, a as P, l as x, z as Q, n as S, F as f, B as U, b as V, U as h, P as W, E as X } from "./luzmo-icons-CPucBq6e.js";
21
- const s = {
20
+ import { x as m, w as b, f as g, Q as u, O as D, q as k, W as l, L as n, u as q, A as w, p as i, H as A, Z as B, D as p, k as E, S as F, _ as y, Y as H, X as I, V as c, s as L, M, t as o, m as O, a as P, l as x, h as Q, n as S, F as f, B as U, b as V, U as h, E as W, P as X } from "./luzmo-icons-BZPchcMw.js";
21
+ const r = {
22
22
  array: {
23
23
  s: g,
24
24
  m: b,
25
- l: u,
26
- xl: u
27
- },
28
- coordinates: {
29
- s: A,
30
- m: w,
31
25
  l: m,
32
26
  xl: m
33
27
  },
28
+ coordinates: {
29
+ s: w,
30
+ m: q,
31
+ l: n,
32
+ xl: n
33
+ },
34
34
  currency: {
35
- s: E,
36
- m: B,
35
+ s: B,
36
+ m: A,
37
37
  l: i,
38
38
  xl: i
39
39
  },
40
40
  date: {
41
41
  s: P,
42
42
  m: O,
43
- l: c,
44
- xl: c
43
+ l: o,
44
+ xl: o
45
45
  },
46
46
  datetime: {
47
47
  s: S,
@@ -50,8 +50,8 @@ const s = {
50
50
  xl: x
51
51
  },
52
52
  duration: {
53
- s: H,
54
- m: F,
53
+ s: F,
54
+ m: E,
55
55
  l: p,
56
56
  xl: p
57
57
  },
@@ -64,20 +64,20 @@ const s = {
64
64
  image: {
65
65
  s: k,
66
66
  m: D,
67
- l: n,
68
- xl: n
67
+ l: u,
68
+ xl: u
69
69
  },
70
70
  numeric: {
71
- s: L,
72
- m: I,
71
+ s: I,
72
+ m: H,
73
73
  l: y,
74
74
  xl: y
75
75
  },
76
76
  time: {
77
- s: N,
78
- m: M,
79
- l: o,
80
- xl: o
77
+ s: M,
78
+ m: L,
79
+ l: c,
80
+ xl: c
81
81
  },
82
82
  topography: {
83
83
  s: l,
@@ -91,7 +91,7 @@ const s = {
91
91
  l: f,
92
92
  xl: f
93
93
  }
94
- }, Z = (r, e = "m") => (r == null ? void 0 : r.type) === "array" ? s.array[e] : (r == null ? void 0 : r.type) === "image" ? s.image[e] : (r == null ? void 0 : r.type) === "spatial" ? (r == null ? void 0 : r.subtype) === "topography" ? s.topography[e] : s.coordinates[e] : (r == null ? void 0 : r.type) === "numeric" ? (r == null ? void 0 : r.subtype) === "currency" ? s.currency[e] : (r == null ? void 0 : r.subtype) === "duration" ? s.duration[e] : s.numeric[e] : (r == null ? void 0 : r.type) === "datetime" ? (r == null ? void 0 : r.subtype) === "time" ? s.time[e] : (r == null ? void 0 : r.subtype) === "date" ? s.date[e] : s.datetime[e] : (r == null ? void 0 : r.type) === "hierarchy" && (r == null ? void 0 : r.subtype) === "ipaddress" ? s.ipaddress[e] : s.hierarchy[e];
94
+ }, Z = (e, s = "m") => (e == null ? void 0 : e.type) === "array" ? r.array[s] : (e == null ? void 0 : e.type) === "image" ? r.image[s] : (e == null ? void 0 : e.type) === "spatial" ? (e == null ? void 0 : e.subtype) === "topography" ? r.topography[s] : r.coordinates[s] : (e == null ? void 0 : e.type) === "numeric" ? (e == null ? void 0 : e.subtype) === "currency" ? r.currency[s] : (e == null ? void 0 : e.subtype) === "duration" ? r.duration[s] : r.numeric[s] : (e == null ? void 0 : e.type) === "datetime" ? (e == null ? void 0 : e.subtype) === "time" ? r.time[s] : (e == null ? void 0 : e.subtype) === "date" ? r.date[s] : r.datetime[s] : (e == null ? void 0 : e.type) === "hierarchy" && (e == null ? void 0 : e.subtype) === "ipaddress" ? r.ipaddress[s] : r.hierarchy[s];
95
95
  export {
96
96
  Z as c
97
97
  };
@@ -17,4 +17,4 @@
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";const e=require("./luzmo-icons-Nyf1P71v.cjs"),u={array:{s:e.D0,m:e.w0,l:e.x0,xl:e.x0},coordinates:{s:e.A0,m:e.Z0,l:e.u0,xl:e.u0},currency:{s:e.V0,m:e.H0,l:e.p0,xl:e.p0},date:{s:e.a0,m:e.o0,l:e.t,xl:e.t},datetime:{s:e.n0,m:e.z0,l:e.l0,xl:e.l0},duration:{s:e.k0,m:e.S0,l:e.f0,xl:e.f0},hierarchy:{s:e.E0,m:e.P0,l:e.U0,xl:e.U0},image:{s:e.O0,m:e.Q0,l:e.N0,xl:e.N0},numeric:{s:e.X0,m:e.Y0,l:e._0,xl:e._0},time:{s:e.M2,m:e.L2,l:e.r2,xl:e.r2},topography:{s:e.W1,m:e.W1,l:e.W1,xl:e.W1},ipaddress:{s:e.x2,m:e.B2,l:e.F2,xl:e.F2}},n=(r,l="m")=>(r==null?void 0:r.type)==="array"?u.array[l]:(r==null?void 0:r.type)==="image"?u.image[l]:(r==null?void 0:r.type)==="spatial"?(r==null?void 0:r.subtype)==="topography"?u.topography[l]:u.coordinates[l]:(r==null?void 0:r.type)==="numeric"?(r==null?void 0:r.subtype)==="currency"?u.currency[l]:(r==null?void 0:r.subtype)==="duration"?u.duration[l]:u.numeric[l]:(r==null?void 0:r.type)==="datetime"?(r==null?void 0:r.subtype)==="time"?u.time[l]:(r==null?void 0:r.subtype)==="date"?u.date[l]:u.datetime[l]:(r==null?void 0:r.type)==="hierarchy"&&(r==null?void 0:r.subtype)==="ipaddress"?u.ipaddress[l]:u.hierarchy[l];exports.calculateDataItemIcon=n;
20
+ "use strict";const e=require("./luzmo-icons-BpFUFRQm.cjs"),u={array:{s:e.f0,m:e.w0,l:e.x0,xl:e.x0},coordinates:{s:e.A0,m:e.u0,l:e.L0,xl:e.L0},currency:{s:e.Z0,m:e.H0,l:e.p0,xl:e.p0},date:{s:e.a0,m:e.m0,l:e.t,xl:e.t},datetime:{s:e.n0,m:e.h0,l:e.l0,xl:e.l0},duration:{s:e.S0,m:e.k0,l:e.D0,xl:e.D0},hierarchy:{s:e.P0,m:e.E0,l:e.U0,xl:e.U0},image:{s:e.q0,m:e.O0,l:e.Q0,xl:e.Q0},numeric:{s:e.X0,m:e.Y0,l:e._0,xl:e._0},time:{s:e.M2,m:e.s2,l:e.V2,xl:e.V2},topography:{s:e.W1,m:e.W1,l:e.W1,xl:e.W1},ipaddress:{s:e.x2,m:e.B2,l:e.F2,xl:e.F2}},n=(r,l="m")=>(r==null?void 0:r.type)==="array"?u.array[l]:(r==null?void 0:r.type)==="image"?u.image[l]:(r==null?void 0:r.type)==="spatial"?(r==null?void 0:r.subtype)==="topography"?u.topography[l]:u.coordinates[l]:(r==null?void 0:r.type)==="numeric"?(r==null?void 0:r.subtype)==="currency"?u.currency[l]:(r==null?void 0:r.subtype)==="duration"?u.duration[l]:u.numeric[l]:(r==null?void 0:r.type)==="datetime"?(r==null?void 0:r.subtype)==="time"?u.time[l]:(r==null?void 0:r.subtype)==="date"?u.date[l]:u.datetime[l]:(r==null?void 0:r.type)==="hierarchy"&&(r==null?void 0:r.subtype)==="ipaddress"?u.ipaddress[l]:u.hierarchy[l];exports.calculateDataItemIcon=n;
@@ -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 p=require("../task-CdvrMX8r.cjs");require("../index-DtohCwyO.cjs");require("../index-j8UKjHqY.cjs");require("../index-DSQyBS9Z.cjs");require("../index-Tx5oQjbt.cjs");require("../index-BKwbYw6x.cjs");require("../index-cHKqEi5-.cjs");const t=require("../property-Dlf9S6Jz.cjs"),c=require("../state-CrfOw8Zp.cjs"),m=require("../query-D5qWDopr.cjs"),a=require("../luzmo-icons-Nyf1P71v.cjs"),v=require("../focusable-_wp5pWO-.cjs"),g=require("../sized-mixin-ZTphZKLm.cjs"),h=":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)}";var y=Object.defineProperty,n=(l,e,o,d)=>{for(var i=void 0,r=l.length-1,u;r>=0;r--)(u=l[r])&&(i=u(e,o,i)||i);return i&&y(e,o,i),i};class s extends g.SizedMixin(v.LuzmoElement,{validSizes:Object.values(g.ElementSizes)}){constructor(){super(...arguments),this._loadDisplaySettings=new p.h(this,{task:async([e,o,d])=>{const i=[];this.grandTotals&&i.push("grandTotals"),this.periodOverPeriod&&i.push("periodOverPeriod"),(o==="numeric"||o==="mixed"&&(e==null?void 0:e.type)==="numeric")&&i.push("numeric"),o!=="numeric"&&(e==null?void 0:e.type)==="datetime"&&i.push("datetime"),!["numeric","mixed"].includes(o??"")&&(e==null?void 0:e.type)==="numeric"&&!this.binningDisabled&&i.push("binning"),i.length>0&&!d&&(i.includes("numeric")&&!this._settingsTypeLoaded.numeric?(await Promise.resolve().then(()=>require("../display-settings-numeric/index.cjs")),this._settingsTypeLoaded.numeric=!0):i.includes("datetime")&&!this._settingsTypeLoaded.datetime?(await Promise.resolve().then(()=>require("../display-settings-datetime/index.cjs")),this._settingsTypeLoaded.periodOverPeriod=!0):i.includes("binning")&&!this._settingsTypeLoaded.binning?(await Promise.resolve().then(()=>require("../display-settings-binning/index.cjs")),this._settingsTypeLoaded.binning=!0):i.includes("grandTotals")&&!this._settingsTypeLoaded.grandTotals?(await Promise.resolve().then(()=>require("../display-settings-grand-totals/index.cjs")),this._settingsTypeLoaded.grandTotals=!0):i.includes("periodOverPeriod")&&!this._settingsTypeLoaded.periodOverPeriod&&(await Promise.resolve().then(()=>require("../display-settings-period-over-period/index.cjs")),this._settingsTypeLoaded.periodOverPeriod=!0))},args:()=>[this.slotContent,this.slotType,this.hideDisplaySettings]}),this.language="en",this.contentLanguage="en",this.slotType="numeric",this.slotContent={},this._showIds=!1,this.measureColumns=[],this._settingsTypeLoaded={binning:!1,datetime:!1,numeric:!1,grandTotals:!1,periodOverPeriod:!1,hierarchy:!0},this._currentSlotContent={}}static get styles(){return[t.r(h)]}willUpdate(e){e.has("slotContent")&&(this._currentSlotContent=structuredClone(this.slotContent))}_onSlotContentChange(e){e.stopPropagation(),e.preventDefault(),this._currentSlotContent=structuredClone(e.detail.slotContent),this._sendEvent()}_onLabelChange(){this._currentSlotContent=structuredClone(this._currentSlotContent),this._currentSlotContent.label=this._multiLanguageFieldElement.value||{},this._sendEvent()}_sendEvent(){this.dispatchEvent(new CustomEvent("slot-content-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:{...this._currentSlotContent}}}))}_removeEvent(){this.dispatchEvent(new CustomEvent("remove-slot-content",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:this._currentSlotContent}}))}_toggleIds(){this._showIds=!this._showIds}_renderDisplaySettings(){return t.x`<div class="settings-container">
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../task-CdvrMX8r.cjs");require("../index-DtohCwyO.cjs");require("../index-j8UKjHqY.cjs");require("../index-CKenYdIM.cjs");require("../index-B0rH2mr9.cjs");require("../index-BKwbYw6x.cjs");require("../index-C7pagyza.cjs");const t=require("../property-Dlf9S6Jz.cjs"),c=require("../state-CrfOw8Zp.cjs"),m=require("../query-D5qWDopr.cjs"),a=require("../luzmo-icons-BpFUFRQm.cjs"),v=require("../focusable-_wp5pWO-.cjs"),g=require("../sized-mixin-ZTphZKLm.cjs"),h=":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)}";var y=Object.defineProperty,n=(l,e,o,d)=>{for(var i=void 0,r=l.length-1,u;r>=0;r--)(u=l[r])&&(i=u(e,o,i)||i);return i&&y(e,o,i),i};class s extends g.SizedMixin(v.LuzmoElement,{validSizes:Object.values(g.ElementSizes)}){constructor(){super(...arguments),this._loadDisplaySettings=new p.h(this,{task:async([e,o,d])=>{const i=[];this.grandTotals&&i.push("grandTotals"),this.periodOverPeriod&&i.push("periodOverPeriod"),(o==="numeric"||o==="mixed"&&(e==null?void 0:e.type)==="numeric")&&i.push("numeric"),o!=="numeric"&&(e==null?void 0:e.type)==="datetime"&&i.push("datetime"),!["numeric","mixed"].includes(o??"")&&(e==null?void 0:e.type)==="numeric"&&!this.binningDisabled&&i.push("binning"),i.length>0&&!d&&(i.includes("numeric")&&!this._settingsTypeLoaded.numeric?(await Promise.resolve().then(()=>require("../display-settings-numeric/index.cjs")),this._settingsTypeLoaded.numeric=!0):i.includes("datetime")&&!this._settingsTypeLoaded.datetime?(await Promise.resolve().then(()=>require("../display-settings-datetime/index.cjs")),this._settingsTypeLoaded.periodOverPeriod=!0):i.includes("binning")&&!this._settingsTypeLoaded.binning?(await Promise.resolve().then(()=>require("../display-settings-binning/index.cjs")),this._settingsTypeLoaded.binning=!0):i.includes("grandTotals")&&!this._settingsTypeLoaded.grandTotals?(await Promise.resolve().then(()=>require("../display-settings-grand-totals/index.cjs")),this._settingsTypeLoaded.grandTotals=!0):i.includes("periodOverPeriod")&&!this._settingsTypeLoaded.periodOverPeriod&&(await Promise.resolve().then(()=>require("../display-settings-period-over-period/index.cjs")),this._settingsTypeLoaded.periodOverPeriod=!0))},args:()=>[this.slotContent,this.slotType,this.hideDisplaySettings]}),this.language="en",this.contentLanguage="en",this.slotType="numeric",this.slotContent={},this._showIds=!1,this.measureColumns=[],this._settingsTypeLoaded={binning:!1,datetime:!1,numeric:!1,grandTotals:!1,periodOverPeriod:!1,hierarchy:!0},this._currentSlotContent={}}static get styles(){return[t.r(h)]}willUpdate(e){e.has("slotContent")&&(this._currentSlotContent=structuredClone(this.slotContent))}_onSlotContentChange(e){e.stopPropagation(),e.preventDefault(),this._currentSlotContent=structuredClone(e.detail.slotContent),this._sendEvent()}_onLabelChange(){this._currentSlotContent=structuredClone(this._currentSlotContent),this._currentSlotContent.label=this._multiLanguageFieldElement.value||{},this._sendEvent()}_sendEvent(){this.dispatchEvent(new CustomEvent("slot-content-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:{...this._currentSlotContent}}}))}_removeEvent(){this.dispatchEvent(new CustomEvent("remove-slot-content",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:this._currentSlotContent}}))}_toggleIds(){this._showIds=!this._showIds}_renderDisplaySettings(){return t.x`<div class="settings-container">
21
21
  <div class="settings-row">
22
22
  <div class="setting">
23
23
  <div class="label-container">
@@ -34,7 +34,7 @@
34
34
  </div>
35
35
  <div class="label-action-container">
36
36
  <button class="id-button" @click=${this._toggleIds}>
37
- ${a.O2(a.p1)}
37
+ ${a.p3(a.p1)}
38
38
  <luzmo-tooltip self-managed placement="top" size=${this.size}>
39
39
  Show dataset and column id's
40
40
  </luzmo-tooltip>
@@ -43,7 +43,7 @@
43
43
  class="remove-button"
44
44
  @click=${this._removeEvent}
45
45
  >
46
- ${a.O2(a.v1)}
46
+ ${a.p3(a.C1)}
47
47
  <luzmo-tooltip
48
48
  self-managed
49
49
  placement="top"
@@ -20,14 +20,14 @@
20
20
  import { h as g } from "../task-DH8UFyxP.js";
21
21
  import "../index-CskV_bXp.js";
22
22
  import "../index-CsDgk_sj.js";
23
- import "../index-BC1LV3vH.js";
24
- import "../index-CbuHBIDB.js";
23
+ import "../index-BNBJLKST.js";
24
+ import "../index-DFe4VuxB.js";
25
25
  import "../index-C3N6qTxJ.js";
26
- import "../index-DE3d0E0P.js";
26
+ import "../index-CyAospmR.js";
27
27
  import { r as p, x as n, n as s } from "../property-CxtZroGf.js";
28
28
  import { r as z } from "../state-BVYsk_HZ.js";
29
29
  import { e as h } from "../query-Ddbd72Um.js";
30
- import { a3 as m, a5 as v, a6 as b } from "../luzmo-icons-CPucBq6e.js";
30
+ import { a3 as m, a5 as v, a6 as b } from "../luzmo-icons-BZPchcMw.js";
31
31
  import { L as f } from "../focusable-DB6Uhr-C.js";
32
32
  import { S as y, E as x } from "../sized-mixin-C7R5uRbF.js";
33
33
  const c = () => {
@@ -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"});require("../index-C2PPSv8E.cjs");require("../index-j8UKjHqY.cjs");require("../index-DSQyBS9Z.cjs");require("../index-CBOAQ3-E.cjs");const a=require("../property-Dlf9S6Jz.cjs"),t=require("../set-locale-5FFfQpVQ.cjs"),c=require("../localized-decorator-ClAOFk8M.cjs"),d=require("../luzmo-icons-Nyf1P71v.cjs"),h=require("../state-CrfOw8Zp.cjs"),b=require("../query-D5qWDopr.cjs"),p=require("../focusable-_wp5pWO-.cjs"),u=require("../sized-mixin-ZTphZKLm.cjs"),m=":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-binning-gap, var(--display-settings-binning-gap))}:host{--display-settings-binning-gap: var(--luzmo-spacing-3)}:host([size=s]){--display-settings-binning-gap: var(--luzmo-spacing-3)}:host([size=l]){--display-settings-binning-gap: var(--luzmo-spacing-4)}:host([size=xl]){--display-settings-binning-gap: var(--luzmo-spacing-5)}";var z=Object.defineProperty,v=Object.getOwnPropertyDescriptor,o=(g,e,s,n)=>{for(var i=n>1?void 0:n?v(e,s):e,l=g.length-1,r;l>=0;l--)(r=g[l])&&(i=(n?r(e,s,i):r(i))||i);return n&&i&&z(e,s,i),i};exports.LuzmoDisplaySettingsBinning=class extends u.SizedMixin(p.LuzmoElement,{validSizes:Object.values(u.ElementSizes)}){constructor(){super(...arguments),this.language="en",this.slotContent={},this._enabled=!1,this._binWidth=10}static get styles(){return[a.r(m)]}willUpdate(e){var s,n,i,l;e.has("slotContent")&&(this._enabled=((n=(s=this.slotContent)==null?void 0:s.bins)==null?void 0:n.enabled)??!1,this._binWidth=((l=(i=this.slotContent)==null?void 0:i.bins)==null?void 0:l.number)??10),e.has("language")&&this.language!==t.getLocale()&&([...t.targetLocales].includes(this.language??"en")||this.language==="en")&&t.setLocale(this.language)}toggleBinning(){this._enabled=!this._enabled,this.sendEvent()}setBinning(){this._binWidth=this.binWidthElement.value,this.sendEvent()}sendEvent(){const e={enabled:!!this._enabled,number:this._binWidth??10};this.dispatchEvent(new CustomEvent("slot-content-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:{...this.slotContent,bins:e}}}))}renderBinWidth(){return a.x`<div class="setting">
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-uoJRMChX.cjs");require("../index-j8UKjHqY.cjs");require("../index-CKenYdIM.cjs");require("../index-ROT368zu.cjs");const a=require("../property-Dlf9S6Jz.cjs"),t=require("../set-locale-5FFfQpVQ.cjs"),c=require("../localized-decorator-ClAOFk8M.cjs"),d=require("../luzmo-icons-BpFUFRQm.cjs"),h=require("../state-CrfOw8Zp.cjs"),b=require("../query-D5qWDopr.cjs"),p=require("../focusable-_wp5pWO-.cjs"),u=require("../sized-mixin-ZTphZKLm.cjs"),m=":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-binning-gap, var(--display-settings-binning-gap))}:host{--display-settings-binning-gap: var(--luzmo-spacing-3)}:host([size=s]){--display-settings-binning-gap: var(--luzmo-spacing-3)}:host([size=l]){--display-settings-binning-gap: var(--luzmo-spacing-4)}:host([size=xl]){--display-settings-binning-gap: var(--luzmo-spacing-5)}";var z=Object.defineProperty,v=Object.getOwnPropertyDescriptor,o=(g,e,s,n)=>{for(var i=n>1?void 0:n?v(e,s):e,l=g.length-1,r;l>=0;l--)(r=g[l])&&(i=(n?r(e,s,i):r(i))||i);return n&&i&&z(e,s,i),i};exports.LuzmoDisplaySettingsBinning=class extends u.SizedMixin(p.LuzmoElement,{validSizes:Object.values(u.ElementSizes)}){constructor(){super(...arguments),this.language="en",this.slotContent={},this._enabled=!1,this._binWidth=10}static get styles(){return[a.r(m)]}willUpdate(e){var s,n,i,l;e.has("slotContent")&&(this._enabled=((n=(s=this.slotContent)==null?void 0:s.bins)==null?void 0:n.enabled)??!1,this._binWidth=((l=(i=this.slotContent)==null?void 0:i.bins)==null?void 0:l.number)??10),e.has("language")&&this.language!==t.getLocale()&&([...t.targetLocales].includes(this.language??"en")||this.language==="en")&&t.setLocale(this.language)}toggleBinning(){this._enabled=!this._enabled,this.sendEvent()}setBinning(){this._binWidth=this.binWidthElement.value,this.sendEvent()}sendEvent(){const e={enabled:!!this._enabled,number:this._binWidth??10};this.dispatchEvent(new CustomEvent("slot-content-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:{...this.slotContent,bins:e}}}))}renderBinWidth(){return a.x`<div class="setting">
21
21
  <luzmo-field-label for="bin-width"
22
22
  >${t.msg("Bin width",{desc:"The width of each bin in the histogram"})}</luzmo-field-label
23
23
  >
@@ -46,7 +46,7 @@
46
46
  <luzmo-icon
47
47
  slot="icon"
48
48
  .size=${this.size}
49
- .icon=${this._enabled?d.C0:d.h0}
49
+ .icon=${this._enabled?d.v0:d.z0}
50
50
  ></luzmo-icon>
51
51
  ${this._enabled?t.msg("Enabled",{desc:"Option set to enabled"}):t.msg("Disabled",{desc:"Option set to disabled"})}
52
52
  </luzmo-action-button>
@@ -17,18 +17,18 @@
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 "../index-rQxtPaJl.js";
20
+ import "../index-DDR_JmOh.js";
21
21
  import "../index-CsDgk_sj.js";
22
- import "../index-BC1LV3vH.js";
23
- import "../index-Desl7GJ0.js";
22
+ import "../index-BNBJLKST.js";
23
+ import "../index-jlphu2Tm.js";
24
24
  import { r as z, x as m, n as c } from "../property-CxtZroGf.js";
25
- import { g, t as b, s as h, m as s } from "../set-locale-DAGnJZD8.js";
26
- import { l as p } from "../localized-decorator-DGnMToFa.js";
27
- import { C as f, h as v } from "../luzmo-icons-CPucBq6e.js";
25
+ import { g, t as b, s as p, m as s } from "../set-locale-DAGnJZD8.js";
26
+ import { l as h } from "../localized-decorator-DGnMToFa.js";
27
+ import { v as f, z as v } from "../luzmo-icons-BZPchcMw.js";
28
28
  import { r as x } from "../state-BVYsk_HZ.js";
29
29
  import { e as y } from "../query-Ddbd72Um.js";
30
30
  import { L as w } from "../focusable-DB6Uhr-C.js";
31
- import { S as _, E as C } from "../sized-mixin-C7R5uRbF.js";
31
+ import { S as _, E } from "../sized-mixin-C7R5uRbF.js";
32
32
  const d = () => {
33
33
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
34
34
  const o = document.createElement("style");
@@ -36,24 +36,24 @@ const d = () => {
36
36
  }
37
37
  };
38
38
  d();
39
- const E = ":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-binning-gap, var(--display-settings-binning-gap))}:host{--display-settings-binning-gap: var(--luzmo-spacing-3)}:host([size=s]){--display-settings-binning-gap: var(--luzmo-spacing-3)}:host([size=l]){--display-settings-binning-gap: var(--luzmo-spacing-4)}:host([size=xl]){--display-settings-binning-gap: var(--luzmo-spacing-5)}";
39
+ const C = ":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-binning-gap, var(--display-settings-binning-gap))}:host{--display-settings-binning-gap: var(--luzmo-spacing-3)}:host([size=s]){--display-settings-binning-gap: var(--luzmo-spacing-3)}:host([size=l]){--display-settings-binning-gap: var(--luzmo-spacing-4)}:host([size=xl]){--display-settings-binning-gap: var(--luzmo-spacing-5)}";
40
40
  var $ = Object.defineProperty, S = Object.getOwnPropertyDescriptor, r = (o, l, n, i) => {
41
41
  for (var e = i > 1 ? void 0 : i ? S(l, n) : l, a = o.length - 1, u; a >= 0; a--)
42
42
  (u = o[a]) && (e = (i ? u(l, n, e) : u(e)) || e);
43
43
  return i && e && $(l, n, e), e;
44
44
  };
45
45
  let t = class extends _(w, {
46
- validSizes: Object.values(C)
46
+ validSizes: Object.values(E)
47
47
  }) {
48
48
  constructor() {
49
49
  super(...arguments), this.language = "en", this.slotContent = {}, this._enabled = !1, this._binWidth = 10;
50
50
  }
51
51
  static get styles() {
52
- return [z(E)];
52
+ return [z(C)];
53
53
  }
54
54
  willUpdate(o) {
55
55
  var l, n, i, e;
56
- o.has("slotContent") && (this._enabled = ((n = (l = this.slotContent) == null ? void 0 : l.bins) == null ? void 0 : n.enabled) ?? !1, this._binWidth = ((e = (i = this.slotContent) == null ? void 0 : i.bins) == null ? void 0 : e.number) ?? 10), o.has("language") && this.language !== g() && ([...b].includes(this.language ?? "en") || this.language === "en") && h(this.language);
56
+ o.has("slotContent") && (this._enabled = ((n = (l = this.slotContent) == null ? void 0 : l.bins) == null ? void 0 : n.enabled) ?? !1, this._binWidth = ((e = (i = this.slotContent) == null ? void 0 : i.bins) == null ? void 0 : e.number) ?? 10), o.has("language") && this.language !== g() && ([...b].includes(this.language ?? "en") || this.language === "en") && p(this.language);
57
57
  }
58
58
  toggleBinning() {
59
59
  this._enabled = !this._enabled, this.sendEvent();
@@ -140,7 +140,7 @@ r([
140
140
  y("#bin-width")
141
141
  ], t.prototype, "binWidthElement", 2);
142
142
  t = r([
143
- p()
143
+ h()
144
144
  ], t);
145
145
  customElements.get("luzmo-display-settings-binning") || customElements.define(
146
146
  "luzmo-display-settings-binning",
@@ -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 g=require("../task-CdvrMX8r.cjs");require("../index-C2PPSv8E.cjs");require("../index-CnpJUw_z.cjs");require("../index-j8UKjHqY.cjs");require("../index-DSQyBS9Z.cjs");require("../index-CBOAQ3-E.cjs");require("../index-D07V2c7z.cjs");require("../index-BKwbYw6x.cjs");const s=require("../property-Dlf9S6Jz.cjs"),i=require("../set-locale-5FFfQpVQ.cjs"),f=require("../localized-decorator-ClAOFk8M.cjs"),d=require("../luzmo-icons-Nyf1P71v.cjs"),m=require("../formatter-DiJYkB6b.cjs"),h=require("../periods.const-BbgInj9J.cjs"),l=require("../query-D5qWDopr.cjs"),y=require("../focusable-_wp5pWO-.cjs"),p=require("../sized-mixin-ZTphZKLm.cjs"),c={"~":()=>i.msg("Auto",{desc:"Automatic setting of the option"}),"/":()=>"/","-":()=>"-",".":()=>"."},z=":host{font-family:var(--luzmo-display-settings-datetime-font-family, var(--luzmo-font-family))}: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-datetime-gap, var(--display-settings-datetime-gap))}:host .example-container{line-height:var(--luzmo-display-settings-datetime-example-height, var(--display-settings-datetime-example-height));font-size:var(--luzmo-display-settings-datetime-example-font-size, var(--display-settings-datetime-example-font-size));color:var(--luzmo-display-settings-datetime-example-color, var(--display-settings-datetime-example-color))}:host .example-container .example-label{font-weight:var(--luzmo-display-settings-datetime-example-label-font-weight, var(--display-settings-datetime-example-label-font-weight));color:var(--luzmo-display-settings-datetime-example-label-color, var(--display-settings-datetime-example-label-color))}:host .example-container .example-language{text-transform:uppercase;color:var(--luzmo-display-settings-datetime-example-language-color, var(--display-settings-datetime-example-language-color))}:host{--display-settings-datetime-example-font-size: var(--luzmo-font-size);--display-settings-datetime-example-color: var(--luzmo-font-color);--display-settings-datetime-example-label-font-weight: bold;--display-settings-datetime-example-label-color: var(--luzmo-primary);--display-settings-datetime-example-language-color: var(--luzmo-primary)}:host{--display-settings-datetime-gap: var(--luzmo-spacing-3);--display-settings-datetime-example-height: var(--luzmo-component-height);--display-settings-datetime-example-font-size: var(--luzmo-font-size-s)}:host([size=s]){--display-settings-datetime-gap: var(--luzmo-spacing-3);--display-settings-datetime-example-height: var(--luzmo-component-height-s);--display-settings-datetime-example-font-size: var(--luzmo-font-size-s)}:host([size=l]){--display-settings-datetime-gap: var(--luzmo-spacing-4);--display-settings-datetime-example-height: var(--luzmo-component-height-l);--display-settings-datetime-example-font-size: var(--luzmo-font-size)}:host([size=xl]){--display-settings-datetime-gap: var(--luzmo-spacing-5);--display-settings-datetime-example-height: var(--luzmo-component-height-xl);--display-settings-datetime-example-font-size: var(--luzmo-font-size-l)}";var v=Object.defineProperty,S=Object.getOwnPropertyDescriptor,r=(u,e,t,o)=>{for(var a=o>1?void 0:o?S(e,t):e,n=u.length-1,_;n>=0;n--)(_=u[n])&&(a=(o?_(e,t,a):_(a))||a);return o&&a&&v(e,t,a),a};exports.LuzmoDisplaySettingsDatetime=class extends p.SizedMixin(y.LuzmoElement,{validSizes:Object.values(p.ElementSizes)}){constructor(){super(...arguments),this._loadLocaleFormatsConfig=new g.h(this,{task:async([e])=>{if(e&&e!==this._contentLanguageLoaded){const t=Object.assign({"../../utils/formatter/formats/cs.ts":()=>Promise.resolve().then(()=>require("../cs-I9E81keK.cjs")),"../../utils/formatter/formats/da.ts":()=>Promise.resolve().then(()=>require("../da-QkdvupDg.cjs")),"../../utils/formatter/formats/de.ts":()=>Promise.resolve().then(()=>require("../de-Dn5mUzha.cjs")),"../../utils/formatter/formats/en-GB.ts":()=>Promise.resolve().then(()=>require("../en-GB-Dd11ROdW.cjs")),"../../utils/formatter/formats/en-US.ts":()=>Promise.resolve().then(()=>D),"../../utils/formatter/formats/en.ts":()=>Promise.resolve().then(()=>F),"../../utils/formatter/formats/es.ts":()=>Promise.resolve().then(()=>require("../es-CwyPlN5d.cjs")),"../../utils/formatter/formats/fi.ts":()=>Promise.resolve().then(()=>require("../fi-rijeZE5V.cjs")),"../../utils/formatter/formats/fr.ts":()=>Promise.resolve().then(()=>require("../fr-BcgE-6S_.cjs")),"../../utils/formatter/formats/he.ts":()=>Promise.resolve().then(()=>require("../he-O6Ih8Bqh.cjs")),"../../utils/formatter/formats/hu.ts":()=>Promise.resolve().then(()=>require("../hu-BnZ8y3xQ.cjs")),"../../utils/formatter/formats/it.ts":()=>Promise.resolve().then(()=>require("../it-PshtLMkq.cjs")),"../../utils/formatter/formats/ja.ts":()=>Promise.resolve().then(()=>require("../ja-KIS2HdaG.cjs")),"../../utils/formatter/formats/ko.ts":()=>Promise.resolve().then(()=>require("../ko--l4qmjLV.cjs")),"../../utils/formatter/formats/mk.ts":()=>Promise.resolve().then(()=>require("../mk-DZlj-edb.cjs")),"../../utils/formatter/formats/nl.ts":()=>Promise.resolve().then(()=>require("../nl-BKlDqOXb.cjs")),"../../utils/formatter/formats/no.ts":()=>Promise.resolve().then(()=>require("../no-D_SzxhTu.cjs")),"../../utils/formatter/formats/pl.ts":()=>Promise.resolve().then(()=>require("../pl-PIK23rK_.cjs")),"../../utils/formatter/formats/pt.ts":()=>Promise.resolve().then(()=>require("../pt-Dqlu4MS5.cjs")),"../../utils/formatter/formats/ru.ts":()=>Promise.resolve().then(()=>require("../ru-zyNDTB04.cjs")),"../../utils/formatter/formats/sv.ts":()=>Promise.resolve().then(()=>require("../sv-1DPTltNQ.cjs")),"../../utils/formatter/formats/tr.ts":()=>Promise.resolve().then(()=>require("../tr-BkmWvOG2.cjs")),"../../utils/formatter/formats/zh-CN.ts":()=>Promise.resolve().then(()=>require("../zh-CN-DTZ4OmdP.cjs")),"../../utils/formatter/formats/zh-TW.ts":()=>Promise.resolve().then(()=>require("../zh-TW-DTZ4OmdP.cjs"))});if(t[`../../utils/formatter/formats/${e}.ts`]){const o=await t[`../../utils/formatter/formats/${e}.ts`]();this._localeFormats=(o==null?void 0:o.default)??{}}return this._contentLanguageLoaded=e,this._localeFormats}},args:()=>[this.contentLanguage]}),this.language="en",this.contentLanguage="en",this.size="m",this.slotContent={},this._dateLevel=5,this._displayAs="default",this._weekStart="monday",this._weekDayAndMonthInYearFormat="long",this._dateFormat="auto",this._dateSeparator="~",this._sendEvent=()=>{this._calculateSlotContent(),this.dispatchEvent(new CustomEvent("slot-content-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:this._currentSlotContent}}))}}static get styles(){return[s.r(z)]}_parseSlotContent(){var e,t;this._dateLevel=this.slotContent.level??((e=this.slotContent)==null?void 0:e.lowestLevel)??5,this._displayAs=((t=this.slotContent)==null?void 0:t.datetimeDisplayMode)??"default",this._displayAs==="weekday_number"&&(this._displayAs="day_in_week",this._weekDayAndMonthInYearFormat="number"),this._displayAs==="weekday_name"&&(this._displayAs="day_in_week"),this._displayAs==="month_number"&&(this._displayAs="month_in_year",this._weekDayAndMonthInYearFormat="number"),this._displayAs==="month_name"&&(this._displayAs="month_in_year")}_calculateFormat(){var o;let e;const t=((o=this._localeFormats)==null?void 0:o.smartDateFormats)??m.SMART_DATE_FORMATS;this._monthName?(e=t.filter(a=>a.monthType==="name"&&a.longText===(this._monthNameFormat==="long")&&a.weekday===this._weekDay),e.length>0?this._format=e[0].key:(this._weekDayAndMonthInYearFormat="short",this._weekDay=!0,this._format="%a %e %B %Y")):(e=this._dateLevel&&this._dateLevel===4?t.filter(a=>a.monthType==="number"&&a.mmdd===(this._weekFormat==="mmdd"?!0:this._weekFormat==="ddmm"?!1:null)&&a.separator===this._dateSeparator):t.filter(a=>a.monthType==="number"&&a.mmdd===(this._dateFormat==="mmdd"?!0:this._dateFormat==="ddmm"?!1:null)&&a.separator===this._dateSeparator),this._dateFormat==="auto"&&this._dateLevel&&this._dateLevel!==4?this._format="%amd"+this._dateSeparator+"%Y":e.length>0?this._format=e[0].key:(this._dateFormat="ddmm",this._dateSeparator="/",this._format="%d/%m/%Y")),this._dateLevel&&this._dateLevel>5&&(this._format+=this._24hFormat?" %H:%M:%S.%L":" %I:%M:%S.%L %p")}_setWeekStartsOn(){this._weekStart=this._weekStartElement.value,this._sendEvent(),this.requestUpdate()}_setDisplayAs(){this._displayAs=this._displayAsElement.value,this._sendEvent(),this.requestUpdate()}_setWeekdayAndMonthInYearFormat(){var e;this._weekDayAndMonthInYearFormat=((e=this._weekDayAndMonthInYearFormatElement.selected)==null?void 0:e[0])??"long",this._sendEvent(),this.requestUpdate()}_setMonthNameFormat(){var e;this._monthNameFormat=(e=this._monthNameFormatElement.selected)==null?void 0:e[0],this._sendEvent(),this.requestUpdate()}_setMonthName(){this._monthName=this._monthNameElement.selected,this._sendEvent(),this.requestUpdate()}_setWeekFormat(){var e;this._weekFormat=(e=this._weekFormatElement.selected)==null?void 0:e[0],this._sendEvent(),this.requestUpdate()}_setDateFormat(){this._dateFormat=this._dateFormatElement.value,this._sendEvent(),this.requestUpdate()}_setDateSeparator(){this._dateSeparator=this._dateSeparatorElement.value,this._sendEvent(),this.requestUpdate()}_set24hFormat(){this._24hFormat=this._format24hElement.selected,this._sendEvent(),this.requestUpdate()}_setWeekday(){this._weekDay=this._weekDayElement.selected,this._sendEvent(),this.requestUpdate()}_calculateSlotContent(){this._currentSlotContent={...this.slotContent},this._calculateFormat(),this._currentSlotContent.format=this._format,this._displayAs==="default"?delete this._currentSlotContent.datetimeDisplayMode:(this._currentSlotContent.datetimeDisplayMode=this._displayAs,this._displayAs==="week_in_year"?this._currentSlotContent.datetimeDisplayMode=this._weekDayAndMonthInYearFormat==="number"?"week_number":"week_name":this._displayAs==="month_in_year"?this._currentSlotContent.datetimeDisplayMode=this._weekDayAndMonthInYearFormat==="number"?"month_number":"month_name":this._displayAs==="day_in_week"&&(this._currentSlotContent.datetimeDisplayMode=this._weekDayAndMonthInYearFormat==="number"?"weekday_number":"weekday_name",this._currentSlotContent.weekStart=this._weekStart),this._weekDayAndMonthInYearFormat&&(this._dateLevel===3?this._currentSlotContent.monthNameFormat=this._weekDayAndMonthInYearFormat:this._dateLevel===5&&(this._currentSlotContent.weekDayNameFormat=this._weekDayAndMonthInYearFormat)))}willUpdate(e){e.has("slotContent")&&(this._parseSlotContent(),this._calculateSlotContent()),e.has("language")&&this.language!==i.getLocale()&&([...i.targetLocales].includes(this.language??"en")||this.language==="en")&&i.setLocale(this.language)}_renderDisplaySettings(){var t,o;const e=(o=(t=h.DATETIME_AS_STRING_FORMATS_PER_LEVEL)==null?void 0:t[`level${this._dateLevel??0}`])==null?void 0:o.map(a=>s.x`<luzmo-menu-item value=${a.key}>
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../task-CdvrMX8r.cjs");require("../index-uoJRMChX.cjs");require("../index-CnpJUw_z.cjs");require("../index-j8UKjHqY.cjs");require("../index-CKenYdIM.cjs");require("../index-ROT368zu.cjs");require("../index-C0mIH6sE.cjs");require("../index-BKwbYw6x.cjs");const s=require("../property-Dlf9S6Jz.cjs"),i=require("../set-locale-5FFfQpVQ.cjs"),f=require("../localized-decorator-ClAOFk8M.cjs"),d=require("../luzmo-icons-BpFUFRQm.cjs"),m=require("../formatter-DiJYkB6b.cjs"),h=require("../periods.const-BbgInj9J.cjs"),l=require("../query-D5qWDopr.cjs"),y=require("../focusable-_wp5pWO-.cjs"),p=require("../sized-mixin-ZTphZKLm.cjs"),c={"~":()=>i.msg("Auto",{desc:"Automatic setting of the option"}),"/":()=>"/","-":()=>"-",".":()=>"."},z=":host{font-family:var(--luzmo-display-settings-datetime-font-family, var(--luzmo-font-family))}: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-datetime-gap, var(--display-settings-datetime-gap))}:host .example-container{line-height:var(--luzmo-display-settings-datetime-example-height, var(--display-settings-datetime-example-height));font-size:var(--luzmo-display-settings-datetime-example-font-size, var(--display-settings-datetime-example-font-size));color:var(--luzmo-display-settings-datetime-example-color, var(--display-settings-datetime-example-color))}:host .example-container .example-label{font-weight:var(--luzmo-display-settings-datetime-example-label-font-weight, var(--display-settings-datetime-example-label-font-weight));color:var(--luzmo-display-settings-datetime-example-label-color, var(--display-settings-datetime-example-label-color))}:host .example-container .example-language{text-transform:uppercase;color:var(--luzmo-display-settings-datetime-example-language-color, var(--display-settings-datetime-example-language-color))}:host{--display-settings-datetime-example-font-size: var(--luzmo-font-size);--display-settings-datetime-example-color: var(--luzmo-font-color);--display-settings-datetime-example-label-font-weight: bold;--display-settings-datetime-example-label-color: var(--luzmo-primary);--display-settings-datetime-example-language-color: var(--luzmo-primary)}:host{--display-settings-datetime-gap: var(--luzmo-spacing-3);--display-settings-datetime-example-height: var(--luzmo-component-height);--display-settings-datetime-example-font-size: var(--luzmo-font-size-s)}:host([size=s]){--display-settings-datetime-gap: var(--luzmo-spacing-3);--display-settings-datetime-example-height: var(--luzmo-component-height-s);--display-settings-datetime-example-font-size: var(--luzmo-font-size-s)}:host([size=l]){--display-settings-datetime-gap: var(--luzmo-spacing-4);--display-settings-datetime-example-height: var(--luzmo-component-height-l);--display-settings-datetime-example-font-size: var(--luzmo-font-size)}:host([size=xl]){--display-settings-datetime-gap: var(--luzmo-spacing-5);--display-settings-datetime-example-height: var(--luzmo-component-height-xl);--display-settings-datetime-example-font-size: var(--luzmo-font-size-l)}";var v=Object.defineProperty,S=Object.getOwnPropertyDescriptor,r=(u,e,t,o)=>{for(var a=o>1?void 0:o?S(e,t):e,n=u.length-1,_;n>=0;n--)(_=u[n])&&(a=(o?_(e,t,a):_(a))||a);return o&&a&&v(e,t,a),a};exports.LuzmoDisplaySettingsDatetime=class extends p.SizedMixin(y.LuzmoElement,{validSizes:Object.values(p.ElementSizes)}){constructor(){super(...arguments),this._loadLocaleFormatsConfig=new g.h(this,{task:async([e])=>{if(e&&e!==this._contentLanguageLoaded){const t=Object.assign({"../../utils/formatter/formats/cs.ts":()=>Promise.resolve().then(()=>require("../cs-I9E81keK.cjs")),"../../utils/formatter/formats/da.ts":()=>Promise.resolve().then(()=>require("../da-QkdvupDg.cjs")),"../../utils/formatter/formats/de.ts":()=>Promise.resolve().then(()=>require("../de-Dn5mUzha.cjs")),"../../utils/formatter/formats/en-GB.ts":()=>Promise.resolve().then(()=>require("../en-GB-Dd11ROdW.cjs")),"../../utils/formatter/formats/en-US.ts":()=>Promise.resolve().then(()=>D),"../../utils/formatter/formats/en.ts":()=>Promise.resolve().then(()=>F),"../../utils/formatter/formats/es.ts":()=>Promise.resolve().then(()=>require("../es-CwyPlN5d.cjs")),"../../utils/formatter/formats/fi.ts":()=>Promise.resolve().then(()=>require("../fi-rijeZE5V.cjs")),"../../utils/formatter/formats/fr.ts":()=>Promise.resolve().then(()=>require("../fr-BcgE-6S_.cjs")),"../../utils/formatter/formats/he.ts":()=>Promise.resolve().then(()=>require("../he-O6Ih8Bqh.cjs")),"../../utils/formatter/formats/hu.ts":()=>Promise.resolve().then(()=>require("../hu-BnZ8y3xQ.cjs")),"../../utils/formatter/formats/it.ts":()=>Promise.resolve().then(()=>require("../it-PshtLMkq.cjs")),"../../utils/formatter/formats/ja.ts":()=>Promise.resolve().then(()=>require("../ja-KIS2HdaG.cjs")),"../../utils/formatter/formats/ko.ts":()=>Promise.resolve().then(()=>require("../ko--l4qmjLV.cjs")),"../../utils/formatter/formats/mk.ts":()=>Promise.resolve().then(()=>require("../mk-DZlj-edb.cjs")),"../../utils/formatter/formats/nl.ts":()=>Promise.resolve().then(()=>require("../nl-BKlDqOXb.cjs")),"../../utils/formatter/formats/no.ts":()=>Promise.resolve().then(()=>require("../no-D_SzxhTu.cjs")),"../../utils/formatter/formats/pl.ts":()=>Promise.resolve().then(()=>require("../pl-PIK23rK_.cjs")),"../../utils/formatter/formats/pt.ts":()=>Promise.resolve().then(()=>require("../pt-Dqlu4MS5.cjs")),"../../utils/formatter/formats/ru.ts":()=>Promise.resolve().then(()=>require("../ru-zyNDTB04.cjs")),"../../utils/formatter/formats/sv.ts":()=>Promise.resolve().then(()=>require("../sv-1DPTltNQ.cjs")),"../../utils/formatter/formats/tr.ts":()=>Promise.resolve().then(()=>require("../tr-BkmWvOG2.cjs")),"../../utils/formatter/formats/zh-CN.ts":()=>Promise.resolve().then(()=>require("../zh-CN-DTZ4OmdP.cjs")),"../../utils/formatter/formats/zh-TW.ts":()=>Promise.resolve().then(()=>require("../zh-TW-DTZ4OmdP.cjs"))});if(t[`../../utils/formatter/formats/${e}.ts`]){const o=await t[`../../utils/formatter/formats/${e}.ts`]();this._localeFormats=(o==null?void 0:o.default)??{}}return this._contentLanguageLoaded=e,this._localeFormats}},args:()=>[this.contentLanguage]}),this.language="en",this.contentLanguage="en",this.size="m",this.slotContent={},this._dateLevel=5,this._displayAs="default",this._weekStart="monday",this._weekDayAndMonthInYearFormat="long",this._dateFormat="auto",this._dateSeparator="~",this._sendEvent=()=>{this._calculateSlotContent(),this.dispatchEvent(new CustomEvent("slot-content-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:this._currentSlotContent}}))}}static get styles(){return[s.r(z)]}_parseSlotContent(){var e,t;this._dateLevel=this.slotContent.level??((e=this.slotContent)==null?void 0:e.lowestLevel)??5,this._displayAs=((t=this.slotContent)==null?void 0:t.datetimeDisplayMode)??"default",this._displayAs==="weekday_number"&&(this._displayAs="day_in_week",this._weekDayAndMonthInYearFormat="number"),this._displayAs==="weekday_name"&&(this._displayAs="day_in_week"),this._displayAs==="month_number"&&(this._displayAs="month_in_year",this._weekDayAndMonthInYearFormat="number"),this._displayAs==="month_name"&&(this._displayAs="month_in_year")}_calculateFormat(){var o;let e;const t=((o=this._localeFormats)==null?void 0:o.smartDateFormats)??m.SMART_DATE_FORMATS;this._monthName?(e=t.filter(a=>a.monthType==="name"&&a.longText===(this._monthNameFormat==="long")&&a.weekday===this._weekDay),e.length>0?this._format=e[0].key:(this._weekDayAndMonthInYearFormat="short",this._weekDay=!0,this._format="%a %e %B %Y")):(e=this._dateLevel&&this._dateLevel===4?t.filter(a=>a.monthType==="number"&&a.mmdd===(this._weekFormat==="mmdd"?!0:this._weekFormat==="ddmm"?!1:null)&&a.separator===this._dateSeparator):t.filter(a=>a.monthType==="number"&&a.mmdd===(this._dateFormat==="mmdd"?!0:this._dateFormat==="ddmm"?!1:null)&&a.separator===this._dateSeparator),this._dateFormat==="auto"&&this._dateLevel&&this._dateLevel!==4?this._format="%amd"+this._dateSeparator+"%Y":e.length>0?this._format=e[0].key:(this._dateFormat="ddmm",this._dateSeparator="/",this._format="%d/%m/%Y")),this._dateLevel&&this._dateLevel>5&&(this._format+=this._24hFormat?" %H:%M:%S.%L":" %I:%M:%S.%L %p")}_setWeekStartsOn(){this._weekStart=this._weekStartElement.value,this._sendEvent(),this.requestUpdate()}_setDisplayAs(){this._displayAs=this._displayAsElement.value,this._sendEvent(),this.requestUpdate()}_setWeekdayAndMonthInYearFormat(){var e;this._weekDayAndMonthInYearFormat=((e=this._weekDayAndMonthInYearFormatElement.selected)==null?void 0:e[0])??"long",this._sendEvent(),this.requestUpdate()}_setMonthNameFormat(){var e;this._monthNameFormat=(e=this._monthNameFormatElement.selected)==null?void 0:e[0],this._sendEvent(),this.requestUpdate()}_setMonthName(){this._monthName=this._monthNameElement.selected,this._sendEvent(),this.requestUpdate()}_setWeekFormat(){var e;this._weekFormat=(e=this._weekFormatElement.selected)==null?void 0:e[0],this._sendEvent(),this.requestUpdate()}_setDateFormat(){this._dateFormat=this._dateFormatElement.value,this._sendEvent(),this.requestUpdate()}_setDateSeparator(){this._dateSeparator=this._dateSeparatorElement.value,this._sendEvent(),this.requestUpdate()}_set24hFormat(){this._24hFormat=this._format24hElement.selected,this._sendEvent(),this.requestUpdate()}_setWeekday(){this._weekDay=this._weekDayElement.selected,this._sendEvent(),this.requestUpdate()}_calculateSlotContent(){this._currentSlotContent={...this.slotContent},this._calculateFormat(),this._currentSlotContent.format=this._format,this._displayAs==="default"?delete this._currentSlotContent.datetimeDisplayMode:(this._currentSlotContent.datetimeDisplayMode=this._displayAs,this._displayAs==="week_in_year"?this._currentSlotContent.datetimeDisplayMode=this._weekDayAndMonthInYearFormat==="number"?"week_number":"week_name":this._displayAs==="month_in_year"?this._currentSlotContent.datetimeDisplayMode=this._weekDayAndMonthInYearFormat==="number"?"month_number":"month_name":this._displayAs==="day_in_week"&&(this._currentSlotContent.datetimeDisplayMode=this._weekDayAndMonthInYearFormat==="number"?"weekday_number":"weekday_name",this._currentSlotContent.weekStart=this._weekStart),this._weekDayAndMonthInYearFormat&&(this._dateLevel===3?this._currentSlotContent.monthNameFormat=this._weekDayAndMonthInYearFormat:this._dateLevel===5&&(this._currentSlotContent.weekDayNameFormat=this._weekDayAndMonthInYearFormat)))}willUpdate(e){e.has("slotContent")&&(this._parseSlotContent(),this._calculateSlotContent()),e.has("language")&&this.language!==i.getLocale()&&([...i.targetLocales].includes(this.language??"en")||this.language==="en")&&i.setLocale(this.language)}_renderDisplaySettings(){var t,o;const e=(o=(t=h.DATETIME_AS_STRING_FORMATS_PER_LEVEL)==null?void 0:t[`level${this._dateLevel??0}`])==null?void 0:o.map(a=>s.x`<luzmo-menu-item value=${a.key}>
21
21
  ${a.i18n()}
22
22
  </luzmo-menu-item>`);return s.x`<div class="setting">
23
23
  <luzmo-field-label for="display-as"
@@ -119,7 +119,7 @@
119
119
  <luzmo-icon
120
120
  slot="icon"
121
121
  .size=${this.size}
122
- .icon=${this._monthName?d.C0:d.h0}
122
+ .icon=${this._monthName?d.v0:d.z0}
123
123
  ></luzmo-icon>
124
124
  ${i.msg("Name")}
125
125
  </luzmo-action-button>
@@ -170,7 +170,7 @@
170
170
  <luzmo-icon
171
171
  slot="icon"
172
172
  .size=${this.size}
173
- .icon=${this._24hFormat?d.C0:d.h0}
173
+ .icon=${this._24hFormat?d.v0:d.z0}
174
174
  ></luzmo-icon>
175
175
  </luzmo-action-button>
176
176
  </div>`}_renderWeekdaySettings(){return s.x`<div class="settings-">
@@ -188,7 +188,7 @@
188
188
  <luzmo-icon
189
189
  slot="icon"
190
190
  .size=${this.size}
191
- .icon=${this._weekDay?d.C0:d.h0}
191
+ .icon=${this._weekDay?d.v0:d.z0}
192
192
  ></luzmo-icon>
193
193
  ${i.msg("Show")}
194
194
  </luzmo-action-button>
@@ -18,19 +18,19 @@
18
18
  * SOFTWARE.
19
19
  * */
20
20
  import { h as S } from "../task-DH8UFyxP.js";
21
- import "../index-rQxtPaJl.js";
21
+ import "../index-DDR_JmOh.js";
22
22
  import "../index-BHJH1eGn.js";
23
23
  import "../index-CsDgk_sj.js";
24
- import "../index-BC1LV3vH.js";
25
- import "../index-Desl7GJ0.js";
26
- import "../index-CpQnVCVV.js";
24
+ import "../index-BNBJLKST.js";
25
+ import "../index-jlphu2Tm.js";
26
+ import "../index-D5asknFy.js";
27
27
  import "../index-C3N6qTxJ.js";
28
28
  import { r as k, x as a, n as d } from "../property-CxtZroGf.js";
29
29
  import { m as i, g as x, t as w, s as F } from "../set-locale-DAGnJZD8.js";
30
30
  import { l as $ } from "../localized-decorator-DGnMToFa.js";
31
- import { C as p, h as c } from "../luzmo-icons-CPucBq6e.js";
31
+ import { v as p, z as c } from "../luzmo-icons-BZPchcMw.js";
32
32
  import { S as _, f, D as v } from "../formatter-CQDms6fU.js";
33
- import { a as A, b as g, W as z } from "../periods.const-D2cMP5hH.js";
33
+ import { a as A, b as z, W as g } from "../periods.const-D2cMP5hH.js";
34
34
  import { e as n } from "../query-Ddbd72Um.js";
35
35
  import { L } from "../focusable-DB6Uhr-C.js";
36
36
  import { S as D, E } from "../sized-mixin-C7R5uRbF.js";
@@ -190,9 +190,9 @@ let r = class extends D(L, {
190
190
  }
191
191
  _renderWeekDayAndMonthNameFormatSettings() {
192
192
  const t = Object.keys(
193
- g
193
+ z
194
194
  ).map((e) => a`<luzmo-action-button value=${e}>
195
- ${g[e]()}
195
+ ${z[e]()}
196
196
  </luzmo-action-button>`);
197
197
  return a` <div class="setting">
198
198
  <luzmo-field-label for="weekday-and-month-in-year-format"
@@ -290,9 +290,9 @@ let r = class extends D(L, {
290
290
  </div>`;
291
291
  }
292
292
  _renderWeekStartsOnSettings() {
293
- const t = Object.keys(z).map(
293
+ const t = Object.keys(g).map(
294
294
  (e) => a`<luzmo-menu-item value=${e}>
295
- ${z[e]()}
295
+ ${g[e]()}
296
296
  </luzmo-menu-item>`
297
297
  );
298
298
  return a`<div class="setting">
@@ -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"});require("../index-C2PPSv8E.cjs");require("../index-j8UKjHqY.cjs");require("../index-DSQyBS9Z.cjs");const l=require("../property-Dlf9S6Jz.cjs"),n=require("../set-locale-5FFfQpVQ.cjs"),c=require("../localized-decorator-ClAOFk8M.cjs"),g=require("../luzmo-icons-Nyf1P71v.cjs"),p=require("../state-CrfOw8Zp.cjs"),m=require("../if-defined-DqthfJme.cjs"),z=require("../focusable-_wp5pWO-.cjs"),u=require("../sized-mixin-ZTphZKLm.cjs"),h=":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-grand-totals-gap, var(--display-settings-grand-totals-gap))}:host{--display-settings-grand-totals-gap: var(--luzmo-spacing-3)}:host([size=s]){--display-settings-grand-totals-gap: var(--luzmo-spacing-3)}:host([size=l]){--display-settings-grand-totals-gap: var(--luzmo-spacing-4)}:host([size=xl]){--display-settings-grand-totals-gap: var(--luzmo-spacing-5)}";var b=Object.defineProperty,v=Object.getOwnPropertyDescriptor,i=(o,t,a,e)=>{for(var s=e>1?void 0:e?v(t,a):t,r=o.length-1,d;r>=0;r--)(d=o[r])&&(s=(e?d(t,a,s):d(s))||s);return e&&s&&b(t,a,s),s};exports.LuzmoDisplaySettingsGrandTotals=class extends u.SizedMixin(z.LuzmoElement,{validSizes:Object.values(u.ElementSizes)}){constructor(){super(...arguments),this.language="en",this.slotContent={}}static get styles(){return[l.r(h)]}willUpdate(t){var a,e;t.has("slotContent")&&(this._enabled=((e=(a=this.slotContent)==null?void 0:a.grandTotals)==null?void 0:e.enabled)??!1),t.has("language")&&this.language!==n.getLocale()&&([...n.targetLocales].includes(this.language??"en")||this.language==="en")&&n.setLocale(this.language)}toggleGrandTotals(){this._enabled=!this._enabled,this.sendEvent()}sendEvent(){const t={enabled:!!this._enabled};this.dispatchEvent(new CustomEvent("slot-content-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:{...this.slotContent,grandTotals:t}}}))}render(){return l.x`<div class="settings-container">
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-uoJRMChX.cjs");require("../index-j8UKjHqY.cjs");require("../index-CKenYdIM.cjs");const l=require("../property-Dlf9S6Jz.cjs"),n=require("../set-locale-5FFfQpVQ.cjs"),c=require("../localized-decorator-ClAOFk8M.cjs"),g=require("../luzmo-icons-BpFUFRQm.cjs"),p=require("../state-CrfOw8Zp.cjs"),m=require("../if-defined-DqthfJme.cjs"),z=require("../focusable-_wp5pWO-.cjs"),u=require("../sized-mixin-ZTphZKLm.cjs"),h=":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-grand-totals-gap, var(--display-settings-grand-totals-gap))}:host{--display-settings-grand-totals-gap: var(--luzmo-spacing-3)}:host([size=s]){--display-settings-grand-totals-gap: var(--luzmo-spacing-3)}:host([size=l]){--display-settings-grand-totals-gap: var(--luzmo-spacing-4)}:host([size=xl]){--display-settings-grand-totals-gap: var(--luzmo-spacing-5)}";var b=Object.defineProperty,v=Object.getOwnPropertyDescriptor,i=(o,t,a,e)=>{for(var s=e>1?void 0:e?v(t,a):t,r=o.length-1,d;r>=0;r--)(d=o[r])&&(s=(e?d(t,a,s):d(s))||s);return e&&s&&b(t,a,s),s};exports.LuzmoDisplaySettingsGrandTotals=class extends u.SizedMixin(z.LuzmoElement,{validSizes:Object.values(u.ElementSizes)}){constructor(){super(...arguments),this.language="en",this.slotContent={}}static get styles(){return[l.r(h)]}willUpdate(t){var a,e;t.has("slotContent")&&(this._enabled=((e=(a=this.slotContent)==null?void 0:a.grandTotals)==null?void 0:e.enabled)??!1),t.has("language")&&this.language!==n.getLocale()&&([...n.targetLocales].includes(this.language??"en")||this.language==="en")&&n.setLocale(this.language)}toggleGrandTotals(){this._enabled=!this._enabled,this.sendEvent()}sendEvent(){const t={enabled:!!this._enabled};this.dispatchEvent(new CustomEvent("slot-content-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:{...this.slotContent,grandTotals:t}}}))}render(){return l.x`<div class="settings-container">
21
21
  <div class="settings-row">
22
22
  <div class="setting">
23
23
  <luzmo-field-label for="grand-totals"
@@ -35,7 +35,7 @@
35
35
  <luzmo-icon
36
36
  slot="icon"
37
37
  .size=${this.size}
38
- .icon=${this._enabled?g.C0:g.h0}
38
+ .icon=${this._enabled?g.v0:g.z0}
39
39
  ></luzmo-icon>
40
40
  ${this._enabled?n.msg("Enabled",{desc:"Option set to enabled"}):n.msg("Disabled",{desc:"Option set to disabled"})}
41
41
  </luzmo-action-button>
@@ -17,17 +17,17 @@
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 "../index-rQxtPaJl.js";
20
+ import "../index-DDR_JmOh.js";
21
21
  import "../index-CsDgk_sj.js";
22
- import "../index-BC1LV3vH.js";
22
+ import "../index-BNBJLKST.js";
23
23
  import { r as d, x as z, n as m } from "../property-CxtZroGf.js";
24
24
  import { g, t as p, s as b, m as u } from "../set-locale-DAGnJZD8.js";
25
25
  import { l as f } from "../localized-decorator-DGnMToFa.js";
26
- import { C as h, h as v } from "../luzmo-icons-CPucBq6e.js";
26
+ import { v as h, z as v } from "../luzmo-icons-BZPchcMw.js";
27
27
  import { r as x } from "../state-BVYsk_HZ.js";
28
28
  import { o as y } from "../if-defined-B4gwZxx6.js";
29
29
  import { L as w } from "../focusable-DB6Uhr-C.js";
30
- import { S as C, E as _ } from "../sized-mixin-C7R5uRbF.js";
30
+ import { S as _, E as C } from "../sized-mixin-C7R5uRbF.js";
31
31
  const c = () => {
32
32
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
33
33
  const o = document.createElement("style");
@@ -41,8 +41,8 @@ var S = Object.defineProperty, $ = Object.getOwnPropertyDescriptor, a = (o, l, t
41
41
  (i = o[n]) && (e = (s ? i(l, t, e) : i(e)) || e);
42
42
  return s && e && S(l, t, e), e;
43
43
  };
44
- let r = class extends C(w, {
45
- validSizes: Object.values(_)
44
+ let r = class extends _(w, {
45
+ validSizes: Object.values(C)
46
46
  }) {
47
47
  constructor() {
48
48
  super(...arguments), this.language = "en", this.slotContent = {};
@@ -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 s=require("../set-locale-5FFfQpVQ.cjs"),b=require("../localized-decorator-ClAOFk8M.cjs");require("../index-C2PPSv8E.cjs");require("../index-CnpJUw_z.cjs");require("../index-j8UKjHqY.cjs");require("../index-Cltytvm7.cjs");require("../index-CBOAQ3-E.cjs");require("../index-D07V2c7z.cjs");require("../index-BoXbQm2o.cjs");const v=require("../decompose-numeric-format-B3rVVHpO.cjs"),o=require("../property-Dlf9S6Jz.cjs"),f=require("../luzmo-icons-Nyf1P71v.cjs"),S=require("../index-B4EIbvuW.cjs"),A=require("../state-CrfOw8Zp.cjs"),m=require("../query-D5qWDopr.cjs"),F=require("../focusable-_wp5pWO-.cjs"),y=require("../sized-mixin-ZTphZKLm.cjs"),D=":host .settings-container{display:flex;flex-direction:column;gap:var(--luzmo-spacing-2)}:host .settings-row{display:flex;justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-numeric-gap, var(--display-settings-numeric-gap))}.duration-angle-down-icon{margin-inline-start:var(--luzmo-numeric-duration-levels-dropdown-icon-margin-inline-start, var(--numeric-duration-levels-dropdown-icon-margin-inline-start))}:host{--display-settings-numeric-gap: var(--luzmo-spacing-3);--numeric-duration-levels-dropdown-icon-margin-inline-start: var( --luzmo-spacing-2 )}:host([size=s]){--display-settings-numeric-gap: var(--luzmo-spacing-3);--numeric-duration-levels-dropdown-icon-margin-inline-start: var( --luzmo-spacing-1 )}:host([size=l]){--display-settings-numeric-gap: var(--luzmo-spacing-4);--numeric-duration-levels-dropdown-icon-margin-inline-start: var( --luzmo-spacing-3 )}:host([size=xl]){--display-settings-numeric-gap: var(--luzmo-spacing-5);--numeric-duration-levels-dropdown-icon-margin-inline-start: var( --luzmo-spacing-4 )}",$={sum:()=>s.msg("Sum",{desc:"Numeric Aggregation option"}),cumulativesum:()=>s.msg("Cumulative sum",{desc:"Numeric Aggregation option"}),average:()=>s.msg("Average",{desc:"Numeric Aggregation option"}),weightedaverage:()=>s.msg("Weighted average",{desc:"Numeric Aggregation option"}),median:()=>s.msg("Median",{desc:"Numeric Aggregation option"}),count:()=>s.msg("Count",{desc:"Numeric Aggregation option"}),distinctcount:()=>s.msg("Distinct count",{desc:"Numeric Aggregation option"}),min:()=>s.msg("Minimum",{desc:"Numeric Aggregation option"}),max:()=>s.msg("Maximum",{desc:"Numeric Aggregation option"}),stddev:()=>s.msg("Standard deviation",{desc:"Numeric Aggregation option"}),rate:()=>s.msg("Rate",{desc:"Numeric Aggregation option"})},z={general:"123",percentage:"%",scientific:"SI"},L={time:()=>s.msg("Time",{desc:"Time format option"}),short:()=>s.msg("Short",{desc:"Short format option"}),long:()=>s.msg("Long",{desc:"Long format option"})},p={Auto:{auto:!0,label:()=>s.msg("Auto",{desc:"Automatic setting of the option"})},"1,000.00":{auto:!1,label:()=>"1,000.00",thousandSeparator:",",decimalSeparator:"."},"1.000,00":{auto:!1,label:()=>"1.000,00",thousandSeparator:".",decimalSeparator:","},"1000.00":{auto:!1,label:()=>"1000.00",decimalSeparator:"."},"1000,00":{auto:!1,label:()=>"1000,00",decimalSeparator:","}},N={levels:[{level:1,label:"years"},{level:2,label:"quarters"},{level:3,label:"months"},{level:4,label:"weeks"},{level:5,label:"days"},{level:6,label:"hours"},{level:7,label:"minutes"},{level:8,label:"seconds"},{level:9,label:"milliseconds"}]};var C=Object.defineProperty,E=Object.getOwnPropertyDescriptor,l=(h,t,e,i)=>{for(var n=i>1?void 0:i?E(t,e):t,a=h.length-1,r;a>=0;a--)(r=h[a])&&(n=(i?r(t,e,n):r(n))||n);return i&&n&&C(t,e,n),n};exports.LuzmoDisplaySettingsNumeric=class extends y.SizedMixin(F.LuzmoElement,{validSizes:Object.values(y.ElementSizes)}){constructor(){super(...arguments),this.language="en",this.slotContent={},this.measureColumns=[],this._durationLevels=[],this._renderDurationLevelMenu=!1,this._sendEvent=()=>{const t={...this.slotContent};t.format=this._format,t.aggregationFunc=this._aggregationFunc,this._aggregationWeightColumn?t.aggregationWeight={...this._aggregationWeightColumn}:this._aggregationFunc==="rate"&&(t.aggregationFunc="average"),this._displayMode==="duration"?(t.duration=t.duration??{},t.duration.format=this._durationFormat,t.duration.levels=this._durationLevels):delete t.duration,this.dispatchEvent(new CustomEvent("slot-content-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:t}}))}}static get styles(){return[o.r(D)]}_parseSavedNumericFormatSettings(){var t,e,i,n,a,r,g,c,d,_;if(this._displayMode=((t=this.slotContent)==null?void 0:t.subtype)==="duration"?((n=(i=(e=this.slotContent)==null?void 0:e.duration)==null?void 0:i.levels)==null?void 0:n.length)===1?"numeric":"duration":"numeric",this._durationFormat=((r=(a=this.slotContent)==null?void 0:a.duration)==null?void 0:r.format)??"short",this._durationLevels=((c=(g=this.slotContent)==null?void 0:g.duration)==null?void 0:c.levels)??[1],this._displayMode==="duration")this._precision=2,this._commaDecimals=!1,this._thousandSeparator=!1;else{this._format=((d=this.slotContent)==null?void 0:d.format)??".0f";const u=v.decomposeNumericFormat(this._format??".0f");this._isAuto=((_=u.typeFormat)==null?void 0:_.includes("a"))??!1,["%","a%","y","ay"].includes(u.typeFormat)?this._displayAs="percentage":["s","as","w","aw"].includes(u.typeFormat)?this._displayAs="scientific":this._displayAs="general",this._precision=u.precision?Number.parseInt(u.precision.replace(".",""),10):this._displayAs==="scientific"?1:0,this._commaDecimals=["z","az","y","ay","w","aw"].includes(u.typeFormat),this._thousandSeparator=u.comma===",",this._isAuto?this._numericFormatGroup="Auto":this._commaDecimals&&this._thousandSeparator?this._numericFormatGroup="1.000,00":!this._commaDecimals&&this._thousandSeparator?this._numericFormatGroup="1,000.00":this._commaDecimals&&!this._thousandSeparator?this._numericFormatGroup="1000,00":!this._commaDecimals&&!this._thousandSeparator&&(this._numericFormatGroup="1000.00")}}_setNumericDisplayAs(){var t,e;this._displayAs=((e=(t=this._displayAsElement)==null?void 0:t.selected)==null?void 0:e[0])??"general",this._displayAs==="scientific"&&(this._precision=Math.max(this._precision??0,1),this._thousandSeparator=!1),this._setNumericFormat(),this._sendEvent(),this.requestUpdate()}_setNumericSeparators(t){const e=p[(t==null?void 0:t.detail)??"Auto"];this._thousandSeparator=[",","."].includes((e==null?void 0:e.thousandSeparator)??""),this._commaDecimals=(e==null?void 0:e.decimalSeparator)===",",this._isAuto=e==null?void 0:e.auto,this._setNumericFormat(),this._sendEvent()}_setPrecision(){this._precision=this._precisionElement.value,this._setNumericFormat(),this._sendEvent()}_setNumericFormat(){var i;let t="f";const e=this.slotContent.subtype==="duration"?this._durationLevels&&((i=this._durationLevels)==null?void 0:i.length)===1?"numeric":"duration":"numeric";this._maxDurationLevel=Math.min(...this._durationLevels),e==="duration"?(!["time","short","long"].includes(this._durationFormat??"")||this._maxDurationLevel<6&&this._durationFormat==="time")&&(this._durationFormat="short"):(this._displayAs==="general"&&this._commaDecimals?t="z":this._displayAs==="percentage"&&this._commaDecimals?t="y":this._displayAs==="scientific"&&this._commaDecimals?t="w":this._displayAs==="percentage"?t="%":this._displayAs==="scientific"&&(t="s"),this._format=(this._thousandSeparator||this._isAuto?",":"")+"."+this._precision+(this._isAuto?"a":"")+t)}_setAggregationFunc(){const t=this._aggregationFunc,e=this.slotContent.format;if(this._aggregationElement.value!==t){if(this._aggregationFunc=this._aggregationElement.value,t==="rate"){const i=v.decomposeNumericFormat(e),n=["%","y","a%","ay"].includes(i.typeFormat);this.slotContent.subtype==="currency"&&n&&this._setNumericDisplayAs()}this._sendEvent(),(this._aggregationFunc==="rate"||t==="rate")&&this.requestUpdate()}}_setAggregationWeight(){const t=this._aggregationWeightElement.value;if(t==="none")this._aggregationWeightColumn=void 0;else{const e=this.measureColumns.find(i=>i.columnId===t);this._aggregationWeightColumn={column:e==null?void 0:e.columnId,set:e==null?void 0:e.datasetId,columnSubType:e==null?void 0:e.subtype}}this._sendEvent()}_setDurationLevels(){const t=this._durationLevels,e=this._durationLevelsElement.value.split(",").filter(i=>i!=="").map(i=>Number.parseInt(i,10));this._durationLevels=((e==null?void 0:e.length)??0)>=1?e:t,this._maxDurationLevel=Math.min(...this._durationLevels),this._fillTimeDurationLevels(),this._setNumericFormat(),this._sendEvent(),this.requestUpdate()}_setDurationFormat(){var t,e;this._durationFormat=(e=(t=this._durationFormatElement)==null?void 0:t.selected)==null?void 0:e[0],this._fillTimeDurationLevels(),this._setNumericFormat(),this._sendEvent(),this.requestUpdate()}_fillTimeDurationLevels(){if(this._durationFormat==="time"){const t=this._durationLevels.sort().at(-1);if([7,8,9].includes(t)){const e={lev7:[6],lev8:[6,7],lev9:[6,7,8]};for(const i of e["lev"+t])this._durationLevels.includes(i)||this._durationLevels.push(i);this._durationLevels=[...this._durationLevels].sort()}}}willUpdate(t){var e,i,n,a,r;t.has("slotContent")&&(this._parseSavedNumericFormatSettings(),this._aggregationFunc=((e=this.slotContent)==null?void 0:e.aggregationFunc)??((i=this.slotContent)==null?void 0:i.type)==="numeric"?"sum":"count",this._aggregationWeightColumn=(n=this.slotContent)==null?void 0:n.aggregationWeight,this._isFormula=((a=this.slotContent)==null?void 0:a.formula)||((r=this.slotContent)==null?void 0:r.formulaId)),t.has("language")&&this.language!==s.getLocale()&&([...s.targetLocales].includes(this.language??"en")||this.language==="en")&&s.setLocale(this.language)}firstUpdated(){var t;(t=this.slotContent)!=null&&t.duration&&this._durationLevelsOverlay.addEventListener("slottable-request",e=>{this._renderDurationLevelMenu=e.data!==S.a})}_renderDurationLevelsSettings(){const t=N.levels.map(e=>{let i=!1;return this._durationFormat==="time"&&e.level>=6&&this._durationLevels.includes(e.level)&&e.level!==Math.max(...this._durationLevels)&&(i=!0),this._durationLevels.length===1&&this._durationLevels.includes(e.level)&&(i=!0),o.x`<luzmo-menu-item
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../set-locale-5FFfQpVQ.cjs"),b=require("../localized-decorator-ClAOFk8M.cjs");require("../index-uoJRMChX.cjs");require("../index-CnpJUw_z.cjs");require("../index-j8UKjHqY.cjs");require("../index-eHmbYtYG.cjs");require("../index-ROT368zu.cjs");require("../index-C0mIH6sE.cjs");require("../index-BoXbQm2o.cjs");const v=require("../decompose-numeric-format-B3rVVHpO.cjs"),o=require("../property-Dlf9S6Jz.cjs"),f=require("../luzmo-icons-BpFUFRQm.cjs"),S=require("../index-B4EIbvuW.cjs"),A=require("../state-CrfOw8Zp.cjs"),m=require("../query-D5qWDopr.cjs"),F=require("../focusable-_wp5pWO-.cjs"),y=require("../sized-mixin-ZTphZKLm.cjs"),D=":host .settings-container{display:flex;flex-direction:column;gap:var(--luzmo-spacing-2)}:host .settings-row{display:flex;justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-numeric-gap, var(--display-settings-numeric-gap))}.duration-angle-down-icon{margin-inline-start:var(--luzmo-numeric-duration-levels-dropdown-icon-margin-inline-start, var(--numeric-duration-levels-dropdown-icon-margin-inline-start))}:host{--display-settings-numeric-gap: var(--luzmo-spacing-3);--numeric-duration-levels-dropdown-icon-margin-inline-start: var( --luzmo-spacing-2 )}:host([size=s]){--display-settings-numeric-gap: var(--luzmo-spacing-3);--numeric-duration-levels-dropdown-icon-margin-inline-start: var( --luzmo-spacing-1 )}:host([size=l]){--display-settings-numeric-gap: var(--luzmo-spacing-4);--numeric-duration-levels-dropdown-icon-margin-inline-start: var( --luzmo-spacing-3 )}:host([size=xl]){--display-settings-numeric-gap: var(--luzmo-spacing-5);--numeric-duration-levels-dropdown-icon-margin-inline-start: var( --luzmo-spacing-4 )}",$={sum:()=>s.msg("Sum",{desc:"Numeric Aggregation option"}),cumulativesum:()=>s.msg("Cumulative sum",{desc:"Numeric Aggregation option"}),average:()=>s.msg("Average",{desc:"Numeric Aggregation option"}),weightedaverage:()=>s.msg("Weighted average",{desc:"Numeric Aggregation option"}),median:()=>s.msg("Median",{desc:"Numeric Aggregation option"}),count:()=>s.msg("Count",{desc:"Numeric Aggregation option"}),distinctcount:()=>s.msg("Distinct count",{desc:"Numeric Aggregation option"}),min:()=>s.msg("Minimum",{desc:"Numeric Aggregation option"}),max:()=>s.msg("Maximum",{desc:"Numeric Aggregation option"}),stddev:()=>s.msg("Standard deviation",{desc:"Numeric Aggregation option"}),rate:()=>s.msg("Rate",{desc:"Numeric Aggregation option"})},z={general:"123",percentage:"%",scientific:"SI"},L={time:()=>s.msg("Time",{desc:"Time format option"}),short:()=>s.msg("Short",{desc:"Short format option"}),long:()=>s.msg("Long",{desc:"Long format option"})},p={Auto:{auto:!0,label:()=>s.msg("Auto",{desc:"Automatic setting of the option"})},"1,000.00":{auto:!1,label:()=>"1,000.00",thousandSeparator:",",decimalSeparator:"."},"1.000,00":{auto:!1,label:()=>"1.000,00",thousandSeparator:".",decimalSeparator:","},"1000.00":{auto:!1,label:()=>"1000.00",decimalSeparator:"."},"1000,00":{auto:!1,label:()=>"1000,00",decimalSeparator:","}},N={levels:[{level:1,label:"years"},{level:2,label:"quarters"},{level:3,label:"months"},{level:4,label:"weeks"},{level:5,label:"days"},{level:6,label:"hours"},{level:7,label:"minutes"},{level:8,label:"seconds"},{level:9,label:"milliseconds"}]};var C=Object.defineProperty,E=Object.getOwnPropertyDescriptor,l=(h,t,e,i)=>{for(var n=i>1?void 0:i?E(t,e):t,a=h.length-1,r;a>=0;a--)(r=h[a])&&(n=(i?r(t,e,n):r(n))||n);return i&&n&&C(t,e,n),n};exports.LuzmoDisplaySettingsNumeric=class extends y.SizedMixin(F.LuzmoElement,{validSizes:Object.values(y.ElementSizes)}){constructor(){super(...arguments),this.language="en",this.slotContent={},this.measureColumns=[],this._durationLevels=[],this._renderDurationLevelMenu=!1,this._sendEvent=()=>{const t={...this.slotContent};t.format=this._format,t.aggregationFunc=this._aggregationFunc,this._aggregationWeightColumn?t.aggregationWeight={...this._aggregationWeightColumn}:this._aggregationFunc==="rate"&&(t.aggregationFunc="average"),this._displayMode==="duration"?(t.duration=t.duration??{},t.duration.format=this._durationFormat,t.duration.levels=this._durationLevels):delete t.duration,this.dispatchEvent(new CustomEvent("slot-content-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:t}}))}}static get styles(){return[o.r(D)]}_parseSavedNumericFormatSettings(){var t,e,i,n,a,r,g,c,d,_;if(this._displayMode=((t=this.slotContent)==null?void 0:t.subtype)==="duration"?((n=(i=(e=this.slotContent)==null?void 0:e.duration)==null?void 0:i.levels)==null?void 0:n.length)===1?"numeric":"duration":"numeric",this._durationFormat=((r=(a=this.slotContent)==null?void 0:a.duration)==null?void 0:r.format)??"short",this._durationLevels=((c=(g=this.slotContent)==null?void 0:g.duration)==null?void 0:c.levels)??[1],this._displayMode==="duration")this._precision=2,this._commaDecimals=!1,this._thousandSeparator=!1;else{this._format=((d=this.slotContent)==null?void 0:d.format)??".0f";const u=v.decomposeNumericFormat(this._format??".0f");this._isAuto=((_=u.typeFormat)==null?void 0:_.includes("a"))??!1,["%","a%","y","ay"].includes(u.typeFormat)?this._displayAs="percentage":["s","as","w","aw"].includes(u.typeFormat)?this._displayAs="scientific":this._displayAs="general",this._precision=u.precision?Number.parseInt(u.precision.replace(".",""),10):this._displayAs==="scientific"?1:0,this._commaDecimals=["z","az","y","ay","w","aw"].includes(u.typeFormat),this._thousandSeparator=u.comma===",",this._isAuto?this._numericFormatGroup="Auto":this._commaDecimals&&this._thousandSeparator?this._numericFormatGroup="1.000,00":!this._commaDecimals&&this._thousandSeparator?this._numericFormatGroup="1,000.00":this._commaDecimals&&!this._thousandSeparator?this._numericFormatGroup="1000,00":!this._commaDecimals&&!this._thousandSeparator&&(this._numericFormatGroup="1000.00")}}_setNumericDisplayAs(){var t,e;this._displayAs=((e=(t=this._displayAsElement)==null?void 0:t.selected)==null?void 0:e[0])??"general",this._displayAs==="scientific"&&(this._precision=Math.max(this._precision??0,1),this._thousandSeparator=!1),this._setNumericFormat(),this._sendEvent(),this.requestUpdate()}_setNumericSeparators(t){const e=p[(t==null?void 0:t.detail)??"Auto"];this._thousandSeparator=[",","."].includes((e==null?void 0:e.thousandSeparator)??""),this._commaDecimals=(e==null?void 0:e.decimalSeparator)===",",this._isAuto=e==null?void 0:e.auto,this._setNumericFormat(),this._sendEvent()}_setPrecision(){this._precision=this._precisionElement.value,this._setNumericFormat(),this._sendEvent()}_setNumericFormat(){var i;let t="f";const e=this.slotContent.subtype==="duration"?this._durationLevels&&((i=this._durationLevels)==null?void 0:i.length)===1?"numeric":"duration":"numeric";this._maxDurationLevel=Math.min(...this._durationLevels),e==="duration"?(!["time","short","long"].includes(this._durationFormat??"")||this._maxDurationLevel<6&&this._durationFormat==="time")&&(this._durationFormat="short"):(this._displayAs==="general"&&this._commaDecimals?t="z":this._displayAs==="percentage"&&this._commaDecimals?t="y":this._displayAs==="scientific"&&this._commaDecimals?t="w":this._displayAs==="percentage"?t="%":this._displayAs==="scientific"&&(t="s"),this._format=(this._thousandSeparator||this._isAuto?",":"")+"."+this._precision+(this._isAuto?"a":"")+t)}_setAggregationFunc(){const t=this._aggregationFunc,e=this.slotContent.format;if(this._aggregationElement.value!==t){if(this._aggregationFunc=this._aggregationElement.value,t==="rate"){const i=v.decomposeNumericFormat(e),n=["%","y","a%","ay"].includes(i.typeFormat);this.slotContent.subtype==="currency"&&n&&this._setNumericDisplayAs()}this._sendEvent(),(this._aggregationFunc==="rate"||t==="rate")&&this.requestUpdate()}}_setAggregationWeight(){const t=this._aggregationWeightElement.value;if(t==="none")this._aggregationWeightColumn=void 0;else{const e=this.measureColumns.find(i=>i.columnId===t);this._aggregationWeightColumn={column:e==null?void 0:e.columnId,set:e==null?void 0:e.datasetId,columnSubType:e==null?void 0:e.subtype}}this._sendEvent()}_setDurationLevels(){const t=this._durationLevels,e=this._durationLevelsElement.value.split(",").filter(i=>i!=="").map(i=>Number.parseInt(i,10));this._durationLevels=((e==null?void 0:e.length)??0)>=1?e:t,this._maxDurationLevel=Math.min(...this._durationLevels),this._fillTimeDurationLevels(),this._setNumericFormat(),this._sendEvent(),this.requestUpdate()}_setDurationFormat(){var t,e;this._durationFormat=(e=(t=this._durationFormatElement)==null?void 0:t.selected)==null?void 0:e[0],this._fillTimeDurationLevels(),this._setNumericFormat(),this._sendEvent(),this.requestUpdate()}_fillTimeDurationLevels(){if(this._durationFormat==="time"){const t=this._durationLevels.sort().at(-1);if([7,8,9].includes(t)){const e={lev7:[6],lev8:[6,7],lev9:[6,7,8]};for(const i of e["lev"+t])this._durationLevels.includes(i)||this._durationLevels.push(i);this._durationLevels=[...this._durationLevels].sort()}}}willUpdate(t){var e,i,n,a,r;t.has("slotContent")&&(this._parseSavedNumericFormatSettings(),this._aggregationFunc=((e=this.slotContent)==null?void 0:e.aggregationFunc)??((i=this.slotContent)==null?void 0:i.type)==="numeric"?"sum":"count",this._aggregationWeightColumn=(n=this.slotContent)==null?void 0:n.aggregationWeight,this._isFormula=((a=this.slotContent)==null?void 0:a.formula)||((r=this.slotContent)==null?void 0:r.formulaId)),t.has("language")&&this.language!==s.getLocale()&&([...s.targetLocales].includes(this.language??"en")||this.language==="en")&&s.setLocale(this.language)}firstUpdated(){var t;(t=this.slotContent)!=null&&t.duration&&this._durationLevelsOverlay.addEventListener("slottable-request",e=>{this._renderDurationLevelMenu=e.data!==S.a})}_renderDurationLevelsSettings(){const t=N.levels.map(e=>{let i=!1;return this._durationFormat==="time"&&e.level>=6&&this._durationLevels.includes(e.level)&&e.level!==Math.max(...this._durationLevels)&&(i=!0),this._durationLevels.length===1&&this._durationLevels.includes(e.level)&&(i=!0),o.x`<luzmo-menu-item
21
21
  value=${e.level}
22
22
  ?selected=${this._durationLevels.includes(e.level)}
23
23
  ?disabled=${i}
@@ -31,7 +31,7 @@
31
31
  ${this._durationLevels.length}
32
32
  ${this._durationLevels.length===1?"level":"levels"} active
33
33
  <span class="duration-angle-down-icon">
34
- ${f.O2(f.T)}
34
+ ${f.p3(f.T)}
35
35
  </span>
36
36
  </luzmo-action-button>
37
37
  <luzmo-overlay
@@ -19,16 +19,16 @@
19
19
  * */
20
20
  import { m as s, g as x, t as A, s as L } from "../set-locale-DAGnJZD8.js";
21
21
  import { l as F } from "../localized-decorator-DGnMToFa.js";
22
- import "../index-rQxtPaJl.js";
22
+ import "../index-DDR_JmOh.js";
23
23
  import "../index-BHJH1eGn.js";
24
24
  import "../index-CsDgk_sj.js";
25
- import "../index-DfTZDl-O.js";
26
- import "../index-Desl7GJ0.js";
27
- import "../index-CpQnVCVV.js";
25
+ import "../index-0AQhhYNR.js";
26
+ import "../index-jlphu2Tm.js";
27
+ import "../index-D5asknFy.js";
28
28
  import "../index-CTVNGPeT.js";
29
29
  import { d as v } from "../decompose-numeric-format-BuZcjH2k.js";
30
30
  import { r as S, x as a, E as $, n as f } from "../property-CxtZroGf.js";
31
- import { a3 as D, a9 as w } from "../luzmo-icons-CPucBq6e.js";
31
+ import { a3 as D, a9 as w } from "../luzmo-icons-BZPchcMw.js";
32
32
  import { a as C } from "../index-Dh6CgbzT.js";
33
33
  import { r as N } from "../state-BVYsk_HZ.js";
34
34
  import { e as d } from "../query-Ddbd72Um.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 t=require("../set-locale-5FFfQpVQ.cjs"),C=require("../localized-decorator-ClAOFk8M.cjs"),p=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-Cltytvm7.cjs");require("../index-CBOAQ3-E.cjs");require("../index-D07V2c7z.cjs");const L=require("../decompose-numeric-format-B3rVVHpO.cjs"),s=require("../property-Dlf9S6Jz.cjs"),E=require("../state-CrfOw8Zp.cjs"),z=require("../query-D5qWDopr.cjs"),$=require("../focusable-_wp5pWO-.cjs"),y=require("../sized-mixin-ZTphZKLm.cjs");/*! * Lucero - The design system for Luzmo.
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../set-locale-5FFfQpVQ.cjs"),C=require("../localized-decorator-ClAOFk8M.cjs"),p=require("../luzmo-icons-NEyaMpEM-1fxXxs3F.cjs"),i=require("../base-D76d76ww-tT6yr8eb.cjs"),_=require("../checkbox-mixin-Do7EgtpQ-D3m-dMTI.cjs");require("../index-j8UKjHqY.cjs");require("../index-eHmbYtYG.cjs");require("../index-ROT368zu.cjs");require("../index-C0mIH6sE.cjs");const L=require("../decompose-numeric-format-B3rVVHpO.cjs"),s=require("../property-Dlf9S6Jz.cjs"),E=require("../state-CrfOw8Zp.cjs"),z=require("../query-D5qWDopr.cjs"),$=require("../focusable-_wp5pWO-.cjs"),y=require("../sized-mixin-ZTphZKLm.cjs");/*! * Lucero - The design system for Luzmo.
21
21
  *
22
22
  * Copyright © 2025 Luzmo
23
23
  * All rights reserved.