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

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 (311) hide show
  1. package/README.md +3 -3
  2. package/bundles/abp-ng.core-locale.umd.js +2 -2
  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 +326 -229
  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 +15 -16
  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 +4 -4
  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 +1 -1
  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.map +1 -1
  152. package/fesm2015/abp-ng.core-testing.js +10 -10
  153. package/fesm2015/abp-ng.core-testing.js.map +1 -1
  154. package/fesm2015/abp-ng.core.js +322 -235
  155. package/fesm2015/abp-ng.core.js.map +1 -1
  156. package/lib/core.module.d.ts +1 -0
  157. package/lib/directives/autofocus.directive.d.ts +3 -1
  158. package/lib/directives/permission.directive.d.ts +4 -6
  159. package/lib/models/common.d.ts +13 -1
  160. package/lib/models/replaceable-components.d.ts +2 -2
  161. package/lib/pipes/localization.pipe.d.ts +1 -1
  162. package/lib/services/environment.service.d.ts +2 -2
  163. package/lib/services/http-error-reporter.service.d.ts +1 -1
  164. package/lib/services/list.service.d.ts +1 -1
  165. package/lib/services/localization.service.d.ts +8 -2
  166. package/lib/tokens/index.d.ts +1 -0
  167. package/lib/tokens/localization.token.d.ts +6 -0
  168. package/lib/utils/localization-utils.d.ts +1 -1
  169. package/package.json +2 -2
  170. package/esm2015/abp-ng.core.js.map +0 -1
  171. package/esm2015/lib/abstracts/index.js.map +0 -1
  172. package/esm2015/lib/abstracts/ng-model.component.js.map +0 -1
  173. package/esm2015/lib/components/dynamic-layout.component.js.map +0 -1
  174. package/esm2015/lib/components/index.js.map +0 -1
  175. package/esm2015/lib/components/replaceable-route-container.component.js.map +0 -1
  176. package/esm2015/lib/components/router-outlet.component.js.map +0 -1
  177. package/esm2015/lib/constants/different-locales.js.map +0 -1
  178. package/esm2015/lib/constants/index.js.map +0 -1
  179. package/esm2015/lib/core.module.js.map +0 -1
  180. package/esm2015/lib/directives/autofocus.directive.js.map +0 -1
  181. package/esm2015/lib/directives/debounce.directive.js.map +0 -1
  182. package/esm2015/lib/directives/for.directive.js.map +0 -1
  183. package/esm2015/lib/directives/form-submit.directive.js.map +0 -1
  184. package/esm2015/lib/directives/index.js.map +0 -1
  185. package/esm2015/lib/directives/init.directive.js.map +0 -1
  186. package/esm2015/lib/directives/permission.directive.js.map +0 -1
  187. package/esm2015/lib/directives/replaceable-template.directive.js.map +0 -1
  188. package/esm2015/lib/directives/stop-propagation.directive.js.map +0 -1
  189. package/esm2015/lib/enums/common.js.map +0 -1
  190. package/esm2015/lib/enums/index.js.map +0 -1
  191. package/esm2015/lib/guards/auth.guard.js.map +0 -1
  192. package/esm2015/lib/guards/index.js.map +0 -1
  193. package/esm2015/lib/guards/permission.guard.js.map +0 -1
  194. package/esm2015/lib/handlers/oauth-configuration.handler.js.map +0 -1
  195. package/esm2015/lib/handlers/routes.handler.js.map +0 -1
  196. package/esm2015/lib/interceptors/api.interceptor.js.map +0 -1
  197. package/esm2015/lib/interceptors/index.js.map +0 -1
  198. package/esm2015/lib/localization.module.js.map +0 -1
  199. package/esm2015/lib/models/auth.js.map +0 -1
  200. package/esm2015/lib/models/common.js.map +0 -1
  201. package/esm2015/lib/models/dtos.js.map +0 -1
  202. package/esm2015/lib/models/environment.js.map +0 -1
  203. package/esm2015/lib/models/index.js.map +0 -1
  204. package/esm2015/lib/models/localization.js.map +0 -1
  205. package/esm2015/lib/models/replaceable-components.js.map +0 -1
  206. package/esm2015/lib/models/rest.js.map +0 -1
  207. package/esm2015/lib/models/session.js.map +0 -1
  208. package/esm2015/lib/models/utility.js.map +0 -1
  209. package/esm2015/lib/pipes/index.js.map +0 -1
  210. package/esm2015/lib/pipes/localization.pipe.js.map +0 -1
  211. package/esm2015/lib/pipes/sort.pipe.js.map +0 -1
  212. package/esm2015/lib/providers/cookie-language.provider.js.map +0 -1
  213. package/esm2015/lib/providers/locale.provider.js.map +0 -1
  214. package/esm2015/lib/proxy/pages/abp/multi-tenancy/abp-tenant.service.js.map +0 -1
  215. package/esm2015/lib/proxy/pages/abp/multi-tenancy/index.js.map +0 -1
  216. package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/abp-api-definition.service.js.map +0 -1
  217. package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/index.js.map +0 -1
  218. package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-configuration.service.js.map +0 -1
  219. package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/index.js.map +0 -1
  220. package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/models.js.map +0 -1
  221. package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/object-extending/index.js.map +0 -1
  222. package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/object-extending/models.js.map +0 -1
  223. package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/multi-tenancy/index.js.map +0 -1
  224. package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/multi-tenancy/models.js.map +0 -1
  225. package/esm2015/lib/proxy/volo/abp/http/modeling/index.js.map +0 -1
  226. package/esm2015/lib/proxy/volo/abp/http/modeling/models.js.map +0 -1
  227. package/esm2015/lib/proxy/volo/abp/localization/index.js.map +0 -1
  228. package/esm2015/lib/proxy/volo/abp/localization/models.js.map +0 -1
  229. package/esm2015/lib/proxy/volo/abp/models.js.map +0 -1
  230. package/esm2015/lib/services/auth.service.js.map +0 -1
  231. package/esm2015/lib/services/config-state.service.js.map +0 -1
  232. package/esm2015/lib/services/content-projection.service.js.map +0 -1
  233. package/esm2015/lib/services/dom-insertion.service.js.map +0 -1
  234. package/esm2015/lib/services/environment.service.js.map +0 -1
  235. package/esm2015/lib/services/http-error-reporter.service.js.map +0 -1
  236. package/esm2015/lib/services/http-wait.service.js.map +0 -1
  237. package/esm2015/lib/services/index.js.map +0 -1
  238. package/esm2015/lib/services/lazy-load.service.js.map +0 -1
  239. package/esm2015/lib/services/list.service.js.map +0 -1
  240. package/esm2015/lib/services/localization.service.js.map +0 -1
  241. package/esm2015/lib/services/multi-tenancy.service.js.map +0 -1
  242. package/esm2015/lib/services/permission.service.js.map +0 -1
  243. package/esm2015/lib/services/replaceable-components.service.js.map +0 -1
  244. package/esm2015/lib/services/resource-wait.service.js.map +0 -1
  245. package/esm2015/lib/services/rest.service.js.map +0 -1
  246. package/esm2015/lib/services/router-events.service.js.map +0 -1
  247. package/esm2015/lib/services/router-wait.service.js.map +0 -1
  248. package/esm2015/lib/services/routes.service.js.map +0 -1
  249. package/esm2015/lib/services/session-state.service.js.map +0 -1
  250. package/esm2015/lib/services/subscription.service.js.map +0 -1
  251. package/esm2015/lib/services/track-by.service.js.map +0 -1
  252. package/esm2015/lib/strategies/auth-flow.strategy.js.map +0 -1
  253. package/esm2015/lib/strategies/container.strategy.js.map +0 -1
  254. package/esm2015/lib/strategies/content-security.strategy.js.map +0 -1
  255. package/esm2015/lib/strategies/content.strategy.js.map +0 -1
  256. package/esm2015/lib/strategies/context.strategy.js.map +0 -1
  257. package/esm2015/lib/strategies/cross-origin.strategy.js.map +0 -1
  258. package/esm2015/lib/strategies/dom.strategy.js.map +0 -1
  259. package/esm2015/lib/strategies/index.js.map +0 -1
  260. package/esm2015/lib/strategies/loading.strategy.js.map +0 -1
  261. package/esm2015/lib/strategies/projection.strategy.js.map +0 -1
  262. package/esm2015/lib/tokens/app-config.token.js.map +0 -1
  263. package/esm2015/lib/tokens/cookie-language-key.token.js.map +0 -1
  264. package/esm2015/lib/tokens/index.js.map +0 -1
  265. package/esm2015/lib/tokens/list.token.js.map +0 -1
  266. package/esm2015/lib/tokens/lodaer-delay.token.js.map +0 -1
  267. package/esm2015/lib/tokens/manage-profile.token.js.map +0 -1
  268. package/esm2015/lib/tokens/options.token.js.map +0 -1
  269. package/esm2015/lib/tokens/tenant-key.token.js.map +0 -1
  270. package/esm2015/lib/utils/array-utils.js.map +0 -1
  271. package/esm2015/lib/utils/auth-utils.js.map +0 -1
  272. package/esm2015/lib/utils/common-utils.js.map +0 -1
  273. package/esm2015/lib/utils/date-extensions.js.map +0 -1
  274. package/esm2015/lib/utils/date-utils.js.map +0 -1
  275. package/esm2015/lib/utils/environment-utils.js.map +0 -1
  276. package/esm2015/lib/utils/factory-utils.js.map +0 -1
  277. package/esm2015/lib/utils/file-utils.js.map +0 -1
  278. package/esm2015/lib/utils/form-utils.js.map +0 -1
  279. package/esm2015/lib/utils/generator-utils.js.map +0 -1
  280. package/esm2015/lib/utils/http-utils.js.map +0 -1
  281. package/esm2015/lib/utils/index.js.map +0 -1
  282. package/esm2015/lib/utils/initial-utils.js.map +0 -1
  283. package/esm2015/lib/utils/internal-store-utils.js.map +0 -1
  284. package/esm2015/lib/utils/lazy-load-utils.js.map +0 -1
  285. package/esm2015/lib/utils/localization-utils.js.map +0 -1
  286. package/esm2015/lib/utils/multi-tenancy-utils.js.map +0 -1
  287. package/esm2015/lib/utils/number-utils.js.map +0 -1
  288. package/esm2015/lib/utils/object-utils.js.map +0 -1
  289. package/esm2015/lib/utils/route-utils.js.map +0 -1
  290. package/esm2015/lib/utils/string-utils.js.map +0 -1
  291. package/esm2015/lib/utils/tree-utils.js.map +0 -1
  292. package/esm2015/lib/validators/age.validator.js.map +0 -1
  293. package/esm2015/lib/validators/credit-card.validator.js.map +0 -1
  294. package/esm2015/lib/validators/index.js.map +0 -1
  295. package/esm2015/lib/validators/range.validator.js.map +0 -1
  296. package/esm2015/lib/validators/required.validator.js.map +0 -1
  297. package/esm2015/lib/validators/string-length.validator.js.map +0 -1
  298. package/esm2015/lib/validators/url.validator.js.map +0 -1
  299. package/esm2015/locale/abp-ng.core-locale.js.map +0 -1
  300. package/esm2015/locale/public-api.js.map +0 -1
  301. package/esm2015/locale/utils/register-locale.js.map +0 -1
  302. package/esm2015/public-api.js.map +0 -1
  303. package/esm2015/testing/abp-ng.core-testing.js.map +0 -1
  304. package/esm2015/testing/lib/core-testing.module.js.map +0 -1
  305. package/esm2015/testing/lib/services/index.js.map +0 -1
  306. package/esm2015/testing/lib/services/mock-permission.service.js.map +0 -1
  307. package/esm2015/testing/lib/services/mock-rest.service.js.map +0 -1
  308. package/esm2015/testing/lib/utils/clear-page.util.js.map +0 -1
  309. package/esm2015/testing/lib/utils/index.js.map +0 -1
  310. package/esm2015/testing/lib/utils/wait.util.js.map +0 -1
  311. package/esm2015/testing/public-api.js.map +0 -1
