@sankhyalabs/sankhyablocks 8.15.0-rc.9 → 8.15.1-rc.1

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 (231) hide show
  1. package/dist/cjs/{ConfigStorage-d4c99a5e.js → ConfigStorage-942ce74b.js} +70 -7
  2. package/dist/cjs/{DataFetcher-99f0f6ed.js → DataFetcher-313debd8.js} +13 -5
  3. package/dist/cjs/{SnkFormConfigManager-3621bfc4.js → SnkFormConfigManager-f9dc0d28.js} +21 -13
  4. package/dist/cjs/{SnkMessageBuilder-141aa18d.js → SnkMessageBuilder-66aa2557.js} +4 -0
  5. package/dist/cjs/SnkMultiSelectionListDataSource-303e85d1.js +140 -0
  6. package/dist/cjs/{auth-fetcher-5161d082.js → auth-fetcher-54f5ff9d.js} +1 -1
  7. package/dist/cjs/{form-config-fetcher-9f1a13ca.js → form-config-fetcher-2dd00e5b.js} +13 -1
  8. package/dist/cjs/index-f9e81701.js +2 -10
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/cjs/{pesquisa-fetcher-8bbee432.js → pesquisa-fetcher-213797ec.js} +273 -50
  11. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  12. package/dist/cjs/{snk-actions-button_2.cjs.entry.js → snk-actions-button_4.cjs.entry.js} +519 -4
  13. package/dist/cjs/snk-application.cjs.entry.js +19 -11
  14. package/dist/cjs/snk-attach.cjs.entry.js +66 -46
  15. package/dist/cjs/snk-configurator.cjs.entry.js +1 -1
  16. package/dist/cjs/snk-crud.cjs.entry.js +25 -17
  17. package/dist/cjs/snk-custom-slot-elements.cjs.entry.js +6 -2
  18. package/dist/cjs/snk-data-exporter.cjs.entry.js +5 -5
  19. package/dist/cjs/{snk-data-unit-6026a9f7.js → snk-data-unit-41c29713.js} +1 -1
  20. package/dist/cjs/snk-data-unit.cjs.entry.js +2 -2
  21. package/dist/cjs/snk-detail-view.cjs.entry.js +8 -9
  22. package/dist/cjs/snk-filter-bar.cjs.entry.js +31 -7
  23. package/dist/cjs/snk-filter-detail.cjs.entry.js +4 -1
  24. package/dist/cjs/snk-filter-item.cjs.entry.js +10 -6
  25. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
  26. package/dist/cjs/snk-form-config.cjs.entry.js +8 -2
  27. package/dist/cjs/snk-form.cjs.entry.js +11 -4
  28. package/dist/cjs/snk-grid.cjs.entry.js +40 -21
  29. package/dist/cjs/{snk-guides-viewer-e87f01b9.js → snk-guides-viewer-4b6ecda8.js} +20 -11
  30. package/dist/cjs/snk-guides-viewer.cjs.entry.js +6 -7
  31. package/dist/cjs/snk-personalized-filter.cjs.entry.js +3 -3
  32. package/dist/cjs/snk-simple-crud.cjs.entry.js +255 -21
  33. package/dist/cjs/snk-taskbar.cjs.entry.js +69 -8
  34. package/dist/collection/collection-manifest.json +6 -6
  35. package/dist/collection/components/snk-application/snk-application.js +55 -6
  36. package/dist/collection/components/snk-attach/snk-attach.js +39 -24
  37. package/dist/collection/components/snk-attach/structure/builder/attach-crud-config.builder.js +1 -1
  38. package/dist/collection/components/snk-attach/structure/fetcher/factory/attach-fetcher-data-unit.factory.js +29 -22
  39. package/dist/collection/components/snk-configurator/snk-configurator.js +1 -1
  40. package/dist/collection/components/snk-crud/snk-crud.js +71 -11
  41. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +2 -2
  42. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +50 -7
  43. package/dist/collection/components/snk-custom-slot-elements/snk-custom-slot-elements.css +1 -1
  44. package/dist/collection/components/snk-custom-slot-elements/snk-custom-slot-elements.js +22 -1
  45. package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +2 -2
  46. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +22 -1
  47. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +28 -6
  48. package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +2 -1
  49. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +44 -3
  50. package/dist/collection/components/snk-form/snk-form.js +25 -1
  51. package/dist/collection/components/{snk-form → snk-form-config}/SnkFormConfigManager.js +20 -12
  52. package/dist/collection/components/{snk-form/subcomponents/snk-form-config → snk-form-config}/snk-form-config.js +11 -5
  53. package/dist/collection/components/snk-grid/snk-grid.js +86 -16
  54. package/dist/collection/components/{snk-grid/subcomponents/snk-grid-config → snk-grid-config}/snk-grid-config.js +130 -123
  55. package/dist/collection/components/{snk-grid/subcomponents → snk-grid-config}/snk-select-box/snk-select-box.js +1 -1
  56. package/dist/collection/components/snk-simple-crud/regular-buttons.js +3 -0
  57. package/dist/collection/components/snk-simple-crud/snk-simple-crud.css +10 -2
  58. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +421 -17
  59. package/dist/collection/components/snk-taskbar/snk-taskbar.js +86 -8
  60. package/dist/collection/lib/configs/ConfigStorage.js +63 -3
  61. package/dist/collection/lib/dataUnit/InMemoryLoader.js +9 -40
  62. package/dist/collection/lib/dataUnit/dataUnitInMemoryUtils.js +33 -0
  63. package/dist/collection/lib/http/data-fetcher/DataFetcher.js +13 -5
  64. package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +12 -0
  65. package/dist/collection/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.js +6 -3
  66. package/dist/collection/lib/message/SnkMessageBuilder.js +20 -20
  67. package/dist/collection/lib/message/resources/snk-simple-crud.msg.js +4 -0
  68. package/dist/collection/lib/utils/CrudUtils.js +13 -1
  69. package/dist/components/ConfigStorage.js +68 -5
  70. package/dist/components/DataFetcher.js +13 -5
  71. package/dist/components/SnkFormConfigManager.js +19 -11
  72. package/dist/components/SnkMessageBuilder.js +4 -0
  73. package/dist/components/dataunit-fetcher.js +41 -39
  74. package/dist/components/field-search.js +93 -3
  75. package/dist/components/form-config-fetcher.js +12 -0
  76. package/dist/components/index.d.ts +6 -6
  77. package/dist/components/snk-application2.js +15 -4
  78. package/dist/components/snk-attach2.js +115 -52
  79. package/dist/components/snk-configurator2.js +1 -1
  80. package/dist/components/snk-crud.js +23 -11
  81. package/dist/components/snk-custom-slot-elements.js +7 -3
  82. package/dist/components/snk-data-exporter2.js +2 -2
  83. package/dist/components/snk-detail-view2.js +48 -11
  84. package/dist/components/snk-filter-bar2.js +29 -4
  85. package/dist/components/snk-filter-detail2.js +5 -1
  86. package/dist/components/snk-filter-item2.js +11 -6
  87. package/dist/components/snk-form-config2.js +7 -1
  88. package/dist/components/snk-form.js +8 -0
  89. package/dist/components/snk-grid-config2.js +128 -102
  90. package/dist/components/snk-grid2.js +42 -18
  91. package/dist/components/snk-simple-crud2.js +317 -29
  92. package/dist/components/snk-taskbar2.js +75 -11
  93. package/dist/esm/{ConfigStorage-39ed8aeb.js → ConfigStorage-86187da3.js} +70 -7
  94. package/dist/esm/{DataFetcher-a650ae58.js → DataFetcher-c1baf61d.js} +13 -5
  95. package/dist/esm/{SnkFormConfigManager-692e20c7.js → SnkFormConfigManager-f53f9f87.js} +21 -13
  96. package/dist/esm/{SnkMessageBuilder-9747ddd2.js → SnkMessageBuilder-0a4becdd.js} +4 -0
  97. package/dist/esm/SnkMultiSelectionListDataSource-36918dbf.js +133 -0
  98. package/dist/esm/{auth-fetcher-17dc5b5e.js → auth-fetcher-039abba3.js} +1 -1
  99. package/dist/esm/{form-config-fetcher-f121f880.js → form-config-fetcher-30fb808f.js} +13 -1
  100. package/dist/esm/index-a7d3d3f1.js +2 -10
  101. package/dist/esm/loader.js +1 -1
  102. package/dist/esm/{pesquisa-fetcher-5a8cae10.js → pesquisa-fetcher-fe6f3826.js} +262 -43
  103. package/dist/esm/sankhyablocks.js +1 -1
  104. package/dist/esm/{snk-actions-button_2.entry.js → snk-actions-button_4.entry.js} +518 -5
  105. package/dist/esm/snk-application.entry.js +19 -11
  106. package/dist/esm/snk-attach.entry.js +65 -45
  107. package/dist/esm/snk-configurator.entry.js +1 -1
  108. package/dist/esm/snk-crud.entry.js +25 -17
  109. package/dist/esm/snk-custom-slot-elements.entry.js +7 -3
  110. package/dist/esm/snk-data-exporter.entry.js +5 -5
  111. package/dist/esm/{snk-data-unit-4c343635.js → snk-data-unit-de1d140d.js} +1 -1
  112. package/dist/esm/snk-data-unit.entry.js +2 -2
  113. package/dist/esm/snk-detail-view.entry.js +8 -9
  114. package/dist/esm/snk-filter-bar.entry.js +31 -7
  115. package/dist/esm/snk-filter-detail.entry.js +4 -1
  116. package/dist/esm/snk-filter-item.entry.js +10 -6
  117. package/dist/esm/snk-filter-modal-item.entry.js +3 -3
  118. package/dist/esm/snk-form-config.entry.js +9 -3
  119. package/dist/esm/snk-form.entry.js +11 -4
  120. package/dist/esm/snk-grid.entry.js +41 -22
  121. package/dist/esm/{snk-guides-viewer-ba8ce538.js → snk-guides-viewer-113be3fd.js} +20 -11
  122. package/dist/esm/snk-guides-viewer.entry.js +6 -7
  123. package/dist/esm/snk-personalized-filter.entry.js +3 -3
  124. package/dist/esm/snk-simple-crud.entry.js +256 -22
  125. package/dist/esm/snk-taskbar.entry.js +70 -9
  126. package/dist/sankhyablocks/p-032fe52e.js +1 -0
  127. package/dist/sankhyablocks/p-07a61550.entry.js +1 -0
  128. package/dist/sankhyablocks/p-0899e0b5.entry.js +1 -0
  129. package/dist/sankhyablocks/p-14a08904.entry.js +1 -0
  130. package/dist/sankhyablocks/p-154a7f33.entry.js +1 -0
  131. package/dist/sankhyablocks/p-15802c59.entry.js +1 -0
  132. package/dist/sankhyablocks/p-164666b1.js +65 -0
  133. package/dist/sankhyablocks/p-21a81901.entry.js +1 -0
  134. package/dist/sankhyablocks/p-32556aa6.js +1 -0
  135. package/dist/sankhyablocks/p-328585d0.entry.js +1 -0
  136. package/dist/sankhyablocks/{p-9a5d1b39.js → p-52c8e589.js} +1 -1
  137. package/dist/sankhyablocks/p-54a5d52a.entry.js +1 -0
  138. package/dist/sankhyablocks/p-5cb07080.js +1 -0
  139. package/dist/sankhyablocks/p-74d349c3.entry.js +1 -0
  140. package/dist/sankhyablocks/p-7663f597.entry.js +1 -0
  141. package/dist/sankhyablocks/p-7fe120b8.entry.js +11 -0
  142. package/dist/sankhyablocks/{p-50783a8b.js → p-913a9979.js} +1 -1
  143. package/dist/sankhyablocks/{p-827e4b01.entry.js → p-a1d72395.entry.js} +1 -1
  144. package/dist/sankhyablocks/p-add17f6a.entry.js +1 -0
  145. package/dist/sankhyablocks/p-af1ac81f.entry.js +1 -0
  146. package/dist/sankhyablocks/p-aff76a53.js +56 -0
  147. package/dist/sankhyablocks/p-b4525fc0.entry.js +1 -0
  148. package/dist/sankhyablocks/p-cce0865d.js +1 -0
  149. package/dist/sankhyablocks/{p-be75153c.js → p-dc7c9047.js} +1 -1
  150. package/dist/sankhyablocks/p-dec65f6c.entry.js +1 -0
  151. package/dist/sankhyablocks/p-df5451c7.js +26 -0
  152. package/dist/sankhyablocks/p-e8763234.entry.js +1 -0
  153. package/dist/sankhyablocks/{p-9d608b62.entry.js → p-eae7a817.entry.js} +1 -1
  154. package/dist/sankhyablocks/{p-20b46647.entry.js → p-ee9536bc.entry.js} +1 -1
  155. package/dist/sankhyablocks/p-f13f7616.entry.js +1 -0
  156. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  157. package/dist/types/components/snk-application/snk-application.d.ts +9 -1
  158. package/dist/types/components/snk-attach/snk-attach.d.ts +2 -1
  159. package/dist/types/components/snk-attach/structure/builder/attach-crud-config.builder.d.ts +10 -1
  160. package/dist/types/components/snk-attach/structure/fetcher/factory/attach-fetcher-data-unit.factory.d.ts +5 -4
  161. package/dist/types/components/snk-crud/snk-crud.d.ts +12 -0
  162. package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +1 -1
  163. package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +11 -1
  164. package/dist/types/components/snk-custom-slot-elements/snk-custom-slot-elements.d.ts +6 -0
  165. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-detail.d.ts +4 -0
  166. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +6 -2
  167. package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +8 -0
  168. package/dist/types/components/snk-form/snk-form.d.ts +6 -1
  169. package/dist/types/components/{snk-form → snk-form-config}/SnkFormConfigManager.d.ts +2 -1
  170. package/dist/types/components/{snk-form/subcomponents/snk-form-config → snk-form-config}/snk-form-config.d.ts +4 -3
  171. package/dist/types/components/snk-grid/snk-grid.d.ts +14 -1
  172. package/dist/types/components/{snk-grid/subcomponents/snk-grid-config → snk-grid-config}/snk-grid-config.d.ts +11 -6
  173. package/dist/types/components/{snk-grid/subcomponents → snk-grid-config}/snk-select-box/snk-select-box.d.ts +1 -1
  174. package/dist/types/components/snk-simple-crud/regular-buttons.d.ts +3 -0
  175. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +76 -3
  176. package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +11 -0
  177. package/dist/types/components.d.ts +172 -11
  178. package/dist/types/lib/configs/ConfigStorage.d.ts +21 -1
  179. package/dist/types/lib/dataUnit/InMemoryLoader.d.ts +0 -2
  180. package/dist/types/lib/dataUnit/dataUnitInMemoryUtils.d.ts +4 -0
  181. package/dist/types/lib/http/data-fetcher/fetchers/form-config-fetcher.d.ts +2 -0
  182. package/dist/types/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.d.ts +2 -1
  183. package/dist/types/lib/utils/CrudUtils.d.ts +3 -0
  184. package/package.json +1 -1
  185. package/dist/cjs/PreloadManager-84466da6.js +0 -224
  186. package/dist/cjs/SnkMultiSelectionListDataSource-ba5838c2.js +0 -49
  187. package/dist/cjs/snk-grid-config.cjs.entry.js +0 -483
  188. package/dist/cjs/snk-select-box.cjs.entry.js +0 -25
  189. package/dist/esm/PreloadManager-c1c2f2b4.js +0 -222
  190. package/dist/esm/SnkMultiSelectionListDataSource-44494b0e.js +0 -43
  191. package/dist/esm/snk-grid-config.entry.js +0 -479
  192. package/dist/esm/snk-select-box.entry.js +0 -21
  193. package/dist/sankhyablocks/p-094c30cb.js +0 -1
  194. package/dist/sankhyablocks/p-1c55becf.entry.js +0 -1
  195. package/dist/sankhyablocks/p-230f5148.entry.js +0 -1
  196. package/dist/sankhyablocks/p-2936303b.js +0 -1
  197. package/dist/sankhyablocks/p-2e4eb644.entry.js +0 -1
  198. package/dist/sankhyablocks/p-3e2e2424.entry.js +0 -1
  199. package/dist/sankhyablocks/p-3e91d5ea.entry.js +0 -1
  200. package/dist/sankhyablocks/p-43de1258.entry.js +0 -1
  201. package/dist/sankhyablocks/p-4ce6cb02.entry.js +0 -11
  202. package/dist/sankhyablocks/p-5e681b7b.js +0 -65
  203. package/dist/sankhyablocks/p-5f74c859.entry.js +0 -1
  204. package/dist/sankhyablocks/p-67aedbe0.js +0 -56
  205. package/dist/sankhyablocks/p-69754d94.entry.js +0 -1
  206. package/dist/sankhyablocks/p-725d04ba.js +0 -1
  207. package/dist/sankhyablocks/p-86801b08.entry.js +0 -1
  208. package/dist/sankhyablocks/p-8a3a2631.entry.js +0 -1
  209. package/dist/sankhyablocks/p-965b79a9.js +0 -1
  210. package/dist/sankhyablocks/p-98674137.entry.js +0 -1
  211. package/dist/sankhyablocks/p-a13ccb86.js +0 -26
  212. package/dist/sankhyablocks/p-aba0e87f.entry.js +0 -1
  213. package/dist/sankhyablocks/p-c22c1d8e.js +0 -1
  214. package/dist/sankhyablocks/p-d26e0a02.entry.js +0 -1
  215. package/dist/sankhyablocks/p-d6317851.entry.js +0 -1
  216. package/dist/sankhyablocks/p-d7d85fa9.entry.js +0 -1
  217. package/dist/sankhyablocks/p-e3bd000e.entry.js +0 -1
  218. package/dist/sankhyablocks/p-e7dbe53a.entry.js +0 -1
  219. package/dist/sankhyablocks/p-fcdcb0e2.entry.js +0 -1
  220. /package/dist/collection/components/{snk-form/subcomponents/snk-form-config → snk-form-config}/snk-form-config.css +0 -0
  221. /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-config-options/snk-config-options.css +0 -0
  222. /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-config-options/snk-config-options.js +0 -0
  223. /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-field-config/snk-field-config.css +0 -0
  224. /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-field-config/snk-field-config.js +0 -0
  225. /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-tab-config/snk-tab-config.css +0 -0
  226. /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-tab-config/snk-tab-config.js +0 -0
  227. /package/dist/collection/components/{snk-grid/subcomponents/snk-grid-config → snk-grid-config}/snk-grid-config.css +0 -0
  228. /package/dist/collection/components/{snk-grid/subcomponents → snk-grid-config}/snk-select-box/snk-select-box.css +0 -0
  229. /package/dist/types/components/{snk-form → snk-form-config}/subcomponents/snk-config-options/snk-config-options.d.ts +0 -0
  230. /package/dist/types/components/{snk-form → snk-form-config}/subcomponents/snk-field-config/snk-field-config.d.ts +0 -0
  231. /package/dist/types/components/{snk-form → snk-form-config}/subcomponents/snk-tab-config/snk-tab-config.d.ts +0 -0
