@sankhyalabs/sankhyablocks 0.0.0-bugfix-dev-KB-65214.0 → 0.0.0-bugfix-dev-kb-67792.0

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 (235) hide show
  1. package/dist/cjs/{ConfigStorage-e49214c6.js → ConfigStorage-0a690675.js} +0 -1
  2. package/dist/cjs/{SnkFormConfigManager-beebf47a.js → SnkFormConfigManager-d6d5db6d.js} +7 -8
  3. package/dist/cjs/{SnkMessageBuilder-cceebbae.js → SnkMessageBuilder-96b0f549.js} +13 -9
  4. package/dist/cjs/{IExporterProvider-10b7fed5.js → SnkMultiSelectionListDataSource-f79d220c.js} +4 -94
  5. package/dist/cjs/{index-1dfc7a6e.js → index-0922807b.js} +0 -5
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/cjs/{dataunit-fetcher-d4873076.js → pesquisa-fetcher-cba1b3d0.js} +180 -87
  8. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  9. package/dist/cjs/snk-actions-button_4.cjs.entry.js +3 -5
  10. package/dist/cjs/snk-application.cjs.entry.js +12 -35
  11. package/dist/cjs/snk-attach.cjs.entry.js +46 -71
  12. package/dist/cjs/snk-crud.cjs.entry.js +10 -101
  13. package/dist/cjs/snk-data-exporter.cjs.entry.js +85 -315
  14. package/dist/cjs/snk-data-unit-559ac55c.js +462 -0
  15. package/dist/cjs/snk-data-unit.cjs.entry.js +2 -12
  16. package/dist/cjs/snk-detail-view.cjs.entry.js +10 -50
  17. package/dist/cjs/snk-filter-bar.cjs.entry.js +12 -7
  18. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +1 -1
  19. package/dist/cjs/snk-form-config.cjs.entry.js +1 -1
  20. package/dist/cjs/snk-form-view.cjs.entry.js +0 -67
  21. package/dist/cjs/snk-form.cjs.entry.js +7 -52
  22. package/dist/cjs/snk-grid.cjs.entry.js +110 -167
  23. package/dist/cjs/{snk-guides-viewer-aafc3073.js → snk-guides-viewer-bfcad2d6.js} +10 -43
  24. package/dist/cjs/snk-guides-viewer.cjs.entry.js +7 -9
  25. package/dist/cjs/snk-personalized-filter.cjs.entry.js +1 -1
  26. package/dist/cjs/snk-simple-crud.cjs.entry.js +40 -268
  27. package/dist/cjs/snk-taskbar.cjs.entry.js +3 -4
  28. package/dist/cjs/{taskbar-elements-9ad1f9c0.js → taskbar-elements-3ecd1278.js} +3 -3
  29. package/dist/collection/collection-manifest.json +1 -1
  30. package/dist/collection/components/snk-application/snk-application.js +11 -35
  31. package/dist/collection/components/snk-attach/snk-attach.js +44 -67
  32. package/dist/collection/components/snk-crud/snk-crud.js +7 -305
  33. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +2 -136
  34. package/dist/collection/components/snk-crud/subcomponents/snk-form-view.js +0 -161
  35. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +7 -134
  36. package/dist/collection/components/snk-data-exporter/interfaces/IExporterProvider.js +1 -54
  37. package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +52 -59
  38. package/dist/collection/components/snk-data-exporter/structure/ItemBuilder.js +0 -62
  39. package/dist/collection/components/snk-data-unit/snk-data-unit.js +219 -540
  40. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +11 -23
  41. package/dist/collection/components/snk-form/snk-form.js +5 -102
  42. package/dist/collection/components/snk-form-config/SnkFormConfigManager.js +6 -7
  43. package/dist/collection/components/snk-form-config/snk-form-config.js +1 -1
  44. package/dist/collection/components/snk-grid/snk-grid.css +0 -2
  45. package/dist/collection/components/snk-grid/snk-grid.js +102 -241
  46. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +20 -406
  47. package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +2 -2
  48. package/dist/collection/components/snk-taskbar/snk-taskbar.js +1 -2
  49. package/dist/collection/lib/@types/index.js +0 -5
  50. package/dist/collection/lib/configs/ConfigStorage.js +0 -1
  51. package/dist/collection/lib/dataUnit/InMemoryLoader.js +3 -7
  52. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/DataUnitDataLoader.js +0 -3
  53. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/ArrayRepository.js +0 -4
  54. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.js +13 -11
  55. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/dataunit-fetcher.js +0 -1
  56. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js +4 -53
  57. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/index.js +34 -0
  58. package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +4 -4
  59. package/dist/collection/lib/message/SnkMessageBuilder.js +12 -5
  60. package/dist/collection/lib/message/resources/snk-data-exporter.msg.js +0 -2
  61. package/dist/collection/lib/message/resources/snk-data-unit.msg.js +1 -2
  62. package/dist/components/ConfigStorage.js +0 -1
  63. package/dist/components/SnkFormConfigManager.js +6 -7
  64. package/dist/components/SnkMessageBuilder.js +13 -9
  65. package/dist/components/dataunit-fetcher.js +182 -84
  66. package/dist/components/{IExporterProvider.js → field-search.js} +6 -93
  67. package/dist/components/index2.js +33 -198
  68. package/dist/components/index3.js +199 -0
  69. package/dist/components/snk-actions-button2.js +11 -4
  70. package/dist/components/snk-application2.js +9 -31
  71. package/dist/components/snk-attach2.js +41 -65
  72. package/dist/components/snk-crud.js +11 -110
  73. package/dist/components/snk-data-exporter2.js +85 -309
  74. package/dist/components/snk-data-unit2.js +217 -487
  75. package/dist/components/snk-detail-view2.js +14 -96
  76. package/dist/components/snk-expression-item2.js +1 -1
  77. package/dist/components/snk-filter-bar2.js +11 -7
  78. package/dist/components/snk-form-config2.js +1 -1
  79. package/dist/components/snk-form-view2.js +1 -72
  80. package/dist/components/snk-form.js +6 -53
  81. package/dist/components/snk-grid2.js +108 -170
  82. package/dist/components/snk-personalized-filter2.js +1 -1
  83. package/dist/components/snk-simple-crud2.js +25 -263
  84. package/dist/components/snk-taskbar2.js +5 -6
  85. package/dist/esm/{ConfigStorage-e476378d.js → ConfigStorage-8c2ddac8.js} +0 -1
  86. package/dist/esm/{SnkFormConfigManager-298cd647.js → SnkFormConfigManager-c01b9d9d.js} +7 -8
  87. package/dist/esm/{SnkMessageBuilder-ae87b754.js → SnkMessageBuilder-72423074.js} +13 -9
  88. package/dist/esm/{IExporterProvider-d597f27d.js → SnkMultiSelectionListDataSource-a4805051.js} +5 -93
  89. package/dist/esm/{index-3aa4977a.js → index-0ece87a6.js} +1 -6
  90. package/dist/esm/loader.js +1 -1
  91. package/dist/esm/{dataunit-fetcher-3d2ec959.js → pesquisa-fetcher-34a8b8be.js} +181 -83
  92. package/dist/esm/sankhyablocks.js +1 -1
  93. package/dist/esm/snk-actions-button_4.entry.js +3 -5
  94. package/dist/esm/snk-application.entry.js +11 -34
  95. package/dist/esm/snk-attach.entry.js +41 -66
  96. package/dist/esm/snk-crud.entry.js +10 -101
  97. package/dist/esm/snk-data-exporter.entry.js +86 -316
  98. package/dist/esm/snk-data-unit-44215df7.js +460 -0
  99. package/dist/esm/snk-data-unit.entry.js +2 -12
  100. package/dist/esm/snk-detail-view.entry.js +10 -50
  101. package/dist/esm/snk-filter-bar.entry.js +12 -7
  102. package/dist/esm/snk-filter-modal-item.entry.js +1 -1
  103. package/dist/esm/snk-form-config.entry.js +1 -1
  104. package/dist/esm/snk-form-view.entry.js +0 -67
  105. package/dist/esm/snk-form.entry.js +7 -52
  106. package/dist/esm/snk-grid.entry.js +108 -165
  107. package/dist/esm/{snk-guides-viewer-62124f3d.js → snk-guides-viewer-edeac29f.js} +10 -43
  108. package/dist/esm/snk-guides-viewer.entry.js +7 -9
  109. package/dist/esm/snk-personalized-filter.entry.js +1 -1
  110. package/dist/esm/snk-simple-crud.entry.js +28 -256
  111. package/dist/esm/snk-taskbar.entry.js +3 -4
  112. package/dist/esm/{taskbar-elements-d59867f1.js → taskbar-elements-2473c8ac.js} +3 -3
  113. package/dist/sankhyablocks/p-03dcc5ff.entry.js +1 -0
  114. package/dist/sankhyablocks/p-176c3491.entry.js +1 -0
  115. package/dist/sankhyablocks/p-37e5d563.js +65 -0
  116. package/dist/sankhyablocks/p-38289a55.js +1 -0
  117. package/dist/sankhyablocks/{p-9dfda04a.entry.js → p-41c2c191.entry.js} +1 -1
  118. package/dist/sankhyablocks/p-46e55a95.entry.js +1 -0
  119. package/dist/sankhyablocks/p-4e728357.entry.js +1 -0
  120. package/dist/sankhyablocks/p-5571bdfe.js +1 -0
  121. package/dist/sankhyablocks/p-5630574e.js +1 -0
  122. package/dist/sankhyablocks/p-5f8c0426.entry.js +1 -0
  123. package/dist/sankhyablocks/p-80c64add.entry.js +1 -0
  124. package/dist/sankhyablocks/p-86af4cc2.js +1 -0
  125. package/dist/sankhyablocks/p-8b690717.js +1 -0
  126. package/dist/sankhyablocks/{p-3287a6cc.js → p-96621231.js} +1 -1
  127. package/dist/sankhyablocks/p-a1832166.entry.js +1 -0
  128. package/dist/sankhyablocks/p-a809d944.entry.js +1 -0
  129. package/dist/sankhyablocks/p-a97226f6.entry.js +1 -0
  130. package/dist/sankhyablocks/p-add17f6a.entry.js +1 -0
  131. package/dist/sankhyablocks/{p-7e7a7473.js → p-ae4fc9a9.js} +1 -1
  132. package/dist/sankhyablocks/{p-bd008859.entry.js → p-c2ae0fab.entry.js} +1 -1
  133. package/dist/sankhyablocks/p-c5a9a5d9.entry.js +1 -0
  134. package/dist/sankhyablocks/p-c5aa7d70.entry.js +11 -0
  135. package/dist/sankhyablocks/p-cb0147ab.entry.js +1 -0
  136. package/dist/sankhyablocks/p-f0145e3b.js +1 -0
  137. package/dist/sankhyablocks/p-f03e4199.entry.js +1 -0
  138. package/dist/sankhyablocks/p-f607db63.entry.js +1 -0
  139. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  140. package/dist/types/components/snk-application/snk-application.d.ts +3 -7
  141. package/dist/types/components/snk-attach/snk-attach.d.ts +9 -11
  142. package/dist/types/components/snk-crud/snk-crud.d.ts +1 -45
  143. package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +0 -23
  144. package/dist/types/components/snk-crud/subcomponents/snk-form-view.d.ts +3 -28
  145. package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +0 -24
  146. package/dist/types/components/snk-data-exporter/interfaces/IExporterProvider.d.ts +4 -24
  147. package/dist/types/components/snk-data-exporter/snk-data-exporter.d.ts +1 -4
  148. package/dist/types/components/snk-data-exporter/structure/ItemBuilder.d.ts +0 -21
  149. package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +3 -67
  150. package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +1 -4
  151. package/dist/types/components/snk-form/snk-form.d.ts +0 -14
  152. package/dist/types/components/snk-form-config/SnkFormConfigManager.d.ts +2 -2
  153. package/dist/types/components/snk-grid/snk-grid.d.ts +6 -46
  154. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +4 -62
  155. package/dist/types/components/snk-taskbar/elements/taskbar-elements.d.ts +1 -1
  156. package/dist/types/components.d.ts +4 -261
  157. package/dist/types/lib/@types/index.d.ts +0 -5
  158. package/dist/types/lib/dataUnit/InMemoryLoader.d.ts +1 -2
  159. package/dist/types/lib/http/data-fetcher/fetchers/data-unit/DataUnitDataLoader.d.ts +1 -2
  160. package/dist/types/lib/http/data-fetcher/fetchers/data-unit/cache/ArrayRepository.d.ts +0 -1
  161. package/dist/types/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.d.ts +0 -1
  162. package/dist/types/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.d.ts +0 -6
  163. package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/index.d.ts +3 -0
  164. package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IExporterColumnMetadata.d.ts +0 -3
  165. package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterParams.d.ts +1 -2
  166. package/dist/types/lib/http/data-fetcher/fetchers/pesquisa-fetcher.d.ts +0 -1
  167. package/package.json +1 -1
  168. package/dist/cjs/RecordIDUtils-3735135c.js +0 -43
  169. package/dist/cjs/pesquisa-fetcher-a1d0353f.js +0 -166
  170. package/dist/cjs/snk-data-unit-f0221097.js +0 -690
  171. package/dist/collection/components/snk-crud/interfaces/PropsCustomEditor.js +0 -1
  172. package/dist/collection/components/snk-crud/interfaces/PropsCustomRender.js +0 -1
  173. package/dist/collection/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.js +0 -97
  174. package/dist/collection/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.js +0 -74
  175. package/dist/collection/components/snk-data-exporter/interfaces/IExporterStrategy.js +0 -1
  176. package/dist/collection/components/snk-data-exporter/providers/ClientSideExporterProvider.js +0 -58
  177. package/dist/collection/components/snk-data-exporter/providers/ServerSideExporterProvider.js +0 -55
  178. package/dist/collection/components/snk-data-exporter/test/resources/ClientSideExporterStrategyResources.js +0 -88
  179. package/dist/collection/components/snk-data-exporter/utils/ParserExport.js +0 -20
  180. package/dist/collection/components/snk-data-exporter/utils/RecordIDUtils.js +0 -38
  181. package/dist/collection/components/snk-data-unit/test/resources/metadataMock.js +0 -24
  182. package/dist/collection/components/snk-data-unit/test/resources/parentMetadataMock.js +0 -18
  183. package/dist/collection/lib/DefaultCustomFormatters/RmPrecisionCustomValueFormatter.js +0 -35
  184. package/dist/collection/lib/dataUnit/ValueFormatter.js +0 -4
  185. package/dist/collection/lib/dataUnit/interfaces/InMemoryLoaderConfig.js +0 -1
  186. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IBuildRequestBodyLoadRowMetadata.js +0 -1
  187. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IRowMetadata.js +0 -1
  188. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/test/resources/metadataMock.js +0 -22
  189. package/dist/components/ISave.js +0 -47
  190. package/dist/components/pesquisa-fetcher.js +0 -164
  191. package/dist/esm/RecordIDUtils-87d02110.js +0 -41
  192. package/dist/esm/pesquisa-fetcher-a87445a0.js +0 -164
  193. package/dist/esm/snk-data-unit-1ef94aef.js +0 -688
  194. package/dist/sankhyablocks/p-091ce761.js +0 -60
  195. package/dist/sankhyablocks/p-0c68f40f.entry.js +0 -1
  196. package/dist/sankhyablocks/p-162b9a59.entry.js +0 -11
  197. package/dist/sankhyablocks/p-1db45d26.entry.js +0 -1
  198. package/dist/sankhyablocks/p-25f1fc39.js +0 -6
  199. package/dist/sankhyablocks/p-2e9c764c.entry.js +0 -1
  200. package/dist/sankhyablocks/p-30cf616e.js +0 -1
  201. package/dist/sankhyablocks/p-421bec84.entry.js +0 -1
  202. package/dist/sankhyablocks/p-42f7b05d.entry.js +0 -1
  203. package/dist/sankhyablocks/p-51999ab5.entry.js +0 -1
  204. package/dist/sankhyablocks/p-52a6a293.entry.js +0 -1
  205. package/dist/sankhyablocks/p-5f016aed.js +0 -1
  206. package/dist/sankhyablocks/p-62f34e6f.entry.js +0 -1
  207. package/dist/sankhyablocks/p-684a2590.entry.js +0 -1
  208. package/dist/sankhyablocks/p-70001ac1.js +0 -1
  209. package/dist/sankhyablocks/p-74c665d5.entry.js +0 -1
  210. package/dist/sankhyablocks/p-76a65660.js +0 -1
  211. package/dist/sankhyablocks/p-7c4aabe2.js +0 -1
  212. package/dist/sankhyablocks/p-8c1ff936.entry.js +0 -1
  213. package/dist/sankhyablocks/p-939e15d3.entry.js +0 -1
  214. package/dist/sankhyablocks/p-9863d682.js +0 -1
  215. package/dist/sankhyablocks/p-c273d6ee.js +0 -1
  216. package/dist/sankhyablocks/p-d65d98ed.entry.js +0 -1
  217. package/dist/sankhyablocks/p-f2809746.entry.js +0 -1
  218. package/dist/types/components/snk-crud/interfaces/PropsCustomEditor.d.ts +0 -4
  219. package/dist/types/components/snk-crud/interfaces/PropsCustomRender.d.ts +0 -4
  220. package/dist/types/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.d.ts +0 -14
  221. package/dist/types/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.d.ts +0 -12
  222. package/dist/types/components/snk-data-exporter/interfaces/IExporterStrategy.d.ts +0 -5
  223. package/dist/types/components/snk-data-exporter/providers/ClientSideExporterProvider.d.ts +0 -17
  224. package/dist/types/components/snk-data-exporter/providers/ServerSideExporterProvider.d.ts +0 -17
  225. package/dist/types/components/snk-data-exporter/test/resources/ClientSideExporterStrategyResources.d.ts +0 -77
  226. package/dist/types/components/snk-data-exporter/utils/ParserExport.d.ts +0 -4
  227. package/dist/types/components/snk-data-exporter/utils/RecordIDUtils.d.ts +0 -3
  228. package/dist/types/components/snk-data-unit/test/resources/metadataMock.d.ts +0 -3
  229. package/dist/types/components/snk-data-unit/test/resources/parentMetadataMock.d.ts +0 -3
  230. package/dist/types/lib/DefaultCustomFormatters/RmPrecisionCustomValueFormatter.d.ts +0 -11
  231. package/dist/types/lib/dataUnit/ValueFormatter.d.ts +0 -2
  232. package/dist/types/lib/dataUnit/interfaces/InMemoryLoaderConfig.d.ts +0 -3
  233. package/dist/types/lib/http/data-fetcher/fetchers/data-unit/interfaces/IBuildRequestBodyLoadRowMetadata.d.ts +0 -10
  234. package/dist/types/lib/http/data-fetcher/fetchers/data-unit/interfaces/IRowMetadata.d.ts +0 -7
  235. package/dist/types/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/test/resources/metadataMock.d.ts +0 -20
