@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
package/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@unifylib/ui-lib" />
5
+ export * from './public-api';
@@ -0,0 +1,8 @@
1
+ export declare enum MATCH_TYPE {
2
+ LIKE = "like",
3
+ MATCH = "match"
4
+ }
5
+ export declare class SearchStrConfig {
6
+ searchStr: string;
7
+ matchType?: MATCH_TYPE;
8
+ }
@@ -5,19 +5,17 @@ export interface ApiResponse {
5
5
  globalMessages?: GlobalMessage[];
6
6
  pagination?: Pagination;
7
7
  }
8
-
9
8
  export interface Pagination {
10
- pageNumber: number ;
11
- pageSize: number ;
12
- totalElements: number ;
13
- totalPages: number ;
9
+ pageNumber: number;
10
+ pageSize: number;
11
+ totalElements: number;
12
+ totalPages: number;
14
13
  }
15
-
16
14
  export interface FieldMessage {
17
15
  message: string;
18
16
  fieldName: string;
19
17
  }
20
18
  export interface GlobalMessage {
21
19
  message: string;
22
- messageType: 'INFO'| 'WARNING' | 'ERROR';
20
+ messageType: 'INFO' | 'WARNING' | 'ERROR';
23
21
  }
@@ -0,0 +1,7 @@
1
+ export declare class AuditLogEntry {
2
+ action: string;
3
+ createdOn: Date;
4
+ createdBy: string;
5
+ subject: any;
6
+ comment: string;
7
+ }
@@ -0,0 +1,16 @@
1
+ export declare class ButtonActionSettings {
2
+ constructor(buttonActionSettings: ButtonActionSettings);
3
+ linkHref?: string | ((row: unknown) => string | null | undefined);
4
+ label: string;
5
+ id: string;
6
+ action?: any;
7
+ key: number;
8
+ isPrimary?: boolean;
9
+ icon?: any;
10
+ showCommentDialog?: boolean;
11
+ comment?: any;
12
+ shareExternal?: boolean;
13
+ selectedId?: number;
14
+ commentRequired?: boolean;
15
+ color?: string;
16
+ }
@@ -0,0 +1,11 @@
1
+ export declare class ColumnDef {
2
+ order: number;
3
+ label: string;
4
+ fieldName: string;
5
+ datatype: string;
6
+ groupLabel: string;
7
+ width: number;
8
+ showSum: boolean;
9
+ showCount: boolean;
10
+ constructor(tableColumn: any, order: number, transLabel: string, lang?: string, groupLabel?: string);
11
+ }
@@ -0,0 +1,10 @@
1
+ export declare const NEW = 1;
2
+ export declare const SAVE = 2;
3
+ export declare const REJECT = 3;
4
+ export declare const APPROVE = 4;
5
+ export declare const SAVE_AND_COMPLETE = 5;
6
+ export declare class DoActionRequest {
7
+ actionId: number;
8
+ comment: string;
9
+ subject: any;
10
+ }
@@ -0,0 +1,6 @@
1
+ import { FieldInfo } from "./field-info";
2
+ export declare class FieldAction {
3
+ pageId: string;
4
+ property: any;
5
+ fieldInfo?: FieldInfo;
6
+ }
@@ -0,0 +1,7 @@
1
+ export declare class FieldFilter {
2
+ fieldName: string;
3
+ operator: string;
4
+ filterType: string;
5
+ fieldType: string;
6
+ valueObject: any;
7
+ }
@@ -0,0 +1,59 @@
1
+ import { ValidatorFn } from "@angular/forms";
2
+ import { Filter } from "./filter.model";
3
+ export declare class FieldInfo {
4
+ property: string;
5
+ targetProperty?: string;
6
+ row: number;
7
+ required: boolean;
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' | 'toggle' | 'bigdecimal' | 'multi-state-checkbox';
9
+ textFormat?: 'json';
10
+ readonly?: boolean;
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;
30
+ validators?: ValidatorFn[];
31
+ placeholder?: any;
32
+ visible?: boolean;
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
+ validationMessages?: any;
50
+ hideLabel?: boolean;
51
+ searchOperator?: "GREATER_THAN_EQUAL" | "GREATER_THAN" | "LESS_THAN" | "LESS_THAN_EQUAL" | "EQUALS" | "LIKE" | "NOT_EQ" | "IN" | "NOT_NULL";
52
+ showSearchIcon?: boolean;
53
+ multiLevelSearchEnable?: boolean;
54
+ maxDecimals?: number;
55
+ emptyReadonlyPlaceholderKey?: string;
56
+ maxLength?: number;
57
+ readonlyDateDisplay?: 'date' | 'datetime';
58
+ constructor(fieldInfo: FieldInfo);
59
+ }
@@ -0,0 +1,7 @@
1
+ export declare class FieldPredicate {
2
+ fieldName: string;
3
+ operator: string;
4
+ fieldType: string;
5
+ firstValue: string;
6
+ secondValue: string;
7
+ }
@@ -0,0 +1,15 @@
1
+ import { Filter } from "./filter.model";
2
+ import { MATCH_TYPE } from "./SearchStrConfig";
3
+ export declare class FilterRequest {
4
+ filters?: Filter[];
5
+ searchStr: string;
6
+ pageIndex: number;
7
+ pageSize: number;
8
+ sortKey: string;
9
+ sortDirection: 'ASC' | 'DESC';
10
+ apiUri: string;
11
+ columns: string[];
12
+ pendingPage: boolean;
13
+ matchType?: MATCH_TYPE;
14
+ constructor(pageSize?: number);
15
+ }
@@ -0,0 +1,22 @@
1
+ export declare 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' | 'INVOICE_VENDOR_ID' | 'DATE' | 'ASSIGNED_DEPARTMENT' | 'ASSIGNED_DEPARTMENT_MANAGER_STEPS';
11
+ operator?: 'GREATER_THAN_EQUAL' | 'GREATER_THAN' | 'LESS_THAN' | 'LESS_THAN_EQUAL' | 'EQUALS' | 'LIKE' | 'NOT_EQ' | 'IN' | 'NOT_NULL';
12
+ firstValue?: any;
13
+ secondValue?: string;
14
+ values?: string[];
15
+ autoSelect?: boolean;
16
+ constructor(filter: Filter);
17
+ }
18
+ export declare const HIDE_TERMINATED: Filter;
19
+ export declare const ASSIGNED_TO_ME_FILTER: Filter;
20
+ export declare const PENDING_STATUS_FILTER: Filter;
21
+ export declare const CLEAR_FILTERS: Filter;
22
+ export declare const ASSIGNED_DEPARTMENT_FILTER: Filter;
@@ -0,0 +1,21 @@
1
+ import { Filter } from "./filter.model";
2
+ export interface GetItemsList {
3
+ filters?: Filter[];
4
+ apiUri?: string;
5
+ pageNumber?: number;
6
+ pageSize?: number;
7
+ sortBy?: string;
8
+ sortDirection?: 'ASC' | 'DESC';
9
+ searchStr?: any;
10
+ status?: string;
11
+ columns?: any[];
12
+ }
13
+ export declare const INIT_GET_ITEMS_LIST: {
14
+ apiUri: string;
15
+ pageNumber: number;
16
+ pageSize: number;
17
+ sortBy: string;
18
+ sortDirection: "DESC";
19
+ filters: any[];
20
+ columns: any[];
21
+ };
@@ -0,0 +1,12 @@
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';
12
+ export * from './permission-matrix.model';
@@ -0,0 +1,6 @@
1
+ export declare class ItemsTotal {
2
+ subtotal: number;
3
+ discount: number;
4
+ grandTotal: number;
5
+ constructor(subtotal: number, discount: number, grandTotal: number);
6
+ }
@@ -0,0 +1,10 @@
1
+ export declare class LineItem {
2
+ itemType?: string | null;
3
+ itemLine: string | null;
4
+ description: string | null;
5
+ unitPrice: number | null;
6
+ discount: number | null;
7
+ totalAmount: number | null;
8
+ quantity: number | null;
9
+ constructor(itemType: string | null, itemLine: string | null, description: string | null, unitPrice: number | null, quantity: number | null, discount: number | null, totalAmount: number | null);
10
+ }
@@ -0,0 +1,13 @@
1
+ export declare class LookupItem {
2
+ id: number;
3
+ arabicName: string;
4
+ englishName: string;
5
+ defaultValue?: boolean;
6
+ constructor(lookup: LookupItem);
7
+ }
8
+ export declare const ALL_ITEM: {
9
+ id: number;
10
+ arabicName: string;
11
+ englishName: string;
12
+ defaultValue: boolean;
13
+ };
@@ -9,13 +9,14 @@ export interface PageInfo {
9
9
  editRoutePath?: string;
10
10
  listRoutePath?: string;
11
11
  hideTitle?: boolean;
12
- saveLabel?:string;
13
- pageHeight?:'full'|'match',
14
- processId?: number,
15
- draftSupported:boolean;
16
- hasExtraTabs?:boolean;
12
+ hideSubtitle?: boolean;
13
+ saveLabel?: string;
14
+ pageHeight?: 'full' | 'match';
15
+ processId?: number;
16
+ draftSupported: boolean;
17
+ hasExtraTabs?: boolean;
17
18
  attachmentEnabled?: boolean;
18
- attachmentDefaultExternal?:boolean;
19
+ attachmentDefaultExternal?: boolean;
19
20
  printAction?: boolean;
20
21
  completedStatusFilterLabel?: string;
21
22
  enableHideTerminated?: boolean;
@@ -25,27 +26,28 @@ export interface PageInfo {
25
26
  hideExtractButton?: boolean;
26
27
  hideReportsExtractButton?: boolean;
27
28
  externalPropertyName?: string;
28
- lazyLoadData?:boolean;
29
+ lazyLoadData?: boolean;
29
30
  groupByProperty?: string;
30
31
  groupByValue?: string[];
31
32
  supportGroupingInExport?: boolean;
32
33
  pageSize?: number;
33
34
  hideAuditLog?: boolean;
35
+ stayOnPage?: boolean;
36
+ hideAdvancedFilter?: boolean;
34
37
  }
35
-
36
- export const EMPTY_PAGE_INFO = {
37
- id: "",
38
- labelsSection: "",
39
- hasAddButton: false,
40
- selfRouting: true,
41
- draftSupported: false,
42
- hasExtraTabs: false,
43
- attachmentEnabled:false,
44
- printAction: false,
45
- hidePagination: false,
46
- attachmentDefaultExternal: false,
47
- supportGroupingInExport: false,
48
- hideReportsExtractButton: false,
49
- hideAuditLog: false
50
-
51
- }
38
+ export declare const EMPTY_PAGE_INFO: {
39
+ id: string;
40
+ labelsSection: string;
41
+ hasAddButton: boolean;
42
+ selfRouting: boolean;
43
+ draftSupported: boolean;
44
+ hasExtraTabs: boolean;
45
+ attachmentEnabled: boolean;
46
+ printAction: boolean;
47
+ hidePagination: boolean;
48
+ attachmentDefaultExternal: boolean;
49
+ supportGroupingInExport: boolean;
50
+ hideReportsExtractButton: boolean;
51
+ hideAuditLog: boolean;
52
+ stayOnPage: boolean;
53
+ };
@@ -0,0 +1,18 @@
1
+ export interface PermissionConfig {
2
+ key: string;
3
+ labelKey: string;
4
+ combinedKeys?: string[];
5
+ }
6
+ export interface PermissionMatrixItem {
7
+ id?: string | number;
8
+ title: string;
9
+ description?: string;
10
+ expanded?: boolean;
11
+ permissions: Record<string, boolean>;
12
+ [key: string]: unknown;
13
+ }
14
+ export interface PermissionChangeEvent {
15
+ item: PermissionMatrixItem;
16
+ permissionKey: string;
17
+ newValue: boolean;
18
+ }
@@ -0,0 +1,18 @@
1
+ import { ColumnDef } from "./column-def.model";
2
+ import { FieldPredicate } from "./field-predicate.model";
3
+ import { FilterRequest } from "./filter-request";
4
+ export declare class ReportRequest {
5
+ sessionId: string;
6
+ title: string;
7
+ prefLang: string;
8
+ columns: ColumnDef[];
9
+ filter: string;
10
+ reportType: 'pdf' | 'xlsx';
11
+ dataset: any[];
12
+ orientation: string;
13
+ searchStr?: string;
14
+ filtersList?: FieldPredicate[];
15
+ filterRequest?: FilterRequest;
16
+ reportCode?: string;
17
+ constructor(br: any);
18
+ }
@@ -0,0 +1,8 @@
1
+ export declare class ResponseEnvelop {
2
+ valid: boolean;
3
+ messages: string[];
4
+ body: any;
5
+ pagesCount: number;
6
+ totalSize: number;
7
+ constructor(responseEnvelop: ResponseEnvelop);
8
+ }
@@ -0,0 +1,7 @@
1
+ export declare class SnackMessage {
2
+ message: string;
3
+ translate: boolean;
4
+ type: 'info' | 'success' | 'error' | 'warning';
5
+ translateParams: any;
6
+ constructor(message: string, translate?: boolean, type?: any, translateParams?: any);
7
+ }
@@ -0,0 +1,31 @@
1
+ export interface TableColumn<T> {
2
+ property: string;
3
+ type: 'text' | 'croppedText' | 'image' | 'netAmount' | 'workflowStatus' | 'onOff' | 'progress' | 'checkbox' | 'button' | 'date' | 'number' | 'icon' | 'bigdecimal' | 'builder' | 'localDateTime' | 'report-sequence' | 'listAction' | 'info' | 'stateType' | 'hyper-text' | 'year' | 'reportType' | 'status';
4
+ viewType?: string;
5
+ enableSorting: boolean;
6
+ visible?: boolean;
7
+ cssClasses?: string[];
8
+ reportVisible?: boolean | true;
9
+ reportProperty?: string;
10
+ reportType?: string;
11
+ showSum?: boolean;
12
+ showCount?: boolean;
13
+ translate?: boolean;
14
+ width?: number;
15
+ label?: string;
16
+ reportwidth?: number;
17
+ langDrivenName?: boolean;
18
+ additionalProperty?: string;
19
+ currency?: string;
20
+ orderByProperty?: string;
21
+ advancedFilter?: boolean;
22
+ enableQuickFilter?: boolean;
23
+ format?: string;
24
+ group?: string;
25
+ arraySubProperty?: string;
26
+ digitInfo?: string;
27
+ sortKey?: string;
28
+ mobileCardId?: boolean;
29
+ mobileCardStatus?: boolean;
30
+ }
31
+ export declare const FRONT_END_COLUMN_TYPES: string[];
@@ -0,0 +1,14 @@
1
+ import { PageInfo } from "./page-info";
2
+ export interface TablePageUserAction {
3
+ type: 'add' | 'select' | 'extra';
4
+ id?: number;
5
+ item?: any;
6
+ actionKey?: string;
7
+ pageInfo?: PageInfo;
8
+ }
9
+ export declare const SELECT_RECORD_ACTION: TablePageUserAction;
10
+ export declare const EXTRA_ACTION: TablePageUserAction;
11
+ export declare const DRILL_DOWN_ACTION: TablePageUserAction;
12
+ export declare const JUNIOR_DOWN_ACTION: TablePageUserAction;
13
+ export declare const ADD_NEW_RECORD_ACTION: TablePageUserAction;
14
+ export declare const TABLE_RECORD_ACTION: TablePageUserAction;
@@ -0,0 +1,7 @@
1
+ export declare class WorkflowStep {
2
+ stepId?: number;
3
+ stepName: string;
4
+ stepNameAr: string;
5
+ isObsoleted: boolean;
6
+ description: string;
7
+ }
@@ -0,0 +1,13 @@
1
+ import { WorkflowStep } from "./workflow-steps.model";
2
+ export declare class Workflow {
3
+ id: number;
4
+ corporateWorkflowId: number;
5
+ corporateId: number;
6
+ workflowProcessId: number;
7
+ workflowSteps: WorkflowStep[];
8
+ rejectionStrategy: 'TERMINATE' | 'STEP_BACK' | 'CREATE_STEP';
9
+ processName: string;
10
+ constructor(workflow: Workflow);
11
+ }
12
+ export declare const PROCESS_NAMES_MAP: Record<number, string>;
13
+ export declare const SEQ_PROCESS_NAMES_MAP: Record<number, string>;
@@ -0,0 +1,35 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { MatDialogRef } from '@angular/material/dialog';
3
+ import { TranslateService } from '@ngx-translate/core';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ActionCommentComponent implements OnInit {
6
+ dialogRef: MatDialogRef<ActionCommentComponent>;
7
+ data: any;
8
+ translate: TranslateService;
9
+ itemName: string;
10
+ titleKey: string;
11
+ subtitleKey: string;
12
+ reasonLabelKey: string;
13
+ placeholderKey: string;
14
+ warningKey: string;
15
+ cancelKey: string;
16
+ actionKey: string;
17
+ currentDirection: 'ltr' | 'rtl';
18
+ actionLabel: string;
19
+ isTermination: boolean;
20
+ comment: string;
21
+ otherComment: string;
22
+ external: boolean;
23
+ signingRequired: boolean;
24
+ tokenReference: string;
25
+ otp: string;
26
+ isSubmitted: boolean;
27
+ warningMsg: boolean;
28
+ constructor(dialogRef: MatDialogRef<ActionCommentComponent>, data: any, translate: TranslateService);
29
+ onKeyUp(): void;
30
+ ngOnInit(): void;
31
+ commentAndClose(): boolean;
32
+ cancel(): void;
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<ActionCommentComponent, never>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<ActionCommentComponent, "app-action-comment", never, {}, {}, never, never, true, never>;
35
+ }
@@ -0,0 +1,27 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { MatDialogRef } from "@angular/material/dialog";
3
+ import * as i0 from "@angular/core";
4
+ export interface IconConfig {
5
+ name: string;
6
+ color: string;
7
+ }
8
+ export declare class ActionConfirmationComponent implements OnInit {
9
+ dialogRef: MatDialogRef<ActionConfirmationComponent>;
10
+ data: any;
11
+ icon: IconConfig;
12
+ acceptActionLabel: string;
13
+ rejectActionLabel: string;
14
+ subMsg: string;
15
+ titleMsg: string;
16
+ listTitle: string;
17
+ listMessages: string[];
18
+ extraWarningMsg: string;
19
+ currentDirection: 'ltr' | 'rtl';
20
+ constructor(dialogRef: MatDialogRef<ActionConfirmationComponent>, data: any);
21
+ onKeyUp(): void;
22
+ ngOnInit(): void;
23
+ commentAndClose(): string;
24
+ cancel(): void;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<ActionConfirmationComponent, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<ActionConfirmationComponent, "app-action-confirmation", never, { "icon": { "alias": "icon"; "required": false; }; }, {}, never, never, true, never>;
27
+ }
@@ -0,0 +1,93 @@
1
+ import { EventEmitter, Injector, OnInit } from '@angular/core';
2
+ import { FieldInfo } from "../../base-model/field-info";
3
+ import { PageInfo } from "../../base-model/page-info";
4
+ import { TableColumn } from "../../base-model/table-column.interface";
5
+ import { FieldMessage } from "../../base-model/api-response";
6
+ import { TranslateService } from "@ngx-translate/core";
7
+ import { BackendService } from "../../services/backend-service";
8
+ import { ActivatedRoute, Router } from "@angular/router";
9
+ import { FormBuilder, FormGroup } from "@angular/forms";
10
+ import { ReportRequest } from "../../base-model/report-request.model";
11
+ import { TablePageUserAction } from "../../base-model";
12
+ import { MatDialog } from "@angular/material/dialog";
13
+ import { Directionality } from "@angular/cdk/bidi";
14
+ import * as i0 from "@angular/core";
15
+ export declare class ActivityReportFormComponent implements OnInit {
16
+ private translateService;
17
+ backendService: BackendService;
18
+ private activatedRoute;
19
+ private injector;
20
+ private router;
21
+ private route;
22
+ dialog: MatDialog;
23
+ private directionality;
24
+ private fb;
25
+ showDetails: any;
26
+ showExtractButton: boolean;
27
+ columns: TableColumn<any>[];
28
+ private originalColumns;
29
+ actionRequestCallback: (actionRequest: TablePageUserAction) => TablePageUserAction;
30
+ enrichDrillDownReportRequest: (actionRequest: TablePageUserAction, reportRequest: ReportRequest) => TablePageUserAction;
31
+ enrichHyperLinkReportRequest: (actionRequest: TablePageUserAction, reportRequest: ReportRequest) => TablePageUserAction;
32
+ enrichJuniorReportRequest: (actionRequest: TablePageUserAction, reportRequest: ReportRequest) => TablePageUserAction;
33
+ userAction: EventEmitter<TablePageUserAction>;
34
+ activeLevel: number;
35
+ items: number[];
36
+ private filterRequest;
37
+ x: any;
38
+ isEditable: boolean;
39
+ fields: FieldInfo[];
40
+ pageInfo: PageInfo;
41
+ drillDownPageInfo: PageInfo;
42
+ drillDownColumns: TableColumn<any>[];
43
+ hideDrillDownButton: false;
44
+ juniorPageInfo: PageInfo;
45
+ juniorColumns: TableColumn<any>[];
46
+ columnsDefinition: TableColumn<any>[];
47
+ types: string[];
48
+ searchStr: string;
49
+ errors: FieldMessage[];
50
+ reloadData: boolean;
51
+ drillDownRequestStack: any[];
52
+ reportRequest: ReportRequest;
53
+ childReportRequest: ReportRequest;
54
+ juniorReportRequest: ReportRequest;
55
+ reportForm: FormGroup;
56
+ readyToSearch: boolean;
57
+ private pageSize;
58
+ private dialogReportRequest;
59
+ currentDirection: 'ltr' | 'rtl';
60
+ protected isComparisonReport: boolean;
61
+ constructor(translateService: TranslateService, backendService: BackendService, activatedRoute: ActivatedRoute, injector: Injector, router: Router, route: ActivatedRoute, dialog: MatDialog, directionality: Directionality, fb: FormBuilder);
62
+ ngOnInit(): void;
63
+ private initializeComparisonReport;
64
+ private setupForm;
65
+ private removeCheckboxFields;
66
+ private setupFilters;
67
+ private setupJuniorReportRequest;
68
+ isMatchHeight(): boolean;
69
+ doAction(type: string): void;
70
+ private getParamValue;
71
+ private getParamValueLabel;
72
+ getTitle(): string;
73
+ updateForm($event: FormGroup): void;
74
+ isValidForm(): boolean;
75
+ emitUserAction($event: TablePageUserAction): void;
76
+ emitHyperLinkAction($event: TablePageUserAction): void;
77
+ emitJuniorAction($event: TablePageUserAction): void;
78
+ drillDown(): void;
79
+ private doJuniorAction;
80
+ private doADrillDownAction;
81
+ private addOrUpdateFilter;
82
+ private doHyperLinkAction;
83
+ extractReport(reportType: any): void;
84
+ goUp(): void;
85
+ drillDownEnabled(): boolean;
86
+ drillDownLabel(): string;
87
+ getIsEmptyList(): boolean;
88
+ clear(): void;
89
+ isFormEmpty(): boolean;
90
+ shouldProcessEventItem(item: any): boolean;
91
+ static ɵfac: i0.ɵɵFactoryDeclaration<ActivityReportFormComponent, never>;
92
+ static ɵcmp: i0.ɵɵComponentDeclaration<ActivityReportFormComponent, "app-report-form", never, { "showDetails": { "alias": "showDetails"; "required": false; }; "showExtractButton": { "alias": "showExtractButton"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "actionRequestCallback": { "alias": "actionRequestCallback"; "required": false; }; "enrichDrillDownReportRequest": { "alias": "enrichDrillDownReportRequest"; "required": false; }; "enrichHyperLinkReportRequest": { "alias": "enrichHyperLinkReportRequest"; "required": false; }; "enrichJuniorReportRequest": { "alias": "enrichJuniorReportRequest"; "required": false; }; }, { "userAction": "userAction"; }, never, never, true, never>;
93
+ }