aptechka 0.1.6 → 0.1.8
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/Animated-Bf-gPIQM.cjs +1 -0
- package/lib/{Animated-CJcYqJzq.js → Animated-Br_4OSth.js} +36 -35
- package/lib/{Damped-AHRBHNEQ.cjs → Damped-BwpMU9Gi.cjs} +1 -1
- package/lib/{Damped-Csj-9_gH.js → Damped-urvryQLo.js} +1 -1
- package/lib/abstract-elements/index.cjs +1 -1
- package/lib/abstract-elements/index.js +11 -14
- package/lib/accordion/AccordionElement.d.ts +1 -1
- package/lib/accordion/index.cjs +1 -1
- package/lib/accordion/index.js +25 -26
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.js +2 -2
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.js +18 -18
- package/lib/connector/index.cjs +1 -1
- package/lib/connector/index.d.ts +1 -2
- package/lib/connector/index.js +31 -31
- package/lib/createStylesheet-BsVHqHhr.cjs +1 -0
- package/lib/createStylesheet-ITfBHk7A.js +8 -0
- package/lib/element-constructor/ElementConstructor.d.ts +27 -41
- package/lib/element-constructor/index.cjs +1 -1
- package/lib/element-constructor/index.d.ts +1 -2
- package/lib/element-constructor/index.js +122 -639
- package/lib/element-constructor/knownSvgTags.d.ts +1 -0
- package/lib/element-constructor/tags.d.ts +119 -0
- package/lib/events-Crwi8fz6.cjs +1 -0
- package/lib/{events-CoqmkUxo.js → events-_C2CztxR.js} +1 -1
- package/lib/index-Bt91QUTY.cjs +9 -0
- package/lib/{index-DgtdcBEI.js → index-COirQu7j.js} +83 -92
- package/lib/modal/index.cjs +1 -1
- package/lib/modal/index.js +33 -39
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +82 -85
- package/lib/select/SelectElement.d.ts +1 -1
- package/lib/select/index.cjs +1 -1
- package/lib/select/index.d.ts +1 -1
- package/lib/select/index.js +1 -1
- package/lib/store/Derived.d.ts +1 -1
- package/lib/studio/index.cjs +6 -6
- package/lib/studio/index.js +322 -369
- package/lib/tags-8Y7LSTwg.js +779 -0
- package/lib/tags-pcim-Cws.cjs +1 -0
- package/lib/theme/index.cjs +1 -1
- package/lib/theme/index.js +6 -6
- package/lib/utils/events.d.ts +1 -1
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/index.js +1 -1
- package/lib/utils/ts-utility.d.ts +2 -2
- package/package.json +1 -9
- package/lib/Animated-DyZuTEQE.cjs +0 -1
- package/lib/ElementConstructor-9f-12v7T.cjs +0 -1
- package/lib/ElementConstructor-CoKM2CTK.js +0 -228
- package/lib/createStylesheet-BON7aJYs.js +0 -10
- package/lib/createStylesheet-uicRVW05.cjs +0 -1
- package/lib/element-constructor/htmlTags.d.ts +0 -115
- package/lib/element-constructor/svgTags.d.ts +0 -64
- package/lib/events-D68xg4dy.cjs +0 -1
- package/lib/htmlTags-BCNUG7oK.js +0 -683
- package/lib/htmlTags-BSQys9wH.cjs +0 -1
- package/lib/index-i_Ki9M-w.cjs +0 -9
- package/lib/jsx/ComponentElement.d.ts +0 -17
- package/lib/jsx/h.d.ts +0 -8
- package/lib/jsx/hooks.d.ts +0 -25
- package/lib/jsx/index.cjs +0 -1
- package/lib/jsx/index.d.ts +0 -4
- package/lib/jsx/index.js +0 -116
- package/lib/jsx/render.d.ts +0 -2
- package/lib/jsx/type.d.ts +0 -186
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const knownSvgTags: Set<string>;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { ElementConstructorTagObject, ElementConstructor, ElementConstructorJSS, ElementConstructorTagNames } from './ElementConstructor';
|
|
2
|
+
export declare function element<T extends ElementConstructorTagNames = ElementConstructorTagNames>(string: string, object: ElementConstructorTagObject<T>): ElementConstructor<T>;
|
|
3
|
+
export declare function element<T extends ElementConstructorTagNames = ElementConstructorTagNames>(tag: T, object?: ElementConstructorTagObject<T>): ElementConstructor<T>;
|
|
4
|
+
export declare function element(node: Node, object: ElementConstructorTagObject<Node>): ElementConstructor<Node>;
|
|
5
|
+
export declare function a(object?: ElementConstructorTagObject<'a'>): ElementConstructor<"a", HTMLAnchorElement & SVGAElement>;
|
|
6
|
+
export declare function abbr(object?: ElementConstructorTagObject<'abbr'>): ElementConstructor<"abbr", HTMLElement>;
|
|
7
|
+
export declare function address(object?: ElementConstructorTagObject<'address'>): ElementConstructor<"address", HTMLElement>;
|
|
8
|
+
export declare function area(object?: ElementConstructorTagObject<'area'>): ElementConstructor<"area", HTMLAreaElement>;
|
|
9
|
+
export declare function article(object?: ElementConstructorTagObject<'article'>): ElementConstructor<"article", HTMLElement>;
|
|
10
|
+
export declare function aside(object?: ElementConstructorTagObject<'aside'>): ElementConstructor<"aside", HTMLElement>;
|
|
11
|
+
export declare function audio(object?: ElementConstructorTagObject<'audio'>): ElementConstructor<"audio", HTMLAudioElement>;
|
|
12
|
+
export declare function b(object?: ElementConstructorTagObject<'b'>): ElementConstructor<"b", HTMLElement>;
|
|
13
|
+
export declare function base(object?: ElementConstructorTagObject<'base'>): ElementConstructor<"base", HTMLBaseElement>;
|
|
14
|
+
export declare function bdi(object?: ElementConstructorTagObject<'bdi'>): ElementConstructor<"bdi", HTMLElement>;
|
|
15
|
+
export declare function bdo(object?: ElementConstructorTagObject<'bdo'>): ElementConstructor<"bdo", HTMLElement>;
|
|
16
|
+
export declare function blockquote(object?: ElementConstructorTagObject<'blockquote'>): ElementConstructor<"blockquote", HTMLQuoteElement>;
|
|
17
|
+
export declare function body(object?: ElementConstructorTagObject<'body'>): ElementConstructor<"body", HTMLBodyElement>;
|
|
18
|
+
export declare function br(object?: ElementConstructorTagObject<'br'>): ElementConstructor<"br", HTMLBRElement>;
|
|
19
|
+
export declare function button(object?: ElementConstructorTagObject<'button'>): ElementConstructor<"button", HTMLButtonElement>;
|
|
20
|
+
export declare function canvas(object?: ElementConstructorTagObject<'canvas'>): ElementConstructor<"canvas", HTMLCanvasElement>;
|
|
21
|
+
export declare function caption(object?: ElementConstructorTagObject<'caption'>): ElementConstructor<"caption", HTMLTableCaptionElement>;
|
|
22
|
+
export declare function cite(object?: ElementConstructorTagObject<'cite'>): ElementConstructor<"cite", HTMLElement>;
|
|
23
|
+
export declare function code(object?: ElementConstructorTagObject<'code'>): ElementConstructor<"code", HTMLElement>;
|
|
24
|
+
export declare function col(object?: ElementConstructorTagObject<'col'>): ElementConstructor<"col", HTMLTableColElement>;
|
|
25
|
+
export declare function colgroup(object?: ElementConstructorTagObject<'colgroup'>): ElementConstructor<"colgroup", HTMLTableColElement>;
|
|
26
|
+
export declare function data(object?: ElementConstructorTagObject<'data'>): ElementConstructor<"data", HTMLDataElement>;
|
|
27
|
+
export declare function datalist(object?: ElementConstructorTagObject<'datalist'>): ElementConstructor<"datalist", HTMLDataListElement>;
|
|
28
|
+
export declare function dd(object?: ElementConstructorTagObject<'dd'>): ElementConstructor<"dd", HTMLElement>;
|
|
29
|
+
export declare function del(object?: ElementConstructorTagObject<'del'>): ElementConstructor<"del", HTMLModElement>;
|
|
30
|
+
export declare function details(object?: ElementConstructorTagObject<'details'>): ElementConstructor<"details", HTMLDetailsElement>;
|
|
31
|
+
export declare function dfn(object?: ElementConstructorTagObject<'dfn'>): ElementConstructor<"dfn", HTMLElement>;
|
|
32
|
+
export declare function dialog(object?: ElementConstructorTagObject<'dialog'>): ElementConstructor<"dialog", HTMLDialogElement>;
|
|
33
|
+
export declare function div(object?: ElementConstructorTagObject<'div'>): ElementConstructor<"div", HTMLDivElement>;
|
|
34
|
+
export declare function dl(object?: ElementConstructorTagObject<'dl'>): ElementConstructor<"dl", HTMLDListElement>;
|
|
35
|
+
export declare function dt(object?: ElementConstructorTagObject<'dt'>): ElementConstructor<"dt", HTMLElement>;
|
|
36
|
+
export declare function em(object?: ElementConstructorTagObject<'em'>): ElementConstructor<"em", HTMLElement>;
|
|
37
|
+
export declare function embed(object?: ElementConstructorTagObject<'embed'>): ElementConstructor<"embed", HTMLEmbedElement>;
|
|
38
|
+
export declare function fieldset(object?: ElementConstructorTagObject<'fieldset'>): ElementConstructor<"fieldset", HTMLFieldSetElement>;
|
|
39
|
+
export declare function figcaption(object?: ElementConstructorTagObject<'figcaption'>): ElementConstructor<"figcaption", HTMLElement>;
|
|
40
|
+
export declare function figure(object?: ElementConstructorTagObject<'figure'>): ElementConstructor<"figure", HTMLElement>;
|
|
41
|
+
export declare function footer(object?: ElementConstructorTagObject<'footer'>): ElementConstructor<"footer", HTMLElement>;
|
|
42
|
+
export declare function form(object?: ElementConstructorTagObject<'form'>): ElementConstructor<"form", HTMLFormElement>;
|
|
43
|
+
export declare function h1(object?: ElementConstructorTagObject<'h1'>): ElementConstructor<"h1", HTMLHeadingElement>;
|
|
44
|
+
export declare function h2(object?: ElementConstructorTagObject<'h2'>): ElementConstructor<"h2", HTMLHeadingElement>;
|
|
45
|
+
export declare function h3(object?: ElementConstructorTagObject<'h3'>): ElementConstructor<"h3", HTMLHeadingElement>;
|
|
46
|
+
export declare function h4(object?: ElementConstructorTagObject<'h4'>): ElementConstructor<"h4", HTMLHeadingElement>;
|
|
47
|
+
export declare function h5(object?: ElementConstructorTagObject<'h5'>): ElementConstructor<"h5", HTMLHeadingElement>;
|
|
48
|
+
export declare function h6(object?: ElementConstructorTagObject<'h6'>): ElementConstructor<"h6", HTMLHeadingElement>;
|
|
49
|
+
export declare function head(object?: ElementConstructorTagObject<'head'>): ElementConstructor<"head", HTMLHeadElement>;
|
|
50
|
+
export declare function header(object?: ElementConstructorTagObject<'header'>): ElementConstructor<"header", HTMLElement>;
|
|
51
|
+
export declare function hgroup(object?: ElementConstructorTagObject<'hgroup'>): ElementConstructor<"hgroup", HTMLElement>;
|
|
52
|
+
export declare function hr(object?: ElementConstructorTagObject<'hr'>): ElementConstructor<"hr", HTMLHRElement>;
|
|
53
|
+
export declare function html(object?: ElementConstructorTagObject<'html'>): ElementConstructor<"html", HTMLHtmlElement>;
|
|
54
|
+
export declare function i(object?: ElementConstructorTagObject<'i'>): ElementConstructor<"i", HTMLElement>;
|
|
55
|
+
export declare function iframe(object?: ElementConstructorTagObject<'iframe'>): ElementConstructor<"iframe", HTMLIFrameElement>;
|
|
56
|
+
export declare function img(object?: ElementConstructorTagObject<'img'>): ElementConstructor<"img", HTMLImageElement>;
|
|
57
|
+
export declare function input(object?: ElementConstructorTagObject<'input'>): ElementConstructor<"input", HTMLInputElement>;
|
|
58
|
+
export declare function ins(object?: ElementConstructorTagObject<'ins'>): ElementConstructor<"ins", HTMLModElement>;
|
|
59
|
+
export declare function kbd(object?: ElementConstructorTagObject<'kbd'>): ElementConstructor<"kbd", HTMLElement>;
|
|
60
|
+
export declare function label(object?: ElementConstructorTagObject<'label'>): ElementConstructor<"label", HTMLLabelElement>;
|
|
61
|
+
export declare function legend(object?: ElementConstructorTagObject<'legend'>): ElementConstructor<"legend", HTMLLegendElement>;
|
|
62
|
+
export declare function li(object?: ElementConstructorTagObject<'li'>): ElementConstructor<"li", HTMLLIElement>;
|
|
63
|
+
export declare function link(object?: ElementConstructorTagObject<'link'>): ElementConstructor<"link", HTMLLinkElement>;
|
|
64
|
+
export declare function main(object?: ElementConstructorTagObject<'main'>): ElementConstructor<"main", HTMLElement>;
|
|
65
|
+
export declare function map(object?: ElementConstructorTagObject<'map'>): ElementConstructor<"map", HTMLMapElement>;
|
|
66
|
+
export declare function mark(object?: ElementConstructorTagObject<'mark'>): ElementConstructor<"mark", HTMLElement>;
|
|
67
|
+
export declare function menu(object?: ElementConstructorTagObject<'menu'>): ElementConstructor<"menu", HTMLMenuElement>;
|
|
68
|
+
export declare function meta(object?: ElementConstructorTagObject<'meta'>): ElementConstructor<"meta", HTMLMetaElement>;
|
|
69
|
+
export declare function meter(object?: ElementConstructorTagObject<'meter'>): ElementConstructor<"meter", HTMLMeterElement>;
|
|
70
|
+
export declare function nav(object?: ElementConstructorTagObject<'nav'>): ElementConstructor<"nav", HTMLElement>;
|
|
71
|
+
export declare function noscript(object?: ElementConstructorTagObject<'noscript'>): ElementConstructor<"noscript", HTMLElement>;
|
|
72
|
+
export declare function object(object?: ElementConstructorTagObject<'object'>): ElementConstructor<"object", HTMLObjectElement>;
|
|
73
|
+
export declare function ol(object?: ElementConstructorTagObject<'ol'>): ElementConstructor<"ol", HTMLOListElement>;
|
|
74
|
+
export declare function optgroup(object?: ElementConstructorTagObject<'optgroup'>): ElementConstructor<"optgroup", HTMLOptGroupElement>;
|
|
75
|
+
export declare function option(object?: ElementConstructorTagObject<'option'>): ElementConstructor<"option", HTMLOptionElement>;
|
|
76
|
+
export declare function output(object?: ElementConstructorTagObject<'output'>): ElementConstructor<"output", HTMLOutputElement>;
|
|
77
|
+
export declare function p(object?: ElementConstructorTagObject<'p'>): ElementConstructor<"p", HTMLParagraphElement>;
|
|
78
|
+
export declare function picture(object?: ElementConstructorTagObject<'picture'>): ElementConstructor<"picture", HTMLPictureElement>;
|
|
79
|
+
export declare function pre(object?: ElementConstructorTagObject<'pre'>): ElementConstructor<"pre", HTMLPreElement>;
|
|
80
|
+
export declare function progress(object?: ElementConstructorTagObject<'progress'>): ElementConstructor<"progress", HTMLProgressElement>;
|
|
81
|
+
export declare function q(object?: ElementConstructorTagObject<'q'>): ElementConstructor<"q", HTMLQuoteElement>;
|
|
82
|
+
export declare function rp(object?: ElementConstructorTagObject<'rp'>): ElementConstructor<"rp", HTMLElement>;
|
|
83
|
+
export declare function rt(object?: ElementConstructorTagObject<'rt'>): ElementConstructor<"rt", HTMLElement>;
|
|
84
|
+
export declare function ruby(object?: ElementConstructorTagObject<'ruby'>): ElementConstructor<"ruby", HTMLElement>;
|
|
85
|
+
export declare function s(object?: ElementConstructorTagObject<'s'>): ElementConstructor<"s", HTMLElement>;
|
|
86
|
+
export declare function samp(object?: ElementConstructorTagObject<'samp'>): ElementConstructor<"samp", HTMLElement>;
|
|
87
|
+
export declare function script(object?: ElementConstructorTagObject<'script'>): ElementConstructor<"script", HTMLScriptElement & SVGScriptElement>;
|
|
88
|
+
export declare function search(object?: ElementConstructorTagObject<'search'>): ElementConstructor<"search", HTMLElement>;
|
|
89
|
+
export declare function section(object?: ElementConstructorTagObject<'section'>): ElementConstructor<"section", HTMLElement>;
|
|
90
|
+
export declare function select(object?: ElementConstructorTagObject<'select'>): ElementConstructor<"select", HTMLSelectElement>;
|
|
91
|
+
export declare function slot(object?: ElementConstructorTagObject<'slot'>): ElementConstructor<"slot", HTMLSlotElement>;
|
|
92
|
+
export declare function small(object?: ElementConstructorTagObject<'small'>): ElementConstructor<"small", HTMLElement>;
|
|
93
|
+
export declare function source(object?: ElementConstructorTagObject<'source'>): ElementConstructor<"source", HTMLSourceElement>;
|
|
94
|
+
export declare function span(object?: ElementConstructorTagObject<'span'>): ElementConstructor<"span", HTMLSpanElement>;
|
|
95
|
+
export declare function strong(object?: ElementConstructorTagObject<'strong'>): ElementConstructor<"strong", HTMLElement>;
|
|
96
|
+
export declare function style(object?: ElementConstructorJSS): ElementConstructor<"style", HTMLStyleElement & SVGStyleElement>;
|
|
97
|
+
export declare function sub(object?: ElementConstructorTagObject<'sub'>): ElementConstructor<"sub", HTMLElement>;
|
|
98
|
+
export declare function summary(object?: ElementConstructorTagObject<'summary'>): ElementConstructor<"summary", HTMLElement>;
|
|
99
|
+
export declare function sup(object?: ElementConstructorTagObject<'sup'>): ElementConstructor<"sup", HTMLElement>;
|
|
100
|
+
export declare function table(object?: ElementConstructorTagObject<'table'>): ElementConstructor<"table", HTMLTableElement>;
|
|
101
|
+
export declare function tbody(object?: ElementConstructorTagObject<'tbody'>): ElementConstructor<"tbody", HTMLTableSectionElement>;
|
|
102
|
+
export declare function td(object?: ElementConstructorTagObject<'td'>): ElementConstructor<"td", HTMLTableCellElement>;
|
|
103
|
+
export declare function template(object?: ElementConstructorTagObject<'template'>): ElementConstructor<"template", HTMLTemplateElement>;
|
|
104
|
+
export declare function textarea(object?: ElementConstructorTagObject<'textarea'>): ElementConstructor<"textarea", HTMLTextAreaElement>;
|
|
105
|
+
export declare function tfoot(object?: ElementConstructorTagObject<'tfoot'>): ElementConstructor<"tfoot", HTMLTableSectionElement>;
|
|
106
|
+
export declare function th(object?: ElementConstructorTagObject<'th'>): ElementConstructor<"th", HTMLTableCellElement>;
|
|
107
|
+
export declare function thead(object?: ElementConstructorTagObject<'thead'>): ElementConstructor<"thead", HTMLTableSectionElement>;
|
|
108
|
+
export declare function time(object?: ElementConstructorTagObject<'time'>): ElementConstructor<"time", HTMLTimeElement>;
|
|
109
|
+
export declare function title(object?: ElementConstructorTagObject<'title'>): ElementConstructor<"title", HTMLTitleElement & SVGTitleElement>;
|
|
110
|
+
export declare function tr(object?: ElementConstructorTagObject<'tr'>): ElementConstructor<"tr", HTMLTableRowElement>;
|
|
111
|
+
export declare function track(object?: ElementConstructorTagObject<'track'>): ElementConstructor<"track", HTMLTrackElement>;
|
|
112
|
+
export declare function u(object?: ElementConstructorTagObject<'u'>): ElementConstructor<"u", HTMLElement>;
|
|
113
|
+
export declare function ul(object?: ElementConstructorTagObject<'ul'>): ElementConstructor<"ul", HTMLUListElement>;
|
|
114
|
+
export declare function htmlVar(object?: ElementConstructorTagObject<'var'>): ElementConstructor<"var", HTMLElement>;
|
|
115
|
+
export declare function video(object?: ElementConstructorTagObject<'video'>): ElementConstructor<"video", HTMLVideoElement>;
|
|
116
|
+
export declare function wbr(object?: ElementConstructorTagObject<'wbr'>): ElementConstructor<"wbr", HTMLElement>;
|
|
117
|
+
export declare function fragment(object?: ElementConstructorTagObject<Node>): ElementConstructor<Node, Node>;
|
|
118
|
+
export declare function empty(object?: ElementConstructorTagObject<Node>): ElementConstructor<Node, Node>;
|
|
119
|
+
export declare function contents(object?: ElementConstructorTagObject<'div'>): ElementConstructor<"div", HTMLDivElement>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function t(e){e.dispatchEvent(new CustomEvent("sizeChange",{bubbles:!0,composed:!0}))}exports.dispatchSizeChangeEvent=t;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";var I=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)};var z=(t,e,s)=>(I(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)=>(I(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-D0_rDIsE.cjs");const M=require("./browser-CpzFX2xg.cjs"),Y=require("./events-Crwi8fz6.cjs"),Z=require("./style-At6aDoqG.cjs"),a=require("./tags-pcim-Cws.cjs"),P=require("./createStylesheet-BsVHqHhr.cjs"),_=require("./theme/index.cjs");var F=Object.defineProperty,J=Object.getOwnPropertyDescriptor,Q=(t,e,s)=>e in t?F(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,V=(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&&F(e,s,n),n},X=(t,e,s)=>(Q(t,typeof e!="symbol"?e+"":e,s),s),q=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)},r=(t,e,s)=>(q(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)=>(q(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s),B=(t,e,s)=>(q(t,e,"access private method"),s),S,y,o,v,u,f,b,C,L;const j=P.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, ${_.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,S,null),c(this,y,""),c(this,o,null),c(this,v,!1),c(this,u,void 0),c(this,f,null),c(this,b,()=>{Y.dispatchSizeChangeEvent(this)}),M.isBrowser&&(this.openShadow(j),d(this,S,this.attachInternals()),d(this,f,new ResizeObserver(r(this,b))),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,y)}set value(e){d(this,y,e),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}get internals(){return r(this,S)}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",B(this,C,L).call(this)},0)}close(){d(this,v,!1),r(this,o).style.height="0px",this.classList.remove("opened"),B(this,C,L).call(this),d(this,u,setTimeout(()=>{this.classList.remove("triggered"),r(this,o).style.display="none"},Z.getElementTransitionDurationMS(r(this,o))))}connectedCallback(){r(this,f).observe(r(this,o))}disconnectedCallback(){clearTimeout(r(this,u)),r(this,f).disconnect()}};S=new WeakMap;y=new WeakMap;o=new WeakMap;v=new WeakMap;u=new WeakMap;f=new WeakMap;b=new WeakMap;C=new WeakSet;L=function(){this.dispatchEvent(new CustomEvent("selectToggle",{bubbles:!0,composed:!0,detail:{opened:r(this,v)}}))};X(exports.SelectElement,"formAssociated",!0);exports.SelectElement=V([E.define("e-select")],exports.SelectElement);var w;class D extends E.CustomElement{constructor(){super(...arguments);A(this,w,null)}get selectElement(){return z(this,w)}connectedCallback(){var i,n;const s=(n=(i=this.assignedSlot)==null?void 0:i.getRootNode())==null?void 0:n.host;s?H(this,w,s):console.log(this,"e-select not found")}}w=new WeakMap;var ee=Object.defineProperty,te=Object.getOwnPropertyDescriptor,se=(t,e,s,i)=>{for(var n=i>1?void 0:i?te(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&&ee(e,s,n),n},N=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)},O=(t,e,s)=>(N(t,e,"read from private field"),s?s.call(t):e.get(t)),G=(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)},R=(t,e,s)=>(N(t,e,"access private method"),s),m,T,W;const ie=P.createStylesheet({":host":{width:"100%",height:_.aptechkaTheme.heightInput.var,display:"inline-flex",alignItems:"center"}});exports.SelectOptionElement=class extends D{constructor(){super(),G(this,T),G(this,m,()=>{this.selectElement.value===this.value?this.style.display="none":this.style.display=""}),M.isBrowser&&(this.openShadow(ie),a.element(this,{tabIndex:"0",onClick:()=>{R(this,T,W).call(this)},onKeydown:e=>{e.code==="Space"&&R(this,T,W).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",O(this,m)),setTimeout(()=>{O(this,m).call(this)})}disconnectedCallback(){this.selectElement.removeEventListener("change",O(this,m))}};m=new WeakMap;T=new WeakSet;W=function(){this.selectElement.value=this.value,this.selectElement.close()};exports.SelectOptionElement=se([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 ne=Object.defineProperty,re=Object.getOwnPropertyDescriptor,ae=(t,e,s,i)=>{for(var n=i>1?void 0:i?re(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&&ne(e,s,n),n},K=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)},p=(t,e,s)=>(K(t,e,"read from private field"),s?s.call(t):e.get(t)),$=(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)},le=(t,e,s,i)=>(K(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s),k,g,x;const he=P.createStylesheet({":host":{width:"100%",height:_.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, ${_.aptechkaTheme.colorDark.var})`,transitionProperty:"transform",transitionDuration:`var(--duration, ${_.aptechkaTheme.durationShort.var})`},":host(.opened) .default-arrow":{transform:"scaleY(-1)"}});exports.SelectHeadElement=class extends D{constructor(){super(),$(this,k,null),$(this,g,()=>{const s=this.selectElement.shadowRoot.querySelector(".body slot").assignedElements().find(i=>i.value===this.selectElement.value);s&&(p(this,k).innerHTML=s.innerHTML)}),$(this,x,()=>{this.classList.toggle("opened",this.selectElement.opened)}),M.isBrowser&&(this.openShadow(he),a.element(this,{children:[a.slot(),a.slot({name:"arrow",children:a.element(U,{class:"default-arrow"})})]}),this.slot="head")}connectedCallback(){super.connectedCallback(),le(this,k,this.querySelector("[data-value-holder]")||this),this.selectElement.addEventListener("change",p(this,g)),p(this,g).call(this),this.selectElement.addEventListener("selectToggle",p(this,x))}disconnectedCallback(){this.selectElement.removeEventListener("change",p(this,g)),this.selectElement.removeEventListener("selectToggle",p(this,x))}};k=new WeakMap;g=new WeakMap;x=new WeakMap;exports.SelectHeadElement=ae([E.define("e-select-head")],exports.SelectHeadElement);exports.SelectUserElement=D;exports.arrowIcon=U;
|
|
@@ -7,27 +7,27 @@ var H = (t, e, s) => (I(t, e, "read from private field"), s ? s.call(t) : e.get(
|
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
8
|
e instanceof WeakSet ? e.add(t) : e.set(t, s);
|
|
9
9
|
}, R = (t, e, s, i) => (I(t, e, "write to private field"), i ? i.call(t, s) : e.set(t, s), s);
|
|
10
|
-
import { CustomElement as
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
10
|
+
import { CustomElement as Y, define as P } from "./custom-element/index.js";
|
|
11
|
+
import "./Store-JOKrNVEr.js";
|
|
12
|
+
import { i as D } from "./browser-0zX67oeU.js";
|
|
13
|
+
import { d as X } from "./events-_C2CztxR.js";
|
|
14
|
+
import { g as j } from "./style-j2TwriJ_.js";
|
|
15
|
+
import { e as $, p as ee, ay as _, D as q } from "./tags-8Y7LSTwg.js";
|
|
16
|
+
import { c as z } from "./createStylesheet-ITfBHk7A.js";
|
|
17
17
|
import { aptechkaTheme as m } from "./theme/index.js";
|
|
18
|
-
var
|
|
19
|
-
for (var
|
|
20
|
-
(l = t[n]) && (
|
|
21
|
-
return i &&
|
|
22
|
-
},
|
|
18
|
+
var Z = Object.defineProperty, te = Object.getOwnPropertyDescriptor, se = (t, e, s) => e in t ? Z(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, ie = (t, e, s, i) => {
|
|
19
|
+
for (var r = i > 1 ? void 0 : i ? te(e, s) : e, n = t.length - 1, l; n >= 0; n--)
|
|
20
|
+
(l = t[n]) && (r = (i ? l(e, s, r) : l(r)) || r);
|
|
21
|
+
return i && r && Z(e, s, r), r;
|
|
22
|
+
}, re = (t, e, s) => (se(t, typeof e != "symbol" ? e + "" : e, s), s), A = (t, e, s) => {
|
|
23
23
|
if (!e.has(t))
|
|
24
24
|
throw TypeError("Cannot " + s);
|
|
25
|
-
},
|
|
25
|
+
}, a = (t, e, s) => (A(t, e, "read from private field"), s ? s.call(t) : e.get(t)), h = (t, e, s) => {
|
|
26
26
|
if (e.has(t))
|
|
27
27
|
throw TypeError("Cannot add the same private member more than once");
|
|
28
28
|
e instanceof WeakSet ? e.add(t) : e.set(t, s);
|
|
29
29
|
}, c = (t, e, s, i) => (A(t, e, "write to private field"), i ? i.call(t, s) : e.set(t, s), s), B = (t, e, s) => (A(t, e, "access private method"), s), E, y, o, p, v, u, L, C, O;
|
|
30
|
-
const
|
|
30
|
+
const ae = z({
|
|
31
31
|
":host": {
|
|
32
32
|
position: "relative"
|
|
33
33
|
},
|
|
@@ -62,19 +62,17 @@ const re = D({
|
|
|
62
62
|
paddingTop: "var(--gap, 0px)"
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
|
-
let W = class extends
|
|
65
|
+
let W = class extends Y {
|
|
66
66
|
constructor() {
|
|
67
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
|
-
|
|
69
|
-
}),
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
X(this);
|
|
69
|
+
}), D && (this.openShadow(ae), c(this, E, this.attachInternals()), c(this, u, new ResizeObserver(a(this, L))), $(this, {
|
|
70
|
+
children: [
|
|
71
|
+
ee({
|
|
72
72
|
class: "head",
|
|
73
|
-
children:
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
this.opened ? this.close() : this.open();
|
|
77
|
-
}
|
|
73
|
+
children: _({ name: "head" }),
|
|
74
|
+
onClick: () => {
|
|
75
|
+
this.opened ? this.close() : this.open();
|
|
78
76
|
}
|
|
79
77
|
}),
|
|
80
78
|
q({
|
|
@@ -84,7 +82,7 @@ let W = class extends Z {
|
|
|
84
82
|
},
|
|
85
83
|
children: q({
|
|
86
84
|
class: "body-inner",
|
|
87
|
-
children:
|
|
85
|
+
children: _()
|
|
88
86
|
}),
|
|
89
87
|
ref: (t) => {
|
|
90
88
|
c(this, o, t);
|
|
@@ -94,7 +92,7 @@ let W = class extends Z {
|
|
|
94
92
|
}));
|
|
95
93
|
}
|
|
96
94
|
get value() {
|
|
97
|
-
return
|
|
95
|
+
return a(this, y);
|
|
98
96
|
}
|
|
99
97
|
set value(t) {
|
|
100
98
|
c(this, y, t), this.dispatchEvent(
|
|
@@ -105,26 +103,26 @@ let W = class extends Z {
|
|
|
105
103
|
);
|
|
106
104
|
}
|
|
107
105
|
get internals() {
|
|
108
|
-
return
|
|
106
|
+
return a(this, E);
|
|
109
107
|
}
|
|
110
108
|
get opened() {
|
|
111
|
-
return
|
|
109
|
+
return a(this, p);
|
|
112
110
|
}
|
|
113
111
|
open() {
|
|
114
|
-
clearTimeout(
|
|
115
|
-
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", B(this, C, O).call(this);
|
|
116
114
|
}, 0);
|
|
117
115
|
}
|
|
118
116
|
close() {
|
|
119
|
-
c(this, p, !1),
|
|
120
|
-
this.classList.remove("triggered"),
|
|
121
|
-
},
|
|
117
|
+
c(this, p, !1), a(this, o).style.height = "0px", this.classList.remove("opened"), B(this, C, O).call(this), c(this, v, setTimeout(() => {
|
|
118
|
+
this.classList.remove("triggered"), a(this, o).style.display = "none";
|
|
119
|
+
}, j(a(this, o))));
|
|
122
120
|
}
|
|
123
121
|
connectedCallback() {
|
|
124
|
-
|
|
122
|
+
a(this, u).observe(a(this, o));
|
|
125
123
|
}
|
|
126
124
|
disconnectedCallback() {
|
|
127
|
-
clearTimeout(
|
|
125
|
+
clearTimeout(a(this, v)), a(this, u).disconnect();
|
|
128
126
|
}
|
|
129
127
|
};
|
|
130
128
|
E = /* @__PURE__ */ new WeakMap();
|
|
@@ -137,48 +135,48 @@ L = /* @__PURE__ */ new WeakMap();
|
|
|
137
135
|
C = /* @__PURE__ */ new WeakSet();
|
|
138
136
|
O = function() {
|
|
139
137
|
this.dispatchEvent(
|
|
140
|
-
new CustomEvent("
|
|
138
|
+
new CustomEvent("selectToggle", {
|
|
141
139
|
bubbles: !0,
|
|
142
140
|
composed: !0,
|
|
143
141
|
detail: {
|
|
144
|
-
opened:
|
|
142
|
+
opened: a(this, p)
|
|
145
143
|
}
|
|
146
144
|
})
|
|
147
145
|
);
|
|
148
146
|
};
|
|
149
|
-
|
|
147
|
+
re(W, "formAssociated", !0);
|
|
150
148
|
W = ie([
|
|
151
149
|
P("e-select")
|
|
152
150
|
], W);
|
|
153
|
-
var
|
|
154
|
-
class
|
|
151
|
+
var w;
|
|
152
|
+
class J extends Y {
|
|
155
153
|
constructor() {
|
|
156
154
|
super(...arguments);
|
|
157
|
-
G(this,
|
|
155
|
+
G(this, w, null);
|
|
158
156
|
}
|
|
159
157
|
get selectElement() {
|
|
160
|
-
return H(this,
|
|
158
|
+
return H(this, w);
|
|
161
159
|
}
|
|
162
160
|
connectedCallback() {
|
|
163
|
-
var i,
|
|
164
|
-
const s = (
|
|
165
|
-
s ? R(this,
|
|
161
|
+
var i, r;
|
|
162
|
+
const s = (r = (i = this.assignedSlot) == null ? void 0 : i.getRootNode()) == null ? void 0 : r.host;
|
|
163
|
+
s ? R(this, w, s) : console.log(this, "e-select not found");
|
|
166
164
|
}
|
|
167
165
|
}
|
|
168
|
-
|
|
166
|
+
w = new WeakMap();
|
|
169
167
|
var ne = Object.defineProperty, le = Object.getOwnPropertyDescriptor, oe = (t, e, s, i) => {
|
|
170
|
-
for (var
|
|
171
|
-
(l = t[n]) && (
|
|
172
|
-
return i &&
|
|
168
|
+
for (var r = i > 1 ? void 0 : i ? le(e, s) : e, n = t.length - 1, l; n >= 0; n--)
|
|
169
|
+
(l = t[n]) && (r = (i ? l(e, s, r) : l(r)) || r);
|
|
170
|
+
return i && r && ne(e, s, r), r;
|
|
173
171
|
}, Q = (t, e, s) => {
|
|
174
172
|
if (!e.has(t))
|
|
175
173
|
throw TypeError("Cannot " + s);
|
|
176
|
-
},
|
|
174
|
+
}, b = (t, e, s) => (Q(t, e, "read from private field"), s ? s.call(t) : e.get(t)), F = (t, e, s) => {
|
|
177
175
|
if (e.has(t))
|
|
178
176
|
throw TypeError("Cannot add the same private member more than once");
|
|
179
177
|
e instanceof WeakSet ? e.add(t) : e.set(t, s);
|
|
180
178
|
}, N = (t, e, s) => (Q(t, e, "access private method"), s), f, S, M;
|
|
181
|
-
const he =
|
|
179
|
+
const he = z({
|
|
182
180
|
":host": {
|
|
183
181
|
width: "100%",
|
|
184
182
|
height: m.heightInput.var,
|
|
@@ -186,35 +184,31 @@ const he = D({
|
|
|
186
184
|
alignItems: "center"
|
|
187
185
|
}
|
|
188
186
|
});
|
|
189
|
-
let
|
|
187
|
+
let K = class extends J {
|
|
190
188
|
constructor() {
|
|
191
189
|
super(), F(this, S), F(this, f, () => {
|
|
192
190
|
this.selectElement.value === this.value ? this.style.display = "none" : this.style.display = "";
|
|
193
|
-
}),
|
|
194
|
-
|
|
195
|
-
|
|
191
|
+
}), D && (this.openShadow(he), $(this, {
|
|
192
|
+
tabIndex: "0",
|
|
193
|
+
onClick: () => {
|
|
194
|
+
N(this, S, M).call(this);
|
|
196
195
|
},
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
N(this, S, M).call(this);
|
|
200
|
-
},
|
|
201
|
-
keydown: (t) => {
|
|
202
|
-
t.code === "Space" && N(this, S, M).call(this);
|
|
203
|
-
}
|
|
196
|
+
onKeydown: (t) => {
|
|
197
|
+
t.code === "Space" && N(this, S, M).call(this);
|
|
204
198
|
},
|
|
205
|
-
|
|
199
|
+
children: [_()]
|
|
206
200
|
}));
|
|
207
201
|
}
|
|
208
202
|
get value() {
|
|
209
203
|
return (this.hasAttribute("value") ? this.getAttribute("value") : this.innerText) || "";
|
|
210
204
|
}
|
|
211
205
|
connectedCallback() {
|
|
212
|
-
super.connectedCallback(), this.hasAttribute("default") && (this.selectElement.value || (this.selectElement.value = this.value)), this.selectElement.addEventListener("change",
|
|
213
|
-
|
|
206
|
+
super.connectedCallback(), this.hasAttribute("default") && (this.selectElement.value || (this.selectElement.value = this.value)), this.selectElement.addEventListener("change", b(this, f)), setTimeout(() => {
|
|
207
|
+
b(this, f).call(this);
|
|
214
208
|
});
|
|
215
209
|
}
|
|
216
210
|
disconnectedCallback() {
|
|
217
|
-
this.selectElement.removeEventListener("change",
|
|
211
|
+
this.selectElement.removeEventListener("change", b(this, f));
|
|
218
212
|
}
|
|
219
213
|
};
|
|
220
214
|
f = /* @__PURE__ */ new WeakMap();
|
|
@@ -222,9 +216,9 @@ S = /* @__PURE__ */ new WeakSet();
|
|
|
222
216
|
M = function() {
|
|
223
217
|
this.selectElement.value = this.value, this.selectElement.close();
|
|
224
218
|
};
|
|
225
|
-
|
|
219
|
+
K = oe([
|
|
226
220
|
P("e-select-option")
|
|
227
|
-
],
|
|
221
|
+
], K);
|
|
228
222
|
const ce = `<svg
|
|
229
223
|
xmlns="http://www.w3.org/2000/svg"
|
|
230
224
|
width="32"
|
|
@@ -235,9 +229,9 @@ const ce = `<svg
|
|
|
235
229
|
</svg>
|
|
236
230
|
`;
|
|
237
231
|
var de = Object.defineProperty, pe = Object.getOwnPropertyDescriptor, ve = (t, e, s, i) => {
|
|
238
|
-
for (var
|
|
239
|
-
(l = t[n]) && (
|
|
240
|
-
return i &&
|
|
232
|
+
for (var r = i > 1 ? void 0 : i ? pe(e, s) : e, n = t.length - 1, l; n >= 0; n--)
|
|
233
|
+
(l = t[n]) && (r = (i ? l(e, s, r) : l(r)) || r);
|
|
234
|
+
return i && r && de(e, s, r), r;
|
|
241
235
|
}, V = (t, e, s) => {
|
|
242
236
|
if (!e.has(t))
|
|
243
237
|
throw TypeError("Cannot " + s);
|
|
@@ -245,8 +239,8 @@ var de = Object.defineProperty, pe = Object.getOwnPropertyDescriptor, ve = (t, e
|
|
|
245
239
|
if (e.has(t))
|
|
246
240
|
throw TypeError("Cannot add the same private member more than once");
|
|
247
241
|
e instanceof WeakSet ? e.add(t) : e.set(t, s);
|
|
248
|
-
}, ue = (t, e, s, i) => (V(t, e, "write to private field"), i ? i.call(t, s) : e.set(t, s), s),
|
|
249
|
-
const fe =
|
|
242
|
+
}, ue = (t, e, s, i) => (V(t, e, "write to private field"), i ? i.call(t, s) : e.set(t, s), s), T, g, x;
|
|
243
|
+
const fe = z({
|
|
250
244
|
":host": {
|
|
251
245
|
width: "100%",
|
|
252
246
|
height: m.heightInput.var,
|
|
@@ -266,45 +260,42 @@ const fe = D({
|
|
|
266
260
|
transform: "scaleY(-1)"
|
|
267
261
|
}
|
|
268
262
|
});
|
|
269
|
-
let
|
|
263
|
+
let U = class extends J {
|
|
270
264
|
constructor() {
|
|
271
|
-
super(), k(this,
|
|
265
|
+
super(), k(this, T, null), k(this, g, () => {
|
|
272
266
|
const e = this.selectElement.shadowRoot.querySelector(
|
|
273
267
|
".body slot"
|
|
274
268
|
).assignedElements().find((s) => s.value === this.selectElement.value);
|
|
275
|
-
e && (d(this,
|
|
269
|
+
e && (d(this, T).innerHTML = e.innerHTML);
|
|
276
270
|
}), k(this, x, () => {
|
|
277
271
|
this.classList.toggle("opened", this.selectElement.opened);
|
|
278
|
-
}),
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
272
|
+
}), D && (this.openShadow(fe), $(this, {
|
|
273
|
+
children: [
|
|
274
|
+
_(),
|
|
275
|
+
_({
|
|
276
|
+
name: "arrow",
|
|
283
277
|
children: $(ce, { class: "default-arrow" })
|
|
284
278
|
})
|
|
285
279
|
]
|
|
286
280
|
}), this.slot = "head");
|
|
287
281
|
}
|
|
288
282
|
connectedCallback() {
|
|
289
|
-
super.connectedCallback(), ue(this,
|
|
283
|
+
super.connectedCallback(), ue(this, T, this.querySelector("[data-value-holder]") || this), this.selectElement.addEventListener("change", d(this, g)), d(this, g).call(this), this.selectElement.addEventListener("selectToggle", d(this, x));
|
|
290
284
|
}
|
|
291
285
|
disconnectedCallback() {
|
|
292
|
-
this.selectElement.removeEventListener("change", d(this, g)), this.selectElement.removeEventListener(
|
|
293
|
-
"e-select-toggle",
|
|
294
|
-
d(this, x)
|
|
295
|
-
);
|
|
286
|
+
this.selectElement.removeEventListener("change", d(this, g)), this.selectElement.removeEventListener("selectToggle", d(this, x));
|
|
296
287
|
}
|
|
297
288
|
};
|
|
298
|
-
|
|
289
|
+
T = /* @__PURE__ */ new WeakMap();
|
|
299
290
|
g = /* @__PURE__ */ new WeakMap();
|
|
300
291
|
x = /* @__PURE__ */ new WeakMap();
|
|
301
|
-
|
|
292
|
+
U = ve([
|
|
302
293
|
P("e-select-head")
|
|
303
|
-
],
|
|
294
|
+
], U);
|
|
304
295
|
export {
|
|
305
296
|
W as S,
|
|
306
297
|
ce as a,
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
298
|
+
J as b,
|
|
299
|
+
K as c,
|
|
300
|
+
U as d
|
|
310
301
|
};
|
package/lib/modal/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("../custom-element/index.cjs")
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("../custom-element/index.cjs");require("../Store-D0_rDIsE.cjs");const b=require("../browser-CpzFX2xg.cjs"),s=require("../tags-pcim-Cws.cjs"),m=require("../createStylesheet-BsVHqHhr.cjs"),g=require("../popover/index.cjs"),d=require("../theme/index.cjs");var w=Object.defineProperty,_=Object.getOwnPropertyDescriptor,y=(t,e,o,r)=>{for(var n=r>1?void 0:r?_(e,o):e,c=t.length-1,h;c>=0;c--)(h=t[c])&&(n=(r?h(e,o,n):h(n))||n);return r&&n&&w(e,o,n),n},p=(t,e,o)=>{if(!e.has(t))throw TypeError("Cannot "+o)},l=(t,e,o)=>(p(t,e,"read from private field"),o?o.call(t):e.get(t)),u=(t,e,o)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,o)},f=(t,e,o,r)=>(p(t,e,"write to private field"),r?r.call(t,o):e.set(t,o),o),i,a;const C=m.createStylesheet({":host":{position:"fixed",top:"0",left:"0",zIndex:"1",width:"100%",height:"100%",transitionProperty:"opacity",transitionDuration:d.aptechkaTheme.durationShort.var},":host::before":{content:'""',position:"fixed",top:"0",left:"0",zIndex:"-1",width:"100%",height:"100%",backgroundColor:"var(--backdrop, rgba(0, 0, 0, 0.8))"},".inner":{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden auto"},".overflow .inner":{alignItems:"flex-start"},".content":{position:"relative"},".close-button":{position:"absolute",top:"var(---close-button-top, 0.5em)",right:"var(---close-button-right, 0.5em)",background:"none",border:"none",fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit"},".close-button-default":{width:"var(---close-button-size, 1.5em)",height:"var(---close-button-size, 1.5em)",display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"transform",transitionDuration:d.aptechkaTheme.durationShort.var,willChange:"transform"},".close-button:hover .close-button-default":{transform:"scale(0.9)"},".close-button:active .close-button-default":{transform:"scale(0.7)"},".close-button-default::before, .close-button-default::after":{content:'""',position:"absolute",width:"var(---close-button-thickness, 0.1em)",height:"100%",backgroundColor:`var(--close-button-color, ${d.aptechkaTheme.colorDark.var})`},".close-button-default::before":{transform:"rotate(-45deg)"},".close-button-default::after":{transform:"rotate(45deg)"}});exports.ModalElement=class extends g.PopoverElement{constructor(){super(),u(this,i,null),u(this,a,null),b.isBrowser&&(this.openShadow(C),s.element(this,{children:s.div({class:"inner",outside:!0,children:s.div({class:"content",children:[s.element("e-popover-button",{type:"close",target:this.id,class:"close-button",children:[s.slot({name:"close-button",children:s.span({class:"close-button-default"})})]}),s.slot()]}),ref:e=>f(this,a,e)})}),f(this,i,new ResizeObserver(()=>{l(this,a).scrollHeight>l(this,a).clientHeight?this.classList.add("overflow"):this.classList.remove("overflow")})))}connectedCallback(){super.connectedCallback(),l(this,i).observe(this)}disconnectedCallback(){super.disconnectedCallback(),l(this,i).disconnect()}};i=new WeakMap;a=new WeakMap;exports.ModalElement=y([v.define("e-modal")],exports.ModalElement);
|