@aurodesignsystem-dev/auro-formkit 0.0.0-pr757.2 → 0.0.0-pr776.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/bibtemplate/dist/index.js +1 -1
- package/components/bibtemplate/dist/registered.js +1 -1
- package/components/checkbox/demo/api.min.js +9 -9
- package/components/checkbox/demo/index.min.js +9 -9
- package/components/checkbox/dist/index.js +9 -9
- package/components/checkbox/dist/registered.js +9 -9
- package/components/combobox/demo/api.min.js +79 -96
- package/components/combobox/demo/index.min.js +79 -96
- package/components/combobox/dist/index.js +42 -84
- package/components/combobox/dist/registered.js +42 -84
- package/components/counter/demo/api.min.js +34 -76
- package/components/counter/demo/index.min.js +34 -76
- package/components/counter/dist/index.js +34 -76
- package/components/counter/dist/registered.js +34 -76
- package/components/datepicker/demo/api.min.js +63 -90
- package/components/datepicker/demo/index.min.js +63 -90
- package/components/datepicker/dist/auro-datepicker.d.ts +6 -0
- package/components/datepicker/dist/index.js +63 -90
- package/components/datepicker/dist/registered.js +63 -90
- package/components/dropdown/demo/api.md +60 -266
- package/components/dropdown/demo/api.min.js +25 -67
- package/components/dropdown/demo/index.md +45 -363
- package/components/dropdown/demo/index.min.js +25 -67
- package/components/dropdown/dist/auro-dropdown.d.ts +21 -71
- package/components/dropdown/dist/index.js +25 -67
- package/components/dropdown/dist/registered.js +25 -67
- package/components/helptext/dist/index.js +1 -1
- package/components/helptext/dist/registered.js +1 -1
- package/components/input/demo/api.min.js +10 -10
- package/components/input/demo/index.min.js +10 -10
- package/components/input/dist/index.js +10 -10
- package/components/input/dist/registered.js +10 -10
- package/components/menu/demo/api.md +1 -1
- package/components/menu/demo/api.min.js +37 -12
- package/components/menu/demo/index.min.js +37 -12
- package/components/menu/dist/auro-menu.d.ts +13 -2
- package/components/menu/dist/index.js +37 -12
- package/components/menu/dist/registered.js +37 -12
- package/components/radio/demo/api.min.js +10 -10
- package/components/radio/demo/index.min.js +10 -10
- package/components/radio/dist/auro-radio.d.ts +1 -1
- package/components/radio/dist/index.js +10 -10
- package/components/radio/dist/registered.js +10 -10
- package/components/select/demo/api.md +2 -2
- package/components/select/demo/api.min.js +100 -170
- package/components/select/demo/index.min.js +100 -170
- package/components/select/dist/auro-select.d.ts +13 -3
- package/components/select/dist/index.js +63 -158
- package/components/select/dist/registered.js +63 -158
- package/package.json +3 -2
|
@@ -1895,7 +1895,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
1895
1895
|
<div id="bibTemplate" part="bibtemplate">
|
|
1896
1896
|
${this.isFullscreen ? html$1`
|
|
1897
1897
|
<div id="headerContainer">
|
|
1898
|
-
<${this.buttonTag} id="closeButton" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
1898
|
+
<${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
1899
1899
|
<${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
|
|
1900
1900
|
</${this.buttonTag}>
|
|
1901
1901
|
<${this.headerTag} display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
@@ -1895,7 +1895,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
1895
1895
|
<div id="bibTemplate" part="bibtemplate">
|
|
1896
1896
|
${this.isFullscreen ? html$1`
|
|
1897
1897
|
<div id="headerContainer">
|
|
1898
|
-
<${this.buttonTag} id="closeButton" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
1898
|
+
<${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
1899
1899
|
<${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
|
|
1900
1900
|
</${this.buttonTag}>
|
|
1901
1901
|
<${this.headerTag} display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
@@ -883,19 +883,19 @@ class AuroFormValidation {
|
|
|
883
883
|
{
|
|
884
884
|
check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
|
|
885
885
|
validity: 'tooShort',
|
|
886
|
-
message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
|
|
886
|
+
message: e => e.getAttribute('setCustomValidityTooShort') || e.setCustomValidity || ''
|
|
887
887
|
},
|
|
888
888
|
{
|
|
889
889
|
check: (e) => e.value?.length > e.maxLength,
|
|
890
890
|
validity: 'tooLong',
|
|
891
|
-
message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
|
|
891
|
+
message: e => e.getAttribute('setCustomValidityTooLong') || e.setCustomValidity || ''
|
|
892
892
|
}
|
|
893
893
|
],
|
|
894
894
|
pattern: [
|
|
895
895
|
{
|
|
896
896
|
check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
|
|
897
897
|
validity: 'patternMismatch',
|
|
898
|
-
message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
|
|
898
|
+
message: e => e.getAttribute('setCustomValidityPatternMismatch') || e.setCustomValidity || ''
|
|
899
899
|
}
|
|
900
900
|
]
|
|
901
901
|
},
|
|
@@ -1090,10 +1090,10 @@ class AuroFormValidation {
|
|
|
1090
1090
|
if (!hasValue && elem.required && elem.touched) {
|
|
1091
1091
|
elem.validity = 'valueMissing';
|
|
1092
1092
|
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
1093
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
1093
|
+
} else if (hasValue && this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
1094
1094
|
this.validateType(elem);
|
|
1095
1095
|
this.validateElementAttributes(elem);
|
|
1096
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
|
|
1096
|
+
} else if (hasValue && (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group'))) {
|
|
1097
1097
|
this.validateElementAttributes(elem);
|
|
1098
1098
|
}
|
|
1099
1099
|
}
|
|
@@ -1224,13 +1224,13 @@ class AuroDependencyVersioning {
|
|
|
1224
1224
|
}
|
|
1225
1225
|
}
|
|
1226
1226
|
|
|
1227
|
-
var styleCss$1 = i$5`:host{display:block;padding-bottom:var(--ds-size-150, 0.75rem)}.displayFlex legend+slot{display:flex;white-space:nowrap}fieldset{all:unset}legend{margin-bottom:var(--ds-size-150, 0.75rem)}`;
|
|
1227
|
+
var styleCss$1 = i$5`:host{display:block;padding-bottom:var(--ds-size-150, 0.75rem)}.displayFlex legend+slot{display:flex;white-space:nowrap}fieldset{all:unset}legend{margin-bottom:var(--ds-size-150, 0.75rem)}[auro-helptext]{margin-top:var(--ds-size-150, 0.75rem)}`;
|
|
1228
1228
|
|
|
1229
1229
|
var colorCss$1 = i$5`:host{color:var(--ds-auro-checkbox-group-text-color)}:host([disabled]){--ds-auro-checkbox-group-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([onDark]){--ds-auro-checkbox-group-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][disabled]){--ds-auro-checkbox-group-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}`;
|
|
1230
1230
|
|
|
1231
1231
|
var colorCss = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
1232
1232
|
|
|
1233
|
-
var styleCss = i$5
|
|
1233
|
+
var styleCss = i$5`:host{position:relative;display:block}.helptext-wrapper{display:none;font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([large]) .helptext-wrapper{font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
|
|
1234
1234
|
|
|
1235
1235
|
var tokensCss = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
1236
1236
|
|
|
@@ -1821,11 +1821,11 @@ class AuroCheckboxGroup extends i$2 {
|
|
|
1821
1821
|
|
|
1822
1822
|
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
1823
1823
|
? u`
|
|
1824
|
-
<${this.helpTextTag}
|
|
1824
|
+
<${this.helpTextTag} part="helpText" ?onDark="${this.onDark}">
|
|
1825
1825
|
<slot name="helpText"></slot>
|
|
1826
1826
|
</${this.helpTextTag}>`
|
|
1827
1827
|
: u`
|
|
1828
|
-
<${this.helpTextTag} error
|
|
1828
|
+
<${this.helpTextTag} error ?onDark="${this.onDark}" role="alert" aria-live="assertive" part="helpText">
|
|
1829
1829
|
${this.errorMessage}
|
|
1830
1830
|
</${this.helpTextTag}>`
|
|
1831
1831
|
}
|
|
@@ -875,19 +875,19 @@ class AuroFormValidation {
|
|
|
875
875
|
{
|
|
876
876
|
check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
|
|
877
877
|
validity: 'tooShort',
|
|
878
|
-
message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
|
|
878
|
+
message: e => e.getAttribute('setCustomValidityTooShort') || e.setCustomValidity || ''
|
|
879
879
|
},
|
|
880
880
|
{
|
|
881
881
|
check: (e) => e.value?.length > e.maxLength,
|
|
882
882
|
validity: 'tooLong',
|
|
883
|
-
message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
|
|
883
|
+
message: e => e.getAttribute('setCustomValidityTooLong') || e.setCustomValidity || ''
|
|
884
884
|
}
|
|
885
885
|
],
|
|
886
886
|
pattern: [
|
|
887
887
|
{
|
|
888
888
|
check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
|
|
889
889
|
validity: 'patternMismatch',
|
|
890
|
-
message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
|
|
890
|
+
message: e => e.getAttribute('setCustomValidityPatternMismatch') || e.setCustomValidity || ''
|
|
891
891
|
}
|
|
892
892
|
]
|
|
893
893
|
},
|
|
@@ -1082,10 +1082,10 @@ class AuroFormValidation {
|
|
|
1082
1082
|
if (!hasValue && elem.required && elem.touched) {
|
|
1083
1083
|
elem.validity = 'valueMissing';
|
|
1084
1084
|
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
1085
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
1085
|
+
} else if (hasValue && this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
1086
1086
|
this.validateType(elem);
|
|
1087
1087
|
this.validateElementAttributes(elem);
|
|
1088
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
|
|
1088
|
+
} else if (hasValue && (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group'))) {
|
|
1089
1089
|
this.validateElementAttributes(elem);
|
|
1090
1090
|
}
|
|
1091
1091
|
}
|
|
@@ -1216,13 +1216,13 @@ class AuroDependencyVersioning {
|
|
|
1216
1216
|
}
|
|
1217
1217
|
}
|
|
1218
1218
|
|
|
1219
|
-
var styleCss$1 = i$5`:host{display:block;padding-bottom:var(--ds-size-150, 0.75rem)}.displayFlex legend+slot{display:flex;white-space:nowrap}fieldset{all:unset}legend{margin-bottom:var(--ds-size-150, 0.75rem)}`;
|
|
1219
|
+
var styleCss$1 = i$5`:host{display:block;padding-bottom:var(--ds-size-150, 0.75rem)}.displayFlex legend+slot{display:flex;white-space:nowrap}fieldset{all:unset}legend{margin-bottom:var(--ds-size-150, 0.75rem)}[auro-helptext]{margin-top:var(--ds-size-150, 0.75rem)}`;
|
|
1220
1220
|
|
|
1221
1221
|
var colorCss$1 = i$5`:host{color:var(--ds-auro-checkbox-group-text-color)}:host([disabled]){--ds-auro-checkbox-group-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([onDark]){--ds-auro-checkbox-group-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][disabled]){--ds-auro-checkbox-group-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}`;
|
|
1222
1222
|
|
|
1223
1223
|
var colorCss = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
1224
1224
|
|
|
1225
|
-
var styleCss = i$5
|
|
1225
|
+
var styleCss = i$5`:host{position:relative;display:block}.helptext-wrapper{display:none;font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([large]) .helptext-wrapper{font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
|
|
1226
1226
|
|
|
1227
1227
|
var tokensCss = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
1228
1228
|
|
|
@@ -1813,11 +1813,11 @@ class AuroCheckboxGroup extends i$2 {
|
|
|
1813
1813
|
|
|
1814
1814
|
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
1815
1815
|
? u`
|
|
1816
|
-
<${this.helpTextTag}
|
|
1816
|
+
<${this.helpTextTag} part="helpText" ?onDark="${this.onDark}">
|
|
1817
1817
|
<slot name="helpText"></slot>
|
|
1818
1818
|
</${this.helpTextTag}>`
|
|
1819
1819
|
: u`
|
|
1820
|
-
<${this.helpTextTag} error
|
|
1820
|
+
<${this.helpTextTag} error ?onDark="${this.onDark}" role="alert" aria-live="assertive" part="helpText">
|
|
1821
1821
|
${this.errorMessage}
|
|
1822
1822
|
</${this.helpTextTag}>`
|
|
1823
1823
|
}
|
|
@@ -828,19 +828,19 @@ class AuroFormValidation {
|
|
|
828
828
|
{
|
|
829
829
|
check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
|
|
830
830
|
validity: 'tooShort',
|
|
831
|
-
message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
|
|
831
|
+
message: e => e.getAttribute('setCustomValidityTooShort') || e.setCustomValidity || ''
|
|
832
832
|
},
|
|
833
833
|
{
|
|
834
834
|
check: (e) => e.value?.length > e.maxLength,
|
|
835
835
|
validity: 'tooLong',
|
|
836
|
-
message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
|
|
836
|
+
message: e => e.getAttribute('setCustomValidityTooLong') || e.setCustomValidity || ''
|
|
837
837
|
}
|
|
838
838
|
],
|
|
839
839
|
pattern: [
|
|
840
840
|
{
|
|
841
841
|
check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
|
|
842
842
|
validity: 'patternMismatch',
|
|
843
|
-
message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
|
|
843
|
+
message: e => e.getAttribute('setCustomValidityPatternMismatch') || e.setCustomValidity || ''
|
|
844
844
|
}
|
|
845
845
|
]
|
|
846
846
|
},
|
|
@@ -1035,10 +1035,10 @@ class AuroFormValidation {
|
|
|
1035
1035
|
if (!hasValue && elem.required && elem.touched) {
|
|
1036
1036
|
elem.validity = 'valueMissing';
|
|
1037
1037
|
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
1038
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
1038
|
+
} else if (hasValue && this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
1039
1039
|
this.validateType(elem);
|
|
1040
1040
|
this.validateElementAttributes(elem);
|
|
1041
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
|
|
1041
|
+
} else if (hasValue && (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group'))) {
|
|
1042
1042
|
this.validateElementAttributes(elem);
|
|
1043
1043
|
}
|
|
1044
1044
|
}
|
|
@@ -1169,13 +1169,13 @@ class AuroDependencyVersioning {
|
|
|
1169
1169
|
}
|
|
1170
1170
|
}
|
|
1171
1171
|
|
|
1172
|
-
var styleCss$1 = css`:host{display:block;padding-bottom:var(--ds-size-150, 0.75rem)}.displayFlex legend+slot{display:flex;white-space:nowrap}fieldset{all:unset}legend{margin-bottom:var(--ds-size-150, 0.75rem)}`;
|
|
1172
|
+
var styleCss$1 = css`:host{display:block;padding-bottom:var(--ds-size-150, 0.75rem)}.displayFlex legend+slot{display:flex;white-space:nowrap}fieldset{all:unset}legend{margin-bottom:var(--ds-size-150, 0.75rem)}[auro-helptext]{margin-top:var(--ds-size-150, 0.75rem)}`;
|
|
1173
1173
|
|
|
1174
1174
|
var colorCss$1 = css`:host{color:var(--ds-auro-checkbox-group-text-color)}:host([disabled]){--ds-auro-checkbox-group-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([onDark]){--ds-auro-checkbox-group-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][disabled]){--ds-auro-checkbox-group-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}`;
|
|
1175
1175
|
|
|
1176
1176
|
var colorCss = css`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
1177
1177
|
|
|
1178
|
-
var styleCss = css
|
|
1178
|
+
var styleCss = css`:host{position:relative;display:block}.helptext-wrapper{display:none;font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([large]) .helptext-wrapper{font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
|
|
1179
1179
|
|
|
1180
1180
|
var tokensCss = css`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
1181
1181
|
|
|
@@ -1766,11 +1766,11 @@ class AuroCheckboxGroup extends LitElement {
|
|
|
1766
1766
|
|
|
1767
1767
|
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
1768
1768
|
? html$1`
|
|
1769
|
-
<${this.helpTextTag}
|
|
1769
|
+
<${this.helpTextTag} part="helpText" ?onDark="${this.onDark}">
|
|
1770
1770
|
<slot name="helpText"></slot>
|
|
1771
1771
|
</${this.helpTextTag}>`
|
|
1772
1772
|
: html$1`
|
|
1773
|
-
<${this.helpTextTag} error
|
|
1773
|
+
<${this.helpTextTag} error ?onDark="${this.onDark}" role="alert" aria-live="assertive" part="helpText">
|
|
1774
1774
|
${this.errorMessage}
|
|
1775
1775
|
</${this.helpTextTag}>`
|
|
1776
1776
|
}
|
|
@@ -828,19 +828,19 @@ class AuroFormValidation {
|
|
|
828
828
|
{
|
|
829
829
|
check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
|
|
830
830
|
validity: 'tooShort',
|
|
831
|
-
message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
|
|
831
|
+
message: e => e.getAttribute('setCustomValidityTooShort') || e.setCustomValidity || ''
|
|
832
832
|
},
|
|
833
833
|
{
|
|
834
834
|
check: (e) => e.value?.length > e.maxLength,
|
|
835
835
|
validity: 'tooLong',
|
|
836
|
-
message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
|
|
836
|
+
message: e => e.getAttribute('setCustomValidityTooLong') || e.setCustomValidity || ''
|
|
837
837
|
}
|
|
838
838
|
],
|
|
839
839
|
pattern: [
|
|
840
840
|
{
|
|
841
841
|
check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
|
|
842
842
|
validity: 'patternMismatch',
|
|
843
|
-
message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
|
|
843
|
+
message: e => e.getAttribute('setCustomValidityPatternMismatch') || e.setCustomValidity || ''
|
|
844
844
|
}
|
|
845
845
|
]
|
|
846
846
|
},
|
|
@@ -1035,10 +1035,10 @@ class AuroFormValidation {
|
|
|
1035
1035
|
if (!hasValue && elem.required && elem.touched) {
|
|
1036
1036
|
elem.validity = 'valueMissing';
|
|
1037
1037
|
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
1038
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
1038
|
+
} else if (hasValue && this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
1039
1039
|
this.validateType(elem);
|
|
1040
1040
|
this.validateElementAttributes(elem);
|
|
1041
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
|
|
1041
|
+
} else if (hasValue && (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group'))) {
|
|
1042
1042
|
this.validateElementAttributes(elem);
|
|
1043
1043
|
}
|
|
1044
1044
|
}
|
|
@@ -1169,13 +1169,13 @@ class AuroDependencyVersioning {
|
|
|
1169
1169
|
}
|
|
1170
1170
|
}
|
|
1171
1171
|
|
|
1172
|
-
var styleCss$1 = css`:host{display:block;padding-bottom:var(--ds-size-150, 0.75rem)}.displayFlex legend+slot{display:flex;white-space:nowrap}fieldset{all:unset}legend{margin-bottom:var(--ds-size-150, 0.75rem)}`;
|
|
1172
|
+
var styleCss$1 = css`:host{display:block;padding-bottom:var(--ds-size-150, 0.75rem)}.displayFlex legend+slot{display:flex;white-space:nowrap}fieldset{all:unset}legend{margin-bottom:var(--ds-size-150, 0.75rem)}[auro-helptext]{margin-top:var(--ds-size-150, 0.75rem)}`;
|
|
1173
1173
|
|
|
1174
1174
|
var colorCss$1 = css`:host{color:var(--ds-auro-checkbox-group-text-color)}:host([disabled]){--ds-auro-checkbox-group-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([onDark]){--ds-auro-checkbox-group-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][disabled]){--ds-auro-checkbox-group-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}`;
|
|
1175
1175
|
|
|
1176
1176
|
var colorCss = css`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
1177
1177
|
|
|
1178
|
-
var styleCss = css
|
|
1178
|
+
var styleCss = css`:host{position:relative;display:block}.helptext-wrapper{display:none;font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([large]) .helptext-wrapper{font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
|
|
1179
1179
|
|
|
1180
1180
|
var tokensCss = css`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
1181
1181
|
|
|
@@ -1766,11 +1766,11 @@ class AuroCheckboxGroup extends LitElement {
|
|
|
1766
1766
|
|
|
1767
1767
|
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
1768
1768
|
? html$1`
|
|
1769
|
-
<${this.helpTextTag}
|
|
1769
|
+
<${this.helpTextTag} part="helpText" ?onDark="${this.onDark}">
|
|
1770
1770
|
<slot name="helpText"></slot>
|
|
1771
1771
|
</${this.helpTextTag}>`
|
|
1772
1772
|
: html$1`
|
|
1773
|
-
<${this.helpTextTag} error
|
|
1773
|
+
<${this.helpTextTag} error ?onDark="${this.onDark}" role="alert" aria-live="assertive" part="helpText">
|
|
1774
1774
|
${this.errorMessage}
|
|
1775
1775
|
</${this.helpTextTag}>`
|
|
1776
1776
|
}
|