@aurodesignsystem/auro-formkit 5.1.0 → 5.1.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.
Files changed (49) hide show
  1. package/CHANGELOG.md +7 -9
  2. package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
  3. package/components/bibtemplate/dist/index.js +14 -9
  4. package/components/bibtemplate/dist/registered.js +14 -9
  5. package/components/checkbox/demo/api.min.js +37 -9
  6. package/components/checkbox/demo/index.min.js +37 -9
  7. package/components/checkbox/dist/auro-checkbox.d.ts +7 -0
  8. package/components/checkbox/dist/index.js +37 -9
  9. package/components/checkbox/dist/registered.js +37 -9
  10. package/components/combobox/demo/api.min.js +105 -58
  11. package/components/combobox/demo/index.min.js +105 -58
  12. package/components/combobox/dist/index.js +91 -49
  13. package/components/combobox/dist/registered.js +91 -49
  14. package/components/counter/demo/api.min.js +75 -40
  15. package/components/counter/demo/index.min.js +75 -40
  16. package/components/counter/dist/iconVersion.d.ts +1 -1
  17. package/components/counter/dist/index.js +75 -40
  18. package/components/counter/dist/registered.js +75 -40
  19. package/components/datepicker/demo/api.md +1 -0
  20. package/components/datepicker/demo/api.min.js +98 -52
  21. package/components/datepicker/demo/index.min.js +98 -52
  22. package/components/datepicker/dist/index.js +98 -52
  23. package/components/datepicker/dist/registered.js +98 -52
  24. package/components/dropdown/demo/api.min.js +21 -8
  25. package/components/dropdown/demo/index.min.js +21 -8
  26. package/components/dropdown/dist/index.js +21 -8
  27. package/components/dropdown/dist/registered.js +21 -8
  28. package/components/input/demo/api.min.js +30 -17
  29. package/components/input/demo/index.min.js +30 -17
  30. package/components/input/dist/index.js +30 -17
  31. package/components/input/dist/registered.js +30 -17
  32. package/components/layoutElement/dist/auroElement.d.ts +5 -0
  33. package/components/layoutElement/dist/index.js +8 -0
  34. package/components/layoutElement/dist/registered.js +8 -0
  35. package/components/menu/demo/api.min.js +22 -9
  36. package/components/menu/demo/index.min.js +22 -9
  37. package/components/menu/dist/iconVersion.d.ts +1 -1
  38. package/components/menu/dist/index.js +22 -9
  39. package/components/menu/dist/registered.js +22 -9
  40. package/components/radio/demo/api.min.js +15 -13
  41. package/components/radio/demo/index.min.js +15 -13
  42. package/components/radio/dist/auro-radio.d.ts +1 -1
  43. package/components/radio/dist/index.js +15 -13
  44. package/components/radio/dist/registered.js +15 -13
  45. package/components/select/demo/api.min.js +66 -35
  46. package/components/select/demo/index.min.js +66 -35
  47. package/components/select/dist/index.js +52 -26
  48. package/components/select/dist/registered.js +52 -26
  49. package/package.json +1 -1
@@ -104,6 +104,14 @@ let AuroElement$1 = class AuroElement extends i$2 {
104
104
  };
105
105
  }
106
106
 
107
+ /**
108
+ * Returns true if the element has focus.
109
+ * @returns {boolean} - Returns true if the element has focus.
110
+ */
111
+ get componentHasFocus() {
112
+ return this.matches(':focus');
113
+ }
114
+
107
115
  resetShapeClasses() {
108
116
  const wrapper = this.shadowRoot.querySelector('.wrapper');
109
117
 
@@ -1196,7 +1204,7 @@ class AuroElement extends i$2 {
1196
1204
  }
1197
1205
  }
1198
1206
 
1199
- var error = {"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"error__desc\" class=\"ico_squareLarge\" data-deprecated=\"true\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><desc id=\"error__desc\">Error alert indicator.</desc><path d=\"m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583\"/></svg>"};
1207
+ var error = {"role":"img","color":"currentColor","title":"","desc":"Error alert indicator.","width":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","height":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","xmlns":"http://www.w3.org/2000/svg","xmlns_xlink":"http://www.w3.org/1999/xlink","viewBox":"0 0 24 24","path":"/icons","style":"ico_squareLarge","type":"icon","name":"error","category":"alert","deprecated":true,"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"error__desc\" class=\"ico_squareLarge\" data-deprecated=\"true\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><desc id=\"error__desc\">Error alert indicator.</desc><path d=\"m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583\"/></svg>"};
1200
1208
 
