@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,55 +0,0 @@
1
- import {Component, EventEmitter, Input, OnChanges, OnInit, Output, SimpleChanges} from '@angular/core';
2
- import {FormGroup} from "@angular/forms";
3
- import {FieldFilter} from "../../../base-model/field-filter.model";
4
- import {FieldInfo, PageInfo} from "../../../base-model";
5
- import {BaseFormCanvasComponent} from "../../base-form-canvas/base-form-canvas.component";
6
-
7
- @Component({
8
- selector: 'app-field-filter',
9
- templateUrl: './field-filter.component.html',
10
- standalone: true,
11
- imports: [
12
- BaseFormCanvasComponent
13
- ],
14
- styleUrls: ['./field-filter.component.scss']
15
- })
16
-
17
- export class FieldFilterComponent implements OnInit {
18
-
19
- @Input()
20
- filter: FieldFilter;
21
-
22
- @Input()
23
- pageInfo: PageInfo;
24
-
25
- @Input()
26
- filterFields: FieldInfo[];
27
-
28
- filterForm: FormGroup;
29
-
30
- @Input()
31
- item: any;
32
-
33
- @Input()
34
- editable = false;
35
-
36
- @Output()
37
- selectedValue: EventEmitter<any> = new EventEmitter<any>();
38
-
39
- @Output()
40
- filterFieldInformation: EventEmitter<any> = new EventEmitter<any>();
41
-
42
- constructor() { }
43
-
44
- ngOnInit(): void {
45
-
46
- }
47
-
48
-
49
- formChanges($event: FormGroup) {
50
- this.filterForm = $event;
51
- this.filterForm.valueChanges.subscribe(v => {
52
- this.filterFieldInformation.emit(this.filterForm.value);
53
- });
54
- }
55
- }
@@ -1,36 +0,0 @@
1
- <div class="main-filter-builder">
2
-
3
- <div class="filterForm">
4
- <div class="filterForm__row">
5
- <div class="filterForm__col">
6
- <app-field-filter
7
- [editable]="isEditable()"
8
- [filter]="filter"
9
- [pageInfo]="pageInfo"
10
- *ngIf="isEditable()"
11
- [filterFields]="filterFields"
12
- (filterFieldInformation)="formChanges($event)"
13
- class="filterForm__filed-filter"
14
- >
15
- </app-field-filter>
16
- </div>
17
- </div>
18
- </div>
19
-
20
- <!-- <div *ngIf="checkIsEmpty()" class="line-top">-->
21
- <!-- <mat-divider></mat-divider>-->
22
- <!-- </div>-->
23
-
24
- <!-- <div class="line-bottom">-->
25
- <!-- <mat-divider></mat-divider>-->
26
- <!-- </div>-->
27
-
28
- <!-- <div class="action">-->
29
- <!-- <button class="btn-none-background-primary action__clear" mat-button (click)="deleteAll()">-->
30
- <!-- {{'FILTER-BUILDER.clearAllFilters' | translate}}-->
31
- <!-- </button>-->
32
- <!-- <button class="btn-background-primary" mat-button (click)="doSearch()">-->
33
- <!-- {{'FILTER-BUILDER.search' | translate}}-->
34
- <!-- </button>-->
35
- <!-- </div>-->
36
- </div>
@@ -1,130 +0,0 @@
1
- .main-filter-builder {
2
-
3
- .filterForm {
4
- display: block;
5
-
6
- &__row {
7
- display: flex;
8
- align-items: center;
9
- gap: 12px;
10
- margin: 6px 0;
11
- flex-wrap: wrap;
12
- }
13
-
14
- &__col {
15
- flex: 1 1 auto;
16
- min-width: 0;
17
- }
18
-
19
- &__filed-filter {
20
- margin: 5px 0 0 0 !important;
21
- }
22
-
23
- .action-filter {
24
- flex: 0 0 auto;
25
- .edit-design {
26
- margin: auto;
27
-
28
- &__add-button {
29
- background: #FFFFFF !important;
30
- color: var(--primary-color) !important;
31
- height: 48px;
32
- width: 48px;
33
- border-radius: 5px;
34
- border: #D9D9D9 solid 1px;
35
- margin: 30px 0 0 0;
36
-
37
- &__add-button-text {
38
- margin: 0 5px
39
- }
40
- }
41
- }
42
- }
43
- }
44
-
45
- .line-top {
46
- mat-divider {
47
- width: 98%;
48
- margin: 0 auto 10px auto;
49
- }
50
- }
51
-
52
-
53
- .advanced-button {
54
- display: flex;
55
- flex-wrap: wrap;
56
- gap: 8px;
57
- .view {
58
- background: #E3FBFF !important;
59
- border: 1px solid #00ABC8 !important;
60
- border-radius: 6px !important;
61
- margin: 10px 0;
62
- padding: 6px 8px;
63
- height: 32px;
64
- margin-top: 0 !important;
65
- display: flex;
66
- align-items: center;
67
- gap: 6px;
68
-
69
- &__filed {
70
- margin-top: -3px;
71
- display: inline-block;
72
- color: #1C355E;
73
- font-weight: 400;
74
- font-size: 14px;
75
- line-height: 16px;
76
- font-style: normal;
77
- text-align: center !important;
78
- }
79
-
80
- &__close {
81
- margin-left: 6px;
82
- &__icon {
83
- color: #1C355E;
84
- font-size: 14px;
85
- cursor: pointer;
86
- display: inline-block;
87
- }
88
- }
89
- }
90
- }
91
-
92
- .line-bottom {
93
- mat-divider {
94
- width: 98%;
95
- margin: 0 auto 10px auto;
96
- }
97
- }
98
-
99
- .action {
100
- justify-content: end;
101
- padding: 5px 10px 10px 10px;
102
-
103
- &__clear {
104
- border: none !important;
105
- margin: 0 5px
106
- }
107
- }
108
-
109
- /* Responsive rules to replace fxLayout breakpoints */
110
- @media (max-width: 599.98px) {
111
- .filterForm {
112
- &__row {
113
- flex-wrap: wrap;
114
- }
115
- .action-filter .edit-design__add-button {
116
- width: 100%;
117
- height: 45px;
118
- margin: 5px 5px 10px;
119
- }
120
- }
121
- }
122
-
123
- /* Hide add button text on screens larger than small (equivalent to fxHide.gt-xs) */
124
- @media (min-width: 600px) {
125
- .add-text-responsive {
126
- display: none;
127
- }
128
- }
129
-
130
- }
@@ -1,25 +0,0 @@
1
- import { async, ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { FilterBuilderComponent } from './filter-builder.component';
4
-
5
- describe('FilterBuilderComponent', () => {
6
- let component: FilterBuilderComponent;
7
- let fixture: ComponentFixture<FilterBuilderComponent>;
8
-
9
- beforeEach(async(() => {
10
- TestBed.configureTestingModule({
11
- declarations: [ FilterBuilderComponent ]
12
- })
13
- .compileComponents();
14
- }));
15
-
16
- beforeEach(() => {
17
- fixture = TestBed.createComponent(FilterBuilderComponent);
18
- component = fixture.componentInstance;
19
- fixture.detectChanges();
20
- });
21
-
22
- it('should create', () => {
23
- expect(component).toBeTruthy();
24
- });
25
- });
@@ -1,186 +0,0 @@
1
- import {Component, EventEmitter, Input, OnDestroy, OnInit, Output} from '@angular/core';
2
- import {CommonModule} from '@angular/common';
3
- import {FieldInfo, PageInfo, TableColumn} from "../../../base-model";
4
- import {FieldFilter} from "../../../base-model/field-filter.model";
5
- import {FieldFilterComponent} from "../field-filter/field-filter.component";
6
- import {TranslateModule} from "@ngx-translate/core";
7
-
8
- @Component({
9
- selector: 'app-filter-builder',
10
- templateUrl: './filter-builder.component.html',
11
- standalone: true,
12
- imports: [
13
- CommonModule,
14
- FieldFilterComponent,
15
- TranslateModule
16
- ],
17
- styleUrls: ['./filter-builder.component.scss']
18
- })
19
- export class FilterBuilderComponent implements OnInit, OnDestroy {
20
-
21
- @Input()
22
- columns: TableColumn<any>[];
23
-
24
- @Input()
25
- isChecked: boolean;
26
- @Input()
27
- filterFields: FieldInfo[];
28
- @Input()
29
- pageInfo: PageInfo;
30
-
31
- filter: FieldFilter;
32
- filters: FieldFilter[] = [];
33
-
34
- private searchTimeout: any;
35
-
36
- @Output()
37
- filterInformation: EventEmitter<FieldFilter[]> = new EventEmitter<FieldFilter[]>();
38
-
39
- @Output()
40
- isEmpty: EventEmitter<boolean> = new EventEmitter<boolean>();
41
-
42
-
43
- constructor() {
44
- }
45
-
46
- ngOnInit(): void {
47
-
48
-
49
- this.switchToAdvanced();
50
- if (!this.filter) {
51
- this.filter = this.createDefaultFieldFilter();
52
- }
53
- if (this.filterFields && this.filterFields.length) {
54
- this.filters = this.filterFields.map(() => this.createDefaultFieldFilter());
55
- }
56
- }
57
-
58
- ngOnDestroy(): void {
59
- if (this.searchTimeout) {
60
- clearTimeout(this.searchTimeout);
61
- this.searchTimeout = null;
62
- }
63
- }
64
-
65
-
66
- doSearch() {
67
- const filtersArray = (this.filters || [])
68
- .filter(f => !!f && f.fieldName && f.valueObject !== undefined && f.valueObject !== null && f.valueObject !== '')
69
- .map(f => ({...f}));
70
- this.filterInformation.emit(filtersArray);
71
- }
72
-
73
- private scheduleSearch(delayMs: number = 800) {
74
- if (this.searchTimeout) {
75
- clearTimeout(this.searchTimeout);
76
- }
77
- this.searchTimeout = setTimeout(() => {
78
- this.doSearch();
79
- }, delayMs);
80
- }
81
-
82
- formChanges($event: any, index?: number, fieldInfo?: FieldInfo) {
83
- if (index === undefined || !fieldInfo) {
84
- if (!this.filterFields || !this.filterFields.length) {
85
- this.filters = [];
86
- this.doSearch();
87
- return;
88
- }
89
-
90
- this.filters = this.filterFields.map((fi) => {
91
- const controlName = fi.property;
92
- let value = $event ? $event[controlName] : undefined;
93
- if (value === undefined || value === null || value === '') {
94
- return this.createDefaultFieldFilter();
95
- }
96
- const fieldName = controlName === 'from' || controlName === 'to' ? fi.targetProperty : controlName;
97
-
98
- return {
99
- fieldName: fieldName,
100
- operator: fi.filterOperator || 'EQUALS',
101
- filterType: 'FILED_FILTER',
102
- fieldType: this.typeMap(fi.type) as any,
103
- valueObject: value as any
104
- } as FieldFilter;
105
- });
106
-
107
- const hasTextField = (this.filterFields || []).some(fi => ((fi.type || '').toLowerCase() === 'text'));
108
- if (hasTextField) {
109
- this.scheduleSearch();
110
- } else {
111
- this.doSearch();
112
- }
113
- return;
114
- }
115
-
116
- if (!this.filters) {
117
- this.filters = [];
118
- }
119
- if (this.filters.length < index + 1) {
120
- this.filters.length = index + 1;
121
- }
122
-
123
- let controlName = fieldInfo.property;
124
- let value = $event ? $event[controlName] : undefined;
125
- if ($event && $event.filterField !== undefined && $event.fromValue !== undefined) {
126
- controlName = $event.filterField || controlName;
127
- value = $event.fromValue;
128
- }
129
-
130
- if (value === undefined || value === null || value === '') {
131
- this.filters[index] = this.createDefaultFieldFilter();
132
- } else {
133
- this.filters[index] = {
134
- fieldName: controlName,
135
- operator: fieldInfo.filterOperator || 'EQUALS',
136
- filterType: 'FILED_FILTER',
137
- fieldType: this.typeMap(fieldInfo.type) as any,
138
- valueObject: value as any
139
- } as FieldFilter;
140
- }
141
- const isTextField = ((fieldInfo.type || '').toLowerCase() === 'text');
142
- if (isTextField) {
143
- this.scheduleSearch();
144
- } else {
145
- this.doSearch();
146
- }
147
- }
148
- typeMap(colType?: string): string {
149
- const t = (colType || '').toLowerCase();
150
- if (t.includes('number') || t.includes('int') || t === 'long') return 'Long';
151
- if (t.includes('date') || t.includes('time')) return 'Date';
152
- if (t.includes('bool')) return 'Boolean';
153
- return 'String';
154
- }
155
-
156
- isEditable(_index?: number) {
157
- return true;
158
- }
159
-
160
-
161
- deleteAll() {
162
- this.filter = this.createDefaultFieldFilter();
163
- this.filters = this.filterFields ? this.filterFields.map(() => this.createDefaultFieldFilter()) : [];
164
- this.isEmpty.emit(true);
165
- }
166
-
167
-
168
- switchToAdvanced() {
169
- if (this.isChecked) {
170
- if (!this.filter || Object.keys(this.filter).length === 0) {
171
- this.filter = this.createDefaultFieldFilter();
172
- }
173
- }
174
- }
175
-
176
-
177
- private createDefaultFieldFilter(): FieldFilter {
178
- return {
179
- fieldName: '',
180
- operator: '',
181
- filterType: '',
182
- fieldType: '',
183
- valueObject: ''
184
- } as FieldFilter;
185
- }
186
- }
@@ -1,51 +0,0 @@
1
- .m-0{
2
- margin: 0 !important;
3
- }
4
- .w-100{
5
- width: 100%;
6
- }
7
- .form-style{
8
- min-height: 12vh !important;
9
- height: auto !important;
10
- }
11
- .text-red{
12
- color: red !important;
13
- }
14
- .modal-footer{
15
- margin-top: 5vh;
16
- }
17
- .overflow-hidden{
18
- overflow: hidden;
19
- }
20
- .pad-top{
21
- margin-top: -7px;
22
- display: block;
23
- }
24
- .action-comment {
25
- /*direction: rtl;*/
26
- display: flex;
27
- justify-content: space-between;
28
- }
29
- .material-icons {
30
- color: #E22222;
31
- }
32
- textarea#warn::placeholder {
33
- color: red;
34
- }
35
- .invoice-label {
36
- color: var(--primary-color);
37
- margin: 0px;
38
- font-weight: bold;
39
- padding-bottom: 10px !important;
40
- padding-top: 6px !important;
41
- border-bottom: none !important;
42
-
43
- }
44
-
45
- .invoice-label-text {
46
- color: var(--accent-color);
47
- font-weight: normal;
48
- word-wrap: break-word;
49
- white-space: pre-wrap;
50
- width: 100%;
51
- }
@@ -1,23 +0,0 @@
1
- <mat-dialog-content class="mat-typography overflow-hidden">
2
- <div style="'padding': '10px 30px 10px 0'">
3
- <h2 mat-dialog-title>{{ getTitle()| translate }}</h2>
4
- <app-base-form-canvas
5
- [pageInfo]="pageInfo"
6
- [fields]="fields"
7
- [editable]="false"
8
- [item]="item"
9
- ></app-base-form-canvas>
10
-
11
- <p>
12
- <span class="invoice-label">{{ 'audit-log.reason_dialog' | translate }} :</span>
13
- <span class="invoice-label-text">{{ comment }}</span>
14
- </p>
15
- <mat-divider style="width: 97%"></mat-divider>
16
- <br>
17
- <button mat-stroked-button color='accent' style="margin: 5px"
18
- (click)="cancel()" id="acceptActionLabel">
19
- {{ 'audit-log.close' | translate }}
20
- </button>
21
- <br>
22
- </div>
23
- </mat-dialog-content>
@@ -1,23 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { AuditLogDetailsDialogComponent } from './audit-log-details-dialog.component';
4
-
5
- describe('ActionCommentComponent', () => {
6
- let component: AuditLogDetailsDialogComponent;
7
- let fixture: ComponentFixture<AuditLogDetailsDialogComponent>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- imports: [AuditLogDetailsDialogComponent]
12
- })
13
- .compileComponents();
14
-
15
- fixture = TestBed.createComponent(AuditLogDetailsDialogComponent);
16
- component = fixture.componentInstance;
17
- fixture.detectChanges();
18
- });
19
-
20
- it('should create', () => {
21
- expect(component).toBeTruthy();
22
- });
23
- });
@@ -1,69 +0,0 @@
1
- import {Component, HostListener, Inject, OnInit} from '@angular/core';
2
- import {MAT_DIALOG_DATA, MatDialogContent, MatDialogRef, MatDialogTitle} from "@angular/material/dialog";
3
- import {FormsModule} from "@angular/forms";
4
- import {TranslateModule} from "@ngx-translate/core";
5
- import {MatButton} from "@angular/material/button";
6
- import {FieldInfo, PageInfo} from "../../base-model";
7
- import {BaseFormCanvasComponent} from "../base-form-canvas/base-form-canvas.component";
8
- import {MatDivider} from "@angular/material/divider";
9
-
10
- @Component({
11
- selector: 'app-audit-log-details-dialog',
12
- standalone: true,
13
- imports: [
14
- MatDialogTitle,
15
- MatDialogContent,
16
- FormsModule,
17
- TranslateModule,
18
- MatButton,
19
- BaseFormCanvasComponent,
20
- MatDivider
21
- ],
22
- templateUrl: './audit-log-details-dialog.component.html',
23
- styleUrl: './audit-log-details-dialog.component.css'
24
- })
25
- export class AuditLogDetailsDialogComponent implements OnInit {
26
- pageInfo: PageInfo;
27
- fields: FieldInfo[] = [];
28
-
29
- actionLabel : string =''
30
- isTermination : boolean=false;
31
- comment: string = '';
32
- external: boolean = false;
33
- signingRequired: boolean = false;
34
- tokenReference: string = "";
35
- warningMsg = false;
36
- item: any = {};
37
- constructor(public dialogRef: MatDialogRef<AuditLogDetailsDialogComponent>,
38
- @Inject(MAT_DIALOG_DATA) public data: any) {
39
- dialogRef.disableClose = true;
40
- }
41
- @HostListener('window:keyup.esc') onKeyUp() {
42
- this.dialogRef.close();
43
- }
44
- ngOnInit(): void {
45
- this.pageInfo = this.data.pageInfo;
46
- this.fields = this.data.fields;
47
-
48
- this.fields = this.data.fields.map((f: any) => ({ ...f }));
49
-
50
- const showHiddenFields: string[] = this.data.showHiddenFields || [];
51
- this.fields.forEach(field => {
52
- if (showHiddenFields.includes(field.property)) {
53
- field.visible = true;
54
- }
55
- });
56
- this.item = this.data.item;
57
- this.comment = this.data.comment;
58
- this.warningMsg = this.data.warningMsg || false;
59
- }
60
-
61
- cancel() {
62
- this.dialogRef.close();
63
- }
64
-
65
-
66
- getTitle() {
67
- return `${this.pageInfo.labelsSection}.${this.pageInfo.id}`;
68
- }
69
- }
@@ -1,26 +0,0 @@
1
- <h4>
2
- <span class="audit-log-title">{{ 'audit-log.title' | translate }}</span>
3
- </h4>
4
-
5
- <div class="hrdivider-mini">
6
- <hr class="header-hr" />
7
- </div>
8
-
9
- <div class="audit-log-container" *ngFor="let auditLog of auditLogEntries; let i = index">
10
- <div class="audit-log-entry">
11
- <p *ngIf="i === 0" class="audit-log-spacer"></p>
12
-
13
- <p class="audit-log-text">
14
- {{ getDescription(auditLog) }}
15
- <button mat-stroked-button color="secondary" (click)="viewObject(auditLog)" [attr.id]="'audit-view-details-' + i">
16
- {{ 'audit-log.view_details' | translate }}
17
- </button>
18
- </p>
19
-
20
- <p class="invoice-label-text"></p>
21
-
22
- <div class="hrdivider-mini">
23
- <hr class="header-hr" />
24
- </div>
25
- </div>
26
- </div>
@@ -1,50 +0,0 @@
1
- .audit-log-title {
2
- font-weight: normal;
3
- color: #222222;
4
- }
5
-
6
- .hrdivider-mini {
7
- width: 100%;
8
- }
9
-
10
- .header-hr {
11
- height: 4px;
12
- background-color: #339dff;
13
- border: none;
14
- margin: 5px 0;
15
- }
16
-
17
- .audit-log-container {
18
- display: flex;
19
- flex-direction: row;
20
- gap: 5px;
21
- justify-content: flex-start;
22
- align-items: flex-start;
23
- width: 100%;
24
- flex-wrap: wrap;
25
- }
26
-
27
- .audit-log-entry {
28
- display: flex;
29
- flex-direction: column;
30
- align-items: flex-start;
31
- flex: 1 1 100%;
32
- }
33
-
34
- .audit-log-spacer {
35
- margin-bottom: 15px;
36
- margin-top: 0;
37
- }
38
-
39
- .audit-log-text {
40
- margin: 0;
41
- word-wrap: break-word;
42
- }
43
-
44
- /* --- Responsive --- */
45
- @media (max-width: 960px) {
46
- .audit-log-container {
47
- flex-direction: column;
48
- align-items: stretch;
49
- }
50
- }