@nldd/design-system 0.21.0 → 0.21.1
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/custom-elements.json +157 -2
- package/dist/cdn/autoloader.js +22 -22
- package/dist/cdn/chunks/{avatar-group-rknt4FBO.js → avatar-group-GinEMPm9.js} +1 -1
- package/dist/cdn/chunks/{combo-box-DyBQSaQl.js → combo-box-OywRKaWj.js} +1 -1
- package/dist/cdn/chunks/{date-field-Clti_wKN.js → date-field-vmZLo80s.js} +79 -71
- package/dist/cdn/chunks/{date-picker-2TCQLd5D.js → date-picker-CXDzSBoL.js} +1 -1
- package/dist/cdn/chunks/{document-tab-bar-CUc4WWY3.js → document-tab-bar-A2DFWrP9.js} +1 -1
- package/dist/cdn/chunks/{file-field-Bff6_1pp.js → file-field-DQ52qq5L.js} +1 -1
- package/dist/cdn/chunks/{identity-Cg1l0HhB.js → identity-BLXecYsZ.js} +1 -1
- package/dist/cdn/chunks/{menu-BOu_pD1Q.js → menu-BtxzRedh.js} +1 -1
- package/dist/cdn/chunks/{menu-bar-0NFXvq-v.js → menu-bar-BU3Hjk1b.js} +2 -2
- package/dist/cdn/chunks/{menu-bar-item-DGSC_ETi.js → menu-bar-item-C7LQ0NI_.js} +1 -1
- package/dist/cdn/chunks/{popover-C-CVVtfl.js → popover-CGbeEv_-.js} +31 -31
- package/dist/cdn/chunks/{return-focus-Xmagtk6r.js → return-focus-BzZWhXhc.js} +21 -16
- package/dist/cdn/chunks/{sheet-BdVCqm2H.js → sheet-CqN7ViYV.js} +1 -1
- package/dist/cdn/chunks/{sidebar-section-DP4jnS7g.js → sidebar-section-CFPBdETU.js} +1 -1
- package/dist/cdn/chunks/{split-button-BeXnOUTt.js → split-button-DH19p8So.js} +1 -1
- package/dist/cdn/chunks/{tab-bar-DmslEoPD.js → tab-bar-CA8K1XjU.js} +1 -1
- package/dist/cdn/chunks/{time-field-Cj5WojfO.js → time-field--5K0YTcr.js} +85 -75
- package/dist/cdn/chunks/{token-field-hvDB3l6O.js → token-field-BpyxOGmU.js} +1 -1
- package/dist/cdn/chunks/{toolbar-iNd1VmuG.js → toolbar-C24LqAzK.js} +1 -1
- package/dist/cdn/chunks/{top-navigation-bar-D1hjWIF3.js → top-navigation-bar-C_kLPVKD.js} +3 -3
- package/dist/cdn/chunks/{window-t5iFkMLY.js → window-CxV6ELE9.js} +1 -1
- package/dist/components/content/blockquote/blockquote.d.ts +1 -0
- package/dist/components/content/blockquote/blockquote.d.ts.map +1 -1
- package/dist/components/content/blockquote/blockquote.js +1 -0
- package/dist/components/content/blockquote/blockquote.js.map +1 -1
- package/dist/components/content/identity/identity.d.ts +1 -0
- package/dist/components/content/identity/identity.d.ts.map +1 -1
- package/dist/components/content/identity/identity.js +1 -0
- package/dist/components/content/identity/identity.js.map +1 -1
- package/dist/components/content/image/image.d.ts +1 -0
- package/dist/components/content/image/image.d.ts.map +1 -1
- package/dist/components/content/image/image.js +1 -0
- package/dist/components/content/image/image.js.map +1 -1
- package/dist/components/content/rich-text/rich-text.d.ts +1 -0
- package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
- package/dist/components/content/rich-text/rich-text.js +1 -0
- package/dist/components/content/rich-text/rich-text.js.map +1 -1
- package/dist/components/content/text/text.d.ts +1 -0
- package/dist/components/content/text/text.d.ts.map +1 -1
- package/dist/components/content/text/text.js +1 -0
- package/dist/components/content/text/text.js.map +1 -1
- package/dist/components/content/title/title.d.ts +1 -0
- package/dist/components/content/title/title.d.ts.map +1 -1
- package/dist/components/content/title/title.js +1 -0
- package/dist/components/content/title/title.js.map +1 -1
- package/dist/components/forms/form/form.d.ts.map +1 -1
- package/dist/components/forms/form/form.js +1 -0
- package/dist/components/forms/form/form.js.map +1 -1
- package/dist/components/forms/form-field/form-field.d.ts +1 -0
- package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.js +1 -0
- package/dist/components/forms/form-field/form-field.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.d.ts +9 -4
- package/dist/components/inputs/date-field/date-field.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.js +20 -7
- package/dist/components/inputs/date-field/date-field.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.template.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.template.js +1 -0
- package/dist/components/inputs/date-field/date-field.template.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.d.ts +1 -0
- package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.js +1 -0
- package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.d.ts +4 -0
- package/dist/components/inputs/time-field/time-field.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.js +17 -2
- package/dist/components/inputs/time-field/time-field.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.template.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.template.js +1 -0
- package/dist/components/inputs/time-field/time-field.template.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.d.ts +1 -0
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +1 -0
- package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
- package/dist/components/layout/popover/popover.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.js +4 -2
- package/dist/components/layout/popover/popover.js.map +1 -1
- package/dist/nldd.min.js +668 -666
- package/dist/utilities/return-focus.d.ts +14 -0
- package/dist/utilities/return-focus.d.ts.map +1 -1
- package/dist/utilities/return-focus.js +26 -8
- package/dist/utilities/return-focus.js.map +1 -1
- package/lint/data.generated.json +1 -1
- package/lint/engine.js +53 -1
- package/lint/format.js +6 -5
- package/lint/frontends.js +224 -16
- package/lint/linter.js +5 -3
- package/lint/main.js +36 -9
- package/lint/project.js +73 -4
- package/lint/rule-data.js +17 -2
- package/lint/tree.js +3 -0
- package/package.json +1 -1
|
@@ -5,25 +5,30 @@ function t() {
|
|
|
5
5
|
for (; e?.shadowRoot?.activeElement;) e = e.shadowRoot.activeElement;
|
|
6
6
|
return e;
|
|
7
7
|
}
|
|
8
|
-
function n(
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
8
|
+
function n(e, t) {
|
|
9
|
+
e && e !== document.body && e.isConnected && (i(t) || i(e)) && r(e);
|
|
10
|
+
}
|
|
11
|
+
function r(n) {
|
|
12
|
+
if (!e() || o(n)) {
|
|
13
|
+
n.focus();
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
let r = t();
|
|
17
|
+
if (r && a(r, n)) {
|
|
18
|
+
if (!r.matches(":focus-visible") || o(r)) return;
|
|
19
|
+
r.blur();
|
|
20
20
|
}
|
|
21
|
+
n.focus({ focusVisible: !1 });
|
|
21
22
|
}
|
|
22
|
-
function
|
|
23
|
+
function i(e) {
|
|
24
|
+
let n = t();
|
|
25
|
+
return !n || n === document.body || a(n, e);
|
|
26
|
+
}
|
|
27
|
+
function a(e, t) {
|
|
23
28
|
for (let n = e; n; n = n.parentNode ?? (n instanceof ShadowRoot ? n.host : null)) if (n === t) return !0;
|
|
24
29
|
return !1;
|
|
25
30
|
}
|
|
26
|
-
function
|
|
31
|
+
function o(e) {
|
|
27
32
|
return e.isContentEditable || e instanceof HTMLTextAreaElement ? !0 : e instanceof HTMLInputElement && ![
|
|
28
33
|
"button",
|
|
29
34
|
"checkbox",
|
|
@@ -36,7 +41,7 @@ function i(e) {
|
|
|
36
41
|
"submit"
|
|
37
42
|
].includes(e.type);
|
|
38
43
|
}
|
|
39
|
-
var
|
|
44
|
+
var s = class {
|
|
40
45
|
constructor() {
|
|
41
46
|
this._target = null, this._fallback = null;
|
|
42
47
|
}
|
|
@@ -49,4 +54,4 @@ var a = class {
|
|
|
49
54
|
this._target = null, this._fallback = null, n(t, e);
|
|
50
55
|
}
|
|
51
56
|
};
|
|
52
|
-
export {
|
|
57
|
+
export { r as n, i as r, s as t };
|
|
@@ -5,7 +5,7 @@ import { t as s } from "./reflect-non-default-Bu3rpCvg.js";
|
|
|
5
5
|
import { r as c } from "./element-state-B-44fVqq.js";
|
|
6
6
|
import { n as l } from "./input-modality-XE0B7yCn.js";
|
|
7
7
|
import { n as u } from "./breakpoints-Cwor8TRP.js";
|
|
8
|
-
import { t as d } from "./return-focus-
|
|
8
|
+
import { t as d } from "./return-focus-BzZWhXhc.js";
|
|
9
9
|
import { t as f } from "./dismiss-from-title-bar-C6mP7sWP.js";
|
|
10
10
|
import { n as p, t as m } from "./open-when-rendered-CW_2_WUZ.js";
|
|
11
11
|
import { t as h } from "./title-bar-label-controller-DSxdKZOg.js";
|
|
@@ -9,7 +9,7 @@ import "./page-CBf_Decp.js";
|
|
|
9
9
|
import "./top-title-bar-iNFB2zQL.js";
|
|
10
10
|
import { n as p, t as m } from "./page-section-mixin-Dp6X8GKd.js";
|
|
11
11
|
import { t as h } from "./sidebar-section.i18n-BuGfRMpD.js";
|
|
12
|
-
import "./sheet-
|
|
12
|
+
import "./sheet-CqN7ViYV.js";
|
|
13
13
|
import { n as g, r as _, t as v } from "./focus-target-DSLGcCWq.js";
|
|
14
14
|
// src/components/layout/page-sections/sidebar-section/sidebar-section.styles.ts
|
|
15
15
|
var y = e(d.smMax), b = e(d.mdMin), x = e(d.mdMax), S = e(d.lgMin), C = t`
|
|
@@ -9,7 +9,7 @@ import { n as u } from "./popover-target-B25dxnmt.js";
|
|
|
9
9
|
import { t as d } from "./translations-wxBSz213.js";
|
|
10
10
|
import { t as f } from "./owner-form-Cq8tT7ac.js";
|
|
11
11
|
import "./icon-button-rKiIHs7A.js";
|
|
12
|
-
import "./menu-
|
|
12
|
+
import "./menu-BtxzRedh.js";
|
|
13
13
|
import { t as p } from "./split-button.i18n-DtClSMga.js";
|
|
14
14
|
// src/components/actions/split-button/split-button.styles.ts
|
|
15
15
|
var m = e`
|
|
@@ -10,7 +10,7 @@ import { t as f } from "./defer-focus-F73ud2D9.js";
|
|
|
10
10
|
import "./icon-button-rKiIHs7A.js";
|
|
11
11
|
import "./tooltip-BsAHJjci.js";
|
|
12
12
|
import { t as p } from "./sanitize-url-CBuGmY0W.js";
|
|
13
|
-
import "./menu-
|
|
13
|
+
import "./menu-BtxzRedh.js";
|
|
14
14
|
import { t as m } from "./tab-bar.i18n-Crsc7ShA.js";
|
|
15
15
|
// src/components/navigation/tab-bar/tab-bar.styles.ts
|
|
16
16
|
var h = e`
|
|
@@ -9,16 +9,17 @@ import { t as d } from "./translations-wxBSz213.js";
|
|
|
9
9
|
import { t as f } from "./described-by-mixin-daRE7orX.js";
|
|
10
10
|
import "./icon-button-rKiIHs7A.js";
|
|
11
11
|
import { n as p } from "./breakpoints-Cwor8TRP.js";
|
|
12
|
-
import "./
|
|
12
|
+
import { n as m, r as h } from "./return-focus-BzZWhXhc.js";
|
|
13
|
+
import "./popover-CGbeEv_-.js";
|
|
13
14
|
import "./container-rrbwk0z4.js";
|
|
14
15
|
import "./top-title-bar-iNFB2zQL.js";
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
16
|
+
import { t as g } from "./form-associated-mixin--GIbl98p.js";
|
|
17
|
+
import { t as _ } from "./implicit-submission-Csbcor_E.js";
|
|
17
18
|
import "./spacer-CFzq_JCh.js";
|
|
18
19
|
import "./time-picker-W0xYXLy8.js";
|
|
19
|
-
import { t as
|
|
20
|
+
import { t as v } from "./time-field.i18n-CLH5vmS7.js";
|
|
20
21
|
// src/components/inputs/time-field/time-field.styles.ts
|
|
21
|
-
var
|
|
22
|
+
var y = e(p.mdMin), b = t`
|
|
22
23
|
:host {
|
|
23
24
|
box-sizing: border-box;
|
|
24
25
|
}
|
|
@@ -212,13 +213,13 @@ var _ = e(p.mdMin), v = t`
|
|
|
212
213
|
}
|
|
213
214
|
|
|
214
215
|
|
|
215
|
-
@media (min-width: ${
|
|
216
|
+
@media (min-width: ${y}) {
|
|
216
217
|
.time-field__picker-button nldd-top-title-bar {
|
|
217
218
|
display: none;
|
|
218
219
|
}
|
|
219
220
|
}
|
|
220
|
-
`,
|
|
221
|
-
function
|
|
221
|
+
`, x = "calc(var(--semantics-controls-md-min-size) * 3 + var(--primitives-space-48) + var(--primitives-space-16) * 2)";
|
|
222
|
+
function S(e) {
|
|
222
223
|
let t = e.invalid ? "invalid" : e.valid ? "valid" : "";
|
|
223
224
|
return t ? a`
|
|
224
225
|
<div class="time-field__validation-icon-area">
|
|
@@ -231,7 +232,7 @@ function b(e) {
|
|
|
231
232
|
</div>
|
|
232
233
|
` : o;
|
|
233
234
|
}
|
|
234
|
-
function
|
|
235
|
+
function C(e) {
|
|
235
236
|
if (e.noPicker || e.readonly) return o;
|
|
236
237
|
let t = e.size === "sm" ? "xs" : "sm";
|
|
237
238
|
return a`
|
|
@@ -243,12 +244,13 @@ function x(e) {
|
|
|
243
244
|
text=${e._t("components.time-field.to-pick-time-action")}
|
|
244
245
|
tooltip-timing="never"
|
|
245
246
|
?disabled=${e.disabled}
|
|
247
|
+
@mousedown=${e._handlePickerPress}
|
|
246
248
|
@click=${e._handlePickerClick}
|
|
247
249
|
></nldd-icon-button>
|
|
248
250
|
<nldd-popover
|
|
249
251
|
accessible-label=${e._pickerLabel}
|
|
250
252
|
placement="bottom-end"
|
|
251
|
-
width=${
|
|
253
|
+
width=${x}
|
|
252
254
|
@toggle=${e._handlePopoverToggle}
|
|
253
255
|
>
|
|
254
256
|
<nldd-top-title-bar
|
|
@@ -289,7 +291,7 @@ function x(e) {
|
|
|
289
291
|
</div>
|
|
290
292
|
`;
|
|
291
293
|
}
|
|
292
|
-
function
|
|
294
|
+
function w(e) {
|
|
293
295
|
return a`
|
|
294
296
|
<div class="time-field">
|
|
295
297
|
<input class="time-field__input"
|
|
@@ -309,82 +311,82 @@ function S(e) {
|
|
|
309
311
|
@change=${e._handleChange}
|
|
310
312
|
>
|
|
311
313
|
<div class="time-field__input-fade"></div>
|
|
312
|
-
${
|
|
313
|
-
${
|
|
314
|
+
${S(e)}
|
|
315
|
+
${C(e)}
|
|
314
316
|
</div>
|
|
315
317
|
`;
|
|
316
318
|
}
|
|
317
319
|
// src/components/inputs/time-field/time-field.times.ts
|
|
318
|
-
var
|
|
319
|
-
function
|
|
320
|
+
var T = 1439;
|
|
321
|
+
function E(e) {
|
|
320
322
|
let [t, n] = e.split(":");
|
|
321
323
|
return Number(t) * 60 + Number(n);
|
|
322
324
|
}
|
|
323
|
-
function
|
|
325
|
+
function D(e) {
|
|
324
326
|
let t = Math.floor(e / 60), n = e % 60;
|
|
325
327
|
return `${String(t).padStart(2, "0")}:${String(n).padStart(2, "0")}`;
|
|
326
328
|
}
|
|
327
|
-
function
|
|
328
|
-
return e < 0 || e > 23 || t < 0 || t > 59 ? null :
|
|
329
|
+
function O(e, t) {
|
|
330
|
+
return e < 0 || e > 23 || t < 0 || t > 59 ? null : D(e * 60 + t);
|
|
329
331
|
}
|
|
330
|
-
function
|
|
332
|
+
function k(e) {
|
|
331
333
|
let t = e.trim();
|
|
332
334
|
if (t === "") return null;
|
|
333
335
|
let n = /^(\d{1,2})\s*[uh]\s*(\d{1,2})?$/i.exec(t);
|
|
334
|
-
if (n) return
|
|
336
|
+
if (n) return O(Number(n[1]), Number(n[2] ?? 0));
|
|
335
337
|
let r = /^(\d{1,2})\s*[:.,]\s*(\d{1,2})$/.exec(t);
|
|
336
|
-
if (r) return
|
|
338
|
+
if (r) return O(Number(r[1]), Number(r[2]));
|
|
337
339
|
let i = /^\d{1,4}$/.exec(t);
|
|
338
340
|
if (i) {
|
|
339
341
|
let e = i[0];
|
|
340
|
-
if (e.length <= 2) return
|
|
342
|
+
if (e.length <= 2) return O(Number(e), 0);
|
|
341
343
|
let t = e.length === 3 ? 1 : 2;
|
|
342
|
-
return
|
|
344
|
+
return O(Number(e.slice(0, t)), Number(e.slice(t)));
|
|
343
345
|
}
|
|
344
346
|
return null;
|
|
345
347
|
}
|
|
346
|
-
function
|
|
348
|
+
function A(e, t, n = "00:00") {
|
|
347
349
|
if (t <= 1) return e;
|
|
348
|
-
let r =
|
|
349
|
-
for (; i >
|
|
350
|
+
let r = E(n), i = r + Math.floor((E(e) - r) / t + .5) * t;
|
|
351
|
+
for (; i > T;) i -= t;
|
|
350
352
|
for (; i < 0;) i += t;
|
|
351
|
-
return
|
|
353
|
+
return D(i);
|
|
352
354
|
}
|
|
353
|
-
function
|
|
354
|
-
let r =
|
|
355
|
+
function j(e, t, n) {
|
|
356
|
+
let r = k(e) ?? "";
|
|
355
357
|
return {
|
|
356
358
|
min: r,
|
|
357
|
-
max:
|
|
359
|
+
max: k(t) ?? "",
|
|
358
360
|
step: Math.max(1, Math.round(n) || 1),
|
|
359
361
|
base: r || "00:00"
|
|
360
362
|
};
|
|
361
363
|
}
|
|
362
|
-
function
|
|
364
|
+
function M(e, t) {
|
|
363
365
|
return !(t.min && e < t.min || t.max && e > t.max);
|
|
364
366
|
}
|
|
365
|
-
function
|
|
366
|
-
let r =
|
|
367
|
+
function N(e, t, n) {
|
|
368
|
+
let r = k(e);
|
|
367
369
|
if (!r) return "";
|
|
368
|
-
let i = n ?
|
|
369
|
-
return
|
|
370
|
+
let i = n ? A(r, t.step, t.base) : r;
|
|
371
|
+
return M(i, t) ? i : "";
|
|
370
372
|
}
|
|
371
|
-
function
|
|
373
|
+
function P(e, t) {
|
|
372
374
|
if (!e) return null;
|
|
373
|
-
let n =
|
|
374
|
-
return
|
|
375
|
+
let n = E(t.base);
|
|
376
|
+
return D(n + Math.max(0, Math.floor((E(e) - n) / t.step)) * t.step);
|
|
375
377
|
}
|
|
376
|
-
function
|
|
378
|
+
function F(e, t) {
|
|
377
379
|
if (e.min) return e.min;
|
|
378
|
-
let n =
|
|
379
|
-
return !e.max || n <= e.max ? n :
|
|
380
|
+
let n = A(D(t.getHours() * 60 + t.getMinutes()), e.step, e.base);
|
|
381
|
+
return !e.max || n <= e.max ? n : P(e.max, e) ?? n;
|
|
380
382
|
}
|
|
381
|
-
function
|
|
382
|
-
let { step: r } = n, i =
|
|
383
|
-
return
|
|
383
|
+
function I(e, t, n) {
|
|
384
|
+
let { step: r } = n, i = E(n.base), a = E(A(e, r, n.base)), o = a === E(e) || r === 1 ? a + t * r : a, s = Math.min(Math.max(o, i % r), T), c = n.min ? E(n.min) : 0, l = n.max ? E(n.max) : T;
|
|
385
|
+
return D(Math.min(Math.max(s, c), l));
|
|
384
386
|
}
|
|
385
|
-
function
|
|
387
|
+
function L(e, t) {
|
|
386
388
|
if (!e.trim()) return null;
|
|
387
|
-
let n =
|
|
389
|
+
let n = k(e);
|
|
388
390
|
return n ? t.min && n < t.min ? {
|
|
389
391
|
flag: "rangeUnderflow",
|
|
390
392
|
bound: t.min
|
|
@@ -394,31 +396,31 @@ function F(e, t) {
|
|
|
394
396
|
} : null : { flag: "badInput" };
|
|
395
397
|
}
|
|
396
398
|
// src/components/inputs/time-field/time-field.ts
|
|
397
|
-
var
|
|
399
|
+
var R = class extends f(g(i)) {
|
|
398
400
|
constructor(...e) {
|
|
399
401
|
super(...e), this._initialValue = "", this.size = "md", this.value = "", this.min = "", this.max = "", this.step = 1, this.noPicker = !1, this.inputId = "", this.placeholder = "", this.invalid = !1, this.valid = !1, this.disabled = !1, this.readonly = !1, this.required = !1, this.name = "", this.autocomplete = "", this.accessibleLabel = "", this.width = "", this.translations = {}, this._finePointer = !1, this._handlePointerChange = () => {
|
|
400
|
-
this._finePointer =
|
|
402
|
+
this._finePointer = z._getFinePointerQuery().matches;
|
|
401
403
|
}, this._display = "", this._hasSlottedPicker = !1, this._pickerOpen = !1, this._focusTriggerOnClose = !1, this._valueBeforePicker = "", this._pickerState = "untouched", this._pickerSeed = "", this._handlePickerEscape = (e) => {
|
|
402
404
|
e.key === "Escape" && (this._pickerState = "cancelled");
|
|
403
405
|
};
|
|
404
406
|
}
|
|
405
407
|
static _getFinePointerQuery() {
|
|
406
408
|
var e;
|
|
407
|
-
return (e =
|
|
409
|
+
return (e = z)._finePointerQuery ?? (e._finePointerQuery = matchMedia("(pointer: fine)")), z._finePointerQuery;
|
|
408
410
|
}
|
|
409
411
|
get _pickerButtonSize() {
|
|
410
412
|
return this._finePointer ? "sm" : "md";
|
|
411
413
|
}
|
|
412
414
|
connectedCallback() {
|
|
413
415
|
super.connectedCallback();
|
|
414
|
-
let e =
|
|
416
|
+
let e = z._getFinePointerQuery();
|
|
415
417
|
this._finePointer = e.matches, e.addEventListener("change", this._handlePointerChange);
|
|
416
418
|
}
|
|
417
419
|
disconnectedCallback() {
|
|
418
|
-
|
|
420
|
+
z._getFinePointerQuery().removeEventListener("change", this._handlePointerChange), document.removeEventListener("keydown", this._handlePickerEscape, !0), super.disconnectedCallback();
|
|
419
421
|
}
|
|
420
422
|
_t(e) {
|
|
421
|
-
return d(this.translations,
|
|
423
|
+
return d(this.translations, v, e);
|
|
422
424
|
}
|
|
423
425
|
get _fieldLabel() {
|
|
424
426
|
return this.accessibleLabel || this._t("components.time-field.default-label");
|
|
@@ -427,10 +429,10 @@ var I = class extends f(m(i)) {
|
|
|
427
429
|
return this._display;
|
|
428
430
|
}
|
|
429
431
|
get _rules() {
|
|
430
|
-
return
|
|
432
|
+
return j(this.min, this.max, this.step);
|
|
431
433
|
}
|
|
432
434
|
_commit(e, t = !1) {
|
|
433
|
-
return
|
|
435
|
+
return N(e, this._rules, t);
|
|
434
436
|
}
|
|
435
437
|
_handleInput(e) {
|
|
436
438
|
e.stopPropagation();
|
|
@@ -443,9 +445,9 @@ var I = class extends f(m(i)) {
|
|
|
443
445
|
this._display = r, t.value = r, this.value = n, this._emit("change");
|
|
444
446
|
}
|
|
445
447
|
_handleInputKeydown(e) {
|
|
446
|
-
if (
|
|
448
|
+
if (_(this, e) || e.key !== "ArrowUp" && e.key !== "ArrowDown" || this.disabled || this.readonly) return;
|
|
447
449
|
e.preventDefault();
|
|
448
|
-
let t = this._rules, n = this.value ||
|
|
450
|
+
let t = this._rules, n = this.value || k(this._display), r = n ? I(n, e.key === "ArrowUp" ? 1 : -1, t) : F(t, /* @__PURE__ */ new Date());
|
|
449
451
|
this._display = r, this.value = r, this._emit("input"), this._emit("change");
|
|
450
452
|
}
|
|
451
453
|
get _slottedPicker() {
|
|
@@ -463,6 +465,9 @@ var I = class extends f(m(i)) {
|
|
|
463
465
|
get _pickerLabel() {
|
|
464
466
|
return this.accessibleLabel || this._t("components.time-field.to-pick-time-action");
|
|
465
467
|
}
|
|
468
|
+
_handlePickerPress(e) {
|
|
469
|
+
e.preventDefault();
|
|
470
|
+
}
|
|
466
471
|
_handlePickerClick() {
|
|
467
472
|
this._pickerOpen ? this._popover?.hide() : this._popover?.show();
|
|
468
473
|
}
|
|
@@ -470,10 +475,15 @@ var I = class extends f(m(i)) {
|
|
|
470
475
|
return this.value || this._pickerSeed;
|
|
471
476
|
}
|
|
472
477
|
_handlePopoverToggle(e) {
|
|
473
|
-
this._pickerOpen = e.newState === "open", this._pickerOpen ? this._openPicker() : this._settlePicker(),
|
|
478
|
+
if (this._pickerOpen = e.newState === "open", this._pickerOpen ? this._openPicker() : this._settlePicker(), this._pickerOpen) return;
|
|
479
|
+
let t = this._focusTriggerOnClose;
|
|
480
|
+
this._focusTriggerOnClose = !1, queueMicrotask(() => {
|
|
481
|
+
let e = this._pickerTrigger;
|
|
482
|
+
e && (t || h(this)) && m(e);
|
|
483
|
+
});
|
|
474
484
|
}
|
|
475
485
|
_openPicker() {
|
|
476
|
-
this._valueBeforePicker = this.value, this._pickerState = "untouched", this._pickerSeed = this.value ||
|
|
486
|
+
this._valueBeforePicker = this.value, this._pickerState = "untouched", this._pickerSeed = this.value || F(this._rules, /* @__PURE__ */ new Date()), document.addEventListener("keydown", this._handlePickerEscape, !0), this.updateComplete.then(async () => {
|
|
477
487
|
let e = this._slottedPicker ?? this.shadowRoot?.querySelector("nldd-time-picker");
|
|
478
488
|
e && (await e.updateComplete, e.scrollSelectedIntoView());
|
|
479
489
|
});
|
|
@@ -510,7 +520,7 @@ var I = class extends f(m(i)) {
|
|
|
510
520
|
return this.value;
|
|
511
521
|
}
|
|
512
522
|
ownValidity() {
|
|
513
|
-
let e =
|
|
523
|
+
let e = L(this._display, this._rules);
|
|
514
524
|
return e ? {
|
|
515
525
|
flags: { [e.flag]: !0 },
|
|
516
526
|
message: this._problemMessage(e)
|
|
@@ -550,48 +560,48 @@ var I = class extends f(m(i)) {
|
|
|
550
560
|
}
|
|
551
561
|
}
|
|
552
562
|
render() {
|
|
553
|
-
return
|
|
563
|
+
return w(this);
|
|
554
564
|
}
|
|
555
|
-
},
|
|
565
|
+
}, z = R, B = (R.shadowRootOptions = {
|
|
556
566
|
...i.shadowRootOptions,
|
|
557
567
|
delegatesFocus: !0
|
|
558
|
-
},
|
|
568
|
+
}, R.styles = b, R.isFormInput = !0, R.blocksImplicitSubmission = !0, R._finePointerQuery = null, R);
|
|
559
569
|
s([n({
|
|
560
570
|
reflect: !0,
|
|
561
571
|
converter: l("md")
|
|
562
|
-
})],
|
|
572
|
+
})], B.prototype, "size", void 0), s([n({ type: String })], B.prototype, "value", void 0), s([n({ type: String })], B.prototype, "min", void 0), s([n({ type: String })], B.prototype, "max", void 0), s([n({ type: Number })], B.prototype, "step", void 0), s([n({
|
|
563
573
|
type: Boolean,
|
|
564
574
|
reflect: !0,
|
|
565
575
|
attribute: "no-picker"
|
|
566
|
-
})],
|
|
576
|
+
})], B.prototype, "noPicker", void 0), s([n({
|
|
567
577
|
type: String,
|
|
568
578
|
attribute: "input-id"
|
|
569
|
-
})],
|
|
579
|
+
})], B.prototype, "inputId", void 0), s([n({
|
|
570
580
|
reflect: !0,
|
|
571
581
|
converter: l("")
|
|
572
|
-
})],
|
|
582
|
+
})], B.prototype, "placeholder", void 0), s([n({
|
|
573
583
|
type: Boolean,
|
|
574
584
|
reflect: !0
|
|
575
|
-
})],
|
|
585
|
+
})], B.prototype, "invalid", void 0), s([n({
|
|
576
586
|
type: Boolean,
|
|
577
587
|
reflect: !0
|
|
578
|
-
})],
|
|
588
|
+
})], B.prototype, "valid", void 0), s([n({
|
|
579
589
|
type: Boolean,
|
|
580
590
|
reflect: !0
|
|
581
|
-
})],
|
|
591
|
+
})], B.prototype, "disabled", void 0), s([n({
|
|
582
592
|
type: Boolean,
|
|
583
593
|
reflect: !0
|
|
584
|
-
})],
|
|
594
|
+
})], B.prototype, "readonly", void 0), s([n({
|
|
585
595
|
type: Boolean,
|
|
586
596
|
reflect: !0
|
|
587
|
-
})],
|
|
597
|
+
})], B.prototype, "required", void 0), s([n({
|
|
588
598
|
reflect: !0,
|
|
589
599
|
converter: l("")
|
|
590
|
-
})],
|
|
600
|
+
})], B.prototype, "name", void 0), s([n({ type: String })], B.prototype, "autocomplete", void 0), s([n({
|
|
591
601
|
type: String,
|
|
592
602
|
attribute: "accessible-label"
|
|
593
|
-
})],
|
|
603
|
+
})], B.prototype, "accessibleLabel", void 0), s([n({
|
|
594
604
|
reflect: !0,
|
|
595
605
|
converter: l("")
|
|
596
|
-
})],
|
|
597
|
-
export {
|
|
606
|
+
})], B.prototype, "width", void 0), s([n({ type: Object })], B.prototype, "translations", void 0), s([r()], B.prototype, "_finePointer", void 0), s([r()], B.prototype, "_display", void 0), s([r()], B.prototype, "_hasSlottedPicker", void 0), s([r()], B.prototype, "_pickerOpen", void 0), s([r()], B.prototype, "_pickerSeed", void 0), B = z = s([c("nldd-time-field")], B);
|
|
607
|
+
export { B as NLDDTimeField, k as parseTime, A as roundToStep };
|
|
@@ -8,7 +8,7 @@ import { t as u } from "./translations-wxBSz213.js";
|
|
|
8
8
|
import { t as d } from "./described-by-mixin-daRE7orX.js";
|
|
9
9
|
import { t as f } from "./defer-focus-F73ud2D9.js";
|
|
10
10
|
import "./icon-button-rKiIHs7A.js";
|
|
11
|
-
import "./menu-
|
|
11
|
+
import "./menu-BtxzRedh.js";
|
|
12
12
|
import "./token-CnkEB3hB.js";
|
|
13
13
|
import { t as p } from "./form-associated-mixin--GIbl98p.js";
|
|
14
14
|
import { t as m } from "./implicit-submission-Csbcor_E.js";
|
|
@@ -4,7 +4,7 @@ import { t as o } from "./custom-element-BW8Ua4c7.js";
|
|
|
4
4
|
import { t as s } from "./reflect-non-default-Bu3rpCvg.js";
|
|
5
5
|
import { t as c } from "./translations-wxBSz213.js";
|
|
6
6
|
import "./icon-button-rKiIHs7A.js";
|
|
7
|
-
import "./menu-
|
|
7
|
+
import "./menu-BtxzRedh.js";
|
|
8
8
|
import { n as l } from "./toolbar.styles-BQkG4gVc.js";
|
|
9
9
|
import { NLDDToolbarItem as u } from "./toolbar-item-DpPfPxCi.js";
|
|
10
10
|
import { t as d } from "./toolbar.i18n-QwS37CBC.js";
|
|
@@ -10,8 +10,8 @@ import { t as p } from "./with-translations-XX14GKFh.js";
|
|
|
10
10
|
import { t as m } from "./carried-context-DlMSujiJ.js";
|
|
11
11
|
import { t as h } from "./sanitize-url-CBuGmY0W.js";
|
|
12
12
|
import { n as g, t as _ } from "./breakpoints-Cwor8TRP.js";
|
|
13
|
-
import "./menu-bar-item-
|
|
14
|
-
import "./menu-bar-
|
|
13
|
+
import "./menu-bar-item-C7LQ0NI_.js";
|
|
14
|
+
import "./menu-bar-BU3Hjk1b.js";
|
|
15
15
|
import { t as v } from "./status-bar-change-CR9l0Gyk.js";
|
|
16
16
|
import { t as y } from "./top-navigation-bar.i18n-C-lcH1nB.js";
|
|
17
17
|
// src/components/navigation/top-navigation-bar/top-navigation-bar.styles.ts
|
|
@@ -717,7 +717,7 @@ var k = class {
|
|
|
717
717
|
}, A = 0;
|
|
718
718
|
async function j() {
|
|
719
719
|
await Promise.all([
|
|
720
|
-
import("./sheet-
|
|
720
|
+
import("./sheet-CqN7ViYV.js"),
|
|
721
721
|
import("./page-CBf_Decp.js").then((e) => e.t),
|
|
722
722
|
import("./simple-section-qrCqXeBa.js"),
|
|
723
723
|
import("./top-title-bar-iNFB2zQL.js").then((e) => e.t),
|
|
@@ -6,7 +6,7 @@ import { r as s } from "./element-state-B-44fVqq.js";
|
|
|
6
6
|
import { t as c } from "./shadow-resets-6SToDsPu.js";
|
|
7
7
|
import { t as l } from "./translations-wxBSz213.js";
|
|
8
8
|
import { n as u } from "./input-modality-XE0B7yCn.js";
|
|
9
|
-
import { t as d } from "./return-focus-
|
|
9
|
+
import { t as d } from "./return-focus-BzZWhXhc.js";
|
|
10
10
|
import { t as f } from "./dismiss-from-title-bar-C6mP7sWP.js";
|
|
11
11
|
import { n as p, t as m } from "./open-when-rendered-CW_2_WUZ.js";
|
|
12
12
|
import { t as h } from "./title-bar-label-controller-DSxdKZOg.js";
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* @attr {string} lg-custom-size - The same, at lg
|
|
11
11
|
*
|
|
12
12
|
* @slot - The paragraph or paragraphs of the quote; prefer <p> elements
|
|
13
|
+
* @accepts p
|
|
13
14
|
* @slot attribution - Optional source attribution (author, title, and so on). An nldd-identity is allowed here; the em dash ("— ") is then left out.
|
|
14
15
|
*/
|
|
15
16
|
import { LitElement, type PropertyValues } from 'lit';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockquote.d.ts","sourceRoot":"","sources":["../../../../src/components/content/blockquote/blockquote.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"blockquote.d.ts","sourceRoot":"","sources":["../../../../src/components/content/blockquote/blockquote.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAetD,qBACa,cAAe,SAAQ,UAAU;IAC7C,OAAgB,MAAM,0BAAoB;IAG1C,IAAI,EAAE,MAAM,GAAG,SAAS,CAAa;IAGrC,YAAY,SAAM;IAGlB,YAAY,SAAM;IAGlB,YAAY,SAAM;IAGlB,eAAe,UAAS;IAGxB,uBAAuB,UAAS;IAEhC,gBAAgB;IAChB,4BAA4B,GAAI,GAAG,KAAK,KAAG,IAAI,CAY7C;IAEF,+EAA+E;IAC/E,OAAO,CAAC,YAAY,CAA2C;IAEtD,UAAU,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAMzC,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAQtC,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,iBAAiB,EAAE,cAAc,CAAC;KAClC;CACD"}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* @attr {string} lg-custom-size - The same, at lg
|
|
11
11
|
*
|
|
12
12
|
* @slot - The paragraph or paragraphs of the quote; prefer <p> elements
|
|
13
|
+
* @accepts p
|
|
13
14
|
* @slot attribution - Optional source attribution (author, title, and so on). An nldd-identity is allowed here; the em dash ("— ") is then left out.
|
|
14
15
|
*/
|
|
15
16
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockquote.js","sourceRoot":"","sources":["../../../../src/components/content/blockquote/blockquote.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"blockquote.js","sourceRoot":"","sources":["../../../../src/components/content/blockquote/blockquote.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;;;;;;AAEH,OAAO,EAAE,UAAU,EAAuB,MAAM,KAAK,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,wBAAwB,EAAmB,MAAM,wCAAwC,CAAC;AACzH,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,4EAA4E;AAC5E,MAAM,eAAe,GAA+B;IACnD,EAAE,EAAE,iCAAiC;IACr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AAE,SAAS,EAAE,iBAAiB,CAAS,EAAE,CAAC,EAAE,CAAC;oDACjF;AAGlB;IADC,KAAK,EAAE;uDACgB;AAGxB;IADC,KAAK,EAAE;+DACwB;AAnBpB,cAAc;IAD1B,aAAa,CAAC,iBAAiB,CAAC;GACpB,cAAc,CAwD1B"}
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
* @attr {string} avatar-alt - Alt text for the avatar-src image; empty means decorative
|
|
35
35
|
*
|
|
36
36
|
* @slot avatars - One avatar (`nldd-avatar` or `img`), or an `nldd-avatar-group` for more
|
|
37
|
+
* @accepts img
|
|
37
38
|
* @slot text - Name line as rich content (a link to the author's profile, for instance)
|
|
38
39
|
* @slot supporting-text - Supporting text as rich content (a time element, for instance)
|
|
39
40
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../../../../src/components/content/identity/identity.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../../../../src/components/content/identity/identity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAMjC,OAAO,qBAAqB,CAAC;AAC7B,OAAO,iCAAiC,CAAC;AAEzC,qBACa,YAAa,SAAQ,UAAU;IAC3C,OAAgB,MAAM,0BAAkB;IAGxC,IAAI,SAAM;IAGV,cAAc,SAAM;IAGpB,SAAS,SAAM;IAGf,YAAY,SAAM;IAGlB,SAAS,SAAM;IAGf,kBAAkB,UAAS;IAE3B;;;8EAG0E;IAE1E,YAAY,SAAK;IAGjB,eAAe,UAAS;IAGxB,yBAAyB,UAAS;IAElC;;;;iFAI6E;IAC7E,aAAa,GAAI,GAAG,KAAK,KAAG,IAAI,CAU9B;IAEO,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,eAAe,EAAE,YAAY,CAAC;KAC9B;CACD"}
|
|
@@ -40,6 +40,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
40
40
|
* @attr {string} avatar-alt - Alt text for the avatar-src image; empty means decorative
|
|
41
41
|
*
|
|
42
42
|
* @slot avatars - One avatar (`nldd-avatar` or `img`), or an `nldd-avatar-group` for more
|
|
43
|
+
* @accepts img
|
|
43
44
|
* @slot text - Name line as rich content (a link to the author's profile, for instance)
|
|
44
45
|
* @slot supporting-text - Supporting text as rich content (a time element, for instance)
|
|
45
46
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity.js","sourceRoot":"","sources":["../../../../src/components/content/identity/identity.ts"],"names":[],"mappings":";;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"identity.js","sourceRoot":"","sources":["../../../../src/components/content/identity/identity.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,qBAAqB,CAAC;AAC7B,OAAO,iCAAiC,CAAC;AAGlC,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,UAAU;IAArC;;QAIN,SAAI,GAAG,EAAE,CAAC;QAGV,mBAAc,GAAG,EAAE,CAAC;QAGpB,cAAS,GAAG,EAAE,CAAC;QAGf,iBAAY,GAAG,EAAE,CAAC;QAGlB,cAAS,GAAG,EAAE,CAAC;QAGf,uBAAk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AS,EAAE,iBAAiB,EAAE,SAAS,EAAE,iBAAiB,CAAS,EAAE,CAAC,EAAE,CAAC;oDAChF;AAGpB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;+CACrC;AAGf;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;kDACrC;AAGlB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;+CACrC;AAGf;IADC,KAAK,EAAE;wDACmB;AAO3B;IADC,KAAK,EAAE;kDACS;AAGjB;IADC,KAAK,EAAE;qDACgB;AAGxB;IADC,KAAK,EAAE;+DAC0B;AAhCtB,YAAY;IADxB,aAAa,CAAC,eAAe,CAAC;GAClB,YAAY,CAsDxB"}
|
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
* slotted content does not trigger the error-state overlay automatically.
|
|
67
67
|
* Consumers slotting their own image are responsible for handling its
|
|
68
68
|
* error state (e.g. swapping the slot content or styling a fallback).
|
|
69
|
+
* @accepts img, picture, source, svg
|
|
69
70
|
* @slot caption - Rich caption content (overrides the `caption` attribute)
|
|
70
71
|
*/
|
|
71
72
|
import { LitElement } from 'lit';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../../src/components/content/image/image.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../../src/components/content/image/image.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAOjC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,iBAAiB,C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AAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,EAAE,CAAA;KAAE,GAAG,IAAI,CAoB1D;IAGD,kBAAkB,UAAS;IAE3B;qFACiF;IAEjF,YAAY,UAAS;IAErB;;uCAEmC;IAEnC,aAAa,UAAS;IAEtB;yDACqD;IACrD,IAAI,eAAe,IAAI,MAAM,CAG5B;IAED;;;;;;;mBAOe;IACf,IAAI,aAAa,IAAI,MAAM,GAAG,SAAS,CAKtC;IAED,IAAI,WAAW,IAAI,OAAO,CAEzB;IAEQ,UAAU,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAS/C,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAwBrD;;;;;;;;OAQG;IACH,OAAO,CAAC,gBAAgB;IAUxB;;;;;OAKG;IACH,OAAO,CAAC,aAAa;IAOrB;4EACwE;IACxE,IAAI,gBAAgB,IAAI,OAAO,CAE9B;IAED,8DAA8D;IAC9D,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED,kBAAkB,QAAO,IAAI,CAG3B;IAEO,YAAY,IAAI,IAAI;IAgB7B,YAAY,QAAO,IAAI,CAGrB;IAEF,aAAa,QAAO,IAAI,CAGtB;IAEF;;6EAEyE;IACzE,mBAAmB,CAAC,IAAI,EAAE,eAAe,GAAG,IAAI;IAUhD,oBAAoB,GAAI,GAAG,KAAK,KAAG,IAAI,CAErC;IAEO,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,YAAY,EAAE,SAAS,CAAC;KACxB;CACD"}
|
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
* slotted content does not trigger the error-state overlay automatically.
|
|
67
67
|
* Consumers slotting their own image are responsible for handling its
|
|
68
68
|
* error state (e.g. swapping the slot content or styling a fallback).
|
|
69
|
+
* @accepts img, picture, source, svg
|
|
69
70
|
* @slot caption - Rich caption content (overrides the `caption` attribute)
|
|
70
71
|
*/
|
|
71
72
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|