aptechka 0.5.44 → 0.7.1

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 (234) hide show
  1. package/lib/Animation-6Na1MCtM.cjs +1 -0
  2. package/lib/Animation-CELiTw3n.js +132 -0
  3. package/lib/Composed-DmLYTh1b.js +35 -0
  4. package/lib/Composed-Dx2hs-va.cjs +1 -0
  5. package/lib/{Damped-P4MkCGoY.js → Damped-Mx_FNNVz.js} +2 -5
  6. package/lib/Damped-loFiBsBy.cjs +1 -0
  7. package/lib/{Derived-kPJs5JC5.js → Derived-DlCvc0xQ.js} +1 -1
  8. package/lib/{Derived-B-g8dYgh.cjs → Derived-a6MDQEPY.cjs} +1 -1
  9. package/lib/ElementConstructor-CAZ2ra8m.cjs +1 -0
  10. package/lib/ElementConstructor-OYlPJf2L.js +366 -0
  11. package/lib/Resource-D3TQormz.cjs +1 -0
  12. package/lib/Resource-DIcoALGo.js +64 -0
  13. package/lib/{SourceManager-Q-PB-Rkh.js → SourceManager-Bz329f90.js} +1 -1
  14. package/lib/{SourceManager-vSlsMKUE.cjs → SourceManager-kxr5eUyL.cjs} +1 -1
  15. package/lib/Store-6s0YXK4o.cjs +1 -0
  16. package/lib/{Store-BQXXikps.js → Store-BI2xxXOA.js} +42 -42
  17. package/lib/Tweened-B_mclQ61.cjs +1 -0
  18. package/lib/Tweened-NE8M9onF.js +48 -0
  19. package/lib/{Viewport-DMB0dO-s.cjs → Viewport-CJeKnL5V.cjs} +1 -1
  20. package/lib/{Viewport-CFFhFKqX.js → Viewport-D9IL7kUQ.js} +1 -1
  21. package/lib/_createStore-Cf1MyeHa.cjs +1 -0
  22. package/lib/_createStore-Ck9bHolX.js +12 -0
  23. package/lib/accordion/AccordionElement.d.ts +3 -0
  24. package/lib/accordion/index.cjs +1 -1
  25. package/lib/accordion/index.js +140 -104
  26. package/lib/animation/Animation.d.ts +10 -18
  27. package/lib/animation/Damped.d.ts +3 -5
  28. package/lib/animation/Tweened.d.ts +0 -2
  29. package/lib/animation/index.cjs +1 -1
  30. package/lib/animation/index.js +3 -3
  31. package/lib/attribute/index.cjs +1 -1
  32. package/lib/attribute/index.js +31 -31
  33. package/lib/canvas/index.cjs +1 -1
  34. package/lib/canvas/index.js +3 -3
  35. package/lib/checkbox/index.cjs +1 -1
  36. package/lib/checkbox/index.js +3 -3
  37. package/lib/class-linked-status/index.cjs +1 -1
  38. package/lib/class-linked-status/index.js +1 -1
  39. package/lib/controls/index.cjs +1 -1
  40. package/lib/controls/index.js +3 -3
  41. package/lib/counter/index.d.ts +8 -0
  42. package/lib/{createStylesheet-DBCEbDjI.js → createStylesheet-CR_yi5tp.js} +1 -1
  43. package/lib/{createStylesheet-CqHU9_qv.cjs → createStylesheet-p23sZ7Ey.cjs} +1 -1
  44. package/lib/css-property/index.cjs +1 -1
  45. package/lib/css-property/index.d.ts +1 -0
  46. package/lib/css-property/index.js +36 -32
  47. package/lib/dev/index.cjs +1 -1
  48. package/lib/dev/index.js +1 -1
  49. package/lib/device/index.cjs +1 -1
  50. package/lib/device/index.js +1 -1
  51. package/lib/element-constructor/index.cjs +1 -1
  52. package/lib/element-constructor/index.js +114 -113
  53. package/lib/en3/core/En3Raycaster.d.ts +20 -0
  54. package/lib/en3/core/En3View.d.ts +1 -1
  55. package/lib/en3/core/en3.d.ts +5 -1
  56. package/lib/en3/helpers/En3Controls.d.ts +5 -0
  57. package/lib/en3/helpers/En3GridHelper.d.ts +8 -0
  58. package/lib/en3/helpers/En3Object3dManager.d.ts +12 -0
  59. package/lib/en3/helpers/En3OrbitControls.d.ts +8 -0
  60. package/lib/en3/helpers/En3TransformControls.d.ts +8 -0
  61. package/lib/en3/helpers/index.cjs +1 -0
  62. package/lib/en3/helpers/index.d.ts +2 -0
  63. package/lib/en3/helpers/index.js +1165 -0
  64. package/lib/en3/index.cjs +1 -213
  65. package/lib/en3/index.d.ts +1 -19
  66. package/lib/en3/index.js +4 -3305
  67. package/lib/en3/libs/index.d.ts +1 -0
  68. package/lib/en3/loaders/{en3GLTFLoader.d.ts → En3GLTFLoader.d.ts} +2 -4
  69. package/lib/en3/loaders/En3TextureLoader.d.ts +8 -0
  70. package/lib/en3/loaders/index.cjs +1 -0
  71. package/lib/en3/loaders/index.d.ts +3 -0
  72. package/lib/en3/loaders/index.js +1757 -0
  73. package/lib/en3/loaders/loaders.d.ts +13 -0
  74. package/lib/en3/misc/index.cjs +10 -0
  75. package/lib/en3/misc/index.d.ts +2 -0
  76. package/lib/en3/misc/index.js +115 -0
  77. package/lib/en3/objects/En3Clip.d.ts +1 -1
  78. package/lib/en3/objects/En3GLTF.d.ts +2 -1
  79. package/lib/en3/objects/En3ImageLike.d.ts +2 -1
  80. package/lib/en3/objects/En3SourceConsumer.d.ts +1 -1
  81. package/lib/en3/objects/fluid/index.d.ts +0 -3
  82. package/lib/en3/objects/index.d.ts +7 -0
  83. package/lib/en3/utils/index.cjs +1 -0
  84. package/lib/en3/utils/index.d.ts +5 -0
  85. package/lib/en3/utils/index.js +43 -0
  86. package/lib/en3-C4mzaF6q.cjs +8 -0
  87. package/lib/en3-hbkN1OPu.js +343 -0
  88. package/lib/globals-DMjysUXI.js +8 -0
  89. package/lib/globals-bYKki-b9.cjs +1 -0
  90. package/lib/image/index.cjs +1 -1
  91. package/lib/image/index.js +1 -1
  92. package/lib/{index-BN9X-l9M.js → index-BAH_fO2N.js} +3 -3
  93. package/lib/{index-BbgmbQ-5.cjs → index-D1LQUR-R.cjs} +1 -1
  94. package/lib/instantiate-D19Uvc31.js +125 -0
  95. package/lib/instantiate-Db5gGSYG.cjs +1 -0
  96. package/lib/jsx/ComponentElement.d.ts +18 -0
  97. package/lib/jsx/globals.d.ts +13 -0
  98. package/lib/jsx/h.d.ts +7 -0
  99. package/lib/jsx/hooks/basic/_createStore.d.ts +4 -0
  100. package/lib/jsx/hooks/basic/attachInternals.d.ts +1 -0
  101. package/lib/jsx/hooks/basic/attachShadow.d.ts +1 -0
  102. package/lib/jsx/hooks/basic/attachStylesheet.d.ts +3 -0
  103. package/lib/jsx/hooks/basic/createContext.d.ts +2 -0
  104. package/lib/jsx/hooks/basic/onConnect.d.ts +3 -0
  105. package/lib/jsx/hooks/basic/onDisconnect.d.ts +3 -0
  106. package/lib/jsx/hooks/onAnimationFrame.cjs +1 -0
  107. package/lib/jsx/hooks/onAnimationFrame.d.ts +6 -0
  108. package/lib/jsx/hooks/onAnimationFrame.js +22 -0
  109. package/lib/jsx/hooks/onElementResize.cjs +1 -0
  110. package/lib/jsx/hooks/onElementResize.d.ts +5 -0
  111. package/lib/jsx/hooks/onElementResize.js +11 -0
  112. package/lib/jsx/hooks/onIntersection.cjs +1 -0
  113. package/lib/jsx/hooks/onIntersection.d.ts +5 -0
  114. package/lib/jsx/hooks/onIntersection.js +11 -0
  115. package/lib/jsx/hooks/onWindowResize.cjs +1 -0
  116. package/lib/jsx/hooks/onWindowResize.d.ts +3 -0
  117. package/lib/jsx/hooks/onWindowResize.js +8 -0
  118. package/lib/jsx/hooks/store/createArrayStore.d.ts +3 -0
  119. package/lib/jsx/hooks/store/createComposed.d.ts +3 -0
  120. package/lib/jsx/hooks/store/createDerived.d.ts +3 -0
  121. package/lib/jsx/hooks/store/createDerivedArray.d.ts +3 -0
  122. package/lib/jsx/hooks/store/createDerivedComponent.d.ts +3 -0
  123. package/lib/jsx/hooks/store/createDerivedComponents.d.ts +3 -0
  124. package/lib/jsx/hooks/store/createResource.d.ts +3 -0
  125. package/lib/jsx/hooks/store/createStore.d.ts +3 -0
  126. package/lib/jsx/hooks/store/index.cjs +1 -0
  127. package/lib/jsx/hooks/store/index.d.ts +7 -0
  128. package/lib/jsx/hooks/store/index.js +49 -0
  129. package/lib/jsx/hooks/watchAttribute.cjs +1 -0
  130. package/lib/jsx/hooks/watchAttribute.d.ts +6 -0
  131. package/lib/jsx/hooks/watchAttribute.js +17 -0
  132. package/lib/jsx/hooks/watchCSSProperty.cjs +1 -0
  133. package/lib/jsx/hooks/watchCSSProperty.d.ts +7 -0
  134. package/lib/jsx/hooks/watchCSSProperty.js +17 -0
  135. package/lib/jsx/index.cjs +1 -0
  136. package/lib/jsx/index.d.ts +13 -0
  137. package/lib/jsx/index.js +91 -0
  138. package/lib/jsx/instantiate.d.ts +5 -0
  139. package/lib/jsx/register.d.ts +1 -0
  140. package/lib/jsx/render.d.ts +6 -0
  141. package/lib/jsx/type.d.ts +188 -0
  142. package/lib/ladder/index.cjs +1 -1
  143. package/lib/ladder/index.d.ts +2 -0
  144. package/lib/ladder/index.js +84 -66
  145. package/lib/layout-box/index.cjs +1 -1
  146. package/lib/layout-box/index.d.ts +9 -0
  147. package/lib/layout-box/index.js +190 -164
  148. package/lib/media/index.cjs +1 -1
  149. package/lib/media/index.js +1 -1
  150. package/lib/modal/index.cjs +1 -1
  151. package/lib/modal/index.js +7 -7
  152. package/lib/morph/Morph.d.ts +2 -2
  153. package/lib/morph/index.cjs +1 -1
  154. package/lib/morph/index.d.ts +1 -1
  155. package/lib/morph/index.js +135 -143
  156. package/lib/notifier/index.d.ts +2 -2
  157. package/lib/notifier/index.js +3 -1
  158. package/lib/onConnect-DGP866cj.cjs +1 -0
  159. package/lib/onConnect-y5DrxJ9P.js +7 -0
  160. package/lib/pointer/index.cjs +1 -1
  161. package/lib/pointer/index.js +2 -2
  162. package/lib/polyfills-CM4SCDTt.cjs +1 -0
  163. package/lib/polyfills-X6KXuHg-.js +33 -0
  164. package/lib/popover/index.cjs +1 -1
  165. package/lib/popover/index.js +2 -2
  166. package/lib/router/Router.d.ts +11 -3
  167. package/lib/router/index.cjs +1 -1
  168. package/lib/router/index.d.ts +1 -1
  169. package/lib/router/index.js +185 -165
  170. package/lib/scroll/ScrollElement.d.ts +2 -19
  171. package/lib/scroll/ScrollSection.d.ts +23 -0
  172. package/lib/scroll/index.cjs +1 -1
  173. package/lib/scroll/index.js +81 -77
  174. package/lib/select/index.cjs +1 -1
  175. package/lib/select/index.js +1 -1
  176. package/lib/sequence/index.cjs +1 -1
  177. package/lib/sequence/index.js +1 -1
  178. package/lib/source/index.cjs +1 -1
  179. package/lib/source/index.js +2 -2
  180. package/lib/store/ArrayStore.d.ts +21 -0
  181. package/lib/store/Store.d.ts +1 -7
  182. package/lib/store/index.cjs +1 -1
  183. package/lib/store/index.d.ts +2 -2
  184. package/lib/store/index.js +65 -139
  185. package/lib/tags-BqJKcIve.js +485 -0
  186. package/lib/tags-ld5jemJw.cjs +1 -0
  187. package/lib/theme/index.cjs +1 -1
  188. package/lib/theme/index.js +2 -2
  189. package/lib/tweaker/TweakerBooleanManagerElement.d.ts +1 -1
  190. package/lib/tweaker/TweakerColorManagerElement.d.ts +1 -1
  191. package/lib/tweaker/TweakerFolderElement.d.ts +2 -0
  192. package/lib/tweaker/TweakerLinkManagerElement.d.ts +1 -1
  193. package/lib/tweaker/TweakerNumberManagerElement.d.ts +4 -8
  194. package/lib/tweaker/TweakerSelectManagerElement.d.ts +1 -1
  195. package/lib/tweaker/TweakerStoreManagerElement.d.ts +7 -7
  196. package/lib/tweaker/TweakerStringManagerElement.d.ts +3 -5
  197. package/lib/tweaker/index.cjs +3 -3
  198. package/lib/tweaker/index.js +535 -412
  199. package/lib/tweaker/tweakerManagerConstructors.d.ts +2 -2
  200. package/lib/tweaker/tweakerStorage.d.ts +8 -1
  201. package/lib/url-C3dWnJQg.cjs +1 -0
  202. package/lib/url-DMNfW7uN.js +22 -0
  203. package/lib/utils/index.cjs +1 -1
  204. package/lib/utils/index.d.ts +1 -0
  205. package/lib/utils/index.js +39 -34
  206. package/lib/utils/number.d.ts +1 -0
  207. package/lib/utils/url.d.ts +9 -0
  208. package/lib/video/index.cjs +1 -1
  209. package/lib/video/index.js +1 -1
  210. package/package.json +107 -3
  211. package/lib/Animation-DDHjrbtL.cjs +0 -1
  212. package/lib/Animation-Dq_05jlR.js +0 -217
  213. package/lib/DRACOLoader-C2CFpMGS.cjs +0 -2
  214. package/lib/DRACOLoader-D2KY2dku.js +0 -241
  215. package/lib/Damped-l0mnlhar.cjs +0 -1
  216. package/lib/KTX2Loader-DdUl1XiY.cjs +0 -2
  217. package/lib/KTX2Loader-DqpAffDj.js +0 -536
  218. package/lib/Store-C-1ruEIm.cjs +0 -1
  219. package/lib/Tweened-CwDC2zl8.js +0 -51
  220. package/lib/Tweened-DIt9j9B-.cjs +0 -1
  221. package/lib/animation/AnimationLink.d.ts +0 -13
  222. package/lib/en3/loaders/en3TextureLoader.d.ts +0 -3
  223. package/lib/en3/test/En3HTML.d.ts +0 -10
  224. package/lib/polyfills-BA-CL_HF.js +0 -27
  225. package/lib/polyfills-DHs2SNbz.cjs +0 -1
  226. package/lib/store/CumulativeResource.d.ts +0 -13
  227. package/lib/tags-CMPg9ETZ.js +0 -848
  228. package/lib/tags-Djb6mb1o.cjs +0 -1
  229. package/lib/tweaker/TweakerRangeManagerElement.d.ts +0 -11
  230. /package/lib/en3/{loaders → core}/en3Cache.d.ts +0 -0
  231. /package/lib/{MeshoptDecoder-CMeN3oU0.cjs → en3/libs/index.cjs} +0 -0
  232. /package/lib/{MeshoptDecoder-6XfTpOG2.js → en3/libs/index.js} +0 -0
  233. /package/lib/en3/{test → misc}/En3ModifiedMaterial.d.ts +0 -0
  234. /package/lib/en3/{attachments → misc}/En3SourceManager.d.ts +0 -0
