@sankhyalabs/sankhyablocks 0.0.0-feat-dev-kb-4158.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (817) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +75 -0
  3. package/dist/cjs/AuthorizationConfig-79ffae4b.js +7 -0
  4. package/dist/cjs/ConfigStorage-73e7afff.js +310 -0
  5. package/dist/cjs/DataFetcher-004811c6.js +7087 -0
  6. package/dist/cjs/ParamType-90b440a0.js +13 -0
  7. package/dist/cjs/PersonalizedFilterUtils-1aeb625d.js +220 -0
  8. package/dist/cjs/SnkFormConfigManager-d1f1a222.js +136 -0
  9. package/dist/cjs/SnkMessageBuilder-d0abb63d.js +651 -0
  10. package/dist/cjs/SnkMultiSelectionListDataSource-804ff4c7.js +34 -0
  11. package/dist/cjs/_commonjsHelpers-537d719a.js +20 -0
  12. package/dist/cjs/auth-fetcher-58237931.js +34 -0
  13. package/dist/cjs/constants-d187e03e.js +101 -0
  14. package/dist/cjs/dataunit-fetcher-029eafbd.js +356 -0
  15. package/dist/cjs/draggable.bundle-82a25c06.js +6886 -0
  16. package/dist/cjs/filter-bar-config-fetcher-2b8ed9d0.js +155 -0
  17. package/dist/cjs/filter-item-type.enum-aa823a00.js +17 -0
  18. package/dist/cjs/filter-type.enum-b14ce507.js +11 -0
  19. package/dist/cjs/form-config-fetcher-181767c9.js +181 -0
  20. package/dist/cjs/index-0e663819.js +33 -0
  21. package/dist/cjs/index-102ba62d.js +201 -0
  22. package/dist/cjs/index-8d94b7e0.js +7 -0
  23. package/dist/cjs/index-c5771aba.js +44 -0
  24. package/dist/cjs/index-f9e81701.js +2328 -0
  25. package/dist/cjs/index.cjs.js +2 -0
  26. package/dist/cjs/loader.cjs.js +22 -0
  27. package/dist/cjs/pesquisa-fetcher-9a97994a.js +167 -0
  28. package/dist/cjs/presentationMode-52ec3bdd.js +7 -0
  29. package/dist/cjs/resource-fetcher-c0332609.js +68 -0
  30. package/dist/cjs/sankhyablocks.cjs.js +23 -0
  31. package/dist/cjs/snk-actions-button.cjs.entry.js +705 -0
  32. package/dist/cjs/snk-actions-form.cjs.entry.js +200 -0
  33. package/dist/cjs/snk-application.cjs.entry.js +931 -0
  34. package/dist/cjs/snk-attach.cjs.entry.js +452 -0
  35. package/dist/cjs/snk-client-confirm.cjs.entry.js +52 -0
  36. package/dist/cjs/snk-config-options.cjs.entry.js +239 -0
  37. package/dist/cjs/snk-configurator.cjs.entry.js +99 -0
  38. package/dist/cjs/snk-crud.cjs.entry.js +183 -0
  39. package/dist/cjs/snk-data-exporter.cjs.entry.js +520 -0
  40. package/dist/cjs/snk-data-unit-cc7a7ed0.js +453 -0
  41. package/dist/cjs/snk-data-unit.cjs.entry.js +13 -0
  42. package/dist/cjs/snk-detail-view.cjs.entry.js +269 -0
  43. package/dist/cjs/snk-entity-list.cjs.entry.js +118 -0
  44. package/dist/cjs/snk-exporter-email-sender.cjs.entry.js +132 -0
  45. package/dist/cjs/snk-expression-group_2.cjs.entry.js +545 -0
  46. package/dist/cjs/snk-field-config.cjs.entry.js +60 -0
  47. package/dist/cjs/snk-filter-advanced-mode_2.cjs.entry.js +60 -0
  48. package/dist/cjs/snk-filter-bar.cjs.entry.js +510 -0
  49. package/dist/cjs/snk-filter-binary-select.cjs.entry.js +91 -0
  50. package/dist/cjs/snk-filter-detail.cjs.entry.js +178 -0
  51. package/dist/cjs/snk-filter-field-search_2.cjs.entry.js +408 -0
  52. package/dist/cjs/snk-filter-item.cjs.entry.js +281 -0
  53. package/dist/cjs/snk-filter-list.cjs.entry.js +152 -0
  54. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +126 -0
  55. package/dist/cjs/snk-filter-modal.cjs.entry.js +217 -0
  56. package/dist/cjs/snk-filter-multi-select.cjs.entry.js +43 -0
  57. package/dist/cjs/snk-filter-number.cjs.entry.js +44 -0
  58. package/dist/cjs/snk-filter-period.cjs.entry.js +73 -0
  59. package/dist/cjs/snk-filter-search.cjs.entry.js +54 -0
  60. package/dist/cjs/snk-filter-text.cjs.entry.js +36 -0
  61. package/dist/cjs/snk-form-config.cjs.entry.js +991 -0
  62. package/dist/cjs/snk-form-summary.cjs.entry.js +61 -0
  63. package/dist/cjs/snk-form-view.cjs.entry.js +99 -0
  64. package/dist/cjs/snk-form.cjs.entry.js +87 -0
  65. package/dist/cjs/snk-grid-config.cjs.entry.js +484 -0
  66. package/dist/cjs/snk-grid.cjs.entry.js +332 -0
  67. package/dist/cjs/snk-guides-viewer-27f87d90.js +334 -0
  68. package/dist/cjs/snk-guides-viewer.cjs.entry.js +28 -0
  69. package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js +210 -0
  70. package/dist/cjs/snk-personalized-filter.cjs.entry.js +305 -0
  71. package/dist/cjs/snk-pesquisa.cjs.entry.js +324 -0
  72. package/dist/cjs/snk-print-selector.cjs.entry.js +169 -0
  73. package/dist/cjs/snk-select-box.cjs.entry.js +25 -0
  74. package/dist/cjs/snk-simple-bar.cjs.entry.js +45 -0
  75. package/dist/cjs/snk-simple-crud.cjs.entry.js +338 -0
  76. package/dist/cjs/snk-tab-config.cjs.entry.js +331 -0
  77. package/dist/cjs/snk-taskbar.cjs.entry.js +221 -0
  78. package/dist/cjs/taskbar-elements-b98dd6e9.js +121 -0
  79. package/dist/cjs/taskbar-processor-bce3f499.js +49 -0
  80. package/dist/cjs/teste-pesquisa.cjs.entry.js +37 -0
  81. package/dist/collection/collection-manifest.json +171 -0
  82. package/dist/collection/components/snk-actions-button/actions/enum/ActionsType.js +8 -0
  83. package/dist/collection/components/snk-actions-button/actions/enum/ParamType.js +11 -0
  84. package/dist/collection/components/snk-actions-button/actions/enum/RefreshType.js +7 -0
  85. package/dist/collection/components/snk-actions-button/actions/executor/java.executor.js +22 -0
  86. package/dist/collection/components/snk-actions-button/actions/executor/javascript.executor.js +20 -0
  87. package/dist/collection/components/snk-actions-button/actions/executor/launch-screen.executor.js +42 -0
  88. package/dist/collection/components/snk-actions-button/actions/executor/procedure.executor.js +26 -0
  89. package/dist/collection/components/snk-actions-button/actions/factory/executor.factory.js +26 -0
  90. package/dist/collection/components/snk-actions-button/actions/index.js +343 -0
  91. package/dist/collection/components/snk-actions-button/actions/interfaces/IAction.js +7 -0
  92. package/dist/collection/components/snk-actions-button/actions/interfaces/IExecSource.js +1 -0
  93. package/dist/collection/components/snk-actions-button/actions/interfaces/IExecuteActions.js +1 -0
  94. package/dist/collection/components/snk-actions-button/actions/interfaces/IExecuteActionsProps.js +1 -0
  95. package/dist/collection/components/snk-actions-button/actions/interfaces/IResultParam.js +1 -0
  96. package/dist/collection/components/snk-actions-button/clientEvent/index.js +87 -0
  97. package/dist/collection/components/snk-actions-button/clientEvent/interfaces/IClientEventConfirm.js +1 -0
  98. package/dist/collection/components/snk-actions-button/snk-actions-button.css +38 -0
  99. package/dist/collection/components/snk-actions-button/snk-actions-button.js +139 -0
  100. package/dist/collection/components/snk-actions-button/subcomponents/snk-actions-form.js +263 -0
  101. package/dist/collection/components/snk-actions-button/subcomponents/snk-client-confirm.js +134 -0
  102. package/dist/collection/components/snk-application/errorhandler/snk-error-handler.js +60 -0
  103. package/dist/collection/components/snk-application/snk-application.css +5 -0
  104. package/dist/collection/components/snk-application/snk-application.js +2000 -0
  105. package/dist/collection/components/snk-attach/interfaces/index.js +1 -0
  106. package/dist/collection/components/snk-attach/snk-attach.css +8 -0
  107. package/dist/collection/components/snk-attach/snk-attach.js +203 -0
  108. package/dist/collection/components/snk-attach/structure/crud-config-builder.js +37 -0
  109. package/dist/collection/components/snk-attach/structure/data-unit-builder.js +105 -0
  110. package/dist/collection/components/snk-attach/structure/index.js +3 -0
  111. package/dist/collection/components/snk-attach/structure/taskbar-builder.js +47 -0
  112. package/dist/collection/components/snk-configurator/AuthorizationConfig.js +5 -0
  113. package/dist/collection/components/snk-configurator/snk-configurator.css +159 -0
  114. package/dist/collection/components/snk-configurator/snk-configurator.js +293 -0
  115. package/dist/collection/components/snk-crud/snk-crud.css +6 -0
  116. package/dist/collection/components/snk-crud/snk-crud.js +536 -0
  117. package/dist/collection/components/snk-crud/subcomponents/CardFormResizeObserver.js +26 -0
  118. package/dist/collection/components/snk-crud/subcomponents/GuideBuilder.js +43 -0
  119. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.css +26 -0
  120. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +548 -0
  121. package/dist/collection/components/snk-crud/subcomponents/snk-form-summary.css +37 -0
  122. package/dist/collection/components/snk-crud/subcomponents/snk-form-summary.js +91 -0
  123. package/dist/collection/components/snk-crud/subcomponents/snk-form-view.css +52 -0
  124. package/dist/collection/components/snk-crud/subcomponents/snk-form-view.js +376 -0
  125. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.css +91 -0
  126. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +690 -0
  127. package/dist/collection/components/snk-data-exporter/data/attachment.js +1 -0
  128. package/dist/collection/components/snk-data-exporter/data/email.js +1 -0
  129. package/dist/collection/components/snk-data-exporter/data/export-config.js +1 -0
  130. package/dist/collection/components/snk-data-exporter/data/export-result.js +1 -0
  131. package/dist/collection/components/snk-data-exporter/data/report.js +1 -0
  132. package/dist/collection/components/snk-data-exporter/exporter-email-sender/email-info-step.js +7 -0
  133. package/dist/collection/components/snk-data-exporter/exporter-email-sender/options-step.js +21 -0
  134. package/dist/collection/components/snk-data-exporter/exporter-email-sender/snk-exporter-email-sender.js +172 -0
  135. package/dist/collection/components/snk-data-exporter/interfaces/IExporterProvider.js +1 -0
  136. package/dist/collection/components/snk-data-exporter/interfaces/IRecordID.js +1 -0
  137. package/dist/collection/components/snk-data-exporter/interfaces/ISelectedID.js +1 -0
  138. package/dist/collection/components/snk-data-exporter/snk-data-exporter.css +38 -0
  139. package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +375 -0
  140. package/dist/collection/components/snk-data-exporter/structure/ItemBuilder.js +140 -0
  141. package/dist/collection/components/snk-data-unit/snk-data-unit.css +6 -0
  142. package/dist/collection/components/snk-data-unit/snk-data-unit.js +838 -0
  143. package/dist/collection/components/snk-entity-list/snk-entity-list.css +35 -0
  144. package/dist/collection/components/snk-entity-list/snk-entity-list.js +257 -0
  145. package/dist/collection/components/snk-filter-bar/filter-item/dataunitfilter/data-unit-filter-builder.js +128 -0
  146. package/dist/collection/components/snk-filter-bar/filter-item/editors/enum/presentationMode.js +5 -0
  147. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.js +197 -0
  148. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.js +123 -0
  149. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js +124 -0
  150. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js +191 -0
  151. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-search.js +137 -0
  152. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-text.js +96 -0
  153. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.css +66 -0
  154. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.js +396 -0
  155. package/dist/collection/components/snk-filter-bar/filter-item/filter-item-type.enum.js +13 -0
  156. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +250 -0
  157. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +415 -0
  158. package/dist/collection/components/snk-filter-bar/filter-list/snk-filter-list.js +323 -0
  159. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.css +35 -0
  160. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +345 -0
  161. package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.css +8 -0
  162. package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.js +214 -0
  163. package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +184 -0
  164. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +463 -0
  165. package/dist/collection/components/snk-filter-bar/types/custom-element-filter.js +1 -0
  166. package/dist/collection/components/snk-filter-bar/types/filter-type.enum.js +7 -0
  167. package/dist/collection/components/snk-filter-bar/utils/SnkFilterModalFactory.js +42 -0
  168. package/dist/collection/components/snk-filter-bar/utils/filters-mock.js +411 -0
  169. package/dist/collection/components/snk-filter-field-search/interfaces/index.js +5 -0
  170. package/dist/collection/components/snk-filter-field-search/snk-filter-field-search.css +41 -0
  171. package/dist/collection/components/snk-filter-field-search/snk-filter-field-search.js +335 -0
  172. package/dist/collection/components/snk-filter-field-search/subcomponents/index.js +1 -0
  173. package/dist/collection/components/snk-filter-field-search/subcomponents/list-item.js +24 -0
  174. package/dist/collection/components/snk-form/SnkFormConfigManager.js +131 -0
  175. package/dist/collection/components/snk-form/snk-form.css +11 -0
  176. package/dist/collection/components/snk-form/snk-form.js +216 -0
  177. package/dist/collection/components/snk-form/subcomponents/snk-config-options/snk-config-options.css +16 -0
  178. package/dist/collection/components/snk-form/subcomponents/snk-config-options/snk-config-options.js +344 -0
  179. package/dist/collection/components/snk-form/subcomponents/snk-field-config/snk-field-config.css +219 -0
  180. package/dist/collection/components/snk-form/subcomponents/snk-field-config/snk-field-config.js +184 -0
  181. package/dist/collection/components/snk-form/subcomponents/snk-form-config/snk-form-config.css +237 -0
  182. package/dist/collection/components/snk-form/subcomponents/snk-form-config/snk-form-config.js +1107 -0
  183. package/dist/collection/components/snk-form/subcomponents/snk-tab-config/snk-tab-config.css +323 -0
  184. package/dist/collection/components/snk-form/subcomponents/snk-tab-config/snk-tab-config.js +525 -0
  185. package/dist/collection/components/snk-grid/filtercolumn/SnkMultiSelectionListDataSource.js +29 -0
  186. package/dist/collection/components/snk-grid/snk-grid.css +28 -0
  187. package/dist/collection/components/snk-grid/snk-grid.js +682 -0
  188. package/dist/collection/components/snk-grid/subcomponents/snk-grid-config/snk-grid-config.css +181 -0
  189. package/dist/collection/components/snk-grid/subcomponents/snk-grid-config/snk-grid-config.js +616 -0
  190. package/dist/collection/components/snk-grid/subcomponents/snk-select-box/snk-select-box.css +9 -0
  191. package/dist/collection/components/snk-grid/subcomponents/snk-select-box/snk-select-box.js +70 -0
  192. package/dist/collection/components/snk-personalized-filter/interfaces/IExpressionGroup.js +0 -0
  193. package/dist/collection/components/snk-personalized-filter/interfaces/IExpressionItem.js +5 -0
  194. package/dist/collection/components/snk-personalized-filter/interfaces/IParameter.js +1 -0
  195. package/dist/collection/components/snk-personalized-filter/interfaces/IPersonalizedFilter.js +1 -0
  196. package/dist/collection/components/snk-personalized-filter/interfaces/ISystemFilterConfig.js +1 -0
  197. package/dist/collection/components/snk-personalized-filter/interfaces/IUserFilterConfig.js +1 -0
  198. package/dist/collection/components/snk-personalized-filter/interfaces/index.js +39 -0
  199. package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.css +45 -0
  200. package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js +440 -0
  201. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.css +73 -0
  202. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.js +448 -0
  203. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/filter-operands/filter-operands.js +26 -0
  204. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.css +111 -0
  205. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.js +412 -0
  206. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-advanced-mode/snk-filter-advanced-mode.css +10 -0
  207. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-advanced-mode/snk-filter-advanced-mode.js +88 -0
  208. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-assistent-mode/snk-filter-assistent-mode.css +66 -0
  209. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-assistent-mode/snk-filter-assistent-mode.js +158 -0
  210. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/snk-filter-param-config.css +12 -0
  211. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/snk-filter-param-config.js +291 -0
  212. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/utils/PersonalizedFilterUtils.js +215 -0
  213. package/dist/collection/components/snk-pesquisa/snk-pesquisa.css +151 -0
  214. package/dist/collection/components/snk-pesquisa/snk-pesquisa.js +394 -0
  215. package/dist/collection/components/snk-print-selector/snk-print-selector.css +35 -0
  216. package/dist/collection/components/snk-print-selector/snk-print-selector.js +203 -0
  217. package/dist/collection/components/snk-simple-bar/snk-simple-bar.css +32 -0
  218. package/dist/collection/components/snk-simple-bar/snk-simple-bar.js +146 -0
  219. package/dist/collection/components/snk-simple-crud/snk-simple-crud.css +22 -0
  220. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +575 -0
  221. package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +114 -0
  222. package/dist/collection/components/snk-taskbar/processor/taskbar-processor.js +45 -0
  223. package/dist/collection/components/snk-taskbar/snk-taskbar.css +3 -0
  224. package/dist/collection/components/snk-taskbar/snk-taskbar.js +427 -0
  225. package/dist/collection/components/teste-pesquisa/teste-pesquisa.css +3 -0
  226. package/dist/collection/components/teste-pesquisa/teste-pesquisa.js +36 -0
  227. package/dist/collection/index.js +1 -0
  228. package/dist/collection/lib/@types/index.js +31 -0
  229. package/dist/collection/lib/applet-caller/applet-caller.js +6 -0
  230. package/dist/collection/lib/auth/mgeauthorization.module.js +1 -0
  231. package/dist/collection/lib/configs/ConfigStorage.js +95 -0
  232. package/dist/collection/lib/dataUnit/InMemoryLoader.js +134 -0
  233. package/dist/collection/lib/http/data-fetcher/DataFetcher.js +408 -0
  234. package/dist/collection/lib/http/data-fetcher/fetchers/application-config-fetcher.js +23 -0
  235. package/dist/collection/lib/http/data-fetcher/fetchers/attach-fetcher.js +136 -0
  236. package/dist/collection/lib/http/data-fetcher/fetchers/auth-fetcher.js +29 -0
  237. package/dist/collection/lib/http/data-fetcher/fetchers/dataunit-fetcher.js +353 -0
  238. package/dist/collection/lib/http/data-fetcher/fetchers/fecthAttach/interfaces/IDelete.js +1 -0
  239. package/dist/collection/lib/http/data-fetcher/fetchers/fecthAttach/interfaces/IDownloadKey.js +1 -0
  240. package/dist/collection/lib/http/data-fetcher/fetchers/fecthAttach/interfaces/ISave.js +6 -0
  241. package/dist/collection/lib/http/data-fetcher/fetchers/fecthAttach/interfaces/index.js +3 -0
  242. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/index.js +33 -0
  243. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IExporterColumnMetadata.js +1 -0
  244. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterParams.js +1 -0
  245. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterResponse.js +1 -0
  246. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IPersonalizedReport.js +1 -0
  247. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/permission-export-pdf.js +7 -0
  248. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/personalized-reports-fetcher.js +18 -0
  249. package/dist/collection/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.js +151 -0
  250. package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +177 -0
  251. package/dist/collection/lib/http/data-fetcher/fetchers/grid-config-fetcher.js +40 -0
  252. package/dist/collection/lib/http/data-fetcher/fetchers/parameters-fecher.js +66 -0
  253. package/dist/collection/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.js +169 -0
  254. package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +163 -0
  255. package/dist/collection/lib/http/data-fetcher/fetchers/resource-fetcher.js +64 -0
  256. package/dist/collection/lib/http/data-fetcher/fetchers/totals-fetcher.js +63 -0
  257. package/dist/collection/lib/http/data-fetcher/interfaces/IClientEventResponse.js +1 -0
  258. package/dist/collection/lib/http/data-fetcher/recaller/GraphQLRecaller.js +28 -0
  259. package/dist/collection/lib/http/data-fetcher/recaller/IDataFetcherRecaller.js +1 -0
  260. package/dist/collection/lib/http/data-fetcher/recaller/ServiceBrokerRecaller.js +15 -0
  261. package/dist/collection/lib/http/data-fetcher/state/LoadStateManager.js +66 -0
  262. package/dist/collection/lib/index.js +4 -0
  263. package/dist/collection/lib/licenses/sankhyalicense.module.js +1 -0
  264. package/dist/collection/lib/message/SnkMessageBuilder.js +163 -0
  265. package/dist/collection/lib/message/resources/crud-utils.msg.js +4 -0
  266. package/dist/collection/lib/message/resources/file-viewer.msg.js +10 -0
  267. package/dist/collection/lib/message/resources/snk-actions-button.msg.js +27 -0
  268. package/dist/collection/lib/message/resources/snk-attach.msg.js +27 -0
  269. package/dist/collection/lib/message/resources/snk-configurator.msg.js +8 -0
  270. package/dist/collection/lib/message/resources/snk-crud.msg.js +10 -0
  271. package/dist/collection/lib/message/resources/snk-data-exporter.msg.js +32 -0
  272. package/dist/collection/lib/message/resources/snk-data-unit.msg.js +31 -0
  273. package/dist/collection/lib/message/resources/snk-entity-list.msg.js +3 -0
  274. package/dist/collection/lib/message/resources/snk-exporter.msg.js +21 -0
  275. package/dist/collection/lib/message/resources/snk-filter-bar.msg.js +58 -0
  276. package/dist/collection/lib/message/resources/snk-filter-field-search.msg.js +7 -0
  277. package/dist/collection/lib/message/resources/snk-filter-param-config.msg.js +18 -0
  278. package/dist/collection/lib/message/resources/snk-form.msg.js +62 -0
  279. package/dist/collection/lib/message/resources/snk-grid.msg.js +26 -0
  280. package/dist/collection/lib/message/resources/snk-personalized-filter.msg.js +83 -0
  281. package/dist/collection/lib/message/resources/snk-print-selector.msg.js +23 -0
  282. package/dist/collection/lib/message/resources/snk-simple-bar.msg.js +3 -0
  283. package/dist/collection/lib/message/resources/snk-taskbar.msg.js +18 -0
  284. package/dist/collection/lib/store/index.js +6 -0
  285. package/dist/collection/lib/utils/CrudUtils.js +73 -0
  286. package/dist/collection/lib/utils/PrintUtils.js +201 -0
  287. package/dist/collection/lib/utils/constants.js +102 -0
  288. package/dist/collection/lib/utils/fileViewer/index.js +11 -0
  289. package/dist/collection/lib/utils/fileViewer/interfaces/IFileViewerParams.js +1 -0
  290. package/dist/collection/lib/utils/pesquisa.js +16 -0
  291. package/dist/collection/lib/utils/urlutils.js +25 -0
  292. package/dist/collection/lib/workspace/workspace.js +19 -0
  293. package/dist/components/AuthorizationConfig.js +7 -0
  294. package/dist/components/ConfigStorage.js +306 -0
  295. package/dist/components/DataFetcher.js +7082 -0
  296. package/dist/components/ParamType.js +13 -0
  297. package/dist/components/PersonalizedFilterUtils.js +260 -0
  298. package/dist/components/SnkFormConfigManager.js +134 -0
  299. package/dist/components/SnkMessageBuilder.js +629 -0
  300. package/dist/components/SnkMultiSelectionListDataSource.js +78 -0
  301. package/dist/components/_commonjsHelpers.js +17 -0
  302. package/dist/components/auth-fetcher.js +32 -0
  303. package/dist/components/constants.js +90 -0
  304. package/dist/components/dataunit-fetcher.js +354 -0
  305. package/dist/components/filter-bar-config-fetcher.js +153 -0
  306. package/dist/components/filter-item-type.enum.js +15 -0
  307. package/dist/components/form-config-fetcher.js +179 -0
  308. package/dist/components/index.d.ts +79 -0
  309. package/dist/components/index.js +50 -0
  310. package/dist/components/index2.js +33 -0
  311. package/dist/components/index3.js +199 -0
  312. package/dist/components/pesquisa-fetcher.js +165 -0
  313. package/dist/components/presentationMode.js +7 -0
  314. package/dist/components/resource-fetcher.js +66 -0
  315. package/dist/components/snk-actions-button.d.ts +11 -0
  316. package/dist/components/snk-actions-button.js +6 -0
  317. package/dist/components/snk-actions-button2.js +718 -0
  318. package/dist/components/snk-actions-form.d.ts +11 -0
  319. package/dist/components/snk-actions-form.js +218 -0
  320. package/dist/components/snk-application.d.ts +11 -0
  321. package/dist/components/snk-application.js +6 -0
  322. package/dist/components/snk-application2.js +988 -0
  323. package/dist/components/snk-attach.d.ts +11 -0
  324. package/dist/components/snk-attach.js +6 -0
  325. package/dist/components/snk-attach2.js +504 -0
  326. package/dist/components/snk-client-confirm.d.ts +11 -0
  327. package/dist/components/snk-client-confirm.js +71 -0
  328. package/dist/components/snk-config-options.d.ts +11 -0
  329. package/dist/components/snk-config-options.js +6 -0
  330. package/dist/components/snk-config-options2.js +255 -0
  331. package/dist/components/snk-configurator.d.ts +11 -0
  332. package/dist/components/snk-configurator.js +6 -0
  333. package/dist/components/snk-configurator2.js +118 -0
  334. package/dist/components/snk-crud.d.ts +11 -0
  335. package/dist/components/snk-crud.js +391 -0
  336. package/dist/components/snk-data-exporter.d.ts +11 -0
  337. package/dist/components/snk-data-exporter.js +6 -0
  338. package/dist/components/snk-data-exporter2.js +539 -0
  339. package/dist/components/snk-data-unit.d.ts +11 -0
  340. package/dist/components/snk-data-unit.js +6 -0
  341. package/dist/components/snk-data-unit2.js +479 -0
  342. package/dist/components/snk-detail-view.d.ts +11 -0
  343. package/dist/components/snk-detail-view.js +6 -0
  344. package/dist/components/snk-detail-view2.js +927 -0
  345. package/dist/components/snk-entity-list.d.ts +11 -0
  346. package/dist/components/snk-entity-list.js +138 -0
  347. package/dist/components/snk-exporter-email-sender.d.ts +11 -0
  348. package/dist/components/snk-exporter-email-sender.js +6 -0
  349. package/dist/components/snk-exporter-email-sender2.js +149 -0
  350. package/dist/components/snk-expression-group.d.ts +11 -0
  351. package/dist/components/snk-expression-group.js +6 -0
  352. package/dist/components/snk-expression-group2.js +296 -0
  353. package/dist/components/snk-expression-item.d.ts +11 -0
  354. package/dist/components/snk-expression-item.js +6 -0
  355. package/dist/components/snk-expression-item2.js +332 -0
  356. package/dist/components/snk-field-config.d.ts +11 -0
  357. package/dist/components/snk-field-config.js +6 -0
  358. package/dist/components/snk-field-config2.js +76 -0
  359. package/dist/components/snk-filter-advanced-mode.d.ts +11 -0
  360. package/dist/components/snk-filter-advanced-mode.js +6 -0
  361. package/dist/components/snk-filter-advanced-mode2.js +39 -0
  362. package/dist/components/snk-filter-assistent-mode.d.ts +11 -0
  363. package/dist/components/snk-filter-assistent-mode.js +6 -0
  364. package/dist/components/snk-filter-assistent-mode2.js +77 -0
  365. package/dist/components/snk-filter-bar.d.ts +11 -0
  366. package/dist/components/snk-filter-bar.js +6 -0
  367. package/dist/components/snk-filter-bar2.js +583 -0
  368. package/dist/components/snk-filter-binary-select.d.ts +11 -0
  369. package/dist/components/snk-filter-binary-select.js +109 -0
  370. package/dist/components/snk-filter-detail.d.ts +11 -0
  371. package/dist/components/snk-filter-detail.js +6 -0
  372. package/dist/components/snk-filter-detail2.js +187 -0
  373. package/dist/components/snk-filter-field-search.d.ts +11 -0
  374. package/dist/components/snk-filter-field-search.js +6 -0
  375. package/dist/components/snk-filter-field-search2.js +228 -0
  376. package/dist/components/snk-filter-item.d.ts +11 -0
  377. package/dist/components/snk-filter-item.js +6 -0
  378. package/dist/components/snk-filter-item2.js +303 -0
  379. package/dist/components/snk-filter-list.d.ts +11 -0
  380. package/dist/components/snk-filter-list.js +176 -0
  381. package/dist/components/snk-filter-modal-item.d.ts +11 -0
  382. package/dist/components/snk-filter-modal-item.js +6 -0
  383. package/dist/components/snk-filter-modal-item2.js +140 -0
  384. package/dist/components/snk-filter-modal.d.ts +11 -0
  385. package/dist/components/snk-filter-modal.js +242 -0
  386. package/dist/components/snk-filter-multi-select.d.ts +11 -0
  387. package/dist/components/snk-filter-multi-select.js +60 -0
  388. package/dist/components/snk-filter-number.d.ts +11 -0
  389. package/dist/components/snk-filter-number.js +61 -0
  390. package/dist/components/snk-filter-param-config.d.ts +11 -0
  391. package/dist/components/snk-filter-param-config.js +6 -0
  392. package/dist/components/snk-filter-param-config2.js +229 -0
  393. package/dist/components/snk-filter-period.d.ts +11 -0
  394. package/dist/components/snk-filter-period.js +92 -0
  395. package/dist/components/snk-filter-search.d.ts +11 -0
  396. package/dist/components/snk-filter-search.js +71 -0
  397. package/dist/components/snk-filter-text.d.ts +11 -0
  398. package/dist/components/snk-filter-text.js +52 -0
  399. package/dist/components/snk-form-config.d.ts +11 -0
  400. package/dist/components/snk-form-config.js +6 -0
  401. package/dist/components/snk-form-config2.js +1027 -0
  402. package/dist/components/snk-form-summary.d.ts +11 -0
  403. package/dist/components/snk-form-summary.js +6 -0
  404. package/dist/components/snk-form-summary2.js +75 -0
  405. package/dist/components/snk-form-view.d.ts +11 -0
  406. package/dist/components/snk-form-view.js +6 -0
  407. package/dist/components/snk-form-view2.js +129 -0
  408. package/dist/components/snk-form.d.ts +11 -0
  409. package/dist/components/snk-form.js +126 -0
  410. package/dist/components/snk-grid-config.d.ts +11 -0
  411. package/dist/components/snk-grid-config.js +6 -0
  412. package/dist/components/snk-grid-config2.js +499 -0
  413. package/dist/components/snk-grid.d.ts +11 -0
  414. package/dist/components/snk-grid.js +6 -0
  415. package/dist/components/snk-grid2.js +457 -0
  416. package/dist/components/snk-guides-viewer.d.ts +11 -0
  417. package/dist/components/snk-guides-viewer.js +6 -0
  418. package/dist/components/snk-personalized-filter-editor.d.ts +11 -0
  419. package/dist/components/snk-personalized-filter-editor.js +230 -0
  420. package/dist/components/snk-personalized-filter.d.ts +11 -0
  421. package/dist/components/snk-personalized-filter.js +6 -0
  422. package/dist/components/snk-personalized-filter2.js +357 -0
  423. package/dist/components/snk-pesquisa.d.ts +11 -0
  424. package/dist/components/snk-pesquisa.js +6 -0
  425. package/dist/components/snk-pesquisa2.js +340 -0
  426. package/dist/components/snk-print-selector.d.ts +11 -0
  427. package/dist/components/snk-print-selector.js +183 -0
  428. package/dist/components/snk-select-box.d.ts +11 -0
  429. package/dist/components/snk-select-box.js +6 -0
  430. package/dist/components/snk-select-box2.js +38 -0
  431. package/dist/components/snk-simple-bar.d.ts +11 -0
  432. package/dist/components/snk-simple-bar.js +6 -0
  433. package/dist/components/snk-simple-bar2.js +59 -0
  434. package/dist/components/snk-simple-crud.d.ts +11 -0
  435. package/dist/components/snk-simple-crud.js +6 -0
  436. package/dist/components/snk-simple-crud2.js +390 -0
  437. package/dist/components/snk-tab-config.d.ts +11 -0
  438. package/dist/components/snk-tab-config.js +6 -0
  439. package/dist/components/snk-tab-config2.js +7232 -0
  440. package/dist/components/snk-taskbar.d.ts +11 -0
  441. package/dist/components/snk-taskbar.js +6 -0
  442. package/dist/components/snk-taskbar2.js +372 -0
  443. package/dist/components/teste-pesquisa.d.ts +11 -0
  444. package/dist/components/teste-pesquisa.js +63 -0
  445. package/dist/esm/AuthorizationConfig-dcbd207a.js +7 -0
  446. package/dist/esm/ConfigStorage-19a7260b.js +306 -0
  447. package/dist/esm/DataFetcher-e0fc5549.js +7082 -0
  448. package/dist/esm/ParamType-d5152b06.js +13 -0
  449. package/dist/esm/PersonalizedFilterUtils-75fb0106.js +218 -0
  450. package/dist/esm/SnkFormConfigManager-1a42eb02.js +134 -0
  451. package/dist/esm/SnkMessageBuilder-68c1c25a.js +629 -0
  452. package/dist/esm/SnkMultiSelectionListDataSource-892f37f9.js +32 -0
  453. package/dist/esm/_commonjsHelpers-9943807e.js +17 -0
  454. package/dist/esm/auth-fetcher-83a946f8.js +32 -0
  455. package/dist/esm/constants-3644f1b6.js +90 -0
  456. package/dist/esm/dataunit-fetcher-6a695723.js +354 -0
  457. package/dist/esm/draggable.bundle-41d56f06.js +6884 -0
  458. package/dist/esm/filter-bar-config-fetcher-06e02851.js +153 -0
  459. package/dist/esm/filter-item-type.enum-5028ed3f.js +15 -0
  460. package/dist/esm/filter-type.enum-a80c1b6b.js +9 -0
  461. package/dist/esm/form-config-fetcher-9e167008.js +179 -0
  462. package/dist/esm/index-1564817d.js +33 -0
  463. package/dist/esm/index-620ac460.js +7 -0
  464. package/dist/esm/index-a7d3d3f1.js +2296 -0
  465. package/dist/esm/index-ae591a44.js +44 -0
  466. package/dist/esm/index-bdf75557.js +199 -0
  467. package/dist/esm/index.js +1 -0
  468. package/dist/esm/loader.js +18 -0
  469. package/dist/esm/pesquisa-fetcher-9118eb7a.js +165 -0
  470. package/dist/esm/polyfills/core-js.js +11 -0
  471. package/dist/esm/polyfills/css-shim.js +1 -0
  472. package/dist/esm/polyfills/dom.js +79 -0
  473. package/dist/esm/polyfills/es5-html-element.js +1 -0
  474. package/dist/esm/polyfills/index.js +34 -0
  475. package/dist/esm/polyfills/system.js +6 -0
  476. package/dist/esm/presentationMode-783bbf9d.js +7 -0
  477. package/dist/esm/resource-fetcher-768d5556.js +66 -0
  478. package/dist/esm/sankhyablocks.js +18 -0
  479. package/dist/esm/snk-actions-button.entry.js +701 -0
  480. package/dist/esm/snk-actions-form.entry.js +196 -0
  481. package/dist/esm/snk-application.entry.js +927 -0
  482. package/dist/esm/snk-attach.entry.js +448 -0
  483. package/dist/esm/snk-client-confirm.entry.js +48 -0
  484. package/dist/esm/snk-config-options.entry.js +235 -0
  485. package/dist/esm/snk-configurator.entry.js +95 -0
  486. package/dist/esm/snk-crud.entry.js +179 -0
  487. package/dist/esm/snk-data-exporter.entry.js +516 -0
  488. package/dist/esm/snk-data-unit-77508763.js +451 -0
  489. package/dist/esm/snk-data-unit.entry.js +5 -0
  490. package/dist/esm/snk-detail-view.entry.js +265 -0
  491. package/dist/esm/snk-entity-list.entry.js +114 -0
  492. package/dist/esm/snk-exporter-email-sender.entry.js +128 -0
  493. package/dist/esm/snk-expression-group_2.entry.js +540 -0
  494. package/dist/esm/snk-field-config.entry.js +56 -0
  495. package/dist/esm/snk-filter-advanced-mode_2.entry.js +55 -0
  496. package/dist/esm/snk-filter-bar.entry.js +506 -0
  497. package/dist/esm/snk-filter-binary-select.entry.js +87 -0
  498. package/dist/esm/snk-filter-detail.entry.js +174 -0
  499. package/dist/esm/snk-filter-field-search_2.entry.js +403 -0
  500. package/dist/esm/snk-filter-item.entry.js +277 -0
  501. package/dist/esm/snk-filter-list.entry.js +148 -0
  502. package/dist/esm/snk-filter-modal-item.entry.js +122 -0
  503. package/dist/esm/snk-filter-modal.entry.js +213 -0
  504. package/dist/esm/snk-filter-multi-select.entry.js +39 -0
  505. package/dist/esm/snk-filter-number.entry.js +40 -0
  506. package/dist/esm/snk-filter-period.entry.js +69 -0
  507. package/dist/esm/snk-filter-search.entry.js +50 -0
  508. package/dist/esm/snk-filter-text.entry.js +32 -0
  509. package/dist/esm/snk-form-config.entry.js +987 -0
  510. package/dist/esm/snk-form-summary.entry.js +57 -0
  511. package/dist/esm/snk-form-view.entry.js +95 -0
  512. package/dist/esm/snk-form.entry.js +83 -0
  513. package/dist/esm/snk-grid-config.entry.js +480 -0
  514. package/dist/esm/snk-grid.entry.js +328 -0
  515. package/dist/esm/snk-guides-viewer-c47cd45e.js +332 -0
  516. package/dist/esm/snk-guides-viewer.entry.js +20 -0
  517. package/dist/esm/snk-personalized-filter-editor.entry.js +206 -0
  518. package/dist/esm/snk-personalized-filter.entry.js +301 -0
  519. package/dist/esm/snk-pesquisa.entry.js +320 -0
  520. package/dist/esm/snk-print-selector.entry.js +161 -0
  521. package/dist/esm/snk-select-box.entry.js +21 -0
  522. package/dist/esm/snk-simple-bar.entry.js +41 -0
  523. package/dist/esm/snk-simple-crud.entry.js +334 -0
  524. package/dist/esm/snk-tab-config.entry.js +327 -0
  525. package/dist/esm/snk-taskbar.entry.js +217 -0
  526. package/dist/esm/taskbar-elements-2c761819.js +118 -0
  527. package/dist/esm/taskbar-processor-94402e6e.js +47 -0
  528. package/dist/esm/teste-pesquisa.entry.js +33 -0
  529. package/dist/index.cjs.js +1 -0
  530. package/dist/index.js +1 -0
  531. package/dist/sankhyablocks/index.esm.js +0 -0
  532. package/dist/sankhyablocks/p-0885ed3c.entry.js +1 -0
  533. package/dist/sankhyablocks/p-0a4c753d.js +6 -0
  534. package/dist/sankhyablocks/p-0ed0fc02.entry.js +1 -0
  535. package/dist/sankhyablocks/p-112455b1.js +1 -0
  536. package/dist/sankhyablocks/p-118e769b.entry.js +1 -0
  537. package/dist/sankhyablocks/p-1a68fb59.js +1 -0
  538. package/dist/sankhyablocks/p-216f081a.entry.js +1 -0
  539. package/dist/sankhyablocks/p-219f888d.entry.js +1 -0
  540. package/dist/sankhyablocks/p-22c6fe1a.entry.js +1 -0
  541. package/dist/sankhyablocks/p-247a8b36.entry.js +1 -0
  542. package/dist/sankhyablocks/p-25c5428f.entry.js +1 -0
  543. package/dist/sankhyablocks/p-26ad62b9.entry.js +1 -0
  544. package/dist/sankhyablocks/p-26b0ce3e.entry.js +1 -0
  545. package/dist/sankhyablocks/p-2ac9c585.js +76 -0
  546. package/dist/sankhyablocks/p-34085ced.entry.js +1 -0
  547. package/dist/sankhyablocks/p-34a1357a.entry.js +1 -0
  548. package/dist/sankhyablocks/p-4721c3db.js +1 -0
  549. package/dist/sankhyablocks/p-4a78e118.js +1 -0
  550. package/dist/sankhyablocks/p-5534e08c.js +1 -0
  551. package/dist/sankhyablocks/p-584d7212.js +1 -0
  552. package/dist/sankhyablocks/p-5c1aacc7.js +1 -0
  553. package/dist/sankhyablocks/p-5d04ae42.entry.js +1 -0
  554. package/dist/sankhyablocks/p-6759adae.entry.js +1 -0
  555. package/dist/sankhyablocks/p-6dc031de.js +1 -0
  556. package/dist/sankhyablocks/p-7b8b8ae9.js +10 -0
  557. package/dist/sankhyablocks/p-7e285d6c.entry.js +11 -0
  558. package/dist/sankhyablocks/p-815a42c0.entry.js +1 -0
  559. package/dist/sankhyablocks/p-838f8234.entry.js +1 -0
  560. package/dist/sankhyablocks/p-88aa931b.entry.js +1 -0
  561. package/dist/sankhyablocks/p-8a41172a.entry.js +1 -0
  562. package/dist/sankhyablocks/p-8f8184ff.js +56 -0
  563. package/dist/sankhyablocks/p-933c0c0b.js +1 -0
  564. package/dist/sankhyablocks/p-9531fd46.entry.js +1 -0
  565. package/dist/sankhyablocks/p-959e0835.entry.js +1 -0
  566. package/dist/sankhyablocks/p-968741cc.js +1 -0
  567. package/dist/sankhyablocks/p-96a89d58.entry.js +1 -0
  568. package/dist/sankhyablocks/p-976e56e9.js +1 -0
  569. package/dist/sankhyablocks/p-98f9d076.js +17 -0
  570. package/dist/sankhyablocks/p-9d3a025a.entry.js +1 -0
  571. package/dist/sankhyablocks/p-a1e1b305.entry.js +1 -0
  572. package/dist/sankhyablocks/p-a2493d11.js +1 -0
  573. package/dist/sankhyablocks/p-ac8d1cd6.entry.js +1 -0
  574. package/dist/sankhyablocks/p-ae6aff81.js +1 -0
  575. package/dist/sankhyablocks/p-b6d6b172.js +1 -0
  576. package/dist/sankhyablocks/p-bc735728.entry.js +1 -0
  577. package/dist/sankhyablocks/p-bd628455.entry.js +1 -0
  578. package/dist/sankhyablocks/p-be684b38.entry.js +1 -0
  579. package/dist/sankhyablocks/p-befbc9ee.entry.js +1 -0
  580. package/dist/sankhyablocks/p-c0f656af.entry.js +1 -0
  581. package/dist/sankhyablocks/p-c2beb95c.js +1 -0
  582. package/dist/sankhyablocks/p-c44f6aaf.entry.js +1 -0
  583. package/dist/sankhyablocks/p-c57bd935.entry.js +1 -0
  584. package/dist/sankhyablocks/p-c6380ea2.entry.js +1 -0
  585. package/dist/sankhyablocks/p-cb37982f.entry.js +1 -0
  586. package/dist/sankhyablocks/p-cfd7da4a.entry.js +1 -0
  587. package/dist/sankhyablocks/p-d1b89765.js +1 -0
  588. package/dist/sankhyablocks/p-d2d301a6.js +2 -0
  589. package/dist/sankhyablocks/p-d3ec3586.entry.js +1 -0
  590. package/dist/sankhyablocks/p-d9804798.js +1 -0
  591. package/dist/sankhyablocks/p-dc36cfbf.js +1 -0
  592. package/dist/sankhyablocks/p-de69b4b0.entry.js +1 -0
  593. package/dist/sankhyablocks/p-df8621b4.js +1 -0
  594. package/dist/sankhyablocks/p-e28129aa.entry.js +1 -0
  595. package/dist/sankhyablocks/p-e3a82e1c.entry.js +1 -0
  596. package/dist/sankhyablocks/p-e7e54737.entry.js +1 -0
  597. package/dist/sankhyablocks/p-eaad0aa8.js +1 -0
  598. package/dist/sankhyablocks/p-eb636e15.entry.js +1 -0
  599. package/dist/sankhyablocks/p-f30526a7.entry.js +1 -0
  600. package/dist/sankhyablocks/p-f31bfdee.entry.js +1 -0
  601. package/dist/sankhyablocks/p-f4184ce7.js +1 -0
  602. package/dist/sankhyablocks/p-f88c45bf.js +1 -0
  603. package/dist/sankhyablocks/p-f9395c20.entry.js +1 -0
  604. package/dist/sankhyablocks/p-fa9d3f73.js +1 -0
  605. package/dist/sankhyablocks/p-fe010e54.entry.js +1 -0
  606. package/dist/sankhyablocks/p-fe49067d.entry.js +1 -0
  607. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -0
  608. package/dist/types/components/snk-actions-button/actions/enum/ActionsType.d.ts +7 -0
  609. package/dist/types/components/snk-actions-button/actions/enum/ParamType.d.ts +10 -0
  610. package/dist/types/components/snk-actions-button/actions/enum/RefreshType.d.ts +6 -0
  611. package/dist/types/components/snk-actions-button/actions/executor/java.executor.d.ts +6 -0
  612. package/dist/types/components/snk-actions-button/actions/executor/javascript.executor.d.ts +6 -0
  613. package/dist/types/components/snk-actions-button/actions/executor/launch-screen.executor.d.ts +10 -0
  614. package/dist/types/components/snk-actions-button/actions/executor/procedure.executor.d.ts +6 -0
  615. package/dist/types/components/snk-actions-button/actions/factory/executor.factory.d.ts +7 -0
  616. package/dist/types/components/snk-actions-button/actions/index.d.ts +27 -0
  617. package/dist/types/components/snk-actions-button/actions/interfaces/IAction.d.ts +55 -0
  618. package/dist/types/components/snk-actions-button/actions/interfaces/IExecSource.d.ts +17 -0
  619. package/dist/types/components/snk-actions-button/actions/interfaces/IExecuteActions.d.ts +4 -0
  620. package/dist/types/components/snk-actions-button/actions/interfaces/IExecuteActionsProps.d.ts +4 -0
  621. package/dist/types/components/snk-actions-button/actions/interfaces/IResultParam.d.ts +14 -0
  622. package/dist/types/components/snk-actions-button/clientEvent/index.d.ts +4 -0
  623. package/dist/types/components/snk-actions-button/clientEvent/interfaces/IClientEventConfirm.d.ts +35 -0
  624. package/dist/types/components/snk-actions-button/snk-actions-button.d.ts +27 -0
  625. package/dist/types/components/snk-actions-button/subcomponents/snk-actions-form.d.ts +41 -0
  626. package/dist/types/components/snk-actions-button/subcomponents/snk-client-confirm.d.ts +31 -0
  627. package/dist/types/components/snk-application/errorhandler/snk-error-handler.d.ts +9 -0
  628. package/dist/types/components/snk-application/snk-application.d.ts +288 -0
  629. package/dist/types/components/snk-attach/interfaces/index.d.ts +10 -0
  630. package/dist/types/components/snk-attach/snk-attach.d.ts +45 -0
  631. package/dist/types/components/snk-attach/structure/crud-config-builder.d.ts +7 -0
  632. package/dist/types/components/snk-attach/structure/data-unit-builder.d.ts +15 -0
  633. package/dist/types/components/snk-attach/structure/index.d.ts +3 -0
  634. package/dist/types/components/snk-attach/structure/taskbar-builder.d.ts +8 -0
  635. package/dist/types/components/snk-configurator/AuthorizationConfig.d.ts +4 -0
  636. package/dist/types/components/snk-configurator/snk-configurator.d.ts +68 -0
  637. package/dist/types/components/snk-crud/snk-crud.d.ts +114 -0
  638. package/dist/types/components/snk-crud/subcomponents/CardFormResizeObserver.d.ts +1 -0
  639. package/dist/types/components/snk-crud/subcomponents/GuideBuilder.d.ts +11 -0
  640. package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +98 -0
  641. package/dist/types/components/snk-crud/subcomponents/snk-form-summary.d.ts +22 -0
  642. package/dist/types/components/snk-crud/subcomponents/snk-form-view.d.ts +76 -0
  643. package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +127 -0
  644. package/dist/types/components/snk-data-exporter/data/attachment.d.ts +4 -0
  645. package/dist/types/components/snk-data-exporter/data/email.d.ts +7 -0
  646. package/dist/types/components/snk-data-exporter/data/export-config.d.ts +10 -0
  647. package/dist/types/components/snk-data-exporter/data/export-result.d.ts +8 -0
  648. package/dist/types/components/snk-data-exporter/data/report.d.ts +4 -0
  649. package/dist/types/components/snk-data-exporter/exporter-email-sender/email-info-step.d.ts +9 -0
  650. package/dist/types/components/snk-data-exporter/exporter-email-sender/options-step.d.ts +9 -0
  651. package/dist/types/components/snk-data-exporter/exporter-email-sender/snk-exporter-email-sender.d.ts +40 -0
  652. package/dist/types/components/snk-data-exporter/interfaces/IExporterProvider.d.ts +15 -0
  653. package/dist/types/components/snk-data-exporter/interfaces/IRecordID.d.ts +6 -0
  654. package/dist/types/components/snk-data-exporter/interfaces/ISelectedID.d.ts +13 -0
  655. package/dist/types/components/snk-data-exporter/snk-data-exporter.d.ts +52 -0
  656. package/dist/types/components/snk-data-exporter/structure/ItemBuilder.d.ts +61 -0
  657. package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +141 -0
  658. package/dist/types/components/snk-entity-list/snk-entity-list.d.ts +46 -0
  659. package/dist/types/components/snk-filter-bar/filter-item/dataunitfilter/data-unit-filter-builder.d.ts +4 -0
  660. package/dist/types/components/snk-filter-bar/filter-item/editors/enum/presentationMode.d.ts +4 -0
  661. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.d.ts +43 -0
  662. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.d.ts +28 -0
  663. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-number.d.ts +28 -0
  664. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-period.d.ts +47 -0
  665. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-search.d.ts +30 -0
  666. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-text.d.ts +24 -0
  667. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.d.ts +68 -0
  668. package/dist/types/components/snk-filter-bar/filter-item/filter-item-type.enum.d.ts +12 -0
  669. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-detail.d.ts +49 -0
  670. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +80 -0
  671. package/dist/types/components/snk-filter-bar/filter-list/snk-filter-list.d.ts +74 -0
  672. package/dist/types/components/snk-filter-bar/filter-modal/snk-filter-modal.d.ts +56 -0
  673. package/dist/types/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.d.ts +33 -0
  674. package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +79 -0
  675. package/dist/types/components/snk-filter-bar/types/custom-element-filter.d.ts +6 -0
  676. package/dist/types/components/snk-filter-bar/types/filter-type.enum.d.ts +6 -0
  677. package/dist/types/components/snk-filter-bar/utils/SnkFilterModalFactory.d.ts +28 -0
  678. package/dist/types/components/snk-filter-bar/utils/filters-mock.d.ts +263 -0
  679. package/dist/types/components/snk-filter-field-search/interfaces/index.d.ts +39 -0
  680. package/dist/types/components/snk-filter-field-search/snk-filter-field-search.d.ts +68 -0
  681. package/dist/types/components/snk-filter-field-search/subcomponents/index.d.ts +1 -0
  682. package/dist/types/components/snk-filter-field-search/subcomponents/list-item.d.ts +2 -0
  683. package/dist/types/components/snk-form/SnkFormConfigManager.d.ts +23 -0
  684. package/dist/types/components/snk-form/snk-form.d.ts +46 -0
  685. package/dist/types/components/snk-form/subcomponents/snk-config-options/snk-config-options.d.ts +57 -0
  686. package/dist/types/components/snk-form/subcomponents/snk-field-config/snk-field-config.d.ts +43 -0
  687. package/dist/types/components/snk-form/subcomponents/snk-form-config/snk-form-config.d.ts +148 -0
  688. package/dist/types/components/snk-form/subcomponents/snk-tab-config/snk-tab-config.d.ts +105 -0
  689. package/dist/types/components/snk-grid/filtercolumn/SnkMultiSelectionListDataSource.d.ts +12 -0
  690. package/dist/types/components/snk-grid/snk-grid.d.ts +123 -0
  691. package/dist/types/components/snk-grid/subcomponents/snk-grid-config/snk-grid-config.d.ts +74 -0
  692. package/dist/types/components/snk-grid/subcomponents/snk-select-box/snk-select-box.d.ts +13 -0
  693. package/dist/types/components/snk-personalized-filter/interfaces/IExpressionGroup.d.ts +0 -0
  694. package/dist/types/components/snk-personalized-filter/interfaces/IExpressionItem.d.ts +35 -0
  695. package/dist/types/components/snk-personalized-filter/interfaces/IParameter.d.ts +37 -0
  696. package/dist/types/components/snk-personalized-filter/interfaces/IPersonalizedFilter.d.ts +15 -0
  697. package/dist/types/components/snk-personalized-filter/interfaces/ISystemFilterConfig.d.ts +4 -0
  698. package/dist/types/components/snk-personalized-filter/interfaces/IUserFilterConfig.d.ts +5 -0
  699. package/dist/types/components/snk-personalized-filter/interfaces/index.d.ts +35 -0
  700. package/dist/types/components/snk-personalized-filter/snk-personalized-filter.d.ts +66 -0
  701. package/dist/types/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.d.ts +85 -0
  702. package/dist/types/components/snk-personalized-filter/subcomponents/snk-expression-item/filter-operands/filter-operands.d.ts +9 -0
  703. package/dist/types/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.d.ts +68 -0
  704. package/dist/types/components/snk-personalized-filter/subcomponents/snk-filter-advanced-mode/snk-filter-advanced-mode.d.ts +19 -0
  705. package/dist/types/components/snk-personalized-filter/subcomponents/snk-filter-assistent-mode/snk-filter-assistent-mode.d.ts +31 -0
  706. package/dist/types/components/snk-personalized-filter/subcomponents/snk-filter-param-config/snk-filter-param-config.d.ts +52 -0
  707. package/dist/types/components/snk-personalized-filter/subcomponents/snk-filter-param-config/utils/PersonalizedFilterUtils.d.ts +27 -0
  708. package/dist/types/components/snk-pesquisa/snk-pesquisa.d.ts +61 -0
  709. package/dist/types/components/snk-print-selector/snk-print-selector.d.ts +46 -0
  710. package/dist/types/components/snk-simple-bar/snk-simple-bar.d.ts +37 -0
  711. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +80 -0
  712. package/dist/types/components/snk-taskbar/elements/taskbar-elements.d.ts +33 -0
  713. package/dist/types/components/snk-taskbar/processor/taskbar-processor.d.ts +12 -0
  714. package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +106 -0
  715. package/dist/types/components/teste-pesquisa/teste-pesquisa.d.ts +6 -0
  716. package/dist/types/components.d.ts +3076 -0
  717. package/dist/types/global.d.ts +9 -0
  718. package/dist/types/index.d.ts +1 -0
  719. package/dist/types/lib/@types/index.d.ts +27 -0
  720. package/dist/types/lib/applet-caller/applet-caller.d.ts +9 -0
  721. package/dist/types/lib/configs/ConfigStorage.d.ts +27 -0
  722. package/dist/types/lib/dataUnit/InMemoryLoader.d.ts +24 -0
  723. package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +73 -0
  724. package/dist/types/lib/http/data-fetcher/fetchers/application-config-fetcher.d.ts +6 -0
  725. package/dist/types/lib/http/data-fetcher/fetchers/attach-fetcher.d.ts +14 -0
  726. package/dist/types/lib/http/data-fetcher/fetchers/auth-fetcher.d.ts +17 -0
  727. package/dist/types/lib/http/data-fetcher/fetchers/dataunit-fetcher.d.ts +16 -0
  728. package/dist/types/lib/http/data-fetcher/fetchers/fecthAttach/interfaces/IDelete.d.ts +9 -0
  729. package/dist/types/lib/http/data-fetcher/fetchers/fecthAttach/interfaces/IDownloadKey.d.ts +13 -0
  730. package/dist/types/lib/http/data-fetcher/fetchers/fecthAttach/interfaces/ISave.d.ts +26 -0
  731. package/dist/types/lib/http/data-fetcher/fetchers/fecthAttach/interfaces/index.d.ts +3 -0
  732. package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/index.d.ts +3 -0
  733. package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IExporterColumnMetadata.d.ts +9 -0
  734. package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterParams.d.ts +29 -0
  735. package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterResponse.d.ts +8 -0
  736. package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IPersonalizedReport.d.ts +4 -0
  737. package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/permission-export-pdf.d.ts +1 -0
  738. package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/personalized-reports-fetcher.d.ts +4 -0
  739. package/dist/types/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.d.ts +11 -0
  740. package/dist/types/lib/http/data-fetcher/fetchers/form-config-fetcher.d.ts +26 -0
  741. package/dist/types/lib/http/data-fetcher/fetchers/grid-config-fetcher.d.ts +8 -0
  742. package/dist/types/lib/http/data-fetcher/fetchers/parameters-fecher.d.ts +13 -0
  743. package/dist/types/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.d.ts +13 -0
  744. package/dist/types/lib/http/data-fetcher/fetchers/pesquisa-fetcher.d.ts +42 -0
  745. package/dist/types/lib/http/data-fetcher/fetchers/resource-fetcher.d.ts +12 -0
  746. package/dist/types/lib/http/data-fetcher/fetchers/totals-fetcher.d.ts +9 -0
  747. package/dist/types/lib/http/data-fetcher/interfaces/IClientEventResponse.d.ts +4 -0
  748. package/dist/types/lib/http/data-fetcher/recaller/GraphQLRecaller.d.ts +10 -0
  749. package/dist/types/lib/http/data-fetcher/recaller/IDataFetcherRecaller.d.ts +3 -0
  750. package/dist/types/lib/http/data-fetcher/recaller/ServiceBrokerRecaller.d.ts +9 -0
  751. package/dist/types/lib/http/data-fetcher/state/LoadStateManager.d.ts +23 -0
  752. package/dist/types/lib/index.d.ts +4 -0
  753. package/dist/types/lib/message/SnkMessageBuilder.d.ts +45 -0
  754. package/dist/types/lib/message/resources/crud-utils.msg.d.ts +2 -0
  755. package/dist/types/lib/message/resources/file-viewer.msg.d.ts +2 -0
  756. package/dist/types/lib/message/resources/snk-actions-button.msg.d.ts +1 -0
  757. package/dist/types/lib/message/resources/snk-attach.msg.d.ts +2 -0
  758. package/dist/types/lib/message/resources/snk-configurator.msg.d.ts +1 -0
  759. package/dist/types/lib/message/resources/snk-crud.msg.d.ts +2 -0
  760. package/dist/types/lib/message/resources/snk-data-exporter.msg.d.ts +1 -0
  761. package/dist/types/lib/message/resources/snk-data-unit.msg.d.ts +2 -0
  762. package/dist/types/lib/message/resources/snk-entity-list.msg.d.ts +1 -0
  763. package/dist/types/lib/message/resources/snk-exporter.msg.d.ts +2 -0
  764. package/dist/types/lib/message/resources/snk-filter-bar.msg.d.ts +2 -0
  765. package/dist/types/lib/message/resources/snk-filter-field-search.msg.d.ts +1 -0
  766. package/dist/types/lib/message/resources/snk-filter-param-config.msg.d.ts +1 -0
  767. package/dist/types/lib/message/resources/snk-form.msg.d.ts +4 -0
  768. package/dist/types/lib/message/resources/snk-grid.msg.d.ts +2 -0
  769. package/dist/types/lib/message/resources/snk-personalized-filter.msg.d.ts +1 -0
  770. package/dist/types/lib/message/resources/snk-print-selector.msg.d.ts +1 -0
  771. package/dist/types/lib/message/resources/snk-simple-bar.msg.d.ts +1 -0
  772. package/dist/types/lib/message/resources/snk-taskbar.msg.d.ts +2 -0
  773. package/dist/types/lib/store/index.d.ts +5 -0
  774. package/dist/types/lib/utils/CrudUtils.d.ts +6 -0
  775. package/dist/types/lib/utils/PrintUtils.d.ts +54 -0
  776. package/dist/types/lib/utils/constants.d.ts +103 -0
  777. package/dist/types/lib/utils/fileViewer/index.d.ts +2 -0
  778. package/dist/types/lib/utils/fileViewer/interfaces/IFileViewerParams.d.ts +4 -0
  779. package/dist/types/lib/utils/pesquisa.d.ts +3 -0
  780. package/dist/types/lib/utils/urlutils.d.ts +4 -0
  781. package/dist/types/lib/workspace/workspace.d.ts +5 -0
  782. package/dist/types/stencil-public-runtime.d.ts +1637 -0
  783. package/loader/cdn.js +3 -0
  784. package/loader/index.cjs.js +3 -0
  785. package/loader/index.d.ts +21 -0
  786. package/loader/index.es2017.js +3 -0
  787. package/loader/index.js +4 -0
  788. package/loader/package.json +11 -0
  789. package/package.json +71 -0
  790. package/react/.keepfolder +1 -0
  791. package/react/components.d.ts +51 -0
  792. package/react/components.js +54 -0
  793. package/react/components.js.map +1 -0
  794. package/react/react-component-lib/createComponent.d.ts +10 -0
  795. package/react/react-component-lib/createComponent.js +59 -0
  796. package/react/react-component-lib/createComponent.js.map +1 -0
  797. package/react/react-component-lib/createOverlayComponent.d.ts +20 -0
  798. package/react/react-component-lib/createOverlayComponent.js +89 -0
  799. package/react/react-component-lib/createOverlayComponent.js.map +1 -0
  800. package/react/react-component-lib/index.d.ts +2 -0
  801. package/react/react-component-lib/index.js +3 -0
  802. package/react/react-component-lib/index.js.map +1 -0
  803. package/react/react-component-lib/interfaces.d.ts +29 -0
  804. package/react/react-component-lib/interfaces.js +2 -0
  805. package/react/react-component-lib/interfaces.js.map +1 -0
  806. package/react/react-component-lib/utils/attachProps.d.ts +12 -0
  807. package/react/react-component-lib/utils/attachProps.js +96 -0
  808. package/react/react-component-lib/utils/attachProps.js.map +1 -0
  809. package/react/react-component-lib/utils/case.d.ts +2 -0
  810. package/react/react-component-lib/utils/case.js +7 -0
  811. package/react/react-component-lib/utils/case.js.map +1 -0
  812. package/react/react-component-lib/utils/dev.d.ts +2 -0
  813. package/react/react-component-lib/utils/dev.js +13 -0
  814. package/react/react-component-lib/utils/dev.js.map +1 -0
  815. package/react/react-component-lib/utils/index.d.ts +7 -0
  816. package/react/react-component-lib/utils/index.js +21 -0
  817. package/react/react-component-lib/utils/index.js.map +1 -0
