@sankhyalabs/sankhyablocks 10.1.0-rc.1 → 10.1.0-rc.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1135) hide show
  1. package/dist/cjs/AuthorizationConfig-79ffae4b.js.gz +0 -0
  2. package/dist/cjs/{ConfigStorage-5a73e979.js → ConfigStorage-b96ff235.js} +2 -2
  3. package/dist/cjs/ConfigStorage-b96ff235.js.gz +0 -0
  4. package/dist/cjs/{DataFetcher-eeb3b0b7.js → DataFetcher-c24cdc3d.js} +32 -22
  5. package/dist/cjs/DataFetcher-c24cdc3d.js.gz +0 -0
  6. package/dist/cjs/{FormConfigHelper-ebb77625.js → FormConfigHelper-1e8bb464.js} +24 -0
  7. package/dist/cjs/FormConfigHelper-1e8bb464.js.gz +0 -0
  8. package/dist/cjs/GetSelectedRecordsIDsInfo-bd50caf1.js.gz +0 -0
  9. package/dist/cjs/IFetchDataExporterParams-e78ec415.js.gz +0 -0
  10. package/dist/cjs/{ISave-861e9d6d.js → ISave-f1aecaa6.js} +1 -1
  11. package/dist/cjs/ISave-f1aecaa6.js.gz +0 -0
  12. package/dist/cjs/ParamType-90b440a0.js.gz +0 -0
  13. package/dist/cjs/{PersonalizedFilterUtils-7259cf65.js → PersonalizedFilterUtils-eccb267a.js} +13 -0
  14. package/dist/cjs/PersonalizedFilterUtils-eccb267a.js.gz +0 -0
  15. package/dist/cjs/PrintUtils-bcaeb82f.js.gz +0 -0
  16. package/dist/cjs/ResourceIDUtils-5ff86aa7.js.gz +0 -0
  17. package/dist/cjs/ServicesNumberingConfig-69038a0f.js.gz +0 -0
  18. package/dist/cjs/{SnkFormConfigManager-8d4fded8.js → SnkFormConfigManager-b4f72038.js} +7 -7
  19. package/dist/cjs/SnkFormConfigManager-b4f72038.js.gz +0 -0
  20. package/dist/cjs/{SnkMultiSelectionListDataSource-3b93f6a6.js → SnkMultiSelectionListDataSource-850d50ef.js} +5 -5
  21. package/dist/cjs/SnkMultiSelectionListDataSource-850d50ef.js.gz +0 -0
  22. package/dist/cjs/{auth-fetcher-8d8acd69.js → auth-fetcher-33a7361c.js} +1 -1
  23. package/dist/cjs/auth-fetcher-33a7361c.js.gz +0 -0
  24. package/dist/cjs/config-header.cjs.entry.js +1 -1
  25. package/dist/cjs/config-header.cjs.entry.js.gz +0 -0
  26. package/dist/cjs/configs-button.cjs.entry.js +1 -1
  27. package/dist/cjs/configs-button.cjs.entry.js.gz +0 -0
  28. package/dist/cjs/constants-6d82e405.js.gz +0 -0
  29. package/dist/cjs/css-shim-a27d231b.js +6 -0
  30. package/dist/cjs/css-shim-a27d231b.js.gz +0 -0
  31. package/dist/cjs/{dataunit-fetcher-1cea0695.js → dataunit-fetcher-75ba0c0a.js} +1 -1
  32. package/dist/cjs/dataunit-fetcher-75ba0c0a.js.gz +0 -0
  33. package/dist/cjs/default-filters-a09bf82b.js.gz +0 -0
  34. package/dist/cjs/dom-ff96a4bc.js +75 -0
  35. package/dist/cjs/dom-ff96a4bc.js.gz +0 -0
  36. package/dist/cjs/field-config_2.cjs.entry.js +3 -3
  37. package/dist/cjs/field-config_2.cjs.entry.js.gz +0 -0
  38. package/dist/cjs/fields-layout.cjs.entry.js +7 -4
  39. package/dist/cjs/fields-layout.cjs.entry.js.gz +0 -0
  40. package/dist/cjs/fields-selector.cjs.entry.js +2 -2
  41. package/dist/cjs/fields-selector.cjs.entry.js.gz +0 -0
  42. package/dist/cjs/filter-item-type.enum-a7ffdaa6.js.gz +0 -0
  43. package/dist/cjs/filter-type.enum-2bb46d2a.js.gz +0 -0
  44. package/dist/cjs/filter-validate-cb4ed41a.js.gz +0 -0
  45. package/dist/cjs/filterNumberVariation-d65332da.js.gz +0 -0
  46. package/dist/cjs/{form-config-fetcher-f347f884.js → form-config-fetcher-6b2f0c28.js} +1 -1
  47. package/dist/cjs/form-config-fetcher-6b2f0c28.js.gz +0 -0
  48. package/dist/cjs/guides-configurator.cjs.entry.js +6 -4
  49. package/dist/cjs/guides-configurator.cjs.entry.js.gz +0 -0
  50. package/dist/cjs/{index-1cf293c1.js → index-17105557.js} +1511 -171
  51. package/dist/cjs/index-17105557.js.gz +0 -0
  52. package/dist/cjs/{index-13d05f03.js → index-22a8223a.js} +90 -21
  53. package/dist/cjs/index-22a8223a.js.gz +0 -0
  54. package/dist/cjs/index-62760a9c.js.gz +0 -0
  55. package/dist/cjs/index-8d94b7e0.js.gz +0 -0
  56. package/dist/cjs/index-e3e39724.js.gz +0 -0
  57. package/dist/cjs/index.cjs.js.gz +0 -0
  58. package/dist/cjs/loader.cjs.js +16 -2
  59. package/dist/cjs/loader.cjs.js.gz +0 -0
  60. package/dist/cjs/pesquisa-grid_2.cjs.entry.js +5 -5
  61. package/dist/cjs/pesquisa-grid_2.cjs.entry.js.gz +0 -0
  62. package/dist/cjs/presentationMode-52ec3bdd.js.gz +0 -0
  63. package/dist/cjs/sankhyablocks.cjs.js +132 -4
  64. package/dist/cjs/sankhyablocks.cjs.js.gz +0 -0
  65. package/dist/cjs/shadow-css-7e3e0ab1.js +389 -0
  66. package/dist/cjs/shadow-css-7e3e0ab1.js.gz +0 -0
  67. package/dist/cjs/snk-actions-button_9.cjs.entry.js +6 -6
  68. package/dist/cjs/snk-actions-button_9.cjs.entry.js.gz +0 -0
  69. package/dist/cjs/snk-actions-form.cjs.entry.js +1 -1
  70. package/dist/cjs/snk-actions-form.cjs.entry.js.gz +0 -0
  71. package/dist/cjs/snk-application.cjs.entry.js +26 -8
  72. package/dist/cjs/snk-application.cjs.entry.js.gz +0 -0
  73. package/dist/cjs/snk-attach.cjs.entry.js +8 -8
  74. package/dist/cjs/snk-attach.cjs.entry.js.gz +0 -0
  75. package/dist/cjs/snk-client-confirm.cjs.entry.js +1 -1
  76. package/dist/cjs/snk-client-confirm.cjs.entry.js.gz +0 -0
  77. package/dist/cjs/snk-configurator.cjs.entry.js +1 -1
  78. package/dist/cjs/snk-configurator.cjs.entry.js.gz +0 -0
  79. package/dist/cjs/snk-crud.cjs.entry.js +8 -8
  80. package/dist/cjs/snk-crud.cjs.entry.js.gz +0 -0
  81. package/dist/cjs/snk-custom-slot-elements.cjs.entry.js +1 -1
  82. package/dist/cjs/snk-custom-slot-elements.cjs.entry.js.gz +0 -0
  83. package/dist/cjs/snk-data-exporter.cjs.entry.js +6 -6
  84. package/dist/cjs/snk-data-exporter.cjs.entry.js.gz +0 -0
  85. package/dist/cjs/{snk-data-unit-de248308.js → snk-data-unit-a1a0f19d.js} +10 -3
  86. package/dist/cjs/snk-data-unit-a1a0f19d.js.gz +0 -0
  87. package/dist/cjs/snk-data-unit.cjs.entry.js +4 -4
  88. package/dist/cjs/snk-data-unit.cjs.entry.js.gz +0 -0
  89. package/dist/cjs/snk-default-filter.cjs.entry.js +1 -1
  90. package/dist/cjs/snk-default-filter.cjs.entry.js.gz +0 -0
  91. package/dist/cjs/snk-detail-view.cjs.entry.js +10 -10
  92. package/dist/cjs/snk-detail-view.cjs.entry.js.gz +0 -0
  93. package/dist/cjs/snk-entity-list.cjs.entry.js +1 -1
  94. package/dist/cjs/snk-entity-list.cjs.entry.js.gz +0 -0
  95. package/dist/cjs/snk-exporter-email-sender.cjs.entry.js +1 -1
  96. package/dist/cjs/snk-exporter-email-sender.cjs.entry.js.gz +0 -0
  97. package/dist/cjs/snk-expression-group_2.cjs.entry.js +2 -2
  98. package/dist/cjs/snk-expression-group_2.cjs.entry.js.gz +0 -0
  99. package/dist/cjs/snk-filter-advanced-mode_2.cjs.entry.js +2 -2
  100. package/dist/cjs/snk-filter-advanced-mode_2.cjs.entry.js.gz +0 -0
  101. package/dist/cjs/snk-filter-bar_4.cjs.entry.js +56 -23
  102. package/dist/cjs/snk-filter-bar_4.cjs.entry.js.gz +0 -0
  103. package/dist/cjs/snk-filter-binary-select.cjs.entry.js +1 -1
  104. package/dist/cjs/snk-filter-binary-select.cjs.entry.js.gz +0 -0
  105. package/dist/cjs/snk-filter-checkbox-list.cjs.entry.js +1 -1
  106. package/dist/cjs/snk-filter-checkbox-list.cjs.entry.js.gz +0 -0
  107. package/dist/cjs/snk-filter-detail.cjs.entry.js +2 -2
  108. package/dist/cjs/snk-filter-detail.cjs.entry.js.gz +0 -0
  109. package/dist/cjs/snk-filter-field-search_2.cjs.entry.js +2 -2
  110. package/dist/cjs/snk-filter-field-search_2.cjs.entry.js.gz +0 -0
  111. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +4 -4
  112. package/dist/cjs/snk-filter-modal-item.cjs.entry.js.gz +0 -0
  113. package/dist/cjs/snk-filter-multi-select.cjs.entry.js +1 -1
  114. package/dist/cjs/snk-filter-multi-select.cjs.entry.js.gz +0 -0
  115. package/dist/cjs/snk-filter-number.cjs.entry.js +2 -2
  116. package/dist/cjs/snk-filter-number.cjs.entry.js.gz +0 -0
  117. package/dist/cjs/snk-filter-period.cjs.entry.js +11 -6
  118. package/dist/cjs/snk-filter-period.cjs.entry.js.gz +0 -0
  119. package/dist/cjs/snk-filter-search.cjs.entry.js +1 -1
  120. package/dist/cjs/snk-filter-search.cjs.entry.js.gz +0 -0
  121. package/dist/cjs/snk-filter-text.cjs.entry.js +2 -2
  122. package/dist/cjs/snk-filter-text.cjs.entry.js.gz +0 -0
  123. package/dist/cjs/snk-form-summary.cjs.entry.js +1 -1
  124. package/dist/cjs/snk-form-summary.cjs.entry.js.gz +0 -0
  125. package/dist/cjs/snk-form-view.cjs.entry.js +1 -1
  126. package/dist/cjs/snk-form-view.cjs.entry.js.gz +0 -0
  127. package/dist/cjs/snk-form_2.cjs.entry.js +29 -8
  128. package/dist/cjs/snk-form_2.cjs.entry.js.gz +0 -0
  129. package/dist/cjs/snk-grid.cjs.entry.js +10 -10
  130. package/dist/cjs/snk-grid.cjs.entry.js.gz +0 -0
  131. package/dist/cjs/{snk-guides-viewer-4ec3e7e1.js → snk-guides-viewer-c98141e5.js} +7 -7
  132. package/dist/cjs/snk-guides-viewer-c98141e5.js.gz +0 -0
  133. package/dist/cjs/snk-guides-viewer.cjs.entry.js +10 -10
  134. package/dist/cjs/snk-guides-viewer.cjs.entry.js.gz +0 -0
  135. package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js +1 -1
  136. package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js.gz +0 -0
  137. package/dist/cjs/snk-personalized-filter.cjs.entry.js +6 -6
  138. package/dist/cjs/snk-personalized-filter.cjs.entry.js.gz +0 -0
  139. package/dist/cjs/snk-pesquisa.cjs.entry.js +5 -5
  140. package/dist/cjs/snk-pesquisa.cjs.entry.js.gz +0 -0
  141. package/dist/cjs/snk-print-selector.cjs.entry.js +1 -1
  142. package/dist/cjs/snk-print-selector.cjs.entry.js.gz +0 -0
  143. package/dist/cjs/snk-simple-bar.cjs.entry.js +1 -1
  144. package/dist/cjs/snk-simple-bar.cjs.entry.js.gz +0 -0
  145. package/dist/cjs/snk-simple-crud.cjs.entry.js +14 -21
  146. package/dist/cjs/snk-simple-crud.cjs.entry.js.gz +0 -0
  147. package/dist/cjs/snk-taskbar.cjs.entry.js +59 -47
  148. package/dist/cjs/snk-taskbar.cjs.entry.js.gz +0 -0
  149. package/dist/cjs/sortable.esm-9a110bb7.js.gz +0 -0
  150. package/dist/cjs/{taskbar-elements-fb5d1e08.js → taskbar-elements-f3ecbf5c.js} +2 -2
  151. package/dist/cjs/taskbar-elements-f3ecbf5c.js.gz +0 -0
  152. package/dist/cjs/taskbar-processor-2fba34a8.js.gz +0 -0
  153. package/dist/cjs/teste-pesquisa.cjs.entry.js +1 -1
  154. package/dist/cjs/teste-pesquisa.cjs.entry.js.gz +0 -0
  155. package/dist/collection/components/snk-actions-button/actions/enum/ActionsType.js.gz +0 -0
  156. package/dist/collection/components/snk-actions-button/actions/enum/ParamType.js.gz +0 -0
  157. package/dist/collection/components/snk-actions-button/actions/enum/RefreshType.js.gz +0 -0
  158. package/dist/collection/components/snk-actions-button/actions/executor/java.executor.js.gz +0 -0
  159. package/dist/collection/components/snk-actions-button/actions/executor/javascript.executor.js.gz +0 -0
  160. package/dist/collection/components/snk-actions-button/actions/executor/launch-screen.executor.js.gz +0 -0
  161. package/dist/collection/components/snk-actions-button/actions/executor/procedure.executor.js.gz +0 -0
  162. package/dist/collection/components/snk-actions-button/actions/factory/executor.factory.js.gz +0 -0
  163. package/dist/collection/components/snk-actions-button/actions/index.js.gz +0 -0
  164. package/dist/collection/components/snk-actions-button/actions/interfaces/IAction.js.gz +0 -0
  165. package/dist/collection/components/snk-actions-button/actions/interfaces/IExecSource.js.gz +0 -0
  166. package/dist/collection/components/snk-actions-button/actions/interfaces/IExecuteActions.js.gz +0 -0
  167. package/dist/collection/components/snk-actions-button/actions/interfaces/IExecuteActionsProps.js.gz +0 -0
  168. package/dist/collection/components/snk-actions-button/actions/interfaces/IResultParam.js.gz +0 -0
  169. package/dist/collection/components/snk-actions-button/clientEvent/index.js.gz +0 -0
  170. package/dist/collection/components/snk-actions-button/clientEvent/interfaces/IClientEventConfirm.js.gz +0 -0
  171. package/dist/collection/components/snk-actions-button/interfaces/index.js.gz +0 -0
  172. package/dist/collection/components/snk-actions-button/snk-actions-button.css.gz +0 -0
  173. package/dist/collection/components/snk-actions-button/snk-actions-button.js.gz +0 -0
  174. package/dist/collection/components/snk-actions-button/subcomponents/snk-actions-form.js.gz +0 -0
  175. package/dist/collection/components/snk-actions-button/subcomponents/snk-client-confirm.js.gz +0 -0
  176. package/dist/collection/components/snk-application/__mocks__/snk-application.js.gz +0 -0
  177. package/dist/collection/components/snk-application/errorhandler/snk-error-handler.js.gz +0 -0
  178. package/dist/collection/components/snk-application/request-listener/DebouncedRequestListener.js.gz +0 -0
  179. package/dist/collection/components/snk-application/request-listener/RequestListenerFactory.js.gz +0 -0
  180. package/dist/collection/components/snk-application/request-listener/RequestListenerLoadingBar.js.gz +0 -0
  181. package/dist/collection/components/snk-application/search-strategy/exec-prepared-search-plus.js.gz +0 -0
  182. package/dist/collection/components/snk-application/snk-application.css.gz +0 -0
  183. package/dist/collection/components/snk-application/snk-application.js +19 -1
  184. package/dist/collection/components/snk-application/snk-application.js.gz +0 -0
  185. package/dist/collection/components/snk-attach/interfaces/ICrudConfig.js.gz +0 -0
  186. package/dist/collection/components/snk-attach/interfaces/TFetcherType.js.gz +0 -0
  187. package/dist/collection/components/snk-attach/interfaces/index.js.gz +0 -0
  188. package/dist/collection/components/snk-attach/snk-attach.css.gz +0 -0
  189. package/dist/collection/components/snk-attach/snk-attach.js.gz +0 -0
  190. package/dist/collection/components/snk-attach/structure/builder/anexo-sistema-crud-config.builder.js.gz +0 -0
  191. package/dist/collection/components/snk-attach/structure/builder/attach-crud-config.builder.js.gz +0 -0
  192. package/dist/collection/components/snk-attach/structure/builder/taskbar-builder.js.gz +0 -0
  193. package/dist/collection/components/snk-attach/structure/fetcher/facade/fetcher.facade.js.gz +0 -0
  194. package/dist/collection/components/snk-attach/structure/fetcher/factory/anexo-sistema-data-unit.factory.js.gz +0 -0
  195. package/dist/collection/components/snk-attach/structure/fetcher/factory/attach-fetcher-data-unit.factory.js.gz +0 -0
  196. package/dist/collection/components/snk-attach/structure/index.js.gz +0 -0
  197. package/dist/collection/components/snk-configurator/AuthorizationConfig.js.gz +0 -0
  198. package/dist/collection/components/snk-configurator/snk-configurator.css.gz +0 -0
  199. package/dist/collection/components/snk-configurator/snk-configurator.js.gz +0 -0
  200. package/dist/collection/components/snk-crud/interfaces/PropsCustomEditor.js.gz +0 -0
  201. package/dist/collection/components/snk-crud/interfaces/PropsCustomRender.js.gz +0 -0
  202. package/dist/collection/components/snk-crud/snk-crud.css.gz +0 -0
  203. package/dist/collection/components/snk-crud/snk-crud.js.gz +0 -0
  204. package/dist/collection/components/snk-crud/subcomponents/CardFormResizeObserver.js.gz +0 -0
  205. package/dist/collection/components/snk-crud/subcomponents/GuideBuilder.js.gz +0 -0
  206. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.css.gz +0 -0
  207. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js.gz +0 -0
  208. package/dist/collection/components/snk-crud/subcomponents/snk-form-summary.css.gz +0 -0
  209. package/dist/collection/components/snk-crud/subcomponents/snk-form-summary.js.gz +0 -0
  210. package/dist/collection/components/snk-crud/subcomponents/snk-form-view.css.gz +0 -0
  211. package/dist/collection/components/snk-crud/subcomponents/snk-form-view.js.gz +0 -0
  212. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.css.gz +0 -0
  213. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js.gz +0 -0
  214. package/dist/collection/components/snk-custom-slot-elements/snk-custom-slot-elements.css.gz +0 -0
  215. package/dist/collection/components/snk-custom-slot-elements/snk-custom-slot-elements.js.gz +0 -0
  216. package/dist/collection/components/snk-data-exporter/data/attachment.js.gz +0 -0
  217. package/dist/collection/components/snk-data-exporter/data/email.js.gz +0 -0
  218. package/dist/collection/components/snk-data-exporter/data/export-config.js.gz +0 -0
  219. package/dist/collection/components/snk-data-exporter/data/export-result.js.gz +0 -0
  220. package/dist/collection/components/snk-data-exporter/data/report.js.gz +0 -0
  221. package/dist/collection/components/snk-data-exporter/exporter-email-sender/email-info-step.js.gz +0 -0
  222. package/dist/collection/components/snk-data-exporter/exporter-email-sender/options-step.js.gz +0 -0
  223. package/dist/collection/components/snk-data-exporter/exporter-email-sender/snk-exporter-email-sender.js.gz +0 -0
  224. package/dist/collection/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.js.gz +0 -0
  225. package/dist/collection/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.js.gz +0 -0
  226. package/dist/collection/components/snk-data-exporter/interfaces/IExporterProvider.js.gz +0 -0
  227. package/dist/collection/components/snk-data-exporter/interfaces/IExporterStrategy.js.gz +0 -0
  228. package/dist/collection/components/snk-data-exporter/interfaces/IRecordID.js.gz +0 -0
  229. package/dist/collection/components/snk-data-exporter/interfaces/ISelectedID.js.gz +0 -0
  230. package/dist/collection/components/snk-data-exporter/providers/ClientSideExporterProvider.js.gz +0 -0
  231. package/dist/collection/components/snk-data-exporter/providers/ServerSideExporterProvider.js.gz +0 -0
  232. package/dist/collection/components/snk-data-exporter/snk-data-exporter.css.gz +0 -0
  233. package/dist/collection/components/snk-data-exporter/snk-data-exporter.js.gz +0 -0
  234. package/dist/collection/components/snk-data-exporter/structure/ItemBuilder.js.gz +0 -0
  235. package/dist/collection/components/snk-data-exporter/test/resources/ClientSideExporterStrategyResources.js.gz +0 -0
  236. package/dist/collection/components/snk-data-exporter/utils/ParserExport.js.gz +0 -0
  237. package/dist/collection/components/snk-data-unit/MultipleUpdateHelper.js.gz +0 -0
  238. package/dist/collection/components/snk-data-unit/snk-data-unit.js +7 -0
  239. package/dist/collection/components/snk-data-unit/snk-data-unit.js.gz +0 -0
  240. package/dist/collection/components/snk-data-unit/test/resources/metadataMock.js.gz +0 -0
  241. package/dist/collection/components/snk-data-unit/test/resources/parentMetadataMock.js.gz +0 -0
  242. package/dist/collection/components/snk-entity-list/snk-entity-list.css.gz +0 -0
  243. package/dist/collection/components/snk-entity-list/snk-entity-list.js.gz +0 -0
  244. package/dist/collection/components/snk-filter-bar/filter-item/dataunitfilter/data-unit-filter-builder.js.gz +0 -0
  245. package/dist/collection/components/snk-filter-bar/filter-item/editors/enum/filterNumberVariation.js.gz +0 -0
  246. package/dist/collection/components/snk-filter-bar/filter-item/editors/enum/presentationMode.js.gz +0 -0
  247. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.js.gz +0 -0
  248. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-checkbox-list.js.gz +0 -0
  249. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.js.gz +0 -0
  250. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js +1 -1
  251. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js.gz +0 -0
  252. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js +11 -6
  253. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js.gz +0 -0
  254. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-search.js.gz +0 -0
  255. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-text.js +1 -1
  256. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-text.js.gz +0 -0
  257. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.css.gz +0 -0
  258. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.js.gz +0 -0
  259. package/dist/collection/components/snk-filter-bar/filter-item/filter-item-type-mask.enum.js.gz +0 -0
  260. package/dist/collection/components/snk-filter-bar/filter-item/filter-item-type.enum.js.gz +0 -0
  261. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js.gz +0 -0
  262. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.css +4 -0
  263. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.css.gz +0 -0
  264. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +7 -1
  265. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js.gz +0 -0
  266. package/dist/collection/components/snk-filter-bar/filter-list/snk-filter-list.js.gz +0 -0
  267. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.css.gz +0 -0
  268. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +15 -4
  269. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js.gz +0 -0
  270. package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-default-filter/snk-default-filter.css.gz +0 -0
  271. package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-default-filter/snk-default-filter.js.gz +0 -0
  272. package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.css.gz +0 -0
  273. package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.js.gz +0 -0
  274. package/dist/collection/components/snk-filter-bar/snk-filter-bar.css.gz +0 -0
  275. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +29 -12
  276. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js.gz +0 -0
  277. package/dist/collection/components/snk-filter-bar/types/custom-element-filter.js.gz +0 -0
  278. package/dist/collection/components/snk-filter-bar/types/default-filters.js.gz +0 -0
  279. package/dist/collection/components/snk-filter-bar/types/filter-type.enum.js.gz +0 -0
  280. package/dist/collection/components/snk-filter-bar/utils/SnkFilterModalFactory.js.gz +0 -0
  281. package/dist/collection/components/snk-filter-bar/utils/filter-validate.js.gz +0 -0
  282. package/dist/collection/components/snk-filter-bar/utils/filters-mock.js.gz +0 -0
  283. package/dist/collection/components/snk-filter-field-search/interfaces/index.js.gz +0 -0
  284. package/dist/collection/components/snk-filter-field-search/snk-filter-field-search.css.gz +0 -0
  285. package/dist/collection/components/snk-filter-field-search/snk-filter-field-search.js.gz +0 -0
  286. package/dist/collection/components/snk-filter-field-search/subcomponents/index.js.gz +0 -0
  287. package/dist/collection/components/snk-filter-field-search/subcomponents/list-item.js.gz +0 -0
  288. package/dist/collection/components/snk-form/snk-form.css.gz +0 -0
  289. package/dist/collection/components/snk-form/snk-form.js.gz +0 -0
  290. package/dist/collection/components/snk-form-config/FormConfigHelper.js +23 -0
  291. package/dist/collection/components/snk-form-config/FormConfigHelper.js.gz +0 -0
  292. package/dist/collection/components/snk-form-config/SnkFormConfigManager.js +6 -6
  293. package/dist/collection/components/snk-form-config/SnkFormConfigManager.js.gz +0 -0
  294. package/dist/collection/components/snk-form-config/config-header/config-header.css.gz +0 -0
  295. package/dist/collection/components/snk-form-config/config-header/config-header.js.gz +0 -0
  296. package/dist/collection/components/snk-form-config/config-header/configs-button/configs-button.css.gz +0 -0
  297. package/dist/collection/components/snk-form-config/config-header/configs-button/configs-button.js.gz +0 -0
  298. package/dist/collection/components/snk-form-config/field-item/field-config/field-config.css +1 -0
  299. package/dist/collection/components/snk-form-config/field-item/field-config/field-config.css.gz +0 -0
  300. package/dist/collection/components/snk-form-config/field-item/field-config/field-config.js.gz +0 -0
  301. package/dist/collection/components/snk-form-config/field-item/field-item.css.gz +0 -0
  302. package/dist/collection/components/snk-form-config/field-item/field-item.js.gz +0 -0
  303. package/dist/collection/components/snk-form-config/fields-layout/fields-layout.css +16 -0
  304. package/dist/collection/components/snk-form-config/fields-layout/fields-layout.css.gz +0 -0
  305. package/dist/collection/components/snk-form-config/fields-layout/fields-layout.js +6 -3
  306. package/dist/collection/components/snk-form-config/fields-layout/fields-layout.js.gz +0 -0
  307. package/dist/collection/components/snk-form-config/fields-selector/fields-selector.css.gz +0 -0
  308. package/dist/collection/components/snk-form-config/fields-selector/fields-selector.js.gz +0 -0
  309. package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.css +3 -3
  310. package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.css.gz +0 -0
  311. package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.js +5 -3
  312. package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.js.gz +0 -0
  313. package/dist/collection/components/snk-form-config/snk-form-config.css.gz +0 -0
  314. package/dist/collection/components/snk-form-config/snk-form-config.js +25 -4
  315. package/dist/collection/components/snk-form-config/snk-form-config.js.gz +0 -0
  316. package/dist/collection/components/snk-grid/filtercolumn/SnkMultiSelectionListDataSource.js.gz +0 -0
  317. package/dist/collection/components/snk-grid/snk-grid.css.gz +0 -0
  318. package/dist/collection/components/snk-grid/snk-grid.js +1 -1
  319. package/dist/collection/components/snk-grid/snk-grid.js.gz +0 -0
  320. package/dist/collection/components/snk-grid-config/snk-grid-config.css.gz +0 -0
  321. package/dist/collection/components/snk-grid-config/snk-grid-config.js.gz +0 -0
  322. package/dist/collection/components/snk-grid-config/snk-select-box/snk-select-box.css.gz +0 -0
  323. package/dist/collection/components/snk-grid-config/snk-select-box/snk-select-box.js.gz +0 -0
  324. package/dist/collection/components/snk-layout-form-config/snk-layout-form-config.css.gz +0 -0
  325. package/dist/collection/components/snk-layout-form-config/snk-layout-form-config.js.gz +0 -0
  326. package/dist/collection/components/snk-layout-form-config/snk-view-representation/snk-view-representation.css.gz +0 -0
  327. package/dist/collection/components/snk-layout-form-config/snk-view-representation/snk-view-representation.js.gz +0 -0
  328. package/dist/collection/components/snk-numbering-config/services/ServicesNumberingConfig.js.gz +0 -0
  329. package/dist/collection/components/snk-numbering-config/snk-numbering-config.css.gz +0 -0
  330. package/dist/collection/components/snk-numbering-config/snk-numbering-config.js.gz +0 -0
  331. package/dist/collection/components/snk-personalized-filter/interfaces/IExpressionGroup.js.gz +0 -0
  332. package/dist/collection/components/snk-personalized-filter/interfaces/IExpressionItem.js.gz +0 -0
  333. package/dist/collection/components/snk-personalized-filter/interfaces/IParameter.js.gz +0 -0
  334. package/dist/collection/components/snk-personalized-filter/interfaces/IPersonalizedFilter.js.gz +0 -0
  335. package/dist/collection/components/snk-personalized-filter/interfaces/ISystemFilterConfig.js.gz +0 -0
  336. package/dist/collection/components/snk-personalized-filter/interfaces/IUserFilterConfig.js.gz +0 -0
  337. package/dist/collection/components/snk-personalized-filter/interfaces/index.js.gz +0 -0
  338. package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.css.gz +0 -0
  339. package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js.gz +0 -0
  340. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.css.gz +0 -0
  341. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.js.gz +0 -0
  342. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/filter-operands/filter-operands.js.gz +0 -0
  343. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.css.gz +0 -0
  344. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.js.gz +0 -0
  345. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-advanced-mode/snk-filter-advanced-mode.css.gz +0 -0
  346. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-advanced-mode/snk-filter-advanced-mode.js.gz +0 -0
  347. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-assistent-mode/snk-filter-assistent-mode.css.gz +0 -0
  348. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-assistent-mode/snk-filter-assistent-mode.js.gz +0 -0
  349. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/snk-filter-param-config.css.gz +0 -0
  350. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/snk-filter-param-config.js.gz +0 -0
  351. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/utils/PersonalizedFilterUtils.js +13 -0
  352. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/utils/PersonalizedFilterUtils.js.gz +0 -0
  353. package/dist/collection/components/snk-pesquisa/pesquisa-grid/pesquisa-grid.css.gz +0 -0
  354. package/dist/collection/components/snk-pesquisa/pesquisa-grid/pesquisa-grid.js.gz +0 -0
  355. package/dist/collection/components/snk-pesquisa/pesquisa-tree/pesquisa-tree.css.gz +0 -0
  356. package/dist/collection/components/snk-pesquisa/pesquisa-tree/pesquisa-tree.js.gz +0 -0
  357. package/dist/collection/components/snk-pesquisa/pesquisaHelper.js.gz +0 -0
  358. package/dist/collection/components/snk-pesquisa/snk-pesquisa.css.gz +0 -0
  359. package/dist/collection/components/snk-pesquisa/snk-pesquisa.js.gz +0 -0
  360. package/dist/collection/components/snk-print-selector/snk-print-selector.css.gz +0 -0
  361. package/dist/collection/components/snk-print-selector/snk-print-selector.js.gz +0 -0
  362. package/dist/collection/components/snk-simple-bar/snk-simple-bar.css.gz +0 -0
  363. package/dist/collection/components/snk-simple-bar/snk-simple-bar.js.gz +0 -0
  364. package/dist/collection/components/snk-simple-crud/snk-simple-crud.constants.js.gz +0 -0
  365. package/dist/collection/components/snk-simple-crud/snk-simple-crud.css.gz +0 -0
  366. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +22 -11
  367. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js.gz +0 -0
  368. package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.css.gz +0 -0
  369. package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.js.gz +0 -0
  370. package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.css.gz +0 -0
  371. package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.js.gz +0 -0
  372. package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js.gz +0 -0
  373. package/dist/collection/components/snk-taskbar/elements/taskbar-split-button/taskbar-split-button.css.gz +0 -0
  374. package/dist/collection/components/snk-taskbar/elements/taskbar-split-button/taskbar-split-button.js.gz +0 -0
  375. package/dist/collection/components/snk-taskbar/processor/taskbar-processor.js.gz +0 -0
  376. package/dist/collection/components/snk-taskbar/snk-taskbar.css.gz +0 -0
  377. package/dist/collection/components/snk-taskbar/snk-taskbar.js +58 -44
  378. package/dist/collection/components/snk-taskbar/snk-taskbar.js.gz +0 -0
  379. package/dist/collection/components/teste-pesquisa/teste-pesquisa.css.gz +0 -0
  380. package/dist/collection/components/teste-pesquisa/teste-pesquisa.js.gz +0 -0
  381. package/dist/collection/index.js.gz +0 -0
  382. package/dist/collection/lib/@types/index.js.gz +0 -0
  383. package/dist/collection/lib/DefaultCustomFormatters/RmPrecisionCustomValueFormatter.js.gz +0 -0
  384. package/dist/collection/lib/applet-caller/applet-caller.js.gz +0 -0
  385. package/dist/collection/lib/auth/mgeauthorization.module.js.gz +0 -0
  386. package/dist/collection/lib/configs/ConfigStorage.js.gz +0 -0
  387. package/dist/collection/lib/configs/LayoutFormConfig.js.gz +0 -0
  388. package/dist/collection/lib/dataUnit/InMemoryLoader.js.gz +0 -0
  389. package/dist/collection/lib/dataUnit/ValueFormatter.js.gz +0 -0
  390. package/dist/collection/lib/dataUnit/dataUnitInMemoryUtils.js.gz +0 -0
  391. package/dist/collection/lib/dataUnit/interfaces/InMemoryLoaderConfig.js.gz +0 -0
  392. package/dist/collection/lib/http/data-fetcher/DataFetcher.js.gz +0 -0
  393. package/dist/collection/lib/http/data-fetcher/custom-xhr-override.js.gz +0 -0
  394. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/anexo-sistema-fetcher.js.gz +0 -0
  395. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/attach-fetcher.js.gz +0 -0
  396. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/facade/attach-fetcher.facade.js.gz +0 -0
  397. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/index.js.gz +0 -0
  398. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/interfaces/IDelete.js.gz +0 -0
  399. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/interfaces/IDownloadKey.js.gz +0 -0
  400. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/interfaces/ISave.js.gz +0 -0
  401. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/interfaces/index.js.gz +0 -0
  402. package/dist/collection/lib/http/data-fetcher/fetchers/application-config-fetcher.js.gz +0 -0
  403. package/dist/collection/lib/http/data-fetcher/fetchers/auth-fetcher.js.gz +0 -0
  404. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/DataUnitDataLoader.js.gz +0 -0
  405. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/ArrayRepository.js.gz +0 -0
  406. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.js.gz +0 -0
  407. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/dataunit-fetcher.js.gz +0 -0
  408. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/helpers/DataUnitDataLoaderHelper.js.gz +0 -0
  409. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IBuildRequestBodyLoadRowMetadata.js.gz +0 -0
  410. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/ILoadDataResult.js.gz +0 -0
  411. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/ILoadDataStrategy.js.gz +0 -0
  412. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/ILoadingInfo.js.gz +0 -0
  413. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IRecordField.js.gz +0 -0
  414. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IResponseRecord.js.gz +0 -0
  415. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IRowMetadata.js.gz +0 -0
  416. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DataUnitStrategy.js.gz +0 -0
  417. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js.gz +0 -0
  418. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/test/resources/metadataMock.js.gz +0 -0
  419. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IExporterColumnMetadata.js.gz +0 -0
  420. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterParams.js.gz +0 -0
  421. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterResponse.js.gz +0 -0
  422. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IPersonalizedReport.js.gz +0 -0
  423. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/permission-export-pdf.js.gz +0 -0
  424. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/personalized-reports-fetcher.js.gz +0 -0
  425. package/dist/collection/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.js.gz +0 -0
  426. package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js.gz +0 -0
  427. package/dist/collection/lib/http/data-fetcher/fetchers/grid-config-fetcher.js.gz +0 -0
  428. package/dist/collection/lib/http/data-fetcher/fetchers/parameters-fecher.js.gz +0 -0
  429. package/dist/collection/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.js.gz +0 -0
  430. package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js.gz +0 -0
  431. package/dist/collection/lib/http/data-fetcher/fetchers/resource-fetcher.js.gz +0 -0
  432. package/dist/collection/lib/http/data-fetcher/fetchers/totals-fetcher.js.gz +0 -0
  433. package/dist/collection/lib/http/data-fetcher/interfaces/IClientEventResponse.js.gz +0 -0
  434. package/dist/collection/lib/http/data-fetcher/recaller/GraphQLRecaller.js.gz +0 -0
  435. package/dist/collection/lib/http/data-fetcher/recaller/IDataFetcherRecaller.js.gz +0 -0
  436. package/dist/collection/lib/http/data-fetcher/recaller/ServiceBrokerRecaller.js.gz +0 -0
  437. package/dist/collection/lib/http/data-fetcher/state/LoadStateManager.js.gz +0 -0
  438. package/dist/collection/lib/index.js.gz +0 -0
  439. package/dist/collection/lib/message/SnkMessageBuilder.js +11 -2
  440. package/dist/collection/lib/message/SnkMessageBuilder.js.gz +0 -0
  441. package/dist/collection/lib/message/messageResourceEnUSUtils.js.gz +0 -0
  442. package/dist/collection/lib/message/messageResourceEsESUtils.js.gz +0 -0
  443. package/dist/collection/lib/message/messageResourcePtBRUtils.js.gz +0 -0
  444. package/dist/collection/lib/message/resources/en-us/continuousInsertUtils.msg.js.gz +0 -0
  445. package/dist/collection/lib/message/resources/en-us/crud-utils.msg.js.gz +0 -0
  446. package/dist/collection/lib/message/resources/en-us/dataFetcher.msg.js.gz +0 -0
  447. package/dist/collection/lib/message/resources/en-us/dataUnitDataLoaderHelper.msg.js.gz +0 -0
  448. package/dist/collection/lib/message/resources/en-us/file-viewer.msg.js.gz +0 -0
  449. package/dist/collection/lib/message/resources/en-us/snk-actions-button.msg.js.gz +0 -0
  450. package/dist/collection/lib/message/resources/en-us/snk-application.msg.js.gz +0 -0
  451. package/dist/collection/lib/message/resources/en-us/snk-attach.msg.js.gz +0 -0
  452. package/dist/collection/lib/message/resources/en-us/snk-configurator.msg.js.gz +0 -0
  453. package/dist/collection/lib/message/resources/en-us/snk-crud.msg.js.gz +0 -0
  454. package/dist/collection/lib/message/resources/en-us/snk-data-exporter.msg.js.gz +0 -0
  455. package/dist/collection/lib/message/resources/en-us/snk-data-unit.msg.js.gz +0 -0
  456. package/dist/collection/lib/message/resources/en-us/snk-entity-list.msg.js.gz +0 -0
  457. package/dist/collection/lib/message/resources/en-us/snk-error-handler.msg.js.gz +0 -0
  458. package/dist/collection/lib/message/resources/en-us/snk-exporter.msg.js.gz +0 -0
  459. package/dist/collection/lib/message/resources/en-us/snk-filter-bar.msg.js.gz +0 -0
  460. package/dist/collection/lib/message/resources/en-us/snk-filter-field-search.msg.js.gz +0 -0
  461. package/dist/collection/lib/message/resources/en-us/snk-filter-list.msg.js.gz +0 -0
  462. package/dist/collection/lib/message/resources/en-us/snk-filter-param-config.msg.js.gz +0 -0
  463. package/dist/collection/lib/message/resources/en-us/snk-form.msg.js +7 -0
  464. package/dist/collection/lib/message/resources/en-us/snk-form.msg.js.gz +0 -0
  465. package/dist/collection/lib/message/resources/en-us/snk-grid.msg.js.gz +0 -0
  466. package/dist/collection/lib/message/resources/en-us/snk-layout-form-config.msg.js.gz +0 -0
  467. package/dist/collection/lib/message/resources/en-us/snk-numbering-config.msg.js.gz +0 -0
  468. package/dist/collection/lib/message/resources/en-us/snk-personalized-filter.msg.js.gz +0 -0
  469. package/dist/collection/lib/message/resources/en-us/snk-pesquisa.msg.js.gz +0 -0
  470. package/dist/collection/lib/message/resources/en-us/snk-print-selector.msg.js.gz +0 -0
  471. package/dist/collection/lib/message/resources/en-us/snk-simple-bar.msg.js.gz +0 -0
  472. package/dist/collection/lib/message/resources/en-us/snk-simple-crud.msg.js.gz +0 -0
  473. package/dist/collection/lib/message/resources/en-us/snk-simple-form-config.msg.js.gz +0 -0
  474. package/dist/collection/lib/message/resources/en-us/snk-taskbar.msg.js.gz +0 -0
  475. package/dist/collection/lib/message/resources/es-es/continuousInsertUtils.msg.js.gz +0 -0
  476. package/dist/collection/lib/message/resources/es-es/crud-utils.msg.js.gz +0 -0
  477. package/dist/collection/lib/message/resources/es-es/dataFetcher.msg.js.gz +0 -0
  478. package/dist/collection/lib/message/resources/es-es/dataUnitDataLoaderHelper.msg.js.gz +0 -0
  479. package/dist/collection/lib/message/resources/es-es/file-viewer.msg.js.gz +0 -0
  480. package/dist/collection/lib/message/resources/es-es/snk-actions-button.msg.js.gz +0 -0
  481. package/dist/collection/lib/message/resources/es-es/snk-application.msg.js.gz +0 -0
  482. package/dist/collection/lib/message/resources/es-es/snk-attach.msg.js.gz +0 -0
  483. package/dist/collection/lib/message/resources/es-es/snk-configurator.msg.js.gz +0 -0
  484. package/dist/collection/lib/message/resources/es-es/snk-crud.msg.js.gz +0 -0
  485. package/dist/collection/lib/message/resources/es-es/snk-data-exporter.msg.js.gz +0 -0
  486. package/dist/collection/lib/message/resources/es-es/snk-data-unit.msg.js.gz +0 -0
  487. package/dist/collection/lib/message/resources/es-es/snk-entity-list.msg.js.gz +0 -0
  488. package/dist/collection/lib/message/resources/es-es/snk-error-handler.msg.js.gz +0 -0
  489. package/dist/collection/lib/message/resources/es-es/snk-exporter.msg.js.gz +0 -0
  490. package/dist/collection/lib/message/resources/es-es/snk-filter-bar.msg.js.gz +0 -0
  491. package/dist/collection/lib/message/resources/es-es/snk-filter-field-search.msg.js.gz +0 -0
  492. package/dist/collection/lib/message/resources/es-es/snk-filter-list.msg.js.gz +0 -0
  493. package/dist/collection/lib/message/resources/es-es/snk-filter-param-config.msg.js.gz +0 -0
  494. package/dist/collection/lib/message/resources/es-es/snk-form.msg.js +7 -0
  495. package/dist/collection/lib/message/resources/es-es/snk-form.msg.js.gz +0 -0
  496. package/dist/collection/lib/message/resources/es-es/snk-grid.msg.js.gz +0 -0
  497. package/dist/collection/lib/message/resources/es-es/snk-layout-form-config.msg.js.gz +0 -0
  498. package/dist/collection/lib/message/resources/es-es/snk-numbering-config.msg.js.gz +0 -0
  499. package/dist/collection/lib/message/resources/es-es/snk-personalized-filter.msg.js.gz +0 -0
  500. package/dist/collection/lib/message/resources/es-es/snk-pesquisa.msg.js.gz +0 -0
  501. package/dist/collection/lib/message/resources/es-es/snk-print-selector.msg.js.gz +0 -0
  502. package/dist/collection/lib/message/resources/es-es/snk-simple-bar.msg.js.gz +0 -0
  503. package/dist/collection/lib/message/resources/es-es/snk-simple-crud.msg.js.gz +0 -0
  504. package/dist/collection/lib/message/resources/es-es/snk-simple-form-config.msg.js.gz +0 -0
  505. package/dist/collection/lib/message/resources/es-es/snk-taskbar.msg.js.gz +0 -0
  506. package/dist/collection/lib/message/resources/pt-br/continuousInsertUtils.msg.js.gz +0 -0
  507. package/dist/collection/lib/message/resources/pt-br/crud-utils.msg.js.gz +0 -0
  508. package/dist/collection/lib/message/resources/pt-br/dataFetcher.msg.js.gz +0 -0
  509. package/dist/collection/lib/message/resources/pt-br/dataUnitDataLoaderHelper.msg.js.gz +0 -0
  510. package/dist/collection/lib/message/resources/pt-br/file-viewer.msg.js.gz +0 -0
  511. package/dist/collection/lib/message/resources/pt-br/snk-actions-button.msg.js.gz +0 -0
  512. package/dist/collection/lib/message/resources/pt-br/snk-application.msg.js.gz +0 -0
  513. package/dist/collection/lib/message/resources/pt-br/snk-attach.msg.js.gz +0 -0
  514. package/dist/collection/lib/message/resources/pt-br/snk-configurator.msg.js.gz +0 -0
  515. package/dist/collection/lib/message/resources/pt-br/snk-crud.msg.js.gz +0 -0
  516. package/dist/collection/lib/message/resources/pt-br/snk-data-exporter.msg.js.gz +0 -0
  517. package/dist/collection/lib/message/resources/pt-br/snk-data-unit.msg.js.gz +0 -0
  518. package/dist/collection/lib/message/resources/pt-br/snk-entity-list.msg.js.gz +0 -0
  519. package/dist/collection/lib/message/resources/pt-br/snk-error-handler.msg.js.gz +0 -0
  520. package/dist/collection/lib/message/resources/pt-br/snk-exporter.msg.js.gz +0 -0
  521. package/dist/collection/lib/message/resources/pt-br/snk-filter-bar.msg.js.gz +0 -0
  522. package/dist/collection/lib/message/resources/pt-br/snk-filter-field-search.msg.js.gz +0 -0
  523. package/dist/collection/lib/message/resources/pt-br/snk-filter-list.msg.js.gz +0 -0
  524. package/dist/collection/lib/message/resources/pt-br/snk-filter-param-config.msg.js.gz +0 -0
  525. package/dist/collection/lib/message/resources/pt-br/snk-form.msg.js +7 -0
  526. package/dist/collection/lib/message/resources/pt-br/snk-form.msg.js.gz +0 -0
  527. package/dist/collection/lib/message/resources/pt-br/snk-grid.msg.js.gz +0 -0
  528. package/dist/collection/lib/message/resources/pt-br/snk-layout-form-config.msg.js.gz +0 -0
  529. package/dist/collection/lib/message/resources/pt-br/snk-numbering-config.msg.js.gz +0 -0
  530. package/dist/collection/lib/message/resources/pt-br/snk-personalized-filter.msg.js.gz +0 -0
  531. package/dist/collection/lib/message/resources/pt-br/snk-pesquisa.msg.js.gz +0 -0
  532. package/dist/collection/lib/message/resources/pt-br/snk-print-selector.msg.js.gz +0 -0
  533. package/dist/collection/lib/message/resources/pt-br/snk-simple-bar.msg.js.gz +0 -0
  534. package/dist/collection/lib/message/resources/pt-br/snk-simple-crud.msg.js.gz +0 -0
  535. package/dist/collection/lib/message/resources/pt-br/snk-simple-form-config.msg.js.gz +0 -0
  536. package/dist/collection/lib/message/resources/pt-br/snk-taskbar.msg.js.gz +0 -0
  537. package/dist/collection/lib/resourceid/ResourceIDUtils.js.gz +0 -0
  538. package/dist/collection/lib/store/index.js.gz +0 -0
  539. package/dist/collection/lib/utils/ContinuousInsertUtils.js.gz +0 -0
  540. package/dist/collection/lib/utils/CrudUtils.js.gz +0 -0
  541. package/dist/collection/lib/utils/GetSelectedRecordsIDsInfo.js.gz +0 -0
  542. package/dist/collection/lib/utils/PrintUtils.js.gz +0 -0
  543. package/dist/collection/lib/utils/constants.js.gz +0 -0
  544. package/dist/collection/lib/utils/fileViewer/index.js.gz +0 -0
  545. package/dist/collection/lib/utils/fileViewer/interfaces/IFileViewerParams.js.gz +0 -0
  546. package/dist/collection/lib/utils/pesquisa.js.gz +0 -0
  547. package/dist/collection/lib/utils/urlutils.js.gz +0 -0
  548. package/dist/collection/lib/workspace/workspace.js.gz +0 -0
  549. package/dist/collection/sw.js.gz +0 -0
  550. package/dist/components/AuthorizationConfig.js.gz +0 -0
  551. package/dist/components/ConfigStorage.js.gz +0 -0
  552. package/dist/components/ContinuousInsertUtils.js.gz +0 -0
  553. package/dist/components/DataFetcher.js +32 -2
  554. package/dist/components/DataFetcher.js.gz +0 -0
  555. package/dist/components/GetSelectedRecordsIDsInfo.js.gz +0 -0
  556. package/dist/components/ISave.js.gz +0 -0
  557. package/dist/components/ParamType.js.gz +0 -0
  558. package/dist/components/PersonalizedFilterUtils.js +13 -0
  559. package/dist/components/PersonalizedFilterUtils.js.gz +0 -0
  560. package/dist/components/PrintUtils.js.gz +0 -0
  561. package/dist/components/ResourceIDUtils.js.gz +0 -0
  562. package/dist/components/SnkFormConfigManager.js +6 -6
  563. package/dist/components/SnkFormConfigManager.js.gz +0 -0
  564. package/dist/components/auth-fetcher.js.gz +0 -0
  565. package/dist/components/config-header.js.gz +0 -0
  566. package/dist/components/config-header2.js.gz +0 -0
  567. package/dist/components/configs-button.js.gz +0 -0
  568. package/dist/components/configs-button2.js.gz +0 -0
  569. package/dist/components/constants.js.gz +0 -0
  570. package/dist/components/dataunit-fetcher.js.gz +0 -0
  571. package/dist/components/field-config.js.gz +0 -0
  572. package/dist/components/field-config2.js +25 -2
  573. package/dist/components/field-config2.js.gz +0 -0
  574. package/dist/components/field-item.js.gz +0 -0
  575. package/dist/components/field-item2.js.gz +0 -0
  576. package/dist/components/fields-layout.js.gz +0 -0
  577. package/dist/components/fields-layout2.js +6 -3
  578. package/dist/components/fields-layout2.js.gz +0 -0
  579. package/dist/components/fields-selector.js.gz +0 -0
  580. package/dist/components/fields-selector2.js.gz +0 -0
  581. package/dist/components/filter-item-type.enum.js.gz +0 -0
  582. package/dist/components/filterNumberVariation.js.gz +0 -0
  583. package/dist/components/form-config-fetcher.js.gz +0 -0
  584. package/dist/components/guides-configurator.js.gz +0 -0
  585. package/dist/components/guides-configurator2.js +5 -3
  586. package/dist/components/guides-configurator2.js.gz +0 -0
  587. package/dist/components/index.js.gz +0 -0
  588. package/dist/components/index2.js +90 -21
  589. package/dist/components/index2.js.gz +0 -0
  590. package/dist/components/pesquisa-grid.js.gz +0 -0
  591. package/dist/components/pesquisa-grid2.js.gz +0 -0
  592. package/dist/components/pesquisa-tree.js.gz +0 -0
  593. package/dist/components/pesquisa-tree2.js.gz +0 -0
  594. package/dist/components/presentationMode.js.gz +0 -0
  595. package/dist/components/snk-actions-button.js.gz +0 -0
  596. package/dist/components/snk-actions-button2.js.gz +0 -0
  597. package/dist/components/snk-actions-form.js.gz +0 -0
  598. package/dist/components/snk-application.js.gz +0 -0
  599. package/dist/components/snk-application2.js +19 -1
  600. package/dist/components/snk-application2.js.gz +0 -0
  601. package/dist/components/snk-attach.js.gz +0 -0
  602. package/dist/components/snk-attach2.js.gz +0 -0
  603. package/dist/components/snk-client-confirm.js.gz +0 -0
  604. package/dist/components/snk-configurator.js.gz +0 -0
  605. package/dist/components/snk-configurator2.js.gz +0 -0
  606. package/dist/components/snk-crud.js.gz +0 -0
  607. package/dist/components/snk-custom-slot-elements.js.gz +0 -0
  608. package/dist/components/snk-data-exporter.js.gz +0 -0
  609. package/dist/components/snk-data-exporter2.js.gz +0 -0
  610. package/dist/components/snk-data-unit.js.gz +0 -0
  611. package/dist/components/snk-data-unit2.js +7 -0
  612. package/dist/components/snk-data-unit2.js.gz +0 -0
  613. package/dist/components/snk-default-filter.js.gz +0 -0
  614. package/dist/components/snk-default-filter2.js.gz +0 -0
  615. package/dist/components/snk-detail-view.js.gz +0 -0
  616. package/dist/components/snk-detail-view2.js.gz +0 -0
  617. package/dist/components/snk-entity-list.js.gz +0 -0
  618. package/dist/components/snk-exporter-email-sender.js.gz +0 -0
  619. package/dist/components/snk-exporter-email-sender2.js.gz +0 -0
  620. package/dist/components/snk-expression-group.js.gz +0 -0
  621. package/dist/components/snk-expression-group2.js.gz +0 -0
  622. package/dist/components/snk-expression-item.js.gz +0 -0
  623. package/dist/components/snk-expression-item2.js.gz +0 -0
  624. package/dist/components/snk-filter-advanced-mode.js.gz +0 -0
  625. package/dist/components/snk-filter-advanced-mode2.js.gz +0 -0
  626. package/dist/components/snk-filter-assistent-mode.js.gz +0 -0
  627. package/dist/components/snk-filter-assistent-mode2.js.gz +0 -0
  628. package/dist/components/snk-filter-bar.js.gz +0 -0
  629. package/dist/components/snk-filter-bar2.js +29 -12
  630. package/dist/components/snk-filter-bar2.js.gz +0 -0
  631. package/dist/components/snk-filter-binary-select.js.gz +0 -0
  632. package/dist/components/snk-filter-checkbox-list.js.gz +0 -0
  633. package/dist/components/snk-filter-detail.js.gz +0 -0
  634. package/dist/components/snk-filter-detail2.js.gz +0 -0
  635. package/dist/components/snk-filter-field-search.js.gz +0 -0
  636. package/dist/components/snk-filter-field-search2.js.gz +0 -0
  637. package/dist/components/snk-filter-item.js.gz +0 -0
  638. package/dist/components/snk-filter-item2.js +8 -2
  639. package/dist/components/snk-filter-item2.js.gz +0 -0
  640. package/dist/components/snk-filter-list.js.gz +0 -0
  641. package/dist/components/snk-filter-modal-item.js.gz +0 -0
  642. package/dist/components/snk-filter-modal-item2.js.gz +0 -0
  643. package/dist/components/snk-filter-modal.js.gz +0 -0
  644. package/dist/components/snk-filter-modal2.js +15 -5
  645. package/dist/components/snk-filter-modal2.js.gz +0 -0
  646. package/dist/components/snk-filter-multi-select.js.gz +0 -0
  647. package/dist/components/snk-filter-number.js +1 -1
  648. package/dist/components/snk-filter-number.js.gz +0 -0
  649. package/dist/components/snk-filter-param-config.js.gz +0 -0
  650. package/dist/components/snk-filter-param-config2.js.gz +0 -0
  651. package/dist/components/snk-filter-period.js +10 -5
  652. package/dist/components/snk-filter-period.js.gz +0 -0
  653. package/dist/components/snk-filter-search.js.gz +0 -0
  654. package/dist/components/snk-filter-text.js +1 -1
  655. package/dist/components/snk-filter-text.js.gz +0 -0
  656. package/dist/components/snk-form-config.js.gz +0 -0
  657. package/dist/components/snk-form-config2.js +24 -3
  658. package/dist/components/snk-form-config2.js.gz +0 -0
  659. package/dist/components/snk-form-summary.js.gz +0 -0
  660. package/dist/components/snk-form-summary2.js.gz +0 -0
  661. package/dist/components/snk-form-view.js.gz +0 -0
  662. package/dist/components/snk-form-view2.js.gz +0 -0
  663. package/dist/components/snk-form.js.gz +0 -0
  664. package/dist/components/snk-grid-config.js.gz +0 -0
  665. package/dist/components/snk-grid-config2.js.gz +0 -0
  666. package/dist/components/snk-grid.js.gz +0 -0
  667. package/dist/components/snk-grid2.js +1 -1
  668. package/dist/components/snk-grid2.js.gz +0 -0
  669. package/dist/components/snk-guides-viewer.js.gz +0 -0
  670. package/dist/components/snk-layout-form-config.js.gz +0 -0
  671. package/dist/components/snk-layout-form-config2.js.gz +0 -0
  672. package/dist/components/snk-numbering-config.js.gz +0 -0
  673. package/dist/components/snk-numbering-config2.js.gz +0 -0
  674. package/dist/components/snk-personalized-filter-editor.js.gz +0 -0
  675. package/dist/components/snk-personalized-filter.js.gz +0 -0
  676. package/dist/components/snk-personalized-filter2.js.gz +0 -0
  677. package/dist/components/snk-pesquisa.js.gz +0 -0
  678. package/dist/components/snk-pesquisa2.js.gz +0 -0
  679. package/dist/components/snk-print-selector.js.gz +0 -0
  680. package/dist/components/snk-select-box.js.gz +0 -0
  681. package/dist/components/snk-select-box2.js.gz +0 -0
  682. package/dist/components/snk-simple-bar.js.gz +0 -0
  683. package/dist/components/snk-simple-bar2.js.gz +0 -0
  684. package/dist/components/snk-simple-crud.js.gz +0 -0
  685. package/dist/components/snk-simple-crud2.js +5 -11
  686. package/dist/components/snk-simple-crud2.js.gz +0 -0
  687. package/dist/components/snk-simple-form-config.js.gz +0 -0
  688. package/dist/components/snk-simple-form-config2.js.gz +0 -0
  689. package/dist/components/snk-taskbar.js.gz +0 -0
  690. package/dist/components/snk-taskbar2.js +57 -45
  691. package/dist/components/snk-taskbar2.js.gz +0 -0
  692. package/dist/components/snk-view-representation.js.gz +0 -0
  693. package/dist/components/snk-view-representation2.js.gz +0 -0
  694. package/dist/components/sortable.esm.js.gz +0 -0
  695. package/dist/components/taskbar-actions-button.js.gz +0 -0
  696. package/dist/components/taskbar-actions-button2.js.gz +0 -0
  697. package/dist/components/taskbar-split-button.js.gz +0 -0
  698. package/dist/components/taskbar-split-button2.js.gz +0 -0
  699. package/dist/components/teste-pesquisa.js.gz +0 -0
  700. package/dist/esm/AuthorizationConfig-dcbd207a.js.gz +0 -0
  701. package/dist/esm/{ConfigStorage-568dc227.js → ConfigStorage-9eb9cd0a.js} +2 -2
  702. package/dist/esm/ConfigStorage-9eb9cd0a.js.gz +0 -0
  703. package/dist/esm/{DataFetcher-743feb3b.js → DataFetcher-8c9be33f.js} +32 -2
  704. package/dist/esm/{DataFetcher-743feb3b.js.gz → DataFetcher-8c9be33f.js.gz} +0 -0
  705. package/dist/esm/{FormConfigHelper-4e42f0b6.js → FormConfigHelper-b9cf7758.js} +24 -1
  706. package/dist/esm/FormConfigHelper-b9cf7758.js.gz +0 -0
  707. package/dist/esm/GetSelectedRecordsIDsInfo-9fa41508.js.gz +0 -0
  708. package/dist/esm/IFetchDataExporterParams-d73bed3d.js.gz +0 -0
  709. package/dist/esm/{ISave-345481c1.js → ISave-30cc0eee.js} +1 -1
  710. package/dist/esm/ISave-30cc0eee.js.gz +0 -0
  711. package/dist/esm/ParamType-d5152b06.js.gz +0 -0
  712. package/dist/esm/{PersonalizedFilterUtils-2db38ff2.js → PersonalizedFilterUtils-d2439a9a.js} +13 -0
  713. package/dist/esm/PersonalizedFilterUtils-d2439a9a.js.gz +0 -0
  714. package/dist/esm/PrintUtils-3e4ff0f5.js.gz +0 -0
  715. package/dist/esm/ResourceIDUtils-a114189a.js.gz +0 -0
  716. package/dist/esm/ServicesNumberingConfig-2f7b050e.js.gz +0 -0
  717. package/dist/esm/{SnkFormConfigManager-d61df0c8.js → SnkFormConfigManager-93ff3178.js} +7 -7
  718. package/dist/esm/SnkFormConfigManager-93ff3178.js.gz +0 -0
  719. package/dist/esm/{SnkMultiSelectionListDataSource-ca8d7a09.js → SnkMultiSelectionListDataSource-21d109ad.js} +5 -5
  720. package/dist/esm/SnkMultiSelectionListDataSource-21d109ad.js.gz +0 -0
  721. package/dist/esm/{auth-fetcher-c353127d.js → auth-fetcher-fbe8792a.js} +1 -1
  722. package/dist/esm/auth-fetcher-fbe8792a.js.gz +0 -0
  723. package/dist/esm/config-header.entry.js +1 -1
  724. package/dist/esm/config-header.entry.js.gz +0 -0
  725. package/dist/esm/configs-button.entry.js +1 -1
  726. package/dist/esm/configs-button.entry.js.gz +0 -0
  727. package/dist/esm/constants-7b422de0.js.gz +0 -0
  728. package/dist/esm/css-shim-9f2d321e.js +4 -0
  729. package/dist/esm/css-shim-9f2d321e.js.gz +0 -0
  730. package/dist/esm/{dataunit-fetcher-7f2c61ca.js → dataunit-fetcher-07e525dc.js} +1 -1
  731. package/dist/esm/dataunit-fetcher-07e525dc.js.gz +0 -0
  732. package/dist/esm/default-filters-50105e43.js.gz +0 -0
  733. package/dist/esm/dom-64053c71.js +73 -0
  734. package/dist/esm/dom-64053c71.js.gz +0 -0
  735. package/dist/esm/field-config_2.entry.js +3 -3
  736. package/dist/esm/field-config_2.entry.js.gz +0 -0
  737. package/dist/esm/fields-layout.entry.js +7 -4
  738. package/dist/esm/fields-layout.entry.js.gz +0 -0
  739. package/dist/esm/fields-selector.entry.js +2 -2
  740. package/dist/esm/fields-selector.entry.js.gz +0 -0
  741. package/dist/esm/filter-item-type.enum-d45e026f.js.gz +0 -0
  742. package/dist/esm/filter-type.enum-f6a8fe23.js.gz +0 -0
  743. package/dist/esm/filter-validate-faf51fa9.js.gz +0 -0
  744. package/dist/esm/filterNumberVariation-8cee02ea.js.gz +0 -0
  745. package/dist/esm/{form-config-fetcher-898d2dd1.js → form-config-fetcher-2da29748.js} +1 -1
  746. package/dist/esm/form-config-fetcher-2da29748.js.gz +0 -0
  747. package/dist/esm/guides-configurator.entry.js +6 -4
  748. package/dist/esm/guides-configurator.entry.js.gz +0 -0
  749. package/dist/esm/index-620ac460.js.gz +0 -0
  750. package/dist/esm/index-8acbae97.js.gz +0 -0
  751. package/dist/esm/index-b40568ff.js.gz +0 -0
  752. package/dist/esm/{index-446f9341.js → index-c961465b.js} +90 -21
  753. package/dist/esm/index-c961465b.js.gz +0 -0
  754. package/dist/esm/{index-479e1293.js → index-e9c7ceaa.js} +1503 -171
  755. package/dist/esm/index-e9c7ceaa.js.gz +0 -0
  756. package/dist/esm/index.js.gz +0 -0
  757. package/dist/esm/loader.js +17 -3
  758. package/dist/esm/loader.js.gz +0 -0
  759. package/dist/esm/pesquisa-grid_2.entry.js +5 -5
  760. package/dist/esm/pesquisa-grid_2.entry.js.gz +0 -0
  761. package/dist/esm/polyfills/core-js.js.gz +0 -0
  762. package/dist/esm/polyfills/css-shim.js.gz +0 -0
  763. package/dist/esm/polyfills/dom.js.gz +0 -0
  764. package/dist/esm/polyfills/es5-html-element.js.gz +0 -0
  765. package/dist/esm/polyfills/index.js.gz +0 -0
  766. package/dist/esm/polyfills/system.js.gz +0 -0
  767. package/dist/esm/presentationMode-783bbf9d.js.gz +0 -0
  768. package/dist/esm/sankhyablocks.js +133 -5
  769. package/dist/esm/sankhyablocks.js.gz +0 -0
  770. package/dist/esm/shadow-css-98135883.js +387 -0
  771. package/dist/esm/shadow-css-98135883.js.gz +0 -0
  772. package/dist/esm/snk-actions-button_9.entry.js +6 -6
  773. package/dist/esm/snk-actions-button_9.entry.js.gz +0 -0
  774. package/dist/esm/snk-actions-form.entry.js +1 -1
  775. package/dist/esm/snk-actions-form.entry.js.gz +0 -0
  776. package/dist/esm/snk-application.entry.js +26 -8
  777. package/dist/esm/snk-application.entry.js.gz +0 -0
  778. package/dist/esm/snk-attach.entry.js +8 -8
  779. package/dist/esm/snk-attach.entry.js.gz +0 -0
  780. package/dist/esm/snk-client-confirm.entry.js +1 -1
  781. package/dist/esm/snk-client-confirm.entry.js.gz +0 -0
  782. package/dist/esm/snk-configurator.entry.js +1 -1
  783. package/dist/esm/snk-configurator.entry.js.gz +0 -0
  784. package/dist/esm/snk-crud.entry.js +8 -8
  785. package/dist/esm/snk-crud.entry.js.gz +0 -0
  786. package/dist/esm/snk-custom-slot-elements.entry.js +1 -1
  787. package/dist/esm/snk-custom-slot-elements.entry.js.gz +0 -0
  788. package/dist/esm/snk-data-exporter.entry.js +6 -6
  789. package/dist/esm/snk-data-exporter.entry.js.gz +0 -0
  790. package/dist/esm/{snk-data-unit-60b338c5.js → snk-data-unit-5227615e.js} +10 -3
  791. package/dist/esm/snk-data-unit-5227615e.js.gz +0 -0
  792. package/dist/esm/snk-data-unit.entry.js +4 -4
  793. package/dist/esm/snk-data-unit.entry.js.gz +0 -0
  794. package/dist/esm/snk-default-filter.entry.js +1 -1
  795. package/dist/esm/snk-default-filter.entry.js.gz +0 -0
  796. package/dist/esm/snk-detail-view.entry.js +10 -10
  797. package/dist/esm/snk-detail-view.entry.js.gz +0 -0
  798. package/dist/esm/snk-entity-list.entry.js +1 -1
  799. package/dist/esm/snk-entity-list.entry.js.gz +0 -0
  800. package/dist/esm/snk-exporter-email-sender.entry.js +1 -1
  801. package/dist/esm/snk-exporter-email-sender.entry.js.gz +0 -0
  802. package/dist/esm/snk-expression-group_2.entry.js +2 -2
  803. package/dist/esm/snk-expression-group_2.entry.js.gz +0 -0
  804. package/dist/esm/snk-filter-advanced-mode_2.entry.js +2 -2
  805. package/dist/esm/snk-filter-advanced-mode_2.entry.js.gz +0 -0
  806. package/dist/esm/snk-filter-bar_4.entry.js +56 -23
  807. package/dist/esm/snk-filter-bar_4.entry.js.gz +0 -0
  808. package/dist/esm/snk-filter-binary-select.entry.js +1 -1
  809. package/dist/esm/snk-filter-binary-select.entry.js.gz +0 -0
  810. package/dist/esm/snk-filter-checkbox-list.entry.js +1 -1
  811. package/dist/esm/snk-filter-checkbox-list.entry.js.gz +0 -0
  812. package/dist/esm/snk-filter-detail.entry.js +2 -2
  813. package/dist/esm/snk-filter-detail.entry.js.gz +0 -0
  814. package/dist/esm/snk-filter-field-search_2.entry.js +2 -2
  815. package/dist/esm/snk-filter-field-search_2.entry.js.gz +0 -0
  816. package/dist/esm/snk-filter-modal-item.entry.js +4 -4
  817. package/dist/esm/snk-filter-modal-item.entry.js.gz +0 -0
  818. package/dist/esm/snk-filter-multi-select.entry.js +1 -1
  819. package/dist/esm/snk-filter-multi-select.entry.js.gz +0 -0
  820. package/dist/esm/snk-filter-number.entry.js +2 -2
  821. package/dist/esm/snk-filter-number.entry.js.gz +0 -0
  822. package/dist/esm/snk-filter-period.entry.js +11 -6
  823. package/dist/esm/snk-filter-period.entry.js.gz +0 -0
  824. package/dist/esm/snk-filter-search.entry.js +1 -1
  825. package/dist/esm/snk-filter-search.entry.js.gz +0 -0
  826. package/dist/esm/snk-filter-text.entry.js +2 -2
  827. package/dist/esm/snk-filter-text.entry.js.gz +0 -0
  828. package/dist/esm/snk-form-summary.entry.js +1 -1
  829. package/dist/esm/snk-form-summary.entry.js.gz +0 -0
  830. package/dist/esm/snk-form-view.entry.js +1 -1
  831. package/dist/esm/snk-form-view.entry.js.gz +0 -0
  832. package/dist/esm/snk-form_2.entry.js +29 -8
  833. package/dist/esm/snk-form_2.entry.js.gz +0 -0
  834. package/dist/esm/snk-grid.entry.js +10 -10
  835. package/dist/esm/snk-grid.entry.js.gz +0 -0
  836. package/dist/esm/{snk-guides-viewer-339e10b3.js → snk-guides-viewer-e24d0d2d.js} +7 -7
  837. package/dist/esm/snk-guides-viewer-e24d0d2d.js.gz +0 -0
  838. package/dist/esm/snk-guides-viewer.entry.js +10 -10
  839. package/dist/esm/snk-guides-viewer.entry.js.gz +0 -0
  840. package/dist/esm/snk-personalized-filter-editor.entry.js +1 -1
  841. package/dist/esm/snk-personalized-filter-editor.entry.js.gz +0 -0
  842. package/dist/esm/snk-personalized-filter.entry.js +6 -6
  843. package/dist/esm/snk-personalized-filter.entry.js.gz +0 -0
  844. package/dist/esm/snk-pesquisa.entry.js +5 -5
  845. package/dist/esm/snk-pesquisa.entry.js.gz +0 -0
  846. package/dist/esm/snk-print-selector.entry.js +1 -1
  847. package/dist/esm/snk-print-selector.entry.js.gz +0 -0
  848. package/dist/esm/snk-simple-bar.entry.js +1 -1
  849. package/dist/esm/snk-simple-bar.entry.js.gz +0 -0
  850. package/dist/esm/snk-simple-crud.entry.js +14 -21
  851. package/dist/esm/snk-simple-crud.entry.js.gz +0 -0
  852. package/dist/esm/snk-taskbar.entry.js +60 -48
  853. package/dist/esm/snk-taskbar.entry.js.gz +0 -0
  854. package/dist/esm/sortable.esm-842f85a3.js.gz +0 -0
  855. package/dist/esm/{taskbar-elements-faaf5d8f.js → taskbar-elements-b3c5a3ce.js} +2 -2
  856. package/dist/esm/taskbar-elements-b3c5a3ce.js.gz +0 -0
  857. package/dist/esm/taskbar-processor-3436124c.js.gz +0 -0
  858. package/dist/esm/teste-pesquisa.entry.js +1 -1
  859. package/dist/esm/teste-pesquisa.entry.js.gz +0 -0
  860. package/dist/index.cjs.js.gz +0 -0
  861. package/dist/index.js.gz +0 -0
  862. package/dist/sankhyablocks/index.esm.js.gz +0 -0
  863. package/dist/sankhyablocks/{p-f25c50f7.entry.js → p-04237877.entry.js} +1 -1
  864. package/dist/sankhyablocks/p-04237877.entry.js.gz +0 -0
  865. package/dist/sankhyablocks/p-0f3698af.js.gz +0 -0
  866. package/dist/sankhyablocks/p-0fc59837.entry.js +1 -0
  867. package/dist/sankhyablocks/p-0fc59837.entry.js.gz +0 -0
  868. package/dist/sankhyablocks/{p-7fc46290.js → p-1273039f.js} +1 -1
  869. package/dist/sankhyablocks/p-1273039f.js.gz +0 -0
  870. package/dist/sankhyablocks/p-15c07fa9.js +2 -0
  871. package/dist/sankhyablocks/p-15c07fa9.js.gz +0 -0
  872. package/dist/sankhyablocks/{p-7f7fe6c4.entry.js → p-15f361a1.entry.js} +1 -1
  873. package/dist/sankhyablocks/p-15f361a1.entry.js.gz +0 -0
  874. package/dist/sankhyablocks/{p-2fdac5e6.entry.js → p-18c49622.entry.js} +1 -1
  875. package/dist/sankhyablocks/p-18c49622.entry.js.gz +0 -0
  876. package/dist/sankhyablocks/p-1a0caadb.js.gz +0 -0
  877. package/dist/sankhyablocks/p-1a68fb59.js.gz +0 -0
  878. package/dist/sankhyablocks/{p-162bddae.entry.js → p-1fe20cd8.entry.js} +1 -1
  879. package/dist/sankhyablocks/p-1fe20cd8.entry.js.gz +0 -0
  880. package/dist/sankhyablocks/{p-21107f0d.entry.js → p-25f31aa3.entry.js} +1 -1
  881. package/dist/sankhyablocks/p-25f31aa3.entry.js.gz +0 -0
  882. package/dist/sankhyablocks/{p-bd203e8d.entry.js → p-26f833db.entry.js} +1 -1
  883. package/dist/sankhyablocks/p-26f833db.entry.js.gz +0 -0
  884. package/dist/sankhyablocks/{p-49ddc27a.entry.js → p-2cc7295f.entry.js} +1 -1
  885. package/dist/sankhyablocks/p-2cc7295f.entry.js.gz +0 -0
  886. package/dist/sankhyablocks/p-2cf62df9.entry.js +1 -0
  887. package/dist/sankhyablocks/p-2cf62df9.entry.js.gz +0 -0
  888. package/dist/sankhyablocks/p-309fedd2.entry.js +1 -0
  889. package/dist/sankhyablocks/p-309fedd2.entry.js.gz +0 -0
  890. package/dist/sankhyablocks/{p-7e250432.entry.js → p-3411e55e.entry.js} +1 -1
  891. package/dist/sankhyablocks/p-3411e55e.entry.js.gz +0 -0
  892. package/dist/sankhyablocks/{p-c4fcf1fb.entry.js → p-360c1621.entry.js} +1 -1
  893. package/dist/sankhyablocks/p-360c1621.entry.js.gz +0 -0
  894. package/dist/sankhyablocks/{p-1d585081.js → p-3810bd66.js} +1 -1
  895. package/dist/sankhyablocks/p-3810bd66.js.gz +0 -0
  896. package/dist/sankhyablocks/{p-164c822d.entry.js → p-3c77a644.entry.js} +1 -1
  897. package/dist/sankhyablocks/p-3c77a644.entry.js.gz +0 -0
  898. package/dist/sankhyablocks/p-3f4699dc.entry.js +1 -0
  899. package/dist/sankhyablocks/p-3f4699dc.entry.js.gz +0 -0
  900. package/dist/sankhyablocks/{p-e8c49c12.js → p-403c0168.js} +1 -1
  901. package/dist/sankhyablocks/p-403c0168.js.gz +0 -0
  902. package/dist/sankhyablocks/{p-88ed2793.js → p-42e248cd.js} +1 -1
  903. package/dist/sankhyablocks/p-42e248cd.js.gz +0 -0
  904. package/dist/sankhyablocks/{p-59b8f277.js → p-43f41898.js} +1 -1
  905. package/dist/sankhyablocks/p-43f41898.js.gz +0 -0
  906. package/dist/sankhyablocks/{p-7345782c.entry.js → p-43f4ccb8.entry.js} +1 -1
  907. package/dist/sankhyablocks/p-43f4ccb8.entry.js.gz +0 -0
  908. package/dist/sankhyablocks/{p-91a9abb6.entry.js → p-4c8f3b88.entry.js} +1 -1
  909. package/dist/sankhyablocks/p-4c8f3b88.entry.js.gz +0 -0
  910. package/dist/sankhyablocks/{p-144da1d1.entry.js → p-4d102770.entry.js} +1 -1
  911. package/dist/sankhyablocks/p-4d102770.entry.js.gz +0 -0
  912. package/dist/sankhyablocks/p-50735892.js +1 -0
  913. package/dist/sankhyablocks/p-50735892.js.gz +0 -0
  914. package/dist/sankhyablocks/p-51833248.js.gz +0 -0
  915. package/dist/sankhyablocks/p-530ef41f.entry.js +11 -0
  916. package/dist/sankhyablocks/p-530ef41f.entry.js.gz +0 -0
  917. package/dist/sankhyablocks/{p-4c763b10.entry.js → p-5ef833a9.entry.js} +1 -1
  918. package/dist/sankhyablocks/p-5ef833a9.entry.js.gz +0 -0
  919. package/dist/sankhyablocks/p-688dcb4c.js.gz +0 -0
  920. package/dist/sankhyablocks/p-68c1a093.js +1 -0
  921. package/dist/sankhyablocks/p-68c1a093.js.gz +0 -0
  922. package/dist/sankhyablocks/p-69b6dc83.entry.js +1 -0
  923. package/dist/sankhyablocks/p-69b6dc83.entry.js.gz +0 -0
  924. package/dist/sankhyablocks/p-6a4b21dd.js.gz +0 -0
  925. package/dist/sankhyablocks/{p-27482793.entry.js → p-6b776c48.entry.js} +1 -1
  926. package/dist/sankhyablocks/p-6b776c48.entry.js.gz +0 -0
  927. package/dist/sankhyablocks/p-71b1be2e.js +1 -0
  928. package/dist/sankhyablocks/p-71b1be2e.js.gz +0 -0
  929. package/dist/sankhyablocks/p-76e66fd9.js.gz +0 -0
  930. package/dist/sankhyablocks/{p-1f8cb438.entry.js → p-79533925.entry.js} +1 -1
  931. package/dist/sankhyablocks/p-79533925.entry.js.gz +0 -0
  932. package/dist/sankhyablocks/{p-cb4343c4.entry.js → p-7bcfd67e.entry.js} +1 -1
  933. package/dist/sankhyablocks/p-7bcfd67e.entry.js.gz +0 -0
  934. package/dist/sankhyablocks/p-7dd49d15.js.gz +0 -0
  935. package/dist/sankhyablocks/{p-e258de96.entry.js → p-7fc98366.entry.js} +1 -1
  936. package/dist/sankhyablocks/p-7fc98366.entry.js.gz +0 -0
  937. package/dist/sankhyablocks/{p-c90f337a.entry.js → p-8112e717.entry.js} +1 -1
  938. package/dist/sankhyablocks/p-8112e717.entry.js.gz +0 -0
  939. package/dist/sankhyablocks/{p-3d41f5a8.entry.js → p-8293629f.entry.js} +1 -1
  940. package/dist/sankhyablocks/p-8293629f.entry.js.gz +0 -0
  941. package/dist/sankhyablocks/p-84345e7a.js.gz +0 -0
  942. package/dist/sankhyablocks/p-8d884fab.js.gz +0 -0
  943. package/dist/sankhyablocks/p-8f3f2306.js.gz +0 -0
  944. package/dist/sankhyablocks/p-9019a32f.js.gz +0 -0
  945. package/dist/sankhyablocks/p-969ed695.entry.js +1 -0
  946. package/dist/sankhyablocks/p-969ed695.entry.js.gz +0 -0
  947. package/dist/sankhyablocks/p-973f2144.entry.js +1 -0
  948. package/dist/sankhyablocks/p-973f2144.entry.js.gz +0 -0
  949. package/dist/sankhyablocks/{p-4759912d.entry.js → p-a111bedd.entry.js} +1 -1
  950. package/dist/sankhyablocks/{p-4759912d.entry.js.gz → p-a111bedd.entry.js.gz} +0 -0
  951. package/dist/sankhyablocks/{p-1788d191.js → p-a17e9ecd.js} +1 -1
  952. package/dist/sankhyablocks/p-a17e9ecd.js.gz +0 -0
  953. package/dist/sankhyablocks/{p-af9d79e0.entry.js → p-a415da53.entry.js} +1 -1
  954. package/dist/sankhyablocks/p-a415da53.entry.js.gz +0 -0
  955. package/dist/sankhyablocks/p-a46ac091.js +1 -0
  956. package/dist/sankhyablocks/p-a46ac091.js.gz +0 -0
  957. package/dist/sankhyablocks/{p-7b3ca294.entry.js → p-aaba26e1.entry.js} +1 -1
  958. package/dist/sankhyablocks/p-aaba26e1.entry.js.gz +0 -0
  959. package/dist/sankhyablocks/{p-471b34f4.entry.js → p-afc69b40.entry.js} +1 -1
  960. package/dist/sankhyablocks/p-afc69b40.entry.js.gz +0 -0
  961. package/dist/sankhyablocks/p-b568c1d4.js.gz +0 -0
  962. package/dist/sankhyablocks/{p-9fe91526.js → p-c0092d28.js} +1 -1
  963. package/dist/sankhyablocks/p-c0092d28.js.gz +0 -0
  964. package/dist/sankhyablocks/{p-9a63f3f7.entry.js → p-c0cc97c9.entry.js} +1 -1
  965. package/dist/sankhyablocks/p-c0cc97c9.entry.js.gz +0 -0
  966. package/dist/sankhyablocks/{p-27005fac.entry.js → p-c14c2ccb.entry.js} +1 -1
  967. package/dist/sankhyablocks/p-c14c2ccb.entry.js.gz +0 -0
  968. package/dist/sankhyablocks/p-c3ec6642.js +19 -0
  969. package/dist/sankhyablocks/p-c3ec6642.js.gz +0 -0
  970. package/dist/sankhyablocks/p-ca199896.entry.js +1 -0
  971. package/dist/sankhyablocks/p-ca199896.entry.js.gz +0 -0
  972. package/dist/sankhyablocks/{p-093f58fa.entry.js → p-ca9affb9.entry.js} +1 -1
  973. package/dist/sankhyablocks/p-ca9affb9.entry.js.gz +0 -0
  974. package/dist/sankhyablocks/p-cad964b5.js.gz +0 -0
  975. package/dist/sankhyablocks/p-cc78393d.entry.js +1 -0
  976. package/dist/sankhyablocks/p-cc78393d.entry.js.gz +0 -0
  977. package/dist/sankhyablocks/{p-6d241415.js → p-cdda05e3.js} +1 -1
  978. package/dist/sankhyablocks/p-cdda05e3.js.gz +0 -0
  979. package/dist/sankhyablocks/{p-667cab42.entry.js → p-d59bc608.entry.js} +1 -1
  980. package/dist/sankhyablocks/p-d59bc608.entry.js.gz +0 -0
  981. package/dist/sankhyablocks/p-d68904a9.js +1 -0
  982. package/dist/sankhyablocks/p-d68904a9.js.gz +0 -0
  983. package/dist/sankhyablocks/p-da455c82.js +12 -0
  984. package/dist/sankhyablocks/p-da455c82.js.gz +0 -0
  985. package/dist/sankhyablocks/{p-c3dbf441.entry.js → p-dc30c3c4.entry.js} +1 -1
  986. package/dist/sankhyablocks/p-dc30c3c4.entry.js.gz +0 -0
  987. package/dist/sankhyablocks/p-dc36cfbf.js.gz +0 -0
  988. package/dist/sankhyablocks/{p-b987e15d.js → p-ddf5e382.js} +1 -1
  989. package/dist/sankhyablocks/p-ddf5e382.js.gz +0 -0
  990. package/dist/sankhyablocks/{p-e6b1c769.entry.js → p-de27a13b.entry.js} +1 -1
  991. package/dist/sankhyablocks/p-de27a13b.entry.js.gz +0 -0
  992. package/dist/sankhyablocks/{p-b7e891cc.entry.js → p-e0ef7460.entry.js} +1 -1
  993. package/dist/sankhyablocks/p-e0ef7460.entry.js.gz +0 -0
  994. package/dist/sankhyablocks/{p-96d45943.entry.js → p-e60b1bf7.entry.js} +1 -1
  995. package/dist/sankhyablocks/p-e60b1bf7.entry.js.gz +0 -0
  996. package/dist/sankhyablocks/p-e6fbd6a9.js +1 -0
  997. package/dist/sankhyablocks/p-e6fbd6a9.js.gz +0 -0
  998. package/dist/sankhyablocks/p-eaad0aa8.js.gz +0 -0
  999. package/dist/sankhyablocks/p-ebdf5762.entry.js +1 -0
  1000. package/dist/sankhyablocks/p-ebdf5762.entry.js.gz +0 -0
  1001. package/dist/sankhyablocks/{p-180716b2.entry.js → p-f258c8e0.entry.js} +1 -1
  1002. package/dist/sankhyablocks/p-f258c8e0.entry.js.gz +0 -0
  1003. package/dist/sankhyablocks/p-f29b134c.entry.js +1 -0
  1004. package/dist/sankhyablocks/p-f29b134c.entry.js.gz +0 -0
  1005. package/dist/sankhyablocks/{p-825098c1.entry.js → p-f330789d.entry.js} +1 -1
  1006. package/dist/sankhyablocks/p-f330789d.entry.js.gz +0 -0
  1007. package/dist/sankhyablocks/p-f4184ce7.js.gz +0 -0
  1008. package/dist/sankhyablocks/{p-75af335e.entry.js → p-f86a394e.entry.js} +1 -1
  1009. package/dist/sankhyablocks/p-f86a394e.entry.js.gz +0 -0
  1010. package/dist/sankhyablocks/p-fa80e546.js.gz +0 -0
  1011. package/dist/sankhyablocks/p-ff1990ad.js.gz +0 -0
  1012. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  1013. package/dist/sankhyablocks/sankhyablocks.esm.js.gz +0 -0
  1014. package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +1 -0
  1015. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-period.d.ts +1 -0
  1016. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +1 -1
  1017. package/dist/types/components/snk-filter-bar/filter-modal/snk-filter-modal.d.ts +2 -1
  1018. package/dist/types/components/snk-form-config/FormConfigHelper.d.ts +4 -1
  1019. package/dist/types/components/snk-form-config/SnkFormConfigManager.d.ts +1 -1
  1020. package/dist/types/components/snk-form-config/fields-layout/fields-layout.d.ts +2 -2
  1021. package/dist/types/components/snk-form-config/guides-configurator/guides-configurator.d.ts +1 -1
  1022. package/dist/types/components/snk-form-config/snk-form-config.d.ts +4 -2
  1023. package/dist/types/components/snk-personalized-filter/interfaces/IParameter.d.ts +1 -0
  1024. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +4 -1
  1025. package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +6 -3
  1026. package/dist/types/components.d.ts +8 -0
  1027. package/package.json +1 -1
  1028. package/dist/cjs/ConfigStorage-5a73e979.js.gz +0 -0
  1029. package/dist/cjs/DataFetcher-eeb3b0b7.js.gz +0 -0
  1030. package/dist/cjs/FormConfigHelper-ebb77625.js.gz +0 -0
  1031. package/dist/cjs/ISave-861e9d6d.js.gz +0 -0
  1032. package/dist/cjs/PersonalizedFilterUtils-7259cf65.js.gz +0 -0
  1033. package/dist/cjs/SnkFormConfigManager-8d4fded8.js.gz +0 -0
  1034. package/dist/cjs/SnkMultiSelectionListDataSource-3b93f6a6.js.gz +0 -0
  1035. package/dist/cjs/auth-fetcher-8d8acd69.js.gz +0 -0
  1036. package/dist/cjs/dataunit-fetcher-1cea0695.js.gz +0 -0
  1037. package/dist/cjs/form-config-fetcher-f347f884.js.gz +0 -0
  1038. package/dist/cjs/index-13d05f03.js.gz +0 -0
  1039. package/dist/cjs/index-1cf293c1.js.gz +0 -0
  1040. package/dist/cjs/snk-data-unit-de248308.js.gz +0 -0
  1041. package/dist/cjs/snk-guides-viewer-4ec3e7e1.js.gz +0 -0
  1042. package/dist/cjs/taskbar-elements-fb5d1e08.js.gz +0 -0
  1043. package/dist/esm/ConfigStorage-568dc227.js.gz +0 -0
  1044. package/dist/esm/FormConfigHelper-4e42f0b6.js.gz +0 -0
  1045. package/dist/esm/ISave-345481c1.js.gz +0 -0
  1046. package/dist/esm/PersonalizedFilterUtils-2db38ff2.js.gz +0 -0
  1047. package/dist/esm/SnkFormConfigManager-d61df0c8.js.gz +0 -0
  1048. package/dist/esm/SnkMultiSelectionListDataSource-ca8d7a09.js.gz +0 -0
  1049. package/dist/esm/auth-fetcher-c353127d.js.gz +0 -0
  1050. package/dist/esm/dataunit-fetcher-7f2c61ca.js.gz +0 -0
  1051. package/dist/esm/form-config-fetcher-898d2dd1.js.gz +0 -0
  1052. package/dist/esm/index-446f9341.js.gz +0 -0
  1053. package/dist/esm/index-479e1293.js.gz +0 -0
  1054. package/dist/esm/snk-data-unit-60b338c5.js.gz +0 -0
  1055. package/dist/esm/snk-guides-viewer-339e10b3.js.gz +0 -0
  1056. package/dist/esm/taskbar-elements-faaf5d8f.js.gz +0 -0
  1057. package/dist/sankhyablocks/p-093f58fa.entry.js.gz +0 -0
  1058. package/dist/sankhyablocks/p-0cf9aa38.js +0 -1
  1059. package/dist/sankhyablocks/p-0cf9aa38.js.gz +0 -0
  1060. package/dist/sankhyablocks/p-11346b8d.entry.js +0 -1
  1061. package/dist/sankhyablocks/p-11346b8d.entry.js.gz +0 -0
  1062. package/dist/sankhyablocks/p-144da1d1.entry.js.gz +0 -0
  1063. package/dist/sankhyablocks/p-162bddae.entry.js.gz +0 -0
  1064. package/dist/sankhyablocks/p-1649f51e.entry.js +0 -1
  1065. package/dist/sankhyablocks/p-1649f51e.entry.js.gz +0 -0
  1066. package/dist/sankhyablocks/p-164c822d.entry.js.gz +0 -0
  1067. package/dist/sankhyablocks/p-1788d191.js.gz +0 -0
  1068. package/dist/sankhyablocks/p-180716b2.entry.js.gz +0 -0
  1069. package/dist/sankhyablocks/p-1d585081.js.gz +0 -0
  1070. package/dist/sankhyablocks/p-1f8cb438.entry.js.gz +0 -0
  1071. package/dist/sankhyablocks/p-21107f0d.entry.js.gz +0 -0
  1072. package/dist/sankhyablocks/p-27005fac.entry.js.gz +0 -0
  1073. package/dist/sankhyablocks/p-27482793.entry.js.gz +0 -0
  1074. package/dist/sankhyablocks/p-2fdac5e6.entry.js.gz +0 -0
  1075. package/dist/sankhyablocks/p-3d41f5a8.entry.js.gz +0 -0
  1076. package/dist/sankhyablocks/p-3ed04f0d.entry.js +0 -1
  1077. package/dist/sankhyablocks/p-3ed04f0d.entry.js.gz +0 -0
  1078. package/dist/sankhyablocks/p-471b34f4.entry.js.gz +0 -0
  1079. package/dist/sankhyablocks/p-49ddc27a.entry.js.gz +0 -0
  1080. package/dist/sankhyablocks/p-4c763b10.entry.js.gz +0 -0
  1081. package/dist/sankhyablocks/p-55798617.js +0 -1
  1082. package/dist/sankhyablocks/p-55798617.js.gz +0 -0
  1083. package/dist/sankhyablocks/p-56948f00.entry.js +0 -11
  1084. package/dist/sankhyablocks/p-56948f00.entry.js.gz +0 -0
  1085. package/dist/sankhyablocks/p-59b8f277.js.gz +0 -0
  1086. package/dist/sankhyablocks/p-60dd1d27.entry.js +0 -1
  1087. package/dist/sankhyablocks/p-60dd1d27.entry.js.gz +0 -0
  1088. package/dist/sankhyablocks/p-626b7a17.js +0 -1
  1089. package/dist/sankhyablocks/p-626b7a17.js.gz +0 -0
  1090. package/dist/sankhyablocks/p-667cab42.entry.js.gz +0 -0
  1091. package/dist/sankhyablocks/p-6d241415.js.gz +0 -0
  1092. package/dist/sankhyablocks/p-7345782c.entry.js.gz +0 -0
  1093. package/dist/sankhyablocks/p-75af335e.entry.js.gz +0 -0
  1094. package/dist/sankhyablocks/p-7b3ca294.entry.js.gz +0 -0
  1095. package/dist/sankhyablocks/p-7e250432.entry.js.gz +0 -0
  1096. package/dist/sankhyablocks/p-7f7fe6c4.entry.js.gz +0 -0
  1097. package/dist/sankhyablocks/p-7fc46290.js.gz +0 -0
  1098. package/dist/sankhyablocks/p-825098c1.entry.js.gz +0 -0
  1099. package/dist/sankhyablocks/p-88ed2793.js.gz +0 -0
  1100. package/dist/sankhyablocks/p-8f73da95.js +0 -1
  1101. package/dist/sankhyablocks/p-8f73da95.js.gz +0 -0
  1102. package/dist/sankhyablocks/p-91a9abb6.entry.js.gz +0 -0
  1103. package/dist/sankhyablocks/p-95c71f5e.entry.js +0 -1
  1104. package/dist/sankhyablocks/p-95c71f5e.entry.js.gz +0 -0
  1105. package/dist/sankhyablocks/p-96d45943.entry.js.gz +0 -0
  1106. package/dist/sankhyablocks/p-988afe78.js +0 -1
  1107. package/dist/sankhyablocks/p-988afe78.js.gz +0 -0
  1108. package/dist/sankhyablocks/p-9a63f3f7.entry.js.gz +0 -0
  1109. package/dist/sankhyablocks/p-9f2cdaab.entry.js +0 -1
  1110. package/dist/sankhyablocks/p-9f2cdaab.entry.js.gz +0 -0
  1111. package/dist/sankhyablocks/p-9fe91526.js.gz +0 -0
  1112. package/dist/sankhyablocks/p-a5108625.entry.js +0 -1
  1113. package/dist/sankhyablocks/p-a5108625.entry.js.gz +0 -0
  1114. package/dist/sankhyablocks/p-aae4258d.entry.js +0 -1
  1115. package/dist/sankhyablocks/p-aae4258d.entry.js.gz +0 -0
  1116. package/dist/sankhyablocks/p-af9d79e0.entry.js.gz +0 -0
  1117. package/dist/sankhyablocks/p-b7e891cc.entry.js.gz +0 -0
  1118. package/dist/sankhyablocks/p-b987e15d.js.gz +0 -0
  1119. package/dist/sankhyablocks/p-bb0de89c.entry.js +0 -1
  1120. package/dist/sankhyablocks/p-bb0de89c.entry.js.gz +0 -0
  1121. package/dist/sankhyablocks/p-bd203e8d.entry.js.gz +0 -0
  1122. package/dist/sankhyablocks/p-c3dbf441.entry.js.gz +0 -0
  1123. package/dist/sankhyablocks/p-c4fcf1fb.entry.js.gz +0 -0
  1124. package/dist/sankhyablocks/p-c90f337a.entry.js.gz +0 -0
  1125. package/dist/sankhyablocks/p-cb4343c4.entry.js.gz +0 -0
  1126. package/dist/sankhyablocks/p-d8d8169b.js +0 -2
  1127. package/dist/sankhyablocks/p-d8d8169b.js.gz +0 -0
  1128. package/dist/sankhyablocks/p-e258de96.entry.js.gz +0 -0
  1129. package/dist/sankhyablocks/p-e64958ba.entry.js +0 -1
  1130. package/dist/sankhyablocks/p-e64958ba.entry.js.gz +0 -0
  1131. package/dist/sankhyablocks/p-e6b1c769.entry.js.gz +0 -0
  1132. package/dist/sankhyablocks/p-e8c49c12.js.gz +0 -0
  1133. package/dist/sankhyablocks/p-f25c50f7.entry.js.gz +0 -0
  1134. package/dist/sankhyablocks/p-f8f29e1a.entry.js +0 -1
  1135. package/dist/sankhyablocks/p-f8f29e1a.entry.js.gz +0 -0
