@unifylib/ui-lib 1.1.3 → 1.1.4

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,25 +0,0 @@
1
- import {ComponentFixture, TestBed} from '@angular/core/testing';
2
-
3
- import {ActivityReportFormComponent} from './activity-report-form.component';
4
-
5
- describe('BaseFormComponent', () => {
6
- let component: ActivityReportFormComponent;
7
- let fixture: ComponentFixture<ActivityReportFormComponent>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- declarations: [ ActivityReportFormComponent ]
12
- })
13
- .compileComponents();
14
- });
15
-
16
- beforeEach(() => {
17
- fixture = TestBed.createComponent(ActivityReportFormComponent);
18
- component = fixture.componentInstance;
19
- fixture.detectChanges();
20
- });
21
-
22
- it('should create', () => {
23
- expect(component).toBeTruthy();
24
- });
25
- });
@@ -1,616 +0,0 @@
1
- import {
2
- Component,
3
- EventEmitter,
4
- Injector,
5
- Input,
6
- OnInit,
7
- Output
8
- } from '@angular/core';
9
- import {FieldInfo} from "../../base-model/field-info";
10
- import {EMPTY_PAGE_INFO, PageInfo} from "../../base-model/page-info";
11
- import {TableColumn} from "../../base-model/table-column.interface";
12
- import {FieldMessage} from "../../base-model/api-response";
13
- import {TranslateModule, TranslateService} from "@ngx-translate/core";
14
- import {BackendService} from "../../services/backend-service";
15
- import {ActivatedRoute, Router} from "@angular/router";
16
- import {FormBuilder, FormGroup} from "@angular/forms";
17
- import {formatDate, NgForOf, NgIf} from "@angular/common";
18
- import {MatMenu, MatMenuItem, MatMenuTrigger} from "@angular/material/menu";
19
- import {MatButton, MatButtonModule} from "@angular/material/button";
20
- import {BaseTableComponent} from "../base-table/base-table.component";
21
- import {MatIconModule} from "@angular/material/icon";
22
- import {FilterRequest} from "../../base-model/filter-request";
23
- import {ReportRequest} from "../../base-model/report-request.model";
24
- import {Filter} from "../../base-model/filter.model";
25
- import {TitleBarComponent} from "../title-bar/title-bar.component";
26
- import {BaseFormCanvasComponent} from "../base-form-canvas/base-form-canvas.component";
27
- import ClassicEditor from "@ckeditor/ckeditor5-build-classic";
28
- import {DRILL_DOWN_ACTION, JUNIOR_DOWN_ACTION, SnackMessage, TablePageUserAction} from "../../base-model";
29
- import {} from "../audit-log-details-dialog/audit-log-details-dialog.component";
30
- import {MatDialog} from "@angular/material/dialog";
31
- import {ReportDetailsDialogComponent} from "../report-details-dialog/report-details-dialog.component";
32
- import { cloneDeep } from 'lodash';
33
- import {Directionality} from "@angular/cdk/bidi";
34
- import {MatTooltip} from "@angular/material/tooltip";
35
-
36
-
37
- const NON_REPORT_COLUMNS = ['listAction', 'button', 'checkbox'];
38
-
39
- @Component({
40
- selector: 'app-report-form',
41
- standalone: true,
42
- imports: [
43
- TitleBarComponent,
44
- BaseFormCanvasComponent,
45
- MatMenu,
46
- MatMenuItem,
47
- NgForOf,
48
- MatMenuTrigger,
49
- MatButtonModule,
50
- TranslateModule,
51
- BaseTableComponent,
52
- NgIf,
53
- MatIconModule,
54
- MatButton,
55
- MatTooltip
56
- ],
57
- templateUrl: './activity-report-form.component.html',
58
- styleUrl: './activity-report-form.component.scss'
59
- })
60
- export class ActivityReportFormComponent implements OnInit{
61
- @Input()
62
- showDetails : any = [];
63
-
64
- @Input()
65
- showExtractButton: boolean = true;
66
-
67
- @Input()
68
- columns: TableColumn<any>[] =[];
69
- private originalColumns: any[] = [];
70
-
71
-
72
- @Input() actionRequestCallback!: (actionRequest: TablePageUserAction) => TablePageUserAction;
73
- @Input() enrichDrillDownReportRequest!: (actionRequest: TablePageUserAction, reportRequest: ReportRequest) => TablePageUserAction;
74
- @Input() enrichHyperLinkReportRequest!: (actionRequest: TablePageUserAction, reportRequest: ReportRequest) => TablePageUserAction;
75
- @Input() enrichJuniorReportRequest!: (actionRequest: TablePageUserAction, reportRequest: ReportRequest) => TablePageUserAction;
76
-
77
- @Output()
78
- userAction: EventEmitter<TablePageUserAction> = new EventEmitter<TablePageUserAction>();
79
- activeLevel: number = 1;
80
- items = [4, 5,6,7];
81
- private filterRequest: FilterRequest;
82
- x: any;
83
- isEditable: boolean = true;
84
- fields: FieldInfo[] = [];
85
- pageInfo: PageInfo = EMPTY_PAGE_INFO;
86
- drillDownPageInfo: PageInfo = EMPTY_PAGE_INFO;
87
- drillDownColumns: TableColumn<any>[] = [];
88
- hideDrillDownButton: false;
89
-
90
- juniorPageInfo: PageInfo = EMPTY_PAGE_INFO;
91
- juniorColumns: TableColumn<any>[] = [];
92
-
93
- columnsDefinition: TableColumn<any>[] = [];
94
- types: string[] = ["pdf", "csv", "xlsx"]
95
- searchStr: string = '';
96
-
97
- errors: FieldMessage[] = [];
98
-
99
- reloadData: boolean = false;
100
- drillDownRequestStack: any[] = [];
101
- reportRequest: ReportRequest = new ReportRequest({});
102
- childReportRequest: ReportRequest = new ReportRequest({});
103
- juniorReportRequest: ReportRequest = new ReportRequest({});
104
- public reportForm: FormGroup;
105
- readyToSearch = false;
106
- private pageSize: any;
107
- private dialogReportRequest: any;
108
- currentDirection: 'ltr' | 'rtl';
109
- protected isComparisonReport: boolean = false;
110
- constructor(private translateService: TranslateService,
111
- public backendService: BackendService,
112
- private activatedRoute: ActivatedRoute,
113
- private injector: Injector,
114
- private router: Router,
115
- private route: ActivatedRoute,
116
- public dialog: MatDialog,
117
- private directionality: Directionality,
118
- private fb: FormBuilder) {
119
- ClassicEditor.defaultConfig = {
120
- toolbar: {
121
- items: ['heading', '|', 'bold', 'italic', '|', 'bulletedList', 'numberedList']
122
- },
123
- image: {
124
- toolbar: ['imageStyle:side', '|', 'imageTextAlternative']
125
- },
126
- table: {
127
- contentToolbar: [ 'tableColumn', 'tableRow', 'mergeTableCells' ]
128
- },
129
- language: 'en'
130
- };
131
- }
132
-
133
- ngOnInit(): void {
134
-
135
- this.currentDirection = this.directionality.value;
136
- this.directionality.change.subscribe((value) => {
137
- this.currentDirection = value;
138
- })
139
-
140
- this.activatedRoute.data.subscribe(data => {
141
- this.pageInfo = data['pageInfo'];
142
- this.pageSize = this.pageInfo.pageSize ?? 10;
143
- this.filterRequest= new FilterRequest(this.pageSize);
144
- data['pageInfo'].lazyLoadData = true;
145
- this.drillDownPageInfo = data['drillDownPageInfo'];
146
- this.drillDownColumns = data['drillDownColumns'];
147
- this.originalColumns = [...this.drillDownColumns];
148
- this.hideDrillDownButton = data['hideDrillDownButton'] ?? false;
149
- this.juniorPageInfo = data['juniorPageInfo'];
150
- this.juniorColumns = data['juniorColumns'];
151
- this.columnsDefinition = data['columnsDefinition'].filter(c => (this.drillDownPageInfo && this.drillDownColumns || (!NON_REPORT_COLUMNS.includes(c.type))));
152
- this.fields = data['fields'];
153
- if (data['enrichDrillDownReportRequest']) {
154
- this.enrichDrillDownReportRequest = data['enrichDrillDownReportRequest'](this.injector);
155
- }
156
- if (data['enrichJuniorReportRequest']) {
157
- this.enrichJuniorReportRequest = data['enrichJuniorReportRequest'](this.injector);
158
- }
159
-
160
- if (data['enrichHyperLinkReportRequest']) {
161
- this.enrichHyperLinkReportRequest = data['enrichHyperLinkReportRequest'](this.injector);
162
- }
163
- });
164
-
165
- this.route.queryParamMap.subscribe(params => {
166
- this.isComparisonReport = params.get('comparisonReport') === 'true';
167
- if (!this.isComparisonReport) return;
168
-
169
- const comparisonStr = sessionStorage.getItem('comparisonReportPageInfo');
170
- if (!comparisonStr) return;
171
-
172
- const comparisonData = JSON.parse(comparisonStr);
173
- this.initializeComparisonReport(comparisonData);
174
- });
175
- }
176
-
177
- private initializeComparisonReport(data: any): void {
178
- this.pageInfo.lazyLoadData = data.lazyLoadData ?? false;
179
- this.activeLevel = data.activeLevel ?? 2;
180
- this.isEditable = false;
181
- this.drillDownPageInfo = data.drillDownPageInfo;
182
- this.drillDownColumns = data.drillDownColumns;
183
-
184
- const reportRequest = data.reportRequest;
185
-
186
- this.reportRequest = this.backendService.buildReportRequest(
187
- this.drillDownColumns,
188
- `${this.drillDownPageInfo.labelsSection}.${this.drillDownPageInfo.id}`,
189
- reportRequest,
190
- '',
191
- this.drillDownPageInfo,
192
- 'LANDSCAPE'
193
- );
194
-
195
- this.setupForm(data.form);
196
- this.removeCheckboxFields();
197
- this.setupFilters(data.reportRequest, data.item);
198
- this.setupJuniorReportRequest();
199
- }
200
-
201
- private setupForm(formData: any): void {
202
- this.reportForm = this.fb.group({
203
- directorate: [[]],
204
- fromDate: [''],
205
- toDate: [''],
206
- sector: {},
207
- });
208
-
209
- if (formData) {
210
- this.reportForm.patchValue(formData);
211
- }
212
- }
213
-
214
- private removeCheckboxFields(): void {
215
- this.fields = this.fields.filter(field => field.type !== 'checkbox');
216
- }
217
-
218
- private setupFilters(reportRequest: any, item: any): void {
219
- this.filterRequest.filters = [];
220
-
221
- this.addOrUpdateFilter(reportRequest, {
222
- key: 'iSecLevel',
223
- fieldName: 'iSecLevel',
224
- value: this.activeLevel
225
- });
226
-
227
- this.addOrUpdateFilter(reportRequest, {
228
- id: 'iSecValue',
229
- key: 'iSecValue',
230
- fieldName: 'iSecValue',
231
- value: item?.isec_value
232
- });
233
-
234
- this.addOrUpdateFilter(reportRequest, {
235
- id: 'period',
236
- key: 'period',
237
- fieldName: 'period',
238
- value: item?.period
239
- });
240
-
241
- this.addOrUpdateFilter(reportRequest, {
242
- id: 'year',
243
- key: 'year',
244
- fieldName: 'year',
245
- value: item?.year
246
- });
247
-
248
- this.reportRequest.filterRequest = reportRequest;
249
- }
250
-
251
- private setupJuniorReportRequest(): void {
252
- this.juniorReportRequest = this.backendService.buildReportRequest(
253
- this.juniorColumns,
254
- `${this.juniorPageInfo.labelsSection}.${this.juniorPageInfo.id}`,
255
- this.reportRequest.filterRequest,
256
- '',
257
- this.juniorPageInfo,
258
- 'LANDSCAPE'
259
- );
260
-
261
- this.juniorReportRequest.filterRequest.pageSize = 500;
262
- }
263
-
264
- isMatchHeight() {
265
- return this.pageInfo.pageHeight === 'match';
266
- }
267
-
268
-
269
- doAction(type: string) {
270
- if (this.backendService.parentForm.valid) {
271
- this.reloadData = !this.reloadData;
272
- const filterRequest: FilterRequest = new FilterRequest(this.pageSize);
273
- filterRequest.filters = [];
274
- this.addOrUpdateFilter(filterRequest, {
275
- key: 'iSecLevel',
276
- fieldName: 'iSecLevel',
277
- value: this.activeLevel
278
- });
279
- let paramsString: string[] = [];
280
- this.fields.filter(x => x.type !== 'spacer').forEach(f => {
281
- if (this.getParamValue(f) != null && this.getParamValue(f).toString().trim() !== '')
282
- {
283
- if (f.type === 'multi-select' || f.type === 'lookup') {
284
- // do not filter if this field as cascading for another one and the other one got selected values
285
- const childFieldIdx = this.fields.findIndex(field => field.cascadedBy === f.property);
286
- if (childFieldIdx > -1 && this.backendService.parentForm.get(this.fields[childFieldIdx].property)?.value?.length > 0) {
287
- return;
288
- }
289
- const idz: number[] = [];
290
- const param: string[] = [];
291
- if (this.backendService.parentForm.get(f.property)?.value && Array.isArray(this.backendService.parentForm.get(f.property)?.value)
292
- && this.backendService.parentForm.get(f.property)?.value.length > 0) {
293
- this.backendService.parentForm.get(f.property)?.value.forEach((a: {
294
- channelId: number;
295
- englishName: string;
296
- id: number;
297
- }) => {
298
- if (f.flattenBySubAttribute) {
299
- idz.push(a[f.flattenBySubAttribute]);
300
- param.push(a[f.flattenBySubAttribute]);
301
- } else if (this.fields.find(s => s.property === 'terminalId')) {
302
- idz.push(a.channelId);
303
- param.push(a.englishName);
304
- } else {
305
- idz.push(a.id);
306
- param.push(a.englishName);
307
- }
308
- })
309
- filterRequest.filters?.push(new Filter({
310
- id: f.property, fieldName: f.property, label: this.translateService.instant(f.label),
311
- filterType: 'FILED_FILTER', operator: f.filterOperator,
312
- valueObject: idz
313
- }));
314
- paramsString.push(this.translateService.instant(f.label) + ' : ' + param.join(','));
315
- } else if (this.backendService.parentForm.get(f.property)?.value && f.flattenBySubAttribute) {
316
- filterRequest.filters?.push(new Filter({
317
- id: f.property, fieldName: f.property, label: this.translateService.instant(f.label),
318
- filterType: 'FILED_FILTER', operator: f.filterOperator,
319
- valueObject: this.getParamValue(f)[f.flattenBySubAttribute]
320
- }));
321
- }
322
- } else {
323
- if (this.backendService.parentForm.get(f.property)?.value !== null &&
324
- this.backendService.parentForm.get(f.property)?.value !== undefined &&
325
- this.backendService.parentForm.get(f.property)?.value !== "") {
326
- filterRequest.filters?.push(new Filter({
327
- id: f.property, fieldName: f.property, label: this.translateService.instant(f.label),
328
- filterType: 'FILED_FILTER', operator: f.filterOperator,
329
- valueObject: this.getParamValue(f)
330
- }));
331
- }
332
- paramsString.push(this.translateService.instant(f.label) + ' : ' + this.getParamValueLabel(f));
333
- }
334
- }})
335
- const reportRequest = this.backendService.buildReportRequest(this.columnsDefinition, this.pageInfo.labelsSection + '.' + this.pageInfo.id,
336
- filterRequest, type, this.pageInfo, 'LANDSCAPE');
337
- reportRequest.searchStr = paramsString.join(' , ');
338
- this.reportRequest = reportRequest;
339
- // this.activeLevel = 1;
340
- } else {
341
- this.backendService.topPanelMessage$.next(new SnackMessage('INVALID_REPORT_FORM', true, 'error'));
342
- }
343
- }
344
-
345
- private getParamValue(f: FieldInfo) {
346
- if (f.type === 'date' && this.backendService.parentForm.get(f.property)?.value) {
347
- return formatDate(this.backendService.parentForm.get(f.property)?.value, 'yyyy-MM-dd', 'en_US')
348
- }else if (f.type === 'checkbox') {
349
- return !!this.backendService.parentForm.get(f.property)?.value;
350
- }else {
351
- return this.backendService.parentForm.get(f.property)?.value;
352
- }
353
- }
354
-
355
- private getParamValueLabel(f: FieldInfo) {
356
- if (f.type === 'checkbox') {
357
- return this.backendService.parentForm.get(f.property)?.value ? this.translateService.instant('yes') : this.translateService.instant('no');
358
- }else {
359
- return this.backendService.parentForm.get(f.property)?.value;
360
- }
361
- }
362
-
363
- getTitle() {
364
- const pageInfoMap = {
365
- 1: this.pageInfo,
366
- 2: this.drillDownPageInfo,
367
- 3: this.juniorPageInfo
368
- };
369
-
370
- const currentInfo = pageInfoMap[this.activeLevel] || this.pageInfo;
371
- return `${currentInfo.labelsSection}.${currentInfo.id}`;
372
- }
373
-
374
- updateForm($event: FormGroup) {
375
- this.reportForm = $event;
376
- this.backendService.parentForm = $event;
377
- this.backendService.parentForm.valueChanges.subscribe(x => {
378
- this.readyToSearch = this.backendService.parentForm.valid;
379
- }
380
-
381
- );
382
- }
383
-
384
- isValidForm() {
385
- return this.readyToSearch ;
386
-
387
- }
388
-
389
-
390
-
391
- emitUserAction($event: TablePageUserAction) {
392
- $event.pageInfo = this.pageInfo;
393
- this.doADrillDownAction($event);
394
- }
395
-
396
- emitHyperLinkAction($event: TablePageUserAction) {
397
- if (this.shouldProcessEventItem($event.item)) {
398
- this.dialogReportRequest = cloneDeep(this.reportRequest);
399
- const reportRequest1 = this.backendService.buildReportRequest(
400
- this.juniorColumns,
401
- this.juniorPageInfo.labelsSection + '.' + this.juniorPageInfo.id,
402
- { ...this.dialogReportRequest.filterRequest },
403
- '',
404
- this.juniorPageInfo,
405
- 'LANDSCAPE'
406
- );
407
- reportRequest1.filterRequest.pageIndex = 0
408
- const dialogRef = this.dialog.open(ReportDetailsDialogComponent, {
409
- data: {
410
- pageInfo: this.juniorPageInfo,
411
- request: reportRequest1,
412
- columns: this.juniorColumns,
413
- item :$event.item
414
- },
415
- height: '50vw',
416
- maxWidth: '120vw',
417
- direction: this.currentDirection,
418
- disableClose: false,
419
- });
420
-
421
- dialogRef.afterOpened().subscribe(() => {
422
- this.doHyperLinkAction($event);
423
- });
424
-
425
- dialogRef.afterClosed().subscribe(() => {
426
- });
427
- }
428
- }
429
-
430
-
431
-
432
- emitJuniorAction($event: TablePageUserAction) {
433
- console.log('$event call junior', $event);
434
- const juniorAction = JUNIOR_DOWN_ACTION;
435
- juniorAction.pageInfo = this.drillDownPageInfo;
436
- this.doJuniorAction($event);
437
- }
438
-
439
- drillDown() {
440
- const drilldownaction = DRILL_DOWN_ACTION;
441
- drilldownaction.pageInfo = this.drillDownPageInfo;
442
- this.doADrillDownAction(drilldownaction);
443
- }
444
-
445
- private doJuniorAction($event: TablePageUserAction) {
446
- this.juniorColumns = this.originalColumns
447
- if (this.juniorColumns && this.juniorPageInfo) {
448
- if (this.enrichJuniorReportRequest) {
449
-
450
- this.isEditable = false;
451
- this.juniorReportRequest = this.backendService.buildReportRequest(this.juniorColumns,
452
- this.juniorPageInfo.labelsSection + '.' + this.juniorPageInfo.id,
453
- this.reportRequest.filterRequest, '', this.juniorPageInfo, 'LANDSCAPE');
454
- this.enrichJuniorReportRequest($event, this.juniorReportRequest);
455
- }
456
- this.activeLevel = this.activeLevel +1;
457
- this.addOrUpdateFilter(this.reportRequest.filterRequest, {
458
- key: 'iSecLevel',
459
- fieldName: 'iSecLevel',
460
- value: this.activeLevel
461
- });
462
- }
463
- }
464
- private doADrillDownAction($event: TablePageUserAction) {
465
-
466
- if (this.drillDownColumns && this.drillDownPageInfo) {
467
- this.drillDownRequestStack.push(cloneDeep(this.reportRequest));
468
- if (this.enrichDrillDownReportRequest) {
469
- this.isEditable = false;
470
- this.childReportRequest = this.backendService.buildReportRequest(this.drillDownColumns,
471
- this.drillDownPageInfo.labelsSection + '.' + this.drillDownPageInfo.id,
472
- this.reportRequest.filterRequest, '', this.drillDownPageInfo, 'LANDSCAPE');
473
- this.enrichDrillDownReportRequest($event, this.childReportRequest);
474
-
475
- }
476
- this.childReportRequest.filterRequest.pageSize = 500
477
- this.activeLevel = this.activeLevel +1;
478
- this.addOrUpdateFilter(this.reportRequest.filterRequest, {
479
- key: 'iSecLevel',
480
- fieldName: 'iSecLevel',
481
- value: this.activeLevel
482
- });
483
- if (this.isComparisonReport){
484
- this.addOrUpdateFilter(this.reportRequest.filterRequest, {
485
- id: 'iSecValue',
486
- key: 'iSecValue',
487
- fieldName: 'iSecValue',
488
- value: $event.item.isec_value
489
- });
490
-
491
- }
492
- if (this.activeLevel === 4) {
493
- this.drillDownColumns = this.drillDownColumns.filter(item => item.type !== 'button');
494
- }
495
- this.reloadData = true
496
- }
497
- }
498
-
499
- private addOrUpdateFilter(
500
- filterRequest: FilterRequest,
501
- options: {
502
- id?: string;
503
- key: string;
504
- fieldName: string;
505
- value: any;
506
- }
507
- ): void {
508
- const { id, key, fieldName, value } = options;
509
-
510
- const existingFilterIndex = filterRequest.filters.findIndex((filter: Filter) =>
511
- id ? filter.id === id : filter.key === key
512
- );
513
-
514
- const newFilter = new Filter({
515
- ...(id && { id }),
516
- key,
517
- fieldName,
518
- label: '',
519
- filterType: 'FILED_FILTER',
520
- operator: 'EQUALS',
521
- valueObject: value
522
- });
523
-
524
- if (existingFilterIndex !== -1) {
525
- filterRequest.filters[existingFilterIndex] = newFilter;
526
- } else {
527
- filterRequest.filters.push(newFilter);
528
- }
529
- }
530
-
531
- private doHyperLinkAction($event: TablePageUserAction) {
532
- if (this.enrichHyperLinkReportRequest) {
533
- this.juniorReportRequest = this.backendService.buildReportRequest(this.juniorColumns,
534
- this.juniorPageInfo.labelsSection + '.' + this.juniorPageInfo.id,
535
- this.dialogReportRequest.filterRequest, '', this.juniorPageInfo, 'LANDSCAPE');
536
- this.enrichHyperLinkReportRequest($event, this.juniorReportRequest);
537
- }
538
- }
539
-
540
- extractReport(reportType: any) {
541
- this.reportRequest.reportType = reportType;
542
- this.backendService.downloadReport(this.reportRequest, this.drillDownPageInfo.apiUri );
543
-
544
- }
545
-
546
- goUp() {
547
- Object.keys(this.reportForm.controls).forEach(controlName => {
548
- const control = this.reportForm.get(controlName);
549
- control?.clearValidators();
550
- control?.updateValueAndValidity();
551
- });
552
- this.isEditable = true;
553
- this.activeLevel = this.activeLevel - 1;
554
- if (this.activeLevel > 1 ) {
555
- this.isEditable = false;
556
- }
557
- this.doAction(this.x);
558
- this.reportRequest = this.drillDownRequestStack.pop();
559
- this.addOrUpdateFilter(this.reportRequest.filterRequest, {
560
- key: 'iSecLevel',
561
- fieldName: 'iSecLevel',
562
- value: this.activeLevel
563
- });
564
- this.reloadData = true;
565
- if (this.activeLevel !== 4) {
566
- this.drillDownColumns = [...this.originalColumns];
567
- }
568
- }
569
-
570
-
571
- drillDownEnabled() {
572
- return this.drillDownPageInfo && !this.hideDrillDownButton && !this.getIsEmptyList();
573
- }
574
-
575
- drillDownLabel() {
576
- return `${this.pageInfo.labelsSection}.drillDownLabel` ;
577
- }
578
- getIsEmptyList() {
579
- return this.backendService.isEmptyItems;
580
- }
581
- clear() {
582
- const currentUrl = this.router.url;
583
- this.router.navigateByUrl('/', { skipLocationChange: true }).then(() => {
584
- this.router.navigate([currentUrl]);
585
- });
586
- }
587
-
588
-
589
- isFormEmpty(): boolean {
590
- if (!this.reportForm || !this.reportForm.value) {
591
- return true;
592
- }
593
-
594
- return Object.values(this.reportForm.value).every(value => {
595
- if (value === null || value === undefined || value === '') {
596
- return true;
597
- }
598
- return Array.isArray(value) && value.length === 0;
599
-
600
- });
601
- }
602
-
603
- shouldProcessEventItem(item: any): boolean {
604
- const groupByProp = this.pageInfo?.groupByProperty;
605
- const groupByValues = this.pageInfo?.groupByValue;
606
-
607
- if (!groupByProp || !groupByValues || !item[groupByProp]) {
608
- return true;
609
- }
610
-
611
- const value = item[groupByProp].toString();
612
-
613
- return !groupByValues.some(v => value.includes(v) && value.length >= v.length);
614
- }
615
-
616
- }
@@ -1,8 +0,0 @@
1
-
2
- <app-base-form-canvas
3
- [pageInfo]="pageInfo"
4
- [fields]="filterFields"
5
- [editable]="editable"
6
- (formUpdated)="formChanges($event)"
7
- >
8
- </app-base-form-canvas>
@@ -1,25 +0,0 @@
1
- import { async, ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { FieldFilterComponent } from './field-filter.component';
4
-
5
- describe('FieldFilterComponent', () => {
6
- let component: FieldFilterComponent;
7
- let fixture: ComponentFixture<FieldFilterComponent>;
8
-
9
- beforeEach(async(() => {
10
- TestBed.configureTestingModule({
11
- declarations: [ FieldFilterComponent ]
12
- })
13
- .compileComponents();
14
- }));
15
-
16
- beforeEach(() => {
17
- fixture = TestBed.createComponent(FieldFilterComponent);
18
- component = fixture.componentInstance;
19
- fixture.detectChanges();
20
- });
21
-
22
- it('should create', () => {
23
- expect(component).toBeTruthy();
24
- });
25
- });