@abp/ng.core 7.2.2 → 7.3.0-rc.2

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 (403) hide show
  1. package/README.md +129 -2
  2. package/{esm2020 → esm2022}/abp-ng.core.mjs +4 -4
  3. package/esm2022/lib/abstracts/abstract-guard.mjs +2 -0
  4. package/{esm2020 → esm2022}/lib/abstracts/auth-response.model.mjs +1 -1
  5. package/esm2022/lib/abstracts/auth.guard.mjs +18 -0
  6. package/esm2022/lib/abstracts/auth.service.mjs +46 -0
  7. package/esm2022/lib/abstracts/index.mjs +6 -0
  8. package/esm2022/lib/abstracts/ng-model.component.mjs +60 -0
  9. package/esm2022/lib/clients/http.client.mjs +29 -0
  10. package/{esm2020 → esm2022}/lib/clients/index.mjs +1 -1
  11. package/esm2022/lib/components/dynamic-layout.component.mjs +101 -0
  12. package/{esm2020 → esm2022}/lib/components/index.mjs +3 -3
  13. package/esm2022/lib/components/replaceable-route-container.component.mjs +43 -0
  14. package/esm2022/lib/components/router-outlet.component.mjs +16 -0
  15. package/{esm2020 → esm2022}/lib/constants/different-locales.mjs +336 -336
  16. package/{esm2020 → esm2022}/lib/constants/index.mjs +1 -1
  17. package/esm2022/lib/core.module.mjs +285 -0
  18. package/esm2022/lib/directives/autofocus.directive.mjs +31 -0
  19. package/esm2022/lib/directives/caps-lock.directive.mjs +42 -0
  20. package/esm2022/lib/directives/debounce.directive.mjs +37 -0
  21. package/esm2022/lib/directives/for.directive.mjs +160 -0
  22. package/esm2022/lib/directives/form-submit.directive.mjs +78 -0
  23. package/esm2022/lib/directives/index.mjs +11 -0
  24. package/esm2022/lib/directives/init.directive.mjs +22 -0
  25. package/esm2022/lib/directives/permission.directive.mjs +75 -0
  26. package/esm2022/lib/directives/replaceable-template.directive.mjs +133 -0
  27. package/esm2022/lib/directives/show-password.directive.mjs +26 -0
  28. package/esm2022/lib/directives/stop-propagation.directive.mjs +33 -0
  29. package/{esm2020 → esm2022}/lib/enums/common.mjs +1 -1
  30. package/{esm2020 → esm2022}/lib/enums/index.mjs +1 -1
  31. package/{esm2020 → esm2022}/lib/guards/index.mjs +1 -1
  32. package/esm2022/lib/guards/permission.guard.mjs +41 -0
  33. package/esm2022/lib/handlers/routes.handler.mjs +52 -0
  34. package/esm2022/lib/interceptors/api.interceptor.mjs +28 -0
  35. package/{esm2020 → esm2022}/lib/interceptors/index.mjs +1 -1
  36. package/esm2022/lib/localization.module.mjs +17 -0
  37. package/{esm2020 → esm2022}/lib/models/auth.mjs +1 -1
  38. package/{esm2020 → esm2022}/lib/models/common.mjs +1 -1
  39. package/{esm2020 → esm2022}/lib/models/dtos.mjs +134 -134
  40. package/{esm2020 → esm2022}/lib/models/environment.mjs +1 -1
  41. package/{esm2020 → esm2022}/lib/models/index.mjs +9 -9
  42. package/{esm2020 → esm2022}/lib/models/localization.mjs +1 -1
  43. package/{esm2020 → esm2022}/lib/models/replaceable-components.mjs +1 -1
  44. package/{esm2020 → esm2022}/lib/models/rest.mjs +1 -1
  45. package/{esm2020 → esm2022}/lib/models/session.mjs +1 -1
  46. package/{esm2020 → esm2022}/lib/models/utility.mjs +1 -1
  47. package/{esm2020 → esm2022}/lib/pipes/index.mjs +7 -7
  48. package/esm2022/lib/pipes/localization.pipe.mjs +34 -0
  49. package/esm2022/lib/pipes/safe-html.pipe.mjs +24 -0
  50. package/esm2022/lib/pipes/short-date-time.pipe.mjs +35 -0
  51. package/esm2022/lib/pipes/short-date.pipe.mjs +35 -0
  52. package/esm2022/lib/pipes/short-time.pipe.mjs +35 -0
  53. package/esm2022/lib/pipes/sort.pipe.mjs +50 -0
  54. package/esm2022/lib/pipes/to-injector.pipe.mjs +30 -0
  55. package/{esm2020 → esm2022}/lib/providers/cookie-language.provider.mjs +21 -21
  56. package/{esm2020 → esm2022}/lib/providers/include-localization-resources.provider.mjs +5 -5
  57. package/{esm2020 → esm2022}/lib/providers/locale.provider.mjs +25 -25
  58. package/esm2022/lib/proxy/pages/abp/multi-tenancy/abp-tenant.service.mjs +28 -0
  59. package/{esm2020 → esm2022}/lib/proxy/pages/abp/multi-tenancy/index.mjs +1 -1
  60. package/esm2022/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/abp-api-definition.service.mjs +25 -0
  61. package/{esm2020 → esm2022}/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/index.mjs +1 -1
  62. package/esm2022/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-configuration.service.mjs +25 -0
  63. package/esm2022/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-localization.service.mjs +25 -0
  64. package/{esm2020 → esm2022}/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/index.mjs +5 -5
  65. package/{esm2020 → esm2022}/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/models.mjs +1 -1
  66. package/{esm2020 → esm2022}/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/object-extending/index.mjs +1 -1
  67. package/{esm2020 → esm2022}/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/object-extending/models.mjs +1 -1
  68. package/{esm2020 → esm2022}/lib/proxy/volo/abp/asp-net-core/mvc/multi-tenancy/index.mjs +1 -1
  69. package/{esm2020 → esm2022}/lib/proxy/volo/abp/asp-net-core/mvc/multi-tenancy/models.mjs +1 -1
  70. package/{esm2020 → esm2022}/lib/proxy/volo/abp/http/modeling/index.mjs +1 -1
  71. package/{esm2020 → esm2022}/lib/proxy/volo/abp/http/modeling/models.mjs +1 -1
  72. package/{esm2020 → esm2022}/lib/proxy/volo/abp/localization/index.mjs +1 -1
  73. package/{esm2020 → esm2022}/lib/proxy/volo/abp/localization/models.mjs +1 -1
  74. package/{esm2020 → esm2022}/lib/proxy/volo/abp/models.mjs +1 -1
  75. package/esm2022/lib/services/config-state.service.mjs +182 -0
  76. package/esm2022/lib/services/content-projection.service.mjs +18 -0
  77. package/esm2022/lib/services/dom-insertion.service.mjs +35 -0
  78. package/esm2022/lib/services/environment.service.mjs +49 -0
  79. package/esm2022/lib/services/http-error-reporter.service.mjs +30 -0
  80. package/esm2022/lib/services/http-wait.service.mjs +76 -0
  81. package/{esm2020 → esm2022}/lib/services/index.mjs +21 -21
  82. package/esm2022/lib/services/lazy-load.service.mjs +41 -0
  83. package/esm2022/lib/services/list.service.mjs +103 -0
  84. package/esm2022/lib/services/local-storage.service.mjs +33 -0
  85. package/esm2022/lib/services/localization.service.mjs +218 -0
  86. package/esm2022/lib/services/multi-tenancy.service.mjs +49 -0
  87. package/esm2022/lib/services/permission.service.mjs +64 -0
  88. package/esm2022/lib/services/replaceable-components.service.mjs +50 -0
  89. package/esm2022/lib/services/resource-wait.service.mjs +40 -0
  90. package/esm2022/lib/services/rest.service.mjs +79 -0
  91. package/esm2022/lib/services/router-events.service.mjs +39 -0
  92. package/esm2022/lib/services/router-wait.service.mjs +52 -0
  93. package/esm2022/lib/services/routes.service.mjs +165 -0
  94. package/esm2022/lib/services/session-state.service.mjs +81 -0
  95. package/esm2022/lib/services/subscription.service.mjs +44 -0
  96. package/esm2022/lib/services/track-by.service.mjs +22 -0
  97. package/{esm2020 → esm2022}/lib/strategies/container.strategy.mjs +37 -37
  98. package/{esm2020 → esm2022}/lib/strategies/content-security.strategy.mjs +29 -29
  99. package/{esm2020 → esm2022}/lib/strategies/content.strategy.mjs +51 -51
  100. package/{esm2020 → esm2022}/lib/strategies/context.strategy.mjs +36 -36
  101. package/{esm2020 → esm2022}/lib/strategies/cross-origin.strategy.mjs +27 -27
  102. package/{esm2020 → esm2022}/lib/strategies/dom.strategy.mjs +26 -26
  103. package/{esm2020 → esm2022}/lib/strategies/index.mjs +8 -8
  104. package/{esm2020 → esm2022}/lib/strategies/loading.strategy.mjs +57 -57
  105. package/{esm2020 → esm2022}/lib/strategies/projection.strategy.mjs +79 -79
  106. package/{esm2020 → esm2022}/lib/tokens/app-config.token.mjs +2 -2
  107. package/{esm2020 → esm2022}/lib/tokens/check-authentication-state.mjs +2 -2
  108. package/{esm2020 → esm2022}/lib/tokens/cookie-language-key.token.mjs +4 -4
  109. package/{esm2020 → esm2022}/lib/tokens/http-context.token.mjs +2 -2
  110. package/{esm2020 → esm2022}/lib/tokens/include-localization-resources.token.mjs +2 -2
  111. package/{esm2020 → esm2022}/lib/tokens/index.mjs +15 -15
  112. package/{esm2020 → esm2022}/lib/tokens/list.token.mjs +2 -2
  113. package/{esm2020 → esm2022}/lib/tokens/localization.token.mjs +9 -9
  114. package/{esm2020 → esm2022}/lib/tokens/lodaer-delay.token.mjs +2 -2
  115. package/{esm2020 → esm2022}/lib/tokens/manage-profile.token.mjs +2 -2
  116. package/{esm2020 → esm2022}/lib/tokens/options.token.mjs +7 -7
  117. package/{esm2020 → esm2022}/lib/tokens/others-group.token.mjs +2 -2
  118. package/{esm2020 → esm2022}/lib/tokens/pipe-to-login.token.mjs +2 -2
  119. package/{esm2020 → esm2022}/lib/tokens/queue.token.mjs +2 -2
  120. package/{esm2020 → esm2022}/lib/tokens/set-token-response-to-storage.token.mjs +5 -5
  121. package/{esm2020 → esm2022}/lib/tokens/tenant-key.token.mjs +2 -2
  122. package/{esm2020 → esm2022}/lib/utils/array-utils.mjs +6 -6
  123. package/{esm2020 → esm2022}/lib/utils/common-utils.mjs +34 -34
  124. package/{esm2020 → esm2022}/lib/utils/date-extensions.mjs +5 -5
  125. package/{esm2020 → esm2022}/lib/utils/date-utils.mjs +12 -12
  126. package/{esm2020 → esm2022}/lib/utils/environment-utils.mjs +35 -35
  127. package/{esm2020 → esm2022}/lib/utils/factory-utils.mjs +24 -24
  128. package/{esm2020 → esm2022}/lib/utils/file-utils.mjs +13 -13
  129. package/{esm2020 → esm2022}/lib/utils/form-utils.mjs +11 -11
  130. package/{esm2020 → esm2022}/lib/utils/generator-utils.mjs +33 -33
  131. package/{esm2020 → esm2022}/lib/utils/http-utils.mjs +18 -18
  132. package/{esm2020 → esm2022}/lib/utils/index.mjs +20 -20
  133. package/{esm2020 → esm2022}/lib/utils/initial-utils.mjs +59 -59
  134. package/esm2022/lib/utils/internal-store-utils.mjs +37 -0
  135. package/{esm2020 → esm2022}/lib/utils/lazy-load-utils.mjs +39 -39
  136. package/{esm2020 → esm2022}/lib/utils/localization-utils.mjs +48 -48
  137. package/{esm2020 → esm2022}/lib/utils/multi-tenancy-utils.mjs +80 -80
  138. package/{esm2020 → esm2022}/lib/utils/number-utils.mjs +3 -3
  139. package/{esm2020 → esm2022}/lib/utils/object-utils.mjs +36 -36
  140. package/{esm2020 → esm2022}/lib/utils/queue.mjs +40 -40
  141. package/{esm2020 → esm2022}/lib/utils/route-utils.mjs +25 -25
  142. package/{esm2020 → esm2022}/lib/utils/string-utils.mjs +29 -29
  143. package/{esm2020 → esm2022}/lib/utils/tree-utils.mjs +69 -69
  144. package/{esm2020 → esm2022}/lib/validators/age.validator.mjs +13 -13
  145. package/{esm2020 → esm2022}/lib/validators/credit-card.validator.mjs +20 -20
  146. package/esm2022/lib/validators/index.mjs +29 -0
  147. package/{esm2020 → esm2022}/lib/validators/range.validator.mjs +14 -14
  148. package/{esm2020 → esm2022}/lib/validators/required.validator.mjs +14 -14
  149. package/{esm2020 → esm2022}/lib/validators/string-length.validator.mjs +14 -14
  150. package/esm2022/lib/validators/unique-character.validator.mjs +13 -0
  151. package/{esm2020 → esm2022}/lib/validators/url.validator.mjs +16 -16
  152. package/{esm2020 → esm2022}/lib/validators/username.validator.mjs +13 -13
  153. package/{esm2020 → esm2022}/locale/abp-ng.core-locale.mjs +4 -4
  154. package/{esm2020 → esm2022}/locale/public-api.mjs +1 -1
  155. package/{esm2020 → esm2022}/locale/utils/register-locale.mjs +46 -46
  156. package/{esm2020 → esm2022}/public-api.mjs +26 -26
  157. package/{esm2020 → esm2022}/testing/abp-ng.core-testing.mjs +4 -4
  158. package/esm2022/testing/lib/core-testing.module.mjs +68 -0
  159. package/{esm2020 → esm2022}/testing/lib/services/index.mjs +2 -2
  160. package/esm2022/testing/lib/services/mock-permission.service.mjs +36 -0
  161. package/esm2022/testing/lib/services/mock-rest.service.mjs +32 -0
  162. package/{esm2020 → esm2022}/testing/lib/utils/clear-page.util.mjs +9 -9
  163. package/{esm2020 → esm2022}/testing/lib/utils/index.mjs +2 -2
  164. package/{esm2020 → esm2022}/testing/lib/utils/wait.util.mjs +4 -4
  165. package/{esm2020 → esm2022}/testing/public-api.mjs +3 -3
  166. package/{fesm2020 → fesm2022}/abp-ng.core-locale.mjs +45 -45
  167. package/{fesm2020 → fesm2022}/abp-ng.core-testing.mjs +120 -120
  168. package/{fesm2020 → fesm2022}/abp-ng.core-testing.mjs.map +1 -1
  169. package/{fesm2020 → fesm2022}/abp-ng.core.mjs +4262 -4188
  170. package/fesm2022/abp-ng.core.mjs.map +1 -0
  171. package/index.d.ts +5 -5
  172. package/lib/abstracts/abstract-guard.d.ts +5 -0
  173. package/lib/abstracts/auth-response.model.d.ts +10 -10
  174. package/lib/abstracts/auth.guard.d.ts +9 -10
  175. package/lib/abstracts/auth.service.d.ts +30 -30
  176. package/lib/abstracts/index.d.ts +5 -4
  177. package/lib/abstracts/ng-model.component.d.ts +25 -25
  178. package/lib/clients/http.client.d.ts +11 -11
  179. package/lib/clients/index.d.ts +1 -1
  180. package/lib/components/dynamic-layout.component.d.ts +28 -28
  181. package/lib/components/index.d.ts +3 -3
  182. package/lib/components/replaceable-route-container.component.d.ts +17 -17
  183. package/lib/components/router-outlet.component.d.ts +5 -5
  184. package/lib/constants/different-locales.d.ts +334 -334
  185. package/lib/constants/index.d.ts +1 -1
  186. package/lib/core.module.d.ts +57 -57
  187. package/lib/directives/autofocus.directive.d.ts +12 -12
  188. package/lib/directives/caps-lock.directive.d.ts +10 -0
  189. package/lib/directives/debounce.directive.d.ts +13 -13
  190. package/lib/directives/for.directive.d.ts +36 -36
  191. package/lib/directives/form-submit.directive.d.ts +23 -23
  192. package/lib/directives/index.d.ts +10 -8
  193. package/lib/directives/init.directive.d.ts +10 -10
  194. package/lib/directives/permission.directive.d.ts +24 -24
  195. package/lib/directives/replaceable-template.directive.d.ts +29 -29
  196. package/lib/directives/show-password.directive.d.ts +8 -0
  197. package/lib/directives/stop-propagation.directive.d.ts +12 -12
  198. package/lib/enums/common.d.ts +5 -5
  199. package/lib/enums/index.d.ts +1 -1
  200. package/lib/guards/index.d.ts +1 -1
  201. package/lib/guards/permission.guard.d.ts +16 -16
  202. package/lib/handlers/routes.handler.d.ts +11 -11
  203. package/lib/interceptors/api.interceptor.d.ts +14 -14
  204. package/lib/interceptors/index.d.ts +1 -1
  205. package/lib/localization.module.d.ts +7 -7
  206. package/lib/models/auth.d.ts +14 -14
  207. package/lib/models/common.d.ts +79 -79
  208. package/lib/models/dtos.d.ts +107 -107
  209. package/lib/models/environment.d.ts +38 -38
  210. package/lib/models/index.d.ts +9 -9
  211. package/lib/models/localization.d.ts +5 -5
  212. package/lib/models/replaceable-components.d.ts +45 -45
  213. package/lib/models/rest.d.ts +36 -36
  214. package/lib/models/session.d.ts +7 -7
  215. package/lib/models/utility.d.ts +14 -14
  216. package/lib/pipes/index.d.ts +7 -7
  217. package/lib/pipes/localization.pipe.d.ts +12 -12
  218. package/lib/pipes/safe-html.pipe.d.ts +9 -9
  219. package/lib/pipes/short-date-time.pipe.d.ts +12 -12
  220. package/lib/pipes/short-date.pipe.d.ts +12 -12
  221. package/lib/pipes/short-time.pipe.d.ts +12 -12
  222. package/lib/pipes/sort.pipe.d.ts +9 -9
  223. package/lib/pipes/to-injector.pipe.d.ts +10 -10
  224. package/lib/providers/cookie-language.provider.d.ts +3 -3
  225. package/lib/providers/include-localization-resources.provider.d.ts +2 -2
  226. package/lib/providers/locale.provider.d.ts +9 -9
  227. package/lib/proxy/pages/abp/multi-tenancy/abp-tenant.service.d.ts +12 -12
  228. package/lib/proxy/pages/abp/multi-tenancy/index.d.ts +1 -1
  229. package/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/abp-api-definition.service.d.ts +11 -11
  230. package/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/index.d.ts +1 -1
  231. package/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-configuration.service.d.ts +11 -11
  232. package/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-localization.service.d.ts +11 -11
  233. package/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/index.d.ts +5 -5
  234. package/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/models.d.ts +106 -106
  235. package/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/object-extending/index.d.ts +1 -1
  236. package/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/object-extending/models.d.ts +71 -71
  237. package/lib/proxy/volo/abp/asp-net-core/mvc/multi-tenancy/index.d.ts +1 -1
  238. package/lib/proxy/volo/abp/asp-net-core/mvc/multi-tenancy/models.d.ts +14 -14
  239. package/lib/proxy/volo/abp/http/modeling/index.d.ts +1 -1
  240. package/lib/proxy/volo/abp/http/modeling/models.d.ts +88 -88
  241. package/lib/proxy/volo/abp/localization/index.d.ts +1 -1
  242. package/lib/proxy/volo/abp/localization/models.d.ts +7 -7
  243. package/lib/proxy/volo/abp/models.d.ts +4 -4
  244. package/lib/services/config-state.service.d.ts +379 -378
  245. package/lib/services/content-projection.service.d.ts +10 -10
  246. package/lib/services/dom-insertion.service.d.ts +10 -10
  247. package/lib/services/environment.service.d.ts +103 -103
  248. package/lib/services/http-error-reporter.service.d.ts +12 -12
  249. package/lib/services/http-wait.service.d.ts +30 -30
  250. package/lib/services/index.d.ts +21 -21
  251. package/lib/services/lazy-load.service.d.ts +13 -13
  252. package/lib/services/list.service.d.ts +39 -39
  253. package/lib/services/local-storage.service.d.ts +13 -13
  254. package/lib/services/localization.service.d.ts +54 -54
  255. package/lib/services/multi-tenancy.service.d.ts +22 -22
  256. package/lib/services/permission.service.d.ts +19 -19
  257. package/lib/services/replaceable-components.service.d.ts +19 -19
  258. package/lib/services/resource-wait.service.d.ts +15 -15
  259. package/lib/services/rest.service.d.ts +24 -24
  260. package/lib/services/router-events.service.d.ts +29 -29
  261. package/lib/services/router-wait.service.d.ts +20 -20
  262. package/lib/services/routes.service.d.ts +57 -57
  263. package/lib/services/session-state.service.d.ts +27 -27
  264. package/lib/services/subscription.service.d.ts +17 -17
  265. package/lib/services/track-by.service.d.ts +11 -11
  266. package/lib/strategies/container.strategy.d.ts +22 -22
  267. package/lib/strategies/content-security.strategy.d.ts +17 -17
  268. package/lib/strategies/content.strategy.d.ts +26 -26
  269. package/lib/strategies/context.strategy.d.ts +23 -23
  270. package/lib/strategies/cross-origin.strategy.d.ts +14 -14
  271. package/lib/strategies/dom.strategy.d.ts +13 -13
  272. package/lib/strategies/index.d.ts +8 -8
  273. package/lib/strategies/loading.strategy.d.ts +28 -28
  274. package/lib/strategies/projection.strategy.d.ts +39 -39
  275. package/lib/tokens/app-config.token.d.ts +3 -3
  276. package/lib/tokens/check-authentication-state.d.ts +3 -3
  277. package/lib/tokens/cookie-language-key.token.d.ts +2 -2
  278. package/lib/tokens/http-context.token.d.ts +2 -2
  279. package/lib/tokens/include-localization-resources.token.d.ts +2 -2
  280. package/lib/tokens/index.d.ts +15 -15
  281. package/lib/tokens/list.token.d.ts +2 -2
  282. package/lib/tokens/localization.token.d.ts +6 -6
  283. package/lib/tokens/lodaer-delay.token.d.ts +2 -2
  284. package/lib/tokens/manage-profile.token.d.ts +2 -2
  285. package/lib/tokens/options.token.d.ts +4 -4
  286. package/lib/tokens/others-group.token.d.ts +2 -2
  287. package/lib/tokens/pipe-to-login.token.d.ts +3 -3
  288. package/lib/tokens/queue.token.d.ts +3 -3
  289. package/lib/tokens/set-token-response-to-storage.token.d.ts +6 -6
  290. package/lib/tokens/tenant-key.token.d.ts +2 -2
  291. package/lib/utils/array-utils.d.ts +1 -1
  292. package/lib/utils/common-utils.d.ts +11 -11
  293. package/lib/utils/date-extensions.d.ts +6 -6
  294. package/lib/utils/date-utils.d.ts +4 -4
  295. package/lib/utils/environment-utils.d.ts +3 -3
  296. package/lib/utils/factory-utils.d.ts +11 -11
  297. package/lib/utils/file-utils.d.ts +1 -1
  298. package/lib/utils/form-utils.d.ts +2 -2
  299. package/lib/utils/generator-utils.d.ts +3 -3
  300. package/lib/utils/http-utils.d.ts +8 -8
  301. package/lib/utils/index.d.ts +20 -20
  302. package/lib/utils/initial-utils.d.ts +3 -3
  303. package/lib/utils/internal-store-utils.d.ts +14 -14
  304. package/lib/utils/lazy-load-utils.d.ts +4 -4
  305. package/lib/utils/localization-utils.d.ts +5 -5
  306. package/lib/utils/multi-tenancy-utils.d.ts +3 -3
  307. package/lib/utils/number-utils.d.ts +1 -1
  308. package/lib/utils/object-utils.d.ts +2 -2
  309. package/lib/utils/queue.d.ts +14 -14
  310. package/lib/utils/route-utils.d.ts +8 -8
  311. package/lib/utils/string-utils.d.ts +3 -3
  312. package/lib/utils/tree-utils.d.ts +26 -26
  313. package/lib/validators/age.validator.d.ts +10 -10
  314. package/lib/validators/credit-card.validator.d.ts +5 -5
  315. package/lib/validators/index.d.ts +28 -24
  316. package/lib/validators/range.validator.d.ts +12 -12
  317. package/lib/validators/required.validator.d.ts +8 -8
  318. package/lib/validators/string-length.validator.d.ts +14 -14
  319. package/lib/validators/unique-character.validator.d.ts +5 -0
  320. package/lib/validators/url.validator.d.ts +5 -5
  321. package/lib/validators/username.validator.d.ts +10 -10
  322. package/locale/index.d.ts +5 -5
  323. package/locale/public-api.d.ts +1 -1
  324. package/locale/utils/register-locale.d.ts +13 -13
  325. package/package.json +26 -22
  326. package/public-api.d.ts +25 -25
  327. package/testing/index.d.ts +5 -5
  328. package/testing/lib/core-testing.module.d.ts +16 -16
  329. package/testing/lib/services/index.d.ts +2 -2
  330. package/testing/lib/services/mock-permission.service.d.ts +10 -10
  331. package/testing/lib/services/mock-rest.service.d.ts +14 -14
  332. package/testing/lib/utils/clear-page.util.d.ts +2 -2
  333. package/testing/lib/utils/index.d.ts +2 -2
  334. package/testing/lib/utils/wait.util.d.ts +2 -2
  335. package/testing/public-api.d.ts +3 -3
  336. package/esm2020/lib/abstracts/auth.guard.mjs +0 -17
  337. package/esm2020/lib/abstracts/auth.service.mjs +0 -45
  338. package/esm2020/lib/abstracts/index.mjs +0 -5
  339. package/esm2020/lib/abstracts/ng-model.component.mjs +0 -59
  340. package/esm2020/lib/clients/http.client.mjs +0 -34
  341. package/esm2020/lib/components/dynamic-layout.component.mjs +0 -100
  342. package/esm2020/lib/components/replaceable-route-container.component.mjs +0 -42
  343. package/esm2020/lib/components/router-outlet.component.mjs +0 -15
  344. package/esm2020/lib/core.module.mjs +0 -282
  345. package/esm2020/lib/directives/autofocus.directive.mjs +0 -30
  346. package/esm2020/lib/directives/debounce.directive.mjs +0 -36
  347. package/esm2020/lib/directives/for.directive.mjs +0 -159
  348. package/esm2020/lib/directives/form-submit.directive.mjs +0 -77
  349. package/esm2020/lib/directives/index.mjs +0 -9
  350. package/esm2020/lib/directives/init.directive.mjs +0 -21
  351. package/esm2020/lib/directives/permission.directive.mjs +0 -74
  352. package/esm2020/lib/directives/replaceable-template.directive.mjs +0 -132
  353. package/esm2020/lib/directives/stop-propagation.directive.mjs +0 -32
  354. package/esm2020/lib/guards/permission.guard.mjs +0 -44
  355. package/esm2020/lib/handlers/routes.handler.mjs +0 -51
  356. package/esm2020/lib/interceptors/api.interceptor.mjs +0 -27
  357. package/esm2020/lib/localization.module.mjs +0 -16
  358. package/esm2020/lib/pipes/localization.pipe.mjs +0 -33
  359. package/esm2020/lib/pipes/safe-html.pipe.mjs +0 -23
  360. package/esm2020/lib/pipes/short-date-time.pipe.mjs +0 -34
  361. package/esm2020/lib/pipes/short-date.pipe.mjs +0 -34
  362. package/esm2020/lib/pipes/short-time.pipe.mjs +0 -34
  363. package/esm2020/lib/pipes/sort.pipe.mjs +0 -49
  364. package/esm2020/lib/pipes/to-injector.pipe.mjs +0 -29
  365. package/esm2020/lib/proxy/pages/abp/multi-tenancy/abp-tenant.service.mjs +0 -27
  366. package/esm2020/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/abp-api-definition.service.mjs +0 -24
  367. package/esm2020/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-configuration.service.mjs +0 -24
  368. package/esm2020/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-localization.service.mjs +0 -24
  369. package/esm2020/lib/services/config-state.service.mjs +0 -178
  370. package/esm2020/lib/services/content-projection.service.mjs +0 -17
  371. package/esm2020/lib/services/dom-insertion.service.mjs +0 -34
  372. package/esm2020/lib/services/environment.service.mjs +0 -48
  373. package/esm2020/lib/services/http-error-reporter.service.mjs +0 -29
  374. package/esm2020/lib/services/http-wait.service.mjs +0 -75
  375. package/esm2020/lib/services/lazy-load.service.mjs +0 -40
  376. package/esm2020/lib/services/list.service.mjs +0 -102
  377. package/esm2020/lib/services/local-storage.service.mjs +0 -32
  378. package/esm2020/lib/services/localization.service.mjs +0 -217
  379. package/esm2020/lib/services/multi-tenancy.service.mjs +0 -48
  380. package/esm2020/lib/services/permission.service.mjs +0 -63
  381. package/esm2020/lib/services/replaceable-components.service.mjs +0 -49
  382. package/esm2020/lib/services/resource-wait.service.mjs +0 -39
  383. package/esm2020/lib/services/rest.service.mjs +0 -78
  384. package/esm2020/lib/services/router-events.service.mjs +0 -38
  385. package/esm2020/lib/services/router-wait.service.mjs +0 -51
  386. package/esm2020/lib/services/routes.service.mjs +0 -163
  387. package/esm2020/lib/services/session-state.service.mjs +0 -80
  388. package/esm2020/lib/services/subscription.service.mjs +0 -43
  389. package/esm2020/lib/services/track-by.service.mjs +0 -21
  390. package/esm2020/lib/utils/internal-store-utils.mjs +0 -37
  391. package/esm2020/lib/validators/index.mjs +0 -25
  392. package/esm2020/testing/lib/core-testing.module.mjs +0 -67
  393. package/esm2020/testing/lib/services/mock-permission.service.mjs +0 -35
  394. package/esm2020/testing/lib/services/mock-rest.service.mjs +0 -31
  395. package/fesm2015/abp-ng.core-locale.mjs +0 -57
  396. package/fesm2015/abp-ng.core-locale.mjs.map +0 -1
  397. package/fesm2015/abp-ng.core-testing.mjs +0 -146
  398. package/fesm2015/abp-ng.core-testing.mjs.map +0 -1
  399. package/fesm2015/abp-ng.core.mjs +0 -4460
  400. package/fesm2015/abp-ng.core.mjs.map +0 -1
  401. package/fesm2020/abp-ng.core.mjs.map +0 -1
  402. package/src/lib/proxy/README.md +0 -17
  403. /package/{fesm2020 → fesm2022}/abp-ng.core-locale.mjs.map +0 -0
