@aurodesignsystem-dev/auro-formkit 0.0.0-pr785.2 → 0.0.0-pr788.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 (75) hide show
  1. package/components/bibtemplate/dist/buttonVersion.d.ts +1 -1
  2. package/components/bibtemplate/dist/headerVersion.d.ts +1 -1
  3. package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
  4. package/components/bibtemplate/dist/index.js +136 -121
  5. package/components/bibtemplate/dist/registered.js +136 -121
  6. package/components/checkbox/demo/api.md +2 -1
  7. package/components/checkbox/demo/api.min.js +23 -5
  8. package/components/checkbox/demo/index.min.js +23 -5
  9. package/components/checkbox/dist/index.js +23 -5
  10. package/components/checkbox/dist/registered.js +23 -5
  11. package/components/combobox/README.md +2 -0
  12. package/components/combobox/demo/api.md +9 -0
  13. package/components/combobox/demo/api.min.js +315 -202
  14. package/components/combobox/demo/index.md +12 -0
  15. package/components/combobox/demo/index.min.js +315 -202
  16. package/components/combobox/demo/readme.md +2 -0
  17. package/components/combobox/dist/auro-combobox.d.ts +9 -4
  18. package/components/combobox/dist/index.js +309 -196
  19. package/components/combobox/dist/registered.js +309 -196
  20. package/components/counter/demo/api.md +11 -0
  21. package/components/counter/demo/api.min.js +288 -177
  22. package/components/counter/demo/index.md +6 -0
  23. package/components/counter/demo/index.min.js +288 -177
  24. package/components/counter/dist/auro-counter-group.d.ts +11 -0
  25. package/components/counter/dist/iconVersion.d.ts +1 -1
  26. package/components/counter/dist/index.js +283 -172
  27. package/components/counter/dist/registered.js +283 -172
  28. package/components/datepicker/README.md +2 -1
  29. package/components/datepicker/demo/api.md +53 -20
  30. package/components/datepicker/demo/api.min.js +595 -284
  31. package/components/datepicker/demo/index.md +16 -4
  32. package/components/datepicker/demo/index.min.js +595 -284
  33. package/components/datepicker/demo/readme.md +2 -1
  34. package/components/datepicker/dist/auro-datepicker.d.ts +69 -14
  35. package/components/datepicker/dist/index.js +595 -284
  36. package/components/datepicker/dist/registered.js +595 -284
  37. package/components/datepicker/dist/styles/classic/style-css.d.ts +2 -0
  38. package/components/dropdown/demo/api.md +7 -8
  39. package/components/dropdown/demo/api.min.js +12 -0
  40. package/components/dropdown/demo/index.min.js +12 -0
  41. package/components/dropdown/dist/auro-dropdown.d.ts +6 -1
  42. package/components/dropdown/dist/index.js +12 -0
  43. package/components/dropdown/dist/registered.js +12 -0
  44. package/components/input/README.md +1 -0
  45. package/components/input/demo/api.md +16 -7
  46. package/components/input/demo/api.min.js +115 -49
  47. package/components/input/demo/index.md +7 -0
  48. package/components/input/demo/index.min.js +115 -49
  49. package/components/input/demo/readme.md +1 -0
  50. package/components/input/dist/auro-input.d.ts +0 -6
  51. package/components/input/dist/base-input.d.ts +8 -1
  52. package/components/input/dist/index.js +115 -49
  53. package/components/input/dist/registered.js +115 -49
  54. package/components/menu/demo/api.min.js +2 -2
  55. package/components/menu/demo/index.min.js +2 -2
  56. package/components/menu/dist/iconVersion.d.ts +1 -1
  57. package/components/menu/dist/index.js +2 -2
  58. package/components/menu/dist/registered.js +2 -2
  59. package/components/radio/demo/api.md +32 -1
  60. package/components/radio/demo/api.min.js +18 -7
  61. package/components/radio/demo/index.min.js +18 -7
  62. package/components/radio/dist/index.js +18 -7
  63. package/components/radio/dist/registered.js +18 -7
  64. package/components/select/README.md +1 -0
  65. package/components/select/demo/api.md +49 -64
  66. package/components/select/demo/api.min.js +201 -149
  67. package/components/select/demo/index.html +1 -0
  68. package/components/select/demo/index.md +1065 -137
  69. package/components/select/demo/index.min.js +201 -149
  70. package/components/select/demo/readme.md +1 -0
  71. package/components/select/dist/auro-select.d.ts +11 -5
  72. package/components/select/dist/index.js +195 -143
  73. package/components/select/dist/registered.js +195 -143
  74. package/package.json +5 -5
  75. /package/components/datepicker/dist/styles/{default → classic}/color-css.d.ts +0 -0
