@ionic/angular 8.8.19-dev.11787076261.138d5922 → 8.8.19-dev.11787083540.1511caf2

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 (600) hide show
  1. package/README.md +7 -9
  2. package/{dist/common → common}/directives/control-value-accessors/value-accessor.d.ts +1 -1
  3. package/{dist/common → common}/directives/navigation/back-button.d.ts +1 -1
  4. package/{dist/common → common}/directives/navigation/nav.d.ts +1 -1
  5. package/{dist/common → common}/directives/navigation/router-link-delegate.d.ts +2 -2
  6. package/{dist/common → common}/directives/navigation/router-outlet.d.ts +1 -1
  7. package/{dist/common → common}/directives/navigation/tabs.d.ts +1 -9
  8. package/{dist/common → common}/index.d.ts +1 -1
  9. package/{dist/common → common}/overlays/modal.d.ts +1 -1
  10. package/{dist/common → common}/overlays/popover.d.ts +1 -1
  11. package/{dist/common → common}/providers/angular-delegate.d.ts +2 -2
  12. package/{dist/lazy/directives → directives}/control-value-accessors/boolean-value-accessor.d.ts +1 -1
  13. package/{dist/lazy/directives → directives}/control-value-accessors/numeric-value-accessor.d.ts +1 -1
  14. package/{dist/lazy/directives → directives}/control-value-accessors/select-value-accessor.d.ts +1 -1
  15. package/{dist/lazy/directives → directives}/control-value-accessors/text-value-accessor.d.ts +1 -1
  16. package/{dist/lazy/directives → directives}/proxies-list.d.ts +1 -1
  17. package/{dist/lazy/directives → directives}/proxies.d.ts +191 -290
  18. package/esm2022/app-initialize.mjs +29 -0
  19. package/esm2022/common/directives/control-value-accessors/index.mjs +2 -0
  20. package/esm2022/common/directives/control-value-accessors/value-accessor.mjs +153 -0
  21. package/esm2022/common/directives/navigation/back-button.mjs +61 -0
  22. package/esm2022/common/directives/navigation/nav-params.mjs +47 -0
  23. package/esm2022/common/directives/navigation/nav.mjs +49 -0
  24. package/esm2022/common/directives/navigation/router-link-delegate.mjs +190 -0
  25. package/esm2022/common/directives/navigation/router-outlet.mjs +480 -0
  26. package/esm2022/common/directives/navigation/stack-controller.mjs +283 -0
  27. package/esm2022/common/directives/navigation/stack-utils.mjs +73 -0
  28. package/esm2022/common/directives/navigation/tabs.mjs +279 -0
  29. package/esm2022/common/index.mjs +20 -0
  30. package/esm2022/common/ionic-angular-common.mjs +5 -0
  31. package/esm2022/common/overlays/modal.mjs +103 -0
  32. package/esm2022/common/overlays/popover.mjs +91 -0
  33. package/esm2022/common/providers/angular-delegate.mjs +210 -0
  34. package/esm2022/common/providers/config.mjs +45 -0
  35. package/esm2022/common/providers/dom-controller.mjs +45 -0
  36. package/esm2022/common/providers/menu-controller.mjs +114 -0
  37. package/esm2022/common/providers/nav-controller.mjs +235 -0
  38. package/esm2022/common/providers/platform.mjs +258 -0
  39. package/esm2022/common/types/interfaces.mjs +2 -0
  40. package/esm2022/common/types/ionic-lifecycle-hooks.mjs +5 -0
  41. package/esm2022/common/types/overlay-options.mjs +2 -0
  42. package/esm2022/common/utils/overlay.mjs +26 -0
  43. package/esm2022/common/utils/proxy.mjs +47 -0
  44. package/esm2022/common/utils/routing.mjs +55 -0
  45. package/esm2022/common/utils/util.mjs +10 -0
  46. package/esm2022/directives/angular-component-lib/utils.mjs +59 -0
  47. package/esm2022/directives/control-value-accessors/boolean-value-accessor.mjs +42 -0
  48. package/esm2022/directives/control-value-accessors/index.mjs +5 -0
  49. package/esm2022/directives/control-value-accessors/numeric-value-accessor.mjs +50 -0
  50. package/esm2022/directives/control-value-accessors/select-value-accessor.mjs +39 -0
  51. package/esm2022/directives/control-value-accessors/text-value-accessor.mjs +38 -0
  52. package/esm2022/directives/navigation/ion-back-button.mjs +24 -0
  53. package/esm2022/directives/navigation/ion-nav.mjs +21 -0
  54. package/esm2022/directives/navigation/ion-router-outlet.mjs +52 -0
  55. package/esm2022/directives/navigation/ion-tabs.mjs +59 -0
  56. package/esm2022/directives/navigation/router-link-delegate.mjs +32 -0
  57. package/esm2022/directives/overlays/modal.mjs +22 -0
  58. package/esm2022/directives/overlays/popover.mjs +18 -0
  59. package/esm2022/directives/proxies-list.mjs +90 -0
  60. package/esm2022/directives/proxies.mjs +2373 -0
  61. package/esm2022/directives/validators/index.mjs +3 -0
  62. package/esm2022/directives/validators/max-validator.mjs +27 -0
  63. package/esm2022/directives/validators/min-validator.mjs +27 -0
  64. package/esm2022/index.mjs +32 -0
  65. package/esm2022/ionic-angular.mjs +5 -0
  66. package/esm2022/ionic-module.mjs +111 -0
  67. package/esm2022/providers/action-sheet-controller.mjs +19 -0
  68. package/esm2022/providers/alert-controller.mjs +19 -0
  69. package/esm2022/providers/animation-controller.mjs +38 -0
  70. package/esm2022/providers/gesture-controller.mjs +33 -0
  71. package/esm2022/providers/loading-controller.mjs +19 -0
  72. package/esm2022/providers/menu-controller.mjs +19 -0
  73. package/esm2022/providers/modal-controller.mjs +26 -0
  74. package/esm2022/providers/picker-controller.mjs +22 -0
  75. package/esm2022/providers/popover-controller.mjs +19 -0
  76. package/esm2022/providers/toast-controller.mjs +19 -0
  77. package/esm2022/standalone/directives/angular-component-lib/utils.mjs +59 -0
  78. package/esm2022/standalone/directives/checkbox.mjs +76 -0
  79. package/esm2022/standalone/directives/datetime.mjs +95 -0
  80. package/esm2022/standalone/directives/icon.mjs +35 -0
  81. package/esm2022/standalone/directives/index.mjs +13 -0
  82. package/esm2022/standalone/directives/input-otp.mjs +90 -0
  83. package/esm2022/standalone/directives/input.mjs +113 -0
  84. package/esm2022/standalone/directives/proxies.mjs +2260 -0
  85. package/esm2022/standalone/directives/radio-group.mjs +60 -0
  86. package/esm2022/standalone/directives/range.mjs +78 -0
  87. package/esm2022/standalone/directives/searchbar.mjs +82 -0
  88. package/esm2022/standalone/directives/segment.mjs +60 -0
  89. package/esm2022/standalone/directives/select.mjs +84 -0
  90. package/esm2022/standalone/directives/textarea.mjs +91 -0
  91. package/esm2022/standalone/directives/toggle.mjs +76 -0
  92. package/esm2022/standalone/index.mjs +25 -0
  93. package/esm2022/standalone/ionic-angular-standalone.mjs +5 -0
  94. package/esm2022/standalone/navigation/back-button.mjs +32 -0
  95. package/esm2022/standalone/navigation/nav.mjs +28 -0
  96. package/esm2022/standalone/navigation/router-link-delegate.mjs +28 -0
  97. package/esm2022/standalone/navigation/router-outlet.mjs +60 -0
  98. package/esm2022/standalone/navigation/tabs.mjs +58 -0
  99. package/esm2022/standalone/overlays/modal.mjs +32 -0
  100. package/esm2022/standalone/overlays/popover.mjs +28 -0
  101. package/esm2022/standalone/providers/action-sheet-controller.mjs +21 -0
  102. package/esm2022/standalone/providers/alert-controller.mjs +21 -0
  103. package/esm2022/standalone/providers/animation-controller.mjs +38 -0
  104. package/esm2022/standalone/providers/gesture-controller.mjs +33 -0
  105. package/esm2022/standalone/providers/ionic-angular.mjs +38 -0
  106. package/esm2022/standalone/providers/loading-controller.mjs +21 -0
  107. package/esm2022/standalone/providers/menu-controller.mjs +19 -0
  108. package/esm2022/standalone/providers/modal-controller.mjs +28 -0
  109. package/esm2022/standalone/providers/picker-controller.mjs +24 -0
  110. package/esm2022/standalone/providers/popover-controller.mjs +21 -0
  111. package/esm2022/standalone/providers/toast-controller.mjs +21 -0
  112. package/fesm2022/ionic-angular-common.mjs +2791 -0
  113. package/fesm2022/ionic-angular-common.mjs.map +1 -0
  114. package/fesm2022/ionic-angular-standalone.mjs +3562 -0
  115. package/fesm2022/ionic-angular-standalone.mjs.map +1 -0
  116. package/fesm2022/ionic-angular.mjs +3139 -0
  117. package/fesm2022/ionic-angular.mjs.map +1 -0
  118. package/{dist/lazy/index.d.ts → index.d.ts} +2 -1
  119. package/ionic-module.d.ts +28 -0
  120. package/package.json +30 -172
  121. package/providers/picker-controller.d.ts +11 -0
  122. package/{dist/schematics → schematics}/add/index.js +6 -6
  123. package/schematics/utils/ast.js +32 -0
  124. package/{dist/schematics → schematics}/utils/config.js +11 -10
  125. package/{dist/schematics → schematics}/utils/package.js +4 -6
  126. package/standalone/directives/proxies.d.ts +1035 -0
  127. package/{dist/standalone → standalone}/index.d.ts +2 -1
  128. package/standalone/providers/picker-controller.d.ts +11 -0
  129. package/dist/common/directives/control-value-accessors/index.js +0 -2
  130. package/dist/common/directives/control-value-accessors/index.js.map +0 -1
  131. package/dist/common/directives/control-value-accessors/value-accessor.js +0 -152
  132. package/dist/common/directives/control-value-accessors/value-accessor.js.map +0 -1
  133. package/dist/common/directives/navigation/back-button.js +0 -61
  134. package/dist/common/directives/navigation/back-button.js.map +0 -1
  135. package/dist/common/directives/navigation/nav-params.js +0 -47
  136. package/dist/common/directives/navigation/nav-params.js.map +0 -1
  137. package/dist/common/directives/navigation/nav.js +0 -49
  138. package/dist/common/directives/navigation/nav.js.map +0 -1
  139. package/dist/common/directives/navigation/router-link-delegate.js +0 -188
  140. package/dist/common/directives/navigation/router-link-delegate.js.map +0 -1
  141. package/dist/common/directives/navigation/router-outlet.js +0 -476
  142. package/dist/common/directives/navigation/router-outlet.js.map +0 -1
  143. package/dist/common/directives/navigation/stack-controller.js +0 -282
  144. package/dist/common/directives/navigation/stack-controller.js.map +0 -1
  145. package/dist/common/directives/navigation/stack-utils.js +0 -73
  146. package/dist/common/directives/navigation/stack-utils.js.map +0 -1
  147. package/dist/common/directives/navigation/tabs.js +0 -290
  148. package/dist/common/directives/navigation/tabs.js.map +0 -1
  149. package/dist/common/index.js +0 -20
  150. package/dist/common/index.js.map +0 -1
  151. package/dist/common/overlays/modal.js +0 -96
  152. package/dist/common/overlays/modal.js.map +0 -1
  153. package/dist/common/overlays/popover.js +0 -84
  154. package/dist/common/overlays/popover.js.map +0 -1
  155. package/dist/common/providers/angular-delegate.js +0 -229
  156. package/dist/common/providers/angular-delegate.js.map +0 -1
  157. package/dist/common/providers/config.js +0 -44
  158. package/dist/common/providers/config.js.map +0 -1
  159. package/dist/common/providers/dom-controller.js +0 -44
  160. package/dist/common/providers/dom-controller.js.map +0 -1
  161. package/dist/common/providers/menu-controller.js +0 -114
  162. package/dist/common/providers/menu-controller.js.map +0 -1
  163. package/dist/common/providers/nav-controller.js +0 -232
  164. package/dist/common/providers/nav-controller.js.map +0 -1
  165. package/dist/common/providers/platform.js +0 -256
  166. package/dist/common/providers/platform.js.map +0 -1
  167. package/dist/common/types/interfaces.js +0 -2
  168. package/dist/common/types/interfaces.js.map +0 -1
  169. package/dist/common/types/ionic-lifecycle-hooks.js +0 -5
  170. package/dist/common/types/ionic-lifecycle-hooks.js.map +0 -1
  171. package/dist/common/types/overlay-options.js +0 -2
  172. package/dist/common/types/overlay-options.js.map +0 -1
  173. package/dist/common/utils/overlay.js +0 -26
  174. package/dist/common/utils/overlay.js.map +0 -1
  175. package/dist/common/utils/proxy.js +0 -47
  176. package/dist/common/utils/proxy.js.map +0 -1
  177. package/dist/common/utils/routing.js +0 -55
  178. package/dist/common/utils/routing.js.map +0 -1
  179. package/dist/common/utils/util.js +0 -10
  180. package/dist/common/utils/util.js.map +0 -1
  181. package/dist/lazy/app-initialize.js +0 -29
  182. package/dist/lazy/app-initialize.js.map +0 -1
  183. package/dist/lazy/directives/angular-component-lib/utils.js +0 -59
  184. package/dist/lazy/directives/angular-component-lib/utils.js.map +0 -1
  185. package/dist/lazy/directives/control-value-accessors/boolean-value-accessor.js +0 -47
  186. package/dist/lazy/directives/control-value-accessors/boolean-value-accessor.js.map +0 -1
  187. package/dist/lazy/directives/control-value-accessors/index.js +0 -5
  188. package/dist/lazy/directives/control-value-accessors/index.js.map +0 -1
  189. package/dist/lazy/directives/control-value-accessors/numeric-value-accessor.js +0 -55
  190. package/dist/lazy/directives/control-value-accessors/numeric-value-accessor.js.map +0 -1
  191. package/dist/lazy/directives/control-value-accessors/select-value-accessor.js +0 -44
  192. package/dist/lazy/directives/control-value-accessors/select-value-accessor.js.map +0 -1
  193. package/dist/lazy/directives/control-value-accessors/text-value-accessor.js +0 -43
  194. package/dist/lazy/directives/control-value-accessors/text-value-accessor.js.map +0 -1
  195. package/dist/lazy/directives/navigation/ion-back-button.js +0 -24
  196. package/dist/lazy/directives/navigation/ion-back-button.js.map +0 -1
  197. package/dist/lazy/directives/navigation/ion-nav.js +0 -21
  198. package/dist/lazy/directives/navigation/ion-nav.js.map +0 -1
  199. package/dist/lazy/directives/navigation/ion-router-outlet.js +0 -52
  200. package/dist/lazy/directives/navigation/ion-router-outlet.js.map +0 -1
  201. package/dist/lazy/directives/navigation/ion-tabs.js +0 -58
  202. package/dist/lazy/directives/navigation/ion-tabs.js.map +0 -1
  203. package/dist/lazy/directives/navigation/router-link-delegate.js +0 -32
  204. package/dist/lazy/directives/navigation/router-link-delegate.js.map +0 -1
  205. package/dist/lazy/directives/overlays/modal.js +0 -22
  206. package/dist/lazy/directives/overlays/modal.js.map +0 -1
  207. package/dist/lazy/directives/overlays/popover.js +0 -18
  208. package/dist/lazy/directives/overlays/popover.js.map +0 -1
  209. package/dist/lazy/directives/proxies-list.js +0 -89
  210. package/dist/lazy/directives/proxies-list.js.map +0 -1
  211. package/dist/lazy/directives/proxies.js +0 -2759
  212. package/dist/lazy/directives/proxies.js.map +0 -1
  213. package/dist/lazy/directives/validators/index.js +0 -3
  214. package/dist/lazy/directives/validators/index.js.map +0 -1
  215. package/dist/lazy/directives/validators/max-validator.js +0 -26
  216. package/dist/lazy/directives/validators/max-validator.js.map +0 -1
  217. package/dist/lazy/directives/validators/min-validator.js +0 -26
  218. package/dist/lazy/directives/validators/min-validator.js.map +0 -1
  219. package/dist/lazy/index.js +0 -34
  220. package/dist/lazy/index.js.map +0 -1
  221. package/dist/lazy/ionic-module.d.ts +0 -38
  222. package/dist/lazy/ionic-module.js +0 -121
  223. package/dist/lazy/ionic-module.js.map +0 -1
  224. package/dist/lazy/providers/action-sheet-controller.js +0 -18
  225. package/dist/lazy/providers/action-sheet-controller.js.map +0 -1
  226. package/dist/lazy/providers/alert-controller.js +0 -18
  227. package/dist/lazy/providers/alert-controller.js.map +0 -1
  228. package/dist/lazy/providers/animation-controller.js +0 -37
  229. package/dist/lazy/providers/animation-controller.js.map +0 -1
  230. package/dist/lazy/providers/gesture-controller.js +0 -32
  231. package/dist/lazy/providers/gesture-controller.js.map +0 -1
  232. package/dist/lazy/providers/loading-controller.js +0 -18
  233. package/dist/lazy/providers/loading-controller.js.map +0 -1
  234. package/dist/lazy/providers/menu-controller.js +0 -18
  235. package/dist/lazy/providers/menu-controller.js.map +0 -1
  236. package/dist/lazy/providers/modal-controller.js +0 -25
  237. package/dist/lazy/providers/modal-controller.js.map +0 -1
  238. package/dist/lazy/providers/popover-controller.js +0 -19
  239. package/dist/lazy/providers/popover-controller.js.map +0 -1
  240. package/dist/lazy/providers/toast-controller.js +0 -18
  241. package/dist/lazy/providers/toast-controller.js.map +0 -1
  242. package/dist/schematics/utils/ast.js +0 -64
  243. package/dist/standalone/directives/angular-component-lib/utils.js +0 -59
  244. package/dist/standalone/directives/angular-component-lib/utils.js.map +0 -1
  245. package/dist/standalone/directives/checkbox.js +0 -75
  246. package/dist/standalone/directives/checkbox.js.map +0 -1
  247. package/dist/standalone/directives/datetime.js +0 -93
  248. package/dist/standalone/directives/datetime.js.map +0 -1
  249. package/dist/standalone/directives/icon.js +0 -35
  250. package/dist/standalone/directives/icon.js.map +0 -1
  251. package/dist/standalone/directives/index.js +0 -13
  252. package/dist/standalone/directives/index.js.map +0 -1
  253. package/dist/standalone/directives/input-otp.js +0 -89
  254. package/dist/standalone/directives/input-otp.js.map +0 -1
  255. package/dist/standalone/directives/input.js +0 -112
  256. package/dist/standalone/directives/input.js.map +0 -1
  257. package/dist/standalone/directives/ion-accordion-group.d.ts +0 -21
  258. package/dist/standalone/directives/ion-accordion-group.js +0 -40
  259. package/dist/standalone/directives/ion-accordion-group.js.map +0 -1
  260. package/dist/standalone/directives/ion-accordion.d.ts +0 -12
  261. package/dist/standalone/directives/ion-accordion.js +0 -36
  262. package/dist/standalone/directives/ion-accordion.js.map +0 -1
  263. package/dist/standalone/directives/ion-action-sheet.d.ts +0 -58
  264. package/dist/standalone/directives/ion-action-sheet.js +0 -62
  265. package/dist/standalone/directives/ion-action-sheet.js.map +0 -1
  266. package/dist/standalone/directives/ion-alert.d.ts +0 -58
  267. package/dist/standalone/directives/ion-alert.js +0 -62
  268. package/dist/standalone/directives/ion-alert.js.map +0 -1
  269. package/dist/standalone/directives/ion-app.d.ts +0 -12
  270. package/dist/standalone/directives/ion-app.js +0 -36
  271. package/dist/standalone/directives/ion-app.js.map +0 -1
  272. package/dist/standalone/directives/ion-avatar.d.ts +0 -12
  273. package/dist/standalone/directives/ion-avatar.js +0 -35
  274. package/dist/standalone/directives/ion-avatar.js.map +0 -1
  275. package/dist/standalone/directives/ion-backdrop.d.ts +0 -18
  276. package/dist/standalone/directives/ion-backdrop.js +0 -40
  277. package/dist/standalone/directives/ion-backdrop.js.map +0 -1
  278. package/dist/standalone/directives/ion-badge.d.ts +0 -12
  279. package/dist/standalone/directives/ion-badge.js +0 -36
  280. package/dist/standalone/directives/ion-badge.js.map +0 -1
  281. package/dist/standalone/directives/ion-breadcrumb.d.ts +0 -23
  282. package/dist/standalone/directives/ion-breadcrumb.js +0 -43
  283. package/dist/standalone/directives/ion-breadcrumb.js.map +0 -1
  284. package/dist/standalone/directives/ion-breadcrumbs.d.ts +0 -19
  285. package/dist/standalone/directives/ion-breadcrumbs.js +0 -40
  286. package/dist/standalone/directives/ion-breadcrumbs.js.map +0 -1
  287. package/dist/standalone/directives/ion-button.d.ts +0 -23
  288. package/dist/standalone/directives/ion-button.js +0 -43
  289. package/dist/standalone/directives/ion-button.js.map +0 -1
  290. package/dist/standalone/directives/ion-buttons.d.ts +0 -12
  291. package/dist/standalone/directives/ion-buttons.js +0 -36
  292. package/dist/standalone/directives/ion-buttons.js.map +0 -1
  293. package/dist/standalone/directives/ion-card-content.d.ts +0 -12
  294. package/dist/standalone/directives/ion-card-content.js +0 -36
  295. package/dist/standalone/directives/ion-card-content.js.map +0 -1
  296. package/dist/standalone/directives/ion-card-header.d.ts +0 -12
  297. package/dist/standalone/directives/ion-card-header.js +0 -36
  298. package/dist/standalone/directives/ion-card-header.js.map +0 -1
  299. package/dist/standalone/directives/ion-card-subtitle.d.ts +0 -12
  300. package/dist/standalone/directives/ion-card-subtitle.js +0 -36
  301. package/dist/standalone/directives/ion-card-subtitle.js.map +0 -1
  302. package/dist/standalone/directives/ion-card-title.d.ts +0 -12
  303. package/dist/standalone/directives/ion-card-title.js +0 -36
  304. package/dist/standalone/directives/ion-card-title.js.map +0 -1
  305. package/dist/standalone/directives/ion-card.d.ts +0 -12
  306. package/dist/standalone/directives/ion-card.js +0 -36
  307. package/dist/standalone/directives/ion-card.js.map +0 -1
  308. package/dist/standalone/directives/ion-chip.d.ts +0 -12
  309. package/dist/standalone/directives/ion-chip.js +0 -36
  310. package/dist/standalone/directives/ion-chip.js.map +0 -1
  311. package/dist/standalone/directives/ion-col.d.ts +0 -12
  312. package/dist/standalone/directives/ion-col.js +0 -36
  313. package/dist/standalone/directives/ion-col.js.map +0 -1
  314. package/dist/standalone/directives/ion-content.d.ts +0 -33
  315. package/dist/standalone/directives/ion-content.js +0 -47
  316. package/dist/standalone/directives/ion-content.js.map +0 -1
  317. package/dist/standalone/directives/ion-datetime-button.d.ts +0 -12
  318. package/dist/standalone/directives/ion-datetime-button.js +0 -36
  319. package/dist/standalone/directives/ion-datetime-button.js.map +0 -1
  320. package/dist/standalone/directives/ion-fab-button.d.ts +0 -23
  321. package/dist/standalone/directives/ion-fab-button.js +0 -43
  322. package/dist/standalone/directives/ion-fab-button.js.map +0 -1
  323. package/dist/standalone/directives/ion-fab-list.d.ts +0 -12
  324. package/dist/standalone/directives/ion-fab-list.js +0 -36
  325. package/dist/standalone/directives/ion-fab-list.js.map +0 -1
  326. package/dist/standalone/directives/ion-fab.d.ts +0 -12
  327. package/dist/standalone/directives/ion-fab.js +0 -37
  328. package/dist/standalone/directives/ion-fab.js.map +0 -1
  329. package/dist/standalone/directives/ion-footer.d.ts +0 -12
  330. package/dist/standalone/directives/ion-footer.js +0 -36
  331. package/dist/standalone/directives/ion-footer.js.map +0 -1
  332. package/dist/standalone/directives/ion-grid.d.ts +0 -12
  333. package/dist/standalone/directives/ion-grid.js +0 -36
  334. package/dist/standalone/directives/ion-grid.js.map +0 -1
  335. package/dist/standalone/directives/ion-header.d.ts +0 -12
  336. package/dist/standalone/directives/ion-header.js +0 -36
  337. package/dist/standalone/directives/ion-header.js.map +0 -1
  338. package/dist/standalone/directives/ion-img.d.ts +0 -28
  339. package/dist/standalone/directives/ion-img.js +0 -46
  340. package/dist/standalone/directives/ion-img.js.map +0 -1
  341. package/dist/standalone/directives/ion-infinite-scroll-content.d.ts +0 -12
  342. package/dist/standalone/directives/ion-infinite-scroll-content.js +0 -36
  343. package/dist/standalone/directives/ion-infinite-scroll-content.js.map +0 -1
  344. package/dist/standalone/directives/ion-infinite-scroll.d.ts +0 -21
  345. package/dist/standalone/directives/ion-infinite-scroll.js +0 -41
  346. package/dist/standalone/directives/ion-infinite-scroll.js.map +0 -1
  347. package/dist/standalone/directives/ion-input-password-toggle.d.ts +0 -12
  348. package/dist/standalone/directives/ion-input-password-toggle.js +0 -36
  349. package/dist/standalone/directives/ion-input-password-toggle.js.map +0 -1
  350. package/dist/standalone/directives/ion-item-divider.d.ts +0 -12
  351. package/dist/standalone/directives/ion-item-divider.js +0 -36
  352. package/dist/standalone/directives/ion-item-divider.js.map +0 -1
  353. package/dist/standalone/directives/ion-item-group.d.ts +0 -12
  354. package/dist/standalone/directives/ion-item-group.js +0 -35
  355. package/dist/standalone/directives/ion-item-group.js.map +0 -1
  356. package/dist/standalone/directives/ion-item-option.d.ts +0 -12
  357. package/dist/standalone/directives/ion-item-option.js +0 -36
  358. package/dist/standalone/directives/ion-item-option.js.map +0 -1
  359. package/dist/standalone/directives/ion-item-options.d.ts +0 -18
  360. package/dist/standalone/directives/ion-item-options.js +0 -40
  361. package/dist/standalone/directives/ion-item-options.js.map +0 -1
  362. package/dist/standalone/directives/ion-item-sliding.d.ts +0 -18
  363. package/dist/standalone/directives/ion-item-sliding.js +0 -41
  364. package/dist/standalone/directives/ion-item-sliding.js.map +0 -1
  365. package/dist/standalone/directives/ion-item.d.ts +0 -12
  366. package/dist/standalone/directives/ion-item.js +0 -36
  367. package/dist/standalone/directives/ion-item.js.map +0 -1
  368. package/dist/standalone/directives/ion-label.d.ts +0 -12
  369. package/dist/standalone/directives/ion-label.js +0 -36
  370. package/dist/standalone/directives/ion-label.js.map +0 -1
  371. package/dist/standalone/directives/ion-list-header.d.ts +0 -12
  372. package/dist/standalone/directives/ion-list-header.js +0 -36
  373. package/dist/standalone/directives/ion-list-header.js.map +0 -1
  374. package/dist/standalone/directives/ion-list.d.ts +0 -12
  375. package/dist/standalone/directives/ion-list.js +0 -37
  376. package/dist/standalone/directives/ion-list.js.map +0 -1
  377. package/dist/standalone/directives/ion-loading.d.ts +0 -58
  378. package/dist/standalone/directives/ion-loading.js +0 -62
  379. package/dist/standalone/directives/ion-loading.js.map +0 -1
  380. package/dist/standalone/directives/ion-menu-button.d.ts +0 -12
  381. package/dist/standalone/directives/ion-menu-button.js +0 -36
  382. package/dist/standalone/directives/ion-menu-button.js.map +0 -1
  383. package/dist/standalone/directives/ion-menu-toggle.d.ts +0 -12
  384. package/dist/standalone/directives/ion-menu-toggle.js +0 -36
  385. package/dist/standalone/directives/ion-menu-toggle.js.map +0 -1
  386. package/dist/standalone/directives/ion-menu.d.ts +0 -34
  387. package/dist/standalone/directives/ion-menu.js +0 -50
  388. package/dist/standalone/directives/ion-menu.js.map +0 -1
  389. package/dist/standalone/directives/ion-nav-link.d.ts +0 -12
  390. package/dist/standalone/directives/ion-nav-link.js +0 -36
  391. package/dist/standalone/directives/ion-nav-link.js.map +0 -1
  392. package/dist/standalone/directives/ion-note.d.ts +0 -12
  393. package/dist/standalone/directives/ion-note.js +0 -36
  394. package/dist/standalone/directives/ion-note.js.map +0 -1
  395. package/dist/standalone/directives/ion-picker-column-option.d.ts +0 -12
  396. package/dist/standalone/directives/ion-picker-column-option.js +0 -36
  397. package/dist/standalone/directives/ion-picker-column-option.js.map +0 -1
  398. package/dist/standalone/directives/ion-picker-column.d.ts +0 -21
  399. package/dist/standalone/directives/ion-picker-column.js +0 -41
  400. package/dist/standalone/directives/ion-picker-column.js.map +0 -1
  401. package/dist/standalone/directives/ion-picker.d.ts +0 -12
  402. package/dist/standalone/directives/ion-picker.js +0 -36
  403. package/dist/standalone/directives/ion-picker.js.map +0 -1
  404. package/dist/standalone/directives/ion-progress-bar.d.ts +0 -12
  405. package/dist/standalone/directives/ion-progress-bar.js +0 -36
  406. package/dist/standalone/directives/ion-progress-bar.js.map +0 -1
  407. package/dist/standalone/directives/ion-radio.d.ts +0 -23
  408. package/dist/standalone/directives/ion-radio.js +0 -43
  409. package/dist/standalone/directives/ion-radio.js.map +0 -1
  410. package/dist/standalone/directives/ion-refresher-content.d.ts +0 -12
  411. package/dist/standalone/directives/ion-refresher-content.js +0 -36
  412. package/dist/standalone/directives/ion-refresher-content.js.map +0 -1
  413. package/dist/standalone/directives/ion-refresher.d.ts +0 -45
  414. package/dist/standalone/directives/ion-refresher.js +0 -53
  415. package/dist/standalone/directives/ion-refresher.js.map +0 -1
  416. package/dist/standalone/directives/ion-reorder-group.d.ts +0 -44
  417. package/dist/standalone/directives/ion-reorder-group.js +0 -50
  418. package/dist/standalone/directives/ion-reorder-group.js.map +0 -1
  419. package/dist/standalone/directives/ion-reorder.d.ts +0 -12
  420. package/dist/standalone/directives/ion-reorder.js +0 -35
  421. package/dist/standalone/directives/ion-reorder.js.map +0 -1
  422. package/dist/standalone/directives/ion-ripple-effect.d.ts +0 -12
  423. package/dist/standalone/directives/ion-ripple-effect.js +0 -37
  424. package/dist/standalone/directives/ion-ripple-effect.js.map +0 -1
  425. package/dist/standalone/directives/ion-row.d.ts +0 -12
  426. package/dist/standalone/directives/ion-row.js +0 -35
  427. package/dist/standalone/directives/ion-row.js.map +0 -1
  428. package/dist/standalone/directives/ion-segment-button.d.ts +0 -12
  429. package/dist/standalone/directives/ion-segment-button.js +0 -36
  430. package/dist/standalone/directives/ion-segment-button.js.map +0 -1
  431. package/dist/standalone/directives/ion-segment-content.d.ts +0 -12
  432. package/dist/standalone/directives/ion-segment-content.js +0 -35
  433. package/dist/standalone/directives/ion-segment-content.js.map +0 -1
  434. package/dist/standalone/directives/ion-segment-view.d.ts +0 -19
  435. package/dist/standalone/directives/ion-segment-view.js +0 -40
  436. package/dist/standalone/directives/ion-segment-view.js.map +0 -1
  437. package/dist/standalone/directives/ion-select-modal.d.ts +0 -12
  438. package/dist/standalone/directives/ion-select-modal.js +0 -36
  439. package/dist/standalone/directives/ion-select-modal.js.map +0 -1
  440. package/dist/standalone/directives/ion-select-option.d.ts +0 -12
  441. package/dist/standalone/directives/ion-select-option.js +0 -36
  442. package/dist/standalone/directives/ion-select-option.js.map +0 -1
  443. package/dist/standalone/directives/ion-skeleton-text.d.ts +0 -12
  444. package/dist/standalone/directives/ion-skeleton-text.js +0 -36
  445. package/dist/standalone/directives/ion-skeleton-text.js.map +0 -1
  446. package/dist/standalone/directives/ion-spinner.d.ts +0 -12
  447. package/dist/standalone/directives/ion-spinner.js +0 -36
  448. package/dist/standalone/directives/ion-spinner.js.map +0 -1
  449. package/dist/standalone/directives/ion-split-pane.d.ts +0 -22
  450. package/dist/standalone/directives/ion-split-pane.js +0 -40
  451. package/dist/standalone/directives/ion-split-pane.js.map +0 -1
  452. package/dist/standalone/directives/ion-tab-bar.d.ts +0 -12
  453. package/dist/standalone/directives/ion-tab-bar.js +0 -36
  454. package/dist/standalone/directives/ion-tab-bar.js.map +0 -1
  455. package/dist/standalone/directives/ion-tab-button.d.ts +0 -12
  456. package/dist/standalone/directives/ion-tab-button.js +0 -36
  457. package/dist/standalone/directives/ion-tab-button.js.map +0 -1
  458. package/dist/standalone/directives/ion-tab.d.ts +0 -12
  459. package/dist/standalone/directives/ion-tab.js +0 -37
  460. package/dist/standalone/directives/ion-tab.js.map +0 -1
  461. package/dist/standalone/directives/ion-text.d.ts +0 -12
  462. package/dist/standalone/directives/ion-text.js +0 -36
  463. package/dist/standalone/directives/ion-text.js.map +0 -1
  464. package/dist/standalone/directives/ion-thumbnail.d.ts +0 -12
  465. package/dist/standalone/directives/ion-thumbnail.js +0 -35
  466. package/dist/standalone/directives/ion-thumbnail.js.map +0 -1
  467. package/dist/standalone/directives/ion-title.d.ts +0 -12
  468. package/dist/standalone/directives/ion-title.js +0 -36
  469. package/dist/standalone/directives/ion-title.js.map +0 -1
  470. package/dist/standalone/directives/ion-toast.d.ts +0 -58
  471. package/dist/standalone/directives/ion-toast.js +0 -62
  472. package/dist/standalone/directives/ion-toast.js.map +0 -1
  473. package/dist/standalone/directives/ion-toolbar.d.ts +0 -12
  474. package/dist/standalone/directives/ion-toolbar.js +0 -36
  475. package/dist/standalone/directives/ion-toolbar.js.map +0 -1
  476. package/dist/standalone/directives/proxies.d.ts +0 -77
  477. package/dist/standalone/directives/proxies.js +0 -79
  478. package/dist/standalone/directives/proxies.js.map +0 -1
  479. package/dist/standalone/directives/radio-group.js +0 -59
  480. package/dist/standalone/directives/radio-group.js.map +0 -1
  481. package/dist/standalone/directives/range.js +0 -77
  482. package/dist/standalone/directives/range.js.map +0 -1
  483. package/dist/standalone/directives/searchbar.js +0 -81
  484. package/dist/standalone/directives/searchbar.js.map +0 -1
  485. package/dist/standalone/directives/segment.js +0 -59
  486. package/dist/standalone/directives/segment.js.map +0 -1
  487. package/dist/standalone/directives/select.js +0 -83
  488. package/dist/standalone/directives/select.js.map +0 -1
  489. package/dist/standalone/directives/textarea.js +0 -90
  490. package/dist/standalone/directives/textarea.js.map +0 -1
  491. package/dist/standalone/directives/toggle.js +0 -75
  492. package/dist/standalone/directives/toggle.js.map +0 -1
  493. package/dist/standalone/index.js +0 -24
  494. package/dist/standalone/index.js.map +0 -1
  495. package/dist/standalone/navigation/back-button.js +0 -32
  496. package/dist/standalone/navigation/back-button.js.map +0 -1
  497. package/dist/standalone/navigation/nav.js +0 -28
  498. package/dist/standalone/navigation/nav.js.map +0 -1
  499. package/dist/standalone/navigation/router-link-delegate.js +0 -26
  500. package/dist/standalone/navigation/router-link-delegate.js.map +0 -1
  501. package/dist/standalone/navigation/router-outlet.js +0 -60
  502. package/dist/standalone/navigation/router-outlet.js.map +0 -1
  503. package/dist/standalone/navigation/tabs.js +0 -57
  504. package/dist/standalone/navigation/tabs.js.map +0 -1
  505. package/dist/standalone/overlays/modal.js +0 -32
  506. package/dist/standalone/overlays/modal.js.map +0 -1
  507. package/dist/standalone/overlays/popover.js +0 -28
  508. package/dist/standalone/overlays/popover.js.map +0 -1
  509. package/dist/standalone/providers/action-sheet-controller.js +0 -20
  510. package/dist/standalone/providers/action-sheet-controller.js.map +0 -1
  511. package/dist/standalone/providers/alert-controller.js +0 -20
  512. package/dist/standalone/providers/alert-controller.js.map +0 -1
  513. package/dist/standalone/providers/animation-controller.js +0 -37
  514. package/dist/standalone/providers/animation-controller.js.map +0 -1
  515. package/dist/standalone/providers/gesture-controller.js +0 -32
  516. package/dist/standalone/providers/gesture-controller.js.map +0 -1
  517. package/dist/standalone/providers/ionic-angular.js +0 -38
  518. package/dist/standalone/providers/ionic-angular.js.map +0 -1
  519. package/dist/standalone/providers/loading-controller.js +0 -20
  520. package/dist/standalone/providers/loading-controller.js.map +0 -1
  521. package/dist/standalone/providers/menu-controller.js +0 -18
  522. package/dist/standalone/providers/menu-controller.js.map +0 -1
  523. package/dist/standalone/providers/modal-controller.js +0 -27
  524. package/dist/standalone/providers/modal-controller.js.map +0 -1
  525. package/dist/standalone/providers/popover-controller.js +0 -21
  526. package/dist/standalone/providers/popover-controller.js.map +0 -1
  527. package/dist/standalone/providers/toast-controller.js +0 -20
  528. package/dist/standalone/providers/toast-controller.js.map +0 -1
  529. /package/{dist/lazy/app-initialize.d.ts → app-initialize.d.ts} +0 -0
  530. /package/{dist/common → common}/directives/control-value-accessors/index.d.ts +0 -0
  531. /package/{dist/common → common}/directives/navigation/nav-params.d.ts +0 -0
  532. /package/{dist/common → common}/directives/navigation/stack-controller.d.ts +0 -0
  533. /package/{dist/common → common}/directives/navigation/stack-utils.d.ts +0 -0
  534. /package/{dist/common → common}/providers/config.d.ts +0 -0
  535. /package/{dist/common → common}/providers/dom-controller.d.ts +0 -0
  536. /package/{dist/common → common}/providers/menu-controller.d.ts +0 -0
  537. /package/{dist/common → common}/providers/nav-controller.d.ts +0 -0
  538. /package/{dist/common → common}/providers/platform.d.ts +0 -0
  539. /package/{dist/common → common}/types/interfaces.d.ts +0 -0
  540. /package/{dist/common → common}/types/ionic-lifecycle-hooks.d.ts +0 -0
  541. /package/{dist/common → common}/types/overlay-options.d.ts +0 -0
  542. /package/{dist/common → common}/utils/overlay.d.ts +0 -0
  543. /package/{dist/common → common}/utils/proxy.d.ts +0 -0
  544. /package/{dist/common → common}/utils/routing.d.ts +0 -0
  545. /package/{dist/common → common}/utils/util.d.ts +0 -0
  546. /package/{dist/lazy/directives → directives}/angular-component-lib/utils.d.ts +0 -0
  547. /package/{dist/lazy/directives → directives}/control-value-accessors/index.d.ts +0 -0
  548. /package/{dist/lazy/directives → directives}/navigation/ion-back-button.d.ts +0 -0
  549. /package/{dist/lazy/directives → directives}/navigation/ion-nav.d.ts +0 -0
  550. /package/{dist/lazy/directives → directives}/navigation/ion-router-outlet.d.ts +0 -0
  551. /package/{dist/lazy/directives → directives}/navigation/ion-tabs.d.ts +0 -0
  552. /package/{dist/lazy/directives → directives}/navigation/router-link-delegate.d.ts +0 -0
  553. /package/{dist/lazy/directives → directives}/overlays/modal.d.ts +0 -0
  554. /package/{dist/lazy/directives → directives}/overlays/popover.d.ts +0 -0
  555. /package/{dist/lazy/directives → directives}/validators/index.d.ts +0 -0
  556. /package/{dist/lazy/directives → directives}/validators/max-validator.d.ts +0 -0
  557. /package/{dist/lazy/directives → directives}/validators/min-validator.d.ts +0 -0
  558. /package/{dist/lazy/providers → providers}/action-sheet-controller.d.ts +0 -0
  559. /package/{dist/lazy/providers → providers}/alert-controller.d.ts +0 -0
  560. /package/{dist/lazy/providers → providers}/animation-controller.d.ts +0 -0
  561. /package/{dist/lazy/providers → providers}/gesture-controller.d.ts +0 -0
  562. /package/{dist/lazy/providers → providers}/loading-controller.d.ts +0 -0
  563. /package/{dist/lazy/providers → providers}/menu-controller.d.ts +0 -0
  564. /package/{dist/lazy/providers → providers}/modal-controller.d.ts +0 -0
  565. /package/{dist/lazy/providers → providers}/popover-controller.d.ts +0 -0
  566. /package/{dist/lazy/providers → providers}/toast-controller.d.ts +0 -0
  567. /package/{dist/schematics → schematics}/add/files/root/theme/variables.css +0 -0
  568. /package/{dist/schematics → schematics}/add/schema.json +0 -0
  569. /package/{dist/schematics → schematics}/collection.json +0 -0
  570. /package/{dist/standalone → standalone}/directives/angular-component-lib/utils.d.ts +0 -0
  571. /package/{dist/standalone → standalone}/directives/checkbox.d.ts +0 -0
  572. /package/{dist/standalone → standalone}/directives/datetime.d.ts +0 -0
  573. /package/{dist/standalone → standalone}/directives/icon.d.ts +0 -0
  574. /package/{dist/standalone → standalone}/directives/index.d.ts +0 -0
  575. /package/{dist/standalone → standalone}/directives/input-otp.d.ts +0 -0
  576. /package/{dist/standalone → standalone}/directives/input.d.ts +0 -0
  577. /package/{dist/standalone → standalone}/directives/radio-group.d.ts +0 -0
  578. /package/{dist/standalone → standalone}/directives/range.d.ts +0 -0
  579. /package/{dist/standalone → standalone}/directives/searchbar.d.ts +0 -0
  580. /package/{dist/standalone → standalone}/directives/segment.d.ts +0 -0
  581. /package/{dist/standalone → standalone}/directives/select.d.ts +0 -0
  582. /package/{dist/standalone → standalone}/directives/textarea.d.ts +0 -0
  583. /package/{dist/standalone → standalone}/directives/toggle.d.ts +0 -0
  584. /package/{dist/standalone → standalone}/navigation/back-button.d.ts +0 -0
  585. /package/{dist/standalone → standalone}/navigation/nav.d.ts +0 -0
  586. /package/{dist/standalone → standalone}/navigation/router-link-delegate.d.ts +0 -0
  587. /package/{dist/standalone → standalone}/navigation/router-outlet.d.ts +0 -0
  588. /package/{dist/standalone → standalone}/navigation/tabs.d.ts +0 -0
  589. /package/{dist/standalone → standalone}/overlays/modal.d.ts +0 -0
  590. /package/{dist/standalone → standalone}/overlays/popover.d.ts +0 -0
  591. /package/{dist/standalone → standalone}/providers/action-sheet-controller.d.ts +0 -0
  592. /package/{dist/standalone → standalone}/providers/alert-controller.d.ts +0 -0
  593. /package/{dist/standalone → standalone}/providers/animation-controller.d.ts +0 -0
  594. /package/{dist/standalone → standalone}/providers/gesture-controller.d.ts +0 -0
  595. /package/{dist/standalone → standalone}/providers/ionic-angular.d.ts +0 -0
  596. /package/{dist/standalone → standalone}/providers/loading-controller.d.ts +0 -0
  597. /package/{dist/standalone → standalone}/providers/menu-controller.d.ts +0 -0
  598. /package/{dist/standalone → standalone}/providers/modal-controller.d.ts +0 -0
  599. /package/{dist/standalone → standalone}/providers/popover-controller.d.ts +0 -0
  600. /package/{dist/standalone → standalone}/providers/toast-controller.d.ts +0 -0
