@aurodesignsystem/auro-formkit 2.0.0-beta.42 → 2.0.0-beta.43

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 (1017) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/NOTICE +2 -0
  3. package/README.md +116 -48
  4. package/components/bibtemplate/dist/auro-bibtemplate.d.ts +0 -1
  5. package/components/bibtemplate/dist/headerVersion.d.ts +0 -1
  6. package/components/bibtemplate/dist/iconVersion.d.ts +0 -1
  7. package/components/bibtemplate/dist/index.d.ts +0 -1
  8. package/components/bibtemplate/dist/index.js +8 -10
  9. package/components/bibtemplate/dist/registered.js +790 -0
  10. package/components/bibtemplate/dist/styles/color-css.d.ts +0 -1
  11. package/components/bibtemplate/dist/styles/style-css.d.ts +0 -1
  12. package/components/bibtemplate/dist/styles/tokens-css.d.ts +0 -1
  13. package/components/checkbox/README.md +1 -1
  14. package/components/checkbox/demo/api.min.js +38 -229
  15. package/components/checkbox/demo/index.html +49 -0
  16. package/components/checkbox/demo/index.min.js +38 -229
  17. package/components/checkbox/dist/auro-checkbox-group.d.ts +0 -1
  18. package/components/checkbox/dist/auro-checkbox.d.ts +0 -1
  19. package/components/checkbox/dist/index.d.ts +0 -1
  20. package/components/checkbox/dist/index.js +38 -232
  21. package/components/checkbox/dist/registered.js +1032 -0
  22. package/components/checkbox/dist/styles/auro-checkbox-css.d.ts +0 -1
  23. package/components/checkbox/dist/styles/auro-checkbox-group-css.d.ts +0 -1
  24. package/components/checkbox/dist/styles/color-css.d.ts +0 -1
  25. package/components/checkbox/dist/styles/colorGroup-css.d.ts +0 -1
  26. package/components/checkbox/dist/styles/tokens-css.d.ts +0 -1
  27. package/components/combobox/README.md +4 -4
  28. package/components/combobox/demo/api.js +1 -1
  29. package/components/combobox/demo/api.min.js +409 -2166
  30. package/components/combobox/demo/index.html +57 -0
  31. package/components/combobox/demo/index.js +1 -1
  32. package/components/combobox/demo/index.min.js +409 -2166
  33. package/components/combobox/dist/auro-combobox.d.ts +0 -1
  34. package/components/combobox/dist/bibtemplateVersion.d.ts +0 -1
  35. package/components/combobox/dist/dropdownVersion.d.ts +0 -1
  36. package/components/combobox/dist/index.d.ts +0 -1
  37. package/components/combobox/dist/index.js +452 -2211
  38. package/components/combobox/dist/inputVersion.d.ts +0 -1
  39. package/components/combobox/dist/registered.js +9716 -0
  40. package/components/combobox/dist/styles/style-css.d.ts +0 -1
  41. package/components/counter/README.md +1 -1
  42. package/components/counter/demo/api.js +1 -1
  43. package/components/counter/demo/api.min.js +128 -321
  44. package/components/counter/demo/index.html +53 -0
  45. package/components/counter/demo/index.min.js +128 -321
  46. package/components/counter/dist/auro-counter-button.d.ts +0 -1
  47. package/components/counter/dist/auro-counter-group.d.ts +0 -1
  48. package/components/counter/dist/auro-counter-wrapper.d.ts +0 -1
  49. package/components/counter/dist/auro-counter.d.ts +0 -1
  50. package/components/counter/dist/dropdownVersion.d.ts +0 -1
  51. package/components/counter/dist/iconVersion.d.ts +0 -1
  52. package/components/counter/dist/index.d.ts +0 -1
  53. package/components/counter/dist/index.js +128 -324
  54. package/components/counter/dist/registered.js +5158 -0
  55. package/components/counter/dist/styles/color-css.d.ts +0 -1
  56. package/components/counter/dist/styles/counter-button-color-css.d.ts +0 -1
  57. package/components/counter/dist/styles/counter-button-css.d.ts +0 -1
  58. package/components/counter/dist/styles/counter-button-tokens-css.d.ts +0 -1
  59. package/components/counter/dist/styles/counter-group-css.d.ts +0 -1
  60. package/components/counter/dist/styles/counter-wrapper-color-css.d.ts +0 -1
  61. package/components/counter/dist/styles/counter-wrapper-css.d.ts +0 -1
  62. package/components/counter/dist/styles/style-css.d.ts +0 -1
  63. package/components/counter/dist/styles/tokens-css.d.ts +0 -1
  64. package/components/datepicker/README.md +4 -4
  65. package/components/datepicker/demo/api.js +1 -1
  66. package/components/datepicker/demo/api.min.js +338 -728
  67. package/components/datepicker/demo/index.html +57 -0
  68. package/components/datepicker/demo/index.min.js +338 -728
  69. package/components/datepicker/dist/auro-calendar-cell.d.ts +0 -1
  70. package/components/datepicker/dist/auro-calendar-month.d.ts +0 -1
  71. package/components/datepicker/dist/auro-calendar.d.ts +0 -1
  72. package/components/datepicker/dist/auro-datepicker.d.ts +0 -1
  73. package/components/datepicker/dist/dropdownVersion.d.ts +0 -1
  74. package/components/datepicker/dist/index.d.ts +0 -1
  75. package/components/datepicker/dist/index.js +338 -730
  76. package/components/datepicker/dist/inputVersion.d.ts +0 -1
  77. package/components/datepicker/dist/popoverVersion.d.ts +0 -1
  78. package/components/datepicker/dist/registered.js +18935 -0
  79. package/components/datepicker/dist/styles/color-calendar-css.d.ts +0 -1
  80. package/components/datepicker/dist/styles/color-cell-css.d.ts +0 -1
  81. package/components/datepicker/dist/styles/color-css.d.ts +0 -1
  82. package/components/datepicker/dist/styles/color-month-css.d.ts +0 -1
  83. package/components/datepicker/dist/styles/style-auro-calendar-cell-css.d.ts +0 -1
  84. package/components/datepicker/dist/styles/style-auro-calendar-css.d.ts +0 -1
  85. package/components/datepicker/dist/styles/style-auro-calendar-month-css.d.ts +0 -1
  86. package/components/datepicker/dist/styles/style-css.d.ts +0 -1
  87. package/components/datepicker/dist/styles/tokens-css.d.ts +0 -1
  88. package/components/datepicker/dist/utilities.d.ts +0 -1
  89. package/components/datepicker/dist/utilitiesCalendar.d.ts +0 -1
  90. package/components/datepicker/dist/utilitiesCalendarRender.d.ts +0 -1
  91. package/components/datepicker/dist/vendor/wc-range-datepicker/day.d.ts +0 -1
  92. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-calendar.d.ts +0 -1
  93. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-cell.d.ts +0 -1
  94. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker.d.ts +0 -1
  95. package/components/dropdown/README.md +1 -1
  96. package/components/dropdown/demo/api.js +1 -1
  97. package/components/dropdown/demo/api.min.js +76 -267
  98. package/components/dropdown/demo/index.html +53 -0
  99. package/components/dropdown/demo/index.min.js +76 -267
  100. package/components/dropdown/dist/auro-dropdown.d.ts +0 -1
  101. package/components/dropdown/dist/auro-dropdownBib.d.ts +0 -1
  102. package/components/dropdown/dist/dropdownVersion.d.ts +0 -1
  103. package/components/dropdown/dist/iconVersion.d.ts +0 -1
  104. package/components/dropdown/dist/index.d.ts +0 -1
  105. package/components/dropdown/dist/index.js +76 -269
  106. package/components/dropdown/dist/registered.js +3167 -0
  107. package/components/dropdown/dist/styles/bibColors-css.d.ts +0 -1
  108. package/components/dropdown/dist/styles/bibStyles-css.d.ts +0 -1
  109. package/components/dropdown/dist/styles/color-css.d.ts +0 -1
  110. package/components/dropdown/dist/styles/style-css.d.ts +0 -1
  111. package/components/dropdown/dist/styles/tokens-css.d.ts +0 -1
  112. package/components/form/README.md +1 -1
  113. package/components/form/demo/api.js +1 -1
  114. package/components/form/demo/api.min.js +42 -5
  115. package/components/form/demo/index.html +48 -0
  116. package/components/form/demo/index.min.js +42 -5
  117. package/components/form/dist/auro-form.d.ts +16 -2
  118. package/components/form/dist/index.d.ts +0 -1
  119. package/components/form/dist/index.js +42 -7
  120. package/components/form/dist/registered.d.ts +1 -0
  121. package/components/form/dist/registered.js +632 -0
  122. package/components/form/dist/styles/style-css.d.ts +0 -1
  123. package/components/helptext/dist/auro-helptext.d.ts +0 -1
  124. package/components/helptext/dist/index.d.ts +0 -1
  125. package/components/helptext/dist/index.js +4 -6
  126. package/components/helptext/dist/registered.js +222 -0
  127. package/components/helptext/dist/styles/color-css.d.ts +0 -1
  128. package/components/helptext/dist/styles/style-css.d.ts +0 -1
  129. package/components/helptext/dist/styles/tokens-css.d.ts +0 -1
  130. package/components/input/README.md +1 -1
  131. package/components/input/demo/api.min.js +57 -248
  132. package/components/input/demo/index.html +41 -0
  133. package/components/input/demo/index.min.js +57 -248
  134. package/components/input/dist/auro-input.d.ts +0 -1
  135. package/components/input/dist/base-input.d.ts +0 -1
  136. package/components/input/dist/buttonVersion.d.ts +0 -1
  137. package/components/input/dist/i18n.d.ts +0 -1
  138. package/components/input/dist/iconVersion.d.ts +0 -1
  139. package/components/input/dist/index.d.ts +0 -1
  140. package/components/input/dist/index.js +57 -250
  141. package/components/input/dist/registered.js +4254 -0
  142. package/components/input/dist/styles/borders-css.d.ts +0 -1
  143. package/components/input/dist/styles/color-css.d.ts +0 -1
  144. package/components/input/dist/styles/input-css.d.ts +0 -1
  145. package/components/input/dist/styles/label-css.d.ts +0 -1
  146. package/components/input/dist/styles/mixins-css.d.ts +0 -1
  147. package/components/input/dist/styles/notificationIcons-css.d.ts +0 -1
  148. package/components/input/dist/styles/style-css.d.ts +0 -1
  149. package/components/input/dist/styles/tokens-css.d.ts +0 -1
  150. package/components/menu/README.md +1 -1
  151. package/components/menu/demo/api.js +1 -1
  152. package/components/menu/demo/api.min.js +9 -9
  153. package/components/menu/demo/index.html +50 -0
  154. package/components/menu/demo/index.min.js +9 -9
  155. package/components/menu/dist/auro-menu-utils.d.ts +0 -1
  156. package/components/menu/dist/auro-menu.d.ts +0 -1
  157. package/components/menu/dist/auro-menuoption.d.ts +0 -1
  158. package/components/{combobox/dist/formkit/auro-dropdownVersion.d.ts → menu/dist/dropdownVersion.d.ts} +0 -1
  159. package/components/menu/dist/iconVersion.d.ts +0 -1
  160. package/components/menu/dist/index.d.ts +0 -1
  161. package/components/menu/dist/index.js +9 -12
  162. package/components/menu/dist/registered.js +1510 -0
  163. package/components/menu/dist/styles/color-menu-css.d.ts +0 -1
  164. package/components/menu/dist/styles/color-menuoption-css.d.ts +0 -1
  165. package/components/menu/dist/styles/style-menu-css.d.ts +0 -1
  166. package/components/menu/dist/styles/style-menuoption-css.d.ts +0 -1
  167. package/components/menu/dist/styles/tokens-css.d.ts +0 -1
  168. package/components/radio/README.md +1 -1
  169. package/components/radio/demo/api.min.js +34 -225
  170. package/components/radio/demo/index.html +48 -0
  171. package/components/radio/demo/index.min.js +34 -225
  172. package/components/radio/dist/auro-radio-group.d.ts +0 -1
  173. package/components/radio/dist/auro-radio.d.ts +0 -1
  174. package/components/radio/dist/index.d.ts +0 -1
  175. package/components/radio/dist/index.js +34 -228
  176. package/components/radio/dist/registered.js +1149 -0
  177. package/components/radio/dist/styles/auro-radio-group-css.d.ts +0 -1
  178. package/components/radio/dist/styles/color-css.d.ts +0 -1
  179. package/components/radio/dist/styles/groupColor-css.d.ts +0 -1
  180. package/components/radio/dist/styles/style-css.d.ts +0 -1
  181. package/components/radio/dist/styles/tokens-css.d.ts +0 -1
  182. package/components/select/README.md +3 -3
  183. package/components/select/demo/api.js +1 -1
  184. package/components/select/demo/api.min.js +234 -1796
  185. package/components/select/demo/index.html +49 -0
  186. package/components/select/demo/index.js +1 -1
  187. package/components/select/demo/index.min.js +234 -1796
  188. package/components/select/dist/auro-select.d.ts +0 -1
  189. package/components/select/dist/dropdownVersion.d.ts +0 -1
  190. package/components/select/dist/index.d.ts +0 -1
  191. package/components/select/dist/index.js +206 -1770
  192. package/components/select/dist/registered.js +4367 -0
  193. package/components/select/dist/styles/color-css.d.ts +0 -1
  194. package/components/select/dist/styles/style-css.d.ts +0 -1
  195. package/components/select/dist/styles/tokens-css.d.ts +0 -1
  196. package/package.json +113 -9
  197. package/.husky/commit-msg +0 -4
  198. package/.husky/pre-commit +0 -3
  199. package/.turbo/cache/04e52430125e8954-meta.json +0 -1
  200. package/.turbo/cache/04e52430125e8954.tar.zst +0 -0
  201. package/.turbo/cache/0593ea8b5b3ed321-meta.json +0 -1
  202. package/.turbo/cache/0593ea8b5b3ed321.tar.zst +0 -0
  203. package/.turbo/cache/068b8eef3688b4e2-meta.json +0 -1
  204. package/.turbo/cache/068b8eef3688b4e2.tar.zst +0 -0
  205. package/.turbo/cache/06c6468593bc10ab-meta.json +0 -1
  206. package/.turbo/cache/06c6468593bc10ab.tar.zst +0 -0
  207. package/.turbo/cache/0c48a4d7b5aac928-meta.json +0 -1
  208. package/.turbo/cache/0c48a4d7b5aac928.tar.zst +0 -0
  209. package/.turbo/cache/1959dd19c8cca5b3-meta.json +0 -1
  210. package/.turbo/cache/1959dd19c8cca5b3.tar.zst +0 -0
  211. package/.turbo/cache/1c16e59f30927b15-meta.json +0 -1
  212. package/.turbo/cache/1c16e59f30927b15.tar.zst +0 -0
  213. package/.turbo/cache/29ac8c4304c43ba8-meta.json +0 -1
  214. package/.turbo/cache/29ac8c4304c43ba8.tar.zst +0 -0
  215. package/.turbo/cache/2b46337c7a6faa1f-meta.json +0 -1
  216. package/.turbo/cache/2b46337c7a6faa1f.tar.zst +0 -0
  217. package/.turbo/cache/33b12bddab905466-meta.json +0 -1
  218. package/.turbo/cache/33b12bddab905466.tar.zst +0 -0
  219. package/.turbo/cache/3e068f9ea52e35fd-meta.json +0 -1
  220. package/.turbo/cache/3e068f9ea52e35fd.tar.zst +0 -0
  221. package/.turbo/cache/3f6725da0ddcb57a-meta.json +0 -1
  222. package/.turbo/cache/3f6725da0ddcb57a.tar.zst +0 -0
  223. package/.turbo/cache/3fa3b39e63c49920-meta.json +0 -1
  224. package/.turbo/cache/3fa3b39e63c49920.tar.zst +0 -0
  225. package/.turbo/cache/3fbb4335136fe72b-meta.json +0 -1
  226. package/.turbo/cache/3fbb4335136fe72b.tar.zst +0 -0
  227. package/.turbo/cache/4d32cb975704a7bc-meta.json +0 -1
  228. package/.turbo/cache/4d32cb975704a7bc.tar.zst +0 -0
  229. package/.turbo/cache/504dc5478398bc23-meta.json +0 -1
  230. package/.turbo/cache/504dc5478398bc23.tar.zst +0 -0
  231. package/.turbo/cache/5736b4ba6916fd8d-meta.json +0 -1
  232. package/.turbo/cache/5736b4ba6916fd8d.tar.zst +0 -0
  233. package/.turbo/cache/5aae6a716a40ac0d-meta.json +0 -1
  234. package/.turbo/cache/5aae6a716a40ac0d.tar.zst +0 -0
  235. package/.turbo/cache/618b3075ce2d9a61-meta.json +0 -1
  236. package/.turbo/cache/618b3075ce2d9a61.tar.zst +0 -0
  237. package/.turbo/cache/67c13dfc4fd939fc-meta.json +0 -1
  238. package/.turbo/cache/67c13dfc4fd939fc.tar.zst +0 -0
  239. package/.turbo/cache/68fe65245fb34e68-meta.json +0 -1
  240. package/.turbo/cache/68fe65245fb34e68.tar.zst +0 -0
  241. package/.turbo/cache/6a25a3c0fc92f44d-meta.json +0 -1
  242. package/.turbo/cache/6a25a3c0fc92f44d.tar.zst +0 -0
  243. package/.turbo/cache/6cd6d76ac166da16-meta.json +0 -1
  244. package/.turbo/cache/6cd6d76ac166da16.tar.zst +0 -0
  245. package/.turbo/cache/71cd21072abc2990-meta.json +0 -1
  246. package/.turbo/cache/71cd21072abc2990.tar.zst +0 -0
  247. package/.turbo/cache/7b4e0f3ba43fedf0-meta.json +0 -1
  248. package/.turbo/cache/7b4e0f3ba43fedf0.tar.zst +0 -0
  249. package/.turbo/cache/7b9897d3439462f4-meta.json +0 -1
  250. package/.turbo/cache/7b9897d3439462f4.tar.zst +0 -0
  251. package/.turbo/cache/80a42a1ee43a7b11-meta.json +0 -1
  252. package/.turbo/cache/80a42a1ee43a7b11.tar.zst +0 -0
  253. package/.turbo/cache/80bda930b819e4e5-meta.json +0 -1
  254. package/.turbo/cache/80bda930b819e4e5.tar.zst +0 -0
  255. package/.turbo/cache/826ecc96865e3b2b-meta.json +0 -1
  256. package/.turbo/cache/826ecc96865e3b2b.tar.zst +0 -0
  257. package/.turbo/cache/8a66291a4385f56d-meta.json +0 -1
  258. package/.turbo/cache/8a66291a4385f56d.tar.zst +0 -0
  259. package/.turbo/cache/8b33dd53ac78ffcb-meta.json +0 -1
  260. package/.turbo/cache/8b33dd53ac78ffcb.tar.zst +0 -0
  261. package/.turbo/cache/922ac9eb482cf470-meta.json +0 -1
  262. package/.turbo/cache/922ac9eb482cf470.tar.zst +0 -0
  263. package/.turbo/cache/939cf3ccc40e9ab0-meta.json +0 -1
  264. package/.turbo/cache/939cf3ccc40e9ab0.tar.zst +0 -0
  265. package/.turbo/cache/997795fcad6346cf-meta.json +0 -1
  266. package/.turbo/cache/997795fcad6346cf.tar.zst +0 -0
  267. package/.turbo/cache/9d39077f59442e6d-meta.json +0 -1
  268. package/.turbo/cache/9d39077f59442e6d.tar.zst +0 -0
  269. package/.turbo/cache/9f33c2699df2acc2-meta.json +0 -1
  270. package/.turbo/cache/9f33c2699df2acc2.tar.zst +0 -0
  271. package/.turbo/cache/a95cdb7b2836627c-meta.json +0 -1
  272. package/.turbo/cache/a95cdb7b2836627c.tar.zst +0 -0
  273. package/.turbo/cache/aa7a71eea03e0057-meta.json +0 -1
  274. package/.turbo/cache/aa7a71eea03e0057.tar.zst +0 -0
  275. package/.turbo/cache/ac01a85fedf6d42a-meta.json +0 -1
  276. package/.turbo/cache/ac01a85fedf6d42a.tar.zst +0 -0
  277. package/.turbo/cache/b0b5371ee9e6fd7b-meta.json +0 -1
  278. package/.turbo/cache/b0b5371ee9e6fd7b.tar.zst +0 -0
  279. package/.turbo/cache/b21472a210e5d253-meta.json +0 -1
  280. package/.turbo/cache/b21472a210e5d253.tar.zst +0 -0
  281. package/.turbo/cache/ba6844de212fdfc5-meta.json +0 -1
  282. package/.turbo/cache/ba6844de212fdfc5.tar.zst +0 -0
  283. package/.turbo/cache/bb95b8c7cc483fe7-meta.json +0 -1
  284. package/.turbo/cache/bb95b8c7cc483fe7.tar.zst +0 -0
  285. package/.turbo/cache/be89ec729b2d7aa1-meta.json +0 -1
  286. package/.turbo/cache/be89ec729b2d7aa1.tar.zst +0 -0
  287. package/.turbo/cache/c0c0f7ab71b548fe-meta.json +0 -1
  288. package/.turbo/cache/c0c0f7ab71b548fe.tar.zst +0 -0
  289. package/.turbo/cache/c4b442aa3a612c5a-meta.json +0 -1
  290. package/.turbo/cache/c4b442aa3a612c5a.tar.zst +0 -0
  291. package/.turbo/cache/c833fd369811f0b3-meta.json +0 -1
  292. package/.turbo/cache/c833fd369811f0b3.tar.zst +0 -0
  293. package/.turbo/cache/cc1bb0ba75999fd5-meta.json +0 -1
  294. package/.turbo/cache/cc1bb0ba75999fd5.tar.zst +0 -0
  295. package/.turbo/cache/cc999fcae80b9892-meta.json +0 -1
  296. package/.turbo/cache/cc999fcae80b9892.tar.zst +0 -0
  297. package/.turbo/cache/cf739f73c4d81043-meta.json +0 -1
  298. package/.turbo/cache/cf739f73c4d81043.tar.zst +0 -0
  299. package/.turbo/cache/cf87272227a0d544-meta.json +0 -1
  300. package/.turbo/cache/cf87272227a0d544.tar.zst +0 -0
  301. package/.turbo/cache/d09e82feba2c48a3-meta.json +0 -1
  302. package/.turbo/cache/d09e82feba2c48a3.tar.zst +0 -0
  303. package/.turbo/cache/d264bb58130e3915-meta.json +0 -1
  304. package/.turbo/cache/d264bb58130e3915.tar.zst +0 -0
  305. package/.turbo/cache/d4fda50b9aa326d9-meta.json +0 -1
  306. package/.turbo/cache/d4fda50b9aa326d9.tar.zst +0 -0
  307. package/.turbo/cache/da0461631780f1e1-meta.json +0 -1
  308. package/.turbo/cache/da0461631780f1e1.tar.zst +0 -0
  309. package/.turbo/cache/dbdfe30495790f74-meta.json +0 -1
  310. package/.turbo/cache/dbdfe30495790f74.tar.zst +0 -0
  311. package/.turbo/cache/dea41fd4a13eb241-meta.json +0 -1
  312. package/.turbo/cache/dea41fd4a13eb241.tar.zst +0 -0
  313. package/.turbo/cache/e229b033acee0336-meta.json +0 -1
  314. package/.turbo/cache/e229b033acee0336.tar.zst +0 -0
  315. package/.turbo/cache/ed401f9a734e292c-meta.json +0 -1
  316. package/.turbo/cache/ed401f9a734e292c.tar.zst +0 -0
  317. package/.turbo/cache/efafac21cf262b2c-meta.json +0 -1
  318. package/.turbo/cache/efafac21cf262b2c.tar.zst +0 -0
  319. package/.turbo/cache/f20df212682f7978-meta.json +0 -1
  320. package/.turbo/cache/f20df212682f7978.tar.zst +0 -0
  321. package/.turbo/cache/f272ad05432871ac-meta.json +0 -1
  322. package/.turbo/cache/f272ad05432871ac.tar.zst +0 -0
  323. package/.vscode/settings.json +0 -3
  324. package/components/bibtemplate/.stylelintrc.json +0 -3
  325. package/components/bibtemplate/.turbo/turbo-build$colon$sass.log +0 -24
  326. package/components/bibtemplate/.turbo/turbo-build$colon$version.log +0 -10
  327. package/components/bibtemplate/.turbo/turbo-build.log +0 -49
  328. package/components/bibtemplate/.turbo/turbo-bundler.log +0 -7
  329. package/components/bibtemplate/.turbo/turbo-postCss$colon$component.log +0 -4
  330. package/components/bibtemplate/.turbo/turbo-sass$colon$render.log +0 -22
  331. package/components/bibtemplate/.turbo/turbo-types.log +0 -4
  332. package/components/bibtemplate/dist/auro-bibtemplate.d.ts.map +0 -1
  333. package/components/bibtemplate/dist/headerVersion.d.ts.map +0 -1
  334. package/components/bibtemplate/dist/iconVersion.d.ts.map +0 -1
  335. package/components/bibtemplate/dist/index.d.ts.map +0 -1
  336. package/components/bibtemplate/dist/styles/color-css.d.ts.map +0 -1
  337. package/components/bibtemplate/dist/styles/style-css.d.ts.map +0 -1
  338. package/components/bibtemplate/dist/styles/tokens-css.d.ts.map +0 -1
  339. package/components/bibtemplate/node_modules/chalk/package.json +0 -83
  340. package/components/bibtemplate/node_modules/chalk/readme.md +0 -297
  341. package/components/bibtemplate/node_modules/chalk/source/index.d.ts +0 -325
  342. package/components/bibtemplate/node_modules/chalk/source/index.js +0 -225
  343. package/components/bibtemplate/node_modules/chalk/source/utilities.js +0 -33
  344. package/components/bibtemplate/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
  345. package/components/bibtemplate/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
  346. package/components/bibtemplate/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
  347. package/components/bibtemplate/node_modules/chalk/source/vendor/supports-color/browser.js +0 -34
  348. package/components/bibtemplate/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
  349. package/components/bibtemplate/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
  350. package/components/bibtemplate/package.json +0 -60
  351. package/components/bibtemplate/src/auro-bibtemplate.js +0 -137
  352. package/components/bibtemplate/src/headerVersion.js +0 -1
  353. package/components/bibtemplate/src/iconVersion.js +0 -1
  354. package/components/bibtemplate/src/index.js +0 -6
  355. package/components/bibtemplate/src/styles/color-css.js +0 -2
  356. package/components/bibtemplate/src/styles/color.css +0 -1
  357. package/components/bibtemplate/src/styles/color.scss +0 -0
  358. package/components/bibtemplate/src/styles/style-css.js +0 -2
  359. package/components/bibtemplate/src/styles/style.css +0 -58
  360. package/components/bibtemplate/src/styles/style.scss +0 -62
  361. package/components/bibtemplate/src/styles/tokens-css.js +0 -2
  362. package/components/bibtemplate/src/styles/tokens.css +0 -3
  363. package/components/bibtemplate/src/styles/tokens.scss +0 -5
  364. package/components/checkbox/.stylelintrc.json +0 -3
  365. package/components/checkbox/.turbo/turbo-build$colon$sass.log +0 -98
  366. package/components/checkbox/.turbo/turbo-build.log +0 -184
  367. package/components/checkbox/.turbo/turbo-postCss$colon$component.log +0 -4
  368. package/components/checkbox/.turbo/turbo-sass$colon$render.log +0 -34
  369. package/components/checkbox/dist/auro-checkbox-group.d.ts.map +0 -1
  370. package/components/checkbox/dist/auro-checkbox.d.ts.map +0 -1
  371. package/components/checkbox/dist/index.d.ts.map +0 -1
  372. package/components/checkbox/dist/styles/auro-checkbox-css.d.ts.map +0 -1
  373. package/components/checkbox/dist/styles/auro-checkbox-group-css.d.ts.map +0 -1
  374. package/components/checkbox/dist/styles/color-css.d.ts.map +0 -1
  375. package/components/checkbox/dist/styles/colorGroup-css.d.ts.map +0 -1
  376. package/components/checkbox/dist/styles/tokens-css.d.ts.map +0 -1
  377. package/components/checkbox/node_modules/chalk/package.json +0 -83
  378. package/components/checkbox/node_modules/chalk/readme.md +0 -325
  379. package/components/checkbox/node_modules/chalk/source/index.d.ts +0 -320
  380. package/components/checkbox/node_modules/chalk/source/index.js +0 -225
  381. package/components/checkbox/node_modules/chalk/source/utilities.js +0 -33
  382. package/components/checkbox/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
  383. package/components/checkbox/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
  384. package/components/checkbox/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
  385. package/components/checkbox/node_modules/chalk/source/vendor/supports-color/browser.js +0 -30
  386. package/components/checkbox/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
  387. package/components/checkbox/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
  388. package/components/checkbox/package.json +0 -69
  389. package/components/checkbox/src/auro-checkbox-group.js +0 -370
  390. package/components/checkbox/src/auro-checkbox.js +0 -214
  391. package/components/checkbox/src/index.js +0 -8
  392. package/components/checkbox/src/styles/auro-checkbox-css.js +0 -2
  393. package/components/checkbox/src/styles/auro-checkbox-group-css.js +0 -2
  394. package/components/checkbox/src/styles/auro-checkbox-group.css +0 -26
  395. package/components/checkbox/src/styles/auro-checkbox-group.scss +0 -38
  396. package/components/checkbox/src/styles/auro-checkbox.css +0 -123
  397. package/components/checkbox/src/styles/auro-checkbox.scss +0 -100
  398. package/components/checkbox/src/styles/color-css.js +0 -2
  399. package/components/checkbox/src/styles/color.css +0 -84
  400. package/components/checkbox/src/styles/color.scss +0 -118
  401. package/components/checkbox/src/styles/colorGroup-css.js +0 -2
  402. package/components/checkbox/src/styles/colorGroup.css +0 -8
  403. package/components/checkbox/src/styles/colorGroup.scss +0 -16
  404. package/components/checkbox/src/styles/tokens-css.js +0 -2
  405. package/components/checkbox/src/styles/tokens.css +0 -8
  406. package/components/checkbox/src/styles/tokens.scss +0 -10
  407. package/components/combobox/.stylelintrc.json +0 -3
  408. package/components/combobox/.turbo/turbo-build$colon$sass.log +0 -46
  409. package/components/combobox/.turbo/turbo-build.log +0 -167
  410. package/components/combobox/.turbo/turbo-postCss$colon$component.log +0 -4
  411. package/components/combobox/.turbo/turbo-sass$colon$render.log +0 -10
  412. package/components/combobox/dist/auro-combobox.d.ts.map +0 -1
  413. package/components/combobox/dist/bibtemplateVersion.d.ts.map +0 -1
  414. package/components/combobox/dist/dropdownVersion.d.ts.map +0 -1
  415. package/components/combobox/dist/formkit/auro-dropdownVersion.d.ts.map +0 -1
  416. package/components/combobox/dist/formkit/auro-inputVersion.d.ts +0 -3
  417. package/components/combobox/dist/formkit/auro-inputVersion.d.ts.map +0 -1
  418. package/components/combobox/dist/index.d.ts.map +0 -1
  419. package/components/combobox/dist/inputVersion.d.ts.map +0 -1
  420. package/components/combobox/dist/styles/style-css.d.ts.map +0 -1
  421. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/.husky/pre-commit +0 -1
  422. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/CHANGELOG.md +0 -863
  423. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/README.md +0 -109
  424. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/auroElement/README.md +0 -86
  425. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/auroElement/_auroElement.scss +0 -45
  426. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/auroElement/auroElement.js +0 -38
  427. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/auroElement/auroElement.mjs +0 -38
  428. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/bundled/essentials+fv.css +0 -110
  429. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/bundled/essentials.css +0 -106
  430. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/demoWrapper.css +0 -8
  431. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/elementDemoStyles.css +0 -813
  432. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/package.json +0 -134
  433. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/packageScripts/postinstall.mjs +0 -39
  434. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_animation.scss +0 -30
  435. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_blockquote.scss +0 -46
  436. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_breakpoints.scss +0 -155
  437. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_core.scss +0 -25
  438. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_essentials.scss +0 -267
  439. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_focus-visible.scss +0 -36
  440. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_fonts.scss +0 -50
  441. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_grids.scss +0 -395
  442. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_headings.scss +0 -255
  443. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_normalize.scss +0 -663
  444. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_picture.scss +0 -31
  445. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_utilityClasses.scss +0 -22
  446. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/bundled/essentials+fv.scss +0 -19
  447. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/bundled/essentials.scss +0 -18
  448. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/componentSupport/_anchor-roleButton.scss +0 -32
  449. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/componentSupport/_anchor-roleTab.scss +0 -26
  450. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/componentSupport/_containedButtons.scss +0 -59
  451. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/componentSupport/_table.scss +0 -54
  452. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/componentSupport/_tablist.scss +0 -37
  453. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/elementDemoStyles/README.md +0 -5
  454. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/elementDemoStyles/demoWrapper.scss +0 -18
  455. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/elementDemoStyles/elementDemoStyles.scss +0 -123
  456. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/libSupport/_deprecated.scss +0 -16
  457. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/libSupport/_manageScope.scss +0 -42
  458. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_displayProperties.scss +0 -142
  459. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_fontStyles.scss +0 -151
  460. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_inset.scss +0 -188
  461. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_layoutProperties.scss +0 -75
  462. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_listProperties.scss +0 -176
  463. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_responsive.scss +0 -249
  464. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_typeProperties.scss +0 -49
  465. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityFunctions/_capitalize.scss +0 -20
  466. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityFunctions/_contains.scss +0 -26
  467. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityFunctions/_map-deep-get.scss +0 -29
  468. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityMixins/_anchor-roleButton.scss +0 -76
  469. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityMixins/_anchor-roleTab.scss +0 -86
  470. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityMixins/_insetUtility.scss +0 -9
  471. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityMixins/_layoutPropertiesGenerator.scss +0 -75
  472. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityMixins/_spacingUtility.scss +0 -96
  473. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityVariables/_important.scss +0 -20
  474. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityVariables/_spacing-options.scss +0 -13
  475. package/components/combobox/node_modules/@rollup/plugin-node-resolve/README.md +0 -293
  476. package/components/combobox/node_modules/@rollup/plugin-node-resolve/dist/cjs/index.js +0 -1377
  477. package/components/combobox/node_modules/@rollup/plugin-node-resolve/dist/es/index.js +0 -1370
  478. package/components/combobox/node_modules/@rollup/plugin-node-resolve/dist/es/package.json +0 -1
  479. package/components/combobox/node_modules/@rollup/plugin-node-resolve/package.json +0 -89
  480. package/components/combobox/node_modules/@rollup/plugin-node-resolve/types/index.d.ts +0 -115
  481. package/components/combobox/node_modules/chalk/package.json +0 -83
  482. package/components/combobox/node_modules/chalk/readme.md +0 -297
  483. package/components/combobox/node_modules/chalk/source/index.d.ts +0 -325
  484. package/components/combobox/node_modules/chalk/source/index.js +0 -225
  485. package/components/combobox/node_modules/chalk/source/utilities.js +0 -33
  486. package/components/combobox/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
  487. package/components/combobox/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
  488. package/components/combobox/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
  489. package/components/combobox/node_modules/chalk/source/vendor/supports-color/browser.js +0 -34
  490. package/components/combobox/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
  491. package/components/combobox/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
  492. package/components/combobox/package.json +0 -67
  493. package/components/combobox/src/auro-combobox.js +0 -925
  494. package/components/combobox/src/bibtemplateVersion.js +0 -1
  495. package/components/combobox/src/dropdownVersion.js +0 -1
  496. package/components/combobox/src/formkit/auro-dropdownVersion.js +0 -1
  497. package/components/combobox/src/formkit/auro-inputVersion.js +0 -1
  498. package/components/combobox/src/index.js +0 -6
  499. package/components/combobox/src/inputVersion.js +0 -1
  500. package/components/combobox/src/styles/style-css.js +0 -2
  501. package/components/combobox/src/styles/style.css +0 -56
  502. package/components/combobox/src/styles/style.scss +0 -38
  503. package/components/counter/.stylelintrc.json +0 -3
  504. package/components/counter/.turbo/turbo-build$colon$sass.log +0 -269
  505. package/components/counter/.turbo/turbo-build$colon$version.log +0 -10
  506. package/components/counter/.turbo/turbo-build.log +0 -402
  507. package/components/counter/.turbo/turbo-bundler.log +0 -22
  508. package/components/counter/.turbo/turbo-postCss$colon$component.log +0 -4
  509. package/components/counter/.turbo/turbo-sass$colon$render.log +0 -58
  510. package/components/counter/.turbo/turbo-types.log +0 -4
  511. package/components/counter/dist/auro-counter-button.d.ts.map +0 -1
  512. package/components/counter/dist/auro-counter-group.d.ts.map +0 -1
  513. package/components/counter/dist/auro-counter-wrapper.d.ts.map +0 -1
  514. package/components/counter/dist/auro-counter.d.ts.map +0 -1
  515. package/components/counter/dist/dropdownVersion.d.ts.map +0 -1
  516. package/components/counter/dist/iconVersion.d.ts.map +0 -1
  517. package/components/counter/dist/index.d.ts.map +0 -1
  518. package/components/counter/dist/styles/color-css.d.ts.map +0 -1
  519. package/components/counter/dist/styles/counter-button-color-css.d.ts.map +0 -1
  520. package/components/counter/dist/styles/counter-button-css.d.ts.map +0 -1
  521. package/components/counter/dist/styles/counter-button-tokens-css.d.ts.map +0 -1
  522. package/components/counter/dist/styles/counter-group-css.d.ts.map +0 -1
  523. package/components/counter/dist/styles/counter-wrapper-color-css.d.ts.map +0 -1
  524. package/components/counter/dist/styles/counter-wrapper-css.d.ts.map +0 -1
  525. package/components/counter/dist/styles/style-css.d.ts.map +0 -1
  526. package/components/counter/dist/styles/tokens-css.d.ts.map +0 -1
  527. package/components/counter/node_modules/chalk/package.json +0 -83
  528. package/components/counter/node_modules/chalk/readme.md +0 -325
  529. package/components/counter/node_modules/chalk/source/index.d.ts +0 -320
  530. package/components/counter/node_modules/chalk/source/index.js +0 -225
  531. package/components/counter/node_modules/chalk/source/utilities.js +0 -33
  532. package/components/counter/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
  533. package/components/counter/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
  534. package/components/counter/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
  535. package/components/counter/node_modules/chalk/source/vendor/supports-color/browser.js +0 -30
  536. package/components/counter/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
  537. package/components/counter/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
  538. package/components/counter/package.json +0 -59
  539. package/components/counter/src/auro-counter-button.js +0 -42
  540. package/components/counter/src/auro-counter-group.js +0 -333
  541. package/components/counter/src/auro-counter-wrapper.js +0 -54
  542. package/components/counter/src/auro-counter.js +0 -342
  543. package/components/counter/src/dropdownVersion.js +0 -1
  544. package/components/counter/src/iconVersion.js +0 -1
  545. package/components/counter/src/index.js +0 -8
  546. package/components/counter/src/styles/color-css.js +0 -2
  547. package/components/counter/src/styles/color.css +0 -29
  548. package/components/counter/src/styles/color.scss +0 -49
  549. package/components/counter/src/styles/counter-button-color-css.js +0 -2
  550. package/components/counter/src/styles/counter-button-color.css +0 -11
  551. package/components/counter/src/styles/counter-button-color.scss +0 -23
  552. package/components/counter/src/styles/counter-button-css.js +0 -2
  553. package/components/counter/src/styles/counter-button-tokens-css.js +0 -2
  554. package/components/counter/src/styles/counter-button-tokens.css +0 -6
  555. package/components/counter/src/styles/counter-button-tokens.scss +0 -8
  556. package/components/counter/src/styles/counter-button.css +0 -186
  557. package/components/counter/src/styles/counter-button.scss +0 -84
  558. package/components/counter/src/styles/counter-group-css.js +0 -2
  559. package/components/counter/src/styles/counter-group.css +0 -18
  560. package/components/counter/src/styles/counter-group.scss +0 -32
  561. package/components/counter/src/styles/counter-wrapper-color-css.js +0 -2
  562. package/components/counter/src/styles/counter-wrapper-color.css +0 -4
  563. package/components/counter/src/styles/counter-wrapper-color.scss +0 -19
  564. package/components/counter/src/styles/counter-wrapper-css.js +0 -2
  565. package/components/counter/src/styles/counter-wrapper.css +0 -15
  566. package/components/counter/src/styles/counter-wrapper.scss +0 -29
  567. package/components/counter/src/styles/style-css.js +0 -2
  568. package/components/counter/src/styles/style.css +0 -53
  569. package/components/counter/src/styles/style.scss +0 -73
  570. package/components/counter/src/styles/tokens-css.js +0 -2
  571. package/components/counter/src/styles/tokens.css +0 -12
  572. package/components/counter/src/styles/tokens.scss +0 -25
  573. package/components/datepicker/.stylelintrc.json +0 -3
  574. package/components/datepicker/.turbo/turbo-build$colon$sass.log +0 -352
  575. package/components/datepicker/.turbo/turbo-build.log +0 -492
  576. package/components/datepicker/.turbo/turbo-postCss$colon$component.log +0 -4
  577. package/components/datepicker/.turbo/turbo-sass$colon$render.log +0 -58
  578. package/components/datepicker/dist/auro-calendar-cell.d.ts.map +0 -1
  579. package/components/datepicker/dist/auro-calendar-month.d.ts.map +0 -1
  580. package/components/datepicker/dist/auro-calendar.d.ts.map +0 -1
  581. package/components/datepicker/dist/auro-datepicker.d.ts.map +0 -1
  582. package/components/datepicker/dist/dropdownVersion.d.ts.map +0 -1
  583. package/components/datepicker/dist/formkit/auro-dropdownVersion.d.ts +0 -3
  584. package/components/datepicker/dist/formkit/auro-dropdownVersion.d.ts.map +0 -1
  585. package/components/datepicker/dist/formkit/auro-inputVersion.d.ts +0 -3
  586. package/components/datepicker/dist/formkit/auro-inputVersion.d.ts.map +0 -1
  587. package/components/datepicker/dist/index.d.ts.map +0 -1
  588. package/components/datepicker/dist/inputVersion.d.ts.map +0 -1
  589. package/components/datepicker/dist/popoverVersion.d.ts.map +0 -1
  590. package/components/datepicker/dist/styles/color-calendar-css.d.ts.map +0 -1
  591. package/components/datepicker/dist/styles/color-cell-css.d.ts.map +0 -1
  592. package/components/datepicker/dist/styles/color-css.d.ts.map +0 -1
  593. package/components/datepicker/dist/styles/color-month-css.d.ts.map +0 -1
  594. package/components/datepicker/dist/styles/style-auro-calendar-cell-css.d.ts.map +0 -1
  595. package/components/datepicker/dist/styles/style-auro-calendar-css.d.ts.map +0 -1
  596. package/components/datepicker/dist/styles/style-auro-calendar-month-css.d.ts.map +0 -1
  597. package/components/datepicker/dist/styles/style-css.d.ts.map +0 -1
  598. package/components/datepicker/dist/styles/tokens-css.d.ts.map +0 -1
  599. package/components/datepicker/dist/utilities.d.ts.map +0 -1
  600. package/components/datepicker/dist/utilitiesCalendar.d.ts.map +0 -1
  601. package/components/datepicker/dist/utilitiesCalendarRender.d.ts.map +0 -1
  602. package/components/datepicker/dist/vendor/wc-range-datepicker/day.d.ts.map +0 -1
  603. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-calendar.d.ts.map +0 -1
  604. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-cell.d.ts.map +0 -1
  605. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker.d.ts.map +0 -1
  606. package/components/datepicker/node_modules/chalk/package.json +0 -83
  607. package/components/datepicker/node_modules/chalk/readme.md +0 -325
  608. package/components/datepicker/node_modules/chalk/source/index.d.ts +0 -320
  609. package/components/datepicker/node_modules/chalk/source/index.js +0 -225
  610. package/components/datepicker/node_modules/chalk/source/utilities.js +0 -33
  611. package/components/datepicker/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
  612. package/components/datepicker/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
  613. package/components/datepicker/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
  614. package/components/datepicker/node_modules/chalk/source/vendor/supports-color/browser.js +0 -30
  615. package/components/datepicker/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
  616. package/components/datepicker/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
  617. package/components/datepicker/node_modules/rollup-plugin-serve/LICENSE.md +0 -21
  618. package/components/datepicker/node_modules/rollup-plugin-serve/README.md +0 -137
  619. package/components/datepicker/node_modules/rollup-plugin-serve/dist/index.cjs +0 -181
  620. package/components/datepicker/node_modules/rollup-plugin-serve/dist/index.mjs +0 -173
  621. package/components/datepicker/node_modules/rollup-plugin-serve/index.d.ts +0 -75
  622. package/components/datepicker/node_modules/rollup-plugin-serve/package.json +0 -51
  623. package/components/datepicker/package.json +0 -79
  624. package/components/datepicker/src/auro-calendar-cell.js +0 -381
  625. package/components/datepicker/src/auro-calendar-month.js +0 -128
  626. package/components/datepicker/src/auro-calendar.js +0 -329
  627. package/components/datepicker/src/auro-datepicker.js +0 -1040
  628. package/components/datepicker/src/dropdownVersion.js +0 -1
  629. package/components/datepicker/src/formkit/auro-dropdownVersion.js +0 -1
  630. package/components/datepicker/src/formkit/auro-inputVersion.js +0 -1
  631. package/components/datepicker/src/index.js +0 -6
  632. package/components/datepicker/src/inputVersion.js +0 -1
  633. package/components/datepicker/src/popoverVersion.js +0 -1
  634. package/components/datepicker/src/styles/color-calendar-css.js +0 -2
  635. package/components/datepicker/src/styles/color-calendar.css +0 -35
  636. package/components/datepicker/src/styles/color-calendar.scss +0 -51
  637. package/components/datepicker/src/styles/color-cell-css.js +0 -2
  638. package/components/datepicker/src/styles/color-cell.css +0 -45
  639. package/components/datepicker/src/styles/color-cell.scss +0 -73
  640. package/components/datepicker/src/styles/color-css.js +0 -2
  641. package/components/datepicker/src/styles/color-month-css.js +0 -2
  642. package/components/datepicker/src/styles/color-month.css +0 -34
  643. package/components/datepicker/src/styles/color-month.scss +0 -27
  644. package/components/datepicker/src/styles/color.css +0 -43
  645. package/components/datepicker/src/styles/color.scss +0 -30
  646. package/components/datepicker/src/styles/style-auro-calendar-cell-css.js +0 -2
  647. package/components/datepicker/src/styles/style-auro-calendar-cell.css +0 -123
  648. package/components/datepicker/src/styles/style-auro-calendar-cell.scss +0 -147
  649. package/components/datepicker/src/styles/style-auro-calendar-css.js +0 -2
  650. package/components/datepicker/src/styles/style-auro-calendar-month-css.js +0 -2
  651. package/components/datepicker/src/styles/style-auro-calendar-month.css +0 -121
  652. package/components/datepicker/src/styles/style-auro-calendar-month.scss +0 -141
  653. package/components/datepicker/src/styles/style-auro-calendar.css +0 -152
  654. package/components/datepicker/src/styles/style-auro-calendar.scss +0 -191
  655. package/components/datepicker/src/styles/style-css.js +0 -2
  656. package/components/datepicker/src/styles/style.css +0 -131
  657. package/components/datepicker/src/styles/style.scss +0 -139
  658. package/components/datepicker/src/styles/tokens-css.js +0 -2
  659. package/components/datepicker/src/styles/tokens.css +0 -22
  660. package/components/datepicker/src/styles/tokens.scss +0 -25
  661. package/components/datepicker/src/utilities.js +0 -87
  662. package/components/datepicker/src/utilitiesCalendar.js +0 -138
  663. package/components/datepicker/src/utilitiesCalendarRender.js +0 -156
  664. package/components/datepicker/src/vendor/wc-range-datepicker/day.js +0 -8
  665. package/components/datepicker/src/vendor/wc-range-datepicker/range-datepicker-calendar.js +0 -521
  666. package/components/datepicker/src/vendor/wc-range-datepicker/range-datepicker-cell.js +0 -211
  667. package/components/datepicker/src/vendor/wc-range-datepicker/range-datepicker.js +0 -254
  668. package/components/dropdown/.stylelintrc.json +0 -3
  669. package/components/dropdown/.turbo/turbo-build$colon$sass.log +0 -75
  670. package/components/dropdown/.turbo/turbo-build.log +0 -208
  671. package/components/dropdown/.turbo/turbo-postCss$colon$component.log +0 -4
  672. package/components/dropdown/.turbo/turbo-sass$colon$render.log +0 -34
  673. package/components/dropdown/dist/auro-dropdown.d.ts.map +0 -1
  674. package/components/dropdown/dist/auro-dropdownBib.d.ts.map +0 -1
  675. package/components/dropdown/dist/dropdownVersion.d.ts.map +0 -1
  676. package/components/dropdown/dist/iconVersion.d.ts.map +0 -1
  677. package/components/dropdown/dist/index.d.ts.map +0 -1
  678. package/components/dropdown/dist/styles/bibColors-css.d.ts.map +0 -1
  679. package/components/dropdown/dist/styles/bibStyles-css.d.ts.map +0 -1
  680. package/components/dropdown/dist/styles/color-css.d.ts.map +0 -1
  681. package/components/dropdown/dist/styles/style-css.d.ts.map +0 -1
  682. package/components/dropdown/dist/styles/tokens-css.d.ts.map +0 -1
  683. package/components/dropdown/node_modules/chalk/package.json +0 -83
  684. package/components/dropdown/node_modules/chalk/readme.md +0 -325
  685. package/components/dropdown/node_modules/chalk/source/index.d.ts +0 -320
  686. package/components/dropdown/node_modules/chalk/source/index.js +0 -225
  687. package/components/dropdown/node_modules/chalk/source/utilities.js +0 -33
  688. package/components/dropdown/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
  689. package/components/dropdown/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
  690. package/components/dropdown/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
  691. package/components/dropdown/node_modules/chalk/source/vendor/supports-color/browser.js +0 -30
  692. package/components/dropdown/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
  693. package/components/dropdown/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
  694. package/components/dropdown/package.json +0 -58
  695. package/components/dropdown/src/auro-dropdown.js +0 -586
  696. package/components/dropdown/src/auro-dropdownBib.js +0 -128
  697. package/components/dropdown/src/dropdownVersion.js +0 -1
  698. package/components/dropdown/src/iconVersion.js +0 -1
  699. package/components/dropdown/src/index.js +0 -6
  700. package/components/dropdown/src/styles/bibColors-css.js +0 -2
  701. package/components/dropdown/src/styles/bibColors.css +0 -6
  702. package/components/dropdown/src/styles/bibColors.scss +0 -18
  703. package/components/dropdown/src/styles/bibStyles-css.js +0 -2
  704. package/components/dropdown/src/styles/bibStyles.css +0 -44
  705. package/components/dropdown/src/styles/bibStyles.scss +0 -61
  706. package/components/dropdown/src/styles/color-css.js +0 -2
  707. package/components/dropdown/src/styles/color.css +0 -56
  708. package/components/dropdown/src/styles/color.scss +0 -76
  709. package/components/dropdown/src/styles/style-css.js +0 -2
  710. package/components/dropdown/src/styles/style.css +0 -91
  711. package/components/dropdown/src/styles/style.scss +0 -122
  712. package/components/dropdown/src/styles/tokens-css.js +0 -2
  713. package/components/dropdown/src/styles/tokens.css +0 -13
  714. package/components/dropdown/src/styles/tokens.scss +0 -15
  715. package/components/form/.stylelintrc.json +0 -3
  716. package/components/form/.turbo/turbo-build$colon$sass.log +0 -57
  717. package/components/form/.turbo/turbo-build$colon$version.log +0 -4
  718. package/components/form/.turbo/turbo-build.log +0 -112
  719. package/components/form/.turbo/turbo-bundler.log +0 -13
  720. package/components/form/.turbo/turbo-postCss$colon$component.log +0 -4
  721. package/components/form/.turbo/turbo-sass$colon$render.log +0 -10
  722. package/components/form/.turbo/turbo-types.log +0 -4
  723. package/components/form/dist/auro-form.d.ts.map +0 -1
  724. package/components/form/dist/index.d.ts.map +0 -1
  725. package/components/form/dist/styles/style-css.d.ts.map +0 -1
  726. package/components/form/node_modules/chalk/package.json +0 -83
  727. package/components/form/node_modules/chalk/readme.md +0 -325
  728. package/components/form/node_modules/chalk/source/index.d.ts +0 -320
  729. package/components/form/node_modules/chalk/source/index.js +0 -225
  730. package/components/form/node_modules/chalk/source/utilities.js +0 -33
  731. package/components/form/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
  732. package/components/form/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
  733. package/components/form/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
  734. package/components/form/node_modules/chalk/source/vendor/supports-color/browser.js +0 -30
  735. package/components/form/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
  736. package/components/form/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
  737. package/components/form/package.json +0 -74
  738. package/components/form/src/auro-form.js +0 -506
  739. package/components/form/src/index.js +0 -6
  740. package/components/form/src/styles/style-css.js +0 -2
  741. package/components/form/src/styles/style.css +0 -36
  742. package/components/form/src/styles/style.scss +0 -37
  743. package/components/helptext/.stylelintrc.json +0 -3
  744. package/components/helptext/.turbo/turbo-build$colon$sass.log +0 -34
  745. package/components/helptext/.turbo/turbo-build.log +0 -49
  746. package/components/helptext/.turbo/turbo-bundler.log +0 -7
  747. package/components/helptext/.turbo/turbo-postCss$colon$component.log +0 -4
  748. package/components/helptext/.turbo/turbo-sass$colon$render.log +0 -22
  749. package/components/helptext/.turbo/turbo-types.log +0 -4
  750. package/components/helptext/dist/auro-helptext.d.ts.map +0 -1
  751. package/components/helptext/dist/index.d.ts.map +0 -1
  752. package/components/helptext/dist/styles/color-css.d.ts.map +0 -1
  753. package/components/helptext/dist/styles/style-css.d.ts.map +0 -1
  754. package/components/helptext/dist/styles/tokens-css.d.ts.map +0 -1
  755. package/components/helptext/node_modules/chalk/package.json +0 -83
  756. package/components/helptext/node_modules/chalk/readme.md +0 -297
  757. package/components/helptext/node_modules/chalk/source/index.d.ts +0 -325
  758. package/components/helptext/node_modules/chalk/source/index.js +0 -225
  759. package/components/helptext/node_modules/chalk/source/utilities.js +0 -33
  760. package/components/helptext/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
  761. package/components/helptext/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
  762. package/components/helptext/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
  763. package/components/helptext/node_modules/chalk/source/vendor/supports-color/browser.js +0 -34
  764. package/components/helptext/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
  765. package/components/helptext/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
  766. package/components/helptext/package.json +0 -57
  767. package/components/helptext/src/auro-helptext.js +0 -127
  768. package/components/helptext/src/index.js +0 -6
  769. package/components/helptext/src/styles/color-css.js +0 -2
  770. package/components/helptext/src/styles/color.css +0 -8
  771. package/components/helptext/src/styles/color.scss +0 -11
  772. package/components/helptext/src/styles/style-css.js +0 -2
  773. package/components/helptext/src/styles/style.css +0 -23
  774. package/components/helptext/src/styles/style.scss +0 -33
  775. package/components/helptext/src/styles/tokens-css.js +0 -2
  776. package/components/helptext/src/styles/tokens.css +0 -3
  777. package/components/helptext/src/styles/tokens.scss +0 -5
  778. package/components/input/.stylelintrc.json +0 -3
  779. package/components/input/.turbo/turbo-build$colon$sass.log +0 -188
  780. package/components/input/.turbo/turbo-build.log +0 -340
  781. package/components/input/.turbo/turbo-postCss$colon$component.log +0 -4
  782. package/components/input/.turbo/turbo-sass$colon$render.log +0 -52
  783. package/components/input/dist/auro-input.d.ts.map +0 -1
  784. package/components/input/dist/base-input.d.ts.map +0 -1
  785. package/components/input/dist/buttonVersion.d.ts.map +0 -1
  786. package/components/input/dist/i18n.d.ts.map +0 -1
  787. package/components/input/dist/iconVersion.d.ts.map +0 -1
  788. package/components/input/dist/index.d.ts.map +0 -1
  789. package/components/input/dist/styles/borders-css.d.ts.map +0 -1
  790. package/components/input/dist/styles/color-css.d.ts.map +0 -1
  791. package/components/input/dist/styles/input-css.d.ts.map +0 -1
  792. package/components/input/dist/styles/label-css.d.ts.map +0 -1
  793. package/components/input/dist/styles/mixins-css.d.ts.map +0 -1
  794. package/components/input/dist/styles/notificationIcons-css.d.ts.map +0 -1
  795. package/components/input/dist/styles/style-css.d.ts.map +0 -1
  796. package/components/input/dist/styles/tokens-css.d.ts.map +0 -1
  797. package/components/input/node_modules/chalk/package.json +0 -83
  798. package/components/input/node_modules/chalk/readme.md +0 -325
  799. package/components/input/node_modules/chalk/source/index.d.ts +0 -320
  800. package/components/input/node_modules/chalk/source/index.js +0 -225
  801. package/components/input/node_modules/chalk/source/utilities.js +0 -33
  802. package/components/input/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
  803. package/components/input/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
  804. package/components/input/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
  805. package/components/input/node_modules/chalk/source/vendor/supports-color/browser.js +0 -30
  806. package/components/input/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
  807. package/components/input/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
  808. package/components/input/package.json +0 -76
  809. package/components/input/src/auro-input.js +0 -249
  810. package/components/input/src/base-input.js +0 -1103
  811. package/components/input/src/buttonVersion.js +0 -1
  812. package/components/input/src/i18n.js +0 -102
  813. package/components/input/src/iconVersion.js +0 -1
  814. package/components/input/src/index.js +0 -6
  815. package/components/input/src/styles/@aurodesignsystem/webcorestylesheets/src/breakpoints +0 -0
  816. package/components/input/src/styles/borders-css.js +0 -2
  817. package/components/input/src/styles/borders.css +0 -35
  818. package/components/input/src/styles/borders.scss +0 -49
  819. package/components/input/src/styles/color-css.js +0 -2
  820. package/components/input/src/styles/color.css +0 -57
  821. package/components/input/src/styles/color.scss +0 -84
  822. package/components/input/src/styles/input-css.js +0 -2
  823. package/components/input/src/styles/input.css +0 -35
  824. package/components/input/src/styles/input.scss +0 -53
  825. package/components/input/src/styles/label-css.js +0 -2
  826. package/components/input/src/styles/label.css +0 -45
  827. package/components/input/src/styles/label.scss +0 -71
  828. package/components/input/src/styles/mixins-css.js +0 -2
  829. package/components/input/src/styles/mixins.css +0 -1
  830. package/components/input/src/styles/mixins.scss +0 -45
  831. package/components/input/src/styles/notificationIcons-css.js +0 -2
  832. package/components/input/src/styles/notificationIcons.css +0 -84
  833. package/components/input/src/styles/notificationIcons.scss +0 -109
  834. package/components/input/src/styles/style-css.js +0 -2
  835. package/components/input/src/styles/style.css +0 -283
  836. package/components/input/src/styles/style.scss +0 -52
  837. package/components/input/src/styles/tokens-css.js +0 -2
  838. package/components/input/src/styles/tokens.css +0 -8
  839. package/components/input/src/styles/tokens.scss +0 -10
  840. package/components/menu/.stylelintrc.json +0 -3
  841. package/components/menu/.turbo/turbo-build$colon$sass.log +0 -86
  842. package/components/menu/.turbo/turbo-build$colon$version.log +0 -7
  843. package/components/menu/.turbo/turbo-build.log +0 -185
  844. package/components/menu/.turbo/turbo-bundler.log +0 -13
  845. package/components/menu/.turbo/turbo-postCss$colon$component.log +0 -4
  846. package/components/menu/.turbo/turbo-sass$colon$render.log +0 -34
  847. package/components/menu/.turbo/turbo-types.log +0 -4
  848. package/components/menu/dist/auro-menu-utils.d.ts.map +0 -1
  849. package/components/menu/dist/auro-menu.d.ts.map +0 -1
  850. package/components/menu/dist/auro-menuoption.d.ts.map +0 -1
  851. package/components/menu/dist/iconVersion.d.ts.map +0 -1
  852. package/components/menu/dist/index.d.ts.map +0 -1
  853. package/components/menu/dist/styles/color-menu-css.d.ts.map +0 -1
  854. package/components/menu/dist/styles/color-menuoption-css.d.ts.map +0 -1
  855. package/components/menu/dist/styles/style-menu-css.d.ts.map +0 -1
  856. package/components/menu/dist/styles/style-menuoption-css.d.ts.map +0 -1
  857. package/components/menu/dist/styles/tokens-css.d.ts.map +0 -1
  858. package/components/menu/node_modules/chalk/package.json +0 -83
  859. package/components/menu/node_modules/chalk/readme.md +0 -325
  860. package/components/menu/node_modules/chalk/source/index.d.ts +0 -320
  861. package/components/menu/node_modules/chalk/source/index.js +0 -225
  862. package/components/menu/node_modules/chalk/source/utilities.js +0 -33
  863. package/components/menu/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
  864. package/components/menu/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
  865. package/components/menu/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
  866. package/components/menu/node_modules/chalk/source/vendor/supports-color/browser.js +0 -30
  867. package/components/menu/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
  868. package/components/menu/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
  869. package/components/menu/node_modules/mime/CHANGELOG.md +0 -296
  870. package/components/menu/node_modules/mime/Mime.js +0 -97
  871. package/components/menu/node_modules/mime/README.md +0 -187
  872. package/components/menu/node_modules/mime/cli.js +0 -46
  873. package/components/menu/node_modules/mime/index.js +0 -4
  874. package/components/menu/node_modules/mime/lite.js +0 -4
  875. package/components/menu/node_modules/mime/package.json +0 -52
  876. package/components/menu/node_modules/mime/types/other.js +0 -1
  877. package/components/menu/node_modules/mime/types/standard.js +0 -1
  878. package/components/menu/node_modules/rollup-plugin-serve/LICENSE.md +0 -21
  879. package/components/menu/node_modules/rollup-plugin-serve/README.md +0 -135
  880. package/components/menu/node_modules/rollup-plugin-serve/dist/index.cjs +0 -181
  881. package/components/menu/node_modules/rollup-plugin-serve/dist/index.cjs.js +0 -197
  882. package/components/menu/node_modules/rollup-plugin-serve/dist/index.es.js +0 -193
  883. package/components/menu/node_modules/rollup-plugin-serve/dist/index.mjs +0 -173
  884. package/components/menu/node_modules/rollup-plugin-serve/package.json +0 -44
  885. package/components/menu/package.json +0 -70
  886. package/components/menu/src/auro-menu-utils.js +0 -131
  887. package/components/menu/src/auro-menu.js +0 -728
  888. package/components/menu/src/auro-menuoption.js +0 -147
  889. package/components/menu/src/iconVersion.js +0 -1
  890. package/components/menu/src/index.js +0 -15
  891. package/components/menu/src/styles/color-menu-css.js +0 -2
  892. package/components/menu/src/styles/color-menu.css +0 -4
  893. package/components/menu/src/styles/color-menu.scss +0 -12
  894. package/components/menu/src/styles/color-menuoption-css.js +0 -2
  895. package/components/menu/src/styles/color-menuoption.css +0 -26
  896. package/components/menu/src/styles/color-menuoption.scss +0 -37
  897. package/components/menu/src/styles/style-menu-css.js +0 -2
  898. package/components/menu/src/styles/style-menu.css +0 -2061
  899. package/components/menu/src/styles/style-menu.scss +0 -80
  900. package/components/menu/src/styles/style-menuoption-css.js +0 -2
  901. package/components/menu/src/styles/style-menuoption.css +0 -45
  902. package/components/menu/src/styles/style-menuoption.scss +0 -66
  903. package/components/menu/src/styles/tokens-css.js +0 -2
  904. package/components/menu/src/styles/tokens.css +0 -6
  905. package/components/menu/src/styles/tokens.scss +0 -6
  906. package/components/radio/.stylelintrc.json +0 -3
  907. package/components/radio/.turbo/turbo-build$colon$sass.log +0 -130
  908. package/components/radio/.turbo/turbo-build.log +0 -215
  909. package/components/radio/.turbo/turbo-postCss$colon$component.log +0 -4
  910. package/components/radio/.turbo/turbo-sass$colon$render.log +0 -34
  911. package/components/radio/dist/auro-radio-group.d.ts.map +0 -1
  912. package/components/radio/dist/auro-radio.d.ts.map +0 -1
  913. package/components/radio/dist/index.d.ts.map +0 -1
  914. package/components/radio/dist/styles/auro-radio-group-css.d.ts.map +0 -1
  915. package/components/radio/dist/styles/color-css.d.ts.map +0 -1
  916. package/components/radio/dist/styles/groupColor-css.d.ts.map +0 -1
  917. package/components/radio/dist/styles/style-css.d.ts.map +0 -1
  918. package/components/radio/dist/styles/tokens-css.d.ts.map +0 -1
  919. package/components/radio/node_modules/chalk/package.json +0 -83
  920. package/components/radio/node_modules/chalk/readme.md +0 -325
  921. package/components/radio/node_modules/chalk/source/index.d.ts +0 -320
  922. package/components/radio/node_modules/chalk/source/index.js +0 -225
  923. package/components/radio/node_modules/chalk/source/utilities.js +0 -33
  924. package/components/radio/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
  925. package/components/radio/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
  926. package/components/radio/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
  927. package/components/radio/node_modules/chalk/source/vendor/supports-color/browser.js +0 -30
  928. package/components/radio/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
  929. package/components/radio/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
  930. package/components/radio/package.json +0 -69
  931. package/components/radio/src/auro-radio-group.js +0 -451
  932. package/components/radio/src/auro-radio.js +0 -256
  933. package/components/radio/src/index.js +0 -8
  934. package/components/radio/src/styles/auro-radio-group-css.js +0 -2
  935. package/components/radio/src/styles/auro-radio-group.css +0 -23
  936. package/components/radio/src/styles/auro-radio-group.scss +0 -36
  937. package/components/radio/src/styles/color-css.js +0 -2
  938. package/components/radio/src/styles/color.css +0 -45
  939. package/components/radio/src/styles/color.scss +0 -56
  940. package/components/radio/src/styles/groupColor-css.js +0 -2
  941. package/components/radio/src/styles/groupColor.css +0 -13
  942. package/components/radio/src/styles/groupColor.scss +0 -25
  943. package/components/radio/src/styles/style-css.js +0 -2
  944. package/components/radio/src/styles/style.css +0 -113
  945. package/components/radio/src/styles/style.scss +0 -99
  946. package/components/radio/src/styles/tokens-css.js +0 -2
  947. package/components/radio/src/styles/tokens.css +0 -8
  948. package/components/radio/src/styles/tokens.scss +0 -11
  949. package/components/select/.stylelintrc.json +0 -3
  950. package/components/select/.turbo/turbo-build$colon$sass.log +0 -122
  951. package/components/select/.turbo/turbo-build.log +0 -242
  952. package/components/select/.turbo/turbo-postCss$colon$component.log +0 -4
  953. package/components/select/.turbo/turbo-sass$colon$render.log +0 -22
  954. package/components/select/dist/auro-select.d.ts.map +0 -1
  955. package/components/select/dist/dropdownVersion.d.ts.map +0 -1
  956. package/components/select/dist/formkit/auro-dropdownVersion.d.ts +0 -3
  957. package/components/select/dist/formkit/auro-dropdownVersion.d.ts.map +0 -1
  958. package/components/select/dist/index.d.ts.map +0 -1
  959. package/components/select/dist/styles/color-css.d.ts.map +0 -1
  960. package/components/select/dist/styles/style-css.d.ts.map +0 -1
  961. package/components/select/dist/styles/tokens-css.d.ts.map +0 -1
  962. package/components/select/node_modules/chalk/package.json +0 -83
  963. package/components/select/node_modules/chalk/readme.md +0 -325
  964. package/components/select/node_modules/chalk/source/index.d.ts +0 -320
  965. package/components/select/node_modules/chalk/source/index.js +0 -225
  966. package/components/select/node_modules/chalk/source/utilities.js +0 -33
  967. package/components/select/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
  968. package/components/select/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
  969. package/components/select/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
  970. package/components/select/node_modules/chalk/source/vendor/supports-color/browser.js +0 -30
  971. package/components/select/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
  972. package/components/select/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
  973. package/components/select/node_modules/mime/CHANGELOG.md +0 -296
  974. package/components/select/node_modules/mime/Mime.js +0 -97
  975. package/components/select/node_modules/mime/README.md +0 -187
  976. package/components/select/node_modules/mime/cli.js +0 -46
  977. package/components/select/node_modules/mime/index.js +0 -4
  978. package/components/select/node_modules/mime/lite.js +0 -4
  979. package/components/select/node_modules/mime/package.json +0 -52
  980. package/components/select/node_modules/mime/types/other.js +0 -1
  981. package/components/select/node_modules/mime/types/standard.js +0 -1
  982. package/components/select/node_modules/rollup-plugin-serve/LICENSE.md +0 -21
  983. package/components/select/node_modules/rollup-plugin-serve/README.md +0 -135
  984. package/components/select/node_modules/rollup-plugin-serve/dist/index.cjs +0 -181
  985. package/components/select/node_modules/rollup-plugin-serve/dist/index.cjs.js +0 -197
  986. package/components/select/node_modules/rollup-plugin-serve/dist/index.es.js +0 -193
  987. package/components/select/node_modules/rollup-plugin-serve/dist/index.mjs +0 -173
  988. package/components/select/node_modules/rollup-plugin-serve/package.json +0 -44
  989. package/components/select/package.json +0 -70
  990. package/components/select/packageScripts/postinstall.mjs +0 -28
  991. package/components/select/src/auro-select.js +0 -604
  992. package/components/select/src/dropdownVersion.js +0 -1
  993. package/components/select/src/formkit/auro-dropdownVersion.js +0 -1
  994. package/components/select/src/index.js +0 -6
  995. package/components/select/src/styles/color-css.js +0 -2
  996. package/components/select/src/styles/color.css +0 -63
  997. package/components/select/src/styles/color.scss +0 -33
  998. package/components/select/src/styles/style-css.js +0 -2
  999. package/components/select/src/styles/style.css +0 -105
  1000. package/components/select/src/styles/style.scss +0 -83
  1001. package/components/select/src/styles/tokens-css.js +0 -2
  1002. package/components/select/src/styles/tokens.css +0 -3
  1003. package/components/select/src/styles/tokens.scss +0 -5
  1004. package/packages/build-tools/package.json +0 -15
  1005. package/packages/build-tools/src/docProcessor.mjs +0 -133
  1006. package/packages/build-tools/src/formVersionWriter.mjs +0 -75
  1007. package/packages/build-tools/src/index.js +0 -1
  1008. package/packages/build-tools/src/kitDocProcessor.mjs +0 -66
  1009. package/packages/form-validation/package.json +0 -12
  1010. package/packages/form-validation/src/index.js +0 -1
  1011. package/packages/form-validation/src/validation.js +0 -318
  1012. package/packages/typescript/base.json +0 -19
  1013. package/packages/typescript/package.json +0 -20
  1014. package/packages/utils/package.json +0 -12
  1015. package/packages/utils/src/iconUtil.js +0 -25
  1016. package/packages/utils/src/index.js +0 -1
  1017. package/turbo.json +0 -134
