@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.17 → 0.0.0-pr624.18
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/components/bibtemplate/dist/buttonVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +61 -10
- package/components/bibtemplate/dist/registered.js +61 -10
- package/components/combobox/demo/api.min.js +134 -20
- package/components/combobox/demo/index.min.js +134 -20
- package/components/combobox/dist/index.js +122 -20
- package/components/combobox/dist/registered.js +122 -20
- package/components/counter/demo/api.min.js +159 -33
- package/components/counter/demo/index.min.js +159 -33
- package/components/counter/dist/auro-counter.d.ts +6 -0
- package/components/counter/dist/index.js +159 -33
- package/components/counter/dist/registered.js +159 -33
- package/components/datepicker/demo/api.min.js +181 -28
- package/components/datepicker/demo/index.min.js +181 -28
- package/components/datepicker/dist/index.js +181 -28
- package/components/datepicker/dist/registered.js +181 -28
- package/components/input/demo/api.min.js +60 -9
- package/components/input/demo/index.min.js +60 -9
- package/components/input/dist/index.js +60 -9
- package/components/input/dist/registered.js +60 -9
- package/components/menu/demo/api.min.js +12 -0
- package/components/menu/demo/index.min.js +12 -0
- package/components/menu/dist/auro-menu.d.ts +6 -0
- package/components/menu/dist/index.js +12 -0
- package/components/menu/dist/registered.js +12 -0
- package/components/select/demo/api.min.js +94 -17
- package/components/select/demo/index.min.js +94 -17
- package/components/select/dist/auro-select.d.ts +7 -0
- package/components/select/dist/index.js +82 -17
- package/components/select/dist/registered.js +82 -17
- package/package.json +3 -3
|
@@ -11838,7 +11838,6 @@ let AuroElement$3 = class AuroElement extends LitElement {
|
|
|
11838
11838
|
* @private
|
|
11839
11839
|
*/
|
|
11840
11840
|
wrapper: {
|
|
11841
|
-
type: HTMLElement,
|
|
11842
11841
|
attribute: false,
|
|
11843
11842
|
reflect: false
|
|
11844
11843
|
}
|
|
@@ -12147,7 +12146,7 @@ let AuroLoader$1 = class AuroLoader extends LitElement {
|
|
|
12147
12146
|
|
|
12148
12147
|
var loaderVersion$1 = '5.0.0';
|
|
12149
12148
|
|
|
12150
|
-
/* eslint-disable max-lines, curly */
|
|
12149
|
+
/* eslint-disable max-lines, curly, jsdoc/no-undefined-types */
|
|
12151
12150
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
12152
12151
|
// See LICENSE in the project root for license information.
|
|
12153
12152
|
|
|
@@ -12214,6 +12213,21 @@ let AuroButton$1 = class AuroButton extends AuroElement$3 {
|
|
|
12214
12213
|
* @private
|
|
12215
12214
|
*/
|
|
12216
12215
|
this.loaderTag = versioning.generateTag('auro-loader', loaderVersion$1, AuroLoader$1);
|
|
12216
|
+
|
|
12217
|
+
/**
|
|
12218
|
+
* @private
|
|
12219
|
+
*/
|
|
12220
|
+
this.buttonHref = undefined;
|
|
12221
|
+
|
|
12222
|
+
/**
|
|
12223
|
+
* @private
|
|
12224
|
+
*/
|
|
12225
|
+
this.buttonTarget = undefined;
|
|
12226
|
+
|
|
12227
|
+
/**
|
|
12228
|
+
* @private
|
|
12229
|
+
*/
|
|
12230
|
+
this.buttonRel = undefined;
|
|
12217
12231
|
}
|
|
12218
12232
|
|
|
12219
12233
|
static get styles() {
|
|
@@ -12280,13 +12294,23 @@ let AuroButton$1 = class AuroButton extends AuroElement$3 {
|
|
|
12280
12294
|
},
|
|
12281
12295
|
|
|
12282
12296
|
/**
|
|
12283
|
-
* Populates `
|
|
12297
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
12284
12298
|
*/
|
|
12285
12299
|
tIndex: {
|
|
12286
12300
|
type: String,
|
|
12287
12301
|
reflect: true
|
|
12288
12302
|
},
|
|
12289
12303
|
|
|
12304
|
+
/**
|
|
12305
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
12306
|
+
* Must be used with "." to ensure the host element does not retain a reference to the `tabindex` attribute.
|
|
12307
|
+
* Example: `<auro-button .tabindex="${this.disabled ? '-1' : '0'}"></auro-button>`
|
|
12308
|
+
*/
|
|
12309
|
+
tabindex: {
|
|
12310
|
+
type: String,
|
|
12311
|
+
reflect: false
|
|
12312
|
+
},
|
|
12313
|
+
|
|
12290
12314
|
/**
|
|
12291
12315
|
* Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
12292
12316
|
*/
|
|
@@ -12319,6 +12343,27 @@ let AuroButton$1 = class AuroButton extends AuroElement$3 {
|
|
|
12319
12343
|
type: String,
|
|
12320
12344
|
reflect: true
|
|
12321
12345
|
},
|
|
12346
|
+
|
|
12347
|
+
/**
|
|
12348
|
+
* @private
|
|
12349
|
+
*/
|
|
12350
|
+
buttonHref: {
|
|
12351
|
+
type: String,
|
|
12352
|
+
},
|
|
12353
|
+
|
|
12354
|
+
/**
|
|
12355
|
+
* @private
|
|
12356
|
+
*/
|
|
12357
|
+
buttonTarget: {
|
|
12358
|
+
type: String,
|
|
12359
|
+
},
|
|
12360
|
+
|
|
12361
|
+
/**
|
|
12362
|
+
* @private
|
|
12363
|
+
*/
|
|
12364
|
+
buttonRel: {
|
|
12365
|
+
type: String,
|
|
12366
|
+
},
|
|
12322
12367
|
};
|
|
12323
12368
|
}
|
|
12324
12369
|
|
|
@@ -12409,14 +12454,17 @@ let AuroButton$1 = class AuroButton extends AuroElement$3 {
|
|
|
12409
12454
|
loading: this.loading,
|
|
12410
12455
|
};
|
|
12411
12456
|
|
|
12457
|
+
const tag = this.buttonHref ? literal`a` : literal`button`;
|
|
12458
|
+
const part = this.buttonHref ? 'link' : 'button';
|
|
12459
|
+
|
|
12412
12460
|
return html`
|
|
12413
|
-
|
|
12414
|
-
part="
|
|
12461
|
+
<${tag}
|
|
12462
|
+
part="${part}"
|
|
12415
12463
|
aria-label="${ifDefined(this.loading ? this.loadingText : this.currentAriaLabel || undefined)}"
|
|
12416
12464
|
aria-labelledby="${ifDefined(this.loading ? undefined : this.currentAriaLabelledBy || undefined)}"
|
|
12417
|
-
|
|
12465
|
+
tabindex="${ifDefined(this.tIndex || this.tabindex)}"
|
|
12418
12466
|
?autofocus="${this.autofocus}"
|
|
12419
|
-
class
|
|
12467
|
+
class=${classMap(classes)}
|
|
12420
12468
|
?disabled="${this.disabled || this.loading}"
|
|
12421
12469
|
?onDark="${this.onDark}"
|
|
12422
12470
|
title="${ifDefined(this.title ? this.title : undefined)}"
|
|
@@ -12425,6 +12473,9 @@ let AuroButton$1 = class AuroButton extends AuroElement$3 {
|
|
|
12425
12473
|
variant="${ifDefined(this.variant ? this.variant : undefined)}"
|
|
12426
12474
|
.value="${ifDefined(this.value ? this.value : undefined)}"
|
|
12427
12475
|
@click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
|
|
12476
|
+
href="${ifDefined(this.buttonHref || undefined)}"
|
|
12477
|
+
target="${ifDefined(this.buttonTarget || undefined)}"
|
|
12478
|
+
rel="${ifDefined(this.buttonRel || undefined)}"
|
|
12428
12479
|
>
|
|
12429
12480
|
${ifDefined(this.loading ? html`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
12430
12481
|
|
|
@@ -12433,12 +12484,12 @@ let AuroButton$1 = class AuroButton extends AuroElement$3 {
|
|
|
12433
12484
|
<slot></slot>
|
|
12434
12485
|
</span>
|
|
12435
12486
|
</span>
|
|
12436
|
-
|
|
12487
|
+
</${tag}>
|
|
12437
12488
|
`;
|
|
12438
12489
|
}
|
|
12439
12490
|
|
|
12440
12491
|
/**
|
|
12441
|
-
* Renders the layout of the button
|
|
12492
|
+
* Renders the layout of the button.
|
|
12442
12493
|
* @returns {TemplateResult}
|
|
12443
12494
|
* @private
|
|
12444
12495
|
*/
|
|
@@ -13668,7 +13719,6 @@ let AuroElement$1 = class AuroElement extends LitElement {
|
|
|
13668
13719
|
* @private
|
|
13669
13720
|
*/
|
|
13670
13721
|
wrapper: {
|
|
13671
|
-
type: HTMLElement,
|
|
13672
13722
|
attribute: false,
|
|
13673
13723
|
reflect: false
|
|
13674
13724
|
}
|
|
@@ -13977,7 +14027,7 @@ class AuroLoader extends LitElement {
|
|
|
13977
14027
|
|
|
13978
14028
|
var loaderVersion = '5.0.0';
|
|
13979
14029
|
|
|
13980
|
-
/* eslint-disable max-lines, curly */
|
|
14030
|
+
/* eslint-disable max-lines, curly, jsdoc/no-undefined-types */
|
|
13981
14031
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
13982
14032
|
// See LICENSE in the project root for license information.
|
|
13983
14033
|
|
|
@@ -14044,6 +14094,21 @@ class AuroButton extends AuroElement$1 {
|
|
|
14044
14094
|
* @private
|
|
14045
14095
|
*/
|
|
14046
14096
|
this.loaderTag = versioning.generateTag('auro-loader', loaderVersion, AuroLoader);
|
|
14097
|
+
|
|
14098
|
+
/**
|
|
14099
|
+
* @private
|
|
14100
|
+
*/
|
|
14101
|
+
this.buttonHref = undefined;
|
|
14102
|
+
|
|
14103
|
+
/**
|
|
14104
|
+
* @private
|
|
14105
|
+
*/
|
|
14106
|
+
this.buttonTarget = undefined;
|
|
14107
|
+
|
|
14108
|
+
/**
|
|
14109
|
+
* @private
|
|
14110
|
+
*/
|
|
14111
|
+
this.buttonRel = undefined;
|
|
14047
14112
|
}
|
|
14048
14113
|
|
|
14049
14114
|
static get styles() {
|
|
@@ -14110,13 +14175,23 @@ class AuroButton extends AuroElement$1 {
|
|
|
14110
14175
|
},
|
|
14111
14176
|
|
|
14112
14177
|
/**
|
|
14113
|
-
* Populates `
|
|
14178
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
14114
14179
|
*/
|
|
14115
14180
|
tIndex: {
|
|
14116
14181
|
type: String,
|
|
14117
14182
|
reflect: true
|
|
14118
14183
|
},
|
|
14119
14184
|
|
|
14185
|
+
/**
|
|
14186
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
14187
|
+
* Must be used with "." to ensure the host element does not retain a reference to the `tabindex` attribute.
|
|
14188
|
+
* Example: `<auro-button .tabindex="${this.disabled ? '-1' : '0'}"></auro-button>`
|
|
14189
|
+
*/
|
|
14190
|
+
tabindex: {
|
|
14191
|
+
type: String,
|
|
14192
|
+
reflect: false
|
|
14193
|
+
},
|
|
14194
|
+
|
|
14120
14195
|
/**
|
|
14121
14196
|
* Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
14122
14197
|
*/
|
|
@@ -14149,6 +14224,27 @@ class AuroButton extends AuroElement$1 {
|
|
|
14149
14224
|
type: String,
|
|
14150
14225
|
reflect: true
|
|
14151
14226
|
},
|
|
14227
|
+
|
|
14228
|
+
/**
|
|
14229
|
+
* @private
|
|
14230
|
+
*/
|
|
14231
|
+
buttonHref: {
|
|
14232
|
+
type: String,
|
|
14233
|
+
},
|
|
14234
|
+
|
|
14235
|
+
/**
|
|
14236
|
+
* @private
|
|
14237
|
+
*/
|
|
14238
|
+
buttonTarget: {
|
|
14239
|
+
type: String,
|
|
14240
|
+
},
|
|
14241
|
+
|
|
14242
|
+
/**
|
|
14243
|
+
* @private
|
|
14244
|
+
*/
|
|
14245
|
+
buttonRel: {
|
|
14246
|
+
type: String,
|
|
14247
|
+
},
|
|
14152
14248
|
};
|
|
14153
14249
|
}
|
|
14154
14250
|
|
|
@@ -14239,14 +14335,17 @@ class AuroButton extends AuroElement$1 {
|
|
|
14239
14335
|
loading: this.loading,
|
|
14240
14336
|
};
|
|
14241
14337
|
|
|
14338
|
+
const tag = this.buttonHref ? literal`a` : literal`button`;
|
|
14339
|
+
const part = this.buttonHref ? 'link' : 'button';
|
|
14340
|
+
|
|
14242
14341
|
return html`
|
|
14243
|
-
|
|
14244
|
-
part="
|
|
14342
|
+
<${tag}
|
|
14343
|
+
part="${part}"
|
|
14245
14344
|
aria-label="${ifDefined(this.loading ? this.loadingText : this.currentAriaLabel || undefined)}"
|
|
14246
14345
|
aria-labelledby="${ifDefined(this.loading ? undefined : this.currentAriaLabelledBy || undefined)}"
|
|
14247
|
-
|
|
14346
|
+
tabindex="${ifDefined(this.tIndex || this.tabindex)}"
|
|
14248
14347
|
?autofocus="${this.autofocus}"
|
|
14249
|
-
class
|
|
14348
|
+
class=${classMap(classes)}
|
|
14250
14349
|
?disabled="${this.disabled || this.loading}"
|
|
14251
14350
|
?onDark="${this.onDark}"
|
|
14252
14351
|
title="${ifDefined(this.title ? this.title : undefined)}"
|
|
@@ -14255,6 +14354,9 @@ class AuroButton extends AuroElement$1 {
|
|
|
14255
14354
|
variant="${ifDefined(this.variant ? this.variant : undefined)}"
|
|
14256
14355
|
.value="${ifDefined(this.value ? this.value : undefined)}"
|
|
14257
14356
|
@click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
|
|
14357
|
+
href="${ifDefined(this.buttonHref || undefined)}"
|
|
14358
|
+
target="${ifDefined(this.buttonTarget || undefined)}"
|
|
14359
|
+
rel="${ifDefined(this.buttonRel || undefined)}"
|
|
14258
14360
|
>
|
|
14259
14361
|
${ifDefined(this.loading ? html`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
14260
14362
|
|
|
@@ -14263,12 +14365,12 @@ class AuroButton extends AuroElement$1 {
|
|
|
14263
14365
|
<slot></slot>
|
|
14264
14366
|
</span>
|
|
14265
14367
|
</span>
|
|
14266
|
-
|
|
14368
|
+
</${tag}>
|
|
14267
14369
|
`;
|
|
14268
14370
|
}
|
|
14269
14371
|
|
|
14270
14372
|
/**
|
|
14271
|
-
* Renders the layout of the button
|
|
14373
|
+
* Renders the layout of the button.
|
|
14272
14374
|
* @returns {TemplateResult}
|
|
14273
14375
|
* @private
|
|
14274
14376
|
*/
|
|
@@ -14277,7 +14379,7 @@ class AuroButton extends AuroElement$1 {
|
|
|
14277
14379
|
}
|
|
14278
14380
|
}
|
|
14279
14381
|
|
|
14280
|
-
var buttonVersion = '11.
|
|
14382
|
+
var buttonVersion = '11.2.1';
|
|
14281
14383
|
|
|
14282
14384
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
14283
14385
|
// See LICENSE in the project root for license information.
|
|
@@ -16173,10 +16275,10 @@ class AuroCombobox extends AuroElement {
|
|
|
16173
16275
|
this.dropdown = this.shadowRoot.querySelector(this.dropdownTag._$litStatic$);
|
|
16174
16276
|
this.input = this.dropdown.querySelector(this.inputTag._$litStatic$);
|
|
16175
16277
|
|
|
16176
|
-
this.configureMenu();
|
|
16177
16278
|
this.configureInput();
|
|
16178
16279
|
this.configureDropdown();
|
|
16179
16280
|
this.configureCombobox();
|
|
16281
|
+
this.configureMenu();
|
|
16180
16282
|
|
|
16181
16283
|
// Set the initial value in auro-menu if defined
|
|
16182
16284
|
if (this.hasAttribute('value') && this.getAttribute('value').length > 0) {
|
|
@@ -419,7 +419,6 @@ let AuroElement$5 = class AuroElement extends i$2 {
|
|
|
419
419
|
* @private
|
|
420
420
|
*/
|
|
421
421
|
wrapper: {
|
|
422
|
-
type: HTMLElement,
|
|
423
422
|
attribute: false,
|
|
424
423
|
reflect: false
|
|
425
424
|
}
|
|
@@ -857,7 +856,7 @@ let AuroLoader$1 = class AuroLoader extends i$2 {
|
|
|
857
856
|
|
|
858
857
|
var loaderVersion$1 = '5.0.0';
|
|
859
858
|
|
|
860
|
-
/* eslint-disable max-lines, curly */
|
|
859
|
+
/* eslint-disable max-lines, curly, jsdoc/no-undefined-types */
|
|
861
860
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
862
861
|
// See LICENSE in the project root for license information.
|
|
863
862
|
|
|
@@ -924,6 +923,21 @@ let AuroButton$1 = class AuroButton extends AuroElement$5 {
|
|
|
924
923
|
* @private
|
|
925
924
|
*/
|
|
926
925
|
this.loaderTag = versioning.generateTag('auro-loader', loaderVersion$1, AuroLoader$1);
|
|
926
|
+
|
|
927
|
+
/**
|
|
928
|
+
* @private
|
|
929
|
+
*/
|
|
930
|
+
this.buttonHref = undefined;
|
|
931
|
+
|
|
932
|
+
/**
|
|
933
|
+
* @private
|
|
934
|
+
*/
|
|
935
|
+
this.buttonTarget = undefined;
|
|
936
|
+
|
|
937
|
+
/**
|
|
938
|
+
* @private
|
|
939
|
+
*/
|
|
940
|
+
this.buttonRel = undefined;
|
|
927
941
|
}
|
|
928
942
|
|
|
929
943
|
static get styles() {
|
|
@@ -990,13 +1004,23 @@ let AuroButton$1 = class AuroButton extends AuroElement$5 {
|
|
|
990
1004
|
},
|
|
991
1005
|
|
|
992
1006
|
/**
|
|
993
|
-
* Populates `
|
|
1007
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
994
1008
|
*/
|
|
995
1009
|
tIndex: {
|
|
996
1010
|
type: String,
|
|
997
1011
|
reflect: true
|
|
998
1012
|
},
|
|
999
1013
|
|
|
1014
|
+
/**
|
|
1015
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
1016
|
+
* Must be used with "." to ensure the host element does not retain a reference to the `tabindex` attribute.
|
|
1017
|
+
* Example: `<auro-button .tabindex="${this.disabled ? '-1' : '0'}"></auro-button>`
|
|
1018
|
+
*/
|
|
1019
|
+
tabindex: {
|
|
1020
|
+
type: String,
|
|
1021
|
+
reflect: false
|
|
1022
|
+
},
|
|
1023
|
+
|
|
1000
1024
|
/**
|
|
1001
1025
|
* Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
1002
1026
|
*/
|
|
@@ -1029,6 +1053,27 @@ let AuroButton$1 = class AuroButton extends AuroElement$5 {
|
|
|
1029
1053
|
type: String,
|
|
1030
1054
|
reflect: true
|
|
1031
1055
|
},
|
|
1056
|
+
|
|
1057
|
+
/**
|
|
1058
|
+
* @private
|
|
1059
|
+
*/
|
|
1060
|
+
buttonHref: {
|
|
1061
|
+
type: String,
|
|
1062
|
+
},
|
|
1063
|
+
|
|
1064
|
+
/**
|
|
1065
|
+
* @private
|
|
1066
|
+
*/
|
|
1067
|
+
buttonTarget: {
|
|
1068
|
+
type: String,
|
|
1069
|
+
},
|
|
1070
|
+
|
|
1071
|
+
/**
|
|
1072
|
+
* @private
|
|
1073
|
+
*/
|
|
1074
|
+
buttonRel: {
|
|
1075
|
+
type: String,
|
|
1076
|
+
},
|
|
1032
1077
|
};
|
|
1033
1078
|
}
|
|
1034
1079
|
|
|
@@ -1119,14 +1164,17 @@ let AuroButton$1 = class AuroButton extends AuroElement$5 {
|
|
|
1119
1164
|
loading: this.loading,
|
|
1120
1165
|
};
|
|
1121
1166
|
|
|
1167
|
+
const tag = this.buttonHref ? i$1`a` : i$1`button`;
|
|
1168
|
+
const part = this.buttonHref ? 'link' : 'button';
|
|
1169
|
+
|
|
1122
1170
|
return u`
|
|
1123
|
-
|
|
1124
|
-
part="
|
|
1171
|
+
<${tag}
|
|
1172
|
+
part="${part}"
|
|
1125
1173
|
aria-label="${o(this.loading ? this.loadingText : this.currentAriaLabel || undefined)}"
|
|
1126
1174
|
aria-labelledby="${o(this.loading ? undefined : this.currentAriaLabelledBy || undefined)}"
|
|
1127
|
-
|
|
1175
|
+
tabindex="${o(this.tIndex || this.tabindex)}"
|
|
1128
1176
|
?autofocus="${this.autofocus}"
|
|
1129
|
-
class
|
|
1177
|
+
class=${e(classes)}
|
|
1130
1178
|
?disabled="${this.disabled || this.loading}"
|
|
1131
1179
|
?onDark="${this.onDark}"
|
|
1132
1180
|
title="${o(this.title ? this.title : undefined)}"
|
|
@@ -1135,6 +1183,9 @@ let AuroButton$1 = class AuroButton extends AuroElement$5 {
|
|
|
1135
1183
|
variant="${o(this.variant ? this.variant : undefined)}"
|
|
1136
1184
|
.value="${o(this.value ? this.value : undefined)}"
|
|
1137
1185
|
@click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
|
|
1186
|
+
href="${o(this.buttonHref || undefined)}"
|
|
1187
|
+
target="${o(this.buttonTarget || undefined)}"
|
|
1188
|
+
rel="${o(this.buttonRel || undefined)}"
|
|
1138
1189
|
>
|
|
1139
1190
|
${o(this.loading ? u`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
1140
1191
|
|
|
@@ -1143,12 +1194,12 @@ let AuroButton$1 = class AuroButton extends AuroElement$5 {
|
|
|
1143
1194
|
<slot></slot>
|
|
1144
1195
|
</span>
|
|
1145
1196
|
</span>
|
|
1146
|
-
|
|
1197
|
+
</${tag}>
|
|
1147
1198
|
`;
|
|
1148
1199
|
}
|
|
1149
1200
|
|
|
1150
1201
|
/**
|
|
1151
|
-
* Renders the layout of the button
|
|
1202
|
+
* Renders the layout of the button.
|
|
1152
1203
|
* @returns {TemplateResult}
|
|
1153
1204
|
* @private
|
|
1154
1205
|
*/
|
|
@@ -2662,6 +2713,18 @@ class AuroCounter extends i$2 {
|
|
|
2662
2713
|
|
|
2663
2714
|
firstUpdated() {
|
|
2664
2715
|
this.initValue();
|
|
2716
|
+
this.setTagAttribute("auro-counter");
|
|
2717
|
+
}
|
|
2718
|
+
|
|
2719
|
+
/**
|
|
2720
|
+
* Sets an attribute that matches the default tag name if the tag name is not the default.
|
|
2721
|
+
* @param {string} tagName - The tag name to set as an attribute.
|
|
2722
|
+
* @private
|
|
2723
|
+
*/
|
|
2724
|
+
setTagAttribute(tagName) {
|
|
2725
|
+
if (this.tagName.toLowerCase() !== tagName) {
|
|
2726
|
+
this.setAttribute(tagName, true);
|
|
2727
|
+
}
|
|
2665
2728
|
}
|
|
2666
2729
|
|
|
2667
2730
|
/**
|
|
@@ -2702,14 +2765,24 @@ class AuroCounter extends i$2 {
|
|
|
2702
2765
|
<label id="counter-label" class="label"><slot @slotchange="${this.onDefaultSlotChange}" ></slot></label>
|
|
2703
2766
|
<slot id="counter-description" name="description"></slot>
|
|
2704
2767
|
</div>
|
|
2705
|
-
<div
|
|
2768
|
+
<div
|
|
2769
|
+
part="counterControl"
|
|
2770
|
+
aria-labelledby="counter-label"
|
|
2771
|
+
aria-describedby="counter-description"
|
|
2772
|
+
tabindex="${this.disabled ? '-1' : '0'}"
|
|
2773
|
+
role="spinbutton"
|
|
2774
|
+
aria-valuemin="${this.min}"
|
|
2775
|
+
aria-valuemax="${this.max}"
|
|
2776
|
+
aria-valuenow="${this.value}"
|
|
2777
|
+
aria-valuetext="${this.value !== undefined ? this.value : this.min}"
|
|
2778
|
+
>
|
|
2706
2779
|
<auro-counter-button
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2780
|
+
aria-hidden="true"
|
|
2781
|
+
.tabindex="${'-1'}"
|
|
2782
|
+
part="controlMinus"
|
|
2783
|
+
@click="${() => this.decrement()}"
|
|
2784
|
+
?onDark="${this.onDark}"
|
|
2785
|
+
?disabled="${this.disabled || this.disableMin || this.isIncrementDisabled(this.min)}"
|
|
2713
2786
|
>
|
|
2714
2787
|
<${this.iconTag} class="controlIcon" customSvg> ${IconUtil.generateSvgHtml(minusIcon)} </${this.iconTag}>
|
|
2715
2788
|
</auro-counter-button>
|
|
@@ -2719,12 +2792,12 @@ class AuroCounter extends i$2 {
|
|
|
2719
2792
|
</div>
|
|
2720
2793
|
|
|
2721
2794
|
<auro-counter-button
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2795
|
+
aria-hidden="true"
|
|
2796
|
+
.tabindex="${'-1'}"
|
|
2797
|
+
part="controlPlus"
|
|
2798
|
+
@click="${() => this.increment()}"
|
|
2799
|
+
?onDark="${this.onDark}"
|
|
2800
|
+
?disabled="${this.disabled || this.disableMax || this.isIncrementDisabled(this.max)}"
|
|
2728
2801
|
>
|
|
2729
2802
|
<${this.iconTag} class="controlIcon" customSvg> ${IconUtil.generateSvgHtml(plusIcon)} </${this.iconTag}>
|
|
2730
2803
|
</auro-counter-button>
|
|
@@ -7351,7 +7424,6 @@ let AuroElement$1 = class AuroElement extends i$2 {
|
|
|
7351
7424
|
* @private
|
|
7352
7425
|
*/
|
|
7353
7426
|
wrapper: {
|
|
7354
|
-
type: HTMLElement,
|
|
7355
7427
|
attribute: false,
|
|
7356
7428
|
reflect: false
|
|
7357
7429
|
}
|
|
@@ -7660,7 +7732,7 @@ class AuroLoader extends i$2 {
|
|
|
7660
7732
|
|
|
7661
7733
|
var loaderVersion = '5.0.0';
|
|
7662
7734
|
|
|
7663
|
-
/* eslint-disable max-lines, curly */
|
|
7735
|
+
/* eslint-disable max-lines, curly, jsdoc/no-undefined-types */
|
|
7664
7736
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
7665
7737
|
// See LICENSE in the project root for license information.
|
|
7666
7738
|
|
|
@@ -7727,6 +7799,21 @@ class AuroButton extends AuroElement$1 {
|
|
|
7727
7799
|
* @private
|
|
7728
7800
|
*/
|
|
7729
7801
|
this.loaderTag = versioning.generateTag('auro-loader', loaderVersion, AuroLoader);
|
|
7802
|
+
|
|
7803
|
+
/**
|
|
7804
|
+
* @private
|
|
7805
|
+
*/
|
|
7806
|
+
this.buttonHref = undefined;
|
|
7807
|
+
|
|
7808
|
+
/**
|
|
7809
|
+
* @private
|
|
7810
|
+
*/
|
|
7811
|
+
this.buttonTarget = undefined;
|
|
7812
|
+
|
|
7813
|
+
/**
|
|
7814
|
+
* @private
|
|
7815
|
+
*/
|
|
7816
|
+
this.buttonRel = undefined;
|
|
7730
7817
|
}
|
|
7731
7818
|
|
|
7732
7819
|
static get styles() {
|
|
@@ -7793,13 +7880,23 @@ class AuroButton extends AuroElement$1 {
|
|
|
7793
7880
|
},
|
|
7794
7881
|
|
|
7795
7882
|
/**
|
|
7796
|
-
* Populates `
|
|
7883
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
7797
7884
|
*/
|
|
7798
7885
|
tIndex: {
|
|
7799
7886
|
type: String,
|
|
7800
7887
|
reflect: true
|
|
7801
7888
|
},
|
|
7802
7889
|
|
|
7890
|
+
/**
|
|
7891
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
7892
|
+
* Must be used with "." to ensure the host element does not retain a reference to the `tabindex` attribute.
|
|
7893
|
+
* Example: `<auro-button .tabindex="${this.disabled ? '-1' : '0'}"></auro-button>`
|
|
7894
|
+
*/
|
|
7895
|
+
tabindex: {
|
|
7896
|
+
type: String,
|
|
7897
|
+
reflect: false
|
|
7898
|
+
},
|
|
7899
|
+
|
|
7803
7900
|
/**
|
|
7804
7901
|
* Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
7805
7902
|
*/
|
|
@@ -7832,6 +7929,27 @@ class AuroButton extends AuroElement$1 {
|
|
|
7832
7929
|
type: String,
|
|
7833
7930
|
reflect: true
|
|
7834
7931
|
},
|
|
7932
|
+
|
|
7933
|
+
/**
|
|
7934
|
+
* @private
|
|
7935
|
+
*/
|
|
7936
|
+
buttonHref: {
|
|
7937
|
+
type: String,
|
|
7938
|
+
},
|
|
7939
|
+
|
|
7940
|
+
/**
|
|
7941
|
+
* @private
|
|
7942
|
+
*/
|
|
7943
|
+
buttonTarget: {
|
|
7944
|
+
type: String,
|
|
7945
|
+
},
|
|
7946
|
+
|
|
7947
|
+
/**
|
|
7948
|
+
* @private
|
|
7949
|
+
*/
|
|
7950
|
+
buttonRel: {
|
|
7951
|
+
type: String,
|
|
7952
|
+
},
|
|
7835
7953
|
};
|
|
7836
7954
|
}
|
|
7837
7955
|
|
|
@@ -7922,14 +8040,17 @@ class AuroButton extends AuroElement$1 {
|
|
|
7922
8040
|
loading: this.loading,
|
|
7923
8041
|
};
|
|
7924
8042
|
|
|
8043
|
+
const tag = this.buttonHref ? i$1`a` : i$1`button`;
|
|
8044
|
+
const part = this.buttonHref ? 'link' : 'button';
|
|
8045
|
+
|
|
7925
8046
|
return u`
|
|
7926
|
-
|
|
7927
|
-
part="
|
|
8047
|
+
<${tag}
|
|
8048
|
+
part="${part}"
|
|
7928
8049
|
aria-label="${o(this.loading ? this.loadingText : this.currentAriaLabel || undefined)}"
|
|
7929
8050
|
aria-labelledby="${o(this.loading ? undefined : this.currentAriaLabelledBy || undefined)}"
|
|
7930
|
-
|
|
8051
|
+
tabindex="${o(this.tIndex || this.tabindex)}"
|
|
7931
8052
|
?autofocus="${this.autofocus}"
|
|
7932
|
-
class
|
|
8053
|
+
class=${e(classes)}
|
|
7933
8054
|
?disabled="${this.disabled || this.loading}"
|
|
7934
8055
|
?onDark="${this.onDark}"
|
|
7935
8056
|
title="${o(this.title ? this.title : undefined)}"
|
|
@@ -7938,6 +8059,9 @@ class AuroButton extends AuroElement$1 {
|
|
|
7938
8059
|
variant="${o(this.variant ? this.variant : undefined)}"
|
|
7939
8060
|
.value="${o(this.value ? this.value : undefined)}"
|
|
7940
8061
|
@click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
|
|
8062
|
+
href="${o(this.buttonHref || undefined)}"
|
|
8063
|
+
target="${o(this.buttonTarget || undefined)}"
|
|
8064
|
+
rel="${o(this.buttonRel || undefined)}"
|
|
7941
8065
|
>
|
|
7942
8066
|
${o(this.loading ? u`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
7943
8067
|
|
|
@@ -7946,12 +8070,12 @@ class AuroButton extends AuroElement$1 {
|
|
|
7946
8070
|
<slot></slot>
|
|
7947
8071
|
</span>
|
|
7948
8072
|
</span>
|
|
7949
|
-
|
|
8073
|
+
</${tag}>
|
|
7950
8074
|
`;
|
|
7951
8075
|
}
|
|
7952
8076
|
|
|
7953
8077
|
/**
|
|
7954
|
-
* Renders the layout of the button
|
|
8078
|
+
* Renders the layout of the button.
|
|
7955
8079
|
* @returns {TemplateResult}
|
|
7956
8080
|
* @private
|
|
7957
8081
|
*/
|
|
@@ -7960,7 +8084,7 @@ class AuroButton extends AuroElement$1 {
|
|
|
7960
8084
|
}
|
|
7961
8085
|
}
|
|
7962
8086
|
|
|
7963
|
-
var buttonVersion = '11.
|
|
8087
|
+
var buttonVersion = '11.2.1';
|
|
7964
8088
|
|
|
7965
8089
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
7966
8090
|
// See LICENSE in the project root for license information.
|
|
@@ -9114,7 +9238,7 @@ function isFocusableComponent(element) {
|
|
|
9114
9238
|
const componentName = element.tagName.toLowerCase();
|
|
9115
9239
|
|
|
9116
9240
|
// Guard Clause: Element is a focusable component
|
|
9117
|
-
if (!FOCUSABLE_COMPONENTS.
|
|
9241
|
+
if (!FOCUSABLE_COMPONENTS.some((name) => element.hasAttribute(name) || componentName === name)) return false;
|
|
9118
9242
|
|
|
9119
9243
|
// Guard Clause: Element is not disabled
|
|
9120
9244
|
if (element.hasAttribute('disabled')) return false;
|
|
@@ -9435,6 +9559,8 @@ class AuroCounterGroup extends AuroElement {
|
|
|
9435
9559
|
static get properties() {
|
|
9436
9560
|
return {
|
|
9437
9561
|
|
|
9562
|
+
...super.properties,
|
|
9563
|
+
|
|
9438
9564
|
/**
|
|
9439
9565
|
* If declared, bib's position will be automatically calculated where to appear.
|
|
9440
9566
|
* @default false
|