@aurodesignsystem-dev/auro-formkit 0.0.0-pr1471.4 → 0.0.0-pr1474.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/customize.min.js +1 -1
- package/components/checkbox/demo/getting-started.min.js +1 -1
- package/components/checkbox/demo/index.min.js +1 -1
- package/components/checkbox/dist/index.js +1 -1
- package/components/checkbox/dist/registered.js +1 -1
- package/components/combobox/demo/customize.min.js +3 -3
- package/components/combobox/demo/getting-started.min.js +3 -3
- package/components/combobox/demo/index.min.js +3 -3
- package/components/combobox/dist/index.js +3 -3
- package/components/combobox/dist/registered.js +3 -3
- package/components/counter/demo/customize.min.js +2 -2
- package/components/counter/demo/index.min.js +2 -2
- package/components/counter/dist/index.js +1 -1
- package/components/counter/dist/registered.js +1 -1
- package/components/datepicker/demo/index.min.js +3 -3
- package/components/datepicker/dist/index.js +3 -3
- package/components/datepicker/dist/registered.js +3 -3
- package/components/dropdown/demo/customize.min.js +1 -1
- package/components/dropdown/demo/getting-started.min.js +1 -1
- package/components/dropdown/demo/index.min.js +1 -1
- package/components/dropdown/dist/index.js +1 -1
- package/components/dropdown/dist/registered.js +1 -1
- package/components/form/demo/customize.html +6 -6
- package/components/form/demo/customize.js +17 -0
- package/components/form/demo/customize.md +125 -51
- package/components/form/demo/customize.min.js +196 -20
- package/components/form/demo/getting-started.min.js +160 -20
- package/components/form/demo/index.min.js +160 -20
- package/components/form/demo/registerDemoDeps.min.js +13 -13
- package/components/form/dist/auro-form.d.ts +45 -5
- package/components/form/dist/index.js +147 -7
- package/components/form/dist/registered.js +147 -7
- 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/index.min.js +1 -1
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/demo/customize.min.js +2 -2
- package/components/select/demo/getting-started.min.js +2 -2
- package/components/select/demo/index.min.js +2 -2
- package/components/select/dist/index.js +2 -2
- package/components/select/dist/registered.js +2 -2
- package/custom-elements.json +69 -0
- package/package.json +1 -1
|
@@ -93,7 +93,6 @@ class AuroLibraryRuntimeUtils {
|
|
|
93
93
|
* @property {string | number | boolean | string[] | null} value - The value of the form element.
|
|
94
94
|
* @property {ValidityState} validity - The validity state of the form element, stored when fired from the form element.
|
|
95
95
|
* @property {boolean} required - Whether the form element is required or not.
|
|
96
|
-
* @property {HTMLElement} element - Whether the form element is required or not.
|
|
97
96
|
*/
|
|
98
97
|
|
|
99
98
|
/**
|
|
@@ -177,6 +176,20 @@ class AuroForm extends LitElement {
|
|
|
177
176
|
*/
|
|
178
177
|
this.mutationObservers = [];
|
|
179
178
|
|
|
179
|
+
// Single subtree observer that watches `disabled` and `name` attribute
|
|
180
|
+
// changes across all tracked form elements. The `name` watch is required:
|
|
181
|
+
// without it, renaming a tracked field at runtime leaves a stale key in
|
|
182
|
+
// `formState` that `_isNameDisabled` cannot resolve, so a renamed-but-
|
|
183
|
+
// disabled field would re-appear in `.value`.
|
|
184
|
+
/**
|
|
185
|
+
* @private
|
|
186
|
+
* @type {MutationObserver | null}
|
|
187
|
+
*/
|
|
188
|
+
this._attributeObserver = null;
|
|
189
|
+
|
|
190
|
+
/** @private */
|
|
191
|
+
this._handleAttributeMutations = this._handleAttributeMutations.bind(this);
|
|
192
|
+
|
|
180
193
|
// Bind listeners
|
|
181
194
|
/** @private */
|
|
182
195
|
this.reset = this.reset.bind(this);
|
|
@@ -245,6 +258,42 @@ class AuroForm extends LitElement {
|
|
|
245
258
|
return this._isInElementCollection(AuroForm.formElementTags, element);
|
|
246
259
|
}
|
|
247
260
|
|
|
261
|
+
/**
|
|
262
|
+
* Whether a given element is currently disabled. Disabled controls are excluded
|
|
263
|
+
* from submission, validity, and initial-state checks (per the HTML spec).
|
|
264
|
+
*
|
|
265
|
+
* Implementation note: we deliberately read only the attribute. Every Auro
|
|
266
|
+
* form element in `formElementTags` declares `disabled` with `reflect: true`,
|
|
267
|
+
* so the attribute and property stay in sync. Reading the attribute also
|
|
268
|
+
* lets the MutationObserver in `connectedCallback` (which is filtered to
|
|
269
|
+
* `['disabled', 'name']`) be the single source of truth for re-renders.
|
|
270
|
+
* If a future form-element type ships without attribute reflection, expand
|
|
271
|
+
* this helper to also read `element.disabled`.
|
|
272
|
+
* @param {HTMLElement | undefined | null} element - The element to check.
|
|
273
|
+
* @returns {boolean}
|
|
274
|
+
* @private
|
|
275
|
+
*/
|
|
276
|
+
_isDisabled(element) {
|
|
277
|
+
return Boolean(element?.hasAttribute('disabled'));
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Whether the tracked form element registered under `name` is currently disabled.
|
|
282
|
+
*
|
|
283
|
+
* Performance note: this is called once per `formState` key per read of
|
|
284
|
+
* `value` / `validity` / `isInitialState`, producing O(n²) work where n is
|
|
285
|
+
* the number of tracked fields. Acceptable for typical forms (< ~50 fields).
|
|
286
|
+
* For larger forms, a future refactor should store disabled state on each
|
|
287
|
+
* `formState` entry and update it from the attribute observer instead.
|
|
288
|
+
* @param {string} name - The `name` attribute used to register the element.
|
|
289
|
+
* @returns {boolean}
|
|
290
|
+
* @private
|
|
291
|
+
*/
|
|
292
|
+
_isNameDisabled(name) {
|
|
293
|
+
const element = this._elements.find((el) => el.getAttribute('name') === name);
|
|
294
|
+
return this._isDisabled(element);
|
|
295
|
+
}
|
|
296
|
+
|
|
248
297
|
/**
|
|
249
298
|
* Validates if an event is from a valid form element with a name.
|
|
250
299
|
* @param {Event} event - The event to validate.
|
|
@@ -284,6 +333,10 @@ class AuroForm extends LitElement {
|
|
|
284
333
|
*/
|
|
285
334
|
get value() {
|
|
286
335
|
return Object.keys(this.formState).reduce((acc, key) => {
|
|
336
|
+
if (this._isNameDisabled(key)) {
|
|
337
|
+
return acc;
|
|
338
|
+
}
|
|
339
|
+
|
|
287
340
|
acc[key] = this.formState[key].value;
|
|
288
341
|
return acc;
|
|
289
342
|
}, {});
|
|
@@ -318,6 +371,10 @@ class AuroForm extends LitElement {
|
|
|
318
371
|
// go through validity states and return the first invalid state (if any)
|
|
319
372
|
const invalidKey = Object.keys(this.formState).
|
|
320
373
|
find((key) => {
|
|
374
|
+
if (this._isNameDisabled(key)) {
|
|
375
|
+
return false;
|
|
376
|
+
}
|
|
377
|
+
|
|
321
378
|
const formKey = this.formState[key];
|
|
322
379
|
// these are NOT extra parens
|
|
323
380
|
// eslint-disable-next-line no-extra-parens
|
|
@@ -344,7 +401,13 @@ class AuroForm extends LitElement {
|
|
|
344
401
|
* @private
|
|
345
402
|
*/
|
|
346
403
|
_setInitialState() {
|
|
347
|
-
const anyTainted = Object.keys(this.formState).some((key) =>
|
|
404
|
+
const anyTainted = Object.keys(this.formState).some((key) => {
|
|
405
|
+
if (this._isNameDisabled(key)) {
|
|
406
|
+
return false;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
return this.formState[key].validity !== null || this.formState[key].value !== null;
|
|
410
|
+
});
|
|
348
411
|
|
|
349
412
|
this._isInitialState = !anyTainted;
|
|
350
413
|
|
|
@@ -428,7 +491,6 @@ class AuroForm extends LitElement {
|
|
|
428
491
|
value: element.value || element.getAttribute('value'),
|
|
429
492
|
validity: element.validity || null,
|
|
430
493
|
required: element.hasAttribute('required'),
|
|
431
|
-
// element
|
|
432
494
|
};
|
|
433
495
|
|
|
434
496
|
this._elements.push(element);
|
|
@@ -511,10 +573,13 @@ class AuroForm extends LitElement {
|
|
|
511
573
|
* @returns {Promise<void>}
|
|
512
574
|
*/
|
|
513
575
|
async submit() {
|
|
514
|
-
// Force validation on
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
576
|
+
// Force validation on all enabled elements. Disabled fields are skipped
|
|
577
|
+
// because disabled controls are not validated nor submitted per the HTML spec.
|
|
578
|
+
this._elements.
|
|
579
|
+
filter((element) => !this._isDisabled(element)).
|
|
580
|
+
forEach((element) => {
|
|
581
|
+
element.validate(true);
|
|
582
|
+
});
|
|
518
583
|
|
|
519
584
|
// Wait for validation to complete and formState to update
|
|
520
585
|
await this.updateComplete;
|
|
@@ -602,6 +667,11 @@ class AuroForm extends LitElement {
|
|
|
602
667
|
*/
|
|
603
668
|
handleKeyDown(event) {
|
|
604
669
|
if (event.key === 'Enter' && this.isFormElement(event.target)) {
|
|
670
|
+
// Disabled controls do not submit a form natively.
|
|
671
|
+
if (this._isDisabled(event.target)) {
|
|
672
|
+
return;
|
|
673
|
+
}
|
|
674
|
+
|
|
605
675
|
// Don't submit if it's a textarea (allow new lines)
|
|
606
676
|
if (event.target.tagName.toLowerCase() === 'textarea' ||
|
|
607
677
|
event.target.hasAttribute('textarea')) {
|
|
@@ -633,6 +703,76 @@ class AuroForm extends LitElement {
|
|
|
633
703
|
});
|
|
634
704
|
}
|
|
635
705
|
|
|
706
|
+
/**
|
|
707
|
+
* Handle batched MutationObserver records for `disabled` and `name`
|
|
708
|
+
* attribute changes on tracked form elements. A `name` change invalidates
|
|
709
|
+
* the formState keying — we resolve it by re-initializing state. A `disabled`
|
|
710
|
+
* change simply needs a re-render (so `value` / `validity` getters re-evaluate)
|
|
711
|
+
* and a refresh of the submit/reset button enablement.
|
|
712
|
+
* @param {MutationRecord[]} mutations - The batched mutation records.
|
|
713
|
+
* @returns {void}
|
|
714
|
+
* @private
|
|
715
|
+
*/
|
|
716
|
+
_handleAttributeMutations(mutations) {
|
|
717
|
+
// Only mutations on tracked FORM elements matter here. The same observer
|
|
718
|
+
// also sees attribute changes on the submit/reset buttons (which this
|
|
719
|
+
// component itself toggles via `setDisabledStateOnButtons`); reacting to
|
|
720
|
+
// those would create an infinite observer/update loop.
|
|
721
|
+
const relevant = mutations.filter((mutation) => this.isFormElement(mutation.target));
|
|
722
|
+
if (relevant.length === 0) {
|
|
723
|
+
return;
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
const renameOccurred = relevant.some((mutation) => mutation.attributeName === 'name');
|
|
727
|
+
if (renameOccurred) {
|
|
728
|
+
// initializeState() rebuilds formState from scratch (re-keying any
|
|
729
|
+
// renamed element) and also dispatches `change` + refreshes button state,
|
|
730
|
+
// so we can return early without doing the disabled path's work.
|
|
731
|
+
this.initializeState();
|
|
732
|
+
return;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
this.requestUpdate('formState');
|
|
736
|
+
this.setDisabledStateOnButtons();
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
/**
|
|
740
|
+
* @returns {void}
|
|
741
|
+
*/
|
|
742
|
+
connectedCallback() {
|
|
743
|
+
super.connectedCallback();
|
|
744
|
+
|
|
745
|
+
// One observer rooted at the host catches `disabled` / `name` changes on
|
|
746
|
+
// any tracked form element (light-DOM children, including those nested in
|
|
747
|
+
// wrapper elements). Cheaper than allocating an observer per element and
|
|
748
|
+
// resilient to runtime DOM mutations.
|
|
749
|
+
if (!this._attributeObserver) {
|
|
750
|
+
this._attributeObserver = new MutationObserver(this._handleAttributeMutations);
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
this._attributeObserver.observe(this, {
|
|
754
|
+
attributes: true,
|
|
755
|
+
subtree: true,
|
|
756
|
+
attributeFilter: [
|
|
757
|
+
'disabled',
|
|
758
|
+
'name'
|
|
759
|
+
]
|
|
760
|
+
});
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* @returns {void}
|
|
765
|
+
*/
|
|
766
|
+
disconnectedCallback() {
|
|
767
|
+
// Disconnect everything we own to avoid leaking observers (and the strong
|
|
768
|
+
// refs they hold to DOM nodes) past the form's lifetime.
|
|
769
|
+
this._attributeObserver?.disconnect();
|
|
770
|
+
this.mutationObservers.forEach((observer) => observer.disconnect());
|
|
771
|
+
this.mutationObservers = [];
|
|
772
|
+
|
|
773
|
+
super.disconnectedCallback();
|
|
774
|
+
}
|
|
775
|
+
|
|
636
776
|
/**
|
|
637
777
|
* @param {import('lit').PropertyValues} _changedProperties - Map of changed properties with their previous values.
|
|
638
778
|
* @returns {void}
|
|
@@ -93,7 +93,6 @@ class AuroLibraryRuntimeUtils {
|
|
|
93
93
|
* @property {string | number | boolean | string[] | null} value - The value of the form element.
|
|
94
94
|
* @property {ValidityState} validity - The validity state of the form element, stored when fired from the form element.
|
|
95
95
|
* @property {boolean} required - Whether the form element is required or not.
|
|
96
|
-
* @property {HTMLElement} element - Whether the form element is required or not.
|
|
97
96
|
*/
|
|
98
97
|
|
|
99
98
|
/**
|
|
@@ -177,6 +176,20 @@ class AuroForm extends LitElement {
|
|
|
177
176
|
*/
|
|
178
177
|
this.mutationObservers = [];
|
|
179
178
|
|
|
179
|
+
// Single subtree observer that watches `disabled` and `name` attribute
|
|
180
|
+
// changes across all tracked form elements. The `name` watch is required:
|
|
181
|
+
// without it, renaming a tracked field at runtime leaves a stale key in
|
|
182
|
+
// `formState` that `_isNameDisabled` cannot resolve, so a renamed-but-
|
|
183
|
+
// disabled field would re-appear in `.value`.
|
|
184
|
+
/**
|
|
185
|
+
* @private
|
|
186
|
+
* @type {MutationObserver | null}
|
|
187
|
+
*/
|
|
188
|
+
this._attributeObserver = null;
|
|
189
|
+
|
|
190
|
+
/** @private */
|
|
191
|
+
this._handleAttributeMutations = this._handleAttributeMutations.bind(this);
|
|
192
|
+
|
|
180
193
|
// Bind listeners
|
|
181
194
|
/** @private */
|
|
182
195
|
this.reset = this.reset.bind(this);
|
|
@@ -245,6 +258,42 @@ class AuroForm extends LitElement {
|
|
|
245
258
|
return this._isInElementCollection(AuroForm.formElementTags, element);
|
|
246
259
|
}
|
|
247
260
|
|
|
261
|
+
/**
|
|
262
|
+
* Whether a given element is currently disabled. Disabled controls are excluded
|
|
263
|
+
* from submission, validity, and initial-state checks (per the HTML spec).
|
|
264
|
+
*
|
|
265
|
+
* Implementation note: we deliberately read only the attribute. Every Auro
|
|
266
|
+
* form element in `formElementTags` declares `disabled` with `reflect: true`,
|
|
267
|
+
* so the attribute and property stay in sync. Reading the attribute also
|
|
268
|
+
* lets the MutationObserver in `connectedCallback` (which is filtered to
|
|
269
|
+
* `['disabled', 'name']`) be the single source of truth for re-renders.
|
|
270
|
+
* If a future form-element type ships without attribute reflection, expand
|
|
271
|
+
* this helper to also read `element.disabled`.
|
|
272
|
+
* @param {HTMLElement | undefined | null} element - The element to check.
|
|
273
|
+
* @returns {boolean}
|
|
274
|
+
* @private
|
|
275
|
+
*/
|
|
276
|
+
_isDisabled(element) {
|
|
277
|
+
return Boolean(element?.hasAttribute('disabled'));
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Whether the tracked form element registered under `name` is currently disabled.
|
|
282
|
+
*
|
|
283
|
+
* Performance note: this is called once per `formState` key per read of
|
|
284
|
+
* `value` / `validity` / `isInitialState`, producing O(n²) work where n is
|
|
285
|
+
* the number of tracked fields. Acceptable for typical forms (< ~50 fields).
|
|
286
|
+
* For larger forms, a future refactor should store disabled state on each
|
|
287
|
+
* `formState` entry and update it from the attribute observer instead.
|
|
288
|
+
* @param {string} name - The `name` attribute used to register the element.
|
|
289
|
+
* @returns {boolean}
|
|
290
|
+
* @private
|
|
291
|
+
*/
|
|
292
|
+
_isNameDisabled(name) {
|
|
293
|
+
const element = this._elements.find((el) => el.getAttribute('name') === name);
|
|
294
|
+
return this._isDisabled(element);
|
|
295
|
+
}
|
|
296
|
+
|
|
248
297
|
/**
|
|
249
298
|
* Validates if an event is from a valid form element with a name.
|
|
250
299
|
* @param {Event} event - The event to validate.
|
|
@@ -284,6 +333,10 @@ class AuroForm extends LitElement {
|
|
|
284
333
|
*/
|
|
285
334
|
get value() {
|
|
286
335
|
return Object.keys(this.formState).reduce((acc, key) => {
|
|
336
|
+
if (this._isNameDisabled(key)) {
|
|
337
|
+
return acc;
|
|
338
|
+
}
|
|
339
|
+
|
|
287
340
|
acc[key] = this.formState[key].value;
|
|
288
341
|
return acc;
|
|
289
342
|
}, {});
|
|
@@ -318,6 +371,10 @@ class AuroForm extends LitElement {
|
|
|
318
371
|
// go through validity states and return the first invalid state (if any)
|
|
319
372
|
const invalidKey = Object.keys(this.formState).
|
|
320
373
|
find((key) => {
|
|
374
|
+
if (this._isNameDisabled(key)) {
|
|
375
|
+
return false;
|
|
376
|
+
}
|
|
377
|
+
|
|
321
378
|
const formKey = this.formState[key];
|
|
322
379
|
// these are NOT extra parens
|
|
323
380
|
// eslint-disable-next-line no-extra-parens
|
|
@@ -344,7 +401,13 @@ class AuroForm extends LitElement {
|
|
|
344
401
|
* @private
|
|
345
402
|
*/
|
|
346
403
|
_setInitialState() {
|
|
347
|
-
const anyTainted = Object.keys(this.formState).some((key) =>
|
|
404
|
+
const anyTainted = Object.keys(this.formState).some((key) => {
|
|
405
|
+
if (this._isNameDisabled(key)) {
|
|
406
|
+
return false;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
return this.formState[key].validity !== null || this.formState[key].value !== null;
|
|
410
|
+
});
|
|
348
411
|
|
|
349
412
|
this._isInitialState = !anyTainted;
|
|
350
413
|
|
|
@@ -428,7 +491,6 @@ class AuroForm extends LitElement {
|
|
|
428
491
|
value: element.value || element.getAttribute('value'),
|
|
429
492
|
validity: element.validity || null,
|
|
430
493
|
required: element.hasAttribute('required'),
|
|
431
|
-
// element
|
|
432
494
|
};
|
|
433
495
|
|
|
434
496
|
this._elements.push(element);
|
|
@@ -511,10 +573,13 @@ class AuroForm extends LitElement {
|
|
|
511
573
|
* @returns {Promise<void>}
|
|
512
574
|
*/
|
|
513
575
|
async submit() {
|
|
514
|
-
// Force validation on
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
576
|
+
// Force validation on all enabled elements. Disabled fields are skipped
|
|
577
|
+
// because disabled controls are not validated nor submitted per the HTML spec.
|
|
578
|
+
this._elements.
|
|
579
|
+
filter((element) => !this._isDisabled(element)).
|
|
580
|
+
forEach((element) => {
|
|
581
|
+
element.validate(true);
|
|
582
|
+
});
|
|
518
583
|
|
|
519
584
|
// Wait for validation to complete and formState to update
|
|
520
585
|
await this.updateComplete;
|
|
@@ -602,6 +667,11 @@ class AuroForm extends LitElement {
|
|
|
602
667
|
*/
|
|
603
668
|
handleKeyDown(event) {
|
|
604
669
|
if (event.key === 'Enter' && this.isFormElement(event.target)) {
|
|
670
|
+
// Disabled controls do not submit a form natively.
|
|
671
|
+
if (this._isDisabled(event.target)) {
|
|
672
|
+
return;
|
|
673
|
+
}
|
|
674
|
+
|
|
605
675
|
// Don't submit if it's a textarea (allow new lines)
|
|
606
676
|
if (event.target.tagName.toLowerCase() === 'textarea' ||
|
|
607
677
|
event.target.hasAttribute('textarea')) {
|
|
@@ -633,6 +703,76 @@ class AuroForm extends LitElement {
|
|
|
633
703
|
});
|
|
634
704
|
}
|
|
635
705
|
|
|
706
|
+
/**
|
|
707
|
+
* Handle batched MutationObserver records for `disabled` and `name`
|
|
708
|
+
* attribute changes on tracked form elements. A `name` change invalidates
|
|
709
|
+
* the formState keying — we resolve it by re-initializing state. A `disabled`
|
|
710
|
+
* change simply needs a re-render (so `value` / `validity` getters re-evaluate)
|
|
711
|
+
* and a refresh of the submit/reset button enablement.
|
|
712
|
+
* @param {MutationRecord[]} mutations - The batched mutation records.
|
|
713
|
+
* @returns {void}
|
|
714
|
+
* @private
|
|
715
|
+
*/
|
|
716
|
+
_handleAttributeMutations(mutations) {
|
|
717
|
+
// Only mutations on tracked FORM elements matter here. The same observer
|
|
718
|
+
// also sees attribute changes on the submit/reset buttons (which this
|
|
719
|
+
// component itself toggles via `setDisabledStateOnButtons`); reacting to
|
|
720
|
+
// those would create an infinite observer/update loop.
|
|
721
|
+
const relevant = mutations.filter((mutation) => this.isFormElement(mutation.target));
|
|
722
|
+
if (relevant.length === 0) {
|
|
723
|
+
return;
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
const renameOccurred = relevant.some((mutation) => mutation.attributeName === 'name');
|
|
727
|
+
if (renameOccurred) {
|
|
728
|
+
// initializeState() rebuilds formState from scratch (re-keying any
|
|
729
|
+
// renamed element) and also dispatches `change` + refreshes button state,
|
|
730
|
+
// so we can return early without doing the disabled path's work.
|
|
731
|
+
this.initializeState();
|
|
732
|
+
return;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
this.requestUpdate('formState');
|
|
736
|
+
this.setDisabledStateOnButtons();
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
/**
|
|
740
|
+
* @returns {void}
|
|
741
|
+
*/
|
|
742
|
+
connectedCallback() {
|
|
743
|
+
super.connectedCallback();
|
|
744
|
+
|
|
745
|
+
// One observer rooted at the host catches `disabled` / `name` changes on
|
|
746
|
+
// any tracked form element (light-DOM children, including those nested in
|
|
747
|
+
// wrapper elements). Cheaper than allocating an observer per element and
|
|
748
|
+
// resilient to runtime DOM mutations.
|
|
749
|
+
if (!this._attributeObserver) {
|
|
750
|
+
this._attributeObserver = new MutationObserver(this._handleAttributeMutations);
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
this._attributeObserver.observe(this, {
|
|
754
|
+
attributes: true,
|
|
755
|
+
subtree: true,
|
|
756
|
+
attributeFilter: [
|
|
757
|
+
'disabled',
|
|
758
|
+
'name'
|
|
759
|
+
]
|
|
760
|
+
});
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* @returns {void}
|
|
765
|
+
*/
|
|
766
|
+
disconnectedCallback() {
|
|
767
|
+
// Disconnect everything we own to avoid leaking observers (and the strong
|
|
768
|
+
// refs they hold to DOM nodes) past the form's lifetime.
|
|
769
|
+
this._attributeObserver?.disconnect();
|
|
770
|
+
this.mutationObservers.forEach((observer) => observer.disconnect());
|
|
771
|
+
this.mutationObservers = [];
|
|
772
|
+
|
|
773
|
+
super.disconnectedCallback();
|
|
774
|
+
}
|
|
775
|
+
|
|
636
776
|
/**
|
|
637
777
|
* @param {import('lit').PropertyValues} _changedProperties - Map of changed properties with their previous values.
|
|
638
778
|
* @returns {void}
|
|
@@ -6614,7 +6614,7 @@ class AuroHelpText extends LitElement {
|
|
|
6614
6614
|
}
|
|
6615
6615
|
}
|
|
6616
6616
|
|
|
6617
|
-
var formkitVersion = '
|
|
6617
|
+
var formkitVersion = '202605122006';
|
|
6618
6618
|
|
|
6619
6619
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
6620
6620
|
// See LICENSE in the project root for license information.
|
|
@@ -6614,7 +6614,7 @@ class AuroHelpText extends LitElement {
|
|
|
6614
6614
|
}
|
|
6615
6615
|
}
|
|
6616
6616
|
|
|
6617
|
-
var formkitVersion = '
|
|
6617
|
+
var formkitVersion = '202605122006';
|
|
6618
6618
|
|
|
6619
6619
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
6620
6620
|
// See LICENSE in the project root for license information.
|
|
@@ -1634,7 +1634,7 @@ class AuroHelpText extends i$2 {
|
|
|
1634
1634
|
}
|
|
1635
1635
|
}
|
|
1636
1636
|
|
|
1637
|
-
var formkitVersion = '
|
|
1637
|
+
var formkitVersion = '202605122006';
|
|
1638
1638
|
|
|
1639
1639
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
1640
1640
|
// See LICENSE in the project root for license information.
|
|
@@ -1573,7 +1573,7 @@ class AuroHelpText extends LitElement {
|
|
|
1573
1573
|
}
|
|
1574
1574
|
}
|
|
1575
1575
|
|
|
1576
|
-
var formkitVersion = '
|
|
1576
|
+
var formkitVersion = '202605122006';
|
|
1577
1577
|
|
|
1578
1578
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
1579
1579
|
// See LICENSE in the project root for license information.
|
|
@@ -1573,7 +1573,7 @@ class AuroHelpText extends LitElement {
|
|
|
1573
1573
|
}
|
|
1574
1574
|
}
|
|
1575
1575
|
|
|
1576
|
-
var formkitVersion = '
|
|
1576
|
+
var formkitVersion = '202605122006';
|
|
1577
1577
|
|
|
1578
1578
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
1579
1579
|
// See LICENSE in the project root for license information.
|
|
@@ -5333,7 +5333,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$3 {
|
|
|
5333
5333
|
}
|
|
5334
5334
|
};
|
|
5335
5335
|
|
|
5336
|
-
var formkitVersion$1 = '
|
|
5336
|
+
var formkitVersion$1 = '202605122006';
|
|
5337
5337
|
|
|
5338
5338
|
class AuroElement extends i$3 {
|
|
5339
5339
|
static get properties() {
|
|
@@ -7086,7 +7086,7 @@ class AuroHelpText extends i$3 {
|
|
|
7086
7086
|
}
|
|
7087
7087
|
}
|
|
7088
7088
|
|
|
7089
|
-
var formkitVersion = '
|
|
7089
|
+
var formkitVersion = '202605122006';
|
|
7090
7090
|
|
|
7091
7091
|
var styleCss$2 = i$6`.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 [slot=displayValue]{display:none}.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%;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{height:auto}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}`;
|
|
7092
7092
|
|
|
@@ -5364,7 +5364,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$3 {
|
|
|
5364
5364
|
}
|
|
5365
5365
|
};
|
|
5366
5366
|
|
|
5367
|
-
var formkitVersion$1 = '
|
|
5367
|
+
var formkitVersion$1 = '202605122006';
|
|
5368
5368
|
|
|
5369
5369
|
class AuroElement extends i$3 {
|
|
5370
5370
|
static get properties() {
|
|
@@ -7117,7 +7117,7 @@ class AuroHelpText extends i$3 {
|
|
|
7117
7117
|
}
|
|
7118
7118
|
}
|
|
7119
7119
|
|
|
7120
|
-
var formkitVersion = '
|
|
7120
|
+
var formkitVersion = '202605122006';
|
|
7121
7121
|
|
|
7122
7122
|
var styleCss$2 = i$6`.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 [slot=displayValue]{display:none}.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%;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{height:auto}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}`;
|
|
7123
7123
|
|