1201
1209
  /* eslint-disable no-underscore-dangle, jsdoc/no-undefined-types, jsdoc/require-param-description */
1202
1210
 
@@ -1296,16 +1304,21 @@ class BaseIcon extends AuroElement {
1296
1304
 
1297
1305
  // lifecycle function
1298
1306
  async firstUpdated() {
1299
- if (!this.customSvg) {
1300
- const svg = await this.fetchIcon(this.category, this.name);
1307
+ try {
1308
+ if (!this.customSvg) {
1309
+ const svg = await this.fetchIcon(this.category, this.name);
1301
1310
 
1302
- if (svg) {
1303
- this.svg = svg;
1304
- } else if (!svg) {
1305
- const penDOM = new DOMParser().parseFromString(error.svg, 'text/html');
1311
+ if (svg) {
1312
+ this.svg = svg;
1313
+ } else if (!svg) {
1314
+ const penDOM = new DOMParser().parseFromString(error.svg, 'text/html');
1306
1315
 
1307
- this.svg = penDOM.body.firstChild;
1316
+ this.svg = penDOM.body.firstChild;
1317
+ }
1308
1318
  }
1319
+ // eslint-disable-next-line no-unused-vars
1320
+ } catch (err) {
1321
+ this.svg = undefined;
1309
1322
  }
1310
1323
  }
1311
1324
  }
@@ -1556,7 +1569,7 @@ class AuroIcon extends BaseIcon {
1556
1569
  }
1557
1570
  }
1558
1571
 
1559
- var iconVersion = '8.1.1';
1572
+ var iconVersion = '8.1.2';
1560
1573
 
1561
1574
  var checkmarkIcon = {"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"checkmark-sm__desc\" class=\"ico_squareLarge\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><desc id=\"checkmark-sm__desc\">a small check mark.</desc><path d=\"M8.461 11.84a.625.625 0 1 0-.922.844l2.504 2.738c.247.27.674.27.922 0l5.496-6a.625.625 0 1 0-.922-.844l-5.035 5.496z\"/></svg>"};
1562
1575
 
@@ -64,6 +64,14 @@ let AuroElement$1 = class AuroElement extends i$2 {
64
64
  };
65
65
  }
66
66
 
67
+ /**
68
+ * Returns true if the element has focus.
69
+ * @returns {boolean} - Returns true if the element has focus.
70
+ */
71
+ get componentHasFocus() {
72
+ return this.matches(':focus');
73
+ }
74
+
67
75
  resetShapeClasses() {
68
76
  const wrapper = this.shadowRoot.querySelector('.wrapper');
69
77
 
@@ -1156,7 +1164,7 @@ class AuroElement extends i$2 {
1156
1164
  }
1157
1165
  }
1158
1166
 
1159
- var error = {"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"error__desc\" class=\"ico_squareLarge\" data-deprecated=\"true\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><desc id=\"error__desc\">Error alert indicator.</desc><path d=\"m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583\"/></svg>"};
1167
+ var error = {"role":"img","color":"currentColor","title":"","desc":"Error alert indicator.","width":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","height":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","xmlns":"http://www.w3.org/2000/svg","xmlns_xlink":"http://www.w3.org/1999/xlink","viewBox":"0 0 24 24","path":"/icons","style":"ico_squareLarge","type":"icon","name":"error","category":"alert","deprecated":true,"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"error__desc\" class=\"ico_squareLarge\" data-deprecated=\"true\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><desc id=\"error__desc\">Error alert indicator.</desc><path d=\"m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583\"/></svg>"};
1160
1168
 
1161
1169
  /* eslint-disable no-underscore-dangle, jsdoc/no-undefined-types, jsdoc/require-param-description */
1162
1170
 
