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