@abp/ng.core 5.0.0-beta.3 → 5.0.0

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 (314) hide show
  1. package/README.md +3 -3
  2. package/bundles/abp-ng.core-locale.umd.js +3 -3
  3. package/bundles/abp-ng.core-locale.umd.js.map +1 -1
  4. package/bundles/abp-ng.core-testing.umd.js +14 -16
  5. package/bundles/abp-ng.core-testing.umd.js.map +1 -1
  6. package/bundles/abp-ng.core.umd.js +345 -240
  7. package/bundles/abp-ng.core.umd.js.map +1 -1
  8. package/esm2015/abp-ng.core.js +1 -1
  9. package/esm2015/lib/abstracts/index.js +1 -1
  10. package/esm2015/lib/abstracts/ng-model.component.js +4 -4
  11. package/esm2015/lib/components/dynamic-layout.component.js +10 -21
  12. package/esm2015/lib/components/index.js +1 -1
  13. package/esm2015/lib/components/replaceable-route-container.component.js +7 -7
  14. package/esm2015/lib/components/router-outlet.component.js +4 -4
  15. package/esm2015/lib/constants/different-locales.js +1 -1
  16. package/esm2015/lib/constants/index.js +1 -1
  17. package/esm2015/lib/core.module.js +33 -13
  18. package/esm2015/lib/directives/autofocus.directive.js +11 -5
  19. package/esm2015/lib/directives/debounce.directive.js +4 -4
  20. package/esm2015/lib/directives/for.directive.js +4 -4
  21. package/esm2015/lib/directives/form-submit.directive.js +4 -4
  22. package/esm2015/lib/directives/index.js +1 -1
  23. package/esm2015/lib/directives/init.directive.js +4 -4
  24. package/esm2015/lib/directives/permission.directive.js +8 -10
  25. package/esm2015/lib/directives/replaceable-template.directive.js +18 -14
  26. package/esm2015/lib/directives/stop-propagation.directive.js +4 -4
  27. package/esm2015/lib/enums/common.js +1 -1
  28. package/esm2015/lib/enums/index.js +1 -1
  29. package/esm2015/lib/guards/auth.guard.js +4 -4
  30. package/esm2015/lib/guards/index.js +1 -1
  31. package/esm2015/lib/guards/permission.guard.js +4 -4
  32. package/esm2015/lib/handlers/oauth-configuration.handler.js +4 -4
  33. package/esm2015/lib/handlers/routes.handler.js +4 -4
  34. package/esm2015/lib/interceptors/api.interceptor.js +4 -4
  35. package/esm2015/lib/interceptors/index.js +1 -1
  36. package/esm2015/lib/localization.module.js +5 -5
  37. package/esm2015/lib/models/auth.js +1 -1
  38. package/esm2015/lib/models/common.js +1 -1
  39. package/esm2015/lib/models/dtos.js +1 -1
  40. package/esm2015/lib/models/environment.js +1 -1
  41. package/esm2015/lib/models/index.js +1 -1
  42. package/esm2015/lib/models/localization.js +1 -1
  43. package/esm2015/lib/models/replaceable-components.js +1 -1
  44. package/esm2015/lib/models/rest.js +1 -1
  45. package/esm2015/lib/models/session.js +1 -1
  46. package/esm2015/lib/models/utility.js +1 -1
  47. package/esm2015/lib/pipes/index.js +1 -1
  48. package/esm2015/lib/pipes/localization.pipe.js +15 -6
  49. package/esm2015/lib/pipes/sort.pipe.js +5 -5
  50. package/esm2015/lib/providers/cookie-language.provider.js +1 -1
  51. package/esm2015/lib/providers/locale.provider.js +1 -1
  52. package/esm2015/lib/proxy/pages/abp/multi-tenancy/abp-tenant.service.js +4 -4
  53. package/esm2015/lib/proxy/pages/abp/multi-tenancy/index.js +1 -1
  54. package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/abp-api-definition.service.js +4 -4
  55. package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/index.js +1 -1
  56. package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-configuration.service.js +4 -4
  57. package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/index.js +1 -1
  58. package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/models.js +1 -1
  59. package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/object-extending/index.js +1 -1
  60. package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/object-extending/models.js +1 -1
  61. package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/multi-tenancy/index.js +1 -1
  62. package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/multi-tenancy/models.js +1 -1
  63. package/esm2015/lib/proxy/volo/abp/http/modeling/index.js +1 -1
  64. package/esm2015/lib/proxy/volo/abp/http/modeling/models.js +1 -1
  65. package/esm2015/lib/proxy/volo/abp/localization/index.js +1 -1
  66. package/esm2015/lib/proxy/volo/abp/localization/models.js +1 -1
  67. package/esm2015/lib/proxy/volo/abp/models.js +1 -1
  68. package/esm2015/lib/services/auth.service.js +4 -4
  69. package/esm2015/lib/services/config-state.service.js +4 -4
  70. package/esm2015/lib/services/content-projection.service.js +4 -4
  71. package/esm2015/lib/services/dom-insertion.service.js +4 -4
  72. package/esm2015/lib/services/environment.service.js +4 -4
  73. package/esm2015/lib/services/http-error-reporter.service.js +4 -4
  74. package/esm2015/lib/services/http-wait.service.js +4 -4
  75. package/esm2015/lib/services/index.js +1 -1
  76. package/esm2015/lib/services/lazy-load.service.js +4 -4
  77. package/esm2015/lib/services/list.service.js +4 -4
  78. package/esm2015/lib/services/localization.service.js +95 -53
  79. package/esm2015/lib/services/multi-tenancy.service.js +4 -4
  80. package/esm2015/lib/services/permission.service.js +4 -4
  81. package/esm2015/lib/services/replaceable-components.service.js +4 -4
  82. package/esm2015/lib/services/resource-wait.service.js +4 -4
  83. package/esm2015/lib/services/rest.service.js +18 -14
  84. package/esm2015/lib/services/router-events.service.js +4 -4
  85. package/esm2015/lib/services/router-wait.service.js +4 -4
  86. package/esm2015/lib/services/routes.service.js +7 -7
  87. package/esm2015/lib/services/session-state.service.js +4 -4
  88. package/esm2015/lib/services/subscription.service.js +4 -4
  89. package/esm2015/lib/services/track-by.service.js +4 -4
  90. package/esm2015/lib/strategies/auth-flow.strategy.js +4 -1
  91. package/esm2015/lib/strategies/container.strategy.js +1 -1
  92. package/esm2015/lib/strategies/content-security.strategy.js +1 -1
  93. package/esm2015/lib/strategies/content.strategy.js +1 -1
  94. package/esm2015/lib/strategies/context.strategy.js +1 -1
  95. package/esm2015/lib/strategies/cross-origin.strategy.js +1 -1
  96. package/esm2015/lib/strategies/dom.strategy.js +1 -1
  97. package/esm2015/lib/strategies/index.js +1 -1
  98. package/esm2015/lib/strategies/loading.strategy.js +1 -1
  99. package/esm2015/lib/strategies/projection.strategy.js +1 -1
  100. package/esm2015/lib/tokens/app-config.token.js +1 -1
  101. package/esm2015/lib/tokens/cookie-language-key.token.js +1 -1
  102. package/esm2015/lib/tokens/index.js +2 -1
  103. package/esm2015/lib/tokens/list.token.js +1 -1
  104. package/esm2015/lib/tokens/localization.token.js +10 -0
  105. package/esm2015/lib/tokens/lodaer-delay.token.js +1 -1
  106. package/esm2015/lib/tokens/manage-profile.token.js +1 -1
  107. package/esm2015/lib/tokens/options.token.js +1 -1
  108. package/esm2015/lib/tokens/tenant-key.token.js +1 -1
  109. package/esm2015/lib/utils/array-utils.js +1 -1
  110. package/esm2015/lib/utils/auth-utils.js +1 -1
  111. package/esm2015/lib/utils/common-utils.js +1 -1
  112. package/esm2015/lib/utils/date-extensions.js +1 -1
  113. package/esm2015/lib/utils/date-utils.js +1 -1
  114. package/esm2015/lib/utils/environment-utils.js +1 -1
  115. package/esm2015/lib/utils/factory-utils.js +1 -1
  116. package/esm2015/lib/utils/file-utils.js +1 -1
  117. package/esm2015/lib/utils/form-utils.js +1 -1
  118. package/esm2015/lib/utils/generator-utils.js +1 -1
  119. package/esm2015/lib/utils/http-utils.js +1 -1
  120. package/esm2015/lib/utils/index.js +1 -1
  121. package/esm2015/lib/utils/initial-utils.js +1 -1
  122. package/esm2015/lib/utils/internal-store-utils.js +1 -1
  123. package/esm2015/lib/utils/lazy-load-utils.js +1 -1
  124. package/esm2015/lib/utils/localization-utils.js +2 -2
  125. package/esm2015/lib/utils/multi-tenancy-utils.js +1 -1
  126. package/esm2015/lib/utils/number-utils.js +1 -1
  127. package/esm2015/lib/utils/object-utils.js +1 -1
  128. package/esm2015/lib/utils/route-utils.js +1 -1
  129. package/esm2015/lib/utils/string-utils.js +1 -1
  130. package/esm2015/lib/utils/tree-utils.js +1 -1
  131. package/esm2015/lib/validators/age.validator.js +1 -1
  132. package/esm2015/lib/validators/credit-card.validator.js +1 -1
  133. package/esm2015/lib/validators/index.js +1 -1
  134. package/esm2015/lib/validators/range.validator.js +1 -1
  135. package/esm2015/lib/validators/required.validator.js +1 -1
  136. package/esm2015/lib/validators/string-length.validator.js +1 -1
  137. package/esm2015/lib/validators/url.validator.js +1 -1
  138. package/esm2015/locale/abp-ng.core-locale.js +1 -1
  139. package/esm2015/locale/public-api.js +1 -1
  140. package/esm2015/locale/utils/register-locale.js +2 -2
  141. package/esm2015/public-api.js +1 -1
  142. package/esm2015/testing/abp-ng.core-testing.js +1 -1
  143. package/esm2015/testing/lib/core-testing.module.js +5 -5
  144. package/esm2015/testing/lib/services/index.js +1 -1
  145. package/esm2015/testing/lib/services/mock-permission.service.js +4 -4
  146. package/esm2015/testing/lib/services/mock-rest.service.js +4 -4
  147. package/esm2015/testing/lib/utils/clear-page.util.js +1 -1
  148. package/esm2015/testing/lib/utils/index.js +1 -1
  149. package/esm2015/testing/lib/utils/wait.util.js +1 -1
  150. package/esm2015/testing/public-api.js +1 -1
  151. package/fesm2015/abp-ng.core-locale.js +1 -1
  152. package/fesm2015/abp-ng.core-locale.js.map +1 -1
  153. package/fesm2015/abp-ng.core-testing.js +10 -10
  154. package/fesm2015/abp-ng.core-testing.js.map +1 -1
  155. package/fesm2015/abp-ng.core.js +330 -248
  156. package/fesm2015/abp-ng.core.js.map +1 -1
  157. package/lib/core.module.d.ts +1 -0
  158. package/lib/directives/autofocus.directive.d.ts +3 -1
  159. package/lib/directives/permission.directive.d.ts +4 -6
  160. package/lib/models/common.d.ts +13 -1
  161. package/lib/models/replaceable-components.d.ts +2 -2
  162. package/lib/models/rest.d.ts +6 -4
  163. package/lib/pipes/localization.pipe.d.ts +1 -1
  164. package/lib/services/environment.service.d.ts +2 -2
  165. package/lib/services/http-error-reporter.service.d.ts +1 -1
  166. package/lib/services/list.service.d.ts +1 -1
  167. package/lib/services/localization.service.d.ts +8 -2
  168. package/lib/services/rest.service.d.ts +1 -0
  169. package/lib/tokens/index.d.ts +1 -0
  170. package/lib/tokens/localization.token.d.ts +6 -0
  171. package/lib/utils/localization-utils.d.ts +1 -1
  172. package/package.json +2 -2
  173. package/esm2015/abp-ng.core.js.map +0 -1
  174. package/esm2015/lib/abstracts/index.js.map +0 -1
  175. package/esm2015/lib/abstracts/ng-model.component.js.map +0 -1
  176. package/esm2015/lib/components/dynamic-layout.component.js.map +0 -1
  177. package/esm2015/lib/components/index.js.map +0 -1
  178. package/esm2015/lib/components/replaceable-route-container.component.js.map +0 -1
  179. package/esm2015/lib/components/router-outlet.component.js.map +0 -1
  180. package/esm2015/lib/constants/different-locales.js.map +0 -1
  181. package/esm2015/lib/constants/index.js.map +0 -1
  182. package/esm2015/lib/core.module.js.map +0 -1
  183. package/esm2015/lib/directives/autofocus.directive.js.map +0 -1
  184. package/esm2015/lib/directives/debounce.directive.js.map +0 -1
  185. package/esm2015/lib/directives/for.directive.js.map +0 -1
  186. package/esm2015/lib/directives/form-submit.directive.js.map +0 -1
  187. package/esm2015/lib/directives/index.js.map +0 -1
  188. package/esm2015/lib/directives/init.directive.js.map +0 -1
  189. package/esm2015/lib/directives/permission.directive.js.map +0 -1
  190. package/esm2015/lib/directives/replaceable-template.directive.js.map +0 -1
  191. package/esm2015/lib/directives/stop-propagation.directive.js.map +0 -1
  192. package/esm2015/lib/enums/common.js.map +0 -1
  193. package/esm2015/lib/enums/index.js.map +0 -1
  194. package/esm2015/lib/guards/auth.guard.js.map +0 -1
  195. package/esm2015/lib/guards/index.js.map +0 -1
  196. package/esm2015/lib/guards/permission.guard.js.map +0 -1
  197. package/esm2015/lib/handlers/oauth-configuration.handler.js.map +0 -1
  198. package/esm2015/lib/handlers/routes.handler.js.map +0 -1
  199. package/esm2015/lib/interceptors/api.interceptor.js.map +0 -1
  200. package/esm2015/lib/interceptors/index.js.map +0 -1
  201. package/esm2015/lib/localization.module.js.map +0 -1
  202. package/esm2015/lib/models/auth.js.map +0 -1
  203. package/esm2015/lib/models/common.js.map +0 -1
  204. package/esm2015/lib/models/dtos.js.map +0 -1
  205. package/esm2015/lib/models/environment.js.map +0 -1
  206. package/esm2015/lib/models/index.js.map +0 -1
  207. package/esm2015/lib/models/localization.js.map +0 -1
  208. package/esm2015/lib/models/replaceable-components.js.map +0 -1
  209. package/esm2015/lib/models/rest.js.map +0 -1
  210. package/esm2015/lib/models/session.js.map +0 -1
  211. package/esm2015/lib/models/utility.js.map +0 -1
  212. package/esm2015/lib/pipes/index.js.map +0 -1
  213. package/esm2015/lib/pipes/localization.pipe.js.map +0 -1
  214. package/esm2015/lib/pipes/sort.pipe.js.map +0 -1
  215. package/esm2015/lib/providers/cookie-language.provider.js.map +0 -1
  216. package/esm2015/lib/providers/locale.provider.js.map +0 -1
  217. package/esm2015/lib/proxy/pages/abp/multi-tenancy/abp-tenant.service.js.map +0 -1
  218. package/esm2015/lib/proxy/pages/abp/multi-tenancy/index.js.map +0 -1
  219. package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/abp-api-definition.service.js.map +0 -1
  220. package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/index.js.map +0 -1
  221. package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-configuration.service.js.map +0 -1
  222. package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/index.js.map +0 -1
  223. package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/models.js.map +0 -1
  224. package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/object-extending/index.js.map +0 -1
  225. package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/object-extending/models.js.map +0 -1
  226. package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/multi-tenancy/index.js.map +0 -1
  227. package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/multi-tenancy/models.js.map +0 -1
  228. package/esm2015/lib/proxy/volo/abp/http/modeling/index.js.map +0 -1
  229. package/esm2015/lib/proxy/volo/abp/http/modeling/models.js.map +0 -1
  230. package/esm2015/lib/proxy/volo/abp/localization/index.js.map +0 -1
  231. package/esm2015/lib/proxy/volo/abp/localization/models.js.map +0 -1
  232. package/esm2015/lib/proxy/volo/abp/models.js.map +0 -1
  233. package/esm2015/lib/services/auth.service.js.map +0 -1
  234. package/esm2015/lib/services/config-state.service.js.map +0 -1
  235. package/esm2015/lib/services/content-projection.service.js.map +0 -1
  236. package/esm2015/lib/services/dom-insertion.service.js.map +0 -1
  237. package/esm2015/lib/services/environment.service.js.map +0 -1
  238. package/esm2015/lib/services/http-error-reporter.service.js.map +0 -1
  239. package/esm2015/lib/services/http-wait.service.js.map +0 -1
  240. package/esm2015/lib/services/index.js.map +0 -1
  241. package/esm2015/lib/services/lazy-load.service.js.map +0 -1
  242. package/esm2015/lib/services/list.service.js.map +0 -1
  243. package/esm2015/lib/services/localization.service.js.map +0 -1
  244. package/esm2015/lib/services/multi-tenancy.service.js.map +0 -1
  245. package/esm2015/lib/services/permission.service.js.map +0 -1
  246. package/esm2015/lib/services/replaceable-components.service.js.map +0 -1
  247. package/esm2015/lib/services/resource-wait.service.js.map +0 -1
  248. package/esm2015/lib/services/rest.service.js.map +0 -1
  249. package/esm2015/lib/services/router-events.service.js.map +0 -1
  250. package/esm2015/lib/services/router-wait.service.js.map +0 -1
  251. package/esm2015/lib/services/routes.service.js.map +0 -1
  252. package/esm2015/lib/services/session-state.service.js.map +0 -1
  253. package/esm2015/lib/services/subscription.service.js.map +0 -1
  254. package/esm2015/lib/services/track-by.service.js.map +0 -1
  255. package/esm2015/lib/strategies/auth-flow.strategy.js.map +0 -1
  256. package/esm2015/lib/strategies/container.strategy.js.map +0 -1
  257. package/esm2015/lib/strategies/content-security.strategy.js.map +0 -1
  258. package/esm2015/lib/strategies/content.strategy.js.map +0 -1
  259. package/esm2015/lib/strategies/context.strategy.js.map +0 -1
  260. package/esm2015/lib/strategies/cross-origin.strategy.js.map +0 -1
  261. package/esm2015/lib/strategies/dom.strategy.js.map +0 -1
  262. package/esm2015/lib/strategies/index.js.map +0 -1
  263. package/esm2015/lib/strategies/loading.strategy.js.map +0 -1
  264. package/esm2015/lib/strategies/projection.strategy.js.map +0 -1
  265. package/esm2015/lib/tokens/app-config.token.js.map +0 -1
  266. package/esm2015/lib/tokens/cookie-language-key.token.js.map +0 -1
  267. package/esm2015/lib/tokens/index.js.map +0 -1
  268. package/esm2015/lib/tokens/list.token.js.map +0 -1
  269. package/esm2015/lib/tokens/lodaer-delay.token.js.map +0 -1
  270. package/esm2015/lib/tokens/manage-profile.token.js.map +0 -1
  271. package/esm2015/lib/tokens/options.token.js.map +0 -1
  272. package/esm2015/lib/tokens/tenant-key.token.js.map +0 -1
  273. package/esm2015/lib/utils/array-utils.js.map +0 -1
  274. package/esm2015/lib/utils/auth-utils.js.map +0 -1
  275. package/esm2015/lib/utils/common-utils.js.map +0 -1
  276. package/esm2015/lib/utils/date-extensions.js.map +0 -1
  277. package/esm2015/lib/utils/date-utils.js.map +0 -1
  278. package/esm2015/lib/utils/environment-utils.js.map +0 -1
  279. package/esm2015/lib/utils/factory-utils.js.map +0 -1
  280. package/esm2015/lib/utils/file-utils.js.map +0 -1
  281. package/esm2015/lib/utils/form-utils.js.map +0 -1
  282. package/esm2015/lib/utils/generator-utils.js.map +0 -1
  283. package/esm2015/lib/utils/http-utils.js.map +0 -1
  284. package/esm2015/lib/utils/index.js.map +0 -1
  285. package/esm2015/lib/utils/initial-utils.js.map +0 -1
  286. package/esm2015/lib/utils/internal-store-utils.js.map +0 -1
  287. package/esm2015/lib/utils/lazy-load-utils.js.map +0 -1
  288. package/esm2015/lib/utils/localization-utils.js.map +0 -1
  289. package/esm2015/lib/utils/multi-tenancy-utils.js.map +0 -1
  290. package/esm2015/lib/utils/number-utils.js.map +0 -1
  291. package/esm2015/lib/utils/object-utils.js.map +0 -1
  292. package/esm2015/lib/utils/route-utils.js.map +0 -1
  293. package/esm2015/lib/utils/string-utils.js.map +0 -1
  294. package/esm2015/lib/utils/tree-utils.js.map +0 -1
  295. package/esm2015/lib/validators/age.validator.js.map +0 -1
  296. package/esm2015/lib/validators/credit-card.validator.js.map +0 -1
  297. package/esm2015/lib/validators/index.js.map +0 -1
  298. package/esm2015/lib/validators/range.validator.js.map +0 -1
  299. package/esm2015/lib/validators/required.validator.js.map +0 -1
  300. package/esm2015/lib/validators/string-length.validator.js.map +0 -1
  301. package/esm2015/lib/validators/url.validator.js.map +0 -1
  302. package/esm2015/locale/abp-ng.core-locale.js.map +0 -1
  303. package/esm2015/locale/public-api.js.map +0 -1
  304. package/esm2015/locale/utils/register-locale.js.map +0 -1
  305. package/esm2015/public-api.js.map +0 -1
  306. package/esm2015/testing/abp-ng.core-testing.js.map +0 -1
  307. package/esm2015/testing/lib/core-testing.module.js.map +0 -1
  308. package/esm2015/testing/lib/services/index.js.map +0 -1
  309. package/esm2015/testing/lib/services/mock-permission.service.js.map +0 -1
  310. package/esm2015/testing/lib/services/mock-rest.service.js.map +0 -1
  311. package/esm2015/testing/lib/utils/clear-page.util.js.map +0 -1
  312. package/esm2015/testing/lib/utils/index.js.map +0 -1
  313. package/esm2015/testing/lib/utils/wait.util.js.map +0 -1
  314. package/esm2015/testing/public-api.js.map +0 -1
