@verisoft/ui-primeng 18.7.0 → 18.8.0

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 (383) hide show
  1. package/README.md +7 -57
  2. package/assets/icons/complex/v-logo.svg +4 -4
  3. package/assets/sass/base/_scrollbar.scss +18 -18
  4. package/assets/sass/base/_typography.scss +24 -24
  5. package/assets/sass/layout/_app.scss +26 -26
  6. package/assets/sass/layout/_button.scss +57 -57
  7. package/assets/sass/layout/_checkbox.scss +32 -32
  8. package/assets/sass/layout/_dialog.scss +12 -12
  9. package/assets/sass/layout/_dropdown.scss +8 -8
  10. package/assets/sass/layout/_formField.scss +4 -4
  11. package/assets/sass/layout/_header.scss +62 -62
  12. package/assets/sass/layout/_icons.scss +12 -12
  13. package/assets/sass/layout/_inputSwitch.scss +12 -12
  14. package/assets/sass/layout/_layout.scss +5 -5
  15. package/assets/sass/layout/_loader.scss +8 -8
  16. package/assets/sass/layout/_radiobutton.scss +21 -21
  17. package/assets/sass/layout/_sidemenu.scss +172 -172
  18. package/assets/sass/layout/_snackbar.scss +7 -7
  19. package/assets/sass/layout/_tables.scss +4 -4
  20. package/assets/sass/layout/_tree.scss +11 -11
  21. package/assets/sass/layout/_tristatecheckbox.scss +14 -14
  22. package/assets/sass/main.scss +28 -28
  23. package/assets/sass/themes/_verisoft_theme.scss +46 -46
  24. package/assets/sass/utils/_utils.scss +39 -39
  25. package/assets/sass/utils/_variables.scss +12 -12
  26. package/assets/sass/vendors/_bootstrap.scss +2 -2
  27. package/assets/sass/vendors/_primeng.scss +2 -2
  28. package/esm2022/index.mjs +30 -0
  29. package/esm2022/lib/components/breadcrumb/breadcrumb.component.mjs +31 -0
  30. package/esm2022/lib/components/breadcrumb/breadcrumb.pipe.mjs +17 -0
  31. package/esm2022/lib/components/breadcrumb/index.mjs +2 -0
  32. package/esm2022/lib/components/button/button.component.mjs +61 -0
  33. package/esm2022/lib/components/button/index.mjs +2 -0
  34. package/esm2022/lib/components/calendar/calendar.component.mjs +73 -0
  35. package/esm2022/lib/components/calendar/index.mjs +2 -0
  36. package/esm2022/lib/components/checkbox/checkbox.component.mjs +47 -0
  37. package/esm2022/lib/components/checkbox/index.mjs +2 -0
  38. package/esm2022/lib/components/confirm-dialog/confirm-dialog.component.mjs +65 -0
  39. package/esm2022/lib/components/confirm-dialog/index.mjs +2 -0
  40. package/esm2022/lib/components/dropdown/dropdown.component.mjs +139 -0
  41. package/esm2022/lib/components/dropdown/index.mjs +2 -0
  42. package/esm2022/lib/components/errors/error.component.mjs +41 -0
  43. package/esm2022/lib/components/errors/index.mjs +2 -0
  44. package/esm2022/lib/components/form-field/form-field.component.mjs +41 -0
  45. package/esm2022/lib/components/form-field/index.mjs +2 -0
  46. package/esm2022/lib/components/header/header.component.mjs +58 -0
  47. package/esm2022/lib/components/header/index.mjs +3 -0
  48. package/esm2022/lib/components/header/services/header-provider.service.mjs +24 -0
  49. package/esm2022/lib/components/input-group/index.mjs +2 -0
  50. package/esm2022/lib/components/input-group/input-group.component.mjs +57 -0
  51. package/esm2022/lib/components/loader/index.mjs +2 -0
  52. package/esm2022/lib/components/loader/loader.component.mjs +19 -0
  53. package/esm2022/lib/components/multiselect/index.mjs +2 -0
  54. package/esm2022/lib/components/multiselect/multiselect.component.mjs +124 -0
  55. package/esm2022/lib/components/number-input/index.mjs +2 -0
  56. package/esm2022/lib/components/number-input/number-input.component.mjs +64 -0
  57. package/esm2022/lib/components/page-header/index.mjs +2 -0
  58. package/esm2022/lib/components/page-header/page-header.component.mjs +28 -0
  59. package/esm2022/lib/components/password/index.mjs +2 -0
  60. package/esm2022/lib/components/password/password.component.mjs +59 -0
  61. package/esm2022/lib/components/radiobutton/index.mjs +2 -0
  62. package/esm2022/lib/components/radiobutton/radiobutton.component.mjs +57 -0
  63. package/esm2022/lib/components/section/index.mjs +2 -0
  64. package/esm2022/lib/components/section/section.component.mjs +35 -0
  65. package/esm2022/lib/components/shared-components/action-button-group/action-button-group.component.mjs +92 -0
  66. package/esm2022/lib/components/shared-components/action-button-group/components/action-button/action-button.component.mjs +60 -0
  67. package/esm2022/lib/components/shared-components/action-button-group/index.mjs +3 -0
  68. package/esm2022/lib/components/shared-components/dynamic-component/dynamic-component-factory.service.mjs +90 -0
  69. package/esm2022/lib/components/shared-components/dynamic-component/dynamic-component.component.mjs +41 -0
  70. package/esm2022/lib/components/shared-components/dynamic-component/index.mjs +3 -0
  71. package/esm2022/lib/components/shared-components/feature-list/directives/feature-list-column.directive.mjs +46 -0
  72. package/esm2022/lib/components/shared-components/feature-list/directives/feature-list-filter-field.directive.mjs +16 -0
  73. package/esm2022/lib/components/shared-components/feature-list/feature-list-filter.pipe.mjs +24 -0
  74. package/esm2022/lib/components/shared-components/feature-list/feature-list-page.component.mjs +42 -0
  75. package/esm2022/lib/components/shared-components/feature-list/feature-list-page.model.mjs +16 -0
  76. package/esm2022/lib/components/shared-components/feature-list/feature-list.component.mjs +275 -0
  77. package/esm2022/lib/components/shared-components/feature-list/index.mjs +6 -0
  78. package/esm2022/lib/components/shared-components/filter/directives/filter-field.directive.mjs +44 -0
  79. package/esm2022/lib/components/shared-components/filter/filter.component.mjs +190 -0
  80. package/esm2022/lib/components/shared-components/filter/filter.model.mjs +16 -0
  81. package/esm2022/lib/components/shared-components/filter/index.mjs +3 -0
  82. package/esm2022/lib/components/shared-components/generic-field/generic-field.component.mjs +93 -0
  83. package/esm2022/lib/components/shared-components/generic-field/index.mjs +2 -0
  84. package/esm2022/lib/components/shared-components/generic-form/generic-form.component.mjs +40 -0
  85. package/esm2022/lib/components/shared-components/generic-form/generic-form.model.mjs +50 -0
  86. package/esm2022/lib/components/shared-components/generic-form/index.mjs +3 -0
  87. package/esm2022/lib/components/shared-components/index.mjs +7 -0
  88. package/esm2022/lib/components/side-menu/index.mjs +3 -0
  89. package/esm2022/lib/components/side-menu/side-menu.component.mjs +92 -0
  90. package/esm2022/lib/components/side-menu/side-menu.module.mjs +74 -0
  91. package/esm2022/lib/components/slider/index.mjs +2 -0
  92. package/esm2022/lib/components/slider/slider.component.mjs +62 -0
  93. package/esm2022/lib/components/snackbar/index.mjs +3 -0
  94. package/esm2022/lib/components/snackbar/services/snackbar.service.mjs +50 -0
  95. package/esm2022/lib/components/snackbar/snackbar.component.mjs +33 -0
  96. package/esm2022/lib/components/stepper/index.mjs +2 -0
  97. package/esm2022/lib/components/stepper/stepper.component.mjs +48 -0
  98. package/esm2022/lib/components/switch/index.mjs +2 -0
  99. package/esm2022/lib/components/switch/switch.component.mjs +54 -0
  100. package/esm2022/lib/components/tab-view/index.mjs +4 -0
  101. package/esm2022/lib/components/tab-view/tab-menu.pipe.mjs +25 -0
  102. package/esm2022/lib/components/tab-view/tab-view-item.component.mjs +31 -0
  103. package/esm2022/lib/components/tab-view/tab-view.component.mjs +50 -0
  104. package/esm2022/lib/components/tab-view/tab-view.module.mjs +29 -0
  105. package/esm2022/lib/components/table/index.mjs +2 -0
  106. package/esm2022/lib/components/table/table-filter.pipe.mjs +49 -0
  107. package/esm2022/lib/components/table/table.component.mjs +220 -0
  108. package/esm2022/lib/components/table/table.models.mjs +17 -0
  109. package/esm2022/lib/components/textarea/index.mjs +2 -0
  110. package/esm2022/lib/components/textarea/textarea.component.mjs +65 -0
  111. package/esm2022/lib/components/textfield/index.mjs +2 -0
  112. package/esm2022/lib/components/textfield/textfield.component.mjs +65 -0
  113. package/esm2022/lib/components/tristatecheckbox/index.mjs +2 -0
  114. package/esm2022/lib/components/tristatecheckbox/tristatecheckbox.component.mjs +53 -0
  115. package/esm2022/lib/icons.mjs +35 -0
  116. package/esm2022/lib/interceptors/http-error-message.interceptor.mjs +31 -0
  117. package/esm2022/verisoft-ui-primeng.mjs +5 -0
  118. package/fesm2022/verisoft-ui-primeng.mjs +2909 -0
  119. package/fesm2022/verisoft-ui-primeng.mjs.map +1 -0
  120. package/{src/index.ts → index.d.ts} +29 -29
  121. package/lib/components/breadcrumb/breadcrumb.component.d.ts +6 -0
  122. package/lib/components/breadcrumb/breadcrumb.pipe.d.ts +9 -0
  123. package/{src/lib/components/breadcrumb/index.ts → lib/components/breadcrumb/index.d.ts} +1 -1
  124. package/lib/components/button/button.component.d.ts +20 -0
  125. package/{src/lib/components/button/index.ts → lib/components/button/index.d.ts} +1 -1
  126. package/lib/components/calendar/calendar.component.d.ts +17 -0
  127. package/{src/lib/components/calendar/index.ts → lib/components/calendar/index.d.ts} +1 -1
  128. package/lib/components/checkbox/checkbox.component.d.ts +9 -0
  129. package/{src/lib/components/checkbox/index.ts → lib/components/checkbox/index.d.ts} +1 -1
  130. package/lib/components/confirm-dialog/confirm-dialog.component.d.ts +15 -0
  131. package/{src/lib/components/confirm-dialog/index.ts → lib/components/confirm-dialog/index.d.ts} +1 -1
  132. package/lib/components/dropdown/dropdown.component.d.ts +38 -0
  133. package/{src/lib/components/dropdown/index.ts → lib/components/dropdown/index.d.ts} +1 -1
  134. package/lib/components/errors/error.component.d.ts +16 -0
  135. package/lib/components/errors/index.d.ts +1 -0
  136. package/lib/components/form-field/form-field.component.d.ts +12 -0
  137. package/{src/lib/components/form-field/index.ts → lib/components/form-field/index.d.ts} +1 -1
  138. package/lib/components/header/header.component.d.ts +23 -0
  139. package/{src/lib/components/header/index.ts → lib/components/header/index.d.ts} +2 -2
  140. package/lib/components/header/services/header-provider.service.d.ts +10 -0
  141. package/{src/lib/components/input-group/index.ts → lib/components/input-group/index.d.ts} +1 -1
  142. package/lib/components/input-group/input-group.component.d.ts +9 -0
  143. package/{src/lib/components/loader/index.ts → lib/components/loader/index.d.ts} +1 -1
  144. package/lib/components/loader/loader.component.d.ts +6 -0
  145. package/{src/lib/components/multiselect/index.ts → lib/components/multiselect/index.d.ts} +1 -1
  146. package/lib/components/multiselect/multiselect.component.d.ts +34 -0
  147. package/{src/lib/components/number-input/index.ts → lib/components/number-input/index.d.ts} +1 -1
  148. package/lib/components/number-input/number-input.component.d.ts +14 -0
  149. package/{src/lib/components/page-header/index.ts → lib/components/page-header/index.d.ts} +1 -1
  150. package/lib/components/page-header/page-header.component.d.ts +10 -0
  151. package/{src/lib/components/password/index.ts → lib/components/password/index.d.ts} +1 -1
  152. package/lib/components/password/password.component.d.ts +11 -0
  153. package/{src/lib/components/radiobutton/index.ts → lib/components/radiobutton/index.d.ts} +1 -1
  154. package/lib/components/radiobutton/radiobutton.component.d.ts +10 -0
  155. package/{src/lib/components/section/index.ts → lib/components/section/index.d.ts} +1 -1
  156. package/lib/components/section/section.component.d.ts +12 -0
  157. package/lib/components/shared-components/action-button-group/action-button-group.component.d.ts +29 -0
  158. package/lib/components/shared-components/action-button-group/components/action-button/action-button.component.d.ts +24 -0
  159. package/{src/lib/components/shared-components/action-button-group/index.ts → lib/components/shared-components/action-button-group/index.d.ts} +2 -2
  160. package/lib/components/shared-components/dynamic-component/dynamic-component-factory.service.d.ts +17 -0
  161. package/lib/components/shared-components/dynamic-component/dynamic-component.component.d.ts +16 -0
  162. package/{src/lib/components/shared-components/dynamic-component/index.ts → lib/components/shared-components/dynamic-component/index.d.ts} +2 -2
  163. package/lib/components/shared-components/feature-list/directives/feature-list-column.directive.d.ts +10 -0
  164. package/lib/components/shared-components/feature-list/directives/feature-list-filter-field.directive.d.ts +6 -0
  165. package/lib/components/shared-components/feature-list/feature-list-filter.pipe.d.ts +9 -0
  166. package/lib/components/shared-components/feature-list/feature-list-page.component.d.ts +9 -0
  167. package/lib/components/shared-components/feature-list/feature-list-page.model.d.ts +23 -0
  168. package/lib/components/shared-components/feature-list/feature-list.component.d.ts +62 -0
  169. package/{src/lib/components/shared-components/feature-list/index.ts → lib/components/shared-components/feature-list/index.d.ts} +5 -5
  170. package/lib/components/shared-components/filter/directives/filter-field.directive.d.ts +20 -0
  171. package/lib/components/shared-components/filter/filter.component.d.ts +53 -0
  172. package/lib/components/shared-components/filter/filter.model.d.ts +2 -0
  173. package/{src/lib/components/shared-components/filter/index.ts → lib/components/shared-components/filter/index.d.ts} +2 -2
  174. package/lib/components/shared-components/generic-field/generic-field.component.d.ts +28 -0
  175. package/{src/lib/components/shared-components/generic-field/index.ts → lib/components/shared-components/generic-field/index.d.ts} +1 -1
  176. package/lib/components/shared-components/generic-form/generic-form.component.d.ts +15 -0
  177. package/lib/components/shared-components/generic-form/generic-form.model.d.ts +4 -0
  178. package/{src/lib/components/shared-components/generic-form/index.ts → lib/components/shared-components/generic-form/index.d.ts} +2 -2
  179. package/{src/lib/components/shared-components/index.ts → lib/components/shared-components/index.d.ts} +6 -6
  180. package/{src/lib/components/side-menu/index.ts → lib/components/side-menu/index.d.ts} +2 -2
  181. package/lib/components/side-menu/side-menu.component.d.ts +27 -0
  182. package/lib/components/side-menu/side-menu.module.d.ts +13 -0
  183. package/{src/lib/components/slider/index.ts → lib/components/slider/index.d.ts} +1 -1
  184. package/lib/components/slider/slider.component.d.ts +12 -0
  185. package/{src/lib/components/snackbar/index.ts → lib/components/snackbar/index.d.ts} +2 -2
  186. package/lib/components/snackbar/services/snackbar.service.d.ts +12 -0
  187. package/lib/components/snackbar/snackbar.component.d.ts +9 -0
  188. package/{src/lib/components/stepper/index.ts → lib/components/stepper/index.d.ts} +1 -1
  189. package/lib/components/stepper/stepper.component.d.ts +17 -0
  190. package/{src/lib/components/switch/index.ts → lib/components/switch/index.d.ts} +1 -1
  191. package/lib/components/switch/switch.component.d.ts +9 -0
  192. package/{src/lib/components/tab-view/index.ts → lib/components/tab-view/index.d.ts} +3 -3
  193. package/lib/components/tab-view/tab-menu.pipe.d.ts +9 -0
  194. package/lib/components/tab-view/tab-view-item.component.d.ts +12 -0
  195. package/lib/components/tab-view/tab-view.component.d.ts +17 -0
  196. package/lib/components/tab-view/tab-view.module.d.ts +13 -0
  197. package/{src/lib/components/table/index.ts → lib/components/table/index.d.ts} +1 -1
  198. package/lib/components/table/table-filter.pipe.d.ts +13 -0
  199. package/lib/components/table/table.component.d.ts +67 -0
  200. package/lib/components/table/table.models.d.ts +4 -0
  201. package/{src/lib/components/textarea/index.ts → lib/components/textarea/index.d.ts} +1 -1
  202. package/lib/components/textarea/textarea.component.d.ts +12 -0
  203. package/{src/lib/components/textfield/index.ts → lib/components/textfield/index.d.ts} +1 -1
  204. package/lib/components/textfield/textfield.component.d.ts +12 -0
  205. package/{src/lib/components/tristatecheckbox/index.ts → lib/components/tristatecheckbox/index.d.ts} +1 -1
  206. package/lib/components/tristatecheckbox/tristatecheckbox.component.d.ts +9 -0
  207. package/lib/icons.d.ts +2 -0
  208. package/lib/interceptors/http-error-message.interceptor.d.ts +11 -0
  209. package/package.json +37 -22
  210. package/.eslintrc.json +0 -43
  211. package/assets/.gitkeep +0 -0
  212. package/jest.config.ts +0 -22
  213. package/ng-package.json +0 -15
  214. package/project.json +0 -36
  215. package/src/lib/components/breadcrumb/breadcrumb.component.html +0 -12
  216. package/src/lib/components/breadcrumb/breadcrumb.component.scss +0 -18
  217. package/src/lib/components/breadcrumb/breadcrumb.component.spec.ts +0 -21
  218. package/src/lib/components/breadcrumb/breadcrumb.component.stories.ts +0 -36
  219. package/src/lib/components/breadcrumb/breadcrumb.component.ts +0 -29
  220. package/src/lib/components/breadcrumb/breadcrumb.pipe.ts +0 -13
  221. package/src/lib/components/button/button.component.html +0 -20
  222. package/src/lib/components/button/button.component.scss +0 -0
  223. package/src/lib/components/button/button.component.spec.ts +0 -21
  224. package/src/lib/components/button/button.component.ts +0 -49
  225. package/src/lib/components/calendar/calendar.component.html +0 -53
  226. package/src/lib/components/calendar/calendar.component.scss +0 -0
  227. package/src/lib/components/calendar/calendar.component.spec.ts +0 -21
  228. package/src/lib/components/calendar/calendar.component.ts +0 -72
  229. package/src/lib/components/checkbox/checkbox.component.html +0 -19
  230. package/src/lib/components/checkbox/checkbox.component.scss +0 -15
  231. package/src/lib/components/checkbox/checkbox.component.spec.ts +0 -21
  232. package/src/lib/components/checkbox/checkbox.component.stories.ts +0 -72
  233. package/src/lib/components/checkbox/checkbox.component.ts +0 -45
  234. package/src/lib/components/confirm-dialog/confirm-dialog.component.html +0 -48
  235. package/src/lib/components/confirm-dialog/confirm-dialog.component.scss +0 -3
  236. package/src/lib/components/confirm-dialog/confirm-dialog.component.spec.ts +0 -21
  237. package/src/lib/components/confirm-dialog/confirm-dialog.component.stories.ts +0 -74
  238. package/src/lib/components/confirm-dialog/confirm-dialog.component.ts +0 -74
  239. package/src/lib/components/dropdown/dropdown.component.html +0 -96
  240. package/src/lib/components/dropdown/dropdown.component.scss +0 -16
  241. package/src/lib/components/dropdown/dropdown.component.spec.ts +0 -21
  242. package/src/lib/components/dropdown/dropdown.component.stories.ts +0 -90
  243. package/src/lib/components/dropdown/dropdown.component.ts +0 -144
  244. package/src/lib/components/errors/error.component.html +0 -6
  245. package/src/lib/components/errors/error.component.scss +0 -3
  246. package/src/lib/components/errors/error.component.ts +0 -35
  247. package/src/lib/components/errors/index.ts +0 -1
  248. package/src/lib/components/form-field/form-field.component.html +0 -36
  249. package/src/lib/components/form-field/form-field.component.scss +0 -0
  250. package/src/lib/components/form-field/form-field.component.spec.ts +0 -21
  251. package/src/lib/components/form-field/form-field.component.stories.ts +0 -69
  252. package/src/lib/components/form-field/form-field.component.ts +0 -38
  253. package/src/lib/components/header/header.component.html +0 -84
  254. package/src/lib/components/header/header.component.scss +0 -0
  255. package/src/lib/components/header/header.component.spec.ts +0 -21
  256. package/src/lib/components/header/header.component.stories.ts +0 -24
  257. package/src/lib/components/header/header.component.ts +0 -66
  258. package/src/lib/components/header/services/header-provider.service.ts +0 -15
  259. package/src/lib/components/input-group/input-group.component.html +0 -30
  260. package/src/lib/components/input-group/input-group.component.spec.ts +0 -21
  261. package/src/lib/components/input-group/input-group.component.ts +0 -60
  262. package/src/lib/components/loader/loader.component.html +0 -5
  263. package/src/lib/components/loader/loader.component.scss +0 -0
  264. package/src/lib/components/loader/loader.component.spec.ts +0 -21
  265. package/src/lib/components/loader/loader.component.ts +0 -17
  266. package/src/lib/components/multiselect/multiselect.component.html +0 -70
  267. package/src/lib/components/multiselect/multiselect.component.scss +0 -0
  268. package/src/lib/components/multiselect/multiselect.component.spec.ts +0 -21
  269. package/src/lib/components/multiselect/multiselect.component.ts +0 -122
  270. package/src/lib/components/number-input/number-input.component.html +0 -22
  271. package/src/lib/components/number-input/number-input.component.spec.ts +0 -21
  272. package/src/lib/components/number-input/number-input.component.ts +0 -57
  273. package/src/lib/components/page-header/page-header.component.html +0 -31
  274. package/src/lib/components/page-header/page-header.component.scss +0 -0
  275. package/src/lib/components/page-header/page-header.component.spec.ts +0 -21
  276. package/src/lib/components/page-header/page-header.component.ts +0 -32
  277. package/src/lib/components/password/password.component.html +0 -24
  278. package/src/lib/components/password/password.component.scss +0 -0
  279. package/src/lib/components/password/password.component.spec.ts +0 -21
  280. package/src/lib/components/password/password.component.ts +0 -58
  281. package/src/lib/components/radiobutton/radiobutton.component.html +0 -32
  282. package/src/lib/components/radiobutton/radiobutton.component.scss +0 -6
  283. package/src/lib/components/radiobutton/radiobutton.component.spec.ts +0 -21
  284. package/src/lib/components/radiobutton/radiobutton.component.stories.ts +0 -71
  285. package/src/lib/components/radiobutton/radiobutton.component.ts +0 -62
  286. package/src/lib/components/section/section.component.html +0 -23
  287. package/src/lib/components/section/section.component.scss +0 -0
  288. package/src/lib/components/section/section.component.spec.ts +0 -21
  289. package/src/lib/components/section/section.component.ts +0 -32
  290. package/src/lib/components/shared-components/action-button-group/action-button-group.component.html +0 -27
  291. package/src/lib/components/shared-components/action-button-group/action-button-group.component.scss +0 -0
  292. package/src/lib/components/shared-components/action-button-group/action-button-group.component.spec.ts +0 -21
  293. package/src/lib/components/shared-components/action-button-group/action-button-group.component.ts +0 -114
  294. package/src/lib/components/shared-components/action-button-group/components/action-button/action-button.component.html +0 -11
  295. package/src/lib/components/shared-components/action-button-group/components/action-button/action-button.component.scss +0 -0
  296. package/src/lib/components/shared-components/action-button-group/components/action-button/action-button.component.spec.ts +0 -21
  297. package/src/lib/components/shared-components/action-button-group/components/action-button/action-button.component.ts +0 -71
  298. package/src/lib/components/shared-components/dynamic-component/dynamic-component-factory.service.ts +0 -142
  299. package/src/lib/components/shared-components/dynamic-component/dynamic-component.component.ts +0 -56
  300. package/src/lib/components/shared-components/feature-list/directives/feature-list-column.directive.ts +0 -32
  301. package/src/lib/components/shared-components/feature-list/directives/feature-list-filter-field.directive.ts +0 -8
  302. package/src/lib/components/shared-components/feature-list/feature-list-filter.pipe.ts +0 -21
  303. package/src/lib/components/shared-components/feature-list/feature-list-page.component.ts +0 -31
  304. package/src/lib/components/shared-components/feature-list/feature-list-page.model.ts +0 -42
  305. package/src/lib/components/shared-components/feature-list/feature-list.component.html +0 -59
  306. package/src/lib/components/shared-components/feature-list/feature-list.component.scss +0 -10
  307. package/src/lib/components/shared-components/feature-list/feature-list.component.ts +0 -342
  308. package/src/lib/components/shared-components/filter/directives/filter-field.directive.ts +0 -35
  309. package/src/lib/components/shared-components/filter/filter.component.html +0 -68
  310. package/src/lib/components/shared-components/filter/filter.component.scss +0 -0
  311. package/src/lib/components/shared-components/filter/filter.component.spec.ts +0 -21
  312. package/src/lib/components/shared-components/filter/filter.component.stories.ts +0 -23
  313. package/src/lib/components/shared-components/filter/filter.component.ts +0 -284
  314. package/src/lib/components/shared-components/filter/filter.model.ts +0 -18
  315. package/src/lib/components/shared-components/generic-field/generic-field.component.html +0 -97
  316. package/src/lib/components/shared-components/generic-field/generic-field.component.spec.ts +0 -21
  317. package/src/lib/components/shared-components/generic-field/generic-field.component.ts +0 -94
  318. package/src/lib/components/shared-components/generic-form/generic-form.component.html +0 -46
  319. package/src/lib/components/shared-components/generic-form/generic-form.component.spec.ts +0 -21
  320. package/src/lib/components/shared-components/generic-form/generic-form.component.ts +0 -57
  321. package/src/lib/components/shared-components/generic-form/generic-form.model.spec.ts +0 -82
  322. package/src/lib/components/shared-components/generic-form/generic-form.model.ts +0 -68
  323. package/src/lib/components/side-menu/side-menu.component.html +0 -52
  324. package/src/lib/components/side-menu/side-menu.component.scss +0 -0
  325. package/src/lib/components/side-menu/side-menu.component.spec.ts +0 -21
  326. package/src/lib/components/side-menu/side-menu.component.ts +0 -98
  327. package/src/lib/components/side-menu/side-menu.module.ts +0 -66
  328. package/src/lib/components/slider/slider.component.html +0 -19
  329. package/src/lib/components/slider/slider.component.spec.ts +0 -21
  330. package/src/lib/components/slider/slider.component.ts +0 -58
  331. package/src/lib/components/snackbar/services/snackbar.service.ts +0 -45
  332. package/src/lib/components/snackbar/snackbar.component.html +0 -3
  333. package/src/lib/components/snackbar/snackbar.component.scss +0 -0
  334. package/src/lib/components/snackbar/snackbar.component.spec.ts +0 -21
  335. package/src/lib/components/snackbar/snackbar.component.stories.ts +0 -70
  336. package/src/lib/components/snackbar/snackbar.component.ts +0 -26
  337. package/src/lib/components/stepper/stepper.component.html +0 -43
  338. package/src/lib/components/stepper/stepper.component.spec.ts +0 -21
  339. package/src/lib/components/stepper/stepper.component.ts +0 -40
  340. package/src/lib/components/switch/switch.component.html +0 -18
  341. package/src/lib/components/switch/switch.component.scss +0 -0
  342. package/src/lib/components/switch/switch.component.spec.ts +0 -21
  343. package/src/lib/components/switch/switch.component.stories.ts +0 -65
  344. package/src/lib/components/switch/switch.component.ts +0 -54
  345. package/src/lib/components/tab-view/tab-menu.pipe.ts +0 -23
  346. package/src/lib/components/tab-view/tab-view-item.component.ts +0 -22
  347. package/src/lib/components/tab-view/tab-view.component.html +0 -23
  348. package/src/lib/components/tab-view/tab-view.component.ts +0 -55
  349. package/src/lib/components/tab-view/tab-view.module.ts +0 -19
  350. package/src/lib/components/table/table-filter.pipe.ts +0 -59
  351. package/src/lib/components/table/table.component.html +0 -123
  352. package/src/lib/components/table/table.component.scss +0 -11
  353. package/src/lib/components/table/table.component.spec.ts +0 -21
  354. package/src/lib/components/table/table.component.stories.ts +0 -55
  355. package/src/lib/components/table/table.component.ts +0 -289
  356. package/src/lib/components/table/table.models.ts +0 -26
  357. package/src/lib/components/textarea/textarea.component.html +0 -40
  358. package/src/lib/components/textarea/textarea.component.scss +0 -5
  359. package/src/lib/components/textarea/textarea.component.spec.ts +0 -21
  360. package/src/lib/components/textarea/textarea.component.stories.ts +0 -98
  361. package/src/lib/components/textarea/textarea.component.ts +0 -64
  362. package/src/lib/components/textfield/textfield.component.html +0 -83
  363. package/src/lib/components/textfield/textfield.component.scss +0 -23
  364. package/src/lib/components/textfield/textfield.component.spec.ts +0 -21
  365. package/src/lib/components/textfield/textfield.component.stories.ts +0 -85
  366. package/src/lib/components/textfield/textfield.component.ts +0 -69
  367. package/src/lib/components/tristatecheckbox/tristatecheckbox.component.html +0 -23
  368. package/src/lib/components/tristatecheckbox/tristatecheckbox.component.scss +0 -0
  369. package/src/lib/components/tristatecheckbox/tristatecheckbox.component.spec.ts +0 -21
  370. package/src/lib/components/tristatecheckbox/tristatecheckbox.component.stories.ts +0 -22
  371. package/src/lib/components/tristatecheckbox/tristatecheckbox.component.ts +0 -50
  372. package/src/lib/icons.ts +0 -36
  373. package/src/lib/interceptors/http-error-message.interceptor.ts +0 -35
  374. package/src/lib/pages/not-found-page/not-found-page.component.html +0 -26
  375. package/src/lib/pages/not-found-page/not-found-page.component.scss +0 -0
  376. package/src/lib/pages/not-found-page/not-found-page.component.spec.ts +0 -21
  377. package/src/lib/pages/not-found-page/not-found-page.component.ts +0 -17
  378. package/src/tab-view.ts +0 -1
  379. package/src/test-setup.ts +0 -8
  380. package/tsconfig.json +0 -29
  381. package/tsconfig.lib.json +0 -18
  382. package/tsconfig.lib.prod.json +0 -9
  383. package/tsconfig.spec.json +0 -16