@@ -1256,16 +1264,21 @@ class BaseIcon extends AuroElement {
1256
1264
 
1257
1265
  // lifecycle function
1258
1266
  async firstUpdated() {
1259
- if (!this.customSvg) {
1260
- const svg = await this.fetchIcon(this.category, this.name);
1267
+ try {
1268
+ if (!this.customSvg) {
1269
+ const svg = await this.fetchIcon(this.category, this.name);
1261
1270
 
1262
- if (svg) {
1263
- this.svg = svg;
1264
- } else if (!svg) {
1265
- const penDOM = new DOMParser().parseFromString(error.svg, 'text/html');
1271
+ if (svg) {
1272
+ this.svg = svg;
1273
+ } else if (!svg) {
1274
+ const penDOM = new DOMParser().parseFromString(error.svg, 'text/html');
1266
1275
 
1267
- this.svg = penDOM.body.firstChild;
1276
+ this.svg = penDOM.body.firstChild;
1277
+ }
1268
1278
  }
1279
+ // eslint-disable-next-line no-unused-vars
1280
+ } catch (err) {
1281
+ this.svg = undefined;
1269
1282
  }
1270
1283
  }
1271
1284
  }
@@ -1516,7 +1529,7 @@ class AuroIcon extends BaseIcon {
1516
1529
  }
1517
1530
  }
1518
1531
 
1519
- var iconVersion = '8.1.1';
1532
+ var iconVersion = '8.1.2';
1520
1533
 
1521
1534
  var checkmarkIcon = {"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"checkmark-sm__desc\" class=\"ico_squareLarge\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><desc id=\"checkmark-sm__desc\">a small check mark.</desc><path d=\"M8.461 11.84a.625.625 0 1 0-.922.844l2.504 2.738c.247.27.674.27.922 0l5.496-6a.625.625 0 1 0-.922-.844l-5.035 5.496z\"/></svg>"};
1522
1535
 
@@ -1,2 +1,2 @@
1
- declare const _default: "8.1.1";
1
+ declare const _default: "8.1.2";
2
2
  export default _default;
@@ -43,6 +43,14 @@ let AuroElement$1 = class AuroElement extends LitElement {
43
43
  };
44
44
  }
45
45
 
46
+ /**
47
+ * Returns true if the element has focus.
48
+ * @returns {boolean} - Returns true if the element has focus.
49
+ */
50
+ get componentHasFocus() {
51
+ return this.matches(':focus');
52
+ }
53
+
46
54
  resetShapeClasses() {
47
55
  const wrapper = this.shadowRoot.querySelector('.wrapper');
48
56
 
@@ -1150,7 +1158,7 @@ class AuroElement extends LitElement {
1150
1158
  }
1151
1159
  }
1152
1160
 
1153
- var error = {"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"error__desc\" class=\"ico_squareLarge\" data-deprecated=\"true\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><desc id=\"error__desc\">Error alert indicator.</desc><path d=\"m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583\"/></svg>"};
1161
+ var error = {"role":"img","color":"currentColor","title":"","desc":"Error alert indicator.","width":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","height":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","xmlns":"http://www.w3.org/2000/svg","xmlns_xlink":"http://www.w3.org/1999/xlink","viewBox":"0 0 24 24","path":"/icons","style":"ico_squareLarge","type":"icon","name":"error","category":"alert","deprecated":true,"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"error__desc\" class=\"ico_squareLarge\" data-deprecated=\"true\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><desc id=\"error__desc\">Error alert indicator.</desc><path d=\"m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583\"/></svg>"};
1154
1162
 
1155
1163
  /* eslint-disable no-underscore-dangle, jsdoc/no-undefined-types, jsdoc/require-param-description */
1156
1164
 
