@aurodesignsystem-dev/auro-formkit 0.0.0-pr1379.0 → 0.0.0-pr1379.10

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 (226) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/README.md +87 -113
  3. package/components/combobox/demo/keyboardBehavior.html +81 -0
  4. package/components/counter/demo/keyboardBehavior.html +81 -0
  5. package/components/datepicker/demo/keyboard-behavior.html +81 -0
  6. package/components/dropdown/demo/keyboardBehavior.html +81 -0
  7. package/components/select/demo/keyboardBehavior.html +81 -0
  8. package/package.json +64 -53
  9. package/components/bibtemplate/dist/auro-bibtemplate.d.ts +0 -66
  10. package/components/bibtemplate/dist/buttonVersion.d.ts +0 -2
  11. package/components/bibtemplate/dist/headerVersion.d.ts +0 -2
  12. package/components/bibtemplate/dist/iconVersion.d.ts +0 -2
  13. package/components/bibtemplate/dist/index.d.ts +0 -2
  14. package/components/bibtemplate/dist/index.js +0 -395
  15. package/components/bibtemplate/dist/registered.js +0 -395
  16. package/components/bibtemplate/dist/styles/color-css.d.ts +0 -2
  17. package/components/bibtemplate/dist/styles/style-css.d.ts +0 -2
  18. package/components/bibtemplate/dist/styles/tokens-css.d.ts +0 -2
  19. package/components/checkbox/demo/api.md +0 -489
  20. package/components/checkbox/demo/api.min.js +0 -2133
  21. package/components/checkbox/demo/index.md +0 -55
  22. package/components/checkbox/demo/index.min.js +0 -2108
  23. package/components/checkbox/demo/readme.md +0 -142
  24. package/components/checkbox/dist/auro-checkbox-group.d.ts +0 -176
  25. package/components/checkbox/dist/auro-checkbox.d.ts +0 -209
  26. package/components/checkbox/dist/index.d.ts +0 -3
  27. package/components/checkbox/dist/index.js +0 -2057
  28. package/components/checkbox/dist/registered.js +0 -2058
  29. package/components/checkbox/dist/styles/auro-checkbox-css.d.ts +0 -2
  30. package/components/checkbox/dist/styles/auro-checkbox-group-css.d.ts +0 -2
  31. package/components/checkbox/dist/styles/color-css.d.ts +0 -2
  32. package/components/checkbox/dist/styles/colorGroup-css.d.ts +0 -2
  33. package/components/checkbox/dist/styles/tokens-css.d.ts +0 -2
  34. package/components/combobox/demo/api.md +0 -2287
  35. package/components/combobox/demo/api.min.js +0 -17549
  36. package/components/combobox/demo/index.md +0 -196
  37. package/components/combobox/demo/index.min.js +0 -17454
  38. package/components/combobox/demo/readme.md +0 -158
  39. package/components/combobox/dist/auro-combobox.d.ts +0 -552
  40. package/components/combobox/dist/comboboxKeyboardStrategy.d.ts +0 -6
  41. package/components/combobox/dist/index.d.ts +0 -2
  42. package/components/combobox/dist/index.js +0 -15474
  43. package/components/combobox/dist/registered.js +0 -15476
  44. package/components/combobox/dist/styles/emphasized/style-css.d.ts +0 -2
  45. package/components/combobox/dist/styles/snowflake/style-css.d.ts +0 -2
  46. package/components/combobox/dist/styles/style-css.d.ts +0 -2
  47. package/components/counter/demo/api.md +0 -1285
  48. package/components/counter/demo/api.min.js +0 -7993
  49. package/components/counter/demo/index.md +0 -92
  50. package/components/counter/demo/index.min.js +0 -7974
  51. package/components/counter/demo/readme.md +0 -161
  52. package/components/counter/dist/auro-counter-button.d.ts +0 -14
  53. package/components/counter/dist/auro-counter-group.d.ts +0 -390
  54. package/components/counter/dist/auro-counter-wrapper.d.ts +0 -17
  55. package/components/counter/dist/auro-counter.d.ts +0 -126
  56. package/components/counter/dist/buttonVersion.d.ts +0 -2
  57. package/components/counter/dist/iconVersion.d.ts +0 -2
  58. package/components/counter/dist/index.d.ts +0 -3
  59. package/components/counter/dist/index.js +0 -7896
  60. package/components/counter/dist/registered.js +0 -7897
  61. package/components/counter/dist/styles/color-css.d.ts +0 -2
  62. package/components/counter/dist/styles/counter-button-color-css.d.ts +0 -2
  63. package/components/counter/dist/styles/counter-button-css.d.ts +0 -2
  64. package/components/counter/dist/styles/counter-group-css.d.ts +0 -2
  65. package/components/counter/dist/styles/counter-wrapper-color-css.d.ts +0 -2
  66. package/components/counter/dist/styles/counter-wrapper-css.d.ts +0 -2
  67. package/components/counter/dist/styles/shapeSize-css.d.ts +0 -2
  68. package/components/counter/dist/styles/style-css.d.ts +0 -2
  69. package/components/counter/dist/styles/tokens-css.d.ts +0 -2
  70. package/components/datepicker/demo/api.md +0 -1824
  71. package/components/datepicker/demo/api.min.js +0 -24530
  72. package/components/datepicker/demo/index.md +0 -158
  73. package/components/datepicker/demo/index.min.js +0 -24251
  74. package/components/datepicker/demo/readme.md +0 -137
  75. package/components/datepicker/dist/auro-calendar-cell.d.ts +0 -169
  76. package/components/datepicker/dist/auro-calendar-month.d.ts +0 -20
  77. package/components/datepicker/dist/auro-calendar.d.ts +0 -173
  78. package/components/datepicker/dist/auro-datepicker.d.ts +0 -722
  79. package/components/datepicker/dist/buttonVersion.d.ts +0 -2
  80. package/components/datepicker/dist/iconVersion.d.ts +0 -2
  81. package/components/datepicker/dist/index.d.ts +0 -2
  82. package/components/datepicker/dist/index.js +0 -24166
  83. package/components/datepicker/dist/popoverVersion.d.ts +0 -2
  84. package/components/datepicker/dist/registered.js +0 -24166
  85. package/components/datepicker/dist/styles/classic/color-css.d.ts +0 -2
  86. package/components/datepicker/dist/styles/classic/style-css.d.ts +0 -2
  87. package/components/datepicker/dist/styles/color-calendar-css.d.ts +0 -2
  88. package/components/datepicker/dist/styles/color-cell-css.d.ts +0 -2
  89. package/components/datepicker/dist/styles/color-css.d.ts +0 -2
  90. package/components/datepicker/dist/styles/color-month-css.d.ts +0 -2
  91. package/components/datepicker/dist/styles/shapeSize-css.d.ts +0 -2
  92. package/components/datepicker/dist/styles/snowflake/color-css.d.ts +0 -2
  93. package/components/datepicker/dist/styles/snowflake/style-css.d.ts +0 -2
  94. package/components/datepicker/dist/styles/style-auro-calendar-cell-css.d.ts +0 -2
  95. package/components/datepicker/dist/styles/style-auro-calendar-css.d.ts +0 -2
  96. package/components/datepicker/dist/styles/style-auro-calendar-month-css.d.ts +0 -2
  97. package/components/datepicker/dist/styles/style-css.d.ts +0 -2
  98. package/components/datepicker/dist/styles/tokens-css.d.ts +0 -2
  99. package/components/datepicker/dist/utilities.d.ts +0 -78
  100. package/components/datepicker/dist/utilitiesCalendar.d.ts +0 -38
  101. package/components/datepicker/dist/utilitiesCalendarRender.d.ts +0 -50
  102. package/components/datepicker/dist/vendor/wc-range-datepicker/day.d.ts +0 -5
  103. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-calendar.d.ts +0 -60
  104. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-cell.d.ts +0 -1
  105. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker.d.ts +0 -57
  106. package/components/dropdown/demo/api.md +0 -1358
  107. package/components/dropdown/demo/api.min.js +0 -4853
  108. package/components/dropdown/demo/index.md +0 -283
  109. package/components/dropdown/demo/index.min.js +0 -4788
  110. package/components/dropdown/demo/readme.md +0 -160
  111. package/components/dropdown/dist/auro-dropdown.d.ts +0 -482
  112. package/components/dropdown/dist/auro-dropdownBib.d.ts +0 -155
  113. package/components/dropdown/dist/iconVersion.d.ts +0 -2
  114. package/components/dropdown/dist/index.d.ts +0 -2
  115. package/components/dropdown/dist/index.js +0 -4685
  116. package/components/dropdown/dist/keyboardUtils.d.ts +0 -18
  117. package/components/dropdown/dist/registered.js +0 -4685
  118. package/components/dropdown/dist/styles/classic/bibColors-css.d.ts +0 -2
  119. package/components/dropdown/dist/styles/classic/bibStyles-css.d.ts +0 -2
  120. package/components/dropdown/dist/styles/classic/color-css.d.ts +0 -2
  121. package/components/dropdown/dist/styles/classic/style-css.d.ts +0 -2
  122. package/components/dropdown/dist/styles/color-css.d.ts +0 -2
  123. package/components/dropdown/dist/styles/emphasized/style-css.d.ts +0 -2
  124. package/components/dropdown/dist/styles/shapeSize-css.d.ts +0 -2
  125. package/components/dropdown/dist/styles/snowflake/style-css.d.ts +0 -2
  126. package/components/dropdown/dist/styles/style-css.d.ts +0 -2
  127. package/components/dropdown/dist/styles/tokens-css.d.ts +0 -2
  128. package/components/form/demo/api.md +0 -319
  129. package/components/form/demo/api.min.js +0 -69996
  130. package/components/form/demo/index.md +0 -128
  131. package/components/form/demo/index.min.js +0 -69996
  132. package/components/form/demo/readme.md +0 -145
  133. package/components/form/dist/auro-form.d.ts +0 -280
  134. package/components/form/dist/index.d.ts +0 -2
  135. package/components/form/dist/index.js +0 -718
  136. package/components/form/dist/registered.d.ts +0 -1
  137. package/components/form/dist/registered.js +0 -718
  138. package/components/form/dist/styles/style-css.d.ts +0 -2
  139. package/components/helptext/dist/auro-helptext.d.ts +0 -69
  140. package/components/helptext/dist/index.d.ts +0 -2
  141. package/components/helptext/dist/index.js +0 -231
  142. package/components/helptext/dist/registered.js +0 -231
  143. package/components/helptext/dist/styles/color-css.d.ts +0 -2
  144. package/components/helptext/dist/styles/style-css.d.ts +0 -2
  145. package/components/helptext/dist/styles/tokens-css.d.ts +0 -2
  146. package/components/input/demo/api.md +0 -1397
  147. package/components/input/demo/api.min.js +0 -7435
  148. package/components/input/demo/index.md +0 -161
  149. package/components/input/demo/index.min.js +0 -7355
  150. package/components/input/demo/readme.md +0 -134
  151. package/components/input/dist/auro-input.d.ts +0 -195
  152. package/components/input/dist/base-input.d.ts +0 -628
  153. package/components/input/dist/buttonVersion.d.ts +0 -2
  154. package/components/input/dist/i18n.d.ts +0 -18
  155. package/components/input/dist/iconVersion.d.ts +0 -2
  156. package/components/input/dist/index.d.ts +0 -2
  157. package/components/input/dist/index.js +0 -7278
  158. package/components/input/dist/registered.js +0 -7278
  159. package/components/input/dist/styles/classic/color-css.d.ts +0 -2
  160. package/components/input/dist/styles/classic/style-css.d.ts +0 -2
  161. package/components/input/dist/styles/color-css.d.ts +0 -2
  162. package/components/input/dist/styles/default/borders-css.d.ts +0 -2
  163. package/components/input/dist/styles/default/color-css.d.ts +0 -2
  164. package/components/input/dist/styles/default/mixins-css.d.ts +0 -2
  165. package/components/input/dist/styles/default/notificationIcons-css.d.ts +0 -2
  166. package/components/input/dist/styles/default/style-css.d.ts +0 -2
  167. package/components/input/dist/styles/emphasized/color-css.d.ts +0 -2
  168. package/components/input/dist/styles/emphasized/style-css.d.ts +0 -2
  169. package/components/input/dist/styles/mixins-css.d.ts +0 -2
  170. package/components/input/dist/styles/shapeSize-css.d.ts +0 -2
  171. package/components/input/dist/styles/snowflake/style-css.d.ts +0 -2
  172. package/components/input/dist/styles/style-css.d.ts +0 -2
  173. package/components/input/dist/styles/tokens-css.d.ts +0 -2
  174. package/components/input/dist/utilities.d.ts +0 -25
  175. package/components/layoutElement/dist/auroElement.d.ts +0 -40
  176. package/components/layoutElement/dist/index.d.ts +0 -2
  177. package/components/layoutElement/dist/index.js +0 -107
  178. package/components/layoutElement/dist/registered.js +0 -107
  179. package/components/menu/demo/api.md +0 -1200
  180. package/components/menu/demo/api.min.js +0 -2292
  181. package/components/menu/demo/index.md +0 -72
  182. package/components/menu/demo/index.min.js +0 -2185
  183. package/components/menu/demo/readme.md +0 -145
  184. package/components/menu/dist/auro-menu-utils.d.ts +0 -34
  185. package/components/menu/dist/auro-menu.context.d.ts +0 -227
  186. package/components/menu/dist/auro-menu.d.ts +0 -324
  187. package/components/menu/dist/auro-menuoption.d.ts +0 -210
  188. package/components/menu/dist/iconVersion.d.ts +0 -2
  189. package/components/menu/dist/index.d.ts +0 -4
  190. package/components/menu/dist/index.js +0 -2148
  191. package/components/menu/dist/registered.js +0 -2096
  192. package/components/menu/dist/styles/default/color-menu-css.d.ts +0 -2
  193. package/components/menu/dist/styles/default/color-menuoption-css.d.ts +0 -2
  194. package/components/menu/dist/styles/default/style-menu-css.d.ts +0 -2
  195. package/components/menu/dist/styles/default/style-menuoption-css.d.ts +0 -2
  196. package/components/menu/dist/styles/default/tokens-css.d.ts +0 -2
  197. package/components/radio/demo/api.md +0 -675
  198. package/components/radio/demo/api.min.js +0 -2210
  199. package/components/radio/demo/index.md +0 -73
  200. package/components/radio/demo/index.min.js +0 -2167
  201. package/components/radio/demo/readme.md +0 -141
  202. package/components/radio/dist/auro-radio-group.d.ts +0 -250
  203. package/components/radio/dist/auro-radio.d.ts +0 -180
  204. package/components/radio/dist/index.d.ts +0 -3
  205. package/components/radio/dist/index.js +0 -2116
  206. package/components/radio/dist/registered.js +0 -2117
  207. package/components/radio/dist/styles/auro-radio-group-css.d.ts +0 -2
  208. package/components/radio/dist/styles/color-css.d.ts +0 -2
  209. package/components/radio/dist/styles/groupColor-css.d.ts +0 -2
  210. package/components/radio/dist/styles/style-css.d.ts +0 -2
  211. package/components/radio/dist/styles/tokens-css.d.ts +0 -2
  212. package/components/select/demo/api.md +0 -2378
  213. package/components/select/demo/api.min.js +0 -10133
  214. package/components/select/demo/index.md +0 -355
  215. package/components/select/demo/index.min.js +0 -10040
  216. package/components/select/demo/readme.md +0 -148
  217. package/components/select/dist/auro-select.d.ts +0 -545
  218. package/components/select/dist/index.d.ts +0 -2
  219. package/components/select/dist/index.js +0 -8072
  220. package/components/select/dist/registered.js +0 -8072
  221. package/components/select/dist/selectKeyboardStrategy.d.ts +0 -8
  222. package/components/select/dist/styles/emphasized/color-css.d.ts +0 -2
  223. package/components/select/dist/styles/shapeSize-css.d.ts +0 -2
  224. package/components/select/dist/styles/style-css.d.ts +0 -2
  225. package/components/select/dist/styles/tokens-css.d.ts +0 -2
  226. package/custom-elements.json +0 -18656
