ets-fe-ng-sdk 19.0.117 → 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 +1591 -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 -63
  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,938 +0,0 @@
1
- import { AbstractControl, FormControl, FormGroup } from '@angular/forms';
2
- import { Observable } from 'rxjs';
3
- import { AppRouteBase } from './RouteItem.class';
4
- import { Btn, IconType } from '../components/btn/btn.model';
5
- import { TemplateRef } from '@angular/core';
6
- /**
7
- * Base interface for ETS input components
8
- */
9
- interface IETSInputBase {
10
- /** Optional name identifier for the input */
11
- name?: string;
12
- /** Display label for the input */
13
- label: string;
14
- /** Current value of the input */
15
- value?: any;
16
- /** Placeholder text to display when input is empty */
17
- placeholder?: string;
18
- /** CSS class(es) to apply to the input */
19
- cls?: string;
20
- /** Whether the input is required */
21
- required?: boolean;
22
- /** Type of input to render */
23
- type?: InputType;
24
- }
25
- /**
26
- * Interface for form control inputs that extends the base input interface
27
- */
28
- interface IETSFCInput extends IETSInputBase {
29
- /** Name identifier for the input (required for form controls) */
30
- name: string;
31
- /** Text or icon to display before the input */
32
- prefix?: string;
33
- /** Text or icon to display after the input */
34
- suffix?: string;
35
- /** Angular form control associated with this input */
36
- formControl: AbstractControl;
37
- /** Parent form group containing this input */
38
- form: FormGroup;
39
- /** Validation messages to display for this input */
40
- vms?: IValidationMessage[];
41
- }
42
- /**
43
- * Supported input types for ETS components
44
- */
45
- export type InputType = 'autocomplete' | 'button' | 'checkbox' | 'checkedbox' | 'color' | 'date' | 'datetime-local' | 'dhm' | 'email' | 'file' | 'fileButton' | 'number' | 'password' | 'progress' | 'percentage' | 'richtext' | 'radio' | 'select' | 'tel' | 'template' | 'text' | 'textarea' | 'time' | 'viewer';
46
- /**
47
- * Implementation of form control input interface
48
- *
49
- * @class FCInput
50
- * @implements {IETSFCInput}
51
- * @description A class that implements the IETSFCInput interface for form control inputs
52
- */
53
- export declare class FCInput implements IETSFCInput {
54
- /** Name identifier for the input (required for form controls) */
55
- name: string;
56
- /** Display label for the input */
57
- label: string;
58
- /** Placeholder text to display when input is empty */
59
- placeholder?: string;
60
- /** CSS class(es) to apply to the input */
61
- cls?: string;
62
- /** Text or icon to display before the input */
63
- prefix?: string;
64
- /** Text or icon to display after the input */
65
- suffix?: string;
66
- /** Whether the input is required */
67
- required?: boolean;
68
- /** Type of input to render */
69
- type?: InputType;
70
- /** Angular form control associated with this input */
71
- formControl: AbstractControl;
72
- /** Validation messages to display for this input */
73
- vms?: IValidationMessage[];
74
- /** Parent form group containing this input */
75
- form: FormGroup;
76
- /**
77
- * Creates an instance of FCInput.
78
- *
79
- * @param {string} label - Display label for the input
80
- * @param {string} [name] - Name identifier for the input (generated randomly if not provided)
81
- * @param {AbstractControl} [formControl] - Angular form control associated with this input
82
- * @param {InputType} [type] - Type of input to render (defaults to 'text')
83
- * @param {boolean} [required] - Whether the input is required (defaults to false)
84
- * @param {string} [placeholder] - Placeholder text to display when input is empty
85
- * @param {IValidationMessage[]} [vms] - Validation messages to display for this input
86
- * @param {string} [prefix] - Text or icon to display before the input
87
- * @param {string} [suffix] - Text or icon to display after the input
88
- */
89
- constructor(label: string, name?: string, formControl?: AbstractControl, type?: InputType, required?: boolean, placeholder?: string, vms?: IValidationMessage[], prefix?: string, suffix?: string);
90
- }
91
- /**
92
- * Component-based ETS input implementation
93
- *
94
- * @class CETSInput
95
- * @implements {IETSInputBase}
96
- * @description A class that implements the IETSInputBase interface for component-based inputs
97
- */
98
- export declare class CETSInput implements IETSInputBase {
99
- /** Optional name identifier for the input */
100
- name: string;
101
- /** Display label for the input */
102
- label: string;
103
- /** Placeholder text to display when input is empty */
104
- placeholder?: string;
105
- /** CSS class(es) to apply to the input */
106
- cls?: string;
107
- /** Whether the input is required */
108
- required?: boolean;
109
- /** Type of input to render */
110
- type?: InputType;
111
- /** Current value of the input */
112
- value: string;
113
- /** Whether the input is hidden */
114
- hide: boolean;
115
- /** Whether the input is disabled */
116
- disabled: boolean;
117
- /** Whether the input is read-only */
118
- readonly: boolean;
119
- /** Unique identifier for the input element */
120
- id: string;
121
- /** Whether the input has validation errors */
122
- hasError: boolean;
123
- /**
124
- * Checks if the input value is empty
125
- *
126
- * @readonly
127
- * @type {boolean}
128
- * @returns {boolean} True if value is null or undefined
129
- */
130
- get isEmpty(): boolean;
131
- /** X-coordinate position (used for positioning) */
132
- x: number;
133
- /** Y-coordinate position (used for positioning) */
134
- y: number;
135
- /**
136
- * Creates an instance of CETSInput.
137
- *
138
- * @param {string} label - Display label for the input
139
- * @param {string} [name] - Optional name identifier for the input
140
- * @param {any} [value] - Current value of the input
141
- * @param {InputType} [type] - Type of input to render (defaults to 'text')
142
- * @param {boolean} [required] - Whether the input is required (defaults to false)
143
- * @param {string} [placeholder] - Placeholder text to display when input is empty
144
- * @param {IValidationMessage[]} [vms] - Validation messages (not used in this implementation)
145
- * @param {string} [prefix] - Text or icon to display before the input (not used in this implementation)
146
- * @param {string} [suffix] - Text or icon to display after the input (not used in this implementation)
147
- */
148
- constructor(label: string, name?: string, value?: any, type?: InputType, required?: boolean, placeholder?: string, vms?: IValidationMessage[], prefix?: string, suffix?: string);
149
- }
150
- /**
151
- * Interface for key-value pairs
152
- */
153
- export interface IKVP {
154
- /** Unique identifier for the pair */
155
- readonly key?: any;
156
- /** Value associated with the key */
157
- value?: string | boolean | number;
158
- /** CSS class(es) to apply to the pair */
159
- cls?: string;
160
- }
161
- /**
162
- * Basic implementation of key-value pair
163
- *
164
- * @class ETSKVP
165
- * @implements {IKVP}
166
- * @description A simple key-value pair implementation with optional CSS class
167
- */
168
- export declare class ETSKVP implements IKVP {
169
- /** Unique identifier for the pair */
170
- readonly key: string;
171
- /** Value associated with the key */
172
- value?: string | boolean | number;
173
- /** CSS class(es) to apply to the pair */
174
- cls?: string;
175
- /**
176
- * Creates an instance of ETSKVP.
177
- *
178
- * @param {string} key - Unique identifier for the pair
179
- * @param {string | boolean | number} [value] - Value associated with the key
180
- * @param {string} [cls] - CSS class(es) to apply to the pair
181
- */
182
- constructor(key: string, value?: string | boolean | number, cls?: string);
183
- }
184
- /**
185
- * Extended key-value pair with additional functionality
186
- *
187
- * @class ETSFKVP
188
- * @extends {ETSKVP}
189
- * @description An enhanced key-value pair with additional properties for UI display,
190
- * formatting, navigation, and interaction
191
- */
192
- export declare class ETSFKVP extends ETSKVP {
193
- inputType?: InputType;
194
- /** Display label for the pair */
195
- label: string;
196
- /** Whether the value can be edited by the user */
197
- editable?: boolean;
198
- /** Whether the value is currently being edited */
199
- editing?: boolean;
200
- /** Route to navigate to when the value is clicked */
201
- route?: string;
202
- /** Function to dynamically generate a route based on the item */
203
- routeFunc?: (item: any) => Promise<string> | Observable<string>;
204
- /** Tooltip or hint text for the key/label */
205
- hint?: string;
206
- /** Tooltip or hint text for the value */
207
- valueHint?: string;
208
- /** Function to execute when the value is clicked */
209
- action?: any;
210
- /** Whether the value represents a phone number (for formatting) */
211
- isPhone?: boolean;
212
- /** Whether the value represents an email address (for formatting) */
213
- isEmail?: boolean;
214
- /** Function to format the display value */
215
- formatter?: (val: any) => string | Promise<string> | Observable<string>;
216
- /**
217
- * Creates an instance of ETSFKVP.
218
- *
219
- * @param {string} key - Unique identifier for the pair
220
- * @param {string} label - Display label for the pair
221
- * @param {boolean} [editable] - Whether the value can be edited by the user
222
- * @param {string | boolean | number} [value] - Value associated with the key
223
- * @param {InputType} [inputType] - Type of input to use when editing the value
224
- * @param {string} [hint] - Tooltip or hint text for the key/label
225
- * @param {any} [action] - Function to execute when the value is clicked
226
- * @param {(val: any) => string | Promise<string>} [formatter] - Function to format the display value
227
- * @param {string} [cls] - CSS class(es) to apply to the pair
228
- * @param {string} [route] - Route to navigate to when the value is clicked
229
- * @param {string} [valueHint] - Tooltip or hint text for the value
230
- */
231
- constructor(key: string, label: string, editable?: boolean, value?: string | boolean | number, inputType?: InputType, hint?: string, action?: any, formatter?: (val: any) => string | Promise<string>, cls?: string, route?: string, valueHint?: string);
232
- }
233
- /**
234
- * Interface for label components that extends key-value pairs
235
- */
236
- export interface ILbl extends IKVP {
237
- /** Tooltip or hint text for the label */
238
- hint?: string;
239
- }
240
- /**
241
- * Implementation of label interface
242
- */
243
- export declare class Lbl implements ILbl {
244
- readonly key: string;
245
- value: string | boolean | number;
246
- hint?: string;
247
- cls?: string;
248
- constructor(key: string, value?: string | boolean | number, hint?: string, cls?: string);
249
- }
250
- /**
251
- * Interface for row options in tables
252
- * @template TRow Type of the row data
253
- */
254
- export interface IRowOption<TRow> {
255
- /** Text or title for the option */
256
- t: string;
257
- /** CSS class(es) to apply to the item */
258
- itemClass?: string;
259
- /** CSS class(es) to apply to the icon */
260
- iconClass?: string;
261
- /** Whether to ignore/hide this option */
262
- ignore?: boolean;
263
- /** Function to execute when option is selected */
264
- action?: (row: TRow) => void;
265
- }
266
- /**
267
- * Types of cells that can be displayed in tables
268
- */
269
- export type CellType = InputType | 'table' | 'btns' | 'editable' | 'input';
270
- /**
271
- * Interface for table column configuration
272
- * @template TRow Type of the row data
273
- */
274
- export interface ITableCol<TRow = any> {
275
- /** Column header text */
276
- t: string;
277
- /** Custom template for rendering the cell */
278
- customTemplate?: TemplateRef<any>;
279
- /** Field name from row data to display in this column */
280
- f: KeyOfType<TRow, string | number | boolean>;
281
- /** Whether the column is disabled */
282
- disabled?: boolean;
283
- /** Function to format the cell value for display */
284
- formatter?: (val: any) => string | undefined | Promise<string | undefined> | Observable<string | undefined>;
285
- /** Array of property paths to access nested data */
286
- p?: string[];
287
- /** Formatter function that takes multiple parameters */
288
- formatterP?: (...val: any) => string;
289
- /** Function to generate hint/tooltip text for the cell */
290
- hintFormatter?: (val: TRow) => Promise<string | undefined> | Observable<string | undefined>;
291
- /** Function to generate a route for the cell */
292
- routeFormatter?: FormatterFuncType<string, TRow>;
293
- /** Function to generate query parameters for navigation */
294
- mqueryParams?: FormatterFuncType<{}, TRow>;
295
- /** Type of cell to render */
296
- type?: CellType;
297
- /** Whether this is an additional column that can be toggled by the user */
298
- additionalColumn?: boolean;
299
- /** Whether the column is currently active/visible */
300
- active?: boolean;
301
- /** Whether to show preview on hover */
302
- previewOnHover?: boolean;
303
- /** Configuration for hover behavior */
304
- onHoverHandler?: {
305
- /** Delay in milliseconds before showing hover content */
306
- delay?: number;
307
- /** Function to execute on hover */
308
- action: (row: TRow, event: MouseEvent) => any;
309
- };
310
- /** Whether to ignore/hide this column */
311
- ignore?: boolean;
312
- /** Function to execute when cell is clicked */
313
- action?: (row: TRow, cellField: keyof TRow, setLoading?: (value: boolean) => void, index?: number) => any;
314
- }
315
- /**
316
- * Implementation of table column interface with additional properties
317
- * @template TRow Type of the row data
318
- */
319
- export declare class TableCol<TRow = any> implements ITableCol<TRow> {
320
- /** Function to execute when cell is clicked */
321
- action?: (row: TRow, cellField: keyof TRow, setLoading?: (value: boolean) => void, index?: number) => any;
322
- /** Whether the column is currently active/visible */
323
- active?: boolean;
324
- /** Whether to show preview on hover */
325
- previewOnHover?: boolean;
326
- /** Configuration for hover behavior */
327
- onHoverHandler?: {
328
- /**In Milliseconds */ delay?: number;
329
- /** Function to execute on hover */
330
- action: (row: TRow, event: MouseEvent) => any;
331
- };
332
- /** Whether to ignore/hide this column */
333
- ignore?: boolean;
334
- /** Test number for internal use */
335
- testNumber?: number;
336
- /** Whether this is an additional column that can be toggled by the user */
337
- additionalColumn?: boolean;
338
- /** Button configuration for action columns */
339
- btn?: Btn<TRow>;
340
- /** Multiple buttons configuration for action columns */
341
- buttons?: Btn<TRow>[];
342
- /** Whether the column is checked/selected */
343
- checked?: boolean;
344
- /**
345
- * @deprecated Defaults to {@link stickyEnd}
346
- * Whether the column should be sticky
347
- */
348
- sticky?: boolean;
349
- /** Whether the column should stick to the start of the table */
350
- stickyStart?: boolean;
351
- /** Whether the column should stick to the end of the table */
352
- stickyEnd?: boolean;
353
- /** Field name from row data to display in this column */
354
- f: KeyOfType<TRow, string | number | boolean | undefined | null>;
355
- /** Function to format the cell value for display */
356
- formatter?: (val: any) => string | undefined | Promise<string | undefined> | Observable<string | undefined>;
357
- /** Function to format the cell value when expanded */
358
- expandedFormatter?: (val: any) => string | undefined | Promise<string | undefined> | Observable<string | undefined>;
359
- /** Function to generate hint/tooltip text for the cell */
360
- hintFormatter?: (val: TRow) => Promise<string | undefined> | Observable<string | undefined>;
361
- /** Formatter function that takes the entire row as input */
362
- formatterRow?: FormatterFuncType<string, TRow>;
363
- /** Expanded formatter function that takes the entire row as input */
364
- expandedFormatterRow?: FormatterFuncType<string, TRow>;
365
- /** Tooltip or hint text for the column */
366
- hint?: string;
367
- /** Icon type to display in the column */
368
- icon?: IconType;
369
- /** Function to generate query parameters for navigation */
370
- mqueryParams?: FormatterFuncType<{}, TRow>;
371
- /** Array of property paths to access nested data */
372
- p?: string[];
373
- /** Whether the column is disabled */
374
- disabled?: boolean;
375
- /** Function to generate a route for the cell */
376
- routeFormatter?: FormatterFuncType<string, TRow>;
377
- /** Configuration for nested table columns */
378
- subTable?: TableCol[];
379
- /** Column header text */
380
- t: string;
381
- /** Custom template for rendering the cell */
382
- customTemplate?: TemplateRef<any>;
383
- /** Type of cell to render */
384
- type?: CellType;
385
- /** Specify whether to show button to expand column */
386
- expandable?: boolean;
387
- /** Width to use when modal is opened */
388
- expandedWidth?: string;
389
- /** Whether to skip formatting for this column */
390
- noFormat?: boolean;
391
- constructor(t: string, f?: keyof TRow, formatter?: (val: any) => string | Promise<string>, formatterRow?: FormatterFuncType<string, TRow>, type?: CellType, checked?: boolean, routeFormatter?: FormatterFuncType<string, TRow>, mqueryParams?: FormatterFuncType<{}, TRow>, action?: (row: any, cellField: keyof TRow) => any);
392
- }
393
- /**
394
- * Type for formatter functions that operate on row data
395
- * @template R Return type of the formatter
396
- * @template T Type of the row data
397
- */
398
- type FormatterFuncType<R = string, T = any> = (row: T, cellField?: keyof T) => R;
399
- /**
400
- * Interface for items with code and title
401
- * @template Code Type of the code property
402
- */
403
- export interface ICodeTitle<Code = string> {
404
- /** Code or identifier */
405
- code: Code;
406
- /** Display title */
407
- title: string;
408
- }
409
- /**
410
- * Interface for items with code and description
411
- */
412
- export interface ICodeDescription {
413
- /** Code or identifier */
414
- code: string;
415
- /** Descriptive text */
416
- description: string;
417
- }
418
- /**
419
- * Interface for marketing events with code and description
420
- */
421
- export interface IMktDescription {
422
- /** Marketing event code */
423
- mktEventCode: string;
424
- /** Description of the marketing event */
425
- description: string;
426
- }
427
- /**
428
- * Interface for items with only a code property
429
- */
430
- export interface ICode {
431
- /** Code or identifier */
432
- code: string;
433
- }
434
- /**
435
- * Enum for menu location identifiers
436
- */
437
- export declare enum EMenuLocation {
438
- viewPage1 = "viewPage"
439
- }
440
- /**
441
- * Enum for days of the week
442
- */
443
- export declare enum Day {
444
- sunday = "Sunday",
445
- monday = "Monday",
446
- tuesday = "Tuesday",
447
- wednesday = "Wednesday",
448
- thursday = "Thursday",
449
- friday = "Friday",
450
- saturday = "Saturday"
451
- }
452
- /**
453
- * Enum for page types
454
- */
455
- export declare enum EPageType {
456
- clonePage = "clonePage",
457
- editPage = "editPage",
458
- showPage = "showPage",
459
- createPage = "createPage",
460
- indexPage = "indexPage"
461
- }
462
- /**
463
- * Interface for document metadata
464
- */
465
- export interface IDocMetadata {
466
- /** Box number */
467
- boxNo?: string;
468
- /** Branch identifier */
469
- branch?: string;
470
- /** Document category */
471
- category?: string;
472
- /** User who created the document */
473
- createdBy?: string;
474
- /** Policy code */
475
- policyCode?: string;
476
- /** Policy number */
477
- policyNo?: string;
478
- /** Policy number suffix */
479
- policyNoSuffix?: string;
480
- /** Reference category */
481
- refCat?: RefCat;
482
- /** Reference number */
483
- refNo?: string | number;
484
- /** Document sensitivity level */
485
- sensitivity?: string;
486
- /** Document subcategory */
487
- subCategory?: SubCategory;
488
- /** Document title */
489
- title: string;
490
- }
491
- /**
492
- * Type for reference categories used in document metadata
493
- * Represents different types of reference categories for documents in the system
494
- */
495
- export type RefCat = 'AGT' | 'APP' | 'ASS' | 'AUTH' | 'BAN' | 'BAT' | 'BRA' | 'CLA' | 'CLI' | 'COM' | 'COU' | 'COV' | 'DN' | 'DOC' | 'END' | 'ENR' | 'GRO' | 'NB' | 'PAY' | 'PNS' | 'PO' | 'POL' | 'PRO' | 'QUO' | 'RAT' | 'SN' | 'ST' | 'TAR' | 'TAS' | 'TRA' | 'TSC' | 'USR' | 'WF';
496
- /**
497
- * Type for document subcategories
498
- * Represents different subcategories that can be assigned to documents
499
- */
500
- export type SubCategory = 'AGT' | 'AOC' | 'AP' | 'CN' | 'CSD' | 'ID' | 'LI' | 'LIC' | 'PP' | 'RIB' | 'SI';
501
- /**
502
- * Interface for system configuration
503
- * @template SystemType Type of the system enum
504
- * @template TESystemBusLine Type of the system bus line enum
505
- */
506
- export interface ISystem<SystemType = ESystem, TESystemBusLine = ESystemBusLine> {
507
- /** Base route for the application */
508
- appRoute: AppRouteBase;
509
- /** System name identifier */
510
- name: SystemType;
511
- /** Business line the system belongs to */
512
- busline: TESystemBusLine;
513
- /** Color code for UI theming */
514
- colourCode: string;
515
- /** Root path for the system */
516
- rootPath: string;
517
- }
518
- /**
519
- * Enum for system identifiers
520
- * Represents different systems within the application
521
- */
522
- export declare enum ESystem {
523
- }
524
- /**
525
- * Enum for subsystem identifiers
526
- * Represents different subsystems within the main systems
527
- */
528
- export declare enum ESubSystem {
529
- }
530
- /**
531
- * Enum for system business line identifiers
532
- * Represents different business lines that systems can belong to
533
- */
534
- export declare enum ESystemBusLine {
535
- }
536
- /**
537
- * Enum for supported languages
538
- * Represents languages available for localization
539
- */
540
- export declare enum ELanguage {
541
- /** English */
542
- EN = "EN",
543
- /** French */
544
- FR = "FR"
545
- }
546
- /**
547
- * Enum for validation error types
548
- * Represents different types of validation errors that can occur in forms
549
- */
550
- export declare enum EValidationType {
551
- /** Custom validation error */
552
- custom = "custom",
553
- /** Generic invalid input error */
554
- invalid = "invalid",
555
- /** Input exceeds maximum length */
556
- maxlength = "maxlength",
557
- /** Input is shorter than minimum length */
558
- minlength = "minlength",
559
- /** Input doesn't match required pattern */
560
- pattern = "pattern",
561
- /** Required field is missing */
562
- required = "required",
563
- /** Value must be unique but isn't */
564
- unique = "unique",
565
- /** Value is not unique when it should be */
566
- notUnique = "notUnique",
567
- /** Referenced entity not found */
568
- notFound = "notFound",
569
- /** Value is already in use */
570
- used = "used",
571
- /** Invalid email format */
572
- email = "email",
573
- /** Validation is in progress */
574
- pending = "pending"
575
- }
576
- /**
577
- * Interface for validation messages
578
- * Defines the structure for validation error messages displayed to users
579
- */
580
- export interface IValidationMessage {
581
- /** Type of validation error */
582
- type: EValidationType;
583
- /** Message to display for this validation error */
584
- message: string;
585
- }
586
- /**
587
- * Sort direction type
588
- * Represents the direction of sorting (ascending or descending)
589
- */
590
- export type SortType = 'asc' | 'desc';
591
- /**
592
- * Interface for sort information
593
- * Contains metadata about the sort state of paginated data
594
- */
595
- interface Sort {
596
- /** Whether data is sorted (true if sorting is applied) */
597
- sorted: boolean;
598
- /** Whether data is unsorted (true if no sorting is applied) */
599
- unsorted: boolean;
600
- /** Whether sort configuration is empty (true if no sort parameters exist) */
601
- empty: boolean;
602
- }
603
- /**
604
- * Interface for paginated data
605
- * Represents a page of data with pagination metadata
606
- * @template T Type of the content items in the page
607
- */
608
- interface IPage<T> {
609
- /** Array of items for the current page */
610
- content: T[];
611
- /** Current page number (0-based) */
612
- number: number;
613
- /** Page size (items per page) */
614
- size: number;
615
- /** Total number of items across all pages */
616
- totalElements: number;
617
- /** Total number of pages */
618
- totalPages: number;
619
- /** Whether this is the last page */
620
- last: boolean;
621
- /** Whether this is the first page */
622
- first: boolean;
623
- /** Sort information for the current page */
624
- sort: Sort;
625
- /** Number of elements in the current page */
626
- numberOfElements: number;
627
- /** Whether the page is empty (contains no items) */
628
- empty: boolean;
629
- }
630
- /**
631
- * Interface for query parameters when fetching paginated data
632
- * Defines standard pagination and sorting parameters
633
- * @template T Type of the row data being queried
634
- */
635
- interface GetQuery<T> {
636
- /** Page number to retrieve (0-based) */
637
- pageNumber?: number;
638
- /** Number of items per page */
639
- pageSize?: number;
640
- /** Field to sort by (must be a key of T) */
641
- sortBy?: keyof T;
642
- /** Sort direction (ascending or descending) */
643
- sortDirection?: SortType | 'DESC' | 'ASC';
644
- }
645
- /**
646
- * Extended query interface that combines custom query parameters with standard pagination
647
- * Allows for domain-specific query parameters alongside standard pagination controls
648
- * @template TQuery Type of custom query parameters
649
- * @template TRow Type of the row data being queried
650
- */
651
- export type IGetQuery<TQuery = any, TRow = any> = Partial<TQuery> & GetQuery<TRow>;
652
- /**
653
- * Interface for search response with pagination
654
- * Represents the response from a search operation with paginated results
655
- * @template T Type of the content items in the response
656
- */
657
- export interface ISearchResponse<T = any> {
658
- /** Paginated data containing the search results */
659
- page: IPage<T>;
660
- /** Total number of items matching the search criteria */
661
- listSize: number;
662
- /** Current page number (0-based) */
663
- pageNumber?: number;
664
- /** Number of items per page */
665
- pageSize?: number;
666
- /** Search criteria used for the query */
667
- searchCriteria: any;
668
- /** Original query parameters that were used for the search */
669
- query?: IGetQuery;
670
- }
671
- /**
672
- * Interface for search response with pagination and content directly accessible
673
- * Flattened version of search response where page content is directly accessible
674
- * @template T Type of the content items in the response
675
- */
676
- export interface ISearchResponse2<T = any> {
677
- /** Array of items for the current page */
678
- content: T[];
679
- /** Whether the page is empty (contains no items) */
680
- empty: boolean;
681
- /** Whether this is the first page */
682
- first: boolean;
683
- /** Whether this is the last page */
684
- last: boolean;
685
- /** Current page number (0-based) */
686
- number: number;
687
- /** Number of elements in the current page */
688
- numberOfElements: number;
689
- /** Page size (items per page) */
690
- size: number;
691
- /** Total number of items across all pages */
692
- totalElements: number;
693
- /** Total number of pages */
694
- totalPages: number;
695
- /** Original query parameters that were used for the search */
696
- query?: IGetQuery;
697
- /** Sort information for the current page */
698
- sort: {
699
- /** Whether data is sorted (true if sorting is applied) */
700
- sorted: boolean;
701
- /** Whether data is unsorted (true if no sorting is applied) */
702
- unsorted: boolean;
703
- /** Whether sort configuration is empty (true if no sort parameters exist) */
704
- empty: boolean;
705
- };
706
- }
707
- /**
708
- * Type for image categories
709
- * Represents different types of images that can be stored in the system
710
- * - 'pp': Profile pictures
711
- * - 'other': Other image types
712
- */
713
- export type ImageType = 'pp' | 'other';
714
- /**
715
- * Interface for tab configuration
716
- * Defines the structure for tabs in tabbed interfaces
717
- */
718
- export interface ITab {
719
- /** Unique identifier for the tab */
720
- id?: string;
721
- /** Target element or route to navigate to when tab is selected */
722
- target?: string;
723
- /** Display label for the tab */
724
- label: string;
725
- /** Form identifier associated with the tab */
726
- form?: string;
727
- /**
728
- * Function to execute when posting data from the tab
729
- * @param data The data to be posted
730
- * @param productCode Optional product code associated with the data
731
- * @returns Observable containing the posted data and product code
732
- */
733
- postFunction?: (data: any, productCode?: string) => Observable<{
734
- /** The posted data returned from the server */
735
- data: any;
736
- /** Product code associated with the posted data */
737
- productCode: string;
738
- }>;
739
- /**
740
- * Function to execute when updating data from the tab
741
- * @param data The data to be updated
742
- * @param productCode Product code associated with the data
743
- * @returns Observable containing the updated data and product code
744
- */
745
- putFunction?: (data: any, productCode: string) => Observable<{
746
- /** The updated data returned from the server */
747
- data: any;
748
- /** Product code associated with the updated data */
749
- productCode: string;
750
- }>;
751
- /** Data associated with the tab */
752
- data?: any;
753
- }
754
- /**
755
- * Interface for custom validation errors
756
- * Defines possible validation error types that can be returned from validators
757
- */
758
- export interface CustomValidationError {
759
- /** Custom error message for application-specific validation */
760
- custom?: string;
761
- /** Whether the value is invalid for general reasons */
762
- invalid?: boolean;
763
- /** Whether the value exceeds maximum length */
764
- maxlength?: boolean;
765
- /** Alternative property for maximum length validation */
766
- maxLength?: boolean;
767
- /** Whether the value is below minimum length */
768
- minlength?: boolean;
769
- /** Alternative property for minimum length validation */
770
- minLength?: boolean;
771
- /** Whether the referenced entity was not found */
772
- notFound?: boolean;
773
- /** Whether the value is not unique when uniqueness is required */
774
- notUnique?: boolean;
775
- /** Whether the value fails pattern validation */
776
- pattern?: boolean;
777
- /** Whether a required value is missing */
778
- required?: boolean;
779
- /** Whether the value is already in use */
780
- used?: boolean;
781
- }
782
- /**
783
- * Enum for menu types
784
- * Defines the orientation of menus in the UI
785
- */
786
- export declare enum EMenuType {
787
- /** Horizontal menu layout */
788
- horizontal = "H",
789
- /** Vertical menu layout */
790
- vertical = "V"
791
- }
792
- /**
793
- * Interface for items with value and label
794
- * Common pattern for dropdown options and other selectable items
795
- * @template T Type of the value
796
- */
797
- export interface IValueLabel<T> {
798
- /** Value to be used programmatically (e.g., stored in database) */
799
- value: T;
800
- /** Human-readable display label for the value */
801
- label: string;
802
- }
803
- /**
804
- * Interface for image configuration
805
- * Defines paths and settings for various image assets used in the application
806
- */
807
- export interface IConfigImages {
808
- /** Path to favicon image displayed in browser tabs */
809
- favicon: string;
810
- /** Path to watermark image used for document overlays */
811
- watermark: string;
812
- /** Logo image paths for different themes */
813
- logo: {
814
- /** Dark theme logo path */
815
- dark: string;
816
- /** Light theme logo path */
817
- light: string;
818
- };
819
- /** Profile picture configuration */
820
- pp: {
821
- /** Source path for full-size profile pictures */
822
- src: string;
823
- /** Path for minimized/thumbnail profile pictures */
824
- min: string;
825
- };
826
- /** Other image configuration */
827
- other: {
828
- /** Source path for full-size images */
829
- src: string;
830
- /** Path for minimized/thumbnail images */
831
- min: string;
832
- };
833
- }
834
- /**
835
- * Class for constant values
836
- * Container for application-wide constant values
837
- */
838
- export declare class Constant {
839
- }
840
- /**
841
- * Interface for database table names
842
- * Defines the schema and table names for database operations
843
- */
844
- export interface ITableName {
845
- /** Database schema name */
846
- schema: string;
847
- /** Primary table name */
848
- primaryTable: string;
849
- }
850
- /**
851
- * Interface for items with type and description
852
- * Common pattern for categorized items with descriptions
853
- */
854
- export interface ITypeDescription {
855
- /** Description text explaining the item */
856
- description: string;
857
- /** Type identifier categorizing the item */
858
- type: string;
859
- }
860
- /**
861
- * Interface for service functions
862
- * Defines common methods that services should implement
863
- */
864
- export interface IServiceFunction {
865
- /**
866
- * Base function that other service methods may build upon
867
- * @param args Variable arguments passed to the function
868
- * @returns Any value depending on implementation
869
- */
870
- _base?: (...args: any[]) => any;
871
- /**
872
- * Search function to retrieve data based on criteria
873
- * @param args Variable arguments for search parameters
874
- * @returns Observable containing search results
875
- */
876
- search: (...args: any[]) => Observable<any>;
877
- /**
878
- * Create function to add new data
879
- * @param args Variable arguments for creation parameters
880
- * @returns Observable containing the created entity
881
- */
882
- create: (...args: any[]) => Observable<any>;
883
- }
884
- /**
885
- * JavaScript primitive and object types
886
- * Union type of all possible JavaScript typeof results
887
- */
888
- export type TypeOf = 'string' | 'number' | 'bigint' | 'boolean' | 'symbol' | 'undefined' | 'object' | 'function';
889
- /**
890
- * Status values for processes or tasks
891
- * Represents the current state of a process or task in the system
892
- * - 'COMPLETED': The process has finished successfully
893
- * - 'PENDING': The process is still in progress
894
- */
895
- export type Status = 'COMPLETED' | 'PENDING';
896
- /**
897
- * Type for strictly typed form groups
898
- * Provides type safety for Angular form groups by ensuring form controls match the data model
899
- * @template T Type of the form data model
900
- */
901
- export type IStrictFormGroup<T> = {
902
- [x in keyof T]: FormControl<T[x]>;
903
- };
904
- /**
905
- * Interface for generic object literals
906
- * Represents objects with string keys and values of a specified type
907
- * @template TValue Type of the values in the object (defaults to any)
908
- */
909
- export interface IObjectLiteral<TValue = any> {
910
- /** Object properties with string keys and values of type TValue */
911
- [x: string]: TValue;
912
- }
913
- /**
914
- * Interface for file with metadata
915
- * Represents a file upload with associated document metadata
916
- */
917
- export interface IFile_Metadata {
918
- /** File object containing the actual file data */
919
- file: File;
920
- /** Document metadata describing the file's purpose and categorization */
921
- metadata: IDocMetadata;
922
- }
923
- /**
924
- * Subtypes for input components
925
- * Represents specialized input types for specific data formats
926
- * - 'money': Input formatted as currency
927
- */
928
- export type InputSubType = 'money';
929
- /**
930
- * Utility type that extracts keys from T where the value is of type TExpectedFieldType
931
- * Filters object properties to only those matching a specific type
932
- * @template T Source object type
933
- * @template TExpectedFieldType Expected type of the field values to include
934
- */
935
- export type KeyOfType<T, TExpectedFieldType> = keyof {
936
- [P in keyof T as T[P] extends TExpectedFieldType ? P : never]: any;
937
- };
938
- export {};