@aurodesignsystem-dev/auro-formkit 0.0.0-pr757.2 → 0.0.0-pr776.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.min.js +9 -9
- package/components/checkbox/demo/index.min.js +9 -9
- package/components/checkbox/dist/index.js +9 -9
- package/components/checkbox/dist/registered.js +9 -9
- package/components/combobox/demo/api.min.js +79 -96
- package/components/combobox/demo/index.min.js +79 -96
- package/components/combobox/dist/index.js +42 -84
- package/components/combobox/dist/registered.js +42 -84
- package/components/counter/demo/api.min.js +34 -76
- package/components/counter/demo/index.min.js +34 -76
- package/components/counter/dist/index.js +34 -76
- package/components/counter/dist/registered.js +34 -76
- package/components/datepicker/demo/api.min.js +63 -90
- package/components/datepicker/demo/index.min.js +63 -90
- package/components/datepicker/dist/auro-datepicker.d.ts +6 -0
- package/components/datepicker/dist/index.js +63 -90
- package/components/datepicker/dist/registered.js +63 -90
- package/components/dropdown/demo/api.md +60 -266
- package/components/dropdown/demo/api.min.js +25 -67
- package/components/dropdown/demo/index.md +45 -363
- package/components/dropdown/demo/index.min.js +25 -67
- package/components/dropdown/dist/auro-dropdown.d.ts +21 -71
- package/components/dropdown/dist/index.js +25 -67
- package/components/dropdown/dist/registered.js +25 -67
- package/components/helptext/dist/index.js +1 -1
- package/components/helptext/dist/registered.js +1 -1
- package/components/input/demo/api.min.js +10 -10
- package/components/input/demo/index.min.js +10 -10
- package/components/input/dist/index.js +10 -10
- package/components/input/dist/registered.js +10 -10
- package/components/menu/demo/api.md +1 -1
- package/components/menu/demo/api.min.js +37 -12
- package/components/menu/demo/index.min.js +37 -12
- package/components/menu/dist/auro-menu.d.ts +13 -2
- package/components/menu/dist/index.js +37 -12
- package/components/menu/dist/registered.js +37 -12
- package/components/radio/demo/api.min.js +10 -10
- package/components/radio/demo/index.min.js +10 -10
- package/components/radio/dist/auro-radio.d.ts +1 -1
- package/components/radio/dist/index.js +10 -10
- package/components/radio/dist/registered.js +10 -10
- package/components/select/demo/api.md +2 -2
- package/components/select/demo/api.min.js +100 -170
- package/components/select/demo/index.min.js +100 -170
- package/components/select/dist/auro-select.d.ts +13 -3
- package/components/select/dist/index.js +63 -158
- package/components/select/dist/registered.js +63 -158
- package/package.json +3 -2
|
@@ -2122,19 +2122,19 @@ class AuroFormValidation {
|
|
|
2122
2122
|
{
|
|
2123
2123
|
check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
|
|
2124
2124
|
validity: 'tooShort',
|
|
2125
|
-
message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
|
|
2125
|
+
message: e => e.getAttribute('setCustomValidityTooShort') || e.setCustomValidity || ''
|
|
2126
2126
|
},
|
|
2127
2127
|
{
|
|
2128
2128
|
check: (e) => e.value?.length > e.maxLength,
|
|
2129
2129
|
validity: 'tooLong',
|
|
2130
|
-
message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
|
|
2130
|
+
message: e => e.getAttribute('setCustomValidityTooLong') || e.setCustomValidity || ''
|
|
2131
2131
|
}
|
|
2132
2132
|
],
|
|
2133
2133
|
pattern: [
|
|
2134
2134
|
{
|
|
2135
2135
|
check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
|
|
2136
2136
|
validity: 'patternMismatch',
|
|
2137
|
-
message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
|
|
2137
|
+
message: e => e.getAttribute('setCustomValidityPatternMismatch') || e.setCustomValidity || ''
|
|
2138
2138
|
}
|
|
2139
2139
|
]
|
|
2140
2140
|
},
|
|
@@ -2329,10 +2329,10 @@ class AuroFormValidation {
|
|
|
2329
2329
|
if (!hasValue && elem.required && elem.touched) {
|
|
2330
2330
|
elem.validity = 'valueMissing';
|
|
2331
2331
|
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
2332
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
2332
|
+
} else if (hasValue && this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
2333
2333
|
this.validateType(elem);
|
|
2334
2334
|
this.validateElementAttributes(elem);
|
|
2335
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
|
|
2335
|
+
} else if (hasValue && (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group'))) {
|
|
2336
2336
|
this.validateElementAttributes(elem);
|
|
2337
2337
|
}
|
|
2338
2338
|
}
|
|
@@ -2456,7 +2456,7 @@ var styleCss$8 = i$5`.counter{display:flex;align-items:center;justify-content:sp
|
|
|
2456
2456
|
|
|
2457
2457
|
var colorCss$6 = i$5`: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)}`;
|
|
2458
2458
|
|
|
2459
|
-
var styleCss$7 = i$5
|
|
2459
|
+
var styleCss$7 = i$5`:host{position:relative;display:block}.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}`;
|
|
2460
2460
|
|
|
2461
2461
|
var tokensCss$4 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
2462
2462
|
|
|
@@ -3058,7 +3058,7 @@ class AuroCounter extends i$2 {
|
|
|
3058
3058
|
}
|
|
3059
3059
|
}
|
|
3060
3060
|
|
|
3061
|
-
var counterGroupStyles = i$5`:host(:not([layout=classic])) .triggerContent{padding:0
|
|
3061
|
+
var counterGroupStyles = i$5`:host(:not([layout=classic])) .triggerContent{padding:0 var(--ds-size-50, 0.25rem) 0 var(--ds-size-150, 0.75rem)}:host([layout=snowflake]) [auro-dropdown] .mainContent{align-items:center}.triggerContent{display:flex;width:100%;align-items:center;justify-content:center}.mainContent{display:flex;width:100%;flex-direction:column;align-items:flex-start;justify-content:center}label{font-size:var(--ds-text-body-size-default, 1rem);line-height:20px}label.filled{font-size:var(--ds-text-body-size-xs, 0.75rem)}.accents ::slotted([slot=typeIcon]){margin-right:8px}.accents ::slotted(*):not(.util_displayHidden){display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px}slot[name=valueText]{font-size:var(--ds-text-body-size-default, 1rem);overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}.counters{display:flex;flex-direction:column;gap:var(--ds-size-300, 1.5rem)}.counters ::slotted(auro-counter:not(:first-of-type)){padding-top:var(--ds-size-300, 1.5rem);border-top-width:1px;border-top-style:solid}[auro-helptext] [part=helpText]{display:flex;flex-direction:column}[auro-helptext] [part=helpText]>p{margin-block:0}`;
|
|
3062
3062
|
|
|
3063
3063
|
var shapeSizeCss$1 = i$5`.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}`;
|
|
3064
3064
|
|
|
@@ -6199,7 +6199,7 @@ var dropdownVersion$1 = '3.0.0';
|
|
|
6199
6199
|
|
|
6200
6200
|
var shapeSizeCss = i$5`.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}`;
|
|
6201
6201
|
|
|
6202
|
-
var colorCss$1$1 = i$5`: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)}`;
|
|
6202
|
+
var colorCss$1$1 = i$5`:host(:not([layout*=classic])){--ds-auro-dropdown-trigger-border-color: transparent}: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)}`;
|
|
6203
6203
|
|
|
6204
6204
|
var classicColorCss = i$5``;
|
|
6205
6205
|
|
|
@@ -6211,7 +6211,7 @@ var styleSnowflakeCss = i$5`:host{display:block}.wrapper{display:flex;flex:1;fle
|
|
|
6211
6211
|
|
|
6212
6212
|
var colorCss$5 = i$5`: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)}`;
|
|
6213
6213
|
|
|
6214
|
-
var styleCss$6 = i$5
|
|
6214
|
+
var styleCss$6 = i$5`:host{position:relative;display:block}.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}`;
|
|
6215
6215
|
|
|
6216
6216
|
var tokensCss$3 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
6217
6217
|
|
|
@@ -6516,10 +6516,8 @@ let AuroElement$3 = class AuroElement extends i$2 {
|
|
|
6516
6516
|
// See LICENSE in the project root for license information.
|
|
6517
6517
|
|
|
6518
6518
|
|
|
6519
|
-
|
|
6520
|
-
* @attr { Boolean } disableEventShow - If declared, the dropdown will only show by calling the API .show() public method.
|
|
6519
|
+
/*
|
|
6521
6520
|
* @slot - Default slot for the popover content.
|
|
6522
|
-
* @slot label - Defines the content of the label.
|
|
6523
6521
|
* @slot helpText - Defines the content of the helpText.
|
|
6524
6522
|
* @slot trigger - Defines the content of the trigger.
|
|
6525
6523
|
* @csspart trigger - The trigger content container.
|
|
@@ -6538,18 +6536,22 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
6538
6536
|
this.matchWidth = false;
|
|
6539
6537
|
this.noHideOnThisFocusLoss = false;
|
|
6540
6538
|
|
|
6541
|
-
this.errorMessage =
|
|
6539
|
+
this.errorMessage = undefined; // TODO - check with Doug if there is still more to do here
|
|
6542
6540
|
|
|
6543
6541
|
// Layout Config
|
|
6544
|
-
this.layout =
|
|
6545
|
-
this.shape =
|
|
6546
|
-
this.size =
|
|
6542
|
+
this.layout = undefined;
|
|
6543
|
+
this.shape = undefined;
|
|
6544
|
+
this.size = undefined;
|
|
6547
6545
|
|
|
6548
6546
|
this.parentBorder = false;
|
|
6549
6547
|
|
|
6550
6548
|
this.privateDefaults();
|
|
6551
6549
|
}
|
|
6552
6550
|
|
|
6551
|
+
/**
|
|
6552
|
+
* @private
|
|
6553
|
+
* @returns {object} Class definition for the wrapper element.
|
|
6554
|
+
*/
|
|
6553
6555
|
get commonWrapperClasses() {
|
|
6554
6556
|
return {
|
|
6555
6557
|
'trigger': true,
|
|
@@ -6569,12 +6571,8 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
6569
6571
|
this.disabled = false;
|
|
6570
6572
|
this.disableFocusTrap = false;
|
|
6571
6573
|
this.error = false;
|
|
6572
|
-
this.inset = false;
|
|
6573
|
-
this.rounded = false;
|
|
6574
6574
|
this.tabIndex = 0;
|
|
6575
6575
|
this.noToggle = false;
|
|
6576
|
-
this.a11yAutocomplete = 'none';
|
|
6577
|
-
this.labeled = true;
|
|
6578
6576
|
this.a11yRole = 'button';
|
|
6579
6577
|
this.onDark = false;
|
|
6580
6578
|
this.showTriggerBorders = true;
|
|
@@ -6696,26 +6694,27 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
6696
6694
|
},
|
|
6697
6695
|
|
|
6698
6696
|
/**
|
|
6699
|
-
* If declared,
|
|
6697
|
+
* If declared, the dropdown will only show by calling the API .show() public method.
|
|
6698
|
+
* @default false
|
|
6700
6699
|
*/
|
|
6701
|
-
|
|
6700
|
+
disableEventShow: {
|
|
6702
6701
|
type: Boolean,
|
|
6703
6702
|
reflect: true
|
|
6704
6703
|
},
|
|
6705
6704
|
|
|
6706
6705
|
/**
|
|
6707
|
-
* If declared,
|
|
6708
|
-
* @attr {Boolean} chevron
|
|
6706
|
+
* If declared, applies a border around the trigger slot.
|
|
6709
6707
|
*/
|
|
6710
|
-
|
|
6708
|
+
simple: {
|
|
6711
6709
|
type: Boolean,
|
|
6712
6710
|
reflect: true
|
|
6713
6711
|
},
|
|
6714
6712
|
|
|
6715
6713
|
/**
|
|
6716
|
-
* If declared, the dropdown
|
|
6714
|
+
* If declared, the dropdown displays a chevron on the right.
|
|
6715
|
+
* @attr {Boolean} chevron
|
|
6717
6716
|
*/
|
|
6718
|
-
|
|
6717
|
+
chevron: {
|
|
6719
6718
|
type: Boolean,
|
|
6720
6719
|
reflect: true
|
|
6721
6720
|
},
|
|
@@ -6729,7 +6728,7 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
6729
6728
|
},
|
|
6730
6729
|
|
|
6731
6730
|
/**
|
|
6732
|
-
* If
|
|
6731
|
+
* If declared, the focus trap inside of bib will be turned off.
|
|
6733
6732
|
*/
|
|
6734
6733
|
disableFocusTrap: {
|
|
6735
6734
|
type: Boolean,
|
|
@@ -6776,22 +6775,6 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
6776
6775
|
reflect: true
|
|
6777
6776
|
},
|
|
6778
6777
|
|
|
6779
|
-
/**
|
|
6780
|
-
* Makes the trigger to be full width of its parent container.
|
|
6781
|
-
*/
|
|
6782
|
-
fluid: {
|
|
6783
|
-
type: Boolean,
|
|
6784
|
-
reflect: true
|
|
6785
|
-
},
|
|
6786
|
-
|
|
6787
|
-
/**
|
|
6788
|
-
* If declared, will apply padding around trigger slot content.
|
|
6789
|
-
*/
|
|
6790
|
-
inset: {
|
|
6791
|
-
type: Boolean,
|
|
6792
|
-
reflect: true
|
|
6793
|
-
},
|
|
6794
|
-
|
|
6795
6778
|
/**
|
|
6796
6779
|
* If true, the dropdown bib is displayed.
|
|
6797
6780
|
*/
|
|
@@ -6835,15 +6818,6 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
6835
6818
|
reflect: true
|
|
6836
6819
|
},
|
|
6837
6820
|
|
|
6838
|
-
/**
|
|
6839
|
-
* Defines if there is a label preset.
|
|
6840
|
-
* @private
|
|
6841
|
-
*/
|
|
6842
|
-
labeled: {
|
|
6843
|
-
type: Boolean,
|
|
6844
|
-
reflect: true
|
|
6845
|
-
},
|
|
6846
|
-
|
|
6847
6821
|
/**
|
|
6848
6822
|
* Defines if the trigger should size based on the parent element providing the border UI.
|
|
6849
6823
|
* @private
|
|
@@ -6904,6 +6878,9 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
6904
6878
|
reflect: true
|
|
6905
6879
|
},
|
|
6906
6880
|
|
|
6881
|
+
/**
|
|
6882
|
+
* If declared, and a function is set, that function will execute when the slot content is updated.
|
|
6883
|
+
*/
|
|
6907
6884
|
onSlotChange: {
|
|
6908
6885
|
type: Function,
|
|
6909
6886
|
reflect: false
|
|
@@ -6918,14 +6895,6 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
6918
6895
|
reflect: true
|
|
6919
6896
|
},
|
|
6920
6897
|
|
|
6921
|
-
/**
|
|
6922
|
-
* If declared, will apply border-radius to trigger and default slots.
|
|
6923
|
-
*/
|
|
6924
|
-
rounded: {
|
|
6925
|
-
type: Boolean,
|
|
6926
|
-
reflect: true
|
|
6927
|
-
},
|
|
6928
|
-
|
|
6929
6898
|
/**
|
|
6930
6899
|
* @private
|
|
6931
6900
|
*/
|
|
@@ -6940,22 +6909,14 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
6940
6909
|
type: String || undefined,
|
|
6941
6910
|
attribute: false,
|
|
6942
6911
|
reflect: false
|
|
6943
|
-
},
|
|
6944
|
-
|
|
6945
|
-
/**
|
|
6946
|
-
* The value for the aria-autocomplete attribute of the trigger element.
|
|
6947
|
-
*/
|
|
6948
|
-
a11yAutocomplete: {
|
|
6949
|
-
type: String,
|
|
6950
|
-
attribute: false,
|
|
6951
6912
|
}
|
|
6952
6913
|
};
|
|
6953
6914
|
}
|
|
6954
6915
|
|
|
6955
6916
|
static get styles() {
|
|
6956
6917
|
return [
|
|
6957
|
-
colorCss$1$1,
|
|
6958
6918
|
tokensCss$1$1,
|
|
6919
|
+
colorCss$1$1,
|
|
6959
6920
|
|
|
6960
6921
|
// default layout
|
|
6961
6922
|
classicColorCss,
|
|
@@ -7395,10 +7356,7 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
7395
7356
|
id="bib"
|
|
7396
7357
|
shape="${this.shape}"
|
|
7397
7358
|
?data-show="${this.isPopoverVisible}"
|
|
7398
|
-
?isfullscreen="${this.isBibFullscreen}"
|
|
7399
|
-
?common="${this.common}"
|
|
7400
|
-
?rounded="${this.common || this.rounded}"
|
|
7401
|
-
?inset="${this.common || this.inset}">
|
|
7359
|
+
?isfullscreen="${this.isBibFullscreen}">
|
|
7402
7360
|
<div class="slotContent">
|
|
7403
7361
|
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
7404
7362
|
</div>
|
|
@@ -9379,7 +9337,7 @@ class AuroBibtemplate extends i$2 {
|
|
|
9379
9337
|
<div id="bibTemplate" part="bibtemplate">
|
|
9380
9338
|
${this.isFullscreen ? u`
|
|
9381
9339
|
<div id="headerContainer">
|
|
9382
|
-
<${this.buttonTag} id="closeButton" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
9340
|
+
<${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
9383
9341
|
<${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
|
|
9384
9342
|
</${this.buttonTag}>
|
|
9385
9343
|
<${this.headerTag} display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
@@ -10179,7 +10137,7 @@ class AuroCounterGroup extends AuroElement {
|
|
|
10179
10137
|
return u`
|
|
10180
10138
|
<${this.dropdownTag}
|
|
10181
10139
|
noHideOnThisFocusLoss
|
|
10182
|
-
chevron
|
|
10140
|
+
chevron
|
|
10183
10141
|
part="dropdown"
|
|
10184
10142
|
?autoPlacement="${this.autoPlacement}"
|
|
10185
10143
|
?error="${this.validity !== undefined && this.validity !== 'valid'}"
|
|
@@ -2122,19 +2122,19 @@ class AuroFormValidation {
|
|
|
2122
2122
|
{
|
|
2123
2123
|
check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
|
|
2124
2124
|
validity: 'tooShort',
|
|
2125
|
-
message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
|
|
2125
|
+
message: e => e.getAttribute('setCustomValidityTooShort') || e.setCustomValidity || ''
|
|
2126
2126
|
},
|
|
2127
2127
|
{
|
|
2128
2128
|
check: (e) => e.value?.length > e.maxLength,
|
|
2129
2129
|
validity: 'tooLong',
|
|
2130
|
-
message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
|
|
2130
|
+
message: e => e.getAttribute('setCustomValidityTooLong') || e.setCustomValidity || ''
|
|
2131
2131
|
}
|
|
2132
2132
|
],
|
|
2133
2133
|
pattern: [
|
|
2134
2134
|
{
|
|
2135
2135
|
check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
|
|
2136
2136
|
validity: 'patternMismatch',
|
|
2137
|
-
message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
|
|
2137
|
+
message: e => e.getAttribute('setCustomValidityPatternMismatch') || e.setCustomValidity || ''
|
|
2138
2138
|
}
|
|
2139
2139
|
]
|
|
2140
2140
|
},
|
|
@@ -2329,10 +2329,10 @@ class AuroFormValidation {
|
|
|
2329
2329
|
if (!hasValue && elem.required && elem.touched) {
|
|
2330
2330
|
elem.validity = 'valueMissing';
|
|
2331
2331
|
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
2332
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
2332
|
+
} else if (hasValue && this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
2333
2333
|
this.validateType(elem);
|
|
2334
2334
|
this.validateElementAttributes(elem);
|
|
2335
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
|
|
2335
|
+
} else if (hasValue && (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group'))) {
|
|
2336
2336
|
this.validateElementAttributes(elem);
|
|
2337
2337
|
}
|
|
2338
2338
|
}
|
|
@@ -2456,7 +2456,7 @@ var styleCss$8 = i$5`.counter{display:flex;align-items:center;justify-content:sp
|
|
|
2456
2456
|
|
|
2457
2457
|
var colorCss$6 = i$5`: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)}`;
|
|
2458
2458
|
|
|
2459
|
-
var styleCss$7 = i$5
|
|
2459
|
+
var styleCss$7 = i$5`:host{position:relative;display:block}.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}`;
|
|
2460
2460
|
|
|
2461
2461
|
var tokensCss$4 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
2462
2462
|
|
|
@@ -3058,7 +3058,7 @@ class AuroCounter extends i$2 {
|
|
|
3058
3058
|
}
|
|
3059
3059
|
}
|
|
3060
3060
|
|
|
3061
|
-
var counterGroupStyles = i$5`:host(:not([layout=classic])) .triggerContent{padding:0
|
|
3061
|
+
var counterGroupStyles = i$5`:host(:not([layout=classic])) .triggerContent{padding:0 var(--ds-size-50, 0.25rem) 0 var(--ds-size-150, 0.75rem)}:host([layout=snowflake]) [auro-dropdown] .mainContent{align-items:center}.triggerContent{display:flex;width:100%;align-items:center;justify-content:center}.mainContent{display:flex;width:100%;flex-direction:column;align-items:flex-start;justify-content:center}label{font-size:var(--ds-text-body-size-default, 1rem);line-height:20px}label.filled{font-size:var(--ds-text-body-size-xs, 0.75rem)}.accents ::slotted([slot=typeIcon]){margin-right:8px}.accents ::slotted(*):not(.util_displayHidden){display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px}slot[name=valueText]{font-size:var(--ds-text-body-size-default, 1rem);overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}.counters{display:flex;flex-direction:column;gap:var(--ds-size-300, 1.5rem)}.counters ::slotted(auro-counter:not(:first-of-type)){padding-top:var(--ds-size-300, 1.5rem);border-top-width:1px;border-top-style:solid}[auro-helptext] [part=helpText]{display:flex;flex-direction:column}[auro-helptext] [part=helpText]>p{margin-block:0}`;
|
|
3062
3062
|
|
|
3063
3063
|
var shapeSizeCss$1 = i$5`.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}`;
|
|
3064
3064
|
|
|
@@ -6199,7 +6199,7 @@ var dropdownVersion$1 = '3.0.0';
|
|
|
6199
6199
|
|
|
6200
6200
|
var shapeSizeCss = i$5`.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}`;
|
|
6201
6201
|
|
|
6202
|
-
var colorCss$1$1 = i$5`: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)}`;
|
|
6202
|
+
var colorCss$1$1 = i$5`:host(:not([layout*=classic])){--ds-auro-dropdown-trigger-border-color: transparent}: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)}`;
|
|
6203
6203
|
|
|
6204
6204
|
var classicColorCss = i$5``;
|
|
6205
6205
|
|
|
@@ -6211,7 +6211,7 @@ var styleSnowflakeCss = i$5`:host{display:block}.wrapper{display:flex;flex:1;fle
|
|
|
6211
6211
|
|
|
6212
6212
|
var colorCss$5 = i$5`: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)}`;
|
|
6213
6213
|
|
|
6214
|
-
var styleCss$6 = i$5
|
|
6214
|
+
var styleCss$6 = i$5`:host{position:relative;display:block}.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}`;
|
|
6215
6215
|
|
|
6216
6216
|
var tokensCss$3 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
6217
6217
|
|
|
@@ -6516,10 +6516,8 @@ let AuroElement$3 = class AuroElement extends i$2 {
|
|
|
6516
6516
|
// See LICENSE in the project root for license information.
|
|
6517
6517
|
|
|
6518
6518
|
|
|
6519
|
-
|
|
6520
|
-
* @attr { Boolean } disableEventShow - If declared, the dropdown will only show by calling the API .show() public method.
|
|
6519
|
+
/*
|
|
6521
6520
|
* @slot - Default slot for the popover content.
|
|
6522
|
-
* @slot label - Defines the content of the label.
|
|
6523
6521
|
* @slot helpText - Defines the content of the helpText.
|
|
6524
6522
|
* @slot trigger - Defines the content of the trigger.
|
|
6525
6523
|
* @csspart trigger - The trigger content container.
|
|
@@ -6538,18 +6536,22 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
6538
6536
|
this.matchWidth = false;
|
|
6539
6537
|
this.noHideOnThisFocusLoss = false;
|
|
6540
6538
|
|
|
6541
|
-
this.errorMessage =
|
|
6539
|
+
this.errorMessage = undefined; // TODO - check with Doug if there is still more to do here
|
|
6542
6540
|
|
|
6543
6541
|
// Layout Config
|
|
6544
|
-
this.layout =
|
|
6545
|
-
this.shape =
|
|
6546
|
-
this.size =
|
|
6542
|
+
this.layout = undefined;
|
|
6543
|
+
this.shape = undefined;
|
|
6544
|
+
this.size = undefined;
|
|
6547
6545
|
|
|
6548
6546
|
this.parentBorder = false;
|
|
6549
6547
|
|
|
6550
6548
|
this.privateDefaults();
|
|
6551
6549
|
}
|
|
6552
6550
|
|
|
6551
|
+
/**
|
|
6552
|
+
* @private
|
|
6553
|
+
* @returns {object} Class definition for the wrapper element.
|
|
6554
|
+
*/
|
|
6553
6555
|
get commonWrapperClasses() {
|
|
6554
6556
|
return {
|
|
6555
6557
|
'trigger': true,
|
|
@@ -6569,12 +6571,8 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
6569
6571
|
this.disabled = false;
|
|
6570
6572
|
this.disableFocusTrap = false;
|
|
6571
6573
|
this.error = false;
|
|
6572
|
-
this.inset = false;
|
|
6573
|
-
this.rounded = false;
|
|
6574
6574
|
this.tabIndex = 0;
|
|
6575
6575
|
this.noToggle = false;
|
|
6576
|
-
this.a11yAutocomplete = 'none';
|
|
6577
|
-
this.labeled = true;
|
|
6578
6576
|
this.a11yRole = 'button';
|
|
6579
6577
|
this.onDark = false;
|
|
6580
6578
|
this.showTriggerBorders = true;
|
|
@@ -6696,26 +6694,27 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
6696
6694
|
},
|
|
6697
6695
|
|
|
6698
6696
|
/**
|
|
6699
|
-
* If declared,
|
|
6697
|
+
* If declared, the dropdown will only show by calling the API .show() public method.
|
|
6698
|
+
* @default false
|
|
6700
6699
|
*/
|
|
6701
|
-
|
|
6700
|
+
disableEventShow: {
|
|
6702
6701
|
type: Boolean,
|
|
6703
6702
|
reflect: true
|
|
6704
6703
|
},
|
|
6705
6704
|
|
|
6706
6705
|
/**
|
|
6707
|
-
* If declared,
|
|
6708
|
-
* @attr {Boolean} chevron
|
|
6706
|
+
* If declared, applies a border around the trigger slot.
|
|
6709
6707
|
*/
|
|
6710
|
-
|
|
6708
|
+
simple: {
|
|
6711
6709
|
type: Boolean,
|
|
6712
6710
|
reflect: true
|
|
6713
6711
|
},
|
|
6714
6712
|
|
|
6715
6713
|
/**
|
|
6716
|
-
* If declared, the dropdown
|
|
6714
|
+
* If declared, the dropdown displays a chevron on the right.
|
|
6715
|
+
* @attr {Boolean} chevron
|
|
6717
6716
|
*/
|
|
6718
|
-
|
|
6717
|
+
chevron: {
|
|
6719
6718
|
type: Boolean,
|
|
6720
6719
|
reflect: true
|
|
6721
6720
|
},
|
|
@@ -6729,7 +6728,7 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
6729
6728
|
},
|
|
6730
6729
|
|
|
6731
6730
|
/**
|
|
6732
|
-
* If
|
|
6731
|
+
* If declared, the focus trap inside of bib will be turned off.
|
|
6733
6732
|
*/
|
|
6734
6733
|
disableFocusTrap: {
|
|
6735
6734
|
type: Boolean,
|
|
@@ -6776,22 +6775,6 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
6776
6775
|
reflect: true
|
|
6777
6776
|
},
|
|
6778
6777
|
|
|
6779
|
-
/**
|
|
6780
|
-
* Makes the trigger to be full width of its parent container.
|
|
6781
|
-
*/
|
|
6782
|
-
fluid: {
|
|
6783
|
-
type: Boolean,
|
|
6784
|
-
reflect: true
|
|
6785
|
-
},
|
|
6786
|
-
|
|
6787
|
-
/**
|
|
6788
|
-
* If declared, will apply padding around trigger slot content.
|
|
6789
|
-
*/
|
|
6790
|
-
inset: {
|
|
6791
|
-
type: Boolean,
|
|
6792
|
-
reflect: true
|
|
6793
|
-
},
|
|
6794
|
-
|
|
6795
6778
|
/**
|
|
6796
6779
|
* If true, the dropdown bib is displayed.
|
|
6797
6780
|
*/
|
|
@@ -6835,15 +6818,6 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
6835
6818
|
reflect: true
|
|
6836
6819
|
},
|
|
6837
6820
|
|
|
6838
|
-
/**
|
|
6839
|
-
* Defines if there is a label preset.
|
|
6840
|
-
* @private
|
|
6841
|
-
*/
|
|
6842
|
-
labeled: {
|
|
6843
|
-
type: Boolean,
|
|
6844
|
-
reflect: true
|
|
6845
|
-
},
|
|
6846
|
-
|
|
6847
6821
|
/**
|
|
6848
6822
|
* Defines if the trigger should size based on the parent element providing the border UI.
|
|
6849
6823
|
* @private
|
|
@@ -6904,6 +6878,9 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
6904
6878
|
reflect: true
|
|
6905
6879
|
},
|
|
6906
6880
|
|
|
6881
|
+
/**
|
|
6882
|
+
* If declared, and a function is set, that function will execute when the slot content is updated.
|
|
6883
|
+
*/
|
|
6907
6884
|
onSlotChange: {
|
|
6908
6885
|
type: Function,
|
|
6909
6886
|
reflect: false
|
|
@@ -6918,14 +6895,6 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
6918
6895
|
reflect: true
|
|
6919
6896
|
},
|
|
6920
6897
|
|
|
6921
|
-
/**
|
|
6922
|
-
* If declared, will apply border-radius to trigger and default slots.
|
|
6923
|
-
*/
|
|
6924
|
-
rounded: {
|
|
6925
|
-
type: Boolean,
|
|
6926
|
-
reflect: true
|
|
6927
|
-
},
|
|
6928
|
-
|
|
6929
6898
|
/**
|
|
6930
6899
|
* @private
|
|
6931
6900
|
*/
|
|
@@ -6940,22 +6909,14 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
6940
6909
|
type: String || undefined,
|
|
6941
6910
|
attribute: false,
|
|
6942
6911
|
reflect: false
|
|
6943
|
-
},
|
|
6944
|
-
|
|
6945
|
-
/**
|
|
6946
|
-
* The value for the aria-autocomplete attribute of the trigger element.
|
|
6947
|
-
*/
|
|
6948
|
-
a11yAutocomplete: {
|
|
6949
|
-
type: String,
|
|
6950
|
-
attribute: false,
|
|
6951
6912
|
}
|
|
6952
6913
|
};
|
|
6953
6914
|
}
|
|
6954
6915
|
|
|
6955
6916
|
static get styles() {
|
|
6956
6917
|
return [
|
|
6957
|
-
colorCss$1$1,
|
|
6958
6918
|
tokensCss$1$1,
|
|
6919
|
+
colorCss$1$1,
|
|
6959
6920
|
|
|
6960
6921
|
// default layout
|
|
6961
6922
|
classicColorCss,
|
|
@@ -7395,10 +7356,7 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
7395
7356
|
id="bib"
|
|
7396
7357
|
shape="${this.shape}"
|
|
7397
7358
|
?data-show="${this.isPopoverVisible}"
|
|
7398
|
-
?isfullscreen="${this.isBibFullscreen}"
|
|
7399
|
-
?common="${this.common}"
|
|
7400
|
-
?rounded="${this.common || this.rounded}"
|
|
7401
|
-
?inset="${this.common || this.inset}">
|
|
7359
|
+
?isfullscreen="${this.isBibFullscreen}">
|
|
7402
7360
|
<div class="slotContent">
|
|
7403
7361
|
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
7404
7362
|
</div>
|
|
@@ -9379,7 +9337,7 @@ class AuroBibtemplate extends i$2 {
|
|
|
9379
9337
|
<div id="bibTemplate" part="bibtemplate">
|
|
9380
9338
|
${this.isFullscreen ? u`
|
|
9381
9339
|
<div id="headerContainer">
|
|
9382
|
-
<${this.buttonTag} id="closeButton" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
9340
|
+
<${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
9383
9341
|
<${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
|
|
9384
9342
|
</${this.buttonTag}>
|
|
9385
9343
|
<${this.headerTag} display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
@@ -10179,7 +10137,7 @@ class AuroCounterGroup extends AuroElement {
|
|
|
10179
10137
|
return u`
|
|
10180
10138
|
<${this.dropdownTag}
|
|
10181
10139
|
noHideOnThisFocusLoss
|
|
10182
|
-
chevron
|
|
10140
|
+
chevron
|
|
10183
10141
|
part="dropdown"
|
|
10184
10142
|
?autoPlacement="${this.autoPlacement}"
|
|
10185
10143
|
?error="${this.validity !== undefined && this.validity !== 'valid'}"
|