@sankhyalabs/sankhyablocks 8.16.0-rc.3 → 8.16.0-rc.31

Sign up to get free protection for your applications and to get access to all the features.
Files changed (909) hide show
  1. package/dist/cjs/AuthorizationConfig-79ffae4b.js.gz +0 -0
  2. package/dist/cjs/{ConfigStorage-a343e418.js → ConfigStorage-9b965af9.js} +2 -2
  3. package/dist/cjs/ConfigStorage-9b965af9.js.gz +0 -0
  4. package/dist/cjs/{IExporterProvider-597949f9.js → ContinuousInsertUtils-42636ac1.js} +64 -22
  5. package/dist/cjs/ContinuousInsertUtils-42636ac1.js.gz +0 -0
  6. package/dist/cjs/{DataFetcher-313debd8.js → DataFetcher-e059eb72.js} +28 -20
  7. package/dist/cjs/DataFetcher-e059eb72.js.gz +0 -0
  8. package/dist/cjs/{RecordIDUtils-3735135c.js → GetSelectedRecordsIDsInfo-bd50caf1.js} +10 -10
  9. package/dist/cjs/GetSelectedRecordsIDsInfo-bd50caf1.js.gz +0 -0
  10. package/dist/cjs/ISave-e91b70a7.js.gz +0 -0
  11. package/dist/cjs/ParamType-90b440a0.js.gz +0 -0
  12. package/dist/cjs/PersonalizedFilterUtils-0184ffbb.js.gz +0 -0
  13. package/dist/cjs/PrintUtils-bcaeb82f.js.gz +0 -0
  14. package/dist/cjs/ResourceIDUtils-5ff86aa7.js.gz +0 -0
  15. package/dist/cjs/{SnkFormConfigManager-166cbd1f.js → SnkFormConfigManager-51caf3d0.js} +72 -16
  16. package/dist/cjs/SnkFormConfigManager-51caf3d0.js.gz +0 -0
  17. package/dist/cjs/{SnkMessageBuilder-897ffd08.js → SnkMessageBuilder-bae64d0d.js} +6 -2
  18. package/dist/cjs/SnkMessageBuilder-bae64d0d.js.gz +0 -0
  19. package/dist/cjs/Sortable-fb1c4cbb.js.gz +0 -0
  20. package/dist/cjs/{auth-fetcher-54f5ff9d.js → auth-fetcher-a78242d1.js} +1 -1
  21. package/dist/cjs/auth-fetcher-a78242d1.js.gz +0 -0
  22. package/dist/cjs/constants-35ddd366.js.gz +0 -0
  23. package/dist/cjs/{dataunit-fetcher-688d3f05.js → dataunit-fetcher-228016f4.js} +48 -20
  24. package/dist/cjs/dataunit-fetcher-228016f4.js.gz +0 -0
  25. package/dist/cjs/{field-search-f56aa7d6.js → field-search-68e34bf4.js} +5 -1
  26. package/dist/cjs/field-search-68e34bf4.js.gz +0 -0
  27. package/dist/cjs/filter-item-type.enum-a7ffdaa6.js.gz +0 -0
  28. package/dist/cjs/filter-type.enum-b14ce507.js.gz +0 -0
  29. package/dist/cjs/filterNumberVariation-d65332da.js.gz +0 -0
  30. package/dist/cjs/{form-config-fetcher-2dd00e5b.js → form-config-fetcher-91fba2b1.js} +42 -2
  31. package/dist/cjs/form-config-fetcher-91fba2b1.js.gz +0 -0
  32. package/dist/cjs/index-102ba62d.js.gz +0 -0
  33. package/dist/cjs/index-1dfc7a6e.js.gz +0 -0
  34. package/dist/cjs/index-8d94b7e0.js.gz +0 -0
  35. package/dist/cjs/index-c5771aba.js.gz +0 -0
  36. package/dist/cjs/index-f9e81701.js +12 -32
  37. package/dist/cjs/index-f9e81701.js.gz +0 -0
  38. package/dist/cjs/index.cjs.js.gz +0 -0
  39. package/dist/cjs/loader.cjs.js +1 -1
  40. package/dist/cjs/loader.cjs.js.gz +0 -0
  41. package/dist/cjs/{pesquisa-fetcher-680e198f.js → pesquisa-fetcher-2ec4811b.js} +10 -2
  42. package/dist/cjs/pesquisa-fetcher-2ec4811b.js.gz +0 -0
  43. package/dist/cjs/presentationMode-52ec3bdd.js.gz +0 -0
  44. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  45. package/dist/cjs/sankhyablocks.cjs.js.gz +0 -0
  46. package/dist/cjs/{snk-actions-button_4.cjs.entry.js → snk-actions-button_5.cjs.entry.js} +130 -36
  47. package/dist/cjs/snk-actions-button_5.cjs.entry.js.gz +0 -0
  48. package/dist/cjs/snk-actions-form.cjs.entry.js.gz +0 -0
  49. package/dist/cjs/snk-application.cjs.entry.js +119 -61
  50. package/dist/cjs/snk-application.cjs.entry.js.gz +0 -0
  51. package/dist/cjs/snk-attach.cjs.entry.js +46 -33
  52. package/dist/cjs/snk-attach.cjs.entry.js.gz +0 -0
  53. package/dist/cjs/snk-client-confirm.cjs.entry.js.gz +0 -0
  54. package/dist/cjs/{snk-form-config.cjs.entry.js → snk-config-options_3.cjs.entry.js} +398 -12
  55. package/dist/cjs/snk-config-options_3.cjs.entry.js.gz +0 -0
  56. package/dist/cjs/snk-configurator.cjs.entry.js.gz +0 -0
  57. package/dist/cjs/snk-crud.cjs.entry.js +21 -8
  58. package/dist/cjs/snk-crud.cjs.entry.js.gz +0 -0
  59. package/dist/cjs/snk-custom-slot-elements.cjs.entry.js.gz +0 -0
  60. package/dist/cjs/snk-data-exporter.cjs.entry.js +23 -24
  61. package/dist/cjs/snk-data-exporter.cjs.entry.js.gz +0 -0
  62. package/dist/cjs/{snk-data-unit-8fa7917a.js → snk-data-unit-3d9b6ed4.js} +52 -30
  63. package/dist/cjs/snk-data-unit-3d9b6ed4.js.gz +0 -0
  64. package/dist/cjs/snk-data-unit.cjs.entry.js +5 -5
  65. package/dist/cjs/snk-data-unit.cjs.entry.js.gz +0 -0
  66. package/dist/cjs/snk-detail-view.cjs.entry.js +12 -12
  67. package/dist/cjs/snk-detail-view.cjs.entry.js.gz +0 -0
  68. package/dist/cjs/snk-entity-list.cjs.entry.js.gz +0 -0
  69. package/dist/cjs/snk-exporter-email-sender.cjs.entry.js +1 -1
  70. package/dist/cjs/snk-exporter-email-sender.cjs.entry.js.gz +0 -0
  71. package/dist/cjs/snk-expression-group_2.cjs.entry.js.gz +0 -0
  72. package/dist/cjs/snk-field-config.cjs.entry.js.gz +0 -0
  73. package/dist/cjs/snk-filter-advanced-mode_2.cjs.entry.js.gz +0 -0
  74. package/dist/cjs/snk-filter-bar_4.cjs.entry.js +1422 -0
  75. package/dist/cjs/snk-filter-bar_4.cjs.entry.js.gz +0 -0
  76. package/dist/cjs/snk-filter-binary-select.cjs.entry.js +1 -1
  77. package/dist/cjs/snk-filter-binary-select.cjs.entry.js.gz +0 -0
  78. package/dist/cjs/snk-filter-checkbox-list.cjs.entry.js +1 -1
  79. package/dist/cjs/snk-filter-checkbox-list.cjs.entry.js.gz +0 -0
  80. package/dist/cjs/snk-filter-detail.cjs.entry.js.gz +0 -0
  81. package/dist/cjs/snk-filter-field-search_2.cjs.entry.js.gz +0 -0
  82. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
  83. package/dist/cjs/snk-filter-modal-item.cjs.entry.js.gz +0 -0
  84. package/dist/cjs/snk-filter-multi-select.cjs.entry.js.gz +0 -0
  85. package/dist/cjs/snk-filter-number.cjs.entry.js.gz +0 -0
  86. package/dist/cjs/snk-filter-period.cjs.entry.js.gz +0 -0
  87. package/dist/cjs/snk-filter-search.cjs.entry.js.gz +0 -0
  88. package/dist/cjs/snk-filter-text.cjs.entry.js +2 -1
  89. package/dist/cjs/snk-filter-text.cjs.entry.js.gz +0 -0
  90. package/dist/cjs/snk-form-summary.cjs.entry.js.gz +0 -0
  91. package/dist/cjs/snk-form-view.cjs.entry.js.gz +0 -0
  92. package/dist/cjs/snk-grid.cjs.entry.js +67 -21
  93. package/dist/cjs/snk-grid.cjs.entry.js.gz +0 -0
  94. package/dist/cjs/{snk-guides-viewer-bdc41281.js → snk-guides-viewer-421555af.js} +29 -13
  95. package/dist/cjs/snk-guides-viewer-421555af.js.gz +0 -0
  96. package/dist/cjs/snk-guides-viewer.cjs.entry.js +9 -9
  97. package/dist/cjs/snk-guides-viewer.cjs.entry.js.gz +0 -0
  98. package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js +4 -4
  99. package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js.gz +0 -0
  100. package/dist/cjs/snk-personalized-filter.cjs.entry.js +3 -3
  101. package/dist/cjs/snk-personalized-filter.cjs.entry.js.gz +0 -0
  102. package/dist/cjs/snk-pesquisa.cjs.entry.js.gz +0 -0
  103. package/dist/cjs/snk-print-selector.cjs.entry.js +1 -1
  104. package/dist/cjs/snk-print-selector.cjs.entry.js.gz +0 -0
  105. package/dist/cjs/snk-simple-bar.cjs.entry.js +1 -1
  106. package/dist/cjs/snk-simple-bar.cjs.entry.js.gz +0 -0
  107. package/dist/cjs/snk-simple-crud.cjs.entry.js +100 -44
  108. package/dist/cjs/snk-simple-crud.cjs.entry.js.gz +0 -0
  109. package/dist/cjs/snk-tab-config.cjs.entry.js.gz +0 -0
  110. package/dist/cjs/snk-taskbar.cjs.entry.js +64 -38
  111. package/dist/cjs/snk-taskbar.cjs.entry.js.gz +0 -0
  112. package/dist/cjs/taskbar-elements-9ad1f9c0.js.gz +0 -0
  113. package/dist/cjs/teste-pesquisa.cjs.entry.js.gz +0 -0
  114. package/dist/collection/collection-manifest.json +12 -31
  115. package/dist/collection/components/snk-actions-button/actions/enum/ActionsType.js.gz +0 -0
  116. package/dist/collection/components/snk-actions-button/actions/enum/ParamType.js.gz +0 -0
  117. package/dist/collection/components/snk-actions-button/actions/enum/RefreshType.js.gz +0 -0
  118. package/dist/collection/components/snk-actions-button/actions/executor/java.executor.js.gz +0 -0
  119. package/dist/collection/components/snk-actions-button/actions/executor/javascript.executor.js.gz +0 -0
  120. package/dist/collection/components/snk-actions-button/actions/executor/launch-screen.executor.js.gz +0 -0
  121. package/dist/collection/components/snk-actions-button/actions/executor/procedure.executor.js.gz +0 -0
  122. package/dist/collection/components/snk-actions-button/actions/factory/executor.factory.js.gz +0 -0
  123. package/dist/collection/components/snk-actions-button/actions/index.js +12 -9
  124. package/dist/collection/components/snk-actions-button/actions/index.js.gz +0 -0
  125. package/dist/collection/components/snk-actions-button/actions/interfaces/IAction.js.gz +0 -0
  126. package/dist/collection/components/snk-actions-button/actions/interfaces/IExecSource.js.gz +0 -0
  127. package/dist/collection/components/snk-actions-button/actions/interfaces/IExecuteActions.js.gz +0 -0
  128. package/dist/collection/components/snk-actions-button/actions/interfaces/IExecuteActionsProps.js.gz +0 -0
  129. package/dist/collection/components/snk-actions-button/actions/interfaces/IResultParam.js.gz +0 -0
  130. package/dist/collection/components/snk-actions-button/clientEvent/index.js.gz +0 -0
  131. package/dist/collection/components/snk-actions-button/clientEvent/interfaces/IClientEventConfirm.js.gz +0 -0
  132. package/dist/collection/components/snk-actions-button/interfaces/index.js +1 -0
  133. package/dist/collection/components/snk-actions-button/interfaces/index.js.gz +0 -0
  134. package/dist/collection/components/snk-actions-button/snk-actions-button.css.gz +0 -0
  135. package/dist/collection/components/snk-actions-button/snk-actions-button.js +27 -26
  136. package/dist/collection/components/snk-actions-button/snk-actions-button.js.gz +0 -0
  137. package/dist/collection/components/snk-actions-button/subcomponents/snk-actions-form.js.gz +0 -0
  138. package/dist/collection/components/snk-actions-button/subcomponents/snk-client-confirm.js.gz +0 -0
  139. package/dist/collection/components/snk-application/__mocks__/snk-application.js.gz +0 -0
  140. package/dist/collection/components/snk-application/errorhandler/snk-error-handler.js.gz +0 -0
  141. package/dist/collection/components/snk-application/request-listener/DebouncedRequestListener.js +28 -0
  142. package/dist/collection/components/snk-application/request-listener/DebouncedRequestListener.js.gz +0 -0
  143. package/dist/collection/components/snk-application/request-listener/RequestListenerFactory.js +16 -0
  144. package/dist/collection/components/snk-application/request-listener/RequestListenerFactory.js.gz +0 -0
  145. package/dist/collection/components/snk-application/request-listener/RequestListenerLoadingBar.js +52 -0
  146. package/dist/collection/components/snk-application/request-listener/RequestListenerLoadingBar.js.gz +0 -0
  147. package/dist/collection/components/snk-application/snk-application.css.gz +0 -0
  148. package/dist/collection/components/snk-application/snk-application.js +44 -54
  149. package/dist/collection/components/snk-application/snk-application.js.gz +0 -0
  150. package/dist/collection/components/snk-attach/interfaces/ICrudConfig.js.gz +0 -0
  151. package/dist/collection/components/snk-attach/interfaces/TFetcherType.js.gz +0 -0
  152. package/dist/collection/components/snk-attach/interfaces/index.js.gz +0 -0
  153. package/dist/collection/components/snk-attach/snk-attach.css.gz +0 -0
  154. package/dist/collection/components/snk-attach/snk-attach.js +25 -16
  155. package/dist/collection/components/snk-attach/snk-attach.js.gz +0 -0
  156. package/dist/collection/components/snk-attach/structure/builder/anexo-sistema-crud-config.builder.js.gz +0 -0
  157. package/dist/collection/components/snk-attach/structure/builder/attach-crud-config.builder.js.gz +0 -0
  158. package/dist/collection/components/snk-attach/structure/builder/taskbar-builder.js +8 -4
  159. package/dist/collection/components/snk-attach/structure/builder/taskbar-builder.js.gz +0 -0
  160. package/dist/collection/components/snk-attach/structure/fetcher/facade/fetcher.facade.js.gz +0 -0
  161. package/dist/collection/components/snk-attach/structure/fetcher/factory/anexo-sistema-data-unit.factory.js.gz +0 -0
  162. package/dist/collection/components/snk-attach/structure/fetcher/factory/attach-fetcher-data-unit.factory.js +2 -4
  163. package/dist/collection/components/snk-attach/structure/fetcher/factory/attach-fetcher-data-unit.factory.js.gz +0 -0
  164. package/dist/collection/components/snk-attach/structure/index.js.gz +0 -0
  165. package/dist/collection/components/snk-configurator/AuthorizationConfig.js.gz +0 -0
  166. package/dist/collection/components/snk-configurator/snk-configurator.css.gz +0 -0
  167. package/dist/collection/components/snk-configurator/snk-configurator.js.gz +0 -0
  168. package/dist/collection/components/snk-crud/interfaces/PropsCustomEditor.js.gz +0 -0
  169. package/dist/collection/components/snk-crud/interfaces/PropsCustomRender.js.gz +0 -0
  170. package/dist/collection/components/snk-crud/snk-crud.css.gz +0 -0
  171. package/dist/collection/components/snk-crud/snk-crud.js +103 -3
  172. package/dist/collection/components/snk-crud/snk-crud.js.gz +0 -0
  173. package/dist/collection/components/snk-crud/subcomponents/CardFormResizeObserver.js.gz +0 -0
  174. package/dist/collection/components/snk-crud/subcomponents/GuideBuilder.js.gz +0 -0
  175. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.css.gz +0 -0
  176. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +3 -3
  177. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js.gz +0 -0
  178. package/dist/collection/components/snk-crud/subcomponents/snk-form-summary.css.gz +0 -0
  179. package/dist/collection/components/snk-crud/subcomponents/snk-form-summary.js.gz +0 -0
  180. package/dist/collection/components/snk-crud/subcomponents/snk-form-view.css.gz +0 -0
  181. package/dist/collection/components/snk-crud/subcomponents/snk-form-view.js.gz +0 -0
  182. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.css +6 -6
  183. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.css.gz +0 -0
  184. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +72 -6
  185. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js.gz +0 -0
  186. package/dist/collection/components/snk-custom-slot-elements/snk-custom-slot-elements.css.gz +0 -0
  187. package/dist/collection/components/snk-custom-slot-elements/snk-custom-slot-elements.js.gz +0 -0
  188. package/dist/collection/components/snk-data-exporter/data/attachment.js.gz +0 -0
  189. package/dist/collection/components/snk-data-exporter/data/email.js.gz +0 -0
  190. package/dist/collection/components/snk-data-exporter/data/export-config.js.gz +0 -0
  191. package/dist/collection/components/snk-data-exporter/data/export-result.js.gz +0 -0
  192. package/dist/collection/components/snk-data-exporter/data/report.js.gz +0 -0
  193. package/dist/collection/components/snk-data-exporter/exporter-email-sender/email-info-step.js.gz +0 -0
  194. package/dist/collection/components/snk-data-exporter/exporter-email-sender/options-step.js +1 -1
  195. package/dist/collection/components/snk-data-exporter/exporter-email-sender/options-step.js.gz +0 -0
  196. package/dist/collection/components/snk-data-exporter/exporter-email-sender/snk-exporter-email-sender.js.gz +0 -0
  197. package/dist/collection/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.js +7 -7
  198. package/dist/collection/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.js.gz +0 -0
  199. package/dist/collection/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.js +5 -5
  200. package/dist/collection/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.js.gz +0 -0
  201. package/dist/collection/components/snk-data-exporter/interfaces/IExporterProvider.js.gz +0 -0
  202. package/dist/collection/components/snk-data-exporter/interfaces/IExporterStrategy.js.gz +0 -0
  203. package/dist/collection/components/snk-data-exporter/interfaces/IRecordID.js.gz +0 -0
  204. package/dist/collection/components/snk-data-exporter/interfaces/ISelectedID.js.gz +0 -0
  205. package/dist/collection/components/snk-data-exporter/providers/ClientSideExporterProvider.js +1 -1
  206. package/dist/collection/components/snk-data-exporter/providers/ClientSideExporterProvider.js.gz +0 -0
  207. package/dist/collection/components/snk-data-exporter/providers/ServerSideExporterProvider.js +1 -1
  208. package/dist/collection/components/snk-data-exporter/providers/ServerSideExporterProvider.js.gz +0 -0
  209. package/dist/collection/components/snk-data-exporter/snk-data-exporter.css.gz +0 -0
  210. package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +3 -5
  211. package/dist/collection/components/snk-data-exporter/snk-data-exporter.js.gz +0 -0
  212. package/dist/collection/components/snk-data-exporter/structure/ItemBuilder.js +2 -2
  213. package/dist/collection/components/snk-data-exporter/structure/ItemBuilder.js.gz +0 -0
  214. package/dist/collection/components/snk-data-exporter/test/resources/ClientSideExporterStrategyResources.js +4 -4
  215. package/dist/collection/components/snk-data-exporter/test/resources/ClientSideExporterStrategyResources.js.gz +0 -0
  216. package/dist/collection/components/snk-data-exporter/utils/ParserExport.js.gz +0 -0
  217. package/dist/collection/components/snk-data-unit/snk-data-unit.js +50 -28
  218. package/dist/collection/components/snk-data-unit/snk-data-unit.js.gz +0 -0
  219. package/dist/collection/components/snk-data-unit/test/resources/metadataMock.js.gz +0 -0
  220. package/dist/collection/components/snk-data-unit/test/resources/parentMetadataMock.js.gz +0 -0
  221. package/dist/collection/components/snk-entity-list/snk-entity-list.css.gz +0 -0
  222. package/dist/collection/components/snk-entity-list/snk-entity-list.js.gz +0 -0
  223. package/dist/collection/components/snk-filter-bar/filter-item/dataunitfilter/data-unit-filter-builder.js.gz +0 -0
  224. package/dist/collection/components/snk-filter-bar/filter-item/editors/enum/filterNumberVariation.js.gz +0 -0
  225. package/dist/collection/components/snk-filter-bar/filter-item/editors/enum/presentationMode.js.gz +0 -0
  226. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.js +1 -1
  227. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.js.gz +0 -0
  228. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-checkbox-list.js +1 -1
  229. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-checkbox-list.js.gz +0 -0
  230. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.js.gz +0 -0
  231. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js.gz +0 -0
  232. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js.gz +0 -0
  233. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-search.js.gz +0 -0
  234. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-text.js +2 -1
  235. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-text.js.gz +0 -0
  236. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.css +13 -0
  237. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.css.gz +0 -0
  238. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.js +3 -3
  239. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.js.gz +0 -0
  240. package/dist/collection/components/snk-filter-bar/filter-item/filter-item-type-mask.enum.js +8 -0
  241. package/dist/collection/components/snk-filter-bar/filter-item/filter-item-type-mask.enum.js.gz +0 -0
  242. package/dist/collection/components/snk-filter-bar/filter-item/filter-item-type.enum.js.gz +0 -0
  243. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js.gz +0 -0
  244. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +5 -1
  245. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js.gz +0 -0
  246. package/dist/collection/components/snk-filter-bar/filter-list/snk-filter-list.js.gz +0 -0
  247. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.css.gz +0 -0
  248. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +3 -1
  249. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js.gz +0 -0
  250. package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.css.gz +0 -0
  251. package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.js.gz +0 -0
  252. package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +1 -1
  253. package/dist/collection/components/snk-filter-bar/snk-filter-bar.css.gz +0 -0
  254. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +79 -21
  255. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js.gz +0 -0
  256. package/dist/collection/components/snk-filter-bar/types/custom-element-filter.js.gz +0 -0
  257. package/dist/collection/components/snk-filter-bar/types/filter-type.enum.js.gz +0 -0
  258. package/dist/collection/components/snk-filter-bar/utils/SnkFilterModalFactory.js.gz +0 -0
  259. package/dist/collection/components/snk-filter-bar/utils/filters-mock.js.gz +0 -0
  260. package/dist/collection/components/snk-filter-field-search/interfaces/index.js.gz +0 -0
  261. package/dist/collection/components/snk-filter-field-search/snk-filter-field-search.css.gz +0 -0
  262. package/dist/collection/components/snk-filter-field-search/snk-filter-field-search.js.gz +0 -0
  263. package/dist/collection/components/snk-filter-field-search/subcomponents/index.js.gz +0 -0
  264. package/dist/collection/components/snk-filter-field-search/subcomponents/list-item.js.gz +0 -0
  265. package/dist/collection/components/snk-form/snk-form.css.gz +0 -0
  266. package/dist/collection/components/snk-form/snk-form.js +2 -2
  267. package/dist/collection/components/snk-form/snk-form.js.gz +0 -0
  268. package/dist/collection/components/snk-form-config/SnkFormConfigManager.js +70 -14
  269. package/dist/collection/components/snk-form-config/SnkFormConfigManager.js.gz +0 -0
  270. package/dist/collection/components/snk-form-config/snk-form-config.css +8 -3
  271. package/dist/collection/components/snk-form-config/snk-form-config.css.gz +0 -0
  272. package/dist/collection/components/snk-form-config/snk-form-config.js +49 -8
  273. package/dist/collection/components/snk-form-config/snk-form-config.js.gz +0 -0
  274. package/dist/collection/components/snk-form-config/subcomponents/snk-config-options/snk-config-options.css.gz +0 -0
  275. package/dist/collection/components/snk-form-config/subcomponents/snk-config-options/snk-config-options.js.gz +0 -0
  276. package/dist/collection/components/snk-form-config/subcomponents/snk-field-config/snk-field-config.css.gz +0 -0
  277. package/dist/collection/components/snk-form-config/subcomponents/snk-field-config/snk-field-config.js.gz +0 -0
  278. package/dist/collection/components/snk-form-config/subcomponents/snk-tab-config/snk-tab-config.css.gz +0 -0
  279. package/dist/collection/components/snk-form-config/subcomponents/snk-tab-config/snk-tab-config.js.gz +0 -0
  280. package/dist/collection/components/snk-grid/filtercolumn/SnkMultiSelectionListDataSource.js.gz +0 -0
  281. package/dist/collection/components/snk-grid/snk-grid.css +2 -0
  282. package/dist/collection/components/snk-grid/snk-grid.css.gz +0 -0
  283. package/dist/collection/components/snk-grid/snk-grid.js +119 -8
  284. package/dist/collection/components/snk-grid/snk-grid.js.gz +0 -0
  285. package/dist/collection/components/snk-grid-config/snk-grid-config.css.gz +0 -0
  286. package/dist/collection/components/snk-grid-config/snk-grid-config.js.gz +0 -0
  287. package/dist/collection/components/snk-grid-config/snk-select-box/snk-select-box.css.gz +0 -0
  288. package/dist/collection/components/snk-grid-config/snk-select-box/snk-select-box.js.gz +0 -0
  289. package/dist/collection/components/snk-personalized-filter/interfaces/IExpressionGroup.js.gz +0 -0
  290. package/dist/collection/components/snk-personalized-filter/interfaces/IExpressionItem.js.gz +0 -0
  291. package/dist/collection/components/snk-personalized-filter/interfaces/IParameter.js.gz +0 -0
  292. package/dist/collection/components/snk-personalized-filter/interfaces/IPersonalizedFilter.js.gz +0 -0
  293. package/dist/collection/components/snk-personalized-filter/interfaces/ISystemFilterConfig.js.gz +0 -0
  294. package/dist/collection/components/snk-personalized-filter/interfaces/IUserFilterConfig.js.gz +0 -0
  295. package/dist/collection/components/snk-personalized-filter/interfaces/index.js.gz +0 -0
  296. package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.css.gz +0 -0
  297. package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js.gz +0 -0
  298. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.css.gz +0 -0
  299. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.js.gz +0 -0
  300. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/filter-operands/filter-operands.js.gz +0 -0
  301. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.css.gz +0 -0
  302. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.js.gz +0 -0
  303. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-advanced-mode/snk-filter-advanced-mode.css.gz +0 -0
  304. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-advanced-mode/snk-filter-advanced-mode.js.gz +0 -0
  305. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-assistent-mode/snk-filter-assistent-mode.css.gz +0 -0
  306. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-assistent-mode/snk-filter-assistent-mode.js.gz +0 -0
  307. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/snk-filter-param-config.css.gz +0 -0
  308. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/snk-filter-param-config.js.gz +0 -0
  309. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/utils/PersonalizedFilterUtils.js.gz +0 -0
  310. package/dist/collection/components/snk-pesquisa/snk-pesquisa.css.gz +0 -0
  311. package/dist/collection/components/snk-pesquisa/snk-pesquisa.js.gz +0 -0
  312. package/dist/collection/components/snk-print-selector/snk-print-selector.css.gz +0 -0
  313. package/dist/collection/components/snk-print-selector/snk-print-selector.js +1 -1
  314. package/dist/collection/components/snk-print-selector/snk-print-selector.js.gz +0 -0
  315. package/dist/collection/components/snk-simple-bar/snk-simple-bar.css.gz +0 -0
  316. package/dist/collection/components/snk-simple-bar/snk-simple-bar.js +1 -1
  317. package/dist/collection/components/snk-simple-bar/snk-simple-bar.js.gz +0 -0
  318. package/dist/collection/components/snk-simple-crud/regular-buttons.js.gz +0 -0
  319. package/dist/collection/components/snk-simple-crud/snk-simple-crud.css +1 -1
  320. package/dist/collection/components/snk-simple-crud/snk-simple-crud.css.gz +0 -0
  321. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +145 -35
  322. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js.gz +0 -0
  323. package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.css +22 -0
  324. package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.css.gz +0 -0
  325. package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.js +179 -0
  326. package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.js.gz +0 -0
  327. package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.css.gz +0 -0
  328. package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.js.gz +0 -0
  329. package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js.gz +0 -0
  330. package/dist/collection/components/snk-taskbar/processor/taskbar-processor.js +5 -1
  331. package/dist/collection/components/snk-taskbar/processor/taskbar-processor.js.gz +0 -0
  332. package/dist/collection/components/snk-taskbar/snk-taskbar.css.gz +0 -0
  333. package/dist/collection/components/snk-taskbar/snk-taskbar.js +106 -38
  334. package/dist/collection/components/snk-taskbar/snk-taskbar.js.gz +0 -0
  335. package/dist/collection/components/snk-taskbar/subcomponents/field-search.js.gz +0 -0
  336. package/dist/collection/components/teste-pesquisa/teste-pesquisa.css.gz +0 -0
  337. package/dist/collection/components/teste-pesquisa/teste-pesquisa.js.gz +0 -0
  338. package/dist/collection/index.js.gz +0 -0
  339. package/dist/collection/lib/@types/index.js.gz +0 -0
  340. package/dist/collection/lib/DefaultCustomFormatters/RmPrecisionCustomValueFormatter.js +3 -3
  341. package/dist/collection/lib/DefaultCustomFormatters/RmPrecisionCustomValueFormatter.js.gz +0 -0
  342. package/dist/collection/lib/applet-caller/applet-caller.js.gz +0 -0
  343. package/dist/collection/lib/auth/mgeauthorization.module.js.gz +0 -0
  344. package/dist/collection/lib/configs/ConfigStorage.js.gz +0 -0
  345. package/dist/collection/lib/dataUnit/InMemoryLoader.js +2 -4
  346. package/dist/collection/lib/dataUnit/InMemoryLoader.js.gz +0 -0
  347. package/dist/collection/lib/dataUnit/ValueFormatter.js.gz +0 -0
  348. package/dist/collection/lib/dataUnit/dataUnitInMemoryUtils.js +34 -9
  349. package/dist/collection/lib/dataUnit/dataUnitInMemoryUtils.js.gz +0 -0
  350. package/dist/collection/lib/dataUnit/interfaces/InMemoryLoaderConfig.js.gz +0 -0
  351. package/dist/collection/lib/http/data-fetcher/DataFetcher.js +29 -21
  352. package/dist/collection/lib/http/data-fetcher/DataFetcher.js.gz +0 -0
  353. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/anexo-sistema-fetcher.js +7 -5
  354. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/anexo-sistema-fetcher.js.gz +0 -0
  355. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/attach-fetcher.js.gz +0 -0
  356. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/facade/attach-fetcher.facade.js.gz +0 -0
  357. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/index.js.gz +0 -0
  358. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/interfaces/IDelete.js.gz +0 -0
  359. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/interfaces/IDownloadKey.js.gz +0 -0
  360. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/interfaces/ISave.js.gz +0 -0
  361. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/interfaces/index.js.gz +0 -0
  362. package/dist/collection/lib/http/data-fetcher/fetchers/application-config-fetcher.js.gz +0 -0
  363. package/dist/collection/lib/http/data-fetcher/fetchers/auth-fetcher.js.gz +0 -0
  364. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/DataUnitDataLoader.js +2 -2
  365. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/DataUnitDataLoader.js.gz +0 -0
  366. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/ArrayRepository.js.gz +0 -0
  367. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.js.gz +0 -0
  368. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/dataunit-fetcher.js.gz +0 -0
  369. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IBuildRequestBodyLoadRowMetadata.js.gz +0 -0
  370. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/ILoadDataResult.js.gz +0 -0
  371. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/ILoadDataStrategy.js.gz +0 -0
  372. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/ILoadingInfo.js.gz +0 -0
  373. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IRecordField.js.gz +0 -0
  374. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IResponseRecord.js.gz +0 -0
  375. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IRowMetadata.js.gz +0 -0
  376. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DataUnitStrategy.js.gz +0 -0
  377. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js +9 -2
  378. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js.gz +0 -0
  379. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/test/resources/metadataMock.js.gz +0 -0
  380. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IExporterColumnMetadata.js.gz +0 -0
  381. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterParams.js.gz +0 -0
  382. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterResponse.js.gz +0 -0
  383. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IPersonalizedReport.js.gz +0 -0
  384. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/permission-export-pdf.js.gz +0 -0
  385. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/personalized-reports-fetcher.js.gz +0 -0
  386. package/dist/collection/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.js.gz +0 -0
  387. package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +45 -5
  388. package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js.gz +0 -0
  389. package/dist/collection/lib/http/data-fetcher/fetchers/grid-config-fetcher.js.gz +0 -0
  390. package/dist/collection/lib/http/data-fetcher/fetchers/parameters-fecher.js +7 -1
  391. package/dist/collection/lib/http/data-fetcher/fetchers/parameters-fecher.js.gz +0 -0
  392. package/dist/collection/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.js.gz +0 -0
  393. package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +10 -2
  394. package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js.gz +0 -0
  395. package/dist/collection/lib/http/data-fetcher/fetchers/resource-fetcher.js.gz +0 -0
  396. package/dist/collection/lib/http/data-fetcher/fetchers/totals-fetcher.js.gz +0 -0
  397. package/dist/collection/lib/http/data-fetcher/interfaces/IClientEventResponse.js.gz +0 -0
  398. package/dist/collection/lib/http/data-fetcher/recaller/GraphQLRecaller.js.gz +0 -0
  399. package/dist/collection/lib/http/data-fetcher/recaller/IDataFetcherRecaller.js.gz +0 -0
  400. package/dist/collection/lib/http/data-fetcher/recaller/ServiceBrokerRecaller.js.gz +0 -0
  401. package/dist/collection/lib/http/data-fetcher/state/LoadStateManager.js.gz +0 -0
  402. package/dist/collection/lib/index.js.gz +0 -0
  403. package/dist/collection/lib/licenses/sankhyalicense.module.js.gz +0 -0
  404. package/dist/collection/lib/message/SnkMessageBuilder.js.gz +0 -0
  405. package/dist/collection/lib/message/resources/crud-utils.msg.js.gz +0 -0
  406. package/dist/collection/lib/message/resources/file-viewer.msg.js.gz +0 -0
  407. package/dist/collection/lib/message/resources/snk-actions-button.msg.js.gz +0 -0
  408. package/dist/collection/lib/message/resources/snk-application.msg.js.gz +0 -0
  409. package/dist/collection/lib/message/resources/snk-attach.msg.js.gz +0 -0
  410. package/dist/collection/lib/message/resources/snk-configurator.msg.js.gz +0 -0
  411. package/dist/collection/lib/message/resources/snk-crud.msg.js.gz +0 -0
  412. package/dist/collection/lib/message/resources/snk-data-exporter.msg.js.gz +0 -0
  413. package/dist/collection/lib/message/resources/snk-data-unit.msg.js.gz +0 -0
  414. package/dist/collection/lib/message/resources/snk-entity-list.msg.js.gz +0 -0
  415. package/dist/collection/lib/message/resources/snk-exporter.msg.js +1 -1
  416. package/dist/collection/lib/message/resources/snk-exporter.msg.js.gz +0 -0
  417. package/dist/collection/lib/message/resources/snk-filter-bar.msg.js.gz +0 -0
  418. package/dist/collection/lib/message/resources/snk-filter-field-search.msg.js.gz +0 -0
  419. package/dist/collection/lib/message/resources/snk-filter-param-config.msg.js.gz +0 -0
  420. package/dist/collection/lib/message/resources/snk-form.msg.js.gz +0 -0
  421. package/dist/collection/lib/message/resources/snk-grid.msg.js +5 -1
  422. package/dist/collection/lib/message/resources/snk-grid.msg.js.gz +0 -0
  423. package/dist/collection/lib/message/resources/snk-personalized-filter.msg.js.gz +0 -0
  424. package/dist/collection/lib/message/resources/snk-print-selector.msg.js.gz +0 -0
  425. package/dist/collection/lib/message/resources/snk-simple-bar.msg.js.gz +0 -0
  426. package/dist/collection/lib/message/resources/snk-simple-crud.msg.js.gz +0 -0
  427. package/dist/collection/lib/message/resources/snk-taskbar.msg.js.gz +0 -0
  428. package/dist/collection/lib/resourceid/ResourceIDUtils.js.gz +0 -0
  429. package/dist/collection/lib/store/index.js.gz +0 -0
  430. package/dist/collection/lib/utils/ContinuousInsertUtils.js +31 -0
  431. package/dist/collection/lib/utils/ContinuousInsertUtils.js.gz +0 -0
  432. package/dist/collection/lib/utils/CrudUtils.js +25 -16
  433. package/dist/collection/lib/utils/CrudUtils.js.gz +0 -0
  434. package/dist/collection/{components/snk-data-exporter/utils/RecordIDUtils.js → lib/utils/GetSelectedRecordsIDsInfo.js} +9 -9
  435. package/dist/collection/lib/utils/GetSelectedRecordsIDsInfo.js.gz +0 -0
  436. package/dist/collection/lib/utils/PrintUtils.js.gz +0 -0
  437. package/dist/collection/lib/utils/constants.js.gz +0 -0
  438. package/dist/collection/lib/utils/fileViewer/index.js.gz +0 -0
  439. package/dist/collection/lib/utils/fileViewer/interfaces/IFileViewerParams.js.gz +0 -0
  440. package/dist/collection/lib/utils/pesquisa.js.gz +0 -0
  441. package/dist/collection/lib/utils/urlutils.js.gz +0 -0
  442. package/dist/collection/lib/workspace/workspace.js.gz +0 -0
  443. package/dist/collection/sw.js +46 -0
  444. package/dist/collection/sw.js.gz +0 -0
  445. package/dist/components/AuthorizationConfig.js.gz +0 -0
  446. package/dist/components/ConfigStorage.js.gz +0 -0
  447. package/dist/components/{IExporterProvider.js → ContinuousInsertUtils.js} +65 -21
  448. package/dist/components/ContinuousInsertUtils.js.gz +0 -0
  449. package/dist/components/DataFetcher.js +29 -21
  450. package/dist/components/DataFetcher.js.gz +0 -0
  451. package/dist/{esm/RecordIDUtils-87d02110.js → components/GetSelectedRecordsIDsInfo.js} +10 -10
  452. package/dist/components/GetSelectedRecordsIDsInfo.js.gz +0 -0
  453. package/dist/components/ISave.js.gz +0 -0
  454. package/dist/components/ParamType.js.gz +0 -0
  455. package/dist/components/PersonalizedFilterUtils.js.gz +0 -0
  456. package/dist/components/PrintUtils.js.gz +0 -0
  457. package/dist/components/ResourceIDUtils.js.gz +0 -0
  458. package/dist/components/SnkFormConfigManager.js +70 -14
  459. package/dist/components/SnkFormConfigManager.js.gz +0 -0
  460. package/dist/components/SnkMessageBuilder.js +6 -2
  461. package/dist/components/SnkMessageBuilder.js.gz +0 -0
  462. package/dist/components/auth-fetcher.js.gz +0 -0
  463. package/dist/components/constants.js.gz +0 -0
  464. package/dist/components/dataunit-fetcher.js +47 -17
  465. package/dist/components/dataunit-fetcher.js.gz +0 -0
  466. package/dist/components/filter-item-type.enum.js.gz +0 -0
  467. package/dist/components/filterNumberVariation.js.gz +0 -0
  468. package/dist/components/form-config-fetcher.js +41 -1
  469. package/dist/components/form-config-fetcher.js.gz +0 -0
  470. package/dist/components/index.d.ts +1 -0
  471. package/dist/components/index.js +1 -0
  472. package/dist/components/index.js.gz +0 -0
  473. package/dist/components/index2.js.gz +0 -0
  474. package/dist/components/pesquisa-fetcher.js +10 -2
  475. package/dist/components/pesquisa-fetcher.js.gz +0 -0
  476. package/dist/components/presentationMode.js.gz +0 -0
  477. package/dist/components/snk-actions-button.js.gz +0 -0
  478. package/dist/components/snk-actions-button2.js +39 -35
  479. package/dist/components/snk-actions-button2.js.gz +0 -0
  480. package/dist/components/snk-actions-form.js.gz +0 -0
  481. package/dist/components/snk-application.js.gz +0 -0
  482. package/dist/components/snk-application2.js +114 -55
  483. package/dist/components/snk-application2.js.gz +0 -0
  484. package/dist/components/snk-attach.js.gz +0 -0
  485. package/dist/components/snk-attach2.js +54 -59
  486. package/dist/components/snk-attach2.js.gz +0 -0
  487. package/dist/components/snk-client-confirm.js.gz +0 -0
  488. package/dist/components/snk-config-options.js.gz +0 -0
  489. package/dist/components/snk-config-options2.js.gz +0 -0
  490. package/dist/components/snk-configurator.js.gz +0 -0
  491. package/dist/components/snk-configurator2.js.gz +0 -0
  492. package/dist/components/snk-crud.js +81 -58
  493. package/dist/components/snk-crud.js.gz +0 -0
  494. package/dist/components/snk-custom-slot-elements.js.gz +0 -0
  495. package/dist/components/snk-data-exporter.js.gz +0 -0
  496. package/dist/components/snk-data-exporter2.js +16 -17
  497. package/dist/components/snk-data-exporter2.js.gz +0 -0
  498. package/dist/components/snk-data-unit.js.gz +0 -0
  499. package/dist/components/snk-data-unit2.js +53 -68
  500. package/dist/components/snk-data-unit2.js.gz +0 -0
  501. package/dist/components/snk-detail-view.js.gz +0 -0
  502. package/dist/components/snk-detail-view2.js +114 -104
  503. package/dist/components/snk-detail-view2.js.gz +0 -0
  504. package/dist/components/snk-entity-list.js.gz +0 -0
  505. package/dist/components/snk-exporter-email-sender.js.gz +0 -0
  506. package/dist/components/snk-exporter-email-sender2.js +1 -1
  507. package/dist/components/snk-exporter-email-sender2.js.gz +0 -0
  508. package/dist/components/snk-expression-group.js.gz +0 -0
  509. package/dist/components/snk-expression-group2.js.gz +0 -0
  510. package/dist/components/snk-expression-item.js.gz +0 -0
  511. package/dist/components/snk-expression-item2.js.gz +0 -0
  512. package/dist/components/snk-field-config.js.gz +0 -0
  513. package/dist/components/snk-field-config2.js.gz +0 -0
  514. package/dist/components/snk-filter-advanced-mode.js.gz +0 -0
  515. package/dist/components/snk-filter-advanced-mode2.js.gz +0 -0
  516. package/dist/components/snk-filter-assistent-mode.js.gz +0 -0
  517. package/dist/components/snk-filter-assistent-mode2.js.gz +0 -0
  518. package/dist/components/snk-filter-bar.js.gz +0 -0
  519. package/dist/components/snk-filter-bar2.js +41 -22
  520. package/dist/components/snk-filter-bar2.js.gz +0 -0
  521. package/dist/components/snk-filter-binary-select.js +1 -1
  522. package/dist/components/snk-filter-binary-select.js.gz +0 -0
  523. package/dist/components/snk-filter-checkbox-list.js +1 -1
  524. package/dist/components/snk-filter-checkbox-list.js.gz +0 -0
  525. package/dist/components/snk-filter-detail.js.gz +0 -0
  526. package/dist/components/snk-filter-detail2.js.gz +0 -0
  527. package/dist/components/snk-filter-field-search.js.gz +0 -0
  528. package/dist/components/snk-filter-field-search2.js.gz +0 -0
  529. package/dist/components/snk-filter-item.js.gz +0 -0
  530. package/dist/components/snk-filter-item2.js +5 -1
  531. package/dist/components/snk-filter-item2.js.gz +0 -0
  532. package/dist/components/snk-filter-list.js.gz +0 -0
  533. package/dist/components/snk-filter-modal-item.js.gz +0 -0
  534. package/dist/components/snk-filter-modal-item2.js.gz +0 -0
  535. package/dist/components/snk-filter-modal.js +3 -1
  536. package/dist/components/snk-filter-modal.js.gz +0 -0
  537. package/dist/components/snk-filter-multi-select.js.gz +0 -0
  538. package/dist/components/snk-filter-number.js.gz +0 -0
  539. package/dist/components/snk-filter-param-config.js.gz +0 -0
  540. package/dist/components/snk-filter-param-config2.js.gz +0 -0
  541. package/dist/components/snk-filter-period.js.gz +0 -0
  542. package/dist/components/snk-filter-search.js.gz +0 -0
  543. package/dist/components/snk-filter-text.js +2 -1
  544. package/dist/components/snk-filter-text.js.gz +0 -0
  545. package/dist/components/snk-form-config.js.gz +0 -0
  546. package/dist/components/snk-form-config2.js +34 -9
  547. package/dist/components/snk-form-config2.js.gz +0 -0
  548. package/dist/components/snk-form-summary.js.gz +0 -0
  549. package/dist/components/snk-form-summary2.js.gz +0 -0
  550. package/dist/components/snk-form-view.js.gz +0 -0
  551. package/dist/components/snk-form-view2.js.gz +0 -0
  552. package/dist/components/snk-form.js +2 -2
  553. package/dist/components/snk-form.js.gz +0 -0
  554. package/dist/components/snk-grid-config.js.gz +0 -0
  555. package/dist/components/snk-grid-config2.js.gz +0 -0
  556. package/dist/components/snk-grid.js.gz +0 -0
  557. package/dist/components/snk-grid2.js +62 -12
  558. package/dist/components/snk-grid2.js.gz +0 -0
  559. package/dist/components/snk-guides-viewer.js.gz +0 -0
  560. package/dist/components/snk-personalized-filter-editor.js +4 -4
  561. package/dist/components/snk-personalized-filter-editor.js.gz +0 -0
  562. package/dist/components/snk-personalized-filter.js.gz +0 -0
  563. package/dist/components/snk-personalized-filter2.js.gz +0 -0
  564. package/dist/components/snk-pesquisa.js.gz +0 -0
  565. package/dist/components/snk-pesquisa2.js.gz +0 -0
  566. package/dist/components/snk-print-selector.js +1 -1
  567. package/dist/components/snk-print-selector.js.gz +0 -0
  568. package/dist/components/snk-select-box.js.gz +0 -0
  569. package/dist/components/snk-select-box2.js.gz +0 -0
  570. package/dist/components/snk-simple-bar.js.gz +0 -0
  571. package/dist/components/snk-simple-bar2.js +1 -1
  572. package/dist/components/snk-simple-bar2.js.gz +0 -0
  573. package/dist/components/snk-simple-crud.js.gz +0 -0
  574. package/dist/components/snk-simple-crud2.js +106 -64
  575. package/dist/components/snk-simple-crud2.js.gz +0 -0
  576. package/dist/components/snk-simple-form-config.d.ts +11 -0
  577. package/dist/components/snk-simple-form-config.js +6 -0
  578. package/dist/components/snk-simple-form-config.js.gz +0 -0
  579. package/dist/components/snk-simple-form-config2.js +119 -0
  580. package/dist/components/snk-simple-form-config2.js.gz +0 -0
  581. package/dist/components/snk-tab-config.js.gz +0 -0
  582. package/dist/components/snk-tab-config2.js.gz +0 -0
  583. package/dist/components/snk-taskbar.js.gz +0 -0
  584. package/dist/components/snk-taskbar2.js +66 -40
  585. package/dist/components/snk-taskbar2.js.gz +0 -0
  586. package/dist/components/taskbar-actions-button.js.gz +0 -0
  587. package/dist/components/taskbar-actions-button2.js.gz +0 -0
  588. package/dist/components/teste-pesquisa.js.gz +0 -0
  589. package/dist/esm/AuthorizationConfig-dcbd207a.js.gz +0 -0
  590. package/dist/esm/{ConfigStorage-3806514e.js → ConfigStorage-ff99377a.js} +2 -2
  591. package/dist/esm/ConfigStorage-ff99377a.js.gz +0 -0
  592. package/dist/esm/{IExporterProvider-63a188b6.js → ContinuousInsertUtils-071e0b6a.js} +65 -24
  593. package/dist/esm/ContinuousInsertUtils-071e0b6a.js.gz +0 -0
  594. package/dist/esm/{DataFetcher-c1baf61d.js → DataFetcher-5034df59.js} +29 -21
  595. package/dist/esm/DataFetcher-5034df59.js.gz +0 -0
  596. package/dist/esm/GetSelectedRecordsIDsInfo-9fa41508.js +41 -0
  597. package/dist/esm/GetSelectedRecordsIDsInfo-9fa41508.js.gz +0 -0
  598. package/dist/esm/ISave-d8c8bc59.js.gz +0 -0
  599. package/dist/esm/ParamType-d5152b06.js.gz +0 -0
  600. package/dist/esm/PersonalizedFilterUtils-e2b38ef7.js.gz +0 -0
  601. package/dist/esm/PrintUtils-3e4ff0f5.js.gz +0 -0
  602. package/dist/esm/ResourceIDUtils-a114189a.js.gz +0 -0
  603. package/dist/esm/{SnkFormConfigManager-31b24066.js → SnkFormConfigManager-a7770e24.js} +72 -16
  604. package/dist/esm/SnkFormConfigManager-a7770e24.js.gz +0 -0
  605. package/dist/esm/{SnkMessageBuilder-571462fb.js → SnkMessageBuilder-6fff4a4c.js} +6 -2
  606. package/dist/esm/SnkMessageBuilder-6fff4a4c.js.gz +0 -0
  607. package/dist/esm/Sortable-83960219.js.gz +0 -0
  608. package/dist/esm/{auth-fetcher-039abba3.js → auth-fetcher-0b78ca31.js} +1 -1
  609. package/dist/esm/auth-fetcher-0b78ca31.js.gz +0 -0
  610. package/dist/esm/{constants-8457af36.js → constants-7302ee87.js} +1 -1
  611. package/dist/esm/constants-7302ee87.js.gz +0 -0
  612. package/dist/esm/{dataunit-fetcher-264191b2.js → dataunit-fetcher-56cb648b.js} +48 -18
  613. package/dist/esm/dataunit-fetcher-56cb648b.js.gz +0 -0
  614. package/dist/esm/{field-search-efbe307f.js → field-search-f8b1d91e.js} +5 -1
  615. package/dist/esm/field-search-f8b1d91e.js.gz +0 -0
  616. package/dist/esm/filter-item-type.enum-d45e026f.js.gz +0 -0
  617. package/dist/esm/filter-type.enum-a80c1b6b.js.gz +0 -0
  618. package/dist/esm/filterNumberVariation-8cee02ea.js.gz +0 -0
  619. package/dist/esm/{form-config-fetcher-30fb808f.js → form-config-fetcher-0c2620ef.js} +42 -2
  620. package/dist/esm/form-config-fetcher-0c2620ef.js.gz +0 -0
  621. package/dist/esm/index-3aa4977a.js.gz +0 -0
  622. package/dist/esm/index-620ac460.js.gz +0 -0
  623. package/dist/esm/index-a7d3d3f1.js +12 -32
  624. package/dist/esm/index-a7d3d3f1.js.gz +0 -0
  625. package/dist/esm/index-ae591a44.js.gz +0 -0
  626. package/dist/esm/index-bdf75557.js.gz +0 -0
  627. package/dist/esm/index.js.gz +0 -0
  628. package/dist/esm/loader.js +1 -1
  629. package/dist/esm/loader.js.gz +0 -0
  630. package/dist/esm/{pesquisa-fetcher-03c8f919.js → pesquisa-fetcher-24e5bba0.js} +11 -3
  631. package/dist/esm/pesquisa-fetcher-24e5bba0.js.gz +0 -0
  632. package/dist/esm/polyfills/core-js.js.gz +0 -0
  633. package/dist/esm/polyfills/css-shim.js.gz +0 -0
  634. package/dist/esm/polyfills/dom.js.gz +0 -0
  635. package/dist/esm/polyfills/es5-html-element.js.gz +0 -0
  636. package/dist/esm/polyfills/index.js.gz +0 -0
  637. package/dist/esm/polyfills/system.js.gz +0 -0
  638. package/dist/esm/presentationMode-783bbf9d.js.gz +0 -0
  639. package/dist/esm/sankhyablocks.js +1 -1
  640. package/dist/esm/sankhyablocks.js.gz +0 -0
  641. package/dist/esm/{snk-actions-button_4.entry.js → snk-actions-button_5.entry.js} +132 -39
  642. package/dist/esm/snk-actions-button_5.entry.js.gz +0 -0
  643. package/dist/esm/snk-actions-form.entry.js.gz +0 -0
  644. package/dist/esm/snk-application.entry.js +119 -61
  645. package/dist/esm/snk-application.entry.js.gz +0 -0
  646. package/dist/esm/snk-attach.entry.js +47 -34
  647. package/dist/esm/snk-attach.entry.js.gz +0 -0
  648. package/dist/esm/snk-client-confirm.entry.js.gz +0 -0
  649. package/dist/esm/{snk-form-config.entry.js → snk-config-options_3.entry.js} +399 -15
  650. package/dist/esm/snk-config-options_3.entry.js.gz +0 -0
  651. package/dist/esm/snk-configurator.entry.js +1 -1
  652. package/dist/esm/snk-configurator.entry.js.gz +0 -0
  653. package/dist/esm/snk-crud.entry.js +22 -9
  654. package/dist/esm/snk-crud.entry.js.gz +0 -0
  655. package/dist/esm/snk-custom-slot-elements.entry.js.gz +0 -0
  656. package/dist/esm/snk-data-exporter.entry.js +24 -25
  657. package/dist/esm/snk-data-exporter.entry.js.gz +0 -0
  658. package/dist/esm/{snk-data-unit-f5cbe64b.js → snk-data-unit-9fa7d2b9.js} +52 -30
  659. package/dist/esm/snk-data-unit-9fa7d2b9.js.gz +0 -0
  660. package/dist/esm/snk-data-unit.entry.js +5 -5
  661. package/dist/esm/snk-data-unit.entry.js.gz +0 -0
  662. package/dist/esm/snk-detail-view.entry.js +13 -13
  663. package/dist/esm/snk-detail-view.entry.js.gz +0 -0
  664. package/dist/esm/snk-entity-list.entry.js.gz +0 -0
  665. package/dist/esm/snk-exporter-email-sender.entry.js +1 -1
  666. package/dist/esm/snk-exporter-email-sender.entry.js.gz +0 -0
  667. package/dist/esm/snk-expression-group_2.entry.js.gz +0 -0
  668. package/dist/esm/snk-field-config.entry.js +1 -1
  669. package/dist/esm/snk-field-config.entry.js.gz +0 -0
  670. package/dist/esm/snk-filter-advanced-mode_2.entry.js.gz +0 -0
  671. package/dist/esm/snk-filter-bar_4.entry.js +1415 -0
  672. package/dist/esm/snk-filter-bar_4.entry.js.gz +0 -0
  673. package/dist/esm/snk-filter-binary-select.entry.js +1 -1
  674. package/dist/esm/snk-filter-binary-select.entry.js.gz +0 -0
  675. package/dist/esm/snk-filter-checkbox-list.entry.js +1 -1
  676. package/dist/esm/snk-filter-checkbox-list.entry.js.gz +0 -0
  677. package/dist/esm/snk-filter-detail.entry.js.gz +0 -0
  678. package/dist/esm/snk-filter-field-search_2.entry.js.gz +0 -0
  679. package/dist/esm/snk-filter-modal-item.entry.js +3 -3
  680. package/dist/esm/snk-filter-modal-item.entry.js.gz +0 -0
  681. package/dist/esm/snk-filter-multi-select.entry.js.gz +0 -0
  682. package/dist/esm/snk-filter-number.entry.js.gz +0 -0
  683. package/dist/esm/snk-filter-period.entry.js.gz +0 -0
  684. package/dist/esm/snk-filter-search.entry.js.gz +0 -0
  685. package/dist/esm/snk-filter-text.entry.js +2 -1
  686. package/dist/esm/snk-filter-text.entry.js.gz +0 -0
  687. package/dist/esm/snk-form-summary.entry.js.gz +0 -0
  688. package/dist/esm/snk-form-view.entry.js.gz +0 -0
  689. package/dist/esm/snk-grid.entry.js +62 -16
  690. package/dist/esm/snk-grid.entry.js.gz +0 -0
  691. package/dist/esm/{snk-guides-viewer-dda0fede.js → snk-guides-viewer-b740a1fe.js} +30 -14
  692. package/dist/esm/snk-guides-viewer-b740a1fe.js.gz +0 -0
  693. package/dist/esm/snk-guides-viewer.entry.js +9 -9
  694. package/dist/esm/snk-guides-viewer.entry.js.gz +0 -0
  695. package/dist/esm/snk-personalized-filter-editor.entry.js +4 -4
  696. package/dist/esm/snk-personalized-filter-editor.entry.js.gz +0 -0
  697. package/dist/esm/snk-personalized-filter.entry.js +3 -3
  698. package/dist/esm/snk-personalized-filter.entry.js.gz +0 -0
  699. package/dist/esm/snk-pesquisa.entry.js.gz +0 -0
  700. package/dist/esm/snk-print-selector.entry.js +1 -1
  701. package/dist/esm/snk-print-selector.entry.js.gz +0 -0
  702. package/dist/esm/snk-simple-bar.entry.js +1 -1
  703. package/dist/esm/snk-simple-bar.entry.js.gz +0 -0
  704. package/dist/esm/snk-simple-crud.entry.js +98 -42
  705. package/dist/esm/snk-simple-crud.entry.js.gz +0 -0
  706. package/dist/esm/snk-tab-config.entry.js +1 -1
  707. package/dist/esm/snk-tab-config.entry.js.gz +0 -0
  708. package/dist/esm/snk-taskbar.entry.js +65 -39
  709. package/dist/esm/snk-taskbar.entry.js.gz +0 -0
  710. package/dist/esm/taskbar-elements-d59867f1.js.gz +0 -0
  711. package/dist/esm/teste-pesquisa.entry.js.gz +0 -0
  712. package/dist/index.cjs.js.gz +0 -0
  713. package/dist/index.js.gz +0 -0
  714. package/dist/sankhyablocks/index.esm.js.gz +0 -0
  715. package/dist/sankhyablocks/p-00278e07.js +1 -0
  716. package/dist/sankhyablocks/p-00278e07.js.gz +0 -0
  717. package/dist/sankhyablocks/p-01ba23cd.entry.js.gz +0 -0
  718. package/dist/sankhyablocks/p-036b4807.entry.js +1 -0
  719. package/dist/sankhyablocks/p-036b4807.entry.js.gz +0 -0
  720. package/dist/sankhyablocks/p-057fad05.js.gz +0 -0
  721. package/dist/sankhyablocks/p-0d2a2e9e.entry.js +1 -0
  722. package/dist/sankhyablocks/p-0d2a2e9e.entry.js.gz +0 -0
  723. package/dist/sankhyablocks/p-118e769b.entry.js.gz +0 -0
  724. package/dist/sankhyablocks/p-16a1dd18.entry.js +1 -0
  725. package/dist/sankhyablocks/p-16a1dd18.entry.js.gz +0 -0
  726. package/dist/sankhyablocks/p-17425c72.js +1 -0
  727. package/dist/sankhyablocks/p-17425c72.js.gz +0 -0
  728. package/dist/sankhyablocks/p-1a68fb59.js.gz +0 -0
  729. package/dist/sankhyablocks/p-1db45d26.entry.js.gz +0 -0
  730. package/dist/sankhyablocks/p-21749402.js.gz +0 -0
  731. package/dist/sankhyablocks/p-21a81901.entry.js.gz +0 -0
  732. package/dist/sankhyablocks/p-23736d75.js +1 -0
  733. package/dist/sankhyablocks/p-23736d75.js.gz +0 -0
  734. package/dist/sankhyablocks/p-26b0ce3e.entry.js.gz +0 -0
  735. package/dist/sankhyablocks/p-29643bef.entry.js +1 -0
  736. package/dist/sankhyablocks/p-29643bef.entry.js.gz +0 -0
  737. package/dist/sankhyablocks/{p-8eb67fa4.entry.js → p-2d3f9482.entry.js} +1 -1
  738. package/dist/sankhyablocks/p-2d3f9482.entry.js.gz +0 -0
  739. package/dist/sankhyablocks/p-30cf616e.js.gz +0 -0
  740. package/dist/sankhyablocks/p-33718dfc.entry.js.gz +0 -0
  741. package/dist/sankhyablocks/p-342eeb3b.js +1 -0
  742. package/dist/sankhyablocks/p-342eeb3b.js.gz +0 -0
  743. package/dist/sankhyablocks/{p-2c68b3ae.entry.js → p-35882caf.entry.js} +1 -1
  744. package/dist/sankhyablocks/p-35882caf.entry.js.gz +0 -0
  745. package/dist/sankhyablocks/p-365d8ed4.entry.js +1 -0
  746. package/dist/sankhyablocks/p-365d8ed4.entry.js.gz +0 -0
  747. package/dist/sankhyablocks/p-399e1b74.entry.js +1 -0
  748. package/dist/sankhyablocks/p-399e1b74.entry.js.gz +0 -0
  749. package/dist/sankhyablocks/p-3ab6df3d.entry.js.gz +0 -0
  750. package/dist/sankhyablocks/{p-7663f597.entry.js → p-41793e17.entry.js} +1 -1
  751. package/dist/sankhyablocks/p-41793e17.entry.js.gz +0 -0
  752. package/dist/sankhyablocks/{p-72fc257b.entry.js → p-434817f0.entry.js} +1 -1
  753. package/dist/sankhyablocks/p-434817f0.entry.js.gz +0 -0
  754. package/dist/sankhyablocks/p-47178038.entry.js +1 -0
  755. package/dist/sankhyablocks/p-47178038.entry.js.gz +0 -0
  756. package/dist/sankhyablocks/p-47d24ac8.js +60 -0
  757. package/dist/sankhyablocks/p-47d24ac8.js.gz +0 -0
  758. package/dist/sankhyablocks/p-53ae0296.entry.js +1 -0
  759. package/dist/sankhyablocks/p-53ae0296.entry.js.gz +0 -0
  760. package/dist/sankhyablocks/p-54a5d52a.entry.js.gz +0 -0
  761. package/dist/sankhyablocks/{p-aaa3ee68.entry.js → p-5f157b09.entry.js} +1 -1
  762. package/dist/sankhyablocks/p-5f157b09.entry.js.gz +0 -0
  763. package/dist/sankhyablocks/p-619aeac8.entry.js +1 -0
  764. package/dist/sankhyablocks/p-619aeac8.entry.js.gz +0 -0
  765. package/dist/sankhyablocks/p-65650e05.entry.js +1 -0
  766. package/dist/sankhyablocks/p-65650e05.entry.js.gz +0 -0
  767. package/dist/sankhyablocks/p-688dcb4c.js.gz +0 -0
  768. package/dist/sankhyablocks/p-6dc031de.js.gz +0 -0
  769. package/dist/sankhyablocks/p-72a451c8.js +1 -0
  770. package/dist/sankhyablocks/p-72a451c8.js.gz +0 -0
  771. package/dist/sankhyablocks/{p-52920496.js → p-763edad2.js} +1 -1
  772. package/dist/sankhyablocks/p-763edad2.js.gz +0 -0
  773. package/dist/sankhyablocks/p-7dd49d15.js +1 -0
  774. package/dist/sankhyablocks/p-7dd49d15.js.gz +0 -0
  775. package/dist/sankhyablocks/p-7e2ded86.entry.js.gz +0 -0
  776. package/dist/sankhyablocks/p-7e7a7473.js.gz +0 -0
  777. package/dist/sankhyablocks/p-8002dcd0.entry.js.gz +0 -0
  778. package/dist/sankhyablocks/p-82274cb0.js +1 -0
  779. package/dist/sankhyablocks/p-82274cb0.js.gz +0 -0
  780. package/dist/sankhyablocks/p-89c92727.entry.js +1 -0
  781. package/dist/sankhyablocks/p-89c92727.entry.js.gz +0 -0
  782. package/dist/sankhyablocks/{p-871aa14e.entry.js → p-89da2953.entry.js} +1 -1
  783. package/dist/sankhyablocks/p-89da2953.entry.js.gz +0 -0
  784. package/dist/sankhyablocks/{p-95df461f.entry.js → p-8b4fc28f.entry.js} +1 -1
  785. package/dist/sankhyablocks/p-8b4fc28f.entry.js.gz +0 -0
  786. package/dist/sankhyablocks/{p-41f8bfa3.entry.js → p-8c235d4c.entry.js} +1 -1
  787. package/dist/sankhyablocks/p-8c235d4c.entry.js.gz +0 -0
  788. package/dist/sankhyablocks/p-8cf0a9fe.entry.js +1 -0
  789. package/dist/sankhyablocks/p-8cf0a9fe.entry.js.gz +0 -0
  790. package/dist/sankhyablocks/p-8d884fab.js.gz +0 -0
  791. package/dist/sankhyablocks/p-933c0c0b.js.gz +0 -0
  792. package/dist/sankhyablocks/p-9531fd46.entry.js.gz +0 -0
  793. package/dist/sankhyablocks/{p-b0ef4383.js → p-95ce311a.js} +1 -1
  794. package/dist/sankhyablocks/p-95ce311a.js.gz +0 -0
  795. package/dist/sankhyablocks/p-9d3a025a.entry.js.gz +0 -0
  796. package/dist/sankhyablocks/p-ac8d1cd6.entry.js.gz +0 -0
  797. package/dist/sankhyablocks/p-acca8a69.js +26 -0
  798. package/dist/sankhyablocks/p-acca8a69.js.gz +0 -0
  799. package/dist/sankhyablocks/p-bf2acf72.entry.js.gz +0 -0
  800. package/dist/sankhyablocks/p-c271fbf1.js +1 -0
  801. package/dist/sankhyablocks/p-c271fbf1.js.gz +0 -0
  802. package/dist/sankhyablocks/p-c2e468c9.entry.js +1 -0
  803. package/dist/sankhyablocks/p-c2e468c9.entry.js.gz +0 -0
  804. package/dist/sankhyablocks/p-c629c07a.entry.js +1 -0
  805. package/dist/sankhyablocks/p-c629c07a.entry.js.gz +0 -0
  806. package/dist/sankhyablocks/p-c8622597.entry.js.gz +0 -0
  807. package/dist/sankhyablocks/p-cd8fa07b.entry.js +1 -0
  808. package/dist/sankhyablocks/p-cd8fa07b.entry.js.gz +0 -0
  809. package/dist/sankhyablocks/p-d1791da2.entry.js.gz +0 -0
  810. package/dist/sankhyablocks/p-d2d301a6.js.gz +0 -0
  811. package/dist/sankhyablocks/p-d9804798.js.gz +0 -0
  812. package/dist/sankhyablocks/p-dc36cfbf.js.gz +0 -0
  813. package/dist/sankhyablocks/p-e6683406.js +6 -0
  814. package/dist/sankhyablocks/p-e6683406.js.gz +0 -0
  815. package/dist/sankhyablocks/{p-47db7e88.entry.js → p-e9432f45.entry.js} +1 -1
  816. package/dist/sankhyablocks/p-e9432f45.entry.js.gz +0 -0
  817. package/dist/sankhyablocks/p-eaad0aa8.js.gz +0 -0
  818. package/dist/sankhyablocks/p-eda55eef.entry.js +11 -0
  819. package/dist/sankhyablocks/p-eda55eef.entry.js.gz +0 -0
  820. package/dist/sankhyablocks/p-f4184ce7.js.gz +0 -0
  821. package/dist/sankhyablocks/p-fa80e546.js.gz +0 -0
  822. package/dist/sankhyablocks/p-fa816fb2.js.gz +0 -0
  823. package/dist/sankhyablocks/p-fcc662c6.js +1 -0
  824. package/dist/sankhyablocks/p-fcc662c6.js.gz +0 -0
  825. package/dist/sankhyablocks/p-ff1990ad.js.gz +0 -0
  826. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  827. package/dist/sankhyablocks/sankhyablocks.esm.js.gz +0 -0
  828. package/dist/types/components/snk-actions-button/actions/index.d.ts +1 -0
  829. package/dist/types/components/snk-actions-button/interfaces/index.d.ts +3 -0
  830. package/dist/types/components/snk-actions-button/snk-actions-button.d.ts +3 -2
  831. package/dist/types/components/snk-application/request-listener/DebouncedRequestListener.d.ts +11 -0
  832. package/dist/types/components/snk-application/request-listener/RequestListenerFactory.d.ts +12 -0
  833. package/dist/types/components/snk-application/request-listener/RequestListenerLoadingBar.d.ts +13 -0
  834. package/dist/types/components/snk-application/snk-application.d.ts +9 -13
  835. package/dist/types/components/snk-attach/snk-attach.d.ts +1 -0
  836. package/dist/types/components/snk-crud/snk-crud.d.ts +17 -0
  837. package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +15 -0
  838. package/dist/types/components/snk-data-exporter/test/resources/ClientSideExporterStrategyResources.d.ts +3 -3
  839. package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +2 -0
  840. package/dist/types/components/snk-filter-bar/filter-item/filter-item-type-mask.enum.d.ts +7 -0
  841. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +2 -0
  842. package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +9 -0
  843. package/dist/types/components/snk-form-config/SnkFormConfigManager.d.ts +7 -2
  844. package/dist/types/components/snk-form-config/snk-form-config.d.ts +4 -0
  845. package/dist/types/components/snk-grid/snk-grid.d.ts +21 -0
  846. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +20 -3
  847. package/dist/types/components/snk-simple-form-config/snk-simple-form-config.d.ts +33 -0
  848. package/dist/types/components/snk-taskbar/processor/taskbar-processor.d.ts +1 -0
  849. package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +11 -0
  850. package/dist/types/components.d.ts +173 -0
  851. package/dist/types/lib/dataUnit/dataUnitInMemoryUtils.d.ts +12 -2
  852. package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +1 -0
  853. package/dist/types/lib/http/data-fetcher/fetchers/AttachFetcher/anexo-sistema-fetcher.d.ts +3 -2
  854. package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterParams.d.ts +1 -1
  855. package/dist/types/lib/http/data-fetcher/fetchers/form-config-fetcher.d.ts +8 -2
  856. package/dist/types/lib/http/data-fetcher/fetchers/parameters-fecher.d.ts +1 -0
  857. package/dist/types/lib/utils/ContinuousInsertUtils.d.ts +10 -0
  858. package/dist/types/lib/utils/CrudUtils.d.ts +1 -0
  859. package/dist/types/lib/utils/GetSelectedRecordsIDsInfo.d.ts +3 -0
  860. package/package.json +4 -3
  861. package/react/components.d.ts +1 -0
  862. package/react/components.js +1 -0
  863. package/react/components.js.map +1 -1
  864. package/dist/cjs/snk-config-options.cjs.entry.js +0 -239
  865. package/dist/cjs/snk-filter-bar.cjs.entry.js +0 -714
  866. package/dist/cjs/snk-filter-item.cjs.entry.js +0 -312
  867. package/dist/cjs/snk-filter-list.cjs.entry.js +0 -152
  868. package/dist/cjs/snk-filter-modal.cjs.entry.js +0 -249
  869. package/dist/cjs/snk-form.cjs.entry.js +0 -143
  870. package/dist/esm/snk-config-options.entry.js +0 -235
  871. package/dist/esm/snk-filter-bar.entry.js +0 -710
  872. package/dist/esm/snk-filter-item.entry.js +0 -308
  873. package/dist/esm/snk-filter-list.entry.js +0 -148
  874. package/dist/esm/snk-filter-modal.entry.js +0 -245
  875. package/dist/esm/snk-form.entry.js +0 -139
  876. package/dist/sankhyablocks/p-17def7cd.js +0 -1
  877. package/dist/sankhyablocks/p-219f888d.entry.js +0 -1
  878. package/dist/sankhyablocks/p-2a408684.js +0 -1
  879. package/dist/sankhyablocks/p-3a212712.js +0 -1
  880. package/dist/sankhyablocks/p-3b60db06.entry.js +0 -1
  881. package/dist/sankhyablocks/p-450c60e4.entry.js +0 -1
  882. package/dist/sankhyablocks/p-4e5e1313.entry.js +0 -1
  883. package/dist/sankhyablocks/p-62ba211a.entry.js +0 -1
  884. package/dist/sankhyablocks/p-6bb2f3e9.entry.js +0 -1
  885. package/dist/sankhyablocks/p-70a4af56.entry.js +0 -1
  886. package/dist/sankhyablocks/p-7505da04.entry.js +0 -1
  887. package/dist/sankhyablocks/p-75e674ed.entry.js +0 -1
  888. package/dist/sankhyablocks/p-7619bdb1.entry.js +0 -11
  889. package/dist/sankhyablocks/p-7a85fd49.entry.js +0 -1
  890. package/dist/sankhyablocks/p-7ef9c55c.js +0 -1
  891. package/dist/sankhyablocks/p-80042dc6.entry.js +0 -1
  892. package/dist/sankhyablocks/p-88aa931b.entry.js +0 -1
  893. package/dist/sankhyablocks/p-8c59edd7.entry.js +0 -1
  894. package/dist/sankhyablocks/p-913a9979.js +0 -1
  895. package/dist/sankhyablocks/p-96a89d58.entry.js +0 -1
  896. package/dist/sankhyablocks/p-9863d682.js +0 -1
  897. package/dist/sankhyablocks/p-af8efd95.js +0 -6
  898. package/dist/sankhyablocks/p-b05d8893.entry.js +0 -1
  899. package/dist/sankhyablocks/p-b11aa1e0.entry.js +0 -1
  900. package/dist/sankhyablocks/p-c2495304.js +0 -1
  901. package/dist/sankhyablocks/p-d3f53df2.entry.js +0 -1
  902. package/dist/sankhyablocks/p-d6e26ea8.entry.js +0 -1
  903. package/dist/sankhyablocks/p-dc7c9047.js +0 -1
  904. package/dist/sankhyablocks/p-df5451c7.js +0 -26
  905. package/dist/sankhyablocks/p-e8763234.entry.js +0 -1
  906. package/dist/sankhyablocks/p-f2809746.entry.js +0 -1
  907. package/dist/sankhyablocks/p-fa4d8cb4.js +0 -1
  908. package/dist/sankhyablocks/p-fe79f83a.js +0 -60
  909. package/dist/types/components/snk-data-exporter/utils/RecordIDUtils.d.ts +0 -3
