@aurodesignsystem/auro-formkit 5.1.0-rc-1044.1 → 5.1.1
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 +1 -14
- package/components/checkbox/demo/api.min.js +9 -37
- package/components/checkbox/demo/index.min.js +9 -37
- package/components/checkbox/dist/auro-checkbox.d.ts +0 -7
- package/components/checkbox/dist/index.js +9 -37
- package/components/checkbox/dist/registered.js +9 -37
- package/components/combobox/demo/api.min.js +24 -51
- package/components/combobox/demo/index.min.js +24 -51
- package/components/combobox/dist/index.js +24 -51
- package/components/combobox/dist/registered.js +24 -51
- package/components/counter/demo/api.min.js +9 -25
- package/components/counter/demo/index.min.js +9 -25
- package/components/counter/dist/index.js +9 -25
- package/components/counter/dist/registered.js +9 -25
- package/components/datepicker/demo/api.md +0 -1
- package/components/datepicker/demo/api.min.js +19 -45
- package/components/datepicker/demo/index.min.js +19 -45
- package/components/datepicker/dist/index.js +19 -45
- package/components/datepicker/dist/registered.js +19 -45
- package/components/dropdown/demo/api.min.js +0 -8
- package/components/dropdown/demo/index.min.js +0 -8
- package/components/dropdown/dist/index.js +0 -8
- package/components/dropdown/dist/registered.js +0 -8
- package/components/input/demo/api.min.js +9 -17
- package/components/input/demo/index.min.js +9 -17
- package/components/input/dist/index.js +9 -17
- package/components/input/dist/registered.js +9 -17
- package/components/layoutElement/dist/auroElement.d.ts +0 -5
- package/components/layoutElement/dist/index.js +0 -8
- package/components/layoutElement/dist/registered.js +0 -8
- package/components/menu/demo/api.min.js +0 -8
- package/components/menu/demo/index.min.js +0 -8
- package/components/menu/dist/index.js +0 -8
- package/components/menu/dist/registered.js +0 -8
- package/components/radio/demo/api.min.js +13 -15
- package/components/radio/demo/index.min.js +13 -15
- package/components/radio/dist/auro-radio.d.ts +1 -1
- package/components/radio/dist/index.js +13 -15
- package/components/radio/dist/registered.js +13 -15
- package/components/select/demo/api.min.js +9 -25
- package/components/select/demo/index.min.js +9 -25
- package/components/select/dist/index.js +9 -25
- package/components/select/dist/registered.js +9 -25
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,22 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
## [5.1.1](https://github.com/AlaskaAirlines/auro-formkit/compare/v5.1.0...v5.1.1) (2025-07-29)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
* fire only one `auroFormElement-validated` per validation [#878](https://github.com/AlaskaAirlines/auro-formkit/issues/878) ([7894538](https://github.com/AlaskaAirlines/auro-formkit/commit/7894538dc18872c06565ddd7b4cdd978f628a995))
|
|
7
|
-
* handle empty radio groups [#1039](https://github.com/AlaskaAirlines/auro-formkit/issues/1039) ([d4effb9](https://github.com/AlaskaAirlines/auro-formkit/commit/d4effb999da791d22efa200ccd2a210b563425da))
|
|
8
|
-
* menu doesn't show when typing character the first time ([b71f691](https://github.com/AlaskaAirlines/auro-formkit/commit/b71f691f0ca4dcc043d9fbdd37d462d4318e981e))
|
|
9
|
-
* mis-alignment on checkmark with `text-align: center | right` ([6e1abc8](https://github.com/AlaskaAirlines/auro-formkit/commit/6e1abc8182ab8fbae63061a2e27c9ed4a88d2863))
|
|
10
|
-
* prevent the alignment breakage from inherited text-align style [#880](https://github.com/AlaskaAirlines/auro-formkit/issues/880) ([3e14b4e](https://github.com/AlaskaAirlines/auro-formkit/commit/3e14b4e8a9c9e3ffb2d6f874fd80f6896b64a028))
|
|
11
|
-
* refactor focus detection to not rely on document.activeElement [#1042](https://github.com/AlaskaAirlines/auro-formkit/issues/1042) ([5d841ce](https://github.com/AlaskaAirlines/auro-formkit/commit/5d841ce1122f272d4b4b92af174b52441febe3fc))
|
|
12
|
-
* toggle checkbox with Space key [#1016](https://github.com/AlaskaAirlines/auro-formkit/issues/1016) ([2f2f339](https://github.com/AlaskaAirlines/auro-formkit/commit/2f2f339c72c6ac8d537da054309d8a6b0ad401ff))
|
|
13
6
|
* try/catch DOMParser ([111bb76](https://github.com/AlaskaAirlines/auro-formkit/commit/111bb764d9a342d0d8c0b6627832f900d56cdb11))
|
|
14
|
-
* update combobox input background color ([82a21f0](https://github.com/AlaskaAirlines/auro-formkit/commit/82a21f08e7d6711d1ad2afd0b495c220caa3d7e3))
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
### Features
|
|
18
|
-
|
|
19
|
-
* rotate chevron when dropdown bib toggles [#965](https://github.com/AlaskaAirlines/auro-formkit/issues/965) ([5f96983](https://github.com/AlaskaAirlines/auro-formkit/commit/5f9698329aacbaeb8ced107f87246e09f4142e88))
|
|
20
7
|
|
|
21
8
|
### Changelog
|
|
22
9
|
|
|
@@ -129,7 +129,6 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
129
129
|
}
|
|
130
130
|
};
|
|
131
131
|
|
|
132
|
-
/* eslint-disable max-lines */
|
|
133
132
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
134
133
|
// See LICENSE in the project root for license information.
|
|
135
134
|
|
|
@@ -368,33 +367,6 @@ class AuroCheckbox extends i$2 {
|
|
|
368
367
|
});
|
|
369
368
|
}
|
|
370
369
|
|
|
371
|
-
connectedCallback() {
|
|
372
|
-
super.connectedCallback();
|
|
373
|
-
|
|
374
|
-
this.handleKeyDown = this.handleKeyDown.bind(this);
|
|
375
|
-
this.addEventListener('keydown', this.handleKeyDown);
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
disconnectedCallback() {
|
|
379
|
-
super.disconnectedCallback();
|
|
380
|
-
|
|
381
|
-
this.removeEventListener('keydown', this.handleKeyDown);
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
/**
|
|
385
|
-
* Handles keydown event to toggle the checkbox with Space key.
|
|
386
|
-
* @private
|
|
387
|
-
* @param {KeyboardEvent} event - The keydown event from the checkbox input.
|
|
388
|
-
* @returns {void}
|
|
389
|
-
*/
|
|
390
|
-
handleKeyDown(event) {
|
|
391
|
-
if (event.key === ' ' && !this.disabled) {
|
|
392
|
-
event.preventDefault();
|
|
393
|
-
|
|
394
|
-
this.shadowRoot.querySelector('input').click();
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
|
|
398
370
|
/**
|
|
399
371
|
* @private
|
|
400
372
|
* @returns {HTMLElement}
|
|
@@ -1160,16 +1132,16 @@ class AuroFormValidation {
|
|
|
1160
1132
|
}
|
|
1161
1133
|
|
|
1162
1134
|
this.getErrorMessage(elem);
|
|
1163
|
-
}
|
|
1164
1135
|
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1136
|
+
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
1137
|
+
bubbles: true,
|
|
1138
|
+
composed: true,
|
|
1139
|
+
detail: {
|
|
1140
|
+
validity: elem.validity,
|
|
1141
|
+
message: elem.errorMessage
|
|
1142
|
+
}
|
|
1143
|
+
}));
|
|
1144
|
+
}
|
|
1173
1145
|
}
|
|
1174
1146
|
|
|
1175
1147
|
/**
|
|
@@ -121,7 +121,6 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
121
121
|
}
|
|
122
122
|
};
|
|
123
123
|
|
|
124
|
-
/* eslint-disable max-lines */
|
|
125
124
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
126
125
|
// See LICENSE in the project root for license information.
|
|
127
126
|
|
|
@@ -360,33 +359,6 @@ class AuroCheckbox extends i$2 {
|
|
|
360
359
|
});
|
|
361
360
|
}
|
|
362
361
|
|
|
363
|
-
connectedCallback() {
|
|
364
|
-
super.connectedCallback();
|
|
365
|
-
|
|
366
|
-
this.handleKeyDown = this.handleKeyDown.bind(this);
|
|
367
|
-
this.addEventListener('keydown', this.handleKeyDown);
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
disconnectedCallback() {
|
|
371
|
-
super.disconnectedCallback();
|
|
372
|
-
|
|
373
|
-
this.removeEventListener('keydown', this.handleKeyDown);
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
/**
|
|
377
|
-
* Handles keydown event to toggle the checkbox with Space key.
|
|
378
|
-
* @private
|
|
379
|
-
* @param {KeyboardEvent} event - The keydown event from the checkbox input.
|
|
380
|
-
* @returns {void}
|
|
381
|
-
*/
|
|
382
|
-
handleKeyDown(event) {
|
|
383
|
-
if (event.key === ' ' && !this.disabled) {
|
|
384
|
-
event.preventDefault();
|
|
385
|
-
|
|
386
|
-
this.shadowRoot.querySelector('input').click();
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
|
|
390
362
|
/**
|
|
391
363
|
* @private
|
|
392
364
|
* @returns {HTMLElement}
|
|
@@ -1152,16 +1124,16 @@ class AuroFormValidation {
|
|
|
1152
1124
|
}
|
|
1153
1125
|
|
|
1154
1126
|
this.getErrorMessage(elem);
|
|
1155
|
-
}
|
|
1156
1127
|
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1128
|
+
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
1129
|
+
bubbles: true,
|
|
1130
|
+
composed: true,
|
|
1131
|
+
detail: {
|
|
1132
|
+
validity: elem.validity,
|
|
1133
|
+
message: elem.errorMessage
|
|
1134
|
+
}
|
|
1135
|
+
}));
|
|
1136
|
+
}
|
|
1165
1137
|
}
|
|
1166
1138
|
|
|
1167
1139
|
/**
|
|
@@ -127,13 +127,6 @@ export class AuroCheckbox extends LitElement {
|
|
|
127
127
|
reset(): void;
|
|
128
128
|
firstUpdated(): void;
|
|
129
129
|
inputId: string;
|
|
130
|
-
/**
|
|
131
|
-
* Handles keydown event to toggle the checkbox with Space key.
|
|
132
|
-
* @private
|
|
133
|
-
* @param {KeyboardEvent} event - The keydown event from the checkbox input.
|
|
134
|
-
* @returns {void}
|
|
135
|
-
*/
|
|
136
|
-
private handleKeyDown;
|
|
137
130
|
/**
|
|
138
131
|
* @private
|
|
139
132
|
* @returns {HTMLElement}
|
|
@@ -81,7 +81,6 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
81
81
|
}
|
|
82
82
|
};
|
|
83
83
|
|
|
84
|
-
/* eslint-disable max-lines */
|
|
85
84
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
86
85
|
// See LICENSE in the project root for license information.
|
|
87
86
|
|
|
@@ -320,33 +319,6 @@ class AuroCheckbox extends LitElement {
|
|
|
320
319
|
});
|
|
321
320
|
}
|
|
322
321
|
|
|
323
|
-
connectedCallback() {
|
|
324
|
-
super.connectedCallback();
|
|
325
|
-
|
|
326
|
-
this.handleKeyDown = this.handleKeyDown.bind(this);
|
|
327
|
-
this.addEventListener('keydown', this.handleKeyDown);
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
disconnectedCallback() {
|
|
331
|
-
super.disconnectedCallback();
|
|
332
|
-
|
|
333
|
-
this.removeEventListener('keydown', this.handleKeyDown);
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
/**
|
|
337
|
-
* Handles keydown event to toggle the checkbox with Space key.
|
|
338
|
-
* @private
|
|
339
|
-
* @param {KeyboardEvent} event - The keydown event from the checkbox input.
|
|
340
|
-
* @returns {void}
|
|
341
|
-
*/
|
|
342
|
-
handleKeyDown(event) {
|
|
343
|
-
if (event.key === ' ' && !this.disabled) {
|
|
344
|
-
event.preventDefault();
|
|
345
|
-
|
|
346
|
-
this.shadowRoot.querySelector('input').click();
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
|
|
350
322
|
/**
|
|
351
323
|
* @private
|
|
352
324
|
* @returns {HTMLElement}
|
|
@@ -1105,16 +1077,16 @@ class AuroFormValidation {
|
|
|
1105
1077
|
}
|
|
1106
1078
|
|
|
1107
1079
|
this.getErrorMessage(elem);
|
|
1108
|
-
}
|
|
1109
1080
|
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1081
|
+
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
1082
|
+
bubbles: true,
|
|
1083
|
+
composed: true,
|
|
1084
|
+
detail: {
|
|
1085
|
+
validity: elem.validity,
|
|
1086
|
+
message: elem.errorMessage
|
|
1087
|
+
}
|
|
1088
|
+
}));
|
|
1089
|
+
}
|
|
1118
1090
|
}
|
|
1119
1091
|
|
|
1120
1092
|
/**
|
|
@@ -81,7 +81,6 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
81
81
|
}
|
|
82
82
|
};
|
|
83
83
|
|
|
84
|
-
/* eslint-disable max-lines */
|
|
85
84
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
86
85
|
// See LICENSE in the project root for license information.
|
|
87
86
|
|
|
@@ -320,33 +319,6 @@ class AuroCheckbox extends LitElement {
|
|
|
320
319
|
});
|
|
321
320
|
}
|
|
322
321
|
|
|
323
|
-
connectedCallback() {
|
|
324
|
-
super.connectedCallback();
|
|
325
|
-
|
|
326
|
-
this.handleKeyDown = this.handleKeyDown.bind(this);
|
|
327
|
-
this.addEventListener('keydown', this.handleKeyDown);
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
disconnectedCallback() {
|
|
331
|
-
super.disconnectedCallback();
|
|
332
|
-
|
|
333
|
-
this.removeEventListener('keydown', this.handleKeyDown);
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
/**
|
|
337
|
-
* Handles keydown event to toggle the checkbox with Space key.
|
|
338
|
-
* @private
|
|
339
|
-
* @param {KeyboardEvent} event - The keydown event from the checkbox input.
|
|
340
|
-
* @returns {void}
|
|
341
|
-
*/
|
|
342
|
-
handleKeyDown(event) {
|
|
343
|
-
if (event.key === ' ' && !this.disabled) {
|
|
344
|
-
event.preventDefault();
|
|
345
|
-
|
|
346
|
-
this.shadowRoot.querySelector('input').click();
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
|
|
350
322
|
/**
|
|
351
323
|
* @private
|
|
352
324
|
* @returns {HTMLElement}
|
|
@@ -1105,16 +1077,16 @@ class AuroFormValidation {
|
|
|
1105
1077
|
}
|
|
1106
1078
|
|
|
1107
1079
|
this.getErrorMessage(elem);
|
|
1108
|
-
}
|
|
1109
1080
|
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1081
|
+
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
1082
|
+
bubbles: true,
|
|
1083
|
+
composed: true,
|
|
1084
|
+
detail: {
|
|
1085
|
+
validity: elem.validity,
|
|
1086
|
+
message: elem.errorMessage
|
|
1087
|
+
}
|
|
1088
|
+
}));
|
|
1089
|
+
}
|
|
1118
1090
|
}
|
|
1119
1091
|
|
|
1120
1092
|
/**
|
|
@@ -1040,16 +1040,16 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
1040
1040
|
}
|
|
1041
1041
|
|
|
1042
1042
|
this.getErrorMessage(elem);
|
|
1043
|
-
}
|
|
1044
1043
|
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
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
|
+
}
|
|
1053
1053
|
}
|
|
1054
1054
|
|
|
1055
1055
|
/**
|
|
@@ -4505,14 +4505,6 @@ let AuroElement$4 = class AuroElement extends i$2 {
|
|
|
4505
4505
|
};
|
|
4506
4506
|
}
|
|
4507
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
|
-
|
|
4516
4508
|
resetShapeClasses() {
|
|
4517
4509
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
4518
4510
|
|
|
@@ -10263,16 +10255,16 @@ class AuroFormValidation {
|
|
|
10263
10255
|
}
|
|
10264
10256
|
|
|
10265
10257
|
this.getErrorMessage(elem);
|
|
10266
|
-
}
|
|
10267
10258
|
|
|
10268
|
-
|
|
10269
|
-
|
|
10270
|
-
|
|
10271
|
-
|
|
10272
|
-
|
|
10273
|
-
|
|
10274
|
-
|
|
10275
|
-
|
|
10259
|
+
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
10260
|
+
bubbles: true,
|
|
10261
|
+
composed: true,
|
|
10262
|
+
detail: {
|
|
10263
|
+
validity: elem.validity,
|
|
10264
|
+
message: elem.errorMessage
|
|
10265
|
+
}
|
|
10266
|
+
}));
|
|
10267
|
+
}
|
|
10276
10268
|
}
|
|
10277
10269
|
|
|
10278
10270
|
/**
|
|
@@ -10364,14 +10356,6 @@ let AuroElement$2$1 = class AuroElement extends i$2 {
|
|
|
10364
10356
|
};
|
|
10365
10357
|
}
|
|
10366
10358
|
|
|
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
|
-
|
|
10375
10359
|
resetShapeClasses() {
|
|
10376
10360
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
10377
10361
|
|
|
@@ -15801,7 +15785,7 @@ class AuroBibtemplate extends i$2 {
|
|
|
15801
15785
|
|
|
15802
15786
|
var bibTemplateVersion = '1.0.0';
|
|
15803
15787
|
|
|
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-
|
|
15788
|
+
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}`;
|
|
15805
15789
|
|
|
15806
15790
|
var styleEmphasizedCss = i$5`:host([layout*=emphasized][shape*=pill]) [auro-input]{width:100%}:host([layout*=emphasized][shape*=pill]) [auro-input]::part(inputHelpText){display:none}`;
|
|
15807
15791
|
|
|
@@ -15841,14 +15825,6 @@ let AuroElement$1 = class AuroElement extends i$2 {
|
|
|
15841
15825
|
};
|
|
15842
15826
|
}
|
|
15843
15827
|
|
|
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
|
-
|
|
15852
15828
|
resetShapeClasses() {
|
|
15853
15829
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
15854
15830
|
|
|
@@ -16674,7 +16650,7 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16674
16650
|
|
|
16675
16651
|
// wait a frame in case the bib gets hide immediately after showing because there is no value
|
|
16676
16652
|
setTimeout(() => {
|
|
16677
|
-
if (this
|
|
16653
|
+
if (document.activeElement === this) {
|
|
16678
16654
|
this.setInputFocus();
|
|
16679
16655
|
}
|
|
16680
16656
|
}, 0);
|
|
@@ -16839,16 +16815,13 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16839
16815
|
* Validate every time we remove focus from the combo box.
|
|
16840
16816
|
*/
|
|
16841
16817
|
this.addEventListener('focusout', () => {
|
|
16842
|
-
if (
|
|
16818
|
+
if (document.activeElement !== this) {
|
|
16843
16819
|
this.validate();
|
|
16844
16820
|
}
|
|
16845
16821
|
});
|
|
16846
16822
|
|
|
16847
16823
|
// Handle validation messages from auroFormElement-validated event
|
|
16848
16824
|
this.input.addEventListener('auroFormElement-validated', (evt) => {
|
|
16849
|
-
// not to bubble up input's validated event.
|
|
16850
|
-
evt.stopPropagation();
|
|
16851
|
-
|
|
16852
16825
|
this.errorMessage = evt.detail.message;
|
|
16853
16826
|
});
|
|
16854
16827
|
}
|
|
@@ -16919,7 +16892,7 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16919
16892
|
this.handleMenuOptions();
|
|
16920
16893
|
|
|
16921
16894
|
// Validate only if the value was set programmatically
|
|
16922
|
-
if (
|
|
16895
|
+
if (document.activeElement !== this) {
|
|
16923
16896
|
this.validate();
|
|
16924
16897
|
}
|
|
16925
16898
|
|
|
@@ -16959,7 +16932,7 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16959
16932
|
}
|
|
16960
16933
|
} else {
|
|
16961
16934
|
setTimeout(() => {
|
|
16962
|
-
if (
|
|
16935
|
+
if (document.activeElement !== this) {
|
|
16963
16936
|
this.hideBib();
|
|
16964
16937
|
}
|
|
16965
16938
|
}, 0);
|
|
@@ -17080,7 +17053,7 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
17080
17053
|
}
|
|
17081
17054
|
|
|
17082
17055
|
if (changedProperties.has('availableOptions')) {
|
|
17083
|
-
if (this.availableOptions && this.availableOptions.length > 0 && this
|
|
17056
|
+
if (this.availableOptions && this.availableOptions.length > 0 && document.activeElement === this) {
|
|
17084
17057
|
this.showBib();
|
|
17085
17058
|
} else {
|
|
17086
17059
|
this.hideBib();
|
|
@@ -898,16 +898,16 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
898
898
|
}
|
|
899
899
|
|
|
900
900
|
this.getErrorMessage(elem);
|
|
901
|
-
}
|
|
902
901
|
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
902
|
+
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
903
|
+
bubbles: true,
|
|
904
|
+
composed: true,
|
|
905
|
+
detail: {
|
|
906
|
+
validity: elem.validity,
|
|
907
|
+
message: elem.errorMessage
|
|
908
|
+
}
|
|
909
|
+
}));
|
|
910
|
+
}
|
|
911
911
|
}
|
|
912
912
|
|
|
913
913
|
/**
|
|
@@ -4363,14 +4363,6 @@ let AuroElement$4 = class AuroElement extends i$2 {
|
|
|
4363
4363
|
};
|
|
4364
4364
|
}
|
|
4365
4365
|
|
|
4366
|
-
/**
|
|
4367
|
-
* Returns true if the element has focus.
|
|
4368
|
-
* @returns {boolean} - Returns true if the element has focus.
|
|
4369
|
-
*/
|
|
4370
|
-
get componentHasFocus() {
|
|
4371
|
-
return this.matches(':focus');
|
|
4372
|
-
}
|
|
4373
|
-
|
|
4374
4366
|
resetShapeClasses() {
|
|
4375
4367
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
4376
4368
|
|
|
@@ -10121,16 +10113,16 @@ class AuroFormValidation {
|
|
|
10121
10113
|
}
|
|
10122
10114
|
|
|
10123
10115
|
this.getErrorMessage(elem);
|
|
10124
|
-
}
|
|
10125
10116
|
|
|
10126
|
-
|
|
10127
|
-
|
|
10128
|
-
|
|
10129
|
-
|
|
10130
|
-
|
|
10131
|
-
|
|
10132
|
-
|
|
10133
|
-
|
|
10117
|
+
elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
|
|
10118
|
+
bubbles: true,
|
|
10119
|
+
composed: true,
|
|
10120
|
+
detail: {
|
|
10121
|
+
validity: elem.validity,
|
|
10122
|
+
message: elem.errorMessage
|
|
10123
|
+
}
|
|
10124
|
+
}));
|
|
10125
|
+
}
|
|
10134
10126
|
}
|
|
10135
10127
|
|
|
10136
10128
|
/**
|
|
@@ -10222,14 +10214,6 @@ let AuroElement$2$1 = class AuroElement extends i$2 {
|
|
|
10222
10214
|
};
|
|
10223
10215
|
}
|
|
10224
10216
|
|
|
10225
|
-
/**
|
|
10226
|
-
* Returns true if the element has focus.
|
|
10227
|
-
* @returns {boolean} - Returns true if the element has focus.
|
|
10228
|
-
*/
|
|
10229
|
-
get componentHasFocus() {
|
|
10230
|
-
return this.matches(':focus');
|
|
10231
|
-
}
|
|
10232
|
-
|
|
10233
10217
|
resetShapeClasses() {
|
|
10234
10218
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
10235
10219
|
|
|
@@ -15659,7 +15643,7 @@ class AuroBibtemplate extends i$2 {
|
|
|
15659
15643
|
|
|
15660
15644
|
var bibTemplateVersion = '1.0.0';
|
|
15661
15645
|
|
|
15662
|
-
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-
|
|
15646
|
+
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}`;
|
|
15663
15647
|
|
|
15664
15648
|
var styleEmphasizedCss = i$5`:host([layout*=emphasized][shape*=pill]) [auro-input]{width:100%}:host([layout*=emphasized][shape*=pill]) [auro-input]::part(inputHelpText){display:none}`;
|
|
15665
15649
|
|
|
@@ -15699,14 +15683,6 @@ let AuroElement$1 = class AuroElement extends i$2 {
|
|
|
15699
15683
|
};
|
|
15700
15684
|
}
|
|
15701
15685
|
|
|
15702
|
-
/**
|
|
15703
|
-
* Returns true if the element has focus.
|
|
15704
|
-
* @returns {boolean} - Returns true if the element has focus.
|
|
15705
|
-
*/
|
|
15706
|
-
get componentHasFocus() {
|
|
15707
|
-
return this.matches(':focus');
|
|
15708
|
-
}
|
|
15709
|
-
|
|
15710
15686
|
resetShapeClasses() {
|
|
15711
15687
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
15712
15688
|
|
|
@@ -16532,7 +16508,7 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16532
16508
|
|
|
16533
16509
|
// wait a frame in case the bib gets hide immediately after showing because there is no value
|
|
16534
16510
|
setTimeout(() => {
|
|
16535
|
-
if (this
|
|
16511
|
+
if (document.activeElement === this) {
|
|
16536
16512
|
this.setInputFocus();
|
|
16537
16513
|
}
|
|
16538
16514
|
}, 0);
|
|
@@ -16697,16 +16673,13 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16697
16673
|
* Validate every time we remove focus from the combo box.
|
|
16698
16674
|
*/
|
|
16699
16675
|
this.addEventListener('focusout', () => {
|
|
16700
|
-
if (
|
|
16676
|
+
if (document.activeElement !== this) {
|
|
16701
16677
|
this.validate();
|
|
16702
16678
|
}
|
|
16703
16679
|
});
|
|
16704
16680
|
|
|
16705
16681
|
// Handle validation messages from auroFormElement-validated event
|
|
16706
16682
|
this.input.addEventListener('auroFormElement-validated', (evt) => {
|
|
16707
|
-
// not to bubble up input's validated event.
|
|
16708
|
-
evt.stopPropagation();
|
|
16709
|
-
|
|
16710
16683
|
this.errorMessage = evt.detail.message;
|
|
16711
16684
|
});
|
|
16712
16685
|
}
|
|
@@ -16777,7 +16750,7 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16777
16750
|
this.handleMenuOptions();
|
|
16778
16751
|
|
|
16779
16752
|
// Validate only if the value was set programmatically
|
|
16780
|
-
if (
|
|
16753
|
+
if (document.activeElement !== this) {
|
|
16781
16754
|
this.validate();
|
|
16782
16755
|
}
|
|
16783
16756
|
|
|
@@ -16817,7 +16790,7 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16817
16790
|
}
|
|
16818
16791
|
} else {
|
|
16819
16792
|
setTimeout(() => {
|
|
16820
|
-
if (
|
|
16793
|
+
if (document.activeElement !== this) {
|
|
16821
16794
|
this.hideBib();
|
|
16822
16795
|
}
|
|
16823
16796
|
}, 0);
|
|
@@ -16938,7 +16911,7 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16938
16911
|
}
|
|
16939
16912
|
|
|
16940
16913
|
if (changedProperties.has('availableOptions')) {
|
|
16941
|
-
if (this.availableOptions && this.availableOptions.length > 0 && this
|
|
16914
|
+
if (this.availableOptions && this.availableOptions.length > 0 && document.activeElement === this) {
|
|
16942
16915
|
this.showBib();
|
|
16943
16916
|
} else {
|
|
16944
16917
|
this.hideBib();
|