@tachui/modifiers 0.8.32 → 0.10.0
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/dist/animation/index.d.ts +0 -3
- package/dist/animation/index.d.ts.map +1 -1
- package/dist/appearance/background.d.ts +13 -1
- package/dist/appearance/background.d.ts.map +1 -1
- package/dist/appearance/index.js +1 -1
- package/dist/base.d.ts +0 -2
- package/dist/base.d.ts.map +1 -1
- package/dist/base.js +1 -1
- package/dist/basic/base.d.ts +0 -2
- package/dist/basic/base.d.ts.map +1 -1
- package/dist/basic/index.d.ts.map +1 -1
- package/dist/basic/index.js +1 -1
- package/dist/basic/margin.js +1 -1
- package/dist/basic/padding.js +1 -1
- package/dist/basic/size.js +3 -3
- package/dist/effects/backdrop/index.js +1 -1
- package/dist/index.js +14 -15
- package/dist/interaction/index.js +1 -1
- package/dist/layout/index.js +1 -1
- package/dist/layout/overlay.d.ts +23 -5
- package/dist/layout/overlay.d.ts.map +1 -1
- package/dist/{modifiers-basic-7HZ7ereG.js → modifiers-basic-DSpueCBb.js} +1229 -1224
- package/dist/preload/basic.js +2 -2
- package/dist/types.d.ts +0 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/typography/index.js +5 -5
- package/dist/typography/text.js +4 -4
- package/dist/utility/index.js +1 -1
- package/package.json +4 -4
|
@@ -1,38 +1,39 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { globalModifierRegistry as
|
|
5
|
-
import { isSignal as y, isComputed as m, createEffect as b, getThemeSignal as U } from "@tachui/core/reactive";
|
|
6
|
-
import { bindReactiveStyle as
|
|
1
|
+
var We = Object.defineProperty;
|
|
2
|
+
var je = (o, s, e) => s in o ? We(o, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[s] = e;
|
|
3
|
+
var d = (o, s, e) => je(o, typeof s != "symbol" ? s + "" : s, e);
|
|
4
|
+
import { globalModifierRegistry as Ue } from "@tachui/registry";
|
|
5
|
+
import { isSignal as y, isComputed as m, createEffect as b, getThemeSignal as U, onCleanup as Ge } from "@tachui/core/reactive";
|
|
6
|
+
import { bindReactiveStyle as $e, ensureAnimationKeyframes as Ve, collectStaticAnimationCSSRules as De } from "@tachui/core/modifiers/base";
|
|
7
7
|
import { shouldExpandForInfinity as ue, dimensionToCSS as A, isInfinity as L } from "@tachui/core/constants/layout";
|
|
8
|
-
import { AnimationModifier as
|
|
9
|
-
import {
|
|
10
|
-
|
|
8
|
+
import { AnimationModifier as fe, LifecycleModifier as Ke, LayoutModifier as pe, ResizableModifier as Ye, AppearanceModifier as H } from "@tachui/core/modifiers";
|
|
9
|
+
import { renderComponent as Xe } from "@tachui/core/runtime";
|
|
10
|
+
import { gradientToDeclarations as Ze } from "@tachui/core/gradients/css-generator";
|
|
11
|
+
const D = {
|
|
11
12
|
LAYOUT: 100,
|
|
12
13
|
APPEARANCE: 200,
|
|
13
14
|
INTERACTION: 300,
|
|
14
15
|
ANIMATION: 400,
|
|
15
16
|
CUSTOM: 500
|
|
16
|
-
},
|
|
17
|
-
let
|
|
17
|
+
}, Me = /* @__PURE__ */ Symbol.for("tachui.modifier.instanceId"), qe = "package";
|
|
18
|
+
let ke = 0;
|
|
18
19
|
function $(o) {
|
|
19
20
|
return typeof HTMLElement < "u" && o instanceof HTMLElement;
|
|
20
21
|
}
|
|
21
22
|
function N(o) {
|
|
22
23
|
return typeof o == "object" && o !== null && "style" in o && !!o.style;
|
|
23
24
|
}
|
|
24
|
-
function
|
|
25
|
+
function oe() {
|
|
25
26
|
return typeof document < "u";
|
|
26
27
|
}
|
|
27
|
-
function
|
|
28
|
+
function Je() {
|
|
28
29
|
return typeof window < "u";
|
|
29
30
|
}
|
|
30
|
-
function
|
|
31
|
-
const s = o[
|
|
31
|
+
function Qe(o) {
|
|
32
|
+
const s = o[Me];
|
|
32
33
|
if (typeof s == "number") return s;
|
|
33
|
-
|
|
34
|
-
const e =
|
|
35
|
-
return Object.defineProperty(o,
|
|
34
|
+
ke += 1;
|
|
35
|
+
const e = ke;
|
|
36
|
+
return Object.defineProperty(o, Me, {
|
|
36
37
|
value: e,
|
|
37
38
|
enumerable: !1,
|
|
38
39
|
configurable: !1,
|
|
@@ -41,7 +42,7 @@ function Ye(o) {
|
|
|
41
42
|
}
|
|
42
43
|
let v = class {
|
|
43
44
|
constructor(s) {
|
|
44
|
-
|
|
45
|
+
d(this, "properties");
|
|
45
46
|
this.properties = s;
|
|
46
47
|
}
|
|
47
48
|
getStaticCSS(s) {
|
|
@@ -142,11 +143,11 @@ let v = class {
|
|
|
142
143
|
if (a !== void 0) {
|
|
143
144
|
const l = this.toCSSProperty(r);
|
|
144
145
|
if (y(a) || m(a)) {
|
|
145
|
-
const c = a,
|
|
146
|
-
|
|
146
|
+
const c = a, f = Qe(this);
|
|
147
|
+
$e({
|
|
147
148
|
element: s,
|
|
148
149
|
accessor: c,
|
|
149
|
-
updaterId: `${
|
|
150
|
+
updaterId: `${qe}:${f}:${l}`,
|
|
150
151
|
updater: (u) => {
|
|
151
152
|
const p = this.toCSSValueForProperty(l, u);
|
|
152
153
|
n(l, p);
|
|
@@ -183,11 +184,11 @@ let v = class {
|
|
|
183
184
|
cleanup: []
|
|
184
185
|
};
|
|
185
186
|
}
|
|
186
|
-
},
|
|
187
|
+
}, rr = class extends v {
|
|
187
188
|
constructor() {
|
|
188
189
|
super(...arguments);
|
|
189
|
-
|
|
190
|
-
|
|
190
|
+
d(this, "type", "layout");
|
|
191
|
+
d(this, "priority", D.LAYOUT);
|
|
191
192
|
}
|
|
192
193
|
apply(e, t) {
|
|
193
194
|
if (!e.element || !t.element) return;
|
|
@@ -207,11 +208,11 @@ let v = class {
|
|
|
207
208
|
const { x: i, y: n } = t;
|
|
208
209
|
if (y(i) || m(i) || y(n) || m(n))
|
|
209
210
|
b(() => {
|
|
210
|
-
const r = y(i) || m(i) ? i() : i ?? 0, a = y(n) || m(n) ? n() : n ?? 0, l = this.toCSSValue(r), c = this.toCSSValue(a),
|
|
211
|
+
const r = y(i) || m(i) ? i() : i ?? 0, a = y(n) || m(n) ? n() : n ?? 0, l = this.toCSSValue(r), c = this.toCSSValue(a), f = `translate(${l}, ${c})`, p = (e.style.transform || "").split(" ").filter((g) => g && !g.startsWith("translate(")).join(" "), h = p ? `${p} ${f}` : f;
|
|
211
212
|
e.style.transform = h;
|
|
212
213
|
});
|
|
213
214
|
else {
|
|
214
|
-
const r = i ?? 0, a = n ?? 0, l = this.toCSSValue(r), c = this.toCSSValue(a),
|
|
215
|
+
const r = i ?? 0, a = n ?? 0, l = this.toCSSValue(r), c = this.toCSSValue(a), f = `translate(${l}, ${c})`, p = (e.style.transform || "").split(" ").filter((g) => g && !g.startsWith("translate(")).join(" "), h = p ? `${p} ${f}` : f;
|
|
215
216
|
e.style.transform = h;
|
|
216
217
|
}
|
|
217
218
|
}
|
|
@@ -227,7 +228,7 @@ let v = class {
|
|
|
227
228
|
const { x: i, y: n, anchor: r } = t, a = i ?? 1, l = n ?? a;
|
|
228
229
|
if (y(a) || m(a) || y(l) || m(l))
|
|
229
230
|
b(() => {
|
|
230
|
-
const c = y(a) || m(a) ? a() : a,
|
|
231
|
+
const c = y(a) || m(a) ? a() : a, f = y(l) || m(l) ? l() : l, u = `scale(${c}, ${f})`;
|
|
231
232
|
e.style.transformOrigin = this.getTransformOrigin(
|
|
232
233
|
r || "center"
|
|
233
234
|
);
|
|
@@ -349,11 +350,11 @@ let v = class {
|
|
|
349
350
|
}
|
|
350
351
|
return i;
|
|
351
352
|
}
|
|
352
|
-
},
|
|
353
|
+
}, ar = class extends v {
|
|
353
354
|
constructor() {
|
|
354
355
|
super(...arguments);
|
|
355
|
-
|
|
356
|
-
|
|
356
|
+
d(this, "type", "appearance");
|
|
357
|
+
d(this, "priority", D.APPEARANCE);
|
|
357
358
|
}
|
|
358
359
|
apply(e, t) {
|
|
359
360
|
if (!e.element || !t.element)
|
|
@@ -435,27 +436,27 @@ let v = class {
|
|
|
435
436
|
const i = [];
|
|
436
437
|
return e.blur !== void 0 && i.push(`blur(${e.blur}px)`), e.brightness !== void 0 && i.push(`brightness(${e.brightness})`), e.contrast !== void 0 && i.push(`contrast(${e.contrast})`), e.saturation !== void 0 && i.push(`saturate(${e.saturation})`), e.hueRotation !== void 0 && i.push(`hue-rotate(${e.hueRotation}deg)`), e.grayscale !== void 0 && i.push(`grayscale(${e.grayscale})`), e.colorInvert !== void 0 && i.push(`invert(${e.colorInvert})`), i.length > 0 && (t.filter = i.join(" ")), t;
|
|
437
438
|
}
|
|
438
|
-
},
|
|
439
|
+
}, cr = class extends v {
|
|
439
440
|
constructor() {
|
|
440
441
|
super(...arguments);
|
|
441
|
-
|
|
442
|
-
|
|
442
|
+
d(this, "type", "interaction");
|
|
443
|
+
d(this, "priority", D.INTERACTION);
|
|
443
444
|
}
|
|
444
445
|
apply(e, t) {
|
|
445
446
|
if (!t.element) return;
|
|
446
|
-
const i = this.properties, n = t.element, r = [], a = [], l = (
|
|
447
|
-
|
|
447
|
+
const i = this.properties, n = t.element, r = [], a = [], l = (f, u, p, h) => {
|
|
448
|
+
f.addEventListener(u, p, h), r.push({ target: f, type: u, handler: p, options: h });
|
|
448
449
|
};
|
|
449
450
|
if (i.onTap && l(n, "click", i.onTap), i.onHover && (l(n, "mouseenter", () => i.onHover(!0)), l(n, "mouseleave", () => i.onHover(!1))), i.onMouseEnter && l(n, "mouseenter", i.onMouseEnter), i.onMouseLeave && l(n, "mouseleave", i.onMouseLeave), i.onMouseDown && l(n, "mousedown", i.onMouseDown), i.onMouseUp && l(n, "mouseup", i.onMouseUp), i.onDragStart && l(n, "dragstart", i.onDragStart), i.onDragOver && l(n, "dragover", i.onDragOver), i.onDragLeave && l(n, "dragleave", i.onDragLeave), i.onDrop && l(n, "drop", i.onDrop), i.onDoubleClick && l(n, "dblclick", i.onDoubleClick), i.onContextMenu && l(n, "contextmenu", i.onContextMenu), i.onFocus && (l(n, "focus", () => i.onFocus(!0)), l(n, "blur", () => i.onFocus(!1))), i.onBlur && l(n, "blur", () => i.onBlur(!1)), i.onKeyPress && l(n, "keypress", i.onKeyPress), i.onKeyDown && l(n, "keydown", i.onKeyDown), i.onKeyUp && l(n, "keyup", i.onKeyUp), i.onScroll && l(n, "scroll", i.onScroll, {
|
|
450
451
|
passive: !0
|
|
451
452
|
}), i.onWheel && l(n, "wheel", i.onWheel, {
|
|
452
453
|
passive: !1
|
|
453
|
-
}), i.onInput && l(n, "input", i.onInput), i.onChange && l(n, "change", (
|
|
454
|
-
const u =
|
|
455
|
-
i.onChange(p,
|
|
454
|
+
}), i.onInput && l(n, "input", i.onInput), i.onChange && l(n, "change", (f) => {
|
|
455
|
+
const u = f.target, p = u.value || u.textContent || "";
|
|
456
|
+
i.onChange(p, f);
|
|
456
457
|
}), i.onCopy && l(n, "copy", i.onCopy), i.onCut && l(n, "cut", i.onCut), i.onPaste && l(n, "paste", i.onPaste), i.onSelect && l(n, "select", i.onSelect), i.disabled !== void 0 && $(n)) {
|
|
457
|
-
const
|
|
458
|
-
p ? (
|
|
458
|
+
const f = n, u = (p) => {
|
|
459
|
+
p ? (f.setAttribute("disabled", "true"), f.style.pointerEvents = "none", f.style.opacity = "0.6") : (f.removeAttribute("disabled"), f.style.pointerEvents = "", f.style.opacity = "");
|
|
459
460
|
};
|
|
460
461
|
y(i.disabled) || m(i.disabled) ? b(() => {
|
|
461
462
|
const p = !!i.disabled();
|
|
@@ -465,21 +466,21 @@ let v = class {
|
|
|
465
466
|
if (i.draggable !== void 0 && $(n) && (n.draggable = i.draggable), i.accessibilityLabel && n.setAttribute("aria-label", i.accessibilityLabel), i.accessibilityHint && n.setAttribute("aria-describedby", i.accessibilityHint), i.onLongPressGesture && a.push(
|
|
466
467
|
this.setupLongPressGesture(n, i.onLongPressGesture)
|
|
467
468
|
), i.keyboardShortcut) {
|
|
468
|
-
const
|
|
469
|
-
|
|
469
|
+
const f = this.setupKeyboardShortcut(n, i.keyboardShortcut);
|
|
470
|
+
f && a.push(f);
|
|
470
471
|
}
|
|
471
472
|
if (i.focused !== void 0 && this.setupFocusManagement(n, i.focused), i.focusable) {
|
|
472
|
-
const
|
|
473
|
-
|
|
473
|
+
const f = this.setupFocusable(n, i.focusable);
|
|
474
|
+
f && a.push(f);
|
|
474
475
|
}
|
|
475
476
|
return i.onContinuousHover && a.push(
|
|
476
477
|
this.setupContinuousHover(n, i.onContinuousHover)
|
|
477
478
|
), i.allowsHitTesting !== void 0 && this.setupHitTesting(n, i.allowsHitTesting), { node: e, cleanup: [() => {
|
|
478
|
-
for (const { target:
|
|
479
|
-
|
|
479
|
+
for (const { target: f, type: u, handler: p, options: h } of r)
|
|
480
|
+
f.removeEventListener(u, p, h);
|
|
480
481
|
r.length = 0;
|
|
481
|
-
for (const
|
|
482
|
-
|
|
482
|
+
for (const f of a)
|
|
483
|
+
f();
|
|
483
484
|
a.length = 0;
|
|
484
485
|
}] };
|
|
485
486
|
}
|
|
@@ -492,14 +493,14 @@ let v = class {
|
|
|
492
493
|
let r, a = null, l = !1;
|
|
493
494
|
const c = () => {
|
|
494
495
|
r && (clearTimeout(r), r = void 0), l && t.onPressingChanged && t.onPressingChanged(!1), l = !1, a = null;
|
|
495
|
-
},
|
|
496
|
+
}, f = () => {
|
|
496
497
|
c(), e.removeEventListener("pointerdown", u), e.removeEventListener("pointermove", p), e.removeEventListener("pointerup", h), e.removeEventListener(
|
|
497
498
|
"pointercancel",
|
|
498
499
|
g
|
|
499
500
|
);
|
|
500
501
|
}, u = (S) => {
|
|
501
502
|
const E = S;
|
|
502
|
-
a = { x: E.clientX, y: E.clientY }, l = !0, t.onPressingChanged && t.onPressingChanged(!0), r = (
|
|
503
|
+
a = { x: E.clientX, y: E.clientY }, l = !0, t.onPressingChanged && t.onPressingChanged(!0), r = (Je() ? window.setTimeout : setTimeout)(() => {
|
|
503
504
|
l && a && (t.perform(), c());
|
|
504
505
|
}, i);
|
|
505
506
|
}, p = (S) => {
|
|
@@ -516,7 +517,7 @@ let v = class {
|
|
|
516
517
|
return e.addEventListener("pointerdown", u), e.addEventListener("pointermove", p), e.addEventListener("pointerup", h), e.addEventListener(
|
|
517
518
|
"pointercancel",
|
|
518
519
|
g
|
|
519
|
-
), e._longPressCleanup =
|
|
520
|
+
), e._longPressCleanup = f, f;
|
|
520
521
|
}
|
|
521
522
|
/**
|
|
522
523
|
* Setup keyboard shortcut handling
|
|
@@ -534,12 +535,12 @@ let v = class {
|
|
|
534
535
|
ctrl: a.ctrlKey,
|
|
535
536
|
shift: a.shiftKey,
|
|
536
537
|
alt: a.altKey
|
|
537
|
-
},
|
|
538
|
+
}, f = a.key.toLowerCase() === t.key.toLowerCase(), u = Object.entries(l).every(
|
|
538
539
|
([p, h]) => h === c[p]
|
|
539
540
|
);
|
|
540
|
-
|
|
541
|
+
f && u && (a.preventDefault(), t.action());
|
|
541
542
|
};
|
|
542
|
-
if (!
|
|
543
|
+
if (!oe()) return;
|
|
543
544
|
document.addEventListener("keydown", n);
|
|
544
545
|
const r = () => {
|
|
545
546
|
document.removeEventListener("keydown", n);
|
|
@@ -580,13 +581,13 @@ let v = class {
|
|
|
580
581
|
setupContinuousHover(e, t) {
|
|
581
582
|
const i = t.coordinateSpace ?? "local", n = (l) => {
|
|
582
583
|
const c = l;
|
|
583
|
-
let
|
|
584
|
+
let f, u;
|
|
584
585
|
if (i === "local") {
|
|
585
586
|
const p = e.getBoundingClientRect();
|
|
586
|
-
|
|
587
|
+
f = c.clientX - p.left, u = c.clientY - p.top;
|
|
587
588
|
} else
|
|
588
|
-
|
|
589
|
-
t.perform({ x:
|
|
589
|
+
f = c.clientX, u = c.clientY;
|
|
590
|
+
t.perform({ x: f, y: u });
|
|
590
591
|
}, r = () => {
|
|
591
592
|
t.perform(null);
|
|
592
593
|
};
|
|
@@ -605,11 +606,11 @@ let v = class {
|
|
|
605
606
|
setupHitTesting(e, t) {
|
|
606
607
|
$(e) && (e.style.pointerEvents = t ? "" : "none");
|
|
607
608
|
}
|
|
608
|
-
},
|
|
609
|
+
}, et = class extends v {
|
|
609
610
|
constructor() {
|
|
610
611
|
super(...arguments);
|
|
611
|
-
|
|
612
|
-
|
|
612
|
+
d(this, "type", "animation");
|
|
613
|
+
d(this, "priority", D.ANIMATION);
|
|
613
614
|
}
|
|
614
615
|
apply(e, t) {
|
|
615
616
|
if (!t.element) return;
|
|
@@ -620,14 +621,9 @@ let v = class {
|
|
|
620
621
|
}
|
|
621
622
|
if (i.animation && N(t.element)) {
|
|
622
623
|
const n = i.animation;
|
|
623
|
-
if (n.keyframes &&
|
|
624
|
-
const r =
|
|
625
|
-
|
|
626
|
-
n.keyframes
|
|
627
|
-
);
|
|
628
|
-
this.addKeyframesToStylesheet(a);
|
|
629
|
-
const l = n.duration || 1e3, c = n.easing || "ease", d = n.iterations || 1, u = n.direction || "normal";
|
|
630
|
-
t.element.style.animation = `${r} ${l}ms ${c} ${d} ${u}`;
|
|
624
|
+
if (n.keyframes && oe()) {
|
|
625
|
+
const r = Ve(n.keyframes), a = n.duration || 1e3, l = n.easing || "ease", c = n.iterations || 1, f = n.direction || "normal";
|
|
626
|
+
t.element.style.animation = `${r} ${a}ms ${l} ${c} ${f}`;
|
|
631
627
|
}
|
|
632
628
|
}
|
|
633
629
|
if (i.transform && N(t.element) && (y(i.transform) || m(i.transform) ? b(() => {
|
|
@@ -663,23 +659,19 @@ let v = class {
|
|
|
663
659
|
i.overlay && $(t.element) && this.applyOverlay(t.element, i.overlay, t);
|
|
664
660
|
}
|
|
665
661
|
getStaticCSS(e) {
|
|
666
|
-
return
|
|
667
|
-
e,
|
|
668
|
-
this.properties,
|
|
669
|
-
this.createKeyframeRule.bind(this)
|
|
670
|
-
);
|
|
662
|
+
return De(e, this.properties);
|
|
671
663
|
}
|
|
672
664
|
applyOverlay(e, t, i) {
|
|
673
665
|
const { content: n, alignment: r = "center" } = t;
|
|
674
|
-
if ((e.style.position === "" || e.style.position === "static") && (e.style.position = "relative"), !
|
|
666
|
+
if ((e.style.position === "" || e.style.position === "static") && (e.style.position = "relative"), !oe()) return;
|
|
675
667
|
const a = document.createElement("div");
|
|
676
668
|
a.style.position = "absolute", a.style.pointerEvents = "none";
|
|
677
669
|
const l = this.getOverlayAlignment(r);
|
|
678
670
|
if (Object.assign(a.style, l), typeof n == "function") {
|
|
679
671
|
const c = n();
|
|
680
672
|
if (c && typeof c.render == "function") {
|
|
681
|
-
const
|
|
682
|
-
|
|
673
|
+
const f = c.render();
|
|
674
|
+
f.element && a.appendChild(f.element);
|
|
683
675
|
}
|
|
684
676
|
} else if (n && typeof n.render == "function") {
|
|
685
677
|
const c = n.render();
|
|
@@ -733,35 +725,12 @@ let v = class {
|
|
|
733
725
|
};
|
|
734
726
|
return t[e] || t.center;
|
|
735
727
|
}
|
|
736
|
-
|
|
737
|
-
let i = `@keyframes ${e} {
|
|
738
|
-
`;
|
|
739
|
-
for (const [n, r] of Object.entries(t)) {
|
|
740
|
-
i += ` ${n} {
|
|
741
|
-
`;
|
|
742
|
-
for (const [a, l] of Object.entries(r)) {
|
|
743
|
-
const c = this.toCSSProperty(a);
|
|
744
|
-
i += ` ${c}: ${l};
|
|
745
|
-
`;
|
|
746
|
-
}
|
|
747
|
-
i += ` }
|
|
748
|
-
`;
|
|
749
|
-
}
|
|
750
|
-
return i += "}", i;
|
|
751
|
-
}
|
|
752
|
-
addKeyframesToStylesheet(e) {
|
|
753
|
-
if (!Q()) return;
|
|
754
|
-
let t = document.querySelector(
|
|
755
|
-
"#tachui-animations"
|
|
756
|
-
);
|
|
757
|
-
t || (t = document.createElement("style"), t.id = "tachui-animations", document.head.appendChild(t)), t.appendChild(document.createTextNode(e));
|
|
758
|
-
}
|
|
759
|
-
}, sr = class extends v {
|
|
728
|
+
}, ur = class extends v {
|
|
760
729
|
constructor() {
|
|
761
730
|
super(...arguments);
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
731
|
+
d(this, "type", "lifecycle");
|
|
732
|
+
d(this, "priority", D.CUSTOM);
|
|
733
|
+
d(this, "activeAbortController");
|
|
765
734
|
}
|
|
766
735
|
apply(e, t) {
|
|
767
736
|
if (!t.element) return;
|
|
@@ -807,7 +776,7 @@ let v = class {
|
|
|
807
776
|
if (!t) return;
|
|
808
777
|
let i = !1, n = 0, r = 0;
|
|
809
778
|
const a = 70;
|
|
810
|
-
if (!
|
|
779
|
+
if (!oe()) return;
|
|
811
780
|
const l = document.createElement("div");
|
|
812
781
|
if (l.style.cssText = `
|
|
813
782
|
position: absolute;
|
|
@@ -834,7 +803,7 @@ let v = class {
|
|
|
834
803
|
}
|
|
835
804
|
const c = e.parentElement || e;
|
|
836
805
|
$(c) && (c.style.position = "relative", c.appendChild(l));
|
|
837
|
-
const
|
|
806
|
+
const f = (h) => {
|
|
838
807
|
i || (r = h.touches[0].clientY);
|
|
839
808
|
}, u = (h) => {
|
|
840
809
|
if (i) return;
|
|
@@ -858,14 +827,14 @@ let v = class {
|
|
|
858
827
|
i = !1, l.style.opacity = "0", l.style.top = "-50px", n = 0;
|
|
859
828
|
}
|
|
860
829
|
};
|
|
861
|
-
e.addEventListener("touchstart",
|
|
830
|
+
e.addEventListener("touchstart", f, {
|
|
862
831
|
passive: !1
|
|
863
832
|
}), e.addEventListener("touchmove", u, {
|
|
864
833
|
passive: !1
|
|
865
834
|
}), e.addEventListener("touchend", p), this.addCleanup(() => {
|
|
866
835
|
e.removeEventListener(
|
|
867
836
|
"touchstart",
|
|
868
|
-
|
|
837
|
+
f
|
|
869
838
|
), e.removeEventListener("touchmove", u), e.removeEventListener("touchend", p), l.parentElement && l.parentElement.removeChild(l);
|
|
870
839
|
});
|
|
871
840
|
}
|
|
@@ -873,13 +842,13 @@ let v = class {
|
|
|
873
842
|
this.properties._cleanupFunctions || (this.properties._cleanupFunctions = []), this.properties._cleanupFunctions.push(e);
|
|
874
843
|
}
|
|
875
844
|
};
|
|
876
|
-
const
|
|
845
|
+
const tt = "@tachui/modifiers", it = "0.10.0", hr = tt, nt = it;
|
|
877
846
|
class O extends v {
|
|
878
847
|
// Optimized priority for internal spacing (before margin at 50)
|
|
879
848
|
constructor(e) {
|
|
880
849
|
super(e);
|
|
881
|
-
|
|
882
|
-
|
|
850
|
+
d(this, "type", "padding");
|
|
851
|
+
d(this, "priority", 45);
|
|
883
852
|
}
|
|
884
853
|
apply(e, t) {
|
|
885
854
|
if (!t.element) return;
|
|
@@ -907,31 +876,31 @@ class O extends v {
|
|
|
907
876
|
function T(o) {
|
|
908
877
|
return y(o) || m(o) ? new O({ all: o }) : typeof o == "number" || typeof o == "string" ? new O({ all: o }) : new O(o);
|
|
909
878
|
}
|
|
910
|
-
function
|
|
879
|
+
function ot(o) {
|
|
911
880
|
return new O({ top: o });
|
|
912
881
|
}
|
|
913
|
-
function
|
|
882
|
+
function rt(o) {
|
|
914
883
|
return new O({ bottom: o });
|
|
915
884
|
}
|
|
916
|
-
function
|
|
885
|
+
function st(o) {
|
|
917
886
|
return new O({ left: o });
|
|
918
887
|
}
|
|
919
|
-
function
|
|
888
|
+
function at(o) {
|
|
920
889
|
return new O({ right: o });
|
|
921
890
|
}
|
|
922
|
-
function
|
|
891
|
+
function lt(o) {
|
|
923
892
|
return new O({ leading: o });
|
|
924
893
|
}
|
|
925
|
-
function
|
|
894
|
+
function ct(o) {
|
|
926
895
|
return new O({ trailing: o });
|
|
927
896
|
}
|
|
928
|
-
function
|
|
897
|
+
function ft(o) {
|
|
929
898
|
return new O({ horizontal: o });
|
|
930
899
|
}
|
|
931
|
-
function
|
|
900
|
+
function dt(o) {
|
|
932
901
|
return new O({ vertical: o });
|
|
933
902
|
}
|
|
934
|
-
const
|
|
903
|
+
const yr = {
|
|
935
904
|
/**
|
|
936
905
|
* Extra small padding (4px) - For tight spacing
|
|
937
906
|
*/
|
|
@@ -1014,8 +983,8 @@ class B extends v {
|
|
|
1014
983
|
// Optimized priority for external spacing (after padding at 45)
|
|
1015
984
|
constructor(e) {
|
|
1016
985
|
super(e);
|
|
1017
|
-
|
|
1018
|
-
|
|
986
|
+
d(this, "type", "margin");
|
|
987
|
+
d(this, "priority", 50);
|
|
1019
988
|
}
|
|
1020
989
|
apply(e, t) {
|
|
1021
990
|
if (!t.element) return;
|
|
@@ -1043,31 +1012,31 @@ class B extends v {
|
|
|
1043
1012
|
function M(o) {
|
|
1044
1013
|
return typeof o == "number" || typeof o == "string" ? new B({ all: o }) : new B(o);
|
|
1045
1014
|
}
|
|
1046
|
-
function
|
|
1015
|
+
function ut(o) {
|
|
1047
1016
|
return new B({ top: o });
|
|
1048
1017
|
}
|
|
1049
|
-
function
|
|
1018
|
+
function pt(o) {
|
|
1050
1019
|
return new B({ bottom: o });
|
|
1051
1020
|
}
|
|
1052
|
-
function
|
|
1021
|
+
function ht(o) {
|
|
1053
1022
|
return new B({ left: o });
|
|
1054
1023
|
}
|
|
1055
|
-
function
|
|
1024
|
+
function yt(o) {
|
|
1056
1025
|
return new B({ right: o });
|
|
1057
1026
|
}
|
|
1058
|
-
function
|
|
1027
|
+
function mt(o) {
|
|
1059
1028
|
return new B({ leading: o });
|
|
1060
1029
|
}
|
|
1061
|
-
function
|
|
1030
|
+
function gt(o) {
|
|
1062
1031
|
return new B({ trailing: o });
|
|
1063
1032
|
}
|
|
1064
|
-
function
|
|
1033
|
+
function vt(o) {
|
|
1065
1034
|
return new B({ horizontal: o });
|
|
1066
1035
|
}
|
|
1067
|
-
function
|
|
1036
|
+
function bt(o) {
|
|
1068
1037
|
return new B({ vertical: o });
|
|
1069
1038
|
}
|
|
1070
|
-
const
|
|
1039
|
+
const mr = {
|
|
1071
1040
|
/**
|
|
1072
1041
|
* Extra small margin (4px) - For tight spacing
|
|
1073
1042
|
*/
|
|
@@ -1155,8 +1124,8 @@ class G extends v {
|
|
|
1155
1124
|
// Priority 80 for layout
|
|
1156
1125
|
constructor(e) {
|
|
1157
1126
|
super(e);
|
|
1158
|
-
|
|
1159
|
-
|
|
1127
|
+
d(this, "type", "size");
|
|
1128
|
+
d(this, "priority", 80);
|
|
1160
1129
|
}
|
|
1161
1130
|
apply(e, t) {
|
|
1162
1131
|
if (!t.element) return;
|
|
@@ -1192,46 +1161,46 @@ class G extends v {
|
|
|
1192
1161
|
return t;
|
|
1193
1162
|
}
|
|
1194
1163
|
}
|
|
1195
|
-
function
|
|
1164
|
+
function St(o) {
|
|
1196
1165
|
return new G(o);
|
|
1197
1166
|
}
|
|
1198
|
-
function
|
|
1167
|
+
function wt(o) {
|
|
1199
1168
|
return new G({ width: o });
|
|
1200
1169
|
}
|
|
1201
|
-
function
|
|
1170
|
+
function Ct(o) {
|
|
1202
1171
|
return new G({ height: o });
|
|
1203
1172
|
}
|
|
1204
|
-
function
|
|
1173
|
+
function xt(o) {
|
|
1205
1174
|
return new G({ maxWidth: o });
|
|
1206
1175
|
}
|
|
1207
|
-
function
|
|
1176
|
+
function Et(o) {
|
|
1208
1177
|
return new G({ minWidth: o });
|
|
1209
1178
|
}
|
|
1210
|
-
function
|
|
1179
|
+
function Tt(o) {
|
|
1211
1180
|
return new G({ maxHeight: o });
|
|
1212
1181
|
}
|
|
1213
|
-
function
|
|
1182
|
+
function Mt(o) {
|
|
1214
1183
|
return new G({ minHeight: o });
|
|
1215
1184
|
}
|
|
1216
|
-
class
|
|
1185
|
+
class ae extends et {
|
|
1217
1186
|
constructor() {
|
|
1218
1187
|
super(...arguments);
|
|
1219
1188
|
// Override type to be 'transition' instead of 'animation'
|
|
1220
|
-
|
|
1189
|
+
d(this, "type", "transition");
|
|
1221
1190
|
}
|
|
1222
1191
|
}
|
|
1223
|
-
function
|
|
1192
|
+
function kt(o, s, e, t) {
|
|
1224
1193
|
if (typeof o == "object")
|
|
1225
|
-
return new
|
|
1194
|
+
return new ae({ transition: o });
|
|
1226
1195
|
const i = o;
|
|
1227
|
-
return i === "none" ? new
|
|
1196
|
+
return i === "none" ? new ae({
|
|
1228
1197
|
transition: {
|
|
1229
1198
|
property: "none",
|
|
1230
1199
|
duration: 0,
|
|
1231
1200
|
easing: "ease",
|
|
1232
1201
|
delay: 0
|
|
1233
1202
|
}
|
|
1234
|
-
}) : new
|
|
1203
|
+
}) : new ae({
|
|
1235
1204
|
transition: {
|
|
1236
1205
|
property: i,
|
|
1237
1206
|
duration: s || 300,
|
|
@@ -1240,24 +1209,21 @@ function Ct(o, s, e, t) {
|
|
|
1240
1209
|
}
|
|
1241
1210
|
});
|
|
1242
1211
|
}
|
|
1243
|
-
function
|
|
1244
|
-
return new
|
|
1245
|
-
}
|
|
1246
|
-
function Et(o) {
|
|
1247
|
-
return o ? new oe({ animation: o }) : new oe({});
|
|
1212
|
+
function At(o) {
|
|
1213
|
+
return new fe({ transform: o });
|
|
1248
1214
|
}
|
|
1249
|
-
function
|
|
1250
|
-
return new
|
|
1215
|
+
function Lt(o) {
|
|
1216
|
+
return o ? new fe({ animation: o }) : new fe({});
|
|
1251
1217
|
}
|
|
1252
|
-
function
|
|
1253
|
-
return new
|
|
1218
|
+
function It(o) {
|
|
1219
|
+
return new Ke({ task: o });
|
|
1254
1220
|
}
|
|
1255
|
-
class
|
|
1221
|
+
class R extends v {
|
|
1256
1222
|
// Optimized priority for layout modifiers
|
|
1257
1223
|
constructor(e) {
|
|
1258
1224
|
super(e);
|
|
1259
|
-
|
|
1260
|
-
|
|
1225
|
+
d(this, "type", "flexbox");
|
|
1226
|
+
d(this, "priority", 60);
|
|
1261
1227
|
}
|
|
1262
1228
|
apply(e, t) {
|
|
1263
1229
|
if (!t.element) return;
|
|
@@ -1280,45 +1246,45 @@ class D extends v {
|
|
|
1280
1246
|
}
|
|
1281
1247
|
}
|
|
1282
1248
|
function P(o) {
|
|
1283
|
-
return new
|
|
1249
|
+
return new R(o);
|
|
1284
1250
|
}
|
|
1285
|
-
function
|
|
1286
|
-
return new
|
|
1251
|
+
function Pt(o) {
|
|
1252
|
+
return new R({ flexGrow: o });
|
|
1287
1253
|
}
|
|
1288
|
-
function
|
|
1289
|
-
return new
|
|
1254
|
+
function $t(o) {
|
|
1255
|
+
return new R({ flexShrink: o });
|
|
1290
1256
|
}
|
|
1291
|
-
function
|
|
1292
|
-
return new
|
|
1257
|
+
function Vt(o) {
|
|
1258
|
+
return new R({ flexBasis: o });
|
|
1293
1259
|
}
|
|
1294
|
-
function
|
|
1295
|
-
return new
|
|
1260
|
+
function gr(o) {
|
|
1261
|
+
return new R({ flex: o });
|
|
1296
1262
|
}
|
|
1297
|
-
function
|
|
1298
|
-
return new
|
|
1263
|
+
function Dt(o) {
|
|
1264
|
+
return new R({ justifyContent: o });
|
|
1299
1265
|
}
|
|
1300
|
-
function
|
|
1301
|
-
return new
|
|
1266
|
+
function Rt(o) {
|
|
1267
|
+
return new R({ alignItems: o });
|
|
1302
1268
|
}
|
|
1303
|
-
function
|
|
1304
|
-
return new
|
|
1269
|
+
function Ot(o) {
|
|
1270
|
+
return new R({ alignSelf: o });
|
|
1305
1271
|
}
|
|
1306
|
-
function
|
|
1307
|
-
return new
|
|
1272
|
+
function Bt(o) {
|
|
1273
|
+
return new R({ gap: o });
|
|
1308
1274
|
}
|
|
1309
|
-
function
|
|
1310
|
-
return new
|
|
1275
|
+
function vr(o) {
|
|
1276
|
+
return new R({ rowGap: o });
|
|
1311
1277
|
}
|
|
1312
|
-
function
|
|
1313
|
-
return new
|
|
1278
|
+
function br(o) {
|
|
1279
|
+
return new R({ columnGap: o });
|
|
1314
1280
|
}
|
|
1315
|
-
function
|
|
1316
|
-
return new
|
|
1281
|
+
function _t(o) {
|
|
1282
|
+
return new R({ flexDirection: o });
|
|
1317
1283
|
}
|
|
1318
|
-
function
|
|
1319
|
-
return new
|
|
1284
|
+
function Ht(o) {
|
|
1285
|
+
return new R({ flexWrap: o });
|
|
1320
1286
|
}
|
|
1321
|
-
const
|
|
1287
|
+
const Sr = {
|
|
1322
1288
|
/**
|
|
1323
1289
|
* Standard flex container
|
|
1324
1290
|
* Sets display: flex for basic flex container
|
|
@@ -1456,11 +1422,11 @@ const hr = {
|
|
|
1456
1422
|
alignItems: "stretch"
|
|
1457
1423
|
})
|
|
1458
1424
|
};
|
|
1459
|
-
class
|
|
1425
|
+
class zt extends v {
|
|
1460
1426
|
constructor() {
|
|
1461
1427
|
super(...arguments);
|
|
1462
|
-
|
|
1463
|
-
|
|
1428
|
+
d(this, "type", "offset");
|
|
1429
|
+
d(this, "priority", 35);
|
|
1464
1430
|
}
|
|
1465
1431
|
// High priority for transform operations
|
|
1466
1432
|
apply(e, t) {
|
|
@@ -1472,8 +1438,8 @@ class Ot extends v {
|
|
|
1472
1438
|
}) : this.applyOffset(t.element, i, n);
|
|
1473
1439
|
}
|
|
1474
1440
|
applyOffset(e, t, i) {
|
|
1475
|
-
const n = this.toCSSValue(t), r = this.toCSSValue(i), a = `translate(${n}, ${r})`, c = (e.style.transform || "").replace(/\s*translate(?!Z\(0\))[XYZ3d]*\([^)]*\)\s*/g, " ").replace(/\s+/g, " ").trim(),
|
|
1476
|
-
e.style.transform =
|
|
1441
|
+
const n = this.toCSSValue(t), r = this.toCSSValue(i), a = `translate(${n}, ${r})`, c = (e.style.transform || "").replace(/\s*translate(?!Z\(0\))[XYZ3d]*\([^)]*\)\s*/g, " ").replace(/\s+/g, " ").trim(), f = c ? `${c} ${a}` : a;
|
|
1442
|
+
e.style.transform = f;
|
|
1477
1443
|
}
|
|
1478
1444
|
/**
|
|
1479
1445
|
* Development mode validation
|
|
@@ -1497,15 +1463,15 @@ class Ot extends v {
|
|
|
1497
1463
|
}
|
|
1498
1464
|
}
|
|
1499
1465
|
}
|
|
1500
|
-
function
|
|
1501
|
-
const e = new
|
|
1466
|
+
function Ft(o, s) {
|
|
1467
|
+
const e = new zt({ x: o, y: s ?? 0 });
|
|
1502
1468
|
return typeof process < "u" && process.env.NODE_ENV === "development" && e.validateOffset(o, s), e;
|
|
1503
1469
|
}
|
|
1504
|
-
class
|
|
1470
|
+
class Nt extends v {
|
|
1505
1471
|
constructor() {
|
|
1506
1472
|
super(...arguments);
|
|
1507
|
-
|
|
1508
|
-
|
|
1473
|
+
d(this, "type", "scaleEffect");
|
|
1474
|
+
d(this, "priority", 35);
|
|
1509
1475
|
}
|
|
1510
1476
|
// High priority for transform operations
|
|
1511
1477
|
apply(e, t) {
|
|
@@ -1579,14 +1545,14 @@ class _t extends v {
|
|
|
1579
1545
|
}
|
|
1580
1546
|
}
|
|
1581
1547
|
}
|
|
1582
|
-
function
|
|
1583
|
-
return new
|
|
1548
|
+
function Wt(o, s, e = "center") {
|
|
1549
|
+
return new Nt({ x: o, y: s, anchor: e });
|
|
1584
1550
|
}
|
|
1585
|
-
class
|
|
1551
|
+
class Re extends v {
|
|
1586
1552
|
constructor() {
|
|
1587
1553
|
super(...arguments);
|
|
1588
|
-
|
|
1589
|
-
|
|
1554
|
+
d(this, "type", "aspectRatio");
|
|
1555
|
+
d(this, "priority", 20);
|
|
1590
1556
|
}
|
|
1591
1557
|
// Medium priority for layout properties
|
|
1592
1558
|
apply(e, t) {
|
|
@@ -1643,7 +1609,7 @@ class $e extends v {
|
|
|
1643
1609
|
/**
|
|
1644
1610
|
* Get common aspect ratios
|
|
1645
1611
|
*/
|
|
1646
|
-
|
|
1612
|
+
d(Re, "COMMON_RATIOS", {
|
|
1647
1613
|
square: 1,
|
|
1648
1614
|
portrait: 3 / 4,
|
|
1649
1615
|
landscape: 4 / 3,
|
|
@@ -1652,17 +1618,17 @@ f($e, "COMMON_RATIOS", {
|
|
|
1652
1618
|
golden: 1.618,
|
|
1653
1619
|
photo: 3 / 2
|
|
1654
1620
|
});
|
|
1655
|
-
function
|
|
1656
|
-
return new
|
|
1621
|
+
function jt(o, s = "fit") {
|
|
1622
|
+
return new Re({ ratio: o, contentMode: s });
|
|
1657
1623
|
}
|
|
1658
|
-
function
|
|
1624
|
+
function Ut(o) {
|
|
1659
1625
|
return typeof getComputedStyle != "function" ? null : getComputedStyle(o);
|
|
1660
1626
|
}
|
|
1661
|
-
class
|
|
1627
|
+
class Gt extends v {
|
|
1662
1628
|
constructor() {
|
|
1663
1629
|
super(...arguments);
|
|
1664
|
-
|
|
1665
|
-
|
|
1630
|
+
d(this, "type", "fixedSize");
|
|
1631
|
+
d(this, "priority", 25);
|
|
1666
1632
|
}
|
|
1667
1633
|
// Medium priority for layout properties
|
|
1668
1634
|
apply(e, t) {
|
|
@@ -1692,7 +1658,7 @@ class Nt extends v {
|
|
|
1692
1658
|
isFlexItem(e) {
|
|
1693
1659
|
const t = e.parentElement;
|
|
1694
1660
|
if (!t) return !1;
|
|
1695
|
-
const i =
|
|
1661
|
+
const i = Ut(t);
|
|
1696
1662
|
if (!i) return !1;
|
|
1697
1663
|
const n = i.display;
|
|
1698
1664
|
return n === "flex" || n === "inline-flex";
|
|
@@ -1716,16 +1682,16 @@ class Nt extends v {
|
|
|
1716
1682
|
));
|
|
1717
1683
|
}
|
|
1718
1684
|
}
|
|
1719
|
-
function
|
|
1720
|
-
return new
|
|
1685
|
+
function Kt(o = !0, s = !0) {
|
|
1686
|
+
return new Gt({ horizontal: o, vertical: s });
|
|
1721
1687
|
}
|
|
1722
|
-
function
|
|
1688
|
+
function Yt(o) {
|
|
1723
1689
|
return new pe({ frame: o });
|
|
1724
1690
|
}
|
|
1725
|
-
function
|
|
1691
|
+
function Xt(o) {
|
|
1726
1692
|
return new pe({ layoutPriority: o });
|
|
1727
1693
|
}
|
|
1728
|
-
function
|
|
1694
|
+
function Zt(o, s) {
|
|
1729
1695
|
return new pe({
|
|
1730
1696
|
position: {
|
|
1731
1697
|
x: o,
|
|
@@ -1733,20 +1699,20 @@ function Gt(o, s) {
|
|
|
1733
1699
|
}
|
|
1734
1700
|
});
|
|
1735
1701
|
}
|
|
1736
|
-
function
|
|
1737
|
-
return new
|
|
1702
|
+
function qt() {
|
|
1703
|
+
return new Ye({});
|
|
1738
1704
|
}
|
|
1739
|
-
function
|
|
1705
|
+
function Jt() {
|
|
1740
1706
|
return typeof document < "u";
|
|
1741
1707
|
}
|
|
1742
|
-
function
|
|
1708
|
+
function le(o) {
|
|
1743
1709
|
return typeof getComputedStyle != "function" ? null : getComputedStyle(o);
|
|
1744
1710
|
}
|
|
1745
|
-
class
|
|
1711
|
+
class Qt extends v {
|
|
1746
1712
|
constructor() {
|
|
1747
1713
|
super(...arguments);
|
|
1748
|
-
|
|
1749
|
-
|
|
1714
|
+
d(this, "type", "position");
|
|
1715
|
+
d(this, "priority", 50);
|
|
1750
1716
|
}
|
|
1751
1717
|
// Highest priority to override other positioning
|
|
1752
1718
|
apply(e, t) {
|
|
@@ -1803,10 +1769,10 @@ class Xt extends v {
|
|
|
1803
1769
|
(t === "absolute" || t === "fixed") && (e.style.zIndex || (e.style.zIndex = "0"), e.style.transform || (e.style.transform = "translateZ(0)"));
|
|
1804
1770
|
}
|
|
1805
1771
|
warnIfMissingPositionedParent(e) {
|
|
1806
|
-
if (!
|
|
1772
|
+
if (!Jt()) return;
|
|
1807
1773
|
let t = e.parentElement, i = !1;
|
|
1808
1774
|
for (; t && t !== document.body; ) {
|
|
1809
|
-
const n =
|
|
1775
|
+
const n = le(t);
|
|
1810
1776
|
if (!n) return;
|
|
1811
1777
|
if (n.position !== "static") {
|
|
1812
1778
|
i = !0;
|
|
@@ -1819,14 +1785,14 @@ class Xt extends v {
|
|
|
1819
1785
|
);
|
|
1820
1786
|
}
|
|
1821
1787
|
warnIfMissingStickyProperties(e) {
|
|
1822
|
-
const t =
|
|
1788
|
+
const t = le(e);
|
|
1823
1789
|
if (!t) return;
|
|
1824
1790
|
t.top !== "auto" || t.right !== "auto" || t.bottom !== "auto" || t.left !== "auto" || console.warn(
|
|
1825
1791
|
"PositionModifier: Sticky positioning requires at least one of top, right, bottom, or left to be set"
|
|
1826
1792
|
);
|
|
1827
1793
|
}
|
|
1828
1794
|
warnIfHasPositioningProperties(e) {
|
|
1829
|
-
const t =
|
|
1795
|
+
const t = le(e);
|
|
1830
1796
|
if (!t) return;
|
|
1831
1797
|
(t.top !== "auto" || t.right !== "auto" || t.bottom !== "auto" || t.left !== "auto") && console.warn(
|
|
1832
1798
|
"PositionModifier: Static positioning ignores top, right, bottom, and left properties"
|
|
@@ -1862,20 +1828,20 @@ class Xt extends v {
|
|
|
1862
1828
|
}
|
|
1863
1829
|
}
|
|
1864
1830
|
}
|
|
1865
|
-
function
|
|
1866
|
-
return new
|
|
1831
|
+
function ei(o) {
|
|
1832
|
+
return new Qt({ position: o });
|
|
1867
1833
|
}
|
|
1868
|
-
function
|
|
1834
|
+
function ti() {
|
|
1869
1835
|
return typeof getComputedStyle == "function";
|
|
1870
1836
|
}
|
|
1871
|
-
function
|
|
1872
|
-
return
|
|
1837
|
+
function ie(o) {
|
|
1838
|
+
return ti() ? getComputedStyle(o) : null;
|
|
1873
1839
|
}
|
|
1874
|
-
class
|
|
1840
|
+
class Oe extends v {
|
|
1875
1841
|
constructor() {
|
|
1876
1842
|
super(...arguments);
|
|
1877
|
-
|
|
1878
|
-
|
|
1843
|
+
d(this, "type", "zIndex");
|
|
1844
|
+
d(this, "priority", 45);
|
|
1879
1845
|
}
|
|
1880
1846
|
// High priority for layering
|
|
1881
1847
|
apply(e, t) {
|
|
@@ -1890,7 +1856,7 @@ class Ve extends v {
|
|
|
1890
1856
|
e.style.zIndex = String(t), this.ensureStackingContext(e, t);
|
|
1891
1857
|
}
|
|
1892
1858
|
ensureStackingContext(e, t) {
|
|
1893
|
-
const i =
|
|
1859
|
+
const i = ie(e);
|
|
1894
1860
|
if (!i) return;
|
|
1895
1861
|
const r = i.position !== "static", a = this.isFlexItem(e), l = this.isGridItem(e);
|
|
1896
1862
|
!r && !a && !l && (e.style.position = "relative", typeof process < "u" && process.env.NODE_ENV === "development" && console.info(
|
|
@@ -1900,7 +1866,7 @@ class Ve extends v {
|
|
|
1900
1866
|
isFlexItem(e) {
|
|
1901
1867
|
const t = e.parentElement;
|
|
1902
1868
|
if (!t) return !1;
|
|
1903
|
-
const i =
|
|
1869
|
+
const i = ie(t);
|
|
1904
1870
|
if (!i) return !1;
|
|
1905
1871
|
const n = i.display;
|
|
1906
1872
|
return n === "flex" || n === "inline-flex";
|
|
@@ -1908,7 +1874,7 @@ class Ve extends v {
|
|
|
1908
1874
|
isGridItem(e) {
|
|
1909
1875
|
const t = e.parentElement;
|
|
1910
1876
|
if (!t) return !1;
|
|
1911
|
-
const i =
|
|
1877
|
+
const i = ie(t);
|
|
1912
1878
|
if (!i) return !1;
|
|
1913
1879
|
const n = i.display;
|
|
1914
1880
|
return n === "grid" || n === "inline-grid";
|
|
@@ -1921,7 +1887,7 @@ class Ve extends v {
|
|
|
1921
1887
|
), this.checkStackingContext(e);
|
|
1922
1888
|
}
|
|
1923
1889
|
checkStackingContext(e) {
|
|
1924
|
-
const t =
|
|
1890
|
+
const t = ie(e);
|
|
1925
1891
|
if (!t) return;
|
|
1926
1892
|
const n = [
|
|
1927
1893
|
{ prop: "opacity", value: t.opacity, creates: t.opacity !== "1" },
|
|
@@ -1971,7 +1937,7 @@ class Ve extends v {
|
|
|
1971
1937
|
/**
|
|
1972
1938
|
* Common z-index values for semantic layering
|
|
1973
1939
|
*/
|
|
1974
|
-
|
|
1940
|
+
d(Oe, "COMMON_LAYERS", {
|
|
1975
1941
|
background: -1,
|
|
1976
1942
|
base: 0,
|
|
1977
1943
|
content: 1,
|
|
@@ -1983,8 +1949,8 @@ f(Ve, "COMMON_LAYERS", {
|
|
|
1983
1949
|
toast: 600,
|
|
1984
1950
|
debug: 9999
|
|
1985
1951
|
});
|
|
1986
|
-
function
|
|
1987
|
-
return new
|
|
1952
|
+
function ii(o) {
|
|
1953
|
+
return new Oe({ zIndex: o });
|
|
1988
1954
|
}
|
|
1989
1955
|
function V(o) {
|
|
1990
1956
|
return typeof HTMLElement < "u" && o instanceof HTMLElement;
|
|
@@ -1992,15 +1958,15 @@ function V(o) {
|
|
|
1992
1958
|
function W(o) {
|
|
1993
1959
|
return typeof o == "object" && o !== null && "style" in o && !!o.style;
|
|
1994
1960
|
}
|
|
1995
|
-
function
|
|
1961
|
+
function he() {
|
|
1996
1962
|
return typeof document < "u";
|
|
1997
1963
|
}
|
|
1998
|
-
function
|
|
1964
|
+
function ni() {
|
|
1999
1965
|
return typeof window < "u";
|
|
2000
1966
|
}
|
|
2001
1967
|
class w {
|
|
2002
1968
|
constructor(s) {
|
|
2003
|
-
|
|
1969
|
+
d(this, "properties");
|
|
2004
1970
|
this.properties = s;
|
|
2005
1971
|
}
|
|
2006
1972
|
getStaticCSS(s) {
|
|
@@ -2094,8 +2060,8 @@ class w {
|
|
|
2094
2060
|
);
|
|
2095
2061
|
if (i.setProperty)
|
|
2096
2062
|
if (typeof c == "string" && c.includes("!important")) {
|
|
2097
|
-
const
|
|
2098
|
-
i.setProperty(a,
|
|
2063
|
+
const f = c.replace(/\s*!important\s*$/, "").trim();
|
|
2064
|
+
i.setProperty(a, f, "important");
|
|
2099
2065
|
} else
|
|
2100
2066
|
i.setProperty(a, c);
|
|
2101
2067
|
else
|
|
@@ -2140,11 +2106,11 @@ class w {
|
|
|
2140
2106
|
};
|
|
2141
2107
|
}
|
|
2142
2108
|
}
|
|
2143
|
-
class
|
|
2109
|
+
class wr extends w {
|
|
2144
2110
|
constructor() {
|
|
2145
2111
|
super(...arguments);
|
|
2146
|
-
|
|
2147
|
-
|
|
2112
|
+
d(this, "type", "layout");
|
|
2113
|
+
d(this, "priority", D.LAYOUT);
|
|
2148
2114
|
}
|
|
2149
2115
|
apply(e, t) {
|
|
2150
2116
|
if (!e.element || !t.element) return;
|
|
@@ -2164,11 +2130,11 @@ class yr extends w {
|
|
|
2164
2130
|
const { x: i, y: n } = t;
|
|
2165
2131
|
if (y(i) || m(i) || y(n) || m(n))
|
|
2166
2132
|
b(() => {
|
|
2167
|
-
const r = y(i) || m(i) ? i() : i ?? 0, a = y(n) || m(n) ? n() : n ?? 0, l = this.toCSSValue(r), c = this.toCSSValue(a),
|
|
2133
|
+
const r = y(i) || m(i) ? i() : i ?? 0, a = y(n) || m(n) ? n() : n ?? 0, l = this.toCSSValue(r), c = this.toCSSValue(a), f = `translate(${l}, ${c})`, p = (e.style.transform || "").split(" ").filter((g) => g && !g.startsWith("translate(")).join(" "), h = p ? `${p} ${f}` : f;
|
|
2168
2134
|
e.style.transform = h;
|
|
2169
2135
|
});
|
|
2170
2136
|
else {
|
|
2171
|
-
const r = i ?? 0, a = n ?? 0, l = this.toCSSValue(r), c = this.toCSSValue(a),
|
|
2137
|
+
const r = i ?? 0, a = n ?? 0, l = this.toCSSValue(r), c = this.toCSSValue(a), f = `translate(${l}, ${c})`, p = (e.style.transform || "").split(" ").filter((g) => g && !g.startsWith("translate(")).join(" "), h = p ? `${p} ${f}` : f;
|
|
2172
2138
|
e.style.transform = h;
|
|
2173
2139
|
}
|
|
2174
2140
|
}
|
|
@@ -2184,7 +2150,7 @@ class yr extends w {
|
|
|
2184
2150
|
const { x: i, y: n, anchor: r } = t, a = i ?? 1, l = n ?? a;
|
|
2185
2151
|
if (y(a) || m(a) || y(l) || m(l))
|
|
2186
2152
|
b(() => {
|
|
2187
|
-
const c = y(a) || m(a) ? a() : a,
|
|
2153
|
+
const c = y(a) || m(a) ? a() : a, f = y(l) || m(l) ? l() : l, u = `scale(${c}, ${f})`;
|
|
2188
2154
|
e.style.transformOrigin = this.getTransformOrigin(
|
|
2189
2155
|
r || "center"
|
|
2190
2156
|
);
|
|
@@ -2307,11 +2273,11 @@ class yr extends w {
|
|
|
2307
2273
|
return i;
|
|
2308
2274
|
}
|
|
2309
2275
|
}
|
|
2310
|
-
class
|
|
2276
|
+
class Cr extends w {
|
|
2311
2277
|
constructor() {
|
|
2312
2278
|
super(...arguments);
|
|
2313
|
-
|
|
2314
|
-
|
|
2279
|
+
d(this, "type", "appearance");
|
|
2280
|
+
d(this, "priority", D.APPEARANCE);
|
|
2315
2281
|
}
|
|
2316
2282
|
apply(e, t) {
|
|
2317
2283
|
if (!e.element || !t.element)
|
|
@@ -2374,8 +2340,8 @@ class mr extends w {
|
|
|
2374
2340
|
n.width !== void 0 && (t.borderWidth = this.toCSSValue(n.width)), n.color && !this.isAsset(n.color) && (t.borderColor = n.color), n.style && (t.borderStyle = n.style);
|
|
2375
2341
|
}
|
|
2376
2342
|
if (e.shadow) {
|
|
2377
|
-
const n = e.shadow, r = n.x || 0, a = n.y || 0, l = n.blur !== void 0 ? n.blur : n.radius || 0, c = n.spread || 0,
|
|
2378
|
-
t.boxShadow = c !== 0 ? `${r}px ${a}px ${l}px ${c}px ${
|
|
2343
|
+
const n = e.shadow, r = n.x || 0, a = n.y || 0, l = n.blur !== void 0 ? n.blur : n.radius || 0, c = n.spread || 0, f = n.color || "rgba(0,0,0,0.25)";
|
|
2344
|
+
t.boxShadow = c !== 0 ? `${r}px ${a}px ${l}px ${c}px ${f}` : `${r}px ${a}px ${l}px ${f}`;
|
|
2379
2345
|
}
|
|
2380
2346
|
if (e.clipped && (t.overflow = "hidden"), e.clipShape) {
|
|
2381
2347
|
const { shape: n, parameters: r } = e.clipShape;
|
|
@@ -2430,13 +2396,13 @@ class mr extends w {
|
|
|
2430
2396
|
class C extends w {
|
|
2431
2397
|
constructor() {
|
|
2432
2398
|
super(...arguments);
|
|
2433
|
-
|
|
2434
|
-
|
|
2399
|
+
d(this, "type", "interaction");
|
|
2400
|
+
d(this, "priority", D.INTERACTION);
|
|
2435
2401
|
}
|
|
2436
2402
|
apply(e, t) {
|
|
2437
2403
|
if (!t.element) return;
|
|
2438
|
-
const i = this.properties, n = t.element, r = [], a = [], l = (
|
|
2439
|
-
|
|
2404
|
+
const i = this.properties, n = t.element, r = [], a = [], l = (f, u, p, h) => {
|
|
2405
|
+
f.addEventListener(u, p, h), r.push({ target: f, type: u, handler: p, options: h });
|
|
2440
2406
|
};
|
|
2441
2407
|
if (i.onTap && l(n, "click", i.onTap), i.onHover && (l(n, "mouseenter", () => i.onHover(!0)), l(n, "mouseleave", () => i.onHover(!1))), i.onMouseEnter && l(n, "mouseenter", i.onMouseEnter), i.onMouseLeave && l(n, "mouseleave", i.onMouseLeave), i.onMouseDown && l(n, "mousedown", i.onMouseDown), i.onMouseUp && l(n, "mouseup", i.onMouseUp), i.onDragStart && l(n, "dragstart", i.onDragStart), i.onDragOver && l(n, "dragover", i.onDragOver), i.onDragLeave && l(n, "dragleave", i.onDragLeave), i.onDrop && l(n, "drop", i.onDrop), i.onDoubleClick && l(n, "dblclick", i.onDoubleClick), i.onContextMenu && l(n, "contextmenu", i.onContextMenu), i.onFocus && (l(n, "focus", () => i.onFocus(!0)), l(n, "blur", () => i.onFocus(!1))), i.onBlur && l(n, "blur", () => i.onBlur(!1)), i.onKeyPress && l(n, "keypress", i.onKeyPress), i.onKeyDown && l(n, "keydown", i.onKeyDown), i.onKeyUp && l(n, "keyup", i.onKeyUp), i.onTouchStart && l(n, "touchstart", i.onTouchStart, {
|
|
2442
2408
|
passive: !0
|
|
@@ -2447,20 +2413,20 @@ class C extends w {
|
|
|
2447
2413
|
}), i.onTouchCancel && l(n, "touchcancel", i.onTouchCancel, {
|
|
2448
2414
|
passive: !0
|
|
2449
2415
|
}), i.onSwipeLeft || i.onSwipeRight) {
|
|
2450
|
-
let
|
|
2416
|
+
let f = 0, u = 0;
|
|
2451
2417
|
l(
|
|
2452
2418
|
n,
|
|
2453
2419
|
"touchstart",
|
|
2454
2420
|
(p) => {
|
|
2455
2421
|
const g = p.touches[0];
|
|
2456
|
-
|
|
2422
|
+
f = g.clientX, u = g.clientY;
|
|
2457
2423
|
},
|
|
2458
2424
|
{ passive: !0 }
|
|
2459
2425
|
), l(
|
|
2460
2426
|
n,
|
|
2461
2427
|
"touchend",
|
|
2462
2428
|
(p) => {
|
|
2463
|
-
const g = p.changedTouches[0], S = g.clientX -
|
|
2429
|
+
const g = p.changedTouches[0], S = g.clientX - f, E = g.clientY - u;
|
|
2464
2430
|
Math.abs(S) > Math.abs(E) && Math.abs(S) > 50 && (S < 0 && i.onSwipeLeft ? i.onSwipeLeft() : S > 0 && i.onSwipeRight && i.onSwipeRight());
|
|
2465
2431
|
},
|
|
2466
2432
|
{ passive: !0 }
|
|
@@ -2470,12 +2436,12 @@ class C extends w {
|
|
|
2470
2436
|
passive: !0
|
|
2471
2437
|
}), i.onWheel && l(n, "wheel", i.onWheel, {
|
|
2472
2438
|
passive: !1
|
|
2473
|
-
}), i.onInput && l(n, "input", i.onInput), i.onChange && l(n, "change", (
|
|
2474
|
-
const u =
|
|
2475
|
-
i.onChange(p,
|
|
2439
|
+
}), i.onInput && l(n, "input", i.onInput), i.onChange && l(n, "change", (f) => {
|
|
2440
|
+
const u = f.target, p = u.value || u.textContent || "";
|
|
2441
|
+
i.onChange(p, f);
|
|
2476
2442
|
}), i.onCopy && l(n, "copy", i.onCopy), i.onCut && l(n, "cut", i.onCut), i.onPaste && l(n, "paste", i.onPaste), i.onSelect && l(n, "select", i.onSelect), i.disabled !== void 0 && V(n)) {
|
|
2477
|
-
const
|
|
2478
|
-
p ? (
|
|
2443
|
+
const f = n, u = (p) => {
|
|
2444
|
+
p ? (f.setAttribute("disabled", "true"), f.style.pointerEvents = "none", f.style.opacity = "0.6") : (f.removeAttribute("disabled"), f.style.pointerEvents = "", f.style.opacity = "");
|
|
2479
2445
|
};
|
|
2480
2446
|
y(i.disabled) || m(i.disabled) ? b(() => {
|
|
2481
2447
|
u(!!i.disabled());
|
|
@@ -2484,21 +2450,21 @@ class C extends w {
|
|
|
2484
2450
|
if (i.draggable !== void 0 && V(n) && (n.draggable = i.draggable), i.accessibilityLabel && n.setAttribute("aria-label", i.accessibilityLabel), i.accessibilityHint && n.setAttribute("aria-describedby", i.accessibilityHint), i.onLongPressGesture && a.push(
|
|
2485
2451
|
this.setupLongPressGesture(n, i.onLongPressGesture)
|
|
2486
2452
|
), i.keyboardShortcut) {
|
|
2487
|
-
const
|
|
2488
|
-
|
|
2453
|
+
const f = this.setupKeyboardShortcut(n, i.keyboardShortcut);
|
|
2454
|
+
f && a.push(f);
|
|
2489
2455
|
}
|
|
2490
2456
|
if (i.focused !== void 0 && this.setupFocusManagement(n, i.focused), i.focusable) {
|
|
2491
|
-
const
|
|
2492
|
-
|
|
2457
|
+
const f = this.setupFocusable(n, i.focusable);
|
|
2458
|
+
f && a.push(f);
|
|
2493
2459
|
}
|
|
2494
2460
|
return i.onContinuousHover && a.push(
|
|
2495
2461
|
this.setupContinuousHover(n, i.onContinuousHover)
|
|
2496
2462
|
), i.allowsHitTesting !== void 0 && this.setupHitTesting(n, i.allowsHitTesting), { node: e, cleanup: [() => {
|
|
2497
|
-
for (const { target:
|
|
2498
|
-
|
|
2463
|
+
for (const { target: f, type: u, handler: p, options: h } of r)
|
|
2464
|
+
f.removeEventListener(u, p, h);
|
|
2499
2465
|
r.length = 0;
|
|
2500
|
-
for (const
|
|
2501
|
-
|
|
2466
|
+
for (const f of a)
|
|
2467
|
+
f();
|
|
2502
2468
|
a.length = 0;
|
|
2503
2469
|
}] };
|
|
2504
2470
|
}
|
|
@@ -2511,14 +2477,14 @@ class C extends w {
|
|
|
2511
2477
|
let r, a = null, l = !1;
|
|
2512
2478
|
const c = () => {
|
|
2513
2479
|
r && (clearTimeout(r), r = void 0), l && t.onPressingChanged && t.onPressingChanged(!1), l = !1, a = null;
|
|
2514
|
-
},
|
|
2480
|
+
}, f = () => {
|
|
2515
2481
|
c(), e.removeEventListener("pointerdown", u), e.removeEventListener("pointermove", p), e.removeEventListener("pointerup", h), e.removeEventListener(
|
|
2516
2482
|
"pointercancel",
|
|
2517
2483
|
g
|
|
2518
2484
|
);
|
|
2519
2485
|
}, u = (S) => {
|
|
2520
2486
|
const E = S;
|
|
2521
|
-
a = { x: E.clientX, y: E.clientY }, l = !0, t.onPressingChanged && t.onPressingChanged(!0), r = (
|
|
2487
|
+
a = { x: E.clientX, y: E.clientY }, l = !0, t.onPressingChanged && t.onPressingChanged(!0), r = (ni() ? window.setTimeout : setTimeout)(() => {
|
|
2522
2488
|
l && a && (t.perform(), c());
|
|
2523
2489
|
}, i);
|
|
2524
2490
|
}, p = (S) => {
|
|
@@ -2535,7 +2501,7 @@ class C extends w {
|
|
|
2535
2501
|
return e.addEventListener("pointerdown", u), e.addEventListener("pointermove", p), e.addEventListener("pointerup", h), e.addEventListener(
|
|
2536
2502
|
"pointercancel",
|
|
2537
2503
|
g
|
|
2538
|
-
), e._longPressCleanup =
|
|
2504
|
+
), e._longPressCleanup = f, f;
|
|
2539
2505
|
}
|
|
2540
2506
|
/**
|
|
2541
2507
|
* Setup keyboard shortcut handling
|
|
@@ -2553,12 +2519,12 @@ class C extends w {
|
|
|
2553
2519
|
ctrl: a.ctrlKey,
|
|
2554
2520
|
shift: a.shiftKey,
|
|
2555
2521
|
alt: a.altKey
|
|
2556
|
-
},
|
|
2522
|
+
}, f = a.key.toLowerCase() === t.key.toLowerCase(), u = Object.entries(l).every(
|
|
2557
2523
|
([p, h]) => h === c[p]
|
|
2558
2524
|
);
|
|
2559
|
-
|
|
2525
|
+
f && u && (a.preventDefault(), t.action());
|
|
2560
2526
|
};
|
|
2561
|
-
if (!
|
|
2527
|
+
if (!he()) return;
|
|
2562
2528
|
document.addEventListener("keydown", n);
|
|
2563
2529
|
const r = () => {
|
|
2564
2530
|
document.removeEventListener("keydown", n);
|
|
@@ -2599,13 +2565,13 @@ class C extends w {
|
|
|
2599
2565
|
setupContinuousHover(e, t) {
|
|
2600
2566
|
const i = t.coordinateSpace ?? "local", n = (l) => {
|
|
2601
2567
|
const c = l;
|
|
2602
|
-
let
|
|
2568
|
+
let f, u;
|
|
2603
2569
|
if (i === "local") {
|
|
2604
2570
|
const p = e.getBoundingClientRect();
|
|
2605
|
-
|
|
2571
|
+
f = c.clientX - p.left, u = c.clientY - p.top;
|
|
2606
2572
|
} else
|
|
2607
|
-
|
|
2608
|
-
t.perform({ x:
|
|
2573
|
+
f = c.clientX, u = c.clientY;
|
|
2574
|
+
t.perform({ x: f, y: u });
|
|
2609
2575
|
}, r = () => {
|
|
2610
2576
|
t.perform(null);
|
|
2611
2577
|
};
|
|
@@ -2625,11 +2591,11 @@ class C extends w {
|
|
|
2625
2591
|
V(e) && (e.style.pointerEvents = t ? "" : "none");
|
|
2626
2592
|
}
|
|
2627
2593
|
}
|
|
2628
|
-
class
|
|
2594
|
+
class xr extends w {
|
|
2629
2595
|
constructor() {
|
|
2630
2596
|
super(...arguments);
|
|
2631
|
-
|
|
2632
|
-
|
|
2597
|
+
d(this, "type", "animation");
|
|
2598
|
+
d(this, "priority", D.ANIMATION);
|
|
2633
2599
|
}
|
|
2634
2600
|
apply(e, t) {
|
|
2635
2601
|
if (!t.element) return;
|
|
@@ -2641,13 +2607,8 @@ class gr extends w {
|
|
|
2641
2607
|
if (i.animation && W(t.element)) {
|
|
2642
2608
|
const n = i.animation;
|
|
2643
2609
|
if (n.keyframes && typeof document < "u") {
|
|
2644
|
-
const r =
|
|
2645
|
-
|
|
2646
|
-
n.keyframes
|
|
2647
|
-
);
|
|
2648
|
-
this.addKeyframesToStylesheet(a);
|
|
2649
|
-
const l = n.duration || 1e3, c = n.easing || "ease", d = n.iterations || 1, u = n.direction || "normal";
|
|
2650
|
-
t.element.style.animation = `${r} ${l}ms ${c} ${d} ${u}`;
|
|
2610
|
+
const r = Ve(n.keyframes), a = n.duration || 1e3, l = n.easing || "ease", c = n.iterations || 1, f = n.direction || "normal";
|
|
2611
|
+
t.element.style.animation = `${r} ${a}ms ${l} ${c} ${f}`;
|
|
2651
2612
|
}
|
|
2652
2613
|
}
|
|
2653
2614
|
if (i.transform && W(t.element) && (y(i.transform) || m(i.transform) ? b(() => {
|
|
@@ -2683,23 +2644,19 @@ class gr extends w {
|
|
|
2683
2644
|
i.overlay && V(t.element) && this.applyOverlay(t.element, i.overlay, t);
|
|
2684
2645
|
}
|
|
2685
2646
|
getStaticCSS(e) {
|
|
2686
|
-
return
|
|
2687
|
-
e,
|
|
2688
|
-
this.properties,
|
|
2689
|
-
this.createKeyframeRule.bind(this)
|
|
2690
|
-
);
|
|
2647
|
+
return De(e, this.properties);
|
|
2691
2648
|
}
|
|
2692
2649
|
applyOverlay(e, t, i) {
|
|
2693
2650
|
const { content: n, alignment: r = "center" } = t;
|
|
2694
|
-
if ((e.style.position === "" || e.style.position === "static") && (e.style.position = "relative"), !
|
|
2651
|
+
if ((e.style.position === "" || e.style.position === "static") && (e.style.position = "relative"), !he()) return;
|
|
2695
2652
|
const a = document.createElement("div");
|
|
2696
2653
|
a.style.position = "absolute", a.style.pointerEvents = "none";
|
|
2697
2654
|
const l = this.getOverlayAlignment(r);
|
|
2698
2655
|
if (Object.assign(a.style, l), typeof n == "function") {
|
|
2699
2656
|
const c = n();
|
|
2700
2657
|
if (c && typeof c.render == "function") {
|
|
2701
|
-
const
|
|
2702
|
-
|
|
2658
|
+
const f = c.render();
|
|
2659
|
+
f.element && a.appendChild(f.element);
|
|
2703
2660
|
}
|
|
2704
2661
|
} else if (n && typeof n.render == "function") {
|
|
2705
2662
|
const c = n.render();
|
|
@@ -2753,38 +2710,15 @@ class gr extends w {
|
|
|
2753
2710
|
};
|
|
2754
2711
|
return t[e] || t.center;
|
|
2755
2712
|
}
|
|
2756
|
-
createKeyframeRule(e, t) {
|
|
2757
|
-
let i = `@keyframes ${e} {
|
|
2758
|
-
`;
|
|
2759
|
-
for (const [n, r] of Object.entries(t)) {
|
|
2760
|
-
i += ` ${n} {
|
|
2761
|
-
`;
|
|
2762
|
-
for (const [a, l] of Object.entries(r)) {
|
|
2763
|
-
const c = this.toCSSProperty(a);
|
|
2764
|
-
i += ` ${c}: ${l};
|
|
2765
|
-
`;
|
|
2766
|
-
}
|
|
2767
|
-
i += ` }
|
|
2768
|
-
`;
|
|
2769
|
-
}
|
|
2770
|
-
return i += "}", i;
|
|
2771
|
-
}
|
|
2772
|
-
addKeyframesToStylesheet(e) {
|
|
2773
|
-
if (!re()) return;
|
|
2774
|
-
let t = document.querySelector(
|
|
2775
|
-
"#tachui-animations"
|
|
2776
|
-
);
|
|
2777
|
-
t || (t = document.createElement("style"), t.id = "tachui-animations", document.head.appendChild(t)), t.appendChild(document.createTextNode(e));
|
|
2778
|
-
}
|
|
2779
2713
|
}
|
|
2780
|
-
class
|
|
2714
|
+
class Er extends w {
|
|
2781
2715
|
constructor() {
|
|
2782
2716
|
super(...arguments);
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2717
|
+
d(this, "type", "lifecycle");
|
|
2718
|
+
d(this, "priority", D.CUSTOM);
|
|
2719
|
+
d(this, "activeAbortController");
|
|
2786
2720
|
// Cleanup helpers
|
|
2787
|
-
|
|
2721
|
+
d(this, "cleanupFunctions", []);
|
|
2788
2722
|
}
|
|
2789
2723
|
apply(e, t) {
|
|
2790
2724
|
if (!t.element) return;
|
|
@@ -2830,7 +2764,7 @@ class vr extends w {
|
|
|
2830
2764
|
if (!t) return;
|
|
2831
2765
|
let i = !1, n = 0, r = 0;
|
|
2832
2766
|
const a = 70;
|
|
2833
|
-
if (!
|
|
2767
|
+
if (!he()) return;
|
|
2834
2768
|
const l = document.createElement("div");
|
|
2835
2769
|
if (l.style.cssText = `
|
|
2836
2770
|
position: absolute;
|
|
@@ -2857,7 +2791,7 @@ class vr extends w {
|
|
|
2857
2791
|
}
|
|
2858
2792
|
const c = e.parentElement || e;
|
|
2859
2793
|
V(c) && (c.style.position = "relative", c.appendChild(l));
|
|
2860
|
-
const
|
|
2794
|
+
const f = (h) => {
|
|
2861
2795
|
i || (r = h.touches[0].clientY);
|
|
2862
2796
|
}, u = (h) => {
|
|
2863
2797
|
if (i) return;
|
|
@@ -2881,7 +2815,7 @@ class vr extends w {
|
|
|
2881
2815
|
} else
|
|
2882
2816
|
l.style.opacity = "0", n = 0;
|
|
2883
2817
|
};
|
|
2884
|
-
e.addEventListener("touchstart",
|
|
2818
|
+
e.addEventListener("touchstart", f, {
|
|
2885
2819
|
passive: !0
|
|
2886
2820
|
}), e.addEventListener("touchmove", u, {
|
|
2887
2821
|
passive: !1
|
|
@@ -2890,7 +2824,7 @@ class vr extends w {
|
|
|
2890
2824
|
}), this.addCleanup(() => {
|
|
2891
2825
|
e.removeEventListener(
|
|
2892
2826
|
"touchstart",
|
|
2893
|
-
|
|
2827
|
+
f
|
|
2894
2828
|
), e.removeEventListener("touchmove", u), e.removeEventListener("touchend", p), l.parentElement && l.parentElement.removeChild(l);
|
|
2895
2829
|
});
|
|
2896
2830
|
}
|
|
@@ -2901,11 +2835,21 @@ class vr extends w {
|
|
|
2901
2835
|
this.cleanupFunctions.forEach((e) => e()), this.cleanupFunctions = [];
|
|
2902
2836
|
}
|
|
2903
2837
|
}
|
|
2904
|
-
|
|
2838
|
+
function oi(o) {
|
|
2839
|
+
if (!o || typeof o != "object") return !1;
|
|
2840
|
+
const s = o;
|
|
2841
|
+
return typeof s.render == "function" || typeof s.build == "function";
|
|
2842
|
+
}
|
|
2843
|
+
const ne = /* @__PURE__ */ new WeakMap();
|
|
2844
|
+
function Ae(o) {
|
|
2845
|
+
for (const s of Array.from(o.mounts)) s();
|
|
2846
|
+
o.mounts.clear();
|
|
2847
|
+
}
|
|
2848
|
+
class Le extends w {
|
|
2905
2849
|
constructor() {
|
|
2906
2850
|
super(...arguments);
|
|
2907
|
-
|
|
2908
|
-
|
|
2851
|
+
d(this, "type", "overlay");
|
|
2852
|
+
d(this, "priority", 10);
|
|
2909
2853
|
}
|
|
2910
2854
|
// Apply late so positioning is relative to final layout
|
|
2911
2855
|
apply(e, t) {
|
|
@@ -2913,12 +2857,32 @@ class ke extends w {
|
|
|
2913
2857
|
const i = t.element;
|
|
2914
2858
|
if (!i.style) return;
|
|
2915
2859
|
const { content: n } = this.properties;
|
|
2916
|
-
|
|
2860
|
+
let r = ne.get(i);
|
|
2861
|
+
const a = r === void 0;
|
|
2862
|
+
r === void 0 ? (r = { pass: t, mounts: /* @__PURE__ */ new Set() }, ne.set(i, r)) : r.pass !== t && (Ae(r), r.pass = t);
|
|
2863
|
+
const l = r, c = this.applyOverlay(i, n);
|
|
2864
|
+
let f = !1;
|
|
2865
|
+
const u = () => {
|
|
2866
|
+
if (!f) {
|
|
2867
|
+
f = !0, l.mounts.delete(u);
|
|
2868
|
+
for (const h of c) h();
|
|
2869
|
+
}
|
|
2870
|
+
};
|
|
2871
|
+
return l.mounts.add(u), Ge(u), a ? { node: e, cleanup: [() => {
|
|
2872
|
+
const h = ne.get(i);
|
|
2873
|
+
h && (ne.delete(i), Ae(h));
|
|
2874
|
+
}] } : { node: e };
|
|
2917
2875
|
}
|
|
2918
|
-
applyOverlay(e, t
|
|
2876
|
+
applyOverlay(e, t) {
|
|
2919
2877
|
(e.style.position === "" || e.style.position === "static") && (e.style.position = "relative");
|
|
2920
|
-
const
|
|
2921
|
-
|
|
2878
|
+
const i = document.createElement("div");
|
|
2879
|
+
i.style.position = "absolute", i.style.pointerEvents = "none";
|
|
2880
|
+
const n = [], r = this.applyOverlayPositioning(i);
|
|
2881
|
+
r && n.push(r), e.appendChild(i);
|
|
2882
|
+
const a = this.renderContent(i, t);
|
|
2883
|
+
return a && n.push(a), n.push(() => {
|
|
2884
|
+
i.remove?.();
|
|
2885
|
+
}), n;
|
|
2922
2886
|
}
|
|
2923
2887
|
applyOverlayPositioning(e) {
|
|
2924
2888
|
const t = () => {
|
|
@@ -2927,14 +2891,14 @@ class ke extends w {
|
|
|
2927
2891
|
"center"
|
|
2928
2892
|
), r = this.resolveReactive(this.properties.side, void 0), a = this.resolveReactive(this.properties.offset, void 0), l = this.resolveReactive(this.properties.enabled, !0);
|
|
2929
2893
|
this.clearPositionStyles(e);
|
|
2930
|
-
const c = r ?? n,
|
|
2894
|
+
const c = r ?? n, f = r !== void 0 ? c : n, u = this.getOverlayAlignment(f);
|
|
2931
2895
|
Object.assign(e.style, u), this.applyOffset(e, c, a), e.style.display = l ? "" : "none";
|
|
2932
2896
|
};
|
|
2933
2897
|
if (this.isReactive(this.properties.alignment) || this.isReactive(this.properties.side) || this.isReactive(this.properties.offset) || this.isReactive(this.properties.enabled)) {
|
|
2934
|
-
b(() => {
|
|
2898
|
+
const n = b(() => {
|
|
2935
2899
|
t();
|
|
2936
2900
|
});
|
|
2937
|
-
return;
|
|
2901
|
+
return () => n.dispose();
|
|
2938
2902
|
}
|
|
2939
2903
|
t();
|
|
2940
2904
|
}
|
|
@@ -2991,17 +2955,37 @@ class ke extends w {
|
|
|
2991
2955
|
resolveReactive(e, t) {
|
|
2992
2956
|
return e === void 0 ? t : y(e) || m(e) ? e() : e;
|
|
2993
2957
|
}
|
|
2958
|
+
/**
|
|
2959
|
+
* Mount overlay content into the container.
|
|
2960
|
+
*
|
|
2961
|
+
* Returns a disposer when the content owns reactive state or DOM that has to
|
|
2962
|
+
* be torn down with the modifier, otherwise `undefined`.
|
|
2963
|
+
*/
|
|
2994
2964
|
renderContent(e, t) {
|
|
2995
|
-
if (
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
2965
|
+
if (t == null) return;
|
|
2966
|
+
if (y(t) || m(t)) {
|
|
2967
|
+
const n = t, r = document.createTextNode("");
|
|
2968
|
+
e.appendChild(r);
|
|
2969
|
+
const a = b(() => {
|
|
2970
|
+
r.data = String(n() ?? "");
|
|
2971
|
+
});
|
|
2972
|
+
return () => a.dispose();
|
|
2973
|
+
}
|
|
2974
|
+
if (typeof t == "function")
|
|
2975
|
+
return this.renderContent(
|
|
2976
|
+
e,
|
|
2977
|
+
t()
|
|
2978
|
+
);
|
|
2979
|
+
if (typeof t == "string" || typeof t == "number") {
|
|
2980
|
+
e.appendChild(document.createTextNode(String(t)));
|
|
2981
|
+
return;
|
|
2982
|
+
}
|
|
2983
|
+
if (oi(t))
|
|
2984
|
+
return Xe(t, e);
|
|
2985
|
+
if (typeof t.appendChild == "function") {
|
|
2986
|
+
e.appendChild(t);
|
|
2987
|
+
return;
|
|
2988
|
+
}
|
|
3005
2989
|
}
|
|
3006
2990
|
getOverlayAlignment(e) {
|
|
3007
2991
|
const t = {
|
|
@@ -3050,20 +3034,20 @@ class ke extends w {
|
|
|
3050
3034
|
return t[e] || t.center;
|
|
3051
3035
|
}
|
|
3052
3036
|
}
|
|
3053
|
-
function
|
|
3054
|
-
return typeof s == "object" && s !== null && !y(s) && !m(s) ? new
|
|
3037
|
+
function ri(o, s = "center") {
|
|
3038
|
+
return typeof s == "object" && s !== null && !y(s) && !m(s) ? new Le({
|
|
3055
3039
|
content: o,
|
|
3056
3040
|
...s
|
|
3057
|
-
}) : new
|
|
3041
|
+
}) : new Le({
|
|
3058
3042
|
content: o,
|
|
3059
3043
|
alignment: s
|
|
3060
3044
|
});
|
|
3061
3045
|
}
|
|
3062
|
-
class
|
|
3046
|
+
class Be extends v {
|
|
3063
3047
|
constructor() {
|
|
3064
3048
|
super(...arguments);
|
|
3065
|
-
|
|
3066
|
-
|
|
3049
|
+
d(this, "type", "background");
|
|
3050
|
+
d(this, "priority", 95);
|
|
3067
3051
|
}
|
|
3068
3052
|
apply(e, t) {
|
|
3069
3053
|
if (!t.element) return;
|
|
@@ -3080,17 +3064,21 @@ class Re extends v {
|
|
|
3080
3064
|
);
|
|
3081
3065
|
return;
|
|
3082
3066
|
}
|
|
3083
|
-
if (
|
|
3084
|
-
|
|
3067
|
+
if (this.isStateGradientOption(i)) {
|
|
3068
|
+
if (typeof HTMLElement < "u" && t.element instanceof HTMLElement) {
|
|
3069
|
+
this.applyStatefulBackground(t.element, i, n);
|
|
3070
|
+
return;
|
|
3071
|
+
}
|
|
3072
|
+
const a = this.resolveBackgroundDeclarations(
|
|
3073
|
+
i.default
|
|
3074
|
+
);
|
|
3075
|
+
a !== void 0 && this.applyDeclarations(t.element, n, a);
|
|
3085
3076
|
return;
|
|
3086
3077
|
}
|
|
3087
|
-
const r = this.
|
|
3078
|
+
const r = this.resolveBackgroundDeclarations(
|
|
3088
3079
|
i
|
|
3089
3080
|
);
|
|
3090
|
-
|
|
3091
|
-
const a = { [n]: r };
|
|
3092
|
-
this.applyStyles(t.element, a);
|
|
3093
|
-
}
|
|
3081
|
+
r !== void 0 && this.applyDeclarations(t.element, n, r);
|
|
3094
3082
|
}
|
|
3095
3083
|
/**
|
|
3096
3084
|
* Apply ColorAsset with theme reactivity
|
|
@@ -3100,40 +3088,59 @@ class Re extends v {
|
|
|
3100
3088
|
const n = U();
|
|
3101
3089
|
b(() => {
|
|
3102
3090
|
n();
|
|
3103
|
-
const r =
|
|
3104
|
-
this.
|
|
3091
|
+
const r = this.resolveBackgroundDeclarations(i) ?? [];
|
|
3092
|
+
this.applyDeclarations(e, t, r);
|
|
3105
3093
|
});
|
|
3106
3094
|
}
|
|
3107
3095
|
isGradientDefinition(e) {
|
|
3108
3096
|
return e !== null && typeof e == "object" && typeof e.type == "string" && "options" in e;
|
|
3109
3097
|
}
|
|
3110
|
-
|
|
3098
|
+
hasResolveDeclarations(e) {
|
|
3099
|
+
return this.isAssetValue(e) && typeof e.resolveDeclarations == "function";
|
|
3100
|
+
}
|
|
3101
|
+
/**
|
|
3102
|
+
* Every declaration a background value needs, in cascade order. Gradient
|
|
3103
|
+
* definitions and gradient assets yield the plain sRGB gradient followed by
|
|
3104
|
+
* the interpolation-hinted one (#310); everything else yields one value.
|
|
3105
|
+
*/
|
|
3106
|
+
resolveBackgroundDeclarations(e) {
|
|
3111
3107
|
if (e != null) {
|
|
3112
3108
|
if (this.isGradientDefinition(e))
|
|
3113
|
-
return
|
|
3109
|
+
return Ze(e);
|
|
3110
|
+
if (this.hasResolveDeclarations(e))
|
|
3111
|
+
return e.resolveDeclarations();
|
|
3114
3112
|
if (this.isAssetValue(e)) {
|
|
3115
3113
|
const t = e.resolve();
|
|
3116
|
-
return typeof t == "string" ? t : String(t);
|
|
3114
|
+
return [typeof t == "string" ? t : String(t)];
|
|
3117
3115
|
}
|
|
3118
|
-
return String(e);
|
|
3116
|
+
return [String(e)];
|
|
3119
3117
|
}
|
|
3120
3118
|
}
|
|
3119
|
+
/**
|
|
3120
|
+
* Write the declarations in order. A browser that cannot parse a later one
|
|
3121
|
+
* rejects only that write and keeps the earlier value; the SSR style shim
|
|
3122
|
+
* appends rather than replaces for the same reason.
|
|
3123
|
+
*/
|
|
3124
|
+
applyDeclarations(e, t, i) {
|
|
3125
|
+
for (const n of i)
|
|
3126
|
+
this.applyStyles(e, { [t]: n });
|
|
3127
|
+
}
|
|
3121
3128
|
isStateGradientOption(e) {
|
|
3122
3129
|
return this.isAssetValue(e) ? !1 : e !== null && typeof e == "object" && "default" in e && !this.isGradientDefinition(e);
|
|
3123
3130
|
}
|
|
3124
3131
|
applyStatefulBackground(e, t, i) {
|
|
3125
3132
|
const n = {
|
|
3126
|
-
default: this.
|
|
3127
|
-
hover: t.hover ? this.
|
|
3128
|
-
active: t.active ? this.
|
|
3129
|
-
focus: t.focus ? this.
|
|
3130
|
-
disabled: t.disabled ? this.
|
|
3133
|
+
default: this.resolveBackgroundDeclarations(t.default),
|
|
3134
|
+
hover: t.hover ? this.resolveBackgroundDeclarations(t.hover) : void 0,
|
|
3135
|
+
active: t.active ? this.resolveBackgroundDeclarations(t.active) : void 0,
|
|
3136
|
+
focus: t.focus ? this.resolveBackgroundDeclarations(t.focus) : void 0,
|
|
3137
|
+
disabled: t.disabled ? this.resolveBackgroundDeclarations(
|
|
3131
3138
|
t.disabled
|
|
3132
3139
|
) : void 0
|
|
3133
3140
|
}, r = (u) => {
|
|
3134
3141
|
if (!u) return;
|
|
3135
3142
|
const p = n[u];
|
|
3136
|
-
p !== void 0 && this.
|
|
3143
|
+
p !== void 0 && this.applyDeclarations(e, i, p);
|
|
3137
3144
|
}, a = () => this.isElementDisabled(e) && n.disabled ? "disabled" : n.focus && this.matchesSelector(e, ":focus") ? "focus" : "default", l = () => {
|
|
3138
3145
|
const u = t.animation;
|
|
3139
3146
|
if (!u) return;
|
|
@@ -3148,7 +3155,7 @@ class Re extends v {
|
|
|
3148
3155
|
return;
|
|
3149
3156
|
}
|
|
3150
3157
|
r(u);
|
|
3151
|
-
},
|
|
3158
|
+
}, f = () => {
|
|
3152
3159
|
if (this.isElementDisabled(e) && n.disabled) {
|
|
3153
3160
|
r("disabled");
|
|
3154
3161
|
return;
|
|
@@ -3167,7 +3174,7 @@ class Re extends v {
|
|
|
3167
3174
|
this.isElementDisabled(e) || r("hover");
|
|
3168
3175
|
}), e.addEventListener("mouseleave", c)), n.active && (e.addEventListener("mousedown", () => {
|
|
3169
3176
|
this.isElementDisabled(e) || r("active");
|
|
3170
|
-
}), e.addEventListener("mouseup",
|
|
3177
|
+
}), e.addEventListener("mouseup", f)), n.focus && (e.addEventListener("focus", () => {
|
|
3171
3178
|
this.isElementDisabled(e) || r("focus");
|
|
3172
3179
|
}), e.addEventListener("blur", () => {
|
|
3173
3180
|
c();
|
|
@@ -3191,16 +3198,16 @@ class Re extends v {
|
|
|
3191
3198
|
return !!(e.hasAttribute && e.hasAttribute("disabled") || e.getAttribute && e.getAttribute("aria-disabled") === "true");
|
|
3192
3199
|
}
|
|
3193
3200
|
}
|
|
3194
|
-
const
|
|
3201
|
+
const si = {
|
|
3195
3202
|
repeat: "no-repeat",
|
|
3196
3203
|
size: "cover",
|
|
3197
3204
|
position: "center"
|
|
3198
3205
|
};
|
|
3199
|
-
class
|
|
3206
|
+
class ai extends v {
|
|
3200
3207
|
constructor() {
|
|
3201
3208
|
super(...arguments);
|
|
3202
|
-
|
|
3203
|
-
|
|
3209
|
+
d(this, "type", "backgroundImage");
|
|
3210
|
+
d(this, "priority", 94);
|
|
3204
3211
|
}
|
|
3205
3212
|
apply(e, t) {
|
|
3206
3213
|
if (!t.element) return;
|
|
@@ -3230,11 +3237,11 @@ class ii extends v {
|
|
|
3230
3237
|
});
|
|
3231
3238
|
}
|
|
3232
3239
|
}
|
|
3233
|
-
class
|
|
3240
|
+
class _e extends v {
|
|
3234
3241
|
constructor() {
|
|
3235
3242
|
super(...arguments);
|
|
3236
|
-
|
|
3237
|
-
|
|
3243
|
+
d(this, "type", "backgroundClip");
|
|
3244
|
+
d(this, "priority", 40);
|
|
3238
3245
|
}
|
|
3239
3246
|
apply(e, t) {
|
|
3240
3247
|
if (!t.element) return;
|
|
@@ -3246,36 +3253,36 @@ class De extends v {
|
|
|
3246
3253
|
return e.backgroundImage && (t.backgroundImage = e.backgroundImage), e.backgroundClip && (t.backgroundClip = e.backgroundClip, t.webkitBackgroundClip = e.backgroundClip), e.color && (t.color = e.color, e.backgroundClip === "text" && (t.webkitTextFillColor = e.color)), t;
|
|
3247
3254
|
}
|
|
3248
3255
|
}
|
|
3249
|
-
function
|
|
3250
|
-
return new
|
|
3256
|
+
function li(o) {
|
|
3257
|
+
return new Be({
|
|
3251
3258
|
background: o,
|
|
3252
3259
|
cssProperty: "backgroundColor"
|
|
3253
3260
|
});
|
|
3254
3261
|
}
|
|
3255
|
-
function
|
|
3256
|
-
return new
|
|
3262
|
+
function ci(o) {
|
|
3263
|
+
return new Be({
|
|
3257
3264
|
background: o,
|
|
3258
3265
|
cssProperty: "background"
|
|
3259
3266
|
});
|
|
3260
3267
|
}
|
|
3261
|
-
function
|
|
3262
|
-
return new
|
|
3268
|
+
function fi(o, s = {}) {
|
|
3269
|
+
return new ai({
|
|
3263
3270
|
source: o,
|
|
3264
3271
|
options: {
|
|
3265
|
-
...
|
|
3272
|
+
...si,
|
|
3266
3273
|
...s
|
|
3267
3274
|
}
|
|
3268
3275
|
});
|
|
3269
3276
|
}
|
|
3270
|
-
function
|
|
3271
|
-
return new
|
|
3277
|
+
function Tr(o, s = "text", e = "transparent") {
|
|
3278
|
+
return new _e({
|
|
3272
3279
|
backgroundImage: o,
|
|
3273
3280
|
backgroundClip: s,
|
|
3274
3281
|
color: e
|
|
3275
3282
|
});
|
|
3276
3283
|
}
|
|
3277
3284
|
function Z(o) {
|
|
3278
|
-
return new
|
|
3285
|
+
return new _e({
|
|
3279
3286
|
backgroundImage: o,
|
|
3280
3287
|
backgroundClip: "text",
|
|
3281
3288
|
webkitBackgroundClip: "text",
|
|
@@ -3283,38 +3290,38 @@ function Z(o) {
|
|
|
3283
3290
|
webkitTextFillColor: "transparent"
|
|
3284
3291
|
});
|
|
3285
3292
|
}
|
|
3286
|
-
function
|
|
3293
|
+
function Mr() {
|
|
3287
3294
|
return Z("linear-gradient(45deg, #007AFF, #5856D6)");
|
|
3288
3295
|
}
|
|
3289
|
-
function
|
|
3296
|
+
function kr() {
|
|
3290
3297
|
return Z(
|
|
3291
3298
|
"linear-gradient(90deg, #ff0000, #ff8000, #ffff00, #80ff00, #00ff80, #0080ff, #8000ff)"
|
|
3292
3299
|
);
|
|
3293
3300
|
}
|
|
3294
|
-
function
|
|
3301
|
+
function Ar() {
|
|
3295
3302
|
return Z("linear-gradient(45deg, #ff6b6b, #feca57, #ff9ff3)");
|
|
3296
3303
|
}
|
|
3297
|
-
function
|
|
3304
|
+
function Lr() {
|
|
3298
3305
|
return Z("linear-gradient(45deg, #667eea, #764ba2)");
|
|
3299
3306
|
}
|
|
3300
|
-
function
|
|
3307
|
+
function Ir() {
|
|
3301
3308
|
return Z("linear-gradient(45deg, #f7971e, #ffd200)");
|
|
3302
3309
|
}
|
|
3303
|
-
class
|
|
3310
|
+
class di extends v {
|
|
3304
3311
|
constructor() {
|
|
3305
3312
|
super(...arguments);
|
|
3306
|
-
|
|
3307
|
-
|
|
3313
|
+
d(this, "type", "blendMode");
|
|
3314
|
+
d(this, "priority", 92);
|
|
3308
3315
|
}
|
|
3309
3316
|
apply(e, t) {
|
|
3310
3317
|
t.element && this.applyStyleChange(t.element, "mixBlendMode", this.properties.mode);
|
|
3311
3318
|
}
|
|
3312
3319
|
}
|
|
3313
|
-
class
|
|
3320
|
+
class ui extends v {
|
|
3314
3321
|
constructor() {
|
|
3315
3322
|
super(...arguments);
|
|
3316
|
-
|
|
3317
|
-
|
|
3323
|
+
d(this, "type", "backgroundBlendMode");
|
|
3324
|
+
d(this, "priority", 93);
|
|
3318
3325
|
}
|
|
3319
3326
|
apply(e, t) {
|
|
3320
3327
|
t.element && this.applyStyleChange(
|
|
@@ -3324,30 +3331,30 @@ class ai extends v {
|
|
|
3324
3331
|
);
|
|
3325
3332
|
}
|
|
3326
3333
|
}
|
|
3327
|
-
function
|
|
3328
|
-
return new
|
|
3334
|
+
function pi(o) {
|
|
3335
|
+
return new di({ mode: o });
|
|
3329
3336
|
}
|
|
3330
|
-
function
|
|
3331
|
-
return new
|
|
3337
|
+
function hi(o) {
|
|
3338
|
+
return new ui({ mode: o });
|
|
3332
3339
|
}
|
|
3333
|
-
class
|
|
3340
|
+
class yi extends v {
|
|
3334
3341
|
constructor() {
|
|
3335
3342
|
super(...arguments);
|
|
3336
|
-
|
|
3337
|
-
|
|
3343
|
+
d(this, "type", "compositingGroup");
|
|
3344
|
+
d(this, "priority", 91);
|
|
3338
3345
|
}
|
|
3339
3346
|
apply(e, t) {
|
|
3340
3347
|
t.element && this.applyStyleChange(t.element, "isolation", "isolate");
|
|
3341
3348
|
}
|
|
3342
3349
|
}
|
|
3343
|
-
function
|
|
3344
|
-
return new
|
|
3350
|
+
function mi() {
|
|
3351
|
+
return new yi({});
|
|
3345
3352
|
}
|
|
3346
3353
|
class _ extends v {
|
|
3347
3354
|
constructor() {
|
|
3348
3355
|
super(...arguments);
|
|
3349
|
-
|
|
3350
|
-
|
|
3356
|
+
d(this, "type", "border");
|
|
3357
|
+
d(this, "priority", 40);
|
|
3351
3358
|
}
|
|
3352
3359
|
apply(e, t) {
|
|
3353
3360
|
if (!t.element) return;
|
|
@@ -3391,11 +3398,11 @@ class _ extends v {
|
|
|
3391
3398
|
return typeof e == "number" ? `${e}px` : e;
|
|
3392
3399
|
}
|
|
3393
3400
|
}
|
|
3394
|
-
class
|
|
3401
|
+
class gi extends v {
|
|
3395
3402
|
constructor() {
|
|
3396
3403
|
super(...arguments);
|
|
3397
|
-
|
|
3398
|
-
|
|
3404
|
+
d(this, "type", "cornerRadius");
|
|
3405
|
+
d(this, "priority", 35);
|
|
3399
3406
|
}
|
|
3400
3407
|
apply(e, t) {
|
|
3401
3408
|
if (!t.element) return;
|
|
@@ -3436,45 +3443,45 @@ class ui extends v {
|
|
|
3436
3443
|
return typeof e == "number" ? `${e}px` : e;
|
|
3437
3444
|
}
|
|
3438
3445
|
}
|
|
3439
|
-
function
|
|
3446
|
+
function vi(o, s, e) {
|
|
3440
3447
|
return typeof o == "number" || typeof o == "string" ? new _({
|
|
3441
3448
|
width: o,
|
|
3442
3449
|
color: s || "currentColor",
|
|
3443
3450
|
style: e || "solid"
|
|
3444
3451
|
}) : new _(o);
|
|
3445
3452
|
}
|
|
3446
|
-
function
|
|
3453
|
+
function bi(o, s, e) {
|
|
3447
3454
|
return new _({ top: { width: o, color: s, style: e } });
|
|
3448
3455
|
}
|
|
3449
|
-
function
|
|
3456
|
+
function Si(o, s, e) {
|
|
3450
3457
|
return new _({ right: { width: o, color: s, style: e } });
|
|
3451
3458
|
}
|
|
3452
|
-
function
|
|
3459
|
+
function wi(o, s, e) {
|
|
3453
3460
|
return new _({ bottom: { width: o, color: s, style: e } });
|
|
3454
3461
|
}
|
|
3455
|
-
function
|
|
3462
|
+
function Ci(o, s, e) {
|
|
3456
3463
|
return new _({ left: { width: o, color: s, style: e } });
|
|
3457
3464
|
}
|
|
3458
|
-
function
|
|
3465
|
+
function Pr(o, s, e) {
|
|
3459
3466
|
return new _({ leading: { width: o, color: s, style: e } });
|
|
3460
3467
|
}
|
|
3461
|
-
function
|
|
3468
|
+
function $r(o, s, e) {
|
|
3462
3469
|
return new _({ trailing: { width: o, color: s, style: e } });
|
|
3463
3470
|
}
|
|
3464
|
-
function
|
|
3471
|
+
function Vr(o, s, e) {
|
|
3465
3472
|
return new _({ horizontal: { width: o, color: s, style: e } });
|
|
3466
3473
|
}
|
|
3467
|
-
function
|
|
3474
|
+
function Dr(o, s, e) {
|
|
3468
3475
|
return new _({ vertical: { width: o, color: s, style: e } });
|
|
3469
3476
|
}
|
|
3470
|
-
function
|
|
3471
|
-
return new
|
|
3477
|
+
function Rr(o) {
|
|
3478
|
+
return new gi({ radius: o });
|
|
3472
3479
|
}
|
|
3473
|
-
class
|
|
3480
|
+
class He extends v {
|
|
3474
3481
|
constructor() {
|
|
3475
3482
|
super(...arguments);
|
|
3476
|
-
|
|
3477
|
-
|
|
3483
|
+
d(this, "type", "foreground");
|
|
3484
|
+
d(this, "priority", 90);
|
|
3478
3485
|
}
|
|
3479
3486
|
apply(e, t) {
|
|
3480
3487
|
if (t.element)
|
|
@@ -3506,17 +3513,17 @@ class Oe extends v {
|
|
|
3506
3513
|
});
|
|
3507
3514
|
}
|
|
3508
3515
|
}
|
|
3509
|
-
function
|
|
3510
|
-
return new
|
|
3516
|
+
function xi(o) {
|
|
3517
|
+
return new He({ color: o });
|
|
3511
3518
|
}
|
|
3512
|
-
function
|
|
3513
|
-
return new
|
|
3519
|
+
function Or(o) {
|
|
3520
|
+
return new He({ color: o });
|
|
3514
3521
|
}
|
|
3515
|
-
class
|
|
3522
|
+
class Ei extends v {
|
|
3516
3523
|
constructor() {
|
|
3517
3524
|
super(...arguments);
|
|
3518
|
-
|
|
3519
|
-
|
|
3525
|
+
d(this, "type", "clip-shape");
|
|
3526
|
+
d(this, "priority", 90);
|
|
3520
3527
|
}
|
|
3521
3528
|
apply(e, t) {
|
|
3522
3529
|
if (!t.element) return;
|
|
@@ -3544,14 +3551,14 @@ class bi extends v {
|
|
|
3544
3551
|
}
|
|
3545
3552
|
}
|
|
3546
3553
|
}
|
|
3547
|
-
function
|
|
3548
|
-
return new
|
|
3554
|
+
function Ti(o, s) {
|
|
3555
|
+
return new Ei({ shape: o, parameters: s || {} });
|
|
3549
3556
|
}
|
|
3550
|
-
class
|
|
3557
|
+
class Mi extends v {
|
|
3551
3558
|
constructor() {
|
|
3552
3559
|
super(...arguments);
|
|
3553
|
-
|
|
3554
|
-
|
|
3560
|
+
d(this, "type", "clipped");
|
|
3561
|
+
d(this, "priority", 89);
|
|
3555
3562
|
}
|
|
3556
3563
|
apply(e, t) {
|
|
3557
3564
|
if (!t.element) return;
|
|
@@ -3559,38 +3566,38 @@ class wi extends v {
|
|
|
3559
3566
|
i.style && (this.properties.clipped ? i.style.overflow = "hidden" : i.style.overflow = "");
|
|
3560
3567
|
}
|
|
3561
3568
|
}
|
|
3562
|
-
function
|
|
3563
|
-
return new
|
|
3569
|
+
function ki(o = !0) {
|
|
3570
|
+
return new Mi({ clipped: o });
|
|
3564
3571
|
}
|
|
3565
|
-
function
|
|
3572
|
+
function Ai(o) {
|
|
3566
3573
|
return new H({ opacity: o });
|
|
3567
3574
|
}
|
|
3568
|
-
function
|
|
3575
|
+
function Li(o) {
|
|
3569
3576
|
return new H({ cornerRadius: o });
|
|
3570
3577
|
}
|
|
3571
|
-
function
|
|
3578
|
+
function Ii(o) {
|
|
3572
3579
|
return new H({ font: { family: o } });
|
|
3573
3580
|
}
|
|
3574
|
-
function
|
|
3581
|
+
function Pi(o) {
|
|
3575
3582
|
return new H({ font: { size: o } });
|
|
3576
3583
|
}
|
|
3577
|
-
function
|
|
3584
|
+
function $i(o) {
|
|
3578
3585
|
return new H({ font: { weight: o } });
|
|
3579
3586
|
}
|
|
3580
|
-
function
|
|
3587
|
+
function Vi(o) {
|
|
3581
3588
|
return new H({ font: { style: o } });
|
|
3582
3589
|
}
|
|
3583
|
-
function
|
|
3590
|
+
function Di(o) {
|
|
3584
3591
|
return new H({ font: o });
|
|
3585
3592
|
}
|
|
3586
|
-
const
|
|
3587
|
-
let
|
|
3588
|
-
function
|
|
3589
|
-
const s = o[
|
|
3593
|
+
const Ri = "typography", Ie = /* @__PURE__ */ Symbol.for("tachui.typography.instanceId");
|
|
3594
|
+
let Pe = 0;
|
|
3595
|
+
function Oi(o) {
|
|
3596
|
+
const s = o[Ie];
|
|
3590
3597
|
if (typeof s == "number") return s;
|
|
3591
|
-
|
|
3592
|
-
const e =
|
|
3593
|
-
return Object.defineProperty(o,
|
|
3598
|
+
Pe += 1;
|
|
3599
|
+
const e = Pe;
|
|
3600
|
+
return Object.defineProperty(o, Ie, {
|
|
3594
3601
|
value: e,
|
|
3595
3602
|
enumerable: !1,
|
|
3596
3603
|
configurable: !1,
|
|
@@ -3600,8 +3607,8 @@ function Pi(o) {
|
|
|
3600
3607
|
class I extends v {
|
|
3601
3608
|
constructor() {
|
|
3602
3609
|
super(...arguments);
|
|
3603
|
-
|
|
3604
|
-
|
|
3610
|
+
d(this, "type", "typography");
|
|
3611
|
+
d(this, "priority", 30);
|
|
3605
3612
|
}
|
|
3606
3613
|
apply(e, t) {
|
|
3607
3614
|
if (!t.element) return;
|
|
@@ -3628,16 +3635,16 @@ class I extends v {
|
|
|
3628
3635
|
}
|
|
3629
3636
|
const c = t.replace(
|
|
3630
3637
|
/-([a-z])/g,
|
|
3631
|
-
(
|
|
3638
|
+
(f, u) => u.toUpperCase()
|
|
3632
3639
|
);
|
|
3633
3640
|
n[c] = l;
|
|
3634
3641
|
};
|
|
3635
3642
|
if (y(i) || m(i)) {
|
|
3636
|
-
const a = i, l =
|
|
3637
|
-
|
|
3643
|
+
const a = i, l = Oi(this);
|
|
3644
|
+
$e({
|
|
3638
3645
|
element: e,
|
|
3639
3646
|
accessor: a,
|
|
3640
|
-
updaterId: `${
|
|
3647
|
+
updaterId: `${Ri}:${l}:${t}`,
|
|
3641
3648
|
updater: (c) => {
|
|
3642
3649
|
r(c);
|
|
3643
3650
|
}
|
|
@@ -3663,57 +3670,57 @@ class I extends v {
|
|
|
3663
3670
|
return e === "leading" ? "start" : e === "trailing" ? "end" : e;
|
|
3664
3671
|
}
|
|
3665
3672
|
}
|
|
3666
|
-
function
|
|
3673
|
+
function Bi(o) {
|
|
3667
3674
|
return new I(o);
|
|
3668
3675
|
}
|
|
3669
|
-
function
|
|
3676
|
+
function _i(o) {
|
|
3670
3677
|
return new I({ align: o });
|
|
3671
3678
|
}
|
|
3672
|
-
function
|
|
3679
|
+
function ze(o) {
|
|
3673
3680
|
return new I({ transform: o });
|
|
3674
3681
|
}
|
|
3675
|
-
function
|
|
3682
|
+
function Hi(o) {
|
|
3676
3683
|
return new I({ decoration: o });
|
|
3677
3684
|
}
|
|
3678
|
-
function
|
|
3685
|
+
function Br(o) {
|
|
3679
3686
|
return new I({ size: o });
|
|
3680
3687
|
}
|
|
3681
|
-
function
|
|
3688
|
+
function _r(o) {
|
|
3682
3689
|
return new I({ weight: o });
|
|
3683
3690
|
}
|
|
3684
|
-
function
|
|
3691
|
+
function zi(o) {
|
|
3685
3692
|
return new I({ lineHeight: o });
|
|
3686
3693
|
}
|
|
3687
|
-
function
|
|
3694
|
+
function Fi(o) {
|
|
3688
3695
|
return new I({ letterSpacing: o });
|
|
3689
3696
|
}
|
|
3690
|
-
function
|
|
3697
|
+
function Hr(o) {
|
|
3691
3698
|
return new I({ wordSpacing: o });
|
|
3692
3699
|
}
|
|
3693
|
-
function
|
|
3700
|
+
function Ni(o) {
|
|
3694
3701
|
return new I({ textOverflow: o });
|
|
3695
3702
|
}
|
|
3696
|
-
function
|
|
3703
|
+
function Wi(o) {
|
|
3697
3704
|
return new I({ whiteSpace: o });
|
|
3698
3705
|
}
|
|
3699
|
-
function
|
|
3706
|
+
function ji(o) {
|
|
3700
3707
|
return new I({ overflow: o });
|
|
3701
3708
|
}
|
|
3702
|
-
function
|
|
3703
|
-
return
|
|
3709
|
+
function Ui(o) {
|
|
3710
|
+
return ze(o);
|
|
3704
3711
|
}
|
|
3705
|
-
function
|
|
3712
|
+
function zr(o) {
|
|
3706
3713
|
return new I({ family: o });
|
|
3707
3714
|
}
|
|
3708
|
-
function
|
|
3709
|
-
return typeof o == "string" ?
|
|
3715
|
+
function Gi(o) {
|
|
3716
|
+
return typeof o == "string" ? Ki(o) : new I({
|
|
3710
3717
|
family: o.family,
|
|
3711
3718
|
size: o.size,
|
|
3712
3719
|
weight: o.weight,
|
|
3713
3720
|
style: o.style
|
|
3714
3721
|
});
|
|
3715
3722
|
}
|
|
3716
|
-
function
|
|
3723
|
+
function Ki(o) {
|
|
3717
3724
|
const s = {
|
|
3718
3725
|
".largeTitle": { size: 34, weight: 400 },
|
|
3719
3726
|
".title": { size: 28, weight: 400 },
|
|
@@ -3729,7 +3736,7 @@ function Ni(o) {
|
|
|
3729
3736
|
}, e = s[o];
|
|
3730
3737
|
return e ? new I(e) : new I(s[".body"]);
|
|
3731
3738
|
}
|
|
3732
|
-
function
|
|
3739
|
+
function Fr(o) {
|
|
3733
3740
|
let s;
|
|
3734
3741
|
switch (o.design) {
|
|
3735
3742
|
case "serif":
|
|
@@ -3750,7 +3757,7 @@ function Dr(o) {
|
|
|
3750
3757
|
weight: o.weight
|
|
3751
3758
|
});
|
|
3752
3759
|
}
|
|
3753
|
-
function
|
|
3760
|
+
function Nr(o, s) {
|
|
3754
3761
|
return new I({
|
|
3755
3762
|
family: o,
|
|
3756
3763
|
size: s?.size,
|
|
@@ -3758,11 +3765,11 @@ function Or(o, s) {
|
|
|
3758
3765
|
style: s?.style
|
|
3759
3766
|
});
|
|
3760
3767
|
}
|
|
3761
|
-
class
|
|
3768
|
+
class Yi extends v {
|
|
3762
3769
|
constructor() {
|
|
3763
3770
|
super(...arguments);
|
|
3764
|
-
|
|
3765
|
-
|
|
3771
|
+
d(this, "type", "lineClamp");
|
|
3772
|
+
d(this, "priority", D.APPEARANCE + 15);
|
|
3766
3773
|
}
|
|
3767
3774
|
apply(e, t) {
|
|
3768
3775
|
if (!t.element) return;
|
|
@@ -3787,14 +3794,14 @@ class Wi extends v {
|
|
|
3787
3794
|
);
|
|
3788
3795
|
}
|
|
3789
3796
|
}
|
|
3790
|
-
function
|
|
3791
|
-
return new
|
|
3797
|
+
function Xi(o) {
|
|
3798
|
+
return new Yi({ lines: o });
|
|
3792
3799
|
}
|
|
3793
|
-
class
|
|
3800
|
+
class Zi extends v {
|
|
3794
3801
|
constructor() {
|
|
3795
3802
|
super(...arguments);
|
|
3796
|
-
|
|
3797
|
-
|
|
3803
|
+
d(this, "type", "wordBreak");
|
|
3804
|
+
d(this, "priority", D.APPEARANCE + 8);
|
|
3798
3805
|
}
|
|
3799
3806
|
apply(e, t) {
|
|
3800
3807
|
if (!t.element) return;
|
|
@@ -3815,14 +3822,14 @@ class Ui extends v {
|
|
|
3815
3822
|
);
|
|
3816
3823
|
}
|
|
3817
3824
|
}
|
|
3818
|
-
function
|
|
3819
|
-
return new
|
|
3825
|
+
function qi(o) {
|
|
3826
|
+
return new Zi({ wordBreak: o });
|
|
3820
3827
|
}
|
|
3821
|
-
class
|
|
3828
|
+
class Ji extends v {
|
|
3822
3829
|
constructor() {
|
|
3823
3830
|
super(...arguments);
|
|
3824
|
-
|
|
3825
|
-
|
|
3831
|
+
d(this, "type", "overflowWrap");
|
|
3832
|
+
d(this, "priority", D.APPEARANCE + 9);
|
|
3826
3833
|
}
|
|
3827
3834
|
apply(e, t) {
|
|
3828
3835
|
if (!t.element) return;
|
|
@@ -3840,14 +3847,14 @@ class Ki extends v {
|
|
|
3840
3847
|
);
|
|
3841
3848
|
}
|
|
3842
3849
|
}
|
|
3843
|
-
function
|
|
3844
|
-
return new
|
|
3850
|
+
function Qi(o) {
|
|
3851
|
+
return new Ji({ overflowWrap: o });
|
|
3845
3852
|
}
|
|
3846
|
-
class
|
|
3853
|
+
class en extends v {
|
|
3847
3854
|
constructor() {
|
|
3848
3855
|
super(...arguments);
|
|
3849
|
-
|
|
3850
|
-
|
|
3856
|
+
d(this, "type", "hyphens");
|
|
3857
|
+
d(this, "priority", D.APPEARANCE + 10);
|
|
3851
3858
|
}
|
|
3852
3859
|
apply(e, t) {
|
|
3853
3860
|
if (!t.element) return;
|
|
@@ -3868,8 +3875,8 @@ class Xi extends v {
|
|
|
3868
3875
|
);
|
|
3869
3876
|
}
|
|
3870
3877
|
}
|
|
3871
|
-
function
|
|
3872
|
-
return new
|
|
3878
|
+
function tn(o) {
|
|
3879
|
+
return new en({ hyphens: o });
|
|
3873
3880
|
}
|
|
3874
3881
|
class F extends v {
|
|
3875
3882
|
constructor(e) {
|
|
@@ -3877,8 +3884,8 @@ class F extends v {
|
|
|
3877
3884
|
for (const [i, n] of Object.entries(e))
|
|
3878
3885
|
typeof n == "function" && "peek" in n ? t[i] = n.peek() : t[i] = n;
|
|
3879
3886
|
super(t);
|
|
3880
|
-
|
|
3881
|
-
|
|
3887
|
+
d(this, "type", "scroll");
|
|
3888
|
+
d(this, "priority", 20);
|
|
3882
3889
|
}
|
|
3883
3890
|
apply(e, t) {
|
|
3884
3891
|
if (!t.element) return;
|
|
@@ -3913,39 +3920,39 @@ class F extends v {
|
|
|
3913
3920
|
return typeof e == "number" ? `${e}px` : e;
|
|
3914
3921
|
}
|
|
3915
3922
|
}
|
|
3916
|
-
function
|
|
3923
|
+
function nn(o) {
|
|
3917
3924
|
return new F({ scroll: o });
|
|
3918
3925
|
}
|
|
3919
|
-
function
|
|
3926
|
+
function on(o) {
|
|
3920
3927
|
return new F({ scrollBehavior: o });
|
|
3921
3928
|
}
|
|
3922
|
-
function
|
|
3929
|
+
function rn(o) {
|
|
3923
3930
|
return new F({ overscrollBehavior: o });
|
|
3924
3931
|
}
|
|
3925
|
-
function
|
|
3932
|
+
function sn(o) {
|
|
3926
3933
|
return new F({ overscrollBehaviorX: o });
|
|
3927
3934
|
}
|
|
3928
|
-
function
|
|
3935
|
+
function an(o) {
|
|
3929
3936
|
return new F({ overscrollBehaviorY: o });
|
|
3930
3937
|
}
|
|
3931
|
-
function
|
|
3938
|
+
function ln(o) {
|
|
3932
3939
|
return new F({ scroll: { margin: o } });
|
|
3933
3940
|
}
|
|
3934
|
-
function
|
|
3941
|
+
function cn(o) {
|
|
3935
3942
|
return new F({ scroll: { padding: o } });
|
|
3936
3943
|
}
|
|
3937
|
-
function
|
|
3944
|
+
function fn(o, s, e) {
|
|
3938
3945
|
return new F({
|
|
3939
3946
|
scroll: {
|
|
3940
3947
|
snap: { type: o, align: s, stop: e }
|
|
3941
3948
|
}
|
|
3942
3949
|
});
|
|
3943
3950
|
}
|
|
3944
|
-
class
|
|
3951
|
+
class dn extends w {
|
|
3945
3952
|
constructor() {
|
|
3946
3953
|
super(...arguments);
|
|
3947
|
-
|
|
3948
|
-
|
|
3954
|
+
d(this, "type", "onHover");
|
|
3955
|
+
d(this, "priority", 50);
|
|
3949
3956
|
}
|
|
3950
3957
|
apply(e, t) {
|
|
3951
3958
|
if (!t.element) return;
|
|
@@ -3965,14 +3972,14 @@ class sn extends w {
|
|
|
3965
3972
|
return e._hoverCleanup = r, r;
|
|
3966
3973
|
}
|
|
3967
3974
|
}
|
|
3968
|
-
function
|
|
3969
|
-
return new
|
|
3975
|
+
function un(o) {
|
|
3976
|
+
return new dn({ onHover: o });
|
|
3970
3977
|
}
|
|
3971
|
-
class
|
|
3978
|
+
class pn extends w {
|
|
3972
3979
|
constructor() {
|
|
3973
3980
|
super(...arguments);
|
|
3974
|
-
|
|
3975
|
-
|
|
3981
|
+
d(this, "type", "onMouseEnter");
|
|
3982
|
+
d(this, "priority", 50);
|
|
3976
3983
|
}
|
|
3977
3984
|
apply(e, t) {
|
|
3978
3985
|
if (!t.element) return;
|
|
@@ -3984,11 +3991,11 @@ class ln extends w {
|
|
|
3984
3991
|
};
|
|
3985
3992
|
}
|
|
3986
3993
|
}
|
|
3987
|
-
class
|
|
3994
|
+
class hn extends w {
|
|
3988
3995
|
constructor() {
|
|
3989
3996
|
super(...arguments);
|
|
3990
|
-
|
|
3991
|
-
|
|
3997
|
+
d(this, "type", "onMouseLeave");
|
|
3998
|
+
d(this, "priority", 50);
|
|
3992
3999
|
}
|
|
3993
4000
|
apply(e, t) {
|
|
3994
4001
|
if (!t.element) return;
|
|
@@ -4000,11 +4007,11 @@ class cn extends w {
|
|
|
4000
4007
|
};
|
|
4001
4008
|
}
|
|
4002
4009
|
}
|
|
4003
|
-
class
|
|
4010
|
+
class yn extends w {
|
|
4004
4011
|
constructor() {
|
|
4005
4012
|
super(...arguments);
|
|
4006
|
-
|
|
4007
|
-
|
|
4013
|
+
d(this, "type", "onMouseDown");
|
|
4014
|
+
d(this, "priority", 50);
|
|
4008
4015
|
}
|
|
4009
4016
|
apply(e, t) {
|
|
4010
4017
|
if (!t.element) return;
|
|
@@ -4016,11 +4023,11 @@ class fn extends w {
|
|
|
4016
4023
|
};
|
|
4017
4024
|
}
|
|
4018
4025
|
}
|
|
4019
|
-
class
|
|
4026
|
+
class mn extends w {
|
|
4020
4027
|
constructor() {
|
|
4021
4028
|
super(...arguments);
|
|
4022
|
-
|
|
4023
|
-
|
|
4029
|
+
d(this, "type", "onMouseUp");
|
|
4030
|
+
d(this, "priority", 50);
|
|
4024
4031
|
}
|
|
4025
4032
|
apply(e, t) {
|
|
4026
4033
|
if (!t.element) return;
|
|
@@ -4032,11 +4039,11 @@ class dn extends w {
|
|
|
4032
4039
|
};
|
|
4033
4040
|
}
|
|
4034
4041
|
}
|
|
4035
|
-
class
|
|
4042
|
+
class gn extends w {
|
|
4036
4043
|
constructor() {
|
|
4037
4044
|
super(...arguments);
|
|
4038
|
-
|
|
4039
|
-
|
|
4045
|
+
d(this, "type", "onDoubleClick");
|
|
4046
|
+
d(this, "priority", 50);
|
|
4040
4047
|
}
|
|
4041
4048
|
apply(e, t) {
|
|
4042
4049
|
if (!t.element) return;
|
|
@@ -4048,11 +4055,11 @@ class un extends w {
|
|
|
4048
4055
|
};
|
|
4049
4056
|
}
|
|
4050
4057
|
}
|
|
4051
|
-
class
|
|
4058
|
+
class vn extends w {
|
|
4052
4059
|
constructor() {
|
|
4053
4060
|
super(...arguments);
|
|
4054
|
-
|
|
4055
|
-
|
|
4061
|
+
d(this, "type", "onContextMenu");
|
|
4062
|
+
d(this, "priority", 50);
|
|
4056
4063
|
}
|
|
4057
4064
|
apply(e, t) {
|
|
4058
4065
|
if (!t.element) return;
|
|
@@ -4064,29 +4071,29 @@ class pn extends w {
|
|
|
4064
4071
|
};
|
|
4065
4072
|
}
|
|
4066
4073
|
}
|
|
4067
|
-
function
|
|
4068
|
-
return new
|
|
4074
|
+
function bn(o) {
|
|
4075
|
+
return new pn({ onMouseEnter: o });
|
|
4069
4076
|
}
|
|
4070
|
-
function
|
|
4071
|
-
return new
|
|
4077
|
+
function Sn(o) {
|
|
4078
|
+
return new hn({ onMouseLeave: o });
|
|
4072
4079
|
}
|
|
4073
|
-
function
|
|
4074
|
-
return new
|
|
4080
|
+
function wn(o) {
|
|
4081
|
+
return new yn({ onMouseDown: o });
|
|
4075
4082
|
}
|
|
4076
|
-
function
|
|
4077
|
-
return new
|
|
4083
|
+
function Cn(o) {
|
|
4084
|
+
return new mn({ onMouseUp: o });
|
|
4078
4085
|
}
|
|
4079
|
-
function
|
|
4080
|
-
return new
|
|
4086
|
+
function xn(o) {
|
|
4087
|
+
return new gn({ onDoubleClick: o });
|
|
4081
4088
|
}
|
|
4082
|
-
function
|
|
4083
|
-
return new
|
|
4089
|
+
function En(o) {
|
|
4090
|
+
return new vn({ onContextMenu: o });
|
|
4084
4091
|
}
|
|
4085
|
-
class
|
|
4092
|
+
class Tn extends w {
|
|
4086
4093
|
constructor() {
|
|
4087
4094
|
super(...arguments);
|
|
4088
|
-
|
|
4089
|
-
|
|
4095
|
+
d(this, "type", "onKeyDown");
|
|
4096
|
+
d(this, "priority", 50);
|
|
4090
4097
|
}
|
|
4091
4098
|
apply(e, t) {
|
|
4092
4099
|
if (!t.element) return;
|
|
@@ -4098,11 +4105,11 @@ class Sn extends w {
|
|
|
4098
4105
|
};
|
|
4099
4106
|
}
|
|
4100
4107
|
}
|
|
4101
|
-
class
|
|
4108
|
+
class Mn extends w {
|
|
4102
4109
|
constructor() {
|
|
4103
4110
|
super(...arguments);
|
|
4104
|
-
|
|
4105
|
-
|
|
4111
|
+
d(this, "type", "onKeyUp");
|
|
4112
|
+
d(this, "priority", 50);
|
|
4106
4113
|
}
|
|
4107
4114
|
apply(e, t) {
|
|
4108
4115
|
if (!t.element) return;
|
|
@@ -4114,11 +4121,11 @@ class wn extends w {
|
|
|
4114
4121
|
};
|
|
4115
4122
|
}
|
|
4116
4123
|
}
|
|
4117
|
-
class
|
|
4124
|
+
class kn extends w {
|
|
4118
4125
|
constructor() {
|
|
4119
4126
|
super(...arguments);
|
|
4120
|
-
|
|
4121
|
-
|
|
4127
|
+
d(this, "type", "onKeyPress");
|
|
4128
|
+
d(this, "priority", 50);
|
|
4122
4129
|
}
|
|
4123
4130
|
apply(e, t) {
|
|
4124
4131
|
if (!t.element) return;
|
|
@@ -4130,20 +4137,20 @@ class Cn extends w {
|
|
|
4130
4137
|
};
|
|
4131
4138
|
}
|
|
4132
4139
|
}
|
|
4133
|
-
function
|
|
4134
|
-
return new
|
|
4140
|
+
function An(o) {
|
|
4141
|
+
return new Tn({ onKeyDown: o });
|
|
4135
4142
|
}
|
|
4136
|
-
function
|
|
4137
|
-
return new
|
|
4143
|
+
function Ln(o) {
|
|
4144
|
+
return new Mn({ onKeyUp: o });
|
|
4138
4145
|
}
|
|
4139
|
-
function
|
|
4140
|
-
return new
|
|
4146
|
+
function In(o) {
|
|
4147
|
+
return new kn({ onKeyPress: o });
|
|
4141
4148
|
}
|
|
4142
|
-
class
|
|
4149
|
+
class Pn extends w {
|
|
4143
4150
|
constructor() {
|
|
4144
4151
|
super(...arguments);
|
|
4145
|
-
|
|
4146
|
-
|
|
4152
|
+
d(this, "type", "onFocus");
|
|
4153
|
+
d(this, "priority", 50);
|
|
4147
4154
|
}
|
|
4148
4155
|
apply(e, t) {
|
|
4149
4156
|
if (!t.element) return;
|
|
@@ -4157,11 +4164,11 @@ class Mn extends w {
|
|
|
4157
4164
|
};
|
|
4158
4165
|
}
|
|
4159
4166
|
}
|
|
4160
|
-
class
|
|
4167
|
+
class $n extends w {
|
|
4161
4168
|
constructor() {
|
|
4162
4169
|
super(...arguments);
|
|
4163
|
-
|
|
4164
|
-
|
|
4170
|
+
d(this, "type", "onBlur");
|
|
4171
|
+
d(this, "priority", 50);
|
|
4165
4172
|
}
|
|
4166
4173
|
apply(e, t) {
|
|
4167
4174
|
if (!t.element) return;
|
|
@@ -4175,17 +4182,17 @@ class kn extends w {
|
|
|
4175
4182
|
};
|
|
4176
4183
|
}
|
|
4177
4184
|
}
|
|
4178
|
-
function
|
|
4179
|
-
return new
|
|
4185
|
+
function Vn(o) {
|
|
4186
|
+
return new Pn({ onFocus: o });
|
|
4180
4187
|
}
|
|
4181
|
-
function
|
|
4182
|
-
return new
|
|
4188
|
+
function Dn(o) {
|
|
4189
|
+
return new $n({ onBlur: o });
|
|
4183
4190
|
}
|
|
4184
|
-
class
|
|
4191
|
+
class Rn extends w {
|
|
4185
4192
|
constructor() {
|
|
4186
4193
|
super(...arguments);
|
|
4187
|
-
|
|
4188
|
-
|
|
4194
|
+
d(this, "type", "onLongPressGesture");
|
|
4195
|
+
d(this, "priority", 85);
|
|
4189
4196
|
}
|
|
4190
4197
|
apply(e, t) {
|
|
4191
4198
|
if (!t.element) return;
|
|
@@ -4195,7 +4202,7 @@ class In extends w {
|
|
|
4195
4202
|
setupLongPressGesture(e, t) {
|
|
4196
4203
|
const i = t.minimumDuration ?? 500, n = t.maximumDistance ?? 10;
|
|
4197
4204
|
let r = null, a = null, l = !1, c = !1;
|
|
4198
|
-
const
|
|
4205
|
+
const f = (k, x) => {
|
|
4199
4206
|
l || (r = { x: k, y: x }, l = !0, c = !1, t.onPressingChanged?.(!0), a = window.setTimeout(() => {
|
|
4200
4207
|
l && !c && (c = !0, t.perform());
|
|
4201
4208
|
}, i));
|
|
@@ -4205,7 +4212,7 @@ class In extends w {
|
|
|
4205
4212
|
a && (clearTimeout(a), a = null), l && (l = !1, t.onPressingChanged?.(!1)), r = null, c = !1;
|
|
4206
4213
|
}, h = (k) => {
|
|
4207
4214
|
const x = k;
|
|
4208
|
-
k.preventDefault(),
|
|
4215
|
+
k.preventDefault(), f(x.clientX, x.clientY);
|
|
4209
4216
|
}, g = (k) => {
|
|
4210
4217
|
if (!l) return;
|
|
4211
4218
|
const x = k;
|
|
@@ -4218,9 +4225,9 @@ class In extends w {
|
|
|
4218
4225
|
const x = k;
|
|
4219
4226
|
if (x.touches.length === 1) {
|
|
4220
4227
|
const Y = x.touches[0];
|
|
4221
|
-
k.preventDefault(),
|
|
4228
|
+
k.preventDefault(), f(Y.clientX, Y.clientY);
|
|
4222
4229
|
}
|
|
4223
|
-
},
|
|
4230
|
+
}, ve = (k) => {
|
|
4224
4231
|
if (!l) return;
|
|
4225
4232
|
const x = k;
|
|
4226
4233
|
if (x.touches.length === 1) {
|
|
@@ -4228,21 +4235,21 @@ class In extends w {
|
|
|
4228
4235
|
u(Y.clientX, Y.clientY) || p();
|
|
4229
4236
|
} else
|
|
4230
4237
|
p();
|
|
4231
|
-
}, ve = () => {
|
|
4232
|
-
p();
|
|
4233
4238
|
}, be = () => {
|
|
4234
4239
|
p();
|
|
4235
|
-
}, Se = (
|
|
4236
|
-
|
|
4237
|
-
x.button === 0 && (k.preventDefault(), d(x.clientX, x.clientY));
|
|
4240
|
+
}, Se = () => {
|
|
4241
|
+
p();
|
|
4238
4242
|
}, we = (k) => {
|
|
4243
|
+
const x = k;
|
|
4244
|
+
x.button === 0 && (k.preventDefault(), f(x.clientX, x.clientY));
|
|
4245
|
+
}, Ce = (k) => {
|
|
4239
4246
|
if (!l) return;
|
|
4240
4247
|
const x = k;
|
|
4241
4248
|
u(x.clientX, x.clientY) || p();
|
|
4242
|
-
}, Ce = () => {
|
|
4243
|
-
p();
|
|
4244
4249
|
}, xe = () => {
|
|
4245
4250
|
p();
|
|
4251
|
+
}, Ee = () => {
|
|
4252
|
+
p();
|
|
4246
4253
|
};
|
|
4247
4254
|
"onpointerdown" in e ? (e.addEventListener(
|
|
4248
4255
|
"pointerdown",
|
|
@@ -4257,11 +4264,11 @@ class In extends w {
|
|
|
4257
4264
|
"touchstart",
|
|
4258
4265
|
z,
|
|
4259
4266
|
{ passive: !1 }
|
|
4260
|
-
), e.addEventListener("touchmove",
|
|
4267
|
+
), e.addEventListener("touchmove", ve), e.addEventListener("touchend", be), e.addEventListener(
|
|
4261
4268
|
"touchcancel",
|
|
4262
|
-
|
|
4263
|
-
)) : (e.addEventListener("mousedown",
|
|
4264
|
-
const
|
|
4269
|
+
Se
|
|
4270
|
+
)) : (e.addEventListener("mousedown", we), e.addEventListener("mousemove", Ce), e.addEventListener("mouseup", xe), e.addEventListener("mouseleave", Ee));
|
|
4271
|
+
const Te = () => {
|
|
4265
4272
|
p(), "onpointerdown" in e ? (e.removeEventListener(
|
|
4266
4273
|
"pointerdown",
|
|
4267
4274
|
h
|
|
@@ -4279,36 +4286,36 @@ class In extends w {
|
|
|
4279
4286
|
z
|
|
4280
4287
|
), e.removeEventListener(
|
|
4281
4288
|
"touchmove",
|
|
4282
|
-
|
|
4283
|
-
), e.removeEventListener("touchend",
|
|
4289
|
+
ve
|
|
4290
|
+
), e.removeEventListener("touchend", be), e.removeEventListener(
|
|
4284
4291
|
"touchcancel",
|
|
4285
|
-
|
|
4292
|
+
Se
|
|
4286
4293
|
)) : (e.removeEventListener(
|
|
4287
4294
|
"mousedown",
|
|
4288
|
-
|
|
4295
|
+
we
|
|
4289
4296
|
), e.removeEventListener(
|
|
4290
4297
|
"mousemove",
|
|
4291
|
-
|
|
4292
|
-
), e.removeEventListener("mouseup",
|
|
4298
|
+
Ce
|
|
4299
|
+
), e.removeEventListener("mouseup", xe), e.removeEventListener(
|
|
4293
4300
|
"mouseleave",
|
|
4294
|
-
|
|
4301
|
+
Ee
|
|
4295
4302
|
));
|
|
4296
4303
|
};
|
|
4297
|
-
return e._longPressCleanup =
|
|
4304
|
+
return e._longPressCleanup = Te, Te;
|
|
4298
4305
|
}
|
|
4299
4306
|
}
|
|
4300
|
-
function
|
|
4301
|
-
return new
|
|
4307
|
+
function On(o) {
|
|
4308
|
+
return new Rn(o);
|
|
4302
4309
|
}
|
|
4303
|
-
class
|
|
4310
|
+
class Bn extends w {
|
|
4304
4311
|
constructor(e) {
|
|
4305
4312
|
const t = {
|
|
4306
4313
|
...e,
|
|
4307
4314
|
modifiers: e.modifiers || []
|
|
4308
4315
|
};
|
|
4309
4316
|
super(t);
|
|
4310
|
-
|
|
4311
|
-
|
|
4317
|
+
d(this, "type", "keyboardShortcut");
|
|
4318
|
+
d(this, "priority", 80);
|
|
4312
4319
|
}
|
|
4313
4320
|
apply(e, t) {
|
|
4314
4321
|
t.element && this.setupKeyboardShortcut(t.element, this.properties);
|
|
@@ -4318,12 +4325,12 @@ class $n extends w {
|
|
|
4318
4325
|
const c = l;
|
|
4319
4326
|
if (c.key.toLowerCase() !== t.key.toLowerCase())
|
|
4320
4327
|
return;
|
|
4321
|
-
const
|
|
4328
|
+
const f = new Set(i), u = /* @__PURE__ */ new Set();
|
|
4322
4329
|
(c.ctrlKey || c.metaKey) && (navigator.platform.includes("Mac") ? (c.metaKey && (u.add("cmd"), u.add("meta")), c.ctrlKey && u.add("ctrl")) : (c.ctrlKey && (u.add("ctrl"), u.add("cmd")), c.metaKey && u.add("meta"))), c.shiftKey && u.add("shift"), c.altKey && u.add("alt");
|
|
4323
|
-
const p = Array.from(
|
|
4330
|
+
const p = Array.from(f).every(
|
|
4324
4331
|
(S) => u.has(S)
|
|
4325
|
-
), h = /* @__PURE__ */ new Set([...
|
|
4326
|
-
|
|
4332
|
+
), h = /* @__PURE__ */ new Set([...f]);
|
|
4333
|
+
f.has("cmd") && (h.add("meta"), h.add("ctrl")), f.has("meta") && h.add("cmd"), f.has("ctrl") && h.add("cmd");
|
|
4327
4334
|
const g = Array.from(u).some(
|
|
4328
4335
|
(S) => !h.has(
|
|
4329
4336
|
S
|
|
@@ -4341,17 +4348,17 @@ class $n extends w {
|
|
|
4341
4348
|
e._keyboardShortcutCleanup = a;
|
|
4342
4349
|
}
|
|
4343
4350
|
}
|
|
4344
|
-
function
|
|
4345
|
-
return new
|
|
4351
|
+
function Fe(o) {
|
|
4352
|
+
return new Bn(o);
|
|
4346
4353
|
}
|
|
4347
|
-
function
|
|
4348
|
-
return
|
|
4354
|
+
function Wr(o, s, e) {
|
|
4355
|
+
return Fe({ key: o, modifiers: s, action: e });
|
|
4349
4356
|
}
|
|
4350
|
-
class
|
|
4357
|
+
class _n extends w {
|
|
4351
4358
|
constructor() {
|
|
4352
4359
|
super(...arguments);
|
|
4353
|
-
|
|
4354
|
-
|
|
4360
|
+
d(this, "type", "focused");
|
|
4361
|
+
d(this, "priority", 75);
|
|
4355
4362
|
}
|
|
4356
4363
|
apply(e, t) {
|
|
4357
4364
|
t.element && this.setupFocusManagement(t.element, this.properties.focused);
|
|
@@ -4373,14 +4380,14 @@ class Vn extends w {
|
|
|
4373
4380
|
r(c);
|
|
4374
4381
|
});
|
|
4375
4382
|
else if (process.env.NODE_ENV !== "test") {
|
|
4376
|
-
let c = l(),
|
|
4383
|
+
let c = l(), f = !0;
|
|
4377
4384
|
const u = () => {
|
|
4378
|
-
if (!
|
|
4385
|
+
if (!f) return;
|
|
4379
4386
|
const p = l();
|
|
4380
|
-
p !== c && (c = p, r(p)),
|
|
4387
|
+
p !== c && (c = p, r(p)), f && requestAnimationFrame(u);
|
|
4381
4388
|
};
|
|
4382
4389
|
n = () => {
|
|
4383
|
-
|
|
4390
|
+
f = !1;
|
|
4384
4391
|
}, requestAnimationFrame(u);
|
|
4385
4392
|
} else
|
|
4386
4393
|
n = () => {
|
|
@@ -4393,18 +4400,18 @@ class Vn extends w {
|
|
|
4393
4400
|
e._focusedCleanup = a;
|
|
4394
4401
|
}
|
|
4395
4402
|
}
|
|
4396
|
-
function
|
|
4397
|
-
return new
|
|
4403
|
+
function Hn(o) {
|
|
4404
|
+
return new _n({ focused: o });
|
|
4398
4405
|
}
|
|
4399
|
-
class
|
|
4406
|
+
class zn extends w {
|
|
4400
4407
|
constructor(e = {}) {
|
|
4401
4408
|
const t = {
|
|
4402
4409
|
...e,
|
|
4403
4410
|
interactions: e.interactions || []
|
|
4404
4411
|
};
|
|
4405
4412
|
super(t);
|
|
4406
|
-
|
|
4407
|
-
|
|
4413
|
+
d(this, "type", "focusable");
|
|
4414
|
+
d(this, "priority", 75);
|
|
4408
4415
|
}
|
|
4409
4416
|
apply(e, t) {
|
|
4410
4417
|
t.element && this.setupFocusable(t.element, this.properties);
|
|
@@ -4422,8 +4429,8 @@ class Dn extends w {
|
|
|
4422
4429
|
"aria-label",
|
|
4423
4430
|
i.getAttribute("aria-label") || "Activatable element"
|
|
4424
4431
|
)), r.includes("activate")) {
|
|
4425
|
-
const l = (
|
|
4426
|
-
(
|
|
4432
|
+
const l = (f) => {
|
|
4433
|
+
(f.key === " " || f.key === "Enter") && (f.preventDefault(), i.click());
|
|
4427
4434
|
};
|
|
4428
4435
|
i.addEventListener("keydown", l);
|
|
4429
4436
|
const c = i._focusableCleanup || (() => {
|
|
@@ -4441,23 +4448,23 @@ class Dn extends w {
|
|
|
4441
4448
|
}
|
|
4442
4449
|
}
|
|
4443
4450
|
}
|
|
4444
|
-
function
|
|
4445
|
-
return new
|
|
4451
|
+
function ye(o, s) {
|
|
4452
|
+
return new zn({
|
|
4446
4453
|
isFocusable: o ?? !0,
|
|
4447
4454
|
interactions: s ?? []
|
|
4448
4455
|
});
|
|
4449
4456
|
}
|
|
4450
|
-
function
|
|
4451
|
-
return
|
|
4457
|
+
function Fn() {
|
|
4458
|
+
return ye(!0, ["activate"]);
|
|
4452
4459
|
}
|
|
4453
|
-
function
|
|
4454
|
-
return
|
|
4460
|
+
function Nn() {
|
|
4461
|
+
return ye(!0, ["edit"]);
|
|
4455
4462
|
}
|
|
4456
|
-
class
|
|
4463
|
+
class Wn extends w {
|
|
4457
4464
|
constructor() {
|
|
4458
4465
|
super(...arguments);
|
|
4459
|
-
|
|
4460
|
-
|
|
4466
|
+
d(this, "type", "onContinuousHover");
|
|
4467
|
+
d(this, "priority", 70);
|
|
4461
4468
|
}
|
|
4462
4469
|
apply(e, t) {
|
|
4463
4470
|
if (!t.element) return;
|
|
@@ -4492,7 +4499,7 @@ class _n extends w {
|
|
|
4492
4499
|
n = !1, t.perform(null);
|
|
4493
4500
|
};
|
|
4494
4501
|
e.addEventListener("mouseenter", a), e.addEventListener("mousemove", l), e.addEventListener("mouseleave", c);
|
|
4495
|
-
const
|
|
4502
|
+
const f = () => {
|
|
4496
4503
|
n && (n = !1, t.perform(null)), e.removeEventListener(
|
|
4497
4504
|
"mouseenter",
|
|
4498
4505
|
a
|
|
@@ -4501,29 +4508,29 @@ class _n extends w {
|
|
|
4501
4508
|
c
|
|
4502
4509
|
);
|
|
4503
4510
|
};
|
|
4504
|
-
return e._continuousHoverCleanup =
|
|
4511
|
+
return e._continuousHoverCleanup = f, f;
|
|
4505
4512
|
}
|
|
4506
4513
|
}
|
|
4507
|
-
function
|
|
4508
|
-
return new
|
|
4514
|
+
function me(o) {
|
|
4515
|
+
return new Wn(o);
|
|
4509
4516
|
}
|
|
4510
|
-
function
|
|
4511
|
-
return
|
|
4517
|
+
function jr(o) {
|
|
4518
|
+
return me({
|
|
4512
4519
|
coordinateSpace: "local",
|
|
4513
4520
|
perform: o
|
|
4514
4521
|
});
|
|
4515
4522
|
}
|
|
4516
|
-
function
|
|
4517
|
-
return
|
|
4523
|
+
function Ur(o) {
|
|
4524
|
+
return me({
|
|
4518
4525
|
coordinateSpace: "global",
|
|
4519
4526
|
perform: o
|
|
4520
4527
|
});
|
|
4521
4528
|
}
|
|
4522
|
-
class
|
|
4529
|
+
class jn extends w {
|
|
4523
4530
|
constructor() {
|
|
4524
4531
|
super(...arguments);
|
|
4525
|
-
|
|
4526
|
-
|
|
4532
|
+
d(this, "type", "allowsHitTesting");
|
|
4533
|
+
d(this, "priority", 95);
|
|
4527
4534
|
}
|
|
4528
4535
|
apply(e, t) {
|
|
4529
4536
|
t.element && this.setupHitTesting(t.element, this.properties.enabled);
|
|
@@ -4534,89 +4541,89 @@ class Hn extends w {
|
|
|
4534
4541
|
t ? i.style.pointerEvents === "none" && (i.style.pointerEvents = "") : i.style.pointerEvents = "none", e._hitTestingEnabled = t;
|
|
4535
4542
|
}
|
|
4536
4543
|
}
|
|
4537
|
-
function
|
|
4538
|
-
return new
|
|
4544
|
+
function ge(o) {
|
|
4545
|
+
return new jn({ enabled: o });
|
|
4539
4546
|
}
|
|
4540
|
-
function
|
|
4541
|
-
return
|
|
4547
|
+
function Gr() {
|
|
4548
|
+
return ge(!0);
|
|
4542
4549
|
}
|
|
4543
|
-
function
|
|
4544
|
-
return
|
|
4550
|
+
function Kr() {
|
|
4551
|
+
return ge(!1);
|
|
4545
4552
|
}
|
|
4546
|
-
function
|
|
4553
|
+
function Un(o, s) {
|
|
4547
4554
|
return new C({
|
|
4548
4555
|
highPriorityGesture: { gesture: o, including: s }
|
|
4549
4556
|
});
|
|
4550
4557
|
}
|
|
4551
|
-
function
|
|
4558
|
+
function Gn(o, s) {
|
|
4552
4559
|
return new C({
|
|
4553
4560
|
simultaneousGesture: { gesture: o, including: s }
|
|
4554
4561
|
});
|
|
4555
4562
|
}
|
|
4556
|
-
function
|
|
4563
|
+
function Kn(o) {
|
|
4557
4564
|
return new C({ onTap: o });
|
|
4558
4565
|
}
|
|
4559
|
-
function
|
|
4566
|
+
function Yr(o) {
|
|
4560
4567
|
return new C({ onFocus: o });
|
|
4561
4568
|
}
|
|
4562
|
-
function
|
|
4569
|
+
function Xr(o) {
|
|
4563
4570
|
return new C({ onBlur: o });
|
|
4564
4571
|
}
|
|
4565
|
-
function
|
|
4572
|
+
function Yn(o) {
|
|
4566
4573
|
return new C({ onScroll: o });
|
|
4567
4574
|
}
|
|
4568
|
-
function
|
|
4575
|
+
function Zr(o) {
|
|
4569
4576
|
return new C({ onKeyDown: o });
|
|
4570
4577
|
}
|
|
4571
|
-
function
|
|
4578
|
+
function qr(o) {
|
|
4572
4579
|
return new C({ onKeyPress: o });
|
|
4573
4580
|
}
|
|
4574
|
-
function
|
|
4581
|
+
function Jr(o) {
|
|
4575
4582
|
return new C({ onKeyUp: o });
|
|
4576
4583
|
}
|
|
4577
|
-
function
|
|
4584
|
+
function Qr(o) {
|
|
4578
4585
|
return new C({ onDoubleClick: o });
|
|
4579
4586
|
}
|
|
4580
|
-
function
|
|
4587
|
+
function es(o) {
|
|
4581
4588
|
return new C({ onContextMenu: o });
|
|
4582
4589
|
}
|
|
4583
|
-
function
|
|
4590
|
+
function Xn(o) {
|
|
4584
4591
|
return new C({ onWheel: o });
|
|
4585
4592
|
}
|
|
4586
|
-
function
|
|
4593
|
+
function Zn(o) {
|
|
4587
4594
|
return new C({ onInput: o });
|
|
4588
4595
|
}
|
|
4589
|
-
function
|
|
4596
|
+
function qn(o) {
|
|
4590
4597
|
return new C({ onChange: o });
|
|
4591
4598
|
}
|
|
4592
|
-
function
|
|
4599
|
+
function Jn(o) {
|
|
4593
4600
|
return new C({ onCopy: o });
|
|
4594
4601
|
}
|
|
4595
|
-
function
|
|
4602
|
+
function Qn(o) {
|
|
4596
4603
|
return new C({ onCut: o });
|
|
4597
4604
|
}
|
|
4598
|
-
function
|
|
4605
|
+
function eo(o) {
|
|
4599
4606
|
return new C({ onPaste: o });
|
|
4600
4607
|
}
|
|
4601
|
-
function
|
|
4608
|
+
function to(o) {
|
|
4602
4609
|
return new C({ onSelect: o });
|
|
4603
4610
|
}
|
|
4604
|
-
function
|
|
4611
|
+
function io(o) {
|
|
4605
4612
|
return new C({ onTouchStart: o });
|
|
4606
4613
|
}
|
|
4607
|
-
function
|
|
4614
|
+
function no(o) {
|
|
4608
4615
|
return new C({ onTouchMove: o });
|
|
4609
4616
|
}
|
|
4610
|
-
function
|
|
4617
|
+
function oo(o) {
|
|
4611
4618
|
return new C({ onTouchEnd: o });
|
|
4612
4619
|
}
|
|
4613
|
-
function
|
|
4620
|
+
function ro(o) {
|
|
4614
4621
|
return new C({ onSwipeLeft: o });
|
|
4615
4622
|
}
|
|
4616
|
-
function
|
|
4623
|
+
function so(o) {
|
|
4617
4624
|
return new C({ onSwipeRight: o });
|
|
4618
4625
|
}
|
|
4619
|
-
function
|
|
4626
|
+
function ao(o = !0) {
|
|
4620
4627
|
return new C({ disabled: o });
|
|
4621
4628
|
}
|
|
4622
4629
|
class K extends v {
|
|
@@ -4626,8 +4633,8 @@ class K extends v {
|
|
|
4626
4633
|
for (const [i, n] of Object.entries(e))
|
|
4627
4634
|
typeof n == "function" && "peek" in n ? t[i] = n.peek() : t[i] = n;
|
|
4628
4635
|
super(t);
|
|
4629
|
-
|
|
4630
|
-
|
|
4636
|
+
d(this, "type", "utility");
|
|
4637
|
+
d(this, "priority", 10);
|
|
4631
4638
|
}
|
|
4632
4639
|
apply(e, t) {
|
|
4633
4640
|
if (!t.element) return;
|
|
@@ -4660,36 +4667,36 @@ class K extends v {
|
|
|
4660
4667
|
);
|
|
4661
4668
|
}
|
|
4662
4669
|
}
|
|
4663
|
-
function
|
|
4670
|
+
function lo(o) {
|
|
4664
4671
|
return new K(o);
|
|
4665
4672
|
}
|
|
4666
|
-
function
|
|
4673
|
+
function co(o) {
|
|
4667
4674
|
return new K({ cursor: o });
|
|
4668
4675
|
}
|
|
4669
|
-
function
|
|
4676
|
+
function fo(o) {
|
|
4670
4677
|
return new K({ overflowY: o });
|
|
4671
4678
|
}
|
|
4672
|
-
function
|
|
4679
|
+
function uo(o) {
|
|
4673
4680
|
return new K({ overflowX: o });
|
|
4674
4681
|
}
|
|
4675
|
-
function
|
|
4682
|
+
function po(o) {
|
|
4676
4683
|
return new K({ display: o });
|
|
4677
4684
|
}
|
|
4678
|
-
function
|
|
4685
|
+
function ho(o) {
|
|
4679
4686
|
return new K({ outline: o });
|
|
4680
4687
|
}
|
|
4681
|
-
function
|
|
4688
|
+
function yo(o) {
|
|
4682
4689
|
return new K({ outlineOffset: o });
|
|
4683
4690
|
}
|
|
4684
|
-
class
|
|
4691
|
+
class se extends v {
|
|
4685
4692
|
// Very low priority so raw CSS doesn't override specific modifiers
|
|
4686
4693
|
constructor(e) {
|
|
4687
4694
|
const t = {};
|
|
4688
4695
|
for (const [i, n] of Object.entries(e))
|
|
4689
4696
|
typeof n == "function" && "peek" in n ? t[i] = n.peek() : t[i] = n;
|
|
4690
4697
|
super(t);
|
|
4691
|
-
|
|
4692
|
-
|
|
4698
|
+
d(this, "type", "css");
|
|
4699
|
+
d(this, "priority", 5);
|
|
4693
4700
|
}
|
|
4694
4701
|
apply(e, t) {
|
|
4695
4702
|
if (!t.element) return;
|
|
@@ -4706,24 +4713,24 @@ class ae extends v {
|
|
|
4706
4713
|
return t;
|
|
4707
4714
|
}
|
|
4708
4715
|
}
|
|
4709
|
-
function
|
|
4710
|
-
return new
|
|
4716
|
+
function mo(o) {
|
|
4717
|
+
return new se(o);
|
|
4711
4718
|
}
|
|
4712
|
-
function
|
|
4713
|
-
return new
|
|
4719
|
+
function go(o, s) {
|
|
4720
|
+
return new se({ [o]: s });
|
|
4714
4721
|
}
|
|
4715
|
-
function
|
|
4722
|
+
function vo(o, s) {
|
|
4716
4723
|
const e = o.startsWith("--") ? o : `--${o}`;
|
|
4717
|
-
return new
|
|
4724
|
+
return new se({ [e]: s });
|
|
4718
4725
|
}
|
|
4719
|
-
function
|
|
4726
|
+
function ts(o, s, e) {
|
|
4720
4727
|
const t = o.charAt(0).toUpperCase() + o.slice(1), i = `-${o.toLowerCase()}-${s}`, n = t + s.charAt(0).toUpperCase() + s.slice(1);
|
|
4721
|
-
return new
|
|
4728
|
+
return new se({
|
|
4722
4729
|
[i]: e,
|
|
4723
4730
|
[n]: e
|
|
4724
4731
|
});
|
|
4725
4732
|
}
|
|
4726
|
-
class
|
|
4733
|
+
class Q {
|
|
4727
4734
|
/**
|
|
4728
4735
|
* Apply basic sanitization to HTML content
|
|
4729
4736
|
* Removes dangerous patterns and restricts to allowed elements/attributes
|
|
@@ -4798,7 +4805,7 @@ class ee {
|
|
|
4798
4805
|
}
|
|
4799
4806
|
}
|
|
4800
4807
|
}
|
|
4801
|
-
|
|
4808
|
+
d(Q, "DANGEROUS_PATTERNS", [
|
|
4802
4809
|
// Script tags (including nested/malformed ones)
|
|
4803
4810
|
/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
|
|
4804
4811
|
/<[^>]*<script[^>]*>/gi,
|
|
@@ -4826,7 +4833,7 @@ f(ee, "DANGEROUS_PATTERNS", [
|
|
|
4826
4833
|
// Any javascript: protocol
|
|
4827
4834
|
/vbscript:/gi
|
|
4828
4835
|
// VBScript protocol
|
|
4829
|
-
]),
|
|
4836
|
+
]), d(Q, "ALLOWED_TAGS", [
|
|
4830
4837
|
"p",
|
|
4831
4838
|
"br",
|
|
4832
4839
|
"strong",
|
|
@@ -4870,7 +4877,7 @@ f(ee, "DANGEROUS_PATTERNS", [
|
|
|
4870
4877
|
"header",
|
|
4871
4878
|
"footer",
|
|
4872
4879
|
"hr"
|
|
4873
|
-
]),
|
|
4880
|
+
]), d(Q, "ALLOWED_ATTRIBUTES", {
|
|
4874
4881
|
"*": ["class", "id", "title", "lang", "dir"],
|
|
4875
4882
|
a: ["href", "target", "rel"],
|
|
4876
4883
|
img: ["src", "alt", "width", "height"],
|
|
@@ -4878,10 +4885,10 @@ f(ee, "DANGEROUS_PATTERNS", [
|
|
|
4878
4885
|
td: ["colspan", "rowspan"],
|
|
4879
4886
|
th: ["colspan", "rowspan", "scope"]
|
|
4880
4887
|
});
|
|
4881
|
-
function
|
|
4882
|
-
return
|
|
4888
|
+
function is(o, s) {
|
|
4889
|
+
return Q.sanitize(o, s);
|
|
4883
4890
|
}
|
|
4884
|
-
class
|
|
4891
|
+
class Ne {
|
|
4885
4892
|
/**
|
|
4886
4893
|
* Validate HTML content in development mode
|
|
4887
4894
|
*/
|
|
@@ -4911,7 +4918,7 @@ class He {
|
|
|
4911
4918
|
].some((t) => t.test(s));
|
|
4912
4919
|
}
|
|
4913
4920
|
}
|
|
4914
|
-
|
|
4921
|
+
d(Ne, "SUSPICIOUS_PATTERNS", [
|
|
4915
4922
|
{ pattern: /<script/i, message: "Script tags detected" },
|
|
4916
4923
|
{ pattern: /javascript:/i, message: "JavaScript URLs detected" },
|
|
4917
4924
|
{ pattern: /on\w+\s*=/i, message: "Event handlers detected" },
|
|
@@ -4923,12 +4930,12 @@ f(He, "SUSPICIOUS_PATTERNS", [
|
|
|
4923
4930
|
{ pattern: /@import/i, message: "CSS import statements detected" },
|
|
4924
4931
|
{ pattern: /expression\s*\(/i, message: "CSS expressions detected" }
|
|
4925
4932
|
]);
|
|
4926
|
-
class
|
|
4933
|
+
class bo extends v {
|
|
4927
4934
|
// Early priority to apply before other modifiers
|
|
4928
4935
|
constructor(e = {}) {
|
|
4929
4936
|
super(e);
|
|
4930
|
-
|
|
4931
|
-
|
|
4937
|
+
d(this, "type", "asHTML");
|
|
4938
|
+
d(this, "priority", 10);
|
|
4932
4939
|
}
|
|
4933
4940
|
apply(e, t) {
|
|
4934
4941
|
if (!t.element || !t.componentInstance) return;
|
|
@@ -4983,11 +4990,11 @@ class ho extends v {
|
|
|
4983
4990
|
return typeof e == "string" ? e : "";
|
|
4984
4991
|
}
|
|
4985
4992
|
sanitizeHTML(e) {
|
|
4986
|
-
return !e || typeof e != "string" ? "" : this.properties.skipSanitizer ? e : this.properties.customSanitizer ? this.properties.customSanitizer(e) :
|
|
4993
|
+
return !e || typeof e != "string" ? "" : this.properties.skipSanitizer ? e : this.properties.customSanitizer ? this.properties.customSanitizer(e) : Q.sanitize(e, this.properties);
|
|
4987
4994
|
}
|
|
4988
4995
|
validateContent(e) {
|
|
4989
4996
|
if (this.properties.__suppressWarnings) return;
|
|
4990
|
-
const t =
|
|
4997
|
+
const t = Ne.validate(e, {
|
|
4991
4998
|
suppressWarnings: this.properties.__suppressWarnings
|
|
4992
4999
|
});
|
|
4993
5000
|
!t.isValid && t.warnings.length > 0 && (console.group("🔒 AsHTML Security Warnings"), console.warn("Potentially dangerous content detected in asHTML:"), t.warnings.forEach((i) => {
|
|
@@ -4995,30 +5002,30 @@ class ho extends v {
|
|
|
4995
5002
|
}), console.warn("Consider using a more comprehensive sanitization solution like DOMPurify"), console.warn("To suppress these warnings, use { __suppressWarnings: true }"), console.groupEnd()), this.properties.skipSanitizer && console.warn("🚨 AsHTML: Sanitization is DISABLED. Ensure content is safe!");
|
|
4996
5003
|
}
|
|
4997
5004
|
}
|
|
4998
|
-
function
|
|
4999
|
-
return new
|
|
5005
|
+
function So(o = {}) {
|
|
5006
|
+
return new bo(o);
|
|
5000
5007
|
}
|
|
5001
|
-
function
|
|
5008
|
+
function wo(o) {
|
|
5002
5009
|
return new H({
|
|
5003
5010
|
navigationTitle: o,
|
|
5004
5011
|
role: "heading"
|
|
5005
5012
|
});
|
|
5006
5013
|
}
|
|
5007
|
-
function
|
|
5014
|
+
function Co(o = !0) {
|
|
5008
5015
|
return new H({
|
|
5009
5016
|
navigationBarHidden: o,
|
|
5010
5017
|
"aria-hidden": o.toString()
|
|
5011
5018
|
});
|
|
5012
5019
|
}
|
|
5013
|
-
function
|
|
5020
|
+
function xo(o) {
|
|
5014
5021
|
return new H({ navigationBarItems: o });
|
|
5015
5022
|
}
|
|
5016
|
-
class
|
|
5023
|
+
class Eo extends v {
|
|
5017
5024
|
// High priority for HTML attributes
|
|
5018
5025
|
constructor(e) {
|
|
5019
5026
|
super(e);
|
|
5020
|
-
|
|
5021
|
-
|
|
5027
|
+
d(this, "type", "id");
|
|
5028
|
+
d(this, "priority", 85);
|
|
5022
5029
|
}
|
|
5023
5030
|
apply(e, t) {
|
|
5024
5031
|
if (!t.element) return;
|
|
@@ -5037,15 +5044,15 @@ class bo extends v {
|
|
|
5037
5044
|
);
|
|
5038
5045
|
}
|
|
5039
5046
|
}
|
|
5040
|
-
function
|
|
5041
|
-
return new
|
|
5047
|
+
function ce(o) {
|
|
5048
|
+
return new Eo({ id: o });
|
|
5042
5049
|
}
|
|
5043
|
-
class
|
|
5050
|
+
class To extends v {
|
|
5044
5051
|
// High priority for HTML attributes
|
|
5045
5052
|
constructor(e) {
|
|
5046
5053
|
super(e);
|
|
5047
|
-
|
|
5048
|
-
|
|
5054
|
+
d(this, "type", "data");
|
|
5055
|
+
d(this, "priority", 80);
|
|
5049
5056
|
}
|
|
5050
5057
|
apply(e, t) {
|
|
5051
5058
|
if (!t.element) return;
|
|
@@ -5079,15 +5086,15 @@ class So extends v {
|
|
|
5079
5086
|
});
|
|
5080
5087
|
}
|
|
5081
5088
|
}
|
|
5082
|
-
function
|
|
5083
|
-
return new
|
|
5089
|
+
function Mo(o) {
|
|
5090
|
+
return new To({ data: o });
|
|
5084
5091
|
}
|
|
5085
|
-
class
|
|
5092
|
+
class ko extends v {
|
|
5086
5093
|
// High priority for accessibility
|
|
5087
5094
|
constructor(e) {
|
|
5088
5095
|
super(e);
|
|
5089
|
-
|
|
5090
|
-
|
|
5096
|
+
d(this, "type", "tabIndex");
|
|
5097
|
+
d(this, "priority", 75);
|
|
5091
5098
|
}
|
|
5092
5099
|
apply(e, t) {
|
|
5093
5100
|
if (!t.element) return;
|
|
@@ -5106,14 +5113,14 @@ class Co extends v {
|
|
|
5106
5113
|
);
|
|
5107
5114
|
}
|
|
5108
5115
|
}
|
|
5109
|
-
function
|
|
5110
|
-
return new
|
|
5116
|
+
function Ao(o) {
|
|
5117
|
+
return new ko({ tabIndex: o });
|
|
5111
5118
|
}
|
|
5112
|
-
const
|
|
5119
|
+
const re = class re extends v {
|
|
5113
5120
|
constructor(e) {
|
|
5114
5121
|
super(e);
|
|
5115
|
-
|
|
5116
|
-
|
|
5122
|
+
d(this, "type", "aria");
|
|
5123
|
+
d(this, "priority", 90);
|
|
5117
5124
|
}
|
|
5118
5125
|
apply(e, t) {
|
|
5119
5126
|
if (!t.element) return;
|
|
@@ -5144,7 +5151,7 @@ const se = class se extends v {
|
|
|
5144
5151
|
return;
|
|
5145
5152
|
}
|
|
5146
5153
|
const n = t.replace(/^aria-/, "");
|
|
5147
|
-
!
|
|
5154
|
+
!re.KNOWN_ATTRIBUTES.has(n) && !t.startsWith("aria-") && console.warn(
|
|
5148
5155
|
`TachUI ARIA Modifier: Unknown ARIA attribute "${t}". This may not be a valid ARIA attribute. Did you mean "${this.suggestCorrection(n)}"?`
|
|
5149
5156
|
), this.validateSpecificAriaAttribute(t, i);
|
|
5150
5157
|
});
|
|
@@ -5237,7 +5244,7 @@ const se = class se extends v {
|
|
|
5237
5244
|
}
|
|
5238
5245
|
};
|
|
5239
5246
|
// Highest priority for accessibility
|
|
5240
|
-
|
|
5247
|
+
d(re, "KNOWN_ATTRIBUTES", /* @__PURE__ */ new Set([
|
|
5241
5248
|
"label",
|
|
5242
5249
|
"labelledby",
|
|
5243
5250
|
"describedby",
|
|
@@ -5272,41 +5279,41 @@ f(se, "KNOWN_ATTRIBUTES", /* @__PURE__ */ new Set([
|
|
|
5272
5279
|
"valuetext",
|
|
5273
5280
|
"role"
|
|
5274
5281
|
]));
|
|
5275
|
-
let de =
|
|
5282
|
+
let de = re;
|
|
5276
5283
|
function q(o) {
|
|
5277
5284
|
return new de({ aria: o });
|
|
5278
5285
|
}
|
|
5279
|
-
function
|
|
5286
|
+
function Lo(o) {
|
|
5280
5287
|
return q({ role: o });
|
|
5281
5288
|
}
|
|
5282
|
-
function
|
|
5289
|
+
function Io(o) {
|
|
5283
5290
|
return q({ label: o });
|
|
5284
5291
|
}
|
|
5285
|
-
function
|
|
5292
|
+
function Po(o) {
|
|
5286
5293
|
return q({ live: o });
|
|
5287
5294
|
}
|
|
5288
|
-
function
|
|
5295
|
+
function $o(o) {
|
|
5289
5296
|
return q({ describedby: o });
|
|
5290
5297
|
}
|
|
5291
|
-
function
|
|
5298
|
+
function Vo(o) {
|
|
5292
5299
|
return q({ modal: o });
|
|
5293
5300
|
}
|
|
5294
|
-
class
|
|
5301
|
+
class ee extends v {
|
|
5295
5302
|
// Early application for CSS variables
|
|
5296
5303
|
constructor(e) {
|
|
5297
5304
|
super(e);
|
|
5298
|
-
|
|
5299
|
-
|
|
5305
|
+
d(this, "type", "customProperties");
|
|
5306
|
+
d(this, "priority", 5);
|
|
5300
5307
|
}
|
|
5301
5308
|
apply(e, t) {
|
|
5302
5309
|
if (!t.element) return;
|
|
5303
5310
|
const i = this.computeCustomPropertyStyles(this.properties), n = t.element, r = (typeof HTMLElement < "u" && n instanceof HTMLElement, n.style);
|
|
5304
5311
|
if (r && typeof r.setProperty == "function") {
|
|
5305
5312
|
for (const [a, l] of Object.entries(i)) {
|
|
5306
|
-
const c = a.startsWith("--") ? a.slice(2) : a,
|
|
5307
|
-
r.setProperty(
|
|
5313
|
+
const c = a.startsWith("--") ? a.slice(2) : a, f = `--${this.toCSSProperty(c)}`;
|
|
5314
|
+
r.setProperty(f, l);
|
|
5308
5315
|
try {
|
|
5309
|
-
r[
|
|
5316
|
+
r[f] = l;
|
|
5310
5317
|
} catch {
|
|
5311
5318
|
}
|
|
5312
5319
|
}
|
|
@@ -5325,25 +5332,25 @@ class te extends v {
|
|
|
5325
5332
|
return typeof e == "number" ? e.toString() : String(e);
|
|
5326
5333
|
}
|
|
5327
5334
|
}
|
|
5328
|
-
function
|
|
5329
|
-
return new
|
|
5335
|
+
function Do(o) {
|
|
5336
|
+
return new ee({
|
|
5330
5337
|
properties: o.properties,
|
|
5331
5338
|
scope: o.scope || "local"
|
|
5332
5339
|
});
|
|
5333
5340
|
}
|
|
5334
|
-
function
|
|
5335
|
-
return new
|
|
5341
|
+
function Ro(o, s, e) {
|
|
5342
|
+
return new ee({
|
|
5336
5343
|
properties: { [o]: s },
|
|
5337
5344
|
scope: e || "local"
|
|
5338
5345
|
});
|
|
5339
5346
|
}
|
|
5340
|
-
function
|
|
5341
|
-
return new
|
|
5347
|
+
function Oo(o) {
|
|
5348
|
+
return new ee({
|
|
5342
5349
|
properties: o,
|
|
5343
5350
|
scope: "local"
|
|
5344
5351
|
});
|
|
5345
5352
|
}
|
|
5346
|
-
function
|
|
5353
|
+
function ns(o) {
|
|
5347
5354
|
const s = {};
|
|
5348
5355
|
return Object.entries(o).forEach(([e, t]) => {
|
|
5349
5356
|
if (t !== void 0) {
|
|
@@ -5353,16 +5360,16 @@ function qr(o) {
|
|
|
5353
5360
|
);
|
|
5354
5361
|
s[`--theme-color-${i}`] = t;
|
|
5355
5362
|
}
|
|
5356
|
-
}), new
|
|
5363
|
+
}), new ee({
|
|
5357
5364
|
properties: s,
|
|
5358
5365
|
scope: "local"
|
|
5359
5366
|
});
|
|
5360
5367
|
}
|
|
5361
|
-
function
|
|
5368
|
+
function os(o) {
|
|
5362
5369
|
const s = {};
|
|
5363
5370
|
return Object.entries(o).forEach(([e, t]) => {
|
|
5364
5371
|
t !== void 0 && (s[`--token-${e}`] = t);
|
|
5365
|
-
}), new
|
|
5372
|
+
}), new ee({
|
|
5366
5373
|
properties: s,
|
|
5367
5374
|
scope: "local"
|
|
5368
5375
|
});
|
|
@@ -5370,8 +5377,8 @@ function Jr(o) {
|
|
|
5370
5377
|
const j = class j extends w {
|
|
5371
5378
|
constructor() {
|
|
5372
5379
|
super(...arguments);
|
|
5373
|
-
|
|
5374
|
-
|
|
5380
|
+
d(this, "type", "pseudoElement");
|
|
5381
|
+
d(this, "priority", 50);
|
|
5375
5382
|
}
|
|
5376
5383
|
apply(e, t) {
|
|
5377
5384
|
if (!t.element) return;
|
|
@@ -5390,8 +5397,8 @@ const j = class j extends w {
|
|
|
5390
5397
|
const n = `.${e}::${t}`, r = [];
|
|
5391
5398
|
return i.content || (i.content = '""'), Object.entries(i).forEach(([a, l]) => {
|
|
5392
5399
|
if (l !== void 0) {
|
|
5393
|
-
const c = this.toCSSProperty(a),
|
|
5394
|
-
r.push(`${c}: ${
|
|
5400
|
+
const c = this.toCSSProperty(a), f = this.formatCSSValue(a, l);
|
|
5401
|
+
r.push(`${c}: ${f}`);
|
|
5395
5402
|
}
|
|
5396
5403
|
}), `${n} { ${r.join("; ")} }`;
|
|
5397
5404
|
}
|
|
@@ -5427,32 +5434,32 @@ const j = class j extends w {
|
|
|
5427
5434
|
}
|
|
5428
5435
|
};
|
|
5429
5436
|
// High priority to ensure pseudo-elements are applied last
|
|
5430
|
-
|
|
5437
|
+
d(j, "styleSheetId", "tachui-pseudo-elements"), d(j, "elementCount", 0);
|
|
5431
5438
|
let X = j;
|
|
5432
5439
|
function J(o) {
|
|
5433
5440
|
return new X({ before: o });
|
|
5434
5441
|
}
|
|
5435
|
-
function
|
|
5442
|
+
function te(o) {
|
|
5436
5443
|
return new X({ after: o });
|
|
5437
5444
|
}
|
|
5438
|
-
function
|
|
5445
|
+
function Bo(o) {
|
|
5439
5446
|
return new X(o);
|
|
5440
5447
|
}
|
|
5441
|
-
function
|
|
5448
|
+
function _o(o, s = {}) {
|
|
5442
5449
|
return J({
|
|
5443
5450
|
content: o,
|
|
5444
5451
|
display: "inline-block",
|
|
5445
5452
|
...s
|
|
5446
5453
|
});
|
|
5447
5454
|
}
|
|
5448
|
-
function
|
|
5449
|
-
return
|
|
5455
|
+
function Ho(o, s = {}) {
|
|
5456
|
+
return te({
|
|
5450
5457
|
content: o,
|
|
5451
5458
|
display: "inline-block",
|
|
5452
5459
|
...s
|
|
5453
5460
|
});
|
|
5454
5461
|
}
|
|
5455
|
-
function
|
|
5462
|
+
function zo(o = "#ddd", s = 1, e = 16) {
|
|
5456
5463
|
return J({
|
|
5457
5464
|
content: "",
|
|
5458
5465
|
display: "inline-block",
|
|
@@ -5463,8 +5470,8 @@ function Do(o = "#ddd", s = 1, e = 16) {
|
|
|
5463
5470
|
verticalAlign: "middle"
|
|
5464
5471
|
});
|
|
5465
5472
|
}
|
|
5466
|
-
function
|
|
5467
|
-
return
|
|
5473
|
+
function Fo(o = "#ddd", s = 1, e = 16) {
|
|
5474
|
+
return te({
|
|
5468
5475
|
content: "",
|
|
5469
5476
|
display: "inline-block",
|
|
5470
5477
|
width: e,
|
|
@@ -5474,7 +5481,7 @@ function Oo(o = "#ddd", s = 1, e = 16) {
|
|
|
5474
5481
|
verticalAlign: "middle"
|
|
5475
5482
|
});
|
|
5476
5483
|
}
|
|
5477
|
-
function
|
|
5484
|
+
function No(o = '"', s = '"') {
|
|
5478
5485
|
return new X({
|
|
5479
5486
|
before: {
|
|
5480
5487
|
content: o,
|
|
@@ -5490,8 +5497,8 @@ function Bo(o = '"', s = '"') {
|
|
|
5490
5497
|
}
|
|
5491
5498
|
});
|
|
5492
5499
|
}
|
|
5493
|
-
function
|
|
5494
|
-
return
|
|
5500
|
+
function Wo(o = "currentColor", s = 1, e = 1) {
|
|
5501
|
+
return te({
|
|
5495
5502
|
content: "",
|
|
5496
5503
|
position: "absolute",
|
|
5497
5504
|
bottom: 0,
|
|
@@ -5502,8 +5509,8 @@ function _o(o = "currentColor", s = 1, e = 1) {
|
|
|
5502
5509
|
opacity: e
|
|
5503
5510
|
});
|
|
5504
5511
|
}
|
|
5505
|
-
function
|
|
5506
|
-
return
|
|
5512
|
+
function jo(o = "#ff3b30", s = 6, e = "") {
|
|
5513
|
+
return te({
|
|
5507
5514
|
content: e,
|
|
5508
5515
|
position: "absolute",
|
|
5509
5516
|
top: -2,
|
|
@@ -5523,7 +5530,7 @@ function Ho(o = "#ff3b30", s = 6, e = "") {
|
|
|
5523
5530
|
justifyContent: "center"
|
|
5524
5531
|
});
|
|
5525
5532
|
}
|
|
5526
|
-
function
|
|
5533
|
+
function Uo(o, s = "top", e = "#333", t = "white") {
|
|
5527
5534
|
return J({
|
|
5528
5535
|
content: o,
|
|
5529
5536
|
position: "absolute",
|
|
@@ -5565,7 +5572,7 @@ function zo(o, s = "top", e = "#333", t = "white") {
|
|
|
5565
5572
|
}[s]
|
|
5566
5573
|
});
|
|
5567
5574
|
}
|
|
5568
|
-
function
|
|
5575
|
+
function Go(o, s = "#ff3b30", e = "white") {
|
|
5569
5576
|
return J({
|
|
5570
5577
|
content: o,
|
|
5571
5578
|
position: "absolute",
|
|
@@ -5582,7 +5589,7 @@ function Fo(o, s = "#ff3b30", e = "white") {
|
|
|
5582
5589
|
zIndex: 10
|
|
5583
5590
|
});
|
|
5584
5591
|
}
|
|
5585
|
-
function
|
|
5592
|
+
function Ko(o = 20, s = "#007AFF", e = 2) {
|
|
5586
5593
|
if (!document.getElementById("tachui-spinner-animation")) {
|
|
5587
5594
|
const t = document.createElement("style");
|
|
5588
5595
|
t.id = "tachui-spinner-animation", t.textContent = `
|
|
@@ -5603,483 +5610,481 @@ function No(o = 20, s = "#007AFF", e = 2) {
|
|
|
5603
5610
|
animation: "spin 1s linear infinite"
|
|
5604
5611
|
});
|
|
5605
5612
|
}
|
|
5606
|
-
const
|
|
5613
|
+
const Yo = [
|
|
5607
5614
|
// Padding
|
|
5608
5615
|
["padding", T],
|
|
5609
|
-
["paddingTop",
|
|
5610
|
-
["paddingBottom",
|
|
5611
|
-
["paddingLeft",
|
|
5612
|
-
["paddingRight",
|
|
5613
|
-
["paddingLeading",
|
|
5614
|
-
["paddingTrailing",
|
|
5615
|
-
["paddingHorizontal",
|
|
5616
|
-
["paddingVertical",
|
|
5616
|
+
["paddingTop", ot],
|
|
5617
|
+
["paddingBottom", rt],
|
|
5618
|
+
["paddingLeft", st],
|
|
5619
|
+
["paddingRight", at],
|
|
5620
|
+
["paddingLeading", lt],
|
|
5621
|
+
["paddingTrailing", ct],
|
|
5622
|
+
["paddingHorizontal", ft],
|
|
5623
|
+
["paddingVertical", dt],
|
|
5617
5624
|
// Margin
|
|
5618
5625
|
["margin", M],
|
|
5619
|
-
["marginTop",
|
|
5620
|
-
["marginBottom",
|
|
5621
|
-
["marginLeft",
|
|
5622
|
-
["marginRight",
|
|
5623
|
-
["marginLeading",
|
|
5624
|
-
["marginTrailing",
|
|
5625
|
-
["marginHorizontal",
|
|
5626
|
-
["marginVertical",
|
|
5626
|
+
["marginTop", ut],
|
|
5627
|
+
["marginBottom", pt],
|
|
5628
|
+
["marginLeft", ht],
|
|
5629
|
+
["marginRight", yt],
|
|
5630
|
+
["marginLeading", mt],
|
|
5631
|
+
["marginTrailing", gt],
|
|
5632
|
+
["marginHorizontal", vt],
|
|
5633
|
+
["marginVertical", bt],
|
|
5627
5634
|
// Size helpers
|
|
5628
|
-
["size",
|
|
5629
|
-
["width",
|
|
5630
|
-
["height",
|
|
5631
|
-
["maxWidth",
|
|
5632
|
-
["maxHeight",
|
|
5633
|
-
["minWidth",
|
|
5634
|
-
["minHeight",
|
|
5635
|
+
["size", St],
|
|
5636
|
+
["width", wt],
|
|
5637
|
+
["height", Ct],
|
|
5638
|
+
["maxWidth", xt],
|
|
5639
|
+
["maxHeight", Tt],
|
|
5640
|
+
["minWidth", Et],
|
|
5641
|
+
["minHeight", Mt],
|
|
5635
5642
|
// Layout + flexbox
|
|
5636
|
-
["aspectRatio",
|
|
5637
|
-
["fixedSize",
|
|
5638
|
-
["frame",
|
|
5639
|
-
["resizable",
|
|
5640
|
-
["layoutPriority",
|
|
5641
|
-
["offset",
|
|
5642
|
-
["overlay",
|
|
5643
|
-
["position",
|
|
5644
|
-
["absolutePosition",
|
|
5645
|
-
["scaleEffect",
|
|
5646
|
-
["zIndex",
|
|
5643
|
+
["aspectRatio", jt],
|
|
5644
|
+
["fixedSize", Kt],
|
|
5645
|
+
["frame", Yt],
|
|
5646
|
+
["resizable", qt],
|
|
5647
|
+
["layoutPriority", Xt],
|
|
5648
|
+
["offset", Ft],
|
|
5649
|
+
["overlay", ri],
|
|
5650
|
+
["position", ei],
|
|
5651
|
+
["absolutePosition", Zt],
|
|
5652
|
+
["scaleEffect", Wt],
|
|
5653
|
+
["zIndex", ii],
|
|
5647
5654
|
["flexbox", P],
|
|
5648
|
-
["flexGrow",
|
|
5649
|
-
["flexShrink",
|
|
5650
|
-
["flexBasis",
|
|
5651
|
-
["justifyContent",
|
|
5652
|
-
["alignItems",
|
|
5653
|
-
["alignSelf",
|
|
5654
|
-
["gap",
|
|
5655
|
-
["flexDirection",
|
|
5656
|
-
["flexWrap",
|
|
5655
|
+
["flexGrow", Pt],
|
|
5656
|
+
["flexShrink", $t],
|
|
5657
|
+
["flexBasis", Vt],
|
|
5658
|
+
["justifyContent", Dt],
|
|
5659
|
+
["alignItems", Rt],
|
|
5660
|
+
["alignSelf", Ot],
|
|
5661
|
+
["gap", Bt],
|
|
5662
|
+
["flexDirection", _t],
|
|
5663
|
+
["flexWrap", Ht],
|
|
5657
5664
|
// Appearance
|
|
5658
|
-
["backgroundColor",
|
|
5659
|
-
["background",
|
|
5660
|
-
["backgroundImage",
|
|
5661
|
-
["blendMode",
|
|
5662
|
-
["backgroundBlendMode",
|
|
5663
|
-
["compositingGroup",
|
|
5664
|
-
["border",
|
|
5665
|
-
["borderTop",
|
|
5666
|
-
["borderBottom",
|
|
5667
|
-
["borderLeft",
|
|
5668
|
-
["borderRight",
|
|
5669
|
-
["clipShape",
|
|
5670
|
-
["clipped",
|
|
5671
|
-
["cornerRadius",
|
|
5672
|
-
["foregroundColor",
|
|
5665
|
+
["backgroundColor", li],
|
|
5666
|
+
["background", ci],
|
|
5667
|
+
["backgroundImage", fi],
|
|
5668
|
+
["blendMode", pi],
|
|
5669
|
+
["backgroundBlendMode", hi],
|
|
5670
|
+
["compositingGroup", mi],
|
|
5671
|
+
["border", vi],
|
|
5672
|
+
["borderTop", bi],
|
|
5673
|
+
["borderBottom", wi],
|
|
5674
|
+
["borderLeft", Ci],
|
|
5675
|
+
["borderRight", Si],
|
|
5676
|
+
["clipShape", Ti],
|
|
5677
|
+
["clipped", ki],
|
|
5678
|
+
["cornerRadius", Li],
|
|
5679
|
+
["foregroundColor", xi],
|
|
5673
5680
|
["gradientText", Z],
|
|
5674
|
-
["opacity",
|
|
5675
|
-
["fontFamily",
|
|
5676
|
-
["fontSize",
|
|
5677
|
-
["fontWeight",
|
|
5678
|
-
["fontStyle",
|
|
5679
|
-
["fontPreset",
|
|
5681
|
+
["opacity", Ai],
|
|
5682
|
+
["fontFamily", Ii],
|
|
5683
|
+
["fontSize", Pi],
|
|
5684
|
+
["fontWeight", $i],
|
|
5685
|
+
["fontStyle", Vi],
|
|
5686
|
+
["fontPreset", Di],
|
|
5680
5687
|
// Typography
|
|
5681
|
-
["typography",
|
|
5682
|
-
["textAlign",
|
|
5683
|
-
["font",
|
|
5684
|
-
["lineClamp",
|
|
5685
|
-
["wordBreak",
|
|
5686
|
-
["letterSpacing",
|
|
5687
|
-
["lineHeight",
|
|
5688
|
-
["textDecoration",
|
|
5689
|
-
["textOverflow",
|
|
5690
|
-
["textTransform",
|
|
5691
|
-
["textCase",
|
|
5692
|
-
["whiteSpace",
|
|
5693
|
-
["overflow",
|
|
5694
|
-
["hyphens",
|
|
5695
|
-
["overflowWrap",
|
|
5688
|
+
["typography", Bi],
|
|
5689
|
+
["textAlign", _i],
|
|
5690
|
+
["font", Gi],
|
|
5691
|
+
["lineClamp", Xi],
|
|
5692
|
+
["wordBreak", qi],
|
|
5693
|
+
["letterSpacing", Fi],
|
|
5694
|
+
["lineHeight", zi],
|
|
5695
|
+
["textDecoration", Hi],
|
|
5696
|
+
["textOverflow", Ni],
|
|
5697
|
+
["textTransform", ze],
|
|
5698
|
+
["textCase", Ui],
|
|
5699
|
+
["whiteSpace", Wi],
|
|
5700
|
+
["overflow", ji],
|
|
5701
|
+
["hyphens", tn],
|
|
5702
|
+
["overflowWrap", Qi],
|
|
5696
5703
|
// Interaction
|
|
5697
|
-
["allowsHitTesting",
|
|
5698
|
-
["focusable",
|
|
5699
|
-
["activatable",
|
|
5700
|
-
["editable",
|
|
5701
|
-
["focused",
|
|
5702
|
-
["keyboardShortcut",
|
|
5703
|
-
["onHover",
|
|
5704
|
-
["onMouseEnter",
|
|
5705
|
-
["onMouseLeave",
|
|
5706
|
-
["onMouseDown",
|
|
5707
|
-
["onMouseUp",
|
|
5708
|
-
["onDoubleClick",
|
|
5709
|
-
["onContextMenu",
|
|
5710
|
-
["onKeyDown",
|
|
5711
|
-
["onKeyUp",
|
|
5712
|
-
["onKeyPress",
|
|
5713
|
-
["onFocus",
|
|
5714
|
-
["onBlur",
|
|
5715
|
-
["onContinuousHover",
|
|
5716
|
-
["onLongPressGesture",
|
|
5717
|
-
["scroll",
|
|
5718
|
-
["scrollBehavior",
|
|
5719
|
-
["overscrollBehavior",
|
|
5720
|
-
["overscrollBehaviorX",
|
|
5721
|
-
["overscrollBehaviorY",
|
|
5722
|
-
["scrollMargin",
|
|
5723
|
-
["scrollPadding",
|
|
5724
|
-
["scrollSnap",
|
|
5725
|
-
["highPriorityGesture",
|
|
5726
|
-
["simultaneousGesture",
|
|
5727
|
-
["onTap",
|
|
5728
|
-
["onScroll",
|
|
5729
|
-
["onWheel",
|
|
5730
|
-
["onInput",
|
|
5731
|
-
["onChange",
|
|
5732
|
-
["onCopy",
|
|
5733
|
-
["onCut",
|
|
5734
|
-
["onPaste",
|
|
5735
|
-
["onSelect",
|
|
5736
|
-
["onTouchStart",
|
|
5737
|
-
["onTouchMove",
|
|
5738
|
-
["onTouchEnd",
|
|
5739
|
-
["onSwipeLeft",
|
|
5740
|
-
["onSwipeRight",
|
|
5741
|
-
["disabled",
|
|
5704
|
+
["allowsHitTesting", ge],
|
|
5705
|
+
["focusable", ye],
|
|
5706
|
+
["activatable", Fn],
|
|
5707
|
+
["editable", Nn],
|
|
5708
|
+
["focused", Hn],
|
|
5709
|
+
["keyboardShortcut", Fe],
|
|
5710
|
+
["onHover", un],
|
|
5711
|
+
["onMouseEnter", bn],
|
|
5712
|
+
["onMouseLeave", Sn],
|
|
5713
|
+
["onMouseDown", wn],
|
|
5714
|
+
["onMouseUp", Cn],
|
|
5715
|
+
["onDoubleClick", xn],
|
|
5716
|
+
["onContextMenu", En],
|
|
5717
|
+
["onKeyDown", An],
|
|
5718
|
+
["onKeyUp", Ln],
|
|
5719
|
+
["onKeyPress", In],
|
|
5720
|
+
["onFocus", Vn],
|
|
5721
|
+
["onBlur", Dn],
|
|
5722
|
+
["onContinuousHover", me],
|
|
5723
|
+
["onLongPressGesture", On],
|
|
5724
|
+
["scroll", nn],
|
|
5725
|
+
["scrollBehavior", on],
|
|
5726
|
+
["overscrollBehavior", rn],
|
|
5727
|
+
["overscrollBehaviorX", sn],
|
|
5728
|
+
["overscrollBehaviorY", an],
|
|
5729
|
+
["scrollMargin", ln],
|
|
5730
|
+
["scrollPadding", cn],
|
|
5731
|
+
["scrollSnap", fn],
|
|
5732
|
+
["highPriorityGesture", Un],
|
|
5733
|
+
["simultaneousGesture", Gn],
|
|
5734
|
+
["onTap", Kn],
|
|
5735
|
+
["onScroll", Yn],
|
|
5736
|
+
["onWheel", Xn],
|
|
5737
|
+
["onInput", Zn],
|
|
5738
|
+
["onChange", qn],
|
|
5739
|
+
["onCopy", Jn],
|
|
5740
|
+
["onCut", Qn],
|
|
5741
|
+
["onPaste", eo],
|
|
5742
|
+
["onSelect", to],
|
|
5743
|
+
["onTouchStart", io],
|
|
5744
|
+
["onTouchMove", no],
|
|
5745
|
+
["onTouchEnd", oo],
|
|
5746
|
+
["onSwipeLeft", ro],
|
|
5747
|
+
["onSwipeRight", so],
|
|
5748
|
+
["disabled", ao],
|
|
5742
5749
|
// Utility
|
|
5743
|
-
["css",
|
|
5744
|
-
["cssProperty",
|
|
5745
|
-
["cssVariable",
|
|
5746
|
-
["utility",
|
|
5747
|
-
["cursor",
|
|
5748
|
-
["display",
|
|
5749
|
-
["overflowX",
|
|
5750
|
-
["overflowY",
|
|
5751
|
-
["outline",
|
|
5752
|
-
["outlineOffset",
|
|
5753
|
-
["asHTML",
|
|
5754
|
-
["navigationTitle",
|
|
5755
|
-
["navigationBarHidden",
|
|
5756
|
-
["navigationBarItems",
|
|
5757
|
-
["animation",
|
|
5758
|
-
["transform",
|
|
5759
|
-
["
|
|
5760
|
-
["transition", Ct],
|
|
5750
|
+
["css", mo],
|
|
5751
|
+
["cssProperty", go],
|
|
5752
|
+
["cssVariable", vo],
|
|
5753
|
+
["utility", lo],
|
|
5754
|
+
["cursor", co],
|
|
5755
|
+
["display", po],
|
|
5756
|
+
["overflowX", uo],
|
|
5757
|
+
["overflowY", fo],
|
|
5758
|
+
["outline", ho],
|
|
5759
|
+
["outlineOffset", yo],
|
|
5760
|
+
["asHTML", So],
|
|
5761
|
+
["navigationTitle", wo],
|
|
5762
|
+
["navigationBarHidden", Co],
|
|
5763
|
+
["navigationBarItems", xo],
|
|
5764
|
+
["animation", Lt],
|
|
5765
|
+
["transform", At],
|
|
5766
|
+
["transition", kt],
|
|
5761
5767
|
// Attributes
|
|
5762
5768
|
["aria", q],
|
|
5763
|
-
["ariaLabel",
|
|
5764
|
-
["ariaLive",
|
|
5765
|
-
["ariaDescribedBy",
|
|
5766
|
-
["ariaModal",
|
|
5767
|
-
["role",
|
|
5768
|
-
["customProperties",
|
|
5769
|
-
["customProperty",
|
|
5770
|
-
["cssVariables",
|
|
5771
|
-
["id",
|
|
5772
|
-
["elementId",
|
|
5773
|
-
["viewId",
|
|
5774
|
-
["data",
|
|
5775
|
-
["tabIndex",
|
|
5769
|
+
["ariaLabel", Io],
|
|
5770
|
+
["ariaLive", Po],
|
|
5771
|
+
["ariaDescribedBy", $o],
|
|
5772
|
+
["ariaModal", Vo],
|
|
5773
|
+
["role", Lo],
|
|
5774
|
+
["customProperties", Do],
|
|
5775
|
+
["customProperty", Ro],
|
|
5776
|
+
["cssVariables", Oo],
|
|
5777
|
+
["id", ce],
|
|
5778
|
+
["elementId", ce],
|
|
5779
|
+
["viewId", ce],
|
|
5780
|
+
["data", Mo],
|
|
5781
|
+
["tabIndex", Ao],
|
|
5776
5782
|
// Elements / pseudo elements
|
|
5777
5783
|
["before", J],
|
|
5778
|
-
["after",
|
|
5779
|
-
["pseudoElements",
|
|
5780
|
-
["iconBefore",
|
|
5781
|
-
["iconAfter",
|
|
5782
|
-
["lineBefore",
|
|
5783
|
-
["lineAfter",
|
|
5784
|
-
["quotes",
|
|
5785
|
-
["underline",
|
|
5786
|
-
["badge",
|
|
5787
|
-
["tooltip",
|
|
5788
|
-
["cornerRibbon",
|
|
5789
|
-
["spinner",
|
|
5784
|
+
["after", te],
|
|
5785
|
+
["pseudoElements", Bo],
|
|
5786
|
+
["iconBefore", _o],
|
|
5787
|
+
["iconAfter", Ho],
|
|
5788
|
+
["lineBefore", zo],
|
|
5789
|
+
["lineAfter", Fo],
|
|
5790
|
+
["quotes", No],
|
|
5791
|
+
["underline", Wo],
|
|
5792
|
+
["badge", jo],
|
|
5793
|
+
["tooltip", Uo],
|
|
5794
|
+
["cornerRibbon", Go],
|
|
5795
|
+
["spinner", Ko],
|
|
5790
5796
|
// Lifecycle
|
|
5791
|
-
["task",
|
|
5797
|
+
["task", It]
|
|
5792
5798
|
];
|
|
5793
|
-
function
|
|
5794
|
-
const s = o?.registry ??
|
|
5799
|
+
function Xo(o) {
|
|
5800
|
+
const s = o?.registry ?? Ue;
|
|
5795
5801
|
s.registerPlugin?.({
|
|
5796
5802
|
name: "@tachui/modifiers",
|
|
5797
|
-
version:
|
|
5803
|
+
version: nt,
|
|
5798
5804
|
author: "tachUI Team",
|
|
5799
5805
|
verified: !0
|
|
5800
|
-
}),
|
|
5806
|
+
}), Yo.forEach(([e, t]) => {
|
|
5801
5807
|
s.has(e) || s.register(e, t);
|
|
5802
5808
|
});
|
|
5803
5809
|
}
|
|
5804
|
-
|
|
5810
|
+
Xo();
|
|
5805
5811
|
export {
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
|
|
5810
|
-
|
|
5811
|
-
|
|
5812
|
-
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
|
|
5818
|
-
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5823
|
-
|
|
5824
|
-
|
|
5825
|
-
|
|
5826
|
-
|
|
5827
|
-
|
|
5828
|
-
|
|
5829
|
-
|
|
5830
|
-
|
|
5831
|
-
|
|
5832
|
-
|
|
5812
|
+
Qt as $,
|
|
5813
|
+
jn as A,
|
|
5814
|
+
ui as B,
|
|
5815
|
+
se as C,
|
|
5816
|
+
To as D,
|
|
5817
|
+
vn as E,
|
|
5818
|
+
Gt as F,
|
|
5819
|
+
Wn as G,
|
|
5820
|
+
en as H,
|
|
5821
|
+
Eo as I,
|
|
5822
|
+
gn as J,
|
|
5823
|
+
Bn as K,
|
|
5824
|
+
rr as L,
|
|
5825
|
+
D as M,
|
|
5826
|
+
Pn as N,
|
|
5827
|
+
zt as O,
|
|
5828
|
+
dn as P,
|
|
5829
|
+
Tn as Q,
|
|
5830
|
+
kn as R,
|
|
5831
|
+
Mn as S,
|
|
5832
|
+
Rn as T,
|
|
5833
|
+
yn as U,
|
|
5834
|
+
pn as V,
|
|
5835
|
+
hn as W,
|
|
5836
|
+
mn as X,
|
|
5837
|
+
Ji as Y,
|
|
5838
|
+
Le as Z,
|
|
5833
5839
|
O as _,
|
|
5834
|
-
|
|
5835
|
-
|
|
5840
|
+
et as a,
|
|
5841
|
+
Kr as a$,
|
|
5836
5842
|
X as a0,
|
|
5837
|
-
|
|
5843
|
+
Nt as a1,
|
|
5838
5844
|
F as a2,
|
|
5839
5845
|
G as a3,
|
|
5840
|
-
|
|
5841
|
-
|
|
5842
|
-
|
|
5843
|
-
|
|
5846
|
+
hr as a4,
|
|
5847
|
+
nt as a5,
|
|
5848
|
+
ko as a6,
|
|
5849
|
+
ae as a7,
|
|
5844
5850
|
I as a8,
|
|
5845
5851
|
K as a9,
|
|
5846
|
-
|
|
5847
|
-
|
|
5848
|
-
|
|
5849
|
-
|
|
5850
|
-
|
|
5851
|
-
|
|
5852
|
-
|
|
5853
|
-
|
|
5854
|
-
|
|
5855
|
-
|
|
5856
|
-
|
|
5857
|
-
|
|
5858
|
-
|
|
5859
|
-
|
|
5860
|
-
|
|
5861
|
-
|
|
5862
|
-
|
|
5863
|
-
|
|
5864
|
-
|
|
5865
|
-
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
|
|
5869
|
-
|
|
5870
|
-
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
|
|
5875
|
-
|
|
5876
|
-
|
|
5877
|
-
|
|
5878
|
-
|
|
5879
|
-
|
|
5880
|
-
|
|
5881
|
-
|
|
5852
|
+
Mr as aA,
|
|
5853
|
+
vi as aB,
|
|
5854
|
+
wi as aC,
|
|
5855
|
+
Vr as aD,
|
|
5856
|
+
Pr as aE,
|
|
5857
|
+
Ci as aF,
|
|
5858
|
+
Si as aG,
|
|
5859
|
+
bi as aH,
|
|
5860
|
+
$r as aI,
|
|
5861
|
+
Dr as aJ,
|
|
5862
|
+
Ti as aK,
|
|
5863
|
+
ki as aL,
|
|
5864
|
+
br as aM,
|
|
5865
|
+
mi as aN,
|
|
5866
|
+
Rr as aO,
|
|
5867
|
+
Go as aP,
|
|
5868
|
+
mo as aQ,
|
|
5869
|
+
go as aR,
|
|
5870
|
+
vo as aS,
|
|
5871
|
+
Oo as aT,
|
|
5872
|
+
ts as aU,
|
|
5873
|
+
co as aV,
|
|
5874
|
+
Nr as aW,
|
|
5875
|
+
Do as aX,
|
|
5876
|
+
Ro as aY,
|
|
5877
|
+
Mo as aZ,
|
|
5878
|
+
os as a_,
|
|
5879
|
+
Zi as aa,
|
|
5880
|
+
Oe as ab,
|
|
5881
|
+
Zt as ac,
|
|
5882
|
+
Fn as ad,
|
|
5883
|
+
te as ae,
|
|
5884
|
+
Rt as af,
|
|
5885
|
+
Ot as ag,
|
|
5886
|
+
ge as ah,
|
|
5887
|
+
Lt as ai,
|
|
5882
5888
|
q as aj,
|
|
5883
|
-
|
|
5884
|
-
|
|
5885
|
-
|
|
5886
|
-
|
|
5887
|
-
|
|
5888
|
-
|
|
5889
|
-
|
|
5890
|
-
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
|
|
5896
|
-
|
|
5889
|
+
$o as ak,
|
|
5890
|
+
Io as al,
|
|
5891
|
+
Po as am,
|
|
5892
|
+
Vo as an,
|
|
5893
|
+
So as ao,
|
|
5894
|
+
jt as ap,
|
|
5895
|
+
ci as aq,
|
|
5896
|
+
hi as ar,
|
|
5897
|
+
Tr as as,
|
|
5898
|
+
li as at,
|
|
5899
|
+
fi as au,
|
|
5900
|
+
jo as av,
|
|
5901
|
+
Yo as aw,
|
|
5902
|
+
is as ax,
|
|
5897
5903
|
J as ay,
|
|
5898
|
-
|
|
5899
|
-
|
|
5900
|
-
|
|
5901
|
-
|
|
5902
|
-
|
|
5903
|
-
|
|
5904
|
-
|
|
5905
|
-
|
|
5906
|
-
|
|
5907
|
-
|
|
5908
|
-
|
|
5909
|
-
|
|
5910
|
-
|
|
5911
|
-
|
|
5912
|
-
|
|
5913
|
-
|
|
5914
|
-
|
|
5904
|
+
pi as az,
|
|
5905
|
+
ar as b,
|
|
5906
|
+
es as b$,
|
|
5907
|
+
ao as b0,
|
|
5908
|
+
po as b1,
|
|
5909
|
+
Nn as b2,
|
|
5910
|
+
Gr as b3,
|
|
5911
|
+
Kt as b4,
|
|
5912
|
+
gr as b5,
|
|
5913
|
+
Vt as b6,
|
|
5914
|
+
_t as b7,
|
|
5915
|
+
Pt as b8,
|
|
5916
|
+
$t as b9,
|
|
5917
|
+
Fo as bA,
|
|
5918
|
+
zo as bB,
|
|
5919
|
+
Xi as bC,
|
|
5920
|
+
zi as bD,
|
|
5915
5921
|
M as bE,
|
|
5916
|
-
|
|
5917
|
-
|
|
5918
|
-
|
|
5919
|
-
|
|
5920
|
-
|
|
5921
|
-
|
|
5922
|
-
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
|
|
5932
|
-
|
|
5933
|
-
|
|
5934
|
-
|
|
5935
|
-
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
5922
|
+
pt as bF,
|
|
5923
|
+
vt as bG,
|
|
5924
|
+
mt as bH,
|
|
5925
|
+
ht as bI,
|
|
5926
|
+
mr as bJ,
|
|
5927
|
+
yt as bK,
|
|
5928
|
+
ut as bL,
|
|
5929
|
+
gt as bM,
|
|
5930
|
+
bt as bN,
|
|
5931
|
+
Tt as bO,
|
|
5932
|
+
xt as bP,
|
|
5933
|
+
Mt as bQ,
|
|
5934
|
+
Et as bR,
|
|
5935
|
+
Co as bS,
|
|
5936
|
+
xo as bT,
|
|
5937
|
+
wo as bU,
|
|
5938
|
+
Lr as bV,
|
|
5939
|
+
Ft as bW,
|
|
5940
|
+
Dn as bX,
|
|
5941
|
+
Xr as bY,
|
|
5942
|
+
qn as bZ,
|
|
5943
|
+
En as b_,
|
|
5944
|
+
Ht as ba,
|
|
5939
5945
|
P as bb,
|
|
5940
|
-
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5946
|
+
Sr as bc,
|
|
5947
|
+
ye as bd,
|
|
5948
|
+
Hn as be,
|
|
5949
|
+
Gi as bf,
|
|
5950
|
+
zr as bg,
|
|
5951
|
+
Br as bh,
|
|
5952
|
+
_r as bi,
|
|
5953
|
+
Or as bj,
|
|
5954
|
+
xi as bk,
|
|
5955
|
+
Yt as bl,
|
|
5956
|
+
Bt as bm,
|
|
5957
|
+
Ir as bn,
|
|
5952
5958
|
Z as bo,
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
|
|
5959
|
+
Ct as bp,
|
|
5960
|
+
Un as bq,
|
|
5961
|
+
tn as br,
|
|
5962
|
+
Ho as bs,
|
|
5963
|
+
_o as bt,
|
|
5964
|
+
ce as bu,
|
|
5965
|
+
Dt as bv,
|
|
5966
|
+
Fe as bw,
|
|
5967
|
+
Wr as bx,
|
|
5968
|
+
Xt as by,
|
|
5969
|
+
Fi as bz,
|
|
5964
5970
|
de as c,
|
|
5965
|
-
|
|
5966
|
-
|
|
5967
|
-
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
|
|
5971
|
-
|
|
5972
|
-
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5971
|
+
ln as c$,
|
|
5972
|
+
me as c0,
|
|
5973
|
+
Ur as c1,
|
|
5974
|
+
jr as c2,
|
|
5975
|
+
Jn as c3,
|
|
5976
|
+
Qn as c4,
|
|
5977
|
+
xn as c5,
|
|
5978
|
+
Qr as c6,
|
|
5979
|
+
Vn as c7,
|
|
5980
|
+
Yr as c8,
|
|
5981
|
+
un as c9,
|
|
5982
|
+
uo as cA,
|
|
5983
|
+
fo as cB,
|
|
5984
|
+
ri as cC,
|
|
5985
|
+
rn as cD,
|
|
5986
|
+
sn as cE,
|
|
5987
|
+
an as cF,
|
|
5982
5988
|
T as cG,
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
|
|
5989
|
-
|
|
5990
|
-
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
|
|
5994
|
-
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
|
|
6017
|
-
|
|
6018
|
-
|
|
6019
|
-
|
|
6020
|
-
|
|
6021
|
-
|
|
6022
|
-
|
|
6023
|
-
|
|
6024
|
-
|
|
6025
|
-
|
|
6026
|
-
|
|
6027
|
-
|
|
6028
|
-
|
|
6029
|
-
|
|
6030
|
-
|
|
6031
|
-
|
|
6032
|
-
|
|
6033
|
-
|
|
6034
|
-
|
|
6035
|
-
|
|
6036
|
-
|
|
6037
|
-
|
|
6038
|
-
|
|
6039
|
-
|
|
6040
|
-
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
|
|
6044
|
-
|
|
6045
|
-
|
|
6046
|
-
|
|
6047
|
-
|
|
6048
|
-
|
|
6049
|
-
|
|
6050
|
-
|
|
6051
|
-
|
|
6052
|
-
|
|
6053
|
-
|
|
6054
|
-
|
|
6055
|
-
|
|
6056
|
-
|
|
6057
|
-
|
|
6058
|
-
|
|
6059
|
-
|
|
6060
|
-
|
|
6061
|
-
|
|
6062
|
-
|
|
6063
|
-
|
|
6064
|
-
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
|
|
6068
|
-
|
|
6069
|
-
si as k,
|
|
5989
|
+
rt as cH,
|
|
5990
|
+
ft as cI,
|
|
5991
|
+
lt as cJ,
|
|
5992
|
+
st as cK,
|
|
5993
|
+
yr as cL,
|
|
5994
|
+
at as cM,
|
|
5995
|
+
ot as cN,
|
|
5996
|
+
ct as cO,
|
|
5997
|
+
dt as cP,
|
|
5998
|
+
ei as cQ,
|
|
5999
|
+
Bo as cR,
|
|
6000
|
+
No as cS,
|
|
6001
|
+
kr as cT,
|
|
6002
|
+
Xo as cU,
|
|
6003
|
+
qt as cV,
|
|
6004
|
+
Lo as cW,
|
|
6005
|
+
vr as cX,
|
|
6006
|
+
Wt as cY,
|
|
6007
|
+
nn as cZ,
|
|
6008
|
+
on as c_,
|
|
6009
|
+
Zn as ca,
|
|
6010
|
+
An as cb,
|
|
6011
|
+
Zr as cc,
|
|
6012
|
+
In as cd,
|
|
6013
|
+
qr as ce,
|
|
6014
|
+
Ln as cf,
|
|
6015
|
+
Jr as cg,
|
|
6016
|
+
On as ch,
|
|
6017
|
+
wn as ci,
|
|
6018
|
+
bn as cj,
|
|
6019
|
+
Sn as ck,
|
|
6020
|
+
Cn as cl,
|
|
6021
|
+
eo as cm,
|
|
6022
|
+
Yn as cn,
|
|
6023
|
+
to as co,
|
|
6024
|
+
ro as cp,
|
|
6025
|
+
so as cq,
|
|
6026
|
+
Kn as cr,
|
|
6027
|
+
oo as cs,
|
|
6028
|
+
no as ct,
|
|
6029
|
+
io as cu,
|
|
6030
|
+
Xn as cv,
|
|
6031
|
+
ho as cw,
|
|
6032
|
+
yo as cx,
|
|
6033
|
+
ji as cy,
|
|
6034
|
+
Qi as cz,
|
|
6035
|
+
bo as d,
|
|
6036
|
+
cn as d0,
|
|
6037
|
+
fn as d1,
|
|
6038
|
+
Gn as d2,
|
|
6039
|
+
St as d3,
|
|
6040
|
+
Ko as d4,
|
|
6041
|
+
Ar as d5,
|
|
6042
|
+
Fr as d6,
|
|
6043
|
+
Ao as d7,
|
|
6044
|
+
It as d8,
|
|
6045
|
+
_i as d9,
|
|
6046
|
+
Ui as da,
|
|
6047
|
+
Hi as db,
|
|
6048
|
+
Ni as dc,
|
|
6049
|
+
ze as dd,
|
|
6050
|
+
ns as de,
|
|
6051
|
+
Uo as df,
|
|
6052
|
+
At as dg,
|
|
6053
|
+
kt as dh,
|
|
6054
|
+
Bi as di,
|
|
6055
|
+
Wo as dj,
|
|
6056
|
+
lo as dk,
|
|
6057
|
+
Wi as dl,
|
|
6058
|
+
wt as dm,
|
|
6059
|
+
qi as dn,
|
|
6060
|
+
Hr as dp,
|
|
6061
|
+
ii as dq,
|
|
6062
|
+
xr as dr,
|
|
6063
|
+
Cr as ds,
|
|
6064
|
+
w as dt,
|
|
6065
|
+
C as du,
|
|
6066
|
+
wr as dv,
|
|
6067
|
+
Er as dw,
|
|
6068
|
+
Ne as e,
|
|
6069
|
+
Re as f,
|
|
6070
|
+
_e as g,
|
|
6071
|
+
ai as h,
|
|
6072
|
+
Be as i,
|
|
6073
|
+
Q as j,
|
|
6074
|
+
di as k,
|
|
6070
6075
|
_ as l,
|
|
6071
|
-
|
|
6072
|
-
|
|
6073
|
-
|
|
6074
|
-
|
|
6075
|
-
|
|
6076
|
-
|
|
6077
|
-
|
|
6078
|
-
|
|
6079
|
-
|
|
6080
|
-
|
|
6081
|
-
|
|
6082
|
-
|
|
6076
|
+
Ei as m,
|
|
6077
|
+
Mi as n,
|
|
6078
|
+
yi as o,
|
|
6079
|
+
gi as p,
|
|
6080
|
+
ee as q,
|
|
6081
|
+
R as r,
|
|
6082
|
+
zn as s,
|
|
6083
|
+
_n as t,
|
|
6084
|
+
He as u,
|
|
6085
|
+
cr as v,
|
|
6086
|
+
ur as w,
|
|
6087
|
+
Yi as x,
|
|
6083
6088
|
B as y,
|
|
6084
|
-
|
|
6089
|
+
$n as z
|
|
6085
6090
|
};
|