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

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-0cfa7622.js} +14 -4
  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 +174 -29
  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 +12 -2
  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-4acf4781.js} +14 -4
  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-093f58fa.entry.js +1 -0
  150. package/dist/sankhyablocks/{p-0e495575.js → p-0a317e81.js} +1 -1
  151. package/dist/sankhyablocks/{p-ad2ae575.entry.js → p-0e1f0344.entry.js} +1 -1
  152. package/dist/sankhyablocks/{p-8d1508aa.entry.js → p-16c1c209.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-658f67a5.js +1 -0
  164. package/dist/sankhyablocks/{p-158adf33.entry.js → p-701b024c.entry.js} +1 -1
  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,31 +1,34 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Fragment } from '@stencil/core/internal/client';
2
2
  import { KeyboardManager, Action, ElementIDUtils, ApplicationContext, StringUtils } from '@sankhyalabs/core';
3
- import { T as TaskbarElement, d as defineCustomElement$3 } from './snk-taskbar2.js';
4
- import { C as ConfigStorage } from './ConfigStorage.js';
5
- import { P as PresentationMode, E as ExporterStrategy } from './ISave.js';
6
- import { C as CommonsExporter, T as TaskbarProcessor, S as SnkMultiSelectionListDataSource, a as CrudUtils, R as RmPrecisionCustomValueFormatter, b as ContinuousInsertUtils, c as ClientSideExporterProvider } from './ContinuousInsertUtils.js';
7
- import { s as store } from './index2.js';
8
3
  import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
4
+ import { buildFieldSearch } from '@sankhyalabs/ezui/dist/collection/utils';
9
5
  import './DataFetcher.js';
6
+ import { P as PresentationMode, E as ExporterStrategy } from './ISave.js';
7
+ import { C as CommonsExporter, T as TaskbarProcessor, S as SnkMultiSelectionListDataSource, a as CrudUtils, R as RmPrecisionCustomValueFormatter, b as ContinuousInsertUtils, c as ClientSideExporterProvider } from './ContinuousInsertUtils.js';
10
8
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
11
9
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
12
10
  import './dataunit-fetcher.js';
13
11
  import './filter-item-type.enum.js';
14
12
  import './form-config-fetcher.js';
15
13
  import './constants.js';
14
+ import { C as ConfigStorage } from './ConfigStorage.js';
15
+ import { s as store } from './index2.js';
16
16
  import { g as getSelectedRecordsIDsInfo } from './GetSelectedRecordsIDsInfo.js';
17
- import { buildFieldSearch } from '@sankhyalabs/ezui/dist/collection/utils';
18
- import { d as defineCustomElement$j } from './snk-actions-button2.js';
19
- import { d as defineCustomElement$i } from './snk-data-exporter2.js';
20
- import { d as defineCustomElement$h } from './snk-exporter-email-sender2.js';
21
- import { d as defineCustomElement$g } from './snk-expression-group2.js';
22
- import { d as defineCustomElement$f } from './snk-expression-item2.js';
23
- import { d as defineCustomElement$e } from './snk-filter-advanced-mode2.js';
24
- import { d as defineCustomElement$d } from './snk-filter-assistent-mode2.js';
25
- import { d as defineCustomElement$c } from './snk-filter-bar2.js';
26
- import { d as defineCustomElement$b } from './snk-filter-detail2.js';
27
- import { d as defineCustomElement$a } from './snk-filter-field-search2.js';
28
- import { d as defineCustomElement$9 } from './snk-filter-item2.js';
17
+ import { v as validateFilters, d as defineCustomElement$a } from './snk-filter-modal2.js';
18
+ import { T as TaskbarElement, d as defineCustomElement$3 } from './snk-taskbar2.js';
19
+ import { d as defineCustomElement$m } from './snk-actions-button2.js';
20
+ import { d as defineCustomElement$l } from './snk-data-exporter2.js';
21
+ import { d as defineCustomElement$k } from './snk-default-filter2.js';
22
+ import { d as defineCustomElement$j } from './snk-exporter-email-sender2.js';
23
+ import { d as defineCustomElement$i } from './snk-expression-group2.js';
24
+ import { d as defineCustomElement$h } from './snk-expression-item2.js';
25
+ import { d as defineCustomElement$g } from './snk-filter-advanced-mode2.js';
26
+ import { d as defineCustomElement$f } from './snk-filter-assistent-mode2.js';
27
+ import { d as defineCustomElement$e } from './snk-filter-bar2.js';
28
+ import { d as defineCustomElement$d } from './snk-filter-detail2.js';
29
+ import { d as defineCustomElement$c } from './snk-filter-field-search2.js';
30
+ import { d as defineCustomElement$b } from './snk-filter-item2.js';
31
+ import { d as defineCustomElement$9 } from './snk-filter-modal-item2.js';
29
32
  import { d as defineCustomElement$8 } from './snk-filter-param-config2.js';
30
33
  import { d as defineCustomElement$7 } from './snk-grid-config2.js';
31
34
  import { d as defineCustomElement$6 } from './snk-personalized-filter2.js';
@@ -101,31 +104,34 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
101
104
  this._customRenders = new Map();
102
105
  this._keyboardManager = new KeyboardManager();
