@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.
Files changed (32) hide show
  1. package/components/bibtemplate/dist/buttonVersion.d.ts +1 -1
  2. package/components/bibtemplate/dist/index.js +61 -10
  3. package/components/bibtemplate/dist/registered.js +61 -10
  4. package/components/combobox/demo/api.min.js +134 -20
  5. package/components/combobox/demo/index.min.js +134 -20
  6. package/components/combobox/dist/index.js +122 -20
  7. package/components/combobox/dist/registered.js +122 -20
  8. package/components/counter/demo/api.min.js +478 -93
  9. package/components/counter/demo/index.min.js +478 -93
  10. package/components/counter/dist/auro-counter-group.d.ts +16 -8
  11. package/components/counter/dist/auro-counter.d.ts +6 -0
  12. package/components/counter/dist/index.js +478 -93
  13. package/components/counter/dist/registered.js +478 -93
  14. package/components/datepicker/demo/api.min.js +181 -28
  15. package/components/datepicker/demo/index.min.js +181 -28
  16. package/components/datepicker/dist/index.js +181 -28
  17. package/components/datepicker/dist/registered.js +181 -28
  18. package/components/input/demo/api.min.js +60 -9
  19. package/components/input/demo/index.min.js +60 -9
  20. package/components/input/dist/index.js +60 -9
  21. package/components/input/dist/registered.js +60 -9
  22. package/components/menu/demo/api.min.js +12 -0
  23. package/components/menu/demo/index.min.js +12 -0
  24. package/components/menu/dist/auro-menu.d.ts +6 -0
  25. package/components/menu/dist/index.js +12 -0
  26. package/components/menu/dist/registered.js +12 -0
  27. package/components/select/demo/api.min.js +94 -17
  28. package/components/select/demo/index.min.js +94 -17
  29. package/components/select/dist/auro-select.d.ts +7 -0
  30. package/components/select/dist/index.js +82 -17
  31. package/components/select/dist/registered.js +82 -17
  32. package/package.json +3 -3
