@luzmo/analytics-components-kit 1.0.1-alpha.6 → 1.0.1-alpha.7
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-DWRUSKKF-CNTJHpgh.js → async-directive-DWRUSKKF-CmOVMf6V.js} +1 -1
- package/components/{async-directive-DWRUSKKF-C2JoUGYR.cjs → async-directive-DWRUSKKF-D4itZyzc.cjs} +1 -1
- package/components/{button-base-B7v4eeRh-CjngVDsD.cjs → button-base-B7v4eeRh-BKKUK3x0.cjs} +1 -1
- package/components/{button-base-B7v4eeRh-B4fczZlv.js → button-base-B7v4eeRh-D3-GH03o.js} +3 -3
- package/components/{checkbox-mixin-BFGTmw17-BR4ufh0S.js → checkbox-mixin-BFGTmw17-C34LMsgu.js} +2 -2
- package/components/{checkbox-mixin-BFGTmw17-lIHmn1jk.cjs → checkbox-mixin-BFGTmw17-CCjGd0nS.cjs} +1 -1
- package/components/{directive-helpers-nlQRAaQt-CQ_hWlbQ.cjs → directive-helpers-nlQRAaQt-3kEWF2GV.cjs} +1 -1
- package/components/{directive-helpers-nlQRAaQt-arNFWD5u.js → directive-helpers-nlQRAaQt-I6T4KZKW.js} +1 -1
- package/components/display-settings/index.cjs +3 -3
- package/components/display-settings/index.js +11 -11
- package/components/display-settings-binning/index.cjs +2 -2
- package/components/display-settings-binning/index.js +11 -11
- package/components/display-settings-datetime/index.cjs +1 -1
- package/components/display-settings-datetime/index.js +1 -1
- package/components/display-settings-grand-totals/index.cjs +2 -2
- package/components/display-settings-grand-totals/index.js +12 -12
- package/components/display-settings-numeric/index.cjs +2 -2
- package/components/display-settings-numeric/index.js +36 -36
- package/components/display-settings-period-over-period/index.cjs +2 -2
- package/components/display-settings-period-over-period/index.js +17 -17
- package/components/draggable-data-item/index.cjs +1 -1
- package/components/draggable-data-item/index.js +2 -2
- package/components/draggable-data-item-level/index.cjs +5 -5
- package/components/draggable-data-item-level/index.js +85 -85
- package/components/droppable-slot/index.cjs +3 -3
- package/components/droppable-slot/index.js +5 -5
- package/components/edit-item/index.cjs +2 -2
- package/components/edit-item/index.js +17 -17
- package/components/edit-option/index.cjs +1 -1
- package/components/edit-option/index.js +3 -3
- package/components/edit-option-action-button-group/index.cjs +2 -2
- package/components/edit-option-action-button-group/index.js +37 -37
- package/components/{edit-option-base-Ck3NFAli.cjs → edit-option-base-Boz7TNRZ.cjs} +1 -1
- package/components/{edit-option-base-w3UBiCoU.js → edit-option-base-qePiIQWd.js} +4 -4
- package/components/edit-option-color-picker/index.cjs +15 -15
- package/components/edit-option-color-picker/index.js +58 -58
- package/components/edit-option-multi-language-field/index.cjs +1 -1
- package/components/edit-option-multi-language-field/index.js +3 -3
- package/components/edit-option-number-field/index.cjs +1 -1
- package/components/edit-option-number-field/index.js +3 -3
- package/components/edit-option-picker/index.cjs +1 -1
- package/components/edit-option-picker/index.js +4 -4
- package/components/edit-option-positions-number-field/index.cjs +3 -3
- package/components/edit-option-positions-number-field/index.js +7 -7
- package/components/edit-option-radio-button-group/index.cjs +1 -1
- package/components/edit-option-radio-button-group/index.js +4 -4
- package/components/edit-option-slider/index.cjs +1 -1
- package/components/edit-option-slider/index.js +3 -3
- package/components/edit-option-switch/index.cjs +1 -1
- package/components/edit-option-switch/index.js +4 -4
- package/components/edit-option-text-field/index.cjs +1 -1
- package/components/edit-option-text-field/index.js +3 -3
- package/components/{index-DeyQ1JGg.js → en-DMOM5QNw.js} +411 -404
- package/components/{en-GB-BMvD7axC.js → en-GB-BPwcXBDg.js} +1 -1
- package/components/{en-BvtH5B9A.cjs → en-GB-Cp6Zq89F.cjs} +1 -1
- package/components/en-o_2c6hRN.cjs +202 -0
- package/components/{if-defined-aQZR75uI.cjs → if-defined-8BOch-oC.cjs} +1 -1
- package/components/{if-defined-BSAr_4u4-CVDyXUmc.js → if-defined-BSAr_4u4-4Ys8VE7T.js} +1 -1
- package/components/{if-defined-BSAr_4u4-CNmaFBUP.cjs → if-defined-BSAr_4u4-gECNwmTC.cjs} +1 -1
- package/components/{if-defined-_S7apvH1.js → if-defined-Bv6MRdSW.js} +1 -1
- package/components/{index-f8GtjOLn.cjs → index-86cIx1Ql.cjs} +1 -1
- package/components/{index-aLxc3xA_.js → index-B3ve6cAj.js} +19 -19
- package/components/{index-Pmv-d4iw.js → index-B5Wvyv9s.js} +20 -20
- package/components/{index-FSUV_4nO.js → index-BBrer3_5.js} +1 -1
- package/components/{index-DDleIdd8.cjs → index-BJVxTeoi.cjs} +1 -1
- package/components/{index-DiSrnT1e.js → index-BUSWsm5N.js} +10 -10
- package/components/{index-CHLcEawI.js → index-BVX_ozT9.js} +2 -2
- package/components/{index-fbS4OrPM.js → index-BYfDERr7.js} +3 -3
- package/components/{index-BuW8doNV.js → index-Bee1uunR.js} +4 -4
- package/components/{index-C_xCeCrL.cjs → index-BrEDK88k.cjs} +6 -6
- package/components/{index-CdHFj3ra.cjs → index-Bt5nP_6w.cjs} +1 -1
- package/components/{index-DC2Pby0z.cjs → index-ByjLd3bT.cjs} +2 -2
- package/components/{index-Ci0Pe5UA.js → index-C8IL2IZ6.js} +4 -4
- package/components/{index-CMvLpPKD-CgGXdNKs.js → index-CMvLpPKD-D5MpMVYZ.js} +15 -15
- package/components/{index-CMvLpPKD-DoxJRhRP.cjs → index-CMvLpPKD-Yf1PLWrj.cjs} +6 -6
- package/components/{index-DUlH3hbL.js → index-CXIT0cYY.js} +5 -5
- package/components/{index-dJXOanPE.js → index-CdCtJpK9.js} +6 -6
- package/components/{index-B0ZqIWfU.cjs → index-CdUTqQ3L.cjs} +2 -2
- package/components/{index-BEi8DTwW.cjs → index-CdpyJ7hp.cjs} +1 -1
- package/components/{index-C44nA7Wn.js → index-CfEn3fIT.js} +3 -3
- package/components/{index-BxFGd_xp.cjs → index-D8qmoauu.cjs} +1 -1
- package/components/{index-DxXcY78P.cjs → index-DEVOZNSc.cjs} +1 -1
- package/components/{index-CKbGBBId.cjs → index-DUO13KGl.cjs} +1 -1
- package/components/{index-C_Cxv6xn.js → index-DVAsMiOm.js} +4 -4
- package/components/{index-Dkom_Qy5.js → index-DnozlYag.js} +1 -1
- package/components/{index-ByfMhxDr.cjs → index-h9T5DPIm.cjs} +2 -2
- package/components/{index-Bti4K2L2.cjs → index-i8GaIN7i.cjs} +1 -1
- package/components/{index-EkTLplXl.cjs → index-iYpAy-Kg.cjs} +4 -4
- package/components/{index-DMbzEC_s.js → index-ymMEPngt.js} +23 -23
- package/components/{index-DLrQ4hc5.cjs → index-zuArOtOt.cjs} +2 -2
- package/components/index.cjs +1 -1
- package/components/index.js +1 -1
- package/components/{language-resolution-8yZa5r_P-CLZhU076.js → language-resolution-8yZa5r_P-Bn0bYosv.js} +3 -3
- package/components/{language-resolution-8yZa5r_P-CpbzT4ej.cjs → language-resolution-8yZa5r_P-FqQChUDW.cjs} +1 -1
- package/components/luzmo-icons-BE2T8vWu.js +613 -0
- package/components/luzmo-icons-XsFsTAl3.cjs +31 -0
- package/components/{observe-slot-text-ggb4kKgY-DqsddtTd.cjs → observe-slot-text-ggb4kKgY-DBVrKDBD.cjs} +1 -1
- package/components/{observe-slot-text-ggb4kKgY-yUxhPbbJ.js → observe-slot-text-ggb4kKgY-o5QFWUeA.js} +2 -2
- package/components/{popover-DlkzrLpl-TYw7ejnD.cjs → popover-DlkzrLpl-BhTvuvTu.cjs} +1 -1
- package/components/{popover-DlkzrLpl-DFIvgCjc.js → popover-DlkzrLpl-CCwcTIXr.js} +3 -3
- package/components/{property-ChsOQ1Yj.cjs → property-0L4eB11h.cjs} +17 -17
- package/components/{property-CXJD1jOW.js → property-B2F7x7Cz.js} +301 -300
- package/components/{sized-mixin-BxMraZLS-Dc6r-Wg4.js → sized-mixin-BxMraZLS-B_y0PzR3.js} +1 -1
- package/components/{sized-mixin-BxMraZLS-w9I35lP7.cjs → sized-mixin-BxMraZLS-DEFWqo8f.cjs} +1 -1
- package/components/slot-menu/index.cjs +4 -4
- package/components/slot-menu/index.js +4 -4
- package/components/slot-menu-list/index.cjs +3 -3
- package/components/slot-menu-list/index.js +12 -12
- package/components/{state-DLrsMPet.cjs → state-BFA93Sye.cjs} +1 -1
- package/components/{state-DwFtyqCc.js → state-Joaryhrg.js} +1 -1
- package/components/{task-CgK9ztaw.cjs → task-B8yMzxui.cjs} +1 -1
- package/components/{task-DYLITx7R.js → task-Cr9aRIbV.js} +1 -1
- package/components/{text-field-CvKSS59x-BzSqtt2_.js → text-field-CvKSS59x-Dn0_1HO7.js} +5 -5
- package/components/{text-field-CvKSS59x-D0MM0fDH.cjs → text-field-CvKSS59x-E9LQElL4.cjs} +3 -3
- package/package.json +1 -1
- package/components/en-CN4CDOzo.js +0 -23
- package/components/en-GB-DrOGXwdM.cjs +0 -20
- package/components/en-US-BvtH5B9A.cjs +0 -20
- package/components/en-US-CN4CDOzo.js +0 -23
- package/components/index-CQjWiSIp.cjs +0 -202
@@ -20,23 +20,23 @@
|
|
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 { h as R, R as s, k as
|
24
|
-
import { n as ho } from "../directive-helpers-nlQRAaQt-
|
25
|
-
import { m as
|
26
|
-
import { m as X } from "../sized-mixin-BxMraZLS-
|
27
|
-
import {
|
28
|
-
import { w as Ho, a as Po } from "../async-directive-DWRUSKKF-
|
29
|
-
import { l as mo, u as po } from "../language-resolution-8yZa5r_P-
|
30
|
-
import { i as Ro } from "../text-field-CvKSS59x-
|
31
|
-
import { p as Fo, d as To, a as Bo } from "../index-
|
32
|
-
import "../index-
|
33
|
-
import "../index-
|
23
|
+
import { h as R, R as s, k as O, H as m, r as uo, x as Eo, n as F } from "../property-B2F7x7Cz.js";
|
24
|
+
import { n as ho } from "../directive-helpers-nlQRAaQt-I6T4KZKW.js";
|
25
|
+
import { m as U, d as C } from "../if-defined-BSAr_4u4-4Ys8VE7T.js";
|
26
|
+
import { m as X } from "../sized-mixin-BxMraZLS-B_y0PzR3.js";
|
27
|
+
import { O as J, n as _o, b as Ao, T as Mo } from "../luzmo-icons-BE2T8vWu.js";
|
28
|
+
import { w as Ho, a as Po } from "../async-directive-DWRUSKKF-CmOVMf6V.js";
|
29
|
+
import { l as mo, u as po } from "../language-resolution-8yZa5r_P-Bn0bYosv.js";
|
30
|
+
import { i as Ro } from "../text-field-CvKSS59x-Dn0_1HO7.js";
|
31
|
+
import { p as Fo, d as To, a as Bo } from "../index-CXIT0cYY.js";
|
32
|
+
import "../index-BVX_ozT9.js";
|
33
|
+
import "../index-DnozlYag.js";
|
34
34
|
import { o as eo } from "../when-CDK1Tt5Y-C6ViXC43.js";
|
35
|
-
import { a as
|
36
|
-
import { m as
|
37
|
-
import "../index-
|
38
|
-
import { e as
|
39
|
-
import { L as
|
35
|
+
import { a as No } from "../observe-slot-text-ggb4kKgY-o5QFWUeA.js";
|
36
|
+
import { m as Uo } from "../roving-tabindex-DOg4z6ZU-dufnVmvL.js";
|
37
|
+
import "../index-BBrer3_5.js";
|
38
|
+
import { e as Io } from "../query-Ddbd72Um.js";
|
39
|
+
import { L as Oo } from "../edit-option-base-qePiIQWd.js";
|
40
40
|
const So = () => {
|
41
41
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
42
42
|
const r = document.createElement("style");
|
@@ -61,13 +61,13 @@ So();
|
|
61
61
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
62
62
|
* SOFTWARE.
|
63
63
|
* */
|
64
|
-
const
|
64
|
+
const Do = ':host{inline-size:var(--luzmo-color-loupe-width, 48px);block-size:var(--luzmo-color-loupe-height, 64px);transform:translateY(var(--luzmo-color-loupe-animation-distance, 8px));opacity:0;transform-origin:bottom;pointer-events:none;filter:drop-shadow(var(--luzmo-color-loupe-drop-shadow-x, 0) var(--luzmo-color-loupe-drop-shadow-y, 2px) var(--luzmo-color-loupe-drop-shadow-blur, 8px) var(--luzmo-color-loupe-drop-shadow-color, rgba(0, 0, 0, .25)));transition:transform .1s ease-in-out,opacity .125s ease-in-out;position:absolute;inset-block-end:calc(var(--luzmo-color-handle-size, 16px) - var(--luzmo-color-handle-outer-border-width, 1px) + var(--luzmo-color-loupe-offset, 12px));inset-inline-end:calc(50% - var(--luzmo-color-loupe-width, 48px) / 2)}:host:dir(rtl),:host([dir=rtl]){inset-inline-end:calc(50% - var(--luzmo-color-loupe-width, 48px) / 2 - 1px)}:host([open]){opacity:1;transform:translate(0)}.luzmo-color-loupe-inner-border{fill:var(--luzmo-picked-color);stroke:var(--luzmo-color-loupe-inner-border-color, rgba(0, 0, 0, .1));stroke-width:var(--luzmo-color-loupe-inner-border-width, 1px)}.luzmo-color-loupe-outer-border{fill:none;stroke:var(--luzmo-color-loupe-outer-border-color, white);stroke-width:calc(var(--luzmo-color-loupe-outer-border-width, 2px) + 2px);transform:translate(calc((var(--luzmo-color-loupe-outer-border-width, 2px) + 2px) / 2))}.luzmo-color-loupe-checkerboard-pattern{fill:var(--luzmo-color-loupe-checkerboard-dark-color, rgb(230, 230, 230))}.luzmo-color-loupe-checkerboard-background{fill:var(--luzmo-color-loupe-checkerboard-light-color, rgb(255, 255, 255))}.luzmo-color-loupe-checkerboard-fill{fill:var(--luzmo-color-loupe-checkerboard-fill, url(#checkerboard-primary))}@media (forced-colors: active){:host{--highcontrast-colorloupe-outer-border-color: CanvasText}}svg{width:inherit;height:inherit}.loupe-clipped{clip-path:path("M23 61.575C19.0044 57.435 15.2591 53.0606 11.784 48.475C8.68949 44.4532 5.96348 40.1608 3.639 35.65C1.224 30.8 0 26.549 0 23C0.00319993 17.6937 1.84059 12.5516 5.20091 8.44488C8.56122 4.33815 13.2378 1.51928 18.4385 0.465803C23.6392 -0.587678 29.0442 0.189006 33.7378 2.66428C38.4314 5.13955 42.125 9.16122 44.193 14.048C45.3915 16.88 46.0061 19.9248 46 23C46 26.551 44.774 30.811 42.355 35.661C40.0274 40.1747 37.298 44.4698 34.2 48.494C30.7297 53.0728 26.9898 57.4409 23 61.575ZZ")}.opacity-checkerboard{position:absolute;top:2px;left:2px;block-size:100%;inline-size:100%}.opacity-checkerboard{background:repeating-conic-gradient(var(--luzmo-color-loupe-checkerboard-light, rgb(255, 255, 255)) 0 25%,var(--luzmo-color-loupe-checkerboard-dark, rgb(230, 230, 230)) 0 50%) var(--luzmo-color-loupe-checkerboard-position, left top)/calc(var(--luzmo-color-loupe-checkerboard-size, 8px) * 2) calc(var(--luzmo-color-loupe-checkerboard-size, 8px) * 2)}';
|
65
65
|
var Lo = Object.defineProperty, go = (r, o, e, t) => {
|
66
66
|
for (var l = void 0, i = r.length - 1, a; i >= 0; i--)
|
67
67
|
(a = r[i]) && (l = a(o, e, l) || l);
|
68
68
|
return l && Lo(o, e, l), l;
|
69
69
|
};
|
70
|
-
const bo = class extends
|
70
|
+
const bo = class extends O {
|
71
71
|
constructor() {
|
72
72
|
super(...arguments), this.open = !1, this.color = "rgba(255, 0, 0, 0.5)";
|
73
73
|
}
|
@@ -113,7 +113,7 @@ const bo = class extends D {
|
|
113
113
|
`;
|
114
114
|
}
|
115
115
|
};
|
116
|
-
bo.styles = R(
|
116
|
+
bo.styles = R(Do);
|
117
117
|
let zo = bo;
|
118
118
|
go([
|
119
119
|
s({ type: Boolean, reflect: !0 })
|
@@ -151,7 +151,7 @@ var Ko = Object.defineProperty, W = (r, o, e, t) => {
|
|
151
151
|
(a = r[i]) && (l = a(o, e, l) || l);
|
152
152
|
return l && Ko(o, e, l), l;
|
153
153
|
};
|
154
|
-
const fo = class extends
|
154
|
+
const fo = class extends O {
|
155
155
|
constructor() {
|
156
156
|
super(...arguments), this.disabled = !1, this.focused = !1, this.open = !1, this.color = "rgba(255, 0, 0, 0.5)";
|
157
157
|
}
|
@@ -175,23 +175,23 @@ const fo = class extends D {
|
|
175
175
|
}
|
176
176
|
};
|
177
177
|
fo.styles = R(qo);
|
178
|
-
let
|
178
|
+
let D = fo;
|
179
179
|
W([
|
180
180
|
s({ type: Boolean, reflect: !0 })
|
181
|
-
],
|
181
|
+
], D.prototype, "disabled");
|
182
182
|
W([
|
183
183
|
s({ type: Boolean, reflect: !0 })
|
184
|
-
],
|
184
|
+
], D.prototype, "focused");
|
185
185
|
W([
|
186
186
|
s({ type: Boolean, reflect: !0 })
|
187
|
-
],
|
187
|
+
], D.prototype, "open");
|
188
188
|
W([
|
189
189
|
s({ type: String })
|
190
|
-
],
|
191
|
-
customElements.get("luzmo-color-handle") || customElements.define("luzmo-color-handle",
|
190
|
+
], D.prototype, "color");
|
191
|
+
customElements.get("luzmo-color-handle") || customElements.define("luzmo-color-handle", D);
|
192
192
|
const Vo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
193
193
|
__proto__: null,
|
194
|
-
LuzmoColorHandle:
|
194
|
+
LuzmoColorHandle: D
|
195
195
|
}, Symbol.toStringTag, { value: "Module" }));
|
196
196
|
/*! * Lucero - The design system for Luzmo.
|
197
197
|
*
|
@@ -230,7 +230,7 @@ function vo(r) {
|
|
230
230
|
function q(r) {
|
231
231
|
return Number(r) <= 1 ? `${Number(r) * 100}%` : r;
|
232
232
|
}
|
233
|
-
function
|
233
|
+
function N(r) {
|
234
234
|
return r.length === 1 ? "0" + r : String(r);
|
235
235
|
}
|
236
236
|
function Yo(r, o, e) {
|
@@ -307,18 +307,18 @@ function Go(r, o, e) {
|
|
307
307
|
}
|
308
308
|
function lo(r, o, e, t) {
|
309
309
|
const l = [
|
310
|
-
|
311
|
-
|
312
|
-
|
310
|
+
N(Math.round(r).toString(16)),
|
311
|
+
N(Math.round(o).toString(16)),
|
312
|
+
N(Math.round(e).toString(16))
|
313
313
|
];
|
314
314
|
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("");
|
315
315
|
}
|
316
316
|
function Jo(r, o, e, t, l) {
|
317
317
|
const i = [
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
318
|
+
N(Math.round(r).toString(16)),
|
319
|
+
N(Math.round(o).toString(16)),
|
320
|
+
N(Math.round(e).toString(16)),
|
321
|
+
N(oe(t))
|
322
322
|
];
|
323
323
|
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("");
|
324
324
|
}
|
@@ -1121,7 +1121,7 @@ var ne = Object.defineProperty, ce = Object.getOwnPropertyDescriptor, z = (r, o,
|
|
1121
1121
|
(a = r[i]) && (l = (t ? a(o, e, l) : a(l)) || l);
|
1122
1122
|
return t && l && ne(o, e, l), l;
|
1123
1123
|
};
|
1124
|
-
class g extends
|
1124
|
+
class g extends O {
|
1125
1125
|
constructor() {
|
1126
1126
|
super(...arguments), this.disabled = !1, this.focused = !1, this.labelX = "saturation", this.labelY = "luminosity", this.isLTR = !0, this.languageResolver = new mo(this), this.colorController = new xo(this, {
|
1127
1127
|
extractColorFromState: () => ({
|
@@ -1300,7 +1300,7 @@ class g extends D {
|
|
1300
1300
|
o.button === 0 && (o.stopPropagation(), o.preventDefault(), this.handle.dispatchEvent(new PointerEvent("pointerdown", o)), this.handlePointermove(o));
|
1301
1301
|
}
|
1302
1302
|
render() {
|
1303
|
-
const { width: o = 0, height: e = 0 } = this.boundingClientRect || {}, t = Ho() || Po(), l = "Color Picker", i =
|
1303
|
+
const { width: o = 0, height: e = 0 } = this.boundingClientRect || {}, t = Ho() || Po(), l = "Color Picker", i = U(t ? void 0 : "2d slider"), a = this.labelX, n = this.labelY, c = new Intl.NumberFormat(this.languageResolver.language, {
|
1304
1304
|
style: "percent",
|
1305
1305
|
unitDisplay: "narrow"
|
1306
1306
|
}).format(this.x), d = new Intl.NumberFormat(this.languageResolver.language, {
|
@@ -1317,7 +1317,7 @@ class g extends D {
|
|
1317
1317
|
</div>
|
1318
1318
|
|
1319
1319
|
<luzmo-color-handle
|
1320
|
-
tabindex=${
|
1320
|
+
tabindex=${U(this.focused ? void 0 : "0")}
|
1321
1321
|
@focus=${this.forwardFocus}
|
1322
1322
|
?focused=${this.focused}
|
1323
1323
|
class="handle"
|
@@ -1336,7 +1336,7 @@ class g extends D {
|
|
1336
1336
|
|
1337
1337
|
<fieldset
|
1338
1338
|
class="fieldset"
|
1339
|
-
aria-label=${
|
1339
|
+
aria-label=${U(t ? l : void 0)}
|
1340
1340
|
>
|
1341
1341
|
<div role="presentation">
|
1342
1342
|
<input
|
@@ -1739,7 +1739,7 @@ let f = class extends uo {
|
|
1739
1739
|
</div>
|
1740
1740
|
</div>
|
1741
1741
|
<luzmo-color-handle
|
1742
|
-
tabindex=${
|
1742
|
+
tabindex=${U(this.focused ? void 0 : "0")}
|
1743
1743
|
@focus=${this.forwardFocus}
|
1744
1744
|
?focused=${this.focused}
|
1745
1745
|
class="handle"
|
@@ -1760,8 +1760,8 @@ let f = class extends uo {
|
|
1760
1760
|
class="slider"
|
1761
1761
|
min="0"
|
1762
1762
|
max=${this.mode === "opacity" ? "100" : "360"}
|
1763
|
-
aria-orientation=${
|
1764
|
-
orient=${
|
1763
|
+
aria-orientation=${U(this.vertical ? "vertical" : void 0)}
|
1764
|
+
orient=${U(this.vertical ? "vertical" : void 0)}
|
1765
1765
|
step=${this.step}
|
1766
1766
|
aria-label=${this.label}
|
1767
1767
|
.value=${String(
|
@@ -1944,7 +1944,7 @@ let $ = class extends X(uo, {
|
|
1944
1944
|
return m`
|
1945
1945
|
<div
|
1946
1946
|
class="opacity-checkerboard fill"
|
1947
|
-
style=${
|
1947
|
+
style=${U(
|
1948
1948
|
this.color ? `--picked-color: ${this.color}` : void 0
|
1949
1949
|
)}
|
1950
1950
|
>
|
@@ -2000,17 +2000,17 @@ E([
|
|
2000
2000
|
s()
|
2001
2001
|
], $.prototype, "value", 1);
|
2002
2002
|
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}";
|
2003
|
-
var we = Object.defineProperty, ke = Object.getOwnPropertyDescriptor,
|
2003
|
+
var we = Object.defineProperty, ke = Object.getOwnPropertyDescriptor, I = (r, o, e, t) => {
|
2004
2004
|
for (var l = t > 1 ? void 0 : t ? ke(o, e) : o, i = r.length - 1, a; i >= 0; i--)
|
2005
2005
|
(a = r[i]) && (l = (t ? a(o, e, l) : a(l)) || l);
|
2006
2006
|
return t && l && we(o, e, l), l;
|
2007
2007
|
};
|
2008
|
-
class T extends X(
|
2008
|
+
class T extends X(O, {
|
2009
2009
|
validSizes: ["xs", "s", "m", "l"],
|
2010
2010
|
noDefaultSize: !0
|
2011
2011
|
}) {
|
2012
2012
|
constructor() {
|
2013
|
-
super(), this._selected = [], this.selectedSet = /* @__PURE__ */ new Set(), this.rovingTabindexController = new
|
2013
|
+
super(), this._selected = [], this.selectedSet = /* @__PURE__ */ new Set(), this.rovingTabindexController = new Uo(this, {
|
2014
2014
|
focusInIndex: (o) => {
|
2015
2015
|
let e = -1;
|
2016
2016
|
const t = o.findIndex((l, i) => (!o[e] && !l.disabled && (e = i), l.selected && !l.disabled));
|
@@ -2025,7 +2025,7 @@ class T extends X(D, {
|
|
2025
2025
|
}), this.selectedSet.forEach((e) => {
|
2026
2026
|
o.has(e) || this.selectedSet.delete(e);
|
2027
2027
|
}), this._selected = [...this.selectedSet], this.rovingTabindexController.clearElementCache();
|
2028
|
-
}, new
|
2028
|
+
}, new No(this, {
|
2029
2029
|
config: {
|
2030
2030
|
attributes: !0,
|
2031
2031
|
childList: !0,
|
@@ -2136,25 +2136,25 @@ class T extends X(D, {
|
|
2136
2136
|
);
|
2137
2137
|
}
|
2138
2138
|
}
|
2139
|
-
|
2139
|
+
I([
|
2140
2140
|
s({ reflect: !0 })
|
2141
2141
|
], T.prototype, "border", 2);
|
2142
|
-
|
2142
|
+
I([
|
2143
2143
|
s({ reflect: !0 })
|
2144
2144
|
], T.prototype, "density", 2);
|
2145
|
-
|
2145
|
+
I([
|
2146
2146
|
s({ reflect: !0 })
|
2147
2147
|
], T.prototype, "rounding", 2);
|
2148
|
-
|
2148
|
+
I([
|
2149
2149
|
s({ type: Array })
|
2150
2150
|
], T.prototype, "selected", 1);
|
2151
|
-
|
2151
|
+
I([
|
2152
2152
|
s()
|
2153
2153
|
], T.prototype, "selects", 2);
|
2154
|
-
|
2154
|
+
I([
|
2155
2155
|
s({ reflect: !0 })
|
2156
2156
|
], T.prototype, "shape", 2);
|
2157
|
-
|
2157
|
+
I([
|
2158
2158
|
To({ flatten: !0 })
|
2159
2159
|
], T.prototype, "swatches", 2);
|
2160
2160
|
customElements.get("luzmo-swatch") || customElements.define("luzmo-swatch", $);
|
@@ -2189,7 +2189,7 @@ var Se = Object.defineProperty, M = (r, o, e, t) => {
|
|
2189
2189
|
(a = r[i]) && (l = a(o, e, l) || l);
|
2190
2190
|
return l && Se(o, e, l), l;
|
2191
2191
|
};
|
2192
|
-
const wo = class extends X(
|
2192
|
+
const wo = class extends X(O) {
|
2193
2193
|
constructor() {
|
2194
2194
|
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)";
|
2195
2195
|
}
|
@@ -2376,7 +2376,7 @@ var Ae = Object.defineProperty, _ = (r, o, e, t) => {
|
|
2376
2376
|
(a = r[i]) && (l = a(o, e, l) || l);
|
2377
2377
|
return l && Ae(o, e, l), l;
|
2378
2378
|
};
|
2379
|
-
const ko = class extends X(
|
2379
|
+
const ko = class extends X(O) {
|
2380
2380
|
constructor() {
|
2381
2381
|
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;
|
2382
2382
|
}
|
@@ -2480,7 +2480,7 @@ var Me = Object.defineProperty, H = (r, o, e, t) => {
|
|
2480
2480
|
(a = r[i]) && (l = a(o, e, l) || l);
|
2481
2481
|
return l && Me(o, e, l), l;
|
2482
2482
|
};
|
2483
|
-
const L = class L extends
|
2483
|
+
const L = class L extends Oo {
|
2484
2484
|
constructor() {
|
2485
2485
|
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;
|
2486
2486
|
}
|
@@ -2542,7 +2542,7 @@ H([
|
|
2542
2542
|
F({ type: Number, reflect: !0 })
|
2543
2543
|
], k.prototype, "debounce");
|
2544
2544
|
H([
|
2545
|
-
|
2545
|
+
Io("luzmo-color-picker")
|
2546
2546
|
], k.prototype, "colorPicker");
|
2547
2547
|
customElements.get("luzmo-edit-option-color-picker") || customElements.define(
|
2548
2548
|
"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 c=Object.getPrototypeOf;var p=Reflect.get;var d=(u,t,o)=>p(c(u),o,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-
|
20
|
+
"use strict";var c=Object.getPrototypeOf;var p=Reflect.get;var d=(u,t,o)=>p(c(u),o,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-86cIx1Ql.cjs");const l=require("../property-0L4eB11h.cjs"),h=require("../query-D5qWDopr.cjs"),m=require("../edit-option-base-Boz7TNRZ.cjs");var g=Object.defineProperty,i=(u,t,o,f)=>{for(var n=void 0,a=u.length-1,s;a>=0;a--)(s=u[a])&&(n=s(t,o,n)||n);return n&&g(t,o,n),n};const r=class r extends m.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;this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:((t=this.multiLangFieldElement)==null?void 0:t.value)??{}}}))},this.debounce??200)}renderController(){return l.x`
|
21
21
|
<luzmo-multi-language-field
|
22
22
|
.value=${this.value}
|
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 a = (e, l, i) => d(s(e), i, l);
|
23
|
-
import "../index-
|
24
|
-
import { x as f, n as t } from "../property-
|
23
|
+
import "../index-DVAsMiOm.js";
|
24
|
+
import { x as f, n as t } from "../property-B2F7x7Cz.js";
|
25
25
|
import { e as g } from "../query-Ddbd72Um.js";
|
26
|
-
import { L as b } from "../edit-option-base-
|
26
|
+
import { L as b } from "../edit-option-base-qePiIQWd.js";
|
27
27
|
const z = () => {
|
28
28
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
29
29
|
const e = document.createElement("style");
|
@@ -17,7 +17,7 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
"use strict";var f=Object.getPrototypeOf;var d=Reflect.get;var a=(s,i,u)=>d(f(s),u,i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-
|
20
|
+
"use strict";var f=Object.getPrototypeOf;var d=Reflect.get;var a=(s,i,u)=>d(f(s),u,i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-iYpAy-Kg.cjs");const t=require("../property-0L4eB11h.cjs"),m=require("../query-D5qWDopr.cjs"),c=require("../edit-option-base-Boz7TNRZ.cjs");var h=Object.defineProperty,o=(s,i,u,b)=>{for(var r=void 0,l=s.length-1,p;l>=0;l--)(p=s[l])&&(r=p(i,u,r)||r);return r&&h(i,u,r),r};const n=class n extends c.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.toOptionValue=="function"?this.toOptionValue(this.numberField.value):this.numberField.value}}))},this.debounce??200)}renderController(){const i=typeof this.fromOptionValue=="function"?this.fromOptionValue(this.value):this.value,u=typeof this.fromOptionValue=="function"?this.fromOptionValue(this.default):this.default;return t.x`
|
21
21
|
<luzmo-number-field
|
22
22
|
.value=${i??u??0}
|
23
23
|
.size=${this.size}
|
@@ -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 "../property-
|
23
|
+
import "../index-B3ve6cAj.js";
|
24
|
+
import { x as f, n as l } from "../property-B2F7x7Cz.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-qePiIQWd.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 h=Object.getPrototypeOf;var c=Reflect.get;var p=(r,e,o)=>c(h(r),o,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-
|
20
|
+
"use strict";var h=Object.getPrototypeOf;var c=Reflect.get;var p=(r,e,o)=>c(h(r),o,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-D8qmoauu.cjs");require("../index-BrEDK88k.cjs");const n=require("../property-0L4eB11h.cjs"),d=require("../edit-option-base-Boz7TNRZ.cjs");var m=Object.defineProperty,i=(r,e,o,f)=>{for(var s=void 0,a=r.length-1,u;a>=0;a--)(u=r[a])&&(s=u(e,o,s)||s);return s&&m(e,o,s),s};const l=class l 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.toOptionValue=="function"?this.toOptionValue(e.detail):e.detail}}))}generateMenuItems(){return n.x`
|
21
21
|
${Object.entries(this.values).map(([e,o])=>n.x`
|
22
22
|
<luzmo-menu-item value=${e}> ${o} </luzmo-menu-item>
|
23
23
|
`)}
|
@@ -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 c, n as t } from "../property-
|
26
|
-
import { L as f } from "../edit-option-base-
|
23
|
+
import "../index-BBrer3_5.js";
|
24
|
+
import "../index-B5Wvyv9s.js";
|
25
|
+
import { x as c, n as t } from "../property-B2F7x7Cz.js";
|
26
|
+
import { L as f } from "../edit-option-base-qePiIQWd.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,19 +17,19 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../luzmo-icons-XsFsTAl3.cjs");require("../index-iYpAy-Kg.cjs");const i=require("../property-0L4eB11h.cjs"),f=require("../state-BFA93Sye.cjs"),v=require("../edit-option-base-Boz7TNRZ.cjs"),g=":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 z=Object.defineProperty,u=(p,e,o,n)=>{for(var t=void 0,s=p.length-1,l;s>=0;s--)(l=p[s])&&(t=l(e,o,t)||t);return t&&z(e,o,t),t};class r extends v.LuzmoEditOptionBase{constructor(){super(...arguments),this.positions=["top","right","bottom","left"],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[i.r$1(g)]}_calculateSyncedValue(){var o;let e;return(o=this.positions)==null||o.forEach(n=>{var t,s,l;e=typeof e=="number"&&((t=this.values)!=null&&t[n])?Math.min(e,(s=this.values)==null?void 0:s[n]):(l=this.values)==null?void 0:l[n]}),e}toggleSync(){if(this.sync=!this.sync,this.sync&&(this.syncedValue=this._calculateSyncedValue(),typeof this.syncedValue=="number")){this.values={...this.values};for(const e of this.positions??[])this.values[e]=this.syncedValue}}_handleEvent(e){const o=e.target.getAttribute("position"),n=e.target.value;let t={};if(!(!o||typeof n!="number")){if(this.canSync&&this.sync&&o==="center"){this.syncedValue=n;for(const s of this.positions??[])t[s]=n}else t={...this.values,[o]:n};this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{var c;const s=Object.keys(this.values??{}),l=Object.keys(t);let a=!0;s.length!==l.length&&(a=!1);for(const d of s)((c=this.values)==null?void 0:c[d])!==t[d]&&(a=!1);a||(this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{values:{...t}}})),this.values=t)},this.debounce??200)}}_renderNumberField(e){var o,n,t,s,l,a,c,d,h,m,y;return(o=this.positions)!=null&&o.includes(e)||e==="center"?this.canSync&&(this.sync&&e!=="center"||!this.sync&&e==="center")?i.x`<div
|
21
21
|
class="sync-button ${this.sync?"":"sync"}"
|
22
22
|
position=${e}
|
23
23
|
@click=${this.toggleSync}
|
24
24
|
>
|
25
|
-
${b.
|
25
|
+
${b.O2(b.$1)}
|
26
26
|
</div>`:!this.canSync&&!((n=this.positions)!=null&&n.includes("center"))&&e==="center"?i.x`<div class="no-sync-center"></div>`:i.x`<div class="position">
|
27
27
|
<luzmo-number-field
|
28
28
|
position=${e}
|
29
29
|
.value=${this.sync&&this.canSync?this.syncedValue??0:((t=this.values)==null?void 0:t[e])??((l=(s=this.positionConfiguration)==null?void 0:s[e])==null?void 0:l.default)??0}
|
30
30
|
.disabled=${this.disabled}
|
31
31
|
.size=${this.size}
|
32
|
-
.min=${((
|
32
|
+
.min=${((c=(a=this.positionConfiguration)==null?void 0:a[e])==null?void 0:c.min)??0}
|
33
33
|
.max=${((h=(d=this.positionConfiguration)==null?void 0:d[e])==null?void 0:h.max)??100}
|
34
34
|
.step=${((y=(m=this.positionConfiguration)==null?void 0:m[e])==null?void 0:y.step)??1}
|
35
35
|
.invalid=${this.invalid}
|
@@ -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 { a as v, x as m, n as u } from "../property-
|
23
|
-
import { r as x } from "../state-
|
24
|
-
import { L as w } from "../edit-option-base-
|
20
|
+
import { O as g, $ as y } from "../luzmo-icons-BE2T8vWu.js";
|
21
|
+
import "../index-B3ve6cAj.js";
|
22
|
+
import { a as v, x as m, n as u } from "../property-B2F7x7Cz.js";
|
23
|
+
import { r as x } from "../state-Joaryhrg.js";
|
24
|
+
import { L as w } from "../edit-option-base-qePiIQWd.js";
|
25
25
|
const b = () => {
|
26
26
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
27
27
|
const c = document.createElement("style");
|
@@ -30,10 +30,10 @@ const b = () => {
|
|
30
30
|
};
|
31
31
|
b();
|
32
32
|
const k = ":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))}";
|
33
|
-
var
|
33
|
+
var $ = Object.defineProperty, s = (c, o, t, i) => {
|
34
34
|
for (var e = void 0, r = c.length - 1, l; r >= 0; r--)
|
35
35
|
(l = c[r]) && (e = l(o, t, e) || e);
|
36
|
-
return e &&
|
36
|
+
return e && $(o, t, e), e;
|
37
37
|
};
|
38
38
|
class n extends w {
|
39
39
|
constructor() {
|
@@ -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 d=Object.getPrototypeOf;var h=Reflect.get;var c=(u,e,t)=>h(d(u),t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-
|
20
|
+
"use strict";var d=Object.getPrototypeOf;var h=Reflect.get;var c=(u,e,t)=>h(d(u),t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-zuArOtOt.cjs");require("../index-DUO13KGl.cjs");const i=require("../property-0L4eB11h.cjs"),f=require("../query-D5qWDopr.cjs"),v=require("../edit-option-base-Boz7TNRZ.cjs");var y=Object.defineProperty,n=(u,e,t,r)=>{for(var s=void 0,l=u.length-1,p;l>=0;l--)(p=u[l])&&(s=p(e,t,s)||s);return s&&y(e,t,s),s};const a=class a extends v.LuzmoEditOptionBase{constructor(){super(...arguments),this.values={},this.disabled=!1}generateRadioButtons(){const e=Object.entries(this.values).map(([t,r])=>i.x`
|
21
21
|
<luzmo-action-button value=${t} ?disabled=${this.disabled}>
|
22
22
|
${r}
|
23
23
|
</luzmo-action-button>
|
@@ -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 s, n as i } from "../property-
|
23
|
+
import "../index-CdCtJpK9.js";
|
24
|
+
import "../index-Bee1uunR.js";
|
25
|
+
import { x as s, n as i } from "../property-B2F7x7Cz.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-qePiIQWd.js";
|
28
28
|
const f = () => {
|
29
29
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
30
30
|
const t = document.createElement("style");
|
@@ -17,7 +17,7 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
"use strict";var Ce=Object.getPrototypeOf;var Ve=Reflect.get;var qt=(o,t,i)=>Ve(Ce(o),i,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("../property-
|
20
|
+
"use strict";var Ce=Object.getPrototypeOf;var Ve=Reflect.get;var qt=(o,t,i)=>Ve(Ce(o),i,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("../property-0L4eB11h.cjs"),Pe=require("../sized-mixin-BxMraZLS-DEFWqo8f.cjs"),Ae=require("../edit-option-base-Boz7TNRZ.cjs");/*! * Lucero - The design system for Luzmo.
|
21
21
|
*
|
22
22
|
* Copyright © 2025 Luzmo
|
23
23
|
* All rights reserved.
|
@@ -20,9 +20,9 @@
|
|
20
20
|
var Vt = Object.getPrototypeOf;
|
21
21
|
var At = Reflect.get;
|
22
22
|
var Be = (o, e, i) => At(Vt(o), i, e);
|
23
|
-
import { k as Ot, H as Mt, h as Dt, R as W, x as Lt, n as B } from "../property-
|
24
|
-
import { m as Ht } from "../sized-mixin-BxMraZLS-
|
25
|
-
import { L as jt } from "../edit-option-base-
|
23
|
+
import { k as Ot, H as Mt, h as Dt, R as W, x as Lt, n as B } from "../property-B2F7x7Cz.js";
|
24
|
+
import { m as Ht } from "../sized-mixin-BxMraZLS-B_y0PzR3.js";
|
25
|
+
import { L as jt } from "../edit-option-base-qePiIQWd.js";
|
26
26
|
const Pt = () => {
|
27
27
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
28
28
|
const o = document.createElement("style");
|
@@ -17,7 +17,7 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
"use strict";var m=Object.getPrototypeOf;var v=Reflect.get;var n=(o,r,c)=>v(m(o),c,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../property-
|
20
|
+
"use strict";var m=Object.getPrototypeOf;var v=Reflect.get;var n=(o,r,c)=>v(m(o),c,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../property-0L4eB11h.cjs"),g=require("../sized-mixin-BxMraZLS-DEFWqo8f.cjs"),z=require("../checkbox-mixin-BFGTmw17-CCjGd0nS.cjs"),f=require("../edit-option-base-Boz7TNRZ.cjs");/*! * Lucero - The design system for Luzmo.
|
21
21
|
*
|
22
22
|
* Copyright © 2025 Luzmo
|
23
23
|
* All rights reserved.
|
@@ -20,10 +20,10 @@
|
|
20
20
|
var z = Object.getPrototypeOf;
|
21
21
|
var v = Reflect.get;
|
22
22
|
var n = (o, r, l) => v(z(o), l, r);
|
23
|
-
import { r as p, h as u, H as x, R as m, a as k, x as y, n as s } from "../property-
|
24
|
-
import { m as H } from "../sized-mixin-BxMraZLS-
|
25
|
-
import { k as B } from "../checkbox-mixin-BFGTmw17-
|
26
|
-
import { L as T } from "../edit-option-base-
|
23
|
+
import { r as p, h as u, H as x, R as m, a as k, x as y, n as s } from "../property-B2F7x7Cz.js";
|
24
|
+
import { m as H } from "../sized-mixin-BxMraZLS-B_y0PzR3.js";
|
25
|
+
import { k as B } from "../checkbox-mixin-BFGTmw17-C34LMsgu.js";
|
26
|
+
import { L as T } from "../edit-option-base-qePiIQWd.js";
|
27
27
|
const f = () => {
|
28
28
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
29
29
|
const o = document.createElement("style");
|
@@ -17,7 +17,7 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
"use strict";var p=Object.getPrototypeOf;var c=Reflect.get;var d=(n,t,i)=>c(p(n),i,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-
|
20
|
+
"use strict";var p=Object.getPrototypeOf;var c=Reflect.get;var d=(n,t,i)=>c(p(n),i,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-CdUTqQ3L.cjs");const l=require("../property-0L4eB11h.cjs"),h=require("../query-D5qWDopr.cjs"),v=require("../edit-option-base-Boz7TNRZ.cjs");var f=Object.defineProperty,o=(n,t,i,m)=>{for(var r=void 0,u=n.length-1,a;u>=0;u--)(a=n[u])&&(r=a(t,i,r)||r);return r&&f(t,i,r),r};const s=class s extends v.LuzmoEditOptionBase{constructor(){super(...arguments),this.invalid=!1,this.readonly=!1,this.debounce=200,this._previousValue=""}_handleEvent(){this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{var i;const t=((i=this.textFieldElement)==null?void 0:i.value)??"";this._previousValue!==t&&(this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:t}})),this._previousValue=t)},this.debounce??200)}renderController(){return l.x`
|
21
21
|
<luzmo-text-field
|
22
22
|
.value=${this.value??""}
|
23
23
|
.disabled=${this.disabled}
|
@@ -20,10 +20,10 @@
|
|
20
20
|
var a = Object.getPrototypeOf;
|
21
21
|
var d = Reflect.get;
|
22
22
|
var s = (e, l, r) => d(a(e), r, l);
|
23
|
-
import "../index-
|
24
|
-
import { x as f, n as m } from "../property-
|
23
|
+
import "../index-BUSWsm5N.js";
|
24
|
+
import { x as f, n as m } from "../property-B2F7x7Cz.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-qePiIQWd.js";
|
27
27
|
const z = () => {
|
28
28
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
29
29
|
const e = document.createElement("style");
|