@stemy/ngx-utils 13.6.16 → 17.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (268) hide show
  1. package/esm2022/ngx-utils/common-types.mjs +123 -0
  2. package/esm2022/ngx-utils/components/dynamic-table/dynamic-table.component.mjs +210 -0
  3. package/esm2022/ngx-utils/components/pagination-menu/pagination-menu.component.mjs +101 -0
  4. package/esm2022/ngx-utils/components/unordered-list/unordered-list.component.mjs +65 -0
  5. package/esm2022/ngx-utils/directives/async-method.base.mjs +82 -0
  6. package/{esm2020 → esm2022}/ngx-utils/directives/async-method.directive.mjs +21 -21
  7. package/esm2022/ngx-utils/directives/background.directive.mjs +51 -0
  8. package/{esm2020 → esm2022}/ngx-utils/directives/dynamic-table-template.directive.mjs +20 -20
  9. package/{esm2020 → esm2022}/ngx-utils/directives/global-template.directive.mjs +30 -30
  10. package/esm2022/ngx-utils/directives/icon.directive.mjs +67 -0
  11. package/esm2022/ngx-utils/directives/ngx-template-outlet.directive.mjs +90 -0
  12. package/{esm2020 → esm2022}/ngx-utils/directives/pagination-item.directive.mjs +34 -34
  13. package/esm2022/ngx-utils/directives/pagination.directive.mjs +84 -0
  14. package/esm2022/ngx-utils/directives/resource-if.directive.mjs +50 -0
  15. package/esm2022/ngx-utils/directives/sticky-class.directive.mjs +34 -0
  16. package/{esm2020 → esm2022}/ngx-utils/directives/sticky.directive.mjs +55 -55
  17. package/{esm2020 → esm2022}/ngx-utils/directives/unordered-list-item.directive.mjs +79 -79
  18. package/{esm2020 → esm2022}/ngx-utils/directives/unordered-list-template.directive.mjs +20 -20
  19. package/{esm2020 → esm2022}/ngx-utils/ngx-utils.imports.mjs +174 -174
  20. package/esm2022/ngx-utils/ngx-utils.module.mjs +202 -0
  21. package/esm2022/ngx-utils/pipes/chunk.pipe.mjs +25 -0
  22. package/{esm2020 → esm2022}/ngx-utils/pipes/entries.pipe.mjs +28 -28
  23. package/{esm2020 → esm2022}/ngx-utils/pipes/extra-item-properties.pipe.mjs +31 -31
  24. package/esm2022/ngx-utils/pipes/filter.pipe.mjs +37 -0
  25. package/esm2022/ngx-utils/pipes/find.pipe.mjs +29 -0
  26. package/{esm2020 → esm2022}/ngx-utils/pipes/format-number.pipe.mjs +21 -21
  27. package/{esm2020 → esm2022}/ngx-utils/pipes/get-offset.pipe.mjs +17 -17
  28. package/{esm2020 → esm2022}/ngx-utils/pipes/get-type.pipe.mjs +16 -16
  29. package/esm2022/ngx-utils/pipes/global-template.pipe.mjs +41 -0
  30. package/{esm2020 → esm2022}/ngx-utils/pipes/group-by.pipe.mjs +27 -27
  31. package/{esm2020 → esm2022}/ngx-utils/pipes/is-type.pipe.mjs +16 -16
  32. package/{esm2020 → esm2022}/ngx-utils/pipes/join.pipe.mjs +19 -19
  33. package/{esm2020 → esm2022}/ngx-utils/pipes/keys.pipe.mjs +22 -22
  34. package/{esm2020 → esm2022}/ngx-utils/pipes/map.pipe.mjs +29 -29
  35. package/{esm2020 → esm2022}/ngx-utils/pipes/max.pipe.mjs +26 -26
  36. package/{esm2020 → esm2022}/ngx-utils/pipes/min.pipe.mjs +26 -26
  37. package/{esm2020 → esm2022}/ngx-utils/pipes/pop.pipe.mjs +16 -16
  38. package/{esm2020 → esm2022}/ngx-utils/pipes/reduce.pipe.mjs +30 -30
  39. package/esm2022/ngx-utils/pipes/remap.pipe.mjs +32 -0
  40. package/{esm2020 → esm2022}/ngx-utils/pipes/replace.pipe.mjs +17 -17
  41. package/esm2022/ngx-utils/pipes/reverse.pipe.mjs +24 -0
  42. package/{esm2020 → esm2022}/ngx-utils/pipes/round.pipe.mjs +21 -21
  43. package/esm2022/ngx-utils/pipes/safe-html.pipe.mjs +34 -0
  44. package/{esm2020 → esm2022}/ngx-utils/pipes/shift.pipe.mjs +16 -16
  45. package/{esm2020 → esm2022}/ngx-utils/pipes/split.pipe.mjs +16 -16
  46. package/esm2022/ngx-utils/pipes/translate.pipe.mjs +86 -0
  47. package/{esm2020 → esm2022}/ngx-utils/pipes/values.pipe.mjs +22 -22
  48. package/esm2022/ngx-utils/plugins/resize-event.plugin.mjs +78 -0
  49. package/esm2022/ngx-utils/plugins/scroll-event.plugin.mjs +39 -0
  50. package/{esm2020 → esm2022}/ngx-utils/services/acl.service.mjs +84 -83
  51. package/esm2022/ngx-utils/services/api.service.mjs +42 -0
  52. package/{esm2020 → esm2022}/ngx-utils/services/auth.service.mjs +13 -13
  53. package/esm2022/ngx-utils/services/base-http.client.mjs +47 -0
  54. package/esm2022/ngx-utils/services/base-http.service.mjs +305 -0
  55. package/esm2022/ngx-utils/services/config.service.mjs +130 -0
  56. package/esm2022/ngx-utils/services/error-handler.service.mjs +49 -0
  57. package/{esm2020 → esm2022}/ngx-utils/services/events.service.mjs +26 -26
  58. package/{esm2020 → esm2022}/ngx-utils/services/formatter.service.mjs +49 -49
  59. package/esm2022/ngx-utils/services/global-template.service.mjs +37 -0
  60. package/esm2022/ngx-utils/services/icon.service.mjs +26 -0
  61. package/esm2022/ngx-utils/services/language.service.mjs +124 -0
  62. package/{esm2020 → esm2022}/ngx-utils/services/local-http.service.mjs +47 -47
  63. package/{esm2020 → esm2022}/ngx-utils/services/open-api.service.mjs +40 -40
  64. package/{esm2020 → esm2022}/ngx-utils/services/promise.service.mjs +55 -55
  65. package/esm2022/ngx-utils/services/state.service.mjs +177 -0
  66. package/{esm2020 → esm2022}/ngx-utils/services/static-language.service.mjs +166 -166
  67. package/esm2022/ngx-utils/services/storage.service.mjs +49 -0
  68. package/{esm2020 → esm2022}/ngx-utils/services/toaster.service.mjs +32 -32
  69. package/esm2022/ngx-utils/services/translated-url.serializer.mjs +73 -0
  70. package/esm2022/ngx-utils/services/universal.service.mjs +81 -0
  71. package/{esm2020 → esm2022}/ngx-utils/services/wasm.service.mjs +46 -46
  72. package/esm2022/ngx-utils/utils/ajax-request-handler.mjs +40 -0
  73. package/esm2022/ngx-utils/utils/array.utils.mjs +107 -0
  74. package/esm2022/ngx-utils/utils/auth.guard.mjs +181 -0
  75. package/esm2022/ngx-utils/utils/cached-factory.mjs +30 -0
  76. package/esm2022/ngx-utils/utils/canvas.utils.mjs +388 -0
  77. package/esm2022/ngx-utils/utils/date.utils.mjs +29 -0
  78. package/{esm2020 → esm2022}/ngx-utils/utils/file-system.mjs +24 -24
  79. package/esm2022/ngx-utils/utils/file.utils.mjs +90 -0
  80. package/{esm2020 → esm2022}/ngx-utils/utils/generic-value.mjs +20 -20
  81. package/esm2022/ngx-utils/utils/geometry.mjs +132 -0
  82. package/{esm2020 → esm2022}/ngx-utils/utils/initializer.mjs +20 -20
  83. package/esm2022/ngx-utils/utils/jsonfn.mjs +45 -0
  84. package/esm2022/ngx-utils/utils/loader.utils.mjs +55 -0
  85. package/esm2022/ngx-utils/utils/math.utils.mjs +44 -0
  86. package/esm2022/ngx-utils/utils/object.utils.mjs +320 -0
  87. package/{esm2020 → esm2022}/ngx-utils/utils/observable.utils.mjs +63 -63
  88. package/esm2022/ngx-utils/utils/reflect.utils.mjs +33 -0
  89. package/esm2022/ngx-utils/utils/set.utils.mjs +20 -0
  90. package/esm2022/ngx-utils/utils/string.utils.mjs +41 -0
  91. package/{esm2020 → esm2022}/ngx-utils/utils/timer.utils.mjs +51 -51
  92. package/esm2022/ngx-utils/utils/unique.utils.mjs +24 -0
  93. package/esm2022/ngx-utils/utils/vector.mjs +77 -0
  94. package/esm2022/ngx-utils/utils/wasi.mjs +159 -0
  95. package/esm2022/ngx-utils/utils/wasm-worker-proxy.mjs +99 -0
  96. package/{esm2020 → esm2022}/ngx-utils/utils/with-options-provider.mjs +23 -23
  97. package/{esm2020 → esm2022}/public_api.mjs +94 -94
  98. package/{esm2020 → esm2022}/stemy-ngx-utils.mjs +4 -4
  99. package/esm2022/tools/config.mjs +71 -0
  100. package/{esm2020 → esm2022}/tools/public_api.mjs +1 -1
  101. package/{esm2020 → esm2022}/tools/stemy-ngx-utils-tools.mjs +4 -4
  102. package/{fesm2020 → fesm2022}/stemy-ngx-utils-tools.mjs +71 -71
  103. package/{fesm2015 → fesm2022}/stemy-ngx-utils-tools.mjs.map +1 -1
  104. package/{fesm2020 → fesm2022}/stemy-ngx-utils.mjs +5639 -5633
  105. package/fesm2022/stemy-ngx-utils.mjs.map +1 -0
  106. package/{stemy-ngx-utils.d.ts → index.d.ts} +5 -5
  107. package/ng.mjs +5 -0
  108. package/ngx-utils/common-types.d.ts +378 -377
  109. package/ngx-utils/components/dynamic-table/dynamic-table.component.d.ts +56 -55
  110. package/ngx-utils/components/pagination-menu/pagination-menu.component.d.ts +31 -31
  111. package/ngx-utils/components/unordered-list/unordered-list.component.d.ts +25 -25
  112. package/ngx-utils/directives/async-method.base.d.ts +19 -19
  113. package/ngx-utils/directives/async-method.directive.d.ts +9 -9
  114. package/ngx-utils/directives/background.directive.d.ts +17 -17
  115. package/ngx-utils/directives/dynamic-table-template.directive.d.ts +11 -11
  116. package/ngx-utils/directives/global-template.directive.d.ts +13 -13
  117. package/ngx-utils/directives/icon.directive.d.ts +23 -23
  118. package/ngx-utils/directives/ngx-template-outlet.directive.d.ts +17 -17
  119. package/ngx-utils/directives/pagination-item.directive.d.ts +15 -15
  120. package/ngx-utils/directives/pagination.directive.d.ts +25 -25
  121. package/ngx-utils/directives/resource-if.directive.d.ts +19 -19
  122. package/ngx-utils/directives/sticky-class.directive.d.ts +15 -15
  123. package/ngx-utils/directives/sticky.directive.d.ts +19 -19
  124. package/ngx-utils/directives/unordered-list-item.directive.d.ts +28 -28
  125. package/ngx-utils/directives/unordered-list-template.directive.d.ts +11 -11
  126. package/ngx-utils/ngx-utils.imports.d.ts +74 -0
  127. package/ngx-utils/ngx-utils.module.d.ts +58 -58
  128. package/ngx-utils/pipes/chunk.pipe.d.ts +7 -7
  129. package/ngx-utils/pipes/entries.pipe.d.ts +12 -12
  130. package/ngx-utils/pipes/extra-item-properties.pipe.d.ts +8 -8
  131. package/ngx-utils/pipes/filter.pipe.d.ts +8 -8
  132. package/ngx-utils/pipes/find.pipe.d.ts +8 -8
  133. package/ngx-utils/pipes/format-number.pipe.d.ts +10 -10
  134. package/ngx-utils/pipes/get-offset.pipe.d.ts +7 -7
  135. package/ngx-utils/pipes/get-type.pipe.d.ts +7 -7
  136. package/ngx-utils/pipes/global-template.pipe.d.ts +16 -16
  137. package/ngx-utils/pipes/group-by.pipe.d.ts +8 -8
  138. package/ngx-utils/pipes/is-type.pipe.d.ts +7 -7
  139. package/ngx-utils/pipes/join.pipe.d.ts +7 -7
  140. package/ngx-utils/pipes/keys.pipe.d.ts +7 -7
  141. package/ngx-utils/pipes/map.pipe.d.ts +8 -8
  142. package/ngx-utils/pipes/max.pipe.d.ts +7 -7
  143. package/ngx-utils/pipes/min.pipe.d.ts +7 -7
  144. package/ngx-utils/pipes/pop.pipe.d.ts +7 -7
  145. package/ngx-utils/pipes/reduce.pipe.d.ts +8 -8
  146. package/ngx-utils/pipes/remap.pipe.d.ts +7 -7
  147. package/ngx-utils/pipes/replace.pipe.d.ts +7 -7
  148. package/ngx-utils/pipes/reverse.pipe.d.ts +7 -7
  149. package/ngx-utils/pipes/round.pipe.d.ts +10 -10
  150. package/ngx-utils/pipes/safe-html.pipe.d.ts +10 -10
  151. package/ngx-utils/pipes/shift.pipe.d.ts +7 -7
  152. package/ngx-utils/pipes/split.pipe.d.ts +7 -7
  153. package/ngx-utils/pipes/translate.pipe.d.ts +19 -19
  154. package/ngx-utils/pipes/values.pipe.d.ts +7 -7
  155. package/ngx-utils/plugins/resize-event.plugin.d.ts +17 -17
  156. package/ngx-utils/plugins/scroll-event.plugin.d.ts +13 -13
  157. package/ngx-utils/services/acl.service.d.ts +14 -14
  158. package/ngx-utils/services/api.service.d.ts +17 -17
  159. package/ngx-utils/services/auth.service.d.ts +8 -8
  160. package/ngx-utils/services/base-http.client.d.ts +15 -15
  161. package/ngx-utils/services/base-http.service.d.ts +53 -53
  162. package/ngx-utils/services/config.service.d.ts +30 -30
  163. package/ngx-utils/services/error-handler.service.d.ts +13 -13
  164. package/ngx-utils/services/events.service.d.ts +14 -14
  165. package/ngx-utils/services/formatter.service.d.ts +15 -15
  166. package/ngx-utils/services/global-template.service.d.ts +19 -19
  167. package/ngx-utils/services/icon.service.d.ts +13 -13
  168. package/ngx-utils/services/language.service.d.ts +21 -21
  169. package/ngx-utils/services/local-http.service.d.ts +14 -14
  170. package/ngx-utils/services/open-api.service.d.ts +11 -11
  171. package/ngx-utils/services/promise.service.d.ts +19 -19
  172. package/ngx-utils/services/state.service.d.ts +49 -49
  173. package/ngx-utils/services/static-language.service.d.ts +46 -46
  174. package/ngx-utils/services/storage.service.d.ts +15 -15
  175. package/ngx-utils/services/toaster.service.d.ts +13 -13
  176. package/ngx-utils/services/translated-url.serializer.d.ts +19 -19
  177. package/ngx-utils/services/universal.service.d.ts +28 -28
  178. package/ngx-utils/services/wasm.service.d.ts +25 -25
  179. package/ngx-utils/utils/ajax-request-handler.d.ts +11 -11
  180. package/ngx-utils/utils/array.utils.d.ts +11 -11
  181. package/ngx-utils/utils/auth.guard.d.ts +29 -29
  182. package/ngx-utils/utils/cached-factory.d.ts +2 -2
  183. package/ngx-utils/utils/canvas.utils.d.ts +13 -13
  184. package/ngx-utils/utils/date.utils.d.ts +8 -8
  185. package/ngx-utils/utils/file-system.d.ts +16 -16
  186. package/ngx-utils/utils/file.utils.d.ts +14 -14
  187. package/ngx-utils/utils/generic-value.d.ts +8 -8
  188. package/ngx-utils/utils/geometry.d.ts +50 -50
  189. package/ngx-utils/utils/initializer.d.ts +12 -12
  190. package/ngx-utils/utils/jsonfn.d.ts +6 -6
  191. package/ngx-utils/utils/loader.utils.d.ts +7 -7
  192. package/ngx-utils/utils/math.utils.d.ts +8 -8
  193. package/ngx-utils/utils/object.utils.d.ts +35 -35
  194. package/ngx-utils/utils/observable.utils.d.ts +13 -13
  195. package/ngx-utils/utils/reflect.utils.d.ts +9 -9
  196. package/ngx-utils/utils/set.utils.d.ts +4 -4
  197. package/ngx-utils/utils/string.utils.d.ts +9 -9
  198. package/ngx-utils/utils/timer.utils.d.ts +6 -6
  199. package/ngx-utils/utils/unique.utils.d.ts +5 -5
  200. package/ngx-utils/utils/vector.d.ts +23 -23
  201. package/ngx-utils/utils/wasi.d.ts +26 -26
  202. package/ngx-utils/utils/wasm-worker-proxy.d.ts +17 -17
  203. package/ngx-utils/utils/with-options-provider.d.ts +3 -3
  204. package/package.json +21 -29
  205. package/public_api.d.ts +93 -93
  206. package/tools/config.d.ts +7 -7
  207. package/tools/{stemy-ngx-utils-tools.d.ts → index.d.ts} +5 -5
  208. package/tools/public_api.d.ts +1 -1
  209. package/esm2020/ngx-utils/common-types.mjs +0 -123
  210. package/esm2020/ngx-utils/components/dynamic-table/dynamic-table.component.mjs +0 -207
  211. package/esm2020/ngx-utils/components/pagination-menu/pagination-menu.component.mjs +0 -101
  212. package/esm2020/ngx-utils/components/unordered-list/unordered-list.component.mjs +0 -65
  213. package/esm2020/ngx-utils/directives/async-method.base.mjs +0 -82
  214. package/esm2020/ngx-utils/directives/background.directive.mjs +0 -51
  215. package/esm2020/ngx-utils/directives/icon.directive.mjs +0 -67
  216. package/esm2020/ngx-utils/directives/ngx-template-outlet.directive.mjs +0 -90
  217. package/esm2020/ngx-utils/directives/pagination.directive.mjs +0 -84
  218. package/esm2020/ngx-utils/directives/resource-if.directive.mjs +0 -50
  219. package/esm2020/ngx-utils/directives/sticky-class.directive.mjs +0 -34
  220. package/esm2020/ngx-utils/ngx-utils.module.mjs +0 -204
  221. package/esm2020/ngx-utils/pipes/chunk.pipe.mjs +0 -25
  222. package/esm2020/ngx-utils/pipes/filter.pipe.mjs +0 -37
  223. package/esm2020/ngx-utils/pipes/find.pipe.mjs +0 -29
  224. package/esm2020/ngx-utils/pipes/global-template.pipe.mjs +0 -41
  225. package/esm2020/ngx-utils/pipes/remap.pipe.mjs +0 -32
  226. package/esm2020/ngx-utils/pipes/reverse.pipe.mjs +0 -24
  227. package/esm2020/ngx-utils/pipes/safe-html.pipe.mjs +0 -34
  228. package/esm2020/ngx-utils/pipes/translate.pipe.mjs +0 -86
  229. package/esm2020/ngx-utils/plugins/resize-event.plugin.mjs +0 -78
  230. package/esm2020/ngx-utils/plugins/scroll-event.plugin.mjs +0 -39
  231. package/esm2020/ngx-utils/services/api.service.mjs +0 -42
  232. package/esm2020/ngx-utils/services/base-http.client.mjs +0 -47
  233. package/esm2020/ngx-utils/services/base-http.service.mjs +0 -305
  234. package/esm2020/ngx-utils/services/config.service.mjs +0 -130
  235. package/esm2020/ngx-utils/services/error-handler.service.mjs +0 -49
  236. package/esm2020/ngx-utils/services/global-template.service.mjs +0 -37
  237. package/esm2020/ngx-utils/services/icon.service.mjs +0 -26
  238. package/esm2020/ngx-utils/services/language.service.mjs +0 -124
  239. package/esm2020/ngx-utils/services/state.service.mjs +0 -173
  240. package/esm2020/ngx-utils/services/storage.service.mjs +0 -49
  241. package/esm2020/ngx-utils/services/translated-url.serializer.mjs +0 -73
  242. package/esm2020/ngx-utils/services/universal.service.mjs +0 -81
  243. package/esm2020/ngx-utils/utils/ajax-request-handler.mjs +0 -40
  244. package/esm2020/ngx-utils/utils/array.utils.mjs +0 -107
  245. package/esm2020/ngx-utils/utils/auth.guard.mjs +0 -181
  246. package/esm2020/ngx-utils/utils/cached-factory.mjs +0 -30
  247. package/esm2020/ngx-utils/utils/canvas.utils.mjs +0 -388
  248. package/esm2020/ngx-utils/utils/date.utils.mjs +0 -29
  249. package/esm2020/ngx-utils/utils/file.utils.mjs +0 -90
  250. package/esm2020/ngx-utils/utils/geometry.mjs +0 -132
  251. package/esm2020/ngx-utils/utils/jsonfn.mjs +0 -45
  252. package/esm2020/ngx-utils/utils/loader.utils.mjs +0 -55
  253. package/esm2020/ngx-utils/utils/math.utils.mjs +0 -44
  254. package/esm2020/ngx-utils/utils/object.utils.mjs +0 -320
  255. package/esm2020/ngx-utils/utils/reflect.utils.mjs +0 -33
  256. package/esm2020/ngx-utils/utils/set.utils.mjs +0 -20
  257. package/esm2020/ngx-utils/utils/string.utils.mjs +0 -41
  258. package/esm2020/ngx-utils/utils/unique.utils.mjs +0 -24
  259. package/esm2020/ngx-utils/utils/vector.mjs +0 -77
  260. package/esm2020/ngx-utils/utils/wasi.mjs +0 -159
  261. package/esm2020/ngx-utils/utils/wasm-worker-proxy.mjs +0 -99
  262. package/esm2020/tools/config.mjs +0 -71
  263. package/fesm2015/stemy-ngx-utils-tools.mjs +0 -77
  264. package/fesm2015/stemy-ngx-utils.mjs +0 -5891
  265. package/fesm2015/stemy-ngx-utils.mjs.map +0 -1
  266. package/fesm2020/stemy-ngx-utils-tools.mjs.map +0 -1
  267. package/fesm2020/stemy-ngx-utils.mjs.map +0 -1
  268. package/tools/package.json +0 -10
