@verisoft/ui-primeng 19.0.1-1 → 20.1.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 (280) hide show
  1. package/.eslintrc.json +43 -0
  2. package/README.md +377 -3
  3. package/assets/.gitkeep +0 -0
  4. package/assets/sass/main.scss +9 -26
  5. package/assets/sass/themes/_verisoft_theme.scss +2 -0
  6. package/assets/sass/vendors/_bootstrap.scss +2 -2
  7. package/assets/sass/vendors/_primeng.scss +1 -2
  8. package/jest.config.ts +22 -0
  9. package/ng-package.json +14 -0
  10. package/package.json +14 -27
  11. package/project.json +36 -0
  12. package/{index.d.ts → src/index.ts} +4 -0
  13. package/src/lib/components/breadcrumb/breadcrumb.component.html +11 -0
  14. package/src/lib/components/breadcrumb/breadcrumb.component.scss +18 -0
  15. package/src/lib/components/breadcrumb/breadcrumb.component.spec.ts +21 -0
  16. package/src/lib/components/breadcrumb/breadcrumb.component.stories.ts +36 -0
  17. package/src/lib/components/breadcrumb/breadcrumb.component.ts +27 -0
  18. package/src/lib/components/breadcrumb/breadcrumb.pipe.ts +13 -0
  19. package/src/lib/components/button/button-severity.pipe.ts +20 -0
  20. package/src/lib/components/button/button.component.html +20 -0
  21. package/src/lib/components/button/button.component.scss +0 -0
  22. package/src/lib/components/button/button.component.spec.ts +21 -0
  23. package/src/lib/components/button/button.component.ts +49 -0
  24. package/src/lib/components/calendar/calendar.component.html +53 -0
  25. package/src/lib/components/calendar/calendar.component.scss +0 -0
  26. package/src/lib/components/calendar/calendar.component.spec.ts +21 -0
  27. package/src/lib/components/calendar/calendar.component.ts +70 -0
  28. package/src/lib/components/checkbox/checkbox.component.html +20 -0
  29. package/src/lib/components/checkbox/checkbox.component.scss +15 -0
  30. package/src/lib/components/checkbox/checkbox.component.spec.ts +21 -0
  31. package/src/lib/components/checkbox/checkbox.component.stories.ts +72 -0
  32. package/src/lib/components/checkbox/checkbox.component.ts +46 -0
  33. package/src/lib/components/confirm-dialog/confirm-dialog.component.html +51 -0
  34. package/src/lib/components/confirm-dialog/confirm-dialog.component.scss +3 -0
  35. package/src/lib/components/confirm-dialog/confirm-dialog.component.spec.ts +21 -0
  36. package/src/lib/components/confirm-dialog/confirm-dialog.component.stories.ts +74 -0
  37. package/src/lib/components/confirm-dialog/confirm-dialog.component.ts +73 -0
  38. package/src/lib/components/dropdown/dropdown.component.html +93 -0
  39. package/src/lib/components/dropdown/dropdown.component.scss +16 -0
  40. package/src/lib/components/dropdown/dropdown.component.spec.ts +21 -0
  41. package/src/lib/components/dropdown/dropdown.component.ts +139 -0
  42. package/src/lib/components/dropdown-button/dropdown-button.component.html +1 -0
  43. package/src/lib/components/dropdown-button/dropdown-button.component.ts +20 -0
  44. package/src/lib/components/dropdown-button/index.ts +1 -0
  45. package/src/lib/components/errors/error.component.html +7 -0
  46. package/src/lib/components/errors/error.component.scss +3 -0
  47. package/src/lib/components/errors/error.component.ts +34 -0
  48. package/src/lib/components/errors/index.ts +1 -0
  49. package/src/lib/components/feature-list/directives/feature-list-column.directive.ts +32 -0
  50. package/src/lib/components/feature-list/directives/feature-list-filter-field.directive.ts +8 -0
  51. package/src/lib/components/feature-list/feature-list-filter.pipe.ts +21 -0
  52. package/src/lib/components/feature-list/feature-list-page.component.ts +32 -0
  53. package/src/lib/components/feature-list/feature-list-page.model.ts +42 -0
  54. package/src/lib/components/feature-list/feature-list.component.html +59 -0
  55. package/src/lib/components/feature-list/feature-list.component.scss +10 -0
  56. package/src/lib/components/feature-list/feature-list.component.ts +341 -0
  57. package/src/lib/components/filter/directives/filter-field.directive.ts +34 -0
  58. package/src/lib/components/filter/filter.component.html +68 -0
  59. package/src/lib/components/filter/filter.component.scss +0 -0
  60. package/src/lib/components/filter/filter.component.spec.ts +21 -0
  61. package/src/lib/components/filter/filter.component.stories.ts +23 -0
  62. package/src/lib/components/filter/filter.component.ts +281 -0
  63. package/src/lib/components/filter/filter.model.ts +18 -0
  64. package/src/lib/components/form-field/form-field.component.html +42 -0
  65. package/src/lib/components/form-field/form-field.component.scss +0 -0
  66. package/src/lib/components/form-field/form-field.component.spec.ts +21 -0
  67. package/src/lib/components/form-field/form-field.component.stories.ts +69 -0
  68. package/src/lib/components/form-field/form-field.component.ts +37 -0
  69. package/src/lib/components/header/header.component.html +84 -0
  70. package/src/lib/components/header/header.component.scss +0 -0
  71. package/src/lib/components/header/header.component.spec.ts +21 -0
  72. package/src/lib/components/header/header.component.stories.ts +24 -0
  73. package/src/lib/components/header/header.component.ts +65 -0
  74. package/src/lib/components/header/services/header-provider.service.ts +15 -0
  75. package/src/lib/components/icon/icon.component.html +2 -0
  76. package/src/lib/components/icon/icon.component.scss +51 -0
  77. package/src/lib/components/icon/icon.component.ts +86 -0
  78. package/src/lib/components/icon/index.ts +2 -0
  79. package/src/lib/components/input-group/input-group.component.html +34 -0
  80. package/src/lib/components/input-group/input-group.component.spec.ts +21 -0
  81. package/src/lib/components/input-group/input-group.component.ts +58 -0
  82. package/src/lib/components/loader/loader.component.html +5 -0
  83. package/src/lib/components/loader/loader.component.scss +0 -0
  84. package/src/lib/components/loader/loader.component.spec.ts +21 -0
  85. package/src/lib/components/loader/loader.component.ts +16 -0
  86. package/src/lib/components/multiselect/multiselect.component.html +67 -0
  87. package/src/lib/components/multiselect/multiselect.component.scss +0 -0
  88. package/src/lib/components/multiselect/multiselect.component.spec.ts +21 -0
  89. package/src/lib/components/multiselect/multiselect.component.ts +120 -0
  90. package/src/lib/components/number-input/number-input.component.html +22 -0
  91. package/src/lib/components/number-input/number-input.component.spec.ts +21 -0
  92. package/src/lib/components/number-input/number-input.component.ts +55 -0
  93. package/src/lib/components/page-header/page-header.component.html +35 -0
  94. package/src/lib/components/page-header/page-header.component.scss +0 -0
  95. package/src/lib/components/page-header/page-header.component.spec.ts +21 -0
  96. package/src/lib/components/page-header/page-header.component.ts +31 -0
  97. package/src/lib/components/password/password.component.html +24 -0
  98. package/src/lib/components/password/password.component.scss +0 -0
  99. package/src/lib/components/password/password.component.spec.ts +21 -0
  100. package/src/lib/components/password/password.component.ts +56 -0
  101. package/src/lib/components/radiobutton/radiobutton.component.html +34 -0
  102. package/src/lib/components/radiobutton/radiobutton.component.scss +6 -0
  103. package/src/lib/components/radiobutton/radiobutton.component.spec.ts +21 -0
  104. package/src/lib/components/radiobutton/radiobutton.component.stories.ts +71 -0
  105. package/src/lib/components/radiobutton/radiobutton.component.ts +61 -0
  106. package/src/lib/components/section/section.component.html +25 -0
  107. package/src/lib/components/section/section.component.scss +0 -0
  108. package/src/lib/components/section/section.component.spec.ts +21 -0
  109. package/src/lib/components/section/section.component.ts +31 -0
  110. package/src/lib/components/shared-components/.eslintrc.json +42 -0
  111. package/src/lib/components/shared-components/action-button-group/action-button-group.component.html +25 -0
  112. package/src/lib/components/shared-components/action-button-group/action-button-group.component.scss +0 -0
  113. package/src/lib/components/shared-components/action-button-group/action-button-group.component.spec.ts +21 -0
  114. package/src/lib/components/shared-components/action-button-group/action-button-group.component.ts +111 -0
  115. package/src/lib/components/shared-components/action-button-group/components/action-button/action-button.component.html +10 -0
  116. package/src/lib/components/shared-components/action-button-group/components/action-button/action-button.component.scss +0 -0
  117. package/src/lib/components/shared-components/action-button-group/components/action-button/action-button.component.spec.ts +21 -0
  118. package/src/lib/components/shared-components/action-button-group/components/action-button/action-button.component.ts +69 -0
  119. package/src/lib/components/shared-components/dynamic-component/dynamic-component-factory.service.ts +142 -0
  120. package/src/lib/components/shared-components/dynamic-component/dynamic-component.component.ts +56 -0
  121. package/{lib/components/shared-components/dynamic-component/index.d.ts → src/lib/components/shared-components/dynamic-component/index.ts} +2 -2
  122. package/src/lib/components/shared-components/generic-field/generic-field.component.html +98 -0
  123. package/src/lib/components/shared-components/generic-field/generic-field.component.spec.ts +21 -0
  124. package/src/lib/components/shared-components/generic-field/generic-field.component.ts +90 -0
  125. package/{lib/components/shared-components/generic-field/index.d.ts → src/lib/components/shared-components/generic-field/index.ts} +1 -1
  126. package/src/lib/components/shared-components/generic-form/generic-form.component.html +46 -0
  127. package/src/lib/components/shared-components/generic-form/generic-form.component.spec.ts +21 -0
  128. package/src/lib/components/shared-components/generic-form/generic-form.component.ts +56 -0
  129. package/src/lib/components/shared-components/generic-form/generic-form.model.spec.ts +82 -0
  130. package/src/lib/components/shared-components/generic-form/generic-form.model.ts +68 -0
  131. package/{lib/components/shared-components/generic-form/index.d.ts → src/lib/components/shared-components/generic-form/index.ts} +2 -2
  132. package/{lib/components/shared-components/index.d.ts → src/lib/components/shared-components/index.ts} +4 -6
  133. package/src/lib/components/side-menu/side-menu.component.html +53 -0
  134. package/src/lib/components/side-menu/side-menu.component.scss +0 -0
  135. package/src/lib/components/side-menu/side-menu.component.spec.ts +21 -0
  136. package/src/lib/components/side-menu/side-menu.component.ts +96 -0
  137. package/src/lib/components/side-menu/side-menu.module.ts +66 -0
  138. package/src/lib/components/slider/slider.component.html +19 -0
  139. package/src/lib/components/slider/slider.component.spec.ts +21 -0
  140. package/src/lib/components/slider/slider.component.ts +56 -0
  141. package/src/lib/components/snackbar/services/snackbar.service.ts +45 -0
  142. package/src/lib/components/snackbar/snackbar.component.html +3 -0
  143. package/src/lib/components/snackbar/snackbar.component.scss +0 -0
  144. package/src/lib/components/snackbar/snackbar.component.spec.ts +21 -0
  145. package/src/lib/components/snackbar/snackbar.component.stories.ts +70 -0
  146. package/src/lib/components/snackbar/snackbar.component.ts +25 -0
  147. package/src/lib/components/stepper/stepper.component.html +35 -0
  148. package/src/lib/components/stepper/stepper.component.spec.ts +21 -0
  149. package/src/lib/components/stepper/stepper.component.ts +39 -0
  150. package/src/lib/components/switch/switch.component.html +18 -0
  151. package/src/lib/components/switch/switch.component.scss +0 -0
  152. package/src/lib/components/switch/switch.component.spec.ts +21 -0
  153. package/src/lib/components/switch/switch.component.stories.ts +65 -0
  154. package/src/lib/components/switch/switch.component.ts +52 -0
  155. package/src/lib/components/tab-view/tab-view-item.component.ts +22 -0
  156. package/src/lib/components/tab-view/tab-view.component.html +41 -0
  157. package/src/lib/components/tab-view/tab-view.component.ts +55 -0
  158. package/src/lib/components/table/table-filter.pipe.ts +59 -0
  159. package/src/lib/components/table/table.component.html +127 -0
  160. package/src/lib/components/table/table.component.scss +11 -0
  161. package/src/lib/components/table/table.component.spec.ts +21 -0
  162. package/src/lib/components/table/table.component.stories.ts +55 -0
  163. package/src/lib/components/table/table.component.ts +288 -0
  164. package/src/lib/components/table/table.models.ts +26 -0
  165. package/src/lib/components/tag/index.ts +2 -0
  166. package/src/lib/components/tag/tag.component.html +12 -0
  167. package/src/lib/components/tag/tag.component.scss +33 -0
  168. package/src/lib/components/tag/tag.component.ts +83 -0
  169. package/src/lib/components/textarea/textarea.component.html +40 -0
  170. package/src/lib/components/textarea/textarea.component.scss +5 -0
  171. package/src/lib/components/textarea/textarea.component.spec.ts +21 -0
  172. package/src/lib/components/textarea/textarea.component.stories.ts +98 -0
  173. package/src/lib/components/textarea/textarea.component.ts +62 -0
  174. package/src/lib/components/textfield/textfield.component.html +82 -0
  175. package/src/lib/components/textfield/textfield.component.scss +23 -0
  176. package/src/lib/components/textfield/textfield.component.spec.ts +21 -0
  177. package/src/lib/components/textfield/textfield.component.stories.ts +85 -0
  178. package/src/lib/components/textfield/textfield.component.ts +68 -0
  179. package/src/lib/components/tooltip/index.ts +1 -0
  180. package/src/lib/components/tooltip/tooltip.component.html +3 -0
  181. package/src/lib/components/tooltip/tooltip.component.ts +17 -0
  182. package/src/lib/icons.ts +36 -0
  183. package/src/lib/interceptors/http-error-message.interceptor.ts +35 -0
  184. package/src/lib/pages/not-found-page/not-found-page.component.html +26 -0
  185. package/src/lib/pages/not-found-page/not-found-page.component.scss +0 -0
  186. package/src/lib/pages/not-found-page/not-found-page.component.spec.ts +21 -0
  187. package/src/lib/pages/not-found-page/not-found-page.component.ts +16 -0
  188. package/src/tab-view.ts +1 -0
  189. package/src/test-setup.ts +8 -0
  190. package/tsconfig.json +29 -0
  191. package/tsconfig.lib.json +18 -0
  192. package/tsconfig.lib.prod.json +9 -0
  193. package/tsconfig.spec.json +16 -0
  194. package/fesm2022/verisoft-ui-primeng.mjs +0 -2880
  195. package/fesm2022/verisoft-ui-primeng.mjs.map +0 -1
  196. package/lib/components/breadcrumb/breadcrumb.component.d.ts +0 -6
  197. package/lib/components/breadcrumb/breadcrumb.pipe.d.ts +0 -9
  198. package/lib/components/button/button-severity.pipe.d.ts +0 -9
  199. package/lib/components/button/button.component.d.ts +0 -20
  200. package/lib/components/calendar/calendar.component.d.ts +0 -17
  201. package/lib/components/checkbox/checkbox.component.d.ts +0 -10
  202. package/lib/components/confirm-dialog/confirm-dialog.component.d.ts +0 -15
  203. package/lib/components/dropdown/dropdown.component.d.ts +0 -38
  204. package/lib/components/dropdown-button/dropdown-button.component.d.ts +0 -14
  205. package/lib/components/dropdown-button/index.d.ts +0 -1
  206. package/lib/components/errors/error.component.d.ts +0 -16
  207. package/lib/components/errors/index.d.ts +0 -1
  208. package/lib/components/form-field/form-field.component.d.ts +0 -12
  209. package/lib/components/header/header.component.d.ts +0 -23
  210. package/lib/components/header/services/header-provider.service.d.ts +0 -10
  211. package/lib/components/input-group/input-group.component.d.ts +0 -9
  212. package/lib/components/loader/loader.component.d.ts +0 -6
  213. package/lib/components/multiselect/multiselect.component.d.ts +0 -34
  214. package/lib/components/number-input/number-input.component.d.ts +0 -14
  215. package/lib/components/page-header/page-header.component.d.ts +0 -10
  216. package/lib/components/password/password.component.d.ts +0 -11
  217. package/lib/components/radiobutton/radiobutton.component.d.ts +0 -10
  218. package/lib/components/section/section.component.d.ts +0 -12
  219. package/lib/components/shared-components/action-button-group/action-button-group.component.d.ts +0 -28
  220. package/lib/components/shared-components/action-button-group/components/action-button/action-button.component.d.ts +0 -24
  221. package/lib/components/shared-components/dynamic-component/dynamic-component-factory.service.d.ts +0 -17
  222. package/lib/components/shared-components/dynamic-component/dynamic-component.component.d.ts +0 -16
  223. package/lib/components/shared-components/feature-list/directives/feature-list-column.directive.d.ts +0 -10
  224. package/lib/components/shared-components/feature-list/directives/feature-list-filter-field.directive.d.ts +0 -6
  225. package/lib/components/shared-components/feature-list/feature-list-filter.pipe.d.ts +0 -9
  226. package/lib/components/shared-components/feature-list/feature-list-page.component.d.ts +0 -9
  227. package/lib/components/shared-components/feature-list/feature-list-page.model.d.ts +0 -23
  228. package/lib/components/shared-components/feature-list/feature-list.component.d.ts +0 -62
  229. package/lib/components/shared-components/filter/directives/filter-field.directive.d.ts +0 -20
  230. package/lib/components/shared-components/filter/filter.component.d.ts +0 -53
  231. package/lib/components/shared-components/filter/filter.model.d.ts +0 -2
  232. package/lib/components/shared-components/generic-field/generic-field.component.d.ts +0 -28
  233. package/lib/components/shared-components/generic-form/generic-form.component.d.ts +0 -15
  234. package/lib/components/shared-components/generic-form/generic-form.model.d.ts +0 -4
  235. package/lib/components/side-menu/side-menu.component.d.ts +0 -27
  236. package/lib/components/side-menu/side-menu.module.d.ts +0 -13
  237. package/lib/components/slider/slider.component.d.ts +0 -12
  238. package/lib/components/snackbar/services/snackbar.service.d.ts +0 -12
  239. package/lib/components/snackbar/snackbar.component.d.ts +0 -9
  240. package/lib/components/stepper/stepper.component.d.ts +0 -17
  241. package/lib/components/switch/switch.component.d.ts +0 -9
  242. package/lib/components/tab-view/tab-view-item.component.d.ts +0 -12
  243. package/lib/components/tab-view/tab-view.component.d.ts +0 -17
  244. package/lib/components/table/table-filter.pipe.d.ts +0 -13
  245. package/lib/components/table/table.component.d.ts +0 -67
  246. package/lib/components/table/table.models.d.ts +0 -4
  247. package/lib/components/textarea/textarea.component.d.ts +0 -12
  248. package/lib/components/textfield/textfield.component.d.ts +0 -12
  249. package/lib/components/tooltip/index.d.ts +0 -1
  250. package/lib/components/tooltip/tooltip.component.d.ts +0 -10
  251. package/lib/icons.d.ts +0 -2
  252. package/lib/interceptors/http-error-message.interceptor.d.ts +0 -11
  253. /package/{lib/components/breadcrumb/index.d.ts → src/lib/components/breadcrumb/index.ts} +0 -0
  254. /package/{lib/components/button/index.d.ts → src/lib/components/button/index.ts} +0 -0
  255. /package/{lib/components/calendar/index.d.ts → src/lib/components/calendar/index.ts} +0 -0
  256. /package/{lib/components/checkbox/index.d.ts → src/lib/components/checkbox/index.ts} +0 -0
  257. /package/{lib/components/confirm-dialog/index.d.ts → src/lib/components/confirm-dialog/index.ts} +0 -0
  258. /package/{lib/components/dropdown/index.d.ts → src/lib/components/dropdown/index.ts} +0 -0
  259. /package/{lib/components/shared-components/feature-list/index.d.ts → src/lib/components/feature-list/index.ts} +0 -0
  260. /package/{lib/components/shared-components/filter/index.d.ts → src/lib/components/filter/index.ts} +0 -0
  261. /package/{lib/components/form-field/index.d.ts → src/lib/components/form-field/index.ts} +0 -0
  262. /package/{lib/components/header/index.d.ts → src/lib/components/header/index.ts} +0 -0
  263. /package/{lib/components/input-group/index.d.ts → src/lib/components/input-group/index.ts} +0 -0
  264. /package/{lib/components/loader/index.d.ts → src/lib/components/loader/index.ts} +0 -0
  265. /package/{lib/components/multiselect/index.d.ts → src/lib/components/multiselect/index.ts} +0 -0
  266. /package/{lib/components/number-input/index.d.ts → src/lib/components/number-input/index.ts} +0 -0
  267. /package/{lib/components/page-header/index.d.ts → src/lib/components/page-header/index.ts} +0 -0
  268. /package/{lib/components/password/index.d.ts → src/lib/components/password/index.ts} +0 -0
  269. /package/{lib/components/radiobutton/index.d.ts → src/lib/components/radiobutton/index.ts} +0 -0
  270. /package/{lib/components/section/index.d.ts → src/lib/components/section/index.ts} +0 -0
  271. /package/{lib/components/shared-components/action-button-group/index.d.ts → src/lib/components/shared-components/action-button-group/index.ts} +0 -0
  272. /package/{lib/components/side-menu/index.d.ts → src/lib/components/side-menu/index.ts} +0 -0
  273. /package/{lib/components/slider/index.d.ts → src/lib/components/slider/index.ts} +0 -0
  274. /package/{lib/components/snackbar/index.d.ts → src/lib/components/snackbar/index.ts} +0 -0
  275. /package/{lib/components/stepper/index.d.ts → src/lib/components/stepper/index.ts} +0 -0
  276. /package/{lib/components/switch/index.d.ts → src/lib/components/switch/index.ts} +0 -0
  277. /package/{lib/components/tab-view/index.d.ts → src/lib/components/tab-view/index.ts} +0 -0
  278. /package/{lib/components/table/index.d.ts → src/lib/components/table/index.ts} +0 -0
  279. /package/{lib/components/textarea/index.d.ts → src/lib/components/textarea/index.ts} +0 -0
  280. /package/{lib/components/textfield/index.d.ts → src/lib/components/textfield/index.ts} +0 -0
