@aurodesignsystem-dev/auro-formkit 0.0.0-pr1001.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 (297) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/LICENSE +201 -0
  3. package/NOTICE +2 -0
  4. package/README.md +314 -0
  5. package/components/bibtemplate/dist/auro-bibtemplate.d.ts +50 -0
  6. package/components/bibtemplate/dist/buttonVersion.d.ts +2 -0
  7. package/components/bibtemplate/dist/headerVersion.d.ts +2 -0
  8. package/components/bibtemplate/dist/iconVersion.d.ts +2 -0
  9. package/components/bibtemplate/dist/index.d.ts +2 -0
  10. package/components/bibtemplate/dist/index.js +1940 -0
  11. package/components/bibtemplate/dist/registered.js +1940 -0
  12. package/components/bibtemplate/dist/styles/color-css.d.ts +2 -0
  13. package/components/bibtemplate/dist/styles/style-css.d.ts +2 -0
  14. package/components/bibtemplate/dist/styles/tokens-css.d.ts +2 -0
  15. package/components/checkbox/README.md +142 -0
  16. package/components/checkbox/demo/api.html +61 -0
  17. package/components/checkbox/demo/api.js +17 -0
  18. package/components/checkbox/demo/api.md +436 -0
  19. package/components/checkbox/demo/api.min.js +1870 -0
  20. package/components/checkbox/demo/index.html +57 -0
  21. package/components/checkbox/demo/index.js +8 -0
  22. package/components/checkbox/demo/index.md +327 -0
  23. package/components/checkbox/demo/index.min.js +1845 -0
  24. package/components/checkbox/demo/readme.html +57 -0
  25. package/components/checkbox/demo/readme.md +142 -0
  26. package/components/checkbox/dist/auro-checkbox-group.d.ts +166 -0
  27. package/components/checkbox/dist/auro-checkbox.d.ts +136 -0
  28. package/components/checkbox/dist/helptextVersion.d.ts +2 -0
  29. package/components/checkbox/dist/index.d.ts +3 -0
  30. package/components/checkbox/dist/index.js +1794 -0
  31. package/components/checkbox/dist/registered.js +1795 -0
  32. package/components/checkbox/dist/styles/auro-checkbox-css.d.ts +2 -0
  33. package/components/checkbox/dist/styles/auro-checkbox-group-css.d.ts +2 -0
  34. package/components/checkbox/dist/styles/color-css.d.ts +2 -0
  35. package/components/checkbox/dist/styles/colorGroup-css.d.ts +2 -0
  36. package/components/checkbox/dist/styles/tokens-css.d.ts +2 -0
  37. package/components/combobox/README.md +154 -0
  38. package/components/combobox/demo/api.html +63 -0
  39. package/components/combobox/demo/api.js +36 -0
  40. package/components/combobox/demo/api.md +1326 -0
  41. package/components/combobox/demo/api.min.js +18691 -0
  42. package/components/combobox/demo/index.html +63 -0
  43. package/components/combobox/demo/index.js +26 -0
  44. package/components/combobox/demo/index.md +725 -0
  45. package/components/combobox/demo/index.min.js +18545 -0
  46. package/components/combobox/demo/readme.html +57 -0
  47. package/components/combobox/demo/readme.md +154 -0
  48. package/components/combobox/dist/auro-combobox.d.ts +434 -0
  49. package/components/combobox/dist/bibtemplateVersion.d.ts +2 -0
  50. package/components/combobox/dist/dropdownVersion.d.ts +2 -0
  51. package/components/combobox/dist/index.d.ts +2 -0
  52. package/components/combobox/dist/index.js +16999 -0
  53. package/components/combobox/dist/inputVersion.d.ts +2 -0
  54. package/components/combobox/dist/registered.js +17001 -0
  55. package/components/combobox/dist/styles/emphasized/style-css.d.ts +2 -0
  56. package/components/combobox/dist/styles/snowflake/style-css.d.ts +2 -0
  57. package/components/combobox/dist/styles/style-css.d.ts +2 -0
  58. package/components/counter/README.md +146 -0
  59. package/components/counter/demo/api.html +61 -0
  60. package/components/counter/demo/api.js +20 -0
  61. package/components/counter/demo/api.md +730 -0
  62. package/components/counter/demo/api.min.js +10406 -0
  63. package/components/counter/demo/index.html +61 -0
  64. package/components/counter/demo/index.js +21 -0
  65. package/components/counter/demo/index.md +401 -0
  66. package/components/counter/demo/index.min.js +10370 -0
  67. package/components/counter/demo/readme.html +57 -0
  68. package/components/counter/demo/readme.md +146 -0
  69. package/components/counter/dist/auro-counter-button.d.ts +14 -0
  70. package/components/counter/dist/auro-counter-group.d.ts +386 -0
  71. package/components/counter/dist/auro-counter-wrapper.d.ts +22 -0
  72. package/components/counter/dist/auro-counter.d.ts +113 -0
  73. package/components/counter/dist/bibtemplateVersion.d.ts +2 -0
  74. package/components/counter/dist/dropdownVersion.d.ts +2 -0
  75. package/components/counter/dist/helptextVersion.d.ts +2 -0
  76. package/components/counter/dist/iconVersion.d.ts +2 -0
  77. package/components/counter/dist/index.d.ts +3 -0
  78. package/components/counter/dist/index.js +10313 -0
  79. package/components/counter/dist/registered.js +10314 -0
  80. package/components/counter/dist/styles/color-css.d.ts +2 -0
  81. package/components/counter/dist/styles/counter-button-color-css.d.ts +2 -0
  82. package/components/counter/dist/styles/counter-button-css.d.ts +2 -0
  83. package/components/counter/dist/styles/counter-group-css.d.ts +2 -0
  84. package/components/counter/dist/styles/counter-wrapper-color-css.d.ts +2 -0
  85. package/components/counter/dist/styles/counter-wrapper-css.d.ts +2 -0
  86. package/components/counter/dist/styles/shapeSize-css.d.ts +2 -0
  87. package/components/counter/dist/styles/style-css.d.ts +2 -0
  88. package/components/counter/dist/styles/tokens-css.d.ts +2 -0
  89. package/components/datepicker/README.md +141 -0
  90. package/components/datepicker/demo/api.html +63 -0
  91. package/components/datepicker/demo/api.js +35 -0
  92. package/components/datepicker/demo/api.md +1529 -0
  93. package/components/datepicker/demo/api.min.js +29755 -0
  94. package/components/datepicker/demo/index.html +62 -0
  95. package/components/datepicker/demo/index.js +19 -0
  96. package/components/datepicker/demo/index.md +204 -0
  97. package/components/datepicker/demo/index.min.js +29476 -0
  98. package/components/datepicker/demo/readme.html +57 -0
  99. package/components/datepicker/demo/readme.md +141 -0
  100. package/components/datepicker/dist/auro-calendar-cell.d.ts +163 -0
  101. package/components/datepicker/dist/auro-calendar-month.d.ts +20 -0
  102. package/components/datepicker/dist/auro-calendar.d.ts +133 -0
  103. package/components/datepicker/dist/auro-datepicker.d.ts +625 -0
  104. package/components/datepicker/dist/bibtemplateVersion.d.ts +2 -0
  105. package/components/datepicker/dist/buttonVersion.d.ts +2 -0
  106. package/components/datepicker/dist/dropdownVersion.d.ts +2 -0
  107. package/components/datepicker/dist/iconVersion.d.ts +2 -0
  108. package/components/datepicker/dist/index.d.ts +2 -0
  109. package/components/datepicker/dist/index.js +29406 -0
  110. package/components/datepicker/dist/inputVersion.d.ts +2 -0
  111. package/components/datepicker/dist/popoverVersion.d.ts +2 -0
  112. package/components/datepicker/dist/registered.js +29406 -0
  113. package/components/datepicker/dist/styles/classic/color-css.d.ts +2 -0
  114. package/components/datepicker/dist/styles/classic/style-css.d.ts +2 -0
  115. package/components/datepicker/dist/styles/color-calendar-css.d.ts +2 -0
  116. package/components/datepicker/dist/styles/color-cell-css.d.ts +2 -0
  117. package/components/datepicker/dist/styles/color-css.d.ts +2 -0
  118. package/components/datepicker/dist/styles/color-month-css.d.ts +2 -0
  119. package/components/datepicker/dist/styles/shapeSize-css.d.ts +2 -0
  120. package/components/datepicker/dist/styles/snowflake/color-css.d.ts +2 -0
  121. package/components/datepicker/dist/styles/snowflake/style-css.d.ts +2 -0
  122. package/components/datepicker/dist/styles/style-auro-calendar-cell-css.d.ts +2 -0
  123. package/components/datepicker/dist/styles/style-auro-calendar-css.d.ts +2 -0
  124. package/components/datepicker/dist/styles/style-auro-calendar-month-css.d.ts +2 -0
  125. package/components/datepicker/dist/styles/style-css.d.ts +2 -0
  126. package/components/datepicker/dist/styles/tokens-css.d.ts +2 -0
  127. package/components/datepicker/dist/utilities.d.ts +78 -0
  128. package/components/datepicker/dist/utilitiesCalendar.d.ts +38 -0
  129. package/components/datepicker/dist/utilitiesCalendarRender.d.ts +50 -0
  130. package/components/datepicker/dist/vendor/wc-range-datepicker/day.d.ts +5 -0
  131. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-calendar.d.ts +60 -0
  132. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-cell.d.ts +1 -0
  133. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker.d.ts +57 -0
  134. package/components/dropdown/README.md +144 -0
  135. package/components/dropdown/demo/api.html +63 -0
  136. package/components/dropdown/demo/api.js +21 -0
  137. package/components/dropdown/demo/api.md +1266 -0
  138. package/components/dropdown/demo/api.min.js +4442 -0
  139. package/components/dropdown/demo/index.html +61 -0
  140. package/components/dropdown/demo/index.js +19 -0
  141. package/components/dropdown/demo/index.md +337 -0
  142. package/components/dropdown/demo/index.min.js +4405 -0
  143. package/components/dropdown/demo/readme.html +57 -0
  144. package/components/dropdown/demo/readme.md +144 -0
  145. package/components/dropdown/dist/auro-dropdown.d.ts +425 -0
  146. package/components/dropdown/dist/auro-dropdownBib.d.ts +68 -0
  147. package/components/dropdown/dist/dropdownVersion.d.ts +2 -0
  148. package/components/dropdown/dist/helptextVersion.d.ts +2 -0
  149. package/components/dropdown/dist/iconVersion.d.ts +2 -0
  150. package/components/dropdown/dist/index.d.ts +2 -0
  151. package/components/dropdown/dist/index.js +4350 -0
  152. package/components/dropdown/dist/registered.js +4350 -0
  153. package/components/dropdown/dist/styles/classic/bibColors-css.d.ts +2 -0
  154. package/components/dropdown/dist/styles/classic/bibStyles-css.d.ts +2 -0
  155. package/components/dropdown/dist/styles/classic/color-css.d.ts +2 -0
  156. package/components/dropdown/dist/styles/classic/style-css.d.ts +2 -0
  157. package/components/dropdown/dist/styles/color-css.d.ts +2 -0
  158. package/components/dropdown/dist/styles/emphasized/style-css.d.ts +2 -0
  159. package/components/dropdown/dist/styles/shapeSize-css.d.ts +2 -0
  160. package/components/dropdown/dist/styles/snowflake/style-css.d.ts +2 -0
  161. package/components/dropdown/dist/styles/style-css.d.ts +2 -0
  162. package/components/dropdown/dist/styles/tokens-css.d.ts +2 -0
  163. package/components/form/README.md +142 -0
  164. package/components/form/demo/api.html +56 -0
  165. package/components/form/demo/api.js +3 -0
  166. package/components/form/demo/api.md +51 -0
  167. package/components/form/demo/api.min.js +638 -0
  168. package/components/form/demo/autocomplete.html +31 -0
  169. package/components/form/demo/index.html +57 -0
  170. package/components/form/demo/index.js +4 -0
  171. package/components/form/demo/index.md +403 -0
  172. package/components/form/demo/index.min.js +639 -0
  173. package/components/form/demo/readme.html +57 -0
  174. package/components/form/demo/readme.md +142 -0
  175. package/components/form/demo/registerDemoDeps.js +23 -0
  176. package/components/form/demo/working.html +124 -0
  177. package/components/form/dist/auro-form.d.ts +223 -0
  178. package/components/form/dist/index.d.ts +2 -0
  179. package/components/form/dist/index.js +614 -0
  180. package/components/form/dist/registered.d.ts +1 -0
  181. package/components/form/dist/registered.js +614 -0
  182. package/components/form/dist/styles/style-css.d.ts +2 -0
  183. package/components/helptext/dist/auro-helptext.d.ts +59 -0
  184. package/components/helptext/dist/index.d.ts +2 -0
  185. package/components/helptext/dist/index.js +207 -0
  186. package/components/helptext/dist/registered.js +207 -0
  187. package/components/helptext/dist/styles/color-css.d.ts +2 -0
  188. package/components/helptext/dist/styles/style-css.d.ts +2 -0
  189. package/components/helptext/dist/styles/tokens-css.d.ts +2 -0
  190. package/components/input/README.md +139 -0
  191. package/components/input/demo/api.html +48 -0
  192. package/components/input/demo/api.js +29 -0
  193. package/components/input/demo/api.md +1366 -0
  194. package/components/input/demo/api.min.js +8542 -0
  195. package/components/input/demo/index.html +49 -0
  196. package/components/input/demo/index.js +20 -0
  197. package/components/input/demo/index.md +270 -0
  198. package/components/input/demo/index.min.js +8461 -0
  199. package/components/input/demo/readme.html +57 -0
  200. package/components/input/demo/readme.md +139 -0
  201. package/components/input/dist/auro-input.d.ts +167 -0
  202. package/components/input/dist/base-input.d.ts +566 -0
  203. package/components/input/dist/buttonVersion.d.ts +2 -0
  204. package/components/input/dist/helptextVersion.d.ts +2 -0
  205. package/components/input/dist/i18n.d.ts +18 -0
  206. package/components/input/dist/iconVersion.d.ts +2 -0
  207. package/components/input/dist/index.d.ts +2 -0
  208. package/components/input/dist/index.js +8367 -0
  209. package/components/input/dist/registered.js +8367 -0
  210. package/components/input/dist/styles/classic/color-css.d.ts +2 -0
  211. package/components/input/dist/styles/classic/style-css.d.ts +2 -0
  212. package/components/input/dist/styles/color-css.d.ts +2 -0
  213. package/components/input/dist/styles/default/borders-css.d.ts +2 -0
  214. package/components/input/dist/styles/default/color-css.d.ts +2 -0
  215. package/components/input/dist/styles/default/mixins-css.d.ts +2 -0
  216. package/components/input/dist/styles/default/notificationIcons-css.d.ts +2 -0
  217. package/components/input/dist/styles/default/style-css.d.ts +2 -0
  218. package/components/input/dist/styles/emphasized/color-css.d.ts +2 -0
  219. package/components/input/dist/styles/emphasized/style-css.d.ts +2 -0
  220. package/components/input/dist/styles/mixins-css.d.ts +2 -0
  221. package/components/input/dist/styles/shapeSize-css.d.ts +2 -0
  222. package/components/input/dist/styles/snowflake/style-css.d.ts +2 -0
  223. package/components/input/dist/styles/style-css.d.ts +2 -0
  224. package/components/input/dist/styles/tokens-css.d.ts +2 -0
  225. package/components/input/dist/utilities.d.ts +25 -0
  226. package/components/layoutElement/dist/auroElement.d.ts +34 -0
  227. package/components/layoutElement/dist/index.d.ts +2 -0
  228. package/components/layoutElement/dist/index.js +98 -0
  229. package/components/layoutElement/dist/registered.js +98 -0
  230. package/components/menu/README.md +145 -0
  231. package/components/menu/demo/api.html +62 -0
  232. package/components/menu/demo/api.js +27 -0
  233. package/components/menu/demo/api.md +1011 -0
  234. package/components/menu/demo/api.min.js +1762 -0
  235. package/components/menu/demo/index.html +58 -0
  236. package/components/menu/demo/index.js +28 -0
  237. package/components/menu/demo/index.md +61 -0
  238. package/components/menu/demo/index.min.js +1708 -0
  239. package/components/menu/demo/readme.html +57 -0
  240. package/components/menu/demo/readme.md +145 -0
  241. package/components/menu/dist/auro-menu-utils.d.ts +34 -0
  242. package/components/menu/dist/auro-menu.d.ts +246 -0
  243. package/components/menu/dist/auro-menuoption.d.ts +81 -0
  244. package/components/menu/dist/dropdownVersion.d.ts +2 -0
  245. package/components/menu/dist/iconVersion.d.ts +2 -0
  246. package/components/menu/dist/index.d.ts +4 -0
  247. package/components/menu/dist/index.js +1691 -0
  248. package/components/menu/dist/registered.js +1651 -0
  249. package/components/menu/dist/styles/default/color-menu-css.d.ts +2 -0
  250. package/components/menu/dist/styles/default/color-menuoption-css.d.ts +2 -0
  251. package/components/menu/dist/styles/default/style-menu-css.d.ts +2 -0
  252. package/components/menu/dist/styles/default/style-menuoption-css.d.ts +2 -0
  253. package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
  254. package/components/radio/README.md +137 -0
  255. package/components/radio/demo/api.html +59 -0
  256. package/components/radio/demo/api.js +19 -0
  257. package/components/radio/demo/api.md +602 -0
  258. package/components/radio/demo/api.min.js +1951 -0
  259. package/components/radio/demo/index.html +56 -0
  260. package/components/radio/demo/index.js +8 -0
  261. package/components/radio/demo/index.md +150 -0
  262. package/components/radio/demo/index.min.js +1908 -0
  263. package/components/radio/demo/readme.html +57 -0
  264. package/components/radio/demo/readme.md +137 -0
  265. package/components/radio/dist/auro-radio-group.d.ts +194 -0
  266. package/components/radio/dist/auro-radio.d.ts +147 -0
  267. package/components/radio/dist/helptextVersion.d.ts +2 -0
  268. package/components/radio/dist/index.d.ts +3 -0
  269. package/components/radio/dist/index.js +1857 -0
  270. package/components/radio/dist/registered.js +1858 -0
  271. package/components/radio/dist/styles/auro-radio-group-css.d.ts +2 -0
  272. package/components/radio/dist/styles/color-css.d.ts +2 -0
  273. package/components/radio/dist/styles/groupColor-css.d.ts +2 -0
  274. package/components/radio/dist/styles/style-css.d.ts +2 -0
  275. package/components/radio/dist/styles/tokens-css.d.ts +2 -0
  276. package/components/select/README.md +145 -0
  277. package/components/select/demo/api.html +77 -0
  278. package/components/select/demo/api.js +35 -0
  279. package/components/select/demo/api.md +1413 -0
  280. package/components/select/demo/api.min.js +10502 -0
  281. package/components/select/demo/index.html +73 -0
  282. package/components/select/demo/index.js +9 -0
  283. package/components/select/demo/index.md +1151 -0
  284. package/components/select/demo/index.min.js +10390 -0
  285. package/components/select/demo/readme.html +57 -0
  286. package/components/select/demo/readme.md +145 -0
  287. package/components/select/dist/auro-select.d.ts +512 -0
  288. package/components/select/dist/bibtemplateVersion.d.ts +2 -0
  289. package/components/select/dist/dropdownVersion.d.ts +2 -0
  290. package/components/select/dist/helptextVersion.d.ts +2 -0
  291. package/components/select/dist/index.d.ts +2 -0
  292. package/components/select/dist/index.js +8898 -0
  293. package/components/select/dist/registered.js +8898 -0
  294. package/components/select/dist/styles/shapeSize-css.d.ts +2 -0
  295. package/components/select/dist/styles/style-css.d.ts +2 -0
  296. package/components/select/dist/styles/tokens-css.d.ts +2 -0
  297. package/package.json +218 -0
