@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
@@ -3,18 +3,17 @@ import { Action, ElementIDUtils } from '@sankhyalabs/core';
3
3
  import { S as SnkFormConfigManager } from './SnkFormConfigManager.js';
4
4
  import { buildFormMetadata, FormMetadata } from '@sankhyalabs/ezui/dist/collection/utils/form';
5
5
  import './DataFetcher.js';
6
- import './pesquisa-fetcher.js';
7
- import { P as PresentationMode } from './ISave.js';
6
+ import './dataunit-fetcher.js';
7
+ import { P as PresentationMode } from './index2.js';
8
+ import { d as defineCustomElement$u } from './snk-actions-button2.js';
8
9
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
9
10
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
10
- import './dataunit-fetcher.js';
11
11
  import './filter-item-type.enum.js';
12
12
  import './form-config-fetcher.js';
13
13
  import { T as TaskbarElement, d as defineCustomElement$3 } from './snk-taskbar2.js';
14
14
  import { V as VIEW_MODE } from './constants.js';
15
- import { o as openFieldSearch, T as TaskbarProcessor, b as buildFieldSearch } from './IExporterProvider.js';
15
+ import { o as openFieldSearch, T as TaskbarProcessor, b as buildFieldSearch } from './field-search.js';
16
16
  import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
17
- import { d as defineCustomElement$u } from './snk-actions-button2.js';
18
17
  import { d as defineCustomElement$t } from './snk-attach2.js';
19
18
  import { d as defineCustomElement$s } from './snk-config-options2.js';
20
19
  import { d as defineCustomElement$r } from './snk-configurator2.js';
@@ -76,9 +75,6 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
76
75
  this._formEditorConfigManager = undefined;
77
76
  this._formEditorDataUnit = undefined;
78
77
  this._fieldToGetFocus = undefined;
79
- this._customEditors = undefined;
80
- this._customRenders = undefined;
81
- this._fieldsProps = {};
82
78
  }
83
79
  observeDataUnit() {
84
80
  this.loadGuides(true);
@@ -109,28 +105,6 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
109
105
  async findField() {
110
106
  await openFieldSearch(this._moreOptions, this._fieldSearch);
111
107
  }
112
- /**
113
- * Registra um editor customizado para campos da grade e formulário
114
- */
115
- async addCustomEditor(fieldName, customEditor) {
116
- this._customEditors = Object.assign(Object.assign({}, this._customEditors), { [fieldName]: customEditor });
117
- }
118
- /**
119
- * Registra um render customizado para colunas da grid.
120
- */
121
- async addGridCustomRender(fieldName, customRender) {
122
- this._customRenders = Object.assign(Object.assign({}, this._customRenders), { [fieldName]: customRender });
123
- }
124
- ;
125
- /**
126
- * Altera/adiciona uma propriedade nos metadados do campo.
127
- */
128
- async setFieldProp(fieldName, propName, value) {
129
- const newFieldsProps = {
130
- [fieldName]: Object.assign(Object.assign({}, this._fieldsProps[fieldName]), { [propName]: value })
131
- };
132
- this._fieldsProps = Object.assign(Object.assign({}, this._fieldsProps), newFieldsProps);
133
- }
134
108
  /**
135
109
  * Atribui o foco para o componente.
136
110
  */
@@ -279,7 +253,7 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
279
253
  if (sheet == undefined) {
280
254
  return;
281
255
  }
282
- 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 });
256
+ 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); } });
283
257
  })));
284
258
  }
285
259
  wrapDetail(levels, content) {
@@ -321,14 +295,14 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
321
295
  else {
322
296
  detailBranch = this.selectedGuide;
323
297
  }
324
- 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 }));
298
+ 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 }));
325
299
  }
326
300
  else {
327
301
  const cardId = this.selectedGuide.id;
328
302
  const sheet = this._masterFormMetadata.getSheet(cardId);
329
303
  if (sheet) {
330
304
  const cardConfig = (_c = (_b = this.masterFormConfig) === null || _b === void 0 ? void 0 : _b.cardsState) === null || _c === void 0 ? void 0 : _c.get(cardId);
331
- 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());
305
+ 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());
332
306
  }
333
307
  }
334
308
  return content;
@@ -531,9 +505,7 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
531
505
  dataUnit: this.dataUnit,
532
506
  recordsValidator: this.recordsValidator,
533
507
  fieldToFocus: this._fieldToGetFocus,
