@abp/ng.core 7.2.1 → 7.3.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 (397) hide show
  1. package/{esm2020 → esm2022}/abp-ng.core.mjs +4 -4
  2. package/esm2022/lib/abstracts/abstract-guard.mjs +2 -0
  3. package/{esm2020 → esm2022}/lib/abstracts/auth-response.model.mjs +1 -1
  4. package/esm2022/lib/abstracts/auth.guard.mjs +18 -0
  5. package/esm2022/lib/abstracts/auth.service.mjs +46 -0
  6. package/esm2022/lib/abstracts/index.mjs +6 -0
  7. package/esm2022/lib/abstracts/ng-model.component.mjs +60 -0
  8. package/esm2022/lib/clients/http.client.mjs +29 -0
  9. package/{esm2020 → esm2022}/lib/clients/index.mjs +1 -1
  10. package/esm2022/lib/components/dynamic-layout.component.mjs +101 -0
  11. package/{esm2020 → esm2022}/lib/components/index.mjs +3 -3
  12. package/esm2022/lib/components/replaceable-route-container.component.mjs +43 -0
  13. package/esm2022/lib/components/router-outlet.component.mjs +16 -0
  14. package/{esm2020 → esm2022}/lib/constants/different-locales.mjs +336 -336
  15. package/{esm2020 → esm2022}/lib/constants/index.mjs +1 -1
  16. package/esm2022/lib/core.module.mjs +285 -0
  17. package/esm2022/lib/directives/autofocus.directive.mjs +31 -0
  18. package/esm2022/lib/directives/debounce.directive.mjs +37 -0
  19. package/esm2022/lib/directives/for.directive.mjs +160 -0
  20. package/esm2022/lib/directives/form-submit.directive.mjs +78 -0
  21. package/{esm2020 → esm2022}/lib/directives/index.mjs +8 -8
  22. package/esm2022/lib/directives/init.directive.mjs +22 -0
  23. package/esm2022/lib/directives/permission.directive.mjs +75 -0
  24. package/esm2022/lib/directives/replaceable-template.directive.mjs +133 -0
  25. package/esm2022/lib/directives/stop-propagation.directive.mjs +33 -0
  26. package/{esm2020 → esm2022}/lib/enums/common.mjs +1 -1
  27. package/{esm2020 → esm2022}/lib/enums/index.mjs +1 -1
  28. package/{esm2020 → esm2022}/lib/guards/index.mjs +1 -1
  29. package/esm2022/lib/guards/permission.guard.mjs +41 -0
  30. package/esm2022/lib/handlers/routes.handler.mjs +52 -0
  31. package/esm2022/lib/interceptors/api.interceptor.mjs +28 -0
  32. package/{esm2020 → esm2022}/lib/interceptors/index.mjs +1 -1
  33. package/esm2022/lib/localization.module.mjs +17 -0
  34. package/{esm2020 → esm2022}/lib/models/auth.mjs +1 -1
  35. package/{esm2020 → esm2022}/lib/models/common.mjs +1 -1
  36. package/{esm2020 → esm2022}/lib/models/dtos.mjs +134 -134
  37. package/{esm2020 → esm2022}/lib/models/environment.mjs +1 -1
  38. package/{esm2020 → esm2022}/lib/models/index.mjs +9 -9
  39. package/{esm2020 → esm2022}/lib/models/localization.mjs +1 -1
  40. package/{esm2020 → esm2022}/lib/models/replaceable-components.mjs +1 -1
  41. package/{esm2020 → esm2022}/lib/models/rest.mjs +1 -1
  42. package/{esm2020 → esm2022}/lib/models/session.mjs +1 -1
  43. package/{esm2020 → esm2022}/lib/models/utility.mjs +1 -1
  44. package/{esm2020 → esm2022}/lib/pipes/index.mjs +7 -7
  45. package/esm2022/lib/pipes/localization.pipe.mjs +34 -0
  46. package/esm2022/lib/pipes/safe-html.pipe.mjs +24 -0
  47. package/esm2022/lib/pipes/short-date-time.pipe.mjs +35 -0
  48. package/esm2022/lib/pipes/short-date.pipe.mjs +35 -0
  49. package/esm2022/lib/pipes/short-time.pipe.mjs +35 -0
  50. package/esm2022/lib/pipes/sort.pipe.mjs +50 -0
  51. package/esm2022/lib/pipes/to-injector.pipe.mjs +30 -0
  52. package/{esm2020 → esm2022}/lib/providers/cookie-language.provider.mjs +21 -21
  53. package/{esm2020 → esm2022}/lib/providers/include-localization-resources.provider.mjs +5 -5
  54. package/{esm2020 → esm2022}/lib/providers/locale.provider.mjs +25 -25
  55. package/esm2022/lib/proxy/pages/abp/multi-tenancy/abp-tenant.service.mjs +28 -0
  56. package/{esm2020 → esm2022}/lib/proxy/pages/abp/multi-tenancy/index.mjs +1 -1
  57. package/esm2022/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/abp-api-definition.service.mjs +25 -0
  58. package/{esm2020 → esm2022}/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/index.mjs +1 -1
  59. package/esm2022/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-configuration.service.mjs +25 -0
  60. package/esm2022/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-localization.service.mjs +25 -0
  61. package/{esm2020 → esm2022}/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/index.mjs +5 -5
  62. package/{esm2020 → esm2022}/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/models.mjs +1 -1
  63. package/{esm2020 → esm2022}/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/object-extending/index.mjs +1 -1
  64. package/{esm2020 → esm2022}/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/object-extending/models.mjs +1 -1
  65. package/{esm2020 → esm2022}/lib/proxy/volo/abp/asp-net-core/mvc/multi-tenancy/index.mjs +1 -1
  66. package/{esm2020 → esm2022}/lib/proxy/volo/abp/asp-net-core/mvc/multi-tenancy/models.mjs +1 -1
  67. package/{esm2020 → esm2022}/lib/proxy/volo/abp/http/modeling/index.mjs +1 -1
  68. package/{esm2020 → esm2022}/lib/proxy/volo/abp/http/modeling/models.mjs +1 -1
  69. package/{esm2020 → esm2022}/lib/proxy/volo/abp/localization/index.mjs +1 -1
  70. package/{esm2020 → esm2022}/lib/proxy/volo/abp/localization/models.mjs +1 -1
  71. package/{esm2020 → esm2022}/lib/proxy/volo/abp/models.mjs +1 -1
  72. package/esm2022/lib/services/config-state.service.mjs +182 -0
  73. package/esm2022/lib/services/content-projection.service.mjs +18 -0
  74. package/esm2022/lib/services/dom-insertion.service.mjs +35 -0
  75. package/esm2022/lib/services/environment.service.mjs +49 -0
  76. package/esm2022/lib/services/http-error-reporter.service.mjs +30 -0
  77. package/esm2022/lib/services/http-wait.service.mjs +76 -0
  78. package/{esm2020 → esm2022}/lib/services/index.mjs +21 -21
  79. package/esm2022/lib/services/lazy-load.service.mjs +41 -0
  80. package/esm2022/lib/services/list.service.mjs +103 -0
  81. package/esm2022/lib/services/local-storage.service.mjs +33 -0
  82. package/esm2022/lib/services/localization.service.mjs +218 -0
  83. package/esm2022/lib/services/multi-tenancy.service.mjs +49 -0
  84. package/esm2022/lib/services/permission.service.mjs +64 -0
  85. package/esm2022/lib/services/replaceable-components.service.mjs +50 -0
  86. package/esm2022/lib/services/resource-wait.service.mjs +40 -0
  87. package/esm2022/lib/services/rest.service.mjs +79 -0
  88. package/esm2022/lib/services/router-events.service.mjs +39 -0
  89. package/esm2022/lib/services/router-wait.service.mjs +52 -0
  90. package/esm2022/lib/services/routes.service.mjs +165 -0
  91. package/esm2022/lib/services/session-state.service.mjs +81 -0
  92. package/esm2022/lib/services/subscription.service.mjs +44 -0
  93. package/esm2022/lib/services/track-by.service.mjs +22 -0
  94. package/{esm2020 → esm2022}/lib/strategies/container.strategy.mjs +37 -37
  95. package/{esm2020 → esm2022}/lib/strategies/content-security.strategy.mjs +29 -29
  96. package/{esm2020 → esm2022}/lib/strategies/content.strategy.mjs +51 -51
  97. package/{esm2020 → esm2022}/lib/strategies/context.strategy.mjs +36 -36
  98. package/{esm2020 → esm2022}/lib/strategies/cross-origin.strategy.mjs +27 -27
  99. package/{esm2020 → esm2022}/lib/strategies/dom.strategy.mjs +26 -26
  100. package/{esm2020 → esm2022}/lib/strategies/index.mjs +8 -8
  101. package/{esm2020 → esm2022}/lib/strategies/loading.strategy.mjs +57 -57
  102. package/{esm2020 → esm2022}/lib/strategies/projection.strategy.mjs +79 -79
  103. package/{esm2020 → esm2022}/lib/tokens/app-config.token.mjs +2 -2
  104. package/{esm2020 → esm2022}/lib/tokens/check-authentication-state.mjs +2 -2
  105. package/{esm2020 → esm2022}/lib/tokens/cookie-language-key.token.mjs +4 -4
  106. package/{esm2020 → esm2022}/lib/tokens/http-context.token.mjs +2 -2
  107. package/{esm2020 → esm2022}/lib/tokens/include-localization-resources.token.mjs +2 -2
  108. package/{esm2020 → esm2022}/lib/tokens/index.mjs +15 -15
  109. package/{esm2020 → esm2022}/lib/tokens/list.token.mjs +2 -2
  110. package/{esm2020 → esm2022}/lib/tokens/localization.token.mjs +9 -9
  111. package/{esm2020 → esm2022}/lib/tokens/lodaer-delay.token.mjs +2 -2
  112. package/{esm2020 → esm2022}/lib/tokens/manage-profile.token.mjs +2 -2
  113. package/{esm2020 → esm2022}/lib/tokens/options.token.mjs +7 -7
  114. package/{esm2020 → esm2022}/lib/tokens/others-group.token.mjs +2 -2
  115. package/{esm2020 → esm2022}/lib/tokens/pipe-to-login.token.mjs +2 -2
  116. package/{esm2020 → esm2022}/lib/tokens/queue.token.mjs +2 -2
  117. package/{esm2020 → esm2022}/lib/tokens/set-token-response-to-storage.token.mjs +5 -5
  118. package/{esm2020 → esm2022}/lib/tokens/tenant-key.token.mjs +2 -2
  119. package/{esm2020 → esm2022}/lib/utils/array-utils.mjs +6 -6
  120. package/{esm2020 → esm2022}/lib/utils/common-utils.mjs +34 -34
  121. package/{esm2020 → esm2022}/lib/utils/date-extensions.mjs +5 -5
  122. package/{esm2020 → esm2022}/lib/utils/date-utils.mjs +12 -12
  123. package/{esm2020 → esm2022}/lib/utils/environment-utils.mjs +35 -35
  124. package/{esm2020 → esm2022}/lib/utils/factory-utils.mjs +24 -24
  125. package/{esm2020 → esm2022}/lib/utils/file-utils.mjs +13 -13
  126. package/{esm2020 → esm2022}/lib/utils/form-utils.mjs +11 -11
  127. package/{esm2020 → esm2022}/lib/utils/generator-utils.mjs +33 -33
  128. package/{esm2020 → esm2022}/lib/utils/http-utils.mjs +18 -18
  129. package/{esm2020 → esm2022}/lib/utils/index.mjs +20 -20
  130. package/{esm2020 → esm2022}/lib/utils/initial-utils.mjs +59 -59
  131. package/esm2022/lib/utils/internal-store-utils.mjs +37 -0
  132. package/{esm2020 → esm2022}/lib/utils/lazy-load-utils.mjs +39 -39
  133. package/{esm2020 → esm2022}/lib/utils/localization-utils.mjs +48 -48
  134. package/{esm2020 → esm2022}/lib/utils/multi-tenancy-utils.mjs +80 -80
  135. package/{esm2020 → esm2022}/lib/utils/number-utils.mjs +3 -3
  136. package/{esm2020 → esm2022}/lib/utils/object-utils.mjs +36 -36
  137. package/{esm2020 → esm2022}/lib/utils/queue.mjs +40 -40
  138. package/{esm2020 → esm2022}/lib/utils/route-utils.mjs +25 -25
  139. package/{esm2020 → esm2022}/lib/utils/string-utils.mjs +29 -29
  140. package/{esm2020 → esm2022}/lib/utils/tree-utils.mjs +69 -69
  141. package/{esm2020 → esm2022}/lib/validators/age.validator.mjs +13 -13
  142. package/{esm2020 → esm2022}/lib/validators/credit-card.validator.mjs +20 -20
  143. package/esm2022/lib/validators/index.mjs +29 -0
  144. package/{esm2020 → esm2022}/lib/validators/range.validator.mjs +14 -14
  145. package/{esm2020 → esm2022}/lib/validators/required.validator.mjs +14 -14
  146. package/{esm2020 → esm2022}/lib/validators/string-length.validator.mjs +14 -14
  147. package/esm2022/lib/validators/unique-character.validator.mjs +13 -0
  148. package/{esm2020 → esm2022}/lib/validators/url.validator.mjs +16 -16
  149. package/{esm2020 → esm2022}/lib/validators/username.validator.mjs +13 -13
  150. package/{esm2020 → esm2022}/locale/abp-ng.core-locale.mjs +4 -4
  151. package/{esm2020 → esm2022}/locale/public-api.mjs +1 -1
  152. package/{esm2020 → esm2022}/locale/utils/register-locale.mjs +46 -46
  153. package/{esm2020 → esm2022}/public-api.mjs +26 -26
  154. package/{esm2020 → esm2022}/testing/abp-ng.core-testing.mjs +4 -4
  155. package/esm2022/testing/lib/core-testing.module.mjs +68 -0
  156. package/{esm2020 → esm2022}/testing/lib/services/index.mjs +2 -2
  157. package/esm2022/testing/lib/services/mock-permission.service.mjs +36 -0
  158. package/esm2022/testing/lib/services/mock-rest.service.mjs +32 -0
  159. package/{esm2020 → esm2022}/testing/lib/utils/clear-page.util.mjs +9 -9
  160. package/{esm2020 → esm2022}/testing/lib/utils/index.mjs +2 -2
  161. package/{esm2020 → esm2022}/testing/lib/utils/wait.util.mjs +4 -4
  162. package/{esm2020 → esm2022}/testing/public-api.mjs +3 -3
  163. package/{fesm2020 → fesm2022}/abp-ng.core-locale.mjs +45 -45
  164. package/{fesm2020 → fesm2022}/abp-ng.core-testing.mjs +120 -120
  165. package/{fesm2020 → fesm2022}/abp-ng.core-testing.mjs.map +1 -1
  166. package/{fesm2020 → fesm2022}/abp-ng.core.mjs +4199 -4187
  167. package/fesm2022/abp-ng.core.mjs.map +1 -0
  168. package/index.d.ts +5 -5
  169. package/lib/abstracts/abstract-guard.d.ts +5 -0
  170. package/lib/abstracts/auth-response.model.d.ts +10 -10
  171. package/lib/abstracts/auth.guard.d.ts +9 -10
  172. package/lib/abstracts/auth.service.d.ts +30 -30
  173. package/lib/abstracts/index.d.ts +5 -4
  174. package/lib/abstracts/ng-model.component.d.ts +25 -25
  175. package/lib/clients/http.client.d.ts +11 -11
  176. package/lib/clients/index.d.ts +1 -1
  177. package/lib/components/dynamic-layout.component.d.ts +28 -28
  178. package/lib/components/index.d.ts +3 -3
  179. package/lib/components/replaceable-route-container.component.d.ts +17 -17
  180. package/lib/components/router-outlet.component.d.ts +5 -5
  181. package/lib/constants/different-locales.d.ts +334 -334
  182. package/lib/constants/index.d.ts +1 -1
  183. package/lib/core.module.d.ts +57 -57
  184. package/lib/directives/autofocus.directive.d.ts +12 -12
  185. package/lib/directives/debounce.directive.d.ts +13 -13
  186. package/lib/directives/for.directive.d.ts +36 -36
  187. package/lib/directives/form-submit.directive.d.ts +23 -23
  188. package/lib/directives/index.d.ts +8 -8
  189. package/lib/directives/init.directive.d.ts +10 -10
  190. package/lib/directives/permission.directive.d.ts +24 -24
  191. package/lib/directives/replaceable-template.directive.d.ts +29 -29
  192. package/lib/directives/stop-propagation.directive.d.ts +12 -12
  193. package/lib/enums/common.d.ts +5 -5
  194. package/lib/enums/index.d.ts +1 -1
  195. package/lib/guards/index.d.ts +1 -1
  196. package/lib/guards/permission.guard.d.ts +16 -16
  197. package/lib/handlers/routes.handler.d.ts +11 -11
  198. package/lib/interceptors/api.interceptor.d.ts +14 -14
  199. package/lib/interceptors/index.d.ts +1 -1
  200. package/lib/localization.module.d.ts +7 -7
  201. package/lib/models/auth.d.ts +14 -14
  202. package/lib/models/common.d.ts +79 -79
  203. package/lib/models/dtos.d.ts +107 -107
  204. package/lib/models/environment.d.ts +38 -38
  205. package/lib/models/index.d.ts +9 -9
  206. package/lib/models/localization.d.ts +5 -5
  207. package/lib/models/replaceable-components.d.ts +45 -45
  208. package/lib/models/rest.d.ts +36 -36
  209. package/lib/models/session.d.ts +7 -7
  210. package/lib/models/utility.d.ts +14 -14
  211. package/lib/pipes/index.d.ts +7 -7
  212. package/lib/pipes/localization.pipe.d.ts +12 -12
  213. package/lib/pipes/safe-html.pipe.d.ts +9 -9
  214. package/lib/pipes/short-date-time.pipe.d.ts +12 -12
  215. package/lib/pipes/short-date.pipe.d.ts +12 -12
  216. package/lib/pipes/short-time.pipe.d.ts +12 -12
  217. package/lib/pipes/sort.pipe.d.ts +9 -9
  218. package/lib/pipes/to-injector.pipe.d.ts +10 -10
  219. package/lib/providers/cookie-language.provider.d.ts +3 -3
  220. package/lib/providers/include-localization-resources.provider.d.ts +2 -2
  221. package/lib/providers/locale.provider.d.ts +9 -9
  222. package/lib/proxy/pages/abp/multi-tenancy/abp-tenant.service.d.ts +12 -12
  223. package/lib/proxy/pages/abp/multi-tenancy/index.d.ts +1 -1
  224. package/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/abp-api-definition.service.d.ts +11 -11
  225. package/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/index.d.ts +1 -1
  226. package/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-configuration.service.d.ts +11 -11
  227. package/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-localization.service.d.ts +11 -11
  228. package/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/index.d.ts +5 -5
  229. package/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/models.d.ts +106 -106
  230. package/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/object-extending/index.d.ts +1 -1
  231. package/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/object-extending/models.d.ts +71 -71
  232. package/lib/proxy/volo/abp/asp-net-core/mvc/multi-tenancy/index.d.ts +1 -1
  233. package/lib/proxy/volo/abp/asp-net-core/mvc/multi-tenancy/models.d.ts +14 -14
  234. package/lib/proxy/volo/abp/http/modeling/index.d.ts +1 -1
  235. package/lib/proxy/volo/abp/http/modeling/models.d.ts +88 -88
  236. package/lib/proxy/volo/abp/localization/index.d.ts +1 -1
  237. package/lib/proxy/volo/abp/localization/models.d.ts +7 -7
  238. package/lib/proxy/volo/abp/models.d.ts +4 -4
  239. package/lib/services/config-state.service.d.ts +379 -378
  240. package/lib/services/content-projection.service.d.ts +10 -10
  241. package/lib/services/dom-insertion.service.d.ts +10 -10
  242. package/lib/services/environment.service.d.ts +103 -103
  243. package/lib/services/http-error-reporter.service.d.ts +12 -12
  244. package/lib/services/http-wait.service.d.ts +30 -30
  245. package/lib/services/index.d.ts +21 -21
  246. package/lib/services/lazy-load.service.d.ts +13 -13
  247. package/lib/services/list.service.d.ts +39 -39
  248. package/lib/services/local-storage.service.d.ts +13 -13
  249. package/lib/services/localization.service.d.ts +54 -54
  250. package/lib/services/multi-tenancy.service.d.ts +22 -22
  251. package/lib/services/permission.service.d.ts +19 -19
  252. package/lib/services/replaceable-components.service.d.ts +19 -19
  253. package/lib/services/resource-wait.service.d.ts +15 -15
  254. package/lib/services/rest.service.d.ts +24 -24
  255. package/lib/services/router-events.service.d.ts +29 -29
  256. package/lib/services/router-wait.service.d.ts +20 -20
  257. package/lib/services/routes.service.d.ts +57 -57
  258. package/lib/services/session-state.service.d.ts +27 -27
  259. package/lib/services/subscription.service.d.ts +17 -17
  260. package/lib/services/track-by.service.d.ts +11 -11
  261. package/lib/strategies/container.strategy.d.ts +22 -22
  262. package/lib/strategies/content-security.strategy.d.ts +17 -17
  263. package/lib/strategies/content.strategy.d.ts +26 -26
  264. package/lib/strategies/context.strategy.d.ts +23 -23
  265. package/lib/strategies/cross-origin.strategy.d.ts +14 -14
  266. package/lib/strategies/dom.strategy.d.ts +13 -13
  267. package/lib/strategies/index.d.ts +8 -8
  268. package/lib/strategies/loading.strategy.d.ts +28 -28
  269. package/lib/strategies/projection.strategy.d.ts +39 -39
  270. package/lib/tokens/app-config.token.d.ts +3 -3
  271. package/lib/tokens/check-authentication-state.d.ts +3 -3
  272. package/lib/tokens/cookie-language-key.token.d.ts +2 -2
  273. package/lib/tokens/http-context.token.d.ts +2 -2
  274. package/lib/tokens/include-localization-resources.token.d.ts +2 -2
  275. package/lib/tokens/index.d.ts +15 -15
  276. package/lib/tokens/list.token.d.ts +2 -2
  277. package/lib/tokens/localization.token.d.ts +6 -6
  278. package/lib/tokens/lodaer-delay.token.d.ts +2 -2
  279. package/lib/tokens/manage-profile.token.d.ts +2 -2
  280. package/lib/tokens/options.token.d.ts +4 -4
  281. package/lib/tokens/others-group.token.d.ts +2 -2
  282. package/lib/tokens/pipe-to-login.token.d.ts +3 -3
  283. package/lib/tokens/queue.token.d.ts +3 -3
  284. package/lib/tokens/set-token-response-to-storage.token.d.ts +6 -6
  285. package/lib/tokens/tenant-key.token.d.ts +2 -2
  286. package/lib/utils/array-utils.d.ts +1 -1
  287. package/lib/utils/common-utils.d.ts +11 -11
  288. package/lib/utils/date-extensions.d.ts +6 -6
  289. package/lib/utils/date-utils.d.ts +4 -4
  290. package/lib/utils/environment-utils.d.ts +3 -3
  291. package/lib/utils/factory-utils.d.ts +11 -11
  292. package/lib/utils/file-utils.d.ts +1 -1
  293. package/lib/utils/form-utils.d.ts +2 -2
  294. package/lib/utils/generator-utils.d.ts +3 -3
  295. package/lib/utils/http-utils.d.ts +8 -8
  296. package/lib/utils/index.d.ts +20 -20
  297. package/lib/utils/initial-utils.d.ts +3 -3
  298. package/lib/utils/internal-store-utils.d.ts +14 -14
  299. package/lib/utils/lazy-load-utils.d.ts +4 -4
  300. package/lib/utils/localization-utils.d.ts +5 -5
  301. package/lib/utils/multi-tenancy-utils.d.ts +3 -3
  302. package/lib/utils/number-utils.d.ts +1 -1
  303. package/lib/utils/object-utils.d.ts +2 -2
  304. package/lib/utils/queue.d.ts +14 -14
  305. package/lib/utils/route-utils.d.ts +8 -8
  306. package/lib/utils/string-utils.d.ts +3 -3
  307. package/lib/utils/tree-utils.d.ts +26 -26
  308. package/lib/validators/age.validator.d.ts +10 -10
  309. package/lib/validators/credit-card.validator.d.ts +5 -5
  310. package/lib/validators/index.d.ts +28 -24
  311. package/lib/validators/range.validator.d.ts +12 -12
  312. package/lib/validators/required.validator.d.ts +8 -8
  313. package/lib/validators/string-length.validator.d.ts +14 -14
  314. package/lib/validators/unique-character.validator.d.ts +5 -0
  315. package/lib/validators/url.validator.d.ts +5 -5
  316. package/lib/validators/username.validator.d.ts +10 -10
  317. package/locale/index.d.ts +5 -5
  318. package/locale/public-api.d.ts +1 -1
  319. package/locale/utils/register-locale.d.ts +13 -13
  320. package/package.json +12 -22
  321. package/public-api.d.ts +25 -25
  322. package/testing/index.d.ts +5 -5
  323. package/testing/lib/core-testing.module.d.ts +16 -16
  324. package/testing/lib/services/index.d.ts +2 -2
  325. package/testing/lib/services/mock-permission.service.d.ts +10 -10
  326. package/testing/lib/services/mock-rest.service.d.ts +14 -14
  327. package/testing/lib/utils/clear-page.util.d.ts +2 -2
  328. package/testing/lib/utils/index.d.ts +2 -2
  329. package/testing/lib/utils/wait.util.d.ts +2 -2
  330. package/testing/public-api.d.ts +3 -3
  331. package/esm2020/lib/abstracts/auth.guard.mjs +0 -17
  332. package/esm2020/lib/abstracts/auth.service.mjs +0 -45
  333. package/esm2020/lib/abstracts/index.mjs +0 -5
  334. package/esm2020/lib/abstracts/ng-model.component.mjs +0 -59
  335. package/esm2020/lib/clients/http.client.mjs +0 -34
  336. package/esm2020/lib/components/dynamic-layout.component.mjs +0 -100
  337. package/esm2020/lib/components/replaceable-route-container.component.mjs +0 -42
  338. package/esm2020/lib/components/router-outlet.component.mjs +0 -15
  339. package/esm2020/lib/core.module.mjs +0 -282
  340. package/esm2020/lib/directives/autofocus.directive.mjs +0 -30
  341. package/esm2020/lib/directives/debounce.directive.mjs +0 -36
  342. package/esm2020/lib/directives/for.directive.mjs +0 -159
  343. package/esm2020/lib/directives/form-submit.directive.mjs +0 -77
  344. package/esm2020/lib/directives/init.directive.mjs +0 -21
  345. package/esm2020/lib/directives/permission.directive.mjs +0 -74
  346. package/esm2020/lib/directives/replaceable-template.directive.mjs +0 -132
  347. package/esm2020/lib/directives/stop-propagation.directive.mjs +0 -32
  348. package/esm2020/lib/guards/permission.guard.mjs +0 -44
  349. package/esm2020/lib/handlers/routes.handler.mjs +0 -51
  350. package/esm2020/lib/interceptors/api.interceptor.mjs +0 -27
  351. package/esm2020/lib/localization.module.mjs +0 -16
  352. package/esm2020/lib/pipes/localization.pipe.mjs +0 -33
  353. package/esm2020/lib/pipes/safe-html.pipe.mjs +0 -23
  354. package/esm2020/lib/pipes/short-date-time.pipe.mjs +0 -34
  355. package/esm2020/lib/pipes/short-date.pipe.mjs +0 -34
  356. package/esm2020/lib/pipes/short-time.pipe.mjs +0 -34
  357. package/esm2020/lib/pipes/sort.pipe.mjs +0 -49
  358. package/esm2020/lib/pipes/to-injector.pipe.mjs +0 -29
  359. package/esm2020/lib/proxy/pages/abp/multi-tenancy/abp-tenant.service.mjs +0 -27
  360. package/esm2020/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/abp-api-definition.service.mjs +0 -24
  361. package/esm2020/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-configuration.service.mjs +0 -24
  362. package/esm2020/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-localization.service.mjs +0 -24
  363. package/esm2020/lib/services/config-state.service.mjs +0 -178
  364. package/esm2020/lib/services/content-projection.service.mjs +0 -17
  365. package/esm2020/lib/services/dom-insertion.service.mjs +0 -34
  366. package/esm2020/lib/services/environment.service.mjs +0 -48
  367. package/esm2020/lib/services/http-error-reporter.service.mjs +0 -29
  368. package/esm2020/lib/services/http-wait.service.mjs +0 -75
  369. package/esm2020/lib/services/lazy-load.service.mjs +0 -40
  370. package/esm2020/lib/services/list.service.mjs +0 -102
  371. package/esm2020/lib/services/local-storage.service.mjs +0 -32
  372. package/esm2020/lib/services/localization.service.mjs +0 -217
  373. package/esm2020/lib/services/multi-tenancy.service.mjs +0 -48
  374. package/esm2020/lib/services/permission.service.mjs +0 -63
  375. package/esm2020/lib/services/replaceable-components.service.mjs +0 -49
  376. package/esm2020/lib/services/resource-wait.service.mjs +0 -39
  377. package/esm2020/lib/services/rest.service.mjs +0 -78
  378. package/esm2020/lib/services/router-events.service.mjs +0 -38
  379. package/esm2020/lib/services/router-wait.service.mjs +0 -51
  380. package/esm2020/lib/services/routes.service.mjs +0 -163
  381. package/esm2020/lib/services/session-state.service.mjs +0 -80
  382. package/esm2020/lib/services/subscription.service.mjs +0 -43
  383. package/esm2020/lib/services/track-by.service.mjs +0 -21
  384. package/esm2020/lib/utils/internal-store-utils.mjs +0 -37
  385. package/esm2020/lib/validators/index.mjs +0 -25
  386. package/esm2020/testing/lib/core-testing.module.mjs +0 -67
  387. package/esm2020/testing/lib/services/mock-permission.service.mjs +0 -35
  388. package/esm2020/testing/lib/services/mock-rest.service.mjs +0 -31
  389. package/fesm2015/abp-ng.core-locale.mjs +0 -57
  390. package/fesm2015/abp-ng.core-locale.mjs.map +0 -1
  391. package/fesm2015/abp-ng.core-testing.mjs +0 -146
  392. package/fesm2015/abp-ng.core-testing.mjs.map +0 -1
  393. package/fesm2015/abp-ng.core.mjs +0 -4460
  394. package/fesm2015/abp-ng.core.mjs.map +0 -1
  395. package/fesm2020/abp-ng.core.mjs.map +0 -1
  396. package/src/lib/proxy/README.md +0 -17
  397. /package/{fesm2020 → fesm2022}/abp-ng.core-locale.mjs.map +0 -0