@@ -1250,16 +1258,21 @@ class BaseIcon extends AuroElement {
1250
1258
 
1251
1259
  // lifecycle function
1252
1260
  async firstUpdated() {
1253
- if (!this.customSvg) {
1254
- const svg = await this.fetchIcon(this.category, this.name);
1261
+ try {
1262
+ if (!this.customSvg) {
1263
+ const svg = await this.fetchIcon(this.category, this.name);
1255
1264
 
1256
- if (svg) {
1257
- this.svg = svg;
1258
- } else if (!svg) {
1259
- const penDOM = new DOMParser().parseFromString(error.svg, 'text/html');
1265
+ if (svg) {
1266
+ this.svg = svg;
1267
+ } else if (!svg) {
1268
+ const penDOM = new DOMParser().parseFromString(error.svg, 'text/html');
1260
1269
 
1261
- this.svg = penDOM.body.firstChild;
1270
+ this.svg = penDOM.body.firstChild;
1271
+ }
1262
1272
  }
1273
+ // eslint-disable-next-line no-unused-vars
1274
+ } catch (err) {
1275
+ this.svg = undefined;
1263
1276
  }
1264
1277
  }
1265
1278
  }
@@ -1510,7 +1523,7 @@ class AuroIcon extends BaseIcon {
1510
1523
  }
1511
1524
  }
1512
1525
 
1513
- var iconVersion = '8.1.1';
1526
+ var iconVersion = '8.1.2';
1514
1527
 
1515
1528
  var checkmarkIcon = {"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"checkmark-sm__desc\" class=\"ico_squareLarge\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><desc id=\"checkmark-sm__desc\">a small check mark.</desc><path d=\"M8.461 11.84a.625.625 0 1 0-.922.844l2.504 2.738c.247.27.674.27.922 0l5.496-6a.625.625 0 1 0-.922-.844l-5.035 5.496z\"/></svg>"};
1516
1529
 
@@ -43,6 +43,14 @@ let AuroElement$1 = class AuroElement extends LitElement {
43
43
  };
44
44
  }
45
45
 
46
+ /**
47
+ * Returns true if the element has focus.
48
+ * @returns {boolean} - Returns true if the element has focus.
49
+ */
50
+ get componentHasFocus() {
51
+ return this.matches(':focus');
52
+ }
53
+
46
54
  resetShapeClasses() {
47
55
  const wrapper = this.shadowRoot.querySelector('.wrapper');
48
56
 
@@ -1109,7 +1117,7 @@ class AuroElement extends LitElement {
1109
1117
  }
1110
1118
  }
1111
1119
 
1112
- var error = {"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"error__desc\" class=\"ico_squareLarge\" data-deprecated=\"true\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><desc id=\"error__desc\">Error alert indicator.</desc><path d=\"m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583\"/></svg>"};
1120
+ var error = {"role":"img","color":"currentColor","title":"","desc":"Error alert indicator.","width":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","height":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","xmlns":"http://www.w3.org/2000/svg","xmlns_xlink":"http://www.w3.org/1999/xlink","viewBox":"0 0 24 24","path":"/icons","style":"ico_squareLarge","type":"icon","name":"error","category":"alert","deprecated":true,"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"error__desc\" class=\"ico_squareLarge\" data-deprecated=\"true\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><desc id=\"error__desc\">Error alert indicator.</desc><path d=\"m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583\"/></svg>"};
1113
1121
 
1114
1122
  /* eslint-disable no-underscore-dangle, jsdoc/no-undefined-types, jsdoc/require-param-description */
1115
1123
 
@@ -1209,16 +1217,21 @@ class BaseIcon extends AuroElement {
1209
1217
 
1210
1218
  // lifecycle function
1211
1219
  async firstUpdated() {
1212
- if (!this.customSvg) {
1213
- const svg = await this.fetchIcon(this.category, this.name);
1220
+ try {
1221
+ if (!this.customSvg) {
1222
+ const svg = await this.fetchIcon(this.category, this.name);
1214
1223
 
1215
- if (svg) {
1216
- this.svg = svg;
1217
- } else if (!svg) {
1218
- const penDOM = new DOMParser().parseFromString(error.svg, 'text/html');
1224
+ if (svg) {
1225
+ this.svg = svg;
1226
+ } else if (!svg) {
1227
+ const penDOM = new DOMParser().parseFromString(error.svg, 'text/html');
1219
1228
 
1220
- this.svg = penDOM.body.firstChild;
1229
+ this.svg = penDOM.body.firstChild;
1230
+ }
1221
1231
  }
1232
+ // eslint-disable-next-line no-unused-vars
1233
+ } catch (err) {
1234
+ this.svg = undefined;
1222
1235
  }
1223
1236
  }
1224
1237
  }
@@ -1469,7 +1482,7 @@ class AuroIcon extends BaseIcon {
1469
1482
  }
1470
1483
  }
1471
1484
 
1472
- var iconVersion = '8.1.1';
1485
+ var iconVersion = '8.1.2';
1473
1486
 
1474
1487
  var checkmarkIcon = {"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"checkmark-sm__desc\" class=\"ico_squareLarge\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><desc id=\"checkmark-sm__desc\">a small check mark.</desc><path d=\"M8.461 11.84a.625.625 0 1 0-.922.844l2.504 2.738c.247.27.674.27.922 0l5.496-6a.625.625 0 1 0-.922-.844l-5.035 5.496z\"/></svg>"};
1475
1488
 
@@ -248,8 +248,8 @@ class AuroRadio extends i$2 {
248
248
  },
249
249
 
250
250
  /**
251
+ * Don't add to api.md since changing of this can easily break a11y.
251
252
  * @private
252
- * not to add to api.md since changing of this can easily break a11y.
253
253
  */
254
254
  role: {
255
255
  type: String,
@@ -1170,16 +1170,16 @@ class AuroFormValidation {
1170
1170
  }
1171
1171
 
1172
1172
  this.getErrorMessage(elem);
1173
-
1174
- elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
1175
- bubbles: true,
1176
- composed: true,
1177
- detail: {
1178
- validity: elem.validity,
1179
- message: elem.errorMessage
1180
- }
1181
- }));
1182
1173
  }