@@ -1,20 +1,20 @@
1
- export * from './array-utils';
2
- export * from './common-utils';
3
- export * from './date-utils';
4
- export * from './environment-utils';
5
- export * from './factory-utils';
6
- export * from './file-utils';
7
- export * from './form-utils';
8
- export * from './generator-utils';
9
- export * from './http-utils';
10
- export * from './initial-utils';
11
- export * from './internal-store-utils';
12
- export * from './lazy-load-utils';
13
- export * from './localization-utils';
14
- export * from './multi-tenancy-utils';
15
- export * from './number-utils';
16
- export * from './object-utils';
17
- export * from './queue';
18
- export * from './route-utils';
19
- export * from './string-utils';
20
- export * from './tree-utils';
1
+ export * from './array-utils';
2
+ export * from './common-utils';
3
+ export * from './date-utils';
4
+ export * from './environment-utils';
5
+ export * from './factory-utils';
6
+ export * from './file-utils';
7
+ export * from './form-utils';
8
+ export * from './generator-utils';
9
+ export * from './http-utils';
10
+ export * from './initial-utils';
11
+ export * from './internal-store-utils';
12
+ export * from './lazy-load-utils';
13
+ export * from './localization-utils';
14
+ export * from './multi-tenancy-utils';
15
+ export * from './number-utils';
16
+ export * from './object-utils';
17
+ export * from './queue';
18
+ export * from './route-utils';
19
+ export * from './string-utils';
20
+ export * from './tree-utils';
@@ -1,3 +1,3 @@
1
- import { Injector } from '@angular/core';
2
- export declare function getInitialData(injector: Injector): () => Promise<void>;
3
- export declare function localeInitializer(injector: Injector): () => Promise<unknown>;
1
+ import { Injector } from '@angular/core';
2
+ export declare function getInitialData(injector: Injector): () => Promise<void>;
3
+ export declare function localeInitializer(injector: Injector): () => Promise<unknown>;
@@ -1,14 +1,14 @@
1
- import { DeepPartial } from '../models';
2
- export declare class InternalStore<State> {
3
- private initialState;
4
- private state$;
5
- private update$;
6
- get state(): State;
7
- sliceState: <Slice>(selector: (state: State) => Slice, compareFn?: (s1: Slice, s2: Slice) => boolean) => import("rxjs").Observable<Slice>;
8
- sliceUpdate: <Slice>(selector: (state: DeepPartial<State>) => Slice, filterFn?: (x: Slice) => boolean) => import("rxjs").Observable<Slice>;
9
- constructor(initialState: State);
10
- patch(state: Partial<State>): void;
11
- deepPatch(state: DeepPartial<State>): void;
12
- set(state: State): void;
13
- reset(): void;
14
- }
1
+ import { DeepPartial } from '../models';
2
+ export declare class InternalStore<State> {
3
+ private initialState;
4
+ private state$;
5
+ private update$;
6
+ get state(): State;
7
+ sliceState: <Slice>(selector: (state: State) => Slice, compareFn?: (s1: Slice, s2: Slice) => boolean) => import("rxjs").Observable<Slice>;
8
+ sliceUpdate: <Slice>(selector: (state: DeepPartial<State>) => Slice, filterFn?: (x: Slice) => boolean) => import("rxjs").Observable<Slice>;
9
+ constructor(initialState: State);
10
+ patch(state: Partial<State>): void;
11
+ deepPatch(state: DeepPartial<State>): void;
12
+ set(state: State): void;
13
+ reset(): void;
14
+ }
@@ -1,4 +1,4 @@
1
- import { Observable } from 'rxjs';
2
- import { CrossOriginStrategy } from '../strategies/cross-origin.strategy';
3
- import { DomStrategy } from '../strategies/dom.strategy';
4
- export declare function fromLazyLoad<T extends Event>(element: HTMLScriptElement | HTMLLinkElement, domStrategy?: DomStrategy, crossOriginStrategy?: CrossOriginStrategy): Observable<T>;
1
+ import { Observable } from 'rxjs';
2
+ import { CrossOriginStrategy } from '../strategies/cross-origin.strategy';
3
+ import { DomStrategy } from '../strategies/dom.strategy';
4
+ export declare function fromLazyLoad<T extends Event>(element: HTMLScriptElement | HTMLLinkElement, domStrategy?: DomStrategy, crossOriginStrategy?: CrossOriginStrategy): Observable<T>;
@@ -1,5 +1,5 @@
1
- import { ApplicationLocalizationConfigurationDto } from '../proxy/volo/abp/asp-net-core/mvc/application-configurations/models';
2
- export declare function getLocaleDirection(locale: string): 'ltr' | 'rtl';
3
- export declare function createLocalizer(localization: ApplicationLocalizationConfigurationDto): (resourceName: string, key: string, defaultValue: string | null) => string;
4
- export declare function createLocalizerWithFallback(localization: ApplicationLocalizationConfigurationDto): (resourceNames: string[], keys: string[], defaultValue: string) => string;
5
- export declare function createLocalizationPipeKeyGenerator(localization: ApplicationLocalizationConfigurationDto): (resourceNames: string[], keys: string[], defaultKey: string | undefined) => string;
1
+ import { ApplicationLocalizationConfigurationDto } from '../proxy/volo/abp/asp-net-core/mvc/application-configurations/models';
2
+ export declare function getLocaleDirection(locale: string): 'ltr' | 'rtl';
3
+ export declare function createLocalizer(localization: ApplicationLocalizationConfigurationDto): (resourceName: string, key: string, defaultValue: string | null) => string;
4
+ export declare function createLocalizerWithFallback(localization: ApplicationLocalizationConfigurationDto): (resourceNames: string[], keys: string[], defaultValue: string) => string;
5
+ export declare function createLocalizationPipeKeyGenerator(localization: ApplicationLocalizationConfigurationDto): (resourceNames: string[], keys: string[], defaultKey: string | undefined) => string;
@@ -1,3 +1,3 @@
1
- import { Injector } from '@angular/core';
2
- import { FindTenantResultDto } from '../proxy/volo/abp/asp-net-core/mvc/multi-tenancy/models';
3
- export declare function parseTenantFromUrl(injector: Injector): Promise<void | FindTenantResultDto>;
1
+ import { Injector } from '@angular/core';
2
+ import { FindTenantResultDto } from '../proxy/volo/abp/asp-net-core/mvc/multi-tenancy/models';
3
+ export declare function parseTenantFromUrl(injector: Injector): Promise<void | FindTenantResultDto>;
@@ -1 +1 @@
1
- export declare function isNumber(value: string | number): boolean;
1
+ export declare function isNumber(value: string | number): boolean;
@@ -1,2 +1,2 @@
1
- import { DeepPartial } from '../models';
2
- export declare function deepMerge<T>(target: DeepPartial<T> | T, source: DeepPartial<T> | T): DeepPartial<T> | T;
1
+ import { DeepPartial } from '../models';
2
+ export declare function deepMerge<T>(target: DeepPartial<T> | T, source: DeepPartial<T> | T): DeepPartial<T> | T;
@@ -1,14 +1,14 @@
1
- export interface QueueManager {
2
- add(fn: () => void): void;
3
- init(interval: number, stackSize: number): void;
4
- }
5
- export declare class DefaultQueueManager implements QueueManager {
6
- private queue;
7
- private isRunning;
8
- private stack;
9
- private interval;
10
- private stackSize;
11
- init(interval: number, stackSize: number): void;
12
- add(fn: () => void): void;
13
- private run;
14
- }
1
+ export interface QueueManager {
2
+ add(fn: () => void): void;
3
+ init(interval: number, stackSize: number): void;
4
+ }
5
+ export declare class DefaultQueueManager implements QueueManager {
6
+ private queue;
7
+ private isRunning;
8
+ private stack;
9
+ private interval;
10
+ private stackSize;
11
+ init(interval: number, stackSize: number): void;
12
+ add(fn: () => void): void;
13
+ private run;
14
+ }
@@ -1,8 +1,8 @@
1
- import { NgZone } from '@angular/core';
2
- import { Router } from "@angular/router";
3
- import { ABP } from '../models/common';
4
- import { RoutesService } from '../services/routes.service';
5
- import { TreeNode } from './tree-utils';
6
- export declare function findRoute(routesService: RoutesService, path: string): TreeNode<ABP.Route> | null;
7
- export declare function getRoutePath(router: Router, url?: string): string;
8
- export declare function reloadRoute(router: Router, ngZone: NgZone): void;
1
+ import { NgZone } from '@angular/core';
2
+ import { Router } from "@angular/router";
3
+ import { ABP } from '../models/common';
4
+ import { RoutesService } from '../services/routes.service';
5
+ import { TreeNode } from './tree-utils';
6
+ export declare function findRoute(routesService: RoutesService, path: string): TreeNode<ABP.Route> | null;
7
+ export declare function getRoutePath(router: Router, url?: string): string;
8
+ export declare function reloadRoute(router: Router, ngZone: NgZone): void;
@@ -1,3 +1,3 @@
1
- export declare function createTokenParser(format: string): (str: string) => Record<string, string[]>;
2
- export declare function interpolate(text: string, params: string[]): string;
3
- export declare function escapeHtmlChars(value: any): any;
1
+ export declare function createTokenParser(format: string): (str: string) => Record<string, string[]>;
2
+ export declare function interpolate(text: string, params: string[]): string;
3
+ export declare function escapeHtmlChars(value: any): any;
@@ -1,26 +1,26 @@
1
- export declare class BaseTreeNode<T extends object> {
2
- children: TreeNode<T>[];
3
- isLeaf: boolean;
4
- parent?: TreeNode<T>;
5
- constructor(props: T);
6
- static create<T extends object>(props: T): TreeNode<T>;
7
- }
8
- export declare function createTreeFromList<T extends object, R>(list: T[], keySelector: (item: T) => NodeKey, parentKeySelector: typeof keySelector, valueMapper: (item: T) => R): R[];
9
- export declare function createMapFromList<T extends object, R>(list: T[], keySelector: (item: T) => NodeKey, valueMapper: (item: T) => R): Map<NodeKey, R>;
10
- export declare function createTreeNodeFilterCreator<T extends object>(key: keyof T, mapperFn: (value: any) => string): (search: string) => (nodes: TreeNode<T>[], matches?: TreeNode<T>[]) => TreeNode<T>[];
11
- export declare function createGroupMap<T extends {
12
- group?: string;
13
- }>(list: TreeNode<T>[], othersGroupKey: string): Map<string, TreeNode<T>[]>;
14
- export declare type TreeNode<T extends object> = {
15
- [K in keyof T]: T[K];
16
- } & {
17
- children: TreeNode<T>[];
18
- isLeaf: boolean;
19
- parent?: TreeNode<T>;
20
- };
21
- export declare type RouteGroup<T extends object> = {
22
- readonly group: string;
23
- readonly items: TreeNode<T>[];
24
- };
25
- export declare type NodeKey = number | string | symbol | undefined | null;
26
- export declare type NodeValue<T extends object, F extends (...args: any) => any> = F extends undefined ? TreeNode<T> : ReturnType<F>;
1
+ export declare class BaseTreeNode<T extends object> {
2
+ children: TreeNode<T>[];
3
+ isLeaf: boolean;
4
+ parent?: TreeNode<T>;
5
+ constructor(props: T);
6
+ static create<T extends object>(props: T): TreeNode<T>;
7
+ }
8
+ export declare function createTreeFromList<T extends object, R>(list: T[], keySelector: (item: T) => NodeKey, parentKeySelector: typeof keySelector, valueMapper: (item: T) => R): R[];
9
+ export declare function createMapFromList<T extends object, R>(list: T[], keySelector: (item: T) => NodeKey, valueMapper: (item: T) => R): Map<NodeKey, R>;
10
+ export declare function createTreeNodeFilterCreator<T extends object>(key: keyof T, mapperFn: (value: any) => string): (search: string) => (nodes: TreeNode<T>[], matches?: TreeNode<T>[]) => TreeNode<T>[];
11
+ export declare function createGroupMap<T extends {
12
+ group?: string;
13
+ }>(list: TreeNode<T>[], othersGroupKey: string): Map<string, TreeNode<T>[]>;
14
+ export type TreeNode<T extends object> = {
15
+ [K in keyof T]: T[K];
16
+ } & {
17
+ children: TreeNode<T>[];
18
+ isLeaf: boolean;
19
+ parent?: TreeNode<T>;
20
+ };
21
+ export type RouteGroup<T extends object> = {
22
+ readonly group: string;
23
+ readonly items: TreeNode<T>[];
24
+ };
25
+ export type NodeKey = number | string | symbol | undefined | null;
26
+ export type NodeValue<T extends object, F extends (...args: any) => any> = F extends undefined ? TreeNode<T> : ReturnType<F>;
@@ -1,10 +1,10 @@
1
- import { ValidatorFn } from '@angular/forms';
2
- export interface MinAgeError {
3
- minAge: {
4
- age: number;
5
- };
6
- }
7
- export interface MinAgeOptions {
8
- age?: number;
9
- }
10
- export declare function validateMinAge({ age }?: MinAgeOptions): ValidatorFn;
1
+ import { ValidatorFn } from '@angular/forms';
2
+ export interface MinAgeError {
3
+ minAge: {
4
+ age: number;
5
+ };
6
+ }
7
+ export interface MinAgeOptions {
8
+ age?: number;
9
+ }
10
+ export declare function validateMinAge({ age }?: MinAgeOptions): ValidatorFn;
@@ -1,5 +1,5 @@
1
- import { ValidatorFn } from '@angular/forms';
2
- export interface CreditCardError {
3
- creditCard: true;
4
- }
5
- export declare function validateCreditCard(): ValidatorFn;
1
+ import { ValidatorFn } from '@angular/forms';
2
+ export interface CreditCardError {
3
+ creditCard: true;
4
+ }
5
+ export declare function validateCreditCard(): ValidatorFn;
@@ -1,24 +1,28 @@
1
- import { Validators } from '@angular/forms';
2
- import { validateMinAge } from './age.validator';
3
- import { validateCreditCard } from './credit-card.validator';
4
- import { validateRange } from './range.validator';
5
- import { validateRequired } from './required.validator';
6
- import { validateStringLength } from './string-length.validator';
7
- import { validateUrl } from './url.validator';
8
- import { validateUsername } from './username.validator';
9
- export * from './age.validator';
10
- export * from './credit-card.validator';
11
- export * from './range.validator';
12
- export * from './required.validator';
13
- export * from './string-length.validator';
14
- export * from './url.validator';
15
- export declare const AbpValidators: {
16
- creditCard: typeof validateCreditCard;
17
- emailAddress: () => typeof Validators.email;
18
- minAge: typeof validateMinAge;
19
- range: typeof validateRange;
20
- required: typeof validateRequired;
21
- stringLength: typeof validateStringLength;
22
- url: typeof validateUrl;
23
- username: typeof validateUsername;
24
- };
1
+ import { Validators } from '@angular/forms';
2
+ import { validateMinAge } from './age.validator';
3
+ import { validateCreditCard } from './credit-card.validator';
4
+ import { validateRange } from './range.validator';
5
+ import { validateRequired } from './required.validator';
6
+ import { validateStringLength } from './string-length.validator';
7
+ import { validateUniqueCharacter } from './unique-character.validator';
8
+ import { validateUrl } from './url.validator';
9
+ import { validateUsername } from './username.validator';
10
+ export { validateUniqueCharacter } from './unique-character.validator';
11
+ export * from './age.validator';
12
+ export * from './credit-card.validator';
13
+ export * from './range.validator';
14
+ export * from './required.validator';
15
+ export * from './string-length.validator';
16
+ export * from './url.validator';
17
+ export * from './unique-character.validator';
18
+ export declare const AbpValidators: {
19
+ creditCard: typeof validateCreditCard;
20
+ emailAddress: () => typeof Validators.email;
21
+ minAge: typeof validateMinAge;
22
+ range: typeof validateRange;
23
+ required: typeof validateRequired;
24
+ stringLength: typeof validateStringLength;
25
+ url: typeof validateUrl;
26
+ username: typeof validateUsername;
27
+ uniqueCharacter: typeof validateUniqueCharacter;
28
+ };
@@ -1,12 +1,12 @@
1
- import { ValidatorFn } from '@angular/forms';
2
- export interface RangeError {
3
- range: {
4
- max: number;
5
- min: number;
6
- };
7
- }
8
- export interface RangeOptions {
9
- maximum?: number;
10
- minimum?: number;
11
- }
12
- export declare function validateRange({ maximum, minimum }?: RangeOptions): ValidatorFn;
1
+ import { ValidatorFn } from '@angular/forms';
2
+ export interface RangeError {
3
+ range: {
4
+ max: number;
5
+ min: number;
6
+ };
7
+ }
8
+ export interface RangeOptions {
9
+ maximum?: number;
10
+ minimum?: number;
11
+ }
12
+ export declare function validateRange({ maximum, minimum }?: RangeOptions): ValidatorFn;
@@ -1,8 +1,8 @@
1
- import { ValidatorFn } from '@angular/forms';
2
- export interface RequiredError {
3
- required: true;
4
- }
5
- export interface RequiredOptions {
6
- allowEmptyStrings?: boolean;
7
- }
8
- export declare function validateRequired({ allowEmptyStrings }?: RequiredOptions): ValidatorFn;
1
+ import { ValidatorFn } from '@angular/forms';
2
+ export interface RequiredError {
3
+ required: true;
4
+ }
5
+ export interface RequiredOptions {
6
+ allowEmptyStrings?: boolean;
7
+ }
8
+ export declare function validateRequired({ allowEmptyStrings }?: RequiredOptions): ValidatorFn;
@@ -1,14 +1,14 @@
1
- import { ValidatorFn } from '@angular/forms';
2
- export interface StringLengthError {
3
- maxlength?: {
4
- requiredLength: number;
5
- };
6
- minlength?: {
7
- requiredLength: number;
8
- };
9
- }
10
- export interface StringLengthOptions {
11
- maximumLength?: number;
12
- minimumLength?: number;
13
- }
14
- export declare function validateStringLength({ maximumLength, minimumLength, }?: StringLengthOptions): ValidatorFn;
1
+ import { ValidatorFn } from '@angular/forms';
2
+ export interface StringLengthError {
3
+ maxlength?: {
4
+ requiredLength: number;
5
+ };
6
+ minlength?: {
7
+ requiredLength: number;
8
+ };
9
+ }
10
+ export interface StringLengthOptions {
11
+ maximumLength?: number;
12
+ minimumLength?: number;
13
+ }
14
+ export declare function validateStringLength({ maximumLength, minimumLength, }?: StringLengthOptions): ValidatorFn;
@@ -0,0 +1,5 @@
1
+ import { ValidatorFn } from '@angular/forms';
2
+ export interface UniqueCharacterError {
3
+ uniqueCharacter: true;
4
+ }
5
+ export declare function validateUniqueCharacter(): ValidatorFn;
@@ -1,5 +1,5 @@
1
- import { ValidatorFn } from '@angular/forms';
2
- export interface UrlError {
3
- url: true;
4
- }
5
- export declare function validateUrl(): ValidatorFn;
1
+ import { ValidatorFn } from '@angular/forms';
2
+ export interface UrlError {
3
+ url: true;
4
+ }
5
+ export declare function validateUrl(): ValidatorFn;
@@ -1,10 +1,10 @@
1
- import { ValidatorFn } from '@angular/forms';
2
- export interface UsernamePatternError {
3
- usernamePattern: {
4
- actualValue: string;
5
- };
6
- }
7
- export interface UsernameOptions {
8
- pattern?: RegExp;
9
- }
10
- export declare function validateUsername({ pattern }?: UsernameOptions): ValidatorFn;
1
+ import { ValidatorFn } from '@angular/forms';
2
+ export interface UsernamePatternError {
3
+ usernamePattern: {
4
+ actualValue: string;
5
+ };
6
+ }
7
+ export interface UsernameOptions {
8
+ pattern?: RegExp;
9
+ }
10
+ export declare function validateUsername({ pattern }?: UsernameOptions): ValidatorFn;
package/locale/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@abp/ng.core/locale" />
5
- export * from './public-api';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@abp/ng.core/locale" />
5
+ export * from './public-api';
@@ -1 +1 @@
1
- export * from './utils/register-locale';
1
+ export * from './utils/register-locale';
@@ -1,13 +1,13 @@
1
- export interface LocaleErrorHandlerData {
2
- resolve: any;
3
- reject: any;
4
- error: any;
5
- locale: string;
6
- }
7
- export interface RegisterLocaleData {
8
- cultureNameLocaleFileMap?: Record<string, string>;
9
- errorHandlerFn?: (data: LocaleErrorHandlerData) => any;
10
- }
11
- export declare function registerLocale({ cultureNameLocaleFileMap, errorHandlerFn, }?: RegisterLocaleData): (locale: string) => Promise<any>;
12
- export declare function storeLocaleData(data: any, localeId: string): void;
13
- export declare function defaultLocalErrorHandlerFn({ locale, resolve }: LocaleErrorHandlerData): Promise<void>;
1
+ export interface LocaleErrorHandlerData {
2
+ resolve: any;
3
+ reject: any;
4
+ error: any;
5
+ locale: string;
6
+ }
7
+ export interface RegisterLocaleData {
8
+ cultureNameLocaleFileMap?: Record<string, string>;
9
+ errorHandlerFn?: (data: LocaleErrorHandlerData) => any;
10
+ }
11
+ export declare function registerLocale({ cultureNameLocaleFileMap, errorHandlerFn, }?: RegisterLocaleData): (locale: string) => Promise<any>;
12
+ export declare function storeLocaleData(data: any, localeId: string): void;
13
+ export declare function defaultLocalErrorHandlerFn({ locale, resolve }: LocaleErrorHandlerData): Promise<void>;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@abp/ng.core",
3
- "version": "7.2.2",
3
+ "version": "7.3.0-rc.2",
4
4
  "homepage": "https://abp.io",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/abpframework/abp.git"