534
- onRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this),
535
- propsCustomEditor: this._customEditors,
536
- fieldsProps: this._fieldsProps
508
+ onRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this)
537
509
  }), 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 })));
538
510
  }
539
511
  static get watchers() { return {
@@ -564,14 +536,8 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
564
536
  "_formEditorConfigManager": [32],
565
537
  "_formEditorDataUnit": [32],
566
538
  "_fieldToGetFocus": [32],
567
- "_customEditors": [32],
568
- "_customRenders": [32],
569
- "_fieldsProps": [32],
570
539
  "showFormConfig": [64],
571
540
  "findField": [64],
572
- "addCustomEditor": [64],
573
- "addGridCustomRender": [64],
574
- "setFieldProp": [64],
575
541
  "setFocus": [64]
576
542
  }, [[2, "actionClick", "onActionClick"], [0, "snkContentCardChanged", "onContentCardChanged"]]]);
577
543
  function defineCustomElement$1() {
@@ -806,8 +772,6 @@ const SnkDetailView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
806
772
  this.branchGuide = undefined;
807
773
  this.canEdit = true;
808
774
  this.taskbarCustomContainerId = undefined;
809
- this.customEditors = undefined;
810
- this.customRenders = undefined;
811
775
  }
812
776
  observeDataUnit(newDataUnit, oldDataUnit) {
813
777
  newDataUnit === null || newDataUnit === void 0 ? void 0 : newDataUnit.subscribe(this.dataUnitActionHandler.bind(this));
@@ -875,38 +839,10 @@ const SnkDetailView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
875
839
  this._snkGrid.scrollIntoView({ behavior: "smooth", block: "start" });
876
840
  }
877
841
  }
878
- /**
879
- * Registra um editor customizado para campos da grade e formulário.
880
- */
881
- async addCustomEditor(fieldName, customEditor) {
882
- var _a;
883
- const detailContext = this.normalizeBranchGuideId((_a = this.branchGuide) === null || _a === void 0 ? void 0 : _a.id);
884
- this._snkGrid.addCustomEditor(fieldName, customEditor, detailContext);
885
- this._snkFormView.addCustomEditor(fieldName, customEditor, detailContext);
886
- }
887
- async observerPropsCustomEditor(newValue) {
888
- for (const fieldName in newValue) {
889
- await this.addCustomEditor(fieldName, newValue[fieldName]);
890
- }
891
- }
892
- /**
893
- * Registra um render customizado para colunas da grid.
894
- */
895
- async addGridCustomRender(fieldName, customRender) {
896
- var _a;
897
- const detailContext = this.normalizeBranchGuideId((_a = this.branchGuide) === null || _a === void 0 ? void 0 : _a.id);
898
- await this._snkGrid.addGridCustomRender(fieldName, customRender, detailContext);
899
- }
900
842
  onContentCardChanged(evt) {
901
843
  SnkGuidesViewer.updateContentCard(evt.detail.formName, evt.detail.cardConfig, evt.detail.propertyChanged, this.formConfigManager).then(() => forceUpdate(this));
902
844
  evt.stopPropagation();
903
845
  }
904
- async observeCustomRenders(newValue) {
905
- for (const field in newValue) {
906
- const customRender = newValue[field];
907
- await this.addGridCustomRender(field, customRender);
908
- }
909
- }
910
846
  updateLabel() {
911
847
  const guideItemPathSize = this.guideItemPath ? this.guideItemPath.length : 0;
912
848
  if (guideItemPathSize > 0) {
@@ -1009,10 +945,6 @@ const SnkDetailView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
1009
945
  this.messagesBuilder = new SnkMessageBuilder(this.entityName);
1010
946
  }
1011
947
  }
