@aurodesignsystem-dev/auro-formkit 0.0.0-pr1506.0 → 0.0.0-pr1506.2
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.html +1 -2
- 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.html +1 -2
- package/components/combobox/demo/customize.md +108 -132
- package/components/combobox/demo/customize.min.js +26 -130
- package/components/combobox/demo/getting-started.min.js +26 -130
- package/components/combobox/demo/index.min.js +26 -130
- package/components/combobox/dist/index.js +26 -130
- package/components/combobox/dist/registered.js +26 -130
- package/components/counter/demo/customize.min.js +2 -2
- package/components/counter/demo/index.min.js +2 -2
- package/components/counter/dist/index.js +2 -2
- package/components/counter/dist/registered.js +2 -2
- package/components/datepicker/demo/customize.min.js +12 -124
- package/components/datepicker/demo/index.min.js +12 -124
- package/components/datepicker/dist/index.js +12 -124
- package/components/datepicker/dist/registered.js +12 -124
- 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 +19 -0
- package/components/form/demo/customize.md +203 -51
- package/components/form/demo/customize.min.js +489 -419
- package/components/form/demo/getting-started.min.js +417 -419
- package/components/form/demo/index.min.js +417 -419
- package/components/form/demo/registerDemoDeps.min.js +54 -382
- package/components/form/dist/auro-form.d.ts +122 -4
- package/components/form/dist/index.js +363 -37
- package/components/form/dist/registered.js +363 -37
- package/components/input/demo/customize.html +1 -2
- package/components/input/demo/customize.min.js +10 -122
- package/components/input/demo/getting-started.min.js +10 -122
- package/components/input/demo/index.min.js +10 -122
- package/components/input/dist/base-input.d.ts +1 -49
- package/components/input/dist/index.js +10 -122
- package/components/input/dist/registered.js +10 -122
- package/components/radio/demo/customize.min.js +1 -1
- package/components/radio/demo/getting-started.min.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.html +1 -2
- 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 +123 -266
- package/package.json +1 -1
|
@@ -386,10 +386,8 @@ export default class BaseInput extends AuroElement {
|
|
|
386
386
|
disabled: boolean;
|
|
387
387
|
locale: string;
|
|
388
388
|
max: any;
|
|
389
|
-
_maxObject: any;
|
|
390
389
|
maxLength: any;
|
|
391
390
|
min: any;
|
|
392
|
-
_minObject: any;
|
|
393
391
|
minLength: any;
|
|
394
392
|
required: boolean;
|
|
395
393
|
onDark: boolean;
|
|
@@ -397,7 +395,6 @@ export default class BaseInput extends AuroElement {
|
|
|
397
395
|
size: string;
|
|
398
396
|
shape: string;
|
|
399
397
|
value: any;
|
|
400
|
-
_valueObject: any;
|
|
401
398
|
/**
|
|
402
399
|
* Internal Defaults.
|
|
403
400
|
* @private
|
|
@@ -453,29 +450,6 @@ export default class BaseInput extends AuroElement {
|
|
|
453
450
|
* @returns {Date|undefined}
|
|
454
451
|
*/
|
|
455
452
|
get maxObject(): Date | undefined;
|
|
456
|
-
/**
|
|
457
|
-
* Parses a date string into a Date object when the corresponding `_*Object`
|
|
458
|
-
* field hasn't been synced yet by `updated()`. Returns undefined when the
|
|
459
|
-
* input type/format isn't a full date or the string is not a valid date.
|
|
460
|
-
*
|
|
461
|
-
* Why this exists: a parent (datepicker) can call `inputN.validate()` from
|
|
462
|
-
* inside its own `updated()` before this input's `updated()` has run
|
|
463
|
-
* `syncDateValues()` — so `_valueObject`/`_maxObject` are still `undefined`
|
|
464
|
-
* and range checks would otherwise silently no-op (flipping the result to
|
|
465
|
-
* `valid` or `patternMismatch`).
|
|
466
|
-
* @private
|
|
467
|
-
* @param {string|undefined} dateStr - ISO date string from `value`/`min`/`max`.
|
|
468
|
-
* @returns {Date|undefined}
|
|
469
|
-
*/
|
|
470
|
-
private _computeDateObjectFallback;
|
|
471
|
-
/**
|
|
472
|
-
* Internal setter for readonly date object properties.
|
|
473
|
-
* @private
|
|
474
|
-
* @param {'valueObject'|'minObject'|'maxObject'} propertyName - Public object property name.
|
|
475
|
-
* @param {Date|undefined} propertyValue - Value to assign.
|
|
476
|
-
* @returns {void}
|
|
477
|
-
*/
|
|
478
|
-
private setDateObjectProperty;
|
|
479
453
|
firstUpdated(): void;
|
|
480
454
|
wrapperElement: Element | null | undefined;
|
|
481
455
|
inputElement: HTMLInputElement | null | undefined;
|
|
@@ -510,28 +484,6 @@ export default class BaseInput extends AuroElement {
|
|
|
510
484
|
* @returns {void} Notify validity state changed via event.
|
|
511
485
|
*/
|
|
512
486
|
private notifyValidityChange;
|
|
513
|
-
/**
|
|
514
|
-
* Synchronizes the ISO string values and Date object representations for date-related properties.
|
|
515
|
-
* This keeps the model and display values aligned when either side changes.
|
|
516
|
-
*
|
|
517
|
-
* When a full date format is in use, this method updates `value`, `min`, and `max` from their corresponding
|
|
518
|
-
* Date objects or vice versa, based on which properties have changed. It only runs when the current configuration
|
|
519
|
-
* represents a full year/month/day date format.
|
|
520
|
-
*
|
|
521
|
-
* @param {Map<string, unknown>|undefined} [changedProperties=undefined] - Optional map of changed properties used to limit which values are synchronized.
|
|
522
|
-
* @returns {void}
|
|
523
|
-
* @private
|
|
524
|
-
*/
|
|
525
|
-
private syncDateValues;
|
|
526
|
-
/**
|
|
527
|
-
* Synchronizes one date object/string property pair.
|
|
528
|
-
* @private
|
|
529
|
-
* @param {Map<string, unknown>|undefined} changedProperties - Map of changed properties from Lit.
|
|
530
|
-
* @param {string} objectProperty - Date object property name.
|
|
531
|
-
* @param {string} valueProperty - ISO string property name.
|
|
532
|
-
* @returns {void}
|
|
533
|
-
*/
|
|
534
|
-
private syncSingleDateValue;
|
|
535
487
|
/**
|
|
536
488
|
* Sets up IMasks and logic based on auto-formatting requirements.
|
|
537
489
|
* @private
|
|
@@ -539,7 +491,7 @@ export default class BaseInput extends AuroElement {
|
|
|
539
491
|
*/
|
|
540
492
|
private configureAutoFormatting;
|
|
541
493
|
_configuringMask: boolean | undefined;
|
|
542
|
-
maskInstance: import("imask").InputMask<any> | undefined;
|
|
494
|
+
maskInstance: import("imask").InputMask<any> | null | undefined;
|
|
543
495
|
/**
|
|
544
496
|
* Sends event notifying that the input has changed it's value.
|
|
545
497
|
* @private
|
|
@@ -10483,10 +10483,8 @@ class BaseInput extends AuroElement {
|
|
|
10483
10483
|
this.layout = 'classic';
|
|
10484
10484
|
this.locale = 'en-US';
|
|
10485
10485
|
this.max = undefined;
|
|
10486
|
-
this._maxObject = undefined;
|
|
10487
10486
|
this.maxLength = undefined;
|
|
10488
10487
|
this.min = undefined;
|
|
10489
|
-
this._minObject = undefined;
|
|
10490
10488
|
this.minLength = undefined;
|
|
10491
10489
|
this.required = false;
|
|
10492
10490
|
this.onDark = false;
|
|
@@ -10494,7 +10492,6 @@ class BaseInput extends AuroElement {
|
|
|
10494
10492
|
this.size = 'lg';
|
|
10495
10493
|
this.shape = 'classic';
|
|
10496
10494
|
this.value = undefined;
|
|
10497
|
-
this._valueObject = undefined;
|
|
10498
10495
|
|
|
10499
10496
|
this._initializePrivateDefaults();
|
|
10500
10497
|
}
|
|
@@ -11034,7 +11031,7 @@ class BaseInput extends AuroElement {
|
|
|
11034
11031
|
* @returns {Date|undefined}
|
|
11035
11032
|
*/
|
|
11036
11033
|
get valueObject() {
|
|
11037
|
-
return this.
|
|
11034
|
+
return this.value && dateFormatter.isValidDate(this.value) ? dateFormatter.stringToDateInstance(this.value) : undefined;
|
|
11038
11035
|
}
|
|
11039
11036
|
|
|
11040
11037
|
/**
|
|
@@ -11042,7 +11039,7 @@ class BaseInput extends AuroElement {
|
|
|
11042
11039
|
* @returns {Date|undefined}
|
|
11043
11040
|
*/
|
|
11044
11041
|
get minObject() {
|
|
11045
|
-
return this.
|
|
11042
|
+
return this.min && dateFormatter.isValidDate(this.min) ? dateFormatter.stringToDateInstance(this.min) : undefined;
|
|
11046
11043
|
}
|
|
11047
11044
|
|
|
11048
11045
|
/**
|
|
@@ -11050,50 +11047,7 @@ class BaseInput extends AuroElement {
|
|
|
11050
11047
|
* @returns {Date|undefined}
|
|
11051
11048
|
*/
|
|
11052
11049
|
get maxObject() {
|
|
11053
|
-
return this.
|
|
11054
|
-
}
|
|
11055
|
-
|
|
11056
|
-
/**
|
|
11057
|
-
* Parses a date string into a Date object when the corresponding `_*Object`
|
|
11058
|
-
* field hasn't been synced yet by `updated()`. Returns undefined when the
|
|
11059
|
-
* input type/format isn't a full date or the string is not a valid date.
|
|
11060
|
-
*
|
|
11061
|
-
* Why this exists: a parent (datepicker) can call `inputN.validate()` from
|
|
11062
|
-
* inside its own `updated()` before this input's `updated()` has run
|
|
11063
|
-
* `syncDateValues()` — so `_valueObject`/`_maxObject` are still `undefined`
|
|
11064
|
-
* and range checks would otherwise silently no-op (flipping the result to
|
|
11065
|
-
* `valid` or `patternMismatch`).
|
|
11066
|
-
* @private
|
|
11067
|
-
* @param {string|undefined} dateStr - ISO date string from `value`/`min`/`max`.
|
|
11068
|
-
* @returns {Date|undefined}
|
|
11069
|
-
*/
|
|
11070
|
-
_computeDateObjectFallback(dateStr) {
|
|
11071
|
-
if (!dateStr || !this.util || !this.util.isFullDateFormat(this.type, this.format)) {
|
|
11072
|
-
return undefined;
|
|
11073
|
-
}
|
|
11074
|
-
if (!dateFormatter.isValidDate(dateStr)) {
|
|
11075
|
-
return undefined;
|
|
11076
|
-
}
|
|
11077
|
-
return dateFormatter.stringToDateInstance(dateStr);
|
|
11078
|
-
}
|
|
11079
|
-
|
|
11080
|
-
/**
|
|
11081
|
-
* Internal setter for readonly date object properties.
|
|
11082
|
-
* @private
|
|
11083
|
-
* @param {'valueObject'|'minObject'|'maxObject'} propertyName - Public object property name.
|
|
11084
|
-
* @param {Date|undefined} propertyValue - Value to assign.
|
|
11085
|
-
* @returns {void}
|
|
11086
|
-
*/
|
|
11087
|
-
setDateObjectProperty(propertyName, propertyValue) {
|
|
11088
|
-
const internalPropertyName = `_${propertyName}`;
|
|
11089
|
-
const previousValue = this[internalPropertyName];
|
|
11090
|
-
|
|
11091
|
-
if (previousValue === propertyValue) {
|
|
11092
|
-
return;
|
|
11093
|
-
}
|
|
11094
|
-
|
|
11095
|
-
this[internalPropertyName] = propertyValue;
|
|
11096
|
-
this.requestUpdate(propertyName, previousValue);
|
|
11050
|
+
return this.max && dateFormatter.isValidDate(this.max) ? dateFormatter.stringToDateInstance(this.max) : undefined;
|
|
11097
11051
|
}
|
|
11098
11052
|
|
|
11099
11053
|
connectedCallback() {
|
|
@@ -11122,7 +11076,6 @@ class BaseInput extends AuroElement {
|
|
|
11122
11076
|
format: this.format
|
|
11123
11077
|
});
|
|
11124
11078
|
this.configureDataForType();
|
|
11125
|
-
this.syncDateValues();
|
|
11126
11079
|
}
|
|
11127
11080
|
|
|
11128
11081
|
disconnectedCallback() {
|
|
@@ -11152,7 +11105,6 @@ class BaseInput extends AuroElement {
|
|
|
11152
11105
|
this.setCustomHelpTextMessage();
|
|
11153
11106
|
this.configureAutoFormatting();
|
|
11154
11107
|
this.configureDataForType();
|
|
11155
|
-
this.syncDateValues();
|
|
11156
11108
|
}
|
|
11157
11109
|
|
|
11158
11110
|
/**
|
|
@@ -11289,8 +11241,6 @@ class BaseInput extends AuroElement {
|
|
|
11289
11241
|
this.configureDataForType();
|
|
11290
11242
|
}
|
|
11291
11243
|
|
|
11292
|
-
this.syncDateValues(changedProperties);
|
|
11293
|
-
|
|
11294
11244
|
if (changedProperties.has('value')) {
|
|
11295
11245
|
if (this.value && this.value.length > 0) {
|
|
11296
11246
|
this.hasValue = true;
|
|
@@ -11361,69 +11311,6 @@ class BaseInput extends AuroElement {
|
|
|
11361
11311
|
}));
|
|
11362
11312
|
}
|
|
11363
11313
|
|
|
11364
|
-
|
|
11365
|
-
/**
|
|
11366
|
-
* Synchronizes the ISO string values and Date object representations for date-related properties.
|
|
11367
|
-
* This keeps the model and display values aligned when either side changes.
|
|
11368
|
-
*
|
|
11369
|
-
* When a full date format is in use, this method updates `value`, `min`, and `max` from their corresponding
|
|
11370
|
-
* Date objects or vice versa, based on which properties have changed. It only runs when the current configuration
|
|
11371
|
-
* represents a full year/month/day date format.
|
|
11372
|
-
*
|
|
11373
|
-
* @param {Map<string, unknown>|undefined} [changedProperties=undefined] - Optional map of changed properties used to limit which values are synchronized.
|
|
11374
|
-
* @returns {void}
|
|
11375
|
-
* @private
|
|
11376
|
-
*/
|
|
11377
|
-
syncDateValues(changedProperties = undefined) {
|
|
11378
|
-
if (!this.util.isFullDateFormat(this.type, this.format)) {
|
|
11379
|
-
return;
|
|
11380
|
-
}
|
|
11381
|
-
|
|
11382
|
-
this.syncSingleDateValue(changedProperties, 'valueObject', 'value');
|
|
11383
|
-
this.syncSingleDateValue(changedProperties, 'minObject', 'min');
|
|
11384
|
-
this.syncSingleDateValue(changedProperties, 'maxObject', 'max');
|
|
11385
|
-
}
|
|
11386
|
-
|
|
11387
|
-
/**
|
|
11388
|
-
* Synchronizes one date object/string property pair.
|
|
11389
|
-
* @private
|
|
11390
|
-
* @param {Map<string, unknown>|undefined} changedProperties - Map of changed properties from Lit.
|
|
11391
|
-
* @param {string} objectProperty - Date object property name.
|
|
11392
|
-
* @param {string} valueProperty - ISO string property name.
|
|
11393
|
-
* @returns {void}
|
|
11394
|
-
*/
|
|
11395
|
-
syncSingleDateValue(changedProperties, objectProperty, valueProperty) {
|
|
11396
|
-
const objectPropertyChanged = !changedProperties || changedProperties.has(objectProperty);
|
|
11397
|
-
|
|
11398
|
-
// objectProperty wins over valueProperty when both changed
|
|
11399
|
-
if (objectPropertyChanged && this[objectProperty]) {
|
|
11400
|
-
this[valueProperty] = dateFormatter.toISOFormatString(this[objectProperty]);
|
|
11401
|
-
return;
|
|
11402
|
-
}
|
|
11403
|
-
|
|
11404
|
-
const valuePropertyChanged = !changedProperties || changedProperties.has(valueProperty);
|
|
11405
|
-
if (!valuePropertyChanged) {
|
|
11406
|
-
return;
|
|
11407
|
-
}
|
|
11408
|
-
|
|
11409
|
-
// when value is newly set to the same ISO string that corresponds to the existing Date object, do not clear the Date object (avoid unnecessary updates)
|
|
11410
|
-
if (
|
|
11411
|
-
changedProperties &&
|
|
11412
|
-
valueProperty === 'value' &&
|
|
11413
|
-
changedProperties.get('value') === undefined &&
|
|
11414
|
-
this[objectProperty] instanceof Date &&
|
|
11415
|
-
this[valueProperty] === dateFormatter.toISOFormatString(this[objectProperty])
|
|
11416
|
-
) {
|
|
11417
|
-
return;
|
|
11418
|
-
}
|
|
11419
|
-
|
|
11420
|
-
if (dateFormatter.isValidDate(this[valueProperty])) {
|
|
11421
|
-
this.setDateObjectProperty(objectProperty, dateFormatter.stringToDateInstance(this[valueProperty]));
|
|
11422
|
-
} else {
|
|
11423
|
-
this.setDateObjectProperty(objectProperty, undefined);
|
|
11424
|
-
}
|
|
11425
|
-
}
|
|
11426
|
-
|
|
11427
11314
|
/**
|
|
11428
11315
|
* Sets up IMasks and logic based on auto-formatting requirements.
|
|
11429
11316
|
* @private
|
|
@@ -11438,8 +11325,13 @@ class BaseInput extends AuroElement {
|
|
|
11438
11325
|
this._configuringMask = true;
|
|
11439
11326
|
try {
|
|
11440
11327
|
// Destroy any prior mask so IMask can attach fresh under the new format.
|
|
11328
|
+
// Null the reference too — if the new maskOptions.mask is falsy (e.g.
|
|
11329
|
+
// type switched from credit-card to text) the IMask() reassignment
|
|
11330
|
+
// below is skipped, and downstream writes at line ~823 would otherwise
|
|
11331
|
+
// route through the destroyed instance.
|
|
11441
11332
|
if (this.maskInstance) {
|
|
11442
11333
|
this.maskInstance.destroy();
|
|
11334
|
+
this.maskInstance = null;
|
|
11443
11335
|
}
|
|
11444
11336
|
|
|
11445
11337
|
this.util.updateFormat(this.format);
|
|
@@ -11460,9 +11352,7 @@ class BaseInput extends AuroElement {
|
|
|
11460
11352
|
if (
|
|
11461
11353
|
this.util.isFullDateFormat(this.type, this.format) &&
|
|
11462
11354
|
this.value &&
|
|
11463
|
-
|
|
11464
|
-
this.valueObject instanceof Date &&
|
|
11465
|
-
!Number.isNaN(this.valueObject.getTime()) &&
|
|
11355
|
+
this.valueObject &&
|
|
11466
11356
|
typeof maskOptions.format === 'function'
|
|
11467
11357
|
) {
|
|
11468
11358
|
existingValue = maskOptions.format(this.valueObject);
|
|
@@ -11667,7 +11557,6 @@ class BaseInput extends AuroElement {
|
|
|
11667
11557
|
*/
|
|
11668
11558
|
reset() {
|
|
11669
11559
|
this.value = undefined;
|
|
11670
|
-
this.setDateObjectProperty('valueObject', undefined);
|
|
11671
11560
|
this.validation.reset(this);
|
|
11672
11561
|
}
|
|
11673
11562
|
|
|
@@ -11676,7 +11565,6 @@ class BaseInput extends AuroElement {
|
|
|
11676
11565
|
*/
|
|
11677
11566
|
clear() {
|
|
11678
11567
|
this.value = undefined;
|
|
11679
|
-
this.setDateObjectProperty('valueObject', undefined);
|
|
11680
11568
|
}
|
|
11681
11569
|
|
|
11682
11570
|
/**
|
|
@@ -12205,7 +12093,7 @@ class AuroHelpText extends LitElement {
|
|
|
12205
12093
|
}
|
|
12206
12094
|
}
|
|
12207
12095
|
|
|
12208
|
-
var formkitVersion = '
|
|
12096
|
+
var formkitVersion = '202606221656';
|
|
12209
12097
|
|
|
12210
12098
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12211
12099
|
// See LICENSE in the project root for license information.
|
|
@@ -10483,10 +10483,8 @@ class BaseInput extends AuroElement {
|
|
|
10483
10483
|
this.layout = 'classic';
|
|
10484
10484
|
this.locale = 'en-US';
|
|
10485
10485
|
this.max = undefined;
|
|
10486
|
-
this._maxObject = undefined;
|
|
10487
10486
|
this.maxLength = undefined;
|
|
10488
10487
|
this.min = undefined;
|
|
10489
|
-
this._minObject = undefined;
|
|
10490
10488
|
this.minLength = undefined;
|
|
10491
10489
|
this.required = false;
|
|
10492
10490
|
this.onDark = false;
|
|
@@ -10494,7 +10492,6 @@ class BaseInput extends AuroElement {
|
|
|
10494
10492
|
this.size = 'lg';
|
|
10495
10493
|
this.shape = 'classic';
|
|
10496
10494
|
this.value = undefined;
|
|
10497
|
-
this._valueObject = undefined;
|
|
10498
10495
|
|
|
10499
10496
|
this._initializePrivateDefaults();
|
|
10500
10497
|
}
|
|
@@ -11034,7 +11031,7 @@ class BaseInput extends AuroElement {
|
|
|
11034
11031
|
* @returns {Date|undefined}
|
|
11035
11032
|
*/
|
|
11036
11033
|
get valueObject() {
|
|
11037
|
-
return this.
|
|
11034
|
+
return this.value && dateFormatter.isValidDate(this.value) ? dateFormatter.stringToDateInstance(this.value) : undefined;
|
|
11038
11035
|
}
|
|
11039
11036
|
|
|
11040
11037
|
/**
|
|
@@ -11042,7 +11039,7 @@ class BaseInput extends AuroElement {
|
|
|
11042
11039
|
* @returns {Date|undefined}
|
|
11043
11040
|
*/
|
|
11044
11041
|
get minObject() {
|
|
11045
|
-
return this.
|
|
11042
|
+
return this.min && dateFormatter.isValidDate(this.min) ? dateFormatter.stringToDateInstance(this.min) : undefined;
|
|
11046
11043
|
}
|
|
11047
11044
|
|
|
11048
11045
|
/**
|
|
@@ -11050,50 +11047,7 @@ class BaseInput extends AuroElement {
|
|
|
11050
11047
|
* @returns {Date|undefined}
|
|
11051
11048
|
*/
|
|
11052
11049
|
get maxObject() {
|
|
11053
|
-
return this.
|
|
11054
|
-
}
|
|
11055
|
-
|
|
11056
|
-
/**
|
|
11057
|
-
* Parses a date string into a Date object when the corresponding `_*Object`
|
|
11058
|
-
* field hasn't been synced yet by `updated()`. Returns undefined when the
|
|
11059
|
-
* input type/format isn't a full date or the string is not a valid date.
|
|
11060
|
-
*
|
|
11061
|
-
* Why this exists: a parent (datepicker) can call `inputN.validate()` from
|
|
11062
|
-
* inside its own `updated()` before this input's `updated()` has run
|
|
11063
|
-
* `syncDateValues()` — so `_valueObject`/`_maxObject` are still `undefined`
|
|
11064
|
-
* and range checks would otherwise silently no-op (flipping the result to
|
|
11065
|
-
* `valid` or `patternMismatch`).
|
|
11066
|
-
* @private
|
|
11067
|
-
* @param {string|undefined} dateStr - ISO date string from `value`/`min`/`max`.
|
|
11068
|
-
* @returns {Date|undefined}
|
|
11069
|
-
*/
|
|
11070
|
-
_computeDateObjectFallback(dateStr) {
|
|
11071
|
-
if (!dateStr || !this.util || !this.util.isFullDateFormat(this.type, this.format)) {
|
|
11072
|
-
return undefined;
|
|
11073
|
-
}
|
|
11074
|
-
if (!dateFormatter.isValidDate(dateStr)) {
|
|
11075
|
-
return undefined;
|
|
11076
|
-
}
|
|
11077
|
-
return dateFormatter.stringToDateInstance(dateStr);
|
|
11078
|
-
}
|
|
11079
|
-
|
|
11080
|
-
/**
|
|
11081
|
-
* Internal setter for readonly date object properties.
|
|
11082
|
-
* @private
|
|
11083
|
-
* @param {'valueObject'|'minObject'|'maxObject'} propertyName - Public object property name.
|
|
11084
|
-
* @param {Date|undefined} propertyValue - Value to assign.
|
|
11085
|
-
* @returns {void}
|
|
11086
|
-
*/
|
|
11087
|
-
setDateObjectProperty(propertyName, propertyValue) {
|
|
11088
|
-
const internalPropertyName = `_${propertyName}`;
|
|
11089
|
-
const previousValue = this[internalPropertyName];
|
|
11090
|
-
|
|
11091
|
-
if (previousValue === propertyValue) {
|
|
11092
|
-
return;
|
|
11093
|
-
}
|
|
11094
|
-
|
|
11095
|
-
this[internalPropertyName] = propertyValue;
|
|
11096
|
-
this.requestUpdate(propertyName, previousValue);
|
|
11050
|
+
return this.max && dateFormatter.isValidDate(this.max) ? dateFormatter.stringToDateInstance(this.max) : undefined;
|
|
11097
11051
|
}
|
|
11098
11052
|
|
|
11099
11053
|
connectedCallback() {
|
|
@@ -11122,7 +11076,6 @@ class BaseInput extends AuroElement {
|
|
|
11122
11076
|
format: this.format
|
|
11123
11077
|
});
|
|
11124
11078
|
this.configureDataForType();
|
|
11125
|
-
this.syncDateValues();
|
|
11126
11079
|
}
|
|
11127
11080
|
|
|
11128
11081
|
disconnectedCallback() {
|
|
@@ -11152,7 +11105,6 @@ class BaseInput extends AuroElement {
|
|
|
11152
11105
|
this.setCustomHelpTextMessage();
|
|
11153
11106
|
this.configureAutoFormatting();
|
|
11154
11107
|
this.configureDataForType();
|
|
11155
|
-
this.syncDateValues();
|
|
11156
11108
|
}
|
|
11157
11109
|
|
|
11158
11110
|
/**
|
|
@@ -11289,8 +11241,6 @@ class BaseInput extends AuroElement {
|
|
|
11289
11241
|
this.configureDataForType();
|
|
11290
11242
|
}
|
|
11291
11243
|
|
|
11292
|
-
this.syncDateValues(changedProperties);
|
|
11293
|
-
|
|
11294
11244
|
if (changedProperties.has('value')) {
|
|
11295
11245
|
if (this.value && this.value.length > 0) {
|
|
11296
11246
|
this.hasValue = true;
|
|
@@ -11361,69 +11311,6 @@ class BaseInput extends AuroElement {
|
|
|
11361
11311
|
}));
|
|
11362
11312
|
}
|
|
11363
11313
|
|
|
11364
|
-
|
|
11365
|
-
/**
|
|
11366
|
-
* Synchronizes the ISO string values and Date object representations for date-related properties.
|
|
11367
|
-
* This keeps the model and display values aligned when either side changes.
|
|
11368
|
-
*
|
|
11369
|
-
* When a full date format is in use, this method updates `value`, `min`, and `max` from their corresponding
|
|
11370
|
-
* Date objects or vice versa, based on which properties have changed. It only runs when the current configuration
|
|
11371
|
-
* represents a full year/month/day date format.
|
|
11372
|
-
*
|
|
11373
|
-
* @param {Map<string, unknown>|undefined} [changedProperties=undefined] - Optional map of changed properties used to limit which values are synchronized.
|
|
11374
|
-
* @returns {void}
|
|
11375
|
-
* @private
|
|
11376
|
-
*/
|
|
11377
|
-
syncDateValues(changedProperties = undefined) {
|
|
11378
|
-
if (!this.util.isFullDateFormat(this.type, this.format)) {
|
|
11379
|
-
return;
|
|
11380
|
-
}
|
|
11381
|
-
|
|
11382
|
-
this.syncSingleDateValue(changedProperties, 'valueObject', 'value');
|
|
11383
|
-
this.syncSingleDateValue(changedProperties, 'minObject', 'min');
|
|
11384
|
-
this.syncSingleDateValue(changedProperties, 'maxObject', 'max');
|
|
11385
|
-
}
|
|
11386
|
-
|
|
11387
|
-
/**
|
|
11388
|
-
* Synchronizes one date object/string property pair.
|
|
11389
|
-
* @private
|
|
11390
|
-
* @param {Map<string, unknown>|undefined} changedProperties - Map of changed properties from Lit.
|
|
11391
|
-
* @param {string} objectProperty - Date object property name.
|
|
11392
|
-
* @param {string} valueProperty - ISO string property name.
|
|
11393
|
-
* @returns {void}
|
|
11394
|
-
*/
|
|
11395
|
-
syncSingleDateValue(changedProperties, objectProperty, valueProperty) {
|
|
11396
|
-
const objectPropertyChanged = !changedProperties || changedProperties.has(objectProperty);
|
|
11397
|
-
|
|
11398
|
-
// objectProperty wins over valueProperty when both changed
|
|
11399
|
-
if (objectPropertyChanged && this[objectProperty]) {
|
|
11400
|
-
this[valueProperty] = dateFormatter.toISOFormatString(this[objectProperty]);
|
|
11401
|
-
return;
|
|
11402
|
-
}
|
|
11403
|
-
|
|
11404
|
-
const valuePropertyChanged = !changedProperties || changedProperties.has(valueProperty);
|
|
11405
|
-
if (!valuePropertyChanged) {
|
|
11406
|
-
return;
|
|
11407
|
-
}
|
|
11408
|
-
|
|
11409
|
-
// when value is newly set to the same ISO string that corresponds to the existing Date object, do not clear the Date object (avoid unnecessary updates)
|
|
11410
|
-
if (
|
|
11411
|
-
changedProperties &&
|
|
11412
|
-
valueProperty === 'value' &&
|
|
11413
|
-
changedProperties.get('value') === undefined &&
|
|
11414
|
-
this[objectProperty] instanceof Date &&
|
|
11415
|
-
this[valueProperty] === dateFormatter.toISOFormatString(this[objectProperty])
|
|
11416
|
-
) {
|
|
11417
|
-
return;
|
|
11418
|
-
}
|
|
11419
|
-
|
|
11420
|
-
if (dateFormatter.isValidDate(this[valueProperty])) {
|
|
11421
|
-
this.setDateObjectProperty(objectProperty, dateFormatter.stringToDateInstance(this[valueProperty]));
|
|
11422
|
-
} else {
|
|
11423
|
-
this.setDateObjectProperty(objectProperty, undefined);
|
|
11424
|
-
}
|
|
11425
|
-
}
|
|
11426
|
-
|
|
11427
11314
|
/**
|
|
11428
11315
|
* Sets up IMasks and logic based on auto-formatting requirements.
|
|
11429
11316
|
* @private
|
|
@@ -11438,8 +11325,13 @@ class BaseInput extends AuroElement {
|
|
|
11438
11325
|
this._configuringMask = true;
|
|
11439
11326
|
try {
|
|
11440
11327
|
// Destroy any prior mask so IMask can attach fresh under the new format.
|
|
11328
|
+
// Null the reference too — if the new maskOptions.mask is falsy (e.g.
|
|
11329
|
+
// type switched from credit-card to text) the IMask() reassignment
|
|
11330
|
+
// below is skipped, and downstream writes at line ~823 would otherwise
|
|
11331
|
+
// route through the destroyed instance.
|
|
11441
11332
|
if (this.maskInstance) {
|
|
11442
11333
|
this.maskInstance.destroy();
|
|
11334
|
+
this.maskInstance = null;
|
|
11443
11335
|
}
|
|
11444
11336
|
|
|
11445
11337
|
this.util.updateFormat(this.format);
|
|
@@ -11460,9 +11352,7 @@ class BaseInput extends AuroElement {
|
|
|
11460
11352
|
if (
|
|
11461
11353
|
this.util.isFullDateFormat(this.type, this.format) &&
|
|
11462
11354
|
this.value &&
|
|
11463
|
-
|
|
11464
|
-
this.valueObject instanceof Date &&
|
|
11465
|
-
!Number.isNaN(this.valueObject.getTime()) &&
|
|
11355
|
+
this.valueObject &&
|
|
11466
11356
|
typeof maskOptions.format === 'function'
|
|
11467
11357
|
) {
|
|
11468
11358
|
existingValue = maskOptions.format(this.valueObject);
|
|
@@ -11667,7 +11557,6 @@ class BaseInput extends AuroElement {
|
|
|
11667
11557
|
*/
|
|
11668
11558
|
reset() {
|
|
11669
11559
|
this.value = undefined;
|
|
11670
|
-
this.setDateObjectProperty('valueObject', undefined);
|
|
11671
11560
|
this.validation.reset(this);
|
|
11672
11561
|
}
|
|
11673
11562
|
|
|
@@ -11676,7 +11565,6 @@ class BaseInput extends AuroElement {
|
|
|
11676
11565
|
*/
|
|
11677
11566
|
clear() {
|
|
11678
11567
|
this.value = undefined;
|
|
11679
|
-
this.setDateObjectProperty('valueObject', undefined);
|
|
11680
11568
|
}
|
|
11681
11569
|
|
|
11682
11570
|
/**
|
|
@@ -12205,7 +12093,7 @@ class AuroHelpText extends LitElement {
|
|
|
12205
12093
|
}
|
|
12206
12094
|
}
|
|
12207
12095
|
|
|
12208
|
-
var formkitVersion = '
|
|
12096
|
+
var formkitVersion = '202606221656';
|
|
12209
12097
|
|
|
12210
12098
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12211
12099
|
// See LICENSE in the project root for license information.
|
|
@@ -1212,7 +1212,7 @@ class AuroHelpText extends i$2 {
|
|
|
1212
1212
|
}
|
|
1213
1213
|
}
|
|
1214
1214
|
|
|
1215
|
-
var formkitVersion = '
|
|
1215
|
+
var formkitVersion = '202606221656';
|
|
1216
1216
|
|
|
1217
1217
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
1218
1218
|
// See LICENSE in the project root for license information.
|
|
@@ -1212,7 +1212,7 @@ class AuroHelpText extends i$2 {
|
|
|
1212
1212
|
}
|
|
1213
1213
|
}
|
|
1214
1214
|
|
|
1215
|
-
var formkitVersion = '
|
|
1215
|
+
var formkitVersion = '202606221656';
|
|
1216
1216
|
|
|
1217
1217
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
1218
1218
|
// See LICENSE in the project root for license information.
|
|
@@ -1212,7 +1212,7 @@ class AuroHelpText extends i$2 {
|
|
|
1212
1212
|
}
|
|
1213
1213
|
}
|
|
1214
1214
|
|
|
1215
|
-
var formkitVersion = '
|
|
1215
|
+
var formkitVersion = '202606221656';
|
|
1216
1216
|
|
|
1217
1217
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
1218
1218
|
// See LICENSE in the project root for license information.
|
|
@@ -1151,7 +1151,7 @@ class AuroHelpText extends LitElement {
|
|
|
1151
1151
|
}
|
|
1152
1152
|
}
|
|
1153
1153
|
|
|
1154
|
-
var formkitVersion = '
|
|
1154
|
+
var formkitVersion = '202606221656';
|
|
1155
1155
|
|
|
1156
1156
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
1157
1157
|
// See LICENSE in the project root for license information.
|
|
@@ -1151,7 +1151,7 @@ class AuroHelpText extends LitElement {
|
|
|
1151
1151
|
}
|
|
1152
1152
|
}
|
|
1153
1153
|
|
|
1154
|
-
var formkitVersion = '
|
|
1154
|
+
var formkitVersion = '202606221656';
|
|
1155
1155
|
|
|
1156
1156
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
1157
1157
|
// See LICENSE in the project root for license information.
|
|
@@ -41,12 +41,11 @@
|
|
|
41
41
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-hyperlink@latest/+esm" type="module"></script>
|
|
42
42
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-icon@latest/+esm" type="module"></script>
|
|
43
43
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-button@latest/+esm" type="module"></script>
|
|
44
|
-
<script type="module">
|
|
44
|
+
<script type="module" data-demo-script="true">
|
|
45
45
|
import { renderPage } from './demo-support.min.js';
|
|
46
46
|
await renderPage('./customize.md');
|
|
47
47
|
import { initExamples } from "./customize.min.js";
|
|
48
48
|
initExamples();
|
|
49
49
|
</script>
|
|
50
|
-
<script src="./customize.min.js" data-demo-script="true" type="module"></script>
|
|
51
50
|
</body>
|
|
52
51
|
</html>
|
|
@@ -4961,7 +4961,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
4961
4961
|
}
|
|
4962
4962
|
};
|
|
4963
4963
|
|
|
4964
|
-
var formkitVersion$1 = '
|
|
4964
|
+
var formkitVersion$1 = '202606221656';
|
|
4965
4965
|
|
|
4966
4966
|
class AuroElement extends i$2 {
|
|
4967
4967
|
static get properties() {
|
|
@@ -6974,7 +6974,7 @@ class AuroHelpText extends i$2 {
|
|
|
6974
6974
|
}
|
|
6975
6975
|
}
|
|
6976
6976
|
|
|
6977
|
-
var formkitVersion = '
|
|
6977
|
+
var formkitVersion = '202606221656';
|
|
6978
6978
|
|
|
6979
6979
|
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 [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}`;
|
|
6980
6980
|
|