@sankhyalabs/sankhyablocks 10.1.0-dev.52 → 10.1.0-dev.53

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 (263) hide show
  1. package/dist/cjs/{ConfigStorage-a1fab5ca.js → ConfigStorage-4201dd3d.js} +2 -2
  2. package/dist/cjs/{DataFetcher-384d2ce8.js → DataFetcher-b3a8075d.js} +2830 -2
  3. package/dist/cjs/FormConfigHelper-c5f5473a.js +342 -0
  4. package/dist/cjs/{ISave-ecbe9336.js → ISave-4674c283.js} +1 -1
  5. package/dist/cjs/{PersonalizedFilterUtils-eccb267a.js → PersonalizedFilterUtils-263e4d24.js} +52 -5
  6. package/dist/cjs/{SnkFormConfigManager-44386305.js → SnkFormConfigManager-c3a49038.js} +2 -2
  7. package/dist/cjs/{SnkMultiSelectionListDataSource-d341dd02.js → SnkMultiSelectionListDataSource-0bc94d36.js} +4 -4
  8. package/dist/cjs/{auth-fetcher-6b134ec4.js → auth-fetcher-0ecc53ff.js} +1 -1
  9. package/dist/cjs/{dataunit-fetcher-b9822794.js → dataunit-fetcher-bcbc38c0.js} +2 -3
  10. package/dist/cjs/{filter-type.enum-2bb46d2a.js → filter-type.enum-b3b388af.js} +7 -0
  11. package/dist/cjs/{form-config-fetcher-45d1964c.js → form-config-fetcher-f80dbc3b.js} +23 -5
  12. package/dist/cjs/index-1894343a.js +24 -36
  13. package/dist/cjs/loader.cjs.js +1 -1
  14. package/dist/cjs/pesquisa-grid_2.cjs.entry.js +4 -5
  15. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  16. package/dist/cjs/snk-actions-button_9.cjs.entry.js +5 -6
  17. package/dist/cjs/snk-application.cjs.entry.js +7 -8
  18. package/dist/cjs/snk-attach_11.cjs.entry.js +2950 -0
  19. package/dist/cjs/snk-crud.cjs.entry.js +31 -243
  20. package/dist/cjs/snk-data-exporter.cjs.entry.js +5 -6
  21. package/dist/cjs/{snk-data-unit-4b6dc396.js → snk-data-unit-3b94547d.js} +11 -11
  22. package/dist/cjs/snk-data-unit.cjs.entry.js +3 -4
  23. package/dist/cjs/snk-detail-view.cjs.entry.js +9 -10
  24. package/dist/cjs/snk-dynaform-config-header_5.cjs.entry.js +739 -0
  25. package/dist/cjs/snk-dynaform-detail-view_2.cjs.entry.js +938 -0
  26. package/dist/cjs/snk-dynaform-field-config_2.cjs.entry.js +327 -0
  27. package/dist/cjs/snk-dynaform-guides-view-e98f7f3a.js +747 -0
  28. package/dist/cjs/snk-dynaform-guides-view.cjs.entry.js +23 -0
  29. package/dist/cjs/snk-dynaform.cjs.entry.js +675 -0
  30. package/dist/cjs/{snk-expression-group_2.cjs.entry.js → snk-expression-group_4.cjs.entry.js} +421 -18
  31. package/dist/cjs/snk-filter-bar_4.cjs.entry.js +41 -44
  32. package/dist/cjs/snk-form_2.cjs.entry.js +4 -5
  33. package/dist/cjs/snk-grid.cjs.entry.js +7 -8
  34. package/dist/cjs/{snk-guides-viewer-8e7a503b.js → snk-guides-viewer-3054d541.js} +1 -1
  35. package/dist/cjs/snk-guides-viewer.cjs.entry.js +5 -6
  36. package/dist/cjs/snk-layout-form-config.cjs.entry.js +4 -5
  37. package/dist/cjs/snk-pesquisa.cjs.entry.js +4 -5
  38. package/dist/cjs/taskbarUtils-38748460.js +231 -0
  39. package/dist/collection/collection-manifest.json +17 -0
  40. package/dist/collection/components/snk-dynaform/interfaces/PropsCustomEditor.js +1 -0
  41. package/dist/collection/components/snk-dynaform/interfaces/PropsCustomRender.js +1 -0
  42. package/dist/collection/components/snk-dynaform/snk-dynaform.css +64 -0
  43. package/dist/collection/components/snk-dynaform/snk-dynaform.js +1657 -0
  44. package/dist/collection/components/snk-dynaform/subcomponents/CardFormResizeObserver.js +26 -0
  45. package/dist/collection/components/snk-dynaform/subcomponents/GuideBuilder.js +51 -0
  46. package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-detail-view/snk-dynaform-detail-view.css +112 -0
  47. package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-detail-view/snk-dynaform-detail-view.js +992 -0
  48. package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-form-view/snk-dynaform-form-view.css +64 -0
  49. package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-form-view/snk-dynaform-form-view.js +588 -0
  50. package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-guides-view/snk-dynaform-guides-view.css +98 -0
  51. package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-guides-view/snk-dynaform-guides-view.js +1167 -0
  52. package/dist/collection/components/snk-dynaform-form-config/FormConfigHelper.js +325 -0
  53. package/dist/collection/components/snk-dynaform-form-config/SnkFormConfigManager.js +212 -0
  54. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-config-header/snk-dynaform-config-header.css +17 -0
  55. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-config-header/snk-dynaform-config-header.js +236 -0
  56. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-config-header/snk-dynaform-configs-button/snk-dynaform-configs-button.css +41 -0
  57. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-config-header/snk-dynaform-configs-button/snk-dynaform-configs-button.js +170 -0
  58. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-field-item/snk-dynaform-field-config/snk-dynaform-field-config.css +22 -0
  59. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-field-item/snk-dynaform-field-config/snk-dynaform-field-config.js +408 -0
  60. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-field-item/snk-dynaform-field-item.css +88 -0
  61. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-field-item/snk-dynaform-field-item.js +209 -0
  62. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-fields-layout/snk-dynaform-fields-layout.css +167 -0
  63. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-fields-layout/snk-dynaform-fields-layout.js +655 -0
  64. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-fields-selector/snk-dynaform-fields-selector.css +42 -0
  65. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-fields-selector/snk-dynaform-fields-selector.js +171 -0
  66. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-form-config.css +66 -0
  67. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-form-config.js +557 -0
  68. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-guides-configurator/snk-dynaform-guides-configurator.css +80 -0
  69. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-guides-configurator/snk-dynaform-guides-configurator.js +326 -0
  70. package/dist/collection/components/snk-grid/snk-grid.css +4 -2
  71. package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +22 -4
  72. package/dist/components/form-config-fetcher.js +22 -4
  73. package/dist/components/index.d.ts +12 -0
  74. package/dist/components/index.js +12 -0
  75. package/dist/components/snk-crud.js +1 -212
  76. package/dist/components/snk-dynaform-config-header.d.ts +11 -0
  77. package/dist/components/snk-dynaform-config-header.js +6 -0
  78. package/dist/components/snk-dynaform-config-header2.js +103 -0
  79. package/dist/components/snk-dynaform-configs-button.d.ts +11 -0
  80. package/dist/components/snk-dynaform-configs-button.js +6 -0
  81. package/dist/components/snk-dynaform-configs-button2.js +76 -0
  82. package/dist/components/snk-dynaform-detail-view.d.ts +11 -0
  83. package/dist/components/snk-dynaform-detail-view.js +6 -0
  84. package/dist/components/snk-dynaform-detail-view2.js +1835 -0
  85. package/dist/components/snk-dynaform-field-config.d.ts +11 -0
  86. package/dist/components/snk-dynaform-field-config.js +6 -0
  87. package/dist/components/snk-dynaform-field-config2.js +605 -0
  88. package/dist/components/snk-dynaform-field-item.d.ts +11 -0
  89. package/dist/components/snk-dynaform-field-item.js +6 -0
  90. package/dist/components/snk-dynaform-field-item2.js +96 -0
  91. package/dist/components/snk-dynaform-fields-layout.d.ts +11 -0
  92. package/dist/components/snk-dynaform-fields-layout.js +6 -0
  93. package/dist/components/snk-dynaform-fields-layout2.js +428 -0
  94. package/dist/components/snk-dynaform-fields-selector.d.ts +11 -0
  95. package/dist/components/snk-dynaform-fields-selector.js +6 -0
  96. package/dist/components/snk-dynaform-fields-selector2.js +104 -0
  97. package/dist/components/snk-dynaform-form-config.d.ts +11 -0
  98. package/dist/components/snk-dynaform-form-config.js +6 -0
  99. package/dist/components/snk-dynaform-form-config2.js +430 -0
  100. package/dist/components/snk-dynaform-form-view.d.ts +11 -0
  101. package/dist/components/snk-dynaform-form-view.js +6 -0
  102. package/dist/components/snk-dynaform-form-view2.js +270 -0
  103. package/dist/components/snk-dynaform-guides-configurator.d.ts +11 -0
  104. package/dist/components/snk-dynaform-guides-configurator.js +6 -0
  105. package/dist/components/snk-dynaform-guides-configurator2.js +173 -0
  106. package/dist/components/snk-dynaform-guides-view.d.ts +11 -0
  107. package/dist/components/snk-dynaform-guides-view.js +6 -0
  108. package/dist/components/snk-dynaform.d.ts +11 -0
  109. package/dist/components/snk-dynaform.js +1003 -0
  110. package/dist/components/snk-grid2.js +1 -1
  111. package/dist/components/taskbarUtils.js +224 -0
  112. package/dist/esm/{ConfigStorage-76872695.js → ConfigStorage-e834d1ea.js} +2 -2
  113. package/dist/esm/{DataFetcher-e60f8d53.js → DataFetcher-5ed0a377.js} +2830 -3
  114. package/dist/esm/FormConfigHelper-efc29480.js +328 -0
  115. package/dist/esm/{ISave-4929c071.js → ISave-5b46d691.js} +1 -1
  116. package/dist/esm/{PersonalizedFilterUtils-d2439a9a.js → PersonalizedFilterUtils-45b5803c.js} +49 -2
  117. package/dist/esm/{SnkFormConfigManager-83f6b22f.js → SnkFormConfigManager-bfd575c2.js} +2 -2
  118. package/dist/esm/{SnkMultiSelectionListDataSource-18abafb1.js → SnkMultiSelectionListDataSource-9e9166ae.js} +4 -4
  119. package/dist/esm/{auth-fetcher-1a31c1e4.js → auth-fetcher-5283045d.js} +1 -1
  120. package/dist/esm/{dataunit-fetcher-c176e002.js → dataunit-fetcher-3b1ca96e.js} +1 -2
  121. package/dist/esm/{filter-type.enum-f6a8fe23.js → filter-type.enum-62b7fe88.js} +8 -1
  122. package/dist/esm/{form-config-fetcher-b44b2727.js → form-config-fetcher-db1bf140.js} +23 -5
  123. package/dist/esm/index-04f73a26.js +24 -36
  124. package/dist/esm/loader.js +1 -1
  125. package/dist/esm/pesquisa-grid_2.entry.js +4 -5
  126. package/dist/esm/sankhyablocks.js +1 -1
  127. package/dist/esm/snk-actions-button_9.entry.js +5 -6
  128. package/dist/esm/snk-application.entry.js +6 -7
  129. package/dist/esm/snk-attach_11.entry.js +2936 -0
  130. package/dist/esm/snk-crud.entry.js +6 -218
  131. package/dist/esm/snk-data-exporter.entry.js +5 -6
  132. package/dist/esm/{snk-data-unit-d8cfa950.js → snk-data-unit-dfde62cb.js} +2 -2
  133. package/dist/esm/snk-data-unit.entry.js +3 -4
  134. package/dist/esm/snk-detail-view.entry.js +7 -8
  135. package/dist/esm/snk-dynaform-config-header_5.entry.js +731 -0
  136. package/dist/esm/snk-dynaform-detail-view_2.entry.js +933 -0
  137. package/dist/esm/snk-dynaform-field-config_2.entry.js +322 -0
  138. package/dist/esm/snk-dynaform-guides-view-1f1455d6.js +744 -0
  139. package/dist/esm/snk-dynaform-guides-view.entry.js +15 -0
  140. package/dist/esm/snk-dynaform.entry.js +671 -0
  141. package/dist/esm/{snk-expression-group_2.entry.js → snk-expression-group_4.entry.js} +405 -4
  142. package/dist/esm/snk-filter-bar_4.entry.js +5 -8
  143. package/dist/esm/snk-form_2.entry.js +4 -5
  144. package/dist/esm/snk-grid.entry.js +7 -8
  145. package/dist/esm/{snk-guides-viewer-adf39ea2.js → snk-guides-viewer-95fefcaa.js} +1 -1
  146. package/dist/esm/snk-guides-viewer.entry.js +5 -6
  147. package/dist/esm/snk-layout-form-config.entry.js +4 -5
  148. package/dist/esm/snk-pesquisa.entry.js +4 -5
  149. package/dist/esm/taskbarUtils-8501d09e.js +225 -0
  150. package/dist/sankhyablocks/p-0dbd53d9.js +1 -0
  151. package/dist/sankhyablocks/{p-f5ad0720.js → p-19d1ca14.js} +1 -1
  152. package/dist/sankhyablocks/{p-ab5e12fa.js → p-1cc4cf61.js} +1 -1
  153. package/dist/sankhyablocks/p-1edd6be6.entry.js +1 -0
  154. package/dist/sankhyablocks/p-22ddc1a5.entry.js +1 -0
  155. package/dist/sankhyablocks/p-24b059ee.entry.js +1 -0
  156. package/dist/sankhyablocks/{p-5c250661.js → p-2c00b93d.js} +1 -1
  157. package/dist/sankhyablocks/p-3623fddf.entry.js +1 -0
  158. package/dist/sankhyablocks/p-43c94ba5.entry.js +1 -0
  159. package/dist/sankhyablocks/p-449dfe55.entry.js +1 -0
  160. package/dist/sankhyablocks/p-451b5bcc.entry.js +1 -0
  161. package/dist/sankhyablocks/p-46d7e2de.js +1 -0
  162. package/dist/sankhyablocks/{p-3c990841.js → p-51e853f2.js} +1 -1
  163. package/dist/sankhyablocks/p-58709cf9.js +1 -0
  164. package/dist/sankhyablocks/p-589016e2.entry.js +1 -0
  165. package/dist/sankhyablocks/p-5d02c032.js +1 -0
  166. package/dist/sankhyablocks/p-5d50f59a.entry.js +1 -0
  167. package/dist/sankhyablocks/p-61776b68.entry.js +1 -0
  168. package/dist/sankhyablocks/p-6b8a1ec3.js +1 -0
  169. package/dist/sankhyablocks/p-7038cf62.entry.js +1 -0
  170. package/dist/sankhyablocks/{p-b1bb4cf1.js → p-70c2ee5c.js} +1 -1
  171. package/dist/sankhyablocks/p-7628e04f.entry.js +1 -0
  172. package/dist/sankhyablocks/p-7798788b.entry.js +1 -0
  173. package/dist/sankhyablocks/p-77c26de0.js +1 -0
  174. package/dist/sankhyablocks/p-7c34a0f7.entry.js +1 -0
  175. package/dist/sankhyablocks/p-a4a0d9b7.entry.js +1 -0
  176. package/dist/sankhyablocks/{p-4f7adf97.js → p-b1bf9564.js} +1 -1
  177. package/dist/sankhyablocks/p-b4c2a99c.entry.js +1 -0
  178. package/dist/sankhyablocks/p-b75af274.entry.js +1 -0
  179. package/dist/sankhyablocks/p-c538bd6c.entry.js +1 -0
  180. package/dist/sankhyablocks/{p-3704bf1b.js → p-d5810110.js} +1 -1
  181. package/dist/sankhyablocks/p-d7fd447e.entry.js +1 -0
  182. package/dist/sankhyablocks/p-d88278f8.js +28 -0
  183. package/dist/sankhyablocks/p-f076d742.js +60 -0
  184. package/dist/sankhyablocks/{p-8fe740b7.entry.js → p-f1ef090f.entry.js} +2 -2
  185. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  186. package/dist/types/components/snk-dynaform/interfaces/PropsCustomEditor.d.ts +4 -0
  187. package/dist/types/components/snk-dynaform/interfaces/PropsCustomRender.d.ts +4 -0
  188. package/dist/types/components/snk-dynaform/subcomponents/CardFormResizeObserver.d.ts +1 -0
  189. package/dist/types/components/snk-dynaform/subcomponents/GuideBuilder.d.ts +14 -0
  190. package/dist/types/components/snk-dynaform/subcomponents/snk-dynaform-detail-view/snk-dynaform-detail-view.d.ts +158 -0
  191. package/dist/types/components/snk-dynaform/subcomponents/snk-dynaform-form-view/snk-dynaform-form-view.d.ts +107 -0
  192. package/dist/types/components/snk-dynaform-form-config/FormConfigHelper.d.ts +36 -0
  193. package/dist/types/components/snk-dynaform-form-config/SnkFormConfigManager.d.ts +35 -0
  194. package/dist/types/components/snk-dynaform-form-config/snk-dynaform-config-header/snk-dynaform-config-header.d.ts +23 -0
  195. package/dist/types/components/snk-dynaform-form-config/snk-dynaform-config-header/snk-dynaform-configs-button/snk-dynaform-configs-button.d.ts +19 -0
  196. package/dist/types/components/snk-dynaform-form-config/snk-dynaform-field-item/snk-dynaform-field-config/snk-dynaform-field-config.d.ts +56 -0
  197. package/dist/types/components/snk-dynaform-form-config/snk-dynaform-fields-layout/snk-dynaform-fields-layout.d.ts +74 -0
  198. package/dist/types/components/snk-dynaform-form-config/snk-dynaform-fields-selector/snk-dynaform-fields-selector.d.ts +21 -0
  199. package/dist/types/components/snk-dynaform-form-config/snk-dynaform-form-config.d.ts +95 -0
  200. package/dist/types/components/snk-dynaform-form-config/snk-dynaform-guides-configurator/snk-dynaform-guides-configurator.d.ts +35 -0
  201. package/dist/types/components.d.ts +2403 -1322
  202. package/dist/types/lib/http/data-fetcher/fetchers/form-config-fetcher.d.ts +1 -0
  203. package/package.json +1 -1
  204. package/react/components.d.ts +12 -0
  205. package/react/components.js +12 -0
  206. package/react/components.js.map +1 -1
  207. package/dist/cjs/SnkMessageBuilder-a9300ebe.js +0 -2833
  208. package/dist/cjs/default-filters-a09bf82b.js +0 -8
  209. package/dist/cjs/index-62760a9c.js +0 -49
  210. package/dist/cjs/index-8d94b7e0.js +0 -7
  211. package/dist/cjs/snk-attach.cjs.entry.js +0 -948
  212. package/dist/cjs/snk-default-filter.cjs.entry.js +0 -77
  213. package/dist/cjs/snk-filter-advanced-mode_3.cjs.entry.js +0 -99
  214. package/dist/cjs/snk-filter-detail.cjs.entry.js +0 -198
  215. package/dist/cjs/snk-filter-field-search_2.cjs.entry.js +0 -408
  216. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +0 -109
  217. package/dist/cjs/snk-image-input.cjs.entry.js +0 -160
  218. package/dist/cjs/snk-personalized-filter.cjs.entry.js +0 -358
  219. package/dist/cjs/snk-simple-crud.cjs.entry.js +0 -865
  220. package/dist/esm/SnkMessageBuilder-1eb7a1af.js +0 -2831
  221. package/dist/esm/default-filters-50105e43.js +0 -8
  222. package/dist/esm/index-620ac460.js +0 -7
  223. package/dist/esm/index-8acbae97.js +0 -49
  224. package/dist/esm/snk-attach.entry.js +0 -944
  225. package/dist/esm/snk-default-filter.entry.js +0 -73
  226. package/dist/esm/snk-filter-advanced-mode_3.entry.js +0 -93
  227. package/dist/esm/snk-filter-detail.entry.js +0 -194
  228. package/dist/esm/snk-filter-field-search_2.entry.js +0 -403
  229. package/dist/esm/snk-filter-modal-item.entry.js +0 -105
  230. package/dist/esm/snk-image-input.entry.js +0 -156
  231. package/dist/esm/snk-personalized-filter.entry.js +0 -354
  232. package/dist/esm/snk-simple-crud.entry.js +0 -861
  233. package/dist/sankhyablocks/p-0a4cdcde.entry.js +0 -1
  234. package/dist/sankhyablocks/p-0afc64df.entry.js +0 -1
  235. package/dist/sankhyablocks/p-10f27dc6.entry.js +0 -1
  236. package/dist/sankhyablocks/p-20f03230.entry.js +0 -1
  237. package/dist/sankhyablocks/p-2af8aca3.js +0 -1
  238. package/dist/sankhyablocks/p-3870748a.js +0 -28
  239. package/dist/sankhyablocks/p-3d294185.entry.js +0 -1
  240. package/dist/sankhyablocks/p-438a225f.entry.js +0 -1
  241. package/dist/sankhyablocks/p-4d04bc75.entry.js +0 -1
  242. package/dist/sankhyablocks/p-554c0e54.js +0 -1
  243. package/dist/sankhyablocks/p-57c184a2.entry.js +0 -1
  244. package/dist/sankhyablocks/p-68c1a093.js +0 -1
  245. package/dist/sankhyablocks/p-6a4b21dd.js +0 -1
  246. package/dist/sankhyablocks/p-6ae7543b.entry.js +0 -1
  247. package/dist/sankhyablocks/p-6e278003.js +0 -60
  248. package/dist/sankhyablocks/p-82bcb4cf.entry.js +0 -1
  249. package/dist/sankhyablocks/p-84345e7a.js +0 -1
  250. package/dist/sankhyablocks/p-95af0bb1.entry.js +0 -1
  251. package/dist/sankhyablocks/p-a905712a.entry.js +0 -1
  252. package/dist/sankhyablocks/p-aff2d081.entry.js +0 -1
  253. package/dist/sankhyablocks/p-b0a357b4.entry.js +0 -1
  254. package/dist/sankhyablocks/p-b568c1d4.js +0 -1
  255. package/dist/sankhyablocks/p-bab4cde4.entry.js +0 -1
  256. package/dist/sankhyablocks/p-bd3c1aaa.entry.js +0 -1
  257. package/dist/sankhyablocks/p-cc64239c.entry.js +0 -1
  258. package/dist/sankhyablocks/p-cd00a3d1.entry.js +0 -1
  259. package/dist/sankhyablocks/p-d9ec8c4b.entry.js +0 -1
  260. package/dist/sankhyablocks/p-dbdbb77a.entry.js +0 -1
  261. package/dist/sankhyablocks/p-e8df1dea.entry.js +0 -1
  262. package/dist/sankhyablocks/p-ef9343c3.entry.js +0 -1
  263. package/dist/sankhyablocks/p-f4184ce7.js +0 -1