103
106
  this._topTaskbarProcessor = new TaskbarProcessor({
104
- "snkGridTopTaskbar.regular": ["FORM_MODE", "CONFIGURATOR", "INSERT"],
105
- "snkGridTopTaskbar.regular.secondary": ["FORM_MODE", "CONFIGURATOR", "INSERT"],
106
- "snkGridTopTaskbar.regular.singleTaskbar": [],
107
- "snkGridTopTaskbar.finish_edition": ["CANCEL", "SAVE", this.handleAddFormMode()],
108
- "snkGridTopTaskbar.finish_edition.secondary": [],
109
- "snkGridTopTaskbar.finish_edition.singleTaskbar": [],
107
+ 'snkGridTopTaskbar.regular': ['FORM_MODE', 'CONFIGURATOR', 'INSERT'],
108
+ 'snkGridTopTaskbar.regular.secondary': ['FORM_MODE', 'CONFIGURATOR', 'INSERT'],
109
+ 'snkGridTopTaskbar.regular.singleTaskbar': [],
110
+ 'snkGridTopTaskbar.finish_edition': ['CANCEL', 'SAVE', this.handleAddFormMode()],
111
+ 'snkGridTopTaskbar.finish_edition.secondary': [],
112
+ 'snkGridTopTaskbar.finish_edition.singleTaskbar': [],
110
113
  });
111
114
  this._headerTaskbarProcessor = new TaskbarProcessor({
112
- "snkGridHeaderTaskbar.unselected": ["REFRESH", "DATA_EXPORTER", "ACTIONS_BUTTON", "MORE_OPTIONS"],
113
- "snkGridHeaderTaskbar.selected": this.getGridHeaderSelectedBtns(),
114
- "snkGridHeaderTaskbar.detail.unselected": ["REFRESH", "MORE_OPTIONS"],
115
- "snkGridHeaderTaskbar.detail.selected": ["UPDATE", "ATTACH", "CLONE", "REMOVE", "MORE_OPTIONS", "DIVIDER", "REFRESH"],
116
- "snkGridHeaderTaskbar.singleTaskbar.unselected": ["INSERT", "FORM_MODE", "CONFIGURATOR", "REFRESH", "DATA_EXPORTER", "ACTIONS_BUTTON", "MORE_OPTIONS"],
117
- "snkGridHeaderTaskbar.singleTaskbar.selected": ["UPDATE", "CLONE", "REMOVE", "MORE_OPTIONS", "DIVIDER", "ATTACH", "FORM_MODE", "CONFIGURATOR", "REFRESH", "DATA_EXPORTER", "ACTIONS_BUTTON"],
118
- "snkGridHeaderTaskbar.singleTaskbar.detail.unselected": ["INSERT", "FORM_MODE", "CONFIGURATOR", "REFRESH", "MORE_OPTIONS"],
119
- "snkGridHeaderTaskbar.singleTaskbar.detail.selected": ["UPDATE", "ATTACH", "CLONE", "REMOVE", "MORE_OPTIONS", "DIVIDER", "FORM_MODE", "CONFIGURATOR", "REFRESH"],
120
- "snkGridHeaderTaskbar.singleTaskbar.finish_edition": ["CANCEL", "SAVE", this.handleAddFormMode()]
115
+ 'snkGridHeaderTaskbar.unselected': ['REFRESH', 'DATA_EXPORTER', 'ACTIONS_BUTTON', 'MORE_OPTIONS'],
116
+ 'snkGridHeaderTaskbar.selected': this.getGridHeaderSelectedBtns(),
117
+ 'snkGridHeaderTaskbar.detail.unselected': ['REFRESH', 'MORE_OPTIONS'],
118
+ 'snkGridHeaderTaskbar.detail.selected': ['UPDATE', 'ATTACH', 'CLONE', 'REMOVE', 'MORE_OPTIONS', 'DIVIDER', 'REFRESH'],
119
+ 'snkGridHeaderTaskbar.singleTaskbar.unselected': ['INSERT', 'FORM_MODE', 'CONFIGURATOR', 'REFRESH', 'DATA_EXPORTER', 'ACTIONS_BUTTON', 'MORE_OPTIONS'],
120
+ 'snkGridHeaderTaskbar.singleTaskbar.selected': ['UPDATE', 'CLONE', 'REMOVE', 'MORE_OPTIONS', 'DIVIDER', 'ATTACH', 'FORM_MODE', 'CONFIGURATOR', 'REFRESH', 'DATA_EXPORTER', 'ACTIONS_BUTTON'],
121
+ 'snkGridHeaderTaskbar.singleTaskbar.detail.unselected': ['INSERT', 'FORM_MODE', 'CONFIGURATOR', 'REFRESH', 'MORE_OPTIONS'],
122
+ 'snkGridHeaderTaskbar.singleTaskbar.detail.selected': ['UPDATE', 'ATTACH', 'CLONE', 'REMOVE', 'MORE_OPTIONS', 'DIVIDER', 'FORM_MODE', 'CONFIGURATOR', 'REFRESH'],
123
+ 'snkGridHeaderTaskbar.singleTaskbar.finish_edition': ['CANCEL', 'SAVE', this.handleAddFormMode()],
121
124
  });
122
125
  this.dataUnitInterceptor = {
123
126
  interceptAction: async (action) => {
124
127
  if (action.type === Action.METADATA_LOADED) {
125
128
  return await this.interceptMetadataLoaded(action);
126
129
  }
130
+ if (action.type === Action.LOADING_DATA) {
131
+ return await this.interceptLoadData(action);
132
+ }
127
133
  return action;
128
- }
134
+ },
129
135
  };
130
136
  this._dataUnit = undefined;
