@sankhyalabs/sankhyablocks 0.0.0-bugfix-dev-KB-11997.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +75 -0
- package/dist/cjs/AuthorizationConfig-79ffae4b.js +7 -0
- package/dist/cjs/ConfigStorage-0e4275f5.js +422 -0
- package/dist/cjs/DataFetcher-bd3d53a8.js +6985 -0
- package/dist/cjs/ISave-d68ce3cd.js +8 -0
- package/dist/cjs/ParamType-90b440a0.js +13 -0
- package/dist/cjs/PersonalizedFilterUtils-1aeb625d.js +220 -0
- package/dist/cjs/PrintUtils-bcaeb82f.js +215 -0
- package/dist/cjs/ResourceIDUtils-5ff86aa7.js +12 -0
- package/dist/cjs/SnkFormConfigManager-5b485cd4.js +134 -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-1583fe43.js +34 -0
- package/dist/cjs/constants-d187e03e.js +101 -0
- package/dist/cjs/dataunit-fetcher-910be4ce.js +356 -0
- package/dist/cjs/draggable.bundle-82a25c06.js +6886 -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-f6cb55e6.js +244 -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 +2332 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +22 -0
- package/dist/cjs/pesquisa-fetcher-3356b3df.js +167 -0
- package/dist/cjs/presentationMode-52ec3bdd.js +7 -0
- package/dist/cjs/sankhyablocks.cjs.js +23 -0
- package/dist/cjs/snk-actions-button.cjs.entry.js +713 -0
- package/dist/cjs/snk-actions-form.cjs.entry.js +200 -0
- package/dist/cjs/snk-application.cjs.entry.js +947 -0
- package/dist/cjs/snk-attach.cjs.entry.js +447 -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 +100 -0
- package/dist/cjs/snk-crud.cjs.entry.js +200 -0
- package/dist/cjs/snk-data-exporter.cjs.entry.js +521 -0
- package/dist/cjs/snk-data-unit-7cc1846d.js +452 -0
- package/dist/cjs/snk-data-unit.cjs.entry.js +13 -0
- package/dist/cjs/snk-detail-view.cjs.entry.js +273 -0
- package/dist/cjs/snk-entity-list.cjs.entry.js +114 -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 +508 -0
- package/dist/cjs/snk-filter-binary-select.cjs.entry.js +91 -0
- package/dist/cjs/snk-filter-detail.cjs.entry.js +169 -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 +113 -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 +981 -0
- package/dist/cjs/snk-form-summary.cjs.entry.js +61 -0
- package/dist/cjs/snk-form-view.cjs.entry.js +104 -0
- package/dist/cjs/snk-form.cjs.entry.js +92 -0
- package/dist/cjs/snk-grid-config.cjs.entry.js +484 -0
- package/dist/cjs/snk-grid.cjs.entry.js +333 -0
- package/dist/cjs/snk-guides-viewer-5e22097d.js +345 -0
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +29 -0
- package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js +210 -0
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +303 -0
- package/dist/cjs/snk-pesquisa.cjs.entry.js +324 -0
- package/dist/cjs/snk-print-selector.cjs.entry.js +167 -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 +296 -0
- package/dist/cjs/snk-tab-config.cjs.entry.js +331 -0
- package/dist/cjs/snk-taskbar-custom-elements.cjs.entry.js +20 -0
- package/dist/cjs/snk-taskbar.cjs.entry.js +287 -0
- package/dist/cjs/taskbar-elements-39949c7a.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 +172 -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 +342 -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 +143 -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 +2055 -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 +311 -0
- package/dist/collection/components/snk-crud/snk-crud.css +6 -0
- package/dist/collection/components/snk-crud/snk-crud.js +572 -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 +606 -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 +402 -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 +727 -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 +836 -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 +234 -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 +245 -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 +219 -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 +479 -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 +129 -0
- package/dist/collection/components/snk-form/snk-form.css +11 -0
- package/dist/collection/components/snk-form/snk-form.js +260 -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 +1097 -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 +774 -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 +634 -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 +456 -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 +597 -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-custom-elements.js +43 -0
- package/dist/collection/components/snk-taskbar/snk-taskbar.css +7 -0
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +548 -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 +84 -0
- package/dist/collection/lib/dataUnit/InMemoryLoader.js +86 -0
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +490 -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 +127 -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 +14 -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/resourceid/ResourceIDUtils.js +7 -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 +210 -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 +54 -0
- package/dist/collection/lib/workspace/workspace.js +19 -0
- package/dist/components/AuthorizationConfig.js +7 -0
- package/dist/components/ConfigStorage.js +419 -0
- package/dist/components/DataFetcher.js +6981 -0
- package/dist/components/ParamType.js +13 -0
- package/dist/components/PersonalizedFilterUtils.js +260 -0
- package/dist/components/PrintUtils.js +213 -0
- package/dist/components/ResourceIDUtils.js +10 -0
- package/dist/components/SnkFormConfigManager.js +132 -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-item-type.enum.js +15 -0
- package/dist/components/form-config-fetcher.js +241 -0
- package/dist/components/index.d.ts +80 -0
- package/dist/components/index.js +51 -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/snk-actions-button.d.ts +11 -0
- package/dist/components/snk-actions-button.js +6 -0
- package/dist/components/snk-actions-button2.js +732 -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 +1004 -0
- package/dist/components/snk-attach.d.ts +11 -0
- package/dist/components/snk-attach.js +6 -0
- package/dist/components/snk-attach2.js +497 -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 +120 -0
- package/dist/components/snk-crud.d.ts +11 -0
- package/dist/components/snk-crud.js +410 -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 +943 -0
- package/dist/components/snk-entity-list.d.ts +11 -0
- package/dist/components/snk-entity-list.js +134 -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 +182 -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 +129 -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 +1017 -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 +134 -0
- package/dist/components/snk-form.d.ts +11 -0
- package/dist/components/snk-form.js +133 -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 +501 -0
- package/dist/components/snk-grid.d.ts +11 -0
- package/dist/components/snk-grid.js +6 -0
- package/dist/components/snk-grid2.js +464 -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 +347 -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-custom-elements.d.ts +11 -0
- package/dist/components/snk-taskbar-custom-elements.js +35 -0
- package/dist/components/snk-taskbar.d.ts +11 -0
- package/dist/components/snk-taskbar.js +6 -0
- package/dist/components/snk-taskbar2.js +444 -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-f359573c.js +419 -0
- package/dist/esm/DataFetcher-8daff9ad.js +6981 -0
- package/dist/esm/ISave-4412b20c.js +8 -0
- package/dist/esm/ParamType-d5152b06.js +13 -0
- package/dist/esm/PersonalizedFilterUtils-75fb0106.js +218 -0
- package/dist/esm/PrintUtils-3e4ff0f5.js +213 -0
- package/dist/esm/ResourceIDUtils-a114189a.js +10 -0
- package/dist/esm/SnkFormConfigManager-35876bad.js +132 -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-299fed55.js +32 -0
- package/dist/esm/constants-3644f1b6.js +90 -0
- package/dist/esm/dataunit-fetcher-bd8f9572.js +354 -0
- package/dist/esm/draggable.bundle-41d56f06.js +6884 -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-8ef7be16.js +241 -0
- package/dist/esm/index-1564817d.js +33 -0
- package/dist/esm/index-620ac460.js +7 -0
- package/dist/esm/index-a7d3d3f1.js +2300 -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-27819123.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/sankhyablocks.js +18 -0
- package/dist/esm/snk-actions-button.entry.js +709 -0
- package/dist/esm/snk-actions-form.entry.js +196 -0
- package/dist/esm/snk-application.entry.js +943 -0
- package/dist/esm/snk-attach.entry.js +443 -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 +96 -0
- package/dist/esm/snk-crud.entry.js +196 -0
- package/dist/esm/snk-data-exporter.entry.js +517 -0
- package/dist/esm/snk-data-unit-1715d2f1.js +450 -0
- package/dist/esm/snk-data-unit.entry.js +5 -0
- package/dist/esm/snk-detail-view.entry.js +269 -0
- package/dist/esm/snk-entity-list.entry.js +110 -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 +504 -0
- package/dist/esm/snk-filter-binary-select.entry.js +87 -0
- package/dist/esm/snk-filter-detail.entry.js +165 -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 +109 -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 +977 -0
- package/dist/esm/snk-form-summary.entry.js +57 -0
- package/dist/esm/snk-form-view.entry.js +100 -0
- package/dist/esm/snk-form.entry.js +88 -0
- package/dist/esm/snk-grid-config.entry.js +480 -0
- package/dist/esm/snk-grid.entry.js +329 -0
- package/dist/esm/snk-guides-viewer-b0e32a7d.js +343 -0
- package/dist/esm/snk-guides-viewer.entry.js +21 -0
- package/dist/esm/snk-personalized-filter-editor.entry.js +206 -0
- package/dist/esm/snk-personalized-filter.entry.js +299 -0
- package/dist/esm/snk-pesquisa.entry.js +320 -0
- package/dist/esm/snk-print-selector.entry.js +159 -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 +292 -0
- package/dist/esm/snk-tab-config.entry.js +327 -0
- package/dist/esm/snk-taskbar-custom-elements.entry.js +16 -0
- package/dist/esm/snk-taskbar.entry.js +283 -0
- package/dist/esm/taskbar-elements-0a6b8b95.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-0df2ead8.entry.js +11 -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-219f888d.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-324ce41e.entry.js +1 -0
- package/dist/sankhyablocks/p-34604220.entry.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-648a7c72.entry.js +1 -0
- package/dist/sankhyablocks/p-688dcb4c.js +1 -0
- package/dist/sankhyablocks/p-6a38bda5.entry.js +1 -0
- package/dist/sankhyablocks/p-6dc031de.js +1 -0
- package/dist/sankhyablocks/p-72fc257b.entry.js +1 -0
- package/dist/sankhyablocks/p-7bcd2f89.js +56 -0
- package/dist/sankhyablocks/p-7bd5aea7.js +1 -0
- package/dist/sankhyablocks/p-8014cc25.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-8d884fab.js +1 -0
- package/dist/sankhyablocks/p-928efcaa.entry.js +1 -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-96a89d58.entry.js +1 -0
- package/dist/sankhyablocks/p-989937ee.entry.js +1 -0
- package/dist/sankhyablocks/p-9a270401.entry.js +1 -0
- package/dist/sankhyablocks/p-9d3a025a.entry.js +1 -0
- package/dist/sankhyablocks/p-9e7d65a4.js +1 -0
- package/dist/sankhyablocks/p-a1e1b305.entry.js +1 -0
- package/dist/sankhyablocks/p-a7ee0e6f.entry.js +1 -0
- package/dist/sankhyablocks/p-ac0556a3.js +1 -0
- package/dist/sankhyablocks/p-ac8d1cd6.entry.js +1 -0
- package/dist/sankhyablocks/p-ae6aff81.js +1 -0
- package/dist/sankhyablocks/p-b13cb8b5.js +6 -0
- package/dist/sankhyablocks/p-b244640b.js +1 -0
- package/dist/sankhyablocks/p-b6d6b172.js +1 -0
- package/dist/sankhyablocks/p-bba91710.entry.js +1 -0
- package/dist/sankhyablocks/p-bd628455.entry.js +1 -0
- package/dist/sankhyablocks/p-c2beb95c.js +1 -0
- package/dist/sankhyablocks/p-c555075c.entry.js +1 -0
- package/dist/sankhyablocks/p-c870b530.js +26 -0
- package/dist/sankhyablocks/p-c9841939.js +1 -0
- package/dist/sankhyablocks/p-cb37982f.entry.js +1 -0
- package/dist/sankhyablocks/p-d2d301a6.js +2 -0
- package/dist/sankhyablocks/p-d3ec3586.entry.js +1 -0
- package/dist/sankhyablocks/p-d4f9ee17.entry.js +1 -0
- package/dist/sankhyablocks/p-d708b4ab.entry.js +1 -0
- package/dist/sankhyablocks/p-d84bc5c1.js +1 -0
- package/dist/sankhyablocks/p-d9804798.js +1 -0
- package/dist/sankhyablocks/p-dc36cfbf.js +1 -0
- package/dist/sankhyablocks/p-de76b8a8.js +76 -0
- package/dist/sankhyablocks/p-e19014a9.entry.js +1 -0
- package/dist/sankhyablocks/p-e1cb1f0b.js +1 -0
- package/dist/sankhyablocks/p-e3a82e1c.entry.js +1 -0
- package/dist/sankhyablocks/p-e9b53a9a.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-ebf8c5df.entry.js +1 -0
- package/dist/sankhyablocks/p-ed5f1204.entry.js +1 -0
- package/dist/sankhyablocks/p-f30526a7.entry.js +1 -0
- package/dist/sankhyablocks/p-f4184ce7.js +1 -0
- package/dist/sankhyablocks/p-f9395c20.entry.js +1 -0
- package/dist/sankhyablocks/p-f94b999e.entry.js +1 -0
- package/dist/sankhyablocks/p-fa9d3f73.js +1 -0
- package/dist/sankhyablocks/p-fb1ecd0b.entry.js +1 -0
- package/dist/sankhyablocks/p-fcd09423.entry.js +1 -0
- package/dist/sankhyablocks/p-fd15aaac.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 +28 -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 +275 -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 +72 -0
- package/dist/types/components/snk-crud/snk-crud.d.ts +120 -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 +110 -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 +81 -0
- package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +138 -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 +42 -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 +46 -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 +34 -0
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +83 -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 +24 -0
- package/dist/types/components/snk-form/snk-form.d.ts +54 -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 +146 -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 +139 -0
- package/dist/types/components/snk-grid/subcomponents/snk-grid-config/snk-grid-config.d.ts +78 -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 +70 -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 +84 -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-custom-elements.d.ts +7 -0
- package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +133 -0
- package/dist/types/components/teste-pesquisa/teste-pesquisa.d.ts +6 -0
- package/dist/types/components.d.ts +3257 -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 +25 -0
- package/dist/types/lib/dataUnit/InMemoryLoader.d.ts +18 -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 +10 -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 +15 -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/resourceid/ResourceIDUtils.d.ts +3 -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 +55 -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 +18 -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 +52 -0
- package/react/components.js +55 -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,345 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./index-f9e81701.js');
|
|
4
|
+
const core = require('@sankhyalabs/core');
|
|
5
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-5b485cd4.js');
|
|
6
|
+
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
|
7
|
+
const taskbarProcessor = require('./taskbar-processor-bce3f499.js');
|
|
8
|
+
const taskbarElements = require('./taskbar-elements-39949c7a.js');
|
|
9
|
+
const constants = require('./constants-d187e03e.js');
|
|
10
|
+
require('./DataFetcher-bd3d53a8.js');
|
|
11
|
+
require('./pesquisa-fetcher-3356b3df.js');
|
|
12
|
+
const index$1 = require('./index-0e663819.js');
|
|
13
|
+
require('./ISave-d68ce3cd.js');
|
|
14
|
+
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
15
|
+
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
16
|
+
require('./filter-item-type.enum-aa823a00.js');
|
|
17
|
+
require('./form-config-fetcher-f6cb55e6.js');
|
|
18
|
+
const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
|
19
|
+
|
|
20
|
+
const snkGuidesViewerCss = ".sc-snk-guides-viewer-h{--snk-guides-viewer--space-large:var(--space--large, 24px);--snk-guides-viewer--space-medium:var(--space--medium, 12px);--snk-guides-viewer__header--min-height:94px;--snk-guides-viewer__header--z-index:var(--more-visible, 2);--snk-guides-viewer__header--background-color:var(--background--body, #fafcff);--snk-guides-viewer__guide-navigator--width:340px;display:block}snk-form-view.sc-snk-guides-viewer{width:100%}.snk-guides-viewer.sc-snk-guides-viewer{position:relative;padding-left:0px;padding-top:0px;padding-right:var(--snk-guides-viewer--space-large);padding-bottom:var(--snk-guides-viewer--space-large)}.snk-guides-viewer__detail-container.sc-snk-guides-viewer{display:flex;row-gap:24px;flex-direction:column}.snk-guides-viewer__header.sc-snk-guides-viewer{position:sticky;align-items:center;top:0;z-index:var(--snk-guides-viewer__header--z-index);background-color:var(--snk-guides-viewer__header--background-color);min-height:var(--snk-guides-viewer__header--min-height);width:calc(100% + (var(--snk-guides-viewer--space-large) * 2));padding-left:var(--snk-guides-viewer--space-large);padding-right:var(--snk-guides-viewer--space-large);padding-top:var(--snk-guides-viewer--space-large);padding-bottom:var(--snk-guides-viewer--space-medium);margin-left:calc(var(--snk-guides-viewer--space-large) * -1);margin-right:calc(var(--snk-guides-viewer--space-large) * -1);margin-bottom:var(--snk-guides-viewer--space-medium)}.snk-guides-viewer__container.sc-snk-guides-viewer{display:grid;grid-template-columns:minmax(0, auto) minmax(0, 100%);height:100%;column-gap:var(--snk-guides-viewer--space-large)}.snk-guides-viewer__guide-navigator.sc-snk-guides-viewer{position:sticky;top:calc(var(--snk-guides-viewer__header--min-height) + var(--snk-guides-viewer--space-medium));height:calc(100vh - var(--snk-guides-viewer__header--min-height) - var(--snk-guides-viewer--space-large) - var(--snk-guides-viewer--space-medium))}.snk-guides-viewer__guide-navigator[open].sc-snk-guides-viewer{width:var(--snk-guides-viewer__guide-navigator--width);max-width:var(--snk-guides-viewer__guide-navigator--width);min-width:var(--snk-guides-viewer__guide-navigator--width)}.snk-guides-viewer__detail-content.sc-snk-guides-viewer{min-height:100%;align-items:flex-start;align-content:flex-start}";
|
|
21
|
+
|
|
22
|
+
const FORM_NAME_PREFIX = "__FORM:";
|
|
23
|
+
const SnkGuidesViewer = class {
|
|
24
|
+
constructor(hostRef) {
|
|
25
|
+
index.registerInstance(this, hostRef);
|
|
26
|
+
this.exit = index.createEvent(this, "exit", 7);
|
|
27
|
+
this.actionClick = index.createEvent(this, "actionClick", 7);
|
|
28
|
+
this.formItemsReady = index.createEvent(this, "formItemsReady", 7);
|
|
29
|
+
this._guideBuilders = new Map();
|
|
30
|
+
this.dataUnit = undefined;
|
|
31
|
+
this.dataState = undefined;
|
|
32
|
+
this.configName = undefined;
|
|
33
|
+
this.entityPath = undefined;
|
|
34
|
+
this.actionsList = undefined;
|
|
35
|
+
this.recordsValidator = undefined;
|
|
36
|
+
this.masterFormConfig = undefined;
|
|
37
|
+
this.selectedGuide = undefined;
|
|
38
|
+
this.taskbarManager = undefined;
|
|
39
|
+
this.messagesBuilder = undefined;
|
|
40
|
+
this.canEdit = true;
|
|
41
|
+
this.presentationMode = undefined;
|
|
42
|
+
this.resourceID = undefined;
|
|
43
|
+
this.detailTaskbarCustomContainerId = undefined;
|
|
44
|
+
this._breadcrumbItems = [];
|
|
45
|
+
this._guides = undefined;
|
|
46
|
+
this._formEditorConfigManager = undefined;
|
|
47
|
+
this._formEditorDataUnit = undefined;
|
|
48
|
+
}
|
|
49
|
+
observeDataUnit() {
|
|
50
|
+
this.loadGuides(true);
|
|
51
|
+
}
|
|
52
|
+
observeDataState(newValue, oldValue) {
|
|
53
|
+
const newRecord = newValue === null || newValue === void 0 ? void 0 : newValue.selectedRecord;
|
|
54
|
+
const oldRecord = oldValue === null || oldValue === void 0 ? void 0 : oldValue.selectedRecord;
|
|
55
|
+
if ((newRecord === null || newRecord === void 0 ? void 0 : newRecord.__record__id__) !== (oldRecord === null || oldRecord === void 0 ? void 0 : oldRecord.__record__id__)) {
|
|
56
|
+
this.loadGuides((oldValue === null || oldValue === void 0 ? void 0 : oldValue.insertionMode) != (newValue === null || newValue === void 0 ? void 0 : newValue.insertionMode));
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
observeMasterFormConfig() {
|
|
60
|
+
this.loadGuides(this.noGuideSelected());
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Abre o configurador do formulário
|
|
64
|
+
* @param detail - Define se a configuração que está sendo carregada é
|
|
65
|
+
* referente a um form detail.
|
|
66
|
+
*/
|
|
67
|
+
async showFormConfig(detail = false) {
|
|
68
|
+
const masterConfig = !detail || this._currentDetail == undefined;
|
|
69
|
+
this._formEditorConfigManager = masterConfig ? this._configManager : this._currentDetail.formConfigManager;
|
|
70
|
+
this._formEditorDataUnit = masterConfig ? this.dataUnit : this._currentDetail.dataUnit;
|
|
71
|
+
}
|
|
72
|
+
exitViewer() {
|
|
73
|
+
if (this.dataUnit.isDirty()) {
|
|
74
|
+
this.dataUnit.cancelEdition({ after: () => this.exit.emit() });
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
this.exit.emit();
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
onActionClick(evt) {
|
|
81
|
+
if (evt.detail === taskbarElements.TaskbarElement.CONFIGURATOR) {
|
|
82
|
+
if (evt.target.dataset.taskbarOwner != "master") {
|
|
83
|
+
this._snkConfigurator.open();
|
|
84
|
+
evt.stopImmediatePropagation();
|
|
85
|
+
evt.stopPropagation();
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
onContentCardChanged(evt) {
|
|
90
|
+
SnkGuidesViewer.updateContentCard(evt.detail.formName, evt.detail.cardConfig, evt.detail.propertyChanged, this._configManager)
|
|
91
|
+
.then(() => this.masterFormConfig = this._configManager.getConfig(this.dataState.insertionMode, this.dataUnit));
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Conforme mecanismo de mensagens, é possível customizar as mensagens dos blocos de construção
|
|
95
|
+
* através de um pequeno modulo na estrutura da aplicação:
|
|
96
|
+
* - Criar um arquivo no seguinte caminho: /messages/appmessages.msg.js.
|
|
97
|
+
* Para conhecer os detalhes do módulo, vide o arquivo neste projeto "/src/lib/message/resources/snk-crud.msg.ts"
|
|
98
|
+
*/
|
|
99
|
+
getMessage(key) {
|
|
100
|
+
return this.messagesBuilder.getMessage(key, this.dataUnit.getSelectedRecord());
|
|
101
|
+
}
|
|
102
|
+
loadGuides(changeSelection) {
|
|
103
|
+
if (!this.dataUnit) {
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
if (!this._configManager.isLoaded) {
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
this._masterFormMetadata = form.buildFormMetadata(this.masterFormConfig, this.dataUnit, true);
|
|
110
|
+
const allSheets = this._masterFormMetadata.getAllSheets();
|
|
111
|
+
const currentRecord = this.dataUnit.getSelectedRecord();
|
|
112
|
+
const disableDetails = !currentRecord || this.dataUnit.isNewRecord(currentRecord.__record__id__);
|
|
113
|
+
const guides = [];
|
|
114
|
+
Array.from(allSheets.values()).forEach((sheet) => {
|
|
115
|
+
const item = { id: sheet.name, label: sheet.label };
|
|
116
|
+
if (this.isDetail(sheet.name) && disableDetails) {
|
|
117
|
+
item.tooltip = "Para alterar detalhes é necessário estar com um registro selecionado.";
|
|
118
|
+
item.disabled = true;
|
|
119
|
+
}
|
|
120
|
+
guides.push(item);
|
|
121
|
+
});
|
|
122
|
+
this._guides = guides;
|
|
123
|
+
if (this._guideNavigator) {
|
|
124
|
+
this._guideNavigator.updateItem(this._guides);
|
|
125
|
+
}
|
|
126
|
+
if (changeSelection) {
|
|
127
|
+
this.selectedGuide = this._guides.length > 0 ? this._guides[0] : undefined;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
isDetail(formId) {
|
|
131
|
+
return form.FormMetadata.getDetailName(formId) != undefined;
|
|
132
|
+
}
|
|
133
|
+
updateGuide(guideBuilder) {
|
|
134
|
+
this._guideBuilders.set(guideBuilder.id, guideBuilder);
|
|
135
|
+
const guideItem = guideBuilder.buildGuideItem(this._guideBuilders);
|
|
136
|
+
if (this._guideNavigator) {
|
|
137
|
+
this._guideNavigator.updateItem(guideItem).then(() => {
|
|
138
|
+
this._guideNavigator.getCurrentPath().then(breadcrumbs => {
|
|
139
|
+
this._breadcrumbItems = breadcrumbs;
|
|
140
|
+
});
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
loadTaskbarProcessor() {
|
|
145
|
+
var _a, _b;
|
|
146
|
+
const taskbarId = ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.isDirty) ? "snkGuideViewer.finish_edition" : "snkGuideViewer.regular";
|
|
147
|
+
const disabledButtons = [];
|
|
148
|
+
if (!this.dataState || !this.dataState.hasPrevious) {
|
|
149
|
+
disabledButtons.push("PREVIOUS");
|
|
150
|
+
}
|
|
151
|
+
if (!this.dataState || !this.dataState.hasNext) {
|
|
152
|
+
disabledButtons.push("NEXT");
|
|
153
|
+
}
|
|
154
|
+
if ((_b = this.dataState) === null || _b === void 0 ? void 0 : _b.selectionInfo) {
|
|
155
|
+
if (this.dataState.selectionInfo.length > 1) {
|
|
156
|
+
disabledButtons.push("CLONE");
|
|
157
|
+
}
|
|
158
|
+
if (this.dataState.selectionInfo.isAllRecords()) {
|
|
159
|
+
disabledButtons.push("REMOVE");
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
const btnsRegularMode = ["PREVIOUS", "NEXT", "DIVIDER", "ATTACH", "CLONE", "REMOVE", "MORE_OPTIONS", "ACTIONS_BUTTON", "DIVIDER", "GRID_MODE", "CONFIGURATOR"];
|
|
163
|
+
if (this.presentationMode == index$1.PresentationMode.SECONDARY) {
|
|
164
|
+
btnsRegularMode.unshift("INSERT");
|
|
165
|
+
}
|
|
166
|
+
else {
|
|
167
|
+
btnsRegularMode.push("INSERT");
|
|
168
|
+
}
|
|
169
|
+
const invisibleButtons = this.getInvisibleButtons();
|
|
170
|
+
this._taskbarProcessor = new taskbarProcessor.TaskbarProcessor({
|
|
171
|
+
"snkGuideViewer.regular": btnsRegularMode,
|
|
172
|
+
"snkGuideViewer.finish_edition": ["CANCEL", "SAVE"],
|
|
173
|
+
});
|
|
174
|
+
this._taskbarProcessor.process(taskbarId, this.taskbarManager, this.dataState, disabledButtons, invisibleButtons);
|
|
175
|
+
}
|
|
176
|
+
getInvisibleButtons() {
|
|
177
|
+
const invisibleButtons = [];
|
|
178
|
+
if (this.dataState && this.dataState.selectionInfo.mode === DataUnit.SelectionMode.ALL_RECORDS)
|
|
179
|
+
invisibleButtons.push("ACTIONS_BUTTON");
|
|
180
|
+
return invisibleButtons;
|
|
181
|
+
}
|
|
182
|
+
static updateContentCard(formName, cardConfig, propertyChanged, configManager) {
|
|
183
|
+
return configManager.saveCardState(formName, cardConfig, propertyChanged);
|
|
184
|
+
}
|
|
185
|
+
static buildFixedForms(formConfig, formMetadata, selectedForm, dataUnit, recordsValidator, levelPath) {
|
|
186
|
+
const cardsState = formConfig === null || formConfig === void 0 ? void 0 : formConfig.cardsState;
|
|
187
|
+
if (cardsState == undefined) {
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
return (index.h(index.Fragment, null, Array.from(cardsState.entries())
|
|
191
|
+
.filter(([formName, cardConfig]) => (cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.fixed) && formName != selectedForm)
|
|
192
|
+
.sort(([, cardConfigA], [, cardConfigB]) => {
|
|
193
|
+
const indexA = (cardConfigA === null || cardConfigA === void 0 ? void 0 : cardConfigA.fixSequence) || 0;
|
|
194
|
+
const indexB = (cardConfigB === null || cardConfigB === void 0 ? void 0 : cardConfigB.fixSequence) || 0;
|
|
195
|
+
return indexA - indexB;
|
|
196
|
+
})
|
|
197
|
+
.map(([formName, cardConfig]) => {
|
|
198
|
+
var _a;
|
|
199
|
+
const sheet = formMetadata.getSheet(formName);
|
|
200
|
+
if (sheet == undefined) {
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
return index.h("snk-form-view", { levelPath: levelPath, label: sheet.label, name: formName, fields: sheet.fields, formMetadata: formMetadata, dataUnit: dataUnit, recordsValidator: recordsValidator, contracted: (cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.presentation) === "CONTRACTED", fixed: cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.fixed, summaryFields: (_a = formConfig === null || formConfig === void 0 ? void 0 : formConfig.summary) === null || _a === void 0 ? void 0 : _a.get(formName), key: formName });
|
|
204
|
+
})));
|
|
205
|
+
}
|
|
206
|
+
wrapDetail(levels, content) {
|
|
207
|
+
if (levels.length === 0) {
|
|
208
|
+
return content;
|
|
209
|
+
}
|
|
210
|
+
const currentLevel = levels.pop();
|
|
211
|
+
const childEntityName = form.FormMetadata.getDetailName(currentLevel);
|
|
212
|
+
if (childEntityName) {
|
|
213
|
+
return this.wrapDetail(levels, index.h("snk-data-unit", { dataUnitName: `${this.getDataUnitName(levels, childEntityName)}`, entityName: childEntityName }, content));
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
getDataUnitName(levels, entityName) {
|
|
217
|
+
if (levels.length > 0) {
|
|
218
|
+
const entityNames = levels.map(level => form.FormMetadata.getDetailName(level));
|
|
219
|
+
return `${this.entityPath}/${entityNames.join("/")}/${entityName}`;
|
|
220
|
+
}
|
|
221
|
+
return `${this.entityPath}/${entityName}`;
|
|
222
|
+
}
|
|
223
|
+
getContent() {
|
|
224
|
+
var _a, _b, _c, _d, _e;
|
|
225
|
+
if (!this.selectedGuide) {
|
|
226
|
+
return;
|
|
227
|
+
}
|
|
228
|
+
const guideId = this.selectedGuide.id;
|
|
229
|
+
let content;
|
|
230
|
+
const levels = guideId.split("::");
|
|
231
|
+
const currentLevel = levels.pop();
|
|
232
|
+
const childEntityName = form.FormMetadata.getDetailName(currentLevel);
|
|
233
|
+
let detailId = guideId;
|
|
234
|
+
if (childEntityName || levels.length > 0) {
|
|
235
|
+
let formName;
|
|
236
|
+
let detailBranch;
|
|
237
|
+
if (guideId.includes(FORM_NAME_PREFIX)) {
|
|
238
|
+
[detailId, formName] = guideId.split(FORM_NAME_PREFIX);
|
|
239
|
+
const pathSize = ((_a = this._breadcrumbItems) === null || _a === void 0 ? void 0 : _a.length) || 0;
|
|
240
|
+
detailBranch = pathSize > 1 ? this._breadcrumbItems[pathSize - 2] : this.selectedGuide;
|
|
241
|
+
}
|
|
242
|
+
else {
|
|
243
|
+
detailBranch = this.selectedGuide;
|
|
244
|
+
}
|
|
245
|
+
content = this.wrapDetail(levels, index.h("snk-detail-view", { ref: (ref) => this._currentDetail = ref, dataUnitName: this.getDataUnitName(levels, childEntityName), onSnkDetailGuidesChange: (evt) => this.updateGuide(evt.detail), entityName: childEntityName, selectedForm: formName, branchGuide: detailBranch, guideItemPath: this._breadcrumbItems, key: `detail${detailId}`, canEdit: this.canEdit, onSnkSwitchGuide: evt => this._guideNavigator.selectGuide(evt.detail), resourceID: this.resourceID, taskbarCustomContainerId: this.detailTaskbarCustomContainerId }));
|
|
246
|
+
}
|
|
247
|
+
else {
|
|
248
|
+
const cardId = this.selectedGuide.id;
|
|
249
|
+
const sheet = this._masterFormMetadata.getSheet(cardId);
|
|
250
|
+
if (sheet) {
|
|
251
|
+
const cardConfig = (_c = (_b = this.masterFormConfig) === null || _b === void 0 ? void 0 : _b.cardsState) === null || _c === void 0 ? void 0 : _c.get(cardId);
|
|
252
|
+
content = index.h("snk-form-view", { ref: ref => this._mainForm = ref, fixed: cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.fixed, summaryFields: (_e = (_d = this.masterFormConfig) === null || _d === void 0 ? void 0 : _d.summary) === null || _e === void 0 ? void 0 : _e.get(cardId), name: cardId, label: sheet.label, fields: sheet.fields, dataUnit: this.dataUnit, formMetadata: this._masterFormMetadata, recordsValidator: this.recordsValidator, key: guideId }, this.presentationMode == index$1.PresentationMode.SECONDARY && this.buildTaskBar());
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
return content;
|
|
256
|
+
}
|
|
257
|
+
onBreadcrumbClickHandler(item) {
|
|
258
|
+
if ((item === null || item === void 0 ? void 0 : item.id) == undefined) {
|
|
259
|
+
return;
|
|
260
|
+
}
|
|
261
|
+
this._guideNavigator.selectGuide(item.id);
|
|
262
|
+
}
|
|
263
|
+
updateSelectedGuideHandler(currentItem) {
|
|
264
|
+
this._guideHasChanged = this.selectedGuide != currentItem;
|
|
265
|
+
this.selectedGuide = currentItem;
|
|
266
|
+
this._guideNavigator.getCurrentPath().then(breadcrumbs => {
|
|
267
|
+
this._breadcrumbItems = breadcrumbs;
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
getConfigViewMode() {
|
|
271
|
+
return constants.VIEW_MODE.GRID;
|
|
272
|
+
}
|
|
273
|
+
changeConfigViewMode(mode) {
|
|
274
|
+
if (this._currentDetail) {
|
|
275
|
+
this._currentDetail.changeViewMode(mode);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
openConfig(mode) {
|
|
279
|
+
this._snkConfigurator.close();
|
|
280
|
+
if (this._currentDetail) {
|
|
281
|
+
if (mode === constants.VIEW_MODE.FORM) {
|
|
282
|
+
this.showFormConfig(true);
|
|
283
|
+
}
|
|
284
|
+
else {
|
|
285
|
+
this._currentDetail.configGrid();
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
noGuideSelected() {
|
|
290
|
+
var _a;
|
|
291
|
+
return this.selectedGuide === undefined || '__main' === ((_a = this.selectedGuide) === null || _a === void 0 ? void 0 : _a.id);
|
|
292
|
+
}
|
|
293
|
+
componentWillLoad() {
|
|
294
|
+
if (this.resourceID == undefined) {
|
|
295
|
+
throw new Error("Erro interno: resourceID não informado");
|
|
296
|
+
}
|
|
297
|
+
this._configManager = new SnkFormConfigManager.SnkFormConfigManager(this.configName, this.resourceID, config => this.masterFormConfig = config);
|
|
298
|
+
this._configManager.loadConfig();
|
|
299
|
+
}
|
|
300
|
+
componentDidRender() {
|
|
301
|
+
if (!this._guideHasChanged) {
|
|
302
|
+
return;
|
|
303
|
+
}
|
|
304
|
+
if (this._currentDetail) {
|
|
305
|
+
this._currentDetail.showUp();
|
|
306
|
+
}
|
|
307
|
+
else {
|
|
308
|
+
if (this._mainForm) {
|
|
309
|
+
this._mainForm.showUp();
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
this._guideHasChanged = false;
|
|
313
|
+
}
|
|
314
|
+
buildTaskBar() {
|
|
315
|
+
var _a;
|
|
316
|
+
return index.h("div", { class: `ez-col ez-flex-item--align-center ez-col--sd-6 ez-col--tb-6 ${this.presentationMode != index$1.PresentationMode.SECONDARY ? 'ez-align--right' : 'ez-padding-bottom--medium'}` }, index.h("snk-taskbar", { key: "guideViewerTaskbar", "data-element-id": "guideViewer", configName: this.configName, buttons: this._taskbarProcessor.buttons, disabledButtons: this._taskbarProcessor.disabledButtons, customButtons: this._taskbarProcessor.customButtons, actionsList: this.actionsList, messagesBuilder: this.messagesBuilder, presentationMode: this.presentationMode, primaryButton: ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.isDirty) ? "SAVE" : "INSERT", "data-taskbar-owner": "master", dataUnit: this.dataUnit, resourceID: this.resourceID, customSlotId: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }, index.h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" })));
|
|
317
|
+
}
|
|
318
|
+
render() {
|
|
319
|
+
var _a, _b;
|
|
320
|
+
if (this._formEditorConfigManager != undefined) {
|
|
321
|
+
return (index.h("snk-form-config", { dataUnit: this._formEditorDataUnit, messagesBuilder: this.messagesBuilder, configManager: this._formEditorConfigManager, onConfigClose: () => this._formEditorConfigManager = null }));
|
|
322
|
+
}
|
|
323
|
+
if (!this.dataUnit) {
|
|
324
|
+
return;
|
|
325
|
+
}
|
|
326
|
+
if (!this._configManager.isLoaded) {
|
|
327
|
+
return;
|
|
328
|
+
}
|
|
329
|
+
this.loadTaskbarProcessor();
|
|
330
|
+
const showGuides = this._guides && (this._guides.length > 1);
|
|
331
|
+
return (index.h("section", { class: "snk-guides-viewer" }, index.h("div", { class: "ez-row snk-guides-viewer__header" }, index.h("div", { class: "ez-col ez-col--sd-6 ez-col--tb-6 ez-flex--align-items-center ez-flex-item--align-center ez-padding-left--large", key: "header" }, index.h("ez-button", { onClick: () => this.exitViewer(), title: this.getMessage("snkCrud.goBackTitle"), mode: "icon", iconName: "arrow_back", class: "ez-padding-right--medium", size: "small" }), index.h("div", { class: "ez-flex ez-flex--column ez-flex-item--auto" }, index.h("h1", { class: "ez-title ez-title--primary ez-title--xlarge" }, this.getMessage("snkCrud.title")), ((_a = this._breadcrumbItems) === null || _a === void 0 ? void 0 : _a.length) > 1 &&
|
|
332
|
+
index.h("div", { class: "ez-margin-top--extra-small" }, index.h("ez-breadcrumb", Object.assign({ items: this._breadcrumbItems, onSelectedItem: (evt) => this.onBreadcrumbClickHandler(evt === null || evt === void 0 ? void 0 : evt.detail) }, { [core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `${core.ElementIDUtils.getInternalIDInfo("breadcrumb")}` }))))), this.presentationMode != index$1.PresentationMode.SECONDARY && this.buildTaskBar()), index.h("div", { class: "snk-guides-viewer__container" }, showGuides ?
|
|
333
|
+
index.h("ez-guide-navigator", { ref: (ref) => this._guideNavigator = ref, class: "snk-guides-viewer__guide-navigator", items: this._guides, selectedId: this.selectedGuide ? this.selectedGuide.id : undefined, onEzSelectionChange: evt => this.updateSelectedGuideHandler(evt.detail) })
|
|
334
|
+
:
|
|
335
|
+
index.h("div", null), index.h("div", { class: "snk-guides-viewer__detail-container" }, SnkGuidesViewer.buildFixedForms(this.masterFormConfig, this._masterFormMetadata, (_b = this.selectedGuide) === null || _b === void 0 ? void 0 : _b.id, this.dataUnit, this.recordsValidator), this.getContent())), index.h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this.getConfigViewMode(), onConfigSelected: (evt) => this.changeConfigViewMode(evt.detail), messagesBuilder: this.messagesBuilder, onOpenConfig: (evt) => this.openConfig(evt.detail), resourceID: this.resourceID })));
|
|
336
|
+
}
|
|
337
|
+
static get watchers() { return {
|
|
338
|
+
"dataUnit": ["observeDataUnit"],
|
|
339
|
+
"dataState": ["observeDataState"],
|
|
340
|
+
"masterFormConfig": ["observeMasterFormConfig"]
|
|
341
|
+
}; }
|
|
342
|
+
};
|
|
343
|
+
SnkGuidesViewer.style = snkGuidesViewerCss;
|
|
344
|
+
|
|
345
|
+
exports.SnkGuidesViewer = SnkGuidesViewer;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const snkGuidesViewer = require('./snk-guides-viewer-5e22097d.js');
|
|
6
|
+
require('./index-f9e81701.js');
|
|
7
|
+
require('@sankhyalabs/core');
|
|
8
|
+
require('./SnkFormConfigManager-5b485cd4.js');
|
|
9
|
+
require('./ConfigStorage-0e4275f5.js');
|
|
10
|
+
require('./form-config-fetcher-f6cb55e6.js');
|
|
11
|
+
require('./DataFetcher-bd3d53a8.js');
|
|
12
|
+
require('./_commonjsHelpers-537d719a.js');
|
|
13
|
+
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
14
|
+
require('./PrintUtils-bcaeb82f.js');
|
|
15
|
+
require('./filter-item-type.enum-aa823a00.js');
|
|
16
|
+
require('@sankhyalabs/ezui/dist/collection/utils/form');
|
|
17
|
+
require('./taskbar-processor-bce3f499.js');
|
|
18
|
+
require('./taskbar-elements-39949c7a.js');
|
|
19
|
+
require('./index-0e663819.js');
|
|
20
|
+
require('./index-102ba62d.js');
|
|
21
|
+
require('./constants-d187e03e.js');
|
|
22
|
+
require('./pesquisa-fetcher-3356b3df.js');
|
|
23
|
+
require('./ISave-d68ce3cd.js');
|
|
24
|
+
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
25
|
+
require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
exports.snk_guides_viewer = snkGuidesViewer.SnkGuidesViewer;
|
|
@@ -0,0 +1,210 @@
|
|
|
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 filterItemType_enum = require('./filter-item-type.enum-aa823a00.js');
|
|
8
|
+
const presentationMode = require('./presentationMode-52ec3bdd.js');
|
|
9
|
+
const EzScrollDirection = require('@sankhyalabs/ezui/dist/collection/components/ez-scroller/EzScrollDirection');
|
|
10
|
+
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
11
|
+
|
|
12
|
+
const snkPersonalizedFilterEditorCss = ".sc-snk-personalized-filter-editor-h{--snk-filter-personalized__max-height:21;--snk-filter-personalized__max-width:21.5}.SnkFilterPersonalized_list-container.sc-snk-personalized-filter-editor{margin:0;padding:0;list-style:none;display:flex;flex-direction:column}.SnkFilterPersonalized_list-container-chip.sc-snk-personalized-filter-editor{width:400px}.SnkFilterPersonalized_list-scroller.sc-snk-personalized-filter-editor{display:block;max-height:calc(var(--space--2xl) * var(--snk-filter-personalized__max-height));cursor:auto;--ez-scroller__max-height:300px}.SnkFilterPersonalized_checkbox.sc-snk-personalized-filter-editor{display:grid;grid-template-columns:auto auto;justify-content:start}.SnkFilterPersonalized_list-container.sc-snk-personalized-filter-editor:has(.SnkFilterPersonalized_list-item--chip){gap:var(--space--small, 6px);max-width:calc(var(--space--md) * var(--snk-filter-personalized__max-width))}.SnkFilterPersonalized_list-item--modal.sc-snk-personalized-filter-editor{display:flex;border-radius:var(--border--radius-regular)}.SnkFilterPersonalized_list-item--modal.sc-snk-personalized-filter-editor:hover{background-color:var(--background--medium, #f0f3f7)}.SnkFilterPersonalized_list-actions.sc-snk-personalized-filter-editor{display:none;align-items:center}.SnkFilterPersonalized_list-item--modal.sc-snk-personalized-filter-editor:hover .SnkFilterPersonalized_list-actions.sc-snk-personalized-filter-editor{display:flex}.SnkFilterPersonalized_list-item--chip.sc-snk-personalized-filter-editor{display:flex;flex-direction:column;border:var(--border--small, 1px solid) var(--color-strokes, #DCE0E8);border-radius:var(--border--radius-regular)}.SnkFilterPersonalized_list-item--chip.sc-snk-personalized-filter-editor .sc-snk-personalized-filter-editor:first-of-type{gap:var(--space--3xs)}";
|
|
13
|
+
|
|
14
|
+
const SnkFilterPersonalized = class {
|
|
15
|
+
constructor(hostRef) {
|
|
16
|
+
index.registerInstance(this, hostRef);
|
|
17
|
+
this.deleteFilter = index.createEvent(this, "deleteFilter", 7);
|
|
18
|
+
this.editFilter = index.createEvent(this, "editFilter", 7);
|
|
19
|
+
this.addFilter = index.createEvent(this, "addFilter", 7);
|
|
20
|
+
this.valueChanged = index.createEvent(this, "valueChanged", 7);
|
|
21
|
+
this.originalItems = [];
|
|
22
|
+
this.messagesBuilder = undefined;
|
|
23
|
+
this.presentationMode = presentationMode.EPresentationMode.MODAL;
|
|
24
|
+
this.config = undefined;
|
|
25
|
+
this.value = undefined;
|
|
26
|
+
this.items = [];
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Apresenta o componente
|
|
30
|
+
*/
|
|
31
|
+
async show() {
|
|
32
|
+
const elem = document.querySelector("#param_0");
|
|
33
|
+
if (elem)
|
|
34
|
+
elem["setFocus"]();
|
|
35
|
+
}
|
|
36
|
+
configWatcher(newConfig) {
|
|
37
|
+
this.items = this.originalItems = newConfig.groupedItems || [];
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Conforme mecanismo de mensagens, é possível customizar as mensagens dos blocos de construção
|
|
41
|
+
* através de um pequeno modulo na estrutura da aplicação:
|
|
42
|
+
* - Criar um arquivo no seguinte caminho: /messages/appmessages.msg.js.
|
|
43
|
+
* Para conhecer os detalhes do módulo, vide o arquivo neste projeto "/src/lib/message/resources/snk-personalized-filter.msg.ts"
|
|
44
|
+
*/
|
|
45
|
+
getMessage(key, params) {
|
|
46
|
+
var _a;
|
|
47
|
+
if (this.messagesBuilder)
|
|
48
|
+
return this.messagesBuilder.getMessage(key, params);
|
|
49
|
+
if ((_a = this._application) === null || _a === void 0 ? void 0 : _a.messagesBuilder)
|
|
50
|
+
return this._application.messagesBuilder.getMessage(key, params);
|
|
51
|
+
}
|
|
52
|
+
getItemContent(item) {
|
|
53
|
+
var _a, _b;
|
|
54
|
+
const CheckboxElement = () => (index.h("ez-check", Object.assign({ class: "SnkFilterPersonalized_checkbox", id: `param_${item.id}`, key: item.id, compact: true, value: item.visible, label: item.label, onEzChange: ({ detail: visible }) => this.handleItemChange.bind(this)(visible, item.id) }, { [core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `${core.ElementIDUtils.getInternalIDInfo(`checkboxFilter_${item.id}`)}` })));
|
|
55
|
+
const isVariable = !!((_b = (_a = item.props) === null || _a === void 0 ? void 0 : _a.personalizedFilter) === null || _b === void 0 ? void 0 : _b.parameters.length);
|
|
56
|
+
return (index.h("div", { class: `${!this.isModalMode() ? "SnkFilterPersonalized_list-item--chip" : ""}` }, index.h("li", { class: `${this.isModalMode() ? "SnkFilterPersonalized_list-item--modal" : ""}` }, index.h("div", { class: "ez-flex ez-flex--align-items-center ez-margin-right--small ez-size-width--full" }, index.h(CheckboxElement, null), this.buildModalListActions(item, isVariable))), (item.visible && isVariable) && (index.h("div", { class: "ez-row ez-padding--small" }, this.getFormField(item)))));
|
|
57
|
+
}
|
|
58
|
+
buildModalListActions(item, isVariable) {
|
|
59
|
+
if (!this.isModalMode())
|
|
60
|
+
return;
|
|
61
|
+
return (this.isModalMode() ?
|
|
62
|
+
index.h("div", { class: "SnkFilterPersonalized_list-actions" }, index.h("ez-button", { size: "small", mode: "icon", iconName: "edit", title: this.getMessage('snkPersonalizedFilter.listActions.edit'), onClick: () => this.editFilter.emit(item.id) }), index.h("ez-button", { size: "small", mode: "icon", iconName: "delete", title: this.getMessage('snkPersonalizedFilter.listActions.delete'), onClick: this.handleDeleteFilter.bind(this, item) }))
|
|
63
|
+
:
|
|
64
|
+
isVariable && (index.h("ez-badge", Object.assign({ class: "ez-badge--warning-subtle ez-margin-right--small", label: this.getMessage('snkPersonalizedFilter.info.badgeVariable'), size: "medium" }, { [core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `${core.ElementIDUtils.getInternalIDInfo(`variableBadge_${item.id}`)}` }))));
|
|
65
|
+
}
|
|
66
|
+
isModalMode() {
|
|
67
|
+
return this.presentationMode === presentationMode.EPresentationMode.MODAL;
|
|
68
|
+
}
|
|
69
|
+
doSearch(mode, argument, param) {
|
|
70
|
+
return new Promise((resolve, reject) => {
|
|
71
|
+
this._application.executePreparedSearch(mode, argument, param.searchContext)
|
|
72
|
+
.then(result => {
|
|
73
|
+
resolve(result);
|
|
74
|
+
}).catch(reason => {
|
|
75
|
+
reject(reason);
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
getFormField(parentItem) {
|
|
80
|
+
var _a, _b;
|
|
81
|
+
const params = (_b = (_a = parentItem === null || parentItem === void 0 ? void 0 : parentItem.props) === null || _a === void 0 ? void 0 : _a.personalizedFilter) === null || _b === void 0 ? void 0 : _b.parameters;
|
|
82
|
+
return params.map((param, index$1) => {
|
|
83
|
+
var _a, _b, _c;
|
|
84
|
+
const formProp = Object.assign(Object.assign({}, param), { id: parentItem.id });
|
|
85
|
+
const value = (_a = parentItem.value) === null || _a === void 0 ? void 0 : _a[index$1];
|
|
86
|
+
const elemId = 'param_' + index$1;
|
|
87
|
+
switch (param.userInterface) {
|
|
88
|
+
case core.UserInterface.SEARCH:
|
|
89
|
+
return index.h("ez-search", { id: elemId, suppressEmptyOption: true, value: value, onEzChange: evt => this.handleFilterItemChange(evt.detail, formProp), label: param.label, optionLoader: ({ mode, argument }) => this.doSearch(mode, argument, param) });
|
|
90
|
+
case core.UserInterface.SWITCH:
|
|
91
|
+
case core.UserInterface.CHECKBOX:
|
|
92
|
+
const mode = core.UserInterface.SWITCH === param.userInterface ? utils.CheckMode.SWITCH : utils.CheckMode.REGULAR;
|
|
93
|
+
return index.h("ez-check", { id: elemId, class: "ez-padding-bottom--medium", mode: mode, value: value, label: param.label, onEzChange: evt => this.handleFilterItemChange(evt.detail, formProp) });
|
|
94
|
+
case core.UserInterface.DECIMALNUMBER:
|
|
95
|
+
return index.h("ez-number-input", { id: elemId, label: param.label, value: value, precision: ((_b = param.props) === null || _b === void 0 ? void 0 : _b.precision) || 2, onEzChange: evt => this.handleFilterItemChange(evt.detail, formProp) });
|
|
96
|
+
case core.UserInterface.INTEGERNUMBER:
|
|
97
|
+
return index.h("ez-number-input", { id: elemId, label: param.label, value: value, precision: (_c = param.props) === null || _c === void 0 ? void 0 : _c.precision, onEzChange: evt => this.handleFilterItemChange(evt.detail, formProp) });
|
|
98
|
+
case core.UserInterface.OPTIONSELECTOR:
|
|
99
|
+
return index.h("ez-combo-box", { id: elemId, label: param.label, value: value, options: param.options, onEzChange: evt => this.handleFilterItemChange(evt.detail, formProp) });
|
|
100
|
+
case core.UserInterface.DATE:
|
|
101
|
+
return index.h("ez-date-input", { id: elemId, label: param.label, value: this.parseDate(value), onEzChange: evt => this.handleFilterItemChange(evt.detail, formProp) });
|
|
102
|
+
case core.UserInterface.DATETIME:
|
|
103
|
+
return index.h("ez-date-time-input", { id: elemId, label: param.label, value: this.parseDate(value), onEzChange: evt => this.handleFilterItemChange(evt.detail, formProp) });
|
|
104
|
+
default:
|
|
105
|
+
return index.h("ez-text-input", { id: elemId, label: param.label, value: value, onEzChange: evt => this.handleFilterItemChange(evt.detail, formProp) });
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
parseDate(objValue) {
|
|
110
|
+
if (typeof objValue === "string") {
|
|
111
|
+
let date = new Date(objValue);
|
|
112
|
+
date.setMinutes(date.getMinutes() + date.getTimezoneOffset());
|
|
113
|
+
return date;
|
|
114
|
+
}
|
|
115
|
+
return objValue;
|
|
116
|
+
}
|
|
117
|
+
getVisibleCount(items) {
|
|
118
|
+
return items.reduce((total, item) => {
|
|
119
|
+
if (!!item.visible)
|
|
120
|
+
return total + 1;
|
|
121
|
+
return total;
|
|
122
|
+
}, 0);
|
|
123
|
+
}
|
|
124
|
+
handleItemChange(visible, itemId) {
|
|
125
|
+
this.items = this.originalItems = this.originalItems.map(item => {
|
|
126
|
+
const isVisible = item.id === itemId ? visible : item.visible;
|
|
127
|
+
return Object.assign(Object.assign({}, item), { visible: isVisible, active: isVisible });
|
|
128
|
+
});
|
|
129
|
+
this.emitChange();
|
|
130
|
+
}
|
|
131
|
+
handleSearchFilterList({ detail: query = "" }) {
|
|
132
|
+
this.items = query ? this.originalItems.filter(item => item.label.toLowerCase().includes(query.toLowerCase())) : this.originalItems;
|
|
133
|
+
}
|
|
134
|
+
handleFilterItemChange(value, formProp) {
|
|
135
|
+
var _a;
|
|
136
|
+
const changedItem = this.items.find(({ id }) => id === formProp.id);
|
|
137
|
+
const { parameters = [] } = ((_a = changedItem.props) === null || _a === void 0 ? void 0 : _a.personalizedFilter) || {};
|
|
138
|
+
const indexToChangedParameter = parameters.findIndex(param => param.name === formProp.name);
|
|
139
|
+
parameters[indexToChangedParameter] = formProp;
|
|
140
|
+
changedItem.props.personalizedFilter.parameters = parameters;
|
|
141
|
+
if (!changedItem.value) {
|
|
142
|
+
changedItem.value = [];
|
|
143
|
+
}
|
|
144
|
+
changedItem.value[indexToChangedParameter] = value;
|
|
145
|
+
const updatedItems = [
|
|
146
|
+
...this.items,
|
|
147
|
+
changedItem
|
|
148
|
+
];
|
|
149
|
+
this.items = Array.from(new Set(updatedItems));
|
|
150
|
+
this.emitChange();
|
|
151
|
+
}
|
|
152
|
+
handleClearFilters() {
|
|
153
|
+
this.emitChange(true);
|
|
154
|
+
}
|
|
155
|
+
emitChange(clear = false) {
|
|
156
|
+
if (clear)
|
|
157
|
+
this.items = this.originalItems;
|
|
158
|
+
const items = this.items.map(item => (Object.assign(Object.assign({}, item), { visible: !clear && item.visible })));
|
|
159
|
+
const value = this.getVisibleCount(items);
|
|
160
|
+
this.valueChanged.emit({ value, items });
|
|
161
|
+
}
|
|
162
|
+
handleDeleteFilter(item) {
|
|
163
|
+
this._application.confirm(this.getMessage('snkPersonalizedFilter.deleteConfirm.title'), this.getMessage('snkPersonalizedFilter.deleteConfirm.message', { filterName: item.label })).then((actionConfirmed) => {
|
|
164
|
+
if (!actionConfirmed)
|
|
165
|
+
return;
|
|
166
|
+
this.deleteFilter.emit(item);
|
|
167
|
+
this.items = this.originalItems = this.originalItems.filter(originalItem => originalItem.id !== item.id);
|
|
168
|
+
this.emitChange();
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
componentDidLoad() {
|
|
172
|
+
if (this._element)
|
|
173
|
+
core.ElementIDUtils.addIDInfoIfNotExists(this._element, 'filterContentEditor');
|
|
174
|
+
}
|
|
175
|
+
componentWillLoad() {
|
|
176
|
+
var _a;
|
|
177
|
+
this._application = core.ApplicationContext.getContextValue('__SNK__APPLICATION__');
|
|
178
|
+
this.items = this.originalItems = ((_a = this.config) === null || _a === void 0 ? void 0 : _a.groupedItems) || [];
|
|
179
|
+
}
|
|
180
|
+
buildModeModalHeader() {
|
|
181
|
+
if (this.presentationMode !== presentationMode.EPresentationMode.MODAL)
|
|
182
|
+
return;
|
|
183
|
+
return (index.h("div", { class: "ez-margin-bottom--medium" }, index.h(index.Fragment, null, index.h("ez-filter-input", Object.assign({ label: this.config.label, onEzChange: this.handleSearchFilterList.bind(this) }, { [core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `${core.ElementIDUtils.getInternalIDInfo("filterSearch")}` })), index.h("span", { class: "ez-text ez-title--small ez-title--primary" }, " ", this.config.detailTitle, " "))));
|
|
184
|
+
}
|
|
185
|
+
buildModeModalFooter() {
|
|
186
|
+
if (this.presentationMode !== presentationMode.EPresentationMode.MODAL)
|
|
187
|
+
return;
|
|
188
|
+
return (index.h("div", { class: "ez-flex ez-flex--justify-end grow ez-margin-top--medium ez-margin-bottom--small" }, index.h("ez-button", { class: "ez-button--tertiary ez-margin-right--small", size: "medium", label: this.getMessage('snkPersonalizedFilter.footerActions.clear'), onClick: this.handleClearFilters.bind(this) }), index.h("ez-button", { class: "ez-button--secondary ez-margin-right--small", size: "medium", label: this.getMessage('snkPersonalizedFilter.footerActions.create'), onClick: () => this.addFilter.emit() })));
|
|
189
|
+
}
|
|
190
|
+
buildContainerFiltersCreated() {
|
|
191
|
+
if (this.items.length) {
|
|
192
|
+
return (index.h("ez-scroller", { class: "SnkFilterPersonalized_list-scroller", direction: EzScrollDirection.EzScrollDirection.VERTICAL }, index.h("ul", { class: `SnkFilterPersonalized_list-container ${!this.isModalMode() ? "SnkFilterPersonalized_list-container-chip" : ""}` }, this.items.map((itemConfig) => this.getItemContent(itemConfig)))));
|
|
193
|
+
}
|
|
194
|
+
else {
|
|
195
|
+
return (index.h("div", { class: "ez-margin--auto" }, index.h("span", { class: "ez-text ez-text--secondary ez-text--small" }, this.getMessage('snkPersonalizedFilter.info.noDataFound'))));
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
render() {
|
|
199
|
+
if (!this.config || this.config.type !== filterItemType_enum.FilterItemType.PERSONALIZED)
|
|
200
|
+
return undefined;
|
|
201
|
+
return (index.h(index.Host, null, this.buildModeModalHeader(), this.buildContainerFiltersCreated(), this.buildModeModalFooter()));
|
|
202
|
+
}
|
|
203
|
+
get _element() { return index.getElement(this); }
|
|
204
|
+
static get watchers() { return {
|
|
205
|
+
"config": ["configWatcher"]
|
|
206
|
+
}; }
|
|
207
|
+
};
|
|
208
|
+
SnkFilterPersonalized.style = snkPersonalizedFilterEditorCss;
|
|
209
|
+
|
|
210
|
+
exports.snk_personalized_filter_editor = SnkFilterPersonalized;
|