@sankhyalabs/sankhyablocks 9.2.0-dev.2 → 9.2.0-dev.20

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 (236) hide show
  1. package/dist/cjs/{ConfigStorage-1931defc.js → ConfigStorage-8b6def32.js} +2 -2
  2. package/dist/cjs/{DataFetcher-ad9fb3bb.js → DataFetcher-2c37b6a1.js} +52 -1
  3. package/dist/cjs/{ISave-18ffb73e.js → ISave-b22b3cf0.js} +1 -1
  4. package/dist/cjs/{SnkFormConfigManager-65e5288e.js → SnkFormConfigManager-477a27de.js} +2 -2
  5. package/dist/cjs/{ClientSideExporterProvider-994f6e26.js → SnkMultiSelectionListDataSource-b7ab26ba.js} +82 -79
  6. package/dist/cjs/{auth-fetcher-afbe69ab.js → auth-fetcher-78a90b36.js} +1 -1
  7. package/dist/cjs/{dataunit-fetcher-c7253b02.js → dataunit-fetcher-877944a9.js} +1 -1
  8. package/dist/cjs/filter-validate-6993f6f2.js +30 -0
  9. package/dist/cjs/{form-config-fetcher-f6e66d64.js → form-config-fetcher-dee08eb4.js} +1 -1
  10. package/dist/cjs/{index-0ad2baeb.js → index-13d05f03.js} +21 -5
  11. package/dist/cjs/index-1cf293c1.js +8 -8
  12. package/dist/cjs/loader.cjs.js +1 -1
  13. package/dist/cjs/pesquisa-grid_2.cjs.entry.js +4 -4
  14. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  15. package/dist/cjs/snk-actions-button_8.cjs.entry.js +5 -5
  16. package/dist/cjs/snk-application.cjs.entry.js +6 -9
  17. package/dist/cjs/snk-attach.cjs.entry.js +7 -7
  18. package/dist/cjs/snk-crud.cjs.entry.js +7 -7
  19. package/dist/cjs/snk-data-exporter.cjs.entry.js +5 -5
  20. package/dist/cjs/{snk-data-unit-448fce74.js → snk-data-unit-6b0101fe.js} +13 -3
  21. package/dist/cjs/snk-data-unit.cjs.entry.js +3 -3
  22. package/dist/cjs/snk-detail-view.cjs.entry.js +9 -9
  23. package/dist/cjs/snk-entity-list.cjs.entry.js +10 -3
  24. package/dist/cjs/snk-expression-group_2.cjs.entry.js +1 -1
  25. package/dist/cjs/snk-filter-bar_4.cjs.entry.js +189 -115
  26. package/dist/cjs/snk-filter-binary-select.cjs.entry.js +23 -2
  27. package/dist/cjs/snk-filter-checkbox-list.cjs.entry.js +20 -2
  28. package/dist/cjs/snk-filter-detail.cjs.entry.js +25 -8
  29. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +9 -14
  30. package/dist/cjs/snk-filter-multi-select.cjs.entry.js +16 -3
  31. package/dist/cjs/snk-filter-number.cjs.entry.js +34 -3
  32. package/dist/cjs/snk-filter-period.cjs.entry.js +59 -14
  33. package/dist/cjs/snk-filter-search.cjs.entry.js +14 -3
  34. package/dist/cjs/snk-filter-text.cjs.entry.js +18 -1
  35. package/dist/cjs/snk-form_2.cjs.entry.js +31 -5
  36. package/dist/cjs/snk-grid.cjs.entry.js +158 -66
  37. package/dist/cjs/{snk-guides-viewer-c23ed218.js → snk-guides-viewer-38277265.js} +6 -6
  38. package/dist/cjs/snk-guides-viewer.cjs.entry.js +9 -9
  39. package/dist/cjs/snk-personalized-filter.cjs.entry.js +14 -6
  40. package/dist/cjs/snk-pesquisa.cjs.entry.js +4 -4
  41. package/dist/cjs/snk-simple-bar.cjs.entry.js +5 -5
  42. package/dist/cjs/snk-simple-crud.cjs.entry.js +60 -23
  43. package/dist/cjs/snk-taskbar.cjs.entry.js +2 -2
  44. package/dist/cjs/{taskbar-elements-3b74cd21.js → taskbar-elements-fb5d1e08.js} +1 -1
  45. package/dist/collection/components/snk-application/snk-application.js +0 -2
  46. package/dist/collection/components/snk-data-exporter/providers/ClientSideExporterProvider.js +4 -1
  47. package/dist/collection/components/snk-data-unit/snk-data-unit.js +173 -28
  48. package/dist/collection/components/snk-entity-list/snk-entity-list.js +28 -4
  49. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.js +72 -2
  50. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-checkbox-list.js +73 -2
  51. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.js +51 -5
  52. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js +83 -3
  53. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js +118 -27
  54. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-search.js +49 -5
  55. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-text.js +71 -1
  56. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +62 -11
  57. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +70 -8
  58. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.css +0 -4
  59. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +112 -16
  60. package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.js +8 -16
  61. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +315 -114
  62. package/dist/collection/components/snk-filter-bar/utils/SnkFilterModalFactory.js +3 -1
  63. package/dist/collection/components/snk-filter-bar/utils/filter-validate.js +24 -0
  64. package/dist/collection/components/snk-form/snk-form.js +133 -22
  65. package/dist/collection/components/snk-grid/snk-grid.js +488 -133
  66. package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js +83 -21
  67. package/dist/collection/components/snk-pesquisa/snk-pesquisa.js +80 -14
  68. package/dist/collection/components/snk-simple-bar/snk-simple-bar.js +9 -9
  69. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +414 -119
  70. package/dist/collection/components/snk-taskbar/snk-taskbar.js +102 -36
  71. package/dist/collection/lib/http/data-fetcher/DataFetcher.js +1 -0
  72. package/dist/collection/lib/http/data-fetcher/custom-xhr-override.js +39 -0
  73. package/dist/collection/lib/message/resources/en-us/snk-filter-bar.msg.js +1 -0
  74. package/dist/collection/lib/message/resources/en-us/snk-grid.msg.js +4 -0
  75. package/dist/collection/lib/message/resources/es-es/snk-filter-bar.msg.js +1 -0
  76. package/dist/collection/lib/message/resources/es-es/snk-grid.msg.js +4 -0
  77. package/dist/collection/lib/message/resources/pt-br/snk-filter-bar.msg.js +1 -0
  78. package/dist/collection/lib/message/resources/pt-br/snk-grid.msg.js +4 -0
  79. package/dist/components/ContinuousInsertUtils.js +4 -1
  80. package/dist/components/DataFetcher.js +52 -1
  81. package/dist/components/index2.js +21 -5
  82. package/dist/components/snk-application2.js +0 -3
  83. package/dist/components/snk-crud.js +62 -44
  84. package/dist/components/snk-data-unit2.js +11 -1
  85. package/dist/components/snk-detail-view2.js +89 -56
  86. package/dist/components/snk-entity-list.js +11 -3
  87. package/dist/components/snk-filter-bar2.js +103 -108
  88. package/dist/components/snk-filter-binary-select.js +27 -3
  89. package/dist/components/snk-filter-checkbox-list.js +24 -3
  90. package/dist/components/snk-filter-detail2.js +28 -9
  91. package/dist/components/snk-filter-item2.js +70 -8
  92. package/dist/components/snk-filter-modal-item2.js +7 -12
  93. package/dist/components/snk-filter-modal.js +1 -325
  94. package/dist/components/snk-filter-modal2.js +391 -0
  95. package/dist/components/snk-filter-multi-select.js +19 -4
  96. package/dist/components/snk-filter-number.js +38 -4
  97. package/dist/components/snk-filter-period.js +64 -16
  98. package/dist/components/snk-filter-search.js +17 -4
  99. package/dist/components/snk-filter-text.js +22 -2
  100. package/dist/components/snk-form.js +29 -2
  101. package/dist/components/snk-grid2.js +188 -75
  102. package/dist/components/snk-personalized-filter2.js +10 -2
  103. package/dist/components/snk-simple-bar2.js +5 -5
  104. package/dist/components/snk-simple-crud2.js +45 -8
  105. package/dist/esm/{ConfigStorage-b5a1dba3.js → ConfigStorage-22eace3a.js} +2 -2
  106. package/dist/esm/{DataFetcher-6f6de657.js → DataFetcher-f6b2961a.js} +52 -1
  107. package/dist/esm/{ISave-7ecdca20.js → ISave-6b7b0423.js} +1 -1
  108. package/dist/esm/{SnkFormConfigManager-34fc1dc7.js → SnkFormConfigManager-968b97e7.js} +2 -2
  109. package/dist/esm/{ClientSideExporterProvider-7c2781f4.js → SnkMultiSelectionListDataSource-1136c4e7.js} +87 -84
  110. package/dist/esm/{auth-fetcher-7332a9a9.js → auth-fetcher-cf39e42b.js} +1 -1
  111. package/dist/esm/{dataunit-fetcher-f21cbad0.js → dataunit-fetcher-6314b19d.js} +1 -1
  112. package/dist/esm/filter-validate-d765d450.js +27 -0
  113. package/dist/esm/{form-config-fetcher-6ab4e805.js → form-config-fetcher-bc6f0f1f.js} +1 -1
  114. package/dist/esm/{index-b72af127.js → index-446f9341.js} +21 -5
  115. package/dist/esm/index-479e1293.js +8 -8
  116. package/dist/esm/loader.js +1 -1
  117. package/dist/esm/pesquisa-grid_2.entry.js +4 -4
  118. package/dist/esm/sankhyablocks.js +1 -1
  119. package/dist/esm/snk-actions-button_8.entry.js +5 -5
  120. package/dist/esm/snk-application.entry.js +6 -9
  121. package/dist/esm/snk-attach.entry.js +7 -7
  122. package/dist/esm/snk-crud.entry.js +7 -7
  123. package/dist/esm/snk-data-exporter.entry.js +5 -5
  124. package/dist/esm/{snk-data-unit-b7e6e7a6.js → snk-data-unit-d4a42b59.js} +13 -3
  125. package/dist/esm/snk-data-unit.entry.js +3 -3
  126. package/dist/esm/snk-detail-view.entry.js +9 -9
  127. package/dist/esm/snk-entity-list.entry.js +10 -3
  128. package/dist/esm/snk-expression-group_2.entry.js +1 -1
  129. package/dist/esm/snk-filter-bar_4.entry.js +190 -116
  130. package/dist/esm/snk-filter-binary-select.entry.js +23 -2
  131. package/dist/esm/snk-filter-checkbox-list.entry.js +20 -2
  132. package/dist/esm/snk-filter-detail.entry.js +25 -8
  133. package/dist/esm/snk-filter-modal-item.entry.js +9 -14
  134. package/dist/esm/snk-filter-multi-select.entry.js +16 -3
  135. package/dist/esm/snk-filter-number.entry.js +34 -3
  136. package/dist/esm/snk-filter-period.entry.js +59 -14
  137. package/dist/esm/snk-filter-search.entry.js +14 -3
  138. package/dist/esm/snk-filter-text.entry.js +18 -1
  139. package/dist/esm/snk-form_2.entry.js +31 -5
  140. package/dist/esm/snk-grid.entry.js +152 -60
  141. package/dist/esm/{snk-guides-viewer-fbfece85.js → snk-guides-viewer-19cb7f1f.js} +6 -6
  142. package/dist/esm/snk-guides-viewer.entry.js +9 -9
  143. package/dist/esm/snk-personalized-filter.entry.js +14 -6
  144. package/dist/esm/snk-pesquisa.entry.js +4 -4
  145. package/dist/esm/snk-simple-bar.entry.js +5 -5
  146. package/dist/esm/snk-simple-crud.entry.js +55 -18
  147. package/dist/esm/snk-taskbar.entry.js +2 -2
  148. package/dist/esm/{taskbar-elements-171476d4.js → taskbar-elements-faaf5d8f.js} +1 -1
  149. package/dist/sankhyablocks/{p-0e495575.js → p-0237c565.js} +1 -1
  150. package/dist/sankhyablocks/p-093f58fa.entry.js +1 -0
  151. package/dist/sankhyablocks/{p-8d1508aa.entry.js → p-0affc07a.entry.js} +1 -1
  152. package/dist/sankhyablocks/{p-ad2ae575.entry.js → p-0e1f0344.entry.js} +1 -1
  153. package/dist/sankhyablocks/p-29cacaf3.entry.js +1 -0
  154. package/dist/sankhyablocks/{p-eb0616d3.entry.js → p-32450ea2.entry.js} +1 -1
  155. package/dist/sankhyablocks/{p-b49281be.entry.js → p-3c29939c.entry.js} +1 -1
  156. package/dist/sankhyablocks/p-3ed04f0d.entry.js +1 -0
  157. package/dist/sankhyablocks/{p-4872dc3a.entry.js → p-44c5ec49.entry.js} +1 -1
  158. package/dist/sankhyablocks/p-49ddc27a.entry.js +1 -0
  159. package/dist/sankhyablocks/p-4c763b10.entry.js +1 -0
  160. package/dist/sankhyablocks/p-4eeb06fc.js +1 -0
  161. package/dist/sankhyablocks/p-505172c8.entry.js +1 -0
  162. package/dist/sankhyablocks/p-55798617.js +1 -0
  163. package/dist/sankhyablocks/{p-158adf33.entry.js → p-605ef7b2.entry.js} +1 -1
  164. package/dist/sankhyablocks/p-658f67a5.js +1 -0
  165. package/dist/sankhyablocks/p-72a9285d.entry.js +1 -0
  166. package/dist/sankhyablocks/p-7f7fe6c4.entry.js +1 -0
  167. package/dist/sankhyablocks/p-88b7bc09.js +1 -0
  168. package/dist/sankhyablocks/{p-c6331595.js → p-8d256def.js} +1 -1
  169. package/dist/sankhyablocks/p-8f37b75b.entry.js +1 -0
  170. package/dist/sankhyablocks/{p-b35574b5.js → p-9062d640.js} +1 -1
  171. package/dist/sankhyablocks/{p-72c8c847.entry.js → p-95c71f5e.entry.js} +1 -1
  172. package/dist/sankhyablocks/p-96d45943.entry.js +1 -0
  173. package/dist/sankhyablocks/{p-eacff4b7.entry.js → p-b2d7f4cd.entry.js} +1 -1
  174. package/dist/sankhyablocks/{p-6a015ba2.js → p-b7f5caf6.js} +1 -1
  175. package/dist/sankhyablocks/p-b9200e77.entry.js +11 -0
  176. package/dist/sankhyablocks/{p-7de79adf.js → p-b987e15d.js} +1 -1
  177. package/dist/sankhyablocks/{p-ba4979b4.js → p-bf017a1f.js} +1 -1
  178. package/dist/sankhyablocks/{p-735a1175.entry.js → p-c3dbf441.entry.js} +1 -1
  179. package/dist/sankhyablocks/{p-3dba3468.js → p-c71dcb2d.js} +1 -1
  180. package/dist/sankhyablocks/{p-5e282b33.entry.js → p-c95f20d9.entry.js} +1 -1
  181. package/dist/sankhyablocks/p-c98e2085.js +1 -0
  182. package/dist/sankhyablocks/p-cb4343c4.entry.js +1 -0
  183. package/dist/sankhyablocks/p-d03ae54e.entry.js +1 -0
  184. package/dist/sankhyablocks/p-d235314c.entry.js +1 -0
  185. package/dist/sankhyablocks/p-d75a732c.js +1 -0
  186. package/dist/sankhyablocks/{p-f39b0ebe.entry.js → p-df7979fd.entry.js} +1 -1
  187. package/dist/sankhyablocks/p-e258de96.entry.js +1 -0
  188. package/dist/sankhyablocks/{p-d377aa7a.entry.js → p-f8e87cf1.entry.js} +1 -1
  189. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  190. package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +46 -3
  191. package/dist/types/components/snk-entity-list/snk-entity-list.d.ts +8 -4
  192. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.d.ts +12 -0
  193. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-checkbox-list.d.ts +12 -0
  194. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.d.ts +12 -4
  195. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-number.d.ts +16 -4
  196. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-period.d.ts +17 -3
  197. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-search.d.ts +10 -2
  198. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-text.d.ts +12 -0
  199. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-detail.d.ts +8 -3
  200. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +27 -4
  201. package/dist/types/components/snk-filter-bar/filter-modal/snk-filter-modal.d.ts +17 -3
  202. package/dist/types/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.d.ts +2 -3
  203. package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +60 -30
  204. package/dist/types/components/snk-filter-bar/utils/SnkFilterModalFactory.d.ts +4 -2
  205. package/dist/types/components/snk-filter-bar/utils/filter-validate.d.ts +11 -0
  206. package/dist/types/components/snk-form/snk-form.d.ts +29 -4
  207. package/dist/types/components/snk-grid/snk-grid.d.ts +132 -58
  208. package/dist/types/components/snk-personalized-filter/snk-personalized-filter.d.ts +53 -5
  209. package/dist/types/components/snk-pesquisa/snk-pesquisa.d.ts +44 -6
  210. package/dist/types/components/snk-simple-bar/snk-simple-bar.d.ts +15 -15
  211. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +100 -43
  212. package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +23 -21
  213. package/dist/types/components.d.ts +771 -255
  214. package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +1 -0
  215. package/package.json +4 -3
  216. package/dist/collection/lib/licenses/sankhyalicense.module.js +0 -1
  217. package/dist/sankhyablocks/p-012208e0.entry.js +0 -1
  218. package/dist/sankhyablocks/p-07b14811.entry.js +0 -1
  219. package/dist/sankhyablocks/p-0dac8fef.js +0 -1
  220. package/dist/sankhyablocks/p-1210500e.js +0 -1
  221. package/dist/sankhyablocks/p-16fc4acd.js +0 -1
  222. package/dist/sankhyablocks/p-25209340.entry.js +0 -1
  223. package/dist/sankhyablocks/p-295b83ae.entry.js +0 -1
  224. package/dist/sankhyablocks/p-398cdd67.entry.js +0 -1
  225. package/dist/sankhyablocks/p-4e63ffed.entry.js +0 -1
  226. package/dist/sankhyablocks/p-5bab470d.entry.js +0 -1
  227. package/dist/sankhyablocks/p-5c7af8a9.entry.js +0 -1
  228. package/dist/sankhyablocks/p-81769310.entry.js +0 -11
  229. package/dist/sankhyablocks/p-9fd87bfd.entry.js +0 -1
  230. package/dist/sankhyablocks/p-a349689a.js +0 -1
  231. package/dist/sankhyablocks/p-a76e6d51.entry.js +0 -1
  232. package/dist/sankhyablocks/p-a86eee47.entry.js +0 -1
  233. package/dist/sankhyablocks/p-c6a8a8bc.entry.js +0 -1
  234. package/dist/sankhyablocks/p-c9e6d720.js +0 -1
  235. package/dist/sankhyablocks/p-dff65083.entry.js +0 -1
  236. package/dist/sankhyablocks/p-fa18530e.entry.js +0 -1