@@ -2,259 +2,47 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index$1 = require('./index-1894343a.js');
5
+ const index = require('./index-1894343a.js');
6
6
  const core = require('@sankhyalabs/core');
7
- require('./DataFetcher-384d2ce8.js');
8
- require('./ISave-ecbe9336.js');
9
- const index = require('./index-e3e39724.js');
7
+ require('./DataFetcher-b3a8075d.js');
8
+ require('./ISave-4674c283.js');
9
+ const index$1 = require('./index-e3e39724.js');
10
10
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
11
11
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
12
- require('./dataunit-fetcher-b9822794.js');
12
+ require('./dataunit-fetcher-bcbc38c0.js');
13
13
  require('./filter-item-type.enum-a7ffdaa6.js');
14
- require('./form-config-fetcher-45d1964c.js');
14
+ require('./form-config-fetcher-f80dbc3b.js');
15
15
  const constants = require('./constants-6d82e405.js');
16
- const authFetcher = require('./auth-fetcher-6b134ec4.js');
16
+ const authFetcher = require('./auth-fetcher-0ecc53ff.js');
17
17
  const ServicesNumberingConfig = require('./ServicesNumberingConfig-69038a0f.js');
18
18
  const taskbarElements = require('./taskbar-elements-80eddec8.js');