@@ -5,20 +5,18 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-f9e81701.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const DataFetcher = require('./DataFetcher-77729a93.js');
8
- require('./pesquisa-fetcher-a1d0353f.js');
9
- require('./index-1dfc7a6e.js');
8
+ const pesquisaFetcher = require('./pesquisa-fetcher-cba1b3d0.js');
9
+ require('./index-0922807b.js');
10
10
  const ISave = require('./ISave-e91b70a7.js');
11
- const dataunitFetcher = require('./dataunit-fetcher-d4873076.js');
12
11
  require('./filter-item-type.enum-a7ffdaa6.js');
13
12
  require('./form-config-fetcher-feb08214.js');
14
13
  const constants = require('./constants-35ddd366.js');
15
14
  const authFetcher = require('./auth-fetcher-29bb791c.js');
16
- const taskbarElements = require('./taskbar-elements-9ad1f9c0.js');
15
+ const taskbarElements = require('./taskbar-elements-3ecd1278.js');
17
16
  require('./PrintUtils-bcaeb82f.js');
18
17
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
19
18
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
20
19
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
21
- require('@sankhyalabs/core/dist/utils/SortingUtils');
22
20
  require('./ResourceIDUtils-5ff86aa7.js');
23
21
  require('./index-102ba62d.js');
