@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
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "11.
|
|
1
|
+
declare const _default: "11.2.1";
|
|
2
2
|
export default _default;
|
|
@@ -501,7 +501,6 @@ let AuroElement$1 = class AuroElement extends LitElement {
|
|
|
501
501
|
* @private
|
|
502
502
|
*/
|
|
503
503
|
wrapper: {
|
|
504
|
-
type: HTMLElement,
|
|
505
504
|
attribute: false,
|
|
506
505
|
reflect: false
|
|
507
506
|
}
|
|
@@ -810,7 +809,7 @@ class AuroLoader extends LitElement {
|
|
|
810
809
|
|
|
811
810
|
var loaderVersion = '5.0.0';
|
|
812
811
|
|
|
813
|
-
/* eslint-disable max-lines, curly */
|
|
812
|
+
/* eslint-disable max-lines, curly, jsdoc/no-undefined-types */
|
|
814
813
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
815
814
|
// See LICENSE in the project root for license information.
|
|
816
815
|
|
|
@@ -877,6 +876,21 @@ class AuroButton extends AuroElement$1 {
|
|
|
877
876
|
* @private
|
|
878
877
|
*/
|
|
879
878
|
this.loaderTag = versioning.generateTag('auro-loader', loaderVersion, AuroLoader);
|
|
879
|
+
|
|
880
|
+
/**
|
|
881
|
+
* @private
|
|
882
|
+
*/
|
|
883
|
+
this.buttonHref = undefined;
|
|
884
|
+
|
|
885
|
+
/**
|
|
886
|
+
* @private
|
|
887
|
+
*/
|
|
888
|
+
this.buttonTarget = undefined;
|
|
889
|
+
|
|
890
|
+
/**
|
|
891
|
+
* @private
|
|
892
|
+
*/
|
|
893
|
+
this.buttonRel = undefined;
|
|
880
894
|
}
|
|
881
895
|
|
|
882
896
|
static get styles() {
|
|
@@ -943,13 +957,23 @@ class AuroButton extends AuroElement$1 {
|
|
|
943
957
|
},
|
|
944
958
|
|
|
945
959
|
/**
|
|
946
|
-
* Populates `
|
|
960
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
947
961
|
*/
|
|
948
962
|
tIndex: {
|
|
949
963
|
type: String,
|
|
950
964
|
reflect: true
|
|
951
965
|
},
|
|
952
966
|
|
|
967
|
+
/**
|
|
968
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
969
|
+
* Must be used with "." to ensure the host element does not retain a reference to the `tabindex` attribute.
|
|
970
|
+
* Example: `<auro-button .tabindex="${this.disabled ? '-1' : '0'}"></auro-button>`
|
|
971
|
+
*/
|
|
972
|
+
tabindex: {
|
|
973
|
+
type: String,
|
|
974
|
+
reflect: false
|
|
975
|
+
},
|
|
976
|
+
|
|
953
977
|
/**
|
|
954
978
|
* Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
955
979
|
*/
|
|
@@ -982,6 +1006,27 @@ class AuroButton extends AuroElement$1 {
|
|
|
982
1006
|
type: String,
|
|
983
1007
|
reflect: true
|
|
984
1008
|
},
|
|
1009
|
+
|
|
1010
|
+
/**
|
|
1011
|
+
* @private
|
|
1012
|
+
*/
|
|
1013
|
+
buttonHref: {
|
|
1014
|
+
type: String,
|
|
1015
|
+
},
|
|
1016
|
+
|
|
1017
|
+
/**
|
|
1018
|
+
* @private
|
|
1019
|
+
*/
|
|
1020
|
+
buttonTarget: {
|
|
1021
|
+
type: String,
|
|
1022
|
+
},
|
|
1023
|
+
|
|
1024
|
+
/**
|
|
1025
|
+
* @private
|
|
1026
|
+
*/
|
|
1027
|
+
buttonRel: {
|
|
1028
|
+
type: String,
|
|
1029
|
+
},
|
|
985
1030
|
};
|
|
986
1031
|
}
|
|
987
1032
|
|
|
@@ -1072,14 +1117,17 @@ class AuroButton extends AuroElement$1 {
|
|
|
1072
1117
|
loading: this.loading,
|
|
1073
1118
|
};
|
|
1074
1119
|
|
|
1120
|
+
const tag = this.buttonHref ? literal`a` : literal`button`;
|
|
1121
|
+
const part = this.buttonHref ? 'link' : 'button';
|
|
1122
|
+
|
|
1075
1123
|
return html$1`
|
|
1076
|
-
|
|
1077
|
-
part="
|
|
1124
|
+
<${tag}
|
|
1125
|
+
part="${part}"
|
|
1078
1126
|
aria-label="${ifDefined(this.loading ? this.loadingText : this.currentAriaLabel || undefined)}"
|
|
1079
1127
|
aria-labelledby="${ifDefined(this.loading ? undefined : this.currentAriaLabelledBy || undefined)}"
|
|
1080
|
-
|
|
1128
|
+
tabindex="${ifDefined(this.tIndex || this.tabindex)}"
|
|
1081
1129
|
?autofocus="${this.autofocus}"
|
|
1082
|
-
class
|
|
1130
|
+
class=${classMap(classes)}
|
|
1083
1131
|
?disabled="${this.disabled || this.loading}"
|
|
1084
1132
|
?onDark="${this.onDark}"
|
|
1085
1133
|
title="${ifDefined(this.title ? this.title : undefined)}"
|
|
@@ -1088,6 +1136,9 @@ class AuroButton extends AuroElement$1 {
|
|
|
1088
1136
|
variant="${ifDefined(this.variant ? this.variant : undefined)}"
|
|
1089
1137
|
.value="${ifDefined(this.value ? this.value : undefined)}"
|
|
1090
1138
|
@click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
|
|
1139
|
+
href="${ifDefined(this.buttonHref || undefined)}"
|
|
1140
|
+
target="${ifDefined(this.buttonTarget || undefined)}"
|
|
1141
|
+
rel="${ifDefined(this.buttonRel || undefined)}"
|
|
1091
1142
|
>
|
|
1092
1143
|
${ifDefined(this.loading ? html$1`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
1093
1144
|
|
|
@@ -1096,12 +1147,12 @@ class AuroButton extends AuroElement$1 {
|
|
|
1096
1147
|
<slot></slot>
|
|
1097
1148
|
</span>
|
|
1098
1149
|
</span>
|
|
1099
|
-
|
|
1150
|
+
</${tag}>
|
|
1100
1151
|
`;
|
|
1101
1152
|
}
|
|
1102
1153
|
|
|
1103
1154
|
/**
|
|
1104
|
-
* Renders the layout of the button
|
|
1155
|
+
* Renders the layout of the button.
|
|
1105
1156
|
* @returns {TemplateResult}
|
|
1106
1157
|
* @private
|
|
1107
1158
|
*/
|
|
@@ -1110,7 +1161,7 @@ class AuroButton extends AuroElement$1 {
|
|
|
1110
1161
|
}
|
|
1111
1162
|
}
|
|
1112
1163
|
|
|
1113
|
-
var buttonVersion = '11.
|
|
1164
|
+
var buttonVersion = '11.2.1';
|
|
1114
1165
|
|
|
1115
1166
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
1116
1167
|
// See LICENSE in the project root for license information.
|
|
@@ -501,7 +501,6 @@ let AuroElement$1 = class AuroElement extends LitElement {
|
|
|
501
501
|
* @private
|
|
502
502
|
*/
|
|
503
503
|
wrapper: {
|
|
504
|
-
type: HTMLElement,
|
|
505
504
|
attribute: false,
|
|
506
505
|
reflect: false
|
|
507
506
|
}
|
|
@@ -810,7 +809,7 @@ class AuroLoader extends LitElement {
|
|
|
810
809
|
|
|
811
810
|
var loaderVersion = '5.0.0';
|
|
812
811
|
|
|
813
|
-
/* eslint-disable max-lines, curly */
|
|
812
|
+
/* eslint-disable max-lines, curly, jsdoc/no-undefined-types */
|
|
814
813
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
815
814
|
// See LICENSE in the project root for license information.
|
|
816
815
|
|
|
@@ -877,6 +876,21 @@ class AuroButton extends AuroElement$1 {
|
|
|
877
876
|
* @private
|
|
878
877
|
*/
|
|
879
878
|
this.loaderTag = versioning.generateTag('auro-loader', loaderVersion, AuroLoader);
|
|
879
|
+
|
|
880
|
+
/**
|
|
881
|
+
* @private
|
|
882
|
+
*/
|
|
883
|
+
this.buttonHref = undefined;
|
|
884
|
+
|
|
885
|
+
/**
|
|
886
|
+
* @private
|
|
887
|
+
*/
|
|
888
|
+
this.buttonTarget = undefined;
|
|
889
|
+
|
|
890
|
+
/**
|
|
891
|
+
* @private
|
|
892
|
+
*/
|
|
893
|
+
this.buttonRel = undefined;
|
|
880
894
|
}
|
|
881
895
|
|
|
882
896
|
static get styles() {
|
|
@@ -943,13 +957,23 @@ class AuroButton extends AuroElement$1 {
|
|
|
943
957
|
},
|
|
944
958
|
|
|
945
959
|
/**
|
|
946
|
-
* Populates `
|
|
960
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
947
961
|
*/
|
|
948
962
|
tIndex: {
|
|
949
963
|
type: String,
|
|
950
964
|
reflect: true
|
|
951
965
|
},
|
|
952
966
|
|
|
967
|
+
/**
|
|
968
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
969
|
+
* Must be used with "." to ensure the host element does not retain a reference to the `tabindex` attribute.
|
|
970
|
+
* Example: `<auro-button .tabindex="${this.disabled ? '-1' : '0'}"></auro-button>`
|
|
971
|
+
*/
|
|
972
|
+
tabindex: {
|
|
973
|
+
type: String,
|
|
974
|
+
reflect: false
|
|
975
|
+
},
|
|
976
|
+
|
|
953
977
|
/**
|
|
954
978
|
* Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
955
979
|
*/
|
|
@@ -982,6 +1006,27 @@ class AuroButton extends AuroElement$1 {
|
|
|
982
1006
|
type: String,
|
|
983
1007
|
reflect: true
|
|
984
1008
|
},
|
|
1009
|
+
|
|
1010
|
+
/**
|
|
1011
|
+
* @private
|
|
1012
|
+
*/
|
|
1013
|
+
buttonHref: {
|
|
1014
|
+
type: String,
|
|
1015
|
+
},
|
|
1016
|
+
|
|
1017
|
+
/**
|
|
1018
|
+
* @private
|
|
1019
|
+
*/
|
|
1020
|
+
buttonTarget: {
|
|
1021
|
+
type: String,
|
|
1022
|
+
},
|
|
1023
|
+
|
|
1024
|
+
/**
|
|
1025
|
+
* @private
|
|
1026
|
+
*/
|
|
1027
|
+
buttonRel: {
|
|
1028
|
+
type: String,
|
|
1029
|
+
},
|
|
985
1030
|
};
|
|
986
1031
|
}
|
|
987
1032
|
|
|
@@ -1072,14 +1117,17 @@ class AuroButton extends AuroElement$1 {
|
|
|
1072
1117
|
loading: this.loading,
|
|
1073
1118
|
};
|
|
1074
1119
|
|
|
1120
|
+
const tag = this.buttonHref ? literal`a` : literal`button`;
|
|
1121
|
+
const part = this.buttonHref ? 'link' : 'button';
|
|
1122
|
+
|
|
1075
1123
|
return html$1`
|
|
1076
|
-
|
|
1077
|
-
part="
|
|
1124
|
+
<${tag}
|
|
1125
|
+
part="${part}"
|
|
1078
1126
|
aria-label="${ifDefined(this.loading ? this.loadingText : this.currentAriaLabel || undefined)}"
|
|
1079
1127
|
aria-labelledby="${ifDefined(this.loading ? undefined : this.currentAriaLabelledBy || undefined)}"
|
|
1080
|
-
|
|
1128
|
+
tabindex="${ifDefined(this.tIndex || this.tabindex)}"
|
|
1081
1129
|
?autofocus="${this.autofocus}"
|
|
1082
|
-
class
|
|
1130
|
+
class=${classMap(classes)}
|
|
1083
1131
|
?disabled="${this.disabled || this.loading}"
|
|
1084
1132
|
?onDark="${this.onDark}"
|
|
1085
1133
|
title="${ifDefined(this.title ? this.title : undefined)}"
|
|
@@ -1088,6 +1136,9 @@ class AuroButton extends AuroElement$1 {
|
|
|
1088
1136
|
variant="${ifDefined(this.variant ? this.variant : undefined)}"
|
|
1089
1137
|
.value="${ifDefined(this.value ? this.value : undefined)}"
|
|
1090
1138
|
@click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
|
|
1139
|
+
href="${ifDefined(this.buttonHref || undefined)}"
|
|
1140
|
+
target="${ifDefined(this.buttonTarget || undefined)}"
|
|
1141
|
+
rel="${ifDefined(this.buttonRel || undefined)}"
|
|
1091
1142
|
>
|
|
1092
1143
|
${ifDefined(this.loading ? html$1`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
1093
1144
|
|
|
@@ -1096,12 +1147,12 @@ class AuroButton extends AuroElement$1 {
|
|
|
1096
1147
|
<slot></slot>
|
|
1097
1148
|
</span>
|
|
1098
1149
|
</span>
|
|
1099
|
-
|
|
1150
|
+
</${tag}>
|
|
1100
1151
|
`;
|
|
1101
1152
|
}
|
|
1102
1153
|
|
|
1103
1154
|
/**
|
|
1104
|
-
* Renders the layout of the button
|
|
1155
|
+
* Renders the layout of the button.
|
|
1105
1156
|
* @returns {TemplateResult}
|
|
1106
1157
|
* @private
|
|
1107
1158
|
*/
|
|
@@ -1110,7 +1161,7 @@ class AuroButton extends AuroElement$1 {
|
|
|
1110
1161
|
}
|
|
1111
1162
|
}
|
|
1112
1163
|
|
|
1113
|
-
var buttonVersion = '11.
|
|
1164
|
+
var buttonVersion = '11.2.1';
|
|
1114
1165
|
|
|
1115
1166
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
1116
1167
|
// See LICENSE in the project root for license information.
|
|
@@ -12062,7 +12062,6 @@ let AuroElement$3 = class AuroElement extends i$2 {
|
|
|
12062
12062
|
* @private
|
|
12063
12063
|
*/
|
|
12064
12064
|
wrapper: {
|
|
12065
|
-
type: HTMLElement,
|
|
12066
12065
|
attribute: false,
|
|
12067
12066
|
reflect: false
|
|
12068
12067
|
}
|
|
@@ -12371,7 +12370,7 @@ let AuroLoader$1 = class AuroLoader extends i$2 {
|
|
|
12371
12370
|
|
|
12372
12371
|
var loaderVersion$1 = '5.0.0';
|
|
12373
12372
|
|
|
12374
|
-
/* eslint-disable max-lines, curly */
|
|
12373
|
+
/* eslint-disable max-lines, curly, jsdoc/no-undefined-types */
|
|
12375
12374
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
12376
12375
|
// See LICENSE in the project root for license information.
|
|
12377
12376
|
|
|
@@ -12438,6 +12437,21 @@ let AuroButton$1 = class AuroButton extends AuroElement$3 {
|
|
|
12438
12437
|
* @private
|
|
12439
12438
|
*/
|
|
12440
12439
|
this.loaderTag = versioning.generateTag('auro-loader', loaderVersion$1, AuroLoader$1);
|
|
12440
|
+
|
|
12441
|
+
/**
|
|
12442
|
+
* @private
|
|
12443
|
+
*/
|
|
12444
|
+
this.buttonHref = undefined;
|
|
12445
|
+
|
|
12446
|
+
/**
|
|
12447
|
+
* @private
|
|
12448
|
+
*/
|
|
12449
|
+
this.buttonTarget = undefined;
|
|
12450
|
+
|
|
12451
|
+
/**
|
|
12452
|
+
* @private
|
|
12453
|
+
*/
|
|
12454
|
+
this.buttonRel = undefined;
|
|
12441
12455
|
}
|
|
12442
12456
|
|
|
12443
12457
|
static get styles() {
|
|
@@ -12504,13 +12518,23 @@ let AuroButton$1 = class AuroButton extends AuroElement$3 {
|
|
|
12504
12518
|
},
|
|
12505
12519
|
|
|
12506
12520
|
/**
|
|
12507
|
-
* Populates `
|
|
12521
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
12508
12522
|
*/
|
|
12509
12523
|
tIndex: {
|
|
12510
12524
|
type: String,
|
|
12511
12525
|
reflect: true
|
|
12512
12526
|
},
|
|
12513
12527
|
|
|
12528
|
+
/**
|
|
12529
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
12530
|
+
* Must be used with "." to ensure the host element does not retain a reference to the `tabindex` attribute.
|
|
12531
|
+
* Example: `<auro-button .tabindex="${this.disabled ? '-1' : '0'}"></auro-button>`
|
|
12532
|
+
*/
|
|
12533
|
+
tabindex: {
|
|
12534
|
+
type: String,
|
|
12535
|
+
reflect: false
|
|
12536
|
+
},
|
|
12537
|
+
|
|
12514
12538
|
/**
|
|
12515
12539
|
* Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
12516
12540
|
*/
|
|
@@ -12543,6 +12567,27 @@ let AuroButton$1 = class AuroButton extends AuroElement$3 {
|
|
|
12543
12567
|
type: String,
|
|
12544
12568
|
reflect: true
|
|
12545
12569
|
},
|
|
12570
|
+
|
|
12571
|
+
/**
|
|
12572
|
+
* @private
|
|
12573
|
+
*/
|
|
12574
|
+
buttonHref: {
|
|
12575
|
+
type: String,
|
|
12576
|
+
},
|
|
12577
|
+
|
|
12578
|
+
/**
|
|
12579
|
+
* @private
|
|
12580
|
+
*/
|
|
12581
|
+
buttonTarget: {
|
|
12582
|
+
type: String,
|
|
12583
|
+
},
|
|
12584
|
+
|
|
12585
|
+
/**
|
|
12586
|
+
* @private
|
|
12587
|
+
*/
|
|
12588
|
+
buttonRel: {
|
|
12589
|
+
type: String,
|
|
12590
|
+
},
|
|
12546
12591
|
};
|
|
12547
12592
|
}
|
|
12548
12593
|
|
|
@@ -12633,14 +12678,17 @@ let AuroButton$1 = class AuroButton extends AuroElement$3 {
|
|
|
12633
12678
|
loading: this.loading,
|
|
12634
12679
|
};
|
|
12635
12680
|
|
|
12681
|
+
const tag = this.buttonHref ? i$1`a` : i$1`button`;
|
|
12682
|
+
const part = this.buttonHref ? 'link' : 'button';
|
|
12683
|
+
|
|
12636
12684
|
return u$2`
|
|
12637
|
-
|
|
12638
|
-
part="
|
|
12685
|
+
<${tag}
|
|
12686
|
+
part="${part}"
|
|
12639
12687
|
aria-label="${o(this.loading ? this.loadingText : this.currentAriaLabel || undefined)}"
|
|
12640
12688
|
aria-labelledby="${o(this.loading ? undefined : this.currentAriaLabelledBy || undefined)}"
|
|
12641
|
-
|
|
12689
|
+
tabindex="${o(this.tIndex || this.tabindex)}"
|
|
12642
12690
|
?autofocus="${this.autofocus}"
|
|
12643
|
-
class
|
|
12691
|
+
class=${e(classes)}
|
|
12644
12692
|
?disabled="${this.disabled || this.loading}"
|
|
12645
12693
|
?onDark="${this.onDark}"
|
|
12646
12694
|
title="${o(this.title ? this.title : undefined)}"
|
|
@@ -12649,6 +12697,9 @@ let AuroButton$1 = class AuroButton extends AuroElement$3 {
|
|
|
12649
12697
|
variant="${o(this.variant ? this.variant : undefined)}"
|
|
12650
12698
|
.value="${o(this.value ? this.value : undefined)}"
|
|
12651
12699
|
@click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
|
|
12700
|
+
href="${o(this.buttonHref || undefined)}"
|
|
12701
|
+
target="${o(this.buttonTarget || undefined)}"
|
|
12702
|
+
rel="${o(this.buttonRel || undefined)}"
|
|
12652
12703
|
>
|
|
12653
12704
|
${o(this.loading ? u$2`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
12654
12705
|
|
|
@@ -12657,12 +12708,12 @@ let AuroButton$1 = class AuroButton extends AuroElement$3 {
|
|
|
12657
12708
|
<slot></slot>
|
|
12658
12709
|
</span>
|
|
12659
12710
|
</span>
|
|
12660
|
-
|
|
12711
|
+
</${tag}>
|
|
12661
12712
|
`;
|
|
12662
12713
|
}
|
|
12663
12714
|
|
|
12664
12715
|
/**
|
|
12665
|
-
* Renders the layout of the button
|
|
12716
|
+
* Renders the layout of the button.
|
|
12666
12717
|
* @returns {TemplateResult}
|
|
12667
12718
|
* @private
|
|
12668
12719
|
*/
|
|
@@ -13892,7 +13943,6 @@ let AuroElement$1$1 = class AuroElement extends i$2 {
|
|
|
13892
13943
|
* @private
|
|
13893
13944
|
*/
|
|
13894
13945
|
wrapper: {
|
|
13895
|
-
type: HTMLElement,
|
|
13896
13946
|
attribute: false,
|
|
13897
13947
|
reflect: false
|
|
13898
13948
|
}
|
|
@@ -14201,7 +14251,7 @@ class AuroLoader extends i$2 {
|
|
|
14201
14251
|
|
|
14202
14252
|
var loaderVersion = '5.0.0';
|
|
14203
14253
|
|
|
14204
|
-
/* eslint-disable max-lines, curly */
|
|
14254
|
+
/* eslint-disable max-lines, curly, jsdoc/no-undefined-types */
|
|
14205
14255
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
14206
14256
|
// See LICENSE in the project root for license information.
|
|
14207
14257
|
|
|
@@ -14268,6 +14318,21 @@ class AuroButton extends AuroElement$1$1 {
|
|
|
14268
14318
|
* @private
|
|
14269
14319
|
*/
|
|
14270
14320
|
this.loaderTag = versioning.generateTag('auro-loader', loaderVersion, AuroLoader);
|
|
14321
|
+
|
|
14322
|
+
/**
|
|
14323
|
+
* @private
|
|
14324
|
+
*/
|
|
14325
|
+
this.buttonHref = undefined;
|
|
14326
|
+
|
|
14327
|
+
/**
|
|
14328
|
+
* @private
|
|
14329
|
+
*/
|
|
14330
|
+
this.buttonTarget = undefined;
|
|
14331
|
+
|
|
14332
|
+
/**
|
|
14333
|
+
* @private
|
|
14334
|
+
*/
|
|
14335
|
+
this.buttonRel = undefined;
|
|
14271
14336
|
}
|
|
14272
14337
|
|
|
14273
14338
|
static get styles() {
|
|
@@ -14334,13 +14399,23 @@ class AuroButton extends AuroElement$1$1 {
|
|
|
14334
14399
|
},
|
|
14335
14400
|
|
|
14336
14401
|
/**
|
|
14337
|
-
* Populates `
|
|
14402
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
14338
14403
|
*/
|
|
14339
14404
|
tIndex: {
|
|
14340
14405
|
type: String,
|
|
14341
14406
|
reflect: true
|
|
14342
14407
|
},
|
|
14343
14408
|
|
|
14409
|
+
/**
|
|
14410
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
14411
|
+
* Must be used with "." to ensure the host element does not retain a reference to the `tabindex` attribute.
|
|
14412
|
+
* Example: `<auro-button .tabindex="${this.disabled ? '-1' : '0'}"></auro-button>`
|
|
14413
|
+
*/
|
|
14414
|
+
tabindex: {
|
|
14415
|
+
type: String,
|
|
14416
|
+
reflect: false
|
|
14417
|
+
},
|
|
14418
|
+
|
|
14344
14419
|
/**
|
|
14345
14420
|
* Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
14346
14421
|
*/
|
|
@@ -14373,6 +14448,27 @@ class AuroButton extends AuroElement$1$1 {
|
|
|
14373
14448
|
type: String,
|
|
14374
14449
|
reflect: true
|
|
14375
14450
|
},
|
|
14451
|
+
|
|
14452
|
+
/**
|
|
14453
|
+
* @private
|
|
14454
|
+
*/
|
|
14455
|
+
buttonHref: {
|
|
14456
|
+
type: String,
|
|
14457
|
+
},
|
|
14458
|
+
|
|
14459
|
+
/**
|
|
14460
|
+
* @private
|
|
14461
|
+
*/
|
|
14462
|
+
buttonTarget: {
|
|
14463
|
+
type: String,
|
|
14464
|
+
},
|
|
14465
|
+
|
|
14466
|
+
/**
|
|
14467
|
+
* @private
|
|
14468
|
+
*/
|
|
14469
|
+
buttonRel: {
|
|
14470
|
+
type: String,
|
|
14471
|
+
},
|
|
14376
14472
|
};
|
|
14377
14473
|
}
|
|
14378
14474
|
|
|
@@ -14463,14 +14559,17 @@ class AuroButton extends AuroElement$1$1 {
|
|
|
14463
14559
|
loading: this.loading,
|
|
14464
14560
|
};
|
|
14465
14561
|
|
|
14562
|
+
const tag = this.buttonHref ? i$1`a` : i$1`button`;
|
|
14563
|
+
const part = this.buttonHref ? 'link' : 'button';
|
|
14564
|
+
|
|
14466
14565
|
return u$2`
|
|
14467
|
-
|
|
14468
|
-
part="
|
|
14566
|
+
<${tag}
|
|
14567
|
+
part="${part}"
|
|
14469
14568
|
aria-label="${o(this.loading ? this.loadingText : this.currentAriaLabel || undefined)}"
|
|
14470
14569
|
aria-labelledby="${o(this.loading ? undefined : this.currentAriaLabelledBy || undefined)}"
|
|
14471
|
-
|
|
14570
|
+
tabindex="${o(this.tIndex || this.tabindex)}"
|
|
14472
14571
|
?autofocus="${this.autofocus}"
|
|
14473
|
-
class
|
|
14572
|
+
class=${e(classes)}
|
|
14474
14573
|
?disabled="${this.disabled || this.loading}"
|
|
14475
14574
|
?onDark="${this.onDark}"
|
|
14476
14575
|
title="${o(this.title ? this.title : undefined)}"
|
|
@@ -14479,6 +14578,9 @@ class AuroButton extends AuroElement$1$1 {
|
|
|
14479
14578
|
variant="${o(this.variant ? this.variant : undefined)}"
|
|
14480
14579
|
.value="${o(this.value ? this.value : undefined)}"
|
|
14481
14580
|
@click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
|
|
14581
|
+
href="${o(this.buttonHref || undefined)}"
|
|
14582
|
+
target="${o(this.buttonTarget || undefined)}"
|
|
14583
|
+
rel="${o(this.buttonRel || undefined)}"
|
|
14482
14584
|
>
|
|
14483
14585
|
${o(this.loading ? u$2`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
14484
14586
|
|
|
@@ -14487,12 +14589,12 @@ class AuroButton extends AuroElement$1$1 {
|
|
|
14487
14589
|
<slot></slot>
|
|
14488
14590
|
</span>
|
|
14489
14591
|
</span>
|
|
14490
|
-
|
|
14592
|
+
</${tag}>
|
|
14491
14593
|
`;
|
|
14492
14594
|
}
|
|
14493
14595
|
|
|
14494
14596
|
/**
|
|
14495
|
-
* Renders the layout of the button
|
|
14597
|
+
* Renders the layout of the button.
|
|
14496
14598
|
* @returns {TemplateResult}
|
|
14497
14599
|
* @private
|
|
14498
14600
|
*/
|
|
@@ -14501,7 +14603,7 @@ class AuroButton extends AuroElement$1$1 {
|
|
|
14501
14603
|
}
|
|
14502
14604
|
}
|
|
14503
14605
|
|
|
14504
|
-
var buttonVersion = '11.
|
|
14606
|
+
var buttonVersion = '11.2.1';
|
|
14505
14607
|
|
|
14506
14608
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
14507
14609
|
// See LICENSE in the project root for license information.
|
|
@@ -16397,10 +16499,10 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16397
16499
|
this.dropdown = this.shadowRoot.querySelector(this.dropdownTag._$litStatic$);
|
|
16398
16500
|
this.input = this.dropdown.querySelector(this.inputTag._$litStatic$);
|
|
16399
16501
|
|
|
16400
|
-
this.configureMenu();
|
|
16401
16502
|
this.configureInput();
|
|
16402
16503
|
this.configureDropdown();
|
|
16403
16504
|
this.configureCombobox();
|
|
16505
|
+
this.configureMenu();
|
|
16404
16506
|
|
|
16405
16507
|
// Set the initial value in auro-menu if defined
|
|
16406
16508
|
if (this.hasAttribute('value') && this.getAttribute('value').length > 0) {
|
|
@@ -16859,6 +16961,7 @@ class AuroMenu extends AuroElement$1 {
|
|
|
16859
16961
|
this.addEventListener('mousedown', this.handleMouseSelect);
|
|
16860
16962
|
this.addEventListener('auroMenuOption-mouseover', this.handleOptionHover);
|
|
16861
16963
|
this.addEventListener('slotchange', this.handleSlotChange);
|
|
16964
|
+
this.setTagAttribute("auro-menu");
|
|
16862
16965
|
}
|
|
16863
16966
|
|
|
16864
16967
|
disconnectedCallback() {
|
|
@@ -16877,6 +16980,17 @@ class AuroMenu extends AuroElement$1 {
|
|
|
16877
16980
|
this.initializeMenu();
|
|
16878
16981
|
}
|
|
16879
16982
|
|
|
16983
|
+
/**
|
|
16984
|
+
* Sets an attribute that matches the default tag name if the tag name is not the default.
|
|
16985
|
+
* @param {string} tagName - The tag name to set as an attribute.
|
|
16986
|
+
* @private
|
|
16987
|
+
*/
|
|
16988
|
+
setTagAttribute(tagName) {
|
|
16989
|
+
if (this.tagName.toLowerCase() !== tagName) {
|
|
16990
|
+
this.setAttribute(tagName, true);
|
|
16991
|
+
}
|
|
16992
|
+
}
|
|
16993
|
+
|
|
16880
16994
|
updated(changedProperties) {
|
|
16881
16995
|
super.updated(changedProperties);
|
|
16882
16996
|
|