@sankhyalabs/sankhyablocks 0.0.0-bugfix-dev-KB-38445.1 → 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 (248) hide show
  1. package/dist/cjs/{ConfigStorage-942ce74b.js → ConfigStorage-0a690675.js} +2 -2
  2. package/dist/cjs/{DataFetcher-313debd8.js → DataFetcher-77729a93.js} +7 -2
  3. package/dist/cjs/{SnkFormConfigManager-1b13bacd.js → SnkFormConfigManager-d6d5db6d.js} +5 -8
  4. package/dist/cjs/{SnkMessageBuilder-722b104e.js → SnkMessageBuilder-96b0f549.js} +13 -9
  5. package/dist/cjs/{IExporterProvider-597949f9.js → SnkMultiSelectionListDataSource-f79d220c.js} +6 -96
  6. package/dist/cjs/{auth-fetcher-54f5ff9d.js → auth-fetcher-29bb791c.js} +1 -1
  7. package/dist/cjs/{form-config-fetcher-2dd00e5b.js → form-config-fetcher-feb08214.js} +1 -1
  8. package/dist/cjs/{index-1dfc7a6e.js → index-0922807b.js} +0 -5
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/cjs/{dataunit-fetcher-688d3f05.js → pesquisa-fetcher-cba1b3d0.js} +181 -88
  11. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  12. package/dist/cjs/snk-actions-button_4.cjs.entry.js +5 -7
  13. package/dist/cjs/snk-application.cjs.entry.js +15 -38
  14. package/dist/cjs/snk-attach.cjs.entry.js +49 -74
  15. package/dist/cjs/snk-crud.cjs.entry.js +13 -99
  16. package/dist/cjs/snk-data-exporter.cjs.entry.js +88 -318
  17. package/dist/cjs/snk-data-unit-559ac55c.js +462 -0
  18. package/dist/cjs/snk-data-unit.cjs.entry.js +2 -12
  19. package/dist/cjs/snk-detail-view.cjs.entry.js +10 -51
  20. package/dist/cjs/snk-exporter-email-sender.cjs.entry.js +1 -1
  21. package/dist/cjs/snk-filter-bar.cjs.entry.js +14 -9
  22. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
  23. package/dist/cjs/snk-form-config.cjs.entry.js +2 -2
  24. package/dist/cjs/snk-form-view.cjs.entry.js +0 -67
  25. package/dist/cjs/snk-form.cjs.entry.js +9 -54
  26. package/dist/cjs/snk-grid.cjs.entry.js +112 -169
  27. package/dist/cjs/{snk-guides-viewer-67605336.js → snk-guides-viewer-bfcad2d6.js} +10 -38
  28. package/dist/cjs/snk-guides-viewer.cjs.entry.js +9 -11
  29. package/dist/cjs/snk-personalized-filter.cjs.entry.js +3 -3
  30. package/dist/cjs/snk-simple-crud.cjs.entry.js +40 -267
  31. package/dist/cjs/snk-taskbar.cjs.entry.js +3 -4
  32. package/dist/cjs/{taskbar-elements-9ad1f9c0.js → taskbar-elements-3ecd1278.js} +3 -3
  33. package/dist/collection/collection-manifest.json +1 -1
  34. package/dist/collection/components/snk-application/snk-application.js +11 -35
  35. package/dist/collection/components/snk-attach/snk-attach.js +44 -67
  36. package/dist/collection/components/snk-crud/snk-crud.js +7 -249
  37. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +0 -135
  38. package/dist/collection/components/snk-crud/subcomponents/snk-form-view.js +0 -161
  39. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +5 -112
  40. package/dist/collection/components/snk-data-exporter/exporter-email-sender/options-step.js +1 -1
  41. package/dist/collection/components/snk-data-exporter/interfaces/IExporterProvider.js +1 -54
  42. package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +52 -59
  43. package/dist/collection/components/snk-data-exporter/structure/ItemBuilder.js +2 -64
  44. package/dist/collection/components/snk-data-unit/snk-data-unit.js +214 -507
  45. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +11 -23
  46. package/dist/collection/components/snk-form/snk-form.js +5 -102
  47. package/dist/collection/components/snk-form-config/SnkFormConfigManager.js +3 -6
  48. package/dist/collection/components/snk-grid/snk-grid.css +0 -2
  49. package/dist/collection/components/snk-grid/snk-grid.js +102 -241
  50. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +18 -386
  51. package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +2 -2
  52. package/dist/collection/components/snk-taskbar/snk-taskbar.js +1 -2
  53. package/dist/collection/lib/@types/index.js +0 -5
  54. package/dist/collection/lib/dataUnit/InMemoryLoader.js +3 -7
  55. package/dist/collection/lib/http/data-fetcher/DataFetcher.js +8 -3
  56. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/DataUnitDataLoader.js +0 -3
  57. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/ArrayRepository.js +0 -4
  58. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.js +13 -11
  59. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/dataunit-fetcher.js +0 -1
  60. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js +4 -53
  61. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/index.js +34 -0
  62. package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +4 -4
  63. package/dist/collection/lib/message/SnkMessageBuilder.js +12 -5
  64. package/dist/collection/lib/message/resources/snk-data-exporter.msg.js +0 -2
  65. package/dist/collection/lib/message/resources/snk-data-unit.msg.js +0 -1
  66. package/dist/collection/lib/message/resources/snk-exporter.msg.js +1 -1
  67. package/dist/components/DataFetcher.js +8 -3
  68. package/dist/components/SnkFormConfigManager.js +3 -6
  69. package/dist/components/SnkMessageBuilder.js +13 -9
  70. package/dist/components/dataunit-fetcher.js +182 -84
  71. package/dist/components/{IExporterProvider.js → field-search.js} +6 -93
  72. package/dist/components/index2.js +33 -198
  73. package/dist/components/index3.js +199 -0
  74. package/dist/components/snk-actions-button2.js +11 -4
  75. package/dist/components/snk-application2.js +9 -31
  76. package/dist/components/snk-attach2.js +41 -65
  77. package/dist/components/snk-crud.js +11 -103
  78. package/dist/components/snk-data-exporter2.js +87 -311
  79. package/dist/components/snk-data-unit2.js +212 -470
  80. package/dist/components/snk-detail-view2.js +10 -87
  81. package/dist/components/snk-exporter-email-sender2.js +1 -1
  82. package/dist/components/snk-expression-item2.js +1 -1
  83. package/dist/components/snk-filter-bar2.js +11 -7
  84. package/dist/components/snk-form-view2.js +1 -72
  85. package/dist/components/snk-form.js +6 -53
  86. package/dist/components/snk-grid2.js +108 -170
  87. package/dist/components/snk-personalized-filter2.js +1 -1
  88. package/dist/components/snk-simple-crud2.js +23 -259
  89. package/dist/components/snk-taskbar2.js +5 -6
  90. package/dist/esm/{ConfigStorage-86187da3.js → ConfigStorage-8c2ddac8.js} +2 -2
  91. package/dist/esm/{DataFetcher-c1baf61d.js → DataFetcher-773a3e4b.js} +8 -3
  92. package/dist/esm/{SnkFormConfigManager-d4554df9.js → SnkFormConfigManager-c01b9d9d.js} +5 -8
  93. package/dist/esm/{SnkMessageBuilder-89925609.js → SnkMessageBuilder-72423074.js} +13 -9
  94. package/dist/esm/{IExporterProvider-63a188b6.js → SnkMultiSelectionListDataSource-a4805051.js} +7 -95
  95. package/dist/esm/{auth-fetcher-039abba3.js → auth-fetcher-a411f73c.js} +1 -1
  96. package/dist/esm/{form-config-fetcher-30fb808f.js → form-config-fetcher-e0382e5a.js} +1 -1
  97. package/dist/esm/{index-3aa4977a.js → index-0ece87a6.js} +1 -6
  98. package/dist/esm/loader.js +1 -1
  99. package/dist/esm/{dataunit-fetcher-264191b2.js → pesquisa-fetcher-34a8b8be.js} +182 -84
  100. package/dist/esm/sankhyablocks.js +1 -1
  101. package/dist/esm/snk-actions-button_4.entry.js +5 -7
  102. package/dist/esm/snk-application.entry.js +14 -37
  103. package/dist/esm/snk-attach.entry.js +44 -69
  104. package/dist/esm/snk-crud.entry.js +13 -99
  105. package/dist/esm/snk-data-exporter.entry.js +89 -319
  106. package/dist/esm/snk-data-unit-44215df7.js +460 -0
  107. package/dist/esm/snk-data-unit.entry.js +2 -12
  108. package/dist/esm/snk-detail-view.entry.js +10 -51
  109. package/dist/esm/snk-exporter-email-sender.entry.js +1 -1
  110. package/dist/esm/snk-filter-bar.entry.js +14 -9
  111. package/dist/esm/snk-filter-modal-item.entry.js +3 -3
  112. package/dist/esm/snk-form-config.entry.js +2 -2
  113. package/dist/esm/snk-form-view.entry.js +0 -67
  114. package/dist/esm/snk-form.entry.js +9 -54
  115. package/dist/esm/snk-grid.entry.js +110 -167
  116. package/dist/esm/{snk-guides-viewer-151f6091.js → snk-guides-viewer-edeac29f.js} +10 -38
  117. package/dist/esm/snk-guides-viewer.entry.js +9 -11
  118. package/dist/esm/snk-personalized-filter.entry.js +3 -3
  119. package/dist/esm/snk-simple-crud.entry.js +28 -255
  120. package/dist/esm/snk-taskbar.entry.js +3 -4
  121. package/dist/esm/{taskbar-elements-d59867f1.js → taskbar-elements-2473c8ac.js} +3 -3
  122. package/dist/sankhyablocks/p-03dcc5ff.entry.js +1 -0
  123. package/dist/sankhyablocks/{p-913a9979.js → p-0cd3c0a9.js} +1 -1
  124. package/dist/sankhyablocks/p-16a1dd18.entry.js +1 -0
  125. package/dist/sankhyablocks/p-176c3491.entry.js +1 -0
  126. package/dist/sankhyablocks/{p-df5451c7.js → p-181975f1.js} +1 -1
  127. package/dist/sankhyablocks/p-37e5d563.js +65 -0
  128. package/dist/sankhyablocks/p-38289a55.js +1 -0
  129. package/dist/sankhyablocks/{p-a1d72395.entry.js → p-41c2c191.entry.js} +1 -1
  130. package/dist/sankhyablocks/p-46e55a95.entry.js +1 -0
  131. package/dist/sankhyablocks/p-4e728357.entry.js +1 -0
  132. package/dist/sankhyablocks/p-5571bdfe.js +1 -0
  133. package/dist/sankhyablocks/p-5630574e.js +1 -0
  134. package/dist/sankhyablocks/p-594bc21d.js +1 -0
  135. package/dist/sankhyablocks/p-5f8c0426.entry.js +1 -0
  136. package/dist/sankhyablocks/p-80c64add.entry.js +1 -0
  137. package/dist/sankhyablocks/p-86af4cc2.js +1 -0
  138. package/dist/sankhyablocks/p-8b690717.js +1 -0
  139. package/dist/sankhyablocks/{p-aff76a53.js → p-96621231.js} +1 -1
  140. package/dist/sankhyablocks/p-a1832166.entry.js +1 -0
  141. package/dist/sankhyablocks/p-a809d944.entry.js +1 -0
  142. package/dist/sankhyablocks/p-a97226f6.entry.js +1 -0
  143. package/dist/sankhyablocks/p-add17f6a.entry.js +1 -0
  144. package/dist/sankhyablocks/{p-7e7a7473.js → p-ae4fc9a9.js} +1 -1
  145. package/dist/sankhyablocks/{p-eae7a817.entry.js → p-c2ae0fab.entry.js} +1 -1
  146. package/dist/sankhyablocks/p-c5a9a5d9.entry.js +1 -0
  147. package/dist/sankhyablocks/p-c5aa7d70.entry.js +11 -0
  148. package/dist/sankhyablocks/p-cb0147ab.entry.js +1 -0
  149. package/dist/sankhyablocks/p-f0145e3b.js +1 -0
  150. package/dist/sankhyablocks/{p-14a08904.entry.js → p-f03e4199.entry.js} +1 -1
  151. package/dist/sankhyablocks/p-f607db63.entry.js +1 -0
  152. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  153. package/dist/types/components/snk-application/snk-application.d.ts +3 -7
  154. package/dist/types/components/snk-attach/snk-attach.d.ts +9 -11
  155. package/dist/types/components/snk-crud/snk-crud.d.ts +1 -36
  156. package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +0 -23
  157. package/dist/types/components/snk-crud/subcomponents/snk-form-view.d.ts +3 -28
  158. package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +0 -19
  159. package/dist/types/components/snk-data-exporter/interfaces/IExporterProvider.d.ts +4 -24
  160. package/dist/types/components/snk-data-exporter/snk-data-exporter.d.ts +1 -4
  161. package/dist/types/components/snk-data-exporter/structure/ItemBuilder.d.ts +0 -21
  162. package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +2 -61
  163. package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +1 -4
  164. package/dist/types/components/snk-form/snk-form.d.ts +0 -14
  165. package/dist/types/components/snk-grid/snk-grid.d.ts +6 -46
  166. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +4 -58
  167. package/dist/types/components/snk-taskbar/elements/taskbar-elements.d.ts +1 -1
  168. package/dist/types/components.d.ts +4 -220
  169. package/dist/types/lib/@types/index.d.ts +0 -5
  170. package/dist/types/lib/dataUnit/InMemoryLoader.d.ts +1 -2
  171. package/dist/types/lib/http/data-fetcher/fetchers/data-unit/DataUnitDataLoader.d.ts +1 -2
  172. package/dist/types/lib/http/data-fetcher/fetchers/data-unit/cache/ArrayRepository.d.ts +0 -1
  173. package/dist/types/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.d.ts +0 -1
  174. package/dist/types/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.d.ts +0 -6
  175. package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/index.d.ts +3 -0
  176. package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IExporterColumnMetadata.d.ts +0 -3
  177. package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterParams.d.ts +1 -2
  178. package/dist/types/lib/http/data-fetcher/fetchers/pesquisa-fetcher.d.ts +0 -1
  179. package/package.json +1 -1
  180. package/dist/cjs/RecordIDUtils-3735135c.js +0 -43
  181. package/dist/cjs/pesquisa-fetcher-680e198f.js +0 -166
  182. package/dist/cjs/snk-data-unit-685272e7.js +0 -679
  183. package/dist/collection/components/snk-crud/interfaces/PropsCustomEditor.js +0 -1
  184. package/dist/collection/components/snk-crud/interfaces/PropsCustomRender.js +0 -1
  185. package/dist/collection/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.js +0 -97
  186. package/dist/collection/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.js +0 -74
  187. package/dist/collection/components/snk-data-exporter/interfaces/IExporterStrategy.js +0 -1
  188. package/dist/collection/components/snk-data-exporter/providers/ClientSideExporterProvider.js +0 -58
  189. package/dist/collection/components/snk-data-exporter/providers/ServerSideExporterProvider.js +0 -55
  190. package/dist/collection/components/snk-data-exporter/test/resources/ClientSideExporterStrategyResources.js +0 -88
  191. package/dist/collection/components/snk-data-exporter/utils/ParserExport.js +0 -20
  192. package/dist/collection/components/snk-data-exporter/utils/RecordIDUtils.js +0 -38
  193. package/dist/collection/components/snk-data-unit/test/resources/metadataMock.js +0 -24
  194. package/dist/collection/components/snk-data-unit/test/resources/parentMetadataMock.js +0 -18
  195. package/dist/collection/lib/DefaultCustomFormatters/RmPrecisionCustomValueFormatter.js +0 -35
  196. package/dist/collection/lib/dataUnit/ValueFormatter.js +0 -4
  197. package/dist/collection/lib/dataUnit/interfaces/InMemoryLoaderConfig.js +0 -1
  198. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IBuildRequestBodyLoadRowMetadata.js +0 -1
  199. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IRowMetadata.js +0 -1
  200. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/test/resources/metadataMock.js +0 -22
  201. package/dist/components/ISave.js +0 -47
  202. package/dist/components/pesquisa-fetcher.js +0 -164
  203. package/dist/esm/RecordIDUtils-87d02110.js +0 -41
  204. package/dist/esm/pesquisa-fetcher-03c8f919.js +0 -164
  205. package/dist/esm/snk-data-unit-63f83504.js +0 -677
  206. package/dist/sankhyablocks/p-14b9f964.entry.js +0 -1
  207. package/dist/sankhyablocks/p-19c18d06.entry.js +0 -1
  208. package/dist/sankhyablocks/p-1db45d26.entry.js +0 -1
  209. package/dist/sankhyablocks/p-219f888d.entry.js +0 -1
  210. package/dist/sankhyablocks/p-30cf616e.js +0 -1
  211. package/dist/sankhyablocks/p-3a212712.js +0 -1
  212. package/dist/sankhyablocks/p-47b60deb.entry.js +0 -1
  213. package/dist/sankhyablocks/p-7505da04.entry.js +0 -1
  214. package/dist/sankhyablocks/p-75f83d1d.entry.js +0 -1
  215. package/dist/sankhyablocks/p-7a337364.js +0 -1
  216. package/dist/sankhyablocks/p-829d4045.js +0 -1
  217. package/dist/sankhyablocks/p-82a0bfb0.entry.js +0 -11
  218. package/dist/sankhyablocks/p-8fc470e5.entry.js +0 -1
  219. package/dist/sankhyablocks/p-941bf3ef.entry.js +0 -1
  220. package/dist/sankhyablocks/p-9863d682.js +0 -1
  221. package/dist/sankhyablocks/p-af8efd95.js +0 -6
  222. package/dist/sankhyablocks/p-b4b21558.entry.js +0 -1
  223. package/dist/sankhyablocks/p-bad55caa.entry.js +0 -1
  224. package/dist/sankhyablocks/p-c053256c.entry.js +0 -1
  225. package/dist/sankhyablocks/p-c5268346.entry.js +0 -1
  226. package/dist/sankhyablocks/p-cefba299.js +0 -1
  227. package/dist/sankhyablocks/p-dc7c9047.js +0 -1
  228. package/dist/sankhyablocks/p-f2809746.entry.js +0 -1
  229. package/dist/sankhyablocks/p-fcac4dfc.js +0 -1
  230. package/dist/sankhyablocks/p-fe79f83a.js +0 -60
  231. package/dist/types/components/snk-crud/interfaces/PropsCustomEditor.d.ts +0 -4
  232. package/dist/types/components/snk-crud/interfaces/PropsCustomRender.d.ts +0 -4
  233. package/dist/types/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.d.ts +0 -14
  234. package/dist/types/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.d.ts +0 -12
  235. package/dist/types/components/snk-data-exporter/interfaces/IExporterStrategy.d.ts +0 -5
  236. package/dist/types/components/snk-data-exporter/providers/ClientSideExporterProvider.d.ts +0 -17
  237. package/dist/types/components/snk-data-exporter/providers/ServerSideExporterProvider.d.ts +0 -17
  238. package/dist/types/components/snk-data-exporter/test/resources/ClientSideExporterStrategyResources.d.ts +0 -77
  239. package/dist/types/components/snk-data-exporter/utils/ParserExport.d.ts +0 -4
  240. package/dist/types/components/snk-data-exporter/utils/RecordIDUtils.d.ts +0 -3
  241. package/dist/types/components/snk-data-unit/test/resources/metadataMock.d.ts +0 -3
  242. package/dist/types/components/snk-data-unit/test/resources/parentMetadataMock.d.ts +0 -3
  243. package/dist/types/lib/DefaultCustomFormatters/RmPrecisionCustomValueFormatter.d.ts +0 -11
  244. package/dist/types/lib/dataUnit/ValueFormatter.d.ts +0 -2
  245. package/dist/types/lib/dataUnit/interfaces/InMemoryLoaderConfig.d.ts +0 -3
  246. package/dist/types/lib/http/data-fetcher/fetchers/data-unit/interfaces/IBuildRequestBodyLoadRowMetadata.d.ts +0 -10
  247. package/dist/types/lib/http/data-fetcher/fetchers/data-unit/interfaces/IRowMetadata.d.ts +0 -7
  248. package/dist/types/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/test/resources/metadataMock.d.ts +0 -20
