@ionic/core 8.5.7-dev.11747858611.1d1dc603 → 8.5.7-dev.11747949628.1b740070

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 (327) hide show
  1. package/components/ion-input-password-toggle.js +3 -3
  2. package/components/ion-item-divider.js +2 -2
  3. package/components/ion-item-group.js +1 -1
  4. package/components/ion-item-option.js +2 -2
  5. package/components/ion-item-options.js +1 -1
  6. package/components/ion-item-sliding.js +1 -1
  7. package/components/ion-loading.js +2 -2
  8. package/components/ion-menu-button.js +2 -2
  9. package/components/ion-menu-toggle.js +2 -2
  10. package/components/ion-menu.js +2 -2
  11. package/components/ion-nav-link.js +1 -1
  12. package/components/ion-nav.js +1 -1
  13. package/components/ion-note.js +2 -2
  14. package/components/ion-picker-legacy.js +2 -2
  15. package/components/ion-progress-bar.js +1 -1
  16. package/components/ion-range.js +3 -3
  17. package/components/ion-refresher-content.js +1 -1
  18. package/components/ion-refresher.js +1 -1
  19. package/components/ion-reorder-group.js +1 -1
  20. package/components/ion-reorder.js +1 -1
  21. package/components/ion-router-link.js +2 -2
  22. package/components/ion-router-outlet.js +1 -1
  23. package/components/ion-row.js +1 -1
  24. package/components/ion-searchbar.js +4 -4
  25. package/components/ion-segment-button.js +2 -2
  26. package/components/ion-segment-content.js +1 -1
  27. package/components/ion-segment-view.js +2 -2
  28. package/components/ion-segment.js +2 -2
  29. package/components/ion-select-option.js +1 -1
  30. package/components/ion-select.js +2 -2
  31. package/components/ion-skeleton-text.js +2 -2
  32. package/components/ion-split-pane.js +2 -2
  33. package/components/ion-tab-bar.js +2 -2
  34. package/components/ion-tab-button.js +2 -2
  35. package/components/ion-tab.js +2 -2
  36. package/components/ion-tabs.js +1 -1
  37. package/components/ion-text.js +2 -2
  38. package/components/ion-textarea.js +2 -2
  39. package/components/ion-thumbnail.js +1 -1
  40. package/components/ion-toast.js +2 -2
  41. package/components/ion-toggle.js +3 -3
  42. package/components/label.js +2 -2
  43. package/components/list-header.js +2 -2
  44. package/components/list.js +1 -1
  45. package/components/modal.js +4 -4
  46. package/components/picker-column-option.js +2 -2
  47. package/components/picker-column2.js +2 -2
  48. package/components/popover.js +2 -2
  49. package/components/radio-group.js +1 -1
  50. package/components/radio.js +3 -3
  51. package/components/ripple-effect.js +1 -1
  52. package/components/select-modal.js +1 -1
  53. package/components/select-popover.js +1 -1
  54. package/components/spinner.js +1 -1
  55. package/components/title.js +2 -2
  56. package/components/toolbar.js +2 -2
  57. package/dist/cjs/{app-globals-DvwumQAI.js → app-globals-CWtQHdcK.js} +1 -1
  58. package/dist/cjs/{button-active-Du_YCFSd.js → button-active-BzpKQ5zN.js} +1 -1
  59. package/dist/cjs/{index-QuFS9UpQ.js → index-C6GLB0dQ.js} +3 -3
  60. package/dist/cjs/{index-DCB2XSaQ.js → index-CrE5792q.js} +1 -1
  61. package/dist/cjs/{index-B6-BlKCh.js → index-qOuhvt-6.js} +0 -4
  62. package/dist/cjs/index.cjs.js +7 -7
  63. package/dist/cjs/ion-accordion_2.cjs.entry.js +2 -2
  64. package/dist/cjs/ion-action-sheet.cjs.entry.js +4 -4
  65. package/dist/cjs/ion-alert.cjs.entry.js +4 -4
  66. package/dist/cjs/ion-app_8.cjs.entry.js +9 -9
  67. package/dist/cjs/ion-avatar_3.cjs.entry.js +3 -3
  68. package/dist/cjs/ion-back-button.cjs.entry.js +2 -2
  69. package/dist/cjs/ion-backdrop.cjs.entry.js +2 -2
  70. package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +2 -2
  71. package/dist/cjs/ion-button_2.cjs.entry.js +2 -2
  72. package/dist/cjs/ion-card_5.cjs.entry.js +2 -2
  73. package/dist/cjs/ion-checkbox.cjs.entry.js +2 -2
  74. package/dist/cjs/ion-chip.cjs.entry.js +2 -2
  75. package/dist/cjs/ion-col_3.cjs.entry.js +3 -3
  76. package/dist/cjs/ion-datetime-button.cjs.entry.js +2 -2
  77. package/dist/cjs/ion-datetime_3.cjs.entry.js +7 -7
  78. package/dist/cjs/ion-fab_3.cjs.entry.js +2 -2
  79. package/dist/cjs/ion-img.cjs.entry.js +2 -2
  80. package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +2 -2
  81. package/dist/cjs/ion-input-password-toggle.cjs.entry.js +5 -5
  82. package/dist/cjs/ion-input.cjs.entry.js +2 -2
  83. package/dist/cjs/ion-item-option_3.cjs.entry.js +6 -6
  84. package/dist/cjs/ion-item_8.cjs.entry.js +14 -14
  85. package/dist/cjs/ion-loading.cjs.entry.js +5 -5
  86. package/dist/cjs/ion-menu_3.cjs.entry.js +10 -10
  87. package/dist/cjs/ion-modal.cjs.entry.js +8 -8
  88. package/dist/cjs/ion-nav_2.cjs.entry.js +5 -5
  89. package/dist/cjs/ion-picker-column-option.cjs.entry.js +4 -4
  90. package/dist/cjs/ion-picker-column.cjs.entry.js +2 -2
  91. package/dist/cjs/ion-picker.cjs.entry.js +1 -1
  92. package/dist/cjs/ion-popover.cjs.entry.js +6 -6
  93. package/dist/cjs/ion-progress-bar.cjs.entry.js +3 -3
  94. package/dist/cjs/ion-radio_2.cjs.entry.js +6 -6
  95. package/dist/cjs/ion-range.cjs.entry.js +5 -5
  96. package/dist/cjs/ion-refresher_2.cjs.entry.js +4 -4
  97. package/dist/cjs/ion-reorder_2.cjs.entry.js +4 -4
  98. package/dist/cjs/ion-ripple-effect.cjs.entry.js +3 -3
  99. package/dist/cjs/ion-route_4.cjs.entry.js +4 -4
  100. package/dist/cjs/ion-searchbar.cjs.entry.js +6 -6
  101. package/dist/cjs/ion-segment-content.cjs.entry.js +2 -2
  102. package/dist/cjs/ion-segment-view.cjs.entry.js +3 -3
  103. package/dist/cjs/ion-segment_2.cjs.entry.js +6 -6
  104. package/dist/cjs/ion-select-modal.cjs.entry.js +4 -4
  105. package/dist/cjs/ion-select_3.cjs.entry.js +7 -7
  106. package/dist/cjs/ion-spinner.cjs.entry.js +3 -3
  107. package/dist/cjs/ion-split-pane.cjs.entry.js +4 -4
  108. package/dist/cjs/ion-tab-bar_2.cjs.entry.js +6 -6
  109. package/dist/cjs/ion-tab_2.cjs.entry.js +4 -4
  110. package/dist/cjs/ion-text.cjs.entry.js +4 -4
  111. package/dist/cjs/ion-textarea.cjs.entry.js +4 -4
  112. package/dist/cjs/ion-toast.cjs.entry.js +5 -5
  113. package/dist/cjs/ion-toggle.cjs.entry.js +5 -5
  114. package/dist/cjs/{ionic-global-C3I6b0Is.js → ionic-global-BC3ee-Wa.js} +1 -1
  115. package/dist/cjs/ionic.cjs.js +4 -4
  116. package/dist/cjs/{ios.transition-CL8Q2_Bi.js → ios.transition-C9J4bBGV.js} +2 -2
  117. package/dist/cjs/loader.cjs.js +4 -4
  118. package/dist/cjs/{md.transition-D1Ast6la.js → md.transition-DT8PB4eS.js} +2 -2
  119. package/dist/cjs/{overlays-Ci3nLg5M.js → overlays-B4rlyxhY.js} +1 -1
  120. package/dist/cjs/{status-tap-Bx_wzOTo.js → status-tap-B8fjNFjq.js} +1 -1
  121. package/dist/collection/collection-manifest.json +0 -1
  122. package/dist/collection/components/input-password-toggle/input-password-toggle.js +3 -3
  123. package/dist/collection/components/item-divider/item-divider.js +2 -2
  124. package/dist/collection/components/item-group/item-group.js +1 -1
  125. package/dist/collection/components/item-option/item-option.js +2 -2
  126. package/dist/collection/components/item-options/item-options.js +1 -1
  127. package/dist/collection/components/item-sliding/item-sliding.js +1 -1
  128. package/dist/collection/components/label/label.js +2 -2
  129. package/dist/collection/components/list/list.js +1 -1
  130. package/dist/collection/components/list-header/list-header.js +2 -2
  131. package/dist/collection/components/loading/loading.js +2 -2
  132. package/dist/collection/components/menu/menu.js +2 -2
  133. package/dist/collection/components/menu-button/menu-button.js +2 -2
  134. package/dist/collection/components/menu-toggle/menu-toggle.js +2 -2
  135. package/dist/collection/components/modal/modal.js +4 -4
  136. package/dist/collection/components/nav/nav.js +1 -1
  137. package/dist/collection/components/nav-link/nav-link.js +1 -1
  138. package/dist/collection/components/note/note.js +2 -2
  139. package/dist/collection/components/picker-column-option/picker-column-option.js +2 -2
  140. package/dist/collection/components/picker-legacy/picker.js +2 -2
  141. package/dist/collection/components/picker-legacy-column/picker-column.js +2 -2
  142. package/dist/collection/components/popover/popover.js +2 -2
  143. package/dist/collection/components/progress-bar/progress-bar.js +1 -1
  144. package/dist/collection/components/radio/radio.js +3 -3
  145. package/dist/collection/components/radio-group/radio-group.js +1 -1
  146. package/dist/collection/components/range/range.js +3 -3
  147. package/dist/collection/components/refresher/refresher.js +1 -1
  148. package/dist/collection/components/refresher-content/refresher-content.js +1 -1
  149. package/dist/collection/components/reorder/reorder.js +1 -1
  150. package/dist/collection/components/reorder-group/reorder-group.js +1 -1
  151. package/dist/collection/components/ripple-effect/ripple-effect.js +1 -1
  152. package/dist/collection/components/router-link/router-link.js +2 -2
  153. package/dist/collection/components/router-outlet/router-outlet.js +1 -1
  154. package/dist/collection/components/row/row.js +1 -1
  155. package/dist/collection/components/searchbar/searchbar.js +4 -4
  156. package/dist/collection/components/segment/segment.js +2 -2
  157. package/dist/collection/components/segment-button/segment-button.js +2 -2
  158. package/dist/collection/components/segment-content/segment-content.js +1 -1
  159. package/dist/collection/components/segment-view/segment-view.js +2 -2
  160. package/dist/collection/components/select/select.js +2 -2
  161. package/dist/collection/components/select-modal/select-modal.js +1 -1
  162. package/dist/collection/components/select-option/select-option.js +1 -1
  163. package/dist/collection/components/select-popover/select-popover.js +1 -1
  164. package/dist/collection/components/skeleton-text/skeleton-text.js +2 -2
  165. package/dist/collection/components/spinner/spinner.js +1 -1
  166. package/dist/collection/components/split-pane/split-pane.js +2 -2
  167. package/dist/collection/components/tab/tab.js +2 -2
  168. package/dist/collection/components/tab-bar/tab-bar.js +2 -2
  169. package/dist/collection/components/tab-button/tab-button.js +2 -2
  170. package/dist/collection/components/tabs/tabs.js +1 -1
  171. package/dist/collection/components/text/text.js +2 -2
  172. package/dist/collection/components/textarea/textarea.js +2 -2
  173. package/dist/collection/components/thumbnail/thumbnail.js +1 -1
  174. package/dist/collection/components/title/title.js +2 -2
  175. package/dist/collection/components/toast/toast.js +2 -2
  176. package/dist/collection/components/toggle/toggle.js +3 -3
  177. package/dist/collection/components/toolbar/toolbar.js +2 -2
  178. package/dist/docs.json +1 -907
  179. package/dist/esm/{app-globals-C74-VMUb.js → app-globals-Ts_E1ch0.js} +1 -1
  180. package/dist/esm/{button-active-DRCPpzqj.js → button-active-BQqkZ_sm.js} +1 -1
  181. package/dist/esm/{index-lgeUQ6qY.js → index-B83thFnh.js} +3 -3
  182. package/dist/esm/{index-3GtB1kQI.js → index-EP3pwcdb.js} +1 -4
  183. package/dist/esm/{index-lp0kQfoC.js → index-RyWq7qIc.js} +1 -1
  184. package/dist/esm/index.js +7 -7
  185. package/dist/esm/ion-accordion_2.entry.js +2 -2
  186. package/dist/esm/ion-action-sheet.entry.js +4 -4
  187. package/dist/esm/ion-alert.entry.js +4 -4
  188. package/dist/esm/ion-app_8.entry.js +9 -9
  189. package/dist/esm/ion-avatar_3.entry.js +3 -3
  190. package/dist/esm/ion-back-button.entry.js +2 -2
  191. package/dist/esm/ion-backdrop.entry.js +2 -2
  192. package/dist/esm/ion-breadcrumb_2.entry.js +2 -2
  193. package/dist/esm/ion-button_2.entry.js +2 -2
  194. package/dist/esm/ion-card_5.entry.js +2 -2
  195. package/dist/esm/ion-checkbox.entry.js +2 -2
  196. package/dist/esm/ion-chip.entry.js +2 -2
  197. package/dist/esm/ion-col_3.entry.js +3 -3
  198. package/dist/esm/ion-datetime-button.entry.js +2 -2
  199. package/dist/esm/ion-datetime_3.entry.js +7 -7
  200. package/dist/esm/ion-fab_3.entry.js +2 -2
  201. package/dist/esm/ion-img.entry.js +2 -2
  202. package/dist/esm/ion-infinite-scroll_2.entry.js +2 -2
  203. package/dist/esm/ion-input-password-toggle.entry.js +5 -5
  204. package/dist/esm/ion-input.entry.js +2 -2
  205. package/dist/esm/ion-item-option_3.entry.js +6 -6
  206. package/dist/esm/ion-item_8.entry.js +14 -14
  207. package/dist/esm/ion-loading.entry.js +5 -5
  208. package/dist/esm/ion-menu_3.entry.js +10 -10
  209. package/dist/esm/ion-modal.entry.js +8 -8
  210. package/dist/esm/ion-nav_2.entry.js +5 -5
  211. package/dist/esm/ion-picker-column-option.entry.js +4 -4
  212. package/dist/esm/ion-picker-column.entry.js +2 -2
  213. package/dist/esm/ion-picker.entry.js +1 -1
  214. package/dist/esm/ion-popover.entry.js +6 -6
  215. package/dist/esm/ion-progress-bar.entry.js +3 -3
  216. package/dist/esm/ion-radio_2.entry.js +6 -6
  217. package/dist/esm/ion-range.entry.js +5 -5
  218. package/dist/esm/ion-refresher_2.entry.js +4 -4
  219. package/dist/esm/ion-reorder_2.entry.js +4 -4
  220. package/dist/esm/ion-ripple-effect.entry.js +3 -3
  221. package/dist/esm/ion-route_4.entry.js +4 -4
  222. package/dist/esm/ion-searchbar.entry.js +6 -6
  223. package/dist/esm/ion-segment-content.entry.js +2 -2
  224. package/dist/esm/ion-segment-view.entry.js +3 -3
  225. package/dist/esm/ion-segment_2.entry.js +6 -6
  226. package/dist/esm/ion-select-modal.entry.js +4 -4
  227. package/dist/esm/ion-select_3.entry.js +7 -7
  228. package/dist/esm/ion-spinner.entry.js +3 -3
  229. package/dist/esm/ion-split-pane.entry.js +4 -4
  230. package/dist/esm/ion-tab-bar_2.entry.js +6 -6
  231. package/dist/esm/ion-tab_2.entry.js +4 -4
  232. package/dist/esm/ion-text.entry.js +4 -4
  233. package/dist/esm/ion-textarea.entry.js +4 -4
  234. package/dist/esm/ion-toast.entry.js +5 -5
  235. package/dist/esm/ion-toggle.entry.js +5 -5
  236. package/dist/esm/{ionic-global-Dw-MNnQB.js → ionic-global-DapnXdYs.js} +1 -1
  237. package/dist/esm/ionic.js +5 -5
  238. package/dist/esm/{ios.transition-Doo_7Vid.js → ios.transition-DN6Dy4K4.js} +2 -2
  239. package/dist/esm/loader.js +5 -5
  240. package/dist/esm/{md.transition-BbcCfRk9.js → md.transition-DR8zuFnL.js} +2 -2
  241. package/dist/esm/{overlays-Pn0MyOv4.js → overlays-Blhb_0oI.js} +1 -1
  242. package/dist/esm/{status-tap-Cn5uETrs.js → status-tap-CZEjiztV.js} +1 -1
  243. package/dist/html.html-data.json +0 -160
  244. package/dist/ionic/index.esm.js +1 -1
  245. package/dist/ionic/ionic.esm.js +1 -1
  246. package/dist/ionic/{p-14d26301.entry.js → p-030daf32.entry.js} +1 -1
  247. package/dist/ionic/{p-f331dda5.entry.js → p-0434efbb.entry.js} +1 -1
  248. package/dist/ionic/p-07a47eb6.entry.js +4 -0
  249. package/dist/ionic/{p-43f012a4.entry.js → p-08232f2d.entry.js} +1 -1
  250. package/dist/ionic/{p-ff88b250.entry.js → p-0c2a069d.entry.js} +1 -1
  251. package/dist/ionic/{p-2e42fa68.entry.js → p-112af08b.entry.js} +1 -1
  252. package/dist/ionic/{p-1e9ea564.entry.js → p-12b44c66.entry.js} +1 -1
  253. package/dist/ionic/{p-e83ead65.entry.js → p-1a19090e.entry.js} +1 -1
  254. package/dist/ionic/{p-2517fcdf.entry.js → p-306eab7a.entry.js} +1 -1
  255. package/dist/ionic/{p-6bd192d8.entry.js → p-38598652.entry.js} +1 -1
  256. package/dist/ionic/{p-0bcd3299.entry.js → p-38921e2f.entry.js} +1 -1
  257. package/dist/ionic/{p-b18a4590.entry.js → p-38dcbd40.entry.js} +1 -1
  258. package/dist/ionic/{p-1da92348.entry.js → p-3edb2346.entry.js} +1 -1
  259. package/dist/ionic/{p-cde545fa.entry.js → p-4119d144.entry.js} +1 -1
  260. package/dist/ionic/{p-9c7d7711.entry.js → p-46a1ce99.entry.js} +1 -1
  261. package/dist/ionic/{p-8d7afec5.entry.js → p-46c15fe2.entry.js} +1 -1
  262. package/dist/ionic/p-46f82b82.entry.js +4 -0
  263. package/dist/ionic/{p-a20a15cc.entry.js → p-484073b5.entry.js} +1 -1
  264. package/dist/ionic/{p-98f759e4.entry.js → p-49122d48.entry.js} +1 -1
  265. package/dist/ionic/{p-592db4a8.entry.js → p-4a5cf7ac.entry.js} +1 -1
  266. package/dist/ionic/p-5459e444.entry.js +4 -0
  267. package/dist/ionic/{p-a22fe54d.entry.js → p-5b8abc2f.entry.js} +1 -1
  268. package/dist/ionic/{p-96d912f5.entry.js → p-5fb997f8.entry.js} +1 -1
  269. package/dist/ionic/{p-29186993.entry.js → p-61f52724.entry.js} +1 -1
  270. package/dist/ionic/{p-2c6931ed.entry.js → p-89e3b3c6.entry.js} +1 -1
  271. package/dist/ionic/{p-e5495b3b.entry.js → p-8dda7cd4.entry.js} +1 -1
  272. package/dist/ionic/{p-920540c6.entry.js → p-93996b12.entry.js} +1 -1
  273. package/dist/ionic/{p-178084cb.entry.js → p-94375099.entry.js} +1 -1
  274. package/dist/ionic/{p-fb714eec.entry.js → p-99c93730.entry.js} +1 -1
  275. package/dist/ionic/{p-0bc3d6d0.entry.js → p-9a0bde6e.entry.js} +1 -1
  276. package/dist/ionic/{p-DYqTiW2v.js → p-BSMFLyVh.js} +1 -1
  277. package/dist/ionic/{p-wsLGfiE0.js → p-CgRZM5_E.js} +1 -1
  278. package/dist/ionic/p-CqNf-A5G.js +4 -0
  279. package/dist/ionic/{p-BBMlbfDQ.js → p-DCstKNei.js} +1 -1
  280. package/dist/ionic/{p-CjUUcfjC.js → p-DPhSdjFK.js} +1 -1
  281. package/dist/ionic/{p-CuVupNFU.js → p-Dnc554yu.js} +1 -1
  282. package/dist/ionic/{p-3GtB1kQI.js → p-EP3pwcdb.js} +2 -2
  283. package/dist/ionic/p-EglNvYQn.js +4 -0
  284. package/dist/ionic/{p-BC2IYr2c.js → p-LpklIrOy.js} +1 -1
  285. package/dist/ionic/{p-CGyDG2ar.js → p-Uz6zKimy.js} +1 -1
  286. package/dist/ionic/{p-ed36aee8.entry.js → p-a178af33.entry.js} +1 -1
  287. package/dist/ionic/{p-c1b0e3b6.entry.js → p-a26637b1.entry.js} +1 -1
  288. package/dist/ionic/{p-e2d9c488.entry.js → p-a4bcf305.entry.js} +1 -1
  289. package/dist/ionic/{p-691fa8c7.entry.js → p-a9997b1b.entry.js} +1 -1
  290. package/dist/ionic/{p-eec040ff.entry.js → p-ade7bda6.entry.js} +1 -1
  291. package/dist/ionic/{p-bc84650a.entry.js → p-aeb7297a.entry.js} +1 -1
  292. package/dist/ionic/{p-250c972f.entry.js → p-b2b0f539.entry.js} +1 -1
  293. package/dist/ionic/{p-3fa87259.entry.js → p-bc9feb4b.entry.js} +1 -1
  294. package/dist/ionic/{p-99cc16fb.entry.js → p-c19bc276.entry.js} +1 -1
  295. package/dist/ionic/{p-fd156864.entry.js → p-c3abde95.entry.js} +1 -1
  296. package/dist/ionic/{p-832b6c90.entry.js → p-c9bca536.entry.js} +1 -1
  297. package/dist/ionic/{p-d4742f5c.entry.js → p-ce26cd7d.entry.js} +1 -1
  298. package/dist/ionic/{p-f35cb090.entry.js → p-d77d0b41.entry.js} +1 -1
  299. package/dist/ionic/{p-7a6c96ca.entry.js → p-d887000e.entry.js} +1 -1
  300. package/dist/ionic/{p-05427be9.entry.js → p-d9c08f93.entry.js} +1 -1
  301. package/dist/ionic/{p-3ca63859.entry.js → p-e2e4b1f1.entry.js} +1 -1
  302. package/dist/ionic/{p-da105dce.entry.js → p-e426331f.entry.js} +1 -1
  303. package/dist/ionic/{p-9262223a.entry.js → p-e471e1e5.entry.js} +1 -1
  304. package/dist/ionic/{p-ee504ce4.entry.js → p-e5e82fa5.entry.js} +1 -1
  305. package/dist/ionic/{p-2438054c.entry.js → p-f0c5ea4c.entry.js} +1 -1
  306. package/dist/ionic/{p-5756b724.entry.js → p-ff362ebc.entry.js} +1 -1
  307. package/dist/types/components.d.ts +0 -167
  308. package/dist/types/interface.d.ts +0 -1
  309. package/hydrate/index.js +99 -688
  310. package/hydrate/index.mjs +99 -688
  311. package/package.json +1 -1
  312. package/components/ion-input-otp.d.ts +0 -11
  313. package/components/ion-input-otp.js +0 -608
  314. package/dist/cjs/ion-input-otp.cjs.entry.js +0 -571
  315. package/dist/collection/components/input-otp/input-otp-interface.js +0 -1
  316. package/dist/collection/components/input-otp/input-otp.ios.css +0 -377
  317. package/dist/collection/components/input-otp/input-otp.js +0 -996
  318. package/dist/collection/components/input-otp/input-otp.md.css +0 -377
  319. package/dist/esm/ion-input-otp.entry.js +0 -569
  320. package/dist/ionic/p-1fe35f29.entry.js +0 -4
  321. package/dist/ionic/p-58f92c36.entry.js +0 -4
  322. package/dist/ionic/p-8c496d65.entry.js +0 -4
  323. package/dist/ionic/p-B7Khsp7D.js +0 -4
  324. package/dist/ionic/p-CO_y91jJ.js +0 -4
  325. package/dist/ionic/p-bf6b00ab.entry.js +0 -4
  326. package/dist/types/components/input-otp/input-otp-interface.d.ts +0 -21
  327. package/dist/types/components/input-otp/input-otp.d.ts +0 -270
