@luzmo/analytics-components-kit 1.0.1-alpha.31 → 1.0.1-alpha.32
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/{async-directive-C_bp5UcZ-B5_19oN_.js → async-directive-BfcqVjDp-BCT-lA4F.js} +8 -8
- package/components/{async-directive-C_bp5UcZ-mUPcBvyn.cjs → async-directive-BfcqVjDp-C8C45jl6.cjs} +3 -3
- package/components/{base-D76d76ww-D0dTUBua.js → base-D76d76ww-BGkuhs54.js} +59 -47
- package/components/{base-D76d76ww-BEIhYtgV.cjs → base-D76d76ww-tT6yr8eb.cjs} +9 -9
- package/components/{button-base-WsJSnMie-B1TLbPwk.cjs → button-base-DbkDzb71-CY6MJGqE.cjs} +2 -2
- package/components/{button-base-WsJSnMie-CyGPs7kd.js → button-base-DbkDzb71-R8oqSqlY.js} +4 -4
- package/components/calculate-data-item-icon-BtUWtDx3.cjs +20 -0
- package/components/calculate-data-item-icon-DauSiV8c.js +97 -0
- package/components/{checkbox-mixin-CmeCReJh-wY0R8cuc.cjs → checkbox-mixin-Do7EgtpQ-D3m-dMTI.cjs} +3 -3
- package/components/{checkbox-mixin-CmeCReJh-C94-rm4F.js → checkbox-mixin-Do7EgtpQ-hne79zc-.js} +2 -2
- package/components/{de-BaTUIQk1.js → de-CCq00pbq.js} +55 -1
- package/components/de-DcZysUyZ.cjs +20 -0
- package/components/{directive-helpers-Bx_ey3Gk-BxvL9t9F.cjs → directive-helpers-Cm6gitnu-BeggOiwf.cjs} +4 -4
- package/components/{directive-helpers-Bx_ey3Gk-Csi4AxXe.js → directive-helpers-Cm6gitnu-CeYtlPO9.js} +53 -19
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +18 -17
- package/components/display-settings-binning/display-settings-binning.d.ts +0 -1
- package/components/display-settings-binning/index.cjs +3 -2
- package/components/display-settings-binning/index.js +21 -21
- package/components/display-settings-datetime/index.cjs +2 -2
- package/components/display-settings-datetime/index.js +37 -35
- package/components/display-settings-grand-totals/display-settings-grand-totals.d.ts +0 -1
- package/components/display-settings-grand-totals/index.cjs +4 -3
- package/components/display-settings-grand-totals/index.js +21 -21
- package/components/display-settings-numeric/index.cjs +14 -14
- package/components/display-settings-numeric/index.js +32 -30
- package/components/display-settings-period-over-period/index.cjs +6 -6
- package/components/display-settings-period-over-period/index.js +36 -34
- package/components/draggable-data-item/index.cjs +3 -3
- package/components/draggable-data-item/index.js +15 -13
- package/components/draggable-data-item-level/index.cjs +9 -9
- package/components/draggable-data-item-level/index.js +96 -167
- package/components/droppable-slot/index.cjs +2 -2
- package/components/droppable-slot/index.js +21 -19
- package/components/edit-item/index.cjs +11 -11
- package/components/edit-item/index.js +13 -12
- 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 +2 -1
- package/components/edit-option-action-button-group/index.js +44 -43
- package/components/edit-option-base-CSJNbo2E.cjs +53 -0
- package/components/{edit-option-base-DOezOLDd.js → edit-option-base-DeQjGX4i.js} +5 -4
- package/components/edit-option-color-picker/index.cjs +23 -23
- package/components/edit-option-color-picker/index.js +50 -50
- 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 +2 -2
- package/components/edit-option-number-field/index.js +3 -3
- package/components/edit-option-picker/index.cjs +2 -2
- 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 +7 -7
- package/components/edit-option-radio-button-group/index.cjs +4 -4
- package/components/edit-option-radio-button-group/index.js +4 -4
- package/components/edit-option-slider/index.cjs +2 -2
- package/components/edit-option-slider/index.js +27 -27
- package/components/edit-option-switch/index.cjs +3 -3
- package/components/edit-option-switch/index.js +5 -5
- package/components/edit-option-text-field/index.cjs +2 -2
- package/components/edit-option-text-field/index.js +3 -3
- package/components/es-CGiBfBKJ.cjs +20 -0
- package/components/{es-D37mTCZB.js → es-DBmbFw-L.js} +55 -1
- package/components/filter-data-item-picker/filter-data-item-picker.d.ts +88 -0
- package/components/filter-data-item-picker/index.cjs +47 -0
- package/components/filter-data-item-picker/index.d.ts +7 -0
- package/components/filter-data-item-picker/index.js +193 -0
- package/components/filter-expression-picker/filter-expression-picker.d.ts +74 -0
- package/components/filter-expression-picker/index.cjs +20 -0
- package/components/filter-expression-picker/index.d.ts +7 -0
- package/components/filter-expression-picker/index.js +30 -0
- package/components/filter-group/filter-group.d.ts +26 -0
- package/components/filter-group/index.d.ts +7 -0
- package/components/filter-item/filter-item.d.ts +76 -0
- package/components/filter-item/index.cjs +52 -0
- package/components/filter-item/index.d.ts +7 -0
- package/components/filter-item/index.js +271 -0
- package/components/filter-parameter-picker/filter-parameter-picker.d.ts +25 -0
- package/components/filter-parameter-picker/index.d.ts +7 -0
- package/components/filter-value-picker/filter-value-picker.d.ts +65 -0
- package/components/filter-value-picker/index.cjs +51 -0
- package/components/filter-value-picker/index.d.ts +7 -0
- package/components/filter-value-picker/index.js +149 -0
- package/components/filter-value-picker-datetime/filter-value-picker-datetime.d.ts +43 -0
- package/components/filter-value-picker-datetime/index.cjs +288 -0
- package/components/filter-value-picker-datetime/index.d.ts +7 -0
- package/components/filter-value-picker-datetime/index.js +2820 -0
- package/components/filter-value-picker-hierarchy/filter-value-picker-hierarchy.d.ts +82 -0
- package/components/filter-value-picker-hierarchy/index.cjs +46 -0
- package/components/filter-value-picker-hierarchy/index.d.ts +7 -0
- package/components/filter-value-picker-hierarchy/index.js +278 -0
- package/components/filter-value-picker-numeric/filter-value-picker-numeric.d.ts +83 -0
- package/components/filter-value-picker-numeric/index.cjs +46 -0
- package/components/filter-value-picker-numeric/index.d.ts +7 -0
- package/components/filter-value-picker-numeric/index.js +274 -0
- package/components/flow-D-0MTYCm-BOBCoA5Z.js +546 -0
- package/components/flow-D-0MTYCm-BW5krWol.cjs +48 -0
- package/components/{focusable-BNESohBR-DbTLvYXr.cjs → focusable-BxtpnzWp-CkK9AeMt.cjs} +2 -2
- package/components/{focusable-BNESohBR-DYvAZYXL.js → focusable-BxtpnzWp-DJQkL8Zv.js} +1 -1
- package/components/focusable-DB6Uhr-C.js +275 -0
- package/components/focusable-_wp5pWO-.cjs +20 -0
- package/components/{fr-BWJHvkss.js → fr-BOwMikLT.js} +55 -1
- package/components/fr-DZbYwMlh.cjs +20 -0
- package/components/{get-css-variable-Bhbr-Kr1.js → get-css-variable-YlLiVgo8.js} +2 -2
- package/components/{if-defined-DbhS35z5.js → if-defined-B4gwZxx6.js} +1 -1
- package/components/{if-defined-D-1p2bLN-Bn-33APC.js → if-defined-DOaE2coe-CNT45Xcl.js} +1 -1
- package/components/{if-defined-D-1p2bLN-0_AoRnT2.cjs → if-defined-DOaE2coe-Cvlu5s9n.cjs} +1 -1
- package/components/{if-defined-CF8baNdl.cjs → if-defined-DqthfJme.cjs} +2 -2
- package/components/{index-Dwp251OJ.js → index-5mZhN-HJ.js} +7 -6
- package/components/{index-B3jkBlKY.js → index-BC1LV3vH.js} +3 -3
- package/components/{index-BXMPi13W.js → index-BCBLJ-ei.js} +82 -82
- package/components/{index-B9dQtvu7.js → index-BHJH1eGn.js} +3 -3
- package/components/index-BHXq1-M1.cjs +195 -0
- package/components/{index-C2-2RrwB.cjs → index-BKwbYw6x.cjs} +3 -3
- package/components/index-BOqSYlku.cjs +38 -0
- package/components/{index-D5rT-qy9.cjs → index-Bafc5poK.cjs} +12 -28
- package/components/{index-CqFCIIIl.js → index-BbuNpVBr.js} +3 -3
- package/components/{index-CRx2nPkq.js → index-Bmpw4rGV.js} +3 -3
- package/components/{index-D8Na-686.cjs → index-BoXbQm2o.cjs} +1 -1
- package/components/{index-uRWe553S.cjs → index-BtIWR_s6.cjs} +4 -4
- package/components/index-BwsEWpIS.js +494 -0
- package/components/{index-CF84gqsb.cjs → index-C2PPSv8E.cjs} +4 -4
- package/components/{index-CbeVu32V.js → index-C3N6qTxJ.js} +3 -3
- package/components/index-C5m9vRp5.js +598 -0
- package/components/{index-bZQXFqxv.cjs → index-CBOAQ3-E.cjs} +10 -10
- package/components/{index-_McOOiwL.cjs → index-CSm0I7Gz.cjs} +4 -4
- package/components/index-CTHlwZ9E.cjs +274 -0
- package/components/{index-Brg_sVUg.js → index-CTVNGPeT.js} +1 -1
- package/components/{index-Rjoe8cIs.js → index-Cb5l6iK_.js} +110 -173
- package/components/{index-BkCJwWm3.cjs → index-CeENkpNK.cjs} +3 -3
- package/components/{index-BnbhRpm9.js → index-CnRQGFHT.js} +3 -3
- package/components/{index-BKcvEgWr.cjs → index-CnpJUw_z.cjs} +3 -3
- package/components/{index-DJik7S7b.js → index-CsDgk_sj.js} +2 -2
- package/components/{index-fl13NYnO.js → index-CskV_bXp.js} +2 -2
- package/components/index-CyWwLYEO.js +1789 -0
- package/components/index-D9yzIoGv.js +1666 -0
- package/components/{index-Bwxvaqxq.cjs → index-DF-s3cEL.cjs} +11 -11
- package/components/{index-CVuJ-LUO.cjs → index-DSQyBS9Z.cjs} +2 -2
- package/components/{index-Bb8vxGZY.js → index-Desl7GJ0.js} +19 -15
- package/components/{index-0HUnZcem.cjs → index-DtohCwyO.cjs} +2 -2
- package/components/index-TQG9Xdxu.cjs +20 -0
- package/components/index-c2uKLWDt.cjs +157 -0
- package/components/{index-C9-QEfA9.cjs → index-j8UKjHqY.cjs} +4 -4
- package/components/{index-DZZMSlYS.js → index-rQxtPaJl.js} +6 -6
- package/components/index.cjs +1 -1
- package/components/index.js +41 -27
- package/components/localized-decorator-ClAOFk8M.cjs +28 -0
- package/components/localized-decorator-DGnMToFa.js +48 -0
- package/components/{luzmo-icons-U09GB75o.js → luzmo-icons-CPucBq6e.js} +89 -89
- package/components/luzmo-icons-DbwDQtuO-DSQ-uVxy.cjs +47 -0
- package/components/{luzmo-icons-BLN3xVgr-Tz5XXgbL.js → luzmo-icons-DbwDQtuO-QG0fLECn.js} +67 -25
- package/components/luzmo-icons-Nyf1P71v.cjs +31 -0
- package/components/nl-0V96M02q.cjs +20 -0
- package/components/nl-CY0iO3Ch.js +158 -0
- package/components/observe-slot-presence-CmVi0zTc-B4M1Mze7.cjs +36 -0
- package/components/observe-slot-presence-CmVi0zTc-DCFuXW7v.js +87 -0
- package/components/{observe-slot-text-CVKLDesL-BB2RmFgc.cjs → observe-slot-text-BPfIQQtz-DHOh38Ve.cjs} +4 -4
- package/components/{observe-slot-text-CVKLDesL-CXUeCmXW.js → observe-slot-text-BPfIQQtz-v6B-1BYh.js} +5 -5
- package/components/pending-state-DTX7ggyF-BQGaWUEI.cjs +80 -0
- package/components/pending-state-DTX7ggyF-KolnwUB7.js +321 -0
- package/components/{periods.const-CDIkC5CK.cjs → periods.const-BbgInj9J.cjs} +1 -1
- package/components/{periods.const-GHh5bPfs.js → periods.const-D2cMP5hH.js} +1 -1
- package/components/{popover-DRyjN9y_-w1zh4tvw.js → popover-DjX0aAnY-B_ujTfos.js} +2 -2
- package/components/{popover-DRyjN9y_-7mF_fAOh.cjs → popover-DjX0aAnY-CSUMV_Ay.cjs} +3 -3
- package/components/property-CxtZroGf.js +600 -0
- package/components/property-Dlf9S6Jz.cjs +42 -0
- package/components/{query-assigned-nodes-C76XVPWY-k1jDPyUQ.cjs → query-assigned-nodes-C76XVPWY-BW2w3V7-.cjs} +1 -1
- package/components/{query-assigned-nodes-C76XVPWY-BWouxGZs.js → query-assigned-nodes-C76XVPWY-DxNwGHfW.js} +1 -1
- package/components/scatter-plot-options.config-CFfGJXsV.cjs +20 -0
- package/components/{scatter-plot-options.config-lrkd9qj4.js → scatter-plot-options.config-Corlzno1.js} +78 -48
- package/components/set-locale-5FFfQpVQ.cjs +52 -0
- package/components/set-locale-DAGnJZD8.js +188 -0
- package/components/{sized-mixin-DMuOVsw0.js → sized-mixin-C7R5uRbF.js} +1 -1
- package/components/sized-mixin-ZTphZKLm.cjs +20 -0
- package/components/slot-menu/index.cjs +1 -1
- package/components/slot-menu/index.js +12 -11
- package/components/slot-menu-list/index.cjs +3 -3
- package/components/slot-menu-list/index.js +15 -14
- package/components/{state-e2n-fyrr.js → state-BVYsk_HZ.js} +1 -1
- package/components/{state-QgHgNZLe.cjs → state-CrfOw8Zp.cjs} +2 -2
- package/components/{streaming-listener-C8Ctj0Q6-lanbGKR9.js → streaming-listener-CP-JE6Fa-9MH0gENR.js} +3 -3
- package/components/{streaming-listener-C8Ctj0Q6-BhMxS69F.cjs → streaming-listener-CP-JE6Fa-DMzr1X1m.cjs} +3 -3
- package/components/{task-fQFUVV8e.cjs → task-CdvrMX8r.cjs} +2 -2
- package/components/{task-gE27tBDv.js → task-DH8UFyxP.js} +1 -1
- package/components/{text-field-C0pFjPG1-BCVbGXp7.cjs → text-field-BIADXoLC-B8w9TVmS.cjs} +8 -8
- package/components/{text-field-C0pFjPG1-B4TRivuD.js → text-field-BIADXoLC-B9oE05VF.js} +11 -10
- package/custom-elements.json +1891 -34
- package/index.d.ts +7 -0
- package/item-definitions/scatter-plot/scatter-plot-options.config.d.ts +3 -0
- package/package.json +46 -1
- package/utils/data-broker/index.d.ts +179 -0
- package/utils/data-item-types/calculate-data-item-icon.d.ts +3 -0
- package/utils/filters/expressions.d.ts +15 -0
- package/utils/filters/index.d.ts +1 -0
- package/utils/localize/set-locale.d.ts +4 -2
- package/utils/types/column.types.d.ts +1 -1
- package/components/de-DgHoh7KS.cjs +0 -20
- package/components/draggable-data-item-level/helpers/calculate-type-icon.d.ts +0 -2
- package/components/edit-option-base-jkkFevzT.cjs +0 -53
- package/components/es-ByW01bzN.cjs +0 -20
- package/components/focusable-Cu_m_GTh.cjs +0 -42
- package/components/focusable-Dw_pMNQL.js +0 -852
- package/components/fr-DnFUAglm.cjs +0 -20
- package/components/index-CqynTbW1.cjs +0 -217
- package/components/index-DFnzlbHX.js +0 -779
- package/components/index-hogChFy0.cjs +0 -195
- package/components/luzmo-icons-BDClm1AE.cjs +0 -31
- package/components/luzmo-icons-BLN3xVgr-Cr3OrsqW.cjs +0 -47
- package/components/nl-CWxJcTNT.js +0 -104
- package/components/nl-CpfDNK5c.cjs +0 -20
- package/components/scatter-plot-options.config-DkJLutNb.cjs +0 -20
- package/components/set-locale-ByIApH40.cjs +0 -60
- package/components/set-locale-DJYT4V7U.js +0 -212
- package/components/sized-mixin-Cqlxwicw.cjs +0 -20
- /package/components/{divider.module-DwOuLGU3-B19eHVg2.js → divider.module-DoQWQEIJ-B19eHVg2.js} +0 -0
- /package/components/{divider.module-DwOuLGU3-Bg8RrFkc.cjs → divider.module-DoQWQEIJ-Bg8RrFkc.cjs} +0 -0
package/index.d.ts
CHANGED
@@ -20,6 +20,13 @@ export * from './components/edit-option-radio-button-group';
|
|
20
20
|
export * from './components/edit-option-slider';
|
21
21
|
export * from './components/edit-option-switch';
|
22
22
|
export * from './components/edit-option-text-field';
|
23
|
+
export * from './components/filter-data-item-picker';
|
24
|
+
export * from './components/filter-expression-picker';
|
25
|
+
export * from './components/filter-item';
|
26
|
+
export * from './components/filter-value-picker';
|
27
|
+
export * from './components/filter-value-picker-datetime';
|
28
|
+
export * from './components/filter-value-picker-hierarchy';
|
29
|
+
export * from './components/filter-value-picker-numeric';
|
23
30
|
export * from './components/slot-menu';
|
24
31
|
export * from './components/slot-menu-list';
|
25
32
|
export * from './item-definitions/item-list';
|
@@ -83,6 +83,7 @@ declare const _default: ({
|
|
83
83
|
label: string;
|
84
84
|
default: string;
|
85
85
|
enum: string[];
|
86
|
+
toOptions: ({ options, value }: any) => any;
|
86
87
|
min?: undefined;
|
87
88
|
max?: undefined;
|
88
89
|
step?: undefined;
|
@@ -95,6 +96,7 @@ declare const _default: ({
|
|
95
96
|
label: string;
|
96
97
|
default: string;
|
97
98
|
enum: string[];
|
99
|
+
toOptions?: undefined;
|
98
100
|
min?: undefined;
|
99
101
|
max?: undefined;
|
100
102
|
step?: undefined;
|
@@ -110,6 +112,7 @@ declare const _default: ({
|
|
110
112
|
max: number;
|
111
113
|
step: number;
|
112
114
|
enum?: undefined;
|
115
|
+
toOptions?: undefined;
|
113
116
|
};
|
114
117
|
visibleIf: ({ options }: any) => boolean;
|
115
118
|
})[];
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@luzmo/analytics-components-kit",
|
3
|
-
"version": "1.0.1-alpha.
|
3
|
+
"version": "1.0.1-alpha.32",
|
4
4
|
"type": "module",
|
5
5
|
"main": "./components/index.js",
|
6
6
|
"module": "./components/index.js",
|
@@ -121,6 +121,51 @@
|
|
121
121
|
"import": "./components/edit-option-text-field/index.js",
|
122
122
|
"require": "./components/edit-option-text-field/index.cjs"
|
123
123
|
},
|
124
|
+
"./filter-data-item-picker": {
|
125
|
+
"types": "./components/filter-data-item-picker/index.d.ts",
|
126
|
+
"import": "./components/filter-data-item-picker/index.js",
|
127
|
+
"require": "./components/filter-data-item-picker/index.cjs"
|
128
|
+
},
|
129
|
+
"./filter-expression-picker": {
|
130
|
+
"types": "./components/filter-expression-picker/index.d.ts",
|
131
|
+
"import": "./components/filter-expression-picker/index.js",
|
132
|
+
"require": "./components/filter-expression-picker/index.cjs"
|
133
|
+
},
|
134
|
+
"./filter-group": {
|
135
|
+
"types": "./components/filter-group/index.d.ts",
|
136
|
+
"import": "./components/filter-group/index.js",
|
137
|
+
"require": "./components/filter-group/index.cjs"
|
138
|
+
},
|
139
|
+
"./filter-item": {
|
140
|
+
"types": "./components/filter-item/index.d.ts",
|
141
|
+
"import": "./components/filter-item/index.js",
|
142
|
+
"require": "./components/filter-item/index.cjs"
|
143
|
+
},
|
144
|
+
"./filter-parameter-picker": {
|
145
|
+
"types": "./components/filter-parameter-picker/index.d.ts",
|
146
|
+
"import": "./components/filter-parameter-picker/index.js",
|
147
|
+
"require": "./components/filter-parameter-picker/index.cjs"
|
148
|
+
},
|
149
|
+
"./filter-value-picker": {
|
150
|
+
"types": "./components/filter-value-picker/index.d.ts",
|
151
|
+
"import": "./components/filter-value-picker/index.js",
|
152
|
+
"require": "./components/filter-value-picker/index.cjs"
|
153
|
+
},
|
154
|
+
"./filter-value-picker-datetime": {
|
155
|
+
"types": "./components/filter-value-picker-datetime/index.d.ts",
|
156
|
+
"import": "./components/filter-value-picker-datetime/index.js",
|
157
|
+
"require": "./components/filter-value-picker-datetime/index.cjs"
|
158
|
+
},
|
159
|
+
"./filter-value-picker-hierarchy": {
|
160
|
+
"types": "./components/filter-value-picker-hierarchy/index.d.ts",
|
161
|
+
"import": "./components/filter-value-picker-hierarchy/index.js",
|
162
|
+
"require": "./components/filter-value-picker-hierarchy/index.cjs"
|
163
|
+
},
|
164
|
+
"./filter-value-picker-numeric": {
|
165
|
+
"types": "./components/filter-value-picker-numeric/index.d.ts",
|
166
|
+
"import": "./components/filter-value-picker-numeric/index.js",
|
167
|
+
"require": "./components/filter-value-picker-numeric/index.cjs"
|
168
|
+
},
|
124
169
|
"./slot-menu": {
|
125
170
|
"types": "./components/slot-menu/index.d.ts",
|
126
171
|
"import": "./components/slot-menu/index.js",
|
@@ -0,0 +1,179 @@
|
|
1
|
+
/**
|
2
|
+
* Configuration options for the DataBroker
|
3
|
+
*/
|
4
|
+
export interface DataBrokerConfig {
|
5
|
+
apiVersion?: string;
|
6
|
+
apiUrl?: string;
|
7
|
+
authKey?: string;
|
8
|
+
authToken?: string;
|
9
|
+
staleTime?: number;
|
10
|
+
gcTime?: number;
|
11
|
+
retry?: number;
|
12
|
+
retryDelay?: (attempt: number) => number;
|
13
|
+
}
|
14
|
+
/**
|
15
|
+
* Pagination parameters for list requests
|
16
|
+
*/
|
17
|
+
export interface PaginationOptions {
|
18
|
+
offset?: number;
|
19
|
+
limit?: number;
|
20
|
+
}
|
21
|
+
/**
|
22
|
+
* Pagination result metadata
|
23
|
+
*/
|
24
|
+
export interface PaginationResult {
|
25
|
+
offset: number;
|
26
|
+
limit: number;
|
27
|
+
total: number;
|
28
|
+
pages: number;
|
29
|
+
}
|
30
|
+
/**
|
31
|
+
* Dataset query parameters
|
32
|
+
*/
|
33
|
+
export interface DatasetQueryParams {
|
34
|
+
filter?: Record<string, any>;
|
35
|
+
sort?: Record<string, 'asc' | 'desc'>;
|
36
|
+
page?: number;
|
37
|
+
limit?: number;
|
38
|
+
columns?: string[];
|
39
|
+
}
|
40
|
+
/**
|
41
|
+
* Dataset resource
|
42
|
+
*/
|
43
|
+
export interface Dataset {
|
44
|
+
id: string;
|
45
|
+
name: string;
|
46
|
+
description?: string;
|
47
|
+
createdAt?: string;
|
48
|
+
updatedAt?: string;
|
49
|
+
[key: string]: any;
|
50
|
+
}
|
51
|
+
/**
|
52
|
+
* Dataset column
|
53
|
+
*/
|
54
|
+
export interface Column {
|
55
|
+
id: string;
|
56
|
+
name: string;
|
57
|
+
description?: string;
|
58
|
+
dataType: string;
|
59
|
+
category?: string;
|
60
|
+
hidden?: boolean;
|
61
|
+
[key: string]: any;
|
62
|
+
}
|
63
|
+
/**
|
64
|
+
* Performance metrics
|
65
|
+
*/
|
66
|
+
export interface PerformanceMetrics {
|
67
|
+
validating: number;
|
68
|
+
preparing: number;
|
69
|
+
queuing: number;
|
70
|
+
querying: number;
|
71
|
+
processing: number;
|
72
|
+
rows: number;
|
73
|
+
}
|
74
|
+
/**
|
75
|
+
* DataBroker service for Luzmo API
|
76
|
+
* Provides methods to fetch and manipulate data from Luzmo REST API
|
77
|
+
*/
|
78
|
+
export declare class DataBroker {
|
79
|
+
private apiUrl;
|
80
|
+
private apiVersion;
|
81
|
+
private authKey;
|
82
|
+
private authToken;
|
83
|
+
private queryClient;
|
84
|
+
private static instance;
|
85
|
+
constructor(config?: DataBrokerConfig);
|
86
|
+
/**
|
87
|
+
* Set API configuration
|
88
|
+
* @param config - API configuration
|
89
|
+
*/
|
90
|
+
configure(config?: DataBrokerConfig): void;
|
91
|
+
/**
|
92
|
+
* Initialize network status listeners
|
93
|
+
*/
|
94
|
+
private initNetworkListeners;
|
95
|
+
/**
|
96
|
+
* Get API headers
|
97
|
+
* @param additionalHeaders - Additional headers to include
|
98
|
+
* @returns Headers for API requests
|
99
|
+
*/
|
100
|
+
getHeaders(additionalHeaders?: Record<string, string>): Record<string, string>;
|
101
|
+
/**
|
102
|
+
* Make API request with advanced error handling
|
103
|
+
* Default method is POST and supports an optional JSON body
|
104
|
+
* @param endpoint - API endpoint
|
105
|
+
* @param jsonBody - Optional JSON body to send with request
|
106
|
+
* @param options - Additional fetch options
|
107
|
+
* @returns API response
|
108
|
+
* @throws {Error} If API request fails
|
109
|
+
*/
|
110
|
+
fetchApi<T>(endpoint: string, jsonBody?: any, options?: RequestInit): Promise<T>;
|
111
|
+
/**
|
112
|
+
* Fetch all available datasets with pagination support
|
113
|
+
* @param options - Pagination options
|
114
|
+
* @returns Paginated list of datasets
|
115
|
+
*/
|
116
|
+
fetchAllDatasets(options?: PaginationOptions): Promise<{
|
117
|
+
data: Dataset[];
|
118
|
+
pagination: PaginationResult;
|
119
|
+
}>;
|
120
|
+
/**
|
121
|
+
* Search datasets by name or description
|
122
|
+
* @param query - Search query
|
123
|
+
* @returns List of matching datasets
|
124
|
+
*/
|
125
|
+
searchDatasets(query: string, options?: PaginationOptions): Promise<Dataset[]>;
|
126
|
+
/**
|
127
|
+
* Fetch a specific dataset by ID
|
128
|
+
* @param datasetId - Dataset ID
|
129
|
+
* @returns Dataset details
|
130
|
+
*/
|
131
|
+
fetchDatasetsWithColumnsAndFormulas(datasetIds: string[]): Promise<any[]>;
|
132
|
+
/**
|
133
|
+
* Fetch a specific dataset by ID
|
134
|
+
* @param datasetId - Dataset ID
|
135
|
+
* @returns Dataset details
|
136
|
+
*/
|
137
|
+
fetchDataset(datasetId: string): Promise<Dataset | null>;
|
138
|
+
/**
|
139
|
+
* Fetch data from a dataset with filtering
|
140
|
+
* @param datasetId - Dataset ID
|
141
|
+
* @param queryParams - Query parameters (filters, sort, etc.)
|
142
|
+
* @returns Dataset data
|
143
|
+
*/
|
144
|
+
fetchData(query: {
|
145
|
+
dimensions?: any[];
|
146
|
+
measures?: any[];
|
147
|
+
where?: any[];
|
148
|
+
order?: any[];
|
149
|
+
limit?: {
|
150
|
+
by: number;
|
151
|
+
offset: number;
|
152
|
+
};
|
153
|
+
options?: any;
|
154
|
+
}): Promise<{
|
155
|
+
data: any[][];
|
156
|
+
performance: PerformanceMetrics;
|
157
|
+
}>;
|
158
|
+
/**
|
159
|
+
* Refresh all queries
|
160
|
+
*/
|
161
|
+
refreshAll(): void;
|
162
|
+
/**
|
163
|
+
* Invalidate cached data for a dataset
|
164
|
+
* @param datasetId - Dataset ID (optional)
|
165
|
+
*/
|
166
|
+
invalidateDatasetData(datasetId?: string): void;
|
167
|
+
/**
|
168
|
+
* Invalidate all cached data
|
169
|
+
*/
|
170
|
+
invalidateAll(): void;
|
171
|
+
/**
|
172
|
+
* Create a singleton instance
|
173
|
+
* @param config - API configuration
|
174
|
+
* @returns Singleton instance
|
175
|
+
*/
|
176
|
+
static getInstance(config?: DataBrokerConfig): DataBroker;
|
177
|
+
}
|
178
|
+
export declare const dataBroker: DataBroker;
|
179
|
+
export default DataBroker;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { ColumnSubtype, ColumnType } from '../types/column.types';
|
2
|
+
export type FilterExpressionConfiguration = {
|
3
|
+
id: string;
|
4
|
+
key: FilterExpressionKey;
|
5
|
+
expression: FilterExpressionKey;
|
6
|
+
unit?: number;
|
7
|
+
name: string;
|
8
|
+
description: string;
|
9
|
+
tiny: string;
|
10
|
+
type: ColumnType[];
|
11
|
+
subtype?: ColumnSubtype[];
|
12
|
+
};
|
13
|
+
export type FilterExpressionKey = '? = ?' | '? != ?' | '? in ?' | '? not in ?' | '? like ?' | '? not like ?' | '? starts with ?' | '? not starts with ?' | '? ends with ?' | '? not ends with ?' | '? < ?' | '? <= ?' | '? > ?' | '? >= ?' | '? between ?' | 'last_now' | 'last_available' | 'last_completed' | 'next_now' | 'next_full' | 'to_date' | '? is null' | '? is not null';
|
14
|
+
export declare const filterExpressionsConfigurations: () => FilterExpressionConfiguration[];
|
15
|
+
export declare const getValidExpressions: (type?: ColumnType, subtype?: ColumnSubtype, isFormula?: boolean) => FilterExpressionConfiguration[];
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -1,5 +1,7 @@
|
|
1
|
-
declare const
|
1
|
+
declare const getLocale: (() => string) & {
|
2
|
+
_LIT_LOCALIZE_GET_LOCALE_?: never;
|
3
|
+
}, setLocale: ((newLocale: string) => Promise<void>) & {
|
2
4
|
_LIT_LOCALIZE_SET_LOCALE_?: never;
|
3
5
|
};
|
4
6
|
export { targetLocales } from './../../generated/locale-codes.js';
|
5
|
-
export { setLocale };
|
7
|
+
export { getLocale, setLocale };
|
@@ -53,4 +53,4 @@ export type Column = {
|
|
53
53
|
width?: number;
|
54
54
|
};
|
55
55
|
export type ColumnType = 'numeric' | 'hierarchy' | 'datetime' | 'spatial';
|
56
|
-
export type ColumnSubtype = 'duration' | 'currency' | 'coordinates' | 'hierarchy_element_expression' | 'topography';
|
56
|
+
export type ColumnSubtype = 'duration' | 'currency' | 'coordinates' | 'hierarchy_element_expression' | 'topography' | 'ip_address';
|
@@ -1,20 +0,0 @@
|
|
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",s079a052719914d71:"Kategorie",s099b18e1bd8a1154:"Stunden",s09c2b609dff29061:"Kumulative Summe",s0acece4c687177a9:"Quartalsnummern",s0bb151c9319a6813:"X-Achse",s1125d159f7e64df5:"Anzeigen",s11326fd2590f4e5e:"Standard",s146475c4daa430ed:"Dezimalstellen",s184501a399a815dc:"Quartale",s18498398aeb37b07:"Woche beginnt am",s1cdb6b07fe827486:"Wochennummer",s1f0916624a87d415:"Tag im Jahr",s2454d1f117573457:"Genauigkeit",s247d110f13a3a288:"Tag in der Woche",s2695506122ffd614:"Sekunde in der Minute",s2798d16f4e04857e:"Minute in der Stunde",s281f1d977ddc0ebe:"Monatsnummer",s2ea38ce3da088075:"Perioden",s2fb2a49481123d6a:"Wochen",s3c6455b19fb1c3e4:"Absoluter Wechsel",s3dcf7b255596a2c3:"Standardabweichung",s441accd1cd3484c9:"Minute",s467b030b9a34b3c8:"Durchschnitt",s48e186fb300e5464:"Zeit",s496c60f73bdf5725:"Aggregation",s4b58c01e2578f5e4:"Legende",s4efbcab48a433013:"Lang",s602805b1eb3106c6:"Y-Achse",s6031881827829901:"24h",s60b34c3c17dc35bd:"Jahre",s66722bc2ea775e05:"Deaktiviert",s669b18c6d2d9c95b:"Keine",s66dcbbc0355c2759:"Sonntag",s680f01021b5e339d:"Woche",s6b0bffd88024372f:"Stunde",s716a6024e3fe999c:"Zeigen",s71a5c9f4b68ef4d4:"Zählen",s740d7e8b131e9e97:"Gewichteter Durchschnitt",s7632fc9aa12bf382:"Monate",s8665d029b5cb8b24:"Gesamtsummen",s8d0259032729869d:"Sekunde",s965c503c3e42fdfe:"Aktiviert",s981f232bd33ec927:"Rate",s987abe19fac8d108:"Summe",s98c337186f2d57c6:"Bin-Breite",s9b9009d4a5004fb8:"Binning",sa3c9339de23c1752:"Format",sa6ab5184d6315895:"Von",sa6f2645578b2d2bc:"Jahr",sac94bb71f7737997:"Median",sacae74732f544fca:"Tage",sb1f654608a3eea75:"Wochentag",sb47daaf9e1c4a905:"Monat",sb5b295e3a7500b9c:"Dauerstufen",sb6513caf69971fb5:"Kurz",sbbb97b1c63507dc0:"Zahl",sc1bf67624fa6d498:"% Änderung",sc27dc998602cdc61:"Beispiel:",sc4842e5b8b90466a:"Sekunden",sc6e49f3d37e54030:"Stunde im Tag",scf2bb2b0de9cdb8a:"Millisekunde",sd237be440de38cc7:"Quartal",sd28141a332dc31fa:"Tag im Monat",sd7ebafacf602c9bd:"Brief",sdb73788b3c975f16:"Automatisch",se0955919920ee87d:"Tag",se211e3d21bbf3bff:"Maß",se2b7530e30fa607d:"Periodenvergleich",se415bbea6c976fb1:"Gruppieren nach",se715be190539325a:"vor",se8e9d799a9e267ce:"Unterschiedliche Zählung",se9ff6e9a514d8cf9:"Montag",seb4eae68d45315b7:"Minimum",see0ec27fb03d880e:"Minuten",sef49aec68fd1dc66:"Name",sf6cda8263b3170af:"Verwenden Sie den Zeitraum bis heute für unvollständige Zeiträume",sf9c10516a62a23db:"Anzeigen als",sfad9ed343e97551c:"Vergangener Wert",sfbac36245480ddbc:"Trennzeichen"};exports.templates=e;
|
@@ -1,53 +0,0 @@
|
|
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";require("./index-C9-QEfA9.cjs");require("./index-uRWe553S.cjs");const t=require("./focusable-Cu_m_GTh.cjs"),c=require("./sized-mixin-Cqlxwicw.cjs"),d=":host{font-family:var(--luzmo-edit-option-component-font-family, var(--luzmo-font-family))}.luzmo-edit-option{height:var(--luzmo-edit-option-component-height, var(--edit-option-component-height));width:100%;display:flex;justify-content:space-between;align-items:center;gap:var(--luzmo-spacing-3);color:var(--luzmo-font-color);font-size:var(--luzmo-font-size-s)}.control-container{display:flex;align-items:center;gap:var(--luzmo-edit-option-control-container-gap, var(--edit-option-control-container-gap));justify-content:end;flex:1}.extra-label{padding-left:var(--luzmo-edit-option-extra-label-padding-left, var(--edit-option-extra-label-padding-left));padding-right:var(--luzmo-edit-option-extra-label-padding-right, var(--edit-option-extra-label-padding-right));font-size:var(--luzmo-edit-option-extra-label-font-size, var(--edit-option-extra-label-font-size))}.extra-link{text-align:right;text-decoration:underline;cursor:pointer}.extra-link:hover{color:var(--luzmo-font-color-hover)}.extra-link.disabled{opacity:.65;cursor:not-allowed}.extra-link.disabled:hover{color:var(--luzmo-font-color-disabled)}:host{--edit-option-component-height: var(--luzmo-component-height);--edit-option-extra-label-padding-right: var(--luzmo-spacing-4);--edit-option-extra-label-padding-left: var(--luzmo-spacing-5);--edit-option-control-container-gap: var(--luzmo-spacing-2);--edit-option-extra-label-font-size: var(--luzmo-font-size-s)}:host([size=s]){--edit-option-component-height: var(--luzmo-component-height-s);--edit-option-extra-label-padding-right: var(--luzmo-spacing-3);--edit-option-extra-label-padding-left: var(--luzmo-spacing-4);--edit-option-control-container-gap: var(--luzmo-spacing-2);--edit-option-extra-label-font-size: var(--luzmo-font-size-xs)}:host([size=l]){--edit-option-component-height: var(--luzmo-component-height-l);--edit-option-extra-label-padding-right: var(--luzmo-spacing-4);--edit-option-extra-label-padding-left: var(--luzmo-spacing-5);--edit-option-control-container-gap: var(--luzmo-spacing-3);--edit-option-extra-label-font-size: var(--luzmo-font-size)}:host([size=xl]){--edit-option-component-height: var(--luzmo-component-height-xl);--edit-option-extra-label-padding-right: var(--luzmo-spacing-5);--edit-option-extra-label-padding-left: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-1) );--edit-option-control-container-gap: var(--luzmo-spacing-4);--edit-option-extra-label-font-size: var(--luzmo-font-size-l)}:host{display:block}";var u=Object.defineProperty,o=(s,a,l,h)=>{for(var i=void 0,n=s.length-1,p;n>=0;n--)(p=s[n])&&(i=p(a,l,i)||i);return i&&u(a,l,i),i};const r=class r extends c.SizedMixin(t.LuzmoElement,{defaultSize:"s",validSizes:["s","m","l","xl"]}){constructor(){super(...arguments),this.disabled=!1,this.label="",this.tooltip="",this.extraLabel="",this.extraLabelHasClickAction=!1,this.extraLabelTooltip=""}handleExtraLabelClick(a){if(this.extraLabelHasClickAction&&typeof this.extraLabelClickAction=="function"){const{value:l}=this.extraLabelClickAction();this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:l}}))}a.preventDefault(),this.dispatchEvent(new CustomEvent("extraLabelClick",{bubbles:!0,composed:!0}))}render(){return t.x`
|
21
|
-
<div class="luzmo-edit-option">
|
22
|
-
${this.label?t.x`
|
23
|
-
<luzmo-field-label
|
24
|
-
.size=${this.size}
|
25
|
-
for="luzmo-edit-option-control"
|
26
|
-
side-aligned="start"
|
27
|
-
>
|
28
|
-
${this.label}
|
29
|
-
${this.tooltip?t.x`
|
30
|
-
*<luzmo-tooltip
|
31
|
-
self-managed
|
32
|
-
placement="top"
|
33
|
-
size=${this.size}
|
34
|
-
>
|
35
|
-
${this.tooltip}
|
36
|
-
</luzmo-tooltip>
|
37
|
-
`:t.E}
|
38
|
-
</luzmo-field-label>
|
39
|
-
`:t.E}
|
40
|
-
|
41
|
-
<div class="control-container">
|
42
|
-
${this.extraLabel?t.x`
|
43
|
-
<div
|
44
|
-
class="extra-label ${this.extraLabelHasClickAction?"extra-link":""}"
|
45
|
-
@click=${this.handleExtraLabelClick}
|
46
|
-
>
|
47
|
-
<span class=""> ${this.extraLabel} </span>
|
48
|
-
</div>
|
49
|
-
`:t.E}
|
50
|
-
${this.renderController()}
|
51
|
-
</div>
|
52
|
-
</div>
|
53
|
-
`}};r.styles=[t.r(d)];let e=r;o([t.n({type:Boolean,reflect:!0})],e.prototype,"disabled");o([t.n({type:String,reflect:!0})],e.prototype,"label");o([t.n({type:String,reflect:!0})],e.prototype,"tooltip");o([t.n({type:String,attribute:"extra-label"})],e.prototype,"extraLabel");o([t.n({type:Boolean,attribute:"extra-label-has-click-action"})],e.prototype,"extraLabelHasClickAction");o([t.n()],e.prototype,"extraLabelClickAction");o([t.n({type:String,attribute:"extra-label-tooltip"})],e.prototype,"extraLabelTooltip");exports.LuzmoEditOptionBase=e;
|
@@ -1,20 +0,0 @@
|
|
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:"Máximo",s079a052719914d71:"Categoría",s099b18e1bd8a1154:"Horas",s09c2b609dff29061:"Suma acumulativa",s0acece4c687177a9:"Números de trimestre",s0bb151c9319a6813:"Eje X",s1125d159f7e64df5:"Mostrar",s11326fd2590f4e5e:"Por defecto",s146475c4daa430ed:"Decimales",s184501a399a815dc:"Trimestres",s18498398aeb37b07:"La semana comienza el",s1cdb6b07fe827486:"Número de semana",s1f0916624a87d415:"Día del año",s2454d1f117573457:"Precisión",s247d110f13a3a288:"Día de la semana",s2695506122ffd614:"Segundo en el minuto",s2798d16f4e04857e:"Minuto en la hora",s281f1d977ddc0ebe:"Número de mes",s2ea38ce3da088075:"Períodos",s2fb2a49481123d6a:"Semanas",s3c6455b19fb1c3e4:"Cambio absoluto",s3dcf7b255596a2c3:"Desviación estándar",s441accd1cd3484c9:"Minuto",s467b030b9a34b3c8:"Promedio",s48e186fb300e5464:"Tiempo",s496c60f73bdf5725:"Agregación",s4b58c01e2578f5e4:"Leyenda",s4efbcab48a433013:"Largo",s602805b1eb3106c6:"Eje Y",s6031881827829901:"24h",s60b34c3c17dc35bd:"Años",s66722bc2ea775e05:"Desactivado",s669b18c6d2d9c95b:"Ninguno",s66dcbbc0355c2759:"Domingo",s680f01021b5e339d:"Semana",s6b0bffd88024372f:"Hora",s716a6024e3fe999c:"Mostrar",s71a5c9f4b68ef4d4:"Contar",s740d7e8b131e9e97:"Promedio ponderado",s7632fc9aa12bf382:"Meses",s8665d029b5cb8b24:"Totales generales",s8d0259032729869d:"Segundo",s965c503c3e42fdfe:"Activado",s981f232bd33ec927:"Tasa",s987abe19fac8d108:"Suma",s98c337186f2d57c6:"Ancho del bin",s9b9009d4a5004fb8:"Agrupamiento",sa3c9339de23c1752:"Formato",sa6ab5184d6315895:"De",sa6f2645578b2d2bc:"Año",sac94bb71f7737997:"Mediana",sacae74732f544fca:"Días",sb1f654608a3eea75:"Día de la semana",sb47daaf9e1c4a905:"Mes",sb5b295e3a7500b9c:"Niveles de duración",sb6513caf69971fb5:"Corto",sbbb97b1c63507dc0:"Número",sc1bf67624fa6d498:"% de cambio",sc27dc998602cdc61:"Ejemplo:",sc4842e5b8b90466a:"Segundos",sc6e49f3d37e54030:"Hora en el día",scf2bb2b0de9cdb8a:"Milisegundo",sd237be440de38cc7:"Trimestre",sd28141a332dc31fa:"Día del mes",sd7ebafacf602c9bd:"Letra",sdb73788b3c975f16:"Automático",se0955919920ee87d:"Día",se211e3d21bbf3bff:"Medida",se2b7530e30fa607d:"Comparación de períodos",se415bbea6c976fb1:"Agrupar por",se715be190539325a:"hace",se8e9d799a9e267ce:"Conteo distinto",se9ff6e9a514d8cf9:"Lunes",seb4eae68d45315b7:"Mínimo",see0ec27fb03d880e:"Minutos",sef49aec68fd1dc66:"Nombre",sf6cda8263b3170af:"Usar período hasta la fecha para períodos incompletos",sf9c10516a62a23db:"Mostrar como",sfad9ed343e97551c:"Valor pasado",sfbac36245480ddbc:"Separador"};exports.templates=e;
|
@@ -1,42 +0,0 @@
|
|
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";/**
|
21
|
-
* @license
|
22
|
-
* Copyright 2019 Google LLC
|
23
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
24
|
-
*/const U=globalThis,B=U.ShadowRoot&&(U.ShadyCSS===void 0||U.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,rt=Symbol(),Z=new WeakMap;let mt=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==rt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(B&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=Z.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Z.set(e,t))}return t}toString(){return this.cssText}};const at=o=>new mt(typeof o=="string"?o:o+"",void 0,rt),bt=(o,t)=>{if(B)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),i=U.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,o.appendChild(s)}},J=B?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return at(e)})(o):o;/**
|
25
|
-
* @license
|
26
|
-
* Copyright 2017 Google LLC
|
27
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
28
|
-
*/const{is:$t,defineProperty:_t,getOwnPropertyDescriptor:gt,getOwnPropertyNames:At,getOwnPropertySymbols:yt,getPrototypeOf:vt}=Object,b=globalThis,G=b.trustedTypes,Et=G?G.emptyScript:"",F=b.reactiveElementPolyfillSupport,w=(o,t)=>o,N={toAttribute(o,t){switch(t){case Boolean:o=o?Et:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},H=(o,t)=>!$t(o,t),Q={attribute:!0,type:String,converter:N,reflect:!1,hasChanged:H};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),b.litPropertyMetadata??(b.litPropertyMetadata=new WeakMap);let A=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Q){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);i!==void 0&&_t(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:r}=gt(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get(){return i==null?void 0:i.call(this)},set(n){const l=i==null?void 0:i.call(this);r.call(this,n),this.requestUpdate(t,l,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Q}static _$Ei(){if(this.hasOwnProperty(w("elementProperties")))return;const t=vt(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(w("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(w("properties"))){const e=this.properties,s=[...At(e),...yt(e)];for(const i of s)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,i]of e)this.elementProperties.set(s,i)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const i=this._$Eu(e,s);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const i of s)e.unshift(J(i))}else t!==void 0&&e.push(J(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return bt(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostConnected)==null?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EC(t,e){var r;const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===!0){const n=(((r=s.converter)==null?void 0:r.toAttribute)!==void 0?s.converter:N).toAttribute(e,s.type);this._$Em=t,n==null?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(t,e){var r;const s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const n=s.getPropertyOptions(i),l=typeof n.converter=="function"?{fromAttribute:n.converter}:((r=n.converter)==null?void 0:r.fromAttribute)!==void 0?n.converter:N;this._$Em=i,this[i]=l.fromAttribute(e,n.type),this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){if(s??(s=this.constructor.getPropertyOptions(t)),!(s.hasChanged??H)(this[t],e))return;this.P(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[r,n]of this._$Ep)this[r]=n;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[r,n]of i)n.wrapped!==!0||this._$AL.has(r)||this[r]===void 0||this.P(r,this[r],n)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(i=>{var r;return(r=i.hostUpdate)==null?void 0:r.call(i)}),this.update(e)):this._$EU()}catch(i){throw t=!1,this._$EU(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(s=>{var i;return(i=s.hostUpdated)==null?void 0:i.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}};A.elementStyles=[],A.shadowRootOptions={mode:"open"},A[w("elementProperties")]=new Map,A[w("finalized")]=new Map,F==null||F({ReactiveElement:A}),(b.reactiveElementVersions??(b.reactiveElementVersions=[])).push("2.0.4");/**
|
29
|
-
* @license
|
30
|
-
* Copyright 2017 Google LLC
|
31
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
32
|
-
*/const x=globalThis,R=x.trustedTypes,X=R?R.createPolicy("lit-html",{createHTML:o=>o}):void 0,lt="$lit$",m=`lit$${Math.random().toFixed(9).slice(2)}$`,ht="?"+m,wt=`<${ht}>`,g=document,C=()=>g.createComment(""),P=o=>o===null||typeof o!="object"&&typeof o!="function",q=Array.isArray,xt=o=>q(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",D=`[
|
33
|
-
\f\r]`,E=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Y=/-->/g,tt=/>/g,$=RegExp(`>|${D}(?:([^\\s"'>=/]+)(${D}*=${D}*(?:[^
|
34
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),et=/'/g,st=/"/g,ct=/^(?:script|style|textarea|title)$/i,dt=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),St=dt(1),Ct=dt(2),y=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),it=new WeakMap,_=g.createTreeWalker(g,129);function ut(o,t){if(!q(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return X!==void 0?X.createHTML(t):t}const Pt=(o,t)=>{const e=o.length-1,s=[];let i,r=t===2?"<svg>":t===3?"<math>":"",n=E;for(let l=0;l<e;l++){const a=o[l];let c,u,h=-1,p=0;for(;p<a.length&&(n.lastIndex=p,u=n.exec(a),u!==null);)p=n.lastIndex,n===E?u[1]==="!--"?n=Y:u[1]!==void 0?n=tt:u[2]!==void 0?(ct.test(u[2])&&(i=RegExp("</"+u[2],"g")),n=$):u[3]!==void 0&&(n=$):n===$?u[0]===">"?(n=i??E,h=-1):u[1]===void 0?h=-2:(h=n.lastIndex-u[2].length,c=u[1],n=u[3]===void 0?$:u[3]==='"'?st:et):n===st||n===et?n=$:n===Y||n===tt?n=E:(n=$,i=void 0);const f=n===$&&o[l+1].startsWith("/>")?" ":"";r+=n===E?a+wt:h>=0?(s.push(c),a.slice(0,h)+lt+a.slice(h)+m+f):a+m+(h===-2?l:f)}return[ut(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]};class T{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let r=0,n=0;const l=t.length-1,a=this.parts,[c,u]=Pt(t,e);if(this.el=T.createElement(c,s),_.currentNode=this.el.content,e===2||e===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(i=_.nextNode())!==null&&a.length<l;){if(i.nodeType===1){if(i.hasAttributes())for(const h of i.getAttributeNames())if(h.endsWith(lt)){const p=u[n++],f=i.getAttribute(h).split(m),O=/([.?@])?(.*)/.exec(p);a.push({type:1,index:r,name:O[2],strings:f,ctor:O[1]==="."?Mt:O[1]==="?"?Ot:O[1]==="@"?Ut:k}),i.removeAttribute(h)}else h.startsWith(m)&&(a.push({type:6,index:r}),i.removeAttribute(h));if(ct.test(i.tagName)){const h=i.textContent.split(m),p=h.length-1;if(p>0){i.textContent=R?R.emptyScript:"";for(let f=0;f<p;f++)i.append(h[f],C()),_.nextNode(),a.push({type:2,index:++r});i.append(h[p],C())}}}else if(i.nodeType===8)if(i.data===ht)a.push({type:2,index:r});else{let h=-1;for(;(h=i.data.indexOf(m,h+1))!==-1;)a.push({type:7,index:r}),h+=m.length-1}r++}}static createElement(t,e){const s=g.createElement("template");return s.innerHTML=t,s}}function v(o,t,e=o,s){var n,l;if(t===y)return t;let i=s!==void 0?(n=e._$Co)==null?void 0:n[s]:e._$Cl;const r=P(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==r&&((l=i==null?void 0:i._$AO)==null||l.call(i,!1),r===void 0?i=void 0:(i=new r(o),i._$AT(o,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=i:e._$Cl=i),i!==void 0&&(t=v(o,i._$AS(o,t.values),i,s)),t}class Tt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=((t==null?void 0:t.creationScope)??g).importNode(e,!0);_.currentNode=i;let r=_.nextNode(),n=0,l=0,a=s[0];for(;a!==void 0;){if(n===a.index){let c;a.type===2?c=new M(r,r.nextSibling,this,t):a.type===1?c=new a.ctor(r,a.name,a.strings,this,t):a.type===6&&(c=new Nt(r,this,t)),this._$AV.push(c),a=s[++l]}n!==(a==null?void 0:a.index)&&(r=_.nextNode(),n++)}return _.currentNode=g,i}p(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class M{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=(i==null?void 0:i.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=v(this,t,e),P(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==y&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):xt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&P(this._$AH)?this._$AA.nextSibling.data=t:this.T(g.createTextNode(t)),this._$AH=t}$(t){var r;const{values:e,_$litType$:s}=t,i=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=T.createElement(ut(s.h,s.h[0]),this.options)),s);if(((r=this._$AH)==null?void 0:r._$AD)===i)this._$AH.p(e);else{const n=new Tt(i,this),l=n.u(this.options);n.p(e),this.T(l),this._$AH=n}}_$AC(t){let e=it.get(t.strings);return e===void 0&&it.set(t.strings,e=new T(t)),e}k(t){q(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const r of t)i===e.length?e.push(s=new M(this.O(C()),this.O(C()),this,this.options)):s=e[i],s._$AI(r),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,r){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=d}_$AI(t,e=this,s,i){const r=this.strings;let n=!1;if(r===void 0)t=v(this,t,e,0),n=!P(t)||t!==this._$AH&&t!==y,n&&(this._$AH=t);else{const l=t;let a,c;for(t=r[0],a=0;a<r.length-1;a++)c=v(this,l[s+a],e,a),c===y&&(c=this._$AH[a]),n||(n=!P(c)||c!==this._$AH[a]),c===d?t=d:t!==d&&(t+=(c??"")+r[a+1]),this._$AH[a]=c}n&&!i&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Mt extends k{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}}class Ot extends k{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}}class Ut extends k{constructor(t,e,s,i,r){super(t,e,s,i,r),this.type=5}_$AI(t,e=this){if((t=v(this,t,e,0)??d)===y)return;const s=this._$AH,i=t===d&&s!==d||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==d&&(s===d||i);i&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class Nt{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){v(this,t)}}const I=x.litHtmlPolyfillSupport;I==null||I(T,M),(x.litHtmlVersions??(x.litHtmlVersions=[])).push("3.2.1");const Rt=(o,t,e)=>{const s=(e==null?void 0:e.renderBefore)??t;let i=s._$litPart$;if(i===void 0){const r=(e==null?void 0:e.renderBefore)??null;s._$litPart$=i=new M(t.insertBefore(C(),r),r,void 0,e??{})}return i._$AI(o),i};/**
|
35
|
-
* @license
|
36
|
-
* Copyright 2017 Google LLC
|
37
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
38
|
-
*/let S=class extends A{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Rt(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return y}};var ot;S._$litElement$=!0,S.finalized=!0,(ot=globalThis.litElementHydrateSupport)==null||ot.call(globalThis,{LitElement:S});const z=globalThis.litElementPolyfillSupport;z==null||z({LitElement:S});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");/**
|
39
|
-
* @license
|
40
|
-
* Copyright 2017 Google LLC
|
41
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
42
|
-
*/const Ht={attribute:!0,type:String,converter:N,reflect:!1,hasChanged:H},kt=(o=Ht,t,e)=>{const{kind:s,metadata:i}=e;let r=globalThis.litPropertyMetadata.get(i);if(r===void 0&&globalThis.litPropertyMetadata.set(i,r=new Map),r.set(e.name,o),s==="accessor"){const{name:n}=e;return{set(l){const a=t.get.call(this);t.set.call(this,l),this.requestUpdate(n,a,o)},init(l){return l!==void 0&&this.P(n,void 0,o),l}}}if(s==="setter"){const{name:n}=e;return function(l){const a=this[n];t.call(this,l),this.requestUpdate(n,a,o)}}throw Error("Unsupported decorator location: "+s)};function L(o){return(t,e)=>typeof e=="object"?kt(o,t,e):((s,i,r)=>{const n=i.hasOwnProperty(r);return i.constructor.createProperty(r,n?{...s,wrapped:!0}:s),n?Object.getOwnPropertyDescriptor(i,r):void 0})(o,t,e)}const j=new Set,Lt=()=>{const o=document.documentElement.dir==="rtl"?document.documentElement.dir:"ltr";j.forEach(t=>{t.setAttribute("dir",o)})},Ft=new MutationObserver(Lt);Ft.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Dt=o=>o.startManagingContentDirection!==void 0||o.tagName==="LUZMO-THEME";function It(o){class t extends o{get isLTR(){return this.dir==="ltr"}hasVisibleFocusInTree(){const i=((r=document)=>{var a;let n=r.activeElement;for(;n!=null&&n.shadowRoot&&n.shadowRoot.activeElement;)n=n.shadowRoot.activeElement;const l=n?[n]:[];for(;n;){const c=n.assignedSlot||n.parentElement||((a=n.getRootNode())==null?void 0:a.host);c&&l.push(c),n=c}return l})(this.getRootNode())[0];if(!i)return!1;try{return i.matches(":focus-visible")||i.matches(".focus-visible")}catch{return i.matches(".focus-visible")}}connectedCallback(){if(!this.hasAttribute("dir")){let s=this.assignedSlot||this.parentNode;for(;s!==document.documentElement&&!Dt(s);)s=s.assignedSlot||s.parentNode||s.host;if(this.dir=s.dir==="rtl"?s.dir:this.dir||"ltr",s===document.documentElement)j.add(this);else{const{localName:i}=s;i.search("-")>-1&&!customElements.get(i)?customElements.whenDefined(i).then(()=>{s.startManagingContentDirection(this)}):s.startManagingContentDirection(this)}this._dirParent=s}super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this._dirParent&&(this._dirParent===document.documentElement?j.delete(this):this._dirParent.stopManagingContentDirection(this),this.removeAttribute("dir"))}}return t}class pt extends It(S){}let V=!0;try{document.body.querySelector(":focus-visible")}catch{V=!1,Promise.resolve().then(()=>zt)}const ft=o=>{var t,e;const s=n=>{if(n.shadowRoot==null||Object.hasOwn(n.dataset,"jsFocusVisible"))return()=>{};if(self.applyFocusVisiblePolyfill)self.applyFocusVisiblePolyfill(n.shadowRoot),n.manageAutoFocus&&n.manageAutoFocus();else{const l=()=>{self.applyFocusVisiblePolyfill&&n.shadowRoot&&self.applyFocusVisiblePolyfill(n.shadowRoot),n.manageAutoFocus&&n.manageAutoFocus()};return self.addEventListener("focus-visible-polyfill-ready",l,{once:!0}),()=>{self.removeEventListener("focus-visible-polyfill-ready",l)}}return()=>{}},i=Symbol("endPolyfillCoordination");class r extends(e=o,t=i,e){constructor(){super(...arguments),this[t]=null}connectedCallback(){super.connectedCallback&&super.connectedCallback(),V||requestAnimationFrame(()=>{this[i]==null&&(this[i]=s(this))})}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback(),V||requestAnimationFrame(()=>{this[i]!=null&&(this[i](),this[i]=null)})}}return r},zt=Object.freeze(Object.defineProperty({__proto__:null,FocusVisiblePolyfillMixin:ft},Symbol.toStringTag,{value:"Module"}));var jt=Object.defineProperty,Vt=Object.getOwnPropertyDescriptor,W=(o,t,e,s)=>{for(var i=s>1?void 0:s?Vt(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&jt(t,e,i),i};function nt(){return new Promise(o=>requestAnimationFrame(()=>o()))}class K extends ft(pt){constructor(){super(...arguments),this.disabled=!1,this.autofocus=!1,this._tabIndex=0,this.manipulatingTabindex=!1,this.autofocusReady=Promise.resolve()}get tabIndex(){if(this.focusElement===this){const e=this.hasAttribute("tabindex")?Number(this.getAttribute("tabindex")):Number.NaN;return Number.isNaN(e)?-1:e}const t=Number.parseFloat(this.hasAttribute("tabindex")&&this.getAttribute("tabindex")||"0");return this.disabled||t<0?-1:this.focusElement?this._tabIndex:t}set tabIndex(t){var e;if(this.manipulatingTabindex){this.manipulatingTabindex=!1;return}if(this.focusElement===this){if(this.disabled)this._tabIndex=t;else if(t!==this._tabIndex){this._tabIndex=t;const s=""+t;this.manipulatingTabindex=!0,this.setAttribute("tabindex",s)}return}if(t===-1?this.addEventListener("pointerdown",this.onPointerdownManagementOfTabIndex):(this.manipulatingTabindex=!0,this.removeEventListener("pointerdown",this.onPointerdownManagementOfTabIndex)),t===-1||this.disabled){if(this.manipulatingTabindex=!0,this.setAttribute("tabindex","-1"),this.removeAttribute("focusable"),this.selfManageFocusElement)return;t===-1?(e=this.focusElement)==null||e.removeAttribute("tabindex"):(this._tabIndex=t,this.manageFocusElementTabindex(t));return}this.setAttribute("focusable",""),this.hasAttribute("tabindex")?this.removeAttribute("tabindex"):this.manipulatingTabindex=!1,this._tabIndex=t,this.manageFocusElementTabindex(t)}onPointerdownManagementOfTabIndex(){this.tabIndex===-1&&setTimeout(()=>{this.tabIndex=0,this.focus({preventScroll:!0}),this.tabIndex=-1})}async manageFocusElementTabindex(t){this.focusElement||await this.updateComplete,t===null?this.focusElement.removeAttribute("tabindex"):this.focusElement!==this&&(this.focusElement.tabIndex=t)}get focusElement(){throw new Error("Must implement focusElement getter!")}get selfManageFocusElement(){return!1}focus(t){this.disabled||!this.focusElement||(this.focusElement===this?Reflect.apply(HTMLElement.prototype.focus,this,[t]):this.focusElement.focus(t))}blur(){const t=this.focusElement||this;t===this?HTMLElement.prototype.blur.apply(this):t.blur()}click(){if(this.disabled)return;const t=this.focusElement||this;t===this?HTMLElement.prototype.click.apply(this):t.click()}manageAutoFocus(){this.autofocus&&(this.dispatchEvent(new KeyboardEvent("keydown",{code:"Tab"})),this.focusElement.focus())}firstUpdated(t){super.firstUpdated(t),(!this.hasAttribute("tabindex")||this.getAttribute("tabindex")!=="-1")&&this.setAttribute("focusable","")}update(t){t.has("disabled")&&this.handleDisabledChanged(this.disabled,t.get("disabled")),super.update(t)}updated(t){super.updated(t),t.has("disabled")&&this.disabled&&this.blur()}async handleDisabledChanged(t,e){const s=()=>this.focusElement!==this&&this.focusElement.disabled!==void 0;t?(this.manipulatingTabindex=!0,this.setAttribute("tabindex","-1"),await this.updateComplete,s()?this.focusElement.disabled=!0:this.setAttribute("aria-disabled","true")):e&&(this.manipulatingTabindex=!0,this.focusElement===this?this.setAttribute("tabindex",""+this._tabIndex):this.removeAttribute("tabindex"),await this.updateComplete,s()?this.focusElement.disabled=!1:this.removeAttribute("aria-disabled"))}async getUpdateComplete(){const t=await super.getUpdateComplete();return await this.autofocusReady,t}connectedCallback(){super.connectedCallback(),this.autofocus&&(this.autofocusReady=new Promise(async t=>{await nt(),await nt(),t()}),this.updateComplete.then(()=>{this.manageAutoFocus()}))}}W([L({type:Boolean,reflect:!0})],K.prototype,"disabled",2);W([L({type:Boolean})],K.prototype,"autofocus",2);W([L({type:Number})],K.prototype,"tabIndex",1);exports.E=d;exports.LuzmoElement=pt;exports.b=Ct;exports.f=H;exports.n=L;exports.r=at;exports.x=St;
|