@aurodesignsystem-dev/auro-formkit 0.0.0-pr849.0 → 0.0.0-pr866.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/checkbox/demo/api.min.js +2 -2
- package/components/checkbox/demo/index.min.js +2 -2
- package/components/checkbox/dist/index.js +2 -2
- package/components/checkbox/dist/registered.js +2 -2
- package/components/combobox/demo/api.min.js +10 -9
- package/components/combobox/demo/index.min.js +10 -9
- package/components/combobox/dist/index.js +10 -9
- package/components/combobox/dist/registered.js +10 -9
- package/components/counter/demo/api.min.js +2 -2
- package/components/counter/demo/index.min.js +2 -2
- package/components/counter/dist/index.js +2 -2
- package/components/counter/dist/registered.js +2 -2
- package/components/datepicker/demo/api.min.js +36 -23
- package/components/datepicker/demo/index.min.js +36 -23
- package/components/datepicker/dist/index.js +36 -23
- package/components/datepicker/dist/registered.js +36 -23
- package/components/input/demo/api.md +2 -0
- package/components/input/demo/api.min.js +7 -6
- package/components/input/demo/index.min.js +7 -6
- package/components/input/dist/auro-input.d.ts +1 -1
- package/components/input/dist/index.js +7 -6
- package/components/input/dist/registered.js +7 -6
- package/components/radio/demo/api.min.js +2 -2
- package/components/radio/demo/index.min.js +2 -2
- package/components/radio/dist/index.js +2 -2
- package/components/radio/dist/registered.js +2 -2
- package/components/select/demo/api.min.js +2 -2
- package/components/select/demo/index.min.js +2 -2
- package/components/select/dist/index.js +2 -2
- package/components/select/dist/registered.js +2 -2
- package/package.json +1 -1
|
@@ -1060,9 +1060,9 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
1060
1060
|
elem.validity = this.auroInputElements[0].validity;
|
|
1061
1061
|
elem.errorMessage = this.auroInputElements[0].errorMessage;
|
|
1062
1062
|
|
|
1063
|
+
// multiple input in one components (datepicker)
|
|
1063
1064
|
// combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
|
|
1064
|
-
|
|
1065
|
-
if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
|
|
1065
|
+
if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
|
|
1066
1066
|
elem.validity = this.auroInputElements[1].validity;
|
|
1067
1067
|
elem.errorMessage = this.auroInputElements[1].errorMessage;
|
|
1068
1068
|
}
|
|
@@ -18913,11 +18913,11 @@ var styleCss$4 = i$2`.util_displayInline{display:inline}.util_displayInlineBlock
|
|
|
18913
18913
|
|
|
18914
18914
|
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}`;
|
|
18915
18915
|
|
|
18916
|
-
var colorBaseCss = i$2`.wrapper{border-color:var(--ds-auro-input-border-color);background-color:var(--ds-auro-input-
|
|
18916
|
+
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)}: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-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-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}`;
|
|
18917
18917
|
|
|
18918
|
-
var tokensCss$4 = i$2`:host(:not([ondark])){--ds-auro-input-border-color: var(--ds-basic-color-border-bold, #585e67);--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-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-muted, #ccd2db);--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}`;
|
|
18918
|
+
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-muted, #ccd2db);--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}`;
|
|
18919
18919
|
|
|
18920
|
-
var classicStyleCss = i$2`:host([layout*=classic]) .wrapper{display:flex;flex-direction:row;
|
|
18920
|
+
var classicStyleCss = i$2`:host([layout*=classic]) .wrapper{display:flex;flex-direction:row;box-shadow:inset 0 0 0 1px var(--ds-auro-input-outline-color)}:host([layout*=classic]) .mainContent{position:relative;display:flex;overflow:hidden;flex:1;flex-direction:column;justify-content:center;cursor:text}:host([layout*=classic]) .mainContent label{overflow:hidden;cursor:text;padding-block:var(--ds-size-50, 0.25rem);text-overflow:ellipsis;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:nowrap}:host([layout*=classic]) .mainContent input{height:auto;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}:host([layout*=classic]) .mainContent:has(input.util_displayHiddenVisually) label{justify-self:flex-start}:host([layout*=classic]) .mainContent:has(input.util_displayHiddenVisually) input{height:0;padding-bottom:0}:host([layout*=classic]) .accents .typeIcon>*{margin-left:var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .accents.left{padding-right:var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .accents.right{padding-left:var(--ds-size-100, 0.5rem);margin-right:var(--ds-size-100, 0.5rem)}:host([layout*=classic]).withValue{justify-content:flex-start}:host([layout*=classic]):focus-within{justify-content:flex-start}`;
|
|
18921
18921
|
|
|
18922
18922
|
var classicColorCss = i$2`.layout-classic label{color:var(--ds-auro-input-label-text-color)}.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(: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-border-brand, #00274a);--ds-auro-input-outline-color: var(--ds-basic-color-border-brand, #00274a)}: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-border-inverse, #ffffff);--ds-auro-input-outline-color: var(--ds-basic-color-border-inverse, #ffffff)}`;
|
|
18923
18923
|
|
|
@@ -23670,9 +23670,9 @@ class AuroFormValidation {
|
|
|
23670
23670
|
elem.validity = this.auroInputElements[0].validity;
|
|
23671
23671
|
elem.errorMessage = this.auroInputElements[0].errorMessage;
|
|
23672
23672
|
|
|
23673
|
+
// multiple input in one components (datepicker)
|
|
23673
23674
|
// combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
|
|
23674
|
-
|
|
23675
|
-
if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
|
|
23675
|
+
if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
|
|
23676
23676
|
elem.validity = this.auroInputElements[1].validity;
|
|
23677
23677
|
elem.errorMessage = this.auroInputElements[1].errorMessage;
|
|
23678
23678
|
}
|
|
@@ -24681,6 +24681,7 @@ class BaseInput extends AuroElement$2 {
|
|
|
24681
24681
|
* @returns {void}
|
|
24682
24682
|
*/
|
|
24683
24683
|
reset() {
|
|
24684
|
+
this.value = undefined;
|
|
24684
24685
|
this.validation.reset(this);
|
|
24685
24686
|
}
|
|
24686
24687
|
|
|
@@ -26734,7 +26735,7 @@ class AuroInput extends BaseInput {
|
|
|
26734
26735
|
* or when the input has no value, is not focused, and has no placeholder text.
|
|
26735
26736
|
* @returns {boolean} - True if the input should be visually hidden, false otherwise.
|
|
26736
26737
|
* @private
|
|
26737
|
-
|
|
26738
|
+
*/
|
|
26738
26739
|
get inputHidden() {
|
|
26739
26740
|
return (this.hasDisplayValueContent && !this.hasFocus && this.hasValue) || ((!this.value || this.value.length === 0) && !this.hasFocus && (!this.placeholder || this.placeholder === ''));
|
|
26740
26741
|
}
|
|
@@ -28826,11 +28827,8 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28826
28827
|
}
|
|
28827
28828
|
|
|
28828
28829
|
if (!this.contains(document.activeElement)) {
|
|
28829
|
-
this.
|
|
28830
|
-
|
|
28831
|
-
if (this.inputList[1]) {
|
|
28832
|
-
this.validation.validate(this.inputList[1]);
|
|
28833
|
-
}
|
|
28830
|
+
this.validate();
|
|
28831
|
+
this.dropdown.hide();
|
|
28834
28832
|
}
|
|
28835
28833
|
});
|
|
28836
28834
|
|
|
@@ -28908,23 +28906,33 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28908
28906
|
const convertedDate = this.convertWcTimeToDate(time);
|
|
28909
28907
|
const newDate = this.util.toCustomFormat(convertedDate, this.format);
|
|
28910
28908
|
|
|
28909
|
+
let onEndValue = false;
|
|
28911
28910
|
if (this.util.validDateStr(newDate, this.format)) {
|
|
28912
|
-
if (this.
|
|
28913
|
-
|
|
28914
|
-
|
|
28915
|
-
|
|
28911
|
+
if (this.range) {
|
|
28912
|
+
const isValueValid = this.value && this.util.validDateStr(this.value, this.format);
|
|
28913
|
+
const isValueEndValid = this.valueEnd && this.util.validDateStr(this.valueEnd, this.format);
|
|
28914
|
+
|
|
28915
|
+
if (isValueValid && !isValueEndValid) {
|
|
28916
28916
|
// verify the date is after this.value to insure we are setting a proper range
|
|
28917
28917
|
if (new Date(this.util.toNorthAmericanFormat(newDate, this.format)) >= new Date(this.formattedValue)) {
|
|
28918
|
-
|
|
28919
|
-
} else {
|
|
28920
|
-
this.value = newDate;
|
|
28918
|
+
onEndValue = true;
|
|
28921
28919
|
}
|
|
28922
|
-
} else {
|
|
28923
|
-
|
|
28920
|
+
} else if (isValueValid && isValueEndValid) {
|
|
28921
|
+
// both dateTo and dateFrom are valid, then reset datTo
|
|
28924
28922
|
this.valueEnd = '';
|
|
28925
28923
|
}
|
|
28924
|
+
}
|
|
28925
|
+
|
|
28926
|
+
if (onEndValue) {
|
|
28927
|
+
this.valueEnd = newDate;
|
|
28928
|
+
if (this.dropdown.isPopoverVisible && !this.dropdown.isBibFullscreen) {
|
|
28929
|
+
this.focus('startDate');
|
|
28930
|
+
}
|
|
28926
28931
|
} else {
|
|
28927
28932
|
this.value = newDate;
|
|
28933
|
+
if (this.dropdown.isPopoverVisible && !this.dropdown.isBibFullscreen) {
|
|
28934
|
+
this.focus('endDate');
|
|
28935
|
+
}
|
|
28928
28936
|
}
|
|
28929
28937
|
}
|
|
28930
28938
|
}
|
|
@@ -28955,7 +28963,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28955
28963
|
*/
|
|
28956
28964
|
resetValues() {
|
|
28957
28965
|
this.inputList.forEach((input) => {
|
|
28958
|
-
input.
|
|
28966
|
+
input.reset();
|
|
28959
28967
|
});
|
|
28960
28968
|
}
|
|
28961
28969
|
|
|
@@ -28981,6 +28989,11 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28981
28989
|
* @param {boolean} [force=false] - Whether to force validation.
|
|
28982
28990
|
*/
|
|
28983
28991
|
validate(force = false) {
|
|
28992
|
+
this.inputList[0].validate(force);
|
|
28993
|
+
if (this.range) {
|
|
28994
|
+
this.inputList[1].validate(force);
|
|
28995
|
+
}
|
|
28996
|
+
|
|
28984
28997
|
this.validation.validate(this, force);
|
|
28985
28998
|
}
|
|
28986
28999
|
|
|
@@ -801,9 +801,9 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
801
801
|
elem.validity = this.auroInputElements[0].validity;
|
|
802
802
|
elem.errorMessage = this.auroInputElements[0].errorMessage;
|
|
803
803
|
|
|
804
|
+
// multiple input in one components (datepicker)
|
|
804
805
|
// combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
|
|
805
|
-
|
|
806
|
-
if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
|
|
806
|
+
if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
|
|
807
807
|
elem.validity = this.auroInputElements[1].validity;
|
|
808
808
|
elem.errorMessage = this.auroInputElements[1].errorMessage;
|
|
809
809
|
}
|
|
@@ -18654,11 +18654,11 @@ var styleCss$4 = i$2`.util_displayInline{display:inline}.util_displayInlineBlock
|
|
|
18654
18654
|
|
|
18655
18655
|
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}`;
|
|
18656
18656
|
|
|
18657
|
-
var colorBaseCss = i$2`.wrapper{border-color:var(--ds-auro-input-border-color);background-color:var(--ds-auro-input-
|
|
18657
|
+
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)}: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-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-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}`;
|
|
18658
18658
|
|
|
18659
|
-
var tokensCss$4 = i$2`:host(:not([ondark])){--ds-auro-input-border-color: var(--ds-basic-color-border-bold, #585e67);--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-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-muted, #ccd2db);--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}`;
|
|
18659
|
+
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-muted, #ccd2db);--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}`;
|
|
18660
18660
|
|
|
18661
|
-
var classicStyleCss = i$2`:host([layout*=classic]) .wrapper{display:flex;flex-direction:row;
|
|
18661
|
+
var classicStyleCss = i$2`:host([layout*=classic]) .wrapper{display:flex;flex-direction:row;box-shadow:inset 0 0 0 1px var(--ds-auro-input-outline-color)}:host([layout*=classic]) .mainContent{position:relative;display:flex;overflow:hidden;flex:1;flex-direction:column;justify-content:center;cursor:text}:host([layout*=classic]) .mainContent label{overflow:hidden;cursor:text;padding-block:var(--ds-size-50, 0.25rem);text-overflow:ellipsis;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:nowrap}:host([layout*=classic]) .mainContent input{height:auto;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}:host([layout*=classic]) .mainContent:has(input.util_displayHiddenVisually) label{justify-self:flex-start}:host([layout*=classic]) .mainContent:has(input.util_displayHiddenVisually) input{height:0;padding-bottom:0}:host([layout*=classic]) .accents .typeIcon>*{margin-left:var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .accents.left{padding-right:var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .accents.right{padding-left:var(--ds-size-100, 0.5rem);margin-right:var(--ds-size-100, 0.5rem)}:host([layout*=classic]).withValue{justify-content:flex-start}:host([layout*=classic]):focus-within{justify-content:flex-start}`;
|
|
18662
18662
|
|
|
18663
18663
|
var classicColorCss = i$2`.layout-classic label{color:var(--ds-auro-input-label-text-color)}.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(: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-border-brand, #00274a);--ds-auro-input-outline-color: var(--ds-basic-color-border-brand, #00274a)}: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-border-inverse, #ffffff);--ds-auro-input-outline-color: var(--ds-basic-color-border-inverse, #ffffff)}`;
|
|
18664
18664
|
|
|
@@ -23411,9 +23411,9 @@ class AuroFormValidation {
|
|
|
23411
23411
|
elem.validity = this.auroInputElements[0].validity;
|
|
23412
23412
|
elem.errorMessage = this.auroInputElements[0].errorMessage;
|
|
23413
23413
|
|
|
23414
|
+
// multiple input in one components (datepicker)
|
|
23414
23415
|
// combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
|
|
23415
|
-
|
|
23416
|
-
if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
|
|
23416
|
+
if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
|
|
23417
23417
|
elem.validity = this.auroInputElements[1].validity;
|
|
23418
23418
|
elem.errorMessage = this.auroInputElements[1].errorMessage;
|
|
23419
23419
|
}
|
|
@@ -24422,6 +24422,7 @@ class BaseInput extends AuroElement$2 {
|
|
|
24422
24422
|
* @returns {void}
|
|
24423
24423
|
*/
|
|
24424
24424
|
reset() {
|
|
24425
|
+
this.value = undefined;
|
|
24425
24426
|
this.validation.reset(this);
|
|
24426
24427
|
}
|
|
24427
24428
|
|
|
@@ -26475,7 +26476,7 @@ class AuroInput extends BaseInput {
|
|
|
26475
26476
|
* or when the input has no value, is not focused, and has no placeholder text.
|
|
26476
26477
|
* @returns {boolean} - True if the input should be visually hidden, false otherwise.
|
|
26477
26478
|
* @private
|
|
26478
|
-
|
|
26479
|
+
*/
|
|
26479
26480
|
get inputHidden() {
|
|
26480
26481
|
return (this.hasDisplayValueContent && !this.hasFocus && this.hasValue) || ((!this.value || this.value.length === 0) && !this.hasFocus && (!this.placeholder || this.placeholder === ''));
|
|
26481
26482
|
}
|
|
@@ -28567,11 +28568,8 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28567
28568
|
}
|
|
28568
28569
|
|
|
28569
28570
|
if (!this.contains(document.activeElement)) {
|
|
28570
|
-
this.
|
|
28571
|
-
|
|
28572
|
-
if (this.inputList[1]) {
|
|
28573
|
-
this.validation.validate(this.inputList[1]);
|
|
28574
|
-
}
|
|
28571
|
+
this.validate();
|
|
28572
|
+
this.dropdown.hide();
|
|
28575
28573
|
}
|
|
28576
28574
|
});
|
|
28577
28575
|
|
|
@@ -28649,23 +28647,33 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28649
28647
|
const convertedDate = this.convertWcTimeToDate(time);
|
|
28650
28648
|
const newDate = this.util.toCustomFormat(convertedDate, this.format);
|
|
28651
28649
|
|
|
28650
|
+
let onEndValue = false;
|
|
28652
28651
|
if (this.util.validDateStr(newDate, this.format)) {
|
|
28653
|
-
if (this.
|
|
28654
|
-
|
|
28655
|
-
|
|
28656
|
-
|
|
28652
|
+
if (this.range) {
|
|
28653
|
+
const isValueValid = this.value && this.util.validDateStr(this.value, this.format);
|
|
28654
|
+
const isValueEndValid = this.valueEnd && this.util.validDateStr(this.valueEnd, this.format);
|
|
28655
|
+
|
|
28656
|
+
if (isValueValid && !isValueEndValid) {
|
|
28657
28657
|
// verify the date is after this.value to insure we are setting a proper range
|
|
28658
28658
|
if (new Date(this.util.toNorthAmericanFormat(newDate, this.format)) >= new Date(this.formattedValue)) {
|
|
28659
|
-
|
|
28660
|
-
} else {
|
|
28661
|
-
this.value = newDate;
|
|
28659
|
+
onEndValue = true;
|
|
28662
28660
|
}
|
|
28663
|
-
} else {
|
|
28664
|
-
|
|
28661
|
+
} else if (isValueValid && isValueEndValid) {
|
|
28662
|
+
// both dateTo and dateFrom are valid, then reset datTo
|
|
28665
28663
|
this.valueEnd = '';
|
|
28666
28664
|
}
|
|
28665
|
+
}
|
|
28666
|
+
|
|
28667
|
+
if (onEndValue) {
|
|
28668
|
+
this.valueEnd = newDate;
|
|
28669
|
+
if (this.dropdown.isPopoverVisible && !this.dropdown.isBibFullscreen) {
|
|
28670
|
+
this.focus('startDate');
|
|
28671
|
+
}
|
|
28667
28672
|
} else {
|
|
28668
28673
|
this.value = newDate;
|
|
28674
|
+
if (this.dropdown.isPopoverVisible && !this.dropdown.isBibFullscreen) {
|
|
28675
|
+
this.focus('endDate');
|
|
28676
|
+
}
|
|
28669
28677
|
}
|
|
28670
28678
|
}
|
|
28671
28679
|
}
|
|
@@ -28696,7 +28704,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28696
28704
|
*/
|
|
28697
28705
|
resetValues() {
|
|
28698
28706
|
this.inputList.forEach((input) => {
|
|
28699
|
-
input.
|
|
28707
|
+
input.reset();
|
|
28700
28708
|
});
|
|
28701
28709
|
}
|
|
28702
28710
|
|
|
@@ -28722,6 +28730,11 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28722
28730
|
* @param {boolean} [force=false] - Whether to force validation.
|
|
28723
28731
|
*/
|
|
28724
28732
|
validate(force = false) {
|
|
28733
|
+
this.inputList[0].validate(force);
|
|
28734
|
+
if (this.range) {
|
|
28735
|
+
this.inputList[1].validate(force);
|
|
28736
|
+
}
|
|
28737
|
+
|
|
28725
28738
|
this.validation.validate(this, force);
|
|
28726
28739
|
}
|
|
28727
28740
|
|
|
@@ -781,9 +781,9 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
781
781
|
elem.validity = this.auroInputElements[0].validity;
|
|
782
782
|
elem.errorMessage = this.auroInputElements[0].errorMessage;
|
|
783
783
|
|
|
784
|
+
// multiple input in one components (datepicker)
|
|
784
785
|
// combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
|
|
785
|
-
|
|
786
|
-
if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
|
|
786
|
+
if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
|
|
787
787
|
elem.validity = this.auroInputElements[1].validity;
|
|
788
788
|
elem.errorMessage = this.auroInputElements[1].errorMessage;
|
|
789
789
|
}
|
|
@@ -18590,11 +18590,11 @@ var styleCss$4 = css`.util_displayInline{display:inline}.util_displayInlineBlock
|
|
|
18590
18590
|
|
|
18591
18591
|
var styleDefaultCss = css`.layoutDefault .typeIcon,:host(:not([layout])) .typeIcon{display:flex;flex-direction:row;align-items:center}.layoutDefault .typeIcon [auro-icon],:host(:not([layout])) .typeIcon [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-100, 0.5rem)}.layoutDefault .notificationIcons,:host(:not([layout])) .notificationIcons{display:flex;flex-direction:row;padding-right:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .typeIcon,:host(:not([layout])[bordered]) .typeIcon{padding-left:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .notificationIcons,:host(:not([layout])[bordered]) .notificationIcons{align-items:center}:host([class=layoutDefault][bordered]) .notification:not(:first-of-type),:host(:not([layout])[bordered]) .notification:not(:first-of-type){margin-left:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .alertNotification,:host(:not([layout])[bordered]) .alertNotification{width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem))}:host([class=layoutDefault][bordered]) .passwordBtn,:host(:not([layout])[bordered]) .passwordBtn{width:calc(var(--ds-size-300, 1.5rem));height:calc(var(--ds-size-300, 1.5rem))}:host([class=layoutDefault][bordered]) .notificationBtn,:host(:not([layout])[bordered]) .notificationBtn{display:block;width:var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);padding:0;border:0;background:unset;cursor:pointer}:host([class=layoutDefault][bordered]) .notificationBtn [auro-icon],:host(:not([layout])[bordered]) .notificationBtn [auro-icon]{display:block;height:var(--ds-size-300, 1.5rem);--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([class=layoutDefault][bordered]) .notificationBtn [auro-icon][hidden],:host(:not([layout])[bordered]) .notificationBtn [auro-icon][hidden]{display:none}:host([class=layoutDefault]:not([bordered])) .typeIcon,:host([class=layoutDefault]:not([bordered])) .notificationIcons,:host(:not([layout]):not([bordered])) .typeIcon,:host(:not([layout]):not([bordered])) .notificationIcons{align-items:flex-end;padding-bottom:var(--ds-size-50, 0.25rem)}:host([class=layoutDefault]:not([bordered])) .clearBtn,:host(:not([layout]):not([bordered])) .clearBtn{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);overflow:hidden;width:0;opacity:0}.layoutDefault .wrapper:hover .clearBtn,.layoutDefault .wrapper:focus-within .clearBtn,:host(:not([layout])) .wrapper:hover .clearBtn,:host(:not([layout])) .wrapper:focus-within .clearBtn{width:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));opacity:1}:host([class=layoutDefault]:focus-within[type=password]) .notificationIcons[hasValue] .alertNotification,:host(:not([layout]):focus-within[type=password]) .notificationIcons[hasValue] .alertNotification{overflow:hidden;width:0;height:0;padding:0;margin:0;visibility:hidden}.layoutDefault input,:host(:not([layout])) input{border:unset}.layoutDefault .wrapper,:host(:not([layout])) .wrapper{position:relative;overflow:hidden;border-style:solid}:host([class=layoutDefault]:not([bordered],[borderless])) .wrapper,:host(:not([layout]):not([bordered],[borderless])) .wrapper{border-width:1px 0}:host([class=layoutDefault][bordered]) .wrapper,:host(:not([layout])[bordered]) .wrapper{border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}:host([class=layoutDefault]:not([borderless])) .wrapper:focus-within:before,:host(:not([layout]):not([borderless])) .wrapper:focus-within:before{position:absolute;display:block;border-bottom-width:1px;border-bottom-style:solid;content:"";inset:0;pointer-events:none}:host([class=layoutDefault][validity]:not([validity=valid])) .wrapper:before,:host(:not([layout])[validity]:not([validity=valid])) .wrapper:before{border-bottom:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.layoutDefault :host,:host(:not([layout])) :host{position:relative;display:block}.layoutDefault .wrapper,:host(:not([layout])) .wrapper{display:flex;flex-direction:row}.layoutDefault .main,:host(:not([layout])) .main{display:flex;flex-direction:row;position:relative;flex:1}`;
|
|
18592
18592
|
|
|
18593
|
-
var colorBaseCss = css`.wrapper{border-color:var(--ds-auro-input-border-color);background-color:var(--ds-auro-input-
|
|
18593
|
+
var colorBaseCss = css`.wrapper{border-color:var(--ds-auro-input-border-color);background-color:var(--ds-auro-input-background-color);color:var(--ds-auro-input-text-color)}.wrapper label{color:var(--ds-auro-input-label-text-color)}.wrapper input{caret-color:var(--ds-auro-input-caret-color);color:var(--ds-auro-input-text-color)}.wrapper input::placeholder{color:var(--ds-auro-input-placeholder-text-color)}.wrapper input:focus::placeholder{color:var(--ds-auro-input-placeholder-text-color)}: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-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-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}`;
|
|
18594
18594
|
|
|
18595
|
-
var tokensCss$4 = css`:host(:not([ondark])){--ds-auro-input-border-color: var(--ds-basic-color-border-bold, #585e67);--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-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-muted, #ccd2db);--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}`;
|
|
18595
|
+
var tokensCss$4 = css`:host(:not([ondark])){--ds-auro-input-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-input-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-input-outline-color: transparent}:host([ondark]){--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db);--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}`;
|
|
18596
18596
|
|
|
18597
|
-
var classicStyleCss = css`:host([layout*=classic]) .wrapper{display:flex;flex-direction:row;
|
|
18597
|
+
var classicStyleCss = css`:host([layout*=classic]) .wrapper{display:flex;flex-direction:row;box-shadow:inset 0 0 0 1px var(--ds-auro-input-outline-color)}:host([layout*=classic]) .mainContent{position:relative;display:flex;overflow:hidden;flex:1;flex-direction:column;justify-content:center;cursor:text}:host([layout*=classic]) .mainContent label{overflow:hidden;cursor:text;padding-block:var(--ds-size-50, 0.25rem);text-overflow:ellipsis;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:nowrap}:host([layout*=classic]) .mainContent input{height:auto;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}:host([layout*=classic]) .mainContent:has(input.util_displayHiddenVisually) label{justify-self:flex-start}:host([layout*=classic]) .mainContent:has(input.util_displayHiddenVisually) input{height:0;padding-bottom:0}:host([layout*=classic]) .accents .typeIcon>*{margin-left:var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .accents.left{padding-right:var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .accents.right{padding-left:var(--ds-size-100, 0.5rem);margin-right:var(--ds-size-100, 0.5rem)}:host([layout*=classic]).withValue{justify-content:flex-start}:host([layout*=classic]):focus-within{justify-content:flex-start}`;
|
|
18598
18598
|
|
|
18599
18599
|
var classicColorCss = css`.layout-classic label{color:var(--ds-auro-input-label-text-color)}.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(: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-border-brand, #00274a);--ds-auro-input-outline-color: var(--ds-basic-color-border-brand, #00274a)}: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-border-inverse, #ffffff);--ds-auro-input-outline-color: var(--ds-basic-color-border-inverse, #ffffff)}`;
|
|
18600
18600
|
|
|
@@ -23347,9 +23347,9 @@ class AuroFormValidation {
|
|
|
23347
23347
|
elem.validity = this.auroInputElements[0].validity;
|
|
23348
23348
|
elem.errorMessage = this.auroInputElements[0].errorMessage;
|
|
23349
23349
|
|
|
23350
|
+
// multiple input in one components (datepicker)
|
|
23350
23351
|
// combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
|
|
23351
|
-
|
|
23352
|
-
if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
|
|
23352
|
+
if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
|
|
23353
23353
|
elem.validity = this.auroInputElements[1].validity;
|
|
23354
23354
|
elem.errorMessage = this.auroInputElements[1].errorMessage;
|
|
23355
23355
|
}
|
|
@@ -24358,6 +24358,7 @@ class BaseInput extends AuroElement$2 {
|
|
|
24358
24358
|
* @returns {void}
|
|
24359
24359
|
*/
|
|
24360
24360
|
reset() {
|
|
24361
|
+
this.value = undefined;
|
|
24361
24362
|
this.validation.reset(this);
|
|
24362
24363
|
}
|
|
24363
24364
|
|
|
@@ -26411,7 +26412,7 @@ class AuroInput extends BaseInput {
|
|
|
26411
26412
|
* or when the input has no value, is not focused, and has no placeholder text.
|
|
26412
26413
|
* @returns {boolean} - True if the input should be visually hidden, false otherwise.
|
|
26413
26414
|
* @private
|
|
26414
|
-
|
|
26415
|
+
*/
|
|
26415
26416
|
get inputHidden() {
|
|
26416
26417
|
return (this.hasDisplayValueContent && !this.hasFocus && this.hasValue) || ((!this.value || this.value.length === 0) && !this.hasFocus && (!this.placeholder || this.placeholder === ''));
|
|
26417
26418
|
}
|
|
@@ -28503,11 +28504,8 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28503
28504
|
}
|
|
28504
28505
|
|
|
28505
28506
|
if (!this.contains(document.activeElement)) {
|
|
28506
|
-
this.
|
|
28507
|
-
|
|
28508
|
-
if (this.inputList[1]) {
|
|
28509
|
-
this.validation.validate(this.inputList[1]);
|
|
28510
|
-
}
|
|
28507
|
+
this.validate();
|
|
28508
|
+
this.dropdown.hide();
|
|
28511
28509
|
}
|
|
28512
28510
|
});
|
|
28513
28511
|
|
|
@@ -28585,23 +28583,33 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28585
28583
|
const convertedDate = this.convertWcTimeToDate(time);
|
|
28586
28584
|
const newDate = this.util.toCustomFormat(convertedDate, this.format);
|
|
28587
28585
|
|
|
28586
|
+
let onEndValue = false;
|
|
28588
28587
|
if (this.util.validDateStr(newDate, this.format)) {
|
|
28589
|
-
if (this.
|
|
28590
|
-
|
|
28591
|
-
|
|
28592
|
-
|
|
28588
|
+
if (this.range) {
|
|
28589
|
+
const isValueValid = this.value && this.util.validDateStr(this.value, this.format);
|
|
28590
|
+
const isValueEndValid = this.valueEnd && this.util.validDateStr(this.valueEnd, this.format);
|
|
28591
|
+
|
|
28592
|
+
if (isValueValid && !isValueEndValid) {
|
|
28593
28593
|
// verify the date is after this.value to insure we are setting a proper range
|
|
28594
28594
|
if (new Date(this.util.toNorthAmericanFormat(newDate, this.format)) >= new Date(this.formattedValue)) {
|
|
28595
|
-
|
|
28596
|
-
} else {
|
|
28597
|
-
this.value = newDate;
|
|
28595
|
+
onEndValue = true;
|
|
28598
28596
|
}
|
|
28599
|
-
} else {
|
|
28600
|
-
|
|
28597
|
+
} else if (isValueValid && isValueEndValid) {
|
|
28598
|
+
// both dateTo and dateFrom are valid, then reset datTo
|
|
28601
28599
|
this.valueEnd = '';
|
|
28602
28600
|
}
|
|
28601
|
+
}
|
|
28602
|
+
|
|
28603
|
+
if (onEndValue) {
|
|
28604
|
+
this.valueEnd = newDate;
|
|
28605
|
+
if (this.dropdown.isPopoverVisible && !this.dropdown.isBibFullscreen) {
|
|
28606
|
+
this.focus('startDate');
|
|
28607
|
+
}
|
|
28603
28608
|
} else {
|
|
28604
28609
|
this.value = newDate;
|
|
28610
|
+
if (this.dropdown.isPopoverVisible && !this.dropdown.isBibFullscreen) {
|
|
28611
|
+
this.focus('endDate');
|
|
28612
|
+
}
|
|
28605
28613
|
}
|
|
28606
28614
|
}
|
|
28607
28615
|
}
|
|
@@ -28632,7 +28640,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28632
28640
|
*/
|
|
28633
28641
|
resetValues() {
|
|
28634
28642
|
this.inputList.forEach((input) => {
|
|
28635
|
-
input.
|
|
28643
|
+
input.reset();
|
|
28636
28644
|
});
|
|
28637
28645
|
}
|
|
28638
28646
|
|
|
@@ -28658,6 +28666,11 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28658
28666
|
* @param {boolean} [force=false] - Whether to force validation.
|
|
28659
28667
|
*/
|
|
28660
28668
|
validate(force = false) {
|
|
28669
|
+
this.inputList[0].validate(force);
|
|
28670
|
+
if (this.range) {
|
|
28671
|
+
this.inputList[1].validate(force);
|
|
28672
|
+
}
|
|
28673
|
+
|
|
28661
28674
|
this.validation.validate(this, force);
|
|
28662
28675
|
}
|
|
28663
28676
|
|