@@ -1,14 +1,14 @@
1
1
  import * as i0 from '@angular/core';
2
- import { ChangeDetectorRef, Component, Input, InjectionToken, Injectable, Inject, Optional, SkipSelf, isDevMode, Directive, EventEmitter, Output, Self, Injector, Pipe, NgModule, APP_INITIALIZER, LOCALE_ID, NgModuleFactory, Compiler, ComponentFactoryResolver, ApplicationRef, inject } from '@angular/core';
2
+ import { ChangeDetectorRef, Component, Input, InjectionToken, Injectable, Inject, isDevMode, Optional, SkipSelf, Directive, EventEmitter, Output, Self, Injector, Pipe, NgModule, APP_INITIALIZER, LOCALE_ID, NgModuleFactory, Compiler, ComponentFactoryResolver, ApplicationRef, inject } from '@angular/core';
3
3
  import * as i1$1 from '@angular/router';
4
4
  import { PRIMARY_OUTLET, NavigationCancel, NavigationEnd, NavigationError, NavigationStart, ActivatedRoute, Router, RouterModule } from '@angular/router';
5
5
  import * as i5 from '@angular/common';
6
6
  import { registerLocaleData, DOCUMENT, CommonModule } from '@angular/common';
7
- import { BehaviorSubject, Subject, throwError, from, Subscription, fromEvent, of, timer, pipe, Observable, concat, ReplaySubject } from 'rxjs';
7
+ import { BehaviorSubject, Subject, throwError, combineLatest, from, Subscription, fromEvent, of, timer, pipe, Observable, concat, ReplaySubject } from 'rxjs';
8
8
  import { map, distinctUntilChanged, filter, catchError, switchMap, take, mapTo, debounceTime, takeUntil, tap, finalize, retryWhen, delay, shareReplay } from 'rxjs/operators';