@@ -1,19 +1,18 @@
1
1
  import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-a7d3d3f1.js';
2
2
  import { Action, ElementIDUtils } from '@sankhyalabs/core';
3
- import { S as SnkFormConfigManager } from './SnkFormConfigManager-d4554df9.js';
3
+ import { S as SnkFormConfigManager } from './SnkFormConfigManager-c01b9d9d.js';
4
4
  import { buildFormMetadata, FormMetadata } from '@sankhyalabs/ezui/dist/collection/utils/form';
5
5
  import { o as openFieldSearch, T as TaskbarProcessor, b as buildFieldSearch } from './field-search-efbe307f.js';
6
- import { T as TaskbarElement } from './taskbar-elements-d59867f1.js';
6
+ import { T as TaskbarElement } from './taskbar-elements-2473c8ac.js';
7
7
  import { d as VIEW_MODE } from './constants-8457af36.js';
8
- import './DataFetcher-c1baf61d.js';
9
- import './pesquisa-fetcher-03c8f919.js';
10
- import { P as PresentationMode } from './index-3aa4977a.js';
8
+ import './DataFetcher-773a3e4b.js';
9
+ import './pesquisa-fetcher-34a8b8be.js';
10
+ import { P as PresentationMode } from './index-0ece87a6.js';
11
11
  import './ISave-d8c8bc59.js';