24
22
 
@@ -315,7 +313,7 @@ class AnexoSistemaDataUnitFactory {
315
313
  const { records } = dataUnit.getSelectionInfo();
316
314
  const recordToDelete = records[0];
317
315
  fetcher.delete(recordToDelete).then(() => {
318
- dataunitFetcher.PreloadManager.removeRecords(dataUnit, [recordToDelete]);
316
+ pesquisaFetcher.PreloadManager.removeRecords(dataUnit, [recordToDelete]);
319
317
  return resolve(ids);
320
318
  });
321
319
  });
@@ -462,9 +460,9 @@ class AttachFetcherDataUnitFactory {
462
460
  });
463
461
  this._records = records;
464
462
  }
465
- let records = dataunitFetcher.applyFilter(this._records, dataUnit, request.filters);
466
- records = dataunitFetcher.applySorting(records, dataUnit, request.sort);
467
- return Promise.resolve({ records, paginationInfo: dataunitFetcher.buildPaginationInfo(records, request.offset, request.limit) });
463
+ let records = pesquisaFetcher.applyFilter(this._records, dataUnit, request.filters);
464
+ records = pesquisaFetcher.applySorting(records, dataUnit, request.sort);
465
+ return Promise.resolve({ records, paginationInfo: pesquisaFetcher.buildPaginationInfo(records, request.offset, request.limit) });
468
466
  }
