aptechka 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{Animation-BCA-DBje.cjs → Animation-BInSRYNr.cjs} +1 -1
- package/lib/{Animation-DrSYnbgb.js → Animation-uimN7sdT.js} +1 -1
- package/lib/{Composed-pnupzTOv.js → Composed-Fa7owymK.js} +1 -1
- package/lib/{Composed-7Fe7TW_T.cjs → Composed-Iihn8fT4.cjs} +1 -1
- package/lib/{Damped-CSEZ0qwp.cjs → Damped-Da3EnNN4.cjs} +1 -1
- package/lib/{Damped-C2FuK_3K.js → Damped-yrNXlkDE.js} +1 -1
- package/lib/{Derived-Dko3EP7m.cjs → Derived-D9VrDuf9.cjs} +1 -1
- package/lib/{Derived-CFnbeEgJ.js → Derived-DIWinC7Y.js} +1 -1
- package/lib/ElementConstructor-OK-6OPjh.cjs +1 -0
- package/lib/{ElementConstructor-CZKbNIQK.js → ElementConstructor-rValMo8f.js} +94 -88
- package/lib/{SourceManager-CmhlHGx7.js → SourceManager--L_rA28b.js} +1 -1
- package/lib/{SourceManager-DYnGpBi1.cjs → SourceManager-D6D2LVKf.cjs} +1 -1
- package/lib/{Store-kzJycezD.cjs → Store-Cr3VaD9G.cjs} +1 -1
- package/lib/{Store-Dsft7GtM.js → Store-Qr3SNOSf.js} +1 -1
- package/lib/{Tweened-BrD2cPSC.js → Tweened-CjgvoOwL.js} +1 -1
- package/lib/{Tweened-D6dAu8Zi.cjs → Tweened-DksN-Rz6.cjs} +1 -1
- package/lib/{Viewport-DRNfjjDY.cjs → Viewport-BBYt1Ivy.cjs} +1 -1
- package/lib/{Viewport-Ud7nellV.js → Viewport-Cgtq2I_K.js} +1 -1
- package/lib/{_createStore-Cf1MyeHa.cjs → _createStore-C75y9luu.cjs} +1 -1
- package/lib/_createStore-D3qHYaSz.js +12 -0
- 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 +1 -1
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.d.ts +3 -3
- package/lib/canvas/index.js +4 -4
- package/lib/checkbox/index.cjs +1 -1
- package/lib/checkbox/index.js +14 -13
- package/lib/class-linked-status/index.cjs +1 -1
- package/lib/class-linked-status/index.js +1 -1
- package/lib/connector/index.cjs +1 -1
- package/lib/connector/index.d.ts +2 -2
- package/lib/connector/index.js +39 -34
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +2 -2
- package/lib/{createStylesheet-Di9WRypw.cjs → createStylesheet-9nksoWW0.cjs} +1 -1
- package/lib/{createStylesheet-C2gpLy4r.js → createStylesheet-BrFGJ8Q7.js} +1 -1
- package/lib/css-property/index.cjs +1 -1
- package/lib/css-property/index.js +1 -1
- 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 +6 -5
- package/lib/element-constructor/index.cjs +1 -1
- package/lib/element-constructor/index.js +3 -3
- package/lib/en3/helpers/index.cjs +1 -1
- package/lib/en3/helpers/index.js +2 -2
- package/lib/en3/misc/index.cjs +1 -1
- package/lib/en3/misc/index.js +2 -2
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +1 -1
- package/lib/{index-BtB-3MG7.js → index-3R8YL-P3.js} +22 -21
- package/lib/index-CyQAdqFu.cjs +9 -0
- package/lib/instantiate-BuVJ8pIJ.cjs +1 -0
- package/lib/{instantiate-BPZZn8jK.js → instantiate-TYteKsII.js} +7 -7
- package/lib/jsx/hooks/animation/createDamped.d.ts +3 -0
- package/lib/jsx/hooks/animation/createTweened.d.ts +3 -0
- package/lib/jsx/hooks/animation/index.cjs +1 -0
- package/lib/jsx/hooks/animation/index.d.ts +2 -0
- package/lib/jsx/hooks/animation/index.js +15 -0
- package/lib/jsx/hooks/basic/createRef.d.ts +3 -0
- package/lib/jsx/hooks/basic/onStoreChange.d.ts +3 -0
- package/lib/jsx/hooks/store/createCached.d.ts +3 -0
- package/lib/jsx/hooks/store/createDerived.d.ts +1 -1
- package/lib/jsx/hooks/store/index.cjs +1 -1
- package/lib/jsx/hooks/store/index.d.ts +1 -0
- package/lib/jsx/hooks/store/index.js +20 -16
- package/lib/jsx/index.cjs +1 -1
- package/lib/jsx/index.d.ts +5 -3
- package/lib/jsx/index.js +73 -58
- package/lib/jsx/type.d.ts +10 -4
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +1 -1
- 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 +4 -3
- package/lib/order/index.cjs +1 -1
- package/lib/order/index.d.ts +5 -4
- package/lib/order/index.js +1 -1
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +2 -2
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +3 -2
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.js +1 -1
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +7 -7
- 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/Cached.d.ts +13 -0
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.d.ts +1 -1
- package/lib/store/index.js +66 -32
- package/lib/{tags-BBOGIzDK.cjs → tags-BosXYPYv.cjs} +1 -1
- package/lib/{tags-CefGDQtF.js → tags-D0kLlFdQ.js} +1 -1
- package/lib/theme/index.cjs +1 -1
- package/lib/theme/index.js +3 -2
- package/lib/tweaker/index.cjs +2 -2
- package/lib/tweaker/index.js +6 -5
- package/lib/utils/bytes.d.ts +1 -0
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +122 -105
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +1 -1
- package/package.json +9 -1
- package/lib/ElementConstructor-9S0f1yAH.cjs +0 -1
- package/lib/Resource-BhF6Tj1p.js +0 -49
- package/lib/Resource-WCQEgLpB.cjs +0 -1
- package/lib/_createStore-Ck9bHolX.js +0 -12
- package/lib/index-DQo2-dnB.cjs +0 -9
- package/lib/instantiate-BWM-ipPW.cjs +0 -1
- package/lib/store/Keyed.d.ts +0 -13
|
@@ -1,27 +1,31 @@
|
|
|
1
|
-
import { S as
|
|
2
|
-
import { C as
|
|
3
|
-
import { _ as r } from "../../../_createStore-
|
|
4
|
-
import { D as n } from "../../../Derived-
|
|
5
|
-
import {
|
|
6
|
-
function
|
|
7
|
-
return r(new
|
|
1
|
+
import { S as t } from "../../../Store-Qr3SNOSf.js";
|
|
2
|
+
import { C as o } from "../../../Composed-Fa7owymK.js";
|
|
3
|
+
import { _ as r } from "../../../_createStore-D3qHYaSz.js";
|
|
4
|
+
import { D as n } from "../../../Derived-DIWinC7Y.js";
|
|
5
|
+
import { DerivedArray as c, Cached as a, Resource as i } from "../../../store/index.js";
|
|
6
|
+
function s(...e) {
|
|
7
|
+
return r(new o(...e));
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function w(...e) {
|
|
10
10
|
return r(new n(...e));
|
|
11
11
|
}
|
|
12
|
+
function C(...e) {
|
|
13
|
+
return r(new c(...e));
|
|
14
|
+
}
|
|
12
15
|
function D(...e) {
|
|
13
16
|
return r(new a(...e));
|
|
14
17
|
}
|
|
15
|
-
function
|
|
18
|
+
function v(...e) {
|
|
16
19
|
return r(new i(...e));
|
|
17
20
|
}
|
|
18
|
-
function
|
|
19
|
-
return r(new
|
|
21
|
+
function S(...e) {
|
|
22
|
+
return r(new t(...e));
|
|
20
23
|
}
|
|
21
24
|
export {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
v as
|
|
25
|
+
D as createCached,
|
|
26
|
+
s as createComposed,
|
|
27
|
+
w as createDerived,
|
|
28
|
+
C as createDerivedArray,
|
|
29
|
+
v as createResource,
|
|
30
|
+
S as createStore
|
|
27
31
|
};
|
package/lib/jsx/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var g=Object.defineProperty,
|
|
1
|
+
"use strict";var g=Object.defineProperty,R=Object.defineProperties;var p=Object.getOwnPropertyDescriptors;var h=Object.getOwnPropertySymbols;var E=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable;var f=(t,e,n)=>e in t?g(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,i=(t,e)=>{for(var n in e||(e={}))E.call(e,n)&&f(t,n,e[n]);if(h)for(var n of h(e))x.call(e,n)&&f(t,n,e[n]);return t},m=(t,e)=>R(t,p(e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../instantiate-BuVJ8pIJ.cjs"),o=require("../globals-bYKki-b9.cjs");require("../Store-Cr3VaD9G.cjs");require("../ticker/index.cjs");const d=require("../_createStore-C75y9luu.cjs"),w=require("../tags-BosXYPYv.cjs"),C=require("../createStylesheet-9nksoWW0.cjs"),S=require("../onConnect-DGP866cj.cjs");function q(t,e){((e==null?void 0:e.containerElement)||document.body).appendChild(a.instantiate(t,e))}function v(t,e=null,...n){return a.h(t,m(i({},e),{__register:!0}),...n)}function T(){return o.currentComponentElement.value.attachInternals()}function b(t){return o.currentComponentElement.value.attachShadow(i({mode:"open"},t))}function _(t){o.currentComponentElement.value.shadowRoot&&o.currentComponentElement.value.shadowRoot.adoptedStyleSheets.push(C.createStylesheet(t)),S.onConnect(e=>{if(e.shadowRoot)return;const n=e.getRootNode();if(n===document){const c=w.style(t).node;if(![...document.head.querySelectorAll("style")].find(r=>r.outerHTML===c.outerHTML))return document.head.appendChild(c),()=>{c.remove()}}else if(n instanceof ShadowRoot){const c=C.createStylesheet(t),s=[];return n.adoptedStyleSheets.filter(r=>{const y=Array.from(r.cssRules);Array.from(c.cssRules).filter(u=>!y.find(l=>l.cssText===u.cssText)).forEach(u=>{const l=r.insertRule(u.cssText);s.push(()=>{r.deleteRule(l)})})}),()=>{s.forEach(r=>r())}}})}function M(t){const e=o.contextStack.value.find(n=>n.has(t));if(e)return e.get(t)}function A(t,e){o.currentComponentElement.value.createContext(t,e)}function D(t){return{current:t}}function I(t,e){const n=t.subscribe(e);d.onDisconnect(()=>{n()})}exports.Fragment=a.Fragment;exports.h=a.h;exports.instantiate=a.instantiate;exports.currentComponentElement=o.currentComponentElement;exports._createStore=d._createStore;exports.onDisconnect=d.onDisconnect;exports.onConnect=S.onConnect;exports.attachInternals=T;exports.attachShadow=b;exports.attachStylesheet=_;exports.createContext=A;exports.createRef=D;exports.getContext=M;exports.onStoreChange=I;exports.register=v;exports.render=q;
|
package/lib/jsx/index.d.ts
CHANGED
|
@@ -5,9 +5,11 @@ export { render } from './render';
|
|
|
5
5
|
export { instantiate } from './instantiate';
|
|
6
6
|
export { register } from './register';
|
|
7
7
|
export { _createStore } from './hooks/basic/_createStore';
|
|
8
|
-
export { onConnect } from './hooks/basic/onConnect';
|
|
9
|
-
export { getContext, createContext } from './hooks/basic/createContext';
|
|
10
|
-
export { onDisconnect } from './hooks/basic/onDisconnect';
|
|
11
8
|
export { attachInternals } from './hooks/basic/attachInternals';
|
|
12
9
|
export { attachShadow } from './hooks/basic/attachShadow';
|
|
13
10
|
export { attachStylesheet } from './hooks/basic/attachStylesheet';
|
|
11
|
+
export { getContext, createContext } from './hooks/basic/createContext';
|
|
12
|
+
export { createRef } from './hooks/basic/createRef';
|
|
13
|
+
export { onConnect } from './hooks/basic/onConnect';
|
|
14
|
+
export { onDisconnect } from './hooks/basic/onDisconnect';
|
|
15
|
+
export { onStoreChange } from './hooks/basic/onStoreChange';
|
package/lib/jsx/index.js
CHANGED
|
@@ -1,91 +1,106 @@
|
|
|
1
1
|
var p = Object.defineProperty, y = Object.defineProperties;
|
|
2
|
-
var
|
|
2
|
+
var R = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var i = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var
|
|
7
|
-
|
|
4
|
+
var x = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var f = (t, e, n) => e in t ? p(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, l = (t, e) => {
|
|
6
|
+
for (var n in e || (e = {}))
|
|
7
|
+
x.call(e, n) && f(t, n, e[n]);
|
|
8
8
|
if (i)
|
|
9
|
-
for (var
|
|
10
|
-
S.call(e,
|
|
9
|
+
for (var n of i(e))
|
|
10
|
+
S.call(e, n) && f(t, n, e[n]);
|
|
11
11
|
return t;
|
|
12
|
-
},
|
|
13
|
-
import { i as
|
|
14
|
-
import { F as
|
|
15
|
-
import {
|
|
16
|
-
import "../Store-
|
|
17
|
-
import
|
|
18
|
-
import { o as v } from "../
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
|
|
22
|
-
|
|
12
|
+
}, d = (t, e) => y(t, R(e));
|
|
13
|
+
import { i as C, h as g } from "../instantiate-TYteKsII.js";
|
|
14
|
+
import { F as V } from "../instantiate-TYteKsII.js";
|
|
15
|
+
import { c as a, a as w } from "../globals-DMjysUXI.js";
|
|
16
|
+
import "../Store-Qr3SNOSf.js";
|
|
17
|
+
import "../ticker/index.js";
|
|
18
|
+
import { o as v } from "../_createStore-D3qHYaSz.js";
|
|
19
|
+
import { _ as X } from "../_createStore-D3qHYaSz.js";
|
|
20
|
+
import { aC as E } from "../tags-D0kLlFdQ.js";
|
|
21
|
+
import { c as m } from "../createStylesheet-BrFGJ8Q7.js";
|
|
22
|
+
import { o as T } from "../onConnect-y5DrxJ9P.js";
|
|
23
|
+
function q(t, e) {
|
|
24
|
+
((e == null ? void 0 : e.containerElement) || document.body).appendChild(C(t, e));
|
|
23
25
|
}
|
|
24
|
-
function
|
|
25
|
-
return
|
|
26
|
+
function D(t, e = null, ...n) {
|
|
27
|
+
return g(t, d(l({}, e), { __register: !0 }), ...n);
|
|
26
28
|
}
|
|
27
|
-
function
|
|
28
|
-
const e = g.value.find(
|
|
29
|
-
(o) => o.has(t)
|
|
30
|
-
);
|
|
31
|
-
if (e)
|
|
32
|
-
return e.get(t);
|
|
33
|
-
}
|
|
34
|
-
function D(t, e) {
|
|
35
|
-
a.value.createContext(t, e);
|
|
36
|
-
}
|
|
37
|
-
function b() {
|
|
29
|
+
function z() {
|
|
38
30
|
return a.value.attachInternals();
|
|
39
31
|
}
|
|
40
|
-
function z(t) {
|
|
41
|
-
return a.value.attachShadow(u({ mode: "open" }, t));
|
|
42
|
-
}
|
|
43
32
|
function B(t) {
|
|
33
|
+
return a.value.attachShadow(l({ mode: "open" }, t));
|
|
34
|
+
}
|
|
35
|
+
function G(t) {
|
|
44
36
|
a.value.shadowRoot && a.value.shadowRoot.adoptedStyleSheets.push(
|
|
45
37
|
m(t)
|
|
46
|
-
),
|
|
38
|
+
), T((e) => {
|
|
47
39
|
if (e.shadowRoot)
|
|
48
40
|
return;
|
|
49
|
-
const
|
|
50
|
-
if (
|
|
41
|
+
const n = e.getRootNode();
|
|
42
|
+
if (n === document) {
|
|
51
43
|
const r = E(t).node;
|
|
52
|
-
if (![...document.head.querySelectorAll("style")].find((
|
|
44
|
+
if (![...document.head.querySelectorAll("style")].find((o) => o.outerHTML === r.outerHTML))
|
|
53
45
|
return document.head.appendChild(r), () => {
|
|
54
46
|
r.remove();
|
|
55
47
|
};
|
|
56
|
-
} else if (
|
|
48
|
+
} else if (n instanceof ShadowRoot) {
|
|
57
49
|
const r = m(t), s = [];
|
|
58
|
-
return
|
|
59
|
-
const h = Array.from(
|
|
50
|
+
return n.adoptedStyleSheets.filter((o) => {
|
|
51
|
+
const h = Array.from(o.cssRules);
|
|
60
52
|
Array.from(r.cssRules).filter(
|
|
61
53
|
(c) => !h.find(
|
|
62
|
-
(
|
|
54
|
+
(u) => u.cssText === c.cssText
|
|
63
55
|
)
|
|
64
56
|
).forEach((c) => {
|
|
65
|
-
const
|
|
57
|
+
const u = o.insertRule(c.cssText);
|
|
66
58
|
s.push(() => {
|
|
67
|
-
|
|
59
|
+
o.deleteRule(u);
|
|
68
60
|
});
|
|
69
61
|
});
|
|
70
62
|
}), () => {
|
|
71
|
-
s.forEach((
|
|
63
|
+
s.forEach((o) => o());
|
|
72
64
|
};
|
|
73
65
|
}
|
|
74
66
|
});
|
|
75
67
|
}
|
|
68
|
+
function J(t) {
|
|
69
|
+
const e = w.value.find(
|
|
70
|
+
(n) => n.has(t)
|
|
71
|
+
);
|
|
72
|
+
if (e)
|
|
73
|
+
return e.get(t);
|
|
74
|
+
}
|
|
75
|
+
function K(t, e) {
|
|
76
|
+
a.value.createContext(t, e);
|
|
77
|
+
}
|
|
78
|
+
function O(t) {
|
|
79
|
+
return {
|
|
80
|
+
current: t
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
function P(t, e) {
|
|
84
|
+
const n = t.subscribe(e);
|
|
85
|
+
v(() => {
|
|
86
|
+
n();
|
|
87
|
+
});
|
|
88
|
+
}
|
|
76
89
|
export {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
90
|
+
V as Fragment,
|
|
91
|
+
X as _createStore,
|
|
92
|
+
z as attachInternals,
|
|
93
|
+
B as attachShadow,
|
|
94
|
+
G as attachStylesheet,
|
|
95
|
+
K as createContext,
|
|
96
|
+
O as createRef,
|
|
83
97
|
a as currentComponentElement,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
98
|
+
J as getContext,
|
|
99
|
+
g as h,
|
|
100
|
+
C as instantiate,
|
|
101
|
+
T as onConnect,
|
|
102
|
+
v as onDisconnect,
|
|
103
|
+
P as onStoreChange,
|
|
104
|
+
D as register,
|
|
105
|
+
q as render
|
|
91
106
|
};
|
package/lib/jsx/type.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { ConnectorConnectCallback, ConnectorDisconnectCallback } from '../connector';
|
|
1
2
|
import { ElementConstructor, ElementConstructorClass, ElementConstructorEventMap, ElementConstructorStyle, ElementConstructorTagNames } from '../element-constructor';
|
|
2
3
|
import { Store } from '../store';
|
|
3
4
|
import { Split } from '../utils';
|
|
4
5
|
|
|
5
|
-
type StoreOr<T> = T | Store<T
|
|
6
|
+
type StoreOr<T> = T | Store<T, any>;
|
|
6
7
|
declare global {
|
|
7
8
|
namespace JSX {
|
|
8
9
|
type ComponentChild = Node | string | number | boolean | undefined | null | void | Store<any, any> | ElementConstructor;
|
|
@@ -13,11 +14,15 @@ declare global {
|
|
|
13
14
|
type Component<TProps extends object = object> = {
|
|
14
15
|
formAssociated?: boolean;
|
|
15
16
|
noCustomElement?: boolean;
|
|
16
|
-
(props: BaseProps & TProps): ComponentChild;
|
|
17
|
+
(props: BaseProps & TProps): ComponentChild | undefined;
|
|
17
18
|
};
|
|
18
19
|
type HTMLOrSVGEvents = Partial<{
|
|
19
20
|
[K in `on${Capitalize<keyof ElementConstructorEventMap>}`]: (event: ElementConstructorEventMap[Extract<Uncapitalize<Split<K, 'on'>[1]>, keyof ElementConstructorEventMap>]) => void;
|
|
20
21
|
}>;
|
|
22
|
+
type SpecialEvents = {
|
|
23
|
+
onConnect?: ConnectorConnectCallback;
|
|
24
|
+
onDisconnect?: ConnectorDisconnectCallback;
|
|
25
|
+
};
|
|
21
26
|
interface DOMAttributes {
|
|
22
27
|
ref?: {
|
|
23
28
|
current: any;
|
|
@@ -47,6 +52,7 @@ declare global {
|
|
|
47
52
|
challenge?: StoreOr<string>;
|
|
48
53
|
checked?: StoreOr<boolean>;
|
|
49
54
|
class?: ElementConstructorClass;
|
|
55
|
+
connectedClass?: boolean | string;
|
|
50
56
|
cols?: StoreOr<number>;
|
|
51
57
|
colSpan?: StoreOr<number>;
|
|
52
58
|
content?: StoreOr<string>;
|
|
@@ -61,7 +67,7 @@ declare global {
|
|
|
61
67
|
default?: StoreOr<boolean>;
|
|
62
68
|
defer?: StoreOr<boolean>;
|
|
63
69
|
dir?: StoreOr<'auto' | 'rtl' | 'ltr'>;
|
|
64
|
-
disabled?: StoreOr<
|
|
70
|
+
disabled?: StoreOr<true | null>;
|
|
65
71
|
disableRemotePlayback?: StoreOr<boolean>;
|
|
66
72
|
download?: StoreOr<string>;
|
|
67
73
|
draggable?: StoreOr<boolean>;
|
|
@@ -176,7 +182,7 @@ declare global {
|
|
|
176
182
|
type UnknownAttributes = {
|
|
177
183
|
[key: string]: any;
|
|
178
184
|
};
|
|
179
|
-
type AllAttributes = UnknownAttributes & HTMLAttributes & HTMLOrSVGEvents;
|
|
185
|
+
type AllAttributes = UnknownAttributes & HTMLAttributes & HTMLOrSVGEvents & SpecialEvents;
|
|
180
186
|
type SpecialTags = {
|
|
181
187
|
component: AllAttributes;
|
|
182
188
|
instance: AllAttributes & {
|
package/lib/ladder/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var w=Object.defineProperty;var S=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var k=(s,t,e)=>t in s?w(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,v=(s,t)=>{for(var e in t||(t={}))M.call(t,e)&&k(s,e,t[e]);if(S)for(var e of S(t))V.call(t,e)&&k(s,e,t[e]);return s};var g=(s,t,e)=>{if(!t.has(s))throw TypeError("Cannot "+e)};var o=(s,t,e)=>(g(s,t,"read from private field"),e?e.call(s):t.get(s)),p=(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)},f=(s,t,e,i)=>(g(s,t,"write to private field"),i?i.call(s,e):t.set(s,e),e);var b=(s,t,e)=>(g(s,t,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../Store-
|
|
1
|
+
"use strict";var w=Object.defineProperty;var S=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var k=(s,t,e)=>t in s?w(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,v=(s,t)=>{for(var e in t||(t={}))M.call(t,e)&&k(s,e,t[e]);if(S)for(var e of S(t))V.call(t,e)&&k(s,e,t[e]);return s};var g=(s,t,e)=>{if(!t.has(s))throw TypeError("Cannot "+e)};var o=(s,t,e)=>(g(s,t,"read from private field"),e?e.call(s):t.get(s)),p=(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)},f=(s,t,e,i)=>(g(s,t,"write to private field"),i?i.call(s,e):t.set(s,e),e);var b=(s,t,e)=>(g(s,t,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../Store-Cr3VaD9G.cjs");var d,u,a,h,y;class q extends m.Store{constructor(e){super(e,{equalityCheck:()=>!1});p(this,h);p(this,d,void 0);p(this,u,void 0);p(this,a,void 0);f(this,d,v({},e)),f(this,u,new Map),f(this,a,new Set)}get base(){return o(this,d)}get steps(){return o(this,u)}close(){super.close(),o(this,a).clear(),o(this,u).clear()}bind(e){o(this,a).add(e)}unbind(e){o(this,a).delete(e)}deleteStep(e){this.steps.delete(e)}getStepValue(e){var i;return(i=this.steps.get(e))==null?void 0:i[1]}getExcludedStepsValue(...e){const i=new Map;return e.map(c=>{const n=this.steps.get(c);n&&i.set(c,n)}),b(this,h,y).call(this,i)}getIncludedStepsValue(...e){const i=new Map(this.steps);return e.map(c=>{this.steps.has(c)&&i.delete(c)}),b(this,h,y).call(this,i)}setStep(e,i,c){const n={};for(const r in this.current)n[r]=c[r]||0;this.steps.set(e,[i,n]),this.calculate()}calculate(){this.current=b(this,h,y).call(this,o(this,u))}}d=new WeakMap,u=new WeakMap,a=new WeakMap,h=new WeakSet,y=function(e){const i={};for(const c in this.base)i[c]=this.base[c];for(const c of e){const n=c[1];if(n[0]==="+")for(const r in this.base){const l=n[1][r];i[r]+=l}else if(n[0]==="*")for(const r in this.base){const l=n[1][r];i[r]*=l}else if(n[0]==="/")for(const r in this.base){const l=n[1][r];i[r]/=l}else if(n[0]==="-")for(const r in this.base){const l=n[1][r];i[r]-=l}}for(const c of o(this,a))for(const n in i)c[n]=i[n];return i};exports.Ladder=q;
|
package/lib/ladder/index.js
CHANGED
|
@@ -19,7 +19,7 @@ var r = (s, t, e) => (g(s, t, "read from private field"), e ? e.call(s) : t.get(
|
|
|
19
19
|
t instanceof WeakSet ? t.add(s) : t.set(s, e);
|
|
20
20
|
}, d = (s, t, e, i) => (g(s, t, "write to private field"), i ? i.call(s, e) : t.set(s, e), e);
|
|
21
21
|
var b = (s, t, e) => (g(s, t, "access private method"), e);
|
|
22
|
-
import { S as x } from "../Store-
|
|
22
|
+
import { S as x } from "../Store-Qr3SNOSf.js";
|
|
23
23
|
var f, h, a, u, y;
|
|
24
24
|
class C extends x {
|
|
25
25
|
constructor(e) {
|
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-Cr3VaD9G.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-Qr3SNOSf.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";var d=(e,t,o)=>{if(!t.has(e))throw TypeError("Cannot "+o)};var i=(e,t,o)=>(d(e,t,"read from private field"),o?o.call(e):t.get(e)),a=(e,t,o)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,o)},c=(e,t,o,l)=>(d(e,t,"write to private field"),l?l.call(e,o):t.set(e,o),o);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../Store-
|
|
1
|
+
"use strict";var d=(e,t,o)=>{if(!t.has(e))throw TypeError("Cannot "+o)};var i=(e,t,o)=>(d(e,t,"read from private field"),o?o.call(e):t.get(e)),a=(e,t,o)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,o)},c=(e,t,o,l)=>(d(e,t,"write to private field"),l?l.call(e,o):t.set(e,o),o);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../Store-Cr3VaD9G.cjs");const h=require("../browser-CpzFX2xg.cjs");require("../ticker/index.cjs");const n=require("../tags-BosXYPYv.cjs"),b=require("../createStylesheet-9nksoWW0.cjs"),f=require("../popover/index.cjs"),m=require("../theme/index.cjs"),p=b.createStylesheet({":host":{position:"fixed",top:"0",left:"0",zIndex:"1",width:"100%",height:"100%",transitionProperty:"opacity",transitionDuration:"var(--transition-duration)"},":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(--transition-duration)",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, ${m.aptechkaTheme.colorMain.var})`},".close-button-default::before":{transform:"rotate(-45deg)"},".close-button-default::after":{transform:"rotate(45deg)"}});var s,r;class u extends f.PopoverElement{constructor(){super();a(this,s,null);a(this,r,null);h.isBrowser&&(this.attachShadow({mode:"open"}).adoptedStyleSheets.push(p),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:l=>c(this,r,l)})}),c(this,s,new ResizeObserver(()=>{i(this,r).scrollHeight>i(this,r).clientHeight?this.classList.add("overflow"):this.classList.remove("overflow")})))}connectedCallback(){super.connectedCallback(),i(this,s).observe(this)}disconnectedCallback(){super.disconnectedCallback(),i(this,s).disconnect()}}s=new WeakMap,r=new WeakMap;customElements.get("e-modal")||customElements.define("e-modal",u);exports.ModalElement=u;
|
package/lib/modal/index.js
CHANGED
|
@@ -7,10 +7,11 @@ var i = (t, e, o) => (c(t, e, "read from private field"), o ? o.call(t) : e.get(
|
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
8
|
e instanceof WeakSet ? e.add(t) : e.set(t, o);
|
|
9
9
|
}, l = (t, e, o, r) => (c(t, e, "write to private field"), r ? r.call(t, o) : e.set(t, o), o);
|
|
10
|
-
import "../Store-
|
|
10
|
+
import "../Store-Qr3SNOSf.js";
|
|
11
11
|
import { i as f } from "../browser-0zX67oeU.js";
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
12
|
+
import "../ticker/index.js";
|
|
13
|
+
import { e as d, D as h, ax as u, aA as m } from "../tags-D0kLlFdQ.js";
|
|
14
|
+
import { c as b } from "../createStylesheet-BrFGJ8Q7.js";
|
|
14
15
|
import { PopoverElement as p } from "../popover/index.js";
|
|
15
16
|
import { aptechkaTheme as v } from "../theme/index.js";
|
|
16
17
|
const g = b({
|
package/lib/order/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var L=(A=>(A[A.FIRST=-1e5]="FIRST",A[A.DEVICE=-99999]="DEVICE",A[A.CSS_VARIABLE=-99998]="CSS_VARIABLE",A[A.MEDIA=-99997]="MEDIA",A[A.SOURCE_MANAGER=-99996]="SOURCE_MANAGER",A[A.SCROLL=-99995]="SCROLL",A[A.SEGMENT=-99994]="SEGMENT",A[A.LAYOUT_BOX=-99993]="LAYOUT_BOX",A[A.EN3=-99992]="EN3",A[A.LAST=1e5]="LAST",A))(L||{}),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var L=(A=>(A[A.FIRST=-1e5]="FIRST",A[A.DEVICE=-99999]="DEVICE",A[A.CSS_VARIABLE=-99998]="CSS_VARIABLE",A[A.MEDIA=-99997]="MEDIA",A[A.SOURCE_MANAGER=-99996]="SOURCE_MANAGER",A[A.SCROLL=-99995]="SCROLL",A[A.SEGMENT=-99994]="SEGMENT",A[A.LAYOUT_BOX=-99993]="LAYOUT_BOX",A[A.EN3=-99992]="EN3",A[A.LAST=1e5]="LAST",A))(L||{}),N=(A=>(A[A.FIRST=-1e5]="FIRST",A[A.CONNECTOR=-99999]="CONNECTOR",A[A.SCROLL=-99998]="SCROLL",A[A.ANIMATION=-99997]="ANIMATION",A[A.LAYOUT_BOX=-99996]="LAYOUT_BOX",A[A.LADDER=-99995]="LADDER",A[A.EN3=1e5]="EN3",A[A.LAST=100001]="LAST",A))(N||{});exports.RESIZE_ORDER=L;exports.TICK_ORDER=N;
|
package/lib/order/index.d.ts
CHANGED
|
@@ -12,10 +12,11 @@ export declare enum RESIZE_ORDER {
|
|
|
12
12
|
}
|
|
13
13
|
export declare enum TICK_ORDER {
|
|
14
14
|
FIRST = -100000,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
CONNECTOR = -99999,
|
|
16
|
+
SCROLL = -99998,
|
|
17
|
+
ANIMATION = -99997,
|
|
18
|
+
LAYOUT_BOX = -99996,
|
|
19
|
+
LADDER = -99995,
|
|
19
20
|
EN3 = 100000,
|
|
20
21
|
LAST = 100001
|
|
21
22
|
}
|
package/lib/order/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var L = /* @__PURE__ */ ((A) => (A[A.FIRST = -1e5] = "FIRST", A[A.DEVICE = -99999] = "DEVICE", A[A.CSS_VARIABLE = -99998] = "CSS_VARIABLE", A[A.MEDIA = -99997] = "MEDIA", A[A.SOURCE_MANAGER = -99996] = "SOURCE_MANAGER", A[A.SCROLL = -99995] = "SCROLL", A[A.SEGMENT = -99994] = "SEGMENT", A[A.LAYOUT_BOX = -99993] = "LAYOUT_BOX", A[A.EN3 = -99992] = "EN3", A[A.LAST = 1e5] = "LAST", A))(L || {}), N = /* @__PURE__ */ ((A) => (A[A.FIRST = -1e5] = "FIRST", A[A.
|
|
1
|
+
var L = /* @__PURE__ */ ((A) => (A[A.FIRST = -1e5] = "FIRST", A[A.DEVICE = -99999] = "DEVICE", A[A.CSS_VARIABLE = -99998] = "CSS_VARIABLE", A[A.MEDIA = -99997] = "MEDIA", A[A.SOURCE_MANAGER = -99996] = "SOURCE_MANAGER", A[A.SCROLL = -99995] = "SCROLL", A[A.SEGMENT = -99994] = "SEGMENT", A[A.LAYOUT_BOX = -99993] = "LAYOUT_BOX", A[A.EN3 = -99992] = "EN3", A[A.LAST = 1e5] = "LAST", A))(L || {}), N = /* @__PURE__ */ ((A) => (A[A.FIRST = -1e5] = "FIRST", A[A.CONNECTOR = -99999] = "CONNECTOR", A[A.SCROLL = -99998] = "SCROLL", A[A.ANIMATION = -99997] = "ANIMATION", A[A.LAYOUT_BOX = -99996] = "LAYOUT_BOX", A[A.LADDER = -99995] = "LADDER", A[A.EN3 = 1e5] = "EN3", A[A.LAST = 100001] = "LAST", A))(N || {});
|
|
2
2
|
export {
|
|
3
3
|
L as RESIZE_ORDER,
|
|
4
4
|
N as TICK_ORDER
|
package/lib/pointer/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var W=Object.defineProperty;var D=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable;var M=(i,s,t)=>s in i?W(i,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[s]=t,T=(i,s)=>{for(var t in s||(s={}))A.call(s,t)&&M(i,t,s[t]);if(D)for(var t of D(s))F.call(s,t)&&M(i,t,s[t]);return i};var _=(i,s,t)=>{if(!s.has(i))throw TypeError("Cannot "+t)};var e=(i,s,t)=>(_(i,s,"read from private field"),t?t.call(i):s.get(i)),n=(i,s,t)=>{if(s.has(i))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(i):s.set(i,t)},c=(i,s,t,m)=>(_(i,s,"write to private field"),m?m.call(i,t):s.set(i,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../Store-
|
|
1
|
+
"use strict";var W=Object.defineProperty;var D=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable;var M=(i,s,t)=>s in i?W(i,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[s]=t,T=(i,s)=>{for(var t in s||(s={}))A.call(s,t)&&M(i,t,s[t]);if(D)for(var t of D(s))F.call(s,t)&&M(i,t,s[t]);return i};var _=(i,s,t)=>{if(!s.has(i))throw TypeError("Cannot "+t)};var e=(i,s,t)=>(_(i,s,"read from private field"),t?t.call(i):s.get(i)),n=(i,s,t)=>{if(s.has(i))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(i):s.set(i,t)},c=(i,s,t,m)=>(_(i,s,"write to private field"),m?m.call(i,t):s.set(i,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../Store-Cr3VaD9G.cjs");const q=require("../coordinates-D8Np3cPD.cjs"),G=require("../dom-JBOkFLTh.cjs"),k=require("../math-GDWEqu7y.cjs");require("../ticker/index.cjs");const R=require("../Damped-Da3EnNN4.cjs"),H=require("../element-resizer/index.cjs"),j=require("../window-resizer/index.cjs"),P=require("../css-property/index.cjs");var o,a,l,d,y,u,b,x,f,w,C,p;class B{constructor(s){n(this,o,void 0);n(this,a,void 0);n(this,l,void 0);n(this,d,void 0);n(this,y,void 0);n(this,u,void 0);n(this,b,0);n(this,x,0);n(this,f,s=>{e(this,d).set(1)});n(this,w,s=>{e(this,d).set(0)});n(this,C,s=>{const t=q.getPointerPosition(s,e(this,o).getBoundingClientRect()),m={width:e(this,b),height:e(this,x)},h={x:t.x,y:t.y};if(e(this,y)){const z=q.screenToCartesian(h,m);h.x=z.x,h.y=z.y}if(e(this,u)){const z=q.normalize(h,m);h.x=k.clamp(z.x*2,-1,1),h.y=k.clamp(z.y*2,-1,1)}e(this,a).set(h.x),e(this,l).set(h.y)});n(this,p,()=>{c(this,b,this.element.clientWidth),c(this,x,this.element.clientHeight);let s=0,t=0,m=0,h=0;e(this,y)?e(this,u)?(s=-1,t=1,m=-1,h=1):(s=e(this,b)/2*-1,t=e(this,b)/2*1,m=e(this,x)/2*-1,h=e(this,x)/2*1):e(this,u)?(s=0,t=1,m=0,h=1):(s=0,t=e(this,b),m=0,h=e(this,x)),e(this,a).min=s,e(this,a).max=t,e(this,l).min=m,e(this,l).max=h});c(this,o,G.getElement(s.element)),c(this,a,new R.Damped(0,s.damped)),c(this,l,new R.Damped(0,s.damped)),c(this,d,new R.Damped(0,T({min:0,max:1},s.damped))),c(this,y,s.cartesian||!1),c(this,u,s.normalize||!1)}get element(){return e(this,o)}get x(){return e(this,a)}get y(){return e(this,l)}get z(){return e(this,d)}get cartesian(){return e(this,y)}set cartesian(s){c(this,y,s),e(this,p).call(this)}get normalize(){return e(this,u)}set normalize(s){c(this,u,s),e(this,p).call(this)}connect(){e(this,o).addEventListener("pointerenter",e(this,f)),e(this,o).addEventListener("pointerleave",e(this,w)),e(this,o).addEventListener("pointermove",e(this,C)),H.elementResizer.subscribe(e(this,o),e(this,p)),j.windowResizer.subscribe(e(this,p))}disconnect(){e(this,o).removeEventListener("pointerenter",e(this,f)),e(this,o).removeEventListener("pointerleave",e(this,w)),e(this,o).removeEventListener("pointermove",e(this,C)),H.elementResizer.unsubscribe(e(this,p)),j.windowResizer.unsubscribe(e(this,p)),e(this,a).reset(),e(this,l).reset(),e(this,d).reset()}}o=new WeakMap,a=new WeakMap,l=new WeakMap,d=new WeakMap,y=new WeakMap,u=new WeakMap,b=new WeakMap,x=new WeakMap,f=new WeakMap,w=new WeakMap,C=new WeakMap,p=new WeakMap;var r,g,v,S,E,L;class O extends HTMLElement{constructor(){super();n(this,r,void 0);n(this,g,new P.CSSProperty(this,"--damping",20));n(this,v,new P.CSSProperty(this,"--mass",0));n(this,S,new P.CSSProperty(this,"--stiffness",0));n(this,E,new P.CSSProperty(this,"--cartesian",!1));n(this,L,new P.CSSProperty(this,"--normalize",!1));c(this,r,new B({element:this})),e(this,g).subscribe(t=>{e(this,r).x.damping=t.current,e(this,r).y.damping=t.current,e(this,r).z.damping=t.current}),e(this,E).subscribe(t=>{e(this,r).cartesian=t.current}),e(this,L).subscribe(t=>{e(this,r).normalize=t.current}),e(this,v).subscribe(t=>{e(this,r).x.mass=t.current,e(this,r).y.mass=t.current,e(this,r).z.mass=t.current}),e(this,S).subscribe(t=>{e(this,r).x.stiffness=t.current,e(this,r).y.stiffness=t.current,e(this,r).z.stiffness=t.current}),e(this,r).x.subscribe(t=>{this.style.setProperty("--x",t.current.toString())}),e(this,r).y.subscribe(t=>{this.style.setProperty("--y",t.current.toString())}),e(this,r).z.subscribe(t=>{this.style.setProperty("--z",t.current.toString())})}get pointer(){return e(this,r)}connectedCallback(){e(this,r).connect(),e(this,g).observe(),e(this,v).observe(),e(this,S).observe()}disconnectedCallback(){e(this,r).disconnect(),e(this,g).unobserve(),e(this,v).unobserve(),e(this,S).unobserve(),this.style.removeProperty("--x"),this.style.removeProperty("--y"),this.style.removeProperty("--z")}}r=new WeakMap,g=new WeakMap,v=new WeakMap,S=new WeakMap,E=new WeakMap,L=new WeakMap;customElements.get("e-pointer")||customElements.define("e-pointer",O);exports.Pointer=B;exports.PointerElement=O;
|
package/lib/pointer/index.js
CHANGED
|
@@ -18,12 +18,12 @@ var t = (i, s, e) => (M(i, s, "read from private field"), e ? e.call(i) : s.get(
|
|
|
18
18
|
throw TypeError("Cannot add the same private member more than once");
|
|
19
19
|
s instanceof WeakSet ? s.add(i) : s.set(i, e);
|
|
20
20
|
}, c = (i, s, e, m) => (M(i, s, "write to private field"), m ? m.call(i, e) : s.set(i, e), e);
|
|
21
|
-
import "../Store-
|
|
21
|
+
import "../Store-Qr3SNOSf.js";
|
|
22
22
|
import { g as F, s as G, n as I } from "../coordinates-CgdGoSYs.js";
|
|
23
23
|
import { a as J } from "../dom-P5QbAASX.js";
|
|
24
24
|
import { c as T } from "../math-BOBiC4TN.js";
|
|
25
25
|
import "../ticker/index.js";
|
|
26
|
-
import { D as R } from "../Damped-
|
|
26
|
+
import { D as R } from "../Damped-yrNXlkDE.js";
|
|
27
27
|
import { elementResizer as B } from "../element-resizer/index.js";
|
|
28
28
|
import { windowResizer as W } from "../window-resizer/index.js";
|
|
29
29
|
import { CSSProperty as P } from "../css-property/index.js";
|
package/lib/popover/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var q=(o,n,t)=>{if(!n.has(o))throw TypeError("Cannot "+t)};var e=(o,n,t)=>(q(o,n,"read from private field"),t?t.call(o):n.get(o)),i=(o,n,t)=>{if(n.has(o))throw TypeError("Cannot add the same private member more than once");n instanceof WeakSet?n.add(o):n.set(o,t)},h=(o,n,t,a)=>(q(o,n,"write to private field"),a?a.call(o,t):n.set(o,t),t);var A=(o,n,t)=>(q(o,n,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("../attribute/index.cjs"),I=require("../Store-
|
|
1
|
+
"use strict";var q=(o,n,t)=>{if(!n.has(o))throw TypeError("Cannot "+t)};var e=(o,n,t)=>(q(o,n,"read from private field"),t?t.call(o):n.get(o)),i=(o,n,t)=>{if(n.has(o))throw TypeError("Cannot add the same private member more than once");n instanceof WeakSet?n.add(o):n.set(o,t)},h=(o,n,t,a)=>(q(o,n,"write to private field"),a?a.call(o,t):n.set(o,t),t);var A=(o,n,t)=>(q(o,n,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("../attribute/index.cjs"),I=require("../Store-Cr3VaD9G.cjs"),R=require("../style-At6aDoqG.cjs"),N=require("../browser-CpzFX2xg.cjs");require("../ticker/index.cjs");const j=require("../tags-BosXYPYv.cjs");var m,l,y,p,d,u,_,x,v,L,f,E,b,M,g;const c=class c extends HTMLElement{constructor(){super();i(this,_);i(this,v);i(this,b);i(this,m,void 0);i(this,l,void 0);i(this,y,void 0);i(this,p,void 0);i(this,d,void 0);i(this,u,void 0);i(this,f,void 0);i(this,E,void 0);i(this,g,void 0);h(this,m,-1),h(this,l,new I.Store(!1)),h(this,p,new $.Attribute(this,"history",!1)),h(this,d,new $.Attribute(this,"single",!1)),h(this,u,!1),this.open=(t=!0)=>{if(e(this,l).current)return;e(this,l).current=!0,e(this,d).current&&(c.__opened.forEach(r=>r.close()),c.__opened=[]),c.__opened.push(this),h(this,m,c.__opened.length-1),e(this,p).current&&e(this,u)&&history.pushState("","",e(this,_,x)),clearTimeout(e(this,y)),this.classList.add("triggered"),this.style.display="block",this.dispatchEvent(new CustomEvent("popoverTriggered"));const a=()=>{addEventListener("click",e(this,f)),addEventListener("keydown",e(this,E)),this.style.opacity="1",this.classList.add("opened"),this.dispatchEvent(new CustomEvent("popoverOpened"))};t?setTimeout(a):a()},this.close=()=>{if(e(this,l).current){if(e(this,l).current=!1,c.__opened=c.__opened.filter(t=>t!==this),e(this,p).current){const t=new URL(location.href);t.searchParams.delete(e(this,v,L)),history.replaceState(null,"",t.href)}this.classList.remove("opened"),this.style.opacity="0",this.dispatchEvent(new CustomEvent("popoverClosing")),removeEventListener("click",e(this,f)),removeEventListener("keydown",e(this,E)),setTimeout(()=>{this.classList.remove("triggered"),this.style.display="none",this.dispatchEvent(new CustomEvent("popoverClosed"))},R.getElementTransitionDurationMS(this)+10)}},h(this,f,t=>{A(this,b,M).call(this,()=>{var O;const r=t.composedPath()[0],P=r instanceof HTMLElement&&(this.contains(r)||((O=this.shadowRoot)==null?void 0:O.contains(r))),B=r instanceof HTMLElement&&r.hasAttribute("outside");(!P||B)&&this.close()})}),h(this,E,t=>{A(this,b,M).call(this,()=>{t.code==="Escape"&&this.close()})}),h(this,g,()=>{h(this,u,!1),e(this,l).current&&e(this,p).current&&!location.search.includes(e(this,v,L))?this.close():!e(this,l).current&&e(this,p).current&&location.search.includes(e(this,v,L))&&this.open(),h(this,u,!0)}),this.setAttribute("popover-target","")}get history(){return e(this,p)}get single(){return e(this,d)}get opened(){return e(this,l)}connectedCallback(){e(this,p).observe(),e(this,d).observe(),this.style.opacity="0",this.style.display="none",addEventListener("popstate",e(this,g)),setTimeout(()=>{e(this,g).call(this)},0)}disconnectedCallback(){e(this,p).unobserve(),e(this,d).unobserve(),c.__opened=c.__opened.filter(t=>t!==this),clearTimeout(e(this,y)),removeEventListener("popstate",e(this,g))}};m=new WeakMap,l=new WeakMap,y=new WeakMap,p=new WeakMap,d=new WeakMap,u=new WeakMap,_=new WeakSet,x=function(){return`${location.pathname}${location.search?location.search+"&":"?"}${e(this,v,L)}`},v=new WeakSet,L=function(){return`modal-${this.id}`},f=new WeakMap,E=new WeakMap,b=new WeakSet,M=function(t){(c.__opened[e(this,m)-1]||c.__opened.length===1)&&t()},g=new WeakMap,c.__opened=[];let S=c;customElements.get("e-popover")||customElements.define("e-popover",S);var s,T,w,C,k;class H extends HTMLElement{constructor(){super();i(this,s,void 0);i(this,T,()=>{this.classList.add("triggered")});i(this,w,()=>{this.classList.add("opened")});i(this,C,()=>{this.classList.remove("opened")});i(this,k,()=>{this.classList.remove("triggered")});N.isBrowser&&j.element(this,{tabindex:this.getAttribute("tabindex")||"0",onClick:()=>{if(e(this,s)){const t=this.getAttribute("type")||"open";t==="open"||t==="toggle"&&!e(this,s).opened.current?e(this,s).open():(t==="close"||t==="toggle"&&e(this,s).opened.current)&&e(this,s).close()}},onKeydown:t=>{t.code==="Space"&&t.currentTarget.click()}})}get popoverElement(){return e(this,s)}connectedCallback(){var a;const t=this.getAttribute("target");if(t){let r=null;t==="parent"?r=this.closest("[popover-target]"):t==="sibling"?r=(a=this.parentElement)==null?void 0:a.querySelector("[popover-target]"):r=document.querySelector(`#${t}`)||this.getRootNode().querySelector(`#${t}`),r instanceof HTMLElement?(h(this,s,r),e(this,s).addEventListener("popoverTriggered",e(this,T)),e(this,s).addEventListener("popoverOpened",e(this,w)),e(this,s).addEventListener("popoverClosing",e(this,C)),e(this,s).addEventListener("popoverClosed",e(this,k))):console.warn(this,`target ${t} not found`)}}disconnectedCallback(){e(this,s)&&(e(this,s).removeEventListener("popoverTriggered",e(this,T)),e(this,s).removeEventListener("popoverOpened",e(this,w)),e(this,s).removeEventListener("popoverClosing",e(this,C)),e(this,s).removeEventListener("popoverClosed",e(this,k)))}}s=new WeakMap,T=new WeakMap,w=new WeakMap,C=new WeakMap,k=new WeakMap;customElements.get("e-popover-button")||customElements.define("e-popover-button",H);exports.PopoverButtonElement=H;exports.PopoverElement=S;
|
package/lib/popover/index.js
CHANGED
|
@@ -9,10 +9,11 @@ var e = (o, n, t) => (S(o, n, "read from private field"), t ? t.call(o) : n.get(
|
|
|
9
9
|
}, h = (o, n, t, a) => (S(o, n, "write to private field"), a ? a.call(o, t) : n.set(o, t), t);
|
|
10
10
|
var A = (o, n, t) => (S(o, n, "access private method"), t);
|
|
11
11
|
import { Attribute as O } from "../attribute/index.js";
|
|
12
|
-
import { S as R } from "../Store-
|
|
12
|
+
import { S as R } from "../Store-Qr3SNOSf.js";
|
|
13
13
|
import { g as B } from "../style-j2TwriJ_.js";
|
|
14
14
|
import { i as N } from "../browser-0zX67oeU.js";
|
|
15
|
-
import
|
|
15
|
+
import "../ticker/index.js";
|
|
16
|
+
import { e as D } from "../tags-D0kLlFdQ.js";
|
|
16
17
|
var g, c, y, l, d, u, _, H, v, L, f, E, b, x, m;
|
|
17
18
|
const p = class p extends HTMLElement {
|
|
18
19
|
constructor() {
|
package/lib/router/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var Z=(a,e)=>(e=Symbol[a])?e:Symbol.for("Symbol."+a);var K=(a,e,s)=>{if(!e.has(a))throw TypeError("Cannot "+s)};var t=(a,e,s)=>(K(a,e,"read from private field"),s?s.call(a):e.get(a)),r=(a,e,s)=>{if(e.has(a))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(a):e.set(a,s)},n=(a,e,s,i)=>(K(a,e,"write to private field"),i?i.call(a,s):e.set(a,s),s);var W=(a,e,s)=>(K(a,e,"access private method"),s);var M=(a,e,s)=>new Promise((i,h)=>{var o=u=>{try{f(s.next(u))}catch(w){h(w)}},c=u=>{try{f(s.throw(u))}catch(w){h(w)}},f=u=>u.done?i(u.value):Promise.resolve(u.value).then(o,c);f((s=s.apply(a,e)).next())});var Y=(a,e,s)=>(e=a[Z("asyncIterator")])?e.call(a):(a=a[Z("iterator")](),e={},s=(i,h)=>(h=a[i])&&(e[i]=o=>new Promise((c,f,u)=>(o=h.call(a,o),u=o.done,Promise.resolve(o.value).then(w=>c({value:w,done:u}),f)))),s("next"),s("return"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const at=require("urlpattern-polyfill"),rt=require("../notifier/index.cjs"),tt=require("../browser-CpzFX2xg.cjs"),ht=require("../function-MthRj-GJ.cjs"),F=require("../url-C3dWnJQg.cjs"),ot=require("../instantiate-
|
|
1
|
+
"use strict";var Z=(a,e)=>(e=Symbol[a])?e:Symbol.for("Symbol."+a);var K=(a,e,s)=>{if(!e.has(a))throw TypeError("Cannot "+s)};var t=(a,e,s)=>(K(a,e,"read from private field"),s?s.call(a):e.get(a)),r=(a,e,s)=>{if(e.has(a))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(a):e.set(a,s)},n=(a,e,s,i)=>(K(a,e,"write to private field"),i?i.call(a,s):e.set(a,s),s);var W=(a,e,s)=>(K(a,e,"access private method"),s);var M=(a,e,s)=>new Promise((i,h)=>{var o=u=>{try{f(s.next(u))}catch(w){h(w)}},c=u=>{try{f(s.throw(u))}catch(w){h(w)}},f=u=>u.done?i(u.value):Promise.resolve(u.value).then(o,c);f((s=s.apply(a,e)).next())});var Y=(a,e,s)=>(e=a[Z("asyncIterator")])?e.call(a):(a=a[Z("iterator")](),e={},s=(i,h)=>(h=a[i])&&(e[i]=o=>new Promise((c,f,u)=>(o=h.call(a,o),u=o.done,Promise.resolve(o.value).then(w=>c({value:w,done:u}),f)))),s("next"),s("return"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const at=require("urlpattern-polyfill"),rt=require("../notifier/index.cjs"),tt=require("../browser-CpzFX2xg.cjs"),ht=require("../function-MthRj-GJ.cjs"),F=require("../url-C3dWnJQg.cjs"),ot=require("../instantiate-BuVJ8pIJ.cjs"),$=require("../object-CCiXnER2.cjs");var R,O,A,p,d,v,S,L,b,E,x,et;class ct{constructor(e,s){r(this,x);r(this,R,void 0);r(this,O,void 0);r(this,A,void 0);r(this,p,void 0);r(this,d,void 0);r(this,v,void 0);r(this,S,void 0);r(this,L,null);r(this,b,[]);r(this,E,[]);n(this,R,e),n(this,O,s),n(this,A,new URLPattern({pathname:t(this,R)})),n(this,p,null),n(this,d,null),n(this,v,!1),n(this,S,null),tt.isBrowser&&n(this,L,new MutationObserver(i=>{i[0].addedNodes.forEach(o=>{t(this,p)?t(this,E).push(o):t(this,b).push(o)})}))}get pattern(){return t(this,R)}get urlPattern(){return t(this,A)}get isActive(){return t(this,v)}get element(){return t(this,d)}get nest(){return t(this,S)}testPathname(e){return this.urlPattern.test({pathname:e})}render(e,s){return M(this,null,function*(){var i,h;if(t(this,L).observe(document.head,{childList:!0,subtree:!0}),t(this,p))t(this,b).forEach(o=>{document.head.appendChild(o)});else{const o=yield t(this,O).call(this);if(n(this,E,[...t(this,b)]),typeof o.default=="function"&&(n(this,p,o.default),$.isESClass(o.default))){const c="e-"+((i=t(this,p))==null?void 0:i.name.toLowerCase());customElements.get(c)||customElements.define(c,o.default)}}if(yield W(this,x,et).call(this),t(this,p)){const o=t(this,A).exec({pathname:s}),c=(o==null?void 0:o.pathname.groups)||{},f=Object.fromEntries(new URLSearchParams(location.search)),u={pathnameParams:c,searchParams:f};$.isESClass(t(this,p))?n(this,d,new(t(this,p))(u)):n(this,d,ot.instantiate(t(this,p),{attributes:u})),e.appendChild(t(this,d)),n(this,S,t(this,d).querySelector("[data-nest]")||((h=t(this,d).shadowRoot)==null?void 0:h.querySelector("[data-nest]"))||t(this,d).shadowRoot||t(this,d)),n(this,v,!0)}t(this,L).disconnect()})}close(){var e;t(this,L).disconnect(),(e=t(this,d))==null||e.remove(),n(this,v,!1),t(this,E).forEach(s=>document.head.removeChild(s)),n(this,E,[])}getAnchorElements(){var s;let e=[];return t(this,d)&&(e=[...t(this,d).querySelectorAll("a")]),(s=t(this,d))!=null&&s.shadowRoot&&(e=[...e,...t(this,d).shadowRoot.querySelectorAll("a")]),e}}R=new WeakMap,O=new WeakMap,A=new WeakMap,p=new WeakMap,d=new WeakMap,v=new WeakMap,S=new WeakMap,L=new WeakMap,b=new WeakMap,E=new WeakMap,x=new WeakSet,et=function(){return M(this,null,function*(){const e=t(this,b).filter(c=>c instanceof HTMLElement?c.tagName==="STYLE"||c.tagName==="SCRIPT"||c.tagName==="LINK":!1);try{for(var s=Y(e),i,h,o;i=!(h=yield s.next()).done;i=!1){const c=h.value;yield new Promise(f=>{c.onload=()=>{f()}})}}catch(h){o=[h]}finally{try{i&&(h=s.return)&&(yield h.call(s))}finally{if(o)throw o[0]}}})};var k,m,P,U,q,j;class lt{constructor(e,s){r(this,k,void 0);r(this,m,void 0);r(this,P,void 0);r(this,U,void 0);r(this,q,void 0);r(this,j,e=>{e.preventDefault(),t(this,k).links.forEach(s=>{var i;t(this,P)===t(s,P)||(i=t(s,q))!=null&&i.includes(t(this,P))?t(s,m).classList.add("clicked"):t(s,m).classList.remove("clicked")}),t(this,k).navigate(t(this,P),t(this,U))});var o,c;n(this,k,e),n(this,m,s),n(this,P,t(this,m).getAttribute("href")||"/"),n(this,U,t(this,m).getAttribute("data-history-action")||"push"),t(this,m).addEventListener("click",t(this,j));const i=e.normalizePath(t(this,P)),h=e.normalizePath(location.pathname);n(this,q,(o=t(this,m).getAttribute("data-match-paths"))==null?void 0:o.split(",").map(f=>e.normalizePath(f.trim()).pathname)),t(this,m).hasAttribute("data-include")?h.pathname.includes(i.pathname)&&t(this,m).classList.add("current"):i.pathname===h.pathname||(c=t(this,q))!=null&&c.includes(h.pathname)?(t(this,m).classList.add("current"),t(this,m).classList.add("clicked")):t(this,m).classList.remove("clicked")}destroy(){t(this,m).removeEventListener("click",t(this,j)),t(this,m).classList.remove("current")}}k=new WeakMap,m=new WeakMap,P=new WeakMap,U=new WeakMap,q=new WeakMap,j=new WeakMap;globalThis.URLPattern=at.URLPattern;var C,N,g,z,T,y,H,B,I,_,st,D;class ut{constructor(e){r(this,_);r(this,C,null);r(this,N,null);r(this,g,[]);r(this,z,null);r(this,T,[]);r(this,y,void 0);r(this,H,null);r(this,B,new rt.Notifier);r(this,I,ht.debounce(()=>{const e=s=>s.split("/").length;n(this,g,t(this,g).sort((s,i)=>e(s.pattern)-e(i.pattern))),this.navigate(location.pathname)},0));r(this,D,e=>{e.state&&this.navigate(e.state,"none")});tt.isBrowser&&(e!=null&&e.base?n(this,N,F.normalizeBase(e.base)):n(this,N,"/"),n(this,C,(e==null?void 0:e.rootElement)||document.body),addEventListener("popstate",t(this,D)))}get currentPathname(){return t(this,H)}get candidatePathname(){return t(this,y)}get routes(){return t(this,g)}get links(){return t(this,T)}navigationEvent(e){return t(this,B).subscribe(e)}defineRoute(e,s){const i=new ct(e,s);t(this,g).push(i),t(this,I).call(this)}navigate(e,s="push"){return M(this,null,function*(){var Q,V;const i=this.normalizePath(e);let{pathname:h,hash:o,parameters:c,leaf:f}=i;if(t(this,y)===h||t(this,H)===h)return;n(this,y,h);const u=t(this,g).filter(l=>l.isActive),w=t(this,g).filter(l=>!u.includes(l)&&l.testPathname(f)),it=u.filter(l=>!l.testPathname(f)),G=u.filter(l=>l.testPathname(f));let J=!0;if(this.preprocessor)try{yield new Promise((l,nt)=>{var X;(X=this.preprocessor)==null||X.call(this,{path:i,resolve:l,reject:nt})})}catch(l){l?console.error(l):console.log("Route change canceled"),J=!1}if(J&&t(this,y)===h){n(this,z,G[G.length-1]),it.forEach(l=>{l.close()}),n(this,H,h),F.changeHistory(s,h,c,o);try{for(var ft=Y(w),pt,gt,Pt;pt=!(gt=yield ft.next()).done;pt=!1){const l=gt.value;yield l.render(((Q=t(this,z))==null?void 0:Q.nest)||t(this,C),h),n(this,z,l)}}catch(gt){Pt=[gt]}finally{try{pt&&(gt=ft.return)&&(yield gt.call(ft))}finally{if(Pt)throw Pt[0]}}W(this,_,st).call(this),(V=this.postprocessor)==null||V.call(this,{pathname:h}),t(this,B).notify({pathname:h})}})}normalizePath(e){return F.splitPath(e,t(this,N))}}C=new WeakMap,N=new WeakMap,g=new WeakMap,z=new WeakMap,T=new WeakMap,y=new WeakMap,H=new WeakMap,B=new WeakMap,I=new WeakMap,_=new WeakSet,st=function(){const e=t(this,g).filter(i=>i.isActive),s=Array.from(new Set([...t(this,C).querySelectorAll("a"),...e.map(i=>i.getAnchorElements()).flat()].filter(i=>{var h;return(h=i.getAttribute("href"))==null?void 0:h.startsWith("/")})));t(this,T).forEach(i=>{i.destroy()}),n(this,T,s.map(i=>new lt(this,i)))},D=new WeakMap;exports.Router=ut;
|
package/lib/router/index.js
CHANGED
|
@@ -31,7 +31,7 @@ import { Notifier as nt } from "../notifier/index.js";
|
|
|
31
31
|
import { i as _ } from "../browser-0zX67oeU.js";
|
|
32
32
|
import { d as ht } from "../function-C10DGppn.js";
|
|
33
33
|
import { n as rt, c as ot, s as ct } from "../url-DMNfW7uN.js";
|
|
34
|
-
import { i as lt } from "../instantiate-
|
|
34
|
+
import { i as lt } from "../instantiate-TYteKsII.js";
|
|
35
35
|
import { i as Z } from "../object-D6MVWB4l.js";
|
|
36
36
|
var y, U, A, p, m, L, k, v, E, R, M, tt;
|
|
37
37
|
class ut {
|