aptechka 0.4.4 → 0.4.5
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/checkbox/index.cjs +1 -0
- package/lib/checkbox/index.d.ts +16 -0
- package/lib/checkbox/index.js +120 -0
- package/lib/{index-DGji4duy.js → index-BigQay-N.js} +112 -109
- package/lib/index-DTrWxWOM.cjs +9 -0
- package/lib/popover/PopoverButtonElement.d.ts +3 -3
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +60 -47
- package/lib/scroll/ScrollBulletButtonsElement.d.ts +12 -0
- package/lib/scroll/ScrollButtonElement.d.ts +6 -0
- package/lib/scroll/ScrollElement.d.ts +15 -1
- package/lib/scroll/ScrollSetButtonElement.d.ts +10 -0
- package/lib/scroll/ScrollStepButtonElement.d.ts +10 -0
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.d.ts +3 -0
- package/lib/scroll/index.js +388 -252
- package/lib/select/index.cjs +1 -1
- package/lib/select/index.js +1 -1
- package/lib/source/SourceClass.d.ts +1 -1
- package/lib/studio/index.cjs +2 -2
- package/lib/studio/index.js +93 -91
- package/lib/theme/index.cjs +1 -1
- package/lib/theme/index.d.ts +5 -0
- package/lib/theme/index.js +5 -4
- package/package.json +9 -6
- package/lib/abstract-elements/AbstractButtonElement.d.ts +0 -6
- package/lib/abstract-elements/index.cjs +0 -1
- package/lib/abstract-elements/index.d.ts +0 -1
- package/lib/abstract-elements/index.js +0 -27
- package/lib/index-CUE4tEUr.cjs +0 -9
|
@@ -0,0 +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-Dz_Yisj_.cjs"),_=require("../createStylesheet-u1ZQ2BI5.cjs"),l=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,i)=>{for(var h=i>1?void 0:i?b(e,a):e,p=t.length-1,v;p>=0;p--)(v=t[p])&&(h=(i?v(e,a,h):v(h))||h);return i&&h&&x(e,a,h),h},k=(t,e,a)=>{if(!e.has(t))throw TypeError("Cannot "+a)},n=(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,i)=>(k(t,e,"write to private field"),i?i.call(t,a):e.set(t,a),a),u=(t,e,a)=>(k(t,e,"access private method"),a),s,d,c,o;const C=_.createStylesheet({":host":{position:"relative",display:"inline-block",width:l.aptechkaTheme.heightInput.var,height:l.aptechkaTheme.heightInput.var,borderRadius:l.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:l.aptechkaTheme.colorDarkAux.var},".default svg":{width:"60%",height:"60%",fill:l.aptechkaTheme.colorLight.var,opacity:0,transition:l.aptechkaTheme.durationShort.var},":host(.checked) .default svg":{opacity:1}});exports.CheckboxElement=class extends m.CustomElement{constructor(){super(),f(this,c),f(this,s,null),f(this,d,void 0),this.openShadow(C),g(this,d,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")||"",u(this,c,o).call(this)},class:"real",type:"checkbox",onChange:()=>{u(this,c,o).call(this),this.dispatchEvent(new Event("change",{composed:!0}))}})]})})}get checked(){return n(this,s).checked}set checked(e){n(this,s).checked=e,u(this,c,o).call(this)}get value(){return n(this,s).value}set value(e){n(this,s).value=e,u(this,c,o).call(this)}};s=new WeakMap;d=new WeakMap;c=new WeakSet;o=function(){this.checked?n(this,d).setFormValue(this.value):n(this,d).setFormValue(null),this.classList.toggle("checked",this.checked)};exports.CheckboxElement.formAssociated=!0;exports.CheckboxElement=y([m.define("e-checkbox")],exports.CheckboxElement);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CustomElement } from '../custom-element';
|
|
2
|
+
|
|
3
|
+
export declare class CheckboxElement extends CustomElement {
|
|
4
|
+
#private;
|
|
5
|
+
static formAssociated: boolean;
|
|
6
|
+
constructor();
|
|
7
|
+
get checked(): boolean;
|
|
8
|
+
set checked(state: boolean);
|
|
9
|
+
get value(): string;
|
|
10
|
+
set value(value: string);
|
|
11
|
+
}
|
|
12
|
+
declare global {
|
|
13
|
+
interface HTMLElementTagNameMap {
|
|
14
|
+
'e-checkbox': CheckboxElement;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { CustomElement as w, define as _ } from "../custom-element/index.js";
|
|
2
|
+
import "../Store-BQXXikps.js";
|
|
3
|
+
import { e as y, a3 as x, aB as m, ay as b, a0 as C } from "../tags-CAxO5Rs3.js";
|
|
4
|
+
import { c as A } from "../createStylesheet-DrkbCUJk.js";
|
|
5
|
+
import { aptechkaTheme as h } from "../theme/index.js";
|
|
6
|
+
const E = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><path d="m243.33 90.91l-128.41 128.4a16 16 0 0 1-22.63 0l-71.62-72a16 16 0 0 1 0-22.61l24-24a16 16 0 0 1 22.57-.06l36.64 35.27l.11.11l92.73-91.37a16 16 0 0 1 22.58 0l24 23.56a16 16 0 0 1 .03 22.7Z"/></svg>';
|
|
7
|
+
var S = Object.defineProperty, I = Object.getOwnPropertyDescriptor, F = (e, t, a, i) => {
|
|
8
|
+
for (var s = i > 1 ? void 0 : i ? I(t, a) : t, p = e.length - 1, u; p >= 0; p--)
|
|
9
|
+
(u = e[p]) && (s = (i ? u(t, a, s) : u(s)) || s);
|
|
10
|
+
return i && s && S(t, a, s), s;
|
|
11
|
+
}, g = (e, t, a) => {
|
|
12
|
+
if (!t.has(e))
|
|
13
|
+
throw TypeError("Cannot " + a);
|
|
14
|
+
}, c = (e, t, a) => (g(e, t, "read from private field"), a ? a.call(e) : t.get(e)), v = (e, t, a) => {
|
|
15
|
+
if (t.has(e))
|
|
16
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
17
|
+
t instanceof WeakSet ? t.add(e) : t.set(e, a);
|
|
18
|
+
}, k = (e, t, a, i) => (g(e, t, "write to private field"), i ? i.call(e, a) : t.set(e, a), a), d = (e, t, a) => (g(e, t, "access private method"), a), r, o, l, n;
|
|
19
|
+
const O = A({
|
|
20
|
+
":host": {
|
|
21
|
+
position: "relative",
|
|
22
|
+
display: "inline-block",
|
|
23
|
+
width: h.heightInput.var,
|
|
24
|
+
height: h.heightInput.var,
|
|
25
|
+
borderRadius: h.borderRadiusSmall.var,
|
|
26
|
+
overflow: "hidden"
|
|
27
|
+
},
|
|
28
|
+
"label, .fake": {
|
|
29
|
+
display: "block"
|
|
30
|
+
},
|
|
31
|
+
"label, .fake, .default": {
|
|
32
|
+
width: "100%",
|
|
33
|
+
height: "100%"
|
|
34
|
+
},
|
|
35
|
+
".real": {
|
|
36
|
+
position: "absolute",
|
|
37
|
+
top: "0",
|
|
38
|
+
left: "0",
|
|
39
|
+
width: "0px",
|
|
40
|
+
height: "0px",
|
|
41
|
+
visibility: "hidden",
|
|
42
|
+
margin: "0"
|
|
43
|
+
},
|
|
44
|
+
".default": {
|
|
45
|
+
display: "flex",
|
|
46
|
+
alignItems: "center",
|
|
47
|
+
justifyContent: "center",
|
|
48
|
+
backgroundColor: h.colorDarkAux.var
|
|
49
|
+
},
|
|
50
|
+
".default svg": {
|
|
51
|
+
width: "60%",
|
|
52
|
+
height: "60%",
|
|
53
|
+
fill: h.colorLight.var,
|
|
54
|
+
opacity: 0,
|
|
55
|
+
transition: h.durationShort.var
|
|
56
|
+
},
|
|
57
|
+
":host(.checked) .default svg": {
|
|
58
|
+
opacity: 1
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
let f = class extends w {
|
|
62
|
+
constructor() {
|
|
63
|
+
super(), v(this, l), v(this, r, null), v(this, o, void 0), this.openShadow(O), k(this, o, this.attachInternals()), y(this, {
|
|
64
|
+
children: x({
|
|
65
|
+
children: [
|
|
66
|
+
m({
|
|
67
|
+
class: "fake",
|
|
68
|
+
children: b({
|
|
69
|
+
children: [
|
|
70
|
+
m({
|
|
71
|
+
class: "default",
|
|
72
|
+
children: [E]
|
|
73
|
+
})
|
|
74
|
+
]
|
|
75
|
+
})
|
|
76
|
+
}),
|
|
77
|
+
C({
|
|
78
|
+
ref: (e) => {
|
|
79
|
+
k(this, r, e), e.required = this.hasAttribute("required"), e.value = this.getAttribute("value") || "", e.checked = this.hasAttribute("checked"), e.name = this.getAttribute("name") || "", d(this, l, n).call(this);
|
|
80
|
+
},
|
|
81
|
+
class: "real",
|
|
82
|
+
type: "checkbox",
|
|
83
|
+
onChange: () => {
|
|
84
|
+
d(this, l, n).call(this), this.dispatchEvent(
|
|
85
|
+
new Event("change", {
|
|
86
|
+
composed: !0
|
|
87
|
+
})
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
})
|
|
91
|
+
]
|
|
92
|
+
})
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
get checked() {
|
|
96
|
+
return c(this, r).checked;
|
|
97
|
+
}
|
|
98
|
+
set checked(e) {
|
|
99
|
+
c(this, r).checked = e, d(this, l, n).call(this);
|
|
100
|
+
}
|
|
101
|
+
get value() {
|
|
102
|
+
return c(this, r).value;
|
|
103
|
+
}
|
|
104
|
+
set value(e) {
|
|
105
|
+
c(this, r).value = e, d(this, l, n).call(this);
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
r = /* @__PURE__ */ new WeakMap();
|
|
109
|
+
o = /* @__PURE__ */ new WeakMap();
|
|
110
|
+
l = /* @__PURE__ */ new WeakSet();
|
|
111
|
+
n = function() {
|
|
112
|
+
this.checked ? c(this, o).setFormValue(this.value) : c(this, o).setFormValue(null), this.classList.toggle("checked", this.checked);
|
|
113
|
+
};
|
|
114
|
+
f.formAssociated = !0;
|
|
115
|
+
f = F([
|
|
116
|
+
_("e-checkbox")
|
|
117
|
+
], f);
|
|
118
|
+
export {
|
|
119
|
+
f as CheckboxElement
|
|
120
|
+
};
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
var
|
|
2
|
-
if (!
|
|
1
|
+
var A = (t, e, s) => {
|
|
2
|
+
if (!e.has(t))
|
|
3
3
|
throw TypeError("Cannot " + s);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
if (
|
|
5
|
+
var I = (t, e, s) => (A(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
|
-
|
|
9
|
-
},
|
|
10
|
-
import { CustomElement as
|
|
8
|
+
e instanceof WeakSet ? e.add(t) : e.set(t, s);
|
|
9
|
+
}, G = (t, e, s, i) => (A(t, e, "write to private field"), i ? i.call(t, s) : e.set(t, s), s);
|
|
10
|
+
import { CustomElement as U, define as M } from "./custom-element/index.js";
|
|
11
11
|
import "./Store-BQXXikps.js";
|
|
12
|
-
import { i as
|
|
12
|
+
import { i as P } from "./browser-0zX67oeU.js";
|
|
13
13
|
import { d as V } from "./events-_C2CztxR.js";
|
|
14
14
|
import { g as X } from "./style-j2TwriJ_.js";
|
|
15
|
-
import { e as
|
|
16
|
-
import { c as
|
|
15
|
+
import { e as k, p as Y, ay as _, D as R } from "./tags-CAxO5Rs3.js";
|
|
16
|
+
import { c as D } from "./createStylesheet-DrkbCUJk.js";
|
|
17
17
|
import { aptechkaTheme as m } from "./theme/index.js";
|
|
18
|
-
var
|
|
19
|
-
for (var
|
|
20
|
-
(l =
|
|
21
|
-
return i &&
|
|
22
|
-
},
|
|
23
|
-
if (!
|
|
18
|
+
var j = Object.defineProperty, ee = Object.getOwnPropertyDescriptor, te = (t, e, s, i) => {
|
|
19
|
+
for (var n = i > 1 ? void 0 : i ? ee(e, s) : e, r = t.length - 1, l; r >= 0; r--)
|
|
20
|
+
(l = t[r]) && (n = (i ? l(e, s, n) : l(n)) || n);
|
|
21
|
+
return i && n && j(e, s, n), n;
|
|
22
|
+
}, z = (t, e, s) => {
|
|
23
|
+
if (!e.has(t))
|
|
24
24
|
throw TypeError("Cannot " + s);
|
|
25
|
-
},
|
|
26
|
-
if (
|
|
25
|
+
}, a = (t, e, s) => (z(t, e, "read from private field"), s ? s.call(t) : e.get(t)), h = (t, e, s) => {
|
|
26
|
+
if (e.has(t))
|
|
27
27
|
throw TypeError("Cannot add the same private member more than once");
|
|
28
|
-
|
|
29
|
-
}, c = (
|
|
30
|
-
const
|
|
28
|
+
e instanceof WeakSet ? e.add(t) : e.set(t, s);
|
|
29
|
+
}, c = (t, e, s, i) => (z(t, e, "write to private field"), i ? i.call(t, s) : e.set(t, s), s), q = (t, e, s) => (z(t, e, "access private method"), s), E, y, o, p, v, u, L, C, O;
|
|
30
|
+
const se = D({
|
|
31
31
|
":host": {
|
|
32
32
|
position: "relative"
|
|
33
33
|
},
|
|
@@ -62,40 +62,40 @@ const ie = z({
|
|
|
62
62
|
paddingTop: "var(--gap, 0px)"
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
|
-
let
|
|
65
|
+
let W = class extends U {
|
|
66
66
|
constructor() {
|
|
67
|
-
super(), h(this, C), h(this, E, null), h(this, y, ""), h(this, o, null), h(this, p, !1), h(this, v, void 0), h(this, u, null), h(this,
|
|
67
|
+
super(), h(this, C), h(this, E, null), h(this, y, ""), h(this, o, null), h(this, p, !1), h(this, v, void 0), h(this, u, null), h(this, L, () => {
|
|
68
68
|
V(this);
|
|
69
|
-
}),
|
|
69
|
+
}), P && (this.openShadow(se), c(this, E, this.attachInternals()), c(this, u, new ResizeObserver(a(this, L))), k(this, {
|
|
70
70
|
children: [
|
|
71
|
-
|
|
71
|
+
Y({
|
|
72
72
|
class: "head",
|
|
73
73
|
children: _({ name: "head" }),
|
|
74
74
|
onClick: () => {
|
|
75
75
|
this.opened ? this.close() : this.open();
|
|
76
76
|
}
|
|
77
77
|
}),
|
|
78
|
-
|
|
78
|
+
R({
|
|
79
79
|
class: "body",
|
|
80
80
|
style: {
|
|
81
81
|
height: "0px"
|
|
82
82
|
},
|
|
83
|
-
children:
|
|
83
|
+
children: R({
|
|
84
84
|
class: "body-inner",
|
|
85
85
|
children: _()
|
|
86
86
|
}),
|
|
87
|
-
ref: (
|
|
88
|
-
c(this, o,
|
|
87
|
+
ref: (t) => {
|
|
88
|
+
c(this, o, t);
|
|
89
89
|
}
|
|
90
90
|
})
|
|
91
91
|
]
|
|
92
92
|
}));
|
|
93
93
|
}
|
|
94
94
|
get value() {
|
|
95
|
-
return
|
|
95
|
+
return a(this, y);
|
|
96
96
|
}
|
|
97
|
-
set value(
|
|
98
|
-
c(this, y,
|
|
97
|
+
set value(t) {
|
|
98
|
+
c(this, y, t), this.dispatchEvent(
|
|
99
99
|
new Event("change", {
|
|
100
100
|
bubbles: !0,
|
|
101
101
|
composed: !0
|
|
@@ -103,26 +103,26 @@ let b = class extends Y {
|
|
|
103
103
|
);
|
|
104
104
|
}
|
|
105
105
|
get internals() {
|
|
106
|
-
return
|
|
106
|
+
return a(this, E);
|
|
107
107
|
}
|
|
108
108
|
get opened() {
|
|
109
|
-
return
|
|
109
|
+
return a(this, p);
|
|
110
110
|
}
|
|
111
111
|
open() {
|
|
112
|
-
clearTimeout(
|
|
113
|
-
this.classList.add("opened"),
|
|
112
|
+
clearTimeout(a(this, v)), c(this, p, !0), a(this, o).style.display = "grid", this.classList.add("triggered"), setTimeout(() => {
|
|
113
|
+
this.classList.add("opened"), a(this, o).style.height = a(this, o).scrollHeight + "px", q(this, C, O).call(this);
|
|
114
114
|
}, 0);
|
|
115
115
|
}
|
|
116
116
|
close() {
|
|
117
|
-
c(this, p, !1),
|
|
118
|
-
this.classList.remove("triggered"),
|
|
119
|
-
}, X(
|
|
117
|
+
c(this, p, !1), a(this, o).style.height = "0px", this.classList.remove("opened"), q(this, C, O).call(this), c(this, v, setTimeout(() => {
|
|
118
|
+
this.classList.remove("triggered"), a(this, o).style.display = "none";
|
|
119
|
+
}, X(a(this, o))));
|
|
120
120
|
}
|
|
121
121
|
connectedCallback() {
|
|
122
|
-
|
|
122
|
+
a(this, u).observe(a(this, o));
|
|
123
123
|
}
|
|
124
124
|
disconnectedCallback() {
|
|
125
|
-
clearTimeout(
|
|
125
|
+
clearTimeout(a(this, v)), a(this, u).disconnect();
|
|
126
126
|
}
|
|
127
127
|
};
|
|
128
128
|
E = /* @__PURE__ */ new WeakMap();
|
|
@@ -131,72 +131,75 @@ o = /* @__PURE__ */ new WeakMap();
|
|
|
131
131
|
p = /* @__PURE__ */ new WeakMap();
|
|
132
132
|
v = /* @__PURE__ */ new WeakMap();
|
|
133
133
|
u = /* @__PURE__ */ new WeakMap();
|
|
134
|
-
|
|
134
|
+
L = /* @__PURE__ */ new WeakMap();
|
|
135
135
|
C = /* @__PURE__ */ new WeakSet();
|
|
136
|
-
|
|
136
|
+
O = function() {
|
|
137
137
|
this.dispatchEvent(
|
|
138
138
|
new CustomEvent("selectToggle", {
|
|
139
139
|
bubbles: !0,
|
|
140
140
|
composed: !0,
|
|
141
141
|
detail: {
|
|
142
|
-
opened:
|
|
142
|
+
opened: a(this, p)
|
|
143
143
|
}
|
|
144
144
|
})
|
|
145
145
|
);
|
|
146
146
|
};
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
],
|
|
147
|
+
W.formAssociated = !0;
|
|
148
|
+
W = te([
|
|
149
|
+
M("e-select")
|
|
150
|
+
], W);
|
|
151
151
|
var w;
|
|
152
|
-
class Z extends
|
|
152
|
+
class Z extends U {
|
|
153
153
|
constructor() {
|
|
154
154
|
super(...arguments);
|
|
155
|
-
|
|
155
|
+
H(this, w, null);
|
|
156
156
|
}
|
|
157
157
|
get selectElement() {
|
|
158
|
-
return
|
|
158
|
+
return I(this, w);
|
|
159
159
|
}
|
|
160
160
|
connectedCallback() {
|
|
161
|
-
var i,
|
|
162
|
-
const s = (
|
|
163
|
-
s ?
|
|
161
|
+
var i, n;
|
|
162
|
+
const s = (n = (i = this.assignedSlot) == null ? void 0 : i.getRootNode()) == null ? void 0 : n.host;
|
|
163
|
+
s ? G(this, w, s) : console.log(this, "e-select not found");
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
w = new WeakMap();
|
|
167
|
-
var
|
|
168
|
-
for (var
|
|
169
|
-
(l =
|
|
170
|
-
return i &&
|
|
171
|
-
}, J = (
|
|
172
|
-
if (!
|
|
167
|
+
var ie = Object.defineProperty, ne = Object.getOwnPropertyDescriptor, ae = (t, e, s, i) => {
|
|
168
|
+
for (var n = i > 1 ? void 0 : i ? ne(e, s) : e, r = t.length - 1, l; r >= 0; r--)
|
|
169
|
+
(l = t[r]) && (n = (i ? l(e, s, n) : l(n)) || n);
|
|
170
|
+
return i && n && ie(e, s, n), n;
|
|
171
|
+
}, J = (t, e, s) => {
|
|
172
|
+
if (!e.has(t))
|
|
173
173
|
throw TypeError("Cannot " + s);
|
|
174
|
-
}, $ = (
|
|
175
|
-
if (
|
|
174
|
+
}, $ = (t, e, s) => (J(t, e, "read from private field"), s ? s.call(t) : e.get(t)), B = (t, e, s) => {
|
|
175
|
+
if (e.has(t))
|
|
176
176
|
throw TypeError("Cannot add the same private member more than once");
|
|
177
|
-
|
|
178
|
-
},
|
|
179
|
-
const le =
|
|
177
|
+
e instanceof WeakSet ? e.add(t) : e.set(t, s);
|
|
178
|
+
}, re = (t, e, s) => (J(t, e, "access private method"), s), f, b, K;
|
|
179
|
+
const le = D({
|
|
180
180
|
":host": {
|
|
181
181
|
width: "100%",
|
|
182
182
|
height: m.heightInput.var,
|
|
183
183
|
display: "inline-flex",
|
|
184
184
|
alignItems: "center"
|
|
185
|
+
},
|
|
186
|
+
button: {
|
|
187
|
+
all: "inherit"
|
|
185
188
|
}
|
|
186
189
|
});
|
|
187
|
-
let
|
|
190
|
+
let F = class extends Z {
|
|
188
191
|
constructor() {
|
|
189
|
-
super(),
|
|
192
|
+
super(), B(this, b), B(this, f, () => {
|
|
190
193
|
this.selectElement.value === this.value ? this.style.display = "none" : this.style.display = "";
|
|
191
|
-
}),
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
194
|
+
}), P && (this.openShadow(le), k(this, {
|
|
195
|
+
children: [
|
|
196
|
+
Y({
|
|
197
|
+
onClick: () => {
|
|
198
|
+
re(this, b, K).call(this);
|
|
199
|
+
},
|
|
200
|
+
children: _()
|
|
201
|
+
})
|
|
202
|
+
]
|
|
200
203
|
}));
|
|
201
204
|
}
|
|
202
205
|
get value() {
|
|
@@ -212,13 +215,13 @@ let N = class extends Z {
|
|
|
212
215
|
}
|
|
213
216
|
};
|
|
214
217
|
f = /* @__PURE__ */ new WeakMap();
|
|
215
|
-
|
|
216
|
-
|
|
218
|
+
b = /* @__PURE__ */ new WeakSet();
|
|
219
|
+
K = function() {
|
|
217
220
|
this.selectElement.value = this.value, this.selectElement.close();
|
|
218
221
|
};
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
],
|
|
222
|
+
F = ae([
|
|
223
|
+
M("e-select-option")
|
|
224
|
+
], F);
|
|
222
225
|
const oe = `<svg
|
|
223
226
|
xmlns="http://www.w3.org/2000/svg"
|
|
224
227
|
width="32"
|
|
@@ -228,19 +231,19 @@ const oe = `<svg
|
|
|
228
231
|
<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" />
|
|
229
232
|
</svg>
|
|
230
233
|
`;
|
|
231
|
-
var he = Object.defineProperty, ce = Object.getOwnPropertyDescriptor, de = (
|
|
232
|
-
for (var
|
|
233
|
-
(l =
|
|
234
|
-
return i &&
|
|
235
|
-
}, Q = (
|
|
236
|
-
if (!
|
|
234
|
+
var he = Object.defineProperty, ce = Object.getOwnPropertyDescriptor, de = (t, e, s, i) => {
|
|
235
|
+
for (var n = i > 1 ? void 0 : i ? ce(e, s) : e, r = t.length - 1, l; r >= 0; r--)
|
|
236
|
+
(l = t[r]) && (n = (i ? l(e, s, n) : l(n)) || n);
|
|
237
|
+
return i && n && he(e, s, n), n;
|
|
238
|
+
}, Q = (t, e, s) => {
|
|
239
|
+
if (!e.has(t))
|
|
237
240
|
throw TypeError("Cannot " + s);
|
|
238
|
-
}, d = (
|
|
239
|
-
if (
|
|
241
|
+
}, d = (t, e, s) => (Q(t, e, "read from private field"), s ? s.call(t) : e.get(t)), x = (t, e, s) => {
|
|
242
|
+
if (e.has(t))
|
|
240
243
|
throw TypeError("Cannot add the same private member more than once");
|
|
241
|
-
|
|
242
|
-
}, pe = (
|
|
243
|
-
const ve =
|
|
244
|
+
e instanceof WeakSet ? e.add(t) : e.set(t, s);
|
|
245
|
+
}, pe = (t, e, s, i) => (Q(t, e, "write to private field"), i ? i.call(t, s) : e.set(t, s), s), S, g, T;
|
|
246
|
+
const ve = D({
|
|
244
247
|
":host": {
|
|
245
248
|
width: "100%",
|
|
246
249
|
height: m.heightInput.var,
|
|
@@ -260,42 +263,42 @@ const ve = z({
|
|
|
260
263
|
transform: "scaleY(-1)"
|
|
261
264
|
}
|
|
262
265
|
});
|
|
263
|
-
let
|
|
266
|
+
let N = class extends Z {
|
|
264
267
|
constructor() {
|
|
265
|
-
super(),
|
|
266
|
-
const
|
|
268
|
+
super(), x(this, S, null), x(this, g, () => {
|
|
269
|
+
const e = this.selectElement.shadowRoot.querySelector(
|
|
267
270
|
".body slot"
|
|
268
271
|
).assignedElements().find((s) => s.value === this.selectElement.value);
|
|
269
|
-
|
|
270
|
-
}),
|
|
272
|
+
e && (d(this, S).innerHTML = e.innerHTML);
|
|
273
|
+
}), x(this, T, () => {
|
|
271
274
|
this.classList.toggle("opened", this.selectElement.opened);
|
|
272
|
-
}),
|
|
275
|
+
}), P && (this.openShadow(ve), k(this, {
|
|
273
276
|
children: [
|
|
274
277
|
_(),
|
|
275
278
|
_({
|
|
276
279
|
name: "arrow",
|
|
277
|
-
children:
|
|
280
|
+
children: k(oe, { class: "default-arrow" })
|
|
278
281
|
})
|
|
279
282
|
]
|
|
280
283
|
}), this.slot = "head");
|
|
281
284
|
}
|
|
282
285
|
connectedCallback() {
|
|
283
|
-
super.connectedCallback(), pe(this,
|
|
286
|
+
super.connectedCallback(), pe(this, S, this.querySelector("[data-value-holder]") || this), this.selectElement.addEventListener("change", d(this, g)), d(this, g).call(this), this.selectElement.addEventListener("selectToggle", d(this, T));
|
|
284
287
|
}
|
|
285
288
|
disconnectedCallback() {
|
|
286
|
-
this.selectElement.removeEventListener("change", d(this, g)), this.selectElement.removeEventListener("selectToggle", d(this,
|
|
289
|
+
this.selectElement.removeEventListener("change", d(this, g)), this.selectElement.removeEventListener("selectToggle", d(this, T));
|
|
287
290
|
}
|
|
288
291
|
};
|
|
289
|
-
|
|
292
|
+
S = /* @__PURE__ */ new WeakMap();
|
|
290
293
|
g = /* @__PURE__ */ new WeakMap();
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
],
|
|
294
|
+
T = /* @__PURE__ */ new WeakMap();
|
|
295
|
+
N = de([
|
|
296
|
+
M("e-select-head")
|
|
297
|
+
], N);
|
|
295
298
|
export {
|
|
296
|
-
|
|
299
|
+
W as S,
|
|
297
300
|
oe as a,
|
|
298
301
|
Z as b,
|
|
299
|
-
|
|
300
|
-
|
|
302
|
+
F as c,
|
|
303
|
+
N as d
|
|
301
304
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";var D=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)};var z=(t,e,s)=>(D(t,e,"read from private field"),s?s.call(t):e.get(t)),A=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},H=(t,e,s,i)=>(D(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s);const E=require("./custom-element/index.cjs");require("./Store-C-1ruEIm.cjs");const W=require("./browser-CpzFX2xg.cjs"),N=require("./events-Crwi8fz6.cjs"),Y=require("./style-At6aDoqG.cjs"),a=require("./tags-Dz_Yisj_.cjs"),M=require("./createStylesheet-u1ZQ2BI5.cjs"),w=require("./theme/index.cjs");var Z=Object.defineProperty,J=Object.getOwnPropertyDescriptor,K=(t,e,s,i)=>{for(var n=i>1?void 0:i?J(e,s):e,l=t.length-1,h;l>=0;l--)(h=t[l])&&(n=(i?h(e,s,n):h(n))||n);return i&&n&&Z(e,s,n),n},P=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)},r=(t,e,s)=>(P(t,e,"read from private field"),s?s.call(t):e.get(t)),c=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},d=(t,e,s,i)=>(P(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s),I=(t,e,s)=>(P(t,e,"access private method"),s),y,S,o,v,u,f,$,C,b;const Q=M.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, ${w.aptechkaTheme.durationShort.var})`,transitionProperty:"height",cursor:"default"},".body-inner":{display:"grid",gap:"var(--gap, 0px)",width:"100%",paddingTop:"var(--gap, 0px)"}});exports.SelectElement=class extends E.CustomElement{constructor(){super(),c(this,C),c(this,y,null),c(this,S,""),c(this,o,null),c(this,v,!1),c(this,u,void 0),c(this,f,null),c(this,$,()=>{N.dispatchSizeChangeEvent(this)}),W.isBrowser&&(this.openShadow(Q),d(this,y,this.attachInternals()),d(this,f,new ResizeObserver(r(this,$))),a.element(this,{children:[a.button({class:"head",children:a.slot({name:"head"}),onClick:()=>{this.opened?this.close():this.open()}}),a.div({class:"body",style:{height:"0px"},children:a.div({class:"body-inner",children:a.slot()}),ref:e=>{d(this,o,e)}})]}))}get value(){return r(this,S)}set value(e){d(this,S,e),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}get internals(){return r(this,y)}get opened(){return r(this,v)}open(){clearTimeout(r(this,u)),d(this,v,!0),r(this,o).style.display="grid",this.classList.add("triggered"),setTimeout(()=>{this.classList.add("opened"),r(this,o).style.height=r(this,o).scrollHeight+"px",I(this,C,b).call(this)},0)}close(){d(this,v,!1),r(this,o).style.height="0px",this.classList.remove("opened"),I(this,C,b).call(this),d(this,u,setTimeout(()=>{this.classList.remove("triggered"),r(this,o).style.display="none"},Y.getElementTransitionDurationMS(r(this,o))))}connectedCallback(){r(this,f).observe(r(this,o))}disconnectedCallback(){clearTimeout(r(this,u)),r(this,f).disconnect()}};y=new WeakMap;S=new WeakMap;o=new WeakMap;v=new WeakMap;u=new WeakMap;f=new WeakMap;$=new WeakMap;C=new WeakSet;b=function(){this.dispatchEvent(new CustomEvent("selectToggle",{bubbles:!0,composed:!0,detail:{opened:r(this,v)}}))};exports.SelectElement.formAssociated=!0;exports.SelectElement=K([E.define("e-select")],exports.SelectElement);var _;class q extends E.CustomElement{constructor(){super(...arguments);A(this,_,null)}get selectElement(){return z(this,_)}connectedCallback(){var i,n;const s=(n=(i=this.assignedSlot)==null?void 0:i.getRootNode())==null?void 0:n.host;s?H(this,_,s):console.log(this,"e-select not found")}}_=new WeakMap;var V=Object.defineProperty,X=Object.getOwnPropertyDescriptor,j=(t,e,s,i)=>{for(var n=i>1?void 0:i?X(e,s):e,l=t.length-1,h;l>=0;l--)(h=t[l])&&(n=(i?h(e,s,n):h(n))||n);return i&&n&&V(e,s,n),n},G=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)},x=(t,e,s)=>(G(t,e,"read from private field"),s?s.call(t):e.get(t)),B=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},ee=(t,e,s)=>(G(t,e,"access private method"),s),m,L,R;const te=M.createStylesheet({":host":{width:"100%",height:w.aptechkaTheme.heightInput.var,display:"inline-flex",alignItems:"center"},button:{all:"inherit"}});exports.SelectOptionElement=class extends q{constructor(){super(),B(this,L),B(this,m,()=>{this.selectElement.value===this.value?this.style.display="none":this.style.display=""}),W.isBrowser&&(this.openShadow(te),a.element(this,{children:[a.button({onClick:()=>{ee(this,L,R).call(this)},children:a.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",x(this,m)),setTimeout(()=>{x(this,m).call(this)})}disconnectedCallback(){this.selectElement.removeEventListener("change",x(this,m))}};m=new WeakMap;L=new WeakSet;R=function(){this.selectElement.value=this.value,this.selectElement.close()};exports.SelectOptionElement=j([E.define("e-select-option")],exports.SelectOptionElement);const U=`<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
|
+
`;var se=Object.defineProperty,ie=Object.getOwnPropertyDescriptor,ne=(t,e,s,i)=>{for(var n=i>1?void 0:i?ie(e,s):e,l=t.length-1,h;l>=0;l--)(h=t[l])&&(n=(i?h(e,s,n):h(n))||n);return i&&n&&se(e,s,n),n},F=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)},p=(t,e,s)=>(F(t,e,"read from private field"),s?s.call(t):e.get(t)),O=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},re=(t,e,s,i)=>(F(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s),T,g,k;const ae=M.createStylesheet({":host":{width:"100%",height:w.aptechkaTheme.heightInput.var,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, ${w.aptechkaTheme.colorDark.var})`,transitionProperty:"transform",transitionDuration:`var(--duration, ${w.aptechkaTheme.durationShort.var})`},":host(.opened) .default-arrow":{transform:"scaleY(-1)"}});exports.SelectHeadElement=class extends q{constructor(){super(),O(this,T,null),O(this,g,()=>{const s=this.selectElement.shadowRoot.querySelector(".body slot").assignedElements().find(i=>i.value===this.selectElement.value);s&&(p(this,T).innerHTML=s.innerHTML)}),O(this,k,()=>{this.classList.toggle("opened",this.selectElement.opened)}),W.isBrowser&&(this.openShadow(ae),a.element(this,{children:[a.slot(),a.slot({name:"arrow",children:a.element(U,{class:"default-arrow"})})]}),this.slot="head")}connectedCallback(){super.connectedCallback(),re(this,T,this.querySelector("[data-value-holder]")||this),this.selectElement.addEventListener("change",p(this,g)),p(this,g).call(this),this.selectElement.addEventListener("selectToggle",p(this,k))}disconnectedCallback(){this.selectElement.removeEventListener("change",p(this,g)),this.selectElement.removeEventListener("selectToggle",p(this,k))}};T=new WeakMap;g=new WeakMap;k=new WeakMap;exports.SelectHeadElement=ne([E.define("e-select-head")],exports.SelectHeadElement);exports.SelectUserElement=q;exports.arrowIcon=U;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { AbstractButtonElement } from '../abstract-elements';
|
|
2
1
|
import { PopoverElement } from './PopoverElement';
|
|
2
|
+
import { CustomElement } from '../custom-element';
|
|
3
3
|
|
|
4
4
|
export type PopoverButtonType = 'open' | 'close' | 'toggle';
|
|
5
|
-
export declare class PopoverButtonElement extends
|
|
5
|
+
export declare class PopoverButtonElement extends CustomElement {
|
|
6
6
|
#private;
|
|
7
|
+
constructor();
|
|
7
8
|
get popoverElement(): PopoverElement | undefined;
|
|
8
|
-
click(): void;
|
|
9
9
|
protected connectedCallback(): void;
|
|
10
10
|
}
|
|
11
11
|
declare global {
|
package/lib/popover/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("../attribute/index.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("../attribute/index.cjs"),S=require("../custom-element/index.cjs"),A=require("../Store-C-1ruEIm.cjs"),b=require("../style-At6aDoqG.cjs"),x=require("../browser-CpzFX2xg.cjs"),k=require("../tags-Dz_Yisj_.cjs"),B=require("../createStylesheet-u1ZQ2BI5.cjs");var D=Object.defineProperty,I=Object.getOwnPropertyDescriptor,N=(t,e,s,i)=>{for(var n=i>1?void 0:i?I(e,s):e,c=t.length-1,p;c>=0;c--)(p=t[c])&&(n=(i?p(e,s,n):p(n))||n);return i&&n&&D(e,s,n),n},C=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)},r=(t,e,s)=>(C(t,e,"read from private field"),s?s.call(t):e.get(t)),o=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},L=(t,e,s,i)=>(C(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s),$=(t,e,s)=>(C(t,e,"access private method"),s),P,a,E,h,u,_,M,O,v,m,w,y,g,W,f;exports.PopoverElement=class extends S.CustomElement{constructor(){super(...arguments),o(this,M),o(this,v),o(this,g),o(this,P,-1),o(this,a,new A.Store(!1)),o(this,E,void 0),o(this,h,new T.Attribute(this,"history",!1)),o(this,u,new T.Attribute(this,"single",!1)),o(this,_,!1),this.open=()=>{r(this,a).current||(r(this,a).current=!0,r(this,u).current&&(exports.PopoverElement.__opened.forEach(e=>e.close()),exports.PopoverElement.__opened=[]),exports.PopoverElement.__opened.push(this),L(this,P,exports.PopoverElement.__opened.length-1),r(this,h).current&&r(this,_)&&history.pushState("","",r(this,M,O)),clearTimeout(r(this,E)),this.classList.add("triggered"),this.style.display="block",setTimeout(()=>{addEventListener("click",r(this,w)),addEventListener("keydown",r(this,y)),this.style.opacity="1",this.classList.add("opened")}))},this.close=()=>{if(r(this,a).current){if(r(this,a).current=!1,exports.PopoverElement.__opened=exports.PopoverElement.__opened.filter(e=>e!==this),r(this,h).current){const e=new URL(location.href);e.searchParams.delete(r(this,v,m)),history.replaceState(null,"",e.href)}this.classList.remove("opened"),this.style.opacity="0",removeEventListener("click",r(this,w)),removeEventListener("keydown",r(this,y)),setTimeout(()=>{this.classList.remove("triggered"),this.style.display="none"},b.getElementTransitionDurationMS(this))}},o(this,w,e=>{$(this,g,W).call(this,()=>{const s=e.composedPath();(!s.find(i=>i===this)&&!s.find(i=>i instanceof HTMLElement&&i.closest("e-popover-button"))||s[0]instanceof HTMLElement&&s[0].hasAttribute("outside"))&&this.close()})}),o(this,y,e=>{$(this,g,W).call(this,()=>{e.code==="Escape"&&this.close()})}),o(this,f,()=>{L(this,_,!1),r(this,a).current&&r(this,h).current&&!location.search.includes(r(this,v,m))?this.close():!r(this,a).current&&r(this,h).current&&location.search.includes(r(this,v,m))&&this.open(),L(this,_,!0)})}get history(){return r(this,h)}get single(){return r(this,u)}get opened(){return r(this,a)}connectedCallback(){r(this,h).observe(),r(this,u).observe(),this.style.opacity="0",this.style.display="none",addEventListener("popstate",r(this,f)),setTimeout(()=>{r(this,f).call(this)},0)}disconnectedCallback(){r(this,h).unobserve(),r(this,u).unobserve(),clearTimeout(r(this,E)),removeEventListener("popstate",r(this,f))}};P=new WeakMap;a=new WeakMap;E=new WeakMap;h=new WeakMap;u=new WeakMap;_=new WeakMap;M=new WeakSet;O=function(){return`${location.pathname}${location.search?location.search+"&":"?"}${r(this,v,m)}`};v=new WeakSet;m=function(){return`modal-${this.id}`};w=new WeakMap;y=new WeakMap;g=new WeakSet;W=function(t){(exports.PopoverElement.__opened[r(this,P)-1]||exports.PopoverElement.__opened.length===1)&&t()};f=new WeakMap;exports.PopoverElement.__opened=[];exports.PopoverElement=N([S.define("e-popover")],exports.PopoverElement);var G=Object.defineProperty,H=Object.getOwnPropertyDescriptor,R=(t,e,s,i)=>{for(var n=i>1?void 0:i?H(e,s):e,c=t.length-1,p;c>=0;c--)(p=t[c])&&(n=(i?p(e,s,n):p(n))||n);return i&&n&&G(e,s,n),n},q=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)},d=(t,e,s)=>(q(t,e,"read from private field"),s?s.call(t):e.get(t)),U=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},z=(t,e,s,i)=>(q(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s),l;const F=B.createStylesheet({button:{all:"inherit"}});exports.PopoverButtonElement=class extends S.CustomElement{constructor(){super(),U(this,l,void 0),this.openShadow(F),x.isBrowser&&k.element(this,{children:[k.button({onClick:()=>{if(d(this,l)){const e=this.getAttribute("type")||"open";e==="open"||e==="toggle"&&!d(this,l).opened.current?d(this,l).open():(e==="close"||e==="toggle"&&d(this,l).opened.current)&&d(this,l).close()}},children:[k.slot()]})]})}get popoverElement(){return d(this,l)}connectedCallback(){const e=this.getAttribute("target");if(e){const s=document.querySelector(`#${e}`)||this.getRootNode().querySelector(`#${e}`);s?z(this,l,s):console.warn(this,`target ${e} not found`)}}};l=new WeakMap;exports.PopoverButtonElement=R([S.define("e-popover-button")],exports.PopoverButtonElement);
|