@@ -0,0 +1,2 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
@@ -35,13 +35,12 @@
35
35
 
36
36
  ## Methods
37
37
 
38
- | Method | Type | Description |
39
- |------------------------|----------------------|--------------------------------------------------|
40
- | [exposeCssParts](#exposeCssParts) | `(): void` | Exposes CSS parts for styling from parent components. |
41
- | [focus](#focus) | `(): void` | When bib is open, focus on the first element inside of bib.<br />If not, trigger element will get focus. |
42
- | [handleDropdownToggle](#handleDropdownToggle) | `(event: any): void` | |
43
- | [hide](#hide) | `(): void` | Public method to hide the dropdown. |
44
- | [show](#show) | `(): void` | Public method to show the dropdown. |
38
+ | Method | Type | Description |
39
+ |------------------|------------|--------------------------------------------------|
40
+ | [exposeCssParts](#exposeCssParts) | `(): void` | Exposes CSS parts for styling from parent components. |
41
+ | [focus](#focus) | `(): void` | When bib is open, focus on the first element inside of bib.<br />If not, trigger element will get focus. |
42
+ | [hide](#hide) | `(): void` | Public method to hide the dropdown. |
43
+ | [show](#show) | `(): void` | Public method to show the dropdown. |
45
44
 
46
45
  ## Events
47
46
 
@@ -49,7 +48,7 @@
49
48
  |-----------------------------|--------------------------------------|--------------------------------------------------|
50
49
  | `auroDropdown-idAdded` | `Object<key : 'id', value: string>` | |
51
50
  | `auroDropdown-toggled` | | Notifies that the visibility of the dropdown bib has changed. |
52
- | `auroDropdown-triggerClick` | | Notifies that the trigger has been clicked. |
51
+ | `auroDropdown-triggerClick` | `CustomEvent<any>` | Notifies that the trigger has been clicked. |
53
52
 
54
53
  ## Slots
55
54
 
@@ -4002,6 +4002,11 @@ class AuroDropdown extends AuroElement {
4002
4002
  }
4003
4003
  }
4004
4004
 
4005
+ /**
4006
+ * Handles the custom event `auroDropdown-toggled` to update the visibility of the dropdown bib.
4007
+ * @private
4008
+ * @param {CustomEvent} event - The custom event that contains the dropdown toggle information.
4009
+ */
4005
4010
  handleDropdownToggle(event) {
4006
4011
  this.updateFocusTrap();
4007
4012
  this.isPopoverVisible = event.detail.expanded;
@@ -4033,6 +4038,13 @@ class AuroDropdown extends AuroElement {
4033
4038
 
4034
4039
  // Add the tag name as an attribute if it is different than the component name
4035
4040
  this.runtimeUtils.handleComponentTagRename(this, 'auro-dropdown');
4041
+
4042
+ this.trigger.addEventListener('click', () => {
4043
+ this.dispatchEvent(new CustomEvent('auroDropdown-triggerClick', {
4044
+ bubbles: true,
4045
+ composed: true
4046
+ }));
4047
+ });
4036
4048
  }
4037
4049
 
4038
4050
  /**
@@ -3977,6 +3977,11 @@ class AuroDropdown extends AuroElement {
3977
3977
  }
3978
3978
  }
3979
3979
 
3980
+ /**
3981
+ * Handles the custom event `auroDropdown-toggled` to update the visibility of the dropdown bib.
3982
+ * @private
3983
+ * @param {CustomEvent} event - The custom event that contains the dropdown toggle information.
3984
+ */
3980
3985
  handleDropdownToggle(event) {
3981
3986
  this.updateFocusTrap();
3982
3987
  this.isPopoverVisible = event.detail.expanded;
@@ -4008,6 +4013,13 @@ class AuroDropdown extends AuroElement {
4008
4013
 
4009
4014
  // Add the tag name as an attribute if it is different than the component name
4010
4015
  this.runtimeUtils.handleComponentTagRename(this, 'auro-dropdown');
4016
+
4017
+ this.trigger.addEventListener('click', () => {
4018
+ this.dispatchEvent(new CustomEvent('auroDropdown-triggerClick', {
4019
+ bubbles: true,
4020
+ composed: true
4021
+ }));
4022
+ });
4011
4023
  }
4012
4024
 
4013
4025
  /**
@@ -220,7 +220,12 @@ export class AuroDropdown extends AuroElement {
220
220
  shape: any;
221
221
  size: any;
222
222
  parentBorder: boolean;
223
- handleDropdownToggle(event: any): void;
223
+ /**
224
+ * Handles the custom event `auroDropdown-toggled` to update the visibility of the dropdown bib.
225
+ * @private
226
+ * @param {CustomEvent} event - The custom event that contains the dropdown toggle information.
227
+ */
228
+ private handleDropdownToggle;
224
229
  /**
225
230
  * @private
226
231
  * @returns {object} Class definition for the wrapper element.
@@ -3930,6 +3930,11 @@ class AuroDropdown extends AuroElement {
3930
3930
  }
3931
3931
  }
3932
3932
 
3933
+ /**
3934
+ * Handles the custom event `auroDropdown-toggled` to update the visibility of the dropdown bib.
3935
+ * @private
3936
+ * @param {CustomEvent} event - The custom event that contains the dropdown toggle information.
3937
+ */
3933
3938
  handleDropdownToggle(event) {
3934
3939
  this.updateFocusTrap();
3935
3940
  this.isPopoverVisible = event.detail.expanded;
@@ -3961,6 +3966,13 @@ class AuroDropdown extends AuroElement {
3961
3966
 
3962
3967
  // Add the tag name as an attribute if it is different than the component name
3963
3968
  this.runtimeUtils.handleComponentTagRename(this, 'auro-dropdown');
3969
+
3970
+ this.trigger.addEventListener('click', () => {
3971
+ this.dispatchEvent(new CustomEvent('auroDropdown-triggerClick', {
3972
+ bubbles: true,
3973
+ composed: true
3974
+ }));
3975
+ });
3964
3976
  }
3965
3977
 
3966
3978
  /**
@@ -3930,6 +3930,11 @@ class AuroDropdown extends AuroElement {
3930
3930
  }
3931
3931
  }
3932
3932
 
3933
+ /**
3934
+ * Handles the custom event `auroDropdown-toggled` to update the visibility of the dropdown bib.
3935
+ * @private
3936
+ * @param {CustomEvent} event - The custom event that contains the dropdown toggle information.
3937
+ */
3933
3938
  handleDropdownToggle(event) {
3934
3939
  this.updateFocusTrap();
3935
3940
  this.isPopoverVisible = event.detail.expanded;
@@ -3961,6 +3966,13 @@ class AuroDropdown extends AuroElement {
3961
3966
 
3962
3967
  // Add the tag name as an attribute if it is different than the component name
3963
3968
  this.runtimeUtils.handleComponentTagRename(this, 'auro-dropdown');
3969
+
3970
+ this.trigger.addEventListener('click', () => {
3971
+ this.dispatchEvent(new CustomEvent('auroDropdown-triggerClick', {
3972
+ bubbles: true,
3973
+ composed: true
3974
+ }));
3975
+ });
3964
3976
  }
3965
3977
 
3966
3978
  /**
@@ -83,6 +83,7 @@ This configuration enables proper module resolution for the component's TypeScri
83
83
 
84
84
  ```html
85
85
  <auro-input>
86
+ <span slot="ariaLabel.clear">Clear All</span>
86
87
  <span slot="label">Label</span>
87
88
  <span slot="helpText">Help Text</span>
88
89
  </auro-input>
@@ -60,8 +60,9 @@ Generate unique names for dependency components.
60
60
 
61
61
  | Method | Type | Description |
62
62
  |------------|----------------------------------------|--------------------------------------------------|
63
+ | [clear](#clear) | `(): void` | Clears the input value. |
63
64
  | [focus](#focus) | `(): void` | Function to set element focus. |
64
- | [reset](#reset) | `(): void` | Resets component to initial state. |
65
+ | [reset](#reset) | `(): void` | Resets component to initial state, including resetting the touched state and validity. |
65
66
  | [validate](#validate) | `(force?: boolean \| undefined): void` | Validates value.<br /><br />**force**: Whether to force validation. |
66
67
 
67
68
  ## Events
@@ -74,12 +75,15 @@ Generate unique names for dependency components.
74
75
 
75
76
  ## Slots
76
77
 
77
- | Name | Description |
78
- |-----------------|--------------------------------------------------|
79
- | [displayValue](#displayValue) | Allows custom HTML content to display in place of the value when the input is not focused. |
80
- | [helpText](#helpText) | Sets the help text displayed below the input. |
81
- | [label](#label) | Sets the label text for the input. |
82
- | [optionalLabel](#optionalLabel) | Allows overriding the optional display text "(optional)", which appears next to the label. |
78
+ | Name | Description |
79
+ |---------------------------|--------------------------------------------------|
80
+ | `ariaLabel.clear` | Sets aria-label on clear button for screenreader to read |
81
+ | `ariaLabel.password.hide` | Sets aria-label on password button to toggle off showing password |
82
+ | `ariaLabel.password.show` | Sets aria-label on password button to toggle on showing password |
83
+ | [displayValue](#displayValue) | Allows custom HTML content to display in place of the value when the input is not focused. |
84
+ | [helpText](#helpText) | Sets the help text displayed below the input. |
85
+ | [label](#label) | Sets the label text for the input. |
86
+ | [optionalLabel](#optionalLabel) | Allows overriding the optional display text "(optional)", which appears next to the label. |
83
87
 
84
88
  ## CSS Shadow Parts
85
89
 
@@ -115,6 +119,7 @@ The default component supports the basic input `type="text"` structure. The `(op
115
119
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
116
120
  <!-- The below content is automatically added from ./../apiExamples/basic.html -->
117
121
  <auro-input>
122
+ <span slot="ariaLabel.clear">Clear All</span>
118
123
  <span slot="label">Label</span>
119
124
  <span slot="helpText">Help Text</span>
120
125
  </auro-input>
@@ -136,6 +141,7 @@ The default component supports the basic input `type="text"` structure. The `(op
136
141
 
137
142
  ```html
138
143
  <auro-input>
144
+ <span slot="ariaLabel.clear">Clear All</span>
139
145
  <span slot="label">Label</span>
140
146
  <span slot="helpText">Help Text</span>
141
147
  </auro-input>
@@ -895,6 +901,9 @@ Default help text will be added to the input `type="password"` if custom help te
895
901
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/password.html) -->
896
902
  <!-- The below content is automatically added from ../apiExamples/password.html -->
897
903
  <auro-input type="password" required>
904
+ <span slot="ariaLabel.clear">Clear All</span>
905
+ <span slot="ariaLabel.password.show">Show</span>
906
+ <span slot="ariaLabel.password.hide">Hide</span>
898
907
  <span slot="label">Password</span>
899
908
  <span slot="helpText">Please enter a secure password.</span>
900
909
  </auro-input>