aptechka 0.5.44 → 0.7.1
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/lib/Animation-6Na1MCtM.cjs +1 -0
- package/lib/Animation-CELiTw3n.js +132 -0
- package/lib/Composed-DmLYTh1b.js +35 -0
- package/lib/Composed-Dx2hs-va.cjs +1 -0
- package/lib/{Damped-P4MkCGoY.js → Damped-Mx_FNNVz.js} +2 -5
- package/lib/Damped-loFiBsBy.cjs +1 -0
- package/lib/{Derived-kPJs5JC5.js → Derived-DlCvc0xQ.js} +1 -1
- package/lib/{Derived-B-g8dYgh.cjs → Derived-a6MDQEPY.cjs} +1 -1
- package/lib/ElementConstructor-CAZ2ra8m.cjs +1 -0
- package/lib/ElementConstructor-OYlPJf2L.js +366 -0
- package/lib/Resource-D3TQormz.cjs +1 -0
- package/lib/Resource-DIcoALGo.js +64 -0
- package/lib/{SourceManager-Q-PB-Rkh.js → SourceManager-Bz329f90.js} +1 -1
- package/lib/{SourceManager-vSlsMKUE.cjs → SourceManager-kxr5eUyL.cjs} +1 -1
- package/lib/Store-6s0YXK4o.cjs +1 -0
- package/lib/{Store-BQXXikps.js → Store-BI2xxXOA.js} +42 -42
- package/lib/Tweened-B_mclQ61.cjs +1 -0
- package/lib/Tweened-NE8M9onF.js +48 -0
- package/lib/{Viewport-DMB0dO-s.cjs → Viewport-CJeKnL5V.cjs} +1 -1
- package/lib/{Viewport-CFFhFKqX.js → Viewport-D9IL7kUQ.js} +1 -1
- package/lib/_createStore-Cf1MyeHa.cjs +1 -0
- package/lib/_createStore-Ck9bHolX.js +12 -0
- package/lib/accordion/AccordionElement.d.ts +3 -0
- package/lib/accordion/index.cjs +1 -1
- package/lib/accordion/index.js +140 -104
- package/lib/animation/Animation.d.ts +10 -18
- package/lib/animation/Damped.d.ts +3 -5
- package/lib/animation/Tweened.d.ts +0 -2
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.js +3 -3
- package/lib/attribute/index.cjs +1 -1
- package/lib/attribute/index.js +31 -31
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.js +3 -3
- package/lib/checkbox/index.cjs +1 -1
- package/lib/checkbox/index.js +3 -3
- package/lib/class-linked-status/index.cjs +1 -1
- package/lib/class-linked-status/index.js +1 -1
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +3 -3
- package/lib/counter/index.d.ts +8 -0
- package/lib/{createStylesheet-DBCEbDjI.js → createStylesheet-CR_yi5tp.js} +1 -1
- package/lib/{createStylesheet-CqHU9_qv.cjs → createStylesheet-p23sZ7Ey.cjs} +1 -1
- package/lib/css-property/index.cjs +1 -1
- package/lib/css-property/index.d.ts +1 -0
- package/lib/css-property/index.js +36 -32
- package/lib/dev/index.cjs +1 -1
- package/lib/dev/index.js +1 -1
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +1 -1
- package/lib/element-constructor/index.cjs +1 -1
- package/lib/element-constructor/index.js +114 -113
- package/lib/en3/core/En3Raycaster.d.ts +20 -0
- package/lib/en3/core/En3View.d.ts +1 -1
- package/lib/en3/core/en3.d.ts +5 -1
- package/lib/en3/helpers/En3Controls.d.ts +5 -0
- package/lib/en3/helpers/En3GridHelper.d.ts +8 -0
- package/lib/en3/helpers/En3Object3dManager.d.ts +12 -0
- package/lib/en3/helpers/En3OrbitControls.d.ts +8 -0
- package/lib/en3/helpers/En3TransformControls.d.ts +8 -0
- package/lib/en3/helpers/index.cjs +1 -0
- package/lib/en3/helpers/index.d.ts +2 -0
- package/lib/en3/helpers/index.js +1165 -0
- package/lib/en3/index.cjs +1 -213
- package/lib/en3/index.d.ts +1 -19
- package/lib/en3/index.js +4 -3305
- package/lib/en3/libs/index.d.ts +1 -0
- package/lib/en3/loaders/{en3GLTFLoader.d.ts → En3GLTFLoader.d.ts} +2 -4
- package/lib/en3/loaders/En3TextureLoader.d.ts +8 -0
- package/lib/en3/loaders/index.cjs +1 -0
- package/lib/en3/loaders/index.d.ts +3 -0
- package/lib/en3/loaders/index.js +1757 -0
- package/lib/en3/loaders/loaders.d.ts +13 -0
- package/lib/en3/misc/index.cjs +10 -0
- package/lib/en3/misc/index.d.ts +2 -0
- package/lib/en3/misc/index.js +115 -0
- package/lib/en3/objects/En3Clip.d.ts +1 -1
- package/lib/en3/objects/En3GLTF.d.ts +2 -1
- package/lib/en3/objects/En3ImageLike.d.ts +2 -1
- package/lib/en3/objects/En3SourceConsumer.d.ts +1 -1
- package/lib/en3/objects/fluid/index.d.ts +0 -3
- package/lib/en3/objects/index.d.ts +7 -0
- package/lib/en3/utils/index.cjs +1 -0
- package/lib/en3/utils/index.d.ts +5 -0
- package/lib/en3/utils/index.js +43 -0
- package/lib/en3-C4mzaF6q.cjs +8 -0
- package/lib/en3-hbkN1OPu.js +343 -0
- package/lib/globals-DMjysUXI.js +8 -0
- package/lib/globals-bYKki-b9.cjs +1 -0
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +1 -1
- package/lib/{index-BN9X-l9M.js → index-BAH_fO2N.js} +3 -3
- package/lib/{index-BbgmbQ-5.cjs → index-D1LQUR-R.cjs} +1 -1
- package/lib/instantiate-D19Uvc31.js +125 -0
- package/lib/instantiate-Db5gGSYG.cjs +1 -0
- package/lib/jsx/ComponentElement.d.ts +18 -0
- package/lib/jsx/globals.d.ts +13 -0
- package/lib/jsx/h.d.ts +7 -0
- package/lib/jsx/hooks/basic/_createStore.d.ts +4 -0
- package/lib/jsx/hooks/basic/attachInternals.d.ts +1 -0
- package/lib/jsx/hooks/basic/attachShadow.d.ts +1 -0
- package/lib/jsx/hooks/basic/attachStylesheet.d.ts +3 -0
- package/lib/jsx/hooks/basic/createContext.d.ts +2 -0
- package/lib/jsx/hooks/basic/onConnect.d.ts +3 -0
- package/lib/jsx/hooks/basic/onDisconnect.d.ts +3 -0
- package/lib/jsx/hooks/onAnimationFrame.cjs +1 -0
- package/lib/jsx/hooks/onAnimationFrame.d.ts +6 -0
- package/lib/jsx/hooks/onAnimationFrame.js +22 -0
- package/lib/jsx/hooks/onElementResize.cjs +1 -0
- package/lib/jsx/hooks/onElementResize.d.ts +5 -0
- package/lib/jsx/hooks/onElementResize.js +11 -0
- package/lib/jsx/hooks/onIntersection.cjs +1 -0
- package/lib/jsx/hooks/onIntersection.d.ts +5 -0
- package/lib/jsx/hooks/onIntersection.js +11 -0
- package/lib/jsx/hooks/onWindowResize.cjs +1 -0
- package/lib/jsx/hooks/onWindowResize.d.ts +3 -0
- package/lib/jsx/hooks/onWindowResize.js +8 -0
- package/lib/jsx/hooks/store/createArrayStore.d.ts +3 -0
- package/lib/jsx/hooks/store/createComposed.d.ts +3 -0
- package/lib/jsx/hooks/store/createDerived.d.ts +3 -0
- package/lib/jsx/hooks/store/createDerivedArray.d.ts +3 -0
- package/lib/jsx/hooks/store/createDerivedComponent.d.ts +3 -0
- package/lib/jsx/hooks/store/createDerivedComponents.d.ts +3 -0
- package/lib/jsx/hooks/store/createResource.d.ts +3 -0
- package/lib/jsx/hooks/store/createStore.d.ts +3 -0
- package/lib/jsx/hooks/store/index.cjs +1 -0
- package/lib/jsx/hooks/store/index.d.ts +7 -0
- package/lib/jsx/hooks/store/index.js +49 -0
- package/lib/jsx/hooks/watchAttribute.cjs +1 -0
- package/lib/jsx/hooks/watchAttribute.d.ts +6 -0
- package/lib/jsx/hooks/watchAttribute.js +17 -0
- package/lib/jsx/hooks/watchCSSProperty.cjs +1 -0
- package/lib/jsx/hooks/watchCSSProperty.d.ts +7 -0
- package/lib/jsx/hooks/watchCSSProperty.js +17 -0
- package/lib/jsx/index.cjs +1 -0
- package/lib/jsx/index.d.ts +13 -0
- package/lib/jsx/index.js +91 -0
- package/lib/jsx/instantiate.d.ts +5 -0
- package/lib/jsx/register.d.ts +1 -0
- package/lib/jsx/render.d.ts +6 -0
- package/lib/jsx/type.d.ts +188 -0
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.d.ts +2 -0
- package/lib/ladder/index.js +84 -66
- package/lib/layout-box/index.cjs +1 -1
- package/lib/layout-box/index.d.ts +9 -0
- package/lib/layout-box/index.js +190 -164
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +1 -1
- package/lib/modal/index.cjs +1 -1
- package/lib/modal/index.js +7 -7
- package/lib/morph/Morph.d.ts +2 -2
- package/lib/morph/index.cjs +1 -1
- package/lib/morph/index.d.ts +1 -1
- package/lib/morph/index.js +135 -143
- package/lib/notifier/index.d.ts +2 -2
- package/lib/notifier/index.js +3 -1
- package/lib/onConnect-DGP866cj.cjs +1 -0
- package/lib/onConnect-y5DrxJ9P.js +7 -0
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +2 -2
- package/lib/polyfills-CM4SCDTt.cjs +1 -0
- package/lib/polyfills-X6KXuHg-.js +33 -0
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +2 -2
- package/lib/router/Router.d.ts +11 -3
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.d.ts +1 -1
- package/lib/router/index.js +185 -165
- package/lib/scroll/ScrollElement.d.ts +2 -19
- package/lib/scroll/ScrollSection.d.ts +23 -0
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +81 -77
- package/lib/select/index.cjs +1 -1
- package/lib/select/index.js +1 -1
- package/lib/sequence/index.cjs +1 -1
- package/lib/sequence/index.js +1 -1
- package/lib/source/index.cjs +1 -1
- package/lib/source/index.js +2 -2
- package/lib/store/ArrayStore.d.ts +21 -0
- package/lib/store/Store.d.ts +1 -7
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.d.ts +2 -2
- package/lib/store/index.js +65 -139
- package/lib/tags-BqJKcIve.js +485 -0
- package/lib/tags-ld5jemJw.cjs +1 -0
- package/lib/theme/index.cjs +1 -1
- package/lib/theme/index.js +2 -2
- package/lib/tweaker/TweakerBooleanManagerElement.d.ts +1 -1
- package/lib/tweaker/TweakerColorManagerElement.d.ts +1 -1
- package/lib/tweaker/TweakerFolderElement.d.ts +2 -0
- package/lib/tweaker/TweakerLinkManagerElement.d.ts +1 -1
- package/lib/tweaker/TweakerNumberManagerElement.d.ts +4 -8
- package/lib/tweaker/TweakerSelectManagerElement.d.ts +1 -1
- package/lib/tweaker/TweakerStoreManagerElement.d.ts +7 -7
- package/lib/tweaker/TweakerStringManagerElement.d.ts +3 -5
- package/lib/tweaker/index.cjs +3 -3
- package/lib/tweaker/index.js +535 -412
- package/lib/tweaker/tweakerManagerConstructors.d.ts +2 -2
- package/lib/tweaker/tweakerStorage.d.ts +8 -1
- package/lib/url-C3dWnJQg.cjs +1 -0
- package/lib/url-DMNfW7uN.js +22 -0
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +39 -34
- package/lib/utils/number.d.ts +1 -0
- package/lib/utils/url.d.ts +9 -0
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +1 -1
- package/package.json +107 -3
- package/lib/Animation-DDHjrbtL.cjs +0 -1
- package/lib/Animation-Dq_05jlR.js +0 -217
- package/lib/DRACOLoader-C2CFpMGS.cjs +0 -2
- package/lib/DRACOLoader-D2KY2dku.js +0 -241
- package/lib/Damped-l0mnlhar.cjs +0 -1
- package/lib/KTX2Loader-DdUl1XiY.cjs +0 -2
- package/lib/KTX2Loader-DqpAffDj.js +0 -536
- package/lib/Store-C-1ruEIm.cjs +0 -1
- package/lib/Tweened-CwDC2zl8.js +0 -51
- package/lib/Tweened-DIt9j9B-.cjs +0 -1
- package/lib/animation/AnimationLink.d.ts +0 -13
- package/lib/en3/loaders/en3TextureLoader.d.ts +0 -3
- package/lib/en3/test/En3HTML.d.ts +0 -10
- package/lib/polyfills-BA-CL_HF.js +0 -27
- package/lib/polyfills-DHs2SNbz.cjs +0 -1
- package/lib/store/CumulativeResource.d.ts +0 -13
- package/lib/tags-CMPg9ETZ.js +0 -848
- package/lib/tags-Djb6mb1o.cjs +0 -1
- package/lib/tweaker/TweakerRangeManagerElement.d.ts +0 -11
- /package/lib/en3/{loaders → core}/en3Cache.d.ts +0 -0
- /package/lib/{MeshoptDecoder-CMeN3oU0.cjs → en3/libs/index.cjs} +0 -0
- /package/lib/{MeshoptDecoder-6XfTpOG2.js → en3/libs/index.js} +0 -0
- /package/lib/en3/{test → misc}/En3ModifiedMaterial.d.ts +0 -0
- /package/lib/en3/{attachments → misc}/En3SourceManager.d.ts +0 -0
package/lib/accordion/index.js
CHANGED
|
@@ -1,163 +1,199 @@
|
|
|
1
|
-
var
|
|
2
|
-
if (!
|
|
1
|
+
var D = (i, t, s) => {
|
|
2
|
+
if (!t.has(i))
|
|
3
3
|
throw TypeError("Cannot " + s);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
if (
|
|
5
|
+
var e = (i, t, s) => (D(i, t, "read from private field"), s ? s.call(i) : t.get(i)), h = (i, t, s) => {
|
|
6
|
+
if (t.has(i))
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
|
-
|
|
9
|
-
},
|
|
10
|
-
var
|
|
11
|
-
import { CustomElement as
|
|
12
|
-
import { Attribute as
|
|
13
|
-
import { i as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
8
|
+
t instanceof WeakSet ? t.add(i) : t.set(i, s);
|
|
9
|
+
}, d = (i, t, s, a) => (D(i, t, "write to private field"), a ? a.call(i, s) : t.set(i, s), s);
|
|
10
|
+
var n = (i, t, s) => (D(i, t, "access private method"), s);
|
|
11
|
+
import { CustomElement as V, define as X } from "../custom-element/index.js";
|
|
12
|
+
import { Attribute as F } from "../attribute/index.js";
|
|
13
|
+
import { i as Y } from "../browser-0zX67oeU.js";
|
|
14
|
+
import { a as Z } from "../dom-0S_WDL4g.js";
|
|
15
|
+
import { d as j } from "../events-_C2CztxR.js";
|
|
16
|
+
import { a as ee } from "../style-CklEF62D.js";
|
|
17
|
+
var te = Object.defineProperty, ie = Object.getOwnPropertyDescriptor, se = (i, t, s, a) => {
|
|
18
|
+
for (var E = a > 1 ? void 0 : a ? ie(t, s) : t, R = i.length - 1, P; R >= 0; R--)
|
|
19
|
+
(P = i[R]) && (E = (a ? P(t, s, E) : P(E)) || E);
|
|
20
|
+
return a && E && te(t, s, E), E;
|
|
21
|
+
}, Q = (i, t, s) => {
|
|
22
|
+
if (!t.has(i))
|
|
22
23
|
throw TypeError("Cannot " + s);
|
|
23
|
-
},
|
|
24
|
-
if (
|
|
24
|
+
}, c = (i, t, s) => (Q(i, t, "read from private field"), s ? s.call(i) : t.get(i)), A = (i, t, s) => {
|
|
25
|
+
if (t.has(i))
|
|
25
26
|
throw TypeError("Cannot add the same private member more than once");
|
|
26
|
-
|
|
27
|
-
},
|
|
28
|
-
class
|
|
29
|
-
constructor(
|
|
30
|
-
h(this,
|
|
31
|
-
h(this,
|
|
32
|
-
h(this,
|
|
33
|
-
h(this,
|
|
34
|
-
h(this,
|
|
27
|
+
t instanceof WeakSet ? t.add(i) : t.set(i, s);
|
|
28
|
+
}, N = (i, t, s, a) => (Q(i, t, "write to private field"), t.set(i, s), s), B, G, m, y, M, $, o, r, v, l, L, O, T, u, x, W, U, w, S, _, C, H, z, f, g, p, b, k, q, I;
|
|
29
|
+
class J {
|
|
30
|
+
constructor(t, s) {
|
|
31
|
+
h(this, W);
|
|
32
|
+
h(this, w);
|
|
33
|
+
h(this, f);
|
|
34
|
+
h(this, p);
|
|
35
|
+
h(this, k);
|
|
36
|
+
h(this, o, null);
|
|
35
37
|
h(this, r, null);
|
|
36
|
-
h(this,
|
|
37
|
-
h(this,
|
|
38
|
-
h(this,
|
|
39
|
-
h(this,
|
|
40
|
-
h(this,
|
|
38
|
+
h(this, v, null);
|
|
39
|
+
h(this, l, null);
|
|
40
|
+
h(this, L, null);
|
|
41
|
+
h(this, O, !1);
|
|
42
|
+
h(this, T, void 0);
|
|
41
43
|
h(this, u, !1);
|
|
42
|
-
h(this,
|
|
43
|
-
|
|
44
|
+
h(this, x, []);
|
|
45
|
+
h(this, _, () => {
|
|
46
|
+
e(this, u) ? this.close() : this.open();
|
|
44
47
|
});
|
|
45
48
|
h(this, C, () => {
|
|
46
|
-
|
|
49
|
+
e(this, u) && (n(this, f, g).call(this, 0, !0), n(this, f, g).call(this, e(this, w, S)));
|
|
47
50
|
});
|
|
48
51
|
h(this, H, () => {
|
|
49
|
-
|
|
52
|
+
n(this, p, b).call(this, "size-change");
|
|
50
53
|
});
|
|
51
|
-
h(this,
|
|
52
|
-
|
|
54
|
+
h(this, z, (t) => {
|
|
55
|
+
e(this, u) && (n(this, f, g).call(this, 0, !0), n(this, f, g).call(this, e(this, w, S)), e(this, x).forEach((s) => {
|
|
56
|
+
s.element.scroll({
|
|
57
|
+
left: e(this, o).axisAttribute.current === "x" ? s.scroll : 0,
|
|
58
|
+
top: e(this, o).axisAttribute.current === "y" ? s.scroll : 0
|
|
59
|
+
});
|
|
60
|
+
}));
|
|
61
|
+
});
|
|
62
|
+
h(this, I, () => {
|
|
63
|
+
const t = Z(e(this, r));
|
|
64
|
+
d(this, x, t.map((s) => ({
|
|
65
|
+
element: s,
|
|
66
|
+
scroll: e(this, o).axisAttribute.current === "y" ? s.scrollTop : s.scrollLeft
|
|
67
|
+
})));
|
|
53
68
|
});
|
|
54
|
-
s.firstElementChild instanceof HTMLElement && s.lastElementChild instanceof HTMLElement ? (
|
|
69
|
+
s.firstElementChild instanceof HTMLElement && s.lastElementChild instanceof HTMLElement ? (d(this, o, t), d(this, r, s), d(this, v, s.firstElementChild), d(this, l, s.lastElementChild), e(this, v).style.cursor = "default", e(this, l).style.overflow = "hidden", e(this, o).axisAttribute.current === "y" ? e(this, l).style.height = "0px" : e(this, l).style.width = "0px", d(this, L, new ResizeObserver(e(this, H))), addEventListener("resize", e(this, C)), e(this, v).addEventListener("click", e(this, _)), e(this, r).addEventListener(
|
|
55
70
|
"sizeChange",
|
|
56
|
-
|
|
57
|
-
),
|
|
71
|
+
e(this, z)
|
|
72
|
+
), e(this, r).addEventListener(
|
|
73
|
+
"beforeAccordionItemToggle",
|
|
74
|
+
e(this, I)
|
|
75
|
+
), e(this, r).hasAttribute("data-opened") && this.open({ skipTransition: !0 })) : t.removeItem(e(this, r));
|
|
58
76
|
}
|
|
59
77
|
get element() {
|
|
60
|
-
return
|
|
78
|
+
return e(this, r);
|
|
61
79
|
}
|
|
62
80
|
destroy() {
|
|
63
|
-
|
|
81
|
+
e(this, v) && (e(this, r).classList.remove("opened", "triggered"), e(this, v).style.cursor = "", n(this, f, g).call(this, void 0), e(this, L).disconnect(), removeEventListener("resize", e(this, C)), e(this, v).removeEventListener("click", e(this, _)), e(this, r).removeEventListener(
|
|
64
82
|
"sizeChange",
|
|
65
|
-
|
|
66
|
-
),
|
|
83
|
+
e(this, z)
|
|
84
|
+
), e(this, r).removeEventListener(
|
|
85
|
+
"beforeAccordionItemToggle",
|
|
86
|
+
e(this, I)
|
|
87
|
+
), clearTimeout(e(this, T)));
|
|
67
88
|
}
|
|
68
|
-
open(
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}, 0),
|
|
89
|
+
open(t) {
|
|
90
|
+
n(this, p, b).call(this, "before-toggle"), t != null && t.skipTransition && n(this, k, q).call(this), e(this, o).multipleAttribute.current || e(this, o).closeAll({ exclude: e(this, r) }), e(this, O) || e(this, L).observe(e(this, l)), d(this, u, !0), clearTimeout(e(this, T)), e(this, r).classList.add("triggered"), n(this, f, g).call(this, e(this, w, S)), setTimeout(() => {
|
|
91
|
+
e(this, r).classList.add("opened");
|
|
92
|
+
}, 0), n(this, p, b).call(this, "toggle");
|
|
72
93
|
}
|
|
73
|
-
close(
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
},
|
|
94
|
+
close(t) {
|
|
95
|
+
n(this, p, b).call(this, "before-toggle"), t != null && t.skipTransition && n(this, k, q).call(this), d(this, u, !1), e(this, r).classList.remove("opened"), n(this, f, g).call(this, 0), d(this, T, setTimeout(() => {
|
|
96
|
+
e(this, r).classList.remove("triggered");
|
|
97
|
+
}, ee(e(this, l)))), n(this, p, b).call(this, "toggle");
|
|
77
98
|
}
|
|
78
99
|
}
|
|
79
|
-
|
|
80
|
-
return
|
|
81
|
-
},
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
100
|
+
o = new WeakMap(), r = new WeakMap(), v = new WeakMap(), l = new WeakMap(), L = new WeakMap(), O = new WeakMap(), T = new WeakMap(), u = new WeakMap(), x = new WeakMap(), W = new WeakSet(), U = function() {
|
|
101
|
+
return e(this, r).parentElement || e(this, r).getRootNode();
|
|
102
|
+
}, w = new WeakSet(), S = function() {
|
|
103
|
+
return e(this, o).axisAttribute.current === "x" ? e(this, l).scrollWidth : e(this, l).scrollHeight;
|
|
104
|
+
}, _ = new WeakMap(), C = new WeakMap(), H = new WeakMap(), z = new WeakMap(), f = new WeakSet(), g = function(t, s = !1) {
|
|
105
|
+
s && (e(this, l).style.transition = "all 0s", setTimeout(() => {
|
|
106
|
+
e(this, l).style.transition = "";
|
|
107
|
+
}));
|
|
108
|
+
const a = e(this, o).axisAttribute.current === "x" ? "width" : "height";
|
|
109
|
+
t != null ? e(this, l).style[a] = `${t}px` : e(this, l).style[a] = "";
|
|
110
|
+
}, p = new WeakSet(), b = function(t) {
|
|
111
|
+
t === "before-toggle" ? e(this, r).dispatchEvent(
|
|
112
|
+
new CustomEvent(
|
|
113
|
+
"beforeAccordionItemToggle",
|
|
114
|
+
{
|
|
115
|
+
bubbles: !0,
|
|
116
|
+
composed: !0,
|
|
117
|
+
detail: {
|
|
118
|
+
opened: e(this, u)
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
)
|
|
122
|
+
) : t === "toggle" ? e(this, r).dispatchEvent(
|
|
87
123
|
new CustomEvent("accordionItemToggle", {
|
|
88
124
|
bubbles: !0,
|
|
89
125
|
composed: !0,
|
|
90
126
|
detail: {
|
|
91
|
-
opened:
|
|
127
|
+
opened: e(this, u)
|
|
92
128
|
}
|
|
93
129
|
})
|
|
94
|
-
) :
|
|
95
|
-
},
|
|
96
|
-
|
|
97
|
-
|
|
130
|
+
) : t === "size-change" && j(e(this, W, U));
|
|
131
|
+
}, k = new WeakSet(), q = function() {
|
|
132
|
+
e(this, l).style.transition = "all 0s", setTimeout(() => {
|
|
133
|
+
e(this, l).style.transition = "";
|
|
98
134
|
}, 50);
|
|
99
|
-
};
|
|
100
|
-
let
|
|
135
|
+
}, I = new WeakMap();
|
|
136
|
+
let K = class extends V {
|
|
101
137
|
constructor() {
|
|
102
|
-
super(),
|
|
103
|
-
|
|
104
|
-
|
|
138
|
+
super(), A(this, M), A(this, B, new F(this, "axis", "y")), A(this, G, new F(this, "multiple", !1)), A(this, m, []), A(this, y, null), Y && N(this, y, new MutationObserver((i) => {
|
|
139
|
+
i.forEach((t) => {
|
|
140
|
+
t.removedNodes.forEach((s) => {
|
|
105
141
|
s instanceof HTMLElement && this.removeItem(s);
|
|
106
|
-
}),
|
|
142
|
+
}), t.addedNodes.forEach((s) => {
|
|
107
143
|
s instanceof HTMLElement && this.createItem(s);
|
|
108
144
|
});
|
|
109
145
|
});
|
|
110
146
|
}));
|
|
111
147
|
}
|
|
112
148
|
get axisAttribute() {
|
|
113
|
-
return
|
|
149
|
+
return c(this, B);
|
|
114
150
|
}
|
|
115
151
|
get multipleAttribute() {
|
|
116
|
-
return
|
|
152
|
+
return c(this, G);
|
|
117
153
|
}
|
|
118
|
-
createItem(
|
|
119
|
-
|
|
154
|
+
createItem(i) {
|
|
155
|
+
c(this, m).find((t) => t.element === i) || c(this, m).push(new J(this, i));
|
|
120
156
|
}
|
|
121
|
-
removeItem(
|
|
122
|
-
|
|
123
|
-
if (
|
|
157
|
+
removeItem(i) {
|
|
158
|
+
N(this, m, c(this, m).filter((t) => {
|
|
159
|
+
if (t.element !== i)
|
|
124
160
|
return !0;
|
|
125
|
-
|
|
161
|
+
t.destroy();
|
|
126
162
|
}));
|
|
127
163
|
}
|
|
128
|
-
closeAll(
|
|
129
|
-
|
|
130
|
-
(
|
|
164
|
+
closeAll(i) {
|
|
165
|
+
c(this, m).forEach((t) => {
|
|
166
|
+
(i == null ? void 0 : i.exclude) !== t.element && t.close(i);
|
|
131
167
|
});
|
|
132
168
|
}
|
|
133
|
-
openAll(
|
|
134
|
-
|
|
135
|
-
(
|
|
169
|
+
openAll(i) {
|
|
170
|
+
c(this, m).forEach((t) => {
|
|
171
|
+
(i == null ? void 0 : i.exclude) !== t.element && t.open(i);
|
|
136
172
|
});
|
|
137
173
|
}
|
|
138
174
|
connectedCallback() {
|
|
139
|
-
|
|
175
|
+
c(this, y).observe(c(this, M, $), {
|
|
140
176
|
childList: !0
|
|
141
|
-
}),
|
|
142
|
-
if (
|
|
143
|
-
return new
|
|
144
|
-
}).filter((
|
|
177
|
+
}), N(this, m, [...c(this, M, $).children].map((i) => {
|
|
178
|
+
if (i instanceof HTMLElement)
|
|
179
|
+
return new J(this, i);
|
|
180
|
+
}).filter((i) => !!i));
|
|
145
181
|
}
|
|
146
182
|
disconnectedCallback() {
|
|
147
|
-
|
|
183
|
+
c(this, y).disconnect();
|
|
148
184
|
}
|
|
149
185
|
};
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
186
|
+
B = /* @__PURE__ */ new WeakMap();
|
|
187
|
+
G = /* @__PURE__ */ new WeakMap();
|
|
188
|
+
m = /* @__PURE__ */ new WeakMap();
|
|
189
|
+
y = /* @__PURE__ */ new WeakMap();
|
|
190
|
+
M = /* @__PURE__ */ new WeakSet();
|
|
191
|
+
$ = function() {
|
|
156
192
|
return this.shadowRoot ? this.shadowRoot : this;
|
|
157
193
|
};
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
],
|
|
194
|
+
K = se([
|
|
195
|
+
X("e-accordion")
|
|
196
|
+
], K);
|
|
161
197
|
export {
|
|
162
|
-
|
|
198
|
+
K as AccordionElement
|
|
163
199
|
};
|
|
@@ -1,25 +1,23 @@
|
|
|
1
1
|
import { Store, StoreEntry, StoreOptions } from '../store';
|
|
2
2
|
import { TickerAddOptions, TickerCallbackEntry } from '../ticker';
|
|
3
|
-
import { AnimationLink, AnimationLinkOptions } from './AnimationLink';
|
|
4
3
|
|
|
5
4
|
export interface AnimationEntry extends StoreEntry<number> {
|
|
6
|
-
|
|
5
|
+
delta: number;
|
|
7
6
|
distance: number;
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
deltaProgress: number;
|
|
8
|
+
distanceProgress: number;
|
|
10
9
|
direction: number;
|
|
11
10
|
}
|
|
12
11
|
export interface AnimationOptions extends TickerAddOptions {
|
|
13
12
|
min?: number;
|
|
14
13
|
max?: number;
|
|
15
14
|
equalize?: boolean;
|
|
15
|
+
restart?: boolean;
|
|
16
16
|
}
|
|
17
17
|
export type AnimationConstructorOptions<Options extends AnimationOptions> = StoreOptions<number, 'number'> & Options;
|
|
18
18
|
export declare abstract class Animation<Entry extends AnimationEntry = AnimationEntry, Options extends AnimationOptions = AnimationOptions> extends Store<number, 'number', Entry> {
|
|
19
19
|
#private;
|
|
20
20
|
constructor(initial?: number, options?: StoreOptions<number, 'number'>);
|
|
21
|
-
get linked(): Set<AnimationLink<AnimationLinkOptions>>;
|
|
22
|
-
get animationLink(): AnimationLink<AnimationLinkOptions> | null;
|
|
23
21
|
get direction(): number;
|
|
24
22
|
get target(): number;
|
|
25
23
|
get min(): number;
|
|
@@ -27,22 +25,19 @@ export declare abstract class Animation<Entry extends AnimationEntry = Animation
|
|
|
27
25
|
get max(): number;
|
|
28
26
|
set max(value: number);
|
|
29
27
|
get from(): number;
|
|
30
|
-
get to(): number;
|
|
31
28
|
get isRunning(): Store<boolean, keyof import('../store').StoreManagers, StoreEntry<boolean>>;
|
|
32
|
-
get
|
|
29
|
+
get delta(): number;
|
|
30
|
+
get deltaProgress(): number;
|
|
33
31
|
get distance(): number;
|
|
34
|
-
get
|
|
35
|
-
get progress(): number;
|
|
32
|
+
get distanceProgress(): number;
|
|
36
33
|
get entry(): Entry & {
|
|
37
34
|
from: number;
|
|
38
|
-
|
|
39
|
-
currentDistance: number;
|
|
35
|
+
delta: number;
|
|
40
36
|
distance: number;
|
|
41
37
|
direction: number;
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
deltaProgress: number;
|
|
39
|
+
distanceProgress: number;
|
|
44
40
|
};
|
|
45
|
-
setTarget(value: number): void;
|
|
46
41
|
set(value: number, options?: Options): void;
|
|
47
42
|
shift(value: number, options?: Options): void;
|
|
48
43
|
reset(): void;
|
|
@@ -50,9 +45,6 @@ export declare abstract class Animation<Entry extends AnimationEntry = Animation
|
|
|
50
45
|
listenAnimationFrame(): void;
|
|
51
46
|
unlistenAnimationFrame(): void;
|
|
52
47
|
updateOptions(options?: AnimationOptions): void;
|
|
53
|
-
linkTo<A extends Animation<any>>(animation: A, startValue: number, setValue: number, options?: Parameters<A['updateOptions']>[0] & AnimationLinkOptions): void;
|
|
54
|
-
unlink(): void;
|
|
55
48
|
protected start(): void;
|
|
56
49
|
protected abstract handleAnimationFrame(e: TickerCallbackEntry): void;
|
|
57
|
-
protected abstract updateManually(...args: any[]): any;
|
|
58
50
|
}
|
|
@@ -21,17 +21,15 @@ export declare class Damped extends Animation<DampedEntry, DampedOptions> {
|
|
|
21
21
|
get entry(): {
|
|
22
22
|
velocity: number;
|
|
23
23
|
speed: number;
|
|
24
|
-
|
|
24
|
+
delta: number;
|
|
25
25
|
distance: number;
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
deltaProgress: number;
|
|
27
|
+
distanceProgress: number;
|
|
28
28
|
direction: number;
|
|
29
29
|
current: number;
|
|
30
30
|
previous: number | undefined;
|
|
31
31
|
from: number;
|
|
32
|
-
to: number;
|
|
33
32
|
};
|
|
34
33
|
updateOptions(options?: DampedOptions): void;
|
|
35
|
-
updateManually(value: number): void;
|
|
36
34
|
protected handleAnimationFrame(e: TickerCallbackEntry): void;
|
|
37
35
|
}
|
|
@@ -5,13 +5,11 @@ import { Animation, AnimationConstructorOptions, AnimationEntry, AnimationOption
|
|
|
5
5
|
export interface TweenedOptions extends AnimationOptions {
|
|
6
6
|
easing?: EasingFunction;
|
|
7
7
|
duration?: number;
|
|
8
|
-
restart?: boolean;
|
|
9
8
|
}
|
|
10
9
|
export declare class Tweened extends Animation<AnimationEntry, TweenedOptions> {
|
|
11
10
|
#private;
|
|
12
11
|
constructor(initial?: number, options?: AnimationConstructorOptions<TweenedOptions>);
|
|
13
12
|
updateOptions(options?: TweenedOptions): void;
|
|
14
|
-
updateManually(elapsed: number): number;
|
|
15
13
|
protected handleAnimationFrame(e: TickerCallbackEntry): void;
|
|
16
14
|
protected start(): void;
|
|
17
15
|
}
|
package/lib/animation/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Animation-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Animation-6Na1MCtM.cjs"),n=require("../Damped-loFiBsBy.cjs"),i=require("../Tweened-B_mclQ61.cjs");exports.Animation=e.Animation;exports.Damped=n.Damped;exports.Tweened=i.Tweened;
|
package/lib/animation/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as r } from "../Animation-
|
|
2
|
-
import { D as m } from "../Damped-
|
|
3
|
-
import { T as t } from "../Tweened-
|
|
1
|
+
import { A as r } from "../Animation-CELiTw3n.js";
|
|
2
|
+
import { D as m } from "../Damped-Mx_FNNVz.js";
|
|
3
|
+
import { T as t } from "../Tweened-NE8M9onF.js";
|
|
4
4
|
export {
|
|
5
5
|
r as Animation,
|
|
6
6
|
m as Damped,
|
package/lib/attribute/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var v=(t,s,e)=>{if(!s.has(t))throw TypeError("Cannot "+e)};var r=(t,s,e)=>(v(t,s,"read from private field"),e?e.call(t):s.get(t)),
|
|
1
|
+
"use strict";var v=(t,s,e)=>{if(!s.has(t))throw TypeError("Cannot "+e)};var r=(t,s,e)=>(v(t,s,"read from private field"),e?e.call(t):s.get(t)),c=(t,s,e)=>{if(s.has(t))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(t):s.set(t,e)},h=(t,s,e,a)=>(v(t,s,"write to private field"),a?a.call(t,e):s.set(t,e),e);var d=(t,s,e)=>(v(t,s,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("../Store-6s0YXK4o.cjs"),S=require("../attributes-Bf2svn4j.cjs"),q=require("../browser-CpzFX2xg.cjs"),p=require("../dom-JBOkFLTh.cjs");var i,u,n,b,o,m;class w extends A.Store{constructor(e,a,y,l){super(y,l);c(this,o);c(this,i,null);c(this,u,void 0);c(this,n,null);c(this,b,!1);h(this,u,a),q.isBrowser&&(h(this,i,p.getElement(e)),h(this,n,new MutationObserver(f=>{f.forEach(g=>{g.type==="attributes"&&g.attributeName===r(this,u)&&d(this,o,m).call(this)})})),l!=null&&l.sync&&this.subscribe(f=>{r(this,i).setAttribute(r(this,u),f.current.toString())}))}subscribe(e){return this.subscribers.size||this.observe(),super.subscribe(e)}unsubscribe(e){super.unsubscribe(e),this.subscribers.size||this.unobserve()}observe(){r(this,b)||(h(this,b,!0),r(this,n).observe(r(this,i),{attributes:!0}),d(this,o,m).call(this))}unobserve(){r(this,b)&&(h(this,b,!1),r(this,n).disconnect())}close(){super.close(),this.unobserve()}}i=new WeakMap,u=new WeakMap,n=new WeakMap,b=new WeakMap,o=new WeakSet,m=function(){const e=r(this,i).getAttribute(r(this,u));e!=null&&(this.current=S.parseAttributeValue(e))};exports.Attribute=w;
|
package/lib/attribute/index.js
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
var
|
|
2
|
-
if (!
|
|
1
|
+
var m = (t, e, s) => {
|
|
2
|
+
if (!e.has(t))
|
|
3
3
|
throw TypeError("Cannot " + s);
|
|
4
4
|
};
|
|
5
|
-
var r = (
|
|
6
|
-
if (
|
|
5
|
+
var r = (t, e, s) => (m(t, e, "read from private field"), s ? s.call(t) : e.get(t)), h = (t, e, s) => {
|
|
6
|
+
if (e.has(t))
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
|
-
|
|
9
|
-
},
|
|
10
|
-
var
|
|
11
|
-
import { S as
|
|
12
|
-
import { p as
|
|
13
|
-
import { i as
|
|
14
|
-
import { g as
|
|
15
|
-
var i, u,
|
|
16
|
-
class
|
|
17
|
-
constructor(s,
|
|
18
|
-
super(
|
|
19
|
-
h(this,
|
|
8
|
+
e instanceof WeakSet ? e.add(t) : e.set(t, s);
|
|
9
|
+
}, c = (t, e, s, o) => (m(t, e, "write to private field"), o ? o.call(t, s) : e.set(t, s), s);
|
|
10
|
+
var v = (t, e, s) => (m(t, e, "access private method"), s);
|
|
11
|
+
import { S as A } from "../Store-BI2xxXOA.js";
|
|
12
|
+
import { p as y } from "../attributes-69we3byR.js";
|
|
13
|
+
import { i as S } from "../browser-0zX67oeU.js";
|
|
14
|
+
import { g as w } from "../dom-0S_WDL4g.js";
|
|
15
|
+
var i, u, a, b, n, p;
|
|
16
|
+
class M extends A {
|
|
17
|
+
constructor(s, o, g, f) {
|
|
18
|
+
super(g, f);
|
|
19
|
+
h(this, n);
|
|
20
20
|
h(this, i, null);
|
|
21
21
|
h(this, u, void 0);
|
|
22
|
-
h(this,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
h(this, a, null);
|
|
23
|
+
h(this, b, !1);
|
|
24
|
+
c(this, u, o), S && (c(this, i, w(s)), c(this, a, new MutationObserver((l) => {
|
|
25
|
+
l.forEach((d) => {
|
|
26
|
+
d.type === "attributes" && d.attributeName === r(this, u) && v(this, n, p).call(this);
|
|
26
27
|
});
|
|
27
|
-
})),
|
|
28
|
-
r(this, i).setAttribute(r(this, u),
|
|
28
|
+
})), f != null && f.sync && this.subscribe((l) => {
|
|
29
|
+
r(this, i).setAttribute(r(this, u), l.current.toString());
|
|
29
30
|
}));
|
|
30
31
|
}
|
|
31
32
|
subscribe(s) {
|
|
32
|
-
|
|
33
|
-
return this.observe(), b;
|
|
33
|
+
return this.subscribers.size || this.observe(), super.subscribe(s);
|
|
34
34
|
}
|
|
35
35
|
unsubscribe(s) {
|
|
36
|
-
super.unsubscribe(s), this.unobserve();
|
|
36
|
+
super.unsubscribe(s), this.subscribers.size || this.unobserve();
|
|
37
37
|
}
|
|
38
38
|
observe() {
|
|
39
|
-
|
|
39
|
+
r(this, b) || (c(this, b, !0), r(this, a).observe(r(this, i), {
|
|
40
40
|
attributes: !0
|
|
41
|
-
}),
|
|
41
|
+
}), v(this, n, p).call(this));
|
|
42
42
|
}
|
|
43
43
|
unobserve() {
|
|
44
|
-
this
|
|
44
|
+
r(this, b) && (c(this, b, !1), r(this, a).disconnect());
|
|
45
45
|
}
|
|
46
46
|
close() {
|
|
47
47
|
super.close(), this.unobserve();
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
i = new WeakMap(), u = new WeakMap(),
|
|
50
|
+
i = new WeakMap(), u = new WeakMap(), a = new WeakMap(), b = new WeakMap(), n = new WeakSet(), p = function() {
|
|
51
51
|
const s = r(this, i).getAttribute(r(this, u));
|
|
52
|
-
s != null && (this.current =
|
|
52
|
+
s != null && (this.current = y(s));
|
|
53
53
|
};
|
|
54
54
|
export {
|
|
55
|
-
|
|
55
|
+
M as Attribute
|
|
56
56
|
};
|
package/lib/canvas/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("../css-property/index.cjs"),P=require("../custom-element/index.cjs");require("../Store-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("../css-property/index.cjs"),P=require("../custom-element/index.cjs");require("../Store-6s0YXK4o.cjs");const z=require("../math-GDWEqu7y.cjs"),y=require("../tags-ld5jemJw.cjs"),F=require("../createStylesheet-p23sZ7Ey.cjs"),M=require("../element-resizer/index.cjs"),C=require("../ticker/index.cjs");var B=Object.defineProperty,T=Object.getOwnPropertyDescriptor,A=(i,e,s,p)=>{for(var r=p>1?void 0:p?T(e,s):e,k=i.length-1,S;k>=0;k--)(S=i[k])&&(r=(p?S(e,s,r):S(r))||r);return p&&r&&B(e,s,r),r},b=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)},t=(i,e,s)=>(b(i,e,"read from private field"),s?s.call(i):e.get(i)),n=(i,e,s)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,s)},a=(i,e,s,p)=>(b(i,e,"write to private field"),e.set(i,s),s),u=(i,e,s)=>(b(i,e,"access private method"),s),c,h,d,o,l,v,m,w,f,R,E,q,x,_,g,W;const D=F.createStylesheet({":host, canvas":{display:"block",width:"100%",height:"100%"}});exports.CanvasElement=class extends P.CustomElement{constructor(){super(),n(this,f),n(this,E),n(this,g),n(this,c,new O.CSSProperty(this,"--fps",0)),n(this,h,null),n(this,d,null),n(this,o,0),n(this,l,0),n(this,v,1),n(this,m,0),n(this,w,1),n(this,x,e=>{a(this,v,z.clamp(devicePixelRatio,1,2)),a(this,o,e.contentRect.width),a(this,l,e.contentRect.height),t(this,h).width=t(this,o)*this.pixelRatio,t(this,h).height=t(this,l)*this.pixelRatio,this.context.scale(this.pixelRatio,this.pixelRatio),u(this,g,W).call(this)}),n(this,_,e=>{a(this,m,e.timestamp),a(this,w,e.timeBetweenFrames),u(this,g,W).call(this)}),this.openShadow(D),y.element(this,{children:y.canvas({ref:e=>{a(this,h,e),a(this,d,e.getContext("2d"))}})}),t(this,c).subscribe(e=>{typeof e.previous!="undefined"&&e.current!==e.previous&&u(this,f,R).call(this)})}get fpsCSSProperty(){return t(this,c)}get canvasElement(){return t(this,h)}get context(){return t(this,d)}get pixelRatio(){return t(this,v)}get width(){return t(this,o)}get height(){return t(this,l)}get detail(){return{width:t(this,o),height:t(this,l),element:this,canvasElement:t(this,h),pixelRatio:t(this,v),context:t(this,d),timestamp:t(this,m),timeBetweenFrames:t(this,w)}}connectedCallback(){t(this,c).observe(),M.elementResizer.subscribe(this,t(this,x)),u(this,f,R).call(this)}disconnectedCallback(){t(this,c).unobserve(),M.elementResizer.unsubscribe(t(this,x)),u(this,E,q).call(this)}};c=new WeakMap;h=new WeakMap;d=new WeakMap;o=new WeakMap;l=new WeakMap;v=new WeakMap;m=new WeakMap;w=new WeakMap;f=new WeakSet;R=function(){C.ticker.unsubscribe(t(this,_)),this.hasAttribute("static")||C.ticker.subscribe(t(this,_),{culling:this,maxFPS:t(this,c).current})};E=new WeakSet;q=function(){C.ticker.unsubscribe(t(this,_))};x=new WeakMap;_=new WeakMap;g=new WeakSet;W=function(){this.dispatchEvent(new CustomEvent("canvasRender",{composed:!0,detail:this.detail}))};exports.CanvasElement=A([P.define("e-canvas")],exports.CanvasElement);
|
package/lib/canvas/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CSSProperty as F } from "../css-property/index.js";
|
|
2
2
|
import { CustomElement as O, define as B } from "../custom-element/index.js";
|
|
3
|
-
import "../Store-
|
|
3
|
+
import "../Store-BI2xxXOA.js";
|
|
4
4
|
import { c as z } from "../math-BOBiC4TN.js";
|
|
5
|
-
import { e as A, q as D } from "../tags-
|
|
6
|
-
import { c as L } from "../createStylesheet-
|
|
5
|
+
import { e as A, q as D } from "../tags-BqJKcIve.js";
|
|
6
|
+
import { c as L } from "../createStylesheet-CR_yi5tp.js";
|
|
7
7
|
import { elementResizer as M } from "../element-resizer/index.js";
|
|
8
8
|
import { ticker as S } from "../ticker/index.js";
|
|
9
9
|
var T = Object.defineProperty, q = Object.getOwnPropertyDescriptor, G = (t, i, s, l) => {
|
package/lib/checkbox/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../custom-element/index.cjs");require("../Store-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../custom-element/index.cjs");require("../Store-6s0YXK4o.cjs");const r=require("../tags-ld5jemJw.cjs"),_=require("../createStylesheet-p23sZ7Ey.cjs"),v=require("../theme/index.cjs"),w='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><path d="m243.33 90.91l-128.41 128.4a16 16 0 0 1-22.63 0l-71.62-72a16 16 0 0 1 0-22.61l24-24a16 16 0 0 1 22.57-.06l36.64 35.27l.11.11l92.73-91.37a16 16 0 0 1 22.58 0l24 23.56a16 16 0 0 1 .03 22.7Z"/></svg>';var x=Object.defineProperty,b=Object.getOwnPropertyDescriptor,y=(t,e,a,c)=>{for(var i=c>1?void 0:c?b(e,a):e,u=t.length-1,p;u>=0;u--)(p=t[u])&&(i=(c?p(e,a,i):p(i))||i);return c&&i&&x(e,a,i),i},k=(t,e,a)=>{if(!e.has(t))throw TypeError("Cannot "+a)},l=(t,e,a)=>(k(t,e,"read from private field"),a?a.call(t):e.get(t)),f=(t,e,a)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,a)},g=(t,e,a,c)=>(k(t,e,"write to private field"),e.set(t,a),a),d=(t,e,a)=>(k(t,e,"access private method"),a),s,o,h,n;const C=_.createStylesheet({":host":{position:"relative",display:"inline-block",width:"30px",height:"30px",borderRadius:v.aptechkaTheme.borderRadiusSmall.var,overflow:"hidden"},"label, .fake":{display:"block"},"label, .fake, .default":{width:"100%",height:"100%"},".real":{position:"absolute",top:"0",left:"0",width:"0px",height:"0px",visibility:"hidden",margin:"0"},".default":{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:v.aptechkaTheme.colorMainAux.var},".default svg":{width:"60%",height:"60%",fill:v.aptechkaTheme.colorFont.var,opacity:0,transition:"var(--duration-short)"},":host(.checked) .default svg":{opacity:1}});exports.CheckboxElement=class extends m.CustomElement{constructor(){super(),f(this,h),f(this,s,null),f(this,o,void 0),this.openShadow(C),g(this,o,this.attachInternals()),r.element(this,{children:r.label({children:[r.span({class:"fake",children:r.slot({children:[r.span({class:"default",children:[w]})]})}),r.input({ref:e=>{g(this,s,e),e.required=this.hasAttribute("required"),e.value=this.getAttribute("value")||"",e.checked=this.hasAttribute("checked"),e.name=this.getAttribute("name")||"",d(this,h,n).call(this)},class:"real",type:"checkbox",onChange:()=>{d(this,h,n).call(this),this.dispatchEvent(new Event("change",{composed:!0}))}})]})})}get checked(){return l(this,s).checked}set checked(e){l(this,s).checked=e,d(this,h,n).call(this)}get value(){return l(this,s).value}set value(e){l(this,s).value=e,d(this,h,n).call(this)}};s=new WeakMap;o=new WeakMap;h=new WeakSet;n=function(){this.checked?l(this,o).setFormValue(this.value):l(this,o).setFormValue(null),this.classList.toggle("checked",this.checked)};exports.CheckboxElement.formAssociated=!0;exports.CheckboxElement=y([m.define("e-checkbox")],exports.CheckboxElement);
|
package/lib/checkbox/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CustomElement as w, define as _ } from "../custom-element/index.js";
|
|
2
|
-
import "../Store-
|
|
3
|
-
import { e as x,
|
|
4
|
-
import { c as A } from "../createStylesheet-
|
|
2
|
+
import "../Store-BI2xxXOA.js";
|
|
3
|
+
import { e as x, a2 as y, aA as g, ax as b, $ as C } from "../tags-BqJKcIve.js";
|
|
4
|
+
import { c as A } from "../createStylesheet-CR_yi5tp.js";
|
|
5
5
|
import { aptechkaTheme as u } from "../theme/index.js";
|
|
6
6
|
const E = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><path d="m243.33 90.91l-128.41 128.4a16 16 0 0 1-22.63 0l-71.62-72a16 16 0 0 1 0-22.61l24-24a16 16 0 0 1 22.57-.06l36.64 35.27l.11.11l92.73-91.37a16 16 0 0 1 22.58 0l24 23.56a16 16 0 0 1 .03 22.7Z"/></svg>';
|
|
7
7
|
var S = Object.defineProperty, F = Object.getOwnPropertyDescriptor, M = (e, t, a, l) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var S=Object.defineProperty,m=Object.defineProperties;var f=Object.getOwnPropertyDescriptors;var u=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var a=(s,e,t)=>e in s?S(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,c=(s,e)=>{for(var t in e||(e={}))L.call(e,t)&&a(s,t,e[t]);if(u)for(var t of u(e))T.call(e,t)&&a(s,t,e[t]);return s},l=(s,e)=>m(s,f(e));var o=(s,e,t)=>{if(!e.has(s))throw TypeError("Cannot "+t)};var n=(s,e,t)=>(o(s,e,"read from private field"),t?t.call(s):e.get(s)),h=(s,e,t)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,t)},d=(s,e,t,r)=>(o(s,e,"write to private field"),r?r.call(s,t):e.set(s,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../Store-
|
|
1
|
+
"use strict";var S=Object.defineProperty,m=Object.defineProperties;var f=Object.getOwnPropertyDescriptors;var u=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var a=(s,e,t)=>e in s?S(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,c=(s,e)=>{for(var t in e||(e={}))L.call(e,t)&&a(s,t,e[t]);if(u)for(var t of u(e))T.call(e,t)&&a(s,t,e[t]);return s},l=(s,e)=>m(s,f(e));var o=(s,e,t)=>{if(!e.has(s))throw TypeError("Cannot "+t)};var n=(s,e,t)=>(o(s,e,"read from private field"),t?t.call(s):e.get(s)),h=(s,e,t)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,t)},d=(s,e,t,r)=>(o(s,e,"write to private field"),r?r.call(s,t):e.set(s,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../Store-6s0YXK4o.cjs"),b=require("../string-DhgS_iFl.cjs");var i;class p extends g.Store{constructor(t,r){super(r);h(this,i,void 0);d(this,i,t)}isTrue(t){return this.current[t]===!0}isFalse(t){return this.current[t]===!1}reset(){super.reset();for(const t in this.initial)this.set(t,this.initial[t])}set(t,r=!0){this.current=l(c({},this.current),{[t]:r}),r?n(this,i).classList.add(b.camelToKebab(t)):n(this,i).classList.remove(b.camelToKebab(t))}}i=new WeakMap;exports.ClassLinkedStatus=p;
|