@sankhyalabs/sankhyablocks 0.0.0-bugfix-dev-KB-11997.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 (829) 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-0e4275f5.js +422 -0
  5. package/dist/cjs/DataFetcher-bd3d53a8.js +6985 -0
  6. package/dist/cjs/ISave-d68ce3cd.js +8 -0
  7. package/dist/cjs/ParamType-90b440a0.js +13 -0
  8. package/dist/cjs/PersonalizedFilterUtils-1aeb625d.js +220 -0
  9. package/dist/cjs/PrintUtils-bcaeb82f.js +215 -0
  10. package/dist/cjs/ResourceIDUtils-5ff86aa7.js +12 -0
  11. package/dist/cjs/SnkFormConfigManager-5b485cd4.js +134 -0
  12. package/dist/cjs/SnkMessageBuilder-d0abb63d.js +651 -0
  13. package/dist/cjs/SnkMultiSelectionListDataSource-804ff4c7.js +34 -0
  14. package/dist/cjs/_commonjsHelpers-537d719a.js +20 -0
  15. package/dist/cjs/auth-fetcher-1583fe43.js +34 -0
  16. package/dist/cjs/constants-d187e03e.js +101 -0
  17. package/dist/cjs/dataunit-fetcher-910be4ce.js +356 -0
  18. package/dist/cjs/draggable.bundle-82a25c06.js +6886 -0
  19. package/dist/cjs/filter-item-type.enum-aa823a00.js +17 -0
  20. package/dist/cjs/filter-type.enum-b14ce507.js +11 -0
  21. package/dist/cjs/form-config-fetcher-f6cb55e6.js +244 -0
  22. package/dist/cjs/index-0e663819.js +33 -0
  23. package/dist/cjs/index-102ba62d.js +201 -0
  24. package/dist/cjs/index-8d94b7e0.js +7 -0
  25. package/dist/cjs/index-c5771aba.js +44 -0
  26. package/dist/cjs/index-f9e81701.js +2332 -0
  27. package/dist/cjs/index.cjs.js +2 -0
  28. package/dist/cjs/loader.cjs.js +22 -0
  29. package/dist/cjs/pesquisa-fetcher-3356b3df.js +167 -0
  30. package/dist/cjs/presentationMode-52ec3bdd.js +7 -0
  31. package/dist/cjs/sankhyablocks.cjs.js +23 -0
  32. package/dist/cjs/snk-actions-button.cjs.entry.js +713 -0
  33. package/dist/cjs/snk-actions-form.cjs.entry.js +200 -0
  34. package/dist/cjs/snk-application.cjs.entry.js +947 -0
  35. package/dist/cjs/snk-attach.cjs.entry.js +447 -0
  36. package/dist/cjs/snk-client-confirm.cjs.entry.js +52 -0
  37. package/dist/cjs/snk-config-options.cjs.entry.js +239 -0
  38. package/dist/cjs/snk-configurator.cjs.entry.js +100 -0
  39. package/dist/cjs/snk-crud.cjs.entry.js +200 -0
  40. package/dist/cjs/snk-data-exporter.cjs.entry.js +521 -0
  41. package/dist/cjs/snk-data-unit-7cc1846d.js +452 -0
  42. package/dist/cjs/snk-data-unit.cjs.entry.js +13 -0
  43. package/dist/cjs/snk-detail-view.cjs.entry.js +273 -0
  44. package/dist/cjs/snk-entity-list.cjs.entry.js +114 -0
  45. package/dist/cjs/snk-exporter-email-sender.cjs.entry.js +132 -0
  46. package/dist/cjs/snk-expression-group_2.cjs.entry.js +545 -0
  47. package/dist/cjs/snk-field-config.cjs.entry.js +60 -0
  48. package/dist/cjs/snk-filter-advanced-mode_2.cjs.entry.js +60 -0
  49. package/dist/cjs/snk-filter-bar.cjs.entry.js +508 -0
  50. package/dist/cjs/snk-filter-binary-select.cjs.entry.js +91 -0
  51. package/dist/cjs/snk-filter-detail.cjs.entry.js +169 -0
  52. package/dist/cjs/snk-filter-field-search_2.cjs.entry.js +408 -0
  53. package/dist/cjs/snk-filter-item.cjs.entry.js +281 -0
  54. package/dist/cjs/snk-filter-list.cjs.entry.js +152 -0
  55. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +113 -0
  56. package/dist/cjs/snk-filter-modal.cjs.entry.js +217 -0
  57. package/dist/cjs/snk-filter-multi-select.cjs.entry.js +43 -0
  58. package/dist/cjs/snk-filter-number.cjs.entry.js +44 -0
  59. package/dist/cjs/snk-filter-period.cjs.entry.js +73 -0
  60. package/dist/cjs/snk-filter-search.cjs.entry.js +54 -0
  61. package/dist/cjs/snk-filter-text.cjs.entry.js +36 -0
  62. package/dist/cjs/snk-form-config.cjs.entry.js +981 -0
  63. package/dist/cjs/snk-form-summary.cjs.entry.js +61 -0
  64. package/dist/cjs/snk-form-view.cjs.entry.js +104 -0
  65. package/dist/cjs/snk-form.cjs.entry.js +92 -0
  66. package/dist/cjs/snk-grid-config.cjs.entry.js +484 -0
  67. package/dist/cjs/snk-grid.cjs.entry.js +333 -0
  68. package/dist/cjs/snk-guides-viewer-5e22097d.js +345 -0
  69. package/dist/cjs/snk-guides-viewer.cjs.entry.js +29 -0
  70. package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js +210 -0
  71. package/dist/cjs/snk-personalized-filter.cjs.entry.js +303 -0
  72. package/dist/cjs/snk-pesquisa.cjs.entry.js +324 -0
  73. package/dist/cjs/snk-print-selector.cjs.entry.js +167 -0
  74. package/dist/cjs/snk-select-box.cjs.entry.js +25 -0
  75. package/dist/cjs/snk-simple-bar.cjs.entry.js +45 -0
  76. package/dist/cjs/snk-simple-crud.cjs.entry.js +296 -0
  77. package/dist/cjs/snk-tab-config.cjs.entry.js +331 -0
  78. package/dist/cjs/snk-taskbar-custom-elements.cjs.entry.js +20 -0
  79. package/dist/cjs/snk-taskbar.cjs.entry.js +287 -0
  80. package/dist/cjs/taskbar-elements-39949c7a.js +121 -0
  81. package/dist/cjs/taskbar-processor-bce3f499.js +49 -0
  82. package/dist/cjs/teste-pesquisa.cjs.entry.js +37 -0
  83. package/dist/collection/collection-manifest.json +172 -0
  84. package/dist/collection/components/snk-actions-button/actions/enum/ActionsType.js +8 -0
  85. package/dist/collection/components/snk-actions-button/actions/enum/ParamType.js +11 -0
  86. package/dist/collection/components/snk-actions-button/actions/enum/RefreshType.js +7 -0
  87. package/dist/collection/components/snk-actions-button/actions/executor/java.executor.js +22 -0
  88. package/dist/collection/components/snk-actions-button/actions/executor/javascript.executor.js +20 -0
  89. package/dist/collection/components/snk-actions-button/actions/executor/launch-screen.executor.js +42 -0
  90. package/dist/collection/components/snk-actions-button/actions/executor/procedure.executor.js +26 -0
  91. package/dist/collection/components/snk-actions-button/actions/factory/executor.factory.js +26 -0
  92. package/dist/collection/components/snk-actions-button/actions/index.js +342 -0
  93. package/dist/collection/components/snk-actions-button/actions/interfaces/IAction.js +7 -0
  94. package/dist/collection/components/snk-actions-button/actions/interfaces/IExecSource.js +1 -0
  95. package/dist/collection/components/snk-actions-button/actions/interfaces/IExecuteActions.js +1 -0
  96. package/dist/collection/components/snk-actions-button/actions/interfaces/IExecuteActionsProps.js +1 -0
  97. package/dist/collection/components/snk-actions-button/actions/interfaces/IResultParam.js +1 -0
  98. package/dist/collection/components/snk-actions-button/clientEvent/index.js +87 -0
  99. package/dist/collection/components/snk-actions-button/clientEvent/interfaces/IClientEventConfirm.js +1 -0
  100. package/dist/collection/components/snk-actions-button/snk-actions-button.css +38 -0
  101. package/dist/collection/components/snk-actions-button/snk-actions-button.js +143 -0
  102. package/dist/collection/components/snk-actions-button/subcomponents/snk-actions-form.js +263 -0
  103. package/dist/collection/components/snk-actions-button/subcomponents/snk-client-confirm.js +134 -0
  104. package/dist/collection/components/snk-application/errorhandler/snk-error-handler.js +60 -0
  105. package/dist/collection/components/snk-application/snk-application.css +5 -0
  106. package/dist/collection/components/snk-application/snk-application.js +2055 -0
  107. package/dist/collection/components/snk-attach/interfaces/index.js +1 -0
  108. package/dist/collection/components/snk-attach/snk-attach.css +8 -0
  109. package/dist/collection/components/snk-attach/snk-attach.js +203 -0
  110. package/dist/collection/components/snk-attach/structure/crud-config-builder.js +37 -0
  111. package/dist/collection/components/snk-attach/structure/data-unit-builder.js +105 -0
  112. package/dist/collection/components/snk-attach/structure/index.js +3 -0
  113. package/dist/collection/components/snk-attach/structure/taskbar-builder.js +47 -0
  114. package/dist/collection/components/snk-configurator/AuthorizationConfig.js +5 -0
  115. package/dist/collection/components/snk-configurator/snk-configurator.css +159 -0
  116. package/dist/collection/components/snk-configurator/snk-configurator.js +311 -0
  117. package/dist/collection/components/snk-crud/snk-crud.css +6 -0
  118. package/dist/collection/components/snk-crud/snk-crud.js +572 -0
  119. package/dist/collection/components/snk-crud/subcomponents/CardFormResizeObserver.js +26 -0
  120. package/dist/collection/components/snk-crud/subcomponents/GuideBuilder.js +43 -0
  121. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.css +26 -0
  122. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +606 -0
  123. package/dist/collection/components/snk-crud/subcomponents/snk-form-summary.css +37 -0
  124. package/dist/collection/components/snk-crud/subcomponents/snk-form-summary.js +91 -0
  125. package/dist/collection/components/snk-crud/subcomponents/snk-form-view.css +52 -0
  126. package/dist/collection/components/snk-crud/subcomponents/snk-form-view.js +402 -0
  127. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.css +91 -0
  128. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +727 -0
  129. package/dist/collection/components/snk-data-exporter/data/attachment.js +1 -0
  130. package/dist/collection/components/snk-data-exporter/data/email.js +1 -0
  131. package/dist/collection/components/snk-data-exporter/data/export-config.js +1 -0
  132. package/dist/collection/components/snk-data-exporter/data/export-result.js +1 -0
  133. package/dist/collection/components/snk-data-exporter/data/report.js +1 -0
  134. package/dist/collection/components/snk-data-exporter/exporter-email-sender/email-info-step.js +7 -0
  135. package/dist/collection/components/snk-data-exporter/exporter-email-sender/options-step.js +21 -0
  136. package/dist/collection/components/snk-data-exporter/exporter-email-sender/snk-exporter-email-sender.js +172 -0
  137. package/dist/collection/components/snk-data-exporter/interfaces/IExporterProvider.js +1 -0
  138. package/dist/collection/components/snk-data-exporter/interfaces/IRecordID.js +1 -0
  139. package/dist/collection/components/snk-data-exporter/interfaces/ISelectedID.js +1 -0
  140. package/dist/collection/components/snk-data-exporter/snk-data-exporter.css +38 -0
  141. package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +375 -0
  142. package/dist/collection/components/snk-data-exporter/structure/ItemBuilder.js +140 -0
  143. package/dist/collection/components/snk-data-unit/snk-data-unit.css +6 -0
  144. package/dist/collection/components/snk-data-unit/snk-data-unit.js +836 -0
  145. package/dist/collection/components/snk-entity-list/snk-entity-list.css +35 -0
  146. package/dist/collection/components/snk-entity-list/snk-entity-list.js +234 -0
  147. package/dist/collection/components/snk-filter-bar/filter-item/dataunitfilter/data-unit-filter-builder.js +128 -0
  148. package/dist/collection/components/snk-filter-bar/filter-item/editors/enum/presentationMode.js +5 -0
  149. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.js +197 -0
  150. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.js +123 -0
  151. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js +124 -0
  152. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js +191 -0
  153. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-search.js +137 -0
  154. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-text.js +96 -0
  155. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.css +66 -0
  156. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.js +396 -0
  157. package/dist/collection/components/snk-filter-bar/filter-item/filter-item-type.enum.js +13 -0
  158. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +245 -0
  159. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +415 -0
  160. package/dist/collection/components/snk-filter-bar/filter-list/snk-filter-list.js +323 -0
  161. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.css +35 -0
  162. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +345 -0
  163. package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.css +8 -0
  164. package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.js +219 -0
  165. package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +184 -0
  166. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +479 -0
  167. package/dist/collection/components/snk-filter-bar/types/custom-element-filter.js +1 -0
  168. package/dist/collection/components/snk-filter-bar/types/filter-type.enum.js +7 -0
  169. package/dist/collection/components/snk-filter-bar/utils/SnkFilterModalFactory.js +42 -0
  170. package/dist/collection/components/snk-filter-bar/utils/filters-mock.js +411 -0
  171. package/dist/collection/components/snk-filter-field-search/interfaces/index.js +5 -0
  172. package/dist/collection/components/snk-filter-field-search/snk-filter-field-search.css +41 -0
  173. package/dist/collection/components/snk-filter-field-search/snk-filter-field-search.js +335 -0
  174. package/dist/collection/components/snk-filter-field-search/subcomponents/index.js +1 -0
  175. package/dist/collection/components/snk-filter-field-search/subcomponents/list-item.js +24 -0
  176. package/dist/collection/components/snk-form/SnkFormConfigManager.js +129 -0
  177. package/dist/collection/components/snk-form/snk-form.css +11 -0
  178. package/dist/collection/components/snk-form/snk-form.js +260 -0
  179. package/dist/collection/components/snk-form/subcomponents/snk-config-options/snk-config-options.css +16 -0
  180. package/dist/collection/components/snk-form/subcomponents/snk-config-options/snk-config-options.js +344 -0
  181. package/dist/collection/components/snk-form/subcomponents/snk-field-config/snk-field-config.css +219 -0
  182. package/dist/collection/components/snk-form/subcomponents/snk-field-config/snk-field-config.js +184 -0
  183. package/dist/collection/components/snk-form/subcomponents/snk-form-config/snk-form-config.css +237 -0
  184. package/dist/collection/components/snk-form/subcomponents/snk-form-config/snk-form-config.js +1097 -0
  185. package/dist/collection/components/snk-form/subcomponents/snk-tab-config/snk-tab-config.css +323 -0
  186. package/dist/collection/components/snk-form/subcomponents/snk-tab-config/snk-tab-config.js +525 -0
  187. package/dist/collection/components/snk-grid/filtercolumn/SnkMultiSelectionListDataSource.js +29 -0
  188. package/dist/collection/components/snk-grid/snk-grid.css +28 -0
  189. package/dist/collection/components/snk-grid/snk-grid.js +774 -0
  190. package/dist/collection/components/snk-grid/subcomponents/snk-grid-config/snk-grid-config.css +181 -0
  191. package/dist/collection/components/snk-grid/subcomponents/snk-grid-config/snk-grid-config.js +634 -0
  192. package/dist/collection/components/snk-grid/subcomponents/snk-select-box/snk-select-box.css +9 -0
  193. package/dist/collection/components/snk-grid/subcomponents/snk-select-box/snk-select-box.js +70 -0
  194. package/dist/collection/components/snk-personalized-filter/interfaces/IExpressionGroup.js +0 -0
  195. package/dist/collection/components/snk-personalized-filter/interfaces/IExpressionItem.js +5 -0
  196. package/dist/collection/components/snk-personalized-filter/interfaces/IParameter.js +1 -0
  197. package/dist/collection/components/snk-personalized-filter/interfaces/IPersonalizedFilter.js +1 -0
  198. package/dist/collection/components/snk-personalized-filter/interfaces/ISystemFilterConfig.js +1 -0
  199. package/dist/collection/components/snk-personalized-filter/interfaces/IUserFilterConfig.js +1 -0
  200. package/dist/collection/components/snk-personalized-filter/interfaces/index.js +39 -0
  201. package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.css +45 -0
  202. package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js +456 -0
  203. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.css +73 -0
  204. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.js +448 -0
  205. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/filter-operands/filter-operands.js +26 -0
  206. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.css +111 -0
  207. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.js +412 -0
  208. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-advanced-mode/snk-filter-advanced-mode.css +10 -0
  209. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-advanced-mode/snk-filter-advanced-mode.js +88 -0
  210. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-assistent-mode/snk-filter-assistent-mode.css +66 -0
  211. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-assistent-mode/snk-filter-assistent-mode.js +158 -0
  212. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/snk-filter-param-config.css +12 -0
  213. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/snk-filter-param-config.js +291 -0
  214. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/utils/PersonalizedFilterUtils.js +215 -0
  215. package/dist/collection/components/snk-pesquisa/snk-pesquisa.css +151 -0
  216. package/dist/collection/components/snk-pesquisa/snk-pesquisa.js +394 -0
  217. package/dist/collection/components/snk-print-selector/snk-print-selector.css +35 -0
  218. package/dist/collection/components/snk-print-selector/snk-print-selector.js +203 -0
  219. package/dist/collection/components/snk-simple-bar/snk-simple-bar.css +32 -0
  220. package/dist/collection/components/snk-simple-bar/snk-simple-bar.js +146 -0
  221. package/dist/collection/components/snk-simple-crud/snk-simple-crud.css +22 -0
  222. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +597 -0
  223. package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +114 -0
  224. package/dist/collection/components/snk-taskbar/processor/taskbar-processor.js +45 -0
  225. package/dist/collection/components/snk-taskbar/snk-taskbar-custom-elements.js +43 -0
  226. package/dist/collection/components/snk-taskbar/snk-taskbar.css +7 -0
  227. package/dist/collection/components/snk-taskbar/snk-taskbar.js +548 -0
  228. package/dist/collection/components/teste-pesquisa/teste-pesquisa.css +3 -0
  229. package/dist/collection/components/teste-pesquisa/teste-pesquisa.js +36 -0
  230. package/dist/collection/index.js +1 -0
  231. package/dist/collection/lib/@types/index.js +31 -0
  232. package/dist/collection/lib/applet-caller/applet-caller.js +6 -0
  233. package/dist/collection/lib/auth/mgeauthorization.module.js +1 -0
  234. package/dist/collection/lib/configs/ConfigStorage.js +84 -0
  235. package/dist/collection/lib/dataUnit/InMemoryLoader.js +86 -0
  236. package/dist/collection/lib/http/data-fetcher/DataFetcher.js +490 -0
  237. package/dist/collection/lib/http/data-fetcher/fetchers/application-config-fetcher.js +23 -0
  238. package/dist/collection/lib/http/data-fetcher/fetchers/attach-fetcher.js +136 -0
  239. package/dist/collection/lib/http/data-fetcher/fetchers/auth-fetcher.js +29 -0
  240. package/dist/collection/lib/http/data-fetcher/fetchers/dataunit-fetcher.js +353 -0
  241. package/dist/collection/lib/http/data-fetcher/fetchers/fecthAttach/interfaces/IDelete.js +1 -0
  242. package/dist/collection/lib/http/data-fetcher/fetchers/fecthAttach/interfaces/IDownloadKey.js +1 -0
  243. package/dist/collection/lib/http/data-fetcher/fetchers/fecthAttach/interfaces/ISave.js +6 -0
  244. package/dist/collection/lib/http/data-fetcher/fetchers/fecthAttach/interfaces/index.js +3 -0
  245. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/index.js +33 -0
  246. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IExporterColumnMetadata.js +1 -0
  247. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterParams.js +1 -0
  248. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterResponse.js +1 -0
  249. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IPersonalizedReport.js +1 -0
  250. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/permission-export-pdf.js +7 -0
  251. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/personalized-reports-fetcher.js +18 -0
  252. package/dist/collection/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.js +127 -0
  253. package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +177 -0
  254. package/dist/collection/lib/http/data-fetcher/fetchers/grid-config-fetcher.js +40 -0
  255. package/dist/collection/lib/http/data-fetcher/fetchers/parameters-fecher.js +66 -0
  256. package/dist/collection/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.js +169 -0
  257. package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +163 -0
  258. package/dist/collection/lib/http/data-fetcher/fetchers/resource-fetcher.js +64 -0
  259. package/dist/collection/lib/http/data-fetcher/fetchers/totals-fetcher.js +63 -0
  260. package/dist/collection/lib/http/data-fetcher/interfaces/IClientEventResponse.js +1 -0
  261. package/dist/collection/lib/http/data-fetcher/recaller/GraphQLRecaller.js +28 -0
  262. package/dist/collection/lib/http/data-fetcher/recaller/IDataFetcherRecaller.js +1 -0
  263. package/dist/collection/lib/http/data-fetcher/recaller/ServiceBrokerRecaller.js +15 -0
  264. package/dist/collection/lib/http/data-fetcher/state/LoadStateManager.js +66 -0
  265. package/dist/collection/lib/index.js +14 -0
  266. package/dist/collection/lib/licenses/sankhyalicense.module.js +1 -0
  267. package/dist/collection/lib/message/SnkMessageBuilder.js +163 -0
  268. package/dist/collection/lib/message/resources/crud-utils.msg.js +4 -0
  269. package/dist/collection/lib/message/resources/file-viewer.msg.js +10 -0
  270. package/dist/collection/lib/message/resources/snk-actions-button.msg.js +27 -0
  271. package/dist/collection/lib/message/resources/snk-attach.msg.js +27 -0
  272. package/dist/collection/lib/message/resources/snk-configurator.msg.js +8 -0
  273. package/dist/collection/lib/message/resources/snk-crud.msg.js +10 -0
  274. package/dist/collection/lib/message/resources/snk-data-exporter.msg.js +32 -0
  275. package/dist/collection/lib/message/resources/snk-data-unit.msg.js +31 -0
  276. package/dist/collection/lib/message/resources/snk-entity-list.msg.js +3 -0
  277. package/dist/collection/lib/message/resources/snk-exporter.msg.js +21 -0
  278. package/dist/collection/lib/message/resources/snk-filter-bar.msg.js +58 -0
  279. package/dist/collection/lib/message/resources/snk-filter-field-search.msg.js +7 -0
  280. package/dist/collection/lib/message/resources/snk-filter-param-config.msg.js +18 -0
  281. package/dist/collection/lib/message/resources/snk-form.msg.js +62 -0
  282. package/dist/collection/lib/message/resources/snk-grid.msg.js +26 -0
  283. package/dist/collection/lib/message/resources/snk-personalized-filter.msg.js +83 -0
  284. package/dist/collection/lib/message/resources/snk-print-selector.msg.js +23 -0
  285. package/dist/collection/lib/message/resources/snk-simple-bar.msg.js +3 -0
  286. package/dist/collection/lib/message/resources/snk-taskbar.msg.js +18 -0
  287. package/dist/collection/lib/resourceid/ResourceIDUtils.js +7 -0
  288. package/dist/collection/lib/store/index.js +6 -0
  289. package/dist/collection/lib/utils/CrudUtils.js +73 -0
  290. package/dist/collection/lib/utils/PrintUtils.js +210 -0
  291. package/dist/collection/lib/utils/constants.js +102 -0
  292. package/dist/collection/lib/utils/fileViewer/index.js +11 -0
  293. package/dist/collection/lib/utils/fileViewer/interfaces/IFileViewerParams.js +1 -0
  294. package/dist/collection/lib/utils/pesquisa.js +16 -0
  295. package/dist/collection/lib/utils/urlutils.js +54 -0
  296. package/dist/collection/lib/workspace/workspace.js +19 -0
  297. package/dist/components/AuthorizationConfig.js +7 -0
  298. package/dist/components/ConfigStorage.js +419 -0
  299. package/dist/components/DataFetcher.js +6981 -0
  300. package/dist/components/ParamType.js +13 -0
  301. package/dist/components/PersonalizedFilterUtils.js +260 -0
  302. package/dist/components/PrintUtils.js +213 -0
  303. package/dist/components/ResourceIDUtils.js +10 -0
  304. package/dist/components/SnkFormConfigManager.js +132 -0
  305. package/dist/components/SnkMessageBuilder.js +629 -0
  306. package/dist/components/SnkMultiSelectionListDataSource.js +78 -0
  307. package/dist/components/_commonjsHelpers.js +17 -0
  308. package/dist/components/auth-fetcher.js +32 -0
  309. package/dist/components/constants.js +90 -0
  310. package/dist/components/dataunit-fetcher.js +354 -0
  311. package/dist/components/filter-item-type.enum.js +15 -0
  312. package/dist/components/form-config-fetcher.js +241 -0
  313. package/dist/components/index.d.ts +80 -0
  314. package/dist/components/index.js +51 -0
  315. package/dist/components/index2.js +33 -0
  316. package/dist/components/index3.js +199 -0
  317. package/dist/components/pesquisa-fetcher.js +165 -0
  318. package/dist/components/presentationMode.js +7 -0
  319. package/dist/components/snk-actions-button.d.ts +11 -0
  320. package/dist/components/snk-actions-button.js +6 -0
  321. package/dist/components/snk-actions-button2.js +732 -0
  322. package/dist/components/snk-actions-form.d.ts +11 -0
  323. package/dist/components/snk-actions-form.js +218 -0
  324. package/dist/components/snk-application.d.ts +11 -0
  325. package/dist/components/snk-application.js +6 -0
  326. package/dist/components/snk-application2.js +1004 -0
  327. package/dist/components/snk-attach.d.ts +11 -0
  328. package/dist/components/snk-attach.js +6 -0
  329. package/dist/components/snk-attach2.js +497 -0
  330. package/dist/components/snk-client-confirm.d.ts +11 -0
  331. package/dist/components/snk-client-confirm.js +71 -0
  332. package/dist/components/snk-config-options.d.ts +11 -0
  333. package/dist/components/snk-config-options.js +6 -0
  334. package/dist/components/snk-config-options2.js +255 -0
  335. package/dist/components/snk-configurator.d.ts +11 -0
  336. package/dist/components/snk-configurator.js +6 -0
  337. package/dist/components/snk-configurator2.js +120 -0
  338. package/dist/components/snk-crud.d.ts +11 -0
  339. package/dist/components/snk-crud.js +410 -0
  340. package/dist/components/snk-data-exporter.d.ts +11 -0
  341. package/dist/components/snk-data-exporter.js +6 -0
  342. package/dist/components/snk-data-exporter2.js +539 -0
  343. package/dist/components/snk-data-unit.d.ts +11 -0
  344. package/dist/components/snk-data-unit.js +6 -0
  345. package/dist/components/snk-data-unit2.js +479 -0
  346. package/dist/components/snk-detail-view.d.ts +11 -0
  347. package/dist/components/snk-detail-view.js +6 -0
  348. package/dist/components/snk-detail-view2.js +943 -0
  349. package/dist/components/snk-entity-list.d.ts +11 -0
  350. package/dist/components/snk-entity-list.js +134 -0
  351. package/dist/components/snk-exporter-email-sender.d.ts +11 -0
  352. package/dist/components/snk-exporter-email-sender.js +6 -0
  353. package/dist/components/snk-exporter-email-sender2.js +149 -0
  354. package/dist/components/snk-expression-group.d.ts +11 -0
  355. package/dist/components/snk-expression-group.js +6 -0
  356. package/dist/components/snk-expression-group2.js +296 -0
  357. package/dist/components/snk-expression-item.d.ts +11 -0
  358. package/dist/components/snk-expression-item.js +6 -0
  359. package/dist/components/snk-expression-item2.js +332 -0
  360. package/dist/components/snk-field-config.d.ts +11 -0
  361. package/dist/components/snk-field-config.js +6 -0
  362. package/dist/components/snk-field-config2.js +76 -0
  363. package/dist/components/snk-filter-advanced-mode.d.ts +11 -0
  364. package/dist/components/snk-filter-advanced-mode.js +6 -0
  365. package/dist/components/snk-filter-advanced-mode2.js +39 -0
  366. package/dist/components/snk-filter-assistent-mode.d.ts +11 -0
  367. package/dist/components/snk-filter-assistent-mode.js +6 -0
  368. package/dist/components/snk-filter-assistent-mode2.js +77 -0
  369. package/dist/components/snk-filter-bar.d.ts +11 -0
  370. package/dist/components/snk-filter-bar.js +6 -0
  371. package/dist/components/snk-filter-bar2.js +583 -0
  372. package/dist/components/snk-filter-binary-select.d.ts +11 -0
  373. package/dist/components/snk-filter-binary-select.js +109 -0
  374. package/dist/components/snk-filter-detail.d.ts +11 -0
  375. package/dist/components/snk-filter-detail.js +6 -0
  376. package/dist/components/snk-filter-detail2.js +182 -0
  377. package/dist/components/snk-filter-field-search.d.ts +11 -0
  378. package/dist/components/snk-filter-field-search.js +6 -0
  379. package/dist/components/snk-filter-field-search2.js +228 -0
  380. package/dist/components/snk-filter-item.d.ts +11 -0
  381. package/dist/components/snk-filter-item.js +6 -0
  382. package/dist/components/snk-filter-item2.js +303 -0
  383. package/dist/components/snk-filter-list.d.ts +11 -0
  384. package/dist/components/snk-filter-list.js +176 -0
  385. package/dist/components/snk-filter-modal-item.d.ts +11 -0
  386. package/dist/components/snk-filter-modal-item.js +6 -0
  387. package/dist/components/snk-filter-modal-item2.js +129 -0
  388. package/dist/components/snk-filter-modal.d.ts +11 -0
  389. package/dist/components/snk-filter-modal.js +242 -0
  390. package/dist/components/snk-filter-multi-select.d.ts +11 -0
  391. package/dist/components/snk-filter-multi-select.js +60 -0
  392. package/dist/components/snk-filter-number.d.ts +11 -0
  393. package/dist/components/snk-filter-number.js +61 -0
  394. package/dist/components/snk-filter-param-config.d.ts +11 -0
  395. package/dist/components/snk-filter-param-config.js +6 -0
  396. package/dist/components/snk-filter-param-config2.js +229 -0
  397. package/dist/components/snk-filter-period.d.ts +11 -0
  398. package/dist/components/snk-filter-period.js +92 -0
  399. package/dist/components/snk-filter-search.d.ts +11 -0
  400. package/dist/components/snk-filter-search.js +71 -0
  401. package/dist/components/snk-filter-text.d.ts +11 -0
  402. package/dist/components/snk-filter-text.js +52 -0
  403. package/dist/components/snk-form-config.d.ts +11 -0
  404. package/dist/components/snk-form-config.js +6 -0
  405. package/dist/components/snk-form-config2.js +1017 -0
  406. package/dist/components/snk-form-summary.d.ts +11 -0
  407. package/dist/components/snk-form-summary.js +6 -0
  408. package/dist/components/snk-form-summary2.js +75 -0
  409. package/dist/components/snk-form-view.d.ts +11 -0
  410. package/dist/components/snk-form-view.js +6 -0
  411. package/dist/components/snk-form-view2.js +134 -0
  412. package/dist/components/snk-form.d.ts +11 -0
  413. package/dist/components/snk-form.js +133 -0
  414. package/dist/components/snk-grid-config.d.ts +11 -0
  415. package/dist/components/snk-grid-config.js +6 -0
  416. package/dist/components/snk-grid-config2.js +501 -0
  417. package/dist/components/snk-grid.d.ts +11 -0
  418. package/dist/components/snk-grid.js +6 -0
  419. package/dist/components/snk-grid2.js +464 -0
  420. package/dist/components/snk-guides-viewer.d.ts +11 -0
  421. package/dist/components/snk-guides-viewer.js +6 -0
  422. package/dist/components/snk-personalized-filter-editor.d.ts +11 -0
  423. package/dist/components/snk-personalized-filter-editor.js +230 -0
  424. package/dist/components/snk-personalized-filter.d.ts +11 -0
  425. package/dist/components/snk-personalized-filter.js +6 -0
  426. package/dist/components/snk-personalized-filter2.js +357 -0
  427. package/dist/components/snk-pesquisa.d.ts +11 -0
  428. package/dist/components/snk-pesquisa.js +6 -0
  429. package/dist/components/snk-pesquisa2.js +340 -0
  430. package/dist/components/snk-print-selector.d.ts +11 -0
  431. package/dist/components/snk-print-selector.js +183 -0
  432. package/dist/components/snk-select-box.d.ts +11 -0
  433. package/dist/components/snk-select-box.js +6 -0
  434. package/dist/components/snk-select-box2.js +38 -0
  435. package/dist/components/snk-simple-bar.d.ts +11 -0
  436. package/dist/components/snk-simple-bar.js +6 -0
  437. package/dist/components/snk-simple-bar2.js +59 -0
  438. package/dist/components/snk-simple-crud.d.ts +11 -0
  439. package/dist/components/snk-simple-crud.js +6 -0
  440. package/dist/components/snk-simple-crud2.js +347 -0
  441. package/dist/components/snk-tab-config.d.ts +11 -0
  442. package/dist/components/snk-tab-config.js +6 -0
  443. package/dist/components/snk-tab-config2.js +7232 -0
  444. package/dist/components/snk-taskbar-custom-elements.d.ts +11 -0
  445. package/dist/components/snk-taskbar-custom-elements.js +35 -0
  446. package/dist/components/snk-taskbar.d.ts +11 -0
  447. package/dist/components/snk-taskbar.js +6 -0
  448. package/dist/components/snk-taskbar2.js +444 -0
  449. package/dist/components/teste-pesquisa.d.ts +11 -0
  450. package/dist/components/teste-pesquisa.js +63 -0
  451. package/dist/esm/AuthorizationConfig-dcbd207a.js +7 -0
  452. package/dist/esm/ConfigStorage-f359573c.js +419 -0
  453. package/dist/esm/DataFetcher-8daff9ad.js +6981 -0
  454. package/dist/esm/ISave-4412b20c.js +8 -0
  455. package/dist/esm/ParamType-d5152b06.js +13 -0
  456. package/dist/esm/PersonalizedFilterUtils-75fb0106.js +218 -0
  457. package/dist/esm/PrintUtils-3e4ff0f5.js +213 -0
  458. package/dist/esm/ResourceIDUtils-a114189a.js +10 -0
  459. package/dist/esm/SnkFormConfigManager-35876bad.js +132 -0
  460. package/dist/esm/SnkMessageBuilder-68c1c25a.js +629 -0
  461. package/dist/esm/SnkMultiSelectionListDataSource-892f37f9.js +32 -0
  462. package/dist/esm/_commonjsHelpers-9943807e.js +17 -0
  463. package/dist/esm/auth-fetcher-299fed55.js +32 -0
  464. package/dist/esm/constants-3644f1b6.js +90 -0
  465. package/dist/esm/dataunit-fetcher-bd8f9572.js +354 -0
  466. package/dist/esm/draggable.bundle-41d56f06.js +6884 -0
  467. package/dist/esm/filter-item-type.enum-5028ed3f.js +15 -0
  468. package/dist/esm/filter-type.enum-a80c1b6b.js +9 -0
  469. package/dist/esm/form-config-fetcher-8ef7be16.js +241 -0
  470. package/dist/esm/index-1564817d.js +33 -0
  471. package/dist/esm/index-620ac460.js +7 -0
  472. package/dist/esm/index-a7d3d3f1.js +2300 -0
  473. package/dist/esm/index-ae591a44.js +44 -0
  474. package/dist/esm/index-bdf75557.js +199 -0
  475. package/dist/esm/index.js +1 -0
  476. package/dist/esm/loader.js +18 -0
  477. package/dist/esm/pesquisa-fetcher-27819123.js +165 -0
  478. package/dist/esm/polyfills/core-js.js +11 -0
  479. package/dist/esm/polyfills/css-shim.js +1 -0
  480. package/dist/esm/polyfills/dom.js +79 -0
  481. package/dist/esm/polyfills/es5-html-element.js +1 -0
  482. package/dist/esm/polyfills/index.js +34 -0
  483. package/dist/esm/polyfills/system.js +6 -0
  484. package/dist/esm/presentationMode-783bbf9d.js +7 -0
  485. package/dist/esm/sankhyablocks.js +18 -0
  486. package/dist/esm/snk-actions-button.entry.js +709 -0
  487. package/dist/esm/snk-actions-form.entry.js +196 -0
  488. package/dist/esm/snk-application.entry.js +943 -0
  489. package/dist/esm/snk-attach.entry.js +443 -0
  490. package/dist/esm/snk-client-confirm.entry.js +48 -0
  491. package/dist/esm/snk-config-options.entry.js +235 -0
  492. package/dist/esm/snk-configurator.entry.js +96 -0
  493. package/dist/esm/snk-crud.entry.js +196 -0
  494. package/dist/esm/snk-data-exporter.entry.js +517 -0
  495. package/dist/esm/snk-data-unit-1715d2f1.js +450 -0
  496. package/dist/esm/snk-data-unit.entry.js +5 -0
  497. package/dist/esm/snk-detail-view.entry.js +269 -0
  498. package/dist/esm/snk-entity-list.entry.js +110 -0
  499. package/dist/esm/snk-exporter-email-sender.entry.js +128 -0
  500. package/dist/esm/snk-expression-group_2.entry.js +540 -0
  501. package/dist/esm/snk-field-config.entry.js +56 -0
  502. package/dist/esm/snk-filter-advanced-mode_2.entry.js +55 -0
  503. package/dist/esm/snk-filter-bar.entry.js +504 -0
  504. package/dist/esm/snk-filter-binary-select.entry.js +87 -0
  505. package/dist/esm/snk-filter-detail.entry.js +165 -0
  506. package/dist/esm/snk-filter-field-search_2.entry.js +403 -0
  507. package/dist/esm/snk-filter-item.entry.js +277 -0
  508. package/dist/esm/snk-filter-list.entry.js +148 -0
  509. package/dist/esm/snk-filter-modal-item.entry.js +109 -0
  510. package/dist/esm/snk-filter-modal.entry.js +213 -0
  511. package/dist/esm/snk-filter-multi-select.entry.js +39 -0
  512. package/dist/esm/snk-filter-number.entry.js +40 -0
  513. package/dist/esm/snk-filter-period.entry.js +69 -0
  514. package/dist/esm/snk-filter-search.entry.js +50 -0
  515. package/dist/esm/snk-filter-text.entry.js +32 -0
  516. package/dist/esm/snk-form-config.entry.js +977 -0
  517. package/dist/esm/snk-form-summary.entry.js +57 -0
  518. package/dist/esm/snk-form-view.entry.js +100 -0
  519. package/dist/esm/snk-form.entry.js +88 -0
  520. package/dist/esm/snk-grid-config.entry.js +480 -0
  521. package/dist/esm/snk-grid.entry.js +329 -0
  522. package/dist/esm/snk-guides-viewer-b0e32a7d.js +343 -0
  523. package/dist/esm/snk-guides-viewer.entry.js +21 -0
  524. package/dist/esm/snk-personalized-filter-editor.entry.js +206 -0
  525. package/dist/esm/snk-personalized-filter.entry.js +299 -0
  526. package/dist/esm/snk-pesquisa.entry.js +320 -0
  527. package/dist/esm/snk-print-selector.entry.js +159 -0
  528. package/dist/esm/snk-select-box.entry.js +21 -0
  529. package/dist/esm/snk-simple-bar.entry.js +41 -0
  530. package/dist/esm/snk-simple-crud.entry.js +292 -0
  531. package/dist/esm/snk-tab-config.entry.js +327 -0
  532. package/dist/esm/snk-taskbar-custom-elements.entry.js +16 -0
  533. package/dist/esm/snk-taskbar.entry.js +283 -0
  534. package/dist/esm/taskbar-elements-0a6b8b95.js +118 -0
  535. package/dist/esm/taskbar-processor-94402e6e.js +47 -0
  536. package/dist/esm/teste-pesquisa.entry.js +33 -0
  537. package/dist/index.cjs.js +1 -0
  538. package/dist/index.js +1 -0
  539. package/dist/sankhyablocks/index.esm.js +0 -0
  540. package/dist/sankhyablocks/p-0885ed3c.entry.js +1 -0
  541. package/dist/sankhyablocks/p-0df2ead8.entry.js +11 -0
  542. package/dist/sankhyablocks/p-112455b1.js +1 -0
  543. package/dist/sankhyablocks/p-118e769b.entry.js +1 -0
  544. package/dist/sankhyablocks/p-1a68fb59.js +1 -0
  545. package/dist/sankhyablocks/p-219f888d.entry.js +1 -0
  546. package/dist/sankhyablocks/p-247a8b36.entry.js +1 -0
  547. package/dist/sankhyablocks/p-25c5428f.entry.js +1 -0
  548. package/dist/sankhyablocks/p-26ad62b9.entry.js +1 -0
  549. package/dist/sankhyablocks/p-26b0ce3e.entry.js +1 -0
  550. package/dist/sankhyablocks/p-324ce41e.entry.js +1 -0
  551. package/dist/sankhyablocks/p-34604220.entry.js +1 -0
  552. package/dist/sankhyablocks/p-4a78e118.js +1 -0
  553. package/dist/sankhyablocks/p-5534e08c.js +1 -0
  554. package/dist/sankhyablocks/p-584d7212.js +1 -0
  555. package/dist/sankhyablocks/p-5c1aacc7.js +1 -0
  556. package/dist/sankhyablocks/p-5d04ae42.entry.js +1 -0
  557. package/dist/sankhyablocks/p-648a7c72.entry.js +1 -0
  558. package/dist/sankhyablocks/p-688dcb4c.js +1 -0
  559. package/dist/sankhyablocks/p-6a38bda5.entry.js +1 -0
  560. package/dist/sankhyablocks/p-6dc031de.js +1 -0
  561. package/dist/sankhyablocks/p-72fc257b.entry.js +1 -0
  562. package/dist/sankhyablocks/p-7bcd2f89.js +56 -0
  563. package/dist/sankhyablocks/p-7bd5aea7.js +1 -0
  564. package/dist/sankhyablocks/p-8014cc25.entry.js +1 -0
  565. package/dist/sankhyablocks/p-838f8234.entry.js +1 -0
  566. package/dist/sankhyablocks/p-88aa931b.entry.js +1 -0
  567. package/dist/sankhyablocks/p-8d884fab.js +1 -0
  568. package/dist/sankhyablocks/p-928efcaa.entry.js +1 -0
  569. package/dist/sankhyablocks/p-933c0c0b.js +1 -0
  570. package/dist/sankhyablocks/p-9531fd46.entry.js +1 -0
  571. package/dist/sankhyablocks/p-959e0835.entry.js +1 -0
  572. package/dist/sankhyablocks/p-96a89d58.entry.js +1 -0
  573. package/dist/sankhyablocks/p-989937ee.entry.js +1 -0
  574. package/dist/sankhyablocks/p-9a270401.entry.js +1 -0
  575. package/dist/sankhyablocks/p-9d3a025a.entry.js +1 -0
  576. package/dist/sankhyablocks/p-9e7d65a4.js +1 -0
  577. package/dist/sankhyablocks/p-a1e1b305.entry.js +1 -0
  578. package/dist/sankhyablocks/p-a7ee0e6f.entry.js +1 -0
  579. package/dist/sankhyablocks/p-ac0556a3.js +1 -0
  580. package/dist/sankhyablocks/p-ac8d1cd6.entry.js +1 -0
  581. package/dist/sankhyablocks/p-ae6aff81.js +1 -0
  582. package/dist/sankhyablocks/p-b13cb8b5.js +6 -0
  583. package/dist/sankhyablocks/p-b244640b.js +1 -0
  584. package/dist/sankhyablocks/p-b6d6b172.js +1 -0
  585. package/dist/sankhyablocks/p-bba91710.entry.js +1 -0
  586. package/dist/sankhyablocks/p-bd628455.entry.js +1 -0
  587. package/dist/sankhyablocks/p-c2beb95c.js +1 -0
  588. package/dist/sankhyablocks/p-c555075c.entry.js +1 -0
  589. package/dist/sankhyablocks/p-c870b530.js +26 -0
  590. package/dist/sankhyablocks/p-c9841939.js +1 -0
  591. package/dist/sankhyablocks/p-cb37982f.entry.js +1 -0
  592. package/dist/sankhyablocks/p-d2d301a6.js +2 -0
  593. package/dist/sankhyablocks/p-d3ec3586.entry.js +1 -0
  594. package/dist/sankhyablocks/p-d4f9ee17.entry.js +1 -0
  595. package/dist/sankhyablocks/p-d708b4ab.entry.js +1 -0
  596. package/dist/sankhyablocks/p-d84bc5c1.js +1 -0
  597. package/dist/sankhyablocks/p-d9804798.js +1 -0
  598. package/dist/sankhyablocks/p-dc36cfbf.js +1 -0
  599. package/dist/sankhyablocks/p-de76b8a8.js +76 -0
  600. package/dist/sankhyablocks/p-e19014a9.entry.js +1 -0
  601. package/dist/sankhyablocks/p-e1cb1f0b.js +1 -0
  602. package/dist/sankhyablocks/p-e3a82e1c.entry.js +1 -0
  603. package/dist/sankhyablocks/p-e9b53a9a.entry.js +1 -0
  604. package/dist/sankhyablocks/p-eaad0aa8.js +1 -0
  605. package/dist/sankhyablocks/p-eb636e15.entry.js +1 -0
  606. package/dist/sankhyablocks/p-ebf8c5df.entry.js +1 -0
  607. package/dist/sankhyablocks/p-ed5f1204.entry.js +1 -0
  608. package/dist/sankhyablocks/p-f30526a7.entry.js +1 -0
  609. package/dist/sankhyablocks/p-f4184ce7.js +1 -0
  610. package/dist/sankhyablocks/p-f9395c20.entry.js +1 -0
  611. package/dist/sankhyablocks/p-f94b999e.entry.js +1 -0
  612. package/dist/sankhyablocks/p-fa9d3f73.js +1 -0
  613. package/dist/sankhyablocks/p-fb1ecd0b.entry.js +1 -0
  614. package/dist/sankhyablocks/p-fcd09423.entry.js +1 -0
  615. package/dist/sankhyablocks/p-fd15aaac.entry.js +1 -0
  616. package/dist/sankhyablocks/p-fe49067d.entry.js +1 -0
  617. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -0
  618. package/dist/types/components/snk-actions-button/actions/enum/ActionsType.d.ts +7 -0
  619. package/dist/types/components/snk-actions-button/actions/enum/ParamType.d.ts +10 -0
  620. package/dist/types/components/snk-actions-button/actions/enum/RefreshType.d.ts +6 -0
  621. package/dist/types/components/snk-actions-button/actions/executor/java.executor.d.ts +6 -0
  622. package/dist/types/components/snk-actions-button/actions/executor/javascript.executor.d.ts +6 -0
  623. package/dist/types/components/snk-actions-button/actions/executor/launch-screen.executor.d.ts +10 -0
  624. package/dist/types/components/snk-actions-button/actions/executor/procedure.executor.d.ts +6 -0
  625. package/dist/types/components/snk-actions-button/actions/factory/executor.factory.d.ts +7 -0
  626. package/dist/types/components/snk-actions-button/actions/index.d.ts +28 -0
  627. package/dist/types/components/snk-actions-button/actions/interfaces/IAction.d.ts +55 -0
  628. package/dist/types/components/snk-actions-button/actions/interfaces/IExecSource.d.ts +17 -0
  629. package/dist/types/components/snk-actions-button/actions/interfaces/IExecuteActions.d.ts +4 -0
  630. package/dist/types/components/snk-actions-button/actions/interfaces/IExecuteActionsProps.d.ts +4 -0
  631. package/dist/types/components/snk-actions-button/actions/interfaces/IResultParam.d.ts +14 -0
  632. package/dist/types/components/snk-actions-button/clientEvent/index.d.ts +4 -0
  633. package/dist/types/components/snk-actions-button/clientEvent/interfaces/IClientEventConfirm.d.ts +35 -0
  634. package/dist/types/components/snk-actions-button/snk-actions-button.d.ts +27 -0
  635. package/dist/types/components/snk-actions-button/subcomponents/snk-actions-form.d.ts +41 -0
  636. package/dist/types/components/snk-actions-button/subcomponents/snk-client-confirm.d.ts +31 -0
  637. package/dist/types/components/snk-application/errorhandler/snk-error-handler.d.ts +9 -0
  638. package/dist/types/components/snk-application/snk-application.d.ts +275 -0
  639. package/dist/types/components/snk-attach/interfaces/index.d.ts +10 -0
  640. package/dist/types/components/snk-attach/snk-attach.d.ts +45 -0
  641. package/dist/types/components/snk-attach/structure/crud-config-builder.d.ts +7 -0
  642. package/dist/types/components/snk-attach/structure/data-unit-builder.d.ts +15 -0
  643. package/dist/types/components/snk-attach/structure/index.d.ts +3 -0
  644. package/dist/types/components/snk-attach/structure/taskbar-builder.d.ts +8 -0
  645. package/dist/types/components/snk-configurator/AuthorizationConfig.d.ts +4 -0
  646. package/dist/types/components/snk-configurator/snk-configurator.d.ts +72 -0
  647. package/dist/types/components/snk-crud/snk-crud.d.ts +120 -0
  648. package/dist/types/components/snk-crud/subcomponents/CardFormResizeObserver.d.ts +1 -0
  649. package/dist/types/components/snk-crud/subcomponents/GuideBuilder.d.ts +11 -0
  650. package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +110 -0
  651. package/dist/types/components/snk-crud/subcomponents/snk-form-summary.d.ts +22 -0
  652. package/dist/types/components/snk-crud/subcomponents/snk-form-view.d.ts +81 -0
  653. package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +138 -0
  654. package/dist/types/components/snk-data-exporter/data/attachment.d.ts +4 -0
  655. package/dist/types/components/snk-data-exporter/data/email.d.ts +7 -0
  656. package/dist/types/components/snk-data-exporter/data/export-config.d.ts +10 -0
  657. package/dist/types/components/snk-data-exporter/data/export-result.d.ts +8 -0
  658. package/dist/types/components/snk-data-exporter/data/report.d.ts +4 -0
  659. package/dist/types/components/snk-data-exporter/exporter-email-sender/email-info-step.d.ts +9 -0
  660. package/dist/types/components/snk-data-exporter/exporter-email-sender/options-step.d.ts +9 -0
  661. package/dist/types/components/snk-data-exporter/exporter-email-sender/snk-exporter-email-sender.d.ts +40 -0
  662. package/dist/types/components/snk-data-exporter/interfaces/IExporterProvider.d.ts +15 -0
  663. package/dist/types/components/snk-data-exporter/interfaces/IRecordID.d.ts +6 -0
  664. package/dist/types/components/snk-data-exporter/interfaces/ISelectedID.d.ts +13 -0
  665. package/dist/types/components/snk-data-exporter/snk-data-exporter.d.ts +52 -0
  666. package/dist/types/components/snk-data-exporter/structure/ItemBuilder.d.ts +61 -0
  667. package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +141 -0
  668. package/dist/types/components/snk-entity-list/snk-entity-list.d.ts +42 -0
  669. package/dist/types/components/snk-filter-bar/filter-item/dataunitfilter/data-unit-filter-builder.d.ts +4 -0
  670. package/dist/types/components/snk-filter-bar/filter-item/editors/enum/presentationMode.d.ts +4 -0
  671. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.d.ts +43 -0
  672. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.d.ts +28 -0
  673. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-number.d.ts +28 -0
  674. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-period.d.ts +47 -0
  675. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-search.d.ts +30 -0
  676. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-text.d.ts +24 -0
  677. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.d.ts +68 -0
  678. package/dist/types/components/snk-filter-bar/filter-item/filter-item-type.enum.d.ts +12 -0
  679. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-detail.d.ts +46 -0
  680. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +80 -0
  681. package/dist/types/components/snk-filter-bar/filter-list/snk-filter-list.d.ts +74 -0
  682. package/dist/types/components/snk-filter-bar/filter-modal/snk-filter-modal.d.ts +56 -0
  683. package/dist/types/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.d.ts +34 -0
  684. package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +83 -0
  685. package/dist/types/components/snk-filter-bar/types/custom-element-filter.d.ts +6 -0
  686. package/dist/types/components/snk-filter-bar/types/filter-type.enum.d.ts +6 -0
  687. package/dist/types/components/snk-filter-bar/utils/SnkFilterModalFactory.d.ts +28 -0
  688. package/dist/types/components/snk-filter-bar/utils/filters-mock.d.ts +263 -0
  689. package/dist/types/components/snk-filter-field-search/interfaces/index.d.ts +39 -0
  690. package/dist/types/components/snk-filter-field-search/snk-filter-field-search.d.ts +68 -0
  691. package/dist/types/components/snk-filter-field-search/subcomponents/index.d.ts +1 -0
  692. package/dist/types/components/snk-filter-field-search/subcomponents/list-item.d.ts +2 -0
  693. package/dist/types/components/snk-form/SnkFormConfigManager.d.ts +24 -0
  694. package/dist/types/components/snk-form/snk-form.d.ts +54 -0
  695. package/dist/types/components/snk-form/subcomponents/snk-config-options/snk-config-options.d.ts +57 -0
  696. package/dist/types/components/snk-form/subcomponents/snk-field-config/snk-field-config.d.ts +43 -0
  697. package/dist/types/components/snk-form/subcomponents/snk-form-config/snk-form-config.d.ts +146 -0
  698. package/dist/types/components/snk-form/subcomponents/snk-tab-config/snk-tab-config.d.ts +105 -0
  699. package/dist/types/components/snk-grid/filtercolumn/SnkMultiSelectionListDataSource.d.ts +12 -0
  700. package/dist/types/components/snk-grid/snk-grid.d.ts +139 -0
  701. package/dist/types/components/snk-grid/subcomponents/snk-grid-config/snk-grid-config.d.ts +78 -0
  702. package/dist/types/components/snk-grid/subcomponents/snk-select-box/snk-select-box.d.ts +13 -0
  703. package/dist/types/components/snk-personalized-filter/interfaces/IExpressionGroup.d.ts +0 -0
  704. package/dist/types/components/snk-personalized-filter/interfaces/IExpressionItem.d.ts +35 -0
  705. package/dist/types/components/snk-personalized-filter/interfaces/IParameter.d.ts +37 -0
  706. package/dist/types/components/snk-personalized-filter/interfaces/IPersonalizedFilter.d.ts +15 -0
  707. package/dist/types/components/snk-personalized-filter/interfaces/ISystemFilterConfig.d.ts +4 -0
  708. package/dist/types/components/snk-personalized-filter/interfaces/IUserFilterConfig.d.ts +5 -0
  709. package/dist/types/components/snk-personalized-filter/interfaces/index.d.ts +35 -0
  710. package/dist/types/components/snk-personalized-filter/snk-personalized-filter.d.ts +70 -0
  711. package/dist/types/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.d.ts +85 -0
  712. package/dist/types/components/snk-personalized-filter/subcomponents/snk-expression-item/filter-operands/filter-operands.d.ts +9 -0
  713. package/dist/types/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.d.ts +68 -0
  714. package/dist/types/components/snk-personalized-filter/subcomponents/snk-filter-advanced-mode/snk-filter-advanced-mode.d.ts +19 -0
  715. package/dist/types/components/snk-personalized-filter/subcomponents/snk-filter-assistent-mode/snk-filter-assistent-mode.d.ts +31 -0
  716. package/dist/types/components/snk-personalized-filter/subcomponents/snk-filter-param-config/snk-filter-param-config.d.ts +52 -0
  717. package/dist/types/components/snk-personalized-filter/subcomponents/snk-filter-param-config/utils/PersonalizedFilterUtils.d.ts +27 -0
  718. package/dist/types/components/snk-pesquisa/snk-pesquisa.d.ts +61 -0
  719. package/dist/types/components/snk-print-selector/snk-print-selector.d.ts +46 -0
  720. package/dist/types/components/snk-simple-bar/snk-simple-bar.d.ts +37 -0
  721. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +84 -0
  722. package/dist/types/components/snk-taskbar/elements/taskbar-elements.d.ts +33 -0
  723. package/dist/types/components/snk-taskbar/processor/taskbar-processor.d.ts +12 -0
  724. package/dist/types/components/snk-taskbar/snk-taskbar-custom-elements.d.ts +7 -0
  725. package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +133 -0
  726. package/dist/types/components/teste-pesquisa/teste-pesquisa.d.ts +6 -0
  727. package/dist/types/components.d.ts +3257 -0
  728. package/dist/types/global.d.ts +9 -0
  729. package/dist/types/index.d.ts +1 -0
  730. package/dist/types/lib/@types/index.d.ts +27 -0
  731. package/dist/types/lib/applet-caller/applet-caller.d.ts +9 -0
  732. package/dist/types/lib/configs/ConfigStorage.d.ts +25 -0
  733. package/dist/types/lib/dataUnit/InMemoryLoader.d.ts +18 -0
  734. package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +73 -0
  735. package/dist/types/lib/http/data-fetcher/fetchers/application-config-fetcher.d.ts +6 -0
  736. package/dist/types/lib/http/data-fetcher/fetchers/attach-fetcher.d.ts +14 -0
  737. package/dist/types/lib/http/data-fetcher/fetchers/auth-fetcher.d.ts +17 -0
  738. package/dist/types/lib/http/data-fetcher/fetchers/dataunit-fetcher.d.ts +16 -0
  739. package/dist/types/lib/http/data-fetcher/fetchers/fecthAttach/interfaces/IDelete.d.ts +9 -0
  740. package/dist/types/lib/http/data-fetcher/fetchers/fecthAttach/interfaces/IDownloadKey.d.ts +13 -0
  741. package/dist/types/lib/http/data-fetcher/fetchers/fecthAttach/interfaces/ISave.d.ts +26 -0
  742. package/dist/types/lib/http/data-fetcher/fetchers/fecthAttach/interfaces/index.d.ts +3 -0
  743. package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/index.d.ts +3 -0
  744. package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IExporterColumnMetadata.d.ts +9 -0
  745. package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterParams.d.ts +29 -0
  746. package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterResponse.d.ts +8 -0
  747. package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IPersonalizedReport.d.ts +4 -0
  748. package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/permission-export-pdf.d.ts +1 -0
  749. package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/personalized-reports-fetcher.d.ts +4 -0
  750. package/dist/types/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.d.ts +10 -0
  751. package/dist/types/lib/http/data-fetcher/fetchers/form-config-fetcher.d.ts +26 -0
  752. package/dist/types/lib/http/data-fetcher/fetchers/grid-config-fetcher.d.ts +8 -0
  753. package/dist/types/lib/http/data-fetcher/fetchers/parameters-fecher.d.ts +13 -0
  754. package/dist/types/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.d.ts +13 -0
  755. package/dist/types/lib/http/data-fetcher/fetchers/pesquisa-fetcher.d.ts +42 -0
  756. package/dist/types/lib/http/data-fetcher/fetchers/resource-fetcher.d.ts +12 -0
  757. package/dist/types/lib/http/data-fetcher/fetchers/totals-fetcher.d.ts +9 -0
  758. package/dist/types/lib/http/data-fetcher/interfaces/IClientEventResponse.d.ts +4 -0
  759. package/dist/types/lib/http/data-fetcher/recaller/GraphQLRecaller.d.ts +10 -0
  760. package/dist/types/lib/http/data-fetcher/recaller/IDataFetcherRecaller.d.ts +3 -0
  761. package/dist/types/lib/http/data-fetcher/recaller/ServiceBrokerRecaller.d.ts +9 -0
  762. package/dist/types/lib/http/data-fetcher/state/LoadStateManager.d.ts +23 -0
  763. package/dist/types/lib/index.d.ts +15 -0
  764. package/dist/types/lib/message/SnkMessageBuilder.d.ts +45 -0
  765. package/dist/types/lib/message/resources/crud-utils.msg.d.ts +2 -0
  766. package/dist/types/lib/message/resources/file-viewer.msg.d.ts +2 -0
  767. package/dist/types/lib/message/resources/snk-actions-button.msg.d.ts +1 -0
  768. package/dist/types/lib/message/resources/snk-attach.msg.d.ts +2 -0
  769. package/dist/types/lib/message/resources/snk-configurator.msg.d.ts +1 -0
  770. package/dist/types/lib/message/resources/snk-crud.msg.d.ts +2 -0
  771. package/dist/types/lib/message/resources/snk-data-exporter.msg.d.ts +1 -0
  772. package/dist/types/lib/message/resources/snk-data-unit.msg.d.ts +2 -0
  773. package/dist/types/lib/message/resources/snk-entity-list.msg.d.ts +1 -0
  774. package/dist/types/lib/message/resources/snk-exporter.msg.d.ts +2 -0
  775. package/dist/types/lib/message/resources/snk-filter-bar.msg.d.ts +2 -0
  776. package/dist/types/lib/message/resources/snk-filter-field-search.msg.d.ts +1 -0
  777. package/dist/types/lib/message/resources/snk-filter-param-config.msg.d.ts +1 -0
  778. package/dist/types/lib/message/resources/snk-form.msg.d.ts +4 -0
  779. package/dist/types/lib/message/resources/snk-grid.msg.d.ts +2 -0
  780. package/dist/types/lib/message/resources/snk-personalized-filter.msg.d.ts +1 -0
  781. package/dist/types/lib/message/resources/snk-print-selector.msg.d.ts +1 -0
  782. package/dist/types/lib/message/resources/snk-simple-bar.msg.d.ts +1 -0
  783. package/dist/types/lib/message/resources/snk-taskbar.msg.d.ts +2 -0
  784. package/dist/types/lib/resourceid/ResourceIDUtils.d.ts +3 -0
  785. package/dist/types/lib/store/index.d.ts +5 -0
  786. package/dist/types/lib/utils/CrudUtils.d.ts +6 -0
  787. package/dist/types/lib/utils/PrintUtils.d.ts +55 -0
  788. package/dist/types/lib/utils/constants.d.ts +103 -0
  789. package/dist/types/lib/utils/fileViewer/index.d.ts +2 -0
  790. package/dist/types/lib/utils/fileViewer/interfaces/IFileViewerParams.d.ts +4 -0
  791. package/dist/types/lib/utils/pesquisa.d.ts +3 -0
  792. package/dist/types/lib/utils/urlutils.d.ts +18 -0
  793. package/dist/types/lib/workspace/workspace.d.ts +5 -0
  794. package/dist/types/stencil-public-runtime.d.ts +1637 -0
  795. package/loader/cdn.js +3 -0
  796. package/loader/index.cjs.js +3 -0
  797. package/loader/index.d.ts +21 -0
  798. package/loader/index.es2017.js +3 -0
  799. package/loader/index.js +4 -0
  800. package/loader/package.json +11 -0
  801. package/package.json +71 -0
  802. package/react/.keepfolder +1 -0
  803. package/react/components.d.ts +52 -0
  804. package/react/components.js +55 -0
  805. package/react/components.js.map +1 -0
  806. package/react/react-component-lib/createComponent.d.ts +10 -0
  807. package/react/react-component-lib/createComponent.js +59 -0
  808. package/react/react-component-lib/createComponent.js.map +1 -0
  809. package/react/react-component-lib/createOverlayComponent.d.ts +20 -0
  810. package/react/react-component-lib/createOverlayComponent.js +89 -0
  811. package/react/react-component-lib/createOverlayComponent.js.map +1 -0
  812. package/react/react-component-lib/index.d.ts +2 -0
  813. package/react/react-component-lib/index.js +3 -0
  814. package/react/react-component-lib/index.js.map +1 -0
  815. package/react/react-component-lib/interfaces.d.ts +29 -0
  816. package/react/react-component-lib/interfaces.js +2 -0
  817. package/react/react-component-lib/interfaces.js.map +1 -0
  818. package/react/react-component-lib/utils/attachProps.d.ts +12 -0
  819. package/react/react-component-lib/utils/attachProps.js +96 -0
  820. package/react/react-component-lib/utils/attachProps.js.map +1 -0
  821. package/react/react-component-lib/utils/case.d.ts +2 -0
  822. package/react/react-component-lib/utils/case.js +7 -0
  823. package/react/react-component-lib/utils/case.js.map +1 -0
  824. package/react/react-component-lib/utils/dev.d.ts +2 -0
  825. package/react/react-component-lib/utils/dev.js +13 -0
  826. package/react/react-component-lib/utils/dev.js.map +1 -0
  827. package/react/react-component-lib/utils/index.d.ts +7 -0
  828. package/react/react-component-lib/utils/index.js +21 -0
  829. package/react/react-component-lib/utils/index.js.map +1 -0
