@aurodesignsystem-dev/auro-formkit 0.0.0-pr757.2 → 0.0.0-pr773.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 +77 -94
- package/components/combobox/demo/index.min.js +77 -94
- package/components/combobox/dist/index.js +41 -83
- package/components/combobox/dist/registered.js +41 -83
- 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 +62 -89
- package/components/datepicker/demo/index.min.js +62 -89
- package/components/datepicker/dist/auro-datepicker.d.ts +6 -0
- package/components/datepicker/dist/index.js +62 -89
- package/components/datepicker/dist/registered.js +62 -89
- 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 +9 -9
- package/components/input/demo/index.min.js +9 -9
- package/components/input/dist/index.js +9 -9
- package/components/input/dist/registered.js +9 -9
- package/components/menu/demo/api.md +1 -1
- package/components/menu/demo/api.min.js +36 -11
- package/components/menu/demo/index.min.js +36 -11
- package/components/menu/dist/auro-menu.d.ts +13 -2
- package/components/menu/dist/index.js +36 -11
- package/components/menu/dist/registered.js +36 -11
- 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 +98 -168
- package/components/select/demo/index.min.js +98 -168
- package/components/select/dist/auro-select.d.ts +13 -3
- package/components/select/dist/index.js +62 -157
- package/components/select/dist/registered.js +62 -157
- package/package.json +1 -1
|
@@ -551,19 +551,19 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
551
551
|
{
|
|
552
552
|
check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
|
|
553
553
|
validity: 'tooShort',
|
|
554
|
-
message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
|
|
554
|
+
message: e => e.getAttribute('setCustomValidityTooShort') || e.setCustomValidity || ''
|
|
555
555
|
},
|
|
556
556
|
{
|
|
557
557
|
check: (e) => e.value?.length > e.maxLength,
|
|
558
558
|
validity: 'tooLong',
|
|
559
|
-
message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
|
|
559
|
+
message: e => e.getAttribute('setCustomValidityTooLong') || e.setCustomValidity || ''
|
|
560
560
|
}
|
|
561
561
|
],
|
|
562
562
|
pattern: [
|
|
563
563
|
{
|
|
564
564
|
check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
|
|
565
565
|
validity: 'patternMismatch',
|
|
566
|
-
message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
|
|
566
|
+
message: e => e.getAttribute('setCustomValidityPatternMismatch') || e.setCustomValidity || ''
|
|
567
567
|
}
|
|
568
568
|
]
|
|
569
569
|
},
|
|
@@ -758,10 +758,10 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
758
758
|
if (!hasValue && elem.required && elem.touched) {
|
|
759
759
|
elem.validity = 'valueMissing';
|
|
760
760
|
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
761
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
761
|
+
} else if (hasValue && this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
762
762
|
this.validateType(elem);
|
|
763
763
|
this.validateElementAttributes(elem);
|
|
764
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
|
|
764
|
+
} else if (hasValue && (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group'))) {
|
|
765
765
|
this.validateElementAttributes(elem);
|
|
766
766
|
}
|
|
767
767
|
}
|
|
@@ -1247,7 +1247,7 @@ class UtilitiesCalendarRender {
|
|
|
1247
1247
|
}
|
|
1248
1248
|
}
|
|
1249
1249
|
|
|
1250
|
-
var styleCss$e = css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host([layout=classic]) [auro-input]::part(iconContainer){top:0;display:flex;height:100%;align-items:center}:host([layout=classic]) [auro-input]::part(accentIcon){transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}:host([layout=classic]) [auro-input]::part(helpText){display:none}:host([layout=classic]) [auro-input]::part(wrapper):focus-within:before{border-bottom-width:0 !important;box-shadow:unset !important;outline:unset !important}:host([layout=classic]) [auro-input]::part(wrapper) .dpTriggerContent{display:flex;flex-direction:column}:host([layout=classic]) [auro-input]::part(wrapper) .dpTriggerContent [auro-input]{flex:1}:host([layout=classic]) [auro-input]::part(wrapper) .dpTriggerContent{flex-direction:row}:host([layout=classic]) [auro-input]::part(wrapper) [auro-input]:first-of-type{margin-right:var(--ds-size-150, 0.75rem);--ds-auro-input-border-color: transparent;--ds-auro-input-container-color: transparent}:host([layout=classic]) [auro-input]::part(wrapper) [auro-input]:not(:first-child)::part(wrapper)::after{position:absolute;left:50%;width:95%;height:1px;background-color:var(--ds-auro-datepicker-range-input-divider-color);content:"";transform:translateX(-50%)}:host([layout=classic]) [auro-input]::part(wrapper) .outerWrapper{position:relative;container:outerwrapper/inline-size}:host([layout=classic]) [auro-input]::part(wrapper) .dpTriggerContent{display:flex;flex-direction:column}:host([layout=classic]) [auro-input]::part(wrapper) .dpTriggerContent [auro-input]{flex:1}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) .dpTriggerContent{flex-direction:row}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:first-of-type{margin-right:var(--ds-size-150, 0.75rem)}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:nth-child(2){margin-left:var(--ds-size-150, 0.75rem)}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:nth-child(2)::part(accentIcon){display:none}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:nth-child(2)::part(label){left:0;width:100%}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:nth-child(2)::part(input){padding-left:0}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:nth-child(2):before{position:absolute;top:13px;left:calc(var(--ds-size-150, 0.75rem)*-1);display:block;width:1px;height:2rem;content:""}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:not(:first-child)::part(wrapper):after{content:none}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked])[range] [auro-input]{max-width:50%}@media screen and (max-width: 576px){
|
|
1250
|
+
var styleCss$e = css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host([layout=classic]) [auro-input]::part(iconContainer){top:0;display:flex;height:100%;align-items:center}:host([layout=classic]) [auro-input]::part(accentIcon){transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}:host([layout=classic]) [auro-input]::part(helpText){display:none}:host([layout=classic]) [auro-input]::part(wrapper):focus-within:before{border-bottom-width:0 !important;box-shadow:unset !important;outline:unset !important}:host([layout=classic]) [auro-input]::part(wrapper) .dpTriggerContent{display:flex;flex-direction:column}:host([layout=classic]) [auro-input]::part(wrapper) .dpTriggerContent [auro-input]{flex:1}:host([layout=classic]) [auro-input]::part(wrapper) .dpTriggerContent{flex-direction:row}:host([layout=classic]) [auro-input]::part(wrapper) [auro-input]:first-of-type{margin-right:var(--ds-size-150, 0.75rem);--ds-auro-input-border-color: transparent;--ds-auro-input-container-color: transparent}:host([layout=classic]) [auro-input]::part(wrapper) [auro-input]:not(:first-child)::part(wrapper)::after{position:absolute;left:50%;width:95%;height:1px;background-color:var(--ds-auro-datepicker-range-input-divider-color);content:"";transform:translateX(-50%)}:host([layout=classic]) [auro-input]::part(wrapper) .outerWrapper{position:relative;container:outerwrapper/inline-size}:host([layout=classic]) [auro-input]::part(wrapper) .dpTriggerContent{display:flex;flex-direction:column}:host([layout=classic]) [auro-input]::part(wrapper) .dpTriggerContent [auro-input]{flex:1}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) .dpTriggerContent{flex-direction:row}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:first-of-type{margin-right:var(--ds-size-150, 0.75rem)}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:nth-child(2){margin-left:var(--ds-size-150, 0.75rem)}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:nth-child(2)::part(accentIcon){display:none}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:nth-child(2)::part(label){left:0;width:100%}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:nth-child(2)::part(input){padding-left:0}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:nth-child(2):before{position:absolute;top:13px;left:calc(var(--ds-size-150, 0.75rem)*-1);display:block;width:1px;height:2rem;content:""}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:not(:first-child)::part(wrapper):after{content:none}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked])[range] [auro-input]{max-width:50%}@media screen and (max-width: 576px){::part(popover){position:fixed !important;top:0 !important;left:0 !important;width:100vw !important;height:100vh !important;margin-bottom:var(--ds-size-200, 1rem);transform:unset !important}.calendarWrapper{display:flex;height:100dvh;flex-direction:row;justify-content:center}}`;
|
|
1251
1251
|
|
|
1252
1252
|
var colorCss$d = css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[auro-input]::part(wrapper){--ds-auro-input-border-color: transparent;--ds-auro-input-container-color: transparent}.dpTriggerContent [auro-input]:nth-child(2):before{background-color:var(--ds-auro-datepicker-range-input-divider-color)}:host([onDark]){--ds-auro-datepicker-range-input-divider-color: var(--ds-basic-color-border-inverse, #ffffff)}`;
|
|
1253
1253
|
|
|
@@ -1257,7 +1257,7 @@ var shapeSizeCss$2 = css`.wrapper{overflow:hidden}.shape-classic-xl,.shape-class
|
|
|
1257
1257
|
|
|
1258
1258
|
var classicLayoutColor = css``;
|
|
1259
1259
|
|
|
1260
|
-
var snowflakeStyle = css`.accents{flex-grow:0;flex-shrink:0;display:flex;align-items:center;justify-content:center}.accents.left{padding-right:var(--ds-size-100, 0.5rem)}.accents.right{width:var(--ds-size-400, 2rem)}.mainContent{height:100%;max-height:100%;flex-grow:1;display:flex;flex-direction:column;justify-content:center;align-items:center}.inputSection{display:flex;flex-direction:row;align-items:center}.inputSection:not(:is(.disabled,.hasFocus,.hasValue)) .inputDivider{display:none}.inputContainer{display:flex;flex-direction:row;align-items:center;width:100%}.inputContainer:first-of-type{justify-content:flex-end}.inputContainer:last-of-type{justify-content:flex-start}:host([disabled]) .inputSection{display:none}:host([layout*=snowflake]) [auro-input]{flex:1;text-align:center}:host([layout*=snowflake]) [auro-input]::part(label),:host([layout*=snowflake]) [auro-input]::part(accent-left),:host([layout*=snowflake]) [auro-input]::part(accent-right){display:none}:host([layout*=snowflake]) [auro-input]::part(input){padding-bottom:unset;text-align:center;font-size:var(--ds-text-body-size-lg, 1.125rem);line-height:var(--ds-text-body-height-lg, 1.625rem);transition:unset}:host([layout*=snowflake]) [auro-input]::part(wrapper){min-height:unset;max-height:unset;box-shadow:unset}:host([layout*=snowflake]) [auro-input]::part(wrapper) .mainContent{padding-bottom:unset}:host([layout*=snowflake]) [auro-input]::part(inputHelpText){display:none}:host([layout*=snowflake]) [auro-dropdown]::part(trigger){width:100%}:host([layout*=snowflake]) .dpTriggerContent{width:100%}:host([layout*=snowflake]) .wrapper{height:60px;width:calc(100% - 48px);display:flex;flex-direction:row;justify-content:space-between;padding-left:24px;padding-right:24px}:host([layout*=snowflake]) label{font-size:var(--ds-text-body-size-lg, 1.125rem);line-height:var(--ds-text-body-height-lg, 1.625rem);font-weight:450;letter-spacing:0}:host([layout*=snowflake]) label.hasFocus,:host([layout*=snowflake]) label.hasValue{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-height-xs, 1rem)}:host([layout*=snowflake]) .inputDivider{height:18px;margin:4px 12px;width:2px}`;
|
|
1260
|
+
var snowflakeStyle = css`.accents{flex-grow:0;flex-shrink:0;display:flex;align-items:center;justify-content:center}.accents.left{padding-right:var(--ds-size-100, 0.5rem)}.accents.right{width:var(--ds-size-400, 2rem)}.mainContent{height:100%;max-height:100%;flex-grow:1;display:flex;flex-direction:column;justify-content:center;align-items:center}.inputSection{display:flex;flex-direction:row;align-items:center;width:100%;max-width:250px;margin:0 auto}.inputSection:not(:is(.disabled,.hasFocus,.hasValue)) .inputDivider{display:none}.inputContainer{display:flex;flex-direction:row;align-items:center;width:100%}.inputContainer:first-of-type{justify-content:flex-end}.inputContainer:last-of-type{justify-content:flex-start}:host([disabled]) .inputSection{display:none}:host([layout*=snowflake]) [auro-input]{flex:1;text-align:center}:host([layout*=snowflake]) [auro-input]::part(label),:host([layout*=snowflake]) [auro-input]::part(accent-left),:host([layout*=snowflake]) [auro-input]::part(accent-right){display:none}:host([layout*=snowflake]) [auro-input]::part(input){padding-bottom:unset;text-align:center;font-size:var(--ds-text-body-size-lg, 1.125rem);line-height:var(--ds-text-body-height-lg, 1.625rem);transition:unset}:host([layout*=snowflake]) [auro-input]::part(wrapper){min-height:unset;max-height:unset;box-shadow:unset}:host([layout*=snowflake]) [auro-input]::part(wrapper) .mainContent{padding-bottom:unset}:host([layout*=snowflake]) [auro-input]::part(inputHelpText){display:none}:host([layout*=snowflake]) [auro-dropdown]::part(trigger){width:100%}:host([layout*=snowflake]) .dpTriggerContent{width:100%}:host([layout*=snowflake]) .wrapper{height:60px;width:calc(100% - 48px);display:flex;flex-direction:row;justify-content:space-between;padding-left:24px;padding-right:24px}:host([layout*=snowflake]) label{font-size:var(--ds-text-body-size-lg, 1.125rem);line-height:var(--ds-text-body-height-lg, 1.625rem);font-weight:450;letter-spacing:0}:host([layout*=snowflake]) label.hasFocus,:host([layout*=snowflake]) label.hasValue{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-height-xs, 1rem)}:host([layout*=snowflake]) .inputDivider{height:18px;margin:4px 12px;width:2px}`;
|
|
1261
1261
|
|
|
1262
1262
|
var snowflakeColors = css`:host([layout=snowflake])[disabled] .mainContent label ::slotted(*){color:var(--ds-auro-icon-color)}:host([layout=snowflake]) label{color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([layout=snowflake]) .inputDivider{background-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([layout=snowflake]) .error{color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host([layout=snowflake]) [auro-input]::part(input)::placeholder{color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([layout=snowflake]) [auro-dropdown]:not(:is([error],.hasFocus))::part(wrapper){--ds-auro-dropdown-trigger-border-color: transparent}`;
|
|
1263
1263
|
|
|
@@ -12730,7 +12730,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
12730
12730
|
<div id="bibTemplate" part="bibtemplate">
|
|
12731
12731
|
${this.isFullscreen ? html$1`
|
|
12732
12732
|
<div id="headerContainer">
|
|
12733
|
-
<${this.buttonTag} id="closeButton" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
12733
|
+
<${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
12734
12734
|
<${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
|
|
12735
12735
|
</${this.buttonTag}>
|
|
12736
12736
|
<${this.headerTag} display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
@@ -17246,7 +17246,7 @@ var dropdownVersion$1 = '3.0.0';
|
|
|
17246
17246
|
|
|
17247
17247
|
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}`;
|
|
17248
17248
|
|
|
17249
|
-
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)}`;
|
|
17249
|
+
var colorCss$1$2 = css`: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)}`;
|
|
17250
17250
|
|
|
17251
17251
|
var classicColorCss$1 = css``;
|
|
17252
17252
|
|
|
@@ -17258,7 +17258,7 @@ var styleSnowflakeCss = css`:host{display:block}.wrapper{display:flex;flex:1;fle
|
|
|
17258
17258
|
|
|
17259
17259
|
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)}`;
|
|
17260
17260
|
|
|
17261
|
-
var styleCss$6 = css
|
|
17261
|
+
var styleCss$6 = css`: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}`;
|
|
17262
17262
|
|
|
17263
17263
|
var tokensCss$6 = css`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
17264
17264
|
|
|
@@ -17563,10 +17563,8 @@ let AuroElement$4 = class AuroElement extends LitElement {
|
|
|
17563
17563
|
// See LICENSE in the project root for license information.
|
|
17564
17564
|
|
|
17565
17565
|
|
|
17566
|
-
|
|
17567
|
-
* @attr { Boolean } disableEventShow - If declared, the dropdown will only show by calling the API .show() public method.
|
|
17566
|
+
/*
|
|
17568
17567
|
* @slot - Default slot for the popover content.
|
|
17569
|
-
* @slot label - Defines the content of the label.
|
|
17570
17568
|
* @slot helpText - Defines the content of the helpText.
|
|
17571
17569
|
* @slot trigger - Defines the content of the trigger.
|
|
17572
17570
|
* @csspart trigger - The trigger content container.
|
|
@@ -17585,18 +17583,22 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
17585
17583
|
this.matchWidth = false;
|
|
17586
17584
|
this.noHideOnThisFocusLoss = false;
|
|
17587
17585
|
|
|
17588
|
-
this.errorMessage =
|
|
17586
|
+
this.errorMessage = undefined; // TODO - check with Doug if there is still more to do here
|
|
17589
17587
|
|
|
17590
17588
|
// Layout Config
|
|
17591
|
-
this.layout =
|
|
17592
|
-
this.shape =
|
|
17593
|
-
this.size =
|
|
17589
|
+
this.layout = undefined;
|
|
17590
|
+
this.shape = undefined;
|
|
17591
|
+
this.size = undefined;
|
|
17594
17592
|
|
|
17595
17593
|
this.parentBorder = false;
|
|
17596
17594
|
|
|
17597
17595
|
this.privateDefaults();
|
|
17598
17596
|
}
|
|
17599
17597
|
|
|
17598
|
+
/**
|
|
17599
|
+
* @private
|
|
17600
|
+
* @returns {object} Class definition for the wrapper element.
|
|
17601
|
+
*/
|
|
17600
17602
|
get commonWrapperClasses() {
|
|
17601
17603
|
return {
|
|
17602
17604
|
'trigger': true,
|
|
@@ -17616,12 +17618,8 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
17616
17618
|
this.disabled = false;
|
|
17617
17619
|
this.disableFocusTrap = false;
|
|
17618
17620
|
this.error = false;
|
|
17619
|
-
this.inset = false;
|
|
17620
|
-
this.rounded = false;
|
|
17621
17621
|
this.tabIndex = 0;
|
|
17622
17622
|
this.noToggle = false;
|
|
17623
|
-
this.a11yAutocomplete = 'none';
|
|
17624
|
-
this.labeled = true;
|
|
17625
17623
|
this.a11yRole = 'button';
|
|
17626
17624
|
this.onDark = false;
|
|
17627
17625
|
this.showTriggerBorders = true;
|
|
@@ -17743,26 +17741,27 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
17743
17741
|
},
|
|
17744
17742
|
|
|
17745
17743
|
/**
|
|
17746
|
-
* If declared,
|
|
17744
|
+
* If declared, the dropdown will only show by calling the API .show() public method.
|
|
17745
|
+
* @default false
|
|
17747
17746
|
*/
|
|
17748
|
-
|
|
17747
|
+
disableEventShow: {
|
|
17749
17748
|
type: Boolean,
|
|
17750
17749
|
reflect: true
|
|
17751
17750
|
},
|
|
17752
17751
|
|
|
17753
17752
|
/**
|
|
17754
|
-
* If declared,
|
|
17755
|
-
* @attr {Boolean} chevron
|
|
17753
|
+
* If declared, applies a border around the trigger slot.
|
|
17756
17754
|
*/
|
|
17757
|
-
|
|
17755
|
+
simple: {
|
|
17758
17756
|
type: Boolean,
|
|
17759
17757
|
reflect: true
|
|
17760
17758
|
},
|
|
17761
17759
|
|
|
17762
17760
|
/**
|
|
17763
|
-
* If declared, the dropdown
|
|
17761
|
+
* If declared, the dropdown displays a chevron on the right.
|
|
17762
|
+
* @attr {Boolean} chevron
|
|
17764
17763
|
*/
|
|
17765
|
-
|
|
17764
|
+
chevron: {
|
|
17766
17765
|
type: Boolean,
|
|
17767
17766
|
reflect: true
|
|
17768
17767
|
},
|
|
@@ -17776,7 +17775,7 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
17776
17775
|
},
|
|
17777
17776
|
|
|
17778
17777
|
/**
|
|
17779
|
-
* If
|
|
17778
|
+
* If declared, the focus trap inside of bib will be turned off.
|
|
17780
17779
|
*/
|
|
17781
17780
|
disableFocusTrap: {
|
|
17782
17781
|
type: Boolean,
|
|
@@ -17823,22 +17822,6 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
17823
17822
|
reflect: true
|
|
17824
17823
|
},
|
|
17825
17824
|
|
|
17826
|
-
/**
|
|
17827
|
-
* Makes the trigger to be full width of its parent container.
|
|
17828
|
-
*/
|
|
17829
|
-
fluid: {
|
|
17830
|
-
type: Boolean,
|
|
17831
|
-
reflect: true
|
|
17832
|
-
},
|
|
17833
|
-
|
|
17834
|
-
/**
|
|
17835
|
-
* If declared, will apply padding around trigger slot content.
|
|
17836
|
-
*/
|
|
17837
|
-
inset: {
|
|
17838
|
-
type: Boolean,
|
|
17839
|
-
reflect: true
|
|
17840
|
-
},
|
|
17841
|
-
|
|
17842
17825
|
/**
|
|
17843
17826
|
* If true, the dropdown bib is displayed.
|
|
17844
17827
|
*/
|
|
@@ -17882,15 +17865,6 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
17882
17865
|
reflect: true
|
|
17883
17866
|
},
|
|
17884
17867
|
|
|
17885
|
-
/**
|
|
17886
|
-
* Defines if there is a label preset.
|
|
17887
|
-
* @private
|
|
17888
|
-
*/
|
|
17889
|
-
labeled: {
|
|
17890
|
-
type: Boolean,
|
|
17891
|
-
reflect: true
|
|
17892
|
-
},
|
|
17893
|
-
|
|
17894
17868
|
/**
|
|
17895
17869
|
* Defines if the trigger should size based on the parent element providing the border UI.
|
|
17896
17870
|
* @private
|
|
@@ -17951,6 +17925,9 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
17951
17925
|
reflect: true
|
|
17952
17926
|
},
|
|
17953
17927
|
|
|
17928
|
+
/**
|
|
17929
|
+
* If declared, and a function is set, that function will execute when the slot content is updated.
|
|
17930
|
+
*/
|
|
17954
17931
|
onSlotChange: {
|
|
17955
17932
|
type: Function,
|
|
17956
17933
|
reflect: false
|
|
@@ -17965,14 +17942,6 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
17965
17942
|
reflect: true
|
|
17966
17943
|
},
|
|
17967
17944
|
|
|
17968
|
-
/**
|
|
17969
|
-
* If declared, will apply border-radius to trigger and default slots.
|
|
17970
|
-
*/
|
|
17971
|
-
rounded: {
|
|
17972
|
-
type: Boolean,
|
|
17973
|
-
reflect: true
|
|
17974
|
-
},
|
|
17975
|
-
|
|
17976
17945
|
/**
|
|
17977
17946
|
* @private
|
|
17978
17947
|
*/
|
|
@@ -17987,22 +17956,14 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
17987
17956
|
type: String || undefined,
|
|
17988
17957
|
attribute: false,
|
|
17989
17958
|
reflect: false
|
|
17990
|
-
},
|
|
17991
|
-
|
|
17992
|
-
/**
|
|
17993
|
-
* The value for the aria-autocomplete attribute of the trigger element.
|
|
17994
|
-
*/
|
|
17995
|
-
a11yAutocomplete: {
|
|
17996
|
-
type: String,
|
|
17997
|
-
attribute: false,
|
|
17998
17959
|
}
|
|
17999
17960
|
};
|
|
18000
17961
|
}
|
|
18001
17962
|
|
|
18002
17963
|
static get styles() {
|
|
18003
17964
|
return [
|
|
18004
|
-
colorCss$1$2,
|
|
18005
17965
|
tokensCss$1$2,
|
|
17966
|
+
colorCss$1$2,
|
|
18006
17967
|
|
|
18007
17968
|
// default layout
|
|
18008
17969
|
classicColorCss$1,
|
|
@@ -18442,10 +18403,7 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
18442
18403
|
id="bib"
|
|
18443
18404
|
shape="${this.shape}"
|
|
18444
18405
|
?data-show="${this.isPopoverVisible}"
|
|
18445
|
-
?isfullscreen="${this.isBibFullscreen}"
|
|
18446
|
-
?common="${this.common}"
|
|
18447
|
-
?rounded="${this.common || this.rounded}"
|
|
18448
|
-
?inset="${this.common || this.inset}">
|
|
18406
|
+
?isfullscreen="${this.isBibFullscreen}">
|
|
18449
18407
|
<div class="slotContent">
|
|
18450
18408
|
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
18451
18409
|
</div>
|
|
@@ -23067,19 +23025,19 @@ class AuroFormValidation {
|
|
|
23067
23025
|
{
|
|
23068
23026
|
check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
|
|
23069
23027
|
validity: 'tooShort',
|
|
23070
|
-
message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
|
|
23028
|
+
message: e => e.getAttribute('setCustomValidityTooShort') || e.setCustomValidity || ''
|
|
23071
23029
|
},
|
|
23072
23030
|
{
|
|
23073
23031
|
check: (e) => e.value?.length > e.maxLength,
|
|
23074
23032
|
validity: 'tooLong',
|
|
23075
|
-
message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
|
|
23033
|
+
message: e => e.getAttribute('setCustomValidityTooLong') || e.setCustomValidity || ''
|
|
23076
23034
|
}
|
|
23077
23035
|
],
|
|
23078
23036
|
pattern: [
|
|
23079
23037
|
{
|
|
23080
23038
|
check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
|
|
23081
23039
|
validity: 'patternMismatch',
|
|
23082
|
-
message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
|
|
23040
|
+
message: e => e.getAttribute('setCustomValidityPatternMismatch') || e.setCustomValidity || ''
|
|
23083
23041
|
}
|
|
23084
23042
|
]
|
|
23085
23043
|
},
|
|
@@ -23274,10 +23232,10 @@ class AuroFormValidation {
|
|
|
23274
23232
|
if (!hasValue && elem.required && elem.touched) {
|
|
23275
23233
|
elem.validity = 'valueMissing';
|
|
23276
23234
|
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
23277
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
23235
|
+
} else if (hasValue && this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
23278
23236
|
this.validateType(elem);
|
|
23279
23237
|
this.validateElementAttributes(elem);
|
|
23280
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
|
|
23238
|
+
} else if (hasValue && (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group'))) {
|
|
23281
23239
|
this.validateElementAttributes(elem);
|
|
23282
23240
|
}
|
|
23283
23241
|
}
|
|
@@ -24056,9 +24014,9 @@ class BaseInput extends AuroElement$2 {
|
|
|
24056
24014
|
if (!this.shadowRoot.contains(this.getActiveElement())) {
|
|
24057
24015
|
this.validation.validate(this);
|
|
24058
24016
|
}
|
|
24059
|
-
|
|
24060
|
-
this.notifyValueChanged();
|
|
24061
24017
|
}
|
|
24018
|
+
|
|
24019
|
+
this.notifyValueChanged();
|
|
24062
24020
|
}
|
|
24063
24021
|
|
|
24064
24022
|
if (changedProperties.has('error')) {
|
|
@@ -26019,7 +25977,7 @@ var buttonVersion = '11.0.0';
|
|
|
26019
25977
|
|
|
26020
25978
|
var colorCss$4 = 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)}`;
|
|
26021
25979
|
|
|
26022
|
-
var styleCss$5 = css
|
|
25980
|
+
var styleCss$5 = css`: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}`;
|
|
26023
25981
|
|
|
26024
25982
|
var tokensCss$5 = css`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
26025
25983
|
|
|
@@ -26296,7 +26254,7 @@ class AuroInput extends BaseInput {
|
|
|
26296
26254
|
*/
|
|
26297
26255
|
get commonInputClasses() {
|
|
26298
26256
|
return {
|
|
26299
|
-
'util_displayHiddenVisually': this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
|
|
26257
|
+
'util_displayHiddenVisually': (this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0) || ((!this.value || this.value.length === 0) && !this.hasFocus && (!this.placeholder || this.placeholder === '')),
|
|
26300
26258
|
};
|
|
26301
26259
|
}
|
|
26302
26260
|
|
|
@@ -26745,7 +26703,7 @@ var inputVersion = '4.2.0';
|
|
|
26745
26703
|
|
|
26746
26704
|
var colorCss$1 = 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)}`;
|
|
26747
26705
|
|
|
26748
|
-
var styleCss$1 = css
|
|
26706
|
+
var styleCss$1 = css`: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}`;
|
|
26749
26707
|
|
|
26750
26708
|
var tokensCss$1 = css`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
26751
26709
|
|
|
@@ -28384,6 +28342,18 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28384
28342
|
this.dispatchEvent(new CustomEvent('auroDatePicker-newSlotContent'));
|
|
28385
28343
|
}
|
|
28386
28344
|
|
|
28345
|
+
/**
|
|
28346
|
+
* Handle enter/space keydown on the reset button.
|
|
28347
|
+
* @private
|
|
28348
|
+
* @param {KeyboardEvent} event - The keydown event.
|
|
28349
|
+
*/
|
|
28350
|
+
handleKeydownReset(event) {
|
|
28351
|
+
if (event.key === 'Enter' || event.key === ' ') {
|
|
28352
|
+
this.resetValues();
|
|
28353
|
+
this.setHasFocus();
|
|
28354
|
+
}
|
|
28355
|
+
}
|
|
28356
|
+
|
|
28387
28357
|
/**
|
|
28388
28358
|
* Resets values without resetting validation.
|
|
28389
28359
|
*/
|
|
@@ -28753,6 +28723,10 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28753
28723
|
}
|
|
28754
28724
|
|
|
28755
28725
|
renderHtmlInputs() {
|
|
28726
|
+
const inputClasses = {
|
|
28727
|
+
"util_displayHiddenVisually": !this.hasValue && !this.hasFocus
|
|
28728
|
+
};
|
|
28729
|
+
|
|
28756
28730
|
return html$1`
|
|
28757
28731
|
<div class="inputContainer">
|
|
28758
28732
|
<${this.inputTag}
|
|
@@ -28760,7 +28734,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28760
28734
|
?onDark="${this.onDark}"
|
|
28761
28735
|
?required="${this.required}"
|
|
28762
28736
|
.format="${this.format}"
|
|
28763
|
-
.hideInputVisually="${!this.hasValue && !this.hasFocus}"
|
|
28764
28737
|
.max="${this.maxDate}"
|
|
28765
28738
|
.min="${this.minDate}"
|
|
28766
28739
|
id="${this.generateRandomString(12)}"
|
|
@@ -28768,7 +28741,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28768
28741
|
simple
|
|
28769
28742
|
bordered
|
|
28770
28743
|
noValidate
|
|
28771
|
-
class="dateFrom
|
|
28744
|
+
class="dateFrom ${classMap(inputClasses)}"
|
|
28772
28745
|
type="date"
|
|
28773
28746
|
part="input"
|
|
28774
28747
|
shape="box"
|
|
@@ -28795,13 +28768,12 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28795
28768
|
?onDark="${this.onDark}"
|
|
28796
28769
|
?required="${this.required}"
|
|
28797
28770
|
.format="${this.format}"
|
|
28798
|
-
.hideInputVisually="${!this.hasValue && !this.hasFocus}"
|
|
28799
28771
|
.max="${this.maxDate}"
|
|
28800
28772
|
.min="${this.minDate}"
|
|
28801
28773
|
.placeholder="${this.placeholderEndDate || this.placeholder}"
|
|
28802
28774
|
id="${this.generateRandomString(12)}"
|
|
28803
28775
|
bordered
|
|
28804
|
-
class="dateTo"
|
|
28776
|
+
class="dateTo ${classMap(inputClasses)}"
|
|
28805
28777
|
noValidate
|
|
28806
28778
|
type="date"
|
|
28807
28779
|
setCustomValidity="${this.setCustomValidity}"
|
|
@@ -28834,6 +28806,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28834
28806
|
<div class="${classMap(clearActionClassMap)}">
|
|
28835
28807
|
<${this.buttonTag}
|
|
28836
28808
|
@click="${this.resetValues}"
|
|
28809
|
+
@keydown="${this.handleKeydownReset}"
|
|
28837
28810
|
?onDark="${this.onDark}"
|
|
28838
28811
|
aria-label="${i18n(this.lang, 'clearInput')}"
|
|
28839
28812
|
class="notificationBtn clearBtn"
|