aptechka 0.13.1 → 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/attribute/index.js +12 -12
- package/lib/canvas/index.cjs +7 -1
- package/lib/canvas/index.js +54 -58
- package/lib/controls/index.js +1 -1
- package/lib/{createStylesheet-COAZH1Mw.js → createStylesheet-C68ja-RS.js} +3 -3
- package/lib/css-property/index.js +4 -4
- 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.js +2 -2
- package/lib/en3/index.js +1 -1
- package/lib/en3/loaders/index.js +1 -1
- 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/intersector/index.js +7 -7
- package/lib/layout-box/index.js +14 -14
- package/lib/need_redo_tweaker/index.cjs +18 -0
- package/lib/need_redo_tweaker/index.js +1343 -0
- package/lib/pointer/index.js +1 -1
- 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 +104 -105
- package/lib/scroll-entries/index.js +15 -15
- package/lib/slicer/index.cjs +5 -5
- package/lib/slicer/index.js +55 -86
- package/lib/{tags-BL3kQp9o.js → tags-zft1DGBz.js} +92 -92
- 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/package.json +7 -47
- 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-BuAuBz2_.cjs +0 -9
- package/lib/index-CenF0JbH.js +0 -261
- 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/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 -989
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aptechka",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/denisavitski/aptechka.git"
|
|
@@ -18,11 +18,6 @@
|
|
|
18
18
|
],
|
|
19
19
|
"type": "module",
|
|
20
20
|
"exports": {
|
|
21
|
-
"./accordion": {
|
|
22
|
-
"require": "./lib/accordion/index.cjs",
|
|
23
|
-
"default": "./lib/accordion/index.js",
|
|
24
|
-
"types": "./lib/accordion/index.d.ts"
|
|
25
|
-
},
|
|
26
21
|
"./animation": {
|
|
27
22
|
"require": "./lib/animation/index.cjs",
|
|
28
23
|
"default": "./lib/animation/index.js",
|
|
@@ -38,11 +33,6 @@
|
|
|
38
33
|
"default": "./lib/canvas/index.js",
|
|
39
34
|
"types": "./lib/canvas/index.d.ts"
|
|
40
35
|
},
|
|
41
|
-
"./checkbox": {
|
|
42
|
-
"require": "./lib/checkbox/index.cjs",
|
|
43
|
-
"default": "./lib/checkbox/index.js",
|
|
44
|
-
"types": "./lib/checkbox/index.d.ts"
|
|
45
|
-
},
|
|
46
36
|
"./class-linked-status": {
|
|
47
37
|
"require": "./lib/class-linked-status/index.cjs",
|
|
48
38
|
"default": "./lib/class-linked-status/index.js",
|
|
@@ -153,11 +143,6 @@
|
|
|
153
143
|
"default": "./lib/media/index.js",
|
|
154
144
|
"types": "./lib/media/index.d.ts"
|
|
155
145
|
},
|
|
156
|
-
"./modal": {
|
|
157
|
-
"require": "./lib/modal/index.cjs",
|
|
158
|
-
"default": "./lib/modal/index.js",
|
|
159
|
-
"types": "./lib/modal/index.d.ts"
|
|
160
|
-
},
|
|
161
146
|
"./morph": {
|
|
162
147
|
"require": "./lib/morph/index.cjs",
|
|
163
148
|
"default": "./lib/morph/index.js",
|
|
@@ -198,11 +183,6 @@
|
|
|
198
183
|
"default": "./lib/scroll-entries/index.js",
|
|
199
184
|
"types": "./lib/scroll-entries/index.d.ts"
|
|
200
185
|
},
|
|
201
|
-
"./select": {
|
|
202
|
-
"require": "./lib/select/index.cjs",
|
|
203
|
-
"default": "./lib/select/index.js",
|
|
204
|
-
"types": "./lib/select/index.d.ts"
|
|
205
|
-
},
|
|
206
186
|
"./sequence": {
|
|
207
187
|
"require": "./lib/sequence/index.cjs",
|
|
208
188
|
"default": "./lib/sequence/index.js",
|
|
@@ -223,20 +203,15 @@
|
|
|
223
203
|
"default": "./lib/store/index.js",
|
|
224
204
|
"types": "./lib/store/index.d.ts"
|
|
225
205
|
},
|
|
226
|
-
"./theme": {
|
|
227
|
-
"require": "./lib/theme/index.cjs",
|
|
228
|
-
"default": "./lib/theme/index.js",
|
|
229
|
-
"types": "./lib/theme/index.d.ts"
|
|
230
|
-
},
|
|
231
206
|
"./ticker": {
|
|
232
207
|
"require": "./lib/ticker/index.cjs",
|
|
233
208
|
"default": "./lib/ticker/index.js",
|
|
234
209
|
"types": "./lib/ticker/index.d.ts"
|
|
235
210
|
},
|
|
236
|
-
"./
|
|
237
|
-
"require": "./lib/
|
|
238
|
-
"default": "./lib/
|
|
239
|
-
"types": "./lib/
|
|
211
|
+
"./need_redo_tweaker": {
|
|
212
|
+
"require": "./lib/need_redo_tweaker/index.cjs",
|
|
213
|
+
"default": "./lib/need_redo_tweaker/index.js",
|
|
214
|
+
"types": "./lib/need_redo_tweaker/index.d.ts"
|
|
240
215
|
},
|
|
241
216
|
"./utils": {
|
|
242
217
|
"require": "./lib/utils/index.cjs",
|
|
@@ -256,9 +231,6 @@
|
|
|
256
231
|
},
|
|
257
232
|
"typesVersions": {
|
|
258
233
|
"*": {
|
|
259
|
-
"accordion": [
|
|
260
|
-
"lib/accordion/index.d.ts"
|
|
261
|
-
],
|
|
262
234
|
"animation": [
|
|
263
235
|
"lib/animation/index.d.ts"
|
|
264
236
|
],
|
|
@@ -268,9 +240,6 @@
|
|
|
268
240
|
"canvas": [
|
|
269
241
|
"lib/canvas/index.d.ts"
|
|
270
242
|
],
|
|
271
|
-
"checkbox": [
|
|
272
|
-
"lib/checkbox/index.d.ts"
|
|
273
|
-
],
|
|
274
243
|
"class-linked-status": [
|
|
275
244
|
"lib/class-linked-status/index.d.ts"
|
|
276
245
|
],
|
|
@@ -340,9 +309,6 @@
|
|
|
340
309
|
"media": [
|
|
341
310
|
"lib/media/index.d.ts"
|
|
342
311
|
],
|
|
343
|
-
"modal": [
|
|
344
|
-
"lib/modal/index.d.ts"
|
|
345
|
-
],
|
|
346
312
|
"morph": [
|
|
347
313
|
"lib/morph/index.d.ts"
|
|
348
314
|
],
|
|
@@ -367,9 +333,6 @@
|
|
|
367
333
|
"scroll-entries": [
|
|
368
334
|
"lib/scroll-entries/index.d.ts"
|
|
369
335
|
],
|
|
370
|
-
"select": [
|
|
371
|
-
"lib/select/index.d.ts"
|
|
372
|
-
],
|
|
373
336
|
"sequence": [
|
|
374
337
|
"lib/sequence/index.d.ts"
|
|
375
338
|
],
|
|
@@ -382,14 +345,11 @@
|
|
|
382
345
|
"store": [
|
|
383
346
|
"lib/store/index.d.ts"
|
|
384
347
|
],
|
|
385
|
-
"theme": [
|
|
386
|
-
"lib/theme/index.d.ts"
|
|
387
|
-
],
|
|
388
348
|
"ticker": [
|
|
389
349
|
"lib/ticker/index.d.ts"
|
|
390
350
|
],
|
|
391
|
-
"
|
|
392
|
-
"lib/
|
|
351
|
+
"need_redo_tweaker": [
|
|
352
|
+
"lib/need_redo_tweaker/index.d.ts"
|
|
393
353
|
],
|
|
394
354
|
"utils": [
|
|
395
355
|
"lib/utils/index.d.ts"
|
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-npaZHvX4.cjs");require("../ticker/index.cjs");const c=require("../tags-6_ETuR75.cjs"),f=require("../createStylesheet-Csfmh-MH.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-C46i0nvr.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-BL3kQp9o.js";
|
|
9
|
-
import { c as x } from "../createStylesheet-COAZH1Mw.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
|
-
};
|
package/lib/index-BuAuBz2_.cjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";var M=s=>{throw TypeError(s)};var T=(s,i,t)=>i.has(s)||M("Cannot "+t);var e=(s,i,t)=>(T(s,i,"read from private field"),t?t.call(s):i.get(s)),n=(s,i,t)=>i.has(s)?M("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(s):i.set(s,t),h=(s,i,t,l)=>(T(s,i,"write to private field"),l?l.call(s,t):i.set(s,t),t),v=(s,i,t)=>(T(s,i,"access private method"),t);require("./Store-npaZHvX4.cjs");const q=require("./browser-CpzFX2xg.cjs"),O=require("./events-BGwqaxVW.cjs"),D=require("./style-At6aDoqG.cjs");require("./ticker/index.cjs");const o=require("./tags-6_ETuR75.cjs"),z=require("./createStylesheet-Csfmh-MH.cjs"),R=require("./theme/index.cjs"),F=z.createStylesheet({":host":{position:"relative"},".head":{width:"100%",cursor:"default",background:"none",border:"none",color:"inherit",fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit",textAlign:"start",padding:"0",margin:"0"},".body":{boxSizing:"border-box",position:"var(--position, unset)",top:"100%",left:"0",width:"100%",overflow:"hidden",transitionDuration:"var(--duration, var(--duration-short))",transitionProperty:"height",cursor:"default"},".body-inner":{display:"grid",gap:"var(--gap, 0px)",width:"100%",paddingTop:"var(--gap, 0px)"}});var c,d,r,a,u,m,L,E,C;const I=class I extends HTMLElement{constructor(){super();n(this,E);n(this,c,null);n(this,d,"");n(this,r,null);n(this,a,!1);n(this,u);n(this,m,null);n(this,L,()=>{O.dispatchSizeChangeEvent(this)});q.isBrowser&&(this.attachShadow({mode:"open"}).adoptedStyleSheets.push(F),h(this,c,this.attachInternals()),h(this,m,new ResizeObserver(e(this,L))),o.element(this,{children:[o.button({class:"head",children:o.slot({name:"head"}),onClick:()=>{this.opened?this.close():this.open()}}),o.div({class:"body",style:{height:"0px"},children:o.div({class:"body-inner",children:o.slot()}),ref:l=>{h(this,r,l)}})]}))}get value(){return e(this,d)}set value(t){h(this,d,t),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),e(this,c).setFormValue(e(this,d))}get internals(){return e(this,c)}get opened(){return e(this,a)}open(){clearTimeout(e(this,u)),h(this,a,!0),e(this,r).style.display="grid",this.classList.add("triggered"),setTimeout(()=>{this.classList.add("opened"),e(this,r).style.height=e(this,r).scrollHeight+"px",v(this,E,C).call(this)},0)}close(){h(this,a,!1),e(this,r).style.height="0px",this.classList.remove("opened"),v(this,E,C).call(this),h(this,u,setTimeout(()=>{this.classList.remove("triggered"),e(this,r).style.display="none"},D.getElementTransitionDurationMS(e(this,r))))}connectedCallback(){e(this,m).observe(e(this,r))}disconnectedCallback(){clearTimeout(e(this,u)),e(this,m).disconnect()}};c=new WeakMap,d=new WeakMap,r=new WeakMap,a=new WeakMap,u=new WeakMap,m=new WeakMap,L=new WeakMap,E=new WeakSet,C=function(){O.dispatchBeforeSizeChangeEvent(this),this.dispatchEvent(new CustomEvent("selectToggle",{bubbles:!0,composed:!0,detail:{opened:e(this,a)}}))},I.formAssociated=!0;let x=I;customElements.get("e-select")||customElements.define("e-select",x);var f;class H extends HTMLElement{constructor(){super(...arguments);n(this,f,null)}get selectElement(){return e(this,f)}connectedCallback(){var l,S;const t=(S=(l=this.assignedSlot)==null?void 0:l.getRootNode())==null?void 0:S.host;t?h(this,f,t):console.log(this,"e-select not found")}}f=new WeakMap;const P=z.createStylesheet({":host":{width:"100%",height:"40px",display:"inline-flex",alignItems:"center"}});var p,w,k;class A extends H{constructor(){super();n(this,w);n(this,p,()=>{this.selectElement.value===this.value?this.style.display="none":this.style.display=""});q.isBrowser&&(this.attachShadow({mode:"open"}).adoptedStyleSheets.push(P),o.element(this,{tabindex:0,onClick:()=>{v(this,w,k).call(this)},onKeydown:l=>{l.code==="Space"&&v(this,w,k).call(this)},children:o.slot()}))}get value(){return(this.hasAttribute("value")?this.getAttribute("value"):this.innerText)||""}connectedCallback(){super.connectedCallback(),this.hasAttribute("default")&&(this.selectElement.value||(this.selectElement.value=this.value)),this.selectElement.addEventListener("change",e(this,p)),setTimeout(()=>{e(this,p).call(this)})}disconnectedCallback(){this.selectElement.removeEventListener("change",e(this,p))}}p=new WeakMap,w=new WeakSet,k=function(){this.selectElement.value=this.value,this.selectElement.close()};customElements.get("e-select-option")||customElements.define("e-select-option",A);const B=`<svg
|
|
2
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
3
|
-
width="32"
|
|
4
|
-
height="32"
|
|
5
|
-
viewBox="0 0 24 24"
|
|
6
|
-
>
|
|
7
|
-
<path d="m12.37 15.835l6.43-6.63C19.201 8.79 18.958 8 18.43 8H5.57c-.528 0-.771.79-.37 1.205l6.43 6.63c.213.22.527.22.74 0Z" />
|
|
8
|
-
</svg>
|
|
9
|
-
`,U=z.createStylesheet({":host":{width:"100%",height:"40px",display:"inline-flex",alignItems:"center",justifyContent:"space-between"},".default-arrow":{flexShrink:"0",width:"var(--arrow-size, 1em)",height:"var(--arrow-size, 1em)",fill:`var(--arrow-color, ${R.aptechkaTheme.colorMain.var})`,transitionProperty:"transform",transitionDuration:"var(--duration, var(--duration-short))"},":host(.opened) .default-arrow":{transform:"scaleY(-1)"}});var y,g,b;class $ extends H{constructor(){super();n(this,y,null);n(this,g,()=>{const l=this.selectElement.shadowRoot.querySelector(".body slot").assignedElements().find(S=>S.value===this.selectElement.value);l&&(e(this,y).innerHTML=l.innerHTML)});n(this,b,()=>{this.classList.toggle("opened",this.selectElement.opened)});q.isBrowser&&(this.attachShadow({mode:"open"}).adoptedStyleSheets.push(U),o.element(this,{children:[o.slot(),o.slot({name:"arrow",children:o.element(B,{class:"default-arrow"})})]}),this.slot="head")}connectedCallback(){super.connectedCallback(),h(this,y,this.querySelector("[data-value-holder]")||this),this.selectElement.addEventListener("change",e(this,g)),e(this,g).call(this),this.selectElement.addEventListener("selectToggle",e(this,b))}disconnectedCallback(){this.selectElement.removeEventListener("change",e(this,g)),this.selectElement.removeEventListener("selectToggle",e(this,b))}}y=new WeakMap,g=new WeakMap,b=new WeakMap;customElements.get("e-select-head")||customElements.define("e-select-head",$);exports.SelectElement=x;exports.SelectHeadElement=$;exports.SelectOptionElement=A;exports.SelectUserElement=H;exports.arrowIcon=B;
|