9
9
  import { __rest, __awaiter } from 'tslib';
10
10
  import * as i1 from '@angular/common/http';
11
- import { HttpHeaders, HttpClient, HttpClientModule, HttpClientXsrfModule, HTTP_INTERCEPTORS } from '@angular/common/http';
11
+ import { HttpParams, HttpHeaders, HttpClient, HttpClientModule, HttpClientXsrfModule, HTTP_INTERCEPTORS } from '@angular/common/http';
12
12
  import compare from 'just-compare';
13
13
  import * as i1$2 from '@angular/forms';
14
14
  import { FormsModule, ReactiveFormsModule, Validators } from '@angular/forms';
@@ -56,9 +56,9 @@ class AbstractNgModelComponent {
56
56
  this.disabled = isDisabled;
57
57
  }
58
58
  }
59
- AbstractNgModelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AbstractNgModelComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
60
- AbstractNgModelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AbstractNgModelComponent, selector: "ng-component", inputs: { disabled: "disabled", readonly: "readonly", valueFn: "valueFn", valueLimitFn: "valueLimitFn", value: "value" }, ngImport: i0, template: '', isInline: true });
61
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AbstractNgModelComponent, decorators: [{
59
+ AbstractNgModelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AbstractNgModelComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
60
+ AbstractNgModelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: AbstractNgModelComponent, selector: "ng-component", inputs: { disabled: "disabled", readonly: "readonly", valueFn: "valueFn", valueLimitFn: "valueLimitFn", value: "value" }, ngImport: i0, template: '', isInline: true });
61
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AbstractNgModelComponent, decorators: [{
62
62
  type: Component,
63
63
  args: [{ template: '' }]
64
64
  }], ctorParameters: function () { return [{ type: i0.Injector }]; }, propDecorators: { disabled: [{
@@ -73,6 +73,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
73
73
  type: Input
74
74
  }] } });
75
75
 
76
+ const LOCALIZATIONS = new InjectionToken('LOCALIZATIONS');
77
+ function localizationContributor(localizations) {
78
+ if (localizations) {
79
+ localizations$.next([...localizations$.value, ...localizations]);
80
+ }
81
+ }
82
+ const localizations$ = new BehaviorSubject([]);
83
+
76
84
  const CORE_OPTIONS = new InjectionToken('CORE_OPTIONS');
77
85
  function coreOptionsFactory(_a) {
78
86
  var options = __rest(_a, []);
@@ -113,7 +121,7 @@ function createLocalizationPipeKeyGenerator(localization) {
113
121
  function createLocalizationFinder(localization) {
114
122
  const localize = createLocalizer(localization);
115
123
  return (resourceNames, keys) => {
116
- resourceNames = resourceNames.concat(localization.defaultResourceName).filter(Boolean);
124
+ resourceNames = resourceNames.concat(localization.defaultResourceName || '').filter(Boolean);
117
125
  const resourceCount = resourceNames.length;
118
126
  const keyCount = keys.length;
119
127
  for (let i = 0; i < resourceCount; i++) {
@@ -271,9 +279,9 @@ class EnvironmentService {
271
279
  this.store.set(environment);
272
280
  }
273
281
  }
274
- EnvironmentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: EnvironmentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
275
- EnvironmentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: EnvironmentService, providedIn: 'root' });
276
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: EnvironmentService, decorators: [{
282
+ EnvironmentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: EnvironmentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
283
+ EnvironmentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: EnvironmentService, providedIn: 'root' });
284
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: EnvironmentService, decorators: [{
277
285
  type: Injectable,
278
286
  args: [{ providedIn: 'root' }]
279
287
  }] });
@@ -297,9 +305,9 @@ class HttpErrorReporterService {
297
305
  return this._errors$.value;
298
306
  }
299
307
  }
300
- HttpErrorReporterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: HttpErrorReporterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
301
- HttpErrorReporterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: HttpErrorReporterService, providedIn: 'root' });
302
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: HttpErrorReporterService, decorators: [{
308
+ HttpErrorReporterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: HttpErrorReporterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
309
+ HttpErrorReporterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: HttpErrorReporterService, providedIn: 'root' });
310
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: HttpErrorReporterService, decorators: [{
303
311
  type: Injectable,
304
312
  args: [{ providedIn: 'root' }]
305
313
  }] });
@@ -325,22 +333,26 @@ class RestService {
325
333
  const { observe = "body" /* Body */, skipHandleError } = config;
326
334
  return this.http
327
335
  .request(method, api + request.url, Object.assign(Object.assign({ observe }, (params && {
328
- params: Object.keys(params).reduce((acc, key) => {
329
- const value = params[key];
330
- if (isUndefinedOrEmptyString(value))
331
- return acc;
332
- if (value === null && !this.options.sendNullsAsQueryParam)
333
- return acc;
334
- acc[key] = value;
335
- return acc;
336
- }, {}),
336
+ params: this.getParams(params, config.httpParamEncoder),
337
337
  })), options))
338
338
  .pipe(catchError(err => (skipHandleError ? throwError(err) : this.handleError(err))));
339
339
  }
340
+ getParams(params, encoder) {
341
+ const httpParams = encoder ? new HttpParams({ encoder }) : new HttpParams();
342
+ return Object.keys(params).reduce((acc, key) => {
343
+ const value = params[key];
344
+ if (isUndefinedOrEmptyString(value))
345
+ return acc;
346
+ if (value === null && !this.options.sendNullsAsQueryParam)
347
+ return acc;
348
+ acc = acc.set(key, value);
349
+ return acc;
350
+ }, httpParams);
351
+ }
340
352
  }
341
- RestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RestService, deps: [{ token: CORE_OPTIONS }, { token: i1.HttpClient }, { token: EnvironmentService }, { token: HttpErrorReporterService }], target: i0.ɵɵFactoryTarget.Injectable });
342
- RestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RestService, providedIn: 'root' });
343
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RestService, decorators: [{
353
+ RestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RestService, deps: [{ token: CORE_OPTIONS }, { token: i1.HttpClient }, { token: EnvironmentService }, { token: HttpErrorReporterService }], target: i0.ɵɵFactoryTarget.Injectable });
354
+ RestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RestService, providedIn: 'root' });
355
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RestService, decorators: [{
344
356
  type: Injectable,
345
357
  args: [{
346
358
  providedIn: 'root',
@@ -362,9 +374,9 @@ class AbpApplicationConfigurationService {
362
374
  }, { apiName: this.apiName });
363
375
  }
364
376
  }
365
- AbpApplicationConfigurationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AbpApplicationConfigurationService, deps: [{ token: RestService }], target: i0.ɵɵFactoryTarget.Injectable });
366
- AbpApplicationConfigurationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AbpApplicationConfigurationService, providedIn: 'root' });
367
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AbpApplicationConfigurationService, decorators: [{
377
+ AbpApplicationConfigurationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AbpApplicationConfigurationService, deps: [{ token: RestService }], target: i0.ɵɵFactoryTarget.Injectable });
378
+ AbpApplicationConfigurationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AbpApplicationConfigurationService, providedIn: 'root' });
379
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AbpApplicationConfigurationService, decorators: [{
368
380
  type: Injectable,
369
381
  args: [{
370
382
  providedIn: 'root',
@@ -476,9 +488,9 @@ class ConfigStateService {
476
488
  }));
477
489
  }
478
490
  }
