@sankhyalabs/sankhyablocks 10.1.0-dev.51 → 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 (273) 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-293bc3d2.js → SnkMultiSelectionListDataSource-0bc94d36.js} +71 -24
  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 -229
  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 +16 -11
  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-b4ca3437.js → snk-guides-viewer-3054d541.js} +2 -2
  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-crud/subcomponents/snk-detail-view/snk-detail-view.css +4 -1
  41. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +6 -0
  42. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.css +1 -1
  43. package/dist/collection/components/snk-crud/utils/taskbarUtils.js +14 -0
  44. package/dist/collection/components/snk-data-exporter/interfaces/IExporterProvider.js +67 -20
  45. package/dist/collection/components/snk-dynaform/interfaces/PropsCustomEditor.js +1 -0
  46. package/dist/collection/components/snk-dynaform/interfaces/PropsCustomRender.js +1 -0
  47. package/dist/collection/components/snk-dynaform/snk-dynaform.css +64 -0
  48. package/dist/collection/components/snk-dynaform/snk-dynaform.js +1657 -0
  49. package/dist/collection/components/snk-dynaform/subcomponents/CardFormResizeObserver.js +26 -0
  50. package/dist/collection/components/snk-dynaform/subcomponents/GuideBuilder.js +51 -0
  51. package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-detail-view/snk-dynaform-detail-view.css +112 -0
  52. package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-detail-view/snk-dynaform-detail-view.js +992 -0
  53. package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-form-view/snk-dynaform-form-view.css +64 -0
  54. package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-form-view/snk-dynaform-form-view.js +588 -0
  55. package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-guides-view/snk-dynaform-guides-view.css +98 -0
  56. package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-guides-view/snk-dynaform-guides-view.js +1167 -0
  57. package/dist/collection/components/snk-dynaform-form-config/FormConfigHelper.js +325 -0
  58. package/dist/collection/components/snk-dynaform-form-config/SnkFormConfigManager.js +212 -0
  59. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-config-header/snk-dynaform-config-header.css +17 -0
  60. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-config-header/snk-dynaform-config-header.js +236 -0
  61. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-config-header/snk-dynaform-configs-button/snk-dynaform-configs-button.css +41 -0
  62. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-config-header/snk-dynaform-configs-button/snk-dynaform-configs-button.js +170 -0
  63. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-field-item/snk-dynaform-field-config/snk-dynaform-field-config.css +22 -0
  64. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-field-item/snk-dynaform-field-config/snk-dynaform-field-config.js +408 -0
  65. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-field-item/snk-dynaform-field-item.css +88 -0
  66. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-field-item/snk-dynaform-field-item.js +209 -0
  67. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-fields-layout/snk-dynaform-fields-layout.css +167 -0
  68. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-fields-layout/snk-dynaform-fields-layout.js +655 -0
  69. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-fields-selector/snk-dynaform-fields-selector.css +42 -0
  70. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-fields-selector/snk-dynaform-fields-selector.js +171 -0
  71. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-form-config.css +66 -0
  72. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-form-config.js +557 -0
  73. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-guides-configurator/snk-dynaform-guides-configurator.css +80 -0
  74. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-guides-configurator/snk-dynaform-guides-configurator.js +326 -0
  75. package/dist/collection/components/snk-grid/snk-grid.css +14 -7
  76. package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +22 -4
  77. package/dist/components/ContinuousInsertUtils.js +67 -20
  78. package/dist/components/form-config-fetcher.js +22 -4
  79. package/dist/components/index.d.ts +12 -0
  80. package/dist/components/index.js +12 -0
  81. package/dist/components/snk-crud.js +1 -198
  82. package/dist/components/snk-detail-view2.js +8 -2
  83. package/dist/components/snk-dynaform-config-header.d.ts +11 -0
  84. package/dist/components/snk-dynaform-config-header.js +6 -0
  85. package/dist/components/snk-dynaform-config-header2.js +103 -0
  86. package/dist/components/snk-dynaform-configs-button.d.ts +11 -0
  87. package/dist/components/snk-dynaform-configs-button.js +6 -0
  88. package/dist/components/snk-dynaform-configs-button2.js +76 -0
  89. package/dist/components/snk-dynaform-detail-view.d.ts +11 -0
  90. package/dist/components/snk-dynaform-detail-view.js +6 -0
  91. package/dist/components/snk-dynaform-detail-view2.js +1835 -0
  92. package/dist/components/snk-dynaform-field-config.d.ts +11 -0
  93. package/dist/components/snk-dynaform-field-config.js +6 -0
  94. package/dist/components/snk-dynaform-field-config2.js +605 -0
  95. package/dist/components/snk-dynaform-field-item.d.ts +11 -0
  96. package/dist/components/snk-dynaform-field-item.js +6 -0
  97. package/dist/components/snk-dynaform-field-item2.js +96 -0
  98. package/dist/components/snk-dynaform-fields-layout.d.ts +11 -0
  99. package/dist/components/snk-dynaform-fields-layout.js +6 -0
  100. package/dist/components/snk-dynaform-fields-layout2.js +428 -0
  101. package/dist/components/snk-dynaform-fields-selector.d.ts +11 -0
  102. package/dist/components/snk-dynaform-fields-selector.js +6 -0
  103. package/dist/components/snk-dynaform-fields-selector2.js +104 -0
  104. package/dist/components/snk-dynaform-form-config.d.ts +11 -0
  105. package/dist/components/snk-dynaform-form-config.js +6 -0
  106. package/dist/components/snk-dynaform-form-config2.js +430 -0
  107. package/dist/components/snk-dynaform-form-view.d.ts +11 -0
  108. package/dist/components/snk-dynaform-form-view.js +6 -0
  109. package/dist/components/snk-dynaform-form-view2.js +270 -0
  110. package/dist/components/snk-dynaform-guides-configurator.d.ts +11 -0
  111. package/dist/components/snk-dynaform-guides-configurator.js +6 -0
  112. package/dist/components/snk-dynaform-guides-configurator2.js +173 -0
  113. package/dist/components/snk-dynaform-guides-view.d.ts +11 -0
  114. package/dist/components/snk-dynaform-guides-view.js +6 -0
  115. package/dist/components/snk-dynaform.d.ts +11 -0
  116. package/dist/components/snk-dynaform.js +1003 -0
  117. package/dist/components/snk-grid2.js +1 -1
  118. package/dist/components/taskbarUtils.js +224 -0
  119. package/dist/esm/{ConfigStorage-76872695.js → ConfigStorage-e834d1ea.js} +2 -2
  120. package/dist/esm/{DataFetcher-e60f8d53.js → DataFetcher-5ed0a377.js} +2830 -3
  121. package/dist/esm/FormConfigHelper-efc29480.js +328 -0
  122. package/dist/esm/{ISave-4929c071.js → ISave-5b46d691.js} +1 -1
  123. package/dist/esm/{PersonalizedFilterUtils-d2439a9a.js → PersonalizedFilterUtils-45b5803c.js} +49 -2
  124. package/dist/esm/{SnkFormConfigManager-83f6b22f.js → SnkFormConfigManager-bfd575c2.js} +2 -2
  125. package/dist/esm/{SnkMultiSelectionListDataSource-f6cabd15.js → SnkMultiSelectionListDataSource-9e9166ae.js} +71 -24
  126. package/dist/esm/{auth-fetcher-1a31c1e4.js → auth-fetcher-5283045d.js} +1 -1
  127. package/dist/esm/{dataunit-fetcher-c176e002.js → dataunit-fetcher-3b1ca96e.js} +1 -2
  128. package/dist/esm/{filter-type.enum-f6a8fe23.js → filter-type.enum-62b7fe88.js} +8 -1
  129. package/dist/esm/{form-config-fetcher-b44b2727.js → form-config-fetcher-db1bf140.js} +23 -5
  130. package/dist/esm/index-04f73a26.js +24 -36
  131. package/dist/esm/loader.js +1 -1
  132. package/dist/esm/pesquisa-grid_2.entry.js +4 -5
  133. package/dist/esm/sankhyablocks.js +1 -1
  134. package/dist/esm/snk-actions-button_9.entry.js +5 -6
  135. package/dist/esm/snk-application.entry.js +6 -7
  136. package/dist/esm/snk-attach_11.entry.js +2936 -0
  137. package/dist/esm/snk-crud.entry.js +6 -204
  138. package/dist/esm/snk-data-exporter.entry.js +5 -6
  139. package/dist/esm/{snk-data-unit-d8cfa950.js → snk-data-unit-dfde62cb.js} +2 -2
  140. package/dist/esm/snk-data-unit.entry.js +3 -4
  141. package/dist/esm/snk-detail-view.entry.js +14 -9
  142. package/dist/esm/snk-dynaform-config-header_5.entry.js +731 -0
  143. package/dist/esm/snk-dynaform-detail-view_2.entry.js +933 -0
  144. package/dist/esm/snk-dynaform-field-config_2.entry.js +322 -0
  145. package/dist/esm/snk-dynaform-guides-view-1f1455d6.js +744 -0
  146. package/dist/esm/snk-dynaform-guides-view.entry.js +15 -0
  147. package/dist/esm/snk-dynaform.entry.js +671 -0
  148. package/dist/esm/{snk-expression-group_2.entry.js → snk-expression-group_4.entry.js} +405 -4
  149. package/dist/esm/snk-filter-bar_4.entry.js +5 -8
  150. package/dist/esm/snk-form_2.entry.js +4 -5
  151. package/dist/esm/snk-grid.entry.js +7 -8
  152. package/dist/esm/{snk-guides-viewer-cc37535b.js → snk-guides-viewer-95fefcaa.js} +2 -2
  153. package/dist/esm/snk-guides-viewer.entry.js +5 -6
  154. package/dist/esm/snk-layout-form-config.entry.js +4 -5
  155. package/dist/esm/snk-pesquisa.entry.js +4 -5
  156. package/dist/esm/taskbarUtils-8501d09e.js +225 -0
  157. package/dist/sankhyablocks/p-0dbd53d9.js +1 -0
  158. package/dist/sankhyablocks/{p-f5ad0720.js → p-19d1ca14.js} +1 -1
  159. package/dist/sankhyablocks/{p-ab5e12fa.js → p-1cc4cf61.js} +1 -1
  160. package/dist/sankhyablocks/p-1edd6be6.entry.js +1 -0
  161. package/dist/sankhyablocks/p-22ddc1a5.entry.js +1 -0
  162. package/dist/sankhyablocks/p-24b059ee.entry.js +1 -0
  163. package/dist/sankhyablocks/p-2c00b93d.js +1 -0
  164. package/dist/sankhyablocks/p-3623fddf.entry.js +1 -0
  165. package/dist/sankhyablocks/p-43c94ba5.entry.js +1 -0
  166. package/dist/sankhyablocks/p-449dfe55.entry.js +1 -0
  167. package/dist/sankhyablocks/p-451b5bcc.entry.js +1 -0
  168. package/dist/sankhyablocks/p-46d7e2de.js +1 -0
  169. package/dist/sankhyablocks/{p-3c990841.js → p-51e853f2.js} +1 -1
  170. package/dist/sankhyablocks/p-58709cf9.js +1 -0
  171. package/dist/sankhyablocks/p-589016e2.entry.js +1 -0
  172. package/dist/sankhyablocks/p-5d02c032.js +1 -0
  173. package/dist/sankhyablocks/p-5d50f59a.entry.js +1 -0
  174. package/dist/sankhyablocks/p-61776b68.entry.js +1 -0
  175. package/dist/sankhyablocks/p-6b8a1ec3.js +1 -0
  176. package/dist/sankhyablocks/p-7038cf62.entry.js +1 -0
  177. package/dist/sankhyablocks/{p-771b137e.js → p-70c2ee5c.js} +1 -1
  178. package/dist/sankhyablocks/p-7628e04f.entry.js +1 -0
  179. package/dist/sankhyablocks/p-7798788b.entry.js +1 -0
  180. package/dist/sankhyablocks/p-77c26de0.js +1 -0
  181. package/dist/sankhyablocks/p-7c34a0f7.entry.js +1 -0
  182. package/dist/sankhyablocks/p-a4a0d9b7.entry.js +1 -0
  183. package/dist/sankhyablocks/{p-4f7adf97.js → p-b1bf9564.js} +1 -1
  184. package/dist/sankhyablocks/p-b4c2a99c.entry.js +1 -0
  185. package/dist/sankhyablocks/p-b75af274.entry.js +1 -0
  186. package/dist/sankhyablocks/p-c538bd6c.entry.js +1 -0
  187. package/dist/sankhyablocks/{p-3704bf1b.js → p-d5810110.js} +1 -1
  188. package/dist/sankhyablocks/p-d7fd447e.entry.js +1 -0
  189. package/dist/sankhyablocks/p-d88278f8.js +28 -0
  190. package/dist/sankhyablocks/p-f076d742.js +60 -0
  191. package/dist/sankhyablocks/{p-8fe740b7.entry.js → p-f1ef090f.entry.js} +2 -2
  192. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  193. package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +1 -0
  194. package/dist/types/components/snk-data-exporter/interfaces/IExporterProvider.d.ts +8 -0
  195. package/dist/types/components/snk-dynaform/interfaces/PropsCustomEditor.d.ts +4 -0
  196. package/dist/types/components/snk-dynaform/interfaces/PropsCustomRender.d.ts +4 -0
  197. package/dist/types/components/snk-dynaform/subcomponents/CardFormResizeObserver.d.ts +1 -0
  198. package/dist/types/components/snk-dynaform/subcomponents/GuideBuilder.d.ts +14 -0
  199. package/dist/types/components/snk-dynaform/subcomponents/snk-dynaform-detail-view/snk-dynaform-detail-view.d.ts +158 -0
  200. package/dist/types/components/snk-dynaform/subcomponents/snk-dynaform-form-view/snk-dynaform-form-view.d.ts +107 -0
  201. package/dist/types/components/snk-dynaform-form-config/FormConfigHelper.d.ts +36 -0
  202. package/dist/types/components/snk-dynaform-form-config/SnkFormConfigManager.d.ts +35 -0
  203. package/dist/types/components/snk-dynaform-form-config/snk-dynaform-config-header/snk-dynaform-config-header.d.ts +23 -0
  204. package/dist/types/components/snk-dynaform-form-config/snk-dynaform-config-header/snk-dynaform-configs-button/snk-dynaform-configs-button.d.ts +19 -0
  205. package/dist/types/components/snk-dynaform-form-config/snk-dynaform-field-item/snk-dynaform-field-config/snk-dynaform-field-config.d.ts +56 -0
  206. package/dist/types/components/snk-dynaform-form-config/snk-dynaform-fields-layout/snk-dynaform-fields-layout.d.ts +74 -0
  207. package/dist/types/components/snk-dynaform-form-config/snk-dynaform-fields-selector/snk-dynaform-fields-selector.d.ts +21 -0
  208. package/dist/types/components/snk-dynaform-form-config/snk-dynaform-form-config.d.ts +95 -0
  209. package/dist/types/components/snk-dynaform-form-config/snk-dynaform-guides-configurator/snk-dynaform-guides-configurator.d.ts +35 -0
  210. package/dist/types/components.d.ts +2403 -1322
  211. package/dist/types/lib/http/data-fetcher/fetchers/form-config-fetcher.d.ts +1 -0
  212. package/package.json +1 -1
  213. package/react/components.d.ts +12 -0
  214. package/react/components.js +12 -0
  215. package/react/components.js.map +1 -1
  216. package/dist/cjs/SnkMessageBuilder-a9300ebe.js +0 -2833
  217. package/dist/cjs/default-filters-a09bf82b.js +0 -8
  218. package/dist/cjs/index-62760a9c.js +0 -49
  219. package/dist/cjs/index-8d94b7e0.js +0 -7
  220. package/dist/cjs/snk-attach.cjs.entry.js +0 -948
  221. package/dist/cjs/snk-default-filter.cjs.entry.js +0 -77
  222. package/dist/cjs/snk-filter-advanced-mode_3.cjs.entry.js +0 -99
  223. package/dist/cjs/snk-filter-detail.cjs.entry.js +0 -198
  224. package/dist/cjs/snk-filter-field-search_2.cjs.entry.js +0 -408
  225. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +0 -109
  226. package/dist/cjs/snk-image-input.cjs.entry.js +0 -160
  227. package/dist/cjs/snk-personalized-filter.cjs.entry.js +0 -358
  228. package/dist/cjs/snk-simple-crud.cjs.entry.js +0 -865
  229. package/dist/esm/SnkMessageBuilder-1eb7a1af.js +0 -2831
  230. package/dist/esm/default-filters-50105e43.js +0 -8
  231. package/dist/esm/index-620ac460.js +0 -7
  232. package/dist/esm/index-8acbae97.js +0 -49
  233. package/dist/esm/snk-attach.entry.js +0 -944
  234. package/dist/esm/snk-default-filter.entry.js +0 -73
  235. package/dist/esm/snk-filter-advanced-mode_3.entry.js +0 -93
  236. package/dist/esm/snk-filter-detail.entry.js +0 -194
  237. package/dist/esm/snk-filter-field-search_2.entry.js +0 -403
  238. package/dist/esm/snk-filter-modal-item.entry.js +0 -105
  239. package/dist/esm/snk-image-input.entry.js +0 -156
  240. package/dist/esm/snk-personalized-filter.entry.js +0 -354
  241. package/dist/esm/snk-simple-crud.entry.js +0 -861
  242. package/dist/sankhyablocks/p-0afc64df.entry.js +0 -1
  243. package/dist/sankhyablocks/p-10f27dc6.entry.js +0 -1
  244. package/dist/sankhyablocks/p-134702f6.entry.js +0 -1
  245. package/dist/sankhyablocks/p-20f03230.entry.js +0 -1
  246. package/dist/sankhyablocks/p-2af8aca3.js +0 -1
  247. package/dist/sankhyablocks/p-33492640.entry.js +0 -1
  248. package/dist/sankhyablocks/p-3870748a.js +0 -28
  249. package/dist/sankhyablocks/p-438a225f.entry.js +0 -1
  250. package/dist/sankhyablocks/p-4d04bc75.entry.js +0 -1
  251. package/dist/sankhyablocks/p-554c0e54.js +0 -1
  252. package/dist/sankhyablocks/p-68c1a093.js +0 -1
  253. package/dist/sankhyablocks/p-6a4b21dd.js +0 -1
  254. package/dist/sankhyablocks/p-6ae7543b.entry.js +0 -1
  255. package/dist/sankhyablocks/p-6e278003.js +0 -60
  256. package/dist/sankhyablocks/p-82bcb4cf.entry.js +0 -1
  257. package/dist/sankhyablocks/p-84345e7a.js +0 -1
  258. package/dist/sankhyablocks/p-95af0bb1.entry.js +0 -1
  259. package/dist/sankhyablocks/p-95b36bd3.entry.js +0 -1
  260. package/dist/sankhyablocks/p-9e77e136.js +0 -1
  261. package/dist/sankhyablocks/p-a905712a.entry.js +0 -1
  262. package/dist/sankhyablocks/p-aff2d081.entry.js +0 -1
  263. package/dist/sankhyablocks/p-b0a357b4.entry.js +0 -1
  264. package/dist/sankhyablocks/p-b568c1d4.js +0 -1
  265. package/dist/sankhyablocks/p-bab4cde4.entry.js +0 -1
  266. package/dist/sankhyablocks/p-cc64239c.entry.js +0 -1
  267. package/dist/sankhyablocks/p-cd00a3d1.entry.js +0 -1
  268. package/dist/sankhyablocks/p-d9ec8c4b.entry.js +0 -1
  269. package/dist/sankhyablocks/p-e8df1dea.entry.js +0 -1
  270. package/dist/sankhyablocks/p-ef9343c3.entry.js +0 -1
  271. package/dist/sankhyablocks/p-f1bbf065.entry.js +0 -1
  272. package/dist/sankhyablocks/p-f4184ce7.js +0 -1
  273. package/dist/sankhyablocks/p-fec88660.entry.js +0 -1