12
12
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
13
13
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
14
- import './dataunit-fetcher-264191b2.js';
15
14
  import './filter-item-type.enum-d45e026f.js';
16
- import './form-config-fetcher-30fb808f.js';
15
+ import './form-config-fetcher-e0382e5a.js';
17
16
  import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
18
17
 
19
18
  const snkGuidesViewerCss = ".sc-snk-guides-viewer-h{--snk-guides-viewer--space-large:var(--space--large, 24px);--snk-guides-viewer--space-medium:var(--space--medium, 12px);--snk-guides-viewer__header--min-height:94px;--snk-guides-viewer__header--z-index:var(--more-visible, 2);--snk-guides-viewer__header--background-color:var(--background--body, #fafcff);--snk-guides-viewer__guide-navigator--width:340px;display:block}snk-form-view.sc-snk-guides-viewer{width:100%}.snk-guides-viewer.sc-snk-guides-viewer{position:relative;padding-left:0px;padding-top:0px;padding-right:var(--snk-guides-viewer--space-large);padding-bottom:var(--snk-guides-viewer--space-large)}.snk-guides-viewer__detail-container.sc-snk-guides-viewer{display:flex;row-gap:24px;flex-direction:column}.snk-guides-viewer__header.sc-snk-guides-viewer{position:sticky;align-items:center;top:0;z-index:var(--snk-guides-viewer__header--z-index);background-color:var(--snk-guides-viewer__header--background-color);min-height:var(--snk-guides-viewer__header--min-height);width:calc(100% + (var(--snk-guides-viewer--space-large) * 2));padding-left:var(--snk-guides-viewer--space-large);padding-right:var(--snk-guides-viewer--space-large);padding-top:var(--snk-guides-viewer--space-large);padding-bottom:var(--snk-guides-viewer--space-medium);margin-left:calc(var(--snk-guides-viewer--space-large) * -1);margin-right:calc(var(--snk-guides-viewer--space-large) * -1);margin-bottom:var(--snk-guides-viewer--space-medium)}.snk-guides-viewer__header-breadcrumb.sc-snk-guides-viewer{width:25%;display:flex}.snk-guides-viewer__header-taskbar.sc-snk-guides-viewer{width:75%}.snk-guides-viewer__container.sc-snk-guides-viewer{display:grid;grid-template-columns:minmax(0, auto) minmax(0, 100%);height:100%;column-gap:var(--snk-guides-viewer--space-large)}.snk-guides-viewer__guide-navigator.sc-snk-guides-viewer{position:sticky;top:calc(var(--snk-guides-viewer__header--min-height) + var(--snk-guides-viewer--space-medium));height:calc(100vh - var(--snk-guides-viewer__header--min-height) - var(--snk-guides-viewer--space-large) - var(--snk-guides-viewer--space-medium))}.snk-guides-viewer__guide-navigator[open].sc-snk-guides-viewer{width:var(--snk-guides-viewer__guide-navigator--width);max-width:var(--snk-guides-viewer__guide-navigator--width);min-width:var(--snk-guides-viewer__guide-navigator--width)}.snk-guides-viewer__detail-content.sc-snk-guides-viewer{min-height:100%;align-items:flex-start;align-content:flex-start}";
@@ -47,9 +46,6 @@ const SnkGuidesViewer = class {
47
46
  this._formEditorConfigManager = undefined;
48
47
  this._formEditorDataUnit = undefined;
49
48
  this._fieldToGetFocus = undefined;
50
- this._customEditors = undefined;
51
- this._customRenders = undefined;
52
- this._fieldsProps = {};
53
49
  }