19
+ const taskbarUtils = require('./taskbarUtils-38748460.js');
19
20
  const filterValidate = require('./filter-validate-cb4ed41a.js');
20
21
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
21
22
  const ContinuousInsertUtils = require('./ContinuousInsertUtils-1ae0c6ac.js');
22
23
  require('./PrintUtils-bcaeb82f.js');
23
- require('./SnkMessageBuilder-a9300ebe.js');
24
24
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
25
25
  require('@sankhyalabs/core/dist/utils/SortingUtils');
26
26
  require('./ResourceIDUtils-5ff86aa7.js');
27
27
  require('./index-f0fe7e6e.js');
28
28
 
29
- class SimpleTaskbarProcessor {
30
- /**
31
- * Cria uma nova instância do processador de taskbar.
32
- * @param defaultButtons - Array com os botões padrão a serem exibidos
33
- */
34
- constructor(defaultButtons) {
35
- this._defaultButtons = [];
36
- this._defaultButtons = [...defaultButtons];
37
- }
38
- /**
39
- * Processa a taskbar aplicando regras de visibilidade e habilitação.
40
- * @param taskbarID - Identificador único da taskbar
41
- * @param taskbarManager - Gerenciador de taskbar com regras customizadas
42
- * @param dataState - Estado atual dos dados
43
- * @param disabledButtons - Array de botões desabilitados
44
- * @param invisibleButtons - Array de botões invisíveis
45
- */
46
- process(taskbarID, taskbarManager, dataState, disabledButtons = [], invisibleButtons = []) {
47
- var _a;
48
- this.taskbarID = taskbarID;
49
- this.customButtons = new Map();
50
- this.buttonsArray = [];
51
- this.disabledButtons = [...disabledButtons];
52
- (_a = this.getButtonsArray(taskbarManager, dataState)) === null || _a === void 0 ? void 0 : _a.forEach((btnDef) => {
53
- let buttonName;
54
- if (typeof btnDef === "string") {
55
- buttonName = btnDef;
56
- }
57
- else {
58
- this.customButtons.set(btnDef.name, btnDef);
59
- buttonName = btnDef.name;
60
- }
61
- if (!invisibleButtons.includes(buttonName)) {
62
- if (!this.isEnabled(taskbarManager, buttonName, dataState, disabledButtons)) {
63
- this.disabledButtons.push(buttonName);
64
- }
65
- this.buttonsArray.push(buttonName);
66
- }
67
- });
68
- this.buttons = this.buttonsArray.join(",");
69
- }
70
- getButtonsArray(taskbarManager, dataState) {
71
- if (taskbarManager) {
72
- return taskbarManager.getButtons(this.taskbarID, dataState, [...this._defaultButtons]);
73
- }
74
- return this._defaultButtons;
75
- }
76
- isEnabled(taskbarManager, buttonName, dataState, disabled) {
77
- const originalValue = !disabled.includes(buttonName);
78
- if (taskbarManager && taskbarManager.isEnabled) {
79
- return taskbarManager.isEnabled(this.taskbarID, dataState, buttonName, originalValue);
80
- }
81
- return originalValue;
82
- }
83
- }
84
-
85
- const DEFAULT_TASKBAR_BUTTONS = [
86
- taskbarElements.TaskbarElement.FORM_MODE,
87
- taskbarElements.TaskbarElement.PREVIOUS,
88
- taskbarElements.TaskbarElement.NEXT,
89
- taskbarElements.TaskbarElement.REFRESH,
90
- taskbarElements.TaskbarElement.SPACER,
91
- taskbarElements.TaskbarElement.ACTIONS_BUTTON,
92
- taskbarElements.TaskbarElement.DATA_EXPORTER,
93
- taskbarElements.TaskbarElement.ATTACH,
94
- taskbarElements.TaskbarElement.CLONE,
95
- taskbarElements.TaskbarElement.UPDATE,
96
- taskbarElements.TaskbarElement.REMOVE,
97
- taskbarElements.TaskbarElement.INSERT,
98
- taskbarElements.TaskbarElement.CONFIGURATOR,
99
- taskbarElements.TaskbarElement.MORE_OPTIONS,
100
- ];
101
- var CustomTaskbarButton;
102
- (function (CustomTaskbarButton) {
103
- CustomTaskbarButton["FILTER"] = "FILTER";
104
- CustomTaskbarButton["ENTITY_SEARCH"] = "ENTITY_SEARCH";
105
- })(CustomTaskbarButton || (CustomTaskbarButton = {}));
106
- /**
107
- * Insere os botões customizados à esquerda do elemento SPACER na lista de botões.
108
- * Caso o SPACER não seja encontrado, os botões são inseridos no início da lista.
109
- */
110
- function insertCustomButtonsBeforeSpacer(buttons, customButtons) {
111
- const spacerIndex = buttons.findIndex(btn => btn === taskbarElements.TaskbarElement.SPACER || (typeof btn === 'string' && btn === 'SPACER'));
112
- if (spacerIndex > -1) {
113
- return [
114
- ...buttons.slice(0, spacerIndex),
115
- ...customButtons,
116
- ...buttons.slice(spacerIndex),
117
- ];
118
- }
119
- return [...customButtons, ...buttons];
120
- }
121
- function buildNavigationDisabledBtns(dataState) {
122
- const navigationDisabled = [];
123
- if (!(dataState === null || dataState === void 0 ? void 0 : dataState.hasPrevious)) {
124
- navigationDisabled.push(taskbarElements.TaskbarElement.PREVIOUS);
125
- }
126
- if (!(dataState === null || dataState === void 0 ? void 0 : dataState.hasNext)) {
127
- navigationDisabled.push(taskbarElements.TaskbarElement.NEXT);
128
- }
129
- return navigationDisabled;
130
- }
131
- function buildNativeTaskbarManager(currentViewMode, mergeTaskbarManager, messagesBuilder) {
132
- var _a, _b;
133
- const CUSTOM_BUTTONS = [
134
- {
135
- name: CustomTaskbarButton.FILTER,
136
- hint: (_a = messagesBuilder === null || messagesBuilder === void 0 ? void 0 : messagesBuilder.getMessage("snkCrud.customButtons.filter")) !== null && _a !== void 0 ? _a : "Abre o painel de filtros",
137
- iconName: "filter",
138
- },
139
- {
140
- name: CustomTaskbarButton.ENTITY_SEARCH,
141
- hint: (_b = messagesBuilder === null || messagesBuilder === void 0 ? void 0 : messagesBuilder.getMessage("snkCrud.customButtons.entitySearch")) !== null && _b !== void 0 ? _b : "Busca na entidade",
142
- iconName: "search",
143
- },
144
- ];
145
- const EDITION_MODE_BUTTONS = [
146
- taskbarElements.TaskbarElement.CANCEL,
147
- taskbarElements.TaskbarElement.SAVE,
148
- ];
149
- return {
150
- getButtons: (taskbarID, dataState, defaultButtons) => {
151
- var _a, _b;
152
- if (!taskbarID) {
153
- console.warn('taskbarID não fornecido');
154
- return [];
155
- }
156
- const isInEditionMode = (dataState === null || dataState === void 0 ? void 0 : dataState.insertionMode) || (dataState === null || dataState === void 0 ? void 0 : dataState.isDirty);
157
- if (isInEditionMode) {
158
- return EDITION_MODE_BUTTONS;
159
- }
160
- if (currentViewMode === constants.VIEW_MODE.FORM) {
161
- const indexFormMode = defaultButtons.indexOf(taskbarElements.TaskbarElement.FORM_MODE);
162
- if (indexFormMode > -1) {
163
- defaultButtons = [
164
- ...defaultButtons.slice(0, indexFormMode),
165
- taskbarElements.TaskbarElement.GRID_MODE,
166
- ...defaultButtons.slice(indexFormMode + 1)
167
- ];
168
- }
169
- }
170
- if (((_b = (_a = dataState === null || dataState === void 0 ? void 0 : dataState.selectionInfo) === null || _a === void 0 ? void 0 : _a.records) === null || _b === void 0 ? void 0 : _b.length) > 1) {
171
- const indexUpdate = defaultButtons.indexOf(taskbarElements.TaskbarElement.UPDATE);
172
- if (indexUpdate > -1) {
173
- defaultButtons = [
174
- ...defaultButtons.slice(0, indexUpdate),
175
- taskbarElements.TaskbarElement.UPDATE_MULTIPLE,
176
- ...defaultButtons.slice(indexUpdate + 1)
177
- ];
178
- }
179
- }
180
- const defaultsWithCustomButtons = insertCustomButtonsBeforeSpacer(defaultButtons, CUSTOM_BUTTONS);
181
- if (mergeTaskbarManager === null || mergeTaskbarManager === void 0 ? void 0 : mergeTaskbarManager.getButtons) {
182
- return mergeTaskbarManager.getButtons(taskbarID, dataState, defaultsWithCustomButtons);
183
- }
184
- return defaultsWithCustomButtons;
185
- },
186
- isEnabled: (_, dataState, buttonName, originalValue) => {
187
- var _a;
188
- if (!dataState) {
189
- return originalValue;
190
- }
191
- const hasSelectedRecord = dataState.selectedRecord !== undefined;
192
- const buttonsRequiringSelection = [
193
- taskbarElements.TaskbarElement.UPDATE,
194
- taskbarElements.TaskbarElement.REMOVE,
195
- taskbarElements.TaskbarElement.ATTACH,
196
- taskbarElements.TaskbarElement.CLONE,
197
- ];
198
- if (!hasSelectedRecord && buttonsRequiringSelection.includes(buttonName)) {
199
- return false;
200
- }
201
- const navigationDisabled = buildNavigationDisabledBtns(dataState);
202
- if (navigationDisabled.includes(buttonName)) {
203
- return false;
204
- }
205
- return (_a = mergeTaskbarManager === null || mergeTaskbarManager === void 0 ? void 0 : mergeTaskbarManager.isEnabled(_, dataState, buttonName, originalValue)) !== null && _a !== void 0 ? _a : originalValue;
206
- },
207
- getMoreOptions(taskbarId, configName, dataState, currentActions) {
208
- var _a;
209
- return (_a = mergeTaskbarManager === null || mergeTaskbarManager === void 0 ? void 0 : mergeTaskbarManager.getMoreOptions) === null || _a === void 0 ? void 0 : _a.call(mergeTaskbarManager, taskbarId, configName, dataState, currentActions);
210
- },
211
- };
212
- }
213
- function getHeaderTaskbarId(dataState, presentationMode) {
214
- var _a;
215
- const hasSelectedRecord = dataState && !!((_a = dataState.selectionInfo) === null || _a === void 0 ? void 0 : _a.length);
216
- const taskbarIdPrefixLookup = {
217
- primary: "snkGridHeaderTaskbar",
218
- secondary: "snkGridHeaderTaskbar",
219
- singleTaskbar: "snkGridHeaderTaskbar.singleTaskbar",
220
- };
221
- const taskbarIdPrefix = taskbarIdPrefixLookup[presentationMode];
222
- let headerTaskbarId = hasSelectedRecord ? `${taskbarIdPrefix}.selected` : `${taskbarIdPrefix}.unselected`;
223
- if ((dataState === null || dataState === void 0 ? void 0 : dataState.isDirty) && presentationMode === index.PresentationMode.SINGLE_TASKBAR) {
224
- headerTaskbarId = "snkGridHeaderTaskbar.singleTaskbar.finish_edition";
225
- }
226
- return headerTaskbarId;
227
- }
228
- function getTopTaskBarId(dataState, presentationMode) {
229
- const suffixLookup = {
230
- primary: '',
231
- secondary: '.secondary',
232
- singleTaskbar: '.singleTaskbar',
233
- };
234
- const sufix = suffixLookup[presentationMode];
235
- if (dataState === null || dataState === void 0 ? void 0 : dataState.isDirty) {
236
- return `snkGridTopTaskbar.finish_edition${sufix}`;
237
- }
238
- return `snkGridTopTaskbar.regular${sufix}`;
239
- }
240
-
241
29
  const snkCrudCss = ".sc-snk-crud-h{display:flex;flex-direction:column;height:100%;width:100%;overflow-y:auto;scrollbar-gutter:stable both-edges}snk-grid.sc-snk-crud{--snk-grid-padding:0 var(--space--6, 6px) var(--space--6, 6px) var(--space--6, 6px)}stack-item.sc-snk-crud.sc-snk-crud{display:grid;min-height:100%}.snk-crud__header.sc-snk-crud{margin-bottom:var(--space--10, 10px)}.snk-crud__grid-stack-item.sc-snk-crud{display:flex;flex-direction:column;height:100%;width:100%;padding:0 var(--space--2, 2px)}.snk-crud__header-top.sc-snk-crud{display:flex;justify-content:space-between;align-items:center;padding:var(--space--8, 8px);padding-top:var(--space--12, 12px)}.snk-crud__header-bottom.sc-snk-crud{display:flex;justify-content:space-between;align-items:center;padding:0 var(--space--8, 8px) 0 var(--space--6, 6px)}.snk-crud__header-bottom.sc-snk-crud>snk-taskbar.sc-snk-crud{padding-bottom:var(--space--8, 8px);margin-left:var(--space--12, 12px)}.snk-crud--hidden.sc-snk-crud{display:none !important}ez-record-navigation.sc-snk-crud,ez-grid-pagination.sc-snk-crud{margin-bottom:var(--space--8, 8px)}";
