@aurodesignsystem-dev/auro-formkit 0.0.0-pr757.1 → 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 +79 -96
- package/components/combobox/demo/index.min.js +79 -96
- package/components/combobox/dist/index.js +43 -85
- package/components/combobox/dist/registered.js +43 -85
- package/components/counter/demo/api.md +1 -1
- package/components/counter/demo/api.min.js +35 -77
- package/components/counter/demo/index.min.js +35 -77
- package/components/counter/dist/auro-counter-group.d.ts +1 -1
- package/components/counter/dist/index.js +35 -77
- package/components/counter/dist/registered.js +35 -77
- package/components/datepicker/demo/api.min.js +64 -91
- package/components/datepicker/demo/index.min.js +64 -91
- package/components/datepicker/dist/auro-datepicker.d.ts +6 -0
- package/components/datepicker/dist/index.js +64 -91
- package/components/datepicker/dist/registered.js +64 -91
- 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 +11 -11
- package/components/input/demo/index.min.js +11 -11
- package/components/input/dist/index.js +11 -11
- package/components/input/dist/registered.js +11 -11
- 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
|
@@ -571,19 +571,19 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
571
571
|
{
|
|
572
572
|
check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
|
|
573
573
|
validity: 'tooShort',
|
|
574
|
-
message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
|
|
574
|
+
message: e => e.getAttribute('setCustomValidityTooShort') || e.setCustomValidity || ''
|
|
575
575
|
},
|
|
576
576
|
{
|
|
577
577
|
check: (e) => e.value?.length > e.maxLength,
|
|
578
578
|
validity: 'tooLong',
|
|
579
|
-
message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
|
|
579
|
+
message: e => e.getAttribute('setCustomValidityTooLong') || e.setCustomValidity || ''
|
|
580
580
|
}
|
|
581
581
|
],
|
|
582
582
|
pattern: [
|
|
583
583
|
{
|
|
584
584
|
check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
|
|
585
585
|
validity: 'patternMismatch',
|
|
586
|
-
message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
|
|
586
|
+
message: e => e.getAttribute('setCustomValidityPatternMismatch') || e.setCustomValidity || ''
|
|
587
587
|
}
|
|
588
588
|
]
|
|
589
589
|
},
|
|
@@ -778,10 +778,10 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
778
778
|
if (!hasValue && elem.required && elem.touched) {
|
|
779
779
|
elem.validity = 'valueMissing';
|
|
780
780
|
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
781
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
781
|
+
} else if (hasValue && this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
782
782
|
this.validateType(elem);
|
|
783
783
|
this.validateElementAttributes(elem);
|
|
784
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
|
|
784
|
+
} else if (hasValue && (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group'))) {
|
|
785
785
|
this.validateElementAttributes(elem);
|
|
786
786
|
}
|
|
787
787
|
}
|
|
@@ -1286,7 +1286,7 @@ class UtilitiesCalendarRender {
|
|
|
1286
1286
|
}
|
|
1287
1287
|
}
|
|
1288
1288
|
|
|
1289
|
-
var styleCss$e = i$2`.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){
|
|
1289
|
+
var styleCss$e = i$2`.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}}`;
|
|
1290
1290
|
|
|
1291
1291
|
var colorCss$d = i$2`.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)}`;
|
|
1292
1292
|
|
|
@@ -1296,7 +1296,7 @@ var shapeSizeCss$2 = i$2`.wrapper{overflow:hidden}.shape-classic-xl,.shape-class
|
|
|
1296
1296
|
|
|
1297
1297
|
var classicLayoutColor = i$2``;
|
|
1298
1298
|
|
|
1299
|
-
var snowflakeStyle = i$2`.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}`;
|
|
1299
|
+
var snowflakeStyle = i$2`.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}`;
|
|
1300
1300
|
|
|
1301
1301
|
var snowflakeColors = i$2`: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}`;
|
|
1302
1302
|
|
|
@@ -12781,7 +12781,7 @@ class AuroBibtemplate extends i {
|
|
|
12781
12781
|
<div id="bibTemplate" part="bibtemplate">
|
|
12782
12782
|
${this.isFullscreen ? u$3`
|
|
12783
12783
|
<div id="headerContainer">
|
|
12784
|
-
<${this.buttonTag} id="closeButton" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
12784
|
+
<${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
12785
12785
|
<${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
|
|
12786
12786
|
</${this.buttonTag}>
|
|
12787
12787
|
<${this.headerTag} display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
@@ -17297,7 +17297,7 @@ var dropdownVersion$1 = '3.0.0';
|
|
|
17297
17297
|
|
|
17298
17298
|
var shapeSizeCss$1 = i$2`.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}`;
|
|
17299
17299
|
|
|
17300
|
-
var colorCss$1$2 = i$2`: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)}`;
|
|
17300
|
+
var colorCss$1$2 = i$2`: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)}`;
|
|
17301
17301
|
|
|
17302
17302
|
var classicColorCss$1 = i$2``;
|
|
17303
17303
|
|
|
@@ -17309,7 +17309,7 @@ var styleSnowflakeCss = i$2`:host{display:block}.wrapper{display:flex;flex:1;fle
|
|
|
17309
17309
|
|
|
17310
17310
|
var colorCss$5 = i$2`: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)}`;
|
|
17311
17311
|
|
|
17312
|
-
var styleCss$6 = i$2
|
|
17312
|
+
var styleCss$6 = i$2`: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}`;
|
|
17313
17313
|
|
|
17314
17314
|
var tokensCss$6 = i$2`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
17315
17315
|
|
|
@@ -17614,10 +17614,8 @@ let AuroElement$4 = class AuroElement extends i {
|
|
|
17614
17614
|
// See LICENSE in the project root for license information.
|
|
17615
17615
|
|
|
17616
17616
|
|
|
17617
|
-
|
|
17618
|
-
* @attr { Boolean } disableEventShow - If declared, the dropdown will only show by calling the API .show() public method.
|
|
17617
|
+
/*
|
|
17619
17618
|
* @slot - Default slot for the popover content.
|
|
17620
|
-
* @slot label - Defines the content of the label.
|
|
17621
17619
|
* @slot helpText - Defines the content of the helpText.
|
|
17622
17620
|
* @slot trigger - Defines the content of the trigger.
|
|
17623
17621
|
* @csspart trigger - The trigger content container.
|
|
@@ -17636,18 +17634,22 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
17636
17634
|
this.matchWidth = false;
|
|
17637
17635
|
this.noHideOnThisFocusLoss = false;
|
|
17638
17636
|
|
|
17639
|
-
this.errorMessage =
|
|
17637
|
+
this.errorMessage = undefined; // TODO - check with Doug if there is still more to do here
|
|
17640
17638
|
|
|
17641
17639
|
// Layout Config
|
|
17642
|
-
this.layout =
|
|
17643
|
-
this.shape =
|
|
17644
|
-
this.size =
|
|
17640
|
+
this.layout = undefined;
|
|
17641
|
+
this.shape = undefined;
|
|
17642
|
+
this.size = undefined;
|
|
17645
17643
|
|
|
17646
17644
|
this.parentBorder = false;
|
|
17647
17645
|
|
|
17648
17646
|
this.privateDefaults();
|
|
17649
17647
|
}
|
|
17650
17648
|
|
|
17649
|
+
/**
|
|
17650
|
+
* @private
|
|
17651
|
+
* @returns {object} Class definition for the wrapper element.
|
|
17652
|
+
*/
|
|
17651
17653
|
get commonWrapperClasses() {
|
|
17652
17654
|
return {
|
|
17653
17655
|
'trigger': true,
|
|
@@ -17667,12 +17669,8 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
17667
17669
|
this.disabled = false;
|
|
17668
17670
|
this.disableFocusTrap = false;
|
|
17669
17671
|
this.error = false;
|
|
17670
|
-
this.inset = false;
|
|
17671
|
-
this.rounded = false;
|
|
17672
17672
|
this.tabIndex = 0;
|
|
17673
17673
|
this.noToggle = false;
|
|
17674
|
-
this.a11yAutocomplete = 'none';
|
|
17675
|
-
this.labeled = true;
|
|
17676
17674
|
this.a11yRole = 'button';
|
|
17677
17675
|
this.onDark = false;
|
|
17678
17676
|
this.showTriggerBorders = true;
|
|
@@ -17794,26 +17792,27 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
17794
17792
|
},
|
|
17795
17793
|
|
|
17796
17794
|
/**
|
|
17797
|
-
* If declared,
|
|
17795
|
+
* If declared, the dropdown will only show by calling the API .show() public method.
|
|
17796
|
+
* @default false
|
|
17798
17797
|
*/
|
|
17799
|
-
|
|
17798
|
+
disableEventShow: {
|
|
17800
17799
|
type: Boolean,
|
|
17801
17800
|
reflect: true
|
|
17802
17801
|
},
|
|
17803
17802
|
|
|
17804
17803
|
/**
|
|
17805
|
-
* If declared,
|
|
17806
|
-
* @attr {Boolean} chevron
|
|
17804
|
+
* If declared, applies a border around the trigger slot.
|
|
17807
17805
|
*/
|
|
17808
|
-
|
|
17806
|
+
simple: {
|
|
17809
17807
|
type: Boolean,
|
|
17810
17808
|
reflect: true
|
|
17811
17809
|
},
|
|
17812
17810
|
|
|
17813
17811
|
/**
|
|
17814
|
-
* If declared, the dropdown
|
|
17812
|
+
* If declared, the dropdown displays a chevron on the right.
|
|
17813
|
+
* @attr {Boolean} chevron
|
|
17815
17814
|
*/
|
|
17816
|
-
|
|
17815
|
+
chevron: {
|
|
17817
17816
|
type: Boolean,
|
|
17818
17817
|
reflect: true
|
|
17819
17818
|
},
|
|
@@ -17827,7 +17826,7 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
17827
17826
|
},
|
|
17828
17827
|
|
|
17829
17828
|
/**
|
|
17830
|
-
* If
|
|
17829
|
+
* If declared, the focus trap inside of bib will be turned off.
|
|
17831
17830
|
*/
|
|
17832
17831
|
disableFocusTrap: {
|
|
17833
17832
|
type: Boolean,
|
|
@@ -17874,22 +17873,6 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
17874
17873
|
reflect: true
|
|
17875
17874
|
},
|
|
17876
17875
|
|
|
17877
|
-
/**
|
|
17878
|
-
* Makes the trigger to be full width of its parent container.
|
|
17879
|
-
*/
|
|
17880
|
-
fluid: {
|
|
17881
|
-
type: Boolean,
|
|
17882
|
-
reflect: true
|
|
17883
|
-
},
|
|
17884
|
-
|
|
17885
|
-
/**
|
|
17886
|
-
* If declared, will apply padding around trigger slot content.
|
|
17887
|
-
*/
|
|
17888
|
-
inset: {
|
|
17889
|
-
type: Boolean,
|
|
17890
|
-
reflect: true
|
|
17891
|
-
},
|
|
17892
|
-
|
|
17893
17876
|
/**
|
|
17894
17877
|
* If true, the dropdown bib is displayed.
|
|
17895
17878
|
*/
|
|
@@ -17933,15 +17916,6 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
17933
17916
|
reflect: true
|
|
17934
17917
|
},
|
|
17935
17918
|
|
|
17936
|
-
/**
|
|
17937
|
-
* Defines if there is a label preset.
|
|
17938
|
-
* @private
|
|
17939
|
-
*/
|
|
17940
|
-
labeled: {
|
|
17941
|
-
type: Boolean,
|
|
17942
|
-
reflect: true
|
|
17943
|
-
},
|
|
17944
|
-
|
|
17945
17919
|
/**
|
|
17946
17920
|
* Defines if the trigger should size based on the parent element providing the border UI.
|
|
17947
17921
|
* @private
|
|
@@ -18002,6 +17976,9 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
18002
17976
|
reflect: true
|
|
18003
17977
|
},
|
|
18004
17978
|
|
|
17979
|
+
/**
|
|
17980
|
+
* If declared, and a function is set, that function will execute when the slot content is updated.
|
|
17981
|
+
*/
|
|
18005
17982
|
onSlotChange: {
|
|
18006
17983
|
type: Function,
|
|
18007
17984
|
reflect: false
|
|
@@ -18016,14 +17993,6 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
18016
17993
|
reflect: true
|
|
18017
17994
|
},
|
|
18018
17995
|
|
|
18019
|
-
/**
|
|
18020
|
-
* If declared, will apply border-radius to trigger and default slots.
|
|
18021
|
-
*/
|
|
18022
|
-
rounded: {
|
|
18023
|
-
type: Boolean,
|
|
18024
|
-
reflect: true
|
|
18025
|
-
},
|
|
18026
|
-
|
|
18027
17996
|
/**
|
|
18028
17997
|
* @private
|
|
18029
17998
|
*/
|
|
@@ -18038,22 +18007,14 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
18038
18007
|
type: String || undefined,
|
|
18039
18008
|
attribute: false,
|
|
18040
18009
|
reflect: false
|
|
18041
|
-
},
|
|
18042
|
-
|
|
18043
|
-
/**
|
|
18044
|
-
* The value for the aria-autocomplete attribute of the trigger element.
|
|
18045
|
-
*/
|
|
18046
|
-
a11yAutocomplete: {
|
|
18047
|
-
type: String,
|
|
18048
|
-
attribute: false,
|
|
18049
18010
|
}
|
|
18050
18011
|
};
|
|
18051
18012
|
}
|
|
18052
18013
|
|
|
18053
18014
|
static get styles() {
|
|
18054
18015
|
return [
|
|
18055
|
-
colorCss$1$2,
|
|
18056
18016
|
tokensCss$1$2,
|
|
18017
|
+
colorCss$1$2,
|
|
18057
18018
|
|
|
18058
18019
|
// default layout
|
|
18059
18020
|
classicColorCss$1,
|
|
@@ -18493,10 +18454,7 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
18493
18454
|
id="bib"
|
|
18494
18455
|
shape="${this.shape}"
|
|
18495
18456
|
?data-show="${this.isPopoverVisible}"
|
|
18496
|
-
?isfullscreen="${this.isBibFullscreen}"
|
|
18497
|
-
?common="${this.common}"
|
|
18498
|
-
?rounded="${this.common || this.rounded}"
|
|
18499
|
-
?inset="${this.common || this.inset}">
|
|
18457
|
+
?isfullscreen="${this.isBibFullscreen}">
|
|
18500
18458
|
<div class="slotContent">
|
|
18501
18459
|
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
18502
18460
|
</div>
|
|
@@ -18604,11 +18562,11 @@ var styleCss$4 = i$2`.util_displayInline{display:inline}.util_displayInlineBlock
|
|
|
18604
18562
|
|
|
18605
18563
|
var styleDefaultCss = i$2`.layoutDefault .typeIcon,:host(:not([layout])) .typeIcon{display:flex;flex-direction:row;align-items:center}.layoutDefault .typeIcon [auro-icon],:host(:not([layout])) .typeIcon [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-100, 0.5rem)}.layoutDefault .notificationIcons,:host(:not([layout])) .notificationIcons{display:flex;flex-direction:row;padding-right:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .typeIcon,:host(:not([layout])[bordered]) .typeIcon{padding-left:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .notificationIcons,:host(:not([layout])[bordered]) .notificationIcons{align-items:center}:host([class=layoutDefault][bordered]) .notification:not(:first-of-type),:host(:not([layout])[bordered]) .notification:not(:first-of-type){margin-left:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .alertNotification,:host(:not([layout])[bordered]) .alertNotification{width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem))}:host([class=layoutDefault][bordered]) .passwordBtn,:host(:not([layout])[bordered]) .passwordBtn{width:calc(var(--ds-size-300, 1.5rem));height:calc(var(--ds-size-300, 1.5rem))}:host([class=layoutDefault][bordered]) .notificationBtn,:host(:not([layout])[bordered]) .notificationBtn{display:block;width:var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);padding:0;border:0;background:unset;cursor:pointer}:host([class=layoutDefault][bordered]) .notificationBtn [auro-icon],:host(:not([layout])[bordered]) .notificationBtn [auro-icon]{display:block;height:var(--ds-size-300, 1.5rem);--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([class=layoutDefault][bordered]) .notificationBtn [auro-icon][hidden],:host(:not([layout])[bordered]) .notificationBtn [auro-icon][hidden]{display:none}:host([class=layoutDefault]:not([bordered])) .typeIcon,:host([class=layoutDefault]:not([bordered])) .notificationIcons,:host(:not([layout]):not([bordered])) .typeIcon,:host(:not([layout]):not([bordered])) .notificationIcons{align-items:flex-end;padding-bottom:var(--ds-size-50, 0.25rem)}:host([class=layoutDefault]:not([bordered])) .clearBtn,:host(:not([layout]):not([bordered])) .clearBtn{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);overflow:hidden;width:0;opacity:0}.layoutDefault .wrapper:hover .clearBtn,.layoutDefault .wrapper:focus-within .clearBtn,:host(:not([layout])) .wrapper:hover .clearBtn,:host(:not([layout])) .wrapper:focus-within .clearBtn{width:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));opacity:1}:host([class=layoutDefault]:focus-within[type=password]) .notificationIcons[hasValue] .alertNotification,:host(:not([layout]):focus-within[type=password]) .notificationIcons[hasValue] .alertNotification{overflow:hidden;width:0;height:0;padding:0;margin:0;visibility:hidden}.layoutDefault input,:host(:not([layout])) input{border:unset}.layoutDefault .wrapper,:host(:not([layout])) .wrapper{position:relative;overflow:hidden;border-style:solid}:host([class=layoutDefault]:not([bordered],[borderless])) .wrapper,:host(:not([layout]):not([bordered],[borderless])) .wrapper{border-width:1px 0}:host([class=layoutDefault][bordered]) .wrapper,:host(:not([layout])[bordered]) .wrapper{border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}:host([class=layoutDefault]:not([borderless])) .wrapper:focus-within:before,:host(:not([layout]):not([borderless])) .wrapper:focus-within:before{position:absolute;display:block;border-bottom-width:1px;border-bottom-style:solid;content:"";inset:0;pointer-events:none}:host([class=layoutDefault][validity]:not([validity=valid])) .wrapper:before,:host(:not([layout])[validity]:not([validity=valid])) .wrapper:before{border-bottom:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.layoutDefault :host,:host(:not([layout])) :host{position:relative;display:block}.layoutDefault .wrapper,:host(:not([layout])) .wrapper{display:flex;flex-direction:row}.layoutDefault .main,:host(:not([layout])) .main{display:flex;flex-direction:row;position:relative;flex:1}`;
|
|
18606
18564
|
|
|
18607
|
-
var colorBaseCss = i$2`.wrapper{border-color:var(--ds-auro-input-border-color);background-color:var(--ds-auro-input-background-color);color:var(--ds-auro-input-text-color)}.wrapper label{color:var(--ds-auro-input-label-text-color)}.wrapper input{caret-color:var(--ds-auro-input-caret-color);color:var(--ds-auro-input-text-color)}.wrapper input::placeholder{color:var(--ds-auro-input-placeholder-text-color)}.wrapper input:focus::placeholder{color:var(--ds-auro-input-placeholder-text-color)}.wrapper .displayValue{background-color:var(--ds-auro-input-background-color)}:host(:not([ondark])) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host(:is([validity]:not([validity=valid]))) .wrapper{--ds-auro-input-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([ondark]:is([validity]:not([validity=valid]))) .wrapper{--ds-auro-input-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([ondark])[disabled]){--ds-auro-input-border-color: var(--ds-basic-color-border-subtle, #dddddd);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([ondark][disabled]){--ds-auro-input-border-color: var(--ds-advanced-color-button-primary-border-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}`;
|
|
18565
|
+
var colorBaseCss = i$2`.wrapper{border-color:var(--ds-auro-input-border-color);background-color:var(--ds-auro-input-background-color);color:var(--ds-auro-input-text-color)}.wrapper label{color:var(--ds-auro-input-label-text-color)}.wrapper input{caret-color:var(--ds-auro-input-caret-color);color:var(--ds-auro-input-text-color)}.wrapper input::placeholder{color:var(--ds-auro-input-placeholder-text-color)}.wrapper input:focus::placeholder{color:var(--ds-auro-input-placeholder-text-color)}.wrapper .displayValue{background-color:var(--ds-auro-input-background-color)}:host(:not([ondark])) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host(:is([validity]:not([validity=valid]))) .wrapper{--ds-auro-input-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([ondark]:is([validity]:not([validity=valid]))) .wrapper{--ds-auro-input-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([ondark])[disabled]){--ds-auro-input-border-color: var(--ds-basic-color-border-subtle, #dddddd);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([ondark][disabled]){--ds-auro-input-border-color: var(--ds-advanced-color-button-primary-border-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}`;
|
|
18608
18566
|
|
|
18609
18567
|
var tokensCss$4 = i$2`:host(:not([ondark])){--ds-auro-input-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-input-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-input-outline-color: transparent}:host([ondark]){--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-input-outline-color: transparent}`;
|
|
18610
18568
|
|
|
18611
|
-
var classicStyleCss = i$2`.layout-classic{display:flex;flex-direction:row;box-shadow:inset 0 0 0 1px var(--ds-auro-input-outline-color)}.layout-classic .mainContent{position:relative;display:flex;flex:1;flex-direction:column;justify-content:center;cursor:text}.layout-classic .mainContent label{cursor:text;font-size:var(--ds-text-body-size-xs);line-height:20px;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}.layout-classic .mainContent input{height:auto;font-size:var(--ds-basic-text-body-default-font-size, 16px);line-height:var(--ds-basic-text-body-default-line-height, 24px);transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}.layout-classic .mainContent:has(input.util_displayHiddenVisually) label{padding-top:0;font-size:var(--ds-text-body-size-default, 1rem);justify-self:flex-start;line-height:var(--ds-text-body-size-default)}.layout-classic .mainContent:has(input.util_displayHiddenVisually) input{height:0;padding-bottom:0;line-height:0}.layout-classic .accents{padding:
|
|
18569
|
+
var classicStyleCss = i$2`.layout-classic{display:flex;flex-direction:row;box-shadow:inset 0 0 0 1px var(--ds-auro-input-outline-color)}.layout-classic .mainContent{position:relative;display:flex;flex:1;flex-direction:column;justify-content:center;cursor:text}.layout-classic .mainContent label{cursor:text;font-size:var(--ds-text-body-size-xs);line-height:20px;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}.layout-classic .mainContent input{height:auto;font-size:var(--ds-basic-text-body-default-font-size, 16px);line-height:var(--ds-basic-text-body-default-line-height, 24px);transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}.layout-classic .mainContent:has(input.util_displayHiddenVisually) label{padding-top:0;font-size:var(--ds-text-body-size-default, 1rem);justify-self:flex-start;line-height:var(--ds-text-body-size-default)}.layout-classic .mainContent:has(input.util_displayHiddenVisually) input{height:0;padding-bottom:0;line-height:0}.layout-classic .accents .typeIcon>*{margin-left:8px}.layout-classic .accents.left{padding-right:8px}.layout-classic .accents.right{padding-left:8px}.layout-classic .accents.right .notification{margin-right:8px}.layout-classic.withValue{justify-content:flex-start}.layout-classic:focus-within{justify-content:flex-start}.layout-classic:focus-within .alertNotification{display:none}`;
|
|
18612
18570
|
|
|
18613
18571
|
var classicColorCss = i$2`.layout-classic label{color:var(--ds-auro-input-label-text-color)}.layout-classic:focus-within{--ds-auro-input-outline-color: var(--ds-auro-input-border-color)}:host(:not([ondark])) .layout-classic:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-brand, #00274a);--ds-auro-input-outline-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .layout-classic:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-outline-color: var(--ds-basic-color-border-inverse, #ffffff)}:host([layout*=classic]:not([ondark]):is([validity]:not([validity=valid]))){--ds-auro-input-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-input-outline-color: var(--ds-basic-color-status-error, #e31f26)}:host([layout*=classic]:not([ondark]):is([validity]:not([validity=valid]))) .layout-classic:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-input-outline-color: var(--ds-basic-color-status-error, #e31f26)}:host([layout*=classic][ondark]:is([validity]:not([validity=valid]))){--ds-auro-input-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-input-outline-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host([layout*=classic][ondark]:is([validity]:not([validity=valid]))) .layout-classic:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-input-outline-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}`;
|
|
18614
18572
|
|
|
@@ -23131,19 +23089,19 @@ class AuroFormValidation {
|
|
|
23131
23089
|
{
|
|
23132
23090
|
check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
|
|
23133
23091
|
validity: 'tooShort',
|
|
23134
|
-
message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
|
|
23092
|
+
message: e => e.getAttribute('setCustomValidityTooShort') || e.setCustomValidity || ''
|
|
23135
23093
|
},
|
|
23136
23094
|
{
|
|
23137
23095
|
check: (e) => e.value?.length > e.maxLength,
|
|
23138
23096
|
validity: 'tooLong',
|
|
23139
|
-
message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
|
|
23097
|
+
message: e => e.getAttribute('setCustomValidityTooLong') || e.setCustomValidity || ''
|
|
23140
23098
|
}
|
|
23141
23099
|
],
|
|
23142
23100
|
pattern: [
|
|
23143
23101
|
{
|
|
23144
23102
|
check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
|
|
23145
23103
|
validity: 'patternMismatch',
|
|
23146
|
-
message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
|
|
23104
|
+
message: e => e.getAttribute('setCustomValidityPatternMismatch') || e.setCustomValidity || ''
|
|
23147
23105
|
}
|
|
23148
23106
|
]
|
|
23149
23107
|
},
|
|
@@ -23338,10 +23296,10 @@ class AuroFormValidation {
|
|
|
23338
23296
|
if (!hasValue && elem.required && elem.touched) {
|
|
23339
23297
|
elem.validity = 'valueMissing';
|
|
23340
23298
|
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
23341
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
23299
|
+
} else if (hasValue && this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
23342
23300
|
this.validateType(elem);
|
|
23343
23301
|
this.validateElementAttributes(elem);
|
|
23344
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
|
|
23302
|
+
} else if (hasValue && (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group'))) {
|
|
23345
23303
|
this.validateElementAttributes(elem);
|
|
23346
23304
|
}
|
|
23347
23305
|
}
|
|
@@ -24120,9 +24078,9 @@ class BaseInput extends AuroElement$2 {
|
|
|
24120
24078
|
if (!this.shadowRoot.contains(this.getActiveElement())) {
|
|
24121
24079
|
this.validation.validate(this);
|
|
24122
24080
|
}
|
|
24123
|
-
|
|
24124
|
-
this.notifyValueChanged();
|
|
24125
24081
|
}
|
|
24082
|
+
|
|
24083
|
+
this.notifyValueChanged();
|
|
24126
24084
|
}
|
|
24127
24085
|
|
|
24128
24086
|
if (changedProperties.has('error')) {
|
|
@@ -26083,7 +26041,7 @@ var buttonVersion = '11.0.0';
|
|
|
26083
26041
|
|
|
26084
26042
|
var colorCss$4 = i$2`: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)}`;
|
|
26085
26043
|
|
|
26086
|
-
var styleCss$5 = i$2
|
|
26044
|
+
var styleCss$5 = i$2`: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}`;
|
|
26087
26045
|
|
|
26088
26046
|
var tokensCss$5 = i$2`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
26089
26047
|
|
|
@@ -26360,7 +26318,7 @@ class AuroInput extends BaseInput {
|
|
|
26360
26318
|
*/
|
|
26361
26319
|
get commonInputClasses() {
|
|
26362
26320
|
return {
|
|
26363
|
-
'util_displayHiddenVisually': this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
|
|
26321
|
+
'util_displayHiddenVisually': (this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0) || ((!this.value || this.value.length === 0) && !this.hasFocus && (!this.placeholder || this.placeholder === '')),
|
|
26364
26322
|
};
|
|
26365
26323
|
}
|
|
26366
26324
|
|
|
@@ -26809,7 +26767,7 @@ var inputVersion = '4.2.0';
|
|
|
26809
26767
|
|
|
26810
26768
|
var colorCss$1 = i$2`: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)}`;
|
|
26811
26769
|
|
|
26812
|
-
var styleCss$1 = i$2
|
|
26770
|
+
var styleCss$1 = i$2`: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}`;
|
|
26813
26771
|
|
|
26814
26772
|
var tokensCss$1 = i$2`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
26815
26773
|
|
|
@@ -28448,6 +28406,18 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28448
28406
|
this.dispatchEvent(new CustomEvent('auroDatePicker-newSlotContent'));
|
|
28449
28407
|
}
|
|
28450
28408
|
|
|
28409
|
+
/**
|
|
28410
|
+
* Handle enter/space keydown on the reset button.
|
|
28411
|
+
* @private
|
|
28412
|
+
* @param {KeyboardEvent} event - The keydown event.
|
|
28413
|
+
*/
|
|
28414
|
+
handleKeydownReset(event) {
|
|
28415
|
+
if (event.key === 'Enter' || event.key === ' ') {
|
|
28416
|
+
this.resetValues();
|
|
28417
|
+
this.setHasFocus();
|
|
28418
|
+
}
|
|
28419
|
+
}
|
|
28420
|
+
|
|
28451
28421
|
/**
|
|
28452
28422
|
* Resets values without resetting validation.
|
|
28453
28423
|
*/
|
|
@@ -28817,6 +28787,10 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28817
28787
|
}
|
|
28818
28788
|
|
|
28819
28789
|
renderHtmlInputs() {
|
|
28790
|
+
const inputClasses = {
|
|
28791
|
+
"util_displayHiddenVisually": !this.hasValue && !this.hasFocus
|
|
28792
|
+
};
|
|
28793
|
+
|
|
28820
28794
|
return u$3`
|
|
28821
28795
|
<div class="inputContainer">
|
|
28822
28796
|
<${this.inputTag}
|
|
@@ -28824,7 +28798,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28824
28798
|
?onDark="${this.onDark}"
|
|
28825
28799
|
?required="${this.required}"
|
|
28826
28800
|
.format="${this.format}"
|
|
28827
|
-
.hideInputVisually="${!this.hasValue && !this.hasFocus}"
|
|
28828
28801
|
.max="${this.maxDate}"
|
|
28829
28802
|
.min="${this.minDate}"
|
|
28830
28803
|
id="${this.generateRandomString(12)}"
|
|
@@ -28832,7 +28805,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28832
28805
|
simple
|
|
28833
28806
|
bordered
|
|
28834
28807
|
noValidate
|
|
28835
|
-
class="dateFrom
|
|
28808
|
+
class="dateFrom ${e$2(inputClasses)}"
|
|
28836
28809
|
type="date"
|
|
28837
28810
|
part="input"
|
|
28838
28811
|
shape="box"
|
|
@@ -28859,13 +28832,12 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28859
28832
|
?onDark="${this.onDark}"
|
|
28860
28833
|
?required="${this.required}"
|
|
28861
28834
|
.format="${this.format}"
|
|
28862
|
-
.hideInputVisually="${!this.hasValue && !this.hasFocus}"
|
|
28863
28835
|
.max="${this.maxDate}"
|
|
28864
28836
|
.min="${this.minDate}"
|
|
28865
28837
|
.placeholder="${this.placeholderEndDate || this.placeholder}"
|
|
28866
28838
|
id="${this.generateRandomString(12)}"
|
|
28867
28839
|
bordered
|
|
28868
|
-
class="dateTo"
|
|
28840
|
+
class="dateTo ${e$2(inputClasses)}"
|
|
28869
28841
|
noValidate
|
|
28870
28842
|
type="date"
|
|
28871
28843
|
setCustomValidity="${this.setCustomValidity}"
|
|
@@ -28898,6 +28870,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28898
28870
|
<div class="${e$2(clearActionClassMap)}">
|
|
28899
28871
|
<${this.buttonTag}
|
|
28900
28872
|
@click="${this.resetValues}"
|
|
28873
|
+
@keydown="${this.handleKeydownReset}"
|
|
28901
28874
|
?onDark="${this.onDark}"
|
|
28902
28875
|
aria-label="${i18n(this.lang, 'clearInput')}"
|
|
28903
28876
|
class="notificationBtn clearBtn"
|
|
@@ -475,6 +475,12 @@ export class AuroDatePicker extends AuroElement {
|
|
|
475
475
|
* @returns {void}
|
|
476
476
|
*/
|
|
477
477
|
private pushSlotContent;
|
|
478
|
+
/**
|
|
479
|
+
* Handle enter/space keydown on the reset button.
|
|
480
|
+
* @private
|
|
481
|
+
* @param {KeyboardEvent} event - The keydown event.
|
|
482
|
+
*/
|
|
483
|
+
private handleKeydownReset;
|
|
478
484
|
/**
|
|
479
485
|
* Resets values without resetting validation.
|
|
480
486
|
*/
|