@aurodesignsystem-dev/auro-formkit 0.0.0-pr1483.3 → 0.0.0-pr1488.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 +436 -14
- package/components/checkbox/demo/getting-started.min.js +436 -14
- package/components/checkbox/demo/index.min.js +436 -14
- package/components/checkbox/dist/index.js +436 -14
- package/components/checkbox/dist/registered.js +436 -14
- package/components/combobox/demo/customize.min.js +1482 -6618
- package/components/combobox/demo/getting-started.min.js +1482 -6618
- package/components/combobox/demo/index.min.js +1482 -6618
- package/components/combobox/demo/keyboard-behavior.md +68 -8
- package/components/combobox/dist/index.js +1489 -6625
- package/components/combobox/dist/registered.js +1489 -6625
- package/components/counter/demo/customize.min.js +437 -15
- package/components/counter/demo/index.min.js +437 -15
- package/components/counter/dist/index.js +436 -14
- package/components/counter/dist/registered.js +436 -14
- package/components/datepicker/demo/api.md +3 -10
- package/components/datepicker/demo/customize.md +6 -6
- package/components/datepicker/demo/index.md +4 -4
- package/components/datepicker/demo/index.min.js +2194 -7510
- package/components/datepicker/dist/index.js +2194 -7510
- package/components/datepicker/dist/registered.js +2194 -7510
- package/components/datepicker/dist/src/auro-calendar.d.ts +0 -6
- package/components/datepicker/dist/src/auro-datepicker.d.ts +10 -23
- package/components/datepicker/dist/src/utilities.d.ts +42 -10
- package/components/datepicker/dist/src/utilitiesCalendar.d.ts +2 -1
- 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.min.js +43986 -58306
- package/components/form/demo/getting-started.min.js +43986 -58306
- package/components/form/demo/index.min.js +43986 -58306
- package/components/form/demo/registerDemoDeps.min.js +43986 -58306
- package/components/input/demo/api.md +51 -57
- package/components/input/demo/customize.md +0 -160
- package/components/input/demo/customize.min.js +1011 -6565
- package/components/input/demo/getting-started.md +0 -11
- package/components/input/demo/getting-started.min.js +1010 -6564
- package/components/input/demo/index.md +3 -28
- package/components/input/demo/index.min.js +1010 -6564
- package/components/input/dist/auro-input.d.ts +6 -25
- package/components/input/dist/base-input.d.ts +69 -82
- package/components/input/dist/index.d.ts +1 -2
- package/components/input/dist/index.js +1003 -6599
- package/components/input/dist/registered.js +1010 -6564
- package/components/input/dist/utilities.d.ts +9 -68
- package/components/radio/demo/index.min.js +436 -14
- package/components/radio/dist/index.js +436 -14
- package/components/radio/dist/registered.js +436 -14
- package/components/select/demo/customize.min.js +455 -31
- package/components/select/demo/getting-started.min.js +455 -31
- package/components/select/demo/index.min.js +455 -31
- package/components/select/demo/keyboard-behavior.md +54 -8
- package/components/select/dist/index.js +455 -31
- package/components/select/dist/registered.js +455 -31
- package/custom-elements.json +717 -1199
- package/package.json +4 -4
- package/components/input/dist/auro-input-util.d.ts +0 -17
|
@@ -183,6 +183,415 @@ var shapeSizeCss$1 = i$6`.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.
|
|
|
183
183
|
|
|
184
184
|
var tokensCss$3 = i$6`:host(:not([ondark])),:host(:not([appearance=inverse])){--ds-auro-select-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-select-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-select-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-select-placeholder-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-select-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-select-error-icon-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-select-outline-color: transparent}:host([ondark]),:host([appearance=inverse]){--ds-auro-select-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-select-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-select-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db);--ds-auro-select-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-select-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-select-error-icon-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-select-outline-color: transparent}`;
|
|
185
185
|
|
|
186
|
+
class DateFormatter {
|
|
187
|
+
|
|
188
|
+
constructor() {
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* @description Parses a date string into its components.
|
|
192
|
+
* @param {string} dateStr - Date string to parse.
|
|
193
|
+
* @param {string} format - Date format to parse.
|
|
194
|
+
* @returns {Object<key["month" | "day" | "year"]: number>|undefined}
|
|
195
|
+
*/
|
|
196
|
+
this.parseDate = (dateStr, format = 'mm/dd/yyyy') => {
|
|
197
|
+
|
|
198
|
+
// Guard Clause: Date string is defined
|
|
199
|
+
if (!dateStr) {
|
|
200
|
+
return undefined;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
// Assume the separator is a "/" a defined in our code base
|
|
204
|
+
const separator = '/';
|
|
205
|
+
|
|
206
|
+
// Get the parts of the date and format
|
|
207
|
+
const valueParts = dateStr.split(separator);
|
|
208
|
+
const formatParts = format.split(separator);
|
|
209
|
+
|
|
210
|
+
// Check if the value and format have the correct number of parts
|
|
211
|
+
if (valueParts.length !== formatParts.length) {
|
|
212
|
+
throw new Error('AuroDatepickerUtilities | parseDate: Date string and format length do not match');
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
// Holds the result to be returned
|
|
216
|
+
const result = formatParts.reduce((acc, part, index) => {
|
|
217
|
+
const value = valueParts[index];
|
|
218
|
+
|
|
219
|
+
if ((/m/iu).test(part)) {
|
|
220
|
+
acc.month = value;
|
|
221
|
+
} else if ((/d/iu).test(part)) {
|
|
222
|
+
acc.day = value;
|
|
223
|
+
} else if ((/y/iu).test(part)) {
|
|
224
|
+
acc.year = value;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
return acc;
|
|
228
|
+
}, {});
|
|
229
|
+
|
|
230
|
+
// If we found all the parts, return the result
|
|
231
|
+
if (result.month && result.year) {
|
|
232
|
+
return result;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
// Throw an error to let the dev know we were unable to parse the date string
|
|
236
|
+
throw new Error('AuroDatepickerUtilities | parseDate: Unable to parse date string');
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Convert a date object to string format.
|
|
241
|
+
* @param {Object} date - Date to convert to string.
|
|
242
|
+
* @param {String} locale - Optional locale to use for the date string. Defaults to user's locale.
|
|
243
|
+
* @returns {String} Returns the date as a string.
|
|
244
|
+
*/
|
|
245
|
+
this.getDateAsString = (date, locale = undefined) => date.toLocaleDateString(locale, {
|
|
246
|
+
year: "numeric",
|
|
247
|
+
month: "2-digit",
|
|
248
|
+
day: "2-digit",
|
|
249
|
+
});
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Converts a date string to a North American date format.
|
|
253
|
+
* @param {String} dateStr - Date to validate.
|
|
254
|
+
* @param {String} format - Date format to validate against.
|
|
255
|
+
* @returns {Boolean}
|
|
256
|
+
*/
|
|
257
|
+
this.toNorthAmericanFormat = (dateStr, format) => {
|
|
258
|
+
|
|
259
|
+
if (format === 'mm/dd/yyyy') {
|
|
260
|
+
return dateStr;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
const parsedDate = this.parseDate(dateStr, format);
|
|
264
|
+
|
|
265
|
+
if (!parsedDate) {
|
|
266
|
+
throw new Error('AuroDatepickerUtilities | toNorthAmericanFormat: Unable to parse date string');
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
const { month, day, year } = parsedDate;
|
|
270
|
+
|
|
271
|
+
const dateParts = [];
|
|
272
|
+
if (month) {
|
|
273
|
+
dateParts.push(month);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
if (day) {
|
|
277
|
+
dateParts.push(day);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
if (year) {
|
|
281
|
+
dateParts.push(year);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
return dateParts.join('/');
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
const dateFormatter = new DateFormatter();
|
|
289
|
+
|
|
290
|
+
// filepath: dateConstraints.mjs
|
|
291
|
+
const DATE_UTIL_CONSTRAINTS = {
|
|
292
|
+
maxDay: 31,
|
|
293
|
+
maxMonth: 12,
|
|
294
|
+
maxYear: 2400,
|
|
295
|
+
minDay: 1,
|
|
296
|
+
minMonth: 1,
|
|
297
|
+
minYear: 1900,
|
|
298
|
+
};
|
|
299
|
+
|
|
300
|
+
class AuroDateUtilitiesBase {
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* @description The maximum day value allowed by the various utilities in this class.
|
|
304
|
+
* @readonly
|
|
305
|
+
* @type {Number}
|
|
306
|
+
*/
|
|
307
|
+
get maxDay() {
|
|
308
|
+
return DATE_UTIL_CONSTRAINTS.maxDay;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* @description The maximum month value allowed by the various utilities in this class.
|
|
313
|
+
* @readonly
|
|
314
|
+
* @type {Number}
|
|
315
|
+
*/
|
|
316
|
+
get maxMonth() {
|
|
317
|
+
return DATE_UTIL_CONSTRAINTS.maxMonth;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* @description The maximum year value allowed by the various utilities in this class.
|
|
322
|
+
* @readonly
|
|
323
|
+
* @type {Number}
|
|
324
|
+
*/
|
|
325
|
+
get maxYear() {
|
|
326
|
+
return DATE_UTIL_CONSTRAINTS.maxYear;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* @description The minimum day value allowed by the various utilities in this class.
|
|
331
|
+
* @readonly
|
|
332
|
+
* @type {Number}
|
|
333
|
+
*/
|
|
334
|
+
get minDay() {
|
|
335
|
+
return DATE_UTIL_CONSTRAINTS.minDay;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* @description The minimum month value allowed by the various utilities in this class.
|
|
340
|
+
* @readonly
|
|
341
|
+
* @type {Number}
|
|
342
|
+
*/
|
|
343
|
+
get minMonth() {
|
|
344
|
+
return DATE_UTIL_CONSTRAINTS.minMonth;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* @description The minimum year value allowed by the various utilities in this class.
|
|
349
|
+
* @readonly
|
|
350
|
+
* @type {Number}
|
|
351
|
+
*/
|
|
352
|
+
get minYear() {
|
|
353
|
+
return DATE_UTIL_CONSTRAINTS.minYear;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
/* eslint-disable no-magic-numbers */
|
|
358
|
+
|
|
359
|
+
class AuroDateUtilities extends AuroDateUtilitiesBase {
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* Returns the current century.
|
|
363
|
+
* @returns {String} The current century.
|
|
364
|
+
*/
|
|
365
|
+
getCentury () {
|
|
366
|
+
return String(new Date().getFullYear()).slice(0, 2);
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* Returns a four digit year.
|
|
371
|
+
* @param {String} year - The year to convert to four digits.
|
|
372
|
+
* @returns {String} The four digit year.
|
|
373
|
+
*/
|
|
374
|
+
getFourDigitYear (year) {
|
|
375
|
+
|
|
376
|
+
const strYear = String(year).trim();
|
|
377
|
+
return strYear.length <= 2 ? this.getCentury() + strYear : strYear;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
constructor() {
|
|
381
|
+
|
|
382
|
+
super();
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* Compares two dates to see if they match.
|
|
386
|
+
* @param {Object} date1 - First date to compare.
|
|
387
|
+
* @param {Object} date2 - Second date to compare.
|
|
388
|
+
* @returns {Boolean} Returns true if the dates match.
|
|
389
|
+
*/
|
|
390
|
+
this.datesMatch = (date1, date2) => new Date(date1).getTime() === new Date(date2).getTime();
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* Returns true if value passed in is a valid date.
|
|
394
|
+
* @param {String} date - Date to validate.
|
|
395
|
+
* @param {String} format - Date format to validate against.
|
|
396
|
+
* @returns {Boolean}
|
|
397
|
+
*/
|
|
398
|
+
this.validDateStr = (date, format) => {
|
|
399
|
+
|
|
400
|
+
// The length we expect the date string to be
|
|
401
|
+
const dateStrLength = format.length;
|
|
402
|
+
|
|
403
|
+
// Guard Clause: Date and format are defined
|
|
404
|
+
if (typeof date === "undefined" || typeof format === "undefined") {
|
|
405
|
+
throw new Error('AuroDatepickerUtilities | validateDateStr: Date and format are required');
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
// Guard Clause: Date should be of type string
|
|
409
|
+
if (typeof date !== "string") {
|
|
410
|
+
throw new Error('AuroDatepickerUtilities | validateDateStr: Date must be a string');
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
// Guard Clause: Format should be of type string
|
|
414
|
+
if (typeof format !== "string") {
|
|
415
|
+
throw new Error('AuroDatepickerUtilities | validateDateStr: Format must be a string');
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
// Guard Clause: Length is what we expect it to be
|
|
419
|
+
if (date.length !== dateStrLength) {
|
|
420
|
+
return false;
|
|
421
|
+
}
|
|
422
|
+
// Get a formatted date string and parse it
|
|
423
|
+
const dateParts = dateFormatter.parseDate(date, format);
|
|
424
|
+
|
|
425
|
+
// Guard Clause: Date parse succeeded
|
|
426
|
+
if (!dateParts) {
|
|
427
|
+
return false;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
// Create the expected date string based on the date parts
|
|
431
|
+
const expectedDateStr = `${dateParts.month}/${dateParts.day || "01"}/${this.getFourDigitYear(dateParts.year)}`;
|
|
432
|
+
|
|
433
|
+
// Generate a date object that we will extract a string date from to compare to the passed in date string
|
|
434
|
+
const dateObj = new Date(this.getFourDigitYear(dateParts.year), dateParts.month - 1, dateParts.day || 1);
|
|
435
|
+
|
|
436
|
+
// Get the date string of the date object we created from the string date
|
|
437
|
+
const actualDateStr = dateFormatter.getDateAsString(dateObj, "en-US");
|
|
438
|
+
|
|
439
|
+
// Guard Clause: Generated date matches date string input
|
|
440
|
+
if (expectedDateStr !== actualDateStr) {
|
|
441
|
+
return false;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
// If we passed all other checks, we can assume the date is valid
|
|
445
|
+
return true;
|
|
446
|
+
};
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* Determines if a string date value matches the format provided.
|
|
450
|
+
* @param {string} value = The date string value.
|
|
451
|
+
* @param { string} format = The date format to match against.
|
|
452
|
+
* @returns {boolean}
|
|
453
|
+
*/
|
|
454
|
+
this.dateAndFormatMatch = (value, format) => {
|
|
455
|
+
|
|
456
|
+
// Ensure we have both values we need to do the comparison
|
|
457
|
+
if (!value || !format) {
|
|
458
|
+
throw new Error('AuroFormValidation | dateFormatMatch: value and format are required');
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
// If the lengths are different, they cannot match
|
|
462
|
+
if (value.length !== format.length) {
|
|
463
|
+
return false;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
// Get the parts of the date
|
|
467
|
+
const dateParts = dateFormatter.parseDate(value, format);
|
|
468
|
+
|
|
469
|
+
// Validator for day
|
|
470
|
+
const dayValueIsValid = (day) => {
|
|
471
|
+
|
|
472
|
+
// Guard clause: if there is no day in the dateParts, we can ignore this check.
|
|
473
|
+
if (!dateParts.day) {
|
|
474
|
+
return true;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
// Guard clause: ensure day exists.
|
|
478
|
+
if (!day) {
|
|
479
|
+
return false;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
// Convert day to number
|
|
483
|
+
const numDay = Number.parseInt(day, 10);
|
|
484
|
+
|
|
485
|
+
// Guard clause: ensure day is a valid integer
|
|
486
|
+
if (Number.isNaN(numDay)) {
|
|
487
|
+
throw new Error('AuroDatepickerUtilities | dayValueIsValid: Unable to parse day value integer');
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
// Guard clause: ensure day is within the valid range
|
|
491
|
+
if (numDay < this.minDay || numDay > this.maxDay) {
|
|
492
|
+
return false;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
// Default return
|
|
496
|
+
return true;
|
|
497
|
+
};
|
|
498
|
+
|
|
499
|
+
// Validator for month
|
|
500
|
+
const monthValueIsValid = (month) => {
|
|
501
|
+
|
|
502
|
+
// Guard clause: ensure month exists.
|
|
503
|
+
if (!month) {
|
|
504
|
+
return false;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
// Convert month to number
|
|
508
|
+
const numMonth = Number.parseInt(month, 10);
|
|
509
|
+
|
|
510
|
+
// Guard clause: ensure month is a valid integer
|
|
511
|
+
if (Number.isNaN(numMonth)) {
|
|
512
|
+
throw new Error('AuroDatepickerUtilities | monthValueIsValid: Unable to parse month value integer');
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
// Guard clause: ensure month is within the valid range
|
|
516
|
+
if (numMonth < this.minMonth || numMonth > this.maxMonth) {
|
|
517
|
+
return false;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
// Default return
|
|
521
|
+
return true;
|
|
522
|
+
};
|
|
523
|
+
|
|
524
|
+
// Validator for year
|
|
525
|
+
const yearIsValid = (_year) => {
|
|
526
|
+
|
|
527
|
+
// Guard clause: ensure year exists.
|
|
528
|
+
if (!_year) {
|
|
529
|
+
return false;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
// Get the full year
|
|
533
|
+
const year = this.getFourDigitYear(_year);
|
|
534
|
+
|
|
535
|
+
// Convert year to number
|
|
536
|
+
const numYear = Number.parseInt(year, 10);
|
|
537
|
+
|
|
538
|
+
// Guard clause: ensure year is a valid integer
|
|
539
|
+
if (Number.isNaN(numYear)) {
|
|
540
|
+
throw new Error('AuroDatepickerUtilities | yearValueIsValid: Unable to parse year value integer');
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
// Guard clause: ensure year is within the valid range
|
|
544
|
+
if (numYear < this.minYear || numYear > this.maxYear) {
|
|
545
|
+
return false;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
// Default return
|
|
549
|
+
return true;
|
|
550
|
+
};
|
|
551
|
+
|
|
552
|
+
// Self-contained checks for month, day, and year
|
|
553
|
+
const checks = [
|
|
554
|
+
monthValueIsValid(dateParts.month),
|
|
555
|
+
dayValueIsValid(dateParts.day),
|
|
556
|
+
yearIsValid(dateParts.year)
|
|
557
|
+
];
|
|
558
|
+
|
|
559
|
+
// If any of the checks failed, the date format does not match and the result is invalid
|
|
560
|
+
const isValid = checks.every((check) => check === true);
|
|
561
|
+
|
|
562
|
+
// If the check is invalid, return false
|
|
563
|
+
if (!isValid) {
|
|
564
|
+
return false;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
// Default case
|
|
568
|
+
return true;
|
|
569
|
+
};
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
// Export a class instance
|
|
574
|
+
const dateUtilities = new AuroDateUtilities();
|
|
575
|
+
|
|
576
|
+
// Export the class instance methods individually
|
|
577
|
+
const {
|
|
578
|
+
datesMatch,
|
|
579
|
+
validDateStr,
|
|
580
|
+
dateAndFormatMatch,
|
|
581
|
+
minDay,
|
|
582
|
+
minMonth,
|
|
583
|
+
minYear,
|
|
584
|
+
maxDay,
|
|
585
|
+
maxMonth,
|
|
586
|
+
maxYear
|
|
587
|
+
} = dateUtilities;
|
|
588
|
+
|
|
589
|
+
const {
|
|
590
|
+
toNorthAmericanFormat,
|
|
591
|
+
parseDate,
|
|
592
|
+
getDateAsString
|
|
593
|
+
} = dateFormatter;
|
|
594
|
+
|
|
186
595
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
187
596
|
// See LICENSE in the project root for license information.
|
|
188
597
|
|
|
@@ -407,7 +816,7 @@ class AuroFormValidation {
|
|
|
407
816
|
validity: 'valueMissing',
|
|
408
817
|
message: e => e.getAttribute('setCustomValidityValueMissingFilter') || e.setCustomValidity || ''
|
|
409
818
|
}
|
|
410
|
-
]
|
|
819
|
+
]
|
|
411
820
|
}
|
|
412
821
|
};
|
|
413
822
|
|
|
@@ -472,12 +881,12 @@ class AuroFormValidation {
|
|
|
472
881
|
|
|
473
882
|
// Guard Clause: if the value is too short
|
|
474
883
|
if (elem.value?.length < elem.lengthForType) {
|
|
475
|
-
|
|
884
|
+
|
|
476
885
|
elem.validity = 'tooShort';
|
|
477
886
|
elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
|
|
478
887
|
return;
|
|
479
|
-
}
|
|
480
|
-
|
|
888
|
+
}
|
|
889
|
+
|
|
481
890
|
// Guard Clause: If the value is too long for the type
|
|
482
891
|
if (elem.value?.length > elem.lengthForType) {
|
|
483
892
|
|
|
@@ -485,20 +894,31 @@ class AuroFormValidation {
|
|
|
485
894
|
elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
|
|
486
895
|
return;
|
|
487
896
|
}
|
|
488
|
-
|
|
489
|
-
// Validate that the date passed was the correct format
|
|
490
|
-
if (elem.value
|
|
897
|
+
|
|
898
|
+
// Validate that the date passed was the correct format
|
|
899
|
+
if (!dateAndFormatMatch(elem.value, elem.format)) {
|
|
491
900
|
elem.validity = 'patternMismatch';
|
|
492
|
-
elem.errorMessage = elem.
|
|
901
|
+
elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || 'Invalid Date Format Entered';
|
|
902
|
+
return;
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
// Validate that the date passed was a valid date
|
|
906
|
+
if (!validDateStr(elem.value, elem.format)) {
|
|
907
|
+
elem.validity = 'invalidDate';
|
|
908
|
+
elem.errorMessage = elem.setCustomValidityInvalidDate || elem.setCustomValidity || 'Invalid Date Entered';
|
|
493
909
|
return;
|
|
494
910
|
}
|
|
495
911
|
|
|
496
912
|
// Perform the rest of the validation
|
|
913
|
+
const formattedValue = toNorthAmericanFormat(elem.value, elem.format);
|
|
914
|
+
const valueDate = new Date(formattedValue);
|
|
497
915
|
|
|
498
916
|
// // Validate max date
|
|
499
917
|
if (elem.max?.length === elem.lengthForType) {
|
|
500
918
|
|
|
501
|
-
|
|
919
|
+
const maxDate = new Date(toNorthAmericanFormat(elem.max, elem.format));
|
|
920
|
+
|
|
921
|
+
if (valueDate > maxDate) {
|
|
502
922
|
elem.validity = 'rangeOverflow';
|
|
503
923
|
elem.errorMessage = elem.setCustomValidityRangeOverflow || elem.setCustomValidity || '';
|
|
504
924
|
return;
|
|
@@ -507,7 +927,9 @@ class AuroFormValidation {
|
|
|
507
927
|
|
|
508
928
|
// Validate min date
|
|
509
929
|
if (elem.min?.length === elem.lengthForType) {
|
|
510
|
-
|
|
930
|
+
const minDate = new Date(toNorthAmericanFormat(elem.min, elem.format));
|
|
931
|
+
|
|
932
|
+
if (valueDate < minDate) {
|
|
511
933
|
elem.validity = 'rangeUnderflow';
|
|
512
934
|
elem.errorMessage = elem.setCustomValidityRangeUnderflow || elem.setCustomValidity || '';
|
|
513
935
|
return;
|
|
@@ -567,7 +989,7 @@ class AuroFormValidation {
|
|
|
567
989
|
if (typeof elem.value === "string") {
|
|
568
990
|
hasValue = elem.value && elem.value.length > 0;
|
|
569
991
|
}
|
|
570
|
-
|
|
992
|
+
|
|
571
993
|
if (typeof elem.value === "boolean") {
|
|
572
994
|
hasValue = elem.value || elem.value === false;
|
|
573
995
|
}
|
|
@@ -592,7 +1014,7 @@ class AuroFormValidation {
|
|
|
592
1014
|
}
|
|
593
1015
|
|
|
594
1016
|
const isCombobox = this.runtimeUtils.elementMatch(elem, 'auro-combobox');
|
|
595
|
-
|
|
1017
|
+
|
|
596
1018
|
if (isCombobox) {
|
|
597
1019
|
|
|
598
1020
|
if (!elem.persistInput || elem.behavior === "filter") {
|
|
@@ -632,7 +1054,7 @@ class AuroFormValidation {
|
|
|
632
1054
|
}
|
|
633
1055
|
|
|
634
1056
|
// multiple input in one components (datepicker)
|
|
635
|
-
// combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
|
|
1057
|
+
// combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
|
|
636
1058
|
if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !isCombobox) {
|
|
637
1059
|
elem.validity = this.auroInputElements[1].validity;
|
|
638
1060
|
elem.errorMessage = this.auroInputElements[1].errorMessage;
|
|
@@ -914,28 +1336,30 @@ function navigateArrow(component, direction, options = {}) {
|
|
|
914
1336
|
const selectKeyboardStrategy = {
|
|
915
1337
|
ArrowDown(component, evt, ctx) {
|
|
916
1338
|
evt.preventDefault();
|
|
917
|
-
if (
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
1339
|
+
if (ctx.isExpanded) {
|
|
1340
|
+
if (evt.altKey || evt.ctrlKey || evt.metaKey) {
|
|
1341
|
+
// navigate to last enabled option
|
|
1342
|
+
selectKeyboardStrategy.End(component, evt, ctx);
|
|
1343
|
+
} else {
|
|
1344
|
+
navigateArrow(component, 'down', { ctx });
|
|
1345
|
+
}
|
|
1346
|
+
} else {
|
|
1347
|
+
component.dropdown.show();
|
|
921
1348
|
}
|
|
922
|
-
navigateArrow(component, 'down', {
|
|
923
|
-
ctx,
|
|
924
|
-
showFn: () => component.dropdown.show(),
|
|
925
|
-
});
|
|
926
1349
|
},
|
|
927
1350
|
|
|
928
1351
|
ArrowUp(component, evt, ctx) {
|
|
929
1352
|
evt.preventDefault();
|
|
930
|
-
if (
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
1353
|
+
if (ctx.isExpanded) {
|
|
1354
|
+
if (evt.altKey || evt.ctrlKey || evt.metaKey) {
|
|
1355
|
+
// navigate to first enabled option
|
|
1356
|
+
selectKeyboardStrategy.Home(component, evt, ctx);
|
|
1357
|
+
} else {
|
|
1358
|
+
navigateArrow(component, 'up', { ctx });
|
|
1359
|
+
}
|
|
1360
|
+
} else {
|
|
1361
|
+
component.dropdown.show();
|
|
934
1362
|
}
|
|
935
|
-
navigateArrow(component, 'up', {
|
|
936
|
-
ctx,
|
|
937
|
-
showFn: () => component.dropdown.show(),
|
|
938
|
-
});
|
|
939
1363
|
},
|
|
940
1364
|
|
|
941
1365
|
Escape(component, evt, ctx) {
|
|
@@ -4942,7 +5366,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$3 {
|
|
|
4942
5366
|
}
|
|
4943
5367
|
};
|
|
4944
5368
|
|
|
4945
|
-
var formkitVersion$1 = '
|
|
5369
|
+
var formkitVersion$1 = '202605292326';
|
|
4946
5370
|
|
|
4947
5371
|
class AuroElement extends i$3 {
|
|
4948
5372
|
static get properties() {
|
|
@@ -6695,7 +7119,7 @@ class AuroHelpText extends i$3 {
|
|
|
6695
7119
|
}
|
|
6696
7120
|
}
|
|
6697
7121
|
|
|
6698
|
-
var formkitVersion = '
|
|
7122
|
+
var formkitVersion = '202605292326';
|
|
6699
7123
|
|
|
6700
7124
|
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}`;
|
|
6701
7125
|
|