242
30
 
243
31
  const SnkCrud = class {
244
32
  constructor(hostRef) {
245
- index$1.registerInstance(this, hostRef);
246
- this.snkShowGuide = index$1.createEvent(this, "snkShowGuide", 7);
247
- this.actionClick = index$1.createEvent(this, "actionClick", 7);
248
- this.configuratorSave = index$1.createEvent(this, "configuratorSave", 7);
249
- this.configuratorCancel = index$1.createEvent(this, "configuratorCancel", 7);
250
- this.formItemsReady = index$1.createEvent(this, "formItemsReady", 7);
251
- this.viewModeChanged = index$1.createEvent(this, "viewModeChanged", 7);
252
- this.numberingConfigChanged = index$1.createEvent(this, "numberingConfigChanged", 7);
33
+ index.registerInstance(this, hostRef);
34
+ this.snkShowGuide = index.createEvent(this, "snkShowGuide", 7);
35
+ this.actionClick = index.createEvent(this, "actionClick", 7);
36
+ this.configuratorSave = index.createEvent(this, "configuratorSave", 7);
37
+ this.configuratorCancel = index.createEvent(this, "configuratorCancel", 7);
38
+ this.formItemsReady = index.createEvent(this, "formItemsReady", 7);
39
+ this.viewModeChanged = index.createEvent(this, "viewModeChanged", 7);
40
+ this.numberingConfigChanged = index.createEvent(this, "numberingConfigChanged", 7);
253
41
  this._viewHistory = [];
254
42
  this._customEditors = new Map();
255
43
  this._customRenders = new Map();
256
- this._taskbarProcessor = new SimpleTaskbarProcessor(DEFAULT_TASKBAR_BUTTONS);
257
- this._taskbarCustomProcessor = new SimpleTaskbarProcessor([]);
44
+ this._taskbarProcessor = new taskbarUtils.SimpleTaskbarProcessor(taskbarUtils.DEFAULT_TASKBAR_BUTTONS);
45
+ this._taskbarCustomProcessor = new taskbarUtils.SimpleTaskbarProcessor([]);
258
46
  this.dataUnitInterceptor = {
259
47
  interceptAction: async (action) => {
260
48
  switch (action.type) {
@@ -289,7 +77,7 @@ const SnkCrud = class {
289
77
  this.recordsValidator = undefined;
290
78
  this.statusResolver = undefined;
291
79
  this.multipleSelection = true;
292
- this.presentationMode = index.PresentationMode.PRIMARY;
80
+ this.presentationMode = index$1.PresentationMode.PRIMARY;
293
81
  this.messagesBuilder = undefined;
294
82
  this.useEnterLikeTab = false;
295
83
  this.gridLegacyConfigName = undefined;
@@ -302,7 +90,7 @@ const SnkCrud = class {
302
90
  this.domainMessagesBuilder = undefined;
303
91
  this.ignoreReadOnlyFormFields = undefined;
304
92
  this.setCustomFormTitle = undefined;
305
- this.strategyExporter = index.ExporterStrategy.SERVER_SIDE;
93
+ this.strategyExporter = index$1.ExporterStrategy.SERVER_SIDE;
306
94
  this.layoutFormConfig = true;
307
95
  this.multipleEditionEnabled = true;
308
96
  this.paginationCounterMode = 'auto';
@@ -424,9 +212,9 @@ const SnkCrud = class {
424
212
  return this._snkConfigurator.open();
425
213
  case taskbarElements.TaskbarElement.ATTACH:
426
214
  return this._snkAttach.open();
427
- case CustomTaskbarButton.FILTER:
215
+ case taskbarUtils.CustomTaskbarButton.FILTER:
428
216
  return (_a = this._snkFilterBar) === null || _a === void 0 ? void 0 : _a.showFilterModal();
429
- case CustomTaskbarButton.ENTITY_SEARCH:
217
+ case taskbarUtils.CustomTaskbarButton.ENTITY_SEARCH:
430
218
  return this.openSearchPopover();
431
219
  }
432
220
  }
@@ -492,10 +280,10 @@ const SnkCrud = class {
492
280
  }
493
281
  }
494
282
  initializeTaskbarProcessor() {
495
- const nativeTaskbarManager = buildNativeTaskbarManager(this._currentViewMode, this.taskbarManager, this.messagesBuilder);
496
- const topTaskbarId = getTopTaskBarId(this._dataState, this.presentationMode);
283
+ const nativeTaskbarManager = taskbarUtils.buildNativeTaskbarManager(this._currentViewMode, this.taskbarManager, this.messagesBuilder);
284
+ const topTaskbarId = taskbarUtils.getTopTaskBarId(this._dataState, this.presentationMode);
497
285
  this._taskbarProcessor.process(topTaskbarId, nativeTaskbarManager, this._dataState, undefined, []);
498
- const headerTaskbarId = getHeaderTaskbarId(this._dataState, this.presentationMode);
286
+ const headerTaskbarId = taskbarUtils.getHeaderTaskbarId(this._dataState, this.presentationMode);
499
287
  this._taskbarCustomProcessor.process(headerTaskbarId, this.taskbarManager, this._dataState, undefined, []);
500
288
  }
501
289
  componentWillRender() {
@@ -744,7 +532,7 @@ const SnkCrud = class {
744
532
  renderCustomGuideSlots() {
745
533
  if (!this.customGuidesConfig)
746
534
  return;
747
- return this.customGuidesConfig.map(g => index$1.h("slot", { name: g.id }));
535
+ return this.customGuidesConfig.map(g => index.h("slot", { name: g.id }));
748
536
  }
749
537
  getColumnSearch(item) {
750
538
  if (this._columnSearch != undefined) {
@@ -789,7 +577,7 @@ const SnkCrud = class {
789
577
  if (this.isGridInsertActive())
790
578
  return hardList;
791
579
  if (this.taskbarManager != undefined && this.taskbarManager.getMoreOptions != undefined) {
792
- const taskbarID = getTopTaskBarId(this._dataState, this.presentationMode);
580
+ const taskbarID = taskbarUtils.getTopTaskBarId(this._dataState, this.presentationMode);
793
581
  return hardList.concat(this.taskbarManager.getMoreOptions(taskbarID, this.configName, this._dataState, this.actionsList));
794
582
  }
795
583
  return hardList.concat(this.actionsList);
@@ -798,7 +586,7 @@ const SnkCrud = class {
798
586
  if (!this._popoverSearchEntity) {
799
587
  return;
800
588
  }
801
- const buttonElement = this._element.querySelector(`[data-taskbar-element="${CustomTaskbarButton.ENTITY_SEARCH}"]`);
589
+ const buttonElement = this._element.querySelector(`[data-taskbar-element="${taskbarUtils.CustomTaskbarButton.ENTITY_SEARCH}"]`);
802
590
  await this._popoverSearchEntity.showUnder(buttonElement);
803
591
  }
804
592
  handleLoadedSearch(evt) {
@@ -811,7 +599,7 @@ const SnkCrud = class {
811
599
  var _a;
812
600
  if (!this.showEntitySearch)
813
601
  return;
814
- return (index$1.h("snk-entity-search", { ref: (ref) => this._popoverSearchEntity = ref, dataUnit: this._dataUnit, entityName: (_a = this._snkDataUnit) === null || _a === void 0 ? void 0 : _a.entityName, messagesBuilder: this.messagesBuilder, onLoaded: (evt) => this.handleLoadedSearch(evt) }));
602
+ return (index.h("snk-entity-search", { ref: (ref) => this._popoverSearchEntity = ref, dataUnit: this._dataUnit, entityName: (_a = this._snkDataUnit) === null || _a === void 0 ? void 0 : _a.entityName, messagesBuilder: this.messagesBuilder, onLoaded: (evt) => this.handleLoadedSearch(evt) }));
815
603
  }
816
604
  handleFilterConfigUpdated(filterConfig) {
817
605
  if (!filterConfig.length) {
@@ -827,9 +615,9 @@ const SnkCrud = class {
827
615
  return;
828
616
  }
829
617
  this._snkDataUnit.ignoreSaveMessage = (this._currentViewMode === constants.VIEW_MODE.GRID && !this.enableGridInsert);
830
- return (index$1.h(index$1.Host, null, index$1.h("header", { class: { 'snk-crud--hidden': !this._headerVisible, 'snk-crud__header': true } }, index$1.h("div", { class: "snk-crud__header-top" }, index$1.h("snk-taskbar", { "data-element-id": "grid_top", key: "snkGridTopTaskbar", configName: this.configName, dataUnit: this._dataUnit, messagesBuilder: this.messagesBuilder, buttons: this._taskbarProcessor.buttons, disabledButtons: this._taskbarProcessor.disabledButtons, customButtons: this._taskbarProcessor.customButtons, resourceID: this._resourceID, primaryButton: "INSERT", overflowStrategy: "hiddenItems", alignRigth: true, actionsList: this.getActionsList(), customActionsList: this.buildTaskbarCustomActionsList(), sizeButtons: 'medium' })), index$1.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, mode: this._filterMode, hideFilterButton: true, sizeChips: 'default' })), index$1.h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "crud" }, index$1.h("stack-item", { class: 'snk-crud__grid-stack-item' }, index$1.h("snk-grid", { ref: (ref) => this._snkGrid = ref, class: 'ez-flex ez-flex--column ez-size-height--full ez-size-width--full', 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, autoLoad: this.autoLoad, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, strategyExporter: this.strategyExporter, multipleEditionEnabled: this.multipleEditionEnabled, paginationCounterMode: this.paginationCounterMode, hideHeader: true, hideGridTaskbar: true }, index$1.h("slot", { name: "GRID_TASKBAR_CUSTOM_ELEMENTS" }), index$1.h("slot", { name: "GRID_HEADER_CUSTOM_ELEMENTS" }), index$1.h("slot", { name: "SnkGridHeader" }), index$1.h("slot", { name: "SnkGridFooter" }), index$1.h("slot", { name: "SnkGridTaskBar" }))), index$1.h("stack-item", null, index$1.h("snk-guides-viewer", { ref: ref => this._guidesViewer = ref, customGuidesConfig: this.customGuidesConfig, 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, enableGridInsert: this.enableGridInsert, getCustomTitle: this.setCustomFormTitle, ignoreReadOnlyFormFields: this.ignoreReadOnlyFormFields, onFormConfigVisibilityChanged: evt => this._headerVisible = !evt.detail }, index$1.h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }), this.renderCustomGuideSlots(), index$1.h("slot", { name: "SnkFormTaskBar" })))), index$1.h("snk-attach", { ref: (ref) => this._snkAttach = ref, registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this._snkDataUnit.entityName }), index$1.h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, entityName: this._snkDataUnit.entityName, 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, layoutFormConfig: this.layoutFormConfig }), this.renderDynamicSearch(), index$1.h("div", { id: `${this.customContainerId}` }, index$1.h("slot", { name: "SnkConfigContainerSlot" }), index$1.h("slot", { name: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS" }), index$1.h("slot", { name: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS" }), index$1.h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }))));
618
+ return (index.h(index.Host, null, index.h("header", { class: { 'snk-crud--hidden': !this._headerVisible, 'snk-crud__header': true } }, index.h("div", { class: "snk-crud__header-top" }, index.h("snk-taskbar", { "data-element-id": "grid_top", key: "snkGridTopTaskbar", configName: this.configName, dataUnit: this._dataUnit, messagesBuilder: this.messagesBuilder, buttons: this._taskbarProcessor.buttons, disabledButtons: this._taskbarProcessor.disabledButtons, customButtons: this._taskbarProcessor.customButtons, resourceID: this._resourceID, primaryButton: "INSERT", overflowStrategy: "hiddenItems", alignRigth: true, actionsList: this.getActionsList(), customActionsList: this.buildTaskbarCustomActionsList(), sizeButtons: 'medium' })), index.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, mode: this._filterMode, hideFilterButton: true, sizeChips: 'default' })), index.h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "crud" }, index.h("stack-item", { class: 'snk-crud__grid-stack-item' }, index.h("snk-grid", { ref: (ref) => this._snkGrid = ref, class: 'ez-flex ez-flex--column ez-size-height--full ez-size-width--full', 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, autoLoad: this.autoLoad, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, strategyExporter: this.strategyExporter, multipleEditionEnabled: this.multipleEditionEnabled, paginationCounterMode: this.paginationCounterMode, hideHeader: true, hideGridTaskbar: true }, 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, customGuidesConfig: this.customGuidesConfig, 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, enableGridInsert: this.enableGridInsert, getCustomTitle: this.setCustomFormTitle, ignoreReadOnlyFormFields: this.ignoreReadOnlyFormFields, onFormConfigVisibilityChanged: evt => this._headerVisible = !evt.detail }, index.h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }), this.renderCustomGuideSlots(), index.h("slot", { name: "SnkFormTaskBar" })))), index.h("snk-attach", { ref: (ref) => this._snkAttach = ref, registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this._snkDataUnit.entityName }), index.h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, entityName: this._snkDataUnit.entityName, 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, layoutFormConfig: this.layoutFormConfig }), this.renderDynamicSearch(), 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" }))));
831
619
  }
