@ionic/angular 8.8.14-dev.11784243422.11f0110c → 8.8.14-dev.11785507167.1f41b13b

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 (502) hide show
  1. package/README.md +1 -1
  2. package/dist/common/directives/control-value-accessors/index.d.ts +1 -0
  3. package/dist/common/directives/control-value-accessors/index.js +2 -0
  4. package/dist/common/directives/control-value-accessors/index.js.map +1 -0
  5. package/dist/common/directives/control-value-accessors/value-accessor.d.ts +36 -0
  6. package/dist/common/directives/control-value-accessors/value-accessor.js +152 -0
  7. package/dist/common/directives/control-value-accessors/value-accessor.js.map +1 -0
  8. package/dist/common/directives/navigation/back-button.d.ts +23 -0
  9. package/dist/common/directives/navigation/back-button.js +66 -0
  10. package/dist/common/directives/navigation/back-button.js.map +1 -0
  11. package/dist/common/directives/navigation/nav-params.d.ts +45 -0
  12. package/dist/common/directives/navigation/nav-params.js +47 -0
  13. package/dist/common/directives/navigation/nav-params.js.map +1 -0
  14. package/dist/common/directives/navigation/nav.d.ts +21 -0
  15. package/dist/common/directives/navigation/nav.js +54 -0
  16. package/dist/common/directives/navigation/nav.js.map +1 -0
  17. package/dist/common/directives/navigation/router-link-delegate.d.ts +70 -0
  18. package/dist/common/directives/navigation/router-link-delegate.js +188 -0
  19. package/dist/common/directives/navigation/router-link-delegate.js.map +1 -0
  20. package/dist/common/directives/navigation/router-outlet.d.ts +104 -0
  21. package/dist/common/directives/navigation/router-outlet.js +476 -0
  22. package/dist/common/directives/navigation/router-outlet.js.map +1 -0
  23. package/dist/common/directives/navigation/stack-controller.d.ts +42 -0
  24. package/dist/common/directives/navigation/stack-controller.js +279 -0
  25. package/dist/common/directives/navigation/stack-controller.js.map +1 -0
  26. package/dist/common/directives/navigation/stack-utils.d.ts +38 -0
  27. package/dist/common/directives/navigation/stack-utils.js +73 -0
  28. package/dist/common/directives/navigation/stack-utils.js.map +1 -0
  29. package/dist/common/directives/navigation/tabs.d.ts +91 -0
  30. package/dist/common/directives/navigation/tabs.js +290 -0
  31. package/dist/common/directives/navigation/tabs.js.map +1 -0
  32. package/dist/common/index.d.ts +22 -0
  33. package/dist/common/index.js +20 -0
  34. package/dist/common/index.js.map +1 -0
  35. package/dist/common/overlays/modal.d.ts +62 -0
  36. package/dist/common/overlays/modal.js +101 -0
  37. package/dist/common/overlays/modal.js.map +1 -0
  38. package/dist/common/overlays/popover.d.ts +46 -0
  39. package/dist/common/overlays/popover.js +89 -0
  40. package/dist/common/overlays/popover.js.map +1 -0
  41. package/dist/common/providers/angular-delegate.d.ts +28 -0
  42. package/dist/common/providers/angular-delegate.js +229 -0
  43. package/dist/common/providers/angular-delegate.js.map +1 -0
  44. package/dist/common/providers/config.d.ts +11 -0
  45. package/dist/common/providers/config.js +44 -0
  46. package/dist/common/providers/config.js.map +1 -0
  47. package/dist/common/providers/dom-controller.d.ts +16 -0
  48. package/dist/common/providers/dom-controller.js +44 -0
  49. package/dist/common/providers/dom-controller.js.map +1 -0
  50. package/dist/common/providers/menu-controller.d.ts +78 -0
  51. package/dist/common/providers/menu-controller.js +114 -0
  52. package/dist/common/providers/menu-controller.js.map +1 -0
  53. package/dist/common/providers/nav-controller.d.ts +116 -0
  54. package/dist/common/providers/nav-controller.js +232 -0
  55. package/dist/common/providers/nav-controller.js.map +1 -0
  56. package/dist/common/providers/platform.d.ts +174 -0
  57. package/dist/common/providers/platform.js +256 -0
  58. package/dist/common/providers/platform.js.map +1 -0
  59. package/dist/common/types/interfaces.d.ts +8 -0
  60. package/dist/common/types/interfaces.js +2 -0
  61. package/dist/common/types/interfaces.js.map +1 -0
  62. package/dist/common/types/ionic-lifecycle-hooks.d.ts +27 -0
  63. package/dist/common/types/ionic-lifecycle-hooks.js +5 -0
  64. package/dist/common/types/ionic-lifecycle-hooks.js.map +1 -0
  65. package/dist/common/types/overlay-options.d.ts +16 -0
  66. package/dist/common/types/overlay-options.js +2 -0
  67. package/dist/common/types/overlay-options.js.map +1 -0
  68. package/dist/common/utils/overlay.d.ts +21 -0
  69. package/dist/common/utils/overlay.js +26 -0
  70. package/dist/common/utils/overlay.js.map +1 -0
  71. package/dist/common/utils/proxy.d.ts +8 -0
  72. package/dist/common/utils/proxy.js +47 -0
  73. package/dist/common/utils/proxy.js.map +1 -0
  74. package/dist/common/utils/routing.d.ts +28 -0
  75. package/dist/common/utils/routing.js +55 -0
  76. package/dist/common/utils/routing.js.map +1 -0
  77. package/dist/common/utils/util.d.ts +1 -0
  78. package/dist/common/utils/util.js +10 -0
  79. package/dist/common/utils/util.js.map +1 -0
  80. package/dist/lazy/app-initialize.d.ts +3 -0
  81. package/dist/lazy/app-initialize.js +29 -0
  82. package/dist/lazy/app-initialize.js.map +1 -0
  83. package/dist/lazy/directives/angular-component-lib/utils.d.ts +9 -0
  84. package/dist/lazy/directives/angular-component-lib/utils.js +59 -0
  85. package/dist/lazy/directives/angular-component-lib/utils.js.map +1 -0
  86. package/dist/lazy/directives/control-value-accessors/boolean-value-accessor.d.ts +10 -0
  87. package/dist/lazy/directives/control-value-accessors/boolean-value-accessor.js +47 -0
  88. package/dist/lazy/directives/control-value-accessors/boolean-value-accessor.js.map +1 -0
  89. package/dist/lazy/directives/control-value-accessors/index.d.ts +4 -0
  90. package/dist/lazy/directives/control-value-accessors/index.js +5 -0
  91. package/dist/lazy/directives/control-value-accessors/index.js.map +1 -0
  92. package/dist/lazy/directives/control-value-accessors/numeric-value-accessor.d.ts +11 -0
  93. package/dist/lazy/directives/control-value-accessors/numeric-value-accessor.js +55 -0
  94. package/dist/lazy/directives/control-value-accessors/numeric-value-accessor.js.map +1 -0
  95. package/dist/lazy/directives/control-value-accessors/select-value-accessor.d.ts +9 -0
  96. package/dist/lazy/directives/control-value-accessors/select-value-accessor.js +44 -0
  97. package/dist/lazy/directives/control-value-accessors/select-value-accessor.js.map +1 -0
  98. package/dist/lazy/directives/control-value-accessors/text-value-accessor.d.ts +9 -0
  99. package/dist/lazy/directives/control-value-accessors/text-value-accessor.js +43 -0
  100. package/dist/lazy/directives/control-value-accessors/text-value-accessor.js.map +1 -0
  101. package/dist/lazy/directives/navigation/ion-back-button.d.ts +9 -0
  102. package/dist/lazy/directives/navigation/ion-back-button.js +24 -0
  103. package/dist/lazy/directives/navigation/ion-back-button.js.map +1 -0
  104. package/dist/lazy/directives/navigation/ion-nav.d.ts +8 -0
  105. package/dist/lazy/directives/navigation/ion-nav.js +21 -0
  106. package/dist/lazy/directives/navigation/ion-nav.js.map +1 -0
  107. package/dist/lazy/directives/navigation/ion-router-outlet.d.ts +25 -0
  108. package/dist/lazy/directives/navigation/ion-router-outlet.js +52 -0
  109. package/dist/lazy/directives/navigation/ion-router-outlet.js.map +1 -0
  110. package/dist/lazy/directives/navigation/ion-tabs.d.ts +13 -0
  111. package/dist/lazy/directives/navigation/ion-tabs.js +58 -0
  112. package/dist/lazy/directives/navigation/ion-tabs.js.map +1 -0
  113. package/dist/lazy/directives/navigation/router-link-delegate.d.ts +16 -0
  114. package/dist/lazy/directives/navigation/router-link-delegate.js +32 -0
  115. package/dist/lazy/directives/navigation/router-link-delegate.js.map +1 -0
  116. package/dist/lazy/directives/overlays/modal.d.ts +6 -0
  117. package/dist/lazy/directives/overlays/modal.js +22 -0
  118. package/dist/lazy/directives/overlays/modal.js.map +1 -0
  119. package/dist/lazy/directives/overlays/popover.d.ts +6 -0
  120. package/dist/lazy/directives/overlays/popover.js +18 -0
  121. package/dist/lazy/directives/overlays/popover.js.map +1 -0
  122. package/dist/lazy/directives/proxies-list.d.ts +2 -0
  123. package/dist/lazy/directives/proxies-list.js +89 -0
  124. package/dist/lazy/directives/proxies-list.js.map +1 -0
  125. package/{types/ionic-angular-lazy.d.ts → dist/lazy/directives/proxies.d.ts} +339 -503
  126. package/{fesm2022/ionic-angular-lazy.mjs → dist/lazy/directives/proxies.js} +266 -1052
  127. package/dist/lazy/directives/proxies.js.map +1 -0
  128. package/dist/lazy/directives/validators/index.d.ts +2 -0
  129. package/dist/lazy/directives/validators/index.js +3 -0
  130. package/dist/lazy/directives/validators/index.js.map +1 -0
  131. package/dist/lazy/directives/validators/max-validator.d.ts +12 -0
  132. package/dist/lazy/directives/validators/max-validator.js +26 -0
  133. package/dist/lazy/directives/validators/max-validator.js.map +1 -0
  134. package/dist/lazy/directives/validators/min-validator.d.ts +12 -0
  135. package/dist/lazy/directives/validators/min-validator.js +26 -0
  136. package/dist/lazy/directives/validators/min-validator.js.map +1 -0
  137. package/dist/lazy/index.d.ts +26 -0
  138. package/dist/lazy/index.js +34 -0
  139. package/dist/lazy/index.js.map +1 -0
  140. package/dist/lazy/ionic-module.d.ts +38 -0
  141. package/dist/lazy/ionic-module.js +121 -0
  142. package/dist/lazy/ionic-module.js.map +1 -0
  143. package/dist/lazy/providers/action-sheet-controller.d.ts +8 -0
  144. package/dist/lazy/providers/action-sheet-controller.js +18 -0
  145. package/dist/lazy/providers/action-sheet-controller.js.map +1 -0
  146. package/dist/lazy/providers/alert-controller.d.ts +8 -0
  147. package/dist/lazy/providers/alert-controller.js +18 -0
  148. package/dist/lazy/providers/alert-controller.js.map +1 -0
  149. package/dist/lazy/providers/animation-controller.d.ts +25 -0
  150. package/dist/lazy/providers/animation-controller.js +37 -0
  151. package/dist/lazy/providers/animation-controller.js.map +1 -0
  152. package/dist/lazy/providers/gesture-controller.d.ts +13 -0
  153. package/dist/lazy/providers/gesture-controller.js +32 -0
  154. package/dist/lazy/providers/gesture-controller.js.map +1 -0
  155. package/dist/lazy/providers/loading-controller.d.ts +8 -0
  156. package/dist/lazy/providers/loading-controller.js +18 -0
  157. package/dist/lazy/providers/loading-controller.js.map +1 -0
  158. package/dist/lazy/providers/menu-controller.d.ts +7 -0
  159. package/dist/lazy/providers/menu-controller.js +18 -0
  160. package/dist/lazy/providers/menu-controller.js.map +1 -0
  161. package/dist/lazy/providers/modal-controller.d.ts +12 -0
  162. package/dist/lazy/providers/modal-controller.js +25 -0
  163. package/dist/lazy/providers/modal-controller.js.map +1 -0
  164. package/dist/lazy/providers/popover-controller.d.ts +9 -0
  165. package/dist/lazy/providers/popover-controller.js +19 -0
  166. package/dist/lazy/providers/popover-controller.js.map +1 -0
  167. package/dist/lazy/providers/toast-controller.d.ts +8 -0
  168. package/dist/lazy/providers/toast-controller.js +18 -0
  169. package/dist/lazy/providers/toast-controller.js.map +1 -0
  170. package/dist/standalone/directives/angular-component-lib/utils.d.ts +9 -0
  171. package/dist/standalone/directives/angular-component-lib/utils.js +59 -0
  172. package/dist/standalone/directives/angular-component-lib/utils.js.map +1 -0
  173. package/dist/standalone/directives/checkbox.d.ts +30 -0
  174. package/dist/standalone/directives/checkbox.js +81 -0
  175. package/dist/standalone/directives/checkbox.js.map +1 -0
  176. package/dist/standalone/directives/datetime.d.ts +30 -0
  177. package/dist/standalone/directives/datetime.js +100 -0
  178. package/dist/standalone/directives/datetime.js.map +1 -0
  179. package/dist/standalone/directives/icon.d.ts +9 -0
  180. package/dist/standalone/directives/icon.js +40 -0
  181. package/dist/standalone/directives/icon.js.map +1 -0
  182. package/dist/standalone/directives/index.d.ts +12 -0
  183. package/dist/standalone/directives/index.js +13 -0
  184. package/dist/standalone/directives/index.js.map +1 -0
  185. package/dist/standalone/directives/input-otp.d.ts +49 -0
  186. package/dist/standalone/directives/input-otp.js +95 -0
  187. package/dist/standalone/directives/input-otp.js.map +1 -0
  188. package/dist/standalone/directives/input.d.ts +47 -0
  189. package/dist/standalone/directives/input.js +118 -0
  190. package/dist/standalone/directives/input.js.map +1 -0
  191. package/dist/standalone/directives/ion-accordion-group.d.ts +21 -0
  192. package/dist/standalone/directives/ion-accordion-group.js +45 -0
  193. package/dist/standalone/directives/ion-accordion-group.js.map +1 -0
  194. package/dist/standalone/directives/ion-accordion.d.ts +12 -0
  195. package/dist/standalone/directives/ion-accordion.js +41 -0
  196. package/dist/standalone/directives/ion-accordion.js.map +1 -0
  197. package/dist/standalone/directives/ion-action-sheet.d.ts +58 -0
  198. package/dist/standalone/directives/ion-action-sheet.js +67 -0
  199. package/dist/standalone/directives/ion-action-sheet.js.map +1 -0
  200. package/dist/standalone/directives/ion-alert.d.ts +58 -0
  201. package/dist/standalone/directives/ion-alert.js +67 -0
  202. package/dist/standalone/directives/ion-alert.js.map +1 -0
  203. package/dist/standalone/directives/ion-app.d.ts +12 -0
  204. package/dist/standalone/directives/ion-app.js +41 -0
  205. package/dist/standalone/directives/ion-app.js.map +1 -0
  206. package/dist/standalone/directives/ion-avatar.d.ts +12 -0
  207. package/dist/standalone/directives/ion-avatar.js +40 -0
  208. package/dist/standalone/directives/ion-avatar.js.map +1 -0
  209. package/dist/standalone/directives/ion-backdrop.d.ts +18 -0
  210. package/dist/standalone/directives/ion-backdrop.js +45 -0
  211. package/dist/standalone/directives/ion-backdrop.js.map +1 -0
  212. package/dist/standalone/directives/ion-badge.d.ts +12 -0
  213. package/dist/standalone/directives/ion-badge.js +41 -0
  214. package/dist/standalone/directives/ion-badge.js.map +1 -0
  215. package/dist/standalone/directives/ion-breadcrumb.d.ts +23 -0
  216. package/dist/standalone/directives/ion-breadcrumb.js +48 -0
  217. package/dist/standalone/directives/ion-breadcrumb.js.map +1 -0
  218. package/dist/standalone/directives/ion-breadcrumbs.d.ts +19 -0
  219. package/dist/standalone/directives/ion-breadcrumbs.js +45 -0
  220. package/dist/standalone/directives/ion-breadcrumbs.js.map +1 -0
  221. package/dist/standalone/directives/ion-button.d.ts +23 -0
  222. package/dist/standalone/directives/ion-button.js +48 -0
  223. package/dist/standalone/directives/ion-button.js.map +1 -0
  224. package/dist/standalone/directives/ion-buttons.d.ts +12 -0
  225. package/dist/standalone/directives/ion-buttons.js +41 -0
  226. package/dist/standalone/directives/ion-buttons.js.map +1 -0
  227. package/dist/standalone/directives/ion-card-content.d.ts +12 -0
  228. package/dist/standalone/directives/ion-card-content.js +41 -0
  229. package/dist/standalone/directives/ion-card-content.js.map +1 -0
  230. package/dist/standalone/directives/ion-card-header.d.ts +12 -0
  231. package/dist/standalone/directives/ion-card-header.js +41 -0
  232. package/dist/standalone/directives/ion-card-header.js.map +1 -0
  233. package/dist/standalone/directives/ion-card-subtitle.d.ts +12 -0
  234. package/dist/standalone/directives/ion-card-subtitle.js +41 -0
  235. package/dist/standalone/directives/ion-card-subtitle.js.map +1 -0
  236. package/dist/standalone/directives/ion-card-title.d.ts +12 -0
  237. package/dist/standalone/directives/ion-card-title.js +41 -0
  238. package/dist/standalone/directives/ion-card-title.js.map +1 -0
  239. package/dist/standalone/directives/ion-card.d.ts +12 -0
  240. package/dist/standalone/directives/ion-card.js +41 -0
  241. package/dist/standalone/directives/ion-card.js.map +1 -0
  242. package/dist/standalone/directives/ion-chip.d.ts +12 -0
  243. package/dist/standalone/directives/ion-chip.js +41 -0
  244. package/dist/standalone/directives/ion-chip.js.map +1 -0
  245. package/dist/standalone/directives/ion-col.d.ts +12 -0
  246. package/dist/standalone/directives/ion-col.js +41 -0
  247. package/dist/standalone/directives/ion-col.js.map +1 -0
  248. package/dist/standalone/directives/ion-content.d.ts +33 -0
  249. package/dist/standalone/directives/ion-content.js +52 -0
  250. package/dist/standalone/directives/ion-content.js.map +1 -0
  251. package/dist/standalone/directives/ion-datetime-button.d.ts +12 -0
  252. package/dist/standalone/directives/ion-datetime-button.js +41 -0
  253. package/dist/standalone/directives/ion-datetime-button.js.map +1 -0
  254. package/dist/standalone/directives/ion-fab-button.d.ts +23 -0
  255. package/dist/standalone/directives/ion-fab-button.js +48 -0
  256. package/dist/standalone/directives/ion-fab-button.js.map +1 -0
  257. package/dist/standalone/directives/ion-fab-list.d.ts +12 -0
  258. package/dist/standalone/directives/ion-fab-list.js +41 -0
  259. package/dist/standalone/directives/ion-fab-list.js.map +1 -0
  260. package/dist/standalone/directives/ion-fab.d.ts +12 -0
  261. package/dist/standalone/directives/ion-fab.js +42 -0
  262. package/dist/standalone/directives/ion-fab.js.map +1 -0
  263. package/dist/standalone/directives/ion-footer.d.ts +12 -0
  264. package/dist/standalone/directives/ion-footer.js +41 -0
  265. package/dist/standalone/directives/ion-footer.js.map +1 -0
  266. package/dist/standalone/directives/ion-grid.d.ts +12 -0
  267. package/dist/standalone/directives/ion-grid.js +41 -0
  268. package/dist/standalone/directives/ion-grid.js.map +1 -0
  269. package/dist/standalone/directives/ion-header.d.ts +12 -0
  270. package/dist/standalone/directives/ion-header.js +41 -0
  271. package/dist/standalone/directives/ion-header.js.map +1 -0
  272. package/dist/standalone/directives/ion-img.d.ts +28 -0
  273. package/dist/standalone/directives/ion-img.js +51 -0
  274. package/dist/standalone/directives/ion-img.js.map +1 -0
  275. package/dist/standalone/directives/ion-infinite-scroll-content.d.ts +12 -0
  276. package/dist/standalone/directives/ion-infinite-scroll-content.js +41 -0
  277. package/dist/standalone/directives/ion-infinite-scroll-content.js.map +1 -0
  278. package/dist/standalone/directives/ion-infinite-scroll.d.ts +21 -0
  279. package/dist/standalone/directives/ion-infinite-scroll.js +46 -0
  280. package/dist/standalone/directives/ion-infinite-scroll.js.map +1 -0
  281. package/dist/standalone/directives/ion-input-password-toggle.d.ts +12 -0
  282. package/dist/standalone/directives/ion-input-password-toggle.js +41 -0
  283. package/dist/standalone/directives/ion-input-password-toggle.js.map +1 -0
  284. package/dist/standalone/directives/ion-item-divider.d.ts +12 -0
  285. package/dist/standalone/directives/ion-item-divider.js +41 -0
  286. package/dist/standalone/directives/ion-item-divider.js.map +1 -0
  287. package/dist/standalone/directives/ion-item-group.d.ts +12 -0
  288. package/dist/standalone/directives/ion-item-group.js +40 -0
  289. package/dist/standalone/directives/ion-item-group.js.map +1 -0
  290. package/dist/standalone/directives/ion-item-option.d.ts +12 -0
  291. package/dist/standalone/directives/ion-item-option.js +41 -0
  292. package/dist/standalone/directives/ion-item-option.js.map +1 -0
  293. package/dist/standalone/directives/ion-item-options.d.ts +18 -0
  294. package/dist/standalone/directives/ion-item-options.js +45 -0
  295. package/dist/standalone/directives/ion-item-options.js.map +1 -0
  296. package/dist/standalone/directives/ion-item-sliding.d.ts +18 -0
  297. package/dist/standalone/directives/ion-item-sliding.js +46 -0
  298. package/dist/standalone/directives/ion-item-sliding.js.map +1 -0
  299. package/dist/standalone/directives/ion-item.d.ts +12 -0
  300. package/dist/standalone/directives/ion-item.js +41 -0
  301. package/dist/standalone/directives/ion-item.js.map +1 -0
  302. package/dist/standalone/directives/ion-label.d.ts +12 -0
  303. package/dist/standalone/directives/ion-label.js +41 -0
  304. package/dist/standalone/directives/ion-label.js.map +1 -0
  305. package/dist/standalone/directives/ion-list-header.d.ts +12 -0
  306. package/dist/standalone/directives/ion-list-header.js +41 -0
  307. package/dist/standalone/directives/ion-list-header.js.map +1 -0
  308. package/dist/standalone/directives/ion-list.d.ts +12 -0
  309. package/dist/standalone/directives/ion-list.js +42 -0
  310. package/dist/standalone/directives/ion-list.js.map +1 -0
  311. package/dist/standalone/directives/ion-loading.d.ts +58 -0
  312. package/dist/standalone/directives/ion-loading.js +67 -0
  313. package/dist/standalone/directives/ion-loading.js.map +1 -0
  314. package/dist/standalone/directives/ion-menu-button.d.ts +12 -0
  315. package/dist/standalone/directives/ion-menu-button.js +41 -0
  316. package/dist/standalone/directives/ion-menu-button.js.map +1 -0
  317. package/dist/standalone/directives/ion-menu-toggle.d.ts +12 -0
  318. package/dist/standalone/directives/ion-menu-toggle.js +41 -0
  319. package/dist/standalone/directives/ion-menu-toggle.js.map +1 -0
  320. package/dist/standalone/directives/ion-menu.d.ts +34 -0
  321. package/dist/standalone/directives/ion-menu.js +55 -0
  322. package/dist/standalone/directives/ion-menu.js.map +1 -0
  323. package/dist/standalone/directives/ion-nav-link.d.ts +12 -0
  324. package/dist/standalone/directives/ion-nav-link.js +41 -0
  325. package/dist/standalone/directives/ion-nav-link.js.map +1 -0
  326. package/dist/standalone/directives/ion-note.d.ts +12 -0
  327. package/dist/standalone/directives/ion-note.js +41 -0
  328. package/dist/standalone/directives/ion-note.js.map +1 -0
  329. package/dist/standalone/directives/ion-picker-column-option.d.ts +12 -0
  330. package/dist/standalone/directives/ion-picker-column-option.js +41 -0
  331. package/dist/standalone/directives/ion-picker-column-option.js.map +1 -0
  332. package/dist/standalone/directives/ion-picker-column.d.ts +21 -0
  333. package/dist/standalone/directives/ion-picker-column.js +46 -0
  334. package/dist/standalone/directives/ion-picker-column.js.map +1 -0
  335. package/dist/standalone/directives/ion-picker.d.ts +12 -0
  336. package/dist/standalone/directives/ion-picker.js +41 -0
  337. package/dist/standalone/directives/ion-picker.js.map +1 -0
  338. package/dist/standalone/directives/ion-progress-bar.d.ts +12 -0
  339. package/dist/standalone/directives/ion-progress-bar.js +41 -0
  340. package/dist/standalone/directives/ion-progress-bar.js.map +1 -0
  341. package/dist/standalone/directives/ion-radio.d.ts +23 -0
  342. package/dist/standalone/directives/ion-radio.js +48 -0
  343. package/dist/standalone/directives/ion-radio.js.map +1 -0
  344. package/dist/standalone/directives/ion-refresher-content.d.ts +12 -0
  345. package/dist/standalone/directives/ion-refresher-content.js +41 -0
  346. package/dist/standalone/directives/ion-refresher-content.js.map +1 -0
  347. package/dist/standalone/directives/ion-refresher.d.ts +45 -0
  348. package/dist/standalone/directives/ion-refresher.js +58 -0
  349. package/dist/standalone/directives/ion-refresher.js.map +1 -0
  350. package/dist/standalone/directives/ion-reorder-group.d.ts +44 -0
  351. package/dist/standalone/directives/ion-reorder-group.js +55 -0
  352. package/dist/standalone/directives/ion-reorder-group.js.map +1 -0
  353. package/dist/standalone/directives/ion-reorder.d.ts +12 -0
  354. package/dist/standalone/directives/ion-reorder.js +40 -0
  355. package/dist/standalone/directives/ion-reorder.js.map +1 -0
  356. package/dist/standalone/directives/ion-ripple-effect.d.ts +12 -0
  357. package/dist/standalone/directives/ion-ripple-effect.js +42 -0
  358. package/dist/standalone/directives/ion-ripple-effect.js.map +1 -0
  359. package/dist/standalone/directives/ion-row.d.ts +12 -0
  360. package/dist/standalone/directives/ion-row.js +40 -0
  361. package/dist/standalone/directives/ion-row.js.map +1 -0
  362. package/dist/standalone/directives/ion-segment-button.d.ts +12 -0
  363. package/dist/standalone/directives/ion-segment-button.js +41 -0
  364. package/dist/standalone/directives/ion-segment-button.js.map +1 -0
  365. package/dist/standalone/directives/ion-segment-content.d.ts +12 -0
  366. package/dist/standalone/directives/ion-segment-content.js +40 -0
  367. package/dist/standalone/directives/ion-segment-content.js.map +1 -0
  368. package/dist/standalone/directives/ion-segment-view.d.ts +19 -0
  369. package/dist/standalone/directives/ion-segment-view.js +45 -0
  370. package/dist/standalone/directives/ion-segment-view.js.map +1 -0
  371. package/dist/standalone/directives/ion-select-modal.d.ts +12 -0
  372. package/dist/standalone/directives/ion-select-modal.js +41 -0
  373. package/dist/standalone/directives/ion-select-modal.js.map +1 -0
  374. package/dist/standalone/directives/ion-select-option.d.ts +12 -0
  375. package/dist/standalone/directives/ion-select-option.js +41 -0
  376. package/dist/standalone/directives/ion-select-option.js.map +1 -0
  377. package/dist/standalone/directives/ion-skeleton-text.d.ts +12 -0
  378. package/dist/standalone/directives/ion-skeleton-text.js +41 -0
  379. package/dist/standalone/directives/ion-skeleton-text.js.map +1 -0
  380. package/dist/standalone/directives/ion-spinner.d.ts +12 -0
  381. package/dist/standalone/directives/ion-spinner.js +41 -0
  382. package/dist/standalone/directives/ion-spinner.js.map +1 -0
  383. package/dist/standalone/directives/ion-split-pane.d.ts +22 -0
  384. package/dist/standalone/directives/ion-split-pane.js +45 -0
  385. package/dist/standalone/directives/ion-split-pane.js.map +1 -0
  386. package/dist/standalone/directives/ion-tab-bar.d.ts +12 -0
  387. package/dist/standalone/directives/ion-tab-bar.js +41 -0
  388. package/dist/standalone/directives/ion-tab-bar.js.map +1 -0
  389. package/dist/standalone/directives/ion-tab-button.d.ts +12 -0
  390. package/dist/standalone/directives/ion-tab-button.js +41 -0
  391. package/dist/standalone/directives/ion-tab-button.js.map +1 -0
  392. package/dist/standalone/directives/ion-tab.d.ts +12 -0
  393. package/dist/standalone/directives/ion-tab.js +42 -0
  394. package/dist/standalone/directives/ion-tab.js.map +1 -0
  395. package/dist/standalone/directives/ion-text.d.ts +12 -0
  396. package/dist/standalone/directives/ion-text.js +41 -0
  397. package/dist/standalone/directives/ion-text.js.map +1 -0
  398. package/dist/standalone/directives/ion-thumbnail.d.ts +12 -0
  399. package/dist/standalone/directives/ion-thumbnail.js +40 -0
  400. package/dist/standalone/directives/ion-thumbnail.js.map +1 -0
  401. package/dist/standalone/directives/ion-title.d.ts +12 -0
  402. package/dist/standalone/directives/ion-title.js +41 -0
  403. package/dist/standalone/directives/ion-title.js.map +1 -0
  404. package/dist/standalone/directives/ion-toast.d.ts +58 -0
  405. package/dist/standalone/directives/ion-toast.js +67 -0
  406. package/dist/standalone/directives/ion-toast.js.map +1 -0
  407. package/dist/standalone/directives/ion-toolbar.d.ts +12 -0
  408. package/dist/standalone/directives/ion-toolbar.js +41 -0
  409. package/dist/standalone/directives/ion-toolbar.js.map +1 -0
  410. package/dist/standalone/directives/proxies.d.ts +77 -0
  411. package/dist/standalone/directives/proxies.js +79 -0
  412. package/dist/standalone/directives/proxies.js.map +1 -0
  413. package/dist/standalone/directives/radio-group.d.ts +18 -0
  414. package/dist/standalone/directives/radio-group.js +65 -0
  415. package/dist/standalone/directives/radio-group.js.map +1 -0
  416. package/dist/standalone/directives/range.d.ts +47 -0
  417. package/dist/standalone/directives/range.js +83 -0
  418. package/dist/standalone/directives/range.js.map +1 -0
  419. package/dist/standalone/directives/searchbar.d.ts +45 -0
  420. package/dist/standalone/directives/searchbar.js +87 -0
  421. package/dist/standalone/directives/searchbar.js.map +1 -0
  422. package/dist/standalone/directives/segment.d.ts +19 -0
  423. package/dist/standalone/directives/segment.js +65 -0
  424. package/dist/standalone/directives/segment.js.map +1 -0
  425. package/dist/standalone/directives/select.d.ts +34 -0
  426. package/dist/standalone/directives/select.js +89 -0
  427. package/dist/standalone/directives/select.js.map +1 -0
  428. package/dist/standalone/directives/textarea.d.ts +37 -0
  429. package/dist/standalone/directives/textarea.js +96 -0
  430. package/dist/standalone/directives/textarea.js.map +1 -0
  431. package/dist/standalone/directives/toggle.d.ts +28 -0
  432. package/dist/standalone/directives/toggle.js +81 -0
  433. package/dist/standalone/directives/toggle.js.map +1 -0
  434. package/dist/standalone/index.d.ts +22 -0
  435. package/dist/standalone/index.js +24 -0
  436. package/dist/standalone/index.js.map +1 -0
  437. package/dist/standalone/navigation/back-button.d.ts +9 -0
  438. package/dist/standalone/navigation/back-button.js +37 -0
  439. package/dist/standalone/navigation/back-button.js.map +1 -0
  440. package/dist/standalone/navigation/nav.d.ts +8 -0
  441. package/dist/standalone/navigation/nav.js +33 -0
  442. package/dist/standalone/navigation/nav.js.map +1 -0
  443. package/dist/standalone/navigation/router-link-delegate.d.ts +10 -0
  444. package/dist/standalone/navigation/router-link-delegate.js +26 -0
  445. package/dist/standalone/navigation/router-link-delegate.js.map +1 -0
  446. package/dist/standalone/navigation/router-outlet.d.ts +25 -0
  447. package/dist/standalone/navigation/router-outlet.js +65 -0
  448. package/dist/standalone/navigation/router-outlet.js.map +1 -0
  449. package/dist/standalone/navigation/tabs.d.ts +13 -0
  450. package/dist/standalone/navigation/tabs.js +57 -0
  451. package/dist/standalone/navigation/tabs.js.map +1 -0
  452. package/dist/standalone/overlays/modal.d.ts +6 -0
  453. package/dist/standalone/overlays/modal.js +37 -0
  454. package/dist/standalone/overlays/modal.js.map +1 -0
  455. package/dist/standalone/overlays/popover.d.ts +6 -0
  456. package/dist/standalone/overlays/popover.js +33 -0
  457. package/dist/standalone/overlays/popover.js.map +1 -0
  458. package/dist/standalone/providers/action-sheet-controller.d.ts +8 -0
  459. package/dist/standalone/providers/action-sheet-controller.js +20 -0
  460. package/dist/standalone/providers/action-sheet-controller.js.map +1 -0
  461. package/dist/standalone/providers/alert-controller.d.ts +8 -0
  462. package/dist/standalone/providers/alert-controller.js +20 -0
  463. package/dist/standalone/providers/alert-controller.js.map +1 -0
  464. package/dist/standalone/providers/animation-controller.d.ts +25 -0
  465. package/dist/standalone/providers/animation-controller.js +37 -0
  466. package/dist/standalone/providers/animation-controller.js.map +1 -0
  467. package/dist/standalone/providers/gesture-controller.d.ts +13 -0
  468. package/dist/standalone/providers/gesture-controller.js +32 -0
  469. package/dist/standalone/providers/gesture-controller.js.map +1 -0
  470. package/dist/standalone/providers/ionic-angular.d.ts +7 -0
  471. package/dist/standalone/providers/ionic-angular.js +38 -0
  472. package/dist/standalone/providers/ionic-angular.js.map +1 -0
  473. package/dist/standalone/providers/loading-controller.d.ts +8 -0
  474. package/dist/standalone/providers/loading-controller.js +20 -0
  475. package/dist/standalone/providers/loading-controller.js.map +1 -0
  476. package/dist/standalone/providers/menu-controller.d.ts +7 -0
  477. package/dist/standalone/providers/menu-controller.js +18 -0
  478. package/dist/standalone/providers/menu-controller.js.map +1 -0
  479. package/dist/standalone/providers/modal-controller.d.ts +12 -0
  480. package/dist/standalone/providers/modal-controller.js +27 -0
  481. package/dist/standalone/providers/modal-controller.js.map +1 -0
  482. package/dist/standalone/providers/popover-controller.d.ts +9 -0
  483. package/dist/standalone/providers/popover-controller.js +21 -0
  484. package/dist/standalone/providers/popover-controller.js.map +1 -0
  485. package/dist/standalone/providers/toast-controller.d.ts +8 -0
  486. package/dist/standalone/providers/toast-controller.js +20 -0
  487. package/dist/standalone/providers/toast-controller.js.map +1 -0
  488. package/package.json +163 -22
  489. package/fesm2022/ionic-angular-common.mjs +0 -2799
  490. package/fesm2022/ionic-angular-common.mjs.map +0 -1
  491. package/fesm2022/ionic-angular-lazy.mjs.map +0 -1
  492. package/fesm2022/ionic-angular.mjs +0 -3644
  493. package/fesm2022/ionic-angular.mjs.map +0 -1
  494. package/types/ionic-angular-common.d.ts +0 -1031
  495. package/types/ionic-angular.d.ts +0 -1560
  496. /package/{schematics → dist/schematics}/add/files/root/theme/variables.css +0 -0
  497. /package/{schematics → dist/schematics}/add/index.js +0 -0
  498. /package/{schematics → dist/schematics}/add/schema.json +0 -0
  499. /package/{schematics → dist/schematics}/collection.json +0 -0
  500. /package/{schematics → dist/schematics}/utils/ast.js +0 -0
  501. /package/{schematics → dist/schematics}/utils/config.js +0 -0
  502. /package/{schematics → dist/schematics}/utils/package.js +0 -0