@@ -12,6 +12,7 @@ export { GestureController } from './providers/gesture-controller';
12
12
  export { LoadingController } from './providers/loading-controller';
13
13
  export { MenuController } from './providers/menu-controller';
14
14
  export { ModalController } from './providers/modal-controller';
15
+ export { PickerController } from './providers/picker-controller';
15
16
  export { PopoverController } from './providers/popover-controller';
16
17
  export { ToastController } from './providers/toast-controller';
17
18
  export { DomController, NavController, Config, Platform, NavParams, IonModalToken, IonicRouteStrategy, ViewWillEnter, ViewDidEnter, ViewWillLeave, ViewDidLeave, } from '@ionic/angular/common';
@@ -19,4 +20,4 @@ export type { ModalOptions, PopoverOptions } from '@ionic/angular/common';
19
20
  export { IonNav } from './navigation/nav';
20
21
  export { IonCheckbox, IonDatetime, IonInput, IonInputOtp, IonIcon, IonRadioGroup, IonRange, IonSearchbar, IonSegment, IonSelect, IonTextarea, IonToggle, } from './directives';
21
22
  export * from './directives/proxies';
22
- export { createAnimation, createGesture, iosTransitionAnimation, mdTransitionAnimation, IonicSlides, getPlatforms, isPlatform, getTimeGivenProgression, Animation, AnimationBuilder, AnimationCallbackOptions, AnimationDirection, AnimationFill, AnimationKeyFrames, AnimationLifecycle, Gesture, GestureConfig, GestureDetail, NavComponentWithProps, SpinnerTypes, AccordionGroupCustomEvent, AccordionGroupChangeEventDetail, BreadcrumbCustomEvent, BreadcrumbCollapsedClickEventDetail, ActionSheetOptions, ActionSheetButton, AlertOptions, AlertInput, AlertButton, BackButtonEvent, CheckboxCustomEvent, CheckboxChangeEventDetail, DatetimeCustomEvent, DatetimeChangeEventDetail, InfiniteScrollCustomEvent, InputCustomEvent, InputChangeEventDetail, InputOtpCustomEvent, InputOtpChangeEventDetail, InputOtpCompleteEventDetail, InputOtpInputEventDetail, ItemReorderEventDetail, ItemReorderCustomEvent, ItemSlidingCustomEvent, IonicSafeString, LoadingOptions, MenuCustomEvent, ModalDragEventDetail, NavCustomEvent, PlatformConfig, RadioGroupCustomEvent, RadioGroupChangeEventDetail, RangeCustomEvent, RangeChangeEventDetail, RangeKnobMoveStartEventDetail, RangeKnobMoveEndEventDetail, RefresherCustomEvent, RefresherEventDetail, RefresherPullEndCustomEvent, RefresherPullEndEventDetail, ReorderMoveCustomEvent, ReorderMoveEventDetail, ReorderEndCustomEvent, ReorderEndEventDetail, RouterEventDetail, RouterCustomEvent, ScrollBaseCustomEvent, ScrollBaseDetail, ScrollDetail, ScrollCustomEvent, SearchbarCustomEvent, SearchbarChangeEventDetail, SearchbarInputEventDetail, SegmentChangeEventDetail, SegmentCustomEvent, SegmentValue, SelectChangeEventDetail, SelectCustomEvent, TabsCustomEvent, TextareaChangeEventDetail, TextareaCustomEvent, ToastOptions, ToastButton, ToastLayout, ToggleChangeEventDetail, ToggleCustomEvent, } from '@ionic/core/components';
23
+ export { createAnimation, createGesture, iosTransitionAnimation, mdTransitionAnimation, IonicSlides, getPlatforms, isPlatform, getTimeGivenProgression, Animation, AnimationBuilder, AnimationCallbackOptions, AnimationDirection, AnimationFill, AnimationKeyFrames, AnimationLifecycle, Gesture, GestureConfig, GestureDetail, NavComponentWithProps, SpinnerTypes, AccordionGroupCustomEvent, AccordionGroupChangeEventDetail, BreadcrumbCustomEvent, BreadcrumbCollapsedClickEventDetail, ActionSheetOptions, ActionSheetButton, AlertOptions, AlertInput, AlertButton, BackButtonEvent, CheckboxCustomEvent, CheckboxChangeEventDetail, DatetimeCustomEvent, DatetimeChangeEventDetail, InfiniteScrollCustomEvent, InputCustomEvent, InputChangeEventDetail, InputOtpCustomEvent, InputOtpChangeEventDetail, InputOtpCompleteEventDetail, InputOtpInputEventDetail, ItemReorderEventDetail, ItemReorderCustomEvent, ItemSlidingCustomEvent, IonicSafeString, LoadingOptions, MenuCustomEvent, ModalDragEventDetail, NavCustomEvent, PickerOptions, PickerButton, PickerColumn, PickerColumnOption, PlatformConfig, RadioGroupCustomEvent, RadioGroupChangeEventDetail, RangeCustomEvent, RangeChangeEventDetail, RangeKnobMoveStartEventDetail, RangeKnobMoveEndEventDetail, RefresherCustomEvent, RefresherEventDetail, RefresherPullEndCustomEvent, RefresherPullEndEventDetail, ReorderMoveCustomEvent, ReorderMoveEventDetail, ReorderEndCustomEvent, ReorderEndEventDetail, RouterEventDetail, RouterCustomEvent, ScrollBaseCustomEvent, ScrollBaseDetail, ScrollDetail, ScrollCustomEvent, SearchbarCustomEvent, SearchbarChangeEventDetail, SearchbarInputEventDetail, SegmentChangeEventDetail, SegmentCustomEvent, SegmentValue, SelectChangeEventDetail, SelectCustomEvent, TabsCustomEvent, TextareaChangeEventDetail, TextareaCustomEvent, ToastOptions, ToastButton, ToastLayout, ToggleChangeEventDetail, ToggleCustomEvent, } from '@ionic/core/components';
@@ -0,0 +1,11 @@
1
+ import { OverlayBaseController } from '@ionic/angular/common';
2
+ import type { PickerOptions } from '@ionic/core/components';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * @deprecated Use the inline ion-picker component instead.
6
+ */
7
+ export declare class PickerController extends OverlayBaseController<PickerOptions, HTMLIonPickerLegacyElement> {
8
+ constructor();
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<PickerController, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<PickerController>;
11
+ }
@@ -1,2 +0,0 @@
1
- export * from './value-accessor';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/directives/control-value-accessors/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC","sourcesContent":["export * from './value-accessor';\n"]}
@@ -1,152 +0,0 @@
1
- import { Directive, HostListener } from '@angular/core';
2
- import { NgControl } from '@angular/forms';
3
- import { raf } from '../../utils/util';
4
- import * as i0 from "@angular/core";
5
- // TODO(FW-2827): types
6
- export class ValueAccessor {
7
- injector;
8
- elementRef;
9
- onChange = () => {
10
- /**/
11
- };
12
- onTouched = () => {
13
- /**/
14
- };
15
- lastValue;
16
- statusChanges;
17
- constructor(injector, elementRef) {
18
- this.injector = injector;
19
- this.elementRef = elementRef;
20
- }
21
- writeValue(value) {
22
- this.elementRef.nativeElement.value = this.lastValue = value;
23
- setIonicClasses(this.elementRef);
24
- }
25
- /**
26
- * Notifies the ControlValueAccessor of a change in the value of the control.
27
- *
28
- * This is called by each of the ValueAccessor directives when we want to update
29
- * the status and validity of the form control. For example with text components this
30
- * is called when the ionInput event is fired. For select components this is called
31
- * when the ionChange event is fired.
32
- *
33
- * This also updates the Ionic form status classes on the element.
34
- *
35
- * @param el The component element.
36
- * @param value The new value of the control.
37
- */
38
- handleValueChange(el, value) {
39
- if (el === this.elementRef.nativeElement) {
40
- if (value !== this.lastValue) {
41
- this.lastValue = value;
42
- this.onChange(value);
43
- }
44
- setIonicClasses(this.elementRef);
45
- }
46
- }
47
- _handleBlurEvent(el) {
48
- if (el === this.elementRef.nativeElement) {
49
- this.onTouched();
50
- setIonicClasses(this.elementRef);
51
- // When ion-radio is blurred, el and this.elementRef.nativeElement are
52
- // different so we need to check if the closest ion-radio-group is the same
53
- // as this.elementRef.nativeElement and if so, we need to mark the radio group
54
- // as touched
55
- }
56
- else if (el.closest('ion-radio-group') === this.elementRef.nativeElement) {
57
- this.onTouched();
58
- }
59
- }
60
- registerOnChange(fn) {
61
- this.onChange = fn;
62
- }
63
- registerOnTouched(fn) {
64
- this.onTouched = fn;
65
- }
66
- setDisabledState(isDisabled) {
67
- this.elementRef.nativeElement.disabled = isDisabled;
68
- }
69
- ngOnDestroy() {
70
- if (this.statusChanges) {
71
- this.statusChanges.unsubscribe();
72
- }
73
- }
74
- ngAfterViewInit() {
75
- let ngControl;
76
- try {
77
- ngControl = this.injector.get(NgControl);
78
- }
79
- catch {
80
- /* No FormControl or ngModel binding */
81
- }
82
- if (!ngControl) {
83
- return;
84
- }
85
- // Listen for changes in validity, disabled, or pending states
86
- if (ngControl.statusChanges) {
87
- this.statusChanges = ngControl.statusChanges.subscribe(() => setIonicClasses(this.elementRef));
88
- }
89
- /**
90
- * TODO FW-2787: Remove this in favor of https://github.com/angular/angular/issues/10887
91
- * whenever it is implemented.
92
- */
93
- const formControl = ngControl.control;
94
- if (formControl) {
95
- const methodsToPatch = ['markAsTouched', 'markAllAsTouched', 'markAsUntouched', 'markAsDirty', 'markAsPristine'];
96
- methodsToPatch.forEach((method) => {
97
- if (typeof formControl[method] !== 'undefined') {
98
- const oldFn = formControl[method].bind(formControl);
99
- formControl[method] = (...params) => {
100
- oldFn(...params);
101
- setIonicClasses(this.elementRef);
102
- };
103
- }
104
- });
105
- }
106
- }
107
- /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ValueAccessor, deps: [{ token: i0.Injector }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
108
- /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: ValueAccessor, isStandalone: true, host: { listeners: { "ionBlur": "_handleBlurEvent($event.target)" } }, ngImport: i0 });
109
- }
110
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ValueAccessor, decorators: [{
111
- type: Directive
112
- }], ctorParameters: () => [{ type: i0.Injector }, { type: i0.ElementRef }], propDecorators: { _handleBlurEvent: [{
113
- type: HostListener,
114
- args: ['ionBlur', ['$event.target']]
115
- }] } });
116
- export const setIonicClasses = (element) => {
117
- raf(() => {
118
- const input = element.nativeElement;
119
- const hasValue = input.value != null && input.value.toString().length > 0;
120
- const classes = getClasses(input);
121
- setClasses(input, classes);
122
- const item = input.closest('ion-item');
123
- if (item) {
124
- if (hasValue) {
125
- setClasses(item, [...classes, 'item-has-value']);
126
- }
127
- else {
128
- setClasses(item, classes);
129
- }
130
- }
131
- });
132
- };
133
- const getClasses = (element) => {
134
- const classList = element.classList;
135
- const classes = [];
136
- for (let i = 0; i < classList.length; i++) {
137
- const item = classList.item(i);
138
- if (item !== null && startsWith(item, 'ng-')) {
139
- classes.push(`ion-${item.substring(3)}`);
140
- }
141
- }
142
- return classes;
143
- };
144
- const setClasses = (element, classes) => {
145
- const classList = element.classList;
146
- classList.remove('ion-valid', 'ion-invalid', 'ion-touched', 'ion-untouched', 'ion-dirty', 'ion-pristine');
147
- classList.add(...classes);
148
- };
149
- const startsWith = (input, search) => {
150
- return input.substring(0, search.length) === search;
151
- };
152
- //# sourceMappingURL=value-accessor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"value-accessor.js","sourceRoot":"","sources":["../../../../src/common/directives/control-value-accessors/value-accessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkD,SAAS,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AACxG,OAAO,EAAwB,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGjE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;;AAEvC,uBAAuB;AAGvB,MAAM,OAAO,aAAa;IAUF;IAA8B;IAT5C,QAAQ,GAAyB,GAAG,EAAE;QAC5C,IAAI;IACN,CAAC,CAAC;IACM,SAAS,GAAe,GAAG,EAAE;QACnC,IAAI;IACN,CAAC,CAAC;IACQ,SAAS,CAAM;IACjB,aAAa,CAAgB;IAErC,YAAsB,QAAkB,EAAY,UAAsB;QAApD,aAAQ,GAAR,QAAQ,CAAU;QAAY,eAAU,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AO,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QAC3C,CAAC;IACH,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,OAAoB,EAAE,OAAiB,EAAE,EAAE;IAC7D,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IACpC,SAAS,CAAC,MAAM,CAAC,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,eAAe,EAAE,WAAW,EAAE,cAAc,CAAC,CAAC;IAC1G,SAAS,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC;AAC5B,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,KAAa,EAAE,MAAc,EAAW,EAAE;IAC5D,OAAO,KAAK,CAAC,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,MAAM,CAAC;AACtD,CAAC,CAAC","sourcesContent":["import { AfterViewInit, ElementRef, Injector, OnDestroy, Directive, HostListener } from '@angular/core';\nimport { ControlValueAccessor, NgControl } from '@angular/forms';\nimport { Subscription } from 'rxjs';\n\nimport { raf } from '../../utils/util';\n\n// TODO(FW-2827): types\n\n@Directive()\nexport class ValueAccessor implements ControlValueAccessor, AfterViewInit, OnDestroy {\n private onChange: (value: any) => void = () => {\n /**/\n };\n private onTouched: () => void = () => {\n /**/\n };\n protected lastValue: any;\n private statusChanges?: Subscription;\n\n constructor(protected injector: Injector, protected elementRef: ElementRef) {}\n\n writeValue(value: any): void {\n this.elementRef.nativeElement.value = this.lastValue = value;\n setIonicClasses(this.elementRef);\n }\n\n /**\n * Notifies the ControlValueAccessor of a change in the value of the control.\n *\n * This is called by each of the ValueAccessor directives when we want to update\n * the status and validity of the form control. For example with text components this\n * is called when the ionInput event is fired. For select components this is called\n * when the ionChange event is fired.\n *\n * This also updates the Ionic form status classes on the element.\n *\n * @param el The component element.\n * @param value The new value of the control.\n */\n handleValueChange(el: HTMLElement, value: any): void {\n if (el === this.elementRef.nativeElement) {\n if (value !== this.lastValue) {\n this.lastValue = value;\n this.onChange(value);\n }\n setIonicClasses(this.elementRef);\n }\n }\n\n @HostListener('ionBlur', ['$event.target'])\n _handleBlurEvent(el: any): void {\n if (el === this.elementRef.nativeElement) {\n this.onTouched();\n setIonicClasses(this.elementRef);\n\n // When ion-radio is blurred, el and this.elementRef.nativeElement are\n // different so we need to check if the closest ion-radio-group is the same\n // as this.elementRef.nativeElement and if so, we need to mark the radio group\n // as touched\n } else if (el.closest('ion-radio-group') === this.elementRef.nativeElement) {\n this.onTouched();\n }\n }\n\n registerOnChange(fn: (value: any) => void): void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.elementRef.nativeElement.disabled = isDisabled;\n }\n\n ngOnDestroy(): void {\n if (this.statusChanges) {\n this.statusChanges.unsubscribe();\n }\n }\n\n ngAfterViewInit(): void {\n let ngControl;\n try {\n ngControl = this.injector.get<NgControl>(NgControl);\n } catch {\n /* No FormControl or ngModel binding */\n }\n\n if (!ngControl) {\n return;\n }\n\n // Listen for changes in validity, disabled, or pending states\n if (ngControl.statusChanges) {\n this.statusChanges = ngControl.statusChanges.subscribe(() => setIonicClasses(this.elementRef));\n }\n\n /**\n * TODO FW-2787: Remove this in favor of https://github.com/angular/angular/issues/10887\n * whenever it is implemented.\n */\n const formControl = ngControl.control as any;\n if (formControl) {\n const methodsToPatch = ['markAsTouched', 'markAllAsTouched', 'markAsUntouched', 'markAsDirty', 'markAsPristine'];\n methodsToPatch.forEach((method) => {\n if (typeof formControl[method] !== 'undefined') {\n const oldFn = formControl[method].bind(formControl);\n formControl[method] = (...params: any[]) => {\n oldFn(...params);\n setIonicClasses(this.elementRef);\n };\n }\n });\n }\n }\n}\n\nexport const setIonicClasses = (element: ElementRef): void => {\n raf(() => {\n const input = element.nativeElement as HTMLInputElement;\n const hasValue = input.value != null && input.value.toString().length > 0;\n const classes = getClasses(input);\n setClasses(input, classes);\n const item = input.closest('ion-item');\n if (item) {\n if (hasValue) {\n setClasses(item, [...classes, 'item-has-value']);\n } else {\n setClasses(item, classes);\n }\n }\n });\n};\n\nconst getClasses = (element: HTMLElement) => {\n const classList = element.classList;\n const classes: string[] = [];\n for (let i = 0; i < classList.length; i++) {\n const item = classList.item(i);\n if (item !== null && startsWith(item, 'ng-')) {\n classes.push(`ion-${item.substring(3)}`);\n }\n }\n return classes;\n};\n\nconst setClasses = (element: HTMLElement, classes: string[]) => {\n const classList = element.classList;\n classList.remove('ion-valid', 'ion-invalid', 'ion-touched', 'ion-untouched', 'ion-dirty', 'ion-pristine');\n classList.add(...classes);\n};\n\nconst startsWith = (input: string, search: string): boolean => {\n return input.substring(0, search.length) === search;\n};\n"]}
@@ -1,61 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { HostListener, Optional, Directive } from '@angular/core';
3
- import { ProxyCmp } from '../../utils/proxy';
4
- import * as i0 from "@angular/core";
5
- import * as i1 from "./router-outlet";
6
- import * as i2 from "../../providers/nav-controller";
7
- import * as i3 from "../../providers/config";
8
- const BACK_BUTTON_INPUTS = ['color', 'defaultHref', 'disabled', 'icon', 'mode', 'routerAnimation', 'text', 'type'];
9
- let IonBackButton = class IonBackButton {
10
- routerOutlet;
11
- navCtrl;
12
- config;
13
- r;
14
- z;
15
- el;
16
- constructor(routerOutlet, navCtrl, config, r, z, c) {
17
- this.routerOutlet = routerOutlet;
18
- this.navCtrl = navCtrl;
19
- this.config = config;
20
- this.r = r;
21
- this.z = z;
22
- c.detach();
23
- this.el = this.r.nativeElement;
24
- }
25
- /**
26
- * @internal
27
- */
28
- onClick(ev) {
29
- const defaultHref = this.defaultHref || this.config.get('backButtonDefaultHref');
30
- if (this.routerOutlet?.canGoBack()) {
31
- this.navCtrl.setDirection('back', undefined, undefined, this.routerAnimation);
32
- this.routerOutlet.pop();
33
- ev.preventDefault();
34
- }
35
- else if (defaultHref != null) {
36
- this.navCtrl.navigateBack(defaultHref, { animation: this.routerAnimation });
37
- ev.preventDefault();
38
- }
39
- }
40
- /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: IonBackButton, deps: [{ token: i1.IonRouterOutlet, optional: true }, { token: i2.NavController }, { token: i3.Config }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
41
- /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: IonBackButton, isStandalone: true, inputs: { color: "color", defaultHref: "defaultHref", disabled: "disabled", icon: "icon", mode: "mode", routerAnimation: "routerAnimation", text: "text", type: "type" }, host: { listeners: { "click": "onClick($event)" } }, ngImport: i0 });
42
- };
43
- IonBackButton = __decorate([
44
- ProxyCmp({
45
- inputs: BACK_BUTTON_INPUTS,
46
- })
47
- ], IonBackButton);
48
- export { IonBackButton };
49
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: IonBackButton, decorators: [{
50
- type: Directive,
51
- args: [{
52
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
53
- inputs: BACK_BUTTON_INPUTS,
54
- }]
55
- }], ctorParameters: () => [{ type: i1.IonRouterOutlet, decorators: [{
56
- type: Optional
57
- }] }, { type: i2.NavController }, { type: i3.Config }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }], propDecorators: { onClick: [{
58
- type: HostListener,
59
- args: ['click', ['$event']]
60
- }] } });
61
- //# sourceMappingURL=back-button.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"back-button.js","sourceRoot":"","sources":["../../../../src/common/directives/navigation/back-button.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAyC,SAAS,EAAE,MAAM,eAAe,CAAC;AAKzG,OAAO,EAAE,QAAQ,EAAE,M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,aAAa;;AAAb,aAAa;IAPzB,QAAQ,CAAC;QACR,MAAM,EAAE,kBAAkB;KAC3B,CAAC;GAKW,aAAa,CA+BzB;;2FA/BY,aAAa;kBAJzB,SAAS;mBAAC;oBACT,uEAAuE;oBACvE,MAAM,EAAE,kBAAkB;iBAC3B;;0BAKI,QAAQ;;sBAcV,YAAY;uBAAC,OAAO,EAAE,CAAC,QAAQ,CAAC","sourcesContent":["import { HostListener, Optional, ElementRef, NgZone, ChangeDetectorRef, Directive } from '@angular/core';\nimport type { Components } from '@ionic/core';\n\nimport { Config } from '../../providers/config';\nimport { NavController } from '../../providers/nav-controller';\nimport { ProxyCmp } from '../../utils/proxy';\n\nimport { IonRouterOutlet } from './router-outlet';\n\nconst BACK_BUTTON_INPUTS = ['color', 'defaultHref', 'disabled', 'icon', 'mode', 'routerAnimation', 'text', 'type'];\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport declare interface IonBackButton extends Components.IonBackButton {}\n\n@ProxyCmp({\n inputs: BACK_BUTTON_INPUTS,\n})\n@Directive({\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: BACK_BUTTON_INPUTS,\n})\nexport class IonBackButton {\n protected el: HTMLElement;\n\n constructor(\n @Optional() private routerOutlet: IonRouterOutlet,\n private navCtrl: NavController,\n private config: Config,\n private r: ElementRef,\n protected z: NgZone,\n c: ChangeDetectorRef\n ) {\n c.detach();\n this.el = this.r.nativeElement;\n }\n\n /**\n * @internal\n */\n @HostListener('click', ['$event'])\n onClick(ev: Event): void {\n const defaultHref = this.defaultHref || this.config.get('backButtonDefaultHref');\n\n if (this.routerOutlet?.canGoBack()) {\n this.navCtrl.setDirection('back', undefined, undefined, this.routerAnimation);\n this.routerOutlet.pop();\n ev.preventDefault();\n } else if (defaultHref != null) {\n this.navCtrl.navigateBack(defaultHref, { animation: this.routerAnimation });\n ev.preventDefault();\n }\n }\n}\n"]}
@@ -1,47 +0,0 @@
1
- /**
2
- * @description
3
- * NavParams are an object that exists on a page and can contain data for that particular view.
4
- * Similar to how data was pass to a view in V1 with `$stateParams`, NavParams offer a much more flexible
5
- * option with a simple `get` method.
6
- *
7
- * @usage
8
- * ```ts
9
- * import { NavParams } from '@ionic/angular';
10
- *
11
- * export class MyClass{
12
- *
13
- * constructor(navParams: NavParams){
14
- * // userParams is an object we have in our nav-parameters
15
- * navParams.get('userParams');
16
- * }
17
- *
18
- * }
19
- * ```
20
- */
21
- export class NavParams {
22
- data;
23
- constructor(data = {}) {
24
- this.data = data;
25
- console.warn(`[Ionic Warning]: NavParams has been deprecated in favor of using Angular's input API. Developers should migrate to either the @Input decorator or the Signals-based input API.`);
26
- }
27
- /**
28
- * Get the value of a nav-parameter for the current view
29
- *
30
- * ```ts
31
- * import { NavParams } from 'ionic-angular';
32
- *
33
- * export class MyClass{
34
- * constructor(public navParams: NavParams){
35
- * // userParams is an object we have in our nav-parameters
36
- * this.navParams.get('userParams');
37
- * }
38
- * }
39
- * ```
40
- *
41
- * @param param Which param you want to look up
42
- */
43
- get(param) {
44
- return this.data[param];
45
- }
46
- }
47
- //# sourceMappingURL=nav-params.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nav-params.js","sourceRoot":"","sources":["../../../../src/common/directives/navigation/nav-params.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,OAAO,SAAS;IACD;IAAnB,YAAmB,OAA+B,EAAE;QAAjC,SAAI,GAAJ,IAAI,CAA6B;QAClD,OAAO,CAAC,IAAI,CACV,gLAAgL,CACjL,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,GAAG,CAAU,KAAa;QACxB,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC1B,CAAC;CACF","sourcesContent":["/**\n * @description\n * NavParams are an object that exists on a page and can contain data for that particular view.\n * Similar to how data was pass to a view in V1 with `$stateParams`, NavParams offer a much more flexible\n * option with a simple `get` method.\n *\n * @usage\n * ```ts\n * import { NavParams } from '@ionic/angular';\n *\n * export class MyClass{\n *\n * constructor(navParams: NavParams){\n * // userParams is an object we have in our nav-parameters\n * navParams.get('userParams');\n * }\n *\n * }\n * ```\n */\nexport class NavParams {\n constructor(public data: { [key: string]: any } = {}) {\n console.warn(\n `[Ionic Warning]: NavParams has been deprecated in favor of using Angular's input API. Developers should migrate to either the @Input decorator or the Signals-based input API.`\n );\n }\n\n /**\n * Get the value of a nav-parameter for the current view\n *\n * ```ts\n * import { NavParams } from 'ionic-angular';\n *\n * export class MyClass{\n * constructor(public navParams: NavParams){\n * // userParams is an object we have in our nav-parameters\n * this.navParams.get('userParams');\n * }\n * }\n * ```\n *\n * @param param Which param you want to look up\n */\n get<T = any>(param: string): T {\n return this.data[param];\n }\n}\n"]}
@@ -1,49 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { Directive, } from '@angular/core';
3
- import { ProxyCmp, proxyOutputs } from '../../utils/proxy';
4
- import * as i0 from "@angular/core";
5
- import * as i1 from "../../providers/angular-delegate";
6
- const NAV_INPUTS = ['animated', 'animation', 'root', 'rootParams', 'swipeGesture'];
7
- const NAV_METHODS = [
8
- 'push',
9
- 'insert',
10
- 'insertPages',
11
- 'pop',
12
- 'popTo',
13
- 'popToRoot',
14
- 'removeIndex',
15
- 'setRoot',
16
- 'setPages',
17
- 'getActive',
18
- 'getByIndex',
19
- 'canGoBack',
20
- 'getPrevious',
21
- ];
22
- let IonNav = class IonNav {
23
- z;
24
- el;
25
- constructor(ref, environmentInjector, injector, angularDelegate, z, c) {
26
- this.z = z;
27
- c.detach();
28
- this.el = ref.nativeElement;
29
- ref.nativeElement.delegate = angularDelegate.create(environmentInjector, injector);
30
- proxyOutputs(this, this.el, ['ionNavDidChange', 'ionNavWillChange']);
31
- }
32
- /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: IonNav, deps: [{ token: i0.ElementRef }, { token: i0.EnvironmentInjector }, { token: i0.Injector }, { token: i1.AngularDelegate }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
33
- /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: IonNav, isStandalone: true, inputs: { animated: "animated", animation: "animation", root: "root", rootParams: "rootParams", swipeGesture: "swipeGesture" }, ngImport: i0 });
34
- };
35
- IonNav = __decorate([
36
- ProxyCmp({
37
- inputs: NAV_INPUTS,
38
- methods: NAV_METHODS,
39
- })
40
- ], IonNav);
41
- export { IonNav };
42
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: IonNav, decorators: [{
43
- type: Directive,
44
- args: [{
45
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
46
- inputs: NAV_INPUTS,
47
- }]
48
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.EnvironmentInjector }, { type: i0.Injector }, { type: i1.AngularDelegate }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }] });
49
- //# sourceMappingURL=nav.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nav.js","sourceRoot":"","sources":["../../../../src/common/directives/navigation/nav.ts"],"names":[],"mappings":";AAAA,OAAO,EAML,SAAS,GAEV,MAAM,eAAe,CAAC;AAIvB,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;;;AAE3D,MAAM,UAAU,GAAG,CAAC,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,cAAc,CAAC,CAAC;AAEnF,MAAM,WAAW,GAAG;IAClB,MAAM;IACN,QAAQ;IACR,aAAa;IACb,KAAK;IACL,OAAO;IACP,WAAW;IACX,aAAa;IACb,SAAS;IACT,UAAU;IACV,WAAW;IACX,YAAY;IACZ,WAAW;IACX,aAAa;CACd,CAAC;AAqBK,IAAM,MAAM,GAAZ,MAAM,MAAM;IAOL;IANF,EAAE,CAAc;IAC1B,YACE,GAAe,EACf,mBAAwC,EACxC,QAAkB,EAClB,eAAgC,EACtB,CAAS,EACnB,CAAoB;QADV,MAAC,GAAD,CAAC,CAAQ;QAGnB,CAAC,CAAC,MAAM,EAAE,CAAC;QACX,IAAI,CAAC,EAAE,GAAG,GAAG,CAAC,aAAa,CAAC;QAC5B,GAAG,CAAC,aAAa,CAAC,QAAQ,GAAG,eAAe,CAAC,MAAM,CAAC,mBAAmB,EAAE,QAAQ,CAAC,CAAC;QACnF,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAAC,CAAC;IACvE,CAAC;0HAdU,MAAM;8GAAN,MAAM;;AAAN,MAAM;IARlB,QAAQ,CAAC;QACR,MAAM,EAAE,UAAU;QAClB,OAAO,EAAE,WAAW;KACrB,CAAC;GAKW,MAAM,CAelB;;2FAfY,MAAM;kBAJlB,SAAS;mBAAC;oBACT,uEAAuE;oBACvE,MAAM,EAAE,UAAU;iBACnB","sourcesContent":["import {\n ElementRef,\n Injector,\n EnvironmentInjector,\n NgZone,\n ChangeDetectorRef,\n Directive,\n EventEmitter,\n} from '@angular/core';\nimport type { Components } from '@ionic/core';\n\nimport { AngularDelegate } from '../../providers/angular-delegate';\nimport { ProxyCmp, proxyOutputs } from '../../utils/proxy';\n\nconst NAV_INPUTS = ['animated', 'animation', 'root', 'rootParams', 'swipeGesture'];\n\nconst NAV_METHODS = [\n 'push',\n 'insert',\n 'insertPages',\n 'pop',\n 'popTo',\n 'popToRoot',\n 'removeIndex',\n 'setRoot',\n 'setPages',\n 'getActive',\n 'getByIndex',\n 'canGoBack',\n 'getPrevious',\n];\n\nexport declare interface IonNav extends Components.IonNav {\n /**\n * Event fired when the nav will change components\n */\n ionNavWillChange: EventEmitter<CustomEvent<void>>;\n /**\n * Event fired when the nav has changed components\n */\n ionNavDidChange: EventEmitter<CustomEvent<void>>;\n}\n\n@ProxyCmp({\n inputs: NAV_INPUTS,\n methods: NAV_METHODS,\n})\n@Directive({\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: NAV_INPUTS,\n})\nexport class IonNav {\n protected el: HTMLElement;\n constructor(\n ref: ElementRef,\n environmentInjector: EnvironmentInjector,\n injector: Injector,\n angularDelegate: AngularDelegate,\n protected z: NgZone,\n c: ChangeDetectorRef\n ) {\n c.detach();\n this.el = ref.nativeElement;\n ref.nativeElement.delegate = angularDelegate.create(environmentInjector, injector);\n proxyOutputs(this, this.el, ['ionNavDidChange', 'ionNavWillChange']);\n }\n}\n"]}
@@ -1,188 +0,0 @@
1
- import { Directive, HostListener, Input, Optional } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "@angular/common";
4
- import * as i2 from "../../providers/nav-controller";
5
- import * as i3 from "@angular/router";
6
- /**
7
- * Adds support for Ionic routing directions and animations to the base Angular router link directive.
8
- *
9
- * When the router link is clicked, the directive will assign the direction and
10
- * animation so that the routing integration will transition correctly.
11
- */
12
- export class RouterLinkDelegateDirective {
13
- locationStrategy;
14
- navCtrl;
15
- elementRef;
16
- router;
17
- routerLink;
18
- routerDirection = 'forward';
19
- routerAnimation;
20
- constructor(locationStrategy, navCtrl, elementRef, router, routerLink) {
21
- this.locationStrategy = locationStrategy;
22
- this.navCtrl = navCtrl;
23
- this.elementRef = elementRef;
24
- this.router = router;
25
- this.routerLink = routerLink;
26
- }
27
- ngOnInit() {
28
- this.updateTargetUrlAndHref();
29
- this.updateTabindex();
30
- /**
31
- * Ionic components like `ion-item` render a native anchor in their shadow DOM,
32
- * so a modifier click (ctrl/meta/shift/alt) or a non-`_self` target should let
33
- * the browser handle the navigation natively (new tab, new window, download)
34
- * instead of navigating in-app.
35
- *
36
- * We listen in the capture phase so this runs before Angular's `RouterLink`
37
- * handler and our own bubble-phase `onClick`. On a native-navigation intent it
38
- * stops propagation to cancel the in-app navigation, but leaves `preventDefault`
39
- * alone so the native anchor can still act.
40
- */
41
- this.elementRef.nativeElement.addEventListener('click', this.onCaptureClick, { capture: true });
42
- }
43
- ngOnChanges() {
44
- this.updateTargetUrlAndHref();
45
- }
46
- ngOnDestroy() {
47
- this.elementRef.nativeElement.removeEventListener('click', this.onCaptureClick, { capture: true });
48
- }
49
- onCaptureClick = (ev) => {
50
- if (this.opensNatively(ev)) {
51
- ev.stopImmediatePropagation();
52
- }
53
- };
54
- /**
55
- * True when the browser should handle the click natively instead of routing
56
- * in-app: a modifier was held (ctrl/meta/shift/alt), or the host targets
57
- * something other than `_self`. This mirrors the modifier set Angular's own
58
- * `RouterLink` guards on, so an Ionic `routerLink` behaves like a plain anchor
59
- * for new-tab, new-window, and download intents.
60
- */
61
- opensNatively(ev) {
62
- if (ev instanceof MouseEvent && (ev.ctrlKey || ev.metaKey || ev.shiftKey || ev.altKey)) {
63
- return true;
64
- }
65
- const target = this.elementRef.nativeElement.target;
66
- return target != null && target !== '' && target !== '_self';
67
- }
68
- /**
69
- * The `tabindex` is set to `0` by default on the host element when
70
- * the `routerLink` directive is used. This causes issues with Ionic
71
- * components that wrap an `a` or `button` element, such as `ion-item`.
72
- * See issue https://github.com/angular/angular/issues/28345
73
- *
74
- * This method removes the `tabindex` attribute from the host element
75
- * to allow the Ionic component to manage the focus state correctly.
76
- */
77
- updateTabindex() {
78
- // Ionic components that render a native anchor or button element
79
- const ionicComponents = [
80
- 'ION-BACK-BUTTON',
81
- 'ION-BREADCRUMB',
82
- 'ION-BUTTON',
83
- 'ION-CARD',
84
- 'ION-FAB-BUTTON',
85
- 'ION-ITEM',
86
- 'ION-ITEM-OPTION',
87
- 'ION-MENU-BUTTON',
88
- 'ION-SEGMENT-BUTTON',
89
- 'ION-TAB-BUTTON',
90
- ];
91
- const hostElement = this.elementRef.nativeElement;
92
- if (ionicComponents.includes(hostElement.tagName)) {
93
- if (hostElement.getAttribute('tabindex') === '0') {
94
- hostElement.removeAttribute('tabindex');
95
- }
96
- }
97
- }
98
- updateTargetUrlAndHref() {
99
- if (this.routerLink?.urlTree) {
100
- const href = this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));
101
- this.elementRef.nativeElement.href = href;
102
- }
103
- }
104
- /**
105
- * @internal
106
- */
107
- onClick(ev) {
108
- this.navCtrl.setDirection(this.routerDirection, undefined, undefined, this.routerAnimation);
109
- /**
110
- * This prevents the browser from
111
- * performing a page reload when pressing
112
- * an Ionic component with routerLink.
113
- * The page reload interferes with routing
114
- * and causes ion-back-button to disappear
115
- * since the local history is wiped on reload.
116
- */
117
- ev.preventDefault();
118
- }
119
- /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: RouterLinkDelegateDirective, deps: [{ token: i1.LocationStrategy }, { token: i2.NavController }, { token: i0.ElementRef }, { token: i3.Router }, { token: i3.RouterLink, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
120
- /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: RouterLinkDelegateDirective, isStandalone: true, selector: ":not(a):not(area)[routerLink]", inputs: { routerDirection: "routerDirection", routerAnimation: "routerAnimation" }, host: { listeners: { "click": "onClick($event)" } }, usesOnChanges: true, ngImport: i0 });
121
- }
122
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: RouterLinkDelegateDirective, decorators: [{
123
- type: Directive,
124
- args: [{
125
- selector: ':not(a):not(area)[routerLink]',
126
- }]
127
- }], ctorParameters: () => [{ type: i1.LocationStrategy }, { type: i2.NavController }, { type: i0.ElementRef }, { type: i3.Router }, { type: i3.RouterLink, decorators: [{
128
- type: Optional
129
- }] }], propDecorators: { routerDirection: [{
130
- type: Input
131
- }], routerAnimation: [{
132
- type: Input
133
- }], onClick: [{
134
- type: HostListener,
135
- args: ['click', ['$event']]
136
- }] } });
137
- export class RouterLinkWithHrefDelegateDirective {
138
- locationStrategy;
139
- navCtrl;
140
- elementRef;
141
- router;
142
- routerLink;
143
- routerDirection = 'forward';
144
- routerAnimation;
145
- constructor(locationStrategy, navCtrl, elementRef, router, routerLink) {
146
- this.locationStrategy = locationStrategy;
147
- this.navCtrl = navCtrl;
148
- this.elementRef = elementRef;
149
- this.router = router;
150
- this.routerLink = routerLink;
151
- }
152
- ngOnInit() {
153
- this.updateTargetUrlAndHref();
154
- }
155
- ngOnChanges() {
156
- this.updateTargetUrlAndHref();
157
- }
158
- updateTargetUrlAndHref() {
159
- if (this.routerLink?.urlTree) {
160
- const href = this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));
161
- this.elementRef.nativeElement.href = href;
162
- }
163
- }
164
- /**
165
- * @internal
166
- */
167
- onClick() {
168
- this.navCtrl.setDirection(this.routerDirection, undefined, undefined, this.routerAnimation);
169
- }
170
- /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: RouterLinkWithHrefDelegateDirective, deps: [{ token: i1.LocationStrategy }, { token: i2.NavController }, { token: i0.ElementRef }, { token: i3.Router }, { token: i3.RouterLink, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
171
- /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: RouterLinkWithHrefDelegateDirective, isStandalone: true, selector: "a[routerLink],area[routerLink]", inputs: { routerDirection: "routerDirection", routerAnimation: "routerAnimation" }, host: { listeners: { "click": "onClick()" } }, usesOnChanges: true, ngImport: i0 });
172
- }
173
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: RouterLinkWithHrefDelegateDirective, decorators: [{
174
- type: Directive,
175
- args: [{
176
- selector: 'a[routerLink],area[routerLink]',
177
- }]
178
- }], ctorParameters: () => [{ type: i1.LocationStrategy }, { type: i2.NavController }, { type: i0.ElementRef }, { type: i3.Router }, { type: i3.RouterLink, decorators: [{
179
- type: Optional
180
- }] }], propDecorators: { routerDirection: [{
181
- type: Input
182
- }], routerAnimation: [{
183
- type: Input
184
- }], onClick: [{
185
- type: HostListener,
186
- args: ['click']
187
- }] } });
188
- //# sourceMappingURL=router-link-delegate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"router-link-delegate.js","sourceRoot":"","sources":["../../../../src/common/directives/navigation/router-link-delegate.ts"],"names":[],"mappings":"AACA,OAAO,EAA4C,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;;;;;AAMnH;;;;;GAKG;AAIH,MAAM,OAAO,2BAA2B;IAQ5B;IACA;IACA;IACA;IACY;IAVtB,eAAe,GAAoB,SAAS,CAAC;IAG7C,eAAe,CAAoB;IAEnC,YACU,gBAAkC,EAClC,OAAsB,EACtB,UAAsB,EACtB,MAAc,EACF,UAAuB;QAJnC,qBAAgB,GAAhB,gBAAgB,CAAkB;QAClC,YAAO,GAAP,OAAO,CAAe;QACtB,eAAU,GAAV,UAAU,CAAY;QACtB,WAAM,GAAN,MAAM,CAAQ;QACF,eAAU,GAAV,UAAU,CAAa;IAC1C,CAAC;IAEJ,QAAQ;QACN,IAAI,CAAC,sBAAsB,EAAE,CAAC;QAC9B,IAAI,CAAC,cAAc,EAAE,CAAC;QAEtB;;;;;;;;;;WAUG;QACH,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,gBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,cAAc,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IAClG,CAAC;IAED,WAAW;QACT,IAAI,CAAC,sBAAsB,EAAE,CAAC;IAChC,CAAC;IAED,WAAW;QACT,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,mBAAmB,CAAC,OAAO,EAAE,IAAI,CAAC,cAAc,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IACrG,CAAC;IAEO,cAAc,GAAG,CAAC,EAAS,EAAQ,EAAE;QAC3C,IAAI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IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,IAAI,GAAG,IAAI,CAAC;QAC5C,CAAC;IACH,CAAC;IAED;;OAEG;IAEH,OAAO;QACL,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,eAAe,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC;IAC9F,CAAC;0HApCU,mCAAmC;8GAAnC,mCAAmC;;2FAAnC,mCAAmC;kBAH/C,SAAS;mBAAC;oBACT,QAAQ,EAAE,gCAAgC;iBAC3C;;0BAaI,QAAQ;;sBAXV,KAAK;;sBAGL,KAAK;;sBA6BL,YAAY;uBAAC,OAAO","sourcesContent":["import { LocationStrategy } from '@angular/common';\nimport { ElementRef, OnChanges, OnDestroy, OnInit, Directive, HostListener, Input, Optional } from '@angular/core';\nimport { Router, RouterLink } from '@angular/router';\nimport type { AnimationBuilder, RouterDirection } from '@ionic/core/components';\n\nimport { NavController } from '../../providers/nav-controller';\n\n/**\n * Adds support for Ionic routing directions and animations to the base Angular router link directive.\n *\n * When the router link is clicked, the directive will assign the direction and\n * animation so that the routing integration will transition correctly.\n */\n@Directive({\n selector: ':not(a):not(area)[routerLink]',\n})\nexport class RouterLinkDelegateDirective implements OnInit, OnChanges, OnDestroy {\n @Input()\n routerDirection: RouterDirection = 'forward';\n\n @Input()\n routerAnimation?: AnimationBuilder;\n\n constructor(\n private locationStrategy: LocationStrategy,\n private navCtrl: NavController,\n private elementRef: ElementRef,\n private router: Router,\n @Optional() private routerLink?: RouterLink\n ) {}\n\n ngOnInit(): void {\n this.updateTargetUrlAndHref();\n this.updateTabindex();\n\n /**\n * Ionic components like `ion-item` render a native anchor in their shadow DOM,\n * so a modifier click (ctrl/meta/shift/alt) or a non-`_self` target should let\n * the browser handle the navigation natively (new tab, new window, download)\n * instead of navigating in-app.\n *\n * We listen in the capture phase so this runs before Angular's `RouterLink`\n * handler and our own bubble-phase `onClick`. On a native-navigation intent it\n * stops propagation to cancel the in-app navigation, but leaves `preventDefault`\n * alone so the native anchor can still act.\n */\n this.elementRef.nativeElement.addEventListener('click', this.onCaptureClick, { capture: true });\n }\n\n ngOnChanges(): void {\n this.updateTargetUrlAndHref();\n }\n\n ngOnDestroy(): void {\n this.elementRef.nativeElement.removeEventListener('click', this.onCaptureClick, { capture: true });\n }\n\n private onCaptureClick = (ev: Event): void => {\n if (this.opensNatively(ev)) {\n ev.stopImmediatePropagation();\n }\n };\n\n /**\n * True when the browser should handle the click natively instead of routing\n * in-app: a modifier was held (ctrl/meta/shift/alt), or the host targets\n * something other than `_self`. This mirrors the modifier set Angular's own\n * `RouterLink` guards on, so an Ionic `routerLink` behaves like a plain anchor\n * for new-tab, new-window, and download intents.\n */\n private opensNatively(ev: Event): boolean {\n if (ev instanceof MouseEvent && (ev.ctrlKey || ev.metaKey || ev.shiftKey || ev.altKey)) {\n return true;\n }\n\n const target = this.elementRef.nativeElement.target;\n return target != null && target !== '' && target !== '_self';\n }\n\n /**\n * The `tabindex` is set to `0` by default on the host element when\n * the `routerLink` directive is used. This causes issues with Ionic\n * components that wrap an `a` or `button` element, such as `ion-item`.\n * See issue https://github.com/angular/angular/issues/28345\n *\n * This method removes the `tabindex` attribute from the host element\n * to allow the Ionic component to manage the focus state correctly.\n */\n private updateTabindex() {\n // Ionic components that render a native anchor or button element\n const ionicComponents = [\n 'ION-BACK-BUTTON',\n 'ION-BREADCRUMB',\n 'ION-BUTTON',\n 'ION-CARD',\n 'ION-FAB-BUTTON',\n 'ION-ITEM',\n 'ION-ITEM-OPTION',\n 'ION-MENU-BUTTON',\n 'ION-SEGMENT-BUTTON',\n 'ION-TAB-BUTTON',\n ];\n const hostElement = this.elementRef.nativeElement;\n\n if (ionicComponents.includes(hostElement.tagName)) {\n if (hostElement.getAttribute('tabindex') === '0') {\n hostElement.removeAttribute('tabindex');\n }\n }\n }\n\n private updateTargetUrlAndHref() {\n if (this.routerLink?.urlTree) {\n const href = this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));\n this.elementRef.nativeElement.href = href;\n }\n }\n\n /**\n * @internal\n */\n @HostListener('click', ['$event'])\n onClick(ev: UIEvent): void {\n this.navCtrl.setDirection(this.routerDirection, undefined, undefined, this.routerAnimation);\n\n /**\n * This prevents the browser from\n * performing a page reload when pressing\n * an Ionic component with routerLink.\n * The page reload interferes with routing\n * and causes ion-back-button to disappear\n * since the local history is wiped on reload.\n */\n ev.preventDefault();\n }\n}\n\n@Directive({\n selector: 'a[routerLink],area[routerLink]',\n})\nexport class RouterLinkWithHrefDelegateDirective implements OnInit, OnChanges {\n @Input()\n routerDirection: RouterDirection = 'forward';\n\n @Input()\n routerAnimation?: AnimationBuilder;\n\n constructor(\n private locationStrategy: LocationStrategy,\n private navCtrl: NavController,\n private elementRef: ElementRef,\n private router: Router,\n @Optional() private routerLink?: RouterLink\n ) {}\n\n ngOnInit(): void {\n this.updateTargetUrlAndHref();\n }\n\n ngOnChanges(): void {\n this.updateTargetUrlAndHref();\n }\n\n private updateTargetUrlAndHref() {\n if (this.routerLink?.urlTree) {\n const href = this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));\n this.elementRef.nativeElement.href = href;\n }\n }\n\n /**\n * @internal\n */\n @HostListener('click')\n onClick(): void {\n this.navCtrl.setDirection(this.routerDirection, undefined, undefined, this.routerAnimation);\n }\n}\n"]}