@@ -1,26 +1,26 @@
1
- import { ContentSecurityStrategy } from './content-security.strategy';
2
- import { DomStrategy } from './dom.strategy';
3
- export declare type ElementOptions<T extends HTMLScriptElement | HTMLStyleElement = any> = Partial<{
4
- [key in keyof T]: T[key];
5
- }>;
6
- export declare abstract class ContentStrategy<T extends HTMLScriptElement | HTMLStyleElement = any> {
7
- content: string;
8
- protected domStrategy: DomStrategy;
9
- protected contentSecurityStrategy: ContentSecurityStrategy;
10
- protected options: ElementOptions<T>;
11
- constructor(content: string, domStrategy?: DomStrategy, contentSecurityStrategy?: ContentSecurityStrategy, options?: ElementOptions<T>);
12
- abstract createElement(): T;
13
- insertElement(): T;
14
- }
15
- export declare class StyleContentStrategy extends ContentStrategy<HTMLStyleElement> {
16
- createElement(): HTMLStyleElement;
17
- }
18
- export declare class ScriptContentStrategy extends ContentStrategy<HTMLScriptElement> {
19
- createElement(): HTMLScriptElement;
20
- }
21
- export declare const CONTENT_STRATEGY: {
22
- AppendScriptToBody(content: string, options?: ElementOptions<HTMLScriptElement>): ScriptContentStrategy;
23
- AppendScriptToHead(content: string, options?: ElementOptions<HTMLScriptElement>): ScriptContentStrategy;
24
- AppendStyleToHead(content: string, options?: ElementOptions<HTMLStyleElement>): StyleContentStrategy;
25
- PrependStyleToHead(content: string, options?: ElementOptions<HTMLStyleElement>): StyleContentStrategy;
26
- };
1
+ import { ContentSecurityStrategy } from './content-security.strategy';
2
+ import { DomStrategy } from './dom.strategy';
3
+ export type ElementOptions<T extends HTMLScriptElement | HTMLStyleElement = any> = Partial<{
4
+ [key in keyof T]: T[key];
5
+ }>;
6
+ export declare abstract class ContentStrategy<T extends HTMLScriptElement | HTMLStyleElement = any> {
7
+ content: string;
8
+ protected domStrategy: DomStrategy;
9
+ protected contentSecurityStrategy: ContentSecurityStrategy;
10
+ protected options: ElementOptions<T>;
11
+ constructor(content: string, domStrategy?: DomStrategy, contentSecurityStrategy?: ContentSecurityStrategy, options?: ElementOptions<T>);
12
+ abstract createElement(): T;
13
+ insertElement(): T;
14
+ }
15
+ export declare class StyleContentStrategy extends ContentStrategy<HTMLStyleElement> {
16
+ createElement(): HTMLStyleElement;
17
+ }
18
+ export declare class ScriptContentStrategy extends ContentStrategy<HTMLScriptElement> {
19
+ createElement(): HTMLScriptElement;
20
+ }
21
+ export declare const CONTENT_STRATEGY: {
22
+ AppendScriptToBody(content: string, options?: ElementOptions<HTMLScriptElement>): ScriptContentStrategy;
23
+ AppendScriptToHead(content: string, options?: ElementOptions<HTMLScriptElement>): ScriptContentStrategy;
24
+ AppendStyleToHead(content: string, options?: ElementOptions<HTMLStyleElement>): StyleContentStrategy;
25
+ PrependStyleToHead(content: string, options?: ElementOptions<HTMLStyleElement>): StyleContentStrategy;
26
+ };
@@ -1,23 +1,23 @@
1
- import { ComponentRef, TemplateRef, Type } from '@angular/core';
2
- import { InferredContextOf, InferredInstanceOf } from '../models';
3
- export declare abstract class ContextStrategy<T = any> {
4
- context: Partial<ContextType<T>>;
5
- constructor(context: Partial<ContextType<T>>);
6
- setContext(componentRef?: ComponentRef<InferredInstanceOf<T>>): Partial<ContextType<T>>;
7
- }
8
- export declare class NoContextStrategy<T extends Type<any> | TemplateRef<any> = any> extends ContextStrategy<T> {
9
- constructor();
10
- }
11
- export declare class ComponentContextStrategy<T extends Type<any> = any> extends ContextStrategy<T> {
12
- setContext(componentRef: ComponentRef<InferredInstanceOf<T>>): Partial<InferredInstanceOf<T>>;
13
- }
14
- export declare class TemplateContextStrategy<T extends TemplateRef<any> = any> extends ContextStrategy<T> {
15
- setContext(): Partial<InferredContextOf<T>>;
16
- }
17
- export declare const CONTEXT_STRATEGY: {
18
- None<T extends Type<any> | TemplateRef<any> = any>(): NoContextStrategy<T>;
19
- Component<T_1 extends Type<any> = any>(context: Partial<InferredInstanceOf<T_1>>): ComponentContextStrategy<T_1>;
20
- Template<T_2 extends TemplateRef<any> = any>(context: Partial<InferredContextOf<T_2>>): TemplateContextStrategy<T_2>;
21
- };
22
- declare type ContextType<T> = T extends Type<infer U> | TemplateRef<infer U> ? U : never;
23
- export {};
1
+ import { ComponentRef, TemplateRef, Type } from '@angular/core';
2
+ import { InferredContextOf, InferredInstanceOf } from '../models';
3
+ export declare abstract class ContextStrategy<T = any> {
4
+ context: Partial<ContextType<T>>;
5
+ constructor(context: Partial<ContextType<T>>);
6
+ setContext(componentRef?: ComponentRef<InferredInstanceOf<T>>): Partial<ContextType<T>>;
7
+ }
8
+ export declare class NoContextStrategy<T extends Type<any> | TemplateRef<any> = any> extends ContextStrategy<T> {
9
+ constructor();
10
+ }
11
+ export declare class ComponentContextStrategy<T extends Type<any> = any> extends ContextStrategy<T> {
12
+ setContext(componentRef: ComponentRef<InferredInstanceOf<T>>): Partial<InferredInstanceOf<T>>;
13
+ }
14
+ export declare class TemplateContextStrategy<T extends TemplateRef<any> = any> extends ContextStrategy<T> {
15
+ setContext(): Partial<InferredContextOf<T>>;
16
+ }
17
+ export declare const CONTEXT_STRATEGY: {
18
+ None<T extends Type<any> | TemplateRef<any> = any>(): NoContextStrategy<T>;
19
+ Component<T_1 extends Type<any> = any>(context: Partial<InferredInstanceOf<T_1>>): ComponentContextStrategy<T_1>;
20
+ Template<T_2 extends TemplateRef<any> = any>(context: Partial<InferredContextOf<T_2>>): TemplateContextStrategy<T_2>;
21
+ };
22
+ type ContextType<T> = T extends Type<infer U> | TemplateRef<infer U> ? U : never;
23
+ export {};
@@ -1,14 +1,14 @@
1
- export declare class CrossOriginStrategy {
2
- crossorigin: 'anonymous' | 'use-credentials' | null;
3
- integrity?: string;
4
- constructor(crossorigin: 'anonymous' | 'use-credentials' | null, integrity?: string);
5
- setCrossOrigin<T extends HTMLElement>(element: T): void;
6
- }
7
- export declare class NoCrossOriginStrategy extends CrossOriginStrategy {
8
- setCrossOrigin(): void;
9
- }
10
- export declare const CROSS_ORIGIN_STRATEGY: {
11
- Anonymous(integrity?: string): CrossOriginStrategy;
12
- UseCredentials(integrity?: string): CrossOriginStrategy;
13
- None(): NoCrossOriginStrategy;
14
- };
1
+ export declare class CrossOriginStrategy {
2
+ crossorigin: 'anonymous' | 'use-credentials' | null;
3
+ integrity?: string;
4
+ constructor(crossorigin: 'anonymous' | 'use-credentials' | null, integrity?: string);
5
+ setCrossOrigin<T extends HTMLElement>(element: T): void;
6
+ }
7
+ export declare class NoCrossOriginStrategy extends CrossOriginStrategy {
8
+ setCrossOrigin(): void;
9
+ }
10
+ export declare const CROSS_ORIGIN_STRATEGY: {
11
+ Anonymous(integrity?: string): CrossOriginStrategy;
12
+ UseCredentials(integrity?: string): CrossOriginStrategy;
13
+ None(): NoCrossOriginStrategy;
14
+ };
@@ -1,13 +1,13 @@
1
- export declare class DomStrategy {
2
- target: HTMLElement;
3
- position: InsertPosition;
4
- constructor(target?: HTMLElement, position?: InsertPosition);
5
- insertElement<T extends HTMLElement>(element: T): void;
6
- }
7
- export declare const DOM_STRATEGY: {
8
- AfterElement(element: HTMLElement): DomStrategy;
9
- AppendToBody(): DomStrategy;
10
- AppendToHead(): DomStrategy;
11
- BeforeElement(element: HTMLElement): DomStrategy;
12
- PrependToHead(): DomStrategy;
13
- };
1
+ export declare class DomStrategy {
2
+ target: HTMLElement;
3
+ position: InsertPosition;
4
+ constructor(target?: HTMLElement, position?: InsertPosition);
5
+ insertElement<T extends HTMLElement>(element: T): void;
6
+ }
7
+ export declare const DOM_STRATEGY: {
8
+ AfterElement(element: HTMLElement): DomStrategy;
9
+ AppendToBody(): DomStrategy;
10
+ AppendToHead(): DomStrategy;
11
+ BeforeElement(element: HTMLElement): DomStrategy;
12
+ PrependToHead(): DomStrategy;
13
+ };
@@ -1,8 +1,8 @@
1
- export * from './container.strategy';
2
- export * from './content-security.strategy';
3
- export * from './content.strategy';
4
- export * from './context.strategy';
5
- export * from './cross-origin.strategy';
6
- export * from './dom.strategy';
7
- export * from './loading.strategy';
8
- export * from './projection.strategy';
1
+ export * from './container.strategy';
2
+ export * from './content-security.strategy';
3
+ export * from './content.strategy';
4
+ export * from './context.strategy';
5
+ export * from './cross-origin.strategy';
6
+ export * from './dom.strategy';
7
+ export * from './loading.strategy';
8
+ export * from './projection.strategy';
@@ -1,28 +1,28 @@
1
- import { Observable } from 'rxjs';
2
- import { CrossOriginStrategy } from './cross-origin.strategy';
3
- import { DomStrategy } from './dom.strategy';
4
- export declare abstract class LoadingStrategy<T extends HTMLScriptElement | HTMLLinkElement = any> {
5
- path: string;
6
- protected domStrategy: DomStrategy;
7
- protected crossOriginStrategy: CrossOriginStrategy;
8
- element: T;
9
- constructor(path: string, domStrategy?: DomStrategy, crossOriginStrategy?: CrossOriginStrategy);
10
- abstract createElement(): T;
11
- createStream<E extends Event>(): Observable<E>;
12
- }
13
- export declare class ScriptLoadingStrategy extends LoadingStrategy<HTMLScriptElement> {
14
- constructor(src: string, domStrategy?: DomStrategy, crossOriginStrategy?: CrossOriginStrategy);
15
- createElement(): HTMLScriptElement;
16
- }
17
- export declare class StyleLoadingStrategy extends LoadingStrategy<HTMLLinkElement> {
18
- constructor(href: string, domStrategy?: DomStrategy, crossOriginStrategy?: CrossOriginStrategy);
19
- createElement(): HTMLLinkElement;
20
- }
21
- export declare const LOADING_STRATEGY: {
22
- AppendScriptToBody(src: string): ScriptLoadingStrategy;
23
- AppendAnonymousScriptToBody(src: string, integrity?: string): ScriptLoadingStrategy;
24
- AppendAnonymousScriptToHead(src: string, integrity?: string): ScriptLoadingStrategy;
25
- AppendAnonymousStyleToHead(src: string, integrity?: string): StyleLoadingStrategy;
26
- PrependAnonymousScriptToHead(src: string, integrity?: string): ScriptLoadingStrategy;
27
- PrependAnonymousStyleToHead(src: string, integrity?: string): StyleLoadingStrategy;
28
- };
1
+ import { Observable } from 'rxjs';
2
+ import { CrossOriginStrategy } from './cross-origin.strategy';
3
+ import { DomStrategy } from './dom.strategy';
4
+ export declare abstract class LoadingStrategy<T extends HTMLScriptElement | HTMLLinkElement = any> {
5
+ path: string;
6
+ protected domStrategy: DomStrategy;
7
+ protected crossOriginStrategy: CrossOriginStrategy;
8
+ element: T;
9
+ constructor(path: string, domStrategy?: DomStrategy, crossOriginStrategy?: CrossOriginStrategy);
10
+ abstract createElement(): T;
11
+ createStream<E extends Event>(): Observable<E>;
12
+ }
13
+ export declare class ScriptLoadingStrategy extends LoadingStrategy<HTMLScriptElement> {
14
+ constructor(src: string, domStrategy?: DomStrategy, crossOriginStrategy?: CrossOriginStrategy);
15
+ createElement(): HTMLScriptElement;
16
+ }
17
+ export declare class StyleLoadingStrategy extends LoadingStrategy<HTMLLinkElement> {
18
+ constructor(href: string, domStrategy?: DomStrategy, crossOriginStrategy?: CrossOriginStrategy);
19
+ createElement(): HTMLLinkElement;
20
+ }
21
+ export declare const LOADING_STRATEGY: {
22
+ AppendScriptToBody(src: string): ScriptLoadingStrategy;
23
+ AppendAnonymousScriptToBody(src: string, integrity?: string): ScriptLoadingStrategy;
24
+ AppendAnonymousScriptToHead(src: string, integrity?: string): ScriptLoadingStrategy;
25
+ AppendAnonymousStyleToHead(src: string, integrity?: string): StyleLoadingStrategy;
26
+ PrependAnonymousScriptToHead(src: string, integrity?: string): ScriptLoadingStrategy;
27
+ PrependAnonymousStyleToHead(src: string, integrity?: string): StyleLoadingStrategy;
28
+ };
@@ -1,39 +1,39 @@
1
- import { ComponentRef, EmbeddedViewRef, Injector, TemplateRef, Type, ViewContainerRef } from '@angular/core';
2
- import { InferredContextOf, InferredInstanceOf } from '../models/utility';
3
- import { ContainerStrategy } from './container.strategy';
4
- import { ContextStrategy } from './context.strategy';
5
- import { DomStrategy } from './dom.strategy';
6
- export declare abstract class ProjectionStrategy<T = any> {
7
- content: T;
8
- constructor(content: T);
9
- abstract injectContent(injector: Injector): ComponentRefOrEmbeddedViewRef<T>;
10
- }
11
- export declare class ComponentProjectionStrategy<T extends Type<any>> extends ProjectionStrategy<T> {
12
- private containerStrategy;
13
- private contextStrategy;
14
- constructor(component: T, containerStrategy: ContainerStrategy, contextStrategy?: ContextStrategy);
15
- injectContent(injector: Injector): ComponentRefOrEmbeddedViewRef<T>;
16
- }
17
- export declare class RootComponentProjectionStrategy<T extends Type<any>> extends ProjectionStrategy<T> {
18
- private contextStrategy;
19
- private domStrategy;
20
- constructor(component: T, contextStrategy?: ContextStrategy, domStrategy?: DomStrategy);
21
- injectContent(injector: Injector): ComponentRefOrEmbeddedViewRef<T>;
22
- }
23
- export declare class TemplateProjectionStrategy<T extends TemplateRef<any>> extends ProjectionStrategy<T> {
24
- private containerStrategy;
25
- private contextStrategy;
26
- constructor(templateRef: T, containerStrategy: ContainerStrategy, contextStrategy?: import("./context.strategy").NoContextStrategy<any>);
27
- injectContent(): ComponentRefOrEmbeddedViewRef<T>;
28
- }
29
- export declare const PROJECTION_STRATEGY: {
30
- AppendComponentToBody<T extends Type<unknown>>(component: T, context?: Partial<InferredInstanceOf<T>>): RootComponentProjectionStrategy<T>;
31
- AppendComponentToContainer<T_1 extends Type<unknown>>(component: T_1, containerRef: ViewContainerRef, context?: Partial<InferredInstanceOf<T_1>>): ComponentProjectionStrategy<T_1>;
32
- AppendTemplateToContainer<T_2 extends TemplateRef<unknown>>(templateRef: T_2, containerRef: ViewContainerRef, context?: Partial<InferredContextOf<T_2>>): TemplateProjectionStrategy<T_2>;
33
- PrependComponentToContainer<T_3 extends Type<unknown>>(component: T_3, containerRef: ViewContainerRef, context?: Partial<InferredInstanceOf<T_3>>): ComponentProjectionStrategy<T_3>;
34
- PrependTemplateToContainer<T_4 extends TemplateRef<unknown>>(templateRef: T_4, containerRef: ViewContainerRef, context?: Partial<InferredContextOf<T_4>>): TemplateProjectionStrategy<T_4>;
35
- ProjectComponentToContainer<T_5 extends Type<unknown>>(component: T_5, containerRef: ViewContainerRef, context?: Partial<InferredInstanceOf<T_5>>): ComponentProjectionStrategy<T_5>;
36
- ProjectTemplateToContainer<T_6 extends TemplateRef<unknown>>(templateRef: T_6, containerRef: ViewContainerRef, context?: Partial<InferredContextOf<T_6>>): TemplateProjectionStrategy<T_6>;
37
- };
38
- declare type ComponentRefOrEmbeddedViewRef<T> = T extends Type<infer U> ? ComponentRef<U> : T extends TemplateRef<infer C> ? EmbeddedViewRef<C> : never;
39
- export {};
1
+ import { ComponentRef, EmbeddedViewRef, Injector, TemplateRef, Type, ViewContainerRef } from '@angular/core';
2
+ import { InferredContextOf, InferredInstanceOf } from '../models/utility';
3
+ import { ContainerStrategy } from './container.strategy';
4
+ import { ContextStrategy } from './context.strategy';
5
+ import { DomStrategy } from './dom.strategy';
6
+ export declare abstract class ProjectionStrategy<T = any> {
7
+ content: T;
8
+ constructor(content: T);
9
+ abstract injectContent(injector: Injector): ComponentRefOrEmbeddedViewRef<T>;
10
+ }
11
+ export declare class ComponentProjectionStrategy<T extends Type<any>> extends ProjectionStrategy<T> {
12
+ private containerStrategy;
13
+ private contextStrategy;
14
+ constructor(component: T, containerStrategy: ContainerStrategy, contextStrategy?: ContextStrategy);
15
+ injectContent(injector: Injector): ComponentRefOrEmbeddedViewRef<T>;
16
+ }
17
+ export declare class RootComponentProjectionStrategy<T extends Type<any>> extends ProjectionStrategy<T> {
18
+ private contextStrategy;
19
+ private domStrategy;
20
+ constructor(component: T, contextStrategy?: ContextStrategy, domStrategy?: DomStrategy);
21
+ injectContent(injector: Injector): ComponentRefOrEmbeddedViewRef<T>;
22
+ }
23
+ export declare class TemplateProjectionStrategy<T extends TemplateRef<any>> extends ProjectionStrategy<T> {
24
+ private containerStrategy;
25
+ private contextStrategy;
26
+ constructor(templateRef: T, containerStrategy: ContainerStrategy, contextStrategy?: import("./context.strategy").NoContextStrategy<any>);
27
+ injectContent(): ComponentRefOrEmbeddedViewRef<T>;
28
+ }
29
+ export declare const PROJECTION_STRATEGY: {
30
+ AppendComponentToBody<T extends Type<unknown>>(component: T, context?: Partial<InferredInstanceOf<T>>): RootComponentProjectionStrategy<T>;
31
+ AppendComponentToContainer<T_1 extends Type<unknown>>(component: T_1, containerRef: ViewContainerRef, context?: Partial<InferredInstanceOf<T_1>>): ComponentProjectionStrategy<T_1>;
32
+ AppendTemplateToContainer<T_2 extends TemplateRef<unknown>>(templateRef: T_2, containerRef: ViewContainerRef, context?: Partial<InferredContextOf<T_2>>): TemplateProjectionStrategy<T_2>;
33
+ PrependComponentToContainer<T_3 extends Type<unknown>>(component: T_3, containerRef: ViewContainerRef, context?: Partial<InferredInstanceOf<T_3>>): ComponentProjectionStrategy<T_3>;
34
+ PrependTemplateToContainer<T_4 extends TemplateRef<unknown>>(templateRef: T_4, containerRef: ViewContainerRef, context?: Partial<InferredContextOf<T_4>>): TemplateProjectionStrategy<T_4>;
35
+ ProjectComponentToContainer<T_5 extends Type<unknown>>(component: T_5, containerRef: ViewContainerRef, context?: Partial<InferredInstanceOf<T_5>>): ComponentProjectionStrategy<T_5>;
36
+ ProjectTemplateToContainer<T_6 extends TemplateRef<unknown>>(templateRef: T_6, containerRef: ViewContainerRef, context?: Partial<InferredContextOf<T_6>>): TemplateProjectionStrategy<T_6>;
37
+ };
38
+ type ComponentRefOrEmbeddedViewRef<T> = T extends Type<infer U> ? ComponentRef<U> : T extends TemplateRef<infer C> ? EmbeddedViewRef<C> : never;
39
+ export {};
@@ -1,3 +1,3 @@
1
- import { InjectionToken } from '@angular/core';
2
- export declare type AppInitErrorFn = (error: any) => void;
3
- export declare const APP_INIT_ERROR_HANDLERS: InjectionToken<AppInitErrorFn[]>;
1
+ import { InjectionToken } from '@angular/core';
2
+ export type AppInitErrorFn = (error: any) => void;
3
+ export declare const APP_INIT_ERROR_HANDLERS: InjectionToken<AppInitErrorFn[]>;
@@ -1,3 +1,3 @@
1
- import { InjectionToken } from '@angular/core';
2
- import { CheckAuthenticationStateFn } from '../models/auth';
3
- export declare const CHECK_AUTHENTICATION_STATE_FN_KEY: InjectionToken<CheckAuthenticationStateFn>;
1
+ import { InjectionToken } from '@angular/core';
2
+ import { CheckAuthenticationStateFn } from '../models/auth';
3
+ export declare const CHECK_AUTHENTICATION_STATE_FN_KEY: InjectionToken<CheckAuthenticationStateFn>;
@@ -1,2 +1,2 @@
1
- import { InjectionToken } from '@angular/core';
2
- export declare const COOKIE_LANGUAGE_KEY: InjectionToken<string>;
1
+ import { InjectionToken } from '@angular/core';
2
+ export declare const COOKIE_LANGUAGE_KEY: InjectionToken<string>;
@@ -1,2 +1,2 @@
1
- import { HttpContextToken } from '@angular/common/http';
2
- export declare const IS_EXTERNAL_REQUEST: HttpContextToken<boolean>;
1
+ import { HttpContextToken } from '@angular/common/http';
2
+ export declare const IS_EXTERNAL_REQUEST: HttpContextToken<boolean>;
@@ -1,2 +1,2 @@
1
- import { InjectionToken } from '@angular/core';
2
- export declare const INCUDE_LOCALIZATION_RESOURCES_TOKEN: InjectionToken<boolean>;
1
+ import { InjectionToken } from '@angular/core';
2
+ export declare const INCUDE_LOCALIZATION_RESOURCES_TOKEN: InjectionToken<boolean>;
@@ -1,15 +1,15 @@
1
- export * from './app-config.token';
2
- export * from './cookie-language-key.token';
3
- export * from './list.token';
4
- export * from './localization.token';
5
- export * from './lodaer-delay.token';
6
- export * from './manage-profile.token';
7
- export * from './options.token';
8
- export * from './queue.token';
9
- export * from './tenant-key.token';
10
- export * from './include-localization-resources.token';
11
- export * from './pipe-to-login.token';
12
- export * from './set-token-response-to-storage.token';
13
- export * from './check-authentication-state';
14
- export * from './http-context.token';
15
- export * from './others-group.token';
1
+ export * from './app-config.token';
2
+ export * from './cookie-language-key.token';
3
+ export * from './list.token';
4
+ export * from './localization.token';
5
+ export * from './lodaer-delay.token';
6
+ export * from './manage-profile.token';
7
+ export * from './options.token';
8
+ export * from './queue.token';
9
+ export * from './tenant-key.token';
10
+ export * from './include-localization-resources.token';
11
+ export * from './pipe-to-login.token';
12
+ export * from './set-token-response-to-storage.token';
13
+ export * from './check-authentication-state';
14
+ export * from './http-context.token';
15
+ export * from './others-group.token';
@@ -1,2 +1,2 @@
1
- import { InjectionToken } from '@angular/core';
2
- export declare const LIST_QUERY_DEBOUNCE_TIME: InjectionToken<number>;
1
+ import { InjectionToken } from '@angular/core';
2
+ export declare const LIST_QUERY_DEBOUNCE_TIME: InjectionToken<number>;
@@ -1,6 +1,6 @@
1
- import { InjectionToken } from '@angular/core';
2
- import { BehaviorSubject } from 'rxjs';
3
- import { ABP } from '../models/common';
4
- export declare const LOCALIZATIONS: InjectionToken<unknown>;
5
- export declare function localizationContributor(localizations?: ABP.Localization[]): void;
6
- export declare const localizations$: BehaviorSubject<ABP.Localization[]>;
1
+ import { InjectionToken } from '@angular/core';
2
+ import { BehaviorSubject } from 'rxjs';
3
+ import { ABP } from '../models/common';
4
+ export declare const LOCALIZATIONS: InjectionToken<unknown>;
5
+ export declare function localizationContributor(localizations?: ABP.Localization[]): void;
6
+ export declare const localizations$: BehaviorSubject<ABP.Localization[]>;
@@ -1,2 +1,2 @@
1
- import { InjectionToken } from '@angular/core';
2
- export declare const LOADER_DELAY: InjectionToken<number>;
1
+ import { InjectionToken } from '@angular/core';
2
+ export declare const LOADER_DELAY: InjectionToken<number>;
@@ -1,2 +1,2 @@
1
- import { InjectionToken } from '@angular/core';
2
- export declare const NAVIGATE_TO_MANAGE_PROFILE: InjectionToken<() => void>;
1
+ import { InjectionToken } from '@angular/core';
2
+ export declare const NAVIGATE_TO_MANAGE_PROFILE: InjectionToken<() => void>;
@@ -1,4 +1,4 @@
1
- import { InjectionToken } from '@angular/core';
2
- import { ABP } from '../models/common';
3
- export declare const CORE_OPTIONS: InjectionToken<ABP.Root>;
4
- export declare function coreOptionsFactory({ ...options }: ABP.Root): ABP.Root;
1
+ import { InjectionToken } from '@angular/core';
2
+ import { ABP } from '../models/common';
3
+ export declare const CORE_OPTIONS: InjectionToken<ABP.Root>;
4
+ export declare function coreOptionsFactory({ ...options }: ABP.Root): ABP.Root;
@@ -1,2 +1,2 @@
1
- import { InjectionToken } from '@angular/core';
2
- export declare const OTHERS_GROUP: InjectionToken<string>;
1
+ import { InjectionToken } from '@angular/core';
2
+ export declare const OTHERS_GROUP: InjectionToken<string>;
@@ -1,3 +1,3 @@
1
- import { InjectionToken } from '@angular/core';
2
- import { PipeToLoginFn } from '../models/auth';
3
- export declare const PIPE_TO_LOGIN_FN_KEY: InjectionToken<PipeToLoginFn>;
1
+ import { InjectionToken } from '@angular/core';
2
+ import { PipeToLoginFn } from '../models/auth';
3
+ export declare const PIPE_TO_LOGIN_FN_KEY: InjectionToken<PipeToLoginFn>;
@@ -1,3 +1,3 @@
1
- import { QueueManager } from "../utils/queue";
2
- import { InjectionToken } from "@angular/core";
3
- export declare const QUEUE_MANAGER: InjectionToken<QueueManager>;
1
+ import { QueueManager } from "../utils/queue";
2
+ import { InjectionToken } from "@angular/core";
3
+ export declare const QUEUE_MANAGER: InjectionToken<QueueManager>;
@@ -1,6 +1,6 @@
1
- import { InjectionToken } from '@angular/core';
2
- import { SetTokenResponseToStorageFn } from '../models';
3
- /**
4
- * @deprecated The token should not be used anymore.
5
- */
6
- export declare const SET_TOKEN_RESPONSE_TO_STORAGE_FN_KEY: InjectionToken<SetTokenResponseToStorageFn<any>>;
1
+ import { InjectionToken } from '@angular/core';
2
+ import { SetTokenResponseToStorageFn } from '../models';
3
+ /**
4
+ * @deprecated The token should not be used anymore.
5
+ */
6
+ export declare const SET_TOKEN_RESPONSE_TO_STORAGE_FN_KEY: InjectionToken<SetTokenResponseToStorageFn>;
@@ -1,2 +1,2 @@
1
- import { InjectionToken } from '@angular/core';
2
- export declare const TENANT_KEY: InjectionToken<string>;
1
+ import { InjectionToken } from '@angular/core';
2
+ export declare const TENANT_KEY: InjectionToken<string>;
@@ -1 +1 @@
1
- export declare function pushValueTo<T>(array: T[]): (element: T) => T[];
1
+ export declare function pushValueTo<T>(array: T[]): (element: T) => T[];
@@ -1,11 +1,11 @@
1
- export declare function noop(): () => void;
2
- export declare function isUndefinedOrEmptyString(value: unknown): boolean;
3
- export declare function isNullOrUndefined<T>(obj: T): boolean;
4
- export declare function isNullOrEmpty<T>(obj: T): boolean;
5
- export declare function exists<T>(obj: T): obj is T;
6
- export declare function isObject<T>(obj: T): boolean;
7
- export declare function isArray<T>(obj: T): boolean;
8
- export declare function isObjectAndNotArray<T>(obj: T): boolean;
9
- export declare function isNode<T>(obj: T): boolean;
10
- export declare function isObjectAndNotArrayNotNode<T>(obj: T): boolean;
11
- export declare function checkHasProp<T>(object: T, key: string | keyof T): key is keyof T;
1
+ export declare function noop(): () => void;
2
+ export declare function isUndefinedOrEmptyString(value: unknown): boolean;
3
+ export declare function isNullOrUndefined<T>(obj: T): boolean;
4
+ export declare function isNullOrEmpty<T>(obj: T): boolean;
5
+ export declare function exists<T>(obj: T): obj is T;
6
+ export declare function isObject<T>(obj: T): boolean;
7
+ export declare function isArray<T>(obj: T): boolean;
8
+ export declare function isObjectAndNotArray<T>(obj: T): boolean;
9
+ export declare function isNode<T>(obj: T): boolean;
10
+ export declare function isObjectAndNotArrayNotNode<T>(obj: T): boolean;
11
+ export declare function checkHasProp<T>(object: T, key: string | keyof T): key is keyof T;
@@ -1,6 +1,6 @@
1
- export {};
2
- declare global {
3
- interface Date {
4
- toLocalISOString?: () => string;
5
- }
6
- }
1
+ export {};
2
+ declare global {
3
+ interface Date {
4
+ toLocalISOString?: () => string;
5
+ }
6
+ }
@@ -1,4 +1,4 @@
1
- import { ConfigStateService } from '../services';
2
- export declare function getShortDateFormat(configStateService: ConfigStateService): string;
3
- export declare function getShortTimeFormat(configStateService: ConfigStateService): string;
4
- export declare function getShortDateShortTimeFormat(configStateService: ConfigStateService): string;
1
+ import { ConfigStateService } from '../services';
2
+ export declare function getShortDateFormat(configStateService: ConfigStateService): string;
3
+ export declare function getShortTimeFormat(configStateService: ConfigStateService): string;
4
+ export declare function getShortDateShortTimeFormat(configStateService: ConfigStateService): string;
@@ -1,3 +1,3 @@
1
- import { Injector } from '@angular/core';
2
- import { Environment } from '../models/environment';
3
- export declare function getRemoteEnv(injector: Injector, environment: Partial<Environment>): Promise<void> | Promise<Environment>;
1
+ import { Injector } from '@angular/core';
2
+ import { Environment } from '../models/environment';
3
+ export declare function getRemoteEnv(injector: Injector, environment: Partial<Environment>): Promise<void> | Promise<Environment>;
@@ -1,11 +1,11 @@
1
- import { Injector, ModuleWithProviders, NgModuleFactory, NgModuleRef, Type } from '@angular/core';
2
- import { ConfigStateService } from '../services/config-state.service';
3
- export declare class LazyModuleFactory<T> extends NgModuleFactory<T> {
4
- private moduleWithProviders;
5
- get moduleType(): Type<T>;
6
- constructor(moduleWithProviders: ModuleWithProviders<T>);
7
- create(parentInjector: Injector | null): NgModuleRef<T>;
8
- }
9
- export declare function featuresFactory(configState: ConfigStateService, featureKeys: string[], mapFn?: (features: {
10
- [key: string]: string;
11
- }) => any): import("rxjs").Observable<any>;
1
+ import { Injector, ModuleWithProviders, NgModuleFactory, NgModuleRef, Type } from '@angular/core';
2
+ import { ConfigStateService } from '../services/config-state.service';
3
+ export declare class LazyModuleFactory<T> extends NgModuleFactory<T> {
4
+ private moduleWithProviders;
5
+ get moduleType(): Type<T>;
6
+ constructor(moduleWithProviders: ModuleWithProviders<T>);
7
+ create(parentInjector: Injector | null): NgModuleRef<T>;
8
+ }
9
+ export declare function featuresFactory(configState: ConfigStateService, featureKeys: string[], mapFn?: (features: {
10
+ [key: string]: string;
11
+ }) => any): import("rxjs").Observable<any>;
@@ -1 +1 @@
1
- export declare function downloadBlob(blob: Blob, filename: string): void;
1
+ export declare function downloadBlob(blob: Blob, filename: string): void;
@@ -1,2 +1,2 @@
1
- import { ABP } from '../models/common';
2
- export declare function mapEnumToOptions<T>(_enum: T): ABP.Option<T>[];
1
+ import { ABP } from '../models/common';
2
+ export declare function mapEnumToOptions<T>(_enum: T): ABP.Option<T>[];
@@ -1,3 +1,3 @@
1
- export declare function uuid(a?: any): string;
2
- export declare function generateHash(value: string): number;
3
- export declare function generatePassword(length?: number): string;
1
+ export declare function uuid(a?: any): string;
2
+ export declare function generateHash(value: string): number;
3
+ export declare function generatePassword(length?: number): string;
@@ -1,8 +1,8 @@
1
- import { HttpParameterCodec } from '@angular/common/http';
2
- export declare function getPathName(url: string): string;
3
- export declare class WebHttpUrlEncodingCodec implements HttpParameterCodec {
4
- encodeKey(k: string): string;
5
- encodeValue(v: string): string;
6
- decodeKey(k: string): string;
7
- decodeValue(v: string): string;
8
- }
1
+ import { HttpParameterCodec } from '@angular/common/http';
2
+ export declare function getPathName(url: string): string;
3
+ export declare class WebHttpUrlEncodingCodec implements HttpParameterCodec {
4
+ encodeKey(k: string): string;
5
+ encodeValue(v: string): string;
6
+ decodeKey(k: string): string;
7
+ decodeValue(v: string): string;
8
+ }