8
8
  },
9
9
  "dependencies": {
10
- "@abp/utils": "~7.2.2",
10
+ "@abp/utils": "~7.3.0-rc.2",
11
11
  "angular-oauth2-oidc": "^15.0.1",
12
12
  "just-clone": "^6.1.1",
13
13
  "just-compare": "^2.3.0",
@@ -17,11 +17,21 @@
17
17
  "publishConfig": {
18
18
  "access": "public"
19
19
  },
20
- "module": "fesm2015/abp-ng.core.mjs",
21
- "es2020": "fesm2020/abp-ng.core.mjs",
22
- "esm2020": "esm2020/abp-ng.core.mjs",
23
- "fesm2020": "fesm2020/abp-ng.core.mjs",
24
- "fesm2015": "fesm2015/abp-ng.core.mjs",
20
+ "license": "LGPL-3.0",
21
+ "keywords": [
22
+ "aspnetcore",
23
+ "boilerplate",
24
+ "framework",
25
+ "web",
26
+ "best-practices",
27
+ "angular",
28
+ "maui",
29
+ "blazor",
30
+ "mvc",
31
+ "csharp",
32
+ "webapp"
33
+ ],
34
+ "module": "fesm2022/abp-ng.core.mjs",
25
35
  "typings": "index.d.ts",
26
36
  "exports": {
27
37
  "./package.json": {
@@ -29,27 +39,21 @@
29
39
  },
30
40
  ".": {
31
41
  "types": "./index.d.ts",
32
- "esm2020": "./esm2020/abp-ng.core.mjs",
33
- "es2020": "./fesm2020/abp-ng.core.mjs",
34
- "es2015": "./fesm2015/abp-ng.core.mjs",
35
- "node": "./fesm2015/abp-ng.core.mjs",
36
- "default": "./fesm2020/abp-ng.core.mjs"
42
+ "esm2022": "./esm2022/abp-ng.core.mjs",
43
+ "esm": "./esm2022/abp-ng.core.mjs",
44
+ "default": "./fesm2022/abp-ng.core.mjs"
37
45
  },
38
46
  "./locale": {
39
47
  "types": "./locale/index.d.ts",
40
- "esm2020": "./esm2020/locale/abp-ng.core-locale.mjs",
41
- "es2020": "./fesm2020/abp-ng.core-locale.mjs",
42
- "es2015": "./fesm2015/abp-ng.core-locale.mjs",
43
- "node": "./fesm2015/abp-ng.core-locale.mjs",
44
- "default": "./fesm2020/abp-ng.core-locale.mjs"
48
+ "esm2022": "./esm2022/locale/abp-ng.core-locale.mjs",
49
+ "esm": "./esm2022/locale/abp-ng.core-locale.mjs",
50
+ "default": "./fesm2022/abp-ng.core-locale.mjs"
45
51
  },
46
52
  "./testing": {
47
53
  "types": "./testing/index.d.ts",
48
- "esm2020": "./esm2020/testing/abp-ng.core-testing.mjs",
49
- "es2020": "./fesm2020/abp-ng.core-testing.mjs",
50
- "es2015": "./fesm2015/abp-ng.core-testing.mjs",
51
- "node": "./fesm2015/abp-ng.core-testing.mjs",
52
- "default": "./fesm2020/abp-ng.core-testing.mjs"
54
+ "esm2022": "./esm2022/testing/abp-ng.core-testing.mjs",
55
+ "esm": "./esm2022/testing/abp-ng.core-testing.mjs",
56
+ "default": "./fesm2022/abp-ng.core-testing.mjs"
53
57
  }
54
58
  },
55
59
  "sideEffects": false
package/public-api.d.ts CHANGED
@@ -1,25 +1,25 @@
1
- export * from './lib/abstracts';
2
- export * from './lib/components';
3
- export * from './lib/constants';
4
- export * from './lib/core.module';
5
- export * from './lib/directives';
6
- export * from './lib/enums';
7
- export * from './lib/guards';
8
- export * from './lib/localization.module';
9
- export * from './lib/models';
10
- export * from './lib/pipes';
11
- export * from './lib/proxy/pages/abp/multi-tenancy';
12
- export * from './lib/proxy/volo/abp/asp-net-core/mvc/api-exploring';
13
- export * from './lib/proxy/volo/abp/asp-net-core/mvc/application-configurations';
14
- export * from './lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/object-extending';
15
- export * from './lib/proxy/volo/abp/asp-net-core/mvc/multi-tenancy';
16
- export * from './lib/proxy/volo/abp/http/modeling';
17
- export * from './lib/proxy/volo/abp/localization';
18
- export * from './lib/proxy/volo/abp/models';
19
- export * from './lib/services';
20
- export * from './lib/strategies';
21
- export * from './lib/tokens';
22
- export * from './lib/utils';
23
- export * from './lib/validators';
24
- export * from './lib/interceptors';
25
- export * from './lib/clients';
1
+ export * from './lib/abstracts';
2
+ export * from './lib/components';
3
+ export * from './lib/constants';
4
+ export * from './lib/core.module';
5
+ export * from './lib/directives';
6
+ export * from './lib/enums';
7
+ export * from './lib/guards';
8
+ export * from './lib/localization.module';
9
+ export * from './lib/models';
10
+ export * from './lib/pipes';
11
+ export * from './lib/proxy/pages/abp/multi-tenancy';
12
+ export * from './lib/proxy/volo/abp/asp-net-core/mvc/api-exploring';
13
+ export * from './lib/proxy/volo/abp/asp-net-core/mvc/application-configurations';
14
+ export * from './lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/object-extending';
15
+ export * from './lib/proxy/volo/abp/asp-net-core/mvc/multi-tenancy';
16
+ export * from './lib/proxy/volo/abp/http/modeling';
17
+ export * from './lib/proxy/volo/abp/localization';
18
+ export * from './lib/proxy/volo/abp/models';
19
+ export * from './lib/services';
20
+ export * from './lib/strategies';
21
+ export * from './lib/tokens';
22
+ export * from './lib/utils';
23
+ export * from './lib/validators';
24
+ export * from './lib/interceptors';
25
+ export * from './lib/clients';
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@abp/ng.core/testing" />
5
- export * from './public-api';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@abp/ng.core/testing" />
5
+ export * from './public-api';