@unifylib/ui-lib 1.0.3 → 1.0.64

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 (265) hide show
  1. package/esm2022/iq-ui-lib.mjs +5 -0
  2. package/esm2022/lib/base-model/SearchStrConfig.mjs +11 -0
  3. package/esm2022/lib/base-model/api-response.mjs +2 -0
  4. package/esm2022/lib/base-model/audit-log-entry.mjs +3 -0
  5. package/esm2022/lib/base-model/button-action-settings.mjs +17 -0
  6. package/esm2022/lib/base-model/column-def.model.mjs +28 -0
  7. package/esm2022/lib/base-model/do-action-request.mjs +8 -0
  8. package/esm2022/lib/base-model/field-action.mjs +6 -0
  9. package/esm2022/lib/base-model/field-filter.model.mjs +3 -0
  10. package/esm2022/lib/base-model/field-info.mjs +64 -0
  11. package/esm2022/lib/base-model/field-predicate.model.mjs +10 -0
  12. package/esm2022/lib/base-model/filter-request.mjs +13 -0
  13. package/esm2022/lib/base-model/filter.model.mjs +25 -0
  14. package/esm2022/lib/base-model/get-items-list.mjs +10 -0
  15. package/esm2022/lib/base-model/index.mjs +13 -0
  16. package/esm2022/lib/base-model/items-total.model.mjs +8 -0
  17. package/esm2022/lib/base-model/line-item.model.mjs +12 -0
  18. package/esm2022/lib/base-model/lookupItem.mjs +16 -0
  19. package/esm2022/lib/base-model/page-info.mjs +17 -0
  20. package/esm2022/lib/base-model/permission-matrix.model.mjs +2 -0
  21. package/esm2022/lib/base-model/report-request.model.mjs +17 -0
  22. package/esm2022/lib/base-model/response-envelop.model.mjs +10 -0
  23. package/esm2022/lib/base-model/snack-message.model.mjs +11 -0
  24. package/esm2022/lib/base-model/table-column.interface.mjs +2 -0
  25. package/esm2022/lib/base-model/table-page-user-action.interface.mjs +21 -0
  26. package/esm2022/lib/base-model/workflow/workflow-steps.model.mjs +9 -0
  27. package/esm2022/lib/base-model/workflow/workflow.model.mjs +42 -0
  28. package/esm2022/lib/components/action-comment/action-comment.component.mjs +111 -0
  29. package/esm2022/lib/components/action-confirmation/action-confirmation.component.mjs +68 -0
  30. package/esm2022/lib/components/activity-report-form/activity-report-form.component.mjs +486 -0
  31. package/esm2022/lib/components/advanced-filter/field-filter/field-filter.component.mjs +44 -0
  32. package/esm2022/lib/components/advanced-filter/filter-builder/filter-builder.component.mjs +323 -0
  33. package/esm2022/lib/components/audit-log-details-dialog/audit-log-details-dialog.component.mjs +70 -0
  34. package/esm2022/lib/components/audit-log-list/audit-log.component.mjs +97 -0
  35. package/esm2022/lib/components/auto-complete/auto-complete.component.mjs +300 -0
  36. package/esm2022/lib/components/base-form/base-form.component.mjs +284 -0
  37. package/esm2022/lib/components/base-form-canvas/MaxDigitsDirective.mjs +29 -0
  38. package/esm2022/lib/components/base-form-canvas/NumbersOnlyDirective.mjs +132 -0
  39. package/esm2022/lib/components/base-form-canvas/base-form-canvas.component.mjs +789 -0
  40. package/esm2022/lib/components/base-input-dialog/base-input-dialog.component.mjs +72 -0
  41. package/esm2022/lib/components/base-table/base-table.component.mjs +708 -0
  42. package/esm2022/lib/components/button-actions/button-actions.component.mjs +101 -0
  43. package/esm2022/lib/components/editable-base-table/editable-base-table.component.mjs +507 -0
  44. package/esm2022/lib/components/equation-builder/equation-builder.component.mjs +117 -0
  45. package/esm2022/lib/components/item-line-editor/item-line-editor.component.mjs +322 -0
  46. package/esm2022/lib/components/multi-auto-complete/multi-auto-complete.component.mjs +294 -0
  47. package/esm2022/lib/components/paginator/paginator.component.mjs +181 -0
  48. package/esm2022/lib/components/permission-matrix/permission-matrix.component.mjs +129 -0
  49. package/esm2022/lib/components/report-details-dialog/report-details-dialog.component.mjs +102 -0
  50. package/esm2022/lib/components/report-form/report-form.component.mjs +485 -0
  51. package/esm2022/lib/components/search-bar/search-bar.component.mjs +63 -0
  52. package/esm2022/lib/components/section-form-canvas/section-form-canvas.component.mjs +99 -0
  53. package/esm2022/lib/components/shared/action-button/action-button.component.mjs +59 -0
  54. package/esm2022/lib/components/shared/action-card/action-card.component.mjs +93 -0
  55. package/esm2022/lib/components/shared/attachment-uploader/attachment-uploader.component.mjs +74 -0
  56. package/esm2022/lib/components/shared-list/shared-list.component.mjs +47 -0
  57. package/esm2022/lib/components/snackbar-static/snackbar-static.component.mjs +43 -0
  58. package/esm2022/lib/components/title-bar/title-bar.component.mjs +185 -0
  59. package/esm2022/lib/services/backend-service.mjs +241 -0
  60. package/esm2022/lib/services/index.mjs +4 -0
  61. package/esm2022/lib/services/top-panel.mjs +22 -0
  62. package/esm2022/lib/services/trigger-form.service.mjs +17 -0
  63. package/esm2022/lib/utils/base-utils.mjs +101 -0
  64. package/esm2022/lib/validators/date-range-validator.mjs +27 -0
  65. package/esm2022/lib/validators/index.mjs +4 -0
  66. package/esm2022/lib/validators/match-list.validator.mjs +9 -0
  67. package/esm2022/lib/validators/multi-email-validator.mjs +13 -0
  68. package/esm2022/public-api.mjs +30 -0
  69. package/esm2022/unifylib-ui-lib.mjs +5 -0
  70. package/fesm2022/iq-ui-lib.mjs +6552 -0
  71. package/fesm2022/iq-ui-lib.mjs.map +1 -0
  72. package/fesm2022/unifylib-ui-lib.mjs +6713 -0
  73. package/fesm2022/unifylib-ui-lib.mjs.map +1 -0
  74. package/index.d.ts +5 -0
  75. package/lib/base-model/SearchStrConfig.d.ts +8 -0
  76. package/{src/lib/base-model/api-response.ts → lib/base-model/api-response.d.ts} +5 -7
  77. package/lib/base-model/audit-log-entry.d.ts +7 -0
  78. package/lib/base-model/button-action-settings.d.ts +16 -0
  79. package/lib/base-model/column-def.model.d.ts +11 -0
  80. package/lib/base-model/do-action-request.d.ts +10 -0
  81. package/lib/base-model/field-action.d.ts +6 -0
  82. package/lib/base-model/field-filter.model.d.ts +7 -0
  83. package/lib/base-model/field-info.d.ts +59 -0
  84. package/lib/base-model/field-predicate.model.d.ts +7 -0
  85. package/lib/base-model/filter-request.d.ts +15 -0
  86. package/lib/base-model/filter.model.d.ts +22 -0
  87. package/lib/base-model/get-items-list.d.ts +21 -0
  88. package/lib/base-model/index.d.ts +12 -0
  89. package/lib/base-model/items-total.model.d.ts +6 -0
  90. package/lib/base-model/line-item.model.d.ts +10 -0
  91. package/lib/base-model/lookupItem.d.ts +13 -0
  92. package/{src/lib/base-model/page-info.ts → lib/base-model/page-info.d.ts} +26 -24
  93. package/lib/base-model/permission-matrix.model.d.ts +18 -0
  94. package/lib/base-model/report-request.model.d.ts +18 -0
  95. package/lib/base-model/response-envelop.model.d.ts +8 -0
  96. package/lib/base-model/snack-message.model.d.ts +7 -0
  97. package/lib/base-model/table-column.interface.d.ts +31 -0
  98. package/lib/base-model/table-page-user-action.interface.d.ts +14 -0
  99. package/lib/base-model/workflow/workflow-steps.model.d.ts +7 -0
  100. package/lib/base-model/workflow/workflow.model.d.ts +13 -0
  101. package/lib/components/action-comment/action-comment.component.d.ts +35 -0
  102. package/lib/components/action-confirmation/action-confirmation.component.d.ts +27 -0
  103. package/lib/components/activity-report-form/activity-report-form.component.d.ts +93 -0
  104. package/lib/components/advanced-filter/field-filter/field-filter.component.d.ts +21 -0
  105. package/lib/components/advanced-filter/filter-builder/filter-builder.component.d.ts +51 -0
  106. package/lib/components/audit-log-details-dialog/audit-log-details-dialog.component.d.ts +25 -0
  107. package/lib/components/audit-log-list/audit-log.component.d.ts +29 -0
  108. package/lib/components/auto-complete/auto-complete.component.d.ts +52 -0
  109. package/lib/components/base-form/base-form.component.d.ts +59 -0
  110. package/lib/components/base-form-canvas/MaxDigitsDirective.d.ts +7 -0
  111. package/lib/components/base-form-canvas/NumbersOnlyDirective.d.ts +23 -0
  112. package/lib/components/base-form-canvas/base-form-canvas.component.d.ts +142 -0
  113. package/lib/components/base-input-dialog/base-input-dialog.component.d.ts +23 -0
  114. package/lib/components/base-table/base-table.component.d.ts +172 -0
  115. package/lib/components/button-actions/button-actions.component.d.ts +19 -0
  116. package/lib/components/editable-base-table/editable-base-table.component.d.ts +109 -0
  117. package/lib/components/equation-builder/equation-builder.component.d.ts +23 -0
  118. package/lib/components/item-line-editor/item-line-editor.component.d.ts +66 -0
  119. package/lib/components/multi-auto-complete/multi-auto-complete.component.d.ts +53 -0
  120. package/lib/components/paginator/paginator.component.d.ts +41 -0
  121. package/lib/components/permission-matrix/permission-matrix.component.d.ts +26 -0
  122. package/lib/components/report-details-dialog/report-details-dialog.component.d.ts +34 -0
  123. package/lib/components/report-form/report-form.component.d.ts +92 -0
  124. package/lib/components/search-bar/search-bar.component.d.ts +29 -0
  125. package/lib/components/section-form-canvas/section-form-canvas.component.d.ts +32 -0
  126. package/lib/components/shared/action-button/action-button.component.d.ts +17 -0
  127. package/lib/components/shared/action-card/action-card.component.d.ts +37 -0
  128. package/lib/components/shared/attachment-uploader/attachment-uploader.component.d.ts +18 -0
  129. package/lib/components/shared-list/shared-list.component.d.ts +21 -0
  130. package/lib/components/snackbar-static/snackbar-static.component.d.ts +15 -0
  131. package/lib/components/title-bar/title-bar.component.d.ts +54 -0
  132. package/lib/services/backend-service.d.ts +59 -0
  133. package/{src/lib/services/index.ts → lib/services/index.d.ts} +1 -1
  134. package/lib/services/top-panel.d.ts +8 -0
  135. package/lib/services/trigger-form.service.d.ts +7 -0
  136. package/lib/utils/base-utils.d.ts +13 -0
  137. package/lib/validators/date-range-validator.d.ts +2 -0
  138. package/lib/validators/match-list.validator.d.ts +4 -0
  139. package/lib/validators/multi-email-validator.d.ts +6 -0
  140. package/package.json +16 -3
  141. package/public-api.d.ts +26 -0
  142. package/ng-package.json +0 -7
  143. package/src/lib/base-model/SearchStrConfig.ts +0 -12
  144. package/src/lib/base-model/audit-log-entry.ts +0 -7
  145. package/src/lib/base-model/button-action-settings.ts +0 -25
  146. package/src/lib/base-model/column-def.model.ts +0 -34
  147. package/src/lib/base-model/do-action-request.ts +0 -11
  148. package/src/lib/base-model/field-action.ts +0 -7
  149. package/src/lib/base-model/field-filter.model.ts +0 -14
  150. package/src/lib/base-model/field-info.ts +0 -98
  151. package/src/lib/base-model/field-predicate.model.ts +0 -7
  152. package/src/lib/base-model/filter-request.ts +0 -27
  153. package/src/lib/base-model/filter.model.ts +0 -49
  154. package/src/lib/base-model/get-items-list.ts +0 -24
  155. package/src/lib/base-model/index.ts +0 -11
  156. package/src/lib/base-model/lookupItem.ts +0 -21
  157. package/src/lib/base-model/null-snackmessage.ts +0 -9
  158. package/src/lib/base-model/report-request.model.ts +0 -33
  159. package/src/lib/base-model/response-envelop.model.ts +0 -15
  160. package/src/lib/base-model/snack-message.model.ts +0 -14
  161. package/src/lib/base-model/snackmessage-interface.ts +0 -7
  162. package/src/lib/base-model/table-column.interface.ts +0 -29
  163. package/src/lib/base-model/table-page-user-action.interface.ts +0 -33
  164. package/src/lib/base-model/workflow/workflow-steps.model.ts +0 -9
  165. package/src/lib/base-model/workflow/workflow.model.ts +0 -52
  166. package/src/lib/components/action-confirmation/action-confirmation.component.css +0 -34
  167. package/src/lib/components/action-confirmation/action-confirmation.component.html +0 -18
  168. package/src/lib/components/action-confirmation/action-confirmation.component.spec.ts +0 -23
  169. package/src/lib/components/action-confirmation/action-confirmation.component.ts +0 -58
  170. package/src/lib/components/activity-report-form/activity-report-form.component.html +0 -109
  171. package/src/lib/components/activity-report-form/activity-report-form.component.scss +0 -0
  172. package/src/lib/components/activity-report-form/activity-report-form.component.spec.ts +0 -25
  173. package/src/lib/components/activity-report-form/activity-report-form.component.ts +0 -605
  174. package/src/lib/components/audit-log-details-dialog/audit-log-details-dialog.component.css +0 -51
  175. package/src/lib/components/audit-log-details-dialog/audit-log-details-dialog.component.html +0 -23
  176. package/src/lib/components/audit-log-details-dialog/audit-log-details-dialog.component.spec.ts +0 -23
  177. package/src/lib/components/audit-log-details-dialog/audit-log-details-dialog.component.ts +0 -69
  178. package/src/lib/components/audit-log-list/audit-log.component.html +0 -23
  179. package/src/lib/components/audit-log-list/audit-log.component.scss +0 -0
  180. package/src/lib/components/audit-log-list/audit-log.component.spec.ts +0 -25
  181. package/src/lib/components/audit-log-list/audit-log.component.ts +0 -116
  182. package/src/lib/components/auto-complete/auto-complete.component.css +0 -14
  183. package/src/lib/components/auto-complete/auto-complete.component.html +0 -29
  184. package/src/lib/components/auto-complete/auto-complete.component.spec.ts +0 -23
  185. package/src/lib/components/auto-complete/auto-complete.component.ts +0 -330
  186. package/src/lib/components/base-form/base-form.component.html +0 -58
  187. package/src/lib/components/base-form/base-form.component.scss +0 -0
  188. package/src/lib/components/base-form/base-form.component.spec.ts +0 -25
  189. package/src/lib/components/base-form/base-form.component.ts +0 -305
  190. package/src/lib/components/base-form-canvas/base-form-canvas.component.css +0 -22
  191. package/src/lib/components/base-form-canvas/base-form-canvas.component.html +0 -1006
  192. package/src/lib/components/base-form-canvas/base-form-canvas.component.spec.ts +0 -23
  193. package/src/lib/components/base-form-canvas/base-form-canvas.component.ts +0 -573
  194. package/src/lib/components/base-input-dialog/base-input-dialog.component.css +0 -0
  195. package/src/lib/components/base-input-dialog/base-input-dialog.component.html +0 -42
  196. package/src/lib/components/base-input-dialog/base-input-dialog.component.spec.ts +0 -23
  197. package/src/lib/components/base-input-dialog/base-input-dialog.component.ts +0 -78
  198. package/src/lib/components/base-table/base-table.component.html +0 -242
  199. package/src/lib/components/base-table/base-table.component.scss +0 -31
  200. package/src/lib/components/base-table/base-table.component.spec.ts +0 -25
  201. package/src/lib/components/base-table/base-table.component.ts +0 -568
  202. package/src/lib/components/button-actions/button-actions.component.html +0 -28
  203. package/src/lib/components/button-actions/button-actions.component.scss +0 -6
  204. package/src/lib/components/button-actions/button-actions.component.spec.ts +0 -23
  205. package/src/lib/components/button-actions/button-actions.component.ts +0 -72
  206. package/src/lib/components/editable-base-table/editable-base-table.component.html +0 -372
  207. package/src/lib/components/editable-base-table/editable-base-table.component.scss +0 -44
  208. package/src/lib/components/editable-base-table/editable-base-table.component.spec.ts +0 -25
  209. package/src/lib/components/editable-base-table/editable-base-table.component.ts +0 -570
  210. package/src/lib/components/equation-builder/equation-builder.component.css +0 -0
  211. package/src/lib/components/equation-builder/equation-builder.component.html +0 -31
  212. package/src/lib/components/equation-builder/equation-builder.component.spec.ts +0 -23
  213. package/src/lib/components/equation-builder/equation-builder.component.ts +0 -121
  214. package/src/lib/components/multi-auto-complete/multi-auto-complete.component.css +0 -11
  215. package/src/lib/components/multi-auto-complete/multi-auto-complete.component.html +0 -38
  216. package/src/lib/components/multi-auto-complete/multi-auto-complete.component.spec.ts +0 -23
  217. package/src/lib/components/multi-auto-complete/multi-auto-complete.component.ts +0 -317
  218. package/src/lib/components/paginator/paginator.component.css +0 -25
  219. package/src/lib/components/paginator/paginator.component.html +0 -34
  220. package/src/lib/components/paginator/paginator.component.ts +0 -94
  221. package/src/lib/components/rejection-comment/action-comment.component.css +0 -33
  222. package/src/lib/components/rejection-comment/action-comment.component.html +0 -46
  223. package/src/lib/components/rejection-comment/action-comment.component.spec.ts +0 -23
  224. package/src/lib/components/rejection-comment/action-comment.component.ts +0 -86
  225. package/src/lib/components/report-details-dialog/report-details-dialog.component.css +0 -17
  226. package/src/lib/components/report-details-dialog/report-details-dialog.component.html +0 -16
  227. package/src/lib/components/report-details-dialog/report-details-dialog.component.spec.ts +0 -23
  228. package/src/lib/components/report-details-dialog/report-details-dialog.component.ts +0 -113
  229. package/src/lib/components/report-form/report-form.component.html +0 -94
  230. package/src/lib/components/report-form/report-form.component.scss +0 -0
  231. package/src/lib/components/report-form/report-form.component.spec.ts +0 -25
  232. package/src/lib/components/report-form/report-form.component.ts +0 -588
  233. package/src/lib/components/search-bar/search-bar.component.html +0 -62
  234. package/src/lib/components/search-bar/search-bar.component.scss +0 -8
  235. package/src/lib/components/search-bar/search-bar.component.spec.ts +0 -25
  236. package/src/lib/components/search-bar/search-bar.component.ts +0 -70
  237. package/src/lib/components/shared/attachment-uploader/attachment-uploader.component.css +0 -54
  238. package/src/lib/components/shared/attachment-uploader/attachment-uploader.component.html +0 -22
  239. package/src/lib/components/shared/attachment-uploader/attachment-uploader.component.spec.ts +0 -23
  240. package/src/lib/components/shared/attachment-uploader/attachment-uploader.component.ts +0 -45
  241. package/src/lib/components/shared-list/shared-list.component.css +0 -0
  242. package/src/lib/components/shared-list/shared-list.component.html +0 -17
  243. package/src/lib/components/shared-list/shared-list.component.spec.ts +0 -23
  244. package/src/lib/components/shared-list/shared-list.component.ts +0 -53
  245. package/src/lib/components/title-bar/title-bar.component.css +0 -0
  246. package/src/lib/components/title-bar/title-bar.component.css.map +0 -1
  247. package/src/lib/components/title-bar/title-bar.component.html +0 -31
  248. package/src/lib/components/title-bar/title-bar.component.scss +0 -23
  249. package/src/lib/components/title-bar/title-bar.component.spec.ts +0 -23
  250. package/src/lib/components/title-bar/title-bar.component.ts +0 -119
  251. package/src/lib/services/backend-service.ts +0 -286
  252. package/src/lib/services/top-panel.ts +0 -17
  253. package/src/lib/services/trigger-form.service.ts +0 -11
  254. package/src/lib/share-module/shared-module.ts +0 -10
  255. package/src/lib/styles/invoiceq-theme.scss +0 -252
  256. package/src/lib/styles/styles.scss +0 -1723
  257. package/src/lib/utils/base-utils.ts +0 -102
  258. package/src/lib/validators/date-range-validator.ts +0 -31
  259. package/src/lib/validators/match-list.validator.ts +0 -10
  260. package/src/lib/validators/multi-email-validator.ts +0 -15
  261. package/src/public-api.ts +0 -21
  262. package/tsconfig.lib.json +0 -15
  263. package/tsconfig.lib.prod.json +0 -11
  264. package/tsconfig.spec.json +0 -15
  265. /package/{src/lib/validators/index.ts → lib/validators/index.d.ts} +0 -0
