ets-fe-ng-sdk 19.0.116 → 20.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 (243) hide show
  1. package/fesm2022/ets-fe-ng-sdk.mjs +1611 -1632
  2. package/fesm2022/ets-fe-ng-sdk.mjs.map +1 -1
  3. package/index.d.ts +14526 -3
  4. package/package.json +1 -1
  5. package/environments/environment.d.ts +0 -11
  6. package/lib/Reusables/reusable-comps/find-item/find-item.component.d.ts +0 -258
  7. package/lib/Reusables/reusable-comps/find-item/find-item.model.d.ts +0 -13
  8. package/lib/Reusables/reusable-comps/find-item/find-item.service.d.ts +0 -38
  9. package/lib/Reusables/reusable-comps/watermark/watermark.component.d.ts +0 -22
  10. package/lib/Reusables/reusable-pages/extra-pages/extra-pages-routing.module.d.ts +0 -7
  11. package/lib/Reusables/reusable-pages/extra-pages/extra-pages.module.d.ts +0 -8
  12. package/lib/Reusables/reusable-pages/logger/logger-routing.module.d.ts +0 -7
  13. package/lib/Reusables/reusable-pages/logger/logger.component.d.ts +0 -71
  14. package/lib/Reusables/reusable-pages/logger/logger.interface.d.ts +0 -73
  15. package/lib/Reusables/reusable-pages/logger/logger.module.d.ts +0 -11
  16. package/lib/Reusables/reusable-pages/logger/logger.service.d.ts +0 -81
  17. package/lib/Reusables/reusable-pages/page-not-found/page-not-found.component.d.ts +0 -28
  18. package/lib/Reusables/reusable-pages/reset/reset-routing.module.d.ts +0 -7
  19. package/lib/Reusables/reusable-pages/reset/reset.component.d.ts +0 -13
  20. package/lib/Reusables/reusable-pages/reset/reset.module.d.ts +0 -8
  21. package/lib/Reusables/reusable-pages/robot/robot-routing.module.d.ts +0 -7
  22. package/lib/Reusables/reusable-pages/robot/robot.component.d.ts +0 -8
  23. package/lib/Reusables/reusable-pages/robot/robot.module.d.ts +0 -9
  24. package/lib/Reusables/reusable-pages/timeout-tester/timeout-tester-routing.module.d.ts +0 -7
  25. package/lib/Reusables/reusable-pages/timeout-tester/timeout-tester.component.d.ts +0 -23
  26. package/lib/Reusables/reusable-pages/timeout-tester/timeout-tester.module.d.ts +0 -11
  27. package/lib/Reusables/reusable-pages/user-activity/ua-extras/user-activity.model.d.ts +0 -56
  28. package/lib/Reusables/reusable-pages/user-activity/ua-extras/user-activity.service.d.ts +0 -13
  29. package/lib/Reusables/reusable-pages/version/version-routing.module.d.ts +0 -7
  30. package/lib/Reusables/reusable-pages/version/version.component.d.ts +0 -13
  31. package/lib/Reusables/reusable-pages/version/version.module.d.ts +0 -10
  32. package/lib/Reusables/reusable-pages/version/version.service.d.ts +0 -19
  33. package/lib/Services/Interceptors/authentication-interceptor.service.d.ts +0 -27
  34. package/lib/Services/Interceptors/global-error-handler.service.d.ts +0 -28
  35. package/lib/Services/Interceptors/logger-interceptor.service.d.ts +0 -33
  36. package/lib/Services/Interceptors/request-loader-interceptor.service.d.ts +0 -24
  37. package/lib/Services/Interceptors/request-timeout.service.d.ts +0 -32
  38. package/lib/Services/api.service.d.ts +0 -255
  39. package/lib/Services/app.service.d.ts +0 -112
  40. package/lib/Services/base.effect.d.ts +0 -24
  41. package/lib/Services/base.facade.service.d.ts +0 -42
  42. package/lib/Services/base.service.d.ts +0 -81
  43. package/lib/Services/cache/cache-updater.service.d.ts +0 -10
  44. package/lib/Services/cache/cache.service.d.ts +0 -17
  45. package/lib/Services/cache/local-cache.service.d.ts +0 -17
  46. package/lib/Services/cache/saver.service.d.ts +0 -34
  47. package/lib/Services/debouncer.service.d.ts +0 -66
  48. package/lib/Services/error-reporter.service.d.ts +0 -56
  49. package/lib/Services/htmler.service.d.ts +0 -18
  50. package/lib/Services/input.service.d.ts +0 -55
  51. package/lib/Services/number-format.service.d.ts +0 -10
  52. package/lib/Services/object-size.service.d.ts +0 -14
  53. package/lib/Services/page-loader.service.d.ts +0 -62
  54. package/lib/Services/page.service.d.ts +0 -57
  55. package/lib/Services/route.service.d.ts +0 -75
  56. package/lib/Services/service-worker/check-for-update.service.d.ts +0 -33
  57. package/lib/Services/service-worker/handle-unrecoverable-state.service.d.ts +0 -24
  58. package/lib/Services/service-worker/log-update.service.d.ts +0 -20
  59. package/lib/Services/service-worker/prompt-update.service.d.ts +0 -43
  60. package/lib/Services/service-worker/service-worker.service.d.ts +0 -40
  61. package/lib/Services/storage.service.d.ts +0 -115
  62. package/lib/Services/theme.service.d.ts +0 -29
  63. package/lib/Services/translation.service.d.ts +0 -182
  64. package/lib/Services/utility.service.d.ts +0 -989
  65. package/lib/Services/window-security.service.d.ts +0 -10
  66. package/lib/Shared/classes/page-loader.class.d.ts +0 -41
  67. package/lib/Shared/components/add-item/add-item.component.d.ts +0 -31
  68. package/lib/Shared/components/autocomplete/autocomplete-td-rf/autocomplete-td-rf.component.d.ts +0 -75
  69. package/lib/Shared/components/autocomplete/autocomplete.component.d.ts +0 -81
  70. package/lib/Shared/components/autocomplete/autocomplete.module.d.ts +0 -6
  71. package/lib/Shared/components/autocomplete/autocomplete.service.d.ts +0 -58
  72. package/lib/Shared/components/btn/btn-lg/btn-lg.component.d.ts +0 -55
  73. package/lib/Shared/components/btn/btn-link/btn-link.component.d.ts +0 -21
  74. package/lib/Shared/components/btn/btn.component.d.ts +0 -216
  75. package/lib/Shared/components/btn/btn.model.d.ts +0 -135
  76. package/lib/Shared/components/btn/btn.module.d.ts +0 -4
  77. package/lib/Shared/components/btn/btn.service.d.ts +0 -80
  78. package/lib/Shared/components/btn/details-btn/details-btn.component.d.ts +0 -17
  79. package/lib/Shared/components/btn/details-btn/details-btn.module.d.ts +0 -1
  80. package/lib/Shared/components/card/card.component.d.ts +0 -22
  81. package/lib/Shared/components/card/card.module.d.ts +0 -1
  82. package/lib/Shared/components/confirm-dialog/confirm-dialog.component.d.ts +0 -36
  83. package/lib/Shared/components/confirm-dialog/confirm-dialog.module.d.ts +0 -1
  84. package/lib/Shared/components/confirm-dialog/confirm-dialog.service.d.ts +0 -21
  85. package/lib/Shared/components/core/button/button.component.d.ts +0 -28
  86. package/lib/Shared/components/core/button/components.module.d.ts +0 -1
  87. package/lib/Shared/components/documents-name-display/documents-name-display.component.d.ts +0 -44
  88. package/lib/Shared/components/documents-name-display/documents-name-display.model.d.ts +0 -6
  89. package/lib/Shared/components/documents-name-display/documents-name-display.module.d.ts +0 -1
  90. package/lib/Shared/components/editable-text-case/editable-text-case.component.d.ts +0 -63
  91. package/lib/Shared/components/editable-text-case/editable-text-case.module.d.ts +0 -1
  92. package/lib/Shared/components/export-table/export-table.component.d.ts +0 -61
  93. package/lib/Shared/components/export-table/export-table.module.d.ts +0 -1
  94. package/lib/Shared/components/fields-to-display/fields-to-display.component.d.ts +0 -66
  95. package/lib/Shared/components/file-upload/file-upload.component.d.ts +0 -96
  96. package/lib/Shared/components/form-error/form-error.component.d.ts +0 -73
  97. package/lib/Shared/components/form-generator/form-generated-value/form-generated-value.component.d.ts +0 -95
  98. package/lib/Shared/components/form-generator/form-generator.base.component.d.ts +0 -234
  99. package/lib/Shared/components/form-generator/form-generator.component.d.ts +0 -207
  100. package/lib/Shared/components/form-generator/form-generator.module.d.ts +0 -1
  101. package/lib/Shared/components/form-generator/form-generator.service.d.ts +0 -45
  102. package/lib/Shared/components/form-link/form-link.component.d.ts +0 -47
  103. package/lib/Shared/components/form-link/form-link.module.d.ts +0 -1
  104. package/lib/Shared/components/form-tab-headers/form-tab-headers.component.d.ts +0 -13
  105. package/lib/Shared/components/form-tab-headers/form-tab-headers.module.d.ts +0 -1
  106. package/lib/Shared/components/idler/idler.component.d.ts +0 -41
  107. package/lib/Shared/components/idler/idler.service.d.ts +0 -71
  108. package/lib/Shared/components/index-comp-layout/index-comp-layout.component.d.ts +0 -93
  109. package/lib/Shared/components/info-dialog/info-dialog.component.d.ts +0 -67
  110. package/lib/Shared/components/info-dialog/info-dialog.module.d.ts +0 -4
  111. package/lib/Shared/components/info-dialog/info-dialog.service.d.ts +0 -13
  112. package/lib/Shared/components/info-icon/info-icon.component.d.ts +0 -17
  113. package/lib/Shared/components/info-icon/info-icon.module.d.ts +0 -1
  114. package/lib/Shared/components/input/date-input/date-input.component.d.ts +0 -137
  115. package/lib/Shared/components/input/day-hour-min-input/day-hour-min-input.component.d.ts +0 -64
  116. package/lib/Shared/components/input/input-base.component.d.ts +0 -264
  117. package/lib/Shared/components/input/input-basic.component.d.ts +0 -96
  118. package/lib/Shared/components/input/input-control.component.d.ts +0 -28
  119. package/lib/Shared/components/input/input-label/input-label.component.d.ts +0 -49
  120. package/lib/Shared/components/input/input-label/input-label.module.d.ts +0 -1
  121. package/lib/Shared/components/input/input-shared.module.d.ts +0 -30
  122. package/lib/Shared/components/input/input-td-rf.component.d.ts +0 -58
  123. package/lib/Shared/components/input/input.component.d.ts +0 -82
  124. package/lib/Shared/components/input/input.model.d.ts +0 -16
  125. package/lib/Shared/components/input/input.module.d.ts +0 -23
  126. package/lib/Shared/components/input/input.service.d.ts +0 -189
  127. package/lib/Shared/components/input/inputs-pipes.pipe.d.ts +0 -61
  128. package/lib/Shared/components/input/inputs.component.d.ts +0 -11
  129. package/lib/Shared/components/input/validation-message/validation-message.component.d.ts +0 -75
  130. package/lib/Shared/components/input/validation-message/validation-message.module.d.ts +0 -1
  131. package/lib/Shared/components/input/validation-message/validation-message.service.d.ts +0 -73
  132. package/lib/Shared/components/input/year-month-td-rf/year-month-td-rf.component.d.ts +0 -38
  133. package/lib/Shared/components/input-NgModel/input-ngmodel.component.d.ts +0 -165
  134. package/lib/Shared/components/input-NgModel/input-ngmodel.module.d.ts +0 -1
  135. package/lib/Shared/components/input-NgModel/validation-message-ngmodel/validation-message-ngmodel.component.d.ts +0 -50
  136. package/lib/Shared/components/input-table/input-table.component.d.ts +0 -76
  137. package/lib/Shared/components/input-table/input-table.model.d.ts +0 -23
  138. package/lib/Shared/components/input-table/input-table.service.d.ts +0 -8
  139. package/lib/Shared/components/label/label.component.d.ts +0 -25
  140. package/lib/Shared/components/label/label.module.d.ts +0 -1
  141. package/lib/Shared/components/loader/loader-animations/blinking-blocks/blinking-blocks.component.d.ts +0 -5
  142. package/lib/Shared/components/loader/loader-animations/bouncing-ball/bouncing-ball.component.d.ts +0 -5
  143. package/lib/Shared/components/loader/loader-animations/fading-bars/fading-bars.component.d.ts +0 -5
  144. package/lib/Shared/components/loader/loader-animations/fading-circles/fading-circles.component.d.ts +0 -5
  145. package/lib/Shared/components/loader/loader-animations/ring-ripples/ring-ripples.component.d.ts +0 -5
  146. package/lib/Shared/components/loader/loader.component.d.ts +0 -88
  147. package/lib/Shared/components/loader/loader.module.d.ts +0 -1
  148. package/lib/Shared/components/loader/spinner.component.d.ts +0 -8
  149. package/lib/Shared/components/modal/modal-body.directive.d.ts +0 -27
  150. package/lib/Shared/components/modal/modal-footer.directive.d.ts +0 -27
  151. package/lib/Shared/components/modal/modal.component.d.ts +0 -154
  152. package/lib/Shared/components/modal/modal.model.d.ts +0 -21
  153. package/lib/Shared/components/modal/modal.module.d.ts +0 -1
  154. package/lib/Shared/components/modal-components/modal.components.d.ts +0 -7
  155. package/lib/Shared/components/modal-form/modal-form.component.d.ts +0 -79
  156. package/lib/Shared/components/modal-form/modal-form.module.d.ts +0 -1
  157. package/lib/Shared/components/modal-header/modal-header.component.d.ts +0 -35
  158. package/lib/Shared/components/modal-header/modal-header.module.d.ts +0 -1
  159. package/lib/Shared/components/narration-history-comp/narration-history-comp.component.d.ts +0 -34
  160. package/lib/Shared/components/notifications/notifications.component.d.ts +0 -10
  161. package/lib/Shared/components/notifications/notifications.service.d.ts +0 -9
  162. package/lib/Shared/components/page-center-body/page-center-body.component.d.ts +0 -5
  163. package/lib/Shared/components/page-template/page-template.component.d.ts +0 -181
  164. package/lib/Shared/components/page-template/page-template.module.d.ts +0 -1
  165. package/lib/Shared/components/page-to-component/page-to-component.component.d.ts +0 -70
  166. package/lib/Shared/components/page-to-component/page-to-component.directive.d.ts +0 -8
  167. package/lib/Shared/components/page-to-component/page-to-component.module.d.ts +0 -1
  168. package/lib/Shared/components/page-to-component/page-to-component.service.d.ts +0 -33
  169. package/lib/Shared/components/paginator/paginator.component.d.ts +0 -57
  170. package/lib/Shared/components/phone-number/phone-number.component.d.ts +0 -129
  171. package/lib/Shared/components/phone-number/phone-number.service.d.ts +0 -33
  172. package/lib/Shared/components/rich-text-editor/rich-text-editor.component.d.ts +0 -94
  173. package/lib/Shared/components/rich-text-editor-rf/rich-text-editor-rf.component.d.ts +0 -41
  174. package/lib/Shared/components/row-actions/row-actions.component.d.ts +0 -74
  175. package/lib/Shared/components/row-actions/row-actions.module.d.ts +0 -1
  176. package/lib/Shared/components/svg-icon/svg-icon.component.d.ts +0 -20
  177. package/lib/Shared/components/svg-icon/svg-icon.model.d.ts +0 -1
  178. package/lib/Shared/components/svg-icon/svg-icon.module.d.ts +0 -1
  179. package/lib/Shared/components/svg-icon/svg-icon.service.d.ts +0 -11
  180. package/lib/Shared/components/table/table-base.component.d.ts +0 -240
  181. package/lib/Shared/components/table/table-https/table-https.component.d.ts +0 -168
  182. package/lib/Shared/components/table/table-input/table-input-row/table-input-row.component.d.ts +0 -54
  183. package/lib/Shared/components/table/table-input/table-input.component.d.ts +0 -251
  184. package/lib/Shared/components/table/table-input/table-input.model.d.ts +0 -21
  185. package/lib/Shared/components/table/table-plain/table-plain.component.d.ts +0 -118
  186. package/lib/Shared/components/table/table-plain.service.d.ts +0 -52
  187. package/lib/Shared/components/table/table.pipe.d.ts +0 -87
  188. package/lib/Shared/components/text/text.component.d.ts +0 -6
  189. package/lib/Shared/components/text/text.module.d.ts +0 -1
  190. package/lib/Shared/components/text-area-modal/text-area-modal.component.d.ts +0 -27
  191. package/lib/Shared/components/text-area-modal/text-area-modal.service.d.ts +0 -10
  192. package/lib/Shared/components/text-case-1/text-case-1.component.d.ts +0 -53
  193. package/lib/Shared/components/text-case-1/text-case-1.module.d.ts +0 -1
  194. package/lib/Shared/components/text-case-2/text-case-2.component.d.ts +0 -219
  195. package/lib/Shared/components/text-case-2/text-case-2.module.d.ts +0 -1
  196. package/lib/Shared/components/text-case-2/text-case.service.d.ts +0 -23
  197. package/lib/Shared/components/text-case-input/text-case-input.component.d.ts +0 -9
  198. package/lib/Shared/components/text-case-input/text-case-input.module.d.ts +0 -1
  199. package/lib/Shared/components/toggle-input-form/toggle-input-form.component.d.ts +0 -138
  200. package/lib/Shared/components/toggle-input-form/toggle-input-form.model.d.ts +0 -27
  201. package/lib/Shared/components/translator-case/translator-case.component.d.ts +0 -6
  202. package/lib/Shared/components/vertical-nav/vertical-nav.component.d.ts +0 -101
  203. package/lib/Shared/components/view-form-buttons/view-form-buttons.component.d.ts +0 -23
  204. package/lib/Shared/components/view-form-buttons/view-form-buttons.module.d.ts +0 -1
  205. package/lib/Shared/components/webcam-media/webcam-media.component.d.ts +0 -162
  206. package/lib/Shared/components/webcam-media/webcam-media.model.d.ts +0 -7
  207. package/lib/Shared/directives/commafy-number.directive.d.ts +0 -104
  208. package/lib/Shared/directives/drag-drop-file-upload.directive.d.ts +0 -50
  209. package/lib/Shared/directives/form-invalid-class.directive.d.ts +0 -49
  210. package/lib/Shared/directives/index.directive.d.ts +0 -369
  211. package/lib/Shared/directives/input-formatter.directive.d.ts +0 -166
  212. package/lib/Shared/directives/integer-only.directive.d.ts +0 -60
  213. package/lib/Shared/directives/mHref.directive.d.ts +0 -6
  214. package/lib/Shared/directives/native-event-listeners.directive.d.ts +0 -228
  215. package/lib/Shared/directives/negative-number-only.directive.d.ts +0 -30
  216. package/lib/Shared/directives/responsiveness.directive.d.ts +0 -157
  217. package/lib/Shared/directives/translator.directive.d.ts +0 -45
  218. package/lib/Shared/injection-tokens/index.injection-tokens.d.ts +0 -3
  219. package/lib/Shared/models/IMenuItem.d.ts +0 -247
  220. package/lib/Shared/models/RouteItem.class.d.ts +0 -120
  221. package/lib/Shared/models/environment.model.d.ts +0 -204
  222. package/lib/Shared/models/form-schema.model.d.ts +0 -1
  223. package/lib/Shared/models/form.class.d.ts +0 -175
  224. package/lib/Shared/models/index.model.d.ts +0 -938
  225. package/lib/Shared/models/translator.model.d.ts +0 -27
  226. package/lib/Shared/pipes/form-invalid-class.pipe.d.ts +0 -28
  227. package/lib/Shared/pipes/number.pipe.d.ts +0 -15
  228. package/lib/Shared/pipes/paginator.pipe.d.ts +0 -28
  229. package/lib/Shared/pipes/translate.pipe.d.ts +0 -104
  230. package/lib/Shared/pipes/utility.pipe.d.ts +0 -715
  231. package/lib/Shared/prototypes/prototypes.d.ts +0 -201
  232. package/lib/Shared/shared.module.d.ts +0 -105
  233. package/lib/authentication/web-user/web-user-authentication.guard.d.ts +0 -15
  234. package/lib/authentication/web-user/web-user-authentication.interceptor.d.ts +0 -17
  235. package/lib/authentication/web-user/web-user-authentication.model.d.ts +0 -34
  236. package/lib/authentication/web-user/web-user-authentication.service.d.ts +0 -91
  237. package/lib/authentication/web-user/web-user-forgot-password.component.d.ts +0 -46
  238. package/lib/authentication/web-user/web-user-login.component.d.ts +0 -45
  239. package/lib/authentication/web-user/web-user-reset-password.component.d.ts +0 -59
  240. package/lib/configs/base-functions.d.ts +0 -141
  241. package/lib/configs/index.config.d.ts +0 -95
  242. package/lib/configs/validation-messages.config.d.ts +0 -20
  243. package/public-api.d.ts +0 -215