@@ -1,163 +1,199 @@
1
- var S = (t, e, s) => {
2
- if (!e.has(t))
1
+ var D = (i, t, s) => {
2
+ if (!t.has(i))
3
3
  throw TypeError("Cannot " + s);
4
4
  };
5
- var i = (t, e, s) => (S(t, e, "read from private field"), s ? s.call(t) : e.get(t)), h = (t, e, s) => {
6
- if (e.has(t))
5
+ var e = (i, t, s) => (D(i, t, "read from private field"), s ? s.call(i) : t.get(i)), h = (i, t, s) => {
6
+ if (t.has(i))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
- e instanceof WeakSet ? e.add(t) : e.set(t, s);
9
- }, c = (t, e, s, m) => (S(t, e, "write to private field"), m ? m.call(t, s) : e.set(t, s), s);
10
- var l = (t, e, s) => (S(t, e, "access private method"), s);
11
- import { CustomElement as J, define as K } from "../custom-element/index.js";
12
- import { Attribute as B } from "../attribute/index.js";
13
- import { i as Q } from "../browser-0zX67oeU.js";
14
- import { d as U } from "../events-_C2CztxR.js";
15
- import { a as V } from "../style-CklEF62D.js";
16
- var X = Object.defineProperty, Y = Object.getOwnPropertyDescriptor, Z = (t, e, s, m) => {
17
- for (var g = m > 1 ? void 0 : m ? Y(e, s) : e, I = t.length - 1, O; I >= 0; I--)
18
- (O = t[I]) && (g = (m ? O(e, s, g) : O(g)) || g);
19
- return m && g && X(e, s, g), g;
20
- }, q = (t, e, s) => {
21
- if (!e.has(t))
8
+ t instanceof WeakSet ? t.add(i) : t.set(i, s);
9
+ }, d = (i, t, s, a) => (D(i, t, "write to private field"), a ? a.call(i, s) : t.set(i, s), s);
10
+ var n = (i, t, s) => (D(i, t, "access private method"), s);
11
+ import { CustomElement as V, define as X } from "../custom-element/index.js";
12
+ import { Attribute as F } from "../attribute/index.js";
13
+ import { i as Y } from "../browser-0zX67oeU.js";
14
+ import { a as Z } from "../dom-0S_WDL4g.js";
15
+ import { d as j } from "../events-_C2CztxR.js";
16
+ import { a as ee } from "../style-CklEF62D.js";
17
+ var te = Object.defineProperty, ie = Object.getOwnPropertyDescriptor, se = (i, t, s, a) => {
18
+ for (var E = a > 1 ? void 0 : a ? ie(t, s) : t, R = i.length - 1, P; R >= 0; R--)
19
+ (P = i[R]) && (E = (a ? P(t, s, E) : P(E)) || E);
20
+ return a && E && te(t, s, E), E;
21
+ }, Q = (i, t, s) => {
22
+ if (!t.has(i))
22
23
  throw TypeError("Cannot " + s);
23
- }, a = (t, e, s) => (q(t, e, "read from private field"), s ? s.call(t) : e.get(t)), T = (t, e, s) => {
24
- if (e.has(t))
24
+ }, c = (i, t, s) => (Q(i, t, "read from private field"), s ? s.call(i) : t.get(i)), A = (i, t, s) => {
25
+ if (t.has(i))
25
26
  throw TypeError("Cannot add the same private member more than once");
26
- e instanceof WeakSet ? e.add(t) : e.set(t, s);
27
- }, R = (t, e, s, m) => (q(t, e, "write to private field"), e.set(t, s), s), W, P, d, _, z, D, p, r, f, n, E, M, w, u, x, F, y, C, H, b, o, v, L, k, A, N;
28
- class G {
29
- constructor(e, s) {
30
- h(this, x);
31
- h(this, o);
32
- h(this, L);
33
- h(this, A);
34
- h(this, p, null);
27
+ t instanceof WeakSet ? t.add(i) : t.set(i, s);
28
+ }, N = (i, t, s, a) => (Q(i, t, "write to private field"), t.set(i, s), s), B, G, m, y, M, $, o, r, v, l, L, O, T, u, x, W, U, w, S, _, C, H, z, f, g, p, b, k, q, I;
29
+ class J {
30
+ constructor(t, s) {
31
+ h(this, W);
32
+ h(this, w);
33
+ h(this, f);
34
+ h(this, p);
35
+ h(this, k);
36
+ h(this, o, null);
35
37
  h(this, r, null);
36
- h(this, f, null);
37
- h(this, n, null);
38
- h(this, E, null);
39
- h(this, M, !1);
40
- h(this, w, void 0);
38
+ h(this, v, null);
39
+ h(this, l, null);
40
+ h(this, L, null);
41
+ h(this, O, !1);
42
+ h(this, T, void 0);
41
43
  h(this, u, !1);
42
- h(this, y, () => {
43
- i(this, u) ? this.close() : this.open();
44
+ h(this, x, []);
45
+ h(this, _, () => {
46
+ e(this, u) ? this.close() : this.open();
44
47
  });
45
48
  h(this, C, () => {
46
- i(this, u) && (l(this, o, v).call(this, 0, !0), l(this, o, v).call(this, i(this, n).scrollHeight));
49
+ e(this, u) && (n(this, f, g).call(this, 0, !0), n(this, f, g).call(this, e(this, w, S)));
47
50
  });
48
51
  h(this, H, () => {
49
- l(this, L, k).call(this, "size-change");
52
+ n(this, p, b).call(this, "size-change");
50
53
  });
51
- h(this, b, () => {
52
- i(this, u) && (l(this, o, v).call(this, 0, !0), l(this, o, v).call(this, i(this, n).scrollHeight));
54
+ h(this, z, (t) => {
55
+ e(this, u) && (n(this, f, g).call(this, 0, !0), n(this, f, g).call(this, e(this, w, S)), e(this, x).forEach((s) => {
56
+ s.element.scroll({
57
+ left: e(this, o).axisAttribute.current === "x" ? s.scroll : 0,
58
+ top: e(this, o).axisAttribute.current === "y" ? s.scroll : 0
59
+ });
60
+ }));
61
+ });
62
+ h(this, I, () => {
63
+ const t = Z(e(this, r));
64
+ d(this, x, t.map((s) => ({
65
+ element: s,
66
+ scroll: e(this, o).axisAttribute.current === "y" ? s.scrollTop : s.scrollLeft
67
+ })));
53
68
  });
54
- s.firstElementChild instanceof HTMLElement && s.lastElementChild instanceof HTMLElement ? (c(this, p, e), c(this, r, s), c(this, f, s.firstElementChild), c(this, n, s.lastElementChild), i(this, f).style.cursor = "default", i(this, n).style.height = "0px", i(this, n).style.overflow = "hidden", c(this, E, new ResizeObserver(i(this, H))), addEventListener("resize", i(this, C)), i(this, f).addEventListener("click", i(this, y)), i(this, r).addEventListener(
69
+ s.firstElementChild instanceof HTMLElement && s.lastElementChild instanceof HTMLElement ? (d(this, o, t), d(this, r, s), d(this, v, s.firstElementChild), d(this, l, s.lastElementChild), e(this, v).style.cursor = "default", e(this, l).style.overflow = "hidden", e(this, o).axisAttribute.current === "y" ? e(this, l).style.height = "0px" : e(this, l).style.width = "0px", d(this, L, new ResizeObserver(e(this, H))), addEventListener("resize", e(this, C)), e(this, v).addEventListener("click", e(this, _)), e(this, r).addEventListener(
55
70
  "sizeChange",
56
- i(this, b)
57
- ), i(this, r).hasAttribute("data-opened") && this.open({ skipTransition: !0 })) : e.removeItem(i(this, r));
71
+ e(this, z)
72
+ ), e(this, r).addEventListener(
73
+ "beforeAccordionItemToggle",
74
+ e(this, I)
75
+ ), e(this, r).hasAttribute("data-opened") && this.open({ skipTransition: !0 })) : t.removeItem(e(this, r));
58
76
  }
59
77
  get element() {
60
- return i(this, r);
78
+ return e(this, r);
61
79
  }
62
80
  destroy() {
63
- i(this, f) && (i(this, r).classList.remove("opened", "triggered"), i(this, f).style.cursor = "", l(this, o, v).call(this, void 0), i(this, E).disconnect(), removeEventListener("resize", i(this, C)), i(this, f).removeEventListener("click", i(this, y)), i(this, r).removeEventListener(
81
+ e(this, v) && (e(this, r).classList.remove("opened", "triggered"), e(this, v).style.cursor = "", n(this, f, g).call(this, void 0), e(this, L).disconnect(), removeEventListener("resize", e(this, C)), e(this, v).removeEventListener("click", e(this, _)), e(this, r).removeEventListener(
64
82
  "sizeChange",
65
- i(this, b)
66
- ), clearTimeout(i(this, w)));
83
+ e(this, z)
84
+ ), e(this, r).removeEventListener(
85
+ "beforeAccordionItemToggle",
86
+ e(this, I)
87
+ ), clearTimeout(e(this, T)));
67
88
  }
68
- open(e) {
69
- e != null && e.skipTransition && l(this, A, N).call(this), i(this, p).multipleAttribute.current || i(this, p).closeAll({ exclude: i(this, r) }), i(this, M) || i(this, E).observe(i(this, n)), c(this, u, !0), clearTimeout(i(this, w)), i(this, r).classList.add("triggered"), l(this, o, v).call(this, i(this, n).scrollHeight), setTimeout(() => {
70
- i(this, r).classList.add("opened");
71
- }, 0), l(this, L, k).call(this, "toggle");
89
+ open(t) {
90
+ n(this, p, b).call(this, "before-toggle"), t != null && t.skipTransition && n(this, k, q).call(this), e(this, o).multipleAttribute.current || e(this, o).closeAll({ exclude: e(this, r) }), e(this, O) || e(this, L).observe(e(this, l)), d(this, u, !0), clearTimeout(e(this, T)), e(this, r).classList.add("triggered"), n(this, f, g).call(this, e(this, w, S)), setTimeout(() => {
91
+ e(this, r).classList.add("opened");
92
+ }, 0), n(this, p, b).call(this, "toggle");
72
93
  }
73
- close(e) {
74
- e != null && e.skipTransition && l(this, A, N).call(this), c(this, u, !1), i(this, r).classList.remove("opened"), l(this, o, v).call(this, 0), c(this, w, setTimeout(() => {
75
- i(this, r).classList.remove("triggered");
76
- }, V(i(this, n)))), l(this, L, k).call(this, "toggle");
94
+ close(t) {
95
+ n(this, p, b).call(this, "before-toggle"), t != null && t.skipTransition && n(this, k, q).call(this), d(this, u, !1), e(this, r).classList.remove("opened"), n(this, f, g).call(this, 0), d(this, T, setTimeout(() => {
96
+ e(this, r).classList.remove("triggered");
97
+ }, ee(e(this, l)))), n(this, p, b).call(this, "toggle");
77
98
  }
78
99
  }
79
- p = new WeakMap(), r = new WeakMap(), f = new WeakMap(), n = new WeakMap(), E = new WeakMap(), M = new WeakMap(), w = new WeakMap(), u = new WeakMap(), x = new WeakSet(), F = function() {
80
- return i(this, r).parentElement || i(this, r).getRootNode();
81
- }, y = new WeakMap(), C = new WeakMap(), H = new WeakMap(), b = new WeakMap(), o = new WeakSet(), v = function(e, s = !1) {
82
- s && (i(this, n).style.transition = "all 0s", setTimeout(() => {
83
- i(this, n).style.transition = "";
84
- })), e != null ? i(this, n).style.height = `${e}px` : i(this, n).style.height = "";
85
- }, L = new WeakSet(), k = function(e) {
86
- e === "toggle" ? i(this, r).dispatchEvent(
100
+ o = new WeakMap(), r = new WeakMap(), v = new WeakMap(), l = new WeakMap(), L = new WeakMap(), O = new WeakMap(), T = new WeakMap(), u = new WeakMap(), x = new WeakMap(), W = new WeakSet(), U = function() {
101
+ return e(this, r).parentElement || e(this, r).getRootNode();
102
+ }, w = new WeakSet(), S = function() {
103
+ return e(this, o).axisAttribute.current === "x" ? e(this, l).scrollWidth : e(this, l).scrollHeight;
104
+ }, _ = new WeakMap(), C = new WeakMap(), H = new WeakMap(), z = new WeakMap(), f = new WeakSet(), g = function(t, s = !1) {
105
+ s && (e(this, l).style.transition = "all 0s", setTimeout(() => {
106
+ e(this, l).style.transition = "";
107
+ }));
108
+ const a = e(this, o).axisAttribute.current === "x" ? "width" : "height";
109
+ t != null ? e(this, l).style[a] = `${t}px` : e(this, l).style[a] = "";
110
+ }, p = new WeakSet(), b = function(t) {
111
+ t === "before-toggle" ? e(this, r).dispatchEvent(
112
+ new CustomEvent(
113
+ "beforeAccordionItemToggle",
114
+ {
115
+ bubbles: !0,
116
+ composed: !0,
117
+ detail: {
118
+ opened: e(this, u)
119
+ }
120
+ }
121
+ )
122
+ ) : t === "toggle" ? e(this, r).dispatchEvent(
87
123
  new CustomEvent("accordionItemToggle", {
88
124
  bubbles: !0,
89
125
  composed: !0,
90
126
  detail: {
91
- opened: i(this, u)
127
+ opened: e(this, u)
92
128
  }
93
129
  })
94
- ) : e === "size-change" && U(i(this, x, F));
95
- }, A = new WeakSet(), N = function() {
96
- i(this, n).style.transition = "all 0s", setTimeout(() => {
97
- i(this, n).style.transition = "";
130
+ ) : t === "size-change" && j(e(this, W, U));
131
+ }, k = new WeakSet(), q = function() {
132
+ e(this, l).style.transition = "all 0s", setTimeout(() => {
133
+ e(this, l).style.transition = "";
98
134
  }, 50);
99
- };
100
- let $ = class extends J {
135
+ }, I = new WeakMap();
136
+ let K = class extends V {
101
137
  constructor() {
102
- super(), T(this, z), T(this, W, new B(this, "axis", "y")), T(this, P, new B(this, "multiple", !1)), T(this, d, []), T(this, _, null), Q && R(this, _, new MutationObserver((t) => {
103
- t.forEach((e) => {
104
- e.removedNodes.forEach((s) => {
138
+ super(), A(this, M), A(this, B, new F(this, "axis", "y")), A(this, G, new F(this, "multiple", !1)), A(this, m, []), A(this, y, null), Y && N(this, y, new MutationObserver((i) => {
139
+ i.forEach((t) => {
140
+ t.removedNodes.forEach((s) => {
105
141
  s instanceof HTMLElement && this.removeItem(s);
106
- }), e.addedNodes.forEach((s) => {
142
+ }), t.addedNodes.forEach((s) => {
107
143
  s instanceof HTMLElement && this.createItem(s);
108
144
  });
109
145
  });
110
146
  }));
111
147
  }
112
148
  get axisAttribute() {
113
- return a(this, W);
149
+ return c(this, B);
114
150
  }
115
151
  get multipleAttribute() {
116
- return a(this, P);
152
+ return c(this, G);
117
153
  }
118
- createItem(t) {
119
- a(this, d).find((e) => e.element === t) || a(this, d).push(new G(this, t));
154
+ createItem(i) {
155
+ c(this, m).find((t) => t.element === i) || c(this, m).push(new J(this, i));
120
156
  }
121
- removeItem(t) {
122
- R(this, d, a(this, d).filter((e) => {
123
- if (e.element !== t)
157
+ removeItem(i) {
158
+ N(this, m, c(this, m).filter((t) => {
159
+ if (t.element !== i)
124
160
  return !0;
125
- e.destroy();
161
+ t.destroy();
126
162
  }));
127
163
  }
128
- closeAll(t) {
129
- a(this, d).forEach((e) => {
130
- (t == null ? void 0 : t.exclude) !== e.element && e.close(t);
164
+ closeAll(i) {
165
+ c(this, m).forEach((t) => {
166
+ (i == null ? void 0 : i.exclude) !== t.element && t.close(i);
131
167
  });
132
168
  }
133
- openAll(t) {
134
- a(this, d).forEach((e) => {
135
- (t == null ? void 0 : t.exclude) !== e.element && e.open(t);
169
+ openAll(i) {
170
+ c(this, m).forEach((t) => {
171
+ (i == null ? void 0 : i.exclude) !== t.element && t.open(i);
136
172
  });
137
173
  }
138
174
  connectedCallback() {
139
- a(this, _).observe(a(this, z, D), {
175
+ c(this, y).observe(c(this, M, $), {
140
176
  childList: !0
141
- }), R(this, d, [...a(this, z, D).children].map((t) => {
142
- if (t instanceof HTMLElement)
143
- return new G(this, t);
144
- }).filter((t) => !!t));
177
+ }), N(this, m, [...c(this, M, $).children].map((i) => {
178
+ if (i instanceof HTMLElement)
179
+ return new J(this, i);
180
+ }).filter((i) => !!i));
145
181
  }
146
182
  disconnectedCallback() {
147
- a(this, _).disconnect();
183
+ c(this, y).disconnect();
148
184
  }
149
185
  };
150
- W = /* @__PURE__ */ new WeakMap();
151
- P = /* @__PURE__ */ new WeakMap();
152
- d = /* @__PURE__ */ new WeakMap();
153
- _ = /* @__PURE__ */ new WeakMap();
154
- z = /* @__PURE__ */ new WeakSet();
155
- D = function() {
186
+ B = /* @__PURE__ */ new WeakMap();
187
+ G = /* @__PURE__ */ new WeakMap();
188
+ m = /* @__PURE__ */ new WeakMap();
189
+ y = /* @__PURE__ */ new WeakMap();
190
+ M = /* @__PURE__ */ new WeakSet();
191
+ $ = function() {
156
192
  return this.shadowRoot ? this.shadowRoot : this;
157
193
  };
158
- $ = Z([
159
- K("e-accordion")
160
- ], $);
194
+ K = se([
195
+ X("e-accordion")
196
+ ], K);
161
197
  export {
162
- $ as AccordionElement
198
+ K as AccordionElement
163
199
  };
@@ -1,25 +1,23 @@
1
1
  import { Store, StoreEntry, StoreOptions } from '../store';
2
2
  import { TickerAddOptions, TickerCallbackEntry } from '../ticker';
3
- import { AnimationLink, AnimationLinkOptions } from './AnimationLink';
4
3
 
5
4
  export interface AnimationEntry extends StoreEntry<number> {
6
- currentDistance: number;
5
+ delta: number;
7
6
  distance: number;
8
- currentProgress: number;
9
- progress: number;
7
+ deltaProgress: number;
8
+ distanceProgress: number;
10
9
  direction: number;
11
10
  }
12
11
  export interface AnimationOptions extends TickerAddOptions {
13
12
  min?: number;
14
13
  max?: number;
15
14
  equalize?: boolean;
15
+ restart?: boolean;
16
16
  }
17
17
  export type AnimationConstructorOptions<Options extends AnimationOptions> = StoreOptions<number, 'number'> & Options;
18
18
  export declare abstract class Animation<Entry extends AnimationEntry = AnimationEntry, Options extends AnimationOptions = AnimationOptions> extends Store<number, 'number', Entry> {
19
19
  #private;
20
20
  constructor(initial?: number, options?: StoreOptions<number, 'number'>);
21
- get linked(): Set<AnimationLink<AnimationLinkOptions>>;
22
- get animationLink(): AnimationLink<AnimationLinkOptions> | null;
23
21
  get direction(): number;
24
22
  get target(): number;
25
23
  get min(): number;
@@ -27,22 +25,19 @@ export declare abstract class Animation<Entry extends AnimationEntry = Animation
27
25
  get max(): number;
28
26
  set max(value: number);
29
27
  get from(): number;
30
- get to(): number;
31
28
  get isRunning(): Store<boolean, keyof import('../store').StoreManagers, StoreEntry<boolean>>;
32
- get currentDistance(): number;
29
+ get delta(): number;
30
+ get deltaProgress(): number;
33
31
  get distance(): number;
34
- get currentProgress(): number;
35
- get progress(): number;
32
+ get distanceProgress(): number;
36
33
  get entry(): Entry & {
37
34
  from: number;
38
- to: number;
39
- currentDistance: number;
35
+ delta: number;
40
36
  distance: number;
41
37
  direction: number;
42
- currentProgress: number;
43
- progress: number;
38
+ deltaProgress: number;
39
+ distanceProgress: number;
44
40
  };
45
- setTarget(value: number): void;
46
41
  set(value: number, options?: Options): void;
47
42
  shift(value: number, options?: Options): void;
48
43
  reset(): void;
@@ -50,9 +45,6 @@ export declare abstract class Animation<Entry extends AnimationEntry = Animation
50
45
  listenAnimationFrame(): void;
51
46
  unlistenAnimationFrame(): void;
52
47
  updateOptions(options?: AnimationOptions): void;
53
- linkTo<A extends Animation<any>>(animation: A, startValue: number, setValue: number, options?: Parameters<A['updateOptions']>[0] & AnimationLinkOptions): void;
54
- unlink(): void;
55
48
  protected start(): void;
56
49
  protected abstract handleAnimationFrame(e: TickerCallbackEntry): void;
57
- protected abstract updateManually(...args: any[]): any;
58
50
  }
@@ -21,17 +21,15 @@ export declare class Damped extends Animation<DampedEntry, DampedOptions> {
21
21
  get entry(): {
22
22
  velocity: number;
23
23
  speed: number;
24
- currentDistance: number;
24
+ delta: number;
25
25
  distance: number;
26
- currentProgress: number;
27
- progress: number;
26
+ deltaProgress: number;
27
+ distanceProgress: number;
28
28
  direction: number;
29
29
  current: number;
30
30
  previous: number | undefined;
31
31
  from: number;
32
- to: number;
33
32
  };
34
33
  updateOptions(options?: DampedOptions): void;
35
- updateManually(value: number): void;
36
34
  protected handleAnimationFrame(e: TickerCallbackEntry): void;
37
35
  }
@@ -5,13 +5,11 @@ import { Animation, AnimationConstructorOptions, AnimationEntry, AnimationOption
5
5
  export interface TweenedOptions extends AnimationOptions {
6
6
  easing?: EasingFunction;
7
7
  duration?: number;
8
- restart?: boolean;
9
8
  }
10
9
  export declare class Tweened extends Animation<AnimationEntry, TweenedOptions> {
11
10
  #private;
12
11
  constructor(initial?: number, options?: AnimationConstructorOptions<TweenedOptions>);
13
12
  updateOptions(options?: TweenedOptions): void;
14
- updateManually(elapsed: number): number;
15
13
  protected handleAnimationFrame(e: TickerCallbackEntry): void;
16
14
  protected start(): void;
17
15
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Animation-DDHjrbtL.cjs"),n=require("../Damped-l0mnlhar.cjs"),i=require("../Tweened-DIt9j9B-.cjs");exports.Animation=e.Animation;exports.Damped=n.Damped;exports.Tweened=i.Tweened;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Animation-6Na1MCtM.cjs"),n=require("../Damped-loFiBsBy.cjs"),i=require("../Tweened-B_mclQ61.cjs");exports.Animation=e.Animation;exports.Damped=n.Damped;exports.Tweened=i.Tweened;
@@ -1,6 +1,6 @@
1
- import { A as r } from "../Animation-Dq_05jlR.js";
2
- import { D as m } from "../Damped-P4MkCGoY.js";
3
- import { T as t } from "../Tweened-CwDC2zl8.js";
1
+ import { A as r } from "../Animation-CELiTw3n.js";
2
+ import { D as m } from "../Damped-Mx_FNNVz.js";
3
+ import { T as t } from "../Tweened-NE8M9onF.js";
4
4
  export {
5
5
  r as Animation,
6
6
  m as Damped,
@@ -1 +1 @@
1
- "use strict";var v=(t,s,e)=>{if(!s.has(t))throw TypeError("Cannot "+e)};var r=(t,s,e)=>(v(t,s,"read from private field"),e?e.call(t):s.get(t)),n=(t,s,e)=>{if(s.has(t))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(t):s.set(t,e)},a=(t,s,e,b)=>(v(t,s,"write to private field"),b?b.call(t,e):s.set(t,e),e);var f=(t,s,e)=>(v(t,s,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("../Store-C-1ruEIm.cjs"),A=require("../attributes-Bf2svn4j.cjs"),S=require("../browser-CpzFX2xg.cjs"),q=require("../dom-JBOkFLTh.cjs");var i,u,c,o,d;class p extends y.Store{constructor(e,b,g,h){super(g,h);n(this,o);n(this,i,null);n(this,u,void 0);n(this,c,null);a(this,u,b),S.isBrowser&&(a(this,i,q.getElement(e)),a(this,c,new MutationObserver(l=>{l.forEach(m=>{m.type==="attributes"&&m.attributeName===r(this,u)&&f(this,o,d).call(this)})})),h!=null&&h.sync&&this.subscribe(l=>{r(this,i).setAttribute(r(this,u),l.current.toString())}))}subscribe(e){const b=super.subscribe(e);return this.observe(),b}unsubscribe(e){super.unsubscribe(e),this.unobserve()}observe(){!this.subscribers.size&&(r(this,c).observe(r(this,i),{attributes:!0}),f(this,o,d).call(this))}unobserve(){this.subscribers.size||r(this,c).disconnect()}close(){super.close(),this.unobserve()}}i=new WeakMap,u=new WeakMap,c=new WeakMap,o=new WeakSet,d=function(){const e=r(this,i).getAttribute(r(this,u));e!=null&&(this.current=A.parseAttributeValue(e))};exports.Attribute=p;
1
+ "use strict";var v=(t,s,e)=>{if(!s.has(t))throw TypeError("Cannot "+e)};var r=(t,s,e)=>(v(t,s,"read from private field"),e?e.call(t):s.get(t)),c=(t,s,e)=>{if(s.has(t))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(t):s.set(t,e)},h=(t,s,e,a)=>(v(t,s,"write to private field"),a?a.call(t,e):s.set(t,e),e);var d=(t,s,e)=>(v(t,s,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("../Store-6s0YXK4o.cjs"),S=require("../attributes-Bf2svn4j.cjs"),q=require("../browser-CpzFX2xg.cjs"),p=require("../dom-JBOkFLTh.cjs");var i,u,n,b,o,m;class w extends A.Store{constructor(e,a,y,l){super(y,l);c(this,o);c(this,i,null);c(this,u,void 0);c(this,n,null);c(this,b,!1);h(this,u,a),q.isBrowser&&(h(this,i,p.getElement(e)),h(this,n,new MutationObserver(f=>{f.forEach(g=>{g.type==="attributes"&&g.attributeName===r(this,u)&&d(this,o,m).call(this)})})),l!=null&&l.sync&&this.subscribe(f=>{r(this,i).setAttribute(r(this,u),f.current.toString())}))}subscribe(e){return this.subscribers.size||this.observe(),super.subscribe(e)}unsubscribe(e){super.unsubscribe(e),this.subscribers.size||this.unobserve()}observe(){r(this,b)||(h(this,b,!0),r(this,n).observe(r(this,i),{attributes:!0}),d(this,o,m).call(this))}unobserve(){r(this,b)&&(h(this,b,!1),r(this,n).disconnect())}close(){super.close(),this.unobserve()}}i=new WeakMap,u=new WeakMap,n=new WeakMap,b=new WeakMap,o=new WeakSet,m=function(){const e=r(this,i).getAttribute(r(this,u));e!=null&&(this.current=S.parseAttributeValue(e))};exports.Attribute=w;
@@ -1,56 +1,56 @@
1
- var v = (e, t, s) => {
2
- if (!t.has(e))
1
+ var m = (t, e, s) => {
2
+ if (!e.has(t))
3
3
  throw TypeError("Cannot " + s);
4
4
  };
5
- var r = (e, t, s) => (v(e, t, "read from private field"), s ? s.call(e) : t.get(e)), h = (e, t, s) => {
6
- if (t.has(e))
5
+ var r = (t, e, s) => (m(t, e, "read from private field"), s ? s.call(t) : e.get(t)), h = (t, e, s) => {
6
+ if (e.has(t))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
- t instanceof WeakSet ? t.add(e) : t.set(e, s);
9
- }, a = (e, t, s, b) => (v(e, t, "write to private field"), b ? b.call(e, s) : t.set(e, s), s);
10
- var f = (e, t, s) => (v(e, t, "access private method"), s);
11
- import { S as g } from "../Store-BQXXikps.js";
12
- import { p as A } from "../attributes-69we3byR.js";
13
- import { i as y } from "../browser-0zX67oeU.js";
14
- import { g as S } from "../dom-0S_WDL4g.js";
15
- var i, u, c, o, l;
16
- class B extends g {
17
- constructor(s, b, d, n) {
18
- super(d, n);
19
- h(this, o);
8
+ e instanceof WeakSet ? e.add(t) : e.set(t, s);
9
+ }, c = (t, e, s, o) => (m(t, e, "write to private field"), o ? o.call(t, s) : e.set(t, s), s);
10
+ var v = (t, e, s) => (m(t, e, "access private method"), s);
11
+ import { S as A } from "../Store-BI2xxXOA.js";
12
+ import { p as y } from "../attributes-69we3byR.js";
13
+ import { i as S } from "../browser-0zX67oeU.js";
14
+ import { g as w } from "../dom-0S_WDL4g.js";
15
+ var i, u, a, b, n, p;
16
+ class M extends A {
17
+ constructor(s, o, g, f) {
18
+ super(g, f);
19
+ h(this, n);
20
20
  h(this, i, null);
21
21
  h(this, u, void 0);
22
- h(this, c, null);
23
- a(this, u, b), y && (a(this, i, S(s)), a(this, c, new MutationObserver((m) => {
24
- m.forEach((p) => {
25
- p.type === "attributes" && p.attributeName === r(this, u) && f(this, o, l).call(this);
22
+ h(this, a, null);
23
+ h(this, b, !1);
24
+ c(this, u, o), S && (c(this, i, w(s)), c(this, a, new MutationObserver((l) => {
25
+ l.forEach((d) => {
26
+ d.type === "attributes" && d.attributeName === r(this, u) && v(this, n, p).call(this);
26
27
  });
27
- })), n != null && n.sync && this.subscribe((m) => {
28
- r(this, i).setAttribute(r(this, u), m.current.toString());
28
+ })), f != null && f.sync && this.subscribe((l) => {
29
+ r(this, i).setAttribute(r(this, u), l.current.toString());
29
30
  }));
30
31
  }
31
32
  subscribe(s) {
32
- const b = super.subscribe(s);
33
- return this.observe(), b;
33
+ return this.subscribers.size || this.observe(), super.subscribe(s);
34
34
  }
35
35
  unsubscribe(s) {
36
- super.unsubscribe(s), this.unobserve();
36
+ super.unsubscribe(s), this.subscribers.size || this.unobserve();
37
37
  }
38
38
  observe() {
39
- !this.subscribers.size && (r(this, c).observe(r(this, i), {
39
+ r(this, b) || (c(this, b, !0), r(this, a).observe(r(this, i), {
40
40
  attributes: !0
41
- }), f(this, o, l).call(this));
41
+ }), v(this, n, p).call(this));
42
42
  }
43
43
  unobserve() {
44
- this.subscribers.size || r(this, c).disconnect();
44
+ r(this, b) && (c(this, b, !1), r(this, a).disconnect());
45
45
  }
46
46
  close() {
47
47
  super.close(), this.unobserve();
48
48
  }
49
49
  }
50
- i = new WeakMap(), u = new WeakMap(), c = new WeakMap(), o = new WeakSet(), l = function() {
50
+ i = new WeakMap(), u = new WeakMap(), a = new WeakMap(), b = new WeakMap(), n = new WeakSet(), p = function() {
51
51
  const s = r(this, i).getAttribute(r(this, u));
52
- s != null && (this.current = A(s));
52
+ s != null && (this.current = y(s));
53
53
  };
54
54
  export {
55
- B as Attribute
55
+ M as Attribute
56
56
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("../css-property/index.cjs"),P=require("../custom-element/index.cjs");require("../Store-C-1ruEIm.cjs");const z=require("../math-GDWEqu7y.cjs"),y=require("../tags-Djb6mb1o.cjs"),F=require("../createStylesheet-CqHU9_qv.cjs"),M=require("../element-resizer/index.cjs"),C=require("../ticker/index.cjs");var B=Object.defineProperty,T=Object.getOwnPropertyDescriptor,A=(i,e,s,p)=>{for(var r=p>1?void 0:p?T(e,s):e,k=i.length-1,S;k>=0;k--)(S=i[k])&&(r=(p?S(e,s,r):S(r))||r);return p&&r&&B(e,s,r),r},b=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)},t=(i,e,s)=>(b(i,e,"read from private field"),s?s.call(i):e.get(i)),n=(i,e,s)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,s)},a=(i,e,s,p)=>(b(i,e,"write to private field"),e.set(i,s),s),u=(i,e,s)=>(b(i,e,"access private method"),s),c,h,d,o,l,v,m,w,f,R,E,q,x,_,g,W;const D=F.createStylesheet({":host, canvas":{display:"block",width:"100%",height:"100%"}});exports.CanvasElement=class extends P.CustomElement{constructor(){super(),n(this,f),n(this,E),n(this,g),n(this,c,new O.CSSProperty(this,"--fps",0)),n(this,h,null),n(this,d,null),n(this,o,0),n(this,l,0),n(this,v,1),n(this,m,0),n(this,w,1),n(this,x,e=>{a(this,v,z.clamp(devicePixelRatio,1,2)),a(this,o,e.contentRect.width),a(this,l,e.contentRect.height),t(this,h).width=t(this,o)*this.pixelRatio,t(this,h).height=t(this,l)*this.pixelRatio,this.context.scale(this.pixelRatio,this.pixelRatio),u(this,g,W).call(this)}),n(this,_,e=>{a(this,m,e.timestamp),a(this,w,e.timeBetweenFrames),u(this,g,W).call(this)}),this.openShadow(D),y.element(this,{children:y.canvas({ref:e=>{a(this,h,e),a(this,d,e.getContext("2d"))}})}),t(this,c).subscribe(e=>{typeof e.previous!="undefined"&&e.current!==e.previous&&u(this,f,R).call(this)})}get fpsCSSProperty(){return t(this,c)}get canvasElement(){return t(this,h)}get context(){return t(this,d)}get pixelRatio(){return t(this,v)}get width(){return t(this,o)}get height(){return t(this,l)}get detail(){return{width:t(this,o),height:t(this,l),element:this,canvasElement:t(this,h),pixelRatio:t(this,v),context:t(this,d),timestamp:t(this,m),timeBetweenFrames:t(this,w)}}connectedCallback(){t(this,c).observe(),M.elementResizer.subscribe(this,t(this,x)),u(this,f,R).call(this)}disconnectedCallback(){t(this,c).unobserve(),M.elementResizer.unsubscribe(t(this,x)),u(this,E,q).call(this)}};c=new WeakMap;h=new WeakMap;d=new WeakMap;o=new WeakMap;l=new WeakMap;v=new WeakMap;m=new WeakMap;w=new WeakMap;f=new WeakSet;R=function(){C.ticker.unsubscribe(t(this,_)),this.hasAttribute("static")||C.ticker.subscribe(t(this,_),{culling:this,maxFPS:t(this,c).current})};E=new WeakSet;q=function(){C.ticker.unsubscribe(t(this,_))};x=new WeakMap;_=new WeakMap;g=new WeakSet;W=function(){this.dispatchEvent(new CustomEvent("canvasRender",{composed:!0,detail:this.detail}))};exports.CanvasElement=A([P.define("e-canvas")],exports.CanvasElement);
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("../css-property/index.cjs"),P=require("../custom-element/index.cjs");require("../Store-6s0YXK4o.cjs");const z=require("../math-GDWEqu7y.cjs"),y=require("../tags-ld5jemJw.cjs"),F=require("../createStylesheet-p23sZ7Ey.cjs"),M=require("../element-resizer/index.cjs"),C=require("../ticker/index.cjs");var B=Object.defineProperty,T=Object.getOwnPropertyDescriptor,A=(i,e,s,p)=>{for(var r=p>1?void 0:p?T(e,s):e,k=i.length-1,S;k>=0;k--)(S=i[k])&&(r=(p?S(e,s,r):S(r))||r);return p&&r&&B(e,s,r),r},b=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)},t=(i,e,s)=>(b(i,e,"read from private field"),s?s.call(i):e.get(i)),n=(i,e,s)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,s)},a=(i,e,s,p)=>(b(i,e,"write to private field"),e.set(i,s),s),u=(i,e,s)=>(b(i,e,"access private method"),s),c,h,d,o,l,v,m,w,f,R,E,q,x,_,g,W;const D=F.createStylesheet({":host, canvas":{display:"block",width:"100%",height:"100%"}});exports.CanvasElement=class extends P.CustomElement{constructor(){super(),n(this,f),n(this,E),n(this,g),n(this,c,new O.CSSProperty(this,"--fps",0)),n(this,h,null),n(this,d,null),n(this,o,0),n(this,l,0),n(this,v,1),n(this,m,0),n(this,w,1),n(this,x,e=>{a(this,v,z.clamp(devicePixelRatio,1,2)),a(this,o,e.contentRect.width),a(this,l,e.contentRect.height),t(this,h).width=t(this,o)*this.pixelRatio,t(this,h).height=t(this,l)*this.pixelRatio,this.context.scale(this.pixelRatio,this.pixelRatio),u(this,g,W).call(this)}),n(this,_,e=>{a(this,m,e.timestamp),a(this,w,e.timeBetweenFrames),u(this,g,W).call(this)}),this.openShadow(D),y.element(this,{children:y.canvas({ref:e=>{a(this,h,e),a(this,d,e.getContext("2d"))}})}),t(this,c).subscribe(e=>{typeof e.previous!="undefined"&&e.current!==e.previous&&u(this,f,R).call(this)})}get fpsCSSProperty(){return t(this,c)}get canvasElement(){return t(this,h)}get context(){return t(this,d)}get pixelRatio(){return t(this,v)}get width(){return t(this,o)}get height(){return t(this,l)}get detail(){return{width:t(this,o),height:t(this,l),element:this,canvasElement:t(this,h),pixelRatio:t(this,v),context:t(this,d),timestamp:t(this,m),timeBetweenFrames:t(this,w)}}connectedCallback(){t(this,c).observe(),M.elementResizer.subscribe(this,t(this,x)),u(this,f,R).call(this)}disconnectedCallback(){t(this,c).unobserve(),M.elementResizer.unsubscribe(t(this,x)),u(this,E,q).call(this)}};c=new WeakMap;h=new WeakMap;d=new WeakMap;o=new WeakMap;l=new WeakMap;v=new WeakMap;m=new WeakMap;w=new WeakMap;f=new WeakSet;R=function(){C.ticker.unsubscribe(t(this,_)),this.hasAttribute("static")||C.ticker.subscribe(t(this,_),{culling:this,maxFPS:t(this,c).current})};E=new WeakSet;q=function(){C.ticker.unsubscribe(t(this,_))};x=new WeakMap;_=new WeakMap;g=new WeakSet;W=function(){this.dispatchEvent(new CustomEvent("canvasRender",{composed:!0,detail:this.detail}))};exports.CanvasElement=A([P.define("e-canvas")],exports.CanvasElement);
@@ -1,9 +1,9 @@
1
1
  import { CSSProperty as F } from "../css-property/index.js";
2
2
  import { CustomElement as O, define as B } from "../custom-element/index.js";
3
- import "../Store-BQXXikps.js";
3
+ import "../Store-BI2xxXOA.js";
4
4
  import { c as z } from "../math-BOBiC4TN.js";
5
- import { e as A, q as D } from "../tags-CMPg9ETZ.js";
6
- import { c as L } from "../createStylesheet-DBCEbDjI.js";
5
+ import { e as A, q as D } from "../tags-BqJKcIve.js";
6
+ import { c as L } from "../createStylesheet-CR_yi5tp.js";
7
7
  import { elementResizer as M } from "../element-resizer/index.js";
8
8
  import { ticker as S } from "../ticker/index.js";
9
9
  var T = Object.defineProperty, q = Object.getOwnPropertyDescriptor, G = (t, i, s, l) => {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../custom-element/index.cjs");require("../Store-C-1ruEIm.cjs");const r=require("../tags-Djb6mb1o.cjs"),_=require("../createStylesheet-CqHU9_qv.cjs"),v=require("../theme/index.cjs"),w='<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>';var x=Object.defineProperty,b=Object.getOwnPropertyDescriptor,y=(t,e,a,c)=>{for(var i=c>1?void 0:c?b(e,a):e,u=t.length-1,p;u>=0;u--)(p=t[u])&&(i=(c?p(e,a,i):p(i))||i);return c&&i&&x(e,a,i),i},k=(t,e,a)=>{if(!e.has(t))throw TypeError("Cannot "+a)},l=(t,e,a)=>(k(t,e,"read from private field"),a?a.call(t):e.get(t)),f=(t,e,a)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,a)},g=(t,e,a,c)=>(k(t,e,"write to private field"),e.set(t,a),a),d=(t,e,a)=>(k(t,e,"access private method"),a),s,o,h,n;const C=_.createStylesheet({":host":{position:"relative",display:"inline-block",width:"30px",height:"30px",borderRadius:v.aptechkaTheme.borderRadiusSmall.var,overflow:"hidden"},"label, .fake":{display:"block"},"label, .fake, .default":{width:"100%",height:"100%"},".real":{position:"absolute",top:"0",left:"0",width:"0px",height:"0px",visibility:"hidden",margin:"0"},".default":{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:v.aptechkaTheme.colorMainAux.var},".default svg":{width:"60%",height:"60%",fill:v.aptechkaTheme.colorFont.var,opacity:0,transition:"var(--duration-short)"},":host(.checked) .default svg":{opacity:1}});exports.CheckboxElement=class extends m.CustomElement{constructor(){super(),f(this,h),f(this,s,null),f(this,o,void 0),this.openShadow(C),g(this,o,this.attachInternals()),r.element(this,{children:r.label({children:[r.span({class:"fake",children:r.slot({children:[r.span({class:"default",children:[w]})]})}),r.input({ref:e=>{g(this,s,e),e.required=this.hasAttribute("required"),e.value=this.getAttribute("value")||"",e.checked=this.hasAttribute("checked"),e.name=this.getAttribute("name")||"",d(this,h,n).call(this)},class:"real",type:"checkbox",onChange:()=>{d(this,h,n).call(this),this.dispatchEvent(new Event("change",{composed:!0}))}})]})})}get checked(){return l(this,s).checked}set checked(e){l(this,s).checked=e,d(this,h,n).call(this)}get value(){return l(this,s).value}set value(e){l(this,s).value=e,d(this,h,n).call(this)}};s=new WeakMap;o=new WeakMap;h=new WeakSet;n=function(){this.checked?l(this,o).setFormValue(this.value):l(this,o).setFormValue(null),this.classList.toggle("checked",this.checked)};exports.CheckboxElement.formAssociated=!0;exports.CheckboxElement=y([m.define("e-checkbox")],exports.CheckboxElement);
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../custom-element/index.cjs");require("../Store-6s0YXK4o.cjs");const r=require("../tags-ld5jemJw.cjs"),_=require("../createStylesheet-p23sZ7Ey.cjs"),v=require("../theme/index.cjs"),w='<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>';var x=Object.defineProperty,b=Object.getOwnPropertyDescriptor,y=(t,e,a,c)=>{for(var i=c>1?void 0:c?b(e,a):e,u=t.length-1,p;u>=0;u--)(p=t[u])&&(i=(c?p(e,a,i):p(i))||i);return c&&i&&x(e,a,i),i},k=(t,e,a)=>{if(!e.has(t))throw TypeError("Cannot "+a)},l=(t,e,a)=>(k(t,e,"read from private field"),a?a.call(t):e.get(t)),f=(t,e,a)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,a)},g=(t,e,a,c)=>(k(t,e,"write to private field"),e.set(t,a),a),d=(t,e,a)=>(k(t,e,"access private method"),a),s,o,h,n;const C=_.createStylesheet({":host":{position:"relative",display:"inline-block",width:"30px",height:"30px",borderRadius:v.aptechkaTheme.borderRadiusSmall.var,overflow:"hidden"},"label, .fake":{display:"block"},"label, .fake, .default":{width:"100%",height:"100%"},".real":{position:"absolute",top:"0",left:"0",width:"0px",height:"0px",visibility:"hidden",margin:"0"},".default":{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:v.aptechkaTheme.colorMainAux.var},".default svg":{width:"60%",height:"60%",fill:v.aptechkaTheme.colorFont.var,opacity:0,transition:"var(--duration-short)"},":host(.checked) .default svg":{opacity:1}});exports.CheckboxElement=class extends m.CustomElement{constructor(){super(),f(this,h),f(this,s,null),f(this,o,void 0),this.openShadow(C),g(this,o,this.attachInternals()),r.element(this,{children:r.label({children:[r.span({class:"fake",children:r.slot({children:[r.span({class:"default",children:[w]})]})}),r.input({ref:e=>{g(this,s,e),e.required=this.hasAttribute("required"),e.value=this.getAttribute("value")||"",e.checked=this.hasAttribute("checked"),e.name=this.getAttribute("name")||"",d(this,h,n).call(this)},class:"real",type:"checkbox",onChange:()=>{d(this,h,n).call(this),this.dispatchEvent(new Event("change",{composed:!0}))}})]})})}get checked(){return l(this,s).checked}set checked(e){l(this,s).checked=e,d(this,h,n).call(this)}get value(){return l(this,s).value}set value(e){l(this,s).value=e,d(this,h,n).call(this)}};s=new WeakMap;o=new WeakMap;h=new WeakSet;n=function(){this.checked?l(this,o).setFormValue(this.value):l(this,o).setFormValue(null),this.classList.toggle("checked",this.checked)};exports.CheckboxElement.formAssociated=!0;exports.CheckboxElement=y([m.define("e-checkbox")],exports.CheckboxElement);
@@ -1,7 +1,7 @@
1
1
  import { CustomElement as w, define as _ } from "../custom-element/index.js";
2
- import "../Store-BQXXikps.js";
3
- import { e as x, a3 as y, aB as g, ay as b, a0 as C } from "../tags-CMPg9ETZ.js";
4
- import { c as A } from "../createStylesheet-DBCEbDjI.js";
2
+ import "../Store-BI2xxXOA.js";
3
+ import { e as x, a2 as y, aA as g, ax as b, $ as C } from "../tags-BqJKcIve.js";
4
+ import { c as A } from "../createStylesheet-CR_yi5tp.js";
5
5
  import { aptechkaTheme as u } from "../theme/index.js";
6
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
7
  var S = Object.defineProperty, F = Object.getOwnPropertyDescriptor, M = (e, t, a, l) => {
@@ -1 +1 @@
1
- "use strict";var S=Object.defineProperty,m=Object.defineProperties;var f=Object.getOwnPropertyDescriptors;var u=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var a=(s,e,t)=>e in s?S(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,c=(s,e)=>{for(var t in e||(e={}))L.call(e,t)&&a(s,t,e[t]);if(u)for(var t of u(e))T.call(e,t)&&a(s,t,e[t]);return s},l=(s,e)=>m(s,f(e));var o=(s,e,t)=>{if(!e.has(s))throw TypeError("Cannot "+t)};var n=(s,e,t)=>(o(s,e,"read from private field"),t?t.call(s):e.get(s)),h=(s,e,t)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,t)},d=(s,e,t,r)=>(o(s,e,"write to private field"),r?r.call(s,t):e.set(s,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../Store-C-1ruEIm.cjs"),b=require("../string-DhgS_iFl.cjs");var i;class p extends g.Store{constructor(t,r){super(r);h(this,i,void 0);d(this,i,t)}isTrue(t){return this.current[t]===!0}isFalse(t){return this.current[t]===!1}reset(){super.reset();for(const t in this.initial)this.set(t,this.initial[t])}set(t,r=!0){this.current=l(c({},this.current),{[t]:r}),r?n(this,i).classList.add(b.camelToKebab(t)):n(this,i).classList.remove(b.camelToKebab(t))}}i=new WeakMap;exports.ClassLinkedStatus=p;
1
+ "use strict";var S=Object.defineProperty,m=Object.defineProperties;var f=Object.getOwnPropertyDescriptors;var u=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var a=(s,e,t)=>e in s?S(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,c=(s,e)=>{for(var t in e||(e={}))L.call(e,t)&&a(s,t,e[t]);if(u)for(var t of u(e))T.call(e,t)&&a(s,t,e[t]);return s},l=(s,e)=>m(s,f(e));var o=(s,e,t)=>{if(!e.has(s))throw TypeError("Cannot "+t)};var n=(s,e,t)=>(o(s,e,"read from private field"),t?t.call(s):e.get(s)),h=(s,e,t)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,t)},d=(s,e,t,r)=>(o(s,e,"write to private field"),r?r.call(s,t):e.set(s,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../Store-6s0YXK4o.cjs"),b=require("../string-DhgS_iFl.cjs");var i;class p extends g.Store{constructor(t,r){super(r);h(this,i,void 0);d(this,i,t)}isTrue(t){return this.current[t]===!0}isFalse(t){return this.current[t]===!1}reset(){super.reset();for(const t in this.initial)this.set(t,this.initial[t])}set(t,r=!0){this.current=l(c({},this.current),{[t]:r}),r?n(this,i).classList.add(b.camelToKebab(t)):n(this,i).classList.remove(b.camelToKebab(t))}}i=new WeakMap;exports.ClassLinkedStatus=p;