@sankhyalabs/sankhyablocks 8.16.0-dev.4 → 8.16.0-dev.40

Sign up to get free protection for your applications and to get access to all the features.
Files changed (256) hide show
  1. package/dist/cjs/{ConfigStorage-942ce74b.js → ConfigStorage-ecc0ed20.js} +3 -2
  2. package/dist/cjs/{IExporterProvider-597949f9.js → ContinuousInsertUtils-c7e35e3b.js} +39 -6
  3. package/dist/cjs/{DataFetcher-313debd8.js → DataFetcher-cadeef8e.js} +21 -15
  4. package/dist/cjs/{RecordIDUtils-3735135c.js → GetSelectedRecordsIDsInfo-bd50caf1.js} +10 -10
  5. package/dist/cjs/{SnkFormConfigManager-1b13bacd.js → SnkFormConfigManager-f1c92f79.js} +74 -20
  6. package/dist/cjs/{SnkMessageBuilder-722b104e.js → SnkMessageBuilder-bae64d0d.js} +7 -3
  7. package/dist/cjs/{auth-fetcher-54f5ff9d.js → auth-fetcher-d68841bc.js} +1 -1
  8. package/dist/cjs/{dataunit-fetcher-688d3f05.js → dataunit-fetcher-a36ae041.js} +48 -20
  9. package/dist/cjs/{field-search-f56aa7d6.js → field-search-68e34bf4.js} +5 -1
  10. package/dist/cjs/{form-config-fetcher-2dd00e5b.js → form-config-fetcher-ed497282.js} +5 -2
  11. package/dist/cjs/index-f9e81701.js +8 -28
  12. package/dist/cjs/loader.cjs.js +1 -1
  13. package/dist/cjs/{pesquisa-fetcher-680e198f.js → pesquisa-fetcher-490a86c3.js} +7 -2
  14. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  15. package/dist/cjs/snk-actions-button_4.cjs.entry.js +17 -14
  16. package/dist/cjs/snk-application.cjs.entry.js +7 -7
  17. package/dist/cjs/snk-attach.cjs.entry.js +38 -29
  18. package/dist/cjs/{snk-form-config.cjs.entry.js → snk-config-options_3.cjs.entry.js} +381 -7
  19. package/dist/cjs/snk-crud.cjs.entry.js +16 -7
  20. package/dist/cjs/snk-data-exporter.cjs.entry.js +19 -18
  21. package/dist/cjs/{snk-data-unit-685272e7.js → snk-data-unit-b460f1da.js} +42 -22
  22. package/dist/cjs/snk-data-unit.cjs.entry.js +5 -5
  23. package/dist/cjs/snk-detail-view.cjs.entry.js +12 -13
  24. package/dist/cjs/snk-exporter-email-sender.cjs.entry.js +1 -1
  25. package/dist/cjs/snk-filter-bar_4.cjs.entry.js +1411 -0
  26. package/dist/cjs/snk-filter-binary-select.cjs.entry.js +1 -1
  27. package/dist/cjs/snk-filter-checkbox-list.cjs.entry.js +1 -1
  28. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
  29. package/dist/cjs/snk-grid.cjs.entry.js +58 -21
  30. package/dist/cjs/{snk-guides-viewer-67605336.js → snk-guides-viewer-de0a5c57.js} +27 -14
  31. package/dist/cjs/snk-guides-viewer.cjs.entry.js +9 -9
  32. package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js +1 -1
  33. package/dist/cjs/snk-personalized-filter.cjs.entry.js +3 -3
  34. package/dist/cjs/snk-print-selector.cjs.entry.js +1 -1
  35. package/dist/cjs/snk-simple-bar.cjs.entry.js +1 -1
  36. package/dist/cjs/snk-simple-crud.cjs.entry.js +66 -27
  37. package/dist/cjs/snk-taskbar.cjs.entry.js +24 -1
  38. package/dist/collection/collection-manifest.json +11 -31
  39. package/dist/collection/components/snk-actions-button/actions/index.js +12 -9
  40. package/dist/collection/components/snk-attach/snk-attach.js +25 -16
  41. package/dist/collection/components/snk-attach/structure/fetcher/factory/attach-fetcher-data-unit.factory.js +2 -4
  42. package/dist/collection/components/snk-crud/snk-crud.js +97 -2
  43. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +3 -4
  44. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.css +6 -6
  45. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +70 -7
  46. package/dist/collection/components/snk-data-exporter/exporter-email-sender/options-step.js +1 -1
  47. package/dist/collection/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.js +4 -4
  48. package/dist/collection/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.js +5 -5
  49. package/dist/collection/components/snk-data-exporter/providers/ClientSideExporterProvider.js +1 -1
  50. package/dist/collection/components/snk-data-exporter/providers/ServerSideExporterProvider.js +1 -1
  51. package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +2 -2
  52. package/dist/collection/components/snk-data-exporter/structure/ItemBuilder.js +2 -2
  53. package/dist/collection/components/snk-data-exporter/test/resources/ClientSideExporterStrategyResources.js +4 -4
  54. package/dist/collection/components/snk-data-unit/snk-data-unit.js +57 -20
  55. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.js +1 -1
  56. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-checkbox-list.js +1 -1
  57. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.js +1 -1
  58. package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +1 -1
  59. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +59 -21
  60. package/dist/collection/components/snk-form/snk-form.js +2 -2
  61. package/dist/collection/components/snk-form-config/SnkFormConfigManager.js +72 -18
  62. package/dist/collection/components/snk-form-config/snk-form-config.css +8 -3
  63. package/dist/collection/components/snk-form-config/snk-form-config.js +32 -3
  64. package/dist/collection/components/snk-grid/snk-grid.css +2 -0
  65. package/dist/collection/components/snk-grid/snk-grid.js +74 -8
  66. package/dist/collection/components/snk-print-selector/snk-print-selector.js +1 -1
  67. package/dist/collection/components/snk-simple-bar/snk-simple-bar.js +1 -1
  68. package/dist/collection/components/snk-simple-crud/snk-simple-crud.css +0 -1
  69. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +91 -16
  70. package/dist/collection/components/snk-taskbar/processor/taskbar-processor.js +5 -1
  71. package/dist/collection/components/snk-taskbar/snk-taskbar.js +65 -0
  72. package/dist/collection/lib/DefaultCustomFormatters/RmPrecisionCustomValueFormatter.js +3 -3
  73. package/dist/collection/lib/configs/ConfigStorage.js +1 -0
  74. package/dist/collection/lib/dataUnit/InMemoryLoader.js +2 -4
  75. package/dist/collection/lib/dataUnit/dataUnitInMemoryUtils.js +34 -9
  76. package/dist/collection/lib/http/data-fetcher/DataFetcher.js +22 -16
  77. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/anexo-sistema-fetcher.js +7 -5
  78. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/DataUnitDataLoader.js +2 -2
  79. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js +9 -2
  80. package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +4 -1
  81. package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +6 -1
  82. package/dist/collection/lib/message/resources/snk-data-unit.msg.js +1 -1
  83. package/dist/collection/lib/message/resources/snk-exporter.msg.js +1 -1
  84. package/dist/collection/lib/message/resources/snk-grid.msg.js +5 -1
  85. package/dist/collection/lib/utils/ContinuousInsertUtils.js +31 -0
  86. package/dist/collection/{components/snk-data-exporter/utils/RecordIDUtils.js → lib/utils/GetSelectedRecordsIDsInfo.js} +9 -9
  87. package/dist/collection/sw.js +46 -0
  88. package/dist/components/ConfigStorage.js +1 -0
  89. package/dist/components/{IExporterProvider.js → ContinuousInsertUtils.js} +40 -5
  90. package/dist/components/DataFetcher.js +22 -16
  91. package/dist/{esm/RecordIDUtils-87d02110.js → components/GetSelectedRecordsIDsInfo.js} +10 -10
  92. package/dist/components/SnkFormConfigManager.js +72 -18
  93. package/dist/components/SnkMessageBuilder.js +7 -3
  94. package/dist/components/dataunit-fetcher.js +47 -17
  95. package/dist/components/form-config-fetcher.js +4 -1
  96. package/dist/components/pesquisa-fetcher.js +6 -1
  97. package/dist/components/snk-actions-button2.js +12 -9
  98. package/dist/components/snk-attach2.js +34 -25
  99. package/dist/components/snk-crud.js +15 -2
  100. package/dist/components/snk-data-exporter2.js +12 -11
  101. package/dist/components/snk-data-unit2.js +44 -60
  102. package/dist/components/snk-detail-view2.js +28 -13
  103. package/dist/components/snk-exporter-email-sender2.js +1 -1
  104. package/dist/components/snk-filter-bar2.js +35 -22
  105. package/dist/components/snk-filter-binary-select.js +1 -1
  106. package/dist/components/snk-filter-checkbox-list.js +1 -1
  107. package/dist/components/snk-form-config2.js +17 -4
  108. package/dist/components/snk-form.js +2 -2
  109. package/dist/components/snk-grid2.js +51 -12
  110. package/dist/components/snk-personalized-filter-editor.js +1 -1
  111. package/dist/components/snk-print-selector.js +1 -1
  112. package/dist/components/snk-simple-bar2.js +1 -1
  113. package/dist/components/snk-simple-crud2.js +59 -16
  114. package/dist/components/snk-taskbar2.js +25 -2
  115. package/dist/esm/{ConfigStorage-86187da3.js → ConfigStorage-7b36d041.js} +3 -2
  116. package/dist/esm/{IExporterProvider-63a188b6.js → ContinuousInsertUtils-3e520a07.js} +40 -8
  117. package/dist/esm/{DataFetcher-c1baf61d.js → DataFetcher-a9c598f2.js} +22 -16
  118. package/dist/esm/GetSelectedRecordsIDsInfo-9fa41508.js +41 -0
  119. package/dist/esm/{SnkFormConfigManager-d4554df9.js → SnkFormConfigManager-f1a0fc92.js} +74 -20
  120. package/dist/esm/{SnkMessageBuilder-89925609.js → SnkMessageBuilder-6fff4a4c.js} +7 -3
  121. package/dist/esm/{auth-fetcher-039abba3.js → auth-fetcher-749d880f.js} +1 -1
  122. package/dist/esm/{constants-8457af36.js → constants-7302ee87.js} +1 -1
  123. package/dist/esm/{dataunit-fetcher-264191b2.js → dataunit-fetcher-fd58c640.js} +48 -18
  124. package/dist/esm/{field-search-efbe307f.js → field-search-f8b1d91e.js} +5 -1
  125. package/dist/esm/{form-config-fetcher-30fb808f.js → form-config-fetcher-adbe5d34.js} +5 -2
  126. package/dist/esm/index-a7d3d3f1.js +8 -28
  127. package/dist/esm/loader.js +1 -1
  128. package/dist/esm/{pesquisa-fetcher-03c8f919.js → pesquisa-fetcher-50fc7e6b.js} +7 -2
  129. package/dist/esm/sankhyablocks.js +1 -1
  130. package/dist/esm/snk-actions-button_4.entry.js +18 -15
  131. package/dist/esm/snk-application.entry.js +7 -7
  132. package/dist/esm/snk-attach.entry.js +39 -30
  133. package/dist/esm/{snk-form-config.entry.js → snk-config-options_3.entry.js} +382 -10
  134. package/dist/esm/snk-configurator.entry.js +1 -1
  135. package/dist/esm/snk-crud.entry.js +17 -8
  136. package/dist/esm/snk-data-exporter.entry.js +20 -19
  137. package/dist/esm/{snk-data-unit-63f83504.js → snk-data-unit-590225b5.js} +42 -22
  138. package/dist/esm/snk-data-unit.entry.js +5 -5
  139. package/dist/esm/snk-detail-view.entry.js +13 -14
  140. package/dist/esm/snk-exporter-email-sender.entry.js +1 -1
  141. package/dist/esm/snk-field-config.entry.js +1 -1
  142. package/dist/esm/snk-filter-bar_4.entry.js +1404 -0
  143. package/dist/esm/snk-filter-binary-select.entry.js +1 -1
  144. package/dist/esm/snk-filter-checkbox-list.entry.js +1 -1
  145. package/dist/esm/snk-filter-modal-item.entry.js +3 -3
  146. package/dist/esm/snk-grid.entry.js +53 -16
  147. package/dist/esm/{snk-guides-viewer-151f6091.js → snk-guides-viewer-2f4dcdc5.js} +28 -15
  148. package/dist/esm/snk-guides-viewer.entry.js +9 -9
  149. package/dist/esm/snk-personalized-filter-editor.entry.js +1 -1
  150. package/dist/esm/snk-personalized-filter.entry.js +3 -3
  151. package/dist/esm/snk-print-selector.entry.js +1 -1
  152. package/dist/esm/snk-simple-bar.entry.js +1 -1
  153. package/dist/esm/snk-simple-crud.entry.js +63 -24
  154. package/dist/esm/snk-tab-config.entry.js +1 -1
  155. package/dist/esm/snk-taskbar.entry.js +24 -1
  156. package/dist/sankhyablocks/p-052213ba.entry.js +1 -0
  157. package/dist/sankhyablocks/{p-df5451c7.js → p-06421fdb.js} +2 -2
  158. package/dist/sankhyablocks/p-0b6cd238.entry.js +1 -0
  159. package/dist/sankhyablocks/p-0e320bd2.entry.js +1 -0
  160. package/dist/sankhyablocks/p-16a1dd18.entry.js +1 -0
  161. package/dist/sankhyablocks/p-17425c72.js +1 -0
  162. package/dist/sankhyablocks/{p-a1d72395.entry.js → p-212213d9.entry.js} +1 -1
  163. package/dist/sankhyablocks/p-23736d75.js +1 -0
  164. package/dist/sankhyablocks/p-275de842.entry.js +1 -0
  165. package/dist/sankhyablocks/p-2aae03a1.entry.js +1 -0
  166. package/dist/sankhyablocks/{p-8eb67fa4.entry.js → p-2d3f9482.entry.js} +1 -1
  167. package/dist/sankhyablocks/{p-7663f597.entry.js → p-41793e17.entry.js} +1 -1
  168. package/dist/sankhyablocks/{p-72fc257b.entry.js → p-434817f0.entry.js} +1 -1
  169. package/dist/sankhyablocks/p-47bce500.js +60 -0
  170. package/dist/sankhyablocks/{p-aff76a53.js → p-4d9549cf.js} +2 -2
  171. package/dist/sankhyablocks/p-583517ba.entry.js +1 -0
  172. package/dist/sankhyablocks/p-5b51491f.entry.js +1 -0
  173. package/dist/sankhyablocks/p-5e51e833.entry.js +1 -0
  174. package/dist/sankhyablocks/{p-aaa3ee68.entry.js → p-5f157b09.entry.js} +1 -1
  175. package/dist/sankhyablocks/p-656f0e51.entry.js +1 -0
  176. package/dist/sankhyablocks/p-72c10005.entry.js +1 -0
  177. package/dist/sankhyablocks/p-7bd9683d.js +1 -0
  178. package/dist/sankhyablocks/p-7dd49d15.js +1 -0
  179. package/dist/sankhyablocks/{p-af8efd95.js → p-8a9638ae.js} +2 -2
  180. package/dist/sankhyablocks/{p-95df461f.entry.js → p-8b4fc28f.entry.js} +1 -1
  181. package/dist/sankhyablocks/{p-41f8bfa3.entry.js → p-8c235d4c.entry.js} +1 -1
  182. package/dist/sankhyablocks/{p-b0ef4383.js → p-95ce311a.js} +1 -1
  183. package/dist/sankhyablocks/p-9f9b99d9.js +1 -0
  184. package/dist/sankhyablocks/p-ab1645fb.entry.js +1 -0
  185. package/dist/sankhyablocks/p-c2e468c9.entry.js +1 -0
  186. package/dist/sankhyablocks/{p-913a9979.js → p-ca5ec380.js} +1 -1
  187. package/dist/sankhyablocks/p-cefb0ee1.entry.js +1 -0
  188. package/dist/sankhyablocks/{p-82a0bfb0.entry.js → p-dbe6174a.entry.js} +2 -2
  189. package/dist/sankhyablocks/p-f3434fc4.js +1 -0
  190. package/dist/sankhyablocks/p-fa6c5826.entry.js +1 -0
  191. package/dist/sankhyablocks/p-fadc8339.js +1 -0
  192. package/dist/sankhyablocks/{p-eae7a817.entry.js → p-fb34e0cf.entry.js} +1 -1
  193. package/dist/sankhyablocks/p-fd13b4d2.js +1 -0
  194. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  195. package/dist/types/components/snk-actions-button/actions/index.d.ts +1 -0
  196. package/dist/types/components/snk-attach/snk-attach.d.ts +1 -0
  197. package/dist/types/components/snk-crud/snk-crud.d.ts +17 -0
  198. package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +15 -0
  199. package/dist/types/components/snk-data-exporter/test/resources/ClientSideExporterStrategyResources.d.ts +3 -3
  200. package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +7 -0
  201. package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +5 -0
  202. package/dist/types/components/snk-form-config/SnkFormConfigManager.d.ts +9 -4
  203. package/dist/types/components/snk-form-config/snk-form-config.d.ts +4 -0
  204. package/dist/types/components/snk-grid/snk-grid.d.ts +11 -0
  205. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +13 -0
  206. package/dist/types/components/snk-taskbar/processor/taskbar-processor.d.ts +1 -0
  207. package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +11 -0
  208. package/dist/types/components.d.ts +113 -0
  209. package/dist/types/lib/dataUnit/dataUnitInMemoryUtils.d.ts +12 -2
  210. package/dist/types/lib/http/data-fetcher/fetchers/AttachFetcher/anexo-sistema-fetcher.d.ts +3 -2
  211. package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterParams.d.ts +1 -1
  212. package/dist/types/lib/utils/ContinuousInsertUtils.d.ts +10 -0
  213. package/dist/types/lib/utils/GetSelectedRecordsIDsInfo.d.ts +3 -0
  214. package/package.json +4 -3
  215. package/dist/cjs/snk-config-options.cjs.entry.js +0 -239
  216. package/dist/cjs/snk-filter-bar.cjs.entry.js +0 -714
  217. package/dist/cjs/snk-filter-item.cjs.entry.js +0 -312
  218. package/dist/cjs/snk-filter-list.cjs.entry.js +0 -152
  219. package/dist/cjs/snk-filter-modal.cjs.entry.js +0 -249
  220. package/dist/cjs/snk-form.cjs.entry.js +0 -143
  221. package/dist/esm/snk-config-options.entry.js +0 -235
  222. package/dist/esm/snk-filter-bar.entry.js +0 -710
  223. package/dist/esm/snk-filter-item.entry.js +0 -308
  224. package/dist/esm/snk-filter-list.entry.js +0 -148
  225. package/dist/esm/snk-filter-modal.entry.js +0 -245
  226. package/dist/esm/snk-form.entry.js +0 -139
  227. package/dist/sankhyablocks/p-14a08904.entry.js +0 -1
  228. package/dist/sankhyablocks/p-14b9f964.entry.js +0 -1
  229. package/dist/sankhyablocks/p-219f888d.entry.js +0 -1
  230. package/dist/sankhyablocks/p-3a212712.js +0 -1
  231. package/dist/sankhyablocks/p-3a216b81.entry.js +0 -1
  232. package/dist/sankhyablocks/p-3b60db06.entry.js +0 -1
  233. package/dist/sankhyablocks/p-47b60deb.entry.js +0 -1
  234. package/dist/sankhyablocks/p-70a4af56.entry.js +0 -1
  235. package/dist/sankhyablocks/p-7505da04.entry.js +0 -1
  236. package/dist/sankhyablocks/p-75f83d1d.entry.js +0 -1
  237. package/dist/sankhyablocks/p-7a337364.js +0 -1
  238. package/dist/sankhyablocks/p-829d4045.js +0 -1
  239. package/dist/sankhyablocks/p-88aa931b.entry.js +0 -1
  240. package/dist/sankhyablocks/p-8fc470e5.entry.js +0 -1
  241. package/dist/sankhyablocks/p-941bf3ef.entry.js +0 -1
  242. package/dist/sankhyablocks/p-9863d682.js +0 -1
  243. package/dist/sankhyablocks/p-b11aa1e0.entry.js +0 -1
  244. package/dist/sankhyablocks/p-b4b21558.entry.js +0 -1
  245. package/dist/sankhyablocks/p-bad55caa.entry.js +0 -1
  246. package/dist/sankhyablocks/p-c053256c.entry.js +0 -1
  247. package/dist/sankhyablocks/p-c2495304.js +0 -1
  248. package/dist/sankhyablocks/p-c5268346.entry.js +0 -1
  249. package/dist/sankhyablocks/p-cefba299.js +0 -1
  250. package/dist/sankhyablocks/p-d3f53df2.entry.js +0 -1
  251. package/dist/sankhyablocks/p-dc7c9047.js +0 -1
  252. package/dist/sankhyablocks/p-e8763234.entry.js +0 -1
  253. package/dist/sankhyablocks/p-f2809746.entry.js +0 -1
  254. package/dist/sankhyablocks/p-fcac4dfc.js +0 -1
  255. package/dist/sankhyablocks/p-fe79f83a.js +0 -60
  256. package/dist/types/components/snk-data-exporter/utils/RecordIDUtils.d.ts +0 -3
