@updevs/components 1.0.0-alpha.9 → 1.0.0-alpha.91

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 (1154) hide show
  1. package/README.md +1 -1
  2. package/assets/styles/_core.scss +9 -0
  3. package/assets/styles/_debug.scss +49 -0
  4. package/assets/styles/_props.scss +91 -0
  5. package/assets/styles/_updevs.scss +12 -0
  6. package/assets/styles/_utilities-marketing.scss +209 -0
  7. package/assets/styles/_utilities.scss +127 -92
  8. package/assets/styles/_variables-dark.scss +8 -6
  9. package/assets/styles/_variables.scss +326 -257
  10. package/assets/styles/helpers/_index.scss +143 -0
  11. package/assets/styles/layout/_core.scss +3 -2
  12. package/assets/styles/layout/_dark.scss +40 -35
  13. package/assets/styles/layout/_footer.scss +1 -1
  14. package/assets/styles/layout/_navbar.scss +31 -19
  15. package/assets/styles/layout/_page.scss +6 -5
  16. package/assets/styles/layout/_root.scss +26 -34
  17. package/assets/styles/marketing/_browser.scss +67 -0
  18. package/assets/styles/marketing/_core.scss +8 -0
  19. package/assets/styles/marketing/_hero.scss +70 -0
  20. package/assets/styles/marketing/_pricing.scss +111 -0
  21. package/assets/styles/marketing/_sections.scss +124 -0
  22. package/assets/styles/marketing/_shape.scss +31 -0
  23. package/assets/styles/mixins/_functions.scss +53 -0
  24. package/assets/styles/mixins/_mixins.scss +9 -9
  25. package/assets/styles/ui/_accordion.scss +165 -11
  26. package/assets/styles/ui/_alerts.scss +80 -38
  27. package/assets/styles/ui/_avatars.scss +36 -9
  28. package/assets/styles/ui/_badges.scss +47 -13
  29. package/assets/styles/ui/_button-group.scss +1 -1
  30. package/assets/styles/ui/_buttons.scss +33 -37
  31. package/assets/styles/ui/_calendars.scss +2 -2
  32. package/assets/styles/ui/_cards.scss +9 -0
  33. package/assets/styles/ui/_carousel.scss +1 -1
  34. package/assets/styles/ui/_charts.scss +1 -1
  35. package/assets/styles/ui/_chat.scss +38 -0
  36. package/assets/styles/ui/_close.scss +54 -1
  37. package/assets/styles/ui/_datagrid.scss +1 -1
  38. package/assets/styles/ui/_dropdowns.scss +3 -0
  39. package/assets/styles/ui/_empty.scss +0 -5
  40. package/assets/styles/ui/_flags.scss +2 -2
  41. package/assets/styles/ui/_forms.scss +33 -7
  42. package/assets/styles/ui/_grid.scss +1 -1
  43. package/assets/styles/ui/_icons.scss +1 -1
  44. package/assets/styles/ui/_images.scss +4 -0
  45. package/assets/styles/ui/_lists.scss +12 -16
  46. package/assets/styles/ui/_loaders.scss +1 -1
  47. package/assets/styles/ui/_markdown.scss +15 -4
  48. package/assets/styles/ui/_modals.scss +2 -2
  49. package/assets/styles/ui/_nav.scss +17 -3
  50. package/assets/styles/ui/_offcanvas.scss +2 -2
  51. package/assets/styles/ui/_pagination.scss +2 -0
  52. package/assets/styles/ui/_payments.scss +1 -1
  53. package/assets/styles/ui/_placeholder.scss +1 -1
  54. package/assets/styles/ui/_progress.scss +1 -1
  55. package/assets/styles/ui/_ribbons.scss +1 -0
  56. package/assets/styles/ui/_segmented.scss +101 -0
  57. package/assets/styles/ui/_signature.scss +15 -0
  58. package/assets/styles/ui/_social.scss +52 -0
  59. package/assets/styles/ui/_status.scss +1 -1
  60. package/assets/styles/ui/_steps.scss +5 -1
  61. package/assets/styles/ui/_switch-icon.scss +1 -1
  62. package/assets/styles/ui/_tables.scss +27 -1
  63. package/assets/styles/ui/_tags.scss +1 -1
  64. package/assets/styles/ui/_timeline.scss +1 -1
  65. package/assets/styles/ui/_toasts.scss +0 -1
  66. package/assets/styles/ui/_tracking.scss +1 -1
  67. package/assets/styles/ui/_type.scss +169 -8
  68. package/assets/styles/ui/forms/_form-check.scss +1 -1
  69. package/assets/styles/ui/forms/_form-colorinput.scss +1 -1
  70. package/assets/styles/ui/forms/_form-custom.scss +1 -1
  71. package/assets/styles/ui/forms/_form-imagecheck.scss +6 -5
  72. package/assets/styles/ui/forms/_form-selectgroup.scss +2 -2
  73. package/assets/styles/ui/typo/_hr.scss +4 -2
  74. package/assets/styles/utils/_colors.scss +72 -11
  75. package/assets/styles/utils/_opacity.scss +1 -1
  76. package/assets/styles/utils/_scroll.scss +0 -2
  77. package/assets/styles/utils/_sizing.scss +1 -1
  78. package/assets/styles/utils/_text.scss +1 -2
  79. package/assets/styles/vendor/_apexcharts.scss +52 -0
  80. package/assets/styles/vendor/_coloris.scss +72 -0
  81. package/assets/styles/vendor/_dropzone.scss +27 -0
  82. package/assets/styles/vendor/_fslightbox.scss +13 -0
  83. package/assets/styles/vendor/_jsvectormap.scss +47 -0
  84. package/assets/styles/vendor/_litepicker.scss +69 -0
  85. package/assets/styles/vendor/_nouislider.scss +49 -0
  86. package/assets/styles/vendor/_plyr.scss +3 -0
  87. package/assets/styles/vendor/_stars-rating.scss +22 -0
  88. package/assets/styles/vendor/_tom-select.scss +81 -0
  89. package/assets/styles/vendor/_turbo.scss +3 -0
  90. package/assets/styles/vendor/_typed.scss +4 -0
  91. package/assets/styles/vendor/_wysiwyg.scss +46 -0
  92. package/badge/badge-config.model.d.ts +14 -0
  93. package/badge/badge.component.d.ts +23 -0
  94. package/badge/badge.config.d.ts +12 -0
  95. package/badge/upd-badge.module.d.ts +8 -0
  96. package/button/button.component.d.ts +61 -0
  97. package/button/upd-button.module.d.ts +10 -0
  98. package/calendar/calendar.component.d.ts +63 -0
  99. package/calendar/models/calendar-date.model.d.ts +10 -0
  100. package/calendar/models/calendar-month.model.d.ts +7 -0
  101. package/calendar/models/calendar-selected.model.d.ts +5 -0
  102. package/calendar/models/calendar-year.model.d.ts +6 -0
  103. package/calendar/models/date-range.model.d.ts +22 -0
  104. package/calendar/models/enums/calendar-view.enum.d.ts +5 -0
  105. package/calendar/models/public-api.d.ts +7 -0
  106. package/calendar/services/calendar-range-strategy.service.d.ts +35 -0
  107. package/calendar/services/calendar-signals.service.d.ts +24 -0
  108. package/calendar/upd-calendar.module.d.ts +13 -0
  109. package/card/card.component.d.ts +54 -0
  110. package/card/directives/card-actions.directive.d.ts +7 -0
  111. package/card/directives/card-footer.directive.d.ts +7 -0
  112. package/card/directives/card-header.directive.d.ts +7 -0
  113. package/card/directives/card-image.directive.d.ts +7 -0
  114. package/card/public-api.d.ts +4 -0
  115. package/card/upd-card.module.d.ts +14 -0
  116. package/drag-and-drop/drag-and-drop.component.d.ts +26 -0
  117. package/drag-and-drop/models/drag-and-drop-column.config.d.ts +8 -0
  118. package/drag-and-drop/models/drag-and-drop-column.model.d.ts +10 -0
  119. package/drag-and-drop/models/drag-and-drop-item.d.ts +7 -0
  120. package/drag-and-drop/models/drag-and-drop-item.model.d.ts +13 -0
  121. package/drag-and-drop/models/drag-and-drop.config.d.ts +6 -0
  122. package/drag-and-drop/upd-drag-and-drop.module.d.ts +9 -0
  123. package/dropdown/dropdown.component.d.ts +80 -0
  124. package/dropdown/models/dropdown-action-clicked.model.d.ts +6 -0
  125. package/dropdown/models/dropdown-item.d.ts +25 -0
  126. package/dropdown/upd-dropdown.module.d.ts +12 -0
  127. package/esm2022/badge/badge-config.model.mjs +14 -0
  128. package/esm2022/badge/badge.component.mjs +48 -0
  129. package/esm2022/badge/badge.config.mjs +2 -0
  130. package/esm2022/badge/index.mjs +2 -0
  131. package/esm2022/badge/public-api.mjs +4 -0
  132. package/esm2022/badge/upd-badge.module.mjs +24 -0
  133. package/esm2022/badge/updevs-components-badge.mjs +5 -0
  134. package/esm2022/button/button.component.mjs +157 -0
  135. package/esm2022/button/index.mjs +2 -0
  136. package/esm2022/button/public-api.mjs +3 -0
  137. package/esm2022/button/upd-button.module.mjs +32 -0
  138. package/esm2022/button/updevs-components-button.mjs +5 -0
  139. package/esm2022/calendar/calendar.component.mjs +318 -0
  140. package/esm2022/calendar/index.mjs +2 -0
  141. package/esm2022/calendar/models/calendar-date.model.mjs +2 -0
  142. package/esm2022/calendar/models/calendar-month.model.mjs +2 -0
  143. package/esm2022/calendar/models/calendar-selected.model.mjs +2 -0
  144. package/esm2022/calendar/models/calendar-user-event.model.mjs +2 -0
  145. package/esm2022/calendar/models/calendar-year.model.mjs +2 -0
  146. package/esm2022/calendar/models/date-range.model.mjs +18 -0
  147. package/esm2022/calendar/models/enums/calendar-view.enum.mjs +7 -0
  148. package/esm2022/calendar/models/public-api.mjs +8 -0
  149. package/esm2022/calendar/public-api.mjs +6 -0
  150. package/esm2022/calendar/services/calendar-range-strategy.service.mjs +99 -0
  151. package/esm2022/calendar/services/calendar-signals.service.mjs +47 -0
  152. package/esm2022/calendar/services/public-api.mjs +2 -0
  153. package/esm2022/calendar/types/calendar-view.type.mjs +2 -0
  154. package/esm2022/calendar/types/public-api.mjs +2 -0
  155. package/esm2022/calendar/upd-calendar.module.mjs +52 -0
  156. package/esm2022/calendar/updevs-components-calendar.mjs +5 -0
  157. package/esm2022/card/card.component.mjs +136 -0
  158. package/esm2022/card/directives/card-actions.directive.mjs +16 -0
  159. package/esm2022/card/directives/card-footer.directive.mjs +16 -0
  160. package/esm2022/card/directives/card-header.directive.mjs +16 -0
  161. package/esm2022/card/directives/card-image.directive.mjs +16 -0
  162. package/esm2022/card/directives/public-api.mjs +5 -0
  163. package/esm2022/card/index.mjs +2 -0
  164. package/esm2022/card/public-api.mjs +5 -0
  165. package/esm2022/card/types/card-state.type.mjs +2 -0
  166. package/esm2022/card/types/card-style.type.mjs +2 -0
  167. package/esm2022/card/types/hover-effect.type.mjs +2 -0
  168. package/esm2022/card/types/public-api.mjs +6 -0
  169. package/esm2022/card/types/ribbon-style.type.mjs +2 -0
  170. package/esm2022/card/types/status-position.type.mjs +2 -0
  171. package/esm2022/card/upd-card.module.mjs +50 -0
  172. package/esm2022/card/updevs-components-card.mjs +5 -0
  173. package/esm2022/drag-and-drop/drag-and-drop.component.mjs +134 -0
  174. package/esm2022/drag-and-drop/index.mjs +2 -0
  175. package/esm2022/drag-and-drop/models/drag-and-drop-column.config.mjs +2 -0
  176. package/esm2022/drag-and-drop/models/drag-and-drop-column.model.mjs +9 -0
  177. package/esm2022/drag-and-drop/models/drag-and-drop-item.mjs +2 -0
  178. package/esm2022/drag-and-drop/models/drag-and-drop-item.model.mjs +14 -0
  179. package/esm2022/drag-and-drop/models/drag-and-drop.config.mjs +2 -0
  180. package/esm2022/drag-and-drop/models/public-api.mjs +5 -0
  181. package/esm2022/drag-and-drop/public-api.mjs +4 -0
  182. package/esm2022/drag-and-drop/upd-drag-and-drop.module.mjs +28 -0
  183. package/esm2022/drag-and-drop/updevs-components-drag-and-drop.mjs +5 -0
  184. package/esm2022/dropdown/dropdown.component.mjs +203 -0
  185. package/esm2022/dropdown/index.mjs +2 -0
  186. package/esm2022/dropdown/models/dropdown-action-clicked.model.mjs +2 -0
  187. package/esm2022/dropdown/models/dropdown-item.mjs +2 -0
  188. package/esm2022/dropdown/models/dropdown-item.type.mjs +2 -0
  189. package/esm2022/dropdown/models/public-api.mjs +5 -0
  190. package/esm2022/dropdown/models/toolbar.type.mjs +2 -0
  191. package/esm2022/dropdown/public-api.mjs +4 -0
  192. package/esm2022/dropdown/upd-dropdown.module.mjs +40 -0
  193. package/esm2022/dropdown/updevs-components-dropdown.mjs +5 -0
  194. package/esm2022/form/components/dynamic-field/dynamic-field.component.mjs +180 -0
  195. package/esm2022/form/form.component.mjs +180 -0
  196. package/esm2022/form/index.mjs +2 -0
  197. package/esm2022/form/models/attachment-rule.model.mjs +2 -0
  198. package/esm2022/form/models/button-field.model.mjs +2 -0
  199. package/esm2022/form/models/button-group-field.model.mjs +2 -0
  200. package/esm2022/form/models/checkbox-field.model.mjs +2 -0
  201. package/esm2022/form/models/checkbox-group-field.model.mjs +2 -0
  202. package/esm2022/form/models/dynamic-field.model.mjs +2 -0
  203. package/esm2022/form/models/enums/attachment-type.enum.mjs +15 -0
  204. package/esm2022/form/models/enums/dynamic-field.type.mjs +17 -0
  205. package/esm2022/form/models/enums/public-api.mjs +3 -0
  206. package/esm2022/form/models/file-upload-field.model.mjs +2 -0
  207. package/esm2022/form/models/form-config.mjs +2 -0
  208. package/esm2022/form/models/form-row.model.mjs +2 -0
  209. package/esm2022/form/models/form-update-on.type.mjs +2 -0
  210. package/esm2022/form/models/input-field.model.mjs +2 -0
  211. package/esm2022/form/models/masked-input-field.model.mjs +2 -0
  212. package/esm2022/form/models/public-api.mjs +19 -0
  213. package/esm2022/form/models/radio-field.model.mjs +2 -0
  214. package/esm2022/form/models/radio-group-field.model.mjs +2 -0
  215. package/esm2022/form/models/select-field.model.mjs +2 -0
  216. package/esm2022/form/models/single-select-field.model.mjs +2 -0
  217. package/esm2022/form/models/textarea-field.model.mjs +2 -0
  218. package/esm2022/form/models/validator-config.mjs +2 -0
  219. package/esm2022/form/public-api.mjs +4 -0
  220. package/esm2022/form/tools/errors-helper.mjs +54 -0
  221. package/esm2022/form/upd-form.module.mjs +84 -0
  222. package/esm2022/form/updevs-components-form.mjs +5 -0
  223. package/esm2022/form-controls/abstractions/base-control.mjs +99 -0
  224. package/esm2022/form-controls/abstractions/index.mjs +2 -0
  225. package/esm2022/form-controls/abstractions/public-api.mjs +2 -0
  226. package/esm2022/form-controls/abstractions/updevs-components-form-controls-abstractions.mjs +5 -0
  227. package/esm2022/form-controls/checkbox/checkbox.component.mjs +63 -0
  228. package/esm2022/form-controls/checkbox/index.mjs +2 -0
  229. package/esm2022/form-controls/checkbox/public-api.mjs +3 -0
  230. package/esm2022/form-controls/checkbox/upd-checkbox.module.mjs +32 -0
  231. package/esm2022/form-controls/checkbox/updevs-components-form-controls-checkbox.mjs +5 -0
  232. package/esm2022/form-controls/date-picker/date-picker.component.mjs +132 -0
  233. package/esm2022/form-controls/date-picker/index.mjs +2 -0
  234. package/esm2022/form-controls/date-picker/public-api.mjs +3 -0
  235. package/esm2022/form-controls/date-picker/upd-date-picker.module.mjs +40 -0
  236. package/esm2022/form-controls/date-picker/updevs-components-form-controls-date-picker.mjs +5 -0
  237. package/esm2022/form-controls/file-upload/assets/i18n/en.json +15 -0
  238. package/esm2022/form-controls/file-upload/assets/i18n/pt.json +15 -0
  239. package/esm2022/form-controls/file-upload/file-upload-changed.event.mjs +2 -0
  240. package/esm2022/form-controls/file-upload/file-upload.component.mjs +177 -0
  241. package/esm2022/form-controls/file-upload/index.mjs +2 -0
  242. package/esm2022/form-controls/file-upload/public-api.mjs +4 -0
  243. package/esm2022/form-controls/file-upload/upd-file-upload.module.mjs +48 -0
  244. package/esm2022/form-controls/file-upload/updevs-components-form-controls-file-upload.mjs +5 -0
  245. package/esm2022/form-controls/input/directives/input-append.directive.mjs +16 -0
  246. package/esm2022/form-controls/input/directives/input-prepend.directive.mjs +16 -0
  247. package/esm2022/form-controls/input/directives/public-api.mjs +3 -0
  248. package/esm2022/form-controls/input/index.mjs +2 -0
  249. package/esm2022/form-controls/input/input.component.mjs +205 -0
  250. package/esm2022/form-controls/input/public-api.mjs +5 -0
  251. package/esm2022/form-controls/input/types/input.type.mjs +2 -0
  252. package/esm2022/form-controls/input/types/loader-position.type.mjs +2 -0
  253. package/esm2022/form-controls/input/types/public-api.mjs +3 -0
  254. package/esm2022/form-controls/input/upd-input.module.mjs +46 -0
  255. package/esm2022/form-controls/input/updevs-components-form-controls-input.mjs +5 -0
  256. package/esm2022/form-controls/radio/index.mjs +2 -0
  257. package/esm2022/form-controls/radio/public-api.mjs +3 -0
  258. package/esm2022/form-controls/radio/radio.component.mjs +62 -0
  259. package/esm2022/form-controls/radio/upd-radio.module.mjs +32 -0
  260. package/esm2022/form-controls/radio/updevs-components-form-controls-radio.mjs +5 -0
  261. package/esm2022/form-controls/select/components/multiple/select-multiple.component.mjs +109 -0
  262. package/esm2022/form-controls/select/components/single/select.component.mjs +179 -0
  263. package/esm2022/form-controls/select/index.mjs +2 -0
  264. package/esm2022/form-controls/select/models/abstractions/base-select.component.mjs +246 -0
  265. package/esm2022/form-controls/select/models/defaults.mjs +8 -0
  266. package/esm2022/form-controls/select/models/public-api.mjs +4 -0
  267. package/esm2022/form-controls/select/models/select-item.mjs +2 -0
  268. package/esm2022/form-controls/select/models/types.mjs +2 -0
  269. package/esm2022/form-controls/select/public-api.mjs +5 -0
  270. package/esm2022/form-controls/select/upd-select.module.mjs +57 -0
  271. package/esm2022/form-controls/select/updevs-components-form-controls-select.mjs +5 -0
  272. package/esm2022/form-controls/textarea/index.mjs +2 -0
  273. package/esm2022/form-controls/textarea/public-api.mjs +3 -0
  274. package/esm2022/form-controls/textarea/textarea.component.mjs +51 -0
  275. package/esm2022/form-controls/textarea/upd-textarea.module.mjs +24 -0
  276. package/esm2022/form-controls/textarea/updevs-components-form-controls-textarea.mjs +5 -0
  277. package/esm2022/form-controls/time-picker/index.mjs +2 -0
  278. package/esm2022/form-controls/time-picker/public-api.mjs +4 -0
  279. package/esm2022/form-controls/time-picker/time-picker.component.mjs +130 -0
  280. package/esm2022/form-controls/time-picker/time-selector/time-selector.component.mjs +124 -0
  281. package/esm2022/form-controls/time-picker/upd-time-picker.module.mjs +61 -0
  282. package/esm2022/form-controls/time-picker/updevs-components-form-controls-time-picker.mjs +5 -0
  283. package/esm2022/index.mjs +2 -0
  284. package/esm2022/layout/abstractions/base-page.component.mjs +23 -0
  285. package/esm2022/layout/abstractions/base.layout.mjs +31 -0
  286. package/esm2022/layout/abstractions/public-api.mjs +2 -0
  287. package/esm2022/layout/assets/i18n/en.json +27 -0
  288. package/esm2022/layout/assets/i18n/pt.json +27 -0
  289. package/esm2022/layout/index.mjs +2 -0
  290. package/esm2022/layout/layouts/blank-layout/blank-layout.component.mjs +22 -0
  291. package/esm2022/layout/layouts/blank-layout/blank-layout.module.mjs +50 -0
  292. package/esm2022/layout/layouts/public-api.mjs +5 -0
  293. package/esm2022/layout/layouts/vertical-sidebar-layout/vertical-sidebar-layout.component.mjs +17 -0
  294. package/esm2022/layout/layouts/vertical-sidebar-layout/vertical-sidebar-layout.module.mjs +78 -0
  295. package/esm2022/layout/models/login-page-config.model.mjs +20 -0
  296. package/esm2022/layout/models/login-page.config.mjs +2 -0
  297. package/esm2022/layout/models/public-api.mjs +3 -0
  298. package/esm2022/layout/models/security-layout-config.model.mjs +10 -0
  299. package/esm2022/layout/models/security-layout.config.mjs +2 -0
  300. package/esm2022/layout/models/upd-layout-config.model.mjs +24 -0
  301. package/esm2022/layout/models/upd-layout.config.mjs +2 -0
  302. package/esm2022/layout/pages/auth-flow/auth-flow-routing.module.mjs +28 -0
  303. package/esm2022/layout/pages/auth-flow/auth-flow.module.mjs +73 -0
  304. package/esm2022/layout/pages/auth-flow/logged-out/logged-out.component.mjs +11 -0
  305. package/esm2022/layout/pages/auth-flow/login/login.component.mjs +110 -0
  306. package/esm2022/layout/pages/auth-flow/oauth-callback/oauth-callback.component.mjs +11 -0
  307. package/esm2022/layout/pages/auth-flow/public-api.mjs +6 -0
  308. package/esm2022/layout/pages/public-api.mjs +2 -0
  309. package/esm2022/layout/partials/footer/footer.component.mjs +52 -0
  310. package/esm2022/layout/partials/footer/footer.module.mjs +28 -0
  311. package/esm2022/layout/partials/footer/public-api.mjs +3 -0
  312. package/esm2022/layout/partials/header/header-style.type.mjs +2 -0
  313. package/esm2022/layout/partials/header/header.component.mjs +140 -0
  314. package/esm2022/layout/partials/header/header.module.mjs +40 -0
  315. package/esm2022/layout/partials/header/public-api.mjs +4 -0
  316. package/esm2022/layout/partials/page-header/page-header.component.mjs +15 -0
  317. package/esm2022/layout/partials/page-header/public-api.mjs +2 -0
  318. package/esm2022/layout/partials/public-api.mjs +5 -0
  319. package/esm2022/layout/partials/sidebar/public-api.mjs +2 -0
  320. package/esm2022/layout/partials/sidebar/sidebar.component.mjs +234 -0
  321. package/esm2022/layout/public-api.mjs +8 -0
  322. package/esm2022/layout/services/public-api.mjs +2 -0
  323. package/esm2022/layout/services/upd-layout-config.service.mjs +21 -0
  324. package/esm2022/layout/tools/layout.constants.mjs +15 -0
  325. package/esm2022/layout/upd-layout.module.mjs +47 -0
  326. package/esm2022/layout/updevs-components-layout.mjs +5 -0
  327. package/esm2022/lib/index.mjs +2 -0
  328. package/esm2022/lib/models/public-api.mjs +2 -0
  329. package/esm2022/lib/models/row-column-size.mjs +2 -0
  330. package/esm2022/lib/public-api.mjs +5 -0
  331. package/esm2022/lib/tools/column-size.helper.mjs +12 -0
  332. package/esm2022/lib/tools/public-api.mjs +2 -0
  333. package/esm2022/lib/types/component-size.type.mjs +2 -0
  334. package/esm2022/lib/types/horizontal-vertical.type.mjs +2 -0
  335. package/esm2022/lib/types/public-api.mjs +4 -0
  336. package/esm2022/lib/types/validation-status.type.mjs +2 -0
  337. package/esm2022/lib/upd-components.module.mjs +14 -0
  338. package/esm2022/link/index.mjs +2 -0
  339. package/esm2022/link/link.component.mjs +51 -0
  340. package/esm2022/link/public-api.mjs +4 -0
  341. package/esm2022/link/target.type.mjs +2 -0
  342. package/esm2022/link/upd-link.module.mjs +24 -0
  343. package/esm2022/link/updevs-components-link.mjs +5 -0
  344. package/esm2022/list/index.mjs +2 -0
  345. package/esm2022/list/list.component.mjs +114 -0
  346. package/esm2022/list/models/badge-position.type.mjs +2 -0
  347. package/esm2022/list/models/list-item.mjs +2 -0
  348. package/esm2022/list/models/list-item.model.mjs +20 -0
  349. package/esm2022/list/models/public-api.mjs +3 -0
  350. package/esm2022/list/public-api.mjs +4 -0
  351. package/esm2022/list/upd-list.module.mjs +44 -0
  352. package/esm2022/list/updevs-components-list.mjs +5 -0
  353. package/esm2022/modal/components/modal-container/modal-container.component.mjs +216 -0
  354. package/esm2022/modal/index.mjs +2 -0
  355. package/esm2022/modal/models/base.modal.mjs +14 -0
  356. package/esm2022/modal/models/modal-config.model.mjs +20 -0
  357. package/esm2022/modal/models/modal-ref.mjs +2 -0
  358. package/esm2022/modal/models/modal.config.mjs +2 -0
  359. package/esm2022/modal/models/public-api.mjs +4 -0
  360. package/esm2022/modal/public-api.mjs +4 -0
  361. package/esm2022/modal/services/modal-alert.service.mjs +99 -0
  362. package/esm2022/modal/services/modal.service.mjs +30 -0
  363. package/esm2022/modal/services/public-api.mjs +3 -0
  364. package/esm2022/modal/types/modal-footer-style.type.mjs +2 -0
  365. package/esm2022/modal/types/modal-size.type.mjs +2 -0
  366. package/esm2022/modal/upd-modal.module.mjs +90 -0
  367. package/esm2022/modal/updevs-components-modal.mjs +5 -0
  368. package/esm2022/paginator/index.mjs +2 -0
  369. package/esm2022/paginator/paginator.component.mjs +66 -0
  370. package/esm2022/paginator/public-api.mjs +3 -0
  371. package/esm2022/paginator/upd-paginator.module.mjs +47 -0
  372. package/esm2022/paginator/updevs-components-paginator.mjs +5 -0
  373. package/esm2022/popover/index.mjs +2 -0
  374. package/esm2022/popover/popover.component.mjs +65 -0
  375. package/esm2022/popover/popover.directive.mjs +120 -0
  376. package/esm2022/popover/public-api.mjs +4 -0
  377. package/esm2022/popover/upd-popover.module.mjs +29 -0
  378. package/esm2022/popover/updevs-components-popover.mjs +5 -0
  379. package/esm2022/pricing/index.mjs +2 -0
  380. package/esm2022/pricing/models/price-item-feature.model.mjs +2 -0
  381. package/esm2022/pricing/models/price-item-features-group.model.mjs +2 -0
  382. package/esm2022/pricing/models/price-item-tag.model.mjs +2 -0
  383. package/esm2022/pricing/models/price-item.model.mjs +2 -0
  384. package/esm2022/pricing/models/public-api.mjs +5 -0
  385. package/esm2022/pricing/pricing-cards/pricing-cards.component.mjs +27 -0
  386. package/esm2022/pricing/pricing-table/pricing-table.component.mjs +57 -0
  387. package/esm2022/pricing/public-api.mjs +5 -0
  388. package/esm2022/pricing/upd-pricing.module.mjs +49 -0
  389. package/esm2022/pricing/updevs-components-pricing.mjs +5 -0
  390. package/esm2022/public-api.mjs +2 -0
  391. package/esm2022/table/abstractions/base-column.model.mjs +52 -0
  392. package/esm2022/table/abstractions/base.column.mjs +84 -0
  393. package/esm2022/table/abstractions/filters-operands.service.mjs +3 -0
  394. package/esm2022/table/abstractions/public-api.mjs +3 -0
  395. package/esm2022/table/components/columns/boolean-column/boolean-column.component.mjs +26 -0
  396. package/esm2022/table/components/columns/date-time-column/date-time-column.component.mjs +13 -0
  397. package/esm2022/table/components/columns/number-column/number-column.component.mjs +13 -0
  398. package/esm2022/table/components/columns/text-column/text-column.component.mjs +31 -0
  399. package/esm2022/table/components/columns-manager/columns-manager.component.mjs +36 -0
  400. package/esm2022/table/components/filter-row/filter-row.component.mjs +114 -0
  401. package/esm2022/table/components/save-search/save-search.component.mjs +72 -0
  402. package/esm2022/table/components/search-section/search-section.component.mjs +93 -0
  403. package/esm2022/table/directives/public-api.mjs +2 -0
  404. package/esm2022/table/directives/table-column.directive.mjs +54 -0
  405. package/esm2022/table/index.mjs +2 -0
  406. package/esm2022/table/models/columns/boolean-column.model.mjs +22 -0
  407. package/esm2022/table/models/columns/custom-column.model.mjs +11 -0
  408. package/esm2022/table/models/columns/date-time-column.model.mjs +16 -0
  409. package/esm2022/table/models/columns/guid-column.model.mjs +13 -0
  410. package/esm2022/table/models/columns/image-column.model.mjs +11 -0
  411. package/esm2022/table/models/columns/number-column.model.mjs +17 -0
  412. package/esm2022/table/models/columns/public-api.mjs +8 -0
  413. package/esm2022/table/models/columns/text-column.model.mjs +11 -0
  414. package/esm2022/table/models/enums/column-type.enum.mjs +15 -0
  415. package/esm2022/table/models/enums/public-api.mjs +2 -0
  416. package/esm2022/table/models/filter-item.model.mjs +2 -0
  417. package/esm2022/table/models/filter-operand.config.mjs +2 -0
  418. package/esm2022/table/models/operands-lists/boolean-filter-operands-list.model.mjs +25 -0
  419. package/esm2022/table/models/operands-lists/date-filter-operands-list.model.mjs +25 -0
  420. package/esm2022/table/models/operands-lists/date-or-number-operands-list.config.mjs +31 -0
  421. package/esm2022/table/models/operands-lists/filter-operands-list.config.mjs +31 -0
  422. package/esm2022/table/models/operands-lists/guid-filter-operands-list.model.mjs +16 -0
  423. package/esm2022/table/models/operands-lists/number-filter-operands-list.model.mjs +25 -0
  424. package/esm2022/table/models/operands-lists/string-filter-operands-list.model.mjs +45 -0
  425. package/esm2022/table/models/public-api.mjs +5 -0
  426. package/esm2022/table/models/saved-view.model.mjs +2 -0
  427. package/esm2022/table/models/table-config.model.mjs +29 -0
  428. package/esm2022/table/models/table.config.mjs +2 -0
  429. package/esm2022/table/models/upd-table-config.model.mjs +9 -0
  430. package/esm2022/table/models/upd-table.config.mjs +2 -0
  431. package/esm2022/table/public-api.mjs +6 -0
  432. package/esm2022/table/services/default-filters-operands.service.mjs +60 -0
  433. package/esm2022/table/services/storages/saved-views.storage.mjs +56 -0
  434. package/esm2022/table/services/stores/filters-operands.store.mjs +19 -0
  435. package/esm2022/table/services/upd-table-config.service.mjs +18 -0
  436. package/esm2022/table/table.component.mjs +439 -0
  437. package/esm2022/table/tools/filters.tools.mjs +54 -0
  438. package/esm2022/table/tools/table.constants.mjs +15 -0
  439. package/esm2022/table/upd-table.module.mjs +150 -0
  440. package/esm2022/table/updevs-components-table.mjs +5 -0
  441. package/esm2022/updevs-components.mjs +5 -0
  442. package/fesm2022/updevs-components-badge.mjs +89 -0
  443. package/fesm2022/updevs-components-badge.mjs.map +1 -0
  444. package/fesm2022/updevs-components-button.mjs +193 -0
  445. package/fesm2022/updevs-components-button.mjs.map +1 -0
  446. package/fesm2022/updevs-components-calendar.mjs +582 -0
  447. package/fesm2022/updevs-components-calendar.mjs.map +1 -0
  448. package/fesm2022/updevs-components-card.mjs +238 -0
  449. package/fesm2022/updevs-components-card.mjs.map +1 -0
  450. package/fesm2022/updevs-components-drag-and-drop.mjs +185 -0
  451. package/fesm2022/updevs-components-drag-and-drop.mjs.map +1 -0
  452. package/fesm2022/updevs-components-dropdown.mjs +247 -0
  453. package/fesm2022/updevs-components-dropdown.mjs.map +1 -0
  454. package/fesm2022/updevs-components-form-controls-abstractions.mjs +106 -0
  455. package/fesm2022/updevs-components-form-controls-abstractions.mjs.map +1 -0
  456. package/fesm2022/updevs-components-form-controls-checkbox.mjs +99 -0
  457. package/fesm2022/updevs-components-form-controls-checkbox.mjs.map +1 -0
  458. package/fesm2022/updevs-components-form-controls-date-picker.mjs +175 -0
  459. package/fesm2022/updevs-components-form-controls-date-picker.mjs.map +1 -0
  460. package/fesm2022/updevs-components-form-controls-file-upload.mjs +272 -0
  461. package/fesm2022/updevs-components-form-controls-file-upload.mjs.map +1 -0
  462. package/fesm2022/updevs-components-form-controls-input.mjs +279 -0
  463. package/fesm2022/updevs-components-form-controls-input.mjs.map +1 -0
  464. package/fesm2022/updevs-components-form-controls-radio.mjs +98 -0
  465. package/fesm2022/updevs-components-form-controls-radio.mjs.map +1 -0
  466. package/fesm2022/updevs-components-form-controls-select.mjs +588 -0
  467. package/fesm2022/updevs-components-form-controls-select.mjs.map +1 -0
  468. package/fesm2022/updevs-components-form-controls-textarea.mjs +79 -0
  469. package/fesm2022/updevs-components-form-controls-textarea.mjs.map +1 -0
  470. package/fesm2022/updevs-components-form-controls-time-picker.mjs +345 -0
  471. package/fesm2022/updevs-components-form-controls-time-picker.mjs.map +1 -0
  472. package/fesm2022/updevs-components-form.mjs +562 -0
  473. package/fesm2022/updevs-components-form.mjs.map +1 -0
  474. package/fesm2022/updevs-components-layout.mjs +1052 -0
  475. package/fesm2022/updevs-components-layout.mjs.map +1 -0
  476. package/fesm2022/updevs-components-link.mjs +79 -0
  477. package/fesm2022/updevs-components-link.mjs.map +1 -0
  478. package/fesm2022/updevs-components-list.mjs +212 -0
  479. package/fesm2022/updevs-components-list.mjs.map +1 -0
  480. package/fesm2022/updevs-components-modal.mjs +504 -0
  481. package/fesm2022/updevs-components-modal.mjs.map +1 -0
  482. package/fesm2022/updevs-components-paginator.mjs +160 -0
  483. package/fesm2022/updevs-components-paginator.mjs.map +1 -0
  484. package/fesm2022/updevs-components-popover.mjs +214 -0
  485. package/fesm2022/updevs-components-popover.mjs.map +1 -0
  486. package/fesm2022/updevs-components-pricing.mjs +130 -0
  487. package/fesm2022/updevs-components-pricing.mjs.map +1 -0
  488. package/fesm2022/updevs-components-table.mjs +1771 -0
  489. package/fesm2022/updevs-components-table.mjs.map +1 -0
  490. package/fesm2022/updevs-components.mjs +33 -0
  491. package/fesm2022/updevs-components.mjs.map +1 -0
  492. package/form/components/dynamic-field/dynamic-field.component.d.ts +65 -0
  493. package/form/form.component.d.ts +64 -0
  494. package/form/models/attachment-rule.model.d.ts +35 -0
  495. package/form/models/button-field.model.d.ts +5 -0
  496. package/form/models/button-group-field.model.d.ts +5 -0
  497. package/form/models/checkbox-field.model.d.ts +4 -0
  498. package/form/models/checkbox-group-field.model.d.ts +6 -0
  499. package/form/models/dynamic-field.model.d.ts +56 -0
  500. package/form/models/enums/attachment-type.enum.d.ts +13 -0
  501. package/form/models/enums/dynamic-field.type.d.ts +15 -0
  502. package/form/models/enums/public-api.d.ts +2 -0
  503. package/form/models/file-upload-field.model.d.ts +16 -0
  504. package/form/models/form-config.d.ts +2 -0
  505. package/form/models/form-row.model.d.ts +10 -0
  506. package/form/models/form-update-on.type.d.ts +1 -0
  507. package/form/models/input-field.model.d.ts +9 -0
  508. package/form/models/masked-input-field.model.d.ts +6 -0
  509. package/form/models/public-api.d.ts +18 -0
  510. package/form/models/radio-field.model.d.ts +4 -0
  511. package/form/models/radio-group-field.model.d.ts +6 -0
  512. package/form/models/select-field.model.d.ts +29 -0
  513. package/form/models/single-select-field.model.d.ts +4 -0
  514. package/form/models/textarea-field.model.d.ts +10 -0
  515. package/form/tools/errors-helper.d.ts +11 -0
  516. package/form/upd-form.module.d.ts +22 -0
  517. package/form-controls/abstractions/base-control.d.ts +47 -0
  518. package/form-controls/abstractions/index.d.ts +2 -0
  519. package/form-controls/abstractions/public-api.d.ts +2 -0
  520. package/form-controls/checkbox/checkbox.component.d.ts +21 -0
  521. package/form-controls/checkbox/public-api.d.ts +2 -0
  522. package/form-controls/checkbox/upd-checkbox.module.d.ts +10 -0
  523. package/form-controls/date-picker/date-picker.component.d.ts +66 -0
  524. package/form-controls/date-picker/upd-date-picker.module.d.ts +12 -0
  525. package/form-controls/file-upload/file-upload-changed.event.d.ts +4 -0
  526. package/form-controls/file-upload/file-upload.component.d.ts +48 -0
  527. package/form-controls/file-upload/public-api.d.ts +3 -0
  528. package/form-controls/file-upload/upd-file-upload.module.d.ts +14 -0
  529. package/form-controls/input/directives/input-append.directive.d.ts +7 -0
  530. package/form-controls/input/directives/input-prepend.directive.d.ts +7 -0
  531. package/form-controls/input/input.component.d.ts +69 -0
  532. package/form-controls/input/upd-input.module.d.ts +13 -0
  533. package/form-controls/radio/radio.component.d.ts +20 -0
  534. package/form-controls/radio/upd-radio.module.d.ts +10 -0
  535. package/form-controls/select/components/multiple/select-multiple.component.d.ts +31 -0
  536. package/form-controls/select/components/single/select.component.d.ts +35 -0
  537. package/form-controls/select/models/abstractions/base-select.component.d.ts +88 -0
  538. package/form-controls/select/models/defaults.d.ts +8 -0
  539. package/form-controls/select/models/public-api.d.ts +3 -0
  540. package/form-controls/select/models/select-item.d.ts +25 -0
  541. package/form-controls/select/models/types.d.ts +4 -0
  542. package/form-controls/select/upd-select.module.d.ts +16 -0
  543. package/form-controls/textarea/textarea.component.d.ts +21 -0
  544. package/form-controls/textarea/upd-textarea.module.d.ts +8 -0
  545. package/form-controls/time-picker/time-picker.component.d.ts +78 -0
  546. package/form-controls/time-picker/time-selector/time-selector.component.d.ts +69 -0
  547. package/form-controls/time-picker/upd-time-picker.module.d.ts +17 -0
  548. package/index.d.ts +2 -0
  549. package/layout/abstractions/base-page.component.d.ts +12 -0
  550. package/layout/abstractions/base.layout.d.ts +15 -0
  551. package/layout/layouts/blank-layout/blank-layout.component.d.ts +9 -0
  552. package/layout/layouts/blank-layout/blank-layout.module.d.ts +15 -0
  553. package/layout/layouts/vertical-sidebar-layout/vertical-sidebar-layout.component.d.ts +6 -0
  554. package/layout/layouts/vertical-sidebar-layout/vertical-sidebar-layout.module.d.ts +21 -0
  555. package/layout/models/login-page-config.model.d.ts +46 -0
  556. package/layout/models/login-page.config.d.ts +44 -0
  557. package/layout/models/security-layout-config.model.d.ts +12 -0
  558. package/layout/models/security-layout.config.d.ts +10 -0
  559. package/layout/models/upd-layout-config.model.d.ts +48 -0
  560. package/layout/models/upd-layout.config.d.ts +46 -0
  561. package/layout/pages/auth-flow/auth-flow-routing.module.d.ts +12 -0
  562. package/layout/pages/auth-flow/auth-flow.module.d.ts +20 -0
  563. package/layout/pages/auth-flow/logged-out/logged-out.component.d.ts +5 -0
  564. package/layout/pages/auth-flow/login/login.component.d.ts +26 -0
  565. package/layout/pages/auth-flow/oauth-callback/oauth-callback.component.d.ts +5 -0
  566. package/layout/partials/footer/footer.component.d.ts +34 -0
  567. package/layout/partials/footer/footer.module.d.ts +9 -0
  568. package/layout/partials/footer/public-api.d.ts +2 -0
  569. package/layout/partials/header/header.component.d.ts +51 -0
  570. package/layout/partials/header/header.module.d.ts +12 -0
  571. package/layout/partials/header/public-api.d.ts +3 -0
  572. package/layout/partials/page-header/page-header.component.d.ts +7 -0
  573. package/layout/partials/sidebar/sidebar.component.d.ts +46 -0
  574. package/layout/services/upd-layout-config.service.d.ts +15 -0
  575. package/layout/tools/layout.constants.d.ts +15 -0
  576. package/layout/upd-layout.module.d.ts +19 -0
  577. package/lib/index.d.ts +2 -0
  578. package/lib/models/public-api.d.ts +2 -0
  579. package/lib/models/row-column-size.d.ts +23 -0
  580. package/lib/public-api.d.ts +5 -0
  581. package/lib/tools/column-size.helper.d.ts +6 -0
  582. package/lib/tools/public-api.d.ts +2 -0
  583. package/lib/types/component-size.type.d.ts +2 -0
  584. package/lib/types/horizontal-vertical.type.d.ts +2 -0
  585. package/lib/types/public-api.d.ts +4 -0
  586. package/lib/types/validation-status.type.d.ts +2 -0
  587. package/lib/upd-components.module.d.ts +7 -0
  588. package/link/link.component.d.ts +22 -0
  589. package/link/upd-link.module.d.ts +8 -0
  590. package/list/list.component.d.ts +46 -0
  591. package/list/models/list-item.d.ts +21 -0
  592. package/list/models/list-item.model.d.ts +26 -0
  593. package/list/upd-list.module.d.ts +13 -0
  594. package/modal/components/modal-container/modal-container.component.d.ts +74 -0
  595. package/modal/models/base.modal.d.ts +8 -0
  596. package/modal/models/modal-config.model.d.ts +32 -0
  597. package/modal/models/modal-ref.d.ts +6 -0
  598. package/modal/models/modal.config.d.ts +30 -0
  599. package/modal/services/modal-alert.service.d.ts +22 -0
  600. package/modal/services/modal.service.d.ts +12 -0
  601. package/modal/upd-modal.module.d.ts +18 -0
  602. package/package.json +175 -20
  603. package/paginator/paginator.component.d.ts +42 -0
  604. package/paginator/upd-paginator.module.d.ts +14 -0
  605. package/popover/popover.component.d.ts +22 -0
  606. package/popover/popover.directive.d.ts +33 -0
  607. package/popover/upd-popover.module.d.ts +9 -0
  608. package/pricing/models/price-item-feature.model.d.ts +7 -0
  609. package/pricing/models/price-item-features-group.model.d.ts +5 -0
  610. package/pricing/models/price-item-tag.model.d.ts +6 -0
  611. package/pricing/models/price-item.model.d.ts +22 -0
  612. package/pricing/models/public-api.d.ts +4 -0
  613. package/pricing/pricing-cards/pricing-cards.component.d.ts +12 -0
  614. package/pricing/pricing-table/pricing-table.component.d.ts +30 -0
  615. package/pricing/public-api.d.ts +4 -0
  616. package/pricing/upd-pricing.module.d.ts +14 -0
  617. package/public-api.d.ts +2 -0
  618. package/table/abstractions/base-column.model.d.ts +31 -0
  619. package/table/abstractions/base.column.d.ts +26 -0
  620. package/table/abstractions/filters-operands.service.d.ts +8 -0
  621. package/table/components/columns/boolean-column/boolean-column.component.d.ts +9 -0
  622. package/table/components/columns/date-time-column/date-time-column.component.d.ts +7 -0
  623. package/table/components/columns/number-column/number-column.component.d.ts +7 -0
  624. package/table/components/columns/text-column/text-column.component.d.ts +9 -0
  625. package/table/components/columns-manager/columns-manager.component.d.ts +15 -0
  626. package/table/components/filter-row/filter-row.component.d.ts +40 -0
  627. package/table/components/save-search/save-search.component.d.ts +17 -0
  628. package/table/components/search-section/search-section.component.d.ts +36 -0
  629. package/table/directives/table-column.directive.d.ts +14 -0
  630. package/table/models/columns/boolean-column.model.d.ts +15 -0
  631. package/table/models/columns/custom-column.model.d.ts +5 -0
  632. package/table/models/columns/date-time-column.model.d.ts +8 -0
  633. package/table/models/columns/guid-column.model.d.ts +4 -0
  634. package/table/models/columns/image-column.model.d.ts +6 -0
  635. package/table/models/columns/number-column.model.d.ts +8 -0
  636. package/table/models/columns/public-api.d.ts +7 -0
  637. package/table/models/columns/text-column.model.d.ts +6 -0
  638. package/table/models/enums/column-type.enum.d.ts +13 -0
  639. package/table/models/filter-item.model.d.ts +7 -0
  640. package/table/models/filter-operand.config.d.ts +9 -0
  641. package/table/models/operands-lists/boolean-filter-operands-list.model.d.ts +6 -0
  642. package/table/models/operands-lists/date-filter-operands-list.model.d.ts +6 -0
  643. package/table/models/operands-lists/date-or-number-operands-list.config.d.ts +5 -0
  644. package/table/models/operands-lists/filter-operands-list.config.d.ts +5 -0
  645. package/table/models/operands-lists/guid-filter-operands-list.model.d.ts +6 -0
  646. package/table/models/operands-lists/number-filter-operands-list.model.d.ts +6 -0
  647. package/table/models/operands-lists/string-filter-operands-list.model.d.ts +6 -0
  648. package/table/models/saved-view.model.d.ts +11 -0
  649. package/table/models/table-config.model.d.ts +33 -0
  650. package/table/models/table.config.d.ts +31 -0
  651. package/table/models/upd-table-config.model.d.ts +6 -0
  652. package/table/models/upd-table.config.d.ts +6 -0
  653. package/table/services/default-filters-operands.service.d.ts +17 -0
  654. package/table/services/storages/saved-views.storage.d.ts +19 -0
  655. package/table/services/stores/filters-operands.store.d.ts +11 -0
  656. package/table/services/upd-table-config.service.d.ts +12 -0
  657. package/table/table.component.d.ts +81 -0
  658. package/table/tools/filters.tools.d.ts +9 -0
  659. package/table/tools/table.constants.d.ts +15 -0
  660. package/table/upd-table.module.d.ts +40 -0
  661. package/.eslintrc.json +0 -39
  662. package/badge/index.ts +0 -1
  663. package/badge/ng-package.json +0 -6
  664. package/badge/src/badge-config.model.ts +0 -21
  665. package/badge/src/badge.component.html +0 -5
  666. package/badge/src/badge.component.scss +0 -1
  667. package/badge/src/badge.component.spec.ts +0 -21
  668. package/badge/src/badge.component.ts +0 -54
  669. package/badge/src/badge.config.ts +0 -13
  670. package/badge/src/upd-badge.module.ts +0 -17
  671. package/button/index.ts +0 -1
  672. package/button/ng-package.json +0 -6
  673. package/button/src/button.component.html +0 -45
  674. package/button/src/button.component.scss +0 -5
  675. package/button/src/button.component.spec.ts +0 -23
  676. package/button/src/button.component.ts +0 -176
  677. package/button/src/upd-button.module.ts +0 -21
  678. package/calendar/index.ts +0 -1
  679. package/calendar/ng-package.json +0 -6
  680. package/calendar/src/calendar.component.html +0 -34
  681. package/calendar/src/calendar.component.scss +0 -1
  682. package/calendar/src/calendar.component.spec.ts +0 -21
  683. package/calendar/src/calendar.component.ts +0 -290
  684. package/calendar/src/components/calendar-body/calendar-body.component.html +0 -75
  685. package/calendar/src/components/calendar-body/calendar-body.component.scss +0 -1
  686. package/calendar/src/components/calendar-body/calendar-body.component.spec.ts +0 -21
  687. package/calendar/src/components/calendar-body/calendar-body.component.ts +0 -665
  688. package/calendar/src/components/calendar-header/calendar-header.component.html +0 -27
  689. package/calendar/src/components/calendar-header/calendar-header.component.scss +0 -1
  690. package/calendar/src/components/calendar-header/calendar-header.component.spec.ts +0 -21
  691. package/calendar/src/components/calendar-header/calendar-header.component.ts +0 -175
  692. package/calendar/src/components/calendar-month-view/calendar-month-view.component.html +0 -19
  693. package/calendar/src/components/calendar-month-view/calendar-month-view.component.scss +0 -1
  694. package/calendar/src/components/calendar-month-view/calendar-month-view.component.spec.ts +0 -21
  695. package/calendar/src/components/calendar-month-view/calendar-month-view.component.ts +0 -540
  696. package/calendar/src/components/calendar-multi-year-view/calendar-multi-year-view.component.html +0 -1
  697. package/calendar/src/components/calendar-multi-year-view/calendar-multi-year-view.component.scss +0 -1
  698. package/calendar/src/components/calendar-multi-year-view/calendar-multi-year-view.component.spec.ts +0 -21
  699. package/calendar/src/components/calendar-multi-year-view/calendar-multi-year-view.component.ts +0 -19
  700. package/calendar/src/components/calendar-year-view/calendar-year-view.component.html +0 -1
  701. package/calendar/src/components/calendar-year-view/calendar-year-view.component.scss +0 -1
  702. package/calendar/src/components/calendar-year-view/calendar-year-view.component.spec.ts +0 -21
  703. package/calendar/src/components/calendar-year-view/calendar-year-view.component.ts +0 -17
  704. package/calendar/src/models/calendar-cell.model.ts +0 -22
  705. package/calendar/src/models/date-range.model.ts +0 -22
  706. package/calendar/src/models/public-api.ts +0 -2
  707. package/calendar/src/services/calendar-range-strategy.service.spec.ts +0 -16
  708. package/calendar/src/services/calendar-range-strategy.service.ts +0 -103
  709. package/calendar/src/services/calendar-signals.service.spec.ts +0 -16
  710. package/calendar/src/services/calendar-signals.service.ts +0 -45
  711. package/calendar/src/services/calendar.service.spec.ts +0 -16
  712. package/calendar/src/services/calendar.service.ts +0 -42
  713. package/calendar/src/tools/events-options.ts +0 -16
  714. package/calendar/src/tools/keyboard-tools.ts +0 -16
  715. package/calendar/src/tools/passive-listeners.ts +0 -36
  716. package/calendar/src/types/calendar-cell-class-function.type.ts +0 -4
  717. package/calendar/src/types/calendar-cell-css-classes.type.ts +0 -1
  718. package/calendar/src/types/modifier-key.type.ts +0 -1
  719. package/calendar/src/upd-calendar.module.ts +0 -48
  720. package/card/index.ts +0 -1
  721. package/card/ng-package.json +0 -6
  722. package/card/src/card.component.html +0 -105
  723. package/card/src/card.component.scss +0 -47
  724. package/card/src/card.component.spec.ts +0 -23
  725. package/card/src/card.component.ts +0 -112
  726. package/card/src/directives/card-actions.directive.spec.ts +0 -8
  727. package/card/src/directives/card-actions.directive.ts +0 -8
  728. package/card/src/directives/card-footer.directive.spec.ts +0 -8
  729. package/card/src/directives/card-footer.directive.ts +0 -8
  730. package/card/src/directives/card-header.directive.spec.ts +0 -8
  731. package/card/src/directives/card-header.directive.ts +0 -8
  732. package/card/src/directives/card-image.directive.spec.ts +0 -8
  733. package/card/src/directives/card-image.directive.ts +0 -8
  734. package/card/src/public-api.ts +0 -3
  735. package/card/src/upd-card.module.ts +0 -32
  736. package/drag-and-drop/index.ts +0 -1
  737. package/drag-and-drop/ng-package.json +0 -6
  738. package/drag-and-drop/src/drag-and-drop.component.html +0 -24
  739. package/drag-and-drop/src/drag-and-drop.component.scss +0 -4
  740. package/drag-and-drop/src/drag-and-drop.component.spec.ts +0 -22
  741. package/drag-and-drop/src/drag-and-drop.component.ts +0 -164
  742. package/drag-and-drop/src/models/drag-and-drop-column.config.ts +0 -10
  743. package/drag-and-drop/src/models/drag-and-drop-column.model.ts +0 -16
  744. package/drag-and-drop/src/models/drag-and-drop-item.model.ts +0 -21
  745. package/drag-and-drop/src/models/drag-and-drop-item.ts +0 -8
  746. package/drag-and-drop/src/models/drag-and-drop.config.ts +0 -7
  747. package/drag-and-drop/src/upd-drag-and-drop.module.ts +0 -19
  748. package/dropdown/index.ts +0 -1
  749. package/dropdown/ng-package.json +0 -6
  750. package/dropdown/src/dropdown.component.html +0 -70
  751. package/dropdown/src/dropdown.component.scss +0 -19
  752. package/dropdown/src/dropdown.component.spec.ts +0 -23
  753. package/dropdown/src/dropdown.component.ts +0 -233
  754. package/dropdown/src/models/dropdown-action-clicked.model.ts +0 -8
  755. package/dropdown/src/models/dropdown-item.ts +0 -26
  756. package/dropdown/src/upd-dropdown.module.ts +0 -25
  757. package/form/index.ts +0 -1
  758. package/form/ng-package.json +0 -6
  759. package/form/src/components/dynamic-field/dynamic-field.component.html +0 -83
  760. package/form/src/components/dynamic-field/dynamic-field.component.scss +0 -1
  761. package/form/src/components/dynamic-field/dynamic-field.component.spec.ts +0 -21
  762. package/form/src/components/dynamic-field/dynamic-field.component.ts +0 -102
  763. package/form/src/form.component.html +0 -26
  764. package/form/src/form.component.scss +0 -1
  765. package/form/src/form.component.spec.ts +0 -21
  766. package/form/src/form.component.ts +0 -110
  767. package/form/src/models/checkbox-field.model.ts +0 -5
  768. package/form/src/models/checkbox-group-field.model.ts +0 -8
  769. package/form/src/models/dynamic-field.model.ts +0 -32
  770. package/form/src/models/enums/dynamic-field.type.ts +0 -12
  771. package/form/src/models/enums/public-api.ts +0 -1
  772. package/form/src/models/form-config.ts +0 -3
  773. package/form/src/models/form-row.model.ts +0 -10
  774. package/form/src/models/public-api.ts +0 -5
  775. package/form/src/models/radio-field.model.ts +0 -5
  776. package/form/src/models/radio-group-field.model.ts +0 -8
  777. package/form/src/models/select-field.model.ts +0 -30
  778. package/form/src/models/single-select-field.model.ts +0 -5
  779. package/form/src/models/textarea-field.model.ts +0 -11
  780. package/form/src/tools/errors-helper.ts +0 -60
  781. package/form/src/upd-form.module.ts +0 -48
  782. package/form-controls/abstractions/index.ts +0 -1
  783. package/form-controls/abstractions/ng-package.json +0 -6
  784. package/form-controls/abstractions/src/base-control.ts +0 -34
  785. package/form-controls/abstractions/src/public-api.ts +0 -1
  786. package/form-controls/checkbox/index.ts +0 -1
  787. package/form-controls/checkbox/ng-package.json +0 -6
  788. package/form-controls/checkbox/src/checkbox.component.html +0 -34
  789. package/form-controls/checkbox/src/checkbox.component.spec.ts +0 -23
  790. package/form-controls/checkbox/src/checkbox.component.ts +0 -60
  791. package/form-controls/checkbox/src/public-api.ts +0 -3
  792. package/form-controls/checkbox/src/upd-checkbox.module.ts +0 -21
  793. package/form-controls/date-picker/index.ts +0 -1
  794. package/form-controls/date-picker/ng-package.json +0 -6
  795. package/form-controls/date-picker/src/date-picker.component.html +0 -36
  796. package/form-controls/date-picker/src/date-picker.component.scss +0 -26
  797. package/form-controls/date-picker/src/date-picker.component.spec.ts +0 -22
  798. package/form-controls/date-picker/src/date-picker.component.ts +0 -177
  799. package/form-controls/date-picker/src/upd-date-picker.module.ts +0 -25
  800. package/form-controls/input/index.ts +0 -1
  801. package/form-controls/input/ng-package.json +0 -6
  802. package/form-controls/input/src/directives/input-append.directive.spec.ts +0 -8
  803. package/form-controls/input/src/directives/input-append.directive.ts +0 -8
  804. package/form-controls/input/src/directives/input-prepend.directive.spec.ts +0 -8
  805. package/form-controls/input/src/directives/input-prepend.directive.ts +0 -8
  806. package/form-controls/input/src/input.component.html +0 -124
  807. package/form-controls/input/src/input.component.scss +0 -13
  808. package/form-controls/input/src/input.component.spec.ts +0 -23
  809. package/form-controls/input/src/input.component.ts +0 -161
  810. package/form-controls/input/src/upd-input.module.ts +0 -29
  811. package/form-controls/radio/index.ts +0 -1
  812. package/form-controls/radio/ng-package.json +0 -6
  813. package/form-controls/radio/src/radio.component.html +0 -35
  814. package/form-controls/radio/src/radio.component.scss +0 -0
  815. package/form-controls/radio/src/radio.component.spec.ts +0 -23
  816. package/form-controls/radio/src/radio.component.ts +0 -42
  817. package/form-controls/radio/src/upd-radio.module.ts +0 -21
  818. package/form-controls/select/index.ts +0 -1
  819. package/form-controls/select/ng-package.json +0 -6
  820. package/form-controls/select/src/components/multiple/select-multiple.component.html +0 -61
  821. package/form-controls/select/src/components/multiple/select-multiple.component.scss +0 -6
  822. package/form-controls/select/src/components/multiple/select-multiple.component.spec.ts +0 -21
  823. package/form-controls/select/src/components/multiple/select-multiple.component.ts +0 -80
  824. package/form-controls/select/src/components/shared.scss +0 -44
  825. package/form-controls/select/src/components/single/select.component.html +0 -118
  826. package/form-controls/select/src/components/single/select.component.scss +0 -3
  827. package/form-controls/select/src/components/single/select.component.spec.ts +0 -23
  828. package/form-controls/select/src/components/single/select.component.ts +0 -75
  829. package/form-controls/select/src/models/abstractions/base-select.component.ts +0 -286
  830. package/form-controls/select/src/models/defaults.ts +0 -9
  831. package/form-controls/select/src/models/public-api.ts +0 -2
  832. package/form-controls/select/src/models/select-item.ts +0 -26
  833. package/form-controls/select/src/upd-select.module.ts +0 -34
  834. package/form-controls/textarea/index.ts +0 -1
  835. package/form-controls/textarea/ng-package.json +0 -6
  836. package/form-controls/textarea/src/textarea.component.html +0 -13
  837. package/form-controls/textarea/src/textarea.component.scss +0 -0
  838. package/form-controls/textarea/src/textarea.component.spec.ts +0 -23
  839. package/form-controls/textarea/src/textarea.component.ts +0 -45
  840. package/form-controls/textarea/src/upd-textarea.module.ts +0 -17
  841. package/form-controls/time-picker/index.ts +0 -1
  842. package/form-controls/time-picker/ng-package.json +0 -6
  843. package/form-controls/time-picker/src/time-picker.component.html +0 -17
  844. package/form-controls/time-picker/src/time-picker.component.scss +0 -10
  845. package/form-controls/time-picker/src/time-picker.component.spec.ts +0 -21
  846. package/form-controls/time-picker/src/time-picker.component.ts +0 -110
  847. package/form-controls/time-picker/src/time-selector/time-selector.component.html +0 -50
  848. package/form-controls/time-picker/src/time-selector/time-selector.component.scss +0 -47
  849. package/form-controls/time-picker/src/time-selector/time-selector.component.spec.ts +0 -21
  850. package/form-controls/time-picker/src/time-selector/time-selector.component.ts +0 -107
  851. package/form-controls/time-picker/src/upd-time-picker.module.ts +0 -39
  852. package/jest.config.ts +0 -22
  853. package/layout/index.ts +0 -1
  854. package/layout/ng-package.json +0 -6
  855. package/layout/src/abstractions/base-page.component.ts +0 -16
  856. package/layout/src/abstractions/base.layout.ts +0 -27
  857. package/layout/src/assets/i18n/en.json +0 -20
  858. package/layout/src/assets/i18n/pt.json +0 -20
  859. package/layout/src/layouts/blank-layout/blank-layout.component.html +0 -1
  860. package/layout/src/layouts/blank-layout/blank-layout.component.scss +0 -0
  861. package/layout/src/layouts/blank-layout/blank-layout.component.spec.ts +0 -23
  862. package/layout/src/layouts/blank-layout/blank-layout.component.ts +0 -10
  863. package/layout/src/layouts/blank-layout/blank-layout.module.ts +0 -17
  864. package/layout/src/layouts/vertical-sidebar-layout/vertical-sidebar-layout.component.html +0 -16
  865. package/layout/src/layouts/vertical-sidebar-layout/vertical-sidebar-layout.component.scss +0 -0
  866. package/layout/src/layouts/vertical-sidebar-layout/vertical-sidebar-layout.component.spec.ts +0 -23
  867. package/layout/src/layouts/vertical-sidebar-layout/vertical-sidebar-layout.component.ts +0 -30
  868. package/layout/src/layouts/vertical-sidebar-layout/vertical-sidebar-layout.module.ts +0 -51
  869. package/layout/src/models/login-page-config.model.ts +0 -57
  870. package/layout/src/models/login-page.config.ts +0 -42
  871. package/layout/src/models/security-layout-config.model.ts +0 -16
  872. package/layout/src/models/security-layout.config.ts +0 -11
  873. package/layout/src/models/upd-layout-config.model.ts +0 -69
  874. package/layout/src/models/upd-layout.config.ts +0 -47
  875. package/layout/src/pages/auth-flow/auth-flow-routing.module.ts +0 -21
  876. package/layout/src/pages/auth-flow/auth-flow.module.ts +0 -40
  877. package/layout/src/pages/auth-flow/logged-out/logged-out.component.html +0 -1
  878. package/layout/src/pages/auth-flow/logged-out/logged-out.component.scss +0 -0
  879. package/layout/src/pages/auth-flow/logged-out/logged-out.component.spec.ts +0 -23
  880. package/layout/src/pages/auth-flow/logged-out/logged-out.component.ts +0 -10
  881. package/layout/src/pages/auth-flow/login/login.component.html +0 -103
  882. package/layout/src/pages/auth-flow/login/login.component.scss +0 -0
  883. package/layout/src/pages/auth-flow/login/login.component.spec.ts +0 -23
  884. package/layout/src/pages/auth-flow/login/login.component.ts +0 -97
  885. package/layout/src/pages/auth-flow/oauth-callback/oauth-callback.component.html +0 -1
  886. package/layout/src/pages/auth-flow/oauth-callback/oauth-callback.component.scss +0 -0
  887. package/layout/src/pages/auth-flow/oauth-callback/oauth-callback.component.spec.ts +0 -23
  888. package/layout/src/pages/auth-flow/oauth-callback/oauth-callback.component.ts +0 -10
  889. package/layout/src/partials/footer/footer-copyright.directive.spec.ts +0 -8
  890. package/layout/src/partials/footer/footer-copyright.directive.ts +0 -6
  891. package/layout/src/partials/footer/footer.component.html +0 -35
  892. package/layout/src/partials/footer/footer.component.scss +0 -0
  893. package/layout/src/partials/footer/footer.component.spec.ts +0 -23
  894. package/layout/src/partials/footer/footer.component.ts +0 -64
  895. package/layout/src/partials/footer/public-api.ts +0 -2
  896. package/layout/src/partials/header/header.component.html +0 -173
  897. package/layout/src/partials/header/header.component.scss +0 -0
  898. package/layout/src/partials/header/header.component.spec.ts +0 -23
  899. package/layout/src/partials/header/header.component.ts +0 -82
  900. package/layout/src/partials/header/public-api.ts +0 -2
  901. package/layout/src/partials/page-header/page-header.component.html +0 -23
  902. package/layout/src/partials/page-header/page-header.component.scss +0 -0
  903. package/layout/src/partials/page-header/page-header.component.spec.ts +0 -23
  904. package/layout/src/partials/page-header/page-header.component.ts +0 -11
  905. package/layout/src/partials/sidebar/sidebar.component.html +0 -72
  906. package/layout/src/partials/sidebar/sidebar.component.scss +0 -0
  907. package/layout/src/partials/sidebar/sidebar.component.spec.ts +0 -23
  908. package/layout/src/partials/sidebar/sidebar.component.ts +0 -129
  909. package/layout/src/services/upd-layout-config.service.spec.ts +0 -16
  910. package/layout/src/services/upd-layout-config.service.ts +0 -20
  911. package/layout/src/tools/layout.constants.ts +0 -18
  912. package/layout/src/upd-layout.module.ts +0 -34
  913. package/link/index.ts +0 -1
  914. package/link/ng-package.json +0 -6
  915. package/link/src/link.component.html +0 -3
  916. package/link/src/link.component.scss +0 -3
  917. package/link/src/link.component.spec.ts +0 -23
  918. package/link/src/link.component.ts +0 -48
  919. package/link/src/upd-link.module.ts +0 -17
  920. package/list/index.ts +0 -1
  921. package/list/ng-package.json +0 -6
  922. package/list/src/list.component.html +0 -67
  923. package/list/src/list.component.scss +0 -22
  924. package/list/src/list.component.spec.ts +0 -23
  925. package/list/src/list.component.ts +0 -129
  926. package/list/src/models/list-item.model.ts +0 -36
  927. package/list/src/models/list-item.ts +0 -22
  928. package/list/src/upd-list.module.ts +0 -30
  929. package/modal/index.ts +0 -1
  930. package/modal/ng-package.json +0 -6
  931. package/modal/src/components/modal-container/modal-container.component.html +0 -116
  932. package/modal/src/components/modal-container/modal-container.component.scss +0 -1
  933. package/modal/src/components/modal-container/modal-container.component.spec.ts +0 -22
  934. package/modal/src/components/modal-container/modal-container.component.ts +0 -243
  935. package/modal/src/models/base.modal.ts +0 -9
  936. package/modal/src/models/modal-config.model.ts +0 -39
  937. package/modal/src/models/modal-ref.ts +0 -9
  938. package/modal/src/models/modal.config.ts +0 -32
  939. package/modal/src/services/modal-alert.service.spec.ts +0 -16
  940. package/modal/src/services/modal-alert.service.ts +0 -167
  941. package/modal/src/services/modal.service.spec.ts +0 -16
  942. package/modal/src/services/modal.service.ts +0 -38
  943. package/modal/src/upd-modal.module.ts +0 -74
  944. package/ng-package.json +0 -10
  945. package/paginator/index.ts +0 -1
  946. package/paginator/ng-package.json +0 -6
  947. package/paginator/src/paginator.component.html +0 -83
  948. package/paginator/src/paginator.component.scss +0 -1
  949. package/paginator/src/paginator.component.spec.ts +0 -21
  950. package/paginator/src/paginator.component.ts +0 -62
  951. package/paginator/src/upd-paginator.module.ts +0 -32
  952. package/popover/index.ts +0 -1
  953. package/popover/ng-package.json +0 -6
  954. package/popover/src/popover.component.html +0 -21
  955. package/popover/src/popover.component.scss +0 -8
  956. package/popover/src/popover.component.spec.ts +0 -23
  957. package/popover/src/popover.component.ts +0 -53
  958. package/popover/src/popover.directive.spec.ts +0 -8
  959. package/popover/src/popover.directive.ts +0 -125
  960. package/popover/src/upd-popover.module.ts +0 -20
  961. package/project.json +0 -40
  962. package/src/lib/models/public-api.ts +0 -1
  963. package/src/lib/models/row-column-size.ts +0 -5
  964. package/src/lib/public-api.ts +0 -4
  965. package/src/lib/tools/column-size.helper.ts +0 -19
  966. package/src/lib/tools/public-api.ts +0 -1
  967. package/src/lib/types/component-size.type.ts +0 -1
  968. package/src/lib/types/horizontal-vertical.type.ts +0 -1
  969. package/src/lib/types/public-api.ts +0 -3
  970. package/src/lib/types/validation-status.type.ts +0 -1
  971. package/src/lib/upd-components.module.ts +0 -6
  972. package/src/public-api.ts +0 -1
  973. package/src/test-setup.ts +0 -8
  974. package/table/index.ts +0 -1
  975. package/table/ng-package.json +0 -6
  976. package/table/src/abstractions/base-column.model.ts +0 -69
  977. package/table/src/abstractions/base.column.ts +0 -99
  978. package/table/src/abstractions/filters-operands.service.ts +0 -10
  979. package/table/src/components/columns/boolean-column/boolean-column.component.html +0 -15
  980. package/table/src/components/columns/boolean-column/boolean-column.component.scss +0 -1
  981. package/table/src/components/columns/boolean-column/boolean-column.component.spec.ts +0 -21
  982. package/table/src/components/columns/boolean-column/boolean-column.component.ts +0 -26
  983. package/table/src/components/columns/date-time-column/date-time-column.component.html +0 -1
  984. package/table/src/components/columns/date-time-column/date-time-column.component.scss +0 -1
  985. package/table/src/components/columns/date-time-column/date-time-column.component.spec.ts +0 -21
  986. package/table/src/components/columns/date-time-column/date-time-column.component.ts +0 -11
  987. package/table/src/components/columns/number-column/number-column.component.html +0 -1
  988. package/table/src/components/columns/number-column/number-column.component.scss +0 -1
  989. package/table/src/components/columns/number-column/number-column.component.spec.ts +0 -21
  990. package/table/src/components/columns/number-column/number-column.component.ts +0 -11
  991. package/table/src/components/columns/public-api.ts +0 -0
  992. package/table/src/components/columns/text-column/text-column.component.html +0 -1
  993. package/table/src/components/columns/text-column/text-column.component.scss +0 -1
  994. package/table/src/components/columns/text-column/text-column.component.spec.ts +0 -21
  995. package/table/src/components/columns/text-column/text-column.component.ts +0 -31
  996. package/table/src/components/columns-manager/columns-manager.component.html +0 -3
  997. package/table/src/components/columns-manager/columns-manager.component.scss +0 -1
  998. package/table/src/components/columns-manager/columns-manager.component.spec.ts +0 -21
  999. package/table/src/components/columns-manager/columns-manager.component.ts +0 -37
  1000. package/table/src/components/filter-row/filter-row.component.html +0 -29
  1001. package/table/src/components/filter-row/filter-row.component.scss +0 -1
  1002. package/table/src/components/filter-row/filter-row.component.spec.ts +0 -21
  1003. package/table/src/components/filter-row/filter-row.component.ts +0 -127
  1004. package/table/src/components/public-api.ts +0 -0
  1005. package/table/src/components/save-search/save-search.component.html +0 -16
  1006. package/table/src/components/save-search/save-search.component.scss +0 -1
  1007. package/table/src/components/save-search/save-search.component.spec.ts +0 -21
  1008. package/table/src/components/save-search/save-search.component.ts +0 -73
  1009. package/table/src/components/search-section/search-section.component.html +0 -37
  1010. package/table/src/components/search-section/search-section.component.scss +0 -1
  1011. package/table/src/components/search-section/search-section.component.spec.ts +0 -21
  1012. package/table/src/components/search-section/search-section.component.ts +0 -111
  1013. package/table/src/directives/table-column.directive.spec.ts +0 -8
  1014. package/table/src/directives/table-column.directive.ts +0 -52
  1015. package/table/src/index.ts +0 -1
  1016. package/table/src/models/columns/boolean-column.model.ts +0 -29
  1017. package/table/src/models/columns/date-time-column.model.ts +0 -20
  1018. package/table/src/models/columns/guid-column.model.ts +0 -16
  1019. package/table/src/models/columns/image-column.model.ts +0 -15
  1020. package/table/src/models/columns/number-column.model.ts +0 -19
  1021. package/table/src/models/columns/public-api.ts +0 -6
  1022. package/table/src/models/columns/text-column.model.ts +0 -16
  1023. package/table/src/models/enums/column-type.enum.ts +0 -13
  1024. package/table/src/models/filter-item.model.ts +0 -7
  1025. package/table/src/models/filter-operand.config.ts +0 -10
  1026. package/table/src/models/operands-lists/boolean-filter-operands-list.model.ts +0 -29
  1027. package/table/src/models/operands-lists/date-filter-operands-list.model.ts +0 -28
  1028. package/table/src/models/operands-lists/date-or-number-operands-list.config.ts +0 -35
  1029. package/table/src/models/operands-lists/filter-operands-list.config.ts +0 -35
  1030. package/table/src/models/operands-lists/guid-filter-operands-list.model.ts +0 -19
  1031. package/table/src/models/operands-lists/number-filter-operands-list.model.ts +0 -28
  1032. package/table/src/models/operands-lists/string-filter-operands-list.model.ts +0 -49
  1033. package/table/src/models/saved-view.model.ts +0 -13
  1034. package/table/src/models/table-config.model.ts +0 -32
  1035. package/table/src/models/table.config.ts +0 -24
  1036. package/table/src/models/upd-table-config.model.ts +0 -12
  1037. package/table/src/models/upd-table.config.ts +0 -7
  1038. package/table/src/services/default-filters-operands.service.spec.ts +0 -16
  1039. package/table/src/services/default-filters-operands.service.ts +0 -62
  1040. package/table/src/services/storages/saved-views.storage.spec.ts +0 -16
  1041. package/table/src/services/storages/saved-views.storage.ts +0 -76
  1042. package/table/src/services/stores/filters-operands.store.spec.ts +0 -16
  1043. package/table/src/services/stores/filters-operands.store.ts +0 -17
  1044. package/table/src/services/upd-table-config.service.spec.ts +0 -16
  1045. package/table/src/services/upd-table-config.service.ts +0 -17
  1046. package/table/src/table.component.html +0 -155
  1047. package/table/src/table.component.scss +0 -14
  1048. package/table/src/table.component.spec.ts +0 -21
  1049. package/table/src/table.component.ts +0 -434
  1050. package/table/src/tools/filters.tools.ts +0 -67
  1051. package/table/src/tools/table.constants.ts +0 -18
  1052. package/table/src/upd-table.module.ts +0 -104
  1053. package/tsconfig.json +0 -29
  1054. package/tsconfig.lib.json +0 -18
  1055. package/tsconfig.lib.prod.json +0 -9
  1056. package/tsconfig.spec.json +0 -16
  1057. /package/{form-controls/checkbox/src/checkbox.component.scss → assets/styles/marketing/_filters.scss} +0 -0
  1058. /package/badge/{src/index.ts → index.d.ts} +0 -0
  1059. /package/badge/{src/public-api.ts → public-api.d.ts} +0 -0
  1060. /package/button/{src/index.ts → index.d.ts} +0 -0
  1061. /package/button/{src/public-api.ts → public-api.d.ts} +0 -0
  1062. /package/calendar/{src/index.ts → index.d.ts} +0 -0
  1063. /package/calendar/{src/models/calendar-user-event.model.ts → models/calendar-user-event.model.d.ts} +0 -0
  1064. /package/calendar/{src/public-api.ts → public-api.d.ts} +0 -0
  1065. /package/calendar/{src/services/public-api.ts → services/public-api.d.ts} +0 -0
  1066. /package/calendar/{src/types/calendar-view.type.ts → types/calendar-view.type.d.ts} +0 -0
  1067. /package/calendar/{src/types/public-api.ts → types/public-api.d.ts} +0 -0
  1068. /package/card/{src/directives/public-api.ts → directives/public-api.d.ts} +0 -0
  1069. /package/card/{src/index.ts → index.d.ts} +0 -0
  1070. /package/card/{src/types/card-state.type.ts → types/card-state.type.d.ts} +0 -0
  1071. /package/card/{src/types/card-style.type.ts → types/card-style.type.d.ts} +0 -0
  1072. /package/card/{src/types/hover-effect.type.ts → types/hover-effect.type.d.ts} +0 -0
  1073. /package/card/{src/types/public-api.ts → types/public-api.d.ts} +0 -0
  1074. /package/card/{src/types/ribbon-style.type.ts → types/ribbon-style.type.d.ts} +0 -0
  1075. /package/card/{src/types/status-position.type.ts → types/status-position.type.d.ts} +0 -0
  1076. /package/drag-and-drop/{src/index.ts → index.d.ts} +0 -0
  1077. /package/drag-and-drop/{src/models/public-api.ts → models/public-api.d.ts} +0 -0
  1078. /package/drag-and-drop/{src/public-api.ts → public-api.d.ts} +0 -0
  1079. /package/dropdown/{src/index.ts → index.d.ts} +0 -0
  1080. /package/dropdown/{src/models/dropdown-item.type.ts → models/dropdown-item.type.d.ts} +0 -0
  1081. /package/dropdown/{src/models/public-api.ts → models/public-api.d.ts} +0 -0
  1082. /package/dropdown/{src/models/toolbar.type.ts → models/toolbar.type.d.ts} +0 -0
  1083. /package/dropdown/{src/public-api.ts → public-api.d.ts} +0 -0
  1084. /package/{calendar/src → esm2022/calendar}/assets/i18n/en.json +0 -0
  1085. /package/{calendar/src → esm2022/calendar}/assets/i18n/pt.json +0 -0
  1086. /package/{form/src → esm2022/form}/assets/i18n/en.json +0 -0
  1087. /package/{form/src → esm2022/form}/assets/i18n/pt.json +0 -0
  1088. /package/{form-controls/time-picker/src → esm2022/form-controls/time-picker}/assets/i18n/en.json +0 -0
  1089. /package/{form-controls/time-picker/src → esm2022/form-controls/time-picker}/assets/i18n/pt.json +0 -0
  1090. /package/{list/src → esm2022/list}/assets/i18n/en.json +0 -0
  1091. /package/{list/src → esm2022/list}/assets/i18n/pt.json +0 -0
  1092. /package/{modal/src → esm2022/modal}/assets/i18n/en.json +0 -0
  1093. /package/{modal/src → esm2022/modal}/assets/i18n/pt.json +0 -0
  1094. /package/{paginator/src → esm2022/paginator}/assets/i18n/en.json +0 -0
  1095. /package/{paginator/src → esm2022/paginator}/assets/i18n/pt.json +0 -0
  1096. /package/{table/src → esm2022/table}/assets/i18n/en.json +0 -0
  1097. /package/{table/src → esm2022/table}/assets/i18n/pt.json +0 -0
  1098. /package/form/{src/index.ts → index.d.ts} +0 -0
  1099. /package/form/{src/models/validator-config.ts → models/validator-config.d.ts} +0 -0
  1100. /package/form/{src/public-api.ts → public-api.d.ts} +0 -0
  1101. /package/form-controls/{abstractions/src/index.ts → checkbox/index.d.ts} +0 -0
  1102. /package/form-controls/{checkbox/src/index.ts → date-picker/index.d.ts} +0 -0
  1103. /package/form-controls/date-picker/{src/public-api.ts → public-api.d.ts} +0 -0
  1104. /package/form-controls/{date-picker/src/index.ts → file-upload/index.d.ts} +0 -0
  1105. /package/form-controls/input/{src/directives/public-api.ts → directives/public-api.d.ts} +0 -0
  1106. /package/form-controls/input/{src/index.ts → index.d.ts} +0 -0
  1107. /package/form-controls/input/{src/public-api.ts → public-api.d.ts} +0 -0
  1108. /package/form-controls/input/{src/types/input.type.ts → types/input.type.d.ts} +0 -0
  1109. /package/form-controls/input/{src/types/loader-position.type.ts → types/loader-position.type.d.ts} +0 -0
  1110. /package/form-controls/input/{src/types/public-api.ts → types/public-api.d.ts} +0 -0
  1111. /package/form-controls/radio/{src/index.ts → index.d.ts} +0 -0
  1112. /package/form-controls/radio/{src/public-api.ts → public-api.d.ts} +0 -0
  1113. /package/form-controls/select/{src/index.ts → index.d.ts} +0 -0
  1114. /package/form-controls/select/{src/public-api.ts → public-api.d.ts} +0 -0
  1115. /package/form-controls/textarea/{src/index.ts → index.d.ts} +0 -0
  1116. /package/form-controls/textarea/{src/public-api.ts → public-api.d.ts} +0 -0
  1117. /package/form-controls/time-picker/{src/index.ts → index.d.ts} +0 -0
  1118. /package/form-controls/time-picker/{src/public-api.ts → public-api.d.ts} +0 -0
  1119. /package/layout/{src/abstractions/public-api.ts → abstractions/public-api.d.ts} +0 -0
  1120. /package/layout/{src/index.ts → index.d.ts} +0 -0
  1121. /package/layout/{src/layouts/public-api.ts → layouts/public-api.d.ts} +0 -0
  1122. /package/layout/{src/models/public-api.ts → models/public-api.d.ts} +0 -0
  1123. /package/layout/{src/pages/auth-flow/public-api.ts → pages/auth-flow/public-api.d.ts} +0 -0
  1124. /package/layout/{src/pages/public-api.ts → pages/public-api.d.ts} +0 -0
  1125. /package/layout/{src/partials/header/header-style.type.ts → partials/header/header-style.type.d.ts} +0 -0
  1126. /package/layout/{src/partials/page-header/public-api.ts → partials/page-header/public-api.d.ts} +0 -0
  1127. /package/layout/{src/partials/public-api.ts → partials/public-api.d.ts} +0 -0
  1128. /package/layout/{src/partials/sidebar/public-api.ts → partials/sidebar/public-api.d.ts} +0 -0
  1129. /package/layout/{src/public-api.ts → public-api.d.ts} +0 -0
  1130. /package/layout/{src/services/public-api.ts → services/public-api.d.ts} +0 -0
  1131. /package/link/{src/index.ts → index.d.ts} +0 -0
  1132. /package/link/{src/public-api.ts → public-api.d.ts} +0 -0
  1133. /package/link/{src/target.type.ts → target.type.d.ts} +0 -0
  1134. /package/list/{src/index.ts → index.d.ts} +0 -0
  1135. /package/list/{src/models/badge-position.type.ts → models/badge-position.type.d.ts} +0 -0
  1136. /package/list/{src/models/public-api.ts → models/public-api.d.ts} +0 -0
  1137. /package/list/{src/public-api.ts → public-api.d.ts} +0 -0
  1138. /package/modal/{src/index.ts → index.d.ts} +0 -0
  1139. /package/modal/{src/models/public-api.ts → models/public-api.d.ts} +0 -0
  1140. /package/modal/{src/public-api.ts → public-api.d.ts} +0 -0
  1141. /package/modal/{src/services/public-api.ts → services/public-api.d.ts} +0 -0
  1142. /package/modal/{src/types/modal-footer-style.type.ts → types/modal-footer-style.type.d.ts} +0 -0
  1143. /package/modal/{src/types/modal-size.type.ts → types/modal-size.type.d.ts} +0 -0
  1144. /package/paginator/{src/index.ts → index.d.ts} +0 -0
  1145. /package/paginator/{src/public-api.ts → public-api.d.ts} +0 -0
  1146. /package/popover/{src/index.ts → index.d.ts} +0 -0
  1147. /package/popover/{src/public-api.ts → public-api.d.ts} +0 -0
  1148. /package/{src/index.ts → pricing/index.d.ts} +0 -0
  1149. /package/table/{src/abstractions/public-api.ts → abstractions/public-api.d.ts} +0 -0
  1150. /package/table/{src/directives/public-api.ts → directives/public-api.d.ts} +0 -0
  1151. /package/{src/lib/index.ts → table/index.d.ts} +0 -0
  1152. /package/table/{src/models/enums/public-api.ts → models/enums/public-api.d.ts} +0 -0
  1153. /package/table/{src/models/public-api.ts → models/public-api.d.ts} +0 -0
  1154. /package/table/{src/public-api.ts → public-api.d.ts} +0 -0