@@ -1,11 +1,10 @@
1
- import { ApplicationContext, ElementIDUtils, ObjectUtils, ErrorException, LockManager, LockManagerOperation } from '@sankhyalabs/core';
1
+ import { ApplicationContext, ElementIDUtils, ErrorException, LockManager, LockManagerOperation, ObjectUtils } from '@sankhyalabs/core';
2
2
  import { EzScrollDirection } from '@sankhyalabs/ezui/dist/collection/components/ez-scroller/EzScrollDirection';
3
3
  import { h, Host } from '@stencil/core';
4
4
  import { ConfigStorage } from '../../lib/configs/ConfigStorage';
5
+ import { PersonalizedFilterUtils } from '../snk-personalized-filter/subcomponents/snk-filter-param-config/utils/PersonalizedFilterUtils';
5
6
  import buildFilter from './filter-item/dataunitfilter/data-unit-filter-builder';
6
7
  import FilterItemType from './filter-item/filter-item-type.enum';
7
- import SnkFilterModalFactory from './utils/SnkFilterModalFactory';
8
- import { PersonalizedFilterUtils } from '../snk-personalized-filter/subcomponents/snk-filter-param-config/utils/PersonalizedFilterUtils';
9
8
  export class SnkFilterBar {
10
9
  constructor() {
11
10
  this._updateSequence = [];
@@ -42,10 +41,13 @@ export class SnkFilterBar {
42
41
  this.filterBarLegacyConfigName = undefined;
43
42
  this.autoLoad = undefined;
44
43
  this.afterApplyConfig = undefined;
44
+ this.filterCustomConfig = undefined;
45
+ this.filterCustomConfigInterceptor = undefined;
45
46
  this.allowDefault = undefined;
46
47
  this.scrollerLocked = false;
47
48
  this.showPersonalizedFilter = false;
48
49
  this.personalizedFilterId = undefined;
50
+ this.isFilterModalOpen = false;
49
51
  }
50
52
  hasValidValue(item) {
51
53
  if (item.value === undefined || item.value === null)
@@ -94,22 +96,28 @@ export class SnkFilterBar {
94
96
  this.processAfterUpdateConfig();
95
97
  }
96
98
  /**
97
- * Faz o recarregamento da filterbar buscando o state no servidor.
99
+ * @description Faz o recarregamento da barra de filtros buscando o state no servidor.
100
+ * @async
101
+ * @return {Promise<void>} Retorna uma Promise que resolve quando o recarregamento for concluído.
98
102
  */
99
103
  async reload() {
100
104
  this.loadConfigFromStorage(true);
101
105
  }
102
106
  /**
103
- * Retorna um item de filtro pelo ID.
107
+ * @description Retorna um item de filtro pelo ID.
108
+ * @async
109
+ * @param {string} id - ID do item de filtro.
110
+ * @returns {Promise<SnkFilterItemConfig | undefined>} O item de filtro correspondente ou undefined se não for encontrado.
104
111
  */
105
112
  async getFilterItem(id) {
106
113
  const item = this.filterConfig.find(item => item.id === id);
107
114
  return Promise.resolve(ObjectUtils.copy(item));
108
115
  }
109
116
  /**
110
- * Atualiza um item do filtro.
111
- *
112
- * @param filterItem - Item com as informações atualizadas, caso o item não seja encontrado no array ele mão será modificado
117
+ * @description Atualiza um item do filtro.
118
+ * @async
119
+ * @param {SnkFilterItemConfig} newFilterItem - Item com as informações atualizadas, caso o item não seja encontrado no array, ele não será modificado.
120
+ * @return {Promise<void>} Retorna uma Promise que resolve quando a atualização for concluída.
113
121
  */
114
122
  async updateFilterItem(newFilterItem) {
115
123
  const itemIndex = this.filterConfig.findIndex(item => item.id === newFilterItem.id);
@@ -122,9 +130,10 @@ export class SnkFilterBar {
122
130
  return Promise.resolve();
123
131
  }
124
132
  /**
125
- * Adiciona um item de filtro.
126
- *
127
- * @param filterItem - Item a ser adicionado, caso o item já exista com o ID ele não será adicionado novamente
133
+ * @description Adiciona um item de filtro.
134
+ * @async
135
+ * @param {SnkFilterItemConfig} filterItem - Item a ser adicionado, caso o item já exista com o ID, ele não será adicionado novamente.
136
+ * @return {Promise<void>} Retorna uma Promise que resolve quando o item for adicionado.
128
137
  */
129
138
  async addFilterItem(filterItem) {
130
139
  const itemIndex = this.filterConfig.findIndex(item => item.id === filterItem.id);
@@ -138,11 +147,10 @@ export class SnkFilterBar {
138
147
  return Promise.resolve();
139
148
  }
140
149
  /**
141
- * Remove um item de filtro.
142
- *
143
- * @param filterID - ID do a ser adicionado
144
- *
145
- * @returns {Promise<SnkFilterItemConfig|undefined>} - Retorna o item de filtro removido, ou undefined caso não encontrado.
150
+ * @description Remove um item de filtro.
151
+ * @async
152
+ * @param {string} filterID - ID do item a ser removido.
153
+ * @returns {Promise<SnkFilterItemConfig|undefined>} Retorna o item de filtro removido, ou undefined caso não seja encontrado.
146
154
  */
147
155
  async removeFilterItem(filterID) {
148
156
  const itemIndex = this.filterConfig.findIndex(item => item.id === filterID);
@@ -151,7 +159,6 @@ export class SnkFilterBar {
151
159
  return Promise.resolve(undefined);
152
160
  }
153
161
  const itemToRemove = this.filterConfig[itemIndex];
154
- ;
155
162
  this.filterConfig = this.filterConfig.filter(item => item.id !== filterID);
156
163
  return Promise.resolve(itemToRemove);
157
164
  }
@@ -188,7 +195,7 @@ export class SnkFilterBar {
188
195
  return;
189
196
  }
190
197
  this._loadingPending = false;
191
- this.doLoadData(this.dataUnit.getLastLoadRequest() != undefined);
198
+ this.doLoadData();
192
199
  }
193
200
  if (this._configUpdated) {
194
201
  this._configUpdated = false;
@@ -215,7 +222,7 @@ export class SnkFilterBar {
215
222
  }
216
223
  /**
217
224
  * Conforme mecanismo de mensagens, é possível customizar as mensagens dos blocos de construção
218
- * através de um pequeno modulo na estrutura da aplicação:
225
+ * através de um pequeno módulo na estrutura da aplicação:
219
226
  * - Criar um arquivo no seguinte caminho: /messages/appmessages.msg.js.
220
227
  * Para conhecer os detalhes do módulo, vide o arquivo neste projeto "/src/lib/message/resources/snk-filter-bar.msg.ts"
221
228
  */
@@ -226,6 +233,9 @@ export class SnkFilterBar {
226
233
  }
227
234
  return ((_a = this.messagesBuilder) === null || _a === void 0 ? void 0 : _a.getMessage(key, params)) || defaultValue;
228
235
  }
236
+ async getFilters() {
237
+ return this.getFilter(null);
238
+ }
229
239
  getFilter(_dataUnit) {
230
240
  var _a;
231
241
  const filters = [];
@@ -284,11 +294,11 @@ export class SnkFilterBar {
284
294
  const unpinnedItems = [];
285
295
  this.filterConfig.sort((a, b) => this._filtersComparator(a, b))
286
296
  .filter(this.filterActiveFilter)
287
- .forEach((item, index) => {
297
+ .forEach((item) => {
288
298
  item = ObjectUtils.copy(item);
289
299
  const itemId = `filter-${item.id}`;
290
- const filterItem = (h("snk-filter-item", { onVisibleChanged: (evt) => this.scrollerLocked = evt.detail, onFilterChange: (event) => this.updateFilter(event.detail), onFocusin: () => this.itemFocused(itemId), id: itemId, config: item, class: index > 0 ? "ez-padding-left--medium" : "", getMessage: (key, props) => this.getMessage(key, props), key: item.id }));
291
- if (item.fixed || item.hardFixed) {
300
+ const filterItem = (h("snk-filter-item", { onVisibleChanged: (evt) => this.scrollerLocked = evt.detail, onFilterChange: (event) => this.updateFilter(event.detail), onFocusin: () => this.itemFocused(itemId), id: itemId, config: item, class: "ez-margin-horizontal--extra-small", getMessage: (key, props) => this.getMessage(key, props), key: item.id }));
301
+ if (item.fixed || item.hardFixed || item.required) {
292
302
  pinnedItems.push(filterItem);
293
303
  }
294
304
  else {
@@ -297,9 +307,9 @@ export class SnkFilterBar {
297
307
  return filterItem;
298
308
  });
299
309
  const elements = [];
300
- elements.push(...pinnedItems);
310
+ elements.push(...pinnedItems.reverse());
301
311
  if (pinnedItems.length > 0 && unpinnedItems.length > 0) {
302
- elements.push(h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin-left--medium snk-filter-bar__divider" }));
312
+ elements.push(h("hr", { class: "ez-margin-horizontal--small ez-margin-vertical--auto ez-divider-vertical ez-divider--dark snk-filter-bar__divider" }));
303
313
  }
304
314
  elements.push(...unpinnedItems);
305
315
  return elements;
@@ -324,7 +334,7 @@ export class SnkFilterBar {
324
334
  return normalized;
325
335
  }
326
336
  updateFilter(newItem) {
327
- this.filterConfig = this.filterConfig.map(item => {
337
+ let config = this.filterConfig.map(item => {
328
338
  newItem = this.normalizeItem(newItem);
329
339
  if (item.id === newItem.id) {
330
340
  if (ObjectUtils.objectToString(item) != ObjectUtils.objectToString(newItem)) {
@@ -334,6 +344,10 @@ export class SnkFilterBar {
334
344
  }
335
345
  return item;
336
346
  }).sort((a, b) => this._filtersComparator(a, b));
347
+ if (this.filterCustomConfigInterceptor) {
348
+ config = this.filterCustomConfigInterceptor(config);
349
+ }
350
+ this.filterConfig = config;
337
351
  }
338
352
  loadPermitions() {
339
353
  this._application.isUserSup().then(value => this.allowDefault = value);
@@ -355,6 +369,12 @@ export class SnkFilterBar {
355
369
  else {
356
370
  config = await ConfigStorage.loadFilterBarConfig(this.configName, this.resourceID, { contextURI: this.dataUnit.name });
357
371
  }
372
+ if (this.filterCustomConfig) {
373
+ config = [...this.filterCustomConfig, ...config];
374
+ }
375
+ if (this.filterCustomConfigInterceptor) {
376
+ config = this.filterCustomConfigInterceptor(config);
377
+ }
358
378
  this.filterConfig = config.map(item => this.normalizeItem(item));
359
379
  this.filterConfig.sort((a, b) => this._filtersComparator(a, b));
360
380
  }
@@ -394,33 +414,17 @@ export class SnkFilterBar {
394
414
  this.updateFilter(evt.detail);
395
415
  }
396
416
  /**
397
- * Abre o modal de filtros
417
+ * @description Abre o modal de filtros.
418
+ * @async
398
419
  */
399
420
  async showFilterModal() {
400
- const callbackOnApplyFilter = (filters) => {
401
- var _a;
402
- this.filterConfig = filters.map(this.normalizeItem).sort((a, b) => this._filtersComparator(a, b));
403
- (_a = this.afterApplyConfig) === null || _a === void 0 ? void 0 : _a.call(this);
404
- };
405
- let filtersConfigCopy = ObjectUtils.copy(this.filterConfig);
406
- filtersConfigCopy = filtersConfigCopy.sort((itemA, itemB) => {
407
- return itemA.originOrder - itemB.originOrder;
408
- });
409
- const factoryParams = {
410
- filterConfig: filtersConfigCopy,
411
- configName: this.configName,
412
- onComplete: callbackOnApplyFilter,
413
- disablePersonalizedFilter: this.disablePersonalizedFilter,
414
- getMessage: (key, props) => this.getMessage(key, props),
415
- onAddPersonalizedFilter: (isDefault) => this.addPersonalizedFilter(isDefault),
416
- onEditPersonalizedFilter: (id, isDefault) => this.editPersonalizedFilter(id, isDefault),
417
- onDeletePersonalizedFilter: (filter, configName, isDefault) => this.deletePersonalizedFilter(filter, FilterItemType.PERSONALIZED, configName, isDefault),
418
- };
419
- this._filterModalFactory = new SnkFilterModalFactory(factoryParams);
420
- await this._filterModalFactory.showModal();
421
+ if (this.isFilterModalOpen) {
422
+ return; // Evita abrir múltiplos modais
423
+ }
424
+ this.isFilterModalOpen = true;
421
425
  }
422
426
  addPersonalizedFilter(isDefault = false) {
423
- this._filterModalFactory.closeModal();
427
+ this.isFilterModalOpen = false;
424
428
  this._isDefaultFilter = isDefault;
425
429
  this.personalizedFilterId = undefined;
426
430
  this.showPersonalizedFilter = true;
@@ -429,7 +433,7 @@ export class SnkFilterBar {
429
433
  });
430
434
  }
431
435
  editPersonalizedFilter(id, isDefault = false) {
432
- this._filterModalFactory.closeModal();
436
+ this.isFilterModalOpen = false;
433
437
  this._isDefaultFilter = isDefault;
434
438
  this.showPersonalizedFilter = true;
435
439
  this.personalizedFilterId = id;
@@ -444,6 +448,15 @@ export class SnkFilterBar {
444
448
  ConfigStorage.removePersonalizedFilter(filter, this.resourceID, configName);
445
449
  }
446
450
  }
451
+ closeFilterModal() {
452
+ this.isFilterModalOpen = false;
453
+ }
454
+ applyFiltersFromModal(filters) {
455
+ var _a;
456
+ this.filterConfig = filters.map(this.normalizeItem).sort((a, b) => this._filtersComparator(a, b));
457
+ (_a = this.afterApplyConfig) === null || _a === void 0 ? void 0 : _a.call(this);
458
+ this.isFilterModalOpen = false;
459
+ }
447
460
  handleHidePersonalizedFilter(reloadFilterBar) {
448
461
  if (reloadFilterBar) {
449
462
  this.loadConfigFromStorage().then(() => {
@@ -490,10 +503,14 @@ export class SnkFilterBar {
490
503
  if (this.showPersonalizedFilter) {
491
504
  return h("snk-personalized-filter", { class: "filter-bar__personalized-filter", filterId: this.personalizedFilterId, ref: (el) => this._elPersonalizedFilter = el, isDefaultFilter: this._isDefaultFilter, onEzCancel: () => this.handleHidePersonalizedFilter(false), onEzAfterSave: () => this.handleHidePersonalizedFilter(true), entityUri: this.dataUnit.name, configName: this.configName, resourceID: this.resourceID });
492
505
  }
506
+ let filtersConfigCopy = ObjectUtils.copy(this.filterConfig);
507
+ filtersConfigCopy = filtersConfigCopy.sort((itemA, itemB) => {
508
+ return itemA.originOrder - itemB.originOrder;
509
+ });
493
510
  if (this.mode !== "regular") {
494
- return (h(Host, { "data-mode": this.mode }, this.getPersonalizedFilterVariableItems(), this.mode === 'button' && (h("ez-button", { class: "ez-margin-left--medium", size: "small", label: this.getMessage('snkFilterBar.filters', undefined, this.getMessage("snkFilterBar.filters")), onClick: this.showFilterModal.bind(this) }))));
511
+ return (h(Host, { "data-mode": this.mode }, this.getPersonalizedFilterVariableItems(), this.mode === 'button' && (h("ez-button", { class: "ez-margin-left--medium", size: "small", label: this.getMessage('snkFilterBar.filters', undefined, this.getMessage("snkFilterBar.filters")), onClick: this.showFilterModal.bind(this) })), h("snk-filter-modal", { opened: this.isFilterModalOpen, filterConfig: this.filterConfig, configName: this.configName, disablePersonalizedFilter: this.disablePersonalizedFilter, getMessage: (key, props) => this.getMessage(key, props), applyFilters: (filters) => this.applyFiltersFromModal(filters), closeModal: () => this.closeFilterModal(), addPersonalizedFilter: (isDefault) => this.addPersonalizedFilter(isDefault), editPersonalizedFilter: (id, isDefault) => this.editPersonalizedFilter(id, isDefault), deletePersonalizedFilter: (filter, configName, isDefault) => this.deletePersonalizedFilter(filter, FilterItemType.PERSONALIZED, configName, isDefault), filterCustomConfigInterceptor: this.filterCustomConfigInterceptor })));
495
512
  }
496
- return (h(Host, null, h("div", null, h("span", { class: "snk-filter-bar__title", title: this.title, "data-tooltip": this.title, "data-flow": "bottom" }, this.title)), h("ez-scroller", { class: "snk-filter-bar__scroller", direction: EzScrollDirection.HORIZONTAL, activeShadow: true, locked: this.scrollerLocked }, h("section", { class: "snk-filter-bar__filter-item-container" }, this.getFilterItems())), h("ez-button", { class: "ez-padding-left--medium ez-margin-top--extra-small", size: "small", label: this.getMessage('snkFilterBar.filters', undefined, this.getMessage("snkFilterBar.filters")), onClick: this.showFilterModal.bind(this) }, h("ez-icon", { slot: "leftIcon", iconName: "plus", class: "ez-padding-right--small" }))));
513
+ return (h(Host, null, h("div", null, h("span", { class: "snk-filter-bar__title", title: this.title, "data-tooltip": this.title, "data-flow": "bottom" }, this.title)), h("ez-scroller", { class: "snk-filter-bar__scroller", direction: EzScrollDirection.HORIZONTAL, activeShadow: true, locked: this.scrollerLocked }, h("section", { class: "snk-filter-bar__filter-item-container" }, this.getFilterItems())), h("ez-button", { class: "ez-padding-left--medium ez-margin-top--extra-small", size: "small", label: this.getMessage('snkFilterBar.filters', undefined, this.getMessage("snkFilterBar.filters")), onClick: this.showFilterModal.bind(this) }, h("ez-icon", { slot: "leftIcon", iconName: "plus", class: "ez-padding-right--small" })), h("snk-filter-modal", { opened: this.isFilterModalOpen, filterConfig: this.filterConfig, configName: this.configName, disablePersonalizedFilter: this.disablePersonalizedFilter, getMessage: (key, props) => this.getMessage(key, props), applyFilters: (filters) => this.applyFiltersFromModal(filters), closeModal: () => this.closeFilterModal(), addPersonalizedFilter: (isDefault) => this.addPersonalizedFilter(isDefault), editPersonalizedFilter: (id, isDefault) => this.editPersonalizedFilter(id, isDefault), deletePersonalizedFilter: (filter, configName, isDefault) => this.deletePersonalizedFilter(filter, FilterItemType.PERSONALIZED, configName, isDefault), filterCustomConfigInterceptor: this.filterCustomConfigInterceptor })));
497
514
  }
498
515
  static get is() { return "snk-filter-bar"; }
499
516
  static get encapsulation() { return "scoped"; }
@@ -520,8 +537,11 @@ export class SnkFilterBar {
520
537
  "required": false,
521
538
  "optional": true,
522
539
  "docs": {
523
- "tags": [],
524
- "text": "Define se o componente deve usar o LockManager para controle de carregamento"
540
+ "tags": [{
541
+ "name": "description",
542
+ "text": "Define se o componente deve usar o LockManager para controle de carregamento."
543
+ }],
544
+ "text": ""
525
545
  },
526
546
  "attribute": "enable-lock-manager-loading-comp",
527
547
  "reflect": false,
@@ -549,8 +569,23 @@ export class SnkFilterBar {
549
569
  "required": false,
550
570
  "optional": true,
551
571
  "docs": {
552
- "tags": [],
553
- "text": "Loader customizado para carregar as configura\u00E7\u00F5es"
572
+ "tags": [{
573
+ "name": "description",
574
+ "text": "Loader customizado para carregar as configura\u00E7\u00F5es."
575
+ }, {
576
+ "name": "param",
577
+ "text": "configName - Nome da configura\u00E7\u00E3o."
578
+ }, {
579
+ "name": "param",
580
+ "text": "resourceId - ID do recurso."
581
+ }, {
582
+ "name": "param",
583
+ "text": "options - Op\u00E7\u00F5es adicionais."
584
+ }, {
585
+ "name": "returns",
586
+ "text": "Retorna a configura\u00E7\u00E3o dos filtros."
587
+ }],
588
+ "text": ""
554
589
  }
555
590
  },
556
591
  "dataUnit": {
@@ -569,8 +604,11 @@ export class SnkFilterBar {
569
604
  "required": false,
570
605
  "optional": false,
571
606
  "docs": {
572
- "tags": [],
573
- "text": "Recebe o DataUnit do ambiente. Se n\u00E3o for informado, procura pela refer\u00EAncia\ndo SnkDataUnit. Necess\u00E1rio para se registrar como provedor de filtros."
607
+ "tags": [{
608
+ "name": "description",
609
+ "text": "Recebe o DataUnit do ambiente. Se n\u00E3o for informado, procura pela refer\u00EAncia\ndo SnkDataUnit. Necess\u00E1rio para se registrar como provedor de filtros."
610
+ }],
611
+ "text": ""
574
612
  }
575
613
  },
576
614
  "title": {
@@ -584,8 +622,11 @@ export class SnkFilterBar {
584
622
  "required": false,
585
623
  "optional": false,
586
624
  "docs": {
587
- "tags": [],
588
- "text": "T\u00EDtulo que ser\u00E1 apresentado na barra de filtros"
625
+ "tags": [{
626
+ "name": "description",
627
+ "text": "T\u00EDtulo que ser\u00E1 apresentado na barra de filtros."
628
+ }],
629
+ "text": ""
589
630
  },
590
631
  "attribute": "title",
591
632
  "reflect": false
@@ -601,8 +642,11 @@ export class SnkFilterBar {
601
642
  "required": false,
602
643
  "optional": false,
603
644
  "docs": {
604
- "tags": [],
605
- "text": "Eventualmente poderemos ter mais de uma barra de filtros. Essa propriedade\nserve para separar a configura\u00E7\u00E3o de cada uma."
645
+ "tags": [{
646
+ "name": "description",
647
+ "text": "Eventualmente poderemos ter mais de uma barra de filtros. Essa propriedade\nserve para separar a configura\u00E7\u00E3o de cada uma."
648
+ }],
649
+ "text": ""
606
650
  },
607
651
  "attribute": "config-name",
608
652
  "reflect": false
@@ -618,8 +662,11 @@ export class SnkFilterBar {
618
662
  "required": false,
619
663
  "optional": false,
620
664
  "docs": {
621
- "tags": [],
622
- "text": "Identificador de recursos como configura\u00E7\u00F5es e acesso."
665
+ "tags": [{
666
+ "name": "description",
667
+ "text": "Identificador de recursos como configura\u00E7\u00F5es e acesso."
668
+ }],
669
+ "text": ""
623
670
  },
624
671
  "attribute": "resource-i-d",
625
672
  "reflect": false
@@ -635,8 +682,11 @@ export class SnkFilterBar {
635
682
  "required": false,
636
683
  "optional": false,
637
684
  "docs": {
638
- "tags": [],
639
- "text": "Modo de apresenta\u00E7\u00E3o da filterbar."
685
+ "tags": [{
686
+ "name": "description",
687
+ "text": "Modo de apresenta\u00E7\u00E3o da barra de filtros."
688
+ }],
689
+ "text": ""
640
690
  },
641
691
  "attribute": "mode",
642
692
  "reflect": false,
@@ -661,8 +711,11 @@ export class SnkFilterBar {
661
711
  "required": false,
662
712
  "optional": false,
663
713
  "docs": {
664
- "tags": [],
665
- "text": "Lista todos os filtros dispon\u00EDveis ao usu\u00E1rio."
714
+ "tags": [{
715
+ "name": "description",
716
+ "text": "Lista todos os filtros dispon\u00EDveis ao usu\u00E1rio."
717
+ }],
718
+ "text": ""
666
719
  }
667
720
  },
668
721
  "messagesBuilder": {
@@ -681,8 +734,11 @@ export class SnkFilterBar {
681
734
  "required": false,
682
735
  "optional": false,
683
736
  "docs": {
684
- "tags": [],
685
- "text": "Respons\u00E1vel por flexibilizar e padronizar o uso de mensagens nos blocos de constru\u00E7\u00E3o."
737
+ "tags": [{
738
+ "name": "description",
739
+ "text": "Respons\u00E1vel por flexibilizar e padronizar o uso de mensagens nos blocos de constru\u00E7\u00E3o."
740
+ }],
741
+ "text": ""
686
742
  }
687
743
  },
688
744
  "disablePersonalizedFilter": {
@@ -696,8 +752,11 @@ export class SnkFilterBar {
696
752
  "required": false,
697
753
  "optional": false,
698
754
  "docs": {
699
- "tags": [],
700
- "text": "Desabilita a apresenta\u00E7\u00E3o da op\u00E7\u00E3o de filtros personalizados na filter bar (chip de filtros)\ne no modal lateral de filtros (container de filtros personalizados)."
755
+ "tags": [{
756
+ "name": "description",
757
+ "text": "Desabilita a apresenta\u00E7\u00E3o da op\u00E7\u00E3o de filtros personalizados na filter bar (chip de filtros)\ne no modal lateral de filtros (container de filtros personalizados)."
758
+ }],
759
+ "text": ""
701
760
  },
702
761
  "attribute": "disable-personalized-filter",
703
762
  "reflect": false
@@ -713,8 +772,11 @@ export class SnkFilterBar {
713
772
  "required": false,
714
773
  "optional": false,
715
774
  "docs": {
716
- "tags": [],
717
- "text": "Chave da configura\u00E7\u00E3o legado da barra de filtros."
775
+ "tags": [{
776
+ "name": "description",
777
+ "text": "Chave da configura\u00E7\u00E3o legada da barra de filtros."
778
+ }],
779
+ "text": ""
718
780
  },
719
781
  "attribute": "filter-bar-legacy-config-name",
720
782
  "reflect": false
@@ -730,8 +792,11 @@ export class SnkFilterBar {
730
792
  "required": false,
731
793
  "optional": true,
732
794
  "docs": {
733
- "tags": [],
734
- "text": "Define se a carga dos dados ser\u00E1 feita assim que o componente for carregado."
795
+ "tags": [{
796
+ "name": "description",
797
+ "text": "Define se a carga dos dados ser\u00E1 feita assim que o componente for carregado."
798
+ }],
799
+ "text": ""
735
800
  },
736
801
  "attribute": "auto-load",
737
802
  "reflect": false
@@ -747,8 +812,72 @@ export class SnkFilterBar {
747
812
  "required": false,
748
813
  "optional": true,
749
814
  "docs": {
750
- "tags": [],
751
- "text": "Fun\u00E7\u00E3o chamada depois de aplicar os filtros."
815
+ "tags": [{
816
+ "name": "description",
817
+ "text": "Fun\u00E7\u00E3o chamada depois de aplicar os filtros."
818
+ }],
819
+ "text": ""
820
+ }
821
+ },
822
+ "filterCustomConfig": {
823
+ "type": "unknown",
824
+ "mutable": false,
825
+ "complexType": {
826
+ "original": "Array<SnkFilterItemConfig>",
827
+ "resolved": "SnkFilterItemConfig[]",
828
+ "references": {
829
+ "Array": {
830
+ "location": "global"
831
+ },
832
+ "SnkFilterItemConfig": {
833
+ "location": "import",
834
+ "path": "./filter-item/snk-filter-item"
835
+ }
836
+ }
837
+ },
838
+ "required": false,
839
+ "optional": true,
840
+ "docs": {
841
+ "tags": [{
842
+ "name": "description",
843
+ "text": "Configura\u00E7\u00E3o customizada dos filtros."
844
+ }, {
845
+ "name": "param",
846
+ "text": "config - Lista de configura\u00E7\u00F5es de filtros."
847
+ }],
848
+ "text": ""
849
+ }
850
+ },
851
+ "filterCustomConfigInterceptor": {
852
+ "type": "unknown",
853
+ "mutable": false,
854
+ "complexType": {
855
+ "original": "(config: Array<SnkFilterItemConfig>) => Array<SnkFilterItemConfig>",
856
+ "resolved": "(config: SnkFilterItemConfig[]) => SnkFilterItemConfig[]",
857
+ "references": {
858
+ "Array": {
859
+ "location": "global"
860
+ },
861
+ "SnkFilterItemConfig": {
862
+ "location": "import",
863
+ "path": "./filter-item/snk-filter-item"
864
+ }
865
+ }
866
+ },
867
+ "required": false,
868
+ "optional": true,
869
+ "docs": {
870
+ "tags": [{
871
+ "name": "description",
872
+ "text": "Intercepta a configura\u00E7\u00E3o dos filtros antes de serem aplicadas."
873
+ }, {
874
+ "name": "param",
875
+ "text": "config - Lista de configura\u00E7\u00F5es de filtros."
876
+ }, {
877
+ "name": "returns",
878
+ "text": "Retorna a lista de configura\u00E7\u00F5es de filtros."
879
+ }],
880
+ "text": ""
752
881
  }
753
882
  }
754
883
  };
@@ -758,7 +887,8 @@ export class SnkFilterBar {
758
887
  "allowDefault": {},
759
888
  "scrollerLocked": {},
760
889
  "showPersonalizedFilter": {},
761
- "personalizedFilterId": {}
890
+ "personalizedFilterId": {},
891
+ "isFilterModalOpen": {}
762
892
  };
763
893
  }
764
894
  static get events() {
@@ -769,7 +899,16 @@ export class SnkFilterBar {
769
899
  "cancelable": true,
770
900
  "composed": true,
771
901
  "docs": {
772
- "tags": [],
902
+ "tags": [{
903
+ "name": "description",
904
+ "text": "Evento emitido quando a configura\u00E7\u00E3o dos filtros \u00E9 atualizada."
905
+ }, {
906
+ "name": "param",
907
+ "text": "configs - Lista de configura\u00E7\u00F5es de filtros atualizadas."
908
+ }, {
909
+ "name": "event",
910
+ "text": undefined
911
+ }],
773
912
  "text": ""
774
913
  },
775
914
  "complexType": {
@@ -798,16 +937,28 @@ export class SnkFilterBar {
798
937
  "return": "Promise<void>"
799
938
  },
800
939
  "docs": {
801
- "text": "Faz o recarregamento da filterbar buscando o state no servidor.",
802
- "tags": []
940
+ "text": "",
941
+ "tags": [{
942
+ "name": "description",
943
+ "text": "Faz o recarregamento da barra de filtros buscando o state no servidor."
944
+ }, {
945
+ "name": "async",
946
+ "text": undefined
947
+ }, {
948
+ "name": "return",
949
+ "text": "Retorna uma Promise que resolve quando o recarregamento for conclu\u00EDdo."
950
+ }]
803
951
  }
804
952
  },
805
953
  "getFilterItem": {
806
954
  "complexType": {
807
955
  "signature": "(id: string) => Promise<SnkFilterItemConfig | undefined>",
808
956
  "parameters": [{
809
- "tags": [],
810
- "text": ""
957
+ "tags": [{
958
+ "name": "param",
959
+ "text": "id - ID do item de filtro."
960
+ }],
961
+ "text": "- ID do item de filtro."
811
962
  }],
812
963
  "references": {
813
964
  "Promise": {
@@ -821,16 +972,31 @@ export class SnkFilterBar {
821
972
  "return": "Promise<SnkFilterItemConfig>"
822
973
  },
823
974
  "docs": {
824
- "text": "Retorna um item de filtro pelo ID.",
825
- "tags": []
975
+ "text": "",
976
+ "tags": [{
977
+ "name": "description",
978
+ "text": "Retorna um item de filtro pelo ID."
979
+ }, {
980
+ "name": "async",
981
+ "text": undefined
982
+ }, {
983
+ "name": "param",
984
+ "text": "id - ID do item de filtro."
985
+ }, {
986
+ "name": "returns",
987
+ "text": "O item de filtro correspondente ou undefined se n\u00E3o for encontrado."
988
+ }]
826
989
  }
827
990
  },
828
991
  "updateFilterItem": {
829
992
  "complexType": {
830
993
  "signature": "(newFilterItem: SnkFilterItemConfig) => Promise<void>",
831
994
  "parameters": [{
832
- "tags": [],
833
- "text": ""
995
+ "tags": [{
996
+ "name": "param",
997
+ "text": "newFilterItem - Item com as informa\u00E7\u00F5es atualizadas, caso o item n\u00E3o seja encontrado no array, ele n\u00E3o ser\u00E1 modificado."
998
+ }],
999
+ "text": "- Item com as informa\u00E7\u00F5es atualizadas, caso o item n\u00E3o seja encontrado no array, ele n\u00E3o ser\u00E1 modificado."
834
1000
  }],
835
1001
  "references": {
836
1002
  "Promise": {
@@ -844,10 +1010,19 @@ export class SnkFilterBar {
844
1010
  "return": "Promise<void>"
845
1011
  },
846
1012
  "docs": {
847
- "text": "Atualiza um item do filtro.",
1013
+ "text": "",
848
1014
  "tags": [{
1015
+ "name": "description",
1016
+ "text": "Atualiza um item do filtro."
1017
+ }, {
1018
+ "name": "async",
1019
+ "text": undefined
1020
+ }, {
849
1021
  "name": "param",
850
- "text": "filterItem - Item com as informa\u00E7\u00F5es atualizadas, caso o item n\u00E3o seja encontrado no array ele m\u00E3o ser\u00E1 modificado"
1022
+ "text": "newFilterItem - Item com as informa\u00E7\u00F5es atualizadas, caso o item n\u00E3o seja encontrado no array, ele n\u00E3o ser\u00E1 modificado."
1023
+ }, {
1024
+ "name": "return",
1025
+ "text": "Retorna uma Promise que resolve quando a atualiza\u00E7\u00E3o for conclu\u00EDda."
851
1026
  }]
852
1027
  }
853
1028
  },
@@ -857,9 +1032,9 @@ export class SnkFilterBar {
857
1032
  "parameters": [{
858
1033
  "tags": [{
859
1034
  "name": "param",
860
- "text": "filterItem - Item a ser adicionado, caso o item j\u00E1 exista com o ID ele n\u00E3o ser\u00E1 adicionado novamente"
1035
+ "text": "filterItem - Item a ser adicionado, caso o item j\u00E1 exista com o ID, ele n\u00E3o ser\u00E1 adicionado novamente."
861
1036
  }],
862
- "text": "- Item a ser adicionado, caso o item j\u00E1 exista com o ID ele n\u00E3o ser\u00E1 adicionado novamente"
1037
+ "text": "- Item a ser adicionado, caso o item j\u00E1 exista com o ID, ele n\u00E3o ser\u00E1 adicionado novamente."
863
1038
  }],
864
1039
  "references": {
865
1040
  "Promise": {
@@ -873,10 +1048,19 @@ export class SnkFilterBar {
873
1048
  "return": "Promise<void>"
874
1049
  },
875
1050
  "docs": {
876
- "text": "Adiciona um item de filtro.",
1051
+ "text": "",
877
1052
  "tags": [{
1053
+ "name": "description",
1054
+ "text": "Adiciona um item de filtro."
1055
+ }, {
1056
+ "name": "async",
1057
+ "text": undefined
1058
+ }, {
878
1059
  "name": "param",
879
- "text": "filterItem - Item a ser adicionado, caso o item j\u00E1 exista com o ID ele n\u00E3o ser\u00E1 adicionado novamente"
1060
+ "text": "filterItem - Item a ser adicionado, caso o item j\u00E1 exista com o ID, ele n\u00E3o ser\u00E1 adicionado novamente."
1061
+ }, {
1062
+ "name": "return",
1063
+ "text": "Retorna uma Promise que resolve quando o item for adicionado."
880
1064
  }]
881
1065
  }
882
1066
  },
@@ -886,9 +1070,9 @@ export class SnkFilterBar {
886
1070
  "parameters": [{
887
1071
  "tags": [{
888
1072
  "name": "param",
889
- "text": "filterID - ID do a ser adicionado"
1073
+ "text": "filterID - ID do item a ser removido."
890
1074
  }],
891
- "text": "- ID do a ser adicionado"
1075
+ "text": "- ID do item a ser removido."
892
1076
  }],
893
1077
  "references": {
894
1078
  "Promise": {
@@ -902,45 +1086,62 @@ export class SnkFilterBar {
902
1086
  "return": "Promise<SnkFilterItemConfig>"
903
1087
  },
904
1088
  "docs": {
905
- "text": "Remove um item de filtro.",
1089
+ "text": "",
906
1090
  "tags": [{
1091
+ "name": "description",
1092
+ "text": "Remove um item de filtro."
1093
+ }, {
1094
+ "name": "async",
1095
+ "text": undefined
1096
+ }, {
907
1097
  "name": "param",
908
- "text": "filterID - ID do a ser adicionado"
1098
+ "text": "filterID - ID do item a ser removido."
909
1099
  }, {
910
1100
  "name": "returns",
911
- "text": "- Retorna o item de filtro removido, ou undefined caso n\u00E3o encontrado."
1101
+ "text": "Retorna o item de filtro removido, ou undefined caso n\u00E3o seja encontrado."
912
1102
  }]
913
1103
  }
914
1104
  },
915
- "showFilterModal": {
1105
+ "getFilters": {
916
1106
  "complexType": {
917
- "signature": "() => Promise<void>",
1107
+ "signature": "() => Promise<Filter[]>",
918
1108
  "parameters": [],
919
1109
  "references": {
920
1110
  "Promise": {
921
1111
  "location": "global"
922
1112
  },
923
- "SnkFilterItemConfig": {
1113
+ "Filter": {
924
1114
  "location": "import",
925
- "path": "./filter-item/snk-filter-item"
926
- },
927
- "Array": {
1115
+ "path": "@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata"
1116
+ }
1117
+ },
1118
+ "return": "Promise<Filter[]>"
1119
+ },
1120
+ "docs": {
1121
+ "text": "",
1122
+ "tags": []
1123
+ }
1124
+ },
1125
+ "showFilterModal": {
1126
+ "complexType": {
1127
+ "signature": "() => Promise<void>",
1128
+ "parameters": [],
1129
+ "references": {
1130
+ "Promise": {
928
1131
  "location": "global"
929
- },
930
- "SnkFilterModalFactoryParams": {
931
- "location": "import",
932
- "path": "./utils/SnkFilterModalFactory"
933
- },
934
- "IPersonalizedFilter": {
935
- "location": "import",
936
- "path": "../snk-personalized-filter/interfaces/IPersonalizedFilter"
937
1132
  }
938
1133
  },
939
1134
  "return": "Promise<void>"
940
1135
  },
941
1136
  "docs": {
942
- "text": "Abre o modal de filtros",
943
- "tags": []
1137
+ "text": "",
1138
+ "tags": [{
1139
+ "name": "description",
1140
+ "text": "Abre o modal de filtros."
1141
+ }, {
1142
+ "name": "async",
1143
+ "text": undefined
1144
+ }]
944
1145
  }
945
1146
  }
946
1147
  };