ngx-vector-components 4.91.0 → 4.93.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (358) hide show
  1. package/CHANGELOG.md +1220 -1208
  2. package/README.md +35 -35
  3. package/assets/icons/chevron_down_icon.svg +3 -3
  4. package/assets/icons/home_menu_icon.svg +3 -3
  5. package/assets/icons/logout_icon.svg +9 -9
  6. package/assets/icons/menu_footer_icon.svg +3 -3
  7. package/assets/icons/menu_hamburguer_icon.svg +3 -3
  8. package/assets/icons/terms_of_use_icon.svg +9 -9
  9. package/assets/icons/vector_admin_icon.svg +4 -4
  10. package/assets/icons/vector_fintech_icon.svg +3 -3
  11. package/assets/icons/vector_logtech_icon.svg +6 -6
  12. package/assets/icons/vector_marketplace_icon.svg +3 -3
  13. package/assets/images/bunge_logo.svg +23 -23
  14. package/assets/images/cofco_logo.svg +117 -117
  15. package/assets/images/emote_bad.svg +6 -6
  16. package/assets/images/emote_cool.svg +5 -5
  17. package/assets/images/emote_nice.svg +5 -5
  18. package/assets/images/success_sign.svg +4 -4
  19. package/assets/images/vector-logo-horizontal-inverse-color.svg +13 -13
  20. package/assets/images/vector_logo_horizontal.svg +13 -13
  21. package/assets/images/warn_sign.svg +4 -4
  22. package/assets/styles/_fonts.scss +114 -114
  23. package/assets/styles/_mixins.scss +7 -7
  24. package/assets/styles/_primeng-custom-theme.scss +982 -982
  25. package/assets/styles/_spinner.scss +35 -35
  26. package/assets/styles/_styles.scss +115 -115
  27. package/assets/styles/_variables.scss +27 -27
  28. package/esm2022/lib/components/badge/badge.component.mjs +39 -0
  29. package/esm2022/lib/components/badge/badge.module.mjs +19 -0
  30. package/{esm2020 → esm2022}/lib/components/badge/index.mjs +3 -3
  31. package/esm2022/lib/components/breadcrumb/breadcrumb.component.mjs +66 -0
  32. package/esm2022/lib/components/breadcrumb/breadcrumb.module.mjs +18 -0
  33. package/{esm2020 → esm2022}/lib/components/breadcrumb/index.mjs +3 -3
  34. package/esm2022/lib/components/crud-base/crud-base.component.mjs +47 -0
  35. package/{esm2020 → esm2022}/lib/components/crud-base/index.mjs +2 -2
  36. package/esm2022/lib/components/crud-footer/crud-footer.component.mjs +32 -0
  37. package/esm2022/lib/components/crud-footer/crud-footer.module.mjs +20 -0
  38. package/{esm2020 → esm2022}/lib/components/crud-footer/index.mjs +3 -3
  39. package/esm2022/lib/components/crud-header/crud-header.component.mjs +30 -0
  40. package/esm2022/lib/components/crud-header/crud-header.module.mjs +19 -0
  41. package/{esm2020 → esm2022}/lib/components/crud-header/index.mjs +3 -3
  42. package/esm2022/lib/components/crud-history/crud-history.component.mjs +82 -0
  43. package/esm2022/lib/components/crud-history/crud-history.module.mjs +20 -0
  44. package/{esm2020 → esm2022}/lib/components/crud-history/index.mjs +3 -3
  45. package/esm2022/lib/components/fields/button/button.component.mjs +41 -0
  46. package/{esm2020 → esm2022}/lib/components/fields/button/index.mjs +2 -2
  47. package/esm2022/lib/components/fields/calendar-field/calendar-field.component.mjs +74 -0
  48. package/{esm2020 → esm2022}/lib/components/fields/calendar-field/index.mjs +2 -2
  49. package/esm2022/lib/components/fields/checkbox-field/checkbox-field.component.mjs +46 -0
  50. package/{esm2020 → esm2022}/lib/components/fields/checkbox-field/index.mjs +2 -2
  51. package/esm2022/lib/components/fields/currency-field/currency-field.component.mjs +98 -0
  52. package/{esm2020 → esm2022}/lib/components/fields/currency-field/index.mjs +2 -2
  53. package/esm2022/lib/components/fields/data-table/data-table.component.mjs +386 -0
  54. package/{esm2020 → esm2022}/lib/components/fields/data-table/index.mjs +2 -2
  55. package/esm2022/lib/components/fields/dropdown-field/dropdown-field.component.mjs +204 -0
  56. package/{esm2020 → esm2022}/lib/components/fields/dropdown-field/index.mjs +2 -2
  57. package/{esm2020 → esm2022}/lib/components/fields/field-error-message/field-error-message.component.mjs +30 -30
  58. package/{esm2020 → esm2022}/lib/components/fields/field-error-message/index.mjs +2 -2
  59. package/esm2022/lib/components/fields/fields.module.mjs +211 -0
  60. package/esm2022/lib/components/fields/filters/filters.component.mjs +203 -0
  61. package/{esm2020 → esm2022}/lib/components/fields/filters/index.mjs +2 -2
  62. package/{esm2020 → esm2022}/lib/components/fields/index.mjs +19 -19
  63. package/{esm2020 → esm2022}/lib/components/fields/input-number-field/index.mjs +2 -2
  64. package/esm2022/lib/components/fields/input-number-field/input-number-field.component.mjs +85 -0
  65. package/{esm2020 → esm2022}/lib/components/fields/multiselect-field/index.mjs +2 -2
  66. package/esm2022/lib/components/fields/multiselect-field/multiselect-field.component.mjs +50 -0
  67. package/{esm2020 → esm2022}/lib/components/fields/percentage-field/index.mjs +2 -2
  68. package/esm2022/lib/components/fields/percentage-field/percentage-field.component.mjs +42 -0
  69. package/{esm2020 → esm2022}/lib/components/fields/radio-button-field/index.mjs +2 -2
  70. package/esm2022/lib/components/fields/radio-button-field/radio-button-field.component.mjs +48 -0
  71. package/{esm2020 → esm2022}/lib/components/fields/range-value/index.mjs +2 -2
  72. package/{esm2020 → esm2022}/lib/components/fields/range-value/range-value.component.mjs +72 -72
  73. package/{esm2020 → esm2022}/lib/components/fields/search-field/index.mjs +2 -2
  74. package/esm2022/lib/components/fields/search-field/search-field.component.mjs +33 -0
  75. package/{esm2020 → esm2022}/lib/components/fields/select-button-field/index.mjs +2 -2
  76. package/esm2022/lib/components/fields/select-button-field/select-button-field.component.mjs +20 -0
  77. package/{esm2020 → esm2022}/lib/components/fields/text-field/index.mjs +2 -2
  78. package/esm2022/lib/components/fields/text-field/text-field.component.mjs +229 -0
  79. package/{esm2020 → esm2022}/lib/components/fields/textarea-field/index.mjs +2 -2
  80. package/esm2022/lib/components/fields/textarea-field/textarea-field.component.mjs +81 -0
  81. package/esm2022/lib/components/generic-error-modal/generic-error-modal.component.mjs +39 -0
  82. package/esm2022/lib/components/generic-error-modal/generic-error-modal.module.mjs +20 -0
  83. package/{esm2020 → esm2022}/lib/components/generic-error-modal/index.mjs +3 -3
  84. package/esm2022/lib/components/generic-modal/generic-modal.component.mjs +66 -0
  85. package/esm2022/lib/components/generic-modal/generic-modal.module.mjs +20 -0
  86. package/{esm2020 → esm2022}/lib/components/generic-modal/index.mjs +3 -3
  87. package/{esm2020 → esm2022}/lib/components/index.mjs +14 -14
  88. package/{esm2020 → esm2022}/lib/components/menu/index.mjs +4 -4
  89. package/esm2022/lib/components/menu/menu.component.mjs +305 -0
  90. package/esm2022/lib/components/menu/menu.module.mjs +20 -0
  91. package/esm2022/lib/components/menu/sub-menus-list/sub-menus-list.component.mjs +42 -0
  92. package/{esm2020 → esm2022}/lib/components/panel/index.mjs +3 -3
  93. package/esm2022/lib/components/panel/panel.component.mjs +15 -0
  94. package/esm2022/lib/components/panel/panel.module.mjs +19 -0
  95. package/{esm2020 → esm2022}/lib/components/score/index.mjs +3 -3
  96. package/esm2022/lib/components/score/score.component.mjs +17 -0
  97. package/{esm2020 → esm2022}/lib/components/score/score.module.mjs +16 -16
  98. package/{esm2020 → esm2022}/lib/components/top-bar/index.mjs +3 -3
  99. package/esm2022/lib/components/top-bar/top-bar.component.mjs +142 -0
  100. package/esm2022/lib/components/top-bar/top-bar.module.mjs +20 -0
  101. package/{esm2020 → esm2022}/lib/guards/crud-list-has-items.guard.mjs +22 -22
  102. package/{esm2020 → esm2022}/lib/guards/get-token-by-guid.guard.mjs +54 -54
  103. package/{esm2020 → esm2022}/lib/guards/has-permission.guard.mjs +27 -27
  104. package/{esm2020 → esm2022}/lib/guards/index.mjs +6 -6
  105. package/{esm2020 → esm2022}/lib/guards/role.guard.mjs +24 -24
  106. package/{esm2020 → esm2022}/lib/guards/token-is-present.guard.mjs +26 -26
  107. package/{esm2020 → esm2022}/lib/interceptors/http-interceptor.mjs +185 -185
  108. package/{esm2020 → esm2022}/lib/interceptors/index.mjs +2 -2
  109. package/{esm2020 → esm2022}/lib/models/app-name.enum.mjs +10 -10
  110. package/{esm2020 → esm2022}/lib/models/boolean-type.enum.mjs +6 -6
  111. package/{esm2020 → esm2022}/lib/models/crud-history.model.mjs +3 -3
  112. package/{esm2020 → esm2022}/lib/models/crud-mode.enum.mjs +7 -7
  113. package/{esm2020 → esm2022}/lib/models/currency.enum.mjs +7 -7
  114. package/esm2022/lib/models/data-table.model.mjs +23 -0
  115. package/{esm2020 → esm2022}/lib/models/document-type.enum.mjs +6 -6
  116. package/{esm2020 → esm2022}/lib/models/filters.model.mjs +2 -2
  117. package/{esm2020 → esm2022}/lib/models/generic-modal.model.mjs +2 -2
  118. package/esm2022/lib/models/http-response.model.mjs +2 -0
  119. package/{esm2020 → esm2022}/lib/models/index.mjs +18 -18
  120. package/{esm2020 → esm2022}/lib/models/ip-info.enum.mjs +2 -2
  121. package/{esm2020 → esm2022}/lib/models/list-item.model.mjs +2 -2
  122. package/{esm2020 → esm2022}/lib/models/locale.enum.mjs +7 -7
  123. package/esm2022/lib/models/menu-item.model.mjs +2 -0
  124. package/{esm2020 → esm2022}/lib/models/message-status.enum.mjs +8 -8
  125. package/{esm2020 → esm2022}/lib/models/profile.model.mjs +271 -264
  126. package/{esm2020 → esm2022}/lib/models/role.enum.mjs +5 -5
  127. package/{esm2020 → esm2022}/lib/models/status.enum.mjs +8 -8
  128. package/{esm2020 → esm2022}/lib/models/topbar.model.mjs +2 -2
  129. package/esm2022/lib/models/vector-app.model.mjs +2 -0
  130. package/{esm2020 → esm2022}/lib/models/vector-notification.model.mjs +2 -2
  131. package/{esm2020 → esm2022}/lib/models/view.enum.mjs +7 -7
  132. package/{esm2020 → esm2022}/lib/pipes/currency-brl.pipe.mjs +18 -18
  133. package/{esm2020 → esm2022}/lib/pipes/format-document.pipe.mjs +17 -17
  134. package/{esm2020 → esm2022}/lib/pipes/index.mjs +9 -9
  135. package/{esm2020 → esm2022}/lib/pipes/mask.pipe.mjs +21 -21
  136. package/{esm2020 → esm2022}/lib/pipes/not-hidden.pipe.mjs +16 -16
  137. package/{esm2020 → esm2022}/lib/pipes/only-active.pipe.mjs +16 -16
  138. package/{esm2020 → esm2022}/lib/pipes/pipes.module.mjs +50 -50
  139. package/{esm2020 → esm2022}/lib/pipes/remove-last-child.pipe.mjs +18 -18
  140. package/{esm2020 → esm2022}/lib/pipes/unread-notifications.pipe.mjs +15 -15
  141. package/{esm2020 → esm2022}/lib/resolvers/get-selected-crud-item.resolver.mjs +28 -28
  142. package/{esm2020 → esm2022}/lib/resolvers/index.mjs +2 -2
  143. package/{esm2020 → esm2022}/lib/services/auth.service.mjs +77 -77
  144. package/esm2022/lib/services/base-dropdown.mjs +2 -0
  145. package/{esm2020 → esm2022}/lib/services/crud-base.service.mjs +14 -14
  146. package/{esm2020 → esm2022}/lib/services/enum.service.mjs +43 -43
  147. package/{esm2020 → esm2022}/lib/services/error-message.service.mjs +16 -16
  148. package/{esm2020 → esm2022}/lib/services/geolocation.service.mjs +23 -23
  149. package/{esm2020 → esm2022}/lib/services/index.mjs +13 -13
  150. package/{esm2020 → esm2022}/lib/services/loading.service.mjs +15 -15
  151. package/{esm2020 → esm2022}/lib/services/menu.service.mjs +152 -152
  152. package/{esm2020 → esm2022}/lib/services/modal.service.mjs +15 -15
  153. package/{esm2020 → esm2022}/lib/services/notifications.service.mjs +64 -64
  154. package/{esm2020 → esm2022}/lib/services/profile.service.mjs +103 -103
  155. package/{esm2020 → esm2022}/lib/services/storage.service.mjs +108 -108
  156. package/esm2022/lib/shared/shared.module.mjs +19 -0
  157. package/{esm2020 → esm2022}/lib/utils/cpf-cnpj-validator.util.mjs +116 -116
  158. package/{esm2020 → esm2022}/lib/utils/file.util.mjs +15 -15
  159. package/{esm2020 → esm2022}/lib/utils/index.mjs +8 -8
  160. package/esm2022/lib/utils/mask.util.mjs +76 -0
  161. package/{esm2020 → esm2022}/lib/utils/object.util.mjs +27 -27
  162. package/{esm2020 → esm2022}/lib/utils/string.util.mjs +16 -16
  163. package/{esm2020 → esm2022}/lib/utils/validation.util.mjs +234 -234
  164. package/{esm2020 → esm2022}/lib/utils/window.util.mjs +9 -9
  165. package/{esm2020 → esm2022}/ngx-vector-components.mjs +4 -4
  166. package/{esm2020 → esm2022}/public-api.mjs +9 -9
  167. package/fesm2022/ngx-vector-components.mjs +4784 -0
  168. package/fesm2022/ngx-vector-components.mjs.map +1 -0
  169. package/{ngx-vector-components.d.ts → index.d.ts} +5 -5
  170. package/lib/components/badge/badge.component.d.ts +15 -15
  171. package/lib/components/badge/badge.module.d.ts +9 -9
  172. package/lib/components/badge/index.d.ts +2 -2
  173. package/lib/components/breadcrumb/breadcrumb.component.d.ts +19 -19
  174. package/lib/components/breadcrumb/breadcrumb.module.d.ts +8 -8
  175. package/lib/components/breadcrumb/index.d.ts +2 -2
  176. package/lib/components/crud-base/crud-base.component.d.ts +20 -20
  177. package/lib/components/crud-base/index.d.ts +1 -1
  178. package/lib/components/crud-footer/crud-footer.component.d.ts +13 -13
  179. package/lib/components/crud-footer/crud-footer.module.d.ts +10 -10
  180. package/lib/components/crud-footer/index.d.ts +2 -2
  181. package/lib/components/crud-header/crud-header.component.d.ts +11 -11
  182. package/lib/components/crud-header/crud-header.module.d.ts +9 -9
  183. package/lib/components/crud-header/index.d.ts +2 -2
  184. package/lib/components/crud-history/crud-history.component.d.ts +12 -12
  185. package/lib/components/crud-history/crud-history.module.d.ts +10 -10
  186. package/lib/components/crud-history/index.d.ts +2 -2
  187. package/lib/components/fields/button/button.component.d.ts +17 -17
  188. package/lib/components/fields/button/index.d.ts +1 -1
  189. package/lib/components/fields/calendar-field/calendar-field.component.d.ts +23 -23
  190. package/lib/components/fields/calendar-field/index.d.ts +1 -1
  191. package/lib/components/fields/checkbox-field/checkbox-field.component.d.ts +19 -19
  192. package/lib/components/fields/checkbox-field/index.d.ts +1 -1
  193. package/lib/components/fields/currency-field/currency-field.component.d.ts +32 -32
  194. package/lib/components/fields/currency-field/index.d.ts +1 -1
  195. package/lib/components/fields/data-table/data-table.component.d.ts +82 -82
  196. package/lib/components/fields/data-table/index.d.ts +1 -1
  197. package/lib/components/fields/dropdown-field/dropdown-field.component.d.ts +52 -52
  198. package/lib/components/fields/dropdown-field/index.d.ts +1 -1
  199. package/lib/components/fields/field-error-message/field-error-message.component.d.ts +10 -10
  200. package/lib/components/fields/field-error-message/index.d.ts +1 -1
  201. package/lib/components/fields/fields.module.d.ts +48 -48
  202. package/lib/components/fields/filters/filters.component.d.ts +63 -63
  203. package/lib/components/fields/filters/index.d.ts +1 -1
  204. package/lib/components/fields/index.d.ts +18 -18
  205. package/lib/components/fields/input-number-field/index.d.ts +1 -1
  206. package/lib/components/fields/input-number-field/input-number-field.component.d.ts +28 -28
  207. package/lib/components/fields/multiselect-field/index.d.ts +1 -1
  208. package/lib/components/fields/multiselect-field/multiselect-field.component.d.ts +16 -16
  209. package/lib/components/fields/percentage-field/index.d.ts +1 -1
  210. package/lib/components/fields/percentage-field/percentage-field.component.d.ts +16 -16
  211. package/lib/components/fields/radio-button-field/index.d.ts +1 -1
  212. package/lib/components/fields/radio-button-field/radio-button-field.component.d.ts +25 -25
  213. package/lib/components/fields/range-value/index.d.ts +1 -1
  214. package/lib/components/fields/range-value/range-value.component.d.ts +18 -18
  215. package/lib/components/fields/search-field/index.d.ts +1 -1
  216. package/lib/components/fields/search-field/search-field.component.d.ts +14 -14
  217. package/lib/components/fields/select-button-field/index.d.ts +1 -1
  218. package/lib/components/fields/select-button-field/select-button-field.component.d.ts +9 -9
  219. package/lib/components/fields/text-field/index.d.ts +1 -1
  220. package/lib/components/fields/text-field/text-field.component.d.ts +54 -54
  221. package/lib/components/fields/textarea-field/index.d.ts +1 -1
  222. package/lib/components/fields/textarea-field/textarea-field.component.d.ts +22 -22
  223. package/lib/components/generic-error-modal/generic-error-modal.component.d.ts +16 -15
  224. package/lib/components/generic-error-modal/generic-error-modal.module.d.ts +10 -10
  225. package/lib/components/generic-error-modal/index.d.ts +2 -2
  226. package/lib/components/generic-modal/generic-modal.component.d.ts +24 -24
  227. package/lib/components/generic-modal/generic-modal.module.d.ts +10 -10
  228. package/lib/components/generic-modal/index.d.ts +2 -2
  229. package/lib/components/index.d.ts +13 -13
  230. package/lib/components/menu/index.d.ts +3 -3
  231. package/lib/components/menu/menu.component.d.ts +53 -53
  232. package/lib/components/menu/menu.module.d.ts +10 -10
  233. package/lib/components/menu/sub-menus-list/sub-menus-list.component.d.ts +14 -14
  234. package/lib/components/panel/index.d.ts +2 -2
  235. package/lib/components/panel/panel.component.d.ts +8 -8
  236. package/lib/components/panel/panel.module.d.ts +9 -9
  237. package/lib/components/score/index.d.ts +2 -2
  238. package/lib/components/score/score.component.d.ts +9 -9
  239. package/lib/components/score/score.module.d.ts +7 -7
  240. package/lib/components/top-bar/index.d.ts +2 -2
  241. package/lib/components/top-bar/top-bar.component.d.ts +48 -48
  242. package/lib/components/top-bar/top-bar.module.d.ts +10 -10
  243. package/lib/guards/crud-list-has-items.guard.d.ts +10 -10
  244. package/lib/guards/get-token-by-guid.guard.d.ts +15 -15
  245. package/lib/guards/has-permission.guard.d.ts +13 -13
  246. package/lib/guards/index.d.ts +5 -5
  247. package/lib/guards/role.guard.d.ts +11 -11
  248. package/lib/guards/token-is-present.guard.d.ts +11 -11
  249. package/lib/interceptors/http-interceptor.d.ts +31 -31
  250. package/lib/interceptors/index.d.ts +1 -1
  251. package/lib/models/app-name.enum.d.ts +8 -8
  252. package/lib/models/boolean-type.enum.d.ts +4 -4
  253. package/lib/models/crud-history.model.d.ts +13 -13
  254. package/lib/models/crud-mode.enum.d.ts +5 -5
  255. package/lib/models/currency.enum.d.ts +5 -5
  256. package/lib/models/data-table.model.d.ts +65 -65
  257. package/lib/models/document-type.enum.d.ts +4 -4
  258. package/lib/models/filters.model.d.ts +4 -4
  259. package/lib/models/generic-modal.model.d.ts +13 -13
  260. package/lib/models/http-response.model.d.ts +48 -48
  261. package/lib/models/index.d.ts +17 -17
  262. package/lib/models/ip-info.enum.d.ts +6 -6
  263. package/lib/models/list-item.model.d.ts +7 -7
  264. package/lib/models/locale.enum.d.ts +5 -5
  265. package/lib/models/menu-item.model.d.ts +16 -16
  266. package/lib/models/message-status.enum.d.ts +6 -6
  267. package/lib/models/profile.model.d.ts +292 -285
  268. package/lib/models/role.enum.d.ts +3 -3
  269. package/lib/models/status.enum.d.ts +6 -6
  270. package/lib/models/topbar.model.d.ts +5 -5
  271. package/lib/models/vector-app.model.d.ts +9 -9
  272. package/lib/models/vector-notification.model.d.ts +8 -8
  273. package/lib/models/view.enum.d.ts +5 -5
  274. package/lib/pipes/currency-brl.pipe.d.ts +7 -7
  275. package/lib/pipes/format-document.pipe.d.ts +7 -7
  276. package/lib/pipes/index.d.ts +8 -8
  277. package/lib/pipes/mask.pipe.d.ts +7 -7
  278. package/lib/pipes/not-hidden.pipe.d.ts +7 -7
  279. package/lib/pipes/only-active.pipe.d.ts +7 -7
  280. package/lib/pipes/pipes.module.d.ts +13 -13
  281. package/lib/pipes/remove-last-child.pipe.d.ts +7 -7
  282. package/lib/pipes/unread-notifications.pipe.d.ts +9 -9
  283. package/lib/resolvers/get-selected-crud-item.resolver.d.ts +10 -10
  284. package/lib/resolvers/index.d.ts +1 -1
  285. package/lib/services/auth.service.d.ts +24 -24
  286. package/lib/services/base-dropdown.d.ts +7 -7
  287. package/lib/services/crud-base.service.d.ts +7 -7
  288. package/lib/services/enum.service.d.ts +13 -13
  289. package/lib/services/error-message.service.d.ts +8 -8
  290. package/lib/services/geolocation.service.d.ts +13 -13
  291. package/lib/services/index.d.ts +12 -12
  292. package/lib/services/loading.service.d.ts +7 -7
  293. package/lib/services/menu.service.d.ts +35 -35
  294. package/lib/services/modal.service.d.ts +7 -7
  295. package/lib/services/notifications.service.d.ts +13 -13
  296. package/lib/services/profile.service.d.ts +26 -26
  297. package/lib/services/storage.service.d.ts +43 -43
  298. package/lib/shared/shared.module.d.ts +10 -10
  299. package/lib/utils/cpf-cnpj-validator.util.d.ts +5 -5
  300. package/lib/utils/file.util.d.ts +4 -4
  301. package/lib/utils/index.d.ts +7 -7
  302. package/lib/utils/mask.util.d.ts +21 -21
  303. package/lib/utils/object.util.d.ts +5 -5
  304. package/lib/utils/string.util.d.ts +4 -4
  305. package/lib/utils/validation.util.d.ts +17 -17
  306. package/lib/utils/window.util.d.ts +4 -4
  307. package/package.json +18 -24
  308. package/public-api.d.ts +8 -8
  309. package/esm2020/lib/components/badge/badge.component.mjs +0 -39
  310. package/esm2020/lib/components/badge/badge.module.mjs +0 -19
  311. package/esm2020/lib/components/breadcrumb/breadcrumb.component.mjs +0 -66
  312. package/esm2020/lib/components/breadcrumb/breadcrumb.module.mjs +0 -18
  313. package/esm2020/lib/components/crud-base/crud-base.component.mjs +0 -47
  314. package/esm2020/lib/components/crud-footer/crud-footer.component.mjs +0 -32
  315. package/esm2020/lib/components/crud-footer/crud-footer.module.mjs +0 -20
  316. package/esm2020/lib/components/crud-header/crud-header.component.mjs +0 -30
  317. package/esm2020/lib/components/crud-header/crud-header.module.mjs +0 -19
  318. package/esm2020/lib/components/crud-history/crud-history.component.mjs +0 -82
  319. package/esm2020/lib/components/crud-history/crud-history.module.mjs +0 -20
  320. package/esm2020/lib/components/fields/button/button.component.mjs +0 -41
  321. package/esm2020/lib/components/fields/calendar-field/calendar-field.component.mjs +0 -74
  322. package/esm2020/lib/components/fields/checkbox-field/checkbox-field.component.mjs +0 -46
  323. package/esm2020/lib/components/fields/currency-field/currency-field.component.mjs +0 -98
  324. package/esm2020/lib/components/fields/data-table/data-table.component.mjs +0 -386
  325. package/esm2020/lib/components/fields/dropdown-field/dropdown-field.component.mjs +0 -204
  326. package/esm2020/lib/components/fields/fields.module.mjs +0 -213
  327. package/esm2020/lib/components/fields/filters/filters.component.mjs +0 -203
  328. package/esm2020/lib/components/fields/input-number-field/input-number-field.component.mjs +0 -85
  329. package/esm2020/lib/components/fields/multiselect-field/multiselect-field.component.mjs +0 -50
  330. package/esm2020/lib/components/fields/percentage-field/percentage-field.component.mjs +0 -42
  331. package/esm2020/lib/components/fields/radio-button-field/radio-button-field.component.mjs +0 -48
  332. package/esm2020/lib/components/fields/search-field/search-field.component.mjs +0 -33
  333. package/esm2020/lib/components/fields/select-button-field/select-button-field.component.mjs +0 -20
  334. package/esm2020/lib/components/fields/text-field/text-field.component.mjs +0 -229
  335. package/esm2020/lib/components/fields/textarea-field/textarea-field.component.mjs +0 -81
  336. package/esm2020/lib/components/generic-error-modal/generic-error-modal.component.mjs +0 -36
  337. package/esm2020/lib/components/generic-error-modal/generic-error-modal.module.mjs +0 -20
  338. package/esm2020/lib/components/generic-modal/generic-modal.component.mjs +0 -66
  339. package/esm2020/lib/components/generic-modal/generic-modal.module.mjs +0 -20
  340. package/esm2020/lib/components/menu/menu.component.mjs +0 -305
  341. package/esm2020/lib/components/menu/menu.module.mjs +0 -20
  342. package/esm2020/lib/components/menu/sub-menus-list/sub-menus-list.component.mjs +0 -42
  343. package/esm2020/lib/components/panel/panel.component.mjs +0 -15
  344. package/esm2020/lib/components/panel/panel.module.mjs +0 -19
  345. package/esm2020/lib/components/score/score.component.mjs +0 -17
  346. package/esm2020/lib/components/top-bar/top-bar.component.mjs +0 -142
  347. package/esm2020/lib/components/top-bar/top-bar.module.mjs +0 -20
  348. package/esm2020/lib/models/data-table.model.mjs +0 -23
  349. package/esm2020/lib/models/http-response.model.mjs +0 -2
  350. package/esm2020/lib/models/menu-item.model.mjs +0 -2
  351. package/esm2020/lib/models/vector-app.model.mjs +0 -2
  352. package/esm2020/lib/services/base-dropdown.mjs +0 -2
  353. package/esm2020/lib/shared/shared.module.mjs +0 -19
  354. package/esm2020/lib/utils/mask.util.mjs +0 -76
  355. package/fesm2015/ngx-vector-components.mjs +0 -4798
  356. package/fesm2015/ngx-vector-components.mjs.map +0 -1
  357. package/fesm2020/ngx-vector-components.mjs +0 -4776
  358. package/fesm2020/ngx-vector-components.mjs.map +0 -1
