@muibook/components 19.0.1 → 19.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/agent/prompts/index.js +1 -1
- package/dist/esm/components/mui-accordion/block/index.js +50 -27
- package/dist/esm/components/mui-accordion/inline/index.js +42 -20
- package/dist/esm/components/mui-button/index.js +20 -1
- package/dist/esm/components/mui-button-group/index.js +21 -3
- package/dist/esm/components/mui-chip-input/index.js +2 -2
- package/dist/esm/components/mui-hint/index.js +2 -0
- package/dist/esm/components/mui-input/index.js +197 -75
- package/dist/esm/components/mui-link/index.js +63 -33
- package/dist/esm/css/mui-brand.css +1 -1
- package/dist/esm/css/mui-tokens.css +2 -0
- package/dist/esm/custom-elements.json +2999 -2870
- package/dist/esm/dynamic-attrs.json +17 -17
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
class
|
|
1
|
+
class I extends HTMLElement {
|
|
2
2
|
static get observedAttributes() {
|
|
3
3
|
return [
|
|
4
4
|
"type",
|
|
@@ -23,87 +23,121 @@ class S extends HTMLElement {
|
|
|
23
23
|
this.hasAttribute("size") || this.setAttribute("size", "medium"), this.render(), this.setupListener();
|
|
24
24
|
}
|
|
25
25
|
disconnectedCallback() {
|
|
26
|
-
|
|
26
|
+
var e;
|
|
27
|
+
this.cleanupListeners(), (e = this._slotResizeObserver) == null || e.disconnect();
|
|
27
28
|
}
|
|
28
|
-
attributeChangedCallback(
|
|
29
|
-
var
|
|
30
|
-
const o = (
|
|
29
|
+
attributeChangedCallback(e, r, t) {
|
|
30
|
+
var h;
|
|
31
|
+
const o = (h = this.shadowRoot) == null ? void 0 : h.querySelector("input");
|
|
31
32
|
if (o) {
|
|
32
|
-
if (
|
|
33
|
-
o.value =
|
|
33
|
+
if (e === "value") {
|
|
34
|
+
o.value = t ?? "", this.updateCharacterCount();
|
|
34
35
|
return;
|
|
35
36
|
}
|
|
36
|
-
if (
|
|
37
|
-
|
|
37
|
+
if (e === "disabled") {
|
|
38
|
+
t === null || t === "false" ? o.removeAttribute("disabled") : o.setAttribute("disabled", "");
|
|
38
39
|
return;
|
|
39
40
|
}
|
|
40
41
|
["type", "placeholder", "label", "hide-label", "variant", "optional", "max-length", "size", "slot-layout"].includes(
|
|
41
|
-
|
|
42
|
+
e
|
|
42
43
|
) && (this.render(), this.setupListener());
|
|
43
44
|
}
|
|
44
45
|
}
|
|
45
46
|
cleanupListeners() {
|
|
46
47
|
var r;
|
|
47
|
-
const
|
|
48
|
-
|
|
48
|
+
const e = (r = this.shadowRoot) == null ? void 0 : r.querySelector("input");
|
|
49
|
+
e && this._changeHandler && (e.removeEventListener("change", this._changeHandler), e.removeEventListener("input", this._changeHandler));
|
|
49
50
|
}
|
|
50
51
|
setupListener() {
|
|
51
52
|
if (!this.shadowRoot) return;
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
const
|
|
55
|
-
this.setAttribute("value",
|
|
53
|
+
const e = this.shadowRoot.querySelector("input");
|
|
54
|
+
e && (this.cleanupListeners(), this._changeHandler = (r) => {
|
|
55
|
+
const t = r.target;
|
|
56
|
+
this.setAttribute("value", t.value);
|
|
56
57
|
const o = {
|
|
57
|
-
detail: { value:
|
|
58
|
+
detail: { value: t.value },
|
|
58
59
|
bubbles: !0,
|
|
59
60
|
composed: !0
|
|
60
61
|
};
|
|
61
62
|
this.dispatchEvent(new CustomEvent("change", o)), this.dispatchEvent(new CustomEvent("input", o)), this.updateCharacterCount();
|
|
62
|
-
},
|
|
63
|
+
}, e.addEventListener("change", this._changeHandler), e.addEventListener("input", this._changeHandler), this.updateCharacterCount());
|
|
63
64
|
}
|
|
64
65
|
updateCharacterCount() {
|
|
65
|
-
var
|
|
66
|
-
const
|
|
67
|
-
!
|
|
66
|
+
var t, o;
|
|
67
|
+
const e = (t = this.shadowRoot) == null ? void 0 : t.querySelector("input"), r = (o = this.shadowRoot) == null ? void 0 : o.querySelector(".char-count");
|
|
68
|
+
!e || !r || e.maxLength <= 0 || (r.textContent = `${e.value.length}/${e.maxLength}`);
|
|
68
69
|
}
|
|
69
70
|
updateSlottedButtons() {
|
|
70
71
|
requestAnimationFrame(() => {
|
|
71
|
-
var
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
72
|
+
var T, E, S, A, O, f, m, R;
|
|
73
|
+
const e = this.getAttribute("size") || "medium", t = ["x-small", "small", "medium", "large"].includes(e) ? e : "medium", o = (T = this.shadowRoot) == null ? void 0 : T.querySelector('slot[name="before"]'), h = (E = this.shadowRoot) == null ? void 0 : E.querySelector('slot[name="after"]'), N = (S = this.shadowRoot) == null ? void 0 : S.querySelector('slot[name="inside-before"]'), g = (A = this.shadowRoot) == null ? void 0 : A.querySelector('slot[name="inside-after"]'), l = (O = this.shadowRoot) == null ? void 0 : O.querySelector('slot[name="hint"]'), x = {
|
|
74
|
+
"x-small": "var(--action-icon-only-size-x-small)",
|
|
75
|
+
small: "var(--action-icon-only-size-small)",
|
|
76
|
+
medium: "var(--action-icon-only-size)",
|
|
77
|
+
large: "var(--action-icon-only-size-large)"
|
|
78
|
+
}[t] || "var(--action-icon-only-size)", z = (s) => {
|
|
79
|
+
if (!s) return;
|
|
80
|
+
s.assignedNodes({ flatten: !0 }).forEach((a) => {
|
|
81
|
+
if (a.nodeType === Node.ELEMENT_NODE) {
|
|
82
|
+
const i = a, c = i.tagName.toLowerCase();
|
|
83
|
+
(c === "mui-button" || c === "mui-link") && (i.setAttribute("usage", "input"), i.setAttribute("size", t), i.style.setProperty("--input-slot-min-height", x), i.removeAttribute("variant"), i.removeAttribute("weight")), c === "mui-chip" && (i.setAttribute("usage", "input"), i.setAttribute("size", t)), c === "mui-addon" && i.setAttribute("size", t);
|
|
78
84
|
}
|
|
79
85
|
});
|
|
80
86
|
};
|
|
81
|
-
|
|
82
|
-
|
|
87
|
+
z(o), z(h);
|
|
88
|
+
const L = {
|
|
89
|
+
"x-small": "xx-small",
|
|
90
|
+
small: "x-small",
|
|
91
|
+
medium: "x-small",
|
|
92
|
+
large: "small"
|
|
93
|
+
}, v = {
|
|
94
|
+
"x-small": "x-small",
|
|
95
|
+
small: "x-small",
|
|
96
|
+
medium: "small",
|
|
97
|
+
large: "medium"
|
|
98
|
+
}, b = L[t] || "x-small", w = v[t] || "small", C = (s) => {
|
|
99
|
+
s && s.assignedNodes({ flatten: !0 }).forEach((u) => {
|
|
100
|
+
if (u.nodeType !== Node.ELEMENT_NODE) return;
|
|
101
|
+
const a = u, i = a.tagName.toLowerCase();
|
|
102
|
+
if (i === "mui-hint") {
|
|
103
|
+
a.removeAttribute("aria-hidden");
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
i.startsWith("mui-icon-") && a.setAttribute("size", b), i === "mui-badge" && a.setAttribute("size", w), a.setAttribute("aria-hidden", "true");
|
|
107
|
+
});
|
|
108
|
+
};
|
|
109
|
+
if (C(N), C(g), l) {
|
|
110
|
+
const s = {
|
|
83
111
|
"x-small": "xx-small",
|
|
84
112
|
small: "x-small",
|
|
85
113
|
medium: "x-small",
|
|
86
114
|
large: "small"
|
|
87
|
-
},
|
|
115
|
+
}, u = {
|
|
88
116
|
"x-small": "x-small",
|
|
89
117
|
small: "x-small",
|
|
90
118
|
medium: "small",
|
|
91
119
|
large: "medium"
|
|
92
|
-
},
|
|
93
|
-
|
|
94
|
-
if (
|
|
95
|
-
const
|
|
96
|
-
if (
|
|
97
|
-
|
|
120
|
+
}, a = s[t] || "x-small", i = u[t] || "small";
|
|
121
|
+
l.assignedNodes({ flatten: !0 }).forEach((c) => {
|
|
122
|
+
if (c.nodeType !== Node.ELEMENT_NODE) return;
|
|
123
|
+
const p = c, $ = p.tagName.toLowerCase();
|
|
124
|
+
if ($ === "mui-hint") {
|
|
125
|
+
p.removeAttribute("aria-hidden");
|
|
98
126
|
return;
|
|
99
127
|
}
|
|
100
|
-
|
|
128
|
+
$.startsWith("mui-icon-") && !p.hasAttribute("size") && p.setAttribute("size", a), $ === "mui-badge" && !p.hasAttribute("size") && p.setAttribute("size", i), p.setAttribute("aria-hidden", "true");
|
|
101
129
|
});
|
|
102
130
|
}
|
|
131
|
+
(f = this._slotResizeObserver) == null || f.disconnect();
|
|
132
|
+
const d = (m = this.shadowRoot) == null ? void 0 : m.querySelector(".inside-before-slot"), n = (R = this.shadowRoot) == null ? void 0 : R.querySelector(".inside-after-cluster"), y = () => {
|
|
133
|
+
const s = (d == null ? void 0 : d.offsetWidth) || 0, u = (n == null ? void 0 : n.offsetWidth) || 0;
|
|
134
|
+
this.style.setProperty("--input-inside-before-space", `${s}px`), this.style.setProperty("--input-inside-after-space", `${u}px`);
|
|
135
|
+
};
|
|
136
|
+
y(), typeof ResizeObserver < "u" && (this._slotResizeObserver = new ResizeObserver(() => y()), d && this._slotResizeObserver.observe(d), n && this._slotResizeObserver.observe(n));
|
|
103
137
|
});
|
|
104
138
|
}
|
|
105
139
|
render() {
|
|
106
|
-
const
|
|
140
|
+
const e = [
|
|
107
141
|
"text",
|
|
108
142
|
"password",
|
|
109
143
|
"email",
|
|
@@ -116,7 +150,14 @@ class S extends HTMLElement {
|
|
|
116
150
|
"datetime-local",
|
|
117
151
|
"month",
|
|
118
152
|
"week"
|
|
119
|
-
], r = this.getAttribute("type") || "text",
|
|
153
|
+
], r = this.getAttribute("type") || "text", t = e.includes(r) ? r : "text", o = this.getAttribute("name") || "", h = this.getAttribute("value") || "", N = this.getAttribute("placeholder") || "", g = this.getAttribute("id") || `mui-input-${Math.random().toString(36).substr(2, 9)}`, l = this.getAttribute("label") || "", k = this.hasAttribute("optional"), x = this.hasAttribute("hide-label"), z = this.hasAttribute("disabled"), L = x && l ? `aria-label="${l}"` : "", v = this.getAttribute("max-length"), b = v && Number(v) > 0 ? String(Number(v)) : "", w = this.getAttribute("size") || "medium", d = ["x-small", "small", "medium", "large"].includes(w) ? w : "medium", n = this.getAttribute("variant") || "", y = n || "", E = (this.getAttribute("slot-layout") || "inline") === "stack-mobile" ? "input-wrapper stack-mobile" : "input-wrapper", S = this.querySelector('[slot="before"]') !== null, A = this.querySelector('[slot="after"]') !== null, O = this.querySelector('[slot="inside-before"]') !== null, f = this.querySelector('[slot="inside-after"]') !== null, m = this.querySelector('[slot="hint"]') !== null, R = [
|
|
154
|
+
y,
|
|
155
|
+
S ? "before" : "",
|
|
156
|
+
A ? "after" : "",
|
|
157
|
+
O ? "inside-before" : "",
|
|
158
|
+
f ? "inside-after" : "",
|
|
159
|
+
m ? "hint" : ""
|
|
160
|
+
].filter(Boolean).join(" "), s = (
|
|
120
161
|
/*html*/
|
|
121
162
|
`
|
|
122
163
|
<style>
|
|
@@ -124,6 +165,20 @@ class S extends HTMLElement {
|
|
|
124
165
|
display: inline-block;
|
|
125
166
|
width: 100%;
|
|
126
167
|
container-type: inline-size;
|
|
168
|
+
--input-inline-offset: var(--space-300);
|
|
169
|
+
--input-inline-gap: var(--space-100);
|
|
170
|
+
}
|
|
171
|
+
:host([size="x-small"]) {
|
|
172
|
+
--input-inline-offset: var(--space-200);
|
|
173
|
+
}
|
|
174
|
+
:host([size="small"]) {
|
|
175
|
+
--input-inline-offset: var(--space-300);
|
|
176
|
+
}
|
|
177
|
+
:host([size="medium"]) {
|
|
178
|
+
--input-inline-offset: var(--space-300);
|
|
179
|
+
}
|
|
180
|
+
:host([size="large"]) {
|
|
181
|
+
--input-inline-offset: var(--space-400);
|
|
127
182
|
}
|
|
128
183
|
:host([type="date"]),
|
|
129
184
|
:host([type="time"]),
|
|
@@ -169,11 +224,20 @@ class S extends HTMLElement {
|
|
|
169
224
|
align-items: stretch;
|
|
170
225
|
position: relative;
|
|
171
226
|
}
|
|
227
|
+
.input-shell {
|
|
228
|
+
position: relative;
|
|
229
|
+
flex: 1 1 auto;
|
|
230
|
+
min-width: 0;
|
|
231
|
+
display: flex;
|
|
232
|
+
align-items: stretch;
|
|
233
|
+
}
|
|
172
234
|
.input-wrapper.stack-mobile {
|
|
173
235
|
display: flex;
|
|
174
236
|
}
|
|
175
237
|
.before-slot,
|
|
176
238
|
.after-slot,
|
|
239
|
+
.inside-before-slot,
|
|
240
|
+
.inside-after-slot,
|
|
177
241
|
.hint-slot {
|
|
178
242
|
display: inline-flex;
|
|
179
243
|
align-items: stretch;
|
|
@@ -184,12 +248,12 @@ class S extends HTMLElement {
|
|
|
184
248
|
scrollbar-width: thin;
|
|
185
249
|
flex: 0 1 auto;
|
|
186
250
|
}
|
|
187
|
-
.
|
|
251
|
+
.inside-before-slot {
|
|
188
252
|
position: absolute;
|
|
189
|
-
|
|
253
|
+
left: var(--input-inline-offset);
|
|
190
254
|
top: 50%;
|
|
191
255
|
transform: translateY(-50%);
|
|
192
|
-
z-index:
|
|
256
|
+
z-index: 2;
|
|
193
257
|
pointer-events: none;
|
|
194
258
|
display: inline-flex;
|
|
195
259
|
align-items: center;
|
|
@@ -199,14 +263,28 @@ class S extends HTMLElement {
|
|
|
199
263
|
overflow: visible;
|
|
200
264
|
flex: 0 0 auto;
|
|
201
265
|
}
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
266
|
+
.inside-after-cluster {
|
|
267
|
+
position: absolute;
|
|
268
|
+
right: var(--input-inline-offset);
|
|
269
|
+
top: 50%;
|
|
270
|
+
transform: translateY(-50%);
|
|
271
|
+
z-index: 2;
|
|
272
|
+
display: inline-flex;
|
|
273
|
+
align-items: center;
|
|
274
|
+
justify-content: center;
|
|
275
|
+
gap: var(--space-100);
|
|
276
|
+
overflow: visible;
|
|
277
|
+
flex: 0 0 auto;
|
|
207
278
|
}
|
|
208
|
-
|
|
209
|
-
|
|
279
|
+
.hint-slot {
|
|
280
|
+
pointer-events: none;
|
|
281
|
+
display: inline-flex;
|
|
282
|
+
align-items: center;
|
|
283
|
+
justify-content: center;
|
|
284
|
+
color: var(--text-color-optional);
|
|
285
|
+
gap: var(--space-100);
|
|
286
|
+
overflow: visible;
|
|
287
|
+
flex: 0 0 auto;
|
|
210
288
|
}
|
|
211
289
|
.before-slot {
|
|
212
290
|
max-width: none;
|
|
@@ -237,9 +315,12 @@ class S extends HTMLElement {
|
|
|
237
315
|
overflow-y: visible;
|
|
238
316
|
}
|
|
239
317
|
.input-wrapper.stack-mobile .hint-slot {
|
|
240
|
-
|
|
318
|
+
position: static;
|
|
319
|
+
transform: none;
|
|
320
|
+
}
|
|
321
|
+
.input-wrapper.stack-mobile .inside-before-slot,
|
|
322
|
+
.input-wrapper.stack-mobile .inside-after-cluster {
|
|
241
323
|
top: calc(var(--action-icon-only-size) / 2);
|
|
242
|
-
transform: translateY(-50%);
|
|
243
324
|
}
|
|
244
325
|
.input-wrapper.stack-mobile slot[name="before"]::slotted(mui-addon),
|
|
245
326
|
.input-wrapper.stack-mobile slot[name="after"]::slotted(mui-addon) {
|
|
@@ -336,36 +417,56 @@ class S extends HTMLElement {
|
|
|
336
417
|
padding: var(--action-padding-x-small);
|
|
337
418
|
font-size: var(--text-font-size-xs);
|
|
338
419
|
line-height: var(--text-line-height-xs);
|
|
420
|
+
--input-inline-padding-current: var(--space-200);
|
|
421
|
+
}
|
|
422
|
+
input.size-x-small.inside-before:not(.before) {
|
|
423
|
+
padding-left: calc(var(--input-inline-padding-current) + var(--input-inside-before-space, 0px) + var(--input-inline-gap));
|
|
339
424
|
}
|
|
425
|
+
input.size-x-small.inside-after:not(.after),
|
|
340
426
|
input.size-x-small.hint:not(.after) {
|
|
341
|
-
padding-right: calc(var(--
|
|
427
|
+
padding-right: calc(var(--input-inline-padding-current) + var(--input-inside-after-space, 0px) + var(--input-inline-gap));
|
|
342
428
|
}
|
|
343
429
|
input.size-small {
|
|
344
430
|
min-height: var(--action-icon-only-size-small);
|
|
345
431
|
padding: var(--action-padding-small);
|
|
346
432
|
font-size: var(--text-font-size-s);
|
|
347
433
|
line-height: var(--text-line-height-s);
|
|
434
|
+
--input-inline-padding-current: var(--space-300);
|
|
435
|
+
}
|
|
436
|
+
input.size-small.inside-before:not(.before) {
|
|
437
|
+
padding-left: calc(var(--input-inline-padding-current) + var(--input-inside-before-space, 0px) + var(--input-inline-gap));
|
|
348
438
|
}
|
|
439
|
+
input.size-small.inside-after:not(.after),
|
|
349
440
|
input.size-small.hint:not(.after) {
|
|
350
|
-
padding-right: calc(var(--
|
|
441
|
+
padding-right: calc(var(--input-inline-padding-current) + var(--input-inside-after-space, 0px) + var(--input-inline-gap));
|
|
351
442
|
}
|
|
352
443
|
input.size-medium {
|
|
353
444
|
min-height: 4.4rem;
|
|
354
445
|
padding: var(--space-200) var(--space-300);
|
|
355
446
|
font-size: var(--text-font-size);
|
|
356
447
|
line-height: var(--text-line-height);
|
|
448
|
+
--input-inline-padding-current: var(--space-300);
|
|
357
449
|
}
|
|
450
|
+
input.size-medium.inside-before:not(.before) {
|
|
451
|
+
padding-left: calc(var(--input-inline-padding-current) + var(--input-inside-before-space, 0px) + var(--input-inline-gap));
|
|
452
|
+
}
|
|
453
|
+
input.size-medium.inside-after:not(.after),
|
|
358
454
|
input.size-medium.hint:not(.after) {
|
|
359
|
-
padding-right: calc(var(--
|
|
455
|
+
padding-right: calc(var(--input-inline-padding-current) + var(--input-inside-after-space, 0px) + var(--input-inline-gap));
|
|
360
456
|
}
|
|
361
457
|
input.size-large {
|
|
362
458
|
min-height: var(--action-icon-only-size-large);
|
|
363
459
|
padding: var(--space-300) var(--space-400);
|
|
364
460
|
font-size: var(--text-font-size-l);
|
|
365
461
|
line-height: var(--text-line-height-l);
|
|
462
|
+
--input-inline-padding-current: var(--space-400);
|
|
463
|
+
}
|
|
464
|
+
input.size-large.inside-before:not(.before) {
|
|
465
|
+
padding-left: calc(var(--input-inline-padding-current) + var(--input-inside-before-space, 0px) + var(--input-inline-gap));
|
|
366
466
|
}
|
|
467
|
+
input.size-large.inside-after:not(.after),
|
|
367
468
|
input.size-large.hint:not(.after) {
|
|
368
|
-
padding-right: calc(var(--
|
|
469
|
+
padding-right: calc(var(--input-inline-padding-current) + var(--input-inside-after-space, 0px) + var(--input-inline-gap));
|
|
369
470
|
}
|
|
370
471
|
input:hover {
|
|
371
472
|
border-color: var(--form-default-border-color-hover);
|
|
@@ -487,9 +588,13 @@ class S extends HTMLElement {
|
|
|
487
588
|
slot[name="before"]::slotted(*:focus),
|
|
488
589
|
input:focus,
|
|
489
590
|
slot[name="after"]::slotted(*:focus),
|
|
591
|
+
slot[name="inside-before"]::slotted(*:focus),
|
|
592
|
+
slot[name="inside-after"]::slotted(*:focus),
|
|
490
593
|
slot[name="before"]::slotted(*:hover),
|
|
491
594
|
input:hover,
|
|
492
|
-
slot[name="after"]::slotted(*:hover)
|
|
595
|
+
slot[name="after"]::slotted(*:hover),
|
|
596
|
+
slot[name="inside-before"]::slotted(*:hover),
|
|
597
|
+
slot[name="inside-after"]::slotted(*:hover) { z-index: 1; }
|
|
493
598
|
|
|
494
599
|
/* Ensure feedback styles appear above SELECT and focusable Items */
|
|
495
600
|
input.success,
|
|
@@ -502,10 +607,17 @@ class S extends HTMLElement {
|
|
|
502
607
|
/* Slotted items */
|
|
503
608
|
slot[name="before"]::slotted(*),
|
|
504
609
|
slot[name="after"]::slotted(*) { flex: none; }
|
|
610
|
+
slot[name="inside-before"]::slotted(*),
|
|
611
|
+
slot[name="inside-after"]::slotted(*) {
|
|
612
|
+
flex: none;
|
|
613
|
+
pointer-events: none;
|
|
614
|
+
}
|
|
505
615
|
slot[name="hint"]::slotted(*) {
|
|
506
616
|
flex: none;
|
|
507
617
|
pointer-events: none;
|
|
508
618
|
}
|
|
619
|
+
slot[name="inside-before"]::slotted(mui-hint),
|
|
620
|
+
slot[name="inside-after"]::slotted(mui-hint),
|
|
509
621
|
slot[name="hint"]::slotted(mui-hint) {
|
|
510
622
|
pointer-events: auto;
|
|
511
623
|
}
|
|
@@ -514,33 +626,43 @@ class S extends HTMLElement {
|
|
|
514
626
|
|
|
515
627
|
|
|
516
628
|
</style>
|
|
517
|
-
${
|
|
518
|
-
<div class="${
|
|
629
|
+
${l ? `<label for="${g}" class="${[x ? "vh" : "", k ? "label-with-optional" : ""].filter(Boolean).join(" ")}">${l}${k ? ' <span class="optional"><span class="optional-dot" aria-hidden="true">•</span><span class="optional-text">Optional</span></span>' : ""}</label>` : ""}
|
|
630
|
+
<div class="${E}">
|
|
519
631
|
<div class="before-slot">
|
|
520
632
|
<slot name="before"></slot>
|
|
521
633
|
</div>
|
|
522
|
-
<input
|
|
523
|
-
class="
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
634
|
+
<div class="input-shell">
|
|
635
|
+
<div class="inside-before-slot">
|
|
636
|
+
<slot name="inside-before"></slot>
|
|
637
|
+
</div>
|
|
638
|
+
<input
|
|
639
|
+
class="${[R, `size-${d}`].filter(Boolean).join(" ")}"
|
|
640
|
+
type="${t}"
|
|
641
|
+
name="${o}"
|
|
642
|
+
id="${g}"
|
|
643
|
+
value="${h}"
|
|
644
|
+
placeholder="${N}"
|
|
645
|
+
${z ? 'disabled aria-disabled="true"' : ""}
|
|
646
|
+
${b ? `maxlength="${b}"` : ""}
|
|
647
|
+
${L}
|
|
648
|
+
/>
|
|
649
|
+
${f || m ? `<div class="inside-after-cluster">
|
|
650
|
+
${f ? `<div class="inside-after-slot">
|
|
651
|
+
<slot name="inside-after"></slot>
|
|
652
|
+
</div>` : ""}
|
|
653
|
+
${m ? `<div class="hint-slot">
|
|
654
|
+
<slot name="hint"></slot>
|
|
655
|
+
</div>` : ""}
|
|
656
|
+
</div>` : ""}
|
|
535
657
|
</div>
|
|
536
658
|
<div class="after-slot">
|
|
537
659
|
<slot name="after"></slot>
|
|
538
660
|
</div>
|
|
539
661
|
</div>
|
|
540
|
-
${
|
|
662
|
+
${b ? '<div class="meta"><span class="char-count"></span></div>' : ""}
|
|
541
663
|
`
|
|
542
664
|
);
|
|
543
|
-
this.shadowRoot && (this.shadowRoot.innerHTML =
|
|
665
|
+
this.shadowRoot && (this.shadowRoot.innerHTML = s, this.updateSlottedButtons());
|
|
544
666
|
}
|
|
545
667
|
}
|
|
546
|
-
customElements.get("mui-input") || customElements.define("mui-input",
|
|
668
|
+
customElements.get("mui-input") || customElements.define("mui-input", I);
|