@@ -1,144 +0,0 @@
1
- import { CommonModule } from '@angular/common';
2
- import {
3
- ChangeDetectionStrategy,
4
- Component,
5
- EventEmitter,
6
- forwardRef,
7
- Input,
8
- OnChanges,
9
- OnDestroy,
10
- Optional,
11
- Output,
12
- Self,
13
- SimpleChanges,
14
- ViewEncapsulation,
15
- OnInit,
16
- } from '@angular/core';
17
- import {
18
- ControlValueAccessor,
19
- NgControl,
20
- ReactiveFormsModule,
21
- } from '@angular/forms';
22
- import { FilterEvent, LazyLoadEvent } from '@verisoft/core';
23
- import {
24
- BaseFormInputComponent,
25
- BaseInputControls,
26
- DROPDOWN_COMPONENT_TOKEN,
27
- DropdownCore
28
- } from '@verisoft/ui-core';
29
- import { ScrollerOptions } from 'primeng/api';
30
- import {
31
- DropdownFilterEvent,
32
- DropdownModule,
33
- } from 'primeng/dropdown';
34
- import { FloatLabelModule } from 'primeng/floatlabel';
35
- import { MessageModule } from 'primeng/message';
36
- import { ScrollerLazyLoadEvent } from 'primeng/scroller';
37
- import { TooltipModule } from 'primeng/tooltip';
38
- import { Subject } from 'rxjs';
39
- import { ErrorComponent } from '../errors';
40
- import { FormFieldComponent } from '../form-field';
41
-
42
- @Component({
43
- selector: 'v-dropdown',
44
- standalone: true,
45
- imports: [
46
- CommonModule,
47
- ReactiveFormsModule,
48
- DropdownModule,
49
- TooltipModule,
50
- FormFieldComponent,
51
- MessageModule,
52
- FloatLabelModule,
53
- ErrorComponent
54
- ],
55
- templateUrl: './dropdown.component.html',
56
- styleUrls: ['./dropdown.component.scss'],
57
- changeDetection: ChangeDetectionStrategy.OnPush,
58
- encapsulation: ViewEncapsulation.None,
59
- providers: [
60
- {
61
- provide: BaseInputControls,
62
- useExisting: forwardRef(() => DropdownComponent),
63
- multi: true,
64
- },
65
- {
66
- provide: DROPDOWN_COMPONENT_TOKEN,
67
- useExisting: DropdownComponent,
68
- },
69
- ],
70
- })
71
- export class DropdownComponent<T>
72
- extends BaseFormInputComponent
73
- implements
74
- ControlValueAccessor,
75
- OnChanges,
76
- OnDestroy,
77
- OnInit,
78
- DropdownCore<T>
79
- {
80
- constructor(@Optional() @Self() ngControl: NgControl) {
81
- super(ngControl);
82
- }
83
-
84
- @Input() options: T[] | undefined = [];
85
- @Input() optionLabel: string | undefined;
86
- @Input() optionValue: string | undefined;
87
- @Input() dropdownIcon?: string;
88
- @Input() floatLabel?: string;
89
- @Input() editable = false;
90
- @Input() loading = false;
91
- @Input() lazy = false;
92
- @Input() filter = true;
93
- @Input() forceMinWidth = false;
94
- @Input() showFilter = false;
95
- @Input() localSearch = false;
96
-
97
- @Output() showed = new EventEmitter<any>();
98
- @Output() cleared = new EventEmitter<any>();
99
- @Output() lazyLoad = new EventEmitter<LazyLoadEvent>();
100
- @Output() filtered = new EventEmitter<FilterEvent>();
101
-
102
- private destroy$ = new Subject<void>();
103
-
104
- virtualScrollOptions!: ScrollerOptions | undefined;
105
- virtualOptionSize = 37.5;
106
-
107
- ngOnChanges(changes: SimpleChanges): void {
108
- if (changes['lazy'] || changes['loading']) {
109
- this.virtualScrollOptions = this.lazy
110
- ? {
111
- showLoader: this.loading,
112
- lazy: true,
113
- onLazyLoad: this.onLazyLoad.bind(this),
114
- }
115
- : undefined;
116
- }
117
- }
118
-
119
- ngOnDestroy(): void {
120
- this.destroy$.next();
121
- this.destroy$.complete();
122
- }
123
-
124
- onLazyLoad(event: ScrollerLazyLoadEvent): void {
125
- this.lazyLoad.emit({
126
- offset: event.first,
127
- limit: event.last - event.first,
128
- });
129
- }
130
-
131
- filterChange(event: DropdownFilterEvent): void {
132
- this.filtered.emit({
133
- filter: event.filter,
134
- });
135
- }
136
-
137
- onDropdownShow(): void {
138
- this.showed.emit();
139
- }
140
-
141
- onDropdownClear(): void {
142
- this.cleared.emit();
143
- }
144
- }
@@ -1,6 +0,0 @@
1
-
2
- <p-message
3
- *ngIf="ngControl && ngControl.errors"
4
- [severity]="severity"
5
- text="{{ getErrorMessage(ngControl.errors) | async }}">
6
- </p-message>
@@ -1,3 +0,0 @@
1
- .p-message-content {
2
- color: #e60017;
3
- }
@@ -1,35 +0,0 @@
1
- import { CommonModule } from "@angular/common";
2
- import { Component, inject, Input, } from "@angular/core";
3
- import { NgControl, ValidationErrors } from "@angular/forms";
4
- import { ERROR_PROVIDER_TOKEN } from "@verisoft/core";
5
- import { SlotPosition, SlotPositionType } from "@verisoft/ui-core";
6
- import { MessageModule } from "primeng/message";
7
- import { Observable } from "rxjs";
8
- import { Icons } from "../../icons";
9
-
10
- @Component({
11
- selector: "v-validation-message",
12
- templateUrl: "./error.component.html",
13
- styleUrl: "./error.component.scss",
14
- standalone: true,
15
- imports: [CommonModule, MessageModule],
16
- })
17
- export class ErrorComponent {
18
- @Input({ required: true }) ngControl?: NgControl;
19
-
20
- @Input() errorSlot: SlotPositionType = SlotPosition.bottom
21
-
22
- @Input() messageSlot: SlotPositionType = SlotPosition.bottom
23
-
24
- @Input() variant = 'simple';
25
-
26
- @Input() severity = 'error';
27
-
28
- readonly errorService = inject(ERROR_PROVIDER_TOKEN);
29
-
30
- icons = Icons
31
-
32
- getErrorMessage(errors: ValidationErrors): Observable<string> {
33
- return this.errorService.mapError(errors);
34
- }
35
- }
@@ -1 +0,0 @@
1
- export * from './error.component';
@@ -1,36 +0,0 @@
1
- <div class="v-form-field mt-3" [attr.data-testId]="testId">
2
- <div [ngClass]="{ 'd-block d-md-flex': display === 'flex', 'd-lg-flex': display === 'block' }">
3
- <div class="col-12 col-md-4 d-flex align-items-center">
4
- <label
5
- class="v-formfield-label d-flex align-items-center"
6
- [ngClass]="{
7
- 'pb-2': display === 'block',
8
- 'text-error': (errorProvider.mapError(ngControl?.errors ?? [])) && ngControl?.dirty,
9
- 'text-warning': (ngControl?.errors | warning) && ngControl?.dirty,
10
- 'text-default': !ngControl?.invalid && !ngControl?.dirty,
11
- 'text-secondary': !ngControl?.invalid && ngControl?.dirty
12
- }"
13
- >{{ label }}<span *ngIf="label">:</span>
14
- <span *ngIf="required" class="text-error ps-1">*</span>
15
- </label>
16
- <i *ngIf="tooltip"
17
- [pTooltip]="tooltip"
18
- class="ps-2 text-default v-tooltip {{ icons.infoCircle }}"
19
- ></i>
20
- </div>
21
- <div
22
- class="col-sm-12 col-md-8 col-lg-8"
23
- >
24
- <div
25
- class="v-form-field-content align-items-center w-100"
26
- [ngClass]="{ 'd-flex': display === 'flex', 'd-block': display === 'block', 'input-warning': ngControl?.errors | warning }"
27
- >
28
- <ng-content></ng-content>
29
- </div>
30
- </div>
31
- <div class="align-content-center">
32
- <ng-container>
33
- </ng-container>
34
- </div>
35
- </div>
36
- </div>
@@ -1,21 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
- import { FormFieldComponent } from './form-field.component';
3
-
4
- describe('FormFieldComponent', () => {
5
- let component: FormFieldComponent;
6
- let fixture: ComponentFixture<FormFieldComponent>;
7
-
8
- beforeEach(async () => {
9
- await TestBed.configureTestingModule({
10
- imports: [FormFieldComponent],
11
- }).compileComponents();
12
-
13
- fixture = TestBed.createComponent(FormFieldComponent);
14
- component = fixture.componentInstance;
15
- fixture.detectChanges();
16
- });
17
-
18
- it('should create', () => {
19
- expect(component).toBeTruthy();
20
- });
21
- });
@@ -1,69 +0,0 @@
1
- import { NgControl } from '@angular/forms';
2
- import type { Meta, StoryObj } from '@storybook/angular';
3
- import { within, expect } from '@storybook/test';
4
- import { FormFieldComponent } from './form-field.component';
5
-
6
- const meta: Meta<FormFieldComponent> = {
7
- component: FormFieldComponent,
8
- title: 'FormFieldComponent',
9
- };
10
- export default meta;
11
- type Story = StoryObj<FormFieldComponent>;
12
-
13
- export const Primary: Story = {
14
- parameters: {
15
- controls: { expanded: true },
16
- },
17
- args: {
18
- label: 'Label showcase',
19
- tooltip: 'This is a tooltip lorem ipsum',
20
- required: false,
21
- testId: '123',
22
- display: 'flex',
23
- ngControl: {} as NgControl,
24
- },
25
- argTypes: {
26
- ngControl: {
27
- control: false,
28
- description: 'NgControl which is provided from a form component',
29
- },
30
- display: {
31
- options: ['flex', 'block'],
32
- control: {
33
- type: 'radio',
34
- },
35
- description:
36
- 'Defines if the **FormFieldComponent** is in `flex` or `block` display mode',
37
- },
38
- required: {
39
- control: {
40
- type: 'boolean',
41
- },
42
- description: 'Defines if the **FormFieldComponent** is `required`',
43
- },
44
- testId: {
45
- control: {
46
- type: 'text',
47
- },
48
- description: 'Sets the **FormFieldComponent** `test id`',
49
- },
50
- label: {
51
- control: {
52
- type: 'text',
53
- },
54
- description: 'Sets the **FormFieldComponent** `label`',
55
- },
56
- tooltip: {
57
- control: {
58
- type: 'text',
59
- },
60
- description: 'Sets the **FormFieldComponent** `tooltip`',
61
- },
62
- },
63
- play: async ({ canvasElement }: any) => {
64
- const canvas = within(canvasElement);
65
- expect(canvas.getByText('Label showcase')).toBeTruthy();
66
- expect(canvas.queryAllByText('This is a tooltip lorem ipsum')).toBeTruthy();
67
- expect(canvas.findByTestId('123')).toBeTruthy();
68
- },
69
- };
@@ -1,38 +0,0 @@
1
- import { CommonModule } from '@angular/common';
2
- import { Component, inject, Input, Optional, Self } from '@angular/core';
3
- import { NgControl, ReactiveFormsModule } from '@angular/forms';
4
- import { ERROR_PROVIDER_TOKEN } from '@verisoft/core';
5
- import { BaseFormInputComponent, FormFieldCore, WarningPipe } from '@verisoft/ui-core';
6
- import { MessageModule } from 'primeng/message';
7
- import { TooltipModule } from 'primeng/tooltip';
8
- import { Icons } from '../../icons';
9
-
10
- @Component({
11
- selector: 'v-form-field',
12
- standalone: true,
13
- imports: [
14
- CommonModule,
15
- WarningPipe,
16
- ReactiveFormsModule,
17
- MessageModule,
18
- TooltipModule,
19
- ],
20
- templateUrl: './form-field.component.html',
21
- styleUrl: './form-field.component.scss',
22
- })
23
- export class FormFieldComponent
24
- extends BaseFormInputComponent
25
- implements FormFieldCore
26
- {
27
- @Input() display: 'flex' | 'block' = 'block';
28
-
29
- @Input() variant!: 'simple';
30
-
31
- protected readonly errorProvider = inject(ERROR_PROVIDER_TOKEN)
32
-
33
- icons = Icons;
34
-
35
- constructor(@Optional() @Self() ngControl: NgControl) {
36
- super(ngControl);
37
- }
38
- }
@@ -1,84 +0,0 @@
1
- <div
2
- class="v-header d-flex w-100 text-align-end"
3
- [ngStyle]="{ position: exampleHeader ? 'relative' : 'fixed' }"
4
- >
5
- <ng-container *ngIf="screenSizeService.isMobileBlock | async">
6
- <div class="burger-menu">
7
- <v-button
8
- [icon]="menuVisible ? icons.cross : icons.action"
9
- (click)="toggleMenu()"
10
- />
11
- <div class="logo mt-3" [routerLink]="[logoRouterLink]">
12
- <img [src]="logoUrl" alt=""/>
13
- </div>
14
- </div>
15
- </ng-container>
16
- <div class="v-header-title col-auto">
17
- <p class="text-primary text-nowrap d-none d-md-block ps-3 m-0 w-100">
18
- {{ title }}
19
- </p>
20
- <div class="col-8 col-md-auto ps-3 m-0 w-100">
21
- <ng-content select="[module]"></ng-content>
22
- </div>
23
- </div>
24
- <ng-container *ngIf="(screenSizeService.isMobileBlock | async) === false">
25
- <div class="w-100 text-start justify-content-start align-content-center">
26
- <ng-content select="[breadcrumbs]"></ng-content>
27
- </div>
28
- <div class="col-auto d-flex align-items-center justify-content-end p-4">
29
- <div class="d-flex aling-items-center">
30
- <p-avatar
31
- image="assets/primeng/images/_global/jara.png"
32
- styleClass="me-2"
33
- size="large"
34
- shape="circle"
35
- />
36
- <div class="card align-content-center pe-3">
37
- <p
38
- class="text-primary m-0 header-username"
39
- [innerHTML]="userName"
40
- ></p>
41
- <p
42
- class="text-default m-0 header-userrole"
43
- [innerHTML]="userRole"
44
- ></p>
45
- </div>
46
- </div>
47
- <div class="d-flex gap-4 align-items-center">
48
- <ng-content select="[useractions]"/>
49
- </div>
50
- </div>
51
- </ng-container>
52
- <ng-container *ngIf="screenSizeService.isMobileBlock | async">
53
- <div class="user-info-container d-flex align-items-center">
54
- <div class="d-flex">
55
- <div class="card pe-3 align-content-center">
56
- <p-avatar
57
- image="assets/images/_global/jara.png"
58
- styleClass="mr-2"
59
- size="large"
60
- shape="circle"
61
- ></p-avatar>
62
- </div>
63
- <div class="card align-content-center pe-3 d-flex">
64
- <div class="user-info">
65
- <p
66
- class="text-default m-0 header-username"
67
- [innerHTML]="userName"
68
- ></p>
69
- <p
70
- class="text-default m-0 header-userrole"
71
- [innerHTML]="userRole"
72
- ></p>
73
- </div>
74
- <div class="user-actions">
75
- <ng-content select="[useractions]"></ng-content>
76
- </div>
77
- </div>
78
- </div>
79
- <div class="d-flex gap-4 align-items-center justify-content-center">
80
- <ng-content select="[dbcontext]" />
81
- </div>
82
- </div>
83
- </ng-container>
84
- </div>
File without changes
@@ -1,21 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
- import { HeaderComponent } from './header.component';
3
-
4
- describe('HeaderComponent', () => {
5
- let component: HeaderComponent;
6
- let fixture: ComponentFixture<HeaderComponent>;
7
-
8
- beforeEach(async () => {
9
- await TestBed.configureTestingModule({
10
- imports: [HeaderComponent],
11
- }).compileComponents();
12
-
13
- fixture = TestBed.createComponent(HeaderComponent);
14
- component = fixture.componentInstance;
15
- fixture.detectChanges();
16
- });
17
-
18
- it('should create', () => {
19
- expect(component).toBeTruthy();
20
- });
21
- });
@@ -1,24 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/angular';
2
- import { within, expect } from '@storybook/test';
3
- import { HeaderComponent } from './header.component';
4
-
5
- const meta: Meta<HeaderComponent> = {
6
- component: HeaderComponent,
7
- title: 'HeaderComponent',
8
- };
9
- export default meta;
10
- type Story = StoryObj<HeaderComponent>;
11
-
12
- export const Primary: Story = {
13
- args: {
14
- title: 'verisoft',
15
- userName: 'Elon Musk',
16
- userRole: 'Mars Owner',
17
- },
18
- play: async ({ canvasElement }: any) => {
19
- const canvas = within(canvasElement);
20
- expect(canvas.getByText('verisoft')).toBeTruthy();
21
- expect(canvas.findByText('Elon Musk')).toBeTruthy();
22
- expect(canvas.findByText('Mars Owner')).toBeTruthy();
23
- },
24
- };
@@ -1,66 +0,0 @@
1
- import { CommonModule } from '@angular/common';
2
- import {
3
- ChangeDetectionStrategy,
4
- ChangeDetectorRef,
5
- Component,
6
- Input,
7
- OnInit,
8
- } from '@angular/core';
9
- import { RouterModule } from '@angular/router';
10
- import {
11
- HEADER_COMPONENT_TOKEN,
12
- HeaderCore,
13
- ScreenSizeService,
14
- UnsubscribeComponent,
15
- } from '@verisoft/ui-core';
16
- import { AvatarModule } from 'primeng/avatar';
17
- import { Icons } from '../../icons';
18
- import { ButtonComponent } from '../button';
19
- import { HeaderProviderService } from './services/header-provider.service';
20
-
21
- @Component({
22
- selector: 'v-header',
23
- standalone: true,
24
- imports: [CommonModule, AvatarModule, ButtonComponent, RouterModule],
25
- templateUrl: './header.component.html',
26
- styleUrl: './header.component.scss',
27
- changeDetection: ChangeDetectionStrategy.OnPush,
28
- providers: [
29
- { provide: HEADER_COMPONENT_TOKEN, useExisting: HeaderComponent },
30
- ],
31
- })
32
- export class HeaderComponent
33
- extends UnsubscribeComponent
34
- implements OnInit, HeaderCore
35
- {
36
- constructor(
37
- readonly providerService: HeaderProviderService,
38
- readonly screenSizeService: ScreenSizeService,
39
- readonly cdr: ChangeDetectorRef
40
- ) {
41
- super();
42
- }
43
-
44
- @Input() title!: string;
45
- @Input() logoUrl!: string;
46
- @Input() userName!: string;
47
- @Input() userRole!: any | any[] | undefined;
48
- @Input() menuRef!: HTMLDivElement;
49
- @Input() exampleHeader = false;
50
-
51
- icons = Icons;
52
- protected menuVisible = false;
53
- protected logoRouterLink!: string;
54
-
55
- ngOnInit(): void {
56
- this.providerService.init();
57
- }
58
-
59
- toggleMenu() {
60
- if (this.menuRef) {
61
- this.menuVisible = !this.menuVisible;
62
- this.menuRef.classList.toggle('menu-visible');
63
- this.cdr.detectChanges();
64
- }
65
- }
66
- }
@@ -1,15 +0,0 @@
1
- import { Inject, Injectable } from '@angular/core';
2
- import { SETTINGS_MENU } from '@verisoft/ui-core';
3
- import { MenuItem } from '@verisoft/ui-core';
4
-
5
- @Injectable({
6
- providedIn: 'root',
7
- })
8
- export class HeaderProviderService {
9
- constructor(@Inject(SETTINGS_MENU) private settingsMenu: MenuItem[]) {}
10
- menu: MenuItem[] = [];
11
-
12
- init(): void {
13
- this.menu = this.settingsMenu;
14
- }
15
- }
@@ -1,30 +0,0 @@
1
- <div class="v-input-group w-100">
2
- <v-form-field
3
- [label]="label"
4
- [required]="required"
5
- [tooltip]="tooltip" >
6
- <p-inputGroup>
7
- <ng-container *ngFor="let item of items">
8
- <p-inputGroupAddon *ngIf="item.position === 'left'">
9
- <ng-container *ngIf="item.icon">
10
- <i [class]="item.icon"></i>
11
- </ng-container>
12
- <ng-container *ngIf="item.text">
13
- {{ item.text }}
14
- </ng-container>
15
- </p-inputGroupAddon>
16
- </ng-container>
17
- <input pInputText [formControl]="formControl" class="w-100" />
18
- <ng-container *ngFor="let item of items">
19
- <p-inputGroupAddon *ngIf="item.position === 'right'">
20
- <ng-container *ngIf="item.icon">
21
- <i [class]="item.icon"></i>
22
- </ng-container>
23
- <ng-container *ngIf="item.text">
24
- {{ item.text }}
25
- </ng-container>
26
- </p-inputGroupAddon>
27
- </ng-container>
28
- </p-inputGroup>
29
- </v-form-field>
30
- </div>
@@ -1,21 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
- import { InputGroupComponent } from './input-group.component';
3
-
4
- describe('InputGroupComponent', () => {
5
- let component: InputGroupComponent;
6
- let fixture: ComponentFixture<InputGroupComponent>;
7
-
8
- beforeEach(async () => {
9
- await TestBed.configureTestingModule({
10
- imports: [InputGroupComponent],
11
- }).compileComponents();
12
-
13
- fixture = TestBed.createComponent(InputGroupComponent);
14
- component = fixture.componentInstance;
15
- fixture.detectChanges();
16
- });
17
-
18
- it('should create', () => {
19
- expect(component).toBeTruthy();
20
- });
21
- });