@luzmo/analytics-components-kit 1.0.1-alpha.38 → 1.0.1-alpha.39
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.
- package/components/{calculate-data-item-icon-BpMATs29.cjs → calculate-data-item-icon-Bygfq3KO.cjs} +1 -1
- package/components/{calculate-data-item-icon-BPZYysi7.js → calculate-data-item-icon-DlyGQVBA.js} +1 -1
- package/components/{de-CCq00pbq.js → de-BbcctJsI.js} +7 -0
- package/components/de-eIqMhTVC.cjs +20 -0
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +9 -9
- package/components/display-settings-binning/index.cjs +1 -1
- package/components/display-settings-binning/index.js +10 -10
- package/components/display-settings-datetime/index.cjs +1 -1
- package/components/display-settings-datetime/index.js +12 -12
- package/components/display-settings-grand-totals/index.cjs +1 -1
- package/components/display-settings-grand-totals/index.js +10 -10
- package/components/display-settings-numeric/index.cjs +1 -1
- package/components/display-settings-numeric/index.js +12 -12
- package/components/display-settings-period-over-period/index.cjs +1 -1
- package/components/display-settings-period-over-period/index.js +10 -10
- package/components/draggable-data-item/index.cjs +1 -1
- package/components/draggable-data-item/index.js +6 -6
- package/components/draggable-data-item-level/index.cjs +1 -1
- package/components/draggable-data-item-level/index.js +8 -8
- package/components/droppable-slot/index.cjs +1 -1
- package/components/droppable-slot/index.js +9 -9
- package/components/edit-item/index.cjs +5 -5
- package/components/edit-item/index.js +5 -5
- package/components/edit-option/index.cjs +1 -1
- package/components/edit-option/index.js +1 -1
- package/components/edit-option-action-button-group/index.cjs +1 -1
- package/components/edit-option-action-button-group/index.js +5 -5
- package/components/{edit-option-base-J7XNb_vp.cjs → edit-option-base-B7owFMOO.cjs} +1 -1
- package/components/{edit-option-base-BHvx3Mlq.js → edit-option-base-Cw2iO2Av.js} +4 -4
- package/components/edit-option-color-picker/index.cjs +30 -30
- package/components/edit-option-color-picker/index.js +6 -6
- package/components/edit-option-multi-language-field/index.cjs +1 -1
- package/components/edit-option-multi-language-field/index.js +3 -3
- package/components/edit-option-number-field/index.cjs +1 -1
- package/components/edit-option-number-field/index.js +3 -3
- package/components/edit-option-picker/index.cjs +1 -1
- package/components/edit-option-picker/index.js +4 -4
- package/components/edit-option-position-picker/index.cjs +1 -1
- package/components/edit-option-position-picker/index.js +3 -3
- package/components/edit-option-positions-number-field/index.cjs +1 -1
- package/components/edit-option-positions-number-field/index.js +5 -5
- package/components/edit-option-radio-button-group/index.cjs +1 -1
- package/components/edit-option-radio-button-group/index.js +3 -3
- package/components/edit-option-slider/index.cjs +1 -1
- package/components/edit-option-slider/index.js +2 -2
- package/components/edit-option-switch/index.cjs +1 -1
- package/components/edit-option-switch/index.js +2 -2
- package/components/edit-option-text-field/index.cjs +1 -1
- package/components/edit-option-text-field/index.js +3 -3
- package/components/{es-DBmbFw-L.js → es-ByWFTJ0s.js} +7 -0
- package/components/es-tWaYVbsQ.cjs +20 -0
- package/components/filter-data-item-picker/index.cjs +1 -1
- package/components/filter-data-item-picker/index.js +7 -7
- package/components/filter-expression-picker/index.cjs +1 -1
- package/components/filter-expression-picker/index.js +1 -1
- package/components/filter-item/index.cjs +1 -1
- package/components/filter-item/index.js +6 -6
- package/components/filter-value-picker/index.cjs +1 -1
- package/components/filter-value-picker/index.js +3 -3
- package/components/filter-value-picker-datetime/index.cjs +8 -8
- package/components/filter-value-picker-datetime/index.js +12 -12
- package/components/filter-value-picker-hierarchy/index.cjs +1 -1
- package/components/filter-value-picker-hierarchy/index.js +8 -7
- package/components/filter-value-picker-numeric/index.cjs +1 -1
- package/components/filter-value-picker-numeric/index.js +7 -7
- package/components/{focusable-_wp5pWO-.cjs → focusable-BTJYY_Mf.cjs} +1 -1
- package/components/{focusable-DB6Uhr-C.js → focusable-BXhQz3_k.js} +1 -1
- package/components/fr-2igiTsHU.cjs +20 -0
- package/components/{fr-BOwMikLT.js → fr-C5b2Wgoz.js} +7 -0
- package/components/get-css-variable-BEYG097C.js +1446 -0
- package/components/get-css-variable-BZxY4IOa.cjs +35 -0
- package/components/grid/actions.d.ts +21 -0
- package/components/grid/default-actions.d.ts +14 -0
- package/components/grid/grid-item-actions-menu.d.ts +35 -0
- package/components/grid/grid.d.ts +165 -0
- package/components/grid/index.cjs +326 -0
- package/components/grid/index.d.ts +10 -0
- package/components/grid/index.js +8948 -0
- package/components/{if-defined-DqthfJme.cjs → if-defined-Bulnuz1A.cjs} +1 -1
- package/components/{if-defined-B4gwZxx6.js → if-defined-CTc4c9nr.js} +1 -1
- package/components/{index-BNBJLKST.js → index-BC1LV3vH.js} +1 -1
- package/components/{index-BlLF9xYw.js → index-BNwJ9moR.js} +5 -5
- package/components/{index-DJKhZGty.cjs → index-B_dW2-QA.cjs} +14 -14
- package/components/{index-5mZhN-HJ.js → index-BiY07GvX.js} +4 -4
- package/components/{index-Dh6CgbzT.js → index-Boxjo5I0.js} +79 -79
- package/components/{index-uoJRMChX.cjs → index-C2PPSv8E.cjs} +2 -2
- package/components/{index-BhpqKmwq.cjs → index-CAJRL5rT.cjs} +1 -1
- package/components/{index-ROT368zu.cjs → index-CBOAQ3-E.cjs} +5 -5
- package/components/{index-eHmbYtYG.cjs → index-CT2vEcpn.cjs} +2 -2
- package/components/{index-C0mIH6sE.cjs → index-CaVIv7B9.cjs} +1 -1
- package/components/{index-DFe4VuxB.js → index-CbuHBIDB.js} +2 -2
- package/components/index-CcDZIqpD.cjs +192 -0
- package/components/index-CcLRp9ao.js +1685 -0
- package/components/{index-0AQhhYNR.js → index-Ciad94jH.js} +4 -4
- package/components/index-CpGRysX_.js +691 -0
- package/components/{index-COiTyPcJ.cjs → index-CzRmB9z3.cjs} +1 -1
- package/components/{index-CyAospmR.js → index-DE3d0E0P.js} +2 -2
- package/components/index-DFHExzGq.cjs +20 -0
- package/components/{index-BHXq1-M1.cjs → index-DQbl3h5H.cjs} +1 -1
- package/components/{index-CKenYdIM.cjs → index-DSQyBS9Z.cjs} +1 -1
- package/components/{index-jlphu2Tm.js → index-Desl7GJ0.js} +2 -2
- package/components/index-GgkqKtE6.cjs +20 -0
- package/components/{index-BFPa6sJd.js → index-Jmmy73Aq.js} +1 -1
- package/components/{index-B0rH2mr9.cjs → index-Tx5oQjbt.cjs} +1 -1
- package/components/{index-5UNCjfdE.js → index-UWOCtc0Y.js} +6 -6
- package/components/{index-C7pagyza.cjs → index-cHKqEi5-.cjs} +3 -3
- package/components/{index-DDR_JmOh.js → index-rQxtPaJl.js} +1 -1
- package/components/{index-D5asknFy.js → index-sCesmw8l.js} +5 -5
- package/components/index.cjs +1 -1
- package/components/index.js +25 -21
- package/components/item-list.cjs +1 -1
- package/components/item-list.js +267 -46
- package/components/item-menu/item-list/item-list.d.ts +2 -0
- package/components/{localized-decorator-DGnMToFa.js → localized-decorator-DNr1P1m0.js} +1 -1
- package/components/{localized-decorator-ClAOFk8M.cjs → localized-decorator-SOrjcPab.cjs} +1 -1
- package/components/luzmo-icons-DAsjNJNI.cjs +31 -0
- package/components/{luzmo-icons-BZPchcMw.js → luzmo-icons-DEoJcvoL.js} +145 -113
- package/components/{luzmo-icons-NEyaMpEM-1fxXxs3F.cjs → luzmo-icons-DbwDQtuO-DSQ-uVxy.cjs} +2 -2
- package/components/{luzmo-icons-NEyaMpEM-DbyDs_5B.js → luzmo-icons-DbwDQtuO-QG0fLECn.js} +9 -9
- package/components/{nl-CY0iO3Ch.js → nl-76jn_zMH.js} +7 -0
- package/components/nl-B50x7wMn.cjs +20 -0
- package/components/{pending-state-DTX7ggyF-B_9VbFxI.js → pending-state-DTX7ggyF-D1SvcIIz.js} +2 -2
- package/components/{pending-state-DTX7ggyF-C_go9EJh.cjs → pending-state-DTX7ggyF-DZzxjogp.cjs} +1 -1
- package/components/{periods.const-D2cMP5hH.js → periods.const-C89NNRX-.js} +1 -1
- package/components/{periods.const-BbgInj9J.cjs → periods.const-CfXsouLz.cjs} +1 -1
- package/components/{property-Dlf9S6Jz.cjs → property-BCb4Kybn.cjs} +7 -7
- package/components/{property-CxtZroGf.js → property-Dn4zSyxu.js} +46 -36
- package/components/query-all-CR2wWKRD.cjs +24 -0
- package/components/query-all-Ddzx2fEK.js +34 -0
- package/components/{set-locale-5FFfQpVQ.cjs → set-locale-Cam8nRIW.cjs} +1 -1
- package/components/{set-locale-DAGnJZD8.js → set-locale-DbEAMqUs.js} +1 -1
- package/components/{sized-mixin-ZTphZKLm.cjs → sized-mixin-BNtmplgF.cjs} +1 -1
- package/components/{sized-mixin-C7R5uRbF.js → sized-mixin-BR_Ii7le.js} +1 -1
- package/components/slot-menu/index.cjs +1 -1
- package/components/slot-menu/index.js +4 -4
- package/components/slot-menu-list/index.cjs +2 -6
- package/components/slot-menu-list/index.js +59 -70
- package/components/{state-CrfOw8Zp.cjs → state-BxZEcclm.cjs} +1 -1
- package/components/{state-BVYsk_HZ.js → state-vVJlsarL.js} +1 -1
- package/components/{task-DH8UFyxP.js → task-PQaVY8Iw.js} +1 -1
- package/components/{task-CdvrMX8r.cjs → task-qPJdeXO1.cjs} +1 -1
- package/components/{text-field-B9IkRRxO-CRU1UGaM.cjs → text-field-BIADXoLC-B8w9TVmS.cjs} +1 -1
- package/components/{text-field-B9IkRRxO-CWWQN_rn.js → text-field-BIADXoLC-B9oE05VF.js} +1 -1
- package/components/utils.cjs +1 -1
- package/components/utils.js +56 -472
- package/custom-elements.json +491 -0
- package/index.d.ts +1 -0
- package/package.json +6 -1
- package/utils/filters/expressions.d.ts +1 -1
- package/utils/themes/bliss.d.ts +43 -0
- package/utils/themes/classic-dark.d.ts +34 -0
- package/utils/themes/classic.d.ts +43 -0
- package/utils/themes/default-dark.d.ts +46 -0
- package/utils/themes/default.d.ts +46 -0
- package/utils/themes/index.d.ts +121 -120
- package/utils/themes/orion.d.ts +44 -0
- package/utils/themes/pinky.d.ts +42 -0
- package/utils/themes/radiant.d.ts +42 -0
- package/utils/themes/royale.d.ts +36 -0
- package/utils/themes/seasonal.d.ts +43 -0
- package/utils/themes/urban.d.ts +44 -0
- package/utils/themes/vivid.d.ts +42 -0
- package/components/de-DcZysUyZ.cjs +0 -20
- package/components/es-CGiBfBKJ.cjs +0 -20
- package/components/fr-DZbYwMlh.cjs +0 -20
- package/components/index-B4EIbvuW.cjs +0 -192
- package/components/luzmo-icons-BpFUFRQm.cjs +0 -31
- package/components/nl-0V96M02q.cjs +0 -20
package/components/{calculate-data-item-icon-BpMATs29.cjs → calculate-data-item-icon-Bygfq3KO.cjs}
RENAMED
@@ -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-
|
20
|
+
"use strict";const e=require("./luzmo-icons-DAsjNJNI.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;
|
package/components/{calculate-data-item-icon-BPZYysi7.js → calculate-data-item-icon-DlyGQVBA.js}
RENAMED
@@ -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
|
-
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-
|
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-DEoJcvoL.js";
|
21
21
|
const r = {
|
22
22
|
array: {
|
23
23
|
s: g,
|
@@ -55,6 +55,7 @@ const e = {
|
|
55
55
|
s3c6455b19fb1c3e4: "Absoluter Wechsel",
|
56
56
|
s3dcf7b255596a2c3: "Standardabweichung",
|
57
57
|
s441accd1cd3484c9: "Minute",
|
58
|
+
s463b8c4e92751ba5: "Optionen",
|
58
59
|
s467b030b9a34b3c8: "Durchschnitt",
|
59
60
|
s48e186fb300e5464: "Zeit",
|
60
61
|
s496c60f73bdf5725: "Aggregation",
|
@@ -62,13 +63,16 @@ const e = {
|
|
62
63
|
s4b58c01e2578f5e4: "Legende",
|
63
64
|
s4e585eeea351a038: "enthält",
|
64
65
|
s4efbcab48a433013: "Lang",
|
66
|
+
s4f27f6b48a68b5c2: "Sperren",
|
65
67
|
s519d0aa80bbafd42: "Woche bis heute",
|
66
68
|
s57ace73e7c6e719f: "ist nicht in",
|
67
69
|
s58ec693e33483873: "kleiner als",
|
68
70
|
s5d929ff1619ac0c9: "Suchen",
|
71
|
+
s5e2654fb8587f442: "Duplizieren",
|
69
72
|
s602805b1eb3106c6: "Y-Achse",
|
70
73
|
s6031881827829901: "24h",
|
71
74
|
s60b34c3c17dc35bd: "Jahre",
|
75
|
+
s64ef2a6c2dd1d3d1: "Bearbeiten",
|
72
76
|
s66722bc2ea775e05: "Deaktiviert",
|
73
77
|
s669b18c6d2d9c95b: "Keine",
|
74
78
|
s66dcbbc0355c2759: "Sonntag",
|
@@ -102,6 +106,8 @@ const e = {
|
|
102
106
|
sa6ab5184d6315895: "Von",
|
103
107
|
sa6f2645578b2d2bc: "Jahr",
|
104
108
|
sa7effa06c0f6784c: "größer als",
|
109
|
+
sa8beb6b1182241ac: "Filter",
|
110
|
+
sac8256732f2ee1e5: "Daten",
|
105
111
|
sac8b59943205b14f: "nächste volle (Periode)",
|
106
112
|
sac94bb71f7737997: "Median",
|
107
113
|
sacae74732f544fca: "Tage",
|
@@ -128,6 +134,7 @@ const e = {
|
|
128
134
|
sd66a74fff07a11fb: "{count} elemente ausgewählt",
|
129
135
|
sd7ebafacf602c9bd: "Brief",
|
130
136
|
sdb73788b3c975f16: "Automatisch",
|
137
|
+
sdc673e73b5c13aea: "Löschen",
|
131
138
|
sdfeb2151b9e78d4d: "enthält nicht",
|
132
139
|
se0955919920ee87d: "Tag",
|
133
140
|
se211e3d21bbf3bff: "Maß",
|
@@ -0,0 +1,20 @@
|
|
1
|
+
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
2
|
+
*
|
3
|
+
* Copyright © 2025 Luzmo
|
4
|
+
* All rights reserved.
|
5
|
+
* Luzmo web components (“Luzmo Web Components”)
|
6
|
+
* must be used according to the Luzmo Terms of Service.
|
7
|
+
* This license allows users with a current active Luzmo account
|
8
|
+
* to use the Luzmo Web Components. This license terminates
|
9
|
+
* automatically if a user no longer has an active Luzmo account.
|
10
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
11
|
+
*
|
12
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
14
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
15
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
16
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
17
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
|
+
* SOFTWARE.
|
19
|
+
* */
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={s00decbd8fed4f501:"Maximum",s0456d2ad905847d9:"letzte",s079a052719914d71:"Kategorie",s08098b07b4c86ff2:"<=",s08108707b4ce87d4:">=",s088e3b07b5394bc3:"gleich",s099b18e1bd8a1154:"Stunden",s09c2b609dff29061:"Kumulative Summe",s0acece4c687177a9:"Quartalsnummern",s0bb151c9319a6813:"X-Achse",s0bca0c91195d8d6d:"enth",s1125d159f7e64df5:"Anzeigen",s11326fd2590f4e5e:"Standard",s122f7f3f1a22ea50:"nicht gleich",s13f5793e33ebda4f:"zwischen",s146475c4daa430ed:"Dezimalstellen",s178b06f4d02cfd40:"fehlt nicht",s184501a399a815dc:"Quartale",s18498398aeb37b07:"Woche beginnt am",s187528426100c44e:"Keine Daten",s1cdb6b07fe827486:"Wochennummer",s1e593719b55d60c0:"MTD",s1f0916624a87d415:"Tag im Jahr",s2454d1f117573457:"Genauigkeit",s247d110f13a3a288:"Tag in der Woche",s26273c258ddde0e1:"Auswählen...",s2695506122ffd614:"Sekunde in der Minute",s2718cebf7de190e1:"ist zwischen",s2798d16f4e04857e:"Minute in der Stunde",s281f1d977ddc0ebe:"Monatsnummer",s2ea38ce3da088075:"Perioden",s2fb2a49481123d6a:"Wochen",s2fedf26ef08343d4:"ist gleich",s3924c3d773a80312:"letzte verfügbar",s3c6455b19fb1c3e4:"Absoluter Wechsel",s3dcf7b255596a2c3:"Standardabweichung",s441accd1cd3484c9:"Minute",s463b8c4e92751ba5:"Optionen",s467b030b9a34b3c8:"Durchschnitt",s48e186fb300e5464:"Zeit",s496c60f73bdf5725:"Aggregation",s4b30fad1c34464e1:"größer oder gleich",s4b58c01e2578f5e4:"Legende",s4e585eeea351a038:"enthält",s4efbcab48a433013:"Lang",s4f27f6b48a68b5c2:"Sperren",s519d0aa80bbafd42:"Woche bis heute",s57ace73e7c6e719f:"ist nicht in",s58ec693e33483873:"kleiner als",s5d929ff1619ac0c9:"Suchen",s5e2654fb8587f442:"Duplizieren",s602805b1eb3106c6:"Y-Achse",s6031881827829901:"24h",s60b34c3c17dc35bd:"Jahre",s64ef2a6c2dd1d3d1:"Bearbeiten",s66722bc2ea775e05:"Deaktiviert",s669b18c6d2d9c95b:"Keine",s66dcbbc0355c2759:"Sonntag",s680f01021b5e339d:"Woche",s6b0bffd88024372f:"Stunde",s708bbac083d05109:"beginnt nicht mit",s70a773eb3133e5fa:"Monat bis heute",s716a6024e3fe999c:"Zeigen",s71a5c9f4b68ef4d4:"Zählen",s740d7e8b131e9e97:"Gewichteter Durchschnitt",s74dcd519e6563a26:"WTD",s7632fc9aa12bf382:"Monate",s7a6878d41ffac284:"letzte abgeschl",s846876f9b712e843:"ist nicht gleich",s862f5319f0256b94:"QTD",s8665d029b5cb8b24:"Gesamtsummen",s8a56a8c8bd19c9c7:"fehlt",s8d0259032729869d:"Sekunde",s965c503c3e42fdfe:"Aktiviert",s9689e928323dc124:"letzte abgeschlossene (Periode)",s981f232bd33ec927:"Rate",s9854300ef4a37d18:"endet nicht mit",s987abe19fac8d108:"Summe",s98c337186f2d57c6:"Bin-Breite",s98db41a3eb532203:"Jahr bis heute",s991d216e6efc157c:"Keine Ergebnisse",s996319f23f6cf0b5:"endet mit",s9b9009d4a5004fb8:"Binning",s9b9d6ce29d05a298:"kleiner oder gleich",sa3c9339de23c1752:"Format",sa6ab5184d6315895:"Von",sa6f2645578b2d2bc:"Jahr",sa7effa06c0f6784c:"größer als",sa8beb6b1182241ac:"Filter",sac8256732f2ee1e5:"Daten",sac8b59943205b14f:"nächste volle (Periode)",sac94bb71f7737997:"Median",sacae74732f544fca:"Tage",saf63b34c8601a6e1:">",sb1f654608a3eea75:"Wochentag",sb3b793ff5cc1bc39:"nächste (x) Perioden",sb47daaf9e1c4a905:"Monat",sb5b295e3a7500b9c:"Dauerstufen",sb6513caf69971fb5:"Kurz",sb70671db5700ff60:"endet nicht mit",sb93e5af29aca2e3d:"fehlt",sbbb97b1c63507dc0:"Zahl",sbeebe911264bed23:"letzte (x) verfügbare Perioden",sc1bf67624fa6d498:"% Änderung",sc27dc998602cdc61:"Beispiel:",sc4842e5b8b90466a:"Sekunden",sc6e49f3d37e54030:"Stunde im Tag",sc6f5a4fc0583d734:"ist in",scb7bab1a17663a6c:"YTD",scf2bb2b0de9cdb8a:"Millisekunde",sd237be440de38cc7:"Quartal",sd28141a332dc31fa:"Tag im Monat",sd5b1040899eb149d:"nächste voll",sd66a74fff07a11fb:"{count} elemente ausgewählt",sd7ebafacf602c9bd:"Brief",sdb73788b3c975f16:"Automatisch",sdc673e73b5c13aea:"Löschen",sdfeb2151b9e78d4d:"enthält nicht",se0955919920ee87d:"Tag",se211e3d21bbf3bff:"Maß",se2b7530e30fa607d:"Periodenvergleich",se415bbea6c976fb1:"Gruppieren nach",se5316cbaa025f028:"nächste",se715be190539325a:"vor",se8e9d799a9e267ce:"Unterschiedliche Zählung",se9e535bb9591039e:"Ausdruck auswählen",se9ff6e9a514d8cf9:"Montag",seb4eae68d45315b7:"Minimum",seb9c440de1ce6044:"beginnt mit",sec2f608650e36ac5:"letzte abgeschlossene Periode",secf42ec1c7c47be2:"fehlt nicht",see0ec27fb03d880e:"Minuten",sef49aec68fd1dc66:"Name",sf518b78d9734f57b:"beginnt nicht mit",sf6cda8263b3170af:"Verwenden Sie den Zeitraum bis heute für unvollständige Zeiträume",sf70eaf9ab4c93082:"nicht enth",sf9c10516a62a23db:"Anzeigen als",sfa2d0aa30ee5aa58:"letzte (x) Perioden",sfad9ed343e97551c:"Vergangener Wert",sfbac36245480ddbc:"Trennzeichen",sfda1c9d0be35cec8:"Quartal bis heute"};exports.templates=e;
|
@@ -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-
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../task-qPJdeXO1.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-BCb4Kybn.cjs"),c=require("../state-BxZEcclm.cjs"),m=require("../query-D5qWDopr.cjs"),a=require("../luzmo-icons-DAsjNJNI.cjs"),v=require("../focusable-BTJYY_Mf.cjs"),g=require("../sized-mixin-BNtmplgF.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">
|
@@ -17,19 +17,19 @@
|
|
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 { h as g } from "../task-
|
20
|
+
import { h as g } from "../task-PQaVY8Iw.js";
|
21
21
|
import "../index-CskV_bXp.js";
|
22
22
|
import "../index-CsDgk_sj.js";
|
23
|
-
import "../index-
|
24
|
-
import "../index-
|
23
|
+
import "../index-BC1LV3vH.js";
|
24
|
+
import "../index-CbuHBIDB.js";
|
25
25
|
import "../index-C3N6qTxJ.js";
|
26
|
-
import "../index-
|
27
|
-
import { r as p, x as n, n as s } from "../property-
|
28
|
-
import { r as z } from "../state-
|
26
|
+
import "../index-DE3d0E0P.js";
|
27
|
+
import { r as p, x as n, n as s } from "../property-Dn4zSyxu.js";
|
28
|
+
import { r as z } from "../state-vVJlsarL.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-
|
31
|
-
import { L as f } from "../focusable-
|
32
|
-
import { S as y, E as x } from "../sized-mixin-
|
30
|
+
import { a3 as m, a5 as v, a6 as b } from "../luzmo-icons-DEoJcvoL.js";
|
31
|
+
import { L as f } from "../focusable-BXhQz3_k.js";
|
32
|
+
import { S as y, E as x } from "../sized-mixin-BR_Ii7le.js";
|
33
33
|
const c = () => {
|
34
34
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
35
35
|
const l = document.createElement("style");
|
@@ -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-
|
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-BCb4Kybn.cjs"),t=require("../set-locale-Cam8nRIW.cjs"),c=require("../localized-decorator-SOrjcPab.cjs"),d=require("../luzmo-icons-DAsjNJNI.cjs"),h=require("../state-BxZEcclm.cjs"),b=require("../query-D5qWDopr.cjs"),p=require("../focusable-BTJYY_Mf.cjs"),u=require("../sized-mixin-BNtmplgF.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
|
>
|
@@ -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-
|
20
|
+
import "../index-rQxtPaJl.js";
|
21
21
|
import "../index-CsDgk_sj.js";
|
22
|
-
import "../index-
|
23
|
-
import "../index-
|
24
|
-
import { r as z, x as m, n as c } from "../property-
|
25
|
-
import { g, t as b, s as p, m as s } from "../set-locale-
|
26
|
-
import { l as h } from "../localized-decorator-
|
27
|
-
import { v as f, z as v } from "../luzmo-icons-
|
28
|
-
import { r as x } from "../state-
|
22
|
+
import "../index-BC1LV3vH.js";
|
23
|
+
import "../index-Desl7GJ0.js";
|
24
|
+
import { r as z, x as m, n as c } from "../property-Dn4zSyxu.js";
|
25
|
+
import { g, t as b, s as p, m as s } from "../set-locale-DbEAMqUs.js";
|
26
|
+
import { l as h } from "../localized-decorator-DNr1P1m0.js";
|
27
|
+
import { v as f, z as v } from "../luzmo-icons-DEoJcvoL.js";
|
28
|
+
import { r as x } from "../state-vVJlsarL.js";
|
29
29
|
import { e as y } from "../query-Ddbd72Um.js";
|
30
|
-
import { L as w } from "../focusable-
|
31
|
-
import { S as _, E } from "../sized-mixin-
|
30
|
+
import { L as w } from "../focusable-BXhQz3_k.js";
|
31
|
+
import { S as _, E } from "../sized-mixin-BR_Ii7le.js";
|
32
32
|
const d = () => {
|
33
33
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
34
34
|
const o = document.createElement("style");
|
@@ -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-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}>
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../task-qPJdeXO1.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-CaVIv7B9.cjs");require("../index-BKwbYw6x.cjs");const s=require("../property-BCb4Kybn.cjs"),i=require("../set-locale-Cam8nRIW.cjs"),f=require("../localized-decorator-SOrjcPab.cjs"),d=require("../luzmo-icons-DAsjNJNI.cjs"),m=require("../formatter-DiJYkB6b.cjs"),h=require("../periods.const-CfXsouLz.cjs"),l=require("../query-D5qWDopr.cjs"),y=require("../focusable-BTJYY_Mf.cjs"),p=require("../sized-mixin-BNtmplgF.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"
|
@@ -17,23 +17,23 @@
|
|
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 { h as S } from "../task-
|
21
|
-
import "../index-
|
20
|
+
import { h as S } from "../task-PQaVY8Iw.js";
|
21
|
+
import "../index-rQxtPaJl.js";
|
22
22
|
import "../index-BHJH1eGn.js";
|
23
23
|
import "../index-CsDgk_sj.js";
|
24
|
-
import "../index-
|
25
|
-
import "../index-
|
26
|
-
import "../index-
|
24
|
+
import "../index-BC1LV3vH.js";
|
25
|
+
import "../index-Desl7GJ0.js";
|
26
|
+
import "../index-sCesmw8l.js";
|
27
27
|
import "../index-C3N6qTxJ.js";
|
28
|
-
import { r as k, x as a, n as d } from "../property-
|
29
|
-
import { m as i, g as x, t as w, s as F } from "../set-locale-
|
30
|
-
import { l as $ } from "../localized-decorator-
|
31
|
-
import { v as p, z as c } from "../luzmo-icons-
|
28
|
+
import { r as k, x as a, n as d } from "../property-Dn4zSyxu.js";
|
29
|
+
import { m as i, g as x, t as w, s as F } from "../set-locale-DbEAMqUs.js";
|
30
|
+
import { l as $ } from "../localized-decorator-DNr1P1m0.js";
|
31
|
+
import { v as p, z as c } from "../luzmo-icons-DEoJcvoL.js";
|
32
32
|
import { S as _, f, D as v } from "../formatter-CQDms6fU.js";
|
33
|
-
import { a as A, b as z, W as g } from "../periods.const-
|
33
|
+
import { a as A, b as z, W as g } from "../periods.const-C89NNRX-.js";
|
34
34
|
import { e as n } from "../query-Ddbd72Um.js";
|
35
|
-
import { L } from "../focusable-
|
36
|
-
import { S as D, E } from "../sized-mixin-
|
35
|
+
import { L } from "../focusable-BXhQz3_k.js";
|
36
|
+
import { S as D, E } from "../sized-mixin-BR_Ii7le.js";
|
37
37
|
const b = () => {
|
38
38
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
39
39
|
const t = document.createElement("style");
|
@@ -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-
|
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-BCb4Kybn.cjs"),n=require("../set-locale-Cam8nRIW.cjs"),c=require("../localized-decorator-SOrjcPab.cjs"),g=require("../luzmo-icons-DAsjNJNI.cjs"),p=require("../state-BxZEcclm.cjs"),m=require("../if-defined-Bulnuz1A.cjs"),z=require("../focusable-BTJYY_Mf.cjs"),u=require("../sized-mixin-BNtmplgF.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"
|
@@ -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-
|
20
|
+
import "../index-rQxtPaJl.js";
|
21
21
|
import "../index-CsDgk_sj.js";
|
22
|
-
import "../index-
|
23
|
-
import { r as d, x as z, n as m } from "../property-
|
24
|
-
import { g, t as p, s as b, m as u } from "../set-locale-
|
25
|
-
import { l as f } from "../localized-decorator-
|
26
|
-
import { v as h, z as v } from "../luzmo-icons-
|
27
|
-
import { r as x } from "../state-
|
28
|
-
import { o as y } from "../if-defined-
|
29
|
-
import { L as w } from "../focusable-
|
30
|
-
import { S as _, E as C } from "../sized-mixin-
|
22
|
+
import "../index-BC1LV3vH.js";
|
23
|
+
import { r as d, x as z, n as m } from "../property-Dn4zSyxu.js";
|
24
|
+
import { g, t as p, s as b, m as u } from "../set-locale-DbEAMqUs.js";
|
25
|
+
import { l as f } from "../localized-decorator-DNr1P1m0.js";
|
26
|
+
import { v as h, z as v } from "../luzmo-icons-DEoJcvoL.js";
|
27
|
+
import { r as x } from "../state-vVJlsarL.js";
|
28
|
+
import { o as y } from "../if-defined-CTc4c9nr.js";
|
29
|
+
import { L as w } from "../focusable-BXhQz3_k.js";
|
30
|
+
import { S as _, E as C } from "../sized-mixin-BR_Ii7le.js";
|
31
31
|
const c = () => {
|
32
32
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
33
33
|
const o = document.createElement("style");
|
@@ -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-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
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../set-locale-Cam8nRIW.cjs"),b=require("../localized-decorator-SOrjcPab.cjs");require("../index-C2PPSv8E.cjs");require("../index-CnpJUw_z.cjs");require("../index-j8UKjHqY.cjs");require("../index-CT2vEcpn.cjs");require("../index-CBOAQ3-E.cjs");require("../index-CaVIv7B9.cjs");require("../index-BoXbQm2o.cjs");const v=require("../decompose-numeric-format-B3rVVHpO.cjs"),o=require("../property-BCb4Kybn.cjs"),f=require("../luzmo-icons-DAsjNJNI.cjs"),S=require("../index-CcDZIqpD.cjs"),A=require("../state-BxZEcclm.cjs"),m=require("../query-D5qWDopr.cjs"),F=require("../focusable-BTJYY_Mf.cjs"),y=require("../sized-mixin-BNtmplgF.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}
|
@@ -17,23 +17,23 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
import { m as s, g as x, t as A, s as L } from "../set-locale-
|
21
|
-
import { l as F } from "../localized-decorator-
|
22
|
-
import "../index-
|
20
|
+
import { m as s, g as x, t as A, s as L } from "../set-locale-DbEAMqUs.js";
|
21
|
+
import { l as F } from "../localized-decorator-DNr1P1m0.js";
|
22
|
+
import "../index-rQxtPaJl.js";
|
23
23
|
import "../index-BHJH1eGn.js";
|
24
24
|
import "../index-CsDgk_sj.js";
|
25
|
-
import "../index-
|
26
|
-
import "../index-
|
27
|
-
import "../index-
|
25
|
+
import "../index-Ciad94jH.js";
|
26
|
+
import "../index-Desl7GJ0.js";
|
27
|
+
import "../index-sCesmw8l.js";
|
28
28
|
import "../index-CTVNGPeT.js";
|
29
29
|
import { d as v } from "../decompose-numeric-format-BuZcjH2k.js";
|
30
|
-
import { r as S, x as a, E as $, n as f } from "../property-
|
31
|
-
import { a3 as D, a9 as w } from "../luzmo-icons-
|
32
|
-
import { a as C } from "../index-
|
33
|
-
import { r as N } from "../state-
|
30
|
+
import { r as S, x as a, E as $, n as f } from "../property-Dn4zSyxu.js";
|
31
|
+
import { a3 as D, a9 as w } from "../luzmo-icons-DEoJcvoL.js";
|
32
|
+
import { a as C } from "../index-Boxjo5I0.js";
|
33
|
+
import { r as N } from "../state-vVJlsarL.js";
|
34
34
|
import { e as d } from "../query-Ddbd72Um.js";
|
35
|
-
import { L as E } from "../focusable-
|
36
|
-
import { S as M, E as O } from "../sized-mixin-
|
35
|
+
import { L as E } from "../focusable-BXhQz3_k.js";
|
36
|
+
import { S as M, E as O } from "../sized-mixin-BR_Ii7le.js";
|
37
37
|
const y = () => {
|
38
38
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
39
39
|
const t = document.createElement("style");
|
@@ -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-
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../set-locale-Cam8nRIW.cjs"),C=require("../localized-decorator-SOrjcPab.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-CT2vEcpn.cjs");require("../index-CBOAQ3-E.cjs");require("../index-CaVIv7B9.cjs");const L=require("../decompose-numeric-format-B3rVVHpO.cjs"),s=require("../property-BCb4Kybn.cjs"),E=require("../state-BxZEcclm.cjs"),z=require("../query-D5qWDopr.cjs"),$=require("../focusable-BTJYY_Mf.cjs"),y=require("../sized-mixin-BNtmplgF.cjs");/*! * Lucero - The design system for Luzmo.
|
21
21
|
*
|
22
22
|
* Copyright © 2025 Luzmo
|
23
23
|
* All rights reserved.
|
@@ -17,21 +17,21 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
import { m as t, g as $, t as E, s as L } from "../set-locale-
|
21
|
-
import { l as O } from "../localized-decorator-
|
22
|
-
import { D as w, Z as S, g as I } from "../luzmo-icons-
|
20
|
+
import { m as t, g as $, t as E, s as L } from "../set-locale-DbEAMqUs.js";
|
21
|
+
import { l as O } from "../localized-decorator-DNr1P1m0.js";
|
22
|
+
import { D as w, Z as S, g as I } from "../luzmo-icons-DbwDQtuO-QG0fLECn.js";
|
23
23
|
import { m as j, a as A, R as p, I as C, z as h } from "../base-D76d76ww-BGkuhs54.js";
|
24
24
|
import { k as D } from "../checkbox-mixin-Do7EgtpQ-hne79zc-.js";
|
25
25
|
import "../index-CsDgk_sj.js";
|
26
|
-
import "../index-
|
27
|
-
import "../index-
|
28
|
-
import "../index-
|
26
|
+
import "../index-Ciad94jH.js";
|
27
|
+
import "../index-Desl7GJ0.js";
|
28
|
+
import "../index-sCesmw8l.js";
|
29
29
|
import { d as T } from "../decompose-numeric-format-BuZcjH2k.js";
|
30
|
-
import { r as F, x as z, n as H } from "../property-
|
31
|
-
import { r as B } from "../state-
|
30
|
+
import { r as F, x as z, n as H } from "../property-Dn4zSyxu.js";
|
31
|
+
import { r as B } from "../state-vVJlsarL.js";
|
32
32
|
import { e as v } from "../query-Ddbd72Um.js";
|
33
|
-
import { L as N } from "../focusable-
|
34
|
-
import { S as R, E as U } from "../sized-mixin-
|
33
|
+
import { L as N } from "../focusable-BXhQz3_k.js";
|
34
|
+
import { S as R, E as U } from "../sized-mixin-BR_Ii7le.js";
|
35
35
|
const _ = () => {
|
36
36
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
37
37
|
const e = document.createElement("style");
|
@@ -17,7 +17,7 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../localized-decorator-
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../localized-decorator-SOrjcPab.cjs"),m=require("../set-locale-Cam8nRIW.cjs"),v=require("../periods.const-CfXsouLz.cjs"),e=require("../property-BCb4Kybn.cjs"),h=require("../focusable-BTJYY_Mf.cjs"),p=require("../sized-mixin-BNtmplgF.cjs");require("../draggable-data-item-level/index.cjs");const z=":host{--draggable-data-item-sublevels-margin-vertical: var(--luzmo-spacing-1);--draggable-data-item-sublevels-gap: 0}:host([size=s]){--draggable-data-item-sublevels-margin-vertical: var(--luzmo-spacing-1)}:host([size=l]){--draggable-data-item-sublevels-margin-vertical: var(--luzmo-spacing-2)}:host([size=xl]){--draggable-data-item-sublevels-margin-vertical: var(--luzmo-spacing-3)}.draggable-data-item-sublevels{display:flex;flex-direction:column;gap:var(--luzmo-draggable-data-item-sublevels-gap, var(--draggable-data-item-sublevels-gap));margin:var(--luzmo-draggable-data-item-sublevels-margin-vertical, var(--draggable-data-item-sublevels-margin-vertical)) 0}:host{box-sizing:border-box}";var y=Object.defineProperty,D=Object.getOwnPropertyDescriptor,l=(d,t,s,r)=>{for(var a=r>1?void 0:r?D(t,s):t,g=d.length-1,o;g>=0;g--)(o=d[g])&&(a=(r?o(t,s,a):o(a))||a);return r&&a&&y(t,s,a),a};exports.LuzmoDraggableDataItem=class extends p.SizedMixin(h.LuzmoElement,{validSizes:["s","m","l","xl"],noDefaultSize:!0}){constructor(){super(...arguments),this.language="en",this.data={}}willUpdate(t){t.has("language")&&this.language!==m.getLocale()&&([...m.targetLocales].includes(this.language??"en")||this.language==="en")&&m.setLocale(this.language)}renderSublevels(){var s,r,a,g,o;let t;if(((s=this.data)==null?void 0:s.type)==="datetime")return t=((r=this.data)==null?void 0:r.subtype)==="date"?this.data.lowestLevel??5:this.data.lowestLevel??9,e.x`
|
21
21
|
<div class="draggable-data-item-sublevels">
|
22
22
|
${Array.from({length:t},(b,i)=>{const n=v.DATETIME_LEVELS[i].i18n(),u={...this.data,level:i+1};return e.x`<luzmo-draggable-data-item-level
|
23
23
|
sublevel
|
@@ -17,12 +17,12 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
import { l as b } from "../localized-decorator-
|
21
|
-
import { g as p, t as h, s as f } from "../set-locale-
|
22
|
-
import { D as v } from "../periods.const-
|
23
|
-
import { x as n, r as x, n as t } from "../property-
|
24
|
-
import { L as y } from "../focusable-
|
25
|
-
import { S as $ } from "../sized-mixin-
|
20
|
+
import { l as b } from "../localized-decorator-DNr1P1m0.js";
|
21
|
+
import { g as p, t as h, s as f } from "../set-locale-DbEAMqUs.js";
|
22
|
+
import { D as v } from "../periods.const-C89NNRX-.js";
|
23
|
+
import { x as n, r as x, n as t } from "../property-Dn4zSyxu.js";
|
24
|
+
import { L as y } from "../focusable-BXhQz3_k.js";
|
25
|
+
import { S as $ } from "../sized-mixin-BR_Ii7le.js";
|
26
26
|
import "../draggable-data-item-level/index.js";
|
27
27
|
const z = () => {
|
28
28
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|