@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.16 → 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 +478 -93
- package/components/counter/demo/index.min.js +478 -93
- package/components/counter/dist/auro-counter-group.d.ts +16 -8
- package/components/counter/dist/auro-counter.d.ts +6 -0
- package/components/counter/dist/index.js +478 -93
- package/components/counter/dist/registered.js +478 -93
- 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
|
@@ -11920,7 +11920,6 @@ let AuroElement$3 = class AuroElement extends i$2 {
|
|
|
11920
11920
|
* @private
|
|
11921
11921
|
*/
|
|
11922
11922
|
wrapper: {
|
|
11923
|
-
type: HTMLElement,
|
|
11924
11923
|
attribute: false,
|
|
11925
11924
|
reflect: false
|
|
11926
11925
|
}
|
|
@@ -12229,7 +12228,7 @@ let AuroLoader$1 = class AuroLoader extends i$2 {
|
|
|
12229
12228
|
|
|
12230
12229
|
var loaderVersion$1 = '5.0.0';
|
|
12231
12230
|
|
|
12232
|
-
/* eslint-disable max-lines, curly */
|
|
12231
|
+
/* eslint-disable max-lines, curly, jsdoc/no-undefined-types */
|
|
12233
12232
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
12234
12233
|
// See LICENSE in the project root for license information.
|
|
12235
12234
|
|
|
@@ -12296,6 +12295,21 @@ let AuroButton$1 = class AuroButton extends AuroElement$3 {
|
|
|
12296
12295
|
* @private
|
|
12297
12296
|
*/
|
|
12298
12297
|
this.loaderTag = versioning.generateTag('auro-loader', loaderVersion$1, AuroLoader$1);
|
|
12298
|
+
|
|
12299
|
+
/**
|
|
12300
|
+
* @private
|
|
12301
|
+
*/
|
|
12302
|
+
this.buttonHref = undefined;
|
|
12303
|
+
|
|
12304
|
+
/**
|
|
12305
|
+
* @private
|
|
12306
|
+
*/
|
|
12307
|
+
this.buttonTarget = undefined;
|
|
12308
|
+
|
|
12309
|
+
/**
|
|
12310
|
+
* @private
|
|
12311
|
+
*/
|
|
12312
|
+
this.buttonRel = undefined;
|
|
12299
12313
|
}
|
|
12300
12314
|
|
|
12301
12315
|
static get styles() {
|
|
@@ -12362,13 +12376,23 @@ let AuroButton$1 = class AuroButton extends AuroElement$3 {
|
|
|
12362
12376
|
},
|
|
12363
12377
|
|
|
12364
12378
|
/**
|
|
12365
|
-
* Populates `
|
|
12379
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
12366
12380
|
*/
|
|
12367
12381
|
tIndex: {
|
|
12368
12382
|
type: String,
|
|
12369
12383
|
reflect: true
|
|
12370
12384
|
},
|
|
12371
12385
|
|
|
12386
|
+
/**
|
|
12387
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
12388
|
+
* Must be used with "." to ensure the host element does not retain a reference to the `tabindex` attribute.
|
|
12389
|
+
* Example: `<auro-button .tabindex="${this.disabled ? '-1' : '0'}"></auro-button>`
|
|
12390
|
+
*/
|
|
12391
|
+
tabindex: {
|
|
12392
|
+
type: String,
|
|
12393
|
+
reflect: false
|
|
12394
|
+
},
|
|
12395
|
+
|
|
12372
12396
|
/**
|
|
12373
12397
|
* Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
12374
12398
|
*/
|
|
@@ -12401,6 +12425,27 @@ let AuroButton$1 = class AuroButton extends AuroElement$3 {
|
|
|
12401
12425
|
type: String,
|
|
12402
12426
|
reflect: true
|
|
12403
12427
|
},
|
|
12428
|
+
|
|
12429
|
+
/**
|
|
12430
|
+
* @private
|
|
12431
|
+
*/
|
|
12432
|
+
buttonHref: {
|
|
12433
|
+
type: String,
|
|
12434
|
+
},
|
|
12435
|
+
|
|
12436
|
+
/**
|
|
12437
|
+
* @private
|
|
12438
|
+
*/
|
|
12439
|
+
buttonTarget: {
|
|
12440
|
+
type: String,
|
|
12441
|
+
},
|
|
12442
|
+
|
|
12443
|
+
/**
|
|
12444
|
+
* @private
|
|
12445
|
+
*/
|
|
12446
|
+
buttonRel: {
|
|
12447
|
+
type: String,
|
|
12448
|
+
},
|
|
12404
12449
|
};
|
|
12405
12450
|
}
|
|
12406
12451
|
|
|
@@ -12491,14 +12536,17 @@ let AuroButton$1 = class AuroButton extends AuroElement$3 {
|
|
|
12491
12536
|
loading: this.loading,
|
|
12492
12537
|
};
|
|
12493
12538
|
|
|
12539
|
+
const tag = this.buttonHref ? i$1`a` : i$1`button`;
|
|
12540
|
+
const part = this.buttonHref ? 'link' : 'button';
|
|
12541
|
+
|
|
12494
12542
|
return u$2`
|
|
12495
|
-
|
|
12496
|
-
part="
|
|
12543
|
+
<${tag}
|
|
12544
|
+
part="${part}"
|
|
12497
12545
|
aria-label="${o(this.loading ? this.loadingText : this.currentAriaLabel || undefined)}"
|
|
12498
12546
|
aria-labelledby="${o(this.loading ? undefined : this.currentAriaLabelledBy || undefined)}"
|
|
12499
|
-
|
|
12547
|
+
tabindex="${o(this.tIndex || this.tabindex)}"
|
|
12500
12548
|
?autofocus="${this.autofocus}"
|
|
12501
|
-
class
|
|
12549
|
+
class=${e(classes)}
|
|
12502
12550
|
?disabled="${this.disabled || this.loading}"
|
|
12503
12551
|
?onDark="${this.onDark}"
|
|
12504
12552
|
title="${o(this.title ? this.title : undefined)}"
|
|
@@ -12507,6 +12555,9 @@ let AuroButton$1 = class AuroButton extends AuroElement$3 {
|
|
|
12507
12555
|
variant="${o(this.variant ? this.variant : undefined)}"
|
|
12508
12556
|
.value="${o(this.value ? this.value : undefined)}"
|
|
12509
12557
|
@click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
|
|
12558
|
+
href="${o(this.buttonHref || undefined)}"
|
|
12559
|
+
target="${o(this.buttonTarget || undefined)}"
|
|
12560
|
+
rel="${o(this.buttonRel || undefined)}"
|
|
12510
12561
|
>
|
|
12511
12562
|
${o(this.loading ? u$2`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
12512
12563
|
|
|
@@ -12515,12 +12566,12 @@ let AuroButton$1 = class AuroButton extends AuroElement$3 {
|
|
|
12515
12566
|
<slot></slot>
|
|
12516
12567
|
</span>
|
|
12517
12568
|
</span>
|
|
12518
|
-
|
|
12569
|
+
</${tag}>
|
|
12519
12570
|
`;
|
|
12520
12571
|
}
|
|
12521
12572
|
|
|
12522
12573
|
/**
|
|
12523
|
-
* Renders the layout of the button
|
|
12574
|
+
* Renders the layout of the button.
|
|
12524
12575
|
* @returns {TemplateResult}
|
|
12525
12576
|
* @private
|
|
12526
12577
|
*/
|
|
@@ -13750,7 +13801,6 @@ let AuroElement$1$1 = class AuroElement extends i$2 {
|
|
|
13750
13801
|
* @private
|
|
13751
13802
|
*/
|
|
13752
13803
|
wrapper: {
|
|
13753
|
-
type: HTMLElement,
|
|
13754
13804
|
attribute: false,
|
|
13755
13805
|
reflect: false
|
|
13756
13806
|
}
|
|
@@ -14059,7 +14109,7 @@ class AuroLoader extends i$2 {
|
|
|
14059
14109
|
|
|
14060
14110
|
var loaderVersion = '5.0.0';
|
|
14061
14111
|
|
|
14062
|
-
/* eslint-disable max-lines, curly */
|
|
14112
|
+
/* eslint-disable max-lines, curly, jsdoc/no-undefined-types */
|
|
14063
14113
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
14064
14114
|
// See LICENSE in the project root for license information.
|
|
14065
14115
|
|
|
@@ -14126,6 +14176,21 @@ class AuroButton extends AuroElement$1$1 {
|
|
|
14126
14176
|
* @private
|
|
14127
14177
|
*/
|
|
14128
14178
|
this.loaderTag = versioning.generateTag('auro-loader', loaderVersion, AuroLoader);
|
|
14179
|
+
|
|
14180
|
+
/**
|
|
14181
|
+
* @private
|
|
14182
|
+
*/
|
|
14183
|
+
this.buttonHref = undefined;
|
|
14184
|
+
|
|
14185
|
+
/**
|
|
14186
|
+
* @private
|
|
14187
|
+
*/
|
|
14188
|
+
this.buttonTarget = undefined;
|
|
14189
|
+
|
|
14190
|
+
/**
|
|
14191
|
+
* @private
|
|
14192
|
+
*/
|
|
14193
|
+
this.buttonRel = undefined;
|
|
14129
14194
|
}
|
|
14130
14195
|
|
|
14131
14196
|
static get styles() {
|
|
@@ -14192,13 +14257,23 @@ class AuroButton extends AuroElement$1$1 {
|
|
|
14192
14257
|
},
|
|
14193
14258
|
|
|
14194
14259
|
/**
|
|
14195
|
-
* Populates `
|
|
14260
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
14196
14261
|
*/
|
|
14197
14262
|
tIndex: {
|
|
14198
14263
|
type: String,
|
|
14199
14264
|
reflect: true
|
|
14200
14265
|
},
|
|
14201
14266
|
|
|
14267
|
+
/**
|
|
14268
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
14269
|
+
* Must be used with "." to ensure the host element does not retain a reference to the `tabindex` attribute.
|
|
14270
|
+
* Example: `<auro-button .tabindex="${this.disabled ? '-1' : '0'}"></auro-button>`
|
|
14271
|
+
*/
|
|
14272
|
+
tabindex: {
|
|
14273
|
+
type: String,
|
|
14274
|
+
reflect: false
|
|
14275
|
+
},
|
|
14276
|
+
|
|
14202
14277
|
/**
|
|
14203
14278
|
* Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
14204
14279
|
*/
|
|
@@ -14231,6 +14306,27 @@ class AuroButton extends AuroElement$1$1 {
|
|
|
14231
14306
|
type: String,
|
|
14232
14307
|
reflect: true
|
|
14233
14308
|
},
|
|
14309
|
+
|
|
14310
|
+
/**
|
|
14311
|
+
* @private
|
|
14312
|
+
*/
|
|
14313
|
+
buttonHref: {
|
|
14314
|
+
type: String,
|
|
14315
|
+
},
|
|
14316
|
+
|
|
14317
|
+
/**
|
|
14318
|
+
* @private
|
|
14319
|
+
*/
|
|
14320
|
+
buttonTarget: {
|
|
14321
|
+
type: String,
|
|
14322
|
+
},
|
|
14323
|
+
|
|
14324
|
+
/**
|
|
14325
|
+
* @private
|
|
14326
|
+
*/
|
|
14327
|
+
buttonRel: {
|
|
14328
|
+
type: String,
|
|
14329
|
+
},
|
|
14234
14330
|
};
|
|
14235
14331
|
}
|
|
14236
14332
|
|
|
@@ -14321,14 +14417,17 @@ class AuroButton extends AuroElement$1$1 {
|
|
|
14321
14417
|
loading: this.loading,
|
|
14322
14418
|
};
|
|
14323
14419
|
|
|
14420
|
+
const tag = this.buttonHref ? i$1`a` : i$1`button`;
|
|
14421
|
+
const part = this.buttonHref ? 'link' : 'button';
|
|
14422
|
+
|
|
14324
14423
|
return u$2`
|
|
14325
|
-
|
|
14326
|
-
part="
|
|
14424
|
+
<${tag}
|
|
14425
|
+
part="${part}"
|
|
14327
14426
|
aria-label="${o(this.loading ? this.loadingText : this.currentAriaLabel || undefined)}"
|
|
14328
14427
|
aria-labelledby="${o(this.loading ? undefined : this.currentAriaLabelledBy || undefined)}"
|
|
14329
|
-
|
|
14428
|
+
tabindex="${o(this.tIndex || this.tabindex)}"
|
|
14330
14429
|
?autofocus="${this.autofocus}"
|
|
14331
|
-
class
|
|
14430
|
+
class=${e(classes)}
|
|
14332
14431
|
?disabled="${this.disabled || this.loading}"
|
|
14333
14432
|
?onDark="${this.onDark}"
|
|
14334
14433
|
title="${o(this.title ? this.title : undefined)}"
|
|
@@ -14337,6 +14436,9 @@ class AuroButton extends AuroElement$1$1 {
|
|
|
14337
14436
|
variant="${o(this.variant ? this.variant : undefined)}"
|
|
14338
14437
|
.value="${o(this.value ? this.value : undefined)}"
|
|
14339
14438
|
@click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
|
|
14439
|
+
href="${o(this.buttonHref || undefined)}"
|
|
14440
|
+
target="${o(this.buttonTarget || undefined)}"
|
|
14441
|
+
rel="${o(this.buttonRel || undefined)}"
|
|
14340
14442
|
>
|
|
14341
14443
|
${o(this.loading ? u$2`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
14342
14444
|
|
|
@@ -14345,12 +14447,12 @@ class AuroButton extends AuroElement$1$1 {
|
|
|
14345
14447
|
<slot></slot>
|
|
14346
14448
|
</span>
|
|
14347
14449
|
</span>
|
|
14348
|
-
|
|
14450
|
+
</${tag}>
|
|
14349
14451
|
`;
|
|
14350
14452
|
}
|
|
14351
14453
|
|
|
14352
14454
|
/**
|
|
14353
|
-
* Renders the layout of the button
|
|
14455
|
+
* Renders the layout of the button.
|
|
14354
14456
|
* @returns {TemplateResult}
|
|
14355
14457
|
* @private
|
|
14356
14458
|
*/
|
|
@@ -14359,7 +14461,7 @@ class AuroButton extends AuroElement$1$1 {
|
|
|
14359
14461
|
}
|
|
14360
14462
|
}
|
|
14361
14463
|
|
|
14362
|
-
var buttonVersion = '11.
|
|
14464
|
+
var buttonVersion = '11.2.1';
|
|
14363
14465
|
|
|
14364
14466
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
14365
14467
|
// See LICENSE in the project root for license information.
|
|
@@ -16255,10 +16357,10 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16255
16357
|
this.dropdown = this.shadowRoot.querySelector(this.dropdownTag._$litStatic$);
|
|
16256
16358
|
this.input = this.dropdown.querySelector(this.inputTag._$litStatic$);
|
|
16257
16359
|
|
|
16258
|
-
this.configureMenu();
|
|
16259
16360
|
this.configureInput();
|
|
16260
16361
|
this.configureDropdown();
|
|
16261
16362
|
this.configureCombobox();
|
|
16363
|
+
this.configureMenu();
|
|
16262
16364
|
|
|
16263
16365
|
// Set the initial value in auro-menu if defined
|
|
16264
16366
|
if (this.hasAttribute('value') && this.getAttribute('value').length > 0) {
|
|
@@ -16717,6 +16819,7 @@ class AuroMenu extends AuroElement$1 {
|
|
|
16717
16819
|
this.addEventListener('mousedown', this.handleMouseSelect);
|
|
16718
16820
|
this.addEventListener('auroMenuOption-mouseover', this.handleOptionHover);
|
|
16719
16821
|
this.addEventListener('slotchange', this.handleSlotChange);
|
|
16822
|
+
this.setTagAttribute("auro-menu");
|
|
16720
16823
|
}
|
|
16721
16824
|
|
|
16722
16825
|
disconnectedCallback() {
|
|
@@ -16735,6 +16838,17 @@ class AuroMenu extends AuroElement$1 {
|
|
|
16735
16838
|
this.initializeMenu();
|
|
16736
16839
|
}
|
|
16737
16840
|
|
|
16841
|
+
/**
|
|
16842
|
+
* Sets an attribute that matches the default tag name if the tag name is not the default.
|
|
16843
|
+
* @param {string} tagName - The tag name to set as an attribute.
|
|
16844
|
+
* @private
|
|
16845
|
+
*/
|
|
16846
|
+
setTagAttribute(tagName) {
|
|
16847
|
+
if (this.tagName.toLowerCase() !== tagName) {
|
|
16848
|
+
this.setAttribute(tagName, true);
|
|
16849
|
+
}
|
|
16850
|
+
}
|
|
16851
|
+
|
|
16738
16852
|
updated(changedProperties) {
|
|
16739
16853
|
super.updated(changedProperties);
|
|
16740
16854
|
|
|
@@ -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) {
|