@@ -0,0 +1,54 @@
1
+ import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
+ import { Location } from "@angular/common";
3
+ import { Directionality } from "@angular/cdk/bidi";
4
+ import { ButtonActionSettings, PageInfo } from "../../base-model";
5
+ import { MatChipListbox } from "@angular/material/chips";
6
+ import * as i0 from "@angular/core";
7
+ export declare class TitleBarComponent implements OnInit, OnChanges {
8
+ private location;
9
+ private dir;
10
+ pageTitle: string;
11
+ showExtractButton: boolean;
12
+ totalElements?: number;
13
+ titleMode: string;
14
+ pageInfo: PageInfo;
15
+ subTitle: string;
16
+ statusDesc?: string;
17
+ newAction: boolean;
18
+ extraButton: string;
19
+ showDetails: any;
20
+ showImport: boolean;
21
+ showButton: boolean;
22
+ newActionClicked: EventEmitter<any>;
23
+ extraButtonClicked: EventEmitter<any>;
24
+ extractReport: EventEmitter<any>;
25
+ extraData: string;
26
+ listTitle: string;
27
+ newButton: string;
28
+ titleCorporateAdmin: string;
29
+ isRoot: boolean;
30
+ hideBackButton: boolean;
31
+ buttons: ButtonActionSettings[];
32
+ buttonsDisplayMode: 'dropdown' | 'list';
33
+ buttonClicked: EventEmitter<ButtonActionSettings>;
34
+ draftSupported: boolean;
35
+ isPending: boolean;
36
+ onViewModeChange?: (isPending: boolean) => void;
37
+ viewModeChanged: EventEmitter<boolean>;
38
+ private _isPending;
39
+ constructor(location: Location, dir: Directionality);
40
+ ngOnInit(): void;
41
+ ngOnChanges(changes: SimpleChanges): void;
42
+ get currentIsPending(): boolean;
43
+ get backIcon(): string;
44
+ publishEvent(): void;
45
+ doExtractReport(value: any): void;
46
+ publishExtraButtonEvent(): void;
47
+ goBack(): void;
48
+ resolveButtonHref(btn: ButtonActionSettings): string | null;
49
+ onButtonClick(btn: ButtonActionSettings, event?: MouseEvent): void;
50
+ onViewModeChanged(isPending: boolean): void;
51
+ onChipSelectionChange(event: any, listbox?: MatChipListbox): void;
52
+ static ɵfac: i0.ɵɵFactoryDeclaration<TitleBarComponent, never>;
53
+ static ɵcmp: i0.ɵɵComponentDeclaration<TitleBarComponent, "app-title-bar", never, { "pageTitle": { "alias": "pageTitle"; "required": false; }; "showExtractButton": { "alias": "showExtractButton"; "required": false; }; "totalElements": { "alias": "totalElements"; "required": false; }; "titleMode": { "alias": "titleMode"; "required": false; }; "pageInfo": { "alias": "pageInfo"; "required": false; }; "subTitle": { "alias": "subTitle"; "required": false; }; "statusDesc": { "alias": "statusDesc"; "required": false; }; "newAction": { "alias": "newAction"; "required": false; }; "extraButton": { "alias": "extraButton"; "required": false; }; "showDetails": { "alias": "showDetails"; "required": false; }; "showImport": { "alias": "showImport"; "required": false; }; "showButton": { "alias": "showButton"; "required": false; }; "extraData": { "alias": "extraData"; "required": false; }; "titleCorporateAdmin": { "alias": "titleCorporateAdmin"; "required": false; }; "hideBackButton": { "alias": "hideBackButton"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; "buttonsDisplayMode": { "alias": "buttonsDisplayMode"; "required": false; }; "draftSupported": { "alias": "draftSupported"; "required": false; }; "isPending": { "alias": "isPending"; "required": false; }; "onViewModeChange": { "alias": "onViewModeChange"; "required": false; }; }, { "newActionClicked": "newActionClicked"; "extraButtonClicked": "extraButtonClicked"; "extractReport": "extractReport"; "buttonClicked": "buttonClicked"; "viewModeChanged": "viewModeChanged"; }, never, never, true, never>;
54
+ }
@@ -0,0 +1,59 @@
1
+ import { HttpClient, HttpHeaders } from "@angular/common/http";
2
+ import { Observable, Subject } from "rxjs";
3
+ import { SnackMessage } from "../base-model/snack-message.model";
4
+ import { PageInfo } from "../base-model/page-info";
5
+ import { TranslateService } from "@ngx-translate/core";
6
+ import { TableColumn } from "../base-model/table-column.interface";
7
+ import { GetItemsList } from "../base-model/get-items-list";
8
+ import { FieldAction } from "../base-model/field-action";
9
+ import { Workflow } from "../base-model/workflow/workflow.model";
10
+ import { ReportRequest } from "../base-model/report-request.model";
11
+ import { FilterRequest } from "../base-model/filter-request";
12
+ import { FormGroup } from "@angular/forms";
13
+ import { ActivatedRoute } from "@angular/router";
14
+ import { TopPanel } from "./top-panel";
15
+ import { DoActionRequest } from "../base-model/do-action-request";
16
+ import { MatDialog } from "@angular/material/dialog";
17
+ import * as i0 from "@angular/core";
18
+ export declare class BackendService {
19
+ private http;
20
+ private topPanel;
21
+ private translateService;
22
+ private route;
23
+ private dialog;
24
+ private config;
25
+ private secretsManager;
26
+ topPanelMessage$: Subject<SnackMessage>;
27
+ parentForm: FormGroup;
28
+ childForm: FormGroup;
29
+ fieldAction$: Subject<FieldAction>;
30
+ isEmptyItems: boolean;
31
+ constructor(http: HttpClient, topPanel: TopPanel, translateService: TranslateService, route: ActivatedRoute, dialog: MatDialog, config: any, secretsManager: any);
32
+ set defaults(value: any | undefined);
33
+ get defaults(): any | undefined;
34
+ getStatusDescription(element: any, workflow: Workflow): any;
35
+ getItemsByFilter(reportRequest: any, apiUrl: string): Observable<any>;
36
+ getItemAuditLog(reportRequest: any, apiUrl: string): Observable<any>;
37
+ private buildSecuredHeader;
38
+ buildFormSecuredHeader(): HttpHeaders;
39
+ labelKey(column: any, pageInfo: PageInfo): any;
40
+ private buildReportColumn;
41
+ private base64ToArrayBuffer;
42
+ buildReportRequest(columns: TableColumn<any>[], title: string | string[], filterRequest: FilterRequest, reportType: any, pageInfo: PageInfo, searchStr: string, orientation?: string): ReportRequest;
43
+ getLookupItemsByMultiFilter(listItems: GetItemsList, filterRequest?: FilterRequest): Observable<any>;
44
+ getLookupItemsByFilter(listItems: GetItemsList, cascadedId?: any): Observable<any>;
45
+ downloadReport(reportRequest: ReportRequest, pageApiPath: string, readyPath?: boolean): import("rxjs").Subscription;
46
+ private getApiBasePath;
47
+ doActionWithAttachments(request: DoActionRequest, param2: any[], pageInfo: PageInfo): Observable<any>;
48
+ doActionWithAttachment(request: DoActionRequest, file: File, pageInfo: PageInfo): Observable<any>;
49
+ encrypt(message: any): any;
50
+ decrypt(secret: any): any;
51
+ getConfirmation(): Observable<any>;
52
+ static ɵfac: i0.ɵɵFactoryDeclaration<BackendService, never>;
53
+ static ɵprov: i0.ɵɵInjectableDeclaration<BackendService>;
54
+ }
55
+ declare global {
56
+ interface Navigator {
57
+ msSaveBlob: (blobOrBase64: Blob | string, filename: string) => void;
58
+ }
59
+ }
@@ -1,3 +1,3 @@
1
1
  export * from './backend-service';
2
2
  export * from './top-panel';
3
- export * from './trigger-form.service'
3
+ export * from './trigger-form.service';
@@ -0,0 +1,8 @@
1
+ import { BehaviorSubject } from "rxjs";
2
+ import { SnackMessage } from "../base-model/snack-message.model";
3
+ import * as i0 from "@angular/core";
4
+ export declare class TopPanel {
5
+ topPanelMessage$: BehaviorSubject<SnackMessage>;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<TopPanel, never>;
7
+ static ɵprov: i0.ɵɵInjectableDeclaration<TopPanel>;
8
+ }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ShareDataService {
3
+ trigger: import("@angular/core").WritableSignal<boolean>;
4
+ enableTrigger: () => () => void;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<ShareDataService, never>;
6
+ static ɵprov: i0.ɵɵInjectableDeclaration<ShareDataService>;
7
+ }
@@ -0,0 +1,13 @@
1
+ import { FieldInfo, PageInfo, FilterRequest } from "../base-model";
2
+ export declare class BaseUtils {
3
+ pageInfo: PageInfo;
4
+ labelKey(column: any): string;
5
+ labelKeyByValue(column: any, element: any): string;
6
+ formatTimeToDate(v: any): Date;
7
+ }
8
+ export declare function buildFormFields(fields: FieldInfo[], item: any): string[];
9
+ export declare function buildItemsList(searchStr: string, apiPath?: string, cascadedByProperty?: string): FilterRequest;
10
+ export declare function extractFieldName(element: any, property: string): any;
11
+ export declare function getPositiveWfActionKey(stateType: any): "save" | "approve";
12
+ export declare function getNegativeWfActionKey(stateType: any): "reject" | "cancel";
13
+ export declare function getWfActionId(stateType: any): number;
@@ -0,0 +1,2 @@
1
+ import { AbstractControl, ValidationErrors } from '@angular/forms';
2
+ export declare function DateRangeValidator(group: AbstractControl): ValidationErrors | null;
@@ -0,0 +1,4 @@
1
+ import { FormGroup } from "@angular/forms";
2
+ export declare function RequireMatch(control: FormGroup): {
3
+ incorrect: boolean;
4
+ };
@@ -0,0 +1,6 @@
1
+ import { FormGroup } from '@angular/forms';
2
+ export declare function MultiEmailValidator(control: FormGroup): {
3
+ invalidEmail: {
4
+ value: any;
5
+ };
6
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unifylib/ui-lib",
3
- "version": "1.0.3",
3
+ "version": "1.0.64",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.12",
6
6
  "@angular/core": "^17.3.12"
@@ -8,5 +8,18 @@
8
8
  "dependencies": {
9
9
  "tslib": "^2.3.0"
10
10
  },
11
- "sideEffects": false
12
- }
11
+ "sideEffects": false,
12
+ "module": "fesm2022/unifylib-ui-lib.mjs",
13
+ "typings": "index.d.ts",
14
+ "exports": {
15
+ "./package.json": {
16
+ "default": "./package.json"
17
+ },
18
+ ".": {
19
+ "types": "./index.d.ts",
20
+ "esm2022": "./esm2022/unifylib-ui-lib.mjs",
21
+ "esm": "./esm2022/unifylib-ui-lib.mjs",
22
+ "default": "./fesm2022/unifylib-ui-lib.mjs"
23
+ }
24
+ }
25
+ }
@@ -0,0 +1,26 @@
1
+ export * from './lib/components/action-confirmation/action-confirmation.component';
2
+ export * from './lib/components/base-table/base-table.component';
3
+ export * from './lib/components/audit-log-list/audit-log.component';
4
+ export * from './lib/components/editable-base-table/editable-base-table.component';
5
+ export * from './lib/components/title-bar/title-bar.component';
6
+ export * from './lib/components/shared-list/shared-list.component';
7
+ export * from './lib/components/base-form-canvas/base-form-canvas.component';
8
+ export * from './lib/components/section-form-canvas/section-form-canvas.component';
9
+ export * from './lib/components/base-form/base-form.component';
10
+ export * from './lib/components/audit-log-details-dialog/audit-log-details-dialog.component';
11
+ export * from './lib/components/report-form/report-form.component';
12
+ export * from './lib/components/activity-report-form/activity-report-form.component';
13
+ export * from './lib/components/report-details-dialog/report-details-dialog.component';
14
+ export * from './lib/base-model';
15
+ export * from './lib/base-model/line-item.model';
16
+ export * from './lib/base-model/items-total.model';
17
+ export * from './lib/services';
18
+ export * from './lib/validators';
19
+ export * from './lib/components/base-input-dialog/base-input-dialog.component';
20
+ export * from './lib/components/search-bar/search-bar.component';
21
+ export * from './lib/components/snackbar-static/snackbar-static.component';
22
+ export * from './lib/components/shared/action-card/action-card.component';
23
+ export * from './lib/components/shared/action-button/action-button.component';
24
+ export * from './lib/components/action-comment/action-comment.component';
25
+ export * from './lib/components/item-line-editor/item-line-editor.component';
26
+ export * from './lib/components/permission-matrix/permission-matrix.component';
package/ng-package.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "$schema": "../../../node_modules/ng-packagr/ng-package.schema.json",
3
- "dest": "../../../dist/iq/ui-lib",
4
- "lib": {
5
- "entryFile": "src/public-api.ts"
6
- }
7
- }
@@ -1,12 +0,0 @@
1
-
2
- export enum MATCH_TYPE {
3
- LIKE = 'like',
4
- MATCH = 'match'
5
- }
6
-
7
- export class SearchStrConfig {
8
- searchStr:string='';
9
- matchType?: MATCH_TYPE;
10
-
11
- }
12
-
@@ -1,7 +0,0 @@
1
- export class AuditLogEntry {
2
- action: number;
3
- createdOn:Date;
4
- createdBy:string;
5
- subject:any;
6
- comment:string;
7
- }
@@ -1,25 +0,0 @@
1
-
2
- export class ButtonActionSettings {
3
- constructor(buttonActionSettings: ButtonActionSettings) {
4
- this.key = buttonActionSettings.key;
5
- this.action = buttonActionSettings.action;
6
- this.label = buttonActionSettings.label;
7
- this.isPrimary = buttonActionSettings.isPrimary;
8
- this.icon = buttonActionSettings.icon;
9
- this.showCommentDialog = buttonActionSettings.showCommentDialog;
10
- this.comment = buttonActionSettings.comment;
11
- this.shareExternal = buttonActionSettings.shareExternal;
12
- this.commentRequired = buttonActionSettings.commentRequired || false;
13
- }
14
-
15
- label: string;
16
- action?: any;
17
- key: number;
18
- isPrimary?: boolean;
19
- icon?: any;
20
- showCommentDialog?:boolean;
21
- comment?: any;
22
- shareExternal?: boolean;
23
- selectedId?: number;
24
- commentRequired? : boolean;
25
- }
@@ -1,34 +0,0 @@
1
- export class ColumnDef {
2
- order: number;
3
- label: string;
4
- fieldName: string;
5
- datatype: string;
6
- groupLabel: string;
7
- width: number;
8
- showSum: boolean=false;
9
- showCount: boolean=false;
10
-
11
- constructor(tableColumn: any, order: number, transLabel :string, lang?:string, groupLabel?:string) {
12
- this.order = order;
13
- this.label = transLabel;
14
- if (tableColumn.reportProperty) {
15
- this.fieldName = tableColumn.reportProperty;
16
- } else {
17
- this.fieldName = tableColumn.property.toString();
18
- }
19
-
20
- if (tableColumn.langDrivenName){
21
- this.fieldName = this.fieldName + "." + (lang === 'en'? "englishName": "arabicName");
22
- }
23
-
24
- if (tableColumn.reportType) {
25
- this.datatype = tableColumn.reportType;
26
- } else {
27
- this.datatype = tableColumn.type === 'number' ? 'long' : tableColumn.type;
28
- }
29
- this.width = tableColumn.reportwidth ? tableColumn.reportwidth : null;
30
- this.showSum = tableColumn.showSum;
31
- this.showCount = tableColumn.showCount;
32
- this.groupLabel = groupLabel;
33
- }
34
- }
@@ -1,11 +0,0 @@
1
- export const NEW =1;
2
- export const SAVE =2;
3
- export const REJECT =3;
4
- export const APPROVE =4;
5
- export const SAVE_AND_COMPLETE =5;
6
-
7
- export class DoActionRequest {
8
- actionId: number;
9
- comment: string;
10
- subject: any;
11
- }
@@ -1,7 +0,0 @@
1
- import {FieldInfo} from "./field-info";
2
-
3
- export class FieldAction {
4
- pageId: string='';
5
- property: any;
6
- fieldInfo?: FieldInfo;
7
- }
@@ -1,14 +0,0 @@
1
- export class FieldFilter {
2
- fieldName: string;
3
- operator: string;
4
- firstValue: any;
5
- filterType: string;
6
-
7
- }
8
-
9
- export const EMPTY_FILED_FILTER : FieldFilter = {
10
- fieldName: 'abc',
11
- operator: 'abc',
12
- firstValue: 'abc',
13
- filterType: 'FILED_FILTER',
14
- }
@@ -1,98 +0,0 @@
1
- import {ValidatorFn} from "@angular/forms";
2
- import {Filter} from "./filter.model";
3
-
4
- export class FieldInfo {
5
- property: string = "";
6
- row: number;
7
- required: boolean = false;
8
- type: 'text' | 'amount' |'color-picker' | 'currency' | 'date' | 'number' | 'sequence' | 'list' |'lookup'| 'multi-select' | 'password'| 'rich-text'|'radio-button'| 'phone-number'| 'iban-text'|'checkbox' |'textarea' |'button'|'spacer' | 'attachment'| 'section-title'| 'chip-list' |'time' | 'divider' | 'hyper-text' |'stateType'|'status' | 'year' | 'equation-builder' = 'text';
9
- textFormat?: 'json';
10
- readonly?: boolean = false;
11
- viewonly?: boolean ;
12
- label?: string = '';
13
- currency?: string;
14
- lookupApiPath?: string;
15
- multi?:boolean;
16
- supportedTypes?:string;
17
- cascadedBy?: string;
18
- cascadedByProperty?: string;
19
- pathParams?: string;
20
- listOptions?: any[];
21
- operators?: any[];
22
- fieldsApi?: string;
23
- reportFilter?:string;
24
- updateOnly?: boolean;
25
- fieldSize ?: number ;
26
- includeAllOption?: boolean;
27
- defaultListOption?: any;
28
- acceptNewItem?: boolean;
29
- translate?: boolean = false;
30
- validators?: ValidatorFn[];
31
- placeholder?: any;
32
- visible?: boolean = true;
33
- pattern?: string;
34
- disabled?: boolean;
35
- advancedFilter?: boolean;
36
- filterOperator?: 'GREATER_THAN_EQUAL'|'GREATER_THAN'| 'LESS_THAN'|'LESS_THAN_EQUAL'| 'EQUALS'| 'LIKE'| 'NOT_EQ'| 'IN' ;
37
- workflowManaged?: boolean;
38
- workflowCascadingField?: string;
39
- attachmentType?: string;
40
- lookupFilterList?: Filter[];
41
- buttonType?: string;
42
- hideFiles?: boolean;
43
- behavioralName?: string;
44
- flattenBySubAttribute?: string;
45
- defaultValue?:any;
46
- extraLookupsColumns?: string[];
47
- displayColumn?: string;
48
- searchAttribute?:string;
49
- searchOperator?:"GREATER_THAN_EQUAL" | "GREATER_THAN" | "LESS_THAN" | "LESS_THAN_EQUAL" | "EQUALS" | "LIKE" | "NOT_EQ" | "IN" | "NOT_NULL";
50
-
51
-
52
-
53
- constructor(fieldInfo: FieldInfo) {
54
- this.property = fieldInfo.property;
55
- this.required = fieldInfo.required;
56
- this.type = fieldInfo.type;
57
- this.readonly = fieldInfo.readonly;
58
- this.label = fieldInfo.label;
59
- this.fieldSize = fieldInfo.fieldSize;
60
- this.lookupApiPath = fieldInfo.lookupApiPath ? fieldInfo.lookupApiPath : fieldInfo.property;
61
- this.row = fieldInfo.row;
62
- this.supportedTypes = fieldInfo.supportedTypes;
63
- this.listOptions = fieldInfo.listOptions;
64
- this.pathParams = fieldInfo.pathParams;
65
- this.viewonly = fieldInfo.viewonly;
66
- this.multi = fieldInfo.multi;
67
- this.updateOnly = fieldInfo.updateOnly;
68
- this.includeAllOption = fieldInfo.includeAllOption;
69
- this.defaultListOption = fieldInfo.defaultListOption;
70
- this.acceptNewItem = fieldInfo.acceptNewItem;
71
- this.cascadedBy = fieldInfo.cascadedBy;
72
- this.cascadedByProperty = fieldInfo.cascadedByProperty ? fieldInfo.cascadedByProperty : fieldInfo.cascadedBy;
73
- this.currency = fieldInfo.currency;
74
- this.translate = fieldInfo.translate;
75
- this.advancedFilter = fieldInfo.advancedFilter;
76
- this.placeholder = fieldInfo.placeholder;
77
- this.validators = fieldInfo.validators;
78
- this.filterOperator = fieldInfo.filterOperator;
79
- this.pattern = fieldInfo.pattern;
80
- this.workflowManaged = fieldInfo.workflowManaged;
81
- this.workflowCascadingField = fieldInfo.workflowCascadingField;
82
- this.visible = fieldInfo.visible === undefined || fieldInfo.visible;
83
- this.attachmentType = fieldInfo.attachmentType;
84
- this.lookupFilterList = fieldInfo.lookupFilterList;
85
- this.extraLookupsColumns = fieldInfo.extraLookupsColumns;
86
- this.displayColumn = fieldInfo.displayColumn;
87
- this.textFormat = fieldInfo.textFormat;
88
- this.buttonType = fieldInfo.buttonType;
89
- this.hideFiles = fieldInfo.hideFiles;
90
- this.behavioralName = fieldInfo.behavioralName;
91
- this.flattenBySubAttribute = fieldInfo.flattenBySubAttribute;
92
- this.defaultValue = fieldInfo.defaultValue;
93
- this.searchAttribute = fieldInfo.searchAttribute || this.property;
94
- this.searchOperator = fieldInfo.searchOperator || 'EQUALS';
95
-
96
- }
97
-
98
- }
@@ -1,7 +0,0 @@
1
- export class FieldPredicate {
2
- fieldName: string='';
3
- operator: string='';
4
- fieldType: string='';
5
- firstValue: string='';
6
- secondValue: string='';
7
- }
@@ -1,27 +0,0 @@
1
- import {Filter} from "./filter.model";
2
- import {MATCH_TYPE} from "./SearchStrConfig";
3
-
4
- export class FilterRequest {
5
- filters?: Filter[];
6
- searchStr: string;
7
- pageIndex: number;
8
- pageSize: number;
9
- sortKey: string;
10
- sortDirection: 'ASC'|'DESC';
11
- apiUri: string;
12
- columns: string[];
13
- pendingPage: boolean;
14
- matchType?: MATCH_TYPE;
15
-
16
- constructor(pageSize: number = 10) {
17
- this.apiUri = '';
18
- this.searchStr = '';
19
- this.pageIndex = 0;
20
- this.pageSize = pageSize;
21
- this.sortKey = 'id';
22
- this.sortDirection = "DESC";
23
- this.columns = [];
24
- this.pendingPage = false;
25
- }
26
- }
27
-
@@ -1,49 +0,0 @@
1
- export class Filter {
2
- id?: any;
3
- key?: any;
4
- label?: string;
5
- fieldName?: string;
6
- joinObjectName?: string;
7
- valueObject?: any;
8
- fieldType?: string;
9
- objectFieldName?: string;
10
- filterType?: 'ASSIGNED_TO_ME'|'FILED_FILTER' | 'CLEAR_FILTERS' | 'CUSTOMER_ID'| 'VENDOR_ID' | 'INVOICE_CUSTOMER_ID'|
11
- 'INVOICE_VENDOR_ID' | 'DATE' | 'ASSIGNED_DEPARTMENT'| 'ASSIGNED_DEPARTMENT_MANAGER_STEPS';
12
- operator?: 'GREATER_THAN_EQUAL'|'GREATER_THAN'| 'LESS_THAN'|'LESS_THAN_EQUAL'| 'EQUALS'| 'LIKE'| 'NOT_EQ'| 'IN' | 'NOT_NULL';
13
- firstValue?: any;
14
- secondValue?: string;
15
- values?: string[];
16
- autoSelect?: boolean = false;
17
-
18
- constructor(filter : Filter) {
19
- this.id = filter.id;
20
- this.key = filter.key;
21
- this.label = filter.label;
22
- this.fieldName = filter.fieldName;
23
- this.joinObjectName = filter.joinObjectName;
24
- this.objectFieldName = filter.objectFieldName;
25
- this.valueObject = filter.valueObject;
26
- this.filterType = filter.filterType || 'FILED_FILTER';
27
- this.fieldType = filter.fieldType;
28
- this.operator = filter.operator || 'EQUALS';
29
- this.firstValue = filter.firstValue;
30
- this.secondValue = filter.secondValue;
31
- this.values = filter.values;
32
- this.autoSelect = filter.autoSelect;
33
- }
34
- }
35
-
36
- export const HIDE_TERMINATED: Filter = new Filter(
37
- {key: 2, label: 'hideTerminated', filterType: 'FILED_FILTER', fieldType: 'number' , fieldName: 'statusId', firstValue: '3' , operator: 'NOT_EQ' , autoSelect:true});
38
-
39
- export const ASSIGNED_TO_ME_FILTER: Filter = new Filter(
40
- {key: -1, label: 'Assigned to me', fieldName: 'stepId', filterType: 'ASSIGNED_TO_ME', autoSelect: true});
41
-
42
- export const PENDING_STATUS_FILTER: Filter = new Filter(
43
- {key: -2, label: 'Pending Items', fieldName: 'statusId', firstValue: '2', filterType: 'FILED_FILTER'});
44
-
45
- export const CLEAR_FILTERS: Filter = new Filter(
46
- {key: -3, label: 'clear', filterType:'CLEAR_FILTERS'});
47
-
48
- export const ASSIGNED_DEPARTMENT_FILTER : Filter = new Filter(
49
- {key: -4, label: 'ASSIGNED_DEPARTMENT', filterType:'ASSIGNED_DEPARTMENT'});
@@ -1,24 +0,0 @@
1
- import {Filter} from "./filter.model";
2
-
3
-
4
- export interface GetItemsList {
5
- filters? : Filter[];
6
- apiUri?: string;
7
- pageNumber?: number;
8
- pageSize?: number,
9
- sortBy?: string;
10
- sortDirection?: 'ASC' | 'DESC';
11
- searchStr?:any;
12
- status?: string;
13
- columns?: any[]
14
- }
15
-
16
- export const INIT_GET_ITEMS_LIST = {
17
- apiUri: '',
18
- pageNumber: 0,
19
- pageSize: 10,
20
- sortBy: 'id',
21
- sortDirection: "DESC" as const,
22
- filters: [],
23
- columns: []
24
- }
@@ -1,11 +0,0 @@
1
- export * from './button-action-settings';
2
- export * from './table-column.interface';
3
- export * from './field-info'
4
- export * from './page-info'
5
- export * from './report-request.model'
6
- export * from './filter-request'
7
- export * from './filter.model'
8
- export * from './lookupItem'
9
- export * from './snack-message.model'
10
- export * from './table-page-user-action.interface'
11
- export * from './do-action-request'
@@ -1,21 +0,0 @@
1
- export class LookupItem {
2
- id: number;
3
- arabicName: string;
4
- englishName: string;
5
- defaultValue?: boolean = false;
6
-
7
- constructor(lookup: LookupItem) {
8
- this.id = lookup.id;
9
- this.englishName = lookup.englishName;
10
- this.arabicName = lookup.arabicName;
11
- this.defaultValue = lookup.defaultValue;
12
- }
13
- }
14
-
15
- export const ALL_ITEM= {
16
- id: -100,
17
- arabicName:'Select All',
18
- englishName:'Select All',
19
- defaultValue: false
20
- }
21
-
@@ -1,9 +0,0 @@
1
- import {SnackMessageInterface} from "./snackmessage-interface";
2
-
3
- export class NullSnackMessage implements SnackMessageInterface {
4
- message = '';
5
- translate = false;
6
- type: 'info' | 'success' | 'error' | 'warning' = 'info';
7
- translateParams = {};
8
-
9
- }
@@ -1,33 +0,0 @@
1
- import {ColumnDef} from "./column-def.model";
2
- import {FieldPredicate} from "./field-predicate.model";
3
- import {FilterRequest} from "./filter-request";
4
-
5
- export class ReportRequest {
6
- sessionId: string;
7
- title: string;
8
- prefLang: string;
9
- columns: ColumnDef[];
10
- filter: string;
11
- reportType: 'pdf' | 'xlsx'
12
- dataset: any[];
13
- orientation: string;
14
- searchStr?: string;
15
- filtersList?: FieldPredicate[];
16
- filterRequest?: FilterRequest;
17
- reportCode?: string;
18
- constructor(br : any) {
19
- this.sessionId = br.sessionId;
20
- this.title = br.title;
21
- this.prefLang = br.prefLang;
22
- this.searchStr = br.searchStr;
23
- this.filter = br.filter;
24
- this.columns = br.columns;
25
- this.reportType=br.reportType;
26
- this.dataset = br.dataset;
27
- this.orientation = br.orientation;
28
- this.filtersList = br.filtersList;
29
- this.filterRequest = br.filterRequest;
30
- this.reportCode = br.reportCode;
31
- }
32
-
33
- }