1174
+
1175
+ elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
1176
+ bubbles: true,
1177
+ composed: true,
1178
+ detail: {
1179
+ validity: elem.validity,
1180
+ message: elem.errorMessage
1181
+ }
1182
+ }));
1183
1183
  }
1184
1184
 
1185
1185
  /**
@@ -1796,13 +1796,15 @@ class AuroRadioGroup extends i$2 {
1796
1796
  * @returns {void}
1797
1797
  */
1798
1798
  initializeIndex() {
1799
- if (!this.disabled) {
1799
+ if (!this.disabled && this.items && this.items.length > 0) {
1800
1800
  const index = this.items.findIndex((item) => item.hasAttribute('checked') && !item.hasAttribute('disabled'));
1801
1801
  const nextEnabledIndex = this.items.findIndex((item) => !item.hasAttribute('disabled'));
1802
1802
 
1803
1803
  this.index = index >= 0 ? index : nextEnabledIndex;
1804
- this.items[this.index].setAttribute('tabindex', 0);
1805
- }
1804
+
1805
+ if (this.items[this.index]) {
1806
+ this.items[this.index].setAttribute('tabindex', 0);
1807
+ } }
1806
1808
  }
1807
1809
 
1808
1810
  /**
@@ -223,8 +223,8 @@ class AuroRadio extends i$2 {
223
223
  },
224
224
 
225
225
  /**
226
+ * Don't add to api.md since changing of this can easily break a11y.
226
227
  * @private
227
- * not to add to api.md since changing of this can easily break a11y.
228
228
  */
229
229
  role: {
230
230
  type: String,
@@ -1145,16 +1145,16 @@ class AuroFormValidation {
1145
1145
  }
1146
1146
 
1147
1147
  this.getErrorMessage(elem);
1148
-
1149
- elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
1150
- bubbles: true,
1151
- composed: true,
1152
- detail: {
1153
- validity: elem.validity,
1154
- message: elem.errorMessage
1155
- }
1156
- }));
1157
1148
  }
1149
+
1150
+ elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
1151
+ bubbles: true,
1152
+ composed: true,
1153
+ detail: {
1154
+ validity: elem.validity,
1155
+ message: elem.errorMessage
1156
+ }
1157
+ }));
1158
1158
  }
1159
1159
 
1160
1160
  /**
@@ -1771,13 +1771,15 @@ class AuroRadioGroup extends i$2 {
1771
1771
  * @returns {void}
1772
1772
  */
1773
1773
  initializeIndex() {
1774
- if (!this.disabled) {
1774
+ if (!this.disabled && this.items && this.items.length > 0) {
1775
1775
  const index = this.items.findIndex((item) => item.hasAttribute('checked') && !item.hasAttribute('disabled'));
1776
1776
  const nextEnabledIndex = this.items.findIndex((item) => !item.hasAttribute('disabled'));
1777
1777
 
1778
1778
  this.index = index >= 0 ? index : nextEnabledIndex;
1779
- this.items[this.index].setAttribute('tabindex', 0);
1780
- }
1779
+
1780
+ if (this.items[this.index]) {
1781
+ this.items[this.index].setAttribute('tabindex', 0);
1782
+ } }
1781
1783
  }
1782
1784
 