@@ -0,0 +1 @@
1
+ import{DataType as e,ApplicationContext as t,StringUtils as n,ErrorException as i,WarningException as r,ObjectUtils as s,ServiceCanceledException as o}from"@sankhyalabs/core";import{P as u}from"./p-8d884fab.js";import{DataUnitTransient as a}from"@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata";var c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function l(e,t,n){return e(n={path:t,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},n.exports),n.exports}var h=l((function(e,t){var n="undefined"!=typeof self?self:c,i=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n="URLSearchParams"in e,i="Symbol"in e&&"iterator"in Symbol,r="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),s="FormData"in e,o="ArrayBuffer"in e;if(o)var u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=ArrayBuffer.isView||function(e){return e&&u.indexOf(Object.prototype.toString.call(e))>-1};function c(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function l(e){return"string"!=typeof e&&(e=String(e)),e}function h(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t}function f(e){this.map={},e instanceof f?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function d(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function v(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function p(e){var t=new FileReader,n=v(t);return t.readAsArrayBuffer(e),n}function m(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:r&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:s&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():o&&r&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o&&(ArrayBuffer.prototype.isPrototypeOf(e)||a(e))?this._bodyArrayBuffer=m(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r&&(this.blob=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?d(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var e,t,n,i=d(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,n=v(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),i=0;i<t.length;i++)n[i]=String.fromCharCode(t[i]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},s&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}f.prototype.append=function(e,t){e=c(e),t=l(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},f.prototype.delete=function(e){delete this.map[c(e)]},f.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},f.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},f.prototype.set=function(e,t){this.map[c(e)]=l(t)},f.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},f.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),h(e)},f.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),h(e)},f.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),h(e)},i&&(f.prototype[Symbol.iterator]=f.prototype.entries);var b=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function w(e,t){var n,i,r=(t=t||{}).body;if(e instanceof w){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new f(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new f(t.headers)),this.method=(i=(n=t.method||this.method||"GET").toUpperCase(),b.indexOf(i)>-1?i:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function g(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}})),t}function O(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new f(t.headers),this.url=t.url||"",this._initBody(e)}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},y.call(w.prototype),y.call(O.prototype),O.prototype.clone=function(){return new O(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},O.error=function(){var e=new O(null,{status:0,statusText:""});return e.type="error",e};var E=[301,302,303,307,308];O.redirect=function(e,t){if(-1===E.indexOf(t))throw new RangeError("Invalid status code");return new O(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function T(e,n){return new Promise((function(i,s){var o=new w(e,n);if(o.signal&&o.signal.aborted)return s(new t.DOMException("Aborted","AbortError"));var u=new XMLHttpRequest;function a(){u.abort()}u.onload=function(){var e,t,n={status:u.status,statusText:u.statusText,headers:(e=u.getAllResponseHeaders()||"",t=new f,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),i=n.shift().trim();if(i){var r=n.join(":").trim();t.append(i,r)}})),t)};n.url="responseURL"in u?u.responseURL:n.headers.get("X-Request-URL"),i(new O("response"in u?u.response:u.responseText,n))},u.onerror=function(){s(new TypeError("Network request failed"))},u.ontimeout=function(){s(new TypeError("Network request failed"))},u.onabort=function(){s(new t.DOMException("Aborted","AbortError"))},u.open(o.method,o.url,!0),"include"===o.credentials?u.withCredentials=!0:"omit"===o.credentials&&(u.withCredentials=!1),"responseType"in u&&r&&(u.responseType="blob"),o.headers.forEach((function(e,t){u.setRequestHeader(t,e)})),o.signal&&(o.signal.addEventListener("abort",a),u.onreadystatechange=function(){4===u.readyState&&o.signal.removeEventListener("abort",a)}),u.send(void 0===o._bodyInit?null:o._bodyInit)}))}T.polyfill=!0,e.fetch||(e.fetch=T,e.Headers=f,e.Request=w,e.Response=O),t.Headers=f,t.Request=w,t.Response=O,t.fetch=T,Object.defineProperty(t,"__esModule",{value:!0})}({})}(i),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var r=i;(t=r.fetch).default=r.fetch,t.fetch=r.fetch,t.Headers=r.Headers,t.Request=r.Request,t.Response=r.Response,e.exports=t})),f=l((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isObjectLike=function(e){return"object"==typeof e&&null!==e}})),d=l((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.invariant=function(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}})),v=l((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getLocation=function(e,t){let i=0,r=1;for(const s of e.body.matchAll(n)){if("number"==typeof s.index||(0,d.invariant)(!1),s.index>=t)break;i=s.index+s[0].length,r+=1}return{line:r,column:t+1-i}};const n=/\r\n|[\n\r]/g})),p=l((function(e,t){function n(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,s=t.line-1,o=t.line+(e.locationOffset.line-1),u=t.column+(1===t.line?n:0),a=`${e.name}:${o}:${u}\n`,c=r.split(/\r\n|[\n\r]/g),l=c[s];if(l.length>120){const e=Math.floor(u/80),t=u%80,n=[];for(let e=0;e<l.length;e+=80)n.push(l.slice(e,e+80));return a+i([[`${o} |`,n[0]],...n.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return a+i([[o-1+" |",c[s-1]],[`${o} |`,l],["|","^".padStart(u)],[`${o+1} |`,c[s+1]]])}function i(e){const t=e.filter((([e,t])=>void 0!==t)),n=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(n)+(t?" "+t:""))).join("\n")}Object.defineProperty(t,"__esModule",{value:!0}),t.printLocation=function(e){return n(e.source,(0,v.getLocation)(e.source,e.start))},t.printSourceLocation=n})),m=l((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLError=void 0,t.formatError=function(e){return e.toJSON()},t.printError=function(e){return e.toString()};class n extends Error{constructor(e,...t){var r,s,o;const{nodes:u,source:a,positions:c,path:l,originalError:h,extensions:d}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=l?l:void 0,this.originalError=null!=h?h:void 0,this.nodes=i(Array.isArray(u)?u:u?[u]:void 0);const p=i(null===(r=this.nodes)||void 0===r?void 0:r.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=a?a:null==p||null===(s=p[0])||void 0===s?void 0:s.source,this.positions=null!=c?c:null==p?void 0:p.map((e=>e.start)),this.locations=c&&a?c.map((e=>(0,v.getLocation)(a,e))):null==p?void 0:p.map((e=>(0,v.getLocation)(e.source,e.start)));const m=(0,f.isObjectLike)(null==h?void 0:h.extensions)?null==h?void 0:h.extensions:void 0;this.extensions=null!==(o=null!=d?d:m)&&void 0!==o?o:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=h&&h.stack?Object.defineProperty(this,"stack",{value:h.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,n):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+(0,p.printLocation)(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+(0,p.printSourceLocation)(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function i(e){return void 0===e||0===e.length?void 0:e}t.GraphQLError=n})),y=l((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.syntaxError=function(e,t,n){return new m.GraphQLError(`Syntax Error: ${n}`,{source:e,positions:[t]})}})),b=l((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Token=t.QueryDocumentKeys=t.OperationTypeNode=t.Location=void 0,t.isNode=function(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&s.has(t)};class n{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}t.Location=n;class i{constructor(e,t,n,i,r,s){this.kind=e,this.start=t,this.end=n,this.line=i,this.column=r,this.value=s,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}t.Token=i;const r={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};t.QueryDocumentKeys=r;const s=new Set(Object.keys(r));var o;t.OperationTypeNode=o,function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(o||(t.OperationTypeNode=o={}))})),w=l((function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveLocation=void 0,t.DirectiveLocation=n,function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(n||(t.DirectiveLocation=n={}))})),g=l((function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Kind=void 0,t.Kind=n,function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(n||(t.Kind=n={}))})),O=l((function(e,t){function n(e){return e>=48&&e<=57}function i(e){return e>=97&&e<=122||e>=65&&e<=90}Object.defineProperty(t,"__esModule",{value:!0}),t.isDigit=n,t.isLetter=i,t.isNameContinue=function(e){return i(e)||n(e)||95===e},t.isNameStart=function(e){return i(e)||95===e},t.isWhiteSpace=function(e){return 9===e||32===e}})),E=l((function(e,t){function n(e){let t=0;for(;t<e.length&&(0,O.isWhiteSpace)(e.charCodeAt(t));)++t;return t}Object.defineProperty(t,"__esModule",{value:!0}),t.dedentBlockStringLines=function(e){var t;let i=Number.MAX_SAFE_INTEGER,r=null,s=-1;for(let t=0;t<e.length;++t){var o;const u=e[t],a=n(u);a!==u.length&&(r=null!==(o=r)&&void 0!==o?o:t,s=t,0!==t&&a<i&&(i=a))}return e.map(((e,t)=>0===t?e:e.slice(i))).slice(null!==(t=r)&&void 0!==t?t:0,s+1)},t.isPrintableAsBlockString=function(e){if(""===e)return!0;let t=!0,n=!1,i=!0,r=!1;for(let s=0;s<e.length;++s)switch(e.codePointAt(s)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:case 13:return!1;case 10:if(t&&!r)return!1;r=!0,t=!0,n=!1;break;case 9:case 32:n||(n=t);break;default:i&&(i=n),t=!1}return!t&&(!i||!r)},t.printBlockString=function(e,t){const n=e.replace(/"""/g,'\\"""'),i=n.split(/\r\n|[\n\r]/g),r=1===i.length,s=i.length>1&&i.slice(1).every((e=>0===e.length||(0,O.isWhiteSpace)(e.charCodeAt(0)))),o=n.endsWith('\\"""'),u=e.endsWith('"')&&!o,a=e.endsWith("\\"),c=u||a,l=!(null!=t&&t.minimize)&&(!r||e.length>70||c||s||o);let h="";const f=r&&(0,O.isWhiteSpace)(e.charCodeAt(0));return(l&&!f||s)&&(h+="\n"),h+=n,(l||c)&&(h+="\n"),'"""'+h+'"""'}})),T=l((function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TokenKind=void 0,t.TokenKind=n,function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(n||(t.TokenKind=n={}))})),S=l((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Lexer=void 0,t.isPunctuatorTokenKind=function(e){return e===T.TokenKind.BANG||e===T.TokenKind.DOLLAR||e===T.TokenKind.AMP||e===T.TokenKind.PAREN_L||e===T.TokenKind.PAREN_R||e===T.TokenKind.SPREAD||e===T.TokenKind.COLON||e===T.TokenKind.EQUALS||e===T.TokenKind.AT||e===T.TokenKind.BRACKET_L||e===T.TokenKind.BRACKET_R||e===T.TokenKind.BRACE_L||e===T.TokenKind.PIPE||e===T.TokenKind.BRACE_R};class n{constructor(e){const t=new b.Token(T.TokenKind.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==T.TokenKind.EOF)do{if(e.next)e=e.next;else{const t=c(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===T.TokenKind.COMMENT);return e}}function i(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function r(e,t){return s(e.charCodeAt(t))&&o(e.charCodeAt(t+1))}function s(e){return e>=55296&&e<=56319}function o(e){return e>=56320&&e<=57343}function u(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return T.TokenKind.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function a(e,t,n,i,r){return new b.Token(t,n,i,e.line,1+n-e.lineStart,r)}function c(e,t){const n=e.source.body,s=n.length;let o=t;for(;o<s;){const t=n.charCodeAt(o);switch(t){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===n.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 35:return l(e,o);case 33:return a(e,T.TokenKind.BANG,o,o+1);case 36:return a(e,T.TokenKind.DOLLAR,o,o+1);case 38:return a(e,T.TokenKind.AMP,o,o+1);case 40:return a(e,T.TokenKind.PAREN_L,o,o+1);case 41:return a(e,T.TokenKind.PAREN_R,o,o+1);case 46:if(46===n.charCodeAt(o+1)&&46===n.charCodeAt(o+2))return a(e,T.TokenKind.SPREAD,o,o+3);break;case 58:return a(e,T.TokenKind.COLON,o,o+1);case 61:return a(e,T.TokenKind.EQUALS,o,o+1);case 64:return a(e,T.TokenKind.AT,o,o+1);case 91:return a(e,T.TokenKind.BRACKET_L,o,o+1);case 93:return a(e,T.TokenKind.BRACKET_R,o,o+1);case 123:return a(e,T.TokenKind.BRACE_L,o,o+1);case 124:return a(e,T.TokenKind.PIPE,o,o+1);case 125:return a(e,T.TokenKind.BRACE_R,o,o+1);case 34:return 34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)?S(e,o):d(e,o)}if((0,O.isDigit)(t)||45===t)return h(e,o,t);if((0,O.isNameStart)(t))return j(e,o);throw(0,y.syntaxError)(e.source,o,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":i(t)||r(n,o)?`Unexpected character: ${u(e,o)}.`:`Invalid character: ${u(e,o)}.`)}return a(e,T.TokenKind.EOF,s,s)}function l(e,t){const n=e.source.body,s=n.length;let o=t+1;for(;o<s;){const e=n.charCodeAt(o);if(10===e||13===e)break;if(i(e))++o;else{if(!r(n,o))break;o+=2}}return a(e,T.TokenKind.COMMENT,t,o,n.slice(t+1,o))}function h(e,t,n){const i=e.source.body;let r=t,s=n,o=!1;if(45===s&&(s=i.charCodeAt(++r)),48===s){if(s=i.charCodeAt(++r),(0,O.isDigit)(s))throw(0,y.syntaxError)(e.source,r,`Invalid number, unexpected digit after 0: ${u(e,r)}.`)}else r=f(e,r,s),s=i.charCodeAt(r);if(46===s&&(o=!0,s=i.charCodeAt(++r),r=f(e,r,s),s=i.charCodeAt(r)),69!==s&&101!==s||(o=!0,s=i.charCodeAt(++r),43!==s&&45!==s||(s=i.charCodeAt(++r)),r=f(e,r,s),s=i.charCodeAt(r)),46===s||(0,O.isNameStart)(s))throw(0,y.syntaxError)(e.source,r,`Invalid number, expected digit but got: ${u(e,r)}.`);return a(e,o?T.TokenKind.FLOAT:T.TokenKind.INT,t,r,i.slice(t,r))}function f(e,t,n){if(!(0,O.isDigit)(n))throw(0,y.syntaxError)(e.source,t,`Invalid number, expected digit but got: ${u(e,t)}.`);const i=e.source.body;let r=t+1;for(;(0,O.isDigit)(i.charCodeAt(r));)++r;return r}function d(e,t){const n=e.source.body,s=n.length;let o=t+1,c=o,l="";for(;o<s;){const s=n.charCodeAt(o);if(34===s)return l+=n.slice(c,o),a(e,T.TokenKind.STRING,t,o+1,l);if(92!==s){if(10===s||13===s)break;if(i(s))++o;else{if(!r(n,o))throw(0,y.syntaxError)(e.source,o,`Invalid character within String: ${u(e,o)}.`);o+=2}}else{l+=n.slice(c,o);const t=117===n.charCodeAt(o+1)?123===n.charCodeAt(o+2)?v(e,o):p(e,o):g(e,o);l+=t.value,o+=t.size,c=o}}throw(0,y.syntaxError)(e.source,o,"Unterminated string.")}function v(e,t){const n=e.source.body;let r=0,s=3;for(;s<12;){const e=n.charCodeAt(t+s++);if(125===e){if(s<5||!i(r))break;return{value:String.fromCodePoint(r),size:s}}if(r=r<<4|w(e),r<0)break}throw(0,y.syntaxError)(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+s)}".`)}function p(e,t){const n=e.source.body,r=m(n,t+2);if(i(r))return{value:String.fromCodePoint(r),size:6};if(s(r)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=m(n,t+8);if(o(e))return{value:String.fromCodePoint(r,e),size:12}}throw(0,y.syntaxError)(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function m(e,t){return w(e.charCodeAt(t))<<12|w(e.charCodeAt(t+1))<<8|w(e.charCodeAt(t+2))<<4|w(e.charCodeAt(t+3))}function w(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function g(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw(0,y.syntaxError)(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function S(e,t){const n=e.source.body,s=n.length;let o=e.lineStart,c=t+3,l=c,h="";const f=[];for(;c<s;){const s=n.charCodeAt(c);if(34===s&&34===n.charCodeAt(c+1)&&34===n.charCodeAt(c+2)){h+=n.slice(l,c),f.push(h);const i=a(e,T.TokenKind.BLOCK_STRING,t,c+3,(0,E.dedentBlockStringLines)(f).join("\n"));return e.line+=f.length-1,e.lineStart=o,i}if(92!==s||34!==n.charCodeAt(c+1)||34!==n.charCodeAt(c+2)||34!==n.charCodeAt(c+3))if(10!==s&&13!==s)if(i(s))++c;else{if(!r(n,c))throw(0,y.syntaxError)(e.source,c,`Invalid character within String: ${u(e,c)}.`);c+=2}else h+=n.slice(l,c),f.push(h),13===s&&10===n.charCodeAt(c+1)?c+=2:++c,h="",l=c,o=c;else h+=n.slice(l,c),l=c+1,c+=4}throw(0,y.syntaxError)(e.source,c,"Unterminated string.")}function j(e,t){const n=e.source.body,i=n.length;let r=t+1;for(;r<i;){const e=n.charCodeAt(r);if(!(0,O.isNameContinue)(e))break;++r}return a(e,T.TokenKind.NAME,t,r,n.slice(t,r))}t.Lexer=n})),j=l((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.devAssert=function(e,t){if(!Boolean(e))throw new Error(t)}})),D=l((function(e,t){function n(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const i=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:n(t,i)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";const i=Math.min(10,e.length),r=e.length-i,s=[];for(let r=0;r<i;++r)s.push(n(e[r],t));return 1===r?s.push("... 1 more item"):r>1&&s.push(`... ${r} more items`),"["+s.join(", ")+"]"}(e,i);return function(e,t){const i=Object.entries(e);if(0===i.length)return"{}";if(t.length>2)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const r=i.map((([e,i])=>e+": "+n(i,t)));return"{ "+r.join(", ")+" }"}(e,i)}(e,t);default:return String(e)}}Object.defineProperty(t,"__esModule",{value:!0}),t.inspect=function(e){return n(e,[])}})),I=l((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.instanceOf=void 0,t.instanceOf=function(e,t){return e instanceof t}})),x=l((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Source=void 0,t.isSource=function(e){return(0,I.instanceOf)(e,n)};class n{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||(0,j.devAssert)(!1,`Body must be a string. Received: ${(0,D.inspect)(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||(0,j.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,j.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}t.Source=n})),N=l((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0,t.parse=function(e,t){return new n(e,t).parseDocument()},t.parseConstValue=function(e,t){const i=new n(e,t);i.expectToken(T.TokenKind.SOF);const r=i.parseConstValueLiteral();return i.expectToken(T.TokenKind.EOF),r},t.parseType=function(e,t){const i=new n(e,t);i.expectToken(T.TokenKind.SOF);const r=i.parseTypeReference();return i.expectToken(T.TokenKind.EOF),r},t.parseValue=function(e,t){const i=new n(e,t);i.expectToken(T.TokenKind.SOF);const r=i.parseValueLiteral(!1);return i.expectToken(T.TokenKind.EOF),r};class n{constructor(e,t={}){const n=(0,x.isSource)(e)?e:new x.Source(e);this._lexer=new S.Lexer(n),this._options=t,this._tokenCounter=0}parseName(){const e=this.expectToken(T.TokenKind.NAME);return this.node(e,{kind:g.Kind.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:g.Kind.DOCUMENT,definitions:this.many(T.TokenKind.SOF,this.parseDefinition,T.TokenKind.EOF)})}parseDefinition(){if(this.peek(T.TokenKind.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===T.TokenKind.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw(0,y.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(T.TokenKind.BRACE_L))return this.node(e,{kind:g.Kind.OPERATION_DEFINITION,operation:b.OperationTypeNode.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(T.TokenKind.NAME)&&(n=this.parseName()),this.node(e,{kind:g.Kind.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(T.TokenKind.NAME);switch(e.value){case"query":return b.OperationTypeNode.QUERY;case"mutation":return b.OperationTypeNode.MUTATION;case"subscription":return b.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(T.TokenKind.PAREN_L,this.parseVariableDefinition,T.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:g.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(T.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(T.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(T.TokenKind.DOLLAR),this.node(e,{kind:g.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:g.Kind.SELECTION_SET,selections:this.many(T.TokenKind.BRACE_L,this.parseSelection,T.TokenKind.BRACE_R)})}parseSelection(){return this.peek(T.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,i;return this.expectOptionalToken(T.TokenKind.COLON)?(n=t,i=this.parseName()):i=t,this.node(e,{kind:g.Kind.FIELD,alias:n,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(T.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){return this.optionalMany(T.TokenKind.PAREN_L,e?this.parseConstArgument:this.parseArgument,T.TokenKind.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(T.TokenKind.COLON),this.node(t,{kind:g.Kind.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(T.TokenKind.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(T.TokenKind.NAME)?this.node(e,{kind:g.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:g.Kind.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),this.node(e,!0===this._options.allowLegacyFragmentVariables?{kind:g.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}:{kind:g.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case T.TokenKind.BRACKET_L:return this.parseList(e);case T.TokenKind.BRACE_L:return this.parseObject(e);case T.TokenKind.INT:return this.advanceLexer(),this.node(t,{kind:g.Kind.INT,value:t.value});case T.TokenKind.FLOAT:return this.advanceLexer(),this.node(t,{kind:g.Kind.FLOAT,value:t.value});case T.TokenKind.STRING:case T.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case T.TokenKind.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:g.Kind.BOOLEAN,value:!0});case"false":return this.node(t,{kind:g.Kind.BOOLEAN,value:!1});case"null":return this.node(t,{kind:g.Kind.NULL});default:return this.node(t,{kind:g.Kind.ENUM,value:t.value})}case T.TokenKind.DOLLAR:if(e){if(this.expectToken(T.TokenKind.DOLLAR),this._lexer.token.kind===T.TokenKind.NAME)throw(0,y.syntaxError)(this._lexer.source,t.start,`Unexpected variable "$${this._lexer.token.value}" in constant value.`);throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:g.Kind.STRING,value:e.value,block:e.kind===T.TokenKind.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:g.Kind.LIST,values:this.any(T.TokenKind.BRACKET_L,(()=>this.parseValueLiteral(e)),T.TokenKind.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:g.Kind.OBJECT,fields:this.any(T.TokenKind.BRACE_L,(()=>this.parseObjectField(e)),T.TokenKind.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(T.TokenKind.COLON),this.node(t,{kind:g.Kind.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(T.TokenKind.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(T.TokenKind.AT),this.node(t,{kind:g.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(T.TokenKind.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(T.TokenKind.BRACKET_R),t=this.node(e,{kind:g.Kind.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(T.TokenKind.BANG)?this.node(e,{kind:g.Kind.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:g.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(T.TokenKind.STRING)||this.peek(T.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),i=this.many(T.TokenKind.BRACE_L,this.parseOperationTypeDefinition,T.TokenKind.BRACE_R);return this.node(e,{kind:g.Kind.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:i})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(T.TokenKind.COLON);const n=this.parseNamedType();return this.node(e,{kind:g.Kind.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),i=this.parseConstDirectives();return this.node(e,{kind:g.Kind.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:i})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:g.Kind.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(T.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(T.TokenKind.BRACE_L,this.parseFieldDefinition,T.TokenKind.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(T.TokenKind.COLON);const r=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(e,{kind:g.Kind.FIELD_DEFINITION,description:t,name:n,arguments:i,type:r,directives:s})}parseArgumentDefs(){return this.optionalMany(T.TokenKind.PAREN_L,this.parseInputValueDef,T.TokenKind.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(T.TokenKind.COLON);const i=this.parseTypeReference();let r;this.expectOptionalToken(T.TokenKind.EQUALS)&&(r=this.parseConstValueLiteral());const s=this.parseConstDirectives();return this.node(e,{kind:g.Kind.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:s})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:g.Kind.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:s})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseUnionMemberTypes();return this.node(e,{kind:g.Kind.UNION_TYPE_DEFINITION,description:t,name:n,directives:i,types:r})}parseUnionMemberTypes(){return this.expectOptionalToken(T.TokenKind.EQUALS)?this.delimitedMany(T.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();return this.node(e,{kind:g.Kind.ENUM_TYPE_DEFINITION,description:t,name:n,directives:i,values:r})}parseEnumValuesDefinition(){return this.optionalMany(T.TokenKind.BRACE_L,this.parseEnumValueDefinition,T.TokenKind.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:g.Kind.ENUM_VALUE_DEFINITION,description:t,name:n,directives:i})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw(0,y.syntaxError)(this._lexer.source,this._lexer.token.start,`${i(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();return this.node(e,{kind:g.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:i,fields:r})}parseInputFieldsDefinition(){return this.optionalMany(T.TokenKind.BRACE_L,this.parseInputValueDef,T.TokenKind.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===T.TokenKind.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(T.TokenKind.BRACE_L,this.parseOperationTypeDefinition,T.TokenKind.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:g.Kind.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:g.Kind.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:g.Kind.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:g.Kind.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:g.Kind.UNION_TYPE_EXTENSION,name:t,directives:n,types:i})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:g.Kind.ENUM_TYPE_EXTENSION,name:t,directives:n,values:i})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:g.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:i})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(T.TokenKind.AT);const n=this.parseName(),i=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const s=this.parseDirectiveLocations();return this.node(e,{kind:g.Kind.DIRECTIVE_DEFINITION,description:t,name:n,arguments:i,repeatable:r,locations:s})}parseDirectiveLocations(){return this.delimitedMany(T.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(w.DirectiveLocation,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new b.Location(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw(0,y.syntaxError)(this._lexer.source,t.start,`Expected ${r(e)}, found ${i(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==T.TokenKind.NAME||t.value!==e)throw(0,y.syntaxError)(this._lexer.source,t.start,`Expected "${e}", found ${i(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===T.TokenKind.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return(0,y.syntaxError)(this._lexer.source,t.start,`Unexpected ${i(t)}.`)}any(e,t,n){this.expectToken(e);const i=[];for(;!this.expectOptionalToken(n);)i.push(t.call(this));return i}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const i=[];do{i.push(t.call(this))}while(!this.expectOptionalToken(n));return i}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==T.TokenKind.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw(0,y.syntaxError)(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function i(e){const t=e.value;return r(e.kind)+(null!=t?` "${t}"`:"")}function r(e){return(0,S.isPunctuatorTokenKind)(e)?`"${e}"`:e}t.Parser=n})),k=l((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.printString=function(e){return`"${e.replace(n,i)}"`};const n=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function i(e){return r[e.charCodeAt(0)]}const r=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]})),_=l((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.BREAK=void 0,t.getEnterLeaveForKind=i,t.getVisitFn=function(e,t,n){const{enter:r,leave:s}=i(e,t);return n?s:r},t.visit=function(e,t,r=b.QueryDocumentKeys){const s=new Map;for(const e of Object.values(g.Kind))s.set(e,i(t,e));let o,u,a,c=Array.isArray(e),l=[e],h=-1,f=[],d=e;const v=[],p=[];do{h++;const e=h===l.length,i=e&&0!==f.length;if(e){if(u=0===p.length?void 0:v[v.length-1],d=a,a=p.pop(),i)if(c){d=d.slice();let e=0;for(const[t,n]of f){const i=t-e;null===n?(d.splice(i,1),e++):d[i]=n}}else{d=Object.defineProperties({},Object.getOwnPropertyDescriptors(d));for(const[e,t]of f)d[e]=t}h=o.index,l=o.keys,f=o.edits,c=o.inArray,o=o.prev}else if(a){if(u=c?h:l[h],d=a[u],null==d)continue;v.push(u)}let g;if(!Array.isArray(d)){var m,y;(0,b.isNode)(d)||(0,j.devAssert)(!1,`Invalid AST Node: ${(0,D.inspect)(d)}.`);const i=e?null===(m=s.get(d.kind))||void 0===m?void 0:m.leave:null===(y=s.get(d.kind))||void 0===y?void 0:y.enter;if(g=null==i?void 0:i.call(t,d,u,a,v,p),g===n)break;if(!1===g){if(!e){v.pop();continue}}else if(void 0!==g&&(f.push([u,g]),!e)){if(!(0,b.isNode)(g)){v.pop();continue}d=g}}var w;void 0===g&&i&&f.push([u,d]),e?v.pop():(o={inArray:c,index:h,keys:l,edits:f,prev:o},c=Array.isArray(d),l=c?d:null!==(w=r[d.kind])&&void 0!==w?w:[],h=-1,f=[],a&&p.push(a),a=d)}while(void 0!==o);return 0!==f.length?f[f.length-1][1]:e},t.visitInParallel=function(e){const t=new Array(e.length).fill(null),r=Object.create(null);for(const s of Object.values(g.Kind)){let o=!1;const u=new Array(e.length).fill(void 0),a=new Array(e.length).fill(void 0);for(let t=0;t<e.length;++t){const{enter:n,leave:r}=i(e[t],s);o||(o=null!=n||null!=r),u[t]=n,a[t]=r}o&&(r[s]={enter(...i){const r=i[0];for(let o=0;o<e.length;o++)if(null===t[o]){var s;const a=null===(s=u[o])||void 0===s?void 0:s.apply(e[o],i);if(!1===a)t[o]=r;else if(a===n)t[o]=n;else if(void 0!==a)return a}},leave(...i){const r=i[0];for(let o=0;o<e.length;o++)if(null===t[o]){var s;const r=null===(s=a[o])||void 0===s?void 0:s.apply(e[o],i);if(r===n)t[o]=n;else if(void 0!==r&&!1!==r)return r}else t[o]===r&&(t[o]=null)}})}return r};const n=Object.freeze({});function i(e,t){const n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}t.BREAK=n})),A=l((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.print=function(e){return(0,_.visit)(e,n)};const n={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>i(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=s("(",i(e.variableDefinitions,", "),")"),n=i([e.operation,i([e.name,t]),i(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+s(" = ",n)+s(" ",i(r," "))},SelectionSet:{leave:({selections:e})=>r(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:u}){const a=s("",e,": ")+t;let c=a+s("(",i(n,", "),")");return c.length>80&&(c=a+s("(\n",o(i(n,"\n")),"\n)")),i([c,i(r," "),u]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+s(" ",i(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>i(["...",s("on ",e),i(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:o})=>`fragment ${e}${s("(",i(n,", "),")")} on ${t} ${s("",i(r," ")," ")}`+o},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,E.printBlockString)(e):(0,k.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+i(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+i(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+s("(",i(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>s("",e,"\n")+i(["schema",i(t," "),r(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>s("",e,"\n")+i(["scalar",t,i(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:o,fields:u})=>s("",e,"\n")+i(["type",t,s("implements ",i(n," & ")),i(o," "),r(u)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:a})=>s("",e,"\n")+t+(u(n)?s("(\n",o(i(n,"\n")),"\n)"):s("(",i(n,", "),")"))+": "+r+s(" ",i(a," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:o})=>s("",e,"\n")+i([t+": "+n,s("= ",r),i(o," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:o,fields:u})=>s("",e,"\n")+i(["interface",t,s("implements ",i(n," & ")),i(o," "),r(u)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>s("",e,"\n")+i(["union",t,i(n," "),s("= ",i(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:o})=>s("",e,"\n")+i(["enum",t,i(n," "),r(o)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>s("",e,"\n")+i([t,i(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:o})=>s("",e,"\n")+i(["input",t,i(n," "),r(o)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:a})=>s("",e,"\n")+"directive @"+t+(u(n)?s("(\n",o(i(n,"\n")),"\n)"):s("(",i(n,", "),")"))+(r?" repeatable":"")+" on "+i(a," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>i(["extend schema",i(e," "),r(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>i(["extend scalar",e,i(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:o})=>i(["extend type",e,s("implements ",i(t," & ")),i(n," "),r(o)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:o})=>i(["extend interface",e,s("implements ",i(t," & ")),i(n," "),r(o)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>i(["extend union",e,i(t," "),s("= ",i(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>i(["extend enum",e,i(t," "),r(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>i(["extend input",e,i(t," "),r(n)]," ")}};function i(e,t=""){var n;return null!==(n=null==e?void 0:e.filter((e=>e)).join(t))&&void 0!==n?n:""}function r(e){return s("{\n",o(i(e,"\n")),"\n}")}function s(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function o(e){return s(" ",e.replace(/\n/g,"\n "))}function u(e){var t;return null!==(t=null==e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}})),F=function(e){var t=e.name,n=e.type;this.uri=e.uri,this.name=t,this.type=n},$=function(e){return"undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Blob&&e instanceof Blob||e instanceof F},q=function e(t,n,i){var r;void 0===n&&(n=""),void 0===i&&(i=$);var s=new Map;function o(e,t){var n=s.get(t);n?n.push.apply(n,e):s.set(t,e)}if(i(t))r=null,o([n],t);else{var u=n?n+".":"";if("undefined"!=typeof FileList&&t instanceof FileList)r=Array.prototype.map.call(t,(function(e,t){return o([""+u+t],e),null}));else if(Array.isArray(t))r=t.map((function(t,n){var r=e(t,""+u+n,i);return r.files.forEach(o),r.clone}));else if(t&&t.constructor===Object)for(var a in r={},t){var c=e(t[a],""+u+a,i);c.files.forEach(o),r[a]=c.clone}else r=t}return{clone:r,files:s}},U=$,C="object"==typeof self?self.FormData:window.FormData,V=l((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultJsonSerializer=void 0,t.defaultJsonSerializer={parse:JSON.parse,stringify:JSON.stringify}})),M=l((function(e,t){var n=c&&c.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(C),r=function(e){return U(e)||null!==e&&"object"==typeof e&&"function"==typeof e.pipe};t.default=function(e,t,n,s){void 0===s&&(s=V.defaultJsonSerializer);var o=q({query:e,variables:t,operationName:n},"",r),u=o.clone,a=o.files;if(0===a.size){if(!Array.isArray(e))return s.stringify(u);if(void 0!==t&&!Array.isArray(t))throw new Error("Cannot create request body with given variable type, array expected");var c=e.reduce((function(e,n,i){return e.push({query:n,variables:t?t[i]:void 0}),e}),[]);return s.stringify(c)}var l=new("undefined"==typeof FormData?i.default:FormData);l.append("operations",s.stringify(u));var h={},f=0;return a.forEach((function(e){h[++f]=e})),l.append("map",s.stringify(h)),f=0,a.forEach((function(e,t){l.append(""+ ++f,t)})),l}})),P=l((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.parseBatchRequestsExtendedArgs=t.parseRawRequestExtendedArgs=t.parseRequestExtendedArgs=t.parseBatchRequestArgs=t.parseRawRequestArgs=t.parseRequestArgs=void 0,t.parseRequestArgs=function(e,t,n){return e.document?e:{document:e,variables:t,requestHeaders:n,signal:void 0}},t.parseRawRequestArgs=function(e,t,n){return e.query?e:{query:e,variables:t,requestHeaders:n,signal:void 0}},t.parseBatchRequestArgs=function(e,t){return e.documents?e:{documents:e,requestHeaders:t,signal:void 0}},t.parseRequestExtendedArgs=function(e,t,n,i){return e.document?e:{url:e,document:t,variables:n,requestHeaders:i,signal:void 0}},t.parseRawRequestExtendedArgs=function(e,t,n,i){return e.query?e:{url:e,query:t,variables:n,requestHeaders:i,signal:void 0}},t.parseBatchRequestsExtendedArgs=function(e,t,n){return e.documents?e:{url:e,documents:t,requestHeaders:n,signal:void 0}}})),L=l((function(e,t){var n,i=c&&c.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0}),t.ClientError=void 0;var r=function(e){function t(n,i){var r=this,s=t.extractMessage(n)+": "+JSON.stringify({response:n,request:i});return r=e.call(this,s)||this,Object.setPrototypeOf(r,t.prototype),r.response=n,r.request=i,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(r,t),r}return i(t,e),t.extractMessage=function(e){try{return e.errors[0].message}catch(t){return"GraphQL Error (Code: "+e.status+")"}},t}(Error);t.ClientError=r})),R=l((function(e,t){var n=c&&c.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},n.apply(this,arguments)},i=c&&c.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function o(e){try{a(i.next(e))}catch(e){s(e)}}function u(e){try{a(i.throw(e))}catch(e){s(e)}}function a(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,u)}a((i=i.apply(e,t||[])).next())}))},r=c&&c.__generator||function(e,t){var n,i,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(r=2&s[0]?i.return:s[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;switch(i=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,i=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(6===s[0]&&o.label<r[1]){o.label=r[1],r=s;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(s);break}r[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],i=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLWebSocketClient=void 0;var s="ping",o="pong",u="complete",a=function(){function e(e,t,n){this._type=e,this._payload=t,this._id=n}return Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"payload",{get:function(){return this._payload},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){var e={type:this.type};return null!=this.id&&null!=this.id&&(e.id=this.id),null!=this.payload&&null!=this.payload&&(e.payload=this.payload),JSON.stringify(e)},enumerable:!1,configurable:!0}),e.parse=function(t,n){var i=JSON.parse(t),r=i.id;return new e(i.type,n(i.payload),r)},e}(),l=function(){function e(e,t){var c=this,l=t.onInit,d=t.onAcknowledged,v=t.onPing,p=t.onPong;this.socketState={acknowledged:!1,lastRequestId:0,subscriptions:{}},this.socket=e,e.onopen=function(){return i(c,void 0,void 0,(function(){var t,n,i,s;return r(this,(function(r){switch(r.label){case 0:return this.socketState.acknowledged=!1,this.socketState.subscriptions={},n=(t=e).send,i=h,l?[4,l()]:[3,2];case 1:return s=r.sent(),[3,3];case 2:s=null,r.label=3;case 3:return n.apply(t,[i.apply(void 0,[s]).text]),[2]}}))}))},e.onclose=function(){c.socketState.acknowledged=!1,c.socketState.subscriptions={}},e.onerror=function(e){console.error(e)},e.onmessage=function(t){try{var i=(void 0===y&&(y=function(e){return e}),a.parse(t.data,y));switch(i.type){case"connection_ack":return void(c.socketState.acknowledged?console.warn("Duplicate CONNECTION_ACK message ignored"):(c.socketState.acknowledged=!0,d&&d(i.payload)));case s:return void(v?v(i.payload).then((function(t){return e.send(f(t).text)})):e.send(f(null).text));case o:return void(p&&p(i.payload))}if(!c.socketState.acknowledged)return;if(null==i.id||!c.socketState.subscriptions[i.id])return;var r=c.socketState.subscriptions[i.id],l=r.query,h=r.variables,m=r.subscriber;switch(i.type){case"next":return!i.payload.errors&&i.payload.data&&m.next&&m.next(i.payload.data),void(i.payload.errors&&m.error&&m.error(new L.ClientError(n(n({},i.payload),{status:200}),{query:l,variables:h})));case"error":return void(m.error&&m.error(new L.ClientError({errors:i.payload,status:200},{query:l,variables:h})));case u:return m.complete&&m.complete(),void delete c.socketState.subscriptions[i.id]}}catch(t){console.error(t),e.close(1006)}var y;e.close(4400,"Unknown graphql-ws message.")}}return e.prototype.makeSubscribe=function(e,t,n,i){var r,s,o=this,c=(this.socketState.lastRequestId++).toString();return this.socketState.subscriptions[c]={query:e,variables:n,subscriber:i},this.socket.send((r=c,s={query:e,operationName:t,variables:n},new a("subscribe",s,r)).text),function(){o.socket.send(function(e){return new a(u,void 0,e)}(c).text),delete o.socketState.subscriptions[c]}},e.prototype.rawRequest=function(e,t){var n=this;return new Promise((function(i,r){var s;n.rawSubscribe(e,{next:function(e,t){return s={data:e,extensions:t}},error:r,complete:function(){return i(s)}},t)}))},e.prototype.request=function(e,t){var n=this;return new Promise((function(i,r){var s;n.subscribe(e,{next:function(e){return s=e},error:r,complete:function(){return i(s)}},t)}))},e.prototype.subscribe=function(e,t,n){var i=B.resolveRequestDocument(e);return this.makeSubscribe(i.query,i.operationName,n,t)},e.prototype.rawSubscribe=function(e,t,n){return this.makeSubscribe(e,void 0,n,t)},e.prototype.ping=function(e){this.socket.send(function(e){return new a(s,e,void 0)}(e).text)},e.prototype.close=function(){this.socket.close(1e3)},e.PROTOCOL="graphql-transport-ws",e}();function h(e){return new a("connection_init",e)}function f(e){return new a(o,e,void 0)}t.GraphQLWebSocketClient=l})),B=l((function(e,t){var n=c&&c.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},n.apply(this,arguments)},i=c&&c.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=c&&c.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=c&&c.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t},o=c&&c.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function o(e){try{a(i.next(e))}catch(e){s(e)}}function u(e){try{a(i.throw(e))}catch(e){s(e)}}function a(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,u)}a((i=i.apply(e,t||[])).next())}))},u=c&&c.__generator||function(e,t){var n,i,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(r=2&s[0]?i.return:s[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;switch(i=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,i=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(6===s[0]&&o.label<r[1]){o.label=r[1],r=s;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(s);break}r[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],i=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}},a=c&&c.__rest||function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},l=c&&c.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLWebSocketClient=t.gql=t.resolveRequestDocument=t.batchRequests=t.request=t.rawRequest=t.GraphQLClient=t.ClientError=void 0;var f=s(h),d=f,v=l(M);Object.defineProperty(t,"ClientError",{enumerable:!0,get:function(){return L.ClientError}});var p=function(e){var t={};return e&&("undefined"!=typeof Headers&&e instanceof Headers||e instanceof d.Headers?t=function(e){var t={};return e.forEach((function(e,n){t[n]=e})),t}(e):Array.isArray(e)?e.forEach((function(e){t[e[0]]=e[1]})):t=e),t},m=function(e){return e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim()},y=function(e){var t=e.url,i=e.query,r=e.variables,s=e.operationName,a=e.headers,c=e.fetch,l=e.fetchOptions;return o(void 0,void 0,void 0,(function(){var e;return u(this,(function(o){switch(o.label){case 0:return e=v.default(i,r,s,l.jsonSerializer),[4,c(t,n({method:"POST",headers:n(n({},"string"==typeof e?{"Content-Type":"application/json"}:{}),a),body:e},l))];case 1:return[2,o.sent()]}}))}))},b=function(e){var t=e.url,i=e.query,r=e.variables,s=e.operationName,a=e.headers,c=e.fetch,l=e.fetchOptions;return o(void 0,void 0,void 0,(function(){var e;return u(this,(function(o){switch(o.label){case 0:return e=function(e){var t=e.query,n=e.variables,i=e.operationName,r=e.jsonSerializer;if(!Array.isArray(t)){var s=["query="+encodeURIComponent(m(t))];return n&&s.push("variables="+encodeURIComponent(r.stringify(n))),i&&s.push("operationName="+encodeURIComponent(i)),s.join("&")}if(void 0!==n&&!Array.isArray(n))throw new Error("Cannot create query with given variable type, array expected");var o=t.reduce((function(e,t,i){return e.push({query:m(t),variables:n?r.stringify(n[i]):void 0}),e}),[]);return"query="+encodeURIComponent(r.stringify(o))}({query:i,variables:r,operationName:s,jsonSerializer:l.jsonSerializer}),[4,c(t+"?"+e,n({method:"GET",headers:a},l))];case 1:return[2,o.sent()]}}))}))},w=function(){function e(e,t){this.url=e,this.options=t||{}}return e.prototype.rawRequest=function(e,t,i){return o(this,void 0,void 0,(function(){var r,s,o,c,l,h,d,v,m,y;return u(this,(function(){return r=P.parseRawRequestArgs(e,t,i),o=(s=this.options).headers,l=void 0===(c=s.fetch)?f.default:c,d=void 0===(h=s.method)?"POST":h,v=a(s,["headers","fetch","method"]),m=this.url,void 0!==r.signal&&(v.signal=r.signal),y=S(r.query).operationName,[2,g({url:m,query:r.query,variables:r.variables,headers:n(n({},p(j(o))),p(r.requestHeaders)),operationName:y,fetch:l,method:d,fetchOptions:v})]}))}))},e.prototype.request=function(e,t,i){return o(this,void 0,void 0,(function(){var r,s,o,c,l,h,d,v,m,y,b;return u(this,(function(u){switch(u.label){case 0:return r=P.parseRequestArgs(e,t,i),o=(s=this.options).headers,l=void 0===(c=s.fetch)?f.default:c,d=void 0===(h=s.method)?"POST":h,v=a(s,["headers","fetch","method"]),m=this.url,void 0!==r.signal&&(v.signal=r.signal),y=S(r.document),b=y.operationName,[4,g({url:m,query:y.query,variables:r.variables,headers:n(n({},p(j(o))),p(r.requestHeaders)),operationName:b,fetch:l,method:d,fetchOptions:v})];case 1:return[2,u.sent().data]}}))}))},e.prototype.batchRequests=function(e,t){return o(this,void 0,void 0,(function(){var i,r,s,o,c,l,h,d,v,m,y;return u(this,(function(u){switch(u.label){case 0:return i=P.parseBatchRequestArgs(e,t),s=(r=this.options).headers,c=void 0===(o=r.fetch)?f.default:o,h=void 0===(l=r.method)?"POST":l,d=a(r,["headers","fetch","method"]),v=this.url,void 0!==i.signal&&(d.signal=i.signal),m=i.documents.map((function(e){return S(e.document).query})),y=i.documents.map((function(e){return e.variables})),[4,g({url:v,query:m,variables:y,headers:n(n({},p(j(s))),p(i.requestHeaders)),operationName:void 0,fetch:c,method:h,fetchOptions:d})];case 1:return[2,u.sent().data]}}))}))},e.prototype.setHeaders=function(e){return this.options.headers=e,this},e.prototype.setHeader=function(e,t){var n,i=this.options.headers;return i?i[e]=t:this.options.headers=((n={})[e]=t,n),this},e.prototype.setEndpoint=function(e){return this.url=e,this},e}();function g(e){var t=e.url,i=e.query,r=e.variables,s=e.headers,c=e.operationName,l=e.fetch,h=e.method,f=void 0===h?"POST":h,d=e.fetchOptions;return o(this,void 0,void 0,(function(){var e,o,h,v,p,m,w,g,O,T;return u(this,(function(u){switch(u.label){case 0:return e="POST"===f.toUpperCase()?y:b,o=Array.isArray(i),[4,e({url:t,query:i,variables:r,operationName:c,headers:s,fetch:l,fetchOptions:d})];case 1:return[4,E(h=u.sent(),d.jsonSerializer)];case 2:if(v=u.sent(),p=o&&Array.isArray(v)?!v.some((function(e){return!e.data})):!!v.data,m=!v.errors||"all"===d.errorPolicy||"ignore"===d.errorPolicy,h.ok&&m&&p)return w=h.headers,g=h.status,O=a(v,["errors"]),T="ignore"===d.errorPolicy?O:v,[2,n(n({},o?{data:T}:T),{headers:w,status:g})];throw new L.ClientError(n(n({},"string"==typeof v?{error:v}:v),{status:h.status,headers:h.headers}),{query:i,variables:r})}}))}))}function O(e,t,i,r){return o(this,void 0,void 0,(function(){var s;return u(this,(function(){return s=P.parseRequestExtendedArgs(e,t,i,r),[2,new w(s.url).request(n({},s))]}))}))}function E(e,t){return void 0===t&&(t=V.defaultJsonSerializer),o(this,void 0,void 0,(function(){var n,i,r;return u(this,(function(s){switch(s.label){case 0:return e.headers.forEach((function(e,t){"content-type"===t.toLowerCase()&&(n=e)})),n&&n.toLowerCase().startsWith("application/json")?(r=(i=t).parse,[4,e.text()]):[3,2];case 1:return[2,r.apply(i,[s.sent()])];case 2:return[2,e.text()]}}))}))}function T(e){var t,n=void 0,i=e.definitions.filter((function(e){return"OperationDefinition"===e.kind}));return 1===i.length&&(n=null===(t=i[0].name)||void 0===t?void 0:t.value),n}function S(e){if("string"==typeof e){var t=void 0;try{t=T(N.parse(e))}catch(e){}return{query:e,operationName:t}}var n=T(e);return{query:A.print(e),operationName:n}}function j(e){return"function"==typeof e?e():e}t.GraphQLClient=w,t.rawRequest=function(e,t,i,r){return o(this,void 0,void 0,(function(){var s;return u(this,(function(){return s=P.parseRawRequestExtendedArgs(e,t,i,r),[2,new w(s.url).rawRequest(n({},s))]}))}))},t.request=O,t.batchRequests=function(e,t,i){return o(this,void 0,void 0,(function(){var r;return u(this,(function(){return r=P.parseBatchRequestsExtendedArgs(e,t,i),[2,new w(r.url).batchRequests(n({},r))]}))}))},t.default=O,t.resolveRequestDocument=S,t.gql=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e.reduce((function(e,n,i){return""+e+n+(i in t?t[i]:"")}),"")},Object.defineProperty(t,"GraphQLWebSocketClient",{enumerable:!0,get:function(){return R.GraphQLWebSocketClient}})}));class G{static getQueryParams(e){const t=new Map,n=/[?&]?([^=]+)=([^&]*)/g;let i;for(e=(e=window.unescape(e)).split("+").join(" ");i=n.exec(e);)t.set(window.decodeURIComponent(i[1]),i[2]);return t.set("urlBase",this.getUrlBase()),window.moduleID&&window.URIServiceBroker&&(t.set("moduleID",window.moduleID),t.set("URIServiceBroker",window.URIServiceBroker)),t}static getUrlBase(){return window.mock_url?window.mock_url:`${location.protocol}//${location.hostname}${location.port?":"+location.port:""}`}static getResourceIdFromUrlToken(e){try{const t=e.split("/");return t[1]?atob(t[1]):null}catch(e){throw new Error("Erro ao obter resourceId:"+e)}}static getPkObjectFromUrlToken(e){try{let t=e.split("/")[2];return t?t.indexOf("&")>-1?JSON.parse(atob(t.split("&")[0])):JSON.parse(atob(t)):null}catch(e){throw new Error("Erro ao obter a PK do objeto:"+e)}}}class J{constructor(e,t,n){this.req=e,this.resolve=t,this.reject=n}putVariable(e,t){this.req.values[e]=t}reCall(){return Q.get().callGraphQL(this.req).then(this.resolve,this.reject)}putTXPro(t,n){this.req&&this.req.values&&(this.req.values.changes||[]).length&&this.req.values.changes[0].fields.push({dataType:e.TEXT,fieldName:`${a.DATA_UNIT_TRANSIENT_PREFIX_NAME}${t}`,value:n})}}class H{constructor(e,t,n,i){this.serviceName=e,this.requestBody=t,this.successCallback=n,this.errorCallback=i}reCall(e){return e&&(this.requestBody=e),Q.get().callServiceBroker(this.serviceName,this.requestBody).then(this.successCallback,this.errorCallback)}}var z=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new Promise((function(i,r){!function(e,t,n,i){Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)}(i,r,(t=e[n](t)).done,t.value)}))}}};class Q{constructor(){this.ready=!0,this.watingRequestsById=new Map}static get(){if(!Q.instance){Q.instance=new Q;const e=document.querySelector(this.appTagName);null===e?Q.instance.resume():(!0===t.getContextValue("__SNK__APPLICATION__LOADING__")&&Q.instance.pause(),e.addEventListener("applicationLoading",(()=>Q.instance.pause())),e.addEventListener("applicationLoaded",(()=>Q.instance.resume())))}return this.instance.application=t.getContextValue("__SNK__APPLICATION__"),this.instance}static getGraphQLPath(){return n.isEmpty(this.instance.graphqlPath)&&null!=this.instance.application&&(this.instance.graphqlPath=`/${this.instance.application.getModuleName()}/graphql`),this.instance.graphqlPath}static addRequestListener(e){Q.requestListener.indexOf(e)<0&&Q.requestListener.push(e)}static removeRequestListener(e){const t=Q.requestListener.indexOf(e);t>-1&&Q.requestListener.splice(t,1)}processGraphQlErrorInfo(e){var t,n;const s="Falha detectada",o=e[0];if(o.length>0){const e=o[0],u=(null==e?void 0:e.message)?null==e?void 0:e.message:"Não há mensagem de erro",a=(null===(t=null==e?void 0:e.extensions)||void 0===t?void 0:t.level)?e.extensions.level:"ERROR",c=(null===(n=null==e?void 0:e.extensions)||void 0===n?void 0:n.code)?e.extensions.code:"";return"WARNING"===a?new r(s,u,c):new i(s,u,c)}return new i(s,"Não há informações sobre o erro")}processServiceBrokerErrorInfo(e){const t="Falha detectada";let n,s,{statusMessage:o,tsError:u}=e||{};return o||(o="Não há informações sobre o erro"),u&&(n=u.tsErrorCode,s=u.tsErrorLevel),"WARNING"===s?new r(t,o,n):new i(t,o,n)}async callGraphQL(e,t=!1){var n;this.ready&&(this.pause(),window.requestAnimationFrame((()=>this.resume())));const i=this.getReqKey(e);if(e.queryID=i,e.values.queryID=i,Q.clientEventsByID){e.values.registeredEventListeners=[];for(let[t]of Q.clientEventsByID)e.values.registeredEventListeners.push(t)}return this.ready?new Promise((async(n,r)=>{let s=this.getQueryTemplate(e);const o=await this.fecthGraphQL([{document:s,variables:e.values}],t);o.errors.length>0?await this.proccesGraphQLClientEvents(null==o?void 0:o.extensions,e,n,r)||r(this.processGraphQlErrorInfo(o.errors)):(n(o.data[0][i]),await this.proccesGraphQLClientEvents(null==o?void 0:o.extensions,e,n,r))})):(this.watingRequestsById.has(i)||this.watingRequestsById.set(i,new K(e,t)),null===(n=this.watingRequestsById.get(i))||void 0===n?void 0:n.promise)}resolveURL(){return G.getUrlBase()}async proccesGraphQLClientEvents(e,t,n,i){if(null==e)return!1;for(const s in e){const{clientEvents:o}=e[s];if(!o)return!1;for(const e in o){if(!Q.hasClientEvent(e))throw console.warn(`Client event ${e} not registered`),new r("ClientEvent não registrado",`Ocorreu o client event ${e} porém não há client event registrado na aplicação.`);Q.clientEventsByID.get(e).forEach((async r=>{await r({id:e,content:JSON.parse(o[e])},new J(t,n,i))}))}return Object.keys(o).length>0}return!1}async processServiceBrokerClientEvents(e){var t,n,i,r,s,o,u,a;const{clientEvents:c,serviceName:l,payloadJson:h,accept:f,reject:d}=e;if(!(null==c?void 0:c.length))return;const v=new H(l,h,f,d);try{for(var p,m=!0,y=z(c);!(t=(p=await y.next()).done);){r=p.value,m=!1;try{const e=r;if(Q.hasClientEvent(e.id)){const t=Q.clientEventsByID.get(e.id),n={id:e.id,content:e};try{for(var b,w=!0,g=(o=void 0,z(t));!(s=(b=await g.next()).done);){a=b.value,w=!1;try{const e=a;await e(n,v)}finally{w=!0}}}catch(e){o={error:e}}finally{try{w||s||!(u=g.return)||await u.call(g)}finally{if(o)throw o.error}}}}finally{m=!0}}}catch(e){n={error:e}}finally{try{m||t||!(i=y.return)||await i.call(y)}finally{if(n)throw n.error}}}async processPrinting(e){"true"===(null==e?void 0:e.pendingPrinting)&&await u.getInstance().processPendingPrinting(null==e?void 0:e.transactionId),"localPrintings"in e&&u.getInstance().processLocalPrinting(null==e?void 0:e.localPrintings)}getContext(e){var t;const i=G.getQueryParams(location.search);return{baseUrl:`${this.resolveURL()}/${e}/service.sbr`,appName:window.APPLICATION_NAME||"SankhyaBlocks",mgeSession:`${window.mgeSession||i.get("mgeSession")}`,globalID:window.GLOBALID||n.generateUUID(),resourceID:window.resourceID||(null===(t=window.workspace)||void 0===t?void 0:t.resourceID)}}async callServiceBroker(e,t,r){return new Promise((async(o,u)=>{const a=e.split("@"),[c,l]=2===a.length?a:["mge",e],h=this.getContext(c);let f=`${h.baseUrl}?serviceName=${l}&counter=21&application=${h.appName}&outputType=json&preventTransform=false&mgeSession=${h.mgeSession}&resourceID=${h.resourceID}&globalID=${h.globalID}&allowConcurrentCalls=true`;f=await this.addUrlParams(r,f),document.cookie=`JSESSIONID=${h.mgeSession};`;const d=new XMLHttpRequest;var v={};"string"==typeof t&&(t=s.stringToObject(t)),t.hasOwnProperty("requestBody")?v=t:v.requestBody=t;for(let[e]of Q.clientEventsByID)v.requestBody.hasOwnProperty("clientEventList")||(v.requestBody.clientEventList={clientEvent:[]}),v.requestBody.clientEventList.clientEvent.push({$:e});const p=n.generateUUID();Q.requestListener.forEach((e=>e.onRequestStart({url:f,requestBody:t,requestId:p}))),d.open("POST",f,!0),d.withCredentials=!0,d.send(s.objectToString(v)),d.onreadystatechange=async()=>{var n;if(4==d.readyState&&200==d.status)try{const t=JSON.parse(d.responseText);await this.processPrinting(t),this.isServiceBrokerError(t)?u(this.processServiceBrokerErrorInfo(t)):t.status==Q.SERVICE_BROKER_STATUS.SERVICE_CANCELED?t.statusMessage&&console.debug(`[DataFetcher] ${t.statusMessage}`):(o(t.responseBody),t.status==Q.SERVICE_BROKER_STATUS.INFO&&(null===(n=this.application)||void 0===n||n.info(t.statusMessage))),this.processServiceBrokerClientEvents({clientEvents:null==t?void 0:t.clientEvents,serviceName:e,payloadJson:v,accept:o,reject:u})}catch(e){console.warn(`Erro ao executar serviço: ${e}`),u(new i("Erro ao executar serviço",e))}else 4==d.readyState&&200!=d.status&&u(new i(`Erro ao executar serviço: ${e}`,d.responseText));Q.requestListener.forEach((e=>e.onRequestEnd({url:f,requestBody:t,requestId:p})))}}))}async addUrlParams(e,t){var i;const r=(null==e?void 0:e.urlParams)||{},s=await(null===(i=this.application)||void 0===i?void 0:i.getAttributeFromHTMLWrapper("VSS"));if(n.isEmpty(s)||(r.vss=s),0===Object.keys(r).length)return t;-1===t.indexOf("?")&&(t+="?");for(const e in r)t+=`&${e}=${r[e]}`;return t}isServiceBrokerError(e){return!e.hasOwnProperty("status")||e.status==Q.SERVICE_BROKER_STATUS.ERROR||e.status==Q.SERVICE_BROKER_STATUS.TIMEOUT}getReqKey(e){return window.btoa(n.hashCode(`${e.query}${JSON.stringify(e.values||"")}`)).replace(/=/g,"")}getQueryTemplate(e){return(e.query||"").replaceAll("$queryAlias$",e.queryID)}pause(){this.ready=!1}async resume(){if(this.ready=!0,this.watingRequestsById.size>0){const e=this.watingRequestsById;this.watingRequestsById=new Map,this.executePendingRequest(e)}}async executePendingRequest(e){var t,n;const r=[];let s=!0;e.forEach((e=>{const t=this.getQueryTemplate(e.request);r.push({document:t,variables:Object.assign({},e.request.values)}),s=s&&e.quietMode}));const u=await this.fecthGraphQL(r,s),{data:a,errors:c,extensions:l}=u;for(const r of c){const s=Object.values(r);for(const u of s){const s=e.get(u.request.variables[u.index].queryID),a=await this.proccesGraphQLClientEvents(l,s.request,s.resolve,s.reject),c=await Promise.race([s.promise,new Promise((e=>{e(!1)}))]);a&&!1!==c||(Object.keys(r[0].extensions).includes("SERVICE_CANCELED")||Object.keys(l).includes("isServiceCancelled")?((null===(t=e.get(u.request.variables[u.index].queryID))||void 0===t?void 0:t.reject)||Promise.reject)(new o("Service canceled",u.message)):((null===(n=e.get(u.request.variables[u.index].queryID))||void 0===n?void 0:n.reject)||Promise.reject)(new i("Falha detectada",u.message)))}}for(const t of a){const n=Object.entries(t);for(const[t,i]of n){const n=e.get(t);await this.proccesGraphQLClientEvents(l,n.request,n.resolve,n.reject),((null==n?void 0:n.resolve)||Promise.resolve)(i)}}}buildGraphQlURL(e){const t=G.getQueryParams(location.search),n=`${window.mgeSession||t.get("mgeSession")}`;let i=`${this.resolveURL()+Q.getGraphQLPath()}`;return n&&(i+=`?mgeSession=${n}`),e&&(i+=(i.indexOf("?")>-1?"&":"?")+"quietMode=true"),i}async fecthGraphQL(e,t){const r=[],s=[],o=[],u=this.buildGraphQlURL(t),a=n.generateUUID();Q.requestListener.forEach((t=>t.onRequestStart({url:u,requestBody:e,requestId:a})));try{(await B.batchRequests(u,e,{"Content-Type":`application/json; charset=${window.SERVER_ENCODING||"UTF-8"}`})).forEach(((t,n)=>{var i;(null===(i=null==t?void 0:t.errors)||void 0===i?void 0:i.length)>0?s.push(t.errors.map((t=>this.normalizeErrorResponse(t,e,n)))):r.push(t.data),t.extensions&&o.push(t.extensions)}))}catch(t){if(this.isHttpError(t))throw Q.requestListener.forEach((t=>t.onRequestEnd({url:u,requestBody:e,requestId:a}))),new i("Falha de comunicação",t.message);{const e=t.request;Object.entries(t.response).forEach((([t,n])=>{n.errors?s.push(n.errors.map((n=>(n.request=e,n.index=Number(t),n)))):n.data&&r.push(n.data)}))}}return Q.requestListener.forEach((t=>t.onRequestEnd({url:u,requestBody:e,requestId:a}))),{data:r,errors:s,extensions:o}}isHttpError(e){var t;return!e.response&&!e.request||(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.status)>=300}normalizeErrorResponse(e,t,n){const i=Object.assign({},t[n]),{variables:r}=i;return i.variables=[],i.variables[n]=r,e.request=i,e.index=Number(n),e}static addClientEvent(e,t){let n=Q.clientEventsByID.get(e);if(null!=n){if(n.some((e=>e.toString()===t.toString())))return;n.push(t)}else Q.clientEventsByID.set(e,[t])}static hasClientEvent(e){return Q.clientEventsByID.has(e)}static removeClientEvent(e){return Q.clientEventsByID.delete(e)}}Q.appTagName="snk-application",Q.requestListener=[],Q.SERVICE_BROKER_STATUS={ERROR:0,INFO:2,OK:1,TIMEOUT:3,SERVICE_CANCELED:4},Q.clientEventsByID=new Map;class K{constructor(e,t){this._resolve=()=>{},this._reject=()=>{},this._request=void 0,this._request=e,this._promisse=new Promise(((e,t)=>{this._resolve=e,this._reject=t})),this._quietMode=t}get resolve(){return this._resolve}get reject(){return this._reject}get promise(){return this._promisse}get request(){return this._request}get quietMode(){return this._quietMode}}export{Q as D,G as U,B as d}
@@ -0,0 +1 @@
1
+ import{r as i,c as o,h as t,H as n,g as s}from"./p-d2d301a6.js";import{UserInterface as e,ObjectUtils as l,StringUtils as a,ApplicationContext as r,ElementIDUtils as d,ArrayUtils as h}from"@sankhyalabs/core";import{DataType as c,getConvertedValue as f}from"@sankhyalabs/core/dist/dataunit/metadata/DataType";import{CheckMode as u,ApplicationUtils as g,DialogType as v}from"@sankhyalabs/ezui/dist/collection/utils";import{c as m,D as b,d as p,C as z,a as _,b as k,A as C}from"./p-95ce311a.js";import{S as x}from"./p-fcc662c6.js";import{R as y}from"./p-688dcb4c.js";import{S as F}from"./p-fa816fb2.js";import{U as w}from"./p-acca8a69.js";import{buildFormConfigFromDataUnit as D}from"@sankhyalabs/ezui/dist/collection/utils/form";import"./p-763edad2.js";import"./p-ff1990ad.js";import"./p-00278e07.js";import"./p-8d884fab.js";import"@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata";const E=class{constructor(t){i(this,t),this.configOptionsChanged=o(this,"configOptionsChanged",7),this._defaultType=void 0,this.fieldConfig={},this.idConfig=void 0,this.dataUnit=void 0,this.messagesBuilder=void 0}onConfigDefault(i){null!=i&&(this._defaultType=i,this.fieldConfig.defaultValue={type:this._defaultType},this.configOptionsChanged.emit(this.fieldConfig))}buildOptions(){var i,o,t;let n=null===(t=null===(i=this.dataUnit)||void 0===i?void 0:i.getField(null===(o=this.fieldConfig)||void 0===o?void 0:o.name))||void 0===t?void 0:t.userInterface;return n===e.SEARCH&&(n=e.INTEGERNUMBER),m.UserInterface[n]}enabledValueDefault(){var i,o,t;const n=null===(i=this.dataUnit)||void 0===i?void 0:i.getField(null===(o=this.fieldConfig)||void 0===o?void 0:o.name),s=null===(t=null==n?void 0:n.properties)||void 0===t?void 0:t.allowDefault,l=m.UserInterface.hasOwnProperty(null==n?void 0:n.userInterface)||(null==n?void 0:n.userInterface)===e.SEARCH;return!(null!=s&&"true"!==s||!l)}isAllowDefault(){var i,o;const t=null===(o=null===(i=this._fieldProperties)||void 0===i?void 0:i.properties)||void 0===o?void 0:o.allowDefault;return null==t||"true"===t}loadDefaultValue(){var i;null==this.fieldConfig?(this._defaultType=b.fixed,this.fieldConfig={defaultValue:{type:this._defaultType}}):null==(null===(i=this.fieldConfig.defaultValue)||void 0===i?void 0:i.type)?(this._defaultType=b.fixed,this.fieldConfig.defaultValue={type:this._defaultType}):this._defaultType=this.fieldConfig.defaultValue.type}getFieldProperties(i){var o;if(null!=i)return null===(o=this.dataUnit)||void 0===o?void 0:o.getField(i)}getMessage(i,o){return this.messagesBuilder.getMessage(i,o)}getDefaultType(){var i;return null!==(i=this.fieldConfig.defaultValue.type)&&void 0!==i?i:b.fixed}getEnabledByProperty(i,o){const t=this._fieldProperties;if(null==t)return!0;const n=t.properties||{};return n.hasOwnProperty(o)?"S"!==n[o]:!0!==t[i]}getValueByProperty(i){const o=this._fieldProperties;return null!=o&&!0===o[i]||this.fieldConfig[i]}getValidatedValue(i){var o,t;if(null==i)return;const n=null===(o=this.dataUnit)||void 0===o?void 0:o.getField(null===(t=this.fieldConfig)||void 0===t?void 0:t.name),s=null==n?void 0:n.dataType;if(null==s)return;const e=null!=(null==i?void 0:i.waitmessage)?void 0:s!==c.OBJECT&&s!==c.DATE&&"object"==typeof i?i.value:i;return s===c.OBJECT?JSON.stringify(e):e}buildInputDefault({value:i,enabled:o,label:n,name:s,required:a,userInterface:r},d,h){let c,f=0,u=0;const g=null==r||null==p[r]?p.DEFAULT:p[r];if(r===e.OPTIONSELECTOR){const i=null==d?void 0:d.options;if("string"==typeof i){const o=l.stringToObject(i);c=Object.keys(o).map((i=>({value:i,label:o[i]})))}else c=i}else r===e.DECIMALNUMBER&&(f=Number((null==d?void 0:d.precision)||2),u=Number((null==d?void 0:d.prettyPrecision)||f));return t(g,Object.assign({value:i,enabled:o,label:n,"data-field-name":s,key:s,onEzChange:i=>this.onChange(null==i?void 0:i.detail)},this.getConditionalAttributes(r,a,c,f,u,h)))}getConditionalAttributes(i,o,t,n,s,l){switch(i){case e.SEARCH:return{suppressEmptyOption:o,optionLoader:i=>this.onSearch(i)};case e.OPTIONSELECTOR:return{suppressEmptyOption:o,options:t};case e.CHECKBOX:case e.SWITCH:return{mode:l};case e.INTEGERNUMBER:case e.DECIMALNUMBER:return{precision:n,prettyPrecision:s,onEzStartChange:i=>this.onChange(null==i?void 0:i.detail)};case e.DATE:case e.DATETIME:case e.TIME:return{onEzStartChange:i=>this.onChange(null==i?void 0:i.detail)};default:return{}}}onChange(i){this.fieldConfig.defaultValue.value=this.getValidatedValue(i),this.configOptionsChanged.emit(this.fieldConfig)}onSearch(i){if(null!=this._application&&null!=this.fieldConfig)return this._application.executeSearch(i,this.fieldConfig.name,this.dataUnit)}buildField(i,o){const{name:t,label:n,readOnly:s,required:l,defaultValue:r}=o,{userInterface:d,properties:h}=i;let c,g=a.getBooleanValue(null==h?void 0:h.allowDefault,!s);d===e.FILE&&(g=!1),g&&(c=null==r?void 0:r.value,null!=c&&(c=f(null==i?void 0:i.dataType,c)));const v={value:c,enabled:g,label:n,name:t,required:l,userInterface:d};switch(d){case e.SWITCH:return this.buildInputDefault(v,void 0,u.SWITCH);case e.CHECKBOX:return this.buildInputDefault(v,void 0,u.REGULAR);case e.OPTIONSELECTOR:case e.DECIMALNUMBER:return this.buildInputDefault(v,h);default:return this.buildInputDefault(v)}}componentWillLoad(){var i;this.loadDefaultValue(),this._application=r.getContextValue("__SNK__APPLICATION__"),this._fieldProperties=this.getFieldProperties(null===(i=this.fieldConfig)||void 0===i?void 0:i.name)}componentDidLoad(){d.addIDInfo(this._element,this.fieldConfig.name)}render(){var i,o;return t(n,null,t("div",{id:this.idConfig},t("div",{class:"ez-row ez-padding--medium"},t("div",{class:"ez-col ez-col--sd-12 ez-col--tb-4 ez-padding--small"},t("ez-text-input",{label:this.getMessage("snkConfigOptions.label.nameField"),value:null===(i=this.fieldConfig)||void 0===i?void 0:i.label,onEzChange:i=>{this.fieldConfig.label=i.detail,this.configOptionsChanged.emit(this.fieldConfig)}})),t("div",{class:"ez-col ez-col--sd-12 ez-col--tb-4 ez-padding--small"},t("ez-combo-box",{label:this.getMessage("snkConfigOptions.label.typeValueDefault"),suppressEmptyOption:!0,enabled:this.enabledValueDefault(),onEzChange:i=>{var o;return this.onConfigDefault(null===(o=i.detail)||void 0===o?void 0:o.value)},value:this.getDefaultType()},t("option",{value:b.fixed},this.getMessage("snkConfigOptions.options.valueFixed")),t("option",{value:b.variable},this.getMessage("snkConfigOptions.options.variable")))),t("div",{class:"ez-col ez-col--sd-12 ez-col--tb-4 ez-padding--small"},this._defaultType===b.variable?t("ez-combo-box",{label:this.getMessage("snkConfigOptions.label.valueDefault"),enabled:this.isAllowDefault(),onEzChange:i=>{var o;this.fieldConfig.defaultValue.value=null===(o=i.detail)||void 0===o?void 0:o.value,this.configOptionsChanged.emit(this.fieldConfig)},value:this.fieldConfig.defaultValue.value,options:this.buildOptions()}):(null===(o=this._fieldProperties)||void 0===o?void 0:o.userInterface)&&this.buildField(this._fieldProperties,this.fieldConfig))),t("div",{class:"ez-row ez-padding--medium config-options__switch-row"},t("div",{class:"ez-col ez-col--sd-12 ez-col--tb-4 ez-padding--small"},t("ez-check",{mode:u.SWITCH,label:this.getMessage("snkConfigOptions.label.clearDuplicate"),value:this.fieldConfig.cleanOnCopy,onEzChange:i=>{this.fieldConfig.cleanOnCopy=i.detail,this.configOptionsChanged.emit(this.fieldConfig)}})),t("div",{class:"ez-col ez-col--sd-12 ez-col--tb-4 ez-padding--small"},t("ez-check",{mode:u.SWITCH,label:this.getMessage("snkConfigOptions.label.requiredField"),enabled:this.getEnabledByProperty("required","systemRequired"),value:this.getValueByProperty("required"),onEzChange:i=>{this.fieldConfig.required=i.detail,this.configOptionsChanged.emit(this.fieldConfig)}})),t("div",{class:"ez-col ez-col--sd-12 ez-col--tb-4 ez-padding--small"},t("ez-check",{mode:u.SWITCH,label:this.getMessage("snkConfigOptions.label.protectedField"),enabled:this.getEnabledByProperty("readOnly","systemReadOnly"),value:this.getValueByProperty("readOnly"),onEzChange:i=>{this.fieldConfig.readOnly=i.detail,this.configOptionsChanged.emit(this.fieldConfig)}})))))}get _element(){return s(this)}};E.style=".sc-snk-config-options-h{--snk-config-options--border:2px solid var(--color--secondary-200, #D2D3DA);width:100%;border-radius:15px;border:var(--snk-config-options--border)}.config-options__switch-row.sc-snk-config-options{margin-top:-30px}";const T=class{constructor(t){i(this,t),this.exit=o(this,"exit",7),this.actionClick=o(this,"actionClick",7),this.formItemsReady=o(this,"formItemsReady",7),this._customEditors=new Map,this._dataUnit=void 0,this._dataState=void 0,this._showFormConfig=!1,this._configManager=void 0,this.configName=void 0,this.recordsValidator=void 0,this.messagesBuilder=void 0,this.formLegacyConfigName=void 0,this.resourceID=void 0}async showConfig(){this._showFormConfig=!0}async hideConfig(){this._showFormConfig=!1}async addCustomEditor(i,o){if(this._form)return void this._form.addCustomEditor(i,o);const t=new Map(this._customEditors);t.set(i,o),this._customEditors=t}async setFieldProp(i,o,t){await this._form.setFieldProp(i,o,t)}closeConfig(){this.hideConfig()}dataunitReady(){d.addIDInfo(this._element,null,{dataUnit:this._dataUnit})}setCustomEditors(){if(this._form)for(const[i,o]of this._customEditors)this._form.addCustomEditor(i,o),this._customEditors.delete(i)}async componentDidRender(){this.setCustomEditors()}async componentWillLoad(){let i=this._element.parentElement;for(;i;){if("SNK-DATA-UNIT"===i.tagName.toUpperCase()){this._snkDataUnit=i,this._dataUnit=this._snkDataUnit.dataUnit,this._dataState=this._snkDataUnit.dataState,this._dataUnit?this.dataunitReady():this._snkDataUnit.addEventListener("dataUnitReady",(i=>{this._dataUnit=i.detail})),this._snkDataUnit.addEventListener("dataStateChange",this.handleDataStateChange.bind(this));break}i=i.parentElement}null==this.resourceID&&(this.resourceID=await y.getResourceID()),this._configManager=new x(this.configName,this.resourceID,void 0,this._dataUnit),this.addFormLegacyConfig(),await this._configManager.loadConfig()}async handleDataStateChange(i){var o;this._dataState=i.detail;const t=await this._snkDataUnit.getFieldsWithRmPrecision();for(const i of t||[]){if(!i)continue;const t=null===(o=this._dataState.rowMetadata)||void 0===o?void 0:o.getProp("rm_precision",i);(t||0===t)&&(await this.setFieldProp(i,"precision",t),await this.setFieldProp(i,"prettyPrecision",t))}}addFormLegacyConfig(){this.formLegacyConfigName&&this._configManager.addFormLegacyConfig(this.formLegacyConfigName)}render(){if(this._dataUnit&&this._dataState)return t("section",null,t("div",{class:"ez-row"},t("div",{class:"ez-col ez-col--sd-12"},t("ez-form",{ref:i=>this._form=i,key:"ezForm"+this._snkDataUnit.entityName,"data-element-id":"embedded",dataUnit:this._dataUnit,config:this._configManager.getConfig(this._dataUnit),recordsValidator:this.recordsValidator,class:this._showFormConfig?"snk-form__form--hidden":""}),this._showFormConfig&&t("snk-form-config",{messagesBuilder:this.messagesBuilder,dataUnit:this._dataUnit,configManager:this._configManager,onConfigClose:()=>this.closeConfig()}))))}get _element(){return s(this)}};T.style=".sc-snk-form-h{--snk-form__header--min-height:94px;display:block}.snk-form__form--hidden.sc-snk-form{display:none}";const O="EZ-COLLAPSIBLE-BOX",S="fieldsWithoutGroupContainer",A="fieldsAvailableContainer",L="addNewGroupContainer",I=class{constructor(t){i(this,t),this.configChange=o(this,"configChange",7),this.configClose=o(this,"configClose",7),this._listEnabledFields=[],this._renderTimer=500,this._tabSelected=1,this._labelNewGroup="Novo grupo",this._mouseOnFieldConfig=!1,this._mouseOnConfigOptions=!1,this._editingTitleGroup=!1,this._newGroupBoxes=[],this._currentGroupBoxes=[],this._formFieldsStyle="ez-col ez-col--sd-12 ez-col--tb-4 ez-padding-right--small ez-padding-bottom--medium sc-snk-form-config",this._fieldsAvailableStyle="ez-col ez-col--sd-12 ez-col--tb-12 ez-margin-bottom--medium ez-margin-right--medium sc-snk-form-config",this._fieldFloatingStyle="form-config__field-config--dragged",this._sortableTimer=100,this._formConfigOptions=[],this._fieldConfigSelected=void 0,this._layoutFormConfig=void 0,this._fieldsAvailable=void 0,this._formConfig={},this._formConfigChanged=!1,this._optionFormConfigSelected=void 0,this._optionFormConfigChanged=!1,this._tempGroups=[],this.dataUnit=void 0,this.configManager=void 0,this.messagesBuilder=void 0,this.ignoreReadOnlyFormFields=void 0}observeConfigManager(){this.loadConfig(this._sortableTimer)}loadFields(i=0){this._layoutFormConfig=[],i>0?setTimeout((()=>{this.buildFields()}),i):this.buildFields()}buildFields(){this.buildFormConfig(),this.buildAvailableFields()}loadFormConfig(i){var o;this._formConfig=this.getConfig(),this.loadFields(i),this.controlFieldConfig(),null!=(null===(o=this._filterFieldsAvailable)||void 0===o?void 0:o.value)&&(this._filterFieldsAvailable.value="")}getConfig(){let i=this.configManager.getConfig(this.dataUnit,this.ignoreReadOnlyFormFields);return i.fields&&0===i.fields.length&&(i=void 0),null==i&&(i=D(this.dataUnit)),l.copy(i)}cancelChangeConfig(){!0===this._formConfigChanged?this.openConfirmDialog(this.getMessage("snkFormConfig.confirm.cancel")).then((i=>{i&&(this._formConfigChanged=!1,this.resetChangeConfig())})):this.resetChangeConfig()}cancelChangeOptionConfig(){!0===this._optionFormConfigChanged?this.openConfirmDialog(this.getMessage("snkFormConfig.confirm.cancel")).then((i=>{i&&(this._optionFormConfigChanged=!1,this.resetChangeOptionConfig())})):this.resetChangeOptionConfig()}resetChangeConfig(){this.loadFormConfig(this._sortableTimer),this.clearTempGroups()}resetChangeOptionConfig(){this._formConfigChanged=!1,this.loadConfig(this._sortableTimer),this.clearTempGroups()}getTabsToSave(){return this._layoutFormConfig.map(((i,o)=>({label:i.tab,order:o,visible:i.visible})))}getFieldsToSave(){const i=[];return this._formContainer.querySelectorAll("snk-field-config").forEach((o=>{const t=o.fieldConfig;if(null==t)return;const n={cleanOnCopy:t.cleanOnCopy||!1,group:t.group,label:t.label,name:t.name,required:t.required,readOnly:t.readOnly,tab:t.tab};null!=t.defaultValue&&(n.defaultValue=null==t.defaultValue.type?{type:b.fixed,value:t.defaultValue}:t.defaultValue),i.push(n)})),i}isDefaultConfiguration(){var i;return(null===(i=this._optionFormConfigSelected)||void 0===i?void 0:i.origin)===w.DEFAULT&&!0===this._optionFormConfigChanged&&!1===this._formConfigChanged}buildConfigToSave(){let i={};const o=this.isDefaultConfiguration();if(i=o?this.getConfig():l.copy(this._formConfig),!1===o){const o=this.getTabsToSave();(null==o?void 0:o.length)>0&&(i.tabs=o);const t=this.getFieldsToSave();(null==t?void 0:t.length)>0&&(i.fields=t)}return i.defaultConfiguration=o,i}saveConfig(){var i;(null===(i=this._tempGroups)||void 0===i?void 0:i.length)>0?g.alert(this.getMessage("snkFormConfig.confirm.title"),this.getMessage("snkFormConfig.confirm.group")):(this._formConfigChanged=!1,this._optionFormConfigChanged=!1,this.configManager.saveConfig(this.buildConfigToSave()).then((i=>{var o;g.info(this.getMessage("snkFormConfig.info.successfullyConfigSaved"),{iconName:"check"});const t=null===(o=this._formConfigOptions)||void 0===o?void 0:o.find((i=>i.origin===w.USER));this.setFormConfig(t),this.configChange.emit(i)})))}applyOptionConfig(){if(!0===this._optionFormConfigChanged&&null!=this._optionFormConfigSelected){const i=this._optionFormConfigSelected.name||"configuração selecionada",o=this._optionFormConfigSelected.origin===w.DEFAULT?"pessoal":"padrão",t=this.getMessage("snkFormConfig.confirm.apply").replace("{0}",i).replace("{1}",o);this.openConfirmDialog(t).then((i=>{i&&this.saveConfig()}))}else this.saveConfig()}controlFieldConfig(i){var o;this._fieldConfigSelected=null!=i?(null===(o=this._fieldConfigSelected)||void 0===o?void 0:o.name)===(null==i?void 0:i.name)?void 0:i:void 0}getFieldConfigStyle(i){var o;return this._formFieldsStyle+((null===(o=this._fieldConfigSelected)||void 0===o?void 0:o.name)===i.name?" form-config__field-config--selected":"")}getFieldsByGroup(i){var o;return(null===(o=i.fields)||void 0===o?void 0:o.length)?i.fields.map((i=>{var o,n;return t("div",{key:i.name,class:this.getFieldConfigStyle(i),"data-draggable-element":"field",onMouseDown:i=>this.controlMoveField(i)},t("snk-field-config",{messagesBuilder:this.messagesBuilder,onEzClickIcon:i=>{this.handleFieldConfigChange(i)},modeInsertion:!1,fieldConfig:i,dataUnit:this.dataUnit,isConfigActive:(null===(o=this._fieldConfigSelected)||void 0===o?void 0:o.name)===i.name,id:i.name,key:i.name}),(null===(n=this._fieldConfigSelected)||void 0===n?void 0:n.name)===i.name&&t("div",{class:"ez-flex form-config__config-options"},t("snk-config-options",{idConfig:i.name,messagesBuilder:this.messagesBuilder,dataUnit:this.dataUnit,fieldConfig:this._fieldConfigSelected,"data-element-id":this._element.getAttribute(d.DATA_ELEMENT_ID_ATTRIBUTE_NAME),onConfigOptionsChanged:i=>this.handleconfigOptionsChanged(i.detail)})))})):t("div",{class:"form-config__add-group-container"},t("div",{class:"form-config__add-group-content"},t("div",{class:"form-config__add-group-label"},t("label",{class:"ez-text ez-text--center ez-text--medium ez-text--primary ez-text--bold"},this.getMessage("snkFormConfig.form.labelDropField")))))}handleconfigOptionsChanged(i){var o;null===(o=this._formConfig.fields)||void 0===o||o.forEach((()=>{})),this._formConfigChanged=!0}closeFormConfig(){!0===this._formConfigChanged||!0===this._optionFormConfigChanged?this.openConfirmDialog(this.getMessage("snkFormConfig.confirm.exit")).then((i=>{i&&(this._formConfigChanged=!1,this.configClose.emit())})):this.configClose.emit()}openConfirmDialog(i="",o=this.getMessage("snkFormConfig.confirm.title")){return g.confirm(o,i)}controlMoveField(i){const o=null==i?void 0:i.target;null!=(null==o?void 0:o.closest('[data-draggable-element="field"]'))&&(this._mouseOnFieldConfig=!0,null!=(null==o?void 0:o.closest(".form-config__config-options"))||null!=(null==o?void 0:o.closest(".field-config__options"))?this._mouseOnConfigOptions=!0:!1===["minus","settings-inverted","chevron-up"].includes(null==o?void 0:o.iconName)&&this.controlFieldConfig())}controlStartDraggingField(i){var o,t,n;if(this._mouseOnConfigOptions)null==i||i.cancel(),this._mouseOnConfigOptions=!1;else{const s=null===(n=null===(t=null===(o=null==i?void 0:i.data)||void 0===o?void 0:o.dragEvent)||void 0===t?void 0:t.data)||void 0===n?void 0:n.sourceContainer;null!=s&&s.classList.add(this._fieldFloatingStyle)}}controlSortedDraggingField(i){var o,t,n,s,e,l,a,r;const d=null===(o=null==i?void 0:i.data)||void 0===o?void 0:o.oldContainer,h=null===(t=null==i?void 0:i.data)||void 0===t?void 0:t.newContainer,c=null===(e=null===(s=null===(n=null==i?void 0:i.data)||void 0===n?void 0:n.dragEvent)||void 0===s?void 0:s.data)||void 0===e?void 0:e.source,f=null===(r=null===(a=null===(l=null==i?void 0:i.data)||void 0===l?void 0:l.dragEvent)||void 0===a?void 0:a.data)||void 0===r?void 0:r.originalSource;null!=d&&null!=h&&null!=c&&null!=f&&(h.tagName!==O&&h.id!==S||d.id!==A?d.tagName!==O&&d.id!==S||h.id!==A||(c.className=this._fieldsAvailableStyle,c.querySelector("snk-field-config").modeInsertion=!0,f.className=this._fieldsAvailableStyle,f.querySelector("snk-field-config").modeInsertion=!0):(c.className=this._formFieldsStyle,c.querySelector("snk-field-config").modeInsertion=!1,f.className=this._formFieldsStyle,f.querySelector("snk-field-config").modeInsertion=!1))}isCancelDragAvailableField(i,o,t){var n,s;return null!=i&&null!=o&&null!=t&&(null===(n=t.data)||void 0===n?void 0:n.newIndex)!==(null===(s=t.data)||void 0===s?void 0:s.oldIndex)&&i.id===A&&o.id===i.id&&(t.cancel(),this._fieldsAvailable=[],setTimeout((()=>{this.buildAvailableFields()}),this._sortableTimer),!0)}isRemoveField(i,o,t){if(null==i||null==o||null==t)return!1;if((o.tagName===O||o.id===S)&&i.id===A){const i={detail:{field:t,type:C.remove}};return setTimeout((()=>{this.handleFieldConfigChange(i)}),this._renderTimer),!0}return!1}isAddOrMoveField(i,o,t,n){var s;return null!=i&&null!=o&&null!=t&&null!=n&&(n.newIndex!==n.oldIndex||o.dataset.groupName!==i.dataset.groupName||i.id===S&&o.id===A)&&(this.isFieldAvailable(i,o)&&(t.tab=null===(s=this._tabConfig)||void 0===s?void 0:s.selectedTab),t.group=i.dataset.groupName,setTimeout((()=>{i.id.includes(L)&&this.clearTempGroups(!0),this.updateFieldsToSave(o.dataset.groupName!==i.dataset.groupName||i.id===S&&o.id===A?this._sortableTimer:0)}),this._renderTimer),!0)}isFieldAvailable(i,o){return null!=i&&null!=o&&(i.tagName===O||i.id===S)&&o.id===A}controlStopDraggingField(i){var o,t,n,s,e,l;const a=null===(o=null==i?void 0:i.data)||void 0===o?void 0:o.oldContainer,r=null===(t=null==i?void 0:i.data)||void 0===t?void 0:t.newContainer;if(this.isCancelDragAvailableField(r,a,i))return;const d=null===(e=null===(s=null===(n=null==i?void 0:i.data)||void 0===n?void 0:n.dragEvent)||void 0===s?void 0:s.data)||void 0===e?void 0:e.originalSource,h=null===(l=null==d?void 0:d.querySelector("snk-field-config"))||void 0===l?void 0:l.fieldConfig;this.isRemoveField(r,a,h)||this.isAddOrMoveField(r,a,h,null==i?void 0:i.data)}updateFieldsToSave(i=0){const o=this.getFieldsToSave();(null==o?void 0:o.length)>0&&(this._formConfig.fields=o),this.loadFields(i),this._formConfigChanged=!0}controlSortableField(){null!=this._sortableContainer&&(this._sortableField&&this._sortableField.destroy(),this._sortableField=new F(this._sortableContainer.querySelectorAll('[data-draggable-parent="field"]'),{draggable:'[data-draggable-element="field"]',mirror:{constrainDimensions:!0},distance:z.dragStartDistance}),this._sortableField.on(_.dragStart,(i=>this.controlStartDraggingField(i))),this._sortableField.on(_.dragSorted,(i=>this.controlSortedDraggingField(i))),this._sortableField.on(_.dragStop,(i=>this.controlStopDraggingField(i))))}controlStartDraggingGroup(i){(this._mouseOnFieldConfig||this._editingTitleGroup)&&(null==i||i.cancel(),this._mouseOnFieldConfig=!1)}controlStopDraggingGroup(i){i.data.newIndex!==i.data.oldIndex&&setTimeout((()=>{this.updateFieldsToSave(this._sortableTimer)}),this._renderTimer)}controlSortableGroup(){null!=this._sortableContainer&&(this._sortableGroup&&this._sortableGroup.destroy(),this._sortableGroup=new F(this._sortableContainer.querySelectorAll('[data-draggable-parent="group"]'),{draggable:'[data-draggable-element="group"]',mirror:{constrainDimensions:!0},distance:z.dragStartDistance}),this._sortableGroup.on(_.dragStart,(i=>this.controlStartDraggingGroup(i))),this._sortableGroup.on(_.dragStop,(i=>this.controlStopDraggingGroup(i))))}loadUserConfig(){null!=this.configManager&&this.configManager.fetchUserAvailableConfigs().then((i=>{if(this._formConfigOptions=i,null==this._formConfigOptions)return;let o=null==this._formConfig||this._formConfig.defaultConfiguration;const t=i.find((i=>i.origin===(o?w.DEFAULT:w.USER)));this.setFormConfig(t)}))}setFormConfig(i){this._optionFormConfigSelected=i}controlSelectFormConfig(i){const o=null==i?void 0:i.detail,t=this._formConfigOptions.find((i=>i.origin===(null==o?void 0:o.value)));this.setFormConfig(t),this._optionFormConfigChanged=!0,this.loadConfigByUser()}changeTabOrder(i){const o=[],t=this._tabConfig.querySelectorAll(".tab-config__tab");this._tabSelected=i,t.forEach(((i,t)=>{var n;if(t){const s=null===(n=i.querySelector(".tab-config__tab-label"))||void 0===n?void 0:n.getAttribute("title");o.push({label:s,order:t-1})}})),this._layoutFormConfig.map((i=>{o.forEach((o=>{o.label===i.tab&&(o.visible=i.visible)}))})),o.length>0&&(this._formConfig.tabs=o,this.loadFields(this._sortableTimer),this.controlFieldConfig(),this._formConfigChanged=!0)}async loadConfigByUser(){if(null==this.configManager)return;if(null==this._optionFormConfigSelected)return;let i;this._optionFormConfigSelected.origin===w.DEFAULT?(i=await this.configManager.fetchDefaultConfig(),i||(i=this.configManager.getEmptyConfig())):i=this.getConfig(),null!=i&&(this._formConfig=i,this._tabSelected=1,this.loadFields(this._sortableTimer),this.controlFieldConfig(),this.clearTempGroups())}loadConfig(i=0){this.loadFormConfig(i),this.loadUserConfig()}addNewGroup(){var i,o;const t=null===(i=this._tabConfig)||void 0===i?void 0:i.selectedTab;null==(null===(o=this._tempGroups)||void 0===o?void 0:o.find((i=>i.tab===t&&i.group.includes(this._labelNewGroup))))&&(this._tempGroups.push({tab:t,group:this.handleDuplicateGroups(this._labelNewGroup,this._tabConfig.selectedTab)}),this.loadFields(),this.controlFieldConfig(),this._formConfigChanged=!0)}clearTempGroups(i=!1){var o;(null===(o=this._tempGroups)||void 0===o?void 0:o.length)>0&&(this._tempGroups=i?this._tempGroups.filter((i=>i.tab!==this._tabConfig.selectedTab)):[])}removeGroup(i){null!=i?this._tempGroups=this._tempGroups.filter(((o,t)=>t!==i&&o.tab===this._tabConfig.selectedTab||o.tab!==this._tabConfig.selectedTab)):this.updateFieldsToSave(this._sortableTimer)}checkGroupExists(i,o,t=!1){var n,s,e;const l=null===(n=this._tabConfig)||void 0===n?void 0:n.selectedTab,a=null===(s=this._layoutFormConfig)||void 0===s?void 0:s.find((i=>i.tab===l)),r=null===(e=null==a?void 0:a.groups)||void 0===e?void 0:e.map((i=>{var o;return null===(o=i.group)||void 0===o?void 0:o.toLowerCase()}));if(null==r?void 0:r.includes(null==i?void 0:i.toLowerCase())){const n=this.getMessage("snkFormConfig.confirm.title"),s=`\n ${this.getMessage("snkFormConfig.alert.titleGroupExists")}\n <b>${i}</b>\n ${this.getMessage("snkFormConfig.alert.inTab")}\n <b>${l===k.main?this.getMessage("snkFormConfig.form.mainArea"):l}</b>.\n <br/><br/>\n ${this.getMessage("snkFormConfig.alert.infoValidTitle")}\n `;return g.alert(n,s).then((()=>{var i,n;t?null===(i=this._newGroupBoxes[o])||void 0===i||i.applyFocusTextEdit():null===(n=this._currentGroupBoxes[l][o])||void 0===n||n.applyFocusTextEdit()})),!1}return!0}saveEditLabelTempGroup(i,o){const{newValue:t}=i.detail;null!=this._newGroupBoxes&&null!=this._newGroupBoxes[o]&&(this._newGroupBoxes[o].dataset.groupName=t)}saveEditLabelGroup(i){var o;const{value:t,newValue:n}=i.detail;null===(o=this._formConfig.fields)||void 0===o||o.forEach((i=>{i.group===t&&(i.group=n)})),this.loadFields(this._sortableTimer),this.controlFieldConfig(),this._formConfigChanged=!0}renderTempGroupByTab(i){return this._tempGroups.map(((o,n)=>{if(o.tab===i)return t("ez-collapsible-box",{ref:i=>this._newGroupBoxes[n]=i,id:`${L}-${n}`,editable:!0,removable:!0,"header-size":"large",label:o.group,"icon-placement":"left","data-group-name":o.group,"data-draggable-parent":"field",class:"form-config__add-group",onEzRemove:()=>this.removeGroup(n),onEzSaveEditLabel:i=>this.saveEditLabelTempGroup(i,n),onEzEditLabelMode:i=>this._editingTitleGroup=i.detail,conditionalSave:i=>this.checkGroupExists(i,n,!0)},this.getFieldsByGroup(o))}))}handleDuplicateGroups(i,o){var t;const n=this._layoutFormConfig[this._tabConfig.selectedIndex].groups.map((i=>i.group));return null!=n&&(null===(t=this._layoutFormConfig)||void 0===t||t.map((t=>{t.tab===o&&t.groups.some((o=>o.group===i))&&(i+=`${this.captureHighestValueTitle(n)}`)}))),i}captureHighestValueTitle(i){let o=[];return null==i||i.map((i=>{null!=i&&o.push(i.replace(/[^0-9]/g,""))})),Math.max.apply(null,o)>0?` (${Math.max.apply(null,o)+1})`:" (1)"}getLayoutFormConfig(){var i,o,t;if(null==(null===(i=this._formConfig)||void 0===i?void 0:i.fields))return;let n=[],s=[];for(const i of this._formConfig.fields)if(null==s.find((o=>i.name===o.name&&i.tab===o.tab))){s.push(i);const e=this.dataUnit.getField(i.name),l=!0===(null===(o=null==e?void 0:e.properties)||void 0===o?void 0:o.visibleOnConfig)&&!1===(null==e?void 0:e.visible);if((null==e?void 0:e.visible)||l){null!=i.label&&""!==i.label||(i.label=e.label),null!=i.tab&&""!==i.tab||(i.tab=this.getMessage("snkFormConfig.form.tabGeneral"));let o=n.find((o=>o.tab===i.tab));if(null==o){let s=null;if(null!=this._formConfig.tabs){const o=this._formConfig.tabs.filter((o=>o.label===i.tab));o.length>0&&(s=o[0].visible)}const e=(null===(t=i.tab)||void 0===t?void 0:t.label)||i.tab;o=null!==s?{tab:e,groups:[],visible:s}:{tab:e,groups:[],visible:!0},n.push(o)}const s=o.groups.find((o=>o.group===i.group));if(s)s.fields.push(i);else{const t={group:i.group,fields:[i]};void 0===i.group?o.groups.unshift(t):o.groups.push(t)}}}return n}configureTabs(i){var o;return null==(null===(o=this._formConfig)||void 0===o?void 0:o.tabs)?i:(null==i&&(i=[]),this._formConfig.defaultConfiguration?i:this._formConfig.tabs.map((o=>i.find((i=>{var t,n;return(null===(t=o.label)||void 0===t?void 0:t.toLowerCase())===(null===(n=i.tab)||void 0===n?void 0:n.toLowerCase())}))||{tab:o.label,groups:[],visible:o.visible})))}configureTabMain(i){return null==i&&(i=[]),null==i.find((i=>i.tab===k.main))&&i.unshift({tab:k.main,groups:[],visible:!0}),i}updateTabs(){const i=this.getTabsToSave();(null==i?void 0:i.length)>0&&(this._formConfig.tabs=i,1===i.length&&(this._tabSelected=0))}buildFormConfig(){var i;if(null==(null===(i=this._formConfig)||void 0===i?void 0:i.fields))return;let o=this.getLayoutFormConfig();o=this.configureTabs(o),o=this.configureTabMain(o),this._layoutFormConfig=o,this.updateTabs()}buildAvailableFields(){var i,o;if(null==(null===(i=this._formConfig)||void 0===i?void 0:i.fields))return;let t=[],n=this.dataUnit.metadata.fields;for(const i of this._formConfig.fields)t.push(i);const s=n.filter((({name:i,visible:o,properties:n})=>{const s=t.some((({name:o})=>o===i));return s||!0!==n.visibleOnConfig||o?!0===o&&!1===s:n.visibleOnConfig}));this._fieldsAvailable=s,this._listEnabledFields=s,null!=(null===(o=this._filterFieldsAvailable)||void 0===o?void 0:o.value)&&this.onFilterChange(this._filterFieldsAvailable.value)}changeTabSelected(i){this._tabSelected=i.index;const o=this._formContainer.querySelector("div#tab"+i.index);this._formContainer.querySelectorAll(".form-config__tab-content").forEach((i=>i.className="form-config__hide-content sc-snk-form-config")),o&&(o.className="form-config__tab-content ez-flex ez-flex--column ez-size-width--full ez-padding--medium sc-snk-form-config")}onFilterChange(i){this._fieldsAvailable=h.applyStringFilter(i,this._listEnabledFields,!0,"label")}orderFieldsAvailable(i){return h.sortAlphabetically(i)}handleLabelCounter(i){const o=[this.getMessage("snkFormConfig.availableFields.labelNoFields"),this.getMessage("snkFormConfig.availableFields.labelOneField")];return i>1?`${i} ${this.getMessage("snkFormConfig.availableFields.labelAvailableFields")}`:o[i]}controlAddFieldConfig(i){var o;if(this._formConfigChanged=!1,null==i)return;null==this._formConfig.fields&&(this._formConfig.fields=[]);const t=this._formConfig.fields.filter((o=>o.name===i.name&&o.tab&&i.tab));t.length>0?t.forEach((o=>{o.name=i.name,o.label=i.label,o.required=i.required,o.readOnly=i.readOnly,o.group=i.group})):this._formConfig.fields.push({name:i.name,label:i.label,required:i.required,readOnly:i.readOnly,group:i.group,tab:null===(o=this._tabConfig)||void 0===o?void 0:o.selectedTab}),this.loadFields(),this.controlFieldConfig(),this._formConfigChanged=!0,this.resetSortables()}controlRemoveFieldConfig(i,o){var t;this._formConfigChanged=!1,null!=i&&(this._formConfig.fields=null===(t=this._formConfig.fields)||void 0===t?void 0:t.filter((o=>o.name!==i.name)),this.loadFields(o),this.controlFieldConfig(),this._formConfigChanged=!0,this.resetSortables())}resetSortables(){this.controlSortableField(),this.controlSortableGroup()}handleFieldConfigChange(i,o=0){const{field:t,type:n}=i.detail;n!==C.configuration?n!==C.remove?n!==C.add||this.controlAddFieldConfig(t):this.controlRemoveFieldConfig(t,o):this.controlFieldConfig(t)}changeTabLabel(i){var o,t;const{value:n,newValue:s}=i.detail.detail;null===(o=this._formConfig.fields)||void 0===o||o.forEach((i=>{i.tab===n&&(i.tab=s)})),null===(t=this._formConfig.tabs)||void 0===t||t.forEach((i=>{i.label===n&&(i.label=s)})),this.loadFields(this._sortableTimer),this.controlFieldConfig(),this._formConfigChanged=!0}handleDeleteTab(i){let o={canClose:!1,labelCancel:this.getMessage("snkFormConfig.confirm.labelCancel"),labelConfirm:this.getMessage("snkFormConfig.confirm.labelDelete"),btnConfirmDanger:!1};const t=this.getMessage("snkFormConfig.confirm.title"),n=this.getMessage("snkFormConfig.confirm.deleteTab")+` <b>${i.detail.label}</b>?`;g.confirm(t,n,null,v.WARN,o).then((o=>{var t;o&&(this._formConfig.tabs=null===(t=this._formConfig.tabs)||void 0===t?void 0:t.filter((o=>o.label!==i.detail.label)),this.loadFields(this._sortableTimer),this.controlFieldConfig(),this._formConfigChanged=!0)}))}changeHideTab(i){var o;null===(o=this._formConfig.tabs)||void 0===o||o.forEach((o=>{o.label===i.detail.label&&(o.visible=!o.visible)})),this.loadFields(this._sortableTimer),this.controlFieldConfig(),this._formConfigChanged=!0}handleCanStartDragTab(){var i,o;const t=this._layoutFormConfig.map((i=>i.tab));for(const o of t)null===(i=this._currentGroupBoxes[o])||void 0===i||i.map((i=>null==i?void 0:i.cancelEdition()));null===(o=this._newGroupBoxes)||void 0===o||o.map((i=>null==i?void 0:i.cancelEdition()))}getMessage(i,o){return this.messagesBuilder.getMessage(i,o)}componentDidRender(){this.controlSortableField(),this.controlSortableGroup()}async componentWillRender(){if(null==this.messagesBuilder){const i=r.getContextValue("__SNK__APPLICATION__");this.messagesBuilder=i.messagesBuilder}}componentWillLoad(){this.loadConfig()}componentDidLoad(){d.addIDInfo(this._element,null,{dataUnit:this.dataUnit})}render(){var i,o,s,e;return t(n,null,t("div",{class:"ez-row ez-padding--medium"},t("div",{class:"ez-col ez-col--sd-7 ez-col--tb-9 ez-align--middle"},t("ez-button",{mode:"icon",title:this.getMessage("snkFormConfig.goBackTitle"),iconName:"arrow_back",class:"ez-padding--small",size:"small",onClick:()=>this.closeFormConfig(),id:"formConfigToBack"}),t("h1",{class:"ez-title ez-title--primary ez-title--extra-large ez-padding--small"},this.getMessage("snkFormConfig.title")),this._formConfigOptions&&t("ez-actions-button",{class:"form-config__actions-button ez-margin-left--medium",value:null===(i=this._optionFormConfigSelected)||void 0===i?void 0:i.origin,showLabel:!0,displayIcon:"chevron-down",checkOption:!0,size:"small",actions:this._formConfigOptions.map((i=>({value:i.origin,label:i.name}))),onEzAction:i=>this.controlSelectFormConfig(i),id:"selectConfig"})),t("div",{class:"ez-col ez-col--sd-5 ez-col--tb-3 ez-align--middle ez-align--right"},!0===this._formConfigChanged&&!1===this._optionFormConfigChanged&&t("div",{class:"ez-row ez-align--middle ez-align--right"},t("ez-button",{label:"Cancelar",class:"ez-padding-left--medium",size:"small",onClick:()=>this.cancelChangeConfig()}),t("ez-button",{label:"Salvar",class:"ez-button--primary ez-padding-left--medium",size:"small",onClick:()=>this.saveConfig()},t("ez-icon",{class:"ez-margin-right--small",slot:"leftIcon",iconName:"save"}))),!0===this._optionFormConfigChanged&&t("div",{class:"ez-row ez-align--middle ez-align--right"},t("ez-button",{label:"Cancelar",class:"ez-padding-left--medium",size:"small",onClick:()=>this.cancelChangeOptionConfig()}),t("ez-button",{label:this.getMessage("snkFormConfig.applyConfig"),class:"ez-button--primary ez-padding-left--medium",size:"small",onClick:()=>this.applyOptionConfig()})))),t("div",{class:"ez-row ez-padding--medium",ref:i=>this._sortableContainer=i},t("div",{class:"form-config__tab-container ez-col ez-col--sd-9 ez-col--tb-9 ez-padding-right--medium"},(null===(o=this._layoutFormConfig)||void 0===o?void 0:o.length)>0&&t("section",{class:"ez-box__container",ref:i=>this._formContainer=i},t("snk-tab-config",{ref:i=>this._tabConfig=i,selectedIndex:this._tabSelected,messagesBuilder:this.messagesBuilder,onEzTabChange:i=>this.changeTabSelected(i.detail),onEzOrderChange:i=>this.changeTabOrder(i.detail),onEditionTitleTab:i=>this.changeTabLabel(i),onDeleteTab:i=>this.handleDeleteTab(i),onHideTab:i=>this.changeHideTab(i),onCanStartDrag:()=>this.handleCanStartDragTab(),tabItems:this._layoutFormConfig.map((i=>({tabKey:i.tab,label:i.tab,visible:i.visible})))}),this._layoutFormConfig.map(((i,o)=>t("div",{id:"tab"+o,"data-draggable-parent":"group",class:this._tabSelected===o?"form-config__tab-content ez-flex ez-flex--column ez-size-width--full ez-padding--medium":"form-config__hide-content"},i.groups.map(((o,n)=>o.group?(null==this._currentGroupBoxes[i.tab]&&(this._currentGroupBoxes[i.tab]=[]),t("ez-collapsible-box",{ref:o=>this._currentGroupBoxes[i.tab][n]=o,editable:!0,removable:!0,"header-size":"large",label:o.group,"icon-placement":"left","data-group-name":o.group,"data-draggable-parent":"field","data-draggable-element":"group",onEzRemove:()=>this.removeGroup(),onEzSaveEditLabel:i=>this.saveEditLabelGroup(i),onEzEditLabelMode:i=>this._editingTitleGroup=i.detail,conditionalSave:i=>this.checkGroupExists(i,n)},this.getFieldsByGroup(o))):t("div",{class:"ez-flex ez-flex--column ez-size-width--full"},t("label",{class:"ez-text ez-text--secondary ez-margin-vertical--small"},this.getMessage("snkFormConfig.form.subTitleInfo")),t("div",{id:S,class:"ez-row","data-draggable-parent":"field"},this.getFieldsByGroup(o)),t("hr",{class:"ez-divider-horizontal ez-margin-vertical--medium"})))),this.renderTempGroupByTab(i.tab)))),t("div",{class:"form-config__btn-add-group ez-row"},t("div",{class:"form-config__btn-add-group-container ez-col ez-col--sd-12 ez-col--tb-12 ez-align--center"},t("ez-button",{label:this.getMessage("snkFormConfig.form.labelNewGroup"),class:"ez-padding-horizontal--small ez-button--primary",size:"small",onClick:()=>this.addNewGroup()},t("ez-icon",{class:"ez-margin-right--small",slot:"leftIcon",iconName:"plus"})))))),t("div",{class:"form-config__fields-available ez-col ez-col--sd-3 ez-col--tb-3"},t("section",{class:"ez-box__container ez-col ez-col--pn-12"},t("h1",{class:"ez-title ez-title--large ez-title--primary ez-padding-bottom--medium"},this.getMessage("snkFormConfig.availableFields.title")),t("ez-filter-input",{id:"searchFields",ref:i=>this._filterFieldsAvailable=i,label:this.getMessage("snkFormConfig.availableFields.labelSearchField"),onEzChange:i=>this.onFilterChange(i.detail)}),t("span",{class:"ez-box__label-counter ez-text ez-text--medium ez-text--primary ez-margin-bottom--medium"},this.handleLabelCounter(null===(s=this._fieldsAvailable)||void 0===s?void 0:s.length)),(null===(e=this._layoutFormConfig)||void 0===e?void 0:e.length)>0&&t("div",{id:A,class:"ez-row","data-draggable-parent":"field"},this.orderFieldsAvailable(this._fieldsAvailable).map((i=>t("div",{key:i.name,class:this._fieldsAvailableStyle,"data-draggable-element":"field",onMouseDown:i=>this.controlMoveField(i)},t("snk-field-config",{messagesBuilder:this.messagesBuilder,onEzClickIcon:i=>{this.handleFieldConfigChange(i)},dataUnit:this.dataUnit,fieldConfig:i,id:i.name})))))))))}get _element(){return s(this)}static get watchers(){return{configManager:["observeConfigManager"]}}};I.style=".sc-snk-form-config-h{--snk-form-config--z-index:var(--more-visible, 2);--snk-form-config--background-color:var(--background--xlight, #fff);--snk-form-config__icon--color:var(--text--disable, #AFB6C0);--snk-form-config__label-counter--font-weight:var(--text-weight--extra-small, 200);--snk-form-config__add-group-container--border-radius:var(--border--radius-medium, 12px);--snk-form-config__add-group-container--background-color:var(--background--medium, #d2dce9);--snk-form-config__add-group-container--padding:var(--space--small, 6px);--snk-form-config__add-group-content--border:2px dashed var(--color-strokes, #DCE0E8);--snk-form-config__add-group-content--border-radius:var(--border--radius-small, 6px);--snk-form-config__add-group-label--padding:var(--space--large, 24px);--snk-form-config__btn-add-group--padding:var(--space--large, 24px) var(--space--medium, 12px) 0;--snk-form-config__btn-add-group-container--padding:var(--space--medium, 12px);--snk-form-config__btn-add-group-container--border-radius:var(--border--radius-medium, 12px);--snk-form-config__btn-add-group-container--border:2px solid var(--color-strokes, #DCE0E8);--snk-form-config__btn-add-group-container--background-color:var(--background--body, #fafcff);display:flex;flex-direction:column;position:fixed;top:0;left:0;width:100%;height:100%;z-index:var(--snk-form-config--z-index);background-color:var(--snk-form-config--background-color)}div.sc-snk-form-config:focus-visible,div.sc-snk-form-config:focus{outline:none}.form-config__header-container.sc-snk-form-config{display:flex}.form-config__field-container.sc-snk-form-config{width:32%;padding:6px}.form-config__hide-content.sc-snk-form-config{display:none}ez-icon.sc-snk-form-config .left-icon.sc-snk-form-config{--ez-icon--color:var(--snk-form-config__icon--color)}.ez-box__label-counter.sc-snk-form-config{margin-top:-7px;font-weight:var(--snk-form-config__label-counter--font-weight)}.form-config__btn-options.sc-snk-form-config{--ez-button--min-width:300px;--ez-button--background-color:var(--snk-form-config--background-color)}[data-draggable-parent].sc-snk-form-config{position:relative}.form-config__field-config--selected.sc-snk-form-config{position:static}.form-config__field-config--dragged.sc-snk-form-config .draggable-mirror.sc-snk-form-config{z-index:var(--snk-form-config--z-index)}.form-config__config-options.sc-snk-form-config{position:relative;margin-top:-3px;min-width:100%;z-index:1}.form-config__tab-container.sc-snk-form-config,.form-config__fields-available.sc-snk-form-config{position:relative;height:100%;max-height:calc(100vh - 92px)}.form-config__tab-container.sc-snk-form-config .ez-box__container.sc-snk-form-config,.form-config__fields-available.sc-snk-form-config .ez-box__container.sc-snk-form-config{align-content:flex-start;height:100%}.form-config__fields-available.sc-snk-form-config [data-draggable-parent].sc-snk-form-config{align-content:flex-start;overflow-y:auto;height:100%;max-height:calc(100% - 122px)}.form-config__tab-content.sc-snk-form-config{align-content:flex-start;overflow-y:auto;height:auto;max-height:calc(100% - 128px)}[data-draggable-element].sc-snk-form-config{cursor:grab}.form-config__actions-button.sc-snk-form-config{--ez-actions-button__btn-action--min-width:235px}.form-config__add-group.sc-snk-form-config{position:relative;min-height:120px;margin-bottom:10px}.form-config__add-group-container.sc-snk-form-config{position:absolute;display:flex;flex-wrap:wrap;width:100%;box-sizing:border-box;border-radius:var(--snk-form-config__add-group-container--border-radius);background-color:var(--snk-form-config__add-group-container--background-color);padding:var(--snk-form-config__add-group-container--padding)}.form-config__add-group-content.sc-snk-form-config{width:100%;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;box-sizing:border-box;border:var(--snk-form-config__add-group-content--border);border-radius:var(--snk-form-config__add-group-content--border-radius)}.form-config__add-group-label.sc-snk-form-config{display:flex;justify-content:center;box-sizing:border-box;padding:var(--snk-form-config__add-group-label--padding)}.form-config__btn-add-group.sc-snk-form-config{position:relative;padding:var(--snk-form-config__btn-add-group--padding)}.form-config__btn-add-group-container.sc-snk-form-config{padding:var(--snk-form-config__btn-add-group-container--padding);border-radius:var(--snk-form-config__btn-add-group-container--border-radius);border:var(--snk-form-config__btn-add-group-container--border);background-color:var(--snk-form-config__btn-add-group-container--background-color)}ez-collapsible-box.draggable-mirror.sc-snk-form-config{display:table;background-color:var(--snk-form-config--background-color)}ez-collapsible-box.sc-snk-form-config{margin-bottom:10px}@media screen and (min-width: 480px){.form-config__field-config--selected.sc-snk-form-config .ez-flex.form-config__config-options.sc-snk-form-config{min-width:calc(300% + 12px)}.form-config__field-config--selected.sc-snk-form-config:nth-child(3n+2) .ez-flex.form-config__config-options.sc-snk-form-config{left:calc(100% / 1 * -1)}.form-config__field-config--selected.sc-snk-form-config:nth-child(3n+3) .ez-flex.form-config__config-options.sc-snk-form-config{left:calc(100% / 1 * -2)}}";export{E as snk_config_options,T as snk_form,I as snk_form_config}
@@ -0,0 +1 @@
1
+ export{S as snk_data_unit}from"./p-342eeb3b.js";import"./p-d2d301a6.js";import"@sankhyalabs/core";import"@sankhyalabs/ezui/dist/collection/utils";import"./p-17425c72.js";import"./p-47d24ac8.js";import"./p-00278e07.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"@sankhyalabs/core/dist/dataunit/metadata/DataType";import"./p-7dd49d15.js";
@@ -0,0 +1 @@
1
+ import{h as e,r as t,g as n}from"./p-d2d301a6.js";import{ElementIDUtils as o}from"@sankhyalabs/core";import{ModalAction as i}from"@sankhyalabs/ezui/dist/collection/components/ez-modal-container";const s=({getMessage:t,changeInfo:n,data:i})=>{const{format:s,email:l}=i||{};return e("div",null,e("ez-text-input",Object.assign({label:`${t("snkExporter.emailSenderInfoStep_sendTo")} (obrigatório) *`,value:null==l?void 0:l.to,onEzChange:e=>{var t;return n("to",null===(t=e.detail)||void 0===t?void 0:t.trim())}},{[o.DATA_ELEMENT_ID_ATTRIBUTE_NAME]:`${o.getInternalIDInfo("sendTo")}`})),e("ez-text-input",Object.assign({label:`${t("snkExporter.emailSenderInfoStep_subject")} (obrigatório) *`,value:null==l?void 0:l.subject,onEzChange:e=>{var t;return n("subject",null===(t=e.detail)||void 0===t?void 0:t.trim())}},{[o.DATA_ELEMENT_ID_ATTRIBUTE_NAME]:`${o.getInternalIDInfo("subject")}`})),e("ez-text-area",Object.assign({label:t("snkExporter.emailSenderInfoStep_message"),value:null==l?void 0:l.message,onEzChange:e=>n("message",e.detail)},{[o.DATA_ELEMENT_ID_ATTRIBUTE_NAME]:`${o.getInternalIDInfo("message")}`})),((null==l?void 0:l.attachments)||[]).map(((t,n)=>e("ez-file-item",Object.assign({class:"ez-padding-bottom--large",fileName:`${t.name}.${s}`,fileSize:t.size,canRemove:!1},{[o.DATA_ELEMENT_ID_ATTRIBUTE_NAME]:`${o.getInternalIDInfo("fileItem_")+(n+1)}`})))))},l=({getMessage:t,changeInfo:n,data:i})=>{const s=(null==i?void 0:i.selectedRows)||0,l=[{label:t("snkExporter.emailSenderOptStep_formatPDF"),value:"pdf"},{label:t("snkExporter.emailSenderOptStep_formatXLS"),value:"xls"}],a=[{label:t("snkExporter.emailSenderOptStep_allData"),value:"all"},{label:t("snkExporter.emailSenderOptStep_currentPage"),value:"page"}];if(s>0){const e=t(s>1?"snkExporter.emailSenderOptStep_someRecords":"snkExporter.emailSenderOptStep_oneRecord",{SELECTION_COUNT:s});a.push({label:e,value:"selection"})}return e("div",null,e("ez-radio-button",Object.assign({class:"ez-margin-bottom--large"},{[o.DATA_ELEMENT_ID_ATTRIBUTE_NAME]:`${o.getInternalIDInfo("formato")}`},{label:t("snkExporter.emailSenderOptStep_lblFormat"),direction:"horizontal",value:null==i?void 0:i.format,onEzChange:e=>n("format",e.detail),options:l})),e("ez-radio-button",Object.assign({class:"ez-margin-bottom--large"},{[o.DATA_ELEMENT_ID_ATTRIBUTE_NAME]:`${o.getInternalIDInfo("type")}`},{label:t("snkExporter.emailSenderOptStep_export"),value:(null==i?void 0:i.type)||"all",onEzChange:e=>n("type",e.detail),options:a})))},a=class{constructor(e){t(this,e),this._stepInfo=[{subTitle:"snkExporter.emailSenderOptStep_subtitle",firstButton:"snkExporter.emailSenderCancelButton",secondButton:"snkExporter.emailSenderNextButton",firstButtonAction:()=>this.close(),secondButtonAction:()=>this.changeStep(1)},{subTitle:"snkExporter.emailSenderInfoStep_subtitle",firstButton:"snkExporter.emailSenderBackButton",secondButton:"snkExporter.emailSenderSendButton",firstButtonAction:()=>this.changeStep(0),secondButtonAction:()=>this.send(),secondButtonEnabledTester:()=>this.isFilled(),secondButtonClass:"ez-button--primary"}],this._config=void 0,this._opened=!1,this._currentStep=0,this.getMessage=void 0}open(e){var t;return this._config=Object.assign(Object.assign({},e),{format:null!==(t=null==e?void 0:e.format)&&void 0!==t?t:"pdf"}),this._opened=!0,this.changeStep(0),new Promise((e=>{this._promiseResolver=e}))}close(){return this._opened=!1,new Promise((e=>{this._promiseResolver=e}))}getStepMessage(e){return this.getMessage((this._stepInfo[this._currentStep]||{})[e])}executeButtonAction(e){(this._stepInfo[this._currentStep]||{})[e?"firstButtonAction":"secondButtonAction"]()}checkButtonEnabled(e){const t=(this._stepInfo[this._currentStep]||{})[e?"firstButtonEnabledTester":"secondButtonEnabledTester"];return!t||t()}changeStep(e){this._currentStep=e,this._viewStack&&this._viewStack.show(this._currentStep)}send(){const{format:e,type:t,email:n,resolver:o}=this._config;o({format:e,type:t,email:n,report:void 0})}isFilled(){var e,t;return!(!(null===(e=this._config.email)||void 0===e?void 0:e.to)||!(null===(t=this._config.email)||void 0===t?void 0:t.subject))}updateEmailInfo(e,t){this._config=Object.assign(Object.assign({},this._config),{email:Object.assign(Object.assign({},this._config.email),{[e]:t})})}updateConfigInfo(e,t){this._config=Object.assign(Object.assign({},this._config),{[e]:t})}getSecondButtonClass(){return(this._stepInfo[this._currentStep]||{}).secondButtonClass||"ez-button--secondary"}render(){return o.addIDInfoIfNotExists(this._element,"snkExporterEmailSender"),e("ez-popup",{useHeader:!1,size:"x-small",heightMode:"auto",opened:this._opened},e("ez-modal-container",{onEzModalAction:e=>{e.detail===i.CLOSE&&this.close()},modalTitle:this.getMessage("snkExporter.emailSenderTitle"),modalSubTitle:this.getStepMessage("subTitle")},e("ez-view-stack",{ref:e=>this._viewStack=e},e("stack-item",null,e(l,{getMessage:this.getMessage,data:this._config,changeInfo:(e,t)=>this.updateConfigInfo(e,t)})),e("stack-item",null,e(s,{getMessage:this.getMessage,data:this._config,changeInfo:(e,t)=>this.updateEmailInfo(e,t)}))),e("div",{class:"ez-col ez-col--sd-12 ez-flex--justify-end ez-margin-vertical--small"},e("ez-button",Object.assign({class:"ez-button--tertiary ez-padding-right--medium",label:this.getStepMessage("firstButton"),onClick:()=>this.executeButtonAction(!0),enabled:this.checkButtonEnabled(!0)},{[o.DATA_ELEMENT_ID_ATTRIBUTE_NAME]:`${o.getInternalIDInfo("firstButton")}`})),e("ez-button",Object.assign({class:this.getSecondButtonClass(),label:this.getStepMessage("secondButton"),onClick:()=>this.executeButtonAction(!1),enabled:this.checkButtonEnabled(!1)},{[o.DATA_ELEMENT_ID_ATTRIBUTE_NAME]:`${o.getInternalIDInfo("secondButton")}`})))))}get _element(){return n(this)}};export{a as snk_exporter_email_sender}
@@ -0,0 +1 @@
1
+ import{ApplicationContext as e}from"@sankhyalabs/core";const a={saveInfo:{clone:"Duplicação realizada!",insert:"Inclusão realizada!",update:"Alteração realizada!"},cancelInfo:{clone:"Duplicação descartada!",insert:"A inclusão foi descartada!",update:"A edição foi descartada!"},confirm:{cancel:"Cancelar",delete:"Excluir",yes:"Sim",no:"Não"},removeInfo:"Registro removido com sucesso!",cancelConfirmationTitle:"Aviso",cancelConfirmation:"As alterações realizadas serão descartadas<br/><br/><b>Você realmente gostaria de cancelar?",removeConfirmationTitle:"Aviso",removeConfirmation:"Deseja realmente excluir o registro atual?",forbidden:"Sem permissão",forbiddenUpdate:"Não é possível fazer alterações. Verifique as permissões de acesso.",forbiddenInsert:"Não é possível incluir. Verifique as permissões de acesso.",forbiddenClone:"Não é possível duplicar. Verifique as permissões de acesso.",forbiddenRemove:"Não é possível remover. Verifique as permissões de acesso.",removeAllConfirmation:"Os <strong>{{size}} registros selecionados</strong> serão excluídos.<br/><br/><strong>Você realmente gostaria de continuar?</strong>",removeAllInfo:"Os {{size}} registros foram removidos com sucesso!",fieldNameRequired:"É necessário informar o nome da coluna."},o={addFilter:"Adicionar filtro",pinFilter:"Fixar filtro",unpinFilter:"Desfixar filtro",removeFilter:"Remover filtro",cleanFilter:"Limpar",applyFilter:"Aplicar",findFilter:"Buscar filtros...",findField:"Buscar filtros...",modalFindFilter:"Buscar filtro",emptyFiltersList:"Não há filtros disponíveis",emptyAppliedFiltersList:"Não há filtros aplicados",customFilter:"Filtro personalizado",defaultFilter:"Filtro padrão",failToLoadConfig:"Falha ao buscar configuração de filtros",clearAllFilters:"Limpar todos os filtros",successfullyCleaned:"Filtro limpo com sucesso!",activeFilter:"{{ACTIVE_FILTERS}} filtro aplicado",activeFilters:"{{ACTIVE_FILTERS}} filtros aplicados",noActiveFilters:"Nenhum filtro aplicado",modalDefaultFilterTitle:"Filtro padrão",modalInfoTextEditDefault:"Use o layout antigo para editar o seu filtro padrão, em breve traremos uma nova experiência.",modalInfoTextCreateDefault:"Use o layout antigo para criar o seu filtro padrão, em breve traremos uma nova experiência.",modalPersonalizedFilterTitle:"Filtro personalizado",modalPersonalizedFilterSubTitle:"Gerencie seus filtros",modalInfoTextCreateEditPersonalized:"Use o layout antigo para criar ou editar filtros, em breve traremos uma nova experiência",modalInfoTextCreateFilter:"Criar filtro personalizado",modalInfoTextNoFilterRegister:"Você não possui filtros cadastrados.",modalOkButtonLabel:"Aplicar",modalCancelButtonLabel:"Limpar",binarySelectTooltip:"Exibindo registros",multiListToltip:"selecionado(a)s",onlyStartToltip:"A partir de",onlyEndToltip:"Até",fullPeriodTooltip:"Data de {{LABEL}}: {{START_LABEL}} até {{END_LABEL}}",labelStart:"Inicial",labelEnd:"Final",fullIntervalTooltip:"{{LABEL}}: {{START_LABEL}} até {{END_LABEL}}",filters:"Filtros",personalizedCount:"{{activeCount}} selecionado(s)",filterModal:{title:"Filtros",okButtonLabel:"Aplicar",cancelButtonLabel:"Limpar tudo",customFilters:"Filtros personalizados",quickFilters:"Filtros rápidos",validations:{notFullFilled:{title:"Filtro parcialmente preenchido",message:"Favor completar todas as informações do filtro."},notSaved:{title:"Atenção",message:"As alterações realizadas não serão aplicadas.<br/><br/><b>Deseja mesmo continuar?</b>"}}}},r={titleUpdate:"Editar",titlePrevious:"Anterior",titleNext:"Próximo",titleRefresh:"Atualizar",titleClone:"Duplicar",titleRemove:"Excluir",titleMoreOptions:"Mais Opções",titleInsert:"Cadastrar",titleCancel:"Cancelar",titleSave:"Salvar",titleGridMode:"Modo Grade",titleFormMode:"Modo Formulário",titleConfigurator:"Configurações",titleAttach:"Anexar",forbidden:"Permissão não liberada"},i={errorArray:"CrudUtils.find deve receber um array de fields, ou uma lista separada por virgula."},s={emailSenderTitle:"Enviar por email",emailSenderBackButton:"Voltar",emailSenderNextButton:"Avançar",emailSenderCancelButton:"Cancelar",emailSenderSendButton:"Enviar",emailSenderOptStep_subtitle:"Primeiro, escolha o formato do arquivo",emailSenderOptStep_lblFormat:"Formato:",emailSenderOptStep_formatPDF:"PDF (.pdf)",emailSenderOptStep_formatXLS:"Planilha (.xls)",emailSenderOptStep_export:"Exportar:",emailSenderOptStep_allData:"Toda a grade",emailSenderOptStep_currentPage:"Somente a página atual",emailSenderOptStep_someRecords:"{{SELECTION_COUNT}} linhas selecionadas",emailSenderOptStep_oneRecord:"Somente a linha selecionada",emailSenderInfoStep_subtitle:"Informações de email",emailSenderInfoStep_sendTo:"Enviar para",emailSenderInfoStep_subject:"Assunto",emailSenderInfoStep_message:"Mensagem"},t={title:{clone:"Duplicar registro",insert:"Cadastrar registro",update:"Alterar registro",clean:"{{ENTITY_NAME}}"},findColumn:"Buscar campos",goBackTitle:"Voltar"},l={findColumn:"Busca de colunas",formConfigUnavaliable:{title:"Aviso",message:'A opção "Configurar formulário" será disponibilizada em breve. Enquanto isso, acesse a configuração do fomulário através dos layouts anteriores, HTML5 ou Flex.'}},n={error:{title:"Erro na Exportação",message:"O usuário não possui permissão para exportar o arquivo."},message:{exportSuccess:"Exportado com sucesso!"}},d={newVersionPopup:{title:"Boas vindas à nova interface da tela {{screenName}}",info:"Com uma jornada mais moderna, simples e intuitiva, a performance aprimorada da nova interface impulsionará a sua produtividade.",okButton:"Quero experimentar!",cancelButton:"Voltar à interface anterior"}},c={label:{nameField:"Nome do Campo *",typeValueDefault:"Tipo de valor padrão *",valueDefault:"Valor Padrão",clearDuplicate:"Limpar ao Duplicar",requiredField:"Campo Obrigatório",protectedField:"Campo Protegido"},options:{valueFixed:"Valor Fixo",variable:"Variável"}},m={title:"Configuração do formulário",goBackTitle:"Voltar",applyConfig:"Aplicar configuração",availableFields:{title:"Campos disponíveis",labelNoFields:"Nenhum campo disponível",labelOneField:"1 campo disponível",labelAvailableFields:"Campos disponíveis",labelSearchField:"Procurar campo"},form:{subTitleInfo:"Inclua estes campos nos grupos ou deixe-os separados no topo do formulário!",labelDropField:"Arraste e solte um campo aqui",labelNewGroup:"Adicionar novo grupo",mainArea:"Área principal",tabGeneral:"Geral"},confirm:{title:"Aviso",deleteTab:"Você realmente deseja excluir a aba",cancel:"As alterações realizadas serão descartadas.<br/><br/><b>Gostaria de continuar?</b>",exit:"Ao sair as alterações serão descartadas.<br/><br/><b>Você realmente gostaria de sair?</b>",apply:"A <b>{0}</b> irá substituir a sua configuração {1}!<br/><br/><b>Deseja continuar?</b>",group:"Não é possível salvar as configurações com um grupo vazio!",labelCancel:"Cancelar",labelDelete:"Excluir"},alert:{titleGroupExists:"Já existe um grupo com título",infoValidTitle:"Por favor, digite um título válido.",inTab:"na aba"},info:{successfullyConfigSaved:"As configurações foram salvas com sucesso!"}},u={titleRemove:"Remover",titleConfigurations:"Configurações",titleAdd:"Adicionar"},p={labelRename:"Renomear",labelHide:"Ocultar",labelShow:"Exibir",labelDelete:"Excluir"},f={titleConfigurations:"Configurações",subTitleModeConfig:"Modo de visualização",labelConfigGrid:"Configurar grade",labelConfigForm:"Configurar formulário",labelGrid:"Grade",labelForm:"Formulário"},b={findColumn:"Busca de colunas",cancelConfirmation:{title:"Aviso",message:"As alterações realizadas serão descartadas<br/><br/><b>Você realmente gostaria de cancelar?</b>"}},v={gridConfiguration:"Configuração da Grade",columnVisibilityOrder:"Defina visibilidade e ordem das colunas.",sortingSequence:"Sequência da ordenação",findColumn:"Localizar coluna",cancel:"Cancelar",complete:"Concluir",tab:{columns:"Colunas",lineOrdering:"Ordenação das linhas"},info:{successfullyConfigSaved:"As configurações foram salvas com sucesso!"},confirm:{cancel:"Descartar",save:"Salvar",alert:"Aviso",msgCancel:"As alterações realizadas serão descartadas. Gostaria de salvar antes de sair?"},group:{visible:"Visíveis",hidden:"Ocultas"}},g={group:{export:{default:"Exportar para",multiSelected:"Exportar {0} linhas selecionadas",selectedLine:"Exportar somente 1 linha selecionada",title:"Exportar"},custom:"Personalizado"},label:{currentPage:"Somente a página atual",allRecords:"Todos os registros",spreadsheet:"Planilha",cube:"Cubo",sendByEmail:"Enviar por email"},message:{emailSuccess:"E-mail enviado com sucesso",exportError:"Falha ao exportar dados",unknownFailure:"O motivo da falha não pode ser identificado.",exportPermission:"O usuário não possui permissão para exportar o arquivo."},title:{error:"Erro",permission:"Falha detectada"},limitExceeded:{title:"Atenção",description:"Apenas os {{limit}} primeiros registros serão exportados. Deseja continuar?",subdescription:"Caso seja necessária uma quantidade maior de registros exportados, utilize o Extrator de Dados através de um Relatório Personalizado.",cancel:"Cancelar",continue:"Continuar"}},A={modalTitle:"Configuração de valor variável",labelSystemConfig:"Usar definições do sistema",labelUserConfig:"Usar definições personalizadas",labelInstance:"Categoria",labelField:"Campo",labelDescription:"Descrição (obrigatório) *",labelType:"Tipo (obrigatório) *",labelTypeValues:{date:"Data",text:"Texto",integer:"Número Inteiro",decimal:"Número com Decimal"},labelExpression:"Expressão",labelCancel:"Cancelar",labelSave:"Salvar"},C={searchLabel:"Buscar campo",fieldLabel:"Campos de {{link}}",linkLabel:"Categorias de {{link}}",groupEmpty:"Não há categorias para seleção",searchEmpty:"Nenhum resultado encontrado"},F={backTitle:"Voltar"},S={title:"Anexar arquivos",description:"Faça o upload dos arquivos ou informe links que deseja anexar ao título",attachHint:"Fazer download do arquivo",breadcrumbTitle:"Anexar",finishedMessage:"O anexo foi finalizado com sucesso",finish:"Finalizar",cancelConfirmation:{title:"Atenção",message:"As alterações realizadas não serão aplicadas.<br/><br/><b>Deseja mesmo continuar?</b>"},alertValidation:{fileAndLinkAtTheSameTime:{title:"Atenção",message:"Não é permitido inserir o arquivo e o link ao mesmo tempo."},anyLinkOrFileFilled:{title:"Atenção",message:'É necessário preencher o campo "Link" ou anexar um arquivo.'},descriptionCannotBeChanged:{title:"Atenção",message:"O campo 'Descrição' não pode ser alterado."}},taskbar:{titleDownload:"Fazer download",titleLink:"Abrir link"},attachMetadata:{lblCode:"Código",lblDescription:"Descrição",lblFileOrLink:"Arquivo / Link",lblUser:"Usuário",lblDate:"Data de alteração",lblFile:"Arquivo",lblSubTitle:"Clique para selecionar um arquivo"}},x={info:{titleEdit:"Editar filtro personalizado",titleAdd:"Criar filtro personalizado",titleCollapsible:"Expressão a ser aplicada (gerada pelo assistente)",labelSearchField:"Buscar campo",labelOperator:"Operador",labelValueVarible:"Valor variável",titleTooltip:"Ao ativar um valor variável, é possível inserir um valor diferente sempre que o filtro for aplicado",labelAddNewExpression:"Adicionar nova linha de expressão",labelDeleteExpression:"Remover expressão",labelDeleteItem:"Remover item",labelDisabledAddGroupButton:"Filtros Personalizados possuem um limite de {{LIMIT_GROUP_LEVEL}} Grupos de Condições e Valores",labelDisabledAddExpressionButton:"Preencha campos obrigatórios ou indique valores variáveis nas expressões do grupo antes de adicionar mais itens",labelCancel:"Cancelar",labelSave:"Salvar",labelNameFilter:"Nome do filtro",labelExpression:"Expressão",badgeVariable:"variável",noDataFound:"Nenhum filtro encontrado",condition:"Condição",addGroup:"Adicionar grupo",addField:"Adicionar campo",applyExpression:"Expressão a ser aplicada:",tooltipDisabledAssistentMode:"Expressão não suportada pelo assistente.",activeModeAdvanced:"Ativar modo avançado",activeModeAssistent:"Ativar modo assistente"},confirmExpression:{title:"Aviso",description:"As informações da condição serão descartadas.</br></br><b>Gostaria de continuar?</b>"},confirmGroup:{title:"Aviso",description:"As informações do Grupo e suas Condições serão descartadas.</br></br><b>Gostaria de continuar?</b>"},confirmCancel:{title:"Aviso",description:"As alterações realizadas serão descartadas.</br></br><b>Gostaria de continuar?</b>"},confirmChangeModeAssistent:{title:"Aviso",description:"Ao modificar a expressão, o modo assistente será desabilitado.</br></br><b>Gostaria de continuar?</b>"},confirmChangeModeAdvanced:{title:"Aviso",description:"Ao retornar ao modo assistente suas alterações serão perdidas.</br></br><b>Gostaria de continuar?</b>"},confirmSaveModeAdvanced:{title:"Aviso",description:"Ao modificar a expressão, o modo assistente será desabilitado.</br></br><b>Gostaria de continuar?</b>"},operador:{firstLevel:"A seleção será habilitada a partir da adição da segunda linha de regras.",and:"Será verdadeiro se todas as condições forem obedecidas.",or:"Será verdadeiro se qualquer uma das condições for obedecida."},error:{title:"Atenção",description:"Há pelo menos um campo obrigatório não preenchido."},errorValidation:{title:"Erro na expressão"},confirmSave:{title:"Filtro criado com sucesso!"},confirmEdit:{title:"Filtro atualizado com sucesso!"},deleteConfirm:{title:"Aviso",message:"Deseja realmente excluir o filtro '{{filterName}}'?"},listActions:{edit:"Editar",delete:"Excluir"},footerActions:{clear:"Limpar",create:"Criar filtro"}},h={selected:"Selecionados:"},E={title:{actions:"Ações",error:"Erro",warning:"Aviso"},action:{incorrectAction:'A ação "{{description}}" não pode ser executada porque ela não foi salva corretamente.',emptyParamName:"<b>Regra Personalizada:</b><br/><br/>É necessário informar o atributo 'paramName'",nonExistentType:"Tipo de ação não implementada: {{this.actionType}}"},launchScreen:{emptyField:'A ação "{{description}}" não pôde ser executada porque o campo "{{localFieldLabel}}" está vazio.'},form:{fillParams:"Informe os parâmetros"},clientEvent:{cancelMessage:"Caso queira cancelar, feche esta mensagem."},buttons:{apply:"Aplicar",cancel:"Cancelar",yes:"Sim",no:"Não"}},T={title:{warning:"Aviso",printerSelection:"Seleção de impressora",remotePrintersTab:"Impressoras remotas",localPrintersTab:"Impressoras locais"},subtitle:{document:"Documento:",jobs:"Trabalhos:"},message:{canceledPrint:"A impressão será cancelada. Deseja mesmo continuar?",noPrinters:"Não há impressoras para seleção",savePrinter:"Usar sempre esta seleção"},button:{print:"Imprimir",cancel:"Cancelar",yes:"Sim",no:"Não"}};class D{constructor(D){this._defaults={snkApplication:d,snkDataUnit:a,snkFormConfig:m,snkConfigOptions:c,snkTaskbar:r,snkFieldConfig:u,snkFilterBar:o,snkConfigurator:f,snkTabConfig:p,crudUtils:i,snkGrid:b,snkGridConfig:v,snkExporter:s,snkDataExporter:g,snkCrud:t,snkSimpleCrud:l,fileViewer:n,snkFilterParamConfig:A,snkFilterFieldSearch:C,snkSimpleBar:F,snkAttach:S,snkPersonalizedFilter:x,snkEntityList:h,snkActionsButton:E,snkPrintSelector:T},this._currentOperation=L.CLEAN,this._domainName=D,this._application=e.getContextValue("__SNK__APPLICATION__"),this.loadAppMessages().then((e=>{this._appMessages=e}),(e=>{console.info("O arquivo de mensagens personalizadas não foi encontrado no caminho /messages/appmessages",e)}))}set currentOperation(e){this._currentOperation=e}getMessage(e,a){if(null==e)return;var o=e.split(".");let r=this.resolveMessage(o,this.getDomainMessages());if(null==r&&(r=this.resolveMessage(o,this._defaults)),this.customMessageBuilder){const o=this.customMessageBuilder(e,r,a);r=o.message,a=o.params}return this.postProcess(r,a)}getDomainMessages(){if(this._appMessages)return this._domainName?this._appMessages[this._domainName]:this._appMessages.Global||this._appMessages}resolveMessage(e,a){if(null==a)return;const o=a[e[0]];return o?this.isOperationSensitive(o)?o[this._currentOperation]:1===e.length||null==o||"string"==typeof o?o:this.resolveMessage(e.slice(1),o):void 0}isOperationSensitive(e){return null!=e[L.CLONE]||null!=e[L.INSERT]||null!=e[L.UPDATE]||null!=e[L.CLEAN]}postProcess(e,a){if(e){const o=/(.*?)\{\{(.+?)\}\}/g;let r,i="",s=e;for(;null!==(r=o.exec(e));){const[o,t,l]=r,n=r.index+o.length;s=n<e.length?e.substring(n):"";let d=a?a[l]:void 0;null==d&&(d=""),i+=t+d}return i+s}return e}async loadAppMessages(){const e=await this._application.getApplicationPath();return(await import(`${e}/messages/appmessages.js`)).default}}var L;!function(e){e.CLONE="clone",e.INSERT="insert",e.UPDATE="update",e.CLEAN="clean"}(L||(L={}));export{L as O,D as S}
@@ -0,0 +1 @@
1
+ import{h as t}from"./p-d2d301a6.js";class s{constructor(t){this._defaultButtons=t}process(t,s,n,e=[],o=[]){var a;this.customButtons=new Map,this.buttons="",this.disabledButtons=[].concat(e),null===(a=this.getButtonsArray(t,s,n))||void 0===a||a.forEach((a=>{let i;if("string"==typeof a)i=a;else{const t=a;this.customButtons.set(t.name,t),i=t.name}o.includes(i)||(this.isEnabled(t,s,i,n,e)||this.disabledButtons.push(i),this.buttons.length>0&&(this.buttons+=","),this.buttons+=i)}))}getButtonsArray(t,s,n){const e=this.getButtonsFromKey(t);return s?s.getButtons(t,n,[...e]):e}getButtonsFromKey(t){const s=this._defaultButtons[t];return"function"==typeof s?s():s}isEnabled(t,s,n,e,o){const a=!o.includes(n);return s&&s.isEnabled?s.isEnabled(t,e,n,a):a}}const n="taskbarActionsOpened",e=(s,n,e)=>t("ez-search",{class:"ez-actions-button--bottom-padding",canShowError:"false",showSelectedValue:"false",showOptionValue:"false",suppressEmptyOption:"true",label:s.label,value:"",optionLoader:n,onEzChange:t=>e(t.detail),ignoreLimitCharsToSearch:!0});async function o(t){requestAnimationFrame((async()=>{if(t){const s=t.t;if(!s)return;s.value=null,await s.setFocus()}}))}const a=async(t,s)=>{if(!t)return;if(await t.isOpened())return void await o(s);const e=()=>{o(s),t.removeEventListener(n,e)};t.addEventListener(n,e),await t.showActions()};export{s as T,e as b,a as o}
@@ -0,0 +1 @@
1
+ import{r as i,h as t,H as s,g as e,c as n}from"./p-d2d301a6.js";import{ApplicationContext as o,StringUtils as r,ErrorException as a,WarningException as l,ObjectUtils as c,DateUtils as d,ServiceUtils as h,StorageType as u,ArrayUtils as g,ElementIDUtils as f}from"@sankhyalabs/core";import{D as m}from"./p-00278e07.js";import{P as p}from"./p-eaad0aa8.js";import"./p-e6683406.js";import"./p-30cf616e.js";import"./p-21749402.js";import"@sankhyalabs/ezui/dist/collection/utils/constants";import"@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata";import"./p-47d24ac8.js";import"./p-ff1990ad.js";import{F as v}from"./p-acca8a69.js";import{g as b}from"./p-7dd49d15.js";import{R as k}from"./p-688dcb4c.js";import{ApplicationUtils as _,DialogType as w}from"@sankhyalabs/ezui/dist/collection/utils";import{CheckMode as y}from"@sankhyalabs/ezui/dist/collection/components/ez-check/CheckMode";import{C}from"./p-763edad2.js";import{O as x}from"./p-95ce311a.js";import"./p-8d884fab.js";import"@sankhyalabs/ezui/dist/collection/components/ez-grid/utils";import"@sankhyalabs/core/dist/utils/SortingUtils";class S{execute(i){var t;const s={actionID:i.actionID,refreshType:null===(t=i.actionConfig.javaCall)||void 0===t?void 0:t.refreshType};return new Promise((i=>{i({execSource:s,callback:this.callExecJava})}))}async callExecJava(i){const t={requestBody:{javaCall:i}};await m.get().callServiceBroker("ActionButtonsSP.executeJava",JSON.stringify(t))}}class z{execute(i){var t;const s={actionID:i.actionID,refreshType:null===(t=i.actionConfig.runScript)||void 0===t?void 0:t.refreshType};return new Promise((i=>{i({execSource:s,callback:this.callExecScript})}))}async callExecScript(i){const t={runScript:i};await m.get().callServiceBroker("ActionButtonsSP.executeScript",t)}}class A{constructor(){this._application=o.getContextValue("__SNK__APPLICATION__")}async execute(i,t){const s=i.resourceID;if(!s)return;let e=await this.buildLaunchObject(i,t);return this._application.openApp(s,e),null}buildLaunchObject(i,t){return new Promise((s=>{let e=i.actionConfig.params.param;if(e&&e.length>0){let n={},o=[];e.forEach((s=>{const e=s.localField;let l=t.getFieldValue(e);if(!l){let s=t.getField(e).label;throw s=r.isEmpty(t.getField(e).label)?e:s,new a(this._application.messagesBuilder.getMessage("snkActionsButton.title.error",void 0),this._application.messagesBuilder.getMessage("snkActionsButton.launchScreen.emptyField",{description:i.description,localFieldLabel:s}))}l=r.isEmpty(l.toString())?void 0:l.toString(),n[s.targetField]=l,o.push({fieldName:s.targetField,value:l})})),n.ACTION_PARAMETERS=o,n.call_time=Date.now(),s(n)}s(null)}))}}class O{execute(i){var t,s,e;const n=null===(t=i.actionConfig.dbCall)||void 0===t?void 0:t.name,o=null===(s=i.actionConfig.dbCall)||void 0===s?void 0:s.rootEntity,r={actionID:i.actionID,refreshType:null===(e=i.actionConfig.dbCall)||void 0===e?void 0:e.refreshType,procName:n,rootEntity:o};return new Promise((i=>{i({execSource:r,callback:this.callExecProcedure})}))}async callExecProcedure(i){const t={requestBody:{stpCall:i}};await m.get().callServiceBroker("ActionButtonsSP.executeSTP",JSON.stringify(t))}}var P,D;!function(i){i.LAUNCH_SCREEN="LC",i.JAVASCRIPT="SC",i.JAVA="RJ",i.PROCEDURE="SP",i.EMBEDDED="EB"}(P||(P={}));class N{constructor(i){this.actionType=i,this._application=o.getContextValue("__SNK__APPLICATION__")}get executor(){switch(this.actionType){case P.LAUNCH_SCREEN:return new A;case P.JAVASCRIPT:return new z;case P.JAVA:return new S;case P.PROCEDURE:return new O;default:throw new a(this._application.messagesBuilder.getMessage("snkActionsButton.title.error",void 0),this._application.messagesBuilder.getMessage("snkActionsButton.action.nonExistentType",{actionType:this.actionType}))}}}!function(i){i.NONE="NONE",i.PARENT="PARENT",i.MASTER="MASTER",i.ALL="ALL"}(D||(D={}));const E="__MASTER_ROW__";class I{constructor(i,t,s){var e;this._lastValuesCache={},this._actionsExecuteInterface=i,this._dataUnit=t,this._selectedRows=(null===(e=null==t?void 0:t.getSelectionInfo())||void 0===e?void 0:e.isAllRecords())?[]:null==t?void 0:t.getSelectionInfo().records,this._application=o.getContextValue("__SNK__APPLICATION__"),this._appResourceId=s}getPrimaryKeys(){return b(this._dataUnit).map((({name:i})=>i))}apply(i,t){this._application.closePopUp(),this._actionsExecuteInterface.execute(i,this._dataUnit).then((({execSource:s,callback:e})=>{this.resolvePromptParams(i,s,t).then((()=>{this.actionExecute(s,e)}))}))}async execute(i){var t;if(!i.actionConfig)throw new l(this._application.messagesBuilder.getMessage("snkActionsButton.title.warning",void 0),this._application.messagesBuilder.getMessage("snkActionsButton.action.incorrectAction",{description:i.description}));if(null===(t=i.actionConfig.params)||void 0===t?void 0:t.promptParam){const t=i.actionConfig.params.promptParam;let s=!1;for(let i=0;i<t.length;i++)if(!s&&"true"===t[i].saveLast){s=!0;break}s&&(i.actionConfig.params.promptParam=await this.loadSavedValuesIntoParams(i));const e=document.createElement("snk-actions-form");window.document.body.appendChild(e),e.action=c.copy(i),e.applyParameters=i=>{this.apply(i,s)},e.openPopup()}else i.type!=P.LAUNCH_SCREEN?this._actionsExecuteInterface.execute(i,this._dataUnit).then((({execSource:i,callback:t})=>{this.actionExecute(i,t)})):this._actionsExecuteInterface.execute(i,this._dataUnit)}loadSavedValuesIntoParams(i){return this.loadLastValues(i).then((t=>{let s=i.actionConfig.params.promptParam;return t&&t.param.forEach((i=>{s=s.map((t=>t.name!==i.paramName?t:Object.assign(Object.assign({},t),"B"===t.paramType?{value:"S"===i.$}:{value:i.$})))})),s}))}actionExecute(i,t){i.virtualPage=this.buildVirtualPage(),this.prepareAndExecute(i,t),this.recordsReloader(i.refreshType)}resolvePromptParams(i,t,s){return new Promise((e=>{let n=[];i.actionConfig.params.promptParam.forEach((i=>{n.push(this.buildPromptParam(i))})),this.putParamsOnExecSource(n,t),s&&this.saveLastValues(i,n),e()}))}buildPromptParam(i){let t,s,e=i.paramType,n=!1,o=i.value;switch(e){case p.DATE:e="D";break;case p.DATETIME:e="H";break;case p.DECIMAL:e="F",t={"sk-precision":Number(i.precision)};break;case p.BOOLEAN:e="S",n=!0,o=i.value?"S":"N";break;case p.ENTITY:t={"sk-entity-name":i.entityName,"sk-allow-show-hierarchical-mode":i.hierarchyEntity,"sk-data-type":"S"},i.hierarchyEntity&&i.entityPK&&(s=i.entityPK),o=i.value?Number(i.value):null;break;case p.OPTIONS:e="O";let r=i.options.split(";").map((function(i,t){let s,e;if(i.indexOf("=")>-1){let t=i.split("=");s=t[0],e=t[1]}else s=t+1,e=i;return{data:s,value:e}}));t={"sk-options":r}}return{description:i.label,required:"true"==i.required,fieldName:i.name,fieldNameOri:i.name,entityPK:s,paramType:i.paramType,type:e,isCheckbox:n,saveLast:i.saveLast,fieldProp:t,value:o,isGeneratedName:i.isGeneratedName}}putParamsOnExecSource(i,t){t.params={param:[]},i.forEach((i=>{if(i.isGeneratedName&&i.value)throw new a(this._application.messagesBuilder.getMessage("snkActionsButton.title.error",void 0),this._application.messagesBuilder.getMessage("snkActionsButton.action.emptyParamName",void 0));r.isEmpty(i.value)||t.params.param.push({type:this.getParamDataType(i.paramType),paramName:i.fieldName,$:this.getParamValue(i)})}))}getParamDataType(i){let t;switch(i){case"D":t="F";break;case"DT":case"DH":t="D";break;case"B":case"ENTITY":case"SO":t="S";break;default:t=i}return t}getParamValue(i){let t=i.value;return t?("DT"==i.paramType?t=d.formatDate(t):"DH"==i.paramType&&(t=d.formatDateTime(t)),t):t}async loadLastValues(i){const t=await this.buildResourceId(i.actionID);return new Promise(((i,s)=>{if(this._lastValuesCache[t])i(this._lastValuesCache[t]);else{const e={config:{chave:t,tipo:"T"}};m.get().callServiceBroker("SystemUtilsSP.getConf",e).then((s=>{var e,n;let o;(null===(n=null===(e=s.config)||void 0===e?void 0:e.data)||void 0===n?void 0:n.params)&&(o=s.config.data.params,Array.isArray(o.param)||(o.param=[o.param])),this._lastValuesCache[t]=o,i(o)})).catch((i=>{s(i)}))}}))}async saveLastValues(i,t){if(this._application){let s={params:{param:[]}};t.forEach((i=>{"true"==i.saveLast&&s.params.param.push({paramName:i.fieldName,$:i.value})}));const e=await this.buildResourceId(i.actionID);this._lastValuesCache[e]=s.params,this._application.saveConfig(e,s)}}async buildResourceId(i){return this._appResourceId+".actionconfig."+i}prepareAndExecute(i,t){this.addRows(i),t(i)}addRows(i){const t=this.getPrimaryKeys(),s={row:[]},e=this._selectedRows;for(const i in e){const n=e[i],o={};n.hasOwnProperty(E)&&(o.master="S",o.entityName=n.__ENTITY_NAME__,delete n[E],delete n.__ENTITY_NAME__),o.field||(o.field=[]);for(const i of t)o.field.push({fieldName:i,$:n[i]});s.row.push(o)}s.row.length>0&&(i.rows=s)}recordsReloader(i){switch(i){case D.NONE:break;case D.PARENT:case D.MASTER:case D.ALL:this._dataUnit.loadData();break;default:this._dataUnit.reloadCurrentRecord()}}buildVirtualPage(){var i,t,s,e;if(null===(t=null===(i=this._dataUnit)||void 0===i?void 0:i.getSelectionInfo())||void 0===t?void 0:t.isAllRecords())return{filters:{filters:null===(s=this._dataUnit)||void 0===s?void 0:s.getAppliedFilters()},orders:{orders:null===(e=this._dataUnit)||void 0===e?void 0:e.getSort()}}}}class L{async clientConfirm(i,t){return new Promise((s=>{const e=o.getContextValue("__SNK__APPLICATION__");let n="";i.content.event.hasOwnProperty("stpCall")?(t.requestBody=i.content.event.stpCall,n=P.PROCEDURE):i.content.event.hasOwnProperty("runScript")?(t.requestBody=i.content.event.runScript,n=P.JAVASCRIPT):i.content.event.hasOwnProperty("javaCall")&&(t.requestBody=i.content.event.javaCall,n=P.JAVA);let r={type:"S",sequence:i.content.event.sequence};t.requestBody.params?Array.isArray(t.requestBody.params.param)||(t.requestBody.params.param=[t.requestBody.params.param]):t.requestBody.params={param:[]},t.requestBody.params.param.push(r);const a=i.content.event.title.$,l=i.content.event.message.$;let c;switch(n){case P.JAVASCRIPT:c={runScript:t.requestBody};break;case P.PROCEDURE:c={requestBody:{stpCall:t.requestBody}};break;case P.JAVA:c={requestBody:{javaCall:t.requestBody}}}if("S"==i.content.event.showNoOption){r.paramName="__ESCOLHA_SIMNAO__";const i=document.createElement("snk-client-confirm");window.document.body.appendChild(i),i.titleMessage=a,i.message=l,i.accept=async()=>{r.$="S",await t.reCall(c),s()},i.cancel=async()=>{r.$="N",await t.reCall(c),s()},i.openPopup()}else e.confirm(a,l,null,"warn",{labelCancel:"Cancelar",labelConfirm:"Sim"}).then((async i=>{i&&(r.paramName="__CONFIRMACAO__",r.$="S",await t.reCall(c),s())}))}))}}const j=class{constructor(t){i(this,t),this.CLIENT_EVENT_CONFIRM_NAME="br.com.sankhya.actionbutton.clientconfirm",this._actions=[],this.handleClick=i=>{const t=this._actions.find((t=>t.actionID==i.detail.id)),s=new N(t.type).executor;new I(s,this._dataUnit,this._resourceID).execute(Object.assign({},t)),this._showDropdown=!1},this._items=[],this._showDropdown=!1}async getActions(){const i=await h.useCacheWithService(`SnkActionsButton_${this._entityName}-${this._resourceID}`,(async()=>{var i;const t={param:{entityName:this._entityName,resourceID:this._resourceID}};return(null===(i=(await m.get().callServiceBroker("ActionButtonsSP.getActions",t)).actions)||void 0===i?void 0:i.action)||[]}),u.IN_MEMORY_CACHE);this._actions=j.parameters.isOrderActions?g.sortAlphabetically(i,"description"):i}controlDropdown(){this._showDropdown=!this._showDropdown}canShowDropdown(){var i;return this._showDropdown&&(null===(i=this._items)||void 0===i?void 0:i.length)>0}positionDropdown(){var i;const t=null===(i=this._ezButton)||void 0===i?void 0:i.getBoundingClientRect();t&&this._dropdownParent&&(this._dropdownParent.style.top=t.y+t.height+5+"px",this._dropdownParent.style.left=t.x+"px")}closeDropdown(i){const t=null==i?void 0:i.target;t&&(t.closest(".snk-actions-button")||(this._showDropdown=!1))}setEvents(){document.removeEventListener("click",this.closeDropdown.bind(this)),document.addEventListener("click",this.closeDropdown.bind(this)),document.removeEventListener("scroll",this.positionDropdown.bind(this)),document.addEventListener("scroll",this.positionDropdown.bind(this))}async componentWillLoad(){this._application=o.getContextValue("__SNK__APPLICATION__"),await this.loadParameters();const i=this._element.parentElement;this._dataUnit=null==i?void 0:i.dataUnit,this._resourceID=null==i?void 0:i.resourceID,this._entityName=this._dataUnit.name.split("/")[2],null==this._resourceID&&(this._resourceID=await k.getResourceID()),this.setEvents(),await this.getActions(),this.loadItems()}async componentDidLoad(){if(this._element&&(f.addIDInfo(this._element),this.positionDropdown(),!await this._application.hasClientEvent(this.CLIENT_EVENT_CONFIRM_NAME))){const i=new L;this._application.addClientEvent(this.CLIENT_EVENT_CONFIRM_NAME,i.clientConfirm)}}componentDidUpdate(){this.positionDropdown()}loadItems(){this._actions&&0!=this._actions.length&&this._actions.forEach((i=>{this._items.push({id:i.actionID,label:i.description})}))}getElementID(i){return{[f.DATA_ELEMENT_ID_ATTRIBUTE_NAME]:f.getInternalIDInfo(i)}}async loadParameters(){null==j.parameters.isOrderActions&&(j.parameters.isOrderActions=await this._application.getBooleanParam("global.ordenar.acoes.personalizadas"))}render(){return t(s,null,this._actions&&this._actions.length>0&&t("div",{class:`ez-padding-left--medium snk-actions-button\n ${this.canShowDropdown()?" ez-elevation--16":""}\n `},t("ez-button",Object.assign({ref:i=>this._ezButton=i,iconName:"acao",size:"small",mode:"icon",title:this._application.messagesBuilder.getMessage("snkActionsButton.title.actions",void 0),onClick:()=>this.controlDropdown()},this.getElementID("button"))),t("div",Object.assign({ref:i=>this._dropdownParent=i,class:(this.canShowDropdown()?"snk-actions-button__dropdown--show":"snk-actions-button__dropdown")+"\n "},this.getElementID("dropdown")),this.canShowDropdown()&&t("ez-dropdown",Object.assign({items:this._items,onEzClick:i=>this.handleClick(i)},this.getElementID("dropdown"))))),this.canShowDropdown()&&t("div",Object.assign({class:"ez-scrim ez-scrim--light"},this.getElementID("ezScrim"))))}get _element(){return e(this)}};j.parameters={isOrderActions:null},j.style=".sc-snk-actions-button-h{display:flex;width:fit-content;height:fit-content}.snk-actions-button.sc-snk-actions-button{display:flex;width:fit-content;height:fit-content}.snk-actions-button__dropdown--show.sc-snk-actions-button{display:flex;flex-direction:column;position:fixed}.snk-actions-button__dropdown.sc-snk-actions-button>ez-dropdown.sc-snk-actions-button{position:relative}.snk-actions-button__dropdown.sc-snk-actions-button{display:none}";const B=class{constructor(t){i(this,t),this.configChange=n(this,"configChange",7),this.configCancel=n(this,"configCancel",7),this._orderListItems=[],this._orderPriorityList=[],this._columListItems=[],this._selectedIndex=-1,this._dataChanged=!1,this._componenteInternalKey=Date.now(),this.selectedIndex=0,this.columns=void 0,this.config=void 0,this.configName=void 0,this.resourceID=void 0}getMessage(i,t){return o.getContextValue("__SNK__APPLICATION__").messagesBuilder.getMessage(i,t)}getSortableColumns(){let i=[];return this.columns.filter((i=>{var t;return r.getBooleanValue(null===(t=null==i?void 0:i.props)||void 0===t?void 0:t.get("sortable"),!0)})).forEach((t=>{var s;let e=null===(s=this.config)||void 0===s?void 0:s.columns.find((i=>i.name===t.name)),n={name:t.name,label:t.label};e&&(n.orderIndex=e.orderIndex,n.ascending=e.ascending),t.hidden||i.push(n)})),i}createOrderList(){let i=this.getSortableColumns();i.sort(((i,t)=>0!=i.orderIndex||0!=t.orderIndex||null==i.ascending&&null==t.ascending?null!=i.ascending&&null!=t.ascending?i.orderIndex-t.orderIndex:null!=i.ascending||null!=t.ascending?null!=i.ascending?-1:null!=t.ascending?1:0:i.orderIndex-t.orderIndex:null!=i.ascending?-1:null!=t.ascending?1:0)),this._orderListItems=i}createColumnList(){let i={group:this.getMessage("snkGridConfig.group.visible"),items:[]},t={group:this.getMessage("snkGridConfig.group.hidden"),items:[],sort:x.asc.value};this.columns.forEach((s=>{let e={label:s.label};s.hidden?t.items.push(e):i.items.push(e)})),this._columListItems=[i,t]}createColumnListSlotDataElementId(i){return`configItem_${r.replaceAccentuatedChars(r.toCamelCase(i.label))}`}buildColumnListSlot(i,s){const e=this.createColumnListSlotDataElementId(i);return t("div",null,t("ez-check",{mode:y.SWITCH,id:y.SWITCH+((null==i?void 0:i.label)||"")+((null==s?void 0:s.group)||""),value:s.group===this.getMessage("snkGridConfig.group.visible"),"data-element-id":e,onEzChange:t=>{this.switchColumnGroup(t,i)}}))}createOrderListSlotDataElementId(i){return`${this._element.getAttribute(f.DATA_ELEMENT_ID_ATTRIBUTE_NAME)}_configItem_${r.toCamelCase(i.label)}`}buildOrderListSlot(i){const s=this.createOrderListSlotDataElementId(i);let e=x.none.value;return null!=(null==i?void 0:i.ascending)&&(e=1==i.ascending?x.asc.value:x.desc.value),t("div",null,t("snk-select-box",{selectedOption:e,key:"snk-select-box-"+this._componenteInternalKey+"-"+i,"data-element-id":s,onEzChange:t=>{t.stopPropagation(),this.updateOrder(t.detail,i.label)}}))}updateOrder(i,t){var s;this._dataChanged=!0;let e,n=[...this.columns],o=n.find((i=>i.label===t));o&&(o.sort=i.value===x.none.value?void 0:i.value),(null===(s=this._orderPriorityList)||void 0===s?void 0:s.length)>0?(this._orderPriorityList.find((i=>i.label===o.label)).sort=i,this._orderPriorityList.filter((i=>i.sort)).forEach(((i,t)=>{i.label===o.label&&(o.sortIndex=t)}))):(e=n.filter((i=>i.sort&&!0!==i.hidden)).map(((i,t)=>({label:i.label,orderIndex:t}))),e.forEach((i=>{n.find((t=>t.label===i.label)).sortIndex=i.orderIndex}))),this.columns=n}switchColumnGroup(i,t){i.stopPropagation();let s=[...this._columListItems];if(this._dataChanged=!0,!0===i.detail){let i=s.find((i=>i.group===this.getMessage("snkGridConfig.group.hidden"))),e=i.items.findIndex((i=>i.label===t.label));e>=0&&i.items.splice(e,1),s.find((i=>i.group===this.getMessage("snkGridConfig.group.visible"))).items.push(t),this._columListItems=s,this.createOrderList()}else if(!1===i.detail){let i=s.find((i=>i.group===this.getMessage("snkGridConfig.group.visible"))),e=i.items.findIndex((i=>i.label===t.label));e>=0&&i.items.splice(e,1),s.find((i=>i.group===this.getMessage("snkGridConfig.group.hidden"))).items.push(t),this._columListItems=s,this.createOrderList()}}finish(){if(!this._dataChanged)return void this.closeConfig();let i=[];this._columListItems.forEach((t=>{t.items.forEach((s=>{const e=this.columns.find((i=>i.label===s.label));let n=Object.assign({},e);n.hidden=t.group===this.getMessage("snkGridConfig.group.hidden"),i.push(n)}))})),this.columns=i,this._dataChanged=!1,this.closeConfig(),this.save()}saveGridConfigOnStorage(i){C.saveGridConfig(i,this.configName,this.resourceID).then((i=>{this.configChange.emit(i),this._orderList.clearHistory(),_.info(this.getMessage("snkGridConfig.info.successfullyConfigSaved"),{iconName:"check"})}))}reOrderPriorityColumns(i,t){let s=[];s=i.filter((i=>i.sort&&!0!==i.hidden)).map((i=>({label:i.label,orderIndex:0})));let e=0,n=[];return t.forEach((i=>{let t=s.find((t=>t.label===i.label));t&&(t.orderIndex=e,n.push(t),e++)})),n.length>0&&(s=n),s}save(){var i;let t;t=this.config?this.config:this.createConfigFromState(this.columns);let s,e=[];(null===(i=this._orderPriorityList)||void 0===i?void 0:i.length)>0&&(s=this.reOrderPriorityColumns(this.columns,this._orderPriorityList)),this.columns.forEach((i=>{let n=t.columns.find((t=>i.name===t.name));!0===i.hidden&&n||(n?n.width=i.width:!1===i.hidden&&(n={name:i.name,width:i.width,orderIndex:0}),n&&(i.sort?(n.ascending=i.sort.toUpperCase()===x.asc.value,s?function(i,t){if(s){let e=s.find((t=>t.label===i.label));e&&(t.orderIndex=e.orderIndex)}}(i,n):n.orderIndex=i.sortIndex):(delete n.ascending,n.orderIndex=0),e.push(n)))})),t.columns=e,this.saveGridConfigOnStorage(t)}createConfigFromState(i){let t={columns:[]};return i.forEach((i=>{if(!i.hidden){let s={name:i.name};i.width&&(s.width=i.width),i.sort?(s.ascending=i.sort.toUpperCase()===x.asc.value,s.orderIndex=i.sortIndex):s.orderIndex=0,s&&t.columns.push(s)}})),t}async locateColumn(i,t){var s;const e="Enter"===i.key;if(!(t=t||(null===(s=i.currentTarget)||void 0===s?void 0:s.value)))return void this.removeSelection();const n=await this.getMatchedIndexes(t),o=this.getNewSelectedIndex(n,e);this._selectedIndex=o,1===this.selectedIndex?this.updateOrderListSelection(o):this.updateColumnListSelection(o)}async getMatchedIndexes(i){const t=[];return 1===this.selectedIndex?(await this._orderList.getList()).forEach(((s,e)=>{this.compareWords(s,i)&&t.push(e)})):this.columns.forEach(((s,e)=>{this.compareWords(s,i)&&t.push(e)})),t}getNewSelectedIndex(i,t){if(0===i.length)return-1;if(t)for(const t of i)if(t>this._selectedIndex)return t;return i[0]}updateOrderListSelection(i){-1!==i?this._orderList.getList().then((t=>{const s=t[i];s?this._orderList.setSelection(s,!0):this._orderList.removeSelection()})):this._orderList.removeSelection()}updateColumnListSelection(i){if(-1===i)return void this._columnList.removeSelection();const t=this.columns[i];if(t){const i=this._columListItems.map((i=>i.items)).flat().find((i=>i.label===t.label));i?this._columnList.setSelection(i,!0):this._columnList.removeSelection()}else this._columnList.removeSelection()}removeSelection(){1===this.selectedIndex?this._orderList.removeSelection():this._columnList.removeSelection()}compareWords(i,t){var s,e;const n=null===(s=r.replaceAccentuatedChars(null==i?void 0:i.label))||void 0===s?void 0:s.toUpperCase(),o=null===(e=r.replaceAccentuatedChars(t))||void 0===e?void 0:e.toUpperCase();return!r.isEmpty(n)&&!r.isEmpty(o)&&n.includes(o)}getColumnNames(){const i=[];return i.push(this.getMessage("snkGridConfig.tab.columns")),i.push(this.getMessage("snkGridConfig.tab.lineOrdering")),i.join(",")}closeConfig(){if(this._orderList.scrollToTop(),this._columnList.scrollToTop(),this._searchElement.value="",this._dataChanged){let i={canClose:!1,labelCancel:this.getMessage("snkGridConfig.confirm.cancel"),labelConfirm:this.getMessage("snkGridConfig.confirm.save"),btnConfirmDanger:!1};_.confirm(this.getMessage("snkGridConfig.confirm.alert"),this.getMessage("snkGridConfig.confirm.msgCancel"),null,w.WARN,i).then((i=>{i?this.finish():(this._dataChanged=!1,this.configCancel.emit(),this._orderList.clearHistory(),this._componenteInternalKey=Date.now())}))}else this.configCancel.emit(),this._orderList.clearHistory()}handleTabChange(i){null!=(null==i?void 0:i.index)&&(this.selectedIndex!==i.index&&(0===i.index?this._orderList.scrollToTop():1===i.index&&this._columnList.scrollToTop(),this._searchElement.value=""),1===i.index&&this.createOrderList(),this.selectedIndex=i.index)}handleColumnListChange(i){var t;if(i.detail){let s=null===(t=i.detail.find((i=>i.group===this.getMessage("snkGridConfig.group.visible"))))||void 0===t?void 0:t.items;s&&(this._dataChanged=!0,this._orderListItems=s)}}handleOrderListChange(i){if(i.detail){let t=i.detail;t&&(this._dataChanged=!0,this._orderPriorityList=t)}}componentWillRender(){var i;(null===(i=this.columns)||void 0===i?void 0:i.length)>0&&this.createColumnList()}componentDidRender(){var i;(null===(i=this.columns)||void 0===i?void 0:i.length)>0&&this.locateColumn(new KeyboardEvent("arrow-right",{key:"ArrowRight"}),this._searchElement.value)}componentDidLoad(){f.addIDInfo(this._element)}render(){return t(s,null,t("div",{class:"grid-config__header"},t("div",{class:"title-container"},t("div",{class:""},t("label",{class:"title"},this.getMessage("snkGridConfig.gridConfiguration")),t("label",{class:"subtitle"},this.getMessage("snkGridConfig.columnVisibilityOrder"))),t("div",{class:"button-close"},t("ez-button",{mode:"icon",iconName:"close",size:"medium",onClick:()=>this.closeConfig()}))),t("div",{class:"tabselector-container"},t("ez-tabselector",{selectedIndex:this.selectedIndex,onEzChange:i=>{this.handleTabChange(i.detail)},tabs:this.getColumnNames()})),t("div",null,t("ez-text-input",{"data-element-id":"searchColums",ref:i=>this._searchElement=i,label:this.getMessage("snkGridConfig.findColumn"),onKeyUp:i=>this.locateColumn(i)},t("ez-icon",{slot:"leftIcon",size:"medium",iconName:"search"})))),t("div",{class:"grid-config__main"},t("ez-list",{ref:i=>this._columnList=i,class:0===this.selectedIndex?"":"hidden",dataSource:this._columListItems,onEzChange:i=>this.handleColumnListChange(i),ezDraggable:!0,ezSelectable:!0,itemSlotBuilder:(i,t)=>this.buildColumnListSlot(i,t),useGroups:!0,"data-element-id":"configCols"}),t("div",{class:1===this.selectedIndex?"group-name":"hidden"},this.getMessage("snkGridConfig.info.sortingSequence")),t("ez-list",{ref:i=>this._orderList=i,class:1===this.selectedIndex?"height-calc":"hidden",dataSource:this._orderListItems,ezSelectable:!0,onEzChange:i=>this.handleOrderListChange(i),ezDraggable:!0,itemSlotBuilder:i=>this.buildOrderListSlot(i),"data-element-id":"configDataOrder"})),t("div",{class:"grid-config__footer"},t("ez-button",{class:"padding-right--medium",label:this.getMessage("snkGridConfig.cancel"),onClick:()=>this.closeConfig()}),t("ez-button",{label:this.getMessage("snkGridConfig.complete"),class:"ez-button--primary",onClick:()=>this.finish()})))}static get assetsDirs(){return["../assets"]}get _element(){return e(this)}};B.style='.sc-snk-grid-config-h{--snk-grid-config__footer--padding-top:var(--space--medium, 12px);--snk-grid-config__main--padding-right:var(--space--medium, 12px);--snk-grid-config__tabselector-container--padding:var(--space--medium, 12px);--snk-grid-config__button-close--padding-left:var(--space--medium, 12px);--snk-grid-config__title--color:var(--title--primary, #2B3A54);--snk-grid-config__title--font-family:var(--font-pattern, "Roboto");--snk-grid-config__title--font-size:var(--title--large, 20px);--snk-grid-config__title--font-weight:var(--text-weight--extra-large, 700);--snk-grid-config__subtitle--font-family:var(--font-pattern, "Roboto");--snk-grid-config__subtitle--font-size:var(--text--medium, 14px);--snk-grid-config__group--font-family:var(--font-pattern, "Roboto");--snk-grid-config__group--font-size:var(--text--medium, 14px);--snk-grid-config__group--font-weight:var(--text-weight--large, 600);--snk-grid-config__group--padding-bottom:var(--space-small, 6px);--snk-grid-config__scrollbar--color-default:var(--scrollbar--default, #626e82);--snk-grid-config__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--snk-grid-config__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--snk-grid-config__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--snk-grid-config__scrollbar--border-radius:var(--border--radius-small, 6px);--snk-grid-config__scrollbar--width:var(--space--medium, 12px);display:grid;grid-template-rows:auto 1fr auto;max-height:100%;width:100%}@media screen and (min-width: 480px){.sc-snk-grid-config-h{width:359px;max-width:359px}}.padding-right--medium.sc-snk-grid-config{padding-right:var(--space--medium)}ez-list.sc-snk-grid-config{height:100%}.height-calc.sc-snk-grid-config{max-height:calc(100% - 24px)}.grid-config__footer.sc-snk-grid-config{display:flex;justify-content:flex-end;width:100%;padding-top:var(--snk-grid-config__footer--padding-top)}.hidden.sc-snk-grid-config{display:none}.tabselector-container.sc-snk-grid-config{padding:var(--snk-grid-config__tabselector-container--padding) 0}.button-close.sc-snk-grid-config{padding-left:var(--snk-grid-config__button-close--padding-left)}.title-container.sc-snk-grid-config{display:flex;justify-content:space-between;align-items:center;width:100%}.title.sc-snk-grid-config{display:flex;margin:0;line-height:normal;letter-spacing:0em;text-align:left;color:var(--snk-grid-config__title--color);font-size:var(--snk-grid-config__title--font-size);font-family:var(--snk-grid-config__title--font-family);font-weight:var(--snk-grid-config__title--font-weight)}.subtitle.sc-snk-grid-config{color:var(--text--primary);font-size:var(--snk-grid-config__subtitle--font-size);font-family:var(--snk-grid-config__subtitle--font-family)}.grid-config__main.sc-snk-grid-config{overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--snk-grid-config__scrollbar--color-clicked) var(--snk-grid-config__scrollbar--color-background);padding-right:var(--snk-grid-config__main--padding-right)}.grid-config__main.sc-snk-grid-config::-webkit-scrollbar{width:var(--snk-grid-config__scrollbar--width);max-width:var(--snk-grid-config__scrollbar--width);min-width:var(--snk-grid-config__scrollbar--width);background-color:var(--snk-grid-config__scrollbar--color-background)}.grid-config__main.sc-snk-grid-config::-webkit-scrollbar-track{background-color:var(--snk-grid-config__scrollbar--color-background);border-radius:var(--snk-grid-config__scrollbar--border-radius)}.grid-config__main.sc-snk-grid-config::-webkit-scrollbar-thumb{background-color:var(--snk-grid-config__scrollbar--color-default);border-radius:var(--snk-grid-config__scrollbar--border-radius)}.grid-config__main.sc-snk-grid-config::-webkit-scrollbar-thumb:vertical:hover,.grid-config__main.sc-snk-grid-config::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--snk-grid-config__scrollbar--color-hover)}.grid-config__main.sc-snk-grid-config::-webkit-scrollbar-thumb:vertical:active,.grid-config__main.sc-snk-grid-config::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--snk-grid-config__scrollbar--color-clicked)}.group-name.sc-snk-grid-config{font-family:var(--snk-grid-config__group--font-family);font-size:var(--snk-grid-config__group--font-size);font-weight:var(--snk-grid-config__group--font-weight);padding-bottom:var(--snk-grid-config__group--padding-bottom)}';const T=class{constructor(t){i(this,t),this.ezChange=n(this,"ezChange",7),this.selectedOption=x.none}render(){return t("ez-combo-box",{class:"grid-config-combo ez-input--inverted",label:"",suppressSearch:!0,value:this.selectedOption,enabled:!0,canShowError:!1,suppressEmptyOption:!0},Object.keys(x).map((i=>t("option",{value:x[i].value},x[i].label))))}static get assetsDirs(){return["../assets"]}};T.style="ez-combo-box{width:100px}.grid-config-combo{--ez-text-input--height:28px;--ez-text-input__input--background-color:#fff;--ez-text-input__input--border-color:#dce0e8}";const G=class{constructor(t){i(this,t),this.snkConfigSaved=n(this,"snkConfigSaved",7),this._formConfigFetcher=new v,this.fieldsToSave=[],this.dataUnit=void 0,this.configName=void 0,this.avaliableFields=[],this.selectedFields=[]}async show(){await this.initializeFormConfig(),this.ezPopupRef.opened=!0}async initializeFormConfig(){if(!this.configName)return;const i=this.getAllVisibleFieldsFromDataUnit(),t=await this.getConfig();if(0===t.length)return this.avaliableFields=[],this.selectedFields=[...i],void(this.fieldsToSave=[...this.selectedFields]);const s=this.sortDisplayedFields(t,i),e=i.filter((i=>!t.includes(i.id)));this.avaliableFields=[...e],this.selectedFields=[...s],this.fieldsToSave=[...this.selectedFields]}async getConfig(){const i=await this._formConfigFetcher.fetchSimpleFormConfig(this.configName);return[...this.removeDuplicates(i)]}removeDuplicates(i){return i.filter(((t,s)=>i.indexOf(t)===s))}sortDisplayedFields(i,t){const s=[];return i.forEach((i=>{const e=t.find((t=>t.id===i));e&&s.push(e)})),s}getAllVisibleFieldsFromDataUnit(){var i,t,s;return(null!==(s=null===(t=null===(i=this.dataUnit)||void 0===i?void 0:i.metadata)||void 0===t?void 0:t.fields)&&void 0!==s?s:[]).filter((i=>i.visible)).map((i=>({id:i.name,label:i.label})))}close(){this.ezPopupRef.opened=!1}async handleResetConfigs(){await this._formConfigFetcher.restoreFormConfig(this.configName),await this.initializeFormConfig(),await this.handleSave()}handleCancel(){this.close()}async handleSave(){const i=this.fieldsToSave.map((i=>i.id));await this._formConfigFetcher.saveSimpleFormConfig(this.configName,i),this.close(),this.snkConfigSaved.emit()}render(){return t("ez-popup",{ref:i=>this.ezPopupRef=i,heightMode:"auto",size:"auto",ezTitle:"Configurar formulário"},t("div",{class:"config-container"},t("div",{class:"config-lists"},t("ez-double-list",{leftList:this.avaliableFields,leftTitle:"Campos disponíveis",rightList:this.selectedFields,rightTitle:"Campos selecionados",onEzRightListChanged:({detail:i})=>this.fieldsToSave=[...i],entityLabel:"campo",entityLabelPlural:"campos"})),t("div",{class:"config-actions"},t("ez-button",{label:"Restaurar",onClick:this.handleResetConfigs.bind(this),size:"small"}),t("ez-button",{label:"Cancelar",onClick:this.handleCancel.bind(this),size:"small"}),t("ez-button",{label:"Salvar",class:"ez-button--primary",onClick:this.handleSave.bind(this),size:"small"}))))}};G.style=":host{display:block}.config-container{display:flex;flex-direction:column;align-items:center;justify-content:space-between}.config-lists{margin-bottom:12px}.config-actions{display:flex;flex-direction:row;justify-content:flex-end;width:100%;gap:12px}";const R=class{constructor(t){i(this,t),this.taskbarActionSelected=n(this,"taskbarActionSelected",7),this.taskbarActionsOpened=n(this,"taskbarActionsOpened",7),this.taskbarActionsButtonDisconnected=n(this,"taskbarActionsButtonDisconnected",7),this._showDropdown=!1,this.title=void 0,this.enabled=void 0,this.actions=void 0}async handleKeyDown(i){"Escape"!==i.key&&"Esc"!==i.key||await this.hideActions()}async handleClose(){await this.hideActions()}async showActions(){this._showDropdown=!0,requestAnimationFrame((()=>{this._element.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})}))}async hideActions(){this._showDropdown=!1}async isOpened(){return this._showDropdown}controlDropdown(){this._showDropdown=!this._showDropdown}loadItems(){return this.actions.filter((i=>void 0!==i)).map((i=>{var t;return{id:i.value,label:i.label,value:i.value,type:null!==(t=i.type)&&void 0!==t?t:"item",children:i.children,iconName:i.iconName,subAction:i.subAction,group:i.group,disableCloseOnSelect:i.disableCloseOnSelect}}))}canShowDropdown(){var i;return this._showDropdown&&(null===(i=this.actions)||void 0===i?void 0:i.length)>0}onSelectAction(i){const t=this.actions.map((i=>Object.assign(Object.assign({},i),{id:i.value}))),s=this.getSelectedAction(i.id,t);this.taskbarActionSelected.emit(s),s.disableCloseOnSelect||(this._showDropdown=!1)}getSelectedAction(i,t){let s=null;for(const e of t){if(e.id===i){s=e;break}if((null==e?void 0:e.children)&&(s=this.getSelectedAction(i,e.children),s))break}return s}dropdownItemBuilder(i,s){const e=this.actions.find((t=>t.value===i.id));if(!e||!e.itemBuilder)return;const n=e.itemBuilder(this._element,e);return"string"==typeof n?t("div",{innerHTML:n}):n}initializeEagerItems(){var i;null===(i=this.actions)||void 0===i||i.forEach((i=>{var t;i&&i.eagerInitialize&&i.itemBuilder&&(null===(t=i.itemBuilder)||void 0===t||t.call(i,this._element,i))}))}componentDidLoad(){this.initializeEagerItems()}componentDidRender(){this._showDropdown&&this.taskbarActionsOpened.emit(this._element)}disconnectedCallback(){this.taskbarActionsButtonDisconnected.emit()}render(){return t(s,null,t("div",{class:this.canShowDropdown()?" ez-elevation--16":""},t("ez-button",{title:this.title,mode:"icon",iconName:"dots-vertical",size:"small",enabled:this.enabled,onClick:()=>this.controlDropdown()}),this.canShowDropdown()&&t("ez-dropdown",{items:this.loadItems(),onEzClick:i=>this.onSelectAction(i.detail),onEzOutsideClick:()=>this._showDropdown=!1,itemBuilder:(i,t)=>this.dropdownItemBuilder(i,t)})))}get _element(){return e(this)}};R.style=".sc-taskbar-actions-button-h{display:flex;width:fit-content;height:fit-content}";export{j as snk_actions_button,B as snk_grid_config,T as snk_select_box,G as snk_simple_form_config,R as taskbar_actions_button}