@unifylib/ui-lib 1.1.3 → 1.1.5

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 (286) 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 +16 -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 +57 -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 +12 -0
  16. package/esm2022/lib/base-model/items-total.model.mjs +8 -0
  17. package/esm2022/lib/base-model/line-item.model.mjs +11 -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/report-request.model.mjs +17 -0
  21. package/esm2022/lib/base-model/response-envelop.model.mjs +10 -0
  22. package/esm2022/lib/base-model/snack-message.model.mjs +11 -0
  23. package/esm2022/lib/base-model/table-column.interface.mjs +2 -0
  24. package/esm2022/lib/base-model/table-page-user-action.interface.mjs +21 -0
  25. package/esm2022/lib/base-model/workflow/workflow-steps.model.mjs +9 -0
  26. package/esm2022/lib/base-model/workflow/workflow.model.mjs +42 -0
  27. package/esm2022/lib/components/action-comment/action-comment.component.mjs +101 -0
  28. package/esm2022/lib/components/action-confirmation/action-confirmation.component.mjs +55 -0
  29. package/esm2022/lib/components/activity-report-form/activity-report-form.component.mjs +499 -0
  30. package/esm2022/lib/components/advanced-filter/field-filter/field-filter.component.mjs +41 -0
  31. package/esm2022/lib/components/advanced-filter/filter-builder/filter-builder.component.mjs +162 -0
  32. package/esm2022/lib/components/audit-log-details-dialog/audit-log-details-dialog.component.mjs +70 -0
  33. package/esm2022/lib/components/audit-log-list/audit-log.component.mjs +99 -0
  34. package/esm2022/lib/components/auto-complete/auto-complete.component.mjs +292 -0
  35. package/esm2022/lib/components/base-form/base-form.component.mjs +297 -0
  36. package/esm2022/lib/components/base-form-canvas/base-form-canvas.component.mjs +591 -0
  37. package/esm2022/lib/components/base-input-dialog/base-input-dialog.component.mjs +72 -0
  38. package/esm2022/lib/components/base-table/base-table.component.mjs +514 -0
  39. package/esm2022/lib/components/button-actions/button-actions.component.mjs +70 -0
  40. package/esm2022/lib/components/editable-base-table/editable-base-table.component.mjs +496 -0
  41. package/esm2022/lib/components/equation-builder/equation-builder.component.mjs +112 -0
  42. package/esm2022/lib/components/item-line-editor/item-line-editor.component.mjs +299 -0
  43. package/esm2022/lib/components/multi-auto-complete/multi-auto-complete.component.mjs +278 -0
  44. package/esm2022/lib/components/paginator/paginator.component.mjs +91 -0
  45. package/esm2022/lib/components/report-details-dialog/report-details-dialog.component.mjs +102 -0
  46. package/esm2022/lib/components/report-form/report-form.component.mjs +498 -0
  47. package/esm2022/lib/components/search-bar/search-bar.component.mjs +62 -0
  48. package/esm2022/lib/components/section-form-canvas/section-form-canvas.component.mjs +81 -0
  49. package/esm2022/lib/components/shared/action-button/action-button.component.mjs +59 -0
  50. package/esm2022/lib/components/shared/action-card/action-card.component.mjs +93 -0
  51. package/esm2022/lib/components/shared/attachment-uploader/attachment-uploader.component.mjs +70 -0
  52. package/esm2022/lib/components/shared-list/shared-list.component.mjs +47 -0
  53. package/esm2022/lib/components/snackbar-static/snackbar-static.component.mjs +43 -0
  54. package/esm2022/lib/components/title-bar/title-bar.component.mjs +119 -0
  55. package/esm2022/lib/services/backend-service.mjs +240 -0
  56. package/esm2022/lib/services/index.mjs +4 -0
  57. package/esm2022/lib/services/top-panel.mjs +22 -0
  58. package/esm2022/lib/services/trigger-form.service.mjs +17 -0
  59. package/esm2022/lib/utils/base-utils.mjs +97 -0
  60. package/esm2022/lib/validators/date-range-validator.mjs +27 -0
  61. package/esm2022/lib/validators/index.mjs +4 -0
  62. package/esm2022/lib/validators/match-list.validator.mjs +9 -0
  63. package/esm2022/lib/validators/multi-email-validator.mjs +13 -0
  64. package/esm2022/public-api.mjs +29 -0
  65. package/esm2022/q-btech-ui-lib.mjs +5 -0
  66. package/esm2022/unifylib-ui-lib.mjs +5 -0
  67. package/fesm2022/iq-ui-lib.mjs +5625 -0
  68. package/fesm2022/iq-ui-lib.mjs.map +1 -0
  69. package/fesm2022/q-btech-ui-lib.mjs +5619 -0
  70. package/fesm2022/q-btech-ui-lib.mjs.map +1 -0
  71. package/fesm2022/unifylib-ui-lib.mjs +5625 -0
  72. package/fesm2022/unifylib-ui-lib.mjs.map +1 -0
  73. package/index.d.ts +5 -0
  74. package/lib/base-model/SearchStrConfig.d.ts +8 -0
  75. package/{src/lib/base-model/api-response.ts → lib/base-model/api-response.d.ts} +21 -23
  76. package/lib/base-model/audit-log-entry.d.ts +7 -0
  77. package/lib/base-model/button-action-settings.d.ts +15 -0
  78. package/lib/base-model/column-def.model.d.ts +11 -0
  79. package/lib/base-model/do-action-request.d.ts +10 -0
  80. package/lib/base-model/field-action.d.ts +6 -0
  81. package/lib/base-model/field-filter.model.d.ts +7 -0
  82. package/lib/base-model/field-info.d.ts +53 -0
  83. package/lib/base-model/field-predicate.model.d.ts +7 -0
  84. package/lib/base-model/filter-request.d.ts +15 -0
  85. package/lib/base-model/filter.model.d.ts +22 -0
  86. package/lib/base-model/get-items-list.d.ts +21 -0
  87. package/lib/base-model/index.d.ts +11 -0
  88. package/lib/base-model/items-total.model.d.ts +6 -0
  89. package/lib/base-model/line-item.model.d.ts +9 -0
  90. package/lib/base-model/lookupItem.d.ts +13 -0
  91. package/lib/base-model/page-info.d.ts +52 -0
  92. package/lib/base-model/report-request.model.d.ts +18 -0
  93. package/lib/base-model/response-envelop.model.d.ts +8 -0
  94. package/lib/base-model/snack-message.model.d.ts +7 -0
  95. package/lib/base-model/table-column.interface.d.ts +28 -0
  96. package/lib/base-model/table-page-user-action.interface.d.ts +14 -0
  97. package/lib/base-model/workflow/workflow-steps.model.d.ts +7 -0
  98. package/lib/base-model/workflow/workflow.model.d.ts +13 -0
  99. package/lib/components/action-comment/action-comment.component.d.ts +32 -0
  100. package/lib/components/action-confirmation/action-confirmation.component.d.ts +19 -0
  101. package/lib/components/activity-report-form/activity-report-form.component.d.ts +93 -0
  102. package/lib/components/advanced-filter/field-filter/field-filter.component.d.ts +20 -0
  103. package/lib/components/advanced-filter/filter-builder/filter-builder.component.d.ts +28 -0
  104. package/lib/components/audit-log-details-dialog/audit-log-details-dialog.component.d.ts +25 -0
  105. package/lib/components/audit-log-list/audit-log.component.d.ts +36 -0
  106. package/lib/components/auto-complete/auto-complete.component.d.ts +51 -0
  107. package/lib/components/base-form/base-form.component.d.ts +59 -0
  108. package/lib/components/base-form-canvas/base-form-canvas.component.d.ts +124 -0
  109. package/lib/components/base-input-dialog/base-input-dialog.component.d.ts +23 -0
  110. package/lib/components/base-table/base-table.component.d.ts +128 -0
  111. package/lib/components/button-actions/button-actions.component.d.ts +17 -0
  112. package/lib/components/editable-base-table/editable-base-table.component.d.ts +106 -0
  113. package/lib/components/equation-builder/equation-builder.component.d.ts +23 -0
  114. package/lib/components/item-line-editor/item-line-editor.component.d.ts +64 -0
  115. package/lib/components/multi-auto-complete/multi-auto-complete.component.d.ts +51 -0
  116. package/lib/components/paginator/paginator.component.d.ts +26 -0
  117. package/lib/components/report-details-dialog/report-details-dialog.component.d.ts +34 -0
  118. package/lib/components/report-form/report-form.component.d.ts +92 -0
  119. package/lib/components/search-bar/search-bar.component.d.ts +29 -0
  120. package/lib/components/section-form-canvas/section-form-canvas.component.d.ts +27 -0
  121. package/lib/components/shared/action-button/action-button.component.d.ts +17 -0
  122. package/lib/components/shared/action-card/action-card.component.d.ts +37 -0
  123. package/lib/components/shared/attachment-uploader/attachment-uploader.component.d.ts +16 -0
  124. package/lib/components/shared-list/shared-list.component.d.ts +21 -0
  125. package/lib/components/snackbar-static/snackbar-static.component.d.ts +15 -0
  126. package/lib/components/title-bar/title-bar.component.d.ts +42 -0
  127. package/lib/services/backend-service.d.ts +59 -0
  128. package/{src/lib/services/index.ts → lib/services/index.d.ts} +3 -3
  129. package/lib/services/top-panel.d.ts +8 -0
  130. package/lib/services/trigger-form.service.d.ts +7 -0
  131. package/lib/utils/base-utils.d.ts +13 -0
  132. package/lib/validators/date-range-validator.d.ts +2 -0
  133. package/{src/lib/validators/index.ts → lib/validators/index.d.ts} +3 -3
  134. package/lib/validators/match-list.validator.d.ts +4 -0
  135. package/lib/validators/multi-email-validator.d.ts +6 -0
  136. package/package.json +27 -14
  137. package/{src/public-api.ts → public-api.d.ts} +25 -29
  138. package/ng-package.json +0 -7
  139. package/src/lib/base-model/SearchStrConfig.ts +0 -12
  140. package/src/lib/base-model/audit-log-entry.ts +0 -7
  141. package/src/lib/base-model/button-action-settings.ts +0 -29
  142. package/src/lib/base-model/column-def.model.ts +0 -34
  143. package/src/lib/base-model/do-action-request.ts +0 -11
  144. package/src/lib/base-model/feature-item.ts +0 -9
  145. package/src/lib/base-model/field-action.ts +0 -7
  146. package/src/lib/base-model/field-filter.model.ts +0 -7
  147. package/src/lib/base-model/field-info.ts +0 -102
  148. package/src/lib/base-model/field-predicate.model.ts +0 -7
  149. package/src/lib/base-model/filter-request.ts +0 -27
  150. package/src/lib/base-model/filter.model.ts +0 -49
  151. package/src/lib/base-model/get-items-list.ts +0 -24
  152. package/src/lib/base-model/index.ts +0 -11
  153. package/src/lib/base-model/items-total.model.ts +0 -12
  154. package/src/lib/base-model/line-item.model.ts +0 -18
  155. package/src/lib/base-model/lookupItem.ts +0 -21
  156. package/src/lib/base-model/null-snackmessage.ts +0 -9
  157. package/src/lib/base-model/page-info.ts +0 -54
  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-comment/action-comment.component.css +0 -52
  167. package/src/lib/components/action-comment/action-comment.component.html +0 -47
  168. package/src/lib/components/action-comment/action-comment.component.spec.ts +0 -23
  169. package/src/lib/components/action-comment/action-comment.component.ts +0 -102
  170. package/src/lib/components/action-confirmation/action-confirmation.component.css +0 -46
  171. package/src/lib/components/action-confirmation/action-confirmation.component.html +0 -32
  172. package/src/lib/components/action-confirmation/action-confirmation.component.spec.ts +0 -23
  173. package/src/lib/components/action-confirmation/action-confirmation.component.ts +0 -58
  174. package/src/lib/components/activity-report-form/activity-report-form.component.html +0 -110
  175. package/src/lib/components/activity-report-form/activity-report-form.component.scss +0 -69
  176. package/src/lib/components/activity-report-form/activity-report-form.component.spec.ts +0 -25
  177. package/src/lib/components/activity-report-form/activity-report-form.component.ts +0 -616
  178. package/src/lib/components/advanced-filter/field-filter/field-filter.component.html +0 -8
  179. package/src/lib/components/advanced-filter/field-filter/field-filter.component.scss +0 -0
  180. package/src/lib/components/advanced-filter/field-filter/field-filter.component.spec.ts +0 -25
  181. package/src/lib/components/advanced-filter/field-filter/field-filter.component.ts +0 -55
  182. package/src/lib/components/advanced-filter/filter-builder/filter-builder.component.html +0 -36
  183. package/src/lib/components/advanced-filter/filter-builder/filter-builder.component.scss +0 -130
  184. package/src/lib/components/advanced-filter/filter-builder/filter-builder.component.spec.ts +0 -25
  185. package/src/lib/components/advanced-filter/filter-builder/filter-builder.component.ts +0 -186
  186. package/src/lib/components/audit-log-details-dialog/audit-log-details-dialog.component.css +0 -51
  187. package/src/lib/components/audit-log-details-dialog/audit-log-details-dialog.component.html +0 -23
  188. package/src/lib/components/audit-log-details-dialog/audit-log-details-dialog.component.spec.ts +0 -23
  189. package/src/lib/components/audit-log-details-dialog/audit-log-details-dialog.component.ts +0 -69
  190. package/src/lib/components/audit-log-list/audit-log.component.html +0 -26
  191. package/src/lib/components/audit-log-list/audit-log.component.scss +0 -50
  192. package/src/lib/components/audit-log-list/audit-log.component.spec.ts +0 -25
  193. package/src/lib/components/audit-log-list/audit-log.component.ts +0 -114
  194. package/src/lib/components/auto-complete/auto-complete.component.css +0 -55
  195. package/src/lib/components/auto-complete/auto-complete.component.html +0 -45
  196. package/src/lib/components/auto-complete/auto-complete.component.spec.ts +0 -23
  197. package/src/lib/components/auto-complete/auto-complete.component.ts +0 -331
  198. package/src/lib/components/base-form/base-form.component.html +0 -59
  199. package/src/lib/components/base-form/base-form.component.scss +0 -68
  200. package/src/lib/components/base-form/base-form.component.spec.ts +0 -25
  201. package/src/lib/components/base-form/base-form.component.ts +0 -323
  202. package/src/lib/components/base-form-canvas/base-form-canvas.component.css +0 -196
  203. package/src/lib/components/base-form-canvas/base-form-canvas.component.html +0 -1095
  204. package/src/lib/components/base-form-canvas/base-form-canvas.component.spec.ts +0 -23
  205. package/src/lib/components/base-form-canvas/base-form-canvas.component.ts +0 -680
  206. package/src/lib/components/base-input-dialog/base-input-dialog.component.css +0 -67
  207. package/src/lib/components/base-input-dialog/base-input-dialog.component.html +0 -47
  208. package/src/lib/components/base-input-dialog/base-input-dialog.component.spec.ts +0 -23
  209. package/src/lib/components/base-input-dialog/base-input-dialog.component.ts +0 -77
  210. package/src/lib/components/base-table/base-table.component.html +0 -268
  211. package/src/lib/components/base-table/base-table.component.scss +0 -140
  212. package/src/lib/components/base-table/base-table.component.spec.ts +0 -25
  213. package/src/lib/components/base-table/base-table.component.ts +0 -621
  214. package/src/lib/components/button-actions/button-actions.component.html +0 -27
  215. package/src/lib/components/button-actions/button-actions.component.scss +0 -101
  216. package/src/lib/components/button-actions/button-actions.component.spec.ts +0 -23
  217. package/src/lib/components/button-actions/button-actions.component.ts +0 -70
  218. package/src/lib/components/editable-base-table/editable-base-table.component.html +0 -337
  219. package/src/lib/components/editable-base-table/editable-base-table.component.scss +0 -126
  220. package/src/lib/components/editable-base-table/editable-base-table.component.spec.ts +0 -25
  221. package/src/lib/components/editable-base-table/editable-base-table.component.ts +0 -579
  222. package/src/lib/components/equation-builder/equation-builder.component.css +0 -39
  223. package/src/lib/components/equation-builder/equation-builder.component.html +0 -31
  224. package/src/lib/components/equation-builder/equation-builder.component.spec.ts +0 -23
  225. package/src/lib/components/equation-builder/equation-builder.component.ts +0 -119
  226. package/src/lib/components/item-line-editor/item-line-editor.component.html +0 -102
  227. package/src/lib/components/item-line-editor/item-line-editor.component.scss +0 -152
  228. package/src/lib/components/item-line-editor/item-line-editor.component.spec.ts +0 -23
  229. package/src/lib/components/item-line-editor/item-line-editor.component.ts +0 -306
  230. package/src/lib/components/multi-auto-complete/multi-auto-complete.component.css +0 -19
  231. package/src/lib/components/multi-auto-complete/multi-auto-complete.component.html +0 -38
  232. package/src/lib/components/multi-auto-complete/multi-auto-complete.component.spec.ts +0 -23
  233. package/src/lib/components/multi-auto-complete/multi-auto-complete.component.ts +0 -315
  234. package/src/lib/components/paginator/paginator.component.css +0 -65
  235. package/src/lib/components/paginator/paginator.component.html +0 -30
  236. package/src/lib/components/paginator/paginator.component.ts +0 -87
  237. package/src/lib/components/report-details-dialog/report-details-dialog.component.css +0 -17
  238. package/src/lib/components/report-details-dialog/report-details-dialog.component.html +0 -16
  239. package/src/lib/components/report-details-dialog/report-details-dialog.component.spec.ts +0 -23
  240. package/src/lib/components/report-details-dialog/report-details-dialog.component.ts +0 -111
  241. package/src/lib/components/report-form/report-form.component.html +0 -92
  242. package/src/lib/components/report-form/report-form.component.scss +0 -51
  243. package/src/lib/components/report-form/report-form.component.spec.ts +0 -25
  244. package/src/lib/components/report-form/report-form.component.ts +0 -599
  245. package/src/lib/components/search-bar/search-bar.component.html +0 -51
  246. package/src/lib/components/search-bar/search-bar.component.scss +0 -63
  247. package/src/lib/components/search-bar/search-bar.component.spec.ts +0 -25
  248. package/src/lib/components/search-bar/search-bar.component.ts +0 -68
  249. package/src/lib/components/section-form-canvas/section-form-canvas.component.html +0 -43
  250. package/src/lib/components/section-form-canvas/section-form-canvas.component.scss +0 -81
  251. package/src/lib/components/section-form-canvas/section-form-canvas.component.spec.ts +0 -23
  252. package/src/lib/components/section-form-canvas/section-form-canvas.component.ts +0 -67
  253. package/src/lib/components/shared/action-button/action-button.component.html +0 -12
  254. package/src/lib/components/shared/action-button/action-button.component.scss +0 -45
  255. package/src/lib/components/shared/action-button/action-button.component.ts +0 -51
  256. package/src/lib/components/shared/action-card/action-card.component.html +0 -78
  257. package/src/lib/components/shared/action-card/action-card.component.scss +0 -238
  258. package/src/lib/components/shared/action-card/action-card.component.ts +0 -56
  259. package/src/lib/components/shared/attachment-uploader/attachment-uploader.component.css +0 -135
  260. package/src/lib/components/shared/attachment-uploader/attachment-uploader.component.html +0 -36
  261. package/src/lib/components/shared/attachment-uploader/attachment-uploader.component.spec.ts +0 -23
  262. package/src/lib/components/shared/attachment-uploader/attachment-uploader.component.ts +0 -71
  263. package/src/lib/components/shared-list/shared-list.component.css +0 -0
  264. package/src/lib/components/shared-list/shared-list.component.html +0 -17
  265. package/src/lib/components/shared-list/shared-list.component.spec.ts +0 -23
  266. package/src/lib/components/shared-list/shared-list.component.ts +0 -53
  267. package/src/lib/components/snackbar-static/snackbar-static.component.html +0 -20
  268. package/src/lib/components/snackbar-static/snackbar-static.component.scss +0 -135
  269. package/src/lib/components/snackbar-static/snackbar-static.component.ts +0 -26
  270. package/src/lib/components/title-bar/title-bar.component.css +0 -0
  271. package/src/lib/components/title-bar/title-bar.component.css.map +0 -1
  272. package/src/lib/components/title-bar/title-bar.component.html +0 -35
  273. package/src/lib/components/title-bar/title-bar.component.scss +0 -126
  274. package/src/lib/components/title-bar/title-bar.component.spec.ts +0 -23
  275. package/src/lib/components/title-bar/title-bar.component.ts +0 -126
  276. package/src/lib/services/backend-service.ts +0 -287
  277. package/src/lib/services/top-panel.ts +0 -17
  278. package/src/lib/services/trigger-form.service.ts +0 -11
  279. package/src/lib/share-module/shared-module.ts +0 -10
  280. package/src/lib/utils/base-utils.ts +0 -102
  281. package/src/lib/validators/date-range-validator.ts +0 -31
  282. package/src/lib/validators/match-list.validator.ts +0 -10
  283. package/src/lib/validators/multi-email-validator.ts +0 -15
  284. package/tsconfig.lib.json +0 -15
  285. package/tsconfig.lib.prod.json +0 -11
  286. package/tsconfig.spec.json +0 -15