469
467
  saveLoader(changes, fetcher) {
470
468
  return new Promise((resolve) => {
@@ -654,36 +652,25 @@ const SnkAttach = class {
654
652
  this._currentDataUnit = undefined;
655
653
  this.crudConfig = undefined;
656
654
  }
657
- async registerKeyWatcher(newRegisterKey, oldRegisterKey) {
658
- var _a;
659
- if (this._currentDataUnit == null) {
655
+ registerKeyWatcher(newRegisterKey, oldRegisterKey) {
656
+ var _a, _b, _c, _d, _e, _f;
657
+ if (!this._currentDataUnit) {
660
658
  this.loadAttachmentDataUnit();
661
659
  }
662
660
  if (oldRegisterKey !== newRegisterKey) {
663
- await ((_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.loadData());
664
- }
665
- }
666
- async initAttach() {
667
- var _a, _b, _c, _d, _e, _f;
668
- if (!this.fetcherType && !this.registerKey)
669
- return;
670
- if (!this.fetcherType) {
671
- this.fetcherType = "AnexoSistema";
672
- }
673
- this.returnToGridMode();
674
- if (this.fetcherType === "AnexoSistema") {
675
- this._currentFetcher = new AnexoSistemaFetcher(this.entityName, this.registerKey, (_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.name);
676
- (_b = this._currentDataUnitBuilder) === null || _b === void 0 ? void 0 : _b.initLoaders(this._currentDataUnit, this._currentFetcher, this.returnToGridMode.bind(this));
677
- await ((_c = this._currentDataUnit) === null || _c === void 0 ? void 0 : _c.loadData());
678
- return;
679
- }
680
- if (this.fetcherType === "Attach") {
681
- const hasMoreOneItem = ((_d = this.registerKey) === null || _d === void 0 ? void 0 : _d.split("_").length) > 1;
682
- if (hasMoreOneItem)
683
- return;
661
+ this.returnToGridMode();
662
+ if (this.fetcherType === "AnexoSistema") {
663
+ this._currentFetcher = new AnexoSistemaFetcher(this.entityName, this.registerKey, (_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.name);
664
+ (_b = this._currentDataUnitBuilder) === null || _b === void 0 ? void 0 : _b.initLoaders(this._currentDataUnit, this._currentFetcher, this.returnToGridMode.bind(this));
665
+ return (_c = this._currentDataUnit) === null || _c === void 0 ? void 0 : _c.loadData();
666
+ }
667
+ if (this.fetcherType === "Attach") {
668
+ const hasMoreOneItem = ((_d = this.registerKey) === null || _d === void 0 ? void 0 : _d.split("_").length) > 1;
669
+ if (hasMoreOneItem)
670
+ return;
671
+ }
672
+ return (_f = (_e = this._currentDataUnit) === null || _e === void 0 ? void 0 : _e.loadMetadata()) === null || _f === void 0 ? void 0 : _f.then(this._currentDataUnit.loadData.bind(undefined, undefined, true, this.registerKey));
684
673
  }
685
- await ((_e = this._currentDataUnit) === null || _e === void 0 ? void 0 : _e.loadMetadata());
686
- await ((_f = this._currentDataUnit) === null || _f === void 0 ? void 0 : _f.loadData(undefined, undefined, true, this.registerKey));
687
674
  }
688
675
  /**
689
676
  * Conforme mecanismo de mensagens, é possível customizar as mensagens dos blocos de construção
@@ -722,14 +709,14 @@ const SnkAttach = class {
722
709
  if (this._crudElement)
723
710
  this._crudElement.goToView(constants.VIEW_MODE.GRID);
724
711
  }
725
- async loadAttachmentDataUnit() {
712
+ loadAttachmentDataUnit() {
726
713
  try {
727
714
  switch (this.fetcherType) {
728
715
  case "AnexoSistema":
729
- await this.loadAnexoSistema();
716
+ this.loadAnexoSistema();
730
717
  break;
731
718
  case "Attach":
732
- await this.loadAttach();
719
+ this.loadAttach();
733
720
  break;
734
721
  default:
735
722
  this._currentFetcher = this.fetcher;
@@ -741,29 +728,28 @@ const SnkAttach = class {
741
728
  throw new Error('There was an error while creating the data unit');
742
729
  }
743
730
  }
744
- async loadAnexoSistema() {
745
- var _a, _b, _c;
746
- this._currentDataUnit = new dataunitFetcher.DataUnitFetcher().getDataUnit(RESOURCE_ID, DATA_UNIT_NAME);
731
+ loadAnexoSistema() {
732
+ var _a;
733
+ this._currentDataUnit = this._currentDataUnit || new pesquisaFetcher.DataUnitFetcher().getDataUnit(RESOURCE_ID, DATA_UNIT_NAME);
747
734
  this._currentFetcher = new AnexoSistemaFetcher(this.entityName, this.registerKey, (_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.name);
748
735
  if (!this._currentDataUnit.metadata) {
749
- await ((_b = this._currentDataUnit) === null || _b === void 0 ? void 0 : _b.loadMetadata());
750
- this.crudConfig = Object.assign({}, anexoSistemaCrudConfig);
736
+ this._currentDataUnit
737
+ .loadMetadata()
738
+ .then(() => this.crudConfig = Object.assign({}, anexoSistemaCrudConfig));
751
739
  }
752
- this.initDataUnitLoaders();
740
+ this._currentDataUnitBuilder = new AnexoSistemaDataUnitFactory(this.entityName, this.getMessage.bind(this));
753
741
  this._currentDataUnit.addFilterProvider({
754
742
  getFilter: () => this._currentDataUnitBuilder.getFilters(this.registerKey)
755
743
  });
756
744
  this._currentDataUnit.addInterceptor({
757
745
  interceptAction: (action) => this._currentDataUnitBuilder.getInterceptions(this._currentDataUnit, action, this._crudElement)
758
746
  });
759
- await ((_c = this._currentDataUnit) === null || _c === void 0 ? void 0 : _c.loadData());
760
- this.disableEditFieldsNotInForm();
747
+ this._currentDataUnit.loadData().then(this.disableEditFieldsNotInForm.bind(this));
761
748
  }
762
- async loadAttach() {
763
- var _a, _b;
749
+ loadAttach() {
750
+ var _a, _b, _c;
764
751
  this._currentFetcher = new AttachFetcher();
765
- this._currentDataUnit = new core.DataUnit(dataunitFetcher.InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME);
766
- this.initDataUnitLoaders();
752
+ this._currentDataUnit = new core.DataUnit(pesquisaFetcher.InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME);
767
753
  this._currentDataUnit.addInterceptor({
768
754
  interceptAction: (action) => {
769
755
  var _a;
@@ -774,26 +760,16 @@ const SnkAttach = class {
774
760
  return this._currentDataUnitBuilder.getInterceptions(this._currentDataUnit, action, this._crudElement);
775
761
  }
776
762
  });
763
+ this._currentDataUnitBuilder = new AttachFetcherDataUnitFactory(this.getMessage.bind(this));
764
+ (_a = this._currentDataUnitBuilder) === null || _a === void 0 ? void 0 : _a.initLoaders(this._currentDataUnit, this._currentFetcher, async () => {
765
+ this.returnToGridMode();
766
+ await this._currentDataUnit.loadData(undefined, undefined, true, this.registerKey);
767
+ });
777
768
  if (!this._currentDataUnit.metadata) {
778
- await ((_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.loadMetadata());
779
- this.crudConfig = Object.assign({}, attachCrudConfig);
780
- await ((_b = this._currentDataUnit) === null || _b === void 0 ? void 0 : _b.loadData(undefined, undefined, true, this.registerKey));
781
- this.disableEditFieldsNotInForm();
782
- }
783
- }
784
- initDataUnitLoaders() {
785
- var _a, _b, _c;
786
- if (this.fetcherType === "AnexoSistema") {
787
- this._currentFetcher = new AnexoSistemaFetcher(this.entityName, this.registerKey, (_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.name);
788
- this._currentDataUnitBuilder = new AnexoSistemaDataUnitFactory(this.entityName, this.getMessage.bind(this));
789
- (_b = this._currentDataUnitBuilder) === null || _b === void 0 ? void 0 : _b.initLoaders(this._currentDataUnit, this._currentFetcher, this.returnToGridMode.bind(this));
790
- }
791
- if (this.fetcherType === "Attach") {
792
- this._currentFetcher = new AttachFetcher();
793
- this._currentDataUnitBuilder = new AttachFetcherDataUnitFactory(this.getMessage.bind(this));
794
- (_c = this._currentDataUnitBuilder) === null || _c === void 0 ? void 0 : _c.initLoaders(this._currentDataUnit, this._currentFetcher, async () => {
795
- this.returnToGridMode();
796
- await this._currentDataUnit.loadData(undefined, undefined, true, this.registerKey);
769
+ (_c = (_b = this._currentDataUnit) === null || _b === void 0 ? void 0 : _b.loadMetadata()) === null || _c === void 0 ? void 0 : _c.then(() => {
770
+ var _a, _b;
771
+ this.crudConfig = Object.assign({}, attachCrudConfig);
772
+ (_b = (_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.loadData(undefined, undefined, true, this.registerKey)) === null || _b === void 0 ? void 0 : _b.then(this.disableEditFieldsNotInForm.bind(this));
797
773
  });
798
774
  }
799
775
  }
@@ -807,9 +783,8 @@ const SnkAttach = class {
807
783
  }
808
784
  });
809
785
  }
810
- async componentWillLoad() {
786
+ componentWillLoad() {
811
787
  this._application = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
812
- await this.initAttach();
813
788
  }
814
789
  componentWillRender() {
815
790
  if (!this.fetcherType) {
@@ -4,14 +4,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-f9e81701.js');
6
6
  const core = require('@sankhyalabs/core');
7
- const taskbarElements = require('./taskbar-elements-9ad1f9c0.js');
7
+ const taskbarElements = require('./taskbar-elements-3ecd1278.js');
8
8
  require('./DataFetcher-77729a93.js');
9
- require('./pesquisa-fetcher-a1d0353f.js');
10
- const index$1 = require('./index-1dfc7a6e.js');
9
+ require('./pesquisa-fetcher-cba1b3d0.js');
10
+ const index$1 = require('./index-0922807b.js');
11
11
  require('./ISave-e91b70a7.js');
12
12
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
13
13
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
14
- require('./dataunit-fetcher-d4873076.js');
15
14
  require('./filter-item-type.enum-a7ffdaa6.js');
16
15
  require('./form-config-fetcher-feb08214.js');
17
16
  const constants = require('./constants-35ddd366.js');
@@ -19,7 +18,6 @@ const authFetcher = require('./auth-fetcher-29bb791c.js');
19
18
  require('./index-102ba62d.js');
20
19
  require('./PrintUtils-bcaeb82f.js');
21
20
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
22
- require('@sankhyalabs/core/dist/utils/SortingUtils');
23
21
  require('./ResourceIDUtils-5ff86aa7.js');
24
22
 
25
23
  const snkCrudCss = ".sc-snk-crud-h{display:flex;flex-direction:column;height:100%;width:100%}";
@@ -31,11 +29,8 @@ const SnkCrud = class {
31
29
  this.configuratorSave = index.createEvent(this, "configuratorSave", 7);
32
30
  this.configuratorCancel = index.createEvent(this, "configuratorCancel", 7);
33
31
  this.formItemsReady = index.createEvent(this, "formItemsReady", 7);
34
- this.viewModeChanged = index.createEvent(this, "viewModeChanged", 7);
35
32
  this._keyDownHandler = async (event) => this.keyDownListener(event);
36
33
  this._viewHistory = [];
37
- this._customEditors = new Map();
38
- this._customRenders = new Map();
39
34
  this._dataUnit = undefined;
40
35
  this._dataState = undefined;
41
36
  this.attachmentRegisterKey = undefined;
@@ -58,10 +53,6 @@ const SnkCrud = class {
58
53
  this.filterBarLegacyConfigName = undefined;
59
54
  this.formLegacyConfigName = undefined;
60
55
  this.disablePersonalizedFilter = undefined;
61
- this.autoLoad = undefined;
62
- this.autoFocus = true;
63
- this.domainMessagesBuilder = undefined;
64
- this.setCustomFormTitle = undefined;
65
56
  this.customContainerId = `SNK-CRUD-CUSTOM-CONTAINER-${core.StringUtils.generateUUID()}`;
66
57
  }
67
58
  /**
@@ -97,49 +88,6 @@ const SnkCrud = class {
97
88
  async getFilterBar() {
98
89
  return await this._snkGrid.getFilterBar();
99
90
  }
100
- /**
101
- * Registra um editor customizado para campos da grade e formulário.
102
- */
103
- async addCustomEditor(fieldName, customEditor) {
104
- if (this._guidesViewer && this._snkGrid) {
105
- this._guidesViewer.addCustomEditor(fieldName, customEditor);
106
- this._snkGrid.addCustomEditor(fieldName, customEditor);
107
- return;
108
- }
109
- const newCustomEditors = new Map(this._customEditors);
110
- newCustomEditors.set(fieldName, customEditor);
111
- this._customEditors = newCustomEditors;
112
- }
113
- /**
114
- * Registra um render customizado para colunas da grid.
115
- */
116
- async addGridCustomRender(fieldName, customRender) {
117
- if (this._snkGrid) {
118
- this._snkGrid.addGridCustomRender(fieldName, customRender);
119
- return;
120
- }
121
- const newCustomRenders = new Map(this._customRenders);
122
- newCustomRenders.set(fieldName, customRender);
123
- this._customRenders = newCustomRenders;
124
- }
125
- /**
126
- * Registra um formatador de valores para uma coluna da grid.
127
- */
128
- async addCustomValueFormatter(columnName, customFormatter) {
129
- this._snkGrid.addCustomValueFormatter(columnName, customFormatter);
130
- }
131
- /**
132
- * Remove o formatador de valores de uma coluna da grid.
133
- */
134
- async removeCustomValueFormatter(columnName) {
135
- this._snkGrid.removeCustomValueFormatter(columnName);
136
- }
137
- /**
138
- * Altera/adiciona uma propriedade nos metadados do campo.
139
- */
140
- async setFieldProp(fieldName, propName, value) {
141
- await this._guidesViewer.setFieldProp(fieldName, propName, value);
142
- }
143
91
  currentViewModeWatcher(currentView) {
144
92
  this._viewHistory = [...this._viewHistory.slice(-1), currentView];
145
93
  }
@@ -170,7 +118,6 @@ const SnkCrud = class {
170
118
  else if (viewMode === constants.VIEW_MODE.FORM) {
171
119
  this._guidesViewer.setFocus();
172
120
  }
173
- this.viewModeChanged.emit(viewMode);
174
121
  }
175
122
  openConfig(viewMode) {
176
123
  this._snkConfigurator.close();
@@ -200,29 +147,6 @@ const SnkCrud = class {
200
147
  const joinedPrimaryKeys = recordCriteria.map(({ value }) => value).join('_');
201
148
  return joinedPrimaryKeys;
202
149
  }
203
- setCustomRenders() {
204
- if (!this._snkGrid) {
205
- return;
206
- }
207
- for (const [fieldName, customRender] of this._customRenders) {
208
- this._snkGrid.addGridCustomRender(fieldName, customRender);
209
- this._customRenders.delete(fieldName);
210
- }
211
- }
212
- setCustomEditors() {
213
- if (!this._snkGrid || !this._guidesViewer) {
214
- return;
215
- }
216
- for (const [fieldName, customEditor] of this._customEditors) {
217
- this._guidesViewer.addCustomEditor(fieldName, customEditor);
218
- this._snkGrid.addCustomEditor(fieldName, customEditor);
219
- this._customEditors.delete(fieldName);
220
- }
221
- }
222
- componentDidRender() {
223
- this.setCustomRenders();
224
- this.setCustomEditors();
225
- }
226
150
  componentWillLoad() {
227
151
  this._application = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
228
152
  let parent = this._element.parentElement;
@@ -234,7 +158,6 @@ const SnkCrud = class {
234
158
  this._snkDataUnit = parent;
235
159
  this._snkDataUnit.addEventListener("insertionMode", () => this.insertionModeHandler());
236
160
  this._snkDataUnit.addEventListener("cancelEdition", () => this.cancelHandler());
237
- this._snkDataUnit.domainMessagesBuilder = this.domainMessagesBuilder;
238
161
  this._dataUnit = this._snkDataUnit.dataUnit;
239
162
  this._dataState = this._snkDataUnit.dataState;
240
163
  if (!this._dataUnit) {
@@ -246,7 +169,12 @@ const SnkCrud = class {
246
169
  else {
247
170
  this.initDataUnit();
248
171
  }
249
- this._snkDataUnit.addEventListener("dataStateChange", this.handleDataStateChange.bind(this));
172
+ this._snkDataUnit.addEventListener("dataStateChange", async ({ detail: dataState }) => {
173
+ this._dataState = dataState;
174
+ if (dataState.selectedRecord !== undefined) {
175
+ this.attachmentRegisterKey = await this.getAttachmentRegisterKey();
176
+ }
177
+ });
250
178
  break;
251
179
  }
252
180
  parent = parent.parentElement;
@@ -262,25 +190,6 @@ const SnkCrud = class {
262
190
  this.removeShortcuts();
263
191
  window.removeEventListener("keydown", this._keyDownHandler);
264
192
  }
265
- async handleDataStateChange(evt) {
266
- var _a;
267
- this._dataState = evt.detail;
268
- if (this._dataState.selectedRecord !== undefined) {
269
- this.attachmentRegisterKey = await this.getAttachmentRegisterKey();
270
- }
271
- const fieldsWithRmPrecision = await this._snkDataUnit.getFieldsWithRmPrecision();
272
- for (const field of fieldsWithRmPrecision || []) {
273
- if (!field) {
274
- continue;
275
- }
276
- const rmPrecision = (_a = this._dataState.rowMetadata) === null || _a === void 0 ? void 0 : _a.getProp('rm_precision', field);
277
- if (!rmPrecision && rmPrecision !== 0) {
278
- continue;
279
- }
280
- await this.setFieldProp(field, 'precision', rmPrecision);
281
- await this.setFieldProp(field, 'prettyPrecision', rmPrecision);
282
- }
283
- }
284
193
  async initKeyboardManager() {
285
194
  var _a;
286
195
  const keyboardManager = await ((_a = this._application) === null || _a === void 0 ? void 0 : _a.getKeyboardManager());
@@ -400,7 +309,7 @@ const SnkCrud = class {
400
309
  return;
401
310
  }
402
311
  this._snkDataUnit.ignoreSaveMessage = this._currentViewMode === constants.VIEW_MODE.GRID;
403
- return (index.h(index.Host, null, index.h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "crud" }, index.h("stack-item", null, index.h("snk-grid", { ref: (ref) => this._snkGrid = ref, filterBarTitle: this.filterBarTitle, "data-element-id": "crud_grid", configName: this.configName, onGridDoubleClick: () => this.gridToForm(true), taskbarManager: this.taskbarManager, onActionClick: evt => this.executeAction(evt.detail), messagesBuilder: this.messagesBuilder, actionsList: this.actionsList, statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, presentationMode: this.presentationMode, recordsValidator: this.recordsValidator, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, canEdit: this._canEdit, resourceID: this._resourceID, disablePersonalizedFilter: this.disablePersonalizedFilter, gridLegacyConfigName: this.gridLegacyConfigName, filterBarLegacyConfigName: this.filterBarLegacyConfigName, autoLoad: this.autoLoad, autoFocus: this.autoFocus }, index.h("slot", { name: "GRID_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "GRID_HEADER_CUSTOM_ELEMENTS" }), index.h("slot", { name: "SnkGridHeader" }), index.h("slot", { name: "SnkGridFooter" }), index.h("slot", { name: "SnkGridTaskBar" }))), index.h("stack-item", null, index.h("snk-guides-viewer", { ref: ref => this._guidesViewer = ref, entityPath: this._snkDataUnit.entityName, messagesBuilder: this.messagesBuilder, onExit: () => this.setViewMode(constants.VIEW_MODE.GRID), dataState: this._dataState, dataUnit: this._dataUnit, actionsList: this.actionsList, taskbarManager: this.taskbarManager, configName: this.configName, onActionClick: evt => this.executeAction(evt.detail), presentationMode: this.presentationMode, "data-element-id": "crud_form", canEdit: this._canEdit, recordsValidator: this.recordsValidator, resourceID: this._resourceID, detailTaskbarCustomContainerId: this.customContainerId, formLegacyConfigName: this.formLegacyConfigName, getCustomTitle: this.setCustomFormTitle }, index.h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "SnkFormTaskBar" }))), index.h("stack-item", null, index.h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this._snkDataUnit.entityName, onBack: this.backView.bind(this) })), index.h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.setViewMode(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showActionButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this._resourceID, customContainerId: this.customContainerId })), index.h("div", { id: `${this.customContainerId}` }, index.h("slot", { name: "SnkConfigContainerSlot" }), index.h("slot", { name: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS" }), index.h("slot", { name: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }))));
312
+ return (index.h(index.Host, null, index.h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "crud" }, index.h("stack-item", null, index.h("snk-grid", { ref: (ref) => this._snkGrid = ref, filterBarTitle: this.filterBarTitle, "data-element-id": "crud_grid", configName: this.configName, onGridDoubleClick: () => this.gridToForm(true), taskbarManager: this.taskbarManager, onActionClick: evt => this.executeAction(evt.detail), messagesBuilder: this.messagesBuilder, actionsList: this.actionsList, statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, presentationMode: this.presentationMode, recordsValidator: this.recordsValidator, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, canEdit: this._canEdit, resourceID: this._resourceID, disablePersonalizedFilter: this.disablePersonalizedFilter, gridLegacyConfigName: this.gridLegacyConfigName, filterBarLegacyConfigName: this.filterBarLegacyConfigName }, index.h("slot", { name: "GRID_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "GRID_HEADER_CUSTOM_ELEMENTS" }), index.h("slot", { name: "SnkGridHeader" }), index.h("slot", { name: "SnkGridFooter" }), index.h("slot", { name: "SnkGridTaskBar" }))), index.h("stack-item", null, index.h("snk-guides-viewer", { ref: ref => this._guidesViewer = ref, entityPath: this._snkDataUnit.entityName, messagesBuilder: this.messagesBuilder, onExit: () => this.setViewMode(constants.VIEW_MODE.GRID), dataState: this._dataState, dataUnit: this._dataUnit, actionsList: this.actionsList, taskbarManager: this.taskbarManager, configName: this.configName, onActionClick: evt => this.executeAction(evt.detail), presentationMode: this.presentationMode, "data-element-id": "crud_form", canEdit: this._canEdit, recordsValidator: this.recordsValidator, resourceID: this._resourceID, detailTaskbarCustomContainerId: this.customContainerId, formLegacyConfigName: this.formLegacyConfigName }, index.h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "SnkFormTaskBar" }))), index.h("stack-item", null, index.h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this._snkDataUnit.entityName, onBack: this.backView.bind(this) })), index.h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.setViewMode(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showActionButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this._resourceID, customContainerId: this.customContainerId })), index.h("div", { id: `${this.customContainerId}` }, index.h("slot", { name: "SnkConfigContainerSlot" }), index.h("slot", { name: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS" }), index.h("slot", { name: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }))));
404
313
  }
405
314
  get _element() { return index.getElement(this); }
406
315
  static get watchers() { return {