@@ -2,7 +2,7 @@
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/router'), require('rxjs'), require('rxjs/operators'), require('just-compare'), require('@angular/common/http'), require('@angular/common'), require('@angular/forms'), require('angular-oauth2-oidc'), require('just-clone')) :
3
3
  typeof define === 'function' && define.amd ? define('@abp/ng.core', ['exports', '@angular/core', '@angular/router', 'rxjs', 'rxjs/operators', 'just-compare', '@angular/common/http', '@angular/common', '@angular/forms', 'angular-oauth2-oidc', 'just-clone'], factory) :
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.abp = global.abp || {}, global.abp.ng = global.abp.ng || {}, global.abp.ng.core = {}), global.ng.core, global.ng.router, global.rxjs, global.rxjs.operators, global.compare, global.ng.common.http, global.ng.common, global.ng.forms, global.i1$3, global.clone));
5
- }(this, (function (exports, i0, i1$1, rxjs, operators, compare, i1, i5, i1$2, i1$3, clone) { 'use strict';
5
+ })(this, (function (exports, i0, i1$1, rxjs, operators, compare, i1, i5, i1$2, i1$3, clone) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -15,14 +15,12 @@
15
15
  var d = Object.getOwnPropertyDescriptor(e, k);
16
16
  Object.defineProperty(n, k, d.get ? d : {
17
17
  enumerable: true,
18
- get: function () {
19
- return e[k];
20
- }
18
+ get: function () { return e[k]; }
21
19
  });
22
20
  }
23
21
  });
24
22
  }
25
- n['default'] = e;
23
+ n["default"] = e;
26
24
  return Object.freeze(n);
27
25
  }
28
26
 
@@ -85,9 +83,9 @@
85
83
  };
86
84
  return AbstractNgModelComponent;
87
85
  }());
88
- AbstractNgModelComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AbstractNgModelComponent, deps: [{ token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Component });
89
- AbstractNgModelComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, template: '', isInline: true });
90
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AbstractNgModelComponent, decorators: [{
86
+ AbstractNgModelComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AbstractNgModelComponent, deps: [{ token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Component });
87
+ AbstractNgModelComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, template: '', isInline: true });
88
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AbstractNgModelComponent, decorators: [{
91
89
  type: i0.Component,
92
90
  args: [{ template: '' }]
93
91
  }], ctorParameters: function () { return [{ type: i0__namespace.Injector }]; }, propDecorators: { disabled: [{
@@ -566,7 +564,7 @@
566
564
  this.state$ = new rxjs.BehaviorSubject(this.initialState);
567
565
  this.update$ = new rxjs.Subject();
568
566
  this.sliceState = function (selector, compareFn) {
569
- if (compareFn === void 0) { compareFn = compare__default['default']; }
567
+ if (compareFn === void 0) { compareFn = compare__default["default"]; }
570
568
  return _this.state$.pipe(operators.map(selector), operators.distinctUntilChanged(compareFn));
571
569
  };
572
570
  this.sliceUpdate = function (selector, filterFn) {
@@ -638,9 +636,9 @@
638
636
  };
639
637
  return EnvironmentService;
640
638
  }());
641
- EnvironmentService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: EnvironmentService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
642
- EnvironmentService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: EnvironmentService, providedIn: 'root' });
643
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: EnvironmentService, decorators: [{
639
+ EnvironmentService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: EnvironmentService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
640
+ EnvironmentService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: EnvironmentService, providedIn: 'root' });
641
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: EnvironmentService, decorators: [{
644
642
  type: i0.Injectable,
645
643
  args: [{ providedIn: 'root' }]
646
644
  }] });
@@ -678,9 +676,9 @@
678
676
  });
679
677
  return HttpErrorReporterService;
680
678
  }());
681
- HttpErrorReporterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: HttpErrorReporterService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
682
- HttpErrorReporterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: HttpErrorReporterService, providedIn: 'root' });
683
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: HttpErrorReporterService, decorators: [{
679
+ HttpErrorReporterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: HttpErrorReporterService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
680
+ HttpErrorReporterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: HttpErrorReporterService, providedIn: 'root' });
681
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: HttpErrorReporterService, decorators: [{
684
682
  type: i0.Injectable,
685
683
  args: [{ providedIn: 'root' }]
686
684
  }] });
@@ -721,9 +719,9 @@
721
719
  };
722
720
  return RestService;
723
721
  }());
724
- RestService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: RestService, deps: [{ token: CORE_OPTIONS }, { token: i1__namespace.HttpClient }, { token: EnvironmentService }, { token: HttpErrorReporterService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
725
- RestService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: RestService, providedIn: 'root' });
726
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: RestService, decorators: [{
722
+ RestService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: RestService, deps: [{ token: CORE_OPTIONS }, { token: i1__namespace.HttpClient }, { token: EnvironmentService }, { token: HttpErrorReporterService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
723
+ RestService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: RestService, providedIn: 'root' });
724
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: RestService, decorators: [{
727
725
  type: i0.Injectable,
728
726
  args: [{
729
727
  providedIn: 'root',
@@ -748,9 +746,9 @@
748
746
  };
749
747
  return AbpApplicationConfigurationService;
750
748
  }());
751
- AbpApplicationConfigurationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AbpApplicationConfigurationService, deps: [{ token: RestService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
752
- AbpApplicationConfigurationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AbpApplicationConfigurationService, providedIn: 'root' });
753
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AbpApplicationConfigurationService, decorators: [{
749
+ AbpApplicationConfigurationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AbpApplicationConfigurationService, deps: [{ token: RestService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
750
+ AbpApplicationConfigurationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AbpApplicationConfigurationService, providedIn: 'root' });
751
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AbpApplicationConfigurationService, decorators: [{
754
752
  type: i0.Injectable,
755
753
  args: [{
756
754
  providedIn: 'root',
@@ -876,9 +874,9 @@
876
874
  };
877
875
  return ConfigStateService;
878
876
  }());
879
- ConfigStateService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ConfigStateService, deps: [{ token: AbpApplicationConfigurationService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
880
- ConfigStateService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ConfigStateService, providedIn: 'root' });
881
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ConfigStateService, decorators: [{
877
+ ConfigStateService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ConfigStateService, deps: [{ token: AbpApplicationConfigurationService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
878
+ ConfigStateService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ConfigStateService, providedIn: 'root' });
879
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ConfigStateService, decorators: [{
882
880
  type: i0.Injectable,
883
881
  args: [{
884
882
  providedIn: 'root',
@@ -951,9 +949,9 @@
951
949
  };
952
950
  return PermissionService;
953
951
  }());
954
- PermissionService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: PermissionService, deps: [{ token: ConfigStateService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
955
- PermissionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: PermissionService, providedIn: 'root' });
956
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: PermissionService, decorators: [{
952
+ PermissionService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: PermissionService, deps: [{ token: ConfigStateService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
953
+ PermissionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: PermissionService, providedIn: 'root' });
954
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: PermissionService, decorators: [{
957
955
  type: i0.Injectable,
958
956
  args: [{ providedIn: 'root' }]
959
957
  }], ctorParameters: function () { return [{ type: ConfigStateService }]; } });
@@ -1125,9 +1123,9 @@
1125
1123
  };
1126
1124
  return AbstractNavTreeService;
1127
1125
  }(AbstractTreeService));
1128
- AbstractNavTreeService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AbstractNavTreeService, deps: [{ token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1129
- AbstractNavTreeService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AbstractNavTreeService });
1130
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AbstractNavTreeService, decorators: [{
1126
+ AbstractNavTreeService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AbstractNavTreeService, deps: [{ token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1127
+ AbstractNavTreeService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AbstractNavTreeService });
1128
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AbstractNavTreeService, decorators: [{
1131
1129
  type: i0.Injectable
1132
1130
  }], ctorParameters: function () { return [{ type: i0__namespace.Injector }]; } });
1133
1131
  var RoutesService = /** @class */ (function (_super) {
@@ -1137,9 +1135,9 @@
1137
1135
  }
1138
1136
  return RoutesService;
1139
1137
  }(AbstractNavTreeService));
1140
- RoutesService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: RoutesService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
1141
- RoutesService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: RoutesService, providedIn: 'root' });
1142
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: RoutesService, decorators: [{
1138
+ RoutesService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: RoutesService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
1139
+ RoutesService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: RoutesService, providedIn: 'root' });
1140
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: RoutesService, decorators: [{
1143
1141
  type: i0.Injectable,
1144
1142
  args: [{ providedIn: 'root' }]
1145
1143
  }] });
@@ -1181,9 +1179,9 @@
1181
1179
  };
