aptechka 0.8.4 → 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/ElementConstructor-OK-6OPjh.cjs +1 -0
- package/lib/ElementConstructor-rValMo8f.js +372 -0
- package/lib/_createStore-C75y9luu.cjs +1 -0
- package/lib/_createStore-D3qHYaSz.js +12 -0
- package/lib/accordion/AccordionElement.d.ts +1 -2
- package/lib/accordion/index.cjs +1 -1
- package/lib/accordion/index.js +110 -122
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.d.ts +4 -5
- package/lib/canvas/index.js +69 -75
- package/lib/checkbox/index.cjs +1 -1
- package/lib/checkbox/index.d.ts +1 -3
- package/lib/checkbox/index.js +42 -45
- package/lib/connector/index.cjs +1 -1
- package/lib/connector/index.d.ts +2 -2
- package/lib/connector/index.js +39 -34
- package/lib/counter/index.d.ts +1 -3
- package/lib/{createStylesheet-BsMSWX0q.cjs → createStylesheet-9nksoWW0.cjs} +1 -1
- package/lib/{createStylesheet-BxKITIVV.js → createStylesheet-BrFGJ8Q7.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 +114 -113
- package/lib/en3/objects/fluid/En3FluidElement.d.ts +1 -2
- 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 +7 -15
- package/lib/index-3R8YL-P3.js +266 -0
- package/lib/index-CyQAdqFu.cjs +9 -0
- package/lib/instantiate-BuVJ8pIJ.cjs +1 -0
- package/lib/instantiate-TYteKsII.js +134 -0
- package/lib/jsx/ComponentElement.d.ts +18 -0
- package/lib/jsx/globals.d.ts +13 -0
- package/lib/jsx/h.d.ts +6 -0
- 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/_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/createRef.d.ts +3 -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/basic/onStoreChange.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/createCached.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/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 +6 -0
- package/lib/jsx/hooks/store/index.js +31 -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 +15 -0
- package/lib/jsx/index.js +106 -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 +198 -0
- package/lib/modal/index.cjs +1 -1
- package/lib/modal/index.js +34 -36
- package/lib/onConnect-DGP866cj.cjs +1 -0
- package/lib/onConnect-y5DrxJ9P.js +7 -0
- 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/PointerElement.d.ts +1 -2
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +105 -117
- package/lib/popover/PopoverButtonElement.d.ts +1 -2
- package/lib/popover/PopoverElement.d.ts +1 -2
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +109 -124
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.js +76 -73
- package/lib/scroll/ScrollElement.d.ts +1 -2
- package/lib/scroll/ScrollUserElement.d.ts +1 -2
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +674 -753
- package/lib/select/SelectElement.d.ts +1 -3
- package/lib/select/SelectUserElement.d.ts +1 -2
- 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 +104 -107
- package/lib/slicer/SlicerElement.d.ts +1 -2
- package/lib/slicer/index.cjs +5 -5
- package/lib/slicer/index.js +88 -106
- package/lib/source/SourceElement.d.ts +1 -2
- package/lib/source/index.cjs +2 -2
- package/lib/source/index.js +19 -20
- package/lib/store/Cached.d.ts +13 -0
- package/lib/store/Derived.d.ts +3 -3
- package/lib/store/DerivedArray.d.ts +8 -0
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.d.ts +2 -0
- package/lib/store/index.js +65 -31
- package/lib/tags-BosXYPYv.cjs +1 -0
- package/lib/tags-D0kLlFdQ.js +485 -0
- package/lib/theme/index.cjs +1 -1
- package/lib/theme/index.js +2 -1
- package/lib/tweaker/TweakerFieldElement.d.ts +1 -2
- package/lib/tweaker/TweakerFolderElement.d.ts +1 -2
- package/lib/tweaker/TweakerStoreManagerElement.d.ts +1 -2
- package/lib/tweaker/index.cjs +3 -3
- package/lib/tweaker/index.js +393 -472
- 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 +25 -29
- package/package.json +73 -9
- package/lib/custom-element/index.cjs +0 -1
- package/lib/custom-element/index.d.ts +0 -8
- package/lib/custom-element/index.js +0 -30
- package/lib/index-CzpP1Tg6.cjs +0 -9
- package/lib/index-Dwd_62sm.js +0 -301
- package/lib/tags-CAfasCGV.cjs +0 -1
- package/lib/tags-D9lNDPX8.js +0 -848
package/lib/checkbox/index.js
CHANGED
|
@@ -1,28 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var S = Object.defineProperty, F = Object.getOwnPropertyDescriptor, M = (e, t, a, l) => {
|
|
8
|
-
for (var i = l > 1 ? void 0 : l ? F(t, a) : t, d = e.length - 1, p; d >= 0; d--)
|
|
9
|
-
(p = e[d]) && (i = (l ? p(t, a, i) : p(i)) || i);
|
|
10
|
-
return l && i && S(t, a, i), i;
|
|
11
|
-
}, m = (e, t, a) => {
|
|
12
|
-
if (!t.has(e))
|
|
13
|
-
throw TypeError("Cannot " + a);
|
|
14
|
-
}, h = (e, t, a) => (m(e, t, "read from private field"), a ? a.call(e) : t.get(e)), v = (e, t, a) => {
|
|
15
|
-
if (t.has(e))
|
|
1
|
+
var d = (t, s, e) => {
|
|
2
|
+
if (!s.has(t))
|
|
3
|
+
throw TypeError("Cannot " + e);
|
|
4
|
+
};
|
|
5
|
+
var h = (t, s, e) => (d(t, s, "read from private field"), e ? e.call(t) : s.get(t)), n = (t, s, e) => {
|
|
6
|
+
if (s.has(t))
|
|
16
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
17
|
-
|
|
18
|
-
},
|
|
19
|
-
|
|
8
|
+
s instanceof WeakSet ? s.add(t) : s.set(t, e);
|
|
9
|
+
}, u = (t, s, e, i) => (d(t, s, "write to private field"), i ? i.call(t, e) : s.set(t, e), e);
|
|
10
|
+
var c = (t, s, e) => (d(t, s, "access private method"), e);
|
|
11
|
+
import "../Store-Qr3SNOSf.js";
|
|
12
|
+
import "../ticker/index.js";
|
|
13
|
+
import { e as f, a2 as k, aA as v, ax as b, $ as w } from "../tags-D0kLlFdQ.js";
|
|
14
|
+
import { c as x } from "../createStylesheet-BrFGJ8Q7.js";
|
|
15
|
+
import { aptechkaTheme as p } from "../theme/index.js";
|
|
16
|
+
const y = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><path d="m243.33 90.91l-128.41 128.4a16 16 0 0 1-22.63 0l-71.62-72a16 16 0 0 1 0-22.61l24-24a16 16 0 0 1 22.57-.06l36.64 35.27l.11.11l92.73-91.37a16 16 0 0 1 22.58 0l24 23.56a16 16 0 0 1 .03 22.7Z"/></svg>', A = x({
|
|
20
17
|
":host": {
|
|
21
18
|
position: "relative",
|
|
22
19
|
display: "inline-block",
|
|
23
20
|
width: "30px",
|
|
24
21
|
height: "30px",
|
|
25
|
-
borderRadius:
|
|
22
|
+
borderRadius: p.borderRadiusSmall.var,
|
|
26
23
|
overflow: "hidden"
|
|
27
24
|
},
|
|
28
25
|
"label, .fake": {
|
|
@@ -45,12 +42,12 @@ const O = A({
|
|
|
45
42
|
display: "flex",
|
|
46
43
|
alignItems: "center",
|
|
47
44
|
justifyContent: "center",
|
|
48
|
-
backgroundColor:
|
|
45
|
+
backgroundColor: p.colorMainAux.var
|
|
49
46
|
},
|
|
50
47
|
".default svg": {
|
|
51
48
|
width: "60%",
|
|
52
49
|
height: "60%",
|
|
53
|
-
fill:
|
|
50
|
+
fill: p.colorFont.var,
|
|
54
51
|
opacity: 0,
|
|
55
52
|
transition: "var(--duration-short)"
|
|
56
53
|
},
|
|
@@ -58,30 +55,35 @@ const O = A({
|
|
|
58
55
|
opacity: 1
|
|
59
56
|
}
|
|
60
57
|
});
|
|
61
|
-
|
|
58
|
+
var a, o, l, r;
|
|
59
|
+
const g = class g extends HTMLElement {
|
|
62
60
|
constructor() {
|
|
63
|
-
super()
|
|
64
|
-
|
|
61
|
+
super();
|
|
62
|
+
n(this, l);
|
|
63
|
+
n(this, a, null);
|
|
64
|
+
n(this, o, void 0);
|
|
65
|
+
this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(A), u(this, o, this.attachInternals()), f(this, {
|
|
66
|
+
children: k({
|
|
65
67
|
children: [
|
|
66
|
-
|
|
68
|
+
v({
|
|
67
69
|
class: "fake",
|
|
68
70
|
children: b({
|
|
69
71
|
children: [
|
|
70
|
-
|
|
72
|
+
v({
|
|
71
73
|
class: "default",
|
|
72
|
-
children: [
|
|
74
|
+
children: [y]
|
|
73
75
|
})
|
|
74
76
|
]
|
|
75
77
|
})
|
|
76
78
|
}),
|
|
77
|
-
|
|
78
|
-
ref: (
|
|
79
|
-
|
|
79
|
+
w({
|
|
80
|
+
ref: (i) => {
|
|
81
|
+
u(this, a, i), i.required = this.hasAttribute("required"), i.value = this.getAttribute("value") || "", i.checked = this.hasAttribute("checked"), i.name = this.getAttribute("name") || "", c(this, l, r).call(this);
|
|
80
82
|
},
|
|
81
83
|
class: "real",
|
|
82
84
|
type: "checkbox",
|
|
83
85
|
onChange: () => {
|
|
84
|
-
|
|
86
|
+
c(this, l, r).call(this), this.dispatchEvent(
|
|
85
87
|
new Event("change", {
|
|
86
88
|
composed: !0
|
|
87
89
|
})
|
|
@@ -93,28 +95,23 @@ let f = class extends w {
|
|
|
93
95
|
});
|
|
94
96
|
}
|
|
95
97
|
get checked() {
|
|
96
|
-
return h(this,
|
|
98
|
+
return h(this, a).checked;
|
|
97
99
|
}
|
|
98
100
|
set checked(e) {
|
|
99
|
-
h(this,
|
|
101
|
+
h(this, a).checked = e, c(this, l, r).call(this);
|
|
100
102
|
}
|
|
101
103
|
get value() {
|
|
102
|
-
return h(this,
|
|
104
|
+
return h(this, a).value;
|
|
103
105
|
}
|
|
104
106
|
set value(e) {
|
|
105
|
-
h(this,
|
|
107
|
+
h(this, a).value = e, c(this, l, r).call(this);
|
|
106
108
|
}
|
|
107
109
|
};
|
|
108
|
-
|
|
109
|
-
o = /* @__PURE__ */ new WeakMap();
|
|
110
|
-
r = /* @__PURE__ */ new WeakSet();
|
|
111
|
-
c = function() {
|
|
110
|
+
a = new WeakMap(), o = new WeakMap(), l = new WeakSet(), r = function() {
|
|
112
111
|
this.checked ? h(this, o).setFormValue(this.value) : h(this, o).setFormValue(null), this.classList.toggle("checked", this.checked);
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
_("e-checkbox")
|
|
117
|
-
], f);
|
|
112
|
+
}, g.formAssociated = !0;
|
|
113
|
+
let m = g;
|
|
114
|
+
customElements.get("e-checkbox") || customElements.define("e-checkbox", m);
|
|
118
115
|
export {
|
|
119
|
-
|
|
116
|
+
m as CheckboxElement
|
|
120
117
|
};
|
package/lib/connector/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var f=(
|
|
1
|
+
"use strict";var f=(t,c,e)=>{if(!c.has(t))throw TypeError("Cannot "+e)};var a=(t,c,e)=>(f(t,c,"read from private field"),e?e.call(t):c.get(t)),r=(t,c,e)=>{if(c.has(t))throw TypeError("Cannot add the same private member more than once");c instanceof WeakSet?c.add(t):c.set(t,e)},d=(t,c,e,s)=>(f(t,c,"write to private field"),s?s.call(t,e):c.set(t,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("../order/index.cjs"),h=require("../ticker/index.cjs");var i,o,l;class u{constructor(){r(this,i,[]);r(this,o,void 0);r(this,l,c=>{var e,s,b;for(let C=a(this,i).length-1;C>=0;C--){const n=a(this,i)[C];n.node.isConnected&&!n.isConnected?((e=n.connectCallback)==null||e.call(n,n.node),n.isConnected=!0):!n.node.isConnected&&n.isConnected&&((s=n.disconnectCallback)==null||s.call(n,n.node),n.isConnected=!1,n.unsubscribeAfterDisconnect&&this.unsubscribe(n)),n.isConnected||(n.timer=Math.max(0,c.timeElapsedSinceSubscription-n.startTime),n.timer>n.maxWaitSec*1e3&&((b=n.disconnectCallback)==null||b.call(n,n.node,!0),this.unsubscribe(n)))}})}subscribe(c,e){const s=a(this,i).length;return a(this,i).push({node:c,connectCallback:e.connectCallback,disconnectCallback:e.disconnectCallback,isConnected:!1,maxWaitSec:typeof e.maxWaitSec=="number"?e.maxWaitSec:1/0,timer:0,startTime:performance.now(),unsubscribeAfterDisconnect:e.unsubscribeAfterDisconnect||!1}),s||h.ticker.subscribe(a(this,l),{order:k.TICK_ORDER.CONNECTOR}),()=>{this.unsubscribe(e)}}unsubscribe(c){a(this,i).forEach(e=>{e.connectCallback===c.connectCallback&&(e.connectCallback=void 0),e.disconnectCallback===c.disconnectCallback&&(e.disconnectCallback=void 0)}),d(this,i,a(this,i).filter(e=>e.connectCallback||e.disconnectCallback)),a(this,i).length||(h.ticker.unsubscribe(a(this,l)),d(this,o,void 0))}destroy(){clearInterval(a(this,o)),d(this,i,[])}}i=new WeakMap,o=new WeakMap,l=new WeakMap;const m=new u;exports.Connector=u;exports.connector=m;
|
package/lib/connector/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export type ConnectorConnectCallback = () => void;
|
|
2
|
-
export type ConnectorDisconnectCallback = (expired?: boolean) => void;
|
|
1
|
+
export type ConnectorConnectCallback<T extends Node = Node> = (node: T) => void;
|
|
2
|
+
export type ConnectorDisconnectCallback<T extends Node = Node> = (node: T, expired?: boolean) => void;
|
|
3
3
|
export interface ConnectorOptions {
|
|
4
4
|
connectCallback?: ConnectorConnectCallback;
|
|
5
5
|
disconnectCallback?: ConnectorDisconnectCallback;
|
package/lib/connector/index.js
CHANGED
|
@@ -1,56 +1,61 @@
|
|
|
1
|
-
var
|
|
2
|
-
if (!
|
|
1
|
+
var b = (t, c, e) => {
|
|
2
|
+
if (!c.has(t))
|
|
3
3
|
throw TypeError("Cannot " + e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
if (
|
|
5
|
+
var a = (t, c, e) => (b(t, c, "read from private field"), e ? e.call(t) : c.get(t)), r = (t, c, e) => {
|
|
6
|
+
if (c.has(t))
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
|
-
|
|
9
|
-
}, d = (
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
c instanceof WeakSet ? c.add(t) : c.set(t, e);
|
|
9
|
+
}, d = (t, c, e, s) => (b(t, c, "write to private field"), s ? s.call(t, e) : c.set(t, e), e);
|
|
10
|
+
import { TICK_ORDER as m } from "../order/index.js";
|
|
11
|
+
import { ticker as h } from "../ticker/index.js";
|
|
12
|
+
var i, l, o;
|
|
13
|
+
class k {
|
|
12
14
|
constructor() {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
r(this, i, []);
|
|
16
|
+
r(this, l, void 0);
|
|
17
|
+
r(this, o, (c) => {
|
|
18
|
+
var e, s, f;
|
|
19
|
+
for (let C = a(this, i).length - 1; C >= 0; C--) {
|
|
20
|
+
const n = a(this, i)[C];
|
|
21
|
+
n.node.isConnected && !n.isConnected ? ((e = n.connectCallback) == null || e.call(n, n.node), n.isConnected = !0) : !n.node.isConnected && n.isConnected && ((s = n.disconnectCallback) == null || s.call(n, n.node), n.isConnected = !1, n.unsubscribeAfterDisconnect && this.unsubscribe(n)), n.isConnected || (n.timer = Math.max(
|
|
22
|
+
0,
|
|
23
|
+
c.timeElapsedSinceSubscription - n.startTime
|
|
24
|
+
), n.timer > n.maxWaitSec * 1e3 && ((f = n.disconnectCallback) == null || f.call(n, n.node, !0), this.unsubscribe(n)));
|
|
21
25
|
}
|
|
22
26
|
});
|
|
23
27
|
}
|
|
24
|
-
subscribe(
|
|
25
|
-
const
|
|
26
|
-
return
|
|
27
|
-
node:
|
|
28
|
+
subscribe(c, e) {
|
|
29
|
+
const s = a(this, i).length;
|
|
30
|
+
return a(this, i).push({
|
|
31
|
+
node: c,
|
|
28
32
|
connectCallback: e.connectCallback,
|
|
29
33
|
disconnectCallback: e.disconnectCallback,
|
|
30
34
|
isConnected: !1,
|
|
31
|
-
maxWaitSec: typeof e.maxWaitSec == "number" ? e.maxWaitSec
|
|
35
|
+
maxWaitSec: typeof e.maxWaitSec == "number" ? e.maxWaitSec : 1 / 0,
|
|
32
36
|
timer: 0,
|
|
37
|
+
startTime: performance.now(),
|
|
33
38
|
unsubscribeAfterDisconnect: e.unsubscribeAfterDisconnect || !1
|
|
34
|
-
}),
|
|
35
|
-
|
|
36
|
-
})
|
|
39
|
+
}), s || h.subscribe(a(this, o), {
|
|
40
|
+
order: m.CONNECTOR
|
|
41
|
+
}), () => {
|
|
37
42
|
this.unsubscribe(e);
|
|
38
43
|
};
|
|
39
44
|
}
|
|
40
|
-
unsubscribe(
|
|
41
|
-
|
|
42
|
-
e.connectCallback ===
|
|
43
|
-
}), d(this,
|
|
45
|
+
unsubscribe(c) {
|
|
46
|
+
a(this, i).forEach((e) => {
|
|
47
|
+
e.connectCallback === c.connectCallback && (e.connectCallback = void 0), e.disconnectCallback === c.disconnectCallback && (e.disconnectCallback = void 0);
|
|
48
|
+
}), d(this, i, a(this, i).filter(
|
|
44
49
|
(e) => e.connectCallback || e.disconnectCallback
|
|
45
|
-
)),
|
|
50
|
+
)), a(this, i).length || (h.unsubscribe(a(this, o)), d(this, l, void 0));
|
|
46
51
|
}
|
|
47
52
|
destroy() {
|
|
48
|
-
clearInterval(
|
|
53
|
+
clearInterval(a(this, l)), d(this, i, []);
|
|
49
54
|
}
|
|
50
55
|
}
|
|
51
|
-
|
|
52
|
-
const
|
|
56
|
+
i = new WeakMap(), l = new WeakMap(), o = new WeakMap();
|
|
57
|
+
const v = new k();
|
|
53
58
|
export {
|
|
54
|
-
|
|
55
|
-
|
|
59
|
+
k as Connector,
|
|
60
|
+
v as connector
|
|
56
61
|
};
|
package/lib/counter/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("./tags-
|
|
1
|
+
"use strict";const n=require("./tags-BosXYPYv.cjs");function r(t){const e=new CSSStyleSheet;return e.replaceSync(n.style(t).node.innerHTML),e}exports.createStylesheet=r;
|
|
@@ -5,12 +5,12 @@ import { ConnectorConnectCallback, ConnectorDisconnectCallback } from '../connec
|
|
|
5
5
|
export type StoreOr<T> = T | Store<T>;
|
|
6
6
|
export type ElementConstructorTagNameMap = HTMLElementTagNameMap & SVGElementTagNameMap;
|
|
7
7
|
export type ElementConstructorTagNames = keyof ElementConstructorTagNameMap;
|
|
8
|
-
export type ElementConstructorStringStoreClass = Store<
|
|
9
|
-
export type ElementConstructorStringArrayStoreClass = Store<Array<
|
|
10
|
-
export type ElementConstructorClass = string | Array<string | ElementConstructorStringStoreClass | ElementConstructorStringArrayStoreClass> | ElementConstructorStringStoreClass | ElementConstructorStringArrayStoreClass | {
|
|
11
|
-
[key: string]: boolean | Store<boolean>;
|
|
8
|
+
export type ElementConstructorStringStoreClass = Store<any, any> | Store<any, any>;
|
|
9
|
+
export type ElementConstructorStringArrayStoreClass = Store<Array<any>, any> | Store<Array<any>, any>;
|
|
10
|
+
export type ElementConstructorClass = string | Array<string | ElementConstructorStringStoreClass | ElementConstructorStringArrayStoreClass | null | undefined> | ElementConstructorStringStoreClass | ElementConstructorStringArrayStoreClass | {
|
|
11
|
+
[key: string]: boolean | Store<boolean, any>;
|
|
12
12
|
};
|
|
13
|
-
export type ElementConstructorStyleToken = Exclude<Extract<keyof CSSStyleDeclaration, string> | `--${string}`, 'length' | 'parentRule'>;
|
|
13
|
+
export type ElementConstructorStyleToken = Exclude<Extract<keyof CSSStyleDeclaration, string> | `--${string}` | `-${string}`, 'length' | 'parentRule'>;
|
|
14
14
|
export type ElementConstructorStyleValue = string | number | Store<any>;
|
|
15
15
|
export type ElementConstructorStyle = Partial<{
|
|
16
16
|
[K in ElementConstructorStyleToken]: ElementConstructorStyleValue;
|
|
@@ -54,6 +54,7 @@ export type ElementConstructorTagObject<T extends ElementConstructorTagNames | N
|
|
|
54
54
|
lightChildren?: any;
|
|
55
55
|
onDisconnect?: ConnectorDisconnectCallback;
|
|
56
56
|
onConnect?: ConnectorConnectCallback;
|
|
57
|
+
connectedClass?: boolean | string;
|
|
57
58
|
} & ElementConstructorAttributes<T> & ElementConstructorEvents;
|
|
58
59
|
export declare class ElementConstructor<T extends ElementConstructorTagNames | Node = ElementConstructorTagNames, N = T extends ElementConstructorTagNames ? ElementConstructorTagNameMap[T] : Node> {
|
|
59
60
|
#private;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../tags-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../ElementConstructor-OK-6OPjh.cjs"),e=require("../tags-BosXYPYv.cjs"),r=require("../createStylesheet-9nksoWW0.cjs"),a=require("../createTheme-Cfaw9UmV.cjs");exports.ElementConstructor=t.ElementConstructor;exports.a=e.a;exports.abbr=e.abbr;exports.address=e.address;exports.area=e.area;exports.article=e.article;exports.aside=e.aside;exports.audio=e.audio;exports.b=e.b;exports.base=e.base;exports.bdi=e.bdi;exports.bdo=e.bdo;exports.blockquote=e.blockquote;exports.body=e.body;exports.br=e.br;exports.button=e.button;exports.canvas=e.canvas;exports.caption=e.caption;exports.cite=e.cite;exports.code=e.code;exports.col=e.col;exports.colgroup=e.colgroup;exports.contents=e.contents;exports.data=e.data;exports.datalist=e.datalist;exports.dd=e.dd;exports.del=e.del;exports.details=e.details;exports.dfn=e.dfn;exports.dialog=e.dialog;exports.div=e.div;exports.dl=e.dl;exports.dt=e.dt;exports.element=e.element;exports.em=e.em;exports.embed=e.embed;exports.empty=e.empty;exports.fieldset=e.fieldset;exports.figcaption=e.figcaption;exports.figure=e.figure;exports.footer=e.footer;exports.form=e.form;exports.fragment=e.fragment;exports.h1=e.h1;exports.h2=e.h2;exports.h3=e.h3;exports.h4=e.h4;exports.h5=e.h5;exports.h6=e.h6;exports.head=e.head;exports.header=e.header;exports.hgroup=e.hgroup;exports.hr=e.hr;exports.html=e.html;exports.htmlVar=e.htmlVar;exports.i=e.i;exports.iframe=e.iframe;exports.img=e.img;exports.input=e.input;exports.ins=e.ins;exports.kbd=e.kbd;exports.label=e.label;exports.legend=e.legend;exports.li=e.li;exports.link=e.link;exports.main=e.main;exports.map=e.map;exports.mark=e.mark;exports.menu=e.menu;exports.meta=e.meta;exports.meter=e.meter;exports.nav=e.nav;exports.noscript=e.noscript;exports.object=e.object;exports.ol=e.ol;exports.optgroup=e.optgroup;exports.option=e.option;exports.output=e.output;exports.p=e.p;exports.picture=e.picture;exports.pre=e.pre;exports.progress=e.progress;exports.q=e.q;exports.rp=e.rp;exports.rt=e.rt;exports.ruby=e.ruby;exports.s=e.s;exports.samp=e.samp;exports.script=e.script;exports.search=e.search;exports.section=e.section;exports.select=e.select;exports.slot=e.slot;exports.small=e.small;exports.source=e.source;exports.span=e.span;exports.strong=e.strong;exports.style=e.style;exports.sub=e.sub;exports.summary=e.summary;exports.sup=e.sup;exports.table=e.table;exports.tbody=e.tbody;exports.td=e.td;exports.template=e.template;exports.textarea=e.textarea;exports.tfoot=e.tfoot;exports.th=e.th;exports.thead=e.thead;exports.time=e.time;exports.title=e.title;exports.tr=e.tr;exports.track=e.track;exports.u=e.u;exports.ul=e.ul;exports.video=e.video;exports.wbr=e.wbr;exports.createStylesheet=r.createStylesheet;exports.createTheme=a.createTheme;
|
|
@@ -1,124 +1,125 @@
|
|
|
1
|
-
import { E as e
|
|
2
|
-
import { c as
|
|
3
|
-
import { c as
|
|
1
|
+
import { E as e } from "../ElementConstructor-rValMo8f.js";
|
|
2
|
+
import { a as r, b as o, c as i, d as l, f as d, g as m, h as p, i as c, j as n, k as u, l as b, m as h, n as f, o as g, p as y, q as k, r as x, s as v, t as q, u as E, v as j, aZ as w, w as C, x as S, y as T, z as V, A as z, B as A, C as B, D, E as F, F as G, e as H, G as I, H as J, aY as K, I as L, J as M, K as N, L as O, M as P, aX as Q, N as R, O as U, P as W, Q as X, R as Y, S as Z, T as _, U as $, V as aa, W as sa, X as ea, aU as ta, Y as ra, Z as oa, _ as ia, $ as la, a0 as da, a1 as ma, a2 as pa, a3 as ca, a4 as na, a5 as ua, a6 as ba, a7 as ha, a8 as fa, a9 as ga, aa as ya, ab as ka, ac as xa, ad as va, ae as qa, af as Ea, ag as ja, ah as wa, ai as Ca, aj as Sa, ak as Ta, al as Va, am as za, an as Aa, ao as Ba, ap as Da, aq as Fa, ar as Ga, as as Ha, at as Ia, au as Ja, av as Ka, aw as La, ax as Ma, ay as Na, az as Oa, aA as Pa, aB as Qa, aC as Ra, aD as Ua, aE as Wa, aF as Xa, aG as Ya, aH as Za, aI as _a, aJ as $a, aK as as, aL as ss, aM as es, aN as ts, aO as rs, aP as os, aQ as is, aR as ls, aS as ds, aT as ms, aV as ps, aW as cs } from "../tags-D0kLlFdQ.js";
|
|
3
|
+
import { c as us } from "../createStylesheet-BrFGJ8Q7.js";
|
|
4
|
+
import { c as hs } from "../createTheme-CHnsCgAr.js";
|
|
4
5
|
export {
|
|
5
6
|
e as ElementConstructor,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
7
|
+
r as a,
|
|
8
|
+
o as abbr,
|
|
9
|
+
i as address,
|
|
10
|
+
l as area,
|
|
11
|
+
d as article,
|
|
12
|
+
m as aside,
|
|
13
|
+
p as audio,
|
|
14
|
+
c as b,
|
|
15
|
+
n as base,
|
|
16
|
+
u as bdi,
|
|
17
|
+
b as bdo,
|
|
18
|
+
h as blockquote,
|
|
19
|
+
f as body,
|
|
20
|
+
g as br,
|
|
21
|
+
y as button,
|
|
22
|
+
k as canvas,
|
|
23
|
+
x as caption,
|
|
23
24
|
v as cite,
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
q as code,
|
|
26
|
+
E as col,
|
|
26
27
|
j as colgroup,
|
|
27
28
|
w as contents,
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
us as createStylesheet,
|
|
30
|
+
hs as createTheme,
|
|
30
31
|
C as data,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
32
|
+
S as datalist,
|
|
33
|
+
T as dd,
|
|
34
|
+
V as del,
|
|
35
|
+
z as details,
|
|
36
|
+
A as dfn,
|
|
37
|
+
B as dialog,
|
|
38
|
+
D as div,
|
|
39
|
+
F as dl,
|
|
40
|
+
G as dt,
|
|
41
|
+
H as element,
|
|
42
|
+
I as em,
|
|
43
|
+
J as embed,
|
|
44
|
+
K as empty,
|
|
45
|
+
L as fieldset,
|
|
46
|
+
M as figcaption,
|
|
47
|
+
N as figure,
|
|
48
|
+
O as footer,
|
|
49
|
+
P as form,
|
|
50
|
+
Q as fragment,
|
|
51
|
+
R as h1,
|
|
52
|
+
U as h2,
|
|
53
|
+
W as h3,
|
|
54
|
+
X as h4,
|
|
55
|
+
Y as h5,
|
|
56
|
+
Z as h6,
|
|
57
|
+
_ as head,
|
|
58
|
+
$ as header,
|
|
59
|
+
aa as hgroup,
|
|
60
|
+
sa as hr,
|
|
61
|
+
ea as html,
|
|
62
|
+
ta as htmlVar,
|
|
63
|
+
ra as i,
|
|
64
|
+
oa as iframe,
|
|
65
|
+
ia as img,
|
|
66
|
+
la as input,
|
|
67
|
+
da as ins,
|
|
68
|
+
ma as kbd,
|
|
69
|
+
pa as label,
|
|
70
|
+
ca as legend,
|
|
71
|
+
na as li,
|
|
72
|
+
ua as link,
|
|
73
|
+
ba as main,
|
|
74
|
+
ha as map,
|
|
75
|
+
fa as mark,
|
|
76
|
+
ga as menu,
|
|
77
|
+
ya as meta,
|
|
78
|
+
ka as meter,
|
|
79
|
+
xa as nav,
|
|
79
80
|
va as noscript,
|
|
80
|
-
|
|
81
|
-
|
|
81
|
+
qa as object,
|
|
82
|
+
Ea as ol,
|
|
82
83
|
ja as optgroup,
|
|
83
84
|
wa as option,
|
|
84
85
|
Ca as output,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
86
|
+
Sa as p,
|
|
87
|
+
Ta as picture,
|
|
88
|
+
Va as pre,
|
|
89
|
+
za as progress,
|
|
90
|
+
Aa as q,
|
|
91
|
+
Ba as rp,
|
|
92
|
+
Da as rt,
|
|
93
|
+
Fa as ruby,
|
|
94
|
+
Ga as s,
|
|
95
|
+
Ha as samp,
|
|
96
|
+
Ia as script,
|
|
97
|
+
Ja as search,
|
|
98
|
+
Ka as section,
|
|
99
|
+
La as select,
|
|
100
|
+
Ma as slot,
|
|
101
|
+
Na as small,
|
|
102
|
+
Oa as source,
|
|
103
|
+
Pa as span,
|
|
104
|
+
Qa as strong,
|
|
105
|
+
Ra as style,
|
|
106
|
+
Ua as sub,
|
|
107
|
+
Wa as summary,
|
|
108
|
+
Xa as sup,
|
|
109
|
+
Ya as table,
|
|
110
|
+
Za as tbody,
|
|
111
|
+
_a as td,
|
|
112
|
+
$a as template,
|
|
113
|
+
as as textarea,
|
|
114
|
+
ss as tfoot,
|
|
115
|
+
es as th,
|
|
116
|
+
ts as thead,
|
|
117
|
+
rs as time,
|
|
118
|
+
os as title,
|
|
119
|
+
is as tr,
|
|
120
|
+
ls as track,
|
|
121
|
+
ds as u,
|
|
122
|
+
ms as ul,
|
|
123
|
+
ps as video,
|
|
124
|
+
cs as wbr
|
|
124
125
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { CustomElement } from '../../../custom-element';
|
|
2
1
|
import { En3Fluid } from './En3Fluid';
|
|
3
2
|
|
|
4
|
-
export declare class En3FluidElement extends
|
|
3
|
+
export declare class En3FluidElement extends HTMLElement {
|
|
5
4
|
#private;
|
|
6
5
|
get fluid(): En3Fluid;
|
|
7
6
|
protected connectedCallback(): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t={value:null},n={value:null},e={value:[]};exports.contextStack=e;exports.currentComponentElement=t;exports.nextComponentAttributes=n;
|
package/lib/image/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../window-resizer/index.cjs");require("../Store-Cr3VaD9G.cjs");const r=require("../source/index.cjs");class e extends r.SourceElement{createConsumer(){return document.createElement("img")}consumeSource(t){this.consumerElement.src=t||""}}customElements.get("e-image")||customElements.define("e-image",e);exports.ImageElement=e;
|
package/lib/image/index.js
CHANGED
|
@@ -1,23 +1,15 @@
|
|
|
1
|
-
import { define as p } from "../custom-element/index.js";
|
|
2
1
|
import "../window-resizer/index.js";
|
|
3
2
|
import "../Store-Qr3SNOSf.js";
|
|
4
|
-
import { SourceElement as
|
|
5
|
-
|
|
6
|
-
for (var e = m > 1 ? void 0 : m ? f(t, o) : t, n = r.length - 1, s; n >= 0; n--)
|
|
7
|
-
(s = r[n]) && (e = (m ? s(t, o, e) : s(e)) || e);
|
|
8
|
-
return m && e && u(t, o, e), e;
|
|
9
|
-
};
|
|
10
|
-
let c = class extends l {
|
|
3
|
+
import { SourceElement as m } from "../source/index.js";
|
|
4
|
+
class t extends m {
|
|
11
5
|
createConsumer() {
|
|
12
6
|
return document.createElement("img");
|
|
13
7
|
}
|
|
14
|
-
consumeSource(
|
|
15
|
-
this.consumerElement.src =
|
|
8
|
+
consumeSource(e) {
|
|
9
|
+
this.consumerElement.src = e || "";
|
|
16
10
|
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
p("e-image")
|
|
20
|
-
], c);
|
|
11
|
+
}
|
|
12
|
+
customElements.get("e-image") || customElements.define("e-image", t);
|
|
21
13
|
export {
|
|
22
|
-
|
|
14
|
+
t as ImageElement
|
|
23
15
|
};
|