@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.17 → 0.0.0-pr624.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/bibtemplate/dist/buttonVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +61 -10
- package/components/bibtemplate/dist/registered.js +61 -10
- package/components/combobox/demo/api.min.js +134 -20
- package/components/combobox/demo/index.min.js +134 -20
- package/components/combobox/dist/index.js +122 -20
- package/components/combobox/dist/registered.js +122 -20
- package/components/counter/demo/api.min.js +159 -33
- package/components/counter/demo/index.min.js +159 -33
- package/components/counter/dist/auro-counter.d.ts +6 -0
- package/components/counter/dist/index.js +159 -33
- package/components/counter/dist/registered.js +159 -33
- package/components/datepicker/demo/api.min.js +181 -28
- package/components/datepicker/demo/index.min.js +181 -28
- package/components/datepicker/dist/index.js +181 -28
- package/components/datepicker/dist/registered.js +181 -28
- package/components/input/demo/api.min.js +60 -9
- package/components/input/demo/index.min.js +60 -9
- package/components/input/dist/index.js +60 -9
- package/components/input/dist/registered.js +60 -9
- package/components/menu/demo/api.min.js +12 -0
- package/components/menu/demo/index.min.js +12 -0
- package/components/menu/dist/auro-menu.d.ts +6 -0
- package/components/menu/dist/index.js +12 -0
- package/components/menu/dist/registered.js +12 -0
- package/components/select/demo/api.min.js +94 -17
- package/components/select/demo/index.min.js +94 -17
- package/components/select/dist/auro-select.d.ts +7 -0
- package/components/select/dist/index.js +82 -17
- package/components/select/dist/registered.js +82 -17
- package/package.json +3 -3
|
@@ -391,7 +391,6 @@ let AuroElement$5 = class AuroElement extends LitElement {
|
|
|
391
391
|
* @private
|
|
392
392
|
*/
|
|
393
393
|
wrapper: {
|
|
394
|
-
type: HTMLElement,
|
|
395
394
|
attribute: false,
|
|
396
395
|
reflect: false
|
|
397
396
|
}
|
|
@@ -810,7 +809,7 @@ let AuroLoader$1 = class AuroLoader extends LitElement {
|
|
|
810
809
|
|
|
811
810
|
var loaderVersion$1 = '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 @@ let AuroButton$1 = class AuroButton extends AuroElement$5 {
|
|
|
877
876
|
* @private
|
|
878
877
|
*/
|
|
879
878
|
this.loaderTag = versioning.generateTag('auro-loader', loaderVersion$1, AuroLoader$1);
|
|
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 @@ let AuroButton$1 = class AuroButton extends AuroElement$5 {
|
|
|
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 @@ let AuroButton$1 = class AuroButton extends AuroElement$5 {
|
|
|
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 @@ let AuroButton$1 = class AuroButton extends AuroElement$5 {
|
|
|
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 @@ let AuroButton$1 = class AuroButton extends AuroElement$5 {
|
|
|
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 @@ let AuroButton$1 = class AuroButton extends AuroElement$5 {
|
|
|
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
|
*/
|
|
@@ -2615,6 +2666,18 @@ class AuroCounter extends LitElement {
|
|
|
2615
2666
|
|
|
2616
2667
|
firstUpdated() {
|
|
2617
2668
|
this.initValue();
|
|
2669
|
+
this.setTagAttribute("auro-counter");
|
|
2670
|
+
}
|
|
2671
|
+
|
|
2672
|
+
/**
|
|
2673
|
+
* Sets an attribute that matches the default tag name if the tag name is not the default.
|
|
2674
|
+
* @param {string} tagName - The tag name to set as an attribute.
|
|
2675
|
+
* @private
|
|
2676
|
+
*/
|
|
2677
|
+
setTagAttribute(tagName) {
|
|
2678
|
+
if (this.tagName.toLowerCase() !== tagName) {
|
|
2679
|
+
this.setAttribute(tagName, true);
|
|
2680
|
+
}
|
|
2618
2681
|
}
|
|
2619
2682
|
|
|
2620
2683
|
/**
|
|
@@ -2655,14 +2718,24 @@ class AuroCounter extends LitElement {
|
|
|
2655
2718
|
<label id="counter-label" class="label"><slot @slotchange="${this.onDefaultSlotChange}" ></slot></label>
|
|
2656
2719
|
<slot id="counter-description" name="description"></slot>
|
|
2657
2720
|
</div>
|
|
2658
|
-
<div
|
|
2721
|
+
<div
|
|
2722
|
+
part="counterControl"
|
|
2723
|
+
aria-labelledby="counter-label"
|
|
2724
|
+
aria-describedby="counter-description"
|
|
2725
|
+
tabindex="${this.disabled ? '-1' : '0'}"
|
|
2726
|
+
role="spinbutton"
|
|
2727
|
+
aria-valuemin="${this.min}"
|
|
2728
|
+
aria-valuemax="${this.max}"
|
|
2729
|
+
aria-valuenow="${this.value}"
|
|
2730
|
+
aria-valuetext="${this.value !== undefined ? this.value : this.min}"
|
|
2731
|
+
>
|
|
2659
2732
|
<auro-counter-button
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2733
|
+
aria-hidden="true"
|
|
2734
|
+
.tabindex="${'-1'}"
|
|
2735
|
+
part="controlMinus"
|
|
2736
|
+
@click="${() => this.decrement()}"
|
|
2737
|
+
?onDark="${this.onDark}"
|
|
2738
|
+
?disabled="${this.disabled || this.disableMin || this.isIncrementDisabled(this.min)}"
|
|
2666
2739
|
>
|
|
2667
2740
|
<${this.iconTag} class="controlIcon" customSvg> ${IconUtil.generateSvgHtml(minusIcon)} </${this.iconTag}>
|
|
2668
2741
|
</auro-counter-button>
|
|
@@ -2672,12 +2745,12 @@ class AuroCounter extends LitElement {
|
|
|
2672
2745
|
</div>
|
|
2673
2746
|
|
|
2674
2747
|
<auro-counter-button
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2748
|
+
aria-hidden="true"
|
|
2749
|
+
.tabindex="${'-1'}"
|
|
2750
|
+
part="controlPlus"
|
|
2751
|
+
@click="${() => this.increment()}"
|
|
2752
|
+
?onDark="${this.onDark}"
|
|
2753
|
+
?disabled="${this.disabled || this.disableMax || this.isIncrementDisabled(this.max)}"
|
|
2681
2754
|
>
|
|
2682
2755
|
<${this.iconTag} class="controlIcon" customSvg> ${IconUtil.generateSvgHtml(plusIcon)} </${this.iconTag}>
|
|
2683
2756
|
</auro-counter-button>
|
|
@@ -7304,7 +7377,6 @@ let AuroElement$1 = class AuroElement extends LitElement {
|
|
|
7304
7377
|
* @private
|
|
7305
7378
|
*/
|
|
7306
7379
|
wrapper: {
|
|
7307
|
-
type: HTMLElement,
|
|
7308
7380
|
attribute: false,
|
|
7309
7381
|
reflect: false
|
|
7310
7382
|
}
|
|
@@ -7613,7 +7685,7 @@ class AuroLoader extends LitElement {
|
|
|
7613
7685
|
|
|
7614
7686
|
var loaderVersion = '5.0.0';
|
|
7615
7687
|
|
|
7616
|
-
/* eslint-disable max-lines, curly */
|
|
7688
|
+
/* eslint-disable max-lines, curly, jsdoc/no-undefined-types */
|
|
7617
7689
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
7618
7690
|
// See LICENSE in the project root for license information.
|
|
7619
7691
|
|
|
@@ -7680,6 +7752,21 @@ class AuroButton extends AuroElement$1 {
|
|
|
7680
7752
|
* @private
|
|
7681
7753
|
*/
|
|
7682
7754
|
this.loaderTag = versioning.generateTag('auro-loader', loaderVersion, AuroLoader);
|
|
7755
|
+
|
|
7756
|
+
/**
|
|
7757
|
+
* @private
|
|
7758
|
+
*/
|
|
7759
|
+
this.buttonHref = undefined;
|
|
7760
|
+
|
|
7761
|
+
/**
|
|
7762
|
+
* @private
|
|
7763
|
+
*/
|
|
7764
|
+
this.buttonTarget = undefined;
|
|
7765
|
+
|
|
7766
|
+
/**
|
|
7767
|
+
* @private
|
|
7768
|
+
*/
|
|
7769
|
+
this.buttonRel = undefined;
|
|
7683
7770
|
}
|
|
7684
7771
|
|
|
7685
7772
|
static get styles() {
|
|
@@ -7746,13 +7833,23 @@ class AuroButton extends AuroElement$1 {
|
|
|
7746
7833
|
},
|
|
7747
7834
|
|
|
7748
7835
|
/**
|
|
7749
|
-
* Populates `
|
|
7836
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
7750
7837
|
*/
|
|
7751
7838
|
tIndex: {
|
|
7752
7839
|
type: String,
|
|
7753
7840
|
reflect: true
|
|
7754
7841
|
},
|
|
7755
7842
|
|
|
7843
|
+
/**
|
|
7844
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
7845
|
+
* Must be used with "." to ensure the host element does not retain a reference to the `tabindex` attribute.
|
|
7846
|
+
* Example: `<auro-button .tabindex="${this.disabled ? '-1' : '0'}"></auro-button>`
|
|
7847
|
+
*/
|
|
7848
|
+
tabindex: {
|
|
7849
|
+
type: String,
|
|
7850
|
+
reflect: false
|
|
7851
|
+
},
|
|
7852
|
+
|
|
7756
7853
|
/**
|
|
7757
7854
|
* Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
7758
7855
|
*/
|
|
@@ -7785,6 +7882,27 @@ class AuroButton extends AuroElement$1 {
|
|
|
7785
7882
|
type: String,
|
|
7786
7883
|
reflect: true
|
|
7787
7884
|
},
|
|
7885
|
+
|
|
7886
|
+
/**
|
|
7887
|
+
* @private
|
|
7888
|
+
*/
|
|
7889
|
+
buttonHref: {
|
|
7890
|
+
type: String,
|
|
7891
|
+
},
|
|
7892
|
+
|
|
7893
|
+
/**
|
|
7894
|
+
* @private
|
|
7895
|
+
*/
|
|
7896
|
+
buttonTarget: {
|
|
7897
|
+
type: String,
|
|
7898
|
+
},
|
|
7899
|
+
|
|
7900
|
+
/**
|
|
7901
|
+
* @private
|
|
7902
|
+
*/
|
|
7903
|
+
buttonRel: {
|
|
7904
|
+
type: String,
|
|
7905
|
+
},
|
|
7788
7906
|
};
|
|
7789
7907
|
}
|
|
7790
7908
|
|
|
@@ -7875,14 +7993,17 @@ class AuroButton extends AuroElement$1 {
|
|
|
7875
7993
|
loading: this.loading,
|
|
7876
7994
|
};
|
|
7877
7995
|
|
|
7996
|
+
const tag = this.buttonHref ? literal`a` : literal`button`;
|
|
7997
|
+
const part = this.buttonHref ? 'link' : 'button';
|
|
7998
|
+
|
|
7878
7999
|
return html$1`
|
|
7879
|
-
|
|
7880
|
-
part="
|
|
8000
|
+
<${tag}
|
|
8001
|
+
part="${part}"
|
|
7881
8002
|
aria-label="${ifDefined(this.loading ? this.loadingText : this.currentAriaLabel || undefined)}"
|
|
7882
8003
|
aria-labelledby="${ifDefined(this.loading ? undefined : this.currentAriaLabelledBy || undefined)}"
|
|
7883
|
-
|
|
8004
|
+
tabindex="${ifDefined(this.tIndex || this.tabindex)}"
|
|
7884
8005
|
?autofocus="${this.autofocus}"
|
|
7885
|
-
class
|
|
8006
|
+
class=${classMap(classes)}
|
|
7886
8007
|
?disabled="${this.disabled || this.loading}"
|
|
7887
8008
|
?onDark="${this.onDark}"
|
|
7888
8009
|
title="${ifDefined(this.title ? this.title : undefined)}"
|
|
@@ -7891,6 +8012,9 @@ class AuroButton extends AuroElement$1 {
|
|
|
7891
8012
|
variant="${ifDefined(this.variant ? this.variant : undefined)}"
|
|
7892
8013
|
.value="${ifDefined(this.value ? this.value : undefined)}"
|
|
7893
8014
|
@click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
|
|
8015
|
+
href="${ifDefined(this.buttonHref || undefined)}"
|
|
8016
|
+
target="${ifDefined(this.buttonTarget || undefined)}"
|
|
8017
|
+
rel="${ifDefined(this.buttonRel || undefined)}"
|
|
7894
8018
|
>
|
|
7895
8019
|
${ifDefined(this.loading ? html$1`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
7896
8020
|
|
|
@@ -7899,12 +8023,12 @@ class AuroButton extends AuroElement$1 {
|
|
|
7899
8023
|
<slot></slot>
|
|
7900
8024
|
</span>
|
|
7901
8025
|
</span>
|
|
7902
|
-
|
|
8026
|
+
</${tag}>
|
|
7903
8027
|
`;
|
|
7904
8028
|
}
|
|
7905
8029
|
|
|
7906
8030
|
/**
|
|
7907
|
-
* Renders the layout of the button
|
|
8031
|
+
* Renders the layout of the button.
|
|
7908
8032
|
* @returns {TemplateResult}
|
|
7909
8033
|
* @private
|
|
7910
8034
|
*/
|
|
@@ -7913,7 +8037,7 @@ class AuroButton extends AuroElement$1 {
|
|
|
7913
8037
|
}
|
|
7914
8038
|
}
|
|
7915
8039
|
|
|
7916
|
-
var buttonVersion = '11.
|
|
8040
|
+
var buttonVersion = '11.2.1';
|
|
7917
8041
|
|
|
7918
8042
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
7919
8043
|
// See LICENSE in the project root for license information.
|
|
@@ -9067,7 +9191,7 @@ function isFocusableComponent(element) {
|
|
|
9067
9191
|
const componentName = element.tagName.toLowerCase();
|
|
9068
9192
|
|
|
9069
9193
|
// Guard Clause: Element is a focusable component
|
|
9070
|
-
if (!FOCUSABLE_COMPONENTS.
|
|
9194
|
+
if (!FOCUSABLE_COMPONENTS.some((name) => element.hasAttribute(name) || componentName === name)) return false;
|
|
9071
9195
|
|
|
9072
9196
|
// Guard Clause: Element is not disabled
|
|
9073
9197
|
if (element.hasAttribute('disabled')) return false;
|
|
@@ -9388,6 +9512,8 @@ class AuroCounterGroup extends AuroElement {
|
|
|
9388
9512
|
static get properties() {
|
|
9389
9513
|
return {
|
|
9390
9514
|
|
|
9515
|
+
...super.properties,
|
|
9516
|
+
|
|
9391
9517
|
/**
|
|
9392
9518
|
* If declared, bib's position will be automatically calculated where to appear.
|
|
9393
9519
|
* @default false
|