479
- ConfigStateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ConfigStateService, deps: [{ token: AbpApplicationConfigurationService }], target: i0.ɵɵFactoryTarget.Injectable });
480
- ConfigStateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ConfigStateService, providedIn: 'root' });
481
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ConfigStateService, decorators: [{
491
+ ConfigStateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ConfigStateService, deps: [{ token: AbpApplicationConfigurationService }], target: i0.ɵɵFactoryTarget.Injectable });
492
+ ConfigStateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ConfigStateService, providedIn: 'root' });
493
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ConfigStateService, decorators: [{
482
494
  type: Injectable,
483
495
  args: [{
484
496
  providedIn: 'root',
@@ -554,9 +566,9 @@ class SessionStateService {
554
566
  document.documentElement.setAttribute('lang', language);
555
567
  }
556
568
  }
557
- SessionStateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: SessionStateService, deps: [{ token: ConfigStateService }], target: i0.ɵɵFactoryTarget.Injectable });
558
- SessionStateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: SessionStateService, providedIn: 'root' });
559
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: SessionStateService, decorators: [{
569
+ SessionStateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SessionStateService, deps: [{ token: ConfigStateService }], target: i0.ɵɵFactoryTarget.Injectable });
570
+ SessionStateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SessionStateService, providedIn: 'root' });
571
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SessionStateService, decorators: [{
560
572
  type: Injectable,
561
573
  args: [{
562
574
  providedIn: 'root',
@@ -570,9 +582,12 @@ class LocalizationService {
570
582
  this.configState = configState;
571
583
  this.latestLang = this.sessionState.getLanguage();
572
584
  this._languageChange$ = new Subject();
585
+ this.uiLocalizations$ = new BehaviorSubject(new Map());
586
+ this.localizations$ = new BehaviorSubject(new Map());
573
587
  if (otherInstance)
574
588
  throw new Error('LocalizationService should have only one instance.');
575
589
  this.listenToSetLanguage();
590
+ this.initLocalizationValues();
576
591
  }
577
592
  /**
578
593
  * Returns currently selected language
@@ -583,6 +598,44 @@ class LocalizationService {
583
598
  get languageChange$() {
584
599
  return this._languageChange$.asObservable();
585
600
  }
601
+ initLocalizationValues() {
602
+ localizations$.subscribe(val => this.addLocalization(val));
603
+ const remoteLocalizations$ = this.configState.getDeep$('localization.values');
604
+ const currentLanguage$ = this.sessionState.getLanguage$();
605
+ const uiLocalizations$ = combineLatest([currentLanguage$, this.uiLocalizations$]).pipe(map(([currentLang, localizations]) => localizations.get(currentLang)));
606
+ combineLatest([remoteLocalizations$, uiLocalizations$])
607
+ .pipe(map(([remote, local]) => {
608
+ if (remote) {
609
+ if (!local) {
610
+ local = new Map();
611
+ }
612
+ Object.entries(remote).forEach(entry => {
613
+ const resourceName = entry[0];
614
+ const remoteTexts = entry[1];
615
+ let resource = local.get(resourceName) || {};
616
+ resource = Object.assign(Object.assign({}, resource), remoteTexts);
617
+ local.set(resourceName, resource);
618
+ });
619
+ }
620
+ return local;
621
+ }))
622
+ .subscribe(val => this.localizations$.next(val));
623
+ }
624
+ addLocalization(localizations) {
625
+ if (!localizations)
626
+ return;
627
+ const localizationMap = this.uiLocalizations$.value;
628
+ localizations.forEach(loc => {
629
+ const cultureMap = localizationMap.get(loc.culture) || new Map();
630
+ loc.resources.forEach(res => {
631
+ let resource = cultureMap.get(res.resourceName) || {};
632
+ resource = Object.assign(Object.assign({}, resource), res.texts);
633
+ cultureMap.set(res.resourceName, resource);
634
+ });
635
+ localizationMap.set(loc.culture, cultureMap);
636
+ });
637
+ this.uiLocalizations$.next(localizationMap);
638
+ }
586
639
  listenToSetLanguage() {
587
640
  this.sessionState
588
641
  .onLanguageChange$()
@@ -605,13 +658,13 @@ class LocalizationService {
605
658
  get(key, ...interpolateParams) {
606
659
  return this.configState
607
660
  .getAll$()
608
- .pipe(map(state => getLocalization(state, key, ...interpolateParams)));
661
+ .pipe(map(state => this.getLocalization(state, key, ...interpolateParams)));
609
662
  }
610
663
  getResource(resourceName) {
611
- return this.configState.getDeep(`localization.values.${resourceName}`);
664
+ return this.localizations$.value.get(resourceName);
612
665
  }
613
666
  getResource$(resourceName) {
614
- return this.configState.getDeep$(`localization.values.${resourceName}`);
667
+ return this.localizations$.pipe(map(res => res.get(resourceName)));
615
668
  }
616
669
  /**
617
670
  * Returns localized text with the given interpolation parameters in current language.
@@ -619,7 +672,7 @@ class LocalizationService {
619
672
  * @param interpolateParams Values to intepolate.
620
673
  */
621
674
  instant(key, ...interpolateParams) {
622
- return getLocalization(this.configState.getAll(), key, ...interpolateParams);
675
+ return this.getLocalization(this.configState.getAll(), key, ...interpolateParams);
623
676
  }
624
677
  localize(resourceName, key, defaultValue) {
625
678
  return this.configState.getOne$('localization').pipe(map(createLocalizer), map(localize => localize(resourceName, key, defaultValue)));
@@ -635,61 +688,61 @@ class LocalizationService {
635
688
  const localization = this.configState.getOne('localization');
636
689
  return createLocalizerWithFallback(localization)(resourceNames, keys, defaultValue);
637
690
  }
691
+ getLocalization(state, key, ...interpolateParams) {
692
+ if (!key)
693
+ key = '';
694
+ let defaultValue;
695
+ if (typeof key !== 'string') {
696
+ defaultValue = key.defaultValue;
697
+ key = key.key;
698
+ }
699
+ const keys = key.split('::');
700
+ const warn = (message) => {
701
+ if (isDevMode)
702
+ console.warn(message);
703
+ };
704
+ if (keys.length < 2) {
705
+ warn('The localization source separator (::) not found.');
706
+ return defaultValue || key;
707
+ }
708
+ if (!state.localization)
709
+ return defaultValue || keys[1];
710
+ const sourceName = keys[0] || state.localization.defaultResourceName;
711
+ const sourceKey = keys[1];
712
+ if (sourceName === '_') {
713
+ return defaultValue || sourceKey;
714
+ }
715
+ if (!sourceName) {
716
+ warn('Localization source name is not specified and the defaultResourceName was not defined!');
717
+ return defaultValue || sourceKey;
718
+ }
719
+ const source = this.localizations$.value.get(sourceName);
720
+ if (!source) {
721
+ warn('Could not find localization source: ' + sourceName);
722
+ return defaultValue || sourceKey;
723
+ }
724
+ let localization = source[sourceKey];
725
+ if (typeof localization === 'undefined') {
726
+ return defaultValue || sourceKey;
727
+ }
728
+ interpolateParams = interpolateParams.filter(params => params != null);
729
+ if (localization)
730
+ localization = interpolate(localization, interpolateParams);
731
+ if (typeof localization !== 'string')
732
+ localization = '';
733
+ return localization || defaultValue || key;
734
+ }
638
735
  }
639
- LocalizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LocalizationService, deps: [{ token: SessionStateService }, { token: i0.Injector }, { token: LocalizationService, optional: true, skipSelf: true }, { token: ConfigStateService }], target: i0.ɵɵFactoryTarget.Injectable });
640
- LocalizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LocalizationService, providedIn: 'root' });
641
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LocalizationService, decorators: [{
736
+ LocalizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: LocalizationService, deps: [{ token: SessionStateService }, { token: i0.Injector }, { token: LocalizationService, optional: true, skipSelf: true }, { token: ConfigStateService }], target: i0.ɵɵFactoryTarget.Injectable });
737
+ LocalizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: LocalizationService, providedIn: 'root' });
738
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: LocalizationService, decorators: [{
642
739
  type: Injectable,
643
740
  args: [{ providedIn: 'root' }]
644
741
  }], ctorParameters: function () { return [{ type: SessionStateService }, { type: i0.Injector }, { type: LocalizationService, decorators: [{
645
742
  type: Optional
646
743
  }, {
647
744
  type: SkipSelf
648
- }] }, { type: ConfigStateService }]; } });
649
- function getLocalization(state, key, ...interpolateParams) {
650
- if (!key)
651
- key = '';
652
- let defaultValue;
653
- if (typeof key !== 'string') {
654
- defaultValue = key.defaultValue;
655
- key = key.key;
656
- }
657
- const keys = key.split('::');
658
- const warn = (message) => {
659
- if (isDevMode)
660
- console.warn(message);
661
- };
662
- if (keys.length < 2) {
663
- warn('The localization source separator (::) not found.');
664
- return defaultValue || key;
665
- }
666
- if (!state.localization)
667
- return defaultValue || keys[1];
668
- const sourceName = keys[0] || state.localization.defaultResourceName;
669
- const sourceKey = keys[1];
670
- if (sourceName === '_') {
671
- return defaultValue || sourceKey;
672
- }
673
- if (!sourceName) {
674
- warn('Localization source name is not specified and the defaultResourceName was not defined!');
675
- return defaultValue || sourceKey;
676
- }
677
- const source = state.localization.values[sourceName];
678
- if (!source) {
679
- warn('Could not find localization source: ' + sourceName);
680
- return defaultValue || sourceKey;
681
- }
682
- let localization = source[sourceKey];
683
- if (typeof localization === 'undefined') {
684
- return defaultValue || sourceKey;
685
- }
686
- interpolateParams = interpolateParams.filter(params => params != null);
687
- if (localization)
688
- localization = interpolate(localization, interpolateParams);
689
- if (typeof localization !== 'string')
690
- localization = '';
691
- return localization || defaultValue || key;
692
- }
745
+ }] }, { type: ConfigStateService }]; } });
693
746
 
694
747
  function findRoute(routesService, path) {
695
748
  const node = routesService.find(route => route.path === path);
@@ -750,9 +803,9 @@ class ReplaceableComponentsService {
750
803
  return this.replaceableComponents$.pipe(map(components => components.find(component => component.key === replaceableComponentKey)));
751
804
  }
752
805
  }
753
- ReplaceableComponentsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ReplaceableComponentsService, deps: [{ token: i0.NgZone }, { token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
754
- ReplaceableComponentsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ReplaceableComponentsService, providedIn: 'root' });
755
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ReplaceableComponentsService, decorators: [{
806
+ ReplaceableComponentsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ReplaceableComponentsService, deps: [{ token: i0.NgZone }, { token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
807
+ ReplaceableComponentsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ReplaceableComponentsService, providedIn: 'root' });
808
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ReplaceableComponentsService, decorators: [{
756
809
  type: Injectable,
757
810
  args: [{ providedIn: 'root' }]
758
811
  }], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i1$1.Router }]; } });
@@ -783,9 +836,9 @@ class RouterEvents {
783
836
  return this.getNavigationEvents(...keys);
784
837
  }
785
838
  }
786
- RouterEvents.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RouterEvents, deps: [{ token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
787
- RouterEvents.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RouterEvents, providedIn: 'root' });
788
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RouterEvents, decorators: [{
839
+ RouterEvents.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RouterEvents, deps: [{ token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
840
+ RouterEvents.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RouterEvents, providedIn: 'root' });
841
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RouterEvents, decorators: [{
789
842
  type: Injectable,
790
843
  args: [{ providedIn: 'root' }]
791
844
  }], ctorParameters: function () { return [{ type: i1$1.Router }]; } });
@@ -903,9 +956,9 @@ class PermissionService {
903
956
  return grantedPolicies[key] || false;
904
957
  }
905
958
  }
906
- PermissionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: PermissionService, deps: [{ token: ConfigStateService }], target: i0.ɵɵFactoryTarget.Injectable });
907
- PermissionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: PermissionService, providedIn: 'root' });
908
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: PermissionService, decorators: [{
959
+ PermissionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: PermissionService, deps: [{ token: ConfigStateService }], target: i0.ɵɵFactoryTarget.Injectable });
960
+ PermissionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: PermissionService, providedIn: 'root' });
961
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: PermissionService, decorators: [{
909
962
  type: Injectable,
910
963
  args: [{ providedIn: 'root' }]
911
964
  }], ctorParameters: function () { return [{ type: ConfigStateService }]; } });
@@ -1036,16 +1089,16 @@ class AbstractNavTreeService extends AbstractTreeService {
1036
1089
  this.subscription.unsubscribe();
1037
1090
  }
1038
1091
  }
1039
- AbstractNavTreeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AbstractNavTreeService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
1040
- AbstractNavTreeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AbstractNavTreeService });
1041
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AbstractNavTreeService, decorators: [{
1092
+ AbstractNavTreeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AbstractNavTreeService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
1093
+ AbstractNavTreeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AbstractNavTreeService });
1094
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AbstractNavTreeService, decorators: [{
1042
1095
  type: Injectable
1043
1096
  }], ctorParameters: function () { return [{ type: i0.Injector }]; } });
1044
1097
  class RoutesService extends AbstractNavTreeService {
1045
1098
  }
1046
- RoutesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RoutesService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
1047
- RoutesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RoutesService, providedIn: 'root' });
1048
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RoutesService, decorators: [{
1099
+ RoutesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RoutesService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
1100
+ RoutesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RoutesService, providedIn: 'root' });
1101
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RoutesService, decorators: [{
1049
1102
  type: Injectable,
1050
1103
  args: [{ providedIn: 'root' }]
1051
1104
  }] });
@@ -1082,9 +1135,9 @@ class SubscriptionService {
1082
1135
  this.subscription = new Subscription();
1083
1136
  }
1084
1137
  }
1085
- SubscriptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: SubscriptionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1086
- SubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: SubscriptionService });
1087
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: SubscriptionService, decorators: [{
1138
+ SubscriptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SubscriptionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1139
+ SubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SubscriptionService });
1140
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SubscriptionService, decorators: [{
1088
1141
  type: Injectable
1089
1142
  }] });
1090
1143
 
@@ -1101,12 +1154,14 @@ class DynamicLayoutComponent {
1101
1154
  ['empty', 'Theme.EmptyLayoutComponent'],
1102
1155
  ]);
1103
1156
  this.isLayoutVisible = true;
1104
- if (dynamicLayoutComponent)
1157
+ if (dynamicLayoutComponent) {
1158
+ if (isDevMode)
1159
+ console.warn('DynamicLayoutComponent must be used only in AppComponent.');
1105
1160
  return;
1161
+ }
1106
1162
  this.route = injector.get(ActivatedRoute);
1107
1163
  this.router = injector.get(Router);
1108
1164
  this.routes = injector.get(RoutesService);
1109
- this.getLayout();
1110
1165
  this.checkLayoutOnNavigationEnd();
1111
1166
  this.listenToLanguageChange();
1112
1167
  }
@@ -1146,25 +1201,13 @@ class DynamicLayoutComponent {
1146
1201
  return this.replaceableComponents.get(key);
1147
1202
  }
1148
1203
  }