1012
- async componentDidLoad() {
1013
- await this.observerPropsCustomEditor(this.customEditors);
1014
- await this.observeCustomRenders(this.customRenders);
1015
- }
1016
948
  async dataUnitActionHandler(action) {
1017
949
  if (action.type === Action.FIELD_INVALIDATED) {
1018
950
  this.addErrorBadgeToBranchGuide();
@@ -1022,9 +954,6 @@ const SnkDetailView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
1022
954
  this.branchGuide = Object.assign(Object.assign({}, this.branchGuide), { badge: 'error' });
1023
955
  this.snkDetailGuidesChange.emit(new GuideBuilder(this.branchGuide, this._formMetadata, this.dataUnit));
1024
956
  }
1025
- normalizeBranchGuideId(id) {
1026
- return id === null || id === void 0 ? void 0 : id.replace(/child\[(.*?)\]/g, '$1').replace(/::/g, '>');
1027
- }
1028
957
  render() {
1029
958
  this.updateLabel();
1030
959
  //const cardConfig: IFormCardConfig = this._cardsState?.get(this.selectedForm);
@@ -1032,9 +961,7 @@ const SnkDetailView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
1032
961
  }
1033
962
  static get watchers() { return {
1034
963
  "dataUnit": ["observeDataUnit"],
1035
- "dataState": ["observerDataState"],
1036
- "customEditors": ["observerPropsCustomEditor"],
1037
- "customRenders": ["observeCustomRenders"]
964
+ "dataState": ["observerDataState"]
1038
965
  }; }
1039
966
  static get style() { return snkDetailViewCss; }
1040
967
  }, [6, "snk-detail-view", {
@@ -1051,16 +978,12 @@ const SnkDetailView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
1051
978
  "branchGuide": [1040],
1052
979
  "canEdit": [4, "can-edit"],
1053
980
  "taskbarCustomContainerId": [1, "taskbar-custom-container-id"],
1054
- "customEditors": [16],
1055
- "customRenders": [16],
1056
981
  "_disabledButtons": [32],
1057
982
  "_currentView": [32],
1058
983
  "attachmentRegisterKey": [32],
1059
984
  "changeViewMode": [64],
1060
985
  "configGrid": [64],
1061
- "showUp": [64],
1062
- "addCustomEditor": [64],
1063
- "addGridCustomRender": [64]
986
+ "showUp": [64]
1064
987
  }, [[0, "snkContentCardChanged", "onContentCardChanged"]]]);
1065
988
  SnkDetailView.REGEX_FORM_ID = /__FORM:[^:]+/g;
