@luzmo/lucero 0.0.12 → 0.0.13
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/accordion/index.cjs +6 -6
- package/components/accordion/index.js +5 -5
- package/components/action-bar/index.cjs +4 -4
- package/components/action-bar/index.js +8 -9
- package/components/action-button/index.cjs +2 -2
- package/components/action-button/index.js +3 -4
- package/components/action-group/index.cjs +1 -1
- package/components/action-group/index.js +1 -1
- package/components/action-group-Uimj-MJP.cjs +20 -0
- package/components/{action-group-DzT5e9uS.js → action-group-enfc-YnW.js} +3 -3
- package/components/action-menu/index.cjs +7 -7
- package/components/action-menu/index.js +8 -8
- package/components/async-directive-DWRUSKKF.js +82 -0
- package/components/async-directive-D_Ter1F8.cjs +22 -0
- package/components/avatar/index.cjs +3 -3
- package/components/avatar/index.js +6 -6
- package/components/base-B7Pfl2if.cjs +40 -0
- package/components/{sized-mixin-DcvJLFeo.cjs → base-BjTwmyRF.cjs} +5 -1
- package/components/{base-CCsOyfm4.js → base-CawdqE7p.js} +132 -98
- package/components/base-D76d76ww.js +26 -0
- package/components/button/index.cjs +2 -2
- package/components/button/index.js +6 -7
- package/components/{button-base-BUylwU1F.js → button-base-B7v4eeRh.js} +5 -5
- package/components/{button-base-D62oiPcu.cjs → button-base-DmjYs2s9.cjs} +3 -3
- package/components/button-group/index.cjs +1 -1
- package/components/button-group/index.js +5 -6
- package/components/checkbox/index.cjs +4 -4
- package/components/checkbox/index.js +3 -4
- package/components/{checkbox-mixin-CM4VUJxF.js → checkbox-mixin-BFGTmw17.js} +9 -9
- package/components/{checkbox-mixin-CifGmiLR.cjs → checkbox-mixin-DUhXwD46.cjs} +3 -3
- package/components/{clear-button-BmUyRVoz.js → clear-button-DgZmX5RX.js} +6 -7
- package/components/clear-button-KdrF2jaV.cjs +18 -0
- package/components/{close-button-BekXo6bQ.js → close-button-CFHQnbsK.js} +9 -10
- package/components/close-button-DVGUppyd.cjs +18 -0
- package/components/color-area/index.cjs +5 -5
- package/components/color-area/index.js +4 -4
- package/components/color-field/index.cjs +2 -2
- package/components/color-field/index.js +2 -3
- package/components/color-handle/index.cjs +2 -2
- package/components/color-handle/index.js +2 -3
- package/components/color-loupe/index.cjs +1 -1
- package/components/color-loupe/index.js +1 -1
- package/components/{color-loupe-DiegGLZu.js → color-loupe-DxcqXoJ6.js} +1 -2
- package/components/color-loupe-SskbNeMp.cjs +56 -0
- package/components/color-menu/index.cjs +5 -5
- package/components/color-menu/index.js +4 -3
- package/components/color-picker/index.cjs +4 -4
- package/components/color-picker/index.js +9 -8
- package/components/color-slider/index.cjs +6 -6
- package/components/color-slider/index.js +6 -6
- package/components/directive-C7oCP5Bh.cjs +22 -0
- package/components/directive-helpers-TkFq2eZF.cjs +22 -0
- package/components/directive-helpers-nlQRAaQt.js +28 -0
- package/components/directive-oAbCiebi.js +44 -0
- package/components/divider/index.cjs +1 -1
- package/components/divider/index.js +2 -3
- package/components/field-group/index.cjs +1 -1
- package/components/field-group/index.js +1 -1
- package/components/{field-group-BPZvGJi1.js → field-group-DAhrTCfl.js} +2 -3
- package/components/field-group-DSY2HUoj.cjs +23 -0
- package/components/field-label/index.cjs +1 -1
- package/components/field-label/index.js +1 -1
- package/components/{field-label-6AaW05kA.js → field-label-CAFfGxEL.js} +3 -3
- package/components/field-label-CjsQ3ujK.cjs +25 -0
- package/components/focusable-DGWL1v1p.cjs +18 -0
- package/components/{focusable-CxA_NMK_.js → focusable-cj2QhwDT.js} +1 -2
- package/components/icon/index.cjs +1 -1
- package/components/icon/index.js +4 -5
- package/components/if-defined-B56xGmAg.cjs +22 -0
- package/components/if-defined-BSAr_4u4.js +27 -0
- package/components/{index-QeYYAZQR.js → index-CMvLpPKD.js} +17 -15
- package/components/index-DnWavOZD.cjs +77 -0
- package/components/index.cjs +1 -1
- package/components/index.js +16 -16
- package/components/infield-button/index.cjs +2 -2
- package/components/infield-button/index.js +3 -4
- package/components/label/index.cjs +1 -1
- package/components/label/index.js +1 -2
- package/components/like-anchor-Bmabl9ra.cjs +32 -0
- package/components/{like-anchor-D7tY6am5.js → like-anchor-QBlvwFfT.js} +23 -24
- package/components/{manage-help-text-CmE_nfjl.js → manage-help-text-Cozl9Sgn.js} +4 -4
- package/components/{manage-help-text-CoX77cTJ.cjs → manage-help-text-OHXDgxyj.cjs} +2 -2
- package/components/menu/index.cjs +1 -1
- package/components/menu/index.js +1 -1
- package/components/multi-language-field/index.cjs +2 -2
- package/components/multi-language-field/index.js +3 -4
- package/components/number-field/index.cjs +3 -3
- package/components/number-field/index.js +4 -4
- package/components/observe-slot-text-CrYB2Pj-.cjs +18 -0
- package/components/{observe-slot-text-CugmOzNZ.js → observe-slot-text-ggb4kKgY.js} +21 -20
- package/components/overlay/index.cjs +7 -7
- package/components/overlay/index.js +48 -46
- package/components/{overlay-CtdbWiFs.js → overlay-CJ9by37f.js} +71 -69
- package/components/overlay-Deh6Ki6I.cjs +47 -0
- package/components/{pending-state-DWvTsSoS.cjs → pending-state-Do522lTd.cjs} +1 -1
- package/components/{pending-state-B_JeaE62.js → pending-state-TJj1x9xn.js} +2 -2
- package/components/picker/index.cjs +1 -1
- package/components/picker/index.js +2 -2
- package/components/{picker-DwbcFve2.js → picker-833Apxe4.js} +134 -105
- package/components/picker-DDx8ii73.cjs +127 -0
- package/components/popover/index.cjs +1 -1
- package/components/popover/index.js +1 -1
- package/components/popover-BGOgXaka.cjs +30 -0
- package/components/{popover-DLFHilGS.js → popover-DlkzrLpl.js} +3 -3
- package/components/progress-circle/index.cjs +1 -1
- package/components/progress-circle/index.js +1 -1
- package/components/{progress-circle-CUCJ_Ehs.js → progress-circle-Be24kv6B.js} +4 -4
- package/components/{progress-circle-BXyXtMcs.cjs → progress-circle-NNbCMK2i.cjs} +6 -6
- package/components/query-BL-TJj7K.cjs +22 -0
- package/components/query-D_KR_GUc.js +51 -0
- package/components/query-assigned-elements-DjfhL1cl.js +36 -0
- package/components/query-assigned-elements-DsKsfk7G.cjs +22 -0
- package/components/query-assigned-nodes-BcKWmGzy.cjs +22 -0
- package/components/query-assigned-nodes-C76XVPWY.js +36 -0
- package/components/radio/index.cjs +2 -2
- package/components/radio/index.js +6 -6
- package/components/search/index.cjs +7 -7
- package/components/search/index.js +4 -4
- package/components/{sized-mixin-cJbo3PKR.js → sized-mixin-BxMraZLS.js} +5 -5
- package/components/sized-mixin-D9LkrMjb.cjs +18 -0
- package/components/slider/index.cjs +1 -1
- package/components/slider/index.js +2 -3
- package/components/state-C5I1gP3G.cjs +22 -0
- package/components/state-CYxk12SV.js +29 -0
- package/components/{streaming-listener-BgCzt2TI.js → streaming-listener-CCalHg57.js} +6 -5
- package/components/streaming-listener-KVex1WWB.cjs +18 -0
- package/components/style-map-Ct2LiEds.js +53 -0
- package/components/style-map-uMq-yDJ3.cjs +22 -0
- package/components/swatch/index.cjs +7 -7
- package/components/swatch/index.js +11 -11
- package/components/switch/index.cjs +2 -2
- package/components/switch/index.js +4 -5
- package/components/tags/index.cjs +4 -4
- package/components/tags/index.js +4 -4
- package/components/text-field/index.cjs +3 -3
- package/components/text-field/index.js +3 -4
- package/components/text-field-5_ev9way.cjs +85 -0
- package/components/text-field-CvKSS59x.js +313 -0
- package/components/toast/index.cjs +11 -11
- package/components/toast/index.js +2 -3
- package/components/tooltip/index.cjs +4 -4
- package/components/tooltip/index.js +4 -4
- package/components/unit-input/index.cjs +6 -6
- package/components/unit-input/index.js +3 -3
- package/components/utils.cjs +1 -1
- package/components/utils.js +4 -4
- package/components/when-CDK1Tt5Y.js +28 -0
- package/components/when-CDZyJPvd.cjs +22 -0
- package/package.json +1 -1
- package/components/action-group-B59CWNnT.cjs +0 -20
- package/components/base-CaRKlVkL.cjs +0 -36
- package/components/clear-button-Cc5-XUOJ.cjs +0 -18
- package/components/close-button-Bf8yzpLd.cjs +0 -18
- package/components/color-loupe-CLzp2MiI.cjs +0 -56
- package/components/field-group-CodR_26L.cjs +0 -23
- package/components/field-label-B91K6moC.cjs +0 -25
- package/components/focusable-BFdecx5l.cjs +0 -18
- package/components/index-Cg_y7WKM.cjs +0 -77
- package/components/like-anchor-b3cNzw52.cjs +0 -32
- package/components/observe-slot-text-ByPG1Lqw.cjs +0 -18
- package/components/overlay-BWBJGJN_.cjs +0 -47
- package/components/picker-CaC1rQOK.cjs +0 -123
- package/components/popover-C4w3aY8m.cjs +0 -30
- package/components/streaming-listener-C2bsIc4J.cjs +0 -18
- package/components/text-field-BX_aHXSW.js +0 -288
- package/components/text-field-DAr2RyH9.cjs +0 -81
|
@@ -15,13 +15,15 @@
|
|
|
15
15
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
16
|
* SOFTWARE.
|
|
17
17
|
* */
|
|
18
|
-
import { e as f, I as O, s as
|
|
19
|
-
import { C as
|
|
20
|
-
import { a as E, r as w, x as c, E as z, B as
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
18
|
+
import { e as f, I as O, s as $, L as S } from "../overlay-CJ9by37f.js";
|
|
19
|
+
import { C as G, H as M, b as J, c as K, d as Q, P as W, V as X, g as Y, a as Z, n as ee, o as te, p as oe } from "../overlay-CJ9by37f.js";
|
|
20
|
+
import { a as E, r as w, x as c, n as u, E as z, B as b } from "../base-CawdqE7p.js";
|
|
21
|
+
import { r as h } from "../state-CYxk12SV.js";
|
|
22
|
+
import { e as g } from "../query-D_KR_GUc.js";
|
|
23
|
+
import { e as v } from "../directive-oAbCiebi.js";
|
|
24
|
+
import { f as A } from "../async-directive-DWRUSKKF.js";
|
|
23
25
|
import { r as y } from "../slottable-request-event-DggLA4Rx.js";
|
|
24
|
-
import { S as
|
|
26
|
+
import { S as le } from "../slottable-request-event-DggLA4Rx.js";
|
|
25
27
|
const k = () => {
|
|
26
28
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
27
29
|
const i = document.createElement("style");
|
|
@@ -78,8 +80,8 @@ class l extends E {
|
|
|
78
80
|
e.newState === "open" ? this.open = o : this.open === o && (this.open = void 0);
|
|
79
81
|
}
|
|
80
82
|
update(e) {
|
|
81
|
-
var t, o, r, n, a,
|
|
82
|
-
e.has("clickContent") && (this.clickPlacement = ((t = this.clickContent[0]) == null ? void 0 : t.getAttribute("placement")) || ((o = this.clickContent[0]) == null ? void 0 : o.getAttribute("direction")) || void 0), e.has("hoverContent") && (this.hoverPlacement = ((r = this.hoverContent[0]) == null ? void 0 : r.getAttribute("placement")) || ((n = this.hoverContent[0]) == null ? void 0 : n.getAttribute("direction")) || void 0), e.has("longpressContent") && (this.longpressPlacement = ((a = this.longpressContent[0]) == null ? void 0 : a.getAttribute("placement")) || ((
|
|
83
|
+
var t, o, r, n, a, m;
|
|
84
|
+
e.has("clickContent") && (this.clickPlacement = ((t = this.clickContent[0]) == null ? void 0 : t.getAttribute("placement")) || ((o = this.clickContent[0]) == null ? void 0 : o.getAttribute("direction")) || void 0), e.has("hoverContent") && (this.hoverPlacement = ((r = this.hoverContent[0]) == null ? void 0 : r.getAttribute("placement")) || ((n = this.hoverContent[0]) == null ? void 0 : n.getAttribute("direction")) || void 0), e.has("longpressContent") && (this.longpressPlacement = ((a = this.longpressContent[0]) == null ? void 0 : a.getAttribute("placement")) || ((m = this.longpressContent[0]) == null ? void 0 : m.getAttribute("direction")) || void 0), super.update(e);
|
|
83
85
|
}
|
|
84
86
|
renderSlot(e) {
|
|
85
87
|
return c`
|
|
@@ -87,7 +89,7 @@ class l extends E {
|
|
|
87
89
|
`;
|
|
88
90
|
}
|
|
89
91
|
renderClickOverlay() {
|
|
90
|
-
import("../overlay-
|
|
92
|
+
import("../overlay-CJ9by37f.js").then((t) => t.f);
|
|
91
93
|
const e = this.renderSlot("click-content");
|
|
92
94
|
return this.clickContent.length === 0 ? e : c`
|
|
93
95
|
<luzmo-overlay
|
|
@@ -107,7 +109,7 @@ class l extends E {
|
|
|
107
109
|
`;
|
|
108
110
|
}
|
|
109
111
|
renderHoverOverlay() {
|
|
110
|
-
import("../overlay-
|
|
112
|
+
import("../overlay-CJ9by37f.js").then((t) => t.f);
|
|
111
113
|
const e = this.renderSlot("hover-content");
|
|
112
114
|
return this.hoverContent.length === 0 ? e : c`
|
|
113
115
|
<luzmo-overlay
|
|
@@ -127,7 +129,7 @@ class l extends E {
|
|
|
127
129
|
`;
|
|
128
130
|
}
|
|
129
131
|
renderLongpressOverlay() {
|
|
130
|
-
import("../overlay-
|
|
132
|
+
import("../overlay-CJ9by37f.js").then((t) => t.f);
|
|
131
133
|
const e = this.renderSlot("longpress-content");
|
|
132
134
|
return this.longpressContent.length === 0 ? e : c`
|
|
133
135
|
<luzmo-overlay
|
|
@@ -173,25 +175,25 @@ class l extends E {
|
|
|
173
175
|
}
|
|
174
176
|
}
|
|
175
177
|
s([
|
|
176
|
-
|
|
178
|
+
u()
|
|
177
179
|
], l.prototype, "content");
|
|
178
180
|
s([
|
|
179
|
-
|
|
181
|
+
u({ reflect: !0 })
|
|
180
182
|
], l.prototype, "placement");
|
|
181
183
|
s([
|
|
182
|
-
|
|
184
|
+
u()
|
|
183
185
|
], l.prototype, "type");
|
|
184
186
|
s([
|
|
185
|
-
|
|
187
|
+
u({ type: Number })
|
|
186
188
|
], l.prototype, "offset");
|
|
187
189
|
s([
|
|
188
|
-
|
|
190
|
+
u({ reflect: !0 })
|
|
189
191
|
], l.prototype, "open");
|
|
190
192
|
s([
|
|
191
|
-
|
|
193
|
+
u({ type: Boolean, reflect: !0 })
|
|
192
194
|
], l.prototype, "disabled");
|
|
193
195
|
s([
|
|
194
|
-
|
|
196
|
+
u({ attribute: "receives-focus" })
|
|
195
197
|
], l.prototype, "receivesFocus");
|
|
196
198
|
s([
|
|
197
199
|
h()
|
|
@@ -214,7 +216,7 @@ s([
|
|
|
214
216
|
s([
|
|
215
217
|
g("#hover-overlay", !0)
|
|
216
218
|
], l.prototype, "hoverOverlayElement");
|
|
217
|
-
function
|
|
219
|
+
function U(i, e, t, o) {
|
|
218
220
|
return f.open(
|
|
219
221
|
i,
|
|
220
222
|
e,
|
|
@@ -234,7 +236,7 @@ class x extends A {
|
|
|
234
236
|
if (e.target !== e.currentTarget)
|
|
235
237
|
return;
|
|
236
238
|
const t = e.data === y;
|
|
237
|
-
|
|
239
|
+
b(t ? void 0 : this.template(), this.target, {
|
|
238
240
|
renderBefore: this.renderBefore
|
|
239
241
|
});
|
|
240
242
|
}
|
|
@@ -257,7 +259,7 @@ class x extends A {
|
|
|
257
259
|
this.init();
|
|
258
260
|
}
|
|
259
261
|
}
|
|
260
|
-
const
|
|
262
|
+
const N = v(x);
|
|
261
263
|
class I extends x {
|
|
262
264
|
constructor() {
|
|
263
265
|
super(...arguments), this.defaultOptions = {
|
|
@@ -275,14 +277,14 @@ class I extends x {
|
|
|
275
277
|
return z;
|
|
276
278
|
}
|
|
277
279
|
update(e, [t, o]) {
|
|
278
|
-
var
|
|
280
|
+
var m, d, p;
|
|
279
281
|
this.options = {
|
|
280
282
|
...this.defaultOptions.overlayOptions,
|
|
281
283
|
...o == null ? void 0 : o.overlayOptions
|
|
282
|
-
}, this.insertionOptions = o == null ? void 0 : o.insertionOptions, this.template = t, this.host = (
|
|
284
|
+
}, this.insertionOptions = o == null ? void 0 : o.insertionOptions, this.template = t, this.host = (m = e.options) == null ? void 0 : m.host;
|
|
283
285
|
let r = !1;
|
|
284
286
|
const n = (o == null ? void 0 : o.triggerInteraction) || this.defaultOptions.triggerInteraction, a = O[(d = this.strategy) == null ? void 0 : d.type] !== n;
|
|
285
|
-
this.target !== e.element && (this.target = e.element, r = !0), (r || a) && ((p = this.strategy) == null || p.abort(), this.strategy = new
|
|
287
|
+
this.target !== e.element && (this.target = e.element, r = !0), (r || a) && ((p = this.strategy) == null || p.abort(), this.strategy = new $[n](this.target, {
|
|
286
288
|
isPersistent: !0,
|
|
287
289
|
handleOverlayReady: (C) => {
|
|
288
290
|
this.listenerHost = this.overlay = C, this.init();
|
|
@@ -294,47 +296,47 @@ class I extends x {
|
|
|
294
296
|
if (e.target !== e.currentTarget)
|
|
295
297
|
return;
|
|
296
298
|
const t = e.data === y, o = {};
|
|
297
|
-
if (this.host && (o.host = this.host),
|
|
299
|
+
if (this.host && (o.host = this.host), b(
|
|
298
300
|
t ? void 0 : this.template(),
|
|
299
301
|
this.overlay,
|
|
300
302
|
o
|
|
301
303
|
), t)
|
|
302
304
|
this.overlay.remove();
|
|
303
305
|
else {
|
|
304
|
-
|
|
306
|
+
S.applyOptions(this.overlay, {
|
|
305
307
|
...this.options,
|
|
306
308
|
trigger: this.target
|
|
307
309
|
});
|
|
308
|
-
const a = typeof ((r = this.insertionOptions) == null ? void 0 : r.el) == "function" ? this.insertionOptions.el() : ((n = this.insertionOptions) == null ? void 0 : n.el) || this.target, { where:
|
|
309
|
-
a.insertAdjacentElement(
|
|
310
|
+
const a = typeof ((r = this.insertionOptions) == null ? void 0 : r.el) == "function" ? this.insertionOptions.el() : ((n = this.insertionOptions) == null ? void 0 : n.el) || this.target, { where: m = "afterend" } = this.insertionOptions || {};
|
|
311
|
+
a.insertAdjacentElement(m, this.overlay);
|
|
310
312
|
}
|
|
311
313
|
}
|
|
312
314
|
}
|
|
313
|
-
const
|
|
315
|
+
const V = v(I);
|
|
314
316
|
customElements.get("luzmo-overlay") || customElements.define("luzmo-overlay", f);
|
|
315
317
|
customElements.get("luzmo-overlay-trigger") || customElements.define("luzmo-overlay-trigger", l);
|
|
316
318
|
export {
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
319
|
+
G as ClickController,
|
|
320
|
+
M as HoverController,
|
|
321
|
+
J as InteractionController,
|
|
320
322
|
O as InteractionTypes,
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
323
|
+
K as LONGPRESS_INSTRUCTIONS,
|
|
324
|
+
Q as LongpressController,
|
|
325
|
+
S as LuzmoAbstractOverlay,
|
|
324
326
|
f as LuzmoOverlay,
|
|
325
327
|
l as LuzmoOverlayTrigger,
|
|
326
328
|
I as OverlayTriggerDirective,
|
|
327
|
-
|
|
329
|
+
W as PlacementController,
|
|
328
330
|
x as SlottableRequestDirective,
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
331
|
+
le as SlottableRequestEvent,
|
|
332
|
+
X as VirtualTrigger,
|
|
333
|
+
Y as guaranteedAllTransitionend,
|
|
334
|
+
Z as nextFrame,
|
|
335
|
+
ee as noop,
|
|
336
|
+
U as openOverlay,
|
|
337
|
+
te as overlayTimer,
|
|
338
|
+
oe as placementUpdatedSymbol,
|
|
337
339
|
y as removeSlottableRequest,
|
|
338
|
-
|
|
339
|
-
|
|
340
|
+
N as slottableRequest,
|
|
341
|
+
V as trigger
|
|
340
342
|
};
|