@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.17 → 0.0.0-pr624.19
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 +164 -33
- package/components/combobox/demo/index.min.js +164 -33
- package/components/combobox/dist/index.js +152 -33
- package/components/combobox/dist/registered.js +152 -33
- 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.md +9 -1
- package/components/datepicker/demo/api.min.js +791 -339
- package/components/datepicker/demo/index.md +68 -6
- package/components/datepicker/demo/index.min.js +791 -339
- package/components/datepicker/dist/auro-datepicker.d.ts +50 -11
- package/components/datepicker/dist/buttonVersion.d.ts +1 -1
- package/components/datepicker/dist/index.js +628 -176
- package/components/datepicker/dist/popoverVersion.d.ts +1 -1
- package/components/datepicker/dist/registered.js +628 -176
- package/components/datepicker/dist/styles/snowflake/style-css.d.ts +2 -0
- package/components/input/demo/api.md +1 -0
- package/components/input/demo/api.min.js +90 -22
- package/components/input/demo/index.min.js +90 -22
- package/components/input/dist/auro-input.d.ts +174 -0
- package/components/input/dist/index.js +90 -22
- package/components/input/dist/registered.js +90 -22
- 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
- /package/components/datepicker/dist/styles/{emphasized/style-css.d.ts → snowflake/color-css.d.ts} +0 -0
|
@@ -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.
|
|
@@ -11060,22 +11060,17 @@ class BaseInput extends AuroElement$2$1 {
|
|
|
11060
11060
|
* @returns {void}
|
|
11061
11061
|
*/
|
|
11062
11062
|
getPlaceholder() {
|
|
11063
|
-
|
|
11063
|
+
this.inputElement === this.getActiveElement();
|
|
11064
11064
|
|
|
11065
11065
|
// console.warn('isFocused', isFocused);
|
|
11066
11066
|
// console.warn(this.inputElement);
|
|
11067
11067
|
// console.warn(this.getActiveElement());
|
|
11068
11068
|
|
|
11069
|
-
if (!isFocused) {
|
|
11070
|
-
|
|
11071
|
-
|
|
11072
|
-
|
|
11073
|
-
|
|
11074
|
-
this.placeholderStr = this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
|
|
11075
|
-
// return this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
|
|
11076
|
-
}
|
|
11077
|
-
} else {
|
|
11078
|
-
this.placeholderStr = '';
|
|
11069
|
+
// if (!isFocused) {
|
|
11070
|
+
if (this.placeholder) {
|
|
11071
|
+
this.placeholderStr = this.placeholder;
|
|
11072
|
+
} else if (this.type === 'date') {
|
|
11073
|
+
this.placeholderStr = this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
|
|
11079
11074
|
}
|
|
11080
11075
|
|
|
11081
11076
|
this.requestUpdate();
|
|
@@ -12062,7 +12057,6 @@ let AuroElement$3 = class AuroElement extends i$2 {
|
|
|
12062
12057
|
* @private
|
|
12063
12058
|
*/
|
|
12064
12059
|
wrapper: {
|
|
12065
|
-
type: HTMLElement,
|
|
12066
12060
|
attribute: false,
|
|
12067
12061
|
reflect: false
|
|
12068
12062
|
}
|
|
@@ -12371,7 +12365,7 @@ let AuroLoader$1 = class AuroLoader extends i$2 {
|
|
|
12371
12365
|
|
|
12372
12366
|
var loaderVersion$1 = '5.0.0';
|
|
12373
12367
|
|
|
12374
|
-
/* eslint-disable max-lines, curly */
|
|
12368
|
+
/* eslint-disable max-lines, curly, jsdoc/no-undefined-types */
|
|
12375
12369
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
12376
12370
|
// See LICENSE in the project root for license information.
|
|
12377
12371
|
|
|
@@ -12438,6 +12432,21 @@ let AuroButton$1 = class AuroButton extends AuroElement$3 {
|
|
|
12438
12432
|
* @private
|
|
12439
12433
|
*/
|
|
12440
12434
|
this.loaderTag = versioning.generateTag('auro-loader', loaderVersion$1, AuroLoader$1);
|
|
12435
|
+
|
|
12436
|
+
/**
|
|
12437
|
+
* @private
|
|
12438
|
+
*/
|
|
12439
|
+
this.buttonHref = undefined;
|
|
12440
|
+
|
|
12441
|
+
/**
|
|
12442
|
+
* @private
|
|
12443
|
+
*/
|
|
12444
|
+
this.buttonTarget = undefined;
|
|
12445
|
+
|
|
12446
|
+
/**
|
|
12447
|
+
* @private
|
|
12448
|
+
*/
|
|
12449
|
+
this.buttonRel = undefined;
|
|
12441
12450
|
}
|
|
12442
12451
|
|
|
12443
12452
|
static get styles() {
|
|
@@ -12504,13 +12513,23 @@ let AuroButton$1 = class AuroButton extends AuroElement$3 {
|
|
|
12504
12513
|
},
|
|
12505
12514
|
|
|
12506
12515
|
/**
|
|
12507
|
-
* Populates `
|
|
12516
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
12508
12517
|
*/
|
|
12509
12518
|
tIndex: {
|
|
12510
12519
|
type: String,
|
|
12511
12520
|
reflect: true
|
|
12512
12521
|
},
|
|
12513
12522
|
|
|
12523
|
+
/**
|
|
12524
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
12525
|
+
* Must be used with "." to ensure the host element does not retain a reference to the `tabindex` attribute.
|
|
12526
|
+
* Example: `<auro-button .tabindex="${this.disabled ? '-1' : '0'}"></auro-button>`
|
|
12527
|
+
*/
|
|
12528
|
+
tabindex: {
|
|
12529
|
+
type: String,
|
|
12530
|
+
reflect: false
|
|
12531
|
+
},
|
|
12532
|
+
|
|
12514
12533
|
/**
|
|
12515
12534
|
* Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
12516
12535
|
*/
|
|
@@ -12543,6 +12562,27 @@ let AuroButton$1 = class AuroButton extends AuroElement$3 {
|
|
|
12543
12562
|
type: String,
|
|
12544
12563
|
reflect: true
|
|
12545
12564
|
},
|
|
12565
|
+
|
|
12566
|
+
/**
|
|
12567
|
+
* @private
|
|
12568
|
+
*/
|
|
12569
|
+
buttonHref: {
|
|
12570
|
+
type: String,
|
|
12571
|
+
},
|
|
12572
|
+
|
|
12573
|
+
/**
|
|
12574
|
+
* @private
|
|
12575
|
+
*/
|
|
12576
|
+
buttonTarget: {
|
|
12577
|
+
type: String,
|
|
12578
|
+
},
|
|
12579
|
+
|
|
12580
|
+
/**
|
|
12581
|
+
* @private
|
|
12582
|
+
*/
|
|
12583
|
+
buttonRel: {
|
|
12584
|
+
type: String,
|
|
12585
|
+
},
|
|
12546
12586
|
};
|
|
12547
12587
|
}
|
|
12548
12588
|
|
|
@@ -12633,14 +12673,17 @@ let AuroButton$1 = class AuroButton extends AuroElement$3 {
|
|
|
12633
12673
|
loading: this.loading,
|
|
12634
12674
|
};
|
|
12635
12675
|
|
|
12676
|
+
const tag = this.buttonHref ? i$1`a` : i$1`button`;
|
|
12677
|
+
const part = this.buttonHref ? 'link' : 'button';
|
|
12678
|
+
|
|
12636
12679
|
return u$2`
|
|
12637
|
-
|
|
12638
|
-
part="
|
|
12680
|
+
<${tag}
|
|
12681
|
+
part="${part}"
|
|
12639
12682
|
aria-label="${o(this.loading ? this.loadingText : this.currentAriaLabel || undefined)}"
|
|
12640
12683
|
aria-labelledby="${o(this.loading ? undefined : this.currentAriaLabelledBy || undefined)}"
|
|
12641
|
-
|
|
12684
|
+
tabindex="${o(this.tIndex || this.tabindex)}"
|
|
12642
12685
|
?autofocus="${this.autofocus}"
|
|
12643
|
-
class
|
|
12686
|
+
class=${e(classes)}
|
|
12644
12687
|
?disabled="${this.disabled || this.loading}"
|
|
12645
12688
|
?onDark="${this.onDark}"
|
|
12646
12689
|
title="${o(this.title ? this.title : undefined)}"
|
|
@@ -12649,6 +12692,9 @@ let AuroButton$1 = class AuroButton extends AuroElement$3 {
|
|
|
12649
12692
|
variant="${o(this.variant ? this.variant : undefined)}"
|
|
12650
12693
|
.value="${o(this.value ? this.value : undefined)}"
|
|
12651
12694
|
@click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
|
|
12695
|
+
href="${o(this.buttonHref || undefined)}"
|
|
12696
|
+
target="${o(this.buttonTarget || undefined)}"
|
|
12697
|
+
rel="${o(this.buttonRel || undefined)}"
|
|
12652
12698
|
>
|
|
12653
12699
|
${o(this.loading ? u$2`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
12654
12700
|
|
|
@@ -12657,12 +12703,12 @@ let AuroButton$1 = class AuroButton extends AuroElement$3 {
|
|
|
12657
12703
|
<slot></slot>
|
|
12658
12704
|
</span>
|
|
12659
12705
|
</span>
|
|
12660
|
-
|
|
12706
|
+
</${tag}>
|
|
12661
12707
|
`;
|
|
12662
12708
|
}
|
|
12663
12709
|
|
|
12664
12710
|
/**
|
|
12665
|
-
* Renders the layout of the button
|
|
12711
|
+
* Renders the layout of the button.
|
|
12666
12712
|
* @returns {TemplateResult}
|
|
12667
12713
|
* @private
|
|
12668
12714
|
*/
|
|
@@ -12917,6 +12963,20 @@ class AuroInput extends BaseInput {
|
|
|
12917
12963
|
this.iconTag = versioning.generateTag('auro-formkit-input-icon', iconVersion$2, AuroIcon$2);
|
|
12918
12964
|
}
|
|
12919
12965
|
|
|
12966
|
+
static get properties() {
|
|
12967
|
+
return {
|
|
12968
|
+
...super.properties,
|
|
12969
|
+
|
|
12970
|
+
/**
|
|
12971
|
+
* @type {boolean}
|
|
12972
|
+
*/
|
|
12973
|
+
hideInputVisually: {
|
|
12974
|
+
type: Boolean,
|
|
12975
|
+
reflect: true,
|
|
12976
|
+
}
|
|
12977
|
+
};
|
|
12978
|
+
}
|
|
12979
|
+
|
|
12920
12980
|
static get styles() {
|
|
12921
12981
|
return [
|
|
12922
12982
|
i$5`${classicStyleCss}`,
|
|
@@ -12951,8 +13011,13 @@ class AuroInput extends BaseInput {
|
|
|
12951
13011
|
* @returns {object} - Returns classmap.
|
|
12952
13012
|
*/
|
|
12953
13013
|
get commonInputClasses() {
|
|
13014
|
+
console.log(`hideInputVisually: ${JSON.stringify(this.hideInputVisually)}`);
|
|
12954
13015
|
return {
|
|
12955
|
-
'util_displayHiddenVisually': this.
|
|
13016
|
+
'util_displayHiddenVisually': this.hideInputVisually !== undefined
|
|
13017
|
+
? this.hideInputVisually
|
|
13018
|
+
// eslint-disable-next-line no-warning-comments
|
|
13019
|
+
// TODO: refactor this to use a less brittle/forced solution.
|
|
13020
|
+
: this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
|
|
12956
13021
|
};
|
|
12957
13022
|
}
|
|
12958
13023
|
|
|
@@ -12964,7 +13029,10 @@ class AuroInput extends BaseInput {
|
|
|
12964
13029
|
get legacyInputClasses() {
|
|
12965
13030
|
return {
|
|
12966
13031
|
...this.commonInputClasses,
|
|
12967
|
-
'util_displayHiddenVisually':
|
|
13032
|
+
'util_displayHiddenVisually':
|
|
13033
|
+
this.hideInputVisually !== undefined
|
|
13034
|
+
? this.hideInputVisually
|
|
13035
|
+
: !this.hasFocus && !this.value
|
|
12968
13036
|
};
|
|
12969
13037
|
}
|
|
12970
13038
|
|
|
@@ -13892,7 +13960,6 @@ let AuroElement$1$1 = class AuroElement extends i$2 {
|
|
|
13892
13960
|
* @private
|
|
13893
13961
|
*/
|
|
13894
13962
|
wrapper: {
|
|
13895
|
-
type: HTMLElement,
|
|
13896
13963
|
attribute: false,
|
|
13897
13964
|
reflect: false
|
|
13898
13965
|
}
|
|
@@ -14201,7 +14268,7 @@ class AuroLoader extends i$2 {
|
|
|
14201
14268
|
|
|
14202
14269
|
var loaderVersion = '5.0.0';
|
|
14203
14270
|
|
|
14204
|
-
/* eslint-disable max-lines, curly */
|
|
14271
|
+
/* eslint-disable max-lines, curly, jsdoc/no-undefined-types */
|
|
14205
14272
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
14206
14273
|
// See LICENSE in the project root for license information.
|
|
14207
14274
|
|
|
@@ -14268,6 +14335,21 @@ class AuroButton extends AuroElement$1$1 {
|
|
|
14268
14335
|
* @private
|
|
14269
14336
|
*/
|
|
14270
14337
|
this.loaderTag = versioning.generateTag('auro-loader', loaderVersion, AuroLoader);
|
|
14338
|
+
|
|
14339
|
+
/**
|
|
14340
|
+
* @private
|
|
14341
|
+
*/
|
|
14342
|
+
this.buttonHref = undefined;
|
|
14343
|
+
|
|
14344
|
+
/**
|
|
14345
|
+
* @private
|
|
14346
|
+
*/
|
|
14347
|
+
this.buttonTarget = undefined;
|
|
14348
|
+
|
|
14349
|
+
/**
|
|
14350
|
+
* @private
|
|
14351
|
+
*/
|
|
14352
|
+
this.buttonRel = undefined;
|
|
14271
14353
|
}
|
|
14272
14354
|
|
|
14273
14355
|
static get styles() {
|
|
@@ -14334,13 +14416,23 @@ class AuroButton extends AuroElement$1$1 {
|
|
|
14334
14416
|
},
|
|
14335
14417
|
|
|
14336
14418
|
/**
|
|
14337
|
-
* Populates `
|
|
14419
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
14338
14420
|
*/
|
|
14339
14421
|
tIndex: {
|
|
14340
14422
|
type: String,
|
|
14341
14423
|
reflect: true
|
|
14342
14424
|
},
|
|
14343
14425
|
|
|
14426
|
+
/**
|
|
14427
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
14428
|
+
* Must be used with "." to ensure the host element does not retain a reference to the `tabindex` attribute.
|
|
14429
|
+
* Example: `<auro-button .tabindex="${this.disabled ? '-1' : '0'}"></auro-button>`
|
|
14430
|
+
*/
|
|
14431
|
+
tabindex: {
|
|
14432
|
+
type: String,
|
|
14433
|
+
reflect: false
|
|
14434
|
+
},
|
|
14435
|
+
|
|
14344
14436
|
/**
|
|
14345
14437
|
* Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
14346
14438
|
*/
|
|
@@ -14373,6 +14465,27 @@ class AuroButton extends AuroElement$1$1 {
|
|
|
14373
14465
|
type: String,
|
|
14374
14466
|
reflect: true
|
|
14375
14467
|
},
|
|
14468
|
+
|
|
14469
|
+
/**
|
|
14470
|
+
* @private
|
|
14471
|
+
*/
|
|
14472
|
+
buttonHref: {
|
|
14473
|
+
type: String,
|
|
14474
|
+
},
|
|
14475
|
+
|
|
14476
|
+
/**
|
|
14477
|
+
* @private
|
|
14478
|
+
*/
|
|
14479
|
+
buttonTarget: {
|
|
14480
|
+
type: String,
|
|
14481
|
+
},
|
|
14482
|
+
|
|
14483
|
+
/**
|
|
14484
|
+
* @private
|
|
14485
|
+
*/
|
|
14486
|
+
buttonRel: {
|
|
14487
|
+
type: String,
|
|
14488
|
+
},
|
|
14376
14489
|
};
|
|
14377
14490
|
}
|
|
14378
14491
|
|
|
@@ -14463,14 +14576,17 @@ class AuroButton extends AuroElement$1$1 {
|
|
|
14463
14576
|
loading: this.loading,
|
|
14464
14577
|
};
|
|
14465
14578
|
|
|
14579
|
+
const tag = this.buttonHref ? i$1`a` : i$1`button`;
|
|
14580
|
+
const part = this.buttonHref ? 'link' : 'button';
|
|
14581
|
+
|
|
14466
14582
|
return u$2`
|
|
14467
|
-
|
|
14468
|
-
part="
|
|
14583
|
+
<${tag}
|
|
14584
|
+
part="${part}"
|
|
14469
14585
|
aria-label="${o(this.loading ? this.loadingText : this.currentAriaLabel || undefined)}"
|
|
14470
14586
|
aria-labelledby="${o(this.loading ? undefined : this.currentAriaLabelledBy || undefined)}"
|
|
14471
|
-
|
|
14587
|
+
tabindex="${o(this.tIndex || this.tabindex)}"
|
|
14472
14588
|
?autofocus="${this.autofocus}"
|
|
14473
|
-
class
|
|
14589
|
+
class=${e(classes)}
|
|
14474
14590
|
?disabled="${this.disabled || this.loading}"
|
|
14475
14591
|
?onDark="${this.onDark}"
|
|
14476
14592
|
title="${o(this.title ? this.title : undefined)}"
|
|
@@ -14479,6 +14595,9 @@ class AuroButton extends AuroElement$1$1 {
|
|
|
14479
14595
|
variant="${o(this.variant ? this.variant : undefined)}"
|
|
14480
14596
|
.value="${o(this.value ? this.value : undefined)}"
|
|
14481
14597
|
@click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
|
|
14598
|
+
href="${o(this.buttonHref || undefined)}"
|
|
14599
|
+
target="${o(this.buttonTarget || undefined)}"
|
|
14600
|
+
rel="${o(this.buttonRel || undefined)}"
|
|
14482
14601
|
>
|
|
14483
14602
|
${o(this.loading ? u$2`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
14484
14603
|
|
|
@@ -14487,12 +14606,12 @@ class AuroButton extends AuroElement$1$1 {
|
|
|
14487
14606
|
<slot></slot>
|
|
14488
14607
|
</span>
|
|
14489
14608
|
</span>
|
|
14490
|
-
|
|
14609
|
+
</${tag}>
|
|
14491
14610
|
`;
|
|
14492
14611
|
}
|
|
14493
14612
|
|
|
14494
14613
|
/**
|
|
14495
|
-
* Renders the layout of the button
|
|
14614
|
+
* Renders the layout of the button.
|
|
14496
14615
|
* @returns {TemplateResult}
|
|
14497
14616
|
* @private
|
|
14498
14617
|
*/
|
|
@@ -14501,7 +14620,7 @@ class AuroButton extends AuroElement$1$1 {
|
|
|
14501
14620
|
}
|
|
14502
14621
|
}
|
|
14503
14622
|
|
|
14504
|
-
var buttonVersion = '11.
|
|
14623
|
+
var buttonVersion = '11.2.1';
|
|
14505
14624
|
|
|
14506
14625
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
14507
14626
|
// See LICENSE in the project root for license information.
|
|
@@ -16397,10 +16516,10 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16397
16516
|
this.dropdown = this.shadowRoot.querySelector(this.dropdownTag._$litStatic$);
|
|
16398
16517
|
this.input = this.dropdown.querySelector(this.inputTag._$litStatic$);
|
|
16399
16518
|
|
|
16400
|
-
this.configureMenu();
|
|
16401
16519
|
this.configureInput();
|
|
16402
16520
|
this.configureDropdown();
|
|
16403
16521
|
this.configureCombobox();
|
|
16522
|
+
this.configureMenu();
|
|
16404
16523
|
|
|
16405
16524
|
// Set the initial value in auro-menu if defined
|
|
16406
16525
|
if (this.hasAttribute('value') && this.getAttribute('value').length > 0) {
|
|
@@ -16859,6 +16978,7 @@ class AuroMenu extends AuroElement$1 {
|
|
|
16859
16978
|
this.addEventListener('mousedown', this.handleMouseSelect);
|
|
16860
16979
|
this.addEventListener('auroMenuOption-mouseover', this.handleOptionHover);
|
|
16861
16980
|
this.addEventListener('slotchange', this.handleSlotChange);
|
|
16981
|
+
this.setTagAttribute("auro-menu");
|
|
16862
16982
|
}
|
|
16863
16983
|
|
|
16864
16984
|
disconnectedCallback() {
|
|
@@ -16877,6 +16997,17 @@ class AuroMenu extends AuroElement$1 {
|
|
|
16877
16997
|
this.initializeMenu();
|
|
16878
16998
|
}
|
|
16879
16999
|
|
|
17000
|
+
/**
|
|
17001
|
+
* Sets an attribute that matches the default tag name if the tag name is not the default.
|
|
17002
|
+
* @param {string} tagName - The tag name to set as an attribute.
|
|
17003
|
+
* @private
|
|
17004
|
+
*/
|
|
17005
|
+
setTagAttribute(tagName) {
|
|
17006
|
+
if (this.tagName.toLowerCase() !== tagName) {
|
|
17007
|
+
this.setAttribute(tagName, true);
|
|
17008
|
+
}
|
|
17009
|
+
}
|
|
17010
|
+
|
|
16880
17011
|
updated(changedProperties) {
|
|
16881
17012
|
super.updated(changedProperties);
|
|
16882
17013
|
|