@verisoft/ui-govcz 18.6.4 → 18.6.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 (410) hide show
  1. package/esm2022/index.mjs +2 -0
  2. package/esm2022/lib/components/breadcrumb/breadcrumb.component.mjs +34 -0
  3. package/esm2022/lib/components/breadcrumb/index.mjs +2 -0
  4. package/esm2022/lib/components/button/button.component.mjs +87 -0
  5. package/esm2022/lib/components/button/index.mjs +2 -0
  6. package/esm2022/lib/components/calendar/calendar.component.mjs +87 -0
  7. package/esm2022/lib/components/calendar/index.mjs +2 -0
  8. package/esm2022/lib/components/checkbox/checkbox.component.mjs +62 -0
  9. package/esm2022/lib/components/checkbox/index.mjs +2 -0
  10. package/esm2022/lib/components/confirm-dialog/confirm-dialog.component.mjs +72 -0
  11. package/esm2022/lib/components/confirm-dialog/index.mjs +2 -0
  12. package/esm2022/lib/components/dropdown/dropdown-item.component.mjs +14 -0
  13. package/esm2022/lib/components/dropdown/dropdown.component.mjs +280 -0
  14. package/esm2022/lib/components/dropdown/dropdown.model.mjs +2 -0
  15. package/esm2022/lib/components/dropdown/index.mjs +2 -0
  16. package/esm2022/lib/components/errors/error.component.mjs +34 -0
  17. package/esm2022/lib/components/errors/index.mjs +2 -0
  18. package/esm2022/lib/components/form-field/form-field.component.mjs +92 -0
  19. package/esm2022/lib/components/form-field/index.mjs +2 -0
  20. package/esm2022/lib/components/header/header.component.mjs +85 -0
  21. package/esm2022/lib/components/header/index.mjs +2 -0
  22. package/esm2022/lib/components/index.mjs +34 -0
  23. package/esm2022/lib/components/input-group/index.mjs +2 -0
  24. package/esm2022/lib/components/input-group/input-group.component.mjs +89 -0
  25. package/esm2022/lib/components/loader/index.mjs +2 -0
  26. package/esm2022/lib/components/loader/loader.component.mjs +34 -0
  27. package/esm2022/lib/components/multiselect/index.mjs +2 -0
  28. package/esm2022/lib/components/multiselect/multiselect.component.mjs +121 -0
  29. package/esm2022/lib/components/number-input/index.mjs +2 -0
  30. package/esm2022/lib/components/number-input/number-input.component.mjs +104 -0
  31. package/esm2022/lib/components/page-header/index.mjs +2 -0
  32. package/esm2022/lib/components/page-header/page-header.component.mjs +28 -0
  33. package/esm2022/lib/components/password/index.mjs +2 -0
  34. package/esm2022/lib/components/password/password.component.mjs +94 -0
  35. package/esm2022/lib/components/radiobutton/index.mjs +2 -0
  36. package/esm2022/lib/components/radiobutton/radiobutton.component.mjs +50 -0
  37. package/esm2022/lib/components/search/index.mjs +2 -0
  38. package/esm2022/lib/components/search/search.component.mjs +40 -0
  39. package/esm2022/lib/components/section/index.mjs +2 -0
  40. package/esm2022/lib/components/section/section.component.mjs +70 -0
  41. package/esm2022/lib/components/shared-components/action-button-group/action-button-group.component.mjs +97 -0
  42. package/esm2022/lib/components/shared-components/action-button-group/components/action-button/action-button.component.mjs +64 -0
  43. package/esm2022/lib/components/shared-components/action-button-group/index.mjs +3 -0
  44. package/esm2022/lib/components/shared-components/dynamic-component/dynamic-component-factory.service.mjs +91 -0
  45. package/esm2022/lib/components/shared-components/dynamic-component/dynamic-component.component.mjs +42 -0
  46. package/esm2022/lib/components/shared-components/dynamic-component/index.mjs +3 -0
  47. package/esm2022/lib/components/shared-components/feature-list/directives/feature-list-column.directive.mjs +43 -0
  48. package/esm2022/lib/components/shared-components/feature-list/directives/feature-list-filter-field.directive.mjs +16 -0
  49. package/esm2022/lib/components/shared-components/feature-list/feature-list-filter.pipe.mjs +24 -0
  50. package/esm2022/lib/components/shared-components/feature-list/feature-list-page.component.mjs +43 -0
  51. package/esm2022/lib/components/shared-components/feature-list/feature-list-page.model.mjs +16 -0
  52. package/esm2022/lib/components/shared-components/feature-list/feature-list.component.mjs +285 -0
  53. package/esm2022/lib/components/shared-components/feature-list/index.mjs +6 -0
  54. package/esm2022/lib/components/shared-components/filter/directives/filter-field.directive.mjs +53 -0
  55. package/esm2022/lib/components/shared-components/filter/filter.component.mjs +195 -0
  56. package/esm2022/lib/components/shared-components/filter/filter.model.mjs +16 -0
  57. package/esm2022/lib/components/shared-components/filter/index.mjs +3 -0
  58. package/esm2022/lib/components/shared-components/generic-field/generic-field.component.mjs +98 -0
  59. package/esm2022/lib/components/shared-components/generic-field/index.mjs +2 -0
  60. package/esm2022/lib/components/shared-components/generic-form/generic-form.component.mjs +46 -0
  61. package/esm2022/lib/components/shared-components/generic-form/generic-form.model.mjs +50 -0
  62. package/esm2022/lib/components/shared-components/generic-form/index.mjs +3 -0
  63. package/esm2022/lib/components/shared-components/index.mjs +7 -0
  64. package/esm2022/lib/components/side-menu/index.mjs +3 -0
  65. package/esm2022/lib/components/side-menu/side-menu.component.mjs +48 -0
  66. package/esm2022/lib/components/side-menu/side-menu.module.mjs +73 -0
  67. package/esm2022/lib/components/snackbar/index.mjs +3 -0
  68. package/esm2022/lib/components/snackbar/services/snackbar.service.mjs +75 -0
  69. package/esm2022/lib/components/snackbar/snackbar.component.mjs +61 -0
  70. package/esm2022/lib/components/snackbar/snackbar.model.mjs +2 -0
  71. package/esm2022/lib/components/stepper/index.mjs +2 -0
  72. package/esm2022/lib/components/stepper/stepper.component.mjs +66 -0
  73. package/esm2022/lib/components/switch/index.mjs +2 -0
  74. package/esm2022/lib/components/switch/switch.component.mjs +45 -0
  75. package/esm2022/lib/components/tab-view/index.mjs +4 -0
  76. package/esm2022/lib/components/tab-view/tab-view-item.component.mjs +41 -0
  77. package/esm2022/lib/components/tab-view/tab-view.component.mjs +56 -0
  78. package/esm2022/lib/components/tab-view/tab-view.module.mjs +41 -0
  79. package/esm2022/lib/components/table/index.mjs +2 -0
  80. package/esm2022/lib/components/table/table-pagination-info.component.mjs +32 -0
  81. package/esm2022/lib/components/table/table.component.mjs +359 -0
  82. package/esm2022/lib/components/table/table.model.mjs +14 -0
  83. package/esm2022/lib/components/textarea/index.mjs +2 -0
  84. package/esm2022/lib/components/textarea/textarea.component.mjs +95 -0
  85. package/esm2022/lib/components/textfield/index.mjs +2 -0
  86. package/esm2022/lib/components/textfield/textfield.component.mjs +124 -0
  87. package/esm2022/lib/components/tooltip/index.mjs +2 -0
  88. package/esm2022/lib/components/tooltip/tooltip.component.mjs +66 -0
  89. package/esm2022/lib/components/tristatecheckbox/index.mjs +2 -0
  90. package/esm2022/lib/components/tristatecheckbox/tristatecheckbox.component.mjs +89 -0
  91. package/esm2022/lib/icons.mjs +35 -0
  92. package/esm2022/lib/index.mjs +6 -0
  93. package/esm2022/lib/init.service.mjs +17 -0
  94. package/esm2022/lib/pages/index.mjs +4 -0
  95. package/esm2022/lib/pages/not-authenticated/index.mjs +2 -0
  96. package/esm2022/lib/pages/not-authenticated/not-authenticated.component.mjs +17 -0
  97. package/esm2022/lib/pages/not-authorized/index.mjs +2 -0
  98. package/esm2022/lib/pages/not-authorized/not-authorized.component.mjs +20 -0
  99. package/esm2022/lib/pages/not-found/index.mjs +2 -0
  100. package/esm2022/lib/pages/not-found/not-found.component.mjs +20 -0
  101. package/esm2022/lib/pipes/color/color.pipe.mjs +27 -0
  102. package/esm2022/lib/pipes/index.mjs +4 -0
  103. package/esm2022/lib/pipes/multiselect/multiselect-options.pipe.mjs +52 -0
  104. package/esm2022/lib/pipes/size/size.pipe.mjs +23 -0
  105. package/esm2022/verisoft-ui-govcz.mjs +5 -0
  106. package/fesm2022/verisoft-ui-govcz.mjs +3742 -0
  107. package/fesm2022/verisoft-ui-govcz.mjs.map +1 -0
  108. package/index.d.ts +1 -0
  109. package/lib/components/breadcrumb/breadcrumb.component.d.ts +7 -0
  110. package/{src/lib/components/breadcrumb/index.ts → lib/components/breadcrumb/index.d.ts} +1 -1
  111. package/lib/components/button/button.component.d.ts +26 -0
  112. package/lib/components/button/index.d.ts +1 -0
  113. package/lib/components/calendar/calendar.component.d.ts +23 -0
  114. package/lib/components/calendar/index.d.ts +1 -0
  115. package/lib/components/checkbox/checkbox.component.d.ts +15 -0
  116. package/lib/components/checkbox/index.d.ts +1 -0
  117. package/lib/components/confirm-dialog/confirm-dialog.component.d.ts +15 -0
  118. package/{src/lib/components/confirm-dialog/index.ts → lib/components/confirm-dialog/index.d.ts} +1 -1
  119. package/lib/components/dropdown/dropdown-item.component.d.ts +7 -0
  120. package/lib/components/dropdown/dropdown.component.d.ts +65 -0
  121. package/{src/lib/components/dropdown/dropdown.model.ts → lib/components/dropdown/dropdown.model.d.ts} +6 -6
  122. package/{src/lib/components/dropdown/index.ts → lib/components/dropdown/index.d.ts} +1 -1
  123. package/lib/components/errors/error.component.d.ts +14 -0
  124. package/lib/components/errors/index.d.ts +1 -0
  125. package/lib/components/form-field/form-field.component.d.ts +25 -0
  126. package/{src/lib/components/form-field/index.ts → lib/components/form-field/index.d.ts} +1 -1
  127. package/lib/components/header/header.component.d.ts +25 -0
  128. package/lib/components/header/index.d.ts +1 -0
  129. package/{src/lib/components/index.ts → lib/components/index.d.ts} +33 -33
  130. package/lib/components/input-group/index.d.ts +1 -0
  131. package/lib/components/input-group/input-group.component.d.ts +24 -0
  132. package/lib/components/loader/index.d.ts +1 -0
  133. package/lib/components/loader/loader.component.d.ts +8 -0
  134. package/lib/components/multiselect/index.d.ts +1 -0
  135. package/lib/components/multiselect/multiselect.component.d.ts +35 -0
  136. package/lib/components/number-input/index.d.ts +1 -0
  137. package/lib/components/number-input/number-input.component.d.ts +29 -0
  138. package/lib/components/page-header/index.d.ts +1 -0
  139. package/lib/components/page-header/page-header.component.d.ts +9 -0
  140. package/{src/lib/components/password/index.ts → lib/components/password/index.d.ts} +1 -1
  141. package/lib/components/password/password.component.d.ts +23 -0
  142. package/lib/components/radiobutton/index.d.ts +1 -0
  143. package/lib/components/radiobutton/radiobutton.component.d.ts +12 -0
  144. package/lib/components/search/index.d.ts +1 -0
  145. package/lib/components/search/search.component.d.ts +14 -0
  146. package/lib/components/section/index.d.ts +1 -0
  147. package/lib/components/section/section.component.d.ts +18 -0
  148. package/lib/components/shared-components/action-button-group/action-button-group.component.d.ts +29 -0
  149. package/lib/components/shared-components/action-button-group/components/action-button/action-button.component.d.ts +24 -0
  150. package/{src/lib/components/shared-components/action-button-group/index.ts → lib/components/shared-components/action-button-group/index.d.ts} +2 -2
  151. package/lib/components/shared-components/dynamic-component/dynamic-component-factory.service.d.ts +17 -0
  152. package/lib/components/shared-components/dynamic-component/dynamic-component.component.d.ts +16 -0
  153. package/{src/lib/components/shared-components/dynamic-component/index.ts → lib/components/shared-components/dynamic-component/index.d.ts} +2 -2
  154. package/lib/components/shared-components/feature-list/directives/feature-list-column.directive.d.ts +10 -0
  155. package/lib/components/shared-components/feature-list/directives/feature-list-filter-field.directive.d.ts +6 -0
  156. package/lib/components/shared-components/feature-list/feature-list-filter.pipe.d.ts +9 -0
  157. package/lib/components/shared-components/feature-list/feature-list-page.component.d.ts +9 -0
  158. package/lib/components/shared-components/feature-list/feature-list-page.model.d.ts +23 -0
  159. package/lib/components/shared-components/feature-list/feature-list.component.d.ts +62 -0
  160. package/{src/lib/components/shared-components/feature-list/index.ts → lib/components/shared-components/feature-list/index.d.ts} +5 -5
  161. package/lib/components/shared-components/filter/directives/filter-field.directive.d.ts +20 -0
  162. package/lib/components/shared-components/filter/filter.component.d.ts +53 -0
  163. package/lib/components/shared-components/filter/filter.model.d.ts +2 -0
  164. package/{src/lib/components/shared-components/filter/index.ts → lib/components/shared-components/filter/index.d.ts} +2 -2
  165. package/lib/components/shared-components/generic-field/generic-field.component.d.ts +28 -0
  166. package/{src/lib/components/shared-components/generic-field/index.ts → lib/components/shared-components/generic-field/index.d.ts} +1 -1
  167. package/lib/components/shared-components/generic-form/generic-form.component.d.ts +15 -0
  168. package/lib/components/shared-components/generic-form/generic-form.model.d.ts +4 -0
  169. package/{src/lib/components/shared-components/generic-form/index.ts → lib/components/shared-components/generic-form/index.d.ts} +2 -2
  170. package/{src/lib/components/shared-components/index.ts → lib/components/shared-components/index.d.ts} +6 -6
  171. package/{src/lib/components/side-menu/index.ts → lib/components/side-menu/index.d.ts} +2 -2
  172. package/lib/components/side-menu/side-menu.component.d.ts +15 -0
  173. package/lib/components/side-menu/side-menu.module.d.ts +12 -0
  174. package/{src/lib/components/snackbar/index.ts → lib/components/snackbar/index.d.ts} +2 -2
  175. package/lib/components/snackbar/services/snackbar.service.d.ts +18 -0
  176. package/lib/components/snackbar/snackbar.component.d.ts +18 -0
  177. package/{src/lib/components/snackbar/snackbar.model.ts → lib/components/snackbar/snackbar.model.d.ts} +10 -10
  178. package/lib/components/stepper/index.d.ts +1 -0
  179. package/lib/components/stepper/stepper.component.d.ts +20 -0
  180. package/lib/components/switch/index.d.ts +1 -0
  181. package/lib/components/switch/switch.component.d.ts +12 -0
  182. package/{src/lib/components/tab-view/index.ts → lib/components/tab-view/index.d.ts} +3 -3
  183. package/lib/components/tab-view/tab-view-item.component.d.ts +14 -0
  184. package/lib/components/tab-view/tab-view.component.d.ts +19 -0
  185. package/lib/components/tab-view/tab-view.module.d.ts +12 -0
  186. package/{src/lib/components/table/index.ts → lib/components/table/index.d.ts} +1 -1
  187. package/lib/components/table/table-pagination-info.component.d.ts +12 -0
  188. package/lib/components/table/table.component.d.ts +91 -0
  189. package/lib/components/table/table.model.d.ts +3 -0
  190. package/lib/components/textarea/index.d.ts +1 -0
  191. package/lib/components/textarea/textarea.component.d.ts +25 -0
  192. package/lib/components/textfield/index.d.ts +1 -0
  193. package/lib/components/textfield/textfield.component.d.ts +28 -0
  194. package/lib/components/tooltip/index.d.ts +1 -0
  195. package/lib/components/tooltip/tooltip.component.d.ts +18 -0
  196. package/{src/lib/components/tristatecheckbox/index.ts → lib/components/tristatecheckbox/index.d.ts} +1 -1
  197. package/lib/components/tristatecheckbox/tristatecheckbox.component.d.ts +27 -0
  198. package/lib/icons.d.ts +2 -0
  199. package/{src/lib/index.ts → lib/index.d.ts} +5 -5
  200. package/lib/init.service.d.ts +6 -0
  201. package/{src/lib/pages/index.ts → lib/pages/index.d.ts} +3 -3
  202. package/{src/lib/pages/not-authenticated/index.ts → lib/pages/not-authenticated/index.d.ts} +1 -1
  203. package/lib/pages/not-authenticated/not-authenticated.component.d.ts +5 -0
  204. package/{src/lib/pages/not-authorized/index.ts → lib/pages/not-authorized/index.d.ts} +1 -1
  205. package/lib/pages/not-authorized/not-authorized.component.d.ts +6 -0
  206. package/{src/lib/pages/not-found/index.ts → lib/pages/not-found/index.d.ts} +1 -1
  207. package/lib/pages/not-found/not-found.component.d.ts +6 -0
  208. package/lib/pipes/color/color.pipe.d.ts +8 -0
  209. package/{src/lib/pipes/index.ts → lib/pipes/index.d.ts} +3 -3
  210. package/lib/pipes/multiselect/multiselect-options.pipe.d.ts +9 -0
  211. package/lib/pipes/size/size.pipe.d.ts +8 -0
  212. package/package.json +38 -23
  213. package/.eslintrc.json +0 -48
  214. package/jest.config.ts +0 -21
  215. package/ng-package.json +0 -15
  216. package/project.json +0 -49
  217. package/src/assets/main.css +0 -18
  218. package/src/config.d.ts +0 -10
  219. package/src/index.ts +0 -1
  220. package/src/lib/components/breadcrumb/breadcrumb.component.html +0 -23
  221. package/src/lib/components/breadcrumb/breadcrumb.component.scss +0 -0
  222. package/src/lib/components/breadcrumb/breadcrumb.component.spec.ts +0 -21
  223. package/src/lib/components/breadcrumb/breadcrumb.component.ts +0 -30
  224. package/src/lib/components/button/button.component.html +0 -26
  225. package/src/lib/components/button/button.component.scss +0 -0
  226. package/src/lib/components/button/button.component.ts +0 -72
  227. package/src/lib/components/button/index.ts +0 -1
  228. package/src/lib/components/calendar/calendar.component.html +0 -28
  229. package/src/lib/components/calendar/calendar.component.scss +0 -0
  230. package/src/lib/components/calendar/calendar.component.ts +0 -79
  231. package/src/lib/components/calendar/index.ts +0 -1
  232. package/src/lib/components/checkbox/checkbox.component.html +0 -23
  233. package/src/lib/components/checkbox/checkbox.component.scss +0 -0
  234. package/src/lib/components/checkbox/checkbox.component.ts +0 -62
  235. package/src/lib/components/checkbox/index.ts +0 -1
  236. package/src/lib/components/confirm-dialog/confirm-dialog.component.html +0 -50
  237. package/src/lib/components/confirm-dialog/confirm-dialog.component.scss +0 -4
  238. package/src/lib/components/confirm-dialog/confirm-dialog.component.ts +0 -80
  239. package/src/lib/components/dropdown/dropdown-item.component.html +0 -8
  240. package/src/lib/components/dropdown/dropdown-item.component.ts +0 -18
  241. package/src/lib/components/dropdown/dropdown.component.html +0 -90
  242. package/src/lib/components/dropdown/dropdown.component.scss +0 -108
  243. package/src/lib/components/dropdown/dropdown.component.spec.ts +0 -21
  244. package/src/lib/components/dropdown/dropdown.component.ts +0 -297
  245. package/src/lib/components/errors/error.component.html +0 -11
  246. package/src/lib/components/errors/error.component.scss +0 -0
  247. package/src/lib/components/errors/error.component.spec.ts +0 -19
  248. package/src/lib/components/errors/error.component.ts +0 -30
  249. package/src/lib/components/errors/index.ts +0 -1
  250. package/src/lib/components/form-field/form-field.component.html +0 -14
  251. package/src/lib/components/form-field/form-field.component.scss +0 -0
  252. package/src/lib/components/form-field/form-field.component.spec.ts +0 -21
  253. package/src/lib/components/form-field/form-field.component.ts +0 -78
  254. package/src/lib/components/header/header.component.html +0 -122
  255. package/src/lib/components/header/header.component.scss +0 -0
  256. package/src/lib/components/header/header.component.ts +0 -91
  257. package/src/lib/components/header/index.ts +0 -1
  258. package/src/lib/components/input-group/index.ts +0 -1
  259. package/src/lib/components/input-group/input-group.component.html +0 -41
  260. package/src/lib/components/input-group/input-group.component.scss +0 -0
  261. package/src/lib/components/input-group/input-group.component.ts +0 -77
  262. package/src/lib/components/loader/index.ts +0 -1
  263. package/src/lib/components/loader/loader.component.html +0 -7
  264. package/src/lib/components/loader/loader.component.scss +0 -0
  265. package/src/lib/components/loader/loader.component.spec.ts +0 -21
  266. package/src/lib/components/loader/loader.component.ts +0 -33
  267. package/src/lib/components/multiselect/index.ts +0 -1
  268. package/src/lib/components/multiselect/multiselect.component.html +0 -21
  269. package/src/lib/components/multiselect/multiselect.component.scss +0 -0
  270. package/src/lib/components/multiselect/multiselect.component.spec.ts +0 -21
  271. package/src/lib/components/multiselect/multiselect.component.ts +0 -119
  272. package/src/lib/components/number-input/index.ts +0 -1
  273. package/src/lib/components/number-input/number-input.component.html +0 -48
  274. package/src/lib/components/number-input/number-input.component.scss +0 -0
  275. package/src/lib/components/number-input/number-input.component.ts +0 -82
  276. package/src/lib/components/page-header/index.ts +0 -1
  277. package/src/lib/components/page-header/page-header.component.html +0 -3
  278. package/src/lib/components/page-header/page-header.component.scss +0 -11
  279. package/src/lib/components/page-header/page-header.component.spec.ts +0 -21
  280. package/src/lib/components/page-header/page-header.component.ts +0 -29
  281. package/src/lib/components/password/password.component.html +0 -31
  282. package/src/lib/components/password/password.component.scss +0 -0
  283. package/src/lib/components/password/password.component.spec.ts +0 -21
  284. package/src/lib/components/password/password.component.ts +0 -85
  285. package/src/lib/components/radiobutton/index.ts +0 -1
  286. package/src/lib/components/radiobutton/radiobutton.component.html +0 -23
  287. package/src/lib/components/radiobutton/radiobutton.component.scss +0 -0
  288. package/src/lib/components/radiobutton/radiobutton.component.ts +0 -58
  289. package/src/lib/components/search/index.ts +0 -1
  290. package/src/lib/components/search/search.component.html +0 -23
  291. package/src/lib/components/search/search.component.scss +0 -0
  292. package/src/lib/components/search/search.component.ts +0 -47
  293. package/src/lib/components/section/index.ts +0 -1
  294. package/src/lib/components/section/section.component.html +0 -26
  295. package/src/lib/components/section/section.component.scss +0 -0
  296. package/src/lib/components/section/section.component.ts +0 -57
  297. package/src/lib/components/shared-components/action-button-group/action-button-group.component.html +0 -27
  298. package/src/lib/components/shared-components/action-button-group/action-button-group.component.scss +0 -0
  299. package/src/lib/components/shared-components/action-button-group/action-button-group.component.spec.ts +0 -21
  300. package/src/lib/components/shared-components/action-button-group/action-button-group.component.ts +0 -114
  301. package/src/lib/components/shared-components/action-button-group/components/action-button/action-button.component.html +0 -11
  302. package/src/lib/components/shared-components/action-button-group/components/action-button/action-button.component.scss +0 -0
  303. package/src/lib/components/shared-components/action-button-group/components/action-button/action-button.component.spec.ts +0 -21
  304. package/src/lib/components/shared-components/action-button-group/components/action-button/action-button.component.ts +0 -71
  305. package/src/lib/components/shared-components/dynamic-component/dynamic-component-factory.service.ts +0 -142
  306. package/src/lib/components/shared-components/dynamic-component/dynamic-component.component.ts +0 -56
  307. package/src/lib/components/shared-components/feature-list/directives/feature-list-column.directive.ts +0 -32
  308. package/src/lib/components/shared-components/feature-list/directives/feature-list-filter-field.directive.ts +0 -8
  309. package/src/lib/components/shared-components/feature-list/feature-list-filter.pipe.ts +0 -21
  310. package/src/lib/components/shared-components/feature-list/feature-list-page.component.ts +0 -31
  311. package/src/lib/components/shared-components/feature-list/feature-list-page.model.ts +0 -42
  312. package/src/lib/components/shared-components/feature-list/feature-list.component.html +0 -59
  313. package/src/lib/components/shared-components/feature-list/feature-list.component.scss +0 -10
  314. package/src/lib/components/shared-components/feature-list/feature-list.component.ts +0 -342
  315. package/src/lib/components/shared-components/filter/directives/filter-field.directive.ts +0 -35
  316. package/src/lib/components/shared-components/filter/filter.component.html +0 -68
  317. package/src/lib/components/shared-components/filter/filter.component.scss +0 -0
  318. package/src/lib/components/shared-components/filter/filter.component.spec.ts +0 -21
  319. package/src/lib/components/shared-components/filter/filter.component.stories.ts +0 -23
  320. package/src/lib/components/shared-components/filter/filter.component.ts +0 -284
  321. package/src/lib/components/shared-components/filter/filter.model.ts +0 -18
  322. package/src/lib/components/shared-components/generic-field/generic-field.component.html +0 -97
  323. package/src/lib/components/shared-components/generic-field/generic-field.component.spec.ts +0 -21
  324. package/src/lib/components/shared-components/generic-field/generic-field.component.ts +0 -94
  325. package/src/lib/components/shared-components/generic-form/generic-form.component.html +0 -46
  326. package/src/lib/components/shared-components/generic-form/generic-form.component.spec.ts +0 -21
  327. package/src/lib/components/shared-components/generic-form/generic-form.component.ts +0 -57
  328. package/src/lib/components/shared-components/generic-form/generic-form.model.spec.ts +0 -82
  329. package/src/lib/components/shared-components/generic-form/generic-form.model.ts +0 -68
  330. package/src/lib/components/side-menu/side-menu.component.html +0 -25
  331. package/src/lib/components/side-menu/side-menu.component.scss +0 -23
  332. package/src/lib/components/side-menu/side-menu.component.ts +0 -42
  333. package/src/lib/components/side-menu/side-menu.module.ts +0 -64
  334. package/src/lib/components/sidemenu/index.ts +0 -2
  335. package/src/lib/components/snackbar/services/snackbar.service.ts +0 -73
  336. package/src/lib/components/snackbar/snackbar.component.html +0 -14
  337. package/src/lib/components/snackbar/snackbar.component.scss +0 -0
  338. package/src/lib/components/snackbar/snackbar.component.spec.ts +0 -21
  339. package/src/lib/components/snackbar/snackbar.component.ts +0 -45
  340. package/src/lib/components/stepper/index.ts +0 -1
  341. package/src/lib/components/stepper/stepper.component.html +0 -35
  342. package/src/lib/components/stepper/stepper.component.scss +0 -9
  343. package/src/lib/components/stepper/stepper.component.ts +0 -61
  344. package/src/lib/components/switch/index.ts +0 -1
  345. package/src/lib/components/switch/switch.component.html +0 -16
  346. package/src/lib/components/switch/switch.component.scss +0 -0
  347. package/src/lib/components/switch/switch.component.ts +0 -37
  348. package/src/lib/components/tab-view/tab-view-item.component.ts +0 -23
  349. package/src/lib/components/tab-view/tab-view.component.html +0 -51
  350. package/src/lib/components/tab-view/tab-view.component.scss +0 -43
  351. package/src/lib/components/tab-view/tab-view.component.ts +0 -61
  352. package/src/lib/components/tab-view/tab-view.module.ts +0 -25
  353. package/src/lib/components/table/table-pagination-info.component.html +0 -9
  354. package/src/lib/components/table/table-pagination-info.component.ts +0 -22
  355. package/src/lib/components/table/table.component.html +0 -198
  356. package/src/lib/components/table/table.component.scss +0 -193
  357. package/src/lib/components/table/table.component.ts +0 -387
  358. package/src/lib/components/table/table.model.ts +0 -17
  359. package/src/lib/components/table/table.models.ts +0 -12
  360. package/src/lib/components/textarea/index.ts +0 -1
  361. package/src/lib/components/textarea/textarea.component.html +0 -50
  362. package/src/lib/components/textarea/textarea.component.scss +0 -0
  363. package/src/lib/components/textarea/textarea.component.ts +0 -78
  364. package/src/lib/components/textfield/index.ts +0 -1
  365. package/src/lib/components/textfield/textfield.component.html +0 -56
  366. package/src/lib/components/textfield/textfield.component.scss +0 -0
  367. package/src/lib/components/textfield/textfield.component.ts +0 -114
  368. package/src/lib/components/tooltip/index.ts +0 -1
  369. package/src/lib/components/tooltip/tooltip.component.html +0 -10
  370. package/src/lib/components/tooltip/tooltip.component.scss +0 -0
  371. package/src/lib/components/tooltip/tooltip.component.ts +0 -57
  372. package/src/lib/components/tristatecheckbox/tristatecheckbox.component.html +0 -23
  373. package/src/lib/components/tristatecheckbox/tristatecheckbox.component.scss +0 -0
  374. package/src/lib/components/tristatecheckbox/tristatecheckbox.component.ts +0 -103
  375. package/src/lib/icons.ts +0 -36
  376. package/src/lib/init.service.ts +0 -11
  377. package/src/lib/interceptors/http-error-message.interceptor.ts +0 -45
  378. package/src/lib/pages/bad-request-page/bad-request-page.component.html +0 -5
  379. package/src/lib/pages/bad-request-page/bad-request-page.component.scss +0 -0
  380. package/src/lib/pages/bad-request-page/bad-request-page.component.ts +0 -15
  381. package/src/lib/pages/error-page/error-page.component.html +0 -5
  382. package/src/lib/pages/error-page/error-page.component.scss +0 -0
  383. package/src/lib/pages/error-page/error-page.component.ts +0 -32
  384. package/src/lib/pages/error-page/error-page.constants.ts +0 -19
  385. package/src/lib/pages/internal-server-error-page/internal-server-error-page.component.html +0 -5
  386. package/src/lib/pages/internal-server-error-page/internal-server-error-page.component.scss +0 -0
  387. package/src/lib/pages/internal-server-error-page/internal-server-error-page.component.ts +0 -16
  388. package/src/lib/pages/not-authenticated/not-authenticated.component.html +0 -5
  389. package/src/lib/pages/not-authenticated/not-authenticated.component.ts +0 -14
  390. package/src/lib/pages/not-authorized/not-authorized.component.html +0 -5
  391. package/src/lib/pages/not-authorized/not-authorized.component.ts +0 -18
  392. package/src/lib/pages/not-found/not-found.component.html +0 -5
  393. package/src/lib/pages/not-found/not-found.component.ts +0 -18
  394. package/src/lib/pages/not-found-page/not-found-page.component.html +0 -6
  395. package/src/lib/pages/not-found-page/not-found-page.component.scss +0 -0
  396. package/src/lib/pages/not-found-page/not-found-page.component.ts +0 -16
  397. package/src/lib/pipes/color/color.pipe.ts +0 -24
  398. package/src/lib/pipes/multiselect/multiselect-options.pipe.ts +0 -61
  399. package/src/lib/pipes/size/size.pipe.ts +0 -20
  400. package/src/test-setup.ts +0 -8
  401. package/tsconfig.json +0 -30
  402. package/tsconfig.lib.json +0 -17
  403. package/tsconfig.lib.prod.json +0 -9
  404. package/tsconfig.spec.json +0 -16
  405. /package/{src/sass → sass}/header.css +0 -0
  406. /package/{src/sass → sass}/header.scss +0 -0
  407. /package/{src/sass → sass}/main.scss +0 -0
  408. /package/{src/sass → sass}/scrollbar.scss +0 -0
  409. /package/{src/sass → sass}/sidemenu.css +0 -0
  410. /package/{src/sass → sass}/vendors/_bootstrap.scss +0 -0
