@aurodesignsystem-dev/auro-formkit 0.0.0-pr1040.0 → 0.0.0-pr1043.0

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 (38) hide show
  1. package/components/combobox/demo/api.min.js +29 -5
  2. package/components/combobox/demo/index.min.js +29 -5
  3. package/components/combobox/dist/index.js +29 -5
  4. package/components/combobox/dist/registered.js +29 -5
  5. package/components/counter/demo/api.min.js +16 -0
  6. package/components/counter/demo/index.min.js +16 -0
  7. package/components/counter/dist/index.js +16 -0
  8. package/components/counter/dist/registered.js +16 -0
  9. package/components/datepicker/demo/api.md +1 -0
  10. package/components/datepicker/demo/api.min.js +24 -0
  11. package/components/datepicker/demo/index.min.js +24 -0
  12. package/components/datepicker/dist/index.js +24 -0
  13. package/components/datepicker/dist/registered.js +24 -0
  14. package/components/dropdown/demo/api.min.js +8 -0
  15. package/components/dropdown/demo/index.min.js +8 -0
  16. package/components/dropdown/dist/index.js +8 -0
  17. package/components/dropdown/dist/registered.js +8 -0
  18. package/components/input/demo/api.min.js +8 -0
  19. package/components/input/demo/index.min.js +8 -0
  20. package/components/input/dist/index.js +8 -0
  21. package/components/input/dist/registered.js +8 -0
  22. package/components/layoutElement/dist/auroElement.d.ts +5 -0
  23. package/components/layoutElement/dist/index.js +8 -0
  24. package/components/layoutElement/dist/registered.js +8 -0
  25. package/components/menu/demo/api.min.js +8 -0
  26. package/components/menu/demo/index.min.js +8 -0
  27. package/components/menu/dist/index.js +8 -0
  28. package/components/menu/dist/registered.js +8 -0
  29. package/components/radio/demo/api.min.js +5 -3
  30. package/components/radio/demo/index.min.js +5 -3
  31. package/components/radio/dist/auro-radio.d.ts +1 -1
  32. package/components/radio/dist/index.js +5 -3
  33. package/components/radio/dist/registered.js +5 -3
  34. package/components/select/demo/api.min.js +16 -0
  35. package/components/select/demo/index.min.js +16 -0
  36. package/components/select/dist/index.js +16 -0
  37. package/components/select/dist/registered.js +16 -0
  38. package/package.json +1 -1
@@ -4505,6 +4505,14 @@ let AuroElement$4 = class AuroElement extends i$2 {
4505
4505
  };
4506
4506
  }
4507
4507
 
4508
+ /**
4509
+ * Returns true if the element has focus.
4510
+ * @returns {boolean} - Returns true if the element has focus.
4511
+ */
4512
+ get componentHasFocus() {
4513
+ return this.matches(':focus');
4514
+ }
4515
+
4508
4516
  resetShapeClasses() {
4509
4517
  const wrapper = this.shadowRoot.querySelector('.wrapper');
4510
4518
 
@@ -10356,6 +10364,14 @@ let AuroElement$2$1 = class AuroElement extends i$2 {
10356
10364
  };
10357
10365
  }
10358
10366
 
10367
+ /**
10368
+ * Returns true if the element has focus.
10369
+ * @returns {boolean} - Returns true if the element has focus.
10370
+ */
10371
+ get componentHasFocus() {
10372
+ return this.matches(':focus');
10373
+ }
10374
+
10359
10375
  resetShapeClasses() {
10360
10376
  const wrapper = this.shadowRoot.querySelector('.wrapper');
10361
10377
 
@@ -15825,6 +15841,14 @@ let AuroElement$1 = class AuroElement extends i$2 {
15825
15841
  };
15826
15842
  }
15827
15843
 