1149
- DynamicLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: DynamicLayoutComponent, deps: [{ token: i0.Injector }, { token: LocalizationService }, { token: ReplaceableComponentsService }, { token: SubscriptionService }, { token: RouterEvents }, { token: DynamicLayoutComponent, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component });
1150
- DynamicLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: DynamicLayoutComponent, selector: "abp-dynamic-layout", providers: [SubscriptionService], ngImport: i0, template: `
1151
- <ng-container *ngTemplateOutlet="layout ? componentOutlet : routerOutlet"></ng-container>
1152
- <ng-template #routerOutlet><router-outlet></router-outlet></ng-template>
1153
- <ng-template #componentOutlet
1154
- ><ng-container *ngIf="isLayoutVisible" [ngComponentOutlet]="layout"></ng-container
1155
- ></ng-template>
1156
- `, isInline: true, directives: [{ type: i5.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1$1.RouterOutlet, selector: "router-outlet", outputs: ["activate", "deactivate"], exportAs: ["outlet"] }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModuleFactory"] }] });
1157
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: DynamicLayoutComponent, decorators: [{
1204
+ DynamicLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: DynamicLayoutComponent, deps: [{ token: i0.Injector }, { token: LocalizationService }, { token: ReplaceableComponentsService }, { token: SubscriptionService }, { token: RouterEvents }, { token: DynamicLayoutComponent, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component });
1205
+ DynamicLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: DynamicLayoutComponent, selector: "abp-dynamic-layout", providers: [SubscriptionService], ngImport: i0, template: ` <ng-container *ngIf="isLayoutVisible" [ngComponentOutlet]="layout"></ng-container> `, isInline: true, directives: [{ type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModuleFactory"] }] });
1206
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: DynamicLayoutComponent, decorators: [{
1158
1207
  type: Component,
1159
1208
  args: [{
1160
1209
  selector: 'abp-dynamic-layout',
1161
- template: `
1162
- <ng-container *ngTemplateOutlet="layout ? componentOutlet : routerOutlet"></ng-container>
1163
- <ng-template #routerOutlet><router-outlet></router-outlet></ng-template>
1164
- <ng-template #componentOutlet
1165
- ><ng-container *ngIf="isLayoutVisible" [ngComponentOutlet]="layout"></ng-container
1166
- ></ng-template>
1167
- `,
1210
+ template: ` <ng-container *ngIf="isLayoutVisible" [ngComponentOutlet]="layout"></ng-container> `,
1168
1211
  providers: [SubscriptionService],
1169
1212
  }]
1170
1213
  }], ctorParameters: function () { return [{ type: i0.Injector }, { type: LocalizationService }, { type: ReplaceableComponentsService }, { type: SubscriptionService }, { type: RouterEvents }, { type: DynamicLayoutComponent, decorators: [{
@@ -1190,16 +1233,16 @@ class ReplaceableRouteContainerComponent {
1190
1233
  });
1191
1234
  }
1192
1235
  }
1193
- ReplaceableRouteContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ReplaceableRouteContainerComponent, deps: [{ token: i1$1.ActivatedRoute }, { token: ReplaceableComponentsService }, { token: SubscriptionService }], target: i0.ɵɵFactoryTarget.Component });
1194
- ReplaceableRouteContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: ReplaceableRouteContainerComponent, selector: "abp-replaceable-route-container", providers: [SubscriptionService], ngImport: i0, template: `
1195
- <ng-container *ngComponentOutlet="externalComponent || defaultComponent"></ng-container>
1236
+ ReplaceableRouteContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ReplaceableRouteContainerComponent, deps: [{ token: i1$1.ActivatedRoute }, { token: ReplaceableComponentsService }, { token: SubscriptionService }], target: i0.ɵɵFactoryTarget.Component });
1237
+ ReplaceableRouteContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: ReplaceableRouteContainerComponent, selector: "abp-replaceable-route-container", providers: [SubscriptionService], ngImport: i0, template: `
1238
+ <ng-container *ngComponentOutlet="externalComponent || defaultComponent"></ng-container>
1196
1239
  `, isInline: true, directives: [{ type: i5.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModuleFactory"] }] });
1197
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ReplaceableRouteContainerComponent, decorators: [{
1240
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ReplaceableRouteContainerComponent, decorators: [{
1198
1241
  type: Component,
1199
1242
  args: [{
1200
1243
  selector: 'abp-replaceable-route-container',
1201
- template: `
1202
- <ng-container *ngComponentOutlet="externalComponent || defaultComponent"></ng-container>
1244
+ template: `
1245
+ <ng-container *ngComponentOutlet="externalComponent || defaultComponent"></ng-container>
1203
1246
  `,
1204
1247
  providers: [SubscriptionService],
1205
1248
  }]
@@ -1207,9 +1250,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
1207
1250
 
1208
1251
  class RouterOutletComponent {
1209
1252
  }
1210
- RouterOutletComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RouterOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1211
- RouterOutletComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: RouterOutletComponent, selector: "abp-router-outlet", ngImport: i0, template: ` <router-outlet></router-outlet> `, isInline: true, directives: [{ type: i1$1.RouterOutlet, selector: "router-outlet", outputs: ["activate", "deactivate"], exportAs: ["outlet"] }] });
1212
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RouterOutletComponent, decorators: [{
1253
+ RouterOutletComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RouterOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1254
+ RouterOutletComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: RouterOutletComponent, selector: "abp-router-outlet", ngImport: i0, template: ` <router-outlet></router-outlet> `, isInline: true, directives: [{ type: i1$1.RouterOutlet, selector: "router-outlet", outputs: ["activate", "deactivate"], exportAs: ["outlet"] }] });
1255
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RouterOutletComponent, decorators: [{
1213
1256
  type: Component,
1214
1257
  args: [{
1215
1258
  selector: 'abp-router-outlet',
@@ -1557,15 +1600,21 @@ const differentLocales = {
1557
1600
  class AutofocusDirective {
1558
1601
  constructor(elRef) {
1559
1602
  this.elRef = elRef;
1560
- this.delay = 0;
1603
+ this._delay = 0;
1604
+ }
1605
+ set delay(val) {
1606
+ this._delay = Number(val) || 0;
1607
+ }
1608
+ get delay() {
1609
+ return this._delay;
1561
1610
  }
1562
1611
  ngAfterViewInit() {
1563
1612
  setTimeout(() => this.elRef.nativeElement.focus(), this.delay);
1564
1613
  }
1565
1614
  }
1566
- AutofocusDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AutofocusDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
1567
- AutofocusDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.6", type: AutofocusDirective, selector: "[autofocus]", inputs: { delay: ["autofocus", "delay"] }, ngImport: i0 });
1568
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AutofocusDirective, decorators: [{
1615
+ AutofocusDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AutofocusDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
1616
+ AutofocusDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: AutofocusDirective, selector: "[autofocus]", inputs: { delay: ["autofocus", "delay"] }, ngImport: i0 });
1617
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AutofocusDirective, decorators: [{
1569
1618
  type: Directive,
1570
1619
  args: [{
1571
1620
  // eslint-disable-next-line @angular-eslint/directive-selector
@@ -1590,9 +1639,9 @@ class InputEventDebounceDirective {
1590
1639
  });
1591
1640
  }
1592
1641
  }
1593
- InputEventDebounceDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: InputEventDebounceDirective, deps: [{ token: i0.ElementRef }, { token: SubscriptionService }], target: i0.ɵɵFactoryTarget.Directive });
1594
- InputEventDebounceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.6", type: InputEventDebounceDirective, selector: "[input.debounce]", inputs: { debounce: "debounce" }, outputs: { debounceEvent: "input.debounce" }, providers: [SubscriptionService], ngImport: i0 });
1595
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: InputEventDebounceDirective, decorators: [{
1642
+ InputEventDebounceDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: InputEventDebounceDirective, deps: [{ token: i0.ElementRef }, { token: SubscriptionService }], target: i0.ɵɵFactoryTarget.Directive });
1643
+ InputEventDebounceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: InputEventDebounceDirective, selector: "[input.debounce]", inputs: { debounce: "debounce" }, outputs: { debounceEvent: "input.debounce" }, providers: [SubscriptionService], ngImport: i0 });
1644
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: InputEventDebounceDirective, decorators: [{
1596
1645
  type: Directive,
1597
1646
  args: [{
1598
1647
  // eslint-disable-next-line @angular-eslint/directive-selector
@@ -1720,9 +1769,9 @@ class ForDirective {
1720
1769
  }
1721
1770
  }
1722
1771
  }
1723
- ForDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ForDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Directive });
1724
- ForDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.6", type: ForDirective, selector: "[abpFor]", inputs: { items: ["abpForOf", "items"], orderBy: ["abpForOrderBy", "orderBy"], orderDir: ["abpForOrderDir", "orderDir"], filterBy: ["abpForFilterBy", "filterBy"], filterVal: ["abpForFilterVal", "filterVal"], trackBy: ["abpForTrackBy", "trackBy"], compareBy: ["abpForCompareBy", "compareBy"], emptyRef: ["abpForEmptyRef", "emptyRef"] }, usesOnChanges: true, ngImport: i0 });
1725
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ForDirective, decorators: [{
1772
+ ForDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ForDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Directive });
1773
+ ForDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: ForDirective, selector: "[abpFor]", inputs: { items: ["abpForOf", "items"], orderBy: ["abpForOrderBy", "orderBy"], orderDir: ["abpForOrderDir", "orderDir"], filterBy: ["abpForFilterBy", "filterBy"], filterVal: ["abpForFilterVal", "filterVal"], trackBy: ["abpForTrackBy", "trackBy"], compareBy: ["abpForCompareBy", "compareBy"], emptyRef: ["abpForEmptyRef", "emptyRef"] }, usesOnChanges: true, ngImport: i0 });
1774
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ForDirective, decorators: [{
1726
1775
  type: Directive,
1727
1776
  args: [{
1728
1777
  selector: '[abpFor]',
@@ -1783,9 +1832,9 @@ class FormSubmitDirective {
1783
1832
  this.cdRef.detectChanges();
1784
1833
  }
1785
1834
  }
1786
- FormSubmitDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: FormSubmitDirective, deps: [{ token: i1$2.FormGroupDirective, self: true }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: SubscriptionService }], target: i0.ɵɵFactoryTarget.Directive });
1787
- FormSubmitDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.6", type: FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: { debounce: "debounce", notValidateOnSubmit: "notValidateOnSubmit" }, outputs: { ngSubmit: "ngSubmit" }, providers: [SubscriptionService], ngImport: i0 });
1788
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: FormSubmitDirective, decorators: [{
1835
+ FormSubmitDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: FormSubmitDirective, deps: [{ token: i1$2.FormGroupDirective, self: true }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: SubscriptionService }], target: i0.ɵɵFactoryTarget.Directive });
1836
+ FormSubmitDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: { debounce: "debounce", notValidateOnSubmit: "notValidateOnSubmit" }, outputs: { ngSubmit: "ngSubmit" }, providers: [SubscriptionService], ngImport: i0 });
1837
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: FormSubmitDirective, decorators: [{
1789
1838
  type: Directive,
1790
1839
  args: [{
1791
1840
  // eslint-disable-next-line @angular-eslint/directive-selector
@@ -1823,9 +1872,9 @@ class InitDirective {
1823
1872
  this.init.emit(this.elRef);
1824
1873
  }
1825
1874
  }
1826
- InitDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: InitDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
1827
- InitDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.6", type: InitDirective, selector: "[abpInit]", outputs: { init: "abpInit" }, ngImport: i0 });
1828
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: InitDirective, decorators: [{
1875
+ InitDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: InitDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
1876
+ InitDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: InitDirective, selector: "[abpInit]", outputs: { init: "abpInit" }, ngImport: i0 });
1877
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: InitDirective, decorators: [{
1829
1878
  type: Directive,
1830
1879
  args: [{ selector: '[abpInit]' }]
1831
1880
  }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { init: [{
@@ -1834,9 +1883,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
1834
1883
  }] } });
1835
1884
 
1836
1885
  class PermissionDirective {
1837
- constructor(elRef, renderer, templateRef, vcRef, permissionService, cdRef) {
1838
- this.elRef = elRef;
1839
- this.renderer = renderer;
1886
+ constructor(templateRef, vcRef, permissionService, cdRef) {
1840
1887
  this.templateRef = templateRef;
1841
1888
  this.vcRef = vcRef;
1842
1889
  this.permissionService = permissionService;
@@ -1847,7 +1894,7 @@ class PermissionDirective {
1847
1894
  this.subscription.unsubscribe();
1848
1895
  }
1849
1896
  this.subscription = this.permissionService
1850
- .getGrantedPolicy$(this.condition)
1897
+ .getGrantedPolicy$(this.condition || '')
1851
1898
  .pipe(distinctUntilChanged())
1852
1899
  .subscribe(isGranted => {
1853
1900
  this.vcRef.clear();
@@ -1864,14 +1911,14 @@ class PermissionDirective {
1864
1911
  this.check();
1865
1912
  }
1866
1913
  }
1867
- PermissionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: PermissionDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.TemplateRef, optional: true }, { token: i0.ViewContainerRef }, { token: PermissionService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
1868
- PermissionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.6", type: PermissionDirective, selector: "[abpPermission]", inputs: { condition: ["abpPermission", "condition"] }, usesOnChanges: true, ngImport: i0 });
1869
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: PermissionDirective, decorators: [{
1914
+ PermissionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: PermissionDirective, deps: [{ token: i0.TemplateRef, optional: true }, { token: i0.ViewContainerRef }, { token: PermissionService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
1915
+ PermissionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: PermissionDirective, selector: "[abpPermission]", inputs: { condition: ["abpPermission", "condition"] }, usesOnChanges: true, ngImport: i0 });
1916
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: PermissionDirective, decorators: [{
1870
1917
  type: Directive,
1871
1918
  args: [{
1872
1919
  selector: '[abpPermission]',
1873
1920
  }]
1874
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.TemplateRef, decorators: [{
1921
+ }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
1875
1922
  type: Optional
1876
1923
  }] }, { type: i0.ViewContainerRef }, { type: PermissionService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { condition: [{
1877
1924
  type: Input,
@@ -1894,7 +1941,7 @@ class ReplaceableTemplateDirective {
1894
1941
  this.defaultComponentSubscriptions = {};
1895
1942
  this.initialized = false;
1896
1943
  this.context = {
1897
- initTemplate: ref => {
1944
+ initTemplate: (ref) => {
1898
1945
  this.resetDefaultComponent();
1899
1946
  this.defaultComponentRef = ref;
1900
1947
  this.setDefaultComponentInputs();
@@ -1947,8 +1994,9 @@ class ReplaceableTemplateDirective {
1947
1994
  for (const key in this.data.outputs) {
1948
1995
  if (Object.prototype.hasOwnProperty.call(this.data.outputs, key)) {
1949
1996
  if (!this.defaultComponentSubscriptions[key]) {
1950
- this.defaultComponentSubscriptions[key] = this.defaultComponentRef[key].subscribe(value => {
1951
- this.data.outputs[key](value);
1997
+ this.defaultComponentSubscriptions[key] = this.defaultComponentRef[key].subscribe((value) => {
1998
+ var _a;
1999
+ (_a = this.data.outputs) === null || _a === void 0 ? void 0 : _a[key](value);
1952
2000
  });
1953
2001
  }
1954
2002
  }
@@ -1956,15 +2004,18 @@ class ReplaceableTemplateDirective {
1956
2004
  }
1957
2005
  }
1958
2006
  setProvidedData() {
1959
- this.providedData = Object.assign(Object.assign({}, this.data), { inputs: {} });
2007
+ this.providedData = Object.assign(Object.assign({ outputs: {} }, this.data), { inputs: {} });
1960
2008
  if (!this.data.inputs)
1961
2009
  return;
1962
- Object.defineProperties(this.providedData.inputs, Object.assign({}, Object.keys(this.data.inputs).reduce((acc, key) => (Object.assign(Object.assign({}, acc), { [key]: Object.assign({ enumerable: true, configurable: true, get: () => this.data.inputs[key].value }, (this.data.inputs[key].twoWay && {
1963
- set: newValue => {
1964
- this.data.inputs[key].value = newValue;
1965
- this.data.outputs[`${key}Change`](newValue);
1966
- },
1967
- })) })), {})));
2010
+ Object.defineProperties(this.providedData.inputs, Object.assign({}, Object.keys(this.data.inputs).reduce((acc, key) => {
2011
+ var _a;
2012
+ return (Object.assign(Object.assign({}, acc), { [key]: Object.assign({ enumerable: true, configurable: true, get: () => { var _a; return (_a = this.data.inputs[key]) === null || _a === void 0 ? void 0 : _a.value; } }, (((_a = this.data.inputs[key]) === null || _a === void 0 ? void 0 : _a.twoWay) && {
2013
+ set: (newValue) => {
2014
+ this.data.inputs[key].value = newValue;
2015
+ this.data.outputs[`${key}Change`](newValue);
2016
+ },
2017
+ })) }));
2018
+ }, {})));
1968
2019
  }
1969
2020
  resetDefaultComponent() {
1970
2021
  Object.keys(this.defaultComponentSubscriptions).forEach(key => {
@@ -1974,9 +2025,9 @@ class ReplaceableTemplateDirective {
1974
2025
  this.defaultComponentRef = null;
1975
2026
  }
1976
2027
  }
1977
- ReplaceableTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ReplaceableTemplateDirective, deps: [{ token: i0.Injector }, { token: i0.TemplateRef }, { token: i0.ComponentFactoryResolver }, { token: i0.ViewContainerRef }, { token: ReplaceableComponentsService }, { token: SubscriptionService }], target: i0.ɵɵFactoryTarget.Directive });
1978
- ReplaceableTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.6", type: ReplaceableTemplateDirective, selector: "[abpReplaceableTemplate]", inputs: { data: ["abpReplaceableTemplate", "data"] }, providers: [SubscriptionService], usesOnChanges: true, ngImport: i0 });
1979
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ReplaceableTemplateDirective, decorators: [{
2028
+ ReplaceableTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ReplaceableTemplateDirective, deps: [{ token: i0.Injector }, { token: i0.TemplateRef }, { token: i0.ComponentFactoryResolver }, { token: i0.ViewContainerRef }, { token: ReplaceableComponentsService }, { token: SubscriptionService }], target: i0.ɵɵFactoryTarget.Directive });
2029
+ ReplaceableTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: ReplaceableTemplateDirective, selector: "[abpReplaceableTemplate]", inputs: { data: ["abpReplaceableTemplate", "data"] }, providers: [SubscriptionService], usesOnChanges: true, ngImport: i0 });
2030
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ReplaceableTemplateDirective, decorators: [{
1980
2031
  type: Directive,
1981
2032
  args: [{
1982
2033
  selector: '[abpReplaceableTemplate]',
@@ -2000,9 +2051,9 @@ class StopPropagationDirective {
2000
2051
  });
2001
2052
  }
2002
2053
  }
2003
- StopPropagationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: StopPropagationDirective, deps: [{ token: i0.ElementRef }, { token: SubscriptionService }], target: i0.ɵɵFactoryTarget.Directive });
2004
- StopPropagationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.6", type: StopPropagationDirective, selector: "[click.stop]", outputs: { stopPropEvent: "click.stop" }, providers: [SubscriptionService], ngImport: i0 });
2005
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: StopPropagationDirective, decorators: [{
2054
+ StopPropagationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: StopPropagationDirective, deps: [{ token: i0.ElementRef }, { token: SubscriptionService }], target: i0.ɵɵFactoryTarget.Directive });
2055
+ StopPropagationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: StopPropagationDirective, selector: "[click.stop]", outputs: { stopPropEvent: "click.stop" }, providers: [SubscriptionService], ngImport: i0 });
2056
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: StopPropagationDirective, decorators: [{
2006
2057
  type: Directive,
2007
2058
  args: [{
2008
2059
  // eslint-disable-next-line @angular-eslint/directive-selector
@@ -2030,9 +2081,9 @@ class OAuthConfigurationHandler {
2030
2081
  });
2031
2082
  }
2032
2083
  }
2033
- OAuthConfigurationHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: OAuthConfigurationHandler, deps: [{ token: i1$3.OAuthService }, { token: EnvironmentService }, { token: CORE_OPTIONS }], target: i0.ɵɵFactoryTarget.Injectable });
2034
- OAuthConfigurationHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: OAuthConfigurationHandler, providedIn: 'root' });
2035
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: OAuthConfigurationHandler, decorators: [{
2084
+ OAuthConfigurationHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: OAuthConfigurationHandler, deps: [{ token: i1$3.OAuthService }, { token: EnvironmentService }, { token: CORE_OPTIONS }], target: i0.ɵɵFactoryTarget.Injectable });
2085
+ OAuthConfigurationHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: OAuthConfigurationHandler, providedIn: 'root' });
2086
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: OAuthConfigurationHandler, decorators: [{
2036
2087
  type: Injectable,
2037
2088
  args: [{
2038
2089
  providedIn: 'root',
@@ -2062,9 +2113,9 @@ class RoutesHandler {
2062
2113
  });
2063
2114
  }
2064
2115
  }
2065
- RoutesHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RoutesHandler, deps: [{ token: RoutesService }, { token: i1$1.Router, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
2066
- RoutesHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RoutesHandler, providedIn: 'root' });
2067
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RoutesHandler, decorators: [{
2116
+ RoutesHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RoutesHandler, deps: [{ token: RoutesService }, { token: i1$1.Router, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
2117
+ RoutesHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RoutesHandler, providedIn: 'root' });
2118
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RoutesHandler, decorators: [{
2068
2119
  type: Injectable,
2069
2120
  args: [{
2070
2121
  providedIn: 'root',
@@ -2159,9 +2210,9 @@ class HttpWaitService {
2159
2210
  return endpoint === request.endpoint && method === request.method;
2160
2211
  }
2161
2212
  }
2162
- HttpWaitService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: HttpWaitService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
2163
- HttpWaitService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: HttpWaitService, providedIn: 'root' });
2164
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: HttpWaitService, decorators: [{
2213
+ HttpWaitService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: HttpWaitService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
2214
+ HttpWaitService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: HttpWaitService, providedIn: 'root' });
2215
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: HttpWaitService, decorators: [{
2165
2216
  type: Injectable,
2166
2217
  args: [{
2167
2218
  providedIn: 'root',
@@ -2202,9 +2253,9 @@ class ApiInterceptor {
2202
2253
  return headers;
2203
2254
  }
2204
2255
  }
2205
- ApiInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ApiInterceptor, deps: [{ token: i1$3.OAuthService }, { token: SessionStateService }, { token: HttpWaitService }, { token: TENANT_KEY }], target: i0.ɵɵFactoryTarget.Injectable });
2206
- ApiInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ApiInterceptor, providedIn: 'root' });
2207
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ApiInterceptor, decorators: [{
2256
+ ApiInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ApiInterceptor, deps: [{ token: i1$3.OAuthService }, { token: SessionStateService }, { token: HttpWaitService }, { token: TENANT_KEY }], target: i0.ɵɵFactoryTarget.Injectable });
2257
+ ApiInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ApiInterceptor, providedIn: 'root' });
2258
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ApiInterceptor, decorators: [{
2208
2259
  type: Injectable,
2209
2260
  args: [{
2210
2261
  providedIn: 'root',
@@ -2219,13 +2270,22 @@ class LocalizationPipe {
2219
2270
  this.localization = localization;
2220
2271
  }
2221
2272
  transform(value = '', ...interpolateParams) {
2222
- return this.localization.instant(value, ...interpolateParams.reduce((acc, val) => (Array.isArray(val) ? [...acc, ...val] : [...acc, val]), []));
2273
+ const params = interpolateParams.reduce((acc, val) => {
2274
+ if (!acc) {
2275
+ return val;
2276
+ }
2277
+ if (!val) {
2278
+ return acc;
2279
+ }
2280
+ return Array.isArray(val) ? [...acc, ...val] : [...acc, val];
2281
+ }, []) || [];
2282
+ return this.localization.instant(value, ...params);
2223
2283
  }
2224
2284
  }
2225
- LocalizationPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LocalizationPipe, deps: [{ token: LocalizationService }], target: i0.ɵɵFactoryTarget.Pipe });
2226
- LocalizationPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LocalizationPipe, name: "abpLocalization" });
2227
- LocalizationPipe.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LocalizationPipe });
2228
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LocalizationPipe, decorators: [{
2285
+ LocalizationPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: LocalizationPipe, deps: [{ token: LocalizationService }], target: i0.ɵɵFactoryTarget.Pipe });
2286
+ LocalizationPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: LocalizationPipe, name: "abpLocalization" });
2287
+ LocalizationPipe.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: LocalizationPipe });
2288
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: LocalizationPipe, decorators: [{
2229
2289
  type: Injectable
2230
2290
  }, {
2231
2291
  type: Pipe,
@@ -2236,10 +2296,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
2236
2296
 
2237
2297
  class LocalizationModule {
2238
2298
  }
2239
- LocalizationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LocalizationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2240
- LocalizationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LocalizationModule, declarations: [LocalizationPipe], exports: [LocalizationPipe] });
2241
- LocalizationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LocalizationModule });
2242
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LocalizationModule, decorators: [{
2299
+ LocalizationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: LocalizationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2300
+ LocalizationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: LocalizationModule, declarations: [LocalizationPipe], exports: [LocalizationPipe] });
2301
+ LocalizationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: LocalizationModule });
2302
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: LocalizationModule, decorators: [{
2243
2303
  type: NgModule,
2244
2304
  args: [{
2245
2305
  exports: [LocalizationPipe],
@@ -2282,10 +2342,10 @@ class SortPipe {
2282
2342
  return sortOrder === 'asc' ? sorted : sorted.reverse();
2283
2343
  }
2284
2344
  }
2285
- SortPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: SortPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
2286
- SortPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: SortPipe, name: "abpSort" });
2287
- SortPipe.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: SortPipe });
2288
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: SortPipe, decorators: [{
2345
+ SortPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SortPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
2346
+ SortPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SortPipe, name: "abpSort" });
2347
+ SortPipe.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SortPipe });
2348
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SortPipe, decorators: [{
2289
2349
  type: Injectable
2290
2350
  }, {
2291
2351
  type: Pipe,
@@ -2395,6 +2455,9 @@ class AuthFlowStrategy {
2395
2455
  if (shouldClear)
2396
2456
  clearOAuthStorage(oAuthStorage);
2397
2457
  this.oAuthService.configure(this.oAuthConfig);
2458
+ this.oAuthService.events
2459
+ .pipe(filter(event => event.type === 'token_refresh_error'))
2460
+ .subscribe(() => this.navigateToLogin());
2398
2461
  return this.oAuthService
2399
2462
  .loadDiscoveryDocument()
2400
2463
  .then(() => {
@@ -2594,9 +2657,9 @@ class AuthService {
2594
2657
  return this.strategy.login(params);
2595
2658
  }
2596
2659
  }
2597
- AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AuthService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
2598
- AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AuthService, providedIn: 'root' });
2599
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AuthService, decorators: [{
2660
+ AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AuthService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
2661
+ AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AuthService, providedIn: 'root' });
2662
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AuthService, decorators: [{
2600
2663
  type: Injectable,
2601
2664
  args: [{
2602
2665
  providedIn: 'root',
@@ -2651,9 +2714,9 @@ class AbpTenantService {
2651
2714
  }, { apiName: this.apiName });
2652
2715
  }
2653
2716
  }
2654
- AbpTenantService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AbpTenantService, deps: [{ token: RestService }], target: i0.ɵɵFactoryTarget.Injectable });
2655
- AbpTenantService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AbpTenantService, providedIn: 'root' });
2656
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AbpTenantService, decorators: [{
2717
+ AbpTenantService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AbpTenantService, deps: [{ token: RestService }], target: i0.ɵɵFactoryTarget.Injectable });
2718
+ AbpTenantService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AbpTenantService, providedIn: 'root' });
2719
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AbpTenantService, decorators: [{
2657
2720
  type: Injectable,
2658
2721
  args: [{
2659
2722
  providedIn: 'root',
@@ -2686,9 +2749,9 @@ class MultiTenancyService {
2686
2749
  .pipe(switchMap(this.setTenantToState));
2687
2750
  }
2688
2751
  }
2689
- MultiTenancyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: MultiTenancyService, deps: [{ token: RestService }, { token: SessionStateService }, { token: AbpTenantService }, { token: ConfigStateService }, { token: TENANT_KEY }], target: i0.ɵɵFactoryTarget.Injectable });
2690
- MultiTenancyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: MultiTenancyService, providedIn: 'root' });
2691
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: MultiTenancyService, decorators: [{
2752
+ MultiTenancyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: MultiTenancyService, deps: [{ token: RestService }, { token: SessionStateService }, { token: AbpTenantService }, { token: ConfigStateService }, { token: TENANT_KEY }], target: i0.ɵɵFactoryTarget.Injectable });
2753
+ MultiTenancyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: MultiTenancyService, providedIn: 'root' });
2754
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: MultiTenancyService, decorators: [{
2692
2755
  type: Injectable,
2693
2756
  args: [{ providedIn: 'root' }]
2694
2757
  }], ctorParameters: function () { return [{ type: RestService }, { type: SessionStateService }, { type: AbpTenantService }, { type: ConfigStateService }, { type: undefined, decorators: [{
@@ -2834,8 +2897,8 @@ function storageFactory() {
2834
2897
  */
2835
2898
  class BaseCoreModule {
2836
2899
  }
2837
- BaseCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: BaseCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2838
- BaseCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: BaseCoreModule, declarations: [AbstractNgModelComponent,
2900
+ BaseCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: BaseCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2901
+ BaseCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: BaseCoreModule, declarations: [AbstractNgModelComponent,
2839
2902
  AutofocusDirective,
2840
2903
  DynamicLayoutComponent,
2841
2904
  ForDirective,
@@ -2872,7 +2935,7 @@ BaseCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
2872
2935
  RouterOutletComponent,
2873
2936
  SortPipe,
2874
2937
  StopPropagationDirective] });
2875
- BaseCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: BaseCoreModule, providers: [LocalizationPipe], imports: [[
2938
+ BaseCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: BaseCoreModule, providers: [LocalizationPipe], imports: [[
2876
2939
  OAuthModule,
2877
2940
  CommonModule,
2878
2941
  HttpClientModule,
@@ -2886,7 +2949,7 @@ BaseCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
2886
2949
  ReactiveFormsModule,
2887
2950
  RouterModule,
2888
2951
  LocalizationModule] });
2889
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: BaseCoreModule, decorators: [{
2952
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: BaseCoreModule, decorators: [{
2890
2953
  type: NgModule,
2891
2954
  args: [{
2892
2955
  exports: [
@@ -2948,9 +3011,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
2948
3011
  */
2949
3012
  class RootCoreModule {
2950
3013
  }
2951
- RootCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RootCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2952
- RootCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RootCoreModule, imports: [BaseCoreModule, LocalizationModule, i1$3.OAuthModule, i1.HttpClientXsrfModule], exports: [BaseCoreModule, LocalizationModule] });
2953
- RootCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RootCoreModule, imports: [[
3014
+ RootCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RootCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3015
+ RootCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RootCoreModule, imports: [BaseCoreModule, LocalizationModule, i1$3.OAuthModule, i1.HttpClientXsrfModule], exports: [BaseCoreModule, LocalizationModule] });
3016
+ RootCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RootCoreModule, imports: [[
2954
3017
  BaseCoreModule,
2955
3018
  LocalizationModule,
2956
3019
  OAuthModule.forRoot(),
@@ -2959,7 +3022,7 @@ RootCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
2959
3022
  headerName: 'RequestVerificationToken',
2960
3023
  }),
2961
3024
  ], BaseCoreModule, LocalizationModule] });
2962
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RootCoreModule, decorators: [{
3025
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RootCoreModule, decorators: [{
2963
3026
  type: NgModule,
2964
3027
  args: [{
2965
3028
  exports: [BaseCoreModule, LocalizationModule],
@@ -3030,14 +3093,33 @@ class CoreModule {
3030
3093
  },
3031
3094
  { provide: OAuthStorage, useFactory: storageFactory },
3032
3095
  { provide: TENANT_KEY, useValue: options.tenantKey || '__tenant' },
3096
+ {
3097
+ provide: LOCALIZATIONS,
3098
+ multi: true,
3099
+ useValue: localizationContributor(options.localizations),
3100
+ deps: [LocalizationService],
3101
+ },
3102
+ ],
3103
+ };
3104
+ }
3105
+ static forChild(options = {}) {
3106
+ return {
3107
+ ngModule: RootCoreModule,
3108
+ providers: [
3109
+ {
3110
+ provide: LOCALIZATIONS,
3111
+ multi: true,
3112
+ useValue: localizationContributor(options.localizations),
3113
+ deps: [LocalizationService],
3114
+ },
3033
3115
  ],
3034
3116
  };
3035
3117
  }
3036
3118
  }
3037
- CoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3038
- CoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: CoreModule, imports: [BaseCoreModule], exports: [BaseCoreModule] });
3039
- CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: CoreModule, imports: [[BaseCoreModule], BaseCoreModule] });
3040
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: CoreModule, decorators: [{
3119
+ CoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3120
+ CoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: CoreModule, imports: [BaseCoreModule], exports: [BaseCoreModule] });
3121
+ CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: CoreModule, imports: [[BaseCoreModule], BaseCoreModule] });
3122
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: CoreModule, decorators: [{
3041
3123
  type: NgModule,
3042
3124
  args: [{
3043
3125
  exports: [BaseCoreModule],
@@ -3062,9 +3144,9 @@ class AuthGuard {
3062
3144
  return false;
3063
3145
  }
3064
3146
  }
3065
- AuthGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AuthGuard, deps: [{ token: i1$3.OAuthService }, { token: AuthService }], target: i0.ɵɵFactoryTarget.Injectable });
3066
- AuthGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AuthGuard, providedIn: 'root' });
3067
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AuthGuard, decorators: [{
3147
+ AuthGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AuthGuard, deps: [{ token: i1$3.OAuthService }, { token: AuthService }], target: i0.ɵɵFactoryTarget.Injectable });
3148
+ AuthGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AuthGuard, providedIn: 'root' });
3149
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AuthGuard, decorators: [{
3068
3150
  type: Injectable,
3069
3151
  args: [{
3070
3152
  providedIn: 'root',
@@ -3093,9 +3175,9 @@ class PermissionGuard {
3093
3175
  }));
3094
3176
  }
3095
3177
  }