@@ -0,0 +1,1771 @@
1
+ import { DataTypeEnum, StringColumnFilter, GuidColumnFilter, NumberColumnFilter, DateColumnFilter, BooleanColumnFilter, SortDirectionEnum, ColumnSort, BaseStore, FilterOperandEnum, FilterDateOperandEnum, FilterNumberOperandEnum, FilterBooleanOperandEnum, FilterGuidOperandEnum } from '@updevs/sdk/stores';
2
+ import * as i0 from '@angular/core';
3
+ import { inject, Directive, Component, input, ViewContainerRef, effect, computed, signal, Injectable, model, InjectionToken, Inject, EventEmitter, Output, HostBinding, viewChild, ElementRef, NgModule } from '@angular/core';
4
+ import { DynamicComponentLoaderService, BaseComponent, ButtonModel } from '@updevs/sdk/layout';
5
+ import { TextService } from '@updevs/sdk';
6
+ import * as i1 from '@angular/common';
7
+ import { CommonModule } from '@angular/common';
8
+ import * as i3 from '@updevs/icons';
9
+ import { UpdIconsModule } from '@updevs/icons';
10
+ import { DateTimeFormatEnum, Tools, SelectionModel, ServerResponseService } from '@updevs/sdk/core';
11
+ import { BaseModal, ModalService, ModalAlertService, UpdModalModule } from '@updevs/components/modal';
12
+ import { Subject, distinctUntilChanged, debounceTime, tap, switchMap, catchError, of, finalize, forkJoin } from 'rxjs';
13
+ import * as i1$1 from '@jsverse/transloco';
14
+ import { TranslocoDirective } from '@jsverse/transloco';
15
+ import * as i2 from '@updevs/components/drag-and-drop';
16
+ import { UpdDragAndDropModule } from '@updevs/components/drag-and-drop';
17
+ import { FormGroup, Validators } from '@angular/forms';
18
+ import * as i3$1 from '@updevs/components/form';
19
+ import { DynamicFieldType, UpdFormModule } from '@updevs/components/form';
20
+ import { BaseByUserSignalStorage } from '@updevs/sdk/security';
21
+ import * as i4 from '@updevs/components/button';
22
+ import { UpdButtonModule } from '@updevs/components/button';
23
+ import * as i5$1 from '@updevs/components/paginator';
24
+ import { UpdPaginatorModule } from '@updevs/components/paginator';
25
+ import * as i6 from '@updevs/components/form-controls/checkbox';
26
+ import { UpdCheckboxModule } from '@updevs/components/form-controls/checkbox';
27
+ import * as i7 from '@updevs/components/dropdown';
28
+ import { UpdDropdownModule } from '@updevs/components/dropdown';
29
+ import * as i8 from '@updevs/components/popover';
30
+ import { UpdPopoverModule } from '@updevs/components/popover';
31
+ import * as i5 from '@updevs/components/form-controls/input';
32
+ import { UpdInputModule } from '@updevs/components/form-controls/input';
33
+ import * as i3$2 from '@updevs/components/form-controls/select';
34
+ import { UpdSelectModule } from '@updevs/components/form-controls/select';
35
+ import { UpdTimePickerModule } from '@updevs/components/form-controls/time-picker';
36
+ import { UpdBadgeModule } from '@updevs/components/badge';
37
+
38
+ var ColumnTypeEnum;
39
+ (function (ColumnTypeEnum) {
40
+ ColumnTypeEnum[ColumnTypeEnum["Text"] = 1] = "Text";
41
+ ColumnTypeEnum[ColumnTypeEnum["DateTime"] = 2] = "DateTime";
42
+ ColumnTypeEnum[ColumnTypeEnum["Number"] = 3] = "Number";
43
+ ColumnTypeEnum[ColumnTypeEnum["Boolean"] = 4] = "Boolean";
44
+ ColumnTypeEnum[ColumnTypeEnum["Date"] = 5] = "Date";
45
+ ColumnTypeEnum[ColumnTypeEnum["Time"] = 6] = "Time";
46
+ ColumnTypeEnum[ColumnTypeEnum["Image"] = 7] = "Image";
47
+ ColumnTypeEnum[ColumnTypeEnum["Currency"] = 8] = "Currency";
48
+ ColumnTypeEnum[ColumnTypeEnum["Custom"] = 9] = "Custom";
49
+ ColumnTypeEnum[ColumnTypeEnum["Masked"] = 10] = "Masked";
50
+ ColumnTypeEnum[ColumnTypeEnum["Guid"] = 11] = "Guid";
51
+ })(ColumnTypeEnum || (ColumnTypeEnum = {}));
52
+
53
+ class BaseColumnModel {
54
+ get dataType() {
55
+ switch (this.type) {
56
+ case ColumnTypeEnum.Boolean:
57
+ return DataTypeEnum.Boolean;
58
+ case ColumnTypeEnum.DateTime:
59
+ case ColumnTypeEnum.Date:
60
+ case ColumnTypeEnum.Time:
61
+ return DataTypeEnum.Date;
62
+ case ColumnTypeEnum.Currency:
63
+ case ColumnTypeEnum.Number:
64
+ return DataTypeEnum.Number;
65
+ case ColumnTypeEnum.Guid:
66
+ return DataTypeEnum.Guid;
67
+ default:
68
+ return DataTypeEnum.String;
69
+ }
70
+ }
71
+ get widthClass() {
72
+ if (!this.width || !!this.width.pixels) {
73
+ return '';
74
+ }
75
+ const prefix = !!this.width.gridColumn ? 'col' : 'w';
76
+ const auto = !!this.width.gridColumn && this.width.gridColumn === 0 ? 'auto' : '';
77
+ return `${prefix}-${auto || this.widthSize}`;
78
+ }
79
+ get widthSize() {
80
+ return !this.width ? 0 : this.width.gridColumn || this.width.percentage || 0;
81
+ }
82
+ get pixelsSize() {
83
+ return this.width?.pixels;
84
+ }
85
+ constructor(columnType, init) {
86
+ this.titleAlignment = 'left';
87
+ this.allowSort = true;
88
+ this.isItalic = false;
89
+ this.type = ColumnTypeEnum.Text;
90
+ this.alignment = 'left';
91
+ this.weight = 'normal';
92
+ this.overflowStrategy = 'truncate';
93
+ this.shouldSpaceAfterPrefix = true;
94
+ this.shouldSpaceBeforeSuffix = true;
95
+ this.isHidden = false;
96
+ if (!!init) {
97
+ Object.assign(this, init);
98
+ }
99
+ this.type = columnType;
100
+ }
101
+ }
102
+
103
+ class FiltersOperandsService {
104
+ }
105
+
106
+ class BaseColumn {
107
+ constructor() {
108
+ this.textService = inject(TextService);
109
+ }
110
+ static { this.alignmentClassMap = {
111
+ justify: { text: 'text-justify', nonText: 'justify-content-between' },
112
+ center: { text: 'text-center', nonText: 'justify-content-center' },
113
+ right: { text: 'text-end', nonText: 'justify-content-end' },
114
+ left: { text: 'text-start', nonText: 'justify-content-start' }
115
+ }; }
116
+ static { this.overflowClassMap = {
117
+ 'no-wrap': 'text-nowrap',
118
+ wrap: 'text-wrap',
119
+ 'word-break': 'text-break',
120
+ truncate: 'text-truncate'
121
+ }; }
122
+ static { this.decorationClassMap = {
123
+ underline: 'text-decoration-underline',
124
+ strikethrough: 'text-decoration-line-through',
125
+ none: 'text-decoration-none'
126
+ }; }
127
+ static { this.weightClassMap = {
128
+ bold: 'fw-bold',
129
+ bolder: 'fw-bolder',
130
+ light: 'fw-light',
131
+ lighter: 'fw-lighter',
132
+ normal: 'fw-normal'
133
+ }; }
134
+ get value() {
135
+ return this.record[this.config.name];
136
+ }
137
+ get isTextType() {
138
+ return this.config.type !== ColumnTypeEnum.Boolean
139
+ && this.config.type !== ColumnTypeEnum.Image
140
+ && this.config.type !== ColumnTypeEnum.Custom;
141
+ }
142
+ get prefix() {
143
+ return this.textService.getText(this.config.prefix);
144
+ }
145
+ get suffix() {
146
+ return this.textService.getText(this.config.suffix);
147
+ }
148
+ get prefixSpace() {
149
+ return !!this.prefix && this.config.shouldSpaceAfterPrefix ? ' ' : '';
150
+ }
151
+ get suffixSpace() {
152
+ return !!this.suffix && this.config.shouldSpaceBeforeSuffix ? ' ' : '';
153
+ }
154
+ get alignmentClass() {
155
+ const map = BaseColumn.alignmentClassMap[this.config.alignment] || BaseColumn.alignmentClassMap['left'];
156
+ return this.isTextType ? map.text : map.nonText;
157
+ }
158
+ get overflowClass() {
159
+ return BaseColumn.overflowClassMap[this.config.overflowStrategy] || 'text-truncate';
160
+ }
161
+ get decorationClass() {
162
+ return this.config.decoration ? BaseColumn.decorationClassMap[this.config.decoration] : '';
163
+ }
164
+ get weightClass() {
165
+ return BaseColumn.weightClassMap[this.config.weight] || 'fw-normal';
166
+ }
167
+ getRecordAs() {
168
+ return this.record;
169
+ }
170
+ getClasses() {
171
+ return [
172
+ this.alignmentClass,
173
+ this.overflowClass,
174
+ this.decorationClass,
175
+ this.weightClass,
176
+ this.config.isItalic ? 'fst-italic' : ''
177
+ ];
178
+ }
179
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: BaseColumn, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
180
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0", type: BaseColumn, ngImport: i0 }); }
181
+ }
182
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: BaseColumn, decorators: [{
183
+ type: Directive
184
+ }] });
185
+
186
+ class TextColumnComponent extends BaseColumn {
187
+ getClasses() {
188
+ return [
189
+ ...super.getClasses(),
190
+ this.transformClass
191
+ ];
192
+ }
193
+ get transformClass() {
194
+ switch (this.config.transform) {
195
+ case 'capitalize':
196
+ return 'text-capitalize';
197
+ case 'lowercase':
198
+ return 'text-lowercase';
199
+ case 'uppercase':
200
+ return 'text-uppercase';
201
+ default:
202
+ return '';
203
+ }
204
+ }
205
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: TextColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
206
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.0", type: TextColumnComponent, selector: "upd-text-column", usesInheritance: true, ngImport: i0, template: "<span [ngClass]=\"getClasses()\">{{ prefix }}{{ prefixSpace }}{{ value }}{{ suffixSpace }}{{ suffix }}</span>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
207
+ }
208
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: TextColumnComponent, decorators: [{
209
+ type: Component,
210
+ args: [{ selector: 'upd-text-column', template: "<span [ngClass]=\"getClasses()\">{{ prefix }}{{ prefixSpace }}{{ value }}{{ suffixSpace }}{{ suffix }}</span>\n" }]
211
+ }] });
212
+
213
+ class NumberColumnComponent extends BaseColumn {
214
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: NumberColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
215
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.0", type: NumberColumnComponent, selector: "upd-number-column", usesInheritance: true, ngImport: i0, template: "<span [ngClass]=\"getClasses()\">{{ prefix }}{{ prefixSpace }}{{ value | number:config.numberFormat }}{{ suffixSpace }}{{ suffix }}</span>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: i1.DecimalPipe, name: "number" }] }); }
216
+ }
217
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: NumberColumnComponent, decorators: [{
218
+ type: Component,
219
+ args: [{ selector: 'upd-number-column', template: "<span [ngClass]=\"getClasses()\">{{ prefix }}{{ prefixSpace }}{{ value | number:config.numberFormat }}{{ suffixSpace }}{{ suffix }}</span>\n" }]
220
+ }] });
221
+
222
+ class BooleanColumnComponent extends BaseColumn {
223
+ getClasses() {
224
+ return [
225
+ ...super.getClasses(),
226
+ this.colorClass
227
+ ];
228
+ }
229
+ get colorClass() {
230
+ if (!this.config.shouldColorHighlight) {
231
+ return '';
232
+ }
233
+ return `text-${(!!this.value ? this.config.trueColor : this.config.falseColor)}`;
234
+ }
235
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: BooleanColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
236
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.1.0", type: BooleanColumnComponent, selector: "upd-boolean-column", usesInheritance: true, ngImport: i0, template: "<div [ngClass]=\"getClasses()\">\n @switch (config.displayType) {\n @case ('text') {\n {{ prefix }}{{ prefixSpace }}{{ !!value ? textService.getText(config.trueText) : textService.getText(config.falseText) }}{{ suffixSpace }}{{ suffix }}\n }\n @case ('toggle') {\n {{ prefix }}{{ prefixSpace }}\n <upd-icon [tablerIcon]=\"!!value ? 'toggle-right' : 'toggle-left'\"></upd-icon>{{ suffixSpace }}{{ suffix }}\n }\n @case ('icon') {\n {{ prefix }}{{ prefixSpace }}\n <upd-icon [model]=\"!!value ? config.trueIcon : config.falseIcon\"></upd-icon>{{ suffixSpace }}{{ suffix }}\n }\n }\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i3.IconComponent, selector: "upd-icon", inputs: ["model", "wrapperClasses", "color", "colorClass", "removeDefaultClasses", "customClasses", "tablerIcon", "tablerIconWeight", "tablerIconType", "tablerIconSize", "heroIcon", "heroIconSize", "heroIconType"] }] }); }
237
+ }
238
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: BooleanColumnComponent, decorators: [{
239
+ type: Component,
240
+ args: [{ selector: 'upd-boolean-column', template: "<div [ngClass]=\"getClasses()\">\n @switch (config.displayType) {\n @case ('text') {\n {{ prefix }}{{ prefixSpace }}{{ !!value ? textService.getText(config.trueText) : textService.getText(config.falseText) }}{{ suffixSpace }}{{ suffix }}\n }\n @case ('toggle') {\n {{ prefix }}{{ prefixSpace }}\n <upd-icon [tablerIcon]=\"!!value ? 'toggle-right' : 'toggle-left'\"></upd-icon>{{ suffixSpace }}{{ suffix }}\n }\n @case ('icon') {\n {{ prefix }}{{ prefixSpace }}\n <upd-icon [model]=\"!!value ? config.trueIcon : config.falseIcon\"></upd-icon>{{ suffixSpace }}{{ suffix }}\n }\n }\n</div>\n" }]
241
+ }] });
242
+
243
+ class DateTimeColumnComponent extends BaseColumn {
244
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: DateTimeColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
245
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.0", type: DateTimeColumnComponent, selector: "upd-date-time-column", usesInheritance: true, ngImport: i0, template: "<span [ngClass]=\"getClasses()\">{{ prefix }}{{ prefixSpace }}{{ value | date:config.dateTimeFormat }}{{ suffixSpace }}{{ suffix }}</span>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: i1.DatePipe, name: "date" }] }); }
246
+ }
247
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: DateTimeColumnComponent, decorators: [{
248
+ type: Component,
249
+ args: [{ selector: 'upd-date-time-column', template: "<span [ngClass]=\"getClasses()\">{{ prefix }}{{ prefixSpace }}{{ value | date:config.dateTimeFormat }}{{ suffixSpace }}{{ suffix }}</span>\n" }]
250
+ }] });
251
+
252
+ class TableColumnDirective {
253
+ constructor() {
254
+ this.record = input.required();
255
+ this.config = input.required();
256
+ this.viewContainerRef = inject(ViewContainerRef);
257
+ this.dynamicLoaderService = inject(DynamicComponentLoaderService);
258
+ effect(() => {
259
+ const component = this.dynamicLoaderService.load(this.getComponentType(), this.viewContainerRef);
260
+ component.instance.record = this.record();
261
+ component.instance.config = this.config();
262
+ });
263
+ }
264
+ getComponentType() {
265
+ switch (this.config().type) {
266
+ case ColumnTypeEnum.Text:
267
+ // @ts-ignore
268
+ return TextColumnComponent;
269
+ case ColumnTypeEnum.Number:
270
+ // @ts-ignore
271
+ return NumberColumnComponent;
272
+ case ColumnTypeEnum.Boolean:
273
+ // @ts-ignore
274
+ return BooleanColumnComponent;
275
+ case ColumnTypeEnum.Date:
276
+ case ColumnTypeEnum.DateTime:
277
+ // @ts-ignore
278
+ return DateTimeColumnComponent;
279
+ case ColumnTypeEnum.Guid:
280
+ // @ts-ignore
281
+ return TextColumnComponent;
282
+ case ColumnTypeEnum.Custom:
283
+ return this.config().component;
284
+ default:
285
+ throw Error();
286
+ }
287
+ }
288
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: TableColumnDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
289
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.1.0", type: TableColumnDirective, selector: "[updTableColumn]", inputs: { record: { classPropertyName: "record", publicName: "record", isSignal: true, isRequired: true, transformFunction: null }, config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 }); }
290
+ }
291
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: TableColumnDirective, decorators: [{
292
+ type: Directive,
293
+ args: [{
294
+ selector: '[updTableColumn]'
295
+ }]
296
+ }], ctorParameters: () => [] });
297
+
298
+ class BooleanColumnModel extends BaseColumnModel {
299
+ constructor(init) {
300
+ super(ColumnTypeEnum.Boolean, init);
301
+ this.displayType = 'text';
302
+ this.trueText = { text: 'UpDevs.Table.Filters.Boolean.True', isTranslated: false };
303
+ this.falseText = { text: 'UpDevs.Table.Filters.Boolean.False', isTranslated: false };
304
+ this.trueIcon = { tablerIcon: 'square-check' };
305
+ this.falseIcon = { tablerIcon: 'square' };
306
+ this.trueColor = 'success';
307
+ this.falseColor = 'secondary';
308
+ this.shouldColorHighlight = true;
309
+ if (this.displayType !== 'text') {
310
+ this.alignment = 'center';
311
+ }
312
+ if (!!init) {
313
+ Object.assign(this, init);
314
+ }
315
+ }
316
+ }
317
+
318
+ class CustomColumnModel extends BaseColumnModel {
319
+ constructor(init) {
320
+ super(ColumnTypeEnum.Custom, init);
321
+ if (!!init) {
322
+ Object.assign(this, init);
323
+ }
324
+ }
325
+ }
326
+
327
+ class DateTimeColumnModel extends BaseColumnModel {
328
+ get dateTimeFormat() {
329
+ return this.customFormat || this.format;
330
+ }
331
+ constructor(init) {
332
+ super(ColumnTypeEnum.DateTime, init);
333
+ this.format = DateTimeFormatEnum.ShortDate;
334
+ if (!!init) {
335
+ Object.assign(this, init);
336
+ }
337
+ }
338
+ }
339
+
340
+ class TextColumnModel extends BaseColumnModel {
341
+ constructor(init) {
342
+ super(ColumnTypeEnum.Text, init);
343
+ if (!!init) {
344
+ Object.assign(this, init);
345
+ }
346
+ }
347
+ }
348
+
349
+ class GuidColumnModel extends TextColumnModel {
350
+ constructor(init) {
351
+ super(init);
352
+ this.transform = 'uppercase';
353
+ if (!!init) {
354
+ Object.assign(this, init);
355
+ }
356
+ this.type = ColumnTypeEnum.Guid;
357
+ }
358
+ }
359
+
360
+ class ImageColumnModel extends BaseColumnModel {
361
+ constructor(init) {
362
+ super(ColumnTypeEnum.Image, init);
363
+ if (!!init) {
364
+ Object.assign(this, init);
365
+ }
366
+ }
367
+ }
368
+
369
+ class NumberColumnModel extends BaseColumnModel {
370
+ get numberFormat() {
371
+ return `${this.minIntegerDigits}.${this.minFractionDigits}-${this.maxFractionDigits}`;
372
+ }
373
+ constructor(init) {
374
+ super(ColumnTypeEnum.Number, init);
375
+ this.minIntegerDigits = 1;
376
+ this.minFractionDigits = 0;
377
+ this.maxFractionDigits = 3;
378
+ if (!!init) {
379
+ Object.assign(this, init);
380
+ }
381
+ }
382
+ }
383
+
384
+ class TableConfigModel {
385
+ constructor(init) {
386
+ this.columns = [];
387
+ this.canSearch = true;
388
+ this.canSaveViews = true;
389
+ this.canLoadSavedViews = true;
390
+ this.canManageColumns = true;
391
+ this.shouldAutoSearch = true;
392
+ this.hasCheckboxColumn = true;
393
+ this.isResponsive = true;
394
+ this.hasStickyHeader = false;
395
+ this.data = [];
396
+ this.preSelectedItems = [];
397
+ this.searchInputDebounceTime = 300;
398
+ /**
399
+ * Actions added to each record row as a group of buttons.
400
+ */
401
+ this.customActions = [];
402
+ /**
403
+ * Actions added to the header of the table as regular buttons.
404
+ */
405
+ this.customHeaderActions = [];
406
+ this.getIdFunction = (item) => item.id;
407
+ if (!!init) {
408
+ Object.assign(this, init);
409
+ }
410
+ }
411
+ }
412
+
413
+ class ColumnsManagerComponent extends BaseModal {
414
+ constructor() {
415
+ super(...arguments);
416
+ this.config = computed(() => ({ columns: [this.visibleColumn(), this.hiddenColumn()], canReorder: true }));
417
+ this.columns = signal([]);
418
+ this.visibleColumn = computed(() => ({
419
+ name: 'visible',
420
+ title: { text: 'UpDevs.Table.VisibleColumns', isTranslated: false },
421
+ canBeEmpty: false,
422
+ items: this.data().columns.filter(c => !c.isHidden).map(c => ({
423
+ name: c.name,
424
+ text: c.title || { text: 'UpDevs.Table.ColumnTitleNotSet', isTranslated: false }
425
+ }))
426
+ }));
427
+ this.hiddenColumn = computed(() => ({
428
+ name: 'hidden',
429
+ title: { text: 'UpDevs.Table.HiddenColumns', isTranslated: false },
430
+ items: this.data().columns.filter(c => c.isHidden).map(c => ({
431
+ name: c.name,
432
+ text: c.title || { text: 'UpDevs.Table.ColumnTitleNotSet', isTranslated: false }
433
+ }))
434
+ }));
435
+ }
436
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: ColumnsManagerComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
437
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.0", type: ColumnsManagerComponent, selector: "upd-columns-manager", usesInheritance: true, ngImport: i0, template: "<ng-container *transloco=\"let t; prefix: 'UpDevs.Table.ColumnsManager'\">\n <upd-drag-and-drop [config]=\"config()\" [(columns)]=\"columns\"></upd-drag-and-drop>\n</ng-container>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: i2.DragAndDropComponent, selector: "upd-drag-and-drop", inputs: ["config", "columns"], outputs: ["columnsChange"] }] }); }
438
+ }
439
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: ColumnsManagerComponent, decorators: [{
440
+ type: Component,
441
+ args: [{ selector: 'upd-columns-manager', template: "<ng-container *transloco=\"let t; prefix: 'UpDevs.Table.ColumnsManager'\">\n <upd-drag-and-drop [config]=\"config()\" [(columns)]=\"columns\"></upd-drag-and-drop>\n</ng-container>\n" }]
442
+ }] });
443
+
444
+ class SavedViewsStorage extends BaseByUserSignalStorage {
445
+ constructor() {
446
+ super('saved-views');
447
+ this.lastStateKey = 'last-state';
448
+ }
449
+ saveView(data) {
450
+ data.id = data.id || Tools.Guid.generate();
451
+ data.userId = this._loggedUserId;
452
+ this.save(data, this._getUserKey(data.id, data.tableName));
453
+ }
454
+ saveLastState(data) {
455
+ data.id = this.lastStateKey;
456
+ this.saveView(data);
457
+ }
458
+ getById(tableName, id) {
459
+ return this.get(this._getUserKey(id, tableName));
460
+ }
461
+ getAll(tableName) {
462
+ return computed(() => {
463
+ const records = this.getAllItems();
464
+ return records().filter(sv => sv.tableName.toLowerCase() === tableName.toLowerCase()
465
+ && sv.userId === this._loggedUserId
466
+ && sv.id !== this.lastStateKey);
467
+ });
468
+ }
469
+ getLastState(tableName) {
470
+ return this.getById(tableName, this.lastStateKey);
471
+ }
472
+ resetAllIsDefault(tableName) {
473
+ const savedViews = this.getAll(tableName)();
474
+ savedViews.forEach(sv => {
475
+ sv.isDefault = false;
476
+ this.saveView(sv);
477
+ });
478
+ }
479
+ removeViews(tableName, ...keys) {
480
+ super.remove(...keys.map(k => this._getUserKey(k, tableName)));
481
+ }
482
+ getByName(tableName, name) {
483
+ const records = this.getAllItems();
484
+ return records().find(sv => sv.tableName.toLowerCase() === tableName.toLowerCase()
485
+ && sv.userId === this._loggedUserId
486
+ && sv.name?.toLowerCase() === name?.toLowerCase()
487
+ && sv.id !== this.lastStateKey);
488
+ }
489
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: SavedViewsStorage, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
490
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: SavedViewsStorage }); }
491
+ }
492
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: SavedViewsStorage, decorators: [{
493
+ type: Injectable
494
+ }], ctorParameters: () => [] });
495
+
496
+ class SaveSearchComponent extends BaseModal {
497
+ constructor() {
498
+ super(...arguments);
499
+ this.formGroup = model(new FormGroup({}));
500
+ this.formRows = [];
501
+ this.savedViewsStorage = inject(SavedViewsStorage);
502
+ this.uniqueNameValidator = () => (control) => {
503
+ const existingRecord = this.savedViewsStorage.getByName(this.data().tableName, control.value);
504
+ return !!existingRecord
505
+ ? { nameNotUnique: { errorText: { text: 'UpDevs.Table.SavedViews.NameNotUnique', isTranslated: false } } }
506
+ // eslint-disable-next-line no-null/no-null
507
+ : null;
508
+ };
509
+ }
510
+ ngOnInit() {
511
+ this.formRows = [
512
+ {
513
+ fields: [
514
+ {
515
+ name: 'name',
516
+ type: DynamicFieldType.Input,
517
+ colSize: { default: 12 },
518
+ label: { text: 'UpDevs.Table.SaveSearch.Name', isTranslated: false },
519
+ validators: [Validators.required, Validators.minLength(3), this.uniqueNameValidator()],
520
+ initValue: this.data().name
521
+ }
522
+ ]
523
+ },
524
+ {
525
+ fields: [
526
+ {
527
+ name: 'isDefault',
528
+ type: DynamicFieldType.Checkbox,
529
+ colSize: { default: 6 },
530
+ label: { text: 'UpDevs.Table.SaveSearch.IsDefault', isTranslated: false },
531
+ hint: { text: 'UpDevs.Table.SaveSearch.IsDefaultHint', isTranslated: false },
532
+ hintAsTooltip: true,
533
+ initValue: this.data().isDefault || false
534
+ }
535
+ ]
536
+ }
537
+ ];
538
+ }
539
+ cancel() {
540
+ this.modalRef().close();
541
+ }
542
+ save() {
543
+ const formValue = this.formGroup().value;
544
+ const data = { ...this.data(), name: formValue.name, isDefault: formValue.isDefault };
545
+ if (data.isDefault) {
546
+ this.savedViewsStorage.resetAllIsDefault(this.data().tableName);
547
+ }
548
+ this.savedViewsStorage.saveView(data);
549
+ this.modalRef().close();
550
+ }
551
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: SaveSearchComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
552
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.1.0", type: SaveSearchComponent, selector: "upd-save-search", inputs: { formGroup: { classPropertyName: "formGroup", publicName: "formGroup", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { formGroup: "formGroupChange" }, usesInheritance: true, ngImport: i0, template: "<ng-container *transloco=\"let t; prefix: 'UpDevs.Table.SaveSearch'\">\n <div class=\"modal-header\">\n <h5 class=\"modal-title\">{{ t('Title') }}</h5>\n </div>\n <div class=\"modal-body py-4\">\n <upd-form [rows]=\"formRows\" [hasActionsSection]=\"false\" [(formGroup)]=\"formGroup\"></upd-form>\n </div>\n <div class=\"modal-footer\">\n <upd-button colorStyle=\"secondary\" [isLink]=\"true\" (clicked)=\"cancel()\">\n {{ t('Cancel') }}\n </upd-button>\n <upd-button colorStyle=\"primary\" [iconModel]=\"{tablerIcon:'device-floppy'}\" (clicked)=\"save()\" [isDisabled]=\"!formGroup().valid\">\n {{ t('Save') }}\n </upd-button>\n </div>\n</ng-container>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: i4.ButtonComponent, selector: "upd-button", inputs: ["model", "text", "brandColorStyle", "customClasses", "isOutline", "isGhost", "isSquare", "isPill", "isIcon", "isLoading", "isList", "isFloating", "isAction", "isNavigationLink", "isLink", "shouldIgnoreBtnClass", "iconModel", "iconPosition", "isDisabled", "isActive", "badgeConfig", "colorStyle", "size", "title"], outputs: ["clicked"] }, { kind: "component", type: i3$1.FormComponent, selector: "upd-form", inputs: ["rows", "layout", "title", "hasActionsSection", "isCard", "isDisabled", "isLoading", "isSaving", "formData", "formGroup"], outputs: ["initialized", "dataLoaded", "submitted", "formDataChange", "formGroupChange"] }] }); }
553
+ }
554
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: SaveSearchComponent, decorators: [{
555
+ type: Component,
556
+ args: [{ selector: 'upd-save-search', template: "<ng-container *transloco=\"let t; prefix: 'UpDevs.Table.SaveSearch'\">\n <div class=\"modal-header\">\n <h5 class=\"modal-title\">{{ t('Title') }}</h5>\n </div>\n <div class=\"modal-body py-4\">\n <upd-form [rows]=\"formRows\" [hasActionsSection]=\"false\" [(formGroup)]=\"formGroup\"></upd-form>\n </div>\n <div class=\"modal-footer\">\n <upd-button colorStyle=\"secondary\" [isLink]=\"true\" (clicked)=\"cancel()\">\n {{ t('Cancel') }}\n </upd-button>\n <upd-button colorStyle=\"primary\" [iconModel]=\"{tablerIcon:'device-floppy'}\" (clicked)=\"save()\" [isDisabled]=\"!formGroup().valid\">\n {{ t('Save') }}\n </upd-button>\n </div>\n</ng-container>\n" }]
557
+ }] });
558
+
559
+ class FilterTools {
560
+ static convertToFilterItem(filters, operands) {
561
+ return filters.map(f => ({
562
+ name: f.column,
563
+ value: f.value,
564
+ operandConfig: operands[f.dataType].find(op => op.operand === f.operand),
565
+ isHidden: f.isHidden
566
+ }));
567
+ }
568
+ static convertToRequestFilter(filters, columns) {
569
+ return filters.map(af => {
570
+ const col = columns.find(c => c.name === af.name);
571
+ switch (col?.dataType) {
572
+ case DataTypeEnum.Boolean:
573
+ return new BooleanColumnFilter({
574
+ column: af.name,
575
+ value: af.value,
576
+ operand: !!af.operandConfig ? af.operandConfig.operand : undefined,
577
+ isHidden: af.isHidden
578
+ });
579
+ case DataTypeEnum.Date:
580
+ return new DateColumnFilter({
581
+ column: af.name,
582
+ value: af.value,
583
+ operand: !!af.operandConfig ? af.operandConfig.operand : undefined,
584
+ isHidden: af.isHidden
585
+ });
586
+ case DataTypeEnum.Number:
587
+ return new NumberColumnFilter({
588
+ column: af.name,
589
+ value: af.value,
590
+ operand: !!af.operandConfig ? af.operandConfig.operand : undefined,
591
+ isHidden: af.isHidden
592
+ });
593
+ case DataTypeEnum.Guid:
594
+ return new GuidColumnFilter({
595
+ column: af.name,
596
+ value: af.value,
597
+ operand: !!af.operandConfig ? af.operandConfig.operand : undefined,
598
+ isHidden: af.isHidden
599
+ });
600
+ default:
601
+ return new StringColumnFilter({
602
+ column: af.name,
603
+ value: af.value,
604
+ operand: !!af.operandConfig ? af.operandConfig.operand : undefined,
605
+ isHidden: af.isHidden
606
+ });
607
+ }
608
+ });
609
+ }
610
+ }
611
+
612
+ /**
613
+ * Table constants.
614
+ */
615
+ class TableConstants {
616
+ /**
617
+ * Key to inject the default configuration.
618
+ */
619
+ static { this.defaultOptionsKey = 'upd-table-default-options'; }
620
+ /**
621
+ * Injection token for the default configuration.
622
+ */
623
+ static { this.defaultOptionsInjectionToken = new InjectionToken(TableConstants.defaultOptionsKey); }
624
+ }
625
+
626
+ class UpdTableConfigModel {
627
+ constructor(init) {
628
+ this.shouldLoadFieldsFromServer = false;
629
+ if (!!init) {
630
+ Object.assign(this, init);
631
+ }
632
+ }
633
+ }
634
+
635
+ class UpdTableConfigService {
636
+ constructor(layoutConfig) {
637
+ this.config = new UpdTableConfigModel(layoutConfig);
638
+ }
639
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: UpdTableConfigService, deps: [{ token: TableConstants.defaultOptionsInjectionToken }], target: i0.ɵɵFactoryTarget.Injectable }); }
640
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: UpdTableConfigService }); }
641
+ }
642
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: UpdTableConfigService, decorators: [{
643
+ type: Injectable
644
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
645
+ type: Inject,
646
+ args: [TableConstants.defaultOptionsInjectionToken]
647
+ }] }] });
648
+
649
+ class FilterRowComponent extends BaseComponent {
650
+ constructor() {
651
+ super(...arguments);
652
+ this.wrapperClasses = 'd-flex gap-2';
653
+ this.removed = new EventEmitter();
654
+ this.DataTypeEnum = DataTypeEnum;
655
+ this.activeFilters = model.required();
656
+ this.rowIndex = input.required();
657
+ this.columns = input.required();
658
+ this.isDisabled = input.required();
659
+ this.store = input();
660
+ this.currentFilter = input();
661
+ this.currentField = signal(undefined);
662
+ this.currentOperand = signal(undefined);
663
+ this.fieldsOptions = signal([]);
664
+ this.comparisonOperatorOptions = signal([]);
665
+ this.isValueSectionEnabled = signal(true);
666
+ this.currentOperands = [];
667
+ this.configService = inject(UpdTableConfigService);
668
+ this.filtersOperandsService = inject(FiltersOperandsService);
669
+ this.textService = inject(TextService);
670
+ }
671
+ get fieldType() {
672
+ return this.currentField()?.objectData || DataTypeEnum.String;
673
+ }
674
+ get selectedField() {
675
+ const currentFilter = this.currentFilter();
676
+ return !!currentFilter?.name
677
+ ? this.fieldsOptions().find(f => f.value === currentFilter.name)
678
+ : undefined;
679
+ }
680
+ get selectedOperand() {
681
+ const currentFilter = this.currentFilter();
682
+ return !!currentFilter?.name
683
+ ? this.comparisonOperatorOptions().find(co => co.value === currentFilter.operandConfig?.operand)
684
+ : undefined;
685
+ }
686
+ get selectedValue() {
687
+ const currentFilter = this.currentFilter();
688
+ return !!currentFilter?.name ? currentFilter.value : undefined;
689
+ }
690
+ ngOnInit() {
691
+ if (!!this.store() && this.configService.config.shouldLoadFieldsFromServer) {
692
+ this.store().getFilterableFields().subscribe(fields => this.fieldsOptions.set(fields.map(f => ({ value: f.name, text: f.description, objectData: f.type }))));
693
+ }
694
+ else {
695
+ this.fieldsOptions.set(this.columns().filter(c => !!c.title).map(c => ({ value: c.name, text: this.textService.getText(c.title), objectData: c.dataType })));
696
+ }
697
+ if (!!this.selectedField) {
698
+ if (!!this.selectedOperand) {
699
+ this.onSelectOperand(this.selectedOperand);
700
+ }
701
+ this.onSelectField(this.selectedField);
702
+ }
703
+ }
704
+ onSelectField(item) {
705
+ this.currentField.set(item);
706
+ const dataType = item?.objectData;
707
+ if (!!dataType) {
708
+ this.currentOperands = this.filtersOperandsService.getOperands(dataType);
709
+ this.comparisonOperatorOptions.set(this.currentOperands.map(o => ({ value: o.operand, text: this.textService.getText(o.text), listItem: { icon: o.icon } })));
710
+ }
711
+ else {
712
+ this.comparisonOperatorOptions.set([]);
713
+ }
714
+ this.activeFilters.update(curr => {
715
+ curr[this.rowIndex()].name = this.currentField()?.value;
716
+ return [...curr];
717
+ });
718
+ }
719
+ onSelectOperand(item) {
720
+ this.currentOperand.set(this.currentOperands.find(co => co.operand === item?.value));
721
+ this.isValueSectionEnabled.set(!!this.currentOperand()?.requiresValue);
722
+ this.activeFilters.update(curr => {
723
+ curr[this.rowIndex()].operandConfig = this.currentOperand();
724
+ return [...curr];
725
+ });
726
+ }
727
+ updateValue(value) {
728
+ this.activeFilters.update(curr => {
729
+ curr[this.rowIndex()].value = value;
730
+ return [...curr];
731
+ });
732
+ }
733
+ removeFilterItem() {
734
+ this.activeFilters.update(curr => {
735
+ curr.splice(this.rowIndex(), 1);
736
+ return [...curr];
737
+ });
738
+ this.removed.emit();
739
+ }
740
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: FilterRowComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
741
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.1.0", type: FilterRowComponent, selector: "upd-filter-row", inputs: { activeFilters: { classPropertyName: "activeFilters", publicName: "activeFilters", isSignal: true, isRequired: true, transformFunction: null }, rowIndex: { classPropertyName: "rowIndex", publicName: "rowIndex", isSignal: true, isRequired: true, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: true, transformFunction: null }, isDisabled: { classPropertyName: "isDisabled", publicName: "isDisabled", isSignal: true, isRequired: true, transformFunction: null }, store: { classPropertyName: "store", publicName: "store", isSignal: true, isRequired: false, transformFunction: null }, currentFilter: { classPropertyName: "currentFilter", publicName: "currentFilter", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { removed: "removed", activeFilters: "activeFiltersChange" }, host: { properties: { "class": "this.wrapperClasses" } }, usesInheritance: true, ngImport: i0, template: "<upd-select class=\"w-100\" [isDisabled]=\"isDisabled()\" [items]=\"fieldsOptions()\" (selectedItem)=\"onSelectField($event)\"\n [value]=\"selectedField\">\n</upd-select>\n<upd-select class=\"w-100\" [isDisabled]=\"isDisabled()\" [items]=\"comparisonOperatorOptions()\" (selectedItem)=\"onSelectOperand($event)\"\n [value]=\"selectedOperand\">\n</upd-select>\n\n@if (isValueSectionEnabled()) {\n @switch (fieldType) {\n @case (DataTypeEnum.Number) {\n <upd-input wrapperClasses=\"w-100\" customClasses=\"h-100\" type=\"number\" (valueChange)=\"updateValue($event)\"\n [value]=\"selectedValue\"></upd-input>\n }\n @case (DataTypeEnum.Date) {\n\n }\n @default {\n <upd-input wrapperClasses=\"w-100\" customClasses=\"h-100\" type=\"text\" (valueChange)=\"updateValue($event)\"\n [value]=\"selectedValue\"></upd-input>\n }\n }\n} @else {\n <div class=\"w-100\">\n <input type=\"text\" class=\"form-control h-100\" disabled>\n </div>\n}\n\n<upd-button class=\"flex-shrink-1\" colorStyle=\"danger\" [isDisabled]=\"isDisabled()\" [isOutline]=\"true\" [isIcon]=\"true\"\n [iconModel]=\"{tablerIcon:'x'}\" (clicked)=\"removeFilterItem()\"></upd-button>", styles: [""], dependencies: [{ kind: "component", type: i4.ButtonComponent, selector: "upd-button", inputs: ["model", "text", "brandColorStyle", "customClasses", "isOutline", "isGhost", "isSquare", "isPill", "isIcon", "isLoading", "isList", "isFloating", "isAction", "isNavigationLink", "isLink", "shouldIgnoreBtnClass", "iconModel", "iconPosition", "isDisabled", "isActive", "badgeConfig", "colorStyle", "size", "title"], outputs: ["clicked"] }, { kind: "component", type: i5.InputComponent, selector: "upd-input", inputs: ["type", "mask", "maskConfig", "value", "size", "customClasses", "wrapperClasses", "maxLength", "isPlainText", "isReadOnly", "isLoading", "isRound", "isFlush", "isInputGroupFlat", "isPrependButton", "isAppendButton", "isFloating", "loaderPosition", "prependIconModel", "appendIconModel", "isValidationStatusLight", "layout"], outputs: ["valueChange", "blurred", "keyDown", "keyDownEsc", "keyUpEnter"] }, { kind: "component", type: i3$2.SelectComponent, selector: "upd-select", inputs: ["useSystemStyle", "shouldShowClearButton", "shouldTruncateSelectedText", "isCompact", "value"], outputs: ["valueChange", "selectedItem"] }] }); }
742
+ }
743
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: FilterRowComponent, decorators: [{
744
+ type: Component,
745
+ args: [{ selector: 'upd-filter-row', template: "<upd-select class=\"w-100\" [isDisabled]=\"isDisabled()\" [items]=\"fieldsOptions()\" (selectedItem)=\"onSelectField($event)\"\n [value]=\"selectedField\">\n</upd-select>\n<upd-select class=\"w-100\" [isDisabled]=\"isDisabled()\" [items]=\"comparisonOperatorOptions()\" (selectedItem)=\"onSelectOperand($event)\"\n [value]=\"selectedOperand\">\n</upd-select>\n\n@if (isValueSectionEnabled()) {\n @switch (fieldType) {\n @case (DataTypeEnum.Number) {\n <upd-input wrapperClasses=\"w-100\" customClasses=\"h-100\" type=\"number\" (valueChange)=\"updateValue($event)\"\n [value]=\"selectedValue\"></upd-input>\n }\n @case (DataTypeEnum.Date) {\n\n }\n @default {\n <upd-input wrapperClasses=\"w-100\" customClasses=\"h-100\" type=\"text\" (valueChange)=\"updateValue($event)\"\n [value]=\"selectedValue\"></upd-input>\n }\n }\n} @else {\n <div class=\"w-100\">\n <input type=\"text\" class=\"form-control h-100\" disabled>\n </div>\n}\n\n<upd-button class=\"flex-shrink-1\" colorStyle=\"danger\" [isDisabled]=\"isDisabled()\" [isOutline]=\"true\" [isIcon]=\"true\"\n [iconModel]=\"{tablerIcon:'x'}\" (clicked)=\"removeFilterItem()\"></upd-button>" }]
746
+ }], propDecorators: { wrapperClasses: [{
747
+ type: HostBinding,
748
+ args: ['class']
749
+ }], removed: [{
750
+ type: Output
751
+ }] } });
752
+
753
+ class SearchSectionComponent extends BaseComponent {
754
+ constructor() {
755
+ super();
756
+ this.wrapperClass = 'card-body border-bottom py-3 d-flex flex-column gap-2';
757
+ this.searchRequest = model.required();
758
+ this.hasChanges = model.required();
759
+ this.columns = input.required();
760
+ this.isSearching = input.required();
761
+ this.searchRequestSubject = input.required();
762
+ this.config = input.required();
763
+ this.actionsTpl = input();
764
+ this.activeFilters = signal([]);
765
+ this.isFilterSectionOpen = signal(false);
766
+ this.canApplyFilters = computed(() => this.activeFilters().length > 0
767
+ && this.activeFilters().every(af => !af.isHidden && !!af.name && !!af.operandConfig?.operand && (!af.operandConfig?.requiresValue || !!af.value)));
768
+ this.canPerformActions = computed(() => this.canApplyFilters() && !this.isSearching());
769
+ this.badgeConfig = computed(() => (this.searchRequest().filters?.length || 0) > 0
770
+ ? ({
771
+ isNotification: true,
772
+ isPill: true,
773
+ bgColor: 'primary-lt',
774
+ text: { text: this.searchRequest().filters.length.toString(), isTranslated: true }
775
+ })
776
+ : undefined);
777
+ this.filterSectionBtnColor = computed(() => this.isFilterSectionOpen() ? 'primary' : undefined);
778
+ this.searchSubject = new Subject();
779
+ this.filtersOperandsService = inject(FiltersOperandsService);
780
+ effect(() => {
781
+ if ((this.searchRequest().filters?.length || 0) > 0) {
782
+ this.activeFilters.set([...FilterTools.convertToFilterItem(this.searchRequest().filters || [], this.filtersOperandsService.getAllOperands())]);
783
+ }
784
+ else {
785
+ this.activeFilters.set([]);
786
+ this.isFilterSectionOpen.set(false);
787
+ }
788
+ }, { allowSignalWrites: true });
789
+ }
790
+ ngOnInit() {
791
+ const searchSub = this.searchSubject
792
+ .pipe(distinctUntilChanged(), debounceTime(this.config().searchInputDebounceTime))
793
+ .subscribe(term => this.searchRequestSubject().next({
794
+ ...this.searchRequest(),
795
+ description: term
796
+ }));
797
+ this.addSubscriptions(searchSub);
798
+ }
799
+ search() {
800
+ this.searchRequestSubject().next({
801
+ ...this.searchRequest(),
802
+ filters: FilterTools.convertToRequestFilter(this.activeFilters(), this.config().columns)
803
+ });
804
+ }
805
+ toggleFilterSection() {
806
+ if (this.activeFilters().length === 0) {
807
+ this.addEmptyFilterRow();
808
+ }
809
+ this.isFilterSectionOpen.update(isOpen => !isOpen);
810
+ }
811
+ onRowRemoved() {
812
+ if (this.activeFilters().length === 0) {
813
+ this.isFilterSectionOpen.set(false);
814
+ }
815
+ this.search();
816
+ }
817
+ addEmptyFilterRow() {
818
+ this.activeFilters.update(curr => {
819
+ curr.push({});
820
+ return [...curr];
821
+ });
822
+ }
823
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: SearchSectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
824
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.1.0", type: SearchSectionComponent, selector: "upd-search-section", inputs: { searchRequest: { classPropertyName: "searchRequest", publicName: "searchRequest", isSignal: true, isRequired: true, transformFunction: null }, hasChanges: { classPropertyName: "hasChanges", publicName: "hasChanges", isSignal: true, isRequired: true, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: true, transformFunction: null }, isSearching: { classPropertyName: "isSearching", publicName: "isSearching", isSignal: true, isRequired: true, transformFunction: null }, searchRequestSubject: { classPropertyName: "searchRequestSubject", publicName: "searchRequestSubject", isSignal: true, isRequired: true, transformFunction: null }, config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null }, actionsTpl: { classPropertyName: "actionsTpl", publicName: "actionsTpl", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { searchRequest: "searchRequestChange", hasChanges: "hasChangesChange" }, host: { properties: { "class": "this.wrapperClass" } }, usesInheritance: true, ngImport: i0, template: "<ng-container *transloco=\"let t; prefix: 'UpDevs.Table'\">\n @if (!!actionsTpl()) {\n <ng-template [ngTemplateOutlet]=\"actionsTpl()!\"></ng-template>\n }\n\n <div class=\"d-flex align-items-center gap-2\">\n <upd-input wrapperClasses=\"w-100\" [placeholder]=\"{text:'UpDevs.Table.Search', isTranslated:false}\" [isAppendButton]=\"true\"\n (valueChange)=\"searchSubject.next($event)\" [value]=\"searchRequest().description\">\n <ng-template updInputAppend>\n <upd-button [isIcon]=\"true\" [colorStyle]=\"filterSectionBtnColor()\" (clicked)=\"toggleFilterSection()\"\n [badgeConfig]=\"badgeConfig()\">\n <upd-icon [tablerIcon]=\"isFilterSectionOpen() ? 'filter-up' : 'filter-down'\" [tablerIconSize]=\"20\"></upd-icon>\n </upd-button>\n </ng-template>\n </upd-input>\n </div>\n\n @if (isFilterSectionOpen()) {\n @for (row of activeFilters(); track row; let i = $index) {\n <upd-filter-row [store]=\"config().store\" [currentFilter]=\"row\" [(activeFilters)]=\"activeFilters\" [columns]=\"columns()\"\n [rowIndex]=\"i\" (removed)=\"onRowRemoved()\" [isDisabled]=\"isSearching()\">\n </upd-filter-row>\n }\n\n <div class=\"ms-auto d-flex gap-2\">\n <upd-button customClasses=\"gap-2\" colorStyle=\"primary\" [isOutline]=\"true\" (clicked)=\"addEmptyFilterRow()\"\n [isDisabled]=\"!canPerformActions()\">\n <upd-icon tablerIcon=\"plus\" tablerIconWeight=\"bold\" [tablerIconSize]=\"20\"></upd-icon>\n {{ t('AddNewFilter') }}\n </upd-button>\n <upd-button customClasses=\"gap-2\" colorStyle=\"success\" [isDisabled]=\"!canPerformActions()\" (clicked)=\"search()\">\n <upd-icon tablerIcon=\"checks\" tablerIconWeight=\"bold\" [tablerIconSize]=\"20\"></upd-icon>\n {{ t('ApplyFilters') }}\n </upd-button>\n </div>\n }\n</ng-container>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$1.TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: i3.IconComponent, selector: "upd-icon", inputs: ["model", "wrapperClasses", "color", "colorClass", "removeDefaultClasses", "customClasses", "tablerIcon", "tablerIconWeight", "tablerIconType", "tablerIconSize", "heroIcon", "heroIconSize", "heroIconType"] }, { kind: "component", type: i4.ButtonComponent, selector: "upd-button", inputs: ["model", "text", "brandColorStyle", "customClasses", "isOutline", "isGhost", "isSquare", "isPill", "isIcon", "isLoading", "isList", "isFloating", "isAction", "isNavigationLink", "isLink", "shouldIgnoreBtnClass", "iconModel", "iconPosition", "isDisabled", "isActive", "badgeConfig", "colorStyle", "size", "title"], outputs: ["clicked"] }, { kind: "component", type: i5.InputComponent, selector: "upd-input", inputs: ["type", "mask", "maskConfig", "value", "size", "customClasses", "wrapperClasses", "maxLength", "isPlainText", "isReadOnly", "isLoading", "isRound", "isFlush", "isInputGroupFlat", "isPrependButton", "isAppendButton", "isFloating", "loaderPosition", "prependIconModel", "appendIconModel", "isValidationStatusLight", "layout"], outputs: ["valueChange", "blurred", "keyDown", "keyDownEsc", "keyUpEnter"] }, { kind: "directive", type: i5.InputAppendDirective, selector: "ng-template[updInputAppend]" }, { kind: "component", type: FilterRowComponent, selector: "upd-filter-row", inputs: ["activeFilters", "rowIndex", "columns", "isDisabled", "store", "currentFilter"], outputs: ["removed", "activeFiltersChange"] }] }); }
825
+ }
826
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: SearchSectionComponent, decorators: [{
827
+ type: Component,
828
+ args: [{ selector: 'upd-search-section', template: "<ng-container *transloco=\"let t; prefix: 'UpDevs.Table'\">\n @if (!!actionsTpl()) {\n <ng-template [ngTemplateOutlet]=\"actionsTpl()!\"></ng-template>\n }\n\n <div class=\"d-flex align-items-center gap-2\">\n <upd-input wrapperClasses=\"w-100\" [placeholder]=\"{text:'UpDevs.Table.Search', isTranslated:false}\" [isAppendButton]=\"true\"\n (valueChange)=\"searchSubject.next($event)\" [value]=\"searchRequest().description\">\n <ng-template updInputAppend>\n <upd-button [isIcon]=\"true\" [colorStyle]=\"filterSectionBtnColor()\" (clicked)=\"toggleFilterSection()\"\n [badgeConfig]=\"badgeConfig()\">\n <upd-icon [tablerIcon]=\"isFilterSectionOpen() ? 'filter-up' : 'filter-down'\" [tablerIconSize]=\"20\"></upd-icon>\n </upd-button>\n </ng-template>\n </upd-input>\n </div>\n\n @if (isFilterSectionOpen()) {\n @for (row of activeFilters(); track row; let i = $index) {\n <upd-filter-row [store]=\"config().store\" [currentFilter]=\"row\" [(activeFilters)]=\"activeFilters\" [columns]=\"columns()\"\n [rowIndex]=\"i\" (removed)=\"onRowRemoved()\" [isDisabled]=\"isSearching()\">\n </upd-filter-row>\n }\n\n <div class=\"ms-auto d-flex gap-2\">\n <upd-button customClasses=\"gap-2\" colorStyle=\"primary\" [isOutline]=\"true\" (clicked)=\"addEmptyFilterRow()\"\n [isDisabled]=\"!canPerformActions()\">\n <upd-icon tablerIcon=\"plus\" tablerIconWeight=\"bold\" [tablerIconSize]=\"20\"></upd-icon>\n {{ t('AddNewFilter') }}\n </upd-button>\n <upd-button customClasses=\"gap-2\" colorStyle=\"success\" [isDisabled]=\"!canPerformActions()\" (clicked)=\"search()\">\n <upd-icon tablerIcon=\"checks\" tablerIconWeight=\"bold\" [tablerIconSize]=\"20\"></upd-icon>\n {{ t('ApplyFilters') }}\n </upd-button>\n </div>\n }\n</ng-container>\n" }]
829
+ }], ctorParameters: () => [], propDecorators: { wrapperClass: [{
830
+ type: HostBinding,
831
+ args: ['class']
832
+ }] } });
833
+
834
+ var Utils = Tools.Utils;
835
+ class TableComponent extends BaseComponent {
836
+ get numberOfColumns() {
837
+ return this.columns().length
838
+ + (this.configModel().hasCheckboxColumn ? 1 : 0)
839
+ + (this.configModel().customActions.length > 0 ? 1 : 0)
840
+ + (!!this.pendingWidthColClass ? 1 : 0);
841
+ }
842
+ get hasWidth() {
843
+ return this.columns().some(rec => !!rec.width);
844
+ }
845
+ get pendingWidthColClass() {
846
+ if (!this.hasWidth || this.isWidthInPixels) {
847
+ return '';
848
+ }
849
+ const isGrid = this.columns().some(rec => !!rec.width?.gridColumn);
850
+ const total = isGrid ? 12 : 100;
851
+ const remainingSize = total - this.columns().reduce((acc, item) => acc + item.widthSize, 0);
852
+ // TODO: add spaces of checkbox and customactions columns
853
+ return remainingSize > 0 ? `${(isGrid ? 'col' : 'w')}-${remainingSize}` : '';
854
+ }
855
+ get isWidthInPixels() {
856
+ return this.columns().some(rec => !!rec.width?.pixels);
857
+ }
858
+ get isRemote() {
859
+ return !!this.configModel().store;
860
+ }
861
+ get store() {
862
+ return this.configModel().store;
863
+ }
864
+ constructor() {
865
+ super();
866
+ this.savedViewsRef = viewChild('savedViewsBtn', { read: ElementRef });
867
+ this.config = model.required();
868
+ this.isSearching = signal(false);
869
+ this.selectedItems = computed(() => this.selectionModel().selected());
870
+ this.activeSavedView = signal(undefined);
871
+ this.isMainCheckboxChecked = false;
872
+ this.isMainCheckboxIndeterminate = false;
873
+ this.isSavedViewsDropdownOpen = false;
874
+ this.searchRequest = model({});
875
+ this.activeFilters = model([]);
876
+ this.currentPage = model(1);
877
+ this.pageSize = model(0);
878
+ this.hasSearchChanged = signal(false);
879
+ this.totalRecords = signal(0);
880
+ this.configModel = computed(() => new TableConfigModel(this.config()));
881
+ this.data = computed(() => this.configModel().data.length > 0 ? this.configModel().data : this.currentData());
882
+ this.selectionModel = computed(() => new SelectionModel(this.configModel().getIdFunction));
883
+ this.currentSorting = signal(undefined);
884
+ this.hiddenColumns = computed(() => this.configModel().canManageColumns ? this.configModel().columns.filter(c => c.isHidden).length : 0);
885
+ this.columns = signal([]);
886
+ this.searchRequestSubject = new Subject();
887
+ this.textService = inject(TextService);
888
+ this.savedViewsOptions = computed(() => {
889
+ const allSavedViewsOptions = [];
890
+ this.allSavedViews().forEach(sv => allSavedViewsOptions.push(this.getSavedViewOption(sv)));
891
+ return allSavedViewsOptions;
892
+ });
893
+ this.shouldForceSearch = false;
894
+ this.columnsBackup = [];
895
+ this.currentData = signal([]);
896
+ this.currentFavoriteButtons = computed(() => this.favoriteButtons);
897
+ this.smallSizeSignal = signal('small');
898
+ this.allSavedViews = computed(() => this.savedViewsStorage.getAll(this.configModel().name)());
899
+ this.favoriteButtons = [];
900
+ this.serverResponseService = inject(ServerResponseService);
901
+ this.savedViewsStorage = inject(SavedViewsStorage);
902
+ this.modalService = inject(ModalService);
903
+ this.modalAlertService = inject(ModalAlertService);
904
+ effect(() => {
905
+ if (this.data().length > 0 && this.configModel().data.length > 0) {
906
+ this.setupPreSelected();
907
+ }
908
+ if (this.selectedItems().length > 0) {
909
+ if (this.selectedItems().length !== this.data().length) {
910
+ this.isMainCheckboxChecked = false;
911
+ this.isMainCheckboxIndeterminate = true;
912
+ }
913
+ else {
914
+ this.isMainCheckboxIndeterminate = false;
915
+ this.isMainCheckboxChecked = true;
916
+ }
917
+ }
918
+ else {
919
+ this.isMainCheckboxChecked = false;
920
+ this.isMainCheckboxIndeterminate = false;
921
+ }
922
+ });
923
+ }
924
+ ngOnInit() {
925
+ this.columnsBackup = [...this.config().columns];
926
+ const searchSubjectSub = this.searchRequestSubject
927
+ .pipe(distinctUntilChanged((prev, curr) => !this.shouldForceSearch ? Utils.areEqual(prev, curr) : false), tap((request) => {
928
+ this.isSearching.set(true);
929
+ this.currentData.set([]);
930
+ this.searchRequest.set(request);
931
+ if ((request.filters?.length || 0) > 0
932
+ || (request.description || '').length > 0
933
+ || (request.sortings?.length || 0) > 0) {
934
+ this.hasSearchChanged.set(true);
935
+ }
936
+ }), switchMap(() => this.store.search(this.searchRequest()).pipe(catchError(() => of()) // Already handled by the ServerResponseService.
937
+ )), finalize(() => this.shouldForceSearch = false))
938
+ .subscribe(resp => this.setupSearchResults(resp));
939
+ const serverResponseSub = this.serverResponseService.onError.subscribe(error => {
940
+ if (!!error) {
941
+ this.isSearching.set(false);
942
+ }
943
+ });
944
+ if (this.configModel().shouldAutoSearch && this.isRemote) {
945
+ this.shouldForceSearch = true;
946
+ this.searchRequestSubject.next({});
947
+ }
948
+ this.updateColumns(this.configModel().columns);
949
+ this.addSubscriptions(searchSubjectSub, serverResponseSub);
950
+ }
951
+ toggleAllSelection(isChecked) {
952
+ if (isChecked) {
953
+ this.selectionModel().select(...this.currentData());
954
+ }
955
+ else {
956
+ this.selectionModel().clearSelection();
957
+ }
958
+ }
959
+ toggleItemSelection(record) {
960
+ if (this.selectionModel().isSelected(record)) {
961
+ this.selectionModel().deselect(record);
962
+ }
963
+ else {
964
+ this.selectionModel().select(record);
965
+ }
966
+ }
967
+ canSortColumn(columnName) {
968
+ return this.getColumnByName(columnName).allowSort;
969
+ }
970
+ sortByColumn(columnName) {
971
+ const currentSort = this.currentSorting();
972
+ const nextDirection = (currentSort?.column === columnName && currentSort.direction === SortDirectionEnum.Asc)
973
+ ? SortDirectionEnum.Desc
974
+ : SortDirectionEnum.Asc;
975
+ this.currentSorting.set(new ColumnSort({
976
+ column: columnName,
977
+ direction: nextDirection
978
+ }));
979
+ if (this.isRemote) {
980
+ this.searchRequest.set({
981
+ ...this.searchRequest(),
982
+ sortings: [this.currentSorting()]
983
+ });
984
+ this.searchRequestSubject.next(this.searchRequest());
985
+ }
986
+ else {
987
+ const col = this.getColumnByName(columnName);
988
+ // TODO: local sort
989
+ }
990
+ }
991
+ getSortingIcon(columnName) {
992
+ return !!this.currentSorting() && this.currentSorting().column === columnName
993
+ ? (this.currentSorting().direction === SortDirectionEnum.Asc ? 'sort-ascending' : 'sort-descending')
994
+ : 'arrows-sort';
995
+ }
996
+ onPageSettingsChanged() {
997
+ this.searchRequest.set({
998
+ ...this.searchRequest(),
999
+ pageSize: this.pageSize(),
1000
+ pageIndex: this.currentPage()
1001
+ });
1002
+ this.searchRequestSubject.next(this.searchRequest());
1003
+ }
1004
+ getRecordId(record) {
1005
+ return this.configModel().getIdFunction(record);
1006
+ }
1007
+ openColumnsManagerModal() {
1008
+ const ref = this.modalService.open(undefined, {
1009
+ bodyContentType: ColumnsManagerComponent,
1010
+ showCloseButton: false,
1011
+ showCancelButton: true,
1012
+ data: this.config(),
1013
+ isTextCentered: false,
1014
+ actionButtons: [
1015
+ new ButtonModel({
1016
+ text: signal({ text: 'UpDevs.Table.ColumnsManager.Apply', isTranslated: false }),
1017
+ colorStyle: signal('primary'),
1018
+ iconModel: signal({ tablerIcon: 'checks' }),
1019
+ clickFunction: () => ref.close()
1020
+ })
1021
+ ]
1022
+ });
1023
+ ref.afterClose = () => {
1024
+ const result = ref.getBodyInstance()?.columns();
1025
+ if (!!result) {
1026
+ const previousVisibleColumnsOrder = this.columns().map(c => c.name);
1027
+ const visibleColumnsNames = result.find(c => c.name === 'visible')?.items().map(i => i.name) || [];
1028
+ const newColumns = [];
1029
+ this.config.update(config => {
1030
+ visibleColumnsNames.forEach(name => {
1031
+ const col = config.columns.find(c => c.name === name);
1032
+ col.isHidden = false;
1033
+ newColumns.push(col);
1034
+ });
1035
+ config.columns.forEach(c => {
1036
+ if (!visibleColumnsNames.includes(c.name)) {
1037
+ c.isHidden = true;
1038
+ newColumns.push(c);
1039
+ }
1040
+ });
1041
+ return { ...config, columns: [...newColumns] };
1042
+ });
1043
+ this.updateColumns(newColumns);
1044
+ const newVisibleColumnsOrder = newColumns.map(c => c.name);
1045
+ if (previousVisibleColumnsOrder.length !== newVisibleColumnsOrder.length
1046
+ || !previousVisibleColumnsOrder.every((v, i) => v === newVisibleColumnsOrder[i])) {
1047
+ this.hasSearchChanged.set(true);
1048
+ }
1049
+ }
1050
+ };
1051
+ }
1052
+ openSaveSearchModal(data) {
1053
+ data = data || {
1054
+ tableName: this.configModel().name,
1055
+ request: this.searchRequest(),
1056
+ columns: this.configModel().columns
1057
+ };
1058
+ this.modalService.open(SaveSearchComponent, { showCloseButton: false, data });
1059
+ }
1060
+ selectSavedView(item) {
1061
+ const savedView = this.savedViewsStorage.getById(this.configModel().name, item.id)();
1062
+ this.isSavedViewsDropdownOpen = false;
1063
+ if (!!savedView) {
1064
+ this.updateColumns(savedView.columns);
1065
+ this.config.update(curr => {
1066
+ curr.columns = savedView.columns;
1067
+ return { ...curr };
1068
+ });
1069
+ this.activeSavedView.set(savedView);
1070
+ this.searchRequestSubject.next({ ...savedView.request });
1071
+ }
1072
+ }
1073
+ resetViewState() {
1074
+ this.activeSavedView.set(undefined);
1075
+ this.updateColumns(this.columnsBackup);
1076
+ this.config.update(curr => {
1077
+ curr.columns = this.columnsBackup;
1078
+ return { ...curr };
1079
+ });
1080
+ this.searchRequestSubject.next({});
1081
+ }
1082
+ reload() {
1083
+ this.shouldForceSearch = true;
1084
+ this.searchRequestSubject.next({});
1085
+ }
1086
+ adaptCustomAction(btn, item) {
1087
+ const newBtn = new ButtonModel({
1088
+ id: btn.id,
1089
+ iconModel: btn.iconModel,
1090
+ title: btn.title,
1091
+ isIcon: signal(true),
1092
+ isLink: signal(true),
1093
+ size: signal('small'),
1094
+ text: undefined,
1095
+ colorStyle: btn.colorStyle,
1096
+ isOutline: btn.isOutline
1097
+ });
1098
+ const defaultFunction = btn.clickFunction;
1099
+ newBtn.clickFunction = (evt) => {
1100
+ evt.event?.preventDefault();
1101
+ evt.event?.stopPropagation();
1102
+ if (!!defaultFunction) {
1103
+ defaultFunction({ event: evt.event, data: item });
1104
+ }
1105
+ };
1106
+ return newBtn;
1107
+ }
1108
+ updateColumns(columns) {
1109
+ this.columns.set(columns.filter(c => !c.isHidden).map(c => this.createColumnModel(c)));
1110
+ }
1111
+ createColumnModel(data) {
1112
+ switch (data.type) {
1113
+ case ColumnTypeEnum.Text:
1114
+ return new TextColumnModel({ ...data });
1115
+ case ColumnTypeEnum.Number:
1116
+ return new NumberColumnModel({ ...data });
1117
+ case ColumnTypeEnum.Boolean:
1118
+ return new BooleanColumnModel({ ...data });
1119
+ case ColumnTypeEnum.DateTime:
1120
+ case ColumnTypeEnum.Date:
1121
+ case ColumnTypeEnum.Time:
1122
+ return new DateTimeColumnModel({ ...data });
1123
+ case ColumnTypeEnum.Image:
1124
+ return new ImageColumnModel({ ...data });
1125
+ case ColumnTypeEnum.Guid:
1126
+ return new GuidColumnModel({ ...data });
1127
+ case ColumnTypeEnum.Masked:
1128
+ case ColumnTypeEnum.Custom:
1129
+ case ColumnTypeEnum.Currency:
1130
+ default:
1131
+ return new BaseColumnModel(data.type, { ...data });
1132
+ }
1133
+ }
1134
+ getColumnByName(columnName) {
1135
+ const col = this.columns().find(c => c.name === columnName);
1136
+ if (!col) {
1137
+ throw Error('Tried accessing non existing column');
1138
+ }
1139
+ return col;
1140
+ }
1141
+ setupPreSelected() {
1142
+ this.configModel().preSelectedItems.forEach(item => {
1143
+ const id = this.getRecordId(item);
1144
+ if (this.data().find(d => this.getRecordId(d) === id) && !this.selectionModel().isSelected(item)) {
1145
+ this.selectionModel().select(item);
1146
+ }
1147
+ });
1148
+ }
1149
+ setupSearchResults(resp) {
1150
+ this.isSearching.set(false);
1151
+ this.currentData.set(resp.records);
1152
+ this.totalRecords.set(resp.totalRecords || 0);
1153
+ this.currentPage.set(resp.pageIndex || 0);
1154
+ this.pageSize.set(resp.pageSize || 0);
1155
+ this.setupPreSelected();
1156
+ }
1157
+ getActionButtons(currentFavoriteButtons, savedView) {
1158
+ return [
1159
+ new ButtonModel({
1160
+ isIcon: signal(true),
1161
+ isGhost: signal(true),
1162
+ colorStyle: signal('primary'),
1163
+ size: this.smallSizeSignal,
1164
+ title: signal({ text: 'UpDevs.Table.SavedViews.MarkAsDefault', isTranslated: false }),
1165
+ isActive: signal(savedView.isDefault || false),
1166
+ iconModel: signal({ tablerIcon: 'heart' }),
1167
+ clickFunction: (evt) => {
1168
+ const btnModel = evt.data;
1169
+ const isButtonActive = btnModel.button.isActive();
1170
+ if (!isButtonActive) {
1171
+ this.savedViewsStorage.resetAllIsDefault(this.configModel().name);
1172
+ }
1173
+ savedView.isDefault = !isButtonActive;
1174
+ currentFavoriteButtons().forEach(cfb => cfb.isActive.set(false));
1175
+ btnModel.button.isActive.set(!isButtonActive);
1176
+ this.savedViewsStorage.saveView(savedView);
1177
+ }
1178
+ }),
1179
+ new ButtonModel({
1180
+ isIcon: signal(true),
1181
+ isGhost: signal(true),
1182
+ colorStyle: signal('secondary'),
1183
+ size: this.smallSizeSignal,
1184
+ title: signal({ text: 'UpDevs.Table.SavedViews.Duplicate', isTranslated: false }),
1185
+ iconModel: signal({ tablerIcon: 'copy' }),
1186
+ clickFunction: () => {
1187
+ const duplicateView = {
1188
+ ...savedView,
1189
+ id: Tools.Guid.generate(),
1190
+ name: savedView.name +
1191
+ ` (${this.textService.getText({ text: 'UpDevs.Table.SavedViews.DuplicateSuffix', isTranslated: false })})`
1192
+ };
1193
+ this.openSaveSearchModal(duplicateView);
1194
+ }
1195
+ }),
1196
+ new ButtonModel({
1197
+ isIcon: signal(true),
1198
+ isGhost: signal(true),
1199
+ colorStyle: signal('secondary'),
1200
+ size: this.smallSizeSignal,
1201
+ title: signal({ text: 'UpDevs.Table.SavedViews.Edit', isTranslated: false }),
1202
+ iconModel: signal({ tablerIcon: 'edit' }),
1203
+ clickFunction: () => this.openSaveSearchModal(savedView)
1204
+ }),
1205
+ new ButtonModel({
1206
+ isIcon: signal(true),
1207
+ isGhost: signal(true),
1208
+ colorStyle: signal('danger'),
1209
+ size: this.smallSizeSignal,
1210
+ title: signal({ text: 'UpDevs.Table.SavedViews.Remove', isTranslated: false }),
1211
+ iconModel: signal({ tablerIcon: 'x' }),
1212
+ clickFunction: () => {
1213
+ const title = this.textService.getText({ text: 'UpDevs.Table.SavedViews.ConfirmRemove', isTranslated: false }, { view: savedView.name });
1214
+ this.modalAlertService.showConfirm({ text: title, isTranslated: true }).subscribe(isConfirmed => {
1215
+ if (isConfirmed) {
1216
+ this.savedViewsStorage.removeViews(this.configModel().name, savedView.id);
1217
+ }
1218
+ });
1219
+ }
1220
+ })
1221
+ ];
1222
+ }
1223
+ getSavedViewOption(savedView) {
1224
+ const actionButtons = this.getActionButtons(this.currentFavoriteButtons, savedView);
1225
+ this.favoriteButtons.push(actionButtons.find(ab => ab.iconModel?.().tablerIcon === 'heart'));
1226
+ return {
1227
+ id: savedView.id,
1228
+ type: 'with-toolbar',
1229
+ text: { text: savedView.name, isTranslated: true },
1230
+ toolbarType: 'spaced',
1231
+ isActive: this.activeSavedView()?.id === savedView.id,
1232
+ actionButtons
1233
+ };
1234
+ }
1235
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: TableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1236
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.1.0", type: TableComponent, selector: "upd-table", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null }, searchRequest: { classPropertyName: "searchRequest", publicName: "searchRequest", isSignal: true, isRequired: false, transformFunction: null }, activeFilters: { classPropertyName: "activeFilters", publicName: "activeFilters", isSignal: true, isRequired: false, transformFunction: null }, currentPage: { classPropertyName: "currentPage", publicName: "currentPage", isSignal: true, isRequired: false, transformFunction: null }, pageSize: { classPropertyName: "pageSize", publicName: "pageSize", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { config: "configChange", searchRequest: "searchRequestChange", activeFilters: "activeFiltersChange", currentPage: "currentPageChange", pageSize: "pageSizeChange" }, viewQueries: [{ propertyName: "savedViewsRef", first: true, predicate: ["savedViewsBtn"], descendants: true, read: ElementRef, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<ng-container *transloco=\"let t; prefix: 'UpDevs.Table'\">\n <div class=\"card\">\n @if (!!configModel().title || !configModel().canSearch) {\n <div class=\"card-header\">\n @if (!!configModel().title) {\n <h3 class=\"card-title\">{{ textService.getText(configModel().title) }}</h3>\n }\n <ng-template [ngTemplateOutlet]=\"actionsTpl\"></ng-template>\n </div>\n }\n\n @if (configModel().customHeaderActions.length > 0) {\n <div class=\"card-body py-3 d-flex flex-column gap-2\">\n <div class=\"ms-auto d-flex gap-2\">\n @for (btn of configModel().customHeaderActions; track btn) {\n <upd-button customClasses=\"gap-2\" [model]=\"btn\"></upd-button>\n }\n </div>\n </div>\n }\n\n @if (configModel().canSearch) {\n <upd-search-section [actionsTpl]=\"!configModel().title ? actionsTpl : undefined\" [isSearching]=\"isSearching()\"\n [(searchRequest)]=\"searchRequest\" [searchRequestSubject]=\"searchRequestSubject\" [config]=\"configModel()\"\n [(hasChanges)]=\"hasSearchChanged\" [columns]=\"columns()\">\n </upd-search-section>\n }\n\n <div [class.table-responsive]=\"configModel().isResponsive\">\n <!-- TODO: implement pixel sized table -->\n <table class=\"table card-table table-vcenter table-nowrap\" [class.fixed]=\"hasWidth\"\n [class.pixel-sized]=\"isWidthInPixels\">\n <thead [class.sticky-top]=\"configModel().hasStickyHeader\">\n <tr>\n @if (configModel().hasCheckboxColumn) {\n <th class=\"checkbox-selector\">\n <upd-checkbox customClasses=\"m-0 ps-0\" (changed)=\"toggleAllSelection($event)\"\n [(isChecked)]=\"isMainCheckboxChecked\"\n [(isIndeterminate)]=\"isMainCheckboxIndeterminate\"></upd-checkbox>\n </th>\n }\n\n @for (col of columns(); track col) {\n <th [ngClass]=\"col.widthClass\" [style.width.px]=\"col.pixelsSize\">\n {{ textService.getText(col.title) }}\n @if (canSortColumn(col.name)) {\n <upd-icon [tablerIcon]=\"getSortingIcon(col.name)\" tablerIconWeight=\"bold\" colorClass=\"text-body-tertiary\"\n [tablerIconSize]=\"16\" (click)=\"sortByColumn(col.name)\">\n </upd-icon>\n }\n </th>\n }\n\n @if (!!pendingWidthColClass) {\n <th [ngClass]=\"pendingWidthColClass\"></th>\n }\n\n @if (configModel().customActions.length > 0) {\n <th class=\"custom-actions\"></th>\n }\n </tr>\n </thead>\n\n <tbody>\n @if (isSearching()) {\n <tr>\n <td [colSpan]=\"numberOfColumns\">\n <div class=\"empty\">\n <h1 class=\"text-body-tertiary\">{{ t('Loading') }}...</h1>\n <div class=\"progress progress-sm w-25\">\n <div class=\"progress-bar progress-bar-indeterminate bg-body-tertiary\"></div>\n </div>\n </div>\n </td>\n </tr>\n } @else {\n @for (record of data(); track record) {\n <tr>\n @if (configModel().hasCheckboxColumn) {\n <td class=\"checkbox-selector\">\n <upd-checkbox customClasses=\"m-0 ps-0\" (changed)=\"toggleItemSelection(record)\"\n [isChecked]=\"selectionModel().isSelected(record)\"></upd-checkbox>\n </td>\n }\n\n @for (col of columns(); track col) {\n <td [style.width.px]=\"col.pixelsSize\">\n <ng-container updTableColumn [record]=\"record\" [config]=\"col\"></ng-container>\n </td>\n }\n\n @if (!!pendingWidthColClass) {\n <td></td>\n }\n\n @if (configModel().customActions.length > 0) {\n <td style=\"overflow: unset\">\n <div class=\"grow-left d-flex\">\n @if (configModel().customActions.length > 1) {\n <upd-button customClasses=\"ca-item\" [iconModel]=\"{tablerIcon:'dots'}\" [isIcon]=\"true\"\n [isLink]=\"true\" size=\"small\"></upd-button>\n\n <div class=\"ca-dropdown-content rounded shadow-sm\">\n @for (btn of configModel().customActions; track btn) {\n <upd-button [model]=\"adaptCustomAction(btn, record)\"></upd-button>\n }\n </div>\n } @else {\n <upd-button [model]=\"adaptCustomAction(configModel().customActions[0], record)\">\n </upd-button>\n }\n </div>\n </td>\n }\n </tr>\n } @empty {\n <tr>\n <td [colSpan]=\"numberOfColumns\">\n <div class=\"empty\">\n <p class=\"empty-title\">{{ t('NoRecordsFoundTitle') }}</p>\n <p class=\"empty-subtitle text-secondary\">{{ t('NoRecordsFoundSubtitle') }}</p>\n </div>\n </td>\n </tr>\n }\n }\n </tbody>\n </table>\n </div>\n <upd-paginator wrapperClasses=\"card-footer\" [shouldDisplayPreviousText]=\"false\" [shouldDisplayNextText]=\"false\"\n [(pageSize)]=\"pageSize\" [shouldDisplayFirstText]=\"false\" [shouldDisplayLastText]=\"false\"\n [(currentPage)]=\"currentPage\"\n [totalRecords]=\"totalRecords()\" (changed)=\"onPageSettingsChanged()\">\n </upd-paginator>\n </div>\n\n <ng-template #actionsTpl>\n <div class=\"ms-auto d-flex gap-2\">\n @if (!!activeSavedView()) {\n @if (activeSavedView()!.isDefault) {\n <div class=\"ribbon ribbon-top ribbon-start\">\n <upd-icon tablerIcon=\"heart\" [tablerIconSize]=\"20\"></upd-icon>\n </div>\n }\n <div class=\"tag align-self-center py-3 text-primary bg-primary-lt border-primary\"\n updPopover=\"{{ t('CurrentSavedView') }}\"\n [updPopoverActAsTooltip]=\"true\">\n <upd-icon tablerIcon=\"list-details\" [tablerIconSize]=\"20\"></upd-icon>\n <span class=\"me-1\">{{ activeSavedView()!.name }}</span>\n </div>\n }\n @if (hiddenColumns() > 0) {\n <div class=\"tag align-self-center py-3 text-orange bg-orange-lt border-orange\"\n updPopover=\"{{ t('HiddenColumnsTooltip') }}\"\n [updPopoverActAsTooltip]=\"true\">\n <upd-icon tablerIcon=\"eye-off\" [tablerIconSize]=\"20\"></upd-icon>\n <span class=\"me-1\">{{ hiddenColumns() }}</span>\n </div>\n }\n @if (!!activeSavedView() || hiddenColumns() > 0) {\n <upd-button (clicked)=\"resetViewState()\" colorStyle=\"danger\" updPopover=\"{{ t('ResetView') }}\"\n [updPopoverActAsTooltip]=\"true\" [isIcon]=\"true\" [isOutline]=\"true\">\n <upd-icon tablerIcon=\"restore\" [tablerIconSize]=\"20\"></upd-icon>\n </upd-button>\n }\n @if (configModel().canSaveViews) {\n <upd-button customClasses=\"gap-2\" [isDisabled]=\"!hasSearchChanged()\" (clicked)=\"openSaveSearchModal()\"\n updPopover=\"{{ t('SaveCurrentView') }}\" [updPopoverActAsTooltip]=\"true\" [isIcon]=\"true\">\n <upd-icon tablerIcon=\"device-floppy\" [tablerIconSize]=\"20\"></upd-icon>\n </upd-button>\n }\n @if (configModel().canManageColumns) {\n <upd-button customClasses=\"gap-2\" (clicked)=\"openColumnsManagerModal()\">\n <upd-icon tablerIcon=\"columns\" [tablerIconSize]=\"20\"></upd-icon>\n {{ t('ColumnsManagerButton') }}\n </upd-button>\n }\n @if (configModel().canSaveViews || configModel().canLoadSavedViews) {\n <upd-button customClasses=\"gap-2\" (clicked)=\"isSavedViewsDropdownOpen = true\" #savedViewsBtn>\n <upd-icon tablerIcon=\"folders\" [tablerIconSize]=\"20\"></upd-icon>\n {{ t('SavedViews.ButtonTitle') }}\n </upd-button>\n <upd-dropdown wrapperClasses=\"overflow-x-hidden mt-1\" [isOpen]=\"isSavedViewsDropdownOpen\"\n [dropdownReference]=\"savedViewsRef()\" [items]=\"savedViewsOptions()\" [shouldCloseOnOutsideClick]=\"true\"\n (isOpenChange)=\"isSavedViewsDropdownOpen = $event\" [minWidth]=\"350\" (selectedItem)=\"selectSavedView($event)\">\n @if (savedViewsOptions().length < 1) {\n <span class=\"m-2\">{{ t('NoSavedViews') }}</span>\n }\n </upd-dropdown>\n }\n </div>\n </ng-template>\n</ng-container>\n", styles: [".fixed{table-layout:fixed!important}.fixed td,.fixed th{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.checkbox-selector{width:52px!important}.custom-actions{width:56px!important}.ca-item{transition:all,.5s}.ca-item:hover{width:400px}.grow-left{direction:rtl}.ca-dropdown-content{display:none;background:var(--upd-secondary-lt)}.grow-left:hover .ca-dropdown-content{display:block}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$1.TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: i3.IconComponent, selector: "upd-icon", inputs: ["model", "wrapperClasses", "color", "colorClass", "removeDefaultClasses", "customClasses", "tablerIcon", "tablerIconWeight", "tablerIconType", "tablerIconSize", "heroIcon", "heroIconSize", "heroIconType"] }, { kind: "component", type: i4.ButtonComponent, selector: "upd-button", inputs: ["model", "text", "brandColorStyle", "customClasses", "isOutline", "isGhost", "isSquare", "isPill", "isIcon", "isLoading", "isList", "isFloating", "isAction", "isNavigationLink", "isLink", "shouldIgnoreBtnClass", "iconModel", "iconPosition", "isDisabled", "isActive", "badgeConfig", "colorStyle", "size", "title"], outputs: ["clicked"] }, { kind: "component", type: i5$1.PaginatorComponent, selector: "upd-paginator", inputs: ["startPageIndex", "currentPage", "wrapperClasses", "availablePageSizes", "defaultInitPageSize", "pageSize", "shouldDisplayFirstIcon", "shouldDisplayFirstText", "shouldDisplayPreviousIcon", "shouldDisplayPreviousText", "shouldDisplayNextIcon", "shouldDisplayNextText", "shouldDisplayLastIcon", "shouldDisplayLastText", "previousDescription", "nextDescription", "totalRecords"], outputs: ["changed", "currentPageChange", "pageSizeChange"] }, { kind: "component", type: i6.CheckboxComponent, selector: "upd-checkbox", inputs: ["wrapperClasses", "value", "customClasses", "isChecked", "isInline", "isSwitch", "isIndeterminate"], outputs: ["changed", "isCheckedChange", "isIndeterminateChange"] }, { kind: "component", type: i7.DropdownComponent, selector: "upd-dropdown", inputs: ["items", "header", "isOpen", "shouldCloseOnOutsideClick", "arrowType", "wrapperClasses", "elementsExcludedFromOutsideClick", "minHeight", "maxHeight", "minWidth", "maxWidth", "dropdownReference", "dropdownReferencePosition", "textOverflowStrategy"], outputs: ["isOpenChange", "selectedItem", "checkboxChanged"] }, { kind: "directive", type: i8.PopoverDirective, selector: "[updPopover]", inputs: ["updPopover", "updPopoverTitle", "updPopoverTitleTemplate", "updPopoverTemplate", "updPopoverPlacement", "updPopoverCustomClasses", "updPopoverActAsTooltip"] }, { kind: "component", type: SearchSectionComponent, selector: "upd-search-section", inputs: ["searchRequest", "hasChanges", "columns", "isSearching", "searchRequestSubject", "config", "actionsTpl"], outputs: ["searchRequestChange", "hasChangesChange"] }, { kind: "directive", type: TableColumnDirective, selector: "[updTableColumn]", inputs: ["record", "config"] }] }); }
1237
+ }
1238
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: TableComponent, decorators: [{
1239
+ type: Component,
1240
+ args: [{ selector: 'upd-table', template: "<ng-container *transloco=\"let t; prefix: 'UpDevs.Table'\">\n <div class=\"card\">\n @if (!!configModel().title || !configModel().canSearch) {\n <div class=\"card-header\">\n @if (!!configModel().title) {\n <h3 class=\"card-title\">{{ textService.getText(configModel().title) }}</h3>\n }\n <ng-template [ngTemplateOutlet]=\"actionsTpl\"></ng-template>\n </div>\n }\n\n @if (configModel().customHeaderActions.length > 0) {\n <div class=\"card-body py-3 d-flex flex-column gap-2\">\n <div class=\"ms-auto d-flex gap-2\">\n @for (btn of configModel().customHeaderActions; track btn) {\n <upd-button customClasses=\"gap-2\" [model]=\"btn\"></upd-button>\n }\n </div>\n </div>\n }\n\n @if (configModel().canSearch) {\n <upd-search-section [actionsTpl]=\"!configModel().title ? actionsTpl : undefined\" [isSearching]=\"isSearching()\"\n [(searchRequest)]=\"searchRequest\" [searchRequestSubject]=\"searchRequestSubject\" [config]=\"configModel()\"\n [(hasChanges)]=\"hasSearchChanged\" [columns]=\"columns()\">\n </upd-search-section>\n }\n\n <div [class.table-responsive]=\"configModel().isResponsive\">\n <!-- TODO: implement pixel sized table -->\n <table class=\"table card-table table-vcenter table-nowrap\" [class.fixed]=\"hasWidth\"\n [class.pixel-sized]=\"isWidthInPixels\">\n <thead [class.sticky-top]=\"configModel().hasStickyHeader\">\n <tr>\n @if (configModel().hasCheckboxColumn) {\n <th class=\"checkbox-selector\">\n <upd-checkbox customClasses=\"m-0 ps-0\" (changed)=\"toggleAllSelection($event)\"\n [(isChecked)]=\"isMainCheckboxChecked\"\n [(isIndeterminate)]=\"isMainCheckboxIndeterminate\"></upd-checkbox>\n </th>\n }\n\n @for (col of columns(); track col) {\n <th [ngClass]=\"col.widthClass\" [style.width.px]=\"col.pixelsSize\">\n {{ textService.getText(col.title) }}\n @if (canSortColumn(col.name)) {\n <upd-icon [tablerIcon]=\"getSortingIcon(col.name)\" tablerIconWeight=\"bold\" colorClass=\"text-body-tertiary\"\n [tablerIconSize]=\"16\" (click)=\"sortByColumn(col.name)\">\n </upd-icon>\n }\n </th>\n }\n\n @if (!!pendingWidthColClass) {\n <th [ngClass]=\"pendingWidthColClass\"></th>\n }\n\n @if (configModel().customActions.length > 0) {\n <th class=\"custom-actions\"></th>\n }\n </tr>\n </thead>\n\n <tbody>\n @if (isSearching()) {\n <tr>\n <td [colSpan]=\"numberOfColumns\">\n <div class=\"empty\">\n <h1 class=\"text-body-tertiary\">{{ t('Loading') }}...</h1>\n <div class=\"progress progress-sm w-25\">\n <div class=\"progress-bar progress-bar-indeterminate bg-body-tertiary\"></div>\n </div>\n </div>\n </td>\n </tr>\n } @else {\n @for (record of data(); track record) {\n <tr>\n @if (configModel().hasCheckboxColumn) {\n <td class=\"checkbox-selector\">\n <upd-checkbox customClasses=\"m-0 ps-0\" (changed)=\"toggleItemSelection(record)\"\n [isChecked]=\"selectionModel().isSelected(record)\"></upd-checkbox>\n </td>\n }\n\n @for (col of columns(); track col) {\n <td [style.width.px]=\"col.pixelsSize\">\n <ng-container updTableColumn [record]=\"record\" [config]=\"col\"></ng-container>\n </td>\n }\n\n @if (!!pendingWidthColClass) {\n <td></td>\n }\n\n @if (configModel().customActions.length > 0) {\n <td style=\"overflow: unset\">\n <div class=\"grow-left d-flex\">\n @if (configModel().customActions.length > 1) {\n <upd-button customClasses=\"ca-item\" [iconModel]=\"{tablerIcon:'dots'}\" [isIcon]=\"true\"\n [isLink]=\"true\" size=\"small\"></upd-button>\n\n <div class=\"ca-dropdown-content rounded shadow-sm\">\n @for (btn of configModel().customActions; track btn) {\n <upd-button [model]=\"adaptCustomAction(btn, record)\"></upd-button>\n }\n </div>\n } @else {\n <upd-button [model]=\"adaptCustomAction(configModel().customActions[0], record)\">\n </upd-button>\n }\n </div>\n </td>\n }\n </tr>\n } @empty {\n <tr>\n <td [colSpan]=\"numberOfColumns\">\n <div class=\"empty\">\n <p class=\"empty-title\">{{ t('NoRecordsFoundTitle') }}</p>\n <p class=\"empty-subtitle text-secondary\">{{ t('NoRecordsFoundSubtitle') }}</p>\n </div>\n </td>\n </tr>\n }\n }\n </tbody>\n </table>\n </div>\n <upd-paginator wrapperClasses=\"card-footer\" [shouldDisplayPreviousText]=\"false\" [shouldDisplayNextText]=\"false\"\n [(pageSize)]=\"pageSize\" [shouldDisplayFirstText]=\"false\" [shouldDisplayLastText]=\"false\"\n [(currentPage)]=\"currentPage\"\n [totalRecords]=\"totalRecords()\" (changed)=\"onPageSettingsChanged()\">\n </upd-paginator>\n </div>\n\n <ng-template #actionsTpl>\n <div class=\"ms-auto d-flex gap-2\">\n @if (!!activeSavedView()) {\n @if (activeSavedView()!.isDefault) {\n <div class=\"ribbon ribbon-top ribbon-start\">\n <upd-icon tablerIcon=\"heart\" [tablerIconSize]=\"20\"></upd-icon>\n </div>\n }\n <div class=\"tag align-self-center py-3 text-primary bg-primary-lt border-primary\"\n updPopover=\"{{ t('CurrentSavedView') }}\"\n [updPopoverActAsTooltip]=\"true\">\n <upd-icon tablerIcon=\"list-details\" [tablerIconSize]=\"20\"></upd-icon>\n <span class=\"me-1\">{{ activeSavedView()!.name }}</span>\n </div>\n }\n @if (hiddenColumns() > 0) {\n <div class=\"tag align-self-center py-3 text-orange bg-orange-lt border-orange\"\n updPopover=\"{{ t('HiddenColumnsTooltip') }}\"\n [updPopoverActAsTooltip]=\"true\">\n <upd-icon tablerIcon=\"eye-off\" [tablerIconSize]=\"20\"></upd-icon>\n <span class=\"me-1\">{{ hiddenColumns() }}</span>\n </div>\n }\n @if (!!activeSavedView() || hiddenColumns() > 0) {\n <upd-button (clicked)=\"resetViewState()\" colorStyle=\"danger\" updPopover=\"{{ t('ResetView') }}\"\n [updPopoverActAsTooltip]=\"true\" [isIcon]=\"true\" [isOutline]=\"true\">\n <upd-icon tablerIcon=\"restore\" [tablerIconSize]=\"20\"></upd-icon>\n </upd-button>\n }\n @if (configModel().canSaveViews) {\n <upd-button customClasses=\"gap-2\" [isDisabled]=\"!hasSearchChanged()\" (clicked)=\"openSaveSearchModal()\"\n updPopover=\"{{ t('SaveCurrentView') }}\" [updPopoverActAsTooltip]=\"true\" [isIcon]=\"true\">\n <upd-icon tablerIcon=\"device-floppy\" [tablerIconSize]=\"20\"></upd-icon>\n </upd-button>\n }\n @if (configModel().canManageColumns) {\n <upd-button customClasses=\"gap-2\" (clicked)=\"openColumnsManagerModal()\">\n <upd-icon tablerIcon=\"columns\" [tablerIconSize]=\"20\"></upd-icon>\n {{ t('ColumnsManagerButton') }}\n </upd-button>\n }\n @if (configModel().canSaveViews || configModel().canLoadSavedViews) {\n <upd-button customClasses=\"gap-2\" (clicked)=\"isSavedViewsDropdownOpen = true\" #savedViewsBtn>\n <upd-icon tablerIcon=\"folders\" [tablerIconSize]=\"20\"></upd-icon>\n {{ t('SavedViews.ButtonTitle') }}\n </upd-button>\n <upd-dropdown wrapperClasses=\"overflow-x-hidden mt-1\" [isOpen]=\"isSavedViewsDropdownOpen\"\n [dropdownReference]=\"savedViewsRef()\" [items]=\"savedViewsOptions()\" [shouldCloseOnOutsideClick]=\"true\"\n (isOpenChange)=\"isSavedViewsDropdownOpen = $event\" [minWidth]=\"350\" (selectedItem)=\"selectSavedView($event)\">\n @if (savedViewsOptions().length < 1) {\n <span class=\"m-2\">{{ t('NoSavedViews') }}</span>\n }\n </upd-dropdown>\n }\n </div>\n </ng-template>\n</ng-container>\n", styles: [".fixed{table-layout:fixed!important}.fixed td,.fixed th{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.checkbox-selector{width:52px!important}.custom-actions{width:56px!important}.ca-item{transition:all,.5s}.ca-item:hover{width:400px}.grow-left{direction:rtl}.ca-dropdown-content{display:none;background:var(--upd-secondary-lt)}.grow-left:hover .ca-dropdown-content{display:block}\n"] }]
1241
+ }], ctorParameters: () => [] });
1242
+
1243
+ var UpDevs$1 = {
1244
+ Table: {
1245
+ Search: "Search",
1246
+ NoRecordsFoundTitle: "No records found",
1247
+ NoRecordsFoundSubtitle: "Please, adjust your search terms to find what you're looking for",
1248
+ HiddenColumnsTooltip: "Hidden columns",
1249
+ SaveCurrentView: "Save current view",
1250
+ ApplyFilters: "Apply filters",
1251
+ AddNewFilter: "Add new filter",
1252
+ Loading: "Loading",
1253
+ VisibleColumns: "Visible",
1254
+ HiddenColumns: "Hidden",
1255
+ ColumnTitleNotSet: "Title not set",
1256
+ NoSavedViews: "No saved views",
1257
+ CurrentSavedView: "View currently applied",
1258
+ ColumnsManagerButton: "Columns manager",
1259
+ ResetView: "Reset table state",
1260
+ Filters: {
1261
+ General: {
1262
+ Equals: "Equals",
1263
+ NotEquals: "Different than",
1264
+ IsEmpty: "Is empty",
1265
+ IsNotEmpty: "Is not empty"
1266
+ },
1267
+ "String": {
1268
+ StartsWith: "Starts with",
1269
+ EndsWith: "Ends with",
1270
+ Contains: "Contains",
1271
+ NotContains: "Doesn't contain",
1272
+ In: "In"
1273
+ },
1274
+ "Boolean": {
1275
+ True: "True",
1276
+ False: "False"
1277
+ },
1278
+ DateOrNumber: {
1279
+ GreaterThan: "Greater than",
1280
+ LessThan: "Less than",
1281
+ GreaterThanOrEqualTo: "Greater than or equal to",
1282
+ LessThanOrEqualTo: "Less than or equal to"
1283
+ },
1284
+ "Date": {
1285
+ Between: "Between"
1286
+ },
1287
+ "Number": {
1288
+ In: "In"
1289
+ }
1290
+ },
1291
+ ColumnsManager: {
1292
+ Apply: "Apply"
1293
+ },
1294
+ SaveSearch: {
1295
+ Title: "Save view",
1296
+ Save: "Save",
1297
+ Cancel: "Cancel",
1298
+ Name: "Name",
1299
+ IsDefault: "Is default",
1300
+ IsDefaultHint: "If this option is checked, this view will be loaded by default.",
1301
+ NoSavedViews: "No saved views"
1302
+ },
1303
+ SavedViews: {
1304
+ ButtonTitle: "Saved views",
1305
+ MarkAsDefault: "Mark as default (loads on start)",
1306
+ Duplicate: "Duplicate",
1307
+ DuplicateSuffix: "copy",
1308
+ Edit: "Edit",
1309
+ Remove: "Remove",
1310
+ ConfirmRemove: "Are you sure you would like to remove the view \"{{view}}\"?<br><br><b class='text-danger'>This action can not be undone.</b>",
1311
+ NameNotUnique: "There is already a saved view with that name, please choose another."
1312
+ }
1313
+ }
1314
+ };
1315
+ var en = {
1316
+ UpDevs: UpDevs$1
1317
+ };
1318
+
1319
+ var en$1 = /*#__PURE__*/Object.freeze({
1320
+ __proto__: null,
1321
+ UpDevs: UpDevs$1,
1322
+ default: en
1323
+ });
1324
+
1325
+ var UpDevs = {
1326
+ Table: {
1327
+ Search: "Pesquisar",
1328
+ NoRecordsFoundTitle: "Nenhum registro encontrado",
1329
+ NoRecordsFoundSubtitle: "Por favor, ajuste sua pesquisa para encontrar o que você está procurando",
1330
+ HiddenColumnsTooltip: "Colunas ocultas",
1331
+ SaveCurrentView: "Salvar consulta atual",
1332
+ ApplyFilters: "Aplicar filtros",
1333
+ AddNewFilter: "Adicionar novo filtro",
1334
+ Loading: "Carregando",
1335
+ VisibleColumns: "Visíveis",
1336
+ HiddenColumns: "Ocultas",
1337
+ ColumnTitleNotSet: "Título não definido",
1338
+ NoSavedViews: "Nenhuma consulta salva",
1339
+ CurrentSavedView: "Consulta sendo visualizada",
1340
+ ColumnsManagerButton: "Gerenciar colunas",
1341
+ ResetView: "Restaurar a condição tabela",
1342
+ Filters: {
1343
+ General: {
1344
+ Equals: "Igual à",
1345
+ NotEquals: "Diferente de",
1346
+ IsEmpty: "Está vazio",
1347
+ IsNotEmpty: "Não está vazio"
1348
+ },
1349
+ "String": {
1350
+ StartsWith: "Começa com",
1351
+ EndsWith: "Termina com",
1352
+ Contains: "Contém",
1353
+ NotContains: "Não contém",
1354
+ In: "Está em"
1355
+ },
1356
+ "Boolean": {
1357
+ True: "Verdadeiro",
1358
+ False: "Falso"
1359
+ },
1360
+ DateOrNumber: {
1361
+ GreaterThan: "Maior que",
1362
+ LessThan: "Menor que",
1363
+ GreaterThanOrEqualTo: "Maior que ou igual à",
1364
+ LessThanOrEqualTo: "Menor que ou igual à"
1365
+ },
1366
+ "Date": {
1367
+ Between: "Entre"
1368
+ },
1369
+ "Number": {
1370
+ In: "Está em"
1371
+ }
1372
+ },
1373
+ ColumnsManager: {
1374
+ Apply: "Aplicar"
1375
+ },
1376
+ SaveSearch: {
1377
+ Title: "Salvar consulta",
1378
+ Save: "Salvar",
1379
+ Cancel: "Cancelar",
1380
+ Name: "Nome",
1381
+ IsDefault: "É padrão",
1382
+ IsDefaultHint: "Se esta opção estiver marcada, esta consulta será carregada por padrão.",
1383
+ NoSavedViews: "Sem consultas salvas"
1384
+ },
1385
+ SavedViews: {
1386
+ ButtonTitle: "Consultas salvas",
1387
+ MarkAsDefault: "Mark como padrão (carrega automaticamente)",
1388
+ Duplicate: "Duplicar",
1389
+ DuplicateSuffix: "cópia",
1390
+ Edit: "Editar",
1391
+ Remove: "Remover",
1392
+ ConfirmRemove: "Deseja realmente remover a consulta \"{{view}}\"?<br><br><b class='text-danger'>Esta ação não pode ser desfeita.</b>",
1393
+ NameNotUnique: "Já existe uma consulta com esse nome, favor escolher outro."
1394
+ }
1395
+ }
1396
+ };
1397
+ var pt = {
1398
+ UpDevs: UpDevs
1399
+ };
1400
+
1401
+ var pt$1 = /*#__PURE__*/Object.freeze({
1402
+ __proto__: null,
1403
+ UpDevs: UpDevs,
1404
+ default: pt
1405
+ });
1406
+
1407
+ class FiltersOperandsStore extends BaseStore {
1408
+ constructor(configService) {
1409
+ super({ baseUrl: configService.config.urlToLoadOperandsFromServer || '' });
1410
+ }
1411
+ load(fieldType) {
1412
+ return this._requestService.makeGet(this.getRequestModel(fieldType.toString()));
1413
+ }
1414
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: FiltersOperandsStore, deps: [{ token: UpdTableConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1415
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: FiltersOperandsStore }); }
1416
+ }
1417
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: FiltersOperandsStore, decorators: [{
1418
+ type: Injectable
1419
+ }], ctorParameters: () => [{ type: UpdTableConfigService }] });
1420
+
1421
+ const translationKey$3 = 'UpDevs.Table.Filters.General';
1422
+ class FilterOperandsListConfig {
1423
+ static { this.options = {
1424
+ [FilterOperandEnum.Equals]: {
1425
+ operand: FilterOperandEnum.Equals,
1426
+ text: { text: `${translationKey$3}.Equals`, isTranslated: false },
1427
+ icon: { tablerIcon: 'equal' },
1428
+ requiresValue: true
1429
+ },
1430
+ [FilterOperandEnum.NotEquals]: {
1431
+ operand: FilterOperandEnum.NotEquals,
1432
+ text: { text: `${translationKey$3}.NotEquals`, isTranslated: false },
1433
+ icon: { tablerIcon: 'equal-not' },
1434
+ requiresValue: true
1435
+ },
1436
+ [FilterOperandEnum.IsEmpty]: {
1437
+ operand: FilterOperandEnum.IsEmpty,
1438
+ text: { text: `${translationKey$3}.IsEmpty`, isTranslated: false },
1439
+ icon: { tablerIcon: 'droplet' },
1440
+ requiresValue: false
1441
+ },
1442
+ [FilterOperandEnum.IsNotEmpty]: {
1443
+ operand: FilterOperandEnum.IsNotEmpty,
1444
+ text: { text: `${translationKey$3}.IsNotEmpty`, isTranslated: false },
1445
+ icon: { tablerIcon: 'droplet', tablerIconType: 'solid' },
1446
+ requiresValue: false
1447
+ }
1448
+ }; }
1449
+ }
1450
+
1451
+ const translationKey$2 = 'UpDevs.Table.Filters.String';
1452
+ class StringFilterOperandsListModel {
1453
+ static { this.options = {
1454
+ [FilterOperandEnum.Equals]: FilterOperandsListConfig.options[FilterOperandEnum.Equals],
1455
+ [FilterOperandEnum.NotEquals]: FilterOperandsListConfig.options[FilterOperandEnum.NotEquals],
1456
+ [FilterOperandEnum.StartsWith]: {
1457
+ operand: FilterOperandEnum.StartsWith,
1458
+ text: { text: `${translationKey$2}.StartsWith`, isTranslated: false },
1459
+ icon: { tablerIcon: 'brackets-contain-start' },
1460
+ requiresValue: true
1461
+ },
1462
+ [FilterOperandEnum.EndsWith]: {
1463
+ operand: FilterOperandEnum.EndsWith,
1464
+ text: { text: `${translationKey$2}.EndsWith`, isTranslated: false },
1465
+ icon: { tablerIcon: 'brackets-contain-end' },
1466
+ requiresValue: true
1467
+ },
1468
+ [FilterOperandEnum.Contains]: {
1469
+ operand: FilterOperandEnum.Contains,
1470
+ text: { text: `${translationKey$2}.Contains`, isTranslated: false },
1471
+ icon: { tablerIcon: 'brackets-contain' },
1472
+ requiresValue: true
1473
+ },
1474
+ [FilterOperandEnum.NotContains]: {
1475
+ operand: FilterOperandEnum.NotContains,
1476
+ text: { text: `${translationKey$2}.NotContains`, isTranslated: false },
1477
+ icon: { tablerIcon: 'brackets-off' },
1478
+ requiresValue: true
1479
+ },
1480
+ [FilterOperandEnum.IsEmpty]: FilterOperandsListConfig.options[FilterOperandEnum.IsEmpty],
1481
+ [FilterOperandEnum.IsNotEmpty]: FilterOperandsListConfig.options[FilterOperandEnum.IsNotEmpty],
1482
+ [FilterOperandEnum.In]: {
1483
+ operand: FilterOperandEnum.In,
1484
+ text: { text: `${translationKey$2}.In`, isTranslated: false },
1485
+ icon: { tablerIcon: 'spacing-horizontal' },
1486
+ requiresValue: true
1487
+ }
1488
+ }; }
1489
+ static get optionsAsList() {
1490
+ return (Object.values(this.options) || []);
1491
+ }
1492
+ }
1493
+
1494
+ const translationKey$1 = 'UpDevs.Table.Filters.DateOrNumber';
1495
+ class DateOrNumberOperandsListConfig {
1496
+ static { this.options = {
1497
+ [FilterDateOperandEnum.GreaterThan]: {
1498
+ operand: FilterDateOperandEnum.GreaterThan,
1499
+ text: { text: `${translationKey$1}.GreaterThan`, isTranslated: false },
1500
+ icon: { tablerIcon: 'math-greater' },
1501
+ requiresValue: true
1502
+ },
1503
+ [FilterDateOperandEnum.LessThan]: {
1504
+ operand: FilterDateOperandEnum.LessThan,
1505
+ text: { text: `${translationKey$1}.LessThan`, isTranslated: false },
1506
+ icon: { tablerIcon: 'math-lower' },
1507
+ requiresValue: true
1508
+ },
1509
+ [FilterDateOperandEnum.GreaterThanOrEqualTo]: {
1510
+ operand: FilterDateOperandEnum.GreaterThanOrEqualTo,
1511
+ text: { text: `${translationKey$1}.GreaterThanOrEqualTo`, isTranslated: false },
1512
+ icon: { tablerIcon: 'math-equal-greater' },
1513
+ requiresValue: true
1514
+ },
1515
+ [FilterDateOperandEnum.LessThanOrEqualTo]: {
1516
+ operand: FilterDateOperandEnum.LessThanOrEqualTo,
1517
+ text: { text: `${translationKey$1}.LessThanOrEqualTo`, isTranslated: false },
1518
+ icon: { tablerIcon: 'math-equal-lower' },
1519
+ requiresValue: true
1520
+ }
1521
+ }; }
1522
+ }
1523
+
1524
+ class NumberFilterOperandsListModel {
1525
+ static { this.options = {
1526
+ [FilterNumberOperandEnum.Equals]: FilterOperandsListConfig.options[FilterOperandEnum.Equals],
1527
+ [FilterNumberOperandEnum.NotEquals]: FilterOperandsListConfig.options[FilterOperandEnum.NotEquals],
1528
+ [FilterNumberOperandEnum.GreaterThan]: DateOrNumberOperandsListConfig.options[FilterDateOperandEnum.GreaterThan],
1529
+ [FilterNumberOperandEnum.LessThan]: DateOrNumberOperandsListConfig.options[FilterDateOperandEnum.LessThan],
1530
+ [FilterNumberOperandEnum.GreaterThanOrEqualTo]: DateOrNumberOperandsListConfig.options[FilterDateOperandEnum.GreaterThanOrEqualTo],
1531
+ [FilterNumberOperandEnum.LessThanOrEqualTo]: DateOrNumberOperandsListConfig.options[FilterDateOperandEnum.LessThanOrEqualTo],
1532
+ [FilterNumberOperandEnum.IsEmpty]: FilterOperandsListConfig.options[FilterOperandEnum.IsEmpty],
1533
+ [FilterNumberOperandEnum.IsNotEmpty]: FilterOperandsListConfig.options[FilterOperandEnum.IsNotEmpty],
1534
+ [FilterNumberOperandEnum.In]: {
1535
+ operand: FilterNumberOperandEnum.In,
1536
+ text: { text: 'UpDevs.Table.Filters.Number.In', isTranslated: false },
1537
+ icon: { tablerIcon: 'spacing-horizontal' },
1538
+ requiresValue: true
1539
+ }
1540
+ }; }
1541
+ static get optionsAsList() {
1542
+ return (Object.values(this.options) || []);
1543
+ }
1544
+ }
1545
+
1546
+ const translationKey = 'UpDevs.Table.Filters.Boolean';
1547
+ class BooleanFilterOperandsListModel {
1548
+ static { this.options = {
1549
+ [FilterBooleanOperandEnum.True]: {
1550
+ operand: FilterBooleanOperandEnum.True,
1551
+ text: { text: `${translationKey}.True`, isTranslated: false },
1552
+ icon: { tablerIcon: 'toggle-right' },
1553
+ requiresValue: false
1554
+ },
1555
+ [FilterBooleanOperandEnum.False]: {
1556
+ operand: FilterBooleanOperandEnum.False,
1557
+ text: { text: `${translationKey}.False`, isTranslated: false },
1558
+ icon: { tablerIcon: 'toggle-left' },
1559
+ requiresValue: false
1560
+ },
1561
+ [FilterBooleanOperandEnum.IsEmpty]: FilterOperandsListConfig.options[FilterOperandEnum.IsEmpty],
1562
+ [FilterBooleanOperandEnum.IsNotEmpty]: FilterOperandsListConfig.options[FilterOperandEnum.IsNotEmpty]
1563
+ }; }
1564
+ static get optionsAsList() {
1565
+ return (Object.values(this.options) || []);
1566
+ }
1567
+ }
1568
+
1569
+ class DateFilterOperandsListModel {
1570
+ static { this.options = {
1571
+ [FilterDateOperandEnum.Equals]: FilterOperandsListConfig.options[FilterOperandEnum.Equals],
1572
+ [FilterDateOperandEnum.NotEquals]: FilterOperandsListConfig.options[FilterOperandEnum.NotEquals],
1573
+ [FilterDateOperandEnum.GreaterThan]: DateOrNumberOperandsListConfig.options[FilterDateOperandEnum.GreaterThan],
1574
+ [FilterDateOperandEnum.LessThan]: DateOrNumberOperandsListConfig.options[FilterDateOperandEnum.LessThan],
1575
+ [FilterDateOperandEnum.GreaterThanOrEqualTo]: DateOrNumberOperandsListConfig.options[FilterDateOperandEnum.GreaterThanOrEqualTo],
1576
+ [FilterDateOperandEnum.LessThanOrEqualTo]: DateOrNumberOperandsListConfig.options[FilterDateOperandEnum.LessThanOrEqualTo],
1577
+ [FilterDateOperandEnum.IsEmpty]: FilterOperandsListConfig.options[FilterOperandEnum.IsEmpty],
1578
+ [FilterDateOperandEnum.IsNotEmpty]: FilterOperandsListConfig.options[FilterOperandEnum.IsNotEmpty],
1579
+ [FilterDateOperandEnum.Between]: {
1580
+ operand: FilterDateOperandEnum.Between,
1581
+ text: { text: 'UpDevs.Table.Filters.Date.Between', isTranslated: false },
1582
+ icon: { tablerIcon: 'spacing-horizontal' },
1583
+ requiresValue: true
1584
+ }
1585
+ }; }
1586
+ static get optionsAsList() {
1587
+ return (Object.values(this.options) || []);
1588
+ }
1589
+ }
1590
+
1591
+ class GuidFilterOperandsListModel {
1592
+ static { this.options = {
1593
+ [FilterGuidOperandEnum.Equals]: FilterOperandsListConfig.options[FilterOperandEnum.Equals],
1594
+ [FilterGuidOperandEnum.NotEquals]: FilterOperandsListConfig.options[FilterOperandEnum.NotEquals],
1595
+ [FilterGuidOperandEnum.IsEmpty]: FilterOperandsListConfig.options[FilterOperandEnum.IsEmpty],
1596
+ [FilterGuidOperandEnum.IsNotEmpty]: FilterOperandsListConfig.options[FilterOperandEnum.IsNotEmpty],
1597
+ [FilterGuidOperandEnum.In]: StringFilterOperandsListModel.options[FilterOperandEnum.In]
1598
+ }; }
1599
+ static get optionsAsList() {
1600
+ return (Object.values(this.options) || []);
1601
+ }
1602
+ }
1603
+
1604
+ class DefaultFiltersOperandsService extends FiltersOperandsService {
1605
+ get isLoaded() {
1606
+ return this._isLoaded;
1607
+ }
1608
+ constructor() {
1609
+ super();
1610
+ this._isLoaded = false;
1611
+ this.configService = inject(UpdTableConfigService);
1612
+ this.filterOperandsStore = inject(FiltersOperandsStore);
1613
+ this.cachedData = {};
1614
+ if (!!this.configService.config.urlToLoadOperandsFromServer) {
1615
+ forkJoin({
1616
+ guidOps: this.filterOperandsStore.load(DataTypeEnum.Guid),
1617
+ stringOps: this.filterOperandsStore.load(DataTypeEnum.String),
1618
+ numberOps: this.filterOperandsStore.load(DataTypeEnum.Number),
1619
+ dateOps: this.filterOperandsStore.load(DataTypeEnum.Date),
1620
+ booleanOps: this.filterOperandsStore.load(DataTypeEnum.Boolean)
1621
+ }).subscribe(resp => {
1622
+ this.cachedData[DataTypeEnum.Guid] = resp.guidOps;
1623
+ this.cachedData[DataTypeEnum.String] = resp.stringOps;
1624
+ this.cachedData[DataTypeEnum.Number] = resp.numberOps;
1625
+ this.cachedData[DataTypeEnum.Date] = resp.dateOps;
1626
+ this.cachedData[DataTypeEnum.Boolean] = resp.booleanOps;
1627
+ this._isLoaded = true;
1628
+ });
1629
+ }
1630
+ else {
1631
+ this.cachedData[DataTypeEnum.Guid] = GuidFilterOperandsListModel.optionsAsList;
1632
+ this.cachedData[DataTypeEnum.String] = StringFilterOperandsListModel.optionsAsList;
1633
+ this.cachedData[DataTypeEnum.Number] = NumberFilterOperandsListModel.optionsAsList;
1634
+ this.cachedData[DataTypeEnum.Date] = DateFilterOperandsListModel.optionsAsList;
1635
+ this.cachedData[DataTypeEnum.Boolean] = BooleanFilterOperandsListModel.optionsAsList;
1636
+ this._isLoaded = true;
1637
+ }
1638
+ }
1639
+ getOperands(type) {
1640
+ return this._isLoaded ? this.cachedData[type] : [];
1641
+ }
1642
+ getAllOperands() {
1643
+ return this.cachedData;
1644
+ }
1645
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: DefaultFiltersOperandsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1646
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: DefaultFiltersOperandsService }); }
1647
+ }
1648
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: DefaultFiltersOperandsService, decorators: [{
1649
+ type: Injectable
1650
+ }], ctorParameters: () => [] });
1651
+
1652
+ class UpdTableModule {
1653
+ constructor(translocoService) {
1654
+ translocoService.setFallbackLangForMissingTranslation({ fallbackLang: 'en' });
1655
+ translocoService.setTranslation(en$1, 'en');
1656
+ translocoService.setTranslation(pt$1, 'pt');
1657
+ }
1658
+ /**
1659
+ * Sets up the table module with the provided configuration.
1660
+ * @param config Configuration.
1661
+ */
1662
+ static forRoot(config) {
1663
+ const customizableProviders = [
1664
+ config.filtersOperandsService || {
1665
+ provide: FiltersOperandsService,
1666
+ useClass: DefaultFiltersOperandsService
1667
+ }
1668
+ ];
1669
+ return {
1670
+ ngModule: UpdTableModule,
1671
+ providers: [
1672
+ { provide: TableConstants.defaultOptionsInjectionToken, useValue: config },
1673
+ ...customizableProviders
1674
+ ]
1675
+ };
1676
+ }
1677
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: UpdTableModule, deps: [{ token: i1$1.TranslocoService }], target: i0.ɵɵFactoryTarget.NgModule }); }
1678
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.0", ngImport: i0, type: UpdTableModule, declarations: [TableComponent,
1679
+ SearchSectionComponent,
1680
+ FilterRowComponent,
1681
+ TableColumnDirective,
1682
+ NumberColumnComponent,
1683
+ DateTimeColumnComponent,
1684
+ BooleanColumnComponent,
1685
+ TextColumnComponent,
1686
+ ColumnsManagerComponent,
1687
+ SaveSearchComponent], imports: [CommonModule,
1688
+ TranslocoDirective,
1689
+ UpdIconsModule,
1690
+ UpdButtonModule,
1691
+ UpdModalModule,
1692
+ UpdPaginatorModule,
1693
+ UpdInputModule,
1694
+ UpdCheckboxModule,
1695
+ UpdSelectModule,
1696
+ UpdDragAndDropModule,
1697
+ UpdFormModule,
1698
+ UpdDropdownModule,
1699
+ UpdTimePickerModule,
1700
+ UpdBadgeModule,
1701
+ UpdPopoverModule], exports: [TableComponent,
1702
+ TableColumnDirective] }); }
1703
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: UpdTableModule, providers: [
1704
+ UpdTableConfigService,
1705
+ FiltersOperandsStore,
1706
+ SavedViewsStorage
1707
+ ], imports: [CommonModule,
1708
+ UpdIconsModule,
1709
+ UpdButtonModule,
1710
+ UpdModalModule,
1711
+ UpdPaginatorModule,
1712
+ UpdInputModule,
1713
+ UpdCheckboxModule,
1714
+ UpdSelectModule,
1715
+ UpdDragAndDropModule,
1716
+ UpdFormModule,
1717
+ UpdDropdownModule,
1718
+ UpdTimePickerModule,
1719
+ UpdBadgeModule,
1720
+ UpdPopoverModule] }); }
1721
+ }
1722
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: UpdTableModule, decorators: [{
1723
+ type: NgModule,
1724
+ args: [{
1725
+ imports: [
1726
+ CommonModule,
1727
+ TranslocoDirective,
1728
+ UpdIconsModule,
1729
+ UpdButtonModule,
1730
+ UpdModalModule,
1731
+ UpdPaginatorModule,
1732
+ UpdInputModule,
1733
+ UpdCheckboxModule,
1734
+ UpdSelectModule,
1735
+ UpdDragAndDropModule,
1736
+ UpdFormModule,
1737
+ UpdDropdownModule,
1738
+ UpdTimePickerModule,
1739
+ UpdBadgeModule,
1740
+ UpdPopoverModule
1741
+ ],
1742
+ declarations: [
1743
+ TableComponent,
1744
+ SearchSectionComponent,
1745
+ FilterRowComponent,
1746
+ TableColumnDirective,
1747
+ NumberColumnComponent,
1748
+ DateTimeColumnComponent,
1749
+ BooleanColumnComponent,
1750
+ TextColumnComponent,
1751
+ ColumnsManagerComponent,
1752
+ SaveSearchComponent
1753
+ ],
1754
+ exports: [
1755
+ TableComponent,
1756
+ TableColumnDirective
1757
+ ],
1758
+ providers: [
1759
+ UpdTableConfigService,
1760
+ FiltersOperandsStore,
1761
+ SavedViewsStorage
1762
+ ]
1763
+ }]
1764
+ }], ctorParameters: () => [{ type: i1$1.TranslocoService }] });
1765
+
1766
+ /**
1767
+ * Generated bundle index. Do not edit.
1768
+ */
1769
+
1770
+ export { BaseColumnModel, BooleanColumnModel, ColumnTypeEnum, CustomColumnModel, DateTimeColumnModel, FiltersOperandsService, GuidColumnModel, ImageColumnModel, NumberColumnModel, TableColumnDirective, TableComponent, TextColumnModel, UpdTableModule };
1771
+ //# sourceMappingURL=updevs-components-table.mjs.map