15844
+ /**
15845
+ * Returns true if the element has focus.
15846
+ * @returns {boolean} - Returns true if the element has focus.
15847
+ */
15848
+ get componentHasFocus() {
15849
+ return this.matches(':focus');
15850
+ }
15851
+
15828
15852
  resetShapeClasses() {
15829
15853
  const wrapper = this.shadowRoot.querySelector('.wrapper');
15830
15854
 
@@ -16650,7 +16674,7 @@ class AuroCombobox extends AuroElement$1 {
16650
16674
 
16651
16675
  // wait a frame in case the bib gets hide immediately after showing because there is no value
16652
16676
  setTimeout(() => {
16653
- if (document.activeElement === this) {
16677
+ if (this.componentHasFocus) {
16654
16678
  this.setInputFocus();
16655
16679
  }
16656
16680
  }, 0);
@@ -16815,7 +16839,7 @@ class AuroCombobox extends AuroElement$1 {
16815
16839
  * Validate every time we remove focus from the combo box.
16816
16840
  */
16817
16841
  this.addEventListener('focusout', () => {
16818
- if (document.activeElement !== this) {
16842
+ if (!this.componentHasFocus) {
16819
16843
  this.validate();
16820
16844
  }
16821
16845
  });
@@ -16895,7 +16919,7 @@ class AuroCombobox extends AuroElement$1 {
16895
16919
  this.handleMenuOptions();
16896
16920
 
16897
16921
  // Validate only if the value was set programmatically
16898
- if (document.activeElement !== this) {
16922
+ if (!this.componentHasFocus) {
16899
16923
  this.validate();
16900
16924
  }
16901
16925
 
@@ -16935,7 +16959,7 @@ class AuroCombobox extends AuroElement$1 {
16935
16959
  }
16936
16960
  } else {
16937
16961
  setTimeout(() => {
16938
- if (document.activeElement !== this) {
16962
+ if (!this.componentHasFocus) {
16939
16963
  this.hideBib();
16940
16964
  }
16941
16965
  }, 0);
@@ -17056,7 +17080,7 @@ class AuroCombobox extends AuroElement$1 {
17056
17080
  }
17057
17081
 
17058
17082
  if (changedProperties.has('availableOptions')) {
17059
- if (this.availableOptions && this.availableOptions.length > 0 && document.activeElement === this) {
17083
+ if (this.availableOptions && this.availableOptions.length > 0 && this.componentHasFocus) {
17060
17084
  this.showBib();
17061
17085
  } else {
17062
17086
  this.hideBib();
@@ -4363,6 +4363,14 @@ let AuroElement$4 = class AuroElement extends i$2 {
4363
4363
  };
4364
4364
  }
4365
4365
 
4366
+ /**
4367
+ * Returns true if the element has focus.
4368
+ * @returns {boolean} - Returns true if the element has focus.
4369
+ */
4370
+ get componentHasFocus() {
4371
+ return this.matches(':focus');
4372
+ }
4373
+
4366
4374
  resetShapeClasses() {
4367
4375
  const wrapper = this.shadowRoot.querySelector('.wrapper');
4368
4376
 
@@ -10214,6 +10222,14 @@ let AuroElement$2$1 = class AuroElement extends i$2 {
10214
10222
  };
10215
10223
  }
10216
10224
 
10225
+ /**
10226
+ * Returns true if the element has focus.
10227
+ * @returns {boolean} - Returns true if the element has focus.
10228
+ */
10229
+ get componentHasFocus() {
10230
+ return this.matches(':focus');
10231
+ }
10232
+
10217
10233
  resetShapeClasses() {
10218
10234
  const wrapper = this.shadowRoot.querySelector('.wrapper');
10219
10235
 
@@ -15683,6 +15699,14 @@ let AuroElement$1 = class AuroElement extends i$2 {
15683
15699
  };
15684
15700
  }
15685
15701
 
15702
+ /**
15703
+ * Returns true if the element has focus.
15704
+ * @returns {boolean} - Returns true if the element has focus.
15705
+ */
15706
+ get componentHasFocus() {
15707
+ return this.matches(':focus');
15708
+ }
15709
+
15686
15710
  resetShapeClasses() {
15687
15711
  const wrapper = this.shadowRoot.querySelector('.wrapper');
15688
15712
 
@@ -16508,7 +16532,7 @@ class AuroCombobox extends AuroElement$1 {
16508
16532
 
16509
16533
  // wait a frame in case the bib gets hide immediately after showing because there is no value
16510
16534
  setTimeout(() => {
16511
- if (document.activeElement === this) {
16535
+ if (this.componentHasFocus) {
16512
16536
  this.setInputFocus();
16513
16537
  }
16514
16538
  }, 0);
@@ -16673,7 +16697,7 @@ class AuroCombobox extends AuroElement$1 {
16673
16697
  * Validate every time we remove focus from the combo box.
16674
16698
  */
16675
16699
  this.addEventListener('focusout', () => {
16676
- if (document.activeElement !== this) {
16700
+ if (!this.componentHasFocus) {
16677
16701
  this.validate();
16678
16702
  }
16679
16703
  });
@@ -16753,7 +16777,7 @@ class AuroCombobox extends AuroElement$1 {
16753
16777
  this.handleMenuOptions();
16754
16778
 
16755
16779
  // Validate only if the value was set programmatically
16756
- if (document.activeElement !== this) {
16780
+ if (!this.componentHasFocus) {
16757
16781
  this.validate();
16758
16782
  }
16759
16783
 
@@ -16793,7 +16817,7 @@ class AuroCombobox extends AuroElement$1 {
16793
16817
  }
16794
16818
  } else {
16795
16819
  setTimeout(() => {
16796
- if (document.activeElement !== this) {
16820
+ if (!this.componentHasFocus) {
16797
16821
  this.hideBib();
16798
16822
  }
16799
16823
  }, 0);
@@ -16914,7 +16938,7 @@ class AuroCombobox extends AuroElement$1 {
16914
16938
  }
16915
16939
 
16916
16940
  if (changedProperties.has('availableOptions')) {
16917
- if (this.availableOptions && this.availableOptions.length > 0 && document.activeElement === this) {
16941
+ if (this.availableOptions && this.availableOptions.length > 0 && this.componentHasFocus) {
16918
16942
  this.showBib();
16919
16943
  } else {
16920
16944
  this.hideBib();
@@ -4294,6 +4294,14 @@ let AuroElement$4 = class AuroElement extends LitElement {
4294
4294
  };
4295
4295
  }
4296
4296
 
4297
+ /**
4298
+ * Returns true if the element has focus.
4299
+ * @returns {boolean} - Returns true if the element has focus.
4300
+ */
4301
+ get componentHasFocus() {
4302
+ return this.matches(':focus');
4303
+ }
4304
+
4297
4305
  resetShapeClasses() {
4298
4306
  const wrapper = this.shadowRoot.querySelector('.wrapper');
4299
4307
 
@@ -10132,6 +10140,14 @@ let AuroElement$2$1 = class AuroElement extends LitElement {
10132
10140
  };
10133
10141
  }
10134
10142
 
10143
+ /**
10144
+ * Returns true if the element has focus.
10145
+ * @returns {boolean} - Returns true if the element has focus.
10146
+ */
10147
+ get componentHasFocus() {
10148
+ return this.matches(':focus');
10149
+ }
10150
+
10135
10151
  resetShapeClasses() {
10136
10152
  const wrapper = this.shadowRoot.querySelector('.wrapper');
10137
10153
 
@@ -15601,6 +15617,14 @@ class AuroElement extends LitElement {
15601
15617
  };
15602
15618
  }
15603
15619
 
15620
+ /**
15621
+ * Returns true if the element has focus.
15622
+ * @returns {boolean} - Returns true if the element has focus.
15623
+ */
15624
+ get componentHasFocus() {
15625
+ return this.matches(':focus');
15626
+ }
15627
+
15604
15628
  resetShapeClasses() {
15605
15629
  const wrapper = this.shadowRoot.querySelector('.wrapper');
15606
15630
 
@@ -16426,7 +16450,7 @@ class AuroCombobox extends AuroElement {
16426
16450
 
16427
16451
  // wait a frame in case the bib gets hide immediately after showing because there is no value
16428
16452
  setTimeout(() => {
16429
- if (document.activeElement === this) {
16453
+ if (this.componentHasFocus) {
16430
16454
  this.setInputFocus();
16431
16455
  }
16432
16456
  }, 0);
@@ -16591,7 +16615,7 @@ class AuroCombobox extends AuroElement {
16591
16615
  * Validate every time we remove focus from the combo box.
16592
16616
  */
16593
16617
  this.addEventListener('focusout', () => {
16594
- if (document.activeElement !== this) {
16618
+ if (!this.componentHasFocus) {
16595
16619
  this.validate();
16596
16620
  }
16597
16621
  });
@@ -16671,7 +16695,7 @@ class AuroCombobox extends AuroElement {
16671
16695
  this.handleMenuOptions();
16672
16696
 
16673
16697
  // Validate only if the value was set programmatically
16674
- if (document.activeElement !== this) {
16698
+ if (!this.componentHasFocus) {
16675
16699
  this.validate();
16676
16700
  }
16677
16701
 
@@ -16711,7 +16735,7 @@ class AuroCombobox extends AuroElement {
16711
16735
  }
16712
16736
  } else {
16713
16737
  setTimeout(() => {
16714
- if (document.activeElement !== this) {
16738
+ if (!this.componentHasFocus) {
16715
16739
  this.hideBib();
16716
16740
  }
16717
16741
  }, 0);
@@ -16832,7 +16856,7 @@ class AuroCombobox extends AuroElement {
16832
16856
  }
16833
16857
 
16834
16858
  if (changedProperties.has('availableOptions')) {
16835
- if (this.availableOptions && this.availableOptions.length > 0 && document.activeElement === this) {
16859
+ if (this.availableOptions && this.availableOptions.length > 0 && this.componentHasFocus) {
16836
16860
  this.showBib();
16837
16861
  } else {
16838
16862
  this.hideBib();
@@ -4294,6 +4294,14 @@ let AuroElement$4 = class AuroElement extends LitElement {
4294
4294
  };
4295
4295
  }
4296
4296
 
4297
+ /**
4298
+ * Returns true if the element has focus.
4299
+ * @returns {boolean} - Returns true if the element has focus.
4300
+ */
4301
+ get componentHasFocus() {
4302
+ return this.matches(':focus');
4303
+ }
4304
+
4297
4305
  resetShapeClasses() {
4298
4306
  const wrapper = this.shadowRoot.querySelector('.wrapper');
4299
4307
 
@@ -10132,6 +10140,14 @@ let AuroElement$2$1 = class AuroElement extends LitElement {
10132
10140
  };
10133
10141
  }
10134
10142
 
10143
+ /**
10144
+ * Returns true if the element has focus.
10145
+ * @returns {boolean} - Returns true if the element has focus.
10146
+ */
10147
+ get componentHasFocus() {
10148
+ return this.matches(':focus');
10149
+ }
10150
+
10135
10151
  resetShapeClasses() {
10136
10152
  const wrapper = this.shadowRoot.querySelector('.wrapper');
10137
10153
 
@@ -15601,6 +15617,14 @@ class AuroElement extends LitElement {
15601
15617
  };
15602
15618
  }
15603
15619
 
15620
+ /**
15621
+ * Returns true if the element has focus.
15622
+ * @returns {boolean} - Returns true if the element has focus.
15623
+ */
15624
+ get componentHasFocus() {
15625
+ return this.matches(':focus');
15626
+ }
15627
+
15604
15628
  resetShapeClasses() {
15605
15629
  const wrapper = this.shadowRoot.querySelector('.wrapper');
15606
15630
 
@@ -16426,7 +16450,7 @@ class AuroCombobox extends AuroElement {
16426
16450
 
16427
16451
  // wait a frame in case the bib gets hide immediately after showing because there is no value
16428
16452
  setTimeout(() => {
16429
- if (document.activeElement === this) {
16453
+ if (this.componentHasFocus) {
16430
16454
  this.setInputFocus();
16431
16455
  }
16432
16456
  }, 0);
@@ -16591,7 +16615,7 @@ class AuroCombobox extends AuroElement {
16591
16615
  * Validate every time we remove focus from the combo box.
16592
16616
  */
16593
16617
  this.addEventListener('focusout', () => {
16594
- if (document.activeElement !== this) {
16618
+ if (!this.componentHasFocus) {
16595
16619
  this.validate();
16596
16620
  }
16597
16621
  });
@@ -16671,7 +16695,7 @@ class AuroCombobox extends AuroElement {
16671
16695
  this.handleMenuOptions();
16672
16696
 
16673
16697
  // Validate only if the value was set programmatically
16674
- if (document.activeElement !== this) {
16698
+ if (!this.componentHasFocus) {
16675
16699
  this.validate();
16676
16700
  }
16677
16701
 
@@ -16711,7 +16735,7 @@ class AuroCombobox extends AuroElement {
16711
16735
  }
16712
16736
  } else {
16713
16737
  setTimeout(() => {
16714
- if (document.activeElement !== this) {
16738
+ if (!this.componentHasFocus) {
16715
16739
  this.hideBib();
16716
16740
  }
16717
16741
  }, 0);
@@ -16832,7 +16856,7 @@ class AuroCombobox extends AuroElement {
16832
16856
  }
16833
16857
 
16834
16858
  if (changedProperties.has('availableOptions')) {
16835
- if (this.availableOptions && this.availableOptions.length > 0 && document.activeElement === this) {
16859
+ if (this.availableOptions && this.availableOptions.length > 0 && this.componentHasFocus) {
16836
16860
  this.showBib();
16837
16861
  } else {
16838
16862
  this.hideBib();
@@ -6526,6 +6526,14 @@ let AuroElement$3 = class AuroElement extends i$2 {
6526
6526
  };
6527
6527
  }
6528
6528
 
6529
+ /**
6530
+ * Returns true if the element has focus.
6531
+ * @returns {boolean} - Returns true if the element has focus.
6532
+ */
6533
+ get componentHasFocus() {
6534
+ return this.matches(':focus');
6535
+ }
6536
+
6529
6537
  resetShapeClasses() {
6530
6538
  const wrapper = this.shadowRoot.querySelector('.wrapper');
6531
6539
 
@@ -9510,6 +9518,14 @@ class AuroElement extends i$2 {
9510
9518
  };
9511
9519
  }
9512
9520
 
9521
+ /**
9522
+ * Returns true if the element has focus.
9523
+ * @returns {boolean} - Returns true if the element has focus.
9524
+ */
9525
+ get componentHasFocus() {
9526
+ return this.matches(':focus');
9527
+ }
9528
+
9513
9529
  resetShapeClasses() {
9514
9530
  const wrapper = this.shadowRoot.querySelector('.wrapper');
9515
9531
 
@@ -6526,6 +6526,14 @@ let AuroElement$3 = class AuroElement extends i$2 {
6526
6526
  };
6527
6527
  }
6528
6528
 
6529
+ /**
6530
+ * Returns true if the element has focus.
6531
+ * @returns {boolean} - Returns true if the element has focus.
6532
+ */
6533
+ get componentHasFocus() {
6534
+ return this.matches(':focus');
6535
+ }
6536
+
6529
6537
  resetShapeClasses() {
6530
6538
  const wrapper = this.shadowRoot.querySelector('.wrapper');
6531
6539
 
@@ -9510,6 +9518,14 @@ class AuroElement extends i$2 {
9510
9518
  };
9511
9519
  }
9512
9520
 
9521
+ /**
9522
+ * Returns true if the element has focus.
9523
+ * @returns {boolean} - Returns true if the element has focus.
9524
+ */
9525
+ get componentHasFocus() {
9526
+ return this.matches(':focus');
9527
+ }
9528
+
9513
9529
  resetShapeClasses() {
9514
9530
  const wrapper = this.shadowRoot.querySelector('.wrapper');
9515
9531
 
@@ -6479,6 +6479,14 @@ let AuroElement$3 = class AuroElement extends LitElement {
6479
6479
  };
6480
6480
  }
6481
6481
 
6482
+ /**
6483
+ * Returns true if the element has focus.
6484
+ * @returns {boolean} - Returns true if the element has focus.
6485
+ */
6486
+ get componentHasFocus() {
6487
+ return this.matches(':focus');
6488
+ }
6489
+
6482
6490
  resetShapeClasses() {
6483
6491
  const wrapper = this.shadowRoot.querySelector('.wrapper');
6484
6492
 
@@ -9463,6 +9471,14 @@ class AuroElement extends LitElement {
9463
9471
  };
9464
9472
  }
9465
9473
 
9474
+ /**
9475
+ * Returns true if the element has focus.
9476
+ * @returns {boolean} - Returns true if the element has focus.
9477
+ */
9478
+ get componentHasFocus() {
9479
+ return this.matches(':focus');
9480
+ }
9481
+
9466
9482
  resetShapeClasses() {
9467
9483
  const wrapper = this.shadowRoot.querySelector('.wrapper');
9468
9484
 
@@ -6479,6 +6479,14 @@ let AuroElement$3 = class AuroElement extends LitElement {
6479
6479
  };
6480
6480
  }
6481
6481
 
6482
+ /**
6483
+ * Returns true if the element has focus.
6484
+ * @returns {boolean} - Returns true if the element has focus.
6485
+ */
6486
+ get componentHasFocus() {
6487
+ return this.matches(':focus');
6488
+ }
6489
+
6482
6490
  resetShapeClasses() {
6483
6491
  const wrapper = this.shadowRoot.querySelector('.wrapper');
6484
6492
 
@@ -9463,6 +9471,14 @@ class AuroElement extends LitElement {
9463
9471
  };
9464
9472
  }
9465
9473
 
9474
+ /**
9475
+ * Returns true if the element has focus.
9476
+ * @returns {boolean} - Returns true if the element has focus.
9477
+ */
9478
+ get componentHasFocus() {
9479
+ return this.matches(':focus');
9480
+ }
9481
+
9466
9482
  resetShapeClasses() {
9467
9483
  const wrapper = this.shadowRoot.querySelector('.wrapper');
9468
9484
 
@@ -12,6 +12,7 @@
12
12
  | [calendarFocusDate](#calendarFocusDate) | `calendarFocusDate` | | `string` | "value" | The date that will first be visually rendered to the user in the calendar. |
13
13
  | [calendarStartDate](#calendarStartDate) | `calendarStartDate` | | `string` | "undefined" | The first date that may be displayed in the calendar. |
14
14
  | [centralDate](#centralDate) | `centralDate` | | `string` | | The date that determines the currently visible month. |
15
+ | [componentHasFocus](#componentHasFocus) | | readonly | `boolean` | | Returns true if the element has focus. |
15
16
  | [disabled](#disabled) | `disabled` | | `boolean` | false | If set, disables the datepicker. |
16
17
  | [error](#error) | `error` | | `string` | | When defined, sets persistent validity to `customError` and sets the validation message to the attribute value. |
17
18
  | [format](#format) | `format` | | `string` | "mm/dd/yyyy" | Specifies the date format. The default is `mm/dd/yyyy`. |
@@ -17947,6 +17947,14 @@ let AuroElement$4 = class AuroElement extends i {
17947
17947
  };
17948
17948
  }
17949
17949
 
17950
+ /**
17951
+ * Returns true if the element has focus.
17952
+ * @returns {boolean} - Returns true if the element has focus.
17953
+ */
17954
+ get componentHasFocus() {
17955
+ return this.matches(':focus');
17956
+ }
17957
+
17950
17958
  resetShapeClasses() {
17951
17959
  const wrapper = this.shadowRoot.querySelector('.wrapper');
17952
17960
 
@@ -23798,6 +23806,14 @@ let AuroElement$2 = class AuroElement extends i {
23798
23806
  };
23799
23807
  }
23800
23808
 
23809
+ /**
23810
+ * Returns true if the element has focus.
23811
+ * @returns {boolean} - Returns true if the element has focus.
23812
+ */
23813
+ get componentHasFocus() {
23814
+ return this.matches(':focus');
23815
+ }
23816
+
23801
23817
  resetShapeClasses() {
23802
23818
  const wrapper = this.shadowRoot.querySelector('.wrapper');
23803
23819
 
@@ -27526,6 +27542,14 @@ let AuroElement$1 = class AuroElement extends i {
27526
27542
  };
27527
27543
  }
27528
27544
 
27545
+ /**
27546
+ * Returns true if the element has focus.
27547
+ * @returns {boolean} - Returns true if the element has focus.
27548
+ */
27549
+ get componentHasFocus() {
27550
+ return this.matches(':focus');
27551
+ }
27552
+
27529
27553
  resetShapeClasses() {
27530
27554
  const wrapper = this.shadowRoot.querySelector('.wrapper');
27531
27555
 
@@ -17688,6 +17688,14 @@ let AuroElement$4 = class AuroElement extends i {
17688
17688
  };
17689
17689
  }
17690
17690
 
17691
+ /**
17692
+ * Returns true if the element has focus.
17693
+ * @returns {boolean} - Returns true if the element has focus.
17694
+ */
17695
+ get componentHasFocus() {
17696
+ return this.matches(':focus');
17697
+ }
17698
+
17691
17699
  resetShapeClasses() {
17692
17700
  const wrapper = this.shadowRoot.querySelector('.wrapper');
17693
17701
 
@@ -23539,6 +23547,14 @@ let AuroElement$2 = class AuroElement extends i {
23539
23547
  };
23540
23548
  }
23541
23549
 
23550
+ /**
23551
+ * Returns true if the element has focus.
23552
+ * @returns {boolean} - Returns true if the element has focus.
23553
+ */
23554
+ get componentHasFocus() {
23555
+ return this.matches(':focus');
23556
+ }
23557
+
23542
23558
  resetShapeClasses() {
23543
23559
  const wrapper = this.shadowRoot.querySelector('.wrapper');
23544
23560
 
@@ -27267,6 +27283,14 @@ let AuroElement$1 = class AuroElement extends i {
27267
27283
  };
27268
27284
  }
27269
27285
 
27286
+ /**
27287
+ * Returns true if the element has focus.
27288
+ * @returns {boolean} - Returns true if the element has focus.
27289
+ */
27290
+ get componentHasFocus() {
27291
+ return this.matches(':focus');
27292
+ }
27293
+
27270
27294
  resetShapeClasses() {
27271
27295
  const wrapper = this.shadowRoot.querySelector('.wrapper');
27272
27296
 
@@ -17637,6 +17637,14 @@ let AuroElement$4 = class AuroElement extends LitElement {
17637
17637
  };
17638
17638
  }
17639
17639
 
17640
+ /**
17641
+ * Returns true if the element has focus.
17642
+ * @returns {boolean} - Returns true if the element has focus.
17643
+ */
17644
+ get componentHasFocus() {
17645
+ return this.matches(':focus');
17646
+ }
17647
+
17640
17648
  resetShapeClasses() {
17641
17649
  const wrapper = this.shadowRoot.querySelector('.wrapper');
17642
17650
 
@@ -23475,6 +23483,14 @@ let AuroElement$2 = class AuroElement extends LitElement {
23475
23483
  };
23476
23484
  }
23477
23485
 
23486
+ /**
23487
+ * Returns true if the element has focus.
23488
+ * @returns {boolean} - Returns true if the element has focus.
23489
+ */
23490
+ get componentHasFocus() {
23491
+ return this.matches(':focus');
23492
+ }
23493
+
23478
23494
  resetShapeClasses() {
23479
23495
  const wrapper = this.shadowRoot.querySelector('.wrapper');
23480
23496
 
@@ -27203,6 +27219,14 @@ let AuroElement$1 = class AuroElement extends LitElement {
27203
27219
  };
27204
27220
  }
27205
27221
 
27222
+ /**
27223
+ * Returns true if the element has focus.
27224
+ * @returns {boolean} - Returns true if the element has focus.
27225
+ */
27226
+ get componentHasFocus() {
27227
+ return this.matches(':focus');
27228
+ }
27229
+
27206
27230
  resetShapeClasses() {
27207
27231
  const wrapper = this.shadowRoot.querySelector('.wrapper');
27208
27232
 
@@ -17637,6 +17637,14 @@ let AuroElement$4 = class AuroElement extends LitElement {
17637
17637
  };
17638
17638
  }
17639
17639
 
17640
+ /**
17641
+ * Returns true if the element has focus.
17642
+ * @returns {boolean} - Returns true if the element has focus.
17643
+ */
17644
+ get componentHasFocus() {
17645
+ return this.matches(':focus');
17646
+ }
17647
+
17640
17648
  resetShapeClasses() {
17641
17649
  const wrapper = this.shadowRoot.querySelector('.wrapper');
17642
17650
 
@@ -23475,6 +23483,14 @@ let AuroElement$2 = class AuroElement extends LitElement {
23475
23483
  };
23476
23484
  }
23477
23485
 
23486
+ /**
23487
+ * Returns true if the element has focus.
23488
+ * @returns {boolean} - Returns true if the element has focus.
23489
+ */
23490
+ get componentHasFocus() {
23491
+ return this.matches(':focus');
23492
+ }
23493
+
23478
23494
  resetShapeClasses() {
23479
23495
  const wrapper = this.shadowRoot.querySelector('.wrapper');
23480
23496
 
@@ -27203,6 +27219,14 @@ let AuroElement$1 = class AuroElement extends LitElement {
27203
27219
  };
27204
27220
  }
27205
27221
 
27222
+ /**
27223
+ * Returns true if the element has focus.
27224
+ * @returns {boolean} - Returns true if the element has focus.
27225
+ */
27226
+ get componentHasFocus() {
27227
+ return this.matches(':focus');
27228
+ }
27229
+
27206
27230
  resetShapeClasses() {
27207
27231
  const wrapper = this.shadowRoot.querySelector('.wrapper');
27208
27232
 
@@ -3467,6 +3467,14 @@ class AuroElement extends i {
3467
3467
  };
3468
3468
  }
3469
3469
 
3470
+ /**
3471
+ * Returns true if the element has focus.
3472
+ * @returns {boolean} - Returns true if the element has focus.
3473
+ */
3474
+ get componentHasFocus() {
3475
+ return this.matches(':focus');
3476
+ }
3477
+
3470
3478
  resetShapeClasses() {
3471
3479
  const wrapper = this.shadowRoot.querySelector('.wrapper');
3472
3480
 
@@ -3442,6 +3442,14 @@ class AuroElement extends i {
3442
3442
  };
3443
3443
  }
3444
3444
 
3445
+ /**
3446
+ * Returns true if the element has focus.
3447
+ * @returns {boolean} - Returns true if the element has focus.
3448
+ */
3449
+ get componentHasFocus() {
3450
+ return this.matches(':focus');
3451
+ }
3452
+
3445
3453
  resetShapeClasses() {
3446
3454
  const wrapper = this.shadowRoot.querySelector('.wrapper');
3447
3455
 
@@ -3395,6 +3395,14 @@ class AuroElement extends LitElement {
3395
3395
  };
3396
3396
  }
3397
3397
 
3398
+ /**
3399
+ * Returns true if the element has focus.
3400
+ * @returns {boolean} - Returns true if the element has focus.
3401
+ */
3402
+ get componentHasFocus() {
3403
+ return this.matches(':focus');
3404
+ }
3405
+
3398
3406
  resetShapeClasses() {
3399
3407
  const wrapper = this.shadowRoot.querySelector('.wrapper');
3400
3408
 
@@ -3395,6 +3395,14 @@ class AuroElement extends LitElement {
3395
3395
  };
3396
3396
  }
3397
3397
 
3398
+ /**
3399
+ * Returns true if the element has focus.
3400
+ * @returns {boolean} - Returns true if the element has focus.
3401
+ */
3402
+ get componentHasFocus() {
3403
+ return this.matches(':focus');
3404
+ }
3405
+
3398
3406
  resetShapeClasses() {
3399
3407
  const wrapper = this.shadowRoot.querySelector('.wrapper');
3400
3408
 
@@ -5034,6 +5034,14 @@ let AuroElement$2 = class AuroElement extends i$2 {
5034
5034
  };
5035
5035
  }
5036
5036
 
5037
+ /**
5038
+ * Returns true if the element has focus.
5039
+ * @returns {boolean} - Returns true if the element has focus.
5040
+ */
5041
+ get componentHasFocus() {
5042
+ return this.matches(':focus');
5043
+ }
5044
+
5037
5045
  resetShapeClasses() {
5038
5046
  const wrapper = this.shadowRoot.querySelector('.wrapper');
5039
5047
 
@@ -4959,6 +4959,14 @@ let AuroElement$2 = class AuroElement extends i$2 {
4959
4959
  };
4960
4960
  }
4961
4961
 
4962
+ /**
4963
+ * Returns true if the element has focus.
4964
+ * @returns {boolean} - Returns true if the element has focus.
4965
+ */
4966
+ get componentHasFocus() {
4967
+ return this.matches(':focus');
4968
+ }
4969
+
4962
4970
  resetShapeClasses() {
4963
4971
  const wrapper = this.shadowRoot.querySelector('.wrapper');
4964
4972
 
@@ -4883,6 +4883,14 @@ let AuroElement$2 = class AuroElement extends LitElement {
4883
4883
  };
4884
4884
  }
4885
4885
 
4886
+ /**
4887
+ * Returns true if the element has focus.
4888
+ * @returns {boolean} - Returns true if the element has focus.
4889
+ */
4890
+ get componentHasFocus() {
4891
+ return this.matches(':focus');
4892
+ }
4893
+
4886
4894
  resetShapeClasses() {
4887
4895
  const wrapper = this.shadowRoot.querySelector('.wrapper');
4888
4896
 
@@ -4883,6 +4883,14 @@ let AuroElement$2 = class AuroElement extends LitElement {
4883
4883
  };
4884
4884
  }
4885
4885
 
4886
+ /**
4887
+ * Returns true if the element has focus.
4888
+ * @returns {boolean} - Returns true if the element has focus.
4889
+ */
4890
+ get componentHasFocus() {
4891
+ return this.matches(':focus');
4892
+ }
4893
+
4886
4894
  resetShapeClasses() {
4887
4895
  const wrapper = this.shadowRoot.querySelector('.wrapper');
4888
4896
 
@@ -25,6 +25,11 @@ export class AuroElement extends LitElement {
25
25
  reflect: boolean;
26
26
  };
27
27
  };
28
+ /**
29
+ * Returns true if the element has focus.
30
+ * @returns {boolean} - Returns true if the element has focus.
31
+ */
32
+ get componentHasFocus(): boolean;
28
33
  resetShapeClasses(): void;
29
34
  resetLayoutClasses(): void;
30
35
  updateComponentArchitecture(): void;
@@ -34,6 +34,14 @@ class AuroElement extends LitElement {
34
34
  };
35
35
  }
36
36
 
37
+ /**
38
+ * Returns true if the element has focus.
39
+ * @returns {boolean} - Returns true if the element has focus.
40
+ */
41
+ get componentHasFocus() {
42
+ return this.matches(':focus');
43
+ }
44
+
37
45
  resetShapeClasses() {
38
46
  const wrapper = this.shadowRoot.querySelector('.wrapper');
39
47
 
@@ -34,6 +34,14 @@ class AuroElement extends LitElement {
34
34
  };
35
35
  }
36
36
 
37
+ /**
38
+ * Returns true if the element has focus.
39
+ * @returns {boolean} - Returns true if the element has focus.
40
+ */
41
+ get componentHasFocus() {
42
+ return this.matches(':focus');
43
+ }
44
+
37
45
  resetShapeClasses() {
38
46
  const wrapper = this.shadowRoot.querySelector('.wrapper');
39
47
 
@@ -104,6 +104,14 @@ let AuroElement$1 = class AuroElement extends i$2 {
104
104
  };
105
105
  }
106
106
 
107
+ /**
108
+ * Returns true if the element has focus.
109
+ * @returns {boolean} - Returns true if the element has focus.
110
+ */
111
+ get componentHasFocus() {
112
+ return this.matches(':focus');
113
+ }
114
+
107
115
  resetShapeClasses() {
108
116
  const wrapper = this.shadowRoot.querySelector('.wrapper');
109
117
 
@@ -64,6 +64,14 @@ let AuroElement$1 = class AuroElement extends i$2 {
64
64
  };
65
65
  }
66
66
 
67
+ /**
68
+ * Returns true if the element has focus.
69
+ * @returns {boolean} - Returns true if the element has focus.
70
+ */
71
+ get componentHasFocus() {
72
+ return this.matches(':focus');
73
+ }
74
+
67
75
  resetShapeClasses() {
68
76
  const wrapper = this.shadowRoot.querySelector('.wrapper');
69
77
 
@@ -43,6 +43,14 @@ let AuroElement$1 = class AuroElement extends LitElement {
43
43
  };
44
44
  }
45
45
 
46
+ /**
47
+ * Returns true if the element has focus.
48
+ * @returns {boolean} - Returns true if the element has focus.
49
+ */
50
+ get componentHasFocus() {
51
+ return this.matches(':focus');
52
+ }
53
+
46
54
  resetShapeClasses() {
47
55
  const wrapper = this.shadowRoot.querySelector('.wrapper');
48
56
 
@@ -43,6 +43,14 @@ let AuroElement$1 = class AuroElement extends LitElement {
43
43
  };
44
44
  }
45
45
 
46
+ /**
47
+ * Returns true if the element has focus.
48
+ * @returns {boolean} - Returns true if the element has focus.
49
+ */
50
+ get componentHasFocus() {
51
+ return this.matches(':focus');
52
+ }
53
+
46
54
  resetShapeClasses() {
47
55
  const wrapper = this.shadowRoot.querySelector('.wrapper');
48
56
 
@@ -248,8 +248,8 @@ class AuroRadio extends i$2 {
248
248
  },
249
249
 
250
250
  /**
251
+ * Don't add to api.md since changing of this can easily break a11y.
251
252
  * @private
252
- * not to add to api.md since changing of this can easily break a11y.
253
253
  */
254
254
  role: {
255
255
  type: String,
@@ -1801,8 +1801,10 @@ class AuroRadioGroup extends i$2 {
1801
1801
  const nextEnabledIndex = this.items.findIndex((item) => !item.hasAttribute('disabled'));
1802
1802
 
1803
1803
  this.index = index >= 0 ? index : nextEnabledIndex;
1804
- this.items[this.index].setAttribute('tabindex', 0);
1805
- }
1804
+
1805
+ if (this.items[this.index]) {
1806
+ this.items[this.index].setAttribute('tabindex', 0);
1807
+ } }
1806
1808
  }
1807
1809
 
1808
1810
  /**
@@ -223,8 +223,8 @@ class AuroRadio extends i$2 {
223
223
  },
224
224
 
225
225
  /**
226
+ * Don't add to api.md since changing of this can easily break a11y.
226
227
  * @private
227
- * not to add to api.md since changing of this can easily break a11y.
228
228
  */
229
229
  role: {
230
230
  type: String,
@@ -1776,8 +1776,10 @@ class AuroRadioGroup extends i$2 {
1776
1776
  const nextEnabledIndex = this.items.findIndex((item) => !item.hasAttribute('disabled'));
1777
1777
 
1778
1778
  this.index = index >= 0 ? index : nextEnabledIndex;
1779
- this.items[this.index].setAttribute('tabindex', 0);
1780
- }
1779
+
1780
+ if (this.items[this.index]) {
1781
+ this.items[this.index].setAttribute('tabindex', 0);
1782
+ } }
1781
1783
  }
1782
1784
 
1783
1785
  /**
@@ -71,8 +71,8 @@ export class AuroRadio extends LitElement {
71
71
  attribute: boolean;
72
72
  };
73
73
  /**
74
+ * Don't add to api.md since changing of this can easily break a11y.
74
75
  * @private
75
- * not to add to api.md since changing of this can easily break a11y.
76
76
  */
77
77
  role: {
78
78
  type: StringConstructor;
@@ -183,8 +183,8 @@ class AuroRadio extends LitElement {
183
183
  },
184
184
 
185
185
  /**
186
+ * Don't add to api.md since changing of this can easily break a11y.
186
187
  * @private
187
- * not to add to api.md since changing of this can easily break a11y.
188
188
  */
189
189
  role: {
190
190
  type: String,
@@ -1729,8 +1729,10 @@ class AuroRadioGroup extends LitElement {
1729
1729
  const nextEnabledIndex = this.items.findIndex((item) => !item.hasAttribute('disabled'));
1730
1730
 
1731
1731
  this.index = index >= 0 ? index : nextEnabledIndex;
1732
- this.items[this.index].setAttribute('tabindex', 0);
1733
- }
1732
+
1733
+ if (this.items[this.index]) {
1734
+ this.items[this.index].setAttribute('tabindex', 0);
1735
+ } }
1734
1736
  }
1735
1737
 
1736
1738
  /**
@@ -183,8 +183,8 @@ class AuroRadio extends LitElement {
183
183
  },
184
184
 
185
185
  /**
186
+ * Don't add to api.md since changing of this can easily break a11y.
186
187
  * @private
187
- * not to add to api.md since changing of this can easily break a11y.
188
188
  */
189
189
  role: {
190
190
  type: String,
@@ -1729,8 +1729,10 @@ class AuroRadioGroup extends LitElement {
1729
1729
  const nextEnabledIndex = this.items.findIndex((item) => !item.hasAttribute('disabled'));
1730
1730
 
1731
1731
  this.index = index >= 0 ? index : nextEnabledIndex;
1732
- this.items[this.index].setAttribute('tabindex', 0);
1733
- }
1732
+
1733
+ if (this.items[this.index]) {
1734
+ this.items[this.index].setAttribute('tabindex', 0);
1735
+ } }
1734
1736
  }
1735
1737
 
1736
1738
  /**
@@ -170,6 +170,14 @@ let AuroElement$4 = class AuroElement extends i$2 {
170
170
  };
171
171
  }
172
172
 
173
+ /**
174
+ * Returns true if the element has focus.
175
+ * @returns {boolean} - Returns true if the element has focus.
176
+ */
177
+ get componentHasFocus() {
178
+ return this.matches(':focus');
179
+ }
180
+
173
181
  resetShapeClasses() {
174
182
  const wrapper = this.shadowRoot.querySelector('.wrapper');
175
183
 
@@ -4531,6 +4539,14 @@ let AuroElement$3 = class AuroElement extends i$2 {
4531
4539
  };
4532
4540
  }
4533
4541
 
4542
+ /**
4543
+ * Returns true if the element has focus.
4544
+ * @returns {boolean} - Returns true if the element has focus.
4545
+ */
4546
+ get componentHasFocus() {
4547
+ return this.matches(':focus');
4548
+ }
4549
+
4534
4550
  resetShapeClasses() {
4535
4551
  const wrapper = this.shadowRoot.querySelector('.wrapper');
4536
4552
 
@@ -78,6 +78,14 @@ let AuroElement$4 = class AuroElement extends i$2 {
78
78
  };
79
79
  }
80
80
 
81
+ /**
82
+ * Returns true if the element has focus.
83
+ * @returns {boolean} - Returns true if the element has focus.
84
+ */
85
+ get componentHasFocus() {
86
+ return this.matches(':focus');
87
+ }
88
+
81
89
  resetShapeClasses() {
82
90
  const wrapper = this.shadowRoot.querySelector('.wrapper');
83
91
 
@@ -4439,6 +4447,14 @@ let AuroElement$3 = class AuroElement extends i$2 {
4439
4447
  };
4440
4448
  }
4441
4449
 
4450
+ /**
4451
+ * Returns true if the element has focus.
4452
+ * @returns {boolean} - Returns true if the element has focus.
4453
+ */
4454
+ get componentHasFocus() {
4455
+ return this.matches(':focus');
4456
+ }
4457
+
4442
4458
  resetShapeClasses() {
4443
4459
  const wrapper = this.shadowRoot.querySelector('.wrapper');
4444
4460
 
@@ -38,6 +38,14 @@ let AuroElement$3 = class AuroElement extends LitElement {
38
38
  };
39
39
  }
40
40
 
41
+ /**
42
+ * Returns true if the element has focus.
43
+ * @returns {boolean} - Returns true if the element has focus.
44
+ */
45
+ get componentHasFocus() {
46
+ return this.matches(':focus');
47
+ }
48
+
41
49
  resetShapeClasses() {
42
50
  const wrapper = this.shadowRoot.querySelector('.wrapper');
43
51
 
@@ -4393,6 +4401,14 @@ let AuroElement$2 = class AuroElement extends LitElement {
4393
4401
  };
4394
4402
  }
4395
4403
 
4404
+ /**
4405
+ * Returns true if the element has focus.
4406
+ * @returns {boolean} - Returns true if the element has focus.
4407
+ */
4408
+ get componentHasFocus() {
4409
+ return this.matches(':focus');
4410
+ }
4411
+
4396
4412
  resetShapeClasses() {
4397
4413
  const wrapper = this.shadowRoot.querySelector('.wrapper');
4398
4414
 
@@ -38,6 +38,14 @@ let AuroElement$3 = class AuroElement extends LitElement {
38
38
  };
39
39
  }
40
40
 
41
+ /**
42
+ * Returns true if the element has focus.
43
+ * @returns {boolean} - Returns true if the element has focus.
44
+ */
45
+ get componentHasFocus() {
46
+ return this.matches(':focus');
47
+ }
48
+
41
49
  resetShapeClasses() {
42
50
  const wrapper = this.shadowRoot.querySelector('.wrapper');
43
51
 
@@ -4393,6 +4401,14 @@ let AuroElement$2 = class AuroElement extends LitElement {
4393
4401
  };
4394
4402
  }
4395
4403
 
4404
+ /**
4405
+ * Returns true if the element has focus.
4406
+ * @returns {boolean} - Returns true if the element has focus.
4407
+ */
4408
+ get componentHasFocus() {
4409
+ return this.matches(':focus');
4410
+ }
4411
+
4396
4412
  resetShapeClasses() {
4397
4413
  const wrapper = this.shadowRoot.querySelector('.wrapper');
4398
4414
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurodesignsystem-dev/auro-formkit",
3
- "version": "0.0.0-pr1040.0",
3
+ "version": "0.0.0-pr1043.0",
4
4
  "description": "A collection of web components used to build forms.",
5
5
  "homepage": "https://github.com/AlaskaAirlines/auro-formkit#readme",
6
6
  "bugs": {