54
50
  observeDataUnit() {
55
51
  this.loadGuides(true);
@@ -80,28 +76,6 @@ const SnkGuidesViewer = class {
80
76
  async findField() {
81
77
  await openFieldSearch(this._moreOptions, this._fieldSearch);
82
78
  }
83
- /**
84
- * Registra um editor customizado para campos da grade e formulário
85
- */
86
- async addCustomEditor(fieldName, customEditor) {
87
- this._customEditors = Object.assign(Object.assign({}, this._customEditors), { [fieldName]: customEditor });
88
- }
89
- /**
90
- * Registra um render customizado para colunas da grid.
91
- */
92
- async addGridCustomRender(fieldName, customRender) {
93
- this._customRenders = Object.assign(Object.assign({}, this._customRenders), { [fieldName]: customRender });
94
- }
95
- ;
96
- /**
97
- * Altera/adiciona uma propriedade nos metadados do campo.
98
- */
99
- async setFieldProp(fieldName, propName, value) {
100
- const newFieldsProps = {
101
- [fieldName]: Object.assign(Object.assign({}, this._fieldsProps[fieldName]), { [propName]: value })
102
- };
103
- this._fieldsProps = Object.assign(Object.assign({}, this._fieldsProps), newFieldsProps);
104
- }
105
79
  /**
106
80
  * Atribui o foco para o componente.
107
81
  */
@@ -250,7 +224,7 @@ const SnkGuidesViewer = class {
250
224
  if (sheet == undefined) {
251
225
  return;
252
226
  }
253
- return h("snk-form-view", { levelPath: params.levelPath, label: sheet.label, name: formName, fields: sheet.fields, formMetadata: params.formMetadata, dataUnit: params.dataUnit, recordsValidator: params.recordsValidator, contracted: (cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.presentation) === "CONTRACTED", fixed: cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.fixed, summaryFields: (_b = (_a = params.formConfig) === null || _a === void 0 ? void 0 : _a.summary) === null || _b === void 0 ? void 0 : _b.get(formName), fieldToFocus: params.fieldToFocus, key: formName, onSnkRequestClearFieldToFocus: _ => { var _a; return (_a = params.onRequestClearFieldToFocus) === null || _a === void 0 ? void 0 : _a.call(params); }, customEditors: params.propsCustomEditor, fieldsProps: params.fieldsProps });
227
+ return h("snk-form-view", { levelPath: params.levelPath, label: sheet.label, name: formName, fields: sheet.fields, formMetadata: params.formMetadata, dataUnit: params.dataUnit, recordsValidator: params.recordsValidator, contracted: (cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.presentation) === "CONTRACTED", fixed: cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.fixed, summaryFields: (_b = (_a = params.formConfig) === null || _a === void 0 ? void 0 : _a.summary) === null || _b === void 0 ? void 0 : _b.get(formName), fieldToFocus: params.fieldToFocus, key: formName, onSnkRequestClearFieldToFocus: _ => { var _a; return (_a = params.onRequestClearFieldToFocus) === null || _a === void 0 ? void 0 : _a.call(params); } });
254
228
  })));
255
229
  }
256
230
  wrapDetail(levels, content) {
@@ -292,14 +266,14 @@ const SnkGuidesViewer = class {
292
266
  else {
293
267
  detailBranch = this.selectedGuide;
294
268
  }
295
- content = this.wrapDetail(levels, h("snk-detail-view", { ref: (ref) => this._currentDetail = ref, dataUnitName: this.getDataUnitName(levels, childEntityName), onSnkDetailGuidesChange: (evt) => this.updateGuide(evt.detail), entityName: childEntityName, selectedForm: formName, branchGuide: detailBranch, guideItemPath: this._breadcrumbItems, key: `detail${detailId}`, canEdit: this.canEdit, onSnkSwitchGuide: evt => this._guideNavigator.selectGuide(evt.detail), resourceID: this.resourceID, taskbarCustomContainerId: this.detailTaskbarCustomContainerId, customEditors: this._customEditors, customRenders: this._customRenders }));
269
+ content = this.wrapDetail(levels, h("snk-detail-view", { ref: (ref) => this._currentDetail = ref, dataUnitName: this.getDataUnitName(levels, childEntityName), onSnkDetailGuidesChange: (evt) => this.updateGuide(evt.detail), entityName: childEntityName, selectedForm: formName, branchGuide: detailBranch, guideItemPath: this._breadcrumbItems, key: `detail${detailId}`, canEdit: this.canEdit, onSnkSwitchGuide: evt => this._guideNavigator.selectGuide(evt.detail), resourceID: this.resourceID, taskbarCustomContainerId: this.detailTaskbarCustomContainerId }));
296
270
  }
297
271
  else {
298
272
  const cardId = this.selectedGuide.id;
299
273
  const sheet = this._masterFormMetadata.getSheet(cardId);
300
274
  if (sheet) {
301
275
  const cardConfig = (_c = (_b = this.masterFormConfig) === null || _b === void 0 ? void 0 : _b.cardsState) === null || _c === void 0 ? void 0 : _c.get(cardId);
302
- content = h("snk-form-view", { ref: ref => this._mainForm = ref, fixed: cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.fixed, summaryFields: (_e = (_d = this.masterFormConfig) === null || _d === void 0 ? void 0 : _d.summary) === null || _e === void 0 ? void 0 : _e.get(cardId), name: cardId, label: sheet.label, fields: sheet.fields, dataUnit: this.dataUnit, formMetadata: this._masterFormMetadata, recordsValidator: this.recordsValidator, fieldToFocus: this._fieldToGetFocus, key: guideId, onSnkRequestClearFieldToFocus: _ => this.clearFieldToFocusHandler(), customEditors: this._customEditors, fieldsProps: this._fieldsProps }, this.presentationMode == PresentationMode.SECONDARY && this.buildTaskBar());
276
+ content = h("snk-form-view", { ref: ref => this._mainForm = ref, fixed: cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.fixed, summaryFields: (_e = (_d = this.masterFormConfig) === null || _d === void 0 ? void 0 : _d.summary) === null || _e === void 0 ? void 0 : _e.get(cardId), name: cardId, label: sheet.label, fields: sheet.fields, dataUnit: this.dataUnit, formMetadata: this._masterFormMetadata, recordsValidator: this.recordsValidator, fieldToFocus: this._fieldToGetFocus, key: guideId, onSnkRequestClearFieldToFocus: _ => this.clearFieldToFocusHandler() }, this.presentationMode == PresentationMode.SECONDARY && this.buildTaskBar());
303
277
  }
304
278
  }
305
279
  return content;
@@ -502,9 +476,7 @@ const SnkGuidesViewer = class {
502
476
  dataUnit: this.dataUnit,
503
477
  recordsValidator: this.recordsValidator,
504
478
  fieldToFocus: this._fieldToGetFocus,
505
- onRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this),
506
- propsCustomEditor: this._customEditors,
507
- fieldsProps: this._fieldsProps
479
+ onRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this)
508
480
  }), this.getContent())), h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this.getConfigViewMode(), onConfigSelected: (evt) => this.changeConfigViewMode(evt.detail), messagesBuilder: this.messagesBuilder, onOpenConfig: (evt) => this.openConfig(evt.detail), resourceID: this.resourceID })));
509
481
  }