@@ -0,0 +1,51 @@
1
+ :host {
2
+ display: inline-flex;
3
+ align-items: center;
4
+
5
+ .pi {
6
+ line-height: 1;
7
+ }
8
+
9
+ &.v-primeng-icon--small .pi {
10
+ font-size: 0.75rem;
11
+ }
12
+
13
+ &.v-primeng-icon--medium .pi {
14
+ font-size: 1rem;
15
+ }
16
+
17
+ &.v-primeng-icon--large .pi {
18
+ font-size: 1.5rem;
19
+ }
20
+
21
+ &.v-primeng-icon--xl .pi {
22
+ font-size: 2rem;
23
+ }
24
+
25
+ &.v-primeng-icon--primary .pi {
26
+ color: var(--primary-color);
27
+ }
28
+
29
+ &.v-primeng-icon--secondary .pi {
30
+ color: var(--secondary-color);
31
+ }
32
+
33
+ &.v-primeng-icon--success .pi {
34
+ color: var(--success-color);
35
+ }
36
+
37
+ &.v-primeng-icon--danger .pi {
38
+ color: var(--error-color);
39
+ }
40
+
41
+ &.v-primeng-icon--warning .pi {
42
+ color: var(--details-color);
43
+ }
44
+
45
+ &.v-primeng-icon--info .pi,
46
+ &.v-primeng-icon--help .pi,
47
+ &.v-primeng-icon--contrast .pi {
48
+ color: var(--secondary-color);
49
+ }
50
+ }
51
+
@@ -0,0 +1,86 @@
1
+ import { CommonModule } from '@angular/common';
2
+ import { ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { ControlSeverity, ControlSeverityType, IconsComponent } from '@verisoft/ui-core';
4
+
5
+ @Component({
6
+ selector: 'v-icon',
7
+ imports: [CommonModule],
8
+ templateUrl: './icon.component.html',
9
+ styleUrl: './icon.component.scss',
10
+ changeDetection: ChangeDetectionStrategy.OnPush,
11
+ host: {
12
+ '[class]': 'hostClasses',
13
+ },
14
+ })
15
+ export class IconComponent extends IconsComponent {
16
+ get primeIconClasses(): string {
17
+ return ['pi', `pi-${this.name()}`].join(' ');
18
+ }
19
+
20
+ get hostClasses(): string {
21
+ const classes = ['v-primeng-icon'];
22
+ const sizeClass = this.primeSizeClass;
23
+ const colorClass = this.primeColorClass;
24
+ const customClass = this.class() ?? '';
25
+
26
+ if (sizeClass) {
27
+ classes.push(sizeClass);
28
+ }
29
+
30
+ if (colorClass) {
31
+ classes.push(colorClass);
32
+ }
33
+
34
+ if (customClass) {
35
+ classes.push(customClass);
36
+ }
37
+
38
+ return classes.join(' ');
39
+ }
40
+
41
+ private get primeSizeClass(): string {
42
+ switch (this.size()) {
43
+ case 'small':
44
+ return 'v-primeng-icon--small';
45
+ case 'medium':
46
+ return 'v-primeng-icon--medium';
47
+ case 'large':
48
+ return 'v-primeng-icon--large';
49
+ case 'xl':
50
+ return 'v-primeng-icon--xl';
51
+ default:
52
+ return '';
53
+ }
54
+ }
55
+
56
+ private get primeColorClass(): string {
57
+ const color = this.mapSeverityToPrimeClass(this.severity());
58
+ return color ? `v-primeng-icon--${color}` : '';
59
+ }
60
+
61
+ private mapSeverityToPrimeClass(severity: ControlSeverityType | undefined): string | undefined {
62
+ if (!severity) {
63
+ return undefined;
64
+ }
65
+
66
+ switch (severity) {
67
+ case ControlSeverity.success:
68
+ return 'success';
69
+ case ControlSeverity.danger:
70
+ return 'danger';
71
+ case ControlSeverity.warning:
72
+ return 'warning';
73
+ case ControlSeverity.info:
74
+ return 'info';
75
+ case ControlSeverity.secondary:
76
+ return 'secondary';
77
+ case ControlSeverity.help:
78
+ case ControlSeverity.primary:
79
+ case ControlSeverity.contrast:
80
+ return 'primary';
81
+ default:
82
+ return severity;
83
+ }
84
+ }
85
+ }
86
+
@@ -0,0 +1,2 @@
1
+ export * from './icon.component';
2
+
@@ -0,0 +1,34 @@
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
+ @for (item of items; track item) {
8
+ @if (item.position === 'left') {
9
+ <p-inputGroupAddon>
10
+ @if (item.icon) {
11
+ <i [class]="item.icon"></i>
12
+ }
13
+ @if (item.text) {
14
+ {{ item.text }}
15
+ }
16
+ </p-inputGroupAddon>
17
+ }
18
+ }
19
+ <input pInputText [formControl]="formControl" class="w-100" />
20
+ @for (item of items; track item) {
21
+ @if (item.position === 'right') {
22
+ <p-inputGroupAddon>
23
+ @if (item.icon) {
24
+ <i [class]="item.icon"></i>
25
+ }
26
+ @if (item.text) {
27
+ {{ item.text }}
28
+ }
29
+ </p-inputGroupAddon>
30
+ }
31
+ }
32
+ </p-inputGroup>
33
+ </v-form-field>
34
+ </div>
@@ -0,0 +1,21 @@
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
+ });
@@ -0,0 +1,58 @@
1
+
2
+ import {
3
+ ChangeDetectionStrategy,
4
+ Component,
5
+ forwardRef,
6
+ Input,
7
+ Optional,
8
+ Self,
9
+ } from '@angular/core';
10
+ import {
11
+ ControlValueAccessor,
12
+ NgControl,
13
+ ReactiveFormsModule,
14
+ } from '@angular/forms';
15
+ import {
16
+ BaseFormInputComponent,
17
+ BaseInputControls,
18
+ INPUT_GROUP_COMPONENT_TOKEN,
19
+ InputGroupCore,
20
+ InputGroupItem,
21
+ } from '@verisoft/ui-core';
22
+ import { InputGroupModule } from 'primeng/inputgroup';
23
+ import { InputGroupAddonModule } from 'primeng/inputgroupaddon';
24
+ import { InputTextModule } from 'primeng/inputtext';
25
+ import { FormFieldComponent } from '../form-field';
26
+
27
+ @Component({
28
+ selector: 'v-input-group',
29
+ imports: [
30
+ InputGroupAddonModule,
31
+ InputGroupModule,
32
+ InputTextModule,
33
+ ReactiveFormsModule,
34
+ FormFieldComponent
35
+ ],
36
+ templateUrl: './input-group.component.html',
37
+ changeDetection: ChangeDetectionStrategy.OnPush,
38
+ providers: [
39
+ {
40
+ provide: BaseInputControls,
41
+ useExisting: forwardRef(() => InputGroupComponent),
42
+ },
43
+ {
44
+ provide: INPUT_GROUP_COMPONENT_TOKEN,
45
+ useExisting: InputGroupComponent,
46
+ },
47
+ ]
48
+ })
49
+ export class InputGroupComponent
50
+ extends BaseFormInputComponent
51
+ implements ControlValueAccessor, InputGroupCore
52
+ {
53
+ constructor(@Optional() @Self() ngControl: NgControl) {
54
+ super(ngControl);
55
+ }
56
+
57
+ @Input() items!: InputGroupItem[];
58
+ }
@@ -0,0 +1,5 @@
1
+ <div class="v-loader d-flex justify-content-center">
2
+ <div>
3
+ <p-progressSpinner class="p-progress-spinner-circle"></p-progressSpinner>
4
+ </div>
5
+ </div>
@@ -0,0 +1,21 @@
1
+ import { ComponentFixture, TestBed } from '@angular/core/testing';
2
+ import { LoaderComponent } from './loader.component';
3
+
4
+ describe('LoaderComponent', () => {
5
+ let component: LoaderComponent;
6
+ let fixture: ComponentFixture<LoaderComponent>;
7
+
8
+ beforeEach(async () => {
9
+ await TestBed.configureTestingModule({
10
+ imports: [LoaderComponent],
11
+ }).compileComponents();
12
+
13
+ fixture = TestBed.createComponent(LoaderComponent);
14
+ component = fixture.componentInstance;
15
+ fixture.detectChanges();
16
+ });
17
+
18
+ it('should create', () => {
19
+ expect(component).toBeTruthy();
20
+ });
21
+ });
@@ -0,0 +1,16 @@
1
+
2
+ import { ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { LOADER_COMPONENT_TOKEN, LoaderCore } from '@verisoft/ui-core';
4
+ import { ProgressSpinnerModule } from 'primeng/progressspinner';
5
+
6
+ @Component({
7
+ selector: 'v-loader',
8
+ imports: [ProgressSpinnerModule],
9
+ templateUrl: './loader.component.html',
10
+ styleUrl: './loader.component.scss',
11
+ changeDetection: ChangeDetectionStrategy.OnPush,
12
+ providers: [
13
+ { provide: LOADER_COMPONENT_TOKEN, useExisting: LoaderComponent },
14
+ ]
15
+ })
16
+ export class LoaderComponent implements LoaderCore {}
@@ -0,0 +1,67 @@
1
+ <div class="v-multiple-select">
2
+ @if (label && !floatLabel) {
3
+ <v-form-field
4
+ class="w-100"
5
+ [label]="label"
6
+ [tooltip]="tooltip"
7
+ [required]="isRequired()"
8
+ [testId]="testId"
9
+ [display]="formDisplay"
10
+ >
11
+ <p-multiSelect
12
+ class="w-100"
13
+ appendTo="body"
14
+ [formControl]="formControl"
15
+ [title]="label"
16
+ display="chip"
17
+ [options]="options"
18
+ [optionLabel]="optionLabel"
19
+ [optionValue]="optionValue"
20
+ [loading]="loading"
21
+ [placeholder]="placeholder ? placeholder : label"
22
+ [virtualScrollItemSize]="25"
23
+ [lazy]="true"
24
+ [tooltip]="tooltip"
25
+ [required]="isRequired()"
26
+ [showClear]="formControl && clearable && !readonly"
27
+ [virtualScroll]="lazy"
28
+ [virtualScrollItemSize]="virtualOptionSize"
29
+ [virtualScrollOptions]="virtualScrollOptions"
30
+ (showEvent)="onDropdownShow()"
31
+ (clearEvent)="onDropdownClear()"
32
+ (changeEvent)="selectionChange($event)"
33
+ (lazyLoadEvent)="onLazyLoad($any($event))"
34
+ ></p-multiSelect>
35
+ </v-form-field>
36
+ <v-validation-message [ngControl]="ngControl"></v-validation-message>
37
+ }
38
+ @if (floatLabel) {
39
+ <p-floatLabel>
40
+ <p-multiSelect
41
+ class="w-100"
42
+ appendTo="body"
43
+ [formControl]="formControl"
44
+ [title]="label"
45
+ [options]="options"
46
+ [optionLabel]="optionLabel"
47
+ [optionValue]="optionValue"
48
+ [loading]="loading"
49
+ [placeholder]="placeholder ? placeholder : label"
50
+ [virtualScrollItemSize]="25"
51
+ [lazy]="true"
52
+ [tooltip]="tooltip"
53
+ [required]="isRequired()"
54
+ [inputId]="inputId"
55
+ [showClear]="formControl && clearable && !readonly"
56
+ [virtualScroll]="lazy"
57
+ [virtualScrollItemSize]="virtualOptionSize"
58
+ [virtualScrollOptions]="virtualScrollOptions"
59
+ (showEvent)="onDropdownShow()"
60
+ (clearEvent)="onDropdownClear()"
61
+ (changeEvent)="selectionChange($event)"
62
+ (lazyLoadEvent)="onLazyLoad($any($event))"
63
+ ></p-multiSelect>
64
+ <label [for]="inputId">{{ floatLabel }}</label>
65
+ </p-floatLabel>
66
+ }
67
+ </div>
@@ -0,0 +1,21 @@
1
+ import { ComponentFixture, TestBed } from '@angular/core/testing';
2
+ import { MultiselectComponent } from './multiselect.component';
3
+
4
+ describe('MultiselectComponent', () => {
5
+ let component: MultiselectComponent<any>;
6
+ let fixture: ComponentFixture<MultiselectComponent<any>>;
7
+
8
+ beforeEach(async () => {
9
+ await TestBed.configureTestingModule({
10
+ imports: [MultiselectComponent],
11
+ }).compileComponents();
12
+
13
+ fixture = TestBed.createComponent(MultiselectComponent);
14
+ component = fixture.componentInstance;
15
+ fixture.detectChanges();
16
+ });
17
+
18
+ it('should create', () => {
19
+ expect(component).toBeTruthy();
20
+ });
21
+ });
@@ -0,0 +1,120 @@
1
+
2
+ import {
3
+ ChangeDetectionStrategy,
4
+ Component,
5
+ EventEmitter,
6
+ forwardRef,
7
+ Input,
8
+ OnChanges,
9
+ Optional,
10
+ Output,
11
+ Self,
12
+ SimpleChanges,
13
+ } from '@angular/core';
14
+ import {
15
+ ControlValueAccessor,
16
+ NgControl,
17
+ ReactiveFormsModule,
18
+ } from '@angular/forms';
19
+ import {
20
+ FilterEvent,
21
+ LazyLoadEvent,
22
+ } from '@verisoft/core';
23
+ import {
24
+ BaseFormInputComponent,
25
+ BaseInputControls,
26
+ MULTISELECT_COMPONENT_TOKEN,
27
+ MultiselectCore,
28
+ FieldSize,
29
+ FieldSizeType,
30
+ } from '@verisoft/ui-core';
31
+ import { ScrollerOptions } from 'primeng/api';
32
+ import { FloatLabelModule } from 'primeng/floatlabel';
33
+ import { MultiSelectModule } from 'primeng/multiselect';
34
+ import { ScrollerLazyLoadEvent } from 'primeng/scroller';
35
+ import { ErrorComponent } from '../errors';
36
+ import { FormFieldComponent } from '../form-field';
37
+
38
+ @Component({
39
+ selector: 'v-multiselect',
40
+ imports: [
41
+ ReactiveFormsModule,
42
+ FloatLabelModule,
43
+ MultiSelectModule,
44
+ ErrorComponent,
45
+ FormFieldComponent
46
+ ],
47
+ templateUrl: './multiselect.component.html',
48
+ styleUrl: './multiselect.component.scss',
49
+ changeDetection: ChangeDetectionStrategy.OnPush,
50
+ providers: [
51
+ {
52
+ provide: BaseInputControls,
53
+ useExisting: forwardRef(() => MultiselectComponent),
54
+ multi: true,
55
+ },
56
+ {
57
+ provide: MULTISELECT_COMPONENT_TOKEN,
58
+ useExisting: MultiselectComponent,
59
+ },
60
+ ]
61
+ })
62
+ export class MultiselectComponent<T>
63
+ extends BaseFormInputComponent
64
+ implements ControlValueAccessor, MultiselectCore<T>, OnChanges
65
+ {
66
+ constructor(@Optional() @Self() ngControl: NgControl) {
67
+ super(ngControl);
68
+ }
69
+
70
+ @Input() options: T[] | undefined = [];
71
+ @Input() optionLabel: string | undefined;
72
+ @Input() optionValue: string | undefined;
73
+ @Input() dropdownIcon?: string;
74
+ @Input() floatLabel?: string;
75
+ @Input() editable = true;
76
+ @Input() loading = false;
77
+ @Input() lazy = false;
78
+ @Input() filter = true;
79
+ @Input() size: FieldSizeType = FieldSize.medium;
80
+
81
+ @Output() changed = new EventEmitter<any>();
82
+ @Output() showed = new EventEmitter<any>();
83
+ @Output() cleared = new EventEmitter<any>();
84
+ @Output() lazyLoad = new EventEmitter<LazyLoadEvent>();
85
+ @Output() filtered = new EventEmitter<FilterEvent>();
86
+
87
+ virtualScrollOptions!: ScrollerOptions | undefined;
88
+ virtualOptionSize = 37.5;
89
+
90
+ ngOnChanges(changes: SimpleChanges): void {
91
+ if (changes['lazy'] || changes['loading']) {
92
+ this.virtualScrollOptions = this.lazy
93
+ ? {
94
+ showLoader: this.loading,
95
+ lazy: true,
96
+ onLazyLoad: this.onLazyLoad.bind(this),
97
+ }
98
+ : undefined;
99
+ }
100
+ }
101
+
102
+ onLazyLoad(event: ScrollerLazyLoadEvent): void {
103
+ this.lazyLoad.emit({
104
+ offset: event.first,
105
+ limit: event.last - event.first,
106
+ });
107
+ }
108
+
109
+ selectionChange(event: any): void {
110
+ this.cleared.emit(event);
111
+ }
112
+
113
+ onDropdownShow(): void {
114
+ this.showed.emit();
115
+ }
116
+
117
+ onDropdownClear(): void {
118
+ this.cleared.emit();
119
+ }
120
+ }
@@ -0,0 +1,22 @@
1
+ <div class="v-number-input">
2
+ <v-form-field
3
+ class="w-100"
4
+ [label]="label"
5
+ [tooltip]="tooltip"
6
+ [required]="isRequired()"
7
+ [testId]="testId"
8
+ >
9
+ <p-inputNumber
10
+ class="w-100"
11
+ [formControl]="formControl"
12
+ [showButtons]="true"
13
+ [inputId]="inputId"
14
+ [mode]="mode"
15
+ [min]="min"
16
+ [max]="max"
17
+ [step]="step"
18
+ [currency]="currency"
19
+ />
20
+ <v-validation-message [ngControl]="ngControl"></v-validation-message>
21
+ </v-form-field>
22
+ </div>
@@ -0,0 +1,21 @@
1
+ import { ComponentFixture, TestBed } from '@angular/core/testing';
2
+ import { NumberInputComponent } from './number-input.component';
3
+
4
+ describe('NumberInputComponent', () => {
5
+ let component: NumberInputComponent;
6
+ let fixture: ComponentFixture<NumberInputComponent>;
7
+
8
+ beforeEach(async () => {
9
+ await TestBed.configureTestingModule({
10
+ imports: [NumberInputComponent],
11
+ }).compileComponents();
12
+
13
+ fixture = TestBed.createComponent(NumberInputComponent);
14
+ component = fixture.componentInstance;
15
+ fixture.detectChanges();
16
+ });
17
+
18
+ it('should create', () => {
19
+ expect(component).toBeTruthy();
20
+ });
21
+ });
@@ -0,0 +1,55 @@
1
+
2
+ import {
3
+ ChangeDetectionStrategy,
4
+ Component,
5
+ forwardRef,
6
+ Input,
7
+ Optional,
8
+ Self,
9
+ } from '@angular/core';
10
+ import {
11
+ ControlValueAccessor,
12
+ NgControl,
13
+ ReactiveFormsModule,
14
+ } from '@angular/forms';
15
+ import { BaseFormInputComponent, BaseInputControls, NUMBER_INPUT_COMPONENT_TOKEN, NumberInputCore } from '@verisoft/ui-core';
16
+ import { InputNumberModule } from 'primeng/inputnumber';
17
+ import { ErrorComponent } from '../errors';
18
+ import { FormFieldComponent } from '../form-field';
19
+
20
+ @Component({
21
+ selector: 'v-number-input',
22
+ imports: [
23
+ InputNumberModule,
24
+ ReactiveFormsModule,
25
+ FormFieldComponent,
26
+ ErrorComponent
27
+ ],
28
+ templateUrl: './number-input.component.html',
29
+ changeDetection: ChangeDetectionStrategy.OnPush,
30
+ providers: [
31
+ {
32
+ provide: BaseInputControls,
33
+ useExisting: forwardRef(() => NumberInputComponent),
34
+ },
35
+ {
36
+ provide: NUMBER_INPUT_COMPONENT_TOKEN,
37
+ useExisting: NumberInputComponent,
38
+ },
39
+ ]
40
+ })
41
+ export class NumberInputComponent
42
+ extends BaseFormInputComponent
43
+ implements ControlValueAccessor, NumberInputCore
44
+ {
45
+ constructor(@Optional() @Self() ngControl: NgControl) {
46
+ super(ngControl);
47
+ }
48
+
49
+ @Input() mode!: string;
50
+ @Input() currency!: string;
51
+ @Input() min!: number;
52
+ @Input() max!: number;
53
+ @Input() step = 1;
54
+ @Input() errorMessage?: string = 'test';
55
+ }
@@ -0,0 +1,35 @@
1
+ <div
2
+ class="v-page-header d-block d-md-flex px-3 w-100 gap-0 gap-md-4 align-items-center text-center text-md-start"
3
+ >
4
+ @if (showBackButton) {
5
+ <v-button
6
+ size="small"
7
+ [icon]="icons.arrowLeft"
8
+ label="Back"
9
+ [outlined]="true"
10
+ (click)="locationBack()"
11
+ ></v-button>
12
+ }
13
+ <div
14
+ class="align-items-center justify-content-center justify-content-md-start gap-2 w-100 d-flex"
15
+ >
16
+ <h1 class="text-primary m-0" [innerText]="title"></h1>
17
+ @if (subtitle) {
18
+ <div
19
+ class="d-flex gap-2 align-items-center text-center text-md-start"
20
+ >
21
+ <h1 class="text-default m-0" [innerText]="'-'"></h1>
22
+ <h1 class="text-default" [innerText]="subtitle"></h1>
23
+ </div>
24
+ }
25
+ </div>
26
+ <div
27
+ class="align-content-center page-header-action-buttons justify-content-center w-100"
28
+ >
29
+ @if (buttonGroup) {
30
+ <div>
31
+ <ng-content [select]="buttonGroup"></ng-content>
32
+ </div>
33
+ }
34
+ </div>
35
+ </div>
@@ -0,0 +1,21 @@
1
+ import { ComponentFixture, TestBed } from '@angular/core/testing';
2
+ import { PageHeaderComponent } from './page-header.component';
3
+
4
+ describe('PageHeaderComponent', () => {
5
+ let component: PageHeaderComponent;
6
+ let fixture: ComponentFixture<PageHeaderComponent>;
7
+
8
+ beforeEach(async () => {
9
+ await TestBed.configureTestingModule({
10
+ imports: [PageHeaderComponent],
11
+ }).compileComponents();
12
+
13
+ fixture = TestBed.createComponent(PageHeaderComponent);
14
+ component = fixture.componentInstance;
15
+ fixture.detectChanges();
16
+ });
17
+
18
+ it('should create', () => {
19
+ expect(component).toBeTruthy();
20
+ });
21
+ });