@sankhyalabs/sankhyablocks 8.16.0-rc.4 → 8.16.0-rc.41

Sign up to get free protection for your applications and to get access to all the features.
Files changed (975) hide show
  1. package/dist/cjs/AuthorizationConfig-79ffae4b.js.gz +0 -0
  2. package/dist/cjs/{IExporterProvider-10b7fed5.js → ClientSideExporterProvider-ccf10439.js} +135 -24
  3. package/dist/cjs/ClientSideExporterProvider-ccf10439.js.gz +0 -0
  4. package/dist/cjs/{ConfigStorage-e49214c6.js → ConfigStorage-d024aec8.js} +2 -2
  5. package/dist/cjs/ConfigStorage-d024aec8.js.gz +0 -0
  6. package/dist/cjs/{DataFetcher-77729a93.js → DataFetcher-65879b2c.js} +216 -81
  7. package/dist/cjs/DataFetcher-65879b2c.js.gz +0 -0
  8. package/dist/cjs/{RecordIDUtils-3735135c.js → GetSelectedRecordsIDsInfo-bd50caf1.js} +10 -10
  9. package/dist/cjs/GetSelectedRecordsIDsInfo-bd50caf1.js.gz +0 -0
  10. package/dist/cjs/IFetchDataExporterParams-e78ec415.js +8 -0
  11. package/dist/cjs/IFetchDataExporterParams-e78ec415.js.gz +0 -0
  12. package/dist/cjs/ISave-e91b70a7.js.gz +0 -0
  13. package/dist/cjs/ParamType-90b440a0.js.gz +0 -0
  14. package/dist/cjs/PersonalizedFilterUtils-0184ffbb.js.gz +0 -0
  15. package/dist/cjs/PrintUtils-bcaeb82f.js.gz +0 -0
  16. package/dist/cjs/ResourceIDUtils-5ff86aa7.js.gz +0 -0
  17. package/dist/cjs/{SnkFormConfigManager-beebf47a.js → SnkFormConfigManager-ae3185b2.js} +72 -16
  18. package/dist/cjs/SnkFormConfigManager-ae3185b2.js.gz +0 -0
  19. package/dist/cjs/{SnkMessageBuilder-897ffd08.js → SnkMessageBuilder-bae64d0d.js} +6 -2
  20. package/dist/cjs/SnkMessageBuilder-bae64d0d.js.gz +0 -0
  21. package/dist/cjs/Sortable-fb1c4cbb.js.gz +0 -0
  22. package/dist/cjs/{auth-fetcher-29bb791c.js → auth-fetcher-8480751c.js} +1 -1
  23. package/dist/cjs/auth-fetcher-8480751c.js.gz +0 -0
  24. package/dist/cjs/constants-35ddd366.js.gz +0 -0
  25. package/dist/cjs/{dataunit-fetcher-d4873076.js → dataunit-fetcher-e4e787d6.js} +69 -27
  26. package/dist/cjs/dataunit-fetcher-e4e787d6.js.gz +0 -0
  27. package/dist/cjs/{field-search-f56aa7d6.js → field-search-68e34bf4.js} +5 -1
  28. package/dist/cjs/field-search-68e34bf4.js.gz +0 -0
  29. package/dist/cjs/filter-item-type.enum-a7ffdaa6.js.gz +0 -0
  30. package/dist/cjs/filter-type.enum-b14ce507.js.gz +0 -0
  31. package/dist/cjs/filterNumberVariation-d65332da.js.gz +0 -0
  32. package/dist/cjs/{form-config-fetcher-feb08214.js → form-config-fetcher-90126e4c.js} +42 -2
  33. package/dist/cjs/form-config-fetcher-90126e4c.js.gz +0 -0
  34. package/dist/cjs/index-102ba62d.js.gz +0 -0
  35. package/dist/cjs/index-8d94b7e0.js.gz +0 -0
  36. package/dist/cjs/index-c5771aba.js.gz +0 -0
  37. package/dist/cjs/{index-1dfc7a6e.js → index-e3e39724.js} +5 -0
  38. package/dist/cjs/index-e3e39724.js.gz +0 -0
  39. package/dist/cjs/index-f9e81701.js +16 -32
  40. package/dist/cjs/index-f9e81701.js.gz +0 -0
  41. package/dist/cjs/index.cjs.js.gz +0 -0
  42. package/dist/cjs/loader.cjs.js +1 -1
  43. package/dist/cjs/loader.cjs.js.gz +0 -0
  44. package/dist/cjs/{pesquisa-fetcher-a1d0353f.js → pesquisa-fetcher-f3454c23.js} +185 -2
  45. package/dist/cjs/pesquisa-fetcher-f3454c23.js.gz +0 -0
  46. package/dist/cjs/pesquisa-grid_2.cjs.entry.js +127 -0
  47. package/dist/cjs/pesquisa-grid_2.cjs.entry.js.gz +0 -0
  48. package/dist/cjs/presentationMode-52ec3bdd.js.gz +0 -0
  49. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  50. package/dist/cjs/sankhyablocks.cjs.js.gz +0 -0
  51. package/dist/cjs/{snk-actions-button_4.cjs.entry.js → snk-actions-button_5.cjs.entry.js} +137 -41
  52. package/dist/cjs/snk-actions-button_5.cjs.entry.js.gz +0 -0
  53. package/dist/cjs/snk-actions-form.cjs.entry.js.gz +0 -0
  54. package/dist/cjs/snk-application.cjs.entry.js +140 -67
  55. package/dist/cjs/snk-application.cjs.entry.js.gz +0 -0
  56. package/dist/cjs/snk-attach.cjs.entry.js +48 -35
  57. package/dist/cjs/snk-attach.cjs.entry.js.gz +0 -0
  58. package/dist/cjs/snk-client-confirm.cjs.entry.js.gz +0 -0
  59. package/dist/cjs/{snk-form-config.cjs.entry.js → snk-config-options_3.cjs.entry.js} +398 -12
  60. package/dist/cjs/snk-config-options_3.cjs.entry.js.gz +0 -0
  61. package/dist/cjs/snk-configurator.cjs.entry.js.gz +0 -0
  62. package/dist/cjs/snk-crud.cjs.entry.js +23 -10
  63. package/dist/cjs/snk-crud.cjs.entry.js.gz +0 -0
  64. package/dist/cjs/snk-custom-slot-elements.cjs.entry.js.gz +0 -0
  65. package/dist/cjs/snk-data-exporter.cjs.entry.js +37 -28
  66. package/dist/cjs/snk-data-exporter.cjs.entry.js.gz +0 -0
  67. package/dist/cjs/{snk-data-unit-ece44c4a.js → snk-data-unit-c5995c46.js} +52 -30
  68. package/dist/cjs/snk-data-unit-c5995c46.js.gz +0 -0
  69. package/dist/cjs/snk-data-unit.cjs.entry.js +5 -5
  70. package/dist/cjs/snk-data-unit.cjs.entry.js.gz +0 -0
  71. package/dist/cjs/snk-detail-view.cjs.entry.js +14 -14
  72. package/dist/cjs/snk-detail-view.cjs.entry.js.gz +0 -0
  73. package/dist/cjs/snk-entity-list.cjs.entry.js.gz +0 -0
  74. package/dist/cjs/snk-exporter-email-sender.cjs.entry.js +1 -1
  75. package/dist/cjs/snk-exporter-email-sender.cjs.entry.js.gz +0 -0
  76. package/dist/cjs/snk-expression-group_2.cjs.entry.js.gz +0 -0
  77. package/dist/cjs/snk-field-config.cjs.entry.js.gz +0 -0
  78. package/dist/cjs/snk-filter-advanced-mode_2.cjs.entry.js.gz +0 -0
  79. package/dist/cjs/snk-filter-bar_4.cjs.entry.js +1422 -0
  80. package/dist/cjs/snk-filter-bar_4.cjs.entry.js.gz +0 -0
  81. package/dist/cjs/snk-filter-binary-select.cjs.entry.js +1 -1
  82. package/dist/cjs/snk-filter-binary-select.cjs.entry.js.gz +0 -0
  83. package/dist/cjs/snk-filter-checkbox-list.cjs.entry.js +1 -1
  84. package/dist/cjs/snk-filter-checkbox-list.cjs.entry.js.gz +0 -0
  85. package/dist/cjs/snk-filter-detail.cjs.entry.js.gz +0 -0
  86. package/dist/cjs/snk-filter-field-search_2.cjs.entry.js.gz +0 -0
  87. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
  88. package/dist/cjs/snk-filter-modal-item.cjs.entry.js.gz +0 -0
  89. package/dist/cjs/snk-filter-multi-select.cjs.entry.js.gz +0 -0
  90. package/dist/cjs/snk-filter-number.cjs.entry.js.gz +0 -0
  91. package/dist/cjs/snk-filter-period.cjs.entry.js.gz +0 -0
  92. package/dist/cjs/snk-filter-search.cjs.entry.js.gz +0 -0
  93. package/dist/cjs/snk-filter-text.cjs.entry.js +2 -1
  94. package/dist/cjs/snk-filter-text.cjs.entry.js.gz +0 -0
  95. package/dist/cjs/snk-form-summary.cjs.entry.js.gz +0 -0
  96. package/dist/cjs/snk-form-view.cjs.entry.js.gz +0 -0
  97. package/dist/cjs/snk-grid.cjs.entry.js +94 -27
  98. package/dist/cjs/snk-grid.cjs.entry.js.gz +0 -0
  99. package/dist/cjs/{snk-guides-viewer-69ec61af.js → snk-guides-viewer-4e234119.js} +31 -15
  100. package/dist/cjs/snk-guides-viewer-4e234119.js.gz +0 -0
  101. package/dist/cjs/snk-guides-viewer.cjs.entry.js +11 -11
  102. package/dist/cjs/snk-guides-viewer.cjs.entry.js.gz +0 -0
  103. package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js +4 -4
  104. package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js.gz +0 -0
  105. package/dist/cjs/snk-personalized-filter.cjs.entry.js +3 -3
  106. package/dist/cjs/snk-personalized-filter.cjs.entry.js.gz +0 -0
  107. package/dist/cjs/snk-pesquisa.cjs.entry.js +105 -31
  108. package/dist/cjs/snk-pesquisa.cjs.entry.js.gz +0 -0
  109. package/dist/cjs/snk-print-selector.cjs.entry.js +1 -1
  110. package/dist/cjs/snk-print-selector.cjs.entry.js.gz +0 -0
  111. package/dist/cjs/snk-simple-bar.cjs.entry.js +1 -1
  112. package/dist/cjs/snk-simple-bar.cjs.entry.js.gz +0 -0
  113. package/dist/cjs/snk-simple-crud.cjs.entry.js +113 -111
  114. package/dist/cjs/snk-simple-crud.cjs.entry.js.gz +0 -0
  115. package/dist/cjs/snk-tab-config.cjs.entry.js.gz +0 -0
  116. package/dist/cjs/snk-taskbar.cjs.entry.js +72 -40
  117. package/dist/cjs/snk-taskbar.cjs.entry.js.gz +0 -0
  118. package/dist/cjs/{taskbar-elements-9ad1f9c0.js → taskbar-elements-7e19882d.js} +1 -1
  119. package/dist/cjs/taskbar-elements-7e19882d.js.gz +0 -0
  120. package/dist/cjs/teste-pesquisa.cjs.entry.js.gz +0 -0
  121. package/dist/collection/collection-manifest.json +14 -31
  122. package/dist/collection/components/snk-actions-button/actions/enum/ActionsType.js.gz +0 -0
  123. package/dist/collection/components/snk-actions-button/actions/enum/ParamType.js.gz +0 -0
  124. package/dist/collection/components/snk-actions-button/actions/enum/RefreshType.js.gz +0 -0
  125. package/dist/collection/components/snk-actions-button/actions/executor/java.executor.js.gz +0 -0
  126. package/dist/collection/components/snk-actions-button/actions/executor/javascript.executor.js.gz +0 -0
  127. package/dist/collection/components/snk-actions-button/actions/executor/launch-screen.executor.js.gz +0 -0
  128. package/dist/collection/components/snk-actions-button/actions/executor/procedure.executor.js.gz +0 -0
  129. package/dist/collection/components/snk-actions-button/actions/factory/executor.factory.js.gz +0 -0
  130. package/dist/collection/components/snk-actions-button/actions/index.js +16 -13
  131. package/dist/collection/components/snk-actions-button/actions/index.js.gz +0 -0
  132. package/dist/collection/components/snk-actions-button/actions/interfaces/IAction.js.gz +0 -0
  133. package/dist/collection/components/snk-actions-button/actions/interfaces/IExecSource.js.gz +0 -0
  134. package/dist/collection/components/snk-actions-button/actions/interfaces/IExecuteActions.js.gz +0 -0
  135. package/dist/collection/components/snk-actions-button/actions/interfaces/IExecuteActionsProps.js.gz +0 -0
  136. package/dist/collection/components/snk-actions-button/actions/interfaces/IResultParam.js.gz +0 -0
  137. package/dist/collection/components/snk-actions-button/clientEvent/index.js.gz +0 -0
  138. package/dist/collection/components/snk-actions-button/clientEvent/interfaces/IClientEventConfirm.js.gz +0 -0
  139. package/dist/collection/components/snk-actions-button/interfaces/index.js +1 -0
  140. package/dist/collection/components/snk-actions-button/interfaces/index.js.gz +0 -0
  141. package/dist/collection/components/snk-actions-button/snk-actions-button.css.gz +0 -0
  142. package/dist/collection/components/snk-actions-button/snk-actions-button.js +27 -26
  143. package/dist/collection/components/snk-actions-button/snk-actions-button.js.gz +0 -0
  144. package/dist/collection/components/snk-actions-button/subcomponents/snk-actions-form.js.gz +0 -0
  145. package/dist/collection/components/snk-actions-button/subcomponents/snk-client-confirm.js.gz +0 -0
  146. package/dist/collection/components/snk-application/__mocks__/snk-application.js.gz +0 -0
  147. package/dist/collection/components/snk-application/errorhandler/snk-error-handler.js.gz +0 -0
  148. package/dist/collection/components/snk-application/request-listener/DebouncedRequestListener.js +28 -0
  149. package/dist/collection/components/snk-application/request-listener/DebouncedRequestListener.js.gz +0 -0
  150. package/dist/collection/components/snk-application/request-listener/RequestListenerFactory.js +16 -0
  151. package/dist/collection/components/snk-application/request-listener/RequestListenerFactory.js.gz +0 -0
  152. package/dist/collection/components/snk-application/request-listener/RequestListenerLoadingBar.js +52 -0
  153. package/dist/collection/components/snk-application/request-listener/RequestListenerLoadingBar.js.gz +0 -0
  154. package/dist/collection/components/snk-application/snk-application.css.gz +0 -0
  155. package/dist/collection/components/snk-application/snk-application.js +69 -61
  156. package/dist/collection/components/snk-application/snk-application.js.gz +0 -0
  157. package/dist/collection/components/snk-attach/interfaces/ICrudConfig.js.gz +0 -0
  158. package/dist/collection/components/snk-attach/interfaces/TFetcherType.js.gz +0 -0
  159. package/dist/collection/components/snk-attach/interfaces/index.js.gz +0 -0
  160. package/dist/collection/components/snk-attach/snk-attach.css.gz +0 -0
  161. package/dist/collection/components/snk-attach/snk-attach.js +25 -16
  162. package/dist/collection/components/snk-attach/snk-attach.js.gz +0 -0
  163. package/dist/collection/components/snk-attach/structure/builder/anexo-sistema-crud-config.builder.js.gz +0 -0
  164. package/dist/collection/components/snk-attach/structure/builder/attach-crud-config.builder.js.gz +0 -0
  165. package/dist/collection/components/snk-attach/structure/builder/taskbar-builder.js +8 -4
  166. package/dist/collection/components/snk-attach/structure/builder/taskbar-builder.js.gz +0 -0
  167. package/dist/collection/components/snk-attach/structure/fetcher/facade/fetcher.facade.js.gz +0 -0
  168. package/dist/collection/components/snk-attach/structure/fetcher/factory/anexo-sistema-data-unit.factory.js.gz +0 -0
  169. package/dist/collection/components/snk-attach/structure/fetcher/factory/attach-fetcher-data-unit.factory.js +2 -4
  170. package/dist/collection/components/snk-attach/structure/fetcher/factory/attach-fetcher-data-unit.factory.js.gz +0 -0
  171. package/dist/collection/components/snk-attach/structure/index.js.gz +0 -0
  172. package/dist/collection/components/snk-configurator/AuthorizationConfig.js.gz +0 -0
  173. package/dist/collection/components/snk-configurator/snk-configurator.css.gz +0 -0
  174. package/dist/collection/components/snk-configurator/snk-configurator.js.gz +0 -0
  175. package/dist/collection/components/snk-crud/interfaces/PropsCustomEditor.js.gz +0 -0
  176. package/dist/collection/components/snk-crud/interfaces/PropsCustomRender.js.gz +0 -0
  177. package/dist/collection/components/snk-crud/snk-crud.css.gz +0 -0
  178. package/dist/collection/components/snk-crud/snk-crud.js +103 -3
  179. package/dist/collection/components/snk-crud/snk-crud.js.gz +0 -0
  180. package/dist/collection/components/snk-crud/subcomponents/CardFormResizeObserver.js.gz +0 -0
  181. package/dist/collection/components/snk-crud/subcomponents/GuideBuilder.js.gz +0 -0
  182. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.css.gz +0 -0
  183. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +3 -3
  184. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js.gz +0 -0
  185. package/dist/collection/components/snk-crud/subcomponents/snk-form-summary.css.gz +0 -0
  186. package/dist/collection/components/snk-crud/subcomponents/snk-form-summary.js.gz +0 -0
  187. package/dist/collection/components/snk-crud/subcomponents/snk-form-view.css.gz +0 -0
  188. package/dist/collection/components/snk-crud/subcomponents/snk-form-view.js.gz +0 -0
  189. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.css +6 -6
  190. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.css.gz +0 -0
  191. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +72 -6
  192. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js.gz +0 -0
  193. package/dist/collection/components/snk-custom-slot-elements/snk-custom-slot-elements.css.gz +0 -0
  194. package/dist/collection/components/snk-custom-slot-elements/snk-custom-slot-elements.js.gz +0 -0
  195. package/dist/collection/components/snk-data-exporter/data/attachment.js.gz +0 -0
  196. package/dist/collection/components/snk-data-exporter/data/email.js.gz +0 -0
  197. package/dist/collection/components/snk-data-exporter/data/export-config.js.gz +0 -0
  198. package/dist/collection/components/snk-data-exporter/data/export-result.js.gz +0 -0
  199. package/dist/collection/components/snk-data-exporter/data/report.js.gz +0 -0
  200. package/dist/collection/components/snk-data-exporter/exporter-email-sender/email-info-step.js.gz +0 -0
  201. package/dist/collection/components/snk-data-exporter/exporter-email-sender/options-step.js +1 -1
  202. package/dist/collection/components/snk-data-exporter/exporter-email-sender/options-step.js.gz +0 -0
  203. package/dist/collection/components/snk-data-exporter/exporter-email-sender/snk-exporter-email-sender.js.gz +0 -0
  204. package/dist/collection/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.js +8 -8
  205. package/dist/collection/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.js.gz +0 -0
  206. package/dist/collection/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.js +9 -2
  207. package/dist/collection/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.js.gz +0 -0
  208. package/dist/collection/components/snk-data-exporter/interfaces/IExporterProvider.js +1 -1
  209. package/dist/collection/components/snk-data-exporter/interfaces/IExporterProvider.js.gz +0 -0
  210. package/dist/collection/components/snk-data-exporter/interfaces/IExporterStrategy.js.gz +0 -0
  211. package/dist/collection/components/snk-data-exporter/interfaces/IRecordID.js.gz +0 -0
  212. package/dist/collection/components/snk-data-exporter/interfaces/ISelectedID.js.gz +0 -0
  213. package/dist/collection/components/snk-data-exporter/providers/ClientSideExporterProvider.js +18 -6
  214. package/dist/collection/components/snk-data-exporter/providers/ClientSideExporterProvider.js.gz +0 -0
  215. package/dist/collection/components/snk-data-exporter/providers/ServerSideExporterProvider.js +1 -1
  216. package/dist/collection/components/snk-data-exporter/providers/ServerSideExporterProvider.js.gz +0 -0
  217. package/dist/collection/components/snk-data-exporter/snk-data-exporter.css.gz +0 -0
  218. package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +10 -9
  219. package/dist/collection/components/snk-data-exporter/snk-data-exporter.js.gz +0 -0
  220. package/dist/collection/components/snk-data-exporter/structure/ItemBuilder.js +2 -2
  221. package/dist/collection/components/snk-data-exporter/structure/ItemBuilder.js.gz +0 -0
  222. package/dist/collection/components/snk-data-exporter/test/resources/ClientSideExporterStrategyResources.js +4 -4
  223. package/dist/collection/components/snk-data-exporter/test/resources/ClientSideExporterStrategyResources.js.gz +0 -0
  224. package/dist/collection/components/snk-data-exporter/utils/ParserExport.js +1 -1
  225. package/dist/collection/components/snk-data-exporter/utils/ParserExport.js.gz +0 -0
  226. package/dist/collection/components/snk-data-unit/snk-data-unit.js +50 -28
  227. package/dist/collection/components/snk-data-unit/snk-data-unit.js.gz +0 -0
  228. package/dist/collection/components/snk-data-unit/test/resources/metadataMock.js.gz +0 -0
  229. package/dist/collection/components/snk-data-unit/test/resources/parentMetadataMock.js.gz +0 -0
  230. package/dist/collection/components/snk-entity-list/snk-entity-list.css.gz +0 -0
  231. package/dist/collection/components/snk-entity-list/snk-entity-list.js.gz +0 -0
  232. package/dist/collection/components/snk-filter-bar/filter-item/dataunitfilter/data-unit-filter-builder.js.gz +0 -0
  233. package/dist/collection/components/snk-filter-bar/filter-item/editors/enum/filterNumberVariation.js.gz +0 -0
  234. package/dist/collection/components/snk-filter-bar/filter-item/editors/enum/presentationMode.js.gz +0 -0
  235. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.js +1 -1
  236. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.js.gz +0 -0
  237. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-checkbox-list.js +1 -1
  238. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-checkbox-list.js.gz +0 -0
  239. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.js.gz +0 -0
  240. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js.gz +0 -0
  241. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js.gz +0 -0
  242. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-search.js.gz +0 -0
  243. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-text.js +2 -1
  244. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-text.js.gz +0 -0
  245. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.css +13 -0
  246. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.css.gz +0 -0
  247. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.js +3 -3
  248. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.js.gz +0 -0
  249. package/dist/collection/components/snk-filter-bar/filter-item/filter-item-type-mask.enum.js +8 -0
  250. package/dist/collection/components/snk-filter-bar/filter-item/filter-item-type-mask.enum.js.gz +0 -0
  251. package/dist/collection/components/snk-filter-bar/filter-item/filter-item-type.enum.js.gz +0 -0
  252. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js.gz +0 -0
  253. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +5 -1
  254. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js.gz +0 -0
  255. package/dist/collection/components/snk-filter-bar/filter-list/snk-filter-list.js.gz +0 -0
  256. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.css +1 -1
  257. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.css.gz +0 -0
  258. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +3 -1
  259. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js.gz +0 -0
  260. package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.css.gz +0 -0
  261. package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.js.gz +0 -0
  262. package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +1 -1
  263. package/dist/collection/components/snk-filter-bar/snk-filter-bar.css.gz +0 -0
  264. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +79 -21
  265. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js.gz +0 -0
  266. package/dist/collection/components/snk-filter-bar/types/custom-element-filter.js.gz +0 -0
  267. package/dist/collection/components/snk-filter-bar/types/filter-type.enum.js.gz +0 -0
  268. package/dist/collection/components/snk-filter-bar/utils/SnkFilterModalFactory.js.gz +0 -0
  269. package/dist/collection/components/snk-filter-bar/utils/filters-mock.js.gz +0 -0
  270. package/dist/collection/components/snk-filter-field-search/interfaces/index.js.gz +0 -0
  271. package/dist/collection/components/snk-filter-field-search/snk-filter-field-search.css.gz +0 -0
  272. package/dist/collection/components/snk-filter-field-search/snk-filter-field-search.js.gz +0 -0
  273. package/dist/collection/components/snk-filter-field-search/subcomponents/index.js.gz +0 -0
  274. package/dist/collection/components/snk-filter-field-search/subcomponents/list-item.js.gz +0 -0
  275. package/dist/collection/components/snk-form/snk-form.css.gz +0 -0
  276. package/dist/collection/components/snk-form/snk-form.js +2 -2
  277. package/dist/collection/components/snk-form/snk-form.js.gz +0 -0
  278. package/dist/collection/components/snk-form-config/SnkFormConfigManager.js +70 -14
  279. package/dist/collection/components/snk-form-config/SnkFormConfigManager.js.gz +0 -0
  280. package/dist/collection/components/snk-form-config/snk-form-config.css +8 -3
  281. package/dist/collection/components/snk-form-config/snk-form-config.css.gz +0 -0
  282. package/dist/collection/components/snk-form-config/snk-form-config.js +49 -8
  283. package/dist/collection/components/snk-form-config/snk-form-config.js.gz +0 -0
  284. package/dist/collection/components/snk-form-config/subcomponents/snk-config-options/snk-config-options.css.gz +0 -0
  285. package/dist/collection/components/snk-form-config/subcomponents/snk-config-options/snk-config-options.js.gz +0 -0
  286. package/dist/collection/components/snk-form-config/subcomponents/snk-field-config/snk-field-config.css.gz +0 -0
  287. package/dist/collection/components/snk-form-config/subcomponents/snk-field-config/snk-field-config.js.gz +0 -0
  288. package/dist/collection/components/snk-form-config/subcomponents/snk-tab-config/snk-tab-config.css.gz +0 -0
  289. package/dist/collection/components/snk-form-config/subcomponents/snk-tab-config/snk-tab-config.js.gz +0 -0
  290. package/dist/collection/components/snk-grid/filtercolumn/SnkMultiSelectionListDataSource.js.gz +0 -0
  291. package/dist/collection/components/snk-grid/snk-grid.css +8 -0
  292. package/dist/collection/components/snk-grid/snk-grid.css.gz +0 -0
  293. package/dist/collection/components/snk-grid/snk-grid.js +180 -13
  294. package/dist/collection/components/snk-grid/snk-grid.js.gz +0 -0
  295. package/dist/collection/components/snk-grid-config/snk-grid-config.css.gz +0 -0
  296. package/dist/collection/components/snk-grid-config/snk-grid-config.js.gz +0 -0
  297. package/dist/collection/components/snk-grid-config/snk-select-box/snk-select-box.css.gz +0 -0
  298. package/dist/collection/components/snk-grid-config/snk-select-box/snk-select-box.js.gz +0 -0
  299. package/dist/collection/components/snk-personalized-filter/interfaces/IExpressionGroup.js.gz +0 -0
  300. package/dist/collection/components/snk-personalized-filter/interfaces/IExpressionItem.js.gz +0 -0
  301. package/dist/collection/components/snk-personalized-filter/interfaces/IParameter.js.gz +0 -0
  302. package/dist/collection/components/snk-personalized-filter/interfaces/IPersonalizedFilter.js.gz +0 -0
  303. package/dist/collection/components/snk-personalized-filter/interfaces/ISystemFilterConfig.js.gz +0 -0
  304. package/dist/collection/components/snk-personalized-filter/interfaces/IUserFilterConfig.js.gz +0 -0
  305. package/dist/collection/components/snk-personalized-filter/interfaces/index.js.gz +0 -0
  306. package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.css.gz +0 -0
  307. package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js.gz +0 -0
  308. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.css.gz +0 -0
  309. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.js.gz +0 -0
  310. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/filter-operands/filter-operands.js.gz +0 -0
  311. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.css.gz +0 -0
  312. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.js.gz +0 -0
  313. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-advanced-mode/snk-filter-advanced-mode.css.gz +0 -0
  314. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-advanced-mode/snk-filter-advanced-mode.js.gz +0 -0
  315. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-assistent-mode/snk-filter-assistent-mode.css.gz +0 -0
  316. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-assistent-mode/snk-filter-assistent-mode.js.gz +0 -0
  317. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/snk-filter-param-config.css.gz +0 -0
  318. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/snk-filter-param-config.js.gz +0 -0
  319. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/utils/PersonalizedFilterUtils.js.gz +0 -0
  320. package/dist/collection/components/snk-pesquisa/pesquisa-grid/pesquisa-grid.css +10 -0
  321. package/dist/collection/components/snk-pesquisa/pesquisa-grid/pesquisa-grid.css.gz +0 -0
  322. package/dist/collection/components/snk-pesquisa/pesquisa-grid/pesquisa-grid.js +190 -0
  323. package/dist/collection/components/snk-pesquisa/pesquisa-grid/pesquisa-grid.js.gz +0 -0
  324. package/dist/collection/components/snk-pesquisa/pesquisa-tree/pesquisa-tree.css +25 -0
  325. package/dist/collection/components/snk-pesquisa/pesquisa-tree/pesquisa-tree.css.gz +0 -0
  326. package/dist/collection/components/snk-pesquisa/pesquisa-tree/pesquisa-tree.js +173 -0
  327. package/dist/collection/components/snk-pesquisa/pesquisa-tree/pesquisa-tree.js.gz +0 -0
  328. package/dist/collection/components/snk-pesquisa/pesquisaHelper.js +89 -0
  329. package/dist/collection/components/snk-pesquisa/pesquisaHelper.js.gz +0 -0
  330. package/dist/collection/components/snk-pesquisa/snk-pesquisa.css +24 -5
  331. package/dist/collection/components/snk-pesquisa/snk-pesquisa.css.gz +0 -0
  332. package/dist/collection/components/snk-pesquisa/snk-pesquisa.js +168 -32
  333. package/dist/collection/components/snk-pesquisa/snk-pesquisa.js.gz +0 -0
  334. package/dist/collection/components/snk-print-selector/snk-print-selector.css.gz +0 -0
  335. package/dist/collection/components/snk-print-selector/snk-print-selector.js +1 -1
  336. package/dist/collection/components/snk-print-selector/snk-print-selector.js.gz +0 -0
  337. package/dist/collection/components/snk-simple-bar/snk-simple-bar.css.gz +0 -0
  338. package/dist/collection/components/snk-simple-bar/snk-simple-bar.js +1 -1
  339. package/dist/collection/components/snk-simple-bar/snk-simple-bar.js.gz +0 -0
  340. package/dist/collection/components/snk-simple-crud/regular-buttons.js.gz +0 -0
  341. package/dist/collection/components/snk-simple-crud/snk-simple-crud.css +1 -1
  342. package/dist/collection/components/snk-simple-crud/snk-simple-crud.css.gz +0 -0
  343. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +145 -35
  344. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js.gz +0 -0
  345. package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.css +22 -0
  346. package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.css.gz +0 -0
  347. package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.js +181 -0
  348. package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.js.gz +0 -0
  349. package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.css.gz +0 -0
  350. package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.js.gz +0 -0
  351. package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js.gz +0 -0
  352. package/dist/collection/components/snk-taskbar/processor/taskbar-processor.js +5 -1
  353. package/dist/collection/components/snk-taskbar/processor/taskbar-processor.js.gz +0 -0
  354. package/dist/collection/components/snk-taskbar/snk-taskbar.css.gz +0 -0
  355. package/dist/collection/components/snk-taskbar/snk-taskbar.js +112 -38
  356. package/dist/collection/components/snk-taskbar/snk-taskbar.js.gz +0 -0
  357. package/dist/collection/components/snk-taskbar/subcomponents/field-search.js.gz +0 -0
  358. package/dist/collection/components/teste-pesquisa/teste-pesquisa.css.gz +0 -0
  359. package/dist/collection/components/teste-pesquisa/teste-pesquisa.js.gz +0 -0
  360. package/dist/collection/index.js.gz +0 -0
  361. package/dist/collection/lib/@types/index.js +5 -0
  362. package/dist/collection/lib/@types/index.js.gz +0 -0
  363. package/dist/collection/lib/DefaultCustomFormatters/RmPrecisionCustomValueFormatter.js +3 -3
  364. package/dist/collection/lib/DefaultCustomFormatters/RmPrecisionCustomValueFormatter.js.gz +0 -0
  365. package/dist/collection/lib/applet-caller/applet-caller.js.gz +0 -0
  366. package/dist/collection/lib/auth/mgeauthorization.module.js.gz +0 -0
  367. package/dist/collection/lib/configs/ConfigStorage.js.gz +0 -0
  368. package/dist/collection/lib/dataUnit/InMemoryLoader.js +2 -4
  369. package/dist/collection/lib/dataUnit/InMemoryLoader.js.gz +0 -0
  370. package/dist/collection/lib/dataUnit/ValueFormatter.js.gz +0 -0
  371. package/dist/collection/lib/dataUnit/dataUnitInMemoryUtils.js +34 -9
  372. package/dist/collection/lib/dataUnit/dataUnitInMemoryUtils.js.gz +0 -0
  373. package/dist/collection/lib/dataUnit/interfaces/InMemoryLoaderConfig.js.gz +0 -0
  374. package/dist/collection/lib/http/data-fetcher/DataFetcher.js +29 -26
  375. package/dist/collection/lib/http/data-fetcher/DataFetcher.js.gz +0 -0
  376. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/anexo-sistema-fetcher.js +7 -5
  377. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/anexo-sistema-fetcher.js.gz +0 -0
  378. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/attach-fetcher.js.gz +0 -0
  379. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/facade/attach-fetcher.facade.js.gz +0 -0
  380. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/index.js.gz +0 -0
  381. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/interfaces/IDelete.js.gz +0 -0
  382. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/interfaces/IDownloadKey.js.gz +0 -0
  383. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/interfaces/ISave.js.gz +0 -0
  384. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/interfaces/index.js.gz +0 -0
  385. package/dist/collection/lib/http/data-fetcher/fetchers/application-config-fetcher.js.gz +0 -0
  386. package/dist/collection/lib/http/data-fetcher/fetchers/auth-fetcher.js.gz +0 -0
  387. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/DataUnitDataLoader.js +2 -2
  388. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/DataUnitDataLoader.js.gz +0 -0
  389. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/ArrayRepository.js +21 -7
  390. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/ArrayRepository.js.gz +0 -0
  391. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.js.gz +0 -0
  392. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/dataunit-fetcher.js.gz +0 -0
  393. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IBuildRequestBodyLoadRowMetadata.js.gz +0 -0
  394. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/ILoadDataResult.js.gz +0 -0
  395. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/ILoadDataStrategy.js.gz +0 -0
  396. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/ILoadingInfo.js.gz +0 -0
  397. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IRecordField.js.gz +0 -0
  398. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IResponseRecord.js.gz +0 -0
  399. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IRowMetadata.js.gz +0 -0
  400. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DataUnitStrategy.js.gz +0 -0
  401. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js +9 -2
  402. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js.gz +0 -0
  403. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/test/resources/metadataMock.js.gz +0 -0
  404. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IExporterColumnMetadata.js.gz +0 -0
  405. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterParams.js +6 -1
  406. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterParams.js.gz +0 -0
  407. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterResponse.js.gz +0 -0
  408. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IPersonalizedReport.js.gz +0 -0
  409. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/permission-export-pdf.js.gz +0 -0
  410. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/personalized-reports-fetcher.js.gz +0 -0
  411. package/dist/collection/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.js.gz +0 -0
  412. package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +45 -5
  413. package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js.gz +0 -0
  414. package/dist/collection/lib/http/data-fetcher/fetchers/grid-config-fetcher.js.gz +0 -0
  415. package/dist/collection/lib/http/data-fetcher/fetchers/parameters-fecher.js +7 -1
  416. package/dist/collection/lib/http/data-fetcher/fetchers/parameters-fecher.js.gz +0 -0
  417. package/dist/collection/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.js.gz +0 -0
  418. package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +98 -4
  419. package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js.gz +0 -0
  420. package/dist/collection/lib/http/data-fetcher/fetchers/resource-fetcher.js.gz +0 -0
  421. package/dist/collection/lib/http/data-fetcher/fetchers/totals-fetcher.js.gz +0 -0
  422. package/dist/collection/lib/http/data-fetcher/interfaces/IClientEventResponse.js.gz +0 -0
  423. package/dist/collection/lib/http/data-fetcher/recaller/GraphQLRecaller.js.gz +0 -0
  424. package/dist/collection/lib/http/data-fetcher/recaller/IDataFetcherRecaller.js.gz +0 -0
  425. package/dist/collection/lib/http/data-fetcher/recaller/ServiceBrokerRecaller.js.gz +0 -0
  426. package/dist/collection/lib/http/data-fetcher/state/LoadStateManager.js.gz +0 -0
  427. package/dist/collection/lib/index.js.gz +0 -0
  428. package/dist/collection/lib/licenses/sankhyalicense.module.js.gz +0 -0
  429. package/dist/collection/lib/message/SnkMessageBuilder.js.gz +0 -0
  430. package/dist/collection/lib/message/resources/crud-utils.msg.js.gz +0 -0
  431. package/dist/collection/lib/message/resources/file-viewer.msg.js.gz +0 -0
  432. package/dist/collection/lib/message/resources/snk-actions-button.msg.js.gz +0 -0
  433. package/dist/collection/lib/message/resources/snk-application.msg.js.gz +0 -0
  434. package/dist/collection/lib/message/resources/snk-attach.msg.js.gz +0 -0
  435. package/dist/collection/lib/message/resources/snk-configurator.msg.js.gz +0 -0
  436. package/dist/collection/lib/message/resources/snk-crud.msg.js.gz +0 -0
  437. package/dist/collection/lib/message/resources/snk-data-exporter.msg.js.gz +0 -0
  438. package/dist/collection/lib/message/resources/snk-data-unit.msg.js.gz +0 -0
  439. package/dist/collection/lib/message/resources/snk-entity-list.msg.js.gz +0 -0
  440. package/dist/collection/lib/message/resources/snk-exporter.msg.js +1 -1
  441. package/dist/collection/lib/message/resources/snk-exporter.msg.js.gz +0 -0
  442. package/dist/collection/lib/message/resources/snk-filter-bar.msg.js.gz +0 -0
  443. package/dist/collection/lib/message/resources/snk-filter-field-search.msg.js.gz +0 -0
  444. package/dist/collection/lib/message/resources/snk-filter-param-config.msg.js.gz +0 -0
  445. package/dist/collection/lib/message/resources/snk-form.msg.js.gz +0 -0
  446. package/dist/collection/lib/message/resources/snk-grid.msg.js +5 -1
  447. package/dist/collection/lib/message/resources/snk-grid.msg.js.gz +0 -0
  448. package/dist/collection/lib/message/resources/snk-personalized-filter.msg.js.gz +0 -0
  449. package/dist/collection/lib/message/resources/snk-print-selector.msg.js.gz +0 -0
  450. package/dist/collection/lib/message/resources/snk-simple-bar.msg.js.gz +0 -0
  451. package/dist/collection/lib/message/resources/snk-simple-crud.msg.js.gz +0 -0
  452. package/dist/collection/lib/message/resources/snk-taskbar.msg.js.gz +0 -0
  453. package/dist/collection/lib/resourceid/ResourceIDUtils.js.gz +0 -0
  454. package/dist/collection/lib/store/index.js.gz +0 -0
  455. package/dist/collection/lib/utils/ContinuousInsertUtils.js +31 -0
  456. package/dist/collection/lib/utils/ContinuousInsertUtils.js.gz +0 -0
  457. package/dist/collection/lib/utils/CrudUtils.js +25 -16
  458. package/dist/collection/lib/utils/CrudUtils.js.gz +0 -0
  459. package/dist/collection/{components/snk-data-exporter/utils/RecordIDUtils.js → lib/utils/GetSelectedRecordsIDsInfo.js} +9 -9
  460. package/dist/collection/lib/utils/GetSelectedRecordsIDsInfo.js.gz +0 -0
  461. package/dist/collection/lib/utils/PrintUtils.js.gz +0 -0
  462. package/dist/collection/lib/utils/constants.js.gz +0 -0
  463. package/dist/collection/lib/utils/fileViewer/index.js.gz +0 -0
  464. package/dist/collection/lib/utils/fileViewer/interfaces/IFileViewerParams.js.gz +0 -0
  465. package/dist/collection/lib/utils/pesquisa.js.gz +0 -0
  466. package/dist/collection/lib/utils/urlutils.js.gz +0 -0
  467. package/dist/collection/lib/workspace/workspace.js.gz +0 -0
  468. package/dist/collection/sw.js +46 -0
  469. package/dist/collection/sw.js.gz +0 -0
  470. package/dist/components/AuthorizationConfig.js.gz +0 -0
  471. package/dist/components/ConfigStorage.js.gz +0 -0
  472. package/dist/components/{IExporterProvider.js → ContinuousInsertUtils.js} +135 -24
  473. package/dist/components/ContinuousInsertUtils.js.gz +0 -0
  474. package/dist/components/DataFetcher.js +216 -81
  475. package/dist/components/DataFetcher.js.gz +0 -0
  476. package/dist/{esm/RecordIDUtils-87d02110.js → components/GetSelectedRecordsIDsInfo.js} +10 -10
  477. package/dist/components/GetSelectedRecordsIDsInfo.js.gz +0 -0
  478. package/dist/components/ISave.js +351 -1
  479. package/dist/components/ISave.js.gz +0 -0
  480. package/dist/components/ParamType.js.gz +0 -0
  481. package/dist/components/PersonalizedFilterUtils.js.gz +0 -0
  482. package/dist/components/PrintUtils.js.gz +0 -0
  483. package/dist/components/ResourceIDUtils.js.gz +0 -0
  484. package/dist/components/SnkFormConfigManager.js +70 -14
  485. package/dist/components/SnkFormConfigManager.js.gz +0 -0
  486. package/dist/components/SnkMessageBuilder.js +6 -2
  487. package/dist/components/SnkMessageBuilder.js.gz +0 -0
  488. package/dist/components/auth-fetcher.js.gz +0 -0
  489. package/dist/components/constants.js.gz +0 -0
  490. package/dist/components/dataunit-fetcher.js +68 -24
  491. package/dist/components/dataunit-fetcher.js.gz +0 -0
  492. package/dist/components/filter-item-type.enum.js.gz +0 -0
  493. package/dist/components/filterNumberVariation.js.gz +0 -0
  494. package/dist/components/form-config-fetcher.js +41 -1
  495. package/dist/components/form-config-fetcher.js.gz +0 -0
  496. package/dist/components/index.d.ts +3 -0
  497. package/dist/components/index.js +3 -0
  498. package/dist/components/index.js.gz +0 -0
  499. package/dist/components/index2.js.gz +0 -0
  500. package/dist/components/pesquisa-grid.d.ts +11 -0
  501. package/dist/components/pesquisa-grid.js +6 -0
  502. package/dist/components/pesquisa-grid.js.gz +0 -0
  503. package/dist/components/pesquisa-grid2.js +86 -0
  504. package/dist/components/pesquisa-grid2.js.gz +0 -0
  505. package/dist/components/pesquisa-tree.d.ts +11 -0
  506. package/dist/components/pesquisa-tree.js +6 -0
  507. package/dist/components/pesquisa-tree.js.gz +0 -0
  508. package/dist/components/pesquisa-tree2.js +76 -0
  509. package/dist/components/pesquisa-tree2.js.gz +0 -0
  510. package/dist/components/presentationMode.js.gz +0 -0
  511. package/dist/components/snk-actions-button.js.gz +0 -0
  512. package/dist/components/snk-actions-button2.js +43 -40
  513. package/dist/components/snk-actions-button2.js.gz +0 -0
  514. package/dist/components/snk-actions-form.js.gz +0 -0
  515. package/dist/components/snk-application.js.gz +0 -0
  516. package/dist/components/snk-application2.js +149 -63
  517. package/dist/components/snk-application2.js.gz +0 -0
  518. package/dist/components/snk-attach.js.gz +0 -0
  519. package/dist/components/snk-attach2.js +54 -60
  520. package/dist/components/snk-attach2.js.gz +0 -0
  521. package/dist/components/snk-client-confirm.js.gz +0 -0
  522. package/dist/components/snk-config-options.js.gz +0 -0
  523. package/dist/components/snk-config-options2.js.gz +0 -0
  524. package/dist/components/snk-configurator.js.gz +0 -0
  525. package/dist/components/snk-configurator2.js.gz +0 -0
  526. package/dist/components/snk-crud.js +81 -59
  527. package/dist/components/snk-crud.js.gz +0 -0
  528. package/dist/components/snk-custom-slot-elements.js.gz +0 -0
  529. package/dist/components/snk-data-exporter.js.gz +0 -0
  530. package/dist/components/snk-data-exporter2.js +37 -23
  531. package/dist/components/snk-data-exporter2.js.gz +0 -0
  532. package/dist/components/snk-data-unit.js.gz +0 -0
  533. package/dist/components/snk-data-unit2.js +53 -68
  534. package/dist/components/snk-data-unit2.js.gz +0 -0
  535. package/dist/components/snk-detail-view.js.gz +0 -0
  536. package/dist/components/snk-detail-view2.js +114 -105
  537. package/dist/components/snk-detail-view2.js.gz +0 -0
  538. package/dist/components/snk-entity-list.js.gz +0 -0
  539. package/dist/components/snk-exporter-email-sender.js.gz +0 -0
  540. package/dist/components/snk-exporter-email-sender2.js +1 -1
  541. package/dist/components/snk-exporter-email-sender2.js.gz +0 -0
  542. package/dist/components/snk-expression-group.js.gz +0 -0
  543. package/dist/components/snk-expression-group2.js.gz +0 -0
  544. package/dist/components/snk-expression-item.js.gz +0 -0
  545. package/dist/components/snk-expression-item2.js.gz +0 -0
  546. package/dist/components/snk-field-config.js.gz +0 -0
  547. package/dist/components/snk-field-config2.js.gz +0 -0
  548. package/dist/components/snk-filter-advanced-mode.js.gz +0 -0
  549. package/dist/components/snk-filter-advanced-mode2.js.gz +0 -0
  550. package/dist/components/snk-filter-assistent-mode.js.gz +0 -0
  551. package/dist/components/snk-filter-assistent-mode2.js.gz +0 -0
  552. package/dist/components/snk-filter-bar.js.gz +0 -0
  553. package/dist/components/snk-filter-bar2.js +41 -22
  554. package/dist/components/snk-filter-bar2.js.gz +0 -0
  555. package/dist/components/snk-filter-binary-select.js +1 -1
  556. package/dist/components/snk-filter-binary-select.js.gz +0 -0
  557. package/dist/components/snk-filter-checkbox-list.js +1 -1
  558. package/dist/components/snk-filter-checkbox-list.js.gz +0 -0
  559. package/dist/components/snk-filter-detail.js.gz +0 -0
  560. package/dist/components/snk-filter-detail2.js.gz +0 -0
  561. package/dist/components/snk-filter-field-search.js.gz +0 -0
  562. package/dist/components/snk-filter-field-search2.js.gz +0 -0
  563. package/dist/components/snk-filter-item.js.gz +0 -0
  564. package/dist/components/snk-filter-item2.js +5 -1
  565. package/dist/components/snk-filter-item2.js.gz +0 -0
  566. package/dist/components/snk-filter-list.js.gz +0 -0
  567. package/dist/components/snk-filter-modal-item.js.gz +0 -0
  568. package/dist/components/snk-filter-modal-item2.js.gz +0 -0
  569. package/dist/components/snk-filter-modal.js +4 -2
  570. package/dist/components/snk-filter-modal.js.gz +0 -0
  571. package/dist/components/snk-filter-multi-select.js.gz +0 -0
  572. package/dist/components/snk-filter-number.js.gz +0 -0
  573. package/dist/components/snk-filter-param-config.js.gz +0 -0
  574. package/dist/components/snk-filter-param-config2.js.gz +0 -0
  575. package/dist/components/snk-filter-period.js.gz +0 -0
  576. package/dist/components/snk-filter-search.js.gz +0 -0
  577. package/dist/components/snk-filter-text.js +2 -1
  578. package/dist/components/snk-filter-text.js.gz +0 -0
  579. package/dist/components/snk-form-config.js.gz +0 -0
  580. package/dist/components/snk-form-config2.js +34 -9
  581. package/dist/components/snk-form-config2.js.gz +0 -0
  582. package/dist/components/snk-form-summary.js.gz +0 -0
  583. package/dist/components/snk-form-summary2.js.gz +0 -0
  584. package/dist/components/snk-form-view.js.gz +0 -0
  585. package/dist/components/snk-form-view2.js.gz +0 -0
  586. package/dist/components/snk-form.js +2 -2
  587. package/dist/components/snk-form.js.gz +0 -0
  588. package/dist/components/snk-grid-config.js.gz +0 -0
  589. package/dist/components/snk-grid-config2.js.gz +0 -0
  590. package/dist/components/snk-grid.js.gz +0 -0
  591. package/dist/components/snk-grid2.js +89 -18
  592. package/dist/components/snk-grid2.js.gz +0 -0
  593. package/dist/components/snk-guides-viewer.js.gz +0 -0
  594. package/dist/components/snk-personalized-filter-editor.js +4 -4
  595. package/dist/components/snk-personalized-filter-editor.js.gz +0 -0
  596. package/dist/components/snk-personalized-filter.js.gz +0 -0
  597. package/dist/components/snk-personalized-filter2.js.gz +0 -0
  598. package/dist/components/snk-pesquisa.js.gz +0 -0
  599. package/dist/components/snk-pesquisa2.js +118 -33
  600. package/dist/components/snk-pesquisa2.js.gz +0 -0
  601. package/dist/components/snk-print-selector.js +1 -1
  602. package/dist/components/snk-print-selector.js.gz +0 -0
  603. package/dist/components/snk-select-box.js.gz +0 -0
  604. package/dist/components/snk-select-box2.js.gz +0 -0
  605. package/dist/components/snk-simple-bar.js.gz +0 -0
  606. package/dist/components/snk-simple-bar2.js +1 -1
  607. package/dist/components/snk-simple-bar2.js.gz +0 -0
  608. package/dist/components/snk-simple-crud.js.gz +0 -0
  609. package/dist/components/snk-simple-crud2.js +105 -120
  610. package/dist/components/snk-simple-crud2.js.gz +0 -0
  611. package/dist/components/snk-simple-form-config.d.ts +11 -0
  612. package/dist/components/snk-simple-form-config.js +6 -0
  613. package/dist/components/snk-simple-form-config.js.gz +0 -0
  614. package/dist/components/snk-simple-form-config2.js +120 -0
  615. package/dist/components/snk-simple-form-config2.js.gz +0 -0
  616. package/dist/components/snk-tab-config.js.gz +0 -0
  617. package/dist/components/snk-tab-config2.js.gz +0 -0
  618. package/dist/components/snk-taskbar.js.gz +0 -0
  619. package/dist/components/snk-taskbar2.js +72 -40
  620. package/dist/components/snk-taskbar2.js.gz +0 -0
  621. package/dist/components/taskbar-actions-button.js.gz +0 -0
  622. package/dist/components/taskbar-actions-button2.js.gz +0 -0
  623. package/dist/components/teste-pesquisa.js +13 -1
  624. package/dist/components/teste-pesquisa.js.gz +0 -0
  625. package/dist/esm/AuthorizationConfig-dcbd207a.js.gz +0 -0
  626. package/dist/esm/{IExporterProvider-d597f27d.js → ClientSideExporterProvider-82ad5a97.js} +135 -26
  627. package/dist/esm/ClientSideExporterProvider-82ad5a97.js.gz +0 -0
  628. package/dist/esm/{ConfigStorage-e476378d.js → ConfigStorage-373bb440.js} +2 -2
  629. package/dist/esm/ConfigStorage-373bb440.js.gz +0 -0
  630. package/dist/esm/{DataFetcher-773a3e4b.js → DataFetcher-5221b992.js} +216 -81
  631. package/dist/esm/DataFetcher-5221b992.js.gz +0 -0
  632. package/dist/esm/GetSelectedRecordsIDsInfo-9fa41508.js +41 -0
  633. package/dist/esm/GetSelectedRecordsIDsInfo-9fa41508.js.gz +0 -0
  634. package/dist/esm/IFetchDataExporterParams-d73bed3d.js +8 -0
  635. package/dist/esm/IFetchDataExporterParams-d73bed3d.js.gz +0 -0
  636. package/dist/esm/ISave-d8c8bc59.js.gz +0 -0
  637. package/dist/esm/ParamType-d5152b06.js.gz +0 -0
  638. package/dist/esm/PersonalizedFilterUtils-e2b38ef7.js.gz +0 -0
  639. package/dist/esm/PrintUtils-3e4ff0f5.js.gz +0 -0
  640. package/dist/esm/ResourceIDUtils-a114189a.js.gz +0 -0
  641. package/dist/esm/{SnkFormConfigManager-298cd647.js → SnkFormConfigManager-b65e6db0.js} +72 -16
  642. package/dist/esm/SnkFormConfigManager-b65e6db0.js.gz +0 -0
  643. package/dist/esm/{SnkMessageBuilder-571462fb.js → SnkMessageBuilder-6fff4a4c.js} +6 -2
  644. package/dist/esm/SnkMessageBuilder-6fff4a4c.js.gz +0 -0
  645. package/dist/esm/Sortable-83960219.js.gz +0 -0
  646. package/dist/esm/{auth-fetcher-a411f73c.js → auth-fetcher-e32fe8a4.js} +1 -1
  647. package/dist/esm/auth-fetcher-e32fe8a4.js.gz +0 -0
  648. package/dist/esm/{constants-8457af36.js → constants-7302ee87.js} +1 -1
  649. package/dist/esm/constants-7302ee87.js.gz +0 -0
  650. package/dist/esm/{dataunit-fetcher-3d2ec959.js → dataunit-fetcher-55effba3.js} +69 -25
  651. package/dist/esm/dataunit-fetcher-55effba3.js.gz +0 -0
  652. package/dist/esm/{field-search-efbe307f.js → field-search-f8b1d91e.js} +5 -1
  653. package/dist/esm/field-search-f8b1d91e.js.gz +0 -0
  654. package/dist/esm/filter-item-type.enum-d45e026f.js.gz +0 -0
  655. package/dist/esm/filter-type.enum-a80c1b6b.js.gz +0 -0
  656. package/dist/esm/filterNumberVariation-8cee02ea.js.gz +0 -0
  657. package/dist/esm/{form-config-fetcher-e0382e5a.js → form-config-fetcher-126e2471.js} +42 -2
  658. package/dist/esm/form-config-fetcher-126e2471.js.gz +0 -0
  659. package/dist/esm/index-620ac460.js.gz +0 -0
  660. package/dist/esm/index-a7d3d3f1.js +16 -32
  661. package/dist/esm/index-a7d3d3f1.js.gz +0 -0
  662. package/dist/esm/index-ae591a44.js.gz +0 -0
  663. package/dist/esm/{index-3aa4977a.js → index-b40568ff.js} +6 -1
  664. package/dist/esm/index-b40568ff.js.gz +0 -0
  665. package/dist/esm/index-bdf75557.js.gz +0 -0
  666. package/dist/esm/index.js.gz +0 -0
  667. package/dist/esm/loader.js +1 -1
  668. package/dist/esm/loader.js.gz +0 -0
  669. package/dist/{components/pesquisa-fetcher.js → esm/pesquisa-fetcher-0af41f09.js} +186 -4
  670. package/dist/esm/pesquisa-fetcher-0af41f09.js.gz +0 -0
  671. package/dist/esm/pesquisa-grid_2.entry.js +122 -0
  672. package/dist/esm/pesquisa-grid_2.entry.js.gz +0 -0
  673. package/dist/esm/polyfills/core-js.js.gz +0 -0
  674. package/dist/esm/polyfills/css-shim.js.gz +0 -0
  675. package/dist/esm/polyfills/dom.js.gz +0 -0
  676. package/dist/esm/polyfills/es5-html-element.js.gz +0 -0
  677. package/dist/esm/polyfills/index.js.gz +0 -0
  678. package/dist/esm/polyfills/system.js.gz +0 -0
  679. package/dist/esm/presentationMode-783bbf9d.js.gz +0 -0
  680. package/dist/esm/sankhyablocks.js +1 -1
  681. package/dist/esm/sankhyablocks.js.gz +0 -0
  682. package/dist/esm/{snk-actions-button_4.entry.js → snk-actions-button_5.entry.js} +139 -44
  683. package/dist/esm/snk-actions-button_5.entry.js.gz +0 -0
  684. package/dist/esm/snk-actions-form.entry.js.gz +0 -0
  685. package/dist/esm/snk-application.entry.js +140 -67
  686. package/dist/esm/snk-application.entry.js.gz +0 -0
  687. package/dist/esm/snk-attach.entry.js +49 -36
  688. package/dist/esm/snk-attach.entry.js.gz +0 -0
  689. package/dist/esm/snk-client-confirm.entry.js.gz +0 -0
  690. package/dist/esm/{snk-form-config.entry.js → snk-config-options_3.entry.js} +399 -15
  691. package/dist/esm/snk-config-options_3.entry.js.gz +0 -0
  692. package/dist/esm/snk-configurator.entry.js +1 -1
  693. package/dist/esm/snk-configurator.entry.js.gz +0 -0
  694. package/dist/esm/snk-crud.entry.js +24 -11
  695. package/dist/esm/snk-crud.entry.js.gz +0 -0
  696. package/dist/esm/snk-custom-slot-elements.entry.js.gz +0 -0
  697. package/dist/esm/snk-data-exporter.entry.js +38 -29
  698. package/dist/esm/snk-data-exporter.entry.js.gz +0 -0
  699. package/dist/esm/{snk-data-unit-2a1d5d09.js → snk-data-unit-d3c5b577.js} +52 -30
  700. package/dist/esm/snk-data-unit-d3c5b577.js.gz +0 -0
  701. package/dist/esm/snk-data-unit.entry.js +5 -5
  702. package/dist/esm/snk-data-unit.entry.js.gz +0 -0
  703. package/dist/esm/snk-detail-view.entry.js +15 -15
  704. package/dist/esm/snk-detail-view.entry.js.gz +0 -0
  705. package/dist/esm/snk-entity-list.entry.js.gz +0 -0
  706. package/dist/esm/snk-exporter-email-sender.entry.js +1 -1
  707. package/dist/esm/snk-exporter-email-sender.entry.js.gz +0 -0
  708. package/dist/esm/snk-expression-group_2.entry.js.gz +0 -0
  709. package/dist/esm/snk-field-config.entry.js +1 -1
  710. package/dist/esm/snk-field-config.entry.js.gz +0 -0
  711. package/dist/esm/snk-filter-advanced-mode_2.entry.js.gz +0 -0
  712. package/dist/esm/snk-filter-bar_4.entry.js +1415 -0
  713. package/dist/esm/snk-filter-bar_4.entry.js.gz +0 -0
  714. package/dist/esm/snk-filter-binary-select.entry.js +1 -1
  715. package/dist/esm/snk-filter-binary-select.entry.js.gz +0 -0
  716. package/dist/esm/snk-filter-checkbox-list.entry.js +1 -1
  717. package/dist/esm/snk-filter-checkbox-list.entry.js.gz +0 -0
  718. package/dist/esm/snk-filter-detail.entry.js.gz +0 -0
  719. package/dist/esm/snk-filter-field-search_2.entry.js.gz +0 -0
  720. package/dist/esm/snk-filter-modal-item.entry.js +3 -3
  721. package/dist/esm/snk-filter-modal-item.entry.js.gz +0 -0
  722. package/dist/esm/snk-filter-multi-select.entry.js.gz +0 -0
  723. package/dist/esm/snk-filter-number.entry.js.gz +0 -0
  724. package/dist/esm/snk-filter-period.entry.js.gz +0 -0
  725. package/dist/esm/snk-filter-search.entry.js.gz +0 -0
  726. package/dist/esm/snk-filter-text.entry.js +2 -1
  727. package/dist/esm/snk-filter-text.entry.js.gz +0 -0
  728. package/dist/esm/snk-form-summary.entry.js.gz +0 -0
  729. package/dist/esm/snk-form-view.entry.js.gz +0 -0
  730. package/dist/esm/snk-grid.entry.js +89 -22
  731. package/dist/esm/snk-grid.entry.js.gz +0 -0
  732. package/dist/esm/{snk-guides-viewer-43f21b03.js → snk-guides-viewer-697ef5b9.js} +32 -16
  733. package/dist/esm/snk-guides-viewer-697ef5b9.js.gz +0 -0
  734. package/dist/esm/snk-guides-viewer.entry.js +11 -11
  735. package/dist/esm/snk-guides-viewer.entry.js.gz +0 -0
  736. package/dist/esm/snk-personalized-filter-editor.entry.js +4 -4
  737. package/dist/esm/snk-personalized-filter-editor.entry.js.gz +0 -0
  738. package/dist/esm/snk-personalized-filter.entry.js +3 -3
  739. package/dist/esm/snk-personalized-filter.entry.js.gz +0 -0
  740. package/dist/esm/snk-pesquisa.entry.js +105 -31
  741. package/dist/esm/snk-pesquisa.entry.js.gz +0 -0
  742. package/dist/esm/snk-print-selector.entry.js +1 -1
  743. package/dist/esm/snk-print-selector.entry.js.gz +0 -0
  744. package/dist/esm/snk-simple-bar.entry.js +1 -1
  745. package/dist/esm/snk-simple-bar.entry.js.gz +0 -0
  746. package/dist/esm/snk-simple-crud.entry.js +100 -98
  747. package/dist/esm/snk-simple-crud.entry.js.gz +0 -0
  748. package/dist/esm/snk-tab-config.entry.js +1 -1
  749. package/dist/esm/snk-tab-config.entry.js.gz +0 -0
  750. package/dist/esm/snk-taskbar.entry.js +73 -41
  751. package/dist/esm/snk-taskbar.entry.js.gz +0 -0
  752. package/dist/esm/{taskbar-elements-d59867f1.js → taskbar-elements-d2353c64.js} +1 -1
  753. package/dist/esm/taskbar-elements-d2353c64.js.gz +0 -0
  754. package/dist/esm/teste-pesquisa.entry.js.gz +0 -0
  755. package/dist/index.cjs.js.gz +0 -0
  756. package/dist/index.js.gz +0 -0
  757. package/dist/sankhyablocks/index.esm.js.gz +0 -0
  758. package/dist/sankhyablocks/p-01ba23cd.entry.js.gz +0 -0
  759. package/dist/sankhyablocks/p-057fad05.js.gz +0 -0
  760. package/dist/sankhyablocks/p-05b6ff91.js +1 -0
  761. package/dist/sankhyablocks/p-05b6ff91.js.gz +0 -0
  762. package/dist/sankhyablocks/p-0f3698af.js +1 -0
  763. package/dist/sankhyablocks/p-0f3698af.js.gz +0 -0
  764. package/dist/sankhyablocks/p-118e769b.entry.js.gz +0 -0
  765. package/dist/sankhyablocks/p-13624fb5.js +1 -0
  766. package/dist/sankhyablocks/p-13624fb5.js.gz +0 -0
  767. package/dist/sankhyablocks/p-1435701f.js +26 -0
  768. package/dist/sankhyablocks/p-1435701f.js.gz +0 -0
  769. package/dist/sankhyablocks/p-15a5e8a6.entry.js +1 -0
  770. package/dist/sankhyablocks/p-15a5e8a6.entry.js.gz +0 -0
  771. package/dist/sankhyablocks/p-16a1dd18.entry.js +1 -0
  772. package/dist/sankhyablocks/p-16a1dd18.entry.js.gz +0 -0
  773. package/dist/sankhyablocks/p-17425c72.js +1 -0
  774. package/dist/sankhyablocks/p-17425c72.js.gz +0 -0
  775. package/dist/sankhyablocks/{p-3287a6cc.js → p-19dc71e9.js} +1 -1
  776. package/dist/sankhyablocks/p-19dc71e9.js.gz +0 -0
  777. package/dist/sankhyablocks/p-1a68fb59.js.gz +0 -0
  778. package/dist/sankhyablocks/{p-9dfda04a.entry.js → p-1cf39cfd.entry.js} +1 -1
  779. package/dist/sankhyablocks/p-1cf39cfd.entry.js.gz +0 -0
  780. package/dist/sankhyablocks/p-1db45d26.entry.js.gz +0 -0
  781. package/dist/sankhyablocks/p-1e4e881c.entry.js +1 -0
  782. package/dist/sankhyablocks/p-1e4e881c.entry.js.gz +0 -0
  783. package/dist/sankhyablocks/p-1e4f16f3.js +60 -0
  784. package/dist/sankhyablocks/p-1e4f16f3.js.gz +0 -0
  785. package/dist/sankhyablocks/p-21749402.js.gz +0 -0
  786. package/dist/sankhyablocks/p-21a81901.entry.js.gz +0 -0
  787. package/dist/sankhyablocks/p-23736d75.js +1 -0
  788. package/dist/sankhyablocks/p-23736d75.js.gz +0 -0
  789. package/dist/sankhyablocks/p-26b0ce3e.entry.js.gz +0 -0
  790. package/dist/sankhyablocks/{p-8eb67fa4.entry.js → p-2d3f9482.entry.js} +1 -1
  791. package/dist/sankhyablocks/p-2d3f9482.entry.js.gz +0 -0
  792. package/dist/sankhyablocks/p-30a62c1f.entry.js +11 -0
  793. package/dist/sankhyablocks/p-30a62c1f.entry.js.gz +0 -0
  794. package/dist/sankhyablocks/p-33718dfc.entry.js.gz +0 -0
  795. package/dist/sankhyablocks/p-36ee903d.entry.js +1 -0
  796. package/dist/sankhyablocks/p-36ee903d.entry.js.gz +0 -0
  797. package/dist/sankhyablocks/p-3a7e91cd.js +1 -0
  798. package/dist/sankhyablocks/p-3a7e91cd.js.gz +0 -0
  799. package/dist/sankhyablocks/p-3ab6df3d.entry.js.gz +0 -0
  800. package/dist/sankhyablocks/{p-7e7a7473.js → p-3fc82614.js} +1 -1
  801. package/dist/sankhyablocks/p-3fc82614.js.gz +0 -0
  802. package/dist/sankhyablocks/{p-7663f597.entry.js → p-41793e17.entry.js} +1 -1
  803. package/dist/sankhyablocks/p-41793e17.entry.js.gz +0 -0
  804. package/dist/sankhyablocks/{p-72fc257b.entry.js → p-434817f0.entry.js} +1 -1
  805. package/dist/sankhyablocks/p-434817f0.entry.js.gz +0 -0
  806. package/dist/sankhyablocks/p-47178038.entry.js +1 -0
  807. package/dist/sankhyablocks/p-47178038.entry.js.gz +0 -0
  808. package/dist/sankhyablocks/p-4e67a04e.js +1 -0
  809. package/dist/sankhyablocks/p-4e67a04e.js.gz +0 -0
  810. package/dist/sankhyablocks/p-54a5d52a.entry.js.gz +0 -0
  811. package/dist/sankhyablocks/{p-aaa3ee68.entry.js → p-5f157b09.entry.js} +1 -1
  812. package/dist/sankhyablocks/p-5f157b09.entry.js.gz +0 -0
  813. package/dist/sankhyablocks/p-688dcb4c.js.gz +0 -0
  814. package/dist/sankhyablocks/p-6dc031de.js.gz +0 -0
  815. package/dist/sankhyablocks/p-798386c7.js +6 -0
  816. package/dist/sankhyablocks/p-798386c7.js.gz +0 -0
  817. package/dist/sankhyablocks/p-7cf8c72c.entry.js +1 -0
  818. package/dist/sankhyablocks/p-7cf8c72c.entry.js.gz +0 -0
  819. package/dist/sankhyablocks/p-7dd49d15.js +1 -0
  820. package/dist/sankhyablocks/p-7dd49d15.js.gz +0 -0
  821. package/dist/sankhyablocks/p-7e2ded86.entry.js.gz +0 -0
  822. package/dist/sankhyablocks/p-8002dcd0.entry.js.gz +0 -0
  823. package/dist/sankhyablocks/{p-bd008859.entry.js → p-82ee6dc3.entry.js} +1 -1
  824. package/dist/sankhyablocks/p-82ee6dc3.entry.js.gz +0 -0
  825. package/dist/sankhyablocks/p-862eabb5.entry.js +1 -0
  826. package/dist/sankhyablocks/p-862eabb5.entry.js.gz +0 -0
  827. package/dist/sankhyablocks/p-8938e392.entry.js +1 -0
  828. package/dist/sankhyablocks/p-8938e392.entry.js.gz +0 -0
  829. package/dist/sankhyablocks/p-89c92727.entry.js +1 -0
  830. package/dist/sankhyablocks/p-89c92727.entry.js.gz +0 -0
  831. package/dist/sankhyablocks/{p-95df461f.entry.js → p-8b4fc28f.entry.js} +1 -1
  832. package/dist/sankhyablocks/p-8b4fc28f.entry.js.gz +0 -0
  833. package/dist/sankhyablocks/{p-41f8bfa3.entry.js → p-8c235d4c.entry.js} +1 -1
  834. package/dist/sankhyablocks/p-8c235d4c.entry.js.gz +0 -0
  835. package/dist/sankhyablocks/p-8d884fab.js.gz +0 -0
  836. package/dist/sankhyablocks/p-8ea746a9.entry.js +1 -0
  837. package/dist/sankhyablocks/p-8ea746a9.entry.js.gz +0 -0
  838. package/dist/sankhyablocks/p-8f3f2306.js +1 -0
  839. package/dist/sankhyablocks/p-8f3f2306.js.gz +0 -0
  840. package/dist/sankhyablocks/p-933c0c0b.js.gz +0 -0
  841. package/dist/sankhyablocks/p-9531fd46.entry.js.gz +0 -0
  842. package/dist/sankhyablocks/{p-b0ef4383.js → p-95ce311a.js} +1 -1
  843. package/dist/sankhyablocks/p-95ce311a.js.gz +0 -0
  844. package/dist/sankhyablocks/p-98b980bd.entry.js +1 -0
  845. package/dist/sankhyablocks/p-98b980bd.entry.js.gz +0 -0
  846. package/dist/sankhyablocks/p-9d3a025a.entry.js.gz +0 -0
  847. package/dist/sankhyablocks/p-a50b680b.entry.js +1 -0
  848. package/dist/sankhyablocks/p-a50b680b.entry.js.gz +0 -0
  849. package/dist/sankhyablocks/p-a962a3e4.entry.js +1 -0
  850. package/dist/sankhyablocks/p-a962a3e4.entry.js.gz +0 -0
  851. package/dist/sankhyablocks/p-ac8d1cd6.entry.js.gz +0 -0
  852. package/dist/sankhyablocks/p-bf2acf72.entry.js.gz +0 -0
  853. package/dist/sankhyablocks/p-c2e468c9.entry.js +1 -0
  854. package/dist/sankhyablocks/p-c2e468c9.entry.js.gz +0 -0
  855. package/dist/sankhyablocks/p-c40bb1ba.entry.js +1 -0
  856. package/dist/sankhyablocks/p-c40bb1ba.entry.js.gz +0 -0
  857. package/dist/sankhyablocks/p-c8622597.entry.js.gz +0 -0
  858. package/dist/sankhyablocks/p-ce67a33d.entry.js +1 -0
  859. package/dist/sankhyablocks/p-ce67a33d.entry.js.gz +0 -0
  860. package/dist/sankhyablocks/p-cf27386b.entry.js +1 -0
  861. package/dist/sankhyablocks/p-cf27386b.entry.js.gz +0 -0
  862. package/dist/sankhyablocks/p-d2d301a6.js.gz +0 -0
  863. package/dist/sankhyablocks/p-d62228fb.js +1 -0
  864. package/dist/sankhyablocks/p-d62228fb.js.gz +0 -0
  865. package/dist/sankhyablocks/p-d9804798.js.gz +0 -0
  866. package/dist/sankhyablocks/p-dc36cfbf.js.gz +0 -0
  867. package/dist/sankhyablocks/p-eaad0aa8.js.gz +0 -0
  868. package/dist/sankhyablocks/{p-0cd3c0a9.js → p-f0b9303b.js} +1 -1
  869. package/dist/sankhyablocks/p-f0b9303b.js.gz +0 -0
  870. package/dist/sankhyablocks/p-f4184ce7.js.gz +0 -0
  871. package/dist/sankhyablocks/p-f975370f.entry.js +1 -0
  872. package/dist/sankhyablocks/p-f975370f.entry.js.gz +0 -0
  873. package/dist/sankhyablocks/p-fa80e546.js.gz +0 -0
  874. package/dist/sankhyablocks/p-fa816fb2.js.gz +0 -0
  875. package/dist/sankhyablocks/p-ff1990ad.js.gz +0 -0
  876. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  877. package/dist/sankhyablocks/sankhyablocks.esm.js.gz +0 -0
  878. package/dist/types/components/snk-actions-button/actions/index.d.ts +1 -0
  879. package/dist/types/components/snk-actions-button/interfaces/index.d.ts +3 -0
  880. package/dist/types/components/snk-actions-button/snk-actions-button.d.ts +3 -2
  881. package/dist/types/components/snk-application/request-listener/DebouncedRequestListener.d.ts +11 -0
  882. package/dist/types/components/snk-application/request-listener/RequestListenerFactory.d.ts +12 -0
  883. package/dist/types/components/snk-application/request-listener/RequestListenerLoadingBar.d.ts +13 -0
  884. package/dist/types/components/snk-application/snk-application.d.ts +10 -14
  885. package/dist/types/components/snk-attach/snk-attach.d.ts +1 -0
  886. package/dist/types/components/snk-crud/snk-crud.d.ts +17 -0
  887. package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +15 -0
  888. package/dist/types/components/snk-data-exporter/data/export-result.d.ts +2 -1
  889. package/dist/types/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.d.ts +1 -0
  890. package/dist/types/components/snk-data-exporter/interfaces/IExporterProvider.d.ts +2 -1
  891. package/dist/types/components/snk-data-exporter/interfaces/IRecordID.d.ts +1 -0
  892. package/dist/types/components/snk-data-exporter/providers/ClientSideExporterProvider.d.ts +3 -1
  893. package/dist/types/components/snk-data-exporter/test/resources/ClientSideExporterStrategyResources.d.ts +3 -3
  894. package/dist/types/components/snk-data-exporter/utils/ParserExport.d.ts +1 -1
  895. package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +2 -0
  896. package/dist/types/components/snk-filter-bar/filter-item/filter-item-type-mask.enum.d.ts +7 -0
  897. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +2 -0
  898. package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +9 -0
  899. package/dist/types/components/snk-form-config/SnkFormConfigManager.d.ts +7 -2
  900. package/dist/types/components/snk-form-config/snk-form-config.d.ts +4 -0
  901. package/dist/types/components/snk-grid/snk-grid.d.ts +29 -0
  902. package/dist/types/components/snk-pesquisa/pesquisa-grid/pesquisa-grid.d.ts +38 -0
  903. package/dist/types/components/snk-pesquisa/pesquisa-tree/pesquisa-tree.d.ts +28 -0
  904. package/dist/types/components/snk-pesquisa/pesquisaHelper.d.ts +19 -0
  905. package/dist/types/components/snk-pesquisa/snk-pesquisa.d.ts +35 -1
  906. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +20 -3
  907. package/dist/types/components/snk-simple-form-config/snk-simple-form-config.d.ts +34 -0
  908. package/dist/types/components/snk-taskbar/processor/taskbar-processor.d.ts +1 -0
  909. package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +11 -0
  910. package/dist/types/components.d.ts +331 -14
  911. package/dist/types/lib/@types/index.d.ts +4 -0
  912. package/dist/types/lib/dataUnit/dataUnitInMemoryUtils.d.ts +12 -2
  913. package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +1 -0
  914. package/dist/types/lib/http/data-fetcher/fetchers/AttachFetcher/anexo-sistema-fetcher.d.ts +3 -2
  915. package/dist/types/lib/http/data-fetcher/fetchers/data-unit/cache/ArrayRepository.d.ts +4 -0
  916. package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterParams.d.ts +6 -2
  917. package/dist/types/lib/http/data-fetcher/fetchers/form-config-fetcher.d.ts +8 -2
  918. package/dist/types/lib/http/data-fetcher/fetchers/parameters-fecher.d.ts +1 -0
  919. package/dist/types/lib/http/data-fetcher/fetchers/pesquisa-fetcher.d.ts +10 -1
  920. package/dist/types/lib/utils/ContinuousInsertUtils.d.ts +10 -0
  921. package/dist/types/lib/utils/CrudUtils.d.ts +1 -0
  922. package/dist/types/lib/utils/GetSelectedRecordsIDsInfo.d.ts +3 -0
  923. package/package.json +4 -3
  924. package/react/components.d.ts +3 -0
  925. package/react/components.js +3 -0
  926. package/react/components.js.map +1 -1
  927. package/dist/cjs/snk-config-options.cjs.entry.js +0 -239
  928. package/dist/cjs/snk-filter-bar.cjs.entry.js +0 -714
  929. package/dist/cjs/snk-filter-item.cjs.entry.js +0 -312
  930. package/dist/cjs/snk-filter-list.cjs.entry.js +0 -152
  931. package/dist/cjs/snk-filter-modal.cjs.entry.js +0 -249
  932. package/dist/cjs/snk-form.cjs.entry.js +0 -143
  933. package/dist/esm/pesquisa-fetcher-a87445a0.js +0 -164
  934. package/dist/esm/snk-config-options.entry.js +0 -235
  935. package/dist/esm/snk-filter-bar.entry.js +0 -710
  936. package/dist/esm/snk-filter-item.entry.js +0 -308
  937. package/dist/esm/snk-filter-list.entry.js +0 -148
  938. package/dist/esm/snk-filter-modal.entry.js +0 -245
  939. package/dist/esm/snk-form.entry.js +0 -139
  940. package/dist/sankhyablocks/p-091ce761.js +0 -60
  941. package/dist/sankhyablocks/p-181975f1.js +0 -26
  942. package/dist/sankhyablocks/p-1e971cb0.entry.js +0 -1
  943. package/dist/sankhyablocks/p-1f35c795.js +0 -1
  944. package/dist/sankhyablocks/p-219f888d.entry.js +0 -1
  945. package/dist/sankhyablocks/p-25f1fc39.js +0 -6
  946. package/dist/sankhyablocks/p-2e9c764c.entry.js +0 -1
  947. package/dist/sankhyablocks/p-30cf616e.js +0 -1
  948. package/dist/sankhyablocks/p-3b60db06.entry.js +0 -1
  949. package/dist/sankhyablocks/p-421bec84.entry.js +0 -1
  950. package/dist/sankhyablocks/p-42f7b05d.entry.js +0 -1
  951. package/dist/sankhyablocks/p-53412c1d.entry.js +0 -1
  952. package/dist/sankhyablocks/p-594bc21d.js +0 -1
  953. package/dist/sankhyablocks/p-5f016aed.js +0 -1
  954. package/dist/sankhyablocks/p-62f34e6f.entry.js +0 -1
  955. package/dist/sankhyablocks/p-631954eb.entry.js +0 -1
  956. package/dist/sankhyablocks/p-65f8c11c.entry.js +0 -1
  957. package/dist/sankhyablocks/p-684a2590.entry.js +0 -1
  958. package/dist/sankhyablocks/p-70a4af56.entry.js +0 -1
  959. package/dist/sankhyablocks/p-76a65660.js +0 -1
  960. package/dist/sankhyablocks/p-7b8f7242.entry.js +0 -1
  961. package/dist/sankhyablocks/p-7ef9c55c.js +0 -1
  962. package/dist/sankhyablocks/p-88aa931b.entry.js +0 -1
  963. package/dist/sankhyablocks/p-939e15d3.entry.js +0 -1
  964. package/dist/sankhyablocks/p-96a89d58.entry.js +0 -1
  965. package/dist/sankhyablocks/p-9863d682.js +0 -1
  966. package/dist/sankhyablocks/p-b11aa1e0.entry.js +0 -1
  967. package/dist/sankhyablocks/p-ba25555b.entry.js +0 -1
  968. package/dist/sankhyablocks/p-c2495304.js +0 -1
  969. package/dist/sankhyablocks/p-d1791da2.entry.js +0 -1
  970. package/dist/sankhyablocks/p-d3f53df2.entry.js +0 -1
  971. package/dist/sankhyablocks/p-d6610d11.entry.js +0 -11
  972. package/dist/sankhyablocks/p-e8763234.entry.js +0 -1
  973. package/dist/sankhyablocks/p-f2809746.entry.js +0 -1
  974. package/dist/sankhyablocks/p-ffa5e4ff.js +0 -1
  975. package/dist/types/components/snk-data-exporter/utils/RecordIDUtils.d.ts +0 -3