1182
1180
  return SubscriptionService;
1183
1181
  }());
1184
- SubscriptionService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: SubscriptionService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1185
- SubscriptionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: SubscriptionService });
1186
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: SubscriptionService, decorators: [{
1182
+ SubscriptionService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SubscriptionService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1183
+ SubscriptionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SubscriptionService });
1184
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SubscriptionService, decorators: [{
1187
1185
  type: i0.Injectable
1188
1186
  }] });
1189
1187
 
@@ -1223,6 +1221,14 @@
1223
1221
  }); });
1224
1222
  }
1225
1223
 
1224
+ var LOCALIZATIONS = new i0.InjectionToken('LOCALIZATIONS');
1225
+ function localizationContributor(localizations) {
1226
+ if (localizations) {
1227
+ localizations$.next(__spreadArray(__spreadArray([], __read(localizations$.value)), __read(localizations)));
1228
+ }
1229
+ }
1230
+ var localizations$ = new rxjs.BehaviorSubject([]);
1231
+
1226
1232
  // This will not be necessary when only Angukar 9.1+ is supported
1227
1233
  function getLocaleDirection(locale) {
1228
1234
  return /^(ar(-[A-Z]{2})?|ckb(-IR)?|fa(-AF)?|he|ks|lrc(-IQ)?|mzn|pa-Arab|ps(-PK)?|sd|ug|ur(-IN)?|uz-Arab|yi)$/.test(locale)
@@ -1257,7 +1263,7 @@
1257
1263
  function createLocalizationFinder(localization) {
1258
1264
  var localize = createLocalizer(localization);
1259
1265
  return function (resourceNames, keys) {
1260
- resourceNames = resourceNames.concat(localization.defaultResourceName).filter(Boolean);
1266
+ resourceNames = resourceNames.concat(localization.defaultResourceName || '').filter(Boolean);
1261
1267
  var resourceCount = resourceNames.length;
1262
1268
  var keyCount = keys.length;
1263
1269
  for (var i = 0; i < resourceCount; i++) {
@@ -1345,7 +1351,7 @@
1345
1351
  return this.store.sliceState(function (state) { return state.tenant; });
1346
1352
  };
1347
1353
  SessionStateService.prototype.setTenant = function (tenant) {
1348
- if (compare__default['default'](tenant, this.store.state.tenant))
1354
+ if (compare__default["default"](tenant, this.store.state.tenant))
1349
1355
  return;
1350
1356
  this.store.set(Object.assign(Object.assign({}, this.store.state), { tenant: tenant }));
1351
1357
  };
@@ -1357,9 +1363,9 @@
1357
1363
  };
1358
1364
  return SessionStateService;
1359
1365
  }());
1360
- SessionStateService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: SessionStateService, deps: [{ token: ConfigStateService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1361
- SessionStateService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: SessionStateService, providedIn: 'root' });
1362
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: SessionStateService, decorators: [{
1366
+ SessionStateService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SessionStateService, deps: [{ token: ConfigStateService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1367
+ SessionStateService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SessionStateService, providedIn: 'root' });
1368
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SessionStateService, decorators: [{
1363
1369
  type: i0.Injectable,
1364
1370
  args: [{
1365
1371
  providedIn: 'root',
@@ -1373,9 +1379,12 @@
1373
1379
  this.configState = configState;
1374
1380
  this.latestLang = this.sessionState.getLanguage();
1375
1381
  this._languageChange$ = new rxjs.Subject();
1382
+ this.uiLocalizations$ = new rxjs.BehaviorSubject(new Map());
1383
+ this.localizations$ = new rxjs.BehaviorSubject(new Map());
1376
1384
  if (otherInstance)
1377
1385
  throw new Error('LocalizationService should have only one instance.');
1378
1386
  this.listenToSetLanguage();
1387
+ this.initLocalizationValues();
1379
1388
  }
1380
1389
  Object.defineProperty(LocalizationService.prototype, "currentLang", {
1381
1390
  /**
@@ -1394,6 +1403,49 @@
1394
1403
  enumerable: false,
1395
1404
  configurable: true
1396
1405
  });
1406
+ LocalizationService.prototype.initLocalizationValues = function () {
1407
+ var _this = this;
1408
+ localizations$.subscribe(function (val) { return _this.addLocalization(val); });
1409
+ var remoteLocalizations$ = this.configState.getDeep$('localization.values');
1410
+ var currentLanguage$ = this.sessionState.getLanguage$();
1411
+ var uiLocalizations$ = rxjs.combineLatest([currentLanguage$, this.uiLocalizations$]).pipe(operators.map(function (_a) {
1412
+ var _b = __read(_a, 2), currentLang = _b[0], localizations = _b[1];
1413
+ return localizations.get(currentLang);
1414
+ }));
1415
+ rxjs.combineLatest([remoteLocalizations$, uiLocalizations$])
1416
+ .pipe(operators.map(function (_a) {
1417
+ var _b = __read(_a, 2), remote = _b[0], local = _b[1];
1418
+ if (remote) {
1419
+ if (!local) {
1420
+ local = new Map();
1421
+ }
1422
+ Object.entries(remote).forEach(function (entry) {
1423
+ var resourceName = entry[0];
1424
+ var remoteTexts = entry[1];
1425
+ var resource = local.get(resourceName) || {};
1426
+ resource = Object.assign(Object.assign({}, resource), remoteTexts);
1427
+ local.set(resourceName, resource);
1428
+ });
1429
+ }
1430
+ return local;
1431
+ }))
1432
+ .subscribe(function (val) { return _this.localizations$.next(val); });
1433
+ };
1434
+ LocalizationService.prototype.addLocalization = function (localizations) {
1435
+ if (!localizations)
1436
+ return;
1437
+ var localizationMap = this.uiLocalizations$.value;
1438
+ localizations.forEach(function (loc) {
1439
+ var cultureMap = localizationMap.get(loc.culture) || new Map();
1440
+ loc.resources.forEach(function (res) {
1441
+ var resource = cultureMap.get(res.resourceName) || {};
1442
+ resource = Object.assign(Object.assign({}, resource), res.texts);
1443
+ cultureMap.set(res.resourceName, resource);
1444
+ });
1445
+ localizationMap.set(loc.culture, cultureMap);
1446
+ });
1447
+ this.uiLocalizations$.next(localizationMap);
1448
+ };
1397
1449
  LocalizationService.prototype.listenToSetLanguage = function () {
1398
1450
  var _this = this;
1399
1451
  this.sessionState
@@ -1416,19 +1468,20 @@
1416
1468
  * @param interpolateParams Values to interpolate
1417
1469
  */
1418
1470
  LocalizationService.prototype.get = function (key) {
1471
+ var _this = this;
1419
1472
  var interpolateParams = [];
1420
1473
  for (var _i = 1; _i < arguments.length; _i++) {
1421
1474
  interpolateParams[_i - 1] = arguments[_i];
1422
1475
  }
1423
1476
  return this.configState
1424
1477
  .getAll$()
1425
- .pipe(operators.map(function (state) { return getLocalization.apply(void 0, __spreadArray([state, key], __read(interpolateParams))); }));
1478
+ .pipe(operators.map(function (state) { return _this.getLocalization.apply(_this, __spreadArray([state, key], __read(interpolateParams))); }));
1426
1479
  };
1427
1480
  LocalizationService.prototype.getResource = function (resourceName) {
1428
- return this.configState.getDeep("localization.values." + resourceName);
1481
+ return this.localizations$.value.get(resourceName);
1429
1482
  };
1430
1483
  LocalizationService.prototype.getResource$ = function (resourceName) {
1431
- return this.configState.getDeep$("localization.values." + resourceName);
1484
+ return this.localizations$.pipe(operators.map(function (res) { return res.get(resourceName); }));
1432
1485
  };
1433
1486
  /**
1434
1487
  * Returns localized text with the given interpolation parameters in current language.
@@ -1440,7 +1493,7 @@
1440
1493
  for (var _i = 1; _i < arguments.length; _i++) {
1441
1494
  interpolateParams[_i - 1] = arguments[_i];
1442
1495
  }
1443
- return getLocalization.apply(void 0, __spreadArray([this.configState.getAll(), key], __read(interpolateParams)));
1496
+ return this.getLocalization.apply(this, __spreadArray([this.configState.getAll(), key], __read(interpolateParams)));
1444
1497
  };
1445
1498
  LocalizationService.prototype.localize = function (resourceName, key, defaultValue) {
1446
1499
  return this.configState.getOne$('localization').pipe(operators.map(createLocalizer), operators.map(function (localize) { return localize(resourceName, key, defaultValue); }));
@@ -1456,11 +1509,59 @@
1456
1509
  var localization = this.configState.getOne('localization');
1457
1510
  return createLocalizerWithFallback(localization)(resourceNames, keys, defaultValue);
1458
1511
  };
1512
+ LocalizationService.prototype.getLocalization = function (state, key) {
1513
+ var interpolateParams = [];
1514
+ for (var _i = 2; _i < arguments.length; _i++) {
1515
+ interpolateParams[_i - 2] = arguments[_i];
1516
+ }
1517
+ if (!key)
1518
+ key = '';
1519
+ var defaultValue;
1520
+ if (typeof key !== 'string') {
1521
+ defaultValue = key.defaultValue;
1522
+ key = key.key;
1523
+ }
1524
+ var keys = key.split('::');
1525
+ var warn = function (message) {
1526
+ if (i0.isDevMode)
1527
+ console.warn(message);
1528
+ };
1529
+ if (keys.length < 2) {
1530
+ warn('The localization source separator (::) not found.');
1531
+ return defaultValue || key;
1532
+ }
1533
+ if (!state.localization)
1534
+ return defaultValue || keys[1];
1535
+ var sourceName = keys[0] || state.localization.defaultResourceName;
1536
+ var sourceKey = keys[1];
1537
+ if (sourceName === '_') {
1538
+ return defaultValue || sourceKey;
1539
+ }
1540
+ if (!sourceName) {
1541
+ warn('Localization source name is not specified and the defaultResourceName was not defined!');
1542
+ return defaultValue || sourceKey;
1543
+ }
1544
+ var source = this.localizations$.value.get(sourceName);
1545
+ if (!source) {
1546
+ warn('Could not find localization source: ' + sourceName);
1547
+ return defaultValue || sourceKey;
1548
+ }
1549
+ var localization = source[sourceKey];
1550
+ if (typeof localization === 'undefined') {
1551
+ return defaultValue || sourceKey;
1552
+ }
1553
+ interpolateParams = interpolateParams.filter(function (params) { return params != null; });
1554
+ if (localization)
1555
+ localization = interpolate(localization, interpolateParams);
1556
+ if (typeof localization !== 'string')
1557
+ localization = '';
1558
+ return localization || defaultValue || key;
1559
+ };
1459
1560
  return LocalizationService;
1460
1561
  }());
1461
- LocalizationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: LocalizationService, deps: [{ token: SessionStateService }, { token: i0__namespace.Injector }, { token: LocalizationService, optional: true, skipSelf: true }, { token: ConfigStateService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1462
- LocalizationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: LocalizationService, providedIn: 'root' });
1463
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: LocalizationService, decorators: [{
1562
+ LocalizationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: LocalizationService, deps: [{ token: SessionStateService }, { token: i0__namespace.Injector }, { token: LocalizationService, optional: true, skipSelf: true }, { token: ConfigStateService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1563
+ LocalizationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: LocalizationService, providedIn: 'root' });
1564
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: LocalizationService, decorators: [{
1464
1565
  type: i0.Injectable,
1465
1566
  args: [{ providedIn: 'root' }]
1466
1567
  }], ctorParameters: function () {
@@ -1469,55 +1570,7 @@
1469
1570
  }, {
1470
1571
  type: i0.SkipSelf
1471
1572
  }] }, { type: ConfigStateService }];
1472
- } });
1473
- function getLocalization(state, key) {
1474
- var interpolateParams = [];
1475
- for (var _i = 2; _i < arguments.length; _i++) {
1476
- interpolateParams[_i - 2] = arguments[_i];
1477
- }
1478
- if (!key)
1479
- key = '';
1480
- var defaultValue;
1481
- if (typeof key !== 'string') {
1482
- defaultValue = key.defaultValue;
1483
- key = key.key;
1484
- }
1485
- var keys = key.split('::');
1486
- var warn = function (message) {
1487
- if (i0.isDevMode)
1488
- console.warn(message);
1489
- };
1490
- if (keys.length < 2) {
1491
- warn('The localization source separator (::) not found.');
1492
- return defaultValue || key;
1493
- }
1494
- if (!state.localization)
1495
- return defaultValue || keys[1];
1496
- var sourceName = keys[0] || state.localization.defaultResourceName;
1497
- var sourceKey = keys[1];
1498
- if (sourceName === '_') {
1499
- return defaultValue || sourceKey;
1500
- }
1501
- if (!sourceName) {
1502
- warn('Localization source name is not specified and the defaultResourceName was not defined!');
1503
- return defaultValue || sourceKey;
1504
- }
1505
- var source = state.localization.values[sourceName];
1506
- if (!source) {
1507
- warn('Could not find localization source: ' + sourceName);
1508
- return defaultValue || sourceKey;
1509
- }
1510
- var localization = source[sourceKey];
1511
- if (typeof localization === 'undefined') {
1512
- return defaultValue || sourceKey;
1513
- }
1514
- interpolateParams = interpolateParams.filter(function (params) { return params != null; });
1515
- if (localization)
1516
- localization = interpolate(localization, interpolateParams);
1517
- if (typeof localization !== 'string')
1518
- localization = '';
1519
- return localization || defaultValue || key;
1520
- }
1573
+ } });
1521
1574
 
1522
1575
  var ReplaceableComponentsService = /** @class */ (function () {
1523
1576
  function ReplaceableComponentsService(ngZone, router) {
@@ -1567,9 +1620,9 @@
1567
1620
  };
1568
1621
  return ReplaceableComponentsService;
1569
1622
  }());
1570
- ReplaceableComponentsService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ReplaceableComponentsService, deps: [{ token: i0__namespace.NgZone }, { token: i1__namespace$1.Router }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1571
- ReplaceableComponentsService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ReplaceableComponentsService, providedIn: 'root' });
1572
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ReplaceableComponentsService, decorators: [{
1623
+ ReplaceableComponentsService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ReplaceableComponentsService, deps: [{ token: i0__namespace.NgZone }, { token: i1__namespace$1.Router }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1624
+ ReplaceableComponentsService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ReplaceableComponentsService, providedIn: 'root' });
1625
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ReplaceableComponentsService, decorators: [{
1573
1626
  type: i0.Injectable,
1574
1627
  args: [{ providedIn: 'root' }]
1575
1628
  }], ctorParameters: function () { return [{ type: i0__namespace.NgZone }, { type: i1__namespace$1.Router }]; } });
@@ -1609,9 +1662,9 @@
1609
1662
  };
1610
1663
  return RouterEvents;
1611
1664
  }());
1612
- RouterEvents.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: RouterEvents, deps: [{ token: i1__namespace$1.Router }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1613
- RouterEvents.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: RouterEvents, providedIn: 'root' });
1614
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: RouterEvents, decorators: [{
1665
+ RouterEvents.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: RouterEvents, deps: [{ token: i1__namespace$1.Router }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1666
+ RouterEvents.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: RouterEvents, providedIn: 'root' });
1667
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: RouterEvents, decorators: [{
1615
1668
  type: i0.Injectable,
1616
1669
  args: [{ providedIn: 'root' }]
1617
1670
  }], ctorParameters: function () { return [{ type: i1__namespace$1.Router }]; } });