@@ -0,0 +1,988 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
+ import { WaitingChangeException, WarningException, ErrorException, ObjectUtils, DateUtils, StringUtils, OnboardingUtils, DependencyType, ElementIDUtils, ApplicationContext, ErrorTracking, DataType } from '@sankhyalabs/core';
3
+ import { d as dist, D as DataFetcher, U as UrlUtils } from './DataFetcher.js';
4
+ import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
5
+ import { P as PesquisaFetcher } from './pesquisa-fetcher.js';
6
+ import { G as GridConfigFetcher, C as ConfigStorage } from './ConfigStorage.js';
7
+ import { D as DataUnitFetcher } from './dataunit-fetcher.js';
8
+ import { A as AutorizationType, a as AuthFetcher } from './auth-fetcher.js';
9
+ import { S as SnkMessageBuilder } from './SnkMessageBuilder.js';
10
+ import { d as defineCustomElement$1 } from './snk-pesquisa2.js';
11
+
12
+ class SnkErrorHandler {
13
+ constructor(app) {
14
+ this._app = app;
15
+ window.addEventListener("error", evt => this.errorHandler(evt));
16
+ window.addEventListener("unhandledrejection", evt => this.rejectionHandler(evt));
17
+ }
18
+ rejectionHandler(evt) {
19
+ const reason = evt.reason;
20
+ //Promisse rejeitada com WaitingChangeException, não precisam
21
+ //ser notificadas pelo usuário.
22
+ if (!(reason instanceof WaitingChangeException)) {
23
+ if (reason) {
24
+ this.processException(reason);
25
+ }
26
+ else {
27
+ this._app.isDebugMode().then((isDebug) => {
28
+ if (isDebug) {
29
+ this._app.error("Promise rejeitada", "Erro interno: Uma promise foi rejeitada sem razão determinada.");
30
+ }
31
+ });
32
+ }
33
+ }
34
+ }
35
+ errorHandler(evt) {
36
+ this.processException(evt.error);
37
+ }
38
+ buildErrorCodeHTML(errorCode) {
39
+ const onclick = 'try{window.workspace.openHelp(\'_tbcode:' + errorCode + '\')} catch(e){alert(\'Não é possível abrir a ajuda fora do workspace Sankhya\');}';
40
+ return '<br><a href="#" onclick="' + onclick + '">Código: ' + errorCode + '</a>';
41
+ }
42
+ processException(exception) {
43
+ if (exception.errorCode) {
44
+ exception.message += this.buildErrorCodeHTML(exception.errorCode);
45
+ }
46
+ if (exception instanceof WaitingChangeException) {
47
+ this._app.alert(exception.title, exception.message);
48
+ }
49
+ else if (exception instanceof WarningException) {
50
+ this._app.alert(exception.title, exception.message);
51
+ }
52
+ else if (exception instanceof ErrorException) {
53
+ this._app.error(exception.title, exception.message);
54
+ }
55
+ else {
56
+ this._app.isDebugMode().then(isDebug => {
57
+ if (isDebug) {
58
+ if (exception instanceof Error) {
59
+ this._app.error(exception.name, exception.message);
60
+ }
61
+ else {
62
+ const title = (exception === null || exception === void 0 ? void 0 : exception.title) || "Erro detectado";
63
+ const message = (typeof exception === "string") ? exception : exception.message || `Erro interno "${ObjectUtils.objectToString(exception)}"`;
64
+ this._app.error(title, message);
65
+ }
66
+ }
67
+ });
68
+ }
69
+ }
70
+ }
71
+
72
+ function _0x53e1(){const _0x340df8=['2909523kXwted','CompanyName=Sankhya\x20Jiva\x20Tecnologia\x20e\x20Inovao\x20Ltda,LicensedApplication=Sankhya\x20Gestao,LicenseType=SingleApplication,LicensedConcurrentDeveloperCount=2,LicensedProductionInstancesCount=0,AssetReference=AG-019460,ExpiryDate=9_November_2022_[v2]_MTY2Nzk1MjAwMDAwMA==10487151e296ee4360f80961ca960869','1131048CARoeW','502909mLEPmu','447255iQEXuN','428UHbJwW','270AFTxAV','194369jhGqTI','1540nWuTrj','2044062GicUQI','30CkXPWg'];_0x53e1=function(){return _0x340df8;};return _0x53e1();}const _0xc7632f=_0x15c2;function _0x15c2(_0x353a9c,_0x3e4a5a){const _0x53e110=_0x53e1();return _0x15c2=function(_0x15c2aa,_0x219858){_0x15c2aa=_0x15c2aa-0x188;let _0x307231=_0x53e110[_0x15c2aa];return _0x307231;},_0x15c2(_0x353a9c,_0x3e4a5a);}(function(_0x42617e,_0x57debe){const _0x31061a=_0x15c2,_0x128d7d=_0x42617e();while(!![]){try{const _0x1c9bb1=-parseInt(_0x31061a(0x18e))/0x1+-parseInt(_0x31061a(0x189))/0x2+parseInt(_0x31061a(0x18b))/0x3+-parseInt(_0x31061a(0x190))/0x4*(parseInt(_0x31061a(0x188))/0x5)+-parseInt(_0x31061a(0x191))/0x6*(-parseInt(_0x31061a(0x192))/0x7)+parseInt(_0x31061a(0x18d))/0x8+-parseInt(_0x31061a(0x18f))/0x9*(-parseInt(_0x31061a(0x18a))/0xa);if(_0x1c9bb1===_0x57debe)break;else _0x128d7d['push'](_0x128d7d['shift']());}catch(_0x1bd816){_0x128d7d['push'](_0x128d7d['shift']());}}}(_0x53e1,0xe8676));const agGridLicense=_0xc7632f(0x18c);
73
+
74
+ class TotalsFetcher {
75
+ constructor() {
76
+ this.templateByQuery = new Map();
77
+ this.cancel = [];
78
+ this.buildTemplates();
79
+ }
80
+ buildTemplates() {
81
+ this.templateByQuery.set("fetchTotals", dist.gql `query($filters: [InputFilter!] $name: String!) {
82
+ $queryAlias$: fetchTotals(name: $name, filters: $filters ){
83
+ name
84
+ value
85
+ }
86
+ }`);
87
+ }
88
+ fetchTotals(name, resourceID, filters = []) {
89
+ const cancelKey = `${name}_${resourceID}`;
90
+ const anotherPromiseIndex = this.cancel.findIndex(promiseExecuting => promiseExecuting[cancelKey]);
91
+ if (anotherPromiseIndex >= 0) {
92
+ this.cancel[anotherPromiseIndex][cancelKey]();
93
+ this.cancel.splice(anotherPromiseIndex, 1);
94
+ }
95
+ return Promise
96
+ .race([
97
+ new Promise(resolve => this.cancel.push({ [cancelKey]: resolve })),
98
+ this.getTotals(name, resourceID, filters)
99
+ ])
100
+ .then((results) => {
101
+ let dataResult = new Map();
102
+ if (results) {
103
+ dataResult = results;
104
+ const myPromiseIndex = this.cancel.findIndex(promiseExecuting => promiseExecuting[cancelKey]);
105
+ if (myPromiseIndex >= 0) {
106
+ this.cancel.splice(myPromiseIndex, 1);
107
+ }
108
+ }
109
+ return dataResult;
110
+ });
111
+ }
112
+ getTotals(name, resourceID, filters = []) {
113
+ return new Promise((accept, reject) => {
114
+ DataFetcher
115
+ .get()
116
+ .callGraphQL({
117
+ query: this.templateByQuery.get("fetchTotals"),
118
+ values: {
119
+ name: `totals://${name}/${resourceID}`,
120
+ filters: filters
121
+ },
122
+ })
123
+ .then(result => {
124
+ if (result.length > 0) {
125
+ const totalsData = new Map();
126
+ result.forEach(total => totalsData.set(total.name, parseFloat(total.value)));
127
+ return accept(totalsData);
128
+ }
129
+ return reject("Não foi possível recuperar os totalizadores");
130
+ })
131
+ .catch(reject);
132
+ });
133
+ }
134
+ }
135
+
136
+ var _a;
137
+ class Workspace {
138
+ static openAppActivity(resourceId, pkObject) {
139
+ var _a;
140
+ (_a = window["workspace"]) === null || _a === void 0 ? void 0 : _a.openAppActivity(resourceId, pkObject);
141
+ }
142
+ static getAppLabel(resourceID) {
143
+ if ((window === null || window === void 0 ? void 0 : window["workspace"]) == undefined) {
144
+ return;
145
+ }
146
+ if (window["workspace"].getAppLabel == undefined) {
147
+ window["workspace"].getAppLabel = (id) => {
148
+ return (id || "").split(".").pop();
149
+ };
150
+ }
151
+ return window["workspace"].getAppLabel(resourceID);
152
+ }
153
+ }
154
+ Workspace.resourceID = (_a = window["workspace"]) === null || _a === void 0 ? void 0 : _a.resourceID;
155
+
156
+ class AppletCaller {
157
+ static webConnectionCaller(port, methodName, params) {
158
+ var _a;
159
+ (_a = window["AppletCaller"]) === null || _a === void 0 ? void 0 : _a.webConnectionCaller(port, methodName, params);
160
+ }
161
+ }
162
+
163
+ class ParametersFetcher {
164
+ constructor() {
165
+ this.templateByQuery = new Map();
166
+ this.buldTemplates();
167
+ }
168
+ buldTemplates() {
169
+ this.templateByQuery.set("fetchParam", dist.gql `query($name: String!) {
170
+ $queryAlias$: fetchResource(name: $name){
171
+ name
172
+ resource
173
+ }
174
+ }`);
175
+ }
176
+ async getParam(name) {
177
+ const completPath = `param://application?params=${name}`;
178
+ return DataFetcher.get().callGraphQL({
179
+ values: { name: completPath },
180
+ query: this.templateByQuery.get("fetchParam"),
181
+ });
182
+ }
183
+ async asString(name) {
184
+ const paramArr = await this.getParam(name);
185
+ return this.getValue(paramArr);
186
+ }
187
+ async asInteger(name) {
188
+ const paramArr = await this.getParam(name);
189
+ return parseInt(this.getValue(paramArr));
190
+ }
191
+ async asFloat(name) {
192
+ const paramArr = await this.getParam(name);
193
+ return parseFloat(this.getValue(paramArr));
194
+ }
195
+ async asBoolean(name) {
196
+ const paramArr = await this.getParam(name);
197
+ return (this.getValue(paramArr) === "S");
198
+ }
199
+ async asDate(name) {
200
+ const paramArr = await this.getParam(name);
201
+ return DateUtils.strToDate(this.getValue(paramArr));
202
+ }
203
+ async getBatchParams(names) {
204
+ const paramArr = await this.getParam(names.join(","));
205
+ //TODO: try to typed params val?
206
+ const response = {};
207
+ paramArr.forEach((param) => (response[param.name] = param.resource));
208
+ return response;
209
+ }
210
+ getValue(obj = {}) {
211
+ if (Array.isArray(obj) && obj.length > 0) {
212
+ obj = obj[0];
213
+ }
214
+ if (StringUtils.isEmpty(obj.resource))
215
+ return "";
216
+ try {
217
+ const parameter = ObjectUtils.stringToObject(obj.resource);
218
+ const [key] = Object.keys(parameter);
219
+ return parameter[key];
220
+ }
221
+ catch (error) {
222
+ console.warn("Erro ao converter string JSON.");
223
+ }
224
+ }
225
+ }
226
+
227
+ const _0x5b7870=_0x2202;(function(_0x42e134,_0x5d9727){const _0x185c97=_0x2202,_0x5854c7=_0x42e134();while(!![]){try{const _0x129d35=parseInt(_0x185c97(0x18f))/0x1*(-parseInt(_0x185c97(0x183))/0x2)+-parseInt(_0x185c97(0x191))/0x3+parseInt(_0x185c97(0x17d))/0x4*(-parseInt(_0x185c97(0x185))/0x5)+parseInt(_0x185c97(0x184))/0x6*(-parseInt(_0x185c97(0x182))/0x7)+parseInt(_0x185c97(0x17b))/0x8+parseInt(_0x185c97(0x18c))/0x9+parseInt(_0x185c97(0x17f))/0xa;if(_0x129d35===_0x5d9727)break;else _0x5854c7['push'](_0x5854c7['shift']());}catch(_0x4becb4){_0x5854c7['push'](_0x5854c7['shift']());}}}(_0xdfb1,0x44ac7));function _0x2202(_0x2eac1f,_0x170d27){const _0xdfb1b4=_0xdfb1();return _0x2202=function(_0x2202d7,_0x224df5){_0x2202d7=_0x2202d7-0x17a;let _0x4d54a9=_0xdfb1b4[_0x2202d7];return _0x4d54a9;},_0x2202(_0x2eac1f,_0x170d27);}function _0xdfb1(){const _0x2b9dc4=['true','863GKWjmo','parse','56355fjjjAm','isSup','putAccess','4324480sjuCdS','hasOwnProperty','239748okvJLB','name','6055770tXeRaU','actions','forEach','7RPRvzn','1042CHxkUw','2988126NIwRMm','20MTNzmH','authorizationSf','item','string','hasAccess','isArray','Objeto\x20não\x20pode\x20ser\x20indefinido.','3071943fWslZp','parseFromJSON'];_0xdfb1=function(){return _0x2b9dc4;};return _0xdfb1();}class MGEAuthorization{[_0x5b7870(0x18d)](_0x37e96b){const _0x580407=_0x5b7870;_0x37e96b=utxt(_0x37e96b[_0x580407(0x186)]);typeof _0x37e96b==_0x580407(0x188)&&(_0x37e96b=JSON[_0x580407(0x190)](_0x37e96b));if(_0x37e96b==undefined)throw Error(_0x580407(0x18b));const _0x291d34=new MGEAuthorizationData(_0x37e96b[_0x580407(0x192)]==='S'||_0x37e96b[_0x580407(0x192)]===!![]);return Array[_0x580407(0x18a)](_0x37e96b[_0x580407(0x187)])&&_0x37e96b[_0x580407(0x187)][_0x580407(0x181)](_0x58a748=>_0x291d34['putAccess'](_0x58a748[_0x580407(0x17e)],String(_0x58a748['status'])==_0x580407(0x18e))),_0x291d34;}}class MGEAuthorizationData{constructor(_0x51ec5d){const _0x2c8472=_0x5b7870;this['isSup']=_0x51ec5d,this[_0x2c8472(0x180)]={};}[_0x5b7870(0x17a)](_0x5bd0f2,_0x2ef465){const _0x40d701=_0x5b7870;this[_0x40d701(0x180)][_0x5bd0f2]=_0x2ef465;}[_0x5b7870(0x189)](_0x4fd772){const _0x3707c1=_0x5b7870;if(this[_0x3707c1(0x192)])return !![];let _0x25e60a=!![];return this[_0x3707c1(0x180)][_0x3707c1(0x17c)](_0x4fd772)&&(_0x25e60a=this['actions'][_0x4fd772]),_0x25e60a;}['isUserSup'](){return this['isSup'];}}
228
+
229
+ const snkApplicationCss = ".sc-snk-application-h{display:flex;flex-direction:column;height:100%}";
230
+
231
+ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
232
+ constructor() {
233
+ super();
234
+ this.__registerHost();
235
+ this.applicationLoaded = createEvent(this, "applicationLoaded", 7);
236
+ this.applicationLoading = createEvent(this, "applicationLoading", 7);
237
+ this._authPromises = [];
238
+ this._duCache = new Map();
239
+ this._duPromises = new Map();
240
+ this._requestListener = new RequestListenerLoadingBar();
241
+ this.messagesBuilder = undefined;
242
+ this.configName = undefined;
243
+ }
244
+ get parameters() {
245
+ if (!this._parameters) {
246
+ this._parameters = new ParametersFetcher();
247
+ }
248
+ return this._parameters;
249
+ }
250
+ get resourceID() {
251
+ if (!this._resourceID) {
252
+ this._resourceID = this.urlParams.get("workspaceResourceID") ||
253
+ this.urlParams.get("resourceID") ||
254
+ Workspace.resourceID ||
255
+ "unknown.resource.id";
256
+ }
257
+ return this._resourceID;
258
+ }
259
+ get auth() {
260
+ if (this._auth) {
261
+ return Promise.resolve(this._auth);
262
+ }
263
+ else {
264
+ return new Promise((resolve, reject) => {
265
+ const waitingAuth = this._authPromises.length > 0;
266
+ this._authPromises.push(new PendingPromise(resolve, reject));
267
+ if (!waitingAuth) {
268
+ this.authFetcher.getData(this.resourceID).then((authList) => {
269
+ this._auth = authList;
270
+ while (this._authPromises.length > 0) {
271
+ this._authPromises.pop().resolve(this._auth);
272
+ }
273
+ }).catch(error => {
274
+ while (this._authPromises.length > 0) {
275
+ this._authPromises.pop().reject(error);
276
+ }
277
+ });
278
+ }
279
+ });
280
+ }
281
+ }
282
+ /**
283
+ * Obtém `true` caso o usuário logado seja o SUP.
284
+ */
285
+ async isUserSup() {
286
+ return new Promise((resolve, reject) => {
287
+ this.auth.then((authorization) => {
288
+ this.getAuthList(authorization).then((auths) => {
289
+ resolve(auths.isSup);
290
+ }).catch(error => reject(error));
291
+ });
292
+ });
293
+ }
294
+ initOnboarding(onboardingKey) {
295
+ OnboardingUtils.getInstance().init(onboardingKey, window.envContext);
296
+ return Promise.resolve();
297
+ }
298
+ /**
299
+ * Obtém `true` caso o usuário logado tem permissão pra determinada ação.
300
+ */
301
+ async hasAccess(access) {
302
+ return new Promise((resolve, reject) => {
303
+ this.auth.then((authorization) => {
304
+ this.getAuthList(authorization).then((auths) => {
305
+ resolve(auths.isSup || auths.actions[access]);
306
+ }).catch(error => reject(error));
307
+ });
308
+ });
309
+ }
310
+ /**
311
+ * Obtém todos os acessos do usuário logado.
312
+ */
313
+ async getAllAccess() {
314
+ return new Promise((resolve, reject) => {
315
+ this.auth.then((authorization) => {
316
+ this.getAuthList(authorization).then((auths) => {
317
+ const allAccess = {};
318
+ allAccess['isSup'] = auths.isSup;
319
+ Object.entries(AutorizationType).forEach((data) => {
320
+ allAccess[data[0]] = auths.actions[data[1]] || false;
321
+ });
322
+ resolve(allAccess);
323
+ }).catch(error => reject(error));
324
+ });
325
+ });
326
+ }
327
+ /**
328
+ * Obtém o valor de um parâmetro do tipo string.
329
+ */
330
+ async getStringParam(name) {
331
+ return this.parameters.asString(name);
332
+ }
333
+ /**
334
+ * Obtém o valor de um parâmetro do tipo Inteiro.
335
+ */
336
+ async getIntParam(name) {
337
+ return this.parameters.asInteger(name);
338
+ }
339
+ /**
340
+ * Obtém o valor de um parâmetro do tipo Decimal.
341
+ */
342
+ async getFloatParam(name) {
343
+ return this.parameters.asFloat(name);
344
+ }
345
+ /**
346
+ * Obtém o valor de um parâmetro do tipo booleano.
347
+ */
348
+ async getBooleanParam(name) {
349
+ return this.parameters.asBoolean(name);
350
+ }
351
+ /**
352
+ * Obtém o valor de um parâmetro do tipo data.
353
+ */
354
+ async getDateParam(name) {
355
+ return this.parameters.asDate(name);
356
+ }
357
+ /**
358
+ * Exibe o conteúdo passado em um Popup.
359
+ */
360
+ async showPopUp(content, size = "full", useHeader = true) {
361
+ this.clearContent(this._popUp);
362
+ this._popUp.appendChild(content);
363
+ this._popUp.opened = true;
364
+ this._popUp.heightMode = size;
365
+ this._popUp.useHeader = useHeader;
366
+ if (content.tagName === 'EZ-MODAL-CONTAINER') {
367
+ this._popUp.useHeader = false;
368
+ }
369
+ }
370
+ /**
371
+ * Exibe o conteúdo passado em um Modal.
372
+ */
373
+ async showModal(content) {
374
+ this.clearContent(this._rightModal);
375
+ this._rightModal.appendChild(content);
376
+ this._rightModal.opened = true;
377
+ }
378
+ /**
379
+ * Fecha o Modal e limpa o conteúdo.
380
+ */
381
+ async closeModal() {
382
+ this.clearContent(this._rightModal);
383
+ this._rightModal.opened = false;
384
+ }
385
+ /**
386
+ * Fecha o Popup e limpa o conteúdo.
387
+ */
388
+ async closePopUp() {
389
+ this.clearContent(this._popUp);
390
+ this._popUp.opened = false;
391
+ this._popUp.useHeader = true;
392
+ this._popUp.heightMode = "full";
393
+ }
394
+ /**
395
+ * Verifica se a licença do cliente tem determinado opcional (produto)
396
+ */
397
+ async temOpcional(opcional) {
398
+ const opts = opcional.split(",");
399
+ return new Promise((resolve, reject) => {
400
+ this.getAttributeFromHTMLWrapper("opc0009")
401
+ .then(value => {
402
+ if (value === "1") {
403
+ resolve(true);
404
+ }
405
+ else {
406
+ Promise.all(opts.map(opt => this.getAttributeFromHTMLWrapper("opc" + opt)))
407
+ .then(result => {
408
+ resolve(result.includes("1"));
409
+ })
410
+ .catch(error => {
411
+ reject(error);
412
+ });
413
+ }
414
+ })
415
+ .catch(error => {
416
+ reject(error);
417
+ });
418
+ });
419
+ }
420
+ /**
421
+ * Obtém a configuração de um recurso por service broker
422
+ */
423
+ async getConfig(key) {
424
+ let payload = {
425
+ "serviceName": "SystemUtilsSP.getConf",
426
+ "requestBody": {
427
+ "config": {
428
+ "chave": key,
429
+ "tipo": "T"
430
+ }
431
+ }
432
+ };
433
+ return new Promise((resolve, reject) => {
434
+ DataFetcher.get()
435
+ .callServiceBroker("SystemUtilsSP.getConf", JSON.stringify(payload))
436
+ .then(result => { var _a; return resolve((_a = result.config) === null || _a === void 0 ? void 0 : _a.data); })
437
+ .catch(error => reject(error));
438
+ });
439
+ }
440
+ /**
441
+ * Salva a configuração de determinado recurso.
442
+ */
443
+ async saveConfig(key, data) {
444
+ let payload = {
445
+ "serviceName": "SystemUtilsSP.saveConf",
446
+ "requestBody": {
447
+ "config": {
448
+ "chave": key,
449
+ "tipo": "T",
450
+ data
451
+ }
452
+ }
453
+ };
454
+ return new Promise((resolve, reject) => {
455
+ DataFetcher.get()
456
+ .callServiceBroker("SystemUtilsSP.saveConf", JSON.stringify(payload))
457
+ .then(result => resolve(result))
458
+ .catch(error => reject(error));
459
+ });
460
+ }
461
+ /**
462
+ * Acessa informações de contexto "empurrados" na abertura da tela.
463
+ */
464
+ async getAttributeFromHTMLWrapper(attribName) {
465
+ return Promise.resolve(window[attribName]);
466
+ }
467
+ /**
468
+ * Abre determinada tela, repassando pkObject.
469
+ */
470
+ async openApp(resourceId, pkObject) {
471
+ Workspace.openAppActivity(resourceId, pkObject);
472
+ }
473
+ /**
474
+ * Realiza a chamada do WebConnection para realizar a exportação de arquivo.
475
+ * @param keyPort - Chave da porta que será requisitada.
476
+ * @param methodName - Nome do tipo de exportação de arquivo que será realizado.
477
+ * @param params - Parâmetros necessários para realizar a exportação do arquivo.
478
+ */
479
+ async webConnection(keyPort, methodName, params) {
480
+ this.getStringParam(keyPort).then((port) => {
481
+ AppletCaller.webConnectionCaller(port, methodName, params);
482
+ });
483
+ }
484
+ getDuPromissesStack(dataUnitName) {
485
+ let stack;
486
+ if (dataUnitName) {
487
+ stack = this._duPromises.get(dataUnitName);
488
+ if (!stack) {
489
+ stack = [];
490
+ this._duPromises.set(dataUnitName, stack);
491
+ }
492
+ }
493
+ return stack || [];
494
+ }
495
+ /**
496
+ * Cria o DataUnit a partir do nome da entidade. É possível armazená-lo no cache
497
+ * passando o dataUnitName, assim, se mais de uma chamada for feita, o mesmo DataUnit será usado.
498
+ */
499
+ async createDataunit(entityName, dataUnitName, parentDataUnit, configName) {
500
+ return new Promise((resolve, reject) => {
501
+ const duPromisses = this.getDuPromissesStack(dataUnitName);
502
+ const waitingDu = duPromisses.length > 0;
503
+ duPromisses.push(new PendingPromise(resolve, reject));
504
+ if (!waitingDu) {
505
+ const dataUnit = this.dataUnitFetcher.getDataUnit(entityName, this.resourceID, parentDataUnit, configName);
506
+ dataUnit.loadMetadata().then(() => {
507
+ if (dataUnitName) {
508
+ this.updateDataunitCache(undefined, dataUnitName, dataUnit);
509
+ }
510
+ while (duPromisses.length > 0) {
511
+ duPromisses.pop().resolve(dataUnit);
512
+ }
513
+ }).catch(reason => {
514
+ while (duPromisses.length > 0) {
515
+ duPromisses.pop().reject(reason);
516
+ }
517
+ });
518
+ }
519
+ });
520
+ }
521
+ /**
522
+ * Atualiza o cache de dataunits da aplicação.
523
+ * @param oldName - Nome do dataunit que está em cache.
524
+ * @param dataUnitName - Nome do dataunit que será armazenado em cache.
525
+ * @param dataUnit - Instancia do Dataunit para ser armazenado em cache.
526
+ */
527
+ async updateDataunitCache(oldName, dataUnitName, dataUnit) {
528
+ if (oldName) {
529
+ this._duCache.delete(oldName);
530
+ }
531
+ this._duCache.set(dataUnitName, dataUnit);
532
+ }
533
+ /**
534
+ * Obtem um DataUnit do cache ou cria um caso ainda não tenha sido criado.
535
+ */
536
+ async getDataUnit(entityName, dataUnitName, parentDataUnit, configName) {
537
+ return new Promise((resolve, reject) => {
538
+ const dataUnit = this._duCache.get(dataUnitName);
539
+ if (dataUnit) {
540
+ resolve(dataUnit);
541
+ }
542
+ else {
543
+ this.createDataunit(entityName, dataUnitName, parentDataUnit, configName).then(dataUnit => {
544
+ resolve(dataUnit);
545
+ }).catch(reason => reject(reason));
546
+ }
547
+ });
548
+ }
549
+ /**
550
+ * Registra um client event para o DataFetcher da aplicação.
551
+ *
552
+ * @param eventID - Nome do evento para a aplicação se registrar.
553
+ * @param handler - Função de callback que será chamada quando o client event ocorrer.
554
+ */
555
+ async addClientEvent(eventID, handler) {
556
+ return new Promise((resolve) => {
557
+ DataFetcher.addClientEvent(eventID, handler);
558
+ resolve();
559
+ });
560
+ }
561
+ /**
562
+ * Remove um client event para o DataFetcher da aplicação.
563
+ *
564
+ * @param eventID - Nome do evento a ser removido.
565
+ */
566
+ async removeClientEvent(eventID) {
567
+ return new Promise((resolve) => {
568
+ DataFetcher.removeClientEvent(eventID);
569
+ resolve();
570
+ });
571
+ }
572
+ /**
573
+ * Verfica se um client event está registrado no DataFetcher da aplicação.
574
+ *
575
+ * @param eventID - Nome do evento a ser verificado.
576
+ */
577
+ async hasClientEvent(eventID) {
578
+ return new Promise((resolve) => {
579
+ resolve(DataFetcher.hasClientEvent(eventID));
580
+ });
581
+ }
582
+ /**
583
+ * Realiza a chamada ao Service Broker conforme o nome do serviço.
584
+ *
585
+ * @param serviceName - Nome do serviço
586
+ * @param payload - Dados que serão processados na ação
587
+ * @param options - Parâmetros de URL
588
+ */
589
+ async callServiceBroker(serviceName, payload, options) {
590
+ return DataFetcher.get().callServiceBroker(serviceName, payload, options);
591
+ }
592
+ /**
593
+ * Obtém o resourceID da tela em questão.
594
+ */
595
+ async getResourceID() {
596
+ return Promise.resolve(this.resourceID);
597
+ }
598
+ /**
599
+ * Obtém o UserId da tela em questão.
600
+ */
601
+ async getUserID() {
602
+ return Promise.resolve(window["UID"]);
603
+ }
604
+ /**
605
+ * Exibe o diálogo de alerta de acordo com os parâmetros passados.
606
+ */
607
+ async alert(title, message, icon, options) {
608
+ return ApplicationUtils.alert(title, message, icon, options);
609
+ }
610
+ /**
611
+ * Exibe o diálogo de erro de acordo com os parâmetros passados.
612
+ */
613
+ async error(title, message, icon, options) {
614
+ return ApplicationUtils.error(title, message, icon, options);
615
+ }
616
+ /**
617
+ * Exibe o diálogo de sucesso de acordo com os parâmetros passados.
618
+ */
619
+ async success(title, message, icon, options) {
620
+ return ApplicationUtils.success(title, message, icon, options);
621
+ }
622
+ /**
623
+ * Exibe um diálogo de mensagem comum
624
+ */
625
+ async message(title, message, icon, options) {
626
+ return ApplicationUtils.message(title, message, icon, options);
627
+ }
628
+ /**
629
+ * Exibe um diálogo de confirmação
630
+ */
631
+ async confirm(title, message, icon, dialogType, options) {
632
+ return ApplicationUtils.confirm(title, message, icon, dialogType, options);
633
+ }
634
+ /**
635
+ * Exibe uma informação efêmera (de segundo plano).
636
+ */
637
+ async info(message, options) {
638
+ return ApplicationUtils.info(message, options);
639
+ }
640
+ /**
641
+ * Obtém a configuração de grade.
642
+ */
643
+ async loadGridConfig(name) {
644
+ return this.gridConfigFetcher.getConfig(name, this.resourceID);
645
+ }
646
+ /**
647
+ * Obtém os totalizadores da grade.
648
+ */
649
+ async loadTotals(name, resourceID, filters) {
650
+ return this.totalsFetcher.fetchTotals(name, resourceID, filters);
651
+ }
652
+ async getAuthList(_auth) {
653
+ return await (new MGEAuthorization()).parseFromJSON(_auth);
654
+ }
655
+ get urlParams() {
656
+ if (!this._urlParams) {
657
+ this._urlParams = UrlUtils.getQueryParams(location.search);
658
+ }
659
+ return this._urlParams;
660
+ }
661
+ get dataUnitFetcher() {
662
+ if (!this._dataUnitFetcher) {
663
+ this._dataUnitFetcher = new DataUnitFetcher();
664
+ }
665
+ return this._dataUnitFetcher;
666
+ }
667
+ get gridConfigFetcher() {
668
+ if (!this._gridConfigFetcher) {
669
+ this._gridConfigFetcher = new GridConfigFetcher();
670
+ }
671
+ return this._gridConfigFetcher;
672
+ }
673
+ get totalsFetcher() {
674
+ if (!this._totalsFetcher) {
675
+ this._totalsFetcher = new TotalsFetcher();
676
+ }
677
+ return this._totalsFetcher;
678
+ }
679
+ get pesquisaFetcher() {
680
+ if (!this._pesquisaFetcher) {
681
+ this._pesquisaFetcher = new PesquisaFetcher();
682
+ }
683
+ return this._pesquisaFetcher;
684
+ }
685
+ get authFetcher() {
686
+ if (!this._authFetcher) {
687
+ this._authFetcher = new AuthFetcher();
688
+ }
689
+ return this._authFetcher;
690
+ }
691
+ /**
692
+ * Obtém as opções em componentes de pesquisa
693
+ * Ex.: snk-config-options
694
+ */
695
+ async executeSearch(searchArgument, fieldName, dataUnit) {
696
+ const descriptor = dataUnit === null || dataUnit === void 0 ? void 0 : dataUnit.getField(fieldName);
697
+ if (!descriptor) ;
698
+ else {
699
+ const { mode, argument } = searchArgument;
700
+ const { ENTITYNAME, CODEFIELD, DESCRIPTIONFIELD, ROOTENTITY, DESCRIPTIONENTITY } = descriptor.properties;
701
+ const dependencies = descriptor.dependencies;
702
+ let criteria;
703
+ const searchOptions = {
704
+ rootEntity: ROOTENTITY,
705
+ descriptionFieldName: DESCRIPTIONFIELD,
706
+ codeFieldName: CODEFIELD,
707
+ showInactives: false,
708
+ dataUnitId: dataUnit.dataUnitId
709
+ };
710
+ dependencies === null || dependencies === void 0 ? void 0 : dependencies.filter(dep => dep.masterFields).forEach(dependency => {
711
+ var _a;
712
+ if (dependency.type === DependencyType.SEARCHING) {
713
+ if (((_a = dependency.masterFields) === null || _a === void 0 ? void 0 : _a.length) > 0) {
714
+ criteria = {
715
+ expression: dependency.expression,
716
+ params: dependency.masterFields.map(fieldName => {
717
+ const masterDescriptor = dataUnit.getField(fieldName);
718
+ const dataType = (masterDescriptor === null || masterDescriptor === void 0 ? void 0 : masterDescriptor.dataType) || DataType.TEXT;
719
+ const value = dataUnit.getFieldValue(fieldName);
720
+ if (value == undefined) {
721
+ this.alert("Erro ao pesquisar", `É necessario informar o campo ${masterDescriptor.label} para executar a pesquisa.`);
722
+ throw new Error(`É necessario informar o campo ${masterDescriptor.label} para executar a pesquisa.`);
723
+ }
724
+ return { name: fieldName, value, dataType };
725
+ })
726
+ };
727
+ }
728
+ }
729
+ });
730
+ return this.executePreparedSearch(mode, argument, { entity: ENTITYNAME, entityDescription: DESCRIPTIONENTITY, criteria, searchOptions });
731
+ }
732
+ }
733
+ /**
734
+ * Obtém as opções em componentes de pesquisa
735
+ * Ex.: snk-config-options
736
+ */
737
+ async executePreparedSearch(mode, argument, options) {
738
+ const { entity, entityDescription, criteria, searchOptions } = options;
739
+ if (mode === "ADVANCED") {
740
+ return new Promise(accept => {
741
+ const pesquisaContent = document.createElement("snk-pesquisa");
742
+ pesquisaContent[ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME] = `entity_${entity}`;
743
+ pesquisaContent.argument = argument;
744
+ pesquisaContent.searchLoader = (text) => this.pesquisaFetcher.loadAdvancedSearch(entity, text, criteria, searchOptions);
745
+ pesquisaContent.selectItem = (option) => {
746
+ accept(option);
747
+ this.clearPopUpTitle();
748
+ this.closePopUp();
749
+ };
750
+ this.setPopUpTitle(entityDescription);
751
+ this.showPopUp(pesquisaContent);
752
+ });
753
+ }
754
+ else {
755
+ return this.pesquisaFetcher.loadSearchOptions(entity, argument, criteria, searchOptions);
756
+ }
757
+ }
758
+ /**
759
+ * Obtém `true` caso a tela esteja em modo de debug.
760
+ */
761
+ async isDebugMode() {
762
+ return new Promise(accept => {
763
+ accept(window['isDebugMode']);
764
+ });
765
+ }
766
+ /**
767
+ * Obtém o nome das telas da aplicação
768
+ */
769
+ async getAppLabel() {
770
+ return Workspace.getAppLabel(this._resourceID);
771
+ }
772
+ /**
773
+ * Adiciona um listener no fetcher de Pesquisa
774
+ */
775
+ addSearchListener(entityName, dataUnit, listener) {
776
+ return new Promise(resolve => {
777
+ const removeListener = this.pesquisaFetcher.addSearchListener(entityName, dataUnit.dataUnitId, listener);
778
+ resolve(removeListener);
779
+ });
780
+ }
781
+ /**
782
+ Realiza o import de um JavaScript que está disponivel dentro da pasta /public da aplicação.
783
+ @param relativePath: Define o caminho relativo para o arquivo JavaScript a ser importado.
784
+ */
785
+ importScript(relativePath) {
786
+ return new Promise((resolve) => {
787
+ this.getApplicationPath().then((appPath) => {
788
+ let paths = [];
789
+ if (!Array.isArray(relativePath)) {
790
+ paths = [relativePath];
791
+ }
792
+ paths.forEach(path => {
793
+ const script = document.createElement('script');
794
+ script.src = `${appPath}/${path}`;
795
+ script.async = true;
796
+ document.body.appendChild(script);
797
+ });
798
+ resolve();
799
+ });
800
+ });
801
+ }
802
+ /**
803
+ Retorna o path relativo da aplicação.
804
+ */
805
+ getApplicationPath() {
806
+ return new Promise((resolve) => {
807
+ if (window['applicationenv'] !== "dev") {
808
+ resolve(`/${window["MGE_MODULE_NAME"]}/labsApps/${window["APPLICATION_NAME"]}/build`);
809
+ }
810
+ resolve('');
811
+ });
812
+ }
813
+ /**
814
+ * Com base em um campo realiza um "select distinct" respeitando os
815
+ * filtros atuais do dataUnit e um critério de filtro para a própria
816
+ * coluna.
817
+ */
818
+ executeSelectDistinct(dataUnit, fieldName, argument) {
819
+ return this.dataUnitFetcher.loadSelectDistinct(dataUnit, fieldName, argument);
820
+ }
821
+ /**
822
+ * Retorna a instancia do DataFetcher utilizado pelo application
823
+ * @returns DataFetcher do application
824
+ */
825
+ getDataFetcher() {
826
+ return Promise.resolve(DataFetcher.get());
827
+ }
828
+ clearContent(container) {
829
+ if (container) {
830
+ Array.from(container.children).forEach(child => {
831
+ container.removeChild(child);
832
+ });
833
+ }
834
+ }
835
+ clearPopUpTitle() {
836
+ this._popUp.ezTitle = "";
837
+ }
838
+ setPopUpTitle(title) {
839
+ this._popUp.ezTitle = title;
840
+ }
841
+ componentWillLoad() {
842
+ this._errorHandler = new SnkErrorHandler(this);
843
+ this.messagesBuilder = new SnkMessageBuilder();
844
+ ApplicationContext.setContextValue("__EZUI__UPLOAD__ADD__URL__", `${UrlUtils.getUrlBase()}/mge/upload/file`);
845
+ ApplicationContext.setContextValue("__EZUI__SEARCH__OPTION__LOADER__", (searchArgument, fieldName, dataUnit) => {
846
+ return this.executeSearch(searchArgument, fieldName, dataUnit);
847
+ });
848
+ ApplicationContext.setContextValue("__EZUI__GRID_LICENSE__", agGridLicense);
849
+ ErrorTracking.init();
850
+ ConfigStorage.get();
851
+ }
852
+ connectedCallback() {
853
+ ApplicationContext.setContextValue("__SNK__APPLICATION__", this);
854
+ DataFetcher.addRequestListener(this._requestListener);
855
+ }
856
+ disconnectedCallback() {
857
+ DataFetcher.removeRequestListener(this._requestListener);
858
+ }
859
+ componentDidLoad() {
860
+ this.applicationLoading.emit(true);
861
+ window.requestAnimationFrame(() => {
862
+ this.applicationLoaded.emit(true);
863
+ });
864
+ ElementIDUtils.addIDInfo(this._element, `resource_${this._resourceID}`);
865
+ }
866
+ render() {
867
+ return (h("div", null, h("ez-loading-bar", { ref: (ref) => this._requestListener.loadingBar = ref }), h("ez-popup", { opened: false, ref: (ref) => this._popUp = ref, onEzClosePopup: () => this.closePopUp() }), h("ez-modal", { opened: false, ref: (ref) => this._rightModal = ref, "modal-size": "small", closeOutsideClick: true, closeEsc: true })));
868
+ }
869
+ get _element() { return this; }
870
+ static get style() { return snkApplicationCss; }
871
+ }, [2, "snk-application", {
872
+ "messagesBuilder": [1040],
873
+ "configName": [1, "config-name"],
874
+ "isUserSup": [64],
875
+ "initOnboarding": [64],
876
+ "hasAccess": [64],
877
+ "getAllAccess": [64],
878
+ "getStringParam": [64],
879
+ "getIntParam": [64],
880
+ "getFloatParam": [64],
881
+ "getBooleanParam": [64],
882
+ "getDateParam": [64],
883
+ "showPopUp": [64],
884
+ "showModal": [64],
885
+ "closeModal": [64],
886
+ "closePopUp": [64],
887
+ "temOpcional": [64],
888
+ "getConfig": [64],
889
+ "saveConfig": [64],
890
+ "getAttributeFromHTMLWrapper": [64],
891
+ "openApp": [64],
892
+ "webConnection": [64],
893
+ "createDataunit": [64],
894
+ "updateDataunitCache": [64],
895
+ "getDataUnit": [64],
896
+ "addClientEvent": [64],
897
+ "removeClientEvent": [64],
898
+ "hasClientEvent": [64],
899
+ "callServiceBroker": [64],
900
+ "getResourceID": [64],
901
+ "getUserID": [64],
902
+ "alert": [64],
903
+ "error": [64],
904
+ "success": [64],
905
+ "message": [64],
906
+ "confirm": [64],
907
+ "info": [64],
908
+ "loadGridConfig": [64],
909
+ "loadTotals": [64],
910
+ "executeSearch": [64],
911
+ "executePreparedSearch": [64],
912
+ "isDebugMode": [64],
913
+ "getAppLabel": [64],
914
+ "addSearchListener": [64],
915
+ "importScript": [64],
916
+ "getApplicationPath": [64],
917
+ "executeSelectDistinct": [64],
918
+ "getDataFetcher": [64]
919
+ }]);
920
+ class RequestListenerLoadingBar {
921
+ constructor() {
922
+ this._debounceTime = 1000;
923
+ this._ignoredNameTypes = ["totals"];
924
+ this._countRequest = 0;
925
+ }
926
+ onRequestStart(param) {
927
+ if (this.isIgnoreLoadingOnRequest(param)) {
928
+ return;
929
+ }
930
+ this._countRequest++;
931
+ this.loadingBar.show();
932
+ if (this._timerLoading) {
933
+ clearTimeout(this._timerLoading);
934
+ }
935
+ }
936
+ ;
937
+ onRequestEnd(param) {
938
+ if (this.isIgnoreLoadingOnRequest(param)) {
939
+ return;
940
+ }
941
+ this._countRequest--;
942
+ this._timerLoading = setTimeout(() => {
943
+ if (this._countRequest <= 0) {
944
+ this.loadingBar.hide();
945
+ }
946
+ }, this._debounceTime);
947
+ }
948
+ ;
949
+ isIgnoreLoadingOnRequest(param) {
950
+ var _a;
951
+ if (((_a = param === null || param === void 0 ? void 0 : param.requestBody) === null || _a === void 0 ? void 0 : _a.length) == 1) {
952
+ const { name } = param.requestBody[0].variables;
953
+ if (name) {
954
+ const nameParts = name.split(":");
955
+ const nameType = nameParts[0];
956
+ return this._ignoredNameTypes.indexOf(nameType) >= 0;
957
+ }
958
+ }
959
+ return false;
960
+ }
961
+ ;
962
+ }
963
+ class PendingPromise {
964
+ constructor(resolve, reject) {
965
+ this.resolve = resolve;
966
+ this.reject = reject;
967
+ }
968
+ }
969
+ function defineCustomElement() {
970
+ if (typeof customElements === "undefined") {
971
+ return;
972
+ }
973
+ const components = ["snk-application", "snk-pesquisa"];
974
+ components.forEach(tagName => { switch (tagName) {
975
+ case "snk-application":
976
+ if (!customElements.get(tagName)) {
977
+ customElements.define(tagName, SnkApplication);
978
+ }
979
+ break;
980
+ case "snk-pesquisa":
981
+ if (!customElements.get(tagName)) {
982
+ defineCustomElement$1();
983
+ }
984
+ break;
985
+ } });
986
+ }
987
+
988
+ export { SnkApplication as S, defineCustomElement as d };