@sankhyalabs/sankhyablocks 8.16.0-rc.27 → 8.16.0-rc.29

Sign up to get free protection for your applications and to get access to all the features.
Files changed (732) hide show
  1. package/dist/cjs/AuthorizationConfig-79ffae4b.js.gz +0 -0
  2. package/dist/cjs/{ConfigStorage-f079f5fd.js → ConfigStorage-9b965af9.js} +1 -1
  3. package/dist/cjs/ConfigStorage-9b965af9.js.gz +0 -0
  4. package/dist/cjs/{ContinuousInsertUtils-3f27ea94.js → ContinuousInsertUtils-42636ac1.js} +1 -1
  5. package/dist/cjs/ContinuousInsertUtils-42636ac1.js.gz +0 -0
  6. package/dist/cjs/DataFetcher-e059eb72.js.gz +0 -0
  7. package/dist/cjs/GetSelectedRecordsIDsInfo-bd50caf1.js.gz +0 -0
  8. package/dist/cjs/ISave-e91b70a7.js.gz +0 -0
  9. package/dist/cjs/ParamType-90b440a0.js.gz +0 -0
  10. package/dist/cjs/PersonalizedFilterUtils-0184ffbb.js.gz +0 -0
  11. package/dist/cjs/PrintUtils-bcaeb82f.js.gz +0 -0
  12. package/dist/cjs/ResourceIDUtils-5ff86aa7.js.gz +0 -0
  13. package/dist/cjs/{SnkFormConfigManager-63369164.js → SnkFormConfigManager-51caf3d0.js} +2 -2
  14. package/dist/cjs/SnkFormConfigManager-51caf3d0.js.gz +0 -0
  15. package/dist/cjs/SnkMessageBuilder-bae64d0d.js.gz +0 -0
  16. package/dist/cjs/Sortable-fb1c4cbb.js.gz +0 -0
  17. package/dist/cjs/{auth-fetcher-4f853233.js → auth-fetcher-a78242d1.js} +1 -1
  18. package/dist/cjs/auth-fetcher-a78242d1.js.gz +0 -0
  19. package/dist/cjs/constants-35ddd366.js.gz +0 -0
  20. package/dist/cjs/dataunit-fetcher-228016f4.js.gz +0 -0
  21. package/dist/cjs/field-search-68e34bf4.js.gz +0 -0
  22. package/dist/cjs/filter-item-type.enum-a7ffdaa6.js.gz +0 -0
  23. package/dist/cjs/filter-type.enum-b14ce507.js.gz +0 -0
  24. package/dist/cjs/filterNumberVariation-d65332da.js.gz +0 -0
  25. package/dist/cjs/{form-config-fetcher-39397ac5.js → form-config-fetcher-91fba2b1.js} +37 -0
  26. package/dist/cjs/form-config-fetcher-91fba2b1.js.gz +0 -0
  27. package/dist/cjs/index-102ba62d.js.gz +0 -0
  28. package/dist/cjs/index-1dfc7a6e.js.gz +0 -0
  29. package/dist/cjs/index-8d94b7e0.js.gz +0 -0
  30. package/dist/cjs/index-c5771aba.js.gz +0 -0
  31. package/dist/cjs/index-f9e81701.js +4 -4
  32. package/dist/cjs/index-f9e81701.js.gz +0 -0
  33. package/dist/cjs/index.cjs.js.gz +0 -0
  34. package/dist/cjs/loader.cjs.js +1 -1
  35. package/dist/cjs/loader.cjs.js.gz +0 -0
  36. package/dist/cjs/pesquisa-fetcher-2ec4811b.js.gz +0 -0
  37. package/dist/cjs/presentationMode-52ec3bdd.js.gz +0 -0
  38. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  39. package/dist/cjs/sankhyablocks.cjs.js.gz +0 -0
  40. package/dist/cjs/{snk-actions-button_4.cjs.entry.js → snk-actions-button_5.cjs.entry.js} +90 -2
  41. package/dist/cjs/snk-actions-button_5.cjs.entry.js.gz +0 -0
  42. package/dist/cjs/snk-actions-form.cjs.entry.js.gz +0 -0
  43. package/dist/cjs/snk-application.cjs.entry.js +3 -3
  44. package/dist/cjs/snk-application.cjs.entry.js.gz +0 -0
  45. package/dist/cjs/snk-attach.cjs.entry.js +2 -2
  46. package/dist/cjs/snk-attach.cjs.entry.js.gz +0 -0
  47. package/dist/cjs/snk-client-confirm.cjs.entry.js.gz +0 -0
  48. package/dist/cjs/snk-config-options_3.cjs.entry.js +3 -3
  49. package/dist/cjs/snk-config-options_3.cjs.entry.js.gz +0 -0
  50. package/dist/cjs/snk-configurator.cjs.entry.js.gz +0 -0
  51. package/dist/cjs/snk-crud.cjs.entry.js +2 -2
  52. package/dist/cjs/snk-crud.cjs.entry.js.gz +0 -0
  53. package/dist/cjs/snk-custom-slot-elements.cjs.entry.js.gz +0 -0
  54. package/dist/cjs/snk-data-exporter.cjs.entry.js +1 -1
  55. package/dist/cjs/snk-data-exporter.cjs.entry.js.gz +0 -0
  56. package/dist/cjs/snk-data-unit-3d9b6ed4.js.gz +0 -0
  57. package/dist/cjs/snk-data-unit.cjs.entry.js.gz +0 -0
  58. package/dist/cjs/snk-detail-view.cjs.entry.js +4 -4
  59. package/dist/cjs/snk-detail-view.cjs.entry.js.gz +0 -0
  60. package/dist/cjs/snk-entity-list.cjs.entry.js.gz +0 -0
  61. package/dist/cjs/snk-exporter-email-sender.cjs.entry.js.gz +0 -0
  62. package/dist/cjs/snk-expression-group_2.cjs.entry.js.gz +0 -0
  63. package/dist/cjs/snk-field-config.cjs.entry.js.gz +0 -0
  64. package/dist/cjs/snk-filter-advanced-mode_2.cjs.entry.js.gz +0 -0
  65. package/dist/cjs/snk-filter-bar_4.cjs.entry.js +2 -2
  66. package/dist/cjs/snk-filter-bar_4.cjs.entry.js.gz +0 -0
  67. package/dist/cjs/snk-filter-binary-select.cjs.entry.js.gz +0 -0
  68. package/dist/cjs/snk-filter-checkbox-list.cjs.entry.js.gz +0 -0
  69. package/dist/cjs/snk-filter-detail.cjs.entry.js.gz +0 -0
  70. package/dist/cjs/snk-filter-field-search_2.cjs.entry.js.gz +0 -0
  71. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +2 -2
  72. package/dist/cjs/snk-filter-modal-item.cjs.entry.js.gz +0 -0
  73. package/dist/cjs/snk-filter-multi-select.cjs.entry.js.gz +0 -0
  74. package/dist/cjs/snk-filter-number.cjs.entry.js.gz +0 -0
  75. package/dist/cjs/snk-filter-period.cjs.entry.js.gz +0 -0
  76. package/dist/cjs/snk-filter-search.cjs.entry.js.gz +0 -0
  77. package/dist/cjs/snk-filter-text.cjs.entry.js.gz +0 -0
  78. package/dist/cjs/snk-form-summary.cjs.entry.js.gz +0 -0
  79. package/dist/cjs/snk-form-view.cjs.entry.js.gz +0 -0
  80. package/dist/cjs/snk-grid.cjs.entry.js +3 -3
  81. package/dist/cjs/snk-grid.cjs.entry.js.gz +0 -0
  82. package/dist/cjs/{snk-guides-viewer-dcd05129.js → snk-guides-viewer-421555af.js} +2 -2
  83. package/dist/cjs/snk-guides-viewer-421555af.js.gz +0 -0
  84. package/dist/cjs/snk-guides-viewer.cjs.entry.js +4 -4
  85. package/dist/cjs/snk-guides-viewer.cjs.entry.js.gz +0 -0
  86. package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js.gz +0 -0
  87. package/dist/cjs/snk-personalized-filter.cjs.entry.js +2 -2
  88. package/dist/cjs/snk-personalized-filter.cjs.entry.js.gz +0 -0
  89. package/dist/cjs/snk-pesquisa.cjs.entry.js.gz +0 -0
  90. package/dist/cjs/snk-print-selector.cjs.entry.js.gz +0 -0
  91. package/dist/cjs/snk-simple-bar.cjs.entry.js.gz +0 -0
  92. package/dist/cjs/snk-simple-crud.cjs.entry.js +17 -24
  93. package/dist/cjs/snk-simple-crud.cjs.entry.js.gz +0 -0
  94. package/dist/cjs/snk-tab-config.cjs.entry.js.gz +0 -0
  95. package/dist/cjs/snk-taskbar.cjs.entry.js.gz +0 -0
  96. package/dist/cjs/taskbar-elements-9ad1f9c0.js.gz +0 -0
  97. package/dist/cjs/teste-pesquisa.cjs.entry.js.gz +0 -0
  98. package/dist/collection/collection-manifest.json +1 -0
  99. package/dist/collection/components/snk-actions-button/actions/enum/ActionsType.js.gz +0 -0
  100. package/dist/collection/components/snk-actions-button/actions/enum/ParamType.js.gz +0 -0
  101. package/dist/collection/components/snk-actions-button/actions/enum/RefreshType.js.gz +0 -0
  102. package/dist/collection/components/snk-actions-button/actions/executor/java.executor.js.gz +0 -0
  103. package/dist/collection/components/snk-actions-button/actions/executor/javascript.executor.js.gz +0 -0
  104. package/dist/collection/components/snk-actions-button/actions/executor/launch-screen.executor.js.gz +0 -0
  105. package/dist/collection/components/snk-actions-button/actions/executor/procedure.executor.js.gz +0 -0
  106. package/dist/collection/components/snk-actions-button/actions/factory/executor.factory.js.gz +0 -0
  107. package/dist/collection/components/snk-actions-button/actions/index.js.gz +0 -0
  108. package/dist/collection/components/snk-actions-button/actions/interfaces/IAction.js.gz +0 -0
  109. package/dist/collection/components/snk-actions-button/actions/interfaces/IExecSource.js.gz +0 -0
  110. package/dist/collection/components/snk-actions-button/actions/interfaces/IExecuteActions.js.gz +0 -0
  111. package/dist/collection/components/snk-actions-button/actions/interfaces/IExecuteActionsProps.js.gz +0 -0
  112. package/dist/collection/components/snk-actions-button/actions/interfaces/IResultParam.js.gz +0 -0
  113. package/dist/collection/components/snk-actions-button/clientEvent/index.js.gz +0 -0
  114. package/dist/collection/components/snk-actions-button/clientEvent/interfaces/IClientEventConfirm.js.gz +0 -0
  115. package/dist/collection/components/snk-actions-button/interfaces/index.js.gz +0 -0
  116. package/dist/collection/components/snk-actions-button/snk-actions-button.css.gz +0 -0
  117. package/dist/collection/components/snk-actions-button/snk-actions-button.js.gz +0 -0
  118. package/dist/collection/components/snk-actions-button/subcomponents/snk-actions-form.js.gz +0 -0
  119. package/dist/collection/components/snk-actions-button/subcomponents/snk-client-confirm.js.gz +0 -0
  120. package/dist/collection/components/snk-application/__mocks__/snk-application.js.gz +0 -0
  121. package/dist/collection/components/snk-application/errorhandler/snk-error-handler.js.gz +0 -0
  122. package/dist/collection/components/snk-application/request-listener/DebouncedRequestListener.js.gz +0 -0
  123. package/dist/collection/components/snk-application/request-listener/RequestListenerFactory.js.gz +0 -0
  124. package/dist/collection/components/snk-application/request-listener/RequestListenerLoadingBar.js.gz +0 -0
  125. package/dist/collection/components/snk-application/snk-application.css.gz +0 -0
  126. package/dist/collection/components/snk-application/snk-application.js.gz +0 -0
  127. package/dist/collection/components/snk-attach/interfaces/ICrudConfig.js.gz +0 -0
  128. package/dist/collection/components/snk-attach/interfaces/TFetcherType.js.gz +0 -0
  129. package/dist/collection/components/snk-attach/interfaces/index.js.gz +0 -0
  130. package/dist/collection/components/snk-attach/snk-attach.css.gz +0 -0
  131. package/dist/collection/components/snk-attach/snk-attach.js.gz +0 -0
  132. package/dist/collection/components/snk-attach/structure/builder/anexo-sistema-crud-config.builder.js.gz +0 -0
  133. package/dist/collection/components/snk-attach/structure/builder/attach-crud-config.builder.js.gz +0 -0
  134. package/dist/collection/components/snk-attach/structure/builder/taskbar-builder.js.gz +0 -0
  135. package/dist/collection/components/snk-attach/structure/fetcher/facade/fetcher.facade.js.gz +0 -0
  136. package/dist/collection/components/snk-attach/structure/fetcher/factory/anexo-sistema-data-unit.factory.js.gz +0 -0
  137. package/dist/collection/components/snk-attach/structure/fetcher/factory/attach-fetcher-data-unit.factory.js.gz +0 -0
  138. package/dist/collection/components/snk-attach/structure/index.js.gz +0 -0
  139. package/dist/collection/components/snk-configurator/AuthorizationConfig.js.gz +0 -0
  140. package/dist/collection/components/snk-configurator/snk-configurator.css.gz +0 -0
  141. package/dist/collection/components/snk-configurator/snk-configurator.js.gz +0 -0
  142. package/dist/collection/components/snk-crud/interfaces/PropsCustomEditor.js.gz +0 -0
  143. package/dist/collection/components/snk-crud/interfaces/PropsCustomRender.js.gz +0 -0
  144. package/dist/collection/components/snk-crud/snk-crud.css.gz +0 -0
  145. package/dist/collection/components/snk-crud/snk-crud.js.gz +0 -0
  146. package/dist/collection/components/snk-crud/subcomponents/CardFormResizeObserver.js.gz +0 -0
  147. package/dist/collection/components/snk-crud/subcomponents/GuideBuilder.js.gz +0 -0
  148. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.css.gz +0 -0
  149. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js.gz +0 -0
  150. package/dist/collection/components/snk-crud/subcomponents/snk-form-summary.css.gz +0 -0
  151. package/dist/collection/components/snk-crud/subcomponents/snk-form-summary.js.gz +0 -0
  152. package/dist/collection/components/snk-crud/subcomponents/snk-form-view.css.gz +0 -0
  153. package/dist/collection/components/snk-crud/subcomponents/snk-form-view.js.gz +0 -0
  154. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.css.gz +0 -0
  155. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js.gz +0 -0
  156. package/dist/collection/components/snk-custom-slot-elements/snk-custom-slot-elements.css.gz +0 -0
  157. package/dist/collection/components/snk-custom-slot-elements/snk-custom-slot-elements.js.gz +0 -0
  158. package/dist/collection/components/snk-data-exporter/data/attachment.js.gz +0 -0
  159. package/dist/collection/components/snk-data-exporter/data/email.js.gz +0 -0
  160. package/dist/collection/components/snk-data-exporter/data/export-config.js.gz +0 -0
  161. package/dist/collection/components/snk-data-exporter/data/export-result.js.gz +0 -0
  162. package/dist/collection/components/snk-data-exporter/data/report.js.gz +0 -0
  163. package/dist/collection/components/snk-data-exporter/exporter-email-sender/email-info-step.js.gz +0 -0
  164. package/dist/collection/components/snk-data-exporter/exporter-email-sender/options-step.js.gz +0 -0
  165. package/dist/collection/components/snk-data-exporter/exporter-email-sender/snk-exporter-email-sender.js.gz +0 -0
  166. package/dist/collection/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.js.gz +0 -0
  167. package/dist/collection/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.js.gz +0 -0
  168. package/dist/collection/components/snk-data-exporter/interfaces/IExporterProvider.js.gz +0 -0
  169. package/dist/collection/components/snk-data-exporter/interfaces/IExporterStrategy.js.gz +0 -0
  170. package/dist/collection/components/snk-data-exporter/interfaces/IRecordID.js.gz +0 -0
  171. package/dist/collection/components/snk-data-exporter/interfaces/ISelectedID.js.gz +0 -0
  172. package/dist/collection/components/snk-data-exporter/providers/ClientSideExporterProvider.js.gz +0 -0
  173. package/dist/collection/components/snk-data-exporter/providers/ServerSideExporterProvider.js.gz +0 -0
  174. package/dist/collection/components/snk-data-exporter/snk-data-exporter.css.gz +0 -0
  175. package/dist/collection/components/snk-data-exporter/snk-data-exporter.js.gz +0 -0
  176. package/dist/collection/components/snk-data-exporter/structure/ItemBuilder.js.gz +0 -0
  177. package/dist/collection/components/snk-data-exporter/test/resources/ClientSideExporterStrategyResources.js.gz +0 -0
  178. package/dist/collection/components/snk-data-exporter/utils/ParserExport.js.gz +0 -0
  179. package/dist/collection/components/snk-data-unit/snk-data-unit.js.gz +0 -0
  180. package/dist/collection/components/snk-data-unit/test/resources/metadataMock.js.gz +0 -0
  181. package/dist/collection/components/snk-data-unit/test/resources/parentMetadataMock.js.gz +0 -0
  182. package/dist/collection/components/snk-entity-list/snk-entity-list.css.gz +0 -0
  183. package/dist/collection/components/snk-entity-list/snk-entity-list.js.gz +0 -0
  184. package/dist/collection/components/snk-filter-bar/filter-item/dataunitfilter/data-unit-filter-builder.js.gz +0 -0
  185. package/dist/collection/components/snk-filter-bar/filter-item/editors/enum/filterNumberVariation.js.gz +0 -0
  186. package/dist/collection/components/snk-filter-bar/filter-item/editors/enum/presentationMode.js.gz +0 -0
  187. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.js.gz +0 -0
  188. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-checkbox-list.js.gz +0 -0
  189. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.js.gz +0 -0
  190. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js.gz +0 -0
  191. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js.gz +0 -0
  192. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-search.js.gz +0 -0
  193. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-text.js.gz +0 -0
  194. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.css.gz +0 -0
  195. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.js.gz +0 -0
  196. package/dist/collection/components/snk-filter-bar/filter-item/filter-item-type-mask.enum.js.gz +0 -0
  197. package/dist/collection/components/snk-filter-bar/filter-item/filter-item-type.enum.js.gz +0 -0
  198. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js.gz +0 -0
  199. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js.gz +0 -0
  200. package/dist/collection/components/snk-filter-bar/filter-list/snk-filter-list.js.gz +0 -0
  201. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.css.gz +0 -0
  202. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js.gz +0 -0
  203. package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.css.gz +0 -0
  204. package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.js.gz +0 -0
  205. package/dist/collection/components/snk-filter-bar/snk-filter-bar.css.gz +0 -0
  206. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js.gz +0 -0
  207. package/dist/collection/components/snk-filter-bar/types/custom-element-filter.js.gz +0 -0
  208. package/dist/collection/components/snk-filter-bar/types/filter-type.enum.js.gz +0 -0
  209. package/dist/collection/components/snk-filter-bar/utils/SnkFilterModalFactory.js.gz +0 -0
  210. package/dist/collection/components/snk-filter-bar/utils/filters-mock.js.gz +0 -0
  211. package/dist/collection/components/snk-filter-field-search/interfaces/index.js.gz +0 -0
  212. package/dist/collection/components/snk-filter-field-search/snk-filter-field-search.css.gz +0 -0
  213. package/dist/collection/components/snk-filter-field-search/snk-filter-field-search.js.gz +0 -0
  214. package/dist/collection/components/snk-filter-field-search/subcomponents/index.js.gz +0 -0
  215. package/dist/collection/components/snk-filter-field-search/subcomponents/list-item.js.gz +0 -0
  216. package/dist/collection/components/snk-form/snk-form.css.gz +0 -0
  217. package/dist/collection/components/snk-form/snk-form.js.gz +0 -0
  218. package/dist/collection/components/snk-form-config/SnkFormConfigManager.js.gz +0 -0
  219. package/dist/collection/components/snk-form-config/snk-form-config.css.gz +0 -0
  220. package/dist/collection/components/snk-form-config/snk-form-config.js.gz +0 -0
  221. package/dist/collection/components/snk-form-config/subcomponents/snk-config-options/snk-config-options.css.gz +0 -0
  222. package/dist/collection/components/snk-form-config/subcomponents/snk-config-options/snk-config-options.js.gz +0 -0
  223. package/dist/collection/components/snk-form-config/subcomponents/snk-field-config/snk-field-config.css.gz +0 -0
  224. package/dist/collection/components/snk-form-config/subcomponents/snk-field-config/snk-field-config.js.gz +0 -0
  225. package/dist/collection/components/snk-form-config/subcomponents/snk-tab-config/snk-tab-config.css.gz +0 -0
  226. package/dist/collection/components/snk-form-config/subcomponents/snk-tab-config/snk-tab-config.js.gz +0 -0
  227. package/dist/collection/components/snk-grid/filtercolumn/SnkMultiSelectionListDataSource.js.gz +0 -0
  228. package/dist/collection/components/snk-grid/snk-grid.css.gz +0 -0
  229. package/dist/collection/components/snk-grid/snk-grid.js.gz +0 -0
  230. package/dist/collection/components/snk-grid-config/snk-grid-config.css.gz +0 -0
  231. package/dist/collection/components/snk-grid-config/snk-grid-config.js.gz +0 -0
  232. package/dist/collection/components/snk-grid-config/snk-select-box/snk-select-box.css.gz +0 -0
  233. package/dist/collection/components/snk-grid-config/snk-select-box/snk-select-box.js.gz +0 -0
  234. package/dist/collection/components/snk-personalized-filter/interfaces/IExpressionGroup.js.gz +0 -0
  235. package/dist/collection/components/snk-personalized-filter/interfaces/IExpressionItem.js.gz +0 -0
  236. package/dist/collection/components/snk-personalized-filter/interfaces/IParameter.js.gz +0 -0
  237. package/dist/collection/components/snk-personalized-filter/interfaces/IPersonalizedFilter.js.gz +0 -0
  238. package/dist/collection/components/snk-personalized-filter/interfaces/ISystemFilterConfig.js.gz +0 -0
  239. package/dist/collection/components/snk-personalized-filter/interfaces/IUserFilterConfig.js.gz +0 -0
  240. package/dist/collection/components/snk-personalized-filter/interfaces/index.js.gz +0 -0
  241. package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.css.gz +0 -0
  242. package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js.gz +0 -0
  243. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.css.gz +0 -0
  244. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.js.gz +0 -0
  245. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/filter-operands/filter-operands.js.gz +0 -0
  246. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.css.gz +0 -0
  247. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.js.gz +0 -0
  248. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-advanced-mode/snk-filter-advanced-mode.css.gz +0 -0
  249. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-advanced-mode/snk-filter-advanced-mode.js.gz +0 -0
  250. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-assistent-mode/snk-filter-assistent-mode.css.gz +0 -0
  251. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-assistent-mode/snk-filter-assistent-mode.js.gz +0 -0
  252. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/snk-filter-param-config.css.gz +0 -0
  253. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/snk-filter-param-config.js.gz +0 -0
  254. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/utils/PersonalizedFilterUtils.js.gz +0 -0
  255. package/dist/collection/components/snk-pesquisa/snk-pesquisa.css.gz +0 -0
  256. package/dist/collection/components/snk-pesquisa/snk-pesquisa.js.gz +0 -0
  257. package/dist/collection/components/snk-print-selector/snk-print-selector.css.gz +0 -0
  258. package/dist/collection/components/snk-print-selector/snk-print-selector.js.gz +0 -0
  259. package/dist/collection/components/snk-simple-bar/snk-simple-bar.css.gz +0 -0
  260. package/dist/collection/components/snk-simple-bar/snk-simple-bar.js.gz +0 -0
  261. package/dist/collection/components/snk-simple-crud/regular-buttons.js.gz +0 -0
  262. package/dist/collection/components/snk-simple-crud/snk-simple-crud.css.gz +0 -0
  263. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +13 -21
  264. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js.gz +0 -0
  265. package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.css +22 -0
  266. package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.css.gz +0 -0
  267. package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.js +179 -0
  268. package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.js.gz +0 -0
  269. package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.css.gz +0 -0
  270. package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.js.gz +0 -0
  271. package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js.gz +0 -0
  272. package/dist/collection/components/snk-taskbar/processor/taskbar-processor.js.gz +0 -0
  273. package/dist/collection/components/snk-taskbar/snk-taskbar.css.gz +0 -0
  274. package/dist/collection/components/snk-taskbar/snk-taskbar.js.gz +0 -0
  275. package/dist/collection/components/snk-taskbar/subcomponents/field-search.js.gz +0 -0
  276. package/dist/collection/components/teste-pesquisa/teste-pesquisa.css.gz +0 -0
  277. package/dist/collection/components/teste-pesquisa/teste-pesquisa.js.gz +0 -0
  278. package/dist/collection/index.js.gz +0 -0
  279. package/dist/collection/lib/@types/index.js.gz +0 -0
  280. package/dist/collection/lib/DefaultCustomFormatters/RmPrecisionCustomValueFormatter.js.gz +0 -0
  281. package/dist/collection/lib/applet-caller/applet-caller.js.gz +0 -0
  282. package/dist/collection/lib/auth/mgeauthorization.module.js.gz +0 -0
  283. package/dist/collection/lib/configs/ConfigStorage.js.gz +0 -0
  284. package/dist/collection/lib/dataUnit/InMemoryLoader.js.gz +0 -0
  285. package/dist/collection/lib/dataUnit/ValueFormatter.js.gz +0 -0
  286. package/dist/collection/lib/dataUnit/dataUnitInMemoryUtils.js.gz +0 -0
  287. package/dist/collection/lib/dataUnit/interfaces/InMemoryLoaderConfig.js.gz +0 -0
  288. package/dist/collection/lib/http/data-fetcher/DataFetcher.js.gz +0 -0
  289. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/anexo-sistema-fetcher.js.gz +0 -0
  290. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/attach-fetcher.js.gz +0 -0
  291. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/facade/attach-fetcher.facade.js.gz +0 -0
  292. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/index.js.gz +0 -0
  293. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/interfaces/IDelete.js.gz +0 -0
  294. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/interfaces/IDownloadKey.js.gz +0 -0
  295. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/interfaces/ISave.js.gz +0 -0
  296. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/interfaces/index.js.gz +0 -0
  297. package/dist/collection/lib/http/data-fetcher/fetchers/application-config-fetcher.js.gz +0 -0
  298. package/dist/collection/lib/http/data-fetcher/fetchers/auth-fetcher.js.gz +0 -0
  299. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/DataUnitDataLoader.js.gz +0 -0
  300. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/ArrayRepository.js.gz +0 -0
  301. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.js.gz +0 -0
  302. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/dataunit-fetcher.js.gz +0 -0
  303. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IBuildRequestBodyLoadRowMetadata.js.gz +0 -0
  304. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/ILoadDataResult.js.gz +0 -0
  305. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/ILoadDataStrategy.js.gz +0 -0
  306. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/ILoadingInfo.js.gz +0 -0
  307. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IRecordField.js.gz +0 -0
  308. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IResponseRecord.js.gz +0 -0
  309. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IRowMetadata.js.gz +0 -0
  310. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DataUnitStrategy.js.gz +0 -0
  311. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js.gz +0 -0
  312. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/test/resources/metadataMock.js.gz +0 -0
  313. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IExporterColumnMetadata.js.gz +0 -0
  314. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterParams.js.gz +0 -0
  315. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterResponse.js.gz +0 -0
  316. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IPersonalizedReport.js.gz +0 -0
  317. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/permission-export-pdf.js.gz +0 -0
  318. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/personalized-reports-fetcher.js.gz +0 -0
  319. package/dist/collection/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.js.gz +0 -0
  320. package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +41 -4
  321. package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js.gz +0 -0
  322. package/dist/collection/lib/http/data-fetcher/fetchers/grid-config-fetcher.js.gz +0 -0
  323. package/dist/collection/lib/http/data-fetcher/fetchers/parameters-fecher.js.gz +0 -0
  324. package/dist/collection/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.js.gz +0 -0
  325. package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js.gz +0 -0
  326. package/dist/collection/lib/http/data-fetcher/fetchers/resource-fetcher.js.gz +0 -0
  327. package/dist/collection/lib/http/data-fetcher/fetchers/totals-fetcher.js.gz +0 -0
  328. package/dist/collection/lib/http/data-fetcher/interfaces/IClientEventResponse.js.gz +0 -0
  329. package/dist/collection/lib/http/data-fetcher/recaller/GraphQLRecaller.js.gz +0 -0
  330. package/dist/collection/lib/http/data-fetcher/recaller/IDataFetcherRecaller.js.gz +0 -0
  331. package/dist/collection/lib/http/data-fetcher/recaller/ServiceBrokerRecaller.js.gz +0 -0
  332. package/dist/collection/lib/http/data-fetcher/state/LoadStateManager.js.gz +0 -0
  333. package/dist/collection/lib/index.js.gz +0 -0
  334. package/dist/collection/lib/licenses/sankhyalicense.module.js.gz +0 -0
  335. package/dist/collection/lib/message/SnkMessageBuilder.js.gz +0 -0
  336. package/dist/collection/lib/message/resources/crud-utils.msg.js.gz +0 -0
  337. package/dist/collection/lib/message/resources/file-viewer.msg.js.gz +0 -0
  338. package/dist/collection/lib/message/resources/snk-actions-button.msg.js.gz +0 -0
  339. package/dist/collection/lib/message/resources/snk-application.msg.js.gz +0 -0
  340. package/dist/collection/lib/message/resources/snk-attach.msg.js.gz +0 -0
  341. package/dist/collection/lib/message/resources/snk-configurator.msg.js.gz +0 -0
  342. package/dist/collection/lib/message/resources/snk-crud.msg.js.gz +0 -0
  343. package/dist/collection/lib/message/resources/snk-data-exporter.msg.js.gz +0 -0
  344. package/dist/collection/lib/message/resources/snk-data-unit.msg.js.gz +0 -0
  345. package/dist/collection/lib/message/resources/snk-entity-list.msg.js.gz +0 -0
  346. package/dist/collection/lib/message/resources/snk-exporter.msg.js.gz +0 -0
  347. package/dist/collection/lib/message/resources/snk-filter-bar.msg.js.gz +0 -0
  348. package/dist/collection/lib/message/resources/snk-filter-field-search.msg.js.gz +0 -0
  349. package/dist/collection/lib/message/resources/snk-filter-param-config.msg.js.gz +0 -0
  350. package/dist/collection/lib/message/resources/snk-form.msg.js.gz +0 -0
  351. package/dist/collection/lib/message/resources/snk-grid.msg.js.gz +0 -0
  352. package/dist/collection/lib/message/resources/snk-personalized-filter.msg.js.gz +0 -0
  353. package/dist/collection/lib/message/resources/snk-print-selector.msg.js.gz +0 -0
  354. package/dist/collection/lib/message/resources/snk-simple-bar.msg.js.gz +0 -0
  355. package/dist/collection/lib/message/resources/snk-simple-crud.msg.js.gz +0 -0
  356. package/dist/collection/lib/message/resources/snk-taskbar.msg.js.gz +0 -0
  357. package/dist/collection/lib/resourceid/ResourceIDUtils.js.gz +0 -0
  358. package/dist/collection/lib/store/index.js.gz +0 -0
  359. package/dist/collection/lib/utils/ContinuousInsertUtils.js.gz +0 -0
  360. package/dist/collection/lib/utils/CrudUtils.js.gz +0 -0
  361. package/dist/collection/lib/utils/GetSelectedRecordsIDsInfo.js.gz +0 -0
  362. package/dist/collection/lib/utils/PrintUtils.js.gz +0 -0
  363. package/dist/collection/lib/utils/constants.js.gz +0 -0
  364. package/dist/collection/lib/utils/fileViewer/index.js.gz +0 -0
  365. package/dist/collection/lib/utils/fileViewer/interfaces/IFileViewerParams.js.gz +0 -0
  366. package/dist/collection/lib/utils/pesquisa.js.gz +0 -0
  367. package/dist/collection/lib/utils/urlutils.js.gz +0 -0
  368. package/dist/collection/lib/workspace/workspace.js.gz +0 -0
  369. package/dist/collection/sw.js.gz +0 -0
  370. package/dist/components/AuthorizationConfig.js.gz +0 -0
  371. package/dist/components/ConfigStorage.js.gz +0 -0
  372. package/dist/components/ContinuousInsertUtils.js.gz +0 -0
  373. package/dist/components/DataFetcher.js.gz +0 -0
  374. package/dist/components/GetSelectedRecordsIDsInfo.js.gz +0 -0
  375. package/dist/components/ISave.js.gz +0 -0
  376. package/dist/components/ParamType.js.gz +0 -0
  377. package/dist/components/PersonalizedFilterUtils.js.gz +0 -0
  378. package/dist/components/PrintUtils.js.gz +0 -0
  379. package/dist/components/ResourceIDUtils.js.gz +0 -0
  380. package/dist/components/SnkFormConfigManager.js.gz +0 -0
  381. package/dist/components/SnkMessageBuilder.js.gz +0 -0
  382. package/dist/components/auth-fetcher.js.gz +0 -0
  383. package/dist/components/constants.js.gz +0 -0
  384. package/dist/components/dataunit-fetcher.js.gz +0 -0
  385. package/dist/components/filter-item-type.enum.js.gz +0 -0
  386. package/dist/components/filterNumberVariation.js.gz +0 -0
  387. package/dist/components/form-config-fetcher.js +37 -0
  388. package/dist/components/form-config-fetcher.js.gz +0 -0
  389. package/dist/components/index.d.ts +1 -0
  390. package/dist/components/index.js +1 -0
  391. package/dist/components/index.js.gz +0 -0
  392. package/dist/components/index2.js.gz +0 -0
  393. package/dist/components/pesquisa-fetcher.js.gz +0 -0
  394. package/dist/components/presentationMode.js.gz +0 -0
  395. package/dist/components/snk-actions-button.js.gz +0 -0
  396. package/dist/components/snk-actions-button2.js.gz +0 -0
  397. package/dist/components/snk-actions-form.js.gz +0 -0
  398. package/dist/components/snk-application.js.gz +0 -0
  399. package/dist/components/snk-application2.js.gz +0 -0
  400. package/dist/components/snk-attach.js.gz +0 -0
  401. package/dist/components/snk-attach2.js +12 -30
  402. package/dist/components/snk-attach2.js.gz +0 -0
  403. package/dist/components/snk-client-confirm.js.gz +0 -0
  404. package/dist/components/snk-config-options.js.gz +0 -0
  405. package/dist/components/snk-config-options2.js.gz +0 -0
  406. package/dist/components/snk-configurator.js.gz +0 -0
  407. package/dist/components/snk-configurator2.js.gz +0 -0
  408. package/dist/components/snk-crud.js +61 -55
  409. package/dist/components/snk-crud.js.gz +0 -0
  410. package/dist/components/snk-custom-slot-elements.js.gz +0 -0
  411. package/dist/components/snk-data-exporter.js.gz +0 -0
  412. package/dist/components/snk-data-exporter2.js.gz +0 -0
  413. package/dist/components/snk-data-unit.js.gz +0 -0
  414. package/dist/components/snk-data-unit2.js.gz +0 -0
  415. package/dist/components/snk-detail-view.js.gz +0 -0
  416. package/dist/components/snk-detail-view2.js +84 -93
  417. package/dist/components/snk-detail-view2.js.gz +0 -0
  418. package/dist/components/snk-entity-list.js.gz +0 -0
  419. package/dist/components/snk-exporter-email-sender.js.gz +0 -0
  420. package/dist/components/snk-exporter-email-sender2.js.gz +0 -0
  421. package/dist/components/snk-expression-group.js.gz +0 -0
  422. package/dist/components/snk-expression-group2.js.gz +0 -0
  423. package/dist/components/snk-expression-item.js.gz +0 -0
  424. package/dist/components/snk-expression-item2.js.gz +0 -0
  425. package/dist/components/snk-field-config.js.gz +0 -0
  426. package/dist/components/snk-field-config2.js.gz +0 -0
  427. package/dist/components/snk-filter-advanced-mode.js.gz +0 -0
  428. package/dist/components/snk-filter-advanced-mode2.js.gz +0 -0
  429. package/dist/components/snk-filter-assistent-mode.js.gz +0 -0
  430. package/dist/components/snk-filter-assistent-mode2.js.gz +0 -0
  431. package/dist/components/snk-filter-bar.js.gz +0 -0
  432. package/dist/components/snk-filter-bar2.js.gz +0 -0
  433. package/dist/components/snk-filter-binary-select.js.gz +0 -0
  434. package/dist/components/snk-filter-checkbox-list.js.gz +0 -0
  435. package/dist/components/snk-filter-detail.js.gz +0 -0
  436. package/dist/components/snk-filter-detail2.js.gz +0 -0
  437. package/dist/components/snk-filter-field-search.js.gz +0 -0
  438. package/dist/components/snk-filter-field-search2.js.gz +0 -0
  439. package/dist/components/snk-filter-item.js.gz +0 -0
  440. package/dist/components/snk-filter-item2.js.gz +0 -0
  441. package/dist/components/snk-filter-list.js.gz +0 -0
  442. package/dist/components/snk-filter-modal-item.js.gz +0 -0
  443. package/dist/components/snk-filter-modal-item2.js.gz +0 -0
  444. package/dist/components/snk-filter-modal.js.gz +0 -0
  445. package/dist/components/snk-filter-multi-select.js.gz +0 -0
  446. package/dist/components/snk-filter-number.js.gz +0 -0
  447. package/dist/components/snk-filter-param-config.js.gz +0 -0
  448. package/dist/components/snk-filter-param-config2.js.gz +0 -0
  449. package/dist/components/snk-filter-period.js.gz +0 -0
  450. package/dist/components/snk-filter-search.js.gz +0 -0
  451. package/dist/components/snk-filter-text.js.gz +0 -0
  452. package/dist/components/snk-form-config.js.gz +0 -0
  453. package/dist/components/snk-form-config2.js.gz +0 -0
  454. package/dist/components/snk-form-summary.js.gz +0 -0
  455. package/dist/components/snk-form-summary2.js.gz +0 -0
  456. package/dist/components/snk-form-view.js.gz +0 -0
  457. package/dist/components/snk-form-view2.js.gz +0 -0
  458. package/dist/components/snk-form.js.gz +0 -0
  459. package/dist/components/snk-grid-config.js.gz +0 -0
  460. package/dist/components/snk-grid-config2.js.gz +0 -0
  461. package/dist/components/snk-grid.js.gz +0 -0
  462. package/dist/components/snk-grid2.js.gz +0 -0
  463. package/dist/components/snk-guides-viewer.js.gz +0 -0
  464. package/dist/components/snk-personalized-filter-editor.js.gz +0 -0
  465. package/dist/components/snk-personalized-filter.js.gz +0 -0
  466. package/dist/components/snk-personalized-filter2.js.gz +0 -0
  467. package/dist/components/snk-pesquisa.js.gz +0 -0
  468. package/dist/components/snk-pesquisa2.js.gz +0 -0
  469. package/dist/components/snk-print-selector.js.gz +0 -0
  470. package/dist/components/snk-select-box.js.gz +0 -0
  471. package/dist/components/snk-select-box2.js.gz +0 -0
  472. package/dist/components/snk-simple-bar.js.gz +0 -0
  473. package/dist/components/snk-simple-bar2.js.gz +0 -0
  474. package/dist/components/snk-simple-crud.js.gz +0 -0
  475. package/dist/components/snk-simple-crud2.js +25 -51
  476. package/dist/components/snk-simple-crud2.js.gz +0 -0
  477. package/dist/components/snk-simple-form-config.d.ts +11 -0
  478. package/dist/components/snk-simple-form-config.js +6 -0
  479. package/dist/components/snk-simple-form-config.js.gz +0 -0
  480. package/dist/components/snk-simple-form-config2.js +119 -0
  481. package/dist/components/snk-simple-form-config2.js.gz +0 -0
  482. package/dist/components/snk-tab-config.js.gz +0 -0
  483. package/dist/components/snk-tab-config2.js.gz +0 -0
  484. package/dist/components/snk-taskbar.js.gz +0 -0
  485. package/dist/components/snk-taskbar2.js.gz +0 -0
  486. package/dist/components/taskbar-actions-button.js.gz +0 -0
  487. package/dist/components/taskbar-actions-button2.js.gz +0 -0
  488. package/dist/components/teste-pesquisa.js.gz +0 -0
  489. package/dist/esm/AuthorizationConfig-dcbd207a.js.gz +0 -0
  490. package/dist/esm/{ConfigStorage-6514d66e.js → ConfigStorage-ff99377a.js} +1 -1
  491. package/dist/esm/ConfigStorage-ff99377a.js.gz +0 -0
  492. package/dist/esm/{ContinuousInsertUtils-139ff541.js → ContinuousInsertUtils-071e0b6a.js} +1 -1
  493. package/dist/esm/ContinuousInsertUtils-071e0b6a.js.gz +0 -0
  494. package/dist/esm/DataFetcher-5034df59.js.gz +0 -0
  495. package/dist/esm/GetSelectedRecordsIDsInfo-9fa41508.js.gz +0 -0
  496. package/dist/esm/ISave-d8c8bc59.js.gz +0 -0
  497. package/dist/esm/ParamType-d5152b06.js.gz +0 -0
  498. package/dist/esm/PersonalizedFilterUtils-e2b38ef7.js.gz +0 -0
  499. package/dist/esm/PrintUtils-3e4ff0f5.js.gz +0 -0
  500. package/dist/esm/ResourceIDUtils-a114189a.js.gz +0 -0
  501. package/dist/esm/{SnkFormConfigManager-b409c745.js → SnkFormConfigManager-a7770e24.js} +2 -2
  502. package/dist/esm/SnkFormConfigManager-a7770e24.js.gz +0 -0
  503. package/dist/esm/SnkMessageBuilder-6fff4a4c.js.gz +0 -0
  504. package/dist/esm/Sortable-83960219.js.gz +0 -0
  505. package/dist/esm/{auth-fetcher-ca5d3a49.js → auth-fetcher-0b78ca31.js} +1 -1
  506. package/dist/esm/auth-fetcher-0b78ca31.js.gz +0 -0
  507. package/dist/esm/constants-7302ee87.js.gz +0 -0
  508. package/dist/esm/dataunit-fetcher-56cb648b.js.gz +0 -0
  509. package/dist/esm/field-search-f8b1d91e.js.gz +0 -0
  510. package/dist/esm/filter-item-type.enum-d45e026f.js.gz +0 -0
  511. package/dist/esm/filter-type.enum-a80c1b6b.js.gz +0 -0
  512. package/dist/esm/filterNumberVariation-8cee02ea.js.gz +0 -0
  513. package/dist/esm/{form-config-fetcher-a7d3e277.js → form-config-fetcher-0c2620ef.js} +37 -0
  514. package/dist/esm/form-config-fetcher-0c2620ef.js.gz +0 -0
  515. package/dist/esm/index-3aa4977a.js.gz +0 -0
  516. package/dist/esm/index-620ac460.js.gz +0 -0
  517. package/dist/esm/index-a7d3d3f1.js +4 -4
  518. package/dist/esm/index-a7d3d3f1.js.gz +0 -0
  519. package/dist/esm/index-ae591a44.js.gz +0 -0
  520. package/dist/esm/index-bdf75557.js.gz +0 -0
  521. package/dist/esm/index.js.gz +0 -0
  522. package/dist/esm/loader.js +1 -1
  523. package/dist/esm/loader.js.gz +0 -0
  524. package/dist/esm/pesquisa-fetcher-24e5bba0.js.gz +0 -0
  525. package/dist/esm/polyfills/core-js.js.gz +0 -0
  526. package/dist/esm/polyfills/css-shim.js.gz +0 -0
  527. package/dist/esm/polyfills/dom.js.gz +0 -0
  528. package/dist/esm/polyfills/es5-html-element.js.gz +0 -0
  529. package/dist/esm/polyfills/index.js.gz +0 -0
  530. package/dist/esm/polyfills/system.js.gz +0 -0
  531. package/dist/esm/presentationMode-783bbf9d.js.gz +0 -0
  532. package/dist/esm/sankhyablocks.js +1 -1
  533. package/dist/esm/sankhyablocks.js.gz +0 -0
  534. package/dist/esm/{snk-actions-button_4.entry.js → snk-actions-button_5.entry.js} +90 -3
  535. package/dist/esm/snk-actions-button_5.entry.js.gz +0 -0
  536. package/dist/esm/snk-actions-form.entry.js.gz +0 -0
  537. package/dist/esm/snk-application.entry.js +3 -3
  538. package/dist/esm/snk-application.entry.js.gz +0 -0
  539. package/dist/esm/snk-attach.entry.js +2 -2
  540. package/dist/esm/snk-attach.entry.js.gz +0 -0
  541. package/dist/esm/snk-client-confirm.entry.js.gz +0 -0
  542. package/dist/esm/snk-config-options_3.entry.js +3 -3
  543. package/dist/esm/snk-config-options_3.entry.js.gz +0 -0
  544. package/dist/esm/snk-configurator.entry.js.gz +0 -0
  545. package/dist/esm/snk-crud.entry.js +2 -2
  546. package/dist/esm/snk-crud.entry.js.gz +0 -0
  547. package/dist/esm/snk-custom-slot-elements.entry.js.gz +0 -0
  548. package/dist/esm/snk-data-exporter.entry.js +1 -1
  549. package/dist/esm/snk-data-exporter.entry.js.gz +0 -0
  550. package/dist/esm/snk-data-unit-9fa7d2b9.js.gz +0 -0
  551. package/dist/esm/snk-data-unit.entry.js.gz +0 -0
  552. package/dist/esm/snk-detail-view.entry.js +4 -4
  553. package/dist/esm/snk-detail-view.entry.js.gz +0 -0
  554. package/dist/esm/snk-entity-list.entry.js.gz +0 -0
  555. package/dist/esm/snk-exporter-email-sender.entry.js.gz +0 -0
  556. package/dist/esm/snk-expression-group_2.entry.js.gz +0 -0
  557. package/dist/esm/snk-field-config.entry.js.gz +0 -0
  558. package/dist/esm/snk-filter-advanced-mode_2.entry.js.gz +0 -0
  559. package/dist/esm/snk-filter-bar_4.entry.js +2 -2
  560. package/dist/esm/snk-filter-bar_4.entry.js.gz +0 -0
  561. package/dist/esm/snk-filter-binary-select.entry.js.gz +0 -0
  562. package/dist/esm/snk-filter-checkbox-list.entry.js.gz +0 -0
  563. package/dist/esm/snk-filter-detail.entry.js.gz +0 -0
  564. package/dist/esm/snk-filter-field-search_2.entry.js.gz +0 -0
  565. package/dist/esm/snk-filter-modal-item.entry.js +2 -2
  566. package/dist/esm/snk-filter-modal-item.entry.js.gz +0 -0
  567. package/dist/esm/snk-filter-multi-select.entry.js.gz +0 -0
  568. package/dist/esm/snk-filter-number.entry.js.gz +0 -0
  569. package/dist/esm/snk-filter-period.entry.js.gz +0 -0
  570. package/dist/esm/snk-filter-search.entry.js.gz +0 -0
  571. package/dist/esm/snk-filter-text.entry.js.gz +0 -0
  572. package/dist/esm/snk-form-summary.entry.js.gz +0 -0
  573. package/dist/esm/snk-form-view.entry.js.gz +0 -0
  574. package/dist/esm/snk-grid.entry.js +3 -3
  575. package/dist/esm/snk-grid.entry.js.gz +0 -0
  576. package/dist/esm/{snk-guides-viewer-0c3efe6a.js → snk-guides-viewer-b740a1fe.js} +2 -2
  577. package/dist/esm/snk-guides-viewer-b740a1fe.js.gz +0 -0
  578. package/dist/esm/snk-guides-viewer.entry.js +4 -4
  579. package/dist/esm/snk-guides-viewer.entry.js.gz +0 -0
  580. package/dist/esm/snk-personalized-filter-editor.entry.js.gz +0 -0
  581. package/dist/esm/snk-personalized-filter.entry.js +2 -2
  582. package/dist/esm/snk-personalized-filter.entry.js.gz +0 -0
  583. package/dist/esm/snk-pesquisa.entry.js.gz +0 -0
  584. package/dist/esm/snk-print-selector.entry.js.gz +0 -0
  585. package/dist/esm/snk-simple-bar.entry.js.gz +0 -0
  586. package/dist/esm/snk-simple-crud.entry.js +17 -24
  587. package/dist/esm/snk-simple-crud.entry.js.gz +0 -0
  588. package/dist/esm/snk-tab-config.entry.js.gz +0 -0
  589. package/dist/esm/snk-taskbar.entry.js.gz +0 -0
  590. package/dist/esm/taskbar-elements-d59867f1.js.gz +0 -0
  591. package/dist/esm/teste-pesquisa.entry.js.gz +0 -0
  592. package/dist/index.cjs.js.gz +0 -0
  593. package/dist/index.js.gz +0 -0
  594. package/dist/sankhyablocks/index.esm.js.gz +0 -0
  595. package/dist/sankhyablocks/p-00278e07.js.gz +0 -0
  596. package/dist/sankhyablocks/p-01ba23cd.entry.js.gz +0 -0
  597. package/dist/sankhyablocks/{p-ec43fcc8.entry.js → p-036b4807.entry.js} +1 -1
  598. package/dist/sankhyablocks/p-036b4807.entry.js.gz +0 -0
  599. package/dist/sankhyablocks/p-057fad05.js.gz +0 -0
  600. package/dist/sankhyablocks/p-0d2a2e9e.entry.js.gz +0 -0
  601. package/dist/sankhyablocks/p-118e769b.entry.js.gz +0 -0
  602. package/dist/sankhyablocks/p-16a1dd18.entry.js.gz +0 -0
  603. package/dist/sankhyablocks/p-17425c72.js.gz +0 -0
  604. package/dist/sankhyablocks/{p-e7469b05.entry.js → p-184012f4.entry.js} +1 -1
  605. package/dist/sankhyablocks/p-184012f4.entry.js.gz +0 -0
  606. package/dist/sankhyablocks/p-1a68fb59.js.gz +0 -0
  607. package/dist/sankhyablocks/p-1db45d26.entry.js.gz +0 -0
  608. package/dist/sankhyablocks/p-21749402.js.gz +0 -0
  609. package/dist/sankhyablocks/p-21a81901.entry.js.gz +0 -0
  610. package/dist/sankhyablocks/p-23736d75.js.gz +0 -0
  611. package/dist/sankhyablocks/p-26b0ce3e.entry.js.gz +0 -0
  612. package/dist/sankhyablocks/p-29643bef.entry.js +1 -0
  613. package/dist/sankhyablocks/p-29643bef.entry.js.gz +0 -0
  614. package/dist/sankhyablocks/p-2d3f9482.entry.js.gz +0 -0
  615. package/dist/sankhyablocks/p-30cf616e.js.gz +0 -0
  616. package/dist/sankhyablocks/p-33718dfc.entry.js.gz +0 -0
  617. package/dist/sankhyablocks/{p-2011eaa3.entry.js → p-33b06d48.entry.js} +1 -1
  618. package/dist/sankhyablocks/p-33b06d48.entry.js.gz +0 -0
  619. package/dist/sankhyablocks/p-342eeb3b.js.gz +0 -0
  620. package/dist/sankhyablocks/{p-fca0e5cc.entry.js → p-35882caf.entry.js} +1 -1
  621. package/dist/sankhyablocks/p-35882caf.entry.js.gz +0 -0
  622. package/dist/sankhyablocks/{p-0791a167.entry.js → p-365d8ed4.entry.js} +1 -1
  623. package/dist/sankhyablocks/p-365d8ed4.entry.js.gz +0 -0
  624. package/dist/sankhyablocks/p-3ab6df3d.entry.js.gz +0 -0
  625. package/dist/sankhyablocks/p-41793e17.entry.js.gz +0 -0
  626. package/dist/sankhyablocks/p-434817f0.entry.js.gz +0 -0
  627. package/dist/sankhyablocks/p-47178038.entry.js.gz +0 -0
  628. package/dist/sankhyablocks/p-47d24ac8.js.gz +0 -0
  629. package/dist/sankhyablocks/{p-5daf2e8c.entry.js → p-53ae0296.entry.js} +1 -1
  630. package/dist/sankhyablocks/p-53ae0296.entry.js.gz +0 -0
  631. package/dist/sankhyablocks/p-54a5d52a.entry.js.gz +0 -0
  632. package/dist/sankhyablocks/p-5f157b09.entry.js.gz +0 -0
  633. package/dist/sankhyablocks/p-619aeac8.entry.js.gz +0 -0
  634. package/dist/sankhyablocks/{p-fcdfb0fe.entry.js → p-65650e05.entry.js} +1 -1
  635. package/dist/sankhyablocks/p-65650e05.entry.js.gz +0 -0
  636. package/dist/sankhyablocks/p-688dcb4c.js.gz +0 -0
  637. package/dist/sankhyablocks/p-6dc031de.js.gz +0 -0
  638. package/dist/sankhyablocks/{p-994903df.js → p-72a451c8.js} +1 -1
  639. package/dist/sankhyablocks/p-72a451c8.js.gz +0 -0
  640. package/dist/sankhyablocks/{p-9ffd9fc7.js → p-763edad2.js} +1 -1
  641. package/dist/sankhyablocks/p-763edad2.js.gz +0 -0
  642. package/dist/sankhyablocks/p-7dd49d15.js.gz +0 -0
  643. package/dist/sankhyablocks/p-7e2ded86.entry.js.gz +0 -0
  644. package/dist/sankhyablocks/p-7e7a7473.js.gz +0 -0
  645. package/dist/sankhyablocks/p-8002dcd0.entry.js.gz +0 -0
  646. package/dist/sankhyablocks/p-82274cb0.js +1 -0
  647. package/dist/sankhyablocks/p-82274cb0.js.gz +0 -0
  648. package/dist/sankhyablocks/p-89c92727.entry.js.gz +0 -0
  649. package/dist/sankhyablocks/p-8b4fc28f.entry.js.gz +0 -0
  650. package/dist/sankhyablocks/p-8c235d4c.entry.js.gz +0 -0
  651. package/dist/sankhyablocks/{p-c9ab5a1f.entry.js → p-8cf0a9fe.entry.js} +1 -1
  652. package/dist/sankhyablocks/p-8cf0a9fe.entry.js.gz +0 -0
  653. package/dist/sankhyablocks/p-8d884fab.js.gz +0 -0
  654. package/dist/sankhyablocks/p-933c0c0b.js.gz +0 -0
  655. package/dist/sankhyablocks/p-9531fd46.entry.js.gz +0 -0
  656. package/dist/sankhyablocks/p-95ce311a.js.gz +0 -0
  657. package/dist/sankhyablocks/p-9d3a025a.entry.js.gz +0 -0
  658. package/dist/sankhyablocks/p-ac8d1cd6.entry.js.gz +0 -0
  659. package/dist/sankhyablocks/p-acca8a69.js +26 -0
  660. package/dist/sankhyablocks/p-acca8a69.js.gz +0 -0
  661. package/dist/sankhyablocks/p-bf2acf72.entry.js.gz +0 -0
  662. package/dist/sankhyablocks/{p-cb617269.js → p-c271fbf1.js} +1 -1
  663. package/dist/sankhyablocks/p-c271fbf1.js.gz +0 -0
  664. package/dist/sankhyablocks/p-c2e468c9.entry.js.gz +0 -0
  665. package/dist/sankhyablocks/{p-9f358458.entry.js → p-c629c07a.entry.js} +1 -1
  666. package/dist/sankhyablocks/p-c629c07a.entry.js.gz +0 -0
  667. package/dist/sankhyablocks/p-c8622597.entry.js.gz +0 -0
  668. package/dist/sankhyablocks/p-d1791da2.entry.js.gz +0 -0
  669. package/dist/sankhyablocks/p-d2d301a6.js.gz +0 -0
  670. package/dist/sankhyablocks/p-d9804798.js.gz +0 -0
  671. package/dist/sankhyablocks/p-dc36cfbf.js.gz +0 -0
  672. package/dist/sankhyablocks/p-e6683406.js.gz +0 -0
  673. package/dist/sankhyablocks/{p-aa003d4e.entry.js → p-e9432f45.entry.js} +1 -1
  674. package/dist/sankhyablocks/p-e9432f45.entry.js.gz +0 -0
  675. package/dist/sankhyablocks/p-eaad0aa8.js.gz +0 -0
  676. package/dist/sankhyablocks/{p-bca6e570.entry.js → p-eda55eef.entry.js} +3 -3
  677. package/dist/sankhyablocks/p-eda55eef.entry.js.gz +0 -0
  678. package/dist/sankhyablocks/p-f4184ce7.js.gz +0 -0
  679. package/dist/sankhyablocks/p-f7650ed4.entry.js +1 -0
  680. package/dist/sankhyablocks/p-f7650ed4.entry.js.gz +0 -0
  681. package/dist/sankhyablocks/p-fa80e546.js.gz +0 -0
  682. package/dist/sankhyablocks/p-fa816fb2.js.gz +0 -0
  683. package/dist/sankhyablocks/{p-0e206e62.js → p-fcc662c6.js} +1 -1
  684. package/dist/sankhyablocks/p-fcc662c6.js.gz +0 -0
  685. package/dist/sankhyablocks/p-ff1990ad.js.gz +0 -0
  686. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  687. package/dist/sankhyablocks/sankhyablocks.esm.js.gz +0 -0
  688. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +2 -3
  689. package/dist/types/components/snk-simple-form-config/snk-simple-form-config.d.ts +33 -0
  690. package/dist/types/components.d.ts +38 -0
  691. package/dist/types/lib/http/data-fetcher/fetchers/form-config-fetcher.d.ts +8 -2
  692. package/package.json +1 -1
  693. package/react/components.d.ts +1 -0
  694. package/react/components.js +1 -0
  695. package/react/components.js.map +1 -1
  696. package/dist/cjs/ConfigStorage-f079f5fd.js.gz +0 -0
  697. package/dist/cjs/ContinuousInsertUtils-3f27ea94.js.gz +0 -0
  698. package/dist/cjs/SnkFormConfigManager-63369164.js.gz +0 -0
  699. package/dist/cjs/auth-fetcher-4f853233.js.gz +0 -0
  700. package/dist/cjs/form-config-fetcher-39397ac5.js.gz +0 -0
  701. package/dist/cjs/snk-actions-button_4.cjs.entry.js.gz +0 -0
  702. package/dist/cjs/snk-guides-viewer-dcd05129.js.gz +0 -0
  703. package/dist/esm/ConfigStorage-6514d66e.js.gz +0 -0
  704. package/dist/esm/ContinuousInsertUtils-139ff541.js.gz +0 -0
  705. package/dist/esm/SnkFormConfigManager-b409c745.js.gz +0 -0
  706. package/dist/esm/auth-fetcher-ca5d3a49.js.gz +0 -0
  707. package/dist/esm/form-config-fetcher-a7d3e277.js.gz +0 -0
  708. package/dist/esm/snk-actions-button_4.entry.js.gz +0 -0
  709. package/dist/esm/snk-guides-viewer-0c3efe6a.js.gz +0 -0
  710. package/dist/sankhyablocks/p-0791a167.entry.js.gz +0 -0
  711. package/dist/sankhyablocks/p-0e206e62.js.gz +0 -0
  712. package/dist/sankhyablocks/p-126c58ea.js +0 -26
  713. package/dist/sankhyablocks/p-126c58ea.js.gz +0 -0
  714. package/dist/sankhyablocks/p-2011eaa3.entry.js.gz +0 -0
  715. package/dist/sankhyablocks/p-5daf2e8c.entry.js.gz +0 -0
  716. package/dist/sankhyablocks/p-73b19d2a.entry.js +0 -1
  717. package/dist/sankhyablocks/p-73b19d2a.entry.js.gz +0 -0
  718. package/dist/sankhyablocks/p-994903df.js.gz +0 -0
  719. package/dist/sankhyablocks/p-9f358458.entry.js.gz +0 -0
  720. package/dist/sankhyablocks/p-9ffd9fc7.js.gz +0 -0
  721. package/dist/sankhyablocks/p-aa003d4e.entry.js.gz +0 -0
  722. package/dist/sankhyablocks/p-aaf94476.js +0 -1
  723. package/dist/sankhyablocks/p-aaf94476.js.gz +0 -0
  724. package/dist/sankhyablocks/p-bca6e570.entry.js.gz +0 -0
  725. package/dist/sankhyablocks/p-c9ab5a1f.entry.js.gz +0 -0
  726. package/dist/sankhyablocks/p-cb617269.js.gz +0 -0
  727. package/dist/sankhyablocks/p-e7469b05.entry.js.gz +0 -0
  728. package/dist/sankhyablocks/p-ec43fcc8.entry.js.gz +0 -0
  729. package/dist/sankhyablocks/p-f35db6f1.entry.js +0 -1
  730. package/dist/sankhyablocks/p-f35db6f1.entry.js.gz +0 -0
  731. package/dist/sankhyablocks/p-fca0e5cc.entry.js.gz +0 -0
  732. package/dist/sankhyablocks/p-fcdfb0fe.entry.js.gz +0 -0