@@ -4,21 +4,20 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-f9e81701.js');
6
6
  const core = require('@sankhyalabs/core');
7
- const DataFetcher = require('./DataFetcher-99f0f6ed.js');
8
- const pesquisaFetcher = require('./pesquisa-fetcher-8bbee432.js');
7
+ const DataFetcher = require('./DataFetcher-313debd8.js');
8
+ const pesquisaFetcher = require('./pesquisa-fetcher-213797ec.js');
9
9
  require('./index-0922807b.js');
10
10
  const ISave = require('./ISave-e91b70a7.js');
11
11
  require('./filter-item-type.enum-a7ffdaa6.js');
12
- require('./form-config-fetcher-9f1a13ca.js');
12
+ require('./form-config-fetcher-2dd00e5b.js');
13
13
  const constants = require('./constants-35ddd366.js');
14
- const PreloadManager = require('./PreloadManager-84466da6.js');
15
- const authFetcher = require('./auth-fetcher-5161d082.js');
14
+ const authFetcher = require('./auth-fetcher-54f5ff9d.js');
16
15
  const taskbarElements = require('./taskbar-elements-3ecd1278.js');
17
16
  require('./PrintUtils-bcaeb82f.js');
18
17
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
19
18
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
20
- require('./ResourceIDUtils-5ff86aa7.js');
21
19
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
20
+ require('./ResourceIDUtils-5ff86aa7.js');
22
21
  require('./index-102ba62d.js');