131
137
  this._dataState = undefined;
@@ -166,23 +172,36 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
166
172
  this.multipleEditionEnabled = true;
167
173
  this.paginationCounterMode = 'auto';
168
174
  this.suppressCheckboxColumn = undefined;
175
+ this.suppressFilterColumn = false;
169
176
  this.compact = undefined;
177
+ this.filterCustomConfig = undefined;
178
+ this.filterCustomConfigInterceptor = undefined;
170
179
  }
171
180
  getGridHeaderSelectedBtns() {
172
181
  const btns = [
173
182
  TaskbarElement.UPDATE, TaskbarElement.CLONE, TaskbarElement.REMOVE,
174
183
  TaskbarElement.MORE_OPTIONS, TaskbarElement.DIVIDER, TaskbarElement.ATTACH, TaskbarElement.FORM_MODE,
175
- TaskbarElement.CONFIGURATOR, TaskbarElement.REFRESH, TaskbarElement.DATA_EXPORTER, TaskbarElement.ACTIONS_BUTTON
184
+ TaskbarElement.CONFIGURATOR, TaskbarElement.REFRESH, TaskbarElement.DATA_EXPORTER, TaskbarElement.ACTIONS_BUTTON,
176
185
  ];
177
186
  if (this.multipleEditionEnabled)
178
187
  btns.unshift(TaskbarElement.UPDATE_MULTIPLE);
179
188
  return btns;
180
189
  }
190
+ async refreshColumnFilterDataSource() {
191
+ await this._grid.refreshColumnFilterDataSource();
192
+ }
193
+ /**
194
+ * Recarrega a configuração da grade.
195
+ * @description Este método força o recarregamento da configuração da grade a partir do `ConfigStorage`. A operação é assíncrona, mas o método não aguarda sua conclusão.
196
+ */
181
197
  reloadConfig() {
182
198
  this.loadConfig();
183
199
  }
184
200
  /**
185
201
  * Exibe a janela de configurações da grade.
202
+ * @async
203
+ * @description Este método abre o pop-up de configuração de colunas da grade, permitindo ao usuário ajustar a visibilidade, ordem e largura das colunas.
204
+ * @returns {Promise<void>} Uma promessa que é resolvida quando a janela de configuração é exibida.
186
205
  */
