@aurodesignsystem-dev/auro-formkit 0.0.0-pr754.0 → 0.0.0-pr754.2
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.md +12 -6
- package/components/combobox/demo/api.min.js +43 -84
- package/components/combobox/demo/index.min.js +43 -84
- package/components/combobox/dist/index.js +42 -84
- package/components/combobox/dist/registered.js +42 -84
- package/components/counter/demo/api.md +140 -7
- package/components/counter/demo/api.min.js +555 -385
- package/components/counter/demo/index.md +82 -0
- package/components/counter/demo/index.min.js +555 -385
- package/components/counter/dist/auro-counter-group.d.ts +71 -14
- package/components/counter/dist/auro-counter.d.ts +10 -0
- package/components/counter/dist/index.js +555 -385
- package/components/counter/dist/registered.js +555 -385
- package/components/datepicker/demo/api.min.js +42 -84
- package/components/datepicker/demo/index.min.js +42 -84
- package/components/datepicker/dist/index.js +42 -84
- package/components/datepicker/dist/registered.js +42 -84
- package/components/dropdown/demo/api.md +76 -268
- 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.md +1 -1
- package/components/input/demo/api.min.js +10 -10
- package/components/input/demo/index.min.js +10 -10
- package/components/input/dist/base-input.d.ts +1 -1
- package/components/input/dist/index.js +10 -10
- package/components/input/dist/registered.js +10 -10
- package/components/menu/demo/api.md +14 -15
- package/components/menu/demo/api.min.js +1 -0
- package/components/menu/demo/index.min.js +1 -0
- package/components/menu/dist/auro-menu.d.ts +2 -1
- package/components/menu/dist/index.js +1 -0
- package/components/menu/dist/registered.js +1 -0
- package/components/radio/demo/api.min.js +9 -9
- package/components/radio/demo/index.min.js +9 -9
- package/components/radio/dist/index.js +9 -9
- package/components/radio/dist/registered.js +9 -9
- package/components/select/demo/api.md +41 -36
- package/components/select/demo/api.min.js +60 -102
- package/components/select/demo/index.md +1 -1
- package/components/select/demo/index.min.js +60 -102
- package/components/select/dist/auro-select.d.ts +9 -2
- package/components/select/dist/index.js +59 -102
- package/components/select/dist/registered.js +59 -102
- package/package.json +2 -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
|
}
|
|
@@ -1054,7 +1054,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1054
1054
|
<div style="width: 350px">
|
|
1055
1055
|
<auro-combobox offset="20" noFlip placement="bottom-end">
|
|
1056
1056
|
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
1057
|
-
<span slot="label">
|
|
1057
|
+
<span slot="label">Label</span>
|
|
1058
|
+
<span slot="helpText">bottom-end bib with 20px offset and noFlip</span>
|
|
1058
1059
|
<auro-menu>
|
|
1059
1060
|
<auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
|
|
1060
1061
|
<auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
|
|
@@ -1066,7 +1067,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1066
1067
|
</auro-combobox>
|
|
1067
1068
|
<auro-combobox offset="20" placement="bottom-end">
|
|
1068
1069
|
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
1069
|
-
<span slot="label">
|
|
1070
|
+
<span slot="label">Label</span>
|
|
1071
|
+
<span slot="helpText">bottom-end bib with 20px offset and flip</span>
|
|
1070
1072
|
<auro-menu>
|
|
1071
1073
|
<auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
|
|
1072
1074
|
<auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
|
|
@@ -1078,7 +1080,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1078
1080
|
</auro-combobox>
|
|
1079
1081
|
<auro-combobox offset="20" noFlip placement="right" autoPlacement>
|
|
1080
1082
|
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
1081
|
-
<span slot="label">
|
|
1083
|
+
<span slot="label">Label</span>
|
|
1084
|
+
<span slot="helpText">right bib with 20px offset, noFlip and autoPlacement</span>
|
|
1082
1085
|
<auro-menu>
|
|
1083
1086
|
<auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
|
|
1084
1087
|
<auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
|
|
@@ -1100,7 +1103,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1100
1103
|
<div style="width: 350px">
|
|
1101
1104
|
<auro-combobox offset="20" noFlip placement="bottom-end">
|
|
1102
1105
|
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
1103
|
-
<span slot="label">
|
|
1106
|
+
<span slot="label">Label</span>
|
|
1107
|
+
<span slot="helpText">bottom-end bib with 20px offset and noFlip</span>
|
|
1104
1108
|
<auro-menu>
|
|
1105
1109
|
<auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
|
|
1106
1110
|
<auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
|
|
@@ -1112,7 +1116,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1112
1116
|
</auro-combobox>
|
|
1113
1117
|
<auro-combobox offset="20" placement="bottom-end">
|
|
1114
1118
|
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
1115
|
-
<span slot="label">
|
|
1119
|
+
<span slot="label">Label</span>
|
|
1120
|
+
<span slot="helpText">bottom-end bib with 20px offset and flip</span>
|
|
1116
1121
|
<auro-menu>
|
|
1117
1122
|
<auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
|
|
1118
1123
|
<auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
|
|
@@ -1124,7 +1129,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1124
1129
|
</auro-combobox>
|
|
1125
1130
|
<auro-combobox offset="20" noFlip placement="right" autoPlacement>
|
|
1126
1131
|
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
1127
|
-
<span slot="label">
|
|
1132
|
+
<span slot="label">Label</span>
|
|
1133
|
+
<span slot="helpText">right bib with 20px offset, noFlip and autoPlacement</span>
|
|
1128
1134
|
<auro-menu>
|
|
1129
1135
|
<auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
|
|
1130
1136
|
<auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
|