832
- get _element() { return index$1.getElement(this); }
620
+ get _element() { return index.getElement(this); }
833
621
  static get watchers() { return {
834
622
  "_currentViewMode": ["currentViewModeWatcher"]
835
623
  }; }
@@ -8,16 +8,15 @@ const utils = require('@sankhyalabs/ezui/dist/collection/utils');
8
8
  const IFetchDataExporterParams = require('./IFetchDataExporterParams-e78ec415.js');
9
9
  const index = require('./index-e3e39724.js');
10
10
  const constants = require('./constants-6d82e405.js');
11
- const DataFetcher = require('./DataFetcher-384d2ce8.js');
12
- const snkDataUnit = require('./snk-data-unit-4b6dc396.js');
13
- require('./ISave-ecbe9336.js');
11
+ const DataFetcher = require('./DataFetcher-b3a8075d.js');
12
+ const snkDataUnit = require('./snk-data-unit-3b94547d.js');
13
+ require('./ISave-4674c283.js');
14
14
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
15
15
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
16
- require('./dataunit-fetcher-b9822794.js');
16
+ require('./dataunit-fetcher-bcbc38c0.js');
17
17
  require('./filter-item-type.enum-a7ffdaa6.js');
18
- require('./form-config-fetcher-45d1964c.js');
18
+ require('./form-config-fetcher-f80dbc3b.js');
19
19
  require('./PrintUtils-bcaeb82f.js');
