@aurodesignsystem/auro-formkit 3.3.0-beta.1 → 3.3.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/CHANGELOG.md +86 -1
- package/components/bibtemplate/dist/headerVersion.d.ts +1 -1
- package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +10 -80
- package/components/bibtemplate/dist/registered.js +10 -80
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/api.html +1 -0
- package/components/checkbox/demo/api.md +4 -5
- package/components/checkbox/demo/api.min.js +66 -15
- package/components/checkbox/demo/index.html +1 -0
- package/components/checkbox/demo/index.min.js +66 -15
- package/components/checkbox/demo/readme.md +1 -1
- package/components/checkbox/dist/auro-checkbox-group.d.ts +7 -0
- package/components/checkbox/dist/auro-checkbox.d.ts +23 -2
- package/components/checkbox/dist/index.js +59 -8
- package/components/checkbox/dist/registered.js +59 -8
- package/components/combobox/README.md +1 -1
- package/components/combobox/demo/api.html +1 -0
- package/components/combobox/demo/api.min.js +154 -189
- package/components/combobox/demo/index.html +1 -0
- package/components/combobox/demo/index.min.js +154 -189
- package/components/combobox/demo/readme.md +1 -1
- package/components/combobox/dist/auro-combobox.d.ts +2 -10
- package/components/combobox/dist/index.js +130 -165
- package/components/combobox/dist/registered.js +130 -165
- package/components/counter/README.md +1 -1
- package/components/counter/demo/api.html +1 -0
- package/components/counter/demo/api.min.js +59 -120
- package/components/counter/demo/index.html +1 -0
- package/components/counter/demo/index.min.js +59 -120
- package/components/counter/demo/readme.md +1 -1
- package/components/counter/dist/iconVersion.d.ts +1 -1
- package/components/counter/dist/index.js +40 -101
- package/components/counter/dist/registered.js +40 -101
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/api.html +1 -0
- package/components/datepicker/demo/api.min.js +105 -153
- package/components/datepicker/demo/index.html +1 -0
- package/components/datepicker/demo/index.min.js +105 -153
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/dist/auro-datepicker.d.ts +8 -0
- package/components/datepicker/dist/index.js +79 -127
- package/components/datepicker/dist/registered.js +79 -127
- package/components/dropdown/README.md +1 -1
- package/components/dropdown/demo/api.html +1 -0
- package/components/dropdown/demo/api.min.js +18 -16
- package/components/dropdown/demo/index.html +1 -0
- package/components/dropdown/demo/index.min.js +18 -16
- package/components/dropdown/demo/readme.md +1 -1
- package/components/dropdown/dist/index.js +7 -5
- package/components/dropdown/dist/registered.js +7 -5
- package/components/form/README.md +1 -1
- package/components/form/demo/api.min.js +5 -5
- package/components/form/demo/index.min.js +5 -5
- package/components/form/demo/readme.md +1 -1
- package/components/helptext/dist/index.js +1 -1
- package/components/helptext/dist/registered.js +1 -1
- package/components/input/README.md +1 -1
- package/components/input/demo/api.html +1 -0
- package/components/input/demo/api.min.js +69 -57
- package/components/input/demo/index.html +1 -0
- package/components/input/demo/index.min.js +69 -57
- package/components/input/demo/readme.md +1 -1
- package/components/input/dist/base-input.d.ts +8 -0
- package/components/input/dist/index.js +31 -19
- package/components/input/dist/registered.js +31 -19
- package/components/menu/README.md +1 -1
- package/components/menu/demo/api.html +1 -0
- package/components/menu/demo/api.min.js +10 -10
- package/components/menu/demo/index.html +1 -0
- package/components/menu/demo/index.min.js +10 -10
- package/components/menu/demo/readme.md +1 -1
- package/components/menu/dist/iconVersion.d.ts +1 -1
- package/components/menu/dist/index.js +3 -3
- package/components/menu/dist/registered.js +3 -3
- package/components/radio/README.md +1 -1
- package/components/radio/demo/api.html +1 -0
- package/components/radio/demo/api.md +1 -0
- package/components/radio/demo/api.min.js +42 -18
- package/components/radio/demo/index.html +1 -0
- package/components/radio/demo/index.md +42 -0
- package/components/radio/demo/index.min.js +42 -18
- package/components/radio/demo/readme.md +1 -1
- package/components/radio/dist/auro-radio-group.d.ts +8 -0
- package/components/radio/dist/auro-radio.d.ts +5 -0
- package/components/radio/dist/index.js +35 -11
- package/components/radio/dist/registered.js +35 -11
- package/components/select/README.md +1 -1
- package/components/select/demo/api.html +1 -0
- package/components/select/demo/api.md +4 -5
- package/components/select/demo/api.min.js +84 -132
- package/components/select/demo/index.html +1 -0
- package/components/select/demo/index.min.js +84 -132
- package/components/select/demo/readme.md +1 -1
- package/components/select/dist/auro-select.d.ts +16 -2
- package/components/select/dist/index.js +65 -113
- package/components/select/dist/registered.js +65 -113
- package/package.json +3 -3
|
@@ -60,6 +60,13 @@ export class AuroRadioGroup extends LitElement {
|
|
|
60
60
|
optionSelected: {
|
|
61
61
|
type: ObjectConstructor;
|
|
62
62
|
};
|
|
63
|
+
/**
|
|
64
|
+
* Indicates whether the radio group is in a dirty state (has been interacted with).
|
|
65
|
+
* @type {boolean}
|
|
66
|
+
* @default false
|
|
67
|
+
* @private
|
|
68
|
+
*/
|
|
69
|
+
touched: boolean;
|
|
63
70
|
};
|
|
64
71
|
/**
|
|
65
72
|
* This will register this element with the browser.
|
|
@@ -77,6 +84,7 @@ export class AuroRadioGroup extends LitElement {
|
|
|
77
84
|
value: any;
|
|
78
85
|
optionSelected: EventTarget;
|
|
79
86
|
onDark: boolean;
|
|
87
|
+
touched: boolean;
|
|
80
88
|
/**
|
|
81
89
|
* @private
|
|
82
90
|
*/
|
|
@@ -49,6 +49,10 @@ export class AuroRadio extends LitElement {
|
|
|
49
49
|
type: NumberConstructor;
|
|
50
50
|
reflect: boolean;
|
|
51
51
|
};
|
|
52
|
+
touched: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
reflect: boolean;
|
|
55
|
+
};
|
|
52
56
|
};
|
|
53
57
|
/**
|
|
54
58
|
* This will register this element with the browser.
|
|
@@ -64,6 +68,7 @@ export class AuroRadio extends LitElement {
|
|
|
64
68
|
required: boolean;
|
|
65
69
|
error: boolean;
|
|
66
70
|
onDark: boolean;
|
|
71
|
+
touched: boolean;
|
|
67
72
|
/**
|
|
68
73
|
* @private
|
|
69
74
|
*/
|
|
@@ -108,6 +108,7 @@ class AuroRadio extends LitElement {
|
|
|
108
108
|
this.error = false;
|
|
109
109
|
this.onDark = false;
|
|
110
110
|
this.tabIndex = -1;
|
|
111
|
+
this.touched = false;
|
|
111
112
|
|
|
112
113
|
/**
|
|
113
114
|
* @private
|
|
@@ -153,6 +154,10 @@ class AuroRadio extends LitElement {
|
|
|
153
154
|
tabIndex: {
|
|
154
155
|
type: Number,
|
|
155
156
|
reflect: true
|
|
157
|
+
},
|
|
158
|
+
touched: {
|
|
159
|
+
type: Boolean,
|
|
160
|
+
reflect: true
|
|
156
161
|
}
|
|
157
162
|
};
|
|
158
163
|
}
|
|
@@ -204,6 +209,7 @@ class AuroRadio extends LitElement {
|
|
|
204
209
|
* @returns {void}
|
|
205
210
|
*/
|
|
206
211
|
handleFocus(event) {
|
|
212
|
+
this.touched = true;
|
|
207
213
|
this.dispatchEvent(new CustomEvent('focusSelected', {
|
|
208
214
|
bubbles: true,
|
|
209
215
|
composed: true,
|
|
@@ -230,6 +236,7 @@ class AuroRadio extends LitElement {
|
|
|
230
236
|
* @returns {void}
|
|
231
237
|
*/
|
|
232
238
|
reset() {
|
|
239
|
+
this.touched = false;
|
|
233
240
|
this.checked = false;
|
|
234
241
|
this.error = false;
|
|
235
242
|
}
|
|
@@ -760,6 +767,7 @@ class AuroFormValidation {
|
|
|
760
767
|
reset(elem) {
|
|
761
768
|
elem.validity = undefined;
|
|
762
769
|
elem.value = undefined;
|
|
770
|
+
elem.touched = false;
|
|
763
771
|
|
|
764
772
|
// Resets the second value of the datepicker in range state
|
|
765
773
|
if (elem.valueEnd) {
|
|
@@ -897,7 +905,7 @@ class AuroFormValidation {
|
|
|
897
905
|
} else if (elem.type === 'date' && elem.value?.length > 0) {
|
|
898
906
|
|
|
899
907
|
// Guard Clause: if the value is too short
|
|
900
|
-
if (elem.value
|
|
908
|
+
if (elem.value?.length < elem.lengthForType) {
|
|
901
909
|
|
|
902
910
|
elem.validity = 'tooShort';
|
|
903
911
|
elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
|
|
@@ -967,11 +975,17 @@ class AuroFormValidation {
|
|
|
967
975
|
this.getAuroInputs(elem);
|
|
968
976
|
|
|
969
977
|
// Validate only if noValidate is not true and the input does not have focus
|
|
970
|
-
|
|
978
|
+
let validationShouldRun =
|
|
979
|
+
force ||
|
|
980
|
+
(!elem.contains(document.activeElement) &&
|
|
981
|
+
(elem.touched ||
|
|
982
|
+
(!elem.touched && typeof elem.value !== "undefined"))) ||
|
|
983
|
+
elem.validateOnInput;
|
|
971
984
|
|
|
972
985
|
if (elem.hasAttribute('error')) {
|
|
973
986
|
elem.validity = 'customError';
|
|
974
987
|
elem.errorMessage = elem.setCustomValidityCustomError || elem.error || elem.setCustomValidity || '';
|
|
988
|
+
validationShouldRun = false;
|
|
975
989
|
} else if (validationShouldRun) {
|
|
976
990
|
elem.validity = 'valid';
|
|
977
991
|
elem.errorMessage = '';
|
|
@@ -992,7 +1006,7 @@ class AuroFormValidation {
|
|
|
992
1006
|
}
|
|
993
1007
|
}
|
|
994
1008
|
|
|
995
|
-
if (!hasValue && elem.required) {
|
|
1009
|
+
if (!hasValue && elem.required && elem.touched) {
|
|
996
1010
|
elem.validity = 'valueMissing';
|
|
997
1011
|
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
998
1012
|
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
@@ -1003,7 +1017,7 @@ class AuroFormValidation {
|
|
|
1003
1017
|
}
|
|
1004
1018
|
}
|
|
1005
1019
|
|
|
1006
|
-
if (this.auroInputElements?.length > 0) {
|
|
1020
|
+
if (this.auroInputElements?.length > 0 && elem.validity !== "valueMissing") {
|
|
1007
1021
|
elem.validity = this.auroInputElements[0].validity;
|
|
1008
1022
|
elem.errorMessage = this.auroInputElements[0].errorMessage;
|
|
1009
1023
|
|
|
@@ -1082,7 +1096,7 @@ class AuroFormValidation {
|
|
|
1082
1096
|
}
|
|
1083
1097
|
}
|
|
1084
1098
|
} else {
|
|
1085
|
-
elem.errorMessage =
|
|
1099
|
+
elem.errorMessage = '';
|
|
1086
1100
|
}
|
|
1087
1101
|
}
|
|
1088
1102
|
}
|
|
@@ -1129,7 +1143,7 @@ class AuroDependencyVersioning {
|
|
|
1129
1143
|
|
|
1130
1144
|
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-advanced-color-state-error-inverse, #f9a4a8)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
1131
1145
|
|
|
1132
|
-
var styleCss = css`.helptext-wrapper{display:none;font-size:var(--ds-text-body-size-xs, 0
|
|
1146
|
+
var styleCss = css`.helptext-wrapper{display:none;font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px)}:host([large]) .helptext-wrapper{font-size:var(--ds-basic-text-body-default-font-size, 16px);font-weight:var(--ds-basic-text-body-default-font-weight, 450);letter-spacing:var(--ds-basic-text-body-default-letter-spacing, 0);line-height:var(--ds-basic-text-body-default-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}`;
|
|
1133
1147
|
|
|
1134
1148
|
var tokensCss = css`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
1135
1149
|
|
|
@@ -1371,6 +1385,7 @@ class AuroRadioGroup extends LitElement {
|
|
|
1371
1385
|
this.value = undefined;
|
|
1372
1386
|
this.optionSelected = undefined;
|
|
1373
1387
|
this.onDark = false;
|
|
1388
|
+
this.touched = false;
|
|
1374
1389
|
|
|
1375
1390
|
/**
|
|
1376
1391
|
* @private
|
|
@@ -1452,6 +1467,18 @@ class AuroRadioGroup extends LitElement {
|
|
|
1452
1467
|
},
|
|
1453
1468
|
optionSelected: {
|
|
1454
1469
|
type: Object
|
|
1470
|
+
},
|
|
1471
|
+
|
|
1472
|
+
/**
|
|
1473
|
+
* Indicates whether the radio group is in a dirty state (has been interacted with).
|
|
1474
|
+
* @type {boolean}
|
|
1475
|
+
* @default false
|
|
1476
|
+
* @private
|
|
1477
|
+
*/
|
|
1478
|
+
touched: {
|
|
1479
|
+
type: Boolean,
|
|
1480
|
+
reflect: true,
|
|
1481
|
+
attribute: false
|
|
1455
1482
|
}
|
|
1456
1483
|
};
|
|
1457
1484
|
}
|
|
@@ -1507,10 +1534,7 @@ class AuroRadioGroup extends LitElement {
|
|
|
1507
1534
|
* @returns {void}
|
|
1508
1535
|
*/
|
|
1509
1536
|
handleRadioBlur() {
|
|
1510
|
-
|
|
1511
|
-
this.value = '';
|
|
1512
|
-
}
|
|
1513
|
-
|
|
1537
|
+
this.touched = true;
|
|
1514
1538
|
this.validation.validate(this);
|
|
1515
1539
|
}
|
|
1516
1540
|
|
|
@@ -1617,7 +1641,7 @@ class AuroRadioGroup extends LitElement {
|
|
|
1617
1641
|
* @returns {void}
|
|
1618
1642
|
*/
|
|
1619
1643
|
handleItems() {
|
|
1620
|
-
this.items = [...this.querySelectorAll(':scope
|
|
1644
|
+
this.items = [...this.querySelectorAll(':scope auro-radio, :scope [auro-radio]')];
|
|
1621
1645
|
this.initializeIndex();
|
|
1622
1646
|
|
|
1623
1647
|
if (this.disabled) {
|
|
@@ -108,6 +108,7 @@ class AuroRadio extends LitElement {
|
|
|
108
108
|
this.error = false;
|
|
109
109
|
this.onDark = false;
|
|
110
110
|
this.tabIndex = -1;
|
|
111
|
+
this.touched = false;
|
|
111
112
|
|
|
112
113
|
/**
|
|
113
114
|
* @private
|
|
@@ -153,6 +154,10 @@ class AuroRadio extends LitElement {
|
|
|
153
154
|
tabIndex: {
|
|
154
155
|
type: Number,
|
|
155
156
|
reflect: true
|
|
157
|
+
},
|
|
158
|
+
touched: {
|
|
159
|
+
type: Boolean,
|
|
160
|
+
reflect: true
|
|
156
161
|
}
|
|
157
162
|
};
|
|
158
163
|
}
|
|
@@ -204,6 +209,7 @@ class AuroRadio extends LitElement {
|
|
|
204
209
|
* @returns {void}
|
|
205
210
|
*/
|
|
206
211
|
handleFocus(event) {
|
|
212
|
+
this.touched = true;
|
|
207
213
|
this.dispatchEvent(new CustomEvent('focusSelected', {
|
|
208
214
|
bubbles: true,
|
|
209
215
|
composed: true,
|
|
@@ -230,6 +236,7 @@ class AuroRadio extends LitElement {
|
|
|
230
236
|
* @returns {void}
|
|
231
237
|
*/
|
|
232
238
|
reset() {
|
|
239
|
+
this.touched = false;
|
|
233
240
|
this.checked = false;
|
|
234
241
|
this.error = false;
|
|
235
242
|
}
|
|
@@ -760,6 +767,7 @@ class AuroFormValidation {
|
|
|
760
767
|
reset(elem) {
|
|
761
768
|
elem.validity = undefined;
|
|
762
769
|
elem.value = undefined;
|
|
770
|
+
elem.touched = false;
|
|
763
771
|
|
|
764
772
|
// Resets the second value of the datepicker in range state
|
|
765
773
|
if (elem.valueEnd) {
|
|
@@ -897,7 +905,7 @@ class AuroFormValidation {
|
|
|
897
905
|
} else if (elem.type === 'date' && elem.value?.length > 0) {
|
|
898
906
|
|
|
899
907
|
// Guard Clause: if the value is too short
|
|
900
|
-
if (elem.value
|
|
908
|
+
if (elem.value?.length < elem.lengthForType) {
|
|
901
909
|
|
|
902
910
|
elem.validity = 'tooShort';
|
|
903
911
|
elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
|
|
@@ -967,11 +975,17 @@ class AuroFormValidation {
|
|
|
967
975
|
this.getAuroInputs(elem);
|
|
968
976
|
|
|
969
977
|
// Validate only if noValidate is not true and the input does not have focus
|
|
970
|
-
|
|
978
|
+
let validationShouldRun =
|
|
979
|
+
force ||
|
|
980
|
+
(!elem.contains(document.activeElement) &&
|
|
981
|
+
(elem.touched ||
|
|
982
|
+
(!elem.touched && typeof elem.value !== "undefined"))) ||
|
|
983
|
+
elem.validateOnInput;
|
|
971
984
|
|
|
972
985
|
if (elem.hasAttribute('error')) {
|
|
973
986
|
elem.validity = 'customError';
|
|
974
987
|
elem.errorMessage = elem.setCustomValidityCustomError || elem.error || elem.setCustomValidity || '';
|
|
988
|
+
validationShouldRun = false;
|
|
975
989
|
} else if (validationShouldRun) {
|
|
976
990
|
elem.validity = 'valid';
|
|
977
991
|
elem.errorMessage = '';
|
|
@@ -992,7 +1006,7 @@ class AuroFormValidation {
|
|
|
992
1006
|
}
|
|
993
1007
|
}
|
|
994
1008
|
|
|
995
|
-
if (!hasValue && elem.required) {
|
|
1009
|
+
if (!hasValue && elem.required && elem.touched) {
|
|
996
1010
|
elem.validity = 'valueMissing';
|
|
997
1011
|
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
998
1012
|
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
@@ -1003,7 +1017,7 @@ class AuroFormValidation {
|
|
|
1003
1017
|
}
|
|
1004
1018
|
}
|
|
1005
1019
|
|
|
1006
|
-
if (this.auroInputElements?.length > 0) {
|
|
1020
|
+
if (this.auroInputElements?.length > 0 && elem.validity !== "valueMissing") {
|
|
1007
1021
|
elem.validity = this.auroInputElements[0].validity;
|
|
1008
1022
|
elem.errorMessage = this.auroInputElements[0].errorMessage;
|
|
1009
1023
|
|
|
@@ -1082,7 +1096,7 @@ class AuroFormValidation {
|
|
|
1082
1096
|
}
|
|
1083
1097
|
}
|
|
1084
1098
|
} else {
|
|
1085
|
-
elem.errorMessage =
|
|
1099
|
+
elem.errorMessage = '';
|
|
1086
1100
|
}
|
|
1087
1101
|
}
|
|
1088
1102
|
}
|
|
@@ -1129,7 +1143,7 @@ class AuroDependencyVersioning {
|
|
|
1129
1143
|
|
|
1130
1144
|
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-advanced-color-state-error-inverse, #f9a4a8)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
1131
1145
|
|
|
1132
|
-
var styleCss = css`.helptext-wrapper{display:none;font-size:var(--ds-text-body-size-xs, 0
|
|
1146
|
+
var styleCss = css`.helptext-wrapper{display:none;font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px)}:host([large]) .helptext-wrapper{font-size:var(--ds-basic-text-body-default-font-size, 16px);font-weight:var(--ds-basic-text-body-default-font-weight, 450);letter-spacing:var(--ds-basic-text-body-default-letter-spacing, 0);line-height:var(--ds-basic-text-body-default-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}`;
|
|
1133
1147
|
|
|
1134
1148
|
var tokensCss = css`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
1135
1149
|
|
|
@@ -1371,6 +1385,7 @@ class AuroRadioGroup extends LitElement {
|
|
|
1371
1385
|
this.value = undefined;
|
|
1372
1386
|
this.optionSelected = undefined;
|
|
1373
1387
|
this.onDark = false;
|
|
1388
|
+
this.touched = false;
|
|
1374
1389
|
|
|
1375
1390
|
/**
|
|
1376
1391
|
* @private
|
|
@@ -1452,6 +1467,18 @@ class AuroRadioGroup extends LitElement {
|
|
|
1452
1467
|
},
|
|
1453
1468
|
optionSelected: {
|
|
1454
1469
|
type: Object
|
|
1470
|
+
},
|
|
1471
|
+
|
|
1472
|
+
/**
|
|
1473
|
+
* Indicates whether the radio group is in a dirty state (has been interacted with).
|
|
1474
|
+
* @type {boolean}
|
|
1475
|
+
* @default false
|
|
1476
|
+
* @private
|
|
1477
|
+
*/
|
|
1478
|
+
touched: {
|
|
1479
|
+
type: Boolean,
|
|
1480
|
+
reflect: true,
|
|
1481
|
+
attribute: false
|
|
1455
1482
|
}
|
|
1456
1483
|
};
|
|
1457
1484
|
}
|
|
@@ -1507,10 +1534,7 @@ class AuroRadioGroup extends LitElement {
|
|
|
1507
1534
|
* @returns {void}
|
|
1508
1535
|
*/
|
|
1509
1536
|
handleRadioBlur() {
|
|
1510
|
-
|
|
1511
|
-
this.value = '';
|
|
1512
|
-
}
|
|
1513
|
-
|
|
1537
|
+
this.touched = true;
|
|
1514
1538
|
this.validation.validate(this);
|
|
1515
1539
|
}
|
|
1516
1540
|
|
|
@@ -1617,7 +1641,7 @@ class AuroRadioGroup extends LitElement {
|
|
|
1617
1641
|
* @returns {void}
|
|
1618
1642
|
*/
|
|
1619
1643
|
handleItems() {
|
|
1620
|
-
this.items = [...this.querySelectorAll(':scope
|
|
1644
|
+
this.items = [...this.querySelectorAll(':scope auro-radio, :scope [auro-radio]')];
|
|
1621
1645
|
this.initializeIndex();
|
|
1622
1646
|
|
|
1623
1647
|
if (this.disabled) {
|
|
@@ -111,7 +111,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
111
111
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
112
112
|
|
|
113
113
|
```html
|
|
114
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.
|
|
114
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.3.0-beta.2/auro-select/+esm"></script>
|
|
115
115
|
```
|
|
116
116
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
117
117
|
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/alaska/CSSCustomProperties--alaska.css">
|
|
27
27
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/demoWrapper.css" />
|
|
28
28
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/elementDemoStyles.css" />
|
|
29
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/essentials-as.css" />
|
|
29
30
|
</head>
|
|
30
31
|
<body class="auro-markdown">
|
|
31
32
|
<main></main>
|
|
@@ -39,11 +39,10 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
|
|
|
39
39
|
|
|
40
40
|
## Methods
|
|
41
41
|
|
|
42
|
-
| Method
|
|
43
|
-
|
|
44
|
-
| [reset](#reset)
|
|
45
|
-
| [
|
|
46
|
-
| [validate](#validate) | `(force?: boolean \| undefined): void` | Validates value.<br /><br />**force**: Whether to force validation. |
|
|
42
|
+
| Method | Type | Description |
|
|
43
|
+
|------------|----------------------------------------|--------------------------------------------------|
|
|
44
|
+
| [reset](#reset) | `(): void` | Resets component to initial state. |
|
|
45
|
+
| [validate](#validate) | `(force?: boolean \| undefined): void` | Validates value.<br /><br />**force**: Whether to force validation. |
|
|
47
46
|
|
|
48
47
|
## Events
|
|
49
48
|
|