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

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