@aurodesignsystem-dev/auro-formkit 0.0.0-pr1608.0 → 0.0.0-pr1608.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/components/checkbox/demo/accessibility.md +15 -4
- package/components/checkbox/demo/customize.min.js +25 -10
- package/components/checkbox/demo/getting-started.min.js +25 -10
- package/components/checkbox/demo/index.min.js +25 -10
- package/components/checkbox/dist/auro-checkbox-group.d.ts +9 -0
- package/components/checkbox/dist/index.js +25 -10
- package/components/checkbox/dist/registered.js +25 -10
- package/components/combobox/demo/customize.min.js +46 -4
- package/components/combobox/demo/getting-started.min.js +46 -4
- package/components/combobox/demo/index.min.js +46 -4
- package/components/combobox/dist/index.js +46 -4
- package/components/combobox/dist/registered.js +46 -4
- package/components/counter/demo/customize.min.js +339 -23
- package/components/counter/demo/getting-started.min.js +339 -23
- package/components/counter/demo/index.min.js +339 -23
- package/components/counter/dist/counterGroupKeyboardStrategy.d.ts +1 -0
- package/components/counter/dist/index.js +339 -23
- package/components/counter/dist/registered.js +339 -23
- package/components/datepicker/demo/customize.min.js +46 -4
- package/components/datepicker/demo/getting-started.min.js +46 -4
- package/components/datepicker/demo/index.min.js +46 -4
- package/components/datepicker/dist/index.js +46 -4
- package/components/datepicker/dist/registered.js +46 -4
- package/components/dropdown/demo/customize.min.js +44 -2
- package/components/dropdown/demo/getting-started.min.js +45 -3
- package/components/dropdown/demo/index.min.js +44 -2
- package/components/dropdown/dist/index.js +44 -2
- package/components/dropdown/dist/registered.js +44 -2
- package/components/form/demo/customize.min.js +527 -57
- package/components/form/demo/getting-started.min.js +527 -57
- package/components/form/demo/index.min.js +527 -57
- package/components/form/demo/registerDemoDeps.min.js +527 -57
- package/components/input/demo/customize.min.js +1 -1
- package/components/input/demo/getting-started.min.js +1 -1
- package/components/input/demo/index.min.js +1 -1
- package/components/input/dist/index.js +1 -1
- package/components/input/dist/registered.js +1 -1
- package/components/radio/demo/accessibility.md +13 -4
- package/components/radio/demo/customize.min.js +25 -12
- package/components/radio/demo/getting-started.min.js +25 -12
- package/components/radio/demo/index.min.js +25 -12
- package/components/radio/dist/auro-radio-group.d.ts +9 -0
- package/components/radio/dist/index.js +25 -12
- package/components/radio/dist/registered.js +25 -12
- package/components/select/demo/customize.min.js +45 -3
- package/components/select/demo/getting-started.min.js +45 -3
- package/components/select/demo/index.min.js +45 -3
- package/components/select/dist/index.js +45 -3
- package/components/select/dist/registered.js +45 -3
- package/custom-elements.json +1507 -1485
- package/package.json +3 -3
|
@@ -12396,7 +12396,7 @@ class AuroHelpText extends i$3 {
|
|
|
12396
12396
|
}
|
|
12397
12397
|
}
|
|
12398
12398
|
|
|
12399
|
-
var formkitVersion = '
|
|
12399
|
+
var formkitVersion = '202609022217';
|
|
12400
12400
|
|
|
12401
12401
|
/**
|
|
12402
12402
|
* @license
|
|
@@ -12396,7 +12396,7 @@ class AuroHelpText extends i$3 {
|
|
|
12396
12396
|
}
|
|
12397
12397
|
}
|
|
12398
12398
|
|
|
12399
|
-
var formkitVersion = '
|
|
12399
|
+
var formkitVersion = '202609022217';
|
|
12400
12400
|
|
|
12401
12401
|
/**
|
|
12402
12402
|
* @license
|
|
@@ -12396,7 +12396,7 @@ class AuroHelpText extends i$3 {
|
|
|
12396
12396
|
}
|
|
12397
12397
|
}
|
|
12398
12398
|
|
|
12399
|
-
var formkitVersion = '
|
|
12399
|
+
var formkitVersion = '202609022217';
|
|
12400
12400
|
|
|
12401
12401
|
/**
|
|
12402
12402
|
* @license
|
|
@@ -12338,7 +12338,7 @@ class AuroHelpText extends LitElement {
|
|
|
12338
12338
|
}
|
|
12339
12339
|
}
|
|
12340
12340
|
|
|
12341
|
-
var formkitVersion = '
|
|
12341
|
+
var formkitVersion = '202609022217';
|
|
12342
12342
|
|
|
12343
12343
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12344
12344
|
// See LICENSE in the project root for license information.
|
|
@@ -12338,7 +12338,7 @@ class AuroHelpText extends LitElement {
|
|
|
12338
12338
|
}
|
|
12339
12339
|
}
|
|
12340
12340
|
|
|
12341
|
-
var formkitVersion = '
|
|
12341
|
+
var formkitVersion = '202609022217';
|
|
12342
12342
|
|
|
12343
12343
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12344
12344
|
// See LICENSE in the project root for license information.
|
|
@@ -8,12 +8,13 @@ For keyboard interaction details, see the <auro-hyperlink href="keyboard-behavio
|
|
|
8
8
|
|
|
9
9
|
<auro-header level="2" id="ariaRolesAndAttributes">ARIA Roles and Attributes</auro-header>
|
|
10
10
|
<auro-header level="3" id="radioGroup">Radio Group</auro-header>
|
|
11
|
-
The `<auro-radio-group>` element uses a `<fieldset>` with a `<legend>` internally, providing native grouping semantics:
|
|
11
|
+
The `<auro-radio-group>` element uses a `<fieldset>` with a `<legend>` internally, providing native grouping semantics. These attributes are applied to that shadow-DOM `<fieldset>`, **not** to the `<auro-radio-group>` host element:
|
|
12
12
|
|
|
13
13
|
| Attribute | Value | Description |
|
|
14
14
|
|---|---|---|
|
|
15
|
-
| `role` | `radiogroup`
|
|
16
|
-
| `aria-invalid` | `true`
|
|
15
|
+
| `role` | `radiogroup` | Groups related radio buttons together. Set explicitly on the `<fieldset>`; a bare `<fieldset>` would otherwise expose the implicit role `group`. |
|
|
16
|
+
| `aria-invalid` | `true` | Present only while the group is in an invalid state. The attribute is **omitted entirely** when the group is valid — it is never set to `false`. |
|
|
17
|
+
| `aria-describedby` | id reference | Points at the `id` of the group's help-text/error element, so assistive technology can associate the message with the group on demand rather than relying only on the one-time live-region announcement. |
|
|
17
18
|
|
|
18
19
|
<auro-header level="3" id="radioElement">Radio</auro-header>
|
|
19
20
|
Each `<auro-radio>` renders a native `<input type="radio">` inside its shadow DOM:
|
|
@@ -23,12 +24,20 @@ Each `<auro-radio>` renders a native `<input type="radio">` inside its shadow DO
|
|
|
23
24
|
| `type` | `radio` | Native radio input type. |
|
|
24
25
|
| `aria-checked` | `true` / `false` | Reflects the selected state of the radio button. |
|
|
25
26
|
| `aria-disabled` | `true` / `false` | Indicates whether the radio button is disabled. |
|
|
27
|
+
| `aria-invalid` | `true` | Mirrored onto each radio from the group while the group is invalid, and removed when it becomes valid. Omitted rather than set to `false`. |
|
|
28
|
+
|
|
29
|
+
<auro-header level="4" id="invalidStatePlacement">Why the invalid state appears twice</auro-header>
|
|
30
|
+
While the group is invalid, `aria-invalid` is set on both the `<fieldset>` and every individual `<auro-radio>`. This is intentional. Some assistive-technology and browser combinations announce a container's invalid state only when focus first enters the group, not on each subsequent arrow-key move between radios; mirroring the state onto each radio keeps it conveyed throughout. As a side effect, VoiceOver may say "invalid data" twice in a single utterance when you Tab into an invalid group.
|
|
31
|
+
|
|
32
|
+
<auro-header level="4" id="attributePlacementNote">Attribute placement</auro-header>
|
|
33
|
+
`aria-invalid` is applied to the internal `<fieldset>`, which is the element that carries `role="radiogroup"` — ARIA state has to live on the same element as the role it describes. It is **not** set on the `<auro-radio-group>` host element. Do not write CSS selectors or test assertions against `auro-radio-group[aria-invalid]`; query the `part="radio-group"` fieldset or read the `validity` property instead.
|
|
26
34
|
|
|
27
35
|
<auro-header level="2" id="screenReaderAnnouncements">Screen Reader Announcements</auro-header>
|
|
28
36
|
- **Focus** — When focus moves to a radio button, the screen reader announces the radio label, its selected/unselected state, its position in the group (e.g. "1 of 3"), and role ("radio button").
|
|
29
37
|
- **State change** — Selecting a radio button announces the new state ("selected").
|
|
30
38
|
- **Group context** — The legend text provides group context when navigating between groups.
|
|
31
|
-
- **Error** — When validation fails, the error message is announced
|
|
39
|
+
- **Error** — When validation fails, the error message is announced immediately via the help text's `role="alert"` live region, and stays discoverable afterward through the group's `aria-describedby` association.
|
|
40
|
+
- **Invalid state** — While the group is invalid, entering it or moving between its radios conveys the invalid state.
|
|
32
41
|
|
|
33
42
|
<auro-header level="2" id="accessibleLabels">Accessible Labels</auro-header>
|
|
34
43
|
- The `legend` slot content provides the accessible group label via the native `<legend>` element.
|
|
@@ -1251,7 +1251,7 @@ class AuroHelpText extends i$2 {
|
|
|
1251
1251
|
}
|
|
1252
1252
|
}
|
|
1253
1253
|
|
|
1254
|
-
var formkitVersion = '
|
|
1254
|
+
var formkitVersion = '202609022217';
|
|
1255
1255
|
|
|
1256
1256
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
1257
1257
|
// See LICENSE in the project root for license information.
|
|
@@ -1579,18 +1579,30 @@ class AuroRadioGroup extends i$2 {
|
|
|
1579
1579
|
}
|
|
1580
1580
|
|
|
1581
1581
|
if (changedProperties.has('validity')) {
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1582
|
+
this.syncItemValidity();
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1586
|
+
/**
|
|
1587
|
+
* Method for mirroring the group's invalid state onto each radio input.
|
|
1588
|
+
* `validity` — not `error` — is the authoritative invalid state, and it has to be
|
|
1589
|
+
* re-applied from `handleItems()` as well, because a slot change or a reconnect can
|
|
1590
|
+
* happen without `validity` itself changing.
|
|
1591
|
+
* @private
|
|
1592
|
+
* @returns {void}
|
|
1593
|
+
*/
|
|
1594
|
+
syncItemValidity() {
|
|
1595
|
+
const invalid = Boolean(this.error) || Boolean(this.validity && this.validity !== 'valid');
|
|
1596
|
+
|
|
1597
|
+
this.items.forEach((el) => {
|
|
1598
|
+
if (invalid) {
|
|
1599
|
+
el.setAttribute('error', true);
|
|
1600
|
+
el.setAttribute('aria-invalid', 'true');
|
|
1587
1601
|
} else {
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
el.removeAttribute('aria-invalid');
|
|
1591
|
-
});
|
|
1602
|
+
el.removeAttribute('error');
|
|
1603
|
+
el.removeAttribute('aria-invalid');
|
|
1592
1604
|
}
|
|
1593
|
-
}
|
|
1605
|
+
});
|
|
1594
1606
|
}
|
|
1595
1607
|
|
|
1596
1608
|
/**
|
|
@@ -1646,8 +1658,9 @@ class AuroRadioGroup extends i$2 {
|
|
|
1646
1658
|
|
|
1647
1659
|
this.items.forEach((el) => {
|
|
1648
1660
|
el.required = this.required;
|
|
1649
|
-
el.error = Boolean(this.error);
|
|
1650
1661
|
});
|
|
1662
|
+
|
|
1663
|
+
this.syncItemValidity();
|
|
1651
1664
|
}
|
|
1652
1665
|
|
|
1653
1666
|
/**
|
|
@@ -1251,7 +1251,7 @@ class AuroHelpText extends i$2 {
|
|
|
1251
1251
|
}
|
|
1252
1252
|
}
|
|
1253
1253
|
|
|
1254
|
-
var formkitVersion = '
|
|
1254
|
+
var formkitVersion = '202609022217';
|
|
1255
1255
|
|
|
1256
1256
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
1257
1257
|
// See LICENSE in the project root for license information.
|
|
@@ -1579,18 +1579,30 @@ class AuroRadioGroup extends i$2 {
|
|
|
1579
1579
|
}
|
|
1580
1580
|
|
|
1581
1581
|
if (changedProperties.has('validity')) {
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1582
|
+
this.syncItemValidity();
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1586
|
+
/**
|
|
1587
|
+
* Method for mirroring the group's invalid state onto each radio input.
|
|
1588
|
+
* `validity` — not `error` — is the authoritative invalid state, and it has to be
|
|
1589
|
+
* re-applied from `handleItems()` as well, because a slot change or a reconnect can
|
|
1590
|
+
* happen without `validity` itself changing.
|
|
1591
|
+
* @private
|
|
1592
|
+
* @returns {void}
|
|
1593
|
+
*/
|
|
1594
|
+
syncItemValidity() {
|
|
1595
|
+
const invalid = Boolean(this.error) || Boolean(this.validity && this.validity !== 'valid');
|
|
1596
|
+
|
|
1597
|
+
this.items.forEach((el) => {
|
|
1598
|
+
if (invalid) {
|
|
1599
|
+
el.setAttribute('error', true);
|
|
1600
|
+
el.setAttribute('aria-invalid', 'true');
|
|
1587
1601
|
} else {
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
el.removeAttribute('aria-invalid');
|
|
1591
|
-
});
|
|
1602
|
+
el.removeAttribute('error');
|
|
1603
|
+
el.removeAttribute('aria-invalid');
|
|
1592
1604
|
}
|
|
1593
|
-
}
|
|
1605
|
+
});
|
|
1594
1606
|
}
|
|
1595
1607
|
|
|
1596
1608
|
/**
|
|
@@ -1646,8 +1658,9 @@ class AuroRadioGroup extends i$2 {
|
|
|
1646
1658
|
|
|
1647
1659
|
this.items.forEach((el) => {
|
|
1648
1660
|
el.required = this.required;
|
|
1649
|
-
el.error = Boolean(this.error);
|
|
1650
1661
|
});
|
|
1662
|
+
|
|
1663
|
+
this.syncItemValidity();
|
|
1651
1664
|
}
|
|
1652
1665
|
|
|
1653
1666
|
/**
|
|
@@ -1251,7 +1251,7 @@ class AuroHelpText extends i$2 {
|
|
|
1251
1251
|
}
|
|
1252
1252
|
}
|
|
1253
1253
|
|
|
1254
|
-
var formkitVersion = '
|
|
1254
|
+
var formkitVersion = '202609022217';
|
|
1255
1255
|
|
|
1256
1256
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
1257
1257
|
// See LICENSE in the project root for license information.
|
|
@@ -1579,18 +1579,30 @@ class AuroRadioGroup extends i$2 {
|
|
|
1579
1579
|
}
|
|
1580
1580
|
|
|
1581
1581
|
if (changedProperties.has('validity')) {
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1582
|
+
this.syncItemValidity();
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1586
|
+
/**
|
|
1587
|
+
* Method for mirroring the group's invalid state onto each radio input.
|
|
1588
|
+
* `validity` — not `error` — is the authoritative invalid state, and it has to be
|
|
1589
|
+
* re-applied from `handleItems()` as well, because a slot change or a reconnect can
|
|
1590
|
+
* happen without `validity` itself changing.
|
|
1591
|
+
* @private
|
|
1592
|
+
* @returns {void}
|
|
1593
|
+
*/
|
|
1594
|
+
syncItemValidity() {
|
|
1595
|
+
const invalid = Boolean(this.error) || Boolean(this.validity && this.validity !== 'valid');
|
|
1596
|
+
|
|
1597
|
+
this.items.forEach((el) => {
|
|
1598
|
+
if (invalid) {
|
|
1599
|
+
el.setAttribute('error', true);
|
|
1600
|
+
el.setAttribute('aria-invalid', 'true');
|
|
1587
1601
|
} else {
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
el.removeAttribute('aria-invalid');
|
|
1591
|
-
});
|
|
1602
|
+
el.removeAttribute('error');
|
|
1603
|
+
el.removeAttribute('aria-invalid');
|
|
1592
1604
|
}
|
|
1593
|
-
}
|
|
1605
|
+
});
|
|
1594
1606
|
}
|
|
1595
1607
|
|
|
1596
1608
|
/**
|
|
@@ -1646,8 +1658,9 @@ class AuroRadioGroup extends i$2 {
|
|
|
1646
1658
|
|
|
1647
1659
|
this.items.forEach((el) => {
|
|
1648
1660
|
el.required = this.required;
|
|
1649
|
-
el.error = Boolean(this.error);
|
|
1650
1661
|
});
|
|
1662
|
+
|
|
1663
|
+
this.syncItemValidity();
|
|
1651
1664
|
}
|
|
1652
1665
|
|
|
1653
1666
|
/**
|
|
@@ -186,6 +186,15 @@ export class AuroRadioGroup extends LitElement {
|
|
|
186
186
|
* @returns {void}
|
|
187
187
|
*/
|
|
188
188
|
updated(changedProperties: Map<string, any>): void;
|
|
189
|
+
/**
|
|
190
|
+
* Method for mirroring the group's invalid state onto each radio input.
|
|
191
|
+
* `validity` — not `error` — is the authoritative invalid state, and it has to be
|
|
192
|
+
* re-applied from `handleItems()` as well, because a slot change or a reconnect can
|
|
193
|
+
* happen without `validity` itself changing.
|
|
194
|
+
* @private
|
|
195
|
+
* @returns {void}
|
|
196
|
+
*/
|
|
197
|
+
private syncItemValidity;
|
|
189
198
|
/**
|
|
190
199
|
* Resets component to initial state.
|
|
191
200
|
* @returns {void}
|
|
@@ -1190,7 +1190,7 @@ class AuroHelpText extends LitElement {
|
|
|
1190
1190
|
}
|
|
1191
1191
|
}
|
|
1192
1192
|
|
|
1193
|
-
var formkitVersion = '
|
|
1193
|
+
var formkitVersion = '202609022217';
|
|
1194
1194
|
|
|
1195
1195
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
1196
1196
|
// See LICENSE in the project root for license information.
|
|
@@ -1518,18 +1518,30 @@ class AuroRadioGroup extends LitElement {
|
|
|
1518
1518
|
}
|
|
1519
1519
|
|
|
1520
1520
|
if (changedProperties.has('validity')) {
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1521
|
+
this.syncItemValidity();
|
|
1522
|
+
}
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1525
|
+
/**
|
|
1526
|
+
* Method for mirroring the group's invalid state onto each radio input.
|
|
1527
|
+
* `validity` — not `error` — is the authoritative invalid state, and it has to be
|
|
1528
|
+
* re-applied from `handleItems()` as well, because a slot change or a reconnect can
|
|
1529
|
+
* happen without `validity` itself changing.
|
|
1530
|
+
* @private
|
|
1531
|
+
* @returns {void}
|
|
1532
|
+
*/
|
|
1533
|
+
syncItemValidity() {
|
|
1534
|
+
const invalid = Boolean(this.error) || Boolean(this.validity && this.validity !== 'valid');
|
|
1535
|
+
|
|
1536
|
+
this.items.forEach((el) => {
|
|
1537
|
+
if (invalid) {
|
|
1538
|
+
el.setAttribute('error', true);
|
|
1539
|
+
el.setAttribute('aria-invalid', 'true');
|
|
1526
1540
|
} else {
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
el.removeAttribute('aria-invalid');
|
|
1530
|
-
});
|
|
1541
|
+
el.removeAttribute('error');
|
|
1542
|
+
el.removeAttribute('aria-invalid');
|
|
1531
1543
|
}
|
|
1532
|
-
}
|
|
1544
|
+
});
|
|
1533
1545
|
}
|
|
1534
1546
|
|
|
1535
1547
|
/**
|
|
@@ -1585,8 +1597,9 @@ class AuroRadioGroup extends LitElement {
|
|
|
1585
1597
|
|
|
1586
1598
|
this.items.forEach((el) => {
|
|
1587
1599
|
el.required = this.required;
|
|
1588
|
-
el.error = Boolean(this.error);
|
|
1589
1600
|
});
|
|
1601
|
+
|
|
1602
|
+
this.syncItemValidity();
|
|
1590
1603
|
}
|
|
1591
1604
|
|
|
1592
1605
|
/**
|
|
@@ -1190,7 +1190,7 @@ class AuroHelpText extends LitElement {
|
|
|
1190
1190
|
}
|
|
1191
1191
|
}
|
|
1192
1192
|
|
|
1193
|
-
var formkitVersion = '
|
|
1193
|
+
var formkitVersion = '202609022217';
|
|
1194
1194
|
|
|
1195
1195
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
1196
1196
|
// See LICENSE in the project root for license information.
|
|
@@ -1518,18 +1518,30 @@ class AuroRadioGroup extends LitElement {
|
|
|
1518
1518
|
}
|
|
1519
1519
|
|
|
1520
1520
|
if (changedProperties.has('validity')) {
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1521
|
+
this.syncItemValidity();
|
|
1522
|
+
}
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1525
|
+
/**
|
|
1526
|
+
* Method for mirroring the group's invalid state onto each radio input.
|
|
1527
|
+
* `validity` — not `error` — is the authoritative invalid state, and it has to be
|
|
1528
|
+
* re-applied from `handleItems()` as well, because a slot change or a reconnect can
|
|
1529
|
+
* happen without `validity` itself changing.
|
|
1530
|
+
* @private
|
|
1531
|
+
* @returns {void}
|
|
1532
|
+
*/
|
|
1533
|
+
syncItemValidity() {
|
|
1534
|
+
const invalid = Boolean(this.error) || Boolean(this.validity && this.validity !== 'valid');
|
|
1535
|
+
|
|
1536
|
+
this.items.forEach((el) => {
|
|
1537
|
+
if (invalid) {
|
|
1538
|
+
el.setAttribute('error', true);
|
|
1539
|
+
el.setAttribute('aria-invalid', 'true');
|
|
1526
1540
|
} else {
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
el.removeAttribute('aria-invalid');
|
|
1530
|
-
});
|
|
1541
|
+
el.removeAttribute('error');
|
|
1542
|
+
el.removeAttribute('aria-invalid');
|
|
1531
1543
|
}
|
|
1532
|
-
}
|
|
1544
|
+
});
|
|
1533
1545
|
}
|
|
1534
1546
|
|
|
1535
1547
|
/**
|
|
@@ -1585,8 +1597,9 @@ class AuroRadioGroup extends LitElement {
|
|
|
1585
1597
|
|
|
1586
1598
|
this.items.forEach((el) => {
|
|
1587
1599
|
el.required = this.required;
|
|
1588
|
-
el.error = Boolean(this.error);
|
|
1589
1600
|
});
|
|
1601
|
+
|
|
1602
|
+
this.syncItemValidity();
|
|
1590
1603
|
}
|
|
1591
1604
|
|
|
1592
1605
|
/**
|
|
@@ -2862,6 +2862,48 @@ const computePosition = (reference, floating, options) => {
|
|
|
2862
2862
|
});
|
|
2863
2863
|
};
|
|
2864
2864
|
|
|
2865
|
+
/**
|
|
2866
|
+
* Generates a v4 UUID with a three-tier fallback for insecure contexts.
|
|
2867
|
+
*
|
|
2868
|
+
* Tier 1 (secure contexts): crypto.randomUUID() — native, fully random.
|
|
2869
|
+
* Tier 2 (insecure contexts): crypto.getRandomValues() — available on all
|
|
2870
|
+
* modern browsers regardless of secure-context status.
|
|
2871
|
+
* Tier 3 (last resort, no crypto API): new Date().getTime() — lower entropy,
|
|
2872
|
+
* but sufficient for element IDs where collision risk is negligible.
|
|
2873
|
+
*
|
|
2874
|
+
* See: https://w3c.github.io/webcrypto/#dom-crypto-randomuuid (secure-context restriction)
|
|
2875
|
+
*/
|
|
2876
|
+
function generateUUID() {
|
|
2877
|
+
let uuid;
|
|
2878
|
+
|
|
2879
|
+
if (
|
|
2880
|
+
typeof crypto !== "undefined" &&
|
|
2881
|
+
typeof crypto.randomUUID === "function"
|
|
2882
|
+
) {
|
|
2883
|
+
uuid = crypto.randomUUID();
|
|
2884
|
+
} else if (
|
|
2885
|
+
typeof crypto !== "undefined" &&
|
|
2886
|
+
typeof crypto.getRandomValues === "function"
|
|
2887
|
+
) {
|
|
2888
|
+
const bytes = new Uint8Array(16);
|
|
2889
|
+
crypto.getRandomValues(bytes);
|
|
2890
|
+
bytes[6] = (bytes[6] & 0x0f) | 0x40;
|
|
2891
|
+
bytes[8] = (bytes[8] & 0x3f) | 0x80;
|
|
2892
|
+
const hex = Array.from(bytes).map((b) => b.toString(16).padStart(2, "0"));
|
|
2893
|
+
uuid = `${hex.slice(0, 4).join("")}-${hex.slice(4, 6).join("")}-${hex.slice(6, 8).join("")}-${hex.slice(8, 10).join("")}-${hex.slice(10).join("")}`;
|
|
2894
|
+
} else {
|
|
2895
|
+
let d = new Date().getTime();
|
|
2896
|
+
uuid = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
|
|
2897
|
+
const r = (d % 16) | 0;
|
|
2898
|
+
d = (d - r) / 16 || new Date().getTime();
|
|
2899
|
+
return (c === "x" ? r : (r & 0x3) | 0x8).toString(16);
|
|
2900
|
+
});
|
|
2901
|
+
}
|
|
2902
|
+
|
|
2903
|
+
// CSS selectors require IDs starting with a letter; replace a leading digit with 'a'.
|
|
2904
|
+
return /^[0-9]/.test(uuid) ? `a${uuid.slice(1)}` : uuid;
|
|
2905
|
+
}
|
|
2906
|
+
|
|
2865
2907
|
/* eslint-disable line-comment-position, no-inline-comments */
|
|
2866
2908
|
|
|
2867
2909
|
|
|
@@ -3880,7 +3922,7 @@ class AuroFloatingUI {
|
|
|
3880
3922
|
|
|
3881
3923
|
this.id = element.getAttribute("id");
|
|
3882
3924
|
if (!this.id) {
|
|
3883
|
-
this.id =
|
|
3925
|
+
this.id = generateUUID();
|
|
3884
3926
|
element.setAttribute("id", this.id);
|
|
3885
3927
|
}
|
|
3886
3928
|
|
|
@@ -4925,7 +4967,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
4925
4967
|
}
|
|
4926
4968
|
};
|
|
4927
4969
|
|
|
4928
|
-
var formkitVersion$1 = '
|
|
4970
|
+
var formkitVersion$1 = '202609022217';
|
|
4929
4971
|
|
|
4930
4972
|
/**
|
|
4931
4973
|
* AuroElement is the shared base class for layout-aware Auro form components.
|
|
@@ -7098,7 +7140,7 @@ class AuroHelpText extends i$2 {
|
|
|
7098
7140
|
}
|
|
7099
7141
|
}
|
|
7100
7142
|
|
|
7101
|
-
var formkitVersion = '
|
|
7143
|
+
var formkitVersion = '202609022217';
|
|
7102
7144
|
|
|
7103
7145
|
var styleCss$2 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.body-default{font-size:var(--wcss-body-default-font-size, 1rem);font-weight:var(--wcss-body-default-weight, );line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-default-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-default-emphasized{font-size:var(--wcss-body-default-emphasized-font-size, 1rem);font-weight:var(--wcss-body-default-emphasized-weight, );line-height:var(--wcss-body-default-emphasized-line-height, 1.5rem)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);font-weight:var(--wcss-body-lg-weight, );line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-lg,.body-lg-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg-emphasized{font-size:var(--wcss-body-lg-emphasized-font-size, 1.125rem);font-weight:var(--wcss-body-lg-emphasized-weight, );line-height:var(--wcss-body-lg-emphasized-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);font-weight:var(--wcss-body-sm-weight, );line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-sm-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-sm-emphasized{font-size:var(--wcss-body-sm-emphasized-font-size, 0.875rem);font-weight:var(--wcss-body-sm-emphasized-weight, );line-height:var(--wcss-body-sm-emphasized-line-height, 1.25rem)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);font-weight:var(--wcss-body-xs-weight, );line-height:var(--wcss-body-xs-line-height, 1rem)}.body-xs,.body-xs-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs-emphasized{font-size:var(--wcss-body-xs-emphasized-font-size, 0.75rem);font-weight:var(--wcss-body-xs-emphasized-weight, );line-height:var(--wcss-body-xs-emphasized-line-height, 1rem)}.body-2xs{font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-2xs-weight, );line-height:var(--wcss-body-2xs-line-height, 0.875rem)}.body-2xs,.body-2xs-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-2xs-emphasized{font-size:var(--wcss-body-2xs-emphasized-font-size, 0.625rem);font-weight:var(--wcss-body-2xs-emphasized-weight, );line-height:var(--wcss-body-2xs-emphasized-line-height, 0.875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 300);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 300);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-outline-color: var(--ds-auro-select-outline-color)}:host{display:inline-block;text-align:left;vertical-align:top}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}:host([layout*=emphasized]) .mainContent,:host([layout*=snowflake]) .mainContent{text-align:center}.mainContent{position:relative;display:flex;overflow:hidden;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer{max-width:100%}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:var(--ds-size-100, 0.5rem)}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;box-sizing:border-box;align-items:center;justify-content:center}:host([layout*=emphasized]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-200, 1rem)}:host([layout*=snowflake]) label{padding-block:var(--ds-size-25, 0.125rem)}:host([layout*=classic]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{overflow:hidden;cursor:text;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) .value{overflow:hidden;height:auto;text-overflow:ellipsis;white-space:nowrap}label{color:var(--ds-auro-select-label-text-color)}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-select-outline-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown],:host([appearance=inverse]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-select-outline-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([fluid]){width:100%}:host([disabled]){pointer-events:none;user-select:none}:host([disabled]:not([ondark])) [auro-dropdown],:host([disabled]:not([appearance=inverse])) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([layout*=classic])[disabled][ondark]) [auro-dropdown],:host(:not([layout*=classic])[disabled][appearance=inverse]) [auro-dropdown]{--ds-auro-select-border-color: transparent}`;
|
|
7104
7146
|
|
|
@@ -2862,6 +2862,48 @@ const computePosition = (reference, floating, options) => {
|
|
|
2862
2862
|
});
|
|
2863
2863
|
};
|
|
2864
2864
|
|
|
2865
|
+
/**
|
|
2866
|
+
* Generates a v4 UUID with a three-tier fallback for insecure contexts.
|
|
2867
|
+
*
|
|
2868
|
+
* Tier 1 (secure contexts): crypto.randomUUID() — native, fully random.
|
|
2869
|
+
* Tier 2 (insecure contexts): crypto.getRandomValues() — available on all
|
|
2870
|
+
* modern browsers regardless of secure-context status.
|
|
2871
|
+
* Tier 3 (last resort, no crypto API): new Date().getTime() — lower entropy,
|
|
2872
|
+
* but sufficient for element IDs where collision risk is negligible.
|
|
2873
|
+
*
|
|
2874
|
+
* See: https://w3c.github.io/webcrypto/#dom-crypto-randomuuid (secure-context restriction)
|
|
2875
|
+
*/
|
|
2876
|
+
function generateUUID() {
|
|
2877
|
+
let uuid;
|
|
2878
|
+
|
|
2879
|
+
if (
|
|
2880
|
+
typeof crypto !== "undefined" &&
|
|
2881
|
+
typeof crypto.randomUUID === "function"
|
|
2882
|
+
) {
|
|
2883
|
+
uuid = crypto.randomUUID();
|
|
2884
|
+
} else if (
|
|
2885
|
+
typeof crypto !== "undefined" &&
|
|
2886
|
+
typeof crypto.getRandomValues === "function"
|
|
2887
|
+
) {
|
|
2888
|
+
const bytes = new Uint8Array(16);
|
|
2889
|
+
crypto.getRandomValues(bytes);
|
|
2890
|
+
bytes[6] = (bytes[6] & 0x0f) | 0x40;
|
|
2891
|
+
bytes[8] = (bytes[8] & 0x3f) | 0x80;
|
|
2892
|
+
const hex = Array.from(bytes).map((b) => b.toString(16).padStart(2, "0"));
|
|
2893
|
+
uuid = `${hex.slice(0, 4).join("")}-${hex.slice(4, 6).join("")}-${hex.slice(6, 8).join("")}-${hex.slice(8, 10).join("")}-${hex.slice(10).join("")}`;
|
|
2894
|
+
} else {
|
|
2895
|
+
let d = new Date().getTime();
|
|
2896
|
+
uuid = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
|
|
2897
|
+
const r = (d % 16) | 0;
|
|
2898
|
+
d = (d - r) / 16 || new Date().getTime();
|
|
2899
|
+
return (c === "x" ? r : (r & 0x3) | 0x8).toString(16);
|
|
2900
|
+
});
|
|
2901
|
+
}
|
|
2902
|
+
|
|
2903
|
+
// CSS selectors require IDs starting with a letter; replace a leading digit with 'a'.
|
|
2904
|
+
return /^[0-9]/.test(uuid) ? `a${uuid.slice(1)}` : uuid;
|
|
2905
|
+
}
|
|
2906
|
+
|
|
2865
2907
|
/* eslint-disable line-comment-position, no-inline-comments */
|
|
2866
2908
|
|
|
2867
2909
|
|
|
@@ -3880,7 +3922,7 @@ class AuroFloatingUI {
|
|
|
3880
3922
|
|
|
3881
3923
|
this.id = element.getAttribute("id");
|
|
3882
3924
|
if (!this.id) {
|
|
3883
|
-
this.id =
|
|
3925
|
+
this.id = generateUUID();
|
|
3884
3926
|
element.setAttribute("id", this.id);
|
|
3885
3927
|
}
|
|
3886
3928
|
|
|
@@ -4925,7 +4967,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
4925
4967
|
}
|
|
4926
4968
|
};
|
|
4927
4969
|
|
|
4928
|
-
var formkitVersion$1 = '
|
|
4970
|
+
var formkitVersion$1 = '202609022217';
|
|
4929
4971
|
|
|
4930
4972
|
/**
|
|
4931
4973
|
* AuroElement is the shared base class for layout-aware Auro form components.
|
|
@@ -7098,7 +7140,7 @@ class AuroHelpText extends i$2 {
|
|
|
7098
7140
|
}
|
|
7099
7141
|
}
|
|
7100
7142
|
|
|
7101
|
-
var formkitVersion = '
|
|
7143
|
+
var formkitVersion = '202609022217';
|
|
7102
7144
|
|
|
7103
7145
|
var styleCss$2 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.body-default{font-size:var(--wcss-body-default-font-size, 1rem);font-weight:var(--wcss-body-default-weight, );line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-default-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-default-emphasized{font-size:var(--wcss-body-default-emphasized-font-size, 1rem);font-weight:var(--wcss-body-default-emphasized-weight, );line-height:var(--wcss-body-default-emphasized-line-height, 1.5rem)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);font-weight:var(--wcss-body-lg-weight, );line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-lg,.body-lg-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg-emphasized{font-size:var(--wcss-body-lg-emphasized-font-size, 1.125rem);font-weight:var(--wcss-body-lg-emphasized-weight, );line-height:var(--wcss-body-lg-emphasized-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);font-weight:var(--wcss-body-sm-weight, );line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-sm-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-sm-emphasized{font-size:var(--wcss-body-sm-emphasized-font-size, 0.875rem);font-weight:var(--wcss-body-sm-emphasized-weight, );line-height:var(--wcss-body-sm-emphasized-line-height, 1.25rem)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);font-weight:var(--wcss-body-xs-weight, );line-height:var(--wcss-body-xs-line-height, 1rem)}.body-xs,.body-xs-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs-emphasized{font-size:var(--wcss-body-xs-emphasized-font-size, 0.75rem);font-weight:var(--wcss-body-xs-emphasized-weight, );line-height:var(--wcss-body-xs-emphasized-line-height, 1rem)}.body-2xs{font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-2xs-weight, );line-height:var(--wcss-body-2xs-line-height, 0.875rem)}.body-2xs,.body-2xs-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-2xs-emphasized{font-size:var(--wcss-body-2xs-emphasized-font-size, 0.625rem);font-weight:var(--wcss-body-2xs-emphasized-weight, );line-height:var(--wcss-body-2xs-emphasized-line-height, 0.875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 300);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 300);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-outline-color: var(--ds-auro-select-outline-color)}:host{display:inline-block;text-align:left;vertical-align:top}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}:host([layout*=emphasized]) .mainContent,:host([layout*=snowflake]) .mainContent{text-align:center}.mainContent{position:relative;display:flex;overflow:hidden;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer{max-width:100%}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:var(--ds-size-100, 0.5rem)}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;box-sizing:border-box;align-items:center;justify-content:center}:host([layout*=emphasized]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-200, 1rem)}:host([layout*=snowflake]) label{padding-block:var(--ds-size-25, 0.125rem)}:host([layout*=classic]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{overflow:hidden;cursor:text;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) .value{overflow:hidden;height:auto;text-overflow:ellipsis;white-space:nowrap}label{color:var(--ds-auro-select-label-text-color)}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-select-outline-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown],:host([appearance=inverse]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-select-outline-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([fluid]){width:100%}:host([disabled]){pointer-events:none;user-select:none}:host([disabled]:not([ondark])) [auro-dropdown],:host([disabled]:not([appearance=inverse])) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([layout*=classic])[disabled][ondark]) [auro-dropdown],:host(:not([layout*=classic])[disabled][appearance=inverse]) [auro-dropdown]{--ds-auro-select-border-color: transparent}`;
|
|
7104
7146
|
|