@ionic/angular 8.8.20-dev.11787158518.168a2fea → 8.8.20-dev.11789504012.1a675914

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 (646) 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/css/core.css +1 -1
  13. package/css/core.css.map +1 -1
  14. package/css/display.css +1 -1
  15. package/css/display.css.map +1 -1
  16. package/css/flex-utils.css +1 -1
  17. package/css/flex-utils.css.map +1 -1
  18. package/css/float-elements.css.map +1 -1
  19. package/css/global.bundle.css.map +1 -1
  20. package/css/ionic/bundle.ionic.css +1 -0
  21. package/css/ionic/bundle.ionic.css.map +1 -0
  22. package/css/ionic/core.ionic.css +1 -0
  23. package/css/ionic/core.ionic.css.map +1 -0
  24. package/css/ionic/global.bundle.ionic.css +1 -0
  25. package/css/ionic/global.bundle.ionic.css.map +1 -0
  26. package/css/ionic/ionic-swiper.ionic.css +1 -0
  27. package/css/ionic/ionic-swiper.ionic.css.map +1 -0
  28. package/css/ionic/link.ionic.css +1 -0
  29. package/css/ionic/link.ionic.css.map +1 -0
  30. package/css/ionic/structure.ionic.css +1 -0
  31. package/css/ionic/structure.ionic.css.map +1 -0
  32. package/css/ionic/typography.ionic.css +1 -0
  33. package/css/ionic/typography.ionic.css.map +1 -0
  34. package/css/ionic/utils.bundle.ionic.css +1 -0
  35. package/css/ionic/utils.bundle.ionic.css.map +1 -0
  36. package/css/ionic-swiper.css +1 -1
  37. package/css/ionic-swiper.css.map +1 -1
  38. package/css/ionic.bundle.css +1 -1
  39. package/css/ionic.bundle.css.map +1 -1
  40. package/css/normalize.css.map +1 -1
  41. package/css/padding.css.map +1 -1
  42. package/css/palettes/dark.always.css.map +1 -1
  43. package/css/palettes/dark.class.css.map +1 -1
  44. package/css/palettes/dark.system.css.map +1 -1
  45. package/css/palettes/high-contrast-dark.always.css.map +1 -1
  46. package/css/palettes/high-contrast-dark.class.css.map +1 -1
  47. package/css/palettes/high-contrast-dark.system.css.map +1 -1
  48. package/css/palettes/high-contrast.always.css.map +1 -1
  49. package/css/palettes/high-contrast.class.css.map +1 -1
  50. package/css/palettes/high-contrast.system.css.map +1 -1
  51. package/css/structure.css.map +1 -1
  52. package/css/text-alignment.css.map +1 -1
  53. package/css/text-transformation.css.map +1 -1
  54. package/css/typography.css.map +1 -1
  55. package/css/utils.bundle.css +1 -1
  56. package/css/utils.bundle.css.map +1 -1
  57. package/{dist/lazy/directives → directives}/control-value-accessors/boolean-value-accessor.d.ts +1 -1
  58. package/{dist/lazy/directives → directives}/control-value-accessors/numeric-value-accessor.d.ts +1 -1
  59. package/{dist/lazy/directives → directives}/control-value-accessors/select-value-accessor.d.ts +1 -1
  60. package/{dist/lazy/directives → directives}/control-value-accessors/text-value-accessor.d.ts +1 -1
  61. package/directives/proxies-list.d.ts +2 -0
  62. package/{dist/lazy/directives → directives}/proxies.d.ts +269 -340
  63. package/esm2022/app-initialize.mjs +29 -0
  64. package/esm2022/common/directives/control-value-accessors/index.mjs +2 -0
  65. package/esm2022/common/directives/control-value-accessors/value-accessor.mjs +153 -0
  66. package/esm2022/common/directives/navigation/back-button.mjs +61 -0
  67. package/esm2022/common/directives/navigation/nav-params.mjs +47 -0
  68. package/esm2022/common/directives/navigation/nav.mjs +49 -0
  69. package/esm2022/common/directives/navigation/router-link-delegate.mjs +190 -0
  70. package/esm2022/common/directives/navigation/router-outlet.mjs +480 -0
  71. package/esm2022/common/directives/navigation/stack-controller.mjs +283 -0
  72. package/esm2022/common/directives/navigation/stack-utils.mjs +73 -0
  73. package/esm2022/common/directives/navigation/tabs.mjs +279 -0
  74. package/esm2022/common/index.mjs +20 -0
  75. package/esm2022/common/ionic-angular-common.mjs +5 -0
  76. package/esm2022/common/overlays/modal.mjs +103 -0
  77. package/esm2022/common/overlays/popover.mjs +91 -0
  78. package/esm2022/common/providers/angular-delegate.mjs +210 -0
  79. package/esm2022/common/providers/config.mjs +45 -0
  80. package/esm2022/common/providers/dom-controller.mjs +45 -0
  81. package/esm2022/common/providers/menu-controller.mjs +114 -0
  82. package/esm2022/common/providers/nav-controller.mjs +235 -0
  83. package/esm2022/common/providers/platform.mjs +258 -0
  84. package/esm2022/common/types/interfaces.mjs +2 -0
  85. package/esm2022/common/types/ionic-lifecycle-hooks.mjs +5 -0
  86. package/esm2022/common/types/overlay-options.mjs +2 -0
  87. package/esm2022/common/utils/overlay.mjs +26 -0
  88. package/esm2022/common/utils/proxy.mjs +47 -0
  89. package/esm2022/common/utils/routing.mjs +55 -0
  90. package/esm2022/common/utils/util.mjs +10 -0
  91. package/esm2022/directives/angular-component-lib/utils.mjs +59 -0
  92. package/esm2022/directives/control-value-accessors/boolean-value-accessor.mjs +42 -0
  93. package/esm2022/directives/control-value-accessors/index.mjs +5 -0
  94. package/esm2022/directives/control-value-accessors/numeric-value-accessor.mjs +50 -0
  95. package/esm2022/directives/control-value-accessors/select-value-accessor.mjs +39 -0
  96. package/esm2022/directives/control-value-accessors/text-value-accessor.mjs +38 -0
  97. package/esm2022/directives/navigation/ion-back-button.mjs +24 -0
  98. package/esm2022/directives/navigation/ion-nav.mjs +21 -0
  99. package/esm2022/directives/navigation/ion-router-outlet.mjs +52 -0
  100. package/esm2022/directives/navigation/ion-tabs.mjs +59 -0
  101. package/esm2022/directives/navigation/router-link-delegate.mjs +32 -0
  102. package/esm2022/directives/overlays/modal.mjs +22 -0
  103. package/esm2022/directives/overlays/popover.mjs +18 -0
  104. package/esm2022/directives/proxies-list.mjs +93 -0
  105. package/esm2022/directives/proxies.mjs +2465 -0
  106. package/esm2022/directives/validators/index.mjs +3 -0
  107. package/esm2022/directives/validators/max-validator.mjs +27 -0
  108. package/esm2022/directives/validators/min-validator.mjs +27 -0
  109. package/esm2022/index.mjs +32 -0
  110. package/esm2022/ionic-angular.mjs +5 -0
  111. package/esm2022/ionic-module.mjs +111 -0
  112. package/esm2022/providers/action-sheet-controller.mjs +19 -0
  113. package/esm2022/providers/alert-controller.mjs +19 -0
  114. package/esm2022/providers/animation-controller.mjs +38 -0
  115. package/esm2022/providers/gesture-controller.mjs +33 -0
  116. package/esm2022/providers/loading-controller.mjs +19 -0
  117. package/esm2022/providers/menu-controller.mjs +19 -0
  118. package/esm2022/providers/modal-controller.mjs +26 -0
  119. package/esm2022/providers/picker-controller.mjs +22 -0
  120. package/esm2022/providers/popover-controller.mjs +19 -0
  121. package/esm2022/providers/toast-controller.mjs +19 -0
  122. package/esm2022/standalone/directives/angular-component-lib/utils.mjs +59 -0
  123. package/esm2022/standalone/directives/checkbox.mjs +76 -0
  124. package/esm2022/standalone/directives/datetime.mjs +95 -0
  125. package/esm2022/standalone/directives/icon.mjs +35 -0
  126. package/esm2022/standalone/directives/index.mjs +13 -0
  127. package/esm2022/standalone/directives/input-otp.mjs +90 -0
  128. package/esm2022/standalone/directives/input.mjs +113 -0
  129. package/esm2022/standalone/directives/proxies.mjs +2356 -0
  130. package/esm2022/standalone/directives/radio-group.mjs +60 -0
  131. package/esm2022/standalone/directives/range.mjs +78 -0
  132. package/esm2022/standalone/directives/searchbar.mjs +82 -0
  133. package/esm2022/standalone/directives/segment.mjs +60 -0
  134. package/esm2022/standalone/directives/select.mjs +84 -0
  135. package/esm2022/standalone/directives/textarea.mjs +91 -0
  136. package/esm2022/standalone/directives/toggle.mjs +76 -0
  137. package/esm2022/standalone/index.mjs +25 -0
  138. package/esm2022/standalone/ionic-angular-standalone.mjs +5 -0
  139. package/esm2022/standalone/navigation/back-button.mjs +32 -0
  140. package/esm2022/standalone/navigation/nav.mjs +28 -0
  141. package/esm2022/standalone/navigation/router-link-delegate.mjs +28 -0
  142. package/esm2022/standalone/navigation/router-outlet.mjs +60 -0
  143. package/esm2022/standalone/navigation/tabs.mjs +58 -0
  144. package/esm2022/standalone/overlays/modal.mjs +32 -0
  145. package/esm2022/standalone/overlays/popover.mjs +28 -0
  146. package/esm2022/standalone/providers/action-sheet-controller.mjs +21 -0
  147. package/esm2022/standalone/providers/alert-controller.mjs +21 -0
  148. package/esm2022/standalone/providers/animation-controller.mjs +38 -0
  149. package/esm2022/standalone/providers/gesture-controller.mjs +33 -0
  150. package/esm2022/standalone/providers/ionic-angular.mjs +38 -0
  151. package/esm2022/standalone/providers/loading-controller.mjs +21 -0
  152. package/esm2022/standalone/providers/menu-controller.mjs +19 -0
  153. package/esm2022/standalone/providers/modal-controller.mjs +28 -0
  154. package/esm2022/standalone/providers/picker-controller.mjs +24 -0
  155. package/esm2022/standalone/providers/popover-controller.mjs +21 -0
  156. package/esm2022/standalone/providers/toast-controller.mjs +21 -0
  157. package/fesm2022/ionic-angular-common.mjs +2791 -0
  158. package/fesm2022/ionic-angular-common.mjs.map +1 -0
  159. package/fesm2022/ionic-angular-standalone.mjs +3655 -0
  160. package/fesm2022/ionic-angular-standalone.mjs.map +1 -0
  161. package/fesm2022/ionic-angular.mjs +3231 -0
  162. package/fesm2022/ionic-angular.mjs.map +1 -0
  163. package/{dist/lazy/index.d.ts → index.d.ts} +2 -1
  164. package/ionic-module.d.ts +28 -0
  165. package/package.json +30 -172
  166. package/providers/picker-controller.d.ts +11 -0
  167. package/{dist/schematics → schematics}/add/index.js +6 -6
  168. package/schematics/utils/ast.js +32 -0
  169. package/{dist/schematics → schematics}/utils/config.js +11 -10
  170. package/{dist/schematics → schematics}/utils/package.js +4 -6
  171. package/standalone/directives/proxies.d.ts +1062 -0
  172. package/{dist/standalone → standalone}/index.d.ts +2 -1
  173. package/standalone/providers/picker-controller.d.ts +11 -0
  174. package/dist/common/directives/control-value-accessors/index.js +0 -2
  175. package/dist/common/directives/control-value-accessors/index.js.map +0 -1
  176. package/dist/common/directives/control-value-accessors/value-accessor.js +0 -152
  177. package/dist/common/directives/control-value-accessors/value-accessor.js.map +0 -1
  178. package/dist/common/directives/navigation/back-button.js +0 -61
  179. package/dist/common/directives/navigation/back-button.js.map +0 -1
  180. package/dist/common/directives/navigation/nav-params.js +0 -47
  181. package/dist/common/directives/navigation/nav-params.js.map +0 -1
  182. package/dist/common/directives/navigation/nav.js +0 -49
  183. package/dist/common/directives/navigation/nav.js.map +0 -1
  184. package/dist/common/directives/navigation/router-link-delegate.js +0 -188
  185. package/dist/common/directives/navigation/router-link-delegate.js.map +0 -1
  186. package/dist/common/directives/navigation/router-outlet.js +0 -476
  187. package/dist/common/directives/navigation/router-outlet.js.map +0 -1
  188. package/dist/common/directives/navigation/stack-controller.js +0 -282
  189. package/dist/common/directives/navigation/stack-controller.js.map +0 -1
  190. package/dist/common/directives/navigation/stack-utils.js +0 -73
  191. package/dist/common/directives/navigation/stack-utils.js.map +0 -1
  192. package/dist/common/directives/navigation/tabs.js +0 -290
  193. package/dist/common/directives/navigation/tabs.js.map +0 -1
  194. package/dist/common/index.js +0 -20
  195. package/dist/common/index.js.map +0 -1
  196. package/dist/common/overlays/modal.js +0 -96
  197. package/dist/common/overlays/modal.js.map +0 -1
  198. package/dist/common/overlays/popover.js +0 -84
  199. package/dist/common/overlays/popover.js.map +0 -1
  200. package/dist/common/providers/angular-delegate.js +0 -229
  201. package/dist/common/providers/angular-delegate.js.map +0 -1
  202. package/dist/common/providers/config.js +0 -44
  203. package/dist/common/providers/config.js.map +0 -1
  204. package/dist/common/providers/dom-controller.js +0 -44
  205. package/dist/common/providers/dom-controller.js.map +0 -1
  206. package/dist/common/providers/menu-controller.js +0 -114
  207. package/dist/common/providers/menu-controller.js.map +0 -1
  208. package/dist/common/providers/nav-controller.js +0 -232
  209. package/dist/common/providers/nav-controller.js.map +0 -1
  210. package/dist/common/providers/platform.js +0 -256
  211. package/dist/common/providers/platform.js.map +0 -1
  212. package/dist/common/types/interfaces.js +0 -2
  213. package/dist/common/types/interfaces.js.map +0 -1
  214. package/dist/common/types/ionic-lifecycle-hooks.js +0 -5
  215. package/dist/common/types/ionic-lifecycle-hooks.js.map +0 -1
  216. package/dist/common/types/overlay-options.js +0 -2
  217. package/dist/common/types/overlay-options.js.map +0 -1
  218. package/dist/common/utils/overlay.js +0 -26
  219. package/dist/common/utils/overlay.js.map +0 -1
  220. package/dist/common/utils/proxy.js +0 -47
  221. package/dist/common/utils/proxy.js.map +0 -1
  222. package/dist/common/utils/routing.js +0 -55
  223. package/dist/common/utils/routing.js.map +0 -1
  224. package/dist/common/utils/util.js +0 -10
  225. package/dist/common/utils/util.js.map +0 -1
  226. package/dist/lazy/app-initialize.js +0 -29
  227. package/dist/lazy/app-initialize.js.map +0 -1
  228. package/dist/lazy/directives/angular-component-lib/utils.js +0 -59
  229. package/dist/lazy/directives/angular-component-lib/utils.js.map +0 -1
  230. package/dist/lazy/directives/control-value-accessors/boolean-value-accessor.js +0 -47
  231. package/dist/lazy/directives/control-value-accessors/boolean-value-accessor.js.map +0 -1
  232. package/dist/lazy/directives/control-value-accessors/index.js +0 -5
  233. package/dist/lazy/directives/control-value-accessors/index.js.map +0 -1
  234. package/dist/lazy/directives/control-value-accessors/numeric-value-accessor.js +0 -55
  235. package/dist/lazy/directives/control-value-accessors/numeric-value-accessor.js.map +0 -1
  236. package/dist/lazy/directives/control-value-accessors/select-value-accessor.js +0 -44
  237. package/dist/lazy/directives/control-value-accessors/select-value-accessor.js.map +0 -1
  238. package/dist/lazy/directives/control-value-accessors/text-value-accessor.js +0 -43
  239. package/dist/lazy/directives/control-value-accessors/text-value-accessor.js.map +0 -1
  240. package/dist/lazy/directives/navigation/ion-back-button.js +0 -24
  241. package/dist/lazy/directives/navigation/ion-back-button.js.map +0 -1
  242. package/dist/lazy/directives/navigation/ion-nav.js +0 -21
  243. package/dist/lazy/directives/navigation/ion-nav.js.map +0 -1
  244. package/dist/lazy/directives/navigation/ion-router-outlet.js +0 -52
  245. package/dist/lazy/directives/navigation/ion-router-outlet.js.map +0 -1
  246. package/dist/lazy/directives/navigation/ion-tabs.js +0 -58
  247. package/dist/lazy/directives/navigation/ion-tabs.js.map +0 -1
  248. package/dist/lazy/directives/navigation/router-link-delegate.js +0 -32
  249. package/dist/lazy/directives/navigation/router-link-delegate.js.map +0 -1
  250. package/dist/lazy/directives/overlays/modal.js +0 -22
  251. package/dist/lazy/directives/overlays/modal.js.map +0 -1
  252. package/dist/lazy/directives/overlays/popover.js +0 -18
  253. package/dist/lazy/directives/overlays/popover.js.map +0 -1
  254. package/dist/lazy/directives/proxies-list.d.ts +0 -2
  255. package/dist/lazy/directives/proxies-list.js +0 -89
  256. package/dist/lazy/directives/proxies-list.js.map +0 -1
  257. package/dist/lazy/directives/proxies.js +0 -2759
  258. package/dist/lazy/directives/proxies.js.map +0 -1
  259. package/dist/lazy/directives/validators/index.js +0 -3
  260. package/dist/lazy/directives/validators/index.js.map +0 -1
  261. package/dist/lazy/directives/validators/max-validator.js +0 -26
  262. package/dist/lazy/directives/validators/max-validator.js.map +0 -1
  263. package/dist/lazy/directives/validators/min-validator.js +0 -26
  264. package/dist/lazy/directives/validators/min-validator.js.map +0 -1
  265. package/dist/lazy/index.js +0 -34
  266. package/dist/lazy/index.js.map +0 -1
  267. package/dist/lazy/ionic-module.d.ts +0 -38
  268. package/dist/lazy/ionic-module.js +0 -121
  269. package/dist/lazy/ionic-module.js.map +0 -1
  270. package/dist/lazy/providers/action-sheet-controller.js +0 -18
  271. package/dist/lazy/providers/action-sheet-controller.js.map +0 -1
  272. package/dist/lazy/providers/alert-controller.js +0 -18
  273. package/dist/lazy/providers/alert-controller.js.map +0 -1
  274. package/dist/lazy/providers/animation-controller.js +0 -37
  275. package/dist/lazy/providers/animation-controller.js.map +0 -1
  276. package/dist/lazy/providers/gesture-controller.js +0 -32
  277. package/dist/lazy/providers/gesture-controller.js.map +0 -1
  278. package/dist/lazy/providers/loading-controller.js +0 -18
  279. package/dist/lazy/providers/loading-controller.js.map +0 -1
  280. package/dist/lazy/providers/menu-controller.js +0 -18
  281. package/dist/lazy/providers/menu-controller.js.map +0 -1
  282. package/dist/lazy/providers/modal-controller.js +0 -25
  283. package/dist/lazy/providers/modal-controller.js.map +0 -1
  284. package/dist/lazy/providers/popover-controller.js +0 -19
  285. package/dist/lazy/providers/popover-controller.js.map +0 -1
  286. package/dist/lazy/providers/toast-controller.js +0 -18
  287. package/dist/lazy/providers/toast-controller.js.map +0 -1
  288. package/dist/schematics/utils/ast.js +0 -64
  289. package/dist/standalone/directives/angular-component-lib/utils.js +0 -59
  290. package/dist/standalone/directives/angular-component-lib/utils.js.map +0 -1
  291. package/dist/standalone/directives/checkbox.js +0 -75
  292. package/dist/standalone/directives/checkbox.js.map +0 -1
  293. package/dist/standalone/directives/datetime.js +0 -93
  294. package/dist/standalone/directives/datetime.js.map +0 -1
  295. package/dist/standalone/directives/icon.js +0 -35
  296. package/dist/standalone/directives/icon.js.map +0 -1
  297. package/dist/standalone/directives/index.js +0 -13
  298. package/dist/standalone/directives/index.js.map +0 -1
  299. package/dist/standalone/directives/input-otp.js +0 -89
  300. package/dist/standalone/directives/input-otp.js.map +0 -1
  301. package/dist/standalone/directives/input.js +0 -112
  302. package/dist/standalone/directives/input.js.map +0 -1
  303. package/dist/standalone/directives/ion-accordion-group.d.ts +0 -21
  304. package/dist/standalone/directives/ion-accordion-group.js +0 -40
  305. package/dist/standalone/directives/ion-accordion-group.js.map +0 -1
  306. package/dist/standalone/directives/ion-accordion.d.ts +0 -12
  307. package/dist/standalone/directives/ion-accordion.js +0 -36
  308. package/dist/standalone/directives/ion-accordion.js.map +0 -1
  309. package/dist/standalone/directives/ion-action-sheet.d.ts +0 -58
  310. package/dist/standalone/directives/ion-action-sheet.js +0 -62
  311. package/dist/standalone/directives/ion-action-sheet.js.map +0 -1
  312. package/dist/standalone/directives/ion-alert.d.ts +0 -58
  313. package/dist/standalone/directives/ion-alert.js +0 -62
  314. package/dist/standalone/directives/ion-alert.js.map +0 -1
  315. package/dist/standalone/directives/ion-app.d.ts +0 -12
  316. package/dist/standalone/directives/ion-app.js +0 -36
  317. package/dist/standalone/directives/ion-app.js.map +0 -1
  318. package/dist/standalone/directives/ion-avatar.d.ts +0 -12
  319. package/dist/standalone/directives/ion-avatar.js +0 -35
  320. package/dist/standalone/directives/ion-avatar.js.map +0 -1
  321. package/dist/standalone/directives/ion-backdrop.d.ts +0 -18
  322. package/dist/standalone/directives/ion-backdrop.js +0 -40
  323. package/dist/standalone/directives/ion-backdrop.js.map +0 -1
  324. package/dist/standalone/directives/ion-badge.d.ts +0 -12
  325. package/dist/standalone/directives/ion-badge.js +0 -36
  326. package/dist/standalone/directives/ion-badge.js.map +0 -1
  327. package/dist/standalone/directives/ion-breadcrumb.d.ts +0 -23
  328. package/dist/standalone/directives/ion-breadcrumb.js +0 -43
  329. package/dist/standalone/directives/ion-breadcrumb.js.map +0 -1
  330. package/dist/standalone/directives/ion-breadcrumbs.d.ts +0 -19
  331. package/dist/standalone/directives/ion-breadcrumbs.js +0 -40
  332. package/dist/standalone/directives/ion-breadcrumbs.js.map +0 -1
  333. package/dist/standalone/directives/ion-button.d.ts +0 -23
  334. package/dist/standalone/directives/ion-button.js +0 -43
  335. package/dist/standalone/directives/ion-button.js.map +0 -1
  336. package/dist/standalone/directives/ion-buttons.d.ts +0 -12
  337. package/dist/standalone/directives/ion-buttons.js +0 -36
  338. package/dist/standalone/directives/ion-buttons.js.map +0 -1
  339. package/dist/standalone/directives/ion-card-content.d.ts +0 -12
  340. package/dist/standalone/directives/ion-card-content.js +0 -36
  341. package/dist/standalone/directives/ion-card-content.js.map +0 -1
  342. package/dist/standalone/directives/ion-card-header.d.ts +0 -12
  343. package/dist/standalone/directives/ion-card-header.js +0 -36
  344. package/dist/standalone/directives/ion-card-header.js.map +0 -1
  345. package/dist/standalone/directives/ion-card-subtitle.d.ts +0 -12
  346. package/dist/standalone/directives/ion-card-subtitle.js +0 -36
  347. package/dist/standalone/directives/ion-card-subtitle.js.map +0 -1
  348. package/dist/standalone/directives/ion-card-title.d.ts +0 -12
  349. package/dist/standalone/directives/ion-card-title.js +0 -36
  350. package/dist/standalone/directives/ion-card-title.js.map +0 -1
  351. package/dist/standalone/directives/ion-card.d.ts +0 -12
  352. package/dist/standalone/directives/ion-card.js +0 -36
  353. package/dist/standalone/directives/ion-card.js.map +0 -1
  354. package/dist/standalone/directives/ion-chip.d.ts +0 -12
  355. package/dist/standalone/directives/ion-chip.js +0 -36
  356. package/dist/standalone/directives/ion-chip.js.map +0 -1
  357. package/dist/standalone/directives/ion-col.d.ts +0 -12
  358. package/dist/standalone/directives/ion-col.js +0 -36
  359. package/dist/standalone/directives/ion-col.js.map +0 -1
  360. package/dist/standalone/directives/ion-content.d.ts +0 -33
  361. package/dist/standalone/directives/ion-content.js +0 -47
  362. package/dist/standalone/directives/ion-content.js.map +0 -1
  363. package/dist/standalone/directives/ion-datetime-button.d.ts +0 -12
  364. package/dist/standalone/directives/ion-datetime-button.js +0 -36
  365. package/dist/standalone/directives/ion-datetime-button.js.map +0 -1
  366. package/dist/standalone/directives/ion-fab-button.d.ts +0 -23
  367. package/dist/standalone/directives/ion-fab-button.js +0 -43
  368. package/dist/standalone/directives/ion-fab-button.js.map +0 -1
  369. package/dist/standalone/directives/ion-fab-list.d.ts +0 -12
  370. package/dist/standalone/directives/ion-fab-list.js +0 -36
  371. package/dist/standalone/directives/ion-fab-list.js.map +0 -1
  372. package/dist/standalone/directives/ion-fab.d.ts +0 -12
  373. package/dist/standalone/directives/ion-fab.js +0 -37
  374. package/dist/standalone/directives/ion-fab.js.map +0 -1
  375. package/dist/standalone/directives/ion-footer.d.ts +0 -12
  376. package/dist/standalone/directives/ion-footer.js +0 -36
  377. package/dist/standalone/directives/ion-footer.js.map +0 -1
  378. package/dist/standalone/directives/ion-grid.d.ts +0 -12
  379. package/dist/standalone/directives/ion-grid.js +0 -36
  380. package/dist/standalone/directives/ion-grid.js.map +0 -1
  381. package/dist/standalone/directives/ion-header.d.ts +0 -12
  382. package/dist/standalone/directives/ion-header.js +0 -36
  383. package/dist/standalone/directives/ion-header.js.map +0 -1
  384. package/dist/standalone/directives/ion-img.d.ts +0 -28
  385. package/dist/standalone/directives/ion-img.js +0 -46
  386. package/dist/standalone/directives/ion-img.js.map +0 -1
  387. package/dist/standalone/directives/ion-infinite-scroll-content.d.ts +0 -12
  388. package/dist/standalone/directives/ion-infinite-scroll-content.js +0 -36
  389. package/dist/standalone/directives/ion-infinite-scroll-content.js.map +0 -1
  390. package/dist/standalone/directives/ion-infinite-scroll.d.ts +0 -21
  391. package/dist/standalone/directives/ion-infinite-scroll.js +0 -41
  392. package/dist/standalone/directives/ion-infinite-scroll.js.map +0 -1
  393. package/dist/standalone/directives/ion-input-password-toggle.d.ts +0 -12
  394. package/dist/standalone/directives/ion-input-password-toggle.js +0 -36
  395. package/dist/standalone/directives/ion-input-password-toggle.js.map +0 -1
  396. package/dist/standalone/directives/ion-item-divider.d.ts +0 -12
  397. package/dist/standalone/directives/ion-item-divider.js +0 -36
  398. package/dist/standalone/directives/ion-item-divider.js.map +0 -1
  399. package/dist/standalone/directives/ion-item-group.d.ts +0 -12
  400. package/dist/standalone/directives/ion-item-group.js +0 -35
  401. package/dist/standalone/directives/ion-item-group.js.map +0 -1
  402. package/dist/standalone/directives/ion-item-option.d.ts +0 -12
  403. package/dist/standalone/directives/ion-item-option.js +0 -36
  404. package/dist/standalone/directives/ion-item-option.js.map +0 -1
  405. package/dist/standalone/directives/ion-item-options.d.ts +0 -18
  406. package/dist/standalone/directives/ion-item-options.js +0 -40
  407. package/dist/standalone/directives/ion-item-options.js.map +0 -1
  408. package/dist/standalone/directives/ion-item-sliding.d.ts +0 -18
  409. package/dist/standalone/directives/ion-item-sliding.js +0 -41
  410. package/dist/standalone/directives/ion-item-sliding.js.map +0 -1
  411. package/dist/standalone/directives/ion-item.d.ts +0 -12
  412. package/dist/standalone/directives/ion-item.js +0 -36
  413. package/dist/standalone/directives/ion-item.js.map +0 -1
  414. package/dist/standalone/directives/ion-label.d.ts +0 -12
  415. package/dist/standalone/directives/ion-label.js +0 -36
  416. package/dist/standalone/directives/ion-label.js.map +0 -1
  417. package/dist/standalone/directives/ion-list-header.d.ts +0 -12
  418. package/dist/standalone/directives/ion-list-header.js +0 -36
  419. package/dist/standalone/directives/ion-list-header.js.map +0 -1
  420. package/dist/standalone/directives/ion-list.d.ts +0 -12
  421. package/dist/standalone/directives/ion-list.js +0 -37
  422. package/dist/standalone/directives/ion-list.js.map +0 -1
  423. package/dist/standalone/directives/ion-loading.d.ts +0 -58
  424. package/dist/standalone/directives/ion-loading.js +0 -62
  425. package/dist/standalone/directives/ion-loading.js.map +0 -1
  426. package/dist/standalone/directives/ion-menu-button.d.ts +0 -12
  427. package/dist/standalone/directives/ion-menu-button.js +0 -36
  428. package/dist/standalone/directives/ion-menu-button.js.map +0 -1
  429. package/dist/standalone/directives/ion-menu-toggle.d.ts +0 -12
  430. package/dist/standalone/directives/ion-menu-toggle.js +0 -36
  431. package/dist/standalone/directives/ion-menu-toggle.js.map +0 -1
  432. package/dist/standalone/directives/ion-menu.d.ts +0 -34
  433. package/dist/standalone/directives/ion-menu.js +0 -50
  434. package/dist/standalone/directives/ion-menu.js.map +0 -1
  435. package/dist/standalone/directives/ion-nav-link.d.ts +0 -12
  436. package/dist/standalone/directives/ion-nav-link.js +0 -36
  437. package/dist/standalone/directives/ion-nav-link.js.map +0 -1
  438. package/dist/standalone/directives/ion-note.d.ts +0 -12
  439. package/dist/standalone/directives/ion-note.js +0 -36
  440. package/dist/standalone/directives/ion-note.js.map +0 -1
  441. package/dist/standalone/directives/ion-picker-column-option.d.ts +0 -12
  442. package/dist/standalone/directives/ion-picker-column-option.js +0 -36
  443. package/dist/standalone/directives/ion-picker-column-option.js.map +0 -1
  444. package/dist/standalone/directives/ion-picker-column.d.ts +0 -21
  445. package/dist/standalone/directives/ion-picker-column.js +0 -41
  446. package/dist/standalone/directives/ion-picker-column.js.map +0 -1
  447. package/dist/standalone/directives/ion-picker.d.ts +0 -12
  448. package/dist/standalone/directives/ion-picker.js +0 -36
  449. package/dist/standalone/directives/ion-picker.js.map +0 -1
  450. package/dist/standalone/directives/ion-progress-bar.d.ts +0 -12
  451. package/dist/standalone/directives/ion-progress-bar.js +0 -36
  452. package/dist/standalone/directives/ion-progress-bar.js.map +0 -1
  453. package/dist/standalone/directives/ion-radio.d.ts +0 -23
  454. package/dist/standalone/directives/ion-radio.js +0 -43
  455. package/dist/standalone/directives/ion-radio.js.map +0 -1
  456. package/dist/standalone/directives/ion-refresher-content.d.ts +0 -12
  457. package/dist/standalone/directives/ion-refresher-content.js +0 -36
  458. package/dist/standalone/directives/ion-refresher-content.js.map +0 -1
  459. package/dist/standalone/directives/ion-refresher.d.ts +0 -45
  460. package/dist/standalone/directives/ion-refresher.js +0 -53
  461. package/dist/standalone/directives/ion-refresher.js.map +0 -1
  462. package/dist/standalone/directives/ion-reorder-group.d.ts +0 -44
  463. package/dist/standalone/directives/ion-reorder-group.js +0 -50
  464. package/dist/standalone/directives/ion-reorder-group.js.map +0 -1
  465. package/dist/standalone/directives/ion-reorder.d.ts +0 -12
  466. package/dist/standalone/directives/ion-reorder.js +0 -35
  467. package/dist/standalone/directives/ion-reorder.js.map +0 -1
  468. package/dist/standalone/directives/ion-ripple-effect.d.ts +0 -12
  469. package/dist/standalone/directives/ion-ripple-effect.js +0 -37
  470. package/dist/standalone/directives/ion-ripple-effect.js.map +0 -1
  471. package/dist/standalone/directives/ion-row.d.ts +0 -12
  472. package/dist/standalone/directives/ion-row.js +0 -35
  473. package/dist/standalone/directives/ion-row.js.map +0 -1
  474. package/dist/standalone/directives/ion-segment-button.d.ts +0 -12
  475. package/dist/standalone/directives/ion-segment-button.js +0 -36
  476. package/dist/standalone/directives/ion-segment-button.js.map +0 -1
  477. package/dist/standalone/directives/ion-segment-content.d.ts +0 -12
  478. package/dist/standalone/directives/ion-segment-content.js +0 -35
  479. package/dist/standalone/directives/ion-segment-content.js.map +0 -1
  480. package/dist/standalone/directives/ion-segment-view.d.ts +0 -19
  481. package/dist/standalone/directives/ion-segment-view.js +0 -40
  482. package/dist/standalone/directives/ion-segment-view.js.map +0 -1
  483. package/dist/standalone/directives/ion-select-modal.d.ts +0 -12
  484. package/dist/standalone/directives/ion-select-modal.js +0 -36
  485. package/dist/standalone/directives/ion-select-modal.js.map +0 -1
  486. package/dist/standalone/directives/ion-select-option.d.ts +0 -12
  487. package/dist/standalone/directives/ion-select-option.js +0 -36
  488. package/dist/standalone/directives/ion-select-option.js.map +0 -1
  489. package/dist/standalone/directives/ion-skeleton-text.d.ts +0 -12
  490. package/dist/standalone/directives/ion-skeleton-text.js +0 -36
  491. package/dist/standalone/directives/ion-skeleton-text.js.map +0 -1
  492. package/dist/standalone/directives/ion-spinner.d.ts +0 -12
  493. package/dist/standalone/directives/ion-spinner.js +0 -36
  494. package/dist/standalone/directives/ion-spinner.js.map +0 -1
  495. package/dist/standalone/directives/ion-split-pane.d.ts +0 -22
  496. package/dist/standalone/directives/ion-split-pane.js +0 -40
  497. package/dist/standalone/directives/ion-split-pane.js.map +0 -1
  498. package/dist/standalone/directives/ion-tab-bar.d.ts +0 -12
  499. package/dist/standalone/directives/ion-tab-bar.js +0 -36
  500. package/dist/standalone/directives/ion-tab-bar.js.map +0 -1
  501. package/dist/standalone/directives/ion-tab-button.d.ts +0 -12
  502. package/dist/standalone/directives/ion-tab-button.js +0 -36
  503. package/dist/standalone/directives/ion-tab-button.js.map +0 -1
  504. package/dist/standalone/directives/ion-tab.d.ts +0 -12
  505. package/dist/standalone/directives/ion-tab.js +0 -37
  506. package/dist/standalone/directives/ion-tab.js.map +0 -1
  507. package/dist/standalone/directives/ion-text.d.ts +0 -12
  508. package/dist/standalone/directives/ion-text.js +0 -36
  509. package/dist/standalone/directives/ion-text.js.map +0 -1
  510. package/dist/standalone/directives/ion-thumbnail.d.ts +0 -12
  511. package/dist/standalone/directives/ion-thumbnail.js +0 -35
  512. package/dist/standalone/directives/ion-thumbnail.js.map +0 -1
  513. package/dist/standalone/directives/ion-title.d.ts +0 -12
  514. package/dist/standalone/directives/ion-title.js +0 -36
  515. package/dist/standalone/directives/ion-title.js.map +0 -1
  516. package/dist/standalone/directives/ion-toast.d.ts +0 -58
  517. package/dist/standalone/directives/ion-toast.js +0 -62
  518. package/dist/standalone/directives/ion-toast.js.map +0 -1
  519. package/dist/standalone/directives/ion-toolbar.d.ts +0 -12
  520. package/dist/standalone/directives/ion-toolbar.js +0 -36
  521. package/dist/standalone/directives/ion-toolbar.js.map +0 -1
  522. package/dist/standalone/directives/proxies.d.ts +0 -77
  523. package/dist/standalone/directives/proxies.js +0 -79
  524. package/dist/standalone/directives/proxies.js.map +0 -1
  525. package/dist/standalone/directives/radio-group.js +0 -59
  526. package/dist/standalone/directives/radio-group.js.map +0 -1
  527. package/dist/standalone/directives/range.js +0 -77
  528. package/dist/standalone/directives/range.js.map +0 -1
  529. package/dist/standalone/directives/searchbar.js +0 -81
  530. package/dist/standalone/directives/searchbar.js.map +0 -1
  531. package/dist/standalone/directives/segment.js +0 -59
  532. package/dist/standalone/directives/segment.js.map +0 -1
  533. package/dist/standalone/directives/select.js +0 -83
  534. package/dist/standalone/directives/select.js.map +0 -1
  535. package/dist/standalone/directives/textarea.js +0 -90
  536. package/dist/standalone/directives/textarea.js.map +0 -1
  537. package/dist/standalone/directives/toggle.js +0 -75
  538. package/dist/standalone/directives/toggle.js.map +0 -1
  539. package/dist/standalone/index.js +0 -24
  540. package/dist/standalone/index.js.map +0 -1
  541. package/dist/standalone/navigation/back-button.js +0 -32
  542. package/dist/standalone/navigation/back-button.js.map +0 -1
  543. package/dist/standalone/navigation/nav.js +0 -28
  544. package/dist/standalone/navigation/nav.js.map +0 -1
  545. package/dist/standalone/navigation/router-link-delegate.js +0 -26
  546. package/dist/standalone/navigation/router-link-delegate.js.map +0 -1
  547. package/dist/standalone/navigation/router-outlet.js +0 -60
  548. package/dist/standalone/navigation/router-outlet.js.map +0 -1
  549. package/dist/standalone/navigation/tabs.js +0 -57
  550. package/dist/standalone/navigation/tabs.js.map +0 -1
  551. package/dist/standalone/overlays/modal.js +0 -32
  552. package/dist/standalone/overlays/modal.js.map +0 -1
  553. package/dist/standalone/overlays/popover.js +0 -28
  554. package/dist/standalone/overlays/popover.js.map +0 -1
  555. package/dist/standalone/providers/action-sheet-controller.js +0 -20
  556. package/dist/standalone/providers/action-sheet-controller.js.map +0 -1
  557. package/dist/standalone/providers/alert-controller.js +0 -20
  558. package/dist/standalone/providers/alert-controller.js.map +0 -1
  559. package/dist/standalone/providers/animation-controller.js +0 -37
  560. package/dist/standalone/providers/animation-controller.js.map +0 -1
  561. package/dist/standalone/providers/gesture-controller.js +0 -32
  562. package/dist/standalone/providers/gesture-controller.js.map +0 -1
  563. package/dist/standalone/providers/ionic-angular.js +0 -38
  564. package/dist/standalone/providers/ionic-angular.js.map +0 -1
  565. package/dist/standalone/providers/loading-controller.js +0 -20
  566. package/dist/standalone/providers/loading-controller.js.map +0 -1
  567. package/dist/standalone/providers/menu-controller.js +0 -18
  568. package/dist/standalone/providers/menu-controller.js.map +0 -1
  569. package/dist/standalone/providers/modal-controller.js +0 -27
  570. package/dist/standalone/providers/modal-controller.js.map +0 -1
  571. package/dist/standalone/providers/popover-controller.js +0 -21
  572. package/dist/standalone/providers/popover-controller.js.map +0 -1
  573. package/dist/standalone/providers/toast-controller.js +0 -20
  574. package/dist/standalone/providers/toast-controller.js.map +0 -1
  575. /package/{dist/lazy/app-initialize.d.ts → app-initialize.d.ts} +0 -0
  576. /package/{dist/common → common}/directives/control-value-accessors/index.d.ts +0 -0
  577. /package/{dist/common → common}/directives/navigation/nav-params.d.ts +0 -0
  578. /package/{dist/common → common}/directives/navigation/stack-controller.d.ts +0 -0
  579. /package/{dist/common → common}/directives/navigation/stack-utils.d.ts +0 -0
  580. /package/{dist/common → common}/providers/config.d.ts +0 -0
  581. /package/{dist/common → common}/providers/dom-controller.d.ts +0 -0
  582. /package/{dist/common → common}/providers/menu-controller.d.ts +0 -0
  583. /package/{dist/common → common}/providers/nav-controller.d.ts +0 -0
  584. /package/{dist/common → common}/providers/platform.d.ts +0 -0
  585. /package/{dist/common → common}/types/interfaces.d.ts +0 -0
  586. /package/{dist/common → common}/types/ionic-lifecycle-hooks.d.ts +0 -0
  587. /package/{dist/common → common}/types/overlay-options.d.ts +0 -0
  588. /package/{dist/common → common}/utils/overlay.d.ts +0 -0
  589. /package/{dist/common → common}/utils/proxy.d.ts +0 -0
  590. /package/{dist/common → common}/utils/routing.d.ts +0 -0
  591. /package/{dist/common → common}/utils/util.d.ts +0 -0
  592. /package/{dist/lazy/directives → directives}/angular-component-lib/utils.d.ts +0 -0
  593. /package/{dist/lazy/directives → directives}/control-value-accessors/index.d.ts +0 -0
  594. /package/{dist/lazy/directives → directives}/navigation/ion-back-button.d.ts +0 -0
  595. /package/{dist/lazy/directives → directives}/navigation/ion-nav.d.ts +0 -0
  596. /package/{dist/lazy/directives → directives}/navigation/ion-router-outlet.d.ts +0 -0
  597. /package/{dist/lazy/directives → directives}/navigation/ion-tabs.d.ts +0 -0
  598. /package/{dist/lazy/directives → directives}/navigation/router-link-delegate.d.ts +0 -0
  599. /package/{dist/lazy/directives → directives}/overlays/modal.d.ts +0 -0
  600. /package/{dist/lazy/directives → directives}/overlays/popover.d.ts +0 -0
  601. /package/{dist/lazy/directives → directives}/validators/index.d.ts +0 -0
  602. /package/{dist/lazy/directives → directives}/validators/max-validator.d.ts +0 -0
  603. /package/{dist/lazy/directives → directives}/validators/min-validator.d.ts +0 -0
  604. /package/{dist/lazy/providers → providers}/action-sheet-controller.d.ts +0 -0
  605. /package/{dist/lazy/providers → providers}/alert-controller.d.ts +0 -0
  606. /package/{dist/lazy/providers → providers}/animation-controller.d.ts +0 -0
  607. /package/{dist/lazy/providers → providers}/gesture-controller.d.ts +0 -0
  608. /package/{dist/lazy/providers → providers}/loading-controller.d.ts +0 -0
  609. /package/{dist/lazy/providers → providers}/menu-controller.d.ts +0 -0
  610. /package/{dist/lazy/providers → providers}/modal-controller.d.ts +0 -0
  611. /package/{dist/lazy/providers → providers}/popover-controller.d.ts +0 -0
  612. /package/{dist/lazy/providers → providers}/toast-controller.d.ts +0 -0
  613. /package/{dist/schematics → schematics}/add/files/root/theme/variables.css +0 -0
  614. /package/{dist/schematics → schematics}/add/schema.json +0 -0
  615. /package/{dist/schematics → schematics}/collection.json +0 -0
  616. /package/{dist/standalone → standalone}/directives/angular-component-lib/utils.d.ts +0 -0
  617. /package/{dist/standalone → standalone}/directives/checkbox.d.ts +0 -0
  618. /package/{dist/standalone → standalone}/directives/datetime.d.ts +0 -0
  619. /package/{dist/standalone → standalone}/directives/icon.d.ts +0 -0
  620. /package/{dist/standalone → standalone}/directives/index.d.ts +0 -0
  621. /package/{dist/standalone → standalone}/directives/input-otp.d.ts +0 -0
  622. /package/{dist/standalone → standalone}/directives/input.d.ts +0 -0
  623. /package/{dist/standalone → standalone}/directives/radio-group.d.ts +0 -0
  624. /package/{dist/standalone → standalone}/directives/range.d.ts +0 -0
  625. /package/{dist/standalone → standalone}/directives/searchbar.d.ts +0 -0
  626. /package/{dist/standalone → standalone}/directives/segment.d.ts +0 -0
  627. /package/{dist/standalone → standalone}/directives/select.d.ts +0 -0
  628. /package/{dist/standalone → standalone}/directives/textarea.d.ts +0 -0
  629. /package/{dist/standalone → standalone}/directives/toggle.d.ts +0 -0
  630. /package/{dist/standalone → standalone}/navigation/back-button.d.ts +0 -0
  631. /package/{dist/standalone → standalone}/navigation/nav.d.ts +0 -0
  632. /package/{dist/standalone → standalone}/navigation/router-link-delegate.d.ts +0 -0
  633. /package/{dist/standalone → standalone}/navigation/router-outlet.d.ts +0 -0
  634. /package/{dist/standalone → standalone}/navigation/tabs.d.ts +0 -0
  635. /package/{dist/standalone → standalone}/overlays/modal.d.ts +0 -0
  636. /package/{dist/standalone → standalone}/overlays/popover.d.ts +0 -0
  637. /package/{dist/standalone → standalone}/providers/action-sheet-controller.d.ts +0 -0
  638. /package/{dist/standalone → standalone}/providers/alert-controller.d.ts +0 -0
  639. /package/{dist/standalone → standalone}/providers/animation-controller.d.ts +0 -0
  640. /package/{dist/standalone → standalone}/providers/gesture-controller.d.ts +0 -0
  641. /package/{dist/standalone → standalone}/providers/ionic-angular.d.ts +0 -0
  642. /package/{dist/standalone → standalone}/providers/loading-controller.d.ts +0 -0
  643. /package/{dist/standalone → standalone}/providers/menu-controller.d.ts +0 -0
  644. /package/{dist/standalone → standalone}/providers/modal-controller.d.ts +0 -0
  645. /package/{dist/standalone → standalone}/providers/popover-controller.d.ts +0 -0
  646. /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;IAC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,IAAI,IAAI,KAAK,IAAI,IAAI,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC;YAC7C,OAAO,CAAC,IAAI,CAAC,OAAO,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":[],"m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I,CAAC,eAAe,EAAE,CAAC,CAAC;YAC5E,EAAE,CAAC,cAAc,EAAE,CAAC;QACtB,CAAC;IACH,CAAC;0HA9BU,aAAa;8GAAb,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,EA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B,CAAC,kBAAkB,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC;YACzG,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"]}