@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.
- package/CHANGELOG.md +7 -9
- package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +14 -9
- package/components/bibtemplate/dist/registered.js +14 -9
- package/components/checkbox/demo/api.min.js +37 -9
- package/components/checkbox/demo/index.min.js +37 -9
- package/components/checkbox/dist/auro-checkbox.d.ts +7 -0
- package/components/checkbox/dist/index.js +37 -9
- package/components/checkbox/dist/registered.js +37 -9
- package/components/combobox/demo/api.min.js +105 -58
- package/components/combobox/demo/index.min.js +105 -58
- package/components/combobox/dist/index.js +91 -49
- package/components/combobox/dist/registered.js +91 -49
- package/components/counter/demo/api.min.js +75 -40
- package/components/counter/demo/index.min.js +75 -40
- package/components/counter/dist/iconVersion.d.ts +1 -1
- package/components/counter/dist/index.js +75 -40
- package/components/counter/dist/registered.js +75 -40
- package/components/datepicker/demo/api.md +1 -0
- package/components/datepicker/demo/api.min.js +98 -52
- package/components/datepicker/demo/index.min.js +98 -52
- package/components/datepicker/dist/index.js +98 -52
- package/components/datepicker/dist/registered.js +98 -52
- package/components/dropdown/demo/api.min.js +21 -8
- package/components/dropdown/demo/index.min.js +21 -8
- package/components/dropdown/dist/index.js +21 -8
- package/components/dropdown/dist/registered.js +21 -8
- package/components/input/demo/api.min.js +30 -17
- package/components/input/demo/index.min.js +30 -17
- package/components/input/dist/index.js +30 -17
- package/components/input/dist/registered.js +30 -17
- package/components/layoutElement/dist/auroElement.d.ts +5 -0
- package/components/layoutElement/dist/index.js +8 -0
- package/components/layoutElement/dist/registered.js +8 -0
- package/components/menu/demo/api.min.js +22 -9
- package/components/menu/demo/index.min.js +22 -9
- package/components/menu/dist/iconVersion.d.ts +1 -1
- package/components/menu/dist/index.js +22 -9
- package/components/menu/dist/registered.js +22 -9
- package/components/radio/demo/api.min.js +15 -13
- package/components/radio/demo/index.min.js +15 -13
- package/components/radio/dist/auro-radio.d.ts +1 -1
- package/components/radio/dist/index.js +15 -13
- package/components/radio/dist/registered.js +15 -13
- package/components/select/demo/api.min.js +66 -35
- package/components/select/demo/index.min.js +66 -35
- package/components/select/dist/index.js +52 -26
- package/components/select/dist/registered.js +52 -26
- package/package.json +1 -1
|
@@ -1040,16 +1040,16 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
1040
1040
|
}
|
|
1041
1041
|
|
|
1042
1042
|
this.getErrorMessage(elem);
|
|
1043
|
-
|
|
1044
|
-
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
1045
|
-
bubbles: true,
|
|
1046
|
-
composed: true,
|
|
1047
|
-
detail: {
|
|
1048
|
-
validity: elem.validity,
|
|
1049
|
-
message: elem.errorMessage
|
|
1050
|
-
}
|
|
1051
|
-
}));
|
|
1052
1043
|
}
|
|
1044
|
+
|
|
1045
|
+
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
1046
|
+
bubbles: true,
|
|
1047
|
+
composed: true,
|
|
1048
|
+
detail: {
|
|
1049
|
+
validity: elem.validity,
|
|
1050
|
+
message: elem.errorMessage
|
|
1051
|
+
}
|
|
1052
|
+
}));
|
|
1053
1053
|
}
|
|
1054
1054
|
|
|
1055
1055
|
/**
|
|
@@ -3685,7 +3685,7 @@ let AuroElement$1$3 = class AuroElement extends i$2 {
|
|
|
3685
3685
|
}
|
|
3686
3686
|
};
|
|
3687
3687
|
|
|
3688
|
-
var error$3 = {"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>"};
|
|
3688
|
+
var error$3 = {"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>"};
|
|
3689
3689
|
|
|
3690
3690
|
/* eslint-disable no-underscore-dangle, jsdoc/no-undefined-types, jsdoc/require-param-description */
|
|
3691
3691
|
|
|
@@ -3785,16 +3785,21 @@ let BaseIcon$3 = class BaseIcon extends AuroElement$1$3 {
|
|
|
3785
3785
|
|
|
3786
3786
|
// lifecycle function
|
|
3787
3787
|
async firstUpdated() {
|
|
3788
|
-
|
|
3789
|
-
|
|
3788
|
+
try {
|
|
3789
|
+
if (!this.customSvg) {
|
|
3790
|
+
const svg = await this.fetchIcon(this.category, this.name);
|
|
3790
3791
|
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3792
|
+
if (svg) {
|
|
3793
|
+
this.svg = svg;
|
|
3794
|
+
} else if (!svg) {
|
|
3795
|
+
const penDOM = new DOMParser().parseFromString(error$3.svg, 'text/html');
|
|
3795
3796
|
|
|
3796
|
-
|
|
3797
|
+
this.svg = penDOM.body.firstChild;
|
|
3798
|
+
}
|
|
3797
3799
|
}
|
|
3800
|
+
// eslint-disable-next-line no-unused-vars
|
|
3801
|
+
} catch (err) {
|
|
3802
|
+
this.svg = undefined;
|
|
3798
3803
|
}
|
|
3799
3804
|
}
|
|
3800
3805
|
};
|
|
@@ -4500,6 +4505,14 @@ let AuroElement$4 = class AuroElement extends i$2 {
|
|
|
4500
4505
|
};
|
|
4501
4506
|
}
|
|
4502
4507
|
|
|
4508
|
+
/**
|
|
4509
|
+
* Returns true if the element has focus.
|
|
4510
|
+
* @returns {boolean} - Returns true if the element has focus.
|
|
4511
|
+
*/
|
|
4512
|
+
get componentHasFocus() {
|
|
4513
|
+
return this.matches(':focus');
|
|
4514
|
+
}
|
|
4515
|
+
|
|
4503
4516
|
resetShapeClasses() {
|
|
4504
4517
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
4505
4518
|
|
|
@@ -10250,16 +10263,16 @@ class AuroFormValidation {
|
|
|
10250
10263
|
}
|
|
10251
10264
|
|
|
10252
10265
|
this.getErrorMessage(elem);
|
|
10253
|
-
|
|
10254
|
-
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
10255
|
-
bubbles: true,
|
|
10256
|
-
composed: true,
|
|
10257
|
-
detail: {
|
|
10258
|
-
validity: elem.validity,
|
|
10259
|
-
message: elem.errorMessage
|
|
10260
|
-
}
|
|
10261
|
-
}));
|
|
10262
10266
|
}
|
|
10267
|
+
|
|
10268
|
+
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
10269
|
+
bubbles: true,
|
|
10270
|
+
composed: true,
|
|
10271
|
+
detail: {
|
|
10272
|
+
validity: elem.validity,
|
|
10273
|
+
message: elem.errorMessage
|
|
10274
|
+
}
|
|
10275
|
+
}));
|
|
10263
10276
|
}
|
|
10264
10277
|
|
|
10265
10278
|
/**
|
|
@@ -10351,6 +10364,14 @@ let AuroElement$2$1 = class AuroElement extends i$2 {
|
|
|
10351
10364
|
};
|
|
10352
10365
|
}
|
|
10353
10366
|
|
|
10367
|
+
/**
|
|
10368
|
+
* Returns true if the element has focus.
|
|
10369
|
+
* @returns {boolean} - Returns true if the element has focus.
|
|
10370
|
+
*/
|
|
10371
|
+
get componentHasFocus() {
|
|
10372
|
+
return this.matches(':focus');
|
|
10373
|
+
}
|
|
10374
|
+
|
|
10354
10375
|
resetShapeClasses() {
|
|
10355
10376
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
10356
10377
|
|
|
@@ -11582,7 +11603,7 @@ let AuroElement$1$2 = class AuroElement extends i$2 {
|
|
|
11582
11603
|
}
|
|
11583
11604
|
};
|
|
11584
11605
|
|
|
11585
|
-
var error$2 = {"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>"};
|
|
11606
|
+
var error$2 = {"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>"};
|
|
11586
11607
|
|
|
11587
11608
|
/* eslint-disable no-underscore-dangle, jsdoc/no-undefined-types, jsdoc/require-param-description */
|
|
11588
11609
|
|
|
@@ -11682,16 +11703,21 @@ let BaseIcon$2 = class BaseIcon extends AuroElement$1$2 {
|
|
|
11682
11703
|
|
|
11683
11704
|
// lifecycle function
|
|
11684
11705
|
async firstUpdated() {
|
|
11685
|
-
|
|
11686
|
-
|
|
11706
|
+
try {
|
|
11707
|
+
if (!this.customSvg) {
|
|
11708
|
+
const svg = await this.fetchIcon(this.category, this.name);
|
|
11687
11709
|
|
|
11688
|
-
|
|
11689
|
-
|
|
11690
|
-
|
|
11691
|
-
|
|
11710
|
+
if (svg) {
|
|
11711
|
+
this.svg = svg;
|
|
11712
|
+
} else if (!svg) {
|
|
11713
|
+
const penDOM = new DOMParser().parseFromString(error$2.svg, 'text/html');
|
|
11692
11714
|
|
|
11693
|
-
|
|
11715
|
+
this.svg = penDOM.body.firstChild;
|
|
11716
|
+
}
|
|
11694
11717
|
}
|
|
11718
|
+
// eslint-disable-next-line no-unused-vars
|
|
11719
|
+
} catch (err) {
|
|
11720
|
+
this.svg = undefined;
|
|
11695
11721
|
}
|
|
11696
11722
|
}
|
|
11697
11723
|
};
|
|
@@ -15080,7 +15106,7 @@ let AuroElement$2 = class AuroElement extends i$2 {
|
|
|
15080
15106
|
}
|
|
15081
15107
|
};
|
|
15082
15108
|
|
|
15083
|
-
var error$1 = {"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>"};
|
|
15109
|
+
var error$1 = {"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>"};
|
|
15084
15110
|
|
|
15085
15111
|
/* eslint-disable no-underscore-dangle, jsdoc/no-undefined-types, jsdoc/require-param-description */
|
|
15086
15112
|
|
|
@@ -15180,16 +15206,21 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$2 {
|
|
|
15180
15206
|
|
|
15181
15207
|
// lifecycle function
|
|
15182
15208
|
async firstUpdated() {
|
|
15183
|
-
|
|
15184
|
-
|
|
15209
|
+
try {
|
|
15210
|
+
if (!this.customSvg) {
|
|
15211
|
+
const svg = await this.fetchIcon(this.category, this.name);
|
|
15185
15212
|
|
|
15186
|
-
|
|
15187
|
-
|
|
15188
|
-
|
|
15189
|
-
|
|
15213
|
+
if (svg) {
|
|
15214
|
+
this.svg = svg;
|
|
15215
|
+
} else if (!svg) {
|
|
15216
|
+
const penDOM = new DOMParser().parseFromString(error$1.svg, 'text/html');
|
|
15190
15217
|
|
|
15191
|
-
|
|
15218
|
+
this.svg = penDOM.body.firstChild;
|
|
15219
|
+
}
|
|
15192
15220
|
}
|
|
15221
|
+
// eslint-disable-next-line no-unused-vars
|
|
15222
|
+
} catch (err) {
|
|
15223
|
+
this.svg = undefined;
|
|
15193
15224
|
}
|
|
15194
15225
|
}
|
|
15195
15226
|
};
|
|
@@ -15440,7 +15471,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
15440
15471
|
}
|
|
15441
15472
|
};
|
|
15442
15473
|
|
|
15443
|
-
var iconVersion$1 = '8.1.
|
|
15474
|
+
var iconVersion$1 = '8.1.2';
|
|
15444
15475
|
|
|
15445
15476
|
var styleCss$5 = i$5`.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.63)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, 0.88)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3)}:host([no-margin-block]) .heading{margin-block:0}.util_stackMarginnone--bottom{margin-bottom:0}.util_stackMargin25--bottom{margin-bottom:var(--ds-size-25, 0.125rem)}.util_stackMargin50--bottom{margin-bottom:var(--ds-size-50, 0.25rem)}.util_stackMargin100--bottom{margin-bottom:var(--ds-size-100, 0.5rem)}.util_stackMargin150--bottom{margin-bottom:var(--ds-size-150, 0.75rem)}.util_stackMargin200--bottom{margin-bottom:var(--ds-size-200, 1rem)}.util_stackMargin300--bottom{margin-bottom:var(--ds-size-300, 1.5rem)}.util_stackMargin400--bottom{margin-bottom:var(--ds-size-400, 2rem)}.util_stackMargin600--bottom{margin-bottom:var(--ds-size-600, 3rem)}.util_stackMargin800--bottom{margin-bottom:var(--ds-size-800, 4rem)}.util_stackMarginnone--top{margin-top:0}.util_stackMargin25--top{margin-top:var(--ds-size-25, 0.125rem)}.util_stackMargin50--top{margin-top:var(--ds-size-50, 0.25rem)}.util_stackMargin100--top{margin-top:var(--ds-size-100, 0.5rem)}.util_stackMargin150--top{margin-top:var(--ds-size-150, 0.75rem)}.util_stackMargin200--top{margin-top:var(--ds-size-200, 1rem)}.util_stackMargin300--top{margin-top:var(--ds-size-300, 1.5rem)}.util_stackMargin400--top{margin-top:var(--ds-size-400, 2rem)}.util_stackMargin600--top{margin-top:var(--ds-size-600, 3rem)}.util_stackMargin800--top{margin-top:var(--ds-size-800, 4rem)}`;
|
|
15446
15477
|
|
|
@@ -15770,7 +15801,7 @@ class AuroBibtemplate extends i$2 {
|
|
|
15770
15801
|
|
|
15771
15802
|
var bibTemplateVersion = '1.0.0';
|
|
15772
15803
|
|
|
15773
|
-
var styleCss$4 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host{display:block;text-align:left}:host [auro-input]{--ds-auro-input-container-color: transparent}:host #inputInBib::part(wrapper){box-shadow:none}:host #inputInBib::part(accent-left){display:none}:host #inputInBib::part(accent-right){display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) #slotHolder{display:none}`;
|
|
15804
|
+
var styleCss$4 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host{display:block;text-align:left}:host [auro-input]{--ds-auro-input-background-color: transparent;--ds-auro-input-container-color: transparent}:host #inputInBib::part(wrapper){box-shadow:none}:host #inputInBib::part(accent-left){display:none}:host #inputInBib::part(accent-right){display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) #slotHolder{display:none}`;
|
|
15774
15805
|
|
|
15775
15806
|
var styleEmphasizedCss = i$5`:host([layout*=emphasized][shape*=pill]) [auro-input]{width:100%}:host([layout*=emphasized][shape*=pill]) [auro-input]::part(inputHelpText){display:none}`;
|
|
15776
15807
|
|
|
@@ -15810,6 +15841,14 @@ let AuroElement$1 = class AuroElement extends i$2 {
|
|
|
15810
15841
|
};
|
|
15811
15842
|
}
|
|
15812
15843
|
|
|
15844
|
+
/**
|
|
15845
|
+
* Returns true if the element has focus.
|
|
15846
|
+
* @returns {boolean} - Returns true if the element has focus.
|
|
15847
|
+
*/
|
|
15848
|
+
get componentHasFocus() {
|
|
15849
|
+
return this.matches(':focus');
|
|
15850
|
+
}
|
|
15851
|
+
|
|
15813
15852
|
resetShapeClasses() {
|
|
15814
15853
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
15815
15854
|
|
|
@@ -16635,7 +16674,7 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16635
16674
|
|
|
16636
16675
|
// wait a frame in case the bib gets hide immediately after showing because there is no value
|
|
16637
16676
|
setTimeout(() => {
|
|
16638
|
-
if (
|
|
16677
|
+
if (this.componentHasFocus) {
|
|
16639
16678
|
this.setInputFocus();
|
|
16640
16679
|
}
|
|
16641
16680
|
}, 0);
|
|
@@ -16800,13 +16839,16 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16800
16839
|
* Validate every time we remove focus from the combo box.
|
|
16801
16840
|
*/
|
|
16802
16841
|
this.addEventListener('focusout', () => {
|
|
16803
|
-
if (
|
|
16842
|
+
if (!this.componentHasFocus) {
|
|
16804
16843
|
this.validate();
|
|
16805
16844
|
}
|
|
16806
16845
|
});
|
|
16807
16846
|
|
|
16808
16847
|
// Handle validation messages from auroFormElement-validated event
|
|
16809
16848
|
this.input.addEventListener('auroFormElement-validated', (evt) => {
|
|
16849
|
+
// not to bubble up input's validated event.
|
|
16850
|
+
evt.stopPropagation();
|
|
16851
|
+
|
|
16810
16852
|
this.errorMessage = evt.detail.message;
|
|
16811
16853
|
});
|
|
16812
16854
|
}
|
|
@@ -16877,7 +16919,7 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16877
16919
|
this.handleMenuOptions();
|
|
16878
16920
|
|
|
16879
16921
|
// Validate only if the value was set programmatically
|
|
16880
|
-
if (
|
|
16922
|
+
if (!this.componentHasFocus) {
|
|
16881
16923
|
this.validate();
|
|
16882
16924
|
}
|
|
16883
16925
|
|
|
@@ -16917,7 +16959,7 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16917
16959
|
}
|
|
16918
16960
|
} else {
|
|
16919
16961
|
setTimeout(() => {
|
|
16920
|
-
if (
|
|
16962
|
+
if (!this.componentHasFocus) {
|
|
16921
16963
|
this.hideBib();
|
|
16922
16964
|
}
|
|
16923
16965
|
}, 0);
|
|
@@ -17038,7 +17080,7 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
17038
17080
|
}
|
|
17039
17081
|
|
|
17040
17082
|
if (changedProperties.has('availableOptions')) {
|
|
17041
|
-
if (this.availableOptions && this.availableOptions.length > 0 &&
|
|
17083
|
+
if (this.availableOptions && this.availableOptions.length > 0 && this.componentHasFocus) {
|
|
17042
17084
|
this.showBib();
|
|
17043
17085
|
} else {
|
|
17044
17086
|
this.hideBib();
|
|
@@ -18134,7 +18176,7 @@ class AuroElement extends i$2 {
|
|
|
18134
18176
|
}
|
|
18135
18177
|
}
|
|
18136
18178
|
|
|
18137
|
-
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>"};
|
|
18179
|
+
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>"};
|
|
18138
18180
|
|
|
18139
18181
|
/* eslint-disable no-underscore-dangle, jsdoc/no-undefined-types, jsdoc/require-param-description */
|
|
18140
18182
|
|
|
@@ -18234,16 +18276,21 @@ class BaseIcon extends AuroElement {
|
|
|
18234
18276
|
|
|
18235
18277
|
// lifecycle function
|
|
18236
18278
|
async firstUpdated() {
|
|
18237
|
-
|
|
18238
|
-
|
|
18279
|
+
try {
|
|
18280
|
+
if (!this.customSvg) {
|
|
18281
|
+
const svg = await this.fetchIcon(this.category, this.name);
|
|
18239
18282
|
|
|
18240
|
-
|
|
18241
|
-
|
|
18242
|
-
|
|
18243
|
-
|
|
18283
|
+
if (svg) {
|
|
18284
|
+
this.svg = svg;
|
|
18285
|
+
} else if (!svg) {
|
|
18286
|
+
const penDOM = new DOMParser().parseFromString(error.svg, 'text/html');
|
|
18244
18287
|
|
|
18245
|
-
|
|
18288
|
+
this.svg = penDOM.body.firstChild;
|
|
18289
|
+
}
|
|
18246
18290
|
}
|
|
18291
|
+
// eslint-disable-next-line no-unused-vars
|
|
18292
|
+
} catch (err) {
|
|
18293
|
+
this.svg = undefined;
|
|
18247
18294
|
}
|
|
18248
18295
|
}
|
|
18249
18296
|
}
|
|
@@ -18494,7 +18541,7 @@ class AuroIcon extends BaseIcon {
|
|
|
18494
18541
|
}
|
|
18495
18542
|
}
|
|
18496
18543
|
|
|
18497
|
-
var iconVersion = '8.1.
|
|
18544
|
+
var iconVersion = '8.1.2';
|
|
18498
18545
|
|
|
18499
18546
|
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>"};
|
|
18500
18547
|
|