20
- require('./SnkMessageBuilder-a9300ebe.js');
21
20
  require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
22
21
  require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
23
22
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
@@ -3,8 +3,8 @@
3
3
  const index = require('./index-1894343a.js');
4
4
  const core = require('@sankhyalabs/core');
5
5
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
6
- const SnkMessageBuilder = require('./SnkMessageBuilder-a9300ebe.js');
7
- const dataunitFetcher = require('./dataunit-fetcher-b9822794.js');
6
+ const DataFetcher = require('./DataFetcher-b3a8075d.js');
7
+ const dataunitFetcher = require('./dataunit-fetcher-bcbc38c0.js');
8
8
  const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
9
9
  const GetSelectedRecordsIDsInfo = require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
10
10
 
@@ -700,7 +700,7 @@ const SnkDataUnit = class {
700
700
  this.dataState = await this.buildDataState();
701
701
  let saveOperation = changes[0]._operation.toLowerCase();
702
702
  if (saveOperation == 'copy') {
703
- saveOperation = SnkMessageBuilder.OperationMap.CLONE;
703
+ saveOperation = DataFetcher.OperationMap.CLONE;
704
704
  }
705
705
  if (this.canIgnoreOperationMessage(saveOperation))
706
706
  return;
@@ -713,7 +713,7 @@ const SnkDataUnit = class {
713
713
  return this.ignoreSaveMessage && !this.isCloneOrInsertOperation(saveOperation);
714
714
  }
715
715
  isCloneOrInsertOperation(saveOperation) {
716
- return [SnkMessageBuilder.OperationMap.CLONE, SnkMessageBuilder.OperationMap.INSERT].includes(saveOperation);
716
+ return [DataFetcher.OperationMap.CLONE, DataFetcher.OperationMap.INSERT].includes(saveOperation);
717
717
  }
718
718
  buildOperationMessage(saveOperation, records) {
719
719
  if (this.isMultiplesUpdate(saveOperation, records)) {
@@ -728,10 +728,10 @@ const SnkDataUnit = class {
728
728
  * de um registro se trata de uma chave composta.
729
729
  */
730
730
  const key = `snkDataUnit.${isCancel ? 'cancelInfo' : 'saveInfo'}`;
731
- return this.getMessage(key, { records: records }, SnkMessageBuilder.OperationMap.UPDATE_MULTIPLES);
731
+ return this.getMessage(key, { records: records }, DataFetcher.OperationMap.UPDATE_MULTIPLES);
732
732
  }
733
733
  isMultiplesUpdate(saveOperation, records) {
734
- return saveOperation === SnkMessageBuilder.OperationMap.UPDATE && records.length > 1;
734
+ return saveOperation === DataFetcher.OperationMap.UPDATE && records.length > 1;
735
735
  }
736
736
  handleRecordsRemoved(action) {
737
737
  var _a, _b;
@@ -776,15 +776,15 @@ const SnkDataUnit = class {
776
776
  }
777
777
  getMessageOperation() {
778
778
  if (this.dataState.copyMode) {
779
- return SnkMessageBuilder.OperationMap.CLONE;
779
+ return DataFetcher.OperationMap.CLONE;
780
780
  }
781
781
  if (this.dataState.insertionMode || this.dataState.isStartingInsertionMode) {
782
- return SnkMessageBuilder.OperationMap.INSERT;
782
+ return DataFetcher.OperationMap.INSERT;
783
783
  }
784
784
  if (this.dataState.isDirty) {
785
- return SnkMessageBuilder.OperationMap.UPDATE;
785
+ return DataFetcher.OperationMap.UPDATE;
786
786
  }
787
- return SnkMessageBuilder.OperationMap.CLEAN;
787
+ return DataFetcher.OperationMap.CLEAN;
788
788
  }
789
789
  async getDataUnitParentOrChild() {
790
790
  var _a;
@@ -887,7 +887,7 @@ const SnkDataUnit = class {
887
887
  if (this.messagesBuilder) {
888
888
  return;
889
889
  }
890
- this.messagesBuilder = new SnkMessageBuilder.SnkMessageBuilder((_a = this.domainMessagesBuilder) !== null && _a !== void 0 ? _a : this.entityName);
890
+ this.messagesBuilder = new DataFetcher.SnkMessageBuilder((_a = this.domainMessagesBuilder) !== null && _a !== void 0 ? _a : this.entityName);
891
891
  }
892
892
  //---------------------------------------------
893
893
  // Lifecycle web component
@@ -2,15 +2,14 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const snkDataUnit = require('./snk-data-unit-4b6dc396.js');
5
+ const snkDataUnit = require('./snk-data-unit-3b94547d.js');
6
6
  require('./index-1894343a.js');
7
7
  require('@sankhyalabs/core');
8
8
  require('@sankhyalabs/ezui/dist/collection/utils');
9
- require('./SnkMessageBuilder-a9300ebe.js');
10
- require('./dataunit-fetcher-b9822794.js');
11
- require('./DataFetcher-384d2ce8.js');
9
+ require('./DataFetcher-b3a8075d.js');
12
10
  require('./PrintUtils-bcaeb82f.js');
13
11
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
12
+ require('./dataunit-fetcher-bcbc38c0.js');
14
13
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
15
14
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
16
15
  require('@sankhyalabs/core/dist/utils/SortingUtils');
@@ -4,22 +4,21 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-1894343a.js');
6
6
  const core = require('@sankhyalabs/core');
7
- const SnkFormConfigManager = require('./SnkFormConfigManager-44386305.js');
7
+ const SnkFormConfigManager = require('./SnkFormConfigManager-c3a49038.js');
8
8
  const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
9
- require('./DataFetcher-384d2ce8.js');
10
- require('./ISave-ecbe9336.js');
9
+ const DataFetcher = require('./DataFetcher-b3a8075d.js');
10
+ require('./ISave-4674c283.js');
11
11
  const index$1 = require('./index-e3e39724.js');
12
12
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
13
13
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
14
- require('./dataunit-fetcher-b9822794.js');
14
+ require('./dataunit-fetcher-bcbc38c0.js');
15
15
  require('./filter-item-type.enum-a7ffdaa6.js');
16
- require('./form-config-fetcher-45d1964c.js');
16
+ require('./form-config-fetcher-f80dbc3b.js');
17
17
  const constants = require('./constants-6d82e405.js');
18
18
  const taskbarElements = require('./taskbar-elements-80eddec8.js');
19
- const snkGuidesViewer = require('./snk-guides-viewer-8e7a503b.js');
20
- const SnkMessageBuilder = require('./SnkMessageBuilder-a9300ebe.js');
19
+ const snkGuidesViewer = require('./snk-guides-viewer-3054d541.js');
21
20
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
22
- require('./ConfigStorage-a1fab5ca.js');
21
+ require('./ConfigStorage-4201dd3d.js');
23
22
  require('./PrintUtils-bcaeb82f.js');
24
23
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
25
24
  require('@sankhyalabs/core/dist/utils/SortingUtils');
@@ -33,7 +32,7 @@ class GuideBuilder {
33
32
  this._dataUnit = dataUnit;
34
33
  this._messageBuilder = messageBuilder;
35
34
  if (!this._messageBuilder) {
36
- this._messageBuilder = new SnkMessageBuilder.SnkMessageBuilder();
35
+ this._messageBuilder = new DataFetcher.SnkMessageBuilder();
37
36
  }
38
37
  }
39
38
  get id() {
@@ -307,7 +306,7 @@ const SnkDetailView = class {
307
306
  this.formConfigManager = new SnkFormConfigManager.SnkFormConfigManager(this._configName, this.resourceID, () => this.loadMetadata(), this.dataUnit);
308
307
  this.formConfigManager.loadConfig();
309
308
  if (this.messagesBuilder == undefined) {
310
- this.messagesBuilder = new SnkMessageBuilder.SnkMessageBuilder(this.entityName);
309
+ this.messagesBuilder = new DataFetcher.SnkMessageBuilder(this.entityName);
311
310
  }
312
311
  }
313
312
  async componentDidLoad() {