187
206
  async showConfig() {
188
207
  if (this._grid == undefined) {
@@ -192,6 +211,9 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
192
211
  }
193
212
  /**
194
213
  * Fecha a janela de configurações da grade.
214
+ * @async
215
+ * @description Este método fecha o pop-up de configuração de colunas da grade.
216
+ * @returns {Promise<void>} Uma promessa que é resolvida quando a janela de configuração é fechada.
195
217
  */
196
218
  async hideConfig() {
197
219
  if (this._grid == undefined) {
@@ -200,26 +222,42 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
200
222
  this.closeGridConfig();
201
223
  }
202
224
  /**
203
- * Atribui o valor da configuração da grade.
225
+ * Define a configuração da grade.
226
+ * @async
227
+ * @description Aplica uma nova configuração de colunas e ordenação à grade.
228
+ * @param {IGridConfig} config O objeto de configuração a ser aplicado na grade.
229
+ * @returns {Promise<void>} Uma promessa que é resolvida quando a configuração é aplicada.
204
230
  */
205
231
  async setConfig(config) {
206
232
  this.setGridConfig(config);
207
233
  }
208
234
  /**
209
- * Faz o recarregamento da filter-bar da grade buscando o state no servidor.
235
+ * Recarrega a barra de filtros da grade, buscando o estado do servidor.
236
+ * @async
237
+ * @description Força o recarregamento da barra de filtros, atualizando suas configurações e filtros a partir do servidor.
238
+ * @returns {Promise<void>} Uma promessa que é resolvida quando a barra de filtros é recarregada.
210
239
  */
211
240
  async reloadFilterBar() {
212
241
  var _a;
213
242
  (_a = this._snkFilterBar) === null || _a === void 0 ? void 0 : _a.reload();
214
243
  }
215
244
  /**
216
- * Retorna o elemento da filter-bar da grade.
245
+ * Retorna o elemento da barra de filtros da grade.
246
+ * @async
247
+ * @description Este método permite acessar o elemento da barra de filtros, que pode ser útil para manipulações adicionais ou para obter o estado atual dos filtros aplicados.
248
+ * @returns {Promise<HTMLSnkFilterBarElement>} O elemento da barra de filtros.
217
249
  */
218
250
  async getFilterBar() {
219
251
  return this._snkFilterBar;
220
252
  }
221
253
  /**
222
- * Registra um editor customizado para campos da grade e formulário
254
+ * Registra um editor customizado para um campo da grade ou formulário.
255
+ * @async
256
+ * @description Adiciona um componente de edição personalizado para um campo específico. Este editor será usado tanto na edição em linha na grade quanto em formulários de detalhe.
257
+ * @param {string} fieldName O nome do campo que receberá o editor customizado.
258
+ * @param {ICustomEditor} customEditor A instância do editor customizado.
259
+ * @param {string} [detailContext] O contexto de detalhe onde o editor será aplicado (opcional).
260
+ * @returns {Promise<void>} Uma promessa que é resolvida quando o editor é registrado.
223
261
  */
224
262
  async addCustomEditor(fieldName, customEditor, detailContext) {
225
263
  if (this._grid) {
@@ -231,7 +269,13 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
231
269
  this._customEditors = newCustomEditors;
232
270
  }
233
271
  /**
234
- * Registra um render customizado para colunas da grid.
272
+ * Registra um renderizador customizado para uma coluna da grade.
273
+ * @async
274
+ * @description Adiciona um componente de renderização personalizado para uma coluna específica, permitindo a exibição de conteúdo customizado nas células.
275
+ * @param {string} fieldName O nome do campo (coluna) que receberá o renderizador customizado.
276
+ * @param {ICustomRender} customRender A instância do renderizador customizado.
277
+ * @param {string} [detailContext] O contexto de detalhe onde o renderizador será aplicado (opcional).
278
+ * @returns {Promise<void>} Uma promessa que é resolvida quando o renderizador é registrado.
235
279
  */
236
280
  async addGridCustomRender(fieldName, customRender, detailContext) {
237
281
  if (this._grid) {
@@ -243,19 +287,31 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
243
287
  this._customRenders = newCustomRenders;
244
288
  }
245
289
  /**
246
- * Registra um formatador de valores para uma coluna da grid.
290
+ * Registra um formatador de valor customizado para uma coluna da grade.
291
+ * @async
292
+ * @description Adiciona uma função de formatação personalizada para os valores de uma coluna específica, afetando como os dados são exibidos.
293
+ * @param {string} columnName O nome da coluna que receberá o formatador.
294
+ * @param {ICustomFormatter} customFormatter A instância do formatador de valor.
295
+ * @returns {Promise<void>} Uma promessa que é resolvida quando o formatador é registrado.
247
296
  */
248
297
  async addCustomValueFormatter(columnName, customFormatter) {
249
298
  this._grid.addCustomValueFormatter(columnName, customFormatter);
250
299
  }
251
300
  /**
252
- * Remove o formatador de valores de uma coluna da grid.
301
+ * Remove um formatador de valor customizado de uma coluna da grade.
302
+ * @async
303
+ * @description Remove uma função de formatação personalizada previamente registrada para uma coluna.
304
+ * @param {string} columnName O nome da coluna da qual o formatador será removido.
305
+ * @returns {Promise<void>} Uma promessa que é resolvida quando o formatador é removido.
253
306
  */
254
307
  async removeCustomValueFormatter(columnName) {
255
308
  this._grid.removeCustomValueFormatter(columnName);
256
309
  }
257
310
  /**
258
311
  * Atribui o foco para a grade.
312
+ * @async
313
+ * @description Move o foco do navegador para o componente da grade, permitindo a navegação por teclado.
314
+ * @returns {Promise<void>} Uma promessa que é resolvida quando o foco é atribuído.
259
315
  */
260
316
  async setFocus() {
261
317
  this._grid.setFocus();
@@ -289,7 +345,7 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
289
345
  this.loadConfig();
290
346
  }
291
347
  handleAddFormMode() {
292
- return this.enableGridInsert ? TaskbarElement.FORM_MODE : "";
348
+ return this.enableGridInsert ? TaskbarElement.FORM_MODE : '';
293
349
  }
294
350
  openGridConfig() {
295
351
  this._grid.getColumnsState()
@@ -333,6 +389,17 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
333
389
  ConfigStorage.addGridLegacyConfig(this.configName, this.gridLegacyConfigName);
334
390
  }
335
391
  }
392
+ hasCalculatedFields(columnNames) {
393
+ let hasCalculatedFields = false;
394
+ columnNames.forEach(name => {
395
+ var _a;
396
+ const field = this._dataUnit.getField(name);
397
+ if (((_a = field.properties) === null || _a === void 0 ? void 0 : _a.calculated) === 'true') {
398
+ hasCalculatedFields = true;
399
+ }
400
+ });
401
+ return hasCalculatedFields;
402
+ }
336
403
  gridConfigChangeHandler(evt) {
337
404
  const config = this.normalizeGridConfig(evt.detail);
338
405
  ConfigStorage.saveGridConfig(config, this.configName, this.resourceID);
@@ -348,11 +415,25 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
348
415
  });
349
416
  evt.stopPropagation();
350
417
  }
418
+ async hasToForceClientSideExporter() {
419
+ if (!this._grid) {
420
+ return false;
421
+ }
422
+ const filters = await this._grid.getAppliedColumnFilters();
423
+ const columnNames = filters.map(filter => filter.name.replace('FILTRO_COLUNA_', ''));
424
+ return this.hasCalculatedFields(columnNames);
425
+ }
351
426
  async dataExporterProviderStore() {
352
- const dataExporterProvider = this.strategyExporter === ExporterStrategy.SERVER_SIDE
353
- ? new ServerSideExporterProvider(this._dataUnit, this._grid)
354
- : new ClientSideExporterProvider(this._dataUnit, this._grid);
355
- store.set("exporterProviders", Object.assign(Object.assign({}, store.get("exporterProviders")), { [this.configName]: dataExporterProvider }));
427
+ /**
428
+ * O ServerSideExporterProvider do SankhyaOm não suporta a filtragem de campos calculados.
429
+ * Por esse motivo, precisamos verificar os filtros aplicados no momento e recriar o dataExporterProvider conforme necessário.
430
+ * Se houver campos calculados, forçamos o uso do clientSide, caso contrário é seguido o fluxo padrão.
431
+ */
432
+ const forceClientSide = await this.hasToForceClientSideExporter();
433
+ const dataExporterProvider = (forceClientSide || this.strategyExporter === ExporterStrategy.CLIENT_SIDE)
434
+ ? new ClientSideExporterProvider(this._dataUnit, this._grid)
435
+ : new ServerSideExporterProvider(this._dataUnit, this._grid);
436
+ store.set('exporterProviders', Object.assign(Object.assign({}, store.get('exporterProviders')), { [this.configName]: dataExporterProvider }));
356
437
  }
357
438
  addElementID() {
358
439
  const dataInfo = { dataUnit: this._dataUnit };
@@ -373,6 +454,17 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
373
454
  this.loadGridCustomFormatters(action.payload.fields);
374
455
  return action;
375
456
  }
457
+ async interceptLoadData(action) {
458
+ var _a;
459
+ const hasInvalidFilters = !validateFilters((_a = this._snkFilterBar) === null || _a === void 0 ? void 0 : _a.filterConfig);
460
+ if (hasInvalidFilters) {
461
+ const errorTitle = this.messagesBuilder.getMessage("snkGrid.requiredFiltersNotFilled.title", {});
462
+ const errorMessage = this.messagesBuilder.getMessage("snkGrid.requiredFiltersNotFilled.message", {});
463
+ await this._application.error(errorTitle, errorMessage);
464
+ return;
465
+ }
466
+ return action;
467
+ }
376
468
  finishLoading() {
377
469
  this._dataUnit.addInterceptor(this.dataUnitInterceptor);
378
470
  CrudUtils.assertDefaultSorting(this._gridConfig, this._dataUnit);
@@ -401,15 +493,15 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
401
493
  }
402
494
  }