23
22
 
24
23
  const SERVICE$1 = {
@@ -314,7 +313,7 @@ class AnexoSistemaDataUnitFactory {
314
313
  const { records } = dataUnit.getSelectionInfo();
315
314
  const recordToDelete = records[0];
316
315
  fetcher.delete(recordToDelete).then(() => {
317
- PreloadManager.PreloadManager.removeRecords(dataUnit, [recordToDelete]);
316
+ pesquisaFetcher.PreloadManager.removeRecords(dataUnit, [recordToDelete]);
318
317
  return resolve(ids);
319
318
  });
320
319
  });
@@ -394,7 +393,7 @@ const attachFetcherMetadataBuilder = {
394
393
  label: "Attach List",
395
394
  fields: [
396
395
  { name: "CODATA", label: getMessage$1("snkAttach.attachMetadata.lblCode"), dataType: core.DataType.TEXT },
397
- { name: "DESCRICAO", label: getMessage$1("snkAttach.attachMetadata.lblDescription"), dataType: core.DataType.TEXT },
396
+ { name: "DESCRICAO", label: getMessage$1("snkAttach.attachMetadata.lblDescription"), dataType: core.DataType.TEXT, readOnly: false },
398
397
  { name: "ARQUIVO", label: getMessage$1("snkAttach.attachMetadata.lblFileOrLink"), dataType: core.DataType.TEXT },
399
398
  { name: "USUARIO", label: getMessage$1("snkAttach.attachMetadata.lblUser"), dataType: core.DataType.TEXT },
400
399
  { name: "DTALTER", label: getMessage$1("snkAttach.attachMetadata.lblDate"), dataType: core.DataType.TEXT },
@@ -420,6 +419,7 @@ const SERVICE_LOAD = "Attach.load";
420
419
  class AttachFetcherDataUnitFactory {
421
420
  constructor(getMessage) {
422
421
  this.getMessage = getMessage;
422
+ this._records = [];
423
423
  this._application = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
424
424
  }
425
425
  initLoaders(dataUnit, fetcher, onSuccess) {
@@ -439,25 +439,30 @@ class AttachFetcherDataUnitFactory {
439
439
  metadataLoader(_) {
440
440
  return Promise.resolve(attachFetcherMetadataBuilder);
441
441
  }
442
- async dataLoader(_, request) {
442
+ async dataLoader(dataUnit, request) {
443
443
  if (!request.source) {
444
- return Promise.resolve({ records: [] });
444
+ return Promise.resolve({ records: this._records });
445
445
  }
446
- const criteria = {
447
- criteria: {
448
- codata: request.source,
449
- tipoAnexo: "N"
450
- }
451
- };
452
- const applicationDataFetcher = await this._application.getDataFetcher();
453
- const { anexos: { anexo = [] } } = await applicationDataFetcher.callServiceBroker(SERVICE_LOAD, JSON.stringify(criteria));
454
- const records = [];
455
- anexo.forEach((param) => {
456
- records.push(Object.assign({ __record__id__: core.StringUtils.generateUUID(), CAMINHO_ARQUIVO: [{
457
- name: param === null || param === void 0 ? void 0 : param.ARQUIVO,
458
- }] }, param));
459
- });
460
- return Promise.resolve({ records });
446
+ if (!Number.isNaN(Number(request.source))) {
447
+ const criteria = {
448
+ criteria: {
449
+ codata: request.source,
450
+ tipoAnexo: "N"
451
+ }
452
+ };
453
+ const applicationDataFetcher = await this._application.getDataFetcher();
454
+ const { anexos: { anexo = [] } } = await applicationDataFetcher.callServiceBroker(SERVICE_LOAD, JSON.stringify(criteria));
455
+ const records = [];
456
+ anexo.forEach((param) => {
457
+ records.push(Object.assign({ __record__id__: core.StringUtils.generateUUID(), CAMINHO_ARQUIVO: [{
458
+ name: param === null || param === void 0 ? void 0 : param.ARQUIVO,
459
+ }] }, param));
460
+ });
461
+ this._records = records;
462
+ }
463
+ let records = pesquisaFetcher.applyFilter(this._records, dataUnit, request.filters);
464
+ records = pesquisaFetcher.applySorting(records, dataUnit, request.sort);
465
+ return Promise.resolve({ records, paginationInfo: pesquisaFetcher.buildPaginationInfo(records, request.offset, request.limit) });
461
466
  }
462
467
  saveLoader(changes, fetcher) {
463
468
  return new Promise((resolve) => {
@@ -636,7 +641,7 @@ const SnkAttach = class {
636
641
  this.back.emit();
637
642
  });
638
643
  };
639
- this.fetcherType = "AnexoSistema";
644
+ this.fetcherType = undefined;
640
645
  this.fetcher = undefined;
641
646
  this.dataUnit = undefined;
642
647
  this.dataUnitBuilder = undefined;
@@ -648,8 +653,8 @@ const SnkAttach = class {
648
653
  this.crudConfig = undefined;
649
654
  }
650
655
  registerKeyWatcher(newRegisterKey, oldRegisterKey) {
651
- var _a, _b, _c, _d;
652
- if (this._currentDataUnit == null) {
656
+ var _a, _b, _c, _d, _e, _f;
657
+ if (!this._currentDataUnit) {
653
658
  this.loadAttachmentDataUnit();
654
659
  }
655
660
  if (oldRegisterKey !== newRegisterKey) {
@@ -664,11 +669,7 @@ const SnkAttach = class {
664
669
  if (hasMoreOneItem)
665
670
  return;
666
671
  }
667
- return this._currentDataUnit
668
- .loadMetadata()
669
- .then(() => {
670
- this._currentDataUnit.loadData(undefined, undefined, true, this.registerKey);
671
- });
672
+ return (_f = (_e = this._currentDataUnit) === null || _e === void 0 ? void 0 : _e.loadMetadata()) === null || _f === void 0 ? void 0 : _f.then(this._currentDataUnit.loadData.bind(undefined, undefined, true, this.registerKey));
672
673
  }
673
674
  }
674
675
  /**
@@ -734,7 +735,7 @@ const SnkAttach = class {
734
735
  if (!this._currentDataUnit.metadata) {
735
736
  this._currentDataUnit
736
737
  .loadMetadata()
737
- .then(() => this.crudConfig = anexoSistemaCrudConfig);
738
+ .then(() => this.crudConfig = Object.assign({}, anexoSistemaCrudConfig));
738
739
  }
739
740
  this._currentDataUnitBuilder = new AnexoSistemaDataUnitFactory(this.entityName, this.getMessage.bind(this));
740
741
  this._currentDataUnit.addFilterProvider({
@@ -746,25 +747,29 @@ const SnkAttach = class {
746
747
  this._currentDataUnit.loadData().then(this.disableEditFieldsNotInForm.bind(this));
747
748
  }
748
749
  loadAttach() {
749
- var _a;
750
+ var _a, _b, _c;
750
751
  this._currentFetcher = new AttachFetcher();
751
- this._currentDataUnit = new core.DataUnit();
752
+ this._currentDataUnit = new core.DataUnit(pesquisaFetcher.InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME);
752
753
  this._currentDataUnit.addInterceptor({
753
- interceptAction: (action) => this._currentDataUnitBuilder.getInterceptions(this._currentDataUnit, action, this._crudElement)
754
+ interceptAction: (action) => {
755
+ var _a;
756
+ if (action.type === core.Action.METADATA_LOADED) {
757
+ this.crudConfig = Object.assign({}, attachCrudConfig);
758
+ (_a = this._crudElement) === null || _a === void 0 ? void 0 : _a.updateConfig();
759
+ }
760
+ return this._currentDataUnitBuilder.getInterceptions(this._currentDataUnit, action, this._crudElement);
761
+ }
754
762
  });
755
763
  this._currentDataUnitBuilder = new AttachFetcherDataUnitFactory(this.getMessage.bind(this));
756
764
  (_a = this._currentDataUnitBuilder) === null || _a === void 0 ? void 0 : _a.initLoaders(this._currentDataUnit, this._currentFetcher, async () => {
757
- await this._currentDataUnit.loadData(undefined, undefined, true, this.registerKey);
758
765
  this.returnToGridMode();
766
+ await this._currentDataUnit.loadData(undefined, undefined, true, this.registerKey);
759
767
  });
760
768
  if (!this._currentDataUnit.metadata) {
761
- this._currentDataUnit
762
- .loadMetadata()
763
- .then(() => {
764
- this.crudConfig = attachCrudConfig;
765
- this._currentDataUnit
766
- .loadData(undefined, undefined, true, this.registerKey)
767
- .then(this.disableEditFieldsNotInForm.bind(this));
769
+ (_c = (_b = this._currentDataUnit) === null || _b === void 0 ? void 0 : _b.loadMetadata()) === null || _c === void 0 ? void 0 : _c.then(() => {
770
+ var _a, _b;
771
+ this.crudConfig = Object.assign({}, attachCrudConfig);
772
+ (_b = (_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.loadData(undefined, undefined, true, this.registerKey)) === null || _b === void 0 ? void 0 : _b.then(this.disableEditFieldsNotInForm.bind(this));
768
773
  });
769
774
  }
770
775
  }
@@ -782,15 +787,30 @@ const SnkAttach = class {
782
787
  this._application = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
783
788
  }
784
789
  componentWillRender() {
790
+ if (!this.fetcherType) {
791
+ this.fetcherType = "AnexoSistema";
792
+ }
785
793
  if (this._currentDataUnit == null) {
786
794
  this.loadAttachmentDataUnit();
787
795
  }
788
796
  }
797
+ async handleOnDataStateChange({ detail }) {
798
+ if (this.fetcherType !== 'Attach')
799
+ return;
800
+ if (!detail.insertionMode) {
801
+ this._currentDataUnit.disableField('DESCRICAO');
802
+ }
803
+ else {
804
+ this._currentDataUnit.enableField('DESCRICAO');
805
+ }
806
+ await this._currentDataUnit.loadMetadata();
807
+ }
808
+ ;
789
809
  render() {
790
810
  var _a, _b;
791
811
  if (!this._currentDataUnit)
792
812
  return null;
793
- return (index.h("main", { class: "snk-attach__main" }, index.h("header", { class: "snk-attach__header" }, index.h("snk-simple-bar", { onExit: this.handleBack, messagesBuilder: this.messagesBuilder }, index.h("div", { slot: "rightSlot" }, index.h("ez-button", { class: "ez-button--primary", label: this.getMessage("snkAttach.finish"), onClick: this.handleFinish })))), index.h("div", { class: "snk-attach__crud-section ez-size-height--full ez-size-width--full ez-flex ez-flex--column" }, index.h("div", { class: "ez-box__container" }, index.h("snk-simple-crud", { ref: (el) => this._crudElement = el, dataUnit: this._currentDataUnit, taskbarManager: buildTaskBarManager(), gridConfig: (_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.grid, formConfig: (_b = this.crudConfig) === null || _b === void 0 ? void 0 : _b.form, useCancelConfirm: false, onActionClick: this.handleTaskbarClick, messagesBuilder: this.messagesBuilder }, index.h("div", { slot: "snkSimpleCrudHeader" }, index.h("div", { class: "ez-flex ez-flex--column" }, index.h("span", { class: "ez-title--primary ez-text ez-text--large ez-text--bold ez-padding-bottom--medium" }, this.getMessage("snkAttach.title")), index.h("span", { class: "ez-text ez-text--medium ez-text--secondary" }, this.getMessage("snkAttach.description")))))))));
813
+ return (index.h("main", { class: "snk-attach__main" }, index.h("header", { class: "snk-attach__header" }, index.h("snk-simple-bar", { onExit: this.handleBack, messagesBuilder: this.messagesBuilder }, index.h("div", { slot: "rightSlot" }, index.h("ez-button", { class: "ez-button--primary", label: this.getMessage("snkAttach.finish"), onClick: this.handleFinish })))), index.h("div", { class: "snk-attach__crud-section ez-size-height--full ez-size-width--full ez-flex ez-flex--column" }, index.h("div", { class: "ez-box__container" }, index.h("snk-simple-crud", { ref: (el) => this._crudElement = el, dataUnit: this._currentDataUnit, taskbarManager: buildTaskBarManager(), gridConfig: (_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.grid, formConfig: (_b = this.crudConfig) === null || _b === void 0 ? void 0 : _b.form, useCancelConfirm: false, onActionClick: this.handleTaskbarClick, messagesBuilder: this.messagesBuilder, onDataStateChange: this.handleOnDataStateChange.bind(this) }, index.h("div", { slot: "snkSimpleCrudHeader" }, index.h("div", { class: "ez-flex ez-flex--column" }, index.h("span", { class: "ez-title--primary ez-text ez-text--large ez-text--bold ez-padding-bottom--medium" }, this.getMessage("snkAttach.title")), index.h("span", { class: "ez-text ez-text--medium ez-text--secondary" }, this.getMessage("snkAttach.description")))))))));
794
814
  }
795
815
  static get watchers() { return {
796
816
  "registerKey": ["registerKeyWatcher"]
@@ -99,7 +99,7 @@ const SnkConfigurator = class {
99
99
  const customElements = container === null || container === void 0 ? void 0 : container.querySelector('#SnkConfigContainerSlot');
100
100
  if (!customElements)
101
101
  return;
102
- const configuratorCustomElement = customElements.firstChild;
102
+ const configuratorCustomElement = customElements.firstElementChild;
103
103
  if (!configuratorCustomElement)
104
104
  return;
105
105
  const insideCustomElementsContainer = this._element.querySelector("#slotContainer");
@@ -5,21 +5,20 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-f9e81701.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const taskbarElements = require('./taskbar-elements-3ecd1278.js');
8
- require('./DataFetcher-99f0f6ed.js');
9
- require('./pesquisa-fetcher-8bbee432.js');
8
+ require('./DataFetcher-313debd8.js');
9
+ require('./pesquisa-fetcher-213797ec.js');
10
10
  const index$1 = require('./index-0922807b.js');
11
11
  require('./ISave-e91b70a7.js');
12
12
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
13
13
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
14
- require('./PreloadManager-84466da6.js');
15
14
  require('./filter-item-type.enum-a7ffdaa6.js');
16
- require('./form-config-fetcher-9f1a13ca.js');
15
+ require('./form-config-fetcher-2dd00e5b.js');
17
16
  const constants = require('./constants-35ddd366.js');
18
- const authFetcher = require('./auth-fetcher-5161d082.js');
17
+ const authFetcher = require('./auth-fetcher-54f5ff9d.js');
19
18
  require('./index-102ba62d.js');
20
19
  require('./PrintUtils-bcaeb82f.js');
21
- require('./ResourceIDUtils-5ff86aa7.js');
22
20
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
21
+ require('./ResourceIDUtils-5ff86aa7.js');
23
22
 
24
23
  const snkCrudCss = ".sc-snk-crud-h{display:flex;flex-direction:column;height:100%;width:100%}";
25
24
 
@@ -50,6 +49,9 @@ const SnkCrud = class {
50
49
  this.presentationMode = index$1.PresentationMode.PRIMARY;
51
50
  this.messagesBuilder = undefined;
52
51
  this.useEnterLikeTab = false;
52
+ this.gridLegacyConfigName = undefined;
53
+ this.filterBarLegacyConfigName = undefined;
54
+ this.formLegacyConfigName = undefined;
53
55
  this.disablePersonalizedFilter = undefined;
54
56
  this.customContainerId = `SNK-CRUD-CUSTOM-CONTAINER-${core.StringUtils.generateUUID()}`;
55
57
  }
@@ -110,6 +112,12 @@ const SnkCrud = class {
110
112
  setViewMode(viewMode) {
111
113
  this._viewStack.show(viewMode);
112
114
  this._currentViewMode = viewMode;
115
+ if (viewMode === constants.VIEW_MODE.GRID) {
116
+ this._snkGrid.setFocus();
117
+ }
118
+ else if (viewMode === constants.VIEW_MODE.FORM) {
119
+ this._guidesViewer.setFocus();
120
+ }
113
121
  }
114
122
  openConfig(viewMode) {
115
123
  this._snkConfigurator.close();
@@ -201,34 +209,34 @@ const SnkCrud = class {
201
209
  element.focus();
202
210
  }
203
211
  keyboardManager
204
- .bind("F6", this.toggleView.bind(this), { description: "Alterna entre modo formulário e grade." })
205
- .bind("F7", saveDataUnitHandlingFocus.bind(this), { description: "Salva os dados." })
206
- .bind("ctrl + \\", saveDataUnitHandlingFocus.bind(this), { description: "Salva os dados." })
207
- .bind("F8", dataUnit.addRecord.bind(dataUnit), { description: "Adiciona um novo registro." })
208
- .bind("F9", dataUnit.removeSelectedRecords.bind(dataUnit), { description: "Remove o registro selecionado." })
209
- .bind("ctrl + F9", dataUnit.removeSelectedRecords.bind(dataUnit), { description: "Remove o registro selecionado." })
212
+ .bind("F6", this.toggleView.bind(this), { description: "Alterna entre modo formulário e grade.", element: this._element })
213
+ .bind("F7", saveDataUnitHandlingFocus.bind(this), { description: "Salva os dados.", element: this._element })
214
+ .bind("ctrl + \\", saveDataUnitHandlingFocus.bind(this), { description: "Salva os dados.", element: this._element })
215
+ .bind("F8", dataUnit.addRecord.bind(dataUnit), { description: "Adiciona um novo registro.", element: this._element })
216
+ .bind("F9", dataUnit.removeSelectedRecords.bind(dataUnit), { description: "Remove o registro selecionado.", element: this._element })
217
+ .bind("ctrl + F9", dataUnit.removeSelectedRecords.bind(dataUnit), { description: "Remove o registro selecionado.", element: this._element })
210
218
  .bind("ctrl + .", () => {
211
219
  if (dataUnit.getSelectionInfo().records.length === 0) {
212
220
  return dataUnit.selectFirst();
213
221
  }
214
222
  return dataUnit.nextRecord();
215
223
  }, {
216
- description: "Avança para o próximo registro."
224
+ description: "Avança para o próximo registro.", element: this._element
217
225
  })
218
- .bind("ctrl + ,", dataUnit.previousRecord.bind(dataUnit), { description: "Retorna ao registro anterior." })
226
+ .bind("ctrl + ,", dataUnit.previousRecord.bind(dataUnit), { description: "Retorna ao registro anterior.", element: this._element })
219
227
  .bind("F5", async () => {
220
228
  const currentView = await this._viewStack.getSelectedIndex();
221
229
  if (constants.VIEW_MODE.GRID === currentView) {
222
230
  dataUnit.loadData();
223
231
  }
224
- }, { description: "Atualiza os dados." })
232
+ }, { description: "Atualiza os dados.", element: this._element })
225
233
  .bind("Escape", () => {
226
234
  if (dataUnit.isDirty()) {
227
235
  dataUnit.cancelEdition();
228
236
  }
229
237
  }, {
230
238
  debounceTime: 1000,
231
- description: "Cancela uma ação."
239
+ description: "Cancela uma ação.", element: this._element
232
240
  });
233
241
  }
234
242
  }
@@ -301,7 +309,7 @@ const SnkCrud = class {
301
309
  return;
302
310
  }
303
311
  this._snkDataUnit.ignoreSaveMessage = this._currentViewMode === constants.VIEW_MODE.GRID;
304
- return (index.h(index.Host, null, index.h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "crud" }, index.h("stack-item", null, index.h("snk-grid", { ref: (ref) => this._snkGrid = ref, filterBarTitle: this.filterBarTitle, "data-element-id": "crud_grid", configName: this.configName, onGridDoubleClick: () => this.gridToForm(true), taskbarManager: this.taskbarManager, onActionClick: evt => this.executeAction(evt.detail), messagesBuilder: this.messagesBuilder, actionsList: this.actionsList, statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, presentationMode: this.presentationMode, recordsValidator: this.recordsValidator, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, canEdit: this._canEdit, resourceID: this._resourceID, disablePersonalizedFilter: this.disablePersonalizedFilter }, index.h("slot", { name: "GRID_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "GRID_HEADER_CUSTOM_ELEMENTS" }), index.h("slot", { name: "SnkGridHeader" }), index.h("slot", { name: "SnkGridFooter" }), index.h("slot", { name: "SnkGridTaskBar" }))), index.h("stack-item", null, index.h("snk-guides-viewer", { ref: ref => this._guidesViewer = ref, entityPath: this._snkDataUnit.entityName, messagesBuilder: this.messagesBuilder, onExit: () => this.setViewMode(constants.VIEW_MODE.GRID), dataState: this._dataState, dataUnit: this._dataUnit, actionsList: this.actionsList, taskbarManager: this.taskbarManager, configName: this.configName, onActionClick: evt => this.executeAction(evt.detail), presentationMode: this.presentationMode, "data-element-id": "crud_form", canEdit: this._canEdit, recordsValidator: this.recordsValidator, resourceID: this._resourceID, detailTaskbarCustomContainerId: this.customContainerId }, index.h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "SnkFormTaskBar" }))), index.h("stack-item", null, index.h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this._snkDataUnit.entityName, onBack: this.backView.bind(this) })), index.h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.setViewMode(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showActionButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this._resourceID, customContainerId: this.customContainerId })), index.h("div", { id: `${this.customContainerId}` }, index.h("slot", { name: "SnkConfigContainerSlot" }), index.h("slot", { name: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS" }), index.h("slot", { name: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }))));
312
+ return (index.h(index.Host, null, index.h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "crud" }, index.h("stack-item", null, index.h("snk-grid", { ref: (ref) => this._snkGrid = ref, filterBarTitle: this.filterBarTitle, "data-element-id": "crud_grid", configName: this.configName, onGridDoubleClick: () => this.gridToForm(true), taskbarManager: this.taskbarManager, onActionClick: evt => this.executeAction(evt.detail), messagesBuilder: this.messagesBuilder, actionsList: this.actionsList, statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, presentationMode: this.presentationMode, recordsValidator: this.recordsValidator, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, canEdit: this._canEdit, resourceID: this._resourceID, disablePersonalizedFilter: this.disablePersonalizedFilter, gridLegacyConfigName: this.gridLegacyConfigName, filterBarLegacyConfigName: this.filterBarLegacyConfigName }, index.h("slot", { name: "GRID_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "GRID_HEADER_CUSTOM_ELEMENTS" }), index.h("slot", { name: "SnkGridHeader" }), index.h("slot", { name: "SnkGridFooter" }), index.h("slot", { name: "SnkGridTaskBar" }))), index.h("stack-item", null, index.h("snk-guides-viewer", { ref: ref => this._guidesViewer = ref, entityPath: this._snkDataUnit.entityName, messagesBuilder: this.messagesBuilder, onExit: () => this.setViewMode(constants.VIEW_MODE.GRID), dataState: this._dataState, dataUnit: this._dataUnit, actionsList: this.actionsList, taskbarManager: this.taskbarManager, configName: this.configName, onActionClick: evt => this.executeAction(evt.detail), presentationMode: this.presentationMode, "data-element-id": "crud_form", canEdit: this._canEdit, recordsValidator: this.recordsValidator, resourceID: this._resourceID, detailTaskbarCustomContainerId: this.customContainerId, formLegacyConfigName: this.formLegacyConfigName }, index.h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "SnkFormTaskBar" }))), index.h("stack-item", null, index.h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this._snkDataUnit.entityName, onBack: this.backView.bind(this) })), index.h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.setViewMode(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showActionButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this._resourceID, customContainerId: this.customContainerId })), index.h("div", { id: `${this.customContainerId}` }, index.h("slot", { name: "SnkConfigContainerSlot" }), index.h("slot", { name: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS" }), index.h("slot", { name: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }))));
305
313
  }
306
314
  get _element() { return index.getElement(this); }
307
315
  static get watchers() { return {
@@ -4,15 +4,19 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-f9e81701.js');
6
6
 
7
- const snkCustomSlotElementsCss = ".custom-slot-elements-container.sc-snk-custom-slot-elements{display:none}";
7
+ const snkCustomSlotElementsCss = ".sc-snk-custom-slot-elements-h{display:none}";
8
8
 
9
9
  const SnkCustomSlotElements = class {
10
10
  constructor(hostRef) {
11
11
  index.registerInstance(this, hostRef);
12
+ this.snkCustomSlotElementsLoaded = index.createEvent(this, "snkCustomSlotElementsLoaded", 7);
12
13
  this.slotName = 'CUSTOM_SLOT_ELEMENTS';
13
14
  }
15
+ componentDidLoad() {
16
+ this.snkCustomSlotElementsLoaded.emit(this.slotName);
17
+ }
14
18
  render() {
15
- return (index.h(index.Host, { slot: this.slotName }, index.h("div", { id: this.slotName, class: "custom-slot-elements-container" }, index.h("slot", null))));
19
+ return (index.h(index.Host, { slot: this.slotName, id: this.slotName, class: "custom-slot-elements-container" }, index.h("slot", null)));
16
20
  }
17
21
  };
18
22
  SnkCustomSlotElements.style = snkCustomSlotElementsCss;
@@ -7,11 +7,11 @@ const core = require('@sankhyalabs/core');
7
7
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
8
8
  const index = require('./index-0922807b.js');
9
9
  const constants = require('./constants-35ddd366.js');
10
- const DataFetcher = require('./DataFetcher-99f0f6ed.js');
11
- const snkDataUnit = require('./snk-data-unit-6026a9f7.js');
10
+ const DataFetcher = require('./DataFetcher-313debd8.js');
11
+ const snkDataUnit = require('./snk-data-unit-41c29713.js');
12
12
  require('./PrintUtils-bcaeb82f.js');
13
13
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
14
- require('./SnkMessageBuilder-141aa18d.js');
14
+ require('./SnkMessageBuilder-66aa2557.js');
15
15
 
16
16
  class ItemBuilder {
17
17
  constructor(getMessage, selectedNumber) {
@@ -444,14 +444,14 @@ const SnkDataExporter = class {
444
444
  const pkObject = [];
445
445
  const appId = (option === null || option === void 0 ? void 0 : option.replace(this._customPrefix, "")) || "";
446
446
  (_a = this.provider) === null || _a === void 0 ? void 0 : _a.getSelectedIDs().forEach(({ name, type, value }, index) => {
447
- const fields = [];
447
+ const fields = {};
448
448
  fields['fields'] = [];
449
449
  // Se for o primeiro elemento, adiciona essa primeira PK
450
450
  if (index === 0) {
451
451
  pkObject[`PK_${name}`] = { type: this.parseDataType(type), value };
452
452
  pkObject['pks'] = [];
453
453
  }
454
- const dataFields = { nome: name, tipo: this.parseDataType(type), valor: value };
454
+ const dataFields = { nome: `PK_${name}`, tipo: this.parseDataType(type), valor: value };
455
455
  fields['fields'].push(dataFields);
456
456
  pkObject['pks'].push(fields);
457
457
  });
@@ -3,7 +3,7 @@
3
3
  const index = require('./index-f9e81701.js');
4
4
  const core = require('@sankhyalabs/core');
5
5
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
6
- const SnkMessageBuilder = require('./SnkMessageBuilder-141aa18d.js');
6
+ const SnkMessageBuilder = require('./SnkMessageBuilder-66aa2557.js');
7
7
 
8
8
  const SnkDataUnit = class {
9
9
  constructor(hostRef) {
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const snkDataUnit = require('./snk-data-unit-6026a9f7.js');
5
+ const snkDataUnit = require('./snk-data-unit-41c29713.js');
6
6
  require('./index-f9e81701.js');
7
7
  require('@sankhyalabs/core');
8
8
  require('@sankhyalabs/ezui/dist/collection/utils');
9
- require('./SnkMessageBuilder-141aa18d.js');
9
+ require('./SnkMessageBuilder-66aa2557.js');
10
10
 
11
11
 
12
12
 
@@ -4,25 +4,24 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-f9e81701.js');
6
6
  const core = require('@sankhyalabs/core');
7
- const SnkFormConfigManager = require('./SnkFormConfigManager-3621bfc4.js');
7
+ const SnkFormConfigManager = require('./SnkFormConfigManager-f9dc0d28.js');
8
8
  const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
9
- require('./DataFetcher-99f0f6ed.js');
10
- require('./pesquisa-fetcher-8bbee432.js');
9
+ require('./DataFetcher-313debd8.js');
10
+ require('./pesquisa-fetcher-213797ec.js');
11
11
  const index$1 = require('./index-0922807b.js');
12
12
  require('./ISave-e91b70a7.js');
13
13
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
14
14
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
15
- require('./PreloadManager-84466da6.js');
16
15
  require('./filter-item-type.enum-a7ffdaa6.js');
17
- require('./form-config-fetcher-9f1a13ca.js');
16
+ require('./form-config-fetcher-2dd00e5b.js');
18
17
  const taskbarElements = require('./taskbar-elements-3ecd1278.js');
19
18
  const constants = require('./constants-35ddd366.js');
20
- const snkGuidesViewer = require('./snk-guides-viewer-e87f01b9.js');
21
- const SnkMessageBuilder = require('./SnkMessageBuilder-141aa18d.js');
22
- require('./ConfigStorage-d4c99a5e.js');
19
+ const snkGuidesViewer = require('./snk-guides-viewer-4b6ecda8.js');
20
+ const SnkMessageBuilder = require('./SnkMessageBuilder-66aa2557.js');
21
+ require('./ConfigStorage-942ce74b.js');
23
22
  require('./PrintUtils-bcaeb82f.js');
24
- require('./ResourceIDUtils-5ff86aa7.js');
25
23
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
24
+ require('./ResourceIDUtils-5ff86aa7.js');
26
25
  require('./index-102ba62d.js');
27
26
  require('./field-search-f56aa7d6.js');
28
27
  require('@sankhyalabs/core/dist/dataunit/DataUnit');
@@ -5,15 +5,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index$1 = require('./index-f9e81701.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const EzScrollDirection = require('@sankhyalabs/ezui/dist/collection/components/ez-scroller/EzScrollDirection');
8
- const ConfigStorage = require('./ConfigStorage-d4c99a5e.js');
8
+ const ConfigStorage = require('./ConfigStorage-942ce74b.js');
9
9
  const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
10
10
  const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
11
11
  const index = require('./index-c5771aba.js');
12
12
  const filterNumberVariation = require('./filterNumberVariation-d65332da.js');
13
13
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
14
14
  const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-0184ffbb.js');
15
- require('./form-config-fetcher-9f1a13ca.js');
16
- require('./DataFetcher-99f0f6ed.js');
15
+ require('./form-config-fetcher-2dd00e5b.js');
16
+ require('./DataFetcher-313debd8.js');
17
17
  require('./PrintUtils-bcaeb82f.js');
18
18
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
19
19
 
@@ -252,7 +252,7 @@ class SnkFilterModalFactory {
252
252
  }
253
253
  }
254
254
 
255
- const snkFilterBarCss = ".sc-snk-filter-bar-h{display:grid;grid-template-columns:1fr minmax(100px, 100%) 1fr 1fr;--snk-personalized-filter--z-index:var(--elevation--20, 20);--snk-personalized-filter--background-color:var(--background--xlight, #fff)}.snk-filter-bar__title.sc-snk-filter-bar{max-width:260px;display:inline-block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:16px;font-family:var(--font-pattern, Arial);font-weight:var(--text-weight--large, 600);color:var(--color--title-primary, #2B3A54);margin-top:8px}[data-mode=\"hidden\"].sc-snk-filter-bar-h{display:none}[data-mode=\"button\"].sc-snk-filter-bar-h{grid-template-columns:1fr;width:fit-content}.snk-filter__popover-container.sc-snk-filter-bar{display:flex;cursor:auto}.filter-bar__personalized-filter.sc-snk-filter-bar{display:flex;flex-direction:column;position:fixed;top:0;left:0;width:100%;height:100%;overflow:auto;z-index:var(--snk-personalized-filter--z-index);background-color:var(--snk-personalized-filter--background-color)}.snk-filter__popover.sc-snk-filter-bar{display:flex;flex-direction:column;position:absolute;width:fit-content;height:fit-content;min-width:265px;background-color:var(--background--xlight, #fff);border-radius:var(--border--radius-medium, 12px);box-shadow:var(--shadow, 0px 0px 16px 0px #000)}.snk-filter-item__editor-header.sc-snk-filter-bar{flex-grow:1;font-weight:var(--text-weight--medium, 400);color:var(--color--title-primary, #2B3A54)}.snk-filter__popover-rule.sc-snk-filter-bar{border-style:solid;border-color:var(--color--disable-secondary, #F2F5F8);border-radius:1px;border-width:1px;width:100%}.editor__ez-check.sc-snk-filter-bar{--ez-check__label--padding-left:0}.snk-filter-item__editor-header-button.sc-snk-filter-bar{cursor:pointer;background-color:transparent;border:none;padding:3px;outline-color:var(--color--primary)}.snk-filter-bar__divider.sc-snk-filter-bar{margin-bottom:var(--space--small)}.snk-filter-bar__scroller.sc-snk-filter-bar{height:calc(100% + var(--space-extra-small, 3px))}.snk-filter-bar__filter-item-container.sc-snk-filter-bar{display:flex;align-self:center}.snk-filter-bar__scroller.sc-snk-filter-bar .sc-snk-filter-bar:first-child{margin-left:var(--space-extra-small, 3px)}.snk-filter-bar__filter-list-items-container.sc-snk-filter-bar{overflow-y:auto;max-height:360px;margin-top:var(--space--small, 6px)}.snk-filter-bar__filter-list-item.sc-snk-filter-bar{cursor:pointer;border-radius:var(--border--radius-small, 6px);border:none;background-color:transparent}.snk-filter-bar__filter-list-item__label.sc-snk-filter-bar{color:var(--title--primary)}.snk-filter-bar__filter-list-item__label--secondary.sc-snk-filter-bar{color:var(--text--primary)}.snk-filter-bar__filter-list-item__icon.sc-snk-filter-bar{--ez-icon--color:var(--title--primary)}.snk-filter-bar__filter-list-item__icon--secondary.sc-snk-filter-bar{--ez-icon--color:var(--text--secondary)}.snk-filter-bar__filter-list-item.sc-snk-filter-bar:focus-visible{outline:none;background-color:var(--background--medium)}.snk-filter-bar__filter-list-item.sc-snk-filter-bar:hover{background-color:var(--background--medium)}.snk-filter-bar__filter-list-items-container--empty.sc-snk-filter-bar{width:100%;height:100px;display:flex;justify-content:center;align-self:center;align-items:center}.snk-filter-bar__filter-list-items-button--active.sc-snk-filter-bar{position:relative}.snk-filter-bar__filter-list-items-button--active.sc-snk-filter-bar::after{display:flex;position:absolute;content:\"\";width:8px;height:8px;top:7px;left:17px;background-color:var(--icon--alert--color, #008561);border-radius:50%}.snk-filter-bar__filter-modal-item.sc-snk-filter-bar{--modal-item-border-width:2px;display:flex;flex-direction:row;margin-left:var(--modal-item-border-width);border-radius:var(--border--radius-medium, 12px);background-color:var(--background--medium, #f0f3f7);border:none;width:100%}.snk-filter-bar__filter-modal-item.sc-snk-filter-bar:focus-visible{outline:var(--color--primary) solid var(--modal-item-border-width)}.snk-filter-bar__filter-modal-item__check.sc-snk-filter-bar{width:auto}.snk-filter-bar__filter-modal-item__label.sc-snk-filter-bar{font-weight:var(--text-weight--medium)}.snk-filter-bar__filter-modal-content.sc-snk-filter-bar{display:grid;grid-template-rows:auto auto 1fr auto;width:99%;height:100%}";
255
+ const snkFilterBarCss = ".sc-snk-filter-bar-h{display:grid;grid-template-columns:1fr minmax(100px, 100%) 1fr 1fr;--snk-personalized-filter--z-index:var(--elevation--20, 20);--snk-personalized-filter--background-color:var(--background--xlight, #fff)}.snk-filter-bar__title.sc-snk-filter-bar{max-width:260px;display:inline-block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:16px;font-family:var(--font-pattern, Arial);font-weight:var(--text-weight--large, 600);color:var(--color--title-primary, #2B3A54);margin-top:8px}[data-mode=\"hidden\"].sc-snk-filter-bar-h{width:0px;height:0px}[data-mode=\"button\"].sc-snk-filter-bar-h{grid-template-columns:1fr;width:fit-content}.snk-filter__popover-container.sc-snk-filter-bar{display:flex;cursor:auto}.filter-bar__personalized-filter.sc-snk-filter-bar{display:flex;flex-direction:column;position:fixed;top:0;left:0;width:100%;height:100%;overflow:auto;z-index:var(--snk-personalized-filter--z-index);background-color:var(--snk-personalized-filter--background-color)}.snk-filter__popover.sc-snk-filter-bar{display:flex;flex-direction:column;position:absolute;width:fit-content;height:fit-content;min-width:265px;background-color:var(--background--xlight, #fff);border-radius:var(--border--radius-medium, 12px);box-shadow:var(--shadow, 0px 0px 16px 0px #000)}.snk-filter-item__editor-header.sc-snk-filter-bar{flex-grow:1;font-weight:var(--text-weight--medium, 400);color:var(--color--title-primary, #2B3A54)}.snk-filter__popover-rule.sc-snk-filter-bar{border-style:solid;border-color:var(--color--disable-secondary, #F2F5F8);border-radius:1px;border-width:1px;width:100%}.editor__ez-check.sc-snk-filter-bar{--ez-check__label--padding-left:0}.snk-filter-item__editor-header-button.sc-snk-filter-bar{cursor:pointer;background-color:transparent;border:none;padding:3px;outline-color:var(--color--primary)}.snk-filter-bar__divider.sc-snk-filter-bar{margin-bottom:var(--space--small)}.snk-filter-bar__scroller.sc-snk-filter-bar{height:calc(100% + var(--space-extra-small, 3px))}.snk-filter-bar__filter-item-container.sc-snk-filter-bar{display:flex;align-self:center}.snk-filter-bar__scroller.sc-snk-filter-bar .sc-snk-filter-bar:first-child{margin-left:var(--space-extra-small, 3px)}.snk-filter-bar__filter-list-items-container.sc-snk-filter-bar{overflow-y:auto;max-height:360px;margin-top:var(--space--small, 6px)}.snk-filter-bar__filter-list-item.sc-snk-filter-bar{cursor:pointer;border-radius:var(--border--radius-small, 6px);border:none;background-color:transparent}.snk-filter-bar__filter-list-item__label.sc-snk-filter-bar{color:var(--title--primary)}.snk-filter-bar__filter-list-item__label--secondary.sc-snk-filter-bar{color:var(--text--primary)}.snk-filter-bar__filter-list-item__icon.sc-snk-filter-bar{--ez-icon--color:var(--title--primary)}.snk-filter-bar__filter-list-item__icon--secondary.sc-snk-filter-bar{--ez-icon--color:var(--text--secondary)}.snk-filter-bar__filter-list-item.sc-snk-filter-bar:focus-visible{outline:none;background-color:var(--background--medium)}.snk-filter-bar__filter-list-item.sc-snk-filter-bar:hover{background-color:var(--background--medium)}.snk-filter-bar__filter-list-items-container--empty.sc-snk-filter-bar{width:100%;height:100px;display:flex;justify-content:center;align-self:center;align-items:center}.snk-filter-bar__filter-list-items-button--active.sc-snk-filter-bar{position:relative}.snk-filter-bar__filter-list-items-button--active.sc-snk-filter-bar::after{display:flex;position:absolute;content:\"\";width:8px;height:8px;top:7px;left:17px;background-color:var(--icon--alert--color, #008561);border-radius:50%}.snk-filter-bar__filter-modal-item.sc-snk-filter-bar{--modal-item-border-width:2px;display:flex;flex-direction:row;margin-left:var(--modal-item-border-width);border-radius:var(--border--radius-medium, 12px);background-color:var(--background--medium, #f0f3f7);border:none;width:100%}.snk-filter-bar__filter-modal-item.sc-snk-filter-bar:focus-visible{outline:var(--color--primary) solid var(--modal-item-border-width)}.snk-filter-bar__filter-modal-item__check.sc-snk-filter-bar{width:auto}.snk-filter-bar__filter-modal-item__label.sc-snk-filter-bar{font-weight:var(--text-weight--medium)}.snk-filter-bar__filter-modal-content.sc-snk-filter-bar{display:grid;grid-template-rows:auto auto 1fr auto;width:99%;height:100%}";
256
256
 
257
257
  const SnkFilterBar = class {
258
258
  constructor(hostRef) {
@@ -285,12 +285,18 @@ const SnkFilterBar = class {
285
285
  this.filterConfig = undefined;
286
286
  this.messagesBuilder = undefined;
287
287
  this.disablePersonalizedFilter = undefined;
288
+ this.filterBarLegacyConfigName = undefined;
288
289
  this.allowDefault = undefined;
289
290
  this.scrollerLocked = false;
290
291
  this.showPersonalizedFilter = false;
291
292
  this.personalizedFilterId = undefined;
292
293
  }
293
294
  observeFilterConfig(newValue, oldValue) {
295
+ if (core.ObjectUtils.equals(newValue, oldValue))
296
+ return;
297
+ this.handleFilterConfigsChanged(oldValue, newValue);
298
+ }
299
+ handleFilterConfigsChanged(oldValue, newValue) {
294
300
  if (oldValue != undefined && newValue == undefined) {
295
301
  this._loadingPending = true;
296
302
  this._configUpdated = true;
@@ -493,6 +499,17 @@ const SnkFilterBar = class {
493
499
  filterActiveFilter(item) {
494
500
  return item.visible || item.removalBlocked;
495
501
  }
502
+ filterPersonalizedItems(item) {
503
+ return item.type === filterItemType_enum.FilterItemType.PERSONALIZED;
504
+ }
505
+ getPersonalizedFilterVariableItems() {
506
+ return this.filterConfig
507
+ .filter(this.filterPersonalizedItems)
508
+ .map(item => {
509
+ const itemId = `filter-${item.id}`;
510
+ return (index$1.h("snk-filter-item", { key: item.id, id: itemId, config: Object.assign({}, item), onFocusin: () => this.itemFocused(itemId), onVisibleChanged: (evt) => this.scrollerLocked = evt.detail, onFilterChange: (event) => this.updateFilter(event.detail), getMessage: (key, props) => this.getMessage(key, props), showChips: false }));
511
+ });
512
+ }
496
513
  getFilterItems() {
497
514
  const pinnedItems = [];
498
515
  const unpinnedItems = [];
@@ -552,6 +569,11 @@ const SnkFilterBar = class {
552
569
  loadPermitions() {
553
570
  this._application.isUserSup().then(value => this.allowDefault = value);
554
571
  }
572
+ addFilterBarLegacyConfigName() {
573
+ if (this.filterBarLegacyConfigName && this.configName) {
574
+ ConfigStorage.ConfigStorage.addFilterBarLegacyConfig(this.configName, this.filterBarLegacyConfigName);
575
+ }
576
+ }
555
577
  async loadConfigFromStorage(clearCache) {
556
578
  if (clearCache) {
557
579
  await ConfigStorage.ConfigStorage.deleteFilterBarConfigCache(this.configName, this.resourceID);
@@ -658,6 +680,7 @@ const SnkFilterBar = class {
658
680
  this._application = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
659
681
  if (this._application) {
660
682
  this.loadPermitions();
683
+ this.addFilterBarLegacyConfigName();
661
684
  this.loadConfigFromStorage();
662
685
  }
663
686
  this.attachDataUnit();
@@ -672,9 +695,10 @@ const SnkFilterBar = class {
672
695
  if (this.showPersonalizedFilter) {
673
696
  return index$1.h("snk-personalized-filter", { class: "filter-bar__personalized-filter", filterId: this.personalizedFilterId, ref: (el) => this._elPersonalizedFilter = el, onEzCancel: () => this.handleHidePersonalizedFilter(false), onEzAfterSave: () => this.handleHidePersonalizedFilter(true), entityUri: this.dataUnit.name, configName: this.configName, resourceID: this.resourceID });
674
697
  }
675
- if (this.mode === "button")
676
- return (index$1.h(index$1.Host, { "data-mode": this.mode }, index$1.h("ez-button", { class: "ez-margin-left--medium", size: "small", label: this.getMessage('snkFilterBar.filters', undefined, 'Filtros'), onClick: this.showFilterModal.bind(this) })));
677
- return (index$1.h(index$1.Host, { "data-mode": this.mode }, index$1.h("div", null, index$1.h("span", { class: "snk-filter-bar__title", title: this.title, "data-tooltip": this.title, "data-flow": "bottom" }, this.title)), index$1.h("ez-scroller", { class: "snk-filter-bar__scroller", direction: EzScrollDirection.EzScrollDirection.HORIZONTAL, activeShadow: true, locked: this.scrollerLocked }, index$1.h("section", { class: "snk-filter-bar__filter-item-container" }, this.getFilterItems())), index$1.h("ez-button", { class: "ez-padding-left--medium", size: "small", label: this.getMessage('snkFilterBar.filters', undefined, 'Filtros'), onClick: this.showFilterModal.bind(this) }, index$1.h("ez-icon", { slot: "leftIcon", iconName: "plus", class: "ez-padding-right--small" }))));
698
+ if (this.mode !== "regular") {
699
+ return (index$1.h(index$1.Host, { "data-mode": this.mode }, this.getPersonalizedFilterVariableItems(), this.mode === 'button' && (index$1.h("ez-button", { class: "ez-margin-left--medium", size: "small", label: this.getMessage('snkFilterBar.filters', undefined, 'Filtros'), onClick: this.showFilterModal.bind(this) }))));
700
+ }
701
+ return (index$1.h(index$1.Host, null, index$1.h("div", null, index$1.h("span", { class: "snk-filter-bar__title", title: this.title, "data-tooltip": this.title, "data-flow": "bottom" }, this.title)), index$1.h("ez-scroller", { class: "snk-filter-bar__scroller", direction: EzScrollDirection.EzScrollDirection.HORIZONTAL, activeShadow: true, locked: this.scrollerLocked }, index$1.h("section", { class: "snk-filter-bar__filter-item-container" }, this.getFilterItems())), index$1.h("ez-button", { class: "ez-padding-left--medium", size: "small", label: this.getMessage('snkFilterBar.filters', undefined, 'Filtros'), onClick: this.showFilterModal.bind(this) }, index$1.h("ez-icon", { slot: "leftIcon", iconName: "plus", class: "ez-padding-right--small" }))));
678
702
  }
679
703
  get _element() { return index$1.getElement(this); }
680
704
  static get watchers() { return {
@@ -16,6 +16,7 @@ const SnkFilterDetail = class {
16
16
  this.filterChange = index.createEvent(this, "filterChange", 7);
17
17
  this.config = undefined;
18
18
  this.getMessage = undefined;
19
+ this.showHardFixed = true;
19
20
  }
20
21
  /**
21
22
  * Exibe o componente snk-filter-detail.
@@ -93,7 +94,9 @@ const SnkFilterDetail = class {
93
94
  return Object.assign(Object.assign({}, item), { visible: false, fixed: false, value: undefined });
94
95
  }
95
96
  getPopUpHeaderButtons() {
96
- return (index.h(index.Fragment, null, !this.config.removalBlocked && this.buildIcon(this.getMessage("snkFilterBar.removeFilter"), "delete", () => this.removeItem()), !this.config.hardFixed && this.buildIcon(this.getMessage(this.config.fixed ? "snkFilterBar.unpinFilter" : "snkFilterBar.pinFilter"), this.config.fixed ? "un-pin" : "push-pin", () => this.changeConfig(Object.assign(Object.assign({}, this.config), { fixed: !this.config.fixed })))));
97
+ return (index.h(index.Fragment, null, !this.config.removalBlocked &&
98
+ this.buildIcon(this.getMessage("snkFilterBar.removeFilter"), "delete", () => this.removeItem()), this.showHardFixed && !this.config.hardFixed &&
99
+ this.buildIcon(this.getMessage(this.config.fixed ? "snkFilterBar.unpinFilter" : "snkFilterBar.pinFilter"), this.config.fixed ? "un-pin" : "push-pin", () => this.changeConfig(Object.assign(Object.assign({}, this.config), { fixed: !this.config.fixed })))));
97
100
  }
98
101
  buildIcon(title, iconName, action) {
99
102
  return (index.h("button", { onClick: () => action(), class: "sc-snk-filter-bar snk-filter-item__editor-header-button", ref: elem => elem && this.buildIdButton(elem, title) }, index.h("ez-icon", Object.assign({ title: title, iconName: iconName }, { [core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `${core.ElementIDUtils.getInternalIDInfo(`_${title}`)}` }))));