@@ -0,0 +1,4254 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2017 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ const t$5=globalThis,i$9=t$5.trustedTypes,s$5=i$9?i$9.createPolicy("lit-html",{createHTML:t=>t}):void 0,e$7="$lit$",h$3=`lit$${Math.random().toFixed(9).slice(2)}$`,o$7="?"+h$3,n$6=`<${o$7}>`,r$8=document,l$4=()=>r$8.createComment(""),c$6=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$4=Array.isArray,u$6=t=>a$4(t)||"function"==typeof t?.[Symbol.iterator],d$3="[ \t\n\f\r]",f$3=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$2=/-->/g,_$1=/>/g,m$2=RegExp(`>|${d$3}(?:([^\\s"'>=/]+)(${d$3}*=${d$3}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$4=/'/g,g$1=/"/g,$$1=/^(?:script|style|textarea|title)$/i,y$2=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x=y$2(1),T$1=Symbol.for("lit-noChange"),E$1=Symbol.for("lit-nothing"),A$1=new WeakMap,C$1=r$8.createTreeWalker(r$8,129);function P$1(t,i){if(!a$4(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s$5?s$5.createHTML(i):i}const V$1=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f$3;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f$3?"!--"===u[1]?c=v$2:void 0!==u[1]?c=_$1:void 0!==u[2]?($$1.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m$2):void 0!==u[3]&&(c=m$2):c===m$2?">"===u[0]?(c=r??f$3,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m$2:'"'===u[3]?g$1:p$4):c===g$1||c===p$4?c=m$2:c===v$2||c===_$1?c=f$3:(c=m$2,r=void 0);const x=c===m$2&&t[i+1].startsWith("/>")?" ":"";l+=c===f$3?s+n$6:d>=0?(o.push(a),s.slice(0,d)+e$7+s.slice(d)+h$3+x):s+h$3+(-2===d?i:x);}return [P$1(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};let N$1 = class N{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V$1(t,s);if(this.el=N.createElement(f,n),C$1.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C$1.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$7)){const i=v[a++],s=r.getAttribute(t).split(h$3),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H$1:"?"===e[1]?I$1:"@"===e[1]?L$1:k$1}),r.removeAttribute(t);}else t.startsWith(h$3)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($$1.test(r.tagName)){const t=r.textContent.split(h$3),s=t.length-1;if(s>0){r.textContent=i$9?i$9.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$4()),C$1.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$4());}}}else if(8===r.nodeType)if(r.data===o$7)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$3,t+1));)d.push({type:7,index:c}),t+=h$3.length-1;}c++;}}static createElement(t,i){const s=r$8.createElement("template");return s.innerHTML=t,s}};function S$3(t,i,s=t,e){if(i===T$1)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c$6(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=S$3(t,h._$AS(t,i.values),h,e)),i}let M$2 = class M{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$8).importNode(i,true);C$1.currentNode=e;let h=C$1.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new R$1(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z$1(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C$1.nextNode(),o++);}return C$1.currentNode=r$8,e}p(t){let i=0;for(const s of this._$AV) void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}};let R$1 = class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E$1,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S$3(this,t,i),c$6(t)?t===E$1||null==t||""===t?(this._$AH!==E$1&&this._$AR(),this._$AH=E$1):t!==this._$AH&&t!==T$1&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):u$6(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E$1&&c$6(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$8.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N$1.createElement(P$1(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M$2(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A$1.get(t.strings);return void 0===i&&A$1.set(t.strings,i=new N$1(t)),i}k(t){a$4(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(l$4()),this.O(l$4()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(false,true,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){ void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t));}};let k$1 = class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E$1,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E$1;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(void 0===h)t=S$3(this,t,i,0),o=!c$6(t)||t!==this._$AH&&t!==T$1,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S$3(this,e[s+n],i,n),r===T$1&&(r=this._$AH[n]),o||=!c$6(r)||r!==this._$AH[n],r===E$1?t=E$1:t!==E$1&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E$1?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}};let H$1 = class H extends k$1{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E$1?void 0:t;}};let I$1 = class I extends k$1{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E$1);}};let L$1 = class L extends k$1{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S$3(this,t,i,0)??E$1)===T$1)return;const s=this._$AH,e=t===E$1&&s!==E$1||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E$1&&(s===E$1||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}};let z$1 = class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S$3(this,t);}};const Z={I:R$1},j$1=t$5.litHtmlPolyfillSupport;j$1?.(N$1,R$1),(t$5.litHtmlVersions??=[]).push("3.2.1");const B$1=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new R$1(i.insertBefore(l$4(),t),t,void 0,s??{});}return h._$AI(t),h};
7
+
8
+ /**
9
+ * @license
10
+ * Copyright 2020 Google LLC
11
+ * SPDX-License-Identifier: BSD-3-Clause
12
+ */
13
+ const a$3=Symbol.for(""),o$6=t=>{if(t?.r===a$3)return t?._$litStatic$},s$4=t=>({_$litStatic$:t,r:a$3}),i$8=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(e)+t[a+1]),t[0]),r:a$3}),l$3=new Map,n$5=t=>(r,...e)=>{const a=e.length;let s,i;const n=[],u=[];let c,$=0,f=false;for(;$<a;){for(c=r[$];$<a&&void 0!==(i=e[$],s=o$6(i));)c+=s+r[++$],f=true;$!==a&&u.push(i),n.push(c),$++;}if($===a&&n.push(r[a]),f){const t=n.join("$$lit$$");void 0===(r=l$3.get(t))&&(n.raw=n,l$3.set(t,r=n)),e=u;}return t(r,...e)},u$5=n$5(x);
14
+
15
+ /**
16
+ * @license
17
+ * Copyright 2017 Google LLC
18
+ * SPDX-License-Identifier: BSD-3-Clause
19
+ */
20
+ const t$4={ATTRIBUTE:1,CHILD:2},e$6=t=>(...e)=>({_$litDirective$:t,values:e});let i$7 = class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i;}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
21
+
22
+ /**
23
+ * @license
24
+ * Copyright 2020 Google LLC
25
+ * SPDX-License-Identifier: BSD-3-Clause
26
+ */const {I:t$3}=Z,s$3=()=>document.createComment(""),r$7=(o,i,n)=>{const e=o._$AA.parentNode,l=void 0===i?o._$AB:i._$AA;if(void 0===n){const i=e.insertBefore(s$3(),l),c=e.insertBefore(s$3(),l);n=new t$3(i,c,o,o.options);}else {const t=n._$AB.nextSibling,i=n._$AM,c=i!==o;if(c){let t;n._$AQ?.(o),n._$AM=o,void 0!==n._$AP&&(t=o._$AU)!==i._$AU&&n._$AP(t);}if(t!==l||c){let o=n._$AA;for(;o!==t;){const t=o.nextSibling;e.insertBefore(o,l),o=t;}}}return n},v$1=(o,t,i=o)=>(o._$AI(t,i),o),u$4={},m$1=(o,t=u$4)=>o._$AH=t,p$3=o=>o._$AH,M$1=o=>{o._$AP?.(false,true);let t=o._$AA;const i=o._$AB.nextSibling;for(;t!==i;){const o=t.nextSibling;t.remove(),t=o;}};
27
+
28
+ /**
29
+ * @license
30
+ * Copyright 2017 Google LLC
31
+ * SPDX-License-Identifier: BSD-3-Clause
32
+ */
33
+ const u$3=(e,s,t)=>{const r=new Map;for(let l=s;l<=t;l++)r.set(e[l],l);return r},c$5=e$6(class extends i$7{constructor(e){if(super(e),e.type!==t$4.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,s,t){let r;void 0===t?t=s:void 0!==s&&(r=s);const l=[],o=[];let i=0;for(const s of e)l[i]=r?r(s,i):i,o[i]=t(s,i),i++;return {values:o,keys:l}}render(e,s,t){return this.dt(e,s,t).values}update(s,[t,r,c]){const d=p$3(s),{values:p,keys:a}=this.dt(t,r,c);if(!Array.isArray(d))return this.ut=a,p;const h=this.ut??=[],v=[];let m,y,x=0,j=d.length-1,k=0,w=p.length-1;for(;x<=j&&k<=w;)if(null===d[x])x++;else if(null===d[j])j--;else if(h[x]===a[k])v[k]=v$1(d[x],p[k]),x++,k++;else if(h[j]===a[w])v[w]=v$1(d[j],p[w]),j--,w--;else if(h[x]===a[w])v[w]=v$1(d[x],p[w]),r$7(s,v[w+1],d[x]),x++,w--;else if(h[j]===a[k])v[k]=v$1(d[j],p[k]),r$7(s,d[x],d[j]),j--,k++;else if(void 0===m&&(m=u$3(a,k,w),y=u$3(h,x,j)),m.has(h[x]))if(m.has(h[j])){const e=y.get(a[k]),t=void 0!==e?d[e]:null;if(null===t){const e=r$7(s,d[x]);v$1(e,p[k]),v[k]=e;}else v[k]=v$1(t,p[k]),r$7(s,d[x],t),d[e]=null;k++;}else M$1(d[j]),j--;else M$1(d[x]),x++;for(;k<=w;){const e=r$7(s,v[w+1]);v$1(e,p[k]),v[k++]=e;}for(;x<=j;){const e=d[x++];null!==e&&M$1(e);}return this.ut=a,m$1(s,v),T$1}});
34
+
35
+ /**
36
+ * @license
37
+ * Copyright 2018 Google LLC
38
+ * SPDX-License-Identifier: BSD-3-Clause
39
+ */const e$5=e$6(class extends i$7{constructor(t){if(super(t),t.type!==t$4.ATTRIBUTE||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter((s=>t[s])).join(" ")+" "}update(s,[i]){if(void 0===this.st){this.st=new Set,void 0!==s.strings&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)));}return T$1}});
40
+
41
+ /**
42
+ * @license
43
+ * Copyright 2018 Google LLC
44
+ * SPDX-License-Identifier: BSD-3-Clause
45
+ */const o$5=o=>o??E$1;
46
+
47
+ const watchedItems = new Set();
48
+
49
+
50
+ /**
51
+ * Function for setting the value of the lang attribute.
52
+ * @private
53
+ * @param {object} item - Individual DOM node from set of watchedItems.
54
+ * @param {string} lang - Current language set for the document.
55
+ */
56
+ function setLang(item, lang) {
57
+
58
+ /**
59
+ * It is desired that if the lang is `en` to maintain `undefined` as not to
60
+ * add the `lang` attribute to the individual element.
61
+ */
62
+ item.lang = lang === 'en' ? undefined : lang;
63
+ }
64
+
65
+ /**
66
+ * Change handler for MutationObserver() callback.
67
+ * @private
68
+ * @param {MutationRecord[]} mutationList - Observed list of mutations.
69
+ */
70
+ function handleChange(mutationList) {
71
+ const [mutation] = mutationList;
72
+ const lang = mutation.target.getAttribute('lang');
73
+ watchedItems.forEach((item) => {
74
+ setLang(item, lang);
75
+ });
76
+ }
77
+
78
+ if (typeof window !== "undefined") {
79
+ if (window.MutationObserver) {
80
+ const observer = new MutationObserver(handleChange);
81
+ observer.observe(document.documentElement, { attributes: true,
82
+ attributeFilter: ['lang'] });
83
+ }
84
+ }
85
+
86
+ const stringsES = {
87
+ 'optional': 'opcional',
88
+ 'validCard': 'Por favor, introduzca un número de tarjeta de crédito válida.',
89
+ 'email': 'Introduzca una dirección de correo electrónico válida (nombre@dominio.com).',
90
+ 'password': `Las contraseñas válidas deben constar de al menos 8 caracteres, incluyendo al menos una letra mayúscula, una letra minúscula y un número.`,
91
+ 'creditcard': 'Por favor, introduzca un número de tarjeta de crédito válida.',
92
+ 'dateMMDDYYYY': 'Ingrese una fecha completa en el formato MM/DD/AAAA',
93
+ 'dateMMYY': 'Ingrese una fecha completa en el formato MM/AA',
94
+ 'dateMMYYYY': 'Ingrese una fecha completa en el formato MM/AAAA',
95
+ 'dateYYYYMMDD': 'Ingrese una fecha completa en el formato AAAA/MM/DD',
96
+ 'dateYY': 'Ingrese una fecha completa en el formato AA',
97
+ 'dateYYYY': 'Ingrese una fecha completa en el formato AAAA',
98
+ 'dateMM': 'Ingrese una fecha completa en el formato MM',
99
+ };
100
+
101
+ const stringsEN = {
102
+ 'optional': 'optional',
103
+ 'validCard': 'Please enter a valid credit card number.',
104
+ 'email': 'Please enter a valid email address (name@domain.com).',
105
+ 'password': 'Valid passwords must consist of at least 8 characters, including at least one uppercase letter, one lowercase letter, and one number.',
106
+ 'creditcard': 'Please enter a valid credit card number.',
107
+ 'dateMMDDYYYY': 'Please enter a complete date in the format MM/DD/YYYY',
108
+ 'dateMMYY': 'Please enter a complete date in the format MM/YY',
109
+ 'dateMMYYYY': 'Please enter a complete date in the format MM/YYYY',
110
+ 'dateYYYYMMDD': 'Please enter a complete date in the format YYYY/MM/DD',
111
+ 'dateYYY': 'Please enter a complete date in the format YY',
112
+ 'dateYYYYY': 'Please enter a complete date in the format YYYY',
113
+ 'dateMM': 'Please enter a complete date in the format MM'
114
+ };
115
+
116
+ /**
117
+ * Function to support the selected of a string in the set lang.
118
+ * @param {string} lang - Requested lang for content return.
119
+ * @param {string} requestedString - String requested in context.
120
+ * @private
121
+ * @returns {string} Value of string request.
122
+ */
123
+ function i18n(lang, requestedString) {
124
+ if (lang === 'es') {
125
+ return stringsES[requestedString];
126
+ }
127
+
128
+ return stringsEN[requestedString];
129
+ }
130
+
131
+ /**
132
+ * @private
133
+ * @param {object} element - Pass in the scope of the element in use.
134
+ */
135
+ function notifyOnLangChange(element) {
136
+ if (!element.lang) {
137
+ setLang(element, document.documentElement.lang);
138
+ }
139
+ watchedItems.add(element);
140
+ }
141
+
142
+ /**
143
+ * @private
144
+ * @param {object} element - Pass in the scope of the element in use.
145
+ */
146
+ function stopNotifyingOnLangChange(element) {
147
+ watchedItems.delete(element);
148
+ }
149
+
150
+ /**
151
+ * @license
152
+ * Copyright 2019 Google LLC
153
+ * SPDX-License-Identifier: BSD-3-Clause
154
+ */
155
+ const t$2=globalThis,e$4=t$2.ShadowRoot&&(void 0===t$2.ShadyCSS||t$2.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$2=Symbol(),o$4=new WeakMap;let n$4 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$2)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$4&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$4.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$4.set(s,t));}return t}toString(){return this.cssText}};const r$6=t=>new n$4("string"==typeof t?t:t+"",void 0,s$2),i$6=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(true===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$4(o,t,s$2)},S$2=(s,o)=>{if(e$4)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$2.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$4=e$4?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$6(e)})(t):t;
156
+
157
+ /**
158
+ * @license
159
+ * Copyright 2017 Google LLC
160
+ * SPDX-License-Identifier: BSD-3-Clause
161
+ */const{is:i$5,defineProperty:e$3,getOwnPropertyDescriptor:r$5,getOwnPropertyNames:h$2,getOwnPropertySymbols:o$3,getPrototypeOf:n$3}=Object,a$2=globalThis,c$3=a$2.trustedTypes,l$2=c$3?c$3.emptyScript:"",p$2=a$2.reactiveElementPolyfillSupport,d$2=(t,s)=>t,u$2={toAttribute(t,s){switch(s){case Boolean:t=t?l$2:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$2=(t,s)=>!i$5(t,s),y={attribute:true,type:String,converter:u$2,reflect:false,hasChanged:f$2};Symbol.metadata??=Symbol("metadata"),a$2.litPropertyMetadata??=new WeakMap;let b$1 = class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y){if(s.state&&(s.attribute=false),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);void 0!==r&&e$3(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$5(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??y}static _$Ei(){if(this.hasOwnProperty(d$2("elementProperties")))return;const t=n$3(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$2("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$2("properties"))){const t=this.properties,s=[...h$2(t),...o$3(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$4(s));}else void 0!==s&&i.push(c$4(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$2(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&true===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:u$2).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$2;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f$2)(this[t],s))return;this.P(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),true===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){this.isUpdatePending=true;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t) true!==i.wrapped||this._$AL.has(s)||void 0===this[s]||this.P(s,this[s],i);}let t=false;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU();}catch(s){throw t=false,this._$EU(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}};b$1.elementStyles=[],b$1.shadowRootOptions={mode:"open"},b$1[d$2("elementProperties")]=new Map,b$1[d$2("finalized")]=new Map,p$2?.({ReactiveElement:b$1}),(a$2.reactiveElementVersions??=[]).push("2.0.4");
162
+
163
+ /**
164
+ * @license
165
+ * Copyright 2017 Google LLC
166
+ * SPDX-License-Identifier: BSD-3-Clause
167
+ */let r$4 = class r extends b$1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B$1(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T$1}};r$4._$litElement$=true,r$4["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r$4});const i$4=globalThis.litElementPolyfillSupport;i$4?.({LitElement:r$4});(globalThis.litElementVersions??=[]).push("4.1.1");
168
+
169
+ var styleCss$3 = i$6`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.typeIcon{display:flex;flex-direction:row;align-items:center}.typeIcon [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-100, 0.5rem)}.notificationIcons{display:flex;flex-direction:row;padding-right:var(--ds-size-100, 0.5rem)}:host([bordered]) .typeIcon{padding-left:var(--ds-size-100, 0.5rem)}:host([bordered]) .notificationIcons{align-items:center}.notification:not(:first-of-type){margin-left:var(--ds-size-100, 0.5rem)}.alertNotification{width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem))}.passwordBtn{width:calc(var(--ds-size-300, 1.5rem));height:calc(var(--ds-size-300, 1.5rem))}.notificationBtn{display:block;width:var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);padding:0;border:0;background:unset;cursor:pointer}.notificationBtn [auro-icon]{display:block;height:var(--ds-size-300, 1.5rem);--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}.notificationBtn [auro-icon][hidden]{display:none}:host(:not([bordered])) .typeIcon,:host(:not([bordered])) .notificationIcons{align-items:flex-end;padding-bottom:var(--ds-size-50, 0.25rem)}.clearBtn{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);overflow:hidden;width:0;opacity:0}:host .wrapper:hover .clearBtn,:host .wrapper:focus-within .clearBtn{width:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));opacity:1}:host(:focus-within[type=password]) .notificationIcons[hasValue] .alertNotification{overflow:hidden;width:0;height:0;padding:0;margin:0;visibility:hidden}input{border:unset}.wrapper{position:relative;overflow:hidden;border-style:solid}:host(:not([bordered],[borderless])) .wrapper{border-width:1px 0}:host([bordered]) .wrapper{border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}:host(:not([borderless])) .wrapper:focus-within:before{position:absolute;display:block;border-bottom-width:1px;border-bottom-style:solid;content:"";inset:0;pointer-events:none}:host([validity]:not([validity=valid])) .wrapper:before{border-bottom:0}label{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);position:absolute;overflow:hidden;pointer-events:none;text-overflow:ellipsis;white-space:nowrap}:host(:not([bordered])) label{top:calc(100% - var(--ds-size-25, 0.125rem));transform:translateY(-100%)}:host(:not([bordered])) label.withIcon{left:var(--ds-size-400, 2rem)}:host([bordered]) label{top:50%;transform:translateY(-50%)}:host([bordered]) label.withIcon{left:var(--ds-size-500, 2.5rem)}:host([bordered]) label:not(label.withIcon){left:var(--ds-size-100, 0.5rem)}:host .wrapper:focus-within label{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-text-body-size-xs, 0.75rem);transform:unset}:host label.withValue{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-text-body-size-xs, 0.75rem);transform:unset}:host([activeLabel]) .wrapper label{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-text-body-size-xs, 0.75rem);transform:unset}:host{position:relative;display:block}.wrapper{display:flex;flex-direction:row}.main{display:flex;flex-direction:row;position:relative;flex:1}input{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);position:relative;overflow:hidden;min-height:var(--ds-size-700, 3.5rem);max-height:var(--ds-size-700, 3.5rem);flex:1;padding:var(--ds-size-400, 2rem) 0 var(--ds-size-50, 0.25rem);margin:0;font-family:var(--ds-font-family-default, "AS Circular", Helvetica Neue, Arial, sans-serif);font-size:var(--ds-size-200, 1rem);outline:none;text-overflow:ellipsis;white-space:nowrap}input::-ms-reveal,input::-ms-clear{display:none}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}input[type=number]{-moz-appearance:textfield;appearance:textfield}input:disabled{background:none;pointer-events:none}:host([bordered]) input{padding:var(--ds-size-400, 2rem) 0 var(--ds-size-100, 0.5rem)}`;
170
+
171
+ var colorCss$3 = i$6`.wrapper{border-color:transparent}input{background-color:transparent;caret-color:var(--ds-auro-input-caret-color);color:var(--ds-auro-input-text-color)}input::placeholder{color:transparent}input:focus::placeholder{color:var(--ds-auro-input-placeholder-text-color)}input:disabled{--ds-auro-input-input-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}label{color:var(--ds-auro-input-label-text-color)}:host(:not([bordered],[borderless])) .wrapper{border-bottom-color:var(--ds-auro-input-border-color)}:host([bordered]) .wrapper{border-color:var(--ds-auro-input-border-color);background-color:var(--ds-auro-input-container-color)}:host([bordered]) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color)}:host(:not([borderless])) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-color-border-ui-focus-default, #2c67b5)}:host(:not([borderless])) .wrapper:focus-within:before{border-bottom-color:transparent}:host([validity]:not([validity=valid])){--ds-auro-input-border-color: var(--ds-color-border-error-default, #cc1816)}:host([validity]:not([validity=valid])[bordered]) .wrapper{--ds-auro-input-border-color: var(--ds-color-border-error-default, #cc1816);box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color)}:host([disabled]){--ds-auro-input-border-color: var(--ds-color-border-ui-disabled-default, #adadad);--ds-auro-input-label-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}`;
172
+
173
+ var tokensCss$3 = i$6`:host{--ds-auro-input-border-color: var(--ds-color-border-secondary-default, #939fad);--ds-auro-input-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-input-caret-color: var(--ds-color-text-ui-focus-default, #2c67b5);--ds-auro-input-label-text-color: var(--ds-color-text-tertiary-default, #6a717c);--ds-auro-input-placeholder-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-input-text-color: var(--ds-color-text-primary-default, #2a2a2a)}`;
174
+
175
+ var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
176
+
177
+ var NumeralFormatter = function (numeralDecimalMark,
178
+ numeralIntegerScale,
179
+ numeralDecimalScale,
180
+ numeralThousandsGroupStyle,
181
+ numeralPositiveOnly,
182
+ stripLeadingZeroes,
183
+ prefix,
184
+ signBeforePrefix,
185
+ tailPrefix,
186
+ delimiter) {
187
+ var owner = this;
188
+
189
+ owner.numeralDecimalMark = numeralDecimalMark || '.';
190
+ owner.numeralIntegerScale = numeralIntegerScale > 0 ? numeralIntegerScale : 0;
191
+ owner.numeralDecimalScale = numeralDecimalScale >= 0 ? numeralDecimalScale : 2;
192
+ owner.numeralThousandsGroupStyle = numeralThousandsGroupStyle || NumeralFormatter.groupStyle.thousand;
193
+ owner.numeralPositiveOnly = !!numeralPositiveOnly;
194
+ owner.stripLeadingZeroes = stripLeadingZeroes !== false;
195
+ owner.prefix = (prefix || prefix === '') ? prefix : '';
196
+ owner.signBeforePrefix = !!signBeforePrefix;
197
+ owner.tailPrefix = !!tailPrefix;
198
+ owner.delimiter = (delimiter || delimiter === '') ? delimiter : ',';
199
+ owner.delimiterRE = delimiter ? new RegExp('\\' + delimiter, 'g') : '';
200
+ };
201
+
202
+ NumeralFormatter.groupStyle = {
203
+ thousand: 'thousand',
204
+ lakh: 'lakh',
205
+ wan: 'wan',
206
+ none: 'none'
207
+ };
208
+
209
+ NumeralFormatter.prototype = {
210
+ getRawValue: function (value) {
211
+ return value.replace(this.delimiterRE, '').replace(this.numeralDecimalMark, '.');
212
+ },
213
+
214
+ format: function (value) {
215
+ var owner = this, parts, partSign, partSignAndPrefix, partInteger, partDecimal = '';
216
+
217
+ // strip alphabet letters
218
+ value = value.replace(/[A-Za-z]/g, '')
219
+ // replace the first decimal mark with reserved placeholder
220
+ .replace(owner.numeralDecimalMark, 'M')
221
+
222
+ // strip non numeric letters except minus and "M"
223
+ // this is to ensure prefix has been stripped
224
+ .replace(/[^\dM-]/g, '')
225
+
226
+ // replace the leading minus with reserved placeholder
227
+ .replace(/^\-/, 'N')
228
+
229
+ // strip the other minus sign (if present)
230
+ .replace(/\-/g, '')
231
+
232
+ // replace the minus sign (if present)
233
+ .replace('N', owner.numeralPositiveOnly ? '' : '-')
234
+
235
+ // replace decimal mark
236
+ .replace('M', owner.numeralDecimalMark);
237
+
238
+ // strip any leading zeros
239
+ if (owner.stripLeadingZeroes) {
240
+ value = value.replace(/^(-)?0+(?=\d)/, '$1');
241
+ }
242
+
243
+ partSign = value.slice(0, 1) === '-' ? '-' : '';
244
+ if (typeof owner.prefix != 'undefined') {
245
+ if (owner.signBeforePrefix) {
246
+ partSignAndPrefix = partSign + owner.prefix;
247
+ } else {
248
+ partSignAndPrefix = owner.prefix + partSign;
249
+ }
250
+ } else {
251
+ partSignAndPrefix = partSign;
252
+ }
253
+
254
+ partInteger = value;
255
+
256
+ if (value.indexOf(owner.numeralDecimalMark) >= 0) {
257
+ parts = value.split(owner.numeralDecimalMark);
258
+ partInteger = parts[0];
259
+ partDecimal = owner.numeralDecimalMark + parts[1].slice(0, owner.numeralDecimalScale);
260
+ }
261
+
262
+ if(partSign === '-') {
263
+ partInteger = partInteger.slice(1);
264
+ }
265
+
266
+ if (owner.numeralIntegerScale > 0) {
267
+ partInteger = partInteger.slice(0, owner.numeralIntegerScale);
268
+ }
269
+
270
+ switch (owner.numeralThousandsGroupStyle) {
271
+ case NumeralFormatter.groupStyle.lakh:
272
+ partInteger = partInteger.replace(/(\d)(?=(\d\d)+\d$)/g, '$1' + owner.delimiter);
273
+
274
+ break;
275
+
276
+ case NumeralFormatter.groupStyle.wan:
277
+ partInteger = partInteger.replace(/(\d)(?=(\d{4})+$)/g, '$1' + owner.delimiter);
278
+
279
+ break;
280
+
281
+ case NumeralFormatter.groupStyle.thousand:
282
+ partInteger = partInteger.replace(/(\d)(?=(\d{3})+$)/g, '$1' + owner.delimiter);
283
+
284
+ break;
285
+ }
286
+
287
+ if (owner.tailPrefix) {
288
+ return partSign + partInteger.toString() + (owner.numeralDecimalScale > 0 ? partDecimal.toString() : '') + owner.prefix;
289
+ }
290
+
291
+ return partSignAndPrefix + partInteger.toString() + (owner.numeralDecimalScale > 0 ? partDecimal.toString() : '');
292
+ }
293
+ };
294
+
295
+ var NumeralFormatter_1 = NumeralFormatter;
296
+
297
+ var DateFormatter = function (datePattern, dateMin, dateMax) {
298
+ var owner = this;
299
+
300
+ owner.date = [];
301
+ owner.blocks = [];
302
+ owner.datePattern = datePattern;
303
+ owner.dateMin = dateMin
304
+ .split('-')
305
+ .reverse()
306
+ .map(function(x) {
307
+ return parseInt(x, 10);
308
+ });
309
+ if (owner.dateMin.length === 2) owner.dateMin.unshift(0);
310
+
311
+ owner.dateMax = dateMax
312
+ .split('-')
313
+ .reverse()
314
+ .map(function(x) {
315
+ return parseInt(x, 10);
316
+ });
317
+ if (owner.dateMax.length === 2) owner.dateMax.unshift(0);
318
+
319
+ owner.initBlocks();
320
+ };
321
+
322
+ DateFormatter.prototype = {
323
+ initBlocks: function () {
324
+ var owner = this;
325
+ owner.datePattern.forEach(function (value) {
326
+ if (value === 'Y') {
327
+ owner.blocks.push(4);
328
+ } else {
329
+ owner.blocks.push(2);
330
+ }
331
+ });
332
+ },
333
+
334
+ getISOFormatDate: function () {
335
+ var owner = this,
336
+ date = owner.date;
337
+
338
+ return date[2] ? (
339
+ date[2] + '-' + owner.addLeadingZero(date[1]) + '-' + owner.addLeadingZero(date[0])
340
+ ) : '';
341
+ },
342
+
343
+ getBlocks: function () {
344
+ return this.blocks;
345
+ },
346
+
347
+ getValidatedDate: function (value) {
348
+ var owner = this, result = '';
349
+
350
+ value = value.replace(/[^\d]/g, '');
351
+
352
+ owner.blocks.forEach(function (length, index) {
353
+ if (value.length > 0) {
354
+ var sub = value.slice(0, length),
355
+ sub0 = sub.slice(0, 1),
356
+ rest = value.slice(length);
357
+
358
+ switch (owner.datePattern[index]) {
359
+ case 'd':
360
+ if (sub === '00') {
361
+ sub = '01';
362
+ } else if (parseInt(sub0, 10) > 3) {
363
+ sub = '0' + sub0;
364
+ } else if (parseInt(sub, 10) > 31) {
365
+ sub = '31';
366
+ }
367
+
368
+ break;
369
+
370
+ case 'm':
371
+ if (sub === '00') {
372
+ sub = '01';
373
+ } else if (parseInt(sub0, 10) > 1) {
374
+ sub = '0' + sub0;
375
+ } else if (parseInt(sub, 10) > 12) {
376
+ sub = '12';
377
+ }
378
+
379
+ break;
380
+ }
381
+
382
+ result += sub;
383
+
384
+ // update remaining string
385
+ value = rest;
386
+ }
387
+ });
388
+
389
+ return this.getFixedDateString(result);
390
+ },
391
+
392
+ getFixedDateString: function (value) {
393
+ var owner = this, datePattern = owner.datePattern, date = [],
394
+ dayIndex = 0, monthIndex = 0, yearIndex = 0,
395
+ dayStartIndex = 0, monthStartIndex = 0, yearStartIndex = 0,
396
+ day, month, year, fullYearDone = false;
397
+
398
+ // mm-dd || dd-mm
399
+ if (value.length === 4 && datePattern[0].toLowerCase() !== 'y' && datePattern[1].toLowerCase() !== 'y') {
400
+ dayStartIndex = datePattern[0] === 'd' ? 0 : 2;
401
+ monthStartIndex = 2 - dayStartIndex;
402
+ day = parseInt(value.slice(dayStartIndex, dayStartIndex + 2), 10);
403
+ month = parseInt(value.slice(monthStartIndex, monthStartIndex + 2), 10);
404
+
405
+ date = this.getFixedDate(day, month, 0);
406
+ }
407
+
408
+ // yyyy-mm-dd || yyyy-dd-mm || mm-dd-yyyy || dd-mm-yyyy || dd-yyyy-mm || mm-yyyy-dd
409
+ if (value.length === 8) {
410
+ datePattern.forEach(function (type, index) {
411
+ switch (type) {
412
+ case 'd':
413
+ dayIndex = index;
414
+ break;
415
+ case 'm':
416
+ monthIndex = index;
417
+ break;
418
+ default:
419
+ yearIndex = index;
420
+ break;
421
+ }
422
+ });
423
+
424
+ yearStartIndex = yearIndex * 2;
425
+ dayStartIndex = (dayIndex <= yearIndex) ? dayIndex * 2 : (dayIndex * 2 + 2);
426
+ monthStartIndex = (monthIndex <= yearIndex) ? monthIndex * 2 : (monthIndex * 2 + 2);
427
+
428
+ day = parseInt(value.slice(dayStartIndex, dayStartIndex + 2), 10);
429
+ month = parseInt(value.slice(monthStartIndex, monthStartIndex + 2), 10);
430
+ year = parseInt(value.slice(yearStartIndex, yearStartIndex + 4), 10);
431
+
432
+ fullYearDone = value.slice(yearStartIndex, yearStartIndex + 4).length === 4;
433
+
434
+ date = this.getFixedDate(day, month, year);
435
+ }
436
+
437
+ // mm-yy || yy-mm
438
+ if (value.length === 4 && (datePattern[0] === 'y' || datePattern[1] === 'y')) {
439
+ monthStartIndex = datePattern[0] === 'm' ? 0 : 2;
440
+ yearStartIndex = 2 - monthStartIndex;
441
+ month = parseInt(value.slice(monthStartIndex, monthStartIndex + 2), 10);
442
+ year = parseInt(value.slice(yearStartIndex, yearStartIndex + 2), 10);
443
+
444
+ fullYearDone = value.slice(yearStartIndex, yearStartIndex + 2).length === 2;
445
+
446
+ date = [0, month, year];
447
+ }
448
+
449
+ // mm-yyyy || yyyy-mm
450
+ if (value.length === 6 && (datePattern[0] === 'Y' || datePattern[1] === 'Y')) {
451
+ monthStartIndex = datePattern[0] === 'm' ? 0 : 4;
452
+ yearStartIndex = 2 - 0.5 * monthStartIndex;
453
+ month = parseInt(value.slice(monthStartIndex, monthStartIndex + 2), 10);
454
+ year = parseInt(value.slice(yearStartIndex, yearStartIndex + 4), 10);
455
+
456
+ fullYearDone = value.slice(yearStartIndex, yearStartIndex + 4).length === 4;
457
+
458
+ date = [0, month, year];
459
+ }
460
+
461
+ date = owner.getRangeFixedDate(date);
462
+ owner.date = date;
463
+
464
+ var result = date.length === 0 ? value : datePattern.reduce(function (previous, current) {
465
+ switch (current) {
466
+ case 'd':
467
+ return previous + (date[0] === 0 ? '' : owner.addLeadingZero(date[0]));
468
+ case 'm':
469
+ return previous + (date[1] === 0 ? '' : owner.addLeadingZero(date[1]));
470
+ case 'y':
471
+ return previous + (fullYearDone ? owner.addLeadingZeroForYear(date[2], false) : '');
472
+ case 'Y':
473
+ return previous + (fullYearDone ? owner.addLeadingZeroForYear(date[2], true) : '');
474
+ }
475
+ }, '');
476
+
477
+ return result;
478
+ },
479
+
480
+ getRangeFixedDate: function (date) {
481
+ var owner = this,
482
+ datePattern = owner.datePattern,
483
+ dateMin = owner.dateMin || [],
484
+ dateMax = owner.dateMax || [];
485
+
486
+ if (!date.length || (dateMin.length < 3 && dateMax.length < 3)) return date;
487
+
488
+ if (
489
+ datePattern.find(function(x) {
490
+ return x.toLowerCase() === 'y';
491
+ }) &&
492
+ date[2] === 0
493
+ ) return date;
494
+
495
+ if (dateMax.length && (dateMax[2] < date[2] || (
496
+ dateMax[2] === date[2] && (dateMax[1] < date[1] || (
497
+ dateMax[1] === date[1] && dateMax[0] < date[0]
498
+ ))
499
+ ))) return dateMax;
500
+
501
+ if (dateMin.length && (dateMin[2] > date[2] || (
502
+ dateMin[2] === date[2] && (dateMin[1] > date[1] || (
503
+ dateMin[1] === date[1] && dateMin[0] > date[0]
504
+ ))
505
+ ))) return dateMin;
506
+
507
+ return date;
508
+ },
509
+
510
+ getFixedDate: function (day, month, year) {
511
+ day = Math.min(day, 31);
512
+ month = Math.min(month, 12);
513
+ year = parseInt((year || 0), 10);
514
+
515
+ if ((month < 7 && month % 2 === 0) || (month > 8 && month % 2 === 1)) {
516
+ day = Math.min(day, month === 2 ? (this.isLeapYear(year) ? 29 : 28) : 30);
517
+ }
518
+
519
+ return [day, month, year];
520
+ },
521
+
522
+ isLeapYear: function (year) {
523
+ return ((year % 4 === 0) && (year % 100 !== 0)) || (year % 400 === 0);
524
+ },
525
+
526
+ addLeadingZero: function (number) {
527
+ return (number < 10 ? '0' : '') + number;
528
+ },
529
+
530
+ addLeadingZeroForYear: function (number, fullYearMode) {
531
+ if (fullYearMode) {
532
+ return (number < 10 ? '000' : (number < 100 ? '00' : (number < 1000 ? '0' : ''))) + number;
533
+ }
534
+
535
+ return (number < 10 ? '0' : '') + number;
536
+ }
537
+ };
538
+
539
+ var DateFormatter_1 = DateFormatter;
540
+
541
+ var TimeFormatter = function (timePattern, timeFormat) {
542
+ var owner = this;
543
+
544
+ owner.time = [];
545
+ owner.blocks = [];
546
+ owner.timePattern = timePattern;
547
+ owner.timeFormat = timeFormat;
548
+ owner.initBlocks();
549
+ };
550
+
551
+ TimeFormatter.prototype = {
552
+ initBlocks: function () {
553
+ var owner = this;
554
+ owner.timePattern.forEach(function () {
555
+ owner.blocks.push(2);
556
+ });
557
+ },
558
+
559
+ getISOFormatTime: function () {
560
+ var owner = this,
561
+ time = owner.time;
562
+
563
+ return time[2] ? (
564
+ owner.addLeadingZero(time[0]) + ':' + owner.addLeadingZero(time[1]) + ':' + owner.addLeadingZero(time[2])
565
+ ) : '';
566
+ },
567
+
568
+ getBlocks: function () {
569
+ return this.blocks;
570
+ },
571
+
572
+ getTimeFormatOptions: function () {
573
+ var owner = this;
574
+ if (String(owner.timeFormat) === '12') {
575
+ return {
576
+ maxHourFirstDigit: 1,
577
+ maxHours: 12,
578
+ maxMinutesFirstDigit: 5,
579
+ maxMinutes: 60
580
+ };
581
+ }
582
+
583
+ return {
584
+ maxHourFirstDigit: 2,
585
+ maxHours: 23,
586
+ maxMinutesFirstDigit: 5,
587
+ maxMinutes: 60
588
+ };
589
+ },
590
+
591
+ getValidatedTime: function (value) {
592
+ var owner = this, result = '';
593
+
594
+ value = value.replace(/[^\d]/g, '');
595
+
596
+ var timeFormatOptions = owner.getTimeFormatOptions();
597
+
598
+ owner.blocks.forEach(function (length, index) {
599
+ if (value.length > 0) {
600
+ var sub = value.slice(0, length),
601
+ sub0 = sub.slice(0, 1),
602
+ rest = value.slice(length);
603
+
604
+ switch (owner.timePattern[index]) {
605
+
606
+ case 'h':
607
+ if (parseInt(sub0, 10) > timeFormatOptions.maxHourFirstDigit) {
608
+ sub = '0' + sub0;
609
+ } else if (parseInt(sub, 10) > timeFormatOptions.maxHours) {
610
+ sub = timeFormatOptions.maxHours + '';
611
+ }
612
+
613
+ break;
614
+
615
+ case 'm':
616
+ case 's':
617
+ if (parseInt(sub0, 10) > timeFormatOptions.maxMinutesFirstDigit) {
618
+ sub = '0' + sub0;
619
+ } else if (parseInt(sub, 10) > timeFormatOptions.maxMinutes) {
620
+ sub = timeFormatOptions.maxMinutes + '';
621
+ }
622
+ break;
623
+ }
624
+
625
+ result += sub;
626
+
627
+ // update remaining string
628
+ value = rest;
629
+ }
630
+ });
631
+
632
+ return this.getFixedTimeString(result);
633
+ },
634
+
635
+ getFixedTimeString: function (value) {
636
+ var owner = this, timePattern = owner.timePattern, time = [],
637
+ secondIndex = 0, minuteIndex = 0, hourIndex = 0,
638
+ secondStartIndex = 0, minuteStartIndex = 0, hourStartIndex = 0,
639
+ second, minute, hour;
640
+
641
+ if (value.length === 6) {
642
+ timePattern.forEach(function (type, index) {
643
+ switch (type) {
644
+ case 's':
645
+ secondIndex = index * 2;
646
+ break;
647
+ case 'm':
648
+ minuteIndex = index * 2;
649
+ break;
650
+ case 'h':
651
+ hourIndex = index * 2;
652
+ break;
653
+ }
654
+ });
655
+
656
+ hourStartIndex = hourIndex;
657
+ minuteStartIndex = minuteIndex;
658
+ secondStartIndex = secondIndex;
659
+
660
+ second = parseInt(value.slice(secondStartIndex, secondStartIndex + 2), 10);
661
+ minute = parseInt(value.slice(minuteStartIndex, minuteStartIndex + 2), 10);
662
+ hour = parseInt(value.slice(hourStartIndex, hourStartIndex + 2), 10);
663
+
664
+ time = this.getFixedTime(hour, minute, second);
665
+ }
666
+
667
+ if (value.length === 4 && owner.timePattern.indexOf('s') < 0) {
668
+ timePattern.forEach(function (type, index) {
669
+ switch (type) {
670
+ case 'm':
671
+ minuteIndex = index * 2;
672
+ break;
673
+ case 'h':
674
+ hourIndex = index * 2;
675
+ break;
676
+ }
677
+ });
678
+
679
+ hourStartIndex = hourIndex;
680
+ minuteStartIndex = minuteIndex;
681
+
682
+ second = 0;
683
+ minute = parseInt(value.slice(minuteStartIndex, minuteStartIndex + 2), 10);
684
+ hour = parseInt(value.slice(hourStartIndex, hourStartIndex + 2), 10);
685
+
686
+ time = this.getFixedTime(hour, minute, second);
687
+ }
688
+
689
+ owner.time = time;
690
+
691
+ return time.length === 0 ? value : timePattern.reduce(function (previous, current) {
692
+ switch (current) {
693
+ case 's':
694
+ return previous + owner.addLeadingZero(time[2]);
695
+ case 'm':
696
+ return previous + owner.addLeadingZero(time[1]);
697
+ case 'h':
698
+ return previous + owner.addLeadingZero(time[0]);
699
+ }
700
+ }, '');
701
+ },
702
+
703
+ getFixedTime: function (hour, minute, second) {
704
+ second = Math.min(parseInt(second || 0, 10), 60);
705
+ minute = Math.min(minute, 60);
706
+ hour = Math.min(hour, 60);
707
+
708
+ return [hour, minute, second];
709
+ },
710
+
711
+ addLeadingZero: function (number) {
712
+ return (number < 10 ? '0' : '') + number;
713
+ }
714
+ };
715
+
716
+ var TimeFormatter_1 = TimeFormatter;
717
+
718
+ var PhoneFormatter = function (formatter, delimiter) {
719
+ var owner = this;
720
+
721
+ owner.delimiter = (delimiter || delimiter === '') ? delimiter : ' ';
722
+ owner.delimiterRE = delimiter ? new RegExp('\\' + delimiter, 'g') : '';
723
+
724
+ owner.formatter = formatter;
725
+ };
726
+
727
+ PhoneFormatter.prototype = {
728
+ setFormatter: function (formatter) {
729
+ this.formatter = formatter;
730
+ },
731
+
732
+ format: function (phoneNumber) {
733
+ var owner = this;
734
+
735
+ owner.formatter.clear();
736
+
737
+ // only keep number and +
738
+ phoneNumber = phoneNumber.replace(/[^\d+]/g, '');
739
+
740
+ // strip non-leading +
741
+ phoneNumber = phoneNumber.replace(/^\+/, 'B').replace(/\+/g, '').replace('B', '+');
742
+
743
+ // strip delimiter
744
+ phoneNumber = phoneNumber.replace(owner.delimiterRE, '');
745
+
746
+ var result = '', current, validated = false;
747
+
748
+ for (var i = 0, iMax = phoneNumber.length; i < iMax; i++) {
749
+ current = owner.formatter.inputDigit(phoneNumber.charAt(i));
750
+
751
+ // has ()- or space inside
752
+ if (/[\s()-]/g.test(current)) {
753
+ result = current;
754
+
755
+ validated = true;
756
+ } else {
757
+ if (!validated) {
758
+ result = current;
759
+ }
760
+ // else: over length input
761
+ // it turns to invalid number again
762
+ }
763
+ }
764
+
765
+ // strip ()
766
+ // e.g. US: 7161234567 returns (716) 123-4567
767
+ result = result.replace(/[()]/g, '');
768
+ // replace library delimiter with user customized delimiter
769
+ result = result.replace(/[\s-]/g, owner.delimiter);
770
+
771
+ return result;
772
+ }
773
+ };
774
+
775
+ var PhoneFormatter_1 = PhoneFormatter;
776
+
777
+ var CreditCardDetector = {
778
+ blocks: {
779
+ uatp: [4, 5, 6],
780
+ amex: [4, 6, 5],
781
+ diners: [4, 6, 4],
782
+ discover: [4, 4, 4, 4],
783
+ mastercard: [4, 4, 4, 4],
784
+ dankort: [4, 4, 4, 4],
785
+ instapayment: [4, 4, 4, 4],
786
+ jcb15: [4, 6, 5],
787
+ jcb: [4, 4, 4, 4],
788
+ maestro: [4, 4, 4, 4],
789
+ visa: [4, 4, 4, 4],
790
+ mir: [4, 4, 4, 4],
791
+ unionPay: [4, 4, 4, 4],
792
+ general: [4, 4, 4, 4]
793
+ },
794
+
795
+ re: {
796
+ // starts with 1; 15 digits, not starts with 1800 (jcb card)
797
+ uatp: /^(?!1800)1\d{0,14}/,
798
+
799
+ // starts with 34/37; 15 digits
800
+ amex: /^3[47]\d{0,13}/,
801
+
802
+ // starts with 6011/65/644-649; 16 digits
803
+ discover: /^(?:6011|65\d{0,2}|64[4-9]\d?)\d{0,12}/,
804
+
805
+ // starts with 300-305/309 or 36/38/39; 14 digits
806
+ diners: /^3(?:0([0-5]|9)|[689]\d?)\d{0,11}/,
807
+
808
+ // starts with 51-55/2221–2720; 16 digits
809
+ mastercard: /^(5[1-5]\d{0,2}|22[2-9]\d{0,1}|2[3-7]\d{0,2})\d{0,12}/,
810
+
811
+ // starts with 5019/4175/4571; 16 digits
812
+ dankort: /^(5019|4175|4571)\d{0,12}/,
813
+
814
+ // starts with 637-639; 16 digits
815
+ instapayment: /^63[7-9]\d{0,13}/,
816
+
817
+ // starts with 2131/1800; 15 digits
818
+ jcb15: /^(?:2131|1800)\d{0,11}/,
819
+
820
+ // starts with 2131/1800/35; 16 digits
821
+ jcb: /^(?:35\d{0,2})\d{0,12}/,
822
+
823
+ // starts with 50/56-58/6304/67; 16 digits
824
+ maestro: /^(?:5[0678]\d{0,2}|6304|67\d{0,2})\d{0,12}/,
825
+
826
+ // starts with 22; 16 digits
827
+ mir: /^220[0-4]\d{0,12}/,
828
+
829
+ // starts with 4; 16 digits
830
+ visa: /^4\d{0,15}/,
831
+
832
+ // starts with 62/81; 16 digits
833
+ unionPay: /^(62|81)\d{0,14}/
834
+ },
835
+
836
+ getStrictBlocks: function (block) {
837
+ var total = block.reduce(function (prev, current) {
838
+ return prev + current;
839
+ }, 0);
840
+
841
+ return block.concat(19 - total);
842
+ },
843
+
844
+ getInfo: function (value, strictMode) {
845
+ var blocks = CreditCardDetector.blocks,
846
+ re = CreditCardDetector.re;
847
+
848
+ // Some credit card can have up to 19 digits number.
849
+ // Set strictMode to true will remove the 16 max-length restrain,
850
+ // however, I never found any website validate card number like
851
+ // this, hence probably you don't want to enable this option.
852
+ strictMode = !!strictMode;
853
+
854
+ for (var key in re) {
855
+ if (re[key].test(value)) {
856
+ var matchedBlocks = blocks[key];
857
+ return {
858
+ type: key,
859
+ blocks: strictMode ? this.getStrictBlocks(matchedBlocks) : matchedBlocks
860
+ };
861
+ }
862
+ }
863
+
864
+ return {
865
+ type: 'unknown',
866
+ blocks: strictMode ? this.getStrictBlocks(blocks.general) : blocks.general
867
+ };
868
+ }
869
+ };
870
+
871
+ var CreditCardDetector_1 = CreditCardDetector;
872
+
873
+ var Util = {
874
+ noop: function () {
875
+ },
876
+
877
+ strip: function (value, re) {
878
+ return value.replace(re, '');
879
+ },
880
+
881
+ getPostDelimiter: function (value, delimiter, delimiters) {
882
+ // single delimiter
883
+ if (delimiters.length === 0) {
884
+ return value.slice(-delimiter.length) === delimiter ? delimiter : '';
885
+ }
886
+
887
+ // multiple delimiters
888
+ var matchedDelimiter = '';
889
+ delimiters.forEach(function (current) {
890
+ if (value.slice(-current.length) === current) {
891
+ matchedDelimiter = current;
892
+ }
893
+ });
894
+
895
+ return matchedDelimiter;
896
+ },
897
+
898
+ getDelimiterREByDelimiter: function (delimiter) {
899
+ return new RegExp(delimiter.replace(/([.?*+^$[\]\\(){}|-])/g, '\\$1'), 'g');
900
+ },
901
+
902
+ getNextCursorPosition: function (prevPos, oldValue, newValue, delimiter, delimiters) {
903
+ // If cursor was at the end of value, just place it back.
904
+ // Because new value could contain additional chars.
905
+ if (oldValue.length === prevPos) {
906
+ return newValue.length;
907
+ }
908
+
909
+ return prevPos + this.getPositionOffset(prevPos, oldValue, newValue, delimiter ,delimiters);
910
+ },
911
+
912
+ getPositionOffset: function (prevPos, oldValue, newValue, delimiter, delimiters) {
913
+ var oldRawValue, newRawValue, lengthOffset;
914
+
915
+ oldRawValue = this.stripDelimiters(oldValue.slice(0, prevPos), delimiter, delimiters);
916
+ newRawValue = this.stripDelimiters(newValue.slice(0, prevPos), delimiter, delimiters);
917
+ lengthOffset = oldRawValue.length - newRawValue.length;
918
+
919
+ return (lengthOffset !== 0) ? (lengthOffset / Math.abs(lengthOffset)) : 0;
920
+ },
921
+
922
+ stripDelimiters: function (value, delimiter, delimiters) {
923
+ var owner = this;
924
+
925
+ // single delimiter
926
+ if (delimiters.length === 0) {
927
+ var delimiterRE = delimiter ? owner.getDelimiterREByDelimiter(delimiter) : '';
928
+
929
+ return value.replace(delimiterRE, '');
930
+ }
931
+
932
+ // multiple delimiters
933
+ delimiters.forEach(function (current) {
934
+ current.split('').forEach(function (letter) {
935
+ value = value.replace(owner.getDelimiterREByDelimiter(letter), '');
936
+ });
937
+ });
938
+
939
+ return value;
940
+ },
941
+
942
+ headStr: function (str, length) {
943
+ return str.slice(0, length);
944
+ },
945
+
946
+ getMaxLength: function (blocks) {
947
+ return blocks.reduce(function (previous, current) {
948
+ return previous + current;
949
+ }, 0);
950
+ },
951
+
952
+ // strip prefix
953
+ // Before type | After type | Return value
954
+ // PEFIX-... | PEFIX-... | ''
955
+ // PREFIX-123 | PEFIX-123 | 123
956
+ // PREFIX-123 | PREFIX-23 | 23
957
+ // PREFIX-123 | PREFIX-1234 | 1234
958
+ getPrefixStrippedValue: function (value, prefix, prefixLength, prevResult, delimiter, delimiters, noImmediatePrefix, tailPrefix, signBeforePrefix) {
959
+ // No prefix
960
+ if (prefixLength === 0) {
961
+ return value;
962
+ }
963
+
964
+ // Value is prefix
965
+ if (value === prefix && value !== '') {
966
+ return '';
967
+ }
968
+
969
+ if (signBeforePrefix && (value.slice(0, 1) == '-')) {
970
+ var prev = (prevResult.slice(0, 1) == '-') ? prevResult.slice(1) : prevResult;
971
+ return '-' + this.getPrefixStrippedValue(value.slice(1), prefix, prefixLength, prev, delimiter, delimiters, noImmediatePrefix, tailPrefix, signBeforePrefix);
972
+ }
973
+
974
+ // Pre result prefix string does not match pre-defined prefix
975
+ if (prevResult.slice(0, prefixLength) !== prefix && !tailPrefix) {
976
+ // Check if the first time user entered something
977
+ if (noImmediatePrefix && !prevResult && value) return value;
978
+ return '';
979
+ } else if (prevResult.slice(-prefixLength) !== prefix && tailPrefix) {
980
+ // Check if the first time user entered something
981
+ if (noImmediatePrefix && !prevResult && value) return value;
982
+ return '';
983
+ }
984
+
985
+ var prevValue = this.stripDelimiters(prevResult, delimiter, delimiters);
986
+
987
+ // New value has issue, someone typed in between prefix letters
988
+ // Revert to pre value
989
+ if (value.slice(0, prefixLength) !== prefix && !tailPrefix) {
990
+ return prevValue.slice(prefixLength);
991
+ } else if (value.slice(-prefixLength) !== prefix && tailPrefix) {
992
+ return prevValue.slice(0, -prefixLength - 1);
993
+ }
994
+
995
+ // No issue, strip prefix for new value
996
+ return tailPrefix ? value.slice(0, -prefixLength) : value.slice(prefixLength);
997
+ },
998
+
999
+ getFirstDiffIndex: function (prev, current) {
1000
+ var index = 0;
1001
+
1002
+ while (prev.charAt(index) === current.charAt(index)) {
1003
+ if (prev.charAt(index++) === '') {
1004
+ return -1;
1005
+ }
1006
+ }
1007
+
1008
+ return index;
1009
+ },
1010
+
1011
+ getFormattedValue: function (value, blocks, blocksLength, delimiter, delimiters, delimiterLazyShow) {
1012
+ var result = '',
1013
+ multipleDelimiters = delimiters.length > 0,
1014
+ currentDelimiter = '';
1015
+
1016
+ // no options, normal input
1017
+ if (blocksLength === 0) {
1018
+ return value;
1019
+ }
1020
+
1021
+ blocks.forEach(function (length, index) {
1022
+ if (value.length > 0) {
1023
+ var sub = value.slice(0, length),
1024
+ rest = value.slice(length);
1025
+
1026
+ if (multipleDelimiters) {
1027
+ currentDelimiter = delimiters[delimiterLazyShow ? (index - 1) : index] || currentDelimiter;
1028
+ } else {
1029
+ currentDelimiter = delimiter;
1030
+ }
1031
+
1032
+ if (delimiterLazyShow) {
1033
+ if (index > 0) {
1034
+ result += currentDelimiter;
1035
+ }
1036
+
1037
+ result += sub;
1038
+ } else {
1039
+ result += sub;
1040
+
1041
+ if (sub.length === length && index < blocksLength - 1) {
1042
+ result += currentDelimiter;
1043
+ }
1044
+ }
1045
+
1046
+ // update remaining string
1047
+ value = rest;
1048
+ }
1049
+ });
1050
+
1051
+ return result;
1052
+ },
1053
+
1054
+ // move cursor to the end
1055
+ // the first time user focuses on an input with prefix
1056
+ fixPrefixCursor: function (el, prefix, delimiter, delimiters) {
1057
+ if (!el) {
1058
+ return;
1059
+ }
1060
+
1061
+ var val = el.value,
1062
+ appendix = delimiter || (delimiters[0] || ' ');
1063
+
1064
+ if (!el.setSelectionRange || !prefix || (prefix.length + appendix.length) <= val.length) {
1065
+ return;
1066
+ }
1067
+
1068
+ var len = val.length * 2;
1069
+
1070
+ // set timeout to avoid blink
1071
+ setTimeout(function () {
1072
+ el.setSelectionRange(len, len);
1073
+ }, 1);
1074
+ },
1075
+
1076
+ // Check if input field is fully selected
1077
+ checkFullSelection: function(value) {
1078
+ try {
1079
+ var selection = window.getSelection() || document.getSelection() || {};
1080
+ return selection.toString().length === value.length;
1081
+ } catch (ex) {
1082
+ // Ignore
1083
+ }
1084
+
1085
+ return false;
1086
+ },
1087
+
1088
+ setSelection: function (element, position, doc) {
1089
+ if (element !== this.getActiveElement(doc)) {
1090
+ return;
1091
+ }
1092
+
1093
+ // cursor is already in the end
1094
+ if (element && element.value.length <= position) {
1095
+ return;
1096
+ }
1097
+
1098
+ if (element.createTextRange) {
1099
+ var range = element.createTextRange();
1100
+
1101
+ range.move('character', position);
1102
+ range.select();
1103
+ } else {
1104
+ try {
1105
+ element.setSelectionRange(position, position);
1106
+ } catch (e) {
1107
+ // eslint-disable-next-line
1108
+ console.warn('The input element type does not support selection');
1109
+ }
1110
+ }
1111
+ },
1112
+
1113
+ getActiveElement: function(parent) {
1114
+ var activeElement = parent.activeElement;
1115
+ if (activeElement && activeElement.shadowRoot) {
1116
+ return this.getActiveElement(activeElement.shadowRoot);
1117
+ }
1118
+ return activeElement;
1119
+ },
1120
+
1121
+ isAndroid: function () {
1122
+ return navigator && /android/i.test(navigator.userAgent);
1123
+ },
1124
+
1125
+ // On Android chrome, the keyup and keydown events
1126
+ // always return key code 229 as a composition that
1127
+ // buffers the user’s keystrokes
1128
+ // see https://github.com/nosir/cleave.js/issues/147
1129
+ isAndroidBackspaceKeydown: function (lastInputValue, currentInputValue) {
1130
+ if (!this.isAndroid() || !lastInputValue || !currentInputValue) {
1131
+ return false;
1132
+ }
1133
+
1134
+ return currentInputValue === lastInputValue.slice(0, -1);
1135
+ }
1136
+ };
1137
+
1138
+ var Util_1 = Util;
1139
+
1140
+ /**
1141
+ * Props Assignment
1142
+ *
1143
+ * Separate this, so react module can share the usage
1144
+ */
1145
+ var DefaultProperties = {
1146
+ // Maybe change to object-assign
1147
+ // for now just keep it as simple
1148
+ assign: function (target, opts) {
1149
+ target = target || {};
1150
+ opts = opts || {};
1151
+
1152
+ // credit card
1153
+ target.creditCard = !!opts.creditCard;
1154
+ target.creditCardStrictMode = !!opts.creditCardStrictMode;
1155
+ target.creditCardType = '';
1156
+ target.onCreditCardTypeChanged = opts.onCreditCardTypeChanged || (function () {});
1157
+
1158
+ // phone
1159
+ target.phone = !!opts.phone;
1160
+ target.phoneRegionCode = opts.phoneRegionCode || 'AU';
1161
+ target.phoneFormatter = {};
1162
+
1163
+ // time
1164
+ target.time = !!opts.time;
1165
+ target.timePattern = opts.timePattern || ['h', 'm', 's'];
1166
+ target.timeFormat = opts.timeFormat || '24';
1167
+ target.timeFormatter = {};
1168
+
1169
+ // date
1170
+ target.date = !!opts.date;
1171
+ target.datePattern = opts.datePattern || ['d', 'm', 'Y'];
1172
+ target.dateMin = opts.dateMin || '';
1173
+ target.dateMax = opts.dateMax || '';
1174
+ target.dateFormatter = {};
1175
+
1176
+ // numeral
1177
+ target.numeral = !!opts.numeral;
1178
+ target.numeralIntegerScale = opts.numeralIntegerScale > 0 ? opts.numeralIntegerScale : 0;
1179
+ target.numeralDecimalScale = opts.numeralDecimalScale >= 0 ? opts.numeralDecimalScale : 2;
1180
+ target.numeralDecimalMark = opts.numeralDecimalMark || '.';
1181
+ target.numeralThousandsGroupStyle = opts.numeralThousandsGroupStyle || 'thousand';
1182
+ target.numeralPositiveOnly = !!opts.numeralPositiveOnly;
1183
+ target.stripLeadingZeroes = opts.stripLeadingZeroes !== false;
1184
+ target.signBeforePrefix = !!opts.signBeforePrefix;
1185
+ target.tailPrefix = !!opts.tailPrefix;
1186
+
1187
+ // others
1188
+ target.swapHiddenInput = !!opts.swapHiddenInput;
1189
+
1190
+ target.numericOnly = target.creditCard || target.date || !!opts.numericOnly;
1191
+
1192
+ target.uppercase = !!opts.uppercase;
1193
+ target.lowercase = !!opts.lowercase;
1194
+
1195
+ target.prefix = (target.creditCard || target.date) ? '' : (opts.prefix || '');
1196
+ target.noImmediatePrefix = !!opts.noImmediatePrefix;
1197
+ target.prefixLength = target.prefix.length;
1198
+ target.rawValueTrimPrefix = !!opts.rawValueTrimPrefix;
1199
+ target.copyDelimiter = !!opts.copyDelimiter;
1200
+
1201
+ target.initValue = (opts.initValue !== undefined && opts.initValue !== null) ? opts.initValue.toString() : '';
1202
+
1203
+ target.delimiter =
1204
+ (opts.delimiter || opts.delimiter === '') ? opts.delimiter :
1205
+ (opts.date ? '/' :
1206
+ (opts.time ? ':' :
1207
+ (opts.numeral ? ',' :
1208
+ (opts.phone ? ' ' :
1209
+ ' '))));
1210
+ target.delimiterLength = target.delimiter.length;
1211
+ target.delimiterLazyShow = !!opts.delimiterLazyShow;
1212
+ target.delimiters = opts.delimiters || [];
1213
+
1214
+ target.blocks = opts.blocks || [];
1215
+ target.blocksLength = target.blocks.length;
1216
+
1217
+ target.root = (typeof commonjsGlobal === 'object' && commonjsGlobal) ? commonjsGlobal : window;
1218
+ target.document = opts.document || target.root.document;
1219
+
1220
+ target.maxLength = 0;
1221
+
1222
+ target.backspace = false;
1223
+ target.result = '';
1224
+
1225
+ target.onValueChanged = opts.onValueChanged || (function () {});
1226
+
1227
+ return target;
1228
+ }
1229
+ };
1230
+
1231
+ var DefaultProperties_1 = DefaultProperties;
1232
+
1233
+ /**
1234
+ * Construct a new Cleave instance by passing the configuration object
1235
+ *
1236
+ * @param {String | HTMLElement} element
1237
+ * @param {Object} opts
1238
+ */
1239
+ var Cleave = function (element, opts) {
1240
+ var owner = this;
1241
+ var hasMultipleElements = false;
1242
+
1243
+ if (typeof element === 'string') {
1244
+ owner.element = document.querySelector(element);
1245
+ hasMultipleElements = document.querySelectorAll(element).length > 1;
1246
+ } else {
1247
+ if (typeof element.length !== 'undefined' && element.length > 0) {
1248
+ owner.element = element[0];
1249
+ hasMultipleElements = element.length > 1;
1250
+ } else {
1251
+ owner.element = element;
1252
+ }
1253
+ }
1254
+
1255
+ if (!owner.element) {
1256
+ throw new Error('[cleave.js] Please check the element');
1257
+ }
1258
+
1259
+ if (hasMultipleElements) {
1260
+ try {
1261
+ // eslint-disable-next-line
1262
+ console.warn('[cleave.js] Multiple input fields matched, cleave.js will only take the first one.');
1263
+ } catch (e) {
1264
+ // Old IE
1265
+ }
1266
+ }
1267
+
1268
+ opts.initValue = owner.element.value;
1269
+
1270
+ owner.properties = Cleave.DefaultProperties.assign({}, opts);
1271
+
1272
+ owner.init();
1273
+ };
1274
+
1275
+ Cleave.prototype = {
1276
+ init: function () {
1277
+ var owner = this, pps = owner.properties;
1278
+
1279
+ // no need to use this lib
1280
+ if (!pps.numeral && !pps.phone && !pps.creditCard && !pps.time && !pps.date && (pps.blocksLength === 0 && !pps.prefix)) {
1281
+ owner.onInput(pps.initValue);
1282
+
1283
+ return;
1284
+ }
1285
+
1286
+ pps.maxLength = Cleave.Util.getMaxLength(pps.blocks);
1287
+
1288
+ owner.isAndroid = Cleave.Util.isAndroid();
1289
+ owner.lastInputValue = '';
1290
+ owner.isBackward = '';
1291
+
1292
+ owner.onChangeListener = owner.onChange.bind(owner);
1293
+ owner.onKeyDownListener = owner.onKeyDown.bind(owner);
1294
+ owner.onFocusListener = owner.onFocus.bind(owner);
1295
+ owner.onCutListener = owner.onCut.bind(owner);
1296
+ owner.onCopyListener = owner.onCopy.bind(owner);
1297
+
1298
+ owner.initSwapHiddenInput();
1299
+
1300
+ owner.element.addEventListener('input', owner.onChangeListener);
1301
+ owner.element.addEventListener('keydown', owner.onKeyDownListener);
1302
+ owner.element.addEventListener('focus', owner.onFocusListener);
1303
+ owner.element.addEventListener('cut', owner.onCutListener);
1304
+ owner.element.addEventListener('copy', owner.onCopyListener);
1305
+
1306
+
1307
+ owner.initPhoneFormatter();
1308
+ owner.initDateFormatter();
1309
+ owner.initTimeFormatter();
1310
+ owner.initNumeralFormatter();
1311
+
1312
+ // avoid touch input field if value is null
1313
+ // otherwise Firefox will add red box-shadow for <input required />
1314
+ if (pps.initValue || (pps.prefix && !pps.noImmediatePrefix)) {
1315
+ owner.onInput(pps.initValue);
1316
+ }
1317
+ },
1318
+
1319
+ initSwapHiddenInput: function () {
1320
+ var owner = this, pps = owner.properties;
1321
+ if (!pps.swapHiddenInput) return;
1322
+
1323
+ var inputFormatter = owner.element.cloneNode(true);
1324
+ owner.element.parentNode.insertBefore(inputFormatter, owner.element);
1325
+
1326
+ owner.elementSwapHidden = owner.element;
1327
+ owner.elementSwapHidden.type = 'hidden';
1328
+
1329
+ owner.element = inputFormatter;
1330
+ owner.element.id = '';
1331
+ },
1332
+
1333
+ initNumeralFormatter: function () {
1334
+ var owner = this, pps = owner.properties;
1335
+
1336
+ if (!pps.numeral) {
1337
+ return;
1338
+ }
1339
+
1340
+ pps.numeralFormatter = new Cleave.NumeralFormatter(
1341
+ pps.numeralDecimalMark,
1342
+ pps.numeralIntegerScale,
1343
+ pps.numeralDecimalScale,
1344
+ pps.numeralThousandsGroupStyle,
1345
+ pps.numeralPositiveOnly,
1346
+ pps.stripLeadingZeroes,
1347
+ pps.prefix,
1348
+ pps.signBeforePrefix,
1349
+ pps.tailPrefix,
1350
+ pps.delimiter
1351
+ );
1352
+ },
1353
+
1354
+ initTimeFormatter: function() {
1355
+ var owner = this, pps = owner.properties;
1356
+
1357
+ if (!pps.time) {
1358
+ return;
1359
+ }
1360
+
1361
+ pps.timeFormatter = new Cleave.TimeFormatter(pps.timePattern, pps.timeFormat);
1362
+ pps.blocks = pps.timeFormatter.getBlocks();
1363
+ pps.blocksLength = pps.blocks.length;
1364
+ pps.maxLength = Cleave.Util.getMaxLength(pps.blocks);
1365
+ },
1366
+
1367
+ initDateFormatter: function () {
1368
+ var owner = this, pps = owner.properties;
1369
+
1370
+ if (!pps.date) {
1371
+ return;
1372
+ }
1373
+
1374
+ pps.dateFormatter = new Cleave.DateFormatter(pps.datePattern, pps.dateMin, pps.dateMax);
1375
+ pps.blocks = pps.dateFormatter.getBlocks();
1376
+ pps.blocksLength = pps.blocks.length;
1377
+ pps.maxLength = Cleave.Util.getMaxLength(pps.blocks);
1378
+ },
1379
+
1380
+ initPhoneFormatter: function () {
1381
+ var owner = this, pps = owner.properties;
1382
+
1383
+ if (!pps.phone) {
1384
+ return;
1385
+ }
1386
+
1387
+ // Cleave.AsYouTypeFormatter should be provided by
1388
+ // external google closure lib
1389
+ try {
1390
+ pps.phoneFormatter = new Cleave.PhoneFormatter(
1391
+ new pps.root.Cleave.AsYouTypeFormatter(pps.phoneRegionCode),
1392
+ pps.delimiter
1393
+ );
1394
+ } catch (ex) {
1395
+ throw new Error('[cleave.js] Please include phone-type-formatter.{country}.js lib');
1396
+ }
1397
+ },
1398
+
1399
+ onKeyDown: function (event) {
1400
+ var owner = this,
1401
+ charCode = event.which || event.keyCode;
1402
+
1403
+ owner.lastInputValue = owner.element.value;
1404
+ owner.isBackward = charCode === 8;
1405
+ },
1406
+
1407
+ onChange: function (event) {
1408
+ var owner = this, pps = owner.properties,
1409
+ Util = Cleave.Util;
1410
+
1411
+ owner.isBackward = owner.isBackward || event.inputType === 'deleteContentBackward';
1412
+
1413
+ var postDelimiter = Util.getPostDelimiter(owner.lastInputValue, pps.delimiter, pps.delimiters);
1414
+
1415
+ if (owner.isBackward && postDelimiter) {
1416
+ pps.postDelimiterBackspace = postDelimiter;
1417
+ } else {
1418
+ pps.postDelimiterBackspace = false;
1419
+ }
1420
+
1421
+ this.onInput(this.element.value);
1422
+ },
1423
+
1424
+ onFocus: function () {
1425
+ var owner = this,
1426
+ pps = owner.properties;
1427
+ owner.lastInputValue = owner.element.value;
1428
+
1429
+ if (pps.prefix && pps.noImmediatePrefix && !owner.element.value) {
1430
+ this.onInput(pps.prefix);
1431
+ }
1432
+
1433
+ Cleave.Util.fixPrefixCursor(owner.element, pps.prefix, pps.delimiter, pps.delimiters);
1434
+ },
1435
+
1436
+ onCut: function (e) {
1437
+ if (!Cleave.Util.checkFullSelection(this.element.value)) return;
1438
+ this.copyClipboardData(e);
1439
+ this.onInput('');
1440
+ },
1441
+
1442
+ onCopy: function (e) {
1443
+ if (!Cleave.Util.checkFullSelection(this.element.value)) return;
1444
+ this.copyClipboardData(e);
1445
+ },
1446
+
1447
+ copyClipboardData: function (e) {
1448
+ var owner = this,
1449
+ pps = owner.properties,
1450
+ Util = Cleave.Util,
1451
+ inputValue = owner.element.value,
1452
+ textToCopy = '';
1453
+
1454
+ if (!pps.copyDelimiter) {
1455
+ textToCopy = Util.stripDelimiters(inputValue, pps.delimiter, pps.delimiters);
1456
+ } else {
1457
+ textToCopy = inputValue;
1458
+ }
1459
+
1460
+ try {
1461
+ if (e.clipboardData) {
1462
+ e.clipboardData.setData('Text', textToCopy);
1463
+ } else {
1464
+ window.clipboardData.setData('Text', textToCopy);
1465
+ }
1466
+
1467
+ e.preventDefault();
1468
+ } catch (ex) {
1469
+ // empty
1470
+ }
1471
+ },
1472
+
1473
+ onInput: function (value) {
1474
+ var owner = this, pps = owner.properties,
1475
+ Util = Cleave.Util;
1476
+
1477
+ // case 1: delete one more character "4"
1478
+ // 1234*| -> hit backspace -> 123|
1479
+ // case 2: last character is not delimiter which is:
1480
+ // 12|34* -> hit backspace -> 1|34*
1481
+ // note: no need to apply this for numeral mode
1482
+ var postDelimiterAfter = Util.getPostDelimiter(value, pps.delimiter, pps.delimiters);
1483
+ if (!pps.numeral && pps.postDelimiterBackspace && !postDelimiterAfter) {
1484
+ value = Util.headStr(value, value.length - pps.postDelimiterBackspace.length);
1485
+ }
1486
+
1487
+ // phone formatter
1488
+ if (pps.phone) {
1489
+ if (pps.prefix && (!pps.noImmediatePrefix || value.length)) {
1490
+ pps.result = pps.prefix + pps.phoneFormatter.format(value).slice(pps.prefix.length);
1491
+ } else {
1492
+ pps.result = pps.phoneFormatter.format(value);
1493
+ }
1494
+ owner.updateValueState();
1495
+
1496
+ return;
1497
+ }
1498
+
1499
+ // numeral formatter
1500
+ if (pps.numeral) {
1501
+ // Do not show prefix when noImmediatePrefix is specified
1502
+ // This mostly because we need to show user the native input placeholder
1503
+ if (pps.prefix && pps.noImmediatePrefix && value.length === 0) {
1504
+ pps.result = '';
1505
+ } else {
1506
+ pps.result = pps.numeralFormatter.format(value);
1507
+ }
1508
+ owner.updateValueState();
1509
+
1510
+ return;
1511
+ }
1512
+
1513
+ // date
1514
+ if (pps.date) {
1515
+ value = pps.dateFormatter.getValidatedDate(value);
1516
+ }
1517
+
1518
+ // time
1519
+ if (pps.time) {
1520
+ value = pps.timeFormatter.getValidatedTime(value);
1521
+ }
1522
+
1523
+ // strip delimiters
1524
+ value = Util.stripDelimiters(value, pps.delimiter, pps.delimiters);
1525
+
1526
+ // strip prefix
1527
+ value = Util.getPrefixStrippedValue(value, pps.prefix, pps.prefixLength, pps.result, pps.delimiter, pps.delimiters, pps.noImmediatePrefix, pps.tailPrefix, pps.signBeforePrefix);
1528
+
1529
+ // strip non-numeric characters
1530
+ value = pps.numericOnly ? Util.strip(value, /[^\d]/g) : value;
1531
+
1532
+ // convert case
1533
+ value = pps.uppercase ? value.toUpperCase() : value;
1534
+ value = pps.lowercase ? value.toLowerCase() : value;
1535
+
1536
+ // prevent from showing prefix when no immediate option enabled with empty input value
1537
+ if (pps.prefix) {
1538
+ if (pps.tailPrefix) {
1539
+ value = value + pps.prefix;
1540
+ } else {
1541
+ value = pps.prefix + value;
1542
+ }
1543
+
1544
+
1545
+ // no blocks specified, no need to do formatting
1546
+ if (pps.blocksLength === 0) {
1547
+ pps.result = value;
1548
+ owner.updateValueState();
1549
+
1550
+ return;
1551
+ }
1552
+ }
1553
+
1554
+ // update credit card props
1555
+ if (pps.creditCard) {
1556
+ owner.updateCreditCardPropsByValue(value);
1557
+ }
1558
+
1559
+ // strip over length characters
1560
+ value = Util.headStr(value, pps.maxLength);
1561
+
1562
+ // apply blocks
1563
+ pps.result = Util.getFormattedValue(
1564
+ value,
1565
+ pps.blocks, pps.blocksLength,
1566
+ pps.delimiter, pps.delimiters, pps.delimiterLazyShow
1567
+ );
1568
+
1569
+ owner.updateValueState();
1570
+ },
1571
+
1572
+ updateCreditCardPropsByValue: function (value) {
1573
+ var owner = this, pps = owner.properties,
1574
+ Util = Cleave.Util,
1575
+ creditCardInfo;
1576
+
1577
+ // At least one of the first 4 characters has changed
1578
+ if (Util.headStr(pps.result, 4) === Util.headStr(value, 4)) {
1579
+ return;
1580
+ }
1581
+
1582
+ creditCardInfo = Cleave.CreditCardDetector.getInfo(value, pps.creditCardStrictMode);
1583
+
1584
+ pps.blocks = creditCardInfo.blocks;
1585
+ pps.blocksLength = pps.blocks.length;
1586
+ pps.maxLength = Util.getMaxLength(pps.blocks);
1587
+
1588
+ // credit card type changed
1589
+ if (pps.creditCardType !== creditCardInfo.type) {
1590
+ pps.creditCardType = creditCardInfo.type;
1591
+
1592
+ pps.onCreditCardTypeChanged.call(owner, pps.creditCardType);
1593
+ }
1594
+ },
1595
+
1596
+ updateValueState: function () {
1597
+ var owner = this,
1598
+ Util = Cleave.Util,
1599
+ pps = owner.properties;
1600
+
1601
+ if (!owner.element) {
1602
+ return;
1603
+ }
1604
+
1605
+ var endPos = owner.element.selectionEnd;
1606
+ var oldValue = owner.element.value;
1607
+ var newValue = pps.result;
1608
+
1609
+ endPos = Util.getNextCursorPosition(endPos, oldValue, newValue, pps.delimiter, pps.delimiters);
1610
+
1611
+ // fix Android browser type="text" input field
1612
+ // cursor not jumping issue
1613
+ if (owner.isAndroid) {
1614
+ window.setTimeout(function () {
1615
+ owner.element.value = newValue;
1616
+ Util.setSelection(owner.element, endPos, pps.document, false);
1617
+ owner.callOnValueChanged();
1618
+ }, 1);
1619
+
1620
+ return;
1621
+ }
1622
+
1623
+ owner.element.value = newValue;
1624
+ if (pps.swapHiddenInput) owner.elementSwapHidden.value = owner.getRawValue();
1625
+
1626
+ Util.setSelection(owner.element, endPos, pps.document, false);
1627
+ owner.callOnValueChanged();
1628
+ },
1629
+
1630
+ callOnValueChanged: function () {
1631
+ var owner = this,
1632
+ pps = owner.properties;
1633
+
1634
+ pps.onValueChanged.call(owner, {
1635
+ target: {
1636
+ name: owner.element.name,
1637
+ value: pps.result,
1638
+ rawValue: owner.getRawValue()
1639
+ }
1640
+ });
1641
+ },
1642
+
1643
+ setPhoneRegionCode: function (phoneRegionCode) {
1644
+ var owner = this, pps = owner.properties;
1645
+
1646
+ pps.phoneRegionCode = phoneRegionCode;
1647
+ owner.initPhoneFormatter();
1648
+ owner.onChange();
1649
+ },
1650
+
1651
+ setRawValue: function (value) {
1652
+ var owner = this, pps = owner.properties;
1653
+
1654
+ value = value !== undefined && value !== null ? value.toString() : '';
1655
+
1656
+ if (pps.numeral) {
1657
+ value = value.replace('.', pps.numeralDecimalMark);
1658
+ }
1659
+
1660
+ pps.postDelimiterBackspace = false;
1661
+
1662
+ owner.element.value = value;
1663
+ owner.onInput(value);
1664
+ },
1665
+
1666
+ getRawValue: function () {
1667
+ var owner = this,
1668
+ pps = owner.properties,
1669
+ Util = Cleave.Util,
1670
+ rawValue = owner.element.value;
1671
+
1672
+ if (pps.rawValueTrimPrefix) {
1673
+ rawValue = Util.getPrefixStrippedValue(rawValue, pps.prefix, pps.prefixLength, pps.result, pps.delimiter, pps.delimiters, pps.noImmediatePrefix, pps.tailPrefix, pps.signBeforePrefix);
1674
+ }
1675
+
1676
+ if (pps.numeral) {
1677
+ rawValue = pps.numeralFormatter.getRawValue(rawValue);
1678
+ } else {
1679
+ rawValue = Util.stripDelimiters(rawValue, pps.delimiter, pps.delimiters);
1680
+ }
1681
+
1682
+ return rawValue;
1683
+ },
1684
+
1685
+ getISOFormatDate: function () {
1686
+ var owner = this,
1687
+ pps = owner.properties;
1688
+
1689
+ return pps.date ? pps.dateFormatter.getISOFormatDate() : '';
1690
+ },
1691
+
1692
+ getISOFormatTime: function () {
1693
+ var owner = this,
1694
+ pps = owner.properties;
1695
+
1696
+ return pps.time ? pps.timeFormatter.getISOFormatTime() : '';
1697
+ },
1698
+
1699
+ getFormattedValue: function () {
1700
+ return this.element.value;
1701
+ },
1702
+
1703
+ destroy: function () {
1704
+ var owner = this;
1705
+
1706
+ owner.element.removeEventListener('input', owner.onChangeListener);
1707
+ owner.element.removeEventListener('keydown', owner.onKeyDownListener);
1708
+ owner.element.removeEventListener('focus', owner.onFocusListener);
1709
+ owner.element.removeEventListener('cut', owner.onCutListener);
1710
+ owner.element.removeEventListener('copy', owner.onCopyListener);
1711
+ },
1712
+
1713
+ toString: function () {
1714
+ return '[Cleave Object]';
1715
+ }
1716
+ };
1717
+
1718
+ Cleave.NumeralFormatter = NumeralFormatter_1;
1719
+ Cleave.DateFormatter = DateFormatter_1;
1720
+ Cleave.TimeFormatter = TimeFormatter_1;
1721
+ Cleave.PhoneFormatter = PhoneFormatter_1;
1722
+ Cleave.CreditCardDetector = CreditCardDetector_1;
1723
+ Cleave.Util = Util_1;
1724
+ Cleave.DefaultProperties = DefaultProperties_1;
1725
+
1726
+ // for angular directive
1727
+ ((typeof commonjsGlobal === 'object' && commonjsGlobal) ? commonjsGlobal : window)['Cleave'] = Cleave;
1728
+
1729
+ // CommonJS
1730
+ var Cleave_1 = Cleave;
1731
+
1732
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
1733
+ // See LICENSE in the project root for license information.
1734
+
1735
+ // ---------------------------------------------------------------------
1736
+
1737
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
1738
+
1739
+ class AuroLibraryRuntimeUtils {
1740
+
1741
+ /* eslint-disable jsdoc/require-param */
1742
+
1743
+ /**
1744
+ * This will register a new custom element with the browser.
1745
+ * @param {String} name - The name of the custom element.
1746
+ * @param {Object} componentClass - The class to register as a custom element.
1747
+ * @returns {void}
1748
+ */
1749
+ registerComponent(name, componentClass) {
1750
+ if (!customElements.get(name)) {
1751
+ customElements.define(name, class extends componentClass {});
1752
+ }
1753
+ }
1754
+
1755
+ /**
1756
+ * Finds and returns the closest HTML Element based on a selector.
1757
+ * @returns {void}
1758
+ */
1759
+ closestElement(
1760
+ selector, // selector like in .closest()
1761
+ base = this, // extra functionality to skip a parent
1762
+ __Closest = (el, found = el && el.closest(selector)) =>
1763
+ !el || el === document || el === window
1764
+ ? null // standard .closest() returns null for non-found selectors also
1765
+ : found
1766
+ ? found // found a selector INside this element
1767
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
1768
+ ) {
1769
+ return __Closest(base);
1770
+ }
1771
+ /* eslint-enable jsdoc/require-param */
1772
+
1773
+ /**
1774
+ * If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
1775
+ * @param {Object} elem - The element to check.
1776
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
1777
+ * @returns {void}
1778
+ */
1779
+ handleComponentTagRename(elem, tagName) {
1780
+ const tag = tagName.toLowerCase();
1781
+ const elemTag = elem.tagName.toLowerCase();
1782
+
1783
+ if (elemTag !== tag) {
1784
+ elem.setAttribute(tag, true);
1785
+ }
1786
+ }
1787
+
1788
+ /**
1789
+ * Validates if an element is a specific Auro component.
1790
+ * @param {Object} elem - The element to validate.
1791
+ * @param {String} tagName - The name of the Auro component to check against.
1792
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
1793
+ */
1794
+ elementMatch(elem, tagName) {
1795
+ const tag = tagName.toLowerCase();
1796
+ const elemTag = elem.tagName.toLowerCase();
1797
+
1798
+ return elemTag === tag || elem.hasAttribute(tag);
1799
+ }
1800
+ }
1801
+
1802
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
1803
+ // See LICENSE in the project root for license information.
1804
+
1805
+
1806
+ class AuroFormValidation {
1807
+ constructor() {
1808
+ this.runtimeUtils = new AuroLibraryRuntimeUtils();
1809
+ }
1810
+
1811
+ /**
1812
+ * Resets the element to its initial state.
1813
+ * @private
1814
+ * @param {object} elem - HTML element to reset.
1815
+ * @returns {void}
1816
+ */
1817
+ reset(elem) {
1818
+ elem.validity = undefined;
1819
+ elem.value = undefined;
1820
+
1821
+ // Resets the second value of the datepicker in range state
1822
+ if (elem.valueEnd) {
1823
+ elem.valueEnd = undefined;
1824
+ }
1825
+
1826
+ // Resets selected option of element
1827
+ if (elem.optionSelected) {
1828
+ elem.optionSelected = undefined;
1829
+ }
1830
+
1831
+ // Runs validation to handle error attribute
1832
+ this.validate(elem);
1833
+ }
1834
+
1835
+ /**
1836
+ * Validates the attributes of a given element based on predefined validation rules.
1837
+ *
1838
+ * @param {HTMLElement} elem - The element to be validated.
1839
+ * @returns {void}
1840
+ *
1841
+ * @example
1842
+ * // Assuming `inputElement` is a reference to an input element in the DOM
1843
+ * validateElementAttributes(inputElement);
1844
+ *
1845
+ * The function checks the element's attributes against the validation rules defined for 'input' and 'counter' types.
1846
+ * If a validation rule is violated, it sets the element's validity state and error message accordingly.
1847
+ *
1848
+ * Validation rules:
1849
+ * - input:
1850
+ * - length:
1851
+ * - tooShort: Checks if the value length is less than the minimum length.
1852
+ * - tooLong: Checks if the value length exceeds the maximum length.
1853
+ * - pattern:
1854
+ * - patternMismatch: Checks if the value does not match the specified pattern.
1855
+ * - counter:
1856
+ * - range:
1857
+ * - rangeOverflow: Checks if the value exceeds the maximum value.
1858
+ * - rangeUnderflow: Checks if the value is less than the minimum value.
1859
+ */
1860
+ validateElementAttributes(elem) {
1861
+ const validationRules = {
1862
+ input: {
1863
+ length: [
1864
+ {
1865
+ check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
1866
+ validity: 'tooShort',
1867
+ message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
1868
+ },
1869
+ {
1870
+ check: (e) => e.value?.length > e.maxLength,
1871
+ validity: 'tooLong',
1872
+ message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
1873
+ }
1874
+ ],
1875
+ pattern: [
1876
+ {
1877
+ check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
1878
+ validity: 'patternMismatch',
1879
+ message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
1880
+ }
1881
+ ]
1882
+ },
1883
+ counter: {
1884
+ range: [
1885
+ {
1886
+ check: (e) => e.max !== undefined && Number(e.max) < Number(e.value),
1887
+ validity: 'rangeOverflow',
1888
+ message: e => e.getAttribute('setCustomValidityRangeOverflow') || ''
1889
+ },
1890
+ {
1891
+ check: (e) => e.min !== undefined && Number(e.min) > Number(e.value),
1892
+ validity: 'rangeUnderflow',
1893
+ message: e => e.getAttribute('setCustomValidityRangeUnderflow') || ''
1894
+ }
1895
+ ]
1896
+ }
1897
+ };
1898
+
1899
+ let elementType;
1900
+ if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
1901
+ elementType = 'input';
1902
+ } else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
1903
+ elementType = 'counter';
1904
+ }
1905
+
1906
+ if (elementType) {
1907
+ const rules = validationRules[elementType];
1908
+
1909
+ if (rules) {
1910
+ Object.values(rules).flat().forEach(rule => {
1911
+ if (rule.check(elem)) {
1912
+ elem.validity = rule.validity;
1913
+ elem.errorMessage = rule.message(elem);
1914
+ }
1915
+ });
1916
+ }
1917
+ }
1918
+ }
1919
+
1920
+ /**
1921
+ * Determines the validity state of the element based on the type attribute.
1922
+ * @private
1923
+ * @param {object} elem - HTML element to validate.
1924
+ * @returns {void}
1925
+ */
1926
+ validateType(elem) {
1927
+ if (elem.hasAttribute('type')) {
1928
+ if (elem.type === 'email') {
1929
+ const emailRegex = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/; // eslint-disable-line require-unicode-regexp
1930
+
1931
+ if (!elem.value.match(emailRegex)) {
1932
+ elem.validity = 'patternMismatch';
1933
+ elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
1934
+ }
1935
+ } else if (elem.type === 'credit-card') {
1936
+ if (elem.value.length > 0 && elem.value.length < elem.validationCCLength) {
1937
+ elem.validity = 'tooShort';
1938
+ elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
1939
+ }
1940
+ } else if (elem.type === 'number') {
1941
+ if (elem.max !== undefined && Number(elem.max) < Number(elem.value)) {
1942
+ elem.validity = 'rangeOverflow';
1943
+ elem.errorMessage = elem.setCustomValidityRangeOverflow || elem.setCustomValidity || '';
1944
+ }
1945
+
1946
+ if (elem.min !== undefined && elem.value?.length > 0 && Number(elem.min) > Number(elem.value)) {
1947
+ elem.validity = 'rangeUnderflow';
1948
+ elem.errorMessage = elem.setCustomValidityRangeUnderflow || elem.setCustomValidity || '';
1949
+ }
1950
+ } else if (elem.type === 'month-day-year' ||
1951
+ elem.type === 'month-year' ||
1952
+ elem.type === 'month-fullYear' ||
1953
+ elem.type === 'year-month-day'
1954
+ ) {
1955
+ if (elem.value?.length > 0 && elem.value.length < elem.dateStrLength) {
1956
+ elem.validity = 'tooShort';
1957
+ elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
1958
+ } else {
1959
+ const valueDate = new Date(elem.value);
1960
+
1961
+ // validate max
1962
+ if (elem.max !== undefined) {
1963
+ const maxDate = new Date(elem.max);
1964
+
1965
+ if (valueDate > maxDate) {
1966
+ elem.validity = 'rangeOverflow';
1967
+ elem.errorMessage = elem.setCustomValidityRangeOverflow || elem.setCustomValidity || '';
1968
+ }
1969
+ }
1970
+
1971
+ // validate min
1972
+ if (elem.min) {
1973
+ const minDate = new Date(elem.min);
1974
+
1975
+ if (valueDate < minDate) {
1976
+ elem.validity = 'rangeUnderflow';
1977
+ elem.errorMessage = elem.setCustomValidityRangeUnderflow || elem.setCustomValidity || '';
1978
+ }
1979
+ }
1980
+ }
1981
+ }
1982
+ }
1983
+ }
1984
+
1985
+ /**
1986
+ * Determines the validity state of the element.
1987
+ * @param {object} elem - HTML element to validate.
1988
+ * @param {boolean} force - Boolean that forces validation to run.
1989
+ * @returns {void}
1990
+ */
1991
+ validate(elem, force) {
1992
+ this.getInputElements(elem);
1993
+ this.getAuroInputs(elem);
1994
+
1995
+ // Validate only if noValidate is not true and the input does not have focus
1996
+ const validationShouldRun = force || (!elem.contains(document.activeElement) && elem.value !== undefined) || elem.validateOnInput;
1997
+
1998
+ if (elem.hasAttribute('error')) {
1999
+ elem.validity = 'customError';
2000
+ elem.errorMessage = elem.setCustomValidityCustomError || elem.error || elem.setCustomValidity || '';
2001
+ } else if (validationShouldRun) {
2002
+ elem.validity = 'valid';
2003
+ elem.errorMessage = '';
2004
+
2005
+ /**
2006
+ * Only validate once we interact with the datepicker
2007
+ * elem.value === undefined is the initial state pre-interaction.
2008
+ *
2009
+ * The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
2010
+ */
2011
+
2012
+ let hasValue = elem.value && elem.value.length > 0;
2013
+
2014
+ // If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
2015
+ if (this.auroInputElements?.length === 2) {
2016
+ if (!this.auroInputElements[1].value || this.auroInputElements[1].length === 0) {
2017
+ hasValue = false;
2018
+ }
2019
+ }
2020
+
2021
+ if (!hasValue && elem.required) {
2022
+ elem.validity = 'valueMissing';
2023
+ elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
2024
+ } else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
2025
+ this.validateType(elem);
2026
+ this.validateElementAttributes(elem);
2027
+ } else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
2028
+ this.validateElementAttributes(elem);
2029
+ }
2030
+ }
2031
+
2032
+ if (this.auroInputElements?.length > 0) {
2033
+ elem.validity = this.auroInputElements[0].validity;
2034
+ elem.errorMessage = this.auroInputElements[0].errorMessage;
2035
+
2036
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1) {
2037
+ elem.validity = this.auroInputElements[1].validity;
2038
+ elem.errorMessage = this.auroInputElements[1].errorMessage;
2039
+ }
2040
+ }
2041
+
2042
+ if (validationShouldRun || elem.hasAttribute('error')) {
2043
+ // Use the validity message override if it is declared
2044
+ if (elem.validity && elem.validity !== 'valid' && elem.ValidityMessageOverride) {
2045
+ elem.errorMessage = elem.ValidityMessageOverride;
2046
+ }
2047
+
2048
+ this.getErrorMessage(elem);
2049
+
2050
+ elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
2051
+ bubbles: true,
2052
+ composed: true,
2053
+ detail: {
2054
+ validity: elem.validity,
2055
+ message: elem.errorMessage
2056
+ }
2057
+ }));
2058
+ }
2059
+ }
2060
+
2061
+ /**
2062
+ * Gets all the HTML5 `inputs` in the element shadow DOM.
2063
+ * @private
2064
+ * @param {object} elem - HTML element to validate.
2065
+ * @returns {void}
2066
+ */
2067
+ getInputElements(elem) {
2068
+ this.inputElements = elem.renderRoot.querySelectorAll('input');
2069
+ }
2070
+
2071
+ /**
2072
+ * Gets all the `auro-inputs` in the element shadow DOM.
2073
+ * @private
2074
+ * @param {object} elem - HTML element to validate.
2075
+ * @returns {void}
2076
+ */
2077
+ getAuroInputs(elem) {
2078
+ this.auroInputElements = elem.shadowRoot.querySelectorAll('auro-input, [auro-input]');
2079
+ }
2080
+
2081
+ /**
2082
+ * Return appropriate error message.
2083
+ * @private
2084
+ * @param {object} elem - HTML element to validate.
2085
+ * @returns {void}
2086
+ */
2087
+ getErrorMessage(elem) {
2088
+ if (elem.validity !== 'valid') {
2089
+ if (elem.setCustomValidity) {
2090
+ elem.errorMessage = elem.setCustomValidity;
2091
+ } else if (this.runtimeUtils.elementMatch(elem, 'auro-input') && elem.errorMessage === '') {
2092
+ const input = elem.renderRoot.querySelector('input');
2093
+
2094
+ if (input.validationMessage.length > 0) {
2095
+ elem.errorMessage = input.validationMessage;
2096
+ }
2097
+ } else if (this.inputElements?.length > 0 && elem.errorMessage === '') {
2098
+ const firstInput = this.inputElements[0];
2099
+
2100
+ if (firstInput.validationMessage.length > 0) {
2101
+ elem.errorMessage = firstInput.validationMessage;
2102
+ } else if (this.inputElements?.length === 2) {
2103
+ const secondInput = this.inputElements[1];
2104
+
2105
+ if (secondInput.validationMessage.length > 0) {
2106
+ elem.errorMessage = secondInput.validationMessage;
2107
+ }
2108
+ }
2109
+ }
2110
+ } else {
2111
+ elem.errorMessage = undefined;
2112
+ }
2113
+ }
2114
+ }
2115
+
2116
+ // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
2117
+ // See LICENSE in the project root for license information.
2118
+
2119
+
2120
+ /**
2121
+ * Auro-input provides users a way to enter data into a text field.
2122
+ *
2123
+ * @attr {Boolean} bordered - Applies bordered UI variant.
2124
+ * @attr {Boolean} borderless - Applies borderless UI variant.
2125
+ *
2126
+ * @slot helptext - Sets the help text displayed below the input.
2127
+ * @slot label - Sets the label text for the input.
2128
+ *
2129
+ * @csspart wrapper - Use for customizing the style of the root element
2130
+ * @csspart label - Use for customizing the style of the label element
2131
+ * @csspart helpText - Use for customizing the style of the helpText element
2132
+ * @csspart accentIcon - Use for customizing the style of the accentIcon element (e.g. credit card icon, calendar icon)
2133
+ * @csspart iconContainer - Use for customizing the style of the iconContainer (e.g. X icon for clearing input value)
2134
+ * @event input - Event fires when the value of an `auro-input` has been changed.
2135
+ * @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` value has changed.
2136
+ */
2137
+
2138
+ class BaseInput extends r$4 {
2139
+
2140
+ constructor() {
2141
+ super();
2142
+
2143
+ this.icon = false;
2144
+ this.disabled = false;
2145
+ this.required = false;
2146
+ this.noValidate = false;
2147
+ this.max = undefined;
2148
+ this.min = undefined;
2149
+ this.maxLength = undefined;
2150
+ this.minLength = undefined;
2151
+ this.activeLabel = false;
2152
+ this.setCustomValidityForType = undefined;
2153
+ }
2154
+
2155
+ /**
2156
+ * Internal Defaults.
2157
+ * @private
2158
+ * @returns {void}
2159
+ */
2160
+ privateDefaults() {
2161
+ this.validation = new AuroFormValidation();
2162
+ this.inputIconName = undefined;
2163
+ this.showPassword = false;
2164
+ this.validationCCLength = undefined;
2165
+ this.hasValue = false;
2166
+ this.label = 'Input label is undefined';
2167
+
2168
+ this.allowedInputTypes = [
2169
+ "text",
2170
+ "number",
2171
+ "email",
2172
+ "password",
2173
+ "credit-card",
2174
+ "month-day-year",
2175
+ "year-month-day",
2176
+ "month-year"
2177
+ ];
2178
+
2179
+ this.dateInputTypes = [
2180
+ "month-day-year",
2181
+ "year-month-day",
2182
+ "month-year",
2183
+ "month-fullYear",
2184
+ "month",
2185
+ "year",
2186
+ "fullYear"
2187
+ ];
2188
+
2189
+ this.autoFormattingTypes = [
2190
+ 'credit-card',
2191
+ 'month-day-year',
2192
+ 'month-year',
2193
+ 'month-fullyear',
2194
+ 'year-month-day'
2195
+ ];
2196
+
2197
+ /**
2198
+ * Credit Card is not included as this caused cursor placement issues.
2199
+ * The Safari issue.
2200
+ */
2201
+ this.setSelectionInputTypes = [
2202
+ "text",
2203
+ "password",
2204
+ "email",
2205
+ ];
2206
+
2207
+ const idLength = 36;
2208
+ const idSubstrEnd = 8;
2209
+ const idSubstrStart = 2;
2210
+
2211
+ this.uniqueId = Math.random()
2212
+ .toString(idLength)
2213
+ .substring(idSubstrStart, idSubstrEnd);
2214
+ }
2215
+
2216
+ // function to define props used within the scope of this componentstatic
2217
+ static get properties() {
2218
+ return {
2219
+
2220
+ /**
2221
+ * If set, the label will remain fixed in the active position.
2222
+ */
2223
+ activeLabel: {
2224
+ type: Boolean,
2225
+ reflect: true
2226
+ },
2227
+
2228
+ /**
2229
+ * 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]
2230
+ */
2231
+ autocapitalize: {
2232
+ type: String
2233
+ },
2234
+
2235
+ /**
2236
+ * An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
2237
+ */
2238
+ autocomplete: {
2239
+ type: String,
2240
+ reflect: true
2241
+ },
2242
+
2243
+ /**
2244
+ * When set to `off`, stops iOS from auto-correcting words when typed into a text box.
2245
+ */
2246
+ autocorrect: {
2247
+ type: String
2248
+ },
2249
+
2250
+ /**
2251
+ * If set, disables the input.
2252
+ */
2253
+ disabled: {
2254
+ type: Boolean
2255
+ },
2256
+
2257
+ error: {
2258
+ type: String,
2259
+ reflect: true
2260
+ },
2261
+
2262
+ /**
2263
+ * Contains the help text message for the current validity error.
2264
+ */
2265
+ errorMessage: {
2266
+ type: String
2267
+ },
2268
+
2269
+ /**
2270
+ * 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.
2271
+ */
2272
+ icon: {
2273
+ type: Boolean
2274
+ },
2275
+
2276
+ /**
2277
+ * Sets the unique ID of the element.
2278
+ */
2279
+ id: {
2280
+ type: String
2281
+ },
2282
+
2283
+ /**
2284
+ * Defines the language of an element.
2285
+ */
2286
+ lang: {
2287
+ type: String
2288
+ },
2289
+
2290
+ /**
2291
+ * The maximum value allowed. This only applies for inputs with a type of `number` and all date formats.
2292
+ */
2293
+ max: {
2294
+ type: String
2295
+ },
2296
+
2297
+ /**
2298
+ * The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher.
2299
+ */
2300
+ maxLength: {
2301
+ type: Number
2302
+ },
2303
+
2304
+ /**
2305
+ * The minimum value allowed. This only applies for inputs with a type of `number` and all date formats.
2306
+ */
2307
+ min: {
2308
+ type: String
2309
+ },
2310
+
2311
+ /**
2312
+ * 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`.
2313
+ */
2314
+ minLength: {
2315
+ type: Number
2316
+ },
2317
+
2318
+ /**
2319
+ * Populates the `name` attribute on the input.
2320
+ */
2321
+ name: {
2322
+ type: String
2323
+ },
2324
+
2325
+ /**
2326
+ * If set, disables auto-validation on blur.
2327
+ */
2328
+ noValidate: {
2329
+ type: Boolean
2330
+ },
2331
+
2332
+ /**
2333
+ * Specifies a regular expression the form control's value should match.
2334
+ */
2335
+ pattern: {
2336
+ type: String,
2337
+ reflect: true
2338
+ },
2339
+
2340
+ /**
2341
+ * Define custom placeholder text, only supported by date input formats.
2342
+ */
2343
+ placeholder: {
2344
+ type: String
2345
+ },
2346
+
2347
+ /**
2348
+ * Makes the input read-only, but can be set programmatically.
2349
+ */
2350
+ readonly: {
2351
+ type: Boolean
2352
+ },
2353
+
2354
+ /**
2355
+ * Populates the `required` attribute on the input. Used for client-side validation.
2356
+ */
2357
+ required: {
2358
+ type: Boolean
2359
+ },
2360
+
2361
+ /**
2362
+ * @ignore
2363
+ */
2364
+ showPassword: {
2365
+ state: true
2366
+ },
2367
+
2368
+ /**
2369
+ * Sets a custom help text message to display for all validityStates.
2370
+ */
2371
+ setCustomValidity: {
2372
+ type: String
2373
+ },
2374
+
2375
+ /**
2376
+ * Custom help text message to display when validity = `badInput`.
2377
+ */
2378
+ setCustomValidityBadInput: {
2379
+ type: String
2380
+ },
2381
+
2382
+ /**
2383
+ * Custom help text message to display when validity = `customError`.
2384
+ */
2385
+ setCustomValidityCustomError: {
2386
+ type: String
2387
+ },
2388
+
2389
+ /**
2390
+ * Custom help text message to display for the declared element `type` and type validity fails.
2391
+ */
2392
+ setCustomValidityForType: {
2393
+ type: String
2394
+ },
2395
+
2396
+ /**
2397
+ * Custom help text message to display when validity = `rangeOverflow`.
2398
+ */
2399
+ setCustomValidityRangeOverflow: {
2400
+ type: String
2401
+ },
2402
+
2403
+ /**
2404
+ * Custom help text message to display when validity = `rangeUnderflow`.
2405
+ */
2406
+ setCustomValidityRangeUnderflow: {
2407
+ type: String
2408
+ },
2409
+
2410
+ /**
2411
+ * Custom help text message to display when validity = `tooLong`.
2412
+ */
2413
+ setCustomValidityTooLong: {
2414
+ type: String
2415
+ },
2416
+
2417
+ /**
2418
+ * Custom help text message to display when validity = `tooShort`.
2419
+ */
2420
+ setCustomValidityTooShort: {
2421
+ type: String
2422
+ },
2423
+
2424
+ /**
2425
+ * Custom help text message to display when validity = `valueMissing`.
2426
+ */
2427
+ setCustomValidityValueMissing: {
2428
+ type: String
2429
+ },
2430
+
2431
+ /**
2432
+ * Custom help text message for email type validity.
2433
+ */
2434
+ customValidityTypeEmail: {
2435
+ type: String
2436
+ },
2437
+
2438
+ /**
2439
+ * 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`.
2440
+ */
2441
+ spellcheck: {
2442
+ type: String
2443
+ },
2444
+
2445
+ /**
2446
+ * Populates the `type` attribute on the input. Allowed values are `password`, `email`, `credit-card`, `month-day-year`, `month-year`, `year-month-day` or `text`. If given value is not allowed or set, defaults to `text`.
2447
+ */
2448
+ type: {
2449
+ type: String,
2450
+ reflect: true
2451
+ },
2452
+
2453
+ /**
2454
+ * Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
2455
+ */
2456
+ value: {
2457
+ type: String
2458
+ },
2459
+
2460
+ /**
2461
+ * Sets validation mode to re-eval with each input.
2462
+ */
2463
+ validateOnInput: {
2464
+ type: Boolean
2465
+ },
2466
+
2467
+ /**
2468
+ * Specifies the `validityState` this element is in.
2469
+ */
2470
+ validity: {
2471
+ type: String,
2472
+ reflect: true
2473
+ }
2474
+ };
2475
+ }
2476
+
2477
+
2478
+ static get styles() {
2479
+ return [
2480
+ i$6`${colorCss$3}`,
2481
+ i$6`${styleCss$3}`,
2482
+ i$6`${tokensCss$3}`
2483
+ ];
2484
+ }
2485
+
2486
+ connectedCallback() {
2487
+ super.connectedCallback();
2488
+
2489
+ this.privateDefaults();
2490
+
2491
+ notifyOnLangChange(this);
2492
+
2493
+ // Process auto-formatting if defined for CleaveJS
2494
+ if (this.type) {
2495
+ let config = null;
2496
+
2497
+ // Set config for credit card
2498
+ switch (this.type) {
2499
+ case 'number':
2500
+ config = {
2501
+ numeral: true,
2502
+ delimiter: ''
2503
+ };
2504
+
2505
+ this.inputMode = 'numeric';
2506
+
2507
+ break;
2508
+
2509
+ case 'credit-card':
2510
+ config = {
2511
+ creditCard: true
2512
+ };
2513
+
2514
+ this.inputMode = 'numeric';
2515
+
2516
+ break;
2517
+
2518
+ case 'month-day-year':
2519
+ config = {
2520
+ date: true,
2521
+ delimiter: '/',
2522
+ datePattern: [
2523
+ 'm',
2524
+ 'd',
2525
+ 'Y'
2526
+ ]
2527
+ };
2528
+
2529
+ this.inputMode = 'numeric';
2530
+
2531
+ break;
2532
+
2533
+ case 'year-month-day':
2534
+ config = {
2535
+ date: true,
2536
+ delimiter: '/',
2537
+ datePattern: [
2538
+ 'Y',
2539
+ 'm',
2540
+ 'd'
2541
+ ]
2542
+ };
2543
+
2544
+ this.inputMode = 'numeric';
2545
+
2546
+ break;
2547
+
2548
+ case 'month-year':
2549
+ config = {
2550
+ date: true,
2551
+ datePattern: [
2552
+ 'm',
2553
+ 'y'
2554
+ ]
2555
+ };
2556
+
2557
+ this.inputMode = 'numeric';
2558
+
2559
+ break;
2560
+
2561
+ case 'month-fullYear':
2562
+ config = {
2563
+ date: true,
2564
+ datePattern: [
2565
+ 'm',
2566
+ 'Y'
2567
+ ]
2568
+ };
2569
+
2570
+ this.inputMode = 'numeric';
2571
+
2572
+ break;
2573
+
2574
+ case 'fullYear':
2575
+ config = {
2576
+ date: true,
2577
+ datePattern: ['Y']
2578
+ };
2579
+
2580
+ this.inputMode = 'numeric';
2581
+
2582
+ break;
2583
+
2584
+ case 'year':
2585
+ config = {
2586
+ date: true,
2587
+ datePattern: ['y']
2588
+ };
2589
+
2590
+ this.inputMode = 'numeric';
2591
+
2592
+ break;
2593
+
2594
+ case 'month':
2595
+ config = {
2596
+ date: true,
2597
+ datePattern: ['m']
2598
+ };
2599
+
2600
+ this.inputMode = 'numeric';
2601
+
2602
+ break;
2603
+ // Do nothing
2604
+ }
2605
+
2606
+ // initialize CleaveJS if we have a defined config for the requested format
2607
+ if (config) {
2608
+ // eslint-disable-next-line no-unused-vars
2609
+ new Cleave_1(this, config);
2610
+ }
2611
+ }
2612
+ }
2613
+
2614
+ disconnectedCallback() {
2615
+ super.disconnectedCallback();
2616
+ stopNotifyingOnLangChange(this);
2617
+ }
2618
+
2619
+ firstUpdated() {
2620
+ // add attribute for query selectors when auro-input is registered under a custom name
2621
+ if (this.tagName.toLowerCase() !== 'auro-input') {
2622
+ this.setAttribute('auro-input', true);
2623
+ }
2624
+
2625
+ this.inputElement = this.renderRoot.querySelector('input');
2626
+ this.labelElement = this.shadowRoot.querySelector('label');
2627
+
2628
+ // use validity message override if declared when initializing the component
2629
+ if (this.hasAttribute('setCustomValidity')) {
2630
+ this.ValidityMessageOverride = this.setCustomValidity;
2631
+ }
2632
+
2633
+ // if setCustomValidityForType is not set, use our default
2634
+ if (!this.setCustomValidityForType) {
2635
+ if (this.type === 'password') {
2636
+ this.setCustomValidityForType = i18n(this.lang, 'password');
2637
+ } else if (this.type === 'credit-card') {
2638
+ this.setCustomValidityForType = i18n(this.lang, 'creditcard');
2639
+ } else if (this.type === 'email') {
2640
+ this.setCustomValidityForType = i18n(this.lang, 'email');
2641
+ } else if (this.type === 'month-day-year') {
2642
+ this.setCustomValidityForType = i18n(this.lang, 'dateMMDDYYYY');
2643
+ } else if (this.type === 'month-year') {
2644
+ this.setCustomValidityForType = i18n(this.lang, 'dateMMYY');
2645
+ } else if (this.type === 'month-fullyear') {
2646
+ this.setCustomValidityForType = i18n(this.lang, 'dateMMYYYY');
2647
+ } else if (this.type === 'year-month-day') {
2648
+ this.setCustomValidityForType = i18n(this.lang, 'dateYYYYMMDD');
2649
+ } else if (this.type === 'year') {
2650
+ this.setCustomValidityForType = i18n(this.lang, 'dateYY');
2651
+ } else if (this.type === 'fullYear') {
2652
+ this.setCustomValidityForType = i18n(this.lang, 'dateYYYY');
2653
+ } else if (this.type === 'month') {
2654
+ this.setCustomValidityForType = i18n(this.lang, 'dateMM');
2655
+ }
2656
+ }
2657
+
2658
+ this.addEventListener('keydown', (evt) => {
2659
+ if (this.autoFormattingTypes.includes(this.type)) {
2660
+ if (evt.key.length === 1 || evt.key === 'Backspace' || evt.key === 'Delete') {
2661
+ if (evt.key.length === 1) {
2662
+ const numCharSelected = this.inputElement.selectionEnd - this.inputElement.selectionStart;
2663
+
2664
+ if (numCharSelected > 1) {
2665
+ this.cursorPosition = this.inputElement.selectionStart + 1;
2666
+ } else if (numCharSelected === 1) {
2667
+ this.cursorPosition = this.inputElement.selectionEnd;
2668
+ } else {
2669
+ this.cursorPosition = this.inputElement.selectionEnd + 1;
2670
+ }
2671
+ } else if (evt.key === 'Backspace') {
2672
+ this.cursorPosition = this.inputElement.selectionEnd - 1;
2673
+ } else if (evt.key === 'Delete') {
2674
+ this.cursorPosition = this.inputElement.selectionEnd;
2675
+ }
2676
+ }
2677
+
2678
+ if (evt.key === "ArrowUp" || evt.key === "ArrowDown" || evt.key === "ArrowLeft" || evt.key === "ArrowRight") {
2679
+ if (evt.key === 'ArrowUp') {
2680
+ this.cursorPosition = 0;
2681
+ } else if (evt.key === 'ArrowDown') {
2682
+ this.cursorPosition = this.value.length;
2683
+ } else if (evt.key === 'ArrowLeft') {
2684
+ this.cursorPosition = this.inputElement.selectionEnd - 1;
2685
+ } else if (evt.key === 'ArrowRight') {
2686
+ this.cursorPosition = this.inputElement.selectionEnd + 1;
2687
+ }
2688
+ }
2689
+ }
2690
+ });
2691
+ }
2692
+
2693
+ /**
2694
+ * LitElement lifecycle method. Called after the DOM has been updated.
2695
+ * @param {Map<string, any>} changedProperties - Keys are the names of changed properties, values are the corresponding previous values.
2696
+ * @returns {void}
2697
+ */
2698
+ updated(changedProperties) {
2699
+ if (this.type === 'password') {
2700
+ this.spellcheck = 'false';
2701
+ }
2702
+
2703
+ if (this.spellcheck === 'false') {
2704
+ this.autocorrect = 'off';
2705
+ this.autocapitalize = 'none';
2706
+ } else {
2707
+ this.autocorrect = this.autocorrect ? this.autocorrect : undefined;
2708
+ this.autocapitalize = undefined;
2709
+ }
2710
+
2711
+ if (changedProperties.has('readonly')) {
2712
+ if (this.readonly) {
2713
+ this.inputElement.setAttribute('readonly', true);
2714
+ this.inputElement.setAttribute('aria-readonly', true);
2715
+ } else {
2716
+ this.inputElement.removeAttribute('readonly');
2717
+ this.inputElement.removeAttribute('aria-readonly');
2718
+ }
2719
+ }
2720
+
2721
+ if (changedProperties.has('type')) {
2722
+ this.configureDataForType();
2723
+ }
2724
+
2725
+ if (changedProperties.has('value')) {
2726
+ if (this.value && this.value.length > 0) {
2727
+ this.hasValue = true;
2728
+ this.requestUpdate();
2729
+ } else {
2730
+ this.hasValue = false;
2731
+ this.requestUpdate();
2732
+ }
2733
+
2734
+ if (this.value !== this.inputElement.value) {
2735
+ if (this.value) {
2736
+ this.inputElement.value = this.value;
2737
+ } else {
2738
+ this.inputElement.value = '';
2739
+ }
2740
+
2741
+ if (!this.shadowRoot.contains(this.getActiveElement())) {
2742
+ this.validation.validate(this);
2743
+ }
2744
+
2745
+ this.notifyValueChanged();
2746
+ }
2747
+ this.autoFormatHandling();
2748
+ }
2749
+
2750
+ if (changedProperties.has('error')) {
2751
+ this.validate(true);
2752
+ }
2753
+
2754
+ if (changedProperties.has('validity')) {
2755
+ this.notifyValidityChange();
2756
+ }
2757
+ }
2758
+
2759
+ /**
2760
+ * @private
2761
+ * @returns {void} Handles cursor position when input auto-formats.
2762
+ */
2763
+ autoFormatHandling() {
2764
+ if (this.cursorPosition >= 0 && this.autoFormattingTypes.includes(this.type)) {
2765
+ if (this.type === 'credit-card' && this.inputElement.value.charAt(this.cursorPosition) === ' ') {
2766
+ this.cursorPosition += 1;
2767
+ } else if (this.dateInputTypes.includes(this.type)) {
2768
+ const divider = '/';
2769
+ const dividerNextChar = this.inputElement.value.charAt(this.cursorPosition) === divider;
2770
+
2771
+ if (this.cursorPosition > 1 && dividerNextChar && this.inputElement.value.charAt(this.cursorPosition - 2) !== divider) {
2772
+ this.cursorPosition += 1;
2773
+ } else if (this.cursorPosition > 0 && this.inputElement.value.charAt(this.cursorPosition + 1) === divider
2774
+ && this.inputElement.value.charAt(this.cursorPosition - 1) === '0') { // eslint-disable-line operator-linebreak
2775
+ this.cursorPosition += 2;
2776
+ }
2777
+ }
2778
+
2779
+ this.inputElement.setSelectionRange(this.cursorPosition, this.cursorPosition);
2780
+ }
2781
+ }
2782
+
2783
+ /**
2784
+ * @private
2785
+ * @returns {void} Notify validity state changed via event.
2786
+ */
2787
+ notifyValidityChange() {
2788
+ this.dispatchEvent(new CustomEvent('auroInput-validityChange', {
2789
+ bubbles: true,
2790
+ cancelable: false,
2791
+ composed: true,
2792
+ }));
2793
+ }
2794
+
2795
+ /**
2796
+ * @private
2797
+ * @returns {string}
2798
+ */
2799
+ definePattern() {
2800
+ if (this.type === 'credit-card' && !this.noValidate && this.maxLength) {
2801
+ return `.{${this.maxLength},${this.maxLength}}`;
2802
+ }
2803
+
2804
+ return this.pattern;
2805
+ }
2806
+
2807
+ /**
2808
+ * Function to set element focus.
2809
+ * @private
2810
+ * @return {void}
2811
+ */
2812
+ focus() {
2813
+ this.inputElement.focus();
2814
+ }
2815
+
2816
+ /**
2817
+ * Required to convert SVG icons from data to HTML string.
2818
+ * @private
2819
+ * @param {string} icon HTML string for requested icon.
2820
+ * @returns {object} Appended HTML for SVG.
2821
+ */
2822
+ getIconAsHtml(icon) {
2823
+ const dom = new DOMParser().parseFromString(icon.svg, 'text/html');
2824
+
2825
+ return dom.body.firstChild;
2826
+ }
2827
+
2828
+ /**
2829
+ * Sends event notifying that the input has changed it's value.
2830
+ * @private
2831
+ * @returns {void}
2832
+ */
2833
+ notifyValueChanged() {
2834
+ let inputEvent = null;
2835
+
2836
+ inputEvent = new Event('input', {
2837
+ bubbles: true,
2838
+ composed: true,
2839
+ });
2840
+
2841
+ // Dispatched event to alert outside shadow DOM context of event firing.
2842
+ this.dispatchEvent(inputEvent);
2843
+ }
2844
+
2845
+ /**
2846
+ * Handles event of clearing input content by clicking the X icon.
2847
+ * @private
2848
+ * @return {void}
2849
+ */
2850
+ handleClickClear() {
2851
+ this.inputElement.value = "";
2852
+ this.value = "";
2853
+ this.labelElement.classList.remove('inputElement-label--sticky');
2854
+ this.focus();
2855
+ this.validation.validate(this);
2856
+ this.notifyValueChanged();
2857
+ }
2858
+
2859
+ /**
2860
+ * @private
2861
+ * @return {void}
2862
+ */
2863
+ handleInput() {
2864
+ // Prevent non-number characters from being entered on credit card fields.
2865
+ if (this.type === 'credit-card') {
2866
+ this.inputElement.value = this.inputElement.value.replace(/[\D]/gu, '');
2867
+ }
2868
+
2869
+ // Sets value property to value of element value (el.value).
2870
+ this.value = this.inputElement.value;
2871
+
2872
+ // Validation on blur or input.
2873
+ if (this.validateOnInput) {
2874
+ this.validation.validate(this);
2875
+ }
2876
+
2877
+ // Prevents cursor jumping in Safari.
2878
+ const { selectionStart } = this.inputElement;
2879
+
2880
+ if (this.setSelectionInputTypes.includes(this.type)) {
2881
+ this.updateComplete.then(() => {
2882
+ try {
2883
+ this.inputElement.setSelectionRange(selectionStart, selectionStart);
2884
+ } catch (error) { // eslint-disable-line
2885
+ // do nothing
2886
+ }
2887
+ });
2888
+ }
2889
+ }
2890
+
2891
+ /**
2892
+ * Function to support @focusin event.
2893
+ * @private
2894
+ * @return {void}
2895
+ */
2896
+ handleFocusin() {
2897
+
2898
+ /**
2899
+ * The input is considered to be in it's initial state based on
2900
+ * if this.value === undefined. The first time we interact with the
2901
+ * input manually, by applying focusin, we need to flag the
2902
+ * input as no longer in the initial state.
2903
+ */
2904
+ if (this.value === undefined) {
2905
+ this.value = '';
2906
+ }
2907
+ }
2908
+
2909
+ /**
2910
+ * Function to support @blur event.
2911
+ * @private
2912
+ * @return {void}
2913
+ */
2914
+ handleBlur() {
2915
+ this.inputElement.scrollLeft = 100;
2916
+
2917
+ if (!this.noValidate) {
2918
+ this.validation.validate(this);
2919
+ }
2920
+ }
2921
+
2922
+ /**
2923
+ * Returns focused element, even if it's in the shadow DOM.
2924
+ * @private
2925
+ * @param {Object} root - Element to check for focus.
2926
+ * @returns {Object}
2927
+ */
2928
+ getActiveElement(root = document) {
2929
+ const activeEl = root.activeElement;
2930
+
2931
+ if (!activeEl) {
2932
+ return null;
2933
+ }
2934
+
2935
+ if (activeEl.shadowRoot) {
2936
+ return this.getActiveElement(activeEl.shadowRoot);
2937
+ }
2938
+
2939
+ return activeEl;
2940
+ }
2941
+
2942
+ /**
2943
+ * Validates value.
2944
+ * @param {boolean} [force=false] - Whether to force validation.
2945
+ */
2946
+ validate(force = false) {
2947
+ this.validation.validate(this, force);
2948
+ }
2949
+
2950
+ /**
2951
+ * Resets component to initial state.
2952
+ * @returns {void}
2953
+ */
2954
+ reset() {
2955
+ this.validation.reset(this);
2956
+ }
2957
+
2958
+ /**
2959
+ * Sets configuration data used elsewhere based on the `type` attribute.
2960
+ * @private
2961
+ * @returns {void}
2962
+ */
2963
+ configureDataForType() {
2964
+ if (this.type === 'month-day-year' || this.type === 'year-month-day') {
2965
+ this.dateStrLength = 10;
2966
+ } else if (this.type === 'month-year') {
2967
+ this.dateStrLength = 5;
2968
+ } else if (this.type === 'month-fullYear') {
2969
+ this.dateStrLength = 7;
2970
+ } else if (this.type === 'month' || this.type === 'year') {
2971
+ this.dateStrLength = 2;
2972
+ } else if (this.type === 'fullYear') {
2973
+ this.dateStrLength = 4;
2974
+ }
2975
+ }
2976
+
2977
+ /**
2978
+ * Validates against list of supported this.allowedInputTypes; return type=text if invalid request.
2979
+ * @private
2980
+ * @param {string} type Value entered into component prop.
2981
+ * @returns {string} Iterates over allowed types array.
2982
+ */
2983
+ getInputType(type) {
2984
+ if (this.allowedInputTypes.includes(type)) {
2985
+ return type;
2986
+ }
2987
+
2988
+ return "text";
2989
+ }
2990
+
2991
+ /**
2992
+ * Determines default help text string.
2993
+ * @private
2994
+ * @param {string} type Value entered into component prop.
2995
+ * @returns {string} Evaluates pre-determined help text.
2996
+ */
2997
+ getHelpText(type) {
2998
+ if (type === 'password') {
2999
+ return i18n(this.lang, 'password');
3000
+ } else if (type === 'email') {
3001
+ return i18n(this.lang, 'email');
3002
+ } else if (type === 'credit-card') {
3003
+ return i18n(this.lang, 'creditcard');
3004
+ } else if (type === 'month-day-year') {
3005
+ return i18n(this.lang, 'dateMMDDYYYY');
3006
+ } else if (type === 'month-year') {
3007
+ return i18n(this.lang, 'dateMMYY');
3008
+ } else if (type === 'month-fullyear') {
3009
+ return i18n(this.lang, 'dateMMYYYY');
3010
+ } else if (type === 'year-month-day') {
3011
+ return i18n(this.lang, 'dateYYYYMMDD');
3012
+ } else if (type === 'month') {
3013
+ return i18n(this.lang, 'dateMM');
3014
+ } else if (type === 'year') {
3015
+ return i18n(this.lang, 'dateYY');
3016
+ } else if (type === 'fullYear') {
3017
+ return i18n(this.lang, 'dateYYYY');
3018
+ }
3019
+
3020
+ return '';
3021
+ }
3022
+
3023
+ /**
3024
+ * Function to support show-password feature.
3025
+ * @private
3026
+ * @returns {void}
3027
+ */
3028
+ handleClickShowPassword() {
3029
+ this.showPassword = !this.showPassword;
3030
+ this.focus();
3031
+ }
3032
+
3033
+ /**
3034
+ * Support placeholder text.
3035
+ * @private
3036
+ * @returns {string}
3037
+ */
3038
+ getPlaceholder() {
3039
+ if (this.type === 'month-day-year') {
3040
+ return !this.placeholder ? 'MM/DD/YYYY' : this.placeholder;
3041
+ } else if (this.type === 'month-year') {
3042
+ return !this.placeholder ? 'MM/YY' : this.placeholder;
3043
+ } else if (this.type === 'month-fullYear') {
3044
+ return !this.placeholder ? 'MM/YYYY' : this.placeholder;
3045
+ } else if (this.type === 'year-month-day') {
3046
+ return !this.placeholder ? 'YYYY/MM/DD' : this.placeholder;
3047
+ } else if (this.type === 'year') {
3048
+ return !this.placeholder ? 'YY' : this.placeholder;
3049
+ } else if (this.type === 'fullYear') {
3050
+ return !this.placeholder ? 'YYYY' : this.placeholder;
3051
+ } else if (this.type === 'month') {
3052
+ return !this.placeholder ? 'MM' : this.placeholder;
3053
+ }
3054
+
3055
+ return o$5(this.placeholder);
3056
+ }
3057
+
3058
+ /**
3059
+ * Defines placement of input icon based on type, used with classMap.
3060
+ * @private
3061
+ * @returns {boolean}
3062
+ */
3063
+ defineInputIcon() {
3064
+ if (this.icon && this.type === 'credit-card') {
3065
+ return true;
3066
+ } else if (this.dateInputTypes.includes(this.type)) {
3067
+ return true;
3068
+ }
3069
+
3070
+ return false;
3071
+ }
3072
+
3073
+ /**
3074
+ * Defines padding of input label based on type, used with classMap.
3075
+ * @private
3076
+ * @returns {boolean}
3077
+ */
3078
+ defineLabelPadding() {
3079
+ if (this.icon && this.type === 'credit-card' && (this.value === "" || this.value === undefined)) {
3080
+ return true;
3081
+ } else if (this.dateInputTypes.includes(this.type)) {
3082
+ return true;
3083
+ }
3084
+
3085
+ return false;
3086
+ }
3087
+
3088
+ // Functions specific to Credit Card component support
3089
+ // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
3090
+
3091
+ /**
3092
+ * Function to support credit-card feature type.
3093
+ * @private
3094
+ * @returns {void}
3095
+ */
3096
+ processCreditCard() {
3097
+ const card = this.matchInputValueToCreditCard();
3098
+
3099
+ this.maxLength = card.formatLength;
3100
+ this.minLength = card.formatMinLength;
3101
+
3102
+ this.errorMessage = card.errorMessage;
3103
+
3104
+ if (this.icon) {
3105
+ this.inputIconName = card.cardIcon;
3106
+ }
3107
+ }
3108
+
3109
+ /**
3110
+ * Function to support credit-card feature type.
3111
+ * @private
3112
+ * @returns {object} JSON with data for credit card formatting.
3113
+ */
3114
+ matchInputValueToCreditCard() {
3115
+ const CreditCardValidationMessage = `${i18n(this.lang, 'validCard')}`;
3116
+
3117
+ const creditCardTypes = [
3118
+ {
3119
+ name: 'Airlines',
3120
+ regex: /^(?<num>1|2)\d{0}/u,
3121
+ formatMinLength: 17,
3122
+ errorMessage: CreditCardValidationMessage,
3123
+ cardIcon: 'credit-card'
3124
+ },
3125
+ {
3126
+ name: 'Commercial',
3127
+ regex: /^(?<num>2)\d{0}/u,
3128
+ formatMinLength: 8,
3129
+ errorMessage: CreditCardValidationMessage,
3130
+ cardIcon: 'credit-card'
3131
+ },
3132
+ {
3133
+ name: 'Alaska Commercial',
3134
+ regex: /^(?<num>27)\d{0}/u,
3135
+ formatMinLength: 8,
3136
+ errorMessage: CreditCardValidationMessage,
3137
+ cardIcon: 'cc-alaska'
3138
+ },
3139
+ {
3140
+ name: 'American Express',
3141
+ regex: /^(?<num>34|37)\d{0}/u,
3142
+ formatLength: 17,
3143
+ errorMessage: CreditCardValidationMessage,
3144
+ cardIcon: 'cc-amex'
3145
+ },
3146
+ {
3147
+ name: 'Diners club',
3148
+ regex: /^(?<num>36|38)\d{0}/u,
3149
+ formatLength: 16,
3150
+ errorMessage: CreditCardValidationMessage,
3151
+ cardIcon: 'credit-card'
3152
+ },
3153
+ {
3154
+ name: 'Visa',
3155
+ regex: /^(?<num>4)\d{0}/u,
3156
+ formatLength: 19,
3157
+ errorMessage: CreditCardValidationMessage,
3158
+ cardIcon: 'cc-visa'
3159
+ },
3160
+ {
3161
+ name: 'Alaska Airlines Visa',
3162
+ regex: /^(?<num>4147\s34|4888\s93|4800\s11|4313\s51|4313\s07)\d{0}/u,
3163
+ formatLength: 19,
3164
+ errorMessage: CreditCardValidationMessage,
3165
+ cardIcon: 'cc-alaska'
3166
+ },
3167
+ {
3168
+ name: 'Master Card',
3169
+ regex: /^(?<num>5)\d{0}/u,
3170
+ formatLength: 19,
3171
+ errorMessage: CreditCardValidationMessage,
3172
+ cardIcon: 'cc-mastercard'
3173
+ },
3174
+ {
3175
+ name: 'Discover Card',
3176
+ regex: /^(?<num>6)\d{0}/u,
3177
+ formatLength: 19,
3178
+ errorMessage: CreditCardValidationMessage,
3179
+ cardIcon: 'cc-discover'
3180
+ }
3181
+ ];
3182
+
3183
+ let type = {
3184
+ name: 'Default Card',
3185
+ formatLength: 19,
3186
+ errorMessage: CreditCardValidationMessage,
3187
+ cardIcon: 'credit-card'
3188
+ };
3189
+
3190
+ creditCardTypes.forEach((cardType) => {
3191
+ if (cardType.regex.exec(this.value)) {
3192
+ type = cardType;
3193
+ }
3194
+ });
3195
+
3196
+ this.validationCCLength = type.formatLength;
3197
+
3198
+ return type;
3199
+ }
3200
+ }
3201
+
3202
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
3203
+ // See LICENSE in the project root for license information.
3204
+
3205
+
3206
+ class AuroDependencyVersioning {
3207
+
3208
+ /**
3209
+ * Generates a unique string to be used for child auro element naming.
3210
+ * @private
3211
+ * @param {string} baseName - Defines the first part of the unique element name.
3212
+ * @param {string} version - Version of the component that will be appended to the baseName.
3213
+ * @returns {string} - Unique string to be used for naming.
3214
+ */
3215
+ generateElementName(baseName, version) {
3216
+ let result = baseName;
3217
+
3218
+ result += '-';
3219
+ result += version.replace(/[.]/g, '_');
3220
+
3221
+ return result;
3222
+ }
3223
+
3224
+ /**
3225
+ * Generates a unique string to be used for child auro element naming.
3226
+ * @param {string} baseName - Defines the first part of the unique element name.
3227
+ * @param {string} version - Version of the component that will be appended to the baseName.
3228
+ * @returns {string} - Unique string to be used for naming.
3229
+ */
3230
+ generateTag(baseName, version, tagClass) {
3231
+ const elementName = this.generateElementName(baseName, version);
3232
+ const tag = i$8`${s$4(elementName)}`;
3233
+
3234
+ if (!customElements.get(elementName)) {
3235
+ customElements.define(elementName, class extends tagClass {});
3236
+ }
3237
+
3238
+ return tag;
3239
+ }
3240
+ }
3241
+
3242
+ // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
3243
+ // See LICENSE in the project root for license information.
3244
+
3245
+
3246
+ /**
3247
+ * @attr {Boolean} hidden - If present, the component will be hidden both visually and from screen readers
3248
+ * @attr {Boolean} hiddenVisually - If present, the component will be hidden visually, but still read by screen readers
3249
+ * @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
3250
+ */
3251
+
3252
+ class AuroElement extends r$4 {
3253
+
3254
+ // function to define props used within the scope of this component
3255
+ static get properties() {
3256
+ return {
3257
+ hidden: { type: Boolean,
3258
+ reflect: true },
3259
+ hiddenVisually: { type: Boolean,
3260
+ reflect: true },
3261
+ hiddenAudible: { type: Boolean,
3262
+ reflect: true },
3263
+ };
3264
+ }
3265
+
3266
+ /**
3267
+ * @private Function that determines state of aria-hidden
3268
+ */
3269
+ hideAudible(value) {
3270
+ if (value) {
3271
+ return 'true'
3272
+ }
3273
+
3274
+ return 'false'
3275
+ }
3276
+ }
3277
+
3278
+ var error = {"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"error__desc\" class=\"ico_squareLarge\" data-deprecated=\"true\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><desc id=\"error__desc\">Error alert indicator.</desc><path d=\"m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583\"/></svg>"};
3279
+
3280
+ /* eslint-disable no-underscore-dangle, jsdoc/no-undefined-types, jsdoc/require-param-description */
3281
+
3282
+ const _fetchMap = new Map();
3283
+
3284
+ /**
3285
+ * A callback to parse Response body.
3286
+ *
3287
+ * @callback ResponseParser
3288
+ * @param {Fetch.Response} response
3289
+ * @returns {Promise}
3290
+ */
3291
+
3292
+ /**
3293
+ * A minimal in-memory map to de-duplicate Fetch API media requests.
3294
+ *
3295
+ * @param {String} uri
3296
+ * @param {Object} [options={}]
3297
+ * @param {ResponseParser} [options.responseParser=(response) => response.text()]
3298
+ * @returns {Promise}
3299
+ */
3300
+ const cacheFetch = (uri, options = {}) => {
3301
+ const responseParser = options.responseParser || ((response) => response.text());
3302
+ if (!_fetchMap.has(uri)) {
3303
+ _fetchMap.set(uri, fetch(uri).then(responseParser));
3304
+ }
3305
+ return _fetchMap.get(uri);
3306
+ };
3307
+
3308
+ var styleCss$2 = i$6`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}:host .logo{color:var(--ds-color-brand-midnight-400, #01426a)}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.label{display:flex;align-items:flex-start}.label svg{margin:0 var(--ds-size-50, 0.25rem)}.wrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelContainer{line-height:1.8}`;
3309
+
3310
+ // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
3311
+ // See LICENSE in the project root for license information.
3312
+
3313
+
3314
+ // See https://git.io/JJ6SJ for "How to document your components using JSDoc"
3315
+ /**
3316
+ * @attr {Boolean} onDark - Set value for on-dark version of auro-icon
3317
+ * @slot - Hidden from visibility, used for a11y if icon description is needed
3318
+ */
3319
+
3320
+ // build the component class
3321
+ class BaseIcon extends AuroElement {
3322
+ constructor() {
3323
+ super();
3324
+ this.onDark = false;
3325
+ }
3326
+
3327
+ // function to define props used within the scope of this component
3328
+ static get properties() {
3329
+ return {
3330
+ ...super.properties,
3331
+ onDark: {
3332
+ type: Boolean,
3333
+ reflect: true
3334
+ },
3335
+
3336
+ /**
3337
+ * @private
3338
+ */
3339
+ svg: {
3340
+ attribute: false,
3341
+ reflect: true
3342
+ }
3343
+ };
3344
+ }
3345
+
3346
+ static get styles() {
3347
+ return i$6`
3348
+ ${styleCss$2}
3349
+ `;
3350
+ }
3351
+
3352
+ /**
3353
+ * Async function to fetch requested icon from npm CDN.
3354
+ * @private
3355
+ * @param {string} category - Icon category.
3356
+ * @param {string} name - Icon name.
3357
+ * @returns {SVGElement} DOM - Ready HTML to be appended.
3358
+ */
3359
+ async fetchIcon(category, name) {
3360
+ let iconHTML = '';
3361
+
3362
+ if (category === 'logos') {
3363
+ iconHTML = await cacheFetch(`${this.uri}/${category}/${name}.svg`);
3364
+ } else {
3365
+ iconHTML = await cacheFetch(`${this.uri}/icons/${category}/${name}.svg`);
3366
+ }
3367
+
3368
+ const dom = new DOMParser().parseFromString(iconHTML, 'text/html');
3369
+
3370
+ return dom.body.querySelector('svg');
3371
+ }
3372
+
3373
+ // lifecycle function
3374
+ async firstUpdated() {
3375
+ if (!this.customSvg) {
3376
+ const svg = await this.fetchIcon(this.category, this.name);
3377
+
3378
+ if (svg) {
3379
+ this.svg = svg;
3380
+ } else if (!svg) {
3381
+ const penDOM = new DOMParser().parseFromString(error.svg, 'text/html');
3382
+
3383
+ this.svg = penDOM.body.firstChild;
3384
+ }
3385
+ }
3386
+ }
3387
+ }
3388
+
3389
+ var tokensCss$2 = i$6`:host{--ds-auro-icon-color: var(--ds-color-icon-primary-default, $ds-color-icon-primary-default);--ds-auro-icon-size: var(--ds-size-300, $ds-size-300)}`;
3390
+
3391
+ var colorCss$2 = i$6`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[accent]){--ds-auro-icon-color: var(--ds-color-icon-accent-default, #a2c270)}:host(:not([onDark])[disabled]){--ds-auro-icon-color: var(--ds-color-icon-ui-primary-disabled-default, #adadad)}:host(:not([onDark])[emphasis]){--ds-auro-icon-color: var(--ds-color-icon-emphasis-default, #2a2a2a)}:host(:not([onDark])[error]){--ds-auro-icon-color: var(--ds-color-icon-error-default, #cc1816)}:host(:not([onDark])[info]){--ds-auro-icon-color: var(--ds-color-icon-info-default, #326aa5)}:host(:not([onDark])[secondary]){--ds-auro-icon-color: var(--ds-color-icon-secondary-default, #7e8894)}:host(:not([onDark])[subtle]){--ds-auro-icon-color: var(--ds-color-icon-subtle-default, #a0c9f1)}:host(:not([onDark])[success]){--ds-auro-icon-color: var(--ds-color-icon-success-default, #40a080)}:host(:not([onDark])[tertiary]){--ds-auro-icon-color: var(--ds-color-icon-tertiary-default, #afb9c6)}:host(:not([onDark])[warning]){--ds-auro-icon-color: var(--ds-color-icon-warning-default, #c49432)}:host([onDark]){--ds-auro-icon-color: var(--ds-color-icon-primary-inverse, #f7f7f7)}:host([onDark][accent]){--ds-auro-icon-color: var(--ds-color-icon-accent-inverse, #badd81)}:host([onDark][disabled]){--ds-auro-icon-color: var(--ds-color-icon-ui-primary-disabled-inverse, #7e7e7e)}:host([onDark][emphasis]){--ds-auro-icon-color: var(--ds-color-icon-emphasis-inverse, #ffffff)}:host([onDark][error]){--ds-auro-icon-color: var(--ds-color-icon-error-inverse, #f9aca6)}:host([onDark][info]){--ds-auro-icon-color: var(--ds-color-icon-info-inverse, #89b2d4)}:host([onDark][secondary]){--ds-auro-icon-color: var(--ds-color-icon-secondary-inverse, #ccd2db)}:host([onDark][subtle]){--ds-auro-icon-color: var(--ds-color-icon-subtle-inverse, #326aa5)}:host([onDark][success]){--ds-auro-icon-color: var(--ds-color-icon-success-inverse, #8eceb9)}:host([onDark][tertiary]){--ds-auro-icon-color: var(--ds-color-icon-tertiary-inverse, #939fad)}:host([onDark][warning]){--ds-auro-icon-color: var(--ds-color-icon-warning-inverse, #f2c153)}`;
3392
+
3393
+ // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
3394
+ // See LICENSE in the project root for license information.
3395
+
3396
+
3397
+ // See https://git.io/JJ6SJ for "How to document your components using JSDoc"
3398
+ /**
3399
+ * auro-icon provides users a way to use the Auro Icons by simply passing in the category and name.
3400
+ *
3401
+ * @attr {String} category - The category of the icon you are looking for. See https://auro.alaskaair.com/icons/usage.
3402
+ * @attr {String} name - The name of the icon you are looking for without the file extension. See https://auro.alaskaair.com/icons/usage
3403
+ * @attr {Boolean} customColor - Removes primary selector.
3404
+ * @attr {Boolean} customSvg - When true, auro-icon will render a custom SVG inside the default slot.
3405
+ * @attr {Boolean} label - Exposes content in slot as icon label.
3406
+ * @attr {Boolean} primary - DEPRECATED: Sets the icon to use the baseline primary icon style.
3407
+ * @attr {Boolean} accent - Sets the icon to use the accent style.
3408
+ * @attr {Boolean} emphasis - Sets the icon to use the emphasis style.
3409
+ * @attr {Boolean} disabled - Sets the icon to use the disabled style.
3410
+ * @attr {Boolean} error - Sets the icon to use the error style.
3411
+ * @attr {Boolean} info - Sets the icon to use the info style.
3412
+ * @attr {Boolean} secondary - Sets the icon to use the secondary style.
3413
+ * @attr {Boolean} tertiary - Sets the icon to use the tertiary style.
3414
+ * @attr {Boolean} subtle - Sets the icon to use the subtle style.
3415
+ * @attr {Boolean} success - Sets the icon to use the success style.
3416
+ * @attr {Boolean} warning - Sets the icon to use the warning style.
3417
+ * @attr {String} ariaHidden - Set aria-hidden value. Default is `true`. Option is `false`.
3418
+ * @attr {String} uri - Set the uri for CDN used when fetching icons
3419
+ * @slot - Hidden from visibility, used for a11y if icon description is needed.
3420
+ * @slot svg - Used for custom SVG content.
3421
+ */
3422
+
3423
+ // build the component class
3424
+ class AuroIcon extends BaseIcon {
3425
+ constructor() {
3426
+ super();
3427
+
3428
+ this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
3429
+
3430
+ this.privateDefaults();
3431
+ }
3432
+
3433
+ /**
3434
+ * Internal Defaults.
3435
+ * @private
3436
+ * @returns {void}
3437
+ */
3438
+ privateDefaults() {
3439
+ this.accent = false;
3440
+ this.customColor = false;
3441
+ this.customSvg = false;
3442
+ this.disabled = false;
3443
+ this.emphasis = false;
3444
+ this.error = false;
3445
+ this.info = false;
3446
+ this.label = false;
3447
+ this.primary = false;
3448
+ this.secondary = false;
3449
+ this.subtle = false;
3450
+ this.success = false;
3451
+ this.tertiary = false;
3452
+ this.warning = false;
3453
+ this.runtimeUtils = new AuroLibraryRuntimeUtils();
3454
+ }
3455
+
3456
+ // function to define props used within the scope of this component
3457
+ static get properties() {
3458
+ return {
3459
+ ...super.properties,
3460
+ accent: {
3461
+ type: Boolean,
3462
+ reflect: true
3463
+ },
3464
+ ariaHidden: {
3465
+ type: String,
3466
+ reflect: true
3467
+ },
3468
+ category: {
3469
+ type: String,
3470
+ reflect: true
3471
+ },
3472
+ customColor: {
3473
+ type: Boolean
3474
+ },
3475
+ customSvg: {
3476
+ type: Boolean
3477
+ },
3478
+ disabled: {
3479
+ type: Boolean,
3480
+ reflect: true
3481
+ },
3482
+ emphasis: {
3483
+ type: Boolean,
3484
+ reflect: true
3485
+ },
3486
+ error: {
3487
+ type: Boolean,
3488
+ reflect: true
3489
+ },
3490
+ info: {
3491
+ type: Boolean,
3492
+ reflect: true
3493
+ },
3494
+ label: {
3495
+ type: Boolean,
3496
+ reflect: true
3497
+ },
3498
+ name: {
3499
+ type: String,
3500
+ reflect: true
3501
+ },
3502
+ primary: {
3503
+ type: Boolean,
3504
+ reflect: true
3505
+ },
3506
+ secondary: {
3507
+ type: Boolean,
3508
+ reflect: true
3509
+ },
3510
+ subtle: {
3511
+ type: Boolean,
3512
+ reflect: true
3513
+ },
3514
+ success: {
3515
+ type: Boolean,
3516
+ reflect: true
3517
+ },
3518
+ tertiary: {
3519
+ type: Boolean,
3520
+ reflect: true
3521
+ },
3522
+ uri: {
3523
+ type: String
3524
+ },
3525
+ warning: {
3526
+ type: Boolean,
3527
+ reflect: true
3528
+ }
3529
+ };
3530
+ }
3531
+
3532
+ static get styles() {
3533
+ return [
3534
+ super.styles,
3535
+ i$6`${tokensCss$2}`,
3536
+ i$6`${styleCss$2}`,
3537
+ i$6`${colorCss$2}`
3538
+ ];
3539
+ }
3540
+
3541
+ /**
3542
+ * This will register this element with the browser.
3543
+ * @param {string} [name="auro-icon"] - The name of element that you want to register to.
3544
+ *
3545
+ * @example
3546
+ * AuroIcon.register("custom-icon") // this will register this element to <custom-icon/>
3547
+ *
3548
+ */
3549
+ static register(name = "auro-icon") {
3550
+ AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroIcon);
3551
+ }
3552
+
3553
+ connectedCallback() {
3554
+ super.connectedCallback();
3555
+
3556
+ // Add the tag name as an attribute if it is different than the component name
3557
+ this.runtimeUtils.handleComponentTagRename(this, 'auro-icon');
3558
+ }
3559
+
3560
+ /**
3561
+ * @returns {void} Exposes CSS parts for styling from parent components.
3562
+ */
3563
+ exposeCssParts() {
3564
+ this.setAttribute('exportparts', 'svg:iconSvg');
3565
+ }
3566
+
3567
+ // function that renders the HTML and CSS into the scope of the component
3568
+ render() {
3569
+ const a11y = {
3570
+ 'labelContainer': true,
3571
+ 'util_displayHiddenVisually': !this.label
3572
+ };
3573
+
3574
+ const classes = {
3575
+ 'label': this.label,
3576
+ 'wrapper': true,
3577
+ };
3578
+
3579
+ return x`
3580
+ <div
3581
+ class="${e$5(classes)}"
3582
+ title="${o$5(this.title || undefined)}">
3583
+ <span aria-hidden="${o$5(this.ariaHidden ? this.ariaHidden : true)}" part="svg">
3584
+ ${this.customSvg ? x`
3585
+ <slot name="svg"></slot>
3586
+ ` : x`
3587
+ ${this.svg}
3588
+ `
3589
+ }
3590
+ </span>
3591
+
3592
+ <div class="${e$5(a11y)}">
3593
+ <slot></slot>
3594
+ </div>
3595
+ </div>
3596
+ `;
3597
+ }
3598
+ }
3599
+
3600
+ var iconVersion = '6.1.2';
3601
+
3602
+ var styleCss$1 = i$6`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}:host([fluid]) .auro-button,:host([fluid=true]) .auro-button{min-width:auto;width:100%}:host([variant=flat]){display:inline-block;height:var(--ds-size-300, 1.5rem);width:var(--ds-size-300, 1.5rem)}:host([variant=flat]) .auro-button{height:100%;width:100%}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.auro-button{position:relative;padding:0 var(--ds-size-300, 1.5rem);cursor:pointer;border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem);font-family:var(--ds-font-family-default, "AS Circular", Helvetica Neue, Arial, sans-serif);font-size:var(--ds-text-body-size-default, 1rem);font-weight:var(--ds-text-body-default-weight, 500);overflow:hidden;text-overflow:ellipsis;user-select:none;white-space:nowrap;min-height:var(--ds-size-600, 3rem);max-height:var(--ds-size-600, 3rem);display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:var(--ds-size-100, 0.5rem);margin:0;-webkit-touch-callout:none;-webkit-user-select:none}.auro-button:active{transform:scale(0.95)}.auro-button:focus-visible:not([variant=secondary]):not([variant=tertiary]):not([variant=flat]):after{display:block;content:"";height:calc(100% - 2px);width:calc(100% - 2px);position:absolute;top:1px;left:1px;border-radius:4px;border-style:solid;border-width:2px}.auro-button:focus-visible[variant=secondary]:after,.auro-button:focus-visible[variant=tertiary]:after{display:block;content:"";height:100%;width:100%;position:absolute;top:0;left:0;border-radius:var(--ds-border-radius, 0.375rem);border-style:solid;border-width:2px}.auro-button.loading{cursor:not-allowed}.auro-button.loading *:not([auro-loader]){visibility:hidden}@media screen and (min-width: 576px){.auro-button{min-width:8.75rem;width:auto}}.auro-button:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=secondary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=flat]{height:unset;width:unset;min-height:unset;max-height:unset;min-width:unset;max-width:unset;border:0;border-radius:unset;gap:unset;padding:unset}.auro-button[onDark]:disabled{cursor:not-allowed;transform:unset}.auro-button[onDark][variant=secondary]:disabled{cursor:not-allowed;transform:unset}@media(hover: hover){.auro-button[onDark][variant=tertiary]:active,.auro-button[onDark][variant=tertiary]:hover{box-shadow:none}}.auro-button[onDark][variant=tertiary]:active{box-shadow:none}.auro-button[onDark][variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button--slim{padding:var(--ds-size-100, 0.5rem) var(--ds-size-200, 1rem);font-size:var(--ds-text-body-size-sm, 0.875rem);min-width:unset;min-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem));max-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem))}.auro-button--iconOnly{padding:0 var(--ds-size-100, 0.5rem);border-radius:100px;min-width:unset;height:var(--ds-size-600, 3rem);width:var(--ds-size-500, 2.5rem)}.auro-button--iconOnly ::slotted(auro-icon),.auro-button--iconOnly ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, $ds-size-300)}.auro-button--iconOnlySlim{padding:0 var(--ds-size-50, 0.25rem);height:calc(var(--ds-size-400, 2rem) + var(--ds-size-50, 0.25rem));width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-50, 0.25rem))}.auro-button--iconOnlySlim ::slotted(auro-icon),.auro-button--iconOnlySlim ::slotted([auro-icon]){--ds-auro-icon-size: calc(var(--ds-size-200, $ds-size-200) + var(--ds-size-50, $ds-size-50))}.auro-button--rounded{border-radius:100px;box-shadow:var(--ds-elevation-300, 0px 0px 15px rgba(0, 0, 0, 0.2));height:var(--ds-size-500, 2.5rem);min-width:unset;transition:all 300ms ease-out}.auro-button--rounded ::slotted(auro-icon),.auro-button--rounded ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, $ds-size-300)}:host([rounded]) .textSlot{transition:opacity 300ms ease-in;opacity:1}:host([rounded][iconOnly]) .textSlot{opacity:0}:host([rounded][iconOnly]) .textWrapper{display:none}:host([rounded][iconOnly]) .auro-button{min-width:unset;padding:unset;width:var(--ds-size-600, 3rem)}[auro-loader]{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}`;
3603
+
3604
+ var colorCss$1 = i$6`[auro-loader]{color:var(--ds-auro-button-loader-color)}.auro-button{-webkit-tap-highlight-color:var(--ds-auro-button-tap-color);color:var(--ds-auro-button-text-color);background-color:var(--ds-auro-button-container-color);background-image:linear-gradient(var(--ds-auro-button-container-image), var(--ds-auro-button-container-image));border-color:var(--ds-auro-button-border-color)}.auro-button:not([variant=secondary]):not([variant=tertiary]):focus-visible:after{border-color:var(--ds-auro-button-border-inset-color)}.auro-button:not([ondark]):active{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-active-default, #225296)}.auro-button:not([ondark])[disabled]{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-disabled-default, #a0c9f1);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-disabled-default, #a0c9f1);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-disabled-default, #a0c9f1)}@media(hover: hover){.auro-button:not([ondark]):active:not(:disabled),.auro-button:not([ondark]):hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-primary-hover-default, #193d73);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-hover-default, #193d73);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-hover-default, #193d73)}}.auro-button:not([ondark])[variant=secondary]{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-default-default, #ffffff);--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-default-default, #ffffff);--ds-auro-button-border-color: var(--ds-color-border-ui-default-default, #2c67b5);--ds-auro-button-text-color: var(--ds-color-text-ui-default-default, #2c67b5)}@media(hover: hover){.auro-button:not([ondark])[variant=secondary]:active:not(:disabled),.auro-button:not([ondark])[variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color: var(--ds-color-border-ui-hover-default, #193d73);--ds-auro-button-text-color: var(--ds-color-text-ui-hover-default, #193d73)}}.auro-button:not([ondark])[variant=secondary]:focus-visible{--ds-auro-button-border-inset-color: var(--ds-color-border-ui-focus-default, #2c67b5)}.auro-button:not([ondark])[variant=secondary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-active-default, #f0f7fd);--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-active-default, #f0f7fd);--ds-auro-button-border-color: var(--ds-color-border-ui-active-default, #225296);--ds-auro-button-text-color: var(--ds-color-text-ui-active-default, #225296)}.auro-button:not([ondark])[variant=secondary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-disabled-default, #f7f7f7);--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-disabled-default, #f7f7f7);--ds-auro-button-border-color: var(--ds-color-border-ui-disabled-default, #adadad);--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}.auro-button:not([ondark])[variant=tertiary]{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-default-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-default-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-default-default, #2c67b5)}@media(hover: hover){.auro-button:not([ondark])[variant=tertiary]:active:not(:disabled),.auro-button:not([ondark])[variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-hover-default, rgba(0, 0, 0, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-hover-default, rgba(0, 0, 0, 0.12));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-hover-default, #193d73)}}.auro-button:not([ondark])[variant=tertiary]:focus-visible{--ds-auro-button-border-color: var(--ds-color-border-ui-default-default, #2c67b5);--ds-auro-button-border-inset-color: var(--ds-color-border-ui-default-default, #2c67b5)}.auro-button:not([ondark])[variant=tertiary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-active-default, rgba(0, 0, 0, 0.06));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-active-default, rgba(0, 0, 0, 0.06));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-active-default, #225296)}.auro-button:not([ondark])[variant=tertiary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-disabled-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-disabled-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}.auro-button:not([ondark])[variant=flat]{color:var(--ds-color-icon-ui-secondary-default-default);background-color:transparent;background-image:none;border-color:transparent}@media(hover: hover){.auro-button:not([ondark])[variant=flat]:active:not(:disabled),.auro-button:not([ondark])[variant=flat]:hover:not(:disabled){color:var(--ds-color-icon-ui-secondary-hover-default);background-color:transparent;background-image:none;border-color:transparent}}.auro-button:not([ondark])[variant=flat]:disabled{color:var(--ds-color-icon-ui-secondary-disabled-default);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark]{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-default-inverse, #56bbde);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-default-inverse, #56bbde);--ds-auro-button-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-button-loader-color: var(--ds-color-text-primary-inverse, #ffffff);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark]:active:not(:disabled),.auro-button[ondark]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7)}}.auro-button[ondark]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-active-inverse, #6ad5ef);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-active-inverse, #6ad5ef);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-active-inverse, #6ad5ef)}.auro-button[ondark][disabled]{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-disabled-inverse, #275b72);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-disabled-inverse, #275b72);--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-inverse, #7e7e7e);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-disabled-inverse, #275b72)}.auro-button[ondark][variant=secondary]{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-default-inverse, rgba(255, 255, 255, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-default-inverse, rgba(255, 255, 255, 0.03));--ds-auro-button-border-color: var(--ds-color-border-ui-default-inverse, #56bbde);--ds-auro-button-text-color: var(--ds-color-text-ui-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark][variant=secondary]:hover{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-hover-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-hover-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color: var(--ds-color-border-ui-hover-inverse, #a8e9f7);--ds-auro-button-text-color: var(--ds-color-text-ui-hover-inverse, #a8e9f7)}}.auro-button[ondark][variant=secondary]:focus-visible{--ds-auro-button-border-inset-color: var(--ds-color-border-ui-focus-inverse, #56bbde)}.auro-button[ondark][variant=secondary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-border-color: var(--ds-color-border-ui-active-inverse, #6ad5ef);--ds-auro-button-text-color: var(--ds-color-text-ui-active-inverse, #6ad5ef)}.auro-button[ondark][variant=secondary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-disabled-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-disabled-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color: var(--ds-color-border-ui-disabled-inverse, #7e7e7e);--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-inverse, #7e7e7e)}.auro-button[ondark][variant=tertiary]{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-default-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-default-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark][variant=tertiary]:active:not(:disabled),.auro-button[ondark][variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-hover-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-hover-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-hover-inverse, #a8e9f7)}}.auro-button[ondark][variant=tertiary]:focus-visible{--ds-auro-button-border-color: var(--ds-color-border-ui-default-inverse, #56bbde);--ds-auro-button-border-inset-color: var(--ds-color-border-ui-default-inverse, #56bbde)}.auro-button[ondark][variant=tertiary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-active-inverse, #6ad5ef)}.auro-button[ondark][variant=tertiary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-disabled-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-disabled-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-inverse, #7e7e7e)}.auro-button[ondark][variant=flat]{color:var(--ds-color-icon-ui-secondary-default-inverse);background-color:transparent;background-image:none;border-color:transparent}@media(hover: hover){.auro-button[ondark][variant=flat]:active:not(:disabled),.auro-button[ondark][variant=flat]:hover:not(:disabled){color:var(--ds-color-icon-ui-secondary-hover-inverse);background-color:transparent;background-image:none;border-color:transparent}}.auro-button[ondark][variant=flat]:disabled{color:var(--ds-color-icon-ui-disabled-default);background-color:transparent;background-image:none;border-color:transparent}`;
3605
+
3606
+ var tokensCss$1 = i$6`:host{--ds-auro-button-border-color: var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-border-inset-color: var(--ds-color-border-emphasis-inverse, #f2f7fb);--ds-auro-button-container-color: var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-loader-color: var(--ds-color-utility-navy-default, #265688);--ds-auro-button-text-color: var(--ds-color-text-primary-inverse, #ffffff);--ds-auro-button-tap-color: transparent}`;
3607
+
3608
+ var styleCss = i$6`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}:host,:host>span{position:relative}:host{width:2rem;height:2rem;display:inline-block;font-size:0}:host>span{position:absolute;display:inline-block;float:none;top:0;left:0;width:2rem;height:2rem;border-radius:100%;border-style:solid;border-width:0}:host([xs]),:host([xs])>span{width:1.2rem;height:1.2rem}:host([sm]),:host([sm])>span{width:3rem;height:3rem}:host([md]),:host([md])>span{width:5rem;height:5rem}:host([lg]),:host([lg])>span{width:8rem;height:8rem}:host{--margin: 0.375rem;--margin-xs: 0.2rem;--margin-sm: 0.5rem;--margin-md: 0.75rem;--margin-lg: 1rem}:host([pulse]),:host([pulse])>span{position:relative}:host([pulse]){width:calc(3rem + var(--margin)*6);height:1.5rem}:host([pulse])>span{width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse][xs]){width:calc(2.55rem + var(--margin-xs)*6);height:1.55rem}:host([pulse][xs])>span{margin:var(--margin-xs);width:.65rem;height:.65rem}:host([pulse][sm]){width:calc(6rem + var(--margin-sm)*6);height:2.5rem}:host([pulse][sm])>span{margin:var(--margin-sm);width:2rem;height:2rem}:host([pulse][md]){width:calc(9rem + var(--margin-md)*6);height:3.5rem}:host([pulse][md])>span{margin:var(--margin-md);width:3rem;height:3rem}:host([pulse][lg]){width:calc(15rem + var(--margin-lg)*6);height:5.5rem}:host([pulse][lg])>span{margin:var(--margin-lg);width:5rem;height:5rem}:host([pulse])>span:nth-child(1){animation-delay:-400ms}:host([pulse])>span:nth-child(2){animation-delay:-200ms}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,100%{opacity:.1;transform:scale(0.9)}50%{opacity:1;transform:scale(1.1)}}:host([orbit]),:host([orbit])>span{opacity:1}:host([orbit])>span{border-width:5px}:host([orbit])>span:nth-child(2){animation:orbit 2s linear infinite}:host([orbit][sm])>span{border-width:8px}:host([orbit][md])>span{border-width:13px}:host([orbit][lg])>span{border-width:21px}@keyframes orbit{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}:host([ringworm])>svg{animation:rotate 2s linear infinite;height:100%;width:100%;stroke:currentcolor;stroke-width:8}:host([ringworm]) .path{stroke-dashoffset:0;animation:ringworm 1.5s ease-in-out infinite;stroke-linecap:round}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{stroke-dasharray:89,200;stroke-dashoffset:-124px}}:host([laser]){position:static;width:100%;display:block;height:0;overflow:hidden;font-size:unset}:host([laser])>span{position:fixed;width:100%;height:.25rem;border-radius:0;z-index:100}:host([laser])>span:nth-child(1){border-color:currentcolor;opacity:.25}:host([laser])>span:nth-child(2){border-color:currentcolor;animation:laser 2s linear infinite;opacity:1;width:50%}:host([laser][sm])>span:nth-child(2){width:20%}:host([laser][md])>span:nth-child(2){width:30%}:host([laser][lg])>span:nth-child(2){width:50%;animation-duration:1.5s}:host([laser][xl])>span:nth-child(2){width:80%;animation-duration:1.5s}@keyframes laser{0%{left:-100%}100%{left:110%}}:host>.no-animation{display:none}@media(prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center;font-size:1rem}:host>span{opacity:1}:host>.loader{display:none}:host>.no-animation{display:block}}`;
3609
+
3610
+ var colorCss = i$6`:host{color:var(--ds-auro-loader-color)}:host>span{background-color:var(--ds-auro-loader-background-color);border-color:var(--ds-auro-loader-border-color)}:host([onlight]){--ds-auro-loader-color: var(--ds-color-utility-navy-default, #265688)}:host([ondark]){--ds-auro-loader-color: var(--ds-color-utility-cyan-inverse, #a8e9f7)}:host([white]){--ds-auro-loader-color: var(--ds-color-utility-neutral-inverse, #ccd2db)}:host([orbit])>span{--ds-auro-loader-background-color: transparent}:host([orbit])>span:nth-child(1){--ds-auro-loader-border-color: currentcolor;opacity:.25}:host([orbit])>span:nth-child(2){--ds-auro-loader-border-color: currentcolor;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}`;
3611
+
3612
+ var tokensCss = i$6`:host{--ds-auro-loader-background-color: currentcolor;--ds-auro-loader-border-color: currentcolor;--ds-auro-loader-color: currentcolor}`;
3613
+
3614
+ // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
3615
+ // See LICENSE in the project root for license information.
3616
+
3617
+
3618
+ // See https://git.io/JJ6SJ for "How to document your components using JSDoc"
3619
+ /**
3620
+ * The auro-loader element is an easy to use animated loader component.
3621
+ *
3622
+ * @attr {Boolean} pulse - sets loader type
3623
+ * @attr {Boolean} ringworm - sets loader type
3624
+ * @attr {Boolean} laser - sets loader type
3625
+ * @attr {Boolean} orbit - sets loader type
3626
+ * @attr {Boolean} white - sets color of loader to white
3627
+ * @attr {Boolean} ondark - sets color of loader to auro-color-ui-default-on-dark
3628
+ * @attr {Boolean} onlight - sets color of loader to auro-color-ui-default-on-light
3629
+ * @attr {Boolean} xs - sets size to extra small
3630
+ * @attr {Boolean} sm - sets size to small
3631
+ * @attr {Boolean} md - sets size to medium
3632
+ * @attr {Boolean} lg - sets size to large
3633
+ * @csspart element - apply style to adjust speed of animation
3634
+ */
3635
+
3636
+ // build the component class
3637
+ class AuroLoader extends r$4 {
3638
+ constructor() {
3639
+ super();
3640
+
3641
+ /**
3642
+ * @private
3643
+ */
3644
+ this.keys = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
3645
+
3646
+ /**
3647
+ * @private
3648
+ */
3649
+ this.mdCount = 3;
3650
+
3651
+ /**
3652
+ * @private
3653
+ */
3654
+ this.smCount = 2;
3655
+
3656
+ /**
3657
+ * @private
3658
+ */
3659
+ this.runtimeUtils = new AuroLibraryRuntimeUtils();
3660
+
3661
+ this.orbit = false;
3662
+ this.ringworm = false;
3663
+ this.laser = false;
3664
+ this.pulse = false;
3665
+ }
3666
+
3667
+ // function to define props used within the scope of this component
3668
+ static get properties() {
3669
+ return {
3670
+ pulse: {
3671
+ type: Boolean,
3672
+ reflect: true
3673
+ },
3674
+ orbit: {
3675
+ type: Boolean,
3676
+ reflect: true
3677
+ },
3678
+ ringworm: {
3679
+ type: Boolean,
3680
+ reflect: true
3681
+ },
3682
+ laser: {
3683
+ type: Boolean,
3684
+ reflect: true
3685
+ }
3686
+ };
3687
+ }
3688
+
3689
+ static get styles() {
3690
+ return [
3691
+ i$6`${styleCss}`,
3692
+ i$6`${colorCss}`,
3693
+ i$6`${tokensCss}`
3694
+ ];
3695
+ }
3696
+
3697
+ /**
3698
+ * This will register this element with the browser.
3699
+ * @param {string} [name="auro-loader"] - The name of element that you want to register to.
3700
+ *
3701
+ * @example
3702
+ * AuroLoader.register("custom-loader") // this will register this element to <custom-loader/>
3703
+ *
3704
+ */
3705
+ static register(name = "auro-loader") {
3706
+ AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroLoader);
3707
+ }
3708
+
3709
+ firstUpdated() {
3710
+ // Add the tag name as an attribute if it is different than the component name
3711
+ this.runtimeUtils.handleComponentTagRename(this, 'auro-loader');
3712
+ }
3713
+
3714
+ connectedCallback() {
3715
+ super.connectedCallback();
3716
+ }
3717
+
3718
+ /**
3719
+ * @private
3720
+ * @returns {Array} Numbered array for template map.
3721
+ */
3722
+ defineTemplate() {
3723
+ let nodes = Array.from(Array(this.mdCount).keys());
3724
+
3725
+ if (this.orbit || this.laser) {
3726
+ nodes = Array.from(Array(this.smCount).keys());
3727
+ } else if (this.ringworm) {
3728
+ nodes = Array.from(Array(0).keys());
3729
+ }
3730
+
3731
+ return nodes;
3732
+ }
3733
+
3734
+ // When using auroElement, use the following attribute and function when hiding content from screen readers.
3735
+ // aria-hidden="${this.hideAudible(this.hiddenAudible)}"
3736
+
3737
+ // function that renders the HTML and CSS into the scope of the component
3738
+ render() {
3739
+ return x`
3740
+ ${this.defineTemplate().map((idx) => x`
3741
+ <span part="element" class="loader node-${idx}"></span>
3742
+ `)}
3743
+
3744
+ <div class="no-animation">Loading...</div>
3745
+
3746
+ ${this.ringworm ? x`
3747
+ <svg part="element" class="circular" viewBox="25 25 50 50">
3748
+ <circle class="path" cx="50" cy="50" r="20" fill="none"/>
3749
+ </svg>`
3750
+ : ``
3751
+ }
3752
+ `;
3753
+ }
3754
+ }
3755
+
3756
+ var loaderVersion = '3.1.1';
3757
+
3758
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
3759
+ // See LICENSE in the project root for license information.
3760
+
3761
+
3762
+ /**
3763
+ * @attr {Boolean} autofocus - This Boolean attribute lets you specify that the button should have input focus when the page loads, unless overridden by the user
3764
+ * @attr {Boolean} disabled - If set to true button will become disabled and not allow for interactions
3765
+ * @attr {Boolean} iconOnly - If set to true, the button will contain an icon with no additional content
3766
+ * @attr {Boolean} loading - If set to true button text will be replaced with `auro-loader` and become disabled
3767
+ * @attr {Boolean} onDark - Set value for on-dark version of auro-button
3768
+ * @attr {Boolean} rounded - If set to true, the button will have a rounded shape
3769
+ * @attr {Boolean} slim - Set value for slim version of auro-button
3770
+ * @attr {Boolean} fluid - Alters the shape of the button to be full width of its parent container
3771
+ * @attr {String} arialabel - Populates the `aria-label` attribute that is used to define a string that labels the current element. Use it in cases where a text label is not visible on the screen. If there is visible text labeling the element, use `aria-labelledby` instead.
3772
+ * @attr {String} arialabelledby - Populates the `aria-labelledby` attribute that establishes relationships between objects and their label(s), and its value should be one or more element IDs, which refer to elements that have the text needed for labeling. List multiple element IDs in a space delimited fashion.
3773
+ * @attr {String} id - Set the unique ID of an element.
3774
+ * @attr {String} title - Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
3775
+ * @attr {String} type - The type of the button. Possible values are: `submit`, `reset`, `button`
3776
+ * @attr {String} value - Defines the value associated with the button which is submitted with the form data.
3777
+ * @attr {String} variant - Sets button variant option. Possible values are: `secondary`, `tertiary`
3778
+ * @attr {Boolean} secondary - DEPRECATED
3779
+ * @attr {Boolean} tertiary - DEPRECATED
3780
+ * @prop {Boolean} ready - When false the component API should not be called.
3781
+ * @event auroButton-ready - Notifies that the component has finished initializing.
3782
+ * @slot - Default slot for the text of the button.
3783
+ * @slot icon - Slot to provide auro-icon for the button.
3784
+ * @csspart button - Apply CSS to HTML5 button.
3785
+ * @csspart loader - Apply CSS to auro-loader.
3786
+ * @csspart text - Apply CSS to text slot.
3787
+ * @csspart icon - Apply CSS to icon slot.
3788
+ */
3789
+
3790
+ /* eslint-disable lit/no-invalid-html, lit/binding-positions */
3791
+
3792
+ class AuroButton extends r$4 {
3793
+
3794
+ constructor() {
3795
+ super();
3796
+ this.autofocus = false;
3797
+ this.disabled = false;
3798
+ this.iconOnly = false;
3799
+ this.loading = false;
3800
+ this.onDark = false;
3801
+ this.ready = false;
3802
+ this.secondary = false;
3803
+ this.tertiary = false;
3804
+ this.rounded = false;
3805
+ this.slim = false;
3806
+ this.fluid = false;
3807
+
3808
+ /**
3809
+ * Generate unique names for dependency components.
3810
+ */
3811
+ const versioning = new AuroDependencyVersioning();
3812
+
3813
+ /**
3814
+ * @private
3815
+ */
3816
+ this.loaderTag = versioning.generateTag('auro-loader', loaderVersion, AuroLoader);
3817
+ }
3818
+
3819
+ static get styles() {
3820
+ return [
3821
+ tokensCss$1,
3822
+ styleCss$1,
3823
+ colorCss$1
3824
+ ];
3825
+ }
3826
+
3827
+ static get properties() {
3828
+ return {
3829
+ autofocus: {
3830
+ type: Boolean,
3831
+ reflect: true
3832
+ },
3833
+ disabled: {
3834
+ type: Boolean,
3835
+ reflect: true
3836
+ },
3837
+ secondary: {
3838
+ type: Boolean,
3839
+ reflect: true
3840
+ },
3841
+ tertiary: {
3842
+ type: Boolean,
3843
+ reflect: true
3844
+ },
3845
+ fluid: {
3846
+ type: Boolean,
3847
+ reflect: true
3848
+ },
3849
+ iconOnly: {
3850
+ type: Boolean,
3851
+ reflect: true
3852
+ },
3853
+ loading: {
3854
+ type: Boolean,
3855
+ reflect: true
3856
+ },
3857
+ onDark: {
3858
+ type: Boolean,
3859
+ reflect: true
3860
+ },
3861
+ rounded: {
3862
+ type: Boolean,
3863
+ reflect: true
3864
+ },
3865
+ slim: {
3866
+ type: Boolean,
3867
+ reflect: true
3868
+ },
3869
+ arialabel: {
3870
+ type: String,
3871
+ reflect: true
3872
+ },
3873
+ arialabelledby: {
3874
+ type: String,
3875
+ reflect: true
3876
+ },
3877
+ title: {
3878
+ type: String,
3879
+ reflect: true
3880
+ },
3881
+ type: {
3882
+ type: String,
3883
+ reflect: true
3884
+ },
3885
+ value: {
3886
+ type: String,
3887
+ reflect: true
3888
+ },
3889
+ variant: {
3890
+ type: String,
3891
+ reflect: true
3892
+ },
3893
+ ready: { type: Boolean },
3894
+ };
3895
+ }
3896
+
3897
+ /**
3898
+ * This will register this element with the browser.
3899
+ * @param {string} [name="auro-button"] - The name of element that you want to register to.
3900
+ *
3901
+ * @example
3902
+ * AuroButton.register("custom-button") // this will register this element to <custom-button/>
3903
+ *
3904
+ */
3905
+ static register(name = "auro-button") {
3906
+ AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroButton);
3907
+ }
3908
+
3909
+ /**
3910
+ * Internal method to apply focus to the HTML5 button.
3911
+ * @private
3912
+ * @returns {void}
3913
+ */
3914
+ focus() {
3915
+ this.renderRoot.querySelector('button').focus();
3916
+ }
3917
+
3918
+ /**
3919
+ * Marks the component as ready and sends event.
3920
+ * @private
3921
+ * @returns {void}
3922
+ */
3923
+ notifyReady() {
3924
+ this.ready = true;
3925
+
3926
+ this.dispatchEvent(new CustomEvent('auroButton-ready', {
3927
+ bubbles: true,
3928
+ cancelable: false,
3929
+ composed: true,
3930
+ }));
3931
+ }
3932
+
3933
+ updated() {
3934
+ // support the old `secondary` and `tertiary` attributes` that are deprecated
3935
+ if (this.secondary) {
3936
+ this.setAttribute('variant', 'secondary');
3937
+ }
3938
+
3939
+ if (this.tertiary) {
3940
+ this.setAttribute('variant', 'tertiary');
3941
+ }
3942
+ }
3943
+
3944
+ firstUpdated() {
3945
+ this.notifyReady();
3946
+ }
3947
+
3948
+ render() {
3949
+ const classes = {
3950
+ 'util_insetLg--squish': true,
3951
+ 'auro-button': true,
3952
+ 'auroButton': true,
3953
+ 'auro-button--rounded': this.rounded,
3954
+ 'auro-button--slim': this.slim,
3955
+ 'auro-button--iconOnly': this.iconOnly,
3956
+ 'auro-button--iconOnlySlim': this.iconOnly && this.slim,
3957
+ 'loading': this.loading
3958
+ };
3959
+
3960
+ return u$5`
3961
+ <button
3962
+ part="button"
3963
+ aria-label="${o$5(this.arialabel ? this.arialabel : undefined)}"
3964
+ aria-labelledby="${o$5(this.arialabelledby ? this.arialabelledby : undefined)}"
3965
+ ?autofocus="${this.autofocus}"
3966
+ class="${e$5(classes)}"
3967
+ ?disabled="${this.disabled || this.loading}"
3968
+ ?onDark="${this.onDark}"
3969
+ title="${o$5(this.title ? this.title : undefined)}"
3970
+ name="${o$5(this.name ? this.name : undefined)}"
3971
+ type="${o$5(this.type ? this.type : undefined)}"
3972
+ variant="${o$5(this.variant ? this.variant : undefined)}"
3973
+ .value="${o$5(this.value ? this.value : undefined)}"
3974
+ @click="${() => {}}"
3975
+ >
3976
+ ${o$5(this.loading ? u$5`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
3977
+
3978
+ <span class="contentWrapper">
3979
+ <span class="textSlot" part="text">
3980
+ ${this.iconOnly ? undefined : u$5`<slot></slot>`}
3981
+ </span>
3982
+
3983
+ <span part="icon">
3984
+ <slot name="icon"></slot>
3985
+ </span>
3986
+ </span>
3987
+ </button>
3988
+ `;
3989
+ }
3990
+ }
3991
+
3992
+ var buttonVersion = '8.2.2';
3993
+
3994
+ /**
3995
+ * @license
3996
+ * Copyright 2019 Google LLC
3997
+ * SPDX-License-Identifier: BSD-3-Clause
3998
+ */
3999
+ const t$1=globalThis,e$2=t$1.ShadowRoot&&(void 0===t$1.ShadyCSS||t$1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$1=Symbol(),o$2=new WeakMap;let n$2 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$1)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$2&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$2.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$2.set(s,t));}return t}toString(){return this.cssText}};const r$3=t=>new n$2("string"==typeof t?t:t+"",void 0,s$1),i$3=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(true===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$2(o,t,s$1)},S$1=(s,o)=>{if(e$2)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$1.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$2=e$2?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$3(e)})(t):t;
4000
+
4001
+ /**
4002
+ * @license
4003
+ * Copyright 2017 Google LLC
4004
+ * SPDX-License-Identifier: BSD-3-Clause
4005
+ */const{is:i$2,defineProperty:e$1,getOwnPropertyDescriptor:r$2,getOwnPropertyNames:h$1,getOwnPropertySymbols:o$1,getPrototypeOf:n$1}=Object,a$1=globalThis,c$1=a$1.trustedTypes,l$1=c$1?c$1.emptyScript:"",p$1=a$1.reactiveElementPolyfillSupport,d$1=(t,s)=>t,u$1={toAttribute(t,s){switch(s){case Boolean:t=t?l$1:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$1=(t,s)=>!i$2(t,s),y$1={attribute:true,type:String,converter:u$1,reflect:false,hasChanged:f$1};Symbol.metadata??=Symbol("metadata"),a$1.litPropertyMetadata??=new WeakMap;class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y$1){if(s.state&&(s.attribute=false),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);void 0!==r&&e$1(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$2(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??y$1}static _$Ei(){if(this.hasOwnProperty(d$1("elementProperties")))return;const t=n$1(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$1("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$1("properties"))){const t=this.properties,s=[...h$1(t),...o$1(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$2(s));}else void 0!==s&&i.push(c$2(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$1(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&true===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:u$1).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$1;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f$1)(this[t],s))return;this.P(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),true===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){this.isUpdatePending=true;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t) true!==i.wrapped||this._$AL.has(s)||void 0===this[s]||this.P(s,this[s],i);}let t=false;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU();}catch(s){throw t=false,this._$EU(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}}b.elementStyles=[],b.shadowRootOptions={mode:"open"},b[d$1("elementProperties")]=new Map,b[d$1("finalized")]=new Map,p$1?.({ReactiveElement:b}),(a$1.reactiveElementVersions??=[]).push("2.0.4");
4006
+
4007
+ /**
4008
+ * @license
4009
+ * Copyright 2017 Google LLC
4010
+ * SPDX-License-Identifier: BSD-3-Clause
4011
+ */
4012
+ const t=globalThis,i$1=t.trustedTypes,s=i$1?i$1.createPolicy("lit-html",{createHTML:t=>t}):void 0,e="$lit$",h=`lit$${Math.random().toFixed(9).slice(2)}$`,o="?"+h,n=`<${o}>`,r$1=document,l=()=>r$1.createComment(""),c=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a=Array.isArray,u=t=>a(t)||"function"==typeof t?.[Symbol.iterator],d="[ \t\n\f\r]",f=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,_=/>/g,m=RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p=/'/g,g=/"/g,$=/^(?:script|style|textarea|title)$/i,T=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),A=new WeakMap,C=r$1.createTreeWalker(r$1,129);function P(t,i){if(!a(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s?s.createHTML(i):i}const V=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f?"!--"===u[1]?c=v:void 0!==u[1]?c=_:void 0!==u[2]?($.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m):void 0!==u[3]&&(c=m):c===m?">"===u[0]?(c=r??f,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m:'"'===u[3]?g:p):c===g||c===p?c=m:c===v||c===_?c=f:(c=m,r=void 0);const x=c===m&&t[i+1].startsWith("/>")?" ":"";l+=c===f?s+n:d>=0?(o.push(a),s.slice(0,d)+e+s.slice(d)+h+x):s+h+(-2===d?i:x);}return [P(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};class N{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V(t,s);if(this.el=N.createElement(f,n),C.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e)){const i=v[a++],s=r.getAttribute(t).split(h),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H:"?"===e[1]?I:"@"===e[1]?L:k}),r.removeAttribute(t);}else t.startsWith(h)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($.test(r.tagName)){const t=r.textContent.split(h),s=t.length-1;if(s>0){r.textContent=i$1?i$1.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l()),C.nextNode(),d.push({type:2,index:++c});r.append(t[s],l());}}}else if(8===r.nodeType)if(r.data===o)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h,t+1));)d.push({type:7,index:c}),t+=h.length-1;}c++;}}static createElement(t,i){const s=r$1.createElement("template");return s.innerHTML=t,s}}function S(t,i,s=t,e){if(i===T)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=S(t,h._$AS(t,i.values),h,e)),i}class M{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$1).importNode(i,true);C.currentNode=e;let h=C.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new R(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C.nextNode(),o++);}return C.currentNode=r$1,e}p(t){let i=0;for(const s of this._$AV) void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}}class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S(this,t,i),c(t)?t===E||null==t||""===t?(this._$AH!==E&&this._$AR(),this._$AH=E):t!==this._$AH&&t!==T&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):u(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E&&c(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$1.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N.createElement(P(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A.get(t.strings);return void 0===i&&A.set(t.strings,i=new N(t)),i}k(t){a(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(l()),this.O(l()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(false,true,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){ void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t));}}class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(void 0===h)t=S(this,t,i,0),o=!c(t)||t!==this._$AH&&t!==T,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S(this,e[s+n],i,n),r===T&&(r=this._$AH[n]),o||=!c(r)||r!==this._$AH[n],r===E?t=E:t!==E&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}}class H extends k{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E?void 0:t;}}class I extends k{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E);}}class L extends k{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S(this,t,i,0)??E)===T)return;const s=this._$AH,e=t===E&&s!==E||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E&&(s===E||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}}class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t);}}const j=t.litHtmlPolyfillSupport;j?.(N,R),(t.litHtmlVersions??=[]).push("3.2.1");const B=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new R(i.insertBefore(l(),t),t,void 0,s??{});}return h._$AI(t),h};
4013
+
4014
+ /**
4015
+ * @license
4016
+ * Copyright 2017 Google LLC
4017
+ * SPDX-License-Identifier: BSD-3-Clause
4018
+ */class r extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T}}r._$litElement$=true,r["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r});const i=globalThis.litElementPolyfillSupport;i?.({LitElement:r});(globalThis.litElementVersions??=[]).push("4.1.1");
4019
+
4020
+ i$3`:host([error]){--ds-auro-helptext-color: var(--ds-color-text-error-default, #cc1816)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
4021
+
4022
+ i$3`.helptext-wrapper{display:none;font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-size-200, 1rem)}:host([large]) .helptext-wrapper{font-size:var(--ds-text-body-size-default, 1rem)}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
4023
+
4024
+ i$3`:host{--ds-auro-helptext-color: var(--ds-color-text-tertiary-default, #6a717c)}`;
4025
+
4026
+ // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
4027
+ // See LICENSE in the project root for license information.
4028
+
4029
+
4030
+ // build the component class
4031
+ class AuroInput extends BaseInput {
4032
+ constructor() {
4033
+ super();
4034
+
4035
+ /**
4036
+ * Generate unique names for dependency components.
4037
+ */
4038
+ const versioning = new AuroDependencyVersioning();
4039
+
4040
+ /**
4041
+ * @private
4042
+ */
4043
+ this.iconTag = versioning.generateTag('auro-icon', iconVersion, AuroIcon);
4044
+
4045
+ /**
4046
+ * @private
4047
+ */
4048
+ this.buttonTag = versioning.generateTag('auro-button', buttonVersion, AuroButton);
4049
+ }
4050
+
4051
+ /**
4052
+ * This will register this element with the browser.
4053
+ * @param {string} [name="auro-input"] - The name of element that you want to register to.
4054
+ *
4055
+ * @example
4056
+ * AuroInput.register("custom-input") // this will register this element to <custom-input/>
4057
+ *
4058
+ */
4059
+ static register(name = "auro-input") {
4060
+ AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroInput);
4061
+ }
4062
+
4063
+ /**
4064
+ * Function to determine if the input is meant to render an icon visualizing the input type.
4065
+ * @private
4066
+ * @returns {boolean} - Returns true if the input type is meant to render an icon.
4067
+ */
4068
+ hasTypeIcon() {
4069
+ const typesWithIcons = [
4070
+ 'month-day-year',
4071
+ 'month-year',
4072
+ 'year-month-day',
4073
+ 'month-fullYear',
4074
+ 'month',
4075
+ 'year',
4076
+ 'fullYear'
4077
+ ];
4078
+
4079
+ if (this.icon || typesWithIcons.includes(this.type)) {
4080
+ return true;
4081
+ }
4082
+
4083
+ return false;
4084
+ }
4085
+
4086
+ isDateType() {
4087
+ let isDateType = false;
4088
+
4089
+ switch (this.type) {
4090
+ case 'month-day-year':
4091
+ case 'month-year':
4092
+ case 'year-month-day':
4093
+ case 'month-fullYear':
4094
+ case 'month':
4095
+ case 'year':
4096
+ case 'fullYear':
4097
+ isDateType = true;
4098
+ break;
4099
+ }
4100
+
4101
+ return isDateType;
4102
+ }
4103
+
4104
+ // function that renders the HTML and CSS into the scope of the component
4105
+ render() {
4106
+ // is-disabled class - THIS IS ONLY HERE TO MAKE A TEST PASS AS FAR AS I CAN TELL
4107
+ const labelClasses = {
4108
+ 'is-disabled': this.disabled,
4109
+ 'withIcon': this.hasTypeIcon(),
4110
+ 'withValue': this.value && this.value.length > 0
4111
+ };
4112
+
4113
+ return u$5`
4114
+ <div class="wrapper" part="wrapper">
4115
+ <div class="main">
4116
+ <div class="typeIcon">
4117
+ ${this.type === 'credit-card' ? this.processCreditCard() : undefined}
4118
+
4119
+ <!-- The repeat() method is used below in order to force auro-icon to re-render when the name value is updated.
4120
+ This should be cleaned up when auro-icon issue #31 is resolved. -->
4121
+ ${this.inputIconName
4122
+ ? c$5([this.inputIconName], (val) => val, (name) => u$5`
4123
+ <${this.iconTag}
4124
+ class="accentIcon"
4125
+ category="payment"
4126
+ name="${name}"
4127
+ part="accentIcon"
4128
+ ?disabled="${this.disabled}">
4129
+ </${this.iconTag}>
4130
+ `) : undefined
4131
+ }
4132
+
4133
+ ${this.isDateType()
4134
+ ? u$5`
4135
+ <${this.iconTag}
4136
+ class="accentIcon"
4137
+ category="interface"
4138
+ name="calendar"
4139
+ part="accentIcon"
4140
+ ?disabled="${this.disabled}">
4141
+ </${this.iconTag}>`
4142
+ : undefined
4143
+ }
4144
+ </div>
4145
+ <label for=${this.id} class="${e$5(labelClasses)}" part="label">
4146
+ <slot name="label">
4147
+ ${this.label}
4148
+ </slot>
4149
+ ${this.required ? '' : ` (${i18n(this.lang, 'optional')})`}
4150
+ </label>
4151
+ <input
4152
+ @input="${this.handleInput}"
4153
+ @focusin="${this.handleFocusin}"
4154
+ @blur="${this.handleBlur}"
4155
+ id="${this.id}"
4156
+ name="${o$5(this.name)}"
4157
+ type="${this.type === 'password' && this.showPassword ? 'text' : this.getInputType(this.type)}"
4158
+ pattern="${o$5(this.definePattern())}"
4159
+ maxlength="${o$5(this.maxLength ? this.maxLength : undefined)}"
4160
+ minlength="${o$5(this.minLength ? this.minLength : undefined)}"
4161
+ inputMode="${o$5(this.inputMode ? this.inputMode : undefined)}"
4162
+ ?required="${this.required}"
4163
+ ?disabled="${this.disabled}"
4164
+ aria-describedby="${this.uniqueId}"
4165
+ aria-invalid="${this.validity !== 'valid'}"
4166
+ placeholder=${this.getPlaceholder()}
4167
+ lang="${o$5(this.lang)}"
4168
+ ?activeLabel="${this.activeLabel}"
4169
+ spellcheck="${o$5(this.spellcheck ? this.spellcheck : undefined)}"
4170
+ autocorrect="${o$5(this.autocorrect ? this.autocorrect : undefined)}"
4171
+ autocapitalize="${o$5(this.autocapitalize ? this.autocapitalize : undefined)}"
4172
+ autocomplete="${o$5(this.autocomplete ? this.autocomplete : undefined)}"
4173
+ part="input"
4174
+ />
4175
+ </div>
4176
+ <div
4177
+ class="notificationIcons"
4178
+ part="notificationIcons"
4179
+ ?hasValue="${this.hasValue}">
4180
+ ${this.validity && this.validity !== 'valid' ? u$5`
4181
+ <div class="notification alertNotification">
4182
+ <${this.iconTag}
4183
+ category="alert"
4184
+ name="error-stroke"
4185
+ error>
4186
+ </${this.iconTag}>
4187
+ </div>
4188
+ ` : undefined}
4189
+ ${this.hasValue ? u$5`
4190
+ ${this.type === 'password' ? u$5`
4191
+ <div class="notification">
4192
+ <${this.buttonTag}
4193
+ variant="flat"
4194
+ aria-hidden="true"
4195
+ tabindex="-1"
4196
+ @click="${this.handleClickShowPassword}"
4197
+ class="notificationBtn passwordBtn">
4198
+ <${this.iconTag}
4199
+ category="interface"
4200
+ name="hide-password-stroke"
4201
+ customColor
4202
+ ?hidden=${!this.showPassword}>
4203
+ </${this.iconTag}>
4204
+ <${this.iconTag}
4205
+ category="interface"
4206
+ name="view-password-stroke"
4207
+ customColor
4208
+ ?hidden=${this.showPassword}>
4209
+ </${this.iconTag}>
4210
+ </${this.buttonTag}>
4211
+ </div>
4212
+ ` : undefined}
4213
+ ${!this.disabled && !this.readonly ? u$5`
4214
+ <div class="notification">
4215
+ <${this.buttonTag}
4216
+ variant="flat"
4217
+ class="notificationBtn clearBtn"
4218
+ aria-hidden="true"
4219
+ tabindex="-1"
4220
+ @click="${this.handleClickClear}">
4221
+ <${this.iconTag}
4222
+ customColor
4223
+ category="interface"
4224
+ name="x-lg"
4225
+ >
4226
+ </${this.iconTag}>
4227
+ </${this.buttonTag}>
4228
+ </div>
4229
+ ` : undefined}
4230
+ ` : undefined}
4231
+ </div>
4232
+ </div>
4233
+ <!-- Help text and error message template -->
4234
+ ${!this.validity || this.validity === undefined || this.validity === 'valid'
4235
+ ? u$5`
4236
+ <auro-helptext>
4237
+ <p id="${this.uniqueId}" part="helpText">
4238
+ <slot name="helptext">${this.getHelpText(this.type)}</slot>
4239
+ </p>
4240
+ </auro-helptext>
4241
+ `
4242
+ : u$5`
4243
+ <auro-helptext error>
4244
+ <p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
4245
+ ${this.errorMessage}
4246
+ </p>
4247
+ </auro-helptext>
4248
+ `
4249
+ }
4250
+ `;
4251
+ }
4252
+ }
4253
+
4254
+ AuroInput.register();