@@ -0,0 +1,2055 @@
1
+ import { h } from "@stencil/core";
2
+ import { DataType, ErrorTracking, DependencyType, ApplicationContext, ElementIDUtils, OnboardingUtils } from "@sankhyalabs/core";
3
+ import { DataFetcher } from "../../lib/http/data-fetcher/DataFetcher";
4
+ import { ApplicationUtils } from "@sankhyalabs/ezui/dist/collection/utils";
5
+ import { SnkErrorHandler } from "./errorhandler/snk-error-handler";
6
+ import { PesquisaFetcher } from "../../lib/http/data-fetcher/fetchers/pesquisa-fetcher";
7
+ import { agGridLicense } from '../../lib/licenses/sankhyalicense.module';
8
+ import { TotalsFetcher } from "../../lib/http/data-fetcher/fetchers/totals-fetcher";
9
+ import { ConfigStorage } from "../../lib/configs/ConfigStorage";
10
+ import DataUnitFetcher from "../../lib/http/data-fetcher/fetchers/dataunit-fetcher";
11
+ import UrlUtils from "../../lib/utils/urlutils";
12
+ import Workspace from "../../lib/workspace/workspace";
13
+ import AppletCaller from "../../lib/applet-caller/applet-caller";
14
+ import ParametersFetcher from "../../lib/http/data-fetcher/fetchers/parameters-fecher";
15
+ import MGEAuthorization from '../../lib/auth/mgeauthorization.module';
16
+ import AuthFetcher, { AutorizationType } from "../../lib/http/data-fetcher/fetchers/auth-fetcher";
17
+ import { SnkMessageBuilder } from "../../lib/message/SnkMessageBuilder";
18
+ /**
19
+ * É possível customizar as mensagens dos blocos de construção através de um pequeno modulo na estrutura da aplicação:
20
+ * - Criar um arquivo no seguinte caminho: /messages/appmessages.msg.js.
21
+ * Para conhecer os detalhes do módulo, vide os arquivos neste projeto "/src/lib/message/resources/*.msg.ts"
22
+ */
23
+ export class SnkApplication {
24
+ constructor() {
25
+ this._authPromises = [];
26
+ this._duCache = new Map();
27
+ this._duPromises = new Map();
28
+ this._requestListener = new RequestListenerLoadingBar();
29
+ this.messagesBuilder = undefined;
30
+ this.configName = undefined;
31
+ }
32
+ get parameters() {
33
+ if (!this._parameters) {
34
+ this._parameters = new ParametersFetcher();
35
+ }
36
+ return this._parameters;
37
+ }
38
+ async getAuth(resourceID) {
39
+ if (resourceID == undefined) {
40
+ return this.getApplicationAuth();
41
+ }
42
+ else {
43
+ return new Promise((resolve, reject) => {
44
+ this.authFetcher.getData(resourceID).then((authList) => {
45
+ resolve(authList);
46
+ }).catch(error => {
47
+ reject(error);
48
+ });
49
+ });
50
+ }
51
+ }
52
+ async getApplicationAuth() {
53
+ if (this._auth) {
54
+ return Promise.resolve(this._auth);
55
+ }
56
+ else {
57
+ return new Promise((resolve, reject) => {
58
+ const waitingAuth = this._authPromises.length > 0;
59
+ this._authPromises.push(new PendingPromise(resolve, reject));
60
+ if (!waitingAuth) {
61
+ this.authFetcher.getData(this.applicationResourceID).then((authList) => {
62
+ this._auth = authList;
63
+ while (this._authPromises.length > 0) {
64
+ this._authPromises.pop().resolve(this._auth);
65
+ }
66
+ }).catch(error => {
67
+ while (this._authPromises.length > 0) {
68
+ this._authPromises.pop().reject(error);
69
+ }
70
+ });
71
+ }
72
+ });
73
+ }
74
+ }
75
+ /**
76
+ * Obtém `true` caso o usuário logado seja o SUP.
77
+ */
78
+ async isUserSup() {
79
+ return new Promise((resolve, reject) => {
80
+ this.getAuth().then((authorization) => {
81
+ this.getAuthList(authorization).then((auths) => {
82
+ resolve(auths.isSup);
83
+ }).catch(error => reject(error));
84
+ });
85
+ });
86
+ }
87
+ /**
88
+ * Realiza a chamada ao Service Broker conforme o nome do serviço.
89
+ *
90
+ * @param serviceName - Nome do serviço
91
+ * @param payload - Dados que serão processados na ação
92
+ * @param options - Parâmetros de URL
93
+ */
94
+ async callServiceBroker(serviceName, payload, options) {
95
+ return DataFetcher.get().callServiceBroker(serviceName, payload, options);
96
+ }
97
+ initOnboarding(onboardingKey) {
98
+ OnboardingUtils.getInstance().init(onboardingKey, window.envContext);
99
+ return Promise.resolve();
100
+ }
101
+ /**
102
+ * Obtém `true` caso o usuário logado tem permissão pra determinada ação.
103
+ */
104
+ async hasAccess(access, resourceID) {
105
+ return new Promise((resolve, reject) => {
106
+ this.getAuth(resourceID).then((authorization) => {
107
+ this.getAuthList(authorization).then((auths) => {
108
+ resolve(auths.isSup || auths.actions[access]);
109
+ }).catch(error => reject(error));
110
+ });
111
+ });
112
+ }
113
+ /**
114
+ * Obtém todos os acessos do usuário logado.
115
+ */
116
+ async getAllAccess(resourceID) {
117
+ return new Promise((resolve, reject) => {
118
+ this.getAuth(resourceID).then((authorization) => {
119
+ this.getAuthList(authorization).then((auths) => {
120
+ const allAccess = {};
121
+ allAccess['isSup'] = auths.isSup;
122
+ Object.entries(AutorizationType).forEach((data) => {
123
+ allAccess[data[0]] = auths.actions[data[1]] || false;
124
+ });
125
+ resolve(allAccess);
126
+ }).catch(error => reject(error));
127
+ });
128
+ });
129
+ }
130
+ /**
131
+ * Obtém o valor de um parâmetro do tipo string.
132
+ */
133
+ async getStringParam(name) {
134
+ return this.parameters.asString(name);
135
+ }
136
+ /**
137
+ * Obtém o valor de um parâmetro do tipo Inteiro.
138
+ */
139
+ async getIntParam(name) {
140
+ return this.parameters.asInteger(name);
141
+ }
142
+ /**
143
+ * Obtém o valor de um parâmetro do tipo Decimal.
144
+ */
145
+ async getFloatParam(name) {
146
+ return this.parameters.asFloat(name);
147
+ }
148
+ /**
149
+ * Obtém o valor de um parâmetro do tipo booleano.
150
+ */
151
+ async getBooleanParam(name) {
152
+ return this.parameters.asBoolean(name);
153
+ }
154
+ /**
155
+ * Obtém o valor de um parâmetro do tipo data.
156
+ */
157
+ async getDateParam(name) {
158
+ return this.parameters.asDate(name);
159
+ }
160
+ /**
161
+ * Exibe o conteúdo passado em um Popup.
162
+ */
163
+ async showPopUp(content, size = "full", useHeader = true) {
164
+ this.clearContent(this._popUp);
165
+ this._popUp.appendChild(content);
166
+ this._popUp.opened = true;
167
+ this._popUp.heightMode = size;
168
+ this._popUp.useHeader = useHeader;
169
+ if (content.tagName === 'EZ-MODAL-CONTAINER') {
170
+ this._popUp.useHeader = false;
171
+ }
172
+ }
173
+ /**
174
+ * Exibe o conteúdo passado em um Modal.
175
+ */
176
+ async showModal(content) {
177
+ this.clearContent(this._rightModal);
178
+ this._rightModal.appendChild(content);
179
+ this._rightModal.opened = true;
180
+ }
181
+ /**
182
+ * Fecha o Modal e limpa o conteúdo.
183
+ */
184
+ async closeModal() {
185
+ this.clearContent(this._rightModal);
186
+ this._rightModal.opened = false;
187
+ }
188
+ /**
189
+ * Fecha o Popup e limpa o conteúdo.
190
+ */
191
+ async closePopUp() {
192
+ this.clearContent(this._popUp);
193
+ this._popUp.opened = false;
194
+ this._popUp.useHeader = true;
195
+ this._popUp.heightMode = "full";
196
+ }
197
+ /**
198
+ * Verifica se a licença do cliente tem determinado opcional (produto)
199
+ */
200
+ async temOpcional(opcional) {
201
+ const opts = opcional.split(",");
202
+ return new Promise((resolve, reject) => {
203
+ this.getAttributeFromHTMLWrapper("opc0009")
204
+ .then(value => {
205
+ if (value === "1") {
206
+ resolve(true);
207
+ }
208
+ else {
209
+ Promise.all(opts.map(opt => this.getAttributeFromHTMLWrapper("opc" + opt)))
210
+ .then(result => {
211
+ resolve(result.includes("1"));
212
+ })
213
+ .catch(error => {
214
+ reject(error);
215
+ });
216
+ }
217
+ })
218
+ .catch(error => {
219
+ reject(error);
220
+ });
221
+ });
222
+ }
223
+ /**
224
+ * Obtém a configuração de um recurso por service broker
225
+ */
226
+ async getConfig(key) {
227
+ let payload = {
228
+ "serviceName": "SystemUtilsSP.getConf",
229
+ "requestBody": {
230
+ "config": {
231
+ "chave": key,
232
+ "tipo": "T"
233
+ }
234
+ }
235
+ };
236
+ return new Promise((resolve, reject) => {
237
+ DataFetcher.get()
238
+ .callServiceBroker("SystemUtilsSP.getConf", JSON.stringify(payload))
239
+ .then(result => { var _a; return resolve((_a = result.config) === null || _a === void 0 ? void 0 : _a.data); })
240
+ .catch(error => reject(error));
241
+ });
242
+ }
243
+ /**
244
+ * Salva a configuração de determinado recurso.
245
+ */
246
+ async saveConfig(key, data) {
247
+ let payload = {
248
+ "serviceName": "SystemUtilsSP.saveConf",
249
+ "requestBody": {
250
+ "config": {
251
+ "chave": key,
252
+ "tipo": "T",
253
+ data
254
+ }
255
+ }
256
+ };
257
+ return new Promise((resolve, reject) => {
258
+ DataFetcher.get()
259
+ .callServiceBroker("SystemUtilsSP.saveConf", JSON.stringify(payload))
260
+ .then(result => resolve(result))
261
+ .catch(error => reject(error));
262
+ });
263
+ }
264
+ /**
265
+ * Acessa informações de contexto "empurrados" na abertura da tela.
266
+ */
267
+ async getAttributeFromHTMLWrapper(attribName) {
268
+ return Promise.resolve(window[attribName]);
269
+ }
270
+ /**
271
+ * Abre determinada tela, repassando pkObject.
272
+ */
273
+ async openApp(resourceId, pkObject) {
274
+ Workspace.openAppActivity(resourceId, pkObject);
275
+ }
276
+ /**
277
+ * Realiza a chamada do WebConnection para realizar a exportação de arquivo.
278
+ * @param keyPort - Chave da porta que será requisitada.
279
+ * @param methodName - Nome do tipo de exportação de arquivo que será realizado.
280
+ * @param params - Parâmetros necessários para realizar a exportação do arquivo.
281
+ */
282
+ async webConnection(keyPort, methodName, params) {
283
+ this.getStringParam(keyPort).then((port) => {
284
+ AppletCaller.webConnectionCaller(port, methodName, params);
285
+ });
286
+ }
287
+ getDuPromissesStack(dataUnitName) {
288
+ let stack;
289
+ if (dataUnitName) {
290
+ stack = this._duPromises.get(dataUnitName);
291
+ if (!stack) {
292
+ stack = [];
293
+ this._duPromises.set(dataUnitName, stack);
294
+ }
295
+ }
296
+ return stack || [];
297
+ }
298
+ /**
299
+ * Cria o DataUnit a partir do nome da entidade. É possível armazená-lo no cache
300
+ * passando o dataUnitName, assim, se mais de uma chamada for feita, o mesmo DataUnit será usado.
301
+ */
302
+ async createDataunit(entityName, dataUnitName, parentDataUnit, configName, resourceID) {
303
+ if (resourceID == undefined) {
304
+ resourceID = this.applicationResourceID;
305
+ }
306
+ return new Promise((resolve, reject) => {
307
+ const duPromisses = this.getDuPromissesStack(dataUnitName);
308
+ const waitingDu = duPromisses.length > 0;
309
+ duPromisses.push(new PendingPromise(resolve, reject));
310
+ if (!waitingDu) {
311
+ const dataUnit = this.dataUnitFetcher.getDataUnit(entityName, resourceID, parentDataUnit, configName);
312
+ dataUnit.loadMetadata().then(() => {
313
+ if (dataUnitName) {
314
+ this.updateDataunitCache(undefined, dataUnitName, dataUnit);
315
+ }
316
+ while (duPromisses.length > 0) {
317
+ duPromisses.pop().resolve(dataUnit);
318
+ }
319
+ }).catch(reason => {
320
+ while (duPromisses.length > 0) {
321
+ duPromisses.pop().reject(reason);
322
+ }
323
+ });
324
+ }
325
+ });
326
+ }
327
+ /**
328
+ * Atualiza o cache de dataunits da aplicação.
329
+ * @param oldName - Nome do dataunit que está em cache.
330
+ * @param dataUnitName - Nome do dataunit que será armazenado em cache.
331
+ * @param dataUnit - Instancia do Dataunit para ser armazenado em cache.
332
+ */
333
+ async updateDataunitCache(oldName, dataUnitName, dataUnit) {
334
+ if (oldName) {
335
+ this._duCache.delete(oldName);
336
+ }
337
+ this._duCache.set(dataUnitName, dataUnit);
338
+ }
339
+ /**
340
+ * Obtem um DataUnit do cache ou cria um caso ainda não tenha sido criado.
341
+ */
342
+ async getDataUnit(entityName, dataUnitName, parentDataUnit, configName, resourceID) {
343
+ return new Promise((resolve, reject) => {
344
+ const dataUnit = this._duCache.get(dataUnitName);
345
+ if (dataUnit) {
346
+ resolve(dataUnit);
347
+ }
348
+ else {
349
+ this.createDataunit(entityName, dataUnitName, parentDataUnit, configName, resourceID).then(dataUnit => {
350
+ resolve(dataUnit);
351
+ }).catch(reason => reject(reason));
352
+ }
353
+ });
354
+ }
355
+ /**
356
+ * Registra um client event para o DataFetcher da aplicação.
357
+ *
358
+ * @param eventID - Nome do evento para a aplicação se registrar.
359
+ * @param handler - Função de callback que será chamada quando o client event ocorrer.
360
+ */
361
+ async addClientEvent(eventID, handler) {
362
+ return new Promise((resolve) => {
363
+ DataFetcher.addClientEvent(eventID, handler);
364
+ resolve();
365
+ });
366
+ }
367
+ /**
368
+ * Remove um client event para o DataFetcher da aplicação.
369
+ *
370
+ * @param eventID - Nome do evento a ser removido.
371
+ */
372
+ async removeClientEvent(eventID) {
373
+ return new Promise((resolve) => {
374
+ DataFetcher.removeClientEvent(eventID);
375
+ resolve();
376
+ });
377
+ }
378
+ /**
379
+ * Verfica se um client event está registrado no DataFetcher da aplicação.
380
+ *
381
+ * @param eventID - Nome do evento a ser verificado.
382
+ */
383
+ async hasClientEvent(eventID) {
384
+ return new Promise((resolve) => {
385
+ resolve(DataFetcher.hasClientEvent(eventID));
386
+ });
387
+ }
388
+ /**
389
+ * Realiza a chamada ao Service Broker conforme o nome do serviço.
390
+ *
391
+ * @param serviceName - Nome do serviço
392
+ * @param payload - Dados que serão processados na ação
393
+ * @param options - Parâmetros de URL
394
+ */
395
+ async callServiceBroker(serviceName, payload, options) {
396
+ return DataFetcher.get().callServiceBroker(serviceName, payload, options);
397
+ }
398
+ get applicationResourceID() {
399
+ if (!this._applicationResourceID) {
400
+ this._applicationResourceID = this.urlParams.get("workspaceResourceID") ||
401
+ this.urlParams.get("resourceID") ||
402
+ Workspace.resourceID ||
403
+ "unknown.resource.id";
404
+ }
405
+ return this._applicationResourceID;
406
+ }
407
+ /**
408
+ * Obtém o resourceID da tela em questão.
409
+ */
410
+ async getResourceID() {
411
+ return Promise.resolve(this.applicationResourceID);
412
+ }
413
+ /**
414
+ * Obtém o UserId da tela em questão.
415
+ */
416
+ async getUserID() {
417
+ return Promise.resolve(window["UID"]);
418
+ }
419
+ /**
420
+ * Exibe o diálogo de alerta de acordo com os parâmetros passados.
421
+ */
422
+ async alert(title, message, icon, options) {
423
+ return ApplicationUtils.alert(title, message, icon, options);
424
+ }
425
+ /**
426
+ * Exibe o diálogo de erro de acordo com os parâmetros passados.
427
+ */
428
+ async error(title, message, icon, options) {
429
+ return ApplicationUtils.error(title, message, icon, options);
430
+ }
431
+ /**
432
+ * Exibe o diálogo de sucesso de acordo com os parâmetros passados.
433
+ */
434
+ async success(title, message, icon, options) {
435
+ return ApplicationUtils.success(title, message, icon, options);
436
+ }
437
+ /**
438
+ * Exibe um diálogo de mensagem comum
439
+ */
440
+ async message(title, message, icon, options) {
441
+ return ApplicationUtils.message(title, message, icon, options);
442
+ }
443
+ /**
444
+ * Exibe um diálogo de confirmação
445
+ */
446
+ async confirm(title, message, icon, dialogType, options) {
447
+ return ApplicationUtils.confirm(title, message, icon, dialogType, options);
448
+ }
449
+ /**
450
+ * Exibe uma informação efêmera (de segundo plano).
451
+ */
452
+ async info(message, options) {
453
+ return ApplicationUtils.info(message, options);
454
+ }
455
+ /**
456
+ * Obtém os totalizadores da grade.
457
+ */
458
+ async loadTotals(name, resourceID, filters) {
459
+ return this.totalsFetcher.fetchTotals(name, resourceID, filters);
460
+ }
461
+ async getAuthList(auth) {
462
+ return await (new MGEAuthorization()).parseFromJSON(auth);
463
+ }
464
+ get urlParams() {
465
+ if (!this._urlParams) {
466
+ this._urlParams = UrlUtils.getQueryParams(location.search);
467
+ }
468
+ return this._urlParams;
469
+ }
470
+ get dataUnitFetcher() {
471
+ if (!this._dataUnitFetcher) {
472
+ this._dataUnitFetcher = new DataUnitFetcher();
473
+ }
474
+ return this._dataUnitFetcher;
475
+ }
476
+ get totalsFetcher() {
477
+ if (!this._totalsFetcher) {
478
+ this._totalsFetcher = new TotalsFetcher();
479
+ }
480
+ return this._totalsFetcher;
481
+ }
482
+ get pesquisaFetcher() {
483
+ if (!this._pesquisaFetcher) {
484
+ this._pesquisaFetcher = new PesquisaFetcher();
485
+ }
486
+ return this._pesquisaFetcher;
487
+ }
488
+ get authFetcher() {
489
+ if (!this._authFetcher) {
490
+ this._authFetcher = new AuthFetcher();
491
+ }
492
+ return this._authFetcher;
493
+ }
494
+ /**
495
+ * Obtém as opções em componentes de pesquisa
496
+ * Ex.: snk-config-options
497
+ */
498
+ async executeSearch(searchArgument, fieldName, dataUnit) {
499
+ const descriptor = dataUnit === null || dataUnit === void 0 ? void 0 : dataUnit.getField(fieldName);
500
+ if (!descriptor) {
501
+ //TODO: Implementar mensagem de erro
502
+ }
503
+ else {
504
+ const { mode, argument } = searchArgument;
505
+ const { ENTITYNAME, CODEFIELD, DESCRIPTIONFIELD, ROOTENTITY, DESCRIPTIONENTITY } = descriptor.properties;
506
+ const dependencies = descriptor.dependencies;
507
+ let criteria;
508
+ const searchOptions = {
509
+ rootEntity: ROOTENTITY,
510
+ descriptionFieldName: DESCRIPTIONFIELD,
511
+ codeFieldName: CODEFIELD,
512
+ showInactives: false,
513
+ dataUnitId: dataUnit.dataUnitId
514
+ };
515
+ dependencies === null || dependencies === void 0 ? void 0 : dependencies.filter(dep => dep.masterFields).forEach(dependency => {
516
+ var _a;
517
+ if (dependency.type === DependencyType.SEARCHING) {
518
+ if (((_a = dependency.masterFields) === null || _a === void 0 ? void 0 : _a.length) > 0) {
519
+ criteria = {
520
+ expression: dependency.expression,
521
+ params: dependency.masterFields.map(fieldName => {
522
+ const masterDescriptor = dataUnit.getField(fieldName);
523
+ const dataType = (masterDescriptor === null || masterDescriptor === void 0 ? void 0 : masterDescriptor.dataType) || DataType.TEXT;
524
+ const value = dataUnit.getFieldValue(fieldName);
525
+ if (value == undefined) {
526
+ this.alert("Erro ao pesquisar", `É necessario informar o campo ${masterDescriptor.label} para executar a pesquisa.`);
527
+ throw new Error(`É necessario informar o campo ${masterDescriptor.label} para executar a pesquisa.`);
528
+ }
529
+ return { name: fieldName, value, dataType };
530
+ })
531
+ };
532
+ }
533
+ }
534
+ });
535
+ return this.executePreparedSearch(mode, argument, { entity: ENTITYNAME, entityDescription: DESCRIPTIONENTITY, criteria, searchOptions });
536
+ }
537
+ }
538
+ /**
539
+ * Obtém as opções em componentes de pesquisa
540
+ * Ex.: snk-config-options
541
+ */
542
+ async executePreparedSearch(mode, argument, options) {
543
+ const { entity, entityDescription, criteria, searchOptions } = options;
544
+ if (mode === "ADVANCED") {
545
+ return new Promise(accept => {
546
+ const pesquisaContent = document.createElement("snk-pesquisa");
547
+ pesquisaContent[ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME] = `entity_${entity}`;
548
+ pesquisaContent.argument = argument;
549
+ pesquisaContent.searchLoader = (text) => this.pesquisaFetcher.loadAdvancedSearch(entity, text, criteria, searchOptions);
550
+ pesquisaContent.selectItem = (option) => {
551
+ accept(option);
552
+ this.clearPopUpTitle();
553
+ this.closePopUp();
554
+ };
555
+ this.setPopUpTitle(entityDescription);
556
+ this.showPopUp(pesquisaContent);
557
+ });
558
+ }
559
+ else {
560
+ return this.pesquisaFetcher.loadSearchOptions(entity, argument, criteria, searchOptions);
561
+ }
562
+ }
563
+ /**
564
+ * Obtém `true` caso a tela esteja em modo de debug.
565
+ */
566
+ async isDebugMode() {
567
+ return new Promise(accept => {
568
+ accept(window['isDebugMode']);
569
+ });
570
+ }
571
+ /**
572
+ * Obtém o nome das telas da aplicação
573
+ */
574
+ async getAppLabel() {
575
+ return Workspace.getAppLabel(this.applicationResourceID);
576
+ }
577
+ /**
578
+ * Adiciona um listener no fetcher de Pesquisa
579
+ */
580
+ addSearchListener(entityName, dataUnit, listener) {
581
+ return new Promise(resolve => {
582
+ const removeListener = this.pesquisaFetcher.addSearchListener(entityName, dataUnit.dataUnitId, listener);
583
+ resolve(removeListener);
584
+ });
585
+ }
586
+ /**
587
+ Realiza o import de um JavaScript que está disponivel dentro da pasta /public da aplicação.
588
+ @param relativePath: Define o caminho relativo para o arquivo JavaScript a ser importado.
589
+ */
590
+ importScript(relativePath) {
591
+ return new Promise((resolve) => {
592
+ this.getApplicationPath().then((appPath) => {
593
+ let paths = [];
594
+ if (!Array.isArray(relativePath)) {
595
+ paths = [relativePath];
596
+ }
597
+ paths.forEach(path => {
598
+ const script = document.createElement('script');
599
+ script.src = `${appPath}/${path}`;
600
+ script.async = true;
601
+ document.body.appendChild(script);
602
+ });
603
+ resolve();
604
+ });
605
+ });
606
+ }
607
+ /**
608
+ Retorna o path relativo da aplicação.
609
+ */
610
+ getApplicationPath() {
611
+ return new Promise((resolve) => {
612
+ if (window['applicationenv'] !== "dev") {
613
+ resolve(`/${window["MGE_MODULE_NAME"]}/labsApps/${window["APPLICATION_NAME"]}/build`);
614
+ }
615
+ resolve('');
616
+ });
617
+ }
618
+ /**
619
+ * Com base em um campo realiza um "select distinct" respeitando os
620
+ * filtros atuais do dataUnit e um critério de filtro para a própria
621
+ * coluna.
622
+ */
623
+ executeSelectDistinct(dataUnit, fieldName, argument) {
624
+ return this.dataUnitFetcher.loadSelectDistinct(dataUnit, fieldName, argument);
625
+ }
626
+ /**
627
+ * Retorna a instancia do DataFetcher utilizado pelo application
628
+ * @returns DataFetcher do application
629
+ */
630
+ getDataFetcher() {
631
+ return Promise.resolve(DataFetcher.get());
632
+ }
633
+ clearContent(container) {
634
+ if (container) {
635
+ Array.from(container.children).forEach(child => {
636
+ container.removeChild(child);
637
+ });
638
+ }
639
+ }
640
+ clearPopUpTitle() {
641
+ this._popUp.ezTitle = "";
642
+ }
643
+ setPopUpTitle(title) {
644
+ this._popUp.ezTitle = title;
645
+ }
646
+ componentWillLoad() {
647
+ ApplicationContext.setContextValue("__SNK__APPLICATION__LOADING__", true);
648
+ this._errorHandler = new SnkErrorHandler(this);
649
+ this.messagesBuilder = new SnkMessageBuilder();
650
+ ApplicationContext.setContextValue("__EZUI__UPLOAD__ADD__URL__", `${UrlUtils.getUrlBase()}/mge/upload/file`);
651
+ ApplicationContext.setContextValue("__EZUI__SEARCH__OPTION__LOADER__", (searchArgument, fieldName, dataUnit) => {
652
+ return this.executeSearch(searchArgument, fieldName, dataUnit);
653
+ });
654
+ ApplicationContext.setContextValue("__EZUI__GRID_LICENSE__", agGridLicense);
655
+ ErrorTracking.init();
656
+ ConfigStorage.preload(this.applicationResourceID, this.configName);
657
+ }
658
+ connectedCallback() {
659
+ ApplicationContext.setContextValue("__SNK__APPLICATION__", this);
660
+ DataFetcher.addRequestListener(this._requestListener);
661
+ }
662
+ disconnectedCallback() {
663
+ DataFetcher.removeRequestListener(this._requestListener);
664
+ }
665
+ componentDidLoad() {
666
+ this.applicationLoading.emit(true);
667
+ window.requestAnimationFrame(() => {
668
+ ApplicationContext.setContextValue("__SNK__APPLICATION__LOADING__", false);
669
+ this.applicationLoaded.emit(true);
670
+ });
671
+ ElementIDUtils.addIDInfo(this._element, `resource_${this.applicationResourceID}`);
672
+ }
673
+ render() {
674
+ 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 })));
675
+ }
676
+ static get is() { return "snk-application"; }
677
+ static get encapsulation() { return "scoped"; }
678
+ static get originalStyleUrls() {
679
+ return {
680
+ "$": ["snk-application.css"]
681
+ };
682
+ }
683
+ static get styleUrls() {
684
+ return {
685
+ "$": ["snk-application.css"]
686
+ };
687
+ }
688
+ static get properties() {
689
+ return {
690
+ "messagesBuilder": {
691
+ "type": "unknown",
692
+ "mutable": true,
693
+ "complexType": {
694
+ "original": "SnkMessageBuilder",
695
+ "resolved": "SnkMessageBuilder",
696
+ "references": {
697
+ "SnkMessageBuilder": {
698
+ "location": "import",
699
+ "path": "../../lib/message/SnkMessageBuilder"
700
+ }
701
+ }
702
+ },
703
+ "required": false,
704
+ "optional": false,
705
+ "docs": {
706
+ "tags": [],
707
+ "text": ""
708
+ }
709
+ },
710
+ "configName": {
711
+ "type": "string",
712
+ "mutable": false,
713
+ "complexType": {
714
+ "original": "string",
715
+ "resolved": "string",
716
+ "references": {}
717
+ },
718
+ "required": false,
719
+ "optional": false,
720
+ "docs": {
721
+ "tags": [],
722
+ "text": "Usado para salvar as configura\u00E7\u00F5es dos blocos de constru\u00E7\u00E3o."
723
+ },
724
+ "attribute": "config-name",
725
+ "reflect": false
726
+ }
727
+ };
728
+ }
729
+ static get events() {
730
+ return [{
731
+ "method": "applicationLoaded",
732
+ "name": "applicationLoaded",
733
+ "bubbles": true,
734
+ "cancelable": true,
735
+ "composed": true,
736
+ "docs": {
737
+ "tags": [],
738
+ "text": "Emitido quando a aplica\u00E7\u00E3o for carregada."
739
+ },
740
+ "complexType": {
741
+ "original": "boolean",
742
+ "resolved": "boolean",
743
+ "references": {}
744
+ }
745
+ }, {
746
+ "method": "applicationLoading",
747
+ "name": "applicationLoading",
748
+ "bubbles": true,
749
+ "cancelable": true,
750
+ "composed": true,
751
+ "docs": {
752
+ "tags": [],
753
+ "text": "Emitido ao iniciar a carga do componente."
754
+ },
755
+ "complexType": {
756
+ "original": "boolean",
757
+ "resolved": "boolean",
758
+ "references": {}
759
+ }
760
+ }];
761
+ }
762
+ static get methods() {
763
+ return {
764
+ "isUserSup": {
765
+ "complexType": {
766
+ "signature": "() => Promise<boolean>",
767
+ "parameters": [],
768
+ "references": {
769
+ "Promise": {
770
+ "location": "global"
771
+ }
772
+ },
773
+ "return": "Promise<boolean>"
774
+ },
775
+ "docs": {
776
+ "text": "Obt\u00E9m `true` caso o usu\u00E1rio logado seja o SUP.",
777
+ "tags": []
778
+ }
779
+ },
780
+ "callServiceBroker": {
781
+ "complexType": {
782
+ "signature": "(serviceName: string, payload: string | Object, options?: Options) => Promise<any>",
783
+ "parameters": [{
784
+ "tags": [{
785
+ "name": "param",
786
+ "text": "serviceName - Nome do servi\u00E7o"
787
+ }],
788
+ "text": "- Nome do servi\u00E7o"
789
+ }, {
790
+ "tags": [{
791
+ "name": "param",
792
+ "text": "payload - Dados que ser\u00E3o processados na a\u00E7\u00E3o"
793
+ }],
794
+ "text": "- Dados que ser\u00E3o processados na a\u00E7\u00E3o"
795
+ }, {
796
+ "tags": [{
797
+ "name": "param",
798
+ "text": "options - Par\u00E2metros de URL"
799
+ }],
800
+ "text": "- Par\u00E2metros de URL"
801
+ }],
802
+ "references": {
803
+ "Promise": {
804
+ "location": "global"
805
+ },
806
+ "Object": {
807
+ "location": "global"
808
+ },
809
+ "Options": {
810
+ "location": "import",
811
+ "path": "../../lib/http/data-fetcher/DataFetcher"
812
+ }
813
+ },
814
+ "return": "Promise<any>"
815
+ },
816
+ "docs": {
817
+ "text": "Realiza a chamada ao Service Broker conforme o nome do servi\u00E7o.",
818
+ "tags": [{
819
+ "name": "param",
820
+ "text": "serviceName - Nome do servi\u00E7o"
821
+ }, {
822
+ "name": "param",
823
+ "text": "payload - Dados que ser\u00E3o processados na a\u00E7\u00E3o"
824
+ }, {
825
+ "name": "param",
826
+ "text": "options - Par\u00E2metros de URL"
827
+ }]
828
+ }
829
+ },
830
+ "initOnboarding": {
831
+ "complexType": {
832
+ "signature": "(onboardingKey: string) => Promise<void>",
833
+ "parameters": [{
834
+ "tags": [],
835
+ "text": ""
836
+ }],
837
+ "references": {
838
+ "Promise": {
839
+ "location": "global"
840
+ }
841
+ },
842
+ "return": "Promise<void>"
843
+ },
844
+ "docs": {
845
+ "text": "",
846
+ "tags": []
847
+ }
848
+ },
849
+ "hasAccess": {
850
+ "complexType": {
851
+ "signature": "(access: AutorizationType, resourceID?: string) => Promise<boolean>",
852
+ "parameters": [{
853
+ "tags": [],
854
+ "text": ""
855
+ }, {
856
+ "tags": [],
857
+ "text": ""
858
+ }],
859
+ "references": {
860
+ "Promise": {
861
+ "location": "global"
862
+ },
863
+ "AutorizationType": {
864
+ "location": "import",
865
+ "path": "../../lib/http/data-fetcher/fetchers/auth-fetcher"
866
+ }
867
+ },
868
+ "return": "Promise<boolean>"
869
+ },
870
+ "docs": {
871
+ "text": "Obt\u00E9m `true` caso o usu\u00E1rio logado tem permiss\u00E3o pra determinada a\u00E7\u00E3o.",
872
+ "tags": []
873
+ }
874
+ },
875
+ "getAllAccess": {
876
+ "complexType": {
877
+ "signature": "(resourceID?: string) => Promise<any>",
878
+ "parameters": [{
879
+ "tags": [],
880
+ "text": ""
881
+ }],
882
+ "references": {
883
+ "Promise": {
884
+ "location": "global"
885
+ }
886
+ },
887
+ "return": "Promise<any>"
888
+ },
889
+ "docs": {
890
+ "text": "Obt\u00E9m todos os acessos do usu\u00E1rio logado.",
891
+ "tags": []
892
+ }
893
+ },
894
+ "getStringParam": {
895
+ "complexType": {
896
+ "signature": "(name: string) => Promise<string>",
897
+ "parameters": [{
898
+ "tags": [],
899
+ "text": ""
900
+ }],
901
+ "references": {
902
+ "Promise": {
903
+ "location": "global"
904
+ }
905
+ },
906
+ "return": "Promise<string>"
907
+ },
908
+ "docs": {
909
+ "text": "Obt\u00E9m o valor de um par\u00E2metro do tipo string.",
910
+ "tags": []
911
+ }
912
+ },
913
+ "getIntParam": {
914
+ "complexType": {
915
+ "signature": "(name: string) => Promise<number>",
916
+ "parameters": [{
917
+ "tags": [],
918
+ "text": ""
919
+ }],
920
+ "references": {
921
+ "Promise": {
922
+ "location": "global"
923
+ }
924
+ },
925
+ "return": "Promise<number>"
926
+ },
927
+ "docs": {
928
+ "text": "Obt\u00E9m o valor de um par\u00E2metro do tipo Inteiro.",
929
+ "tags": []
930
+ }
931
+ },
932
+ "getFloatParam": {
933
+ "complexType": {
934
+ "signature": "(name: string) => Promise<number>",
935
+ "parameters": [{
936
+ "tags": [],
937
+ "text": ""
938
+ }],
939
+ "references": {
940
+ "Promise": {
941
+ "location": "global"
942
+ }
943
+ },
944
+ "return": "Promise<number>"
945
+ },
946
+ "docs": {
947
+ "text": "Obt\u00E9m o valor de um par\u00E2metro do tipo Decimal.",
948
+ "tags": []
949
+ }
950
+ },
951
+ "getBooleanParam": {
952
+ "complexType": {
953
+ "signature": "(name: string) => Promise<boolean>",
954
+ "parameters": [{
955
+ "tags": [],
956
+ "text": ""
957
+ }],
958
+ "references": {
959
+ "Promise": {
960
+ "location": "global"
961
+ }
962
+ },
963
+ "return": "Promise<boolean>"
964
+ },
965
+ "docs": {
966
+ "text": "Obt\u00E9m o valor de um par\u00E2metro do tipo booleano.",
967
+ "tags": []
968
+ }
969
+ },
970
+ "getDateParam": {
971
+ "complexType": {
972
+ "signature": "(name: string) => Promise<Date>",
973
+ "parameters": [{
974
+ "tags": [],
975
+ "text": ""
976
+ }],
977
+ "references": {
978
+ "Promise": {
979
+ "location": "global"
980
+ },
981
+ "Date": {
982
+ "location": "global"
983
+ }
984
+ },
985
+ "return": "Promise<Date>"
986
+ },
987
+ "docs": {
988
+ "text": "Obt\u00E9m o valor de um par\u00E2metro do tipo data.",
989
+ "tags": []
990
+ }
991
+ },
992
+ "showPopUp": {
993
+ "complexType": {
994
+ "signature": "(content: HTMLElement, size?: \"auto\" | \"full\", useHeader?: boolean) => Promise<void>",
995
+ "parameters": [{
996
+ "tags": [],
997
+ "text": ""
998
+ }, {
999
+ "tags": [],
1000
+ "text": ""
1001
+ }, {
1002
+ "tags": [],
1003
+ "text": ""
1004
+ }],
1005
+ "references": {
1006
+ "Promise": {
1007
+ "location": "global"
1008
+ },
1009
+ "HTMLElement": {
1010
+ "location": "global"
1011
+ }
1012
+ },
1013
+ "return": "Promise<void>"
1014
+ },
1015
+ "docs": {
1016
+ "text": "Exibe o conte\u00FAdo passado em um Popup.",
1017
+ "tags": []
1018
+ }
1019
+ },
1020
+ "showModal": {
1021
+ "complexType": {
1022
+ "signature": "(content: HTMLElement) => Promise<void>",
1023
+ "parameters": [{
1024
+ "tags": [],
1025
+ "text": ""
1026
+ }],
1027
+ "references": {
1028
+ "Promise": {
1029
+ "location": "global"
1030
+ },
1031
+ "HTMLElement": {
1032
+ "location": "global"
1033
+ }
1034
+ },
1035
+ "return": "Promise<void>"
1036
+ },
1037
+ "docs": {
1038
+ "text": "Exibe o conte\u00FAdo passado em um Modal.",
1039
+ "tags": []
1040
+ }
1041
+ },
1042
+ "closeModal": {
1043
+ "complexType": {
1044
+ "signature": "() => Promise<void>",
1045
+ "parameters": [],
1046
+ "references": {
1047
+ "Promise": {
1048
+ "location": "global"
1049
+ }
1050
+ },
1051
+ "return": "Promise<void>"
1052
+ },
1053
+ "docs": {
1054
+ "text": "Fecha o Modal e limpa o conte\u00FAdo.",
1055
+ "tags": []
1056
+ }
1057
+ },
1058
+ "closePopUp": {
1059
+ "complexType": {
1060
+ "signature": "() => Promise<void>",
1061
+ "parameters": [],
1062
+ "references": {
1063
+ "Promise": {
1064
+ "location": "global"
1065
+ }
1066
+ },
1067
+ "return": "Promise<void>"
1068
+ },
1069
+ "docs": {
1070
+ "text": "Fecha o Popup e limpa o conte\u00FAdo.",
1071
+ "tags": []
1072
+ }
1073
+ },
1074
+ "temOpcional": {
1075
+ "complexType": {
1076
+ "signature": "(opcional: string) => Promise<boolean>",
1077
+ "parameters": [{
1078
+ "tags": [],
1079
+ "text": ""
1080
+ }],
1081
+ "references": {
1082
+ "Promise": {
1083
+ "location": "global"
1084
+ }
1085
+ },
1086
+ "return": "Promise<boolean>"
1087
+ },
1088
+ "docs": {
1089
+ "text": "Verifica se a licen\u00E7a do cliente tem determinado opcional (produto)",
1090
+ "tags": []
1091
+ }
1092
+ },
1093
+ "getConfig": {
1094
+ "complexType": {
1095
+ "signature": "(key: string) => Promise<any>",
1096
+ "parameters": [{
1097
+ "tags": [],
1098
+ "text": ""
1099
+ }],
1100
+ "references": {
1101
+ "Promise": {
1102
+ "location": "global"
1103
+ }
1104
+ },
1105
+ "return": "Promise<any>"
1106
+ },
1107
+ "docs": {
1108
+ "text": "Obt\u00E9m a configura\u00E7\u00E3o de um recurso por service broker",
1109
+ "tags": []
1110
+ }
1111
+ },
1112
+ "saveConfig": {
1113
+ "complexType": {
1114
+ "signature": "(key: string, data: Object) => Promise<any>",
1115
+ "parameters": [{
1116
+ "tags": [],
1117
+ "text": ""
1118
+ }, {
1119
+ "tags": [],
1120
+ "text": ""
1121
+ }],
1122
+ "references": {
1123
+ "Promise": {
1124
+ "location": "global"
1125
+ },
1126
+ "Object": {
1127
+ "location": "global"
1128
+ }
1129
+ },
1130
+ "return": "Promise<any>"
1131
+ },
1132
+ "docs": {
1133
+ "text": "Salva a configura\u00E7\u00E3o de determinado recurso.",
1134
+ "tags": []
1135
+ }
1136
+ },
1137
+ "getAttributeFromHTMLWrapper": {
1138
+ "complexType": {
1139
+ "signature": "(attribName: string) => Promise<string>",
1140
+ "parameters": [{
1141
+ "tags": [],
1142
+ "text": ""
1143
+ }],
1144
+ "references": {
1145
+ "Promise": {
1146
+ "location": "global"
1147
+ }
1148
+ },
1149
+ "return": "Promise<string>"
1150
+ },
1151
+ "docs": {
1152
+ "text": "Acessa informa\u00E7\u00F5es de contexto \"empurrados\" na abertura da tela.",
1153
+ "tags": []
1154
+ }
1155
+ },
1156
+ "openApp": {
1157
+ "complexType": {
1158
+ "signature": "(resourceId: string, pkObject: Object) => Promise<void>",
1159
+ "parameters": [{
1160
+ "tags": [],
1161
+ "text": ""
1162
+ }, {
1163
+ "tags": [],
1164
+ "text": ""
1165
+ }],
1166
+ "references": {
1167
+ "Promise": {
1168
+ "location": "global"
1169
+ },
1170
+ "Object": {
1171
+ "location": "global"
1172
+ }
1173
+ },
1174
+ "return": "Promise<void>"
1175
+ },
1176
+ "docs": {
1177
+ "text": "Abre determinada tela, repassando pkObject.",
1178
+ "tags": []
1179
+ }
1180
+ },
1181
+ "webConnection": {
1182
+ "complexType": {
1183
+ "signature": "(keyPort: string, methodName: string, params: IAppletCallerParams) => Promise<void>",
1184
+ "parameters": [{
1185
+ "tags": [{
1186
+ "name": "param",
1187
+ "text": "keyPort - Chave da porta que ser\u00E1 requisitada."
1188
+ }],
1189
+ "text": "- Chave da porta que ser\u00E1 requisitada."
1190
+ }, {
1191
+ "tags": [{
1192
+ "name": "param",
1193
+ "text": "methodName - Nome do tipo de exporta\u00E7\u00E3o de arquivo que ser\u00E1 realizado."
1194
+ }],
1195
+ "text": "- Nome do tipo de exporta\u00E7\u00E3o de arquivo que ser\u00E1 realizado."
1196
+ }, {
1197
+ "tags": [{
1198
+ "name": "param",
1199
+ "text": "params - Par\u00E2metros necess\u00E1rios para realizar a exporta\u00E7\u00E3o do arquivo."
1200
+ }],
1201
+ "text": "- Par\u00E2metros necess\u00E1rios para realizar a exporta\u00E7\u00E3o do arquivo."
1202
+ }],
1203
+ "references": {
1204
+ "Promise": {
1205
+ "location": "global"
1206
+ },
1207
+ "IAppletCallerParams": {
1208
+ "location": "import",
1209
+ "path": "../../lib/applet-caller/applet-caller"
1210
+ }
1211
+ },
1212
+ "return": "Promise<void>"
1213
+ },
1214
+ "docs": {
1215
+ "text": "Realiza a chamada do WebConnection para realizar a exporta\u00E7\u00E3o de arquivo.",
1216
+ "tags": [{
1217
+ "name": "param",
1218
+ "text": "keyPort - Chave da porta que ser\u00E1 requisitada."
1219
+ }, {
1220
+ "name": "param",
1221
+ "text": "methodName - Nome do tipo de exporta\u00E7\u00E3o de arquivo que ser\u00E1 realizado."
1222
+ }, {
1223
+ "name": "param",
1224
+ "text": "params - Par\u00E2metros necess\u00E1rios para realizar a exporta\u00E7\u00E3o do arquivo."
1225
+ }]
1226
+ }
1227
+ },
1228
+ "createDataunit": {
1229
+ "complexType": {
1230
+ "signature": "(entityName: string, dataUnitName?: string, parentDataUnit?: DataUnit, configName?: string, resourceID?: string) => Promise<DataUnit>",
1231
+ "parameters": [{
1232
+ "tags": [],
1233
+ "text": ""
1234
+ }, {
1235
+ "tags": [],
1236
+ "text": ""
1237
+ }, {
1238
+ "tags": [],
1239
+ "text": ""
1240
+ }, {
1241
+ "tags": [],
1242
+ "text": ""
1243
+ }, {
1244
+ "tags": [],
1245
+ "text": ""
1246
+ }],
1247
+ "references": {
1248
+ "Promise": {
1249
+ "location": "global"
1250
+ },
1251
+ "DataUnit": {
1252
+ "location": "import",
1253
+ "path": "@sankhyalabs/core"
1254
+ }
1255
+ },
1256
+ "return": "Promise<DataUnit>"
1257
+ },
1258
+ "docs": {
1259
+ "text": "Cria o DataUnit a partir do nome da entidade. \u00C9 poss\u00EDvel armazen\u00E1-lo no cache\npassando o dataUnitName, assim, se mais de uma chamada for feita, o mesmo DataUnit ser\u00E1 usado.",
1260
+ "tags": []
1261
+ }
1262
+ },
1263
+ "updateDataunitCache": {
1264
+ "complexType": {
1265
+ "signature": "(oldName: string, dataUnitName: string, dataUnit: DataUnit) => Promise<void>",
1266
+ "parameters": [{
1267
+ "tags": [{
1268
+ "name": "param",
1269
+ "text": "oldName - Nome do dataunit que est\u00E1 em cache."
1270
+ }],
1271
+ "text": "- Nome do dataunit que est\u00E1 em cache."
1272
+ }, {
1273
+ "tags": [{
1274
+ "name": "param",
1275
+ "text": "dataUnitName - Nome do dataunit que ser\u00E1 armazenado em cache."
1276
+ }],
1277
+ "text": "- Nome do dataunit que ser\u00E1 armazenado em cache."
1278
+ }, {
1279
+ "tags": [{
1280
+ "name": "param",
1281
+ "text": "dataUnit - Instancia do Dataunit para ser armazenado em cache."
1282
+ }],
1283
+ "text": "- Instancia do Dataunit para ser armazenado em cache."
1284
+ }],
1285
+ "references": {
1286
+ "Promise": {
1287
+ "location": "global"
1288
+ },
1289
+ "DataUnit": {
1290
+ "location": "import",
1291
+ "path": "@sankhyalabs/core"
1292
+ }
1293
+ },
1294
+ "return": "Promise<void>"
1295
+ },
1296
+ "docs": {
1297
+ "text": "Atualiza o cache de dataunits da aplica\u00E7\u00E3o.",
1298
+ "tags": [{
1299
+ "name": "param",
1300
+ "text": "oldName - Nome do dataunit que est\u00E1 em cache."
1301
+ }, {
1302
+ "name": "param",
1303
+ "text": "dataUnitName - Nome do dataunit que ser\u00E1 armazenado em cache."
1304
+ }, {
1305
+ "name": "param",
1306
+ "text": "dataUnit - Instancia do Dataunit para ser armazenado em cache."
1307
+ }]
1308
+ }
1309
+ },
1310
+ "getDataUnit": {
1311
+ "complexType": {
1312
+ "signature": "(entityName: string, dataUnitName: string, parentDataUnit?: DataUnit, configName?: string, resourceID?: string) => Promise<DataUnit>",
1313
+ "parameters": [{
1314
+ "tags": [],
1315
+ "text": ""
1316
+ }, {
1317
+ "tags": [],
1318
+ "text": ""
1319
+ }, {
1320
+ "tags": [],
1321
+ "text": ""
1322
+ }, {
1323
+ "tags": [],
1324
+ "text": ""
1325
+ }, {
1326
+ "tags": [],
1327
+ "text": ""
1328
+ }],
1329
+ "references": {
1330
+ "Promise": {
1331
+ "location": "global"
1332
+ },
1333
+ "DataUnit": {
1334
+ "location": "import",
1335
+ "path": "@sankhyalabs/core"
1336
+ }
1337
+ },
1338
+ "return": "Promise<DataUnit>"
1339
+ },
1340
+ "docs": {
1341
+ "text": "Obtem um DataUnit do cache ou cria um caso ainda n\u00E3o tenha sido criado.",
1342
+ "tags": []
1343
+ }
1344
+ },
1345
+ "addClientEvent": {
1346
+ "complexType": {
1347
+ "signature": "(eventID: String, handler: (clientEvent: IClientEventResponse, dataFetcherReacaller: IDataFetcherRecaller) => void) => Promise<void>",
1348
+ "parameters": [{
1349
+ "tags": [{
1350
+ "name": "param",
1351
+ "text": "eventID - Nome do evento para a aplica\u00E7\u00E3o se registrar."
1352
+ }],
1353
+ "text": "- Nome do evento para a aplica\u00E7\u00E3o se registrar."
1354
+ }, {
1355
+ "tags": [{
1356
+ "name": "param",
1357
+ "text": "handler - Fun\u00E7\u00E3o de callback que ser\u00E1 chamada quando o client event ocorrer."
1358
+ }],
1359
+ "text": "- Fun\u00E7\u00E3o de callback que ser\u00E1 chamada quando o client event ocorrer."
1360
+ }],
1361
+ "references": {
1362
+ "Promise": {
1363
+ "location": "global"
1364
+ },
1365
+ "String": {
1366
+ "location": "global"
1367
+ },
1368
+ "IClientEventResponse": {
1369
+ "location": "import",
1370
+ "path": "../../lib/http/data-fetcher/interfaces/IClientEventResponse"
1371
+ },
1372
+ "IDataFetcherRecaller": {
1373
+ "location": "import",
1374
+ "path": "../../lib/http/data-fetcher/recaller/IDataFetcherRecaller"
1375
+ }
1376
+ },
1377
+ "return": "Promise<void>"
1378
+ },
1379
+ "docs": {
1380
+ "text": "Registra um client event para o DataFetcher da aplica\u00E7\u00E3o.",
1381
+ "tags": [{
1382
+ "name": "param",
1383
+ "text": "eventID - Nome do evento para a aplica\u00E7\u00E3o se registrar."
1384
+ }, {
1385
+ "name": "param",
1386
+ "text": "handler - Fun\u00E7\u00E3o de callback que ser\u00E1 chamada quando o client event ocorrer."
1387
+ }]
1388
+ }
1389
+ },
1390
+ "removeClientEvent": {
1391
+ "complexType": {
1392
+ "signature": "(eventID: String) => Promise<void>",
1393
+ "parameters": [{
1394
+ "tags": [{
1395
+ "name": "param",
1396
+ "text": "eventID - Nome do evento a ser removido."
1397
+ }],
1398
+ "text": "- Nome do evento a ser removido."
1399
+ }],
1400
+ "references": {
1401
+ "Promise": {
1402
+ "location": "global"
1403
+ },
1404
+ "String": {
1405
+ "location": "global"
1406
+ }
1407
+ },
1408
+ "return": "Promise<void>"
1409
+ },
1410
+ "docs": {
1411
+ "text": "Remove um client event para o DataFetcher da aplica\u00E7\u00E3o.",
1412
+ "tags": [{
1413
+ "name": "param",
1414
+ "text": "eventID - Nome do evento a ser removido."
1415
+ }]
1416
+ }
1417
+ },
1418
+ "hasClientEvent": {
1419
+ "complexType": {
1420
+ "signature": "(eventID: String) => Promise<boolean>",
1421
+ "parameters": [{
1422
+ "tags": [{
1423
+ "name": "param",
1424
+ "text": "eventID - Nome do evento a ser verificado."
1425
+ }],
1426
+ "text": "- Nome do evento a ser verificado."
1427
+ }],
1428
+ "references": {
1429
+ "Promise": {
1430
+ "location": "global"
1431
+ },
1432
+ "String": {
1433
+ "location": "global"
1434
+ }
1435
+ },
1436
+ "return": "Promise<boolean>"
1437
+ },
1438
+ "docs": {
1439
+ "text": "Verfica se um client event est\u00E1 registrado no DataFetcher da aplica\u00E7\u00E3o.",
1440
+ "tags": [{
1441
+ "name": "param",
1442
+ "text": "eventID - Nome do evento a ser verificado."
1443
+ }]
1444
+ }
1445
+ },
1446
+ "callServiceBroker": {
1447
+ "complexType": {
1448
+ "signature": "(serviceName: string, payload: string | Object, options?: Options) => Promise<any>",
1449
+ "parameters": [{
1450
+ "tags": [{
1451
+ "name": "param",
1452
+ "text": "serviceName - Nome do servi\u00E7o"
1453
+ }],
1454
+ "text": "- Nome do servi\u00E7o"
1455
+ }, {
1456
+ "tags": [{
1457
+ "name": "param",
1458
+ "text": "payload - Dados que ser\u00E3o processados na a\u00E7\u00E3o"
1459
+ }],
1460
+ "text": "- Dados que ser\u00E3o processados na a\u00E7\u00E3o"
1461
+ }, {
1462
+ "tags": [{
1463
+ "name": "param",
1464
+ "text": "options - Par\u00E2metros de URL"
1465
+ }],
1466
+ "text": "- Par\u00E2metros de URL"
1467
+ }],
1468
+ "references": {
1469
+ "Promise": {
1470
+ "location": "global"
1471
+ },
1472
+ "Object": {
1473
+ "location": "global"
1474
+ },
1475
+ "Options": {
1476
+ "location": "import",
1477
+ "path": "../../lib/http/data-fetcher/DataFetcher"
1478
+ }
1479
+ },
1480
+ "return": "Promise<any>"
1481
+ },
1482
+ "docs": {
1483
+ "text": "Realiza a chamada ao Service Broker conforme o nome do servi\u00E7o.",
1484
+ "tags": [{
1485
+ "name": "param",
1486
+ "text": "serviceName - Nome do servi\u00E7o"
1487
+ }, {
1488
+ "name": "param",
1489
+ "text": "payload - Dados que ser\u00E3o processados na a\u00E7\u00E3o"
1490
+ }, {
1491
+ "name": "param",
1492
+ "text": "options - Par\u00E2metros de URL"
1493
+ }]
1494
+ }
1495
+ },
1496
+ "getResourceID": {
1497
+ "complexType": {
1498
+ "signature": "() => Promise<string>",
1499
+ "parameters": [],
1500
+ "references": {
1501
+ "Promise": {
1502
+ "location": "global"
1503
+ }
1504
+ },
1505
+ "return": "Promise<string>"
1506
+ },
1507
+ "docs": {
1508
+ "text": "Obt\u00E9m o resourceID da tela em quest\u00E3o.",
1509
+ "tags": []
1510
+ }
1511
+ },
1512
+ "getUserID": {
1513
+ "complexType": {
1514
+ "signature": "() => Promise<string>",
1515
+ "parameters": [],
1516
+ "references": {
1517
+ "Promise": {
1518
+ "location": "global"
1519
+ }
1520
+ },
1521
+ "return": "Promise<string>"
1522
+ },
1523
+ "docs": {
1524
+ "text": "Obt\u00E9m o UserId da tela em quest\u00E3o.",
1525
+ "tags": []
1526
+ }
1527
+ },
1528
+ "alert": {
1529
+ "complexType": {
1530
+ "signature": "(title: string, message: string, icon?: string, options?: MessageOptions) => Promise<boolean>",
1531
+ "parameters": [{
1532
+ "tags": [],
1533
+ "text": ""
1534
+ }, {
1535
+ "tags": [],
1536
+ "text": ""
1537
+ }, {
1538
+ "tags": [],
1539
+ "text": ""
1540
+ }, {
1541
+ "tags": [],
1542
+ "text": ""
1543
+ }],
1544
+ "references": {
1545
+ "Promise": {
1546
+ "location": "global"
1547
+ },
1548
+ "MessageOptions": {
1549
+ "location": "import",
1550
+ "path": "@sankhyalabs/ezui/dist/collection/utils"
1551
+ }
1552
+ },
1553
+ "return": "Promise<boolean>"
1554
+ },
1555
+ "docs": {
1556
+ "text": "Exibe o di\u00E1logo de alerta de acordo com os par\u00E2metros passados.",
1557
+ "tags": []
1558
+ }
1559
+ },
1560
+ "error": {
1561
+ "complexType": {
1562
+ "signature": "(title: string, message: string, icon?: string, options?: MessageOptions) => Promise<boolean>",
1563
+ "parameters": [{
1564
+ "tags": [],
1565
+ "text": ""
1566
+ }, {
1567
+ "tags": [],
1568
+ "text": ""
1569
+ }, {
1570
+ "tags": [],
1571
+ "text": ""
1572
+ }, {
1573
+ "tags": [],
1574
+ "text": ""
1575
+ }],
1576
+ "references": {
1577
+ "Promise": {
1578
+ "location": "global"
1579
+ },
1580
+ "MessageOptions": {
1581
+ "location": "import",
1582
+ "path": "@sankhyalabs/ezui/dist/collection/utils"
1583
+ }
1584
+ },
1585
+ "return": "Promise<boolean>"
1586
+ },
1587
+ "docs": {
1588
+ "text": "Exibe o di\u00E1logo de erro de acordo com os par\u00E2metros passados.",
1589
+ "tags": []
1590
+ }
1591
+ },
1592
+ "success": {
1593
+ "complexType": {
1594
+ "signature": "(title: string, message: string, icon?: string, options?: MessageOptions) => Promise<boolean>",
1595
+ "parameters": [{
1596
+ "tags": [],
1597
+ "text": ""
1598
+ }, {
1599
+ "tags": [],
1600
+ "text": ""
1601
+ }, {
1602
+ "tags": [],
1603
+ "text": ""
1604
+ }, {
1605
+ "tags": [],
1606
+ "text": ""
1607
+ }],
1608
+ "references": {
1609
+ "Promise": {
1610
+ "location": "global"
1611
+ },
1612
+ "MessageOptions": {
1613
+ "location": "import",
1614
+ "path": "@sankhyalabs/ezui/dist/collection/utils"
1615
+ }
1616
+ },
1617
+ "return": "Promise<boolean>"
1618
+ },
1619
+ "docs": {
1620
+ "text": "Exibe o di\u00E1logo de sucesso de acordo com os par\u00E2metros passados.",
1621
+ "tags": []
1622
+ }
1623
+ },
1624
+ "message": {
1625
+ "complexType": {
1626
+ "signature": "(title: string, message: string, icon?: string, options?: MessageOptions) => Promise<boolean>",
1627
+ "parameters": [{
1628
+ "tags": [],
1629
+ "text": ""
1630
+ }, {
1631
+ "tags": [],
1632
+ "text": ""
1633
+ }, {
1634
+ "tags": [],
1635
+ "text": ""
1636
+ }, {
1637
+ "tags": [],
1638
+ "text": ""
1639
+ }],
1640
+ "references": {
1641
+ "Promise": {
1642
+ "location": "global"
1643
+ },
1644
+ "MessageOptions": {
1645
+ "location": "import",
1646
+ "path": "@sankhyalabs/ezui/dist/collection/utils"
1647
+ }
1648
+ },
1649
+ "return": "Promise<boolean>"
1650
+ },
1651
+ "docs": {
1652
+ "text": "Exibe um di\u00E1logo de mensagem comum",
1653
+ "tags": []
1654
+ }
1655
+ },
1656
+ "confirm": {
1657
+ "complexType": {
1658
+ "signature": "(title: string, message: string, icon?: string, dialogType?: DialogType, options?: MessageOptions) => Promise<boolean>",
1659
+ "parameters": [{
1660
+ "tags": [],
1661
+ "text": ""
1662
+ }, {
1663
+ "tags": [],
1664
+ "text": ""
1665
+ }, {
1666
+ "tags": [],
1667
+ "text": ""
1668
+ }, {
1669
+ "tags": [],
1670
+ "text": ""
1671
+ }, {
1672
+ "tags": [],
1673
+ "text": ""
1674
+ }],
1675
+ "references": {
1676
+ "Promise": {
1677
+ "location": "global"
1678
+ },
1679
+ "DialogType": {
1680
+ "location": "import",
1681
+ "path": "@sankhyalabs/ezui/dist/collection/utils"
1682
+ },
1683
+ "MessageOptions": {
1684
+ "location": "import",
1685
+ "path": "@sankhyalabs/ezui/dist/collection/utils"
1686
+ }
1687
+ },
1688
+ "return": "Promise<boolean>"
1689
+ },
1690
+ "docs": {
1691
+ "text": "Exibe um di\u00E1logo de confirma\u00E7\u00E3o",
1692
+ "tags": []
1693
+ }
1694
+ },
1695
+ "info": {
1696
+ "complexType": {
1697
+ "signature": "(message: string, options?: MessageOptions) => Promise<void>",
1698
+ "parameters": [{
1699
+ "tags": [],
1700
+ "text": ""
1701
+ }, {
1702
+ "tags": [],
1703
+ "text": ""
1704
+ }],
1705
+ "references": {
1706
+ "Promise": {
1707
+ "location": "global"
1708
+ },
1709
+ "MessageOptions": {
1710
+ "location": "import",
1711
+ "path": "@sankhyalabs/ezui/dist/collection/utils"
1712
+ }
1713
+ },
1714
+ "return": "Promise<void>"
1715
+ },
1716
+ "docs": {
1717
+ "text": "Exibe uma informa\u00E7\u00E3o ef\u00EAmera (de segundo plano).",
1718
+ "tags": []
1719
+ }
1720
+ },
1721
+ "loadTotals": {
1722
+ "complexType": {
1723
+ "signature": "(name: string, resourceID: string, filters: Array<Filter>) => Promise<Map<string, number>>",
1724
+ "parameters": [{
1725
+ "tags": [],
1726
+ "text": ""
1727
+ }, {
1728
+ "tags": [],
1729
+ "text": ""
1730
+ }, {
1731
+ "tags": [],
1732
+ "text": ""
1733
+ }],
1734
+ "references": {
1735
+ "Promise": {
1736
+ "location": "global"
1737
+ },
1738
+ "Map": {
1739
+ "location": "global"
1740
+ },
1741
+ "Array": {
1742
+ "location": "global"
1743
+ },
1744
+ "Filter": {
1745
+ "location": "import",
1746
+ "path": "@sankhyalabs/core"
1747
+ }
1748
+ },
1749
+ "return": "Promise<Map<string, number>>"
1750
+ },
1751
+ "docs": {
1752
+ "text": "Obt\u00E9m os totalizadores da grade.",
1753
+ "tags": []
1754
+ }
1755
+ },
1756
+ "executeSearch": {
1757
+ "complexType": {
1758
+ "signature": "(searchArgument: ISearchArgument, fieldName: string, dataUnit: DataUnit) => Promise<Array<IOption> | IOption>",
1759
+ "parameters": [{
1760
+ "tags": [],
1761
+ "text": ""
1762
+ }, {
1763
+ "tags": [],
1764
+ "text": ""
1765
+ }, {
1766
+ "tags": [],
1767
+ "text": ""
1768
+ }],
1769
+ "references": {
1770
+ "Promise": {
1771
+ "location": "global"
1772
+ },
1773
+ "IOption": {
1774
+ "location": "import",
1775
+ "path": "@sankhyalabs/ezui/dist/types/components/ez-combo-box/ez-combo-box"
1776
+ },
1777
+ "ISearchArgument": {
1778
+ "location": "import",
1779
+ "path": "@sankhyalabs/ezui/dist/types/components/ez-combo-box/ez-combo-box"
1780
+ },
1781
+ "DataUnit": {
1782
+ "location": "import",
1783
+ "path": "@sankhyalabs/core"
1784
+ },
1785
+ "Array": {
1786
+ "location": "global"
1787
+ },
1788
+ "SearchCriteria": {
1789
+ "location": "import",
1790
+ "path": "../../lib/http/data-fetcher/fetchers/pesquisa-fetcher"
1791
+ }
1792
+ },
1793
+ "return": "Promise<IOption | IOption[]>"
1794
+ },
1795
+ "docs": {
1796
+ "text": "Obt\u00E9m as op\u00E7\u00F5es em componentes de pesquisa\nEx.: snk-config-options",
1797
+ "tags": []
1798
+ }
1799
+ },
1800
+ "executePreparedSearch": {
1801
+ "complexType": {
1802
+ "signature": "(mode: string, argument: string, options: any) => Promise<Array<IOption> | IOption>",
1803
+ "parameters": [{
1804
+ "tags": [],
1805
+ "text": ""
1806
+ }, {
1807
+ "tags": [],
1808
+ "text": ""
1809
+ }, {
1810
+ "tags": [],
1811
+ "text": ""
1812
+ }],
1813
+ "references": {
1814
+ "Promise": {
1815
+ "location": "global"
1816
+ },
1817
+ "IOption": {
1818
+ "location": "import",
1819
+ "path": "@sankhyalabs/ezui/dist/types/components/ez-combo-box/ez-combo-box"
1820
+ },
1821
+ "Array": {
1822
+ "location": "global"
1823
+ },
1824
+ "HTMLSnkPesquisaElement": {
1825
+ "location": "global"
1826
+ }
1827
+ },
1828
+ "return": "Promise<IOption | IOption[]>"
1829
+ },
1830
+ "docs": {
1831
+ "text": "Obt\u00E9m as op\u00E7\u00F5es em componentes de pesquisa\nEx.: snk-config-options",
1832
+ "tags": []
1833
+ }
1834
+ },
1835
+ "isDebugMode": {
1836
+ "complexType": {
1837
+ "signature": "() => Promise<boolean>",
1838
+ "parameters": [],
1839
+ "references": {
1840
+ "Promise": {
1841
+ "location": "global"
1842
+ }
1843
+ },
1844
+ "return": "Promise<boolean>"
1845
+ },
1846
+ "docs": {
1847
+ "text": "Obt\u00E9m `true` caso a tela esteja em modo de debug.",
1848
+ "tags": []
1849
+ }
1850
+ },
1851
+ "getAppLabel": {
1852
+ "complexType": {
1853
+ "signature": "() => Promise<string>",
1854
+ "parameters": [],
1855
+ "references": {
1856
+ "Promise": {
1857
+ "location": "global"
1858
+ }
1859
+ },
1860
+ "return": "Promise<string>"
1861
+ },
1862
+ "docs": {
1863
+ "text": "Obt\u00E9m o nome das telas da aplica\u00E7\u00E3o",
1864
+ "tags": []
1865
+ }
1866
+ },
1867
+ "addSearchListener": {
1868
+ "complexType": {
1869
+ "signature": "(entityName: string, dataUnit: DataUnit, listener: ISearchListener) => Promise<IRemoveSearchListener>",
1870
+ "parameters": [{
1871
+ "tags": [],
1872
+ "text": ""
1873
+ }, {
1874
+ "tags": [],
1875
+ "text": ""
1876
+ }, {
1877
+ "tags": [],
1878
+ "text": ""
1879
+ }],
1880
+ "references": {
1881
+ "Promise": {
1882
+ "location": "global"
1883
+ },
1884
+ "IRemoveSearchListener": {
1885
+ "location": "import",
1886
+ "path": "../../lib/http/data-fetcher/fetchers/pesquisa-fetcher"
1887
+ },
1888
+ "DataUnit": {
1889
+ "location": "import",
1890
+ "path": "@sankhyalabs/core"
1891
+ },
1892
+ "ISearchListener": {
1893
+ "location": "import",
1894
+ "path": "../../lib/http/data-fetcher/fetchers/pesquisa-fetcher"
1895
+ }
1896
+ },
1897
+ "return": "Promise<IRemoveSearchListener>"
1898
+ },
1899
+ "docs": {
1900
+ "text": "Adiciona um listener no fetcher de Pesquisa",
1901
+ "tags": []
1902
+ }
1903
+ },
1904
+ "importScript": {
1905
+ "complexType": {
1906
+ "signature": "(relativePath: string | Array<string>) => Promise<void>",
1907
+ "parameters": [{
1908
+ "tags": [{
1909
+ "name": "param",
1910
+ "text": "relativePath : Define o caminho relativo para o arquivo JavaScript a ser importado."
1911
+ }],
1912
+ "text": ": Define o caminho relativo para o arquivo JavaScript a ser importado."
1913
+ }],
1914
+ "references": {
1915
+ "Promise": {
1916
+ "location": "global"
1917
+ },
1918
+ "Array": {
1919
+ "location": "global"
1920
+ }
1921
+ },
1922
+ "return": "Promise<void>"
1923
+ },
1924
+ "docs": {
1925
+ "text": "Realiza o import de um JavaScript que est\u00E1 disponivel dentro da pasta /public da aplica\u00E7\u00E3o.",
1926
+ "tags": [{
1927
+ "name": "param",
1928
+ "text": "relativePath : Define o caminho relativo para o arquivo JavaScript a ser importado."
1929
+ }]
1930
+ }
1931
+ },
1932
+ "getApplicationPath": {
1933
+ "complexType": {
1934
+ "signature": "() => Promise<string>",
1935
+ "parameters": [],
1936
+ "references": {
1937
+ "Promise": {
1938
+ "location": "global"
1939
+ }
1940
+ },
1941
+ "return": "Promise<string>"
1942
+ },
1943
+ "docs": {
1944
+ "text": "Retorna o path relativo da aplica\u00E7\u00E3o.",
1945
+ "tags": []
1946
+ }
1947
+ },
1948
+ "executeSelectDistinct": {
1949
+ "complexType": {
1950
+ "signature": "(dataUnit: DataUnit, fieldName: string, argument: string) => Promise<Array<any>>",
1951
+ "parameters": [{
1952
+ "tags": [],
1953
+ "text": ""
1954
+ }, {
1955
+ "tags": [],
1956
+ "text": ""
1957
+ }, {
1958
+ "tags": [],
1959
+ "text": ""
1960
+ }],
1961
+ "references": {
1962
+ "Promise": {
1963
+ "location": "global"
1964
+ },
1965
+ "DataUnit": {
1966
+ "location": "import",
1967
+ "path": "@sankhyalabs/core"
1968
+ },
1969
+ "Array": {
1970
+ "location": "global"
1971
+ }
1972
+ },
1973
+ "return": "Promise<any[]>"
1974
+ },
1975
+ "docs": {
1976
+ "text": "Com base em um campo realiza um \"select distinct\" respeitando os \nfiltros atuais do dataUnit e um crit\u00E9rio de filtro para a pr\u00F3pria \ncoluna.",
1977
+ "tags": []
1978
+ }
1979
+ },
1980
+ "getDataFetcher": {
1981
+ "complexType": {
1982
+ "signature": "() => Promise<DataFetcher>",
1983
+ "parameters": [],
1984
+ "references": {
1985
+ "Promise": {
1986
+ "location": "global"
1987
+ },
1988
+ "DataFetcher": {
1989
+ "location": "import",
1990
+ "path": "../../lib/http/data-fetcher/DataFetcher"
1991
+ }
1992
+ },
1993
+ "return": "Promise<DataFetcher>"
1994
+ },
1995
+ "docs": {
1996
+ "text": "Retorna a instancia do DataFetcher utilizado pelo application",
1997
+ "tags": [{
1998
+ "name": "returns",
1999
+ "text": "DataFetcher do application"
2000
+ }]
2001
+ }
2002
+ }
2003
+ };
2004
+ }
2005
+ static get elementRef() { return "_element"; }
2006
+ }
2007
+ class RequestListenerLoadingBar {
2008
+ constructor() {
2009
+ this._debounceTime = 1000;
2010
+ this._ignoredNameTypes = ["totals"];
2011
+ this._countRequest = 0;
2012
+ }
2013
+ onRequestStart(param) {
2014
+ if (this.isIgnoreLoadingOnRequest(param)) {
2015
+ return;
2016
+ }
2017
+ this._countRequest++;
2018
+ this.loadingBar.show();
2019
+ if (this._timerLoading) {
2020
+ clearTimeout(this._timerLoading);
2021
+ }
2022
+ }
2023
+ ;
2024
+ onRequestEnd(param) {
2025
+ if (this.isIgnoreLoadingOnRequest(param)) {
2026
+ return;
2027
+ }
2028
+ this._countRequest--;
2029
+ this._timerLoading = setTimeout(() => {
2030
+ if (this._countRequest <= 0) {
2031
+ this.loadingBar.hide();
2032
+ }
2033
+ }, this._debounceTime);
2034
+ }
2035
+ ;
2036
+ isIgnoreLoadingOnRequest(param) {
2037
+ var _a;
2038
+ if (((_a = param === null || param === void 0 ? void 0 : param.requestBody) === null || _a === void 0 ? void 0 : _a.length) == 1) {
2039
+ const { name } = param.requestBody[0].variables;
2040
+ if (name) {
2041
+ const nameParts = name.split(":");
2042
+ const nameType = nameParts[0];
2043
+ return this._ignoredNameTypes.indexOf(nameType) >= 0;
2044
+ }
2045
+ }
2046
+ return false;
2047
+ }
2048
+ ;
2049
+ }
2050
+ class PendingPromise {
2051
+ constructor(resolve, reject) {
2052
+ this.resolve = resolve;
2053
+ this.reject = reject;
2054
+ }
2055
+ }