@@ -1,377 +1,378 @@
1
- import { EventEmitter, InjectionToken, Injector, NgZone, Provider, TemplateRef, Type } from "@angular/core";
2
- import { HttpClient, HttpErrorResponse, HttpHeaders } from "@angular/common/http";
3
- import { ActivatedRouteSnapshot, Data, Route, UrlTree } from "@angular/router";
4
- import { Request } from "express";
5
- export interface TypedFactoryProvider<T> {
6
- useFactory: (...args: any[]) => T;
7
- deps: any[];
8
- }
9
- export interface TypedValueProvider<T> {
10
- useValue: T;
11
- }
12
- export declare type CachedProvider<T> = Type<T> | TypedFactoryProvider<T> | TypedValueProvider<T>;
13
- export declare type CachedFactory<T> = (injector: Injector) => ReadonlyArray<T>;
14
- export declare const OPTIONS_TOKEN: InjectionToken<unknown>;
15
- export interface IResolveFactory {
16
- func: Function;
17
- type?: any;
18
- params?: any[];
19
- }
20
- export declare class CanvasColor {
21
- r: number;
22
- g: number;
23
- b: number;
24
- a: number;
25
- constructor(r: number, g: number, b: number, a?: number);
26
- }
27
- export interface IIconService {
28
- isDisabled: boolean;
29
- iconsLoaded: EventEmitter<any>;
30
- getIcon(icon: string, activeIcon: string, active: boolean): Promise<string>;
31
- }
32
- export declare const ICON_SERVICE: InjectionToken<IIconService>;
33
- export interface ITranslation {
34
- lang: string;
35
- translation: string;
36
- }
37
- export interface ITranslations {
38
- [key: string]: any;
39
- }
40
- export interface ILanguageSetting {
41
- unavailable?: string;
42
- [key: string]: string | boolean | number;
43
- }
44
- export interface ILanguageSettings {
45
- languages: string[];
46
- devLanguages: string[];
47
- defaultLanguage: string;
48
- settings?: {
49
- [lang: string]: ILanguageSetting;
50
- };
51
- }
52
- export interface ILanguageService {
53
- currentLanguage: string;
54
- editLanguage: string;
55
- disableTranslations: boolean;
56
- defaultLanguage: string;
57
- dictionary: ITranslations;
58
- readonly languages: ReadonlyArray<string>;
59
- readonly httpClient: HttpClient;
60
- replaceLanguages(languages: string[]): void;
61
- addLanguages(languages: string[]): void;
62
- getTranslationSync(key: string, params?: any): string;
63
- getTranslation(key: string, params?: any): Promise<string>;
64
- getTranslations(...keys: string[]): Promise<ITranslations>;
65
- getTranslationFromObject(translations: ITranslations, params?: any, lang?: string): string;
66
- getTranslationFromArray(translations: ITranslation[], params?: any, lang?: string): string;
67
- }
68
- export declare const LANGUAGE_SERVICE: InjectionToken<ILanguageService>;
69
- export interface IAuthService {
70
- isAuthenticated: boolean;
71
- userChanged: EventEmitter<any>;
72
- checkAuthenticated(): Promise<boolean>;
73
- }
74
- export declare type RouteValidator = (auth: IAuthService, route?: IRoute, next?: ActivatedRouteSnapshot) => Promise<boolean>;
75
- export interface IRouteData extends Data {
76
- returnState?: string[];
77
- guards?: Array<IResolveFactory | RouteValidator>;
78
- }
79
- export interface IRoute extends Route {
80
- data?: IRouteData;
81
- }
82
- export declare const AUTH_SERVICE: InjectionToken<IAuthService>;
83
- export interface IAclComponent {
84
- onUserInitialized(): void;
85
- onUserChanged(): void;
86
- }
87
- export interface IRouteStateInfo {
88
- route: IRoute;
89
- guard: any;
90
- dirty: boolean;
91
- first: boolean;
92
- component?: any;
93
- }
94
- export declare type NavigationUrlParam = any[] | string | UrlTree;
95
- export declare enum StorageMode {
96
- Local = 0,
97
- Session = 1
98
- }
99
- export interface IToasterService {
100
- error(message: string, params?: any, title?: string): void;
101
- info(message: string, params?: any, title?: string): void;
102
- success(message: string, params?: any, title?: string): void;
103
- warning(message: string, params?: any, title?: string): void;
104
- }
105
- export declare const TOASTER_SERVICE: InjectionToken<IToasterService>;
106
- export interface IPromiseService {
107
- zone: NgZone;
108
- count: number;
109
- onChanged: EventEmitter<number>;
110
- create<T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
111
- all(promises: Promise<any>[]): Promise<any>;
112
- resolve<T>(value: T | PromiseLike<T>): Promise<T>;
113
- reject<T>(value: T | PromiseLike<T>): Promise<T>;
114
- }
115
- export declare const PROMISE_SERVICE: InjectionToken<IPromiseService>;
116
- export declare type TypedArray = Int8Array | Int16Array | Int32Array | Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array | Float32Array | Float64Array;
117
- export interface IWasmExports {
118
- HEAP8: Int8Array;
119
- HEAP16: Int16Array;
120
- HEAP32: Int32Array;
121
- HEAPU8: Uint8Array;
122
- HEAPU16: Uint16Array;
123
- HEAPU32: Uint32Array;
124
- HEAPF32: Float32Array;
125
- HEAPF64: Float64Array;
126
- memory: WebAssembly.Memory;
127
- [key: string]: any;
128
- }
129
- export interface IWasi {
130
- instantiate(bytes: ArrayBuffer): Promise<IWasmExports>;
131
- }
132
- export interface IWasm {
133
- writeArrayToMemory(array: TypedArray): Promise<number> | number;
134
- readArrayFromMemory<T = TypedArray>(pointer: number, array: T): Promise<T> | T;
135
- [key: string]: (...args: any[]) => any;
136
- }
137
- export interface IWasmAsync {
138
- writeArrayToMemory(array: TypedArray): Promise<number>;
139
- readArrayFromMemory<T = TypedArray>(pointer: number, array: T): T;
140
- [key: string]: (...args: any[]) => Promise<any>;
141
- }
142
- export declare const WASI_IMPLEMENTATION: InjectionToken<Type<IWasi>>;
143
- export interface IAsyncMessage {
144
- message: string;
145
- context?: any;
146
- }
147
- export declare type AsyncMethod = (context?: any) => Promise<IAsyncMessage>;
148
- export interface UnorderedListTemplate {
149
- readonly type: string;
150
- readonly selector: string;
151
- readonly templateRef: TemplateRef<any>;
152
- }
153
- export interface UnorderedListTemplates {
154
- [type: string]: TemplateRef<any>;
155
- }
156
- export declare type UnorderedListStyle = "table" | "list";
157
- export interface IAjaxRequestDetails {
158
- request: XMLHttpRequest;
159
- method: string;
160
- url: string;
161
- }
162
- export declare type AjaxRequestCallback = (details: IAjaxRequestDetails, params: any) => void;
163
- export declare type ScriptType = "text/javascript" | "module";
164
- export interface IScriptPromises {
165
- [src: string]: Promise<HTMLScriptElement>;
166
- }
167
- export interface IStylePromises {
168
- [src: string]: Promise<HTMLLinkElement>;
169
- }
170
- export interface ISearchObservable {
171
- search: string;
172
- getSearchResults(token: string): Promise<any[]>;
173
- }
174
- export declare function FactoryDependencies(...dependencies: Array<InjectionToken<any> | Provider>): MethodDecorator;
175
- export declare function ObjectType(type: string): ClassDecorator;
176
- export interface ITimer {
177
- id?: any;
178
- func?: Function;
179
- time?: number;
180
- run?: () => void;
181
- set?: (func: Function, time: number) => void;
182
- clear?: () => void;
183
- }
184
- export interface IExtraProperties {
185
- [prop: string]: any;
186
- }
187
- export interface IGroupMap {
188
- [column: string]: any;
189
- }
190
- export declare type TranslationQuery = string | ITranslations | ITranslation[];
191
- export interface IPageInfo {
192
- text: string;
193
- number: number;
194
- active: boolean;
195
- }
196
- export interface IPaginationData {
197
- total: number;
198
- items: any[];
199
- meta?: any;
200
- }
201
- export declare type PaginationDataLoader = (page: number, itemsPerPage: number) => Promise<IPaginationData>;
202
- export declare class PaginationItemContext {
203
- item: any;
204
- parallelItem: any;
205
- count: number;
206
- index: number;
207
- dataIndex: number;
208
- constructor(item: any, parallelItem: any, count: number, index: number, dataIndex: number);
209
- get first(): boolean;
210
- get last(): boolean;
211
- get even(): boolean;
212
- get odd(): boolean;
213
- get row(): any;
214
- get parallelRow(): any;
215
- filter(filterRx: RegExp): boolean;
216
- }
217
- export interface IHttpHeaders {
218
- [header: string]: string | string[];
219
- }
220
- export interface IHttpParams {
221
- [key: string]: any;
222
- }
223
- export interface IRequestOptions {
224
- method?: string;
225
- body?: any;
226
- headers?: IHttpHeaders | HttpHeaders;
227
- originalHeaders?: IHttpHeaders;
228
- params?: IHttpParams;
229
- observe?: "body" | "response";
230
- reportProgress?: boolean;
231
- responseType?: "arraybuffer" | "blob" | "json" | "text";
232
- withCredentials?: boolean;
233
- timeout?: number;
234
- }
235
- export interface IIssueContext {
236
- url: string;
237
- }
238
- export interface IProgress {
239
- percentage?: number;
240
- loaded?: number;
241
- total?: number;
242
- }
243
- export declare type ProgressListener = (progress: IProgress) => void;
244
- export declare type PromiseExecutor = (resolve: (value?: any | PromiseLike<any>) => void, reject: (reason?: any) => void) => void;
245
- export declare class HttpPromise extends Promise<any> {
246
- protected rejectHandler: (reason?: HttpErrorResponse) => void;
247
- protected hasRejectHandler: boolean;
248
- protected attachCount: number;
249
- protected runCount: number;
250
- constructor(rejectHandler: (reason?: HttpErrorResponse) => void, executor: PromiseExecutor);
251
- then<TResult1, TResult2>(onFulfilled?: ((value: any) => (PromiseLike<TResult1> | TResult1)) | null | undefined, onRejected?: ((reason: HttpErrorResponse) => (PromiseLike<TResult2> | TResult2)) | null | undefined): Promise<TResult1 | TResult2>;
252
- catch<TResult = never>(onRejected?: ((reason: HttpErrorResponse) => (PromiseLike<TResult> | TResult)) | null | undefined): Promise<any | TResult>;
253
- }
254
- export interface IHttpService {
255
- language: ILanguageService;
256
- url(url: string): string;
257
- makeListParams(page: number, itemsPerPage: number, orderBy?: string, orderDescending?: boolean, filter?: string): IHttpParams;
258
- }
259
- export declare const EXPRESS_REQUEST: InjectionToken<Request>;
260
- export interface IApiService extends IHttpService {
261
- cache: any;
262
- client: HttpClient;
263
- get(url: string, options?: IRequestOptions): Promise<any>;
264
- delete(url: string, options?: IRequestOptions): Promise<any>;
265
- post(url: string, body?: any, options?: IRequestOptions): Promise<any>;
266
- put(url: string, body?: any, options?: IRequestOptions): Promise<any>;
267
- patch(url: string, body?: any, options?: IRequestOptions): Promise<any>;
268
- upload(url: string, body: any, listener?: ProgressListener, options?: IRequestOptions): Promise<any>;
269
- list(url: string, params: IHttpParams): Promise<IPaginationData>;
270
- }
271
- export declare const API_SERVICE: InjectionToken<IApiService>;
272
- export interface IOpenApiSchemaProperty {
273
- id: string;
274
- type?: string;
275
- format?: string;
276
- column?: boolean;
277
- additionalProperties?: any;
278
- $ref?: string;
279
- allOf?: ReadonlyArray<{
280
- $ref?: string;
281
- }>;
282
- items?: IOpenApiSchemaProperty;
283
- enum?: string[];
284
- [key: string]: any;
285
- }
286
- export interface IOpenApiSchema {
287
- properties: {
288
- [name: string]: IOpenApiSchemaProperty;
289
- };
290
- required: string[];
291
- }
292
- export interface IOpenApiSchemas {
293
- [name: string]: IOpenApiSchema;
294
- }
295
- export interface ITableOrders {
296
- [column: string]: string;
297
- }
298
- export interface ITableColumn {
299
- title?: string;
300
- sort?: string;
301
- filter?: boolean;
302
- [key: string]: any;
303
- }
304
- export interface ITableColumns {
305
- [column: string]: ITableColumn;
306
- }
307
- export interface ITableTemplate {
308
- column: string | string[];
309
- pure: boolean;
310
- ref: TemplateRef<any>;
311
- }
312
- export interface ITableTemplates {
313
- [column: string]: ITableTemplate;
314
- }
315
- export interface ITableDataQuery {
316
- [column: string]: string;
317
- }
318
- export declare type TableDataLoader = (page: number, rowsPerPage: number, orderBy: string, orderDescending: boolean, filter: string, query: ITableDataQuery) => Promise<IPaginationData>;
319
- export declare class ResourceIfContext {
320
- resource: string;
321
- url: string;
322
- }
323
- export declare const APP_BASE_URL: InjectionToken<string>;
324
- export declare class IConfiguration {
325
- cdnUrl?: string;
326
- baseUrl?: string;
327
- baseDomain?: string;
328
- translationUrl?: string;
329
- [key: string]: any;
330
- }
331
- export interface IConfigService {
332
- readonly config: IConfiguration;
333
- readonly injector: Injector;
334
- readonly load: () => Promise<IConfiguration>;
335
- readonly rootElement: any;
336
- cloneRootElem(): any;
337
- prepareUrl(url: string, ending: string): string;
338
- getConfigValue(key: string): any;
339
- getQueryParameter(name: string, url?: string): string;
340
- }
341
- export declare const CONFIG_SERVICE: InjectionToken<IConfigService>;
342
- export declare const BASE_CONFIG: InjectionToken<IConfiguration>;
343
- export declare const SCRIPT_PARAMS: InjectionToken<any>;
344
- export declare const ROOT_ELEMENT: InjectionToken<HTMLElement>;
345
- export declare const RESIZE_DELAY: InjectionToken<number>;
346
- export declare type ResizeEventStrategy = "scroll" | "object";
347
- export declare const RESIZE_STRATEGY: InjectionToken<ResizeEventStrategy>;
348
- export declare type ErrorHandlerCallback = (error: string) => any;
349
- export declare const ERROR_HANDLER: InjectionToken<ErrorHandlerCallback>;
350
- export declare type GlobalComponentModifier = (component: any) => any;
351
- export interface IGlobalTemplates {
352
- readonly templatesUpdated: EventEmitter<void>;
353
- get(id: string, component?: any): TemplateRef<any>;
354
- add(id: string, template: TemplateRef<any>): void;
355
- remove(id: string): void;
356
- addComponentModifier(id: string, modifier: GlobalComponentModifier): void;
357
- }
358
- export declare const GLOBAL_TEMPLATES: InjectionToken<ErrorHandlerCallback>;
359
- export declare type AppInitializerFunc = () => Promise<void> | void;
360
- export interface IModuleConfig {
361
- apiService?: Type<IApiService>;
362
- authService?: Type<IAuthService>;
363
- iconService?: Type<IIconService>;
364
- languageService?: Type<ILanguageService>;
365
- toasterService?: Type<IToasterService>;
366
- promiseService?: Type<IPromiseService>;
367
- configService?: Type<IConfigService>;
368
- globalTemplates?: Type<IGlobalTemplates>;
369
- wasiImplementation?: Type<IWasi>;
370
- initializeApp?: (injector: Injector) => AppInitializerFunc;
371
- baseUrl?: (injector: Injector) => string;
372
- resizeDelay?: number;
373
- resizeStrategy?: ResizeEventStrategy;
374
- }
375
- export declare class ValuedPromise<T> extends Promise<T> {
376
- value: T;
377
- }
1
+ import { EventEmitter, InjectionToken, Injector, NgZone, Provider, TemplateRef, Type } from "@angular/core";
2
+ import { HttpClient, HttpErrorResponse, HttpHeaders } from "@angular/common/http";
3
+ import { ActivatedRouteSnapshot, Data, Route, UrlTree } from "@angular/router";
4
+ import { Request } from "express";
5
+ export interface TypedFactoryProvider<T> {
6
+ useFactory: (...args: any[]) => T;
7
+ deps: any[];
8
+ }
9
+ export interface TypedValueProvider<T> {
10
+ useValue: T;
11
+ }
12
+ export type CachedProvider<T> = Type<T> | TypedFactoryProvider<T> | TypedValueProvider<T>;
13
+ export type CachedFactory<T> = (injector: Injector) => ReadonlyArray<T>;
14
+ export declare const OPTIONS_TOKEN: InjectionToken<unknown>;
15
+ export interface IResolveFactory {
16
+ func: Function;
17
+ type?: any;
18
+ params?: any[];
19
+ }
20
+ export declare class CanvasColor {
21
+ r: number;
22
+ g: number;
23
+ b: number;
24
+ a: number;
25
+ constructor(r: number, g: number, b: number, a?: number);
26
+ }
27
+ export interface IIconService {
28
+ isDisabled: boolean;
29
+ iconsLoaded: EventEmitter<any>;
30
+ getIcon(icon: string, activeIcon: string, active: boolean): Promise<string>;
31
+ }
32
+ export declare const ICON_SERVICE: InjectionToken<IIconService>;
33
+ export interface ITranslation {
34
+ lang: string;
35
+ translation: string;
36
+ }
37
+ export interface ITranslations {
38
+ [key: string]: any;
39
+ }
40
+ export interface ILanguageSetting {
41
+ unavailable?: string;
42
+ [key: string]: string | boolean | number;
43
+ }
44
+ export interface ILanguageSettings {
45
+ languages: string[];
46
+ devLanguages: string[];
47
+ defaultLanguage: string;
48
+ settings?: {
49
+ [lang: string]: ILanguageSetting;
50
+ };
51
+ }
52
+ export interface ILanguageService {
53
+ currentLanguage: string;
54
+ editLanguage: string;
55
+ disableTranslations: boolean;
56
+ defaultLanguage: string;
57
+ dictionary: ITranslations;
58
+ readonly languages: ReadonlyArray<string>;
59
+ readonly httpClient: HttpClient;
60
+ replaceLanguages(languages: string[]): void;
61
+ addLanguages(languages: string[]): void;
62
+ getTranslationSync(key: string, params?: any): string;
63
+ getTranslation(key: string, params?: any): Promise<string>;
64
+ getTranslations(...keys: string[]): Promise<ITranslations>;
65
+ getTranslationFromObject(translations: ITranslations, params?: any, lang?: string): string;
66
+ getTranslationFromArray(translations: ITranslation[], params?: any, lang?: string): string;
67
+ }
68
+ export declare const LANGUAGE_SERVICE: InjectionToken<ILanguageService>;
69
+ export interface IAuthService {
70
+ isAuthenticated: boolean;
71
+ userChanged: EventEmitter<any>;
72
+ checkAuthenticated(): Promise<boolean>;
73
+ }
74
+ export type RouteValidator = (auth: IAuthService, route?: IRoute, next?: ActivatedRouteSnapshot) => Promise<boolean>;
75
+ export interface IRouteData extends Data {
76
+ returnState?: string[];
77
+ guards?: Array<IResolveFactory | RouteValidator>;
78
+ }
79
+ export interface IRoute extends Route {
80
+ data?: IRouteData;
81
+ }
82
+ export declare const AUTH_SERVICE: InjectionToken<IAuthService>;
83
+ export interface IAclComponent {
84
+ onUserInitialized(): void;
85
+ onUserChanged(): void;
86
+ }
87
+ export interface IRouteStateInfo {
88
+ route: IRoute;
89
+ guard: any;
90
+ dirty: boolean;
91
+ first: boolean;
92
+ component?: any;
93
+ }
94
+ export type NavigationUrlParam = any[] | string | UrlTree;
95
+ export declare enum StorageMode {
96
+ Local = 0,
97
+ Session = 1
98
+ }
99
+ export interface IToasterService {
100
+ error(message: string, params?: any, title?: string): void;
101
+ info(message: string, params?: any, title?: string): void;
102
+ success(message: string, params?: any, title?: string): void;
103
+ warning(message: string, params?: any, title?: string): void;
104
+ }
105
+ export declare const TOASTER_SERVICE: InjectionToken<IToasterService>;
106
+ export interface IPromiseService {
107
+ zone: NgZone;
108
+ count: number;
109
+ onChanged: EventEmitter<number>;
110
+ create<T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
111
+ all(promises: Promise<any>[]): Promise<any>;
112
+ resolve<T>(value: T | PromiseLike<T>): Promise<T>;
113
+ reject<T>(value: T | PromiseLike<T>): Promise<T>;
114
+ }
115
+ export declare const PROMISE_SERVICE: InjectionToken<IPromiseService>;
116
+ export type TypedArray = Int8Array | Int16Array | Int32Array | Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array | Float32Array | Float64Array;
117
+ export interface IWasmExports {
118
+ HEAP8: Int8Array;
119
+ HEAP16: Int16Array;
120
+ HEAP32: Int32Array;
121
+ HEAPU8: Uint8Array;
122
+ HEAPU16: Uint16Array;
123
+ HEAPU32: Uint32Array;
124
+ HEAPF32: Float32Array;
125
+ HEAPF64: Float64Array;
126
+ memory: WebAssembly.Memory;
127
+ [key: string]: any;
128
+ }
129
+ export interface IWasi {
130
+ instantiate(bytes: ArrayBuffer): Promise<IWasmExports>;
131
+ }
132
+ export interface IWasm {
133
+ writeArrayToMemory(array: TypedArray): Promise<number> | number;
134
+ readArrayFromMemory<T = TypedArray>(pointer: number, array: T): Promise<T> | T;
135
+ [key: string]: (...args: any[]) => any;
136
+ }
137
+ export interface IWasmAsync {
138
+ writeArrayToMemory(array: TypedArray): Promise<number>;
139
+ readArrayFromMemory<T = TypedArray>(pointer: number, array: T): T;
140
+ [key: string]: (...args: any[]) => Promise<any>;
141
+ }
142
+ export declare const WASI_IMPLEMENTATION: InjectionToken<Type<IWasi>>;
143
+ export interface IAsyncMessage {
144
+ message: string;
145
+ context?: any;
146
+ }
147
+ export type AsyncMethod = (context?: any) => Promise<IAsyncMessage>;
148
+ export interface UnorderedListTemplate {
149
+ readonly type: string;
150
+ readonly selector: string;
151
+ readonly templateRef: TemplateRef<any>;
152
+ }
153
+ export interface UnorderedListTemplates {
154
+ [type: string]: TemplateRef<any>;
155
+ }
156
+ export type UnorderedListStyle = "table" | "list";
157
+ export interface IAjaxRequestDetails {
158
+ request: XMLHttpRequest;
159
+ method: string;
160
+ url: string;
161
+ }
162
+ export type AjaxRequestCallback = (details: IAjaxRequestDetails, params: any) => void;
163
+ export type ScriptType = "text/javascript" | "module";
164
+ export interface IScriptPromises {
165
+ [src: string]: Promise<HTMLScriptElement>;
166
+ }
167
+ export interface IStylePromises {
168
+ [src: string]: Promise<HTMLLinkElement>;
169
+ }
170
+ export interface ISearchObservable {
171
+ search: string;
172
+ getSearchResults(token: string): Promise<any[]>;
173
+ }
174
+ export declare function FactoryDependencies(...dependencies: Array<InjectionToken<any> | Provider>): MethodDecorator;
175
+ export declare function ObjectType(type: string): ClassDecorator;
176
+ export interface ITimer {
177
+ id?: any;
178
+ func?: Function;
179
+ time?: number;
180
+ run?: () => void;
181
+ set?: (func: Function, time: number) => void;
182
+ clear?: () => void;
183
+ }
184
+ export interface IExtraProperties {
185
+ [prop: string]: any;
186
+ }
187
+ export interface IGroupMap {
188
+ [column: string]: any;
189
+ }
190
+ export type TranslationQuery = string | ITranslations | ITranslation[];
191
+ export interface IPageInfo {
192
+ text: string;
193
+ number: number;
194
+ active: boolean;
195
+ }
196
+ export interface IPaginationData {
197
+ total: number;
198
+ items: any[];
199
+ meta?: any;
200
+ }
201
+ export type PaginationDataLoader = (page: number, itemsPerPage: number) => Promise<IPaginationData>;
202
+ export declare class PaginationItemContext {
203
+ item: any;
204
+ parallelItem: any;
205
+ count: number;
206
+ index: number;
207
+ dataIndex: number;
208
+ constructor(item: any, parallelItem: any, count: number, index: number, dataIndex: number);
209
+ get first(): boolean;
210
+ get last(): boolean;
211
+ get even(): boolean;
212
+ get odd(): boolean;
213
+ get row(): any;
214
+ get parallelRow(): any;
215
+ filter(filterRx: RegExp): boolean;
216
+ }
217
+ export interface IHttpHeaders {
218
+ [header: string]: string | string[];
219
+ }
220
+ export interface IHttpParams {
221
+ [key: string]: any;
222
+ }
223
+ export interface IRequestOptions {
224
+ method?: string;
225
+ body?: any;
226
+ headers?: IHttpHeaders | HttpHeaders;
227
+ originalHeaders?: IHttpHeaders;
228
+ params?: IHttpParams;
229
+ observe?: "body" | "response";
230
+ reportProgress?: boolean;
231
+ responseType?: "arraybuffer" | "blob" | "json" | "text";
232
+ withCredentials?: boolean;
233
+ timeout?: number;
234
+ }
235
+ export interface IIssueContext {
236
+ url: string;
237
+ }
238
+ export interface IProgress {
239
+ percentage?: number;
240
+ loaded?: number;
241
+ total?: number;
242
+ }
243
+ export type ProgressListener = (progress: IProgress) => void;
244
+ export type PromiseExecutor = (resolve: (value?: any | PromiseLike<any>) => void, reject: (reason?: any) => void) => void;
245
+ export declare class HttpPromise extends Promise<any> {
246
+ protected rejectHandler: (reason?: HttpErrorResponse) => void;
247
+ protected hasRejectHandler: boolean;
248
+ protected attachCount: number;
249
+ protected runCount: number;
250
+ constructor(rejectHandler: (reason?: HttpErrorResponse) => void, executor: PromiseExecutor);
251
+ then<TResult1, TResult2>(onFulfilled?: ((value: any) => (PromiseLike<TResult1> | TResult1)) | null | undefined, onRejected?: ((reason: HttpErrorResponse) => (PromiseLike<TResult2> | TResult2)) | null | undefined): Promise<TResult1 | TResult2>;
252
+ catch<TResult = never>(onRejected?: ((reason: HttpErrorResponse) => (PromiseLike<TResult> | TResult)) | null | undefined): Promise<any | TResult>;
253
+ }
254
+ export interface IHttpService {
255
+ language: ILanguageService;
256
+ url(url: string): string;
257
+ makeListParams(page: number, itemsPerPage: number, orderBy?: string, orderDescending?: boolean, filter?: string): IHttpParams;
258
+ }
259
+ export declare const EXPRESS_REQUEST: InjectionToken<Request>;
260
+ export interface IApiService extends IHttpService {
261
+ cache: any;
262
+ client: HttpClient;
263
+ get(url: string, options?: IRequestOptions): Promise<any>;
264
+ delete(url: string, options?: IRequestOptions): Promise<any>;
265
+ post(url: string, body?: any, options?: IRequestOptions): Promise<any>;
266
+ put(url: string, body?: any, options?: IRequestOptions): Promise<any>;
267
+ patch(url: string, body?: any, options?: IRequestOptions): Promise<any>;
268
+ upload(url: string, body: any, listener?: ProgressListener, options?: IRequestOptions): Promise<any>;
269
+ list(url: string, params: IHttpParams): Promise<IPaginationData>;
270
+ }
271
+ export declare const API_SERVICE: InjectionToken<IApiService>;
272
+ export interface IOpenApiSchemaProperty {
273
+ id: string;
274
+ type?: string;
275
+ format?: string;
276
+ column?: boolean;
277
+ additionalProperties?: any;
278
+ $ref?: string;
279
+ allOf?: ReadonlyArray<{
280
+ $ref?: string;
281
+ }>;
282
+ items?: IOpenApiSchemaProperty;
283
+ enum?: string[];
284
+ [key: string]: any;
285
+ }
286
+ export interface IOpenApiSchema {
287
+ properties: {
288
+ [name: string]: IOpenApiSchemaProperty;
289
+ };
290
+ required: string[];
291
+ }
292
+ export interface IOpenApiSchemas {
293
+ [name: string]: IOpenApiSchema;
294
+ }
295
+ export interface ITableOrders {
296
+ [column: string]: string;
297
+ }
298
+ export interface ITableColumn {
299
+ title?: string;
300
+ sort?: string;
301
+ filter?: boolean;
302
+ [key: string]: any;
303
+ }
304
+ export interface ITableColumns {
305
+ [column: string]: ITableColumn;
306
+ }
307
+ export type TableColumns = ITableOrders | ITableColumns | string[];
308
+ export interface ITableTemplate {
309
+ column: string | string[];
310
+ pure: boolean;
311
+ ref: TemplateRef<any>;
312
+ }
313
+ export interface ITableTemplates {
314
+ [column: string]: ITableTemplate;
315
+ }
316
+ export interface ITableDataQuery {
317
+ [column: string]: string;
318
+ }
319
+ export type TableDataLoader = (page: number, rowsPerPage: number, orderBy: string, orderDescending: boolean, filter: string, query: ITableDataQuery) => Promise<IPaginationData>;
320
+ export declare class ResourceIfContext {
321
+ resource: string;
322
+ url: string;
323
+ }
324
+ export declare const APP_BASE_URL: InjectionToken<string>;
325
+ export declare class IConfiguration {
326
+ cdnUrl?: string;
327
+ baseUrl?: string;
328
+ baseDomain?: string;
329
+ translationUrl?: string;
330
+ [key: string]: any;
331
+ }
332
+ export interface IConfigService {
333
+ readonly config: IConfiguration;
334
+ readonly injector: Injector;
335
+ readonly load: () => Promise<IConfiguration>;
336
+ readonly rootElement: any;
337
+ cloneRootElem(): any;
338
+ prepareUrl(url: string, ending: string): string;
339
+ getConfigValue(key: string): any;
340
+ getQueryParameter(name: string, url?: string): string;
341
+ }
342
+ export declare const CONFIG_SERVICE: InjectionToken<IConfigService>;
343
+ export declare const BASE_CONFIG: InjectionToken<IConfiguration>;
344
+ export declare const SCRIPT_PARAMS: InjectionToken<any>;
345
+ export declare const ROOT_ELEMENT: InjectionToken<HTMLElement>;
346
+ export declare const RESIZE_DELAY: InjectionToken<number>;
347
+ export type ResizeEventStrategy = "scroll" | "object";
348
+ export declare const RESIZE_STRATEGY: InjectionToken<ResizeEventStrategy>;
349
+ export type ErrorHandlerCallback = (error: string) => any;
350
+ export declare const ERROR_HANDLER: InjectionToken<ErrorHandlerCallback>;
351
+ export type GlobalComponentModifier = (component: any) => any;
352
+ export interface IGlobalTemplates {
353
+ readonly templatesUpdated: EventEmitter<void>;
354
+ get(id: string, component?: any): TemplateRef<any>;
355
+ add(id: string, template: TemplateRef<any>): void;
356
+ remove(id: string): void;
357
+ addComponentModifier(id: string, modifier: GlobalComponentModifier): void;
358
+ }
359
+ export declare const GLOBAL_TEMPLATES: InjectionToken<ErrorHandlerCallback>;
360
+ export type AppInitializerFunc = () => Promise<void> | void;
361
+ export interface IModuleConfig {
362
+ apiService?: Type<IApiService>;
363
+ authService?: Type<IAuthService>;
364
+ iconService?: Type<IIconService>;
365
+ languageService?: Type<ILanguageService>;
366
+ toasterService?: Type<IToasterService>;
367
+ promiseService?: Type<IPromiseService>;
368
+ configService?: Type<IConfigService>;
369
+ globalTemplates?: Type<IGlobalTemplates>;
370
+ wasiImplementation?: Type<IWasi>;
371
+ initializeApp?: (injector: Injector) => AppInitializerFunc;
372
+ baseUrl?: (injector: Injector) => string;
373
+ resizeDelay?: number;
374
+ resizeStrategy?: ResizeEventStrategy;
375
+ }
376
+ export declare class ValuedPromise<T> extends Promise<T> {
377
+ value: T;
378
+ }