@@ -1 +1 @@
1
- import{r as t,c as i,h as e}from"./p-d8d8169b.js";import{ApplicationContext as a,DataType as s,Action as n,UserInterface as o,StringUtils as r,DataUnitLoaderUtils as l,DataUnit as d}from"@sankhyalabs/core";import{D as h,S as c}from"./p-6d241415.js";import{S as v}from"./p-e8c49c12.js";import"./p-0f3698af.js";import{P as u,D as m,I as A}from"./p-88ed2793.js";import"./p-ff1990ad.js";import"./p-7fc46290.js";import{V as O}from"./p-9019a32f.js";import{A as p}from"./p-1d585081.js";import{T as w}from"./p-b987e15d.js";import"./p-8d884fab.js";import"@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata";import"@sankhyalabs/ezui/dist/collection/utils/constants";import"@sankhyalabs/ezui/dist/collection/components/ez-grid/utils";import"@sankhyalabs/core/dist/utils/SortingUtils";import"./p-688dcb4c.js";import"./p-55798617.js";class k{constructor(t){this.dataUnitName=t}async save({dataUnit:t,record:i,updatingFields:e,operation:a}){var s,n;const o="INSERT"==a,r=o?e:i;if(!o&&(null==e?void 0:e.DESCRICAO)&&(null==e?void 0:e.DESCRICAO)!==(null==i?void 0:i.DESCRICAO))throw new Error(v.DESCRIPTION_CANNOT_BE_CHANGED);const l={anexo:{codata:o?null==e?void 0:e.REGISTER_KEY:null==i?void 0:i.CODATA,sequencia:(null==r?void 0:r.SEQUENCIA)||"0",tipo:(null==r?void 0:r.TIPO)||"N",descricao:null==r?void 0:r.DESCRICAO,arquivo:null===(n=null===(s=e.CAMINHO_ARQUIVO)||void 0===s?void 0:s[0])||void 0===n?void 0:n.name,ehInclusao:o?"S":"N",ehArquivoRepositorio:"N"}};return new Promise(((i,a)=>{h.get().callServiceBroker("Attach.save",JSON.stringify(l)).then((a=>{var s;return i([Object.assign(Object.assign(Object.assign({},a),e),{__owner__dataunit__name__:null!==(s=this.dataUnitName)&&void 0!==s?s:t})])})).catch((t=>a(t)))}))}async edit(t){throw new Error("Method not implemented.")}async delete(t){var i={anexo:{codata:t.CODATA,tipo:t.TIPO,descricao:t.DESCRICAO}};const e=await h.get().callServiceBroker("Attach.remove",JSON.stringify(i));return Promise.resolve(e)}async getDownloadKey(t){var i,e,a;if("S"==t.EHARQUIVOREPOSITORIO){const a={config:{path:t.ARQUIVO,tipoconteudo:t.TIPOCONTEUDO}},s=await h.get().callServiceBroker("RepositorioArquivoSP.abreArquivo",JSON.stringify(a));return Promise.resolve({chave:{valor:null===(e=null===(i=null==s?void 0:s.responseBody)||void 0===i?void 0:i.chave)||void 0===e?void 0:e.valor}})}const s={anexo:{codata:t.CODATA,codemp:t.CODEMP,sequencia:t.SEQUENCIA,tipo:t.TIPO,descricao:t.DESCRICAO,tipoConteudo:t.TIPOCONTEUDO}},n=await h.get().callServiceBroker("Attach.view",JSON.stringify(s));return(null==n?void 0:n.chaveAnexo)?Promise.resolve({chave:{valor:null===(a=null==n?void 0:n.chaveAnexo)||void 0===a?void 0:a.idChaveAnexo}}):Promise.reject(new Error("File not found."))}}const S="AnexoSistemaSP.salvar",I="AnexoSistemaSP.excluir",f="AnexoSistemaSP.baixar";class y{constructor(t,i){var e;this.entityName=t,this.dataUnitName=i,this.validateFields=t=>{if(t.LINK&&t.NOMEARQUIVO)throw new Error(v.LINK_AND_FILE_AT_THE_SAME_TIME);if(!t.LINK&&!t.NOMEARQUIVO)throw new Error(v.ANY_LINK_OR_FILE_FILLED);if(!this._registerKey)throw new Error("Register key can not be null")},this.resourceID=window.resourceID||(null===(e=window.workspace)||void 0===e?void 0:e.resourceID)}set registerKey(t){this._registerKey=t}async save(t){var i,e;let{updatingFields:a}=t;a=Object.assign(Object.assign({},a),{NOMEARQUIVO:null===(i=a.NOMEARQUIVO)||void 0===i?void 0:i[0]});try{this.validateFields(a);const t=a.LINK?null:a.NOMEARQUIVO,i={serviceName:S,requestBody:{params:{resourceID:this.resourceID,description:a.DESCRICAO,fileSelect:t?1:0,keySession:null===(e=null==t?void 0:t.properties)||void 0===e?void 0:e.fileNameTmp,nameAttach:null==t?void 0:t.name,link:a.LINK,nameEntity:this.entityName,pkEntity:this._registerKey,typeAcess:a.TIPOACESSO,typeApres:a.TIPOAPRES}}},s=await h.get().callServiceBroker(S,JSON.stringify(i));return Promise.resolve([Object.assign(Object.assign(Object.assign({},s),a),{ARQUIVOOULINK:a.LINK?a.LINK:null==t?void 0:t.name,__owner__dataunit__name__:this.dataUnitName})])}catch(t){return Promise.reject(t)}}async edit(t){var i,e,a;let{updatingFields:s,record:n}=t;const o=t=>void 0!==s[t]?s[t]:n[t],r=o("NOMEARQUIVO"),l=null===(e=null===(i=s.NOMEARQUIVO)||void 0===i?void 0:i[0])||void 0===e?void 0:e.downloadURL;s=Object.assign(Object.assign({},s),{DESCRICAO:o("DESCRICAO"),LINK:o("LINK"),TIPOACESSO:o("TIPOACESSO"),TIPOAPRES:o("TIPOAPRES"),CHAVEARQUIVO:n.CHAVEARQUIVO,NOMEARQUIVO:null==r?void 0:r[0]});const d=s.LINK?null:s.NOMEARQUIVO;try{this.validateFields(s);const t={serviceName:S,requestBody:{params:{resourceID:this.resourceID,nuAttach:null==n?void 0:n.NUATTACH,description:s.DESCRICAO,fileSelect:l?1:0,keySession:null===(a=null==d?void 0:d.properties)||void 0===a?void 0:a.fileNameTmp,keyAttach:s.CHAVEARQUIVO,nameAttach:null==d?void 0:d.name,link:s.LINK,nameEntity:this.entityName,pkEntity:this._registerKey,typeAcess:s.TIPOACESSO,typeApres:s.TIPOAPRES}}},i=await h.get().callServiceBroker(S,JSON.stringify(t));return Promise.resolve([Object.assign(Object.assign(Object.assign({},i),s),{ARQUIVOOULINK:s.LINK?s.LINK:null==d?void 0:d.name,__owner__dataunit__name__:this.dataUnitName})])}catch(t){return Promise.reject(t)}}delete(t){var i;const e=(null===(i=t.NOMEARQUIVO)||void 0===i?void 0:i[0])||{},a={serviceName:I,requestBody:{paramsDelete:{keyAttach:t.CHAVEARQUIVO,nameAttach:null==e?void 0:e.name,nameEntity:t.NOMEINSTANCIA,nuAttach:t.NUATTACH,pkEntity:t.PKREGISTRO}}};return new Promise(((t,i)=>{h.get().callServiceBroker(I,JSON.stringify(a)).then((i=>t(i))).catch((t=>i(t)))}))}getDownloadKey(t){var i;const e=(null===(i=t.NOMEARQUIVO)||void 0===i?void 0:i[0])||{},a={serviceName:f,requestBody:{paramsDown:{nameAttach:null==e?void 0:e.name,nameEntity:t.NOMEINSTANCIA,nuAttach:t.NUATTACH,pkEntity:t.PKREGISTRO,keyAttach:t.CHAVEARQUIVO}}};return new Promise(((t,i)=>{h.get().callServiceBroker(f,JSON.stringify(a)).then((i=>t(i))).catch((t=>i(t)))}))}}class _{constructor(t,i){this.entityName=t,this.getMessage=i,this._application=a.getContextValue("__SNK__APPLICATION__")}initLoaders(t,i,e){this.loader||(this.loader=t.dataLoader),t.dataLoader=(t,i)=>this.dataLoader(t,i),t.saveLoader=(t,a)=>this.saveLoader(a,i).then((t=>(t.length&&e(),t))),t.removeLoader=(t,a)=>this.removeLoader(t,a,i).then((t=>(t.length&&e(),t)))}metadataLoader(t){throw new Error("Method not implemented.")}dataLoader(t,i){return new Promise((e=>{this.loader(t,i).then((t=>{const i=((null==t?void 0:t.records)||[]).map((t=>{let i;return t.LINK||(i=[{name:t.NOMEARQUIVO}]),Object.assign(Object.assign({},t),{ARQUIVOOULINK:t.LINK?t.LINK:t.NOMEARQUIVO,NOMEARQUIVO:i})}));e(Object.assign(Object.assign({},t),{records:i}))}))}))}saveLoader(t,i){return new Promise((e=>{var a;const s=Array.isArray(t)?t[0]:{};((null===(a=null==s?void 0:s.record)||void 0===a?void 0:a.NUATTACH)>=0?i.edit.bind(i):i.save.bind(i))(s).then((t=>{e(t)})).catch((t=>t.message===v.LINK_AND_FILE_AT_THE_SAME_TIME?(this._application.alert(this.getMessage("snkAttach.alertValidation.fileAndLinkAtTheSameTime.title"),this.getMessage("snkAttach.alertValidation.fileAndLinkAtTheSameTime.message")),e([])):t.message===v.ANY_LINK_OR_FILE_FILLED?(this._application.alert(this.getMessage("snkAttach.alertValidation.anyLinkOrFileFilled.title"),this.getMessage("snkAttach.alertValidation.anyLinkOrFileFilled.message")),e([])):t.message?(this._application.error(t.title||t.name,t.message),e([])):void e([])))}))}removeLoader(t,i,e){return new Promise((a=>{const{records:s}=t.getSelectionInfo(),n=s[0];e.delete(n).then((()=>(u.removeRecords(t,[n]),a(i))))}))}getFilters(t){return[{name:"AttachmentsByPK",expression:"this.PKREGISTRO = :PKREGISTRO",params:[{name:"PKREGISTRO",dataType:s.TEXT,value:`${t}_${this.entityName}`}]}]}getInterceptions(t,i,e){return new Promise((a=>i.type===n.EDITION_CANCELED?t.isDirty()?this._application.confirm(this.getMessage("snkAttach.cancelConfirmation.title"),this.getMessage("snkAttach.cancelConfirmation.message")).then((t=>t?(e.goToView(O.GRID),a(i)):a(void 0))):a(i):i.type===n.DATA_SAVED?(t.loadData(),a(i)):void a(i)))}}let b;const g=t=>(b||(b=new c),b.getMessage(t)),N={grid:{columns:[{name:"CODATA",orderIndex:0,width:0},{name:"DESCRICAO",orderIndex:1,width:0},{name:"ARQUIVO",orderIndex:2,width:0},{name:"DTALTER",orderIndex:3,width:0},{name:"USUARIO",orderIndex:4,width:0}]},form:{emptyConfig:!1,fields:[{name:"DESCRICAO",label:g("snkAttach.attachMetadata.lblDescription"),visible:!0,readOnly:!1,required:!0},{name:"CAMINHO_ARQUIVO",label:g("snkAttach.attachMetadata.lblFile"),visible:!0,readOnly:!1,required:!0}]}},E={name:"Attach",label:"Attach List",fields:[{name:"CODATA",label:g("snkAttach.attachMetadata.lblCode"),dataType:s.TEXT},{name:"DESCRICAO",label:g("snkAttach.attachMetadata.lblDescription"),dataType:s.TEXT,readOnly:!1},{name:"ARQUIVO",label:g("snkAttach.attachMetadata.lblFileOrLink"),dataType:s.TEXT},{name:"USUARIO",label:g("snkAttach.attachMetadata.lblUser"),dataType:s.TEXT},{name:"DTALTER",label:g("snkAttach.attachMetadata.lblDate"),dataType:s.TEXT},{name:"CAMINHO_ARQUIVO",label:g("snkAttach.attachMetadata.lblFileUpload"),dataType:s.OBJECT,userInterface:o.FILE,readOnly:!1,required:!0,visible:!0,properties:{subTitle:g("snkAttach.attachMetadata.lblSubTitle"),MAX_FILES:1,STORAGESTRATEGY:"SESSION",INTERNAL_FILENAME:"Attach.upload"}}]};class C{constructor(t){this.getMessage=t,this._records=[],this._application=a.getContextValue("__SNK__APPLICATION__")}initLoaders(t,i,e){t.metadataLoader=t=>this.metadataLoader(t),t.dataLoader=(t,i)=>this.dataLoader(t,i),t.saveLoader=(t,a)=>this.saveLoader(a,i).then((t=>(t.length&&e(),t))),t.removeLoader=(t,a)=>this.removeLoader(t,a,i).then((t=>(t.length&&e(),t)))}metadataLoader(t){return Promise.resolve(E)}async dataLoader(t,i){if(!i.source)return Promise.resolve({records:this._records});if(!Number.isNaN(Number(i.source))){const t={criteria:{codata:i.source,tipoAnexo:"N"}},e=await this._application.getDataFetcher(),{anexos:{anexo:a=[]}}=await e.callServiceBroker("Attach.load",JSON.stringify(t)),s=[];a.forEach((t=>{s.push(Object.assign({__record__id__:r.generateUUID(),CAMINHO_ARQUIVO:[{name:null==t?void 0:t.ARQUIVO}]},t))})),this._records=s}return l.buildLoadDataResponse(this._records,t,i)}saveLoader(t,i){return new Promise((e=>{const a=Array.isArray(t)?t[0]:{};i.save(a).then(e).catch((t=>t.message===v.DESCRIPTION_CANNOT_BE_CHANGED?(this._application.alert(this.getMessage("snkAttach.alertValidation.descriptionCannotBeChanged.title"),this.getMessage("snkAttach.alertValidation.descriptionCannotBeChanged.message")),e([])):t.message===v.LINK_AND_FILE_AT_THE_SAME_TIME?(this._application.alert(this.getMessage("snkAttach.alertValidation.fileAndLinkAtTheSameTime.title"),this.getMessage("snkAttach.alertValidation.fileAndLinkAtTheSameTime.message")),e([])):t.message===v.ANY_LINK_OR_FILE_FILLED?(this._application.alert(this.getMessage("snkAttach.alertValidation.anyLinkOrFileFilled.title"),this.getMessage("snkAttach.alertValidation.anyLinkOrFileFilled.message")),e([])):t.message?(this._application.error(t.title||t.name,t.message),e([])):void e([])))}))}removeLoader(t,i,e){return new Promise((a=>{t.getSelectionInfo().records.forEach((async t=>{this._application.hasAccess(p.REMOVE).then((async s=>{s&&(await e.delete(t),a(i))}))}))}))}getFilters(){throw new Error("Method not implemented.")}getInterceptions(t,i,e){return new Promise((a=>{var s,o,r,l,d,h;switch(i.type){case n.EDITION_CANCELED:return t.isDirty()?this._application.confirm(this.getMessage("snkAttach.cancelConfirmation.title"),this.getMessage("snkAttach.cancelConfirmation.message")).then((t=>t?(e.goToView(O.GRID),a(i)):a(void 0))):a(i);case n.DATA_SAVED:return t.loadData(void 0,void 0,!1,null===(r=null===(o=null===(s=null==i?void 0:i.payload)||void 0===s?void 0:s.records)||void 0===o?void 0:o[0])||void 0===r?void 0:r.REGISTER_KEY),a(i);case n.RECORDS_REMOVED:return t.loadData(void 0,void 0,!1,null===(h=null===(d=null===(l=null==i?void 0:i.payload)||void 0===l?void 0:l.cachedRecords)||void 0===d?void 0:d[0])||void 0===h?void 0:h.CODATA),a(i)}a(i)}))}}let L;const R=t=>{var i;if(!L){const t=a.getContextValue("__SNK__APPLICATION__");L=null==t?void 0:t.messagesBuilder}return null===(i=null==L?void 0:L.getMessage)||void 0===i?void 0:i.call(L,t,null)},T={DOWNLOAD:{hint:R("snkAttach.taskbar.titleDownload"),name:"DOWNLOAD",iconName:"file-download"},LINK:{hint:R("snkAttach.taskbar.titleLink"),name:"LINK",iconName:"launch"}},x=()=>{const t=[w.REMOVE,"DOWNLOAD","LINK"];return{getButtons:(t,i,e)=>{const a=e.indexOf(w.REFRESH);if((null==i?void 0:i.insertionMode)||(null==i?void 0:i.isDirty))return e.reverse();-1!==a&&e.splice(a,1);const{selectedRecord:s}=i||{},n=(null==s?void 0:s.LINK)?T.LINK:T.DOWNLOAD;e.splice(e.indexOf(w.DIVIDER)+1,0,w.REMOVE,n,w.DIVIDER);const o=[w.CLONE,w.DATA_EXPORTER],r=Array.from(new Set(e.filter((t=>!o.includes(t)))));return r.splice(r.indexOf(n)+1,0,w.DIVIDER),r},isEnabled:(i,e,a)=>{const s=void 0!==(null==e?void 0:e.selectedRecord);return!(t.includes(a)&&!s)}}},P={grid:{columns:[{name:"ARQUIVOOULINK",orderIndex:0,width:0},{name:"DESCRICAO",orderIndex:1,width:0},{name:"DHCAD",orderIndex:2,width:0},{name:"DHALTER",orderIndex:3,width:0},{name:"TIPOAPRES",orderIndex:4,width:0},{name:"TIPOACESSO",orderIndex:5,width:0},{name:"CODUSU",orderIndex:6,width:0},{name:"CODUSUALT",orderIndex:7,width:0}]},form:{emptyConfig:!1,fields:[{name:"DESCRICAO",required:!0},{name:"TIPOAPRES",required:!0},{name:"TIPOACESSO",required:!0},{name:"LINK"},{name:"NOMEARQUIVO"}]}},D=class{constructor(e){t(this,e),this.back=i(this,"back",7),this.handleTaskbarClick=async({detail:t})=>{if(["DOWNLOAD","LINK"].includes(t))return this.downloadAttachment(this._currentDataUnit.getSelectedRecord());"Attach"===this.fetcherType&&["SAVE"].includes(t)&&this._currentDataUnit.isDirty()&&await this._currentDataUnit.setFieldValue("REGISTER_KEY",this.registerKey)},this.handleBack=()=>{this._currentDataUnit.cancelEdition().then((t=>{t&&this.back.emit()}))},this.handleFinish=()=>{if(!this._currentDataUnit.isDirty())return this.back.emit();this.validateAnexoSistema()&&this._currentDataUnit.saveData().then((()=>{this.showFinishedToast(),this.back.emit()}))},this.gridLegacyConfigName=void 0,this.fetcherType=void 0,this.fetcher=void 0,this.dataUnit=void 0,this.dataUnitBuilder=void 0,this.registerKey=void 0,this.entityName=void 0,this.messagesBuilder=void 0,this._currentFetcher=void 0,this._currentDataUnit=void 0,this.crudConfig=void 0}async registerKeyWatcher(t,i){var e;null==this._currentDataUnit&&this.loadAttachmentDataUnit(),i!==t&&(this._currentFetcher instanceof y&&(this._currentFetcher.registerKey=t),await(null===(e=this._currentDataUnit)||void 0===e?void 0:e.loadData()))}getAnexoSistemaFetcherInstance(){var t;const i=new y(this.entityName,null===(t=this._currentDataUnit)||void 0===t?void 0:t.name);return i.registerKey=this.registerKey,i}async initAttach(){var t,i,e,a,s;if(this.fetcherType||this.registerKey){if(this.fetcherType||(this.fetcherType="AnexoSistema"),this.returnToGridMode(),"AnexoSistema"===this.fetcherType)return this._currentFetcher=this.getAnexoSistemaFetcherInstance(),null===(t=this._currentDataUnitBuilder)||void 0===t||t.initLoaders(this._currentDataUnit,this._currentFetcher,this.returnToGridMode.bind(this)),void await(null===(i=this._currentDataUnit)||void 0===i?void 0:i.loadData());if("Attach"===this.fetcherType&&(null===(e=this.registerKey)||void 0===e?void 0:e.split("_").length)>1)return;await(null===(a=this._currentDataUnit)||void 0===a?void 0:a.loadMetadata()),await(null===(s=this._currentDataUnit)||void 0===s?void 0:s.loadData(void 0,void 0,!0,this.registerKey))}}getMessage(t,i){if(this.messagesBuilder)return this.messagesBuilder.getMessage(t,i)}showFinishedToast(){this._application.info(this.getMessage("snkAttach.finishedMessage"),{iconName:"check"})}downloadAttachment(t){if(!t)throw new Error(this.getMessage("snkAttach.alertValidation.noRecordSelected.message"));t.LINK?window.open(`${t.LINK}`):this._currentFetcher.getDownloadKey(t).then((({chave:i})=>{var e;let a=!1;(null===(e=null==t?void 0:t.ARQUIVO)||void 0===e?void 0:e.endsWith(".pdf"))||(a=!0),window.open(`/mge/visualizadorArquivos.mge?chaveArquivo=${i.valor}${a?"&forcarDownload=S":""}`)}))}returnToGridMode(){var t;null===(t=this._currentDataUnit)||void 0===t||t.clearSelection(),this._crudElement&&this._crudElement.goToView(O.GRID)}async loadAttachmentDataUnit(){try{switch(this.fetcherType){case"AnexoSistema":await this.loadAnexoSistema();break;case"Attach":await this.loadAttach();break;default:this._currentFetcher=this.fetcher,this._currentDataUnit=this.dataUnit,this._currentDataUnitBuilder=this.dataUnitBuilder}}catch(t){throw new Error("There was an error while creating the data unit")}}async loadAnexoSistema(){var t,i;let e;this._currentDataUnit=(new m).getDataUnit("AnexoSistema","br.com.sankhya.core.v3.anexoSistema"),this._currentFetcher=this.getAnexoSistemaFetcherInstance(),this._currentDataUnit.metadata||(await(null===(t=this._currentDataUnit)||void 0===t?void 0:t.loadMetadata()),this.crudConfig=this.entityName?{form:null==P?void 0:P.form}:Object.assign({},P),e={grid:null==P?void 0:P.grid}),this.initDataUnitLoaders(),this._currentDataUnit.addFilterProvider({getFilter:()=>this._currentDataUnitBuilder.getFilters(this.registerKey)}),this._currentDataUnit.addInterceptor({interceptAction:t=>this._currentDataUnitBuilder.getInterceptions(this._currentDataUnit,t,this._crudElement)}),await(null===(i=this._currentDataUnit)||void 0===i?void 0:i.loadData()),this.disableEditFieldsNotInForm(e)}async loadAttach(){var t,i;let e;this._currentFetcher=new k,this._currentDataUnit=new d(A.IN_MEMORY_DATA_UNIT_NAME),this._currentDataUnit.pageSize=150,this.initDataUnitLoaders(),this._currentDataUnit.addInterceptor({interceptAction:t=>{var i;return t.type===n.METADATA_LOADED&&(this.crudConfig=this.entityName?{form:null==N?void 0:N.form}:Object.assign({},N),e={grid:null==N?void 0:N.grid},null===(i=this._crudElement)||void 0===i||i.updateConfig()),this._currentDataUnitBuilder.getInterceptions(this._currentDataUnit,t,this._crudElement)}}),this._currentDataUnit.metadata||(await(null===(t=this._currentDataUnit)||void 0===t?void 0:t.loadMetadata()),this.crudConfig=this.entityName?{form:null==N?void 0:N.form}:Object.assign({},N),e={grid:null==N?void 0:N.grid},await(null===(i=this._currentDataUnit)||void 0===i?void 0:i.loadData(void 0,void 0,!0,this.registerKey)),this.disableEditFieldsNotInForm(e))}initDataUnitLoaders(){var t,i;"AnexoSistema"===this.fetcherType&&(this._currentFetcher=this.getAnexoSistemaFetcherInstance(),this._currentDataUnitBuilder=new _(this.entityName,this.getMessage.bind(this)),null===(t=this._currentDataUnitBuilder)||void 0===t||t.initLoaders(this._currentDataUnit,this._currentFetcher,this.returnToGridMode.bind(this))),"Attach"===this.fetcherType&&(this._currentFetcher=new k,this._currentDataUnitBuilder=new C(this.getMessage.bind(this)),null===(i=this._currentDataUnitBuilder)||void 0===i||i.initLoaders(this._currentDataUnit,this._currentFetcher,(async()=>{this.returnToGridMode(),await this._currentDataUnit.loadData(void 0,void 0,!0,this.registerKey)})))}disableEditFieldsNotInForm(t){var i,e,a,s,n;const o=(null===(e=null===(i=this._crudElement)||void 0===i?void 0:i.gridConfig)||void 0===e?void 0:e.columns)||(null===(a=null==t?void 0:t.grid)||void 0===a?void 0:a.columns)||(null===(n=null===(s=this.crudConfig)||void 0===s?void 0:s.grid)||void 0===n?void 0:n.columns);this.getGridLegacyConfigName()&&this._currentDataUnit.disableField("ARQUIVOOULINK"),null==o||o.forEach((t=>{var i,e;const a=t.name;(null===(e=null===(i=this.crudConfig)||void 0===i?void 0:i.form)||void 0===e?void 0:e.fields.some((t=>(null==t?void 0:t.name)===a)))||this._currentDataUnit.disableField(a)}))}validateAnexoSistema(){var t;if(this._currentFetcher instanceof y)try{let i=this._currentDataUnit.getSelectedRecord();i=Object.assign(Object.assign({},i),{NOMEARQUIVO:null===(t=i.NOMEARQUIVO)||void 0===t?void 0:t[0]}),this._currentFetcher.validateFields(i)}catch(t){if(t.message===v.LINK_AND_FILE_AT_THE_SAME_TIME)return this._application.alert(this.getMessage("snkAttach.alertValidation.fileAndLinkAtTheSameTime.title"),this.getMessage("snkAttach.alertValidation.fileAndLinkAtTheSameTime.message")),!1;if(t.message===v.ANY_LINK_OR_FILE_FILLED)return this._application.alert(this.getMessage("snkAttach.alertValidation.anyLinkOrFileFilled.title"),this.getMessage("snkAttach.alertValidation.anyLinkOrFileFilled.message")),!1}return!0}async componentWillLoad(){this._application=a.getContextValue("__SNK__APPLICATION__"),await this.initAttach()}componentWillRender(){this.fetcherType||(this.fetcherType="AnexoSistema"),null==this._currentDataUnit&&this.loadAttachmentDataUnit()}async handleOnDataStateChange({detail:t}){"Attach"===this.fetcherType&&(t.insertionMode?this._currentDataUnit.enableField("DESCRICAO"):this._currentDataUnit.disableField("DESCRICAO"),await this._currentDataUnit.loadMetadata())}getGridLegacyConfigName(){return this.gridLegacyConfigName?this.gridLegacyConfigName:this.entityName?"GrdCfgHtml5:grdcfg.dynaform.anexo."+this.entityName:this.entityName}render(){var t,i;return this._currentDataUnit?e("main",{class:"snk-attach__main"},e("header",{class:"snk-attach__header"},e("snk-simple-bar",{onExit:this.handleBack,messagesBuilder:this.messagesBuilder},e("div",{slot:"rightSlot"},e("ez-button",{class:"ez-button--primary",label:this.getMessage("snkAttach.finish"),onClick:this.handleFinish})))),e("div",{class:"snk-attach__crud-section ez-size-height--full ez-size-width--full ez-flex ez-flex--column"},e("div",{class:"ez-box__container"},e("snk-simple-crud",{ref:t=>this._crudElement=t,dataUnit:this._currentDataUnit,taskbarManager:x(),gridConfig:null===(t=this.crudConfig)||void 0===t?void 0:t.grid,formConfig:null===(i=this.crudConfig)||void 0===i?void 0:i.form,useCancelConfirm:!1,onActionClick:this.handleTaskbarClick,messagesBuilder:this.messagesBuilder,onDataStateChange:this.handleOnDataStateChange.bind(this),multipleSelection:!0,configName:this.entityName,ignoreReadOnlyFormFields:!!this.entityName,gridLegacyConfigName:this.getGridLegacyConfigName()},e("div",{slot:"snkSimpleCrudHeader"},e("div",{class:"ez-flex ez-flex--column"},e("span",{class:"ez-title--primary ez-text ez-text--large ez-text--bold ez-padding-bottom--medium"},this.getMessage("snkAttach.title")),e("span",{class:"ez-text ez-text--medium ez-text--secondary ez-padding-bottom--medium"},this.getMessage("snkAttach.description")))))))):null}static get watchers(){return{registerKey:["registerKeyWatcher"]}}};D.style=".snk-attach__header.sc-snk-attach,.snk-attach__crud-section.sc-snk-attach{padding:0 var(--space--lg)}.snk-attach__file-info.sc-snk-attach{padding:var(--space--small);max-width:50%}.snk-attach__main.sc-snk-attach{height:85%}.ez-box__container.sc-snk-attach{height:100%}";export{D as snk_attach}
1
+ import{r as t,e as i,h as e}from"./p-15c07fa9.js";import{ApplicationContext as a,DataType as s,Action as n,UserInterface as o,StringUtils as r,DataUnitLoaderUtils as l,DataUnit as d}from"@sankhyalabs/core";import{D as h,S as c}from"./p-cdda05e3.js";import{S as v}from"./p-403c0168.js";import"./p-0f3698af.js";import{P as u,D as m,I as A}from"./p-42e248cd.js";import"./p-ff1990ad.js";import"./p-1273039f.js";import{V as O}from"./p-9019a32f.js";import{A as p}from"./p-3810bd66.js";import{T as w}from"./p-ddf5e382.js";import"./p-8d884fab.js";import"@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata";import"@sankhyalabs/ezui/dist/collection/utils/constants";import"@sankhyalabs/ezui/dist/collection/components/ez-grid/utils";import"@sankhyalabs/core/dist/utils/SortingUtils";import"./p-688dcb4c.js";import"./p-71b1be2e.js";class k{constructor(t){this.dataUnitName=t}async save({dataUnit:t,record:i,updatingFields:e,operation:a}){var s,n;const o="INSERT"==a,r=o?e:i;if(!o&&(null==e?void 0:e.DESCRICAO)&&(null==e?void 0:e.DESCRICAO)!==(null==i?void 0:i.DESCRICAO))throw new Error(v.DESCRIPTION_CANNOT_BE_CHANGED);const l={anexo:{codata:o?null==e?void 0:e.REGISTER_KEY:null==i?void 0:i.CODATA,sequencia:(null==r?void 0:r.SEQUENCIA)||"0",tipo:(null==r?void 0:r.TIPO)||"N",descricao:null==r?void 0:r.DESCRICAO,arquivo:null===(n=null===(s=e.CAMINHO_ARQUIVO)||void 0===s?void 0:s[0])||void 0===n?void 0:n.name,ehInclusao:o?"S":"N",ehArquivoRepositorio:"N"}};return new Promise(((i,a)=>{h.get().callServiceBroker("Attach.save",JSON.stringify(l)).then((a=>{var s;return i([Object.assign(Object.assign(Object.assign({},a),e),{__owner__dataunit__name__:null!==(s=this.dataUnitName)&&void 0!==s?s:t})])})).catch((t=>a(t)))}))}async edit(t){throw new Error("Method not implemented.")}async delete(t){var i={anexo:{codata:t.CODATA,tipo:t.TIPO,descricao:t.DESCRICAO}};const e=await h.get().callServiceBroker("Attach.remove",JSON.stringify(i));return Promise.resolve(e)}async getDownloadKey(t){var i,e,a;if("S"==t.EHARQUIVOREPOSITORIO){const a={config:{path:t.ARQUIVO,tipoconteudo:t.TIPOCONTEUDO}},s=await h.get().callServiceBroker("RepositorioArquivoSP.abreArquivo",JSON.stringify(a));return Promise.resolve({chave:{valor:null===(e=null===(i=null==s?void 0:s.responseBody)||void 0===i?void 0:i.chave)||void 0===e?void 0:e.valor}})}const s={anexo:{codata:t.CODATA,codemp:t.CODEMP,sequencia:t.SEQUENCIA,tipo:t.TIPO,descricao:t.DESCRICAO,tipoConteudo:t.TIPOCONTEUDO}},n=await h.get().callServiceBroker("Attach.view",JSON.stringify(s));return(null==n?void 0:n.chaveAnexo)?Promise.resolve({chave:{valor:null===(a=null==n?void 0:n.chaveAnexo)||void 0===a?void 0:a.idChaveAnexo}}):Promise.reject(new Error("File not found."))}}const S="AnexoSistemaSP.salvar",I="AnexoSistemaSP.excluir",f="AnexoSistemaSP.baixar";class y{constructor(t,i){var e;this.entityName=t,this.dataUnitName=i,this.validateFields=t=>{if(t.LINK&&t.NOMEARQUIVO)throw new Error(v.LINK_AND_FILE_AT_THE_SAME_TIME);if(!t.LINK&&!t.NOMEARQUIVO)throw new Error(v.ANY_LINK_OR_FILE_FILLED);if(!this._registerKey)throw new Error("Register key can not be null")},this.resourceID=window.resourceID||(null===(e=window.workspace)||void 0===e?void 0:e.resourceID)}set registerKey(t){this._registerKey=t}async save(t){var i,e;let{updatingFields:a}=t;a=Object.assign(Object.assign({},a),{NOMEARQUIVO:null===(i=a.NOMEARQUIVO)||void 0===i?void 0:i[0]});try{this.validateFields(a);const t=a.LINK?null:a.NOMEARQUIVO,i={serviceName:S,requestBody:{params:{resourceID:this.resourceID,description:a.DESCRICAO,fileSelect:t?1:0,keySession:null===(e=null==t?void 0:t.properties)||void 0===e?void 0:e.fileNameTmp,nameAttach:null==t?void 0:t.name,link:a.LINK,nameEntity:this.entityName,pkEntity:this._registerKey,typeAcess:a.TIPOACESSO,typeApres:a.TIPOAPRES}}},s=await h.get().callServiceBroker(S,JSON.stringify(i));return Promise.resolve([Object.assign(Object.assign(Object.assign({},s),a),{ARQUIVOOULINK:a.LINK?a.LINK:null==t?void 0:t.name,__owner__dataunit__name__:this.dataUnitName})])}catch(t){return Promise.reject(t)}}async edit(t){var i,e,a;let{updatingFields:s,record:n}=t;const o=t=>void 0!==s[t]?s[t]:n[t],r=o("NOMEARQUIVO"),l=null===(e=null===(i=s.NOMEARQUIVO)||void 0===i?void 0:i[0])||void 0===e?void 0:e.downloadURL;s=Object.assign(Object.assign({},s),{DESCRICAO:o("DESCRICAO"),LINK:o("LINK"),TIPOACESSO:o("TIPOACESSO"),TIPOAPRES:o("TIPOAPRES"),CHAVEARQUIVO:n.CHAVEARQUIVO,NOMEARQUIVO:null==r?void 0:r[0]});const d=s.LINK?null:s.NOMEARQUIVO;try{this.validateFields(s);const t={serviceName:S,requestBody:{params:{resourceID:this.resourceID,nuAttach:null==n?void 0:n.NUATTACH,description:s.DESCRICAO,fileSelect:l?1:0,keySession:null===(a=null==d?void 0:d.properties)||void 0===a?void 0:a.fileNameTmp,keyAttach:s.CHAVEARQUIVO,nameAttach:null==d?void 0:d.name,link:s.LINK,nameEntity:this.entityName,pkEntity:this._registerKey,typeAcess:s.TIPOACESSO,typeApres:s.TIPOAPRES}}},i=await h.get().callServiceBroker(S,JSON.stringify(t));return Promise.resolve([Object.assign(Object.assign(Object.assign({},i),s),{ARQUIVOOULINK:s.LINK?s.LINK:null==d?void 0:d.name,__owner__dataunit__name__:this.dataUnitName})])}catch(t){return Promise.reject(t)}}delete(t){var i;const e=(null===(i=t.NOMEARQUIVO)||void 0===i?void 0:i[0])||{},a={serviceName:I,requestBody:{paramsDelete:{keyAttach:t.CHAVEARQUIVO,nameAttach:null==e?void 0:e.name,nameEntity:t.NOMEINSTANCIA,nuAttach:t.NUATTACH,pkEntity:t.PKREGISTRO}}};return new Promise(((t,i)=>{h.get().callServiceBroker(I,JSON.stringify(a)).then((i=>t(i))).catch((t=>i(t)))}))}getDownloadKey(t){var i;const e=(null===(i=t.NOMEARQUIVO)||void 0===i?void 0:i[0])||{},a={serviceName:f,requestBody:{paramsDown:{nameAttach:null==e?void 0:e.name,nameEntity:t.NOMEINSTANCIA,nuAttach:t.NUATTACH,pkEntity:t.PKREGISTRO,keyAttach:t.CHAVEARQUIVO}}};return new Promise(((t,i)=>{h.get().callServiceBroker(f,JSON.stringify(a)).then((i=>t(i))).catch((t=>i(t)))}))}}class _{constructor(t,i){this.entityName=t,this.getMessage=i,this._application=a.getContextValue("__SNK__APPLICATION__")}initLoaders(t,i,e){this.loader||(this.loader=t.dataLoader),t.dataLoader=(t,i)=>this.dataLoader(t,i),t.saveLoader=(t,a)=>this.saveLoader(a,i).then((t=>(t.length&&e(),t))),t.removeLoader=(t,a)=>this.removeLoader(t,a,i).then((t=>(t.length&&e(),t)))}metadataLoader(t){throw new Error("Method not implemented.")}dataLoader(t,i){return new Promise((e=>{this.loader(t,i).then((t=>{const i=((null==t?void 0:t.records)||[]).map((t=>{let i;return t.LINK||(i=[{name:t.NOMEARQUIVO}]),Object.assign(Object.assign({},t),{ARQUIVOOULINK:t.LINK?t.LINK:t.NOMEARQUIVO,NOMEARQUIVO:i})}));e(Object.assign(Object.assign({},t),{records:i}))}))}))}saveLoader(t,i){return new Promise((e=>{var a;const s=Array.isArray(t)?t[0]:{};((null===(a=null==s?void 0:s.record)||void 0===a?void 0:a.NUATTACH)>=0?i.edit.bind(i):i.save.bind(i))(s).then((t=>{e(t)})).catch((t=>t.message===v.LINK_AND_FILE_AT_THE_SAME_TIME?(this._application.alert(this.getMessage("snkAttach.alertValidation.fileAndLinkAtTheSameTime.title"),this.getMessage("snkAttach.alertValidation.fileAndLinkAtTheSameTime.message")),e([])):t.message===v.ANY_LINK_OR_FILE_FILLED?(this._application.alert(this.getMessage("snkAttach.alertValidation.anyLinkOrFileFilled.title"),this.getMessage("snkAttach.alertValidation.anyLinkOrFileFilled.message")),e([])):t.message?(this._application.error(t.title||t.name,t.message),e([])):void e([])))}))}removeLoader(t,i,e){return new Promise((a=>{const{records:s}=t.getSelectionInfo(),n=s[0];e.delete(n).then((()=>(u.removeRecords(t,[n]),a(i))))}))}getFilters(t){return[{name:"AttachmentsByPK",expression:"this.PKREGISTRO = :PKREGISTRO",params:[{name:"PKREGISTRO",dataType:s.TEXT,value:`${t}_${this.entityName}`}]}]}getInterceptions(t,i,e){return new Promise((a=>i.type===n.EDITION_CANCELED?t.isDirty()?this._application.confirm(this.getMessage("snkAttach.cancelConfirmation.title"),this.getMessage("snkAttach.cancelConfirmation.message")).then((t=>t?(e.goToView(O.GRID),a(i)):a(void 0))):a(i):i.type===n.DATA_SAVED?(t.loadData(),a(i)):void a(i)))}}let b;const g=t=>(b||(b=new c),b.getMessage(t)),N={grid:{columns:[{name:"CODATA",orderIndex:0,width:0},{name:"DESCRICAO",orderIndex:1,width:0},{name:"ARQUIVO",orderIndex:2,width:0},{name:"DTALTER",orderIndex:3,width:0},{name:"USUARIO",orderIndex:4,width:0}]},form:{emptyConfig:!1,fields:[{name:"DESCRICAO",label:g("snkAttach.attachMetadata.lblDescription"),visible:!0,readOnly:!1,required:!0},{name:"CAMINHO_ARQUIVO",label:g("snkAttach.attachMetadata.lblFile"),visible:!0,readOnly:!1,required:!0}]}},E={name:"Attach",label:"Attach List",fields:[{name:"CODATA",label:g("snkAttach.attachMetadata.lblCode"),dataType:s.TEXT},{name:"DESCRICAO",label:g("snkAttach.attachMetadata.lblDescription"),dataType:s.TEXT,readOnly:!1},{name:"ARQUIVO",label:g("snkAttach.attachMetadata.lblFileOrLink"),dataType:s.TEXT},{name:"USUARIO",label:g("snkAttach.attachMetadata.lblUser"),dataType:s.TEXT},{name:"DTALTER",label:g("snkAttach.attachMetadata.lblDate"),dataType:s.TEXT},{name:"CAMINHO_ARQUIVO",label:g("snkAttach.attachMetadata.lblFileUpload"),dataType:s.OBJECT,userInterface:o.FILE,readOnly:!1,required:!0,visible:!0,properties:{subTitle:g("snkAttach.attachMetadata.lblSubTitle"),MAX_FILES:1,STORAGESTRATEGY:"SESSION",INTERNAL_FILENAME:"Attach.upload"}}]};class C{constructor(t){this.getMessage=t,this._records=[],this._application=a.getContextValue("__SNK__APPLICATION__")}initLoaders(t,i,e){t.metadataLoader=t=>this.metadataLoader(t),t.dataLoader=(t,i)=>this.dataLoader(t,i),t.saveLoader=(t,a)=>this.saveLoader(a,i).then((t=>(t.length&&e(),t))),t.removeLoader=(t,a)=>this.removeLoader(t,a,i).then((t=>(t.length&&e(),t)))}metadataLoader(t){return Promise.resolve(E)}async dataLoader(t,i){if(!i.source)return Promise.resolve({records:this._records});if(!Number.isNaN(Number(i.source))){const t={criteria:{codata:i.source,tipoAnexo:"N"}},e=await this._application.getDataFetcher(),{anexos:{anexo:a=[]}}=await e.callServiceBroker("Attach.load",JSON.stringify(t)),s=[];a.forEach((t=>{s.push(Object.assign({__record__id__:r.generateUUID(),CAMINHO_ARQUIVO:[{name:null==t?void 0:t.ARQUIVO}]},t))})),this._records=s}return l.buildLoadDataResponse(this._records,t,i)}saveLoader(t,i){return new Promise((e=>{const a=Array.isArray(t)?t[0]:{};i.save(a).then(e).catch((t=>t.message===v.DESCRIPTION_CANNOT_BE_CHANGED?(this._application.alert(this.getMessage("snkAttach.alertValidation.descriptionCannotBeChanged.title"),this.getMessage("snkAttach.alertValidation.descriptionCannotBeChanged.message")),e([])):t.message===v.LINK_AND_FILE_AT_THE_SAME_TIME?(this._application.alert(this.getMessage("snkAttach.alertValidation.fileAndLinkAtTheSameTime.title"),this.getMessage("snkAttach.alertValidation.fileAndLinkAtTheSameTime.message")),e([])):t.message===v.ANY_LINK_OR_FILE_FILLED?(this._application.alert(this.getMessage("snkAttach.alertValidation.anyLinkOrFileFilled.title"),this.getMessage("snkAttach.alertValidation.anyLinkOrFileFilled.message")),e([])):t.message?(this._application.error(t.title||t.name,t.message),e([])):void e([])))}))}removeLoader(t,i,e){return new Promise((a=>{t.getSelectionInfo().records.forEach((async t=>{this._application.hasAccess(p.REMOVE).then((async s=>{s&&(await e.delete(t),a(i))}))}))}))}getFilters(){throw new Error("Method not implemented.")}getInterceptions(t,i,e){return new Promise((a=>{var s,o,r,l,d,h;switch(i.type){case n.EDITION_CANCELED:return t.isDirty()?this._application.confirm(this.getMessage("snkAttach.cancelConfirmation.title"),this.getMessage("snkAttach.cancelConfirmation.message")).then((t=>t?(e.goToView(O.GRID),a(i)):a(void 0))):a(i);case n.DATA_SAVED:return t.loadData(void 0,void 0,!1,null===(r=null===(o=null===(s=null==i?void 0:i.payload)||void 0===s?void 0:s.records)||void 0===o?void 0:o[0])||void 0===r?void 0:r.REGISTER_KEY),a(i);case n.RECORDS_REMOVED:return t.loadData(void 0,void 0,!1,null===(h=null===(d=null===(l=null==i?void 0:i.payload)||void 0===l?void 0:l.cachedRecords)||void 0===d?void 0:d[0])||void 0===h?void 0:h.CODATA),a(i)}a(i)}))}}let L;const R=t=>{var i;if(!L){const t=a.getContextValue("__SNK__APPLICATION__");L=null==t?void 0:t.messagesBuilder}return null===(i=null==L?void 0:L.getMessage)||void 0===i?void 0:i.call(L,t,null)},T={DOWNLOAD:{hint:R("snkAttach.taskbar.titleDownload"),name:"DOWNLOAD",iconName:"file-download"},LINK:{hint:R("snkAttach.taskbar.titleLink"),name:"LINK",iconName:"launch"}},x=()=>{const t=[w.REMOVE,"DOWNLOAD","LINK"];return{getButtons:(t,i,e)=>{const a=e.indexOf(w.REFRESH);if((null==i?void 0:i.insertionMode)||(null==i?void 0:i.isDirty))return e.reverse();-1!==a&&e.splice(a,1);const{selectedRecord:s}=i||{},n=(null==s?void 0:s.LINK)?T.LINK:T.DOWNLOAD;e.splice(e.indexOf(w.DIVIDER)+1,0,w.REMOVE,n,w.DIVIDER);const o=[w.CLONE,w.DATA_EXPORTER],r=Array.from(new Set(e.filter((t=>!o.includes(t)))));return r.splice(r.indexOf(n)+1,0,w.DIVIDER),r},isEnabled:(i,e,a)=>{const s=void 0!==(null==e?void 0:e.selectedRecord);return!(t.includes(a)&&!s)}}},P={grid:{columns:[{name:"ARQUIVOOULINK",orderIndex:0,width:0},{name:"DESCRICAO",orderIndex:1,width:0},{name:"DHCAD",orderIndex:2,width:0},{name:"DHALTER",orderIndex:3,width:0},{name:"TIPOAPRES",orderIndex:4,width:0},{name:"TIPOACESSO",orderIndex:5,width:0},{name:"CODUSU",orderIndex:6,width:0},{name:"CODUSUALT",orderIndex:7,width:0}]},form:{emptyConfig:!1,fields:[{name:"DESCRICAO",required:!0},{name:"TIPOAPRES",required:!0},{name:"TIPOACESSO",required:!0},{name:"LINK"},{name:"NOMEARQUIVO"}]}},D=class{constructor(e){t(this,e),this.back=i(this,"back",7),this.handleTaskbarClick=async({detail:t})=>{if(["DOWNLOAD","LINK"].includes(t))return this.downloadAttachment(this._currentDataUnit.getSelectedRecord());"Attach"===this.fetcherType&&["SAVE"].includes(t)&&this._currentDataUnit.isDirty()&&await this._currentDataUnit.setFieldValue("REGISTER_KEY",this.registerKey)},this.handleBack=()=>{this._currentDataUnit.cancelEdition().then((t=>{t&&this.back.emit()}))},this.handleFinish=()=>{if(!this._currentDataUnit.isDirty())return this.back.emit();this.validateAnexoSistema()&&this._currentDataUnit.saveData().then((()=>{this.showFinishedToast(),this.back.emit()}))},this.gridLegacyConfigName=void 0,this.fetcherType=void 0,this.fetcher=void 0,this.dataUnit=void 0,this.dataUnitBuilder=void 0,this.registerKey=void 0,this.entityName=void 0,this.messagesBuilder=void 0,this._currentFetcher=void 0,this._currentDataUnit=void 0,this.crudConfig=void 0}async registerKeyWatcher(t,i){var e;null==this._currentDataUnit&&this.loadAttachmentDataUnit(),i!==t&&(this._currentFetcher instanceof y&&(this._currentFetcher.registerKey=t),await(null===(e=this._currentDataUnit)||void 0===e?void 0:e.loadData()))}getAnexoSistemaFetcherInstance(){var t;const i=new y(this.entityName,null===(t=this._currentDataUnit)||void 0===t?void 0:t.name);return i.registerKey=this.registerKey,i}async initAttach(){var t,i,e,a,s;if(this.fetcherType||this.registerKey){if(this.fetcherType||(this.fetcherType="AnexoSistema"),this.returnToGridMode(),"AnexoSistema"===this.fetcherType)return this._currentFetcher=this.getAnexoSistemaFetcherInstance(),null===(t=this._currentDataUnitBuilder)||void 0===t||t.initLoaders(this._currentDataUnit,this._currentFetcher,this.returnToGridMode.bind(this)),void await(null===(i=this._currentDataUnit)||void 0===i?void 0:i.loadData());if("Attach"===this.fetcherType&&(null===(e=this.registerKey)||void 0===e?void 0:e.split("_").length)>1)return;await(null===(a=this._currentDataUnit)||void 0===a?void 0:a.loadMetadata()),await(null===(s=this._currentDataUnit)||void 0===s?void 0:s.loadData(void 0,void 0,!0,this.registerKey))}}getMessage(t,i){if(this.messagesBuilder)return this.messagesBuilder.getMessage(t,i)}showFinishedToast(){this._application.info(this.getMessage("snkAttach.finishedMessage"),{iconName:"check"})}downloadAttachment(t){if(!t)throw new Error(this.getMessage("snkAttach.alertValidation.noRecordSelected.message"));t.LINK?window.open(`${t.LINK}`):this._currentFetcher.getDownloadKey(t).then((({chave:i})=>{var e;let a=!1;(null===(e=null==t?void 0:t.ARQUIVO)||void 0===e?void 0:e.endsWith(".pdf"))||(a=!0),window.open(`/mge/visualizadorArquivos.mge?chaveArquivo=${i.valor}${a?"&forcarDownload=S":""}`)}))}returnToGridMode(){var t;null===(t=this._currentDataUnit)||void 0===t||t.clearSelection(),this._crudElement&&this._crudElement.goToView(O.GRID)}async loadAttachmentDataUnit(){try{switch(this.fetcherType){case"AnexoSistema":await this.loadAnexoSistema();break;case"Attach":await this.loadAttach();break;default:this._currentFetcher=this.fetcher,this._currentDataUnit=this.dataUnit,this._currentDataUnitBuilder=this.dataUnitBuilder}}catch(t){throw new Error("There was an error while creating the data unit")}}async loadAnexoSistema(){var t,i;let e;this._currentDataUnit=(new m).getDataUnit("AnexoSistema","br.com.sankhya.core.v3.anexoSistema"),this._currentFetcher=this.getAnexoSistemaFetcherInstance(),this._currentDataUnit.metadata||(await(null===(t=this._currentDataUnit)||void 0===t?void 0:t.loadMetadata()),this.crudConfig=this.entityName?{form:null==P?void 0:P.form}:Object.assign({},P),e={grid:null==P?void 0:P.grid}),this.initDataUnitLoaders(),this._currentDataUnit.addFilterProvider({getFilter:()=>this._currentDataUnitBuilder.getFilters(this.registerKey)}),this._currentDataUnit.addInterceptor({interceptAction:t=>this._currentDataUnitBuilder.getInterceptions(this._currentDataUnit,t,this._crudElement)}),await(null===(i=this._currentDataUnit)||void 0===i?void 0:i.loadData()),this.disableEditFieldsNotInForm(e)}async loadAttach(){var t,i;let e;this._currentFetcher=new k,this._currentDataUnit=new d(A.IN_MEMORY_DATA_UNIT_NAME),this._currentDataUnit.pageSize=150,this.initDataUnitLoaders(),this._currentDataUnit.addInterceptor({interceptAction:t=>{var i;return t.type===n.METADATA_LOADED&&(this.crudConfig=this.entityName?{form:null==N?void 0:N.form}:Object.assign({},N),e={grid:null==N?void 0:N.grid},null===(i=this._crudElement)||void 0===i||i.updateConfig()),this._currentDataUnitBuilder.getInterceptions(this._currentDataUnit,t,this._crudElement)}}),this._currentDataUnit.metadata||(await(null===(t=this._currentDataUnit)||void 0===t?void 0:t.loadMetadata()),this.crudConfig=this.entityName?{form:null==N?void 0:N.form}:Object.assign({},N),e={grid:null==N?void 0:N.grid},await(null===(i=this._currentDataUnit)||void 0===i?void 0:i.loadData(void 0,void 0,!0,this.registerKey)),this.disableEditFieldsNotInForm(e))}initDataUnitLoaders(){var t,i;"AnexoSistema"===this.fetcherType&&(this._currentFetcher=this.getAnexoSistemaFetcherInstance(),this._currentDataUnitBuilder=new _(this.entityName,this.getMessage.bind(this)),null===(t=this._currentDataUnitBuilder)||void 0===t||t.initLoaders(this._currentDataUnit,this._currentFetcher,this.returnToGridMode.bind(this))),"Attach"===this.fetcherType&&(this._currentFetcher=new k,this._currentDataUnitBuilder=new C(this.getMessage.bind(this)),null===(i=this._currentDataUnitBuilder)||void 0===i||i.initLoaders(this._currentDataUnit,this._currentFetcher,(async()=>{this.returnToGridMode(),await this._currentDataUnit.loadData(void 0,void 0,!0,this.registerKey)})))}disableEditFieldsNotInForm(t){var i,e,a,s,n;const o=(null===(e=null===(i=this._crudElement)||void 0===i?void 0:i.gridConfig)||void 0===e?void 0:e.columns)||(null===(a=null==t?void 0:t.grid)||void 0===a?void 0:a.columns)||(null===(n=null===(s=this.crudConfig)||void 0===s?void 0:s.grid)||void 0===n?void 0:n.columns);this.getGridLegacyConfigName()&&this._currentDataUnit.disableField("ARQUIVOOULINK"),null==o||o.forEach((t=>{var i,e;const a=t.name;(null===(e=null===(i=this.crudConfig)||void 0===i?void 0:i.form)||void 0===e?void 0:e.fields.some((t=>(null==t?void 0:t.name)===a)))||this._currentDataUnit.disableField(a)}))}validateAnexoSistema(){var t;if(this._currentFetcher instanceof y)try{let i=this._currentDataUnit.getSelectedRecord();i=Object.assign(Object.assign({},i),{NOMEARQUIVO:null===(t=i.NOMEARQUIVO)||void 0===t?void 0:t[0]}),this._currentFetcher.validateFields(i)}catch(t){if(t.message===v.LINK_AND_FILE_AT_THE_SAME_TIME)return this._application.alert(this.getMessage("snkAttach.alertValidation.fileAndLinkAtTheSameTime.title"),this.getMessage("snkAttach.alertValidation.fileAndLinkAtTheSameTime.message")),!1;if(t.message===v.ANY_LINK_OR_FILE_FILLED)return this._application.alert(this.getMessage("snkAttach.alertValidation.anyLinkOrFileFilled.title"),this.getMessage("snkAttach.alertValidation.anyLinkOrFileFilled.message")),!1}return!0}async componentWillLoad(){this._application=a.getContextValue("__SNK__APPLICATION__"),await this.initAttach()}componentWillRender(){this.fetcherType||(this.fetcherType="AnexoSistema"),null==this._currentDataUnit&&this.loadAttachmentDataUnit()}async handleOnDataStateChange({detail:t}){"Attach"===this.fetcherType&&(t.insertionMode?this._currentDataUnit.enableField("DESCRICAO"):this._currentDataUnit.disableField("DESCRICAO"),await this._currentDataUnit.loadMetadata())}getGridLegacyConfigName(){return this.gridLegacyConfigName?this.gridLegacyConfigName:this.entityName?"GrdCfgHtml5:grdcfg.dynaform.anexo."+this.entityName:this.entityName}render(){var t,i;return this._currentDataUnit?e("main",{class:"snk-attach__main"},e("header",{class:"snk-attach__header"},e("snk-simple-bar",{onExit:this.handleBack,messagesBuilder:this.messagesBuilder},e("div",{slot:"rightSlot"},e("ez-button",{class:"ez-button--primary",label:this.getMessage("snkAttach.finish"),onClick:this.handleFinish})))),e("div",{class:"snk-attach__crud-section ez-size-height--full ez-size-width--full ez-flex ez-flex--column"},e("div",{class:"ez-box__container"},e("snk-simple-crud",{ref:t=>this._crudElement=t,dataUnit:this._currentDataUnit,taskbarManager:x(),gridConfig:null===(t=this.crudConfig)||void 0===t?void 0:t.grid,formConfig:null===(i=this.crudConfig)||void 0===i?void 0:i.form,useCancelConfirm:!1,onActionClick:this.handleTaskbarClick,messagesBuilder:this.messagesBuilder,onDataStateChange:this.handleOnDataStateChange.bind(this),multipleSelection:!0,configName:this.entityName,ignoreReadOnlyFormFields:!!this.entityName,gridLegacyConfigName:this.getGridLegacyConfigName()},e("div",{slot:"snkSimpleCrudHeader"},e("div",{class:"ez-flex ez-flex--column"},e("span",{class:"ez-title--primary ez-text ez-text--large ez-text--bold ez-padding-bottom--medium"},this.getMessage("snkAttach.title")),e("span",{class:"ez-text ez-text--medium ez-text--secondary ez-padding-bottom--medium"},this.getMessage("snkAttach.description")))))))):null}static get watchers(){return{registerKey:["registerKeyWatcher"]}}};D.style=".snk-attach__header.sc-snk-attach,.snk-attach__crud-section.sc-snk-attach{padding:0 var(--space--lg)}.snk-attach__file-info.sc-snk-attach{padding:var(--space--small);max-width:50%}.snk-attach__main.sc-snk-attach{height:85%}.ez-box__container.sc-snk-attach{height:100%}";export{D as snk_attach}
@@ -0,0 +1,19 @@
1
+ self,function(){var t=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));function n(n){var i=t.has(n);return n=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(n),!i&&n}function i(t){var n=t.isConnected;if(void 0!==n)return n;for(;t&&!(t.__CE_isImportDocument||t instanceof Document);)t=t.parentNode||(window.ShadowRoot&&t instanceof ShadowRoot?t.host:void 0);return!(!t||!(t.__CE_isImportDocument||t instanceof Document))}function e(t,n){for(;n&&n!==t&&!n.nextSibling;)n=n.parentNode;return n&&n!==t?n.nextSibling:null}function o(t,n,i){i=void 0===i?new Set:i;for(var r=t;r;){if(r.nodeType===Node.ELEMENT_NODE){var f=r;n(f);var c=f.localName;if("link"===c&&"import"===f.getAttribute("rel")){if((r=f.import)instanceof Node&&!i.has(r))for(i.add(r),r=r.firstChild;r;r=r.nextSibling)o(r,n,i);r=e(t,f);continue}if("template"===c){r=e(t,f);continue}if(f=f.__CE_shadowRoot)for(f=f.firstChild;f;f=f.nextSibling)o(f,n,i)}r=r.firstChild?r.firstChild:e(t,r)}}function r(t,n,i){t[n]=i}function f(){this.a=new Map,this.g=new Map,this.c=[],this.f=[],this.b=!1}function c(t,n){t.b&&o(n,(function(n){return u(t,n)}))}function u(t,n){if(t.b&&!n.__CE_patched){n.__CE_patched=!0;for(var i=0;i<t.c.length;i++)t.c[i](n);for(i=0;i<t.f.length;i++)t.f[i](n)}}function s(t,n){var i=[];for(o(n,(function(t){return i.push(t)})),n=0;n<i.length;n++){var e=i[n];1===e.__CE_state?t.connectedCallback(e):l(t,e)}}function a(t,n){var i=[];for(o(n,(function(t){return i.push(t)})),n=0;n<i.length;n++){var e=i[n];1===e.__CE_state&&t.disconnectedCallback(e)}}function h(t,n,i){var e=(i=void 0===i?{}:i).u||new Set,r=i.i||function(n){return l(t,n)},f=[];if(o(n,(function(n){if("link"===n.localName&&"import"===n.getAttribute("rel")){var i=n.import;i instanceof Node&&(i.__CE_isImportDocument=!0,i.__CE_hasRegistry=!0),i&&"complete"===i.readyState?i.__CE_documentLoadHandled=!0:n.addEventListener("load",(function(){var i=n.import;if(!i.__CE_documentLoadHandled){i.__CE_documentLoadHandled=!0;var o=new Set(e);o.delete(i),h(t,i,{u:o,i:r})}}))}else f.push(n)}),e),t.b)for(n=0;n<f.length;n++)u(t,f[n]);for(n=0;n<f.length;n++)r(f[n])}function l(t,n){if(void 0===n.__CE_state){var e=n.ownerDocument;if((e.defaultView||e.__CE_isImportDocument&&e.__CE_hasRegistry)&&(e=t.a.get(n.localName))){e.constructionStack.push(n);var o=e.constructorFunction;try{try{if(new o!==n)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{e.constructionStack.pop()}}catch(t){throw n.__CE_state=2,t}if(n.__CE_state=1,n.__CE_definition=e,e.attributeChangedCallback)for(e=e.observedAttributes,o=0;o<e.length;o++){var r=e[o],f=n.getAttribute(r);null!==f&&t.attributeChangedCallback(n,r,null,f,null)}i(n)&&t.connectedCallback(n)}}}function d(t){var n=document;this.c=t,this.a=n,this.b=void 0,h(this.c,this.a),"loading"===this.a.readyState&&(this.b=new MutationObserver(this.f.bind(this)),this.b.observe(this.a,{childList:!0,subtree:!0}))}function w(t){t.b&&t.b.disconnect()}function v(){var t=this;this.b=this.a=void 0,this.c=new Promise((function(n){t.b=n,t.a&&n(t.a)}))}function m(t){if(t.a)throw Error("Already resolved.");t.a=void 0,t.b&&t.b(void 0)}function b(t){this.c=!1,this.a=t,this.j=new Map,this.f=function(t){return t()},this.b=!1,this.g=[],this.o=new d(t)}f.prototype.connectedCallback=function(t){var n=t.__CE_definition;n.connectedCallback&&n.connectedCallback.call(t)},f.prototype.disconnectedCallback=function(t){var n=t.__CE_definition;n.disconnectedCallback&&n.disconnectedCallback.call(t)},f.prototype.attributeChangedCallback=function(t,n,i,e,o){var r=t.__CE_definition;r.attributeChangedCallback&&-1<r.observedAttributes.indexOf(n)&&r.attributeChangedCallback.call(t,n,i,e,o)},d.prototype.f=function(t){var n=this.a.readyState;for("interactive"!==n&&"complete"!==n||w(this),n=0;n<t.length;n++)for(var i=t[n].addedNodes,e=0;e<i.length;e++)h(this.c,i[e])},b.prototype.l=function(t,i){var e=this;if(!(i instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!n(t))throw new SyntaxError("The element name '"+t+"' is not valid.");if(this.a.a.get(t))throw Error("A custom element with name '"+t+"' has already been defined.");if(this.c)throw Error("A custom element is already being defined.");this.c=!0;try{var o=function(t){var n=r[t];if(void 0!==n&&!(n instanceof Function))throw Error("The '"+t+"' callback must be a function.");return n},r=i.prototype;if(!(r instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var f=o("connectedCallback"),c=o("disconnectedCallback"),u=o("adoptedCallback"),s=o("attributeChangedCallback"),a=i.observedAttributes||[]}catch(t){return}finally{this.c=!1}(function(t,n,i){t.a.set(n,i),t.g.set(i.constructorFunction,i)})(this.a,t,i={localName:t,constructorFunction:i,connectedCallback:f,disconnectedCallback:c,adoptedCallback:u,attributeChangedCallback:s,observedAttributes:a,constructionStack:[]}),this.g.push(i),this.b||(this.b=!0,this.f((function(){return function(t){if(!1!==t.b){t.b=!1;for(var n=t.g,i=[],e=new Map,o=0;o<n.length;o++)e.set(n[o].localName,[]);for(h(t.a,document,{i:function(n){if(void 0===n.__CE_state){var o=n.localName,r=e.get(o);r?r.push(n):t.a.a.get(o)&&i.push(n)}}}),o=0;o<i.length;o++)l(t.a,i[o]);for(;0<n.length;){var r=n.shift();o=r.localName,r=e.get(r.localName);for(var f=0;f<r.length;f++)l(t.a,r[f]);(o=t.j.get(o))&&m(o)}}}(e)})))},b.prototype.i=function(t){h(this.a,t)},b.prototype.get=function(t){if(t=this.a.a.get(t))return t.constructorFunction},b.prototype.m=function(t){if(!n(t))return Promise.reject(new SyntaxError("'"+t+"' is not a valid custom element name."));var i=this.j.get(t);return i||(i=new v,this.j.set(t,i),this.a.a.get(t)&&!this.g.some((function(n){return n.localName===t}))&&m(i)),i.c},b.prototype.s=function(t){w(this.o);var n=this.f;this.f=function(i){return t((function(){return n(i)}))}},window.CustomElementRegistry=b,b.prototype.define=b.prototype.l,b.prototype.upgrade=b.prototype.i,b.prototype.get=b.prototype.get,b.prototype.whenDefined=b.prototype.m,b.prototype.polyfillWrapFlushCallback=b.prototype.s;var E=window.Document.prototype.createElement,p=window.Document.prototype.createElementNS,g=window.Document.prototype.importNode,y=window.Document.prototype.prepend,C=window.Document.prototype.append,T=window.DocumentFragment.prototype.prepend,j=window.DocumentFragment.prototype.append,D=window.Node.prototype.cloneNode,N=window.Node.prototype.appendChild,A=window.Node.prototype.insertBefore,O=window.Node.prototype.removeChild,M=window.Node.prototype.replaceChild,k=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),L=window.Element.prototype.attachShadow,S=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),F=window.Element.prototype.getAttribute,H=window.Element.prototype.setAttribute,x=window.Element.prototype.removeAttribute,z=window.Element.prototype.getAttributeNS,P=window.Element.prototype.setAttributeNS,R=window.Element.prototype.removeAttributeNS,$=window.Element.prototype.insertAdjacentElement,_=window.Element.prototype.insertAdjacentHTML,B=window.Element.prototype.prepend,I=window.Element.prototype.append,U=window.Element.prototype.before,W=window.Element.prototype.after,q=window.Element.prototype.replaceWith,G=window.Element.prototype.remove,J=window.HTMLElement,K=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),Q=window.HTMLElement.prototype.insertAdjacentElement,V=window.HTMLElement.prototype.insertAdjacentHTML,X=new function(){};function Y(t,n,e){function o(n){return function(e){for(var o=[],r=0;r<arguments.length;++r)o[r]=arguments[r];r=[];for(var f=[],c=0;c<o.length;c++){var u=o[c];if(u instanceof Element&&i(u)&&f.push(u),u instanceof DocumentFragment)for(u=u.firstChild;u;u=u.nextSibling)r.push(u);else r.push(u)}for(n.apply(this,o),o=0;o<f.length;o++)a(t,f[o]);if(i(this))for(o=0;o<r.length;o++)(f=r[o])instanceof Element&&s(t,f)}}void 0!==e.h&&(n.prepend=o(e.h)),void 0!==e.append&&(n.append=o(e.append))}var Z=window.customElements;if(!Z||Z.forcePolyfill||"function"!=typeof Z.define||"function"!=typeof Z.get){var tt=new f;!function(){var t=tt;window.HTMLElement=function(){function n(){var n=this.constructor,i=t.g.get(n);if(!i)throw Error("The custom element being constructed was not registered with `customElements`.");var e=i.constructionStack;if(0===e.length)return e=E.call(document,i.localName),Object.setPrototypeOf(e,n.prototype),e.__CE_state=1,e.__CE_definition=i,u(t,e),e;var o=e[i=e.length-1];if(o===X)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");return e[i]=X,Object.setPrototypeOf(o,n.prototype),u(t,o),o}return Object.defineProperty(n.prototype=J.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:n}),n}()}(),function(){var t=tt;r(Document.prototype,"createElement",(function(n){if(this.__CE_hasRegistry){var i=t.a.get(n);if(i)return new i.constructorFunction}return n=E.call(this,n),u(t,n),n})),r(Document.prototype,"importNode",(function(n,i){return n=g.call(this,n,!!i),this.__CE_hasRegistry?h(t,n):c(t,n),n})),r(Document.prototype,"createElementNS",(function(n,i){if(this.__CE_hasRegistry&&(null===n||"http://www.w3.org/1999/xhtml"===n)){var e=t.a.get(i);if(e)return new e.constructorFunction}return n=p.call(this,n,i),u(t,n),n})),Y(t,Document.prototype,{h:y,append:C})}(),Y(tt,DocumentFragment.prototype,{h:T,append:j}),function(){function t(t,e){Object.defineProperty(t,"textContent",{enumerable:e.enumerable,configurable:!0,get:e.get,set:function(t){if(this.nodeType===Node.TEXT_NODE)e.set.call(this,t);else{var o=void 0;if(this.firstChild){var r=this.childNodes,f=r.length;if(0<f&&i(this)){o=Array(f);for(var c=0;c<f;c++)o[c]=r[c]}}if(e.set.call(this,t),o)for(t=0;t<o.length;t++)a(n,o[t])}}})}var n=tt;r(Node.prototype,"insertBefore",(function(t,e){if(t instanceof DocumentFragment){var o=Array.prototype.slice.apply(t.childNodes);if(t=A.call(this,t,e),i(this))for(e=0;e<o.length;e++)s(n,o[e]);return t}return o=i(t),e=A.call(this,t,e),o&&a(n,t),i(this)&&s(n,t),e})),r(Node.prototype,"appendChild",(function(t){if(t instanceof DocumentFragment){var e=Array.prototype.slice.apply(t.childNodes);if(t=N.call(this,t),i(this))for(var o=0;o<e.length;o++)s(n,e[o]);return t}return e=i(t),o=N.call(this,t),e&&a(n,t),i(this)&&s(n,t),o})),r(Node.prototype,"cloneNode",(function(t){return t=D.call(this,!!t),this.ownerDocument.__CE_hasRegistry?h(n,t):c(n,t),t})),r(Node.prototype,"removeChild",(function(t){var e=i(t),o=O.call(this,t);return e&&a(n,t),o})),r(Node.prototype,"replaceChild",(function(t,e){if(t instanceof DocumentFragment){var o=Array.prototype.slice.apply(t.childNodes);if(t=M.call(this,t,e),i(this))for(a(n,e),e=0;e<o.length;e++)s(n,o[e]);return t}o=i(t);var r=M.call(this,t,e),f=i(this);return f&&a(n,e),o&&a(n,t),f&&s(n,t),r})),k&&k.get?t(Node.prototype,k):function(t,n){t.b=!0,t.c.push(n)}(n,(function(n){t(n,{enumerable:!0,configurable:!0,get:function(){for(var t=[],n=0;n<this.childNodes.length;n++){var i=this.childNodes[n];i.nodeType!==Node.COMMENT_NODE&&t.push(i.textContent)}return t.join("")},set:function(t){for(;this.firstChild;)O.call(this,this.firstChild);null!=t&&""!==t&&N.call(this,document.createTextNode(t))}})}))}(),function(){function t(t,n){Object.defineProperty(t,"innerHTML",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(t){var e=this,r=void 0;if(i(this)&&(r=[],o(this,(function(t){t!==e&&r.push(t)}))),n.set.call(this,t),r)for(var u=0;u<r.length;u++){var s=r[u];1===s.__CE_state&&f.disconnectedCallback(s)}return this.ownerDocument.__CE_hasRegistry?h(f,this):c(f,this),t}})}function n(t,n){r(t,"insertAdjacentElement",(function(t,e){var o=i(e);return t=n.call(this,t,e),o&&a(f,e),i(t)&&s(f,e),t}))}function e(t,n){function i(t,n){for(var i=[];t!==n;t=t.nextSibling)i.push(t);for(n=0;n<i.length;n++)h(f,i[n])}r(t,"insertAdjacentHTML",(function(t,e){if("beforebegin"===(t=t.toLowerCase())){var o=this.previousSibling;n.call(this,t,e),i(o||this.parentNode.firstChild,this)}else if("afterbegin"===t)o=this.firstChild,n.call(this,t,e),i(this.firstChild,o);else if("beforeend"===t)o=this.lastChild,n.call(this,t,e),i(o||this.firstChild,null);else{if("afterend"!==t)throw new SyntaxError("The value provided ("+t+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");o=this.nextSibling,n.call(this,t,e),i(this.nextSibling,o)}}))}var f=tt;L&&r(Element.prototype,"attachShadow",(function(t){t=L.call(this,t);var n=f;if(n.b&&!t.__CE_patched){t.__CE_patched=!0;for(var i=0;i<n.c.length;i++)n.c[i](t)}return this.__CE_shadowRoot=t})),S&&S.get?t(Element.prototype,S):K&&K.get?t(HTMLElement.prototype,K):function(t,n){t.b=!0,t.f.push(n)}(f,(function(n){t(n,{enumerable:!0,configurable:!0,get:function(){return D.call(this,!0).innerHTML},set:function(t){var n="template"===this.localName,i=n?this.content:this,e=p.call(document,this.namespaceURI,this.localName);for(e.innerHTML=t;0<i.childNodes.length;)O.call(i,i.childNodes[0]);for(t=n?e.content:e;0<t.childNodes.length;)N.call(i,t.childNodes[0])}})})),r(Element.prototype,"setAttribute",(function(t,n){if(1!==this.__CE_state)return H.call(this,t,n);var i=F.call(this,t);H.call(this,t,n),n=F.call(this,t),f.attributeChangedCallback(this,t,i,n,null)})),r(Element.prototype,"setAttributeNS",(function(t,n,i){if(1!==this.__CE_state)return P.call(this,t,n,i);var e=z.call(this,t,n);P.call(this,t,n,i),i=z.call(this,t,n),f.attributeChangedCallback(this,n,e,i,t)})),r(Element.prototype,"removeAttribute",(function(t){if(1!==this.__CE_state)return x.call(this,t);var n=F.call(this,t);x.call(this,t),null!==n&&f.attributeChangedCallback(this,t,n,null,null)})),r(Element.prototype,"removeAttributeNS",(function(t,n){if(1!==this.__CE_state)return R.call(this,t,n);var i=z.call(this,t,n);R.call(this,t,n);var e=z.call(this,t,n);i!==e&&f.attributeChangedCallback(this,n,i,e,t)})),Q?n(HTMLElement.prototype,Q):$?n(Element.prototype,$):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched."),V?e(HTMLElement.prototype,V):_?e(Element.prototype,_):console.warn("Custom Elements: `Element#insertAdjacentHTML` was not patched."),Y(f,Element.prototype,{h:B,append:I}),function(t){function n(n){return function(e){for(var o=[],r=0;r<arguments.length;++r)o[r]=arguments[r];r=[];for(var f=[],c=0;c<o.length;c++){var u=o[c];if(u instanceof Element&&i(u)&&f.push(u),u instanceof DocumentFragment)for(u=u.firstChild;u;u=u.nextSibling)r.push(u);else r.push(u)}for(n.apply(this,o),o=0;o<f.length;o++)a(t,f[o]);if(i(this))for(o=0;o<r.length;o++)(f=r[o])instanceof Element&&s(t,f)}}var e=Element.prototype;void 0!==U&&(e.before=n(U)),void 0!==U&&(e.after=n(W)),void 0!==q&&r(e,"replaceWith",(function(n){for(var e=[],o=0;o<arguments.length;++o)e[o]=arguments[o];o=[];for(var r=[],f=0;f<e.length;f++){var c=e[f];if(c instanceof Element&&i(c)&&r.push(c),c instanceof DocumentFragment)for(c=c.firstChild;c;c=c.nextSibling)o.push(c);else o.push(c)}for(f=i(this),q.apply(this,e),e=0;e<r.length;e++)a(t,r[e]);if(f)for(a(t,this),e=0;e<o.length;e++)(r=o[e])instanceof Element&&s(t,r)})),void 0!==G&&r(e,"remove",(function(){var n=i(this);G.call(this),n&&a(t,this)}))}(f)}(),document.__CE_hasRegistry=!0;var nt=new b(tt);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:nt})}}(),"string"!=typeof document.baseURI&&Object.defineProperty(Document.prototype,"baseURI",{enumerable:!0,configurable:!0,get:function(){var t=document.querySelector("base");return t&&t.href?t.href:document.URL}}),"function"!=typeof window.CustomEvent&&(window.CustomEvent=function(t,n){n=n||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");return i.initCustomEvent(t,n.bubbles,n.cancelable,n.detail),i},window.CustomEvent.prototype=window.Event.prototype),function(t,n,i){t.composedPath||(t.composedPath=function(){if(this.path)return this.path;var t=this.target;for(this.path=[];null!==t.parentNode;)this.path.push(t),t=t.parentNode;return this.path.push(n,i),this.path})}(Event.prototype,document,window),
2
+ /*!
3
+ Element.closest and Element.matches
4
+ https://github.com/jonathantneal/closest
5
+ Creative Commons Zero v1.0 Universal
6
+ */
7
+ function(t){"function"!=typeof t.matches&&(t.matches=t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||function(t){t=(this.document||this.ownerDocument).querySelectorAll(t);for(var n=0;t[n]&&t[n]!==this;)++n;return!!t[n]}),"function"!=typeof t.closest&&(t.closest=function(t){for(var n=this;n&&1===n.nodeType;){if(n.matches(t))return n;n=n.parentNode}return null})}(window.Element.prototype),
8
+ /*!
9
+ Element.getRootNode()
10
+ */
11
+ function(t){function n(t){return(t=i(t))&&11===t.nodeType?n(t.host):t}function i(t){return t&&t.parentNode?i(t.parentNode):t}"function"!=typeof t.getRootNode&&(t.getRootNode=function(t){return t&&t.composed?n(this):i(this)})}(Element.prototype),
12
+ /*!
13
+ Element.isConnected()
14
+ */
15
+ function(t){"isConnected"in t||Object.defineProperty(t,"isConnected",{configurable:!0,enumerable:!0,get:function(){var t=this.getRootNode({composed:!0});return t&&9===t.nodeType}})}(Element.prototype),[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(t){t.hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})})),function(t){"classList"in t||Object.defineProperty(t,"classList",{get:function(){var t=this,n=(t.getAttribute("class")||"").replace(/^\s+|\s$/g,"").split(/\s+/g);function i(){n.length>0?t.setAttribute("class",n.join(" ")):t.removeAttribute("class")}return""===n[0]&&n.splice(0,1),n.toggle=function(t,e){void 0!==e?e?n.add(t):n.remove(t):-1!==n.indexOf(t)?n.splice(n.indexOf(t),1):n.push(t),i()},n.add=function(){for(var t=[].slice.call(arguments),e=0,o=t.length;e<o;e++)-1===n.indexOf(t[e])&&n.push(t[e]);i()},n.remove=function(){for(var t=[].slice.call(arguments),e=0,o=t.length;e<o;e++)-1!==n.indexOf(t[e])&&n.splice(n.indexOf(t[e]),1);i()},n.item=function(t){return n[t]},n.contains=function(t){return-1!==n.indexOf(t)},n.replace=function(t,e){-1!==n.indexOf(t)&&n.splice(n.indexOf(t),1,e),i()},n.value=t.getAttribute("class")||"",n}})}(Element.prototype),
16
+ /*!
17
+ DOMTokenList
18
+ */
19
+ function(t){try{document.body.classList.add()}catch(e){var n=t.add,i=t.remove;t.add=function(){for(var t=0;t<arguments.length;t++)n.call(this,arguments[t])},t.remove=function(){for(var t=0;t<arguments.length;t++)i.call(this,arguments[t])}}}(DOMTokenList.prototype);
@@ -0,0 +1 @@
1
+ import{r as t,e as s,h as i,f as e,g as a}from"./p-15c07fa9.js";import{Action as h,ElementIDUtils as n,LockManager as r,LockManagerOperation as o,SilentException as l,StringUtils as d,ApplicationContext as v,OVERFLOWED_CLASS_NAME as u,OverflowWatcher as c,OverflowDirection as k}from"@sankhyalabs/core";import{P as m}from"./p-0f3698af.js";import{A as b}from"./p-dc36cfbf.js";import{T as p,V as T,A as f,b as g,a as w}from"./p-ddf5e382.js";import"./p-71b1be2e.js";const E=class{constructor(i){t(this,i),this.actionClick=s(this,"actionClick",7),this.taskbarSaveLocker=s(this,"taskbarSaveLocker",7),this.taskbarSaveUnlocker=s(this,"taskbarSaveUnlocker",7),this.TASKBAR_ITEM_ID_PREFIX="TASKBAR_ITEM_",this.TASKBAR_CUSTOM_ELEMENTS_CONTAINER_CLASS_NAME="taskbar-custom-elements-container",this.ACTIONS_BUTTON_TAG="TASKBAR-ACTIONS-BUTTON",this.NOT_OVERFLOW_ELEMENTS=["moreOptions","dataExporter_snkDataExporter","actionsButton_snkActionsButton"],this.TASKBAR_CUSTOM_ELEMENTS="taskbar-custom-elements-container",this._dataUnitInitialized=!1,this._titleKeyByElement={[p.UPDATE_MULTIPLE]:"snkTaskbar.titleUpdateMultiple",[p.UPDATE]:"snkTaskbar.titleUpdate",[p.PREVIOUS]:"snkTaskbar.titlePrevious",[p.NEXT]:"snkTaskbar.titleNext",[p.REFRESH]:"snkTaskbar.titleRefresh",[p.CLONE]:"snkTaskbar.titleClone",[p.REMOVE]:"snkTaskbar.titleRemove",[p.MORE_OPTIONS]:"snkTaskbar.titleMoreOptions",[p.INSERT]:"snkTaskbar.titleInsert",[p.CANCEL]:"snkTaskbar.titleCancel",[p.SAVE]:"snkTaskbar.titleSave",[p.GRID_MODE]:"snkTaskbar.titleGridMode",[p.FORM_MODE]:"snkTaskbar.titleFormMode",[p.CONFIGURATOR]:"snkTaskbar.titleConfigurator",[p.ATTACH]:"snkTaskbar.titleAttach"},this.onSaveEvent=t=>{switch(t.type){case h.FIELD_INVALIDATED:case h.INVALIDATE_CLEAN:case h.DATA_SAVED:case h.SAVING_ERROR:case h.SAVING_CANCELED:this._isWaitingForSave=!1;break;case h.SAVING_DATA:this._isWaitingForSave=!0}},this._permissions=void 0,this._overFlowedElements=[],this._customElements=void 0,this._customElementsId=void 0,this._slotContainer=void 0,this._hiddenActionsList=[],this._lastWidth=void 0,this._hasToUpdateOverFlow=!1,this._isWaitingForSave=!1,this.alignRigth=!1,this.customSlotId="TASKBAR_CUSTOM_ELEMENTS",this.customContainerId=void 0,this.overflowStrategy="hiddenItems",this.configName=void 0,this.resourceID=void 0,this.buttons=void 0,this.customButtons=void 0,this.actionsList=void 0,this.actionsSettingsList=void 0,this.primaryButton=void 0,this.disabledButtons=void 0,this.dataUnit=void 0,this.presentationMode=m.PRIMARY,this.messagesBuilder=void 0}handleCustomSlotElementsLoaded(t){this.hasToSearchCustomElements(t)&&this.getCustomElements(!0)}handleTaskbarSaveLocker(){!0!==this._isWaitingForSave&&(this._isWaitingForSave=!0)}handleTaskbarSaveUnlocker(){!0===this._isWaitingForSave&&(this._isWaitingForSave=!1)}hasToSearchCustomElements(t){return this.customSlotId===t.detail&&!this._slotContainer}observeButtons(){this._definitions=void 0,requestAnimationFrame((()=>{requestAnimationFrame((()=>{var t;return null===(t=this._overFlowWatcher)||void 0===t?void 0:t.forceUpdate()}))}))}observeDisabledButtons(){var t;null===(t=this._overFlowWatcher)||void 0===t||t.forceUpdate()}observeLastWidth(t,s){0===s&&0!==t&&(this._hasToUpdateOverFlow=!0)}observeIsWaitingForSave(t,s){1==t&&0==s&&this.taskbarSaveLocker.emit(),0==t&&1==s&&this.taskbarSaveUnlocker.emit()}observeDataUnit(t){this.initializeDataUnit(t)}initializeDataUnit(t){t&&!this._dataUnitInitialized&&(this._dataUnitInitialized=!0,n.addIDInfo(this._element,null,{dataUnit:this.dataUnit}),this.dataUnit.subscribe(this.onSaveEvent))}elementsFromString(t){const s=[];return null==t||t.split(",").forEach((t=>{t=t.trim(),(T[t]||this.isAllowed(t))&&s.push(t.trim())})),s}isAllowed(t){return t===f.CONFIGURATOR?!!this._permissions&&(this._permissions.isSup||this._permissions[b.CONFIG_GRID]||this._permissions[b.CONFIG]):!f[t]||!!this._permissions&&(this._permissions.isSup||this._permissions[t])}getTitle(t){var s;let i;return i=this.isAllowed(t)?this._titleKeyByElement[t]:"snkTaskbar.forbidden",i?null===(s=this.messagesBuilder)||void 0===s?void 0:s.getMessage(i,{}):""}elementClick(t){r.whenResolve(this._element,o.TASKBAR_CLICK).then((()=>{if(this.dataUnit){switch(t){case p.PREVIOUS:this.dataUnit.previousRecord();break;case p.NEXT:this.dataUnit.nextRecord();break;case p.REFRESH:this.dataUnit.loadData();break;case p.CLONE:this.dataUnit.copySelected();break;case p.REMOVE:this.dataUnit.removeSelectedRecords();break;case p.INSERT:this.dataUnit.addRecord();break;case p.CANCEL:this.dataUnit.cancelEdition();break;case p.SAVE:this._isWaitingForSave||(this._isWaitingForSave=!0,this.dataUnit.saveData().catch((t=>{if(!(t instanceof l))throw t})).finally((()=>{this._isWaitingForSave=!1})))}this.isEnabled(t)&&this.actionClick.emit(t)}}))}isEnabled(t){return!(!this.isAllowed(t)||this.disabledButtons&&this.disabledButtons.includes(t))}validatePresentationMode(){Object.values(m).includes(this.presentationMode)||(this.presentationMode=m.PRIMARY)}getElement(t,s){let i=s===this.primaryButton?"ez-button--primary ":"";t>1&&(i+="ez-padding-left--medium");const e=p[s.toString()],a=this._element.dataset.exporterStoreKey||this.configName;return e?g(s,i,this.getIdElemBtnNative(s),(t=>this.getTitle(t)),(t=>this.elementClick(t)),(t=>this.isEnabled(t)),s!==p.CONFIGURATOR?this.buildDynamicActionsList():this.buildActionsSettingsList(),a,this.presentationMode):w(s,i,this.getIdElemBtnCustom(s),(t=>this.elementClick(t)),(t=>this.isEnabled(t)))}buildDynamicActionsList(){var t;return this._hiddenActionsList.length?[...null!==(t=this.actionsList)&&void 0!==t?t:[],...this._hiddenActionsList]:this.actionsList}buildActionsSettingsList(){return this.actionsSettingsList}getIdElemBtnNative(t){return d.toCamelCase(t)}getIdElemBtnCustom(t){return d.toCamelCase(t.name)}isDivider(t){var s;return void 0!==t&&(null===(s=t.t)||void 0===s?void 0:s["data-taskbar-divider"])}removeEmpty(t){let s;return t.filter((t=>!(null==t||this.isDivider(s)&&this.isDivider(t)||(s=t,0))))}appendCustomElementsInTaskbar(){this._customElementsId.forEach((t=>{const s=t.replace(this.TASKBAR_ITEM_ID_PREFIX,""),i=this._customElements.get(s),e=this._element.querySelector(`#${t}`);e?null==e||e.appendChild(i):this.unlinkCustomElementFromTaskbar(i)}))}addCustomElementContainer(t){var s;const e=`${this.TASKBAR_ITEM_ID_PREFIX}${t}`;return this._customElementsId.includes(e)||(this._customElementsId.push(e),null===(s=this._overFlowWatcher)||void 0===s||s.addNotOverFlowElement(e)),i("span",{class:"ez-padding-left--medium",key:e,id:e})}getCustomElements(t){var s,i;this._customElementsId=[],this._customElements=new Map,this._slotContainer=this.buildSlotContainer(t),Array.from(null!==(i=null===(s=this._slotContainer)||void 0===s?void 0:s.children)&&void 0!==i?i:[]).forEach((t=>this._customElements.set(t.id,t)))}buildSlotContainer(t){let s;if(this.customContainerId){const t=document.querySelector(`#${this.customContainerId}`);s=null==t?void 0:t.querySelector(`#${this.customSlotId}`)}else s=this._element.querySelector(`#${this.customSlotId}`);return t&&!s&&(s=document.querySelector(`#${this.customSlotId}`)),s}componentWillLoad(){this._application=v.getContextValue("__SNK__APPLICATION__"),this._application?this._application.getAllAccess(this.resourceID).then((t=>this._permissions=t)):this._permissions={},this.getCustomElements()}componentWillRender(){this.handleDefinitions(),this.validatePresentationMode(),this.updateOverFlowIfNeeded()}handleDefinitions(){null==this._definitions&&this._permissions&&(this._definitions=this.elementsFromString(this.buttons))}updateOverFlowIfNeeded(){this._hasToUpdateOverFlow&&(requestAnimationFrame((()=>{var t;return null===(t=this._overFlowWatcher)||void 0===t?void 0:t.forceUpdate()})),this._hasToUpdateOverFlow=!1)}handleOverFlow(t){const s=t.filter((t=>!this.hasToIgnoreOverFlow(t)));this.resetOverFlowedElements(),this.doOverFlowElements(s)}resetOverFlowedElements(){this._overFlowedElements.forEach((t=>{t.classList.remove(u)})),this._hiddenActionsList=[],this._overFlowedElements=[]}doOverFlowElements(t){t.forEach((t=>{t.classList.add(u),this._overFlowedElements.push(t),this.addItemToActionList(t)}))}addItemToActionList(t){const s=this.getTaskbarElementName(t);if(s&&this.isEnabled(s)&&this.isAllowed(s)){const i={value:s,label:this.getTaskbarElementLabel(t),iconName:this.getTaskbarElementIcon(t)};this._hiddenActionsList.push(i)}}getTaskbarElementName(t){var s;return null!==(s=t.getAttribute("data-taskbar-element"))&&void 0!==s?s:""}getTaskbarElementIcon(t){var s;return null!==(s=t.getAttribute("data-taskbar-icon"))&&void 0!==s?s:""}getTaskbarElementLabel(t){var s;return null!==(s=t.getAttribute("data-taskbar-label"))&&void 0!==s?s:""}hasToIgnoreOverFlow(t){return t.classList.contains(this.TASKBAR_CUSTOM_ELEMENTS_CONTAINER_CLASS_NAME)}handleOverFlowStrategy(){"hiddenItems"===this.overflowStrategy&&(this._overFlowWatcher=new c(this.buildOverFlowWatcherParams()))}buildOverFlowWatcherParams(){return{element:this._element,callback:this.handleOverFlow.bind(this),overFlowDirection:k.HORIZONTAL,notOverFlow:this.NOT_OVERFLOW_ELEMENTS}}componentDidLoad(){this.initializeDataUnit(this.dataUnit),this.handleOverFlowStrategy()}componentDidRender(){this.appendCustomElementsInTaskbar(),this.updateLastWidth()}updateLastWidth(){this._lastWidth=this._element.getBoundingClientRect().width}disconnectedCallback(){var t,s;null===(t=this.dataUnit)||void 0===t||t.unsubscribe(this.onSaveEvent),this.unlinkAllCustomElements(),null===(s=this._overFlowWatcher)||void 0===s||s.destroy()}unlinkAllCustomElements(){var t;null===(t=this._customElementsId)||void 0===t||t.forEach((t=>{const s=t.replace(this.TASKBAR_ITEM_ID_PREFIX,""),i=this._customElements.get(s);this.unlinkCustomElementFromTaskbar(i)}))}unlinkCustomElementFromTaskbar(t){this._slotContainer.appendChild(t)}render(){var t;if(void 0===this._definitions)return;let s=0;return i(e,{class:this.getHostClasses()},this.removeEmpty(this._definitions.map((t=>{var e,a;return s++,p[t]?this.getElement(s,p[t]):(null===(e=this.customButtons)||void 0===e?void 0:e.has(t))?this.getElement(s,this.customButtons.get(t)):this._customElements.has(t)?this.addCustomElementContainer(t):(null===(a=this._overFlowWatcher)||void 0===a||a.addNotOverFlowElement(t),i("slot",{name:t}))}))),i("div",{id:this.TASKBAR_CUSTOM_ELEMENTS,class:this.TASKBAR_CUSTOM_ELEMENTS_CONTAINER_CLASS_NAME},i("slot",{name:this.customSlotId}),null===(t=this._overFlowWatcher)||void 0===t?void 0:t.addNotOverFlowElement(this.TASKBAR_CUSTOM_ELEMENTS)))}getHostClasses(){return"hiddenItems"!==this.overflowStrategy?"no-wrap":"full-width "+(this.alignRigth?"align-right":"")}get _element(){return a(this)}static get watchers(){return{buttons:["observeButtons"],disabledButtons:["observeDisabledButtons"],_lastWidth:["observeLastWidth"],_isWaitingForSave:["observeIsWaitingForSave"],dataUnit:["observeDataUnit"]}}};E.style=".sc-snk-taskbar-h{display:flex;flex-wrap:wrap}.no-wrap.sc-snk-taskbar-h{flex-wrap:nowrap}.full-width.sc-snk-taskbar-h{width:100%}.align-right.sc-snk-taskbar-h{justify-content:flex-end}.overflowed.sc-snk-taskbar{display:none}";export{E as snk_taskbar}
@@ -1 +1 @@
1
- import{r as i,c as t,h as s,g as e}from"./p-d8d8169b.js";import{ElementIDUtils as h}from"@sankhyalabs/core";import{F as a}from"./p-ff1990ad.js";import{F as r}from"./p-fa80e546.js";import{E as l}from"./p-1a68fb59.js";const n=class{constructor(s){i(this,s),this.valueChanged=t(this,"valueChanged",7),this._startIntervalLabel="Inicial",this._endIntervalLabel="Final",this._toLabel="até",this.config=void 0,this.getMessage=void 0,this.value=void 0,this.presentationMode=l.CHIP,this.errorMessage=void 0}ezChangeListener(i){if(this.errorMessage=void 0,this.getVariation()===r.INTERVAL){const i=this._startInterval.value,t=this._endInterval.value;return this.value=isNaN(i)&&isNaN(t)?void 0:{start:i,end:t},void this.valueChanged.emit(this.value)}this.value=i.detail,this.valueChanged.emit(this.value)}async show(){this.getVariation()!==r.INTERVAL?this._numberElement.setFocus():this._startInterval.setFocus()}async setFocus(){this.getVariation()!==r.INTERVAL?await this._numberElement.setFocus():await this._startInterval.setFocus()}async clearValue(){var i,t;if(this.value=this.config.value,this.getVariation()===r.INTERVAL){const s=this.config.value;this._startInterval&&(this._startInterval.value=null!==(i=null==s?void 0:s.start)&&void 0!==i?i:null),this._endInterval&&(this._endInterval.value=null!==(t=null==s?void 0:s.end)&&void 0!==t?t:null)}else this._numberElement&&(this._numberElement.value=this.config.value)}getIntervalValue(i){const t=this.value?this.value[i]:null;return null!=t?t:null}buildLabel(){if(this.presentationMode===l.CHIP)return s("label",{class:"ez-text ez-text--medium ez-text--primary ez-margin--medium"},this._toLabel)}getVariation(){var i,t;return null!==(t=null===(i=this.config.props)||void 0===i?void 0:i.variation)&&void 0!==t?t:r.DEFAULT}componentWillLoad(){this.getMessage&&(this._startIntervalLabel=this.getMessage("snkFilterBar.labelStart"),this._endIntervalLabel=this.getMessage("snkFilterBar.labelEnd"),this._toLabel=this.getMessage("snkFilterBar.labelTo"))}componentDidLoad(){this._element&&h.addIDInfo(this._element,"filterContentEditor")}render(){var i,t,e;if(this.config&&this.config.type===a.NUMBER)return this.getVariation()===r.INTERVAL?s("ez-tooltip",{active:!1===this.config.enabled,message:this.config.disabledMessage,type:"warning"},s("div",{class:"ez-col ez-col--nowrap"},s("ez-number-input",{id:`${this.config.id}_start`,class:this.presentationMode===l.MODAL?"ez-padding-right--medium":"",label:this._startIntervalLabel,ref:i=>this._startInterval=i,value:this.getIntervalValue("start"),enabled:this.config.enabled,precision:null===(i=this.config.props)||void 0===i?void 0:i.precision,errorMessage:this.errorMessage}),this.buildLabel(),s("ez-number-input",{id:`${this.config.id}_end`,label:this._endIntervalLabel,ref:i=>this._endInterval=i,value:this.getIntervalValue("end"),enabled:this.config.enabled,precision:null===(t=this.config.props)||void 0===t?void 0:t.precision,errorMessage:this.errorMessage}))):s("ez-tooltip",{active:!1===this.config.enabled,message:this.config.disabledMessage,type:"warning"},s("ez-number-input",{id:this.config.id,ref:i=>this._numberElement=i,value:this.config.value,precision:null===(e=this.config.props)||void 0===e?void 0:e.precision,enabled:this.config.enabled,errorMessage:this.errorMessage}))}get _element(){return e(this)}};export{n as snk_filter_number}
1
+ import{r as i,e as t,h as s,g as e}from"./p-15c07fa9.js";import{ElementIDUtils as h}from"@sankhyalabs/core";import{F as a}from"./p-ff1990ad.js";import{F as l}from"./p-fa80e546.js";import{E as r}from"./p-1a68fb59.js";const n=class{constructor(s){i(this,s),this.valueChanged=t(this,"valueChanged",7),this._startIntervalLabel="Inicial",this._endIntervalLabel="Final",this._toLabel="até",this.config=void 0,this.getMessage=void 0,this.value=void 0,this.presentationMode=r.CHIP,this.errorMessage=void 0}ezChangeListener(i){if(this.errorMessage=void 0,this.getVariation()===l.INTERVAL){const i=this._startInterval.value,t=this._endInterval.value;return this.value=isNaN(i)&&isNaN(t)?void 0:{start:i,end:t},void this.valueChanged.emit(this.value)}this.value=i.detail,this.valueChanged.emit(this.value)}async show(){this.getVariation()!==l.INTERVAL?this._numberElement.setFocus():this._startInterval.setFocus()}async setFocus(){this.getVariation()!==l.INTERVAL?await this._numberElement.setFocus():await this._startInterval.setFocus()}async clearValue(){var i,t;if(this.value=this.config.value,this.getVariation()===l.INTERVAL){const s=this.config.value;this._startInterval&&(this._startInterval.value=null!==(i=null==s?void 0:s.start)&&void 0!==i?i:null),this._endInterval&&(this._endInterval.value=null!==(t=null==s?void 0:s.end)&&void 0!==t?t:null)}else this._numberElement&&(this._numberElement.value=this.config.value)}getIntervalValue(i){const t=this.value?this.value[i]:null;return null!=t?t:null}buildLabel(){if(this.presentationMode===r.CHIP)return s("label",{class:"ez-text ez-text--medium ez-text--primary ez-margin--medium"},this._toLabel)}getVariation(){var i,t;return null!==(t=null===(i=this.config.props)||void 0===i?void 0:i.variation)&&void 0!==t?t:l.DEFAULT}componentWillLoad(){this.getMessage&&(this._startIntervalLabel=this.getMessage("snkFilterBar.labelStart"),this._endIntervalLabel=this.getMessage("snkFilterBar.labelEnd"),this._toLabel=this.getMessage("snkFilterBar.labelTo"))}componentDidLoad(){this._element&&h.addIDInfo(this._element,"filterContentEditor")}render(){var i,t,e;if(this.config&&this.config.type===a.NUMBER)return this.getVariation()===l.INTERVAL?s("ez-tooltip",{active:!1===this.config.enabled,message:this.config.disabledMessage,type:"warning"},s("div",{class:"ez-col ez-col--nowrap"},s("ez-number-input",{id:`${this.config.id}_start`,class:this.presentationMode===r.MODAL?"ez-padding-right--medium":"",label:this._startIntervalLabel,ref:i=>this._startInterval=i,value:this.getIntervalValue("start"),enabled:this.config.enabled,precision:null===(i=this.config.props)||void 0===i?void 0:i.precision,errorMessage:this.errorMessage}),this.buildLabel(),s("ez-number-input",{id:`${this.config.id}_end`,label:this._endIntervalLabel,ref:i=>this._endInterval=i,value:this.getIntervalValue("end"),enabled:this.config.enabled,precision:null===(t=this.config.props)||void 0===t?void 0:t.precision,errorMessage:this.errorMessage}))):s("ez-tooltip",{active:!1===this.config.enabled,message:this.config.disabledMessage,type:"warning"},s("ez-number-input",{id:this.config.id,label:this.config.label,ref:i=>this._numberElement=i,value:this.config.value,precision:null===(e=this.config.props)||void 0===e?void 0:e.precision,enabled:this.config.enabled,errorMessage:this.errorMessage}))}get _element(){return e(this)}};export{n as snk_filter_number}
Binary file
@@ -0,0 +1 @@
1
+ import{r as i,e,h as t,g as s}from"./p-15c07fa9.js";import{ObjectUtils as o,ArrayUtils as n}from"@sankhyalabs/core";import{ApplicationUtils as a}from"@sankhyalabs/ezui/dist/collection/utils";import{S as r}from"./p-51833248.js";import{a as d}from"./p-9019a32f.js";const l=class{constructor(t){i(this,t),this.guideSelected=e(this,"guideSelected",7),this.guideListChanged=e(this,"guideListChanged",7),this.guideDeleted=e(this,"guideDeleted",7),this.createNewGuide=e(this,"createNewGuide",7),this.ID_VISIBLE_GUIDES="container-visible-guides",this.ID_HIDDEN_GUIDES="container-hidden-guides",this.sortLogic=(i,e)=>{var t,s;return(null!==(t=i.order)&&void 0!==t?t:Number.MAX_VALUE)-(null!==(s=e.order)&&void 0!==s?s:Number.MAX_VALUE)},this.mainGuide=void 0,this.filterTerm="",this.visibleGuides=[],this.hiddenGuides=[],this.guidesList=[],this.selectedGuide=void 0,this.messagesBuilder=void 0}onMessagesBuilderChange(){this.setCustomCSSProperties()}observeVisibleGuides(i){this.initGuidesConfig(i)}observeSelectedGuide(i){this.guideSelected.emit(i)}getMessage(i,e){return this.messagesBuilder.getMessage(i,e)}initGuidesConfig(i){const e=[...i.filter((i=>i.visible&&i.name!==d.main))],t=[...i.filter((i=>!i.visible&&i.name!==d.main))];this.visibleGuides=[...e.sort(this.sortLogic)],this.hiddenGuides=[...t.sort(this.sortLogic)],this.mainGuide=i.find((i=>i.name===d.main))}handleAddGuide(){this.createNewGuide.emit()}handleSelectGuide(i,e){e.stopPropagation(),this.selectedGuide=i}toggleGuideVisibility(i,e){e.stopPropagation();const t=Object.assign(Object.assign({},i),{visible:!i.visible});let s,o;i.visible?(s=[...this.visibleGuides.filter((e=>e.name!==i.name))],o=[...this.hiddenGuides,t]):(s=[...this.visibleGuides,t],o=[...this.hiddenGuides.filter((e=>e.name!==i.name))]);const n=[...s,...o];this.applyGuidesUpdate(n)}adjustListOrder(i){return i.map(((i,e)=>Object.assign(Object.assign({},i),{order:e})))}applyGuidesUpdate(i){let e=this.adjustListOrder(i);e=[this.mainGuide,...e],o.equals(e,this.guidesList)||this.guideListChanged.emit(e)}async handleDeleteGuide(i,e){e.stopPropagation();const t=this.getMessage("snkFormConfig.confirm.title"),s=this.getMessage("snkFormConfig.confirm.deleteGuide").replace("{0}",i.label);if(!await a.confirm(t,s))return;this.guideDeleted.emit(i);const o=this.getMessage("snkFormConfig.info.successfullyGuideDeleted").replace("{0}",i.label);a.info(o)}renderItems(i){return n.applyStringFilter(this.filterTerm,i).map((i=>{var e;return t("div",{key:i.name,"data-guide-name":i.name,title:i.label,class:`guide-item ${(null===(e=this.selectedGuide)||void 0===e?void 0:e.label)===i.label?"selected":""} ${this.filterTerm.length?"disable-sort":""}`,onClick:e=>this.handleSelectGuide(i,e)},t("span",null,t("ez-icon",{iconName:"drag-indicator",class:"ez-margin-right--small"})),t("span",{class:"item-label"},i.label),t("div",{class:"actions"},t("ez-button",{mode:"icon",class:"ez-button--tertiary",onClick:e=>this.toggleGuideVisibility(i,e),size:"medium",iconName:i.visible?"eye-off":"eye",title:this.getMessage(i.visible?"snkFormConfig.guidesConfigurator.actions.hide":"snkFormConfig.guidesConfigurator.actions.show")}),t("ez-button",{mode:"icon",class:"ez-button--tertiary",onClick:e=>this.handleDeleteGuide(i,e),size:"medium",isDisabled:i.isCustom||i.isDetail,iconName:"delete",title:this.getMessage(i.isCustom||i.isDetail?"snkFormConfig.guidesConfigurator.canNotDeleteCustomGuide":"snkFormConfig.guidesConfigurator.actions.delete")})))}))}getContainerElement(i){return this.el.querySelector(`[id="${i}"]`)}handleSortGuide(){const i=[...this.getGuidesFromStatus(!0),...this.getGuidesFromStatus(!1)];this.applyGuidesUpdate(i)}getGuidesFromStatus(i){let e=[];return this.getOrderedGuideNames(i?this.ID_VISIBLE_GUIDES:this.ID_HIDDEN_GUIDES).forEach((t=>{const s=this.guidesList.find((i=>i.name===t));s&&e.push(Object.assign(Object.assign({},s),{visible:i}))})),e}getOrderedGuideNames(i){var e;const t=null===(e=this.getContainerElement(i))||void 0===e?void 0:e.children;return Array.from(t).map((i=>i.getAttribute("data-guide-name")))}initializeDraggableContainers(){this._sortableVisibleGuides=new r(this.getContainerElement(this.ID_VISIBLE_GUIDES),{group:"guides",ghostClass:"ghost",direction:"vertical",filter:".disable-sort",animation:15,onSort:()=>this.handleSortGuide()}),this._sortableInvisibleGuides=new r(this.getContainerElement(this.ID_HIDDEN_GUIDES),{group:"guides",ghostClass:"ghost",animation:15,filter:".disable-sort",onSort:()=>this.handleSortGuide()})}handleSelectMainGuide(){this.guideSelected.emit(this.mainGuide)}setCustomCSSProperties(){document.documentElement.style.setProperty("--no-hidden-guides-message",`"${this.getMessage("snkFormConfig.guidesConfigurator.noHiddenGuides")}"`),document.documentElement.style.setProperty("--no-visible-guides-message",`"${this.getMessage("snkFormConfig.guidesConfigurator.noVisibleGuides")}"`)}componentDidLoad(){this.initializeDraggableContainers(),this.initGuidesConfig(this.guidesList),this.setCustomCSSProperties()}render(){var i,e,s;return t("ez-sidebar-navigator",{class:"ezSidebarNavigator",type:"fixed",size:"md",titleMenu:this.getMessage("snkFormConfig.guidesConfigurator.title")},t("div",{class:"navigator-container"},t("ez-filter-input",{slot:"content",mode:"slim",label:this.getMessage("snkFormConfig.guidesConfigurator.searchGuide"),onEzChange:i=>this.filterTerm=i.detail}),t("div",{onClick:this.handleSelectMainGuide.bind(this),class:"main-guide "+((null===(i=this.selectedGuide)||void 0===i?void 0:i.name)===(null===(e=this.mainGuide)||void 0===e?void 0:e.name)?"selected":"")},t("span",null,null===(s=this.mainGuide)||void 0===s?void 0:s.label)),t("div",{class:"collapsible-container"},t("div",{class:"collapsible-item"},t("ez-collapsible-box",{label:this.getMessage("snkFormConfig.guidesConfigurator.visibleGuides"),headerSize:"large"},t("div",{id:this.ID_VISIBLE_GUIDES,class:"guide-list "+(this.visibleGuides.length?"":"visible-empty-content")},this.renderItems(this.visibleGuides)))),t("div",{class:"collapsible-item"},t("ez-collapsible-box",{label:this.getMessage("snkFormConfig.guidesConfigurator.hiddenGuides"),headerSize:"large"},t("div",{id:this.ID_HIDDEN_GUIDES,class:"guide-list "+(this.hiddenGuides.length?"":"hidden-empty-content")},this.renderItems(this.hiddenGuides))))),t("div",{class:"add-button-container",onClick:this.handleAddGuide.bind(this)},t("ez-icon",{slot:"leftIcon",iconName:"plus"}),t("span",null,this.getMessage("snkFormConfig.guidesConfigurator.createNewGuide")))))}get el(){return s(this)}static get watchers(){return{messagesBuilder:["onMessagesBuilderChange"],guidesList:["observeVisibleGuides"],selectedGuide:["observeSelectedGuide"]}}};l.style='.ezSidebarNavigator.sc-guides-configurator{--ez-sidebar-navigator--height:calc(100vh - 118px)}.navigator-container.sc-guides-configurator{height:calc(100vh - 175px);display:flex;flex-direction:column;justify-content:space-between}.collapsible-container.sc-guides-configurator{display:flex;flex-direction:column;gap:12px;flex-grow:1;max-height:calc(100vh - 240px);overflow:auto}.collapsible-item.sc-guides-configurator{padding:6px;border-radius:6px;border:1px solid #dce0e8}.add-button-container.sc-guides-configurator{display:flex;align-items:center;border-top:1px solid #dce0e8;padding-top:22px;gap:6px;cursor:pointer;justify-content:center}.add-button-container.sc-guides-configurator span.sc-guides-configurator{display:block}.guide-list.sc-guides-configurator{display:flex;flex-direction:column;width:100%;min-height:10px}.guide-list.hidden-empty-content.sc-guides-configurator::before{content:var(--no-hidden-guides-message, "Nenhuma guia oculta");display:block;font-size:16px;font-weight:400;color:#AFB6C0;margin:auto;padding:8px}.guide-list.visible-empty-content.sc-guides-configurator::before{content:var(--no-visible-guides-message, "Nenhuma guia visível");display:block;font-size:16px;font-weight:400;color:#AFB6C0;margin:auto;padding:8px}.item-label.sc-guides-configurator{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex-grow:1}.guide-item.sc-guides-configurator{margin:0 3px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:5px 10px;border-radius:6px;transition:all 0.2s ease-in-out;height:32px}.guide-item.sc-guides-configurator .actions.sc-guides-configurator{display:flex;gap:8px;transition:opacity 0.2s ease-in-out;display:none;opacity:0}.guide-item.sc-guides-configurator:hover .actions.sc-guides-configurator{display:flex;opacity:1}ez-button.sc-guides-configurator{width:24px;align-items:center;justify-content:center;display:flex}.ghost.sc-guides-configurator{opacity:.5;background:#e2eaf4}.main-guide.sc-guides-configurator{padding:12px;margin:12px 0;border:1px solid #dce0e8;border-radius:6px;transition:all 0.2s ease-in-out}.guide-item.selected.sc-guides-configurator,.main-guide.selected.sc-guides-configurator{background:#E2F4EF}.guide-item.sc-guides-configurator:hover,.main-guide.sc-guides-configurator:hover{background:#f5fcfa}';export{l as guides_configurator}