@@ -45,6 +45,7 @@ export declare class SnkAttach {
45
45
  */
46
46
  back: EventEmitter<void>;
47
47
  registerKeyWatcher(newRegisterKey: string, oldRegisterKey: string): Promise<void>;
48
+ private getAnexoSistemaFetcherInstance;
48
49
  private initAttach;
49
50
  /**
50
51
  * Conforme mecanismo de mensagens, é possível customizar as mensagens dos blocos de construção
@@ -104,6 +104,22 @@ export declare class SnkCrud {
104
104
  * Define se a grid será focada ao ser carregada.
105
105
  */
106
106
  autoFocus?: boolean;
107
+ /**
108
+ * Ativa inserção de registros no modo grade.
109
+ */
110
+ enableGridInsert?: boolean;
111
+ /**
112
+ * Define a chave customizada para sobrescrever as mensagens (Não pegando pela entidade)
113
+ */
114
+ domainMessagesBuilder: string;
115
+ /**
116
+ * Ignora os campos "somente leitura" no modo de inserção.
117
+ */
118
+ ignoreReadOnlyFormFields?: boolean;
119
+ /**
120
+ * Define uma função para configurar um título cusotmizado no modo formulário.
121
+ */
122
+ setCustomFormTitle: () => string;
107
123
  customContainerId: string;
108
124
  /**
109
125
  * Emitido pela taskbar sempre que houver click de botão ou ação.
@@ -121,6 +137,7 @@ export declare class SnkCrud {
121
137
  * Responsável por notificar quando ocorrer a renderização de itens do formulário.
122
138
  */
123
139
  formItemsReady: EventEmitter<Array<HTMLElement>>;
140
+ viewModeChanged: EventEmitter<VIEW_MODE>;
124
141
  /**
125
142
  * Usado para alternar a visão entre GRID e FORM externamente.
126
143
  */
@@ -85,6 +85,18 @@ export declare class SnkGuidesViewer {
85
85
  * Chave da configuração legado do formulário.
86
86
  */
87
87
  formLegacyConfigName: string;
88
+ /**
89
+ * Ativa inserção de registros no modo grade.
90
+ */
91
+ enableGridInsert?: boolean;
92
+ /**
93
+ * Ignora os campos "somente leitura" no modo de inserção.
94
+ */
95
+ ignoreReadOnlyFormFields?: boolean;
96
+ /**
97
+ * Fornece uma função para obter um título customizado do formulário.
98
+ */
99
+ getCustomTitle: () => string;
88
100
  _hasToCreateFieldSearch: boolean;
89
101
  _breadcrumbItems: Array<IBreadcrumbItem>;
90
102
  _guides: Array<IGuideItem>;
@@ -154,6 +166,7 @@ export declare class SnkGuidesViewer {
154
166
  private updateGuide;
155
167
  private getTaskBarId;
156
168
  private loadTaskbarProcessor;
169
+ private handleAddGridMode;
157
170
  private getInvisibleButtons;
158
171
  static updateContentCard(formName: string, cardConfig: IFormCardConfig, propertyChanged: string, configManager: SnkFormConfigManager): Promise<Map<string, IFormCardConfig>>;
159
172
  static buildFixedForms(params: BuildFixedFormParams): Array<VNode>;
@@ -174,6 +187,7 @@ export declare class SnkGuidesViewer {
174
187
  private openConfig;
175
188
  private noGuideSelected;
176
189
  private addFormLegacyConfigName;
190
+ private setMasterFormConfig;
177
191
  componentWillLoad(): void;
178
192
  componentDidRender(): void;
179
193
  private getFieldsSearch;
@@ -186,6 +200,7 @@ export declare class SnkGuidesViewer {
186
200
  private openGuideNavigator;
187
201
  private getBadge;
188
202
  private getGuideName;
203
+ private getTitle;
189
204
  componentDidLoad(): void;
190
205
  render(): any;
191
206
  }
@@ -40,16 +40,16 @@ export declare const serviceNamePDF = "GridPDFBuilderSP.buildPDFFromJson";
40
40
  export declare const serviceNameXLS = "GridXLSBuilderSP.buildXLSFromJson";
41
41
  interface ExpectedPayload {
42
42
  serviceName: string;
43
- titleGrid: string;
43
+ gridTitle: string;
44
44
  value: any;
45
45
  align?: string;
46
46
  type?: string;
47
47
  }
48
- export declare function buildExpectedResponse({ serviceName, titleGrid, value, align, type }: ExpectedPayload): {
48
+ export declare function buildExpectedResponse({ serviceName, gridTitle, value, align, type }: ExpectedPayload): {
49
49
  serviceName: string;
50
50
  requestBody: {
51
51
  grid: {
52
- titleGrid: string;
52
+ gridTitle: string;
53
53
  columns: {
54
54
  column: {
55
55
  align: string;
@@ -68,6 +68,10 @@ export declare class SnkDataUnit implements DUActionInterceptor {
68
68
  * Identificador de recursos como configurações e acesso.
69
69
  */
70
70
  resourceID: string;
71
+ /**
72
+ * Define a chave customizada para sobrescrever as mensagens (Não pegando pela entidade)
73
+ */
74
+ domainMessagesBuilder: string;
71
75
  observePageSize(): void;
72
76
  observeDataUnitName(newValue: string, oldValue: string): void;
73
77
  observeEntityName(newValue: string, oldValue: string): void;
@@ -152,6 +156,7 @@ export declare class SnkDataUnit implements DUActionInterceptor {
152
156
  private buildDataState;
153
157
  private handleDataSaved;
154
158
  private handleRecordsRemoved;
159
+ private buildRemoveFinishMessage;
155
160
  _dataUnitObserver: (action: DataUnitAction) => Promise<void>;
156
161
  /**
157
162
  * Conforme mecanismo de mensagens, é possível customizar as mensagens dos blocos de construção
@@ -163,6 +168,7 @@ export declare class SnkDataUnit implements DUActionInterceptor {
163
168
  private getMessageParams;
164
169
  private getMessageOperation;
165
170
  private getDataUnitParentOrChild;
171
+ private updateMetadataWithRMP;
166
172
  loadDataUnit(): Promise<void>;
167
173
  private getParentSnkDataUnit;
168
174
  private handlerLinkFields;
@@ -170,6 +176,7 @@ export declare class SnkDataUnit implements DUActionInterceptor {
170
176
  private processLinks;
171
177
  private getCleanDataUnitName;
172
178
  static getNearestInstance(element: HTMLElement): HTMLSnkDataUnitElement;
179
+ private instanceMessagesBuilder;
173
180
  componentWillLoad(): void;
174
181
  disconnectedCallback(): void;
175
182
  componentDidLoad(): Promise<void>;
@@ -18,7 +18,12 @@ export declare class SnkFilterBar implements FilterProvider {
18
18
  _pendingVariables: boolean;
19
19
  _customfiltersToBeUpdated: Array<SnkFilterItemConfig>;
20
20
  _calculateSortIndex: (item: SnkFilterItemConfig) => number;
21
+ private hasValidValue;
21
22
  _filtersComparator: (a: SnkFilterItemConfig, b: SnkFilterItemConfig) => number;
23
+ /**
24
+ * Loader customizado para carregar as configurações
25
+ */
26
+ customFilterBarConfig?: (configName: string, resourceId: string, options: any) => Promise<Array<SnkFilterItemConfig>>;
22
27
  /**
23
28
  * Recebe o DataUnit do ambiente. Se não for informado, procura pela referência
24
29
  * do SnkDataUnit. Necessário para se registrar como provedor de filtros.
@@ -8,23 +8,28 @@ export declare class SnkFormConfigManager {
8
8
  private _configName;
9
9
  private _formConfigFetcher;
10
10
  private _resourceID;
11
- constructor(configName: string, resourceID: string, onConfigChange?: (config: IFormConfig) => void);
11
+ private _dataUnit;
12
+ constructor(configName: string, resourceID: string, onConfigChange?: (config: IFormConfig) => void, dataUnit?: DataUnit);
12
13
  addFormLegacyConfig(legacyConfigName: string): void;
13
14
  loadConfig(): Promise<IFormConfig>;
15
+ getEmptyConfig(): IFormConfig;
14
16
  saveConfig(config: IFormConfig): Promise<IFormConfig>;
15
17
  saveCardState(cardId: string, cardConfig: IFormCardConfig, propertyChanged: string): Promise<Map<string, IFormCardConfig>>;
16
18
  private updateFixSequence;
17
- getFieldsList(dataUnit: DataUnit, descriptionFilter?: string): Array<{
19
+ private hasConfig;
20
+ getFieldsList(descriptionFilter?: string, forceEmptyConfig?: boolean): Array<{
18
21
  label: string;
19
22
  name: string;
20
23
  readOnly?: boolean;
21
24
  }>;
22
25
  private isFieldVisible;
23
- private getInsertionConfig;
26
+ private getFormConfig;
24
27
  setConfig(config: IFormConfig): void;
25
- getConfig(insertionMode: boolean, dataUnit: DataUnit, ignoreReadOnlyFormFields?: boolean): IFormConfig;
28
+ getConfig(dataUnit: DataUnit, ignoreReadOnlyFormFields?: boolean): IFormConfig;
26
29
  private getFormConfigFetcher;
27
30
  fetchUserAvailableConfigs(): Promise<Array<IUserConfig>>;
28
31
  fetchLegacyConfig(): Promise<IFormConfig>;
29
32
  fetchDefaultConfig(): Promise<IFormConfig>;
33
+ private parseObjectList;
34
+ private buildFormMetadataUITabs;
30
35
  }
@@ -45,6 +45,10 @@ export declare class SnkFormConfig {
45
45
  * Responsável por flexibilizar e padronizar o uso de mensagens nos blocos de construção.
46
46
  */
47
47
  messagesBuilder: SnkMessageBuilder;
48
+ /**
49
+ * Ignora os campos "somente leitura" no modo de inserção.
50
+ */
51
+ ignoreReadOnlyFormFields?: boolean;
48
52
  /**
49
53
  * Emitido ao salvar as configurações.
50
54
  */
@@ -32,12 +32,14 @@ export declare class SnkGrid {
32
32
  _rmPrecisionCustomValueFormatter: RmPrecisionCustomValueFormatter;
33
33
  _topTaskbarProcessor: TaskbarProcessor;
34
34
  _headerTaskbarProcessor: TaskbarProcessor;
35
+ private _continuousInsertUtils;
35
36
  _element: HTMLElement;
36
37
  _dataUnit: DataUnit;
37
38
  _dataState: DataState;
38
39
  _gridConfig: IGridConfig;
39
40
  _popUpGridConfig: boolean;
40
41
  _showSnkFilterBar: boolean;
42
+ _enableContinuousInsert: boolean;
41
43
  _application: SnkApplication;
42
44
  columnFilterDataSource: IMultiSelectionListDataSource;
43
45
  /**
@@ -131,6 +133,10 @@ export declare class SnkGrid {
131
133
  * Define se a grid será focada ao ser carregada.
132
134
  */
133
135
  autoFocus?: boolean;
136
+ /**
137
+ * Ativa inserção de registros no modo grade.
138
+ */
139
+ enableGridInsert?: boolean;
134
140
  /**
135
141
  * Emitido sempre que houver click de botão ou ação.
136
142
  */
@@ -183,7 +189,10 @@ export declare class SnkGrid {
183
189
  * Atribui o foco para a grade.
184
190
  */
185
191
  setFocus(): Promise<void>;
192
+ handleClick(event: MouseEvent): Promise<void>;
193
+ private hasToBlockEvent;
186
194
  handleGridLegacyConfigName(newLegacyConfig: string, oldLegacyConfig: string): Promise<void>;
195
+ private handleAddFormMode;
187
196
  private openGridConfig;
188
197
  private closeGridConfig;
189
198
  private setGridConfig;
@@ -211,5 +220,7 @@ export declare class SnkGrid {
211
220
  private getColumnSearch;
212
221
  private getActionsList;
213
222
  private handleFilterConfigUpdated;
223
+ private getGridHeaderButtons;
224
+ private isGridInsertActive;
214
225
  render(): any;
215
226
  }
@@ -35,6 +35,7 @@ export declare class SnkSimpleCrud {
35
35
  private _form;
36
36
  private _rmPrecisionCustomValueFormatter;
37
37
  private _snkDataUnit;
38
+ private _continuousInsertUtils;
38
39
  private _element;
39
40
  _showPopUpGridConfig: boolean;
40
41
  _showFormConfig: boolean;
@@ -53,6 +54,7 @@ export declare class SnkSimpleCrud {
53
54
  formConfig: IFormConfig;
54
55
  _formFields: IFieldConfig[];
55
56
  private _fieldsProps;
57
+ _enableContinuousInsert: boolean;
56
58
  /**
57
59
  * Determina se pode haver mais de uma linha selecionada na grade.
58
60
  */
@@ -66,6 +68,10 @@ export declare class SnkSimpleCrud {
66
68
  * Identificador de recursos como configurações e acesso.
67
69
  */
68
70
  resourceID: string;
71
+ /**
72
+ * Ativa inserção de registros no modo grade.
73
+ */
74
+ enableGridInsert?: boolean;
69
75
  /**
70
76
  * Emitido quando há qualquer mudança de estado no DataUnit.
71
77
  */
@@ -131,6 +137,10 @@ export declare class SnkSimpleCrud {
131
137
  * Define se a grid será focada ao ser carregada.
132
138
  */
133
139
  autoFocus?: boolean;
140
+ /**
141
+ * Define a chave customizada para sobrescrever as mensagens (Não pegando pela entidade)
142
+ */
143
+ domainMessagesBuilder: string;
134
144
  /**
135
145
  * Registra um editor customizado para campos da grade e formulário.
136
146
  */
@@ -157,6 +167,7 @@ export declare class SnkSimpleCrud {
157
167
  */
158
168
  setFieldProp(fieldName: string, propName: string, value: any): Promise<void>;
159
169
  _taskbarProcessor: TaskbarProcessor;
170
+ private getFinishEditionButtonsCallback;
160
171
  private getButtons;
161
172
  private addConfigButton;
162
173
  private get application();
@@ -216,6 +227,7 @@ export declare class SnkSimpleCrud {
216
227
  private getFormFields;
217
228
  private handleFormSetFields;
218
229
  private fieldsOptionLoader;
230
+ private isGridInsertActive;
219
231
  private getActionsList;
220
232
  private getTopTaskBarId;
221
233
  keyDownListener(event: KeyboardEvent): Promise<void>;
@@ -238,5 +250,6 @@ export declare class SnkSimpleCrud {
238
250
  private resolveResourceID;
239
251
  private getFormConfig;
240
252
  private updateFormConfig;
253
+ private handleDataUnitOnInsertionMode;
241
254
  render(): any;
242
255
  }
@@ -8,5 +8,6 @@ export default class TaskbarProcessor {
8
8
  constructor(defaultButtons: any);
9
9
  process(taskbarId: string, taskbarManager: TaskbarManager, dataState: DataState, disabledButtons?: Array<string>, invisibleButtons?: Array<string>): void;
10
10
  private getButtonsArray;
11
+ private getButtonsFromKey;
11
12
  private isEnabled;
12
13
  }
@@ -88,7 +88,17 @@ export declare class SnkTaskbar {
88
88
  * Emitido sempre que houver click de botão ou ação.
89
89
  */
90
90
  actionClick: EventEmitter<string>;
91
+ /**
92
+ * Emitido sempre que um save é iniciado pela taskbar.
93
+ */
94
+ taskbarSaveLocker: EventEmitter<void>;
95
+ /**
96
+ * Emitido sempre que o ocorre alguma action que libera o save.
97
+ */
98
+ taskbarSaveUnlocker: EventEmitter<void>;
91
99
  handleCustomSlotElementsLoaded(event: CustomEvent): void;
100
+ handleTaskbarSaveLocker(): void;
101
+ handleTaskbarSaveUnlocker(): void;
92
102
  private hasToSearchCustomElements;
93
103
  _titleKeyByElement: {
94
104
  UPDATE: string;
@@ -109,6 +119,7 @@ export declare class SnkTaskbar {
109
119
  observeButtons(): void;
110
120
  observeDisabledButtons(): void;
111
121
  observeLastWidth(newValue: any, oldValue: any): void;
122
+ observeIsWaitingForSave(newValue: any, oldValue: any): void;
112
123
  elementsFromString(strButtons: string): Array<TaskbarElement>;
113
124
  private isAllowed;
114
125
  /**
@@ -456,6 +456,14 @@ export namespace Components {
456
456
  * Desabilita a apresentação da opção de filtros personalizados na filter bar (chip de filtros) e no modal lateral de filtros (container de filtros personalizados).
457
457
  */
458
458
  "disablePersonalizedFilter": boolean;
459
+ /**
460
+ * Define a chave customizada para sobrescrever as mensagens (Não pegando pela entidade)
461
+ */
462
+ "domainMessagesBuilder": string;
463
+ /**
464
+ * Ativa inserção de registros no modo grade.
465
+ */
466
+ "enableGridInsert"?: boolean;
459
467
  /**
460
468
  * Chave da configuração legado da barra de filtros.
461
469
  */
@@ -480,6 +488,10 @@ export namespace Components {
480
488
  * Chave da configuração legado da grade.
481
489
  */
482
490
  "gridLegacyConfigName": string;
491
+ /**
492
+ * Ignora os campos "somente leitura" no modo de inserção.
493
+ */
494
+ "ignoreReadOnlyFormFields"?: boolean;
483
495
  /**
484
496
  * Responsável por flexibilizar e padronizar o uso de mensagens nos blocos de construção.
485
497
  */
@@ -512,6 +524,10 @@ export namespace Components {
512
524
  * Configuração da seleção de grade no toast.
513
525
  */
514
526
  "selectionToastConfig": ISelectionToastConfig;
527
+ /**
528
+ * Define uma função para configurar um título cusotmizado no modo formulário.
529
+ */
530
+ "setCustomFormTitle": () => string;
515
531
  /**
516
532
  * Altera/adiciona uma propriedade nos metadados do campo.
517
533
  */
@@ -574,6 +590,10 @@ export namespace Components {
574
590
  * Usado para criar o dataUnit uma única vez. Se omitido, será usado o próprio nome da entidade.
575
591
  */
576
592
  "dataUnitName": string;
593
+ /**
594
+ * Define a chave customizada para sobrescrever as mensagens (Não pegando pela entidade)
595
+ */
596
+ "domainMessagesBuilder": string;
577
597
  /**
578
598
  * Determina qual a entidade que representa os dados em questão.
579
599
  */
@@ -823,6 +843,10 @@ export namespace Components {
823
843
  * Eventualmente poderemos ter mais de uma barra de filtros. Essa propriedade serve para separar a configuração de cada uma.
824
844
  */
825
845
  "configName": string;
846
+ /**
847
+ * Loader customizado para carregar as configurações
848
+ */
849
+ "customFilterBarConfig"?: (configName: string, resourceId: string, options: any) => Promise<Array<SnkFilterItemConfig>>;
826
850
  /**
827
851
  * Recebe o DataUnit do ambiente. Se não for informado, procura pela referência do SnkDataUnit. Necessário para se registrar como provedor de filtros.
828
852
  */
@@ -1195,6 +1219,10 @@ export namespace Components {
1195
1219
  * Repositório de dados, controla a manipulação dos dados.
1196
1220
  */
1197
1221
  "dataUnit": DataUnit;
1222
+ /**
1223
+ * Ignora os campos "somente leitura" no modo de inserção.
1224
+ */
1225
+ "ignoreReadOnlyFormFields"?: boolean;
1198
1226
  /**
1199
1227
  * Responsável por flexibilizar e padronizar o uso de mensagens nos blocos de construção.
1200
1228
  */
@@ -1320,6 +1348,10 @@ export namespace Components {
1320
1348
  * Desabilita a apresentação da opção de filtros personalizados na filter bar (chip de filtros) e no modal lateral de filtros (container de filtros personalizados).
1321
1349
  */
1322
1350
  "disablePersonalizedFilter": boolean;
1351
+ /**
1352
+ * Ativa inserção de registros no modo grade.
1353
+ */
1354
+ "enableGridInsert"?: boolean;
1323
1355
  /**
1324
1356
  * Chave da configuração legado da barra de filtros.
1325
1357
  */
@@ -1472,6 +1504,10 @@ export namespace Components {
1472
1504
  * Define o identificador do container de elementos customizados da Taskbar da aba de detalhes.
1473
1505
  */
1474
1506
  "detailTaskbarCustomContainerId": string;
1507
+ /**
1508
+ * Ativa inserção de registros no modo grade.
1509
+ */
1510
+ "enableGridInsert"?: boolean;
1475
1511
  /**
1476
1512
  * Determina todo o caminho de entidades.
1477
1513
  */
@@ -1484,6 +1520,14 @@ export namespace Components {
1484
1520
  * Chave da configuração legado do formulário.
1485
1521
  */
1486
1522
  "formLegacyConfigName": string;
1523
+ /**
1524
+ * Fornece uma função para obter um título customizado do formulário.
1525
+ */
1526
+ "getCustomTitle": () => string;
1527
+ /**
1528
+ * Ignora os campos "somente leitura" no modo de inserção.
1529
+ */
1530
+ "ignoreReadOnlyFormFields"?: boolean;
1487
1531
  /**
1488
1532
  * Configuração do formulário master.
1489
1533
  */
@@ -1643,6 +1687,14 @@ export namespace Components {
1643
1687
  "configName": string;
1644
1688
  "dataState": DataState1;
1645
1689
  "dataUnit": DataUnit;
1690
+ /**
1691
+ * Define a chave customizada para sobrescrever as mensagens (Não pegando pela entidade)
1692
+ */
1693
+ "domainMessagesBuilder": string;
1694
+ /**
1695
+ * Ativa inserção de registros no modo grade.
1696
+ */
1697
+ "enableGridInsert"?: boolean;
1646
1698
  /**
1647
1699
  * Define o nome da entidade que o componente vai utilizar para fazer as operações de CRUD
1648
1700
  */
@@ -2530,6 +2582,14 @@ declare namespace LocalJSX {
2530
2582
  * Desabilita a apresentação da opção de filtros personalizados na filter bar (chip de filtros) e no modal lateral de filtros (container de filtros personalizados).
2531
2583
  */
2532
2584
  "disablePersonalizedFilter"?: boolean;
2585
+ /**
2586
+ * Define a chave customizada para sobrescrever as mensagens (Não pegando pela entidade)
2587
+ */
2588
+ "domainMessagesBuilder"?: string;
2589
+ /**
2590
+ * Ativa inserção de registros no modo grade.
2591
+ */
2592
+ "enableGridInsert"?: boolean;
2533
2593
  /**
2534
2594
  * Chave da configuração legado da barra de filtros.
2535
2595
  */
@@ -2546,6 +2606,10 @@ declare namespace LocalJSX {
2546
2606
  * Chave da configuração legado da grade.
2547
2607
  */
2548
2608
  "gridLegacyConfigName"?: string;
2609
+ /**
2610
+ * Ignora os campos "somente leitura" no modo de inserção.
2611
+ */
2612
+ "ignoreReadOnlyFormFields"?: boolean;
2549
2613
  /**
2550
2614
  * Responsável por flexibilizar e padronizar o uso de mensagens nos blocos de construção.
2551
2615
  */
@@ -2570,6 +2634,7 @@ declare namespace LocalJSX {
2570
2634
  * Responsável por notificar quando ocorrer a renderização de itens do formulário.
2571
2635
  */
2572
2636
  "onFormItemsReady"?: (event: SnkCrudCustomEvent<Array<HTMLElement>>) => void;
2637
+ "onViewModeChanged"?: (event: SnkCrudCustomEvent<VIEW_MODE>) => void;
2573
2638
  /**
2574
2639
  * Altera o modo de apresentação dos botões do snk-taskbar.
2575
2640
  */
@@ -2582,6 +2647,10 @@ declare namespace LocalJSX {
2582
2647
  * Configuração da seleção de grade no toast.
2583
2648
  */
2584
2649
  "selectionToastConfig"?: ISelectionToastConfig;
2650
+ /**
2651
+ * Define uma função para configurar um título cusotmizado no modo formulário.
2652
+ */
2653
+ "setCustomFormTitle"?: () => string;
2585
2654
  /**
2586
2655
  * Usado para exibir os botões de ação do snk-configurator
2587
2656
  */
@@ -2644,6 +2713,10 @@ declare namespace LocalJSX {
2644
2713
  * Usado para criar o dataUnit uma única vez. Se omitido, será usado o próprio nome da entidade.
2645
2714
  */
2646
2715
  "dataUnitName"?: string;
2716
+ /**
2717
+ * Define a chave customizada para sobrescrever as mensagens (Não pegando pela entidade)
2718
+ */
2719
+ "domainMessagesBuilder"?: string;
2647
2720
  /**
2648
2721
  * Determina qual a entidade que representa os dados em questão.
2649
2722
  */
@@ -2914,6 +2987,10 @@ declare namespace LocalJSX {
2914
2987
  * Eventualmente poderemos ter mais de uma barra de filtros. Essa propriedade serve para separar a configuração de cada uma.
2915
2988
  */
2916
2989
  "configName"?: string;
2990
+ /**
2991
+ * Loader customizado para carregar as configurações
2992
+ */
2993
+ "customFilterBarConfig"?: (configName: string, resourceId: string, options: any) => Promise<Array<SnkFilterItemConfig>>;
2917
2994
  /**
2918
2995
  * Recebe o DataUnit do ambiente. Se não for informado, procura pela referência do SnkDataUnit. Necessário para se registrar como provedor de filtros.
2919
2996
  */
@@ -3256,6 +3333,10 @@ declare namespace LocalJSX {
3256
3333
  * Repositório de dados, controla a manipulação dos dados.
3257
3334
  */
3258
3335
  "dataUnit"?: DataUnit;
3336
+ /**
3337
+ * Ignora os campos "somente leitura" no modo de inserção.
3338
+ */
3339
+ "ignoreReadOnlyFormFields"?: boolean;
3259
3340
  /**
3260
3341
  * Responsável por flexibilizar e padronizar o uso de mensagens nos blocos de construção.
3261
3342
  */
@@ -3380,6 +3461,10 @@ declare namespace LocalJSX {
3380
3461
  * Desabilita a apresentação da opção de filtros personalizados na filter bar (chip de filtros) e no modal lateral de filtros (container de filtros personalizados).
3381
3462
  */
3382
3463
  "disablePersonalizedFilter"?: boolean;
3464
+ /**
3465
+ * Ativa inserção de registros no modo grade.
3466
+ */
3467
+ "enableGridInsert"?: boolean;
3383
3468
  /**
3384
3469
  * Chave da configuração legado da barra de filtros.
3385
3470
  */
@@ -3508,6 +3593,10 @@ declare namespace LocalJSX {
3508
3593
  * Define o identificador do container de elementos customizados da Taskbar da aba de detalhes.
3509
3594
  */
3510
3595
  "detailTaskbarCustomContainerId"?: string;
3596
+ /**
3597
+ * Ativa inserção de registros no modo grade.
3598
+ */
3599
+ "enableGridInsert"?: boolean;
3511
3600
  /**
3512
3601
  * Determina todo o caminho de entidades.
3513
3602
  */
@@ -3516,6 +3605,14 @@ declare namespace LocalJSX {
3516
3605
  * Chave da configuração legado do formulário.
3517
3606
  */
3518
3607
  "formLegacyConfigName"?: string;
3608
+ /**
3609
+ * Fornece uma função para obter um título customizado do formulário.
3610
+ */
3611
+ "getCustomTitle"?: () => string;
3612
+ /**
3613
+ * Ignora os campos "somente leitura" no modo de inserção.
3614
+ */
3615
+ "ignoreReadOnlyFormFields"?: boolean;
3519
3616
  /**
3520
3617
  * Configuração do formulário master.
3521
3618
  */
@@ -3674,6 +3771,14 @@ declare namespace LocalJSX {
3674
3771
  "configName"?: string;
3675
3772
  "dataState"?: DataState1;
3676
3773
  "dataUnit"?: DataUnit;
3774
+ /**
3775
+ * Define a chave customizada para sobrescrever as mensagens (Não pegando pela entidade)
3776
+ */
3777
+ "domainMessagesBuilder"?: string;
3778
+ /**
3779
+ * Ativa inserção de registros no modo grade.
3780
+ */
3781
+ "enableGridInsert"?: boolean;
3677
3782
  /**
3678
3783
  * Define o nome da entidade que o componente vai utilizar para fazer as operações de CRUD
3679
3784
  */
@@ -3838,6 +3943,14 @@ declare namespace LocalJSX {
3838
3943
  * Emitido sempre que houver click de botão ou ação.
3839
3944
  */
3840
3945
  "onActionClick"?: (event: SnkTaskbarCustomEvent<string>) => void;
3946
+ /**
3947
+ * Emitido sempre que um save é iniciado pela taskbar.
3948
+ */
3949
+ "onTaskbarSaveLocker"?: (event: SnkTaskbarCustomEvent<void>) => void;
3950
+ /**
3951
+ * Emitido sempre que o ocorre alguma action que libera o save.
3952
+ */
3953
+ "onTaskbarSaveUnlocker"?: (event: SnkTaskbarCustomEvent<void>) => void;
3841
3954
  /**
3842
3955
  * Define como será o comportamento da taskbar quando ocorrer overflow
3843
3956
  */
@@ -1,4 +1,14 @@
1
- import { DataUnit, Filter, PaginationInfo, Record, Sort } from '@sankhyalabs/core';
1
+ import { DataUnit, Filter, LoadDataRequest, PaginationInfo, Record, Sort } from '@sankhyalabs/core';
2
2
  export declare function applyFilter(records: Array<Record>, dataUnit: DataUnit, filters: Array<Filter>): Array<Record>;
3
+ export declare function buildLoadDataResponse(recordsIn: Array<Record>, dataUnit: DataUnit, request: LoadDataRequest): Promise<{
4
+ records: Record[];
5
+ paginationInfo: PaginationInfo;
6
+ }>;
3
7
  export declare function applySorting(records: Array<Record>, dataUnit: DataUnit, sorting: Array<Sort>): Array<Record>;
4
- export declare function buildPaginationInfo(records: Array<Record>, offset?: number, limit?: number): PaginationInfo | undefined;
8
+ export declare function getPagesByRecords(records: Record[], offset?: number, limit?: number): Record[];
9
+ export declare function buildPaginationInfo({ recordsLength, offset, recordsPerPage }: PaginationInfoBuilderParams): PaginationInfo | undefined;
10
+ export interface PaginationInfoBuilderParams {
11
+ recordsLength: number;
12
+ offset: number;
13
+ recordsPerPage: number;
14
+ }
@@ -3,10 +3,11 @@ import { DeleteResponse, DownloadKeyResponse, SaveResponse } from "./interfaces"
3
3
  import { AttachFetcherFacadeInterface } from "./facade/attach-fetcher.facade";
4
4
  export declare class AnexoSistemaFetcher implements AttachFetcherFacadeInterface {
5
5
  private entityName;
6
- private registerKey;
7
6
  private dataUnitName;
8
7
  private resourceID;
9
- constructor(entityName: string, registerKey: string, dataUnitName: string);
8
+ private _registerKey;
9
+ constructor(entityName: string, dataUnitName: string);
10
+ set registerKey(registerKey: string);
10
11
  validateFields: (fields: any) => void;
11
12
  save(change: Change): Promise<Array<SaveResponse>>;
12
13
  edit(change: Change): Promise<Array<SaveResponse>>;
@@ -24,7 +24,7 @@ export interface IResolveExporterParams {
24
24
  subject?: string;
25
25
  message?: string;
26
26
  fileName: string;
27
- titleGrid?: string;
27
+ gridTitle?: string;
28
28
  exportOption?: DataExporterOption;
29
29
  }
30
30
  export {};
@@ -0,0 +1,10 @@
1
+ import { SnkApplication } from '../../components/snk-application/snk-application';
2
+ import { Action } from '../../components/snk-taskbar/snk-taskbar';
3
+ export declare class ContinuousInsertUtils {
4
+ private keyConfigEnableContinuousInsert;
5
+ private snkApplication;
6
+ constructor(snkApplication: SnkApplication, resourceID: string, configName?: string);
7
+ handleSaveConfig(enableContinuousInsert: boolean): Promise<any>;
8
+ getConfig(): Promise<boolean>;
9
+ actionContinuousInsert(enableContinuousInsert: boolean, handleEnableContinuousInsert: () => void): Action;
10
+ }
@@ -0,0 +1,3 @@
1
+ import { DataUnit } from "@sankhyalabs/core";
2
+ import { IRecordID } from "../../components/snk-data-exporter/interfaces/IRecordID";
3
+ export declare function getSelectedRecordsIDsInfo(dataUnit: DataUnit): Array<IRecordID>;