@@ -1,569 +0,0 @@
1
- /*!
2
- * (C) Ionic http://ionicframework.com - MIT License
3
- */
4
- import { r as registerInstance, c as createEvent, h, F as Fragment, d as Host, g as getElement } from './index-3GtB1kQI.js';
5
- import { p as printIonWarning } from './index-CEo1SqXS.js';
6
- import { i as isRTL } from './dir-C53feagD.js';
7
- import { c as createColorClasses } from './theme-DiVJyqlX.js';
8
- import { b as getIonMode } from './ionic-global-Dw-MNnQB.js';
9
-
10
- const inputOtpIosCss = ".sc-ion-input-otp-ios-h{--margin-top:0;--margin-end:0;--margin-bottom:0;--margin-start:0;--padding-top:16px;--padding-end:0;--padding-bottom:16px;--padding-start:0;--color:initial;--min-width:40px;--separator-width:8px;--separator-height:var(--separator-width);--separator-border-radius:999px;--separator-color:var(--ion-color-step-150, var(--ion-background-color-step-150, #d9d9d9));--highlight-color-focused:var(--ion-color-primary, #0054e9);--highlight-color-valid:var(--ion-color-success, #2dd55b);--highlight-color-invalid:var(--ion-color-danger, #c5000f);--highlight-color:var(--highlight-color-focused);display:block;position:relative;font-size:0.875rem}.input-otp-group.sc-ion-input-otp-ios{-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.native-wrapper.sc-ion-input-otp-ios{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:var(--min-width)}.native-input.sc-ion-input-otp-ios{border-radius:var(--border-radius);width:var(--width);min-width:inherit;height:var(--height);border-width:var(--border-width);border-style:solid;border-color:var(--border-color);background:var(--background);color:var(--color);font-size:inherit;text-align:center;-webkit-appearance:none;-moz-appearance:none;appearance:none}.has-focus.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios{caret-color:var(--highlight-color)}.input-otp-description.sc-ion-input-otp-ios{color:var(--ion-color-step-700, var(--ion-text-color-step-300, #4d4d4d));font-size:0.75rem;line-height:1.25rem;text-align:center}.input-otp-separator.sc-ion-input-otp-ios{border-radius:var(--separator-border-radius);-ms-flex-negative:0;flex-shrink:0;width:var(--separator-width);height:var(--separator-height);background:var(--separator-color)}.input-otp-size-small.sc-ion-input-otp-ios-h{--width:40px;--height:40px}.input-otp-size-small.sc-ion-input-otp-ios-h .input-otp-group.sc-ion-input-otp-ios{gap:8px}.input-otp-size-medium.sc-ion-input-otp-ios-h{--width:48px;--height:48px}.input-otp-size-large.sc-ion-input-otp-ios-h{--width:56px;--height:56px}.input-otp-size-medium.sc-ion-input-otp-ios-h .input-otp-group.sc-ion-input-otp-ios,.input-otp-size-large.sc-ion-input-otp-ios-h .input-otp-group.sc-ion-input-otp-ios{gap:12px}.input-otp-shape-round.sc-ion-input-otp-ios-h{--border-radius:16px}.input-otp-shape-soft.sc-ion-input-otp-ios-h{--border-radius:8px}.input-otp-shape-rectangular.sc-ion-input-otp-ios-h{--border-radius:0}.input-otp-fill-outline.sc-ion-input-otp-ios-h{--background:none}.input-otp-fill-solid.sc-ion-input-otp-ios-h{--border-color:var(--ion-color-step-50, var(--ion-background-color-step-50, #f2f2f2));--background:var(--ion-color-step-50, var(--ion-background-color-step-50, #f2f2f2))}.input-otp-disabled.sc-ion-input-otp-ios-h{--color:var(--ion-color-step-350, var(--ion-text-color-step-650, #a6a6a6))}.input-otp-fill-outline.input-otp-disabled.sc-ion-input-otp-ios-h{--background:var(--ion-color-step-50, var(--ion-background-color-step-50, #f2f2f2));--border-color:var(--ion-color-step-100, var(--ion-background-color-step-100, #e6e6e6))}.input-otp-disabled.sc-ion-input-otp-ios-h,.input-otp-disabled.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios:disabled{cursor:not-allowed}.has-focus.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios:focus{--border-color:var(--highlight-color);outline:none}.input-otp-fill-outline.input-otp-readonly.sc-ion-input-otp-ios-h{--background:var(--ion-color-step-50, var(--ion-background-color-step-50, #f2f2f2))}.input-otp-fill-solid.input-otp-disabled.sc-ion-input-otp-ios-h,.input-otp-fill-solid.input-otp-readonly.sc-ion-input-otp-ios-h{--border-color:var(--ion-color-step-100, var(--ion-background-color-step-100, #e6e6e6));--background:var(--ion-color-step-100, var(--ion-background-color-step-100, #e6e6e6))}.ion-touched.ion-invalid.sc-ion-input-otp-ios-h{--highlight-color:var(--highlight-color-invalid)}.ion-valid.sc-ion-input-otp-ios-h{--highlight-color:var(--highlight-color-valid)}.has-focus.ion-valid.sc-ion-input-otp-ios-h,.ion-touched.ion-invalid.sc-ion-input-otp-ios-h{--border-color:var(--highlight-color)}.ion-color.sc-ion-input-otp-ios-h{--highlight-color-focused:var(--ion-color-base)}.input-otp-fill-outline.ion-color.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios,.input-otp-fill-solid.ion-color.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios:focus{border-color:rgba(var(--ion-color-base-rgb), 0.6)}.input-otp-fill-outline.ion-color.ion-invalid.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios,.input-otp-fill-solid.ion-color.ion-invalid.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios,.input-otp-fill-outline.ion-color.has-focus.ion-invalid.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios,.input-otp-fill-solid.ion-color.has-focus.ion-invalid.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios{border-color:var(--ion-color-danger, #c5000f)}.input-otp-fill-outline.ion-color.ion-valid.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios,.input-otp-fill-solid.ion-color.ion-valid.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios,.input-otp-fill-outline.ion-color.has-focus.ion-valid.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios,.input-otp-fill-solid.ion-color.has-focus.ion-valid.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios{border-color:var(--ion-color-success, #2dd55b)}.input-otp-fill-outline.input-otp-disabled.ion-color.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios{border-color:rgba(var(--ion-color-base-rgb), 0.3)}.sc-ion-input-otp-ios-h{--border-width:0.55px}.has-focus.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios:focus{--border-width:1px}.input-otp-fill-outline.sc-ion-input-otp-ios-h{--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, var(--ion-background-color-step-250, #c8c7cc))))}";
11
-
12
- const inputOtpMdCss = ".sc-ion-input-otp-md-h{--margin-top:0;--margin-end:0;--margin-bottom:0;--margin-start:0;--padding-top:16px;--padding-end:0;--padding-bottom:16px;--padding-start:0;--color:initial;--min-width:40px;--separator-width:8px;--separator-height:var(--separator-width);--separator-border-radius:999px;--separator-color:var(--ion-color-step-150, var(--ion-background-color-step-150, #d9d9d9));--highlight-color-focused:var(--ion-color-primary, #0054e9);--highlight-color-valid:var(--ion-color-success, #2dd55b);--highlight-color-invalid:var(--ion-color-danger, #c5000f);--highlight-color:var(--highlight-color-focused);display:block;position:relative;font-size:0.875rem}.input-otp-group.sc-ion-input-otp-md{-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.native-wrapper.sc-ion-input-otp-md{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:var(--min-width)}.native-input.sc-ion-input-otp-md{border-radius:var(--border-radius);width:var(--width);min-width:inherit;height:var(--height);border-width:var(--border-width);border-style:solid;border-color:var(--border-color);background:var(--background);color:var(--color);font-size:inherit;text-align:center;-webkit-appearance:none;-moz-appearance:none;appearance:none}.has-focus.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md{caret-color:var(--highlight-color)}.input-otp-description.sc-ion-input-otp-md{color:var(--ion-color-step-700, var(--ion-text-color-step-300, #4d4d4d));font-size:0.75rem;line-height:1.25rem;text-align:center}.input-otp-separator.sc-ion-input-otp-md{border-radius:var(--separator-border-radius);-ms-flex-negative:0;flex-shrink:0;width:var(--separator-width);height:var(--separator-height);background:var(--separator-color)}.input-otp-size-small.sc-ion-input-otp-md-h{--width:40px;--height:40px}.input-otp-size-small.sc-ion-input-otp-md-h .input-otp-group.sc-ion-input-otp-md{gap:8px}.input-otp-size-medium.sc-ion-input-otp-md-h{--width:48px;--height:48px}.input-otp-size-large.sc-ion-input-otp-md-h{--width:56px;--height:56px}.input-otp-size-medium.sc-ion-input-otp-md-h .input-otp-group.sc-ion-input-otp-md,.input-otp-size-large.sc-ion-input-otp-md-h .input-otp-group.sc-ion-input-otp-md{gap:12px}.input-otp-shape-round.sc-ion-input-otp-md-h{--border-radius:16px}.input-otp-shape-soft.sc-ion-input-otp-md-h{--border-radius:8px}.input-otp-shape-rectangular.sc-ion-input-otp-md-h{--border-radius:0}.input-otp-fill-outline.sc-ion-input-otp-md-h{--background:none}.input-otp-fill-solid.sc-ion-input-otp-md-h{--border-color:var(--ion-color-step-50, var(--ion-background-color-step-50, #f2f2f2));--background:var(--ion-color-step-50, var(--ion-background-color-step-50, #f2f2f2))}.input-otp-disabled.sc-ion-input-otp-md-h{--color:var(--ion-color-step-350, var(--ion-text-color-step-650, #a6a6a6))}.input-otp-fill-outline.input-otp-disabled.sc-ion-input-otp-md-h{--background:var(--ion-color-step-50, var(--ion-background-color-step-50, #f2f2f2));--border-color:var(--ion-color-step-100, var(--ion-background-color-step-100, #e6e6e6))}.input-otp-disabled.sc-ion-input-otp-md-h,.input-otp-disabled.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md:disabled{cursor:not-allowed}.has-focus.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md:focus{--border-color:var(--highlight-color);outline:none}.input-otp-fill-outline.input-otp-readonly.sc-ion-input-otp-md-h{--background:var(--ion-color-step-50, var(--ion-background-color-step-50, #f2f2f2))}.input-otp-fill-solid.input-otp-disabled.sc-ion-input-otp-md-h,.input-otp-fill-solid.input-otp-readonly.sc-ion-input-otp-md-h{--border-color:var(--ion-color-step-100, var(--ion-background-color-step-100, #e6e6e6));--background:var(--ion-color-step-100, var(--ion-background-color-step-100, #e6e6e6))}.ion-touched.ion-invalid.sc-ion-input-otp-md-h{--highlight-color:var(--highlight-color-invalid)}.ion-valid.sc-ion-input-otp-md-h{--highlight-color:var(--highlight-color-valid)}.has-focus.ion-valid.sc-ion-input-otp-md-h,.ion-touched.ion-invalid.sc-ion-input-otp-md-h{--border-color:var(--highlight-color)}.ion-color.sc-ion-input-otp-md-h{--highlight-color-focused:var(--ion-color-base)}.input-otp-fill-outline.ion-color.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md,.input-otp-fill-solid.ion-color.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md:focus{border-color:rgba(var(--ion-color-base-rgb), 0.6)}.input-otp-fill-outline.ion-color.ion-invalid.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md,.input-otp-fill-solid.ion-color.ion-invalid.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md,.input-otp-fill-outline.ion-color.has-focus.ion-invalid.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md,.input-otp-fill-solid.ion-color.has-focus.ion-invalid.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md{border-color:var(--ion-color-danger, #c5000f)}.input-otp-fill-outline.ion-color.ion-valid.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md,.input-otp-fill-solid.ion-color.ion-valid.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md,.input-otp-fill-outline.ion-color.has-focus.ion-valid.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md,.input-otp-fill-solid.ion-color.has-focus.ion-valid.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md{border-color:var(--ion-color-success, #2dd55b)}.input-otp-fill-outline.input-otp-disabled.ion-color.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md{border-color:rgba(var(--ion-color-base-rgb), 0.3)}.sc-ion-input-otp-md-h{--border-width:1px}.has-focus.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md:focus{--border-width:2px}.input-otp-fill-outline.sc-ion-input-otp-md-h{--border-color:var(--ion-color-step-300, var(--ion-background-color-step-300, #b3b3b3))}";
13
-
14
- const InputOTP = class {
15
- constructor(hostRef) {
16
- registerInstance(this, hostRef);
17
- this.ionInput = createEvent(this, "ionInput", 7);
18
- this.ionChange = createEvent(this, "ionChange", 7);
19
- this.ionComplete = createEvent(this, "ionComplete", 7);
20
- this.ionBlur = createEvent(this, "ionBlur", 7);
21
- this.ionFocus = createEvent(this, "ionFocus", 7);
22
- this.inputRefs = [];
23
- this.inputId = `ion-input-otp-${inputIds++}`;
24
- this.parsedSeparators = [];
25
- /**
26
- * Tracks whether the user is navigating through input boxes using keyboard navigation
27
- * (arrow keys, tab) versus mouse clicks. This is used to determine the appropriate
28
- * focus behavior when an input box is focused.
29
- */
30
- this.isKeyboardNavigation = false;
31
- this.inputValues = [];
32
- this.hasFocus = false;
33
- /**
34
- * Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user.
35
- * Available options: `"off"`, `"none"`, `"on"`, `"sentences"`, `"words"`, `"characters"`.
36
- */
37
- this.autocapitalize = 'off';
38
- /**
39
- * If `true`, the user cannot interact with the input.
40
- */
41
- this.disabled = false;
42
- /**
43
- * The fill for the input boxes. If `"solid"` the input boxes will have a background. If
44
- * `"outline"` the input boxes will be transparent with a border.
45
- */
46
- this.fill = 'outline';
47
- /**
48
- * The number of input boxes to display.
49
- */
50
- this.length = 4;
51
- /**
52
- * If `true`, the user cannot modify the value.
53
- */
54
- this.readonly = false;
55
- /**
56
- * The size of the input boxes.
57
- */
58
- this.size = 'medium';
59
- /**
60
- * The shape of the input boxes.
61
- * If "round" they will have an increased border radius.
62
- * If "rectangular" they will have no border radius.
63
- * If "soft" they will have a soft border radius.
64
- */
65
- this.shape = 'round';
66
- /**
67
- * The type of input allowed in the input boxes.
68
- */
69
- this.type = 'number';
70
- /**
71
- * The value of the input group.
72
- */
73
- this.value = '';
74
- this.onInput = (index) => (event) => {
75
- const { validKeyPattern } = this;
76
- const value = event.target.value;
77
- // Only allow input if it's a single character and matches the pattern
78
- if (value.length > 1 || (value.length > 0 && !validKeyPattern.test(value))) {
79
- // Reset the input value if not valid
80
- this.inputRefs[index].value = '';
81
- this.inputValues[index] = '';
82
- return;
83
- }
84
- // Find the first empty box before or at the current index
85
- let targetIndex = index;
86
- for (let i = 0; i < index; i++) {
87
- if (!this.inputValues[i] || this.inputValues[i] === '') {
88
- targetIndex = i;
89
- break;
90
- }
91
- }
92
- // Set the value at the target index
93
- this.inputValues[targetIndex] = value;
94
- // If the value was entered in a later box, clear the current box
95
- if (targetIndex !== index) {
96
- this.inputRefs[index].value = '';
97
- }
98
- if (value.length > 0) {
99
- this.focusNext(targetIndex);
100
- }
101
- this.updateValue(event);
102
- };
103
- /**
104
- * Handles keyboard navigation and input for the OTP component.
105
- *
106
- * Navigation:
107
- * - Backspace: Clears current input and moves to previous box if empty
108
- * - Arrow Left/Right: Moves focus between input boxes
109
- * - Tab: Allows normal tab navigation between components
110
- *
111
- * Input Behavior:
112
- * - Validates input against the allowed pattern
113
- * - When entering a key in a filled box:
114
- * - Shifts existing values right if there is room
115
- * - Updates the value of the input group
116
- * - Prevents default behavior to avoid automatic focus shift
117
- */
118
- this.onKeyDown = (index) => (event) => {
119
- const { length } = this;
120
- const rtl = isRTL(this.el);
121
- const input = event.target;
122
- const isPasteShortcut = (event.metaKey || event.ctrlKey) && event.key.toLowerCase() === 'v';
123
- const isTextSelection = input.selectionStart !== input.selectionEnd;
124
- // Return if the key is the paste shortcut or the input value
125
- // text is selected and let the onPaste / onInput handler manage it
126
- if (isPasteShortcut || isTextSelection) {
127
- return;
128
- }
129
- if (event.key === 'Backspace') {
130
- if (this.inputValues[index]) {
131
- // Shift all values to the right of the current index left by one
132
- for (let i = index; i < length - 1; i++) {
133
- this.inputValues[i] = this.inputValues[i + 1];
134
- }
135
- // Clear the last box
136
- this.inputValues[length - 1] = '';
137
- // Update all inputRefs to match inputValues
138
- for (let i = 0; i < length; i++) {
139
- this.inputRefs[i].value = this.inputValues[i] || '';
140
- }
141
- this.updateValue(event);
142
- event.preventDefault();
143
- }
144
- else if (!this.inputValues[index] && index > 0) {
145
- // If current input is empty, move to previous input
146
- this.focusPrevious(index);
147
- }
148
- }
149
- else if (event.key === 'ArrowLeft' || event.key === 'ArrowRight') {
150
- this.isKeyboardNavigation = true;
151
- event.preventDefault();
152
- const isLeft = event.key === 'ArrowLeft';
153
- const shouldMoveNext = (isLeft && rtl) || (!isLeft && !rtl);
154
- // Only allow moving to the next input if the current has a value
155
- if (shouldMoveNext) {
156
- if (this.inputValues[index] && index < length - 1) {
157
- this.focusNext(index);
158
- }
159
- }
160
- else {
161
- this.focusPrevious(index);
162
- }
163
- }
164
- else if (event.key === 'Tab') {
165
- this.isKeyboardNavigation = true;
166
- // Let all tab events proceed normally
167
- return;
168
- }
169
- // If the input box contains a value and the key being
170
- // entered is a valid key for the input box update the value
171
- // and shift the values to the right if there is room.
172
- if (this.inputValues[index] && this.validKeyPattern.test(event.key)) {
173
- if (!this.inputValues[length - 1]) {
174
- for (let i = length - 1; i > index; i--) {
175
- this.inputValues[i] = this.inputValues[i - 1];
176
- this.inputRefs[i].value = this.inputValues[i] || '';
177
- }
178
- }
179
- this.inputValues[index] = event.key;
180
- this.inputRefs[index].value = event.key;
181
- this.updateValue(event);
182
- // Prevent default to avoid the browser from
183
- // automatically moving the focus to the next input
184
- event.preventDefault();
185
- }
186
- };
187
- /**
188
- * Handles pasting text into the input OTP component.
189
- * This function prevents the default paste behavior and
190
- * validates the pasted text against the allowed pattern.
191
- * It then updates the value of the input group and focuses
192
- * the next empty input after pasting.
193
- */
194
- this.onPaste = (event) => {
195
- var _a, _b, _c;
196
- const { inputRefs, length, validKeyPattern } = this;
197
- event.preventDefault();
198
- const pastedText = (_a = event.clipboardData) === null || _a === void 0 ? void 0 : _a.getData('text');
199
- // If there is no pasted text, still emit the input change event
200
- // because this is how the native input element behaves
201
- // but return early because there is nothing to paste.
202
- if (!pastedText) {
203
- this.emitIonInput(event);
204
- return;
205
- }
206
- const validChars = pastedText
207
- .split('')
208
- .filter((char) => validKeyPattern.test(char))
209
- .slice(0, length);
210
- // Find the first empty input
211
- const startIndex = this.getFirstEmptyIndex();
212
- // If all boxes are filled, start at 0
213
- const pasteStart = startIndex === -1 ? 0 : startIndex;
214
- validChars.forEach((char, index) => {
215
- const targetIndex = pasteStart + index;
216
- if (targetIndex < length) {
217
- this.inputRefs[targetIndex].value = char;
218
- this.inputValues[targetIndex] = char;
219
- }
220
- });
221
- this.updateValue(event);
222
- // Focus the next empty input after pasting
223
- // If all boxes are filled, focus the last input
224
- const nextEmptyIndex = pasteStart + validChars.length;
225
- if (nextEmptyIndex < length) {
226
- (_b = inputRefs[nextEmptyIndex]) === null || _b === void 0 ? void 0 : _b.focus();
227
- }
228
- else {
229
- (_c = inputRefs[length - 1]) === null || _c === void 0 ? void 0 : _c.focus();
230
- }
231
- };
232
- /**
233
- * Handles the focus behavior for the input OTP component.
234
- *
235
- * Focus behavior:
236
- * 1. Keyboard navigation: Allow normal focus movement
237
- * 2. Mouse click:
238
- * - If clicked box has value: Focus that box
239
- * - If clicked box is empty: Focus first empty box
240
- *
241
- * Emits the `ionFocus` event when the input group gains focus.
242
- */
243
- this.onFocus = (index) => (event) => {
244
- var _a;
245
- const { inputRefs } = this;
246
- // Only emit ionFocus and set the focusedValue when the
247
- // component first gains focus
248
- if (!this.hasFocus) {
249
- this.ionFocus.emit(event);
250
- this.focusedValue = this.value;
251
- }
252
- this.hasFocus = true;
253
- let finalIndex = index;
254
- if (!this.isKeyboardNavigation) {
255
- // If the clicked box has a value, focus it
256
- // Otherwise focus the first empty box
257
- const targetIndex = this.inputValues[index] ? index : this.getFirstEmptyIndex();
258
- finalIndex = targetIndex === -1 ? this.length - 1 : targetIndex;
259
- // Focus the target box
260
- (_a = this.inputRefs[finalIndex]) === null || _a === void 0 ? void 0 : _a.focus();
261
- }
262
- // Update tabIndexes to match the focused box
263
- inputRefs.forEach((input, i) => {
264
- input.tabIndex = i === finalIndex ? 0 : -1;
265
- });
266
- // Reset the keyboard navigation flag
267
- this.isKeyboardNavigation = false;
268
- };
269
- /**
270
- * Handles the blur behavior for the input OTP component.
271
- * Emits the `ionBlur` event when the input group loses focus.
272
- */
273
- this.onBlur = (event) => {
274
- const { inputRefs } = this;
275
- const relatedTarget = event.relatedTarget;
276
- // Do not emit blur if we're moving to another input box in the same component
277
- const isInternalFocus = relatedTarget != null && inputRefs.includes(relatedTarget);
278
- if (!isInternalFocus) {
279
- this.hasFocus = false;
280
- // Reset tabIndexes when focus leaves the component
281
- this.updateTabIndexes();
282
- // Always emit ionBlur when focus leaves the component
283
- this.ionBlur.emit(event);
284
- // Only emit ionChange if the value has actually changed
285
- if (this.focusedValue !== this.value) {
286
- this.emitIonChange(event);
287
- }
288
- }
289
- };
290
- }
291
- valueChanged() {
292
- this.initializeValues();
293
- }
294
- /**
295
- * Processes the separators prop into an array of numbers.
296
- *
297
- * If the separators prop is not provided, returns an empty array.
298
- * If the separators prop is 'all', returns an array of all valid positions (1 to length-1).
299
- * If the separators prop is an array, returns it as is.
300
- * If the separators prop is a string, splits it by commas and parses each part as a number.
301
- *
302
- * If the separators are greater than the input length, it will warn and ignore the separators.
303
- */
304
- processSeparators() {
305
- const { separators, length } = this;
306
- if (separators === undefined) {
307
- this.parsedSeparators = [];
308
- return;
309
- }
310
- if (typeof separators === 'string' && separators !== 'all') {
311
- const isValidFormat = /^(\d+)(,\d+)*$/.test(separators);
312
- if (!isValidFormat) {
313
- printIonWarning(`[ion-input-otp] - Invalid separators format. Expected a comma-separated list of numbers, an array of numbers, or "all". Received: ${separators}`, this.el);
314
- this.parsedSeparators = [];
315
- return;
316
- }
317
- }
318
- let separatorValues;
319
- if (separators === 'all') {
320
- separatorValues = Array.from({ length: length - 1 }, (_, i) => i + 1);
321
- }
322
- else if (Array.isArray(separators)) {
323
- separatorValues = separators;
324
- }
325
- else {
326
- separatorValues = separators
327
- .split(',')
328
- .map((pos) => parseInt(pos, 10))
329
- .filter((pos) => !isNaN(pos));
330
- }
331
- // Check for duplicate separator positions
332
- const duplicates = separatorValues.filter((pos, index) => separatorValues.indexOf(pos) !== index);
333
- if (duplicates.length > 0) {
334
- printIonWarning(`[ion-input-otp] - Duplicate separator positions are not allowed. Received: ${separators}`, this.el);
335
- }
336
- const invalidSeparators = separatorValues.filter((pos) => pos > length);
337
- if (invalidSeparators.length > 0) {
338
- printIonWarning(`[ion-input-otp] - The following separator positions are greater than the input length (${length}): ${invalidSeparators.join(', ')}. These separators will be ignored.`, this.el);
339
- }
340
- this.parsedSeparators = separatorValues.filter((pos) => pos <= length);
341
- }
342
- componentWillLoad() {
343
- this.processSeparators();
344
- this.initializeValues();
345
- }
346
- /**
347
- * Initializes the input values array based on the current value prop.
348
- * This splits the value into individual characters and validates them against
349
- * the allowed pattern. The values are then used as the values in the native
350
- * input boxes and the value of the input group is updated.
351
- */
352
- initializeValues() {
353
- if (this.value != null && String(this.value).length > 0) {
354
- const chars = String(this.value).split('').slice(0, this.length);
355
- chars.forEach((char, index) => {
356
- if (this.validKeyPattern.test(char)) {
357
- this.inputValues[index] = char;
358
- }
359
- });
360
- // Update the value without emitting events
361
- this.value = this.inputValues.join('');
362
- }
363
- }
364
- /**
365
- * Resets the input values and focus state.
366
- */
367
- async reset() {
368
- this.inputValues = Array(this.length).fill('');
369
- this.value = '';
370
- this.focusedValue = null;
371
- this.hasFocus = false;
372
- this.inputRefs.forEach((input) => {
373
- input.blur();
374
- });
375
- this.updateTabIndexes();
376
- }
377
- /**
378
- * Sets focus to an input box.
379
- * @param index - The index of the input box to focus (0-based).
380
- * If provided and the input box has a value, the input box at that index will be focused.
381
- * Otherwise, the first empty input box or the last input if all are filled will be focused.
382
- */
383
- async setFocus(index) {
384
- var _a, _b;
385
- if (typeof index === 'number') {
386
- const validIndex = Math.max(0, Math.min(index, this.length - 1));
387
- (_a = this.inputRefs[validIndex]) === null || _a === void 0 ? void 0 : _a.focus();
388
- }
389
- else {
390
- const tabbableIndex = this.getTabbableIndex();
391
- (_b = this.inputRefs[tabbableIndex]) === null || _b === void 0 ? void 0 : _b.focus();
392
- }
393
- }
394
- /**
395
- * Get the regex pattern for allowed characters.
396
- * If a pattern is provided, use it to create a regex pattern
397
- * Otherwise, use the default regex pattern based on type
398
- */
399
- get validKeyPattern() {
400
- return new RegExp(`^${this.getPattern()}$`, 'u');
401
- }
402
- /**
403
- * Gets the string pattern to pass to the input element
404
- * and use in the regex for allowed characters.
405
- */
406
- getPattern() {
407
- const { pattern, type } = this;
408
- if (pattern) {
409
- return pattern;
410
- }
411
- return type === 'number' ? '[\\p{N}]' : '[\\p{L}\\p{N}]';
412
- }
413
- /**
414
- * Get the default value for inputmode.
415
- * If inputmode is provided, use it.
416
- * Otherwise, use the default inputmode based on type
417
- */
418
- getInputmode() {
419
- const { inputmode } = this;
420
- if (inputmode) {
421
- return inputmode;
422
- }
423
- if (this.type == 'number') {
424
- return 'numeric';
425
- }
426
- else {
427
- return 'text';
428
- }
429
- }
430
- /**
431
- * Updates the value of the input group.
432
- * This updates the value of the input group and emits an `ionChange` event.
433
- * If all of the input boxes are filled, it emits an `ionComplete` event.
434
- */
435
- updateValue(event) {
436
- const { inputValues, length } = this;
437
- const newValue = inputValues.join('');
438
- this.value = newValue;
439
- this.emitIonInput(event);
440
- if (newValue.length === length) {
441
- this.ionComplete.emit({ value: newValue });
442
- }
443
- }
444
- /**
445
- * Emits an `ionChange` event.
446
- * This API should be called for user committed changes.
447
- * This API should not be used for external value changes.
448
- */
449
- emitIonChange(event) {
450
- const { value } = this;
451
- // Checks for both null and undefined values
452
- const newValue = value == null ? value : value.toString();
453
- this.ionChange.emit({ value: newValue, event });
454
- }
455
- /**
456
- * Emits an `ionInput` event.
457
- * This is used to emit the input value when the user types,
458
- * backspaces, or pastes.
459
- */
460
- emitIonInput(event) {
461
- const { value } = this;
462
- // Checks for both null and undefined values
463
- const newValue = value == null ? value : value.toString();
464
- this.ionInput.emit({ value: newValue, event });
465
- }
466
- /**
467
- * Focuses the next input box.
468
- */
469
- focusNext(currentIndex) {
470
- var _a;
471
- const { inputRefs, length } = this;
472
- if (currentIndex < length - 1) {
473
- (_a = inputRefs[currentIndex + 1]) === null || _a === void 0 ? void 0 : _a.focus();
474
- }
475
- }
476
- /**
477
- * Focuses the previous input box.
478
- */
479
- focusPrevious(currentIndex) {
480
- var _a;
481
- const { inputRefs } = this;
482
- if (currentIndex > 0) {
483
- (_a = inputRefs[currentIndex - 1]) === null || _a === void 0 ? void 0 : _a.focus();
484
- }
485
- }
486
- /**
487
- * Determines if a separator should be shown for a given index by
488
- * checking if the index is included in the parsed separators array.
489
- */
490
- showSeparator(index) {
491
- const { length } = this;
492
- return this.parsedSeparators.includes(index + 1) && index < length - 1;
493
- }
494
- /**
495
- * Updates the tabIndexes for the input boxes.
496
- * This is used to ensure that the correct input is
497
- * focused when the user navigates using the tab key.
498
- */
499
- updateTabIndexes() {
500
- const { inputRefs, inputValues, length } = this;
501
- // Find first empty index after any filled boxes
502
- let firstEmptyIndex = -1;
503
- for (let i = 0; i < length; i++) {
504
- if (!inputValues[i] || inputValues[i] === '') {
505
- firstEmptyIndex = i;
506
- break;
507
- }
508
- }
509
- // Update tabIndex for all inputs
510
- inputRefs.forEach((input, index) => {
511
- // If all boxes are filled, make the last box tabbable
512
- // Otherwise, make the first empty box tabbable
513
- const shouldBeTabbable = firstEmptyIndex === -1 ? index === length - 1 : firstEmptyIndex === index;
514
- input.tabIndex = shouldBeTabbable ? 0 : -1;
515
- });
516
- }
517
- /**
518
- * Searches through the input values and returns the index
519
- * of the first empty input.
520
- * Returns -1 if all inputs are filled.
521
- */
522
- getFirstEmptyIndex() {
523
- var _a;
524
- const { inputValues, length } = this;
525
- // Create an array of the same length as the input OTP
526
- // and fill it with the input values
527
- const values = Array.from({ length }, (_, i) => inputValues[i] || '');
528
- return (_a = values.findIndex((value) => !value || value === '')) !== null && _a !== void 0 ? _a : -1;
529
- }
530
- /**
531
- * Returns the index of the input that should be tabbed to.
532
- * If all inputs are filled, returns the last input's index.
533
- * Otherwise, returns the index of the first empty input.
534
- */
535
- getTabbableIndex() {
536
- const { length } = this;
537
- const firstEmptyIndex = this.getFirstEmptyIndex();
538
- return firstEmptyIndex === -1 ? length - 1 : firstEmptyIndex;
539
- }
540
- render() {
541
- const { autocapitalize, color, disabled, fill, hasFocus, inputId, inputRefs, inputValues, length, readonly, shape, size, } = this;
542
- const mode = getIonMode(this);
543
- const inputmode = this.getInputmode();
544
- const tabbableIndex = this.getTabbableIndex();
545
- const pattern = this.getPattern();
546
- return (h(Host, { key: '2e80140032daa5ed71692b744f2a694fc29a3d30', class: createColorClasses(color, {
547
- [mode]: true,
548
- 'has-focus': hasFocus,
549
- [`input-otp-size-${size}`]: true,
550
- [`input-otp-shape-${shape}`]: true,
551
- [`input-otp-fill-${fill}`]: true,
552
- 'input-otp-disabled': disabled,
553
- 'input-otp-readonly': readonly,
554
- }) }, h("div", { key: 'c1851511a27e6a525b77cb0129569032e2cd7355', role: "group", "aria-label": "One-time password input", class: "input-otp-group" }, Array.from({ length }).map((_, index) => (h(Fragment, null, h("div", { class: "native-wrapper" }, h("input", { class: "native-input", id: `${inputId}-${index}`, "aria-label": `Input ${index + 1} of ${length}`, type: "text", autoCapitalize: autocapitalize, inputmode: inputmode, maxLength: 1, pattern: pattern, disabled: disabled, readOnly: readonly, tabIndex: index === tabbableIndex ? 0 : -1, value: inputValues[index] || '', autocomplete: index === 0 ? 'one-time-code' : 'off', ref: (el) => (inputRefs[index] = el), onInput: this.onInput(index), onBlur: this.onBlur, onFocus: this.onFocus(index), onKeyDown: this.onKeyDown(index), onPaste: this.onPaste })), this.showSeparator(index) && h("div", { class: "input-otp-separator" }))))), h("div", { key: 'ddf8b692c719d134242ae85c314a732c01ce036f', class: "input-otp-description" }, h("slot", { key: '9e3a3b4bbe9fc209362008bc57fee80bfac09a1b' }))));
555
- }
556
- get el() { return getElement(this); }
557
- static get watchers() { return {
558
- "value": ["valueChanged"],
559
- "separators": ["processSeparators"],
560
- "length": ["processSeparators"]
561
- }; }
562
- };
563
- let inputIds = 0;
564
- InputOTP.style = {
565
- ios: inputOtpIosCss,
566
- md: inputOtpMdCss
567
- };
568
-
569
- export { InputOTP as ion_input_otp };
@@ -1,4 +0,0 @@
1
- /*!
2
- * (C) Ionic http://ionicframework.com - MIT License
3
- */
4
- import{r as o,h as s,d as r}from"./p-3GtB1kQI.js";import{c as t}from"./p-DiVJyqlX.js";import{b as c}from"./p-B7Khsp7D.js";import"./p-CEo1SqXS.js";const e=class{constructor(s){o(this,s)}render(){const o=c(this);return s(r,{key:"361035eae7b92dc109794348d39bad2f596eb6be",class:t(this.color,{[o]:!0})},s("slot",{key:"c7b8835cf485ba9ecd73298f0529276ce1ea0852"}))}};e.style=":host(.ion-color){color:var(--ion-color-base)}";export{e as ion_text}
@@ -1,4 +0,0 @@
1
- /*!
2
- * (C) Ionic http://ionicframework.com - MIT License
3
- */
4
- import{r as i,c as o,h as t,F as n,d as r,g as p}from"./p-3GtB1kQI.js";import{p as s}from"./p-CEo1SqXS.js";import{i as e}from"./p-C53feagD.js";import{c as a}from"./p-DiVJyqlX.js";import{b as l}from"./p-B7Khsp7D.js";const d=class{constructor(t){i(this,t),this.ionInput=o(this,"ionInput",7),this.ionChange=o(this,"ionChange",7),this.ionComplete=o(this,"ionComplete",7),this.ionBlur=o(this,"ionBlur",7),this.ionFocus=o(this,"ionFocus",7),this.inputRefs=[],this.inputId="ion-input-otp-"+c++,this.parsedSeparators=[],this.isKeyboardNavigation=!1,this.inputValues=[],this.hasFocus=!1,this.autocapitalize="off",this.disabled=!1,this.fill="outline",this.length=4,this.readonly=!1,this.size="medium",this.shape="round",this.type="number",this.value="",this.onInput=i=>o=>{const{validKeyPattern:t}=this,n=o.target.value;if(n.length>1||n.length>0&&!t.test(n))return this.inputRefs[i].value="",void(this.inputValues[i]="");let r=i;for(let o=0;o<i;o++)if(!this.inputValues[o]||""===this.inputValues[o]){r=o;break}this.inputValues[r]=n,r!==i&&(this.inputRefs[i].value=""),n.length>0&&this.focusNext(r),this.updateValue(o)},this.onKeyDown=i=>o=>{const{length:t}=this,n=e(this.el),r=o.target;if((!o.metaKey&&!o.ctrlKey||"v"!==o.key.toLowerCase())&&r.selectionStart===r.selectionEnd){if("Backspace"===o.key)if(this.inputValues[i]){for(let o=i;o<t-1;o++)this.inputValues[o]=this.inputValues[o+1];this.inputValues[t-1]="";for(let i=0;i<t;i++)this.inputRefs[i].value=this.inputValues[i]||"";this.updateValue(o),o.preventDefault()}else!this.inputValues[i]&&i>0&&this.focusPrevious(i);else if("ArrowLeft"===o.key||"ArrowRight"===o.key){this.isKeyboardNavigation=!0,o.preventDefault();const r="ArrowLeft"===o.key;r&&n||!r&&!n?this.inputValues[i]&&i<t-1&&this.focusNext(i):this.focusPrevious(i)}else if("Tab"===o.key)return void(this.isKeyboardNavigation=!0);if(this.inputValues[i]&&this.validKeyPattern.test(o.key)){if(!this.inputValues[t-1])for(let o=t-1;o>i;o--)this.inputValues[o]=this.inputValues[o-1],this.inputRefs[o].value=this.inputValues[o]||"";this.inputValues[i]=o.key,this.inputRefs[i].value=o.key,this.updateValue(o),o.preventDefault()}}},this.onPaste=i=>{var o,t,n;const{inputRefs:r,length:p,validKeyPattern:s}=this;i.preventDefault();const e=null===(o=i.clipboardData)||void 0===o?void 0:o.getData("text");if(!e)return void this.emitIonInput(i);const a=e.split("").filter((i=>s.test(i))).slice(0,p),l=this.getFirstEmptyIndex(),d=-1===l?0:l;a.forEach(((i,o)=>{const t=d+o;t<p&&(this.inputRefs[t].value=i,this.inputValues[t]=i)})),this.updateValue(i);const c=d+a.length;c<p?null===(t=r[c])||void 0===t||t.focus():null===(n=r[p-1])||void 0===n||n.focus()},this.onFocus=i=>o=>{var t;const{inputRefs:n}=this;this.hasFocus||(this.ionFocus.emit(o),this.focusedValue=this.value),this.hasFocus=!0;let r=i;if(!this.isKeyboardNavigation){const o=this.inputValues[i]?i:this.getFirstEmptyIndex();r=-1===o?this.length-1:o,null===(t=this.inputRefs[r])||void 0===t||t.focus()}n.forEach(((i,o)=>{i.tabIndex=o===r?0:-1})),this.isKeyboardNavigation=!1},this.onBlur=i=>{const{inputRefs:o}=this,t=i.relatedTarget;null!=t&&o.includes(t)||(this.hasFocus=!1,this.updateTabIndexes(),this.ionBlur.emit(i),this.focusedValue!==this.value&&this.emitIonChange(i))}}valueChanged(){this.initializeValues()}processSeparators(){const{separators:i,length:o}=this;if(void 0===i)return void(this.parsedSeparators=[]);if("string"==typeof i&&"all"!==i&&!/^(\d+)(,\d+)*$/.test(i))return s(`[ion-input-otp] - Invalid separators format. Expected a comma-separated list of numbers, an array of numbers, or "all". Received: ${i}`,this.el),void(this.parsedSeparators=[]);let t;t="all"===i?Array.from({length:o-1},((i,o)=>o+1)):Array.isArray(i)?i:i.split(",").map((i=>parseInt(i,10))).filter((i=>!isNaN(i))),t.filter(((i,o)=>t.indexOf(i)!==o)).length>0&&s(`[ion-input-otp] - Duplicate separator positions are not allowed. Received: ${i}`,this.el);const n=t.filter((i=>i>o));n.length>0&&s(`[ion-input-otp] - The following separator positions are greater than the input length (${o}): ${n.join(", ")}. These separators will be ignored.`,this.el),this.parsedSeparators=t.filter((i=>i<=o))}componentWillLoad(){this.processSeparators(),this.initializeValues()}initializeValues(){null!=this.value&&String(this.value).length>0&&(String(this.value).split("").slice(0,this.length).forEach(((i,o)=>{this.validKeyPattern.test(i)&&(this.inputValues[o]=i)})),this.value=this.inputValues.join(""))}async reset(){this.inputValues=Array(this.length).fill(""),this.value="",this.focusedValue=null,this.hasFocus=!1,this.inputRefs.forEach((i=>{i.blur()})),this.updateTabIndexes()}async setFocus(i){var o,t;if("number"==typeof i){const t=Math.max(0,Math.min(i,this.length-1));null===(o=this.inputRefs[t])||void 0===o||o.focus()}else{const i=this.getTabbableIndex();null===(t=this.inputRefs[i])||void 0===t||t.focus()}}get validKeyPattern(){return new RegExp(`^${this.getPattern()}$`,"u")}getPattern(){const{pattern:i,type:o}=this;return i||("number"===o?"[\\p{N}]":"[\\p{L}\\p{N}]")}getInputmode(){const{inputmode:i}=this;return i||("number"==this.type?"numeric":"text")}updateValue(i){const{inputValues:o,length:t}=this,n=o.join("");this.value=n,this.emitIonInput(i),n.length===t&&this.ionComplete.emit({value:n})}emitIonChange(i){const{value:o}=this,t=null==o?o:o.toString();this.ionChange.emit({value:t,event:i})}emitIonInput(i){const{value:o}=this,t=null==o?o:o.toString();this.ionInput.emit({value:t,event:i})}focusNext(i){var o;const{inputRefs:t,length:n}=this;i<n-1&&(null===(o=t[i+1])||void 0===o||o.focus())}focusPrevious(i){var o;const{inputRefs:t}=this;i>0&&(null===(o=t[i-1])||void 0===o||o.focus())}showSeparator(i){const{length:o}=this;return this.parsedSeparators.includes(i+1)&&i<o-1}updateTabIndexes(){const{inputRefs:i,inputValues:o,length:t}=this;let n=-1;for(let i=0;i<t;i++)if(!o[i]||""===o[i]){n=i;break}i.forEach(((i,o)=>{i.tabIndex=(-1===n?o===t-1:n===o)?0:-1}))}getFirstEmptyIndex(){var i;const{inputValues:o,length:t}=this;return null!==(i=Array.from({length:t},((i,t)=>o[t]||"")).findIndex((i=>!i||""===i)))&&void 0!==i?i:-1}getTabbableIndex(){const{length:i}=this,o=this.getFirstEmptyIndex();return-1===o?i-1:o}render(){const{autocapitalize:i,color:o,disabled:p,fill:s,hasFocus:e,inputId:d,inputRefs:c,inputValues:u,length:h,readonly:g,shape:v,size:m}=this,f=l(this),b=this.getInputmode(),x=this.getTabbableIndex(),k=this.getPattern();return t(r,{key:"2e80140032daa5ed71692b744f2a694fc29a3d30",class:a(o,{[f]:!0,"has-focus":e,[`input-otp-size-${m}`]:!0,[`input-otp-shape-${v}`]:!0,[`input-otp-fill-${s}`]:!0,"input-otp-disabled":p,"input-otp-readonly":g})},t("div",{key:"c1851511a27e6a525b77cb0129569032e2cd7355",role:"group","aria-label":"One-time password input",class:"input-otp-group"},Array.from({length:h}).map(((o,r)=>t(n,null,t("div",{class:"native-wrapper"},t("input",{class:"native-input",id:`${d}-${r}`,"aria-label":`Input ${r+1} of ${h}`,type:"text",autoCapitalize:i,inputmode:b,maxLength:1,pattern:k,disabled:p,readOnly:g,tabIndex:r===x?0:-1,value:u[r]||"",autocomplete:0===r?"one-time-code":"off",ref:i=>c[r]=i,onInput:this.onInput(r),onBlur:this.onBlur,onFocus:this.onFocus(r),onKeyDown:this.onKeyDown(r),onPaste:this.onPaste})),this.showSeparator(r)&&t("div",{class:"input-otp-separator"}))))),t("div",{key:"ddf8b692c719d134242ae85c314a732c01ce036f",class:"input-otp-description"},t("slot",{key:"9e3a3b4bbe9fc209362008bc57fee80bfac09a1b"})))}get el(){return p(this)}static get watchers(){return{value:["valueChanged"],separators:["processSeparators"],length:["processSeparators"]}}};let c=0;d.style={ios:".sc-ion-input-otp-ios-h{--margin-top:0;--margin-end:0;--margin-bottom:0;--margin-start:0;--padding-top:16px;--padding-end:0;--padding-bottom:16px;--padding-start:0;--color:initial;--min-width:40px;--separator-width:8px;--separator-height:var(--separator-width);--separator-border-radius:999px;--separator-color:var(--ion-color-step-150, var(--ion-background-color-step-150, #d9d9d9));--highlight-color-focused:var(--ion-color-primary, #0054e9);--highlight-color-valid:var(--ion-color-success, #2dd55b);--highlight-color-invalid:var(--ion-color-danger, #c5000f);--highlight-color:var(--highlight-color-focused);display:block;position:relative;font-size:0.875rem}.input-otp-group.sc-ion-input-otp-ios{-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.native-wrapper.sc-ion-input-otp-ios{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:var(--min-width)}.native-input.sc-ion-input-otp-ios{border-radius:var(--border-radius);width:var(--width);min-width:inherit;height:var(--height);border-width:var(--border-width);border-style:solid;border-color:var(--border-color);background:var(--background);color:var(--color);font-size:inherit;text-align:center;-webkit-appearance:none;-moz-appearance:none;appearance:none}.has-focus.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios{caret-color:var(--highlight-color)}.input-otp-description.sc-ion-input-otp-ios{color:var(--ion-color-step-700, var(--ion-text-color-step-300, #4d4d4d));font-size:0.75rem;line-height:1.25rem;text-align:center}.input-otp-separator.sc-ion-input-otp-ios{border-radius:var(--separator-border-radius);-ms-flex-negative:0;flex-shrink:0;width:var(--separator-width);height:var(--separator-height);background:var(--separator-color)}.input-otp-size-small.sc-ion-input-otp-ios-h{--width:40px;--height:40px}.input-otp-size-small.sc-ion-input-otp-ios-h .input-otp-group.sc-ion-input-otp-ios{gap:8px}.input-otp-size-medium.sc-ion-input-otp-ios-h{--width:48px;--height:48px}.input-otp-size-large.sc-ion-input-otp-ios-h{--width:56px;--height:56px}.input-otp-size-medium.sc-ion-input-otp-ios-h .input-otp-group.sc-ion-input-otp-ios,.input-otp-size-large.sc-ion-input-otp-ios-h .input-otp-group.sc-ion-input-otp-ios{gap:12px}.input-otp-shape-round.sc-ion-input-otp-ios-h{--border-radius:16px}.input-otp-shape-soft.sc-ion-input-otp-ios-h{--border-radius:8px}.input-otp-shape-rectangular.sc-ion-input-otp-ios-h{--border-radius:0}.input-otp-fill-outline.sc-ion-input-otp-ios-h{--background:none}.input-otp-fill-solid.sc-ion-input-otp-ios-h{--border-color:var(--ion-color-step-50, var(--ion-background-color-step-50, #f2f2f2));--background:var(--ion-color-step-50, var(--ion-background-color-step-50, #f2f2f2))}.input-otp-disabled.sc-ion-input-otp-ios-h{--color:var(--ion-color-step-350, var(--ion-text-color-step-650, #a6a6a6))}.input-otp-fill-outline.input-otp-disabled.sc-ion-input-otp-ios-h{--background:var(--ion-color-step-50, var(--ion-background-color-step-50, #f2f2f2));--border-color:var(--ion-color-step-100, var(--ion-background-color-step-100, #e6e6e6))}.input-otp-disabled.sc-ion-input-otp-ios-h,.input-otp-disabled.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios:disabled{cursor:not-allowed}.has-focus.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios:focus{--border-color:var(--highlight-color);outline:none}.input-otp-fill-outline.input-otp-readonly.sc-ion-input-otp-ios-h{--background:var(--ion-color-step-50, var(--ion-background-color-step-50, #f2f2f2))}.input-otp-fill-solid.input-otp-disabled.sc-ion-input-otp-ios-h,.input-otp-fill-solid.input-otp-readonly.sc-ion-input-otp-ios-h{--border-color:var(--ion-color-step-100, var(--ion-background-color-step-100, #e6e6e6));--background:var(--ion-color-step-100, var(--ion-background-color-step-100, #e6e6e6))}.ion-touched.ion-invalid.sc-ion-input-otp-ios-h{--highlight-color:var(--highlight-color-invalid)}.ion-valid.sc-ion-input-otp-ios-h{--highlight-color:var(--highlight-color-valid)}.has-focus.ion-valid.sc-ion-input-otp-ios-h,.ion-touched.ion-invalid.sc-ion-input-otp-ios-h{--border-color:var(--highlight-color)}.ion-color.sc-ion-input-otp-ios-h{--highlight-color-focused:var(--ion-color-base)}.input-otp-fill-outline.ion-color.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios,.input-otp-fill-solid.ion-color.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios:focus{border-color:rgba(var(--ion-color-base-rgb), 0.6)}.input-otp-fill-outline.ion-color.ion-invalid.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios,.input-otp-fill-solid.ion-color.ion-invalid.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios,.input-otp-fill-outline.ion-color.has-focus.ion-invalid.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios,.input-otp-fill-solid.ion-color.has-focus.ion-invalid.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios{border-color:var(--ion-color-danger, #c5000f)}.input-otp-fill-outline.ion-color.ion-valid.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios,.input-otp-fill-solid.ion-color.ion-valid.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios,.input-otp-fill-outline.ion-color.has-focus.ion-valid.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios,.input-otp-fill-solid.ion-color.has-focus.ion-valid.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios{border-color:var(--ion-color-success, #2dd55b)}.input-otp-fill-outline.input-otp-disabled.ion-color.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios{border-color:rgba(var(--ion-color-base-rgb), 0.3)}.sc-ion-input-otp-ios-h{--border-width:0.55px}.has-focus.sc-ion-input-otp-ios-h .native-input.sc-ion-input-otp-ios:focus{--border-width:1px}.input-otp-fill-outline.sc-ion-input-otp-ios-h{--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, var(--ion-background-color-step-250, #c8c7cc))))}",md:".sc-ion-input-otp-md-h{--margin-top:0;--margin-end:0;--margin-bottom:0;--margin-start:0;--padding-top:16px;--padding-end:0;--padding-bottom:16px;--padding-start:0;--color:initial;--min-width:40px;--separator-width:8px;--separator-height:var(--separator-width);--separator-border-radius:999px;--separator-color:var(--ion-color-step-150, var(--ion-background-color-step-150, #d9d9d9));--highlight-color-focused:var(--ion-color-primary, #0054e9);--highlight-color-valid:var(--ion-color-success, #2dd55b);--highlight-color-invalid:var(--ion-color-danger, #c5000f);--highlight-color:var(--highlight-color-focused);display:block;position:relative;font-size:0.875rem}.input-otp-group.sc-ion-input-otp-md{-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.native-wrapper.sc-ion-input-otp-md{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:var(--min-width)}.native-input.sc-ion-input-otp-md{border-radius:var(--border-radius);width:var(--width);min-width:inherit;height:var(--height);border-width:var(--border-width);border-style:solid;border-color:var(--border-color);background:var(--background);color:var(--color);font-size:inherit;text-align:center;-webkit-appearance:none;-moz-appearance:none;appearance:none}.has-focus.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md{caret-color:var(--highlight-color)}.input-otp-description.sc-ion-input-otp-md{color:var(--ion-color-step-700, var(--ion-text-color-step-300, #4d4d4d));font-size:0.75rem;line-height:1.25rem;text-align:center}.input-otp-separator.sc-ion-input-otp-md{border-radius:var(--separator-border-radius);-ms-flex-negative:0;flex-shrink:0;width:var(--separator-width);height:var(--separator-height);background:var(--separator-color)}.input-otp-size-small.sc-ion-input-otp-md-h{--width:40px;--height:40px}.input-otp-size-small.sc-ion-input-otp-md-h .input-otp-group.sc-ion-input-otp-md{gap:8px}.input-otp-size-medium.sc-ion-input-otp-md-h{--width:48px;--height:48px}.input-otp-size-large.sc-ion-input-otp-md-h{--width:56px;--height:56px}.input-otp-size-medium.sc-ion-input-otp-md-h .input-otp-group.sc-ion-input-otp-md,.input-otp-size-large.sc-ion-input-otp-md-h .input-otp-group.sc-ion-input-otp-md{gap:12px}.input-otp-shape-round.sc-ion-input-otp-md-h{--border-radius:16px}.input-otp-shape-soft.sc-ion-input-otp-md-h{--border-radius:8px}.input-otp-shape-rectangular.sc-ion-input-otp-md-h{--border-radius:0}.input-otp-fill-outline.sc-ion-input-otp-md-h{--background:none}.input-otp-fill-solid.sc-ion-input-otp-md-h{--border-color:var(--ion-color-step-50, var(--ion-background-color-step-50, #f2f2f2));--background:var(--ion-color-step-50, var(--ion-background-color-step-50, #f2f2f2))}.input-otp-disabled.sc-ion-input-otp-md-h{--color:var(--ion-color-step-350, var(--ion-text-color-step-650, #a6a6a6))}.input-otp-fill-outline.input-otp-disabled.sc-ion-input-otp-md-h{--background:var(--ion-color-step-50, var(--ion-background-color-step-50, #f2f2f2));--border-color:var(--ion-color-step-100, var(--ion-background-color-step-100, #e6e6e6))}.input-otp-disabled.sc-ion-input-otp-md-h,.input-otp-disabled.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md:disabled{cursor:not-allowed}.has-focus.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md:focus{--border-color:var(--highlight-color);outline:none}.input-otp-fill-outline.input-otp-readonly.sc-ion-input-otp-md-h{--background:var(--ion-color-step-50, var(--ion-background-color-step-50, #f2f2f2))}.input-otp-fill-solid.input-otp-disabled.sc-ion-input-otp-md-h,.input-otp-fill-solid.input-otp-readonly.sc-ion-input-otp-md-h{--border-color:var(--ion-color-step-100, var(--ion-background-color-step-100, #e6e6e6));--background:var(--ion-color-step-100, var(--ion-background-color-step-100, #e6e6e6))}.ion-touched.ion-invalid.sc-ion-input-otp-md-h{--highlight-color:var(--highlight-color-invalid)}.ion-valid.sc-ion-input-otp-md-h{--highlight-color:var(--highlight-color-valid)}.has-focus.ion-valid.sc-ion-input-otp-md-h,.ion-touched.ion-invalid.sc-ion-input-otp-md-h{--border-color:var(--highlight-color)}.ion-color.sc-ion-input-otp-md-h{--highlight-color-focused:var(--ion-color-base)}.input-otp-fill-outline.ion-color.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md,.input-otp-fill-solid.ion-color.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md:focus{border-color:rgba(var(--ion-color-base-rgb), 0.6)}.input-otp-fill-outline.ion-color.ion-invalid.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md,.input-otp-fill-solid.ion-color.ion-invalid.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md,.input-otp-fill-outline.ion-color.has-focus.ion-invalid.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md,.input-otp-fill-solid.ion-color.has-focus.ion-invalid.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md{border-color:var(--ion-color-danger, #c5000f)}.input-otp-fill-outline.ion-color.ion-valid.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md,.input-otp-fill-solid.ion-color.ion-valid.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md,.input-otp-fill-outline.ion-color.has-focus.ion-valid.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md,.input-otp-fill-solid.ion-color.has-focus.ion-valid.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md{border-color:var(--ion-color-success, #2dd55b)}.input-otp-fill-outline.input-otp-disabled.ion-color.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md{border-color:rgba(var(--ion-color-base-rgb), 0.3)}.sc-ion-input-otp-md-h{--border-width:1px}.has-focus.sc-ion-input-otp-md-h .native-input.sc-ion-input-otp-md:focus{--border-width:2px}.input-otp-fill-outline.sc-ion-input-otp-md-h{--border-color:var(--ion-color-step-300, var(--ion-background-color-step-300, #b3b3b3))}"};export{d as ion_input_otp}