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