@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
@@ -20,24 +20,24 @@
|
|
20
20
|
var Co = Object.getPrototypeOf;
|
21
21
|
var $o = Reflect.get;
|
22
22
|
var oo = (r, o, e) => $o(Co(r), e, o);
|
23
|
-
import { a as R,
|
24
|
-
import { n as uo } from "../directive-helpers-
|
25
|
-
import { m as
|
26
|
-
import {
|
27
|
-
import { w as Mo, a as Ho } from "../async-directive-
|
28
|
-
import { l as ho, u as mo } from "../streaming-listener-
|
29
|
-
import { i as Po } from "../text-field-
|
30
|
-
import { p as Ro, d as Fo, a as To } from "../index-
|
31
|
-
import { r as po } from "../focusable-
|
32
|
-
import "../index-
|
33
|
-
import "../index-
|
23
|
+
import { a as R, z as s, I as D, R as m, m as X } from "../base-D76d76ww-BGkuhs54.js";
|
24
|
+
import { n as uo } from "../directive-helpers-Cm6gitnu-CeYtlPO9.js";
|
25
|
+
import { m as N, d as C } from "../if-defined-DOaE2coe-CNT45Xcl.js";
|
26
|
+
import { D as J, g as Eo, v as _o, s as Ao } from "../luzmo-icons-DbwDQtuO-QG0fLECn.js";
|
27
|
+
import { w as Mo, a as Ho } from "../async-directive-BfcqVjDp-BCT-lA4F.js";
|
28
|
+
import { l as ho, u as mo } from "../streaming-listener-CP-JE6Fa-9MH0gENR.js";
|
29
|
+
import { i as Po } from "../text-field-BIADXoLC-B9oE05VF.js";
|
30
|
+
import { p as Ro, d as Fo, a as To } from "../index-BCBLJ-ei.js";
|
31
|
+
import { r as po } from "../focusable-BxtpnzWp-DJQkL8Zv.js";
|
32
|
+
import "../index-CskV_bXp.js";
|
33
|
+
import "../index-CTVNGPeT.js";
|
34
34
|
import { o as eo } from "../when-CDK1Tt5Y-C6ViXC43.js";
|
35
|
-
import { a as Bo } from "../observe-slot-text-
|
36
|
-
import { m as
|
37
|
-
import "../index-
|
38
|
-
import { x as
|
39
|
-
import { e as
|
40
|
-
import { L as
|
35
|
+
import { a as Bo } from "../observe-slot-text-BPfIQQtz-v6B-1BYh.js";
|
36
|
+
import { m as Io } from "../roving-tabindex-DOg4z6ZU-dufnVmvL.js";
|
37
|
+
import "../index-Cb5l6iK_.js";
|
38
|
+
import { x as No, n as F } from "../property-CxtZroGf.js";
|
39
|
+
import { e as Uo } from "../query-Ddbd72Um.js";
|
40
|
+
import { L as Do } from "../edit-option-base-DeQjGX4i.js";
|
41
41
|
const So = () => {
|
42
42
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
43
43
|
const r = document.createElement("style");
|
@@ -68,7 +68,7 @@ var Lo = Object.defineProperty, go = (r, o, e, t) => {
|
|
68
68
|
(a = r[i]) && (l = a(o, e, l) || l);
|
69
69
|
return l && Lo(o, e, l), l;
|
70
70
|
};
|
71
|
-
const bo = class extends
|
71
|
+
const bo = class extends D {
|
72
72
|
constructor() {
|
73
73
|
super(...arguments), this.open = !1, this.color = "rgba(255, 0, 0, 0.5)";
|
74
74
|
}
|
@@ -152,7 +152,7 @@ var Ko = Object.defineProperty, W = (r, o, e, t) => {
|
|
152
152
|
(a = r[i]) && (l = a(o, e, l) || l);
|
153
153
|
return l && Ko(o, e, l), l;
|
154
154
|
};
|
155
|
-
const fo = class extends
|
155
|
+
const fo = class extends D {
|
156
156
|
constructor() {
|
157
157
|
super(...arguments), this.disabled = !1, this.focused = !1, this.open = !1, this.color = "rgba(255, 0, 0, 0.5)";
|
158
158
|
}
|
@@ -231,7 +231,7 @@ function vo(r) {
|
|
231
231
|
function q(r) {
|
232
232
|
return Number(r) <= 1 ? `${Number(r) * 100}%` : r;
|
233
233
|
}
|
234
|
-
function
|
234
|
+
function I(r) {
|
235
235
|
return r.length === 1 ? "0" + r : String(r);
|
236
236
|
}
|
237
237
|
function Yo(r, o, e) {
|
@@ -308,18 +308,18 @@ function Go(r, o, e) {
|
|
308
308
|
}
|
309
309
|
function lo(r, o, e, t) {
|
310
310
|
const l = [
|
311
|
-
|
312
|
-
|
313
|
-
|
311
|
+
I(Math.round(r).toString(16)),
|
312
|
+
I(Math.round(o).toString(16)),
|
313
|
+
I(Math.round(e).toString(16))
|
314
314
|
];
|
315
315
|
return t && l[0].startsWith(l[0].charAt(1)) && l[1].startsWith(l[1].charAt(1)) && l[2].startsWith(l[2].charAt(1)) ? l[0].charAt(0) + l[1].charAt(0) + l[2].charAt(0) : l.join("");
|
316
316
|
}
|
317
317
|
function Jo(r, o, e, t, l) {
|
318
318
|
const i = [
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
319
|
+
I(Math.round(r).toString(16)),
|
320
|
+
I(Math.round(o).toString(16)),
|
321
|
+
I(Math.round(e).toString(16)),
|
322
|
+
I(oe(t))
|
323
323
|
];
|
324
324
|
return l && i[0].startsWith(i[0].charAt(1)) && i[1].startsWith(i[1].charAt(1)) && i[2].startsWith(i[2].charAt(1)) && i[3].startsWith(i[3].charAt(1)) ? i[0].charAt(0) + i[1].charAt(0) + i[2].charAt(0) + i[3].charAt(0) : i.join("");
|
325
325
|
}
|
@@ -1122,7 +1122,7 @@ var ne = Object.defineProperty, ce = Object.getOwnPropertyDescriptor, z = (r, o,
|
|
1122
1122
|
(a = r[i]) && (l = (t ? a(o, e, l) : a(l)) || l);
|
1123
1123
|
return t && l && ne(o, e, l), l;
|
1124
1124
|
};
|
1125
|
-
class g extends
|
1125
|
+
class g extends D {
|
1126
1126
|
constructor() {
|
1127
1127
|
super(...arguments), this.disabled = !1, this.focused = !1, this.labelX = "saturation", this.labelY = "luminosity", this.isLTR = !0, this.languageResolver = new ho(this), this.colorController = new xo(this, {
|
1128
1128
|
extractColorFromState: () => ({
|
@@ -1301,7 +1301,7 @@ class g extends I {
|
|
1301
1301
|
o.button === 0 && (o.stopPropagation(), o.preventDefault(), this.handle.dispatchEvent(new PointerEvent("pointerdown", o)), this.handlePointermove(o));
|
1302
1302
|
}
|
1303
1303
|
render() {
|
1304
|
-
const { width: o = 0, height: e = 0 } = this.boundingClientRect || {}, t = Mo() || Ho(), l = "Color Picker", i =
|
1304
|
+
const { width: o = 0, height: e = 0 } = this.boundingClientRect || {}, t = Mo() || Ho(), l = "Color Picker", i = N(t ? void 0 : "2d slider"), a = this.labelX, n = this.labelY, c = new Intl.NumberFormat(this.languageResolver.language, {
|
1305
1305
|
style: "percent",
|
1306
1306
|
unitDisplay: "narrow"
|
1307
1307
|
}).format(this.x), d = new Intl.NumberFormat(this.languageResolver.language, {
|
@@ -1318,7 +1318,7 @@ class g extends I {
|
|
1318
1318
|
</div>
|
1319
1319
|
|
1320
1320
|
<luzmo-color-handle
|
1321
|
-
tabindex=${
|
1321
|
+
tabindex=${N(this.focused ? void 0 : "0")}
|
1322
1322
|
@focus=${this.forwardFocus}
|
1323
1323
|
?focused=${this.focused}
|
1324
1324
|
class="handle"
|
@@ -1337,7 +1337,7 @@ class g extends I {
|
|
1337
1337
|
|
1338
1338
|
<fieldset
|
1339
1339
|
class="fieldset"
|
1340
|
-
aria-label=${
|
1340
|
+
aria-label=${N(t ? l : void 0)}
|
1341
1341
|
>
|
1342
1342
|
<div role="presentation">
|
1343
1343
|
<input
|
@@ -1740,7 +1740,7 @@ let f = class extends po {
|
|
1740
1740
|
</div>
|
1741
1741
|
</div>
|
1742
1742
|
<luzmo-color-handle
|
1743
|
-
tabindex=${
|
1743
|
+
tabindex=${N(this.focused ? void 0 : "0")}
|
1744
1744
|
@focus=${this.forwardFocus}
|
1745
1745
|
?focused=${this.focused}
|
1746
1746
|
class="handle"
|
@@ -1761,8 +1761,8 @@ let f = class extends po {
|
|
1761
1761
|
class="slider"
|
1762
1762
|
min="0"
|
1763
1763
|
max=${this.mode === "opacity" ? "100" : "360"}
|
1764
|
-
aria-orientation=${
|
1765
|
-
orient=${
|
1764
|
+
aria-orientation=${N(this.vertical ? "vertical" : void 0)}
|
1765
|
+
orient=${N(this.vertical ? "vertical" : void 0)}
|
1766
1766
|
step=${this.step}
|
1767
1767
|
aria-label=${this.label}
|
1768
1768
|
.value=${String(
|
@@ -1945,7 +1945,7 @@ let $ = class extends X(po, {
|
|
1945
1945
|
return m`
|
1946
1946
|
<div
|
1947
1947
|
class="opacity-checkerboard fill"
|
1948
|
-
style=${
|
1948
|
+
style=${N(
|
1949
1949
|
this.color ? `--picked-color: ${this.color}` : void 0
|
1950
1950
|
)}
|
1951
1951
|
>
|
@@ -2001,17 +2001,17 @@ E([
|
|
2001
2001
|
s()
|
2002
2002
|
], $.prototype, "value", 1);
|
2003
2003
|
const ye = ":host{justify-content:flex-start;align-items:flex-start;gap:var(--luzmo-swatch-group-spacing-regular, var(--swatch-group-spacing-regular));flex-flow:wrap;display:inline-flex}:host([density=compact]){gap:var(--luzmo-swatch-group-spacing-compact, var(--swatch-group-spacing-compact))}:host([density=spacious]){gap:var(--luzmo-swatch-group-spacing-spacious, var(--swatch-group-spacing-spacious))}:host{--swatch-group-spacing-compact: 2px;--swatch-group-spacing-regular: 4px;--swatch-group-spacing-spacious: 8px}";
|
2004
|
-
var we = Object.defineProperty, ke = Object.getOwnPropertyDescriptor,
|
2004
|
+
var we = Object.defineProperty, ke = Object.getOwnPropertyDescriptor, U = (r, o, e, t) => {
|
2005
2005
|
for (var l = t > 1 ? void 0 : t ? ke(o, e) : o, i = r.length - 1, a; i >= 0; i--)
|
2006
2006
|
(a = r[i]) && (l = (t ? a(o, e, l) : a(l)) || l);
|
2007
2007
|
return t && l && we(o, e, l), l;
|
2008
2008
|
};
|
2009
|
-
class T extends X(
|
2009
|
+
class T extends X(D, {
|
2010
2010
|
validSizes: ["xs", "s", "m", "l"],
|
2011
2011
|
noDefaultSize: !0
|
2012
2012
|
}) {
|
2013
2013
|
constructor() {
|
2014
|
-
super(), this._selected = [], this.selectedSet = /* @__PURE__ */ new Set(), this.rovingTabindexController = new
|
2014
|
+
super(), this._selected = [], this.selectedSet = /* @__PURE__ */ new Set(), this.rovingTabindexController = new Io(this, {
|
2015
2015
|
focusInIndex: (o) => {
|
2016
2016
|
let e = -1;
|
2017
2017
|
const t = o.findIndex((l, i) => (!o[e] && !l.disabled && (e = i), l.selected && !l.disabled));
|
@@ -2137,25 +2137,25 @@ class T extends X(I, {
|
|
2137
2137
|
);
|
2138
2138
|
}
|
2139
2139
|
}
|
2140
|
-
|
2140
|
+
U([
|
2141
2141
|
s({ reflect: !0 })
|
2142
2142
|
], T.prototype, "border", 2);
|
2143
|
-
|
2143
|
+
U([
|
2144
2144
|
s({ reflect: !0 })
|
2145
2145
|
], T.prototype, "density", 2);
|
2146
|
-
|
2146
|
+
U([
|
2147
2147
|
s({ reflect: !0 })
|
2148
2148
|
], T.prototype, "rounding", 2);
|
2149
|
-
|
2149
|
+
U([
|
2150
2150
|
s({ type: Array })
|
2151
2151
|
], T.prototype, "selected", 1);
|
2152
|
-
|
2152
|
+
U([
|
2153
2153
|
s()
|
2154
2154
|
], T.prototype, "selects", 2);
|
2155
|
-
|
2155
|
+
U([
|
2156
2156
|
s({ reflect: !0 })
|
2157
2157
|
], T.prototype, "shape", 2);
|
2158
|
-
|
2158
|
+
U([
|
2159
2159
|
Fo({ flatten: !0 })
|
2160
2160
|
], T.prototype, "swatches", 2);
|
2161
2161
|
customElements.get("luzmo-swatch") || customElements.define("luzmo-swatch", $);
|
@@ -2190,7 +2190,7 @@ var Se = Object.defineProperty, M = (r, o, e, t) => {
|
|
2190
2190
|
(a = r[i]) && (l = a(o, e, l) || l);
|
2191
2191
|
return l && Se(o, e, l), l;
|
2192
2192
|
};
|
2193
|
-
const wo = class extends X(
|
2193
|
+
const wo = class extends X(D) {
|
2194
2194
|
constructor() {
|
2195
2195
|
super(...arguments), this.color = "rgb(255, 0, 0)", this.noAlphaChannel = !1, this._alpha = 1, this._rgbColor = "rgb(255, 0, 0)", this._rgbaColor = "rgb(255, 0, 0, 1)", this._previousColor = "rgb(255, 0, 0)";
|
2196
2196
|
}
|
@@ -2377,7 +2377,7 @@ var Ae = Object.defineProperty, _ = (r, o, e, t) => {
|
|
2377
2377
|
(a = r[i]) && (l = a(o, e, l) || l);
|
2378
2378
|
return l && Ae(o, e, l), l;
|
2379
2379
|
};
|
2380
|
-
const ko = class extends X(
|
2380
|
+
const ko = class extends X(D) {
|
2381
2381
|
constructor() {
|
2382
2382
|
super(...arguments), this.color = "rgb(255, 0, 0)", this.open = !1, this.disabled = !1, this.placement = "left-start", this.rounding = "full", this.swatches = [], this.noAlphaChannel = !1, this._renderMenu = !1;
|
2383
2383
|
}
|
@@ -2481,7 +2481,7 @@ var Me = Object.defineProperty, H = (r, o, e, t) => {
|
|
2481
2481
|
(a = r[i]) && (l = a(o, e, l) || l);
|
2482
2482
|
return l && Me(o, e, l), l;
|
2483
2483
|
};
|
2484
|
-
const L = class L extends
|
2484
|
+
const L = class L extends Do {
|
2485
2485
|
constructor() {
|
2486
2486
|
super(...arguments), this.value = "transparent", this.disabled = !1, this.noAlphaChannel = !1, this.swatches = [], this.rounding = "full", this.shape = "circle", this.placement = "left-start", this.debounce = 50;
|
2487
2487
|
}
|
@@ -2500,7 +2500,7 @@ const L = class L extends Io {
|
|
2500
2500
|
}, this.debounce ?? 200);
|
2501
2501
|
}
|
2502
2502
|
renderController() {
|
2503
|
-
return
|
2503
|
+
return No`
|
2504
2504
|
<luzmo-color-picker
|
2505
2505
|
.color=${this.value}
|
2506
2506
|
.size=${this.size}
|
@@ -2543,7 +2543,7 @@ H([
|
|
2543
2543
|
F({ type: Number, reflect: !0 })
|
2544
2544
|
], k.prototype, "debounce");
|
2545
2545
|
H([
|
2546
|
-
|
2546
|
+
Uo("luzmo-color-picker")
|
2547
2547
|
], k.prototype, "colorPicker");
|
2548
2548
|
customElements.get("luzmo-edit-option-color-picker") || customElements.define(
|
2549
2549
|
"luzmo-edit-option-color-picker",
|
@@ -17,7 +17,7 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
"use strict";var
|
20
|
+
"use strict";var d=Object.getPrototypeOf;var c=Reflect.get;var p=(o,t,n)=>c(d(o),n,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-CeENkpNK.cjs");const l=require("../property-Dlf9S6Jz.cjs"),h=require("../query-D5qWDopr.cjs"),g=require("../edit-option-base-CSJNbo2E.cjs");var m=Object.defineProperty,i=(o,t,n,f)=>{for(var u=void 0,r=o.length-1,s;r>=0;r--)(s=o[r])&&(u=s(t,n,u)||u);return u&&m(t,n,u),u};const a=class a extends g.LuzmoEditOptionBase{constructor(){super(...arguments),this.value={},this.invalid=!1,this.readonly=!1,this.language="en",this.debounce=200}_handleEvent(){this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{var t,n;this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:typeof this.toValue=="function"?this.toValue(((t=this.multiLangFieldElement)==null?void 0:t.value)??{},this.language??"en"):((n=this.multiLangFieldElement)==null?void 0:n.value)??{}}}))},this.debounce??200)}renderController(){const t=typeof this.parseValue=="function"?this.parseValue(this.value,this.language??"en"):this.value;return l.x`
|
21
21
|
<luzmo-multi-language-field
|
22
22
|
.value=${t}
|
23
23
|
.language=${this.language??"en"}
|
@@ -20,10 +20,10 @@
|
|
20
20
|
var s = Object.getPrototypeOf;
|
21
21
|
var d = Reflect.get;
|
22
22
|
var c = (r, e, u) => d(s(r), u, e);
|
23
|
-
import "../index-
|
24
|
-
import { x as f, n as t } from "../
|
23
|
+
import "../index-CnRQGFHT.js";
|
24
|
+
import { x as f, n as t } from "../property-CxtZroGf.js";
|
25
25
|
import { e as g } from "../query-Ddbd72Um.js";
|
26
|
-
import { L as p } from "../edit-option-base-
|
26
|
+
import { L as p } from "../edit-option-base-DeQjGX4i.js";
|
27
27
|
const z = () => {
|
28
28
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
29
29
|
const r = document.createElement("style");
|
@@ -17,7 +17,7 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
"use strict";var
|
20
|
+
"use strict";var d=Object.getPrototypeOf;var c=Reflect.get;var p=(n,r,s)=>c(d(n),s,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-CBOAQ3-E.cjs");const t=require("../property-Dlf9S6Jz.cjs"),h=require("../query-D5qWDopr.cjs"),f=require("../edit-option-base-CSJNbo2E.cjs");var m=Object.defineProperty,u=(n,r,s,b)=>{for(var i=void 0,l=n.length-1,a;l>=0;l--)(a=n[l])&&(i=a(r,s,i)||i);return i&&m(r,s,i),i};const o=class o extends f.LuzmoEditOptionBase{constructor(){super(...arguments),this.disabled=!1,this.step=1,this.unit=!1,this.debounce=200}_handleEvent(){this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:typeof this.toValue=="function"?this.toValue(this.numberField.value):this.numberField.value}}))},this.debounce??200)}renderController(){const r=typeof this.parseValue=="function"?this.parseValue(this.value):this.value,s=typeof this.parseValue=="function"?this.parseValue(this.default):this.default;return t.x`
|
21
21
|
<luzmo-number-field
|
22
22
|
.value=${r??s??0}
|
23
23
|
.size=${this.size}
|
@@ -29,4 +29,4 @@
|
|
29
29
|
@change=${this._handleEvent}
|
30
30
|
>
|
31
31
|
</luzmo-number-field>
|
32
|
-
`}};o.styles=[p(o,o,"styles")];let e=o;u([t.n({type:Boolean,reflect:!0})],e.prototype,"disabled");u([t.n({type:Number,reflect:!0})],e.prototype,"min");u([t.n({type:Number,reflect:!0})],e.prototype,"max");u([t.n({type:Number,reflect:!0})],e.prototype,"default");u([t.n({type:Number,reflect:!0})],e.prototype,"value");u([t.n({type:Number,reflect:!0})],e.prototype,"step");u([t.n({type:String,reflect:!0})],e.prototype,"unit");u([t.n({type:Number,reflect:!0})],e.prototype,"debounce");u([t.n()],e.prototype,"parseValue");u([t.n()],e.prototype,"toValue");u([
|
32
|
+
`}};o.styles=[p(o,o,"styles")];let e=o;u([t.n({type:Boolean,reflect:!0})],e.prototype,"disabled");u([t.n({type:Number,reflect:!0})],e.prototype,"min");u([t.n({type:Number,reflect:!0})],e.prototype,"max");u([t.n({type:Number,reflect:!0})],e.prototype,"default");u([t.n({type:Number,reflect:!0})],e.prototype,"value");u([t.n({type:Number,reflect:!0})],e.prototype,"step");u([t.n({type:String,reflect:!0})],e.prototype,"unit");u([t.n({type:Number,reflect:!0})],e.prototype,"debounce");u([t.n()],e.prototype,"parseValue");u([t.n()],e.prototype,"toValue");u([h.e("luzmo-number-field")],e.prototype,"numberField");customElements.get("luzmo-edit-option-number-field")||customElements.define("luzmo-edit-option-number-field",e);exports.LuzmoEditOptionNumberField=e;
|
@@ -20,10 +20,10 @@
|
|
20
20
|
var a = Object.getPrototypeOf;
|
21
21
|
var d = Reflect.get;
|
22
22
|
var s = (r, t, u) => d(a(r), u, t);
|
23
|
-
import "../index-
|
24
|
-
import { x as f, n as l } from "../
|
23
|
+
import "../index-Desl7GJ0.js";
|
24
|
+
import { x as f, n as l } from "../property-CxtZroGf.js";
|
25
25
|
import { e as p } from "../query-Ddbd72Um.js";
|
26
|
-
import { L as b } from "../edit-option-base-
|
26
|
+
import { L as b } from "../edit-option-base-DeQjGX4i.js";
|
27
27
|
const z = () => {
|
28
28
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
29
29
|
const r = document.createElement("style");
|
@@ -17,7 +17,7 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
"use strict";var
|
20
|
+
"use strict";var h=Object.getPrototypeOf;var c=Reflect.get;var p=(i,e,l)=>c(h(i),l,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-Bafc5poK.cjs");require("../index-c2uKLWDt.cjs");const s=require("../property-Dlf9S6Jz.cjs"),d=require("../edit-option-base-CSJNbo2E.cjs");var m=Object.defineProperty,a=(i,e,l,f)=>{for(var n=void 0,u=i.length-1,o;u>=0;u--)(o=i[u])&&(n=o(e,l,n)||n);return n&&m(e,l,n),n};const r=class r extends d.LuzmoEditOptionBase{constructor(){super(...arguments),this.values={},this.disabled=!1,this.placement="bottom-end"}_handleEvent(e){this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:typeof this.toValue=="function"?this.toValue(e.detail):e.detail}}))}generateMenuItems(){return s.x`
|
21
21
|
${Object.entries(this.values).map(([e,l])=>s.x`
|
22
22
|
<luzmo-menu-item value=${e}> ${l} </luzmo-menu-item>
|
23
23
|
`)}
|
@@ -32,4 +32,4 @@
|
|
32
32
|
>
|
33
33
|
${this.generateMenuItems()}
|
34
34
|
</luzmo-picker>
|
35
|
-
`}};
|
35
|
+
`}};r.styles=[p(r,r,"styles")];let t=r;a([s.n({type:Object})],t.prototype,"values");a([s.n({type:Boolean,reflect:!0})],t.prototype,"disabled");a([s.n()],t.prototype,"placement");a([s.n({type:String,reflect:!0})],t.prototype,"value");a([s.n()],t.prototype,"parseValue");a([s.n()],t.prototype,"toValue");a([s.n({type:String})],t.prototype,"default");customElements.get("luzmo-edit-option-picker")||customElements.define("luzmo-edit-option-picker",t);exports.LuzmoEditOptionPicker=t;
|
@@ -20,10 +20,10 @@
|
|
20
20
|
var z = Object.getPrototypeOf;
|
21
21
|
var d = Reflect.get;
|
22
22
|
var s = (l, o, r) => d(z(l), r, o);
|
23
|
-
import "../index-
|
24
|
-
import "../index-
|
25
|
-
import { x as n, n as t } from "../
|
26
|
-
import { L as f } from "../edit-option-base-
|
23
|
+
import "../index-Cb5l6iK_.js";
|
24
|
+
import "../index-BwsEWpIS.js";
|
25
|
+
import { x as n, n as t } from "../property-CxtZroGf.js";
|
26
|
+
import { L as f } from "../edit-option-base-DeQjGX4i.js";
|
27
27
|
const p = () => {
|
28
28
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
29
29
|
const l = document.createElement("style");
|
@@ -17,7 +17,7 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
"use strict";var m=Object.getPrototypeOf;var h=Reflect.get;var c=(r,o,i)=>h(m(r),i,o);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-
|
20
|
+
"use strict";var m=Object.getPrototypeOf;var h=Reflect.get;var c=(r,o,i)=>h(m(r),i,o);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-CSm0I7Gz.cjs");const e=require("../property-Dlf9S6Jz.cjs"),k=require("../edit-option-base-CSJNbo2E.cjs"),v=":host{height:var(--luzmo-edit-option-position-picker-grid-height, var(--edit-option-position-picker-grid-height));display:flex;align-items:center}.luzmo-edit-option{height:var(--luzmo-edit-option-position-picker-grid-height, var(--edit-option-position-picker-grid-height))}.position-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--luzmo-edit-option-position-picker-grid-gap, var(--edit-option-position-picker-grid-gap));width:var(--luzmo-edit-option-position-picker-grid-width, var(--edit-option-position-picker-grid-width));box-sizing:border-box;border:.0625rem solid var(--luzmo-edit-option-position-picker-grid-border-color, var(--luzmo-border-color));padding:var(--luzmo-edit-option-position-picker-grid-padding, var(--edit-option-position-picker-grid-padding));border-radius:var(--luzmo-edit-option-position-picker-grid-border-radius, var(--edit-option-position-picker-grid-border-radius))}.position-item{width:100%;height:var(--luzmo-edit-option-position-picker-item-height, var(--edit-option-position-picker-item-height));box-sizing:border-box;border:.0625rem solid var(--luzmo-edit-option-position-picker-border-color, var(--luzmo-border-color));border-radius:var(--luzmo-edit-option-position-picker-border-radius, var(--edit-option-position-picker-border-radius));background:var(--luzmo-edit-option-position-picker-background, var(--luzmo-background-color-highlight));transition:background-color var(--luzmo-edit-option-position-picker-animation-duration, var(--luzmo-animation-duration)) ease-in-out;cursor:pointer}.position-item:hover{background-color:var(--luzmo-edit-option-position-picker-background-hover, var(--luzmo-background-color-highlight-down))}.position-item.selected,.position-item.selected:hover,.position-item.selected:active,.position-item.selected:focus{background-color:var(--luzmo-edit-option-position-picker-background-selected, var(--luzmo-primary));transition:background-color var(--luzmo-edit-option-position-picker-selected-animation-duration, 0) ease-in-out}.position-item.position-item-not-allowed{opacity:0}:host{--edit-option-position-picker-grid-height: 7rem;--edit-option-position-picker-grid-width: 7rem;--edit-option-position-picker-border-radius: var(--luzmo-border-radius);--edit-option-position-picker-grid-border-radius: var(--luzmo-border-radius);--edit-option-position-picker-grid-padding: .25rem;--edit-option-position-picker-item-height: 1.75rem;--edit-option-position-picker-grid-gap: .25rem}:host([size=s]){--edit-option-position-picker-grid-height: 5.125rem;--edit-option-position-picker-grid-width: 5.625rem;--edit-option-position-picker-border-radius: var(--luzmo-border-radius);--edit-option-position-picker-grid-border-radius: var( --luzmo-border-radius-s );--edit-option-position-picker-grid-padding: .125rem;--edit-option-position-picker-item-height: 1.5rem;--edit-option-position-picker-grid-gap: .125rem}:host([size=l]){--edit-option-position-picker-grid-height: 8rem;--edit-option-position-picker-grid-width: 8rem;--edit-option-position-picker-border-radius: var(--luzmo-border-radius-l);--edit-option-position-picker-grid-border-radius: var( --luzmo-border-radius-l );--edit-option-position-picker-grid-padding: .3rem;--edit-option-position-picker-item-height: 2rem;--edit-option-position-picker-grid-gap: .25rem}:host([size=xl]){--edit-option-position-picker-grid-height: 9rem;--edit-option-position-picker-grid-width: 9rem;--edit-option-position-picker-border-radius: var(--luzmo-border-radius-xl);--edit-option-position-picker-grid-border-radius: var( --luzmo-border-radius-xl );--edit-option-position-picker-grid-padding: .375rem;--edit-option-position-picker-item-height: 2.25rem;--edit-option-position-picker-grid-gap: .275rem}";var b=Object.defineProperty,n=(r,o,i,s)=>{for(var p=void 0,a=r.length-1,l;a>=0;a--)(l=r[a])&&(p=l(o,i,p)||p);return p&&b(o,i,p),p};const g=["topLeft","top","topRight","left","center","right","bottomLeft","bottom","bottomRight"],u=g.filter(r=>r!=="center"),d=class d extends k.LuzmoEditOptionBase{constructor(){super(...arguments),this.default="topRight",this.positions=u,this.readonly=!1}_handleEvent(){this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:this.value}}))}_handleClick(o){var i;(i=this.positions)!=null&&i.includes(o)&&(this.value=o,this._handleEvent())}willUpdate(){this.value=this.value??this.default??"topRight",this.positions=this.positions??u}renderController(){const o=g.map(i=>{var s;return e.x`
|
21
21
|
<div
|
22
22
|
class="position-item ${(s=this.positions)!=null&&s.includes(i)?"position-item-allowed":"position-item-not-allowed"} ${this.value===i?"selected":""}"
|
23
23
|
@click=${this._handleClick.bind(this,i)}
|
@@ -20,9 +20,9 @@
|
|
20
20
|
var z = Object.getPrototypeOf;
|
21
21
|
var h = Reflect.get;
|
22
22
|
var a = (i, r, o) => h(z(i), o, r);
|
23
|
-
import "../index-
|
24
|
-
import { r as f, x as c, n as d } from "../
|
25
|
-
import { L as v } from "../edit-option-base-
|
23
|
+
import "../index-BbuNpVBr.js";
|
24
|
+
import { r as f, x as c, n as d } from "../property-CxtZroGf.js";
|
25
|
+
import { L as v } from "../edit-option-base-DeQjGX4i.js";
|
26
26
|
const b = () => {
|
27
27
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
28
28
|
const i = document.createElement("style");
|
@@ -17,7 +17,7 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../luzmo-icons-
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../luzmo-icons-Nyf1P71v.cjs");require("../index-CBOAQ3-E.cjs");const s=require("../property-Dlf9S6Jz.cjs"),$=require("../state-CrfOw8Zp.cjs"),x=require("../edit-option-base-CSJNbo2E.cjs"),S=":host{--edit-option-positions-number-field-container-row-gap: var( --luzmo-spacing-2 );--edit-option-positions-number-field-container-column-gap: var( --luzmo-spacing-2 );--edit-option-positions-number-field-sync-height: calc( var(--luzmo-component-height) * 1.5 )}:host([size=s]){--edit-option-positions-number-field-sync-height: calc( var(--luzmo-component-height-s) * 1.5 )}:host([size=l]){--edit-option-positions-number-field-sync-height: calc( var(--luzmo-component-height-l) * 1.5 )}:host([size=xl]){--edit-option-positions-number-field-sync-height: calc( var(--luzmo-component-height-xl) * 1.5 )}:host{--var: test}.positions-container{max-width:var(--luzmo-edit-option-positions-number-field-container-max-width, var(--edit-option-positions-number-field-container-max-width));display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);row-gap:var(--luzmo-edit-option-positions-number-field-container-row-gap, var(--edit-option-positions-number-field-container-row-gap));column-gap:var(--luzmo-edit-option-positions-number-field-container-column-gap, var(--edit-option-positions-number-field-container-column-gap))}.position,.sync-button{display:flex;align-items:center;justify-content:center}.sync-button{cursor:pointer}.sync-button[position=center].sync{border:var(--luzmo-edit-option-positions-number-field-sync-border-width, var(--luzmo-border-width)) solid var(--luzmo-edit-option-positions-number-field-sync-border-color, var(--luzmo-primary));border-radius:var(--luzmo-edit-option-positions-number-field-sync-border-radius, var(--luzmo-border-radius));height:var(--luzmo-edit-option-positions-number-field-sync-height, var(--edit-option-positions-number-field-sync-height))}.no-sync-center{border:var(--luzmo-edit-option-positions-number-field-no-sync-center-border-width, var(--luzmo-border-width)) solid var(--luzmo-edit-option-positions-number-field-no-sync-center-border-color, var(--luzmo-border-color));border-radius:var(--luzmo-edit-option-positions-number-field-no-sync-center-border-radius, var(--luzmo-border-radius));height:var(--luzmo-edit-option-positions-number-field-sync-height, var(--edit-option-positions-number-field-sync-height));background-color:var(--luzmo-edit-option-positions-number-field-no-sync-center-background-color, var(--luzmo-background-color-highlight))}";var V=Object.defineProperty,a=(f,t,i,n)=>{for(var e=void 0,o=f.length-1,r;o>=0;o--)(r=f[o])&&(e=r(t,i,e)||e);return e&&V(t,i,e),e};class u extends x.LuzmoEditOptionBase{constructor(){super(...arguments),this.canSync=!0,this.invalid=!1,this.readonly=!1,this.debounce=200,this._positions=[["top-left","top","top-right"],["left","center","right"],["bottom-left","bottom","bottom-right"]]}static get styles(){return[s.r(S)]}_calculateSyncedValue(){var n;let t;const i={};return(n=this.positions)==null||n.forEach(e=>{var o,r,l;i[e]=((o=this.values)==null?void 0:o[e])??((l=(r=this.positionConfiguration)==null?void 0:r[e])==null?void 0:l.default)??0,t=typeof t=="number"&&i[e]?Math.min(t,i[e]):i[e]}),t}toggleSync(){if(this.sync=!this.sync,this.sync&&(this.syncedValue=this._calculateSyncedValue(),typeof this.syncedValue=="number")){this.values={...this.values};for(const t of this.positions??[])this.values[t]=this.syncedValue}}_handleEvent(t){const i=t.target.getAttribute("position"),n=t.target.value;let e={};if(!(!i||typeof n!="number")){if(this.canSync&&this.sync&&i==="center"){this.syncedValue=n;for(const o of this.positions??[])e[o]=n}else e={...this.values,[i]:n};this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{var c;const o=Object.keys(this.values??{}),r=Object.keys(e);let l=!0;o.length!==r.length&&(l=!1);for(const d of o)((c=this.values)==null?void 0:c[d])!==e[d]&&(l=!1);l||(this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{values:{...e}}})),this.values=e)},this.debounce??200)}}_renderNumberField(t){var i,n,e,o,r,l,c,d,p,h,m;return(i=this.positions)!=null&&i.includes(t)||t==="center"?this.canSync&&(this.sync&&t!=="center"||!this.sync&&t==="center")?s.x`<div
|
21
21
|
class="sync-button ${this.sync?"":"sync"}"
|
22
22
|
position=${t}
|
23
23
|
@click=${this.toggleSync}
|
@@ -17,11 +17,11 @@
|
|
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 "../index-
|
22
|
-
import { r as
|
23
|
-
import { r as C } from "../state-
|
24
|
-
import { L as V } from "../edit-option-base-
|
20
|
+
import { a3 as k, a4 as S } from "../luzmo-icons-CPucBq6e.js";
|
21
|
+
import "../index-Desl7GJ0.js";
|
22
|
+
import { r as $, x as p, n as m } from "../property-CxtZroGf.js";
|
23
|
+
import { r as C } from "../state-BVYsk_HZ.js";
|
24
|
+
import { L as V } from "../edit-option-base-DeQjGX4i.js";
|
25
25
|
const w = () => {
|
26
26
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
27
27
|
const d = document.createElement("style");
|
@@ -44,7 +44,7 @@ class s extends V {
|
|
44
44
|
];
|
45
45
|
}
|
46
46
|
static get styles() {
|
47
|
-
return [
|
47
|
+
return [$(_)];
|
48
48
|
}
|
49
49
|
_calculateSyncedValue() {
|
50
50
|
var r;
|
@@ -102,7 +102,7 @@ class s extends V {
|
|
102
102
|
position=${o}
|
103
103
|
@click=${this.toggleSync}
|
104
104
|
>
|
105
|
-
${k(
|
105
|
+
${k(S)}
|
106
106
|
</div>` : !this.canSync && !((r = this.positions) != null && r.includes("center")) && o === "center" ? p`<div class="no-sync-center"></div>` : p`<div class="position">
|
107
107
|
<luzmo-number-field
|
108
108
|
position=${o}
|
@@ -17,11 +17,11 @@
|
|
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";var d=Object.getPrototypeOf;var h=Reflect.get;var c=(l,e,t)=>h(d(l),t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-
|
20
|
+
"use strict";var d=Object.getPrototypeOf;var h=Reflect.get;var c=(l,e,t)=>h(d(l),t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-C2PPSv8E.cjs");require("../index-CnpJUw_z.cjs");const a=require("../property-Dlf9S6Jz.cjs"),v=require("../query-D5qWDopr.cjs"),y=require("../edit-option-base-CSJNbo2E.cjs");var f=Object.defineProperty,i=(l,e,t,r)=>{for(var o=void 0,n=l.length-1,p;n>=0;n--)(p=l[n])&&(o=p(e,t,o)||o);return o&&f(e,t,o),o};const u=class u extends y.LuzmoEditOptionBase{constructor(){super(...arguments),this.values={},this.disabled=!1}generateRadioButtons(){const e=Object.entries(this.values).map(([t,r])=>a.x`
|
21
21
|
<luzmo-action-button value=${t} ?disabled=${this.disabled}>
|
22
|
-
${
|
22
|
+
${r}
|
23
23
|
</luzmo-action-button>
|
24
|
-
`);return a.x` ${e} `}_handleEvent(){var e,t,
|
24
|
+
`);return a.x` ${e} `}_handleEvent(){var e,t,r,o;this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:typeof this.toValue=="function"?this.toValue((t=(e=this.actionGroup)==null?void 0:e.selected)==null?void 0:t[0]):(o=(r=this.actionGroup)==null?void 0:r.selected)==null?void 0:o[0]}}))}renderController(){const e=typeof this.parseValue=="function"?this.parseValue(this.value):this.value,t=typeof this.parseValue=="function"?this.parseValue(this.default):this.default;return a.x`
|
25
25
|
<luzmo-action-group
|
26
26
|
compact
|
27
27
|
selects="single"
|
@@ -33,4 +33,4 @@
|
|
33
33
|
>
|
34
34
|
${this.generateRadioButtons()}
|
35
35
|
</luzmo-action-group>
|
36
|
-
`}};
|
36
|
+
`}};u.styles=[c(u,u,"styles")];let s=u;i([a.n({type:Array})],s.prototype,"values");i([a.n({type:Boolean,reflect:!0})],s.prototype,"disabled");i([a.n({type:String})],s.prototype,"value");i([a.n({type:String})],s.prototype,"default");i([a.n()],s.prototype,"parseValue");i([a.n()],s.prototype,"toValue");i([v.e("luzmo-action-group")],s.prototype,"actionGroup");customElements.get("luzmo-edit-option-radio-button-group")||customElements.define("luzmo-edit-option-radio-button-group",s);exports.LuzmoEditOptionRadioButtonGroup=s;
|
@@ -20,11 +20,11 @@
|
|
20
20
|
var z = Object.getPrototypeOf;
|
21
21
|
var p = Reflect.get;
|
22
22
|
var d = (t, o, e) => p(z(t), e, o);
|
23
|
-
import "../index-
|
24
|
-
import "../index-
|
25
|
-
import { x as m, n as i } from "../
|
23
|
+
import "../index-rQxtPaJl.js";
|
24
|
+
import "../index-BHJH1eGn.js";
|
25
|
+
import { x as m, n as i } from "../property-CxtZroGf.js";
|
26
26
|
import { e as b } from "../query-Ddbd72Um.js";
|
27
|
-
import { L as g } from "../edit-option-base-
|
27
|
+
import { L as g } from "../edit-option-base-DeQjGX4i.js";
|
28
28
|
const f = () => {
|
29
29
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
30
30
|
const t = document.createElement("style");
|