@@ -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
- import { Action, StringUtils, ApplicationContext, OVERFLOWED_CLASS_NAME, OverflowWatcher, OverflowDirection, ElementIDUtils } from '@sankhyalabs/core';
2
+ import { Action, LockManager, LockManagerOperation, SilentException, 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-d2353c64.js';
5
+ import { P as PresentationMode } from './index-b40568ff.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}";
@@ -11,6 +11,8 @@ const SnkTaskbar = class {
11
11
  constructor(hostRef) {
12
12
  registerInstance(this, hostRef);
13
13
  this.actionClick = createEvent(this, "actionClick", 7);
14
+ this.taskbarSaveLocker = createEvent(this, "taskbarSaveLocker", 7);
15
+ this.taskbarSaveUnlocker = createEvent(this, "taskbarSaveUnlocker", 7);
14
16
  this.TASKBAR_ITEM_ID_PREFIX = 'TASKBAR_ITEM_';
15
17
  this.TASKBAR_CUSTOM_ELEMENTS_CONTAINER_CLASS_NAME = 'taskbar-custom-elements-container';
16
18
  this.ACTIONS_BUTTON_TAG = 'TASKBAR-ACTIONS-BUTTON';
@@ -34,8 +36,10 @@ const SnkTaskbar = class {
34
36
  this.onSaveEvent = (action) => {
35
37
  switch (action.type) {
36
38
  case Action.FIELD_INVALIDATED:
39
+ case Action.INVALIDATE_CLEAN:
37
40
  case Action.DATA_SAVED:
38
41
  case Action.SAVING_ERROR:
42
+ case Action.SAVING_CANCELED:
39
43
  this._isWaitingForSave = false;
40
44
  break;
41
45
  case Action.SAVING_DATA:
@@ -72,6 +76,16 @@ const SnkTaskbar = class {
72
76
  this.getCustomElements(true);
73
77
  }
74
78
  }
79
+ handleTaskbarSaveLocker() {
80
+ if (this._isWaitingForSave !== true) {
81
+ this._isWaitingForSave = true;
82
+ }
83
+ }
84
+ handleTaskbarSaveUnlocker() {
85
+ if (this._isWaitingForSave === true) {
86
+ this._isWaitingForSave = false;
87
+ }
88
+ }
75
89
  hasToSearchCustomElements(event) {
76
90
  return this.customSlotId === event.detail && !this._slotContainer;
77
91
  }
@@ -90,6 +104,14 @@ const SnkTaskbar = class {
90
104
  this._hasToUpdateOverFlow = true;
91
105
  }
92
106
  }
107
+ observeIsWaitingForSave(newValue, oldValue) {
108
+ if (newValue == true && oldValue == false) {
109
+ this.taskbarSaveLocker.emit();
110
+ }
111
+ if (newValue == false && oldValue == true) {
112
+ this.taskbarSaveUnlocker.emit();
113
+ }
114
+ }
93
115
  // Internal methods
94
116
  elementsFromString(strButtons) {
95
117
  const elements = [];
@@ -134,42 +156,50 @@ const SnkTaskbar = class {
134
156
  return key ? (_a = this.messagesBuilder) === null || _a === void 0 ? void 0 : _a.getMessage(key, {}) : "";
135
157
  }
136
158
  elementClick(elem) {
137
- if (this.dataUnit) {
138
- switch (elem) {
139
- case TaskbarElement.PREVIOUS:
140
- this.dataUnit.previousRecord();
141
- break;
142
- case TaskbarElement.NEXT:
143
- this.dataUnit.nextRecord();
144
- break;
145
- case TaskbarElement.REFRESH:
146
- this.dataUnit.loadData();
147
- break;
148
- case TaskbarElement.CLONE:
149
- this.dataUnit.copySelected();
150
- break;
151
- case TaskbarElement.REMOVE:
152
- this.dataUnit.removeSelectedRecords();
153
- break;
154
- case TaskbarElement.INSERT:
155
- this.dataUnit.addRecord();
156
- break;
157
- case TaskbarElement.CANCEL:
158
- this.dataUnit.cancelEdition();
159
- break;
160
- case TaskbarElement.SAVE:
161
- if (!this._isWaitingForSave) {
162
- this._isWaitingForSave = true;
163
- this.dataUnit.saveData()
164
- .finally(() => {
165
- this._isWaitingForSave = false;
166
- });
167
- }
168
- break;
159
+ LockManager.whenResolve(this._element, LockManagerOperation.TASKBAR_CLICK).then(() => {
160
+ if (this.dataUnit) {
161
+ switch (elem) {
162
+ case TaskbarElement.PREVIOUS:
163
+ this.dataUnit.previousRecord();
164
+ break;
165
+ case TaskbarElement.NEXT:
166
+ this.dataUnit.nextRecord();
167
+ break;
168
+ case TaskbarElement.REFRESH:
169
+ this.dataUnit.loadData();
170
+ break;
171
+ case TaskbarElement.CLONE:
172
+ this.dataUnit.copySelected();
173
+ break;
174
+ case TaskbarElement.REMOVE:
175
+ this.dataUnit.removeSelectedRecords();
176
+ break;
177
+ case TaskbarElement.INSERT:
178
+ this.dataUnit.addRecord();
179
+ break;
180
+ case TaskbarElement.CANCEL:
181
+ this.dataUnit.cancelEdition();
182
+ break;
183
+ case TaskbarElement.SAVE:
184
+ if (!this._isWaitingForSave) {
185
+ this._isWaitingForSave = true;
186
+ this.dataUnit.saveData().catch((err) => {
187
+ if (err instanceof SilentException) {
188
+ return;
189
+ }
190
+ else {
191
+ throw err;
192
+ }
193
+ }).finally(() => {
194
+ this._isWaitingForSave = false;
195
+ });
196
+ }
197
+ break;
198
+ }
169
199
  }
170
- }
171
- if (this.isEnabled(elem))
172
- this.actionClick.emit(elem);
200
+ if (this.isEnabled(elem))
201
+ this.actionClick.emit(elem);
202
+ });
173
203
  }
174
204
  isEnabled(elem) {
175
205
  if (!this.isAllowed(elem)) {
@@ -373,9 +403,10 @@ const SnkTaskbar = class {
373
403
  this._lastWidth = this._element.getBoundingClientRect().width;
374
404
  }
375
405
  disconnectedCallback() {
376
- var _a;
406
+ var _a, _b;
407
+ (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.unsubscribe(this.onSaveEvent);
377
408
  this.unlinkAllCustomElements();
378
- (_a = this._overFlowWatcher) === null || _a === void 0 ? void 0 : _a.destroy();
409
+ (_b = this._overFlowWatcher) === null || _b === void 0 ? void 0 : _b.destroy();
379
410
  }
380
411
  unlinkAllCustomElements() {
381
412
  var _a;
@@ -418,7 +449,8 @@ const SnkTaskbar = class {
418
449
  static get watchers() { return {
419
450
  "buttons": ["observeButtons"],
420
451
  "disabledButtons": ["observeDisabledButtons"],
421
- "_lastWidth": ["observeLastWidth"]
452
+ "_lastWidth": ["observeLastWidth"],
453
+ "_isWaitingForSave": ["observeIsWaitingForSave"]
422
454
  }; }
423
455
  };
424
456
  SnkTaskbar.style = snkTaskbarCss;
Binary file
@@ -1,5 +1,5 @@
1
1
  import { h } from './index-a7d3d3f1.js';
2
- import { P as PresentationMode } from './index-3aa4977a.js';
2
+ import { P as PresentationMode } from './index-b40568ff.js';
3
3
  import { s as store } from './index-bdf75557.js';
4
4
 
5
5
  var TaskbarElement;
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{C as t}from"./p-19dc71e9.js";import{ObjectUtils as e,StringUtils as i}from"@sankhyalabs/core";import{F as s}from"./p-1435701f.js";import{b as r}from"./p-95ce311a.js";class n{constructor(t,e,i,s){this._resourceID=e,this._configName=t,this._onConfigChange=i,this._dataUnit=s}addFormLegacyConfig(e){this._configName&&t.addFormLegacyConfig(this._configName,e)}async loadConfig(){return new Promise((e=>{t.loadFormConfig(this._configName,this._resourceID).then((t=>{t=this.buildFormMetadataUITabs(t),this.setConfig(t),e(t)})).catch((t=>{console.warn(t)}))}))}getEmptyConfig(){return this.buildFormMetadataUITabs({fields:[],emptyConfig:!0},!0)}saveConfig(i){const s=e.copy(i);return new Promise((e=>{t.saveFormConfig(i,this._configName,this._resourceID).then((t=>{this.setConfig(Object.assign(Object.assign({},s),t)),e(Object.assign(Object.assign({},s),t))}))}))}saveCardState(e,i,s){return new Promise((r=>{var n;const l=(null===(n=this._config)||void 0===n?void 0:n.cardsState)||new Map,a=l.get(e);l.set(e,"fixed"===s?this.updateFixSequence(Object.assign(Object.assign({},a),{fixed:i.fixed}),l):Object.assign(Object.assign({},a),{[s]:i[s]})),t.saveCardState(l,this._configName,this._resourceID).then((t=>{this._config=Object.assign(Object.assign({},this._config),{cardsState:l}),r(t)}))}))}updateFixSequence(t,e){let i=-1;return Array.from(e.values()).forEach((e=>{e.fixed||delete t.fixSequence,null!=e.fixSequence&&(i=Math.max(i,e.fixSequence))})),t.fixed?t.fixSequence=i+1:delete t.fixSequence,t}hasConfig(t){var e;const i=null!=t?t:this._config;return!(!i||!(null===(e=i.fields)||void 0===e?void 0:e.length))}getFieldsList(t,e=!1){var i;const s=null===(i=this._config)||void 0===i?void 0:i.fields;return this.hasConfig()&&!e?s.map((({label:t,name:e,readOnly:i,visible:s,required:r,tab:n})=>{var l;if(null==t){const t=null===(l=this._dataUnit)||void 0===l?void 0:l.getField(e);return Object.assign(Object.assign({},t),{name:null!=e?e:t.name,readOnly:null!=i?i:t.readOnly,visible:null!=s?s:t.visible,required:null!=r?r:t.required,tab:n})}return{name:e,label:t,readOnly:i,visible:s,required:r,tab:n}})).filter((e=>this.isFieldVisible(e,t))):this._dataUnit?this._dataUnit.metadata.fields.filter((e=>this.isFieldVisible(e,t))).map((({label:t,name:e,readOnly:i,visible:s,required:r,properties:n})=>({label:t,name:e,readOnly:i,visible:s,required:r,tab:null==n?void 0:n.UITabName}))):[]}isFieldVisible(t,e){if(!1===t.visible)return!1;if(null==e)return!0;const s=i.replaceAccentuatedCharsLower((t.label||t.name).toLocaleLowerCase()),r=i.replaceAccentuatedCharsLower(e.toLocaleLowerCase());return s.includes(r)}getFormConfig(t,e,i=!1){let s=this.getFieldsList(void 0,i);return e&&(s=s.filter((e=>{if(t){const i=t.getField(e.name);if(i&&i.readOnly)return!1}return!e.readOnly}))),Object.assign(Object.assign({},this._config),{fields:s})}setConfig(t){this.isLoaded=!0;const{cardsState:e,summary:i,defaultVars:s}=this._config||{};this._config=Object.assign({},t),e&&(this._config.cardsState=e),i&&(this._config.summary=i),s&&(this._config.defaultVars=s),this._onConfigChange&&this._onConfigChange(Object.assign({},this._config))}getConfig(t,e){return this.getFormConfig(t,null==e||e)}getFormConfigFetcher(){return null==this._formConfigFetcher&&(this._formConfigFetcher=new s),this._formConfigFetcher}async fetchUserAvailableConfigs(){return null!=this._configName?Promise.resolve(void 0):this.getFormConfigFetcher().fetchUserAvailableConfigs(this._configName,this._resourceID)}async fetchLegacyConfig(){return this.getFormConfigFetcher().fetchLegacyConfig(this._configName,this._resourceID)}async fetchDefaultConfig(){return this.getFormConfigFetcher().fetchDefaultConfig(this._configName,this._resourceID)}parseObjectList(t){return t?Array.isArray(t)?t:[t]:[]}buildFormMetadataUITabs(t,e=!1){var i;const s=this.hasConfig(t);if(!e&&(!this._dataUnit||s))return t;(t=this.getFormConfig(this._dataUnit,!1,!0)).tabs=this.parseObjectList(t.tabs),t.emptyConfig=!1,t.defaultConfiguration=!0;const n=this._dataUnit.metadata.fields;for(const e of n){const s=t.fields.find((t=>t.name===e.name)),n=null===(i=e.properties)||void 0===i?void 0:i.UITabName;n&&n!==r.main&&(t.tabs.some((t=>t.label===n))||t.tabs.push({label:n,name:n,order:0,visible:!0}),s&&(s.tab=n))}return t}}export{n as S}
@@ -0,0 +1 @@
1
+ var o,e,r,t,a;!function(o){o.PRIMARY="primary",o.SECONDARY="secondary",o.SINGLE_TASKBAR="singleTaskbar"}(o||(o={})),function(o){o.EXPORT_TO_PDF="exportToPDF",o.EXPORT_TO_XLS="exportToXLS",o.EXPORT_CURRENT_PAGE="exportCurrentPage",o.EXPORT_ALL_RECORDS="exportAllRecords",o.EXPORT_PAGE_TO_PDF="exportPageToPDF",o.EXPORT_PAGE_TO_XLS="exportPageToXLS",o.EXPORT_ALL_RECORDS_TO_PDF="exportAllRecordsToPDF",o.EXPORT_ALL_RECORDS_TO_XLS="exportAllRecordsToXLS",o.EXPORT_BY_EMAIL="exportToEmail",o.EXPORT_PDF_TO_EMAIL="exportPDFToEmail",o.EXPORT_XLS_TO_EMAIL="exportXLSToEmail"}(e||(e={})),function(o){o.PDF="exportPDFToEmail",o.XLS="exportXLSToEmail",o.XLSX="exportXLSToEmail"}(r||(r={})),function(o){o.EXPORT_TO_PDF="PDF",o.EXPORT_TO_XLS="XLS",o.EXPORT_PAGE_TO_PDF="PDF",o.EXPORT_PAGE_TO_XLS="XLS",o.EXPORT_ALL_RECORDS_TO_PDF="PDF",o.EXPORT_ALL_RECORDS_TO_XLS="XLS",o.EXPORT_PDF_TO_EMAIL="PDF",o.EXPORT_XLS_TO_EMAIL="XLS"}(t||(t={})),function(o){o.SERVER_SIDE="ServerSideExporterStrategy",o.CLIENT_SIDE="ClientSideExporterStrategy"}(a||(a={}));export{e as D,a as E,o as P,t as a,r as b}
@@ -0,0 +1 @@
1
+ import{r as i,c as e,h as t,F as s}from"./p-d2d301a6.js";import{Action as r,ElementIDUtils as a}from"@sankhyalabs/core";import{S as n}from"./p-05b6ff91.js";import{buildFormMetadata as d,FormMetadata as o}from"@sankhyalabs/ezui/dist/collection/utils/form";import{o as h,T as l,b as u}from"./p-23736d75.js";import{T as c}from"./p-3fc82614.js";import{V as v}from"./p-95ce311a.js";import"./p-d62228fb.js";import"./p-798386c7.js";import{P as g}from"./p-0f3698af.js";import"./p-21749402.js";import"@sankhyalabs/ezui/dist/collection/utils/constants";import"@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata";import"./p-1e4f16f3.js";import"./p-ff1990ad.js";import"./p-1435701f.js";import{SelectionMode as m}from"@sankhyalabs/core/dist/dataunit/DataUnit";const f="__FORM:",k=class{constructor(t){i(this,t),this.exit=e(this,"exit",7),this.actionClick=e(this,"actionClick",7),this.formItemsReady=e(this,"formItemsReady",7),this._guideBuilders=new Map,this.dataUnit=void 0,this.dataState=void 0,this.configName=void 0,this.entityPath=void 0,this.actionsList=void 0,this.recordsValidator=void 0,this.masterFormConfig=void 0,this.selectedGuide=void 0,this.taskbarManager=void 0,this.messagesBuilder=void 0,this.canEdit=!0,this.presentationMode=void 0,this.resourceID=void 0,this.detailTaskbarCustomContainerId=void 0,this.formLegacyConfigName=void 0,this.enableGridInsert=!1,this.ignoreReadOnlyFormFields=void 0,this.getCustomTitle=void 0,this._hasToCreateFieldSearch=!0,this._breadcrumbItems=[],this._guides=void 0,this._formEditorConfigManager=void 0,this._formEditorDataUnit=void 0,this._fieldToGetFocus=void 0,this._customEditors=void 0,this._customRenders=void 0,this._fieldsProps={}}observeDataUnit(){this.loadGuides(!0)}observeDataState(i,e){const t=null==i?void 0:i.selectedRecord,s=null==e?void 0:e.selectedRecord;(null==t?void 0:t.__record__id__)!==(null==s?void 0:s.__record__id__)&&this.loadGuides((null==e?void 0:e.insertionMode)!=(null==i?void 0:i.insertionMode))}observeMasterFormConfig(){this.loadGuides(this.noGuideSelected())}async showFormConfig(i=!1){const e=!i||null==this._currentDetail;this._formEditorConfigManager=e?this._configManager:this._currentDetail.formConfigManager,this._formEditorDataUnit=e?this.dataUnit:this._currentDetail.dataUnit}async findField(){await h(this._moreOptions,this._fieldSearch)}async addCustomEditor(i,e){this._customEditors=Object.assign(Object.assign({},this._customEditors),{[i]:e})}async addGridCustomRender(i,e){this._customRenders=Object.assign(Object.assign({},this._customRenders),{[i]:e})}async setFieldProp(i,e,t){const s={[i]:Object.assign(Object.assign({},this._fieldsProps[i]),{[e]:t})};this._fieldsProps=Object.assign(Object.assign({},this._fieldsProps),s)}async setFocus(){this._container.focus()}exitViewer(){!this.enableGridInsert&&this.dataUnit.isDirty()?this.dataUnit.cancelEdition({after:()=>this.exit.emit()}):this.exit.emit()}onActionClick(i){i.detail===c.CONFIGURATOR&&"master"!=i.target.dataset.taskbarOwner&&(this._snkConfigurator.open(),i.stopImmediatePropagation(),i.stopPropagation())}onContentCardChanged(i){k.updateContentCard(i.detail.formName,i.detail.cardConfig,i.detail.propertyChanged,this._configManager).then((()=>this.masterFormConfig=this._configManager.getConfig(this.dataUnit)))}getMessage(i){return this.messagesBuilder.getMessage(i,this.dataUnit.getSelectedRecord())}loadGuides(i){if(!this.dataUnit)return;if(!this._configManager.isLoaded)return;this._masterFormMetadata=d(this.masterFormConfig,this.dataUnit,!0);const e=this._masterFormMetadata.getAllSheets(),t=this.dataUnit.getSelectedRecord(),s=!t||this.dataUnit.isNewRecord(t.__record__id__),r=[];Array.from(e.values()).forEach((i=>{const e={id:i.name,label:i.label};this.isDetail(i.name)&&s&&(e.tooltip="Para alterar detalhes é necessário estar com um registro selecionado.",e.disabled=!0),r.push(e)})),this._guides=r,this._guideNavigator&&this._guideNavigator.updateItem(this._guides),i&&(this.selectedGuide=this._guides.length>0?this._guides[0]:void 0)}isDetail(i){return null!=o.getDetailName(i)}updateGuide(i){this._guideBuilders.set(i.id,i);const e=i.buildGuideItem(this._guideBuilders);this._guideNavigator&&(this._guideNavigator.updateItem(e).then((()=>{this._guideNavigator.getCurrentPath().then((i=>{this._breadcrumbItems=i}))})),this._guides=this._guides.map((i=>i.id===e.id?Object.assign(Object.assign(Object.assign({},i),e),void 0!==e.children?{}:{children:void 0}):i)))}getTaskBarId(){var i;return(null===(i=this.dataState)||void 0===i?void 0:i.isDirty)?"snkGuideViewer.finish_edition":"snkGuideViewer.regular"}loadTaskbarProcessor(){var i;const e=this.getTaskBarId(),t=[];this.dataState&&this.dataState.hasPrevious||t.push("PREVIOUS"),this.dataState&&this.dataState.hasNext||t.push("NEXT"),(null===(i=this.dataState)||void 0===i?void 0:i.selectionInfo)&&(this.dataState.selectionInfo.length>1&&t.push("CLONE"),this.dataState.selectionInfo.isAllRecords()&&t.push("REMOVE"));const s=["PREVIOUS","NEXT","DIVIDER","ATTACH","CLONE","REMOVE","MORE_OPTIONS","ACTIONS_BUTTON","DIVIDER","GRID_MODE","CONFIGURATOR"];this.presentationMode==g.SECONDARY?s.unshift("INSERT"):s.push("INSERT");const r=this.getInvisibleButtons();this._taskbarProcessor=new l({"snkGuideViewer.regular":s,"snkGuideViewer.finish_edition":["CANCEL","SAVE",this.handleAddGridMode()]}),this._taskbarProcessor.process(e,this.taskbarManager,this.dataState,t,r)}handleAddGridMode(){return this.enableGridInsert?c.GRID_MODE:""}getInvisibleButtons(){const i=[];return this.dataState&&this.dataState.selectionInfo.mode===m.ALL_RECORDS&&i.push("ACTIONS_BUTTON"),i}static updateContentCard(i,e,t,s){return s.saveCardState(i,e,t)}static buildFixedForms(i){var e;const r=null===(e=i.formConfig)||void 0===e?void 0:e.cardsState;if(null!=r)return t(s,null,Array.from(r.entries()).filter((([e,t])=>(null==t?void 0:t.fixed)&&e!=i.selectedForm)).sort((([,i],[,e])=>((null==i?void 0:i.fixSequence)||0)-((null==e?void 0:e.fixSequence)||0))).map((([e,s])=>{var r,a;const n=i.formMetadata.getSheet(e);if(null!=n)return t("snk-form-view",{levelPath:i.levelPath,label:n.label,name:e,fields:n.fields,formMetadata:i.formMetadata,dataUnit:i.dataUnit,recordsValidator:i.recordsValidator,contracted:"CONTRACTED"===(null==s?void 0:s.presentation),fixed:null==s?void 0:s.fixed,summaryFields:null===(a=null===(r=i.formConfig)||void 0===r?void 0:r.summary)||void 0===a?void 0:a.get(e),fieldToFocus:i.fieldToFocus,key:e,onSnkRequestClearFieldToFocus:()=>{var e;return null===(e=i.onRequestClearFieldToFocus)||void 0===e?void 0:e.call(i)},customEditors:i.propsCustomEditor,fieldsProps:i.fieldsProps})})))}wrapDetail(i,e){if(0===i.length)return e;const s=i.pop(),r=o.getDetailName(s);return r?this.wrapDetail(i,t("snk-data-unit",{dataUnitName:`${this.getDataUnitName(i,r)}`,entityName:r},e)):void 0}getDataUnitName(i,e){if(i.length>0){const t=i.map((i=>o.getDetailName(i)));return`${this.entityPath}/${t.join("/")}/${e}`}return`${this.entityPath}/${e}`}getContent(){var i,e,s,r,a;if(!this.selectedGuide)return;const n=this.selectedGuide.id;let d;const h=n.split("::"),l=h.pop(),u=o.getDetailName(l);let c=n;if(u||h.length>0){let e,s;if(n.includes(f)){[c,e]=n.split(f);const t=(null===(i=this._breadcrumbItems)||void 0===i?void 0:i.length)||0;s=t>1?this._breadcrumbItems[t-2]:this.selectedGuide}else s=this.selectedGuide;d=this.wrapDetail(h,t("snk-detail-view",{ref:i=>this._currentDetail=i,dataUnitName:this.getDataUnitName(h,u),onSnkDetailGuidesChange:i=>this.updateGuide(i.detail),entityName:u,selectedForm:e,branchGuide:s,guideItemPath:this._breadcrumbItems,key:`detail${c}`,canEdit:this.canEdit,onSnkSwitchGuide:i=>this._guideNavigator.selectGuide(i.detail),resourceID:this.resourceID,taskbarCustomContainerId:this.detailTaskbarCustomContainerId,customEditors:this._customEditors,customRenders:this._customRenders}))}else{const i=this.selectedGuide.id,o=this._masterFormMetadata.getSheet(i);if(o){const h=null===(s=null===(e=this.masterFormConfig)||void 0===e?void 0:e.cardsState)||void 0===s?void 0:s.get(i);d=t("snk-form-view",{ref:i=>this._mainForm=i,fixed:null==h?void 0:h.fixed,summaryFields:null===(a=null===(r=this.masterFormConfig)||void 0===r?void 0:r.summary)||void 0===a?void 0:a.get(i),name:i,label:o.label,fields:o.fields,dataUnit:this.dataUnit,formMetadata:this._masterFormMetadata,recordsValidator:this.recordsValidator,fieldToFocus:this._fieldToGetFocus,key:n,onSnkRequestClearFieldToFocus:()=>this.clearFieldToFocusHandler(),customEditors:this._customEditors,fieldsProps:this._fieldsProps},this.presentationMode==g.SECONDARY&&this.buildTaskBar())}}return d}onBreadcrumbClickHandler(i){null!=(null==i?void 0:i.id)&&this._guideNavigator.selectGuide(i.id)}updateSelectedGuideHandler(i){this._guideHasChanged=this.selectedGuide!=i,this.selectedGuide=i,this._guideNavigator.getCurrentPath().then((i=>{this._breadcrumbItems=i})),this.resetGuideBadge(i)}changeGuideHandler(i){var e;null===(e=this._guideNavigator)||void 0===e||e.selectGuide(i)}clearFieldToFocusHandler(){this._fieldToGetFocus=void 0}resetGuideBadge(i){var e;this._guides=[...null===(e=this._guides)||void 0===e?void 0:e.map((e=>this.canClearGuideBadge(e,i.id)?Object.assign(Object.assign({},e),{badge:null}):e))]}canClearGuideBadge(i,e){return i.id===e||this.isIncludedInChildrenList(i,e)}isIncludedInChildrenList(i,e){return this.hasChildren(i)&&this.getChildrenIdList(i).includes(e)}hasChildren(i){return i.children&&Array.isArray(i.children)}getChildrenIdList(i){return i.children.map((i=>i.id))}getConfigViewMode(){return v.GRID}changeConfigViewMode(i){this._currentDetail&&this._currentDetail.changeViewMode(i)}openConfig(i){this._snkConfigurator.close(),this._currentDetail&&(i===v.FORM?this.showFormConfig(!0):this._currentDetail.configGrid())}noGuideSelected(){var i;return void 0===this.selectedGuide||"__main"===(null===(i=this.selectedGuide)||void 0===i?void 0:i.id)}addFormLegacyConfigName(){this.formLegacyConfigName&&this._configManager.addFormLegacyConfig(this.formLegacyConfigName)}setMasterFormConfig(i){this.masterFormConfig=i}componentWillLoad(){if(null==this.resourceID)throw new Error("Erro interno: resourceID não informado");this._configManager=new n(this.configName,this.resourceID,this.setMasterFormConfig.bind(this),this.dataUnit),this.addFormLegacyConfigName(),this._configManager.loadConfig()}componentDidRender(){this._guideHasChanged&&(this._currentDetail?this._currentDetail.showUp():this._mainForm&&this._mainForm.showUp(),this._guideHasChanged=!1)}getFieldsSearch(i,e){return(null==this._fieldSearch||this._hasToCreateFieldSearch)&&(this._hasToCreateFieldSearch=!1,this._moreOptions=i,i.addEventListener("taskbarActionsButtonDisconnected",(()=>this._hasToCreateFieldSearch=!0)),this._fieldSearch=u(e,(({argument:i})=>this.fieldsOptionLoader(i)),(e=>this.onSelectField(e,i)))),this._fieldSearch}fieldsOptionLoader(i){return Promise.resolve(this._configManager.getFieldsList(i).map((i=>({value:i.name,label:i.label}))))}onSelectField(i,e){if(null==i)return;this._fieldToGetFocus=i.value;const t=this.getGuideName(i.value);t!==this.selectedGuide.id&&this.changeGuideHandler(t),e.hideActions()}getActionsList(){return[{value:"",label:this.getMessage("snkCrud.findColumn"),disableCloseOnSelect:!0,eagerInitialize:!0,itemBuilder:(i,e)=>this.getFieldsSearch(i,e)}].concat(null!=this.taskbarManager&&null!=this.taskbarManager.getMoreOptions?this.taskbarManager.getMoreOptions(this.getTaskBarId(),this.configName,this.dataState,this.actionsList):this.actionsList)}buildTaskBar(){var i;return t("div",{class:"snk-guides-viewer__header-taskbar "+(this.presentationMode!=g.SECONDARY?"ez-align--right":"ez-padding-bottom--medium")},t("snk-taskbar",{key:"guideViewerTaskbar","data-element-id":"guideViewer",configName:this.configName,buttons:this._taskbarProcessor.buttons,disabledButtons:this._taskbarProcessor.disabledButtons,customButtons:this._taskbarProcessor.customButtons,actionsList:this.getActionsList(),messagesBuilder:this.messagesBuilder,presentationMode:this.presentationMode,primaryButton:(null===(i=this.dataState)||void 0===i?void 0:i.isDirty)?"SAVE":"INSERT","data-taskbar-owner":"master",dataUnit:this.dataUnit,resourceID:this.resourceID,customSlotId:"GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS",alignRigth:!0},t("slot",{name:"GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS"})))}async dataUnitActionHandler(i){var e;if(i.type===r.FIELD_INVALIDATED){const t=this.getGuideName(null===(e=i.payload)||void 0===e?void 0:e.fieldName);await this.addErrorBadgeToGuide(t),await this.openGuideNavigator(t)}i.type===r.METADATA_LOADED&&this.loadGuides(this.noGuideSelected())}async addErrorBadgeToGuide(i){var e;this._guides=[...null===(e=this._guides)||void 0===e?void 0:e.map((e=>Object.assign(Object.assign({},e),{badge:this.getBadge(e,i)})))]}async openGuideNavigator(i){this.selectedGuide.id!==i&&await this._guideNavigator.openGuideNavidator()}getBadge(i,e){var t;return this.selectedGuide.id===e?null:e===i.id?"error":null!==(t=i.badge)&&void 0!==t?t:null}getGuideName(i){var e;for(const t of this._masterFormMetadata.getAllSheets()){const s=null===(e=t[1])||void 0===e?void 0:e.fields;for(const e of s)if(e.name===i)return t[0]}return""}getTitle(){var i,e;return null!==(e=null===(i=this.getCustomTitle)||void 0===i?void 0:i.call(this))&&void 0!==e?e:this.getMessage("snkCrud.title")}componentDidLoad(){this.dataUnit.subscribe(this.dataUnitActionHandler.bind(this))}render(){var i,e;if(null!=this._formEditorConfigManager)return t("snk-form-config",{ref:i=>this._container=i,tabindex:-1,dataUnit:this._formEditorDataUnit,messagesBuilder:this.messagesBuilder,configManager:this._formEditorConfigManager,onConfigClose:()=>this._formEditorConfigManager=null,ignoreReadOnlyFormFields:this.ignoreReadOnlyFormFields});if(!this.dataUnit||!this._configManager.isLoaded)return;this.loadTaskbarProcessor();const s=this._guides&&this._guides.length>1;return t("section",{class:"snk-guides-viewer",ref:i=>this._container=i,tabindex:-1},t("div",{class:"ez-row snk-guides-viewer__header"},t("div",{class:"snk-guides-viewer__header-breadcrumb ez-flex--align-items-center ez-flex-item--align-center ez-padding-left--large",key:"header"},t("ez-button",{onClick:()=>this.exitViewer(),title:this.getMessage("snkCrud.goBackTitle"),mode:"icon",iconName:"arrow_back",class:"ez-padding-right--medium",size:"small"}),t("div",{class:"ez-flex ez-flex--column ez-flex-item--auto"},t("h1",{class:"ez-title ez-title--primary ez-title--xlarge"},this.getTitle()),(null===(i=this._breadcrumbItems)||void 0===i?void 0:i.length)>1&&t("div",{class:"ez-margin-top--extra-small"},t("ez-breadcrumb",Object.assign({items:this._breadcrumbItems,onSelectedItem:i=>this.onBreadcrumbClickHandler(null==i?void 0:i.detail)},{[a.DATA_ELEMENT_ID_ATTRIBUTE_NAME]:`${a.getInternalIDInfo("breadcrumb")}`}))))),this.presentationMode!=g.SECONDARY&&this.buildTaskBar()),t("div",{class:"snk-guides-viewer__container"},s?t("ez-guide-navigator",{ref:i=>this._guideNavigator=i,class:"snk-guides-viewer__guide-navigator",items:this._guides,selectedId:this.selectedGuide?this.selectedGuide.id:void 0,onEzSelectionChange:i=>this.updateSelectedGuideHandler(i.detail)}):t("div",null),t("div",{class:"snk-guides-viewer__detail-container"},k.buildFixedForms({formConfig:this.masterFormConfig,formMetadata:this._masterFormMetadata,selectedForm:null===(e=this.selectedGuide)||void 0===e?void 0:e.id,dataUnit:this.dataUnit,recordsValidator:this.recordsValidator,fieldToFocus:this._fieldToGetFocus,onRequestClearFieldToFocus:this.clearFieldToFocusHandler.bind(this),propsCustomEditor:this._customEditors,fieldsProps:this._fieldsProps}),this.getContent())),t("snk-configurator",{ref:i=>this._snkConfigurator=i,viewMode:this.getConfigViewMode(),onConfigSelected:i=>this.changeConfigViewMode(i.detail),messagesBuilder:this.messagesBuilder,onOpenConfig:i=>this.openConfig(i.detail),resourceID:this.resourceID}))}static get watchers(){return{dataUnit:["observeDataUnit"],dataState:["observeDataState"],masterFormConfig:["observeMasterFormConfig"]}}};k.style=".sc-snk-guides-viewer-h{--snk-guides-viewer--space-large:var(--space--large, 24px);--snk-guides-viewer--space-small:var(--space--2xs, 8px);--snk-guides-viewer__header--min-height:68px;--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-small);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-small)}.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-small));height:calc(100vh - var(--snk-guides-viewer__header--min-height) - var(--snk-guides-viewer--space-large) - var(--snk-guides-viewer--space-small))}.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}";export{k as S}
@@ -0,0 +1,26 @@
1
+ import{d as e,D as r}from"./p-d62228fb.js";import{ObjectUtils as n}from"@sankhyalabs/core";class t{constructor(){this.templateByQuery=new Map,this.buldTemplates()}buldTemplates(){this.templateByQuery.set("fetchResource",e.gql`query($name: String!) {
2
+ $queryAlias$: fetchResource(name: $name){
3
+ resource
4
+ }
5
+ }`),this.templateByQuery.set("saveResource",e.gql`mutation($resource: InputResource!) {
6
+ $queryAlias$: saveResource(resource: $resource){
7
+ name
8
+ resource
9
+ }
10
+ }`)}loadResource(e){if(t._loadingResource.has(e))return t._loadingResource.get(e);const n=new Promise(((n,o)=>{r.get().callGraphQL({values:{name:e},query:this.templateByQuery.get("fetchResource")}).then((r=>{n(null==r?void 0:r.resource),t._loadingResource.delete(e)})).catch((r=>{o(r),t._loadingResource.delete(e)}))}));return t._loadingResource.set(e,n),n}saveResource(e,n){return new Promise(((t,o)=>{r.get().callGraphQL({values:{resource:{name:n,resource:JSON.stringify(e)}},query:this.templateByQuery.get("saveResource")}).then((e=>{t(e)})).catch((e=>{o(e)}))}))}}t._loadingResource=new Map;class o extends t{constructor(){super(),this.queryConfig=new Map,this.buildTemplatesConfig()}buildTemplatesConfig(){this.queryConfig.set("fetchUserAvailableConfigs",e.gql`query($name: String!) {
11
+ $queryAlias$: fetchUserAvailableConfigs(name: $name){
12
+ name
13
+ origin
14
+ key
15
+ }
16
+ }`),this.queryConfig.set("fetchLegacyConfig",e.gql`query($name: String!) {
17
+ $queryAlias$: fetchLegacyConfig(name: $name){
18
+ name
19
+ resource
20
+ }
21
+ }`),this.queryConfig.set("fetchDefaultConfig",e.gql`query($name: String!) {
22
+ $queryAlias$: fetchDefaultConfig(name: $name){
23
+ name
24
+ resource
25
+ }
26
+ }`)}loadFormConfig(e,r){return new Promise(((n,t)=>{Promise.all([this.loadResource(this.getPath(r,e)),this.loadResource(this.getPath(`FormCardState:${r}`,e,"form-card")),this.loadResource(this.getPath(r,e,"summary")),this.loadResource(this.getPath(r,e,"defaultValues"))]).then((([e,r,t,o])=>{let i;if(null!=e){i=Object.assign(Object.assign({},JSON.parse(e)),{emptyConfig:!1});const{tabs:r,fields:n}=i;if(r){const e=new Map(r.map((e=>[e.label,e])));null==n||n.forEach((r=>{var n;return r.tab=(null===(n=e.get(this.getTabName(r.tab)))||void 0===n?void 0:n.label)||e.get(this.getTabName(r.tab))}))}i.fields=null==n?void 0:n.map((e=>{if("readonly"in e){const r=!0===e.readonly;delete e.readonly,e.readOnly=r}return e}))}null!=r&&(null==i&&(i={emptyConfig:!0,fields:[]}),i.cardsState=new Map(JSON.parse(r))),null!=t&&(null==i&&(i={emptyConfig:!0,fields:[]}),i.summary=new Map(Object.entries(JSON.parse(t)))),null!=o&&(null==i&&(i={emptyConfig:!0,fields:[]}),i.defaultVars=new Map(Object.entries(JSON.parse(o)))),n(i)})).catch((e=>{t(e)}))}))}getTabName(e){return"object"==typeof e?e.label:e}saveCardState(e,r,n){const t=this.getPath(`FormCardState:${n}`,r,"form-card");return new Promise(((r,n)=>{this.saveResource(Array.from(e.entries()),t).then((e=>{r(new Map(JSON.parse(e.resource)))})).catch((e=>{n(e)}))}))}saveConfig(e,r,n){delete e.cardsState,delete e.defaultVars,delete e.summary;const t=this.getPath(n,r);return new Promise(((r,n)=>{this.saveResource(e,t).then((e=>{r(JSON.parse(e.resource))})).catch((e=>{n(e)}))}))}fetchUserAvailableConfigs(e,n){const t=this.getPath(n,e);return new Promise(((e,n)=>{r.get().callGraphQL({values:{name:t},query:this.queryConfig.get("fetchUserAvailableConfigs")}).then((r=>{e(r)})).catch((e=>{n(e)}))}))}fetchLegacyConfig(e,t){const o=this.getPath(t,e);return new Promise(((e,t)=>{r.get().callGraphQL({values:{name:o},query:this.queryConfig.get("fetchLegacyConfig")}).then((r=>{e(n.stringToObject((null==r?void 0:r.resource)||""))})).catch((e=>{t(e)}))}))}fetchDefaultConfig(e,t){const o=this.getPath(t,e);return new Promise(((e,t)=>{r.get().callGraphQL({values:{name:o},query:this.queryConfig.get("fetchDefaultConfig")}).then((r=>{(null==r?void 0:r.resource)||e(null),e(n.stringToObject(null==r?void 0:r.resource))})).catch((e=>{t(e)}))}))}getPath(e,r,n="form"){return r?`cfg://${n}/${e}/${r}`:`cfg://${n}/${e}`}async fetchLegacyConfigurableForm(e){const t={requestBody:{config:{chave:e,tipo:"T"}}},o=await r.get().callServiceBroker("SystemUtilsSP.getConf",JSON.stringify(t));if(!n.isEmpty(o))return this.buildLegacyConfigurableForm(o)}async fetchSimpleFormConfig(e){const n={requestBody:{formConfig:{configName:e}}},t=await r.get().callServiceBroker("FormConfig.getFormConfig",JSON.stringify(n));return this.processConfig(t)}async saveSimpleFormConfig(e,n){const t=this.buildSaveSimpleFormConfigPayload(e,n),o=await r.get().callServiceBroker("FormConfig.saveFormConfig",JSON.stringify(t));this.processConfig(o)}processConfig(e){return n.isEmpty(e)?[]:this.getResponseAsArray(e).map((e=>e.name))}getResponseAsArray(e){var r,n,t;const o=null!==(t=null===(n=null===(r=null==e?void 0:e.formConfig)||void 0===r?void 0:r.layout)||void 0===n?void 0:n.field)&&void 0!==t?t:[];return Array.isArray(o)?o:[o]}buildSaveSimpleFormConfigPayload(e,r){return{formConfig:{configName:e,layout:{field:r.map((e=>({name:e})))},metadata:{field:[]}}}}async restoreFormConfig(e){const n={requestBody:{formConfig:{configName:e}}};await r.get().callServiceBroker("FormConfig.restoreFormConfig",JSON.stringify(n))}buildLegacyConfigurableForm(e){var r,n,t;const o=null!==(t=null===(n=null===(r=null==e?void 0:e.formConfig)||void 0===r?void 0:r.layout)||void 0===n?void 0:n.field)&&void 0!==t?t:[];return{emptyConfig:!1,fields:Array.isArray(o)?o:[o]}}}var i;!function(e){e.USER="USER",e.DEFAULT="DEFAULT",e.SHARED="SHARED"}(i||(i={}));export{o as F,t as R,i as U}
@@ -0,0 +1 @@
1
+ import{r as s,h as i,H as t,g as e}from"./p-d2d301a6.js";import{ObjectUtils as r,StringUtils as a,ElementIDUtils as o}from"@sankhyalabs/core";import{P as n,b as l}from"./p-798386c7.js";import"./p-d62228fb.js";import"./p-0f3698af.js";import"./p-21749402.js";import"@sankhyalabs/ezui/dist/collection/utils/constants";import"@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata";import"./p-1e4f16f3.js";import"./p-ff1990ad.js";import"./p-1435701f.js";import{EzScrollDirection as c}from"@sankhyalabs/ezui/dist/collection/components/ez-scroller/EzScrollDirection";import"./p-8d884fab.js";import"@sankhyalabs/ezui/dist/collection/components/ez-grid/utils";import"@sankhyalabs/core/dist/utils/SortingUtils";import"./p-688dcb4c.js";const u=class{constructor(i){s(this,i),this._mdByName={},this._startHighlightTag="<span class='card-item__highlight'>",this._endHighlightTag="</span>",this._specialCharsRegex=/[[.\-\$\+\*,_\&\(\)%\/\\#@!:\|\=\'\"]/gim,this._charsWithAccentuation="ÁÉÍÓÚ_ÃÕ_ÂÊÎÔÛ_ÀÈÌÒÙ_Ü_Ç_áéíóú_ãõ_âêîôû_àèìòù_ü_ç",this._charsWithoutAccentuation="AEIOU_AO_AEIOU_AEIOU_U_C_aeiou_ao_aeiou_aeiou_u_c",this._changeDeboucingTimeout=null,this._limitCharsToSearch=3,this._deboucingTime=450,this._gridDataSource=[],this.pesquisaFetcher=new n,this._itemList=void 0,this._startLoading=!1,this._presentationMode="list",this.searchLoader=void 0,this.treeLoader=void 0,this.selectItem=void 0,this.entityName=void 0,this.argument=void 0,this.isHierarchyEntity=!1,this.allowsNonAnalytic=!1}observeArgument(){this._textInput&&(this._textInput.value=this.argument)}clearSearch(){this.argument="",this._itemList=void 0}buildDetails(s,i){let t={};for(let e=0;e<s.length;e++){const r=s[e],a=i[r.fieldName];t[r.description]=this.highlightValue(i.__matchFields,r.options&&r.options[a]||a,s,!0)}return t}buildFirstFields(s,i,t=6){return s&&Array.isArray(s)&&s.forEach((s=>{let t=this.removeReference(i,this._mdByName[s]);t&&i.unshift(t)})),i=i.slice(0,t)}doSearch(s){this.searchLoader&&"function"==typeof this.searchLoader&&(this._startLoading=!0,this.searchLoader(s).then((s=>{s&&this.processSearchResponse(s)})).finally((()=>{this._startLoading=!1})))}processSearchResponse(s){let i=(s=r.stringToObject(s.json.$)).descriptionField,t=s.pkField;t&&(this._gridMetadata=l(s),this._gridDataSource=[...s.data],this._pkField=t,this._descriptionField=i,this._itemList=this.buildCardItemList(s,t,i))}buildCardItemList(s,i,t){var e;return null===(e=s.data)||void 0===e?void 0:e.map((e=>{var r;let a=this.filterFieldsMetadata(s,e),o=this.buildFirstFields(e.__matchFields,a);return{key:this.highlightValue(e.__matchFields,null===(r=e[i])||void 0===r?void 0:r.toString(),o,!0),title:t?this.highlightValue(e.__matchFields,e[t],o,!0):"",details:this.buildDetails(o,e)}}))}filterFieldsMetadata(s,i){return s.fieldsMetadata.filter((t=>{let e=!a.isEmpty(i[t.fieldName])&&!1!==t.visible&&"B"!==t.type&&s.pkField!==t.fieldName&&s.descriptionField!==t.fieldName&&(t.isPrimaryKey||!t.isLinkField)&&!("S"===t.type&&"H"===t.presentationType);return e&&(this._mdByName[t.fieldName]=t),("string"!=typeof i[t.fieldName]||!(i[t.fieldName].indexOf("<img")>-1||i[t.fieldName].indexOf("<svg")>-1))&&e}))}removeAtIndex(s,i){if(i>=0&&i<s.length)return s.splice(i,1)[0]}removeReference(s,i){let t=this.indexOf(s,i);return this.removeAtIndex(s,t)}indexOf(s,i){let t=-1;return Array.isArray(s)&&this.find(s,((s,e)=>(t=e,this.equals(i,s)))),t}equals(s,i){return r.objectToString(s)===r.objectToString(i)}find(s,i){if(s)for(let t=0,e=s.length;t<e;t++)if(i(s[t],t,s))return s[t]}highlightValue(s,i,t,e){let r=this.replaceHtmlEntities(i);if(this.argument&&(e||this.isIn(s,t.fieldName))){const s=this.getArgumentNumber();let i=(isNaN(s)?this.argument:s.toString()).split(/%|,|\s+/),e=0,a=this.replaceAccentuatedChars(r);i.forEach((s=>{if(s){s=this.replaceAccentuatedChars(s);let i=this.getSpecialCharacters(s);null!=i&&i.length>0&&(s=this.removeSpecialCharacters(s)),(t.mask||"CGC_CPF"===t.uiType||"Phone"===t.uiType)&&(s=s.split("").join("\\.?\\-?\\/?\\(?\\)?"));let o=new RegExp(s,"ig");o.lastIndex=e;let n=o.exec(a);if(n&&n.length>0){e=n.index;let s=n[0].length,i=r.substring(e,e+s),t=(null==i?void 0:i.trim())?this._startHighlightTag+i+this._endHighlightTag:"",o=r.substring(0,e),l=r.substring(e+s);r=o+t+l,e+=t.length,a=this.replaceAccentuatedChars(r)}}}))}return r}replaceHtmlEntities(s){return null==s?s:String(s).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}replaceAccentuatedChars(s){return null==s?s:this.replaceToSpace(s,["&amp;","&lt;","&gt;","&quot;"]).replace(/[^\w ]/g,(s=>{let i=this._charsWithAccentuation.indexOf(s);return i>-1&&(s=this._charsWithoutAccentuation.charAt(i)),s||""}))}replaceToSpace(s,i=[]){return null==s||i.forEach((i=>{const t=new RegExp(i,"g");let e="";for(let s=0;s<i.length;s++)e+=" ";s=String(s).replace(t,e)})),s}isIn(s,i){return this.indexOf(s,i)>-1}getSpecialCharacters(s){let i,t=[];for(;i=this._specialCharsRegex.exec(s);)t.push(s[i.index]);return t}removeSpecialCharacters(s){return this.getSpecialCharacters(s).forEach((i=>{s=this.replaceAll(s,i,"")})),s}replaceAll(s,i,t){let e=(null!=s?s:"").indexOf(i);for(;e>-1;)e=(s=s.replace(i,t)).indexOf(i);return s}getArgumentNumber(){return Number(this.argument||void 0)}createOption(s){let{key:i,title:t}=s;const e=new RegExp(this._startHighlightTag,"g"),r=new RegExp(this._endHighlightTag,"g");t=a.decodeHtmlEntities(t);const o={value:null==i?void 0:i.replace(e,"").replace(r,""),label:null==t?void 0:t.replace(e,"").replace(r,"")};this.selectItem(o)}onChangeValue(s){var i;if(this.clearDeboucingTimeout(),this._startLoading)return void(this._changeDeboucingTimeout=setTimeout((()=>{this.onChangeValue(s)}),this._deboucingTime));if(this.argument=(s.detail||"").trim(),this.isHierarchyEntity&&"list"===this._presentationMode)return void(null===(i=this._pesquisaTree)||void 0===i||i.applyFilter());const t=this.getArgumentNumber();this.argument&&(!isNaN(t)||this.argument.length>=this._limitCharsToSearch)?this._changeDeboucingTimeout=setTimeout((()=>{this.doSearch(isNaN(t)?this.argument:t.toString())}),this._deboucingTime):this._itemList=void 0}clearDeboucingTimeout(){this._changeDeboucingTimeout&&(clearTimeout(this._changeDeboucingTimeout),this._changeDeboucingTimeout=void 0)}onClickSearch(){this.doSearch((this.argument||"").trim())}getMessageView(){return this._startLoading?"Aguarde, buscando registros...":this._itemList?this._itemList.length>=1?`${this._itemList.length} ${this._itemList.length>1?"registros encontrados":"registro encontrado"}`:"Nenhum registro encontrado":"Os resultados de sua pesquisa aparecerão aqui..."}async componentWillLoad(){const s=await this.pesquisaFetcher.loadPresentationConfig(this.entityName);this._presentationMode="list"===s?"list":"table"}async componentDidLoad(){o.addIDInfo(this._element)}async onClickList(){this._presentationMode="list"===this._presentationMode?"table":"list",await this.pesquisaFetcher.savePresentationConfig(this.entityName,this._presentationMode)}enableListButton(){var s;return(null===(s=this._itemList)||void 0===s?void 0:s.length)>0}hideLimitMessage(){return!this._itemList||("list"===this._presentationMode?!!this.isHierarchyEntity||this._itemList.length<=100:this._itemList.length<=150)}hideRecordsMessage(){return"list"===this._presentationMode&&this.isHierarchyEntity}renderContent(){if(this._itemList)return"list"===this._presentationMode?this.isHierarchyEntity?this.renderTree():this.renderCards():this.renderPesquisaGrid()}renderTree(){return i("ez-scroller",{direction:c.VERTICAL},i("pesquisa-tree",{ref:s=>this._pesquisaTree=s,argument:this.argument,treeLoader:this.treeLoader,allowsNonAnalytic:this.allowsNonAnalytic,onPesquisaTreeSelectItem:({detail:s})=>this.selectItem(s)}))}renderCards(){return i("ez-scroller",{direction:c.VERTICAL},i("div",{class:"snk-pesquisa__cards-container"},this._itemList.map((s=>i("ez-card-item",{onEzClick:s=>this.createOption(s.detail),item:s})))))}renderPesquisaGrid(){return i("pesquisa-grid",{metadata:this._gridMetadata,dataSource:this._gridDataSource,pkField:this._pkField,descriptionField:this._descriptionField,entityName:this.entityName,onPesquisaGridSelectItem:({detail:s})=>this.selectItem(s)})}render(){var s;return i(t,null,i("div",{class:"snk-pesquisa"},i("div",{class:"snk-pesquisa__input"},i("ez-text-input",{label:"Buscar",class:"ez-margin-right--medium",canShowError:!1,ref:s=>this._textInput=s,onEzChange:s=>this.onChangeValue(s),value:this.argument,"data-element-id":"searchInput"},i("ez-icon",{slot:"leftIcon",iconName:"search"}),this.argument&&(null===(s=this._textInput)||void 0===s?void 0:s.value)?i("button",{slot:"rightIcon",class:"snk-pesquisa__btn",onClick:()=>this.clearSearch()},i("ez-icon",{iconName:"close"})):void 0),i("ez-button",{class:"ez-button--primary",label:"Pesquisar",onClick:()=>this.onClickSearch()}),i("ez-button",{class:"ez-margin-left--medium",mode:"icon",iconName:"list"===this._presentationMode?"table":"list",title:"list"===this._presentationMode?"Modo grade":"Modo lista",onClick:async()=>await this.onClickList(),enabled:this.enableListButton()})),i("div",{class:"snk-pesquisa__records-label"},i("label",{class:"snk-pesquisa__records "+(this.hideRecordsMessage()?"hidden":"")},this.getMessageView()),i("label",{class:"snk-pesquisa__records-limit "+(this.hideLimitMessage()?"hidden":"")},"Essa pesquisa foi limitada, existem mais resultados.")),i("div",{class:"snk-pesquisa__content"},this.renderContent())))}get _element(){return e(this)}static get watchers(){return{argument:["observeArgument"]}}};u.style=".sc-snk-pesquisa-h{--snk-pesquisa--font-size:var(--text--medium, 14px);--snk-pesquisa--font-family:var(--font-pattern, Arial);--snk-pesquisa--font-weight:var(--text-weight--medium, 400);--snk-pesquisa__records--color:var(--text--primary, #626e82);--snk-pesquisa__records--color-secondary:var(--text--secondary, #626e82);--snk-pesquisa__records--padding-vertical:var(--space--medium, 12px);--snk-pesquisa__content--padding-right:var(--space--small, 6px);--snk-pesquisa__btn--color:var(--title--primary, #2B3A54);--snk-pesquisa__btn-disabled--color:var(--text--disable, #AFB6C0);--snk-pesquisa__btn-hover--color:var(--color--primary, #4e4e4e);--snk-pesquisa__scrollbar--color-default:var(--scrollbar--default, #626e82);--snk-pesquisa__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--snk-pesquisa__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--snk-pesquisa__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--snk-pesquisa__scrollbar--border-radius:var(--border--radius-small, 6px);--snk-pesquisa__scrollbar--width:var(--space--medium, 12px);height:100%;display:flex;flex-direction:column;overflow-y:auto}.snk-pesquisa.sc-snk-pesquisa{display:flex;flex-direction:column;height:100%}.snk-pesquisa__input.sc-snk-pesquisa{display:flex;width:100%;box-sizing:border-box;padding-top:4px;padding-right:4px}.snk-pesquisa__input.sc-snk-pesquisa ez-icon.sc-snk-pesquisa{--ez-icon--color:inherit;font-weight:var(--text-weight--large, 600)}.snk-pesquisa__content.sc-snk-pesquisa{display:flex;flex-direction:column;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:var(--snk-pesquisa__scrollbar--color-clicked) var(--snk-pesquisa__scrollbar--color-background);padding-right:var(--snk-pesquisa__content--padding-right)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar{background-color:var(--snk-pesquisa__scrollbar--color-background);width:var(--snk-pesquisa__scrollbar--width);max-width:var(--snk-pesquisa__scrollbar--width);min-width:var(--snk-pesquisa__scrollbar--width)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-track{background-color:var(--snk-pesquisa__scrollbar--color-background);border-radius:var(--snk-pesquisa__scrollbar--border-radius)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-thumb{background-color:var(--snk-pesquisa__scrollbar--color-default);border-radius:var(--snk-pesquisa__scrollbar--border-radius)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-thumb:vertical:hover,.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--snk-pesquisa__scrollbar--color-hover)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-thumb:vertical:active,.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--snk-pesquisa__scrollbar--color-clicked)}.snk-pesquisa__records-label.sc-snk-pesquisa{display:flex;flex-direction:row;justify-content:space-between;font-family:var(--snk-pesquisa--font-family);font-weight:var(--snk-pesquisa--font-weight);font-size:var(--snk-pesquisa--font-size);padding-bottom:var(--snk-pesquisa__records--padding-vertical);padding-top:var(--snk-pesquisa__records--padding-vertical)}.snk-pesquisa__records.sc-snk-pesquisa{color:var(--snk-pesquisa__records--color)}.snk-pesquisa__records-limit.sc-snk-pesquisa{color:var(--snk-pesquisa__records--color-secondary)}.snk-pesquisa__records-limit.hidden.sc-snk-pesquisa,.snk-pesquisa__records.hidden.sc-snk-pesquisa{visibility:hidden}.snk-pesquisa__btn.sc-snk-pesquisa{outline:none;border:none;background:none;cursor:pointer;color:var(--snk-pesquisa__btn--color)}.snk-pesquisa__btn.sc-snk-pesquisa:disabled{cursor:unset;color:var(--snk-pesquisa__btn-disabled--color)}.snk-pesquisa__btn.sc-snk-pesquisa:disabled:hover{cursor:unset;color:var(--snk-pesquisa__btn-disabled--color)}.snk-pesquisa__btn.sc-snk-pesquisa:hover{color:var(--snk-pesquisa__btn-hover--color)}";export{u as snk_pesquisa}
@@ -0,0 +1 @@
1
+ import{h as e,r as t,g as n}from"./p-d2d301a6.js";import{ElementIDUtils as o}from"@sankhyalabs/core";import{ModalAction as i}from"@sankhyalabs/ezui/dist/collection/components/ez-modal-container";const s=({getMessage:t,changeInfo:n,data:i})=>{const{format:s,email:l}=i||{};return e("div",null,e("ez-text-input",Object.assign({label:`${t("snkExporter.emailSenderInfoStep_sendTo")} (obrigatório) *`,value:null==l?void 0:l.to,onEzChange:e=>{var t;return n("to",null===(t=e.detail)||void 0===t?void 0:t.trim())}},{[o.DATA_ELEMENT_ID_ATTRIBUTE_NAME]:`${o.getInternalIDInfo("sendTo")}`})),e("ez-text-input",Object.assign({label:`${t("snkExporter.emailSenderInfoStep_subject")} (obrigatório) *`,value:null==l?void 0:l.subject,onEzChange:e=>{var t;return n("subject",null===(t=e.detail)||void 0===t?void 0:t.trim())}},{[o.DATA_ELEMENT_ID_ATTRIBUTE_NAME]:`${o.getInternalIDInfo("subject")}`})),e("ez-text-area",Object.assign({label:t("snkExporter.emailSenderInfoStep_message"),value:null==l?void 0:l.message,onEzChange:e=>n("message",e.detail)},{[o.DATA_ELEMENT_ID_ATTRIBUTE_NAME]:`${o.getInternalIDInfo("message")}`})),((null==l?void 0:l.attachments)||[]).map(((t,n)=>e("ez-file-item",Object.assign({class:"ez-padding-bottom--large",fileName:`${t.name}.${s}`,fileSize:t.size,canRemove:!1},{[o.DATA_ELEMENT_ID_ATTRIBUTE_NAME]:`${o.getInternalIDInfo("fileItem_")+(n+1)}`})))))},l=({getMessage:t,changeInfo:n,data:i})=>{const s=(null==i?void 0:i.selectedRows)||0,l=[{label:t("snkExporter.emailSenderOptStep_formatPDF"),value:"pdf"},{label:t("snkExporter.emailSenderOptStep_formatXLS"),value:"xls"}],a=[{label:t("snkExporter.emailSenderOptStep_allData"),value:"all"},{label:t("snkExporter.emailSenderOptStep_currentPage"),value:"page"}];if(s>0){const e=t(s>1?"snkExporter.emailSenderOptStep_someRecords":"snkExporter.emailSenderOptStep_oneRecord",{SELECTION_COUNT:s});a.push({label:e,value:"selection"})}return e("div",null,e("ez-radio-button",Object.assign({class:"ez-margin-bottom--large"},{[o.DATA_ELEMENT_ID_ATTRIBUTE_NAME]:`${o.getInternalIDInfo("formato")}`},{label:t("snkExporter.emailSenderOptStep_lblFormat"),direction:"horizontal",value:null==i?void 0:i.format,onEzChange:e=>n("format",e.detail),options:l})),e("ez-radio-button",Object.assign({class:"ez-margin-bottom--large"},{[o.DATA_ELEMENT_ID_ATTRIBUTE_NAME]:`${o.getInternalIDInfo("type")}`},{label:t("snkExporter.emailSenderOptStep_export"),value:(null==i?void 0:i.type)||"all",onEzChange:e=>n("type",e.detail),options:a})))},a=class{constructor(e){t(this,e),this._stepInfo=[{subTitle:"snkExporter.emailSenderOptStep_subtitle",firstButton:"snkExporter.emailSenderCancelButton",secondButton:"snkExporter.emailSenderNextButton",firstButtonAction:()=>this.close(),secondButtonAction:()=>this.changeStep(1)},{subTitle:"snkExporter.emailSenderInfoStep_subtitle",firstButton:"snkExporter.emailSenderBackButton",secondButton:"snkExporter.emailSenderSendButton",firstButtonAction:()=>this.changeStep(0),secondButtonAction:()=>this.send(),secondButtonEnabledTester:()=>this.isFilled(),secondButtonClass:"ez-button--primary"}],this._config=void 0,this._opened=!1,this._currentStep=0,this.getMessage=void 0}open(e){var t;return this._config=Object.assign(Object.assign({},e),{format:null!==(t=null==e?void 0:e.format)&&void 0!==t?t:"pdf"}),this._opened=!0,this.changeStep(0),new Promise((e=>{this._promiseResolver=e}))}close(){return this._opened=!1,new Promise((e=>{this._promiseResolver=e}))}getStepMessage(e){return this.getMessage((this._stepInfo[this._currentStep]||{})[e])}executeButtonAction(e){(this._stepInfo[this._currentStep]||{})[e?"firstButtonAction":"secondButtonAction"]()}checkButtonEnabled(e){const t=(this._stepInfo[this._currentStep]||{})[e?"firstButtonEnabledTester":"secondButtonEnabledTester"];return!t||t()}changeStep(e){this._currentStep=e,this._viewStack&&this._viewStack.show(this._currentStep)}send(){const{format:e,type:t,email:n,resolver:o}=this._config;o({format:e,type:t,email:n,report:void 0})}isFilled(){var e,t;return!(!(null===(e=this._config.email)||void 0===e?void 0:e.to)||!(null===(t=this._config.email)||void 0===t?void 0:t.subject))}updateEmailInfo(e,t){this._config=Object.assign(Object.assign({},this._config),{email:Object.assign(Object.assign({},this._config.email),{[e]:t})})}updateConfigInfo(e,t){this._config=Object.assign(Object.assign({},this._config),{[e]:t})}getSecondButtonClass(){return(this._stepInfo[this._currentStep]||{}).secondButtonClass||"ez-button--secondary"}render(){return o.addIDInfoIfNotExists(this._element,"snkExporterEmailSender"),e("ez-popup",{useHeader:!1,size:"x-small",heightMode:"auto",opened:this._opened},e("ez-modal-container",{onEzModalAction:e=>{e.detail===i.CLOSE&&this.close()},modalTitle:this.getMessage("snkExporter.emailSenderTitle"),modalSubTitle:this.getStepMessage("subTitle")},e("ez-view-stack",{ref:e=>this._viewStack=e},e("stack-item",null,e(l,{getMessage:this.getMessage,data:this._config,changeInfo:(e,t)=>this.updateConfigInfo(e,t)})),e("stack-item",null,e(s,{getMessage:this.getMessage,data:this._config,changeInfo:(e,t)=>this.updateEmailInfo(e,t)}))),e("div",{class:"ez-col ez-col--sd-12 ez-flex--justify-end ez-margin-vertical--small"},e("ez-button",Object.assign({class:"ez-button--tertiary ez-padding-right--medium",label:this.getStepMessage("firstButton"),onClick:()=>this.executeButtonAction(!0),enabled:this.checkButtonEnabled(!0)},{[o.DATA_ELEMENT_ID_ATTRIBUTE_NAME]:`${o.getInternalIDInfo("firstButton")}`})),e("ez-button",Object.assign({class:this.getSecondButtonClass(),label:this.getStepMessage("secondButton"),onClick:()=>this.executeButtonAction(!1),enabled:this.checkButtonEnabled(!1)},{[o.DATA_ELEMENT_ID_ATTRIBUTE_NAME]:`${o.getInternalIDInfo("secondButton")}`})))))}get _element(){return n(this)}};export{a as snk_exporter_email_sender}
@@ -0,0 +1 @@
1
+ import{ApplicationContext as e}from"@sankhyalabs/core";const a={saveInfo:{clone:"Duplicação realizada!",insert:"Inclusão realizada!",update:"Alteração realizada!"},cancelInfo:{clone:"Duplicação descartada!",insert:"A inclusão foi descartada!",update:"A edição foi descartada!"},confirm:{cancel:"Cancelar",delete:"Excluir",yes:"Sim",no:"Não"},removeInfo:"Registro removido com sucesso!",cancelConfirmationTitle:"Aviso",cancelConfirmation:"As alterações realizadas serão descartadas<br/><br/><b>Você realmente gostaria de cancelar?",removeConfirmationTitle:"Aviso",removeConfirmation:"Deseja realmente excluir o registro atual?",forbidden:"Sem permissão",forbiddenUpdate:"Não é possível fazer alterações. Verifique as permissões de acesso.",forbiddenInsert:"Não é possível incluir. Verifique as permissões de acesso.",forbiddenClone:"Não é possível duplicar. Verifique as permissões de acesso.",forbiddenRemove:"Não é possível remover. Verifique as permissões de acesso.",removeAllConfirmation:"Os <strong>{{size}} registros selecionados</strong> serão excluídos.<br/><br/><strong>Você realmente gostaria de continuar?</strong>",removeAllInfo:"Os {{size}} registros foram removidos com sucesso!",fieldNameRequired:"É necessário informar o nome da coluna."},o={addFilter:"Adicionar filtro",pinFilter:"Fixar filtro",unpinFilter:"Desfixar filtro",removeFilter:"Remover filtro",cleanFilter:"Limpar",applyFilter:"Aplicar",findFilter:"Buscar filtros...",findField:"Buscar filtros...",modalFindFilter:"Buscar filtro",emptyFiltersList:"Não há filtros disponíveis",emptyAppliedFiltersList:"Não há filtros aplicados",customFilter:"Filtro personalizado",defaultFilter:"Filtro padrão",failToLoadConfig:"Falha ao buscar configuração de filtros",clearAllFilters:"Limpar todos os filtros",successfullyCleaned:"Filtro limpo com sucesso!",activeFilter:"{{ACTIVE_FILTERS}} filtro aplicado",activeFilters:"{{ACTIVE_FILTERS}} filtros aplicados",noActiveFilters:"Nenhum filtro aplicado",modalDefaultFilterTitle:"Filtro padrão",modalInfoTextEditDefault:"Use o layout antigo para editar o seu filtro padrão, em breve traremos uma nova experiência.",modalInfoTextCreateDefault:"Use o layout antigo para criar o seu filtro padrão, em breve traremos uma nova experiência.",modalPersonalizedFilterTitle:"Filtro personalizado",modalPersonalizedFilterSubTitle:"Gerencie seus filtros",modalInfoTextCreateEditPersonalized:"Use o layout antigo para criar ou editar filtros, em breve traremos uma nova experiência",modalInfoTextCreateFilter:"Criar filtro personalizado",modalInfoTextNoFilterRegister:"Você não possui filtros cadastrados.",modalOkButtonLabel:"Aplicar",modalCancelButtonLabel:"Limpar",binarySelectTooltip:"Exibindo registros",multiListToltip:"selecionado(a)s",onlyStartToltip:"A partir de",onlyEndToltip:"Até",fullPeriodTooltip:"Data de {{LABEL}}: {{START_LABEL}} até {{END_LABEL}}",labelStart:"Inicial",labelEnd:"Final",fullIntervalTooltip:"{{LABEL}}: {{START_LABEL}} até {{END_LABEL}}",filters:"Filtros",personalizedCount:"{{activeCount}} selecionado(s)",filterModal:{title:"Filtros",okButtonLabel:"Aplicar",cancelButtonLabel:"Limpar tudo",customFilters:"Filtros personalizados",quickFilters:"Filtros rápidos",validations:{notFullFilled:{title:"Filtro parcialmente preenchido",message:"Favor completar todas as informações do filtro."},notSaved:{title:"Atenção",message:"As alterações realizadas não serão aplicadas.<br/><br/><b>Deseja mesmo continuar?</b>"}}}},r={titleUpdate:"Editar",titlePrevious:"Anterior",titleNext:"Próximo",titleRefresh:"Atualizar",titleClone:"Duplicar",titleRemove:"Excluir",titleMoreOptions:"Mais Opções",titleInsert:"Cadastrar",titleCancel:"Cancelar",titleSave:"Salvar",titleGridMode:"Modo Grade",titleFormMode:"Modo Formulário",titleConfigurator:"Configurações",titleAttach:"Anexar",forbidden:"Permissão não liberada"},i={errorArray:"CrudUtils.find deve receber um array de fields, ou uma lista separada por virgula."},s={emailSenderTitle:"Enviar por email",emailSenderBackButton:"Voltar",emailSenderNextButton:"Avançar",emailSenderCancelButton:"Cancelar",emailSenderSendButton:"Enviar",emailSenderOptStep_subtitle:"Primeiro, escolha o formato do arquivo",emailSenderOptStep_lblFormat:"Formato:",emailSenderOptStep_formatPDF:"PDF (.pdf)",emailSenderOptStep_formatXLS:"Planilha (.xls)",emailSenderOptStep_export:"Exportar:",emailSenderOptStep_allData:"Toda a grade",emailSenderOptStep_currentPage:"Somente a página atual",emailSenderOptStep_someRecords:"{{SELECTION_COUNT}} linhas selecionadas",emailSenderOptStep_oneRecord:"Somente a linha selecionada",emailSenderInfoStep_subtitle:"Informações de email",emailSenderInfoStep_sendTo:"Enviar para",emailSenderInfoStep_subject:"Assunto",emailSenderInfoStep_message:"Mensagem"},t={title:{clone:"Duplicar registro",insert:"Cadastrar registro",update:"Alterar registro",clean:"{{ENTITY_NAME}}"},findColumn:"Buscar campos",goBackTitle:"Voltar"},l={findColumn:"Busca de colunas",formConfigUnavaliable:{title:"Aviso",message:'A opção "Configurar formulário" será disponibilizada em breve. Enquanto isso, acesse a configuração do fomulário através dos layouts anteriores, HTML5 ou Flex.'}},n={error:{title:"Erro na Exportação",message:"O usuário não possui permissão para exportar o arquivo."},message:{exportSuccess:"Exportado com sucesso!"}},d={newVersionPopup:{title:"Boas vindas à nova interface da tela {{screenName}}",info:"Com uma jornada mais moderna, simples e intuitiva, a performance aprimorada da nova interface impulsionará a sua produtividade.",okButton:"Quero experimentar!",cancelButton:"Voltar à interface anterior"}},c={label:{nameField:"Nome do Campo *",typeValueDefault:"Tipo de valor padrão *",valueDefault:"Valor Padrão",clearDuplicate:"Limpar ao Duplicar",requiredField:"Campo Obrigatório",protectedField:"Campo Protegido"},options:{valueFixed:"Valor Fixo",variable:"Variável"}},m={title:"Configuração do formulário",goBackTitle:"Voltar",applyConfig:"Aplicar configuração",availableFields:{title:"Campos disponíveis",labelNoFields:"Nenhum campo disponível",labelOneField:"1 campo disponível",labelAvailableFields:"Campos disponíveis",labelSearchField:"Procurar campo"},form:{subTitleInfo:"Inclua estes campos nos grupos ou deixe-os separados no topo do formulário!",labelDropField:"Arraste e solte um campo aqui",labelNewGroup:"Adicionar novo grupo",mainArea:"Área principal",tabGeneral:"Geral"},confirm:{title:"Aviso",deleteTab:"Você realmente deseja excluir a aba",cancel:"As alterações realizadas serão descartadas.<br/><br/><b>Gostaria de continuar?</b>",exit:"Ao sair as alterações serão descartadas.<br/><br/><b>Você realmente gostaria de sair?</b>",apply:"A <b>{0}</b> irá substituir a sua configuração {1}!<br/><br/><b>Deseja continuar?</b>",group:"Não é possível salvar as configurações com um grupo vazio!",labelCancel:"Cancelar",labelDelete:"Excluir"},alert:{titleGroupExists:"Já existe um grupo com título",infoValidTitle:"Por favor, digite um título válido.",inTab:"na aba"},info:{successfullyConfigSaved:"As configurações foram salvas com sucesso!"}},u={titleRemove:"Remover",titleConfigurations:"Configurações",titleAdd:"Adicionar"},p={labelRename:"Renomear",labelHide:"Ocultar",labelShow:"Exibir",labelDelete:"Excluir"},f={titleConfigurations:"Configurações",subTitleModeConfig:"Modo de visualização",labelConfigGrid:"Configurar grade",labelConfigForm:"Configurar formulário",labelGrid:"Grade",labelForm:"Formulário"},b={findColumn:"Busca de colunas",cancelConfirmation:{title:"Aviso",message:"As alterações realizadas serão descartadas<br/><br/><b>Você realmente gostaria de cancelar?</b>"}},v={gridConfiguration:"Configuração da Grade",columnVisibilityOrder:"Defina visibilidade e ordem das colunas.",sortingSequence:"Sequência da ordenação",findColumn:"Localizar coluna",cancel:"Cancelar",complete:"Concluir",tab:{columns:"Colunas",lineOrdering:"Ordenação das linhas"},info:{successfullyConfigSaved:"As configurações foram salvas com sucesso!"},confirm:{cancel:"Descartar",save:"Salvar",alert:"Aviso",msgCancel:"As alterações realizadas serão descartadas. Gostaria de salvar antes de sair?"},group:{visible:"Visíveis",hidden:"Ocultas"}},g={group:{export:{default:"Exportar para",multiSelected:"Exportar {0} linhas selecionadas",selectedLine:"Exportar somente 1 linha selecionada",title:"Exportar"},custom:"Personalizado"},label:{currentPage:"Somente a página atual",allRecords:"Todos os registros",spreadsheet:"Planilha",cube:"Cubo",sendByEmail:"Enviar por email"},message:{emailSuccess:"E-mail enviado com sucesso",exportError:"Falha ao exportar dados",unknownFailure:"O motivo da falha não pode ser identificado.",exportPermission:"O usuário não possui permissão para exportar o arquivo."},title:{error:"Erro",permission:"Falha detectada"},limitExceeded:{title:"Atenção",description:"Apenas os {{limit}} primeiros registros serão exportados. Deseja continuar?",subdescription:"Caso seja necessária uma quantidade maior de registros exportados, utilize o Extrator de Dados através de um Relatório Personalizado.",cancel:"Cancelar",continue:"Continuar"}},A={modalTitle:"Configuração de valor variável",labelSystemConfig:"Usar definições do sistema",labelUserConfig:"Usar definições personalizadas",labelInstance:"Categoria",labelField:"Campo",labelDescription:"Descrição (obrigatório) *",labelType:"Tipo (obrigatório) *",labelTypeValues:{date:"Data",text:"Texto",integer:"Número Inteiro",decimal:"Número com Decimal"},labelExpression:"Expressão",labelCancel:"Cancelar",labelSave:"Salvar"},C={searchLabel:"Buscar campo",fieldLabel:"Campos de {{link}}",linkLabel:"Categorias de {{link}}",groupEmpty:"Não há categorias para seleção",searchEmpty:"Nenhum resultado encontrado"},F={backTitle:"Voltar"},S={title:"Anexar arquivos",description:"Faça o upload dos arquivos ou informe links que deseja anexar ao título",attachHint:"Fazer download do arquivo",breadcrumbTitle:"Anexar",finishedMessage:"O anexo foi finalizado com sucesso",finish:"Finalizar",cancelConfirmation:{title:"Atenção",message:"As alterações realizadas não serão aplicadas.<br/><br/><b>Deseja mesmo continuar?</b>"},alertValidation:{fileAndLinkAtTheSameTime:{title:"Atenção",message:"Não é permitido inserir o arquivo e o link ao mesmo tempo."},anyLinkOrFileFilled:{title:"Atenção",message:'É necessário preencher o campo "Link" ou anexar um arquivo.'},descriptionCannotBeChanged:{title:"Atenção",message:"O campo 'Descrição' não pode ser alterado."}},taskbar:{titleDownload:"Fazer download",titleLink:"Abrir link"},attachMetadata:{lblCode:"Código",lblDescription:"Descrição",lblFileOrLink:"Arquivo / Link",lblUser:"Usuário",lblDate:"Data de alteração",lblFile:"Arquivo",lblSubTitle:"Clique para selecionar um arquivo"}},x={info:{titleEdit:"Editar filtro personalizado",titleAdd:"Criar filtro personalizado",titleCollapsible:"Expressão a ser aplicada (gerada pelo assistente)",labelSearchField:"Buscar campo",labelOperator:"Operador",labelValueVarible:"Valor variável",titleTooltip:"Ao ativar um valor variável, é possível inserir um valor diferente sempre que o filtro for aplicado",labelAddNewExpression:"Adicionar nova linha de expressão",labelDeleteExpression:"Remover expressão",labelDeleteItem:"Remover item",labelDisabledAddGroupButton:"Filtros Personalizados possuem um limite de {{LIMIT_GROUP_LEVEL}} Grupos de Condições e Valores",labelDisabledAddExpressionButton:"Preencha campos obrigatórios ou indique valores variáveis nas expressões do grupo antes de adicionar mais itens",labelCancel:"Cancelar",labelSave:"Salvar",labelNameFilter:"Nome do filtro",labelExpression:"Expressão",badgeVariable:"variável",noDataFound:"Nenhum filtro encontrado",condition:"Condição",addGroup:"Adicionar grupo",addField:"Adicionar campo",applyExpression:"Expressão a ser aplicada:",tooltipDisabledAssistentMode:"Expressão não suportada pelo assistente.",activeModeAdvanced:"Ativar modo avançado",activeModeAssistent:"Ativar modo assistente"},confirmExpression:{title:"Aviso",description:"As informações da condição serão descartadas.</br></br><b>Gostaria de continuar?</b>"},confirmGroup:{title:"Aviso",description:"As informações do Grupo e suas Condições serão descartadas.</br></br><b>Gostaria de continuar?</b>"},confirmCancel:{title:"Aviso",description:"As alterações realizadas serão descartadas.</br></br><b>Gostaria de continuar?</b>"},confirmChangeModeAssistent:{title:"Aviso",description:"Ao modificar a expressão, o modo assistente será desabilitado.</br></br><b>Gostaria de continuar?</b>"},confirmChangeModeAdvanced:{title:"Aviso",description:"Ao retornar ao modo assistente suas alterações serão perdidas.</br></br><b>Gostaria de continuar?</b>"},confirmSaveModeAdvanced:{title:"Aviso",description:"Ao modificar a expressão, o modo assistente será desabilitado.</br></br><b>Gostaria de continuar?</b>"},operador:{firstLevel:"A seleção será habilitada a partir da adição da segunda linha de regras.",and:"Será verdadeiro se todas as condições forem obedecidas.",or:"Será verdadeiro se qualquer uma das condições for obedecida."},error:{title:"Atenção",description:"Há pelo menos um campo obrigatório não preenchido."},errorValidation:{title:"Erro na expressão"},confirmSave:{title:"Filtro criado com sucesso!"},confirmEdit:{title:"Filtro atualizado com sucesso!"},deleteConfirm:{title:"Aviso",message:"Deseja realmente excluir o filtro '{{filterName}}'?"},listActions:{edit:"Editar",delete:"Excluir"},footerActions:{clear:"Limpar",create:"Criar filtro"}},h={selected:"Selecionados:"},E={title:{actions:"Ações",error:"Erro",warning:"Aviso"},action:{incorrectAction:'A ação "{{description}}" não pode ser executada porque ela não foi salva corretamente.',emptyParamName:"<b>Regra Personalizada:</b><br/><br/>É necessário informar o atributo 'paramName'",nonExistentType:"Tipo de ação não implementada: {{this.actionType}}"},launchScreen:{emptyField:'A ação "{{description}}" não pôde ser executada porque o campo "{{localFieldLabel}}" está vazio.'},form:{fillParams:"Informe os parâmetros"},clientEvent:{cancelMessage:"Caso queira cancelar, feche esta mensagem."},buttons:{apply:"Aplicar",cancel:"Cancelar",yes:"Sim",no:"Não"}},T={title:{warning:"Aviso",printerSelection:"Seleção de impressora",remotePrintersTab:"Impressoras remotas",localPrintersTab:"Impressoras locais"},subtitle:{document:"Documento:",jobs:"Trabalhos:"},message:{canceledPrint:"A impressão será cancelada. Deseja mesmo continuar?",noPrinters:"Não há impressoras para seleção",savePrinter:"Usar sempre esta seleção"},button:{print:"Imprimir",cancel:"Cancelar",yes:"Sim",no:"Não"}};class D{constructor(D){this._defaults={snkApplication:d,snkDataUnit:a,snkFormConfig:m,snkConfigOptions:c,snkTaskbar:r,snkFieldConfig:u,snkFilterBar:o,snkConfigurator:f,snkTabConfig:p,crudUtils:i,snkGrid:b,snkGridConfig:v,snkExporter:s,snkDataExporter:g,snkCrud:t,snkSimpleCrud:l,fileViewer:n,snkFilterParamConfig:A,snkFilterFieldSearch:C,snkSimpleBar:F,snkAttach:S,snkPersonalizedFilter:x,snkEntityList:h,snkActionsButton:E,snkPrintSelector:T},this._currentOperation=L.CLEAN,this._domainName=D,this._application=e.getContextValue("__SNK__APPLICATION__"),this.loadAppMessages().then((e=>{this._appMessages=e}),(e=>{console.info("O arquivo de mensagens personalizadas não foi encontrado no caminho /messages/appmessages",e)}))}set currentOperation(e){this._currentOperation=e}getMessage(e,a){if(null==e)return;var o=e.split(".");let r=this.resolveMessage(o,this.getDomainMessages());if(null==r&&(r=this.resolveMessage(o,this._defaults)),this.customMessageBuilder){const o=this.customMessageBuilder(e,r,a);r=o.message,a=o.params}return this.postProcess(r,a)}getDomainMessages(){if(this._appMessages)return this._domainName?this._appMessages[this._domainName]:this._appMessages.Global||this._appMessages}resolveMessage(e,a){if(null==a)return;const o=a[e[0]];return o?this.isOperationSensitive(o)?o[this._currentOperation]:1===e.length||null==o||"string"==typeof o?o:this.resolveMessage(e.slice(1),o):void 0}isOperationSensitive(e){return null!=e[L.CLONE]||null!=e[L.INSERT]||null!=e[L.UPDATE]||null!=e[L.CLEAN]}postProcess(e,a){if(e){const o=/(.*?)\{\{(.+?)\}\}/g;let r,i="",s=e;for(;null!==(r=o.exec(e));){const[o,t,l]=r,n=r.index+o.length;s=n<e.length?e.substring(n):"";let d=a?a[l]:void 0;null==d&&(d=""),i+=t+d}return i+s}return e}async loadAppMessages(){const e=await this._application.getApplicationPath();return(await import(`${e}/messages/appmessages.js`)).default}}var L;!function(e){e.CLONE="clone",e.INSERT="insert",e.UPDATE="update",e.CLEAN="clean"}(L||(L={}));export{L as O,D as S}
@@ -1,4 +1,4 @@
1
- import{R as e,F as t}from"./p-181975f1.js";import{F as i}from"./p-ff1990ad.js";import{ObjectUtils as s}from"@sankhyalabs/core";import{d as r,D as a}from"./p-594bc21d.js";var n;function l(e,t){if(null==e)return e;if(e instanceof Date)return e.toISOString();if("object"==typeof e){if(e instanceof Array)return e.map((e=>l(i.MULTI_LIST===t?function(e,t){var i={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(i[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(s=Object.getOwnPropertySymbols(e);r<s.length;r++)t.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(e,s[r])&&(i[s[r]]=e[s[r]])}return i}(e,["label"]):e)));{const i=Object.assign({},e);return Object.keys(e).forEach((s=>{void 0!==e[s]?i[s]=l(e[s],t):delete i[s]})),i}}return e}class o{constructor(){this.templateByQuery=new Map,this.buildTemplates()}resolveURI(e,t){let i="filter-assistent-config://"+e;return t&&(i+="."+t),i}buildTemplates(){this.templateByQuery.set("fetchFilterFields",r.gql`
1
+ import{R as e,F as t}from"./p-1435701f.js";import{F as i}from"./p-ff1990ad.js";import{ObjectUtils as s}from"@sankhyalabs/core";import{d as r,D as a}from"./p-d62228fb.js";var n;function l(e,t){if(null==e)return e;if(e instanceof Date)return e.toISOString();if("object"==typeof e){if(e instanceof Array)return e.map((e=>l(i.MULTI_LIST===t?function(e,t){var i={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(i[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(s=Object.getOwnPropertySymbols(e);r<s.length;r++)t.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(e,s[r])&&(i[s[r]]=e[s[r]])}return i}(e,["label"]):e)));{const i=Object.assign({},e);return Object.keys(e).forEach((s=>{void 0!==e[s]?i[s]=l(e[s],t):delete i[s]})),i}}return e}class o{constructor(){this.templateByQuery=new Map,this.buildTemplates()}resolveURI(e,t){let i="filter-assistent-config://"+e;return t&&(i+="."+t),i}buildTemplates(){this.templateByQuery.set("fetchFilterFields",r.gql`
2
2
  query($name: String!) {
3
3
  $queryAlias$: fetchFilterFields(name: $name){
4
4
  currentLink {
@@ -1 +1 @@
1
- import{r as t,c as i,h as e,H as s,g as r}from"./p-d2d301a6.js";import{ElementIDUtils as o,ObjectUtils as l}from"@sankhyalabs/core";import{F as a}from"./p-ff1990ad.js";import{E as n}from"./p-1a68fb59.js";import{C as d}from"./p-3287a6cc.js";import{F as h}from"./p-d9804798.js";import"./p-181975f1.js";import"./p-594bc21d.js";import"./p-8d884fab.js";import"@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata";const c=class{constructor(e){t(this,e),this.filterChange=i(this,"filterChange",7),this.editPersonalizedFilter=i(this,"editPersonalizedFilter",7),this.addPersonalizedFilter=i(this,"addPersonalizedFilter",7),this.filterItem=void 0,this.configName=void 0,this.resourceID=void 0}observeFilterItem(t){var i,e;this._editor&&(this._editor.config=t),null===(e=null===(i=this._editor)||void 0===i?void 0:i.reloadList)||void 0===e||e.call(i),this.filterChange.emit(t)}getContentEditorConfig(){const t={presentationMode:n.MODAL};switch(this.filterItem.type){case a.BINARY_SELECT:return{tag:"snk-filter-binary-select",props:t};case a.MULTI_SELECT:return{tag:"snk-filter-multi-select"};case a.PERIOD:return{tag:"snk-filter-period",props:t};case a.SEARCH:return{tag:"snk-filter-search"};case a.NUMBER:return{tag:"snk-filter-number",props:t};case a.PERSONALIZED:return this.buildSnkFilterPersonalizedProps();case a.CHECK_BOX_LIST:return{tag:"snk-filter-checkbox-list",props:t};case a.MULTI_LIST:return{tag:"snk-entity-list",props:{maxHeightList:"640px",rightListSlotBuilder:t=>this.buildRightSlot(t)}}}return{tag:"snk-filter-text"}}buildSnkFilterPersonalizedProps(){return{tag:"snk-personalized-filter-editor",props:{onEditFilter:t=>this.editPersonalizedFilter.emit(t.detail),onAddFilter:()=>this.addPersonalizedFilter.emit()}}}isVisible(t){return!!this.filterItem.visible||void 0!==t}updateFilterValue(t){const i=void 0!==(null==t?void 0:t.value)?t.value:t;this.filterItem=Object.assign(Object.assign({},this.filterItem),null!=this.filterItem.groupedItems?{visible:i>0,value:i,groupedItems:t.items}:{value:this.filterItem.type===(a.SEARCH||a.CHECK_BOX_LIST)?t:i,visible:this.isVisible(i)})}handleDeleteFilter(t,i){i===a.PERSONALIZED&&d.removePersonalizedFilter(t,this.resourceID,this.configName)}componentDidLoad(){if(this._element){o.addIDInfo(this._element);const t=this._element.getAttribute(o.DATA_ELEMENT_ID_ATTRIBUTE_NAME);this._idContentEditor=`${t}_${this.filterItem.id}`}}buildRightSlot(t){return e("ez-icon",{iconName:"delete",onClick:()=>this.removeValueFromConfig(t)})}removeValueFromConfig(t){var i,e,s;const r=null===(e=null===(i=this.filterItem)||void 0===i?void 0:i.value)||void 0===e?void 0:e.findIndex((({id:i})=>i===t.id)),o=l.copy(this.filterItem);null===(s=null==o?void 0:o.value)||void 0===s||s.splice(r,1),this.updateFilterValue(o.value)}canShowDetailModal(){const{CUSTOM_FILTER:t,OTHER_FILTERS:i}=h;return![t,i].includes(this.filterItem.filterType)&&this.filterItem.type!==a.BINARY_SELECT}render(){const{tag:t,props:i}=this.getContentEditorConfig();return e(s,null,e("div",{class:"ez-flex ez-flex--column grow"},this.canShowDetailModal()&&e("div",{class:"col ez-col--sd-12 ez-align--right ez-padding-medium ez-flex--align-items-center"},e("div",{class:"ez-title ez-title--small ez-title--primary grow"},this.filterItem.detailModal)),e(t,Object.assign({ref:t=>this._editor=t,config:this.filterItem,value:this.filterItem.value,onValueChanged:t=>this.updateFilterValue(t.detail),"data-element-id":this._idContentEditor},i))))}get _element(){return r(this)}static get watchers(){return{filterItem:["observeFilterItem"]}}};c.style=".grow{flex-grow:1}.gap{gap:4px}";export{c as snk_filter_modal_item}
1
+ import{r as t,c as i,h as e,H as s,g as r}from"./p-d2d301a6.js";import{ElementIDUtils as o,ObjectUtils as l}from"@sankhyalabs/core";import{F as a}from"./p-ff1990ad.js";import{E as n}from"./p-1a68fb59.js";import{C as d}from"./p-19dc71e9.js";import{F as h}from"./p-d9804798.js";import"./p-1435701f.js";import"./p-d62228fb.js";import"./p-8d884fab.js";import"@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata";const c=class{constructor(e){t(this,e),this.filterChange=i(this,"filterChange",7),this.editPersonalizedFilter=i(this,"editPersonalizedFilter",7),this.addPersonalizedFilter=i(this,"addPersonalizedFilter",7),this.filterItem=void 0,this.configName=void 0,this.resourceID=void 0}observeFilterItem(t){var i,e;this._editor&&(this._editor.config=t),null===(e=null===(i=this._editor)||void 0===i?void 0:i.reloadList)||void 0===e||e.call(i),this.filterChange.emit(t)}getContentEditorConfig(){const t={presentationMode:n.MODAL};switch(this.filterItem.type){case a.BINARY_SELECT:return{tag:"snk-filter-binary-select",props:t};case a.MULTI_SELECT:return{tag:"snk-filter-multi-select"};case a.PERIOD:return{tag:"snk-filter-period",props:t};case a.SEARCH:return{tag:"snk-filter-search"};case a.NUMBER:return{tag:"snk-filter-number",props:t};case a.PERSONALIZED:return this.buildSnkFilterPersonalizedProps();case a.CHECK_BOX_LIST:return{tag:"snk-filter-checkbox-list",props:t};case a.MULTI_LIST:return{tag:"snk-entity-list",props:{maxHeightList:"640px",rightListSlotBuilder:t=>this.buildRightSlot(t)}}}return{tag:"snk-filter-text"}}buildSnkFilterPersonalizedProps(){return{tag:"snk-personalized-filter-editor",props:{onEditFilter:t=>this.editPersonalizedFilter.emit(t.detail),onAddFilter:()=>this.addPersonalizedFilter.emit()}}}isVisible(t){return!!this.filterItem.visible||void 0!==t}updateFilterValue(t){const i=void 0!==(null==t?void 0:t.value)?t.value:t;this.filterItem=Object.assign(Object.assign({},this.filterItem),null!=this.filterItem.groupedItems?{visible:i>0,value:i,groupedItems:t.items}:{value:this.filterItem.type===(a.SEARCH||a.CHECK_BOX_LIST)?t:i,visible:this.isVisible(i)})}handleDeleteFilter(t,i){i===a.PERSONALIZED&&d.removePersonalizedFilter(t,this.resourceID,this.configName)}componentDidLoad(){if(this._element){o.addIDInfo(this._element);const t=this._element.getAttribute(o.DATA_ELEMENT_ID_ATTRIBUTE_NAME);this._idContentEditor=`${t}_${this.filterItem.id}`}}buildRightSlot(t){return e("ez-icon",{iconName:"delete",onClick:()=>this.removeValueFromConfig(t)})}removeValueFromConfig(t){var i,e,s;const r=null===(e=null===(i=this.filterItem)||void 0===i?void 0:i.value)||void 0===e?void 0:e.findIndex((({id:i})=>i===t.id)),o=l.copy(this.filterItem);null===(s=null==o?void 0:o.value)||void 0===s||s.splice(r,1),this.updateFilterValue(o.value)}canShowDetailModal(){const{CUSTOM_FILTER:t,OTHER_FILTERS:i}=h;return![t,i].includes(this.filterItem.filterType)&&this.filterItem.type!==a.BINARY_SELECT}render(){const{tag:t,props:i}=this.getContentEditorConfig();return e(s,null,e("div",{class:"ez-flex ez-flex--column grow"},this.canShowDetailModal()&&e("div",{class:"col ez-col--sd-12 ez-align--right ez-padding-medium ez-flex--align-items-center"},e("div",{class:"ez-title ez-title--small ez-title--primary grow"},this.filterItem.detailModal)),e(t,Object.assign({ref:t=>this._editor=t,config:this.filterItem,value:this.filterItem.value,onValueChanged:t=>this.updateFilterValue(t.detail),"data-element-id":this._idContentEditor},i))))}get _element(){return r(this)}static get watchers(){return{filterItem:["observeFilterItem"]}}};c.style=".grow{flex-grow:1}.gap{gap:4px}";export{c as snk_filter_modal_item}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as e}from"./p-d2d301a6.js";import{ApplicationContext as a,DataType as s,Action as n,UserInterface as o,StringUtils as r,DataUnit as h}from"@sankhyalabs/core";import{D as l}from"./p-d62228fb.js";import"./p-798386c7.js";import"./p-0f3698af.js";import{S as d}from"./p-21749402.js";import{P as c,b as u,D as m,I as v}from"./p-1e4f16f3.js";import"./p-ff1990ad.js";import"./p-1435701f.js";import{V as A}from"./p-95ce311a.js";import{A as O}from"./p-f0b9303b.js";import{T as p}from"./p-3fc82614.js";import"./p-8d884fab.js";import"@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata";import"@sankhyalabs/ezui/dist/collection/utils/constants";import"@sankhyalabs/ezui/dist/collection/components/ez-grid/utils";import"@sankhyalabs/core/dist/utils/SortingUtils";import"./p-688dcb4c.js";import"./p-6dc031de.js";class w{constructor(t){this.dataUnitName=t}async save({dataUnit:t,record:i,updatingFields:e,operation:a}){var s,n;const o="INSERT"==a,r=o?e:i;if(!o&&(null==e?void 0:e.DESCRICAO)&&(null==e?void 0:e.DESCRICAO)!==(null==i?void 0:i.DESCRICAO))throw new Error(d.DESCRIPTION_CANNOT_BE_CHANGED);const h={anexo:{codata:o?null==e?void 0:e.REGISTER_KEY:null==i?void 0:i.CODATA,sequencia:(null==r?void 0:r.SEQUENCIA)||"0",tipo:(null==r?void 0:r.TIPO)||"N",descricao:null==r?void 0:r.DESCRICAO,arquivo:null===(n=null===(s=e.CAMINHO_ARQUIVO)||void 0===s?void 0:s[0])||void 0===n?void 0:n.name,ehInclusao:o?"S":"N",ehArquivoRepositorio:"N"}};return new Promise(((i,a)=>{l.get().callServiceBroker("Attach.save",JSON.stringify(h)).then((a=>{var s;return i([Object.assign(Object.assign(Object.assign({},a),e),{__owner__dataunit__name__:null!==(s=this.dataUnitName)&&void 0!==s?s:t})])})).catch((t=>a(t)))}))}async edit(t){throw new Error("Method not implemented.")}async delete(t){var i={anexo:{codata:t.CODATA,tipo:t.TIPO,descricao:t.DESCRICAO}};const e=await l.get().callServiceBroker("Attach.remove",JSON.stringify(i));return Promise.resolve(e)}async getDownloadKey(t){var i,e,a;if("S"==t.EHARQUIVOREPOSITORIO){const a={config:{path:t.ARQUIVO,tipoconteudo:t.TIPOCONTEUDO}},s=await l.get().callServiceBroker("RepositorioArquivoSP.abreArquivo",JSON.stringify(a));return Promise.resolve({chave:{valor:null===(e=null===(i=null==s?void 0:s.responseBody)||void 0===i?void 0:i.chave)||void 0===e?void 0:e.valor}})}const s={anexo:{codata:t.CODATA,codemp:t.CODEMP,sequencia:t.SEQUENCIA,tipo:t.TIPO,descricao:t.DESCRICAO,tipoConteudo:t.TIPOCONTEUDO}},n=await l.get().callServiceBroker("Attach.view",JSON.stringify(s));return(null==n?void 0:n.chaveAnexo)?Promise.resolve({chave:{valor:null===(a=null==n?void 0:n.chaveAnexo)||void 0===a?void 0:a.idChaveAnexo}}):Promise.reject(new Error("File not found."))}}const I="AnexoSistemaSP.salvar",_="AnexoSistemaSP.excluir",S="AnexoSistemaSP.baixar";class k{constructor(t,i){var e;this.entityName=t,this.dataUnitName=i,this.validateFields=t=>{if(t.LINK&&t.NOMEARQUIVO)throw new Error(d.LINK_AND_FILE_AT_THE_SAME_TIME);if(!t.LINK&&!t.NOMEARQUIVO)throw new Error(d.ANY_LINK_OR_FILE_FILLED);if(!this._registerKey)throw new Error("Register key can not be null")},this.resourceID=window.resourceID||(null===(e=window.workspace)||void 0===e?void 0:e.resourceID)}set registerKey(t){this._registerKey=t}async save(t){var i,e;let{updatingFields:a}=t;a=Object.assign(Object.assign({},a),{NOMEARQUIVO:null===(i=a.NOMEARQUIVO)||void 0===i?void 0:i[0]});try{this.validateFields(a);const t=a.LINK?null:a.NOMEARQUIVO,i={serviceName:I,requestBody:{params:{resourceID:this.resourceID,description:a.DESCRICAO,fileSelect:t?1:0,keySession:null===(e=null==t?void 0:t.properties)||void 0===e?void 0:e.fileNameTmp,nameAttach:null==t?void 0:t.name,link:a.LINK,nameEntity:this.entityName,pkEntity:this._registerKey,typeAcess:a.TIPOACESSO,typeApres:a.TIPOAPRES}}},s=await l.get().callServiceBroker(I,JSON.stringify(i));return Promise.resolve([Object.assign(Object.assign(Object.assign({},s),a),{ARQUIVOOULINK:a.LINK?a.LINK:null==t?void 0:t.name,__owner__dataunit__name__:this.dataUnitName})])}catch(t){return Promise.reject(t)}}async edit(t){var i,e,a;let{updatingFields:s,record:n}=t;const o=t=>void 0!==s[t]?s[t]:n[t],r=o("NOMEARQUIVO"),h=null===(e=null===(i=s.NOMEARQUIVO)||void 0===i?void 0:i[0])||void 0===e?void 0:e.downloadURL;s=Object.assign(Object.assign({},s),{DESCRICAO:o("DESCRICAO"),LINK:o("LINK"),TIPOACESSO:o("TIPOACESSO"),TIPOAPRES:o("TIPOAPRES"),CHAVEARQUIVO:n.CHAVEARQUIVO,NOMEARQUIVO:null==r?void 0:r[0]});const d=s.LINK?null:s.NOMEARQUIVO;try{this.validateFields(s);const t={serviceName:I,requestBody:{params:{resourceID:this.resourceID,nuAttach:null==n?void 0:n.NUATTACH,description:s.DESCRICAO,fileSelect:h?1:0,keySession:null===(a=null==d?void 0:d.properties)||void 0===a?void 0:a.fileNameTmp,keyAttach:s.CHAVEARQUIVO,nameAttach:null==d?void 0:d.name,link:s.LINK,nameEntity:this.entityName,pkEntity:this._registerKey,typeAcess:s.TIPOACESSO,typeApres:s.TIPOAPRES}}},i=await l.get().callServiceBroker(I,JSON.stringify(t));return Promise.resolve([Object.assign(Object.assign(Object.assign({},i),s),{ARQUIVOOULINK:s.LINK?s.LINK:null==d?void 0:d.name,__owner__dataunit__name__:this.dataUnitName})])}catch(t){return Promise.reject(t)}}delete(t){var i;const e=(null===(i=t.NOMEARQUIVO)||void 0===i?void 0:i[0])||{},a={serviceName:_,requestBody:{paramsDelete:{keyAttach:t.CHAVEARQUIVO,nameAttach:null==e?void 0:e.name,nameEntity:t.NOMEINSTANCIA,nuAttach:t.NUATTACH,pkEntity:t.PKREGISTRO}}};return new Promise(((t,i)=>{l.get().callServiceBroker(_,JSON.stringify(a)).then((i=>t(i))).catch((t=>i(t)))}))}getDownloadKey(t){var i;const e=(null===(i=t.NOMEARQUIVO)||void 0===i?void 0:i[0])||{},a={serviceName:S,requestBody:{paramsDown:{nameAttach:null==e?void 0:e.name,nameEntity:t.NOMEINSTANCIA,nuAttach:t.NUATTACH,pkEntity:t.PKREGISTRO,keyAttach:t.CHAVEARQUIVO}}};return new Promise(((t,i)=>{l.get().callServiceBroker(S,JSON.stringify(a)).then((i=>t(i))).catch((t=>i(t)))}))}}class y{constructor(t,i){this.entityName=t,this.getMessage=i,this._application=a.getContextValue("__SNK__APPLICATION__")}initLoaders(t,i,e){this.loader||(this.loader=t.dataLoader),t.dataLoader=(t,i)=>this.dataLoader(t,i),t.saveLoader=(t,a)=>this.saveLoader(a,i).then((t=>(t.length&&e(),t))),t.removeLoader=(t,a)=>this.removeLoader(t,a,i).then((t=>(t.length&&e(),t)))}metadataLoader(t){throw new Error("Method not implemented.")}dataLoader(t,i){return new Promise((e=>{this.loader(t,i).then((t=>{const i=((null==t?void 0:t.records)||[]).map((t=>{let i;return t.LINK||(i=[{name:t.NOMEARQUIVO}]),Object.assign(Object.assign({},t),{ARQUIVOOULINK:t.LINK?t.LINK:t.NOMEARQUIVO,NOMEARQUIVO:i})}));e(Object.assign(Object.assign({},t),{records:i}))}))}))}saveLoader(t,i){return new Promise((e=>{var a;const s=Array.isArray(t)?t[0]:{};((null===(a=null==s?void 0:s.record)||void 0===a?void 0:a.NUATTACH)>=0?i.edit.bind(i):i.save.bind(i))(s).then((t=>{e(t)})).catch((t=>t.message===d.LINK_AND_FILE_AT_THE_SAME_TIME?(this._application.alert(this.getMessage("snkAttach.alertValidation.fileAndLinkAtTheSameTime.title"),this.getMessage("snkAttach.alertValidation.fileAndLinkAtTheSameTime.message")),e([])):t.message===d.ANY_LINK_OR_FILE_FILLED?(this._application.alert(this.getMessage("snkAttach.alertValidation.anyLinkOrFileFilled.title"),this.getMessage("snkAttach.alertValidation.anyLinkOrFileFilled.message")),e([])):t.message?(this._application.error(t.title||t.name,t.message),e([])):void e([])))}))}removeLoader(t,i,e){return new Promise((a=>{const{records:s}=t.getSelectionInfo(),n=s[0];e.delete(n).then((()=>(c.removeRecords(t,[n]),a(i))))}))}getFilters(t){return[{name:"AttachmentsByPK",expression:"this.PKREGISTRO = :PKREGISTRO",params:[{name:"PKREGISTRO",dataType:s.TEXT,value:`${t}_${this.entityName}`}]}]}getInterceptions(t,i,e){return new Promise((a=>i.type===n.EDITION_CANCELED?t.isDirty()?this._application.confirm(this.getMessage("snkAttach.cancelConfirmation.title"),this.getMessage("snkAttach.cancelConfirmation.message")).then((t=>t?(e.goToView(A.GRID),a(i)):a(void 0))):a(i):i.type===n.DATA_SAVED?(t.loadData(),a(i)):void a(i)))}}const b=a.getContextValue("__SNK__APPLICATION__"),f=t=>{var i,e;return null===(e=null===(i=null==b?void 0:b.messagesBuilder)||void 0===i?void 0:i.getMessage)||void 0===e?void 0:e.call(i,t,null)},E={grid:{columns:[{name:"CODATA",orderIndex:0,width:0},{name:"DESCRICAO",orderIndex:1,width:0},{name:"ARQUIVO",orderIndex:2,width:0},{name:"DTALTER",orderIndex:3,width:0},{name:"USUARIO",orderIndex:4,width:0}]},form:{emptyConfig:!1,fields:[{name:"DESCRICAO",label:f("snkAttach.attachMetadata.lblDescription"),visible:!0,readOnly:!1,required:!0},{name:"CAMINHO_ARQUIVO",label:f("snkAttach.attachMetadata.lblFile"),visible:!0,readOnly:!1,required:!0}]}},N={name:"Attach",label:"Attach List",fields:[{name:"CODATA",label:f("snkAttach.attachMetadata.lblCode"),dataType:s.TEXT},{name:"DESCRICAO",label:f("snkAttach.attachMetadata.lblDescription"),dataType:s.TEXT,readOnly:!1},{name:"ARQUIVO",label:f("snkAttach.attachMetadata.lblFileOrLink"),dataType:s.TEXT},{name:"USUARIO",label:f("snkAttach.attachMetadata.lblUser"),dataType:s.TEXT},{name:"DTALTER",label:f("snkAttach.attachMetadata.lblDate"),dataType:s.TEXT},{name:"CAMINHO_ARQUIVO",label:f("snkAttach.attachMetadata.lblFileUpload"),dataType:s.OBJECT,userInterface:o.FILE,readOnly:!1,required:!0,visible:!0,properties:{subTitle:f("snkAttach.attachMetadata.lblSubTitle"),MAX_FILES:1,STORAGESTRATEGY:"SESSION",INTERNAL_FILENAME:"Attach.upload"}}]};class g{constructor(t){this.getMessage=t,this._records=[],this._application=a.getContextValue("__SNK__APPLICATION__")}initLoaders(t,i,e){t.metadataLoader=t=>this.metadataLoader(t),t.dataLoader=(t,i)=>this.dataLoader(t,i),t.saveLoader=(t,a)=>this.saveLoader(a,i).then((t=>(t.length&&e(),t))),t.removeLoader=(t,a)=>this.removeLoader(t,a,i).then((t=>(t.length&&e(),t)))}metadataLoader(t){return Promise.resolve(N)}async dataLoader(t,i){if(!i.source)return Promise.resolve({records:this._records});if(!Number.isNaN(Number(i.source))){const t={criteria:{codata:i.source,tipoAnexo:"N"}},e=await this._application.getDataFetcher(),{anexos:{anexo:a=[]}}=await e.callServiceBroker("Attach.load",JSON.stringify(t)),s=[];a.forEach((t=>{s.push(Object.assign({__record__id__:r.generateUUID(),CAMINHO_ARQUIVO:[{name:null==t?void 0:t.ARQUIVO}]},t))})),this._records=s}return u(this._records,t,i)}saveLoader(t,i){return new Promise((e=>{const a=Array.isArray(t)?t[0]:{};i.save(a).then(e).catch((t=>t.message===d.DESCRIPTION_CANNOT_BE_CHANGED?(this._application.alert(this.getMessage("snkAttach.alertValidation.descriptionCannotBeChanged.title"),this.getMessage("snkAttach.alertValidation.descriptionCannotBeChanged.message")),e([])):t.message===d.LINK_AND_FILE_AT_THE_SAME_TIME?(this._application.alert(this.getMessage("snkAttach.alertValidation.fileAndLinkAtTheSameTime.title"),this.getMessage("snkAttach.alertValidation.fileAndLinkAtTheSameTime.message")),e([])):t.message===d.ANY_LINK_OR_FILE_FILLED?(this._application.alert(this.getMessage("snkAttach.alertValidation.anyLinkOrFileFilled.title"),this.getMessage("snkAttach.alertValidation.anyLinkOrFileFilled.message")),e([])):t.message?(this._application.error(t.title||t.name,t.message),e([])):void e([])))}))}removeLoader(t,i,e){return new Promise((a=>{t.getSelectionInfo().records.forEach((async t=>{this._application.hasAccess(O.REMOVE).then((async s=>{s&&(await e.delete(t),a(i))}))}))}))}getFilters(){throw new Error("Method not implemented.")}getInterceptions(t,i,e){return new Promise((a=>i.type===n.EDITION_CANCELED?t.isDirty()?this._application.confirm(this.getMessage("snkAttach.cancelConfirmation.title"),this.getMessage("snkAttach.cancelConfirmation.message")).then((t=>t?(e.goToView(A.GRID),a(i)):a(void 0))):a(i):i.type===n.DATA_SAVED?(t.loadData(),a(i)):void a(i)))}}const C=a.getContextValue("__SNK__APPLICATION__"),P=t=>{var i,e;return null===(e=null===(i=null==C?void 0:C.messagesBuilder)||void 0===i?void 0:i.getMessage)||void 0===e?void 0:e.call(i,t,null)},T={DOWNLOAD:{hint:P("snkAttach.taskbar.titleDownload"),name:"DOWNLOAD",iconName:"file-download"},LINK:{hint:P("snkAttach.taskbar.titleLink"),name:"LINK",iconName:"launch"}},L=()=>{const t=[p.REMOVE,"DOWNLOAD","LINK"];return{getButtons:(t,i,e)=>{const a=e.indexOf(p.REFRESH);if((null==i?void 0:i.insertionMode)||(null==i?void 0:i.isDirty))return e.reverse();-1!==a&&e.splice(a,1);const{selectedRecord:s}=i||{},n=(null==s?void 0:s.LINK)?T.LINK:T.DOWNLOAD;e.splice(e.indexOf(p.DIVIDER)+1,0,p.REMOVE,n,p.DIVIDER);const o=[p.CLONE,p.DATA_EXPORTER],r=Array.from(new Set(e.filter((t=>!o.includes(t)))));return r.splice(r.indexOf(n)+1,0,p.DIVIDER),r},isEnabled:(i,e,a)=>{const s=void 0!==(null==e?void 0:e.selectedRecord);return!(t.includes(a)&&!s)}}},R={grid:{columns:[{name:"ARQUIVOOULINK",orderIndex:0,width:0},{name:"DESCRICAO",orderIndex:1,width:0},{name:"DHCAD",orderIndex:2,width:0},{name:"DHALTER",orderIndex:3,width:0},{name:"TIPOAPRES",orderIndex:4,width:0},{name:"TIPOACESSO",orderIndex:5,width:0},{name:"CODUSU",orderIndex:6,width:0},{name:"CODUSUALT",orderIndex:7,width:0}]},form:{emptyConfig:!1,fields:[{name:"DESCRICAO",required:!0},{name:"TIPOAPRES",required:!0},{name:"TIPOACESSO",required:!0},{name:"LINK"},{name:"NOMEARQUIVO"}]}},x=class{constructor(e){t(this,e),this.back=i(this,"back",7),this.handleTaskbarClick=async({detail:t})=>{if(["DOWNLOAD","LINK"].includes(t))return this.downloadAttachment(this._currentDataUnit.getSelectedRecord());"Attach"===this.fetcherType&&["SAVE"].includes(t)&&this._currentDataUnit.isDirty()&&await this._currentDataUnit.setFieldValue("REGISTER_KEY",this.registerKey)},this.handleBack=()=>{this._currentDataUnit.cancelEdition().then((t=>{t&&this.back.emit()}))},this.handleFinish=()=>{if(!this._currentDataUnit.isDirty())return this.back.emit();this._currentDataUnit.saveData().then((()=>{this.showFinishedToast(),this.back.emit()}))},this.fetcherType=void 0,this.fetcher=void 0,this.dataUnit=void 0,this.dataUnitBuilder=void 0,this.registerKey=void 0,this.entityName=void 0,this.messagesBuilder=void 0,this._currentFetcher=void 0,this._currentDataUnit=void 0,this.crudConfig=void 0}async registerKeyWatcher(t,i){var e;null==this._currentDataUnit&&this.loadAttachmentDataUnit(),i!==t&&(this._currentFetcher instanceof k&&(this._currentFetcher.registerKey=t),await(null===(e=this._currentDataUnit)||void 0===e?void 0:e.loadData()))}getAnexoSistemaFetcherInstance(){var t;const i=new k(this.entityName,null===(t=this._currentDataUnit)||void 0===t?void 0:t.name);return i.registerKey=this.registerKey,i}async initAttach(){var t,i,e,a,s;if(this.fetcherType||this.registerKey){if(this.fetcherType||(this.fetcherType="AnexoSistema"),this.returnToGridMode(),"AnexoSistema"===this.fetcherType)return this._currentFetcher=this.getAnexoSistemaFetcherInstance(),null===(t=this._currentDataUnitBuilder)||void 0===t||t.initLoaders(this._currentDataUnit,this._currentFetcher,this.returnToGridMode.bind(this)),void await(null===(i=this._currentDataUnit)||void 0===i?void 0:i.loadData());if("Attach"===this.fetcherType&&(null===(e=this.registerKey)||void 0===e?void 0:e.split("_").length)>1)return;await(null===(a=this._currentDataUnit)||void 0===a?void 0:a.loadMetadata()),await(null===(s=this._currentDataUnit)||void 0===s?void 0:s.loadData(void 0,void 0,!0,this.registerKey))}}getMessage(t,i){if(this.messagesBuilder)return this.messagesBuilder.getMessage(t,i)}showFinishedToast(){this._application.info(this.getMessage("snkAttach.finishedMessage"),{iconName:"check"})}downloadAttachment(t){if(!t)throw new Error("Nenhum registro selecionado");t.LINK?window.open(`${t.LINK}`):this._currentFetcher.getDownloadKey(t).then((({chave:i})=>{var e;let a=!1;(null===(e=null==t?void 0:t.ARQUIVO)||void 0===e?void 0:e.endsWith(".pdf"))||(a=!0),window.open(`/mge/visualizadorArquivos.mge?chaveArquivo=${i.valor}${a?"&forcarDownload=S":""}`)}))}returnToGridMode(){var t;null===(t=this._currentDataUnit)||void 0===t||t.clearSelection(),this._crudElement&&this._crudElement.goToView(A.GRID)}async loadAttachmentDataUnit(){try{switch(this.fetcherType){case"AnexoSistema":await this.loadAnexoSistema();break;case"Attach":await this.loadAttach();break;default:this._currentFetcher=this.fetcher,this._currentDataUnit=this.dataUnit,this._currentDataUnitBuilder=this.dataUnitBuilder}}catch(t){throw new Error("There was an error while creating the data unit")}}async loadAnexoSistema(){var t,i;this._currentDataUnit=(new m).getDataUnit("AnexoSistema","br.com.sankhya.core.v3.anexoSistema"),this._currentFetcher=this.getAnexoSistemaFetcherInstance(),this._currentDataUnit.metadata||(await(null===(t=this._currentDataUnit)||void 0===t?void 0:t.loadMetadata()),this.crudConfig=Object.assign({},R)),this.initDataUnitLoaders(),this._currentDataUnit.addFilterProvider({getFilter:()=>this._currentDataUnitBuilder.getFilters(this.registerKey)}),this._currentDataUnit.addInterceptor({interceptAction:t=>this._currentDataUnitBuilder.getInterceptions(this._currentDataUnit,t,this._crudElement)}),await(null===(i=this._currentDataUnit)||void 0===i?void 0:i.loadData()),this.disableEditFieldsNotInForm()}async loadAttach(){var t,i;this._currentFetcher=new w,this._currentDataUnit=new h(v.IN_MEMORY_DATA_UNIT_NAME),this.initDataUnitLoaders(),this._currentDataUnit.addInterceptor({interceptAction:t=>{var i;return t.type===n.METADATA_LOADED&&(this.crudConfig=Object.assign({},E),null===(i=this._crudElement)||void 0===i||i.updateConfig()),this._currentDataUnitBuilder.getInterceptions(this._currentDataUnit,t,this._crudElement)}}),this._currentDataUnit.metadata||(await(null===(t=this._currentDataUnit)||void 0===t?void 0:t.loadMetadata()),this.crudConfig=Object.assign({},E),await(null===(i=this._currentDataUnit)||void 0===i?void 0:i.loadData(void 0,void 0,!0,this.registerKey)),this.disableEditFieldsNotInForm())}initDataUnitLoaders(){var t,i;"AnexoSistema"===this.fetcherType&&(this._currentFetcher=this.getAnexoSistemaFetcherInstance(),this._currentDataUnitBuilder=new y(this.entityName,this.getMessage.bind(this)),null===(t=this._currentDataUnitBuilder)||void 0===t||t.initLoaders(this._currentDataUnit,this._currentFetcher,this.returnToGridMode.bind(this))),"Attach"===this.fetcherType&&(this._currentFetcher=new w,this._currentDataUnitBuilder=new g(this.getMessage.bind(this)),null===(i=this._currentDataUnitBuilder)||void 0===i||i.initLoaders(this._currentDataUnit,this._currentFetcher,(async()=>{this.returnToGridMode(),await this._currentDataUnit.loadData(void 0,void 0,!0,this.registerKey)})))}disableEditFieldsNotInForm(){var t;null===(t=this.crudConfig)||void 0===t||t.grid.columns.forEach((t=>{var i;const e=t.name;(null===(i=this.crudConfig)||void 0===i?void 0:i.form.fields.some((t=>t.name===e)))||this._currentDataUnit.disableField(e)}))}async componentWillLoad(){this._application=a.getContextValue("__SNK__APPLICATION__"),await this.initAttach()}componentWillRender(){this.fetcherType||(this.fetcherType="AnexoSistema"),null==this._currentDataUnit&&this.loadAttachmentDataUnit()}async handleOnDataStateChange({detail:t}){"Attach"===this.fetcherType&&(t.insertionMode?this._currentDataUnit.enableField("DESCRICAO"):this._currentDataUnit.disableField("DESCRICAO"),await this._currentDataUnit.loadMetadata())}render(){var t,i;return this._currentDataUnit?e("main",{class:"snk-attach__main"},e("header",{class:"snk-attach__header"},e("snk-simple-bar",{onExit:this.handleBack,messagesBuilder:this.messagesBuilder},e("div",{slot:"rightSlot"},e("ez-button",{class:"ez-button--primary",label:this.getMessage("snkAttach.finish"),onClick:this.handleFinish})))),e("div",{class:"snk-attach__crud-section ez-size-height--full ez-size-width--full ez-flex ez-flex--column"},e("div",{class:"ez-box__container"},e("snk-simple-crud",{ref:t=>this._crudElement=t,dataUnit:this._currentDataUnit,taskbarManager:L(),gridConfig:null===(t=this.crudConfig)||void 0===t?void 0:t.grid,formConfig:null===(i=this.crudConfig)||void 0===i?void 0:i.form,useCancelConfirm:!1,onActionClick:this.handleTaskbarClick,messagesBuilder:this.messagesBuilder,onDataStateChange:this.handleOnDataStateChange.bind(this)},e("div",{slot:"snkSimpleCrudHeader"},e("div",{class:"ez-flex ez-flex--column"},e("span",{class:"ez-title--primary ez-text ez-text--large ez-text--bold ez-padding-bottom--medium"},this.getMessage("snkAttach.title")),e("span",{class:"ez-text ez-text--medium ez-text--secondary ez-padding-bottom--medium"},this.getMessage("snkAttach.description")))))))):null}static get watchers(){return{registerKey:["registerKeyWatcher"]}}};x.style=".snk-attach__header.sc-snk-attach,.snk-attach__crud-section.sc-snk-attach{padding:0 var(--space--lg)}.snk-attach__file-info.sc-snk-attach{padding:var(--space--small);max-width:50%}.snk-attach__main.sc-snk-attach{height:85%}.ez-box__container.sc-snk-attach{height:100%}";export{x as snk_attach}