@aurodesignsystem-dev/auro-formkit 0.0.0-pr750.1 → 0.0.0-pr753.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.html +10 -16
- package/components/combobox/demo/api.md +6 -12
- package/components/combobox/demo/api.min.js +101 -84
- package/components/combobox/demo/index.html +10 -16
- package/components/combobox/demo/index.min.js +101 -84
- package/components/combobox/demo/readme.html +9 -16
- package/components/combobox/dist/index.js +89 -47
- package/components/combobox/dist/registered.js +89 -47
- package/components/counter/demo/api.html +10 -16
- package/components/counter/demo/api.md +7 -140
- package/components/counter/demo/api.min.js +387 -557
- package/components/counter/demo/index.html +10 -16
- package/components/counter/demo/index.md +0 -82
- package/components/counter/demo/index.min.js +387 -557
- package/components/counter/demo/readme.html +9 -16
- package/components/counter/dist/auro-counter-group.d.ts +14 -71
- package/components/counter/dist/auro-counter.d.ts +0 -10
- package/components/counter/dist/index.js +387 -557
- package/components/counter/dist/registered.js +387 -557
- package/components/datepicker/demo/api.html +10 -16
- package/components/datepicker/demo/api.min.js +95 -68
- package/components/datepicker/demo/index.html +10 -16
- package/components/datepicker/demo/index.min.js +95 -68
- package/components/datepicker/demo/readme.html +9 -16
- package/components/datepicker/dist/auro-datepicker.d.ts +0 -6
- package/components/datepicker/dist/index.js +95 -68
- package/components/datepicker/dist/registered.js +95 -68
- package/components/dropdown/demo/api.html +10 -16
- package/components/dropdown/demo/api.md +268 -76
- package/components/dropdown/demo/api.min.js +68 -26
- package/components/dropdown/demo/index.html +10 -16
- package/components/dropdown/demo/index.md +363 -45
- package/components/dropdown/demo/index.min.js +68 -26
- package/components/dropdown/demo/readme.html +9 -16
- package/components/dropdown/dist/auro-dropdown.d.ts +71 -21
- package/components/dropdown/dist/index.js +68 -26
- package/components/dropdown/dist/registered.js +68 -26
- package/components/form/demo/api.html +9 -16
- package/components/form/demo/autocomplete.html +3 -19
- package/components/form/demo/index.html +9 -16
- package/components/form/demo/readme.html +9 -16
- package/components/form/demo/working.html +13 -19
- package/components/helptext/dist/index.js +1 -1
- package/components/helptext/dist/registered.js +1 -1
- package/components/input/demo/api.html +10 -16
- package/components/input/demo/api.md +1 -1
- package/components/input/demo/api.min.js +14 -14
- package/components/input/demo/index.html +10 -16
- package/components/input/demo/index.min.js +14 -14
- package/components/input/demo/readme.html +9 -16
- package/components/input/dist/base-input.d.ts +1 -1
- package/components/input/dist/index.js +14 -14
- package/components/input/dist/registered.js +14 -14
- package/components/menu/demo/api.html +32 -16
- package/components/menu/demo/api.md +1 -1
- package/components/menu/demo/api.min.js +12 -37
- package/components/menu/demo/index.html +10 -16
- package/components/menu/demo/index.min.js +12 -37
- package/components/menu/demo/readme.html +9 -16
- package/components/menu/dist/auro-menu.d.ts +2 -13
- package/components/menu/dist/index.js +12 -37
- package/components/menu/dist/registered.js +12 -37
- package/components/radio/demo/api.html +10 -16
- package/components/radio/demo/api.min.js +10 -10
- package/components/radio/demo/index.html +10 -16
- package/components/radio/demo/index.min.js +10 -10
- package/components/radio/demo/readme.html +9 -16
- 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.html +10 -16
- package/components/select/demo/api.md +16 -19
- package/components/select/demo/api.min.js +295 -136
- package/components/select/demo/index.html +11 -16
- package/components/select/demo/index.md +1 -1
- package/components/select/demo/index.min.js +295 -136
- package/components/select/demo/readme.html +9 -16
- package/components/select/dist/auro-select.d.ts +7 -32
- package/components/select/dist/index.js +283 -99
- package/components/select/dist/registered.js +283 -99
- package/package.json +25 -26
|
@@ -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"
|
|
1898
|
+
<${this.buttonTag} id="closeButton" 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"
|
|
1898
|
+
<${this.buttonTag} id="closeButton" 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.
|
|
886
|
+
message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
|
|
887
887
|
},
|
|
888
888
|
{
|
|
889
889
|
check: (e) => e.value?.length > e.maxLength,
|
|
890
890
|
validity: 'tooLong',
|
|
891
|
-
message: e => e.
|
|
891
|
+
message: e => e.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.
|
|
898
|
+
message: e => e.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 (
|
|
1093
|
+
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
1094
1094
|
this.validateType(elem);
|
|
1095
1095
|
this.validateElementAttributes(elem);
|
|
1096
|
-
} else if (
|
|
1096
|
+
} else if (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)}`;
|
|
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`.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} part="helpText" ?onDark="${this.onDark}">
|
|
1824
|
+
<${this.helpTextTag} large part="helpText" ?onDark="${this.onDark}">
|
|
1825
1825
|
<slot name="helpText"></slot>
|
|
1826
1826
|
</${this.helpTextTag}>`
|
|
1827
1827
|
: u`
|
|
1828
|
-
<${this.helpTextTag} error ?onDark="${this.onDark}" role="alert" aria-live="assertive" part="helpText">
|
|
1828
|
+
<${this.helpTextTag} error large ?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.
|
|
878
|
+
message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
|
|
879
879
|
},
|
|
880
880
|
{
|
|
881
881
|
check: (e) => e.value?.length > e.maxLength,
|
|
882
882
|
validity: 'tooLong',
|
|
883
|
-
message: e => e.
|
|
883
|
+
message: e => e.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.
|
|
890
|
+
message: e => e.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 (
|
|
1085
|
+
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
1086
1086
|
this.validateType(elem);
|
|
1087
1087
|
this.validateElementAttributes(elem);
|
|
1088
|
-
} else if (
|
|
1088
|
+
} else if (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)}`;
|
|
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`.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} part="helpText" ?onDark="${this.onDark}">
|
|
1816
|
+
<${this.helpTextTag} large part="helpText" ?onDark="${this.onDark}">
|
|
1817
1817
|
<slot name="helpText"></slot>
|
|
1818
1818
|
</${this.helpTextTag}>`
|
|
1819
1819
|
: u`
|
|
1820
|
-
<${this.helpTextTag} error ?onDark="${this.onDark}" role="alert" aria-live="assertive" part="helpText">
|
|
1820
|
+
<${this.helpTextTag} error large ?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.
|
|
831
|
+
message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
|
|
832
832
|
},
|
|
833
833
|
{
|
|
834
834
|
check: (e) => e.value?.length > e.maxLength,
|
|
835
835
|
validity: 'tooLong',
|
|
836
|
-
message: e => e.
|
|
836
|
+
message: e => e.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.
|
|
843
|
+
message: e => e.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 (
|
|
1038
|
+
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
1039
1039
|
this.validateType(elem);
|
|
1040
1040
|
this.validateElementAttributes(elem);
|
|
1041
|
-
} else if (
|
|
1041
|
+
} else if (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)}`;
|
|
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`.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} part="helpText" ?onDark="${this.onDark}">
|
|
1769
|
+
<${this.helpTextTag} large part="helpText" ?onDark="${this.onDark}">
|
|
1770
1770
|
<slot name="helpText"></slot>
|
|
1771
1771
|
</${this.helpTextTag}>`
|
|
1772
1772
|
: html$1`
|
|
1773
|
-
<${this.helpTextTag} error ?onDark="${this.onDark}" role="alert" aria-live="assertive" part="helpText">
|
|
1773
|
+
<${this.helpTextTag} error large ?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.
|
|
831
|
+
message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
|
|
832
832
|
},
|
|
833
833
|
{
|
|
834
834
|
check: (e) => e.value?.length > e.maxLength,
|
|
835
835
|
validity: 'tooLong',
|
|
836
|
-
message: e => e.
|
|
836
|
+
message: e => e.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.
|
|
843
|
+
message: e => e.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 (
|
|
1038
|
+
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
1039
1039
|
this.validateType(elem);
|
|
1040
1040
|
this.validateElementAttributes(elem);
|
|
1041
|
-
} else if (
|
|
1041
|
+
} else if (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)}`;
|
|
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`.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} part="helpText" ?onDark="${this.onDark}">
|
|
1769
|
+
<${this.helpTextTag} large part="helpText" ?onDark="${this.onDark}">
|
|
1770
1770
|
<slot name="helpText"></slot>
|
|
1771
1771
|
</${this.helpTextTag}>`
|
|
1772
1772
|
: html$1`
|
|
1773
|
-
<${this.helpTextTag} error ?onDark="${this.onDark}" role="alert" aria-live="assertive" part="helpText">
|
|
1773
|
+
<${this.helpTextTag} error large ?onDark="${this.onDark}" role="alert" aria-live="assertive" part="helpText">
|
|
1774
1774
|
${this.errorMessage}
|
|
1775
1775
|
</${this.helpTextTag}>`
|
|
1776
1776
|
}
|
|
@@ -16,24 +16,18 @@
|
|
|
16
16
|
<head>
|
|
17
17
|
<meta charset="UTF-8" />
|
|
18
18
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
19
|
-
<title>Auro Web Component
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
<link rel="stylesheet"
|
|
26
|
-
|
|
27
|
-
<!-- Design Token Alaska Theme -->
|
|
28
|
-
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/themes/alaska/CSSCustomProperties--alaska.min.css"/>
|
|
29
|
-
|
|
30
|
-
<!-- Webcore Stylesheet Alaska Theme -->
|
|
31
|
-
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/themes/alaska.global.min.css" />
|
|
32
|
-
|
|
33
|
-
<!-- Demo Specific Styles -->
|
|
19
|
+
<title>Auro Web Component Generator | auro-combobox custom element</title>
|
|
20
|
+
<link
|
|
21
|
+
rel="stylesheet"
|
|
22
|
+
type="text/css"
|
|
23
|
+
href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"
|
|
24
|
+
/>
|
|
25
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/auro-classic/CSSCustomProperties.css">
|
|
26
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/alaska/CSSCustomProperties--alaska.css">
|
|
34
27
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/demoWrapper.css" />
|
|
35
28
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/elementDemoStyles.css" />
|
|
36
|
-
|
|
29
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/essentials-as.css" />
|
|
30
|
+
</head>
|
|
37
31
|
<body class="auro-markdown">
|
|
38
32
|
<main></main>
|
|
39
33
|
|
|
@@ -1054,8 +1054,7 @@ 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">
|
|
1058
|
-
<span slot="helpText">bottom-end bib with 20px offset and noFlip</span>
|
|
1057
|
+
<span slot="label">bottom-end bib with 20px offset and noFlip</span>
|
|
1059
1058
|
<auro-menu>
|
|
1060
1059
|
<auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
|
|
1061
1060
|
<auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
|
|
@@ -1067,8 +1066,7 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1067
1066
|
</auro-combobox>
|
|
1068
1067
|
<auro-combobox offset="20" placement="bottom-end">
|
|
1069
1068
|
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
1070
|
-
<span slot="label">
|
|
1071
|
-
<span slot="helpText">bottom-end bib with 20px offset and flip</span>
|
|
1069
|
+
<span slot="label">bottom-end bib with 20px offset and flip</span>
|
|
1072
1070
|
<auro-menu>
|
|
1073
1071
|
<auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
|
|
1074
1072
|
<auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
|
|
@@ -1080,8 +1078,7 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1080
1078
|
</auro-combobox>
|
|
1081
1079
|
<auro-combobox offset="20" noFlip placement="right" autoPlacement>
|
|
1082
1080
|
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
1083
|
-
<span slot="label">
|
|
1084
|
-
<span slot="helpText">right bib with 20px offset, noFlip and autoPlacement</span>
|
|
1081
|
+
<span slot="label">right bib with 20px offset, noFlip and autoPlacement</span>
|
|
1085
1082
|
<auro-menu>
|
|
1086
1083
|
<auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
|
|
1087
1084
|
<auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
|
|
@@ -1103,8 +1100,7 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1103
1100
|
<div style="width: 350px">
|
|
1104
1101
|
<auro-combobox offset="20" noFlip placement="bottom-end">
|
|
1105
1102
|
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
1106
|
-
<span slot="label">
|
|
1107
|
-
<span slot="helpText">bottom-end bib with 20px offset and noFlip</span>
|
|
1103
|
+
<span slot="label">bottom-end bib with 20px offset and noFlip</span>
|
|
1108
1104
|
<auro-menu>
|
|
1109
1105
|
<auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
|
|
1110
1106
|
<auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
|
|
@@ -1116,8 +1112,7 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1116
1112
|
</auro-combobox>
|
|
1117
1113
|
<auro-combobox offset="20" placement="bottom-end">
|
|
1118
1114
|
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
1119
|
-
<span slot="label">
|
|
1120
|
-
<span slot="helpText">bottom-end bib with 20px offset and flip</span>
|
|
1115
|
+
<span slot="label">bottom-end bib with 20px offset and flip</span>
|
|
1121
1116
|
<auro-menu>
|
|
1122
1117
|
<auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
|
|
1123
1118
|
<auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
|
|
@@ -1129,8 +1124,7 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1129
1124
|
</auro-combobox>
|
|
1130
1125
|
<auro-combobox offset="20" noFlip placement="right" autoPlacement>
|
|
1131
1126
|
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
1132
|
-
<span slot="label">
|
|
1133
|
-
<span slot="helpText">right bib with 20px offset, noFlip and autoPlacement</span>
|
|
1127
|
+
<span slot="label">right bib with 20px offset, noFlip and autoPlacement</span>
|
|
1134
1128
|
<auro-menu>
|
|
1135
1129
|
<auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
|
|
1136
1130
|
<auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
|