@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
|
@@ -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) {
|