3096
- PermissionGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: PermissionGuard, deps: [{ token: i1$1.Router }, { token: RoutesService }, { token: PermissionService }, { token: HttpErrorReporterService }], target: i0.ɵɵFactoryTarget.Injectable });
3097
- PermissionGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: PermissionGuard, providedIn: 'root' });
3098
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: PermissionGuard, decorators: [{
3178
+ PermissionGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: PermissionGuard, deps: [{ token: i1$1.Router }, { token: RoutesService }, { token: PermissionService }, { token: HttpErrorReporterService }], target: i0.ɵɵFactoryTarget.Injectable });
3179
+ PermissionGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: PermissionGuard, providedIn: 'root' });
3180
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: PermissionGuard, decorators: [{
3099
3181
  type: Injectable,
3100
3182
  args: [{
3101
3183
  providedIn: 'root',
@@ -3232,9 +3314,9 @@ class AbpApiDefinitionService {
3232
3314
  }, { apiName: this.apiName });
3233
3315
  }
3234
3316
  }
3235
- AbpApiDefinitionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AbpApiDefinitionService, deps: [{ token: RestService }], target: i0.ɵɵFactoryTarget.Injectable });
3236
- AbpApiDefinitionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AbpApiDefinitionService, providedIn: 'root' });
3237
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AbpApiDefinitionService, decorators: [{
3317
+ AbpApiDefinitionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AbpApiDefinitionService, deps: [{ token: RestService }], target: i0.ɵɵFactoryTarget.Injectable });
3318
+ AbpApiDefinitionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AbpApiDefinitionService, providedIn: 'root' });
3319
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AbpApiDefinitionService, decorators: [{
3238
3320
  type: Injectable,
3239
3321
  args: [{
3240
3322
  providedIn: 'root',
@@ -3257,9 +3339,9 @@ class ContentProjectionService {
3257
3339
  return projectionStrategy.injectContent(injector);
3258
3340
  }
3259
3341
  }
3260
- ContentProjectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ContentProjectionService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
3261
- ContentProjectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ContentProjectionService, providedIn: 'root' });
3262
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ContentProjectionService, decorators: [{
3342
+ ContentProjectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ContentProjectionService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
3343
+ ContentProjectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ContentProjectionService, providedIn: 'root' });
3344
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ContentProjectionService, decorators: [{
3263
3345
  type: Injectable,
3264
3346
  args: [{ providedIn: 'root' }]
3265
3347
  }], ctorParameters: function () { return [{ type: i0.Injector }]; } });
