@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
|
@@ -835,16 +835,16 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
835
835
|
}
|
|
836
836
|
|
|
837
837
|
this.getErrorMessage(elem);
|
|
838
|
-
|
|
839
|
-
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
840
|
-
bubbles: true,
|
|
841
|
-
composed: true,
|
|
842
|
-
detail: {
|
|
843
|
-
validity: elem.validity,
|
|
844
|
-
message: elem.errorMessage
|
|
845
|
-
}
|
|
846
|
-
}));
|
|
847
838
|
}
|
|
839
|
+
|
|
840
|
+
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
841
|
+
bubbles: true,
|
|
842
|
+
composed: true,
|
|
843
|
+
detail: {
|
|
844
|
+
validity: elem.validity,
|
|
845
|
+
message: elem.errorMessage
|
|
846
|
+
}
|
|
847
|
+
}));
|
|
848
848
|
}
|
|
849
849
|
|
|
850
850
|
/**
|
|
@@ -3474,7 +3474,7 @@ let AuroElement$1$2 = class AuroElement extends LitElement {
|
|
|
3474
3474
|
}
|
|
3475
3475
|
};
|
|
3476
3476
|
|
|
3477
|
-
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>"};
|
|
3477
|
+
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>"};
|
|
3478
3478
|
|
|
3479
3479
|
/* eslint-disable no-underscore-dangle, jsdoc/no-undefined-types, jsdoc/require-param-description */
|
|
3480
3480
|
|
|
@@ -3574,16 +3574,21 @@ let BaseIcon$2 = class BaseIcon extends AuroElement$1$2 {
|
|
|
3574
3574
|
|
|
3575
3575
|
// lifecycle function
|
|
3576
3576
|
async firstUpdated() {
|
|
3577
|
-
|
|
3578
|
-
|
|
3577
|
+
try {
|
|
3578
|
+
if (!this.customSvg) {
|
|
3579
|
+
const svg = await this.fetchIcon(this.category, this.name);
|
|
3579
3580
|
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3581
|
+
if (svg) {
|
|
3582
|
+
this.svg = svg;
|
|
3583
|
+
} else if (!svg) {
|
|
3584
|
+
const penDOM = new DOMParser().parseFromString(error$2.svg, 'text/html');
|
|
3584
3585
|
|
|
3585
|
-
|
|
3586
|
+
this.svg = penDOM.body.firstChild;
|
|
3587
|
+
}
|
|
3586
3588
|
}
|
|
3589
|
+
// eslint-disable-next-line no-unused-vars
|
|
3590
|
+
} catch (err) {
|
|
3591
|
+
this.svg = undefined;
|
|
3587
3592
|
}
|
|
3588
3593
|
}
|
|
3589
3594
|
};
|
|
@@ -4289,6 +4294,14 @@ let AuroElement$4 = class AuroElement extends LitElement {
|
|
|
4289
4294
|
};
|
|
4290
4295
|
}
|
|
4291
4296
|
|
|
4297
|
+
/**
|
|
4298
|
+
* Returns true if the element has focus.
|
|
4299
|
+
* @returns {boolean} - Returns true if the element has focus.
|
|
4300
|
+
*/
|
|
4301
|
+
get componentHasFocus() {
|
|
4302
|
+
return this.matches(':focus');
|
|
4303
|
+
}
|
|
4304
|
+
|
|
4292
4305
|
resetShapeClasses() {
|
|
4293
4306
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
4294
4307
|
|
|
@@ -10026,16 +10039,16 @@ class AuroFormValidation {
|
|
|
10026
10039
|
}
|
|
10027
10040
|
|
|
10028
10041
|
this.getErrorMessage(elem);
|
|
10029
|
-
|
|
10030
|
-
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
10031
|
-
bubbles: true,
|
|
10032
|
-
composed: true,
|
|
10033
|
-
detail: {
|
|
10034
|
-
validity: elem.validity,
|
|
10035
|
-
message: elem.errorMessage
|
|
10036
|
-
}
|
|
10037
|
-
}));
|
|
10038
10042
|
}
|
|
10043
|
+
|
|
10044
|
+
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
10045
|
+
bubbles: true,
|
|
10046
|
+
composed: true,
|
|
10047
|
+
detail: {
|
|
10048
|
+
validity: elem.validity,
|
|
10049
|
+
message: elem.errorMessage
|
|
10050
|
+
}
|
|
10051
|
+
}));
|
|
10039
10052
|
}
|
|
10040
10053
|
|
|
10041
10054
|
/**
|
|
@@ -10127,6 +10140,14 @@ let AuroElement$2$1 = class AuroElement extends LitElement {
|
|
|
10127
10140
|
};
|
|
10128
10141
|
}
|
|
10129
10142
|
|
|
10143
|
+
/**
|
|
10144
|
+
* Returns true if the element has focus.
|
|
10145
|
+
* @returns {boolean} - Returns true if the element has focus.
|
|
10146
|
+
*/
|
|
10147
|
+
get componentHasFocus() {
|
|
10148
|
+
return this.matches(':focus');
|
|
10149
|
+
}
|
|
10150
|
+
|
|
10130
10151
|
resetShapeClasses() {
|
|
10131
10152
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
10132
10153
|
|
|
@@ -11358,7 +11379,7 @@ let AuroElement$1$1 = class AuroElement extends LitElement {
|
|
|
11358
11379
|
}
|
|
11359
11380
|
};
|
|
11360
11381
|
|
|
11361
|
-
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>"};
|
|
11382
|
+
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>"};
|
|
11362
11383
|
|
|
11363
11384
|
/* eslint-disable no-underscore-dangle, jsdoc/no-undefined-types, jsdoc/require-param-description */
|
|
11364
11385
|
|
|
@@ -11458,16 +11479,21 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1$1 {
|
|
|
11458
11479
|
|
|
11459
11480
|
// lifecycle function
|
|
11460
11481
|
async firstUpdated() {
|
|
11461
|
-
|
|
11462
|
-
|
|
11482
|
+
try {
|
|
11483
|
+
if (!this.customSvg) {
|
|
11484
|
+
const svg = await this.fetchIcon(this.category, this.name);
|
|
11463
11485
|
|
|
11464
|
-
|
|
11465
|
-
|
|
11466
|
-
|
|
11467
|
-
|
|
11486
|
+
if (svg) {
|
|
11487
|
+
this.svg = svg;
|
|
11488
|
+
} else if (!svg) {
|
|
11489
|
+
const penDOM = new DOMParser().parseFromString(error$1.svg, 'text/html');
|
|
11468
11490
|
|
|
11469
|
-
|
|
11491
|
+
this.svg = penDOM.body.firstChild;
|
|
11492
|
+
}
|
|
11470
11493
|
}
|
|
11494
|
+
// eslint-disable-next-line no-unused-vars
|
|
11495
|
+
} catch (err) {
|
|
11496
|
+
this.svg = undefined;
|
|
11471
11497
|
}
|
|
11472
11498
|
}
|
|
11473
11499
|
};
|
|
@@ -14856,7 +14882,7 @@ let AuroElement$2 = class AuroElement extends LitElement {
|
|
|
14856
14882
|
}
|
|
14857
14883
|
};
|
|
14858
14884
|
|
|
14859
|
-
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>"};
|
|
14885
|
+
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>"};
|
|
14860
14886
|
|
|
14861
14887
|
/* eslint-disable no-underscore-dangle, jsdoc/no-undefined-types, jsdoc/require-param-description */
|
|
14862
14888
|
|
|
@@ -14956,16 +14982,21 @@ class BaseIcon extends AuroElement$2 {
|
|
|
14956
14982
|
|
|
14957
14983
|
// lifecycle function
|
|
14958
14984
|
async firstUpdated() {
|
|
14959
|
-
|
|
14960
|
-
|
|
14985
|
+
try {
|
|
14986
|
+
if (!this.customSvg) {
|
|
14987
|
+
const svg = await this.fetchIcon(this.category, this.name);
|
|
14961
14988
|
|
|
14962
|
-
|
|
14963
|
-
|
|
14964
|
-
|
|
14965
|
-
|
|
14989
|
+
if (svg) {
|
|
14990
|
+
this.svg = svg;
|
|
14991
|
+
} else if (!svg) {
|
|
14992
|
+
const penDOM = new DOMParser().parseFromString(error.svg, 'text/html');
|
|
14966
14993
|
|
|
14967
|
-
|
|
14994
|
+
this.svg = penDOM.body.firstChild;
|
|
14995
|
+
}
|
|
14968
14996
|
}
|
|
14997
|
+
// eslint-disable-next-line no-unused-vars
|
|
14998
|
+
} catch (err) {
|
|
14999
|
+
this.svg = undefined;
|
|
14969
15000
|
}
|
|
14970
15001
|
}
|
|
14971
15002
|
}
|
|
@@ -15216,7 +15247,7 @@ class AuroIcon extends BaseIcon {
|
|
|
15216
15247
|
}
|
|
15217
15248
|
}
|
|
15218
15249
|
|
|
15219
|
-
var iconVersion = '8.1.
|
|
15250
|
+
var iconVersion = '8.1.2';
|
|
15220
15251
|
|
|
15221
15252
|
var styleCss$5 = css`.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)}`;
|
|
15222
15253
|
|
|
@@ -15546,7 +15577,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
15546
15577
|
|
|
15547
15578
|
var bibTemplateVersion = '1.0.0';
|
|
15548
15579
|
|
|
15549
|
-
var styleCss$1 = css`.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}`;
|
|
15580
|
+
var styleCss$1 = css`.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}`;
|
|
15550
15581
|
|
|
15551
15582
|
var styleEmphasizedCss = css`:host([layout*=emphasized][shape*=pill]) [auro-input]{width:100%}:host([layout*=emphasized][shape*=pill]) [auro-input]::part(inputHelpText){display:none}`;
|
|
15552
15583
|
|
|
@@ -15586,6 +15617,14 @@ class AuroElement extends LitElement {
|
|
|
15586
15617
|
};
|
|
15587
15618
|
}
|
|
15588
15619
|
|
|
15620
|
+
/**
|
|
15621
|
+
* Returns true if the element has focus.
|
|
15622
|
+
* @returns {boolean} - Returns true if the element has focus.
|
|
15623
|
+
*/
|
|
15624
|
+
get componentHasFocus() {
|
|
15625
|
+
return this.matches(':focus');
|
|
15626
|
+
}
|
|
15627
|
+
|
|
15589
15628
|
resetShapeClasses() {
|
|
15590
15629
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
15591
15630
|
|
|
@@ -16411,7 +16450,7 @@ class AuroCombobox extends AuroElement {
|
|
|
16411
16450
|
|
|
16412
16451
|
// wait a frame in case the bib gets hide immediately after showing because there is no value
|
|
16413
16452
|
setTimeout(() => {
|
|
16414
|
-
if (
|
|
16453
|
+
if (this.componentHasFocus) {
|
|
16415
16454
|
this.setInputFocus();
|
|
16416
16455
|
}
|
|
16417
16456
|
}, 0);
|
|
@@ -16576,13 +16615,16 @@ class AuroCombobox extends AuroElement {
|
|
|
16576
16615
|
* Validate every time we remove focus from the combo box.
|
|
16577
16616
|
*/
|
|
16578
16617
|
this.addEventListener('focusout', () => {
|
|
16579
|
-
if (
|
|
16618
|
+
if (!this.componentHasFocus) {
|
|
16580
16619
|
this.validate();
|
|
16581
16620
|
}
|
|
16582
16621
|
});
|
|
16583
16622
|
|
|
16584
16623
|
// Handle validation messages from auroFormElement-validated event
|
|
16585
16624
|
this.input.addEventListener('auroFormElement-validated', (evt) => {
|
|
16625
|
+
// not to bubble up input's validated event.
|
|
16626
|
+
evt.stopPropagation();
|
|
16627
|
+
|
|
16586
16628
|
this.errorMessage = evt.detail.message;
|
|
16587
16629
|
});
|
|
16588
16630
|
}
|
|
@@ -16653,7 +16695,7 @@ class AuroCombobox extends AuroElement {
|
|
|
16653
16695
|
this.handleMenuOptions();
|
|
16654
16696
|
|
|
16655
16697
|
// Validate only if the value was set programmatically
|
|
16656
|
-
if (
|
|
16698
|
+
if (!this.componentHasFocus) {
|
|
16657
16699
|
this.validate();
|
|
16658
16700
|
}
|
|
16659
16701
|
|
|
@@ -16693,7 +16735,7 @@ class AuroCombobox extends AuroElement {
|
|
|
16693
16735
|
}
|
|
16694
16736
|
} else {
|
|
16695
16737
|
setTimeout(() => {
|
|
16696
|
-
if (
|
|
16738
|
+
if (!this.componentHasFocus) {
|
|
16697
16739
|
this.hideBib();
|
|
16698
16740
|
}
|
|
16699
16741
|
}, 0);
|
|
@@ -16814,7 +16856,7 @@ class AuroCombobox extends AuroElement {
|
|
|
16814
16856
|
}
|
|
16815
16857
|
|
|
16816
16858
|
if (changedProperties.has('availableOptions')) {
|
|
16817
|
-
if (this.availableOptions && this.availableOptions.length > 0 &&
|
|
16859
|
+
if (this.availableOptions && this.availableOptions.length > 0 && this.componentHasFocus) {
|
|
16818
16860
|
this.showBib();
|
|
16819
16861
|
} else {
|
|
16820
16862
|
this.hideBib();
|
|
@@ -835,16 +835,16 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
835
835
|
}
|
|
836
836
|
|
|
837
837
|
this.getErrorMessage(elem);
|
|
838
|
-
|
|
839
|
-
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
840
|
-
bubbles: true,
|
|
841
|
-
composed: true,
|
|
842
|
-
detail: {
|
|
843
|
-
validity: elem.validity,
|
|
844
|
-
message: elem.errorMessage
|
|
845
|
-
}
|
|
846
|
-
}));
|
|
847
838
|
}
|
|
839
|
+
|
|
840
|
+
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
841
|
+
bubbles: true,
|
|
842
|
+
composed: true,
|
|
843
|
+
detail: {
|
|
844
|
+
validity: elem.validity,
|
|
845
|
+
message: elem.errorMessage
|
|
846
|
+
}
|
|
847
|
+
}));
|
|
848
848
|
}
|
|
849
849
|
|
|
850
850
|
/**
|
|
@@ -3474,7 +3474,7 @@ let AuroElement$1$2 = class AuroElement extends LitElement {
|
|
|
3474
3474
|
}
|
|
3475
3475
|
};
|
|
3476
3476
|
|
|
3477
|
-
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>"};
|
|
3477
|
+
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>"};
|
|
3478
3478
|
|
|
3479
3479
|
/* eslint-disable no-underscore-dangle, jsdoc/no-undefined-types, jsdoc/require-param-description */
|
|
3480
3480
|
|
|
@@ -3574,16 +3574,21 @@ let BaseIcon$2 = class BaseIcon extends AuroElement$1$2 {
|
|
|
3574
3574
|
|
|
3575
3575
|
// lifecycle function
|
|
3576
3576
|
async firstUpdated() {
|
|
3577
|
-
|
|
3578
|
-
|
|
3577
|
+
try {
|
|
3578
|
+
if (!this.customSvg) {
|
|
3579
|
+
const svg = await this.fetchIcon(this.category, this.name);
|
|
3579
3580
|
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3581
|
+
if (svg) {
|
|
3582
|
+
this.svg = svg;
|
|
3583
|
+
} else if (!svg) {
|
|
3584
|
+
const penDOM = new DOMParser().parseFromString(error$2.svg, 'text/html');
|
|
3584
3585
|
|
|
3585
|
-
|
|
3586
|
+
this.svg = penDOM.body.firstChild;
|
|
3587
|
+
}
|
|
3586
3588
|
}
|
|
3589
|
+
// eslint-disable-next-line no-unused-vars
|
|
3590
|
+
} catch (err) {
|
|
3591
|
+
this.svg = undefined;
|
|
3587
3592
|
}
|
|
3588
3593
|
}
|
|
3589
3594
|
};
|
|
@@ -4289,6 +4294,14 @@ let AuroElement$4 = class AuroElement extends LitElement {
|
|
|
4289
4294
|
};
|
|
4290
4295
|
}
|
|
4291
4296
|
|
|
4297
|
+
/**
|
|
4298
|
+
* Returns true if the element has focus.
|
|
4299
|
+
* @returns {boolean} - Returns true if the element has focus.
|
|
4300
|
+
*/
|
|
4301
|
+
get componentHasFocus() {
|
|
4302
|
+
return this.matches(':focus');
|
|
4303
|
+
}
|
|
4304
|
+
|
|
4292
4305
|
resetShapeClasses() {
|
|
4293
4306
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
4294
4307
|
|
|
@@ -10026,16 +10039,16 @@ class AuroFormValidation {
|
|
|
10026
10039
|
}
|
|
10027
10040
|
|
|
10028
10041
|
this.getErrorMessage(elem);
|
|
10029
|
-
|
|
10030
|
-
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
10031
|
-
bubbles: true,
|
|
10032
|
-
composed: true,
|
|
10033
|
-
detail: {
|
|
10034
|
-
validity: elem.validity,
|
|
10035
|
-
message: elem.errorMessage
|
|
10036
|
-
}
|
|
10037
|
-
}));
|
|
10038
10042
|
}
|
|
10043
|
+
|
|
10044
|
+
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
10045
|
+
bubbles: true,
|
|
10046
|
+
composed: true,
|
|
10047
|
+
detail: {
|
|
10048
|
+
validity: elem.validity,
|
|
10049
|
+
message: elem.errorMessage
|
|
10050
|
+
}
|
|
10051
|
+
}));
|
|
10039
10052
|
}
|
|
10040
10053
|
|
|
10041
10054
|
/**
|
|
@@ -10127,6 +10140,14 @@ let AuroElement$2$1 = class AuroElement extends LitElement {
|
|
|
10127
10140
|
};
|
|
10128
10141
|
}
|
|
10129
10142
|
|
|
10143
|
+
/**
|
|
10144
|
+
* Returns true if the element has focus.
|
|
10145
|
+
* @returns {boolean} - Returns true if the element has focus.
|
|
10146
|
+
*/
|
|
10147
|
+
get componentHasFocus() {
|
|
10148
|
+
return this.matches(':focus');
|
|
10149
|
+
}
|
|
10150
|
+
|
|
10130
10151
|
resetShapeClasses() {
|
|
10131
10152
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
10132
10153
|
|
|
@@ -11358,7 +11379,7 @@ let AuroElement$1$1 = class AuroElement extends LitElement {
|
|
|
11358
11379
|
}
|
|
11359
11380
|
};
|
|
11360
11381
|
|
|
11361
|
-
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>"};
|
|
11382
|
+
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>"};
|
|
11362
11383
|
|
|
11363
11384
|
/* eslint-disable no-underscore-dangle, jsdoc/no-undefined-types, jsdoc/require-param-description */
|
|
11364
11385
|
|
|
@@ -11458,16 +11479,21 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1$1 {
|
|
|
11458
11479
|
|
|
11459
11480
|
// lifecycle function
|
|
11460
11481
|
async firstUpdated() {
|
|
11461
|
-
|
|
11462
|
-
|
|
11482
|
+
try {
|
|
11483
|
+
if (!this.customSvg) {
|
|
11484
|
+
const svg = await this.fetchIcon(this.category, this.name);
|
|
11463
11485
|
|
|
11464
|
-
|
|
11465
|
-
|
|
11466
|
-
|
|
11467
|
-
|
|
11486
|
+
if (svg) {
|
|
11487
|
+
this.svg = svg;
|
|
11488
|
+
} else if (!svg) {
|
|
11489
|
+
const penDOM = new DOMParser().parseFromString(error$1.svg, 'text/html');
|
|
11468
11490
|
|
|
11469
|
-
|
|
11491
|
+
this.svg = penDOM.body.firstChild;
|
|
11492
|
+
}
|
|
11470
11493
|
}
|
|
11494
|
+
// eslint-disable-next-line no-unused-vars
|
|
11495
|
+
} catch (err) {
|
|
11496
|
+
this.svg = undefined;
|
|
11471
11497
|
}
|
|
11472
11498
|
}
|
|
11473
11499
|
};
|
|
@@ -14856,7 +14882,7 @@ let AuroElement$2 = class AuroElement extends LitElement {
|
|
|
14856
14882
|
}
|
|
14857
14883
|
};
|
|
14858
14884
|
|
|
14859
|
-
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>"};
|
|
14885
|
+
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>"};
|
|
14860
14886
|
|
|
14861
14887
|
/* eslint-disable no-underscore-dangle, jsdoc/no-undefined-types, jsdoc/require-param-description */
|
|
14862
14888
|
|
|
@@ -14956,16 +14982,21 @@ class BaseIcon extends AuroElement$2 {
|
|
|
14956
14982
|
|
|
14957
14983
|
// lifecycle function
|
|
14958
14984
|
async firstUpdated() {
|
|
14959
|
-
|
|
14960
|
-
|
|
14985
|
+
try {
|
|
14986
|
+
if (!this.customSvg) {
|
|
14987
|
+
const svg = await this.fetchIcon(this.category, this.name);
|
|
14961
14988
|
|
|
14962
|
-
|
|
14963
|
-
|
|
14964
|
-
|
|
14965
|
-
|
|
14989
|
+
if (svg) {
|
|
14990
|
+
this.svg = svg;
|
|
14991
|
+
} else if (!svg) {
|
|
14992
|
+
const penDOM = new DOMParser().parseFromString(error.svg, 'text/html');
|
|
14966
14993
|
|
|
14967
|
-
|
|
14994
|
+
this.svg = penDOM.body.firstChild;
|
|
14995
|
+
}
|
|
14968
14996
|
}
|
|
14997
|
+
// eslint-disable-next-line no-unused-vars
|
|
14998
|
+
} catch (err) {
|
|
14999
|
+
this.svg = undefined;
|
|
14969
15000
|
}
|
|
14970
15001
|
}
|
|
14971
15002
|
}
|
|
@@ -15216,7 +15247,7 @@ class AuroIcon extends BaseIcon {
|
|
|
15216
15247
|
}
|
|
15217
15248
|
}
|
|
15218
15249
|
|
|
15219
|
-
var iconVersion = '8.1.
|
|
15250
|
+
var iconVersion = '8.1.2';
|
|
15220
15251
|
|
|
15221
15252
|
var styleCss$5 = css`.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)}`;
|
|
15222
15253
|
|
|
@@ -15546,7 +15577,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
15546
15577
|
|
|
15547
15578
|
var bibTemplateVersion = '1.0.0';
|
|
15548
15579
|
|
|
15549
|
-
var styleCss$1 = css`.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}`;
|
|
15580
|
+
var styleCss$1 = css`.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}`;
|
|
15550
15581
|
|
|
15551
15582
|
var styleEmphasizedCss = css`:host([layout*=emphasized][shape*=pill]) [auro-input]{width:100%}:host([layout*=emphasized][shape*=pill]) [auro-input]::part(inputHelpText){display:none}`;
|
|
15552
15583
|
|
|
@@ -15586,6 +15617,14 @@ class AuroElement extends LitElement {
|
|
|
15586
15617
|
};
|
|
15587
15618
|
}
|
|
15588
15619
|
|
|
15620
|
+
/**
|
|
15621
|
+
* Returns true if the element has focus.
|
|
15622
|
+
* @returns {boolean} - Returns true if the element has focus.
|
|
15623
|
+
*/
|
|
15624
|
+
get componentHasFocus() {
|
|
15625
|
+
return this.matches(':focus');
|
|
15626
|
+
}
|
|
15627
|
+
|
|
15589
15628
|
resetShapeClasses() {
|
|
15590
15629
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
15591
15630
|
|
|
@@ -16411,7 +16450,7 @@ class AuroCombobox extends AuroElement {
|
|
|
16411
16450
|
|
|
16412
16451
|
// wait a frame in case the bib gets hide immediately after showing because there is no value
|
|
16413
16452
|
setTimeout(() => {
|
|
16414
|
-
if (
|
|
16453
|
+
if (this.componentHasFocus) {
|
|
16415
16454
|
this.setInputFocus();
|
|
16416
16455
|
}
|
|
16417
16456
|
}, 0);
|
|
@@ -16576,13 +16615,16 @@ class AuroCombobox extends AuroElement {
|
|
|
16576
16615
|
* Validate every time we remove focus from the combo box.
|
|
16577
16616
|
*/
|
|
16578
16617
|
this.addEventListener('focusout', () => {
|
|
16579
|
-
if (
|
|
16618
|
+
if (!this.componentHasFocus) {
|
|
16580
16619
|
this.validate();
|
|
16581
16620
|
}
|
|
16582
16621
|
});
|
|
16583
16622
|
|
|
16584
16623
|
// Handle validation messages from auroFormElement-validated event
|
|
16585
16624
|
this.input.addEventListener('auroFormElement-validated', (evt) => {
|
|
16625
|
+
// not to bubble up input's validated event.
|
|
16626
|
+
evt.stopPropagation();
|
|
16627
|
+
|
|
16586
16628
|
this.errorMessage = evt.detail.message;
|
|
16587
16629
|
});
|
|
16588
16630
|
}
|
|
@@ -16653,7 +16695,7 @@ class AuroCombobox extends AuroElement {
|
|
|
16653
16695
|
this.handleMenuOptions();
|
|
16654
16696
|
|
|
16655
16697
|
// Validate only if the value was set programmatically
|
|
16656
|
-
if (
|
|
16698
|
+
if (!this.componentHasFocus) {
|
|
16657
16699
|
this.validate();
|
|
16658
16700
|
}
|
|
16659
16701
|
|
|
@@ -16693,7 +16735,7 @@ class AuroCombobox extends AuroElement {
|
|
|
16693
16735
|
}
|
|
16694
16736
|
} else {
|
|
16695
16737
|
setTimeout(() => {
|
|
16696
|
-
if (
|
|
16738
|
+
if (!this.componentHasFocus) {
|
|
16697
16739
|
this.hideBib();
|
|
16698
16740
|
}
|
|
16699
16741
|
}, 0);
|
|
@@ -16814,7 +16856,7 @@ class AuroCombobox extends AuroElement {
|
|
|
16814
16856
|
}
|
|
16815
16857
|
|
|
16816
16858
|
if (changedProperties.has('availableOptions')) {
|
|
16817
|
-
if (this.availableOptions && this.availableOptions.length > 0 &&
|
|
16859
|
+
if (this.availableOptions && this.availableOptions.length > 0 && this.componentHasFocus) {
|
|
16818
16860
|
this.showBib();
|
|
16819
16861
|
} else {
|
|
16820
16862
|
this.hideBib();
|