@@ -1,29 +0,0 @@
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
- }
28
-
29
- export const FRONT_END_COLUMN_TYPES = ['listAction', 'button','hyper-text'];
@@ -1,33 +0,0 @@
1
- import {PageInfo} from "./page-info";
2
-
3
- export interface TablePageUserAction {
4
- type: 'add' | 'select' | 'extra';
5
- id?:number;
6
- item?:any;
7
- actionKey?: string;
8
- pageInfo?:PageInfo
9
- }
10
-
11
- export const SELECT_RECORD_ACTION: TablePageUserAction = {
12
- type:'select'
13
- }
14
- export const EXTRA_ACTION: TablePageUserAction = {
15
- type:'extra'
16
- }
17
-
18
- export const DRILL_DOWN_ACTION: TablePageUserAction = {
19
- type:'extra'
20
- }
21
- export const JUNIOR_DOWN_ACTION: TablePageUserAction = {
22
- type:'extra'
23
- }
24
-
25
- export const ADD_NEW_RECORD_ACTION: TablePageUserAction = {
26
- type:'add',
27
- id: -1
28
- }
29
-
30
- export const TABLE_RECORD_ACTION: TablePageUserAction = {
31
- type:'extra',
32
- id: -1
33
- }
@@ -1,9 +0,0 @@
1
-
2
- export class WorkflowStep {
3
- stepId?: number;
4
- stepName: string='';
5
- stepNameAr: string='';
6
- isObsoleted: boolean=false;
7
- description: string='';
8
-
9
- }
@@ -1,52 +0,0 @@
1
- import {WorkflowStep} from "./workflow-steps.model";
2
-
3
- export class Workflow {
4
- id: number;
5
- corporateWorkflowId: number;
6
- corporateId : number;
7
- workflowProcessId: number;
8
- workflowSteps : WorkflowStep[];
9
- rejectionStrategy: 'TERMINATE' | 'STEP_BACK' | 'CREATE_STEP';
10
- processName: string;
11
-
12
- constructor(workflow: Workflow) {
13
- this.id= workflow.id;
14
- this.corporateWorkflowId= workflow.corporateWorkflowId;
15
- this.corporateId = workflow.corporateId;
16
- this.workflowProcessId = workflow.workflowProcessId;
17
- this.workflowSteps = workflow.workflowSteps === undefined ? [] : workflow.workflowSteps;
18
- this.processName = PROCESS_NAMES_MAP[this.workflowProcessId];
19
- this.rejectionStrategy = workflow.rejectionStrategy;
20
- }
21
- }
22
- export const PROCESS_NAMES_MAP: Record<number, string> = {
23
- 1: 'Outward Invoices',
24
- 2: 'Inward Invoices',
25
- 5: 'Customers Management',
26
- 6: 'Vendors Management',
27
- 8: 'Payment',
28
- 13: 'Users Management',
29
- 14: 'Groups Management',
30
- 19: 'Departments Management',
31
- 22: 'Credit Notes',
32
- 23: 'Debit Notes',
33
- 30: 'Store Management',
34
- 31: 'Branch Management ',
35
- 32: 'Division Management',
36
- 33: 'Product Management',
37
- 34: 'Import Stock',
38
- 35: 'Export Stock',
39
- 36: 'Stock Damage',
40
- 51: 'Internal Invoices',
41
- 60: 'Purchase Request',
42
- 61: 'Purchase Order',
43
- 62: 'Request for Quotation',
44
- 63: 'Proposal Evaluation',
45
- 64: 'Proposal By Vendor'
46
- };
47
-
48
- export const SEQ_PROCESS_NAMES_MAP: Record<number, string> = {
49
- 1: 'Outward Invoices / Invoice Number',
50
- 100: 'Outward Invoices / ePayment Number',
51
- 2: 'Inward Invoices'
52
- };
@@ -1,52 +0,0 @@
1
-
2
- .dialog-title {
3
- font-size: 20px;
4
- font-weight: 600;
5
- padding: 0 16px;
6
- }
7
-
8
- .dialog-subtitle {
9
- color: #666;
10
- padding: 0 20px;
11
- }
12
-
13
- .textarea-label {
14
- font-weight: 600;
15
- padding: 5px 20px;
16
- margin: 0;
17
- color: black;
18
- }
19
-
20
- .info-text {
21
- color: #888;
22
- font-family: Lusail, sans-serif;
23
- font-size: 16px;
24
- font-style: normal;
25
- font-weight: 400;
26
- line-height: 120%;
27
- }
28
-
29
- .info-box {
30
- display: flex;
31
- font-size: 12px;
32
-
33
- mat-icon {
34
- font-size: 18px;
35
- color: var(--primary-color-3nd);
36
- }
37
- }
38
-
39
- .footer-actions {
40
- margin-top: 0px;
41
- }
42
-
43
- .cancel-btn {
44
- width: 121px !important;
45
- }
46
- .warn-btn {
47
- width: 171px !important;
48
- }
49
-
50
- .content-section {
51
- padding: 0 20px;
52
- }
@@ -1,47 +0,0 @@
1
- <div class="dialog-container" [dir]="currentDirection">
2
-
3
- <h2 mat-dialog-title class="dialog-title" >
4
- {{ titleKey | translate}} {{itemName}}
5
- </h2>
6
-
7
- <p class="dialog-subtitle">
8
- {{ subtitleKey | translate }}
9
- </p>
10
-
11
-
12
- <p class="textarea-label">
13
- {{ reasonLabelKey | translate }}
14
- </p>
15
-
16
-
17
- <mat-dialog-content class="content-section">
18
- <mat-form-field appearance="outline" class="w-100">
19
- <textarea
20
- matInput
21
- [(ngModel)]="comment"
22
- placeholder="{{ placeholderKey | translate }}"
23
- cdkTextareaAutosize
24
- cdkAutosizeMinRows="4"
25
- cdkAutosizeMaxRows="5"
26
- ></textarea>
27
- </mat-form-field>
28
-
29
-
30
- <div class="info-box">
31
- <mat-icon>info</mat-icon>
32
- <span class="info-text">
33
- {{ warningKey | translate }}
34
- </span>
35
- </div>
36
- </mat-dialog-content>
37
-
38
- <mat-dialog-actions align="end" class="footer-actions">
39
- <button mat-stroked-button class="btn-none-background-primary cancel-btn" (click)="cancel()">
40
- {{ cancelKey | translate }}
41
- </button>
42
-
43
- <button mat-flat-button class="btn-background-primary warn-btn" (click)="commentAndClose()" [disabled]="!comment">
44
- {{ actionKey | translate }}
45
- </button>
46
- </mat-dialog-actions>
47
- </div>
@@ -1,23 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { ActionCommentComponent } from './action-comment.component';
4
-
5
- describe('ActionCommentComponent', () => {
6
- let component: ActionCommentComponent;
7
- let fixture: ComponentFixture<ActionCommentComponent>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- imports: [ActionCommentComponent]
12
- })
13
- .compileComponents();
14
-
15
- fixture = TestBed.createComponent(ActionCommentComponent);
16
- component = fixture.componentInstance;
17
- fixture.detectChanges();
18
- });
19
-
20
- it('should create', () => {
21
- expect(component).toBeTruthy();
22
- });
23
- });
@@ -1,102 +0,0 @@
1
- import {Component, HostListener, Inject, Input, OnInit} from '@angular/core';
2
- import {
3
- MAT_DIALOG_DATA,
4
- MatDialogActions,
5
- MatDialogContent,
6
- MatDialogRef,
7
- MatDialogTitle
8
- } from "@angular/material/dialog";
9
- import {MatFormField} from "@angular/material/form-field";
10
- import {FormsModule} from "@angular/forms";
11
- import {CdkTextareaAutosize} from "@angular/cdk/text-field";
12
- import {TranslateModule} from "@ngx-translate/core";
13
- import {MatButton} from "@angular/material/button";
14
- import {MatInput} from "@angular/material/input";
15
- import {MatIcon} from "@angular/material/icon";
16
-
17
- @Component({
18
- selector: 'app-action-comment',
19
- standalone: true,
20
- imports: [
21
- MatDialogTitle,
22
- MatFormField,
23
- MatDialogContent,
24
- FormsModule,
25
- CdkTextareaAutosize,
26
- TranslateModule,
27
- MatDialogActions,
28
- MatButton,
29
- MatInput,
30
- MatIcon
31
- ],
32
- templateUrl: './action-comment.component.html',
33
- styleUrl: './action-comment.component.css'
34
- })
35
- export class ActionCommentComponent implements OnInit {
36
- itemName: string = '';
37
- titleKey: string = '';
38
- subtitleKey: string = '';
39
- reasonLabelKey: string = '';
40
- placeholderKey: string = '';
41
- warningKey: string = '';
42
- cancelKey: string = '';
43
- actionKey: string = '';
44
- currentDirection: 'ltr' | 'rtl' = 'ltr';
45
-
46
- actionLabel : string =''
47
- isTermination : boolean=false;
48
- comment: string = '';
49
- external: boolean = false;
50
- signingRequired: boolean = false;
51
- tokenReference: string = "";
52
- otp: string = "";
53
- isSubmitted: boolean = false;
54
- warningMsg = false;
55
-
56
- constructor(public dialogRef: MatDialogRef<ActionCommentComponent>,
57
- @Inject(MAT_DIALOG_DATA) public data: any) {
58
- dialogRef.disableClose = true;
59
- }
60
- @HostListener('window:keyup.esc') onKeyUp() {
61
- this.dialogRef.close();
62
- }
63
- ngOnInit(): void {
64
- this.actionLabel = this.data.label;
65
- this.isTermination = this.data.isTermination ;
66
- this.signingRequired = this.data.signingRequired;
67
- this.tokenReference = this.data.tokenReference;
68
- this.warningMsg = this.data.warningMsg || false;
69
-
70
- this.itemName = this.data.deviceName;
71
- this.titleKey = this.data.titleKey;
72
- this.subtitleKey = this.data.subtitleKey;
73
- this.reasonLabelKey = this.data.reasonLabelKey;
74
- this.placeholderKey = this.data.placeholderKey;
75
- this.warningKey = this.data.warningKey;
76
- this.cancelKey = this.data.cancelKey;
77
- this.actionKey = this.data.actionKey;
78
- this.currentDirection = this.data.direction;
79
- }
80
-
81
-
82
- commentAndClose() {
83
- this.isSubmitted = true;
84
- if (this.signingRequired && !this.otp) return false;
85
- let obj:{[key: string]:any} = {
86
- comment: this.comment,
87
- shareExternal : this.external
88
- };
89
- //
90
- if(this.signingRequired) obj["token"] = this.otp;
91
- if(this.signingRequired) obj["tokenReference"] = this.tokenReference;
92
- //
93
- this.dialogRef.close(obj);
94
-
95
- return "";
96
- }
97
-
98
- cancel() {
99
- this.dialogRef.close();
100
- }
101
-
102
- }
@@ -1,46 +0,0 @@
1
- .confirm-dialog {
2
- padding: 32px;
3
- min-width: 500px;
4
- box-sizing: border-box;
5
- }
6
-
7
- .header-row {
8
- display: flex;
9
- justify-content: space-between;
10
- align-items: center;
11
- }
12
-
13
- .title {
14
- margin: 0;
15
- font-size: 20px;
16
- font-weight: 700;
17
- color: #222;
18
- }
19
-
20
- .close-btn mat-icon {
21
- font-size: 24px;
22
- color: #333;
23
- }
24
-
25
- .message {
26
- margin-top: 20px;
27
- font-size: 16px;
28
- color: #333;
29
- }
30
-
31
- .actions {
32
- display: flex;
33
- justify-content: flex-end;
34
- gap: 16px;
35
- margin-top: 40px;
36
- }
37
-
38
- .btn-cancel{
39
- width: 121px !important;
40
- margin: 0 !important;
41
- }
42
- .btn-confirm{
43
- width: 171px !important;
44
- margin: 0 !important;
45
- }
46
-
@@ -1,32 +0,0 @@
1
- <div class="confirm-dialog" [dir]="currentDirection">
2
-
3
- <div class="header-row">
4
- <h2 class="title">{{ titleMsg | translate }}</h2>
5
- <button mat-icon-button class="close-btn" (click)="cancel()">
6
- <mat-icon>close</mat-icon>
7
- </button>
8
- </div>
9
-
10
- <p class="message">
11
- {{ subMsg | translate }}
12
- </p>
13
-
14
- <div class="actions">
15
- <button
16
- mat-stroked-button
17
- class="btn-none-background-primary btn-cancel"
18
- (click)="cancel()"
19
- id="rejectActionLabel">
20
- {{ rejectActionLabel | translate }}
21
- </button>
22
-
23
- <button
24
- mat-flat-button
25
- class="btn-background-primary btn-confirm"
26
- (click)="commentAndClose()"
27
- id="acceptActionLabel">
28
- {{ acceptActionLabel | translate }}
29
- </button>
30
- </div>
31
-
32
- </div>
@@ -1,23 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { ActionConfirmationComponent } from './action-confirmation.component';
4
-
5
- describe('ActionCommentComponent', () => {
6
- let component: ActionConfirmationComponent;
7
- let fixture: ComponentFixture<ActionConfirmationComponent>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- imports: [ActionConfirmationComponent]
12
- })
13
- .compileComponents();
14
-
15
- fixture = TestBed.createComponent(ActionConfirmationComponent);
16
- component = fixture.componentInstance;
17
- fixture.detectChanges();
18
- });
19
-
20
- it('should create', () => {
21
- expect(component).toBeTruthy();
22
- });
23
- });
@@ -1,58 +0,0 @@
1
- import {Component, HostBinding, HostListener, Inject, OnInit} from '@angular/core';
2
- import {
3
- MAT_DIALOG_DATA,
4
- MatDialogActions,
5
- MatDialogContent,
6
- MatDialogRef,
7
- MatDialogTitle
8
- } from "@angular/material/dialog";
9
- import {MatFormField} from "@angular/material/form-field";
10
- import {TranslateModule} from "@ngx-translate/core";
11
- import {MatButton, MatIconButton} from "@angular/material/button";
12
- import {MatIcon} from "@angular/material/icon";
13
-
14
- @Component({
15
- selector: 'app-action-confirmation',
16
- standalone: true,
17
- imports: [
18
- TranslateModule,
19
- MatButton,
20
- MatIconButton,
21
- MatIcon
22
- ],
23
- templateUrl: './action-confirmation.component.html',
24
- styleUrl: './action-confirmation.component.css'
25
- })
26
- export class ActionConfirmationComponent implements OnInit {
27
- acceptActionLabel : string =''
28
- rejectActionLabel : string =''
29
- subMsg : string = '';
30
- titleMsg : string = '';
31
- currentDirection: 'ltr' | 'rtl' = 'ltr';
32
- constructor(public dialogRef: MatDialogRef<ActionConfirmationComponent>,
33
- @Inject(MAT_DIALOG_DATA) public data: any) {
34
- dialogRef.disableClose = true;
35
- }
36
- @HostListener('window:keyup.esc') onKeyUp() {
37
- this.dialogRef.close();
38
- }
39
- ngOnInit(): void {
40
- this.acceptActionLabel = this.data.acceptActionLabel || 'accept' ;
41
- this.rejectActionLabel = this.data.rejectActionLabel || 'reject';
42
- this.subMsg = this.data.warningMsg || '';
43
- this.titleMsg = this.data.confirmMsg || '';
44
- this.currentDirection = this.data.direction;
45
- }
46
-
47
-
48
- commentAndClose() {
49
- this.dialogRef.close('accept');
50
-
51
- return "";
52
- }
53
-
54
- cancel() {
55
- this.dialogRef.close();
56
- }
57
-
58
- }
@@ -1,110 +0,0 @@
1
- <div class="page-container">
2
-
3
- <div class="row row-center-start mb-10px full-width">
4
- <app-title-bar [pageTitle]="getTitle()" [newAction]="false"></app-title-bar>
5
- <mat-icon *ngIf="pageInfo?.hasHint"
6
- [matTooltip]="pageInfo.labelsSection + '.hint' | translate"
7
- matTooltipPosition="right"
8
- color="primary"
9
- class="help-icon"
10
- matTooltipClass="custom-tooltip">
11
- help_outline
12
- </mat-icon>
13
- </div>
14
-
15
- <app-base-form-canvas
16
- [pageInfo]="pageInfo"
17
- [fields]="fields"
18
- [editable]="isEditable"
19
- [errors]="errors"
20
- [item]="reportForm?.value || {}"
21
- (formUpdated)="updateForm($event)">
22
- </app-base-form-canvas>
23
-
24
- <div class="row main-form-canvas mt-3vh">
25
- <div class="column flex-49">
26
- <div class="row row-center-start">
27
- <button *ngIf="activeLevel === 1" color="primary" mat-flat-button (click)="doAction(x)"
28
- [disabled]="!isValidForm()" class="action-button" id="activity-generate-btn">
29
- {{ 'REPORTS.generate' | translate }}
30
- </button>
31
- <button mat-raised-button [matMenuTriggerFor]="menu" [disabled]="getIsEmptyList()"
32
- color="primary" class="btn-none-background-primary action-button" id="activity-extract-trigger">
33
- {{ 'extract' | translate }}
34
- <mat-icon class="expand_more actionButton__expand">expand_more</mat-icon>
35
- </button>
36
- <button mat-flat-button (click)="clear()"
37
- [disabled]="isFormEmpty() || activeLevel > 1"
38
- class="action-button" id="activity-clear-btn">
39
- {{ 'REPORTS.clear' | translate }}
40
- </button>
41
- <button *ngIf="activeLevel === 1 && drillDownEnabled()" color="warn" mat-flat-button
42
- (click)="drillDown()" class="action-button" id="activity-drilldown-btn">
43
- {{ drillDownLabel() | translate }}
44
- </button>
45
- <button *ngIf="activeLevel > 1 && !(isComparisonReport && activeLevel == 2)" color="warn"
46
- mat-flat-button (click)="goUp()" class="action-button" id="activity-up-btn">
47
- {{ 'REPORTS.up' | translate }}
48
- </button>
49
- </div>
50
- </div>
51
- <div class="column flex-49"></div>
52
- </div>
53
-
54
- <!-- Base tables -->
55
- <ng-container *ngIf="activeLevel === 1">
56
- <div class="row main-form-canvas mt-3vh">
57
- <div class="column flex-100">
58
- <app-base-table [pageInfo]="pageInfo" [columns]="columnsDefinition" [enforceRefresh]="reloadData"
59
- id="parent" [reportRequest]="reportRequest"
60
- (userAction)="emitUserAction($event)"
61
- (hyperLinkAction)="emitHyperLinkAction($event)">
62
- </app-base-table>
63
- </div>
64
- </div>
65
- </ng-container>
66
-
67
- <ng-container *ngIf="activeLevel === 2">
68
- <div class="row main-form-canvas mt-3vh">
69
- <div class="column flex-100">
70
- <app-base-table [pageInfo]="drillDownPageInfo" [columns]="drillDownColumns" id="child"
71
- [reportRequest]="reportRequest"
72
- (userAction)="emitUserAction($event)"
73
- (hyperLinkAction)="emitHyperLinkAction($event)">
74
- </app-base-table>
75
- </div>
76
- </div>
77
- </ng-container>
78
-
79
- <ng-container *ngIf="activeLevel === 3">
80
- <div class="row main-form-canvas mt-3vh">
81
- <div class="column flex-100">
82
- <app-base-table [pageInfo]="drillDownPageInfo" [columns]="drillDownColumns" id="junior"
83
- [reportRequest]="reportRequest"
84
- (userAction)="emitUserAction($event)"
85
- (hyperLinkAction)="emitHyperLinkAction($event)">
86
- </app-base-table>
87
- </div>
88
- </div>
89
- </ng-container>
90
-
91
- <ng-container *ngIf="activeLevel === 4">
92
- <div class="row main-form-canvas mt-3vh">
93
- <div class="column flex-100">
94
- <app-base-table [pageInfo]="drillDownPageInfo" [columns]="drillDownColumns"
95
- [reportRequest]="reportRequest"
96
- (userAction)="emitUserAction($event)"
97
- (hyperLinkAction)="emitHyperLinkAction($event)">
98
- </app-base-table>
99
- </div>
100
- </div>
101
- </ng-container>
102
-
103
- </div>
104
-
105
- <!-- Menu -->
106
- <mat-menu #menu="matMenu">
107
- <button type="button" mat-menu-item *ngFor="let type of types" (click)="extractReport(type)" [attr.id]="'activity-extract-item-' + type">
108
- {{ type }}
109
- </button>
110
- </mat-menu>
@@ -1,69 +0,0 @@
1
-
2
- .page-container {
3
- display: flex;
4
- flex-direction: column;
5
- width: 100%;
6
- }
7
-
8
- .row {
9
- display: flex;
10
- flex-direction: row;
11
- gap: 10px;
12
- flex-wrap: wrap;
13
- width: 100%;
14
- }
15
-
16
- .column {
17
- display: flex;
18
- flex-direction: column;
19
- }
20
-
21
- .flex-49 {
22
- flex: 0 0 49%;
23
- }
24
-
25
- .flex-100 {
26
- flex: 0 0 100%;
27
- }
28
-
29
- .row-center-start {
30
- align-items: center;
31
- justify-content: flex-start;
32
- }
33
-
34
- .mt-3vh { margin-top: 3vh; }
35
- .mb-10px { margin-bottom: 10px; }
36
-
37
- .action-button {
38
- font-weight: bold;
39
- min-width: 140px;
40
- max-width: 200px;
41
- margin: 0 10px;
42
- }
43
-
44
- .help-icon {
45
- cursor: pointer;
46
- margin-left: 10px;
47
- }
48
-
49
- @media (max-width: 960px) {
50
- .flex-49, .flex-100 {
51
- flex: 1 1 100%;
52
- }
53
- }
54
-
55
- @media (max-width: 600px) {
56
- .row {
57
- flex-direction: column;
58
- align-items: center;
59
- }
60
- .action-button {
61
- width: 100%;
62
- max-width: 300px;
63
- margin: 5px 0;
64
- }
65
- .help-icon {
66
- margin-left: 0;
67
- margin-top: 5px;
68
- }
69
- }