@luzmo/analytics-components-kit 1.0.1-alpha.80 → 1.0.1-alpha.82
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-DZDqb3xu.js +139 -0
- package/components/calculate-data-item-icon-DjW1_RI1.cjs +20 -0
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +1 -1
- package/components/display-settings-binning/index.cjs +7 -7
- package/components/display-settings-binning/index.js +13 -15
- package/components/display-settings-datetime/index.cjs +26 -26
- package/components/display-settings-datetime/index.js +53 -61
- package/components/display-settings-grand-totals/index.cjs +6 -6
- package/components/display-settings-grand-totals/index.js +17 -18
- package/components/display-settings-numeric/index.cjs +25 -25
- package/components/display-settings-numeric/index.js +20 -22
- package/components/display-settings-period-over-period/index.cjs +29 -52
- package/components/display-settings-period-over-period/index.js +185 -278
- package/components/draggable-data-item/index.cjs +9 -9
- package/components/draggable-data-item/index.js +8 -8
- package/components/draggable-data-item-level/index.cjs +9 -9
- package/components/draggable-data-item-level/index.js +36 -35
- package/components/droppable-slot/index.cjs +16 -24
- package/components/droppable-slot/index.js +196 -260
- package/components/edit-item/index.cjs +10 -10
- package/components/edit-item/index.js +7 -6
- 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 +7 -7
- package/components/edit-option-action-button-group/index.js +43 -43
- package/components/{edit-option-base-DPPo6NHe.js → edit-option-base-DIc7iC-b.js} +6 -5
- package/components/edit-option-base-VhTih9T1.cjs +53 -0
- package/components/edit-option-color-palette-picker/index.cjs +4 -46
- package/components/edit-option-color-palette-picker/index.js +52 -332
- package/components/edit-option-color-picker/index.cjs +2 -2
- package/components/edit-option-color-picker/index.js +7 -7
- package/components/edit-option-color-range/index.cjs +19 -19
- package/components/edit-option-color-range/index.js +15 -15
- package/components/edit-option-multi-language-field/index.cjs +2 -2
- package/components/edit-option-multi-language-field/index.js +6 -6
- package/components/edit-option-number-field/index.cjs +4 -4
- package/components/edit-option-number-field/index.js +8 -8
- package/components/edit-option-picker/index.cjs +6 -6
- package/components/edit-option-picker/index.js +5 -4
- package/components/edit-option-position-picker/index.cjs +2 -2
- package/components/edit-option-position-picker/index.js +4 -3
- package/components/edit-option-positions-number-field/index.cjs +9 -9
- package/components/edit-option-positions-number-field/index.js +10 -10
- package/components/edit-option-radio-button-group/index.cjs +4 -4
- package/components/edit-option-radio-button-group/index.js +10 -10
- package/components/edit-option-slider/index.cjs +3 -19
- package/components/edit-option-slider/index.js +47 -1199
- package/components/edit-option-switch/index.cjs +3 -23
- package/components/edit-option-switch/index.js +36 -103
- package/components/edit-option-text-field/index.cjs +2 -2
- package/components/edit-option-text-field/index.js +4 -4
- package/components/{formatter-Lo9PMcxy.cjs → en-BKBhKBXY.cjs} +1 -1
- package/components/{formatter-CqU9_98M.js → en-BOTjhwEc.js} +266 -257
- package/components/{en-GB-UzDYaNfY.js → en-GB-CEHEs8F2.js} +1 -1
- package/components/{en-GB-cN3S24Cg.cjs → en-GB-DG6uS3sM.cjs} +1 -1
- package/components/filter-data-item-picker/index.cjs +9 -9
- package/components/filter-data-item-picker/index.js +16 -17
- package/components/filter-expression-picker/index.cjs +1 -1
- package/components/filter-expression-picker/index.js +1 -1
- package/components/filter-item/index.cjs +5 -5
- package/components/filter-item/index.js +26 -28
- package/components/filter-value-picker/index.cjs +4 -4
- package/components/filter-value-picker/index.js +5 -5
- package/components/filter-value-picker-datetime/index.cjs +8 -257
- package/components/filter-value-picker-datetime/index.js +77 -2732
- package/components/filter-value-picker-hierarchy/index.cjs +9 -9
- package/components/filter-value-picker-hierarchy/index.js +9 -11
- package/components/filter-value-picker-numeric/index.cjs +3 -3
- package/components/filter-value-picker-numeric/index.js +18 -20
- package/components/focusable-B3E_hQmm.cjs +20 -0
- package/components/{focusable-Dkol35B5.js → focusable-DCIFkpiW.js} +23 -22
- package/components/grid/index.cjs +41 -45
- package/components/grid/index.js +858 -884
- package/components/index-B3EAkLRo.js +327 -0
- package/components/index-BPNsFiyq.cjs +38 -0
- package/components/index-CP1Czufc.cjs +121 -0
- package/components/index-CQ9ck-BO.cjs +249 -0
- package/components/{index-CI7s-Vo6.js → index-CdIUfo-L.js} +28 -27
- package/components/{index-BeRkXAji.js → index-D0GBF6tg.js} +11 -13
- package/components/index.cjs +1 -1
- package/components/index.js +4 -4
- package/components/periods.const-3jA-ECRf.cjs +20 -0
- package/components/{periods.const-U2Ll1qq1.js → periods.const-CjHXYn-w.js} +5 -5
- package/components/{directive-BOOaQO_r.cjs → set-locale-BRRalqne.cjs} +1 -5
- package/components/{set-locale-DGtL70Yx.js → set-locale-Dp3N_gXN.js} +1 -1
- package/components/{base-D76d76ww.js → sized-mixin-DcvJLFeo.cjs} +1 -9
- package/components/{sized-mixin-BGzkX2g1.js → sized-mixin-cJbo3PKR.js} +5 -5
- package/components/slot-contents-picker/index.cjs +26 -26
- package/components/slot-contents-picker/index.js +17 -18
- package/components/slot-menu/index.cjs +9 -13
- package/components/slot-menu/index.js +70 -87
- package/components/slot-menu-list/index.cjs +3 -3
- package/components/slot-menu-list/index.js +16 -16
- package/components/utils.cjs +1 -1
- package/components/utils.js +1 -1
- package/package.json +16 -2
- package/components/async-directive-BwIAw5tB-BtJd_cmT.cjs +0 -56
- package/components/async-directive-BwIAw5tB-Cfvq9aVL.js +0 -152
- package/components/base-BjTwmyRF.cjs +0 -24
- package/components/base-D76d76ww-BWuviuuX.cjs +0 -94
- package/components/base-D76d76ww-DyC7msYY.js +0 -778
- package/components/button-base-B8bWcklV-Beu6KsNd.js +0 -162
- package/components/button-base-B8bWcklV-CkYjjjKc.cjs +0 -43
- package/components/calculate-data-item-icon-BkDn5Hg4.js +0 -139
- package/components/calculate-data-item-icon-BtBnd6Gk.cjs +0 -20
- package/components/checkbox-mixin-BOTvuPEu-BPAVuq8u.js +0 -88
- package/components/checkbox-mixin-BOTvuPEu-D0VblAJe.cjs +0 -45
- package/components/directive-CF_9GVrT.js +0 -46
- package/components/directive-helpers-D4KMv2dC-B403SUj0.js +0 -149
- package/components/directive-helpers-D4KMv2dC-BenfjU7b.cjs +0 -80
- package/components/divider.module-DoQWQEIJ-B19eHVg2.js +0 -40
- package/components/divider.module-DoQWQEIJ-Bg8RrFkc.cjs +0 -36
- package/components/edit-option-base-BbRWoICk.cjs +0 -53
- package/components/element-resolution-FCUT-wql--7ctE626.js +0 -163
- package/components/element-resolution-FCUT-wql-DSTvdyds.cjs +0 -68
- package/components/flow-D-0MTYCm-BOBCoA5Z.js +0 -546
- package/components/flow-D-0MTYCm-BW5krWol.cjs +0 -48
- package/components/focus-group-DHeTq18L-C9l9oHwM.cjs +0 -36
- package/components/focus-group-DHeTq18L-rNUu13eb.js +0 -237
- package/components/focusable-C5JjRZmT-Bq6nG1D1.js +0 -242
- package/components/focusable-C5JjRZmT-CXq2xEkz.cjs +0 -52
- package/components/focusable-DACxzj3n.cjs +0 -20
- package/components/if-defined-Barg9gGQ.js +0 -29
- package/components/if-defined-DULpqYwi-BsGNdxsq.js +0 -94
- package/components/if-defined-DULpqYwi-DASAMkOd.cjs +0 -60
- package/components/if-defined-wiCAR_aA.cjs +0 -24
- package/components/index-4kifRYmS.js +0 -48
- package/components/index-B3D-Gwx5.cjs +0 -54
- package/components/index-B9nMrdO_.cjs +0 -249
- package/components/index-BAwAuBCP.cjs +0 -36
- package/components/index-BM9DVqCY.cjs +0 -67
- package/components/index-BRqJF06R.js +0 -344
- package/components/index-BYOwq3Ts.cjs +0 -36
- package/components/index-BaAx75QK.js +0 -940
- package/components/index-Bc0yh1ee.cjs +0 -42
- package/components/index-BcEKtxuB.cjs +0 -190
- package/components/index-BhF0Nc0I.js +0 -847
- package/components/index-By7dgaN8.js +0 -76
- package/components/index-C-FgF4Hj.js +0 -136
- package/components/index-C1qMHAwW.js +0 -174
- package/components/index-C7Dvc31i.js +0 -868
- package/components/index-CSjDaDCx.cjs +0 -274
- package/components/index-CaxYEPvO.js +0 -195
- package/components/index-Ccou-T3X.cjs +0 -61
- package/components/index-CkomYnJp.js +0 -5672
- package/components/index-CmSAc5Du.js +0 -3207
- package/components/index-D6H2x0f4.js +0 -298
- package/components/index-DR7y4_sB.js +0 -76
- package/components/index-DSgqlSN6.js +0 -104
- package/components/index-DUPEOyM8.cjs +0 -39
- package/components/index-DXGlkMev.js +0 -1790
- package/components/index-DhtP_Rbp.cjs +0 -36
- package/components/index-DweGcuXW.cjs +0 -59
- package/components/index-Dz8wWyLG.cjs +0 -157
- package/components/index-HqYByxfc.js +0 -494
- package/components/index-KHvo8iGg.cjs +0 -127
- package/components/index-KsYjv9-f.cjs +0 -443
- package/components/index-M91jwO98.js +0 -144
- package/components/index-Xp2IA_rC.cjs +0 -126
- package/components/index-ab0I9BcZ.js +0 -163
- package/components/index-bbMeDUHy.cjs +0 -192
- package/components/index-sYb1sAL-.cjs +0 -38
- package/components/index-v1qChsIE.cjs +0 -95
- package/components/index-yRu6-S2D.cjs +0 -57
- package/components/localized-decorator-C8sbzZGl.cjs +0 -28
- package/components/localized-decorator-DEV_0e49.js +0 -48
- package/components/luzmo-icons-9446fqTZ.cjs +0 -31
- package/components/luzmo-icons-CQOuPnDf.js +0 -731
- package/components/luzmo-icons-CiSek5iM-BuWSpXXV.cjs +0 -47
- package/components/luzmo-icons-CiSek5iM-i6WB9-le.js +0 -168
- package/components/mutation-controller-DH7YOCyj-B6sXpbgh.cjs +0 -40
- package/components/mutation-controller-DH7YOCyj-E7gpCmwh.js +0 -71
- package/components/observe-slot-presence-CmVi0zTc-NPSGFmv-.cjs +0 -36
- package/components/observe-slot-presence-CmVi0zTc-hhUl4oRa.js +0 -87
- package/components/observe-slot-text-C3moTjwy-Bn5Q-9PO.cjs +0 -66
- package/components/observe-slot-text-C3moTjwy-C3pvLBIy.js +0 -172
- package/components/pending-state-B2wWssTo-3VyZV0dv.js +0 -321
- package/components/pending-state-B2wWssTo-BdY19gvB.cjs +0 -80
- package/components/periods.const-DDUxMjPi.cjs +0 -20
- package/components/popover-iD8f5Jkp-Bfnr74eu.js +0 -85
- package/components/popover-iD8f5Jkp-Sfv7tHEe.cjs +0 -48
- package/components/property-Cu4Q1hS4.cjs +0 -42
- package/components/property-DCzt3DR1.js +0 -613
- package/components/query-D5qWDopr.cjs +0 -24
- package/components/query-Ddbd72Um.js +0 -39
- package/components/query-all-CR2wWKRD.cjs +0 -24
- package/components/query-all-Ddzx2fEK.js +0 -34
- package/components/query-assigned-nodes-C76XVPWY-0JwCDreY.js +0 -55
- package/components/query-assigned-nodes-C76XVPWY-DkVzf_jA.cjs +0 -40
- package/components/roving-tabindex-DOg4z6ZU-DmyYPRYY.cjs +0 -36
- package/components/roving-tabindex-DOg4z6ZU-dufnVmvL.js +0 -85
- package/components/runtime-BSHB_4iz.js +0 -165
- package/components/runtime-CH-wFJgm.cjs +0 -52
- package/components/set-locale-DTROmCuU.cjs +0 -20
- package/components/sized-mixin-j_7aJM4b.cjs +0 -20
- package/components/state-fyl3IYMu.cjs +0 -24
- package/components/state-nDsQPund.js +0 -31
- package/components/streaming-listener-BQ68fKMa-C5ISM6AX.cjs +0 -52
- package/components/streaming-listener-BQ68fKMa-CVVNkZAo.js +0 -162
- package/components/task-Bh_X-xIU.js +0 -120
- package/components/task-CwmAXlv0.cjs +0 -24
- package/components/text-field-C2n3rzCK-CE91gbBH.cjs +0 -147
- package/components/text-field-C2n3rzCK-DXtf1W0Y.js +0 -431
- package/components/when-CDK1Tt5Y-BN3qcTK0.cjs +0 -40
- package/components/when-CDK1Tt5Y-C6ViXC43.js +0 -47
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
+
*
|
|
3
|
+
* Copyright © 2025 Luzmo
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
+
* must be used according to the Luzmo Terms of Service.
|
|
7
|
+
* This license allows users with a current active Luzmo account
|
|
8
|
+
* to use the Luzmo Web Components. This license terminates
|
|
9
|
+
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
+
*
|
|
12
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
+
* SOFTWARE.
|
|
19
|
+
* */
|
|
20
|
+
import { luzmoTypeArrayHierarchy as l, luzmoTypeArrayHierarchy14 as C, luzmoTypeArrayHierarchy12 as I, luzmoTypeArrayDatetime as o, luzmoTypeArrayDatetime14 as b, luzmoTypeArrayDatetime12 as v, luzmoTypeArrayCurrency as p, luzmoTypeArrayCurrency14 as H, luzmoTypeArrayCurrency12 as N, luzmoTypeArrayDuration as i, luzmoTypeArrayDuration14 as F, luzmoTypeArrayDuration12 as S, luzmoTypeArrayNumeric as n, luzmoTypeArrayNumeric14 as j, luzmoTypeArrayNumeric12 as k, luzmoTypeImage as c, luzmoTypeImage14 as q, luzmoTypeImage12 as w, luzmoTypeTopography as u, luzmoTypeCoordinates as T, luzmoTypeCoordinates14 as B, luzmoTypeCoordinates12 as E, luzmoTypeCurrency as s, luzmoTypeCurrency14 as G, luzmoTypeCurrency12 as J, luzmoTypeDuration as z, luzmoTypeDuration14 as K, luzmoTypeDuration12 as L, luzmoTypeNumeric as h, luzmoTypeNumeric14 as M, luzmoTypeNumeric12 as O, luzmoTypeTime as f, luzmoTypeTime14 as P, luzmoTypeTime12 as Q, luzmoTypeDate as t, luzmoTypeDate14 as R, luzmoTypeDate12 as U, luzmoTypeDatetime as D, luzmoTypeDatetime14 as V, luzmoTypeDatetime12 as W, luzmoTypeIpAddress as x, luzmoTypeIpAddress14 as X, luzmoTypeIpAddress12 as Y, luzmoTypeHierarchy as A, luzmoTypeHierarchy14 as Z, luzmoTypeHierarchy12 as _, luzmoTypeDerived as g, luzmoTypeDerived14 as $, luzmoTypeDerived12 as d, luzmoFormula as m } from "@luzmo/icons";
|
|
21
|
+
const y = {
|
|
22
|
+
"array[hierarchy]": {
|
|
23
|
+
s: I,
|
|
24
|
+
m: C,
|
|
25
|
+
l,
|
|
26
|
+
xl: l
|
|
27
|
+
},
|
|
28
|
+
"array[datetime]": {
|
|
29
|
+
s: v,
|
|
30
|
+
m: b,
|
|
31
|
+
l: o,
|
|
32
|
+
xl: o
|
|
33
|
+
},
|
|
34
|
+
"array[numeric]": {
|
|
35
|
+
s: k,
|
|
36
|
+
m: j,
|
|
37
|
+
l: n,
|
|
38
|
+
xl: n
|
|
39
|
+
},
|
|
40
|
+
"array[currency]": {
|
|
41
|
+
s: N,
|
|
42
|
+
m: H,
|
|
43
|
+
l: p,
|
|
44
|
+
xl: p
|
|
45
|
+
},
|
|
46
|
+
"array[duration]": {
|
|
47
|
+
s: S,
|
|
48
|
+
m: F,
|
|
49
|
+
l: i,
|
|
50
|
+
xl: i
|
|
51
|
+
},
|
|
52
|
+
coordinates: {
|
|
53
|
+
s: E,
|
|
54
|
+
m: B,
|
|
55
|
+
l: T,
|
|
56
|
+
xl: T
|
|
57
|
+
},
|
|
58
|
+
currency: {
|
|
59
|
+
s: J,
|
|
60
|
+
m: G,
|
|
61
|
+
l: s,
|
|
62
|
+
xl: s
|
|
63
|
+
},
|
|
64
|
+
date: {
|
|
65
|
+
s: U,
|
|
66
|
+
m: R,
|
|
67
|
+
l: t,
|
|
68
|
+
xl: t
|
|
69
|
+
},
|
|
70
|
+
datetime: {
|
|
71
|
+
s: W,
|
|
72
|
+
m: V,
|
|
73
|
+
l: D,
|
|
74
|
+
xl: D
|
|
75
|
+
},
|
|
76
|
+
derived: {
|
|
77
|
+
s: d,
|
|
78
|
+
m: $,
|
|
79
|
+
l: g,
|
|
80
|
+
xl: g
|
|
81
|
+
},
|
|
82
|
+
duration: {
|
|
83
|
+
s: L,
|
|
84
|
+
m: K,
|
|
85
|
+
l: z,
|
|
86
|
+
xl: z
|
|
87
|
+
},
|
|
88
|
+
hierarchy: {
|
|
89
|
+
s: _,
|
|
90
|
+
m: Z,
|
|
91
|
+
l: A,
|
|
92
|
+
xl: A
|
|
93
|
+
},
|
|
94
|
+
image: {
|
|
95
|
+
s: w,
|
|
96
|
+
m: q,
|
|
97
|
+
l: c,
|
|
98
|
+
xl: c
|
|
99
|
+
},
|
|
100
|
+
numeric: {
|
|
101
|
+
s: O,
|
|
102
|
+
m: M,
|
|
103
|
+
l: h,
|
|
104
|
+
xl: h
|
|
105
|
+
},
|
|
106
|
+
time: {
|
|
107
|
+
s: Q,
|
|
108
|
+
m: P,
|
|
109
|
+
l: f,
|
|
110
|
+
xl: f
|
|
111
|
+
},
|
|
112
|
+
topography: {
|
|
113
|
+
s: u,
|
|
114
|
+
m: u,
|
|
115
|
+
l: u,
|
|
116
|
+
xl: u
|
|
117
|
+
},
|
|
118
|
+
ipaddress: {
|
|
119
|
+
s: Y,
|
|
120
|
+
m: X,
|
|
121
|
+
l: x,
|
|
122
|
+
xl: x
|
|
123
|
+
},
|
|
124
|
+
formula: {
|
|
125
|
+
s: m,
|
|
126
|
+
m,
|
|
127
|
+
l: m,
|
|
128
|
+
xl: m
|
|
129
|
+
}
|
|
130
|
+
}, ee = (e, r = "m") => {
|
|
131
|
+
if (e === "formula")
|
|
132
|
+
return y.formula[r];
|
|
133
|
+
if (e === "derived")
|
|
134
|
+
return y.derived[r];
|
|
135
|
+
}, re = (e, r = "m") => (e == null ? void 0 : e.type) === "array[hierarchy]" ? y["array[hierarchy]"][r] : (e == null ? void 0 : e.type) === "array[datetime]" ? y["array[datetime]"][r] : (e == null ? void 0 : e.type) === "array[numeric]" ? (e == null ? void 0 : e.subtype) === "currency" ? y["array[currency]"][r] : (e == null ? void 0 : e.subtype) === "duration" ? y["array[duration]"][r] : y["array[numeric]"][r] : (e == null ? void 0 : e.type) === "image" ? y.image[r] : (e == null ? void 0 : e.type) === "spatial" ? (e == null ? void 0 : e.subtype) === "topography" ? y.topography[r] : y.coordinates[r] : (e == null ? void 0 : e.type) === "numeric" ? (e == null ? void 0 : e.subtype) === "currency" ? y.currency[r] : (e == null ? void 0 : e.subtype) === "duration" ? y.duration[r] : y.numeric[r] : (e == null ? void 0 : e.type) === "datetime" ? (e == null ? void 0 : e.subtype) === "time" ? y.time[r] : (e == null ? void 0 : e.subtype) === "date" ? y.date[r] : y.datetime[r] : (e == null ? void 0 : e.type) === "hierarchy" && (e == null ? void 0 : e.subtype) === "ipaddress" ? y.ipaddress[r] : y.hierarchy[r];
|
|
136
|
+
export {
|
|
137
|
+
ee as a,
|
|
138
|
+
re as c
|
|
139
|
+
};
|
|
@@ -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";const e=require("@luzmo/icons"),y={"array[hierarchy]":{s:e.luzmoTypeArrayHierarchy12,m:e.luzmoTypeArrayHierarchy14,l:e.luzmoTypeArrayHierarchy,xl:e.luzmoTypeArrayHierarchy},"array[datetime]":{s:e.luzmoTypeArrayDatetime12,m:e.luzmoTypeArrayDatetime14,l:e.luzmoTypeArrayDatetime,xl:e.luzmoTypeArrayDatetime},"array[numeric]":{s:e.luzmoTypeArrayNumeric12,m:e.luzmoTypeArrayNumeric14,l:e.luzmoTypeArrayNumeric,xl:e.luzmoTypeArrayNumeric},"array[currency]":{s:e.luzmoTypeArrayCurrency12,m:e.luzmoTypeArrayCurrency14,l:e.luzmoTypeArrayCurrency,xl:e.luzmoTypeArrayCurrency},"array[duration]":{s:e.luzmoTypeArrayDuration12,m:e.luzmoTypeArrayDuration14,l:e.luzmoTypeArrayDuration,xl:e.luzmoTypeArrayDuration},coordinates:{s:e.luzmoTypeCoordinates12,m:e.luzmoTypeCoordinates14,l:e.luzmoTypeCoordinates,xl:e.luzmoTypeCoordinates},currency:{s:e.luzmoTypeCurrency12,m:e.luzmoTypeCurrency14,l:e.luzmoTypeCurrency,xl:e.luzmoTypeCurrency},date:{s:e.luzmoTypeDate12,m:e.luzmoTypeDate14,l:e.luzmoTypeDate,xl:e.luzmoTypeDate},datetime:{s:e.luzmoTypeDatetime12,m:e.luzmoTypeDatetime14,l:e.luzmoTypeDatetime,xl:e.luzmoTypeDatetime},derived:{s:e.luzmoTypeDerived12,m:e.luzmoTypeDerived14,l:e.luzmoTypeDerived,xl:e.luzmoTypeDerived},duration:{s:e.luzmoTypeDuration12,m:e.luzmoTypeDuration14,l:e.luzmoTypeDuration,xl:e.luzmoTypeDuration},hierarchy:{s:e.luzmoTypeHierarchy12,m:e.luzmoTypeHierarchy14,l:e.luzmoTypeHierarchy,xl:e.luzmoTypeHierarchy},image:{s:e.luzmoTypeImage12,m:e.luzmoTypeImage14,l:e.luzmoTypeImage,xl:e.luzmoTypeImage},numeric:{s:e.luzmoTypeNumeric12,m:e.luzmoTypeNumeric14,l:e.luzmoTypeNumeric,xl:e.luzmoTypeNumeric},time:{s:e.luzmoTypeTime12,m:e.luzmoTypeTime14,l:e.luzmoTypeTime,xl:e.luzmoTypeTime},topography:{s:e.luzmoTypeTopography,m:e.luzmoTypeTopography,l:e.luzmoTypeTopography,xl:e.luzmoTypeTopography},ipaddress:{s:e.luzmoTypeIpAddress12,m:e.luzmoTypeIpAddress14,l:e.luzmoTypeIpAddress,xl:e.luzmoTypeIpAddress},formula:{s:e.luzmoFormula,m:e.luzmoFormula,l:e.luzmoFormula,xl:e.luzmoFormula}},m=(r,u="m")=>{if(r==="formula")return y.formula[u];if(r==="derived")return y.derived[u]},l=(r,u="m")=>(r==null?void 0:r.type)==="array[hierarchy]"?y["array[hierarchy]"][u]:(r==null?void 0:r.type)==="array[datetime]"?y["array[datetime]"][u]:(r==null?void 0:r.type)==="array[numeric]"?(r==null?void 0:r.subtype)==="currency"?y["array[currency]"][u]:(r==null?void 0:r.subtype)==="duration"?y["array[duration]"][u]:y["array[numeric]"][u]:(r==null?void 0:r.type)==="image"?y.image[u]:(r==null?void 0:r.type)==="spatial"?(r==null?void 0:r.subtype)==="topography"?y.topography[u]:y.coordinates[u]:(r==null?void 0:r.type)==="numeric"?(r==null?void 0:r.subtype)==="currency"?y.currency[u]:(r==null?void 0:r.subtype)==="duration"?y.duration[u]:y.numeric[u]:(r==null?void 0:r.type)==="datetime"?(r==null?void 0:r.subtype)==="time"?y.time[u]:(r==null?void 0:r.subtype)==="date"?y.date[u]:y.datetime[u]:(r==null?void 0:r.type)==="hierarchy"&&(r==null?void 0:r.subtype)==="ipaddress"?y.ipaddress[u]:y.hierarchy[u];exports.calculateDataItemIcon=l;exports.calculateDataItemSecondaryIcon=m;
|
|
@@ -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";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-
|
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-CP1Czufc.cjs");exports.LuzmoDisplaySettings=e.LuzmoDisplaySettings;
|
|
@@ -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 { L as u } from "../index-
|
|
20
|
+
import { L as u } from "../index-B3EAkLRo.js";
|
|
21
21
|
(function() {
|
|
22
22
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
23
23
|
const o = document.createElement("style");
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("
|
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@luzmo/lucero/action-button");require("@luzmo/lucero/field-label");require("@luzmo/lucero/icon");require("@luzmo/lucero/number-field");const d=require("lit"),l=require("@lit/localize"),c=require("@luzmo/icons"),o=require("lit/decorators.js"),b=require("../focusable-B3E_hQmm.cjs"),h=require("../sized-mixin-DcvJLFeo.cjs"),u=require("../set-locale-BRRalqne.cjs"),p=":host .settings-container{display:flex;flex-direction:column;gap:var(--luzmo-display-settings-vertical-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 m=Object.defineProperty,z=Object.getOwnPropertyDescriptor,a=(g,e,t,n)=>{for(var i=n>1?void 0:n?z(e,t):e,s=g.length-1,r;s>=0;s--)(r=g[s])&&(i=(n?r(e,t,i):r(i))||i);return n&&i&&m(e,t,i),i};exports.LuzmoDisplaySettingsBinning=class extends h.SizedMixin(b.LuzmoElement,{validSizes:Object.values(h.ElementSizes)}){constructor(){super(...arguments),this.language="en",this.slotContent={},this._enabled=!1,this._binWidth=10}static get styles(){return[d.unsafeCSS(p)]}willUpdate(e){var t,n,i,s;e.has("slotContent")&&(this._enabled=((n=(t=this.slotContent)==null?void 0:t.bins)==null?void 0:n.enabled)??!1,this._binWidth=((s=(i=this.slotContent)==null?void 0:i.bins)==null?void 0:s.number)??10),e.has("language")&&this.language!==u.getLocale()&&([...u.targetLocales].includes(this.language??"en")||this.language==="en")&&u.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 d.html`<div class="setting">
|
|
21
21
|
<luzmo-field-label for="bin-width"
|
|
22
|
-
>${
|
|
22
|
+
>${l.msg("Bin width",{desc:"The width of each bin in the histogram"})}</luzmo-field-label
|
|
23
23
|
>
|
|
24
24
|
<luzmo-number-field
|
|
25
25
|
id="bin-width"
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
.size=${this.size}
|
|
29
29
|
@change=${this.setBinning}
|
|
30
30
|
></luzmo-number-field>
|
|
31
|
-
</div>`}render(){return
|
|
31
|
+
</div>`}render(){return d.html`<div class="settings-container">
|
|
32
32
|
<div class="settings-row">
|
|
33
33
|
<div class="setting">
|
|
34
34
|
<luzmo-field-label for="binning"
|
|
35
|
-
>${
|
|
35
|
+
>${l.msg("Binning",{desc:'Grouping numeric data into intervals or "bins" for analysis and visualization'})}</luzmo-field-label
|
|
36
36
|
>
|
|
37
37
|
<luzmo-action-button
|
|
38
38
|
id="binning"
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
<luzmo-icon
|
|
47
47
|
slot="icon"
|
|
48
48
|
.size=${this.size}
|
|
49
|
-
.icon=${this._enabled?
|
|
49
|
+
.icon=${this._enabled?c.luzmoCheckboxChecked:c.luzmoCheckbox}
|
|
50
50
|
></luzmo-icon>
|
|
51
|
-
${this._enabled?
|
|
51
|
+
${this._enabled?l.msg("Enabled",{desc:"Option set to enabled"}):l.msg("Disabled",{desc:"Option set to disabled"})}
|
|
52
52
|
</luzmo-action-button>
|
|
53
53
|
</div>
|
|
54
54
|
${this._enabled?this.renderBinWidth():""}
|
|
55
55
|
</div>
|
|
56
|
-
</div>`}};a([
|
|
56
|
+
</div>`}};a([o.property({type:String,reflect:!0})],exports.LuzmoDisplaySettingsBinning.prototype,"language",2);a([o.property()],exports.LuzmoDisplaySettingsBinning.prototype,"slotContent",2);a([o.state()],exports.LuzmoDisplaySettingsBinning.prototype,"_enabled",2);a([o.query("#bin-width")],exports.LuzmoDisplaySettingsBinning.prototype,"binWidthElement",2);exports.LuzmoDisplaySettingsBinning=a([l.localized()],exports.LuzmoDisplaySettingsBinning);customElements.get("luzmo-display-settings-binning")||customElements.define("luzmo-display-settings-binning",exports.LuzmoDisplaySettingsBinning);
|
|
@@ -17,19 +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 "
|
|
21
|
-
import "
|
|
22
|
-
import "
|
|
23
|
-
import "
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import { S as v, E as x } from "../sized-mixin-BGzkX2g1.js";
|
|
32
|
-
import { g as y, t as w, s as _ } from "../set-locale-DGtL70Yx.js";
|
|
20
|
+
import "@luzmo/lucero/action-button";
|
|
21
|
+
import "@luzmo/lucero/field-label";
|
|
22
|
+
import "@luzmo/lucero/icon";
|
|
23
|
+
import "@luzmo/lucero/number-field";
|
|
24
|
+
import { unsafeCSS as d, html as m } from "lit";
|
|
25
|
+
import { msg as s, localized as z } from "@lit/localize";
|
|
26
|
+
import { luzmoCheckboxChecked as g, luzmoCheckbox as b } from "@luzmo/icons";
|
|
27
|
+
import { property as c, state as p, query as h } from "lit/decorators.js";
|
|
28
|
+
import { L as f } from "../focusable-DCIFkpiW.js";
|
|
29
|
+
import { S as v, E as x } from "../sized-mixin-cJbo3PKR.js";
|
|
30
|
+
import { g as y, t as w, s as _ } from "../set-locale-Dp3N_gXN.js";
|
|
33
31
|
(function() {
|
|
34
32
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
35
33
|
const o = document.createElement("style");
|
|
@@ -37,8 +35,8 @@ import { g as y, t as w, s as _ } from "../set-locale-DGtL70Yx.js";
|
|
|
37
35
|
}
|
|
38
36
|
})();
|
|
39
37
|
const C = ":host .settings-container{display:flex;flex-direction:column;gap:var(--luzmo-display-settings-vertical-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
|
-
var E = Object.defineProperty,
|
|
41
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
38
|
+
var E = Object.defineProperty, S = Object.getOwnPropertyDescriptor, r = (l, o, n, i) => {
|
|
39
|
+
for (var e = i > 1 ? void 0 : i ? S(o, n) : o, a = l.length - 1, u; a >= 0; a--)
|
|
42
40
|
(u = l[a]) && (e = (i ? u(o, n, e) : u(e)) || e);
|
|
43
41
|
return i && e && E(o, n, e), e;
|
|
44
42
|
};
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../task-CwmAXlv0.cjs");require("../index-Bc0yh1ee.cjs");require("../index-B3D-Gwx5.cjs");require("../index-DweGcuXW.cjs");require("../index-BAwAuBCP.cjs");require("../index-KHvo8iGg.cjs");require("../index-Dz8wWyLG.cjs");require("../index-BM9DVqCY.cjs");const i=require("../property-Cu4Q1hS4.cjs"),o=require("../runtime-CH-wFJgm.cjs"),y=require("../localized-decorator-C8sbzZGl.cjs"),h=require("../luzmo-icons-9446fqTZ.cjs"),l=require("../formatter-Lo9PMcxy.cjs"),d=require("../periods.const-DDUxMjPi.cjs"),m=require("../query-D5qWDopr.cjs"),z=require("../focusable-DACxzj3n.cjs"),c=require("../sized-mixin-j_7aJM4b.cjs"),p=require("../set-locale-DTROmCuU.cjs"),g={"~":()=>o.msg("Auto",{desc:"Automatic setting of the option"}),"/":()=>"/","-":()=>"-",".":()=>"."},v=":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-display-settings-vertical-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{--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 S=Object.defineProperty,D=Object.getOwnPropertyDescriptor,r=(u,e,t,a)=>{for(var s=a>1?void 0:a?D(e,t):e,n=u.length-1,_;n>=0;n--)(_=u[n])&&(s=(a?_(e,t,s):_(s))||s);return a&&s&&S(e,t,s),s};exports.LuzmoDisplaySettingsDatetime=class extends c.SizedMixin(z.LuzmoElement,{validSizes:Object.values(c.ElementSizes)}){constructor(){super(...arguments),this._loadLocaleFormatsConfig=new f.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-cN3S24Cg.cjs")),"../../utils/formatter/formats/en-US.ts":()=>Promise.resolve().then(()=>F),"../../utils/formatter/formats/en.ts":()=>Promise.resolve().then(()=>k),"../../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 a=await t[`../../utils/formatter/formats/${e}.ts`]();this._localeFormats=(a==null?void 0:a.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[i.r(v)]}_parseSlotContent(){var e,t,a;this._dateLevel=((e=this.slotContent)==null?void 0:e.level)??((t=this.slotContent)==null?void 0:t.lowestLevel)??5,this._displayAs=((a=this.slotContent)==null?void 0:a.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"),this._parseSavedFormat()}_parseSavedFormat(){var a;const e=((a=this.slotContent)==null?void 0:a.format)??l.DEFAULT_DATETIME_FORMAT,t=e.match(/[./-]/);if(this._dateSeparator=e.includes("~")?"~":(t==null?void 0:t[0])??"~",e.includes("%amd"))this._dateFormat="auto";else{const s=e.indexOf("%d"),n=e.indexOf("%m");s!==-1&&n!==-1&&(this._dateFormat=s<n?"ddmm":"mmdd")}this._24hFormat=e.includes("%H"),this._monthName=/%B|%b/.test(e),this._weekDay=/%a|%A/.test(e),this._monthName&&(this._monthNameFormat=e.includes("%b")?"short":"long"),this._weekDay&&(this._weekDayAndMonthInYearFormat=e.includes("%a")?"short":"long")}_calculateFormat(){var a;let e;const t=((a=this._localeFormats)==null?void 0:a.smartDateFormats)??l.SMART_DATE_FORMATS;this._monthName?(e=t.filter(s=>s.monthType==="name"&&s.longText===(this._monthNameFormat==="long")&&s.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(s=>s.monthType==="number"&&s.mmdd===(this._weekFormat==="mmdd"?!0:this._weekFormat==="ddmm"?!1:null)&&s.separator===this._dateSeparator):t.filter(s=>s.monthType==="number"&&s.mmdd===(this._dateFormat==="mmdd"?!0:this._dateFormat==="ddmm"?!1:null)&&s.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!==p.getLocale()&&([...p.targetLocales].includes(this.language??"en")||this.language==="en")&&p.setLocale(this.language)}_renderDisplaySettings(){var t,a;const e=(a=(t=d.DATETIME_AS_STRING_FORMATS_PER_LEVEL)==null?void 0:t[`level${this._dateLevel??0}`])==null?void 0:a.map(s=>i.x`<luzmo-menu-item value=${s.key}>
|
|
21
|
-
${
|
|
22
|
-
</luzmo-menu-item>`);return i.
|
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("@lit/task");require("@luzmo/lucero/action-button");require("@luzmo/lucero/action-group");require("@luzmo/lucero/field-label");require("@luzmo/lucero/icon");require("@luzmo/lucero/number-field");require("@luzmo/lucero/picker");require("@luzmo/lucero/progress-circle");const i=require("lit"),o=require("@lit/localize"),l=require("@luzmo/icons"),h=require("../en-BKBhKBXY.cjs"),d=require("../periods.const-3jA-ECRf.cjs"),m=require("lit/decorators.js"),y=require("../focusable-B3E_hQmm.cjs"),c=require("../sized-mixin-DcvJLFeo.cjs"),p=require("../set-locale-BRRalqne.cjs"),g={"~":()=>o.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-display-settings-vertical-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{--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,s)=>{for(var a=s>1?void 0:s?S(e,t):e,n=u.length-1,_;n>=0;n--)(_=u[n])&&(a=(s?_(e,t,a):_(a))||a);return s&&a&&v(e,t,a),a};exports.LuzmoDisplaySettingsDatetime=class extends c.SizedMixin(y.LuzmoElement,{validSizes:Object.values(c.ElementSizes)}){constructor(){super(...arguments),this._loadLocaleFormatsConfig=new f.Task(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-DG6uS3sM.cjs")),"../../utils/formatter/formats/en-US.ts":()=>Promise.resolve().then(()=>require("../en-BKBhKBXY.cjs")).then(s=>s.enUS),"../../utils/formatter/formats/en.ts":()=>Promise.resolve().then(()=>require("../en-BKBhKBXY.cjs")).then(s=>s.en),"../../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 s=await t[`../../utils/formatter/formats/${e}.ts`]();this._localeFormats=(s==null?void 0:s.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[i.unsafeCSS(z)]}_parseSlotContent(){var e,t,s;this._dateLevel=((e=this.slotContent)==null?void 0:e.level)??((t=this.slotContent)==null?void 0:t.lowestLevel)??5,this._displayAs=((s=this.slotContent)==null?void 0:s.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"),this._parseSavedFormat()}_parseSavedFormat(){var s;const e=((s=this.slotContent)==null?void 0:s.format)??h.DEFAULT_DATETIME_FORMAT,t=e.match(/[./-]/);if(this._dateSeparator=e.includes("~")?"~":(t==null?void 0:t[0])??"~",e.includes("%amd"))this._dateFormat="auto";else{const a=e.indexOf("%d"),n=e.indexOf("%m");a!==-1&&n!==-1&&(this._dateFormat=a<n?"ddmm":"mmdd")}this._24hFormat=e.includes("%H"),this._monthName=/%B|%b/.test(e),this._weekDay=/%a|%A/.test(e),this._monthName&&(this._monthNameFormat=e.includes("%b")?"short":"long"),this._weekDay&&(this._weekDayAndMonthInYearFormat=e.includes("%a")?"short":"long")}_calculateFormat(){var s;let e;const t=((s=this._localeFormats)==null?void 0:s.smartDateFormats)??h.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!==p.getLocale()&&([...p.targetLocales].includes(this.language??"en")||this.language==="en")&&p.setLocale(this.language)}_renderDisplaySettings(){var t,s;const e=(s=(t=d.DATETIME_AS_STRING_FORMATS_PER_LEVEL)==null?void 0:t[`level${this._dateLevel??0}`])==null?void 0:s.map(a=>i.html`<luzmo-menu-item value=${a.key}>
|
|
21
|
+
${a.i18n()}
|
|
22
|
+
</luzmo-menu-item>`);return i.html`<div class="setting">
|
|
23
23
|
<luzmo-field-label for="display-as"
|
|
24
24
|
>${o.msg("Display",{desc:"Label for display setting"})}</luzmo-field-label
|
|
25
25
|
>
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
>
|
|
33
33
|
${e}
|
|
34
34
|
</luzmo-picker>
|
|
35
|
-
</div>`}_renderWeekDayAndMonthNameFormatSettings(){const e=Object.keys(d.DATETIME_WEEKDAY_AND_MONTH_STRING_FORMATS).map(t=>i.
|
|
35
|
+
</div>`}_renderWeekDayAndMonthNameFormatSettings(){const e=Object.keys(d.DATETIME_WEEKDAY_AND_MONTH_STRING_FORMATS).map(t=>i.html`<luzmo-action-button value=${t}>
|
|
36
36
|
${d.DATETIME_WEEKDAY_AND_MONTH_STRING_FORMATS[t]()}
|
|
37
|
-
</luzmo-action-button>`);return i.
|
|
37
|
+
</luzmo-action-button>`);return i.html` <div class="setting">
|
|
38
38
|
<luzmo-field-label for="weekday-and-month-in-year-format"
|
|
39
39
|
>${o.msg("Format",{desc:"Label for format setting"})}</luzmo-field-label
|
|
40
40
|
>
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
>
|
|
50
50
|
${e}
|
|
51
51
|
</luzmo-action-group>
|
|
52
|
-
</div>`}_renderMonthNameFormatSettings(){return i.
|
|
52
|
+
</div>`}_renderMonthNameFormatSettings(){return i.html` <div class="setting">
|
|
53
53
|
<luzmo-field-label for="month-name-format"
|
|
54
54
|
>${o.msg("Format",{desc:"Label for format setting"})}</luzmo-field-label
|
|
55
55
|
>
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
${o.msg("Long",{desc:"Long format option"})}
|
|
70
70
|
</luzmo-action-button>
|
|
71
71
|
</luzmo-action-group>
|
|
72
|
-
</div>`}_renderWeekFormatSettings(){var
|
|
72
|
+
</div>`}_renderWeekFormatSettings(){var a;const e=((a=this._localeFormats)==null?void 0:a.smartDateFormats)??h.SMART_DATE_FORMATS,t=e.find(n=>n.mmdd===!0&&n.separator===this._dateSeparator&&n.monthType==="number"),s=e.find(n=>n.mmdd===!1&&n.separator===this._dateSeparator&&n.monthType==="number");return i.html` <div class="setting">
|
|
73
73
|
<luzmo-field-label for="week-format"
|
|
74
74
|
>${o.msg("Format",{desc:"Label for format setting"})}</luzmo-field-label
|
|
75
75
|
>
|
|
@@ -83,15 +83,15 @@
|
|
|
83
83
|
@change=${this._setWeekFormat}
|
|
84
84
|
>
|
|
85
85
|
<luzmo-action-button value="ddmm">
|
|
86
|
-
${
|
|
86
|
+
${h.formatter({...this._currentSlotContent,type:"datetime",format:s==null?void 0:s.key},{localFormats:this._localeFormats,level:this._dateLevel})(new Date)}
|
|
87
87
|
</luzmo-action-button>
|
|
88
88
|
<luzmo-action-button value="mmdd"
|
|
89
|
-
>${
|
|
89
|
+
>${h.formatter({...this._currentSlotContent,type:"datetime",format:t==null?void 0:t.key},{localFormats:this._localeFormats,level:this._dateLevel})(new Date)}</luzmo-action-button
|
|
90
90
|
>
|
|
91
91
|
</luzmo-action-group>
|
|
92
|
-
</div>`}_renderWeekStartsOnSettings(){const e=Object.keys(d.WEEK_STARTS_ON).map(t=>i.
|
|
92
|
+
</div>`}_renderWeekStartsOnSettings(){const e=Object.keys(d.WEEK_STARTS_ON).map(t=>i.html`<luzmo-menu-item value=${t}>
|
|
93
93
|
${d.WEEK_STARTS_ON[t]()}
|
|
94
|
-
</luzmo-menu-item>`);return i.
|
|
94
|
+
</luzmo-menu-item>`);return i.html`<div class="setting">
|
|
95
95
|
<luzmo-field-label for="week-start"
|
|
96
96
|
>${o.msg("Week starts on",{desc:"Label for week start setting"})}</luzmo-field-label
|
|
97
97
|
>
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
>
|
|
105
105
|
${e}
|
|
106
106
|
</luzmo-picker>
|
|
107
|
-
</div>`}_renderMonthNameSettings(){return i.
|
|
107
|
+
</div>`}_renderMonthNameSettings(){return i.html`<div class="settings-">
|
|
108
108
|
<luzmo-field-label for="month-name"
|
|
109
109
|
>${o.msg("Month",{desc:"Month format setting"})}</luzmo-field-label
|
|
110
110
|
>
|
|
@@ -119,11 +119,11 @@
|
|
|
119
119
|
<luzmo-icon
|
|
120
120
|
slot="icon"
|
|
121
121
|
.size=${this.size}
|
|
122
|
-
.icon=${this._monthName?
|
|
122
|
+
.icon=${this._monthName?l.luzmoCheckboxChecked:l.luzmoCheckbox}
|
|
123
123
|
></luzmo-icon>
|
|
124
124
|
${o.msg("Name")}
|
|
125
125
|
</luzmo-action-button>
|
|
126
|
-
</div>`}_renderDateFormatSettings(){const e=this._dateSeparator==="~"?"/":this._dateSeparator;return i.
|
|
126
|
+
</div>`}_renderDateFormatSettings(){const e=this._dateSeparator==="~"?"/":this._dateSeparator;return i.html`<div class="setting">
|
|
127
127
|
<luzmo-field-label for="date-format"
|
|
128
128
|
>${o.msg("Format",{desc:"Label for format setting"})}</luzmo-field-label
|
|
129
129
|
>
|
|
@@ -140,9 +140,9 @@
|
|
|
140
140
|
<luzmo-menu-item value="mmdd">12${e}31</luzmo-menu-item>
|
|
141
141
|
<luzmo-menu-item value="ddmm">31${e}12</luzmo-menu-item>
|
|
142
142
|
</luzmo-picker>
|
|
143
|
-
</div>`}_renderSeparatorSettings(){const e=Object.keys(g).map(t=>i.
|
|
143
|
+
</div>`}_renderSeparatorSettings(){const e=Object.keys(g).map(t=>i.html`<luzmo-menu-item value=${t}>
|
|
144
144
|
${g[t]()}
|
|
145
|
-
</luzmo-menu-item>`);return i.
|
|
145
|
+
</luzmo-menu-item>`);return i.html`<div class="setting">
|
|
146
146
|
<luzmo-field-label for="date-separator"
|
|
147
147
|
>${o.msg("Separator",{desc:"Label for date separator setting"})}</luzmo-field-label
|
|
148
148
|
>
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
>
|
|
156
156
|
${e}
|
|
157
157
|
</luzmo-picker>
|
|
158
|
-
</div>`}_render24hFormatSettings(){return i.
|
|
158
|
+
</div>`}_render24hFormatSettings(){return i.html`<div class="settings-">
|
|
159
159
|
<luzmo-field-label for="format-24h"
|
|
160
160
|
>${o.msg("24h",{desc:"Label for 24h format setting"})}</luzmo-field-label
|
|
161
161
|
>
|
|
@@ -170,10 +170,10 @@
|
|
|
170
170
|
<luzmo-icon
|
|
171
171
|
slot="icon"
|
|
172
172
|
.size=${this.size}
|
|
173
|
-
.icon=${this._24hFormat?
|
|
173
|
+
.icon=${this._24hFormat?l.luzmoCheckboxChecked:l.luzmoCheckbox}
|
|
174
174
|
></luzmo-icon>
|
|
175
175
|
</luzmo-action-button>
|
|
176
|
-
</div>`}_renderWeekdaySettings(){return i.
|
|
176
|
+
</div>`}_renderWeekdaySettings(){return i.html`<div class="settings-">
|
|
177
177
|
<luzmo-field-label for="weekday"
|
|
178
178
|
>${o.msg("Weekday",{desc:"Label for weekday setting"})}</luzmo-field-label
|
|
179
179
|
>
|
|
@@ -188,19 +188,19 @@
|
|
|
188
188
|
<luzmo-icon
|
|
189
189
|
slot="icon"
|
|
190
190
|
.size=${this.size}
|
|
191
|
-
.icon=${this._weekDay?
|
|
191
|
+
.icon=${this._weekDay?l.luzmoCheckboxChecked:l.luzmoCheckbox}
|
|
192
192
|
></luzmo-icon>
|
|
193
193
|
${o.msg("Show")}
|
|
194
194
|
</luzmo-action-button>
|
|
195
|
-
</div>`}_renderAllSettings(){return i.
|
|
196
|
-
${this._dateLevel&&![1,9].includes(this._dateLevel)?i.
|
|
195
|
+
</div>`}_renderAllSettings(){return i.html`<div class="settings-container">
|
|
196
|
+
${this._dateLevel&&![1,9].includes(this._dateLevel)?i.html` <div class="settings-row">
|
|
197
197
|
${this._renderDisplaySettings()}
|
|
198
198
|
${this._dateLevel&&this._dateLevel>=5&&this._displayAs==="day_in_week"?this._renderWeekStartsOnSettings():""}
|
|
199
199
|
</div>`:""}
|
|
200
|
-
${["month_in_year","day_in_week"].includes(this._displayAs??"")?i.
|
|
200
|
+
${["month_in_year","day_in_week"].includes(this._displayAs??"")?i.html` <div class="settings-row">
|
|
201
201
|
${this._renderWeekDayAndMonthNameFormatSettings()}
|
|
202
202
|
</div>`:""}
|
|
203
|
-
${this._dateLevel&&this._dateLevel>1&&this._displayAs==="default"?i.
|
|
203
|
+
${this._dateLevel&&this._dateLevel>1&&this._displayAs==="default"?i.html` <div class="settings-row">
|
|
204
204
|
${this._dateLevel&&this._dateLevel!==4&&this._dateLevel!==2?this._renderMonthNameSettings():""}
|
|
205
205
|
${this._dateLevel&&this._dateLevel!==4&&this._dateLevel>2&&this._monthName?this._renderMonthNameFormatSettings():""}
|
|
206
206
|
${this._dateLevel&&this._dateLevel===4&&!this._monthName?this._renderWeekFormatSettings():""}
|
|
@@ -209,7 +209,7 @@
|
|
|
209
209
|
${this._dateLevel&&this._dateLevel>=5&&this._monthName?this._renderWeekdaySettings():""}
|
|
210
210
|
${this._dateLevel&&this._dateLevel>5?this._render24hFormatSettings():""}
|
|
211
211
|
</div>`:""}
|
|
212
|
-
</div>`}render(){return this._loadLocaleFormatsConfig.render({pending:()=>i.
|
|
212
|
+
</div>`}render(){return this._loadLocaleFormatsConfig.render({pending:()=>i.html`<luzmo-progress-circle
|
|
213
213
|
indeterminate
|
|
214
214
|
.size=${this.size}
|
|
215
|
-
></luzmo-progress-circle>`,complete:()=>this._renderAllSettings(),error:()=>this._renderAllSettings()})}};r([
|
|
215
|
+
></luzmo-progress-circle>`,complete:()=>this._renderAllSettings(),error:()=>this._renderAllSettings()})}};r([m.property({type:String})],exports.LuzmoDisplaySettingsDatetime.prototype,"language",2);r([m.property({type:String})],exports.LuzmoDisplaySettingsDatetime.prototype,"contentLanguage",2);r([m.property({type:String})],exports.LuzmoDisplaySettingsDatetime.prototype,"size",2);r([m.property({type:Object,reflect:!1})],exports.LuzmoDisplaySettingsDatetime.prototype,"slotContent",2);r([m.query("#display-as")],exports.LuzmoDisplaySettingsDatetime.prototype,"_displayAsElement",2);r([m.query("#week-start")],exports.LuzmoDisplaySettingsDatetime.prototype,"_weekStartElement",2);r([m.query("#weekday-and-month-in-year-format")],exports.LuzmoDisplaySettingsDatetime.prototype,"_weekDayAndMonthInYearFormatElement",2);r([m.query("#month-name-format")],exports.LuzmoDisplaySettingsDatetime.prototype,"_monthNameFormatElement",2);r([m.query("#month-name")],exports.LuzmoDisplaySettingsDatetime.prototype,"_monthNameElement",2);r([m.query("#week-format")],exports.LuzmoDisplaySettingsDatetime.prototype,"_weekFormatElement",2);r([m.query("#date-format")],exports.LuzmoDisplaySettingsDatetime.prototype,"_dateFormatElement",2);r([m.query("#date-separator")],exports.LuzmoDisplaySettingsDatetime.prototype,"_dateSeparatorElement",2);r([m.query("#weekday")],exports.LuzmoDisplaySettingsDatetime.prototype,"_weekDayElement",2);r([m.query("#format-24h")],exports.LuzmoDisplaySettingsDatetime.prototype,"_format24hElement",2);exports.LuzmoDisplaySettingsDatetime=r([o.localized()],exports.LuzmoDisplaySettingsDatetime);customElements.get("luzmo-display-settings-datetime")||customElements.define("luzmo-display-settings-datetime",exports.LuzmoDisplaySettingsDatetime);
|