@@ -3474,9 +3556,9 @@ class DomInsertionService {
3474
3556
  return this.inserted.has(hash);
3475
3557
  }
3476
3558
  }
3477
- DomInsertionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: DomInsertionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3478
- DomInsertionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: DomInsertionService, providedIn: 'root' });
3479
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: DomInsertionService, decorators: [{
3559
+ DomInsertionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: DomInsertionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3560
+ DomInsertionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: DomInsertionService, providedIn: 'root' });
3561
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: DomInsertionService, decorators: [{
3480
3562
  type: Injectable,
3481
3563
  args: [{ providedIn: 'root' }]
3482
3564
  }] });
@@ -3508,9 +3590,9 @@ class ResourceWaitService {
3508
3590
  this.store.patch({ resources });
3509
3591
  }
3510
3592
  }
3511
- ResourceWaitService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ResourceWaitService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3512
- ResourceWaitService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ResourceWaitService, providedIn: 'root' });
3513
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ResourceWaitService, decorators: [{
3593
+ ResourceWaitService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ResourceWaitService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3594
+ ResourceWaitService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ResourceWaitService, providedIn: 'root' });
3595
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ResourceWaitService, decorators: [{
3514
3596
  type: Injectable,
3515
3597
  args: [{
3516
3598
  providedIn: 'root',
@@ -3540,9 +3622,9 @@ class LazyLoadService {
3540
3622
  return true;
3541
3623
  }
3542
3624
  }
3543
- LazyLoadService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LazyLoadService, deps: [{ token: ResourceWaitService }], target: i0.ɵɵFactoryTarget.Injectable });
3544
- LazyLoadService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LazyLoadService, providedIn: 'root' });
3545
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LazyLoadService, decorators: [{
3625
+ LazyLoadService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: LazyLoadService, deps: [{ token: ResourceWaitService }], target: i0.ɵɵFactoryTarget.Injectable });
3626
+ LazyLoadService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: LazyLoadService, providedIn: 'root' });
3627
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: LazyLoadService, decorators: [{
3546
3628
  type: Injectable,
3547
3629
  args: [{
3548
3630
  providedIn: 'root',
@@ -3643,9 +3725,9 @@ class ListService {
3643
3725
  });
3644
3726
  }
3645
3727
  }
3646
- ListService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ListService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
3647
- ListService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ListService });
3648
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ListService, decorators: [{
3728
+ ListService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ListService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
3729
+ ListService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ListService });
3730
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ListService, decorators: [{
3649
3731
  type: Injectable
3650
3732
  }], ctorParameters: function () { return [{ type: i0.Injector }]; } });
