@aurodesignsystem-dev/auro-formkit 0.0.0-pr754.2 → 0.0.0-pr755.0
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/bibtemplate/dist/index.js +1 -1
- package/components/bibtemplate/dist/registered.js +1 -1
- package/components/checkbox/demo/api.html +16 -10
- package/components/checkbox/demo/api.min.js +11 -11
- package/components/checkbox/demo/index.html +16 -10
- package/components/checkbox/demo/index.min.js +11 -11
- package/components/checkbox/demo/readme.html +16 -9
- package/components/checkbox/dist/index.js +11 -11
- package/components/checkbox/dist/registered.js +11 -11
- package/components/combobox/demo/api.html +16 -10
- package/components/combobox/demo/api.md +6 -12
- package/components/combobox/demo/api.min.js +95 -78
- package/components/combobox/demo/index.html +16 -10
- package/components/combobox/demo/index.min.js +95 -78
- package/components/combobox/demo/readme.html +16 -9
- package/components/combobox/dist/index.js +84 -42
- package/components/combobox/dist/registered.js +84 -42
- package/components/counter/demo/api.html +16 -10
- package/components/counter/demo/api.md +7 -140
- package/components/counter/demo/api.min.js +386 -556
- package/components/counter/demo/index.html +16 -10
- package/components/counter/demo/index.md +0 -82
- package/components/counter/demo/index.min.js +386 -556
- package/components/counter/demo/readme.html +16 -9
- package/components/counter/dist/auro-counter-group.d.ts +14 -71
- package/components/counter/dist/auro-counter.d.ts +0 -10
- package/components/counter/dist/index.js +386 -556
- package/components/counter/dist/registered.js +386 -556
- package/components/datepicker/demo/api.html +16 -10
- package/components/datepicker/demo/api.min.js +84 -42
- package/components/datepicker/demo/index.html +16 -10
- package/components/datepicker/demo/index.min.js +84 -42
- package/components/datepicker/demo/readme.html +16 -9
- package/components/datepicker/dist/index.js +84 -42
- package/components/datepicker/dist/registered.js +84 -42
- package/components/dropdown/demo/api.html +16 -10
- package/components/dropdown/demo/api.md +268 -76
- package/components/dropdown/demo/api.min.js +67 -25
- package/components/dropdown/demo/index.html +16 -10
- package/components/dropdown/demo/index.md +363 -45
- package/components/dropdown/demo/index.min.js +67 -25
- package/components/dropdown/demo/readme.html +16 -9
- package/components/dropdown/dist/auro-dropdown.d.ts +71 -21
- package/components/dropdown/dist/index.js +67 -25
- package/components/dropdown/dist/registered.js +67 -25
- package/components/form/demo/api.html +16 -9
- package/components/form/demo/autocomplete.html +19 -3
- package/components/form/demo/index.html +16 -9
- package/components/form/demo/readme.html +16 -9
- package/components/form/demo/working.html +19 -13
- package/components/helptext/dist/index.js +1 -1
- package/components/helptext/dist/registered.js +1 -1
- package/components/input/demo/api.html +16 -10
- package/components/input/demo/api.md +1 -1
- package/components/input/demo/api.min.js +10 -10
- package/components/input/demo/index.html +16 -10
- package/components/input/demo/index.min.js +10 -10
- package/components/input/demo/readme.html +16 -9
- package/components/input/dist/base-input.d.ts +1 -1
- package/components/input/dist/index.js +10 -10
- package/components/input/dist/registered.js +10 -10
- package/components/menu/demo/api.html +16 -32
- package/components/menu/demo/api.md +1 -1
- package/components/menu/demo/api.min.js +11 -36
- package/components/menu/demo/index.html +16 -10
- package/components/menu/demo/index.min.js +11 -36
- package/components/menu/demo/readme.html +16 -9
- package/components/menu/dist/auro-menu.d.ts +2 -13
- package/components/menu/dist/index.js +11 -36
- package/components/menu/dist/registered.js +11 -36
- package/components/radio/demo/api.html +16 -10
- package/components/radio/demo/api.min.js +9 -9
- package/components/radio/demo/index.html +16 -10
- package/components/radio/demo/index.min.js +9 -9
- package/components/radio/demo/readme.html +16 -9
- package/components/radio/dist/index.js +9 -9
- package/components/radio/dist/registered.js +9 -9
- package/components/select/demo/api.html +16 -10
- package/components/select/demo/api.md +9 -15
- package/components/select/demo/api.min.js +193 -124
- package/components/select/demo/index.html +16 -11
- package/components/select/demo/index.md +1 -1
- package/components/select/demo/index.min.js +193 -124
- package/components/select/demo/readme.html +16 -9
- package/components/select/dist/auro-select.d.ts +4 -20
- package/components/select/dist/index.js +182 -88
- package/components/select/dist/registered.js +182 -88
- package/package.json +3 -3
|
@@ -590,19 +590,19 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
590
590
|
{
|
|
591
591
|
check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
|
|
592
592
|
validity: 'tooShort',
|
|
593
|
-
message: e => e.
|
|
593
|
+
message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
|
|
594
594
|
},
|
|
595
595
|
{
|
|
596
596
|
check: (e) => e.value?.length > e.maxLength,
|
|
597
597
|
validity: 'tooLong',
|
|
598
|
-
message: e => e.
|
|
598
|
+
message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
|
|
599
599
|
}
|
|
600
600
|
],
|
|
601
601
|
pattern: [
|
|
602
602
|
{
|
|
603
603
|
check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
|
|
604
604
|
validity: 'patternMismatch',
|
|
605
|
-
message: e => e.
|
|
605
|
+
message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
|
|
606
606
|
}
|
|
607
607
|
]
|
|
608
608
|
},
|
|
@@ -797,10 +797,10 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
797
797
|
if (!hasValue && elem.required && elem.touched) {
|
|
798
798
|
elem.validity = 'valueMissing';
|
|
799
799
|
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
800
|
-
} else if (
|
|
800
|
+
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
801
801
|
this.validateType(elem);
|
|
802
802
|
this.validateElementAttributes(elem);
|
|
803
|
-
} else if (
|
|
803
|
+
} else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
|
|
804
804
|
this.validateElementAttributes(elem);
|
|
805
805
|
}
|
|
806
806
|
}
|
|
@@ -4028,7 +4028,7 @@ var dropdownVersion$1 = '3.0.0';
|
|
|
4028
4028
|
|
|
4029
4029
|
var shapeSizeCss$1 = css`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset;box-shadow:none}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-classic-xl.parentBorder,.shape-classic-lg.parentBorder,.shape-classic-md.parentBorder,.shape-classic-sm.parentBorder,.shape-classic-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset;box-shadow:none}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-snowflake-xl.parentBorder,.shape-snowflake-lg.parentBorder,.shape-snowflake-md.parentBorder,.shape-snowflake-sm.parentBorder,.shape-snowflake-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-rounded-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-left-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-right-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-left-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-right-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}`;
|
|
4030
4030
|
|
|
4031
|
-
var colorCss$1$2 = css`:host(:not([
|
|
4031
|
+
var colorCss$1$2 = css`:host(:not([ondark])) .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host(:not([ondark])) .wrapper:focus-within,:host(:not([ondark])) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host(:not([onDark])[disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([ondark])[error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([onDark]) .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host([onDark]) .wrapper:focus-within,:host([onDark]) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([onDark][disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}:host([ondark][error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}`;
|
|
4032
4032
|
|
|
4033
4033
|
var classicColorCss$1 = css``;
|
|
4034
4034
|
|
|
@@ -4040,7 +4040,7 @@ var styleSnowflakeCss$1 = css`:host{display:block}.wrapper{display:flex;flex:1;f
|
|
|
4040
4040
|
|
|
4041
4041
|
var colorCss$6 = css`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
4042
4042
|
|
|
4043
|
-
var styleCss$7 = css
|
|
4043
|
+
var styleCss$7 = css`.helptext-wrapper{display:none;font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([large]) .helptext-wrapper{font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
|
|
4044
4044
|
|
|
4045
4045
|
var tokensCss$6 = css`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
4046
4046
|
|
|
@@ -4345,8 +4345,10 @@ let AuroElement$4 = class AuroElement extends LitElement {
|
|
|
4345
4345
|
// See LICENSE in the project root for license information.
|
|
4346
4346
|
|
|
4347
4347
|
|
|
4348
|
-
|
|
4348
|
+
/**
|
|
4349
|
+
* @attr { Boolean } disableEventShow - If declared, the dropdown will only show by calling the API .show() public method.
|
|
4349
4350
|
* @slot - Default slot for the popover content.
|
|
4351
|
+
* @slot label - Defines the content of the label.
|
|
4350
4352
|
* @slot helpText - Defines the content of the helpText.
|
|
4351
4353
|
* @slot trigger - Defines the content of the trigger.
|
|
4352
4354
|
* @csspart trigger - The trigger content container.
|
|
@@ -4365,22 +4367,18 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
4365
4367
|
this.matchWidth = false;
|
|
4366
4368
|
this.noHideOnThisFocusLoss = false;
|
|
4367
4369
|
|
|
4368
|
-
this.errorMessage =
|
|
4370
|
+
this.errorMessage = ''; // TODO - check with Doug if there is still more to do here
|
|
4369
4371
|
|
|
4370
4372
|
// Layout Config
|
|
4371
|
-
this.layout =
|
|
4372
|
-
this.shape =
|
|
4373
|
-
this.size =
|
|
4373
|
+
this.layout = 'classic';
|
|
4374
|
+
this.shape = 'classic';
|
|
4375
|
+
this.size = 'xl';
|
|
4374
4376
|
|
|
4375
4377
|
this.parentBorder = false;
|
|
4376
4378
|
|
|
4377
4379
|
this.privateDefaults();
|
|
4378
4380
|
}
|
|
4379
4381
|
|
|
4380
|
-
/**
|
|
4381
|
-
* @private
|
|
4382
|
-
* @returns {object} Class definition for the wrapper element.
|
|
4383
|
-
*/
|
|
4384
4382
|
get commonWrapperClasses() {
|
|
4385
4383
|
return {
|
|
4386
4384
|
'trigger': true,
|
|
@@ -4400,8 +4398,12 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
4400
4398
|
this.disabled = false;
|
|
4401
4399
|
this.disableFocusTrap = false;
|
|
4402
4400
|
this.error = false;
|
|
4401
|
+
this.inset = false;
|
|
4402
|
+
this.rounded = false;
|
|
4403
4403
|
this.tabIndex = 0;
|
|
4404
4404
|
this.noToggle = false;
|
|
4405
|
+
this.a11yAutocomplete = 'none';
|
|
4406
|
+
this.labeled = true;
|
|
4405
4407
|
this.a11yRole = 'button';
|
|
4406
4408
|
this.onDark = false;
|
|
4407
4409
|
this.showTriggerBorders = true;
|
|
@@ -4523,27 +4525,26 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
4523
4525
|
},
|
|
4524
4526
|
|
|
4525
4527
|
/**
|
|
4526
|
-
* If declared,
|
|
4527
|
-
* @default false
|
|
4528
|
+
* If declared, applies a border around the trigger slot.
|
|
4528
4529
|
*/
|
|
4529
|
-
|
|
4530
|
+
simple: {
|
|
4530
4531
|
type: Boolean,
|
|
4531
4532
|
reflect: true
|
|
4532
4533
|
},
|
|
4533
4534
|
|
|
4534
4535
|
/**
|
|
4535
|
-
* If declared,
|
|
4536
|
+
* If declared, the dropdown displays a chevron on the right.
|
|
4537
|
+
* @attr {Boolean} chevron
|
|
4536
4538
|
*/
|
|
4537
|
-
|
|
4539
|
+
chevron: {
|
|
4538
4540
|
type: Boolean,
|
|
4539
4541
|
reflect: true
|
|
4540
4542
|
},
|
|
4541
4543
|
|
|
4542
4544
|
/**
|
|
4543
|
-
* If declared, the dropdown
|
|
4544
|
-
* @attr {Boolean} chevron
|
|
4545
|
+
* If declared, the dropdown will be styled with the common theme.
|
|
4545
4546
|
*/
|
|
4546
|
-
|
|
4547
|
+
common: {
|
|
4547
4548
|
type: Boolean,
|
|
4548
4549
|
reflect: true
|
|
4549
4550
|
},
|
|
@@ -4557,7 +4558,7 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
4557
4558
|
},
|
|
4558
4559
|
|
|
4559
4560
|
/**
|
|
4560
|
-
* If
|
|
4561
|
+
* If declare, the focus trap inside of bib will be turned off.
|
|
4561
4562
|
*/
|
|
4562
4563
|
disableFocusTrap: {
|
|
4563
4564
|
type: Boolean,
|
|
@@ -4604,6 +4605,22 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
4604
4605
|
reflect: true
|
|
4605
4606
|
},
|
|
4606
4607
|
|
|
4608
|
+
/**
|
|
4609
|
+
* Makes the trigger to be full width of its parent container.
|
|
4610
|
+
*/
|
|
4611
|
+
fluid: {
|
|
4612
|
+
type: Boolean,
|
|
4613
|
+
reflect: true
|
|
4614
|
+
},
|
|
4615
|
+
|
|
4616
|
+
/**
|
|
4617
|
+
* If declared, will apply padding around trigger slot content.
|
|
4618
|
+
*/
|
|
4619
|
+
inset: {
|
|
4620
|
+
type: Boolean,
|
|
4621
|
+
reflect: true
|
|
4622
|
+
},
|
|
4623
|
+
|
|
4607
4624
|
/**
|
|
4608
4625
|
* If true, the dropdown bib is displayed.
|
|
4609
4626
|
*/
|
|
@@ -4647,6 +4664,15 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
4647
4664
|
reflect: true
|
|
4648
4665
|
},
|
|
4649
4666
|
|
|
4667
|
+
/**
|
|
4668
|
+
* Defines if there is a label preset.
|
|
4669
|
+
* @private
|
|
4670
|
+
*/
|
|
4671
|
+
labeled: {
|
|
4672
|
+
type: Boolean,
|
|
4673
|
+
reflect: true
|
|
4674
|
+
},
|
|
4675
|
+
|
|
4650
4676
|
/**
|
|
4651
4677
|
* Defines if the trigger should size based on the parent element providing the border UI.
|
|
4652
4678
|
* @private
|
|
@@ -4707,9 +4733,6 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
4707
4733
|
reflect: true
|
|
4708
4734
|
},
|
|
4709
4735
|
|
|
4710
|
-
/**
|
|
4711
|
-
* If declared, and a function is set, that function will execute when the slot content is updated.
|
|
4712
|
-
*/
|
|
4713
4736
|
onSlotChange: {
|
|
4714
4737
|
type: Function,
|
|
4715
4738
|
reflect: false
|
|
@@ -4724,6 +4747,14 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
4724
4747
|
reflect: true
|
|
4725
4748
|
},
|
|
4726
4749
|
|
|
4750
|
+
/**
|
|
4751
|
+
* If declared, will apply border-radius to trigger and default slots.
|
|
4752
|
+
*/
|
|
4753
|
+
rounded: {
|
|
4754
|
+
type: Boolean,
|
|
4755
|
+
reflect: true
|
|
4756
|
+
},
|
|
4757
|
+
|
|
4727
4758
|
/**
|
|
4728
4759
|
* @private
|
|
4729
4760
|
*/
|
|
@@ -4738,14 +4769,22 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
4738
4769
|
type: String || undefined,
|
|
4739
4770
|
attribute: false,
|
|
4740
4771
|
reflect: false
|
|
4772
|
+
},
|
|
4773
|
+
|
|
4774
|
+
/**
|
|
4775
|
+
* The value for the aria-autocomplete attribute of the trigger element.
|
|
4776
|
+
*/
|
|
4777
|
+
a11yAutocomplete: {
|
|
4778
|
+
type: String,
|
|
4779
|
+
attribute: false,
|
|
4741
4780
|
}
|
|
4742
4781
|
};
|
|
4743
4782
|
}
|
|
4744
4783
|
|
|
4745
4784
|
static get styles() {
|
|
4746
4785
|
return [
|
|
4747
|
-
tokensCss$1$2,
|
|
4748
4786
|
colorCss$1$2,
|
|
4787
|
+
tokensCss$1$2,
|
|
4749
4788
|
|
|
4750
4789
|
// default layout
|
|
4751
4790
|
classicColorCss$1,
|
|
@@ -5185,7 +5224,10 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
5185
5224
|
id="bib"
|
|
5186
5225
|
shape="${this.shape}"
|
|
5187
5226
|
?data-show="${this.isPopoverVisible}"
|
|
5188
|
-
?isfullscreen="${this.isBibFullscreen}"
|
|
5227
|
+
?isfullscreen="${this.isBibFullscreen}"
|
|
5228
|
+
?common="${this.common}"
|
|
5229
|
+
?rounded="${this.common || this.rounded}"
|
|
5230
|
+
?inset="${this.common || this.inset}">
|
|
5189
5231
|
<div class="slotContent">
|
|
5190
5232
|
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
5191
5233
|
</div>
|
|
@@ -5280,11 +5322,11 @@ var styleCss$4$1 = css`.util_displayInline{display:inline}.util_displayInlineBlo
|
|
|
5280
5322
|
|
|
5281
5323
|
var styleDefaultCss = css`.layoutDefault .typeIcon,:host(:not([layout])) .typeIcon{display:flex;flex-direction:row;align-items:center}.layoutDefault .typeIcon [auro-icon],:host(:not([layout])) .typeIcon [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-100, 0.5rem)}.layoutDefault .notificationIcons,:host(:not([layout])) .notificationIcons{display:flex;flex-direction:row;padding-right:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .typeIcon,:host(:not([layout])[bordered]) .typeIcon{padding-left:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .notificationIcons,:host(:not([layout])[bordered]) .notificationIcons{align-items:center}:host([class=layoutDefault][bordered]) .notification:not(:first-of-type),:host(:not([layout])[bordered]) .notification:not(:first-of-type){margin-left:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .alertNotification,:host(:not([layout])[bordered]) .alertNotification{width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem))}:host([class=layoutDefault][bordered]) .passwordBtn,:host(:not([layout])[bordered]) .passwordBtn{width:calc(var(--ds-size-300, 1.5rem));height:calc(var(--ds-size-300, 1.5rem))}:host([class=layoutDefault][bordered]) .notificationBtn,:host(:not([layout])[bordered]) .notificationBtn{display:block;width:var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);padding:0;border:0;background:unset;cursor:pointer}:host([class=layoutDefault][bordered]) .notificationBtn [auro-icon],:host(:not([layout])[bordered]) .notificationBtn [auro-icon]{display:block;height:var(--ds-size-300, 1.5rem);--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([class=layoutDefault][bordered]) .notificationBtn [auro-icon][hidden],:host(:not([layout])[bordered]) .notificationBtn [auro-icon][hidden]{display:none}:host([class=layoutDefault]:not([bordered])) .typeIcon,:host([class=layoutDefault]:not([bordered])) .notificationIcons,:host(:not([layout]):not([bordered])) .typeIcon,:host(:not([layout]):not([bordered])) .notificationIcons{align-items:flex-end;padding-bottom:var(--ds-size-50, 0.25rem)}:host([class=layoutDefault]:not([bordered])) .clearBtn,:host(:not([layout]):not([bordered])) .clearBtn{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);overflow:hidden;width:0;opacity:0}.layoutDefault .wrapper:hover .clearBtn,.layoutDefault .wrapper:focus-within .clearBtn,:host(:not([layout])) .wrapper:hover .clearBtn,:host(:not([layout])) .wrapper:focus-within .clearBtn{width:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));opacity:1}:host([class=layoutDefault]:focus-within[type=password]) .notificationIcons[hasValue] .alertNotification,:host(:not([layout]):focus-within[type=password]) .notificationIcons[hasValue] .alertNotification{overflow:hidden;width:0;height:0;padding:0;margin:0;visibility:hidden}.layoutDefault input,:host(:not([layout])) input{border:unset}.layoutDefault .wrapper,:host(:not([layout])) .wrapper{position:relative;overflow:hidden;border-style:solid}:host([class=layoutDefault]:not([bordered],[borderless])) .wrapper,:host(:not([layout]):not([bordered],[borderless])) .wrapper{border-width:1px 0}:host([class=layoutDefault][bordered]) .wrapper,:host(:not([layout])[bordered]) .wrapper{border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}:host([class=layoutDefault]:not([borderless])) .wrapper:focus-within:before,:host(:not([layout]):not([borderless])) .wrapper:focus-within:before{position:absolute;display:block;border-bottom-width:1px;border-bottom-style:solid;content:"";inset:0;pointer-events:none}:host([class=layoutDefault][validity]:not([validity=valid])) .wrapper:before,:host(:not([layout])[validity]:not([validity=valid])) .wrapper:before{border-bottom:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.layoutDefault :host,:host(:not([layout])) :host{position:relative;display:block}.layoutDefault .wrapper,:host(:not([layout])) .wrapper{display:flex;flex-direction:row}.layoutDefault .main,:host(:not([layout])) .main{display:flex;flex-direction:row;position:relative;flex:1}`;
|
|
5282
5324
|
|
|
5283
|
-
var colorBaseCss = css`.wrapper{border-color:var(--ds-auro-input-border-color);background-color:var(--ds-auro-input-background-color);color:var(--ds-auro-input-text-color)}.wrapper label{color:var(--ds-auro-input-label-text-color)}.wrapper input{caret-color:var(--ds-auro-input-caret-color);color:var(--ds-auro-input-text-color)}.wrapper input::placeholder{color:var(--ds-auro-input-placeholder-text-color)}.wrapper input:focus::placeholder{color:var(--ds-auro-input-placeholder-text-color)}.wrapper .displayValue{background-color:var(--ds-auro-input-background-color)}:host(:not([ondark])) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host(:is([validity]:not([validity=valid]))) .wrapper{--ds-auro-input-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([ondark]:is([validity]:not([validity=valid]))) .wrapper{--ds-auro-input-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([ondark])[disabled]){--ds-auro-input-border-color: var(--ds-
|
|
5325
|
+
var colorBaseCss = css`.wrapper{border-color:var(--ds-auro-input-border-color);background-color:var(--ds-auro-input-background-color);color:var(--ds-auro-input-text-color)}.wrapper label{color:var(--ds-auro-input-label-text-color)}.wrapper input{caret-color:var(--ds-auro-input-caret-color);color:var(--ds-auro-input-text-color)}.wrapper input::placeholder{color:var(--ds-auro-input-placeholder-text-color)}.wrapper input:focus::placeholder{color:var(--ds-auro-input-placeholder-text-color)}.wrapper .displayValue{background-color:var(--ds-auro-input-background-color)}:host(:not([ondark])) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host(:is([validity]:not([validity=valid]))) .wrapper{--ds-auro-input-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([ondark]:is([validity]:not([validity=valid]))) .wrapper{--ds-auro-input-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([ondark])[disabled]){--ds-auro-input-border-color: var(--ds-advanced-color-button-primary-border-disabled, #acc9e2);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([ondark][disabled]){--ds-auro-input-border-color: var(--ds-advanced-color-button-primary-border-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}`;
|
|
5284
5326
|
|
|
5285
5327
|
var tokensCss$4 = css`:host(:not([ondark])){--ds-auro-input-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-input-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-input-outline-color: transparent}:host([ondark]){--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-input-outline-color: transparent}`;
|
|
5286
5328
|
|
|
5287
|
-
var classicStyleCss = css`.layout-classic{display:flex;flex-direction:row;box-shadow:inset 0 0 0 1px var(--ds-auro-input-outline-color)}.layout-classic .mainContent{position:relative;display:flex;flex:1;flex-direction:column;justify-content:center;cursor:text}.layout-classic .mainContent label{cursor:text;font-size:var(--ds-text-body-size-xs);line-height:20px;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}.layout-classic .mainContent input{height:auto;font-size:var(--ds-basic-text-body-default-font-size, 16px);line-height:var(--ds-basic-text-body-default-line-height, 24px);transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}.layout-classic .mainContent:has(input.util_displayHiddenVisually) label{padding-top:0;font-size:var(--ds-text-body-size-default, 1rem);justify-self:flex-start;line-height:var(--ds-text-body-size-default)}.layout-classic .mainContent:has(input.util_displayHiddenVisually) input{height:0;padding-bottom:0;line-height:0}.layout-classic .accents
|
|
5329
|
+
var classicStyleCss = css`.layout-classic{display:flex;flex-direction:row;box-shadow:inset 0 0 0 1px var(--ds-auro-input-outline-color)}.layout-classic .mainContent{position:relative;display:flex;flex:1;flex-direction:column;justify-content:center;cursor:text}.layout-classic .mainContent label{cursor:text;font-size:var(--ds-text-body-size-xs);line-height:20px;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}.layout-classic .mainContent input{height:auto;font-size:var(--ds-basic-text-body-default-font-size, 16px);line-height:var(--ds-basic-text-body-default-line-height, 24px);transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}.layout-classic .mainContent:has(input.util_displayHiddenVisually) label{padding-top:0;font-size:var(--ds-text-body-size-default, 1rem);justify-self:flex-start;line-height:var(--ds-text-body-size-default)}.layout-classic .mainContent:has(input.util_displayHiddenVisually) input{height:0;padding-bottom:0;line-height:0}.layout-classic .accents{padding:0 8px}.layout-classic.withValue{justify-content:flex-start}.layout-classic:focus-within{justify-content:flex-start}.layout-classic:focus-within .alertNotification{display:none}`;
|
|
5288
5330
|
|
|
5289
5331
|
var classicColorCss = css`.layout-classic label{color:var(--ds-auro-input-label-text-color)}.layout-classic:focus-within{--ds-auro-input-outline-color: var(--ds-auro-input-border-color)}:host(:not([ondark])) .layout-classic:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-brand, #00274a);--ds-auro-input-outline-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .layout-classic:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-outline-color: var(--ds-basic-color-border-inverse, #ffffff)}:host([layout*=classic]:not([ondark]):is([validity]:not([validity=valid]))){--ds-auro-input-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-input-outline-color: var(--ds-basic-color-status-error, #e31f26)}:host([layout*=classic]:not([ondark]):is([validity]:not([validity=valid]))) .layout-classic:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-input-outline-color: var(--ds-basic-color-status-error, #e31f26)}:host([layout*=classic][ondark]:is([validity]:not([validity=valid]))){--ds-auro-input-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-input-outline-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host([layout*=classic][ondark]:is([validity]:not([validity=valid]))) .layout-classic:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-input-outline-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}`;
|
|
5290
5332
|
|
|
@@ -9807,19 +9849,19 @@ class AuroFormValidation {
|
|
|
9807
9849
|
{
|
|
9808
9850
|
check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
|
|
9809
9851
|
validity: 'tooShort',
|
|
9810
|
-
message: e => e.
|
|
9852
|
+
message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
|
|
9811
9853
|
},
|
|
9812
9854
|
{
|
|
9813
9855
|
check: (e) => e.value?.length > e.maxLength,
|
|
9814
9856
|
validity: 'tooLong',
|
|
9815
|
-
message: e => e.
|
|
9857
|
+
message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
|
|
9816
9858
|
}
|
|
9817
9859
|
],
|
|
9818
9860
|
pattern: [
|
|
9819
9861
|
{
|
|
9820
9862
|
check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
|
|
9821
9863
|
validity: 'patternMismatch',
|
|
9822
|
-
message: e => e.
|
|
9864
|
+
message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
|
|
9823
9865
|
}
|
|
9824
9866
|
]
|
|
9825
9867
|
},
|
|
@@ -10014,10 +10056,10 @@ class AuroFormValidation {
|
|
|
10014
10056
|
if (!hasValue && elem.required && elem.touched) {
|
|
10015
10057
|
elem.validity = 'valueMissing';
|
|
10016
10058
|
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
10017
|
-
} else if (
|
|
10059
|
+
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
10018
10060
|
this.validateType(elem);
|
|
10019
10061
|
this.validateElementAttributes(elem);
|
|
10020
|
-
} else if (
|
|
10062
|
+
} else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
|
|
10021
10063
|
this.validateElementAttributes(elem);
|
|
10022
10064
|
}
|
|
10023
10065
|
}
|
|
@@ -10499,7 +10541,7 @@ class BaseInput extends AuroElement$2$1 {
|
|
|
10499
10541
|
},
|
|
10500
10542
|
|
|
10501
10543
|
/**
|
|
10502
|
-
* Define custom placeholder text.
|
|
10544
|
+
* Define custom placeholder text, only supported by date input formats.
|
|
10503
10545
|
*/
|
|
10504
10546
|
placeholder: {
|
|
10505
10547
|
type: String,
|
|
@@ -12759,7 +12801,7 @@ var buttonVersion$1 = '11.0.0';
|
|
|
12759
12801
|
|
|
12760
12802
|
var colorCss$5 = css`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
12761
12803
|
|
|
12762
|
-
var styleCss$6 = css
|
|
12804
|
+
var styleCss$6 = css`.helptext-wrapper{display:none;font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([large]) .helptext-wrapper{font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
|
|
12763
12805
|
|
|
12764
12806
|
var tokensCss$5 = css`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
12765
12807
|
|
|
@@ -13036,7 +13078,7 @@ class AuroInput extends BaseInput {
|
|
|
13036
13078
|
*/
|
|
13037
13079
|
get commonInputClasses() {
|
|
13038
13080
|
return {
|
|
13039
|
-
'util_displayHiddenVisually':
|
|
13081
|
+
'util_displayHiddenVisually': this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
|
|
13040
13082
|
};
|
|
13041
13083
|
}
|
|
13042
13084
|
|
|
@@ -15375,7 +15417,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
15375
15417
|
<div id="bibTemplate" part="bibtemplate">
|
|
15376
15418
|
${this.isFullscreen ? html`
|
|
15377
15419
|
<div id="headerContainer">
|
|
15378
|
-
<${this.buttonTag} id="closeButton"
|
|
15420
|
+
<${this.buttonTag} id="closeButton" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
15379
15421
|
<${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
|
|
15380
15422
|
</${this.buttonTag}>
|
|
15381
15423
|
<${this.headerTag} display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
@@ -15504,7 +15546,7 @@ class AuroElement extends LitElement {
|
|
|
15504
15546
|
|
|
15505
15547
|
var colorCss = css`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
15506
15548
|
|
|
15507
|
-
var styleCss = css
|
|
15549
|
+
var styleCss = css`.helptext-wrapper{display:none;font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([large]) .helptext-wrapper{font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
|
|
15508
15550
|
|
|
15509
15551
|
var tokensCss = css`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
15510
15552
|
|
|
@@ -16,18 +16,24 @@
|
|
|
16
16
|
<head>
|
|
17
17
|
<meta charset="UTF-8" />
|
|
18
18
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
19
|
-
<title>Auro Web Component
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/auro-classic/CSSCustomProperties.css"
|
|
26
|
-
|
|
19
|
+
<title>Auro Web Component Demo | auro-counter</title>
|
|
20
|
+
|
|
21
|
+
<!-- Prism.js Stylesheet -->
|
|
22
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"/>
|
|
23
|
+
|
|
24
|
+
<!-- Legacy reference is still needed to support auro-counter's use of legacy token values at this time -->
|
|
25
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/legacy/auro-classic/CSSCustomProperties.css"/>
|
|
26
|
+
|
|
27
|
+
<!-- Design Token Alaska Theme -->
|
|
28
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/themes/alaska/CSSCustomProperties--alaska.min.css"/>
|
|
29
|
+
|
|
30
|
+
<!-- Webcore Stylesheet Alaska Theme -->
|
|
31
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/themes/alaska.global.min.css" />
|
|
32
|
+
|
|
33
|
+
<!-- Demo Specific Styles -->
|
|
27
34
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/demoWrapper.css" />
|
|
28
35
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/elementDemoStyles.css" />
|
|
29
|
-
|
|
30
|
-
</head>
|
|
36
|
+
</head>
|
|
31
37
|
<body class="auro-markdown">
|
|
32
38
|
<main></main>
|
|
33
39
|
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
| Property | Attribute | Type | Default | Description |
|
|
9
9
|
|------------|------------|-----------|-------------|--------------------------------------------------|
|
|
10
10
|
| [disabled](#disabled) | `disabled` | `boolean` | false | Indicates if the counter is disabled. |
|
|
11
|
-
| [error](#error) | `error` | `string` | | Error state and message.<br />True if set, value is the error message. |
|
|
12
11
|
| [max](#max) | `max` | `number` | 9 | The maximum value for the counter. |
|
|
13
12
|
| [min](#min) | `min` | `number` | 0 | The minimum value for the counter. |
|
|
14
13
|
| [onDark](#onDark) | `onDark` | `boolean` | false | If declared, the counter will be rendered with onDark styles. |
|
|
@@ -43,7 +42,6 @@
|
|
|
43
42
|
| Property | Attribute | Type | Default | Description |
|
|
44
43
|
|---------------------------|---------------------------|--------------------------|----------------|--------------------------------------------------|
|
|
45
44
|
| [autoPlacement](#autoPlacement) | `autoPlacement` | `boolean` | "false" | If declared, bib's position will be automatically calculated where to appear. |
|
|
46
|
-
| [error](#error) | `error` | `string` | | The current error message to display when the component is invalid. |
|
|
47
45
|
| [fullscreenBreakpoint](#fullscreenBreakpoint) | `fullscreenBreakpoint` | `string` | "sm" | Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)<br />at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.<br /><br />When expanded, the dropdown will automatically display in fullscreen mode<br />if the screen size is equal to or smaller than the selected breakpoint. |
|
|
48
46
|
| [isDropdown](#isDropdown) | `isDropdown` | `boolean` | false | Indicates if the counter group is displayed as a dropdown. |
|
|
49
47
|
| [largeFullscreenHeadline](#largeFullscreenHeadline) | `largeFullscreenHeadline` | `boolean` | false | If declared, make bib.fullscreen.headline in HeadingDisplay.<br />Otherwise, Heading 600. |
|
|
@@ -54,7 +52,7 @@
|
|
|
54
52
|
| [noFlip](#noFlip) | `noFlip` | `boolean` | "false" | If declared, the bib will NOT flip to an alternate position<br />when there isn't enough space in the specified `placement`. |
|
|
55
53
|
| [offset](#offset) | `offset` | `number` | "0" | Gap between the trigger element and bib. |
|
|
56
54
|
| [onDark](#onDark) | `onDark` | `boolean` | false | If declared, counters and dropdown will be rendered with onDark styles. |
|
|
57
|
-
| [placement](#placement) | `placement` | `string` | "bottom-start" | Position where the bib should appear relative to the trigger.<br />Accepted values:<br />"top" \| "right" \| "bottom" \| "left" \|<br />"bottom-start" \| "top-start" \| "top-end" \|<br />"right-start" \| "right-end" \| "bottom-end" \|<br />"left-start" \| "left-end"
|
|
55
|
+
| [placement](#placement) | `placement` | `string` | "bottom-start" | Position where the bib should appear relative to the trigger.<br />Accepted values:<br />"top" \| "right" \| "bottom" \| "left" \|<br />"bottom-start" \| "top-start" \| "top-end" \|<br />"right-start" \| "right-end" \| "bottom-end" \|<br />"left-start" \| "left-end" |
|
|
58
56
|
| [total](#total) | `total` | `number` | "undefined" | The total value of the counters. |
|
|
59
57
|
| [validity](#validity) | `validity` | `string` | "undefined" | Reflects the validity state. |
|
|
60
58
|
| [value](#value) | `value` | `object` | "undefined" | The current individual values of the nested counters. |
|
|
@@ -342,131 +340,6 @@ counter.addEventListener('input', (event) => {
|
|
|
342
340
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
343
341
|
</auro-accordion>
|
|
344
342
|
|
|
345
|
-
### Counter with Custom Error
|
|
346
|
-
|
|
347
|
-
A custom error can be set on the counter by adding the `error` attribute the desired message.
|
|
348
|
-
|
|
349
|
-
<div class="exampleWrapper">
|
|
350
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/counter-error.html) -->
|
|
351
|
-
<!-- The below content is automatically added from ./../apiExamples/counter-error.html -->
|
|
352
|
-
<auro-counter error="There is an error with the counter">
|
|
353
|
-
Adults
|
|
354
|
-
</auro-counter>
|
|
355
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
356
|
-
</div>
|
|
357
|
-
<div class="exampleWrapper--ondark" aria-hidden>
|
|
358
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/ondark-counter-error.html) -->
|
|
359
|
-
<!-- The below content is automatically added from ./../apiExamples/ondark-counter-error.html -->
|
|
360
|
-
<auro-counter ondark error="There is an error with the counter">
|
|
361
|
-
Adults
|
|
362
|
-
</auro-counter>
|
|
363
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
364
|
-
</div>
|
|
365
|
-
<auro-accordion alignRight>
|
|
366
|
-
<span slot="trigger">See code</span>
|
|
367
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/counter-error.html) -->
|
|
368
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/counter-error.html -->
|
|
369
|
-
|
|
370
|
-
```html
|
|
371
|
-
<auro-counter error="There is an error with the counter">
|
|
372
|
-
Adults
|
|
373
|
-
</auro-counter>
|
|
374
|
-
```
|
|
375
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
376
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/ondark-counter-error.html) -->
|
|
377
|
-
<!-- The below content is automatically added from ./../apiExamples/ondark-counter-error.html -->
|
|
378
|
-
<auro-counter ondark error="There is an error with the counter">
|
|
379
|
-
Adults
|
|
380
|
-
</auro-counter>
|
|
381
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
382
|
-
</auro-accordion>
|
|
383
|
-
|
|
384
|
-
### Counter Dropdown with Errored Counters
|
|
385
|
-
|
|
386
|
-
A counter dropdown with counters in an errored state will display the errors for each errored counter by default
|
|
387
|
-
|
|
388
|
-
<div class="exampleWrapper">
|
|
389
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dropdown-error-basic.html) -->
|
|
390
|
-
<!-- The below content is automatically added from ./../apiExamples/dropdown-error-basic.html -->
|
|
391
|
-
<auro-counter-group isDropdown>
|
|
392
|
-
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
393
|
-
<div slot="label">Passengers</div>
|
|
394
|
-
<auro-counter error="Cannot have less than 1 adult passenger">
|
|
395
|
-
Adults
|
|
396
|
-
<span slot="description">18 years or older</span>
|
|
397
|
-
</auro-counter>
|
|
398
|
-
<auro-counter error="Cannot have more than 2 child passengers">
|
|
399
|
-
Children
|
|
400
|
-
<span slot="description">2-17 years</span>
|
|
401
|
-
</auro-counter>
|
|
402
|
-
</auro-counter-group>
|
|
403
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
404
|
-
</div>
|
|
405
|
-
<auro-accordion alignRight>
|
|
406
|
-
<span slot="trigger">See code</span>
|
|
407
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/dropdown-error-basic.html) -->
|
|
408
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/dropdown-error-basic.html -->
|
|
409
|
-
|
|
410
|
-
```html
|
|
411
|
-
<auro-counter-group isDropdown>
|
|
412
|
-
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
413
|
-
<div slot="label">Passengers</div>
|
|
414
|
-
<auro-counter error="Cannot have less than 1 adult passenger">
|
|
415
|
-
Adults
|
|
416
|
-
<span slot="description">18 years or older</span>
|
|
417
|
-
</auro-counter>
|
|
418
|
-
<auro-counter error="Cannot have more than 2 child passengers">
|
|
419
|
-
Children
|
|
420
|
-
<span slot="description">2-17 years</span>
|
|
421
|
-
</auro-counter>
|
|
422
|
-
</auro-counter-group>
|
|
423
|
-
```
|
|
424
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
425
|
-
</auro-accordion>
|
|
426
|
-
|
|
427
|
-
### Counter Dropdown with Custom Error
|
|
428
|
-
|
|
429
|
-
The error message for a dropdown counter with errored counters can also be overridden with the `error` attribute.
|
|
430
|
-
|
|
431
|
-
<div class="exampleWrapper">
|
|
432
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dropdown-error-custom.html) -->
|
|
433
|
-
<!-- The below content is automatically added from ./../apiExamples/dropdown-error-custom.html -->
|
|
434
|
-
<auro-counter-group error="Please select the appropriate number of passengers" isDropdown>
|
|
435
|
-
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
436
|
-
<div slot="label">Passengers</div>
|
|
437
|
-
<auro-counter error="Cannot have less than 1 adult passenger">
|
|
438
|
-
Adults
|
|
439
|
-
<span slot="description">18 years or older</span>
|
|
440
|
-
</auro-counter>
|
|
441
|
-
<auro-counter error="Cannot have more than 2 child passengers">
|
|
442
|
-
Children
|
|
443
|
-
<span slot="description">2-17 years</span>
|
|
444
|
-
</auro-counter>
|
|
445
|
-
</auro-counter-group>
|
|
446
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
447
|
-
</div>
|
|
448
|
-
<auro-accordion alignRight>
|
|
449
|
-
<span slot="trigger">See code</span>
|
|
450
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/dropdown-error-custom.html) -->
|
|
451
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/dropdown-error-custom.html -->
|
|
452
|
-
|
|
453
|
-
```html
|
|
454
|
-
<auro-counter-group error="Please select the appropriate number of passengers" isDropdown>
|
|
455
|
-
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
456
|
-
<div slot="label">Passengers</div>
|
|
457
|
-
<auro-counter error="Cannot have less than 1 adult passenger">
|
|
458
|
-
Adults
|
|
459
|
-
<span slot="description">18 years or older</span>
|
|
460
|
-
</auro-counter>
|
|
461
|
-
<auro-counter error="Cannot have more than 2 child passengers">
|
|
462
|
-
Children
|
|
463
|
-
<span slot="description">2-17 years</span>
|
|
464
|
-
</auro-counter>
|
|
465
|
-
</auro-counter-group>
|
|
466
|
-
```
|
|
467
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
468
|
-
</auro-accordion>
|
|
469
|
-
|
|
470
343
|
### Group Max/Min
|
|
471
344
|
|
|
472
345
|
The group counter max or min property sets the value for all counters in the group. If a counter has a max value set, the group max attribute will override it. All increment buttons as a result will be disabled to prevent the group of counters from exceeding the group max.
|
|
@@ -555,8 +428,7 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
555
428
|
<div style="width: 350px">
|
|
556
429
|
<auro-counter-group isDropdown offset="20" placement="bottom-end">
|
|
557
430
|
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
558
|
-
<
|
|
559
|
-
<span slot="helpText">bottom-end bib with 20px offset</span>
|
|
431
|
+
<div slot="label">bottom-end bib with 20px offset</div>
|
|
560
432
|
<auro-counter>
|
|
561
433
|
Adults
|
|
562
434
|
<span slot="description">18 years or older</span>
|
|
@@ -568,8 +440,7 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
568
440
|
</auro-counter-group>
|
|
569
441
|
<auro-counter-group isDropdown offset="20" placement="bottom-end" noFlip>
|
|
570
442
|
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
571
|
-
<
|
|
572
|
-
<span slot="helpText">bottom-end bib with 20px offset and noFlip</span>
|
|
443
|
+
<div slot="label">bottom-end bib with 20px offset and noFlip</div>
|
|
573
444
|
<auro-counter>
|
|
574
445
|
Adults
|
|
575
446
|
<span slot="description">18 years or older</span>
|
|
@@ -581,8 +452,7 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
581
452
|
</auro-counter-group>
|
|
582
453
|
<auro-counter-group isDropdown offset="20" placement="right" noFlip autoPlacement>
|
|
583
454
|
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
584
|
-
<
|
|
585
|
-
<span slot="helpText">right bib with 20px offset, noFlip and autoPlacement</span>
|
|
455
|
+
<div slot="label">right bib with 20px offset, noFlip and autoPlacement</div>
|
|
586
456
|
<auro-counter>
|
|
587
457
|
Adults
|
|
588
458
|
<span slot="description">18 years or older</span>
|
|
@@ -604,8 +474,7 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
604
474
|
<div style="width: 350px">
|
|
605
475
|
<auro-counter-group isDropdown offset="20" placement="bottom-end">
|
|
606
476
|
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
607
|
-
<
|
|
608
|
-
<span slot="helpText">bottom-end bib with 20px offset</span>
|
|
477
|
+
<div slot="label">bottom-end bib with 20px offset</div>
|
|
609
478
|
<auro-counter>
|
|
610
479
|
Adults
|
|
611
480
|
<span slot="description">18 years or older</span>
|
|
@@ -617,8 +486,7 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
617
486
|
</auro-counter-group>
|
|
618
487
|
<auro-counter-group isDropdown offset="20" placement="bottom-end" noFlip>
|
|
619
488
|
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
620
|
-
<
|
|
621
|
-
<span slot="helpText">bottom-end bib with 20px offset and noFlip</span>
|
|
489
|
+
<div slot="label">bottom-end bib with 20px offset and noFlip</div>
|
|
622
490
|
<auro-counter>
|
|
623
491
|
Adults
|
|
624
492
|
<span slot="description">18 years or older</span>
|
|
@@ -630,8 +498,7 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
630
498
|
</auro-counter-group>
|
|
631
499
|
<auro-counter-group isDropdown offset="20" placement="right" noFlip autoPlacement>
|
|
632
500
|
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
633
|
-
<
|
|
634
|
-
<span slot="helpText">right bib with 20px offset, noFlip and autoPlacement</span>
|
|
501
|
+
<div slot="label">right bib with 20px offset, noFlip and autoPlacement</div>
|
|
635
502
|
<auro-counter>
|
|
636
503
|
Adults
|
|
637
504
|
<span slot="description">18 years or older</span>
|