@@ -2,245 +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 buildNativeTaskbarManager(currentViewMode, mergeTaskbarManager, messagesBuilder) {
122
- var _a, _b;
123
- const CUSTOM_BUTTONS = [
124
- {
125
- name: CustomTaskbarButton.FILTER,
126
- hint: (_a = messagesBuilder === null || messagesBuilder === void 0 ? void 0 : messagesBuilder.getMessage("snkCrud.customButtons.filter")) !== null && _a !== void 0 ? _a : "Abre o painel de filtros",
127
- iconName: "filter",
128
- },
129
- {
130
- name: CustomTaskbarButton.ENTITY_SEARCH,
131
- hint: (_b = messagesBuilder === null || messagesBuilder === void 0 ? void 0 : messagesBuilder.getMessage("snkCrud.customButtons.entitySearch")) !== null && _b !== void 0 ? _b : "Busca na entidade",
132
- iconName: "search",
133
- },
134
- ];
135
- const EDITION_MODE_BUTTONS = [
136
- taskbarElements.TaskbarElement.CANCEL,
137
- taskbarElements.TaskbarElement.SAVE,
138
- ];
139
- return {
140
- getButtons: (taskbarID, dataState, defaultButtons) => {
141
- var _a, _b;
142
- if (!taskbarID) {
143
- console.warn('taskbarID não fornecido');
144
- return [];
145
- }
146
- const isInEditionMode = (dataState === null || dataState === void 0 ? void 0 : dataState.insertionMode) || (dataState === null || dataState === void 0 ? void 0 : dataState.isDirty);
147
- if (isInEditionMode) {
148
- return EDITION_MODE_BUTTONS;
149
- }
150
- if (currentViewMode === constants.VIEW_MODE.FORM) {
151
- const indexFormMode = defaultButtons.indexOf(taskbarElements.TaskbarElement.FORM_MODE);
152
- if (indexFormMode > -1) {
153
- defaultButtons = [
154
- ...defaultButtons.slice(0, indexFormMode),
155
- taskbarElements.TaskbarElement.GRID_MODE,
156
- ...defaultButtons.slice(indexFormMode + 1)
157
- ];
158
- }
159
- }
160
- 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) {
161
- const indexUpdate = defaultButtons.indexOf(taskbarElements.TaskbarElement.UPDATE);
162
- if (indexUpdate > -1) {
163
- defaultButtons = [
164
- ...defaultButtons.slice(0, indexUpdate),
165
- taskbarElements.TaskbarElement.UPDATE_MULTIPLE,
166
- ...defaultButtons.slice(indexUpdate + 1)
167
- ];
168
- }
169
- }
170
- const defaultsWithCustomButtons = insertCustomButtonsBeforeSpacer(defaultButtons, CUSTOM_BUTTONS);
171
- if (mergeTaskbarManager === null || mergeTaskbarManager === void 0 ? void 0 : mergeTaskbarManager.getButtons) {
172
- return mergeTaskbarManager.getButtons(taskbarID, dataState, defaultsWithCustomButtons);
173
- }
174
- return defaultsWithCustomButtons;
175
- },
176
- isEnabled: (_, dataState, buttonName, originalValue) => {
177
- var _a;
178
- if (!dataState) {
179
- return originalValue;
180
- }
181
- const hasSelectedRecord = dataState.selectedRecord !== undefined;
182
- const buttonsRequiringSelection = [
183
- taskbarElements.TaskbarElement.UPDATE,
184
- taskbarElements.TaskbarElement.REMOVE,
185
- taskbarElements.TaskbarElement.ATTACH,
186
- taskbarElements.TaskbarElement.CLONE,
187
- ];
188
- if (!hasSelectedRecord && buttonsRequiringSelection.includes(buttonName)) {
189
- return false;
190
- }
191
- return (_a = mergeTaskbarManager === null || mergeTaskbarManager === void 0 ? void 0 : mergeTaskbarManager.isEnabled(_, dataState, buttonName, originalValue)) !== null && _a !== void 0 ? _a : originalValue;
192
- },
193
- getMoreOptions(taskbarId, configName, dataState, currentActions) {
194
- var _a;
195
- return (_a = mergeTaskbarManager === null || mergeTaskbarManager === void 0 ? void 0 : mergeTaskbarManager.getMoreOptions) === null || _a === void 0 ? void 0 : _a.call(mergeTaskbarManager, taskbarId, configName, dataState, currentActions);
196
- },
197
- };
198
- }
199
- function getHeaderTaskbarId(dataState, presentationMode) {
200
- var _a;
201
- const hasSelectedRecord = dataState && !!((_a = dataState.selectionInfo) === null || _a === void 0 ? void 0 : _a.length);
202
- const taskbarIdPrefixLookup = {
203
- primary: "snkGridHeaderTaskbar",
204
- secondary: "snkGridHeaderTaskbar",
205
- singleTaskbar: "snkGridHeaderTaskbar.singleTaskbar",
206
- };
207
- const taskbarIdPrefix = taskbarIdPrefixLookup[presentationMode];
208
- let headerTaskbarId = hasSelectedRecord ? `${taskbarIdPrefix}.selected` : `${taskbarIdPrefix}.unselected`;
209
- if ((dataState === null || dataState === void 0 ? void 0 : dataState.isDirty) && presentationMode === index.PresentationMode.SINGLE_TASKBAR) {
210
- headerTaskbarId = "snkGridHeaderTaskbar.singleTaskbar.finish_edition";
211
- }
212
- return headerTaskbarId;
213
- }
214
- function getTopTaskBarId(dataState, presentationMode) {
215
- const suffixLookup = {
216
- primary: '',
217
- secondary: '.secondary',
218
- singleTaskbar: '.singleTaskbar',
219
- };
220
- const sufix = suffixLookup[presentationMode];
221
- if (dataState === null || dataState === void 0 ? void 0 : dataState.isDirty) {
222
- return `snkGridTopTaskbar.finish_edition${sufix}`;
223
- }
224
- return `snkGridTopTaskbar.regular${sufix}`;
225
- }
226
-
227
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)}";
228
30
 