@@ -1,387 +0,0 @@
1
- import { CommonModule, NgTemplateOutlet } from '@angular/common';
2
- import {
3
- AfterViewInit,
4
- ChangeDetectionStrategy,
5
- ChangeDetectorRef,
6
- Component,
7
- ContentChild,
8
- ContentChildren,
9
- effect,
10
- EventEmitter,
11
- inject,
12
- Input,
13
- OnChanges,
14
- Output,
15
- QueryList,
16
- SimpleChanges,
17
- TemplateRef,
18
- } from '@angular/core';
19
- import { ActivatedRoute, Router, RouterModule } from '@angular/router';
20
- import { GovDesignSystemModule } from '@gov-design-system-ce/angular';
21
- import {
22
- FormCheckboxEvent,
23
- FormSelectEvent,
24
- } from '@gov-design-system-ce/components';
25
- import { TranslateModule } from '@ngx-translate/core';
26
- import {
27
- DEFAULT_SEARCH_LIMIT,
28
- LazyLoadEvent,
29
- multiSort,
30
- Sort,
31
- SortDirectionType,
32
- } from '@verisoft/core';
33
- import {
34
- ColumnDefinition,
35
- ColumnModel,
36
- ColumnProvider,
37
- DEFAULT_PAGINATION,
38
- FieldSize,
39
- FieldSizeType,
40
- MAX_COLUMN_CHAR_COUNT,
41
- RowModel,
42
- TABLE_COLUMN_PROVIDER,
43
- TABLE_COMPONENT_TOKEN,
44
- TableCore,
45
- TableSelectionMode,
46
- TableService,
47
- } from '@verisoft/ui-core';
48
- import { Icons } from '../../icons';
49
- import { GovSizePipe } from '../../pipes';
50
- import { LoaderComponent } from '../loader';
51
- import { TablePaginationInfoComponent } from './table-pagination-info.component';
52
- import { getNextSortDirection } from './table.model';
53
-
54
- @Component({
55
- selector: 'v-table',
56
- standalone: true,
57
- imports: [
58
- CommonModule,
59
- RouterModule,
60
- GovDesignSystemModule,
61
- NgTemplateOutlet,
62
- TranslateModule,
63
- GovSizePipe,
64
- LoaderComponent,
65
- TablePaginationInfoComponent,
66
- ],
67
- templateUrl: './table.component.html',
68
- changeDetection: ChangeDetectionStrategy.OnPush,
69
- styleUrl: './table.component.scss',
70
- providers: [
71
- {
72
- provide: TABLE_COMPONENT_TOKEN,
73
- useExisting: TableComponent,
74
- },
75
- ],
76
- })
77
- export class TableComponent<T>
78
- implements OnChanges, AfterViewInit, TableCore<T>
79
- {
80
- @ContentChildren(TABLE_COLUMN_PROVIDER)
81
- viewColumns!: QueryList<ColumnProvider<T>>;
82
-
83
- @ContentChild('rowDetail', { static: false })
84
- rowDetailTemplate!: TemplateRef<{ $implicit: T }>;
85
-
86
- @ContentChild('rowDetailButton', { static: false })
87
- rowDetailButtonTemplate!: TemplateRef<{ $implicit: T }>;
88
-
89
- @Input() sorters!: Sort[];
90
- @Input() data!: T[];
91
- @Input() total = 0;
92
- @Input() filter: Partial<T> | undefined;
93
- @Input() extraFilter: Partial<T> | undefined;
94
- @Input() loading = false;
95
- @Input() scrollable = true;
96
- @Input() pageSize = DEFAULT_SEARCH_LIMIT;
97
- @Input() currentPage = 1;
98
- @Input() showPaginator = true;
99
- @Input() userTableWrapper = true;
100
- @Input() sortMultiple = false;
101
- @Input() lazy = false;
102
- @Input() selectionMode: 'single' | 'multiple' | undefined;
103
- @Input() selection: T[] = [];
104
- @Input() showPageSizePicker = true;
105
- @Input() entityKey: string | undefined;
106
- @Input() customRoute: string | undefined;
107
- @Input() disableCustomClicks = false;
108
- @Input() tableName?: string;
109
- @Input() size: FieldSizeType = FieldSize.medium;
110
- @Input() showActionButtons = false;
111
- @Input() maximumColumnLength = MAX_COLUMN_CHAR_COUNT;
112
-
113
- @Input()
114
- set columns(value: ColumnDefinition<T>[]) {
115
- this._columns = value;
116
- this.updateColumnModels();
117
- }
118
-
119
- get columns(): ColumnDefinition<T>[] {
120
- return this._columns;
121
- }
122
-
123
- @Output() selectionChange = new EventEmitter<T[]>();
124
- @Output() lazyLoad = new EventEmitter<LazyLoadEvent>();
125
- @Output() download = new EventEmitter<RowModel<T>[]>();
126
- @Output() delete = new EventEmitter<RowModel<T>[]>();
127
- @Output() save = new EventEmitter<RowModel<T>[]>();
128
-
129
- private readonly cdRef = inject(ChangeDetectorRef);
130
- private readonly router = inject(Router);
131
- private readonly route = inject(ActivatedRoute);
132
- private readonly service = inject(TableService);
133
- private _columns: ColumnDefinition<T, keyof T>[] = [];
134
-
135
- tableColumns: ColumnModel<T>[] = [];
136
- tableRows: RowModel<T>[] = [];
137
- pageSizeOptions = DEFAULT_PAGINATION.map((x: number) => ({ value: x.toString() }));
138
- allSelected = false;
139
- icons = Icons;
140
-
141
- get govPageSize() {
142
- return this.pageSize.toString();
143
- }
144
-
145
- get tableRowView(): RowModel<T>[] {
146
- if (this.lazy) {
147
- return this.tableRows;
148
- } else {
149
- const start = (this.currentPage - 1) * this.pageSize;
150
- const end = start + this.pageSize;
151
- return this.tableRows.slice(start, end);
152
- }
153
- }
154
-
155
- get selected(): RowModel<T>[] {
156
- return this.tableRows.filter(r => r.selected);
157
- }
158
-
159
- get selectedCount(): number {
160
- return this.selected.length;
161
- }
162
-
163
- constructor() {
164
- effect(() => {
165
- this.reactToSignals();
166
- })
167
- }
168
-
169
- ngOnChanges(changes: SimpleChanges): void {
170
- if (changes['data']) {
171
- this.updateRowModels();
172
- if (!this.lazy && this.data) {
173
- this.total = this.data.length;
174
- }
175
- }
176
-
177
- if (changes['selection']) {
178
- this.selectSelected();
179
- }
180
-
181
- if (changes['filter']) {
182
- this.updateFilter();
183
- }
184
- }
185
-
186
- ngAfterViewInit(): void {
187
- if (this.viewColumns?.length) {
188
- this.updateColumnModels();
189
- this.cdRef.detectChanges();
190
- }
191
- }
192
-
193
- protected sortColumn(column: ColumnModel<T>) {
194
- if (column.sortable) {
195
- column.sortDirection = getNextSortDirection(
196
- column.sortDirection,
197
- this.sortMultiple
198
- );
199
-
200
- if (!this.sortMultiple) {
201
- this.tableColumns
202
- .filter((x) => x !== column)
203
- .forEach((x) => {
204
- x.sortDirection = undefined;
205
- });
206
- }
207
-
208
- const sorts: Sort[] = this.getSorts().map((x) => ({
209
- field: 'row.' + x.field,
210
- direction: x.direction,
211
- }));
212
-
213
- if (!this.lazy) {
214
- this.tableRows = multiSort(this.tableRows, sorts);
215
- } else {
216
- this.fireLazyLoad();
217
- }
218
- }
219
- }
220
-
221
- protected changePage(event: { detail: { pagination: { currentPage: number } } }) {
222
- this.currentPage = event.detail.pagination.currentPage;
223
- this.fireLazyLoad();
224
- }
225
-
226
- protected changePageSize(event: CustomEvent<FormSelectEvent>) {
227
- this.pageSize = parseInt(event.detail.value);
228
- this.currentPage = 1;
229
- this.fireLazyLoad();
230
- }
231
-
232
- protected selectRow(row: RowModel<T>, event: MouseEvent) {
233
- if (event.ctrlKey || event.metaKey) {
234
- this.navigate(row, event);
235
- return;
236
- }
237
-
238
- if (this.selectionMode === 'single') {
239
- row.selected = !row.selected;
240
- this.tableRows.forEach((x) => (x !== row ? (x.selected = false) : null));
241
- this.fireSelectionChange();
242
- } else if (this.selectionMode === 'multiple') {
243
- row.selected = !row.selected;
244
- this.fireSelectionChange();
245
- }
246
- }
247
-
248
- protected navigate(row: RowModel<T>, event: MouseEvent) {
249
- if (this.disableCustomClicks) {
250
- return;
251
- }
252
-
253
- event.preventDefault();
254
- const targetUrl = this.createUrl(row);
255
-
256
- if (event.ctrlKey || event.metaKey) {
257
- setTimeout(() => {
258
- window.open(
259
- this.router.serializeUrl(this.router.createUrlTree([targetUrl], { relativeTo: this.route })),
260
- '_blank'
261
- );
262
- }, 0);
263
- } else {
264
- this.router.navigate([targetUrl], { relativeTo: this.route });
265
- }
266
- }
267
-
268
- protected navigateNewWindow(row: RowModel<T>, event: MouseEvent) {
269
- if (this.disableCustomClicks || event.button !== 1) {
270
- return;
271
- }
272
-
273
- event.preventDefault();
274
- const targetUrl = this.createUrl(row);
275
-
276
- window.open(this.router.serializeUrl(this.router.createUrlTree([targetUrl], { relativeTo: this.route })), '_blank');
277
- }
278
-
279
- protected toggleAll(event: CustomEvent<FormCheckboxEvent>) {
280
- this.allSelected = event.detail.checked;
281
- this.tableRows.forEach((x) => (x.selected = this.allSelected));
282
- this.fireSelectionChange();
283
- }
284
-
285
- protected toggleDetail(row: RowModel<T>) {
286
- row.expanded = !row.expanded;
287
- this.cdRef.detectChanges();
288
- }
289
-
290
- protected selectRowCheckbox(row: RowModel<T>, event: CustomEvent<FormCheckboxEvent>) {
291
- row.selected = event.detail.checked;
292
- this.allSelected = this.tableRows.every((x) => x.selected);
293
- this.fireSelectionChange();
294
- }
295
-
296
- protected truncate(text: string): string {
297
- return text.length > this.maximumColumnLength
298
- ? text.slice(0, this.maximumColumnLength) + '...'
299
- : text;
300
- }
301
-
302
- protected deselectAll() {
303
- this.allSelected = false;
304
- this.tableRows.forEach(x => (x.selected = this.allSelected));
305
- }
306
-
307
- private createUrl(row: RowModel<T>): string {
308
- if (row.customRoute) {
309
- return row.customRoute;
310
- }
311
-
312
- return row.id.toString();
313
- }
314
-
315
- private reactToSignals(): void {
316
- const reload = this.service.reload();
317
-
318
- if (typeof reload === 'symbol') {
319
- this.fireLazyLoad();
320
- } else if (reload.name === this.tableName) {
321
- this.fireLazyLoad()
322
- }
323
-
324
- this.deselectAll();
325
- }
326
-
327
- private updateColumnModels() {
328
- const viewColumns = this.viewColumns
329
- ?.toArray()
330
- .map((x) => x.getDefinition());
331
- this.tableColumns = [...(this._columns ?? []), ...(viewColumns ?? [])].map(
332
- (x) => new ColumnModel(x)
333
- );
334
- }
335
-
336
- private updateRowModels(): void {
337
- this.tableRows = (this.data ?? []).map(
338
- (x) => new RowModel(x, false, false, undefined, undefined, undefined, this.customRoute, this.entityKey)
339
- );
340
- }
341
-
342
- private fireSelectionChange() {
343
- const selectedRows = this.tableRows
344
- .filter((x) => x.selected)
345
- .map((x) => x.row);
346
- this.selectionChange.emit(selectedRows);
347
- }
348
-
349
- private selectSelected() {
350
- if (this.selection?.length && this.selectionMode) {
351
- const selection =
352
- this.selectionMode === TableSelectionMode.single
353
- ? [this.selection[0]]
354
- : this.selection;
355
- const selectionSet = new Set(selection);
356
- this.tableRows.forEach((item) => {
357
- item.selected = selectionSet.has(item.row);
358
- });
359
-
360
- this.allSelected = this.tableRows.every((x) => x.selected);
361
- }
362
- }
363
-
364
- private fireLazyLoad() {
365
- const lazyLoadEvent: LazyLoadEvent = {
366
- sort: this.getSorts(),
367
- offset: (this.currentPage - 1) * this.pageSize,
368
- limit: this.pageSize,
369
- filter: this.filter,
370
- };
371
-
372
- this.lazyLoad.emit(lazyLoadEvent);
373
- }
374
-
375
- private updateFilter() {
376
- this.fireLazyLoad();
377
- }
378
-
379
- private getSorts(): Sort[] {
380
- return this.tableColumns
381
- .filter((x) => x.sortable && x.sortDirection)
382
- .map((x) => ({
383
- field: x.id,
384
- direction: <SortDirectionType>x.sortDirection,
385
- }));
386
- }
387
- }
@@ -1,17 +0,0 @@
1
- import { SortDirection, SortDirectionType } from '@verisoft/core';
2
-
3
- export function getNextSortDirection(
4
- sortDirection: SortDirectionType | undefined,
5
- isNullable = false
6
- ): SortDirectionType | undefined {
7
- return isNullable && sortDirection === SortDirection.desc
8
- ? undefined
9
- : !sortDirection || sortDirection === SortDirection.desc
10
- ? SortDirection.asc
11
- : SortDirection.desc;
12
- }
13
- export function createCustomRoute<T>(row: T, entityKey?: string, customRoute?: string) {
14
- return customRoute && entityKey
15
- ? customRoute + (row as { [key: string]: string })[entityKey]
16
- : undefined;
17
- }
@@ -1,12 +0,0 @@
1
- import { SortDirection, SortDirectionType } from '@verisoft/core';
2
-
3
- export function getNextSortDirection(
4
- sortDirection: SortDirectionType | undefined,
5
- isNullable = false
6
- ): SortDirectionType | undefined {
7
- return isNullable && sortDirection === SortDirection.desc
8
- ? undefined
9
- : !sortDirection || sortDirection === SortDirection.desc
10
- ? SortDirection.asc
11
- : SortDirection.desc;
12
- }
@@ -1 +0,0 @@
1
- export * from './textarea.component';
@@ -1,50 +0,0 @@
1
- <gov-form-control class="mb-3">
2
- @if (label) {
3
- <gov-form-label
4
- [slot]="labelSlot"
5
- [size]="size | govSize"
6
- >
7
- {{ label | translate }}
8
- </gov-form-label>
9
- }
10
- <gov-form-group>
11
- <gov-form-input [type]="type"
12
- [formControl]="formControl"
13
- [minlength]="minlength"
14
- [maxlength]="maxlength"
15
- [size]='size | govSize'
16
- [name]='name'
17
- [role]='role'
18
- [required]="required"
19
- [readonly]="readonly"
20
- [invalid]="ngControl?.errors ? true : false"
21
- [multiline]="true"
22
- [rows]="rows"
23
- [cols]="cols"
24
- >
25
- @if (icon) {
26
- <gov-icon
27
- [name]="icon"
28
- [slot]="iconPos === 'left' ? 'icon-start' : 'icon-end'"
29
- />
30
- } @if (prefix) {
31
- <p slot="prefix">
32
- {{ prefix }}
33
- </p>
34
- } @if (sufix) {
35
- <p slot="sufix">
36
- {{ sufix }}
37
- </p>
38
- }
39
- </gov-form-input>
40
- </gov-form-group>
41
- <v-validation-message [ngControl]="ngControl"></v-validation-message>
42
- @if (message) {
43
- <gov-form-message
44
- [slot]="messageSlot"
45
- color="neutral"
46
- >
47
- {{ message | translate }}
48
- </gov-form-message>
49
- }
50
- </gov-form-control>
@@ -1,78 +0,0 @@
1
- import { CommonModule } from '@angular/common';
2
- import {
3
- ChangeDetectionStrategy,
4
- Component,
5
- Input,
6
- Optional,
7
- Self,
8
- } from '@angular/core';
9
- import {
10
- ControlValueAccessor,
11
- NgControl,
12
- ReactiveFormsModule,
13
- } from '@angular/forms';
14
- import { GovDesignSystemModule } from '@gov-design-system-ce/angular';
15
- import { TranslateModule } from '@ngx-translate/core';
16
- import {
17
- TextfieldCore,
18
- FieldType,
19
- BaseFormInputComponent,
20
- FieldSizeType,
21
- FieldSize,
22
- IconPositionType,
23
- IconPosition,
24
- SlotPositionType,
25
- SlotPosition,
26
- TEXTAREA_COMPONENT_TOKEN,
27
- } from '@verisoft/ui-core';
28
- import { Icons } from '../../icons';
29
- import { GovSizePipe } from '../../pipes';
30
- import { ErrorComponent } from '../errors';
31
- @Component({
32
- selector: 'v-textarea',
33
- standalone: true,
34
- imports: [
35
- CommonModule,
36
- ReactiveFormsModule,
37
- GovDesignSystemModule,
38
- GovSizePipe,
39
- ErrorComponent,
40
- TranslateModule,
41
- ],
42
- templateUrl: './textarea.component.html',
43
- styleUrl: './textarea.component.scss',
44
- changeDetection: ChangeDetectionStrategy.OnPush,
45
- providers: [
46
- {
47
- provide: TEXTAREA_COMPONENT_TOKEN,
48
- useExisting: TextareaComponent,
49
- },
50
- ],
51
- })
52
- export class TextareaComponent
53
- extends BaseFormInputComponent
54
- implements ControlValueAccessor, TextfieldCore
55
- {
56
- @Input() floatLabel!: boolean;
57
- @Input() type = FieldType.text;
58
- @Input() minlength = 0;
59
- @Input() maxlength = 524288;
60
- @Input() prefix!: string;
61
- @Input() sufix!: string;
62
- @Input() message!: string;
63
- @Input() name! : string;
64
- @Input() role! : string;
65
- @Input() size: FieldSizeType = FieldSize.medium;
66
- @Input() icon!: string;
67
- @Input() iconPos: IconPositionType = IconPosition.right;
68
- @Input() labelSlot: SlotPositionType = SlotPosition.top;
69
- @Input() messageSlot: SlotPositionType = SlotPosition.bottom;
70
- @Input() rows = 0;
71
- @Input() cols = 0;
72
-
73
- icons = Icons;
74
-
75
- constructor(@Optional() @Self() ngControl: NgControl) {
76
- super(ngControl);
77
- }
78
- }
@@ -1 +0,0 @@
1
- export * from './textfield.component';
@@ -1,56 +0,0 @@
1
- <gov-form-control class="mb-3">
2
- @if (label) {
3
- <gov-form-label
4
- [slot]="labelSlot"
5
- [size]="size | govSize"
6
- >
7
- <div class="d-flex">
8
- {{ label | translate }}
9
- @if (tooltip) {
10
- <v-tooltip [message]="tooltip | translate" />
11
- }
12
- </div>
13
- </gov-form-label>
14
- }
15
- <gov-form-group>
16
- <gov-form-input
17
- [inputType]="type"
18
- [formControl]="formControl"
19
- [minlength]="minlength"
20
- [maxlength]="maxlength"
21
- [min]="min"
22
- [max]="max"
23
- [size]='size | govSize'
24
- [name]='name'
25
- [role]='role'
26
- [required]="required"
27
- [attr.disabled]="disabled ? 'true' : 'false'"
28
- [invalid]="ngControl?.errors ? true : false"
29
- [placeholder]="placeholder"
30
- >
31
- @if (icon) {
32
- <gov-icon
33
- [name]="icon"
34
- [slot]="iconPos === 'left' ? 'icon-start' : 'icon-end'"
35
- />
36
- } @if (prefix) {
37
- <p slot="prefix">
38
- {{ prefix }}
39
- </p>
40
- } @if (sufix) {
41
- <p slot="sufix">
42
- {{ sufix }}
43
- </p>
44
- }
45
- </gov-form-input>
46
- <v-validation-message [ngControl]="ngControl"></v-validation-message>
47
- @if (message) {
48
- <gov-form-message
49
- [slot]="messageSlot"
50
- color="neutral"
51
- >
52
- {{ message }}
53
- </gov-form-message>
54
- }
55
- </gov-form-group>
56
- </gov-form-control>