Binary file
@@ -1,26 +0,0 @@
1
- import{d as e,D as t}from"./p-00278e07.js";import{ObjectUtils as r}from"@sankhyalabs/core";class s{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(s._loadingResource.has(e))return s._loadingResource.get(e);const r=new Promise(((r,n)=>{t.get().callGraphQL({values:{name:e},query:this.templateByQuery.get("fetchResource")}).then((t=>{r(null==t?void 0:t.resource),s._loadingResource.delete(e)})).catch((t=>{n(t),s._loadingResource.delete(e)}))}));return s._loadingResource.set(e,r),r}saveResource(e,r){return new Promise(((s,n)=>{t.get().callGraphQL({values:{resource:{name:r,resource:JSON.stringify(e)}},query:this.templateByQuery.get("saveResource")}).then((e=>{s(e)})).catch((e=>{n(e)}))}))}}s._loadingResource=new Map;class n extends s{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,t){return new Promise(((r,s)=>{Promise.all([this.loadResource(this.getPath(t,e)),this.loadResource(this.getPath(`FormCardState:${t}`,e,"form-card")),this.loadResource(this.getPath(t,e,"summary")),this.loadResource(this.getPath(t,e,"defaultValues"))]).then((([e,t,s,n])=>{let i;if(null!=e){i=Object.assign(Object.assign({},JSON.parse(e)),{emptyConfig:!1});const{tabs:t,fields:r}=i;if(t){const e=new Map(t.map((e=>[e.label,e])));null==r||r.forEach((t=>{var r;return t.tab=(null===(r=e.get(this.getTabName(t.tab)))||void 0===r?void 0:r.label)||e.get(this.getTabName(t.tab))}))}i.fields=null==r?void 0:r.map((e=>{if("readonly"in e){const t=!0===e.readonly;delete e.readonly,e.readOnly=t}return e}))}null!=t&&(null==i&&(i={emptyConfig:!0,fields:[]}),i.cardsState=new Map(JSON.parse(t))),null!=s&&(null==i&&(i={emptyConfig:!0,fields:[]}),i.summary=new Map(Object.entries(JSON.parse(s)))),null!=n&&(null==i&&(i={emptyConfig:!0,fields:[]}),i.defaultVars=new Map(Object.entries(JSON.parse(n)))),r(i)})).catch((e=>{s(e)}))}))}getTabName(e){return"object"==typeof e?e.label:e}saveCardState(e,t,r){const s=this.getPath(`FormCardState:${r}`,t,"form-card");return new Promise(((t,r)=>{this.saveResource(Array.from(e.entries()),s).then((e=>{t(new Map(JSON.parse(e.resource)))})).catch((e=>{r(e)}))}))}saveConfig(e,t,r){delete e.cardsState,delete e.defaultVars,delete e.summary;const s=this.getPath(r,t);return new Promise(((t,r)=>{this.saveResource(e,s).then((e=>{t(JSON.parse(e.resource))})).catch((e=>{r(e)}))}))}fetchUserAvailableConfigs(e,r){const s=this.getPath(r,e);return new Promise(((e,r)=>{t.get().callGraphQL({values:{name:s},query:this.queryConfig.get("fetchUserAvailableConfigs")}).then((t=>{e(t)})).catch((e=>{r(e)}))}))}fetchLegacyConfig(e,s){const n=this.getPath(s,e);return new Promise(((e,s)=>{t.get().callGraphQL({values:{name:n},query:this.queryConfig.get("fetchLegacyConfig")}).then((t=>{e(r.stringToObject((null==t?void 0:t.resource)||""))})).catch((e=>{s(e)}))}))}fetchDefaultConfig(e,s){const n=this.getPath(s,e);return new Promise(((e,s)=>{t.get().callGraphQL({values:{name:n},query:this.queryConfig.get("fetchDefaultConfig")}).then((t=>{(null==t?void 0:t.resource)||e(null),e(r.stringToObject(null==t?void 0:t.resource))})).catch((e=>{s(e)}))}))}getPath(e,t,r="form"){return t?`cfg://${r}/${e}/${t}`:`cfg://${r}/${e}`}async fetchLegacyConfigurableForm(e){const s={requestBody:{config:{chave:e,tipo:"T"}}},n=await t.get().callServiceBroker("SystemUtilsSP.getConf",JSON.stringify(s));if(!r.isEmpty(n))return this.buildLegacyConfigurableForm(n)}buildLegacyConfigurableForm(e){var t,r,s;const n=null!==(s=null===(r=null===(t=null==e?void 0:e.formConfig)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.field)&&void 0!==s?s:[];return{emptyConfig:!1,fields:Array.isArray(n)?n:[n]}}}var i;!function(e){e.USER="USER",e.DEFAULT="DEFAULT",e.SHARED="SHARED"}(i||(i={}));export{n as F,s as R,i as U}
Binary file
@@ -1 +0,0 @@
1
- import{r as i,c as t,h as s,g as e}from"./p-d2d301a6.js";import{UserInterface as n,StringUtils as o,ApplicationContext as h,ObjectUtils as a,DataType as r,JSUtils as d,FloatingManager as l,KeyboardManager as u,ElementIDUtils as c}from"@sankhyalabs/core";import{CSSVarsUtils as m}from"@sankhyalabs/ezui/dist/collection/utils";import{V as v,S as g}from"./p-95ce311a.js";import{T as p}from"./p-7e7a7473.js";import"./p-00278e07.js";import"./p-e6683406.js";import{C as f,S as C,R as S,b,a as k}from"./p-cb617269.js";import{D as y,P as w}from"./p-30cf616e.js";import"./p-21749402.js";import"@sankhyalabs/ezui/dist/collection/utils/constants";import"@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata";import{I as E}from"./p-47d24ac8.js";import"./p-ff1990ad.js";import{F as _}from"./p-126c58ea.js";import{T as I,b as T,o as F}from"./p-23736d75.js";import{C as R}from"./p-9ffd9fc7.js";import{S as D}from"./p-0e206e62.js";import{g as M}from"./p-7dd49d15.js";import{s as O}from"./p-6dc031de.js";import"./p-8d884fab.js";import"@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource";import"@sankhyalabs/ezui/dist/collection/components/ez-grid/utils";import"@sankhyalabs/core/dist/utils/SortingUtils";import"./p-688dcb4c.js";const z=["INSERT","REFRESH","PREVIOUS","NEXT","DIVIDER","MORE_OPTIONS"],L=["INSERT","REFRESH","PREVIOUS","NEXT","DIVIDER","CLONE","REMOVE","DIVIDER","MORE_OPTIONS"];class P extends f{getSelectedNumber(){return this.dataUnit.getSelectionInfo().length}getTotalRecords(){var i,t,s;const{total:e}=(null===(i=this.dataUnit)||void 0===i?void 0:i.getPaginationInfo())||{};return null!=e?e:null===(s=null===(t=this.dataUnit)||void 0===t?void 0:t.records)||void 0===s?void 0:s.length}getSelectedIDs(){return M(this.dataUnit)}getRecordID(){var i,t,s;return null===(s=null===(t=null===(i=this.dataUnit)||void 0===i?void 0:i.records)||void 0===t?void 0:t[0])||void 0===s?void 0:s.__record__id__}async getRecords(){if(0===this.dataUnit.records.length)return Promise.resolve([]);const i=this.dataUnit.getSelectionInfo(),t=i.isEmpty()||i.isAllRecords()?await i.getAllRecords():i.records;return Promise.resolve(null==t?[]:t)}getHiddenOptions(){return[y.EXPORT_BY_EMAIL,y.EXPORT_PDF_TO_EMAIL,y.EXPORT_XLS_TO_EMAIL,y.EXPORT_PAGE_TO_PDF,y.EXPORT_PAGE_TO_XLS]}formatValue(i,t){const{id:s,descriptionFrom:e}=t,o=i[e||s];if(null==o)return"";if(null!=e)return o.label;if(this.dataUnit.getField(s).userInterface===n.SEARCH)return o.value;if(t.customFormatter){const s=this.getColumnsState().find((i=>t.id===i.name));return t.customFormatter.format(o,s,i.__record__id__)}return this.dataUnit.getFormattedValue(s,o)}}const N=class{constructor(s){i(this,s),this.dataStateChange=t(this,"dataStateChange",3),this.dataUnitReady=t(this,"dataUnitReady",3),this.actionClick=t(this,"actionClick",7),this.formItemsReady=t(this,"formItemsReady",7),this.configuratorSave=t(this,"configuratorSave",7),this.configuratorCancel=t(this,"configuratorCancel",7),this._multiSelectionListDataSource=new C,this._keyDownHandler=i=>this.keyDownListener(i),this._formConfigFetcher=new _,this._customEditors=new Map,this._customRenders=new Map,this._taskbarProcessor=new I({"snkSimpleCrudTaskbar.form_regular":this.getButtons(!1,[p.GRID_MODE],!0),"snkSimpleCrudTaskbar.grid_regular":this.getButtons(!1,[p.DATA_EXPORTER,p.FORM_MODE]),"snkSimpleCrudTaskbar.form_selected":this.getButtons(!0,[p.GRID_MODE],!0),"snkSimpleCrudTaskbar.grid_selected":this.getButtons(!0,[p.DATA_EXPORTER,p.FORM_MODE]),"snkSimpleCrudTaskbar.finish_edition":this.getFinishEditionButtonsCallback.bind(this)}),this._showPopUpGridConfig=!1,this._showFormConfig=!1,this._currentViewMode=v.GRID,this._config=void 0,this._fieldToGetFocus=void 0,this._customContainerId=`SNK-SIMPLE-CRUD-CUSTOM-CONTAINER-${o.generateUUID()}`,this.dataState=void 0,this.dataUnit=void 0,this.entityName=void 0,this.mode=g.SERVER,this.gridConfig=void 0,this.formConfig=void 0,this.enableLockManger=!1,this._formFields=[],this._fieldsProps=new Map,this._enableContinuousInsert=!0,this.multipleSelection=void 0,this.useCancelConfirm=!0,this.pageSize=150,this.resourceID=void 0,this.enableGridInsert=!1,this.taskbarManager=void 0,this.messagesBuilder=void 0,this.useEnterLikeTab=!1,this.actionsList=void 0,this.configName=void 0,this.showConfiguratorButtons=void 0,this.gridLegacyConfigName=void 0,this.formLegacyConfigName=void 0,this.ignoreReadOnlyFormFields=!1,this.autoFocus=!0,this.domainMessagesBuilder=void 0,this.autoLoad=void 0}async addCustomEditor(i,t){if(this._grid&&this._form)return this._grid.addCustomEditor(i,t),void this._form.addCustomEditor(i,t);const s=new Map(this._customEditors);s.set(i,t),this._customEditors=s}async addGridCustomRender(i,t){if(this._grid)return void this._grid.addGridCustomRender(i,t);const s=new Map(this._customRenders);s.set(i,t),this._customRenders=s}handleResourceIDChanged(i,t){o.isEmpty(i)||i!==t&&(this.loadFormConfig(!0),this.loadGridConfig(!0))}async addCustomValueFormatter(i,t){this._grid.addCustomValueFormatter(i,t)}async removeCustomValueFormatter(i){this._grid.removeCustomValueFormatter(i)}async setFieldProp(i,t,s){const e=new Map(this._fieldsProps),n=this._fieldsProps.get(i);e.set(i,Object.assign(Object.assign({},n),{[t]:s})),this._fieldsProps=e}getFinishEditionButtonsCallback(){const i=["CANCEL","SAVE"];return this.enableGridInsert&&this._currentViewMode!==v.ATTACHMENT&&i.push(this._currentViewMode===v.GRID?p.FORM_MODE:p.GRID_MODE),i}getButtons(i,t,s){let e=i?L:z;return s&&(e=e.filter((i=>i!==p.REFRESH))),this.addConfigButton(this.resolveInMemoryBtns(e).concat(t))}addConfigButton(i){return void 0===this.configName?i:i.concat(p.CONFIGURATOR)}get application(){return h.getContextValue("__SNK__APPLICATION__")}resolveInMemoryBtns(i){const t=[...i];return this.mode===g.IN_MEMORY&&t.splice(1,1),t}async goToView(i){this._currentViewMode=i,this._viewStack&&this._viewStack.show(i)}actionClickListener(i){const t=i.detail;t===p.CONFIGURATOR?this._snkConfigurator.open():t===p.GRID_MODE?this.goToView(v.GRID):t===p.FORM_MODE&&this.goToView(v.FORM),i.stopPropagation()}async onChangeEntityName(i){if(this.dataUnit)return;const t=h.getContextValue("__SNK__APPLICATION__");this.dataUnit=await t.getDataUnit(i,null,null,this.configName)}onModeChange(){this.mode==g.IN_MEMORY&&this.initInMemoryDataUnit()}observeDataState(i,t){this.handleDataStateChange(i,t)}async observeFormLegacy(i,t){await this.handleUpdateFormLegacyConfig(i,t)}async observeGridLegacy(i,t){await this.handleUpdateGridLegacyConfig(i,t)}async handleDataStateChange(i,t){a.objectToString(t)!=a.objectToString(i)&&this.dataStateChange.emit(i),await this.processRmPrecision()}async processRmPrecision(){var i,t;const s=await this._snkDataUnit.getFieldsWithRmPrecision();for(const e of s||[]){if(!e)continue;const s=null===(t=null===(i=this.dataState)||void 0===i?void 0:i.rowMetadata)||void 0===t?void 0:t.getProp("rm_precision",e);(s||0===s)&&(await this.setFieldProp(e,"precision",s),await this.setFieldProp(e,"prettyPrecision",s))}this._rmPrecisionCustomValueFormatter.setDataState(this.dataState)}async handleUpdateGridLegacyConfig(i,t){null!=i&&i!=t&&this._gridConfigAlreadyLoaded&&await this.loadGridConfig(!0)}async handleUpdateFormLegacyConfig(i,t){null!=i&&i!=t&&this._formConfigAlreadyLoaded&&this.loadFormConfig(!0)}openConfig(i){this._snkConfigurator.close(),i===v.GRID?this.openGridConfig():i===v.FORM&&this.openFormConfig()}openGridConfig(){this._grid.getColumnsState().then((i=>{this._snkGridConfig.columns=i.filter((i=>i.name)),this._snkGridConfig.selectedIndex=0,this._showPopUpGridConfig=!0}))}async openFormConfig(){var i,t;if(this.formLegacyConfigName){const s=null===(i=this.messagesBuilder)||void 0===i?void 0:i.getMessage("snkSimpleCrud.formConfigUnavaliable.title",void 0),e=null===(t=this.messagesBuilder)||void 0===t?void 0:t.getMessage("snkSimpleCrud.formConfigUnavaliable.message",void 0);await this.application.alert(s,e)}else this._showFormConfig=!0}addGridLegacyConfigName(){this.gridLegacyConfigName&&this.configName&&R.addGridLegacyConfig(this.configName,this.gridLegacyConfigName)}loadGridConfig(i){if(void 0!==this.configName&&(null==this.gridConfig&&!this._gridConfigAlreadyLoaded||i))return this.addGridLegacyConfigName(),this._gridConfigAlreadyLoaded=!0,new Promise(((i,t)=>{R.loadGridConfig(this.configName,this.resolveResourceID()).then((t=>{this.setGridConfig(t),i()})).catch((i=>{t(i)}))}))}formConfigIsLoaded(){return null!=this.formConfig||this._formConfigAlreadyLoaded}async loadFormConfig(i=!1){if(void 0===this.configName)return;if(null==this._formConfigManager&&(this._formConfigManager=new D(this.configName,this.resolveResourceID(),void 0,this.dataUnit),this._formConfigManager.setConfig(this.formConfig)),this.formConfigIsLoaded()&&!i)return;this._formConfigAlreadyLoaded=!0;let t=await this._formConfigFetcher.fetchLegacyConfigurableForm(this.formLegacyConfigName);if(null!=t)return this._formConfigManager.setConfig(t),void this.setFormConfig(t);this.setFormConfig(await this._formConfigManager.loadConfig())}async componentWillRender(){this._resourceID=await this.application.getResourceID(),this.dataExporterProviderStore(),this._taskbarProcessor.process(this.getTaskBarId(),this.taskbarManager,this.dataState,this.getTaskBarDisabledButtons()),void 0!==this.configName&&(null!=this.gridConfig||this._gridConfigAlreadyLoaded||(await this.addGridLegacyConfigName(),this.loadGridConfig(),this.loadFormConfig()))}componentDidRender(){this._rmPrecisionCustomValueFormatter.setGrid(this._grid),this.addGridCustomValueFormattters(),this.setFieldsProps(),this.setCustomRenders(),this.setCustomEditors()}componentWillLoad(){this.processMetadata(),this.onModeChange(),this.configDatasource(),this._rmPrecisionCustomValueFormatter=new S,this._continuousInsertUtils=new b(this.application,this.resolveResourceID(),this.configName),this.enableGridInsert&&this._continuousInsertUtils.getConfig().then((i=>this._enableContinuousInsert=i))}componentDidLoad(){m.applyVarsGrid(this._element,this._grid),this.initKeyboardManager()}setCustomRenders(){if(this._grid)for(const[i,t]of this._customRenders)this._grid.addGridCustomRender(i,t),this._customRenders.delete(i)}setCustomEditors(){if(this._grid&&this._form)for(const[i,t]of this._customEditors)this._grid.addCustomEditor(i,t),this._form.addCustomEditor(i,t),this._customEditors.delete(i)}configDatasource(){this._multiSelectionListDataSource.setApplication(this.application),this._multiSelectionListDataSource.setDataUnit(this.dataUnit)}setFieldsProps(){if(this._form)for(const[i,t]of this._fieldsProps){for(const s in t)this._form.setFieldProp(i,s,t[s]);this._fieldsProps.delete(i)}}getTaskBarId(){var i,t;return(null===(i=this.dataState)||void 0===i?void 0:i.isDirty)?"snkSimpleCrudTaskbar.finish_edition":(null===(t=this.dataState)||void 0===t?void 0:t.selectionInfo)&&!this.dataState.selectionInfo.isAllRecords()&&this.dataState.selectionInfo.length>0?this._currentViewMode===v.GRID?"snkSimpleCrudTaskbar.grid_selected":"snkSimpleCrudTaskbar.form_selected":this._currentViewMode===v.GRID?"snkSimpleCrudTaskbar.grid_regular":"snkSimpleCrudTaskbar.form_regular"}initInMemoryDataUnit(){this._inMemoryLoader=new E(this._metadata,void 0,{autoLoad:this.autoLoad}),this.dataUnit=this._inMemoryLoader.dataUnit,this.dataUnitReady.emit(this.dataUnit)}setMetadata(i){return this._inMemoryLoader?this._inMemoryLoader.metadata=i:this.dataUnit&&(this.dataUnit.metadata=i),Promise.resolve()}setRecords(i){return this._inMemoryLoader?this._inMemoryLoader.records=i:this.dataUnit&&(this.dataUnit.records=i),Promise.resolve()}getRecords(){return Promise.resolve(this.dataUnit.records)}async openConfigurator(){var i;null===(i=this._snkConfigurator)||void 0===i||i.open()}async closeConfigurator(){var i;null===(i=this._snkConfigurator)||void 0===i||i.close()}async updateConfig(){null==this._formConfigManager&&(this._formConfigManager=new D(this.configName,this.resolveResourceID())),this._formConfigManager.setConfig(this.formConfig)}processMetadata(){const i=this._element.querySelectorAll("snk-field-metadata"),t=[],s={fields:[],emptyConfig:!1};i.forEach((i=>{const e={name:i.getAttribute("name")||i.getAttribute("label"),label:i.getAttribute("label"),dataType:r[i.getAttribute("dataType")]||r.TEXT,userInterface:n[i.getAttribute("userInterface")]||n.SHORTTEXT,readOnly:"true"==i.getAttribute("readOnly"),required:"true"==i.getAttribute("required"),tab:i.getAttribute("tab")||void 0,visible:"false"!=i.getAttribute("visible")};s.fields.push({name:e.name,tab:e.tab,visible:e.visible}),t.push(e)})),t.length>0&&(this.formConfig||(this.formConfig=s),this._metadata={name:"SimpleCrud",label:"SimpleCrud",fields:t})}addGridCustomValueFormattters(){var i,t,s;const e=(null===(i=this._metadata)||void 0===i?void 0:i.fields)||(null===(s=null===(t=this.dataUnit)||void 0===t?void 0:t.metadata)||void 0===s?void 0:s.fields);if(!e)return;const n=[];e.forEach((i=>{var t;(null===(t=i.properties)||void 0===t?void 0:t.rm_precision)&&!n.includes(i.name)&&n.push(i.name)})),n.forEach((i=>{this.addCustomValueFormatter(i,this._rmPrecisionCustomValueFormatter)}))}onDataStateChange(i){this.dataState=Object.assign({},i.detail)}getTaskBarDisabledButtons(){var i,t,s,e,n,o;const h=[];return(null===(i=this.dataState)||void 0===i?void 0:i.hasNext)||h.push(p.NEXT),(null===(t=this.dataState)||void 0===t?void 0:t.hasPrevious)||h.push(p.PREVIOUS),(null===(e=null===(s=this.dataState)||void 0===s?void 0:s.selectionInfo)||void 0===e?void 0:e.isEmpty())&&h.push(p.FORM_MODE),(null===(o=null===(n=this.dataState)||void 0===n?void 0:n.selectionInfo)||void 0===o?void 0:o.length)>1&&h.push(p.CLONE),h}handleCancelEdit(){var i;(null===(i=this.dataState)||void 0===i?void 0:i.recordsIsEmpty)&&(this.goToView(v.GRID),this.dataUnit.clearSelection())}handleConfiguratorEvent(i,t){i.stopImmediatePropagation(),"SAVE"!==t?this.configuratorCancel.emit():this.configuratorSave.emit()}getColumnSearch(i,t){return null!=this._columnSearch||(this._moreOptions=i,this._columnSearch=T(t,(({argument:i})=>new Promise((t=>{this._grid.filterColumns(i).then((i=>{t(i.filter((i=>!i.hidden)).map((i=>({label:i.label,value:i.name}))))}))}))),(t=>{var s;null!=t&&(this._grid.locateColumn(t.value),null===(s=i.hideActions)||void 0===s||s.call(i))}))),this._columnSearch}onSelectField(i,t){null!=i&&(this._fieldToGetFocus=i.value,t.hideActions())}getFieldSearch(i,t){return null!=this._fieldSearch||(this._moreOptions=i,i.addEventListener("ezPopoverOpen",(()=>this.findField())),this._fieldSearch=T(t,(({argument:i})=>this.fieldsOptionLoader(i)),(t=>this.onSelectField(t,i)))),this._fieldSearch}getFormFields(){var i,t;return null!==(t=null===(i=this.formConfig)||void 0===i?void 0:i.fields)&&void 0!==t?t:this._formFields}handleFormSetFields(i){a.equals(this._formFields,i)||(this._formFields=null!=i?i:[])}fieldsOptionLoader(i){const t=null==i?void 0:i.toLowerCase(),s=this.getFormFields().map((i=>{var t;return null===(t=this.dataUnit)||void 0===t?void 0:t.getField(i.name)})).filter((i=>{var s,e;return(null===(s=i.name)||void 0===s?void 0:s.toLowerCase().includes(t))||(null===(e=i.label)||void 0===e?void 0:e.toLowerCase().includes(t))})).map((i=>({value:i.name,label:i.label})));return Promise.resolve(s)}isGridInsertActive(){return this.enableGridInsert&&this.dataUnit.hasNewRecord()}getActionsList(){var i,t;const s=[{value:o.generateUUID(),label:null!==(t=null===(i=this.messagesBuilder)||void 0===i?void 0:i.getMessage("snkSimpleCrud.findColumn",void 0))&&void 0!==t?t:"Buscar",disableCloseOnSelect:!0,eagerInitialize:!0,itemBuilder:(i,t)=>this._currentViewMode===v.GRID?this.getColumnSearch(i,t):this.getFieldSearch(i,t)}];if(this.enableGridInsert&&s.push(this._continuousInsertUtils.actionContinuousInsert(this._enableContinuousInsert,(()=>{this._enableContinuousInsert=!this._enableContinuousInsert,this._continuousInsertUtils.handleSaveConfig(this._enableContinuousInsert)}))),this.isGridInsertActive())return s;if(null!=this.taskbarManager&&null!=this.taskbarManager.getMoreOptions){const i=this.getTopTaskBarId();return s.concat(this.taskbarManager.getMoreOptions(i,this.configName,this.dataState,this.actionsList))}return this.actionsList?s.concat(this.actionsList):s}getTopTaskBarId(){var i;return(null===(i=this.dataState)||void 0===i?void 0:i.isDirty)?`snkGridTopTaskbar.finish_edition${w.PRIMARY}`:`snkGridTopTaskbar.regular${w.PRIMARY}`}async keyDownListener(i){i.ctrlKey&&null!=i.key&&"F"===i.key.toUpperCase()&&null!=this._element&&(d.isHiddenElement(this._element)||(l.closeAll(),this._currentViewMode===v.GRID?await this.findColumn():await this.findField(),i.preventDefault()))}async findField(){await this.openSeach(this._fieldSearch)}async findColumn(){await this.openSeach(this._columnSearch)}async openSeach(i){await F(this._moreOptions,i)}clearFieldToFocusHandler(){this._fieldToGetFocus=void 0}connectedCallback(){window.addEventListener("keydown",this._keyDownHandler,{capture:!0})}disconnectedCallback(){window.removeEventListener("keydown",this._keyDownHandler)}gridConfigChangeHandler(i){i.stopPropagation(),this.configName&&R.saveGridConfig(i.detail,this.configName,this.resolveResourceID())}modalConfigChangeHandler(i){const t=i.detail;this._grid.setColumnsState(t.columns).then((()=>{this.setGridConfig(t),this.closeGridConfig(),this.dataExporterProviderStore()})),i.stopPropagation()}async dataExporterProviderStore(){if(null==this.dataUnit)return;if(null==this._grid)return;const i=new P(this.dataUnit,this._grid);O.set("exporterProviders",Object.assign(Object.assign({},O.get("exporterProviders")),{[this.getDataExporterStoreKey()]:i}))}getDataExporterStoreKey(){return`SnkSimpleCrudDataExporter:${null==this.configName?this.dataUnit.name:this.configName}`}setGridConfig(i){this.gridConfig=i,k.assertDefaultSorting(this.gridConfig,this.dataUnit)}setFormConfig(i,t){this.formConfig&&!t||(this.formConfig=i)}closeGridConfig(){this._showPopUpGridConfig=!1}closeFormConfig(){this._showFormConfig=!1}getPageSize(){return this.mode===g.IN_MEMORY?0:null==this.pageSize?150:this.pageSize}handleShowFormConfig(){return this._showFormConfig&&!this.formLegacyConfigName}resolveResourceID(){return o.isEmpty(this.resourceID)?this._resourceID:this.resourceID}getFormConfig(){var i;const t=null===(i=this._formConfigManager)||void 0===i?void 0:i.getConfig(this.dataUnit,this.ignoreReadOnlyFormFields);return this.configName||t?t:this.formConfig}updateFormConfig(){const i=Object.assign(Object.assign({},this.formConfig),{fields:this.dataUnit.metadata.fields});this.setFormConfig(i,!0),null==this._formConfigManager&&(this._formConfigManager=new D(this.configName,this.resolveResourceID())),this._formConfigManager.setConfig(this.formConfig)}handleDataUnitOnInsertionMode(){this.enableGridInsert||this.goToView(v.FORM)}async initKeyboardManager(){const i=new u,t=this.dataUnit||await this._snkDataUnit.getDataUnit();i.bind("F7",(()=>t.saveData()),{description:"Salva os dados.",element:this._element}).bind("F8",t.addRecord.bind(t),{description:"Adiciona um novo registro.",element:this._element}).bind("F9",t.removeSelectedRecords.bind(t),{description:"Remove o registro selecionado.",element:this._element}).bind("Escape",(()=>{t.isDirty()&&t.cancelEdition()}),{debounceTime:1e3,description:"Cancela uma ação.",element:this._element})}renderTaskbarContent(){var i;return s("snk-taskbar",{class:this._currentViewMode===v.FORM&&"ez-box ez-box--shadow ez-padding--small",dataUnit:this.dataUnit,primaryButton:(null===(i=this.dataState)||void 0===i?void 0:i.isDirty)?"SAVE":"INSERT","data-element-id":"grid_left",messagesBuilder:this.messagesBuilder,buttons:this._taskbarProcessor.buttons,actionsList:this.getActionsList(),disabledButtons:this._taskbarProcessor.disabledButtons,customButtons:this._taskbarProcessor.customButtons,"data-exporter-store-key":this.getDataExporterStoreKey(),slot:"leftButtons",presentationMode:w.SECONDARY},s("slot",{name:"TASKBAR_CUSTOM_ELEMENTS"}))}render(){if(null!=this.dataUnit)return s("snk-data-unit",{ref:i=>this._snkDataUnit=i,class:"simple-crud__container",dataUnit:this.dataUnit,useCancelConfirm:this.useCancelConfirm,onDataStateChange:i=>this.onDataStateChange(i),onCancelEdition:this.handleCancelEdit.bind(this),pageSize:this.getPageSize(),onInsertionMode:this.handleDataUnitOnInsertionMode.bind(this),onDataUnitReady:i=>this.dataUnitReady.emit(i.detail),ignoreSaveMessage:this._currentViewMode===v.GRID,onMessagesBuilderUpdated:i=>this.messagesBuilder=i.detail,onDataUnitFieldsHidded:this.updateFormConfig.bind(this),domainMessagesBuilder:this.domainMessagesBuilder},s("header",null,s("slot",{name:"snkSimpleCrudHeader"})),s("section",{class:"ez-box ez-box--shadow simple-crud__container-section"},s("ez-view-stack",{ref:i=>this._viewStack=i,"data-element-id":"simple-crud"},s("stack-item",null,s("ez-grid",{class:"ez-margin-bottom--large",ref:i=>this._grid=i,dataUnit:this.dataUnit,config:this.gridConfig,"no-header":!0,multipleSelection:this.multipleSelection,onEzDoubleClick:()=>this.goToView(v.FORM),onConfigChange:i=>this.gridConfigChangeHandler(i),columnfilterDataSource:this.dataUnit.name&&this.dataUnit.name.includes(E.IN_MEMORY_DATA_UNIT_NAME)?void 0:this._multiSelectionListDataSource,useEnterLikeTab:this.useEnterLikeTab,autoFocus:this.autoFocus,enableGridInsert:this.enableGridInsert,enableContinuousInsert:this._enableContinuousInsert,enableLockManger:this.enableLockManger},this.renderTaskbarContent(),s("div",{slot:"footer"},s("slot",{name:"snkSimpleCrudFooter"})))),s("stack-item",null,this.renderTaskbarContent(),s("ez-form",{ref:i=>this._form=i,class:"ez-margin-top--large "+(this.handleShowFormConfig()?"simple-crud__form--hidden":""),dataUnit:this.dataUnit,config:this.getFormConfig(),fieldToFocus:this._fieldToGetFocus,onEzFormSetFields:i=>this.handleFormSetFields(i.detail),onEzFormRequestClearFieldToFocus:this.clearFieldToFocusHandler.bind(this)}),this.handleShowFormConfig()&&s("snk-form-config",{messagesBuilder:this.messagesBuilder,dataUnit:this.dataUnit,configManager:this._formConfigManager,onConfigClose:()=>this.closeFormConfig()})),this.messagesBuilder&&s("snk-configurator",{ref:i=>this._snkConfigurator=i,viewMode:this._currentViewMode,messagesBuilder:this.messagesBuilder,onConfigSelected:i=>this.goToView(i.detail),onOpenConfig:i=>this.openConfig(i.detail),showActionButtons:this.showConfiguratorButtons,onSave:i=>this.handleConfiguratorEvent(i,"SAVE"),onCancel:i=>this.handleConfiguratorEvent(i,"CANCEL"),resourceID:this.resolveResourceID(),customContainerId:this._customContainerId})),s("div",{id:`${this._customContainerId}`},s("slot",{name:"SnkConfigContainerSlot"}))),s("ez-modal",{modalSize:"small",closeEsc:!1,closeOutsideClick:!1,opened:this._showPopUpGridConfig,onEzCloseModal:()=>this.closeGridConfig()},s("snk-grid-config",{ref:i=>this._snkGridConfig=i,config:this.gridConfig,"data-element-id":this._element.getAttribute(c.DATA_ELEMENT_ID_ATTRIBUTE_NAME),selectedIndex:0,configName:this.configName,onConfigChange:i=>this.modalConfigChangeHandler(i),onConfigCancel:()=>this.closeGridConfig(),resourceID:this.resolveResourceID()})))}get _element(){return e(this)}static get watchers(){return{resourceID:["handleResourceIDChanged"],entityName:["onChangeEntityName"],mode:["onModeChange"],dataState:["observeDataState"],formLegacyConfigName:["observeFormLegacy"],gridLegacyConfigName:["observeGridLegacy"]}}};N.style=".sc-snk-simple-crud-h{display:flex;height:100%;width:100%;--snk-simple-crud-grid--min-height:300px}.simple-crud__container.sc-snk-simple-crud{display:grid;grid-template-rows:auto 1fr;height:100%;width:100%}.simple-crud__container-section.sc-snk-simple-crud{flex-wrap:unset;flex-direction:column}.simple-crud__form--hidden.sc-snk-simple-crud{display:none}ez-grid.sc-snk-simple-crud{--ez-grid__container--shadow:none;--ez-grid--min-height:var(--snk-simple-crud-grid--min-height)}ez-form.sc-snk-simple-crud{min-height:300px}";export{N as snk_simple_crud}
Binary file
Binary file
@@ -1 +0,0 @@
1
- import{ObjectUtils as t}from"@sankhyalabs/core";import{R as a}from"./p-126c58ea.js";class e extends a{getData(a){const e=`cfg://auth/${a}`;return new Promise(((a,s)=>{this.loadResource(e).then((e=>{let s=t.stringToObject(e);s&&"object"==typeof s&&a(s)})).catch((t=>{s(t)}))}))}}var s;!function(t){t.INSERT="I",t.UPDATE="A",t.REMOVE="E",t.SHOW="C",t.CONFIG="F",t.CONFIG_NUMBER="N",t.CLONE="D",t.CONFIG_GRID="G"}(s||(s={}));export{s as A,e as a}
Binary file
Binary file
@@ -1 +0,0 @@
1
- import{r as t,h as i,H as s,g as e,c as n}from"./p-d2d301a6.js";import{ApplicationContext as o,StringUtils as r,ErrorException as a,WarningException as c,ObjectUtils as l,DateUtils as d,ServiceUtils as h,StorageType as u,ArrayUtils as g,ElementIDUtils as f}from"@sankhyalabs/core";import{D as m}from"./p-00278e07.js";import{P as p}from"./p-eaad0aa8.js";import"./p-e6683406.js";import"./p-30cf616e.js";import"./p-21749402.js";import"@sankhyalabs/ezui/dist/collection/utils/constants";import"@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata";import"./p-47d24ac8.js";import"./p-ff1990ad.js";import"./p-126c58ea.js";import{g as v}from"./p-7dd49d15.js";import{R as b}from"./p-688dcb4c.js";import{ApplicationUtils as k,DialogType as _}from"@sankhyalabs/ezui/dist/collection/utils";import{CheckMode as w}from"@sankhyalabs/ezui/dist/collection/components/ez-check/CheckMode";import{C as y}from"./p-9ffd9fc7.js";import{O as C}from"./p-95ce311a.js";import"./p-8d884fab.js";import"@sankhyalabs/ezui/dist/collection/components/ez-grid/utils";import"@sankhyalabs/core/dist/utils/SortingUtils";class x{execute(t){var i;const s={actionID:t.actionID,refreshType:null===(i=t.actionConfig.javaCall)||void 0===i?void 0:i.refreshType};return new Promise((t=>{t({execSource:s,callback:this.callExecJava})}))}async callExecJava(t){const i={requestBody:{javaCall:t}};await m.get().callServiceBroker("ActionButtonsSP.executeJava",JSON.stringify(i))}}class S{execute(t){var i;const s={actionID:t.actionID,refreshType:null===(i=t.actionConfig.runScript)||void 0===i?void 0:i.refreshType};return new Promise((t=>{t({execSource:s,callback:this.callExecScript})}))}async callExecScript(t){const i={runScript:t};await m.get().callServiceBroker("ActionButtonsSP.executeScript",i)}}class z{constructor(){this._application=o.getContextValue("__SNK__APPLICATION__")}async execute(t,i){const s=t.resourceID;if(!s)return;let e=await this.buildLaunchObject(t,i);return this._application.openApp(s,e),null}buildLaunchObject(t,i){return new Promise((s=>{let e=t.actionConfig.params.param;if(e&&e.length>0){let n={},o=[];e.forEach((s=>{const e=s.localField;let c=i.getFieldValue(e);if(!c){let s=i.getField(e).label;throw s=r.isEmpty(i.getField(e).label)?e:s,new a(this._application.messagesBuilder.getMessage("snkActionsButton.title.error",void 0),this._application.messagesBuilder.getMessage("snkActionsButton.launchScreen.emptyField",{description:t.description,localFieldLabel:s}))}c=r.isEmpty(c.toString())?void 0:c.toString(),n[s.targetField]=c,o.push({fieldName:s.targetField,value:c})})),n.ACTION_PARAMETERS=o,n.call_time=Date.now(),s(n)}s(null)}))}}class A{execute(t){var i,s,e;const n=null===(i=t.actionConfig.dbCall)||void 0===i?void 0:i.name,o=null===(s=t.actionConfig.dbCall)||void 0===s?void 0:s.rootEntity,r={actionID:t.actionID,refreshType:null===(e=t.actionConfig.dbCall)||void 0===e?void 0:e.refreshType,procName:n,rootEntity:o};return new Promise((t=>{t({execSource:r,callback:this.callExecProcedure})}))}async callExecProcedure(t){const i={requestBody:{stpCall:t}};await m.get().callServiceBroker("ActionButtonsSP.executeSTP",JSON.stringify(i))}}var O,P;!function(t){t.LAUNCH_SCREEN="LC",t.JAVASCRIPT="SC",t.JAVA="RJ",t.PROCEDURE="SP",t.EMBEDDED="EB"}(O||(O={}));class N{constructor(t){this.actionType=t,this._application=o.getContextValue("__SNK__APPLICATION__")}get executor(){switch(this.actionType){case O.LAUNCH_SCREEN:return new z;case O.JAVASCRIPT:return new S;case O.JAVA:return new x;case O.PROCEDURE:return new A;default:throw new a(this._application.messagesBuilder.getMessage("snkActionsButton.title.error",void 0),this._application.messagesBuilder.getMessage("snkActionsButton.action.nonExistentType",{actionType:this.actionType}))}}}!function(t){t.NONE="NONE",t.PARENT="PARENT",t.MASTER="MASTER",t.ALL="ALL"}(P||(P={}));const D="__MASTER_ROW__";class I{constructor(t,i,s){var e;this._lastValuesCache={},this._actionsExecuteInterface=t,this._dataUnit=i,this._selectedRows=(null===(e=null==i?void 0:i.getSelectionInfo())||void 0===e?void 0:e.isAllRecords())?[]:null==i?void 0:i.getSelectionInfo().records,this._application=o.getContextValue("__SNK__APPLICATION__"),this._appResourceId=s}getPrimaryKeys(){return v(this._dataUnit).map((({name:t})=>t))}apply(t,i){this._application.closePopUp(),this._actionsExecuteInterface.execute(t,this._dataUnit).then((({execSource:s,callback:e})=>{this.resolvePromptParams(t,s,i).then((()=>{this.actionExecute(s,e)}))}))}async execute(t){var i;if(!t.actionConfig)throw new c(this._application.messagesBuilder.getMessage("snkActionsButton.title.warning",void 0),this._application.messagesBuilder.getMessage("snkActionsButton.action.incorrectAction",{description:t.description}));if(null===(i=t.actionConfig.params)||void 0===i?void 0:i.promptParam){const i=t.actionConfig.params.promptParam;let s=!1;for(let t=0;t<i.length;t++)if(!s&&"true"===i[t].saveLast){s=!0;break}s&&(t.actionConfig.params.promptParam=await this.loadSavedValuesIntoParams(t));const e=document.createElement("snk-actions-form");window.document.body.appendChild(e),e.action=l.copy(t),e.applyParameters=t=>{this.apply(t,s)},e.openPopup()}else t.type!=O.LAUNCH_SCREEN?this._actionsExecuteInterface.execute(t,this._dataUnit).then((({execSource:t,callback:i})=>{this.actionExecute(t,i)})):this._actionsExecuteInterface.execute(t,this._dataUnit)}loadSavedValuesIntoParams(t){return this.loadLastValues(t).then((i=>{let s=t.actionConfig.params.promptParam;return i&&i.param.forEach((t=>{s=s.map((i=>i.name!==t.paramName?i:Object.assign(Object.assign({},i),"B"===i.paramType?{value:"S"===t.$}:{value:t.$})))})),s}))}actionExecute(t,i){t.virtualPage=this.buildVirtualPage(),this.prepareAndExecute(t,i),this.recordsReloader(t.refreshType)}resolvePromptParams(t,i,s){return new Promise((e=>{let n=[];t.actionConfig.params.promptParam.forEach((t=>{n.push(this.buildPromptParam(t))})),this.putParamsOnExecSource(n,i),s&&this.saveLastValues(t,n),e()}))}buildPromptParam(t){let i,s,e=t.paramType,n=!1,o=t.value;switch(e){case p.DATE:e="D";break;case p.DATETIME:e="H";break;case p.DECIMAL:e="F",i={"sk-precision":Number(t.precision)};break;case p.BOOLEAN:e="S",n=!0,o=t.value?"S":"N";break;case p.ENTITY:i={"sk-entity-name":t.entityName,"sk-allow-show-hierarchical-mode":t.hierarchyEntity,"sk-data-type":"S"},t.hierarchyEntity&&t.entityPK&&(s=t.entityPK),o=t.value?Number(t.value):null;break;case p.OPTIONS:e="O";let r=t.options.split(";").map((function(t,i){let s,e;if(t.indexOf("=")>-1){let i=t.split("=");s=i[0],e=i[1]}else s=i+1,e=t;return{data:s,value:e}}));i={"sk-options":r}}return{description:t.label,required:"true"==t.required,fieldName:t.name,fieldNameOri:t.name,entityPK:s,paramType:t.paramType,type:e,isCheckbox:n,saveLast:t.saveLast,fieldProp:i,value:o,isGeneratedName:t.isGeneratedName}}putParamsOnExecSource(t,i){i.params={param:[]},t.forEach((t=>{if(t.isGeneratedName&&t.value)throw new a(this._application.messagesBuilder.getMessage("snkActionsButton.title.error",void 0),this._application.messagesBuilder.getMessage("snkActionsButton.action.emptyParamName",void 0));r.isEmpty(t.value)||i.params.param.push({type:this.getParamDataType(t.paramType),paramName:t.fieldName,$:this.getParamValue(t)})}))}getParamDataType(t){let i;switch(t){case"D":i="F";break;case"DT":case"DH":i="D";break;case"B":case"ENTITY":case"SO":i="S";break;default:i=t}return i}getParamValue(t){let i=t.value;return i?("DT"==t.paramType?i=d.formatDate(i):"DH"==t.paramType&&(i=d.formatDateTime(i)),i):i}async loadLastValues(t){const i=await this.buildResourceId(t.actionID);return new Promise(((t,s)=>{if(this._lastValuesCache[i])t(this._lastValuesCache[i]);else{const e={config:{chave:i,tipo:"T"}};m.get().callServiceBroker("SystemUtilsSP.getConf",e).then((s=>{var e,n;let o;(null===(n=null===(e=s.config)||void 0===e?void 0:e.data)||void 0===n?void 0:n.params)&&(o=s.config.data.params,Array.isArray(o.param)||(o.param=[o.param])),this._lastValuesCache[i]=o,t(o)})).catch((t=>{s(t)}))}}))}async saveLastValues(t,i){if(this._application){let s={params:{param:[]}};i.forEach((t=>{"true"==t.saveLast&&s.params.param.push({paramName:t.fieldName,$:t.value})}));const e=await this.buildResourceId(t.actionID);this._lastValuesCache[e]=s.params,this._application.saveConfig(e,s)}}async buildResourceId(t){return this._appResourceId+".actionconfig."+t}prepareAndExecute(t,i){this.addRows(t),i(t)}addRows(t){const i=this.getPrimaryKeys(),s={row:[]},e=this._selectedRows;for(const t in e){const n=e[t],o={};n.hasOwnProperty(D)&&(o.master="S",o.entityName=n.__ENTITY_NAME__,delete n[D],delete n.__ENTITY_NAME__),o.field||(o.field=[]);for(const t of i)o.field.push({fieldName:t,$:n[t]});s.row.push(o)}s.row.length>0&&(t.rows=s)}recordsReloader(t){switch(t){case P.NONE:break;case P.PARENT:case P.MASTER:case P.ALL:this._dataUnit.loadData();break;default:this._dataUnit.reloadCurrentRecord()}}buildVirtualPage(){var t,i,s,e;if(null===(i=null===(t=this._dataUnit)||void 0===t?void 0:t.getSelectionInfo())||void 0===i?void 0:i.isAllRecords())return{filters:{filters:null===(s=this._dataUnit)||void 0===s?void 0:s.getAppliedFilters()},orders:{orders:null===(e=this._dataUnit)||void 0===e?void 0:e.getSort()}}}}class E{async clientConfirm(t,i){return new Promise((s=>{const e=o.getContextValue("__SNK__APPLICATION__");let n="";t.content.event.hasOwnProperty("stpCall")?(i.requestBody=t.content.event.stpCall,n=O.PROCEDURE):t.content.event.hasOwnProperty("runScript")?(i.requestBody=t.content.event.runScript,n=O.JAVASCRIPT):t.content.event.hasOwnProperty("javaCall")&&(i.requestBody=t.content.event.javaCall,n=O.JAVA);let r={type:"S",sequence:t.content.event.sequence};i.requestBody.params?Array.isArray(i.requestBody.params.param)||(i.requestBody.params.param=[i.requestBody.params.param]):i.requestBody.params={param:[]},i.requestBody.params.param.push(r);const a=t.content.event.title.$,c=t.content.event.message.$;let l;switch(n){case O.JAVASCRIPT:l={runScript:i.requestBody};break;case O.PROCEDURE:l={requestBody:{stpCall:i.requestBody}};break;case O.JAVA:l={requestBody:{javaCall:i.requestBody}}}if("S"==t.content.event.showNoOption){r.paramName="__ESCOLHA_SIMNAO__";const t=document.createElement("snk-client-confirm");window.document.body.appendChild(t),t.titleMessage=a,t.message=c,t.accept=async()=>{r.$="S",await i.reCall(l),s()},t.cancel=async()=>{r.$="N",await i.reCall(l),s()},t.openPopup()}else e.confirm(a,c,null,"warn",{labelCancel:"Cancelar",labelConfirm:"Sim"}).then((async t=>{t&&(r.paramName="__CONFIRMACAO__",r.$="S",await i.reCall(l),s())}))}))}}const j=class{constructor(i){t(this,i),this.CLIENT_EVENT_CONFIRM_NAME="br.com.sankhya.actionbutton.clientconfirm",this._actions=[],this.handleClick=t=>{const i=this._actions.find((i=>i.actionID==t.detail.id)),s=new N(i.type).executor;new I(s,this._dataUnit,this._resourceID).execute(Object.assign({},i)),this._showDropdown=!1},this._items=[],this._showDropdown=!1}async getActions(){const t=await h.useCacheWithService(`SnkActionsButton_${this._entityName}-${this._resourceID}`,(async()=>{var t;const i={param:{entityName:this._entityName,resourceID:this._resourceID}};return(null===(t=(await m.get().callServiceBroker("ActionButtonsSP.getActions",i)).actions)||void 0===t?void 0:t.action)||[]}),u.IN_MEMORY_CACHE);this._actions=j.parameters.isOrderActions?g.sortAlphabetically(t,"description"):t}controlDropdown(){this._showDropdown=!this._showDropdown}canShowDropdown(){var t;return this._showDropdown&&(null===(t=this._items)||void 0===t?void 0:t.length)>0}positionDropdown(){var t;const i=null===(t=this._ezButton)||void 0===t?void 0:t.getBoundingClientRect();i&&this._dropdownParent&&(this._dropdownParent.style.top=i.y+i.height+5+"px",this._dropdownParent.style.left=i.x+"px")}closeDropdown(t){const i=null==t?void 0:t.target;i&&(i.closest(".snk-actions-button")||(this._showDropdown=!1))}setEvents(){document.removeEventListener("click",this.closeDropdown.bind(this)),document.addEventListener("click",this.closeDropdown.bind(this)),document.removeEventListener("scroll",this.positionDropdown.bind(this)),document.addEventListener("scroll",this.positionDropdown.bind(this))}async componentWillLoad(){this._application=o.getContextValue("__SNK__APPLICATION__"),await this.loadParameters();const t=this._element.parentElement;this._dataUnit=null==t?void 0:t.dataUnit,this._resourceID=null==t?void 0:t.resourceID,this._entityName=this._dataUnit.name.split("/")[2],null==this._resourceID&&(this._resourceID=await b.getResourceID()),this.setEvents(),await this.getActions(),this.loadItems()}async componentDidLoad(){if(this._element&&(f.addIDInfo(this._element),this.positionDropdown(),!await this._application.hasClientEvent(this.CLIENT_EVENT_CONFIRM_NAME))){const t=new E;this._application.addClientEvent(this.CLIENT_EVENT_CONFIRM_NAME,t.clientConfirm)}}componentDidUpdate(){this.positionDropdown()}loadItems(){this._actions&&0!=this._actions.length&&this._actions.forEach((t=>{this._items.push({id:t.actionID,label:t.description})}))}getElementID(t){return{[f.DATA_ELEMENT_ID_ATTRIBUTE_NAME]:f.getInternalIDInfo(t)}}async loadParameters(){null==j.parameters.isOrderActions&&(j.parameters.isOrderActions=await this._application.getBooleanParam("global.ordenar.acoes.personalizadas"))}render(){return i(s,null,this._actions&&this._actions.length>0&&i("div",{class:`ez-padding-left--medium snk-actions-button\n ${this.canShowDropdown()?" ez-elevation--16":""}\n `},i("ez-button",Object.assign({ref:t=>this._ezButton=t,iconName:"acao",size:"small",mode:"icon",title:this._application.messagesBuilder.getMessage("snkActionsButton.title.actions",void 0),onClick:()=>this.controlDropdown()},this.getElementID("button"))),i("div",Object.assign({ref:t=>this._dropdownParent=t,class:(this.canShowDropdown()?"snk-actions-button__dropdown--show":"snk-actions-button__dropdown")+"\n "},this.getElementID("dropdown")),this.canShowDropdown()&&i("ez-dropdown",Object.assign({items:this._items,onEzClick:t=>this.handleClick(t)},this.getElementID("dropdown"))))),this.canShowDropdown()&&i("div",Object.assign({class:"ez-scrim ez-scrim--light"},this.getElementID("ezScrim"))))}get _element(){return e(this)}};j.parameters={isOrderActions:null},j.style=".sc-snk-actions-button-h{display:flex;width:fit-content;height:fit-content}.snk-actions-button.sc-snk-actions-button{display:flex;width:fit-content;height:fit-content}.snk-actions-button__dropdown--show.sc-snk-actions-button{display:flex;flex-direction:column;position:fixed}.snk-actions-button__dropdown.sc-snk-actions-button>ez-dropdown.sc-snk-actions-button{position:relative}.snk-actions-button__dropdown.sc-snk-actions-button{display:none}";const L=class{constructor(i){t(this,i),this.configChange=n(this,"configChange",7),this.configCancel=n(this,"configCancel",7),this._orderListItems=[],this._orderPriorityList=[],this._columListItems=[],this._selectedIndex=-1,this._dataChanged=!1,this._componenteInternalKey=Date.now(),this.selectedIndex=0,this.columns=void 0,this.config=void 0,this.configName=void 0,this.resourceID=void 0}getMessage(t,i){return o.getContextValue("__SNK__APPLICATION__").messagesBuilder.getMessage(t,i)}getSortableColumns(){let t=[];return this.columns.filter((t=>{var i;return r.getBooleanValue(null===(i=null==t?void 0:t.props)||void 0===i?void 0:i.get("sortable"),!0)})).forEach((i=>{var s;let e=null===(s=this.config)||void 0===s?void 0:s.columns.find((t=>t.name===i.name)),n={name:i.name,label:i.label};e&&(n.orderIndex=e.orderIndex,n.ascending=e.ascending),i.hidden||t.push(n)})),t}createOrderList(){let t=this.getSortableColumns();t.sort(((t,i)=>0!=t.orderIndex||0!=i.orderIndex||null==t.ascending&&null==i.ascending?null!=t.ascending&&null!=i.ascending?t.orderIndex-i.orderIndex:null!=t.ascending||null!=i.ascending?null!=t.ascending?-1:null!=i.ascending?1:0:t.orderIndex-i.orderIndex:null!=t.ascending?-1:null!=i.ascending?1:0)),this._orderListItems=t}createColumnList(){let t={group:this.getMessage("snkGridConfig.group.visible"),items:[]},i={group:this.getMessage("snkGridConfig.group.hidden"),items:[],sort:C.asc.value};this.columns.forEach((s=>{let e={label:s.label};s.hidden?i.items.push(e):t.items.push(e)})),this._columListItems=[t,i]}createColumnListSlotDataElementId(t){return`configItem_${r.replaceAccentuatedChars(r.toCamelCase(t.label))}`}buildColumnListSlot(t,s){const e=this.createColumnListSlotDataElementId(t);return i("div",null,i("ez-check",{mode:w.SWITCH,id:w.SWITCH+((null==t?void 0:t.label)||"")+((null==s?void 0:s.group)||""),value:s.group===this.getMessage("snkGridConfig.group.visible"),"data-element-id":e,onEzChange:i=>{this.switchColumnGroup(i,t)}}))}createOrderListSlotDataElementId(t){return`${this._element.getAttribute(f.DATA_ELEMENT_ID_ATTRIBUTE_NAME)}_configItem_${r.toCamelCase(t.label)}`}buildOrderListSlot(t){const s=this.createOrderListSlotDataElementId(t);let e=C.none.value;return null!=(null==t?void 0:t.ascending)&&(e=1==t.ascending?C.asc.value:C.desc.value),i("div",null,i("snk-select-box",{selectedOption:e,key:"snk-select-box-"+this._componenteInternalKey+"-"+t,"data-element-id":s,onEzChange:i=>{i.stopPropagation(),this.updateOrder(i.detail,t.label)}}))}updateOrder(t,i){var s;this._dataChanged=!0;let e,n=[...this.columns],o=n.find((t=>t.label===i));o&&(o.sort=t.value===C.none.value?void 0:t.value),(null===(s=this._orderPriorityList)||void 0===s?void 0:s.length)>0?(this._orderPriorityList.find((t=>t.label===o.label)).sort=t,this._orderPriorityList.filter((t=>t.sort)).forEach(((t,i)=>{t.label===o.label&&(o.sortIndex=i)}))):(e=n.filter((t=>t.sort&&!0!==t.hidden)).map(((t,i)=>({label:t.label,orderIndex:i}))),e.forEach((t=>{n.find((i=>i.label===t.label)).sortIndex=t.orderIndex}))),this.columns=n}switchColumnGroup(t,i){t.stopPropagation();let s=[...this._columListItems];if(this._dataChanged=!0,!0===t.detail){let t=s.find((t=>t.group===this.getMessage("snkGridConfig.group.hidden"))),e=t.items.findIndex((t=>t.label===i.label));e>=0&&t.items.splice(e,1),s.find((t=>t.group===this.getMessage("snkGridConfig.group.visible"))).items.push(i),this._columListItems=s,this.createOrderList()}else if(!1===t.detail){let t=s.find((t=>t.group===this.getMessage("snkGridConfig.group.visible"))),e=t.items.findIndex((t=>t.label===i.label));e>=0&&t.items.splice(e,1),s.find((t=>t.group===this.getMessage("snkGridConfig.group.hidden"))).items.push(i),this._columListItems=s,this.createOrderList()}}finish(){if(!this._dataChanged)return void this.closeConfig();let t=[];this._columListItems.forEach((i=>{i.items.forEach((s=>{const e=this.columns.find((t=>t.label===s.label));let n=Object.assign({},e);n.hidden=i.group===this.getMessage("snkGridConfig.group.hidden"),t.push(n)}))})),this.columns=t,this._dataChanged=!1,this.closeConfig(),this.save()}saveGridConfigOnStorage(t){y.saveGridConfig(t,this.configName,this.resourceID).then((t=>{this.configChange.emit(t),this._orderList.clearHistory(),k.info(this.getMessage("snkGridConfig.info.successfullyConfigSaved"),{iconName:"check"})}))}reOrderPriorityColumns(t,i){let s=[];s=t.filter((t=>t.sort&&!0!==t.hidden)).map((t=>({label:t.label,orderIndex:0})));let e=0,n=[];return i.forEach((t=>{let i=s.find((i=>i.label===t.label));i&&(i.orderIndex=e,n.push(i),e++)})),n.length>0&&(s=n),s}save(){var t;let i;i=this.config?this.config:this.createConfigFromState(this.columns);let s,e=[];(null===(t=this._orderPriorityList)||void 0===t?void 0:t.length)>0&&(s=this.reOrderPriorityColumns(this.columns,this._orderPriorityList)),this.columns.forEach((t=>{let n=i.columns.find((i=>t.name===i.name));!0===t.hidden&&n||(n?n.width=t.width:!1===t.hidden&&(n={name:t.name,width:t.width,orderIndex:0}),n&&(t.sort?(n.ascending=t.sort.toUpperCase()===C.asc.value,s?function(t,i){if(s){let e=s.find((i=>i.label===t.label));e&&(i.orderIndex=e.orderIndex)}}(t,n):n.orderIndex=t.sortIndex):(delete n.ascending,n.orderIndex=0),e.push(n)))})),i.columns=e,this.saveGridConfigOnStorage(i)}createConfigFromState(t){let i={columns:[]};return t.forEach((t=>{if(!t.hidden){let s={name:t.name};t.width&&(s.width=t.width),t.sort?(s.ascending=t.sort.toUpperCase()===C.asc.value,s.orderIndex=t.sortIndex):s.orderIndex=0,s&&i.columns.push(s)}})),i}async locateColumn(t,i){var s;const e="Enter"===t.key;if(!(i=i||(null===(s=t.currentTarget)||void 0===s?void 0:s.value)))return void this.removeSelection();const n=await this.getMatchedIndexes(i),o=this.getNewSelectedIndex(n,e);this._selectedIndex=o,1===this.selectedIndex?this.updateOrderListSelection(o):this.updateColumnListSelection(o)}async getMatchedIndexes(t){const i=[];return 1===this.selectedIndex?(await this._orderList.getList()).forEach(((s,e)=>{this.compareWords(s,t)&&i.push(e)})):this.columns.forEach(((s,e)=>{this.compareWords(s,t)&&i.push(e)})),i}getNewSelectedIndex(t,i){if(0===t.length)return-1;if(i)for(const i of t)if(i>this._selectedIndex)return i;return t[0]}updateOrderListSelection(t){-1!==t?this._orderList.getList().then((i=>{const s=i[t];s?this._orderList.setSelection(s,!0):this._orderList.removeSelection()})):this._orderList.removeSelection()}updateColumnListSelection(t){if(-1===t)return void this._columnList.removeSelection();const i=this.columns[t];if(i){const t=this._columListItems.map((t=>t.items)).flat().find((t=>t.label===i.label));t?this._columnList.setSelection(t,!0):this._columnList.removeSelection()}else this._columnList.removeSelection()}removeSelection(){1===this.selectedIndex?this._orderList.removeSelection():this._columnList.removeSelection()}compareWords(t,i){var s,e;const n=null===(s=r.replaceAccentuatedChars(null==t?void 0:t.label))||void 0===s?void 0:s.toUpperCase(),o=null===(e=r.replaceAccentuatedChars(i))||void 0===e?void 0:e.toUpperCase();return!r.isEmpty(n)&&!r.isEmpty(o)&&n.includes(o)}getColumnNames(){const t=[];return t.push(this.getMessage("snkGridConfig.tab.columns")),t.push(this.getMessage("snkGridConfig.tab.lineOrdering")),t.join(",")}closeConfig(){if(this._orderList.scrollToTop(),this._columnList.scrollToTop(),this._searchElement.value="",this._dataChanged){let t={canClose:!1,labelCancel:this.getMessage("snkGridConfig.confirm.cancel"),labelConfirm:this.getMessage("snkGridConfig.confirm.save"),btnConfirmDanger:!1};k.confirm(this.getMessage("snkGridConfig.confirm.alert"),this.getMessage("snkGridConfig.confirm.msgCancel"),null,_.WARN,t).then((t=>{t?this.finish():(this._dataChanged=!1,this.configCancel.emit(),this._orderList.clearHistory(),this._componenteInternalKey=Date.now())}))}else this.configCancel.emit(),this._orderList.clearHistory()}handleTabChange(t){null!=(null==t?void 0:t.index)&&(this.selectedIndex!==t.index&&(0===t.index?this._orderList.scrollToTop():1===t.index&&this._columnList.scrollToTop(),this._searchElement.value=""),1===t.index&&this.createOrderList(),this.selectedIndex=t.index)}handleColumnListChange(t){var i;if(t.detail){let s=null===(i=t.detail.find((t=>t.group===this.getMessage("snkGridConfig.group.visible"))))||void 0===i?void 0:i.items;s&&(this._dataChanged=!0,this._orderListItems=s)}}handleOrderListChange(t){if(t.detail){let i=t.detail;i&&(this._dataChanged=!0,this._orderPriorityList=i)}}componentWillRender(){var t;(null===(t=this.columns)||void 0===t?void 0:t.length)>0&&this.createColumnList()}componentDidRender(){var t;(null===(t=this.columns)||void 0===t?void 0:t.length)>0&&this.locateColumn(new KeyboardEvent("arrow-right",{key:"ArrowRight"}),this._searchElement.value)}componentDidLoad(){f.addIDInfo(this._element)}render(){return i(s,null,i("div",{class:"grid-config__header"},i("div",{class:"title-container"},i("div",{class:""},i("label",{class:"title"},this.getMessage("snkGridConfig.gridConfiguration")),i("label",{class:"subtitle"},this.getMessage("snkGridConfig.columnVisibilityOrder"))),i("div",{class:"button-close"},i("ez-button",{mode:"icon",iconName:"close",size:"medium",onClick:()=>this.closeConfig()}))),i("div",{class:"tabselector-container"},i("ez-tabselector",{selectedIndex:this.selectedIndex,onEzChange:t=>{this.handleTabChange(t.detail)},tabs:this.getColumnNames()})),i("div",null,i("ez-text-input",{"data-element-id":"searchColums",ref:t=>this._searchElement=t,label:this.getMessage("snkGridConfig.findColumn"),onKeyUp:t=>this.locateColumn(t)},i("ez-icon",{slot:"leftIcon",size:"medium",iconName:"search"})))),i("div",{class:"grid-config__main"},i("ez-list",{ref:t=>this._columnList=t,class:0===this.selectedIndex?"":"hidden",dataSource:this._columListItems,onEzChange:t=>this.handleColumnListChange(t),ezDraggable:!0,ezSelectable:!0,itemSlotBuilder:(t,i)=>this.buildColumnListSlot(t,i),useGroups:!0,"data-element-id":"configCols"}),i("div",{class:1===this.selectedIndex?"group-name":"hidden"},this.getMessage("snkGridConfig.info.sortingSequence")),i("ez-list",{ref:t=>this._orderList=t,class:1===this.selectedIndex?"height-calc":"hidden",dataSource:this._orderListItems,ezSelectable:!0,onEzChange:t=>this.handleOrderListChange(t),ezDraggable:!0,itemSlotBuilder:t=>this.buildOrderListSlot(t),"data-element-id":"configDataOrder"})),i("div",{class:"grid-config__footer"},i("ez-button",{class:"padding-right--medium",label:this.getMessage("snkGridConfig.cancel"),onClick:()=>this.closeConfig()}),i("ez-button",{label:this.getMessage("snkGridConfig.complete"),class:"ez-button--primary",onClick:()=>this.finish()})))}static get assetsDirs(){return["../assets"]}get _element(){return e(this)}};L.style='.sc-snk-grid-config-h{--snk-grid-config__footer--padding-top:var(--space--medium, 12px);--snk-grid-config__main--padding-right:var(--space--medium, 12px);--snk-grid-config__tabselector-container--padding:var(--space--medium, 12px);--snk-grid-config__button-close--padding-left:var(--space--medium, 12px);--snk-grid-config__title--color:var(--title--primary, #2B3A54);--snk-grid-config__title--font-family:var(--font-pattern, "Roboto");--snk-grid-config__title--font-size:var(--title--large, 20px);--snk-grid-config__title--font-weight:var(--text-weight--extra-large, 700);--snk-grid-config__subtitle--font-family:var(--font-pattern, "Roboto");--snk-grid-config__subtitle--font-size:var(--text--medium, 14px);--snk-grid-config__group--font-family:var(--font-pattern, "Roboto");--snk-grid-config__group--font-size:var(--text--medium, 14px);--snk-grid-config__group--font-weight:var(--text-weight--large, 600);--snk-grid-config__group--padding-bottom:var(--space-small, 6px);--snk-grid-config__scrollbar--color-default:var(--scrollbar--default, #626e82);--snk-grid-config__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--snk-grid-config__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--snk-grid-config__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--snk-grid-config__scrollbar--border-radius:var(--border--radius-small, 6px);--snk-grid-config__scrollbar--width:var(--space--medium, 12px);display:grid;grid-template-rows:auto 1fr auto;max-height:100%;width:100%}@media screen and (min-width: 480px){.sc-snk-grid-config-h{width:359px;max-width:359px}}.padding-right--medium.sc-snk-grid-config{padding-right:var(--space--medium)}ez-list.sc-snk-grid-config{height:100%}.height-calc.sc-snk-grid-config{max-height:calc(100% - 24px)}.grid-config__footer.sc-snk-grid-config{display:flex;justify-content:flex-end;width:100%;padding-top:var(--snk-grid-config__footer--padding-top)}.hidden.sc-snk-grid-config{display:none}.tabselector-container.sc-snk-grid-config{padding:var(--snk-grid-config__tabselector-container--padding) 0}.button-close.sc-snk-grid-config{padding-left:var(--snk-grid-config__button-close--padding-left)}.title-container.sc-snk-grid-config{display:flex;justify-content:space-between;align-items:center;width:100%}.title.sc-snk-grid-config{display:flex;margin:0;line-height:normal;letter-spacing:0em;text-align:left;color:var(--snk-grid-config__title--color);font-size:var(--snk-grid-config__title--font-size);font-family:var(--snk-grid-config__title--font-family);font-weight:var(--snk-grid-config__title--font-weight)}.subtitle.sc-snk-grid-config{color:var(--text--primary);font-size:var(--snk-grid-config__subtitle--font-size);font-family:var(--snk-grid-config__subtitle--font-family)}.grid-config__main.sc-snk-grid-config{overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--snk-grid-config__scrollbar--color-clicked) var(--snk-grid-config__scrollbar--color-background);padding-right:var(--snk-grid-config__main--padding-right)}.grid-config__main.sc-snk-grid-config::-webkit-scrollbar{width:var(--snk-grid-config__scrollbar--width);max-width:var(--snk-grid-config__scrollbar--width);min-width:var(--snk-grid-config__scrollbar--width);background-color:var(--snk-grid-config__scrollbar--color-background)}.grid-config__main.sc-snk-grid-config::-webkit-scrollbar-track{background-color:var(--snk-grid-config__scrollbar--color-background);border-radius:var(--snk-grid-config__scrollbar--border-radius)}.grid-config__main.sc-snk-grid-config::-webkit-scrollbar-thumb{background-color:var(--snk-grid-config__scrollbar--color-default);border-radius:var(--snk-grid-config__scrollbar--border-radius)}.grid-config__main.sc-snk-grid-config::-webkit-scrollbar-thumb:vertical:hover,.grid-config__main.sc-snk-grid-config::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--snk-grid-config__scrollbar--color-hover)}.grid-config__main.sc-snk-grid-config::-webkit-scrollbar-thumb:vertical:active,.grid-config__main.sc-snk-grid-config::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--snk-grid-config__scrollbar--color-clicked)}.group-name.sc-snk-grid-config{font-family:var(--snk-grid-config__group--font-family);font-size:var(--snk-grid-config__group--font-size);font-weight:var(--snk-grid-config__group--font-weight);padding-bottom:var(--snk-grid-config__group--padding-bottom)}';const B=class{constructor(i){t(this,i),this.ezChange=n(this,"ezChange",7),this.selectedOption=C.none}render(){return i("ez-combo-box",{class:"grid-config-combo ez-input--inverted",label:"",suppressSearch:!0,value:this.selectedOption,enabled:!0,canShowError:!1,suppressEmptyOption:!0},Object.keys(C).map((t=>i("option",{value:C[t].value},C[t].label))))}static get assetsDirs(){return["../assets"]}};B.style="ez-combo-box{width:100px}.grid-config-combo{--ez-text-input--height:28px;--ez-text-input__input--background-color:#fff;--ez-text-input__input--border-color:#dce0e8}";const G=class{constructor(i){t(this,i),this.taskbarActionSelected=n(this,"taskbarActionSelected",7),this.taskbarActionsOpened=n(this,"taskbarActionsOpened",7),this.taskbarActionsButtonDisconnected=n(this,"taskbarActionsButtonDisconnected",7),this._showDropdown=!1,this.title=void 0,this.enabled=void 0,this.actions=void 0}async handleKeyDown(t){"Escape"!==t.key&&"Esc"!==t.key||await this.hideActions()}async handleClose(){await this.hideActions()}async showActions(){this._showDropdown=!0,requestAnimationFrame((()=>{this._element.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})}))}async hideActions(){this._showDropdown=!1}async isOpened(){return this._showDropdown}controlDropdown(){this._showDropdown=!this._showDropdown}loadItems(){return this.actions.filter((t=>void 0!==t)).map((t=>{var i;return{id:t.value,label:t.label,value:t.value,type:null!==(i=t.type)&&void 0!==i?i:"item",children:t.children,iconName:t.iconName,subAction:t.subAction,group:t.group,disableCloseOnSelect:t.disableCloseOnSelect}}))}canShowDropdown(){var t;return this._showDropdown&&(null===(t=this.actions)||void 0===t?void 0:t.length)>0}onSelectAction(t){const i=this.actions.map((t=>Object.assign(Object.assign({},t),{id:t.value}))),s=this.getSelectedAction(t.id,i);this.taskbarActionSelected.emit(s),s.disableCloseOnSelect||(this._showDropdown=!1)}getSelectedAction(t,i){let s=null;for(const e of i){if(e.id===t){s=e;break}if((null==e?void 0:e.children)&&(s=this.getSelectedAction(t,e.children),s))break}return s}dropdownItemBuilder(t,s){const e=this.actions.find((i=>i.value===t.id));if(!e||!e.itemBuilder)return;const n=e.itemBuilder(this._element,e);return"string"==typeof n?i("div",{innerHTML:n}):n}initializeEagerItems(){var t;null===(t=this.actions)||void 0===t||t.forEach((t=>{var i;t&&t.eagerInitialize&&t.itemBuilder&&(null===(i=t.itemBuilder)||void 0===i||i.call(t,this._element,t))}))}componentDidLoad(){this.initializeEagerItems()}componentDidRender(){this._showDropdown&&this.taskbarActionsOpened.emit(this._element)}disconnectedCallback(){this.taskbarActionsButtonDisconnected.emit()}render(){return i(s,null,i("div",{class:this.canShowDropdown()?" ez-elevation--16":""},i("ez-button",{title:this.title,mode:"icon",iconName:"dots-vertical",size:"small",enabled:this.enabled,onClick:()=>this.controlDropdown()}),this.canShowDropdown()&&i("ez-dropdown",{items:this.loadItems(),onEzClick:t=>this.onSelectAction(t.detail),onEzOutsideClick:()=>this._showDropdown=!1,itemBuilder:(t,i)=>this.dropdownItemBuilder(t,i)})))}get _element(){return e(this)}};G.style=".sc-taskbar-actions-button-h{display:flex;width:fit-content;height:fit-content}";export{j as snk_actions_button,L as snk_grid_config,B as snk_select_box,G as taskbar_actions_button}