3651
3733
 
@@ -3682,9 +3764,9 @@ class RouterWaitService {
3682
3764
  this.store.patch({ loading });
3683
3765
  }
3684
3766
  }
3685
- RouterWaitService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RouterWaitService, deps: [{ token: RouterEvents }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
3686
- RouterWaitService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RouterWaitService, providedIn: 'root' });
3687
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RouterWaitService, decorators: [{
3767
+ RouterWaitService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RouterWaitService, deps: [{ token: RouterEvents }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
3768
+ RouterWaitService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RouterWaitService, providedIn: 'root' });
3769
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RouterWaitService, decorators: [{
3688
3770
  type: Injectable,
3689
3771
  args: [{
3690
3772
  providedIn: 'root',
@@ -3701,9 +3783,9 @@ class TrackByService {
3701
3783
  this.byDeep = trackByDeep;
3702
3784
  }
3703
3785
  }
3704
- TrackByService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: TrackByService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3705
- TrackByService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: TrackByService, providedIn: 'root' });
3706
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: TrackByService, decorators: [{
3786
+ TrackByService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: TrackByService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3787
+ TrackByService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: TrackByService, providedIn: 'root' });
3788
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: TrackByService, decorators: [{
3707
3789
  type: Injectable,
3708
3790
  args: [{
3709
3791
  providedIn: 'root',
@@ -4108,5 +4190,5 @@ const AbpValidators = {
4108
4190
  * Generated bundle index. Do not edit.
4109
4191
  */
4110
4192
 
4111
- export { APP_INIT_ERROR_HANDLERS, AbpApiDefinitionService, AbpApplicationConfigurationService, AbpTenantService, AbpValidators, AbstractNavTreeService, AbstractNgModelComponent, AbstractTreeService, ApiInterceptor, AuditedEntityDto, AuditedEntityWithUserDto, AuthGuard, AuthService, AutofocusDirective, BaseCoreModule, BaseTreeNode, CONTAINER_STRATEGY, CONTENT_SECURITY_STRATEGY, CONTENT_STRATEGY, CONTEXT_STRATEGY, COOKIE_LANGUAGE_KEY, CORE_OPTIONS, CROSS_ORIGIN_STRATEGY, ClearContainerStrategy, ComponentContextStrategy, ComponentProjectionStrategy, ConfigStateService, ContainerStrategy, ContentProjectionService, ContentSecurityStrategy, ContentStrategy, ContextStrategy, CoreModule, CreationAuditedEntityDto, CreationAuditedEntityWithUserDto, CrossOriginStrategy, DOM_STRATEGY, DomInsertionService, DomStrategy, DynamicLayoutComponent, EntityDto, EnvironmentService, ExtensibleAuditedEntityDto, ExtensibleAuditedEntityWithUserDto, ExtensibleCreationAuditedEntityDto, ExtensibleCreationAuditedEntityWithUserDto, ExtensibleEntityDto, ExtensibleFullAuditedEntityDto, ExtensibleFullAuditedEntityWithUserDto, ExtensibleObject, ForDirective, FormSubmitDirective, FullAuditedEntityDto, FullAuditedEntityWithUserDto, HttpErrorReporterService, HttpWaitService, InitDirective, InputEventDebounceDirective, InsertIntoContainerStrategy, InternalStore, LIST_QUERY_DEBOUNCE_TIME, LOADER_DELAY, LOADING_STRATEGY, LazyLoadService, LazyModuleFactory, LimitedResultRequestDto, ListResultDto, ListService, LoadingStrategy, LocalizationModule, LocalizationPipe, LocalizationService, LooseContentSecurityStrategy, MultiTenancyService, NAVIGATE_TO_MANAGE_PROFILE, NavigationEvent, NoContentSecurityStrategy, NoContextStrategy, NoCrossOriginStrategy, index as ObjectExtending, PROJECTION_STRATEGY, PagedAndSortedResultRequestDto, PagedResultDto, PagedResultRequestDto, PermissionDirective, PermissionGuard, PermissionService, ProjectionStrategy, ReplaceableComponentsService, ReplaceableRouteContainerComponent, ReplaceableTemplateDirective, ResourceWaitService, RestService, RootComponentProjectionStrategy, RootCoreModule, RouterEvents, RouterOutletComponent, RouterWaitService, RoutesService, ScriptContentStrategy, ScriptLoadingStrategy, SessionStateService, SortPipe, StopPropagationDirective, StyleContentStrategy, StyleLoadingStrategy, SubscriptionService, TENANT_KEY, TemplateContextStrategy, TemplateProjectionStrategy, TrackByService, WebHttpUrlEncodingCodec, checkAccessToken, coreOptionsFactory, createLocalizationPipeKeyGenerator, createLocalizer, createLocalizerWithFallback, createMapFromList, createTokenParser, createTreeFromList, createTreeNodeFilterCreator, deepMerge, differentLocales, downloadBlob, exists, featuresFactory, findRoute, fromLazyLoad, generateHash, generatePassword, getInitialData, getLocaleDirection, getPathName, getRemoteEnv, getRoutePath, getShortDateFormat, getShortDateShortTimeFormat, getShortTimeFormat, interpolate, isArray, isNode, isNullOrUndefined, isNumber, isObject, isObjectAndNotArray, isObjectAndNotArrayNotNode, isUndefinedOrEmptyString, localeInitializer, mapEnumToOptions, ngxsStoragePluginSerialize, noop, parseTenantFromUrl, pipeToLogin, pushValueTo, reloadRoute, removeRememberMe, setRememberMe, setTokenResponseToStorage, storageFactory, trackBy, trackByDeep, uuid, validateCreditCard, validateMinAge, validateRange, validateRequired, validateStringLength, validateUrl };
4193
+ export { APP_INIT_ERROR_HANDLERS, AbpApiDefinitionService, AbpApplicationConfigurationService, AbpTenantService, AbpValidators, AbstractNavTreeService, AbstractNgModelComponent, AbstractTreeService, ApiInterceptor, AuditedEntityDto, AuditedEntityWithUserDto, AuthGuard, AuthService, AutofocusDirective, BaseCoreModule, BaseTreeNode, CONTAINER_STRATEGY, CONTENT_SECURITY_STRATEGY, CONTENT_STRATEGY, CONTEXT_STRATEGY, COOKIE_LANGUAGE_KEY, CORE_OPTIONS, CROSS_ORIGIN_STRATEGY, ClearContainerStrategy, ComponentContextStrategy, ComponentProjectionStrategy, ConfigStateService, ContainerStrategy, ContentProjectionService, ContentSecurityStrategy, ContentStrategy, ContextStrategy, CoreModule, CreationAuditedEntityDto, CreationAuditedEntityWithUserDto, CrossOriginStrategy, DOM_STRATEGY, DomInsertionService, DomStrategy, DynamicLayoutComponent, EntityDto, EnvironmentService, ExtensibleAuditedEntityDto, ExtensibleAuditedEntityWithUserDto, ExtensibleCreationAuditedEntityDto, ExtensibleCreationAuditedEntityWithUserDto, ExtensibleEntityDto, ExtensibleFullAuditedEntityDto, ExtensibleFullAuditedEntityWithUserDto, ExtensibleObject, ForDirective, FormSubmitDirective, FullAuditedEntityDto, FullAuditedEntityWithUserDto, HttpErrorReporterService, HttpWaitService, InitDirective, InputEventDebounceDirective, InsertIntoContainerStrategy, InternalStore, LIST_QUERY_DEBOUNCE_TIME, LOADER_DELAY, LOADING_STRATEGY, LOCALIZATIONS, LazyLoadService, LazyModuleFactory, LimitedResultRequestDto, ListResultDto, ListService, LoadingStrategy, LocalizationModule, LocalizationPipe, LocalizationService, LooseContentSecurityStrategy, MultiTenancyService, NAVIGATE_TO_MANAGE_PROFILE, NavigationEvent, NoContentSecurityStrategy, NoContextStrategy, NoCrossOriginStrategy, index as ObjectExtending, PROJECTION_STRATEGY, PagedAndSortedResultRequestDto, PagedResultDto, PagedResultRequestDto, PermissionDirective, PermissionGuard, PermissionService, ProjectionStrategy, ReplaceableComponentsService, ReplaceableRouteContainerComponent, ReplaceableTemplateDirective, ResourceWaitService, RestService, RootComponentProjectionStrategy, RootCoreModule, RouterEvents, RouterOutletComponent, RouterWaitService, RoutesService, ScriptContentStrategy, ScriptLoadingStrategy, SessionStateService, SortPipe, StopPropagationDirective, StyleContentStrategy, StyleLoadingStrategy, SubscriptionService, TENANT_KEY, TemplateContextStrategy, TemplateProjectionStrategy, TrackByService, WebHttpUrlEncodingCodec, checkAccessToken, coreOptionsFactory, createLocalizationPipeKeyGenerator, createLocalizer, createLocalizerWithFallback, createMapFromList, createTokenParser, createTreeFromList, createTreeNodeFilterCreator, deepMerge, differentLocales, downloadBlob, exists, featuresFactory, findRoute, fromLazyLoad, generateHash, generatePassword, getInitialData, getLocaleDirection, getPathName, getRemoteEnv, getRoutePath, getShortDateFormat, getShortDateShortTimeFormat, getShortTimeFormat, interpolate, isArray, isNode, isNullOrUndefined, isNumber, isObject, isObjectAndNotArray, isObjectAndNotArrayNotNode, isUndefinedOrEmptyString, localeInitializer, localizationContributor, localizations$, mapEnumToOptions, ngxsStoragePluginSerialize, noop, parseTenantFromUrl, pipeToLogin, pushValueTo, reloadRoute, removeRememberMe, setRememberMe, setTokenResponseToStorage, storageFactory, trackBy, trackByDeep, uuid, validateCreditCard, validateMinAge, validateRange, validateRequired, validateStringLength, validateUrl };
4112
4194
  //# sourceMappingURL=abp-ng.core.js.map