403
495
  componentWillLoad() {
404
- this._application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
496
+ this._application = ApplicationContext.getContextValue('__SNK__APPLICATION__');
405
497
  //TODO: substituir pelo metodo nativo closest
406
498
  let parent = this._element.parentElement;
407
499
  while (parent) {
408
- if (parent.tagName.toUpperCase() === "SNK-DATA-UNIT") {
500
+ if (parent.tagName.toUpperCase() === 'SNK-DATA-UNIT') {
409
501
  this._snkDataUnit = parent;
410
502
  this._dataUnit = this._snkDataUnit.dataUnit;
411
503
  if (!this._dataUnit) {
412
- this._snkDataUnit.addEventListener("dataUnitReady", (evt) => {
504
+ this._snkDataUnit.addEventListener('dataUnitReady', (evt) => {
413
505
  this._dataUnit = evt.detail;
414
506
  this.finishLoading();
415
507
  });
@@ -419,8 +511,8 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
419
511
  }
420
512
  if (!this.messagesBuilder)
421
513
  this.messagesBuilder = this._snkDataUnit.messagesBuilder;
422
- this._snkDataUnit.addEventListener("dataStateChange", this.handleDataStateChange.bind(this));
423
- this._snkDataUnit.addEventListener("cancelEdition", () => {
514
+ this._snkDataUnit.addEventListener('dataStateChange', this.handleDataStateChange.bind(this));
515
+ this._snkDataUnit.addEventListener('cancelEdition', () => {
424
516
  var _a;
425
517
  if ((_a = this._dataState) === null || _a === void 0 ? void 0 : _a.recordsIsEmpty) {
426
518
  this._dataUnit.clearSelection();
@@ -483,23 +575,23 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
483
575
  var _a, _b;
484
576
  const hasSelectedRecord = this._dataState && !!((_a = this._dataState.selectionInfo) === null || _a === void 0 ? void 0 : _a.length);
485
577
  const taskbarIdPrefixLookup = {
486
- primary: this.isDetail ? "snkGridHeaderTaskbar.detail" : "snkGridHeaderTaskbar",
487
- secondary: this.isDetail ? "snkGridHeaderTaskbar.detail" : "snkGridHeaderTaskbar",
488
- singleTaskbar: this.isDetail ? "snkGridHeaderTaskbar.singleTaskbar.detail" : "snkGridHeaderTaskbar.singleTaskbar"
578
+ primary: this.isDetail ? 'snkGridHeaderTaskbar.detail' : 'snkGridHeaderTaskbar',
579
+ secondary: this.isDetail ? 'snkGridHeaderTaskbar.detail' : 'snkGridHeaderTaskbar',
580
+ singleTaskbar: this.isDetail ? 'snkGridHeaderTaskbar.singleTaskbar.detail' : 'snkGridHeaderTaskbar.singleTaskbar',
489
581
  };
490
582
  const taskbarIdPrefix = taskbarIdPrefixLookup[this.presentationMode];
491
583
  let headerTaskbarId = hasSelectedRecord ? `${taskbarIdPrefix}.selected` : `${taskbarIdPrefix}.unselected`;
492
584
  if (((_b = this._dataState) === null || _b === void 0 ? void 0 : _b.isDirty) && this.presentationMode === PresentationMode.SINGLE_TASKBAR) {
493
- headerTaskbarId = "snkGridHeaderTaskbar.singleTaskbar.finish_edition";
585
+ headerTaskbarId = 'snkGridHeaderTaskbar.singleTaskbar.finish_edition';
494
586
  }
495
587
  return headerTaskbarId;
496
588
  }
497
589
  getTopTaskBarId() {
498
590
  var _a;
499
591
  const suffixLookup = {
500
- primary: "",
501
- secondary: ".secondary",
502
- singleTaskbar: ".singleTaskbar"
592
+ primary: '',
593
+ secondary: '.secondary',
594
+ singleTaskbar: '.singleTaskbar',
503
595
  };
504
596
  const sufix = suffixLookup[this.presentationMode];
505
597
  if ((_a = this._dataState) === null || _a === void 0 ? void 0 : _a.isDirty) {
@@ -509,9 +601,9 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
509
601
  }
510
602
  getPrimaryButton() {
511
603
  const primaryButtonLookup = {
512
- primary: "INSERT",
513
- secondary: "",
514
- singleTaskbar: "INSERT"
604
+ primary: 'INSERT',
605
+ secondary: '',
606
+ singleTaskbar: 'INSERT',
515
607
  };
516
608
  return primaryButtonLookup[this.presentationMode];
517
609
  }
@@ -551,10 +643,10 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
551
643
  getActionsSettingsList() {
552
644
  const hardList = [{
553
645
  value: StringUtils.generateUUID(),
554
- label: this.messagesBuilder.getMessage("snkGrid.findColumn", {}),
646
+ label: this.messagesBuilder.getMessage('snkGrid.findColumn', {}),
555
647
  disableCloseOnSelect: true,
556
648
  eagerInitialize: true,
557
- itemBuilder: (_, item) => this.getColumnSearch(item)
649
+ itemBuilder: (_, item) => this.getColumnSearch(item),
558
650
  }];
559
651
  return hardList;
560
652
  }
@@ -582,7 +674,9 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
582
674
  return undefined;
583
675
  }
584
676
  return (h("div", { class: "snk-grid__container ez-flex ez-flex--column ez-flex-item--auto ez-padding--large ez-box--no-outline", tabindex: "0" }, h("div", { class: "snk-grid__header ez-margin-bottom--extra-small" }, this._showSnkFilterBar &&
585
- h(Fragment, null, h("snk-filter-bar", { ref: (ref) => this._snkFilterBar = ref, title: this.filterBarTitle, dataUnit: this._dataUnit, "data-element-id": "gridFilter", class: "snk-grid__filter-bar ez-align--top", configName: this.configName, messagesBuilder: this.messagesBuilder, resourceID: this.resourceID, onConfigUpdated: evt => this.handleFilterConfigUpdated(evt.detail), disablePersonalizedFilter: this.disablePersonalizedFilter, filterBarLegacyConfigName: this.filterBarLegacyConfigName, autoLoad: this.autoLoad, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp }), h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin-left--medium snk-grid__header-divider" })), h("snk-taskbar", { class: "ez-padding-left--medium ez-padding-top--extra-small", "data-element-id": "grid_top", key: "topTaskbar", configName: this.configName, dataUnit: this._dataUnit, messagesBuilder: this.messagesBuilder, buttons: this._topTaskbarProcessor.buttons, disabledButtons: this._topTaskbarProcessor.disabledButtons, customButtons: this._topTaskbarProcessor.customButtons, primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.topTaskbarCustomSlotId, overflowStrategy: 'none', actionsSettingsList: this.getActionsSettingsList() }, h("slot", { name: this.topTaskbarCustomSlotId }))), h("ez-grid", { ref: ref => this._grid = ref, class: (this.presentationMode === PresentationMode.SECONDARY ? "snk-grid-container__without-shadow " : "") + "snk-grid__table", "data-element-id": "embedded", dataUnit: this._dataUnit, key: "grid-" + this._snkDataUnit.entityName, config: this._gridConfig, onConfigChange: (evt) => { this.gridConfigChangeHandler(evt); }, onEzDoubleClick: (evt) => this.gridDoubleClick.emit(evt.detail), statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, columnfilterDataSource: this.columnFilterDataSource, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, recordsValidator: this.recordsValidator, canEdit: this.canEdit, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this._enableContinuousInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, outlineMode: this.outlineMode, useSearchColumn: this.useSearchColumn, suppressHorizontalScroll: this.suppressHorizontalScroll, paginationCounterMode: this.paginationCounterMode, suppressCheckboxColumn: this.suppressCheckboxColumn, compact: this.compact }, h("snk-taskbar", { id: 'teste', dataUnit: this._dataUnit, configName: this.configName, messagesBuilder: this.messagesBuilder, "data-element-id": "grid_left", buttons: this.getGridHeaderButtons(), presentationMode: this.presentationMode, disabledButtons: this._headerTaskbarProcessor.disabledButtons, customButtons: this._headerTaskbarProcessor.customButtons, slot: "leftButtons", actionsList: this.getActionsList(), primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.gridHeaderCustomSlotId, actionsSettingsList: this.getActionsSettingsList() }, h("slot", { name: this.gridHeaderCustomSlotId }))), h("div", { class: "ez-col ez-col--sd-12 snk-grid-container__footer" }, h("slot", { name: "SnkGridFooter" })), h("ez-popup", { size: "medium", heightMode: "auto", useHeader: false, opened: this._popUpGridConfig, onEzClosePopup: () => this.closeGridConfig() }, h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this._gridConfig, "data-element-id": this._element.getAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resourceID }))));
677
+ h(Fragment, null, h("snk-filter-bar", { ref: (ref) => this._snkFilterBar = ref, title: this.filterBarTitle, dataUnit: this._dataUnit, "data-element-id": "gridFilter", class: "snk-grid__filter-bar ez-align--top", configName: this.configName, messagesBuilder: this.messagesBuilder, resourceID: this.resourceID, onConfigUpdated: evt => this.handleFilterConfigUpdated(evt.detail), disablePersonalizedFilter: this.disablePersonalizedFilter, filterBarLegacyConfigName: this.filterBarLegacyConfigName, autoLoad: this.autoLoad, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, filterCustomConfig: this.filterCustomConfig, filterCustomConfigInterceptor: this.filterCustomConfigInterceptor }), h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin-left--medium snk-grid__header-divider" })), h("snk-taskbar", { class: "ez-padding-left--medium ez-padding-top--extra-small", "data-element-id": "grid_top", key: "topTaskbar", configName: this.configName, dataUnit: this._dataUnit, messagesBuilder: this.messagesBuilder, buttons: this._topTaskbarProcessor.buttons, disabledButtons: this._topTaskbarProcessor.disabledButtons, customButtons: this._topTaskbarProcessor.customButtons, primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.topTaskbarCustomSlotId, overflowStrategy: 'none', actionsSettingsList: this.getActionsSettingsList() }, h("slot", { name: this.topTaskbarCustomSlotId }))), h("ez-grid", { ref: ref => this._grid = ref, class: (this.presentationMode === PresentationMode.SECONDARY ? 'snk-grid-container__without-shadow ' : '') + 'snk-grid__table', "data-element-id": "embedded", dataUnit: this._dataUnit, key: 'grid-' + this._snkDataUnit.entityName, config: this._gridConfig, onConfigChange: (evt) => {
678
+ this.gridConfigChangeHandler(evt);
679
+ }, onEzColumnFilterChanged: async () => await this.dataExporterProviderStore(), onEzDoubleClick: (evt) => this.gridDoubleClick.emit(evt.detail), statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, columnfilterDataSource: this.columnFilterDataSource, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, recordsValidator: this.recordsValidator, canEdit: this.canEdit, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this._enableContinuousInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, outlineMode: this.outlineMode, useSearchColumn: this.useSearchColumn, suppressHorizontalScroll: this.suppressHorizontalScroll, paginationCounterMode: this.paginationCounterMode, suppressCheckboxColumn: this.suppressCheckboxColumn, suppressFilterColumn: this.suppressFilterColumn, compact: this.compact }, h("snk-taskbar", { id: 'teste', dataUnit: this._dataUnit, configName: this.configName, messagesBuilder: this.messagesBuilder, "data-element-id": "grid_left", buttons: this.getGridHeaderButtons(), presentationMode: this.presentationMode, disabledButtons: this._headerTaskbarProcessor.disabledButtons, customButtons: this._headerTaskbarProcessor.customButtons, slot: "leftButtons", actionsList: this.getActionsList(), primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.gridHeaderCustomSlotId, actionsSettingsList: this.getActionsSettingsList() }, h("slot", { name: this.gridHeaderCustomSlotId }))), h("div", { class: "ez-col ez-col--sd-12 snk-grid-container__footer" }, h("slot", { name: "SnkGridFooter" })), h("ez-popup", { size: "medium", heightMode: "auto", useHeader: false, opened: this._popUpGridConfig, onEzClosePopup: () => this.closeGridConfig() }, h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this._gridConfig, "data-element-id": this._element.getAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resourceID }))));
586
680
  }
587
681
  get _element() { return this; }
588
682
  static get watchers() { return {
@@ -623,13 +717,17 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
623
717
  "multipleEditionEnabled": [4, "multiple-edition-enabled"],
624
718
  "paginationCounterMode": [1, "pagination-counter-mode"],
625
719
  "suppressCheckboxColumn": [4, "suppress-checkbox-column"],
720
+ "suppressFilterColumn": [1028, "suppress-filter-column"],
626
721
  "compact": [4],
722
+ "filterCustomConfig": [16],
723
+ "filterCustomConfigInterceptor": [16],
627
724
  "_dataUnit": [32],
628
725
  "_dataState": [32],
629
726
  "_gridConfig": [32],
630
727
  "_popUpGridConfig": [32],
631
728
  "_showSnkFilterBar": [32],
632
729
  "_enableContinuousInsert": [32],
730
+ "refreshColumnFilterDataSource": [64],
633
731
  "reloadConfig": [64],
634
732
  "showConfig": [64],
635
733
  "hideConfig": [64],
@@ -646,7 +744,7 @@ function defineCustomElement() {
646
744
  if (typeof customElements === "undefined") {
647
745
  return;
648
746
  }
649
- const components = ["snk-grid", "snk-actions-button", "snk-data-exporter", "snk-exporter-email-sender", "snk-expression-group", "snk-expression-item", "snk-filter-advanced-mode", "snk-filter-assistent-mode", "snk-filter-bar", "snk-filter-detail", "snk-filter-field-search", "snk-filter-item", "snk-filter-param-config", "snk-grid-config", "snk-personalized-filter", "snk-select-box", "snk-simple-bar", "snk-taskbar", "taskbar-actions-button", "taskbar-split-button"];
747
+ const components = ["snk-grid", "snk-actions-button", "snk-data-exporter", "snk-default-filter", "snk-exporter-email-sender", "snk-expression-group", "snk-expression-item", "snk-filter-advanced-mode", "snk-filter-assistent-mode", "snk-filter-bar", "snk-filter-detail", "snk-filter-field-search", "snk-filter-item", "snk-filter-modal", "snk-filter-modal-item", "snk-filter-param-config", "snk-grid-config", "snk-personalized-filter", "snk-select-box", "snk-simple-bar", "snk-taskbar", "taskbar-actions-button", "taskbar-split-button"];
650
748
  components.forEach(tagName => { switch (tagName) {
651
749
  case "snk-grid":
652
750
  if (!customElements.get(tagName)) {
@@ -655,55 +753,70 @@ function defineCustomElement() {
655
753
  break;
656
754
  case "snk-actions-button":
657
755
  if (!customElements.get(tagName)) {
658
- defineCustomElement$j();
756
+ defineCustomElement$m();
659
757
  }
660
758
  break;
661
759
  case "snk-data-exporter":
662
760
  if (!customElements.get(tagName)) {
663
- defineCustomElement$i();
761
+ defineCustomElement$l();
762
+ }
763
+ break;
764
+ case "snk-default-filter":
765
+ if (!customElements.get(tagName)) {
766
+ defineCustomElement$k();
664
767
  }
665
768
  break;
666
769
  case "snk-exporter-email-sender":
667
770
  if (!customElements.get(tagName)) {
668
- defineCustomElement$h();
771
+ defineCustomElement$j();
669
772
  }
670
773
  break;
671
774
  case "snk-expression-group":
672
775
  if (!customElements.get(tagName)) {
673
- defineCustomElement$g();
776
+ defineCustomElement$i();
674
777
  }
675
778
  break;
676
779
  case "snk-expression-item":
677
780
  if (!customElements.get(tagName)) {
678
- defineCustomElement$f();
781
+ defineCustomElement$h();
679
782
  }
680
783
  break;
681
784
  case "snk-filter-advanced-mode":
682
785
  if (!customElements.get(tagName)) {
683
- defineCustomElement$e();
786
+ defineCustomElement$g();
684
787
  }
685
788
  break;
686
789
  case "snk-filter-assistent-mode":
687
790
  if (!customElements.get(tagName)) {
688
- defineCustomElement$d();
791
+ defineCustomElement$f();
689
792
  }
690
793
  break;
691
794
  case "snk-filter-bar":
692
795
  if (!customElements.get(tagName)) {
693
- defineCustomElement$c();
796
+ defineCustomElement$e();
694
797
  }
695
798
  break;
696
799
  case "snk-filter-detail":
697
800
  if (!customElements.get(tagName)) {
698
- defineCustomElement$b();
801
+ defineCustomElement$d();
699
802
  }
700
803
  break;
701
804
  case "snk-filter-field-search":
702
805
  if (!customElements.get(tagName)) {
703
- defineCustomElement$a();
806
+ defineCustomElement$c();
704
807
  }
705
808
  break;
706
809
  case "snk-filter-item":
810
+ if (!customElements.get(tagName)) {
811
+ defineCustomElement$b();
812
+ }
813
+ break;
814
+ case "snk-filter-modal":
815
+ if (!customElements.get(tagName)) {
816
+ defineCustomElement$a();
817
+ }
818
+ break;
819
+ case "snk-filter-modal-item":
707
820
  if (!customElements.get(tagName)) {
708
821
  defineCustomElement$9();
709
822
  }
@@ -45,8 +45,10 @@ const SnkPersonalizedFilter = /*@__PURE__*/ proxyCustomElement(class extends HTM
45
45
  this.resourceID = undefined;
46
46
  this.isDefaultFilter = false;
47
47
  }
48
- /*
49
- * Cria um novo filtro se não houver nenhum filtro existente
48
+ /**
49
+ * Cria um novo filtro personalizado caso não exista nenhum.
50
+ * @method
51
+ * @returns {Promise<void>}
50
52
  */
51
53
  async createPersonalizedFilter() {
52
54
  const newPersonalizedFilter = {
@@ -82,6 +84,12 @@ const SnkPersonalizedFilter = /*@__PURE__*/ proxyCustomElement(class extends HTM
82
84
  this._originalFilterAssistent = ObjectUtils.copy(newPersonalizedFilter);
83
85
  this._filterAssistent = ObjectUtils.copy(newPersonalizedFilter);
84
86
  }
87
+ /**
88
+ * Carrega o filtro personalizado com base no identificador informado.
89
+ * @watch filterId
90
+ * @param newValue Novo valor do filtroId.
91
+ * @param oldValue Valor anterior do filtroId.
92
+ */
85
93
  loadFilter(newValue, oldValue) {
86
94
  if (newValue == null || oldValue == newValue || this.resourceID == undefined) {
87
95
  return;
@@ -14,11 +14,11 @@ const SnkSimpleBar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
14
14
  this.messagesBuilder = undefined;
15
15
  }
16
16
  /**
17
- * Conforme mecanismo de mensagens, é possível customizar as mensagens dos blocos de construção
18
- * através de um pequeno modulo na estrutura da aplicação:
19
- * - Criar um arquivo no seguinte caminho: /messages/appmessages.msg.js.
20
- * Para conhecer os detalhes do módulo, vide o arquivo neste projeto "/src/lib/message/resources/snk-simple-bar.msg.ts"
21
- */
17
+ * Permite customizar as mensagens dos blocos de construção
18
+ * através de um pequeno módulo na estrutura da aplicação:
19
+ * - Crie um arquivo no seguinte caminho: /messages/appmessages.msg.js.
20
+ * Para conhecer os detalhes do módulo, veja o arquivo neste projeto: "/src/lib/message/resources/snk-simple-bar.msg.ts"
21
+ */
22
22
  getMessage(key, params) {
23
23
  var _a;
24
24
  if (this.messagesBuilder)