@proximus/lavender-input 1.0.0-alpha.11
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/dist/index.js +407 -0
- package/package.json +43 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,407 @@
|
|
|
1
|
+
const y = "::slotted(*[grow]){flex-grow:var(--flex-grow-value)}::slotted(*[shrink]){flex-shrink:var(--flex-shrink-value)}::slotted(*[basis]){flex-basis:var(--flex-basis-value)}::slotted(*[align-self]){align-self:var(--flex-align-self-value)}::slotted(*[grow-mobile]){flex-grow:var(--flex-grow-mobile-value)}::slotted(*[shrink-mobile]){flex-shrink:var(--flex-shrink-mobile-value)}::slotted(*[basis-mobile]){flex-basis:var(--flex-basis-mobile-value)}::slotted(*[align-self-mobile]){align-self:var(--flex-align-self-mobile-value)}@media screen and (min-width: 768px){::slotted(*[grow-tablet]){flex-grow:var(--flex-grow-tablet-value)}::slotted(*[shrink-tablet]){flex-shrink:var(--flex-shrink-tablet-value)}::slotted(*[basis-tablet]){flex-basis:var(--flex-basis-tablet-value)}::slotted(*[align-self-tablet]){align-self:var(--flex-align-self-tablet-value)}}@media screen and (min-width: 1025px){::slotted(*[grow-laptop]){flex-grow:var(--flex-grow-laptop-value)}::slotted(*[shrink-laptop]){flex-shrink:var(--flex-shrink-laptop-value)}::slotted(*[basis-laptop]){flex-basis:var(--flex-basis-laptop-value)}::slotted(*[align-self-laptop]){align-self:var(--flex-align-self-laptop-value)}}@media screen and (min-width: 1441px){::slotted(*[grow-desktop]){flex-grow:var(--flex-grow-desktop-value)}::slotted(*[shrink-desktop]){flex-shrink:var(--flex-shrink-desktop-value)}::slotted(*[basis-desktop]){flex-basis:var(--flex-basis-desktop-value)}::slotted(*[align-self-desktop]){align-self:var(--flex-align-self-desktop-value)}}@media only screen and (min-width: 0px) and (max-width: 767px){::slotted(*[hidden-mobile]){display:none}}@media only screen and (min-width: 768px) and (max-width: 1024px){::slotted(*[hidden-tablet]){display:none}}@media only screen and (min-width: 1025px) and (max-width: 1440px){::slotted(*[hidden-laptop]){display:none}}@media only screen and (min-width: 1441px){::slotted(*[hidden-desktop]){display:none}}";
|
|
2
|
+
function g(r) {
|
|
3
|
+
const e = document.createElement(r), t = Object.getPrototypeOf(e);
|
|
4
|
+
return Object.getOwnPropertyNames(t);
|
|
5
|
+
}
|
|
6
|
+
const f = new CSSStyleSheet();
|
|
7
|
+
f.replaceSync(y);
|
|
8
|
+
class l extends HTMLElement {
|
|
9
|
+
static get observedAttributes() {
|
|
10
|
+
return [
|
|
11
|
+
"grow",
|
|
12
|
+
"grow-tablet",
|
|
13
|
+
"grow-laptop",
|
|
14
|
+
"grow-desktop",
|
|
15
|
+
"shrink",
|
|
16
|
+
"shrink-mobile",
|
|
17
|
+
"shrink-tablet",
|
|
18
|
+
"shrink-laptop",
|
|
19
|
+
"shrink-desktop",
|
|
20
|
+
"basis",
|
|
21
|
+
"basis-mobile",
|
|
22
|
+
"basis-tablet",
|
|
23
|
+
"basis-laptop",
|
|
24
|
+
"basis-desktop",
|
|
25
|
+
"align-self",
|
|
26
|
+
"hidden-mobile",
|
|
27
|
+
"hidden-tablet",
|
|
28
|
+
"hidden-laptop",
|
|
29
|
+
"hidden-desktop"
|
|
30
|
+
];
|
|
31
|
+
}
|
|
32
|
+
constructor(...e) {
|
|
33
|
+
super(), this.shadowRoot || this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [
|
|
34
|
+
f,
|
|
35
|
+
...e
|
|
36
|
+
];
|
|
37
|
+
}
|
|
38
|
+
attributeChangedCallback(e, t, i) {
|
|
39
|
+
if (l.observedAttributes.indexOf(e) !== -1)
|
|
40
|
+
if (i === null)
|
|
41
|
+
this.style.removeProperty(e);
|
|
42
|
+
else
|
|
43
|
+
switch (e) {
|
|
44
|
+
case "grow":
|
|
45
|
+
case "shrink":
|
|
46
|
+
case "basis":
|
|
47
|
+
case "grow-mobile":
|
|
48
|
+
case "grow-tablet":
|
|
49
|
+
case "grow-laptop":
|
|
50
|
+
case "grow-desktop":
|
|
51
|
+
case "shrink-mobile":
|
|
52
|
+
case "shrink-tablet":
|
|
53
|
+
case "shrink-laptop":
|
|
54
|
+
case "shrink-desktop":
|
|
55
|
+
case "basis-mobile":
|
|
56
|
+
case "basis-tablet":
|
|
57
|
+
case "basis-laptop":
|
|
58
|
+
case "basis-desktop":
|
|
59
|
+
case "align-self":
|
|
60
|
+
this.style.setProperty(`--flex-${e}-value`, i);
|
|
61
|
+
break;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
get grow() {
|
|
65
|
+
return this.getAttribute("grow");
|
|
66
|
+
}
|
|
67
|
+
set grow(e) {
|
|
68
|
+
this.setAttribute("grow", e);
|
|
69
|
+
}
|
|
70
|
+
get shrink() {
|
|
71
|
+
return this.getAttribute("shrink");
|
|
72
|
+
}
|
|
73
|
+
set shrink(e) {
|
|
74
|
+
this.setAttribute("shrink", e);
|
|
75
|
+
}
|
|
76
|
+
get basis() {
|
|
77
|
+
return this.getAttribute("basis");
|
|
78
|
+
}
|
|
79
|
+
set basis(e) {
|
|
80
|
+
this.setAttribute("basis", e);
|
|
81
|
+
}
|
|
82
|
+
get growMobile() {
|
|
83
|
+
return this.getAttribute("grow-mobile");
|
|
84
|
+
}
|
|
85
|
+
set growMobile(e) {
|
|
86
|
+
this.setAttribute("grow-mobile", e);
|
|
87
|
+
}
|
|
88
|
+
get growTablet() {
|
|
89
|
+
return this.getAttribute("grow-tablet");
|
|
90
|
+
}
|
|
91
|
+
set growTablet(e) {
|
|
92
|
+
this.setAttribute("grow-tablet", e);
|
|
93
|
+
}
|
|
94
|
+
get growLaptop() {
|
|
95
|
+
return this.getAttribute("grow-laptop");
|
|
96
|
+
}
|
|
97
|
+
set growLaptop(e) {
|
|
98
|
+
this.setAttribute("grow-laptop", e);
|
|
99
|
+
}
|
|
100
|
+
get growDesktop() {
|
|
101
|
+
return this.getAttribute("grow-desktop");
|
|
102
|
+
}
|
|
103
|
+
set growDesktop(e) {
|
|
104
|
+
this.setAttribute("grow-desktop", e);
|
|
105
|
+
}
|
|
106
|
+
get shrinkMobile() {
|
|
107
|
+
return this.getAttribute("shrink-mobile");
|
|
108
|
+
}
|
|
109
|
+
set shrinkMobile(e) {
|
|
110
|
+
this.setAttribute("shrink-mobile", e);
|
|
111
|
+
}
|
|
112
|
+
get shrinkTablet() {
|
|
113
|
+
return this.getAttribute("shrink-tablet");
|
|
114
|
+
}
|
|
115
|
+
set shrinkTablet(e) {
|
|
116
|
+
this.setAttribute("shrink-tablet", e);
|
|
117
|
+
}
|
|
118
|
+
get shrinkLaptop() {
|
|
119
|
+
return this.getAttribute("shrink-laptop");
|
|
120
|
+
}
|
|
121
|
+
set shrinkLaptop(e) {
|
|
122
|
+
this.setAttribute("shrink-laptop", e);
|
|
123
|
+
}
|
|
124
|
+
get shrinkDesktop() {
|
|
125
|
+
return this.getAttribute("shrink-desktop");
|
|
126
|
+
}
|
|
127
|
+
set shrinkDesktop(e) {
|
|
128
|
+
this.setAttribute("shrink-desktop", e);
|
|
129
|
+
}
|
|
130
|
+
get basisMobile() {
|
|
131
|
+
return this.getAttribute("basis-mobile");
|
|
132
|
+
}
|
|
133
|
+
set basisMobile(e) {
|
|
134
|
+
this.setAttribute("basis-mobile", e);
|
|
135
|
+
}
|
|
136
|
+
get basisTablet() {
|
|
137
|
+
return this.getAttribute("basis-tablet");
|
|
138
|
+
}
|
|
139
|
+
set basisTablet(e) {
|
|
140
|
+
this.setAttribute("basis-tablet", e);
|
|
141
|
+
}
|
|
142
|
+
get basisLaptop() {
|
|
143
|
+
return this.getAttribute("basis-laptop");
|
|
144
|
+
}
|
|
145
|
+
set basisLaptop(e) {
|
|
146
|
+
this.setAttribute("basis-laptop", e);
|
|
147
|
+
}
|
|
148
|
+
get basisDesktop() {
|
|
149
|
+
return this.getAttribute("basis-desktop");
|
|
150
|
+
}
|
|
151
|
+
set basisDesktop(e) {
|
|
152
|
+
this.setAttribute("basis-desktop", e);
|
|
153
|
+
}
|
|
154
|
+
get alignSelf() {
|
|
155
|
+
return this.getAttribute("align-self");
|
|
156
|
+
}
|
|
157
|
+
set alignSelf(e) {
|
|
158
|
+
this.setAttribute("align-self", e);
|
|
159
|
+
}
|
|
160
|
+
get $el() {
|
|
161
|
+
return this;
|
|
162
|
+
}
|
|
163
|
+
get hiddenMobile() {
|
|
164
|
+
return this.getAttribute("hidden-mobile");
|
|
165
|
+
}
|
|
166
|
+
set hiddenMobile(e) {
|
|
167
|
+
this.setAttribute("hidden-mobile", e);
|
|
168
|
+
}
|
|
169
|
+
get hiddenTablet() {
|
|
170
|
+
return this.getAttribute("hidden-tablet");
|
|
171
|
+
}
|
|
172
|
+
set hiddenTablet(e) {
|
|
173
|
+
this.setAttribute("hidden-tablet", e);
|
|
174
|
+
}
|
|
175
|
+
get hiddenLaptop() {
|
|
176
|
+
return this.getAttribute("hidden-laptop");
|
|
177
|
+
}
|
|
178
|
+
set hiddenLaptop(e) {
|
|
179
|
+
this.setAttribute("hidden-laptop", e);
|
|
180
|
+
}
|
|
181
|
+
get hiddenDesktop() {
|
|
182
|
+
return this.getAttribute("hidden-desktop");
|
|
183
|
+
}
|
|
184
|
+
set hiddenDesktop(e) {
|
|
185
|
+
this.setAttribute("hidden-desktop", e);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
class m extends l {
|
|
189
|
+
static get observedAttributes() {
|
|
190
|
+
return [
|
|
191
|
+
...super.observedAttributes,
|
|
192
|
+
...g(this.nativeName)
|
|
193
|
+
];
|
|
194
|
+
}
|
|
195
|
+
attributeChangedCallback(e, t, i) {
|
|
196
|
+
super.attributeChangedCallback(e, t, i), i === null ? this.$el.toggleAttribute(e) : this.$el.setAttribute(e, i);
|
|
197
|
+
}
|
|
198
|
+
constructor(...e) {
|
|
199
|
+
super(...e), this.nativeName = Object.getPrototypeOf(this).constructor.nativeName;
|
|
200
|
+
}
|
|
201
|
+
connectedCallback() {
|
|
202
|
+
for (const e of g(this.nativeName))
|
|
203
|
+
e !== "constructor" && Object.defineProperty(this, e, {
|
|
204
|
+
get() {
|
|
205
|
+
return this.$el[e];
|
|
206
|
+
},
|
|
207
|
+
set(t) {
|
|
208
|
+
this.$el[e] !== t && (this.$el[e] = t);
|
|
209
|
+
}
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
get $el() {
|
|
213
|
+
return this.shadowRoot.querySelector(this.nativeName);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
const x = `input:not([type=file]),textarea,select,#input-file-container{margin:0;outline:0;vertical-align:baseline;align-items:center;padding:0 1rem;gap:20px;width:345px;height:44px;border:2px solid rgba(0,0,0,.44);border-radius:5px;color:#0a0a0a;font-family:var(--px-font-family);font-size:var(--px-text-size-base-desktop);font-weight:400;line-height:var(--px-line-height-m);text-align:left;box-sizing:border-box;--icon-error: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 17' width='17' height='17'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23B30000;%7D%3C/style%3E%3C/defs%3E%3Cg id='forms-error'%3E%3Cpath id='Error' class='cls-1' d='M8.5,0A8.5,8.5,0,1,0,17,8.5,8.51,8.51,0,0,0,8.5,0ZM7.42,4.65a1.08,1.08,0,1,1,2.16,0V8.79a1.08,1.08,0,0,1-2.16,0Zm1.93,8.44a1.2,1.2,0,0,1-1.7-1.69,1.15,1.15,0,0,1,.85-.35,1.11,1.11,0,0,1,.84.35h0A1.21,1.21,0,0,1,9.35,13.09Z'/%3E%3C/g%3E%3C/svg%3E");--icon-success: url("data:image/svg+xml,%3Csvg id='forms-success' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 17' width='17' height='17'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23008000;%7D%3C/style%3E%3C/defs%3E%3Cpath id='Success' class='cls-1' d='M8.5,0A8.5,8.5,0,1,0,17,8.5,8.51,8.51,0,0,0,8.5,0Zm3.69,7.08-4.29,4a.81.81,0,0,1-.56.22.84.84,0,0,1-.59-.24L4.67,9A.81.81,0,0,1,5.81,7.85L7.35,9.4,11.1,5.91a.8.8,0,0,1,1.09,1.17Z'/%3E%3C/svg%3E");--icon-search: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20x%3D%2233%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%3E%0A%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M15.6274%2013.1821L12.0195%209.57348C11.6158%209.17402%2010.9657%209.11032%2010.1453%209.17402L10.1707%208.96567C10.481%206.74275%2010.9058%203.69927%208.69623%201.48483C8.58141%201.37061%208.46125%201.26204%208.33608%201.15912C6.15976%20-0.628879%202.94659%20-0.313517%201.15898%201.86327C-0.628629%204.04005%20-0.313335%207.25424%201.86298%209.04192C4.03866%2010.8569%206.88604%2010.4615%208.96823%2010.1725L9.17215%2010.1427C9.10847%2010.9674%209.15082%2011.5962%209.57592%2012.0214L13.1794%2015.6256C13.4181%2015.8647%2013.7422%2015.9993%2014.0804%2015.9997C14.4183%2015.9993%2014.7424%2015.8647%2014.9814%2015.6256L15.6274%2014.9839C16.1243%2014.4865%2016.1243%2013.6798%2015.6274%2013.1821ZM9.32933%208.84674C9.31239%208.99548%209.27411%209.13574%209.27411%209.27193L8.84902%209.33155C6.83051%209.61208%204.28086%209.96478%202.41106%208.38797C1.50376%207.65558%200.937175%206.58272%200.843999%205.42043C0.656391%203.07984%202.4007%201.03077%204.74016%200.843125C4.85749%200.83685%204.97545%200.83685%205.09278%200.843125C6.22314%200.838418%207.30863%201.28683%208.1058%202.08857C10.0051%204.00114%209.63113%206.68753%209.32933%208.84674ZM15.0238%2014.3977L14.3822%2015.0394C14.3813%2015.0404%2014.3806%2015.041%2014.3797%2015.042C14.2131%2015.2073%2013.9439%2015.2061%2013.7786%2015.0394L10.1751%2011.4352C9.97529%2011.2353%209.97529%2010.6956%2010.0393%2010.0495V10.0366C10.6853%209.97294%2011.2208%209.97702%2011.4203%2010.1769L15.0238%2013.794C15.1034%2013.8743%2015.1477%2013.9829%2015.1471%2014.0959C15.1477%2014.2088%2015.1034%2014.3174%2015.0238%2014.3977Z%22%20fill%3D%22%235C2D91%22%2F%3E%0A%20%20%20%20%3C%2Fsvg%3E);--icon-cancel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -60 30 30'%3E%3Cpath d='M22.4707,-50.0977l-5.09766,5.09766l5.09766,5.09766c0.332031,0.332031 0.498047,0.732421 0.498047,1.20117c0,0.46875 -0.166016,0.86914 -0.498047,1.20117c-0.3125,0.332031 -0.708007,0.498047 -1.18652,0.498047c-0.478515,0 -0.874022,-0.166016 -1.18652,-0.498047l-5.09766,-5.09766l-5.09766,5.09766c-0.332031,0.332031 -0.737305,0.498047 -1.21582,0.498047c-0.478515,0 -0.874022,-0.166016 -1.18652,-0.498047c-0.332031,-0.332031 -0.498047,-0.732421 -0.498047,-1.20117c0,-0.46875 0.166016,-0.86914 0.498047,-1.20117l5.09766,-5.09766l-5.09766,-5.09766c-0.332031,-0.332031 -0.498047,-0.732421 -0.498047,-1.20117c0,-0.46875 0.166016,-0.859377 0.498047,-1.17188c0.3125,-0.332031 0.708007,-0.498047 1.18652,-0.498047c0.478515,0 0.883789,0.166016 1.21582,0.498047l5.09766,5.09766l5.09766,-5.09766c0.3125,-0.332031 0.708007,-0.498047 1.18652,-0.498047c0.478515,0 0.874022,0.166016 1.18652,0.498047c0.175781,0.15625 0.302734,0.336914 0.380859,0.541992c0.0781253,0.205078 0.117188,0.415039 0.117188,0.629883c0,0.234375 -0.0390627,0.454101 -0.117188,0.65918c-0.0781253,0.205078 -0.205078,0.385742 -0.380859,0.541992Zm-7.4707,-9.90234c-2.07031,0 -4.01367,0.390627 -5.83008,1.17188c-1.81641,0.80078 -3.40332,1.87988 -4.76074,3.2373c-1.35742,1.35742 -2.43652,2.94433 -3.2373,4.76074c-0.781253,1.81641 -1.17188,3.75977 -1.17188,5.83008c0,2.07031 0.390627,4.01367 1.17188,5.83008c0.80078,1.81641 1.87988,3.40332 3.2373,4.76074c1.35742,1.35742 2.94433,2.43652 4.76074,3.2373c1.81641,0.781253 3.75977,1.17188 5.83008,1.17188c2.07031,0 4.01367,-0.390627 5.83008,-1.17188c1.81641,-0.80078 3.40332,-1.87988 4.76074,-3.2373c1.35742,-1.35742 2.43652,-2.94433 3.2373,-4.76074c0.781253,-1.81641 1.17188,-3.75977 1.17188,-5.83008c0,-2.07031 -0.390627,-4.01367 -1.17188,-5.83008c-0.80078,-1.81641 -1.87988,-3.40332 -3.2373,-4.76074c-1.35742,-1.35742 -2.94433,-2.43652 -4.76074,-3.2373c-1.81641,-0.781253 -3.75977,-1.17188 -5.83008,-1.17188Z' fill='%235c2d91'/%3E%3C/svg%3E");--icon-calendar: url(data:image/svg+xml,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M14.7369%201.68408H12.779V0.42102C12.779%200.188549%2012.5904%200%2012.358%200C12.1255%200%2011.9369%200.188549%2011.9369%200.42102V1.68408H9.92439V0.42102C9.92439%200.188549%209.73584%200%209.50337%200C9.2709%200%209.08235%200.188549%209.08235%200.42102V1.68408H7.0698V0.42102C7.0698%200.188549%206.88126%200%206.64878%200C6.41631%200%206.22777%200.188549%206.22777%200.42102V1.68408H4.21082V0.42102C4.21051%200.188549%204.02196%200%203.78949%200C3.55702%200%203.36847%200.188549%203.36847%200.42102V1.68408H2.52643C1.13098%201.68408%200%202.81537%200%204.21051V14.7369C0%2015.4344%200.565647%2016%201.26306%2016H13.4736C14.8687%2016%2016%2014.869%2016%2013.4736V2.94745C16%202.24973%2015.4344%201.68408%2014.7369%201.68408ZM15.158%2013.4736C15.158%2014.4038%2014.4041%2015.1576%2013.4739%2015.1576H1.26306C1.03059%2015.1576%200.842039%2014.9691%200.842039%2014.7366V6.73663H15.158V13.4736ZM15.158%205.89459H0.842039V4.21051C0.842039%203.28031%201.59592%202.52643%202.52612%202.52643H3.36816V3.78949C3.36816%204.02196%203.55671%204.21051%203.78918%204.21051C4.02165%204.21051%204.2102%204.02196%204.2102%203.78949V2.52643H6.22714V3.78949C6.22714%204.02196%206.41569%204.21051%206.64816%204.21051C6.88063%204.21051%207.06918%204.02196%207.06918%203.78949V2.52643H9.08173V3.78949C9.08173%204.02196%209.27028%204.21051%209.50275%204.21051C9.73522%204.21051%209.92377%204.02196%209.92377%203.78949V2.52643H11.9363V3.78949C11.9363%204.02196%2012.1249%204.21051%2012.3573%204.21051C12.5898%204.21051%2012.7784%204.02196%2012.7784%203.78949V2.52643H14.7363C14.9688%202.52643%2015.1573%202.71498%2015.1573%202.94745V5.89459H15.158Z%22%20fill%3D%22%235C2D91%22%2F%3E%0A%3C%2Fsvg%3E);--icon-clock: url(data:image/svg+xml,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M8%200C3.5818%200%200%203.5818%200%208C0%2012.4182%203.5818%2016%208%2016C12.4182%2016%2016%2012.4182%2016%208C16%203.5818%2012.4182%200%208%200ZM8%2015.158C4.04675%2015.158%200.842039%2011.9533%200.842039%208C0.842039%204.04675%204.04675%200.842039%208%200.842039C11.9533%200.842039%2015.158%204.04675%2015.158%208C15.158%2011.9533%2011.9533%2015.158%208%2015.158Z%22%20fill%3D%22%235C2D91%22%2F%3E%0A%3Cpath%20d%3D%22M7.99929%202.81256C7.76682%202.81256%207.57827%203.00111%207.57827%203.23358V7.76818C7.57607%207.89963%207.46972%208.00599%207.33827%208.00818H2.78235C2.54988%208.00818%202.36133%208.19673%202.36133%208.4292C2.36133%208.66167%202.54988%208.85022%202.78235%208.85022H7.32133C7.92117%208.85713%208.41309%208.3765%208.42031%207.77665C8.42031%207.77383%208.42031%207.771%208.42031%207.76818V3.23358C8.42031%203.00111%208.23176%202.81256%207.99929%202.81256Z%22%20fill%3D%22%235C2D91%22%2F%3E%0A%3C%2Fsvg%3E%0A);--icon-select: url(data:image/svg+xml,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M4%206.6665L8%2010.6665L12%206.6665%22%20stroke%3D%22%235C2D91%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%0A%3C%2Fsvg%3E);--icon-upload: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M18.7284%2020H6.54327C5.14071%2020%204%2018.816%204%2017.3603V16.102C4%2015.8589%204.18949%2015.6622%204.42374%2015.6622C4.65799%2015.6622%204.84748%2015.8589%204.84748%2016.102V17.3603C4.84748%2018.3311%205.60795%2019.1204%206.54327%2019.1204H18.7279C18.9618%2019.1204%2019.1517%2018.9233%2019.1517%2018.6806V16.0738C19.1517%2015.8307%2019.3412%2015.634%2019.5754%2015.634C19.8097%2015.634%2019.9992%2015.8307%2019.9992%2016.0738V18.6806C20%2019.4074%2019.4294%2020%2018.7284%2020Z%22%20fill%3D%22%235C2D91%22%2F%3E%0A%3Cpath%20d%3D%22M12.4435%204.29306C12.0671%203.90231%2011.4576%203.90231%2011.0811%204.29306L11.0774%204.29697L7.39173%208.122C7.01526%208.51275%207.01526%209.14534%207.39173%209.53609C7.7682%209.92684%208.37766%209.92684%208.75413%209.53609L10.7929%207.41951H10.7967V15.0414C10.7967%2015.4799%2011.1397%2015.8354%2011.5622%2015.8354H11.9579C12.3808%2015.8354%2012.7234%2015.4799%2012.7234%2015.0414V7.41821H12.7292L14.7659%209.53218C15.1424%209.92293%2015.7523%209.92293%2016.1284%209.53218C16.5048%209.14186%2016.5048%208.50884%2016.1284%208.11853L12.4435%204.29306Z%22%20fill%3D%22%235C2D91%22%2F%3E%0A%3C%2Fsvg%3E);--cancel-icon-width: 3rem;--cancel-icon-height: 1rem;--search-icon-datalist-width: 2rem;--search-icon-focus-width: var(--search-icon-datalist-width);background:#0000000a no-repeat center right 1rem}input:not([type=file]).extended,textarea.extended,select.extended,#input-file-container.extended{width:100%}input:not([type=file]):focus,input:not([type=file]):hover,input:not([type=file]).error:focus,input:not([type=file]).error:hover,input:not([type=file]).success:focus,input:not([type=file]).success:hover,textarea:focus,textarea:hover,textarea.error:focus,textarea.error:hover,textarea.success:focus,textarea.success:hover,select:focus,select:hover,select.error:focus,select.error:hover,select.success:focus,select.success:hover,#input-file-container:focus,#input-file-container:hover,#input-file-container.error:focus,#input-file-container.error:hover,#input-file-container.success:focus,#input-file-container.success:hover{border:2px solid rgba(92,45,145,1);outline:1px solid rgba(92,45,145,1)}input:not([type=file]):active,textarea:active,select:active,#input-file-container:active{border:2px solid rgba(92,45,145,1)}input:not([type=file]):disabled,textarea:disabled,select:disabled,#input-file-container:disabled{border-width:0;background:transparent;padding:0;font-weight:700;text-align:left;height:24px}input:not([type=file])[type=date].success,input:not([type=file])[type=date].error,input:not([type=file])[type=time].success,input:not([type=file])[type=time].error,input:not([type=file])[type=datetime-local].success,input:not([type=file])[type=datetime-local].error,input:not([type=file])[type=month].success,input:not([type=file])[type=month].error,input:not([type=file])[type=week].success,input:not([type=file])[type=week].error,input:not([type=file])[type=search].success,input:not([type=file])[type=search].error,input:not([type=file]):is(select).success,input:not([type=file]):is(select).error,input:not([type=file])#input-file-container.success,input:not([type=file])#input-file-container.error,textarea[type=date].success,textarea[type=date].error,textarea[type=time].success,textarea[type=time].error,textarea[type=datetime-local].success,textarea[type=datetime-local].error,textarea[type=month].success,textarea[type=month].error,textarea[type=week].success,textarea[type=week].error,textarea[type=search].success,textarea[type=search].error,textarea:is(select).success,textarea:is(select).error,textarea#input-file-container.success,textarea#input-file-container.error,select[type=date].success,select[type=date].error,select[type=time].success,select[type=time].error,select[type=datetime-local].success,select[type=datetime-local].error,select[type=month].success,select[type=month].error,select[type=week].success,select[type=week].error,select[type=search].success,select[type=search].error,select:is(select).success,select:is(select).error,select#input-file-container.success,select#input-file-container.error,#input-file-container[type=date].success,#input-file-container[type=date].error,#input-file-container[type=time].success,#input-file-container[type=time].error,#input-file-container[type=datetime-local].success,#input-file-container[type=datetime-local].error,#input-file-container[type=month].success,#input-file-container[type=month].error,#input-file-container[type=week].success,#input-file-container[type=week].error,#input-file-container[type=search].success,#input-file-container[type=search].error,#input-file-container:is(select).success,#input-file-container:is(select).error,#input-file-container#input-file-container.success,#input-file-container#input-file-container.error{background-position:center right 2.7rem,center right 1rem}input:not([type=file]).error,textarea.error,select.error,#input-file-container.error{border:2px solid rgba(179,0,0,1);background-repeat:no-repeat;background-image:var(--icon-error)}input:not([type=file]).success,textarea.success,select.success,#input-file-container.success{border:2px solid rgba(0,128,0,1);background-image:var(--icon-success)}input:not([type=file])[type=time],textarea[type=time],select[type=time],#input-file-container[type=time]{background-image:var(--icon-clock)}input:not([type=file])[type=time].success,textarea[type=time].success,select[type=time].success,#input-file-container[type=time].success{background-image:var(--icon-success),var(--icon-clock)}input:not([type=file])[type=time].error,textarea[type=time].error,select[type=time].error,#input-file-container[type=time].error{background-image:var(--icon-error),var(--icon-clock)}input:not([type=file])[type=date],input:not([type=file])[type=datetime-local],input:not([type=file])[type=month],input:not([type=file])[type=week],textarea[type=date],textarea[type=datetime-local],textarea[type=month],textarea[type=week],select[type=date],select[type=datetime-local],select[type=month],select[type=week],#input-file-container[type=date],#input-file-container[type=datetime-local],#input-file-container[type=month],#input-file-container[type=week]{background-image:var(--icon-calendar)}input:not([type=file])[type=date].success,input:not([type=file])[type=datetime-local].success,input:not([type=file])[type=month].success,input:not([type=file])[type=week].success,textarea[type=date].success,textarea[type=datetime-local].success,textarea[type=month].success,textarea[type=week].success,select[type=date].success,select[type=datetime-local].success,select[type=month].success,select[type=week].success,#input-file-container[type=date].success,#input-file-container[type=datetime-local].success,#input-file-container[type=month].success,#input-file-container[type=week].success{background-image:var(--icon-success),var(--icon-calendar)}input:not([type=file])[type=date].error,input:not([type=file])[type=datetime-local].error,input:not([type=file])[type=month].error,input:not([type=file])[type=week].error,textarea[type=date].error,textarea[type=datetime-local].error,textarea[type=month].error,textarea[type=week].error,select[type=date].error,select[type=datetime-local].error,select[type=month].error,select[type=week].error,#input-file-container[type=date].error,#input-file-container[type=datetime-local].error,#input-file-container[type=month].error,#input-file-container[type=week].error{background-image:var(--icon-error),var(--icon-calendar)}input:not([type=file])[type=date]::-webkit-calendar-picker-indicator,input:not([type=file])[type=datetime-local]::-webkit-calendar-picker-indicator,input:not([type=file])[type=month]::-webkit-calendar-picker-indicator,input:not([type=file])[type=week]::-webkit-calendar-picker-indicator,input:not([type=file])[type=time]::-webkit-calendar-picker-indicator,textarea[type=date]::-webkit-calendar-picker-indicator,textarea[type=datetime-local]::-webkit-calendar-picker-indicator,textarea[type=month]::-webkit-calendar-picker-indicator,textarea[type=week]::-webkit-calendar-picker-indicator,textarea[type=time]::-webkit-calendar-picker-indicator,select[type=date]::-webkit-calendar-picker-indicator,select[type=datetime-local]::-webkit-calendar-picker-indicator,select[type=month]::-webkit-calendar-picker-indicator,select[type=week]::-webkit-calendar-picker-indicator,select[type=time]::-webkit-calendar-picker-indicator,#input-file-container[type=date]::-webkit-calendar-picker-indicator,#input-file-container[type=datetime-local]::-webkit-calendar-picker-indicator,#input-file-container[type=month]::-webkit-calendar-picker-indicator,#input-file-container[type=week]::-webkit-calendar-picker-indicator,#input-file-container[type=time]::-webkit-calendar-picker-indicator{-webkit-appearance:none;opacity:0}input:not([type=file])[type=search],textarea[type=search],select[type=search],#input-file-container[type=search]{background-position:center right 1rem;background-image:var(--icon-search)}input:not([type=file])[type=search]:focus::-webkit-search-cancel-button,input:not([type=file])[type=search]:hover::-webkit-search-cancel-button,textarea[type=search]:focus::-webkit-search-cancel-button,textarea[type=search]:hover::-webkit-search-cancel-button,select[type=search]:focus::-webkit-search-cancel-button,select[type=search]:hover::-webkit-search-cancel-button,#input-file-container[type=search]:focus::-webkit-search-cancel-button,#input-file-container[type=search]:hover::-webkit-search-cancel-button{-webkit-appearance:none;background-image:var(--icon-cancel);height:var(--cancel-icon-height);width:var(--cancel-icon-width);background-repeat:no-repeat}input:not([type=file])[type=search][list=suggestions],textarea[type=search][list=suggestions],select[type=search][list=suggestions],#input-file-container[type=search][list=suggestions]{background-position:center right var(--search-icon-datalist-width)}input:not([type=file])[type=search][list=suggestions]:focus,input:not([type=file])[type=search][list=suggestions]:hover,textarea[type=search][list=suggestions]:focus,textarea[type=search][list=suggestions]:hover,select[type=search][list=suggestions]:focus,select[type=search][list=suggestions]:hover,#input-file-container[type=search][list=suggestions]:focus,#input-file-container[type=search][list=suggestions]:hover{background-position:center right var(--search-icon-focus-width)}input:not([type=file])[type=search].success:focus,input:not([type=file])[type=search].success:hover,input:not([type=file])[type=search].error:focus,input:not([type=file])[type=search].error:hover,textarea[type=search].success:focus,textarea[type=search].success:hover,textarea[type=search].error:focus,textarea[type=search].error:hover,select[type=search].success:focus,select[type=search].success:hover,select[type=search].error:focus,select[type=search].error:hover,#input-file-container[type=search].success:focus,#input-file-container[type=search].success:hover,#input-file-container[type=search].error:focus,#input-file-container[type=search].error:hover{background-position:center right 1rem;background-image:var(--icon-search)}input:not([type=file])[type=search].success,textarea[type=search].success,select[type=search].success,#input-file-container[type=search].success{background-image:var(--icon-success),var(--icon-search)}input:not([type=file])[type=search].error,textarea[type=search].error,select[type=search].error,#input-file-container[type=search].error{background-image:var(--icon-error),var(--icon-search)}input:not([type=file]):is(select),textarea:is(select),select:is(select),#input-file-container:is(select){background-image:var(--icon-select);-webkit-appearance:none}input:not([type=file]):is(select).success,textarea:is(select).success,select:is(select).success,#input-file-container:is(select).success{background-image:var(--icon-success),var(--icon-select)}input:not([type=file]):is(select).error,textarea:is(select).error,select:is(select).error,#input-file-container:is(select).error{background-image:var(--icon-error),var(--icon-select)}input:not([type=file]):is(textarea),textarea:is(textarea),select:is(textarea),#input-file-container:is(textarea){padding-top:.5rem;height:10rem}input:not([type=file]):is(textarea).success,input:not([type=file]):is(textarea).error,textarea:is(textarea).success,textarea:is(textarea).error,select:is(textarea).success,select:is(textarea).error,#input-file-container:is(textarea).success,#input-file-container:is(textarea).error{background-position:top .5rem right 1rem}input:not([type=file])#input-file-container,textarea#input-file-container,select#input-file-container,#input-file-container#input-file-container{background-repeat:no-repeat;background-position:center right 1rem;background-image:var(--icon-upload);display:flex;align-items:center}input:not([type=file])#input-file-container span,textarea#input-file-container span,select#input-file-container span,#input-file-container#input-file-container span{width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}input:not([type=file])#input-file-container.success>span,input:not([type=file])#input-file-container.error>span,textarea#input-file-container.success>span,textarea#input-file-container.error>span,select#input-file-container.success>span,select#input-file-container.error>span,#input-file-container#input-file-container.success>span,#input-file-container#input-file-container.error>span{width:85%}input:not([type=file])#input-file-container.success,textarea#input-file-container.success,select#input-file-container.success,#input-file-container#input-file-container.success{background-image:var(--icon-success),var(--icon-upload)}input:not([type=file])#input-file-container.error,textarea#input-file-container.error,select#input-file-container.error,#input-file-container#input-file-container.error{background-image:var(--icon-error),var(--icon-upload)}slot{font-family:var(--px-font-family);font-size:var(--px-text-size-s-desktop);font-weight:400;line-height:var(--px-line-height-m);text-align:left;color:#0a0a0a}slot.error{color:#b30000}slot.success{color:green}slot[name=helper]{color:#0000008f}#container{display:flex;flex-direction:column;gap:6px}#label-helper{display:flex;flex-direction:column;gap:8px}input[type=file]{-webkit-appearance:none;opacity:0;height:0;width:0}`, b = new CSSStyleSheet();
|
|
217
|
+
b.replaceSync(x);
|
|
218
|
+
class s extends m {
|
|
219
|
+
constructor() {
|
|
220
|
+
var e;
|
|
221
|
+
super(b), this.containerTemplate = () => `
|
|
222
|
+
<div id="container">
|
|
223
|
+
<div id="label-helper">
|
|
224
|
+
<label><slot name="label"></slot></label>
|
|
225
|
+
<slot name="helper"></slot>
|
|
226
|
+
</div>
|
|
227
|
+
<slot id="success-error"></slot>
|
|
228
|
+
${this.template()}
|
|
229
|
+
</div>
|
|
230
|
+
`, this.shadowRoot.innerHTML = this.containerTemplate(), this.internals = (e = this.attachInternals) == null ? void 0 : e.call(this);
|
|
231
|
+
}
|
|
232
|
+
static get observedAttributes() {
|
|
233
|
+
return [...super.observedAttributes, "state", "extended"];
|
|
234
|
+
}
|
|
235
|
+
attributeChangedCallback(e, t, i) {
|
|
236
|
+
e === "state" && t !== i ? this.stateChangeCallback(t, i) : e === "extended" && t !== i ? (console.log(i), this.$el.classList.toggle("extended")) : super.attributeChangedCallback(e, t, i);
|
|
237
|
+
}
|
|
238
|
+
stateChangeCallback(e, t) {
|
|
239
|
+
this.$el.classList.toggle(e), this.$el.classList.toggle(t), t === "error" ? (this.$validationSlot.classList.toggle("error"), this.$validationSlot.classList.remove("success")) : t === "success" ? (this.$validationSlot.classList.remove("error"), this.$validationSlot.classList.toggle("success")) : (this.$el.removeAttribute("aria-invalid"), this.$validationSlot.classList.remove("error", "success"), this.$labelSlot.classList.remove("error", "success"), this.$el.style.backgroundImage = ""), this.swapLabels(e, t);
|
|
240
|
+
}
|
|
241
|
+
swapLabels(e, t) {
|
|
242
|
+
const i = this.shadowRoot.querySelector("#container");
|
|
243
|
+
e !== "error" && t === "error" ? i.insertBefore(this.$validationSlot, this.$labelHelper) : e === "error" && t !== "error" && i.insertBefore(this.$labelHelper, this.$validationSlot);
|
|
244
|
+
}
|
|
245
|
+
formData() {
|
|
246
|
+
if (this.$el.name) {
|
|
247
|
+
const e = new FormData();
|
|
248
|
+
return e.append(this.getAttribute("name"), this.$el.value), e;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
connectedCallback() {
|
|
252
|
+
super.connectedCallback(), ["change", "input"].forEach((e) => {
|
|
253
|
+
this.$el.addEventListener(e, () => {
|
|
254
|
+
var t;
|
|
255
|
+
(t = this.internals) == null || t.setFormValue(this.formData());
|
|
256
|
+
});
|
|
257
|
+
}), this.setupForId();
|
|
258
|
+
}
|
|
259
|
+
// Form-associated callbacks
|
|
260
|
+
static get formAssociated() {
|
|
261
|
+
return !0;
|
|
262
|
+
}
|
|
263
|
+
// Set default behavior when the element is attached to a form
|
|
264
|
+
formResetCallback() {
|
|
265
|
+
this.$el.value = "";
|
|
266
|
+
}
|
|
267
|
+
formStateRestoreCallback(e) {
|
|
268
|
+
this.$el.value = e;
|
|
269
|
+
}
|
|
270
|
+
setupForId() {
|
|
271
|
+
const e = Math.random().toString(36).substr(2, 9);
|
|
272
|
+
this.$el.setAttribute("id", e), this.$label && this.$label.setAttribute("for", e);
|
|
273
|
+
}
|
|
274
|
+
get state() {
|
|
275
|
+
return this.getAttribute("state");
|
|
276
|
+
}
|
|
277
|
+
set state(e) {
|
|
278
|
+
this.setAttribute("state", e);
|
|
279
|
+
}
|
|
280
|
+
get extended() {
|
|
281
|
+
return this.getAttribute("extended");
|
|
282
|
+
}
|
|
283
|
+
set extended(e) {
|
|
284
|
+
this.setAttribute(
|
|
285
|
+
"extended",
|
|
286
|
+
e === "" || e === null ? "true" : e
|
|
287
|
+
);
|
|
288
|
+
}
|
|
289
|
+
get $labelSlot() {
|
|
290
|
+
return this.shadowRoot.querySelector('slot[name="label"]');
|
|
291
|
+
}
|
|
292
|
+
get $validationSlot() {
|
|
293
|
+
return this.shadowRoot.querySelector("#success-error");
|
|
294
|
+
}
|
|
295
|
+
get $label() {
|
|
296
|
+
return this.shadowRoot.querySelector("label");
|
|
297
|
+
}
|
|
298
|
+
get $labelHelper() {
|
|
299
|
+
return this.shadowRoot.querySelector("#label-helper");
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
const p = class p extends s {
|
|
303
|
+
constructor() {
|
|
304
|
+
super();
|
|
305
|
+
}
|
|
306
|
+
connectedCallback() {
|
|
307
|
+
if (super.connectedCallback(), this.$lightSuggestions) {
|
|
308
|
+
const e = document.createElement("datalist");
|
|
309
|
+
e.id = "suggestions", this.$el.setAttribute("list", e.id), this.$container.appendChild(e), e.innerHTML = this.$lightSuggestions.innerHTML, this.observer = new MutationObserver(() => {
|
|
310
|
+
this.syncDataList();
|
|
311
|
+
}), this.observer.observe(this.$lightSuggestions, { childList: !0 });
|
|
312
|
+
}
|
|
313
|
+
this.type === "search" && navigator.userAgent.includes("Chrome") && (this.$el.style.setProperty("--cancel-icon-height", "1.1rem"), this.$el.style.setProperty("--cancel-icon-width", "2.7rem"), this.$el.style.setProperty("--search-icon-focus-width", "2.5rem"), this.$el.style.setProperty("--search-icon-datalist-width", "1rem"));
|
|
314
|
+
}
|
|
315
|
+
syncDataList() {
|
|
316
|
+
this.$shadowSuggestions.innerHTML = this.$lightSuggestions.innerHTML;
|
|
317
|
+
}
|
|
318
|
+
disconnectedCallback() {
|
|
319
|
+
var e;
|
|
320
|
+
(e = this.observer) == null || e.disconnect();
|
|
321
|
+
}
|
|
322
|
+
template() {
|
|
323
|
+
return '<div><input type="text" /><slot name="suggestions"></slot></div>';
|
|
324
|
+
}
|
|
325
|
+
get $lightSuggestions() {
|
|
326
|
+
return this.querySelector("datalist");
|
|
327
|
+
}
|
|
328
|
+
get $shadowSuggestions() {
|
|
329
|
+
return this.shadowRoot.querySelector("datalist");
|
|
330
|
+
}
|
|
331
|
+
get $container() {
|
|
332
|
+
return this.shadowRoot.querySelector("div");
|
|
333
|
+
}
|
|
334
|
+
};
|
|
335
|
+
p.nativeName = "input";
|
|
336
|
+
let a = p;
|
|
337
|
+
customElements.get("px-input") || customElements.define("px-input", a);
|
|
338
|
+
const u = class u extends s {
|
|
339
|
+
constructor() {
|
|
340
|
+
super();
|
|
341
|
+
}
|
|
342
|
+
template() {
|
|
343
|
+
return "<textarea></textarea>";
|
|
344
|
+
}
|
|
345
|
+
};
|
|
346
|
+
u.nativeName = "textarea";
|
|
347
|
+
let n = u;
|
|
348
|
+
customElements.get("px-textarea") || customElements.define("px-textarea", n);
|
|
349
|
+
const h = class h extends s {
|
|
350
|
+
template() {
|
|
351
|
+
return '<select><slot name="options"></slot></select>';
|
|
352
|
+
}
|
|
353
|
+
constructor() {
|
|
354
|
+
super();
|
|
355
|
+
}
|
|
356
|
+
connectedCallback() {
|
|
357
|
+
super.connectedCallback();
|
|
358
|
+
const e = this.querySelectorAll("option");
|
|
359
|
+
e.length > 0 && (e.forEach((t) => {
|
|
360
|
+
this.$el.appendChild(t);
|
|
361
|
+
}), this.observer = new MutationObserver(() => {
|
|
362
|
+
this.$el.innerHTML = this.innerHTML;
|
|
363
|
+
}), this.observer.observe(this, { childList: !0 }));
|
|
364
|
+
}
|
|
365
|
+
disconnectedCallback() {
|
|
366
|
+
this.observer.disconnect();
|
|
367
|
+
}
|
|
368
|
+
};
|
|
369
|
+
h.nativeName = "select";
|
|
370
|
+
let o = h;
|
|
371
|
+
customElements.get("px-select") || customElements.define("px-select", o);
|
|
372
|
+
const d = class d extends s {
|
|
373
|
+
constructor() {
|
|
374
|
+
super();
|
|
375
|
+
}
|
|
376
|
+
connectedCallback() {
|
|
377
|
+
super.connectedCallback(), this.addEventListener("click", (e) => {
|
|
378
|
+
e.target === this && this.$el.click();
|
|
379
|
+
}), this.$el.addEventListener("change", () => {
|
|
380
|
+
this.$span.innerText = this.$el.files[0].name;
|
|
381
|
+
});
|
|
382
|
+
}
|
|
383
|
+
template() {
|
|
384
|
+
return '<div id="input-file-container"><span></span><input type="file" /></input>';
|
|
385
|
+
}
|
|
386
|
+
stateChangeCallback(e, t) {
|
|
387
|
+
super.stateChangeCallback(e, t), this.$container.classList.toggle(e), this.$container.classList.toggle(t);
|
|
388
|
+
}
|
|
389
|
+
get $container() {
|
|
390
|
+
return this.shadowRoot.querySelector("#input-file-container");
|
|
391
|
+
}
|
|
392
|
+
get $span() {
|
|
393
|
+
return this.shadowRoot.querySelector("span");
|
|
394
|
+
}
|
|
395
|
+
get $el() {
|
|
396
|
+
return this.shadowRoot.querySelector('input[type="file"]');
|
|
397
|
+
}
|
|
398
|
+
};
|
|
399
|
+
d.nativeName = "input";
|
|
400
|
+
let c = d;
|
|
401
|
+
customElements.get("px-fileupload") || customElements.define("px-fileupload", c);
|
|
402
|
+
export {
|
|
403
|
+
a as Input,
|
|
404
|
+
o as Select,
|
|
405
|
+
n as TextArea,
|
|
406
|
+
c as Upload
|
|
407
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@proximus/lavender-input",
|
|
3
|
+
"version": "1.0.0-alpha.11",
|
|
4
|
+
"description": "Input component for the Proximus Design System",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"types": "./src/index.ts",
|
|
9
|
+
"development": "./src/index.ts",
|
|
10
|
+
"default": "./dist/index.js"
|
|
11
|
+
},
|
|
12
|
+
"./src/*.css": {
|
|
13
|
+
"development": "src/*.css"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"scripts": {
|
|
20
|
+
"build": "rm -rf dist;tsc; vite build",
|
|
21
|
+
"test": "vitest run --coverage"
|
|
22
|
+
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "https://github.com/Pxs-Corporate/design-system.git"
|
|
26
|
+
},
|
|
27
|
+
"publishConfig": {
|
|
28
|
+
"access": "public"
|
|
29
|
+
},
|
|
30
|
+
"gitHead": "15a231df98020f83813279639a9a7712a5a5e759",
|
|
31
|
+
"lerna": {
|
|
32
|
+
"command": {
|
|
33
|
+
"publish": {
|
|
34
|
+
"assets": [
|
|
35
|
+
"CHANGELOG.md",
|
|
36
|
+
"package.json",
|
|
37
|
+
"dist/*.js",
|
|
38
|
+
"dist/css/**/*.css"
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|