aptechka 0.13.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{Animation-seVC6-fS.cjs → Animation-De9aUv3b.cjs} +1 -1
- package/lib/{Animation-DF5jPON_.js → Animation-NAGXiFv5.js} +1 -1
- package/lib/{Composed-ChlKoJEp.cjs → Composed-C_4slJQ6.cjs} +1 -1
- package/lib/{Composed-CoX1ImVk.js → Composed-CfWa-69I.js} +1 -1
- package/lib/{Damped-C7WAqKPh.cjs → Damped-DYJ6Z0xo.cjs} +1 -1
- package/lib/{Damped-BDO-F13V.js → Damped-DbJKrUIf.js} +1 -1
- package/lib/Derived-BIBU-y7Z.cjs +1 -0
- package/lib/Derived-Vo_RsJfi.js +23 -0
- package/lib/{SourceManager-B8-EMNnd.js → SourceManager-B6wZpXUZ.js} +1 -1
- package/lib/{SourceManager-TzU9Rw08.cjs → SourceManager-CfHcGLUa.cjs} +1 -1
- package/lib/Store-C46i0nvr.js +137 -0
- package/lib/Store-npaZHvX4.cjs +1 -0
- package/lib/{Tweened-DSXD0I0k.cjs → Tweened-BkkD9s4n.cjs} +1 -1
- package/lib/{Tweened-CHhmfvzo.js → Tweened-DOSHLCZa.js} +1 -1
- package/lib/{Viewport-DTlImj28.js → Viewport-B55BvLsV.js} +1 -1
- package/lib/{Viewport-BmLTk_6k.cjs → Viewport-Cv4TRGiv.cjs} +1 -1
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.js +3 -3
- package/lib/attribute/index.cjs +1 -1
- package/lib/attribute/index.js +13 -13
- package/lib/canvas/index.cjs +7 -1
- package/lib/canvas/index.js +54 -58
- package/lib/class-linked-status/index.cjs +1 -1
- package/lib/class-linked-status/index.js +1 -1
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +3 -3
- package/lib/{createStylesheet-DO5t5q-m.js → createStylesheet-C68ja-RS.js} +3 -3
- package/lib/{createStylesheet-CaDI99iu.cjs → createStylesheet-Csfmh-MH.cjs} +1 -1
- package/lib/css-property/index.cjs +1 -1
- package/lib/css-property/index.js +4 -4
- package/lib/dev/index.cjs +1 -1
- package/lib/dev/index.js +1 -1
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +1 -1
- package/lib/{dom-P5QbAASX.js → dom-0S_WDL4g.js} +2 -2
- package/lib/element-constructor/index.cjs +1 -1
- package/lib/element-constructor/index.js +133 -122
- package/lib/element-resizer/index.js +8 -8
- package/lib/en3/helpers/index.cjs +1 -1
- package/lib/en3/helpers/index.js +4 -4
- package/lib/en3/index.js +1 -1
- package/lib/en3/loaders/index.js +1 -1
- package/lib/en3/misc/index.cjs +1 -1
- package/lib/en3/misc/index.js +2 -2
- package/lib/en3/utils/index.js +2 -2
- package/lib/{en3-x-Ki30MY.js → en3-sK9Z-fp2.js} +1 -1
- package/lib/file-BEr-o55N.js +31 -0
- package/lib/file-C9BbxzVU.cjs +1 -0
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +1 -1
- package/lib/intersector/index.js +7 -7
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +1 -1
- package/lib/layout-box/index.js +14 -14
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +1 -1
- package/lib/need_redo_tweaker/index.cjs +18 -0
- package/lib/need_redo_tweaker/index.js +1343 -0
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +3 -3
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +60 -62
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +105 -106
- package/lib/scroll-entries/index.js +15 -15
- package/lib/sequence/index.cjs +1 -1
- package/lib/sequence/index.js +1 -1
- package/lib/slicer/index.cjs +5 -5
- package/lib/slicer/index.js +55 -86
- package/lib/source/index.cjs +1 -1
- package/lib/source/index.js +2 -2
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.js +38 -112
- package/lib/{tags-v-OSVkiQ.cjs → tags-6_ETuR75.cjs} +1 -1
- package/lib/{tags-4AoxVUe3.js → tags-zft1DGBz.js} +93 -93
- package/lib/ticker/index.js +1 -1
- package/lib/{traverseMaterials-mGC2_FkG.js → traverseMaterials-BlZbRhgW.js} +1 -1
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.js +56 -57
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +1 -1
- package/package.json +7 -55
- package/lib/Derived-B-2UXnVE.cjs +0 -1
- package/lib/Derived-CDGpSMKu.js +0 -56
- package/lib/Store-BnA-dJsE.cjs +0 -1
- package/lib/Store-DGtldlBH.js +0 -147
- package/lib/accordion/index.cjs +0 -1
- package/lib/accordion/index.js +0 -167
- package/lib/checkbox/index.cjs +0 -1
- package/lib/checkbox/index.js +0 -112
- package/lib/createTheme-CHnsCgAr.js +0 -15
- package/lib/createTheme-Cfaw9UmV.cjs +0 -1
- package/lib/events-BGwqaxVW.cjs +0 -1
- package/lib/events-CJTUMSLU.js +0 -20
- package/lib/file-EevnUtRj.cjs +0 -1
- package/lib/file-lxi_oXJf.js +0 -13
- package/lib/index-BhbT9PrL.js +0 -261
- package/lib/index-BpsQqM-8.cjs +0 -9
- package/lib/modal/index.cjs +0 -1
- package/lib/modal/index.js +0 -133
- package/lib/select/index.cjs +0 -1
- package/lib/select/index.js +0 -7
- package/lib/svg-path-data/index.cjs +0 -3
- package/lib/svg-path-data/index.js +0 -490
- package/lib/theme/index.cjs +0 -1
- package/lib/theme/index.js +0 -25
- package/lib/tweaker/index.cjs +0 -10
- package/lib/tweaker/index.js +0 -992
package/lib/Store-DGtldlBH.js
DELETED
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
var A = (i) => {
|
|
2
|
-
throw TypeError(i);
|
|
3
|
-
};
|
|
4
|
-
var N = (i, t, e) => t.has(i) || A("Cannot " + e);
|
|
5
|
-
var r = (i, t, e) => (N(i, t, "read from private field"), e ? e.call(i) : t.get(i)), s = (i, t, e) => t.has(i) ? A("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, e), a = (i, t, e, c) => (N(i, t, "write to private field"), c ? c.call(i, e) : t.set(i, e), e), k = (i, t, e) => (N(i, t, "access private method"), e);
|
|
6
|
-
import { i as j } from "./browser-0zX67oeU.js";
|
|
7
|
-
var f, d, S;
|
|
8
|
-
class z {
|
|
9
|
-
constructor() {
|
|
10
|
-
s(this, f, null);
|
|
11
|
-
s(this, d, "");
|
|
12
|
-
s(this, S, "");
|
|
13
|
-
j && (a(this, d, document.documentElement.getAttribute("data-project") || "unnamed"), a(this, S, r(this, d) ? r(this, d) + "-store-registry" : "store-registry"));
|
|
14
|
-
}
|
|
15
|
-
get projectName() {
|
|
16
|
-
return r(this, d);
|
|
17
|
-
}
|
|
18
|
-
get localStoreRegistryName() {
|
|
19
|
-
return r(this, S);
|
|
20
|
-
}
|
|
21
|
-
get loadedState() {
|
|
22
|
-
return r(this, f);
|
|
23
|
-
}
|
|
24
|
-
saveState() {
|
|
25
|
-
const t = this.getState(), e = JSON.stringify(t);
|
|
26
|
-
localStorage.setItem(r(this, S), e);
|
|
27
|
-
}
|
|
28
|
-
loadState(t = localStorage.getItem(
|
|
29
|
-
r(this, S)
|
|
30
|
-
)) {
|
|
31
|
-
t && (typeof t == "string" ? a(this, f, JSON.parse(t)) : a(this, f, t), l.current.forEach((e) => {
|
|
32
|
-
e.passport && this.updateStore(e);
|
|
33
|
-
}));
|
|
34
|
-
}
|
|
35
|
-
resetState() {
|
|
36
|
-
l.current.forEach((t) => {
|
|
37
|
-
t.passport && t.reset();
|
|
38
|
-
}), this.saveState();
|
|
39
|
-
}
|
|
40
|
-
updateStore(t) {
|
|
41
|
-
var c, v;
|
|
42
|
-
if (!Array.isArray((c = r(this, f)) == null ? void 0 : c.stores))
|
|
43
|
-
return t;
|
|
44
|
-
const e = t.passport;
|
|
45
|
-
if (e) {
|
|
46
|
-
const p = (v = r(this, f)) == null ? void 0 : v.stores.find(
|
|
47
|
-
(R) => R.name === e.name
|
|
48
|
-
);
|
|
49
|
-
p && (t.current = p.value);
|
|
50
|
-
}
|
|
51
|
-
return t;
|
|
52
|
-
}
|
|
53
|
-
getState() {
|
|
54
|
-
const t = {
|
|
55
|
-
stores: []
|
|
56
|
-
};
|
|
57
|
-
return l.current.forEach((e) => {
|
|
58
|
-
e.passport && (t.stores.find((c) => c.name === e.passport.name) || t.stores.push({
|
|
59
|
-
value: e.current,
|
|
60
|
-
name: e.passport.name
|
|
61
|
-
}));
|
|
62
|
-
}), t;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
f = new WeakMap(), d = new WeakMap(), S = new WeakMap();
|
|
66
|
-
const M = new z();
|
|
67
|
-
var g, h, m, n, o, u, y, b, w, E;
|
|
68
|
-
class q {
|
|
69
|
-
constructor(t, e) {
|
|
70
|
-
s(this, w);
|
|
71
|
-
s(this, g);
|
|
72
|
-
s(this, h);
|
|
73
|
-
s(this, m);
|
|
74
|
-
s(this, n, /* @__PURE__ */ new Set());
|
|
75
|
-
s(this, o);
|
|
76
|
-
s(this, u);
|
|
77
|
-
s(this, y);
|
|
78
|
-
s(this, b);
|
|
79
|
-
a(this, g, e == null ? void 0 : e.passport), a(this, h, {
|
|
80
|
-
initial: t,
|
|
81
|
-
previous: void 0,
|
|
82
|
-
current: t
|
|
83
|
-
}), a(this, m, (e == null ? void 0 : e.equalityCheck) || ((c, v) => c === v)), e != null && e.validate && this.addMiddleware(e.validate), a(this, y, (e == null ? void 0 : e.notifyAndClose) || !1), a(this, b, (e == null ? void 0 : e.invisible) || !1), a(this, o, (e == null ? void 0 : e.skipSubscribeNotification) || !1), r(this, g) && M.updateStore(this);
|
|
84
|
-
}
|
|
85
|
-
get passport() {
|
|
86
|
-
return r(this, g);
|
|
87
|
-
}
|
|
88
|
-
get initial() {
|
|
89
|
-
return r(this, h).initial;
|
|
90
|
-
}
|
|
91
|
-
get previous() {
|
|
92
|
-
return r(this, h).previous;
|
|
93
|
-
}
|
|
94
|
-
get current() {
|
|
95
|
-
return r(this, h).current;
|
|
96
|
-
}
|
|
97
|
-
set current(t) {
|
|
98
|
-
if (!r(this, m).call(this, r(this, h).current, t)) {
|
|
99
|
-
if (r(this, h).previous = r(this, h).current, r(this, u))
|
|
100
|
-
for (const e of r(this, u))
|
|
101
|
-
t = e(t);
|
|
102
|
-
r(this, h).current = t, k(this, w, E).call(this), r(this, y) && this.close();
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
get subscribers() {
|
|
106
|
-
return r(this, n);
|
|
107
|
-
}
|
|
108
|
-
addMiddleware(t) {
|
|
109
|
-
r(this, u) || a(this, u, /* @__PURE__ */ new Set()), r(this, u).add(t);
|
|
110
|
-
}
|
|
111
|
-
removeMiddleware(t) {
|
|
112
|
-
var e, c;
|
|
113
|
-
(e = r(this, u)) == null || e.delete(t), (c = r(this, u)) != null && c.size || a(this, u, void 0);
|
|
114
|
-
}
|
|
115
|
-
subscribe(t) {
|
|
116
|
-
return !r(this, b) && !r(this, n).size && I(this), r(this, n).add(t), r(this, o) || t(r(this, h)), () => {
|
|
117
|
-
this.unsubscribe(t);
|
|
118
|
-
};
|
|
119
|
-
}
|
|
120
|
-
unsubscribe(t) {
|
|
121
|
-
r(this, n).delete(t), r(this, n).size || C(this);
|
|
122
|
-
}
|
|
123
|
-
reset() {
|
|
124
|
-
this.current = Array.isArray(this.initial) ? [...this.initial] : this.initial;
|
|
125
|
-
}
|
|
126
|
-
close() {
|
|
127
|
-
r(this, n).clear(), C(this);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
g = new WeakMap(), h = new WeakMap(), m = new WeakMap(), n = new WeakMap(), o = new WeakMap(), u = new WeakMap(), y = new WeakMap(), b = new WeakMap(), w = new WeakSet(), E = function() {
|
|
131
|
-
for (const t of r(this, n))
|
|
132
|
-
t(r(this, h));
|
|
133
|
-
};
|
|
134
|
-
const l = new q([], {
|
|
135
|
-
invisible: !0
|
|
136
|
-
});
|
|
137
|
-
function I(i) {
|
|
138
|
-
l.current.includes(i) || (l.current = [...l.current, i]);
|
|
139
|
-
}
|
|
140
|
-
function C(i) {
|
|
141
|
-
l.current.includes(i) && (l.current = l.current.filter((t) => t !== i));
|
|
142
|
-
}
|
|
143
|
-
export {
|
|
144
|
-
q as S,
|
|
145
|
-
l as a,
|
|
146
|
-
M as s
|
|
147
|
-
};
|
package/lib/accordion/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var O=l=>{throw TypeError(l)};var H=(l,i,t)=>i.has(l)||O("Cannot "+t);var e=(l,i,t)=>(H(l,i,"read from private field"),t?t.call(l):i.get(l)),h=(l,i,t)=>i.has(l)?O("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(l):i.set(l,t),a=(l,i,t,n)=>(H(l,i,"write to private field"),n?n.call(l,t):i.set(l,t),t),c=(l,i,t)=>(H(l,i,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("../attribute/index.cjs"),D=require("../browser-CpzFX2xg.cjs"),_=require("../dom-JBOkFLTh.cjs"),B=require("../events-BGwqaxVW.cjs"),$=require("../style-At6aDoqG.cjs");var d,r,f,o,E,S,v,m,T,s,W,w,A,x,k,z,g,b,R,p;class P{constructor(i,t){h(this,s);h(this,d,null);h(this,r,null);h(this,f,null);h(this,o,null);h(this,E,null);h(this,S,!1);h(this,v);h(this,m,!1);h(this,T,[]);h(this,A,()=>{e(this,m)?this.close():this.open()});h(this,x,()=>{e(this,m)&&(c(this,s,g).call(this,0,!0),c(this,s,g).call(this,e(this,s,w)))});h(this,k,()=>{c(this,s,b).call(this,"size-change")});h(this,z,i=>{e(this,m)&&(c(this,s,g).call(this,0,!0),c(this,s,g).call(this,e(this,s,w)),e(this,T).forEach(t=>{t.element.scroll({left:e(this,d).axisAttribute.current==="x"?t.scroll:0,top:e(this,d).axisAttribute.current==="y"?t.scroll:0})}))});h(this,p,()=>{const i=_.getAllParentElements(e(this,r));a(this,T,i.map(t=>({element:t,scroll:e(this,d).axisAttribute.current==="y"?t.scrollTop:t.scrollLeft})))});t.firstElementChild instanceof HTMLElement&&t.lastElementChild instanceof HTMLElement?(a(this,d,i),a(this,r,t),a(this,f,t.firstElementChild),a(this,o,t.lastElementChild),e(this,f).style.cursor="default",e(this,o).style.overflow="hidden",e(this,d).axisAttribute.current==="y"?e(this,o).style.height="0px":e(this,o).style.width="0px",a(this,E,new ResizeObserver(e(this,k))),addEventListener("resize",e(this,x)),e(this,f).addEventListener("click",e(this,A)),e(this,r).addEventListener("beforeSizeChange",e(this,p)),e(this,r).addEventListener("sizeChange",e(this,z)),e(this,r).hasAttribute("data-opened")&&this.open({skipTransition:!0})):i.removeItem(e(this,r))}get element(){return e(this,r)}destroy(){e(this,f)&&(e(this,r).classList.remove("opened","triggered"),e(this,f).style.cursor="",c(this,s,g).call(this,void 0),e(this,E).disconnect(),removeEventListener("resize",e(this,x)),e(this,f).removeEventListener("click",e(this,A)),e(this,r).removeEventListener("beforeSizeChange",e(this,p)),e(this,r).removeEventListener("sizeChange",e(this,z)),clearTimeout(e(this,v)))}open(i){c(this,s,b).call(this,"before-toggle"),i!=null&&i.skipTransition&&c(this,s,R).call(this),e(this,d).multipleAttribute.current||e(this,d).closeAll({exclude:e(this,r)}),e(this,S)||e(this,E).observe(e(this,o)),a(this,m,!0),clearTimeout(e(this,v)),e(this,r).classList.add("triggered"),c(this,s,g).call(this,e(this,s,w)),setTimeout(()=>{e(this,r).classList.add("opened")},0),c(this,s,b).call(this,"toggle")}close(i){c(this,s,b).call(this,"before-toggle"),i!=null&&i.skipTransition&&c(this,s,R).call(this),a(this,m,!1),e(this,r).classList.remove("opened"),c(this,s,g).call(this,0),a(this,v,setTimeout(()=>{e(this,r).classList.remove("triggered")},$.getElementTransitionDurationMS(e(this,o)))),c(this,s,b).call(this,"toggle")}}d=new WeakMap,r=new WeakMap,f=new WeakMap,o=new WeakMap,E=new WeakMap,S=new WeakMap,v=new WeakMap,m=new WeakMap,T=new WeakMap,s=new WeakSet,W=function(){return e(this,r).parentElement||e(this,r).getRootNode()},w=function(){return e(this,d).axisAttribute.current==="x"?e(this,o).scrollWidth:e(this,o).scrollHeight},A=new WeakMap,x=new WeakMap,k=new WeakMap,z=new WeakMap,g=function(i,t=!1){t&&(e(this,o).style.transition="all 0s",setTimeout(()=>{e(this,o).style.transition=""}));const n=e(this,d).axisAttribute.current==="x"?"width":"height";i!=null?e(this,o).style[n]=`${i}px`:e(this,o).style[n]=""},b=function(i){i==="before-toggle"?B.dispatchBeforeSizeChangeEvent(e(this,r)):i==="toggle"?e(this,r).dispatchEvent(new CustomEvent("accordionItemToggle",{bubbles:!0,composed:!0,detail:{opened:e(this,m)}})):i==="size-change"&&B.dispatchSizeChangeEvent(e(this,s,W))},R=function(){e(this,o).style.transition="all 0s",setTimeout(()=>{e(this,o).style.transition=""},50)},p=new WeakMap;var M,I,u,L,C,q;class j extends HTMLElement{constructor(){super();h(this,C);h(this,M,new N.Attribute(this,"axis","y"));h(this,I,new N.Attribute(this,"multiple",!1));h(this,u,[]);h(this,L,null);D.isBrowser&&a(this,L,new MutationObserver(t=>{t.forEach(n=>{n.removedNodes.forEach(y=>{y instanceof HTMLElement&&this.removeItem(y)}),n.addedNodes.forEach(y=>{y instanceof HTMLElement&&this.createItem(y)})})}))}get axisAttribute(){return e(this,M)}get multipleAttribute(){return e(this,I)}createItem(t){e(this,u).find(n=>n.element===t)||e(this,u).push(new P(this,t))}removeItem(t){a(this,u,e(this,u).filter(n=>{if(n.element!==t)return!0;n.destroy()}))}closeAll(t){e(this,u).forEach(n=>{(t==null?void 0:t.exclude)!==n.element&&n.close(t)})}openAll(t){e(this,u).forEach(n=>{(t==null?void 0:t.exclude)!==n.element&&n.open(t)})}connectedCallback(){e(this,L).observe(e(this,C,q),{childList:!0}),a(this,u,[...e(this,C,q).children].map(t=>{if(t instanceof HTMLElement)return new P(this,t)}).filter(t=>!!t))}disconnectedCallback(){e(this,L).disconnect()}}M=new WeakMap,I=new WeakMap,u=new WeakMap,L=new WeakMap,C=new WeakSet,q=function(){return this.shadowRoot?this.shadowRoot:this};customElements.get("e-accordion")||customElements.define("e-accordion",j);exports.AccordionElement=j;
|
package/lib/accordion/index.js
DELETED
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
var N = (l) => {
|
|
2
|
-
throw TypeError(l);
|
|
3
|
-
};
|
|
4
|
-
var H = (l, i, t) => i.has(l) || N("Cannot " + t);
|
|
5
|
-
var e = (l, i, t) => (H(l, i, "read from private field"), t ? t.call(l) : i.get(l)), h = (l, i, t) => i.has(l) ? N("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(l) : i.set(l, t), c = (l, i, t, n) => (H(l, i, "write to private field"), n ? n.call(l, t) : i.set(l, t), t), a = (l, i, t) => (H(l, i, "access private method"), t);
|
|
6
|
-
import { Attribute as B } from "../attribute/index.js";
|
|
7
|
-
import { i as P } from "../browser-0zX67oeU.js";
|
|
8
|
-
import { g as $ } from "../dom-P5QbAASX.js";
|
|
9
|
-
import { d as j, a as q } from "../events-CJTUMSLU.js";
|
|
10
|
-
import { g as F } from "../style-j2TwriJ_.js";
|
|
11
|
-
var d, r, f, o, b, k, v, m, p, s, D, w, x, y, S, A, g, E, R, z;
|
|
12
|
-
class W {
|
|
13
|
-
constructor(i, t) {
|
|
14
|
-
h(this, s);
|
|
15
|
-
h(this, d, null);
|
|
16
|
-
h(this, r, null);
|
|
17
|
-
h(this, f, null);
|
|
18
|
-
h(this, o, null);
|
|
19
|
-
h(this, b, null);
|
|
20
|
-
h(this, k, !1);
|
|
21
|
-
h(this, v);
|
|
22
|
-
h(this, m, !1);
|
|
23
|
-
h(this, p, []);
|
|
24
|
-
h(this, x, () => {
|
|
25
|
-
e(this, m) ? this.close() : this.open();
|
|
26
|
-
});
|
|
27
|
-
h(this, y, () => {
|
|
28
|
-
e(this, m) && (a(this, s, g).call(this, 0, !0), a(this, s, g).call(this, e(this, s, w)));
|
|
29
|
-
});
|
|
30
|
-
h(this, S, () => {
|
|
31
|
-
a(this, s, E).call(this, "size-change");
|
|
32
|
-
});
|
|
33
|
-
h(this, A, (i) => {
|
|
34
|
-
e(this, m) && (a(this, s, g).call(this, 0, !0), a(this, s, g).call(this, e(this, s, w)), e(this, p).forEach((t) => {
|
|
35
|
-
t.element.scroll({
|
|
36
|
-
left: e(this, d).axisAttribute.current === "x" ? t.scroll : 0,
|
|
37
|
-
top: e(this, d).axisAttribute.current === "y" ? t.scroll : 0
|
|
38
|
-
});
|
|
39
|
-
}));
|
|
40
|
-
});
|
|
41
|
-
h(this, z, () => {
|
|
42
|
-
const i = $(e(this, r));
|
|
43
|
-
c(this, p, i.map((t) => ({
|
|
44
|
-
element: t,
|
|
45
|
-
scroll: e(this, d).axisAttribute.current === "y" ? t.scrollTop : t.scrollLeft
|
|
46
|
-
})));
|
|
47
|
-
});
|
|
48
|
-
t.firstElementChild instanceof HTMLElement && t.lastElementChild instanceof HTMLElement ? (c(this, d, i), c(this, r, t), c(this, f, t.firstElementChild), c(this, o, t.lastElementChild), e(this, f).style.cursor = "default", e(this, o).style.overflow = "hidden", e(this, d).axisAttribute.current === "y" ? e(this, o).style.height = "0px" : e(this, o).style.width = "0px", c(this, b, new ResizeObserver(e(this, S))), addEventListener("resize", e(this, y)), e(this, f).addEventListener("click", e(this, x)), e(this, r).addEventListener(
|
|
49
|
-
"beforeSizeChange",
|
|
50
|
-
e(this, z)
|
|
51
|
-
), e(this, r).addEventListener(
|
|
52
|
-
"sizeChange",
|
|
53
|
-
e(this, A)
|
|
54
|
-
), e(this, r).hasAttribute("data-opened") && this.open({ skipTransition: !0 })) : i.removeItem(e(this, r));
|
|
55
|
-
}
|
|
56
|
-
get element() {
|
|
57
|
-
return e(this, r);
|
|
58
|
-
}
|
|
59
|
-
destroy() {
|
|
60
|
-
e(this, f) && (e(this, r).classList.remove("opened", "triggered"), e(this, f).style.cursor = "", a(this, s, g).call(this, void 0), e(this, b).disconnect(), removeEventListener("resize", e(this, y)), e(this, f).removeEventListener("click", e(this, x)), e(this, r).removeEventListener(
|
|
61
|
-
"beforeSizeChange",
|
|
62
|
-
e(this, z)
|
|
63
|
-
), e(this, r).removeEventListener(
|
|
64
|
-
"sizeChange",
|
|
65
|
-
e(this, A)
|
|
66
|
-
), clearTimeout(e(this, v)));
|
|
67
|
-
}
|
|
68
|
-
open(i) {
|
|
69
|
-
a(this, s, E).call(this, "before-toggle"), i != null && i.skipTransition && a(this, s, R).call(this), e(this, d).multipleAttribute.current || e(this, d).closeAll({ exclude: e(this, r) }), e(this, k) || e(this, b).observe(e(this, o)), c(this, m, !0), clearTimeout(e(this, v)), e(this, r).classList.add("triggered"), a(this, s, g).call(this, e(this, s, w)), setTimeout(() => {
|
|
70
|
-
e(this, r).classList.add("opened");
|
|
71
|
-
}, 0), a(this, s, E).call(this, "toggle");
|
|
72
|
-
}
|
|
73
|
-
close(i) {
|
|
74
|
-
a(this, s, E).call(this, "before-toggle"), i != null && i.skipTransition && a(this, s, R).call(this), c(this, m, !1), e(this, r).classList.remove("opened"), a(this, s, g).call(this, 0), c(this, v, setTimeout(() => {
|
|
75
|
-
e(this, r).classList.remove("triggered");
|
|
76
|
-
}, F(e(this, o)))), a(this, s, E).call(this, "toggle");
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
d = new WeakMap(), r = new WeakMap(), f = new WeakMap(), o = new WeakMap(), b = new WeakMap(), k = new WeakMap(), v = new WeakMap(), m = new WeakMap(), p = new WeakMap(), s = new WeakSet(), D = function() {
|
|
80
|
-
return e(this, r).parentElement || e(this, r).getRootNode();
|
|
81
|
-
}, w = function() {
|
|
82
|
-
return e(this, d).axisAttribute.current === "x" ? e(this, o).scrollWidth : e(this, o).scrollHeight;
|
|
83
|
-
}, x = new WeakMap(), y = new WeakMap(), S = new WeakMap(), A = new WeakMap(), g = function(i, t = !1) {
|
|
84
|
-
t && (e(this, o).style.transition = "all 0s", setTimeout(() => {
|
|
85
|
-
e(this, o).style.transition = "";
|
|
86
|
-
}));
|
|
87
|
-
const n = e(this, d).axisAttribute.current === "x" ? "width" : "height";
|
|
88
|
-
i != null ? e(this, o).style[n] = `${i}px` : e(this, o).style[n] = "";
|
|
89
|
-
}, E = function(i) {
|
|
90
|
-
i === "before-toggle" ? j(e(this, r)) : i === "toggle" ? e(this, r).dispatchEvent(
|
|
91
|
-
new CustomEvent("accordionItemToggle", {
|
|
92
|
-
bubbles: !0,
|
|
93
|
-
composed: !0,
|
|
94
|
-
detail: {
|
|
95
|
-
opened: e(this, m)
|
|
96
|
-
}
|
|
97
|
-
})
|
|
98
|
-
) : i === "size-change" && q(e(this, s, D));
|
|
99
|
-
}, R = function() {
|
|
100
|
-
e(this, o).style.transition = "all 0s", setTimeout(() => {
|
|
101
|
-
e(this, o).style.transition = "";
|
|
102
|
-
}, 50);
|
|
103
|
-
}, z = new WeakMap();
|
|
104
|
-
var I, M, u, L, C, O;
|
|
105
|
-
class G extends HTMLElement {
|
|
106
|
-
constructor() {
|
|
107
|
-
super();
|
|
108
|
-
h(this, C);
|
|
109
|
-
h(this, I, new B(this, "axis", "y"));
|
|
110
|
-
h(this, M, new B(this, "multiple", !1));
|
|
111
|
-
h(this, u, []);
|
|
112
|
-
h(this, L, null);
|
|
113
|
-
P && c(this, L, new MutationObserver((t) => {
|
|
114
|
-
t.forEach((n) => {
|
|
115
|
-
n.removedNodes.forEach((T) => {
|
|
116
|
-
T instanceof HTMLElement && this.removeItem(T);
|
|
117
|
-
}), n.addedNodes.forEach((T) => {
|
|
118
|
-
T instanceof HTMLElement && this.createItem(T);
|
|
119
|
-
});
|
|
120
|
-
});
|
|
121
|
-
}));
|
|
122
|
-
}
|
|
123
|
-
get axisAttribute() {
|
|
124
|
-
return e(this, I);
|
|
125
|
-
}
|
|
126
|
-
get multipleAttribute() {
|
|
127
|
-
return e(this, M);
|
|
128
|
-
}
|
|
129
|
-
createItem(t) {
|
|
130
|
-
e(this, u).find((n) => n.element === t) || e(this, u).push(new W(this, t));
|
|
131
|
-
}
|
|
132
|
-
removeItem(t) {
|
|
133
|
-
c(this, u, e(this, u).filter((n) => {
|
|
134
|
-
if (n.element !== t)
|
|
135
|
-
return !0;
|
|
136
|
-
n.destroy();
|
|
137
|
-
}));
|
|
138
|
-
}
|
|
139
|
-
closeAll(t) {
|
|
140
|
-
e(this, u).forEach((n) => {
|
|
141
|
-
(t == null ? void 0 : t.exclude) !== n.element && n.close(t);
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
openAll(t) {
|
|
145
|
-
e(this, u).forEach((n) => {
|
|
146
|
-
(t == null ? void 0 : t.exclude) !== n.element && n.open(t);
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
connectedCallback() {
|
|
150
|
-
e(this, L).observe(e(this, C, O), {
|
|
151
|
-
childList: !0
|
|
152
|
-
}), c(this, u, [...e(this, C, O).children].map((t) => {
|
|
153
|
-
if (t instanceof HTMLElement)
|
|
154
|
-
return new W(this, t);
|
|
155
|
-
}).filter((t) => !!t));
|
|
156
|
-
}
|
|
157
|
-
disconnectedCallback() {
|
|
158
|
-
e(this, L).disconnect();
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
I = new WeakMap(), M = new WeakMap(), u = new WeakMap(), L = new WeakMap(), C = new WeakSet(), O = function() {
|
|
162
|
-
return this.shadowRoot ? this.shadowRoot : this;
|
|
163
|
-
};
|
|
164
|
-
customElements.get("e-accordion") || customElements.define("e-accordion", G);
|
|
165
|
-
export {
|
|
166
|
-
G as AccordionElement
|
|
167
|
-
};
|
package/lib/checkbox/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var k=e=>{throw TypeError(e)};var p=(e,s,t)=>s.has(e)||k("Cannot "+t);var a=(e,s,t)=>(p(e,s,"read from private field"),t?t.call(e):s.get(e)),d=(e,s,t)=>s.has(e)?k("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(e):s.set(e,t),g=(e,s,t,i)=>(p(e,s,"write to private field"),i?i.call(e,t):s.set(e,t),t),o=(e,s,t)=>(p(e,s,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../Store-BnA-dJsE.cjs");require("../ticker/index.cjs");const c=require("../tags-v-OSVkiQ.cjs"),f=require("../createStylesheet-CaDI99iu.cjs"),m=require("../theme/index.cjs"),b='<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>',w=f.createStylesheet({":host":{position:"relative",display:"inline-block",width:"30px",height:"30px",borderRadius:m.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:m.aptechkaTheme.colorMainAux.var},".default svg":{width:"60%",height:"60%",fill:m.aptechkaTheme.colorFont.var,opacity:0,transition:"var(--duration-short)"},":host(.checked) .default svg":{opacity:1}});var h,r,l,n;const v=class v extends HTMLElement{constructor(){super();d(this,l);d(this,h,null);d(this,r);this.attachShadow({mode:"open"}).adoptedStyleSheets.push(w),g(this,r,this.attachInternals()),c.element(this,{children:c.label({children:[c.span({class:"fake",children:c.slot({children:[c.span({class:"default",children:[b]})]})}),c.input({ref:i=>{g(this,h,i),i.required=this.hasAttribute("required"),i.value=this.getAttribute("value")||"",i.checked=this.hasAttribute("checked"),i.name=this.getAttribute("name")||"",o(this,l,n).call(this)},class:"real",type:"checkbox",onChange:()=>{o(this,l,n).call(this),this.dispatchEvent(new Event("change",{composed:!0}))}})]})})}get checked(){return a(this,h).checked}set checked(t){a(this,h).checked=t,o(this,l,n).call(this)}get value(){return a(this,h).value}set value(t){a(this,h).value=t,o(this,l,n).call(this)}};h=new WeakMap,r=new WeakMap,l=new WeakSet,n=function(){this.checked?a(this,r).setFormValue(this.value):a(this,r).setFormValue(null),this.classList.toggle("checked",this.checked)},v.formAssociated=!0;let u=v;customElements.get("e-checkbox")||customElements.define("e-checkbox",u);exports.CheckboxElement=u;
|
package/lib/checkbox/index.js
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
var v = (e) => {
|
|
2
|
-
throw TypeError(e);
|
|
3
|
-
};
|
|
4
|
-
var d = (e, s, t) => s.has(e) || v("Cannot " + t);
|
|
5
|
-
var h = (e, s, t) => (d(e, s, "read from private field"), t ? t.call(e) : s.get(e)), n = (e, s, t) => s.has(e) ? v("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, t), u = (e, s, t, i) => (d(e, s, "write to private field"), i ? i.call(e, t) : s.set(e, t), t), c = (e, s, t) => (d(e, s, "access private method"), t);
|
|
6
|
-
import "../Store-DGtldlBH.js";
|
|
7
|
-
import "../ticker/index.js";
|
|
8
|
-
import { e as k, a3 as b, aB as f, ay as w, a0 as y } from "../tags-4AoxVUe3.js";
|
|
9
|
-
import { c as x } from "../createStylesheet-DO5t5q-m.js";
|
|
10
|
-
import { aptechkaTheme as p } from "../theme/index.js";
|
|
11
|
-
const A = '<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>', S = x({
|
|
12
|
-
":host": {
|
|
13
|
-
position: "relative",
|
|
14
|
-
display: "inline-block",
|
|
15
|
-
width: "30px",
|
|
16
|
-
height: "30px",
|
|
17
|
-
borderRadius: p.borderRadiusSmall.var,
|
|
18
|
-
overflow: "hidden"
|
|
19
|
-
},
|
|
20
|
-
"label, .fake": {
|
|
21
|
-
display: "block"
|
|
22
|
-
},
|
|
23
|
-
"label, .fake, .default": {
|
|
24
|
-
width: "100%",
|
|
25
|
-
height: "100%"
|
|
26
|
-
},
|
|
27
|
-
".real": {
|
|
28
|
-
position: "absolute",
|
|
29
|
-
top: "0",
|
|
30
|
-
left: "0",
|
|
31
|
-
width: "0px",
|
|
32
|
-
height: "0px",
|
|
33
|
-
visibility: "hidden",
|
|
34
|
-
margin: "0"
|
|
35
|
-
},
|
|
36
|
-
".default": {
|
|
37
|
-
display: "flex",
|
|
38
|
-
alignItems: "center",
|
|
39
|
-
justifyContent: "center",
|
|
40
|
-
backgroundColor: p.colorMainAux.var
|
|
41
|
-
},
|
|
42
|
-
".default svg": {
|
|
43
|
-
width: "60%",
|
|
44
|
-
height: "60%",
|
|
45
|
-
fill: p.colorFont.var,
|
|
46
|
-
opacity: 0,
|
|
47
|
-
transition: "var(--duration-short)"
|
|
48
|
-
},
|
|
49
|
-
":host(.checked) .default svg": {
|
|
50
|
-
opacity: 1
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
var a, o, l, r;
|
|
54
|
-
const g = class g extends HTMLElement {
|
|
55
|
-
constructor() {
|
|
56
|
-
super();
|
|
57
|
-
n(this, l);
|
|
58
|
-
n(this, a, null);
|
|
59
|
-
n(this, o);
|
|
60
|
-
this.attachShadow({ mode: "open" }).adoptedStyleSheets.push(S), u(this, o, this.attachInternals()), k(this, {
|
|
61
|
-
children: b({
|
|
62
|
-
children: [
|
|
63
|
-
f({
|
|
64
|
-
class: "fake",
|
|
65
|
-
children: w({
|
|
66
|
-
children: [
|
|
67
|
-
f({
|
|
68
|
-
class: "default",
|
|
69
|
-
children: [A]
|
|
70
|
-
})
|
|
71
|
-
]
|
|
72
|
-
})
|
|
73
|
-
}),
|
|
74
|
-
y({
|
|
75
|
-
ref: (i) => {
|
|
76
|
-
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);
|
|
77
|
-
},
|
|
78
|
-
class: "real",
|
|
79
|
-
type: "checkbox",
|
|
80
|
-
onChange: () => {
|
|
81
|
-
c(this, l, r).call(this), this.dispatchEvent(
|
|
82
|
-
new Event("change", {
|
|
83
|
-
composed: !0
|
|
84
|
-
})
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
})
|
|
88
|
-
]
|
|
89
|
-
})
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
get checked() {
|
|
93
|
-
return h(this, a).checked;
|
|
94
|
-
}
|
|
95
|
-
set checked(t) {
|
|
96
|
-
h(this, a).checked = t, c(this, l, r).call(this);
|
|
97
|
-
}
|
|
98
|
-
get value() {
|
|
99
|
-
return h(this, a).value;
|
|
100
|
-
}
|
|
101
|
-
set value(t) {
|
|
102
|
-
h(this, a).value = t, c(this, l, r).call(this);
|
|
103
|
-
}
|
|
104
|
-
};
|
|
105
|
-
a = new WeakMap(), o = new WeakMap(), l = new WeakSet(), r = function() {
|
|
106
|
-
this.checked ? h(this, o).setFormValue(this.value) : h(this, o).setFormValue(null), this.classList.toggle("checked", this.checked);
|
|
107
|
-
}, g.formAssociated = !0;
|
|
108
|
-
let m = g;
|
|
109
|
-
customElements.get("e-checkbox") || customElements.define("e-checkbox", m);
|
|
110
|
-
export {
|
|
111
|
-
m as CheckboxElement
|
|
112
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { c as l } from "./string-f0Dnk0L1.js";
|
|
2
|
-
function m(r, a) {
|
|
3
|
-
const f = (a == null ? void 0 : a.prefix) || "", c = {
|
|
4
|
-
style: {}
|
|
5
|
-
};
|
|
6
|
-
for (const e in r)
|
|
7
|
-
c[e] = {
|
|
8
|
-
var: `var(--${f}${l(e)})`,
|
|
9
|
-
value: r[e]
|
|
10
|
-
}, c.style[`--${f}${l(e)}`] = r[e];
|
|
11
|
-
return c;
|
|
12
|
-
}
|
|
13
|
-
export {
|
|
14
|
-
m as c
|
|
15
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const l=require("./string-DhgS_iFl.cjs");function s(r,a){const t=(a==null?void 0:a.prefix)||"",c={style:{}};for(const e in r)c[e]={var:`var(--${t}${l.camelToKebab(e)})`,value:r[e]},c.style[`--${t}${l.camelToKebab(e)}`]=r[e];return c}exports.createTheme=s;
|
package/lib/events-BGwqaxVW.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function t(e){e.dispatchEvent(new CustomEvent("sizeChange",{bubbles:!0,composed:!0}))}function n(e){e.dispatchEvent(new CustomEvent("beforeSizeChange",{bubbles:!0,composed:!0}))}exports.dispatchBeforeSizeChangeEvent=n;exports.dispatchSizeChangeEvent=t;
|
package/lib/events-CJTUMSLU.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
function t(e) {
|
|
2
|
-
e.dispatchEvent(
|
|
3
|
-
new CustomEvent("sizeChange", {
|
|
4
|
-
bubbles: !0,
|
|
5
|
-
composed: !0
|
|
6
|
-
})
|
|
7
|
-
);
|
|
8
|
-
}
|
|
9
|
-
function n(e) {
|
|
10
|
-
e.dispatchEvent(
|
|
11
|
-
new CustomEvent("beforeSizeChange", {
|
|
12
|
-
bubbles: !0,
|
|
13
|
-
composed: !0
|
|
14
|
-
})
|
|
15
|
-
);
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
t as a,
|
|
19
|
-
n as d
|
|
20
|
-
};
|
package/lib/file-EevnUtRj.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function c(n,t){const o=new Blob([JSON.stringify(t)],{type:"application/json"}),e=document.createElement("a");e.download=n+".json",e.href=window.URL.createObjectURL(o),e.dataset.downloadurl=["application/json",e.download,e.href].join(":");const a=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0});e.dispatchEvent(a),e.remove()}exports.createJSONAndSave=c;
|
package/lib/file-lxi_oXJf.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
function c(n, o) {
|
|
2
|
-
const t = new Blob([JSON.stringify(o)], { type: "application/json" }), e = document.createElement("a");
|
|
3
|
-
e.download = n + ".json", e.href = window.URL.createObjectURL(t), e.dataset.downloadurl = ["application/json", e.download, e.href].join(":");
|
|
4
|
-
const a = new MouseEvent("click", {
|
|
5
|
-
view: window,
|
|
6
|
-
bubbles: !0,
|
|
7
|
-
cancelable: !0
|
|
8
|
-
});
|
|
9
|
-
e.dispatchEvent(a), e.remove();
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
c
|
|
13
|
-
};
|