aptechka 0.5.42 → 0.7.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/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 +5 -2
- package/lib/accordion/index.cjs +1 -1
- package/lib/accordion/index.js +141 -105
- package/lib/animation/Animation.d.ts +11 -19
- package/lib/animation/Damped.d.ts +4 -6
- package/lib/animation/Tweened.d.ts +2 -4
- 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.d.ts +1 -1
- package/lib/attribute/index.js +31 -31
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.d.ts +1 -1
- package/lib/canvas/index.js +29 -29
- package/lib/checkbox/index.cjs +1 -1
- package/lib/checkbox/index.js +20 -20
- package/lib/class-linked-status/index.cjs +1 -1
- package/lib/class-linked-status/index.js +1 -1
- package/lib/controls/AutoplayControls.d.ts +1 -1
- package/lib/controls/DragControls.d.ts +1 -1
- package/lib/controls/WheelControls.d.ts +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 +2 -1
- package/lib/css-property/index.js +36 -32
- package/lib/custom-element/index.d.ts +1 -4
- 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/ElementConstructor.d.ts +2 -2
- 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 +7 -3
- 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 -215
- package/lib/en3/index.d.ts +1 -19
- package/lib/en3/index.js +4 -4227
- package/lib/en3/libs/index.cjs +1 -0
- package/lib/en3/libs/index.d.ts +1 -0
- package/lib/en3/libs/index.js +201 -0
- package/lib/en3/loaders/_En3GLTFLoader.d.ts +12 -0
- 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/En3ClipHelpers.d.ts +1 -1
- package/lib/en3/objects/En3GLTF.d.ts +4 -3
- package/lib/en3/objects/En3Image.d.ts +1 -1
- package/lib/en3/objects/En3ImageLike.d.ts +3 -2
- package/lib/en3/objects/En3SourceConsumer.d.ts +1 -1
- package/lib/en3/objects/En3Video.d.ts +1 -1
- package/lib/en3/objects/fluid/Advection.d.ts +1 -1
- package/lib/en3/objects/fluid/Divergence.d.ts +1 -1
- package/lib/en3/objects/fluid/En3Fluid.d.ts +1 -1
- package/lib/en3/objects/fluid/En3FluidElement.d.ts +1 -1
- package/lib/en3/objects/fluid/ExternalForce.d.ts +1 -1
- package/lib/en3/objects/fluid/Poisson.d.ts +1 -1
- package/lib/en3/objects/fluid/Pressure.d.ts +1 -1
- package/lib/en3/objects/fluid/Simulation.d.ts +1 -1
- package/lib/en3/objects/fluid/Viscous.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/coverTexture.d.ts +1 -1
- 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-BtsOv9u0.js → index-BAH_fO2N.js} +66 -66
- package/lib/index-D1LQUR-R.cjs +9 -0
- 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 +11 -2
- 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 +16 -16
- 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/Pointer.d.ts +1 -1
- package/lib/pointer/PointerElement.d.ts +1 -1
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +3 -3
- package/lib/polyfills-CM4SCDTt.cjs +1 -0
- package/lib/polyfills-X6KXuHg-.js +33 -0
- package/lib/popover/PopoverButtonElement.d.ts +1 -1
- package/lib/popover/PopoverElement.d.ts +2 -2
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +49 -49
- 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 +8 -25
- package/lib/scroll/ScrollSection.d.ts +23 -0
- package/lib/scroll/ScrollSegmentElement.d.ts +3 -3
- package/lib/scroll/ScrollUserElement.d.ts +1 -1
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +87 -83
- package/lib/scroll-entries/index.d.ts +1 -1
- package/lib/select/SelectUserElement.d.ts +1 -1
- 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.d.ts +1 -1
- package/lib/sequence/index.js +8 -8
- package/lib/slicer/SlicerElement.d.ts +2 -2
- package/lib/slicer/index.cjs +4 -4
- package/lib/slicer/index.js +31 -31
- package/lib/source/SourceElement.d.ts +2 -2
- package/lib/source/SourceManager.d.ts +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 +2 -2
- package/lib/tweaker/TweakerColorManagerElement.d.ts +2 -2
- package/lib/tweaker/TweakerElement.d.ts +1 -1
- package/lib/tweaker/TweakerFieldElement.d.ts +2 -2
- package/lib/tweaker/TweakerFolderElement.d.ts +5 -3
- package/lib/tweaker/TweakerLinkManagerElement.d.ts +2 -2
- package/lib/tweaker/TweakerNumberManagerElement.d.ts +4 -8
- package/lib/tweaker/TweakerSelectManagerElement.d.ts +2 -2
- 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/function.d.ts +2 -2
- 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/layout.d.ts +1 -1
- 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 +14 -14
- package/package.json +108 -12
- package/lib/Animation-DDHjrbtL.cjs +0 -1
- package/lib/Animation-Dq_05jlR.js +0 -217
- package/lib/Damped-l0mnlhar.cjs +0 -1
- 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/en3GLTFLoader.d.ts +0 -14
- package/lib/en3/loaders/en3TextureLoader.d.ts +0 -3
- package/lib/en3/test/En3HTML.d.ts +0 -10
- package/lib/index-Buf76Qoq.cjs +0 -9
- package/lib/polyfills-BA-CL_HF.js +0 -27
- package/lib/polyfills-DHs2SNbz.cjs +0 -1
- package/lib/resized/index.cjs +0 -1
- package/lib/resized/index.d.ts +0 -12
- package/lib/resized/index.js +0 -30
- 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/en3/{test → misc}/En3ModifiedMaterial.d.ts +0 -0
- package/lib/en3/{attachments → misc}/En3SourceManager.d.ts +2 -2
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
var X = Object.defineProperty, Y = Object.defineProperties;
|
|
2
|
-
var Z = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var K = Object.getOwnPropertySymbols;
|
|
4
|
-
var $ = Object.prototype.hasOwnProperty, v = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var _ = (e, s, t) => s in e ? X(e, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[s] = t, j = (e, s) => {
|
|
6
|
-
for (var t in s || (s = {}))
|
|
7
|
-
$.call(s, t) && _(e, t, s[t]);
|
|
8
|
-
if (K)
|
|
9
|
-
for (var t of K(s))
|
|
10
|
-
v.call(s, t) && _(e, t, s[t]);
|
|
11
|
-
return e;
|
|
12
|
-
}, G = (e, s) => Y(e, Z(s));
|
|
13
|
-
var C = (e, s, t) => {
|
|
14
|
-
if (!s.has(e))
|
|
15
|
-
throw TypeError("Cannot " + t);
|
|
16
|
-
};
|
|
17
|
-
var i = (e, s, t) => (C(e, s, "read from private field"), t ? t.call(e) : s.get(e)), r = (e, s, t) => {
|
|
18
|
-
if (s.has(e))
|
|
19
|
-
throw TypeError("Cannot add the same private member more than once");
|
|
20
|
-
s instanceof WeakSet ? s.add(e) : s.set(e, t);
|
|
21
|
-
}, h = (e, s, t, n) => (C(e, s, "write to private field"), n ? n.call(e, t) : s.set(e, t), t);
|
|
22
|
-
var F = (e, s, t) => (C(e, s, "access private method"), t);
|
|
23
|
-
import { S as T } from "./Store-BQXXikps.js";
|
|
24
|
-
import { c as tt } from "./math-BOBiC4TN.js";
|
|
25
|
-
import { p as H, n as P } from "./polyfills-BA-CL_HF.js";
|
|
26
|
-
import { ticker as J } from "./ticker/index.js";
|
|
27
|
-
import { TICK_ORDER as it } from "./order/index.js";
|
|
28
|
-
var u, l, o, p, b, x, y, w, q, Q, z, U, S, V, E, W, I;
|
|
29
|
-
class st {
|
|
30
|
-
constructor(s, t, n, N, B) {
|
|
31
|
-
r(this, q);
|
|
32
|
-
r(this, z);
|
|
33
|
-
r(this, S);
|
|
34
|
-
r(this, E);
|
|
35
|
-
r(this, u, void 0);
|
|
36
|
-
r(this, l, void 0);
|
|
37
|
-
r(this, o, void 0);
|
|
38
|
-
r(this, p, void 0);
|
|
39
|
-
r(this, b, !1);
|
|
40
|
-
r(this, x, !1);
|
|
41
|
-
r(this, y, !1);
|
|
42
|
-
r(this, w, void 0);
|
|
43
|
-
r(this, I, (s) => {
|
|
44
|
-
!i(this, y) && i(this, u).initial !== i(this, u).current && h(this, y, !0), i(this, y) && (s.direction > 0 && s.progress >= i(this, o).current ? F(this, q, Q).call(this) : s.direction < 0 && s.progress <= i(this, o).current && F(this, z, U).call(this));
|
|
45
|
-
});
|
|
46
|
-
h(this, u, s), h(this, l, t), h(this, o, new T(n, {
|
|
47
|
-
passport: t.passport ? {
|
|
48
|
-
name: t.passport + "-start",
|
|
49
|
-
manager: {
|
|
50
|
-
type: "number"
|
|
51
|
-
}
|
|
52
|
-
} : void 0
|
|
53
|
-
})), h(this, p, new T(N, {
|
|
54
|
-
passport: t.passport ? {
|
|
55
|
-
name: t.passport + "-set",
|
|
56
|
-
manager: {
|
|
57
|
-
type: "number"
|
|
58
|
-
}
|
|
59
|
-
} : void 0
|
|
60
|
-
})), h(this, w, B), i(this, u).subscribe(i(this, I)), i(this, u).linked.add(this);
|
|
61
|
-
}
|
|
62
|
-
get targetAnimation() {
|
|
63
|
-
return i(this, l);
|
|
64
|
-
}
|
|
65
|
-
get triggerAnimation() {
|
|
66
|
-
return i(this, u);
|
|
67
|
-
}
|
|
68
|
-
destroy() {
|
|
69
|
-
i(this, p).close(), i(this, o).close(), i(this, u).unsubscribe(i(this, I)), i(this, u).linked.delete(this);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
u = new WeakMap(), l = new WeakMap(), o = new WeakMap(), p = new WeakMap(), b = new WeakMap(), x = new WeakMap(), y = new WeakMap(), w = new WeakMap(), q = new WeakSet(), Q = function() {
|
|
73
|
-
i(this, b) || (h(this, x, !1), h(this, b, !0), F(this, S, V).call(this, i(this, p).current));
|
|
74
|
-
}, z = new WeakSet(), U = function() {
|
|
75
|
-
i(this, b) && !i(this, x) && (h(this, b, !1), h(this, x, !0), F(this, S, V).call(this, i(this, l).initial));
|
|
76
|
-
}, S = new WeakSet(), V = function(s) {
|
|
77
|
-
F(this, E, W).call(this), i(this, l).updateOptions(i(this, w)), i(this, l).set(s);
|
|
78
|
-
}, E = new WeakSet(), W = function() {
|
|
79
|
-
var s;
|
|
80
|
-
(s = i(this, w)) != null && s.once && this.destroy();
|
|
81
|
-
}, I = new WeakMap();
|
|
82
|
-
var D, M, O, g, k, d, L, a, c, m, f, A, R;
|
|
83
|
-
class ct extends T {
|
|
84
|
-
constructor(t, n) {
|
|
85
|
-
super(t || 0, n);
|
|
86
|
-
r(this, D, void 0);
|
|
87
|
-
r(this, M, it.ANIMATION);
|
|
88
|
-
r(this, O, void 0);
|
|
89
|
-
r(this, g, new T(!1));
|
|
90
|
-
r(this, k, /* @__PURE__ */ new Set());
|
|
91
|
-
r(this, d, null);
|
|
92
|
-
r(this, L, 0);
|
|
93
|
-
r(this, a, 0);
|
|
94
|
-
r(this, c, -1 / 0);
|
|
95
|
-
r(this, m, 1 / 0);
|
|
96
|
-
r(this, f, 0);
|
|
97
|
-
r(this, A, 1);
|
|
98
|
-
r(this, R, (t) => {
|
|
99
|
-
this.handleAnimationFrame(t);
|
|
100
|
-
});
|
|
101
|
-
h(this, a, this.current);
|
|
102
|
-
}
|
|
103
|
-
get linked() {
|
|
104
|
-
return i(this, k);
|
|
105
|
-
}
|
|
106
|
-
get animationLink() {
|
|
107
|
-
return i(this, d);
|
|
108
|
-
}
|
|
109
|
-
get direction() {
|
|
110
|
-
return i(this, L);
|
|
111
|
-
}
|
|
112
|
-
get target() {
|
|
113
|
-
return i(this, a);
|
|
114
|
-
}
|
|
115
|
-
get min() {
|
|
116
|
-
return i(this, c);
|
|
117
|
-
}
|
|
118
|
-
set min(t) {
|
|
119
|
-
h(this, c, t), this.set(i(this, a), {
|
|
120
|
-
equalize: !0
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
get max() {
|
|
124
|
-
return i(this, m);
|
|
125
|
-
}
|
|
126
|
-
set max(t) {
|
|
127
|
-
h(this, m, t), this.set(i(this, a), {
|
|
128
|
-
equalize: !0
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
get from() {
|
|
132
|
-
return i(this, f);
|
|
133
|
-
}
|
|
134
|
-
get to() {
|
|
135
|
-
return i(this, A);
|
|
136
|
-
}
|
|
137
|
-
get isRunning() {
|
|
138
|
-
return i(this, g);
|
|
139
|
-
}
|
|
140
|
-
get currentDistance() {
|
|
141
|
-
return Math.abs(i(this, A) - i(this, f));
|
|
142
|
-
}
|
|
143
|
-
get distance() {
|
|
144
|
-
return Math.abs(i(this, m) - i(this, c));
|
|
145
|
-
}
|
|
146
|
-
get currentProgress() {
|
|
147
|
-
return this.currentDistance ? H(
|
|
148
|
-
Math.abs(this.current - i(this, f)) / this.currentDistance,
|
|
149
|
-
6
|
|
150
|
-
) : 0;
|
|
151
|
-
}
|
|
152
|
-
get progress() {
|
|
153
|
-
return this.distance ? H(Math.abs(this.current - i(this, c)) / this.distance, 6) : 0;
|
|
154
|
-
}
|
|
155
|
-
get entry() {
|
|
156
|
-
return G(j({}, super.entry), {
|
|
157
|
-
from: i(this, f),
|
|
158
|
-
to: i(this, A),
|
|
159
|
-
currentDistance: this.currentDistance,
|
|
160
|
-
distance: this.distance,
|
|
161
|
-
direction: this.direction,
|
|
162
|
-
currentProgress: this.currentProgress,
|
|
163
|
-
progress: this.progress
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
setTarget(t) {
|
|
167
|
-
h(this, L, Math.sign(t - i(this, a))), h(this, a, tt(t, i(this, c), i(this, m))), h(this, f, this.current), h(this, A, t);
|
|
168
|
-
}
|
|
169
|
-
set(t, n) {
|
|
170
|
-
i(this, a) !== t && (this.setTarget(t), n && this.updateOptions(n), i(this, a) !== this.current && this.start());
|
|
171
|
-
}
|
|
172
|
-
shift(t, n) {
|
|
173
|
-
this.set(i(this, a) + t, n);
|
|
174
|
-
}
|
|
175
|
-
reset() {
|
|
176
|
-
this.set(this.initial, { equalize: !0 }), super.reset(), i(this, k).forEach((t) => {
|
|
177
|
-
t.targetAnimation.reset();
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
close() {
|
|
181
|
-
super.close(), this.unlistenAnimationFrame(), this.unlink(), i(this, k).clear();
|
|
182
|
-
}
|
|
183
|
-
listenAnimationFrame() {
|
|
184
|
-
i(this, g).current || (i(this, g).current = !0, J.subscribe(i(this, R), {
|
|
185
|
-
maxFPS: i(this, D),
|
|
186
|
-
order: i(this, M),
|
|
187
|
-
culling: i(this, O)
|
|
188
|
-
}));
|
|
189
|
-
}
|
|
190
|
-
unlistenAnimationFrame() {
|
|
191
|
-
i(this, g).current && (i(this, g).current = !1, J.unsubscribe(i(this, R)), i(this, k).forEach((t) => {
|
|
192
|
-
t.targetAnimation.unlistenAnimationFrame();
|
|
193
|
-
}));
|
|
194
|
-
}
|
|
195
|
-
updateOptions(t) {
|
|
196
|
-
h(this, D, P(t == null ? void 0 : t.maxFPS, i(this, D))), h(this, M, P(t == null ? void 0 : t.order, i(this, M))), h(this, O, P(t == null ? void 0 : t.culling, i(this, O))), h(this, c, P(t == null ? void 0 : t.min, i(this, c))), h(this, m, P(t == null ? void 0 : t.max, i(this, m))), t != null && t.equalize && (this.unlistenAnimationFrame(), this.current = i(this, a));
|
|
197
|
-
}
|
|
198
|
-
linkTo(t, n, N, B) {
|
|
199
|
-
this.unlink(), h(this, d, new st(
|
|
200
|
-
t,
|
|
201
|
-
this,
|
|
202
|
-
n,
|
|
203
|
-
N,
|
|
204
|
-
B
|
|
205
|
-
));
|
|
206
|
-
}
|
|
207
|
-
unlink() {
|
|
208
|
-
i(this, d) && (i(this, d).destroy(), h(this, d, null));
|
|
209
|
-
}
|
|
210
|
-
start() {
|
|
211
|
-
this.listenAnimationFrame();
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
D = new WeakMap(), M = new WeakMap(), O = new WeakMap(), g = new WeakMap(), k = new WeakMap(), d = new WeakMap(), L = new WeakMap(), a = new WeakMap(), c = new WeakMap(), m = new WeakMap(), f = new WeakMap(), A = new WeakMap(), R = new WeakMap();
|
|
215
|
-
export {
|
|
216
|
-
ct as A
|
|
217
|
-
};
|
package/lib/Damped-l0mnlhar.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var A=Object.defineProperty,F=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var g=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;var f=(e,s,t)=>s in e?A(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t,m=(e,s)=>{for(var t in s||(s={}))v.call(s,t)&&f(e,t,s[t]);if(g)for(var t of g(s))C.call(s,t)&&f(e,t,s[t]);return e},l=(e,s)=>F(e,b(s));var p=(e,s,t)=>{if(!s.has(e))throw TypeError("Cannot "+t)};var r=(e,s,t)=>(p(e,s,"read from private field"),t?t.call(e):s.get(e)),d=(e,s,t)=>{if(s.has(e))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(e):s.set(e,t)},n=(e,s,t,a)=>(p(e,s,"write to private field"),a?a.call(e,t):s.set(e,t),t);const O=require("./math-GDWEqu7y.cjs"),u=require("./polyfills-DHs2SNbz.cjs"),w=require("./Animation-DDHjrbtL.cjs");var i,h;class B extends w.Animation{constructor(t,a){super(t,a);d(this,i,void 0);d(this,h,void 0);this.damping=20,this.stiffness=0,this.mass=0,n(this,i,0),n(this,h,0),this.updateOptions(l(m({},a),{equalize:!0}))}get velocity(){return r(this,i)}get speed(){return r(this,h)}get entry(){return l(m({},super.entry),{velocity:r(this,i),speed:r(this,h)})}updateOptions(t){this.damping=u.nullishCoalescing(t==null?void 0:t.damping,this.damping),this.mass=u.nullishCoalescing(t==null?void 0:t.mass,this.mass),this.stiffness=u.nullishCoalescing(t==null?void 0:t.stiffness,this.stiffness),super.updateOptions(t)}updateManually(t){this.setTarget(t),this.current=this.target}handleAnimationFrame(t){u.preciseNumber(this.current,4)===u.preciseNumber(this.target,4)&&(this.unlistenAnimationFrame(),this.current=this.target);const a=this.current,y=Math.abs(a-this.target);n(this,h,y/t.timeBetweenFrames);const c=t.timeBetweenFrames/1e3;if(this.mass||this.stiffness){const q=(this.target-this.current)*this.stiffness-r(this,i)*this.damping;n(this,i,r(this,i)+q/this.mass*c),this.current+=r(this,i)*c}else this.current=O.damp(this.current,this.target,this.damping,c)}}i=new WeakMap,h=new WeakMap;exports.Damped=B;
|
package/lib/Store-C-1ruEIm.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var R=(s,t,e)=>{if(!t.has(s))throw TypeError("Cannot "+e)};var r=(s,t,e)=>(R(s,t,"read from private field"),e?e.call(s):t.get(s)),a=(s,t,e)=>{if(t.has(s))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(s):t.set(s,e)},i=(s,t,e,h)=>(R(s,t,"write to private field"),h?h.call(s,e):t.set(s,e),e);var p=(s,t,e)=>(R(s,t,"access private method"),e);const M=require("./browser-CpzFX2xg.cjs");var l,d,S;class I{constructor(){a(this,l,null);a(this,d,"");a(this,S,"");M.isBrowser&&(i(this,d,document.documentElement.getAttribute("data-project")||"unnamed"),i(this,S,r(this,d)?r(this,d)+"-store-registry":"store-registry"))}get projectName(){return r(this,d)}get localStoreRegistryName(){return r(this,S)}get loadedState(){return r(this,l)}saveState(){const t=this.getState(),e=JSON.stringify(t);localStorage.setItem(r(this,S),e)}loadState(t=localStorage.getItem(r(this,S))){t&&(typeof t=="string"?i(this,l,JSON.parse(t)):i(this,l,t),n.current.forEach(e=>{e.passport&&this.updateStore(e)}))}resetState(){n.current.forEach(t=>{t.passport&&t.reset()}),this.saveState()}updateStore(t){var h,N;if(!Array.isArray((h=r(this,l))==null?void 0:h.stores))return t;const e=t.passport;if(e){const k=(N=r(this,l))==null?void 0:N.stores.find(z=>z.name===e.name);k&&(t.current=k.value)}return t}getState(){const t={stores:[]};return n.current.forEach(e=>{e.passport&&(t.stores.find(h=>h.name===e.passport.name)||t.stores.push({value:e.current,name:e.passport.name}))}),t}}l=new WeakMap,d=new WeakMap,S=new WeakMap;const E=new I;var m,y,g,f,o,u,b,c,v,w,A,q;class j{constructor(t,e){a(this,A);a(this,m,void 0);a(this,y,void 0);a(this,g,void 0);a(this,f,void 0);a(this,o,void 0);a(this,u,new Set);a(this,b,void 0);a(this,c,void 0);a(this,v,void 0);a(this,w,void 0);i(this,m,e==null?void 0:e.passport),i(this,y,t),i(this,g,void 0),i(this,f,t),i(this,o,(e==null?void 0:e.equalityCheck)||((h,N)=>h===N)),e!=null&&e.validate&&this.addMiddleware(e.validate),i(this,v,(e==null?void 0:e.notifyAndClose)||!1),i(this,w,(e==null?void 0:e.invisible)||!1),i(this,b,(e==null?void 0:e.skipSubscribeNotification)||!1),r(this,m)&&E.updateStore(this)}get passport(){return r(this,m)}get initial(){return r(this,y)}get previous(){return r(this,g)}get current(){return r(this,f)}set current(t){if(!r(this,o).call(this,r(this,f),t)){if(i(this,g,r(this,f)),r(this,c))for(const e of r(this,c))t=e(t);i(this,f,t),p(this,A,q).call(this),r(this,v)&&this.close()}}get subscribers(){return r(this,u)}get entry(){return{current:r(this,f),previous:r(this,g)}}addMiddleware(t){r(this,c)||i(this,c,new Set),r(this,c).add(t)}removeMiddleware(t){var e,h;(e=r(this,c))==null||e.delete(t),(h=r(this,c))!=null&&h.size||i(this,c,void 0)}subscribe(t){return!r(this,w)&&!r(this,u).size&&J(this),r(this,u).add(t),r(this,b)||t(this.entry),()=>{this.unsubscribe(t)}}unsubscribe(t){r(this,u).delete(t),r(this,u).size||C(this)}reset(){this.current=this.initial}close(){r(this,u).clear(),C(this)}}m=new WeakMap,y=new WeakMap,g=new WeakMap,f=new WeakMap,o=new WeakMap,u=new WeakMap,b=new WeakMap,c=new WeakMap,v=new WeakMap,w=new WeakMap,A=new WeakSet,q=function(){for(const t of r(this,u))t(this.entry)};const n=new j([],{invisible:!0});function J(s){n.current.includes(s)||(n.current=[...n.current,s])}function C(s){n.current.includes(s)&&(n.current=n.current.filter(t=>t!==s))}exports.Store=j;exports.activeStores=n;exports.storeRegistry=E;
|
package/lib/Tweened-CwDC2zl8.js
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
var F = Object.defineProperty, g = Object.defineProperties;
|
|
2
|
-
var O = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var h = Object.getOwnPropertySymbols;
|
|
4
|
-
var b = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var l = (i, e, t) => e in i ? F(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, c = (i, e) => {
|
|
6
|
-
for (var t in e || (e = {}))
|
|
7
|
-
b.call(e, t) && l(i, t, e[t]);
|
|
8
|
-
if (h)
|
|
9
|
-
for (var t of h(e))
|
|
10
|
-
x.call(e, t) && l(i, t, e[t]);
|
|
11
|
-
return i;
|
|
12
|
-
}, d = (i, e) => g(i, O(e));
|
|
13
|
-
var f = (i, e, t) => {
|
|
14
|
-
if (!e.has(i))
|
|
15
|
-
throw TypeError("Cannot " + t);
|
|
16
|
-
};
|
|
17
|
-
var n = (i, e, t) => (f(i, e, "read from private field"), t ? t.call(i) : e.get(i)), m = (i, e, t) => {
|
|
18
|
-
if (e.has(i))
|
|
19
|
-
throw TypeError("Cannot add the same private member more than once");
|
|
20
|
-
e instanceof WeakSet ? e.add(i) : e.set(i, t);
|
|
21
|
-
}, u = (i, e, t, a) => (f(i, e, "write to private field"), a ? a.call(i, t) : e.set(i, t), t);
|
|
22
|
-
import { l as y } from "./easings-BKi40vHz.js";
|
|
23
|
-
import { c as M } from "./math-BOBiC4TN.js";
|
|
24
|
-
import { n as A, p as S } from "./polyfills-BA-CL_HF.js";
|
|
25
|
-
import { A as T } from "./Animation-Dq_05jlR.js";
|
|
26
|
-
var r, s;
|
|
27
|
-
class N extends T {
|
|
28
|
-
constructor(t, a) {
|
|
29
|
-
super(t || 0, a);
|
|
30
|
-
m(this, r, y);
|
|
31
|
-
m(this, s, 1e3);
|
|
32
|
-
this.updateOptions(d(c({}, a), { equalize: !0 }));
|
|
33
|
-
}
|
|
34
|
-
updateOptions(t) {
|
|
35
|
-
super.updateOptions(t), u(this, r, A(t == null ? void 0 : t.easing, n(this, r))), u(this, s, A(t == null ? void 0 : t.duration, n(this, s))), t != null && t.restart && (this.current = this.initial);
|
|
36
|
-
}
|
|
37
|
-
updateManually(t) {
|
|
38
|
-
const a = t / 1e3 / (n(this, s) / 1e3), p = n(this, r).call(this, M(a, 0, 1));
|
|
39
|
-
return this.current = S(this.from + (this.to - this.from) * p, 6), a;
|
|
40
|
-
}
|
|
41
|
-
handleAnimationFrame(t) {
|
|
42
|
-
this.updateManually(t.timeElapsedSinceSubscription) > 1 && this.unlistenAnimationFrame();
|
|
43
|
-
}
|
|
44
|
-
start() {
|
|
45
|
-
this.unlistenAnimationFrame(), this.listenAnimationFrame();
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
r = new WeakMap(), s = new WeakMap();
|
|
49
|
-
export {
|
|
50
|
-
N as T
|
|
51
|
-
};
|
package/lib/Tweened-DIt9j9B-.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var q=Object.defineProperty,F=Object.defineProperties;var y=Object.getOwnPropertyDescriptors;var c=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var m=(t,i,e)=>i in t?q(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,d=(t,i)=>{for(var e in i||(i={}))O.call(i,e)&&m(t,e,i[e]);if(c)for(var e of c(i))b.call(i,e)&&m(t,e,i[e]);return t},A=(t,i)=>F(t,y(i));var f=(t,i,e)=>{if(!i.has(t))throw TypeError("Cannot "+e)};var n=(t,i,e)=>(f(t,i,"read from private field"),e?e.call(t):i.get(t)),u=(t,i,e)=>{if(i.has(t))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(t):i.set(t,e)},l=(t,i,e,a)=>(f(t,i,"write to private field"),a?a.call(t,e):i.set(t,e),e);const w=require("./easings-DsS5-Kqc.cjs"),C=require("./math-GDWEqu7y.cjs"),h=require("./polyfills-DHs2SNbz.cjs"),M=require("./Animation-DDHjrbtL.cjs");var r,s;class S extends M.Animation{constructor(e,a){super(e||0,a);u(this,r,w.linear);u(this,s,1e3);this.updateOptions(A(d({},a),{equalize:!0}))}updateOptions(e){super.updateOptions(e),l(this,r,h.nullishCoalescing(e==null?void 0:e.easing,n(this,r))),l(this,s,h.nullishCoalescing(e==null?void 0:e.duration,n(this,s))),e!=null&&e.restart&&(this.current=this.initial)}updateManually(e){const a=e/1e3/(n(this,s)/1e3),g=n(this,r).call(this,C.clamp(a,0,1));return this.current=h.preciseNumber(this.from+(this.to-this.from)*g,6),a}handleAnimationFrame(e){this.updateManually(e.timeElapsedSinceSubscription)>1&&this.unlistenAnimationFrame()}start(){this.unlistenAnimationFrame(),this.listenAnimationFrame()}}r=new WeakMap,s=new WeakMap;exports.Tweened=S;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Animation, AnimationOptions } from './Animation';
|
|
2
|
-
import { StoreOptions } from '../store';
|
|
3
|
-
|
|
4
|
-
export interface AnimationLinkOptions extends Omit<AnimationOptions, keyof StoreOptions<number>> {
|
|
5
|
-
once?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare class AnimationLink<Options extends AnimationLinkOptions = AnimationLinkOptions> {
|
|
8
|
-
#private;
|
|
9
|
-
constructor(triggerAnimation: Animation<any>, targetAnimation: Animation<any>, startValue: number, setValue: number, options?: Options | undefined);
|
|
10
|
-
get targetAnimation(): Animation<any, AnimationOptions>;
|
|
11
|
-
get triggerAnimation(): Animation<any, AnimationOptions>;
|
|
12
|
-
destroy(): void;
|
|
13
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { KTX2Loader } from 'three/examples/jsm/loaders/KTX2Loader.js';
|
|
2
|
-
import { DRACOLoader } from 'three/examples/jsm/loaders/DRACOLoader.js';
|
|
3
|
-
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js';
|
|
4
|
-
|
|
5
|
-
declare class En3GLTFLoader {
|
|
6
|
-
#private;
|
|
7
|
-
constructor();
|
|
8
|
-
get gltfLoader(): GLTFLoader;
|
|
9
|
-
get dracoLoader(): DRACOLoader;
|
|
10
|
-
get ktx2Loader(): KTX2Loader;
|
|
11
|
-
load(...parameters: Parameters<typeof this.gltfLoader.load>): void;
|
|
12
|
-
}
|
|
13
|
-
export declare const en3GLTFLoader: En3GLTFLoader;
|
|
14
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { CSS3DObject } from 'three/examples/jsm/renderers/CSS3DRenderer.js';
|
|
2
|
-
|
|
3
|
-
export interface En3HTMLParameters {
|
|
4
|
-
element: HTMLElement;
|
|
5
|
-
}
|
|
6
|
-
export declare class En3HTML extends CSS3DObject {
|
|
7
|
-
#private;
|
|
8
|
-
static destroy(): void;
|
|
9
|
-
constructor(parameters: En3HTMLParameters);
|
|
10
|
-
}
|
package/lib/index-Buf76Qoq.cjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";var D=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)};var z=(t,e,s)=>(D(t,e,"read from private field"),s?s.call(t):e.get(t)),A=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},H=(t,e,s,i)=>(D(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s);const y=require("./custom-element/index.cjs");require("./Store-C-1ruEIm.cjs");const W=require("./browser-CpzFX2xg.cjs"),K=require("./events-Crwi8fz6.cjs"),N=require("./style-At6aDoqG.cjs"),a=require("./tags-Djb6mb1o.cjs"),b=require("./createStylesheet-CqHU9_qv.cjs"),V=require("./theme/index.cjs");var Y=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,J=(t,e,s,i)=>{for(var n=i>1?void 0:i?Z(e,s):e,l=t.length-1,o;l>=0;l--)(o=t[l])&&(n=(i?o(e,s,n):o(n))||n);return i&&n&&Y(e,s,n),n},P=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)},r=(t,e,s)=>(P(t,e,"read from private field"),s?s.call(t):e.get(t)),c=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},d=(t,e,s,i)=>(P(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s),I=(t,e,s)=>(P(t,e,"access private method"),s),u,f,h,v,g,m,$,S,L;const Q=b.createStylesheet({":host":{position:"relative"},".head":{width:"100%",cursor:"default",background:"none",border:"none",color:"inherit",fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit",textAlign:"start",padding:"0",margin:"0"},".body":{boxSizing:"border-box",position:"var(--position, unset)",top:"100%",left:"0",width:"100%",overflow:"hidden",transitionDuration:"var(--duration, var(--duration-short))",transitionProperty:"height",cursor:"default"},".body-inner":{display:"grid",gap:"var(--gap, 0px)",width:"100%",paddingTop:"var(--gap, 0px)"}});exports.SelectElement=class extends y.CustomElement{constructor(){super(),c(this,S),c(this,u,null),c(this,f,""),c(this,h,null),c(this,v,!1),c(this,g,void 0),c(this,m,null),c(this,$,()=>{K.dispatchSizeChangeEvent(this)}),W.isBrowser&&(this.openShadow(Q),d(this,u,this.attachInternals()),d(this,m,new ResizeObserver(r(this,$))),a.element(this,{children:[a.button({class:"head",children:a.slot({name:"head"}),onClick:()=>{this.opened?this.close():this.open()}}),a.div({class:"body",style:{height:"0px"},children:a.div({class:"body-inner",children:a.slot()}),ref:e=>{d(this,h,e)}})]}))}get value(){return r(this,f)}set value(e){d(this,f,e),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),r(this,u).setFormValue(r(this,f))}get internals(){return r(this,u)}get opened(){return r(this,v)}open(){clearTimeout(r(this,g)),d(this,v,!0),r(this,h).style.display="grid",this.classList.add("triggered"),setTimeout(()=>{this.classList.add("opened"),r(this,h).style.height=r(this,h).scrollHeight+"px",I(this,S,L).call(this)},0)}close(){d(this,v,!1),r(this,h).style.height="0px",this.classList.remove("opened"),I(this,S,L).call(this),d(this,g,setTimeout(()=>{this.classList.remove("triggered"),r(this,h).style.display="none"},N.getElementTransitionDurationMS(r(this,h))))}connectedCallback(){r(this,m).observe(r(this,h))}disconnectedCallback(){clearTimeout(r(this,g)),r(this,m).disconnect()}};u=new WeakMap;f=new WeakMap;h=new WeakMap;v=new WeakMap;g=new WeakMap;m=new WeakMap;$=new WeakMap;S=new WeakSet;L=function(){this.dispatchEvent(new CustomEvent("selectToggle",{bubbles:!0,composed:!0,detail:{opened:r(this,v)}}))};exports.SelectElement.formAssociated=!0;exports.SelectElement=J([y.define("e-select")],exports.SelectElement);var E;class q extends y.CustomElement{constructor(){super(...arguments);A(this,E,null)}get selectElement(){return z(this,E)}connectedCallback(){var i,n;const s=(n=(i=this.assignedSlot)==null?void 0:i.getRootNode())==null?void 0:n.host;s?H(this,E,s):console.log(this,"e-select not found")}}E=new WeakMap;var X=Object.defineProperty,j=Object.getOwnPropertyDescriptor,ee=(t,e,s,i)=>{for(var n=i>1?void 0:i?j(e,s):e,l=t.length-1,o;l>=0;l--)(o=t[l])&&(n=(i?o(e,s,n):o(n))||n);return i&&n&&X(e,s,n),n},R=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)},k=(t,e,s)=>(R(t,e,"read from private field"),s?s.call(t):e.get(t)),B=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},G=(t,e,s)=>(R(t,e,"access private method"),s),w,C,M;const te=b.createStylesheet({":host":{width:"100%",height:"40px",display:"inline-flex",alignItems:"center"}});exports.SelectOptionElement=class extends q{constructor(){super(),B(this,C),B(this,w,()=>{this.selectElement.value===this.value?this.style.display="none":this.style.display=""}),W.isBrowser&&(this.openShadow(te),a.element(this,{tabindex:0,onClick:()=>{G(this,C,M).call(this)},onKeydown:e=>{e.code==="Space"&&G(this,C,M).call(this)},children:a.slot()}))}get value(){return(this.hasAttribute("value")?this.getAttribute("value"):this.innerText)||""}connectedCallback(){super.connectedCallback(),this.hasAttribute("default")&&(this.selectElement.value||(this.selectElement.value=this.value)),this.selectElement.addEventListener("change",k(this,w)),setTimeout(()=>{k(this,w).call(this)})}disconnectedCallback(){this.selectElement.removeEventListener("change",k(this,w))}};w=new WeakMap;C=new WeakSet;M=function(){this.selectElement.value=this.value,this.selectElement.close()};exports.SelectOptionElement=ee([y.define("e-select-option")],exports.SelectOptionElement);const F=`<svg
|
|
2
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
3
|
-
width="32"
|
|
4
|
-
height="32"
|
|
5
|
-
viewBox="0 0 24 24"
|
|
6
|
-
>
|
|
7
|
-
<path d="m12.37 15.835l6.43-6.63C19.201 8.79 18.958 8 18.43 8H5.57c-.528 0-.771.79-.37 1.205l6.43 6.63c.213.22.527.22.74 0Z" />
|
|
8
|
-
</svg>
|
|
9
|
-
`;var se=Object.defineProperty,ie=Object.getOwnPropertyDescriptor,ne=(t,e,s,i)=>{for(var n=i>1?void 0:i?ie(e,s):e,l=t.length-1,o;l>=0;l--)(o=t[l])&&(n=(i?o(e,s,n):o(n))||n);return i&&n&&se(e,s,n),n},U=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)},p=(t,e,s)=>(U(t,e,"read from private field"),s?s.call(t):e.get(t)),O=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},re=(t,e,s,i)=>(U(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s),x,_,T;const ae=b.createStylesheet({":host":{width:"100%",height:"40px",display:"inline-flex",alignItems:"center",justifyContent:"space-between"},".default-arrow":{flexShrink:"0",width:"var(--arrow-size, 1em)",height:"var(--arrow-size, 1em)",fill:`var(--arrow-color, ${V.aptechkaTheme.colorMain.var})`,transitionProperty:"transform",transitionDuration:"var(--duration, var(--duration-short))"},":host(.opened) .default-arrow":{transform:"scaleY(-1)"}});exports.SelectHeadElement=class extends q{constructor(){super(),O(this,x,null),O(this,_,()=>{const s=this.selectElement.shadowRoot.querySelector(".body slot").assignedElements().find(i=>i.value===this.selectElement.value);s&&(p(this,x).innerHTML=s.innerHTML)}),O(this,T,()=>{this.classList.toggle("opened",this.selectElement.opened)}),W.isBrowser&&(this.openShadow(ae),a.element(this,{children:[a.slot(),a.slot({name:"arrow",children:a.element(F,{class:"default-arrow"})})]}),this.slot="head")}connectedCallback(){super.connectedCallback(),re(this,x,this.querySelector("[data-value-holder]")||this),this.selectElement.addEventListener("change",p(this,_)),p(this,_).call(this),this.selectElement.addEventListener("selectToggle",p(this,T))}disconnectedCallback(){this.selectElement.removeEventListener("change",p(this,_)),this.selectElement.removeEventListener("selectToggle",p(this,T))}};x=new WeakMap;_=new WeakMap;T=new WeakMap;exports.SelectHeadElement=ne([y.define("e-select-head")],exports.SelectHeadElement);exports.SelectUserElement=q;exports.arrowIcon=F;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
const r = [
|
|
2
|
-
1,
|
|
3
|
-
10,
|
|
4
|
-
100,
|
|
5
|
-
1e3,
|
|
6
|
-
1e4,
|
|
7
|
-
1e5,
|
|
8
|
-
1e6,
|
|
9
|
-
1e7,
|
|
10
|
-
1e8,
|
|
11
|
-
1e9,
|
|
12
|
-
1e10
|
|
13
|
-
];
|
|
14
|
-
function u(n, e = 5) {
|
|
15
|
-
return Math.round(n * r[e]) / r[e];
|
|
16
|
-
}
|
|
17
|
-
function o(n, e) {
|
|
18
|
-
return Math.round(n / e) * e;
|
|
19
|
-
}
|
|
20
|
-
function t(n, e) {
|
|
21
|
-
return typeof n == "undefined" ? e : n;
|
|
22
|
-
}
|
|
23
|
-
export {
|
|
24
|
-
t as n,
|
|
25
|
-
u as p,
|
|
26
|
-
o as r
|
|
27
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const r=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10];function u(n,e=5){return Math.round(n*r[e])/r[e]}function i(n,e){return Math.round(n/e)*e}function o(n,e){return typeof n=="undefined"?e:n}exports.nullishCoalescing=o;exports.preciseNumber=u;exports.roundNumberTo=i;
|
package/lib/resized/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var l=(e,s,r)=>{if(!s.has(e))throw TypeError("Cannot "+r)};var c=(e,s,r)=>(l(e,s,"read from private field"),r?r.call(e):s.get(e)),n=(e,s,r)=>{if(s.has(e))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(e):s.set(e,r)},d=(e,s,r,i)=>(l(e,s,"write to private field"),i?i.call(e,r):s.set(e,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../element-resizer/index.cjs"),z=require("../Store-C-1ruEIm.cjs"),h=require("../window-resizer/index.cjs");var t,u;class a extends z.Store{constructor(r,i){super(r(),i);n(this,t,void 0);n(this,u,()=>{this.current=c(this,t).call(this)});d(this,t,r),(i==null?void 0:i.dispatcher)instanceof Element?b.elementResizer.subscribe(i.dispatcher,c(this,u)):h.windowResizer.subscribe(c(this,u))}close(){super.close(),h.windowResizer.unsubscribe(c(this,t)),b.elementResizer.unsubscribe(c(this,t))}}t=new WeakMap,u=new WeakMap;exports.Resized=a;
|
package/lib/resized/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ElementOrSelector } from '../utils';
|
|
2
|
-
import { Store, StoreOptions } from '../store';
|
|
3
|
-
|
|
4
|
-
export interface ResizedOptions extends StoreOptions<number, 'number'> {
|
|
5
|
-
dispatcher?: ElementOrSelector;
|
|
6
|
-
}
|
|
7
|
-
export type ResizedCallback = () => number;
|
|
8
|
-
export declare class Resized extends Store<number, 'number'> {
|
|
9
|
-
#private;
|
|
10
|
-
constructor(callback: ResizedCallback, options?: ResizedOptions);
|
|
11
|
-
close(): void;
|
|
12
|
-
}
|
package/lib/resized/index.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
var h = (e, s, r) => {
|
|
2
|
-
if (!s.has(e))
|
|
3
|
-
throw TypeError("Cannot " + r);
|
|
4
|
-
};
|
|
5
|
-
var c = (e, s, r) => (h(e, s, "read from private field"), r ? r.call(e) : s.get(e)), b = (e, s, r) => {
|
|
6
|
-
if (s.has(e))
|
|
7
|
-
throw TypeError("Cannot add the same private member more than once");
|
|
8
|
-
s instanceof WeakSet ? s.add(e) : s.set(e, r);
|
|
9
|
-
}, l = (e, s, r, i) => (h(e, s, "write to private field"), i ? i.call(e, r) : s.set(e, r), r);
|
|
10
|
-
import { elementResizer as m } from "../element-resizer/index.js";
|
|
11
|
-
import { S as d } from "../Store-BQXXikps.js";
|
|
12
|
-
import { windowResizer as a } from "../window-resizer/index.js";
|
|
13
|
-
var t, u;
|
|
14
|
-
class o extends d {
|
|
15
|
-
constructor(r, i) {
|
|
16
|
-
super(r(), i);
|
|
17
|
-
b(this, t, void 0);
|
|
18
|
-
b(this, u, () => {
|
|
19
|
-
this.current = c(this, t).call(this);
|
|
20
|
-
});
|
|
21
|
-
l(this, t, r), (i == null ? void 0 : i.dispatcher) instanceof Element ? m.subscribe(i.dispatcher, c(this, u)) : a.subscribe(c(this, u));
|
|
22
|
-
}
|
|
23
|
-
close() {
|
|
24
|
-
super.close(), a.unsubscribe(c(this, t)), m.unsubscribe(c(this, t));
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
t = new WeakMap(), u = new WeakMap();
|
|
28
|
-
export {
|
|
29
|
-
o as Resized
|
|
30
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Resource, ResourceFetcher, ResourceOptions } from './Resource';
|
|
2
|
-
|
|
3
|
-
export interface CumulativeResourceOptions<T> extends ResourceOptions<T> {
|
|
4
|
-
interval?: number;
|
|
5
|
-
}
|
|
6
|
-
export declare class CumulativeResource<T> extends Resource<T> {
|
|
7
|
-
#private;
|
|
8
|
-
constructor(defaultValue: T, fetcher: ResourceFetcher<T>, interval?: number);
|
|
9
|
-
get step(): number;
|
|
10
|
-
startAccumulating(): void;
|
|
11
|
-
stopAccumulating(): void;
|
|
12
|
-
close(): void;
|
|
13
|
-
}
|