510
482
  static get watchers() { return {
@@ -1,24 +1,22 @@
1
- export { S as snk_guides_viewer } from './snk-guides-viewer-151f6091.js';
1
+ export { S as snk_guides_viewer } from './snk-guides-viewer-edeac29f.js';
2
2
  import './index-a7d3d3f1.js';
3
3
  import '@sankhyalabs/core';
4
- import './SnkFormConfigManager-d4554df9.js';
5
- import './ConfigStorage-86187da3.js';
6
- import './form-config-fetcher-30fb808f.js';
7
- import './DataFetcher-c1baf61d.js';
4
+ import './SnkFormConfigManager-c01b9d9d.js';
5
+ import './ConfigStorage-8c2ddac8.js';
6
+ import './form-config-fetcher-e0382e5a.js';
7
+ import './DataFetcher-773a3e4b.js';
8
8
  import './PrintUtils-3e4ff0f5.js';
9
9
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
10
10
  import './filter-item-type.enum-d45e026f.js';
11
11
  import '@sankhyalabs/ezui/dist/collection/utils/form';
12
12
  import './field-search-efbe307f.js';
13
- import './taskbar-elements-d59867f1.js';
14
- import './index-3aa4977a.js';
13
+ import './taskbar-elements-2473c8ac.js';
14
+ import './index-0ece87a6.js';
15
15
  import './index-bdf75557.js';
16
16
  import './constants-8457af36.js';
17
- import './pesquisa-fetcher-03c8f919.js';
18
- import './ISave-d8c8bc59.js';
17
+ import './pesquisa-fetcher-34a8b8be.js';
19
18
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
20
- import './dataunit-fetcher-264191b2.js';
21
19
  import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
22
- import '@sankhyalabs/core/dist/utils/SortingUtils';
23
20
  import './ResourceIDUtils-a114189a.js';
21
+ import './ISave-d8c8bc59.js';
24
22
  import '@sankhyalabs/core/dist/dataunit/DataUnit';
@@ -1,13 +1,13 @@
1
1
  import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host } from './index-a7d3d3f1.js';
2
2
  import { StringUtils, ObjectUtils, ApplicationContext, ElementIDUtils } from '@sankhyalabs/core';
3
3
  import { P as PersonalizedFilterUtils } from './PersonalizedFilterUtils-e2b38ef7.js';
4
- import { P as PersonalizedFilterFetcher, C as ConfigStorage } from './ConfigStorage-86187da3.js';
4
+ import { P as PersonalizedFilterFetcher, C as ConfigStorage } from './ConfigStorage-8c2ddac8.js';
5
5
  import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
6
6
  import { a as FilterGroupCondition } from './index-ae591a44.js';
7
7
  import { s as store } from './index-bdf75557.js';
8
8
  import './filter-item-type.enum-d45e026f.js';
9
- import './form-config-fetcher-30fb808f.js';
10
- import './DataFetcher-c1baf61d.js';
9
+ import './form-config-fetcher-e0382e5a.js';
10
+ import './DataFetcher-773a3e4b.js';
11
11
  import './PrintUtils-3e4ff0f5.js';
12
12
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
13
13
 
@@ -1,87 +1,29 @@
1
1
  import { r as registerInstance, c as createEvent, h, g as getElement } from './index-a7d3d3f1.js';
2
- import { UserInterface, StringUtils, ApplicationContext, ObjectUtils, DataType, JSUtils, FloatingManager, ElementIDUtils } from '@sankhyalabs/core';
2
+ import { StringUtils, ApplicationContext, ObjectUtils, DataType, UserInterface, JSUtils, FloatingManager, ElementIDUtils } from '@sankhyalabs/core';
3
3
  import { CSSVarsUtils } from '@sankhyalabs/ezui/dist/collection/utils';
4
4
  import { d as VIEW_MODE, S as SIMPLE_CRUD_MODE } from './constants-8457af36.js';
5
- import { T as TaskbarElement } from './taskbar-elements-d59867f1.js';
6
- import './DataFetcher-c1baf61d.js';
7
- import './pesquisa-fetcher-03c8f919.js';
8
- import { C as CommonsExporter, S as SnkMultiSelectionListDataSource, R as RmPrecisionCustomValueFormatter, a as CrudUtils } from './IExporterProvider-63a188b6.js';
9
- import { D as DataExporterOption, P as PresentationMode } from './index-3aa4977a.js';
5
+ import { T as TaskbarElement } from './taskbar-elements-2473c8ac.js';
6
+ import './DataFetcher-773a3e4b.js';
7
+ import { I as InMemoryLoader } from './pesquisa-fetcher-34a8b8be.js';
8
+ import { S as SnkMultiSelectionListDataSource, C as CrudUtils } from './SnkMultiSelectionListDataSource-a4805051.js';
9
+ import { P as PresentationMode } from './index-0ece87a6.js';
10
10
  import './ISave-d8c8bc59.js';
11
11
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
12
12
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
13
- import { I as InMemoryLoader } from './dataunit-fetcher-264191b2.js';
14
13
  import './filter-item-type.enum-d45e026f.js';
15
- import { F as FormConfigFetcher } from './form-config-fetcher-30fb808f.js';
14
+ import { F as FormConfigFetcher } from './form-config-fetcher-e0382e5a.js';
16
15
  import { T as TaskbarProcessor, b as buildFieldSearch, o as openFieldSearch } from './field-search-efbe307f.js';
17
- import { C as ConfigStorage } from './ConfigStorage-86187da3.js';
18
- import { S as SnkFormConfigManager } from './SnkFormConfigManager-d4554df9.js';
19
- import { g as getSelectedIDs } from './RecordIDUtils-87d02110.js';
20
- import { s as store } from './index-bdf75557.js';
16
+ import { C as ConfigStorage } from './ConfigStorage-8c2ddac8.js';
17
+ import { S as SnkFormConfigManager } from './SnkFormConfigManager-c01b9d9d.js';
18
+ import './index-bdf75557.js';
21
19
  import './PrintUtils-3e4ff0f5.js';
22
- import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource';
23
20
  import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
24
- import '@sankhyalabs/core/dist/utils/SortingUtils';
25
21
  import './ResourceIDUtils-a114189a.js';
22
+ import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource';
26
23
 
27
24
  const REGULAR_DEFAULT_BTNS = ["INSERT", "REFRESH", "PREVIOUS", "NEXT", "DIVIDER", "MORE_OPTIONS"];
28
25
  const REGULAR_SELECTED_BTNS = ["INSERT", "REFRESH", "PREVIOUS", "NEXT", "DIVIDER", "CLONE", "REMOVE", "DIVIDER", "MORE_OPTIONS"];
29
26
 
30
- class ClientSideExporterProvider extends CommonsExporter {
31
- getSelectedNumber() {
32
- return this.dataUnit.getSelectionInfo().length;
33
- }
34
- getTotalRecords() {
35
- var _a, _b, _c;
36
- const { total } = ((_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getPaginationInfo()) || {};
37
- return total !== null && total !== void 0 ? total : (_c = (_b = this.dataUnit) === null || _b === void 0 ? void 0 : _b.records) === null || _c === void 0 ? void 0 : _c.length;
38
- }
39
- getSelectedIDs() {
40
- return getSelectedIDs(this.dataUnit);
41
- }
42
- getRecordID() {
43
- var _a, _b, _c;
44
- return (_c = (_b = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.records) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.__record__id__;
45
- }
46
- async getRecords() {
47
- if (this.dataUnit.records.length === 0) {
48
- return Promise.resolve([]);
49
- }
50
- const selectionInfo = this.dataUnit.getSelectionInfo();
51
- const records = selectionInfo.isEmpty() || selectionInfo.isAllRecords() ? await selectionInfo.getAllRecords() : selectionInfo.records;
52
- return Promise.resolve(records == undefined ? [] : records);
53
- }
54
- getHiddenOptions() {
55
- return [
56
- DataExporterOption.EXPORT_BY_EMAIL,
57
- DataExporterOption.EXPORT_PDF_TO_EMAIL,
58
- DataExporterOption.EXPORT_XLS_TO_EMAIL,
59
- DataExporterOption.EXPORT_PAGE_TO_PDF,
60
- DataExporterOption.EXPORT_PAGE_TO_XLS
61
- ];
62
- }
63
- formatValue(record, column) {
64
- const { id, descriptionFrom } = column;
65
- const value = record[descriptionFrom || id];
66
- if (value == undefined) {
67
- return "";
68
- }
69
- if (descriptionFrom != undefined) {
70
- return value.label;
71
- }
72
- const fieldDescriptor = this.dataUnit.getField(id);
73
- if (fieldDescriptor.userInterface === UserInterface.SEARCH) {
74
- return value.value;
75
- }
76
- if (column.customFormatter) {
77
- const ezGridColumn = this.getColumnsState().find(columnState => column.id === columnState.name);
78
- const formattedValue = column.customFormatter.format(value, ezGridColumn, record.__record__id__);
79
- return formattedValue;
80
- }
81
- return this.dataUnit.getFormattedValue(id, value);
82
- }
83
- }
84
-
85
27
  const snkSimpleCrudCss = ".sc-snk-simple-crud-h{display:flex;height:100%;width:100%;--snk-simple-crud-grid--min-height:300px}.simple-crud__container.sc-snk-simple-crud{display:grid;grid-template-rows:auto 1fr;row-gap:12px;height:100%;width:100%}.simple-crud__container-section.sc-snk-simple-crud{flex-wrap:unset;flex-direction:column}.simple-crud__form--hidden.sc-snk-simple-crud{display:none}ez-grid.sc-snk-simple-crud{--ez-grid__container--shadow:none;--ez-grid--min-height:var(--snk-simple-crud-grid--min-height)}ez-form.sc-snk-simple-crud{min-height:300px}";
86
28
 
87
29
  const SnkSimpleCrud = class {
@@ -96,13 +38,11 @@ const SnkSimpleCrud = class {
96
38
  this._multiSelectionListDataSource = new SnkMultiSelectionListDataSource();
97
39
  this._keyDownHandler = (event) => this.keyDownListener(event);
98
40
  this._formConfigFetcher = new FormConfigFetcher();
99
- this._customEditors = new Map();
100
- this._customRenders = new Map();
101
41
  this._taskbarProcessor = new TaskbarProcessor({
102
- "snkSimpleCrudTaskbar.form_regular": this.getButtons(false, [TaskbarElement.GRID_MODE]),
103
- "snkSimpleCrudTaskbar.grid_regular": this.getButtons(false, [TaskbarElement.DATA_EXPORTER, TaskbarElement.FORM_MODE]),
104
- "snkSimpleCrudTaskbar.form_selected": this.getButtons(true, [TaskbarElement.GRID_MODE]),
105
- "snkSimpleCrudTaskbar.grid_selected": this.getButtons(true, [TaskbarElement.DATA_EXPORTER, TaskbarElement.FORM_MODE]),
42
+ "snkSimpleCrudTaskbar.form_regular": this.getButtons(false, TaskbarElement.GRID_MODE),
43
+ "snkSimpleCrudTaskbar.grid_regular": this.getButtons(false, TaskbarElement.FORM_MODE),
44
+ "snkSimpleCrudTaskbar.form_selected": this.getButtons(true, TaskbarElement.GRID_MODE),
45
+ "snkSimpleCrudTaskbar.grid_selected": this.getButtons(true, TaskbarElement.FORM_MODE),
106
46
  "snkSimpleCrudTaskbar.finish_edition": ["CANCEL", "SAVE"]
107
47
  });
108
48
  this._showPopUpGridConfig = false;
@@ -113,15 +53,12 @@ const SnkSimpleCrud = class {
113
53
  this._customContainerId = `SNK-SIMPLE-CRUD-CUSTOM-CONTAINER-${StringUtils.generateUUID()}`;
114
54
  this.dataState = undefined;
115
55
  this.dataUnit = undefined;
116
- this.entityName = undefined;
117
56
  this.mode = SIMPLE_CRUD_MODE.SERVER;
118
57
  this.gridConfig = undefined;
119
58
  this.formConfig = undefined;
120
59
  this._formFields = [];
121
- this._fieldsProps = new Map();
122
60
  this.multipleSelection = undefined;
123
61
  this.useCancelConfirm = true;
124
- this.pageSize = 150;
125
62
  this.resourceID = undefined;
126
63
  this.taskbarManager = undefined;
127
64
  this.messagesBuilder = undefined;
@@ -132,33 +69,6 @@ const SnkSimpleCrud = class {
132
69
  this.gridLegacyConfigName = undefined;
133
70
  this.formLegacyConfigName = undefined;
134
71
  this.ignoreReadOnlyFormFields = false;
135
- this.autoFocus = true;
136
- this.autoLoad = undefined;
137
- }
138
- /**
139
- * Registra um editor customizado para campos da grade e formulário.
140
- */
141
- async addCustomEditor(fieldName, customEditor) {
142
- if (this._grid && this._form) {
143
- this._grid.addCustomEditor(fieldName, customEditor);
144
- this._form.addCustomEditor(fieldName, customEditor);
145
- return;
146
- }
147
- const newCustomEditors = new Map(this._customEditors);
148
- newCustomEditors.set(fieldName, customEditor);
149
- this._customEditors = newCustomEditors;
150
- }
151
- /**
152
- * Registra um render customizado para colunas da grid.
153
- */
154
- async addGridCustomRender(fieldName, customRender) {
155
- if (this._grid) {
156
- this._grid.addGridCustomRender(fieldName, customRender);
157
- return;
158
- }
159
- const newCustomRenders = new Map(this._customRenders);
160
- newCustomRenders.set(fieldName, customRender);
161
- this._customRenders = newCustomRenders;
162
72
  }
163
73
  handleResourceIDChanged(newValue, oldValue) {
164
74
  if (StringUtils.isEmpty(newValue)) {
@@ -170,30 +80,9 @@ const SnkSimpleCrud = class {
170
80
  this.loadFormConfig(true);
171
81
  this.loadGridConfig(true);
172
82
  }
173
- /**
174
- * Registra um formatador de valores para uma coluna da grid.
175
- */
176
- async addCustomValueFormatter(columnName, customFormatter) {
177
- this._grid.addCustomValueFormatter(columnName, customFormatter);
178
- }
179
- /**
180
- * Remove o formatador de valores de uma coluna da grid.
181
- */
182
- async removeCustomValueFormatter(columnName) {
183
- this._grid.removeCustomValueFormatter(columnName);
184
- }
185
- /**
186
- * Altera/adiciona uma propriedade nos metadados do campo.
187
- */
188
- async setFieldProp(fieldName, propName, value) {
189
- const newCustomFieldProps = new Map(this._fieldsProps);
190
- const currentProps = this._fieldsProps.get(fieldName);
191
- newCustomFieldProps.set(fieldName, Object.assign(Object.assign({}, currentProps), { [propName]: value }));
192
- this._fieldsProps = newCustomFieldProps;
193
- }
194
- getButtons(selected, extraButtons) {
83
+ getButtons(selected, changeModeBtn) {
195
84
  return this.addConfigButton(this.resolveInMemoryBtns(selected ? REGULAR_SELECTED_BTNS : REGULAR_DEFAULT_BTNS)
196
- .concat(extraButtons));
85
+ .concat(changeModeBtn));
197
86
  }
198
87
  addConfigButton(buttons) {
199
88
  if (this.configName === undefined) {
@@ -233,19 +122,15 @@ const SnkSimpleCrud = class {
233
122
  }
234
123
  evt.stopPropagation();
235
124
  }
236
- async onChangeEntityName(newValue) {
237
- if (this.dataUnit)
238
- return;
239
- const application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
240
- this.dataUnit = await application.getDataUnit(newValue, null, null, this.configName);
241
- }
242
125
  onModeChange() {
243
126
  if (this.mode == SIMPLE_CRUD_MODE.IN_MEMORY) {
244
127
  this.initInMemoryDataUnit();
245
128
  }
246
129
  }
247
130
  observeDataState(newValue, oldValue) {
248
- this.handleDataStateChange(newValue, oldValue);
131
+ if (ObjectUtils.objectToString(oldValue) != ObjectUtils.objectToString(newValue)) {
132
+ this.dataStateChange.emit(newValue);
133
+ }
249
134
  }
250
135
  async observeFormLegacy(newValue, oldValue) {
251
136
  await this.handleUpdateFormLegacyConfig(newValue, oldValue);
@@ -253,28 +138,6 @@ const SnkSimpleCrud = class {
253
138
  async observeGridLegacy(newValue, oldValue) {
254
139
  await this.handleUpdateGridLegacyConfig(newValue, oldValue);
255
140
  }
256
- async handleDataStateChange(newValue, oldValue) {
257
- if (ObjectUtils.objectToString(oldValue) != ObjectUtils.objectToString(newValue)) {
258
- this.dataStateChange.emit(newValue);
259
- }
260
- await this.processRmPrecision();
261
- }
262
- async processRmPrecision() {
263
- var _a, _b;
264
- const fieldsWithRmPrecision = await this._snkDataUnit.getFieldsWithRmPrecision();
265
- for (const field of fieldsWithRmPrecision || []) {
266
- if (!field) {
267
- continue;
268
- }
269
- const rmPrecision = (_b = (_a = this.dataState) === null || _a === void 0 ? void 0 : _a.rowMetadata) === null || _b === void 0 ? void 0 : _b.getProp('rm_precision', field);
270
- if (!rmPrecision && rmPrecision !== 0) {
271
- continue;
272
- }
273
- await this.setFieldProp(field, 'precision', rmPrecision);
274
- await this.setFieldProp(field, 'prettyPrecision', rmPrecision);
275
- }
276
- this._rmPrecisionCustomValueFormatter.setDataState(this.dataState);
277
- }
278
141
  async handleUpdateGridLegacyConfig(newValue, oldValue) {
279
142
  if (newValue == undefined || newValue == oldValue) {
280
143
  return;
@@ -371,7 +234,6 @@ const SnkSimpleCrud = class {
371
234
  }
372
235
  async componentWillRender() {
373
236
  this._resourceID = await this.application.getResourceID();
374
- this.dataExporterProviderStore();
375
237
  this._taskbarProcessor.process(this.getTaskBarId(), this.taskbarManager, this.dataState, this.getTaskBarDisabledButtons());
376
238
  if (this.configName === undefined) {
377
239
  return;
@@ -383,70 +245,32 @@ const SnkSimpleCrud = class {
383
245
  this.loadGridConfig();
384
246
  this.loadFormConfig();
385
247
  }
386
- componentDidRender() {
387
- this._rmPrecisionCustomValueFormatter.setGrid(this._grid);
388
- this.addGridCustomValueFormattters();
389
- this.setFieldsProps();
390
- this.setCustomRenders();
391
- this.setCustomEditors();
392
- }
393
248
  componentWillLoad() {
394
249
  this.processMetadata();
395
250
  this.onModeChange();
396
251
  this.configDatasource();
397
- this._rmPrecisionCustomValueFormatter = new RmPrecisionCustomValueFormatter();
398
252
  }
399
253
  componentDidLoad() {
400
254
  CSSVarsUtils.applyVarsGrid(this._element, this._grid);
401
255
  }
402
- setCustomRenders() {
403
- if (!this._grid) {
404
- return;
405
- }
406
- for (const [fieldName, customRender] of this._customRenders) {
407
- this._grid.addGridCustomRender(fieldName, customRender);
408
- this._customRenders.delete(fieldName);
409
- }
410
- }
411
- setCustomEditors() {
412
- if (!this._grid || !this._form) {
413
- return;
414
- }
415
- for (const [fieldName, customEditor] of this._customEditors) {
416
- this._grid.addCustomEditor(fieldName, customEditor);
417
- this._form.addCustomEditor(fieldName, customEditor);
418
- this._customEditors.delete(fieldName);
419
- }
420
- }
421
256
  configDatasource() {
422
257
  this._multiSelectionListDataSource.setApplication(this.application);
423
258
  this._multiSelectionListDataSource.setDataUnit(this.dataUnit);
424
259
  }
425
- setFieldsProps() {
426
- if (!this._form) {
427
- return;
428
- }
429
- for (const [fieldName, props] of this._fieldsProps) {
430
- for (const prop in props) {
431
- this._form.setFieldProp(fieldName, prop, props[prop]);
432
- }
433
- this._fieldsProps.delete(fieldName);
434
- }
435
- }
436
260
  getTaskBarId() {
437
- var _a, _b;
261
+ var _a, _b, _c;
438
262
  if ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.isDirty) {
439
263
  return "snkSimpleCrudTaskbar.finish_edition";
440
264
  }
441
265
  if (((_b = this.dataState) === null || _b === void 0 ? void 0 : _b.selectionInfo) &&
442
266
  !this.dataState.selectionInfo.isAllRecords() &&
443
- this.dataState.selectionInfo.length > 0) {
267
+ ((_c = this.dataState.selectionInfo.records) === null || _c === void 0 ? void 0 : _c.length) > 0) {
444
268
  return this._currentViewMode === VIEW_MODE.GRID ? "snkSimpleCrudTaskbar.grid_selected" : "snkSimpleCrudTaskbar.form_selected";
445
269
  }
446
270
  return this._currentViewMode === VIEW_MODE.GRID ? "snkSimpleCrudTaskbar.grid_regular" : "snkSimpleCrudTaskbar.form_regular";
447
271
  }
448
272
  initInMemoryDataUnit() {
449
- this._inMemoryLoader = new InMemoryLoader(this._metadata, undefined, { autoLoad: this.autoLoad });
273
+ this._inMemoryLoader = new InMemoryLoader(this._metadata);
450
274
  this.dataUnit = this._inMemoryLoader.dataUnit;
451
275
  this.dataUnitReady.emit(this.dataUnit);
452
276
  }
@@ -485,11 +309,12 @@ const SnkSimpleCrud = class {
485
309
  var _a;
486
310
  (_a = this._snkConfigurator) === null || _a === void 0 ? void 0 : _a.close();
487
311
  }
488
- async updateConfig() {
312
+ updateConfig() {
489
313
  if (this._formConfigManager == undefined) {
490
314
  this._formConfigManager = new SnkFormConfigManager(this.configName, this.resolveResourceID());
491
315
  }
492
316
  this._formConfigManager.setConfig(this.formConfig);
317
+ return;
493
318
  }
494
319
  processMetadata() {
495
320
  const fieldsMetadataElem = this._element.querySelectorAll("snk-field-metadata");
@@ -521,28 +346,11 @@ const SnkSimpleCrud = class {
521
346
  };
522
347
  }
523
348
  }
524
- addGridCustomValueFormattters() {
525
- var _a, _b, _c;
526
- const metadataFields = ((_a = this._metadata) === null || _a === void 0 ? void 0 : _a.fields) || ((_c = (_b = this.dataUnit) === null || _b === void 0 ? void 0 : _b.metadata) === null || _c === void 0 ? void 0 : _c.fields);
527
- if (!metadataFields) {
528
- return;
529
- }
530
- const fieldsWithRmPrecision = [];
531
- metadataFields.forEach((field) => {
532
- var _a;
533
- if (((_a = field.properties) === null || _a === void 0 ? void 0 : _a.rm_precision) && !fieldsWithRmPrecision.includes(field.name)) {
534
- fieldsWithRmPrecision.push(field.name);
535
- }
536
- });
537
- fieldsWithRmPrecision.forEach(field => {
538
- this.addCustomValueFormatter(field, this._rmPrecisionCustomValueFormatter);
539
- });
540
- }
541
349
  onDataStateChange(evt) {
542
350
  this.dataState = Object.assign({}, evt.detail);
543
351
  }
544
352
  getTaskBarDisabledButtons() {
545
- var _a, _b, _c, _d, _e, _f;
353
+ var _a, _b, _c, _d;
546
354
  const disabledButtons = [];
547
355
  if (!((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.hasNext)) {
548
356
  disabledButtons.push(TaskbarElement.NEXT);
@@ -553,9 +361,6 @@ const SnkSimpleCrud = class {
553
361
  if ((_d = (_c = this.dataState) === null || _c === void 0 ? void 0 : _c.selectionInfo) === null || _d === void 0 ? void 0 : _d.isEmpty()) {
554
362
  disabledButtons.push(TaskbarElement.FORM_MODE);
555
363
  }
556
- if (((_f = (_e = this.dataState) === null || _e === void 0 ? void 0 : _e.selectionInfo) === null || _f === void 0 ? void 0 : _f.length) > 1) {
557
- disabledButtons.push(TaskbarElement.CLONE);
558
- }
559
364
  return disabledButtons;
560
365
  }
561
366
  handleCancelEdit() {
@@ -699,23 +504,9 @@ const SnkSimpleCrud = class {
699
504
  .then(() => {
700
505
  this.setGridConfig(config);
701
506
  this.closeGridConfig();
702
- this.dataExporterProviderStore();
703
507
  });
704
508
  evt.stopPropagation();
705
509
  }
706
- async dataExporterProviderStore() {
707
- if (this.dataUnit == undefined) {
708
- return;
709
- }
710
- if (this._grid == undefined) {
711
- return;
712
- }
713
- const dataExporterProvider = new ClientSideExporterProvider(this.dataUnit, this._grid);
714
- store.set("exporterProviders", Object.assign(Object.assign({}, store.get("exporterProviders")), { [this.getDataExporterStoreKey()]: dataExporterProvider }));
715
- }
716
- getDataExporterStoreKey() {
717
- return `SnkSimpleCrudDataExporter:${this.configName == undefined ? this.dataUnit.name : this.configName}`;
718
- }
719
510
  setGridConfig(config) {
720
511
  this.gridConfig = config;
721
512
  CrudUtils.assertDefaultSorting(this.gridConfig, this.dataUnit);
@@ -731,15 +522,6 @@ const SnkSimpleCrud = class {
731
522
  closeFormConfig() {
732
523
  this._showFormConfig = false;
733
524
  }
734
- getPageSize() {
735
- if (this.mode === SIMPLE_CRUD_MODE.IN_MEMORY) {
736
- return 0;
737
- }
738
- if (this.pageSize == undefined) {
739
- return 150;
740
- }
741
- return this.pageSize;
742
- }
743
525
  //No momento não daremos suporte para configuração de formulário quando houver formLegacyConfigName
744
526
  handleShowFormConfig() {
745
527
  return this._showFormConfig && !this.formLegacyConfigName;
@@ -755,28 +537,19 @@ const SnkSimpleCrud = class {
755
537
  }
756
538
  return configFromManager;
757
539
  }
758
- updateFormConfig() {
759
- const newConfig = Object.assign(Object.assign({}, this.formConfig), { fields: this.dataUnit.metadata.fields });
760
- this.setFormConfig(newConfig, true);
761
- if (this._formConfigManager == undefined) {
762
- this._formConfigManager = new SnkFormConfigManager(this.configName, this.resolveResourceID());
763
- }
764
- this._formConfigManager.setConfig(this.formConfig);
765
- }
766
540
  /* istanbul ignore next */
767
541
  render() {
768
542
  var _a;
769
543
  if (this.dataUnit == undefined) {
770
544
  return;
771
545
  }
772
- return (h("snk-data-unit", { ref: ref => this._snkDataUnit = ref, class: "simple-crud__container", dataUnit: this.dataUnit, useCancelConfirm: this.useCancelConfirm, onDataStateChange: evt => this.onDataStateChange(evt), onCancelEdition: this.handleCancelEdit.bind(this), pageSize: this.getPageSize(), onInsertionMode: () => this.goToView(VIEW_MODE.FORM), onDataUnitReady: (evt) => this.dataUnitReady.emit(evt.detail), ignoreSaveMessage: this._currentViewMode === VIEW_MODE.GRID, onMessagesBuilderUpdated: evt => this.messagesBuilder = evt.detail, onDataUnitFieldsHidded: this.updateFormConfig.bind(this) }, h("header", null, h("slot", { name: "snkSimpleCrudHeader" })), h("section", { class: "ez-box ez-box--shadow simple-crud__container-section" }, h("snk-taskbar", { class: "ez-box ez-box--shadow ez-padding--medium", dataUnit: this.dataUnit, primaryButton: ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.isDirty) ? "SAVE" : "INSERT", "data-element-id": "grid_left", messagesBuilder: this.messagesBuilder, buttons: this._taskbarProcessor.buttons, actionsList: this.getActionsList(), disabledButtons: this._taskbarProcessor.disabledButtons, customButtons: this._taskbarProcessor.customButtons, "data-exporter-store-key": this.getDataExporterStoreKey(), slot: "leftButtons", presentationMode: PresentationMode.SECONDARY }, h("slot", { name: "TASKBAR_CUSTOM_ELEMENTS" })), h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "simple-crud" }, h("stack-item", null, h("ez-grid", { class: "ez-margin-bottom--large", ref: ref => this._grid = ref, dataUnit: this.dataUnit, config: this.gridConfig, "no-header": true, multipleSelection: this.multipleSelection, onEzDoubleClick: () => this.goToView(VIEW_MODE.FORM), onConfigChange: evt => this.gridConfigChangeHandler(evt), columnfilterDataSource: this.dataUnit.name && this.dataUnit.name.includes(InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME)
546
+ return (h("snk-data-unit", { class: "simple-crud__container", dataUnit: this.dataUnit, useCancelConfirm: this.useCancelConfirm, onDataStateChange: evt => this.onDataStateChange(evt), onCancelEdition: this.handleCancelEdit.bind(this), onInsertionMode: () => this.goToView(VIEW_MODE.FORM), onDataUnitReady: (evt) => this.dataUnitReady.emit(evt.detail), ignoreSaveMessage: this._currentViewMode === VIEW_MODE.GRID, onMessagesBuilderUpdated: evt => this.messagesBuilder = evt.detail }, h("header", null, h("slot", { name: "snkSimpleCrudHeader" })), h("section", { class: "ez-box ez-box--shadow simple-crud__container-section" }, h("snk-taskbar", { class: "ez-box ez-box--shadow ez-padding--medium", dataUnit: this.dataUnit, primaryButton: ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.isDirty) ? "SAVE" : "INSERT", "data-element-id": "grid_left", messagesBuilder: this.messagesBuilder, buttons: this._taskbarProcessor.buttons, actionsList: this.getActionsList(), disabledButtons: this._taskbarProcessor.disabledButtons, customButtons: this._taskbarProcessor.customButtons, slot: "leftButtons", presentationMode: PresentationMode.SECONDARY }, h("slot", { name: "TASKBAR_CUSTOM_ELEMENTS" })), h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "simple-crud" }, h("stack-item", null, h("ez-grid", { class: "ez-margin-bottom--large", ref: ref => this._grid = ref, dataUnit: this.dataUnit, config: this.gridConfig, "no-header": true, multipleSelection: this.multipleSelection, onEzDoubleClick: () => this.goToView(VIEW_MODE.FORM), onConfigChange: evt => this.gridConfigChangeHandler(evt), columnfilterDataSource: this.dataUnit.name && this.dataUnit.name.includes(InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME)
773
547
  ? undefined
774
- : this._multiSelectionListDataSource, useEnterLikeTab: this.useEnterLikeTab, autoFocus: this.autoFocus }, h("div", { slot: "footer" }, h("slot", { name: "snkSimpleCrudFooter" })))), h("stack-item", null, h("ez-form", { ref: (ref) => this._form = ref, class: `ez-margin-top--large ${this.handleShowFormConfig() ? "simple-crud__form--hidden" : ""}`, dataUnit: this.dataUnit, config: this.getFormConfig(), fieldToFocus: this._fieldToGetFocus, onEzFormSetFields: (evt) => this.handleFormSetFields(evt.detail), onEzFormRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this) }), this.handleShowFormConfig() && h("snk-form-config", { messagesBuilder: this.messagesBuilder, dataUnit: this.dataUnit, configManager: this._formConfigManager, onConfigClose: () => this.closeFormConfig() })), this.messagesBuilder && h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.goToView(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showConfiguratorButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this.resolveResourceID(), customContainerId: this._customContainerId })), h("div", { id: `${this._customContainerId}` }, h("slot", { name: "SnkConfigContainerSlot" }))), h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._showPopUpGridConfig, onEzCloseModal: () => this.closeGridConfig() }, h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this.gridConfig, "data-element-id": this._element.getAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resolveResourceID() }))));
548
+ : this._multiSelectionListDataSource, useEnterLikeTab: this.useEnterLikeTab }, h("div", { slot: "footer" }, h("slot", { name: "snkSimpleCrudFooter" })))), h("stack-item", null, h("ez-form", { class: `ez-margin-top--large ${this.handleShowFormConfig() ? "simple-crud__form--hidden" : ""}`, dataUnit: this.dataUnit, config: this.getFormConfig(), fieldToFocus: this._fieldToGetFocus, onEzFormSetFields: (evt) => this.handleFormSetFields(evt.detail), onEzFormRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this) }), this.handleShowFormConfig() && h("snk-form-config", { messagesBuilder: this.messagesBuilder, dataUnit: this.dataUnit, configManager: this._formConfigManager, onConfigClose: () => this.closeFormConfig() })), this.messagesBuilder && h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.goToView(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showConfiguratorButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this.resolveResourceID(), customContainerId: this._customContainerId })), h("div", { id: `${this._customContainerId}` }, h("slot", { name: "SnkConfigContainerSlot" }))), h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._showPopUpGridConfig, onEzCloseModal: () => this.closeGridConfig() }, h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this.gridConfig, "data-element-id": this._element.getAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resolveResourceID() }))));
775
549
  }
776
550
  get _element() { return getElement(this); }
777
551
  static get watchers() { return {
778
552
  "resourceID": ["handleResourceIDChanged"],
779
- "entityName": ["onChangeEntityName"],
780
553
  "mode": ["onModeChange"],
781
554
  "dataState": ["observeDataState"],
782
555
  "formLegacyConfigName": ["observeFormLegacy"],
@@ -1,8 +1,8 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-a7d3d3f1.js';
2
2
  import { Action, StringUtils, ApplicationContext, OVERFLOWED_CLASS_NAME, OverflowWatcher, OverflowDirection, ElementIDUtils } from '@sankhyalabs/core';
3
3
  import { A as AuthorizationConfig } from './AuthorizationConfig-dcbd207a.js';
4
- import { T as TaskbarElement, V as VisibleWhenForbidden, A as AuthorizationElements, b as buildElem, a as buildCustomButton } from './taskbar-elements-d59867f1.js';
5
- import { P as PresentationMode } from './index-3aa4977a.js';
4
+ import { T as TaskbarElement, V as VisibleWhenForbidden, A as AuthorizationElements, b as buildElem, a as buildCustomButton } from './taskbar-elements-2473c8ac.js';
5
+ import { P as PresentationMode } from './index-0ece87a6.js';
6
6
  import './index-bdf75557.js';
7
7
 
8
8
  const snkTaskbarCss = ".sc-snk-taskbar-h{display:flex;flex-wrap:wrap}.no-wrap.sc-snk-taskbar-h{flex-wrap:nowrap}.full-width.sc-snk-taskbar-h{width:100%}.align-right.sc-snk-taskbar-h{justify-content:flex-end}.overflowed.sc-snk-taskbar{display:none}";
@@ -189,9 +189,8 @@ const SnkTaskbar = class {
189
189
  className += "ez-padding-left--medium";
190
190
  }
191
191
  const taskbarElement = TaskbarElement[def.toString()];
192
- const dataExporterStoreKey = this._element.dataset.exporterStoreKey || this.configName;
193
192
  if (taskbarElement) {
194
- return buildElem(def, className, this.getIdElemBtnNative(def), elem => this.getTitle(elem), elem => this.elementClick(elem), elem => this.isEnabled(elem), this.buildDynamicActionsList(), dataExporterStoreKey, this.presentationMode);
193
+ return buildElem(def, className, this.getIdElemBtnNative(def), elem => this.getTitle(elem), elem => this.elementClick(elem), elem => this.isEnabled(elem), this.buildDynamicActionsList(), this.configName, this.presentationMode);
195
194
  }
196
195
  else {
197
196
  return buildCustomButton(def, className, this.getIdElemBtnCustom(def), elem => this.elementClick(elem), elem => this.isEnabled(elem));