@@ -11644,7 +11644,6 @@ let AuroElement$1$3 = class AuroElement extends i$1 {
11644
11644
  * @private
11645
11645
  */
11646
11646
  wrapper: {
11647
- type: HTMLElement,
11648
11647
  attribute: false,
11649
11648
  reflect: false
11650
11649
  }
@@ -11953,7 +11952,7 @@ let AuroLoader$2 = class AuroLoader extends i$1 {
11953
11952
 
11954
11953
  var loaderVersion$2 = '5.0.0';
11955
11954
 
11956
- /* eslint-disable max-lines, curly */
11955
+ /* eslint-disable max-lines, curly, jsdoc/no-undefined-types */
11957
11956
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
11958
11957
  // See LICENSE in the project root for license information.
11959
11958
 
@@ -12020,6 +12019,21 @@ let AuroButton$2 = class AuroButton extends AuroElement$1$3 {
12020
12019
  * @private
12021
12020
  */
12022
12021
  this.loaderTag = versioning.generateTag('auro-loader', loaderVersion$2, AuroLoader$2);
12022
+
12023
+ /**
12024
+ * @private
12025
+ */
12026
+ this.buttonHref = undefined;
12027
+
12028
+ /**
12029
+ * @private
12030
+ */
12031
+ this.buttonTarget = undefined;
12032
+
12033
+ /**
12034
+ * @private
12035
+ */
12036
+ this.buttonRel = undefined;
12023
12037
  }
12024
12038
 
12025
12039
  static get styles() {
@@ -12086,13 +12100,23 @@ let AuroButton$2 = class AuroButton extends AuroElement$1$3 {
12086
12100
  },
12087
12101
 
12088
12102
  /**
12089
- * Populates `tabIndex` to define the focusable sequence in keyboard navigation.
12103
+ * Populates `tabindex` to define the focusable sequence in keyboard navigation.
12090
12104
  */
12091
12105
  tIndex: {
12092
12106
  type: String,
12093
12107
  reflect: true
12094
12108
  },
12095
12109
 
12110
+ /**
12111
+ * Populates `tabindex` to define the focusable sequence in keyboard navigation.
12112
+ * Must be used with "." to ensure the host element does not retain a reference to the `tabindex` attribute.
12113
+ * Example: `<auro-button .tabindex="${this.disabled ? '-1' : '0'}"></auro-button>`
12114
+ */
12115
+ tabindex: {
12116
+ type: String,
12117
+ reflect: false
12118
+ },
12119
+
12096
12120
  /**
12097
12121
  * Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
12098
12122
  */
@@ -12125,6 +12149,27 @@ let AuroButton$2 = class AuroButton extends AuroElement$1$3 {
12125
12149
  type: String,
12126
12150
  reflect: true
12127
12151
  },
12152
+
12153
+ /**
12154
+ * @private
12155
+ */
12156
+ buttonHref: {
12157
+ type: String,
12158
+ },
12159
+
12160
+ /**
12161
+ * @private
12162
+ */
12163
+ buttonTarget: {
12164
+ type: String,
12165
+ },
12166
+
12167
+ /**
12168
+ * @private
12169
+ */
12170
+ buttonRel: {
12171
+ type: String,
12172
+ },
12128
12173
  };
12129
12174
  }
12130
12175
 
@@ -12215,14 +12260,17 @@ let AuroButton$2 = class AuroButton extends AuroElement$1$3 {
12215
12260
  loading: this.loading,
12216
12261
  };
12217
12262
 
12263
+ const tag = this.buttonHref ? i$4`a` : i$4`button`;
12264
+ const part = this.buttonHref ? 'link' : 'button';
12265
+
12218
12266
  return u$3`
12219
- <button
12220
- part="button"
12267
+ <${tag}
12268
+ part="${part}"
12221
12269
  aria-label="${o(this.loading ? this.loadingText : this.currentAriaLabel || undefined)}"
12222
12270
  aria-labelledby="${o(this.loading ? undefined : this.currentAriaLabelledBy || undefined)}"
12223
- tabIndex="${o(this.tIndex)}"
12271
+ tabindex="${o(this.tIndex || this.tabindex)}"
12224
12272
  ?autofocus="${this.autofocus}"
12225
- class="${e(classes)}"
12273
+ class=${e(classes)}
12226
12274
  ?disabled="${this.disabled || this.loading}"
12227
12275
  ?onDark="${this.onDark}"
12228
12276
  title="${o(this.title ? this.title : undefined)}"
@@ -12231,6 +12279,9 @@ let AuroButton$2 = class AuroButton extends AuroElement$1$3 {
12231
12279
  variant="${o(this.variant ? this.variant : undefined)}"
12232
12280
  .value="${o(this.value ? this.value : undefined)}"
12233
12281
  @click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
12282
+ href="${o(this.buttonHref || undefined)}"
12283
+ target="${o(this.buttonTarget || undefined)}"
12284
+ rel="${o(this.buttonRel || undefined)}"
12234
12285
  >
12235
12286
  ${o(this.loading ? u$3`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
12236
12287
 
@@ -12239,12 +12290,12 @@ let AuroButton$2 = class AuroButton extends AuroElement$1$3 {
12239
12290
  <slot></slot>
12240
12291
  </span>
12241
12292
  </span>
12242
- </button>
12293
+ </${tag}>
12243
12294
  `;
12244
12295
  }
12245
12296
 
12246
12297
  /**
12247
- * Renders the layout of the button
12298
+ * Renders the layout of the button.
12248
12299
  * @returns {TemplateResult}
12249
12300
  * @private
12250
12301
  */
@@ -12253,7 +12304,7 @@ let AuroButton$2 = class AuroButton extends AuroElement$1$3 {
12253
12304
  }
12254
12305
  };
12255
12306
 
12256
- var buttonVersion$2 = '11.0.0';
12307
+ var buttonVersion$2 = '11.2.1';
12257
12308
 
12258
12309
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
12259
12310
  // See LICENSE in the project root for license information.
@@ -13395,7 +13446,6 @@ let AuroElement$5 = class AuroElement extends i$1 {
13395
13446
  * @private
13396
13447
  */
13397
13448
  wrapper: {
13398
- type: HTMLElement,
13399
13449
  attribute: false,
13400
13450
  reflect: false
13401
13451
  }
@@ -13704,7 +13754,7 @@ let AuroLoader$1 = class AuroLoader extends i$1 {
13704
13754
 
13705
13755
  var loaderVersion$1 = '5.0.0';
13706
13756
 
13707
- /* eslint-disable max-lines, curly */
13757
+ /* eslint-disable max-lines, curly, jsdoc/no-undefined-types */
13708
13758
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
13709
13759
  // See LICENSE in the project root for license information.
13710
13760
 
@@ -13771,6 +13821,21 @@ let AuroButton$1 = class AuroButton extends AuroElement$5 {
13771
13821
  * @private
13772
13822
  */
13773
13823
  this.loaderTag = versioning.generateTag('auro-loader', loaderVersion$1, AuroLoader$1);
13824
+
13825
+ /**
13826
+ * @private
13827
+ */
13828
+ this.buttonHref = undefined;
13829
+
13830
+ /**
13831
+ * @private
13832
+ */
13833
+ this.buttonTarget = undefined;
13834
+
13835
+ /**
13836
+ * @private
13837
+ */
13838
+ this.buttonRel = undefined;
13774
13839
  }
13775
13840
 
13776
13841
  static get styles() {
@@ -13837,13 +13902,23 @@ let AuroButton$1 = class AuroButton extends AuroElement$5 {
13837
13902
  },
13838
13903
 
13839
13904
  /**
13840
- * Populates `tabIndex` to define the focusable sequence in keyboard navigation.
13905
+ * Populates `tabindex` to define the focusable sequence in keyboard navigation.
13841
13906
  */
13842
13907
  tIndex: {
13843
13908
  type: String,
13844
13909
  reflect: true
13845
13910
  },
13846
13911
 
13912
+ /**
13913
+ * Populates `tabindex` to define the focusable sequence in keyboard navigation.
13914
+ * Must be used with "." to ensure the host element does not retain a reference to the `tabindex` attribute.
13915
+ * Example: `<auro-button .tabindex="${this.disabled ? '-1' : '0'}"></auro-button>`
13916
+ */
13917
+ tabindex: {
13918
+ type: String,
13919
+ reflect: false
13920
+ },
13921
+
13847
13922
  /**
13848
13923
  * Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
13849
13924
  */
@@ -13876,6 +13951,27 @@ let AuroButton$1 = class AuroButton extends AuroElement$5 {
13876
13951
  type: String,
13877
13952
  reflect: true
13878
13953
  },
13954
+
13955
+ /**
13956
+ * @private
13957
+ */
13958
+ buttonHref: {
13959
+ type: String,
13960
+ },
13961
+
13962
+ /**
13963
+ * @private
13964
+ */
13965
+ buttonTarget: {
13966
+ type: String,
13967
+ },
13968
+
13969
+ /**
13970
+ * @private
13971
+ */
13972
+ buttonRel: {
13973
+ type: String,
13974
+ },
13879
13975
  };
13880
13976
  }
13881
13977
 
@@ -13966,14 +14062,17 @@ let AuroButton$1 = class AuroButton extends AuroElement$5 {
13966
14062
  loading: this.loading,
13967
14063
  };
13968
14064
 
14065
+ const tag = this.buttonHref ? i$4`a` : i$4`button`;
14066
+ const part = this.buttonHref ? 'link' : 'button';
14067
+
13969
14068
  return u$3`
13970
- <button
13971
- part="button"
14069
+ <${tag}
14070
+ part="${part}"
13972
14071
  aria-label="${o(this.loading ? this.loadingText : this.currentAriaLabel || undefined)}"
13973
14072
  aria-labelledby="${o(this.loading ? undefined : this.currentAriaLabelledBy || undefined)}"
13974
- tabIndex="${o(this.tIndex)}"
14073
+ tabindex="${o(this.tIndex || this.tabindex)}"
13975
14074
  ?autofocus="${this.autofocus}"
13976
- class="${e(classes)}"
14075
+ class=${e(classes)}
13977
14076
  ?disabled="${this.disabled || this.loading}"
13978
14077
  ?onDark="${this.onDark}"
13979
14078
  title="${o(this.title ? this.title : undefined)}"
@@ -13982,6 +14081,9 @@ let AuroButton$1 = class AuroButton extends AuroElement$5 {
13982
14081
  variant="${o(this.variant ? this.variant : undefined)}"
13983
14082
  .value="${o(this.value ? this.value : undefined)}"
13984
14083
  @click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
14084
+ href="${o(this.buttonHref || undefined)}"
14085
+ target="${o(this.buttonTarget || undefined)}"
14086
+ rel="${o(this.buttonRel || undefined)}"
13985
14087
  >
13986
14088
  ${o(this.loading ? u$3`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
13987
14089
 
@@ -13990,12 +14092,12 @@ let AuroButton$1 = class AuroButton extends AuroElement$5 {
13990
14092
  <slot></slot>
13991
14093
  </span>
13992
14094
  </span>
13993
- </button>
14095
+ </${tag}>
13994
14096
  `;
13995
14097
  }
13996
14098
 
13997
14099
  /**
13998
- * Renders the layout of the button
14100
+ * Renders the layout of the button.
13999
14101
  * @returns {TemplateResult}
14000
14102
  * @private
14001
14103
  */
@@ -25322,7 +25424,6 @@ let AuroElement$3 = class AuroElement extends i$1 {
25322
25424
  * @private
25323
25425
  */
25324
25426
  wrapper: {
25325
- type: HTMLElement,
25326
25427
  attribute: false,
25327
25428
  reflect: false
25328
25429
  }
@@ -25631,7 +25732,7 @@ class AuroLoader extends i$1 {
25631
25732
 
25632
25733
  var loaderVersion = '5.0.0';
25633
25734
 
25634
- /* eslint-disable max-lines, curly */
25735
+ /* eslint-disable max-lines, curly, jsdoc/no-undefined-types */
25635
25736
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
25636
25737
  // See LICENSE in the project root for license information.
25637
25738
 
@@ -25698,6 +25799,21 @@ class AuroButton extends AuroElement$3 {
25698
25799
  * @private
25699
25800
  */
25700
25801
  this.loaderTag = versioning.generateTag('auro-loader', loaderVersion, AuroLoader);
25802
+
25803
+ /**
25804
+ * @private
25805
+ */
25806
+ this.buttonHref = undefined;
25807
+
25808
+ /**
25809
+ * @private
25810
+ */
25811
+ this.buttonTarget = undefined;
25812
+
25813
+ /**
25814
+ * @private
25815
+ */
25816
+ this.buttonRel = undefined;
25701
25817
  }
25702
25818
 
25703
25819
  static get styles() {
@@ -25764,13 +25880,23 @@ class AuroButton extends AuroElement$3 {
25764
25880
  },
25765
25881
 
25766
25882
  /**
25767
- * Populates `tabIndex` to define the focusable sequence in keyboard navigation.
25883
+ * Populates `tabindex` to define the focusable sequence in keyboard navigation.
25768
25884
  */
25769
25885
  tIndex: {
25770
25886
  type: String,
25771
25887
  reflect: true
25772
25888
  },
25773
25889
 
25890
+ /**
25891
+ * Populates `tabindex` to define the focusable sequence in keyboard navigation.
25892
+ * Must be used with "." to ensure the host element does not retain a reference to the `tabindex` attribute.
25893
+ * Example: `<auro-button .tabindex="${this.disabled ? '-1' : '0'}"></auro-button>`
25894
+ */
25895
+ tabindex: {
25896
+ type: String,
25897
+ reflect: false
25898
+ },
25899
+
25774
25900
  /**
25775
25901
  * Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
25776
25902
  */
@@ -25803,6 +25929,27 @@ class AuroButton extends AuroElement$3 {
25803
25929
  type: String,
25804
25930
  reflect: true
25805
25931
  },
25932
+
25933
+ /**
25934
+ * @private
25935
+ */
25936
+ buttonHref: {
25937
+ type: String,
25938
+ },
25939
+
25940
+ /**
25941
+ * @private
25942
+ */
25943
+ buttonTarget: {
25944
+ type: String,
25945
+ },
25946
+
25947
+ /**
25948
+ * @private
25949
+ */
25950
+ buttonRel: {
25951
+ type: String,
25952
+ },
25806
25953
  };
25807
25954
  }
25808
25955
 
@@ -25893,14 +26040,17 @@ class AuroButton extends AuroElement$3 {
25893
26040
  loading: this.loading,
25894
26041
  };
25895
26042
 
26043
+ const tag = this.buttonHref ? i$4`a` : i$4`button`;
26044
+ const part = this.buttonHref ? 'link' : 'button';
26045
+
25896
26046
  return u$3`
25897
- <button
25898
- part="button"
26047
+ <${tag}
26048
+ part="${part}"
25899
26049
  aria-label="${o(this.loading ? this.loadingText : this.currentAriaLabel || undefined)}"
25900
26050
  aria-labelledby="${o(this.loading ? undefined : this.currentAriaLabelledBy || undefined)}"
25901
- tabIndex="${o(this.tIndex)}"
26051
+ tabindex="${o(this.tIndex || this.tabindex)}"
25902
26052
  ?autofocus="${this.autofocus}"
25903
- class="${e(classes)}"
26053
+ class=${e(classes)}
25904
26054
  ?disabled="${this.disabled || this.loading}"
25905
26055
  ?onDark="${this.onDark}"
25906
26056
  title="${o(this.title ? this.title : undefined)}"
@@ -25909,6 +26059,9 @@ class AuroButton extends AuroElement$3 {
25909
26059
  variant="${o(this.variant ? this.variant : undefined)}"
25910
26060
  .value="${o(this.value ? this.value : undefined)}"
25911
26061
  @click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
26062
+ href="${o(this.buttonHref || undefined)}"
26063
+ target="${o(this.buttonTarget || undefined)}"
26064
+ rel="${o(this.buttonRel || undefined)}"
25912
26065
  >
25913
26066
  ${o(this.loading ? u$3`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
25914
26067
 
@@ -25917,12 +26070,12 @@ class AuroButton extends AuroElement$3 {
25917
26070
  <slot></slot>
25918
26071
  </span>
25919
26072
  </span>
25920
- </button>
26073
+ </${tag}>
25921
26074
  `;
25922
26075
  }
25923
26076
 
25924
26077
  /**
25925
- * Renders the layout of the button
26078
+ * Renders the layout of the button.
25926
26079
  * @returns {TemplateResult}
25927
26080
  * @private
25928
26081
  */