@@ -1634,7 +1687,6 @@
1634
1687
  this.route = injector.get(i1$1.ActivatedRoute);
1635
1688
  this.router = injector.get(i1$1.Router);
1636
1689
  this.routes = injector.get(RoutesService);
1637
- this.getLayout();
1638
1690
  this.checkLayoutOnNavigationEnd();
1639
1691
  this.listenToLanguageChange();
1640
1692
  }
@@ -1677,9 +1729,9 @@
1677
1729
  };
1678
1730
  return DynamicLayoutComponent;
1679
1731
  }());
1680
- DynamicLayoutComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: DynamicLayoutComponent, deps: [{ token: i0__namespace.Injector }, { token: LocalizationService }, { token: ReplaceableComponentsService }, { token: SubscriptionService }, { token: RouterEvents }, { token: DynamicLayoutComponent, optional: true, skipSelf: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
1681
- DynamicLayoutComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: DynamicLayoutComponent, selector: "abp-dynamic-layout", providers: [SubscriptionService], ngImport: i0__namespace, template: "\n <ng-container *ngTemplateOutlet=\"layout ? componentOutlet : routerOutlet\"></ng-container>\n <ng-template #routerOutlet><router-outlet></router-outlet></ng-template>\n <ng-template #componentOutlet\n ><ng-container *ngIf=\"isLayoutVisible\" [ngComponentOutlet]=\"layout\"></ng-container\n ></ng-template>\n ", isInline: true, directives: [{ type: i5__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1__namespace$1.RouterOutlet, selector: "router-outlet", outputs: ["activate", "deactivate"], exportAs: ["outlet"] }, { type: i5__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModuleFactory"] }] });
1682
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: DynamicLayoutComponent, decorators: [{
1732
+ DynamicLayoutComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: DynamicLayoutComponent, deps: [{ token: i0__namespace.Injector }, { token: LocalizationService }, { token: ReplaceableComponentsService }, { token: SubscriptionService }, { token: RouterEvents }, { token: DynamicLayoutComponent, optional: true, skipSelf: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
1733
+ DynamicLayoutComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: DynamicLayoutComponent, selector: "abp-dynamic-layout", providers: [SubscriptionService], ngImport: i0__namespace, template: "\n <ng-container *ngTemplateOutlet=\"layout ? componentOutlet : routerOutlet\"></ng-container>\n <ng-template #routerOutlet><router-outlet></router-outlet></ng-template>\n <ng-template #componentOutlet\n ><ng-container *ngIf=\"isLayoutVisible\" [ngComponentOutlet]=\"layout\"></ng-container\n ></ng-template>\n ", isInline: true, directives: [{ type: i5__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1__namespace$1.RouterOutlet, selector: "router-outlet", outputs: ["activate", "deactivate"], exportAs: ["outlet"] }, { type: i5__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModuleFactory"] }] });
1734
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: DynamicLayoutComponent, decorators: [{
1683
1735
  type: i0.Component,
1684
1736
  args: [{
1685
1737
  selector: 'abp-dynamic-layout',
@@ -1714,9 +1766,9 @@
1714
1766
  };
1715
1767
  return ReplaceableRouteContainerComponent;
1716
1768
  }());
1717
- ReplaceableRouteContainerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ReplaceableRouteContainerComponent, deps: [{ token: i1__namespace$1.ActivatedRoute }, { token: ReplaceableComponentsService }, { token: SubscriptionService }], target: i0__namespace.ɵɵFactoryTarget.Component });
1718
- ReplaceableRouteContainerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: ReplaceableRouteContainerComponent, selector: "abp-replaceable-route-container", providers: [SubscriptionService], ngImport: i0__namespace, template: "\n <ng-container *ngComponentOutlet=\"externalComponent || defaultComponent\"></ng-container>\n ", isInline: true, directives: [{ type: i5__namespace.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModuleFactory"] }] });
1719
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ReplaceableRouteContainerComponent, decorators: [{
1769
+ ReplaceableRouteContainerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ReplaceableRouteContainerComponent, deps: [{ token: i1__namespace$1.ActivatedRoute }, { token: ReplaceableComponentsService }, { token: SubscriptionService }], target: i0__namespace.ɵɵFactoryTarget.Component });
1770
+ ReplaceableRouteContainerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: ReplaceableRouteContainerComponent, selector: "abp-replaceable-route-container", providers: [SubscriptionService], ngImport: i0__namespace, template: "\n <ng-container *ngComponentOutlet=\"externalComponent || defaultComponent\"></ng-container>\n ", isInline: true, directives: [{ type: i5__namespace.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModuleFactory"] }] });
1771
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ReplaceableRouteContainerComponent, decorators: [{
1720
1772
  type: i0.Component,
1721
1773
  args: [{
1722
1774
  selector: 'abp-replaceable-route-container',
@@ -1730,9 +1782,9 @@
1730
1782
  }
1731
1783
  return RouterOutletComponent;
1732
1784
  }());
1733
- RouterOutletComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: RouterOutletComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
1734
- RouterOutletComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: RouterOutletComponent, selector: "abp-router-outlet", ngImport: i0__namespace, template: " <router-outlet></router-outlet> ", isInline: true, directives: [{ type: i1__namespace$1.RouterOutlet, selector: "router-outlet", outputs: ["activate", "deactivate"], exportAs: ["outlet"] }] });
1735
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: RouterOutletComponent, decorators: [{
1785
+ RouterOutletComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: RouterOutletComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
1786
+ RouterOutletComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: RouterOutletComponent, selector: "abp-router-outlet", ngImport: i0__namespace, template: " <router-outlet></router-outlet> ", isInline: true, directives: [{ type: i1__namespace$1.RouterOutlet, selector: "router-outlet", outputs: ["activate", "deactivate"], exportAs: ["outlet"] }] });
1787
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: RouterOutletComponent, decorators: [{
1736
1788
  type: i0.Component,
1737
1789
  args: [{
1738
1790
  selector: 'abp-router-outlet',
@@ -2080,17 +2132,27 @@
2080
2132
  var AutofocusDirective = /** @class */ (function () {
2081
2133
  function AutofocusDirective(elRef) {
2082
2134
  this.elRef = elRef;
2083
- this.delay = 0;
2135
+ this._delay = 0;
2084
2136
  }
2137
+ Object.defineProperty(AutofocusDirective.prototype, "delay", {
2138
+ get: function () {
2139
+ return this._delay;
2140
+ },
2141
+ set: function (val) {
2142
+ this._delay = Number(val) || 0;
2143
+ },
2144
+ enumerable: false,
2145
+ configurable: true
2146
+ });
2085
2147
  AutofocusDirective.prototype.ngAfterViewInit = function () {
2086
2148
  var _this = this;
2087
2149
  setTimeout(function () { return _this.elRef.nativeElement.focus(); }, this.delay);
2088
2150
  };
2089
2151
  return AutofocusDirective;
2090
2152
  }());
2091
- AutofocusDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AutofocusDirective, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
2092
- AutofocusDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.6", type: AutofocusDirective, selector: "[autofocus]", inputs: { delay: ["autofocus", "delay"] }, ngImport: i0__namespace });
2093
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AutofocusDirective, decorators: [{
2153
+ AutofocusDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AutofocusDirective, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
2154
+ AutofocusDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: AutofocusDirective, selector: "[autofocus]", inputs: { delay: ["autofocus", "delay"] }, ngImport: i0__namespace });
2155
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AutofocusDirective, decorators: [{
2094
2156
  type: i0.Directive,
2095
2157
  args: [{
2096
2158
  // eslint-disable-next-line @angular-eslint/directive-selector
@@ -2117,9 +2179,9 @@
2117
2179
  };
2118
2180
  return InputEventDebounceDirective;
2119
2181
  }());
2120
- InputEventDebounceDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: InputEventDebounceDirective, deps: [{ token: i0__namespace.ElementRef }, { token: SubscriptionService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
2121
- InputEventDebounceDirective.ɵdir = i0__namespace.ɵɵ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__namespace });
2122
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: InputEventDebounceDirective, decorators: [{
2182
+ InputEventDebounceDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: InputEventDebounceDirective, deps: [{ token: i0__namespace.ElementRef }, { token: SubscriptionService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
2183
+ InputEventDebounceDirective.ɵdir = i0__namespace.ɵɵ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__namespace });
2184
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: InputEventDebounceDirective, decorators: [{
2123
2185
  type: i0.Directive,
2124
2186
  args: [{
2125
2187
  // eslint-disable-next-line @angular-eslint/directive-selector
@@ -2157,7 +2219,7 @@
2157
2219
  }
2158
2220
  Object.defineProperty(ForDirective.prototype, "compareFn", {
2159
2221
  get: function () {
2160
- return this.compareBy || compare__default['default'];
2222
+ return this.compareBy || compare__default["default"];
2161
2223
  },
2162
2224
  enumerable: false,
2163
2225
  configurable: true
@@ -2237,7 +2299,7 @@
2237
2299
  };
2238
2300
  ForDirective.prototype.ngOnChanges = function () {
2239
2301
  var _this = this;
2240
- var items = clone__default['default'](this.items);
2302
+ var items = clone__default["default"](this.items);
2241
2303
  if (!Array.isArray(items))
2242
2304
  return;
2243
2305
  var compareFn = this.compareFn;
@@ -2262,9 +2324,9 @@
2262
2324
  };
2263
2325
  return ForDirective;
2264
2326
  }());
2265
- ForDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ForDirective, deps: [{ token: i0__namespace.TemplateRef }, { token: i0__namespace.ViewContainerRef }, { token: i0__namespace.IterableDiffers }], target: i0__namespace.ɵɵFactoryTarget.Directive });
2266
- ForDirective.ɵdir = i0__namespace.ɵɵ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__namespace });
2267
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ForDirective, decorators: [{
2327
+ ForDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ForDirective, deps: [{ token: i0__namespace.TemplateRef }, { token: i0__namespace.ViewContainerRef }, { token: i0__namespace.IterableDiffers }], target: i0__namespace.ɵɵFactoryTarget.Directive });
2328
+ ForDirective.ɵdir = i0__namespace.ɵɵ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__namespace });
2329
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ForDirective, decorators: [{
2268
2330
  type: i0.Directive,
2269
2331
  args: [{
2270
2332
  selector: '[abpFor]',
@@ -2327,9 +2389,9 @@
2327
2389
  };
2328
2390
  return FormSubmitDirective;
2329
2391
  }());
2330
- FormSubmitDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: FormSubmitDirective, deps: [{ token: i1__namespace$2.FormGroupDirective, self: true }, { token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }, { token: SubscriptionService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
2331
- FormSubmitDirective.ɵdir = i0__namespace.ɵɵ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__namespace });
2332
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: FormSubmitDirective, decorators: [{
2392
+ FormSubmitDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: FormSubmitDirective, deps: [{ token: i1__namespace$2.FormGroupDirective, self: true }, { token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }, { token: SubscriptionService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
2393
+ FormSubmitDirective.ɵdir = i0__namespace.ɵɵ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__namespace });
2394
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: FormSubmitDirective, decorators: [{
2333
2395
  type: i0.Directive,
2334
2396
  args: [{
2335
2397
  // eslint-disable-next-line @angular-eslint/directive-selector
@@ -2370,9 +2432,9 @@
2370
2432
  };
2371
2433
  return InitDirective;
2372
2434
  }());
2373
- InitDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: InitDirective, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
2374
- InitDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.6", type: InitDirective, selector: "[abpInit]", outputs: { init: "abpInit" }, ngImport: i0__namespace });
2375
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: InitDirective, decorators: [{
2435
+ InitDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: InitDirective, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
2436
+ InitDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: InitDirective, selector: "[abpInit]", outputs: { init: "abpInit" }, ngImport: i0__namespace });
2437
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: InitDirective, decorators: [{
2376
2438
  type: i0.Directive,
2377
2439
  args: [{ selector: '[abpInit]' }]
2378
2440
  }], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }]; }, propDecorators: { init: [{
@@ -2381,9 +2443,7 @@
2381
2443
  }] } });
2382
2444
 
2383
2445
  var PermissionDirective = /** @class */ (function () {
2384
- function PermissionDirective(elRef, renderer, templateRef, vcRef, permissionService, cdRef) {
2385
- this.elRef = elRef;
2386
- this.renderer = renderer;
2446
+ function PermissionDirective(templateRef, vcRef, permissionService, cdRef) {
2387
2447
  this.templateRef = templateRef;
2388
2448
  this.vcRef = vcRef;
2389
2449
  this.permissionService = permissionService;
@@ -2395,7 +2455,7 @@
2395
2455
  this.subscription.unsubscribe();
2396
2456
  }
2397
2457
  this.subscription = this.permissionService
2398
- .getGrantedPolicy$(this.condition)
2458
+ .getGrantedPolicy$(this.condition || '')
2399
2459
  .pipe(operators.distinctUntilChanged())
2400
2460
  .subscribe(function (isGranted) {
2401
2461
  _this.vcRef.clear();
@@ -2413,15 +2473,15 @@
2413
2473
  };
2414
2474
  return PermissionDirective;
2415
2475
  }());
2416
- PermissionDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: PermissionDirective, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.Renderer2 }, { token: i0__namespace.TemplateRef, optional: true }, { token: i0__namespace.ViewContainerRef }, { token: PermissionService }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
2417
- PermissionDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.6", type: PermissionDirective, selector: "[abpPermission]", inputs: { condition: ["abpPermission", "condition"] }, usesOnChanges: true, ngImport: i0__namespace });
2418
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: PermissionDirective, decorators: [{
2476
+ PermissionDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: PermissionDirective, deps: [{ token: i0__namespace.TemplateRef, optional: true }, { token: i0__namespace.ViewContainerRef }, { token: PermissionService }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
2477
+ PermissionDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: PermissionDirective, selector: "[abpPermission]", inputs: { condition: ["abpPermission", "condition"] }, usesOnChanges: true, ngImport: i0__namespace });
2478
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: PermissionDirective, decorators: [{
2419
2479
  type: i0.Directive,
2420
2480
  args: [{
2421
2481
  selector: '[abpPermission]',
2422
2482
  }]
2423
2483
  }], ctorParameters: function () {
2424
- return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.Renderer2 }, { type: i0__namespace.TemplateRef, decorators: [{
2484
+ return [{ type: i0__namespace.TemplateRef, decorators: [{
2425
2485
  type: i0.Optional
2426
2486
  }] }, { type: i0__namespace.ViewContainerRef }, { type: PermissionService }, { type: i0__namespace.ChangeDetectorRef }];
2427
2487
  }, propDecorators: { condition: [{
@@ -2459,7 +2519,7 @@
2459
2519
  .get$(this.data.componentKey)
2460
2520
  .pipe(operators.filter(function (res) {
2461
2521
  if (res === void 0) { res = {}; }
2462
- return !_this.initialized || !compare__default['default'](res.component, _this.externalComponent);
2522
+ return !_this.initialized || !compare__default["default"](res.component, _this.externalComponent);
2463
2523
  }));
2464
2524
  this.subscription.addOne(component$, function (res) {
2465
2525
  if (res === void 0) { res = {}; }
@@ -2495,7 +2555,7 @@
2495
2555
  if (this.data.inputs) {
2496
2556
  for (var key in this.data.inputs) {
2497
2557
  if (Object.prototype.hasOwnProperty.call(this.data.inputs, key)) {
2498
- if (!compare__default['default'](this.defaultComponentRef[key], this.data.inputs[key].value)) {
2558
+ if (!compare__default["default"](this.defaultComponentRef[key], this.data.inputs[key].value)) {
2499
2559
  this.defaultComponentRef[key] = this.data.inputs[key].value;
2500
2560
  }
2501
2561
  }
@@ -2506,7 +2566,8 @@
2506
2566
  if (Object.prototype.hasOwnProperty.call(this_1.data.outputs, key)) {
2507
2567
  if (!this_1.defaultComponentSubscriptions[key]) {
2508
2568
  this_1.defaultComponentSubscriptions[key] = this_1.defaultComponentRef[key].subscribe(function (value) {
2509
- _this.data.outputs[key](value);
2569
+ var _a;
2570
+ (_a = _this.data.outputs) === null || _a === void 0 ? void 0 : _a[key](value);
2510
2571
  });
2511
2572
  }
2512
2573
  }
@@ -2519,12 +2580,13 @@
2519
2580
  };
2520
2581
  ReplaceableTemplateDirective.prototype.setProvidedData = function () {
2521
2582
  var _this = this;
2522
- this.providedData = Object.assign(Object.assign({}, this.data), { inputs: {} });
2583
+ this.providedData = Object.assign(Object.assign({ outputs: {} }, this.data), { inputs: {} });
2523
2584
  if (!this.data.inputs)
2524
2585
  return;
2525
2586
  Object.defineProperties(this.providedData.inputs, Object.assign({}, Object.keys(this.data.inputs).reduce(function (acc, key) {
2526
2587
  var _c;
2527
- return (Object.assign(Object.assign({}, acc), (_c = {}, _c[key] = Object.assign({ enumerable: true, configurable: true, get: function () { return _this.data.inputs[key].value; } }, (_this.data.inputs[key].twoWay && {
2588
+ var _a;
2589
+ return (Object.assign(Object.assign({}, acc), (_c = {}, _c[key] = Object.assign({ enumerable: true, configurable: true, get: function () { 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) && {
2528
2590
  set: function (newValue) {
2529
2591
  _this.data.inputs[key].value = newValue;
2530
2592
  _this.data.outputs[key + "Change"](newValue);
@@ -2542,9 +2604,9 @@
2542
2604
  };
2543
2605
  return ReplaceableTemplateDirective;
2544
2606
  }());
2545
- ReplaceableTemplateDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ReplaceableTemplateDirective, deps: [{ token: i0__namespace.Injector }, { token: i0__namespace.TemplateRef }, { token: i0__namespace.ComponentFactoryResolver }, { token: i0__namespace.ViewContainerRef }, { token: ReplaceableComponentsService }, { token: SubscriptionService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
2546
- ReplaceableTemplateDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.6", type: ReplaceableTemplateDirective, selector: "[abpReplaceableTemplate]", inputs: { data: ["abpReplaceableTemplate", "data"] }, providers: [SubscriptionService], usesOnChanges: true, ngImport: i0__namespace });
2547
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ReplaceableTemplateDirective, decorators: [{
2607
+ ReplaceableTemplateDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ReplaceableTemplateDirective, deps: [{ token: i0__namespace.Injector }, { token: i0__namespace.TemplateRef }, { token: i0__namespace.ComponentFactoryResolver }, { token: i0__namespace.ViewContainerRef }, { token: ReplaceableComponentsService }, { token: SubscriptionService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
2608
+ ReplaceableTemplateDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: ReplaceableTemplateDirective, selector: "[abpReplaceableTemplate]", inputs: { data: ["abpReplaceableTemplate", "data"] }, providers: [SubscriptionService], usesOnChanges: true, ngImport: i0__namespace });
2609
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ReplaceableTemplateDirective, decorators: [{
2548
2610
  type: i0.Directive,
2549
2611
  args: [{
2550
2612
  selector: '[abpReplaceableTemplate]',
@@ -2570,9 +2632,9 @@
2570
2632
  };
2571
2633
  return StopPropagationDirective;
2572
2634
  }());
2573
- StopPropagationDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: StopPropagationDirective, deps: [{ token: i0__namespace.ElementRef }, { token: SubscriptionService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
2574
- StopPropagationDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.6", type: StopPropagationDirective, selector: "[click.stop]", outputs: { stopPropEvent: "click.stop" }, providers: [SubscriptionService], ngImport: i0__namespace });
2575
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: StopPropagationDirective, decorators: [{
2635
+ StopPropagationDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: StopPropagationDirective, deps: [{ token: i0__namespace.ElementRef }, { token: SubscriptionService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
2636
+ StopPropagationDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: StopPropagationDirective, selector: "[click.stop]", outputs: { stopPropEvent: "click.stop" }, providers: [SubscriptionService], ngImport: i0__namespace });
2637
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: StopPropagationDirective, decorators: [{
2576
2638
  type: i0.Directive,
2577
2639
  args: [{
2578
2640
  // eslint-disable-next-line @angular-eslint/directive-selector
@@ -2595,16 +2657,16 @@
2595
2657
  var _this = this;
2596
2658
  this.environmentService
2597
2659
  .createOnUpdateStream(function (state) { return state; })
2598
- .pipe(operators.map(function (environment) { return environment.oAuthConfig; }), operators.filter(function (config) { return !compare__default['default'](config, _this.options.environment.oAuthConfig); }))
2660
+ .pipe(operators.map(function (environment) { return environment.oAuthConfig; }), operators.filter(function (config) { return !compare__default["default"](config, _this.options.environment.oAuthConfig); }))
2599
2661
  .subscribe(function (config) {
2600
2662
  _this.oAuthService.configure(config);
2601
2663
  });
2602
2664
  };
2603
2665
  return OAuthConfigurationHandler;
2604
2666
  }());
2605
- OAuthConfigurationHandler.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: OAuthConfigurationHandler, deps: [{ token: i1__namespace$3.OAuthService }, { token: EnvironmentService }, { token: CORE_OPTIONS }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
2606
- OAuthConfigurationHandler.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: OAuthConfigurationHandler, providedIn: 'root' });
2607
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: OAuthConfigurationHandler, decorators: [{
2667
+ OAuthConfigurationHandler.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: OAuthConfigurationHandler, deps: [{ token: i1__namespace$3.OAuthService }, { token: EnvironmentService }, { token: CORE_OPTIONS }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
2668
+ OAuthConfigurationHandler.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: OAuthConfigurationHandler, providedIn: 'root' });
2669
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: OAuthConfigurationHandler, decorators: [{
2608
2670
  type: i0.Injectable,
2609
2671
  args: [{
2610
2672
  providedIn: 'root',
@@ -2639,9 +2701,9 @@
2639
2701
  };
2640
2702
  return RoutesHandler;
2641
2703
  }());
2642
- RoutesHandler.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: RoutesHandler, deps: [{ token: RoutesService }, { token: i1__namespace$1.Router, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
2643
- RoutesHandler.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: RoutesHandler, providedIn: 'root' });
2644
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: RoutesHandler, decorators: [{
2704
+ RoutesHandler.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: RoutesHandler, deps: [{ token: RoutesService }, { token: i1__namespace$1.Router, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
2705
+ RoutesHandler.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: RoutesHandler, providedIn: 'root' });
2706
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: RoutesHandler, decorators: [{
2645
2707
  type: i0.Injectable,
2646
2708
  args: [{
2647
2709
  providedIn: 'root',
@@ -2755,9 +2817,9 @@
2755
2817
  };
2756
2818
  return HttpWaitService;
2757
2819
  }());
2758
- HttpWaitService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: HttpWaitService, deps: [{ token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
2759
- HttpWaitService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: HttpWaitService, providedIn: 'root' });
2760
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: HttpWaitService, decorators: [{
2820
+ HttpWaitService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: HttpWaitService, deps: [{ token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
2821
+ HttpWaitService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: HttpWaitService, providedIn: 'root' });
2822
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: HttpWaitService, decorators: [{
2761
2823
  type: i0.Injectable,
2762
2824
  args: [{
2763
2825
  providedIn: 'root',
@@ -2798,9 +2860,9 @@
2798
2860
  };
2799
2861
  return ApiInterceptor;
2800
2862
  }());
2801
- ApiInterceptor.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ApiInterceptor, deps: [{ token: i1__namespace$3.OAuthService }, { token: SessionStateService }, { token: HttpWaitService }, { token: TENANT_KEY }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
2802
- ApiInterceptor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ApiInterceptor, providedIn: 'root' });
2803
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ApiInterceptor, decorators: [{
2863
+ ApiInterceptor.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ApiInterceptor, deps: [{ token: i1__namespace$3.OAuthService }, { token: SessionStateService }, { token: HttpWaitService }, { token: TENANT_KEY }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
2864
+ ApiInterceptor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ApiInterceptor, providedIn: 'root' });
2865
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ApiInterceptor, decorators: [{
2804
2866
  type: i0.Injectable,
2805
2867
  args: [{
2806
2868
  providedIn: 'root',
@@ -2823,14 +2885,23 @@
2823
2885
  for (var _i = 1; _i < arguments.length; _i++) {
2824
2886
  interpolateParams[_i - 1] = arguments[_i];
2825
2887
  }
2826
- return (_a = this.localization).instant.apply(_a, __spreadArray([value], __read(interpolateParams.reduce(function (acc, val) { return (Array.isArray(val) ? __spreadArray(__spreadArray([], __read(acc)), __read(val)) : __spreadArray(__spreadArray([], __read(acc)), [val])); }, []))));
2888
+ var params = interpolateParams.reduce(function (acc, val) {
2889
+ if (!acc) {
2890
+ return val;
2891
+ }
2892
+ if (!val) {
2893
+ return acc;
2894
+ }
2895
+ return Array.isArray(val) ? __spreadArray(__spreadArray([], __read(acc)), __read(val)) : __spreadArray(__spreadArray([], __read(acc)), [val]);
2896
+ }, []) || [];
2897
+ return (_a = this.localization).instant.apply(_a, __spreadArray([value], __read(params)));
2827
2898
  };
2828
2899
  return LocalizationPipe;
2829
2900
  }());
2830
- LocalizationPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: LocalizationPipe, deps: [{ token: LocalizationService }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
2831
- LocalizationPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: LocalizationPipe, name: "abpLocalization" });
2832
- LocalizationPipe.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: LocalizationPipe });
2833
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: LocalizationPipe, decorators: [{
2901
+ LocalizationPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: LocalizationPipe, deps: [{ token: LocalizationService }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
2902
+ LocalizationPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: LocalizationPipe, name: "abpLocalization" });
2903
+ LocalizationPipe.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: LocalizationPipe });
2904
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: LocalizationPipe, decorators: [{
2834
2905
  type: i0.Injectable
2835
2906
  }, {
2836
2907
  type: i0.Pipe,
@@ -2844,10 +2915,10 @@
2844
2915
  }
2845
2916
  return LocalizationModule;
2846
2917
  }());
2847
- LocalizationModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: LocalizationModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
2848
- LocalizationModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: LocalizationModule, declarations: [LocalizationPipe], exports: [LocalizationPipe] });
2849
- LocalizationModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: LocalizationModule });
2850
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: LocalizationModule, decorators: [{
2918
+ LocalizationModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: LocalizationModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
2919
+ LocalizationModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: LocalizationModule, declarations: [LocalizationPipe], exports: [LocalizationPipe] });
2920
+ LocalizationModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: LocalizationModule });
2921
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: LocalizationModule, decorators: [{
2851
2922
  type: i0.NgModule,
2852
2923
  args: [{
2853
2924
  exports: [LocalizationPipe],
@@ -2890,10 +2961,10 @@
2890
2961
  };
2891
2962
  return SortPipe;
2892
2963
  }());
2893
- SortPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: SortPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
2894
- SortPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: SortPipe, name: "abpSort" });
2895
- SortPipe.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: SortPipe });
2896
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: SortPipe, decorators: [{
2964
+ SortPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SortPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
2965
+ SortPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SortPipe, name: "abpSort" });
2966
+ SortPipe.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SortPipe });
2967
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SortPipe, decorators: [{
2897
2968
  type: i0.Injectable
2898
2969
  }, {
2899
2970
  type: i0.Pipe,
@@ -3010,6 +3081,9 @@
3010
3081
  if (shouldClear)
3011
3082
  clearOAuthStorage(oAuthStorage);
3012
3083
  this.oAuthService.configure(this.oAuthConfig);
3084
+ this.oAuthService.events
3085
+ .pipe(operators.filter(function (event) { return event.type === 'token_refresh_error'; }))
3086
+ .subscribe(function () { return _this.navigateToLogin(); });
3013
3087
  return [2 /*return*/, this.oAuthService
3014
3088
  .loadDiscoveryDocument()
3015
3089
  .then(function () {
@@ -3238,9 +3312,9 @@
3238
3312
  };
3239
3313
  return AuthService;
3240
3314
  }());
3241
- AuthService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AuthService, deps: [{ token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
3242
- AuthService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AuthService, providedIn: 'root' });
3243
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AuthService, decorators: [{
3315
+ AuthService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AuthService, deps: [{ token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
3316
+ AuthService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AuthService, providedIn: 'root' });
3317
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AuthService, decorators: [{
3244
3318
  type: i0.Injectable,
3245
3319
  args: [{
3246
3320
  providedIn: 'root',
@@ -3297,9 +3371,9 @@
3297
3371
  }
3298
3372
  return AbpTenantService;
3299
3373
  }());
3300
- AbpTenantService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AbpTenantService, deps: [{ token: RestService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
3301
- AbpTenantService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AbpTenantService, providedIn: 'root' });
3302
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AbpTenantService, decorators: [{
3374
+ AbpTenantService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AbpTenantService, deps: [{ token: RestService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
3375
+ AbpTenantService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AbpTenantService, providedIn: 'root' });
3376
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AbpTenantService, decorators: [{
3303
3377
  type: i0.Injectable,
3304
3378
  args: [{
3305
3379
  providedIn: 'root',
@@ -3336,9 +3410,9 @@
3336
3410
  };
3337
3411
  return MultiTenancyService;
3338
3412
  }());
3339
- MultiTenancyService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: MultiTenancyService, deps: [{ token: RestService }, { token: SessionStateService }, { token: AbpTenantService }, { token: ConfigStateService }, { token: TENANT_KEY }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
3340
- MultiTenancyService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: MultiTenancyService, providedIn: 'root' });
3341
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: MultiTenancyService, decorators: [{
3413
+ MultiTenancyService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: MultiTenancyService, deps: [{ token: RestService }, { token: SessionStateService }, { token: AbpTenantService }, { token: ConfigStateService }, { token: TENANT_KEY }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
3414
+ MultiTenancyService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: MultiTenancyService, providedIn: 'root' });
3415
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: MultiTenancyService, decorators: [{
3342
3416
  type: i0.Injectable,
3343
3417
  args: [{ providedIn: 'root' }]
3344
3418
  }], ctorParameters: function () {
@@ -3413,7 +3487,7 @@
3413
3487
  function replaceTenantNameWithinEnvironment(injector, tenancyName, placeholder) {
3414
3488
  if (placeholder === void 0) { placeholder = tenancyPlaceholder; }
3415
3489
  var environmentService = injector.get(EnvironmentService);
3416
- var environment = clone__default['default'](environmentService.getEnvironment());
3490
+ var environment = clone__default["default"](environmentService.getEnvironment());
3417
3491
  if (environment.application.baseUrl) {
3418
3492
  environment.application.baseUrl = environment.application.baseUrl.replace(placeholder, tenancyName);
3419
3493
  }
@@ -3506,8 +3580,8 @@
3506
3580
  }
3507
3581
  return BaseCoreModule;
3508
3582
  }());
3509
- BaseCoreModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: BaseCoreModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
3510
- BaseCoreModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: BaseCoreModule, declarations: [AbstractNgModelComponent,
3583
+ BaseCoreModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: BaseCoreModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
3584
+ BaseCoreModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: BaseCoreModule, declarations: [AbstractNgModelComponent,
3511
3585
  AutofocusDirective,
3512
3586
  DynamicLayoutComponent,
3513
3587
  ForDirective,
@@ -3544,7 +3618,7 @@
3544
3618
  RouterOutletComponent,
3545
3619
  SortPipe,
3546
3620
  StopPropagationDirective] });
3547
- BaseCoreModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: BaseCoreModule, providers: [LocalizationPipe], imports: [[
3621
+ BaseCoreModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: BaseCoreModule, providers: [LocalizationPipe], imports: [[
3548
3622
  i1$3.OAuthModule,
3549
3623
  i5.CommonModule,
3550
3624
  i1.HttpClientModule,
@@ -3558,7 +3632,7 @@
3558
3632
  i1$2.ReactiveFormsModule,
3559
3633
  i1$1.RouterModule,
3560
3634
  LocalizationModule] });
3561
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: BaseCoreModule, decorators: [{
3635
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: BaseCoreModule, decorators: [{
3562
3636
  type: i0.NgModule,
3563
3637
  args: [{
3564
3638
  exports: [
@@ -3623,9 +3697,9 @@
3623
3697
  }
3624
3698
  return RootCoreModule;
3625
3699
  }());
3626
- RootCoreModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: RootCoreModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
3627
- RootCoreModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: RootCoreModule, imports: [BaseCoreModule, LocalizationModule, i1__namespace$3.OAuthModule, i1__namespace.HttpClientXsrfModule], exports: [BaseCoreModule, LocalizationModule] });
3628
- RootCoreModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: RootCoreModule, imports: [[
3700
+ RootCoreModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: RootCoreModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
3701
+ RootCoreModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: RootCoreModule, imports: [BaseCoreModule, LocalizationModule, i1__namespace$3.OAuthModule, i1__namespace.HttpClientXsrfModule], exports: [BaseCoreModule, LocalizationModule] });
3702
+ RootCoreModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: RootCoreModule, imports: [[
3629
3703
  BaseCoreModule,
3630
3704
  LocalizationModule,
3631
3705
  i1$3.OAuthModule.forRoot(),
@@ -3634,7 +3708,7 @@
3634
3708
  headerName: 'RequestVerificationToken',
3635
3709
  }),
3636
3710
  ], BaseCoreModule, LocalizationModule] });
3637
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: RootCoreModule, decorators: [{
3711
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: RootCoreModule, decorators: [{
3638
3712
  type: i0.NgModule,
3639
3713
  args: [{
3640
3714
  exports: [BaseCoreModule, LocalizationModule],
@@ -3708,15 +3782,35 @@
3708
3782
  },
3709
3783
  { provide: i1$3.OAuthStorage, useFactory: storageFactory },
3710
3784
  { provide: TENANT_KEY, useValue: options.tenantKey || '__tenant' },
3785
+ {
3786
+ provide: LOCALIZATIONS,
3787
+ multi: true,
3788
+ useValue: localizationContributor(options.localizations),
3789
+ deps: [LocalizationService],
3790
+ },
3791
+ ],
3792
+ };
3793
+ };
3794
+ CoreModule.forChild = function (options) {
3795
+ if (options === void 0) { options = {}; }
3796
+ return {
3797
+ ngModule: RootCoreModule,
3798
+ providers: [
3799
+ {
3800
+ provide: LOCALIZATIONS,
3801
+ multi: true,
3802
+ useValue: localizationContributor(options.localizations),
3803
+ deps: [LocalizationService],
3804
+ },
3711
3805
  ],
3712
3806
  };
3713
3807
  };
3714
3808
  return CoreModule;
3715
3809
  }());
3716
- CoreModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: CoreModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
3717
- CoreModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: CoreModule, imports: [BaseCoreModule], exports: [BaseCoreModule] });
3718
- CoreModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: CoreModule, imports: [[BaseCoreModule], BaseCoreModule] });
3719
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: CoreModule, decorators: [{
3810
+ CoreModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: CoreModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
3811
+ CoreModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: CoreModule, imports: [BaseCoreModule], exports: [BaseCoreModule] });
3812
+ CoreModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: CoreModule, imports: [[BaseCoreModule], BaseCoreModule] });
3813
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: CoreModule, decorators: [{
3720
3814
  type: i0.NgModule,
3721
3815
  args: [{
3722
3816
  exports: [BaseCoreModule],
@@ -3742,9 +3836,9 @@
3742
3836
  };
3743
3837
  return AuthGuard;
3744
3838
  }());
3745
- AuthGuard.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AuthGuard, deps: [{ token: i1__namespace$3.OAuthService }, { token: AuthService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
3746
- AuthGuard.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AuthGuard, providedIn: 'root' });
3747
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AuthGuard, decorators: [{
3839
+ AuthGuard.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AuthGuard, deps: [{ token: i1__namespace$3.OAuthService }, { token: AuthService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
3840
+ AuthGuard.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AuthGuard, providedIn: 'root' });
3841
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AuthGuard, decorators: [{
3748
3842
  type: i0.Injectable,
3749
3843
  args: [{
3750
3844
  providedIn: 'root',
@@ -3775,9 +3869,9 @@
3775
3869
  };
3776
3870
  return PermissionGuard;
3777
3871
  }());
3778
- PermissionGuard.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: PermissionGuard, deps: [{ token: i1__namespace$1.Router }, { token: RoutesService }, { token: PermissionService }, { token: HttpErrorReporterService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
3779
- PermissionGuard.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: PermissionGuard, providedIn: 'root' });
3780
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: PermissionGuard, decorators: [{
3872
+ PermissionGuard.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: PermissionGuard, deps: [{ token: i1__namespace$1.Router }, { token: RoutesService }, { token: PermissionService }, { token: HttpErrorReporterService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
3873
+ PermissionGuard.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: PermissionGuard, providedIn: 'root' });
3874
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: PermissionGuard, decorators: [{
3781
3875
  type: i0.Injectable,
3782
3876
  args: [{
3783
3877
  providedIn: 'root',
@@ -3972,9 +4066,9 @@
3972
4066
  }
3973
4067
  return AbpApiDefinitionService;
3974
4068
  }());
3975
- AbpApiDefinitionService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AbpApiDefinitionService, deps: [{ token: RestService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
3976
- AbpApiDefinitionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AbpApiDefinitionService, providedIn: 'root' });
3977
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AbpApiDefinitionService, decorators: [{
4069
+ AbpApiDefinitionService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AbpApiDefinitionService, deps: [{ token: RestService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
4070
+ AbpApiDefinitionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AbpApiDefinitionService, providedIn: 'root' });
4071
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AbpApiDefinitionService, decorators: [{
3978
4072
  type: i0.Injectable,
3979
4073
  args: [{
3980
4074
  providedIn: 'root',
@@ -3995,9 +4089,9 @@
3995
4089
  };
3996
4090
  return ContentProjectionService;
3997
4091
  }());
3998
- ContentProjectionService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ContentProjectionService, deps: [{ token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
3999
- ContentProjectionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ContentProjectionService, providedIn: 'root' });
4000
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ContentProjectionService, decorators: [{
4092
+ ContentProjectionService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ContentProjectionService, deps: [{ token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
4093
+ ContentProjectionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ContentProjectionService, providedIn: 'root' });
4094
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ContentProjectionService, decorators: [{
4001
4095
  type: i0.Injectable,
4002
4096
  args: [{ providedIn: 'root' }]
4003
4097
  }], ctorParameters: function () { return [{ type: i0__namespace.Injector }]; } });
@@ -4233,9 +4327,9 @@
4233
4327
  };
4234
4328
  return DomInsertionService;
4235
4329
  }());
4236
- DomInsertionService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: DomInsertionService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
4237
- DomInsertionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: DomInsertionService, providedIn: 'root' });
4238
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: DomInsertionService, decorators: [{
4330
+ DomInsertionService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: DomInsertionService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
4331
+ DomInsertionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: DomInsertionService, providedIn: 'root' });
4332
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: DomInsertionService, decorators: [{
4239
4333
  type: i0.Injectable,
4240
4334
  args: [{ providedIn: 'root' }]
4241
4335
  }] });
@@ -4274,9 +4368,9 @@
4274
4368
  };
4275
4369
  return ResourceWaitService;
4276
4370
  }());
4277
- ResourceWaitService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ResourceWaitService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
4278
- ResourceWaitService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ResourceWaitService, providedIn: 'root' });
4279
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ResourceWaitService, decorators: [{
4371
+ ResourceWaitService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ResourceWaitService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
4372
+ ResourceWaitService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ResourceWaitService, providedIn: 'root' });
4373
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ResourceWaitService, decorators: [{
4280
4374
  type: i0.Injectable,
4281
4375
  args: [{
4282
4376
  providedIn: 'root',
@@ -4308,9 +4402,9 @@
4308
4402
  };
4309
4403
  return LazyLoadService;
4310
4404
  }());
4311
- LazyLoadService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: LazyLoadService, deps: [{ token: ResourceWaitService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
4312
- LazyLoadService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: LazyLoadService, providedIn: 'root' });
4313
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: LazyLoadService, decorators: [{
4405
+ LazyLoadService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: LazyLoadService, deps: [{ token: ResourceWaitService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
4406
+ LazyLoadService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: LazyLoadService, providedIn: 'root' });
4407
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: LazyLoadService, decorators: [{
4314
4408
  type: i0.Injectable,
4315
4409
  args: [{
4316
4410
  providedIn: 'root',
@@ -4442,9 +4536,9 @@
4442
4536
  };
4443
4537
  return ListService;
4444
4538
  }());
4445
- ListService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ListService, deps: [{ token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
4446
- ListService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ListService });
4447
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ListService, decorators: [{
4539
+ ListService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ListService, deps: [{ token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
4540
+ ListService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ListService });
4541
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ListService, decorators: [{
4448
4542
  type: i0.Injectable
4449
4543
  }], ctorParameters: function () { return [{ type: i0__namespace.Injector }]; } });
4450
4544
 
@@ -4489,9 +4583,9 @@
4489
4583
  };
4490
4584
  return RouterWaitService;
4491
4585
  }());
4492
- RouterWaitService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: RouterWaitService, deps: [{ token: RouterEvents }, { token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
4493
- RouterWaitService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: RouterWaitService, providedIn: 'root' });
4494
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: RouterWaitService, decorators: [{
4586
+ RouterWaitService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: RouterWaitService, deps: [{ token: RouterEvents }, { token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
4587
+ RouterWaitService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: RouterWaitService, providedIn: 'root' });
4588
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: RouterWaitService, decorators: [{
4495
4589
  type: i0.Injectable,
4496
4590
  args: [{
4497
4591
  providedIn: 'root',
@@ -4521,9 +4615,9 @@
4521
4615
  }
4522
4616
  return TrackByService;
4523
4617
  }());
4524
- TrackByService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: TrackByService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
4525
- TrackByService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: TrackByService, providedIn: 'root' });
4526
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: TrackByService, decorators: [{
4618
+ TrackByService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: TrackByService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
4619
+ TrackByService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: TrackByService, providedIn: 'root' });
4620
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: TrackByService, decorators: [{
4527
4621
  type: i0.Injectable,
4528
4622
  args: [{
4529
4623
  providedIn: 'root',
@@ -5060,6 +5154,7 @@
5060
5154
  exports.LIST_QUERY_DEBOUNCE_TIME = LIST_QUERY_DEBOUNCE_TIME;
5061
5155
  exports.LOADER_DELAY = LOADER_DELAY;
5062
5156
  exports.LOADING_STRATEGY = LOADING_STRATEGY;
5157
+ exports.LOCALIZATIONS = LOCALIZATIONS;
5063
5158
  exports.LazyLoadService = LazyLoadService;
5064
5159
  exports.LazyModuleFactory = LazyModuleFactory;
5065
5160
  exports.LimitedResultRequestDto = LimitedResultRequestDto;
@@ -5145,6 +5240,8 @@
5145
5240
  exports.isObjectAndNotArrayNotNode = isObjectAndNotArrayNotNode;
5146
5241
  exports.isUndefinedOrEmptyString = isUndefinedOrEmptyString;
5147
5242
  exports.localeInitializer = localeInitializer;
5243
+ exports.localizationContributor = localizationContributor;
5244
+ exports.localizations$ = localizations$;
5148
5245
  exports.mapEnumToOptions = mapEnumToOptions;
5149
5246
  exports.ngxsStoragePluginSerialize = ngxsStoragePluginSerialize;
5150
5247
  exports.noop = noop;
@@ -5168,5 +5265,5 @@
5168
5265
 
5169
5266
  Object.defineProperty(exports, '__esModule', { value: true });
5170
5267
 
5171
- })));
5268
+ }));
5172
5269
  //# sourceMappingURL=abp-ng.core.umd.js.map