@@ -0,0 +1,566 @@
1
+ /**
2
+ * Auro-input provides users a way to enter data into a text field.
3
+ *
4
+ * @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
5
+ * @attr id
6
+ *
7
+ * @slot ariaLabel.clear - Sets aria-label on clear button for screenreader to read
8
+ * @slot ariaLabel.password.show - Sets aria-label on password button to toggle on showing password
9
+ * @slot ariaLabel.password.hide - Sets aria-label on password button to toggle off showing password
10
+ * @slot helpText - Sets the help text displayed below the input.
11
+ * @slot label - Sets the label text for the input.
12
+ * @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
13
+ * @slot displayValue - Allows custom HTML content to display in place of the value when the input is not focused.
14
+ *
15
+ * @csspart wrapper - Use for customizing the style of the root element
16
+ * @csspart label - Use for customizing the style of the label element
17
+ * @csspart helpText - Use for customizing the style of the helpText element
18
+ * @csspart input - Use for customizing the style of the input element
19
+ * @csspart accentIcon - Use for customizing the style of the accentIcon element (e.g. credit card icon, calendar icon)
20
+ * @csspart iconContainer - Use for customizing the style of the iconContainer (e.g. X icon for clearing input value)
21
+ * @csspart accent-left - Use for customizing the style of the left accent element (e.g. padding, margin)
22
+ * @csspart accent-right - Use for customizing the style of the right accent element (e.g. padding, margin)
23
+ * @event input - Event fires when the value of an `auro-input` has been changed.
24
+ * @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` value has changed.
25
+ */
26
+ export default class BaseInput extends AuroElement {
27
+ static get properties(): {
28
+ /**
29
+ * The value for the role attribute.
30
+ */
31
+ a11yRole: {
32
+ type: StringConstructor;
33
+ reflect: boolean;
34
+ };
35
+ /**
36
+ * The value for the aria-expanded attribute.
37
+ */
38
+ a11yExpanded: {
39
+ type: BooleanConstructor;
40
+ reflect: boolean;
41
+ };
42
+ /**
43
+ * The value for the aria-controls attribute.
44
+ */
45
+ a11yControls: {
46
+ type: StringConstructor;
47
+ reflect: boolean;
48
+ };
49
+ /**
50
+ * If set, the label will remain fixed in the active position.
51
+ */
52
+ activeLabel: {
53
+ type: BooleanConstructor;
54
+ reflect: boolean;
55
+ };
56
+ /**
57
+ * 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].
58
+ */
59
+ autocapitalize: {
60
+ type: StringConstructor;
61
+ reflect: boolean;
62
+ };
63
+ /**
64
+ * An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
65
+ */
66
+ autocomplete: {
67
+ type: StringConstructor;
68
+ reflect: boolean;
69
+ };
70
+ /**
71
+ * When set to `off`, stops iOS from auto-correcting words when typed into a text box.
72
+ */
73
+ autocorrect: {
74
+ type: StringConstructor;
75
+ reflect: boolean;
76
+ };
77
+ /**
78
+ * If set, disables the input.
79
+ */
80
+ disabled: {
81
+ type: BooleanConstructor;
82
+ reflect: boolean;
83
+ };
84
+ /**
85
+ * When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
86
+ */
87
+ error: {
88
+ type: StringConstructor;
89
+ reflect: boolean;
90
+ };
91
+ /**
92
+ * Contains the help text message for the current validity error.
93
+ */
94
+ errorMessage: {
95
+ type: StringConstructor;
96
+ };
97
+ /**
98
+ * Specifies the input mask format.
99
+ */
100
+ format: {
101
+ type: StringConstructor;
102
+ reflect: boolean;
103
+ };
104
+ /**
105
+ * 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.
106
+ */
107
+ icon: {
108
+ type: BooleanConstructor;
109
+ reflect: boolean;
110
+ };
111
+ /** Exposes inputmode attribute for input. */
112
+ inputmode: {
113
+ type: StringConstructor;
114
+ reflect: boolean;
115
+ };
116
+ /**
117
+ * Defines the language of an element.
118
+ */
119
+ lang: {
120
+ type: StringConstructor;
121
+ reflect: boolean;
122
+ };
123
+ /**
124
+ * The maximum value allowed. This only applies for inputs with a type of `number` and all date formats.
125
+ */
126
+ max: {
127
+ type: StringConstructor;
128
+ };
129
+ /**
130
+ * The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher.
131
+ */
132
+ maxLength: {
133
+ type: NumberConstructor;
134
+ reflect: boolean;
135
+ };
136
+ /**
137
+ * The minimum value allowed. This only applies for inputs with a type of `number` and all date formats.
138
+ */
139
+ min: {
140
+ type: StringConstructor;
141
+ };
142
+ /**
143
+ * 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`.
144
+ */
145
+ minLength: {
146
+ type: NumberConstructor;
147
+ reflect: boolean;
148
+ };
149
+ /**
150
+ * Populates the `name` attribute on the input.
151
+ */
152
+ name: {
153
+ type: StringConstructor;
154
+ reflect: boolean;
155
+ };
156
+ /**
157
+ * Sets styles for nested operation - removes borders, hides help + error text, and
158
+ * hides accents.
159
+ */
160
+ nested: {
161
+ type: BooleanConstructor;
162
+ reflect: boolean;
163
+ };
164
+ /**
165
+ * If set, disables auto-validation on blur.
166
+ */
167
+ noValidate: {
168
+ type: BooleanConstructor;
169
+ reflect: boolean;
170
+ };
171
+ /**
172
+ * Sets onDark styles on input.
173
+ */
174
+ onDark: {
175
+ type: BooleanConstructor;
176
+ reflect: boolean;
177
+ };
178
+ /**
179
+ * Specifies a regular expression the form control's value should match.
180
+ */
181
+ pattern: {
182
+ type: StringConstructor;
183
+ reflect: boolean;
184
+ };
185
+ /**
186
+ * Define custom placeholder text.
187
+ */
188
+ placeholder: {
189
+ type: StringConstructor;
190
+ reflect: boolean;
191
+ };
192
+ /**
193
+ * Makes the input read-only, but can be set programmatically.
194
+ */
195
+ readonly: {
196
+ type: BooleanConstructor;
197
+ reflect: boolean;
198
+ };
199
+ /**
200
+ * Populates the `required` attribute on the input. Used for client-side validation.
201
+ */
202
+ required: {
203
+ type: BooleanConstructor;
204
+ reflect: boolean;
205
+ };
206
+ /**
207
+ * @ignore
208
+ */
209
+ showPassword: {
210
+ state: boolean;
211
+ };
212
+ /**
213
+ * Sets a custom help text message to display for all validityStates.
214
+ */
215
+ setCustomValidity: {
216
+ type: StringConstructor;
217
+ };
218
+ /**
219
+ * Custom help text message to display when validity = `badInput`.
220
+ */
221
+ setCustomValidityBadInput: {
222
+ type: StringConstructor;
223
+ };
224
+ /**
225
+ * Custom help text message to display when validity = `customError`.
226
+ */
227
+ setCustomValidityCustomError: {
228
+ type: StringConstructor;
229
+ };
230
+ /**
231
+ * Custom help text message to display for the declared element `type` and type validity fails.
232
+ */
233
+ setCustomValidityForType: {
234
+ type: StringConstructor;
235
+ };
236
+ /**
237
+ * Custom help text message to display when validity = `rangeOverflow`.
238
+ */
239
+ setCustomValidityRangeOverflow: {
240
+ type: StringConstructor;
241
+ };
242
+ /**
243
+ * Custom help text message to display when validity = `rangeUnderflow`.
244
+ */
245
+ setCustomValidityRangeUnderflow: {
246
+ type: StringConstructor;
247
+ };
248
+ /**
249
+ * Custom help text message to display when validity = `tooLong`.
250
+ */
251
+ setCustomValidityTooLong: {
252
+ type: StringConstructor;
253
+ };
254
+ /**
255
+ * Custom help text message to display when validity = `tooShort`.
256
+ */
257
+ setCustomValidityTooShort: {
258
+ type: StringConstructor;
259
+ };
260
+ /**
261
+ * Custom help text message to display when validity = `valueMissing`.
262
+ */
263
+ setCustomValidityValueMissing: {
264
+ type: StringConstructor;
265
+ };
266
+ /**
267
+ * Simple makes the input render without a border.
268
+ */
269
+ simple: {
270
+ type: BooleanConstructor;
271
+ reflect: boolean;
272
+ };
273
+ /**
274
+ * Custom help text message for email type validity.
275
+ */
276
+ customValidityTypeEmail: {
277
+ type: StringConstructor;
278
+ };
279
+ /**
280
+ * 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`.
281
+ */
282
+ spellcheck: {
283
+ type: StringConstructor;
284
+ reflect: boolean;
285
+ };
286
+ /**
287
+ * Populates the `type` attribute on the input. Allowed values are `password`, `email`, `credit-card`, `date`, `tel` or `text`. If given value is not allowed or set, defaults to `text`.
288
+ */
289
+ type: {
290
+ type: StringConstructor;
291
+ reflect: boolean;
292
+ };
293
+ /**
294
+ * Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
295
+ */
296
+ value: {
297
+ type: StringConstructor;
298
+ };
299
+ /**
300
+ * Sets validation mode to re-eval with each input.
301
+ */
302
+ validateOnInput: {
303
+ type: BooleanConstructor;
304
+ };
305
+ /**
306
+ * Specifies the `validityState` this element is in.
307
+ */
308
+ validity: {
309
+ type: StringConstructor;
310
+ reflect: boolean;
311
+ };
312
+ /**
313
+ * Indicates whether the input is in a dirty state (has been interacted with).
314
+ * @type {boolean}
315
+ * @default false
316
+ * @private
317
+ */
318
+ touched: boolean;
319
+ /**
320
+ * The id for input node.
321
+ * @private
322
+ */
323
+ inputId: {
324
+ type: StringConstructor;
325
+ reflect: boolean;
326
+ attribute: boolean;
327
+ };
328
+ layout: {
329
+ type: StringConstructor;
330
+ attribute: string;
331
+ reflect: boolean;
332
+ };
333
+ };
334
+ activeLabel: boolean;
335
+ icon: boolean;
336
+ disabled: boolean;
337
+ max: any;
338
+ maxLength: any;
339
+ min: any;
340
+ minLength: any;
341
+ noValidate: boolean;
342
+ onDark: boolean;
343
+ required: boolean;
344
+ setCustomValidityForType: string;
345
+ /**
346
+ * @private
347
+ */
348
+ private shape;
349
+ /**
350
+ * @private
351
+ */
352
+ private size;
353
+ /**
354
+ * Internal Defaults.
355
+ * @private
356
+ * @returns {void}
357
+ */
358
+ private privateDefaults;
359
+ touched: boolean;
360
+ util: AuroInputUtilities;
361
+ validation: AuroFormValidation;
362
+ inputIconName: any;
363
+ showPassword: any;
364
+ validationCCLength: number;
365
+ hasValue: boolean;
366
+ label: string;
367
+ placeholderStr: any;
368
+ allowedInputTypes: string[];
369
+ /**
370
+ * Credit Card is not included as this caused cursor placement issues.
371
+ * The Safari issue.
372
+ */
373
+ setSelectionInputTypes: string[];
374
+ dateFormatMap: {
375
+ 'mm/dd/yyyy': string;
376
+ 'dd/mm/yyyy': string;
377
+ 'yyyy/mm/dd': string;
378
+ 'yyyy/dd/mm': string;
379
+ 'mm/yy': string;
380
+ 'yy/mm': string;
381
+ 'mm/yyyy': string;
382
+ 'yyyy/mm': string;
383
+ yy: string;
384
+ yyyy: string;
385
+ mm: string;
386
+ dd: string;
387
+ 'dd/mm': string;
388
+ 'mm/dd': string;
389
+ };
390
+ uniqueId: string;
391
+ firstUpdated(): void;
392
+ wrapperElement: Element;
393
+ inputElement: HTMLInputElement;
394
+ labelElement: HTMLLabelElement;
395
+ inputId: string;
396
+ format: any;
397
+ ValidityMessageOverride: any;
398
+ /**
399
+ * @private
400
+ * @returns {void} Sets the default help text for the input.
401
+ */
402
+ private setCustomHelpTextMessage;
403
+ /**
404
+ * LitElement lifecycle method. Called after the DOM has been updated.
405
+ * @param {Map<string, any>} changedProperties - Keys are the names of changed properties, values are the corresponding previous values.
406
+ * @returns {void}
407
+ */
408
+ updated(changedProperties: Map<string, any>): void;
409
+ autocorrect: any;
410
+ /**
411
+ * @private
412
+ * @returns {void} Notify validity state changed via event.
413
+ */
414
+ private notifyValidityChange;
415
+ /**
416
+ * Sets up IMasks and logic based on auto-formatting requirements.
417
+ * @private
418
+ * @returns {void}
419
+ */
420
+ private configureAutoFormatting;
421
+ maskInstance: import("imask").InputMask<import("imask").FactoryArg>;
422
+ value: string;
423
+ formattedDate: any;
424
+ comparisonDate: any;
425
+ /**
426
+ * @private
427
+ * @returns {string}
428
+ */
429
+ private definePattern;
430
+ /**
431
+ * Required to convert SVG icons from data to HTML string.
432
+ * @private
433
+ * @param {string} icon HTML string for requested icon.
434
+ * @returns {object} Appended HTML for SVG.
435
+ */
436
+ private getIconAsHtml;
437
+ /**
438
+ * Sends event notifying that the input has changed it's value.
439
+ * @private
440
+ * @returns {void}
441
+ */
442
+ private notifyValueChanged;
443
+ /**
444
+ * Handles clicking on the auro-input anywhere outside of the HTML5 input and still moving focus in.
445
+ * @private
446
+ * @return {void}
447
+ */
448
+ private handleClick;
449
+ /**
450
+ * Function to set element focus.
451
+ * @return {void}
452
+ */
453
+ focus(): void;
454
+ /**
455
+ * Handles event of clearing input content by clicking the X icon.
456
+ * @private
457
+ * @return {void}
458
+ */
459
+ private handleClickClear;
460
+ /**
461
+ * @private
462
+ * @return {void}
463
+ */
464
+ private handleInput;
465
+ /**
466
+ * Function to support @focusin event.
467
+ * @private
468
+ * @return {void}
469
+ */
470
+ private handleFocusin;
471
+ hasFocus: boolean;
472
+ /**
473
+ * Function to support @focusout event.
474
+ * @private
475
+ * @return {void}
476
+ */
477
+ private handleFocusout;
478
+ /**
479
+ * Function to support @blur event.
480
+ * @private
481
+ * @return {void}
482
+ */
483
+ private handleBlur;
484
+ /**
485
+ * Returns focused element, even if it's in the shadow DOM.
486
+ * @private
487
+ * @param {Object} root - Element to check for focus.
488
+ * @returns {Object}
489
+ */
490
+ private getActiveElement;
491
+ /**
492
+ * Validates value.
493
+ * @param {boolean} [force=false] - Whether to force validation.
494
+ */
495
+ validate(force?: boolean): void;
496
+ /**
497
+ * Resets component to initial state, including resetting the touched state and validity.
498
+ * @returns {void}
499
+ */
500
+ reset(): void;
501
+ /**
502
+ * Clears the input value.
503
+ */
504
+ clear(): void;
505
+ /**
506
+ * Sets configuration data used elsewhere based on the `type` attribute.
507
+ * @private
508
+ * @returns {void}
509
+ */
510
+ private configureDataForType;
511
+ lengthForType: any;
512
+ inputmode: any;
513
+ /**
514
+ * Validates against list of supported this.allowedInputTypes; return type=text if invalid request.
515
+ * @private
516
+ * @param {string} type Value entered into component prop.
517
+ * @returns {string} Iterates over allowed types array.
518
+ */
519
+ private getInputType;
520
+ /**
521
+ * Determines default help text string.
522
+ * @private
523
+ * @returns {string} Evaluates pre-determined help text.
524
+ */
525
+ private getHelpText;
526
+ /**
527
+ * Function to support show-password feature.
528
+ * @private
529
+ * @returns {void}
530
+ */
531
+ private handleClickShowPassword;
532
+ /**
533
+ * Support placeholder text.
534
+ * @private
535
+ * @returns {void}
536
+ */
537
+ private getPlaceholder;
538
+ /**
539
+ * Defines placement of input icon based on type, used with classMap.
540
+ * @private
541
+ * @returns {boolean}
542
+ */
543
+ private defineInputIcon;
544
+ /**
545
+ * Defines padding of input label based on type, used with classMap.
546
+ * @private
547
+ * @returns {boolean}
548
+ */
549
+ private defineLabelPadding;
550
+ /**
551
+ * Function to support credit-card feature type.
552
+ * @private
553
+ * @returns {void}
554
+ */
555
+ private processCreditCard;
556
+ errorMessage: any;
557
+ /**
558
+ * Function to support credit-card feature type.
559
+ * @private
560
+ * @returns {object} JSON with data for credit card formatting.
561
+ */
562
+ private matchInputValueToCreditCard;
563
+ }
564
+ import { AuroElement } from '../../layoutElement/src/auroElement.js';
565
+ import { AuroInputUtilities } from "./utilities.js";
566
+ import AuroFormValidation from '@auro-formkit/form-validation';
@@ -0,0 +1,2 @@
1
+ declare const _default: "11.0.0";
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: "1.0.0";
2
+ export default _default;
@@ -0,0 +1,18 @@
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;
@@ -0,0 +1,2 @@
1
+ declare const _default: "8.0.4";
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { AuroInput };
2
+ import { AuroInput } from './auro-input.js';