1783
1785
  /**
@@ -71,8 +71,8 @@ export class AuroRadio extends LitElement {
71
71
  attribute: boolean;
72
72
  };
73
73
  /**
74
+ * Don't add to api.md since changing of this can easily break a11y.
74
75
  * @private
75
- * not to add to api.md since changing of this can easily break a11y.
76
76
  */
77
77
  role: {
78
78
  type: StringConstructor;
@@ -183,8 +183,8 @@ class AuroRadio extends LitElement {
183
183
  },
184
184
 
185
185
  /**
186
+ * Don't add to api.md since changing of this can easily break a11y.
186
187
  * @private
187
- * not to add to api.md since changing of this can easily break a11y.
188
188
  */
189
189
  role: {
190
190
  type: String,
@@ -1098,16 +1098,16 @@ class AuroFormValidation {
1098
1098
  }
1099
1099
 
1100
1100
  this.getErrorMessage(elem);
1101
-
1102
- elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
1103
- bubbles: true,
1104
- composed: true,
1105
- detail: {
1106
- validity: elem.validity,
1107
- message: elem.errorMessage
1108
- }
1109
- }));
1110
1101
  }
1102
+
1103
+ elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
1104
+ bubbles: true,
1105
+ composed: true,
1106
+ detail: {
1107
+ validity: elem.validity,
1108
+ message: elem.errorMessage
1109
+ }
1110
+ }));
1111
1111
  }
1112
1112
 
1113
1113
  /**
@@ -1724,13 +1724,15 @@ class AuroRadioGroup extends LitElement {
1724
1724
  * @returns {void}
1725
1725
  */
1726
1726
  initializeIndex() {
1727
- if (!this.disabled) {
1727
+ if (!this.disabled && this.items && this.items.length > 0) {
1728
1728
  const index = this.items.findIndex((item) => item.hasAttribute('checked') && !item.hasAttribute('disabled'));
1729
1729
  const nextEnabledIndex = this.items.findIndex((item) => !item.hasAttribute('disabled'));
1730
1730
 
1731
1731
  this.index = index >= 0 ? index : nextEnabledIndex;
1732
- this.items[this.index].setAttribute('tabindex', 0);
1733
- }
1732
+
1733
+ if (this.items[this.index]) {
1734
+ this.items[this.index].setAttribute('tabindex', 0);
1735
+ } }
1734
1736
  }
1735
1737
 
1736
1738
  /**
@@ -183,8 +183,8 @@ class AuroRadio extends LitElement {
183
183
  },
184
184
 
185
185
  /**
186
+ * Don't add to api.md since changing of this can easily break a11y.
186
187
  * @private
187
- * not to add to api.md since changing of this can easily break a11y.
188
188
  */
189
189
  role: {
190
190
  type: String,
@@ -1098,16 +1098,16 @@ class AuroFormValidation {
1098
1098
  }
1099
1099
 
1100
1100
  this.getErrorMessage(elem);
1101
-
1102
- elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
1103
- bubbles: true,
1104
- composed: true,
1105
- detail: {
1106
- validity: elem.validity,
1107
- message: elem.errorMessage
1108
- }
1109
- }));
1110
1101
  }
1102
+
1103
+ elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
1104
+ bubbles: true,
1105
+ composed: true,
1106
+ detail: {
1107
+ validity: elem.validity,
1108
+ message: elem.errorMessage
1109
+ }
1110
+ }));
1111
1111
  }
1112
1112
 
1113
1113
  /**
@@ -1724,13 +1724,15 @@ class AuroRadioGroup extends LitElement {
1724
1724
  * @returns {void}
1725
1725
  */
1726
1726
  initializeIndex() {
1727
- if (!this.disabled) {
1727
+ if (!this.disabled && this.items && this.items.length > 0) {
1728
1728
  const index = this.items.findIndex((item) => item.hasAttribute('checked') && !item.hasAttribute('disabled'));
1729
1729
  const nextEnabledIndex = this.items.findIndex((item) => !item.hasAttribute('disabled'));
1730
1730
 
1731
1731
  this.index = index >= 0 ? index : nextEnabledIndex;
1732
- this.items[this.index].setAttribute('tabindex', 0);
1733
- }
1732
+
1733
+ if (this.items[this.index]) {
1734
+ this.items[this.index].setAttribute('tabindex', 0);
1735
+ } }
1734
1736
  }
1735
1737
 
1736
1738
  /**