@@ -1,628 +0,0 @@
1
- /**
2
- * Base class for auro-input component that provides core input functionality.
3
- * @event input - Event fires when the value of an `auro-input` has been changed.
4
- * @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` value has changed.
5
- */
6
- export default class BaseInput extends AuroElement {
7
- static get shadowRootOptions(): {
8
- delegatesFocus: boolean;
9
- clonable?: boolean;
10
- customElementRegistry?: CustomElementRegistry;
11
- mode: ShadowRootMode;
12
- serializable?: boolean;
13
- slotAssignment?: SlotAssignmentMode;
14
- };
15
- static get properties(): {
16
- /**
17
- * The value for the role attribute.
18
- */
19
- a11yRole: {
20
- type: StringConstructor;
21
- reflect: boolean;
22
- };
23
- /**
24
- * The value for the aria-controls attribute.
25
- */
26
- a11yControls: {
27
- type: StringConstructor;
28
- reflect: boolean;
29
- };
30
- /**
31
- * The value for the aria-expanded attribute.
32
- */
33
- a11yExpanded: {
34
- type: BooleanConstructor;
35
- reflect: boolean;
36
- };
37
- /**
38
- * The value for the aria-activedescendant attribute.
39
- * Points to the ID of the currently active/highlighted option in a listbox.
40
- */
41
- a11yActivedescendant: {
42
- type: StringConstructor;
43
- reflect: boolean;
44
- };
45
- /**
46
- * If set, the label will remain fixed in the active position.
47
- */
48
- activeLabel: {
49
- type: BooleanConstructor;
50
- reflect: boolean;
51
- };
52
- /**
53
- * Defines whether the component will be on lighter or darker backgrounds.
54
- * @type {'default' | 'inverse'}
55
- * @default 'default'
56
- */
57
- appearance: "default" | "inverse";
58
- /**
59
- * An enumerated attribute that controls whether and how text input is automatically capitalized as it is entered/edited by the user. [off/none, on/sentences, words, characters].
60
- */
61
- autocapitalize: {
62
- type: StringConstructor;
63
- reflect: boolean;
64
- };
65
- /**
66
- * An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
67
- */
68
- autocomplete: {
69
- type: StringConstructor;
70
- reflect: boolean;
71
- };
72
- /**
73
- * When set to `off`, stops iOS from auto-correcting words when typed into a text box.
74
- */
75
- autocorrect: {
76
- type: StringConstructor;
77
- reflect: boolean;
78
- };
79
- /**
80
- * Custom help text message for email type validity.
81
- */
82
- customValidityTypeEmail: {
83
- type: StringConstructor;
84
- };
85
- /**
86
- * If set, disables the input.
87
- */
88
- disabled: {
89
- type: BooleanConstructor;
90
- reflect: boolean;
91
- };
92
- /**
93
- * If defined, the display value slot content will only mask the HTML5 input element. The input's label will not be masked.
94
- */
95
- dvInputOnly: {
96
- type: BooleanConstructor;
97
- reflect: boolean;
98
- };
99
- /**
100
- * When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
101
- */
102
- error: {
103
- type: StringConstructor;
104
- reflect: boolean;
105
- };
106
- /**
107
- * Contains the help text message for the current validity error.
108
- */
109
- errorMessage: {
110
- type: StringConstructor;
111
- };
112
- /**
113
- * Specifies the input mask format.
114
- */
115
- format: {
116
- type: StringConstructor;
117
- reflect: boolean;
118
- };
119
- /**
120
- * Flag to indicate if the input currently has focus.
121
- */
122
- hasFocus: {
123
- type: BooleanConstructor;
124
- reflect: boolean;
125
- attribute: boolean;
126
- };
127
- /**
128
- * Flag to indicate if the input currently has value.
129
- */
130
- hasValue: {
131
- type: BooleanConstructor;
132
- reflect: boolean;
133
- attribute: boolean;
134
- };
135
- /**
136
- * If set, the label will be hidden visually but still accessible to assistive technologies.
137
- * @private
138
- */
139
- hideLabelVisually: {
140
- type: BooleanConstructor;
141
- reflect: boolean;
142
- };
143
- /**
144
- * If set, will render an icon inside the input to the left of the value. Support is limited to auro-input instances with credit card format.
145
- */
146
- icon: {
147
- type: BooleanConstructor;
148
- reflect: boolean;
149
- };
150
- /**
151
- * The id global attribute defines an identifier (ID) which must be unique in the whole document.
152
- */
153
- id: {
154
- type: StringConstructor;
155
- };
156
- /**
157
- * The id for input node.
158
- * @private
159
- */
160
- inputId: {
161
- type: StringConstructor;
162
- reflect: boolean;
163
- attribute: boolean;
164
- };
165
- /** Exposes inputmode attribute for input. */
166
- inputmode: {
167
- type: StringConstructor;
168
- reflect: boolean;
169
- };
170
- /**
171
- * Defines the language of an element.
172
- */
173
- lang: {
174
- type: StringConstructor;
175
- reflect: boolean;
176
- };
177
- /**
178
- * The maximum value allowed. This only applies for inputs with a type of `number` and all date formats.
179
- */
180
- max: {
181
- type: StringConstructor;
182
- };
183
- /**
184
- * The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher.
185
- * **Note**: This attribute is not intended to be used with a `type` or `format` that already has a defined length, such as credit-cards, dates or phone numbers.
186
- */
187
- maxLength: {
188
- type: NumberConstructor;
189
- reflect: boolean;
190
- };
191
- /**
192
- * The minimum value allowed. This only applies for inputs with a type of `number` and all date formats.
193
- */
194
- min: {
195
- type: StringConstructor;
196
- };
197
- /**
198
- * The minimum number of characters the user can enter into the text input. This must be a non-negative integer value smaller than or equal to the value specified by `maxlength`.
199
- */
200
- minLength: {
201
- type: NumberConstructor;
202
- reflect: boolean;
203
- };
204
- /**
205
- * Populates the `name` attribute on the input.
206
- */
207
- name: {
208
- type: StringConstructor;
209
- reflect: boolean;
210
- };
211
- /**
212
- * Sets styles for nested operation - removes borders, hides help + error text, and
213
- * hides accents.
214
- */
215
- nested: {
216
- type: BooleanConstructor;
217
- reflect: boolean;
218
- };
219
- /**
220
- * If set, disables auto-validation on blur.
221
- */
222
- noValidate: {
223
- type: BooleanConstructor;
224
- reflect: boolean;
225
- };
226
- /**
227
- * DEPRECATED - use `appearance="inverse"` instead.
228
- */
229
- onDark: {
230
- type: BooleanConstructor;
231
- reflect: boolean;
232
- };
233
- /**
234
- * Specifies a regular expression the form control's value should match.
235
- */
236
- pattern: {
237
- type: StringConstructor;
238
- reflect: boolean;
239
- };
240
- /**
241
- * Define custom placeholder text.
242
- */
243
- placeholder: {
244
- type: StringConstructor;
245
- reflect: boolean;
246
- };
247
- /**
248
- * Makes the input read-only, but can be set programmatically.
249
- */
250
- readonly: {
251
- type: BooleanConstructor;
252
- reflect: boolean;
253
- };
254
- /**
255
- * Populates the `required` attribute on the input. Used for client-side validation.
256
- */
257
- required: {
258
- type: BooleanConstructor;
259
- reflect: boolean;
260
- };
261
- /**
262
- * Sets a custom help text message to display for all validityStates.
263
- */
264
- setCustomValidity: {
265
- type: StringConstructor;
266
- };
267
- /**
268
- * Custom help text message to display when validity = `badInput`.
269
- */
270
- setCustomValidityBadInput: {
271
- type: StringConstructor;
272
- };
273
- /**
274
- * Custom help text message to display when validity = `customError`.
275
- */
276
- setCustomValidityCustomError: {
277
- type: StringConstructor;
278
- };
279
- /**
280
- * Custom help text message to display for the declared element `type` and type validity fails.
281
- */
282
- setCustomValidityForType: {
283
- type: StringConstructor;
284
- };
285
- /**
286
- * Custom help text message to display when validity = `rangeOverflow`.
287
- */
288
- setCustomValidityRangeOverflow: {
289
- type: StringConstructor;
290
- };
291
- /**
292
- * Custom help text message to display when validity = `rangeUnderflow`.
293
- */
294
- setCustomValidityRangeUnderflow: {
295
- type: StringConstructor;
296
- };
297
- /**
298
- * Custom help text message to display when validity = `tooLong`.
299
- */
300
- setCustomValidityTooLong: {
301
- type: StringConstructor;
302
- };
303
- /**
304
- * Custom help text message to display when validity = `tooShort`.
305
- */
306
- setCustomValidityTooShort: {
307
- type: StringConstructor;
308
- };
309
- /**
310
- * Custom help text message to display when validity = `valueMissing`.
311
- */
312
- setCustomValidityValueMissing: {
313
- type: StringConstructor;
314
- };
315
- /**
316
- * @ignore
317
- */
318
- showPassword: {
319
- state: boolean;
320
- };
321
- /**
322
- * Simple makes the input render without a border.
323
- */
324
- simple: {
325
- type: BooleanConstructor;
326
- reflect: boolean;
327
- };
328
- /**
329
- * An enumerated attribute defines whether the element may be checked for spelling errors. [true, false]. When set to `false` the attribute `autocorrect` is set to `off` and `autocapitalize` is set to `none`.
330
- */
331
- spellcheck: {
332
- type: StringConstructor;
333
- reflect: boolean;
334
- };
335
- /**
336
- * Indicates whether the input is in a dirty state (has been interacted with).
337
- * @private
338
- */
339
- touched: {
340
- type: BooleanConstructor;
341
- reflect: boolean;
342
- attribute: boolean;
343
- };
344
- /**
345
- * Populates the `type` attribute on the input.
346
- * @type {'text' | 'password' | 'email' | 'credit-card' | 'tel' | 'number'}
347
- * @default 'text'
348
- */
349
- type: "text" | "password" | "email" | "credit-card" | "tel" | "number";
350
- /**
351
- * Sets validation mode to re-eval with each input.
352
- */
353
- validateOnInput: {
354
- type: BooleanConstructor;
355
- };
356
- /**
357
- * Specifies the `validityState` this element is in.
358
- */
359
- validity: {
360
- type: StringConstructor;
361
- reflect: boolean;
362
- };
363
- /**
364
- * Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
365
- */
366
- value: {
367
- type: StringConstructor;
368
- };
369
- layout: {
370
- type: StringConstructor;
371
- attribute: string;
372
- reflect: boolean;
373
- };
374
- };
375
- /**
376
- * Internal Defaults.
377
- * @private
378
- * @returns {void}
379
- */
380
- private _initializeDefaults;
381
- activeLabel: boolean;
382
- appearance: string;
383
- icon: boolean;
384
- disabled: boolean;
385
- dvInputOnly: boolean;
386
- hideLabelVisually: boolean;
387
- max: any;
388
- maxLength: any;
389
- min: any;
390
- minLength: any;
391
- noValidate: boolean;
392
- onDark: boolean;
393
- required: boolean;
394
- setCustomValidityForType: string;
395
- /**
396
- * @private
397
- */
398
- private shape;
399
- /**
400
- * @private
401
- */
402
- private size;
403
- touched: boolean;
404
- util: AuroInputUtilities;
405
- validation: AuroFormValidation;
406
- inputIconName: any;
407
- showPassword: any;
408
- validationCCLength: number;
409
- hasValue: boolean;
410
- label: string;
411
- allowedInputTypes: string[];
412
- /**
413
- * Credit Card is not included as this caused cursor placement issues.
414
- * The Safari issue.
415
- */
416
- setSelectionInputTypes: string[];
417
- dateFormatMap: {
418
- 'mm/dd/yyyy': string;
419
- 'dd/mm/yyyy': string;
420
- 'yyyy/mm/dd': string;
421
- 'yyyy/dd/mm': string;
422
- 'mm/yy': string;
423
- 'yy/mm': string;
424
- 'mm/yyyy': string;
425
- 'yyyy/mm': string;
426
- yy: string;
427
- yyyy: string;
428
- mm: string;
429
- dd: string;
430
- 'dd/mm': string;
431
- 'mm/dd': string;
432
- };
433
- uniqueId: string;
434
- firstUpdated(): void;
435
- wrapperElement: Element;
436
- inputElement: HTMLInputElement;
437
- labelElement: HTMLLabelElement;
438
- inputId: string;
439
- format: any;
440
- ValidityMessageOverride: any;
441
- /**
442
- * Patches the input element to dispatch an 'input' event whenever its value is set programmatically.
443
- * This ensures that changes to the input's value are consistently communicated, even if not triggered by user input.
444
- *
445
- * @param {HTMLInputElement} input - The input element to patch.
446
- * @returns {void}
447
- * @private
448
- */
449
- private patchInputEvent;
450
- /**
451
- * @private
452
- * @returns {void} Sets the default help text for the input.
453
- */
454
- private setCustomHelpTextMessage;
455
- /**
456
- * LitElement lifecycle method. Called after the DOM has been updated.
457
- * @param {Map<string, any>} changedProperties - Keys are the names of changed properties, values are the corresponding previous values.
458
- * @returns {void}
459
- */
460
- updated(changedProperties: Map<string, any>): void;
461
- skipNextProgrammaticInputEvent: boolean;
462
- /**
463
- * @private
464
- * @returns {void} Notify validity state changed via event.
465
- */
466
- private notifyValidityChange;
467
- /**
468
- * Sets up IMasks and logic based on auto-formatting requirements.
469
- * @private
470
- * @returns {void}
471
- */
472
- private configureAutoFormatting;
473
- maskInstance: import("imask").InputMask<import("imask").FactoryArg>;
474
- value: string;
475
- formattedDate: any;
476
- comparisonDate: any;
477
- /**
478
- * @private
479
- * @returns {string}
480
- */
481
- private definePattern;
482
- /**
483
- * Required to convert SVG icons from data to HTML string.
484
- * @private
485
- * @param {string} icon HTML string for requested icon.
486
- * @returns {object} Appended HTML for SVG.
487
- */
488
- private getIconAsHtml;
489
- /**
490
- * Sends event notifying that the input has changed it's value.
491
- * @private
492
- * @returns {void}
493
- */
494
- private notifyValueChanged;
495
- /**
496
- * Handles clicking on the auro-input anywhere outside of the HTML5 input and still moving focus in.
497
- * @private
498
- * @return {void}
499
- */
500
- private handleClick;
501
- /**
502
- * Function to set element focus.
503
- * @return {void}
504
- */
505
- focus(): void;
506
- /**
507
- * Handles event of clearing input content by clicking the X icon.
508
- * @private
509
- * @return {void}
510
- */
511
- private handleClickClear;
512
- /**
513
- * @param {Event} event - The input event.
514
- * @private
515
- * @returns {void}
516
- */
517
- private handleInput;
518
- /**
519
- * Function to support @focusin event.
520
- * @private
521
- * @return {void}
522
- */
523
- private handleFocusin;
524
- hasFocus: boolean;
525
- /**
526
- * Function to support @focusout event.
527
- * @private
528
- * @return {void}
529
- */
530
- private handleFocusout;
531
- /**
532
- * Function to support @blur event.
533
- * @private
534
- * @return {void}
535
- */
536
- private handleBlur;
537
- /**
538
- * Returns focused element, even if it's in the shadow DOM.
539
- * @private
540
- * @param {Object} root - Element to check for focus.
541
- * @returns {Object}
542
- */
543
- private getActiveElement;
544
- /**
545
- * Sets the active descendant element for accessibility.
546
- * Uses ariaActiveDescendantElement to cross shadow DOM boundaries.
547
- * This function is used in components that contain `auro-input` to set the active descendant.
548
- * @private
549
- * @param {HTMLElement|null} element - The element to set as the active descendant, or null to clear.
550
- * @returns {void}
551
- */
552
- private setActiveDescendant;
553
- /**
554
- * Validates value.
555
- * @param {boolean} [force=false] - Whether to force validation.
556
- */
557
- validate(force?: boolean): void;
558
- /**
559
- * Resets component to initial state, including resetting the touched state and validity.
560
- * @returns {void}
561
- */
562
- reset(): void;
563
- /**
564
- * Clears the input value.
565
- */
566
- clear(): void;
567
- /**
568
- * Sets configuration data used elsewhere based on the `type` attribute.
569
- * @private
570
- * @returns {void}
571
- */
572
- private configureDataForType;
573
- lengthForType: any;
574
- inputmode: any;
575
- /**
576
- * Validates against list of supported this.allowedInputTypes; return type=text if invalid request.
577
- * @private
578
- * @param {string} type Value entered into component prop.
579
- * @returns {string} Iterates over allowed types array.
580
- */
581
- private getInputType;
582
- /**
583
- * Determines default help text string.
584
- * @private
585
- * @returns {string} Evaluates pre-determined help text.
586
- */
587
- private getHelpText;
588
- /**
589
- * Function to support show-password feature.
590
- * @private
591
- * @returns {void}
592
- */
593
- private handleClickShowPassword;
594
- /**
595
- * Support placeholder text.
596
- * @private
597
- * @returns {void}
598
- */
599
- private get placeholderStr();
600
- /**
601
- * Defines placement of input icon based on type, used with classMap.
602
- * @private
603
- * @returns {boolean}
604
- */
605
- private defineInputIcon;
606
- /**
607
- * Defines padding of input label based on type, used with classMap.
608
- * @private
609
- * @returns {boolean}
610
- */
611
- private defineLabelPadding;
612
- /**
613
- * Function to support credit-card feature type.
614
- * @private
615
- * @returns {void}
616
- */
617
- private processCreditCard;
618
- errorMessage: any;
619
- /**
620
- * Function to support credit-card feature type.
621
- * @private
622
- * @returns {object} JSON with data for credit card formatting.
623
- */
624
- private matchInputValueToCreditCard;
625
- }
626
- import { AuroElement } from '../../layoutElement/src/auroElement.js';
627
- import { AuroInputUtilities } from "./utilities.js";
628
- import AuroFormValidation from '@aurodesignsystem/form-validation';
@@ -1,2 +0,0 @@
1
- declare const _default: "12.3.2";
2
- export default _default;
@@ -1,18 +0,0 @@
1
- /**
2
- * Function to support the selected of a string in the set lang.
3
- * @param {string} lang - Requested lang for content return.
4
- * @param {string} requestedString - String requested in context.
5
- * @private
6
- * @returns {string} Value of string request.
7
- */
8
- export default function i18n(lang: string, requestedString: string): string;
9
- /**
10
- * @private
11
- * @param {object} element - Pass in the scope of the element in use.
12
- */
13
- export function notifyOnLangChange(element: object): void;
14
- /**
15
- * @private
16
- * @param {object} element - Pass in the scope of the element in use.
17
- */
18
- export function stopNotifyingOnLangChange(element: object): void;
@@ -1,2 +0,0 @@
1
- declare const _default: "9.1.2";
2
- export default _default;
@@ -1,2 +0,0 @@
1
- export { AuroInput };
2
- import { AuroInput } from './auro-input.js';