@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,135 +0,0 @@
1
- .snackbar {
2
- position: relative;
3
- width: auto;
4
- max-width: 100%;
5
- box-sizing: border-box;
6
- background: #fff;
7
- border: 1.5px solid #1c8c7a;
8
- border-radius: 10px;
9
- padding: 12px 20px;
10
- display: flex;
11
- flex-direction: column;
12
- color: #1c8c7a;
13
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
14
- overflow: hidden;
15
- word-break: break-word;
16
- overflow-wrap: anywhere;
17
- --snackbar-icon-size: clamp(16px, 2.4vw, 20px);
18
- --snackbar-title-size: clamp(14px, 2.6vw, 16px);
19
- --snackbar-subtitle-size: clamp(12px, 2.3vw, 14px);
20
-
21
- .sub-snackbar {
22
- display: flex;
23
- gap: 10px;
24
- align-items: start;
25
-
26
- mat-icon {
27
- font-size: var(--snackbar-icon-size);
28
- line-height: 1;
29
- width: 1em;
30
- height: 1em;
31
- flex: 0 0 auto;
32
- }
33
-
34
- .text-content {
35
- display: flex;
36
- flex-direction: column;
37
- line-height: 24px;
38
-
39
- .title {
40
- font-weight: 400;
41
- color: inherit;
42
- font-family: 'lusail-regular', sans-serif;
43
- font-size: var(--snackbar-title-size);
44
- }
45
-
46
- .subtitle {
47
- font-weight: 400;
48
- color: #888;
49
- font-family: 'lusail-light', sans-serif;
50
- font-size: var(--snackbar-subtitle-size);
51
- }
52
- }
53
- }
54
-
55
- .action {
56
- display: flex;
57
- justify-content: flex-end;
58
-
59
- .action-btn {
60
- font-size: var(--snackbar-title-size);
61
- font-weight: 400;
62
- border-radius: 8px;
63
- min-height: 19px !important;
64
- margin: 0 !important;
65
- max-width: 100%;
66
-
67
- mat-icon {
68
- font-size: var(--snackbar-icon-size);
69
- }
70
- }
71
- }
72
- }
73
-
74
- .snackbar-success {
75
- border-color: #0D7D6A;
76
- color: #0D7D6A;
77
- }
78
-
79
- .snackbar-error {
80
- border-color: #a42b2b;
81
- color: #a42b2b;
82
- }
83
-
84
- .snackbar-warning {
85
- border-color: #B54708;
86
- color: #B54708;
87
- }
88
-
89
- .snackbar-info {
90
- border-color: #0d47a1;
91
- color: #0d47a1;
92
- }
93
- .snackbar-help {
94
- border-color: var(--primary-color-3nd);
95
- color: var(--primary-color-3nd);
96
- }
97
-
98
- /* Responsive adjustments */
99
- @media (max-width: 600px) {
100
- .snackbar {
101
- padding: 10px 14px;
102
- /* tighten fluid sizes a bit on small screens */
103
- --snackbar-icon-size: clamp(16px, 3.6vw, 18px);
104
- --snackbar-title-size: clamp(14px, 3.8vw, 15px);
105
- --snackbar-subtitle-size: clamp(12px, 3.4vw, 13px);
106
- }
107
-
108
- .snackbar .sub-snackbar {
109
- gap: 8px;
110
- }
111
-
112
- .snackbar .sub-snackbar .text-content {
113
- line-height: 22px;
114
- }
115
-
116
- .snackbar .action {
117
- margin-top: 8px;
118
- }
119
-
120
- .snackbar .action .action-btn {
121
- width: 100%;
122
- font-size: var(--snackbar-title-size);
123
- }
124
- }
125
-
126
- @media (max-width: 360px) {
127
- .snackbar {
128
- padding: 8px 10px;
129
- border-radius: 8px;
130
- /* even tighter bounds for very small devices */
131
- --snackbar-icon-size: clamp(14px, 4.5vw, 16px);
132
- --snackbar-title-size: clamp(13px, 4.6vw, 14px);
133
- --snackbar-subtitle-size: clamp(11px, 4.2vw, 12px);
134
- }
135
- }
@@ -1,26 +0,0 @@
1
- import {Component, EventEmitter, Input, Output} from '@angular/core';
2
- import {MatButton, MatIconButton} from '@angular/material/button';
3
- import { MatIcon } from '@angular/material/icon';
4
- import {NgIf, NgStyle} from '@angular/common';
5
- import { TranslateModule } from '@ngx-translate/core';
6
-
7
- @Component({
8
- selector: 'app-snackbar-static',
9
- standalone: true,
10
- imports: [MatIcon, NgIf, TranslateModule, MatIconButton, MatButton, NgStyle],
11
- templateUrl: './snackbar-static.component.html',
12
- styleUrls: ['./snackbar-static.component.scss']
13
- })
14
- export class SnackbarStaticComponent {
15
- @Input() messageKey = '';
16
- @Input() titleKey = '';
17
- @Input() params: Record<string, any> = {};
18
- @Input() paramsTitle: Record<string, any> = {};
19
- @Input() type: 'error' | 'success' | 'warning' | 'info' | 'help'
20
- @Output() actionBtn: EventEmitter<void> = new EventEmitter();
21
- @Input() width: string = 'auto';
22
- @Input() textBtn: string;
23
- submit() {
24
- this.actionBtn.emit()
25
- }
26
- }
@@ -1 +0,0 @@
1
- {"version":3,"sourceRoot":"","sources":[],"names":[],"mappings":"","file":"title-bar.component.css"}
@@ -1,35 +0,0 @@
1
- <div class="row mainTitleBar gap-20 default-align">
2
-
3
- <div class="column flex-auto textTitle" >
4
- <h2 *ngIf="false">
5
- <span class="textTitle__titleMode">{{ titleMode | translate }}</span>
6
- {{ listTitle | translate }}
7
- <span *ngIf="titleCorporateAdmin && isRoot">({{ titleCorporateAdmin }})</span>
8
- {{ extraData }}
9
- </h2>
10
- <span *ngIf="false" class="textTitle__subTitle">{{ subTitle | translate }}</span>
11
- </div>
12
-
13
- <div class="column end-items gap-20">
14
- <button mat-flat-button color="primary" style="width: 100px" *ngIf="!hideBackButton" (click)="goBack()" id="title-bar-back-btn">
15
- <mat-icon color="second">{{ backIcon }}</mat-icon>
16
- <span style="font-weight: bold">{{ 'back' | translate }}</span>
17
- </button>
18
-
19
- <div class="row flex-auto gap-20 buttons-wrapper">
20
- <button
21
- mat-flat-button
22
- *ngFor="let btn of buttons"
23
- [color]="btn.color || 'primary'"
24
- (click)="onButtonClick(btn)"
25
- class="btn-background-primary action-btn"
26
- [attr.id]="btn.id || ('title-bar-btn-' + (btn.action || btn.label || btn.key))"
27
- >
28
- <div class="button-text">
29
- <mat-icon>{{ btn.icon }}</mat-icon>
30
- <span>{{ btn.label | translate }}</span>
31
- </div>
32
- </button>
33
- </div>
34
- </div>
35
- </div>
@@ -1,126 +0,0 @@
1
- /* ===== Main Title Bar ===== */
2
- .mainTitleBar {
3
- display: flex;
4
- width: 100%;
5
- gap: 20px;
6
- align-items: center;
7
- justify-content: flex-start;
8
-
9
- &.row {
10
- flex-direction: row;
11
- }
12
-
13
- &.column {
14
- flex-direction: column;
15
- }
16
-
17
- .textTitle {
18
- flex: 1 1 0;
19
- display: flex;
20
- flex-direction: column;
21
- width: auto;
22
-
23
- h2 {
24
- margin: 0;
25
- padding: 0;
26
- line-height: 1.2;
27
- }
28
-
29
- &__titleMode {
30
- font-weight: 200;
31
- color: grey;
32
- }
33
-
34
- &__subTitle {
35
- color: #222;
36
- font-size: 14px;
37
- font-weight: 300;
38
- font-style: normal;
39
- }
40
- }
41
-
42
- .end-items {
43
- display: flex;
44
- flex-direction: column;
45
- align-items: flex-end;
46
- gap: 20px;
47
- }
48
-
49
- .buttons-wrapper {
50
- display: inline-block;
51
- text-align-last: end;
52
- .action-btn {
53
- width: 210px !important;
54
- }
55
- }
56
-
57
- .actionButton {
58
- width: 100%;
59
-
60
- &__expand {
61
- font-size: 20px !important;
62
- color: var(--accent-color);
63
- margin-top: 5px;
64
- }
65
- }
66
- }
67
-
68
- /* ===== Flex Helpers ===== */
69
- .row {
70
- display: flex;
71
- flex-direction: row;
72
- width: 100%;
73
- }
74
-
75
- .column {
76
- display: flex;
77
- flex-direction: column;
78
- width: auto;
79
- }
80
-
81
- .fx-flex-fill {
82
- width: 100%;
83
- height: 100%;
84
- flex: 1 1 auto;
85
- }
86
-
87
- .flex-auto {
88
- flex: 1 1 auto;
89
- display: flex;
90
- flex-direction: column;
91
- }
92
-
93
-
94
- .end-items {
95
- align-items: flex-end;
96
- }
97
-
98
- .gap-20 {
99
- gap: 20px;
100
- }
101
-
102
- /* ===== Responsive Adjustments ===== */
103
- @media (max-width: 960px) {
104
- .mainTitleBar.row.default-align {
105
- justify-content: flex-end;
106
- }
107
- }
108
-
109
- @media (max-width: 768px) {
110
- .mainTitleBar.row,
111
- .mainTitleBar.column {
112
- flex-direction: column;
113
- align-items: flex-start;
114
- gap: 20px;
115
- }
116
-
117
- .end-items {
118
- align-items: flex-start;
119
- }
120
- }
121
-
122
- @media (max-width: 600px) {
123
- .gap-20 {
124
- gap: 10px;
125
- }
126
- }
@@ -1,23 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { TitleBarComponent } from './title-bar.component';
4
-
5
- describe('TitleBarComponent', () => {
6
- let component: TitleBarComponent;
7
- let fixture: ComponentFixture<TitleBarComponent>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- imports: [TitleBarComponent]
12
- })
13
- .compileComponents();
14
-
15
- fixture = TestBed.createComponent(TitleBarComponent);
16
- component = fixture.componentInstance;
17
- fixture.detectChanges();
18
- });
19
-
20
- it('should create', () => {
21
- expect(component).toBeTruthy();
22
- });
23
- });
@@ -1,126 +0,0 @@
1
- import {Component, EventEmitter, Input, OnChanges, OnInit, Output, SimpleChanges} from '@angular/core';
2
- import {Location, NgForOf, NgIf} from "@angular/common";
3
- import {MatIconModule} from "@angular/material/icon";
4
- import {MatButton} from "@angular/material/button";
5
- import {MatMenu, MatMenuItem, MatMenuTrigger} from "@angular/material/menu";
6
- import {TranslateModule} from "@ngx-translate/core";
7
- import {Directionality} from "@angular/cdk/bidi";
8
- import {ButtonActionSettings} from "../../base-model";
9
-
10
- @Component({
11
- selector: 'app-title-bar',
12
- standalone: true,
13
- imports: [
14
- NgIf,
15
- MatIconModule,
16
- MatButton,
17
- MatMenuItem,
18
- MatMenu,
19
- NgForOf,
20
- MatMenuTrigger,
21
- TranslateModule,
22
-
23
- ],
24
- templateUrl: './title-bar.component.html',
25
- styleUrls: ['./title-bar.component.css', 'title-bar.component.scss']
26
- })
27
- export class TitleBarComponent implements OnInit, OnChanges {
28
- @Input()
29
- pageTitle: string = "";
30
-
31
- @Input()
32
- showExtractButton: boolean = false;
33
-
34
- @Input()
35
- totalElements?: number;
36
-
37
- @Input()
38
- titleMode: string = '';
39
- @Input()
40
- subTitle: string = '';
41
-
42
- @Input()
43
- statusDesc?: string;
44
-
45
- @Input()
46
- newAction: boolean = false;
47
-
48
-
49
- @Input() // @ts-ignore
50
- extraButton: string;
51
-
52
-
53
- @Input()
54
- showDetails: any = [];
55
-
56
- @Input()
57
- showImport = false;
58
-
59
- @Input()
60
- showButton = false;
61
-
62
- @Output()
63
- newActionClicked = new EventEmitter();
64
-
65
- @Output()
66
- extraButtonClicked = new EventEmitter();
67
-
68
-
69
- @Output()
70
- extractReport = new EventEmitter();
71
-
72
- @Input()
73
- extraData = '';
74
-
75
- listTitle = '';
76
- newButton = '';
77
-
78
- @Input()
79
- titleCorporateAdmin: string = '';
80
-
81
- isRoot: boolean = false;
82
- @Input()
83
- hideBackButton: boolean = true;
84
-
85
- @Input() buttons: ButtonActionSettings[] = [];
86
- @Output() buttonClicked = new EventEmitter<ButtonActionSettings>();
87
- constructor(private location:Location,
88
- private dir: Directionality) {
89
- }
90
-
91
- ngOnInit(): void {
92
- this.listTitle = this.pageTitle;
93
- this.newButton = this.extraButton;
94
- // this.isRoot = this.authService.isRootOrg();
95
- this.isRoot = false;
96
- }
97
- get backIcon(): string {
98
- return this.dir.value === 'rtl' ? 'arrow_back' : 'arrow_forward';
99
- }
100
-
101
- publishEvent() {
102
- this.newActionClicked.emit(true);
103
- }
104
-
105
-
106
- doExtractReport(value: any) {
107
- this.extractReport.emit(value);
108
- }
109
- publishExtraButtonEvent() {
110
- this.extraButtonClicked.emit(true);
111
- }
112
-
113
- ngOnChanges(changes: SimpleChanges): void {
114
- if (changes["pageTitle"] && !changes["pageTitle"].isFirstChange() ) {
115
- this.listTitle = this.pageTitle;
116
- }
117
- }
118
-
119
- goBack() {
120
- this.location.back()
121
- }
122
-
123
- onButtonClick(btn: ButtonActionSettings) {
124
- this.buttonClicked.emit(btn);
125
- }
126
- }