@@ -1,255 +0,0 @@
1
- import { HttpClient, HttpErrorResponse, HttpHeaders } from '@angular/common/http';
2
- import { Observable } from 'rxjs';
3
- import { ICodeDescription, ICodeTitle, IObjectLiteral } from '../Shared/models/index.model';
4
- import { CacheService } from './cache/cache.service';
5
- import { LocalCacheService } from './cache/local-cache.service';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * Interface for API response structure
9
- */
10
- export interface IResponse {
11
- message: string;
12
- result: any;
13
- status: 'success' | 'error' | 'failure';
14
- statusCode: 'SM000' | 'SM001' | 'SM002' | 'SM003';
15
- }
16
- /**
17
- * Service for handling API requests with caching capabilities
18
- * Provides methods for GET, POST, PUT, PATCH and DELETE HTTP requests
19
- */
20
- export declare class ApiService {
21
- private showRoutes;
22
- private get headers();
23
- protected get fileHeaders(): {
24
- enctype: string;
25
- };
26
- baseURL: string;
27
- private retryCount;
28
- http: HttpClient;
29
- cacheS: CacheService;
30
- lCacheS: LocalCacheService;
31
- constructor();
32
- /**
33
- * Logs API route information if showRoutes is enabled
34
- * @param method HTTP method (get, post, put, delete)
35
- * @param route API endpoint
36
- * @param extras Additional parameters to log
37
- */
38
- private logRoutes;
39
- /**
40
- * Handles HTTP request errors
41
- * @param err HTTP error response
42
- * @returns Observable error
43
- */
44
- protected handleRequestError: (err: HttpErrorResponse) => Observable<never>;
45
- /**
46
- * Combines two HttpHeaders objects into one
47
- * @param headers1 First HttpHeaders object
48
- * @param headers2 Second HttpHeaders object
49
- * @returns Combined HttpHeaders
50
- */
51
- protected concatenateHeaders: (headers1: HttpHeaders, headers2: HttpHeaders) => HttpHeaders;
52
- /**
53
- * Performs a PATCH request
54
- * @param route API endpoint
55
- * @param body Request body
56
- * @param extras Extra configurations for the request
57
- * @returns Observable of type T
58
- */
59
- patch<T = any>(route: string, body?: any, extras?: IExtras): Observable<T>;
60
- optionsHandler: (extras?: IExtras) => {};
61
- /**
62
- * Performs a POST request
63
- * @param route API endpoint
64
- * @param body Request body
65
- * @param extras Extra configurations for the request
66
- * @returns Observable of type T
67
- */
68
- post<T = any>(route: string, body?: any, extras?: IExtras): Observable<T>;
69
- /**
70
- * Performs a POST request with FormData
71
- * @param route API endpoint
72
- * @param body FormData to send
73
- * @param extras Extra configurations for the request
74
- * @returns Observable of type T
75
- */
76
- postFile<T = any>(route: string, body: FormData, extras?: IExtras): Observable<T>;
77
- /**
78
- * Performs a POST request with FormData and endorsement header
79
- * @param route API endpoint
80
- * @param body FormData to send
81
- * @returns Observable of type T
82
- */
83
- postFileWithEndorsement<T = any>(route: string, body: FormData): Observable<T>;
84
- /**
85
- * Performs a POST request with text content type
86
- * @param route API endpoint
87
- * @param body Request body
88
- * @param extras Extra configurations for the request
89
- * @returns Observable of string
90
- */
91
- postString(route: string, body?: any, extras?: IExtras): Observable<string>;
92
- /**
93
- * Performs a POST request with text content type and local caching
94
- * @param route API endpoint
95
- * @param body String body to send
96
- * @returns Observable of string
97
- */
98
- postStringWithLocalCache(route: string, body: string): Observable<string>;
99
- /**
100
- * Perform a GET request
101
- * @param route API endpoint
102
- * @param parameters Object to convert into queryparams
103
- * @param extras Extra configurations for the request
104
- * @returns
105
- */
106
- get: <T = any>(route: string, parameters?: IObjectLiteral, extras?: IExtras) => Observable<T>;
107
- /**
108
- * Fetches code data and sorts it
109
- * @param route API endpoint
110
- * @returns Observable of sorted code data
111
- */
112
- getCodes: <T extends ICodeTitle | ICodeDescription = ICodeTitle<string> & ICodeDescription>(route: string) => Observable<T[]>;
113
- /**
114
- * Performs a GET request with text response type
115
- * @param route API endpoint
116
- * @param parameters Query parameters
117
- * @param extras Extra configurations for the request
118
- * @returns Observable of type T (defaults to string)
119
- */
120
- getText: <T = string>(route: string, parameters?: {
121
- [field: string]: string | number | boolean;
122
- }, extras?: IExtras) => Observable<T>;
123
- /**
124
- * Performs a GET request for file download
125
- * @param route API endpoint
126
- * @param parameters Query parameters
127
- * @param extras Extra configurations for the request
128
- * @returns Observable of type T (defaults to string)
129
- */
130
- getFile: <T = string>(route: string, parameters?: {
131
- [field: string]: string | number | boolean;
132
- }, extras?: IExtras) => Observable<T>;
133
- /**
134
- * Performs a GET request with a request body
135
- * @param route API endpoint
136
- * @param body Request body
137
- * @param extras Extra configurations for the request
138
- * @returns Observable of type T
139
- */
140
- getWithBody: <T = any>(route: string, body?: any, extras?: IExtras) => Observable<T>;
141
- /**
142
- * Gets data from local cache or fetches it if not available
143
- * @param route API endpoint
144
- * @param parameters Query parameters
145
- * @param extras Extra configurations for the request
146
- * @returns Observable of type T
147
- */
148
- getFromlocal: <T = any>(route: string, parameters?: Object, extras?: IExtras) => Observable<T>;
149
- /**
150
- * Gets data with local caching - returns cached data first, then updates with fresh data
151
- * @param route API endpoint
152
- * @param parameters Query parameters
153
- * @param extras Extra configurations for the request
154
- * @returns Observable of type T
155
- */
156
- getWithLocalCache: <T = any>(route: string, parameters?: Object, extras?: IExtras) => Observable<T>;
157
- /**
158
- * Gets data from memory cache or fetches it if not available
159
- * @param route API endpoint
160
- * @param parameters Query parameters
161
- * @param extras Extra configurations for the request
162
- * @returns Observable of type T
163
- */
164
- getFromMemory: <T>(route: string, parameters?: Object, extras?: IExtras) => Observable<T>;
165
- /**
166
- * Converts an object to URL query parameters
167
- * @param parameters Object to convert
168
- * @returns Query parameter string
169
- */
170
- getRequestParse(parameters?: Object): string;
171
- /**
172
- * Performs a PUT request
173
- * @param route API endpoint
174
- * @param body Request body
175
- * @param extras Extra configurations for the request
176
- * @returns Observable of type T
177
- */
178
- put<T = any>(route: string, body?: any, extras?: IExtras): Observable<T>;
179
- /**
180
- * Performs a PUT request with FormData
181
- * @param route API endpoint
182
- * @param body FormData to send
183
- * @param extras Extra configurations for the request
184
- * @returns Observable of type T
185
- */
186
- putFile<T = any>(route: string, body: FormData, extras?: any): Observable<T>;
187
- /**
188
- * Performs a PUT request with FormData and endorsement header
189
- * @param route API endpoint
190
- * @param body FormData to send
191
- * @returns Observable of type T
192
- */
193
- putFileWithEndorsement<T = any>(route: string, body: FormData): Observable<T>;
194
- /**
195
- * Performs a DELETE request
196
- * @param route API endpoint
197
- * @param extras Extra configurations for the request
198
- * @returns Observable of type T
199
- */
200
- delete: <T = any>(route: string, extras?: IExtras) => Observable<any>;
201
- /**
202
- * Performs a DELETE request with a request body
203
- * @param route API endpoint
204
- * @param body Request body
205
- * @param extras Extra configurations for the request
206
- * @returns Observable of type T
207
- */
208
- deleteWithBody: <T = any>(route: string, body?: any, extras?: IExtras) => Observable<any>;
209
- /**
210
- * Performs a DELETE request with text response type
211
- * @param route API endpoint
212
- * @param extras Extra configurations for the request
213
- * @returns Observable of string
214
- */
215
- deleteText: (route: string, extras?: IExtras) => Observable<any>;
216
- /**
217
- * Sorts an array of objects by code property
218
- * @param data Array to sort
219
- * @returns Sorted array
220
- */
221
- sortCodes: <T extends {
222
- code: string;
223
- }>(data: T[]) => T[];
224
- objectToFormData(obj: IObjectLiteral): FormData;
225
- static ɵfac: i0.ɵɵFactoryDeclaration<ApiService, never>;
226
- static ɵprov: i0.ɵɵInjectableDeclaration<ApiService>;
227
- }
228
- /**
229
- * Interface for extra request configurations
230
- */
231
- interface IExtras {
232
- /**
233
- * Specify whether to use the endorsement header
234
- */
235
- useEndorsement?: boolean;
236
- /**
237
- * Report progress of the request
238
- */
239
- reportProgress?: boolean;
240
- /**
241
- * Specify the request options. The added options will be appended to the default options
242
- */
243
- options?: {
244
- headers?: HttpHeaders;
245
- [x: string]: any;
246
- };
247
- /**
248
- * Specify the request type. If the request type is queryParams, the body will be sent as query parameters
249
- */
250
- requestType?: 'queryParams';
251
- /**If true, the cache record will be recomputed after returning a result */
252
- refreshCache?: boolean;
253
- isReturningText?: boolean;
254
- }
255
- export {};
@@ -1,112 +0,0 @@
1
- import { Title } from '@angular/platform-browser';
2
- import { ESystem, ESystemBusLine, ISystem, IValueLabel } from '../Shared/models/index.model';
3
- import { ETSMenuItem } from '../Shared/models/IMenuItem';
4
- import { ETSTranslationService } from '@evolutics/translation';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * Core application service that manages system state, navigation menus, and UI theming.
8
- * @template TESystem - The system enum type (defaults to ESystem)
9
- * @template TESystemBusLine - The system bus line enum type (defaults to ESystemBusLine)
10
- * @template TMenuItem - The menu item type (defaults to ETSMenuItem)
11
- */
12
- export declare class AppService<TESystem = ESystem, TESystemBusLine = ESystemBusLine, TMenuItem = ETSMenuItem> {
13
- readonly titleS: Title;
14
- readonly translator: ETSTranslationService;
15
- /** Top-level navigation menu items */
16
- topMenu: TMenuItem[];
17
- /** Sub-menu items for the currently selected top menu */
18
- bottomMenu: TMenuItem[];
19
- private _currentTopMenu;
20
- /** Signal for the currently selected top menu item */
21
- readonly currentTopMenuSignal: import("@angular/core").WritableSignal<TMenuItem>;
22
- private _system;
23
- private _systemSignal;
24
- /** Computed signal that provides the current system */
25
- systemSignal: import("@angular/core").Signal<TESystem>;
26
- private _pageName;
27
- /** Computed signal that provides the current page name */
28
- readonly pageNameSignal: import("@angular/core").Signal<string>;
29
- /**
30
- * Gets the current system
31
- * @returns The current system
32
- */
33
- get system(): TESystem;
34
- /**
35
- * Sets the current system and updates related UI elements
36
- * @param value - The system to set as current
37
- */
38
- set system(value: TESystem);
39
- /**
40
- * Gets the currently selected top menu item
41
- * @returns The current top menu item
42
- */
43
- get currentTopMenu(): TMenuItem;
44
- /**
45
- * Sets the current top menu item and updates the bottom menu
46
- * @param value - The menu item to set as current
47
- */
48
- set currentTopMenu(value: TMenuItem);
49
- /**
50
- * Sets the current top menu based on the provided system
51
- * @param system - The system to find the corresponding menu item for
52
- */
53
- setCurrentTopMenu(system: TESystem): Promise<void>;
54
- /** Map of system metadata keyed by system enum value */
55
- systemMetadataMap: Map<TESystem, ISystem<ESystem, ESystemBusLine>>;
56
- /**
57
- * Gets the first available system from the environment configuration
58
- * @returns The first available system's metadata
59
- */
60
- get getFirstAvailableSystem(): ISystem<ESystem, ESystemBusLine>;
61
- /**
62
- * Gets the metadata for the current system
63
- * @returns The current system's metadata
64
- */
65
- get getCurrentSystemMetadata(): ISystem<ESystem, ESystemBusLine>;
66
- constructor();
67
- /**
68
- * Sets the default CSS class on the body element based on the first available system
69
- */
70
- setDefaultClass(): void;
71
- /**
72
- * Gets the bus line for the current system
73
- * @returns The current system's bus line
74
- */
75
- get busLine(): ESystemBusLine;
76
- /**
77
- * Gets the list of active systems filtered by environment configuration
78
- * @returns Array of active top menu items
79
- */
80
- get activeSystems(): TMenuItem[];
81
- /**
82
- * Checks if the current system has a bus line
83
- * @returns True if the current system has a bus line, false otherwise
84
- */
85
- get hasBusLine(): boolean;
86
- /**
87
- * Gets the current page name
88
- * @returns The current page name
89
- */
90
- get pageName(): string;
91
- /**
92
- * Sets the current page name and updates the document title
93
- * @param value - The page name to set
94
- */
95
- set pageName(value: string);
96
- /**
97
- * Updates the document title with the current page name
98
- * @param title - The title to set
99
- * @param translate - Whether to translate the title (defaults to true if translation is configured)
100
- */
101
- addTitle(title: string, translate?: boolean): void;
102
- /**
103
- * Sets the theme color meta tag based on the current system's color code
104
- */
105
- setMetaTheme(): void;
106
- /** Function to filter navigation menu items */
107
- filterNavMenuFunc: (value: TMenuItem) => boolean;
108
- /** Available bus lines for the application */
109
- busLines: IValueLabel<TESystemBusLine>[];
110
- static ɵfac: i0.ɵɵFactoryDeclaration<AppService<any, any, any>, never>;
111
- static ɵprov: i0.ɵɵInjectableDeclaration<AppService<any, any, any>>;
112
- }
@@ -1,24 +0,0 @@
1
- import { Actions } from '@ngrx/effects';
2
- import { Store } from '@ngrx/store';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Abstract base class for NgRx effects.
6
- *
7
- * Provides common functionality and dependencies for effect classes.
8
- * Extend this class to create specific effect implementations.
9
- */
10
- export declare abstract class BaseEffect {
11
- /**
12
- * Observable of all actions dispatched in the store.
13
- * Used to filter and respond to specific actions.
14
- */
15
- protected actions$: Actions<any>;
16
- /**
17
- * The NgRx store instance.
18
- * Provides access to the current state and allows dispatching actions.
19
- */
20
- protected store: Store<any>;
21
- constructor();
22
- static ɵfac: i0.ɵɵFactoryDeclaration<BaseEffect, never>;
23
- static ɵprov: i0.ɵɵInjectableDeclaration<BaseEffect>;
24
- }
@@ -1,42 +0,0 @@
1
- import { Action, ActionCreator, Store } from '@ngrx/store';
2
- import { Observable } from 'rxjs';
3
- import { Actions } from '@ngrx/effects';
4
- /**
5
- * Base service class that provides common NgRx functionality for facade services.
6
- * Handles dispatching actions and selecting state with additional utilities.
7
- */
8
- export declare abstract class BaseFacadeService {
9
- protected store: Store<any>;
10
- protected actions: Actions<any>;
11
- constructor();
12
- /**
13
- * Converts an NgRx action flow into a Promise.
14
- * Dispatches the provided action and returns a Promise that resolves with the success action's result
15
- * or rejects with the error action's error.
16
- *
17
- * @param dispatchFunc - The action to dispatch to initiate the flow
18
- * @param config - Configuration object containing success and error action creators
19
- * @param config.success - Action creator for the success action that contains the result
20
- * @param config.error - Action creator for the error action that contains the error
21
- * @returns Promise that resolves with the result of the success action or rejects with the error
22
- * @template T - The type of the result data
23
- */
24
- ngrxPromise<T>(dispatchFunc: Action<any>, config: {
25
- success: ActionCreator<string, (props: {
26
- result: T;
27
- }) => typeof props>;
28
- error: ActionCreator<string, (props: {
29
- error: any;
30
- }) => typeof props>;
31
- }): Promise<T>;
32
- /**
33
- * Selects data from the store and automatically dispatches an action if the selected data is empty.
34
- * Empty is defined as null, undefined, or an empty array.
35
- *
36
- * @param selector$ - Observable selector that retrieves data from the store
37
- * @param dispatchIfEmpty - Action to dispatch if the selected data is empty
38
- * @returns The original selector observable with added side effect for dispatching
39
- * @template T - The type of data being selected
40
- */
41
- protected select<T>(selector$: Observable<T>, dispatchIfEmpty: Action<any>): Observable<T>;
42
- }
@@ -1,81 +0,0 @@
1
- import { ApiService } from './api.service';
2
- import { IObjectLiteral } from '../Shared/models/index.model';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Base service that provides common HTTP operations with standardized URL formatting.
6
- * Extends this class to create specific API services with a consistent interface.
7
- */
8
- export declare class BaseService {
9
- /** API service for making HTTP requests */
10
- protected apiS: ApiService;
11
- /** Base URL for all API requests from this service */
12
- protected readonly baseURL: string;
13
- private _baseURLNoSlash;
14
- protected get baseURLNoSlash(): string;
15
- /**
16
- * Performs a POST request to the specified path
17
- * @param data - The payload to send in the request body
18
- * @param path - The path to append to the base URL
19
- * @returns An Observable of the response
20
- */
21
- protected post<T>(data?: any, path?: string | number): import("rxjs").Observable<T>;
22
- /**
23
- * Performs a PUT request to the specified path
24
- * @param data - The payload to send in the request body
25
- * @param path - The path to append to the base URL
26
- * @returns An Observable of the response
27
- */
28
- protected put<T>(data?: any, path?: string | number): import("rxjs").Observable<T>;
29
- /**
30
- * Performs a GET request to the specified path
31
- * @param path - The path to append to the base URL
32
- * @param query - Query parameters to include in the request
33
- * @returns An Observable of the response
34
- */
35
- protected get<T>(path?: string | number, query?: any): import("rxjs").Observable<T>;
36
- /**
37
- * Performs a DELETE request to the specified path
38
- * @param path - The path to append to the base URL
39
- * @param query - Query parameters or body payload for the request
40
- * @returns An Observable of the response
41
- */
42
- protected delete<T>(path?: string | number, query?: any): import("rxjs").Observable<any>;
43
- /**
44
- * Performs a DELETE request with a request body
45
- * @param path - The path to append to the base URL
46
- * @param body - The payload to send in the request body
47
- * @returns An Observable of the response
48
- */
49
- protected deleteWithBody<T>(path?: string, body?: any): import("rxjs").Observable<any>;
50
- /**
51
- * POST file with an Object literal as the paramater.
52
- *
53
- * The object literal gets converted to a formdata internally before posting.
54
- * @param path
55
- * @param body
56
- * @returns
57
- */
58
- protected postFile<T>(path: string, body: IObjectLiteral): import("rxjs").Observable<T>;
59
- /**
60
- * POST file with Formdata as the paramater
61
- * @param path
62
- * @param formData
63
- * @returns
64
- */
65
- protected postFileFD<T>(path: string, formData: FormData): import("rxjs").Observable<T>;
66
- /**
67
- * Performs a PUT request with FormData
68
- * @param path - The path to append to the base URL
69
- * @param body - The FormData to send in the request
70
- * @returns An Observable of the response
71
- */
72
- protected putFileFD<T>(path: string, body: FormData): import("rxjs").Observable<T>;
73
- /**
74
- * Formats a route by removing trailing slashes
75
- * @param route - The route to format
76
- * @returns The formatted route without trailing slash
77
- */
78
- formatRoute: (route: string) => string;
79
- static ɵfac: i0.ɵɵFactoryDeclaration<BaseService, never>;
80
- static ɵprov: i0.ɵɵInjectableDeclaration<BaseService>;
81
- }
@@ -1,10 +0,0 @@
1
- import { ApiService } from '../api.service';
2
- import { CacheService } from './cache.service';
3
- import * as i0 from "@angular/core";
4
- export declare class CacheUpdaterService {
5
- apiService: ApiService;
6
- constructor(apiService: ApiService);
7
- update: (cacheS: CacheService) => import("rxjs").Observable<import("rxjs").Subscription>;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<CacheUpdaterService, never>;
9
- static ɵprov: i0.ɵɵInjectableDeclaration<CacheUpdaterService>;
10
- }
@@ -1,17 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { UtilityService } from '../utility.service';
3
- import * as i0 from "@angular/core";
4
- export declare class CacheService {
5
- private _cache;
6
- readonly uS: UtilityService<any>;
7
- constructor();
8
- get cache(): {
9
- [x: string]: any;
10
- };
11
- has: (key: string) => boolean;
12
- getItem: <T>(key: string) => T;
13
- setItem<T>(key: string, data: T): void;
14
- getAndSet<T>(key: string, newValue?: T | Promise<T> | Observable<T>): Observable<T>;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<CacheService, never>;
16
- static ɵprov: i0.ɵɵInjectableDeclaration<CacheService>;
17
- }
@@ -1,17 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { ETSStorageService } from '../storage.service';
3
- import { CacheService } from './cache.service';
4
- import * as i0 from "@angular/core";
5
- export declare class LocalCacheService extends CacheService {
6
- private readonly cacheKey;
7
- private readonly cacheCreatedDateKey;
8
- private readonly validityDays;
9
- private readonly oneDayTimestamp;
10
- readonly sS: ETSStorageService;
11
- constructor();
12
- saveToLocal(): void;
13
- setItem<T>(key: string, data: T): void;
14
- getAndSet<T>(key: string, addFunc?: T | Promise<T> | Observable<T>): Observable<T>;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<LocalCacheService, never>;
16
- static ɵprov: i0.ɵɵInjectableDeclaration<LocalCacheService>;
17
- }
@@ -1,34 +0,0 @@
1
- import { StorageClass } from '../storage.service';
2
- import * as i0 from "@angular/core";
3
- export declare class SaverClass {
4
- private readonly itemName;
5
- private readonly storageKey;
6
- /**
7
- * Storage Service
8
- */
9
- storageService: StorageClass;
10
- /**
11
- *
12
- * @param itemName Field name of the item
13
- * @param storageKey The key used for the storage slot assigned to the item
14
- */
15
- constructor(itemName: string, storageKey: string);
16
- /**
17
- * Save Item to storage
18
- */
19
- saveToLocal(): void;
20
- /**
21
- * Get Item from storage
22
- */
23
- getFromLocal(): void;
24
- }
25
- export declare class SaverService extends SaverClass {
26
- /**
27
- *
28
- * @param itemName Field name of the item
29
- * @param storageKey The key used for the storage slot assigned to the item
30
- */
31
- constructor(itemName: string, storageKey: string);
32
- static ɵfac: i0.ɵɵFactoryDeclaration<SaverService, never>;
33
- static ɵprov: i0.ɵɵInjectableDeclaration<SaverService>;
34
- }
@@ -1,66 +0,0 @@
1
- import { BehaviorSubject } from 'rxjs';
2
- import { CustomValidationError } from '../Shared/models/index.model';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Service for debouncing function calls to prevent excessive executions
6
- * when triggered multiple times in quick succession.
7
- */
8
- export declare class DebouncerService {
9
- /**
10
- * Holds the keys for debouncing with their associated callbacks
11
- */
12
- debounceKeys: {
13
- [key: string]: {
14
- callback: () => any;
15
- };
16
- };
17
- /**
18
- * Subject that emits when a debounced function should be executed
19
- */
20
- listener: BehaviorSubject<boolean>;
21
- /**
22
- * Flag to track if the listener subscription is active
23
- */
24
- isListening: boolean;
25
- constructor();
26
- /**
27
- * Initializes the debounce listener if not already listening
28
- * Sets up subscription to execute callbacks after debounce period
29
- * @private
30
- */
31
- private startListener;
32
- /**
33
- * Wrapper function that facilitates debouncing of function calls
34
- * @param config Configuration object for the debouncer
35
- * @param config.uniqueKey Identifier for the function to debounce
36
- * @param config.callback Function to call after debouncing
37
- */
38
- debouncer: (config: {
39
- uniqueKey: string;
40
- callback: () => any;
41
- }) => void;
42
- /**
43
- * Counter used for debugging async validations
44
- * @private
45
- */
46
- counter: number;
47
- /**
48
- * Asynchronous validator wrapper built on top of the debouncer function
49
- * Specifically tuned for Angular AbstractControl async validators
50
- *
51
- * @param config Configuration object for the async validation
52
- * @param config.uniqueKey Identifier for the validation function
53
- * @param config.callback Async function to call after debouncing that returns validation result
54
- * @param config.validationError Optional custom validation error to return on failure
55
- * @returns Promise that resolves to a CustomValidationError or null if valid
56
- */
57
- asyncValidation: <TData extends {
58
- response?: boolean;
59
- } = any>(config: {
60
- uniqueKey: string;
61
- callback: () => Promise<TData>;
62
- validationError?: CustomValidationError;
63
- }) => Promise<CustomValidationError>;
64
- static ɵfac: i0.ɵɵFactoryDeclaration<DebouncerService, never>;
65
- static ɵprov: i0.ɵɵInjectableDeclaration<DebouncerService>;
66
- }