@@ -1,43 +1,43 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { ProfileModule, Role } from '../models';
3
- import * as i0 from "@angular/core";
4
- export declare class StorageService {
5
- private http;
6
- constructor(http: HttpClient);
7
- clear(): void;
8
- clearSession(): void;
9
- get(key: string): any;
10
- set(key: string, value: any): void;
11
- remove(key: string): void;
12
- getSession(key: string): any;
13
- setSession(key: string, value: any): void;
14
- removeSession(key: string): void;
15
- getToken(): string;
16
- setToken(token: string): void;
17
- removeToken(): void;
18
- getRefreshToken(): string;
19
- setRefreshToken(refreshToken: string): void;
20
- removeRefreshToken(): void;
21
- getUsername(): string;
22
- setUsername(username: string): void;
23
- removeUsername(): void;
24
- getUserId(): number;
25
- setUserId(userId: number): void;
26
- clearUserId(): void;
27
- getRole(): Role;
28
- setRole(role?: string): void;
29
- clearRole(): void;
30
- getProfile(): {
31
- marketplace: ProfileModule | undefined;
32
- fintech: ProfileModule | undefined;
33
- allModules: ProfileModule[] | undefined;
34
- };
35
- setProfile(profiles: {
36
- marketplace: ProfileModule | undefined;
37
- fintech: ProfileModule | undefined;
38
- allModules: ProfileModule[] | undefined;
39
- }): void;
40
- removeProfile(): void;
41
- static ɵfac: i0.ɵɵFactoryDeclaration<StorageService, never>;
42
- static ɵprov: i0.ɵɵInjectableDeclaration<StorageService>;
43
- }
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { ProfileModule, Role } from '../models';
3
+ import * as i0 from "@angular/core";
4
+ export declare class StorageService {
5
+ private http;
6
+ constructor(http: HttpClient);
7
+ clear(): void;
8
+ clearSession(): void;
9
+ get(key: string): any;
10
+ set(key: string, value: any): void;
11
+ remove(key: string): void;
12
+ getSession(key: string): any;
13
+ setSession(key: string, value: any): void;
14
+ removeSession(key: string): void;
15
+ getToken(): string;
16
+ setToken(token: string): void;
17
+ removeToken(): void;
18
+ getRefreshToken(): string;
19
+ setRefreshToken(refreshToken: string): void;
20
+ removeRefreshToken(): void;
21
+ getUsername(): string;
22
+ setUsername(username: string): void;
23
+ removeUsername(): void;
24
+ getUserId(): number;
25
+ setUserId(userId: number): void;
26
+ clearUserId(): void;
27
+ getRole(): Role;
28
+ setRole(role?: string): void;
29
+ clearRole(): void;
30
+ getProfile(): {
31
+ marketplace: ProfileModule | undefined;
32
+ fintech: ProfileModule | undefined;
33
+ allModules: ProfileModule[] | undefined;
34
+ };
35
+ setProfile(profiles: {
36
+ marketplace: ProfileModule | undefined;
37
+ fintech: ProfileModule | undefined;
38
+ allModules: ProfileModule[] | undefined;
39
+ }): void;
40
+ removeProfile(): void;
41
+ static ɵfac: i0.ɵɵFactoryDeclaration<StorageService, never>;
42
+ static ɵprov: i0.ɵɵInjectableDeclaration<StorageService>;
43
+ }
@@ -1,10 +1,10 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "@ngx-translate/core";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "primeng/tooltip";
5
- import * as i4 from "../pipes/pipes.module";
6
- export declare class SharedModule {
7
- static ɵfac: i0.ɵɵFactoryDeclaration<SharedModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, never, [typeof i1.TranslateModule], [typeof i2.CommonModule, typeof i3.TooltipModule, typeof i4.PipesModule]>;
9
- static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
10
- }
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@ngx-translate/core";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "primeng/tooltip";
5
+ import * as i4 from "../pipes/pipes.module";
6
+ export declare class SharedModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<SharedModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, never, [typeof i1.TranslateModule], [typeof i2.CommonModule, typeof i3.TooltipModule, typeof i4.PipesModule]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
10
+ }
@@ -1,5 +1,5 @@
1
- export declare class CpfCnpjValidator {
2
- static validateCpfOrCnpj(taxId: string): boolean;
3
- static validateCpf(cpf: string): boolean;
4
- static validateCnpj(cnpj: string): boolean;
5
- }
1
+ export declare class CpfCnpjValidator {
2
+ static validateCpfOrCnpj(taxId: string): boolean;
3
+ static validateCpf(cpf: string): boolean;
4
+ static validateCnpj(cnpj: string): boolean;
5
+ }
@@ -1,4 +1,4 @@
1
- export declare class FileUtil {
2
- static getBlob(base64StringData: string, mimeType: string): Blob;
3
- static downloadFile(mimeType: string, base64StringData: string, fileName: string): void;
4
- }
1
+ export declare class FileUtil {
2
+ static getBlob(base64StringData: string, mimeType: string): Blob;
3
+ static downloadFile(mimeType: string, base64StringData: string, fileName: string): void;
4
+ }
@@ -1,7 +1,7 @@
1
- export * from './cpf-cnpj-validator.util';
2
- export * from './file.util';
3
- export * from './mask.util';
4
- export * from './object.util';
5
- export * from './string.util';
6
- export * from './validation.util';
7
- export * from './window.util';
1
+ export * from './cpf-cnpj-validator.util';
2
+ export * from './file.util';
3
+ export * from './mask.util';
4
+ export * from './object.util';
5
+ export * from './string.util';
6
+ export * from './validation.util';
7
+ export * from './window.util';
@@ -1,21 +1,21 @@
1
- export declare class MaskUtil {
2
- static CPF_TEXT_FIELD_PATTERN: string;
3
- static CNPJ_TEXT_FIELD_PATTERN: string;
4
- static BOLETO_TEXT_FIELD_PATTERN: string;
5
- static CELLPHONE_TEXT_FIELD_PATTERN: string;
6
- static PHONE_TEXT_FIELD_PATTERN: string;
7
- static POSTALCODE_TEXT_FIELD_PATTERN: string;
8
- static PLATE_FIELD_PATTERN: string;
9
- static HOURS_MINUTES_FIELD_PATTERN: string;
10
- static DNI_FIELD_PATTERN: string;
11
- static CUIT_FIELD_PATTERN: string;
12
- static formatDocument(stringValue: string): string;
13
- static formatPostalCode(stringValue: string): string;
14
- static formatBoleto(stringValue: string): string;
15
- static formatPhone(stringValue: string): string;
16
- static formatHoursMinutes(stringValue: string): string;
17
- static formatPlate(stringValue: string): string;
18
- static formatDni(stringValue: string): string;
19
- static formatCuit(stringValue: string): string;
20
- static doMaskString(str: string, pattern?: string): string;
21
- }
1
+ export declare class MaskUtil {
2
+ static CPF_TEXT_FIELD_PATTERN: string;
3
+ static CNPJ_TEXT_FIELD_PATTERN: string;
4
+ static BOLETO_TEXT_FIELD_PATTERN: string;
5
+ static CELLPHONE_TEXT_FIELD_PATTERN: string;
6
+ static PHONE_TEXT_FIELD_PATTERN: string;
7
+ static POSTALCODE_TEXT_FIELD_PATTERN: string;
8
+ static PLATE_FIELD_PATTERN: string;
9
+ static HOURS_MINUTES_FIELD_PATTERN: string;
10
+ static DNI_FIELD_PATTERN: string;
11
+ static CUIT_FIELD_PATTERN: string;
12
+ static formatDocument(stringValue: string): string;
13
+ static formatPostalCode(stringValue: string): string;
14
+ static formatBoleto(stringValue: string): string;
15
+ static formatPhone(stringValue: string): string;
16
+ static formatHoursMinutes(stringValue: string): string;
17
+ static formatPlate(stringValue: string): string;
18
+ static formatDni(stringValue: string): string;
19
+ static formatCuit(stringValue: string): string;
20
+ static doMaskString(str: string, pattern?: string): string;
21
+ }
@@ -1,5 +1,5 @@
1
- export declare class ObjectUtil {
2
- static getObjectKeys<T>(obj: Object): Array<keyof T>;
3
- static isValid(obj: any): boolean;
4
- static getCodes(obj: any): any;
5
- }
1
+ export declare class ObjectUtil {
2
+ static getObjectKeys<T>(obj: Object): Array<keyof T>;
3
+ static isValid(obj: any): boolean;
4
+ static getCodes(obj: any): any;
5
+ }
@@ -1,4 +1,4 @@
1
- export declare class StringUtil {
2
- static getInitials(nameString?: string): string;
3
- static revertString(str: string): string;
4
- }
1
+ export declare class StringUtil {
2
+ static getInitials(nameString?: string): string;
3
+ static revertString(str: string): string;
4
+ }
@@ -1,17 +1,17 @@
1
- import { AbstractControl, ValidationErrors, ValidatorFn } from '@angular/forms';
2
- export declare class ValidationUtil {
3
- static email(control: AbstractControl): ValidationErrors | null;
4
- static fullName(control: AbstractControl): ValidationErrors | null;
5
- static noMultipleWhitespace(control: AbstractControl): ValidationErrors | null;
6
- static isValidTaxId(control: AbstractControl): ValidationErrors | null;
7
- static isValidCpf(control: AbstractControl): ValidationErrors | null;
8
- static isValidCnpj(control: AbstractControl): ValidationErrors | null;
9
- static majorAge(control: AbstractControl): ValidationErrors | null;
10
- static matchField(anotherField: AbstractControl | null): ValidatorFn;
11
- static cellphone(control: AbstractControl): ValidationErrors | null;
12
- static lowerThanOrEqualTo(greaterControlName: string): ValidatorFn;
13
- static greaterThanOrEqualTo(lowerControlName: string): ValidatorFn;
14
- static notSequentialNumbers(length: number): ValidatorFn;
15
- static firstLetterIsUppercase(control: AbstractControl): ValidationErrors | null;
16
- static containsLettersAndNumbers(control: AbstractControl): ValidationErrors | null;
17
- }
1
+ import { AbstractControl, ValidationErrors, ValidatorFn } from '@angular/forms';
2
+ export declare class ValidationUtil {
3
+ static email(control: AbstractControl): ValidationErrors | null;
4
+ static fullName(control: AbstractControl): ValidationErrors | null;
5
+ static noMultipleWhitespace(control: AbstractControl): ValidationErrors | null;
6
+ static isValidTaxId(control: AbstractControl): ValidationErrors | null;
7
+ static isValidCpf(control: AbstractControl): ValidationErrors | null;
8
+ static isValidCnpj(control: AbstractControl): ValidationErrors | null;
9
+ static majorAge(control: AbstractControl): ValidationErrors | null;
10
+ static matchField(anotherField: AbstractControl | null): ValidatorFn;
11
+ static cellphone(control: AbstractControl): ValidationErrors | null;
12
+ static lowerThanOrEqualTo(greaterControlName: string): ValidatorFn;
13
+ static greaterThanOrEqualTo(lowerControlName: string): ValidatorFn;
14
+ static notSequentialNumbers(length: number): ValidatorFn;
15
+ static firstLetterIsUppercase(control: AbstractControl): ValidationErrors | null;
16
+ static containsLettersAndNumbers(control: AbstractControl): ValidationErrors | null;
17
+ }
@@ -1,4 +1,4 @@
1
- export declare class WindowUtil {
2
- static isSmallDevice(): boolean;
3
- static isDesktop(): boolean;
4
- }
1
+ export declare class WindowUtil {
2
+ static isSmallDevice(): boolean;
3
+ static isDesktop(): boolean;
4
+ }
package/package.json CHANGED
@@ -1,45 +1,39 @@
1
1
  {
2
2
  "name": "ngx-vector-components",
3
- "version": "4.91.0",
3
+ "version": "4.93.0",
4
4
  "peerDependencies": {
5
- "@angular/animations": "~13.2.3",
6
- "@angular/cdk": "^13.3.9",
7
- "@angular/common": "^13.2.3",
8
- "@angular/core": "^13.2.7",
9
- "@angular/forms": "~13.2.2",
10
- "@angular/platform-browser": "~13.2.2",
11
- "@angular/platform-browser-dynamic": "~13.2.2",
12
- "@angular/router": "~13.2.2",
13
- "@fortawesome/fontawesome-free": "^5.15.4",
5
+ "@angular/animations": "^16.1.7",
6
+ "@angular/cdk": "^16.1.6",
7
+ "@angular/common": "^16.1.7",
8
+ "@angular/core": "^16.1.7",
9
+ "@angular/forms": "^16.1.7",
10
+ "@angular/platform-browser": "^16.1.7",
11
+ "@angular/platform-browser-dynamic": "^16.1.7",
12
+ "@angular/router": "^16.1.7",
13
+ "@fortawesome/fontawesome-free": "^6.1.1",
14
14
  "@ngx-translate/core": "^14.0.0",
15
15
  "file-saver": "^2.0.5",
16
16
  "luxon": "^2.4.0",
17
- "ngx-device-detector": "^3.0.0",
17
+ "ngx-device-detector": "^6.0.2",
18
18
  "primeflex": "^3.2.1",
19
19
  "primeicons": "^5.0.0",
20
- "primeng": "^13.4.1",
20
+ "primeng": "^16.1.0",
21
21
  "rxjs": "~6.6.0"
22
22
  },
23
23
  "dependencies": {
24
24
  "tslib": "^2.3.0"
25
25
  },
26
- "module": "fesm2015/ngx-vector-components.mjs",
27
- "es2020": "fesm2020/ngx-vector-components.mjs",
28
- "esm2020": "esm2020/ngx-vector-components.mjs",
29
- "fesm2020": "fesm2020/ngx-vector-components.mjs",
30
- "fesm2015": "fesm2015/ngx-vector-components.mjs",
31
- "typings": "ngx-vector-components.d.ts",
26
+ "module": "fesm2022/ngx-vector-components.mjs",
27
+ "typings": "index.d.ts",
32
28
  "exports": {
33
29
  "./package.json": {
34
30
  "default": "./package.json"
35
31
  },
36
32
  ".": {
37
- "types": "./ngx-vector-components.d.ts",
38
- "esm2020": "./esm2020/ngx-vector-components.mjs",
39
- "es2020": "./fesm2020/ngx-vector-components.mjs",
40
- "es2015": "./fesm2015/ngx-vector-components.mjs",
41
- "node": "./fesm2015/ngx-vector-components.mjs",
42
- "default": "./fesm2020/ngx-vector-components.mjs"
33
+ "types": "./index.d.ts",
34
+ "esm2022": "./esm2022/ngx-vector-components.mjs",
35
+ "esm": "./esm2022/ngx-vector-components.mjs",
36
+ "default": "./fesm2022/ngx-vector-components.mjs"
43
37
  }
44
38
  },
45
39
  "sideEffects": false
package/public-api.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- export * from './lib/components';
2
- export * from './lib/guards';
3
- export * from './lib/interceptors';
4
- export * from './lib/models';
5
- export * from './lib/pipes';
6
- export * from './lib/resolvers';
7
- export * from './lib/services';
8
- export * from './lib/utils';
1
+ export * from './lib/components';
2
+ export * from './lib/guards';
3
+ export * from './lib/interceptors';
4
+ export * from './lib/models';
5
+ export * from './lib/pipes';
6
+ export * from './lib/resolvers';
7
+ export * from './lib/services';
8
+ export * from './lib/utils';
@@ -1,39 +0,0 @@
1
- import { Component, Input } from '@angular/core';
2
- import { Status } from '../../models';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "@angular/common";
5
- import * as i2 from "primeng/tooltip";
6
- export class BadgeComponent {
7
- constructor() { }
8
- ngOnInit() { }
9
- getStatusColor() {
10
- switch (this.type) {
11
- case Status.PENDING:
12
- return 'badge-warning';
13
- case Status.APPROVED:
14
- return 'badge-success';
15
- case Status.REJECTED:
16
- return 'badge-error';
17
- case Status.INFO:
18
- return 'badge-info';
19
- }
20
- return '';
21
- }
22
- }
23
- BadgeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
24
- BadgeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: BadgeComponent, selector: "vector-badge", inputs: { type: "type", label: "label", customColor: "customColor", customBackgroundColor: "customBackgroundColor", tooltip: "tooltip" }, ngImport: i0, template: "<div\r\n class=\"badge\"\r\n [class]=\"getStatusColor()\"\r\n [ngStyle]=\"{ 'background-color': customBackgroundColor, color: customColor }\"\r\n [pTooltip]=\"tooltip || ''\"\r\n tooltipPosition=\"top\"\r\n>\r\n {{ label }}\r\n</div>\r\n", styles: [".badge{padding:4px 12px;border-radius:8px;color:#fff}.badge-success{background-color:var(--success-color)}.badge-error{background-color:var(--error-color)}.badge-warning{background-color:var(--warning-color)}.badge-info{background-color:var(--theme-light)}\n"], directives: [{ type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i2.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "pTooltip", "tooltipDisabled", "tooltipOptions"] }] });
25
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BadgeComponent, decorators: [{
26
- type: Component,
27
- args: [{ selector: 'vector-badge', template: "<div\r\n class=\"badge\"\r\n [class]=\"getStatusColor()\"\r\n [ngStyle]=\"{ 'background-color': customBackgroundColor, color: customColor }\"\r\n [pTooltip]=\"tooltip || ''\"\r\n tooltipPosition=\"top\"\r\n>\r\n {{ label }}\r\n</div>\r\n", styles: [".badge{padding:4px 12px;border-radius:8px;color:#fff}.badge-success{background-color:var(--success-color)}.badge-error{background-color:var(--error-color)}.badge-warning{background-color:var(--warning-color)}.badge-info{background-color:var(--theme-light)}\n"] }]
28
- }], ctorParameters: function () { return []; }, propDecorators: { type: [{
29
- type: Input
30
- }], label: [{
31
- type: Input
32
- }], customColor: [{
33
- type: Input
34
- }], customBackgroundColor: [{
35
- type: Input
36
- }], tooltip: [{
37
- type: Input
38
- }] } });
39
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFkZ2UuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LXZlY3Rvci1jb21wb25lbnRzL3NyYy9saWIvY29tcG9uZW50cy9iYWRnZS9iYWRnZS5jb21wb25lbnQudHMiLCIu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klORk86XHJcbiAgICAgICAgcmV0dXJuICdiYWRnZS1pbmZvJztcclxuICAgIH1cclxuICAgIHJldHVybiAnJztcclxuICB9XHJcbn1cclxuIiwiPGRpdlxyXG4gIGNsYXNzPVwiYmFkZ2VcIlxyXG4gIFtjbGFzc109XCJnZXRTdGF0dXNDb2xvcigpXCJcclxuICBbbmdTdHlsZV09XCJ7ICdiYWNrZ3JvdW5kLWNvbG9yJzogY3VzdG9tQmFja2dyb3VuZENvbG9yLCBjb2xvcjogY3VzdG9tQ29sb3IgfVwiXHJcbiAgW3BUb29sdGlwXT1cInRvb2x0aXAgfHwgJydcIlxyXG4gIHRvb2x0aXBQb3NpdGlvbj1cInRvcFwiXHJcbj5cclxuICB7eyBsYWJlbCB9fVxyXG48L2Rpdj5cclxuIl19
@@ -1,19 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { TooltipModule } from 'primeng/tooltip';
3
- import { SharedModule } from '../../shared/shared.module';
4
- import { BadgeComponent } from './badge.component';
5
- import * as i0 from "@angular/core";
6
- export class BadgeModule {
7
- }
8
- BadgeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BadgeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
9
- BadgeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BadgeModule, declarations: [BadgeComponent], imports: [SharedModule, TooltipModule], exports: [BadgeComponent] });
10
- BadgeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BadgeModule, imports: [[SharedModule, TooltipModule]] });
11
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BadgeModule, decorators: [{
12
- type: NgModule,
13
- args: [{
14
- declarations: [BadgeComponent],
15
- imports: [SharedModule, TooltipModule],
16
- exports: [BadgeComponent],
17
- }]
18
- }] });
19
- //# sourceM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kL3NoYXJlZC5tb2R1bGUnO1xyXG5pbXBvcnQgeyBCYWRnZUNvbXBvbmVudCB9IGZyb20gJy4vYmFkZ2UuY29tcG9uZW50JztcclxuXHJcbkBOZ01vZHVsZSh7XHJcbiAgZGVjbGFyYXRpb25zOiBbQmFkZ2VDb21wb25lbnRdLFxyXG4gIGltcG9ydHM6IFtTaGFyZWRNb2R1bGUsIFRvb2x0aXBNb2R1bGVdLFxyXG4gIGV4cG9ydHM6IFtCYWRnZUNvbXBvbmVudF0sXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBCYWRnZU1vZHVsZSB7fVxyXG4iXX0=
@@ -1,66 +0,0 @@
1
- import { Component, Inject } from '@angular/core';
2
- import { NavigationEnd } from '@angular/router';
3
- import { Subscription } from 'rxjs';
4
- import * as i0 from "@angular/core";
5
- import * as i1 from "@angular/router";
6
- import * as i2 from "@angular/common";
7
- import * as i3 from "../../pipes/remove-last-child.pipe";
8
- export class BreadcrumbComponent {
9
- constructor(router, environment, menuOptions) {
10
- this.router = router;
11
- this.environment = environment;
12
- this.menuOptions = menuOptions;
13
- this.appName = this.environment.appName;
14
- this.routeFragments = [];
15
- this.subscription = new Subscription();
16
- }
17
- ngOnInit() {
18
- this.subscription.add(this.router.events.subscribe((event) => {
19
- if (event instanceof NavigationEnd) {
20
- this.routeFragments = [];
21
- let url = event.urlAfterRedirects.replace('/', '');
22
- if (url.includes('?')) {
23
- url = url.substring(0, url.indexOf('?'));
24
- }
25
- this.extractRouteFragmentsFromMenu(url, this.menuOptions);
26
- }
27
- }));
28
- }
29
- ngOnDestroy() {
30
- this.subscription.unsubscribe();
31
- }
32
- navigateToFragment(fragment) {
33
- this.router.navigate([fragment.route], { queryParamsHandling: 'preserve' });
34
- }
35
- extractRouteFragmentsFromMenu(url, currentChildren) {
36
- let foundItem = false;
37
- for (let i = 0; i < currentChildren.length; i++) {
38
- if (currentChildren[i].route) {
39
- if (currentChildren[i].route &&
40
- (currentChildren[i].route.startsWith(url) || url.startsWith(currentChildren[i].route || ''))) {
41
- this.routeFragments = [currentChildren[i]];
42
- foundItem = true;
43
- }
44
- }
45
- if (currentChildren[i].children && this.extractRouteFragmentsFromMenu(url, currentChildren[i].children || [])) {
46
- this.routeFragments = [currentChildren[i]].concat(this.routeFragments);
47
- foundItem = true;
48
- break;
49
- }
50
- }
51
- return foundItem;
52
- }
53
- }
54
- BreadcrumbComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BreadcrumbComponent, deps: [{ token: i1.Router }, { token: 'environment' }, { token: 'menuOptions' }], target: i0.ɵɵFactoryTarget.Component });
55
- BreadcrumbComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: BreadcrumbComponent, selector: "vector-breadcrumb", ngImport: i0, template: "<div class=\"breadcrumb-container\" *ngIf=\"routeFragments?.length\">\r\n <div class=\"route-path\">\r\n <span class=\"app-name\">{{ appName }}</span>\r\n <div *ngIf=\"routeFragments.length < 2\" class=\"chevron\"></div>\r\n <span\r\n class=\"route-fragment\"\r\n [ngClass]=\"{ clickable: fragment.route }\"\r\n *ngFor=\"let fragment of routeFragments | removeLastChild\"\r\n (click)=\"navigateToFragment(fragment)\"\r\n ><div class=\"chevron\"></div>\r\n {{ fragment.label }}</span\r\n >\r\n </div>\r\n <span class=\"last-route\">\r\n {{ routeFragments[routeFragments.length - 1].label }}\r\n </span>\r\n</div>\r\n", styles: [".breadcrumb-container{display:flex;flex-direction:column;margin-bottom:15px}.breadcrumb-container .route-path{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;color:var(--gray-dark)}.breadcrumb-container .app-name,.breadcrumb-container .last-route,.breadcrumb-container .route-path .route-fragment{font-weight:700;letter-spacing:.75px;display:flex;flex-direction:row;align-items:center;margin:2.5px}.breadcrumb-container .clickable{cursor:pointer}.breadcrumb-container .chevron{margin:0 5px;background-image:url(\"data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2212%22 height%3D%227.4%22 viewBox%3D%220 0 12 7.4%22%3E%0D %3Cpath id%3D%22Caminho_1437%22 data-name%3D%22Caminho 1437%22 d%3D%22M1526.175%2C366.14l4.6%2C4.6%2C4.6-4.6%2C1.4%2C1.4-6%2C6-6-6Z%22 transform%3D%22translate(-1524.775 -366.14)%22 fill%3D%22%23333%22%2F%3E%0D%3C%2Fsvg%3E%0D\");background-repeat:no-repeat;background-position:center;transform:rotate(-90deg);width:20px;height:20px;filter:invert(53%) sepia(13%) saturate(450%) hue-rotate(156deg) brightness(89%) contrast(85%)}.breadcrumb-container .last-route{font-size:1.5em;color:var(--success-color)}\n"], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "removeLastChild": i3.RemoveLastChildPipe } });
56
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BreadcrumbComponent, decorators: [{
57
- type: Component,
58
- args: [{ selector: 'vector-breadcrumb', template: "<div class=\"breadcrumb-container\" *ngIf=\"routeFragments?.length\">\r\n <div class=\"route-path\">\r\n <span class=\"app-name\">{{ appName }}</span>\r\n <div *ngIf=\"routeFragments.length < 2\" class=\"chevron\"></div>\r\n <span\r\n class=\"route-fragment\"\r\n [ngClass]=\"{ clickable: fragment.route }\"\r\n *ngFor=\"let fragment of routeFragments | removeLastChild\"\r\n (click)=\"navigateToFragment(fragment)\"\r\n ><div class=\"chevron\"></div>\r\n {{ fragment.label }}</span\r\n >\r\n </div>\r\n <span class=\"last-route\">\r\n {{ routeFragments[routeFragments.length - 1].label }}\r\n </span>\r\n</div>\r\n", styles: [".breadcrumb-container{display:flex;flex-direction:column;margin-bottom:15px}.breadcrumb-container .route-path{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;color:var(--gray-dark)}.breadcrumb-container .app-name,.breadcrumb-container .last-route,.breadcrumb-container .route-path .route-fragment{font-weight:700;letter-spacing:.75px;display:flex;flex-direction:row;align-items:center;margin:2.5px}.breadcrumb-container .clickable{cursor:pointer}.breadcrumb-container .chevron{margin:0 5px;background-image:url(\"data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2212%22 height%3D%227.4%22 viewBox%3D%220 0 12 7.4%22%3E%0D %3Cpath id%3D%22Caminho_1437%22 data-name%3D%22Caminho 1437%22 d%3D%22M1526.175%2C366.14l4.6%2C4.6%2C4.6-4.6%2C1.4%2C1.4-6%2C6-6-6Z%22 transform%3D%22translate(-1524.775 -366.14)%22 fill%3D%22%23333%22%2F%3E%0D%3C%2Fsvg%3E%0D\");background-repeat:no-repeat;background-position:center;transform:rotate(-90deg);width:20px;height:20px;filter:invert(53%) sepia(13%) saturate(450%) hue-rotate(156deg) brightness(89%) contrast(85%)}.breadcrumb-container .last-route{font-size:1.5em;color:var(--success-color)}\n"] }]
59
- }], ctorParameters: function () { return [{ type: i1.Router }, { type: undefined, decorators: [{
60
- type: Inject,
61
- args: ['environment']
62
- }] }, { type: undefined, decorators: [{
63
- type: Inject,
64
- args: ['menuOptions']
65
- }] }]; } });
66
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJlYWRjcnVtYi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtdmVjdG9yLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL2JyZWFkY3J1bWIvYnJlYWRjcnVtYi5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtdmVjdG9yLWNvbX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V0ZUZyYWdtZW50cyB8IHJlbW92ZUxhc3RDaGlsZFwiXHJcbiAgICAgIChjbGljayk9XCJuYXZpZ2F0ZVRvRnJhZ21lbnQoZnJhZ21lbnQpXCJcclxuICAgICAgPjxkaXYgY2xhc3M9XCJjaGV2cm9uXCI+PC9kaXY+XHJcbiAgICAgIHt7IGZyYWdtZW50LmxhYmVsIH19PC9zcGFuXHJcbiAgICA+XHJcbiAgPC9kaXY+XHJcbiAgPHNwYW4gY2xhc3M9XCJsYXN0LXJvdXRlXCI+XHJcbiAgICB7eyByb3V0ZUZyYWdtZW50c1tyb3V0ZUZyYWdtZW50cy5sZW5ndGggLSAxXS5sYWJlbCB9fVxyXG4gIDwvc3Bhbj5cclxuPC9kaXY+XHJcbiJdfQ==
@@ -1,18 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { SharedModule } from '../../shared/shared.module';
3
- import { BreadcrumbComponent } from './breadcrumb.component';
4
- import * as i0 from "@angular/core";
5
- export class BreadcrumbModule {
6
- }
7
- BreadcrumbModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BreadcrumbModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
8
- BreadcrumbModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BreadcrumbModule, declarations: [BreadcrumbComponent], imports: [SharedModule], exports: [BreadcrumbComponent] });
9
- BreadcrumbModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BreadcrumbModule, imports: [[SharedModule]] });
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BreadcrumbModule, decorators: [{
11
- type: NgModule,
12
- args: [{
13
- declarations: [BreadcrumbComponent],
14
- exports: [BreadcrumbComponent],
15
- imports: [SharedModule],
16
- }]
17
- }] });
18
- //# sourceMappingURL=data:application/json;base64,ey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HJcbiAgZGVjbGFyYXRpb25zOiBbQnJlYWRjcnVtYkNvbXBvbmVudF0sXHJcbiAgZXhwb3J0czogW0JyZWFkY3J1bWJDb21wb25lbnRdLFxyXG4gIGltcG9ydHM6IFtTaGFyZWRNb2R1bGVdLFxyXG59KVxyXG5leHBvcnQgY2xhc3MgQnJlYWRjcnVtYk1vZHVsZSB7fVxyXG4iXX0=
@@ -1,47 +0,0 @@
1
- import { Component } from '@angular/core';
2
- import { FormGroup } from '@angular/forms';
3
- import { Subscription } from 'rxjs';
4
- import { CrudMode } from '../../models/crud-mode.enum';
5
- import * as i0 from "@angular/core";
6
- import * as i1 from "@angular/router";
7
- export class CrudBaseComponent {
8
- constructor(activatedRoute) {
9
- this.activatedRoute = activatedRoute;
10
- this.crudMode = CrudMode.NEW;
11
- this.isReadonly = false;
12
- this.form = new FormGroup({});
13
- this.subscription = new Subscription();
14
- this.crudMode = this.getCrudModeByRoute(this.activatedRoute.snapshot.url[0].path);
15
- this.isReadonly = this.crudMode === CrudMode.VIEW;
16
- }
17
- ngOnDestroy() {
18
- this.subscription.unsubscribe();
19
- }
20
- isInsertion() {
21
- return this.crudMode === CrudMode.NEW;
22
- }
23
- isEdition() {
24
- return this.crudMode === CrudMode.EDIT;
25
- }
26
- getCrudModeByRoute(route) {
27
- switch (route) {
28
- case 'new':
29
- return CrudMode.NEW;
30
- case 'edit':
31
- return CrudMode.EDIT;
32
- case 'view':
33
- return CrudMode.VIEW;
34
- default:
35
- return CrudMode.NEW;
36
- }
37
- }
38
- }
39
- CrudBaseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CrudBaseComponent, deps: [{ token: i1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component });
40
- CrudBaseComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: CrudBaseComponent, selector: "ng-component", ngImport: i0, template: '', isInline: true });
41
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CrudBaseComponent, decorators: [{
42
- type: Component,
43
- args: [{
44
- template: '',
45
- }]
46
- }], ctorParameters: function () { return [{ type: i1.ActivatedRoute }]; } });
47
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3J1ZC1iYXNlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC12ZWN0b3ItY29tcG9uZW50cy9zcmMvbGliL2NvbXBvbmVudHMvY3J1ZC1iYXNlL2NydWQtYmFzZS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBYSxNQUFNLGVBQWUsQ0FBQztBQUNyRCxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFM0MsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUNwQyxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sNkJBQTZCLENBQUM7OztBQUt2RCxNQUFNLE9BQU8saUJBQWlCO0lBTTVCLFlBQXNCLGNBQThCO1FBQTlCLG1CQUFjLEdBQWQsY0FBYyxDQUFnQjtRQUw3QyxhQUFRLEdBQUcsUUFBUSxDQUFDLEdBQUcsQ0FBQztRQUN4QixlQUFVLEdBQUcsS0FBSyxDQUFDO1FBQ25CLFNBQUksR0FBRyxJQUFJLFNBQVMsQ0FBQyxFQUFFLENBQUMsQ0FBQztRQUN0QixpQkFBWSxHQUFHLElBQUksWUFBWSxFQUFFLENBQUM7UUFHMUMsSUFBSSxDQUFDLFFBQVEsR0FBRyxJQUFJLENBQUMsa0JBQWtCLENBQUMsSUFBSSxDQUFDLGNBQWMsQ0FBQyxRQUFRLENBQUMsR0FBRyxDQUFDLENBQUMsQ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G4gICAgcmV0dXJuIHRoaXMuY3J1ZE1vZGUgPT09IENydWRNb2RlLkVESVQ7XHJcbiAgfVxyXG5cclxuICBwcml2YXRlIGdldENydWRNb2RlQnlSb3V0ZShyb3V0ZTogc3RyaW5nKSB7XHJcbiAgICBzd2l0Y2ggKHJvdXRlKSB7XHJcbiAgICAgIGNhc2UgJ25ldyc6XHJcbiAgICAgICAgcmV0dXJuIENydWRNb2RlLk5FVztcclxuICAgICAgY2FzZSAnZWRpdCc6XHJcbiAgICAgICAgcmV0dXJuIENydWRNb2RlLkVESVQ7XHJcbiAgICAgIGNhc2UgJ3ZpZXcnOlxyXG4gICAgICAgIHJldHVybiBDcnVkTW9kZS5WSUVXO1xyXG4gICAgICBkZWZhdWx0OlxyXG4gICAgICAgIHJldHVybiBDcnVkTW9kZS5ORVc7XHJcbiAgICB9XHJcbiAgfVxyXG59XHJcbiJdfQ==
@@ -1,32 +0,0 @@
1
- import { Component, EventEmitter, Input, Output } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "../fields/button/button.component";
4
- import * as i2 from "@angular/common";
5
- import * as i3 from "@ngx-translate/core";
6
- export class CrudFooterComponent {
7
- constructor() {
8
- this.submitDisabled = false;
9
- this.submitHidden = false;
10
- this.goBackHidden = false;
11
- this.onGoBack = new EventEmitter();
12
- this.onSubmit = new EventEmitter();
13
- }
14
- ngOnInit() { }
15
- }
16
- CrudFooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CrudFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
17
- CrudFooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: CrudFooterComponent, selector: "vector-crud-footer", inputs: { submitDisabled: "submitDisabled", submitHidden: "submitHidden", goBackHidden: "goBackHidden" }, outputs: { onGoBack: "onGoBack", onSubmit: "onSubmit" }, ngImport: i0, template: "<div class=\"footer-container shadow-3\">\r\n <div class=\"button\" *ngIf=\"!goBackHidden\">\r\n <vector-button [label]=\"'enums.Options.GO_BACK' | translate\" (onClick)=\"onGoBack.emit()\"></vector-button>\r\n </div>\r\n <div class=\"button\" *ngIf=\"!submitHidden\">\r\n <vector-button\r\n [label]=\"'enums.Options.SAVE' | translate\"\r\n type=\"success\"\r\n (onClick)=\"onSubmit.emit()\"\r\n [disabled]=\"submitDisabled\"\r\n ></vector-button>\r\n </div>\r\n</div>\r\n", styles: [".footer-container{position:fixed;bottom:0;left:0;background-color:#f5f5f5;display:flex;flex-direction:row;justify-content:flex-end;align-items:center;width:100%;height:60px}.footer-container .button{margin-right:10px}\n"], components: [{ type: i1.ButtonComponent, selector: "vector-button", inputs: ["disabled", "label", "type", "leftIcon", "rightIcon", "noShadow", "style"], outputs: ["onClick"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "translate": i3.TranslatePipe } });
18
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CrudFooterComponent, decorators: [{
19
- type: Component,
20
- args: [{ selector: 'vector-crud-footer', template: "<div class=\"footer-container shadow-3\">\r\n <div class=\"button\" *ngIf=\"!goBackHidden\">\r\n <vector-button [label]=\"'enums.Options.GO_BACK' | translate\" (onClick)=\"onGoBack.emit()\"></vector-button>\r\n </div>\r\n <div class=\"button\" *ngIf=\"!submitHidden\">\r\n <vector-button\r\n [label]=\"'enums.Options.SAVE' | translate\"\r\n type=\"success\"\r\n (onClick)=\"onSubmit.emit()\"\r\n [disabled]=\"submitDisabled\"\r\n ></vector-button>\r\n </div>\r\n</div>\r\n", styles: [".footer-container{position:fixed;bottom:0;left:0;background-color:#f5f5f5;display:flex;flex-direction:row;justify-content:flex-end;align-items:center;width:100%;height:60px}.footer-container .button{margin-right:10px}\n"] }]
21
- }], ctorParameters: function () { return []; }, propDecorators: { submitDisabled: [{
22
- type: Input
23
- }], submitHidden: [{
24
- type: Input
25
- }], goBackHidden: [{
26
- type: Input
27
- }], onGoBack: [{
28
- type: Output
29
- }], onSubmit: [{
30
- type: Output
31
- }] } });
32
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3J1ZC1mb290ZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LXZlY3Rvci1jb21wb25lbnRzL3NyYy9saWIvY29tcG9uZW50cy9jcnVkLWZvb3Rlci9jcnVkLWZvb3Rlci5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtdmVjdG9yLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL2NydWQtZm9vdGVyL2NydWQtZm9vdGVyLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBVSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7Ozs7O0FBTy9FLE1BQU0sT0FBTyxtQkFBbUI7SUFZOUI7UUFWTyxtQkFBYyxHQUFHLEtBQUssQ0FBQztRQUV2QixpQkFBWSxHQUFHLEtBQUssQ0FBQztRQUVyQixpQkFBWSxHQUFHLEtBQUssQ0FBQztRQUVyQixhQUFRLEdBQUcsSUFBSSxZQUFZLEVBQVEsQ0FBQztRQUVwQyxhQUFRLEdBQUcsSUFBSSxZQUFZLEVBQVEsQ0FBQztJQUU1QixDQUFDO0lBRWhCLFFBQVEsS0FBVSxDQUFDOztnSEFkUixtQkFBbUI7b0dBQW5CLG1CQUFtQiw2TkNQaEMsMmZBYUE7MkZETmEsbUJBQW1CO2tCQUwvQixTQUFTOytCQUNFLG9CQUFvQjswRUFNdkIsY0FBYztzQkFEcEIsS0FBSztnQkFHQyxZQUFZO3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