@@ -0,0 +1,89 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { ContentChild, Directive, TemplateRef, } from '@angular/core';
8
+ import { ProxyCmp, proxyOutputs } from '../utils/proxy';
9
+ import * as i0 from "@angular/core";
10
+ const POPOVER_INPUTS = [
11
+ 'alignment',
12
+ 'animated',
13
+ 'arrow',
14
+ 'keepContentsMounted',
15
+ 'backdropDismiss',
16
+ 'cssClass',
17
+ 'dismissOnSelect',
18
+ 'enterAnimation',
19
+ 'event',
20
+ 'focusTrap',
21
+ 'isOpen',
22
+ 'keyboardClose',
23
+ 'leaveAnimation',
24
+ 'mode',
25
+ 'showBackdrop',
26
+ 'translucent',
27
+ 'trigger',
28
+ 'triggerAction',
29
+ 'reference',
30
+ 'size',
31
+ 'side',
32
+ ];
33
+ const POPOVER_METHODS = ['present', 'dismiss', 'onDidDismiss', 'onWillDismiss'];
34
+ let IonPopover = class IonPopover {
35
+ z;
36
+ // TODO(FW-2827): type
37
+ template;
38
+ isCmpOpen = false;
39
+ el;
40
+ constructor(c, r, z) {
41
+ this.z = z;
42
+ this.el = r.nativeElement;
43
+ this.el.addEventListener('ionMount', () => {
44
+ this.isCmpOpen = true;
45
+ c.detectChanges();
46
+ });
47
+ this.el.addEventListener('didDismiss', () => {
48
+ this.isCmpOpen = false;
49
+ c.detectChanges();
50
+ });
51
+ proxyOutputs(this, this.el, [
52
+ 'ionPopoverDidPresent',
53
+ 'ionPopoverWillPresent',
54
+ 'ionPopoverWillDismiss',
55
+ 'ionPopoverDidDismiss',
56
+ 'didPresent',
57
+ 'willPresent',
58
+ 'willDismiss',
59
+ 'didDismiss',
60
+ ]);
61
+ }
62
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: IonPopover, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
63
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: IonPopover, isStandalone: true, selector: "ion-popover", inputs: { alignment: "alignment", animated: "animated", arrow: "arrow", keepContentsMounted: "keepContentsMounted", backdropDismiss: "backdropDismiss", cssClass: "cssClass", dismissOnSelect: "dismissOnSelect", enterAnimation: "enterAnimation", event: "event", focusTrap: "focusTrap", isOpen: "isOpen", keyboardClose: "keyboardClose", leaveAnimation: "leaveAnimation", mode: "mode", showBackdrop: "showBackdrop", translucent: "translucent", trigger: "trigger", triggerAction: "triggerAction", reference: "reference", size: "size", side: "side" }, queries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0 });
64
+ };
65
+ IonPopover = __decorate([
66
+ ProxyCmp({
67
+ inputs: POPOVER_INPUTS,
68
+ methods: POPOVER_METHODS,
69
+ })
70
+ /**
71
+ * @Component extends from @Directive
72
+ * so by defining the inputs here we
73
+ * do not need to re-define them for the
74
+ * lazy loaded popover.
75
+ */
76
+ ], IonPopover);
77
+ export { IonPopover };
78
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: IonPopover, decorators: [{
79
+ type: Directive,
80
+ args: [{
81
+ selector: 'ion-popover',
82
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
83
+ inputs: POPOVER_INPUTS,
84
+ }]
85
+ }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { template: [{
86
+ type: ContentChild,
87
+ args: [TemplateRef, { static: false }]
88
+ }] } });
89
+ //# sourceMappingURL=popover.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"popover.js","sourceRoot":"","sources":["../../../src/common/overlays/popover.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAEL,YAAY,EACZ,SAAS,EAIT,WAAW,GACZ,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;;AAqCxD,MAAM,cAAc,GAAG;IACrB,WAAW;IACX,UAAU;IACV,OAAO;IACP,qBAAqB;IACrB,iBAAiB;IACjB,UAAU;IACV,iBAAiB;IACjB,gBAAgB;IAChB,OAAO;IACP,WAAW;IACX,QAAQ;IACR,eAAe;IACf,gBAAgB;IAChB,MAAM;IACN,cAAc;IACd,aAAa;IACb,SAAS;IACT,eAAe;IACf,WAAW;IACX,MAAM;IACN,MAAM;CACP,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE,eAAe,CAAC,CAAC;AAiBzE,IAAM,UAAU,GAAhB,MAAM,UAAU;IAQsC;IAP3D,sBAAsB;IACwB,QAAQ,CAAmB;IAEzE,SAAS,GAAG,KAAK,CAAC;IAER,EAAE,CAAc;IAE1B,YAAY,CAAoB,EAAE,CAAa,EAAY,CAAS;QAAT,MAAC,GAAD,CAAC,CAAQ;QAClE,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC,aAAa,CAAC;QAE1B,IAAI,CAAC,EAAE,CAAC,gBAAgB,CAAC,UAAU,EAAE,GAAG,EAAE;YACxC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;YACtB,CAAC,CAAC,aAAa,EAAE,CAAC;QACpB,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,EAAE,CAAC,gBAAgB,CAAC,YAAY,EAAE,GAAG,EAAE;YAC1C,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;YACvB,CAAC,CAAC,aAAa,EAAE,CAAC;QACpB,CAAC,CAAC,CAAC;QACH,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE;YAC1B,sBAAsB;YACtB,uBAAuB;YACvB,uBAAuB;YACvB,sBAAsB;YACtB,YAAY;YACZ,aAAa;YACb,aAAa;YACb,YAAY;SACb,CAAC,CAAC;IACL,CAAC;uGA7BU,UAAU;2FAAV,UAAU,+oBAEP,WAAW;;AAFd,UAAU;IAftB,QAAQ,CAAC;QACR,MAAM,EAAE,cAAc;QACtB,OAAO,EAAE,eAAe;KACzB,CAAC;IACF;;;;;OAKG;GAMU,UAAU,CA8BtB;;2FA9BY,UAAU;kBALtB,SAAS;mBAAC;oBACT,QAAQ,EAAE,aAAa;oBACvB,uEAAuE;oBACvE,MAAM,EAAE,cAAc;iBACvB;;sBAGE,YAAY;uBAAC,WAAW,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE"}
@@ -0,0 +1,28 @@
1
+ import { ApplicationRef, ChangeDetectorRef, ComponentRef, EnvironmentInjector, InjectionToken, Injector, NgZone } from '@angular/core';
2
+ import { FrameworkDelegate } from '@ionic/core/components';
3
+ import * as i0 from "@angular/core";
4
+ export declare const IonModalToken: InjectionToken<HTMLIonModalElement>;
5
+ export declare class AngularDelegate {
6
+ private zone;
7
+ private applicationRef;
8
+ private config;
9
+ create(environmentInjector: EnvironmentInjector, injector: Injector, elementReferenceKey?: string, customInjector?: Injector): AngularFrameworkDelegate;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<AngularDelegate, never>;
11
+ static ɵprov: i0.ɵɵInjectableDeclaration<AngularDelegate>;
12
+ }
13
+ export declare class AngularFrameworkDelegate implements FrameworkDelegate {
14
+ private environmentInjector;
15
+ private injector;
16
+ private applicationRef;
17
+ private zone;
18
+ private elementReferenceKey?;
19
+ private enableSignalsSupport?;
20
+ private customInjector?;
21
+ private elRefMap;
22
+ private elEventsMap;
23
+ constructor(environmentInjector: EnvironmentInjector, injector: Injector, applicationRef: ApplicationRef, zone: NgZone, elementReferenceKey?: string | undefined, enableSignalsSupport?: boolean | undefined, customInjector?: Injector | undefined);
24
+ attachViewToDom(container: any, component: any, params?: any, cssClasses?: string[]): Promise<any>;
25
+ removeViewFromDom(_container: any, component: any): Promise<void>;
26
+ }
27
+ export declare const attachView: (zone: NgZone, environmentInjector: EnvironmentInjector, injector: Injector, applicationRef: ApplicationRef, elRefMap: WeakMap<HTMLElement, ComponentRef<any>>, elEventsMap: WeakMap<HTMLElement, () => void>, container: any, component: any, params: any, cssClasses: string[] | undefined, elementReferenceKey: string | undefined, enableSignalsSupport: boolean | undefined, customInjector?: Injector) => any;
28
+ export declare const bindLifecycleEvents: (zone: NgZone, changeDetectorRef: ChangeDetectorRef, instance: any, element: HTMLElement) => (() => void);
@@ -0,0 +1,229 @@
1
+ import { ApplicationRef, createComponent, inject, Injectable, InjectionToken, Injector, NgZone, } from '@angular/core';
2
+ import { LIFECYCLE_DID_ENTER, LIFECYCLE_DID_LEAVE, LIFECYCLE_WILL_ENTER, LIFECYCLE_WILL_LEAVE, LIFECYCLE_WILL_UNLOAD, } from '@ionic/core/components';
3
+ import { NavParams } from '../directives/navigation/nav-params';
4
+ import { ConfigToken } from './config';
5
+ import * as i0 from "@angular/core";
6
+ // Token for injecting the modal element
7
+ export const IonModalToken = new InjectionToken('IonModalToken');
8
+ // TODO(FW-2827): types
9
+ export class AngularDelegate {
10
+ zone = inject(NgZone);
11
+ applicationRef = inject(ApplicationRef);
12
+ config = inject(ConfigToken);
13
+ create(environmentInjector, injector, elementReferenceKey, customInjector) {
14
+ return new AngularFrameworkDelegate(environmentInjector, injector, this.applicationRef, this.zone, elementReferenceKey, this.config.useSetInputAPI ?? false, customInjector);
15
+ }
16
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: AngularDelegate, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
17
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: AngularDelegate });
18
+ }
19
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: AngularDelegate, decorators: [{
20
+ type: Injectable
21
+ }] });
22
+ export class AngularFrameworkDelegate {
23
+ environmentInjector;
24
+ injector;
25
+ applicationRef;
26
+ zone;
27
+ elementReferenceKey;
28
+ enableSignalsSupport;
29
+ customInjector;
30
+ elRefMap = new WeakMap();
31
+ elEventsMap = new WeakMap();
32
+ constructor(environmentInjector, injector, applicationRef, zone, elementReferenceKey, enableSignalsSupport, customInjector) {
33
+ this.environmentInjector = environmentInjector;
34
+ this.injector = injector;
35
+ this.applicationRef = applicationRef;
36
+ this.zone = zone;
37
+ this.elementReferenceKey = elementReferenceKey;
38
+ this.enableSignalsSupport = enableSignalsSupport;
39
+ this.customInjector = customInjector;
40
+ }
41
+ attachViewToDom(container, component, params, cssClasses) {
42
+ return this.zone.run(() => {
43
+ return new Promise((resolve) => {
44
+ const componentProps = {
45
+ ...params,
46
+ };
47
+ /**
48
+ * Ionic Angular passes a reference to a modal
49
+ * or popover that can be accessed using a
50
+ * variable in the overlay component. If
51
+ * elementReferenceKey is defined, then we should
52
+ * pass a reference to the component using
53
+ * elementReferenceKey as the key.
54
+ */
55
+ if (this.elementReferenceKey !== undefined) {
56
+ componentProps[this.elementReferenceKey] = container;
57
+ }
58
+ const el = attachView(this.zone, this.environmentInjector, this.injector, this.applicationRef, this.elRefMap, this.elEventsMap, container, component, componentProps, cssClasses, this.elementReferenceKey, this.enableSignalsSupport, this.customInjector);
59
+ resolve(el);
60
+ });
61
+ });
62
+ }
63
+ removeViewFromDom(_container, component) {
64
+ return this.zone.run(() => {
65
+ return new Promise((resolve) => {
66
+ const componentRef = this.elRefMap.get(component);
67
+ if (componentRef) {
68
+ componentRef.destroy();
69
+ this.elRefMap.delete(component);
70
+ const unbindEvents = this.elEventsMap.get(component);
71
+ if (unbindEvents) {
72
+ unbindEvents();
73
+ this.elEventsMap.delete(component);
74
+ }
75
+ }
76
+ resolve();
77
+ });
78
+ });
79
+ }
80
+ }
81
+ export const attachView = (zone, environmentInjector, injector, applicationRef, elRefMap, elEventsMap, container, component, params, cssClasses, elementReferenceKey, enableSignalsSupport, customInjector) => {
82
+ /**
83
+ * Wraps the injector with a custom injector that
84
+ * provides NavParams to the component.
85
+ *
86
+ * NavParams is a legacy feature from Ionic v3 that allows
87
+ * Angular developers to provide data to a component
88
+ * and access it by providing NavParams as a dependency
89
+ * in the constructor.
90
+ *
91
+ * The modern approach is to access the data directly
92
+ * from the component's class instance.
93
+ */
94
+ const providers = getProviders(params);
95
+ // If this is an ion-modal, provide the modal element as an injectable
96
+ // so components inside the modal can inject it directly
97
+ if (container.tagName.toLowerCase() === 'ion-modal') {
98
+ providers.push({
99
+ provide: IonModalToken,
100
+ useValue: container,
101
+ });
102
+ }
103
+ const childInjector = Injector.create({
104
+ providers,
105
+ parent: customInjector ?? injector,
106
+ });
107
+ const componentRef = createComponent(component, {
108
+ environmentInjector,
109
+ elementInjector: childInjector,
110
+ });
111
+ const instance = componentRef.instance;
112
+ const hostElement = componentRef.location.nativeElement;
113
+ if (params) {
114
+ /**
115
+ * For modals and popovers, a reference to the component is
116
+ * added to `params` during the call to attachViewToDom. If
117
+ * a reference using this name is already set, this means
118
+ * the app is trying to use the name as a component prop,
119
+ * which will cause collisions.
120
+ */
121
+ if (elementReferenceKey && instance[elementReferenceKey] !== undefined) {
122
+ console.error(`[Ionic Error]: ${elementReferenceKey} is a reserved property when using ${container.tagName.toLowerCase()}. Rename or remove the "${elementReferenceKey}" property from ${component.name}.`);
123
+ }
124
+ /**
125
+ * Angular 14.1 added support for setInput
126
+ * so we need to fall back to Object.assign
127
+ * for Angular 14.0.
128
+ */
129
+ if (enableSignalsSupport === true && componentRef.setInput !== undefined) {
130
+ const { modal, popover, ...otherParams } = params;
131
+ /**
132
+ * Any key/value pairs set in componentProps
133
+ * must be set as inputs on the component instance.
134
+ */
135
+ for (const key in otherParams) {
136
+ componentRef.setInput(key, otherParams[key]);
137
+ }
138
+ /**
139
+ * Using setInput will cause an error when
140
+ * setting modal/popover on a component that
141
+ * does not define them as an input. For backwards
142
+ * compatibility purposes we fall back to using
143
+ * Object.assign for these properties.
144
+ */
145
+ if (modal !== undefined) {
146
+ Object.assign(instance, { modal });
147
+ }
148
+ if (popover !== undefined) {
149
+ Object.assign(instance, { popover });
150
+ }
151
+ }
152
+ else {
153
+ Object.assign(instance, params);
154
+ }
155
+ }
156
+ if (cssClasses) {
157
+ for (const cssClass of cssClasses) {
158
+ hostElement.classList.add(cssClass);
159
+ }
160
+ }
161
+ const unbindEvents = bindLifecycleEvents(zone, componentRef.changeDetectorRef, instance, hostElement);
162
+ container.appendChild(hostElement);
163
+ applicationRef.attachView(componentRef.hostView);
164
+ /**
165
+ * Run change detection on the freshly attached view so Angular's init hooks
166
+ * (`ngOnInit`, `ngAfterViewInit`) fire and template bindings (e.g.
167
+ * `<ion-nav [root]="rootPage">`) apply during this synchronous pass, before the
168
+ * web component runs its load lifecycle and dispatches its Ionic lifecycle events
169
+ * (`ionViewWillEnter`, etc.). `createComponent` only runs the creation pass; the
170
+ * init hooks and binding updates run during an update pass. Under Zone.js an
171
+ * implicit tick used to cover this, but zoneless Angular schedules no such tick,
172
+ * so without this the binding could land after the element has loaded (too late
173
+ * for `ion-nav` to read it) and the first `ionViewWillEnter` could run before
174
+ * `ngOnInit`.
175
+ */
176
+ componentRef.changeDetectorRef.detectChanges();
177
+ elRefMap.set(hostElement, componentRef);
178
+ elEventsMap.set(hostElement, unbindEvents);
179
+ return hostElement;
180
+ };
181
+ const LIFECYCLES = [
182
+ LIFECYCLE_WILL_ENTER,
183
+ LIFECYCLE_DID_ENTER,
184
+ LIFECYCLE_WILL_LEAVE,
185
+ LIFECYCLE_DID_LEAVE,
186
+ LIFECYCLE_WILL_UNLOAD,
187
+ ];
188
+ export const bindLifecycleEvents = (zone, changeDetectorRef, instance, element) => {
189
+ /**
190
+ * `zone.run` keeps the listener registration (and, under Zone.js, the handler
191
+ * execution) inside the Angular zone, so async work started inside a lifecycle
192
+ * hook is still zone-tracked. Under zoneless Angular it is a passthrough.
193
+ */
194
+ return zone.run(() => {
195
+ const unregisters = LIFECYCLES.filter((eventName) => typeof instance[eventName] === 'function').map((eventName) => {
196
+ const handler = (ev) => {
197
+ instance[eventName](ev.detail);
198
+ /**
199
+ * Ionic lifecycle events (`ionViewWillEnter`, etc.) are dispatched from
200
+ * the web component via a native event listener, so under zoneless
201
+ * Angular nothing schedules change detection for state the hook mutates.
202
+ * Mark the view dirty explicitly. This is a no-op-or-better under Zone.js.
203
+ */
204
+ changeDetectorRef.markForCheck();
205
+ };
206
+ element.addEventListener(eventName, handler);
207
+ return () => element.removeEventListener(eventName, handler);
208
+ });
209
+ return () => unregisters.forEach((fn) => fn());
210
+ });
211
+ };
212
+ const NavParamsToken = new InjectionToken('NavParamsToken');
213
+ const getProviders = (params) => {
214
+ return [
215
+ {
216
+ provide: NavParamsToken,
217
+ useValue: params,
218
+ },
219
+ {
220
+ provide: NavParams,
221
+ useFactory: provideNavParamsInjectable,
222
+ deps: [NavParamsToken],
223
+ },
224
+ ];
225
+ };
226
+ const provideNavParamsInjectable = (params) => {
227
+ return new NavParams(params);
228
+ };
229
+ //# sourceMappingURL=angular-delegate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"angular-delegate.js","sourceRoot":"","sources":["../../../src/common/providers/angular-delegate.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EAGd,eAAe,EAEf,MAAM,EACN,UAAU,EACV,cAAc,EACd,QAAQ,EACR,MAAM,GACP,MAAM,eAAe,CAAC;AACvB,OAAO,EAEL,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAEhE,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;;AAE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QACD;YACE,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,0BAA0B;YACtC,IAAI,EAAE,CAAC,cAAc,CAAC;SACvB;KACF,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,0BAA0B,GAAG,CAAC,MAA8B,EAAE,EAAE;IACpE,OAAO,IAAI,SAAS,CAAC,MAAM,CAAC,CAAC;AAC/B,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import type { IonicConfig } from '@ionic/core/components';
3
+ import * as i0 from "@angular/core";
4
+ export declare class Config {
5
+ get(key: keyof IonicConfig, fallback?: any): any;
6
+ getBoolean(key: keyof IonicConfig, fallback?: boolean): boolean;
7
+ getNumber(key: keyof IonicConfig, fallback?: number): number;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<Config, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<Config>;
10
+ }
11
+ export declare const ConfigToken: InjectionToken<any>;
@@ -0,0 +1,44 @@
1
+ import { Injectable, InjectionToken } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export class Config {
4
+ get(key, fallback) {
5
+ const c = getConfig();
6
+ if (c) {
7
+ return c.get(key, fallback);
8
+ }
9
+ return null;
10
+ }
11
+ getBoolean(key, fallback) {
12
+ const c = getConfig();
13
+ if (c) {
14
+ return c.getBoolean(key, fallback);
15
+ }
16
+ return false;
17
+ }
18
+ getNumber(key, fallback) {
19
+ const c = getConfig();
20
+ if (c) {
21
+ return c.getNumber(key, fallback);
22
+ }
23
+ return 0;
24
+ }
25
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: Config, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
26
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: Config, providedIn: 'root' });
27
+ }
28
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: Config, decorators: [{
29
+ type: Injectable,
30
+ args: [{
31
+ providedIn: 'root',
32
+ }]
33
+ }] });
34
+ export const ConfigToken = new InjectionToken('USERCONFIG');
35
+ const getConfig = () => {
36
+ if (typeof window !== 'undefined') {
37
+ const Ionic = window.Ionic;
38
+ if (Ionic?.config) {
39
+ return Ionic.config;
40
+ }
41
+ }
42
+ return null;
43
+ };
44
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/common/providers/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;;AAQ3D,MAAM,OAAO,MAAM;IACjB,GAAG,CAAC,GAAsB,EAAE,QAAc;QACxC,MAAM,CAAC,GAAG,SAAS,EAAE,CAAC;QACtB,IAAI,CAAC,EAAE,CAAC;YACN,OAAO,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;QAC9B,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,UAAU,CAAC,GAAsB,EAAE,QAAkB;QACnD,MAAM,CAAC,GAAG,SAAS,EAAE,CAAC;QACtB,IAAI,CAAC,EAAE,CAAC;YACN,OAAO,CAAC,CAAC,UAAU,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;QACrC,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,SAAS,CAAC,GAAsB,EAAE,QAAiB;QACjD,MAAM,CAAC,GAAG,SAAS,EAAE,CAAC;QACtB,IAAI,CAAC,EAAE,CAAC;YACN,OAAO,CAAC,CAAC,SAAS,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;QACpC,CAAC;QACD,OAAO,CAAC,CAAC;IACX,CAAC;uGAvBU,MAAM;2GAAN,MAAM,cAFL,MAAM;;2FAEP,MAAM;kBAHlB,UAAU;mBAAC;oBACV,UAAU,EAAE,MAAM;iBACnB;;AA2BD,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,cAAc,CAAM,YAAY,CAAC,CAAC;AAEjE,MAAM,SAAS,GAAG,GAAsB,EAAE;IACxC,IAAI,OAAQ,MAAc,KAAK,WAAW,EAAE,CAAC;QAC3C,MAAM,KAAK,GAAI,MAA6B,CAAC,KAAK,CAAC;QACnD,IAAI,KAAK,EAAE,MAAM,EAAE,CAAC;YAClB,OAAO,KAAK,CAAC,MAAM,CAAC;QACtB,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC"}
@@ -0,0 +1,16 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class DomController {
3
+ /**
4
+ * Schedules a task to run during the READ phase of the next frame.
5
+ * This task should only read the DOM, but never modify it.
6
+ */
7
+ read(cb: RafCallback): void;
8
+ /**
9
+ * Schedules a task to run during the WRITE phase of the next frame.
10
+ * This task should write the DOM, but never READ it.
11
+ */
12
+ write(cb: RafCallback): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<DomController, never>;
14
+ static ɵprov: i0.ɵɵInjectableDeclaration<DomController>;
15
+ }
16
+ export type RafCallback = (timeStamp?: number) => void;
@@ -0,0 +1,44 @@
1
+ import { Injectable } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export class DomController {
4
+ /**
5
+ * Schedules a task to run during the READ phase of the next frame.
6
+ * This task should only read the DOM, but never modify it.
7
+ */
8
+ read(cb) {
9
+ getQueue().read(cb);
10
+ }
11
+ /**
12
+ * Schedules a task to run during the WRITE phase of the next frame.
13
+ * This task should write the DOM, but never READ it.
14
+ */
15
+ write(cb) {
16
+ getQueue().write(cb);
17
+ }
18
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: DomController, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
19
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: DomController, providedIn: 'root' });
20
+ }
21
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: DomController, decorators: [{
22
+ type: Injectable,
23
+ args: [{
24
+ providedIn: 'root',
25
+ }]
26
+ }] });
27
+ const getQueue = () => {
28
+ const win = typeof window !== 'undefined' ? window : null;
29
+ if (win != null) {
30
+ const Ionic = win.Ionic;
31
+ if (Ionic?.queue) {
32
+ return Ionic.queue;
33
+ }
34
+ return {
35
+ read: (cb) => win.requestAnimationFrame(cb),
36
+ write: (cb) => win.requestAnimationFrame(cb),
37
+ };
38
+ }
39
+ return {
40
+ read: (cb) => cb(),
41
+ write: (cb) => cb(),
42
+ };
43
+ };
44
+ //# sourceMappingURL=dom-controller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dom-controller.js","sourceRoot":"","sources":["../../../src/common/providers/dom-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;;AAK3C,MAAM,OAAO,aAAa;IACxB;;;OAGG;IACH,IAAI,CAAC,EAAe;QAClB,QAAQ,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACtB,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,EAAe;QACnB,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACvB,CAAC;uGAfU,aAAa;2GAAb,aAAa,cAFZ,MAAM;;2FAEP,aAAa;kBAHzB,UAAU;mBAAC;oBACV,UAAU,EAAE,MAAM;iBACnB;;AAmBD,MAAM,QAAQ,GAAG,GAAG,EAAE;IACpB,MAAM,GAAG,GAAG,OAAQ,MAAc,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAE,IAAY,CAAC;IAE5E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAChB,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;QACxB,IAAI,KAAK,EAAE,KAAK,EAAE,CAAC;YACjB,OAAO,KAAK,CAAC,KAAK,CAAC;QACrB,CAAC;QAED,OAAO;YACL,IAAI,EAAE,CAAC,EAAO,EAAE,EAAE,CAAC,GAAG,CAAC,qBAAqB,CAAC,EAAE,CAAC;YAChD,KAAK,EAAE,CAAC,EAAO,EAAE,EAAE,CAAC,GAAG,CAAC,qBAAqB,CAAC,EAAE,CAAC;SAClD,CAAC;IACJ,CAAC;IAED,OAAO;QACL,IAAI,EAAE,CAAC,EAAO,EAAE,EAAE,CAAC,EAAE,EAAE;QACvB,KAAK,EAAE,CAAC,EAAO,EAAE,EAAE,CAAC,EAAE,EAAE;KACzB,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,78 @@
1
+ import type { MenuControllerI, AnimationBuilder, MenuI, Animation } from '@ionic/core/components';
2
+ export declare class MenuController implements MenuControllerI {
3
+ private menuController;
4
+ constructor(menuController: MenuControllerI);
5
+ /**
6
+ * Programmatically open the Menu.
7
+ * @param [menuId] Optionally get the menu by its id, or side.
8
+ * @return returns a promise when the menu is fully opened
9
+ */
10
+ open(menuId?: string): Promise<boolean>;
11
+ /**
12
+ * Programmatically close the Menu. If no `menuId` is given as the first
13
+ * argument then it'll close any menu which is open. If a `menuId`
14
+ * is given then it'll close that exact menu.
15
+ * @param [menuId] Optionally get the menu by its id, or side.
16
+ * @return returns a promise when the menu is fully closed
17
+ */
18
+ close(menuId?: string): Promise<boolean>;
19
+ /**
20
+ * Toggle the menu. If it's closed, it will open, and if opened, it
21
+ * will close.
22
+ * @param [menuId] Optionally get the menu by its id, or side.
23
+ * @return returns a promise when the menu has been toggled
24
+ */
25
+ toggle(menuId?: string): Promise<boolean>;
26
+ /**
27
+ * Used to enable or disable a menu. For example, there could be multiple
28
+ * left menus, but only one of them should be able to be opened at the same
29
+ * time. If there are multiple menus on the same side, then enabling one menu
30
+ * will also automatically disable all the others that are on the same side.
31
+ * @param [menuId] Optionally get the menu by its id, or side.
32
+ * @return Returns the instance of the menu, which is useful for chaining.
33
+ */
34
+ enable(shouldEnable: boolean, menuId?: string): Promise<HTMLIonMenuElement | undefined>;
35
+ /**
36
+ * Used to enable or disable the ability to swipe open the menu.
37
+ * @param shouldEnable True if it should be swipe-able, false if not.
38
+ * @param [menuId] Optionally get the menu by its id, or side.
39
+ * @return Returns the instance of the menu, which is useful for chaining.
40
+ */
41
+ swipeGesture(shouldEnable: boolean, menuId?: string): Promise<HTMLIonMenuElement | undefined>;
42
+ /**
43
+ * @param [menuId] Optionally get the menu by its id, or side.
44
+ * @return Returns true if the specified menu is currently open, otherwise false.
45
+ * If the menuId is not specified, it returns true if ANY menu is currenly open.
46
+ */
47
+ isOpen(menuId?: string): Promise<boolean>;
48
+ /**
49
+ * @param [menuId] Optionally get the menu by its id, or side.
50
+ * @return Returns true if the menu is currently enabled, otherwise false.
51
+ */
52
+ isEnabled(menuId?: string): Promise<boolean>;
53
+ /**
54
+ * Used to get a menu instance. If a `menuId` is not provided then it'll
55
+ * return the first menu found. If a `menuId` is `left` or `right`, then
56
+ * it'll return the enabled menu on that side. Otherwise, if a `menuId` is
57
+ * provided, then it'll try to find the menu using the menu's `id`
58
+ * property. If a menu is not found then it'll return `null`.
59
+ * @param [menuId] Optionally get the menu by its id, or side.
60
+ * @return Returns the instance of the menu if found, otherwise `null`.
61
+ */
62
+ get(menuId?: string): Promise<HTMLIonMenuElement | undefined>;
63
+ /**
64
+ * @return Returns the instance of the menu already opened, otherwise `null`.
65
+ */
66
+ getOpen(): Promise<HTMLIonMenuElement | undefined>;
67
+ /**
68
+ * @return Returns an array of all menu instances.
69
+ */
70
+ getMenus(): Promise<HTMLIonMenuElement[]>;
71
+ registerAnimation(name: string, animation: AnimationBuilder): void;
72
+ isAnimating(): Promise<boolean>;
73
+ _getOpenSync(): HTMLIonMenuElement | undefined;
74
+ _createAnimation(type: string, menuCmp: MenuI): Promise<Animation>;
75
+ _register(menu: MenuI): void;
76
+ _unregister(menu: MenuI): void;
77
+ _setOpen(menu: MenuI, shouldOpen: boolean, animated: boolean): Promise<boolean>;
78
+ }