1066
989
  function defineCustomElement() {
@@ -16,7 +16,7 @@ const OptionsStep = ({ getMessage, changeInfo, data }) => {
16
16
  const selectionCount = (data === null || data === void 0 ? void 0 : data.selectedRows) || 0;
17
17
  const formatOptions = [
18
18
  { label: getMessage("snkExporter.emailSenderOptStep_formatPDF"), value: "pdf" },
19
- { label: getMessage("snkExporter.emailSenderOptStep_formatXLSX"), value: "xlsx" }
19
+ { label: getMessage("snkExporter.emailSenderOptStep_formatXLS"), value: "xls" }
20
20
  ];
21
21
  const typeOptions = [
22
22
  { label: getMessage("snkExporter.emailSenderOptStep_allData"), value: "all" },
@@ -4,7 +4,7 @@ import { a as SelectedItemType, d as defineCustomElement$2 } from './snk-filter-
4
4
  import { ApplicationUtils, CheckMode } from '@sankhyalabs/ezui/dist/collection/utils';
5
5
  import { fieldBuilder } from '@sankhyalabs/ezui/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder';
6
6
  import { a as FilterOperand } from './PersonalizedFilterUtils.js';
7
- import { s as store } from './index2.js';
7
+ import { s as store } from './index3.js';
8
8
  import { convertType } from '@sankhyalabs/core/dist/dataunit/metadata/DataType';
9
9
  import { d as defineCustomElement$1 } from './snk-filter-param-config2.js';
10
10
 
@@ -271,7 +271,7 @@ const SnkFilterBar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
271
271
  //campos Hard Fixed não variam a ordem
272
272
  if (!item.hardFixed) {
273
273
  index += item.fixed ? 100000 : 0;
274
- index += item.value == undefined ? 0 : 10000;
274
+ index = this.handleValueSortIndex(item, index);
275
275
  index += this._updateSequence.lastIndexOf(item.id) + 1;
276
276
  }
277
277
  return index;
@@ -288,12 +288,19 @@ const SnkFilterBar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
288
288
  this.messagesBuilder = undefined;
289
289
  this.disablePersonalizedFilter = undefined;
290
290
  this.filterBarLegacyConfigName = undefined;
291
- this.autoLoad = undefined;
292
291
  this.allowDefault = undefined;
293
292
  this.scrollerLocked = false;
294
293
  this.showPersonalizedFilter = false;
295
294
  this.personalizedFilterId = undefined;
296
295
  }
296
+ handleValueSortIndex(item, index) {
297
+ if (item.value != undefined)
298
+ return (index + 10000);
299
+ if (item.type === FilterItemType.PERSONALIZED && item.visible) {
300
+ index += 10000;
301
+ }
302
+ return index;
303
+ }
297
304
  observeFilterConfig(newValue, oldValue) {
298
305
  if (ObjectUtils.equals(newValue, oldValue))
299
306
  return;
@@ -435,10 +442,7 @@ const SnkFilterBar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
435
442
  }
436
443
  async doLoadData(forceReload = false) {
437
444
  try {
438
- if (this._firstLoad && this.autoLoad === false) {
439
- return;
440
- }
441
- if (this._firstLoad && !forceReload && this.autoLoad === undefined) {
445
+ if (this._firstLoad && !forceReload) {
442
446
  let autoLoad = await this._application.getBooleanParam("global.carregar.registros.iniciar.tela");
443
447
  if (!autoLoad) {
444
448
  return;
@@ -589,6 +593,7 @@ const SnkFilterBar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
589
593
  .then((filters) => {
590
594
  accept();
591
595
  this.filterConfig = filters.map(item => this.normalizeItem(item));
596
+ this.filterConfig.sort((a, b) => this._filtersComparator(a, b));
592
597
  })
593
598
  .catch(reason => {
594
599
  throw new ErrorException(this.getMessage("snkFilterBar.failToLoadConfig"), reason);
@@ -721,7 +726,6 @@ const SnkFilterBar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
721
726
  "messagesBuilder": [1040],
722
727
  "disablePersonalizedFilter": [4, "disable-personalized-filter"],
723
728
  "filterBarLegacyConfigName": [1, "filter-bar-legacy-config-name"],
724
- "autoLoad": [4, "auto-load"],
725
729
  "allowDefault": [32],
726
730
  "scrollerLocked": [32],
727
731
  "showPersonalizedFilter": [32],
@@ -12,8 +12,6 @@ const SnkFormView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
12
12
  this.snkContentCardChanged = createEvent(this, "snkContentCardChanged", 7);
13
13
  this.snkRequestClearFieldToFocus = createEvent(this, "snkRequestClearFieldToFocus", 7);
14
14
  this.formItemsReady = createEvent(this, "formItemsReady", 7);
15
- this._customEditors = new Map();
16
- this._fieldProps = new Map();
17
15
  this.levelPath = undefined;
18
16
  this.label = undefined;
19
17
  this.name = undefined;
@@ -27,47 +25,12 @@ const SnkFormView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
27
25
  this.canFix = true;
28
26
  this.recordsValidator = undefined;
29
27
  this.fieldToFocus = undefined;
30
- this.customEditors = undefined;
31
- this.fieldsProps = undefined;
32
28
  }
33
29
  async showUp() {
34
30
  if (this._formView) {
35
31
  this._formView.showUp();
36
32
  }
37
33
  }
38
- /**
39
- * Registra um editor customizado para campos da grade e formulário
40
- */
41
- async addCustomEditor(fieldName, customEditor, detailContext) {
42
- if (this._formView) {
43
- this._formView.addCustomEditor(fieldName, customEditor, detailContext);
44
- return;
45
- }
46
- const newCustomEditors = new Map(this._customEditors);
47
- newCustomEditors.set(fieldName, { customEditor, detailContext });
48
- this._customEditors = newCustomEditors;
49
- }
50
- observePropsCustomEditor(newValue) {
51
- for (const fieldName in newValue) {
52
- this.addCustomEditor(fieldName, newValue[fieldName]);
53
- }
54
- }
55
- /**
56
- * Altera/adiciona uma propriedade nos metadados do campo.
57
- */
58
- async setFieldProp(fieldName, propName, value) {
59
- const props = this._fieldProps.get(fieldName) || [];
60
- this._fieldProps.set(fieldName, [...props, { propName, value }]);
61
- }
62
- async observeFieldsProps(newValue) {
63
- for (const field in newValue) {
64
- const fieldProps = newValue[field];
65
- const propNames = Object.keys(fieldProps);
66
- for (const propName of propNames) {
67
- await this.setFieldProp(field, propName, fieldProps[propName]);
68
- }
69
- }
70
- }
71
34
  changeFix() {
72
35
  this.fixed = !this.fixed;
73
36
  this.emitEvent("fixed");
@@ -126,13 +89,7 @@ const SnkFormView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
126
89
  this._dataBinder.onDisconnectedCallback();
127
90
  }
128
91
  }
129
- componentDidLoad() {
130
- this.observePropsCustomEditor(this.customEditors);
131
- this.observeFieldsProps(this.fieldsProps);
132
- }
133
92
  componentDidRender() {
134
- this.setCustomEditors();
135
- this.setFieldProps();
136
93
  if (this.fieldToFocus == undefined) {
137
94
  return;
138
95
  }
@@ -144,26 +101,6 @@ const SnkFormView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
144
101
  this.snkRequestClearFieldToFocus.emit();
145
102
  });
146
103
  }
147
- setCustomEditors() {
148
- if (!this._formView) {
149
- return;
150
- }
151
- for (const [fieldName, customEditorProps] of this._customEditors) {
152
- this._formView.addCustomEditor(fieldName, customEditorProps.customEditor, customEditorProps.detailContext);
153
- this._customEditors.delete(fieldName);
154
- }
155
- }
156
- setFieldProps() {
157
- if (!this._formView) {
158
- return;
159
- }
160
- for (const [fieldName, propsToChange] of this._fieldProps) {
161
- propsToChange.forEach(prop => {
162
- this._formView.setFieldProp(fieldName, prop.propName, prop.value);
163
- this._fieldProps.delete(fieldName);
164
- });
165
- }
166
- }
167
104
  render() {
168
105
  return (h(Host, { class: "ez-box__container" }, h("div", { class: "summary-header ez-flex ez-size-width--full" }, h("div", { class: "ez-flex ez-text ez-title--primary ez-text--bold ez-flex--justify-start ez-flex--align-items-center ez-col--sd-9" }, this.levelPath ? h("span", { class: "level-path" }, this.levelPath + " /") : undefined, this.label), h("div", { class: "ez-flex ez-flex--justify-end ez-col--sd-3" }, this.canFix &&
169
106
  h("ez-button", { class: "ez-padding-left--medium", mode: "icon", size: "small", iconName: this.fixed ? "un-pin" : "push-pin", "data-element-id": ElementIDUtils.getInternalIDInfo("toggleFixed_ezFormCard"), onClick: () => this.changeFix(), title: this.fixed ? "Desafixar" : "Fixar" }), this.canExpand &&
@@ -173,10 +110,6 @@ const SnkFormView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
173
110
  :
174
111
  h("ez-form-view", { ref: ref => this._formView = ref, fields: this.fields, onEzContentReady: evt => this.bindFields(evt.detail), onFormItemsReady: (event) => this.handleFormItemsReady(event) })));
175
112
  }
176
- static get watchers() { return {
177
- "customEditors": ["observePropsCustomEditor"],
178
- "fieldsProps": ["observeFieldsProps"]
179
- }; }
180
113
  static get style() { return snkFormViewCss; }
181
114
  }, [6, "snk-form-view", {
182
115
  "levelPath": [1, "level-path"],
@@ -192,11 +125,7 @@ const SnkFormView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
192
125
  "canFix": [4, "can-fix"],
193
126
  "recordsValidator": [16],
194
127
  "fieldToFocus": [1, "field-to-focus"],
195
- "customEditors": [16],
196
- "fieldsProps": [16],
197
- "showUp": [64],
198
- "addCustomEditor": [64],
199
- "setFieldProp": [64]
128
+ "showUp": [64]
200
129
  }]);
201
130
  function defineCustomElement() {
202
131
  if (typeof customElements === "undefined") {
@@ -16,7 +16,6 @@ const SnkForm$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
16
16
  this.exit = createEvent(this, "exit", 7);
17
17
  this.actionClick = createEvent(this, "actionClick", 7);
18
18
  this.formItemsReady = createEvent(this, "formItemsReady", 7);
19
- this._customEditors = new Map();
20
19
  this._dataUnit = undefined;
21
20
  this._dataState = undefined;
22
21
  this._showFormConfig = false;
@@ -39,24 +38,6 @@ const SnkForm$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
39
38
  async hideConfig() {
40
39
  this._showFormConfig = false;
41
40
  }
42
- /**
43
- * Registra um editor customizado para campos da grade e formulário.
44
- */
45
- async addCustomEditor(fieldName, customEditor) {
46
- if (this._form) {
47
- this._form.addCustomEditor(fieldName, customEditor);
48
- return;
49
- }
50
- const newCustomEditors = new Map(this._customEditors);
51
- newCustomEditors.set(fieldName, customEditor);
52
- this._customEditors = newCustomEditors;
53
- }
54
- /**
55
- * Altera/adiciona uma propriedade nos metadados do campo.
56
- */
57
- async setFieldProp(fieldName, propName, value) {
58
- await this._form.setFieldProp(fieldName, propName, value);
59
- }
60
41
  closeConfig() {
61
42
  this.hideConfig();
62
43
  }
@@ -64,18 +45,6 @@ const SnkForm$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
64
45
  const dataInfo = { dataUnit: this._dataUnit };
65
46
  ElementIDUtils.addIDInfo(this._element, null, dataInfo);
66
47
  }
67
- setCustomEditors() {
68
- if (!this._form) {
69
- return;
70
- }
71
- for (const [fieldName, customEditor] of this._customEditors) {
72
- this._form.addCustomEditor(fieldName, customEditor);
73
- this._customEditors.delete(fieldName);
74
- }
75
- }
76
- async componentDidRender() {
77
- this.setCustomEditors();
78
- }
79
48
  async componentWillLoad() {
80
49
  let parent = this._element.parentElement;
81
50
  while (parent) {
@@ -91,7 +60,9 @@ const SnkForm$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
91
60
  this._dataUnit = evt.detail;
92
61
  });
93
62
  }
94
- this._snkDataUnit.addEventListener("dataStateChange", this.handleDataStateChange.bind(this));
63
+ this._snkDataUnit.addEventListener("dataStateChange", (evt) => {
64
+ this._dataState = evt.detail;
65
+ });
95
66
  break;
96
67
  }
97
68
  parent = parent.parentElement;
@@ -101,23 +72,7 @@ const SnkForm$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
101
72
  }
102
73
  this._configManager = new SnkFormConfigManager(this.configName, this.resourceID);
103
74
  this.addFormLegacyConfig();
104
- await this._configManager.loadConfig();
105
- }
106
- async handleDataStateChange(evt) {
107
- var _a;
108
- this._dataState = evt.detail;
109
- const fieldsWithRmPrecision = await this._snkDataUnit.getFieldsWithRmPrecision();
110
- for (const field of fieldsWithRmPrecision || []) {
111
- if (!field) {
112
- continue;
113
- }
114
- const rmPrecision = (_a = this._dataState.rowMetadata) === null || _a === void 0 ? void 0 : _a.getProp('rm_precision', field);
115
- if (!rmPrecision && rmPrecision !== 0) {
116
- continue;
117
- }
118
- await this.setFieldProp(field, 'precision', rmPrecision);
119
- await this.setFieldProp(field, 'prettyPrecision', rmPrecision);
120
- }
75
+ this._configManager.loadConfig();
121
76
  }
122
77
  addFormLegacyConfig() {
123
78
  if (this.formLegacyConfigName) {
@@ -128,7 +83,7 @@ const SnkForm$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
128
83
  if (!this._dataUnit || !this._dataState) {
129
84
  return undefined;
130
85
  }
131
- return (h("section", null, h("div", { class: "ez-row" }, h("div", { class: "ez-col ez-col--sd-12" }, h("ez-form", { ref: (ref) => this._form = ref, key: "ezForm" + this._snkDataUnit.entityName, "data-element-id": "embedded", dataUnit: this._dataUnit, config: this._configManager.getConfig(this._dataState.insertionMode, this._dataUnit), recordsValidator: this.recordsValidator, class: this._showFormConfig ? 'snk-form__form--hidden' : '' }), this._showFormConfig &&
86
+ return (h("section", null, h("div", { class: "ez-row" }, h("div", { class: "ez-col ez-col--sd-12" }, h("ez-form", { key: "ezForm" + this._snkDataUnit.entityName, "data-element-id": "embedded", dataUnit: this._dataUnit, config: this._configManager.getConfig(this._dataState.insertionMode, this._dataUnit), recordsValidator: this.recordsValidator, class: this._showFormConfig ? 'snk-form__form--hidden' : '' }), this._showFormConfig &&
132
87
  h("snk-form-config", { messagesBuilder: this.messagesBuilder, dataUnit: this._dataUnit, configManager: this._configManager, onConfigClose: () => this.closeConfig() })))));
133
88
  }
134
89
  get _element() { return this; }
@@ -144,9 +99,7 @@ const SnkForm$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
144
99
  "_showFormConfig": [32],
145
100
  "_configManager": [32],
146
101
  "showConfig": [64],
147
- "hideConfig": [64],
148
- "addCustomEditor": [64],
149
- "setFieldProp": [64]
102
+ "hideConfig": [64]
150
103
  }]);
151
104
  function defineCustomElement$1() {
152
105
  if (typeof customElements === "undefined") {