229
31
  const SnkCrud = class {
230
32
  constructor(hostRef) {
231
- index$1.registerInstance(this, hostRef);
232
- this.snkShowGuide = index$1.createEvent(this, "snkShowGuide", 7);
233
- this.actionClick = index$1.createEvent(this, "actionClick", 7);
234
- this.configuratorSave = index$1.createEvent(this, "configuratorSave", 7);
235
- this.configuratorCancel = index$1.createEvent(this, "configuratorCancel", 7);
236
- this.formItemsReady = index$1.createEvent(this, "formItemsReady", 7);
237
- this.viewModeChanged = index$1.createEvent(this, "viewModeChanged", 7);
238
- 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);
239
41
  this._viewHistory = [];
240
42
  this._customEditors = new Map();
241
43
  this._customRenders = new Map();
242
- this._taskbarProcessor = new SimpleTaskbarProcessor(DEFAULT_TASKBAR_BUTTONS);
243
- this._taskbarCustomProcessor = new SimpleTaskbarProcessor([]);
44
+ this._taskbarProcessor = new taskbarUtils.SimpleTaskbarProcessor(taskbarUtils.DEFAULT_TASKBAR_BUTTONS);
45
+ this._taskbarCustomProcessor = new taskbarUtils.SimpleTaskbarProcessor([]);
244
46
  this.dataUnitInterceptor = {
245
47
  interceptAction: async (action) => {
246
48
  switch (action.type) {
@@ -275,7 +77,7 @@ const SnkCrud = class {
275
77
  this.recordsValidator = undefined;
276
78
  this.statusResolver = undefined;
277
79
  this.multipleSelection = true;
278
- this.presentationMode = index.PresentationMode.PRIMARY;
80
+ this.presentationMode = index$1.PresentationMode.PRIMARY;
279
81
  this.messagesBuilder = undefined;
280
82
  this.useEnterLikeTab = false;
281
83
  this.gridLegacyConfigName = undefined;
@@ -288,7 +90,7 @@ const SnkCrud = class {
288
90
  this.domainMessagesBuilder = undefined;
289
91
  this.ignoreReadOnlyFormFields = undefined;
290
92
  this.setCustomFormTitle = undefined;
291
- this.strategyExporter = index.ExporterStrategy.SERVER_SIDE;
93
+ this.strategyExporter = index$1.ExporterStrategy.SERVER_SIDE;
292
94
  this.layoutFormConfig = true;
293
95
  this.multipleEditionEnabled = true;
294
96
  this.paginationCounterMode = 'auto';
@@ -410,9 +212,9 @@ const SnkCrud = class {
410
212
  return this._snkConfigurator.open();
411
213
  case taskbarElements.TaskbarElement.ATTACH:
412
214
  return this._snkAttach.open();
413
- case CustomTaskbarButton.FILTER:
215
+ case taskbarUtils.CustomTaskbarButton.FILTER:
414
216
  return (_a = this._snkFilterBar) === null || _a === void 0 ? void 0 : _a.showFilterModal();
415
- case CustomTaskbarButton.ENTITY_SEARCH:
217
+ case taskbarUtils.CustomTaskbarButton.ENTITY_SEARCH:
416
218
  return this.openSearchPopover();
417
219
  }
418
220
  }
@@ -478,10 +280,10 @@ const SnkCrud = class {
478
280
  }
479
281
  }
480
282
  initializeTaskbarProcessor() {
481
- const nativeTaskbarManager = buildNativeTaskbarManager(this._currentViewMode, this.taskbarManager, this.messagesBuilder);
482
- 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);
483
285
  this._taskbarProcessor.process(topTaskbarId, nativeTaskbarManager, this._dataState, undefined, []);
484
- const headerTaskbarId = getHeaderTaskbarId(this._dataState, this.presentationMode);
286
+ const headerTaskbarId = taskbarUtils.getHeaderTaskbarId(this._dataState, this.presentationMode);
485
287
  this._taskbarCustomProcessor.process(headerTaskbarId, this.taskbarManager, this._dataState, undefined, []);
486
288
  }
487
289
  componentWillRender() {
@@ -730,7 +532,7 @@ const SnkCrud = class {
730
532
  renderCustomGuideSlots() {
731
533
  if (!this.customGuidesConfig)
732
534
  return;
733
- return this.customGuidesConfig.map(g => index$1.h("slot", { name: g.id }));
535
+ return this.customGuidesConfig.map(g => index.h("slot", { name: g.id }));
734
536
  }
735
537
  getColumnSearch(item) {
736
538
  if (this._columnSearch != undefined) {
@@ -775,7 +577,7 @@ const SnkCrud = class {
775
577
  if (this.isGridInsertActive())
776
578
  return hardList;
777
579
  if (this.taskbarManager != undefined && this.taskbarManager.getMoreOptions != undefined) {
778
- const taskbarID = getTopTaskBarId(this._dataState, this.presentationMode);
580
+ const taskbarID = taskbarUtils.getTopTaskBarId(this._dataState, this.presentationMode);
779
581
  return hardList.concat(this.taskbarManager.getMoreOptions(taskbarID, this.configName, this._dataState, this.actionsList));
780
582
  }
781
583
  return hardList.concat(this.actionsList);
@@ -784,7 +586,7 @@ const SnkCrud = class {
784
586
  if (!this._popoverSearchEntity) {
785
587
  return;
786
588
  }
787
- const buttonElement = this._element.querySelector(`[data-taskbar-element="${CustomTaskbarButton.ENTITY_SEARCH}"]`);
589
+ const buttonElement = this._element.querySelector(`[data-taskbar-element="${taskbarUtils.CustomTaskbarButton.ENTITY_SEARCH}"]`);
788
590
  await this._popoverSearchEntity.showUnder(buttonElement);
789
591
  }
790
592
  handleLoadedSearch(evt) {
@@ -797,7 +599,7 @@ const SnkCrud = class {
797
599
  var _a;
798
600
  if (!this.showEntitySearch)
799
601
  return;
800
- 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) }));
801
603
  }
802
604
  handleFilterConfigUpdated(filterConfig) {
803
605
  if (!filterConfig.length) {
@@ -813,9 +615,9 @@ const SnkCrud = class {
813
615
  return;
814
616
  }
815
617
  this._snkDataUnit.ignoreSaveMessage = (this._currentViewMode === constants.VIEW_MODE.GRID && !this.enableGridInsert);
816
- 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" }))));
817
619
  }
818
- get _element() { return index$1.getElement(this); }
620
+ get _element() { return index.getElement(this); }
819
621
  static get watchers() { return {
820
622
  "_currentViewMode": ["currentViewModeWatcher"]
821
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-b4ca3437.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() {
@@ -76,7 +75,7 @@ class GuideBuilder {
76
75
  }
77
76
  }
78
77
 
79
- const snkDetailViewCss = ".sc-snk-detail-view-h{display:flex;row-gap:24px;flex-direction:column;width:100%;height:100%}.level-path.sc-snk-detail-view{color:var(--color--title-primary, #2B3A54);font-weight:var(--text-weight--medium, 400);padding-right:3px}.form-taskbar.sc-snk-detail-view{padding-bottom:var(--space--medium)}.grid-container.sc-snk-detail-view{background-color:#FFF;min-height:100px;height:100%}.detail-header.sc-snk-detail-view{padding-bottom:0}snk-data-unit.sc-snk-detail-view{flex:1}snk-grid.sc-snk-detail-view{height:calc(100% - 43px)}";
78
+ const snkDetailViewCss = ".sc-snk-detail-view-h{display:flex;row-gap:24px;flex-direction:column;width:100%;height:100%}.level-path.sc-snk-detail-view{color:var(--color--title-primary, #2B3A54);font-weight:var(--text-weight--medium, 400);padding-right:3px}.form-taskbar.sc-snk-detail-view{padding-bottom:var(--space--medium)}.grid-container.sc-snk-detail-view{background-color:#FFF;min-height:100px;height:100%}.detail-header.sc-snk-detail-view{padding-bottom:0}snk-data-unit.sc-snk-detail-view{flex:1}snk-grid.sc-snk-detail-view{height:calc(100% - 56px);--snk-grid__header-padding:var(--space--4, 4px);--snk-grid-padding:var(--space--8, 8px);--snk-grid-box-shadow:unset}";
80
79
 
81
80
  const SnkDetailView = class {
82
81
  constructor(hostRef) {
@@ -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() {
@@ -324,6 +323,12 @@ const SnkDetailView = class {
324
323
  this.addErrorBadgeToBranchGuide();
325
324
  }
326
325
  else if (action.type === core.Action.DATA_LOADED) {
326
+ this.handleDataLoaded();
327
+ }
328
+ }
329
+ handleDataLoaded() {
330
+ var _a;
331
+ if (!((_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getSelectedRecord())) {
327
332
  this.dataUnit.selectFirst();
328
333
  }
329
334
  }