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
package/lib/layout-box/index.js
CHANGED
|
@@ -1,102 +1,104 @@
|
|
|
1
|
-
var F = (i,
|
|
2
|
-
if (!
|
|
3
|
-
throw TypeError("Cannot " +
|
|
1
|
+
var F = (i, e, s) => {
|
|
2
|
+
if (!e.has(i))
|
|
3
|
+
throw TypeError("Cannot " + s);
|
|
4
4
|
};
|
|
5
|
-
var t = (i,
|
|
6
|
-
if (
|
|
5
|
+
var t = (i, e, s) => (F(i, e, "read from private field"), s ? s.call(i) : e.get(i)), h = (i, e, s) => {
|
|
6
|
+
if (e.has(i))
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
|
-
|
|
9
|
-
}, r = (i,
|
|
10
|
-
var
|
|
11
|
-
import { cssUnitParser as
|
|
8
|
+
e instanceof WeakSet ? e.add(i) : e.set(i, s);
|
|
9
|
+
}, r = (i, e, s, l) => (F(i, e, "write to private field"), l ? l.call(i, s) : e.set(i, s), s);
|
|
10
|
+
var O = (i, e, s) => (F(i, e, "access private method"), s);
|
|
11
|
+
import { cssUnitParser as dt } from "../css-unit-parser/index.js";
|
|
12
12
|
import { Ladder as G } from "../ladder/index.js";
|
|
13
|
-
import { RESIZE_ORDER as ft, TICK_ORDER as
|
|
13
|
+
import { RESIZE_ORDER as ft, TICK_ORDER as pt } from "../order/index.js";
|
|
14
14
|
import { scrollEntries as J } from "../scroll-entries/index.js";
|
|
15
|
-
import { ticker as
|
|
15
|
+
import { ticker as et } from "../ticker/index.js";
|
|
16
16
|
import { i as st } from "../browser-0zX67oeU.js";
|
|
17
|
-
import { g as
|
|
18
|
-
import { g as
|
|
19
|
-
import { elementResizer as
|
|
20
|
-
import { windowResizer as
|
|
17
|
+
import { g as it } from "../dom-0S_WDL4g.js";
|
|
18
|
+
import { g as Q, a as j } from "../layout-HoBT_Da2.js";
|
|
19
|
+
import { elementResizer as ht } from "../element-resizer/index.js";
|
|
20
|
+
import { windowResizer as rt } from "../window-resizer/index.js";
|
|
21
|
+
import { Notifier as gt } from "../notifier/index.js";
|
|
21
22
|
function mt(i) {
|
|
22
|
-
const
|
|
23
|
+
const e = Math.sqrt(
|
|
23
24
|
i.m11 * i.m11 + i.m12 * i.m12 + i.m13 * i.m13
|
|
24
|
-
),
|
|
25
|
+
), s = Math.sqrt(
|
|
25
26
|
i.m21 * i.m21 + i.m22 * i.m22 + i.m23 * i.m23
|
|
26
|
-
),
|
|
27
|
+
), l = Math.sqrt(
|
|
27
28
|
i.m31 * i.m31 + i.m32 * i.m32 + i.m33 * i.m33
|
|
28
|
-
), b = Math.atan2(i.m32, i.m33),
|
|
29
|
+
), b = Math.atan2(i.m32, i.m33), Z = Math.atan2(
|
|
29
30
|
-i.m31,
|
|
30
31
|
Math.sqrt(i.m32 * i.m32 + i.m33 * i.m33)
|
|
31
|
-
), $ = Math.atan2(i.m21, i.m11), u = i.m41, P = i.m42 * -1,
|
|
32
|
+
), $ = Math.atan2(i.m21, i.m11), u = i.m41, P = i.m42 * -1, V = i.m43;
|
|
32
33
|
return {
|
|
33
|
-
scaleX:
|
|
34
|
-
scaleY:
|
|
35
|
-
scaleZ:
|
|
34
|
+
scaleX: e,
|
|
35
|
+
scaleY: s,
|
|
36
|
+
scaleZ: l,
|
|
36
37
|
rotationX: b,
|
|
37
|
-
rotationY:
|
|
38
|
+
rotationY: Z,
|
|
38
39
|
rotationZ: $,
|
|
39
40
|
translationX: u,
|
|
40
41
|
translationY: P,
|
|
41
|
-
translationZ:
|
|
42
|
+
translationZ: V
|
|
42
43
|
};
|
|
43
44
|
}
|
|
44
|
-
var
|
|
45
|
-
class
|
|
46
|
-
constructor(
|
|
45
|
+
var a, m, z, R, A, L, _, v, W, q, y, x, X, S, d, w, Y, H, B, f, p, g, c, n, o, M, E, I, D, tt, k, nt, K, lt, N, ot, C, U, T;
|
|
46
|
+
class Vt {
|
|
47
|
+
constructor(e, s) {
|
|
47
48
|
h(this, D);
|
|
48
49
|
h(this, k);
|
|
49
|
-
h(this, I);
|
|
50
50
|
h(this, K);
|
|
51
|
-
h(this,
|
|
52
|
-
h(this,
|
|
51
|
+
h(this, N);
|
|
52
|
+
h(this, a, null);
|
|
53
|
+
h(this, m, null);
|
|
53
54
|
h(this, z, []);
|
|
54
|
-
h(this,
|
|
55
|
+
h(this, R, "auto");
|
|
55
56
|
h(this, A, "top");
|
|
56
|
-
h(this,
|
|
57
|
-
h(this,
|
|
58
|
-
h(this,
|
|
57
|
+
h(this, L, !1);
|
|
58
|
+
h(this, _, !0);
|
|
59
|
+
h(this, v, !0);
|
|
59
60
|
h(this, W, !0);
|
|
60
61
|
h(this, q, !0);
|
|
61
62
|
h(this, y, 0);
|
|
62
|
-
h(this,
|
|
63
|
-
h(this,
|
|
63
|
+
h(this, x, 0);
|
|
64
|
+
h(this, X, 0);
|
|
64
65
|
h(this, S, 0);
|
|
65
|
-
h(this,
|
|
66
|
-
h(this,
|
|
66
|
+
h(this, d, 0);
|
|
67
|
+
h(this, w, 0);
|
|
68
|
+
h(this, Y, 0);
|
|
67
69
|
h(this, H, 0);
|
|
68
|
-
h(this, T, 0);
|
|
69
70
|
h(this, B, 0);
|
|
70
|
-
h(this,
|
|
71
|
-
h(this,
|
|
72
|
-
h(this,
|
|
73
|
-
h(this,
|
|
74
|
-
h(this,
|
|
71
|
+
h(this, f, { x: 0, y: 0, z: 0 });
|
|
72
|
+
h(this, p, { x: 0, y: 0, z: 0 });
|
|
73
|
+
h(this, g, { x: 1, y: 1, z: 1 });
|
|
74
|
+
h(this, c, new G({ x: 0, y: 0, z: 0 }));
|
|
75
|
+
h(this, n, new G({ x: 0, y: 0, z: 0 }));
|
|
75
76
|
h(this, o, new G({ x: 0, y: 0, z: 0 }));
|
|
76
|
-
h(this,
|
|
77
|
-
h(this,
|
|
78
|
-
h(this,
|
|
79
|
-
|
|
77
|
+
h(this, M, { x: 0, y: 0, z: 0 });
|
|
78
|
+
h(this, E, /* @__PURE__ */ new Map());
|
|
79
|
+
h(this, I, new gt());
|
|
80
|
+
h(this, C, () => {
|
|
81
|
+
st && O(this, K, lt).call(this);
|
|
80
82
|
});
|
|
81
83
|
h(this, U, () => {
|
|
82
|
-
|
|
84
|
+
O(this, N, ot).call(this), O(this, D, tt).call(this);
|
|
83
85
|
});
|
|
84
|
-
h(this,
|
|
85
|
-
const
|
|
86
|
-
t(this,
|
|
87
|
-
|
|
88
|
-
}),
|
|
89
|
-
if (!t(this,
|
|
90
|
-
const
|
|
91
|
-
t(this,
|
|
86
|
+
h(this, T, () => {
|
|
87
|
+
const e = J.getAll(this.element);
|
|
88
|
+
t(this, E).forEach((s, l) => {
|
|
89
|
+
e.includes(l) || (this.deleteScrollStep(s), t(this, E).delete(l));
|
|
90
|
+
}), e.forEach((s) => {
|
|
91
|
+
if (!t(this, E).has(s)) {
|
|
92
|
+
const l = () => s;
|
|
93
|
+
t(this, E).set(s, l), this.setScrollStep(l);
|
|
92
94
|
}
|
|
93
95
|
});
|
|
94
96
|
});
|
|
95
|
-
st && (r(this,
|
|
97
|
+
st && (r(this, a, it(e) || document.body), r(this, m, it(s == null ? void 0 : s.containerElement) || document.body), r(this, R, (s == null ? void 0 : s.scrollAxis) || "auto"), r(this, A, (s == null ? void 0 : s.frontSide) || "top"), r(this, L, (s == null ? void 0 : s.cartesian) || !1), r(this, _, (s == null ? void 0 : s.sizeStep) !== void 0 ? s.sizeStep : !0), r(this, v, (s == null ? void 0 : s.positionStep) !== void 0 ? s.positionStep : !0), r(this, W, (s == null ? void 0 : s.transformStep) !== void 0 ? s.transformStep : !0), r(this, q, (s == null ? void 0 : s.scrollStep) !== void 0 ? s.scrollStep : !0), t(this, o).setStep("_size", "+", {
|
|
96
98
|
x: 1,
|
|
97
99
|
y: 1,
|
|
98
100
|
z: 1
|
|
99
|
-
}), t(this,
|
|
101
|
+
}), t(this, n).setStep("_position", "+", {
|
|
100
102
|
x: 0,
|
|
101
103
|
y: 0,
|
|
102
104
|
z: 0
|
|
@@ -104,197 +106,221 @@ class Et {
|
|
|
104
106
|
x: 1,
|
|
105
107
|
y: 1,
|
|
106
108
|
z: 1
|
|
107
|
-
}), t(this,
|
|
109
|
+
}), t(this, n).setStep("_translation", "+", {
|
|
108
110
|
x: 0,
|
|
109
111
|
y: 0,
|
|
110
112
|
z: 0
|
|
111
|
-
}), t(this,
|
|
113
|
+
}), t(this, c).setStep("_rotation", "+", {
|
|
112
114
|
x: 0,
|
|
113
115
|
y: 0,
|
|
114
116
|
z: 0
|
|
115
|
-
}), t(this, q) && (J.notifier.subscribe(t(this,
|
|
116
|
-
order:
|
|
117
|
-
culling:
|
|
117
|
+
}), t(this, q) && (J.notifier.subscribe(t(this, T)), t(this, T).call(this)), ht.subscribe(this.element, t(this, C)), rt.subscribe(t(this, C), ft.LAYOUT_BOX), et.subscribe(t(this, U), {
|
|
118
|
+
order: pt.LAYOUT_BOX,
|
|
119
|
+
culling: s != null && s.culling ? this.element : void 0
|
|
118
120
|
}));
|
|
119
121
|
}
|
|
120
122
|
get element() {
|
|
121
|
-
return t(this,
|
|
123
|
+
return t(this, a);
|
|
122
124
|
}
|
|
123
125
|
get containerElement() {
|
|
124
|
-
return t(this,
|
|
126
|
+
return t(this, m);
|
|
125
127
|
}
|
|
126
128
|
get position() {
|
|
127
|
-
return t(this,
|
|
129
|
+
return t(this, n).current;
|
|
128
130
|
}
|
|
129
131
|
get rotation() {
|
|
130
|
-
return t(this,
|
|
132
|
+
return t(this, c).current;
|
|
131
133
|
}
|
|
132
134
|
get scale() {
|
|
133
135
|
return t(this, o).current;
|
|
134
136
|
}
|
|
135
137
|
get scrollValue() {
|
|
136
|
-
return t(this,
|
|
138
|
+
return t(this, M);
|
|
137
139
|
}
|
|
138
140
|
get left() {
|
|
139
|
-
return t(this,
|
|
141
|
+
return t(this, d);
|
|
140
142
|
}
|
|
141
143
|
get top() {
|
|
142
144
|
return t(this, S);
|
|
143
145
|
}
|
|
144
146
|
get CSSTranslation() {
|
|
145
|
-
return t(this,
|
|
147
|
+
return t(this, f);
|
|
146
148
|
}
|
|
147
149
|
get CSSRotation() {
|
|
148
|
-
return t(this,
|
|
150
|
+
return t(this, p);
|
|
149
151
|
}
|
|
150
152
|
get CSSScale() {
|
|
151
|
-
return t(this,
|
|
153
|
+
return t(this, g);
|
|
152
154
|
}
|
|
153
155
|
get front() {
|
|
154
|
-
return t(this,
|
|
156
|
+
return t(this, w);
|
|
155
157
|
}
|
|
156
158
|
get width() {
|
|
157
159
|
return t(this, y);
|
|
158
160
|
}
|
|
159
161
|
get height() {
|
|
160
|
-
return t(this,
|
|
162
|
+
return t(this, x);
|
|
161
163
|
}
|
|
162
164
|
get depth() {
|
|
163
|
-
return t(this,
|
|
165
|
+
return t(this, X);
|
|
164
166
|
}
|
|
165
167
|
destroy() {
|
|
166
|
-
|
|
168
|
+
et.unsubscribe(t(this, U)), ht.unsubscribe(t(this, C)), rt.unsubscribe(t(this, C)), J.notifier.unsubscribe(t(this, T)), t(this, E).clear(), t(this, n).close(), t(this, c).close(), t(this, o).close();
|
|
167
169
|
}
|
|
168
|
-
bindObject(
|
|
169
|
-
|
|
170
|
+
bindObject(e) {
|
|
171
|
+
e.position && t(this, n).bind(e.position), e.rotation && t(this, c).bind(e.rotation), e.scale && t(this, o).bind(e.scale);
|
|
170
172
|
}
|
|
171
|
-
unbindObject(
|
|
172
|
-
|
|
173
|
+
unbindObject(e) {
|
|
174
|
+
e.position && t(this, n).unbind(e.position), e.rotation && t(this, c).unbind(e.rotation), e.scale && t(this, o).unbind(e.scale);
|
|
173
175
|
}
|
|
174
|
-
setScrollStep(
|
|
175
|
-
return t(this, z).includes(
|
|
176
|
+
setScrollStep(e) {
|
|
177
|
+
return t(this, z).includes(e) || t(this, z).push(e), () => this.deleteScrollStep(e);
|
|
176
178
|
}
|
|
177
|
-
deleteScrollStep(
|
|
179
|
+
deleteScrollStep(e) {
|
|
178
180
|
r(this, z, t(this, z).filter(
|
|
179
|
-
(
|
|
181
|
+
(s) => s !== e
|
|
180
182
|
));
|
|
181
183
|
}
|
|
182
|
-
setPositionStep(...
|
|
183
|
-
t(this,
|
|
184
|
+
setPositionStep(...e) {
|
|
185
|
+
t(this, n).setStep(...e);
|
|
186
|
+
}
|
|
187
|
+
getPositionStep(...e) {
|
|
188
|
+
return t(this, n).getStepValue(...e);
|
|
189
|
+
}
|
|
190
|
+
setRotationStep(...e) {
|
|
191
|
+
t(this, c).setStep(...e);
|
|
192
|
+
}
|
|
193
|
+
getRotationStep(...e) {
|
|
194
|
+
return t(this, c).getStepValue(...e);
|
|
195
|
+
}
|
|
196
|
+
getExcludedRotationSteps(...e) {
|
|
197
|
+
return t(this, c).getExcludedStepsValue(...e);
|
|
184
198
|
}
|
|
185
|
-
|
|
186
|
-
return t(this,
|
|
199
|
+
getIncludedRotationSteps(...e) {
|
|
200
|
+
return t(this, c).getIncludedStepsValue(...e);
|
|
187
201
|
}
|
|
188
|
-
|
|
189
|
-
t(this,
|
|
202
|
+
setScaleStep(...e) {
|
|
203
|
+
t(this, o).setStep(...e);
|
|
190
204
|
}
|
|
191
|
-
|
|
192
|
-
return t(this,
|
|
205
|
+
getScaleStep(...e) {
|
|
206
|
+
return t(this, o).getStepValue(...e);
|
|
193
207
|
}
|
|
194
|
-
|
|
195
|
-
t(this, o).
|
|
208
|
+
getExcludedScaleSteps(...e) {
|
|
209
|
+
return t(this, o).getExcludedStepsValue(...e);
|
|
196
210
|
}
|
|
197
|
-
|
|
198
|
-
return t(this, o).
|
|
211
|
+
getIncludedScaleSteps(...e) {
|
|
212
|
+
return t(this, o).getIncludedStepsValue(...e);
|
|
199
213
|
}
|
|
200
|
-
deletePositionStep(...
|
|
201
|
-
t(this,
|
|
214
|
+
deletePositionStep(...e) {
|
|
215
|
+
t(this, n).deleteStep(...e);
|
|
202
216
|
}
|
|
203
|
-
|
|
204
|
-
t(this,
|
|
217
|
+
getExcludedPositionSteps(...e) {
|
|
218
|
+
return t(this, n).getExcludedStepsValue(...e);
|
|
205
219
|
}
|
|
206
|
-
|
|
207
|
-
t(this,
|
|
220
|
+
getIncludedPositionSteps(...e) {
|
|
221
|
+
return t(this, n).getIncludedStepsValue(...e);
|
|
208
222
|
}
|
|
209
|
-
|
|
210
|
-
|
|
223
|
+
deleteRotationStep(...e) {
|
|
224
|
+
t(this, c).deleteStep(...e);
|
|
211
225
|
}
|
|
212
|
-
|
|
213
|
-
t(this,
|
|
226
|
+
deleteScaleStep(...e) {
|
|
227
|
+
t(this, o).deleteStep(...e);
|
|
214
228
|
}
|
|
215
|
-
|
|
216
|
-
return t(this,
|
|
229
|
+
onPosition(...e) {
|
|
230
|
+
return t(this, n).subscribe(...e);
|
|
217
231
|
}
|
|
218
|
-
|
|
219
|
-
t(this,
|
|
232
|
+
offPosition(...e) {
|
|
233
|
+
t(this, n).unsubscribe(...e);
|
|
220
234
|
}
|
|
221
|
-
|
|
222
|
-
return t(this,
|
|
235
|
+
onScale(...e) {
|
|
236
|
+
return t(this, o).subscribe(...e);
|
|
223
237
|
}
|
|
224
|
-
|
|
225
|
-
t(this,
|
|
238
|
+
offScale(...e) {
|
|
239
|
+
t(this, o).unsubscribe(...e);
|
|
240
|
+
}
|
|
241
|
+
onRotation(...e) {
|
|
242
|
+
return t(this, c).subscribe(...e);
|
|
243
|
+
}
|
|
244
|
+
offRotation(...e) {
|
|
245
|
+
t(this, c).unsubscribe(...e);
|
|
246
|
+
}
|
|
247
|
+
onResize(...e) {
|
|
248
|
+
return t(this, I).subscribe(...e);
|
|
249
|
+
}
|
|
250
|
+
offResize(...e) {
|
|
251
|
+
return t(this, I).unsubscribe(...e);
|
|
226
252
|
}
|
|
227
253
|
}
|
|
228
|
-
|
|
229
|
-
t(this, o).calculate(), t(this,
|
|
230
|
-
}, k = new WeakSet(),
|
|
254
|
+
a = new WeakMap(), m = new WeakMap(), z = new WeakMap(), R = new WeakMap(), A = new WeakMap(), L = new WeakMap(), _ = new WeakMap(), v = new WeakMap(), W = new WeakMap(), q = new WeakMap(), y = new WeakMap(), x = new WeakMap(), X = new WeakMap(), S = new WeakMap(), d = new WeakMap(), w = new WeakMap(), Y = new WeakMap(), H = new WeakMap(), B = new WeakMap(), f = new WeakMap(), p = new WeakMap(), g = new WeakMap(), c = new WeakMap(), n = new WeakMap(), o = new WeakMap(), M = new WeakMap(), E = new WeakMap(), I = new WeakMap(), D = new WeakSet(), tt = function() {
|
|
255
|
+
t(this, o).calculate(), t(this, n).calculate(), t(this, c).calculate();
|
|
256
|
+
}, k = new WeakSet(), nt = function() {
|
|
231
257
|
t(this, o).setStep("_size", "+", {
|
|
232
|
-
x: t(this,
|
|
233
|
-
y: t(this,
|
|
234
|
-
z: t(this,
|
|
258
|
+
x: t(this, _) ? t(this, y) : 1,
|
|
259
|
+
y: t(this, _) ? t(this, x) : 1,
|
|
260
|
+
z: t(this, _) ? t(this, X) : 1
|
|
235
261
|
});
|
|
236
|
-
const
|
|
237
|
-
t(this,
|
|
238
|
-
x:
|
|
239
|
-
y:
|
|
240
|
-
z:
|
|
262
|
+
const e = t(this, v) ? t(this, Y) : 0, s = t(this, v) ? t(this, H) : 0, l = t(this, v) ? t(this, B) : 0;
|
|
263
|
+
t(this, n).setStep("_position", "+", {
|
|
264
|
+
x: e,
|
|
265
|
+
y: s,
|
|
266
|
+
z: l
|
|
241
267
|
}), t(this, W) ? (t(this, o).setStep("_scale", "*", {
|
|
268
|
+
x: t(this, g).x,
|
|
269
|
+
y: t(this, g).y,
|
|
270
|
+
z: t(this, g).z
|
|
271
|
+
}), t(this, n).setStep("_translation", "+", {
|
|
272
|
+
x: t(this, f).x,
|
|
273
|
+
y: t(this, f).y,
|
|
274
|
+
z: t(this, f).z
|
|
275
|
+
}), t(this, c).setStep("_rotation", "+", {
|
|
242
276
|
x: t(this, p).x,
|
|
243
277
|
y: t(this, p).y,
|
|
244
278
|
z: t(this, p).z
|
|
245
|
-
}), t(this, l).setStep("_translation", "+", {
|
|
246
|
-
x: t(this, d).x,
|
|
247
|
-
y: t(this, d).y,
|
|
248
|
-
z: t(this, d).z
|
|
249
|
-
}), t(this, a).setStep("_rotation", "+", {
|
|
250
|
-
x: t(this, m).x,
|
|
251
|
-
y: t(this, m).y,
|
|
252
|
-
z: t(this, m).z
|
|
253
279
|
})) : (t(this, o).setStep("_scale", "*", {
|
|
254
280
|
x: 1,
|
|
255
281
|
y: 1,
|
|
256
282
|
z: 1
|
|
257
|
-
}), t(this,
|
|
283
|
+
}), t(this, n).setStep("_translation", "+", {
|
|
258
284
|
x: 0,
|
|
259
285
|
y: 0,
|
|
260
286
|
z: 0
|
|
261
|
-
}), t(this,
|
|
287
|
+
}), t(this, c).setStep("_rotation", "+", {
|
|
262
288
|
x: 0,
|
|
263
289
|
y: 0,
|
|
264
290
|
z: 0
|
|
265
291
|
}));
|
|
266
|
-
},
|
|
267
|
-
const
|
|
268
|
-
r(this, y, Math.max(t(this,
|
|
269
|
-
|
|
292
|
+
}, K = new WeakSet(), lt = function() {
|
|
293
|
+
const e = getComputedStyle(t(this, a));
|
|
294
|
+
r(this, y, Math.max(t(this, a).clientWidth, 1)), r(this, x, Math.max(t(this, a).clientHeight, 1)), r(this, X, Math.max(
|
|
295
|
+
dt.parse(e.getPropertyValue("--depth") || "0px"),
|
|
270
296
|
1
|
|
271
297
|
));
|
|
272
|
-
const
|
|
273
|
-
if (r(this,
|
|
274
|
-
const P = t(this,
|
|
275
|
-
r(this,
|
|
276
|
-
}
|
|
277
|
-
if (r(this,
|
|
278
|
-
const P = Math.round(b / 2),
|
|
279
|
-
r(this,
|
|
298
|
+
const s = Q(t(this, m)), l = j(t(this, m)), b = t(this, m).clientWidth, Z = t(this, m).clientHeight;
|
|
299
|
+
if (r(this, d, Q(t(this, a)) - s), r(this, S, j(t(this, a)) - l), t(this, R) === "z") {
|
|
300
|
+
const P = t(this, d) / b, V = t(this, S) / Z;
|
|
301
|
+
r(this, d, (P - Math.floor(P)) * b), r(this, S, (V - Math.floor(V)) * Z), t(this, A) === "left" ? r(this, w, Q(t(this, a)) - s - t(this, d)) : r(this, w, j(t(this, a)) - l - t(this, S));
|
|
302
|
+
}
|
|
303
|
+
if (r(this, d, t(this, d) + t(this, a).clientLeft), r(this, S, t(this, S) + t(this, a).clientTop), t(this, L)) {
|
|
304
|
+
const P = Math.round(b / 2), V = Math.round(Z / 2), ct = t(this, y) ? Math.round(t(this, y) / 2) : 0, at = t(this, x) ? Math.round(t(this, x) / 2) : 0, ut = t(this, d) - P + ct, St = (t(this, S) - V + at) * -1;
|
|
305
|
+
r(this, Y, ut), r(this, H, St);
|
|
280
306
|
} else
|
|
281
|
-
r(this,
|
|
282
|
-
r(this, B, t(this,
|
|
283
|
-
const $ = new WebKitCSSMatrix(
|
|
284
|
-
t(this,
|
|
285
|
-
},
|
|
286
|
-
t(this,
|
|
287
|
-
for (let
|
|
288
|
-
const
|
|
289
|
-
let
|
|
290
|
-
t(this,
|
|
291
|
-
const b =
|
|
292
|
-
t(this,
|
|
293
|
-
[
|
|
307
|
+
r(this, Y, t(this, d)), r(this, H, t(this, S));
|
|
308
|
+
r(this, B, t(this, w) * -1);
|
|
309
|
+
const $ = new WebKitCSSMatrix(e.transform), u = mt($);
|
|
310
|
+
t(this, f).x = u.translationX, t(this, f).y = u.translationY, t(this, f).z = u.translationZ, t(this, g).x = u.scaleX, t(this, g).y = u.scaleY, t(this, g).z = u.scaleZ, t(this, p).x = u.rotationX, t(this, p).y = u.rotationY, t(this, p).z = u.rotationZ, O(this, k, nt).call(this), O(this, D, tt).call(this), t(this, I).notify();
|
|
311
|
+
}, N = new WeakSet(), ot = function() {
|
|
312
|
+
t(this, M).x = 0, t(this, M).y = 0, t(this, M).z = 0;
|
|
313
|
+
for (let e = 0; e < t(this, z).length; e++) {
|
|
314
|
+
const s = t(this, z)[e]();
|
|
315
|
+
let l = s.axis;
|
|
316
|
+
t(this, R) !== "auto" && (l = t(this, R));
|
|
317
|
+
const b = s.value * (l === "x" ? -1 : t(this, L) ? 1 : -1);
|
|
318
|
+
t(this, M)[l] += b, t(this, n).setStep(`_scroll_${e}`, "+", {
|
|
319
|
+
[l]: b
|
|
294
320
|
});
|
|
295
321
|
}
|
|
296
|
-
},
|
|
322
|
+
}, C = new WeakMap(), U = new WeakMap(), T = new WeakMap();
|
|
297
323
|
export {
|
|
298
|
-
|
|
324
|
+
Vt as LayoutBox,
|
|
299
325
|
mt as decomposeCSSMatrix
|
|
300
326
|
};
|
package/lib/media/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var d=(e,r,s)=>{if(!r.has(e))throw TypeError("Cannot "+s)};var o=(e,r,s)=>(d(e,r,"read from private field"),s?s.call(e):r.get(e)),c=(e,r,s)=>{if(r.has(e))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(e):r.set(e,s)},u=(e,r,s,n)=>(d(e,r,"write to private field"),n?n.call(e,s):r.set(e,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../order/index.cjs"),l=require("../window-resizer/index.cjs"),h=require("../Store-
|
|
1
|
+
"use strict";var d=(e,r,s)=>{if(!r.has(e))throw TypeError("Cannot "+s)};var o=(e,r,s)=>(d(e,r,"read from private field"),s?s.call(e):r.get(e)),c=(e,r,s)=>{if(r.has(e))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(e):r.set(e,s)},u=(e,r,s,n)=>(d(e,r,"write to private field"),n?n.call(e,s):r.set(e,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../order/index.cjs"),l=require("../window-resizer/index.cjs"),h=require("../Store-6s0YXK4o.cjs");var i,t;class b extends h.Store{constructor(s){super(!1);c(this,i,void 0);c(this,t,void 0);u(this,i,s),u(this,t,l.windowResizer.subscribe(()=>{matchMedia(o(this,i)).matches?this.current=!0:this.current=!1},a.RESIZE_ORDER.MEDIA))}close(){super.close(),o(this,t).call(this)}}i=new WeakMap,t=new WeakMap;exports.Media=b;
|
package/lib/media/index.js
CHANGED
|
@@ -9,7 +9,7 @@ var o = (e, s, r) => (a(e, s, "read from private field"), r ? r.call(e) : s.get(
|
|
|
9
9
|
}, u = (e, s, r, m) => (a(e, s, "write to private field"), m ? m.call(e, r) : s.set(e, r), r);
|
|
10
10
|
import { RESIZE_ORDER as h } from "../order/index.js";
|
|
11
11
|
import { windowResizer as n } from "../window-resizer/index.js";
|
|
12
|
-
import { S as f } from "../Store-
|
|
12
|
+
import { S as f } from "../Store-BI2xxXOA.js";
|
|
13
13
|
var t, i;
|
|
14
14
|
class b extends f {
|
|
15
15
|
constructor(r) {
|
package/lib/modal/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../custom-element/index.cjs");require("../Store-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../custom-element/index.cjs");require("../Store-6s0YXK4o.cjs");const v=require("../browser-CpzFX2xg.cjs"),n=require("../tags-ld5jemJw.cjs"),b=require("../createStylesheet-p23sZ7Ey.cjs"),m=require("../popover/index.cjs"),g=require("../theme/index.cjs");var w=Object.defineProperty,_=Object.getOwnPropertyDescriptor,y=(t,e,o,s)=>{for(var r=s>1?void 0:s?_(e,o):e,c=t.length-1,d;c>=0;c--)(d=t[c])&&(r=(s?d(e,o,r):d(r))||r);return s&&r&&w(e,o,r),r},f=(t,e,o)=>{if(!e.has(t))throw TypeError("Cannot "+o)},l=(t,e,o)=>(f(t,e,"read from private field"),o?o.call(t):e.get(t)),h=(t,e,o)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,o)},u=(t,e,o,s)=>(f(t,e,"write to private field"),e.set(t,o),o),i,a;const C=b.createStylesheet({":host":{position:"fixed",top:"0",left:"0",zIndex:"1",width:"100%",height:"100%",transitionProperty:"opacity",transitionDuration:"var(--duration-short)"},":host::before":{content:'""',position:"fixed",top:"0",left:"0",zIndex:"-1",width:"100%",height:"100%",backgroundColor:"var(--backdrop, rgba(0, 0, 0, 0.8))"},".inner":{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden auto"},".overflow .inner":{alignItems:"flex-start"},".content":{position:"relative"},".close-button":{position:"absolute",zIndex:"1",top:"var(--close-button-top, 0.5em)",right:"var(--close-button-right, 0.5em)",background:"none",border:"none",fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit"},".close-button-default":{width:"var(--close-button-size, 1.5em)",height:"var(--close-button-size, 1.5em)",display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"transform",transitionDuration:"var(--duration-short)",willChange:"transform"},".close-button:hover .close-button-default":{transform:"scale(0.9)"},".close-button:active .close-button-default":{transform:"scale(0.7)"},".close-button-default::before, .close-button-default::after":{content:'""',position:"absolute",width:"var(--close-button-thickness, 0.1em)",height:"100%",backgroundColor:`var(--close-button-color, ${g.aptechkaTheme.colorMain.var})`},".close-button-default::before":{transform:"rotate(-45deg)"},".close-button-default::after":{transform:"rotate(45deg)"}});exports.ModalElement=class extends m.PopoverElement{constructor(){super(),h(this,i,null),h(this,a,null),v.isBrowser&&(this.openShadow(C),n.element(this,{children:n.div({class:"inner",outside:!0,children:n.div({class:"content",children:[n.element("e-popover-button",{type:"close",target:this.id,class:"close-button",lightChildren:[n.slot({name:"close-button",children:n.span({class:"close-button-default"})})]}),n.slot()]}),ref:e=>u(this,a,e)})}),u(this,i,new ResizeObserver(()=>{l(this,a).scrollHeight>l(this,a).clientHeight?this.classList.add("overflow"):this.classList.remove("overflow")})))}connectedCallback(){super.connectedCallback(),l(this,i).observe(this)}disconnectedCallback(){super.disconnectedCallback(),l(this,i).disconnect()}};i=new WeakMap;a=new WeakMap;exports.ModalElement=y([p.define("e-modal")],exports.ModalElement);
|
package/lib/modal/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { define as
|
|
2
|
-
import "../Store-
|
|
1
|
+
import { define as m } from "../custom-element/index.js";
|
|
2
|
+
import "../Store-BI2xxXOA.js";
|
|
3
3
|
import { i as g } from "../browser-0zX67oeU.js";
|
|
4
|
-
import { e as h, D as d,
|
|
5
|
-
import { c as _ } from "../createStylesheet-
|
|
6
|
-
import { PopoverElement as
|
|
7
|
-
import { aptechkaTheme as
|
|
8
|
-
var x = Object.defineProperty, k = Object.getOwnPropertyDescriptor, z = (t, e, o,
|
|
9
|
-
for (var
|
|
10
|
-
(c = t[l]) && (
|
|
11
|
-
return
|
|
12
|
-
},
|
|
4
|
+
import { e as h, D as d, ax as f, aA as w } from "../tags-BqJKcIve.js";
|
|
5
|
+
import { c as _ } from "../createStylesheet-CR_yi5tp.js";
|
|
6
|
+
import { PopoverElement as C } from "../popover/index.js";
|
|
7
|
+
import { aptechkaTheme as y } from "../theme/index.js";
|
|
8
|
+
var x = Object.defineProperty, k = Object.getOwnPropertyDescriptor, z = (t, e, o, n) => {
|
|
9
|
+
for (var r = n > 1 ? void 0 : n ? k(e, o) : e, l = t.length - 1, c; l >= 0; l--)
|
|
10
|
+
(c = t[l]) && (r = (n ? c(e, o, r) : c(r)) || r);
|
|
11
|
+
return n && r && x(e, o, r), r;
|
|
12
|
+
}, b = (t, e, o) => {
|
|
13
13
|
if (!e.has(t))
|
|
14
14
|
throw TypeError("Cannot " + o);
|
|
15
|
-
}, a = (t, e, o) => (
|
|
15
|
+
}, a = (t, e, o) => (b(t, e, "read from private field"), o ? o.call(t) : e.get(t)), u = (t, e, o) => {
|
|
16
16
|
if (e.has(t))
|
|
17
17
|
throw TypeError("Cannot add the same private member more than once");
|
|
18
18
|
e instanceof WeakSet ? e.add(t) : e.set(t, o);
|
|
19
|
-
}, p = (t, e, o,
|
|
19
|
+
}, p = (t, e, o, n) => (b(t, e, "write to private field"), e.set(t, o), o), s, i;
|
|
20
20
|
const P = _({
|
|
21
21
|
":host": {
|
|
22
22
|
position: "fixed",
|
|
@@ -84,7 +84,7 @@ const P = _({
|
|
|
84
84
|
position: "absolute",
|
|
85
85
|
width: "var(--close-button-thickness, 0.1em)",
|
|
86
86
|
height: "100%",
|
|
87
|
-
backgroundColor: `var(--close-button-color, ${
|
|
87
|
+
backgroundColor: `var(--close-button-color, ${y.colorMain.var})`
|
|
88
88
|
},
|
|
89
89
|
".close-button-default::before": {
|
|
90
90
|
transform: "rotate(-45deg)"
|
|
@@ -93,7 +93,7 @@ const P = _({
|
|
|
93
93
|
transform: "rotate(45deg)"
|
|
94
94
|
}
|
|
95
95
|
});
|
|
96
|
-
let v = class extends
|
|
96
|
+
let v = class extends C {
|
|
97
97
|
constructor() {
|
|
98
98
|
super(), u(this, s, null), u(this, i, null), g && (this.openShadow(P), h(this, {
|
|
99
99
|
children: d({
|
|
@@ -132,7 +132,7 @@ let v = class extends y {
|
|
|
132
132
|
s = /* @__PURE__ */ new WeakMap();
|
|
133
133
|
i = /* @__PURE__ */ new WeakMap();
|
|
134
134
|
v = z([
|
|
135
|
-
|
|
135
|
+
m("e-modal")
|
|
136
136
|
], v);
|
|
137
137
|
export {
|
|
138
138
|
v as ModalElement
|
package/lib/morph/Morph.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { ChangeHistoryAction } from '../utils';
|
|
1
2
|
import { Link } from './Link';
|
|
2
3
|
|
|
3
|
-
export type MorphHistoryAction = 'replace' | 'push' | 'none';
|
|
4
4
|
export interface MorphParameters {
|
|
5
5
|
base?: string;
|
|
6
6
|
waitForHeadToLoad?: boolean;
|
|
@@ -33,5 +33,5 @@ export declare class Morph {
|
|
|
33
33
|
beforeNavigationEvent(callback: MorphNavigationCallback): () => void;
|
|
34
34
|
afterNavigationEvent(callback: MorphNavigationCallback): () => void;
|
|
35
35
|
prefetch(path: string): Promise<Document>;
|
|
36
|
-
navigate(path: string, historyAction?:
|
|
36
|
+
navigate(path: string, historyAction?: ChangeHistoryAction): Promise<void>;
|
|
37
37
|
}
|