@sankhyalabs/sankhyablocks 8.16.0-dev.8 → 8.16.0-dev.81
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/{ConfigStorage-a343e418.js → ConfigStorage-d024aec8.js} +2 -2
- package/dist/cjs/{IExporterProvider-597949f9.js → ContinuousInsertUtils-c27b439e.js} +66 -23
- package/dist/cjs/{DataFetcher-313debd8.js → DataFetcher-65879b2c.js} +216 -76
- package/dist/cjs/{RecordIDUtils-3735135c.js → GetSelectedRecordsIDsInfo-bd50caf1.js} +10 -10
- package/dist/cjs/{SnkFormConfigManager-166cbd1f.js → SnkFormConfigManager-c11d8468.js} +75 -17
- package/dist/cjs/{SnkMessageBuilder-722b104e.js → SnkMessageBuilder-bae64d0d.js} +7 -3
- package/dist/cjs/{auth-fetcher-54f5ff9d.js → auth-fetcher-8480751c.js} +1 -1
- package/dist/cjs/{constants-35ddd366.js → constants-241934b3.js} +9 -0
- package/dist/cjs/{dataunit-fetcher-688d3f05.js → dataunit-fetcher-8291ac21.js} +239 -43
- package/dist/cjs/{field-search-f56aa7d6.js → field-search-68e34bf4.js} +5 -1
- package/dist/cjs/{form-config-fetcher-2dd00e5b.js → form-config-fetcher-90126e4c.js} +42 -2
- package/dist/cjs/index-f9e81701.js +16 -32
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/pesquisa-fetcher-5c583c93.js +365 -0
- package/dist/cjs/pesquisa-grid_2.cjs.entry.js +156 -0
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/{snk-actions-button_4.cjs.entry.js → snk-actions-button_5.cjs.entry.js} +138 -42
- package/dist/cjs/snk-application.cjs.entry.js +293 -69
- package/dist/cjs/snk-attach.cjs.entry.js +47 -34
- package/dist/cjs/{snk-form-config.cjs.entry.js → snk-config-options_3.cjs.entry.js} +399 -13
- package/dist/cjs/snk-configurator.cjs.entry.js +2 -2
- package/dist/cjs/snk-crud.cjs.entry.js +23 -9
- package/dist/cjs/snk-data-exporter.cjs.entry.js +35 -23
- package/dist/cjs/{snk-data-unit-04df81bf.js → snk-data-unit-d75e6220.js} +54 -32
- package/dist/cjs/snk-data-unit.cjs.entry.js +5 -5
- package/dist/cjs/snk-detail-view.cjs.entry.js +13 -13
- package/dist/cjs/snk-exporter-email-sender.cjs.entry.js +1 -1
- package/dist/cjs/snk-field-config.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-bar_4.cjs.entry.js +1436 -0
- package/dist/cjs/snk-filter-binary-select.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-checkbox-list.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
- package/dist/cjs/snk-filter-text.cjs.entry.js +2 -1
- package/dist/cjs/snk-grid.cjs.entry.js +89 -24
- package/dist/cjs/{snk-guides-viewer-bdc41281.js → snk-guides-viewer-bff0d27d.js} +30 -14
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +9 -9
- package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js +4 -4
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +3 -3
- package/dist/cjs/snk-pesquisa.cjs.entry.js +111 -31
- package/dist/cjs/snk-print-selector.cjs.entry.js +1 -1
- package/dist/cjs/snk-simple-bar.cjs.entry.js +1 -1
- package/dist/cjs/snk-simple-crud.cjs.entry.js +102 -45
- package/dist/cjs/snk-tab-config.cjs.entry.js +1 -1
- package/dist/cjs/snk-taskbar.cjs.entry.js +70 -38
- package/dist/collection/collection-manifest.json +14 -31
- package/dist/collection/components/snk-actions-button/actions/index.js +16 -13
- package/dist/collection/components/snk-actions-button/interfaces/index.js +1 -0
- package/dist/collection/components/snk-actions-button/snk-actions-button.js +27 -26
- package/dist/collection/components/snk-application/request-listener/DebouncedRequestListener.js +29 -0
- package/dist/collection/components/snk-application/request-listener/RequestListenerFactory.js +16 -0
- package/dist/collection/components/snk-application/request-listener/RequestListenerLoadingBar.js +52 -0
- package/dist/collection/components/snk-application/snk-application.css +36 -0
- package/dist/collection/components/snk-application/snk-application.js +315 -64
- package/dist/collection/components/snk-attach/snk-attach.js +25 -16
- package/dist/collection/components/snk-attach/structure/builder/taskbar-builder.js +8 -4
- package/dist/collection/components/snk-attach/structure/fetcher/factory/attach-fetcher-data-unit.factory.js +2 -4
- package/dist/collection/components/snk-configurator/snk-configurator.css +1 -1
- package/dist/collection/components/snk-crud/snk-crud.js +122 -3
- package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +3 -3
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.css +6 -6
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +72 -6
- package/dist/collection/components/snk-data-exporter/exporter-email-sender/options-step.js +1 -1
- package/dist/collection/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.js +13 -7
- package/dist/collection/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.js +9 -2
- package/dist/collection/components/snk-data-exporter/interfaces/IExporterProvider.js +1 -1
- package/dist/collection/components/snk-data-exporter/providers/ClientSideExporterProvider.js +1 -1
- package/dist/collection/components/snk-data-exporter/providers/ServerSideExporterProvider.js +1 -1
- package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +3 -5
- package/dist/collection/components/snk-data-exporter/structure/ItemBuilder.js +2 -2
- package/dist/collection/components/snk-data-exporter/test/resources/ClientSideExporterStrategyResources.js +4 -4
- package/dist/collection/components/snk-data-exporter/utils/ParserExport.js +1 -1
- package/dist/collection/components/snk-data-unit/snk-data-unit.js +52 -30
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.js +1 -1
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-checkbox-list.js +1 -1
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-text.js +2 -1
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.css +13 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.js +3 -3
- package/dist/collection/components/snk-filter-bar/filter-item/filter-item-type-mask.enum.js +8 -0
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +5 -1
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.css +1 -1
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +3 -1
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +1 -1
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +118 -28
- package/dist/collection/components/snk-form/snk-form.js +2 -2
- package/dist/collection/components/snk-form-config/SnkFormConfigManager.js +73 -15
- package/dist/collection/components/snk-form-config/snk-form-config.css +8 -3
- package/dist/collection/components/snk-form-config/snk-form-config.js +49 -8
- package/dist/collection/components/snk-grid/snk-grid.css +2 -0
- package/dist/collection/components/snk-grid/snk-grid.js +170 -11
- package/dist/collection/components/snk-grid-config/snk-grid-config.css +1 -1
- package/dist/collection/components/snk-pesquisa/pesquisa-grid/pesquisa-grid.css +9 -0
- package/dist/collection/components/snk-pesquisa/pesquisa-grid/pesquisa-grid.js +226 -0
- package/dist/collection/components/snk-pesquisa/pesquisa-tree/pesquisa-tree.css +28 -0
- package/dist/collection/components/snk-pesquisa/pesquisa-tree/pesquisa-tree.js +208 -0
- package/dist/collection/components/snk-pesquisa/pesquisaHelper.js +99 -0
- package/dist/collection/components/snk-pesquisa/snk-pesquisa.css +35 -6
- package/dist/collection/components/snk-pesquisa/snk-pesquisa.js +174 -32
- package/dist/collection/components/snk-print-selector/snk-print-selector.js +1 -1
- package/dist/collection/components/snk-simple-bar/snk-simple-bar.js +1 -1
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.css +1 -1
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +180 -34
- package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.css +22 -0
- package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.js +181 -0
- package/dist/collection/components/snk-taskbar/processor/taskbar-processor.js +5 -1
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +112 -38
- package/dist/collection/lib/DefaultCustomFormatters/RmPrecisionCustomValueFormatter.js +3 -3
- package/dist/collection/lib/dataUnit/InMemoryLoader.js +2 -4
- package/dist/collection/lib/dataUnit/dataUnitInMemoryUtils.js +34 -9
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +29 -21
- package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/anexo-sistema-fetcher.js +7 -5
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/DataUnitDataLoader.js +59 -14
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/ArrayRepository.js +21 -7
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/helpers/DataUnitDataLoaderHelper.js +108 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js +17 -9
- package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +45 -5
- package/dist/collection/lib/http/data-fetcher/fetchers/parameters-fecher.js +7 -1
- package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +107 -7
- package/dist/collection/lib/index.js +1 -0
- package/dist/collection/lib/message/resources/snk-data-unit.msg.js +1 -1
- package/dist/collection/lib/message/resources/snk-exporter.msg.js +1 -1
- package/dist/collection/lib/message/resources/snk-grid.msg.js +5 -1
- package/dist/collection/lib/utils/ContinuousInsertUtils.js +31 -0
- package/dist/collection/lib/utils/CrudUtils.js +25 -16
- package/dist/collection/{components/snk-data-exporter/utils/RecordIDUtils.js → lib/utils/GetSelectedRecordsIDsInfo.js} +9 -9
- package/dist/collection/lib/utils/constants.js +9 -0
- package/dist/collection/sw.js +46 -0
- package/dist/components/{IExporterProvider.js → ContinuousInsertUtils.js} +67 -23
- package/dist/components/DataFetcher.js +217 -77
- package/dist/{esm/RecordIDUtils-87d02110.js → components/GetSelectedRecordsIDsInfo.js} +10 -10
- package/dist/components/ISave.js +362 -1
- package/dist/components/SnkFormConfigManager.js +73 -15
- package/dist/components/SnkMessageBuilder.js +7 -3
- package/dist/components/constants.js +10 -1
- package/dist/components/dataunit-fetcher.js +238 -40
- package/dist/components/form-config-fetcher.js +41 -1
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.js +3 -0
- package/dist/components/pesquisa-grid.d.ts +11 -0
- package/dist/components/pesquisa-grid.js +6 -0
- package/dist/components/pesquisa-grid2.js +102 -0
- package/dist/components/pesquisa-tree.d.ts +11 -0
- package/dist/components/pesquisa-tree.js +6 -0
- package/dist/components/pesquisa-tree2.js +91 -0
- package/dist/components/snk-actions-button2.js +44 -40
- package/dist/components/snk-application2.js +312 -68
- package/dist/components/snk-attach2.js +54 -60
- package/dist/components/snk-config-options2.js +1 -1
- package/dist/components/snk-configurator2.js +1 -1
- package/dist/components/snk-crud.js +83 -59
- package/dist/components/snk-data-exporter2.js +28 -17
- package/dist/components/snk-data-unit2.js +55 -70
- package/dist/components/snk-detail-view2.js +115 -106
- package/dist/components/snk-exporter-email-sender2.js +1 -1
- package/dist/components/snk-filter-bar2.js +64 -30
- package/dist/components/snk-filter-binary-select.js +1 -1
- package/dist/components/snk-filter-checkbox-list.js +1 -1
- package/dist/components/snk-filter-item2.js +5 -1
- package/dist/components/snk-filter-modal.js +4 -2
- package/dist/components/snk-filter-text.js +2 -1
- package/dist/components/snk-form-config2.js +35 -10
- package/dist/components/snk-form.js +2 -2
- package/dist/components/snk-grid-config2.js +1 -1
- package/dist/components/snk-grid2.js +86 -16
- package/dist/components/snk-personalized-filter-editor.js +4 -4
- package/dist/components/snk-pesquisa2.js +125 -33
- package/dist/components/snk-print-selector.js +1 -1
- package/dist/components/snk-simple-bar2.js +1 -1
- package/dist/components/snk-simple-crud2.js +108 -65
- package/dist/components/snk-simple-form-config.d.ts +11 -0
- package/dist/components/snk-simple-form-config.js +6 -0
- package/dist/components/snk-simple-form-config2.js +121 -0
- package/dist/components/snk-tab-config2.js +1 -1
- package/dist/components/snk-taskbar2.js +72 -40
- package/dist/components/teste-pesquisa.js +13 -1
- package/dist/esm/{ConfigStorage-3806514e.js → ConfigStorage-373bb440.js} +2 -2
- package/dist/esm/{IExporterProvider-63a188b6.js → ContinuousInsertUtils-6bf78c5e.js} +67 -25
- package/dist/esm/{DataFetcher-c1baf61d.js → DataFetcher-5221b992.js} +217 -77
- package/dist/esm/GetSelectedRecordsIDsInfo-9fa41508.js +41 -0
- package/dist/esm/{SnkFormConfigManager-31b24066.js → SnkFormConfigManager-5022f87f.js} +75 -17
- package/dist/esm/{SnkMessageBuilder-89925609.js → SnkMessageBuilder-6fff4a4c.js} +7 -3
- package/dist/esm/{auth-fetcher-039abba3.js → auth-fetcher-e32fe8a4.js} +1 -1
- package/dist/esm/{constants-8457af36.js → constants-75abb876.js} +10 -1
- package/dist/esm/{dataunit-fetcher-264191b2.js → dataunit-fetcher-5247a708.js} +239 -41
- package/dist/esm/{field-search-efbe307f.js → field-search-f8b1d91e.js} +5 -1
- package/dist/esm/{form-config-fetcher-30fb808f.js → form-config-fetcher-126e2471.js} +42 -2
- package/dist/esm/index-a7d3d3f1.js +16 -32
- package/dist/esm/loader.js +1 -1
- package/dist/esm/pesquisa-fetcher-4284f2a3.js +362 -0
- package/dist/esm/pesquisa-grid_2.entry.js +151 -0
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/{snk-actions-button_4.entry.js → snk-actions-button_5.entry.js} +139 -44
- package/dist/esm/snk-application.entry.js +295 -71
- package/dist/esm/snk-attach.entry.js +47 -34
- package/dist/esm/{snk-form-config.entry.js → snk-config-options_3.entry.js} +399 -15
- package/dist/esm/snk-configurator.entry.js +2 -2
- package/dist/esm/snk-crud.entry.js +23 -9
- package/dist/esm/snk-data-exporter.entry.js +35 -23
- package/dist/esm/{snk-data-unit-8eec78bd.js → snk-data-unit-bfd10c71.js} +54 -32
- package/dist/esm/snk-data-unit.entry.js +5 -5
- package/dist/esm/snk-detail-view.entry.js +13 -13
- package/dist/esm/snk-exporter-email-sender.entry.js +1 -1
- package/dist/esm/snk-field-config.entry.js +1 -1
- package/dist/esm/snk-filter-bar_4.entry.js +1429 -0
- package/dist/esm/snk-filter-binary-select.entry.js +1 -1
- package/dist/esm/snk-filter-checkbox-list.entry.js +1 -1
- package/dist/esm/snk-filter-modal-item.entry.js +3 -3
- package/dist/esm/snk-filter-text.entry.js +2 -1
- package/dist/esm/snk-grid.entry.js +84 -19
- package/dist/esm/{snk-guides-viewer-dda0fede.js → snk-guides-viewer-454ebc07.js} +30 -14
- package/dist/esm/snk-guides-viewer.entry.js +9 -9
- package/dist/esm/snk-personalized-filter-editor.entry.js +4 -4
- package/dist/esm/snk-personalized-filter.entry.js +3 -3
- package/dist/esm/snk-pesquisa.entry.js +111 -31
- package/dist/esm/snk-print-selector.entry.js +1 -1
- package/dist/esm/snk-simple-bar.entry.js +1 -1
- package/dist/esm/snk-simple-crud.entry.js +99 -42
- package/dist/esm/snk-tab-config.entry.js +1 -1
- package/dist/esm/snk-taskbar.entry.js +71 -39
- package/dist/sankhyablocks/p-03e6825e.js +1 -0
- package/dist/sankhyablocks/p-1435701f.js +26 -0
- package/dist/sankhyablocks/p-16a1dd18.entry.js +1 -0
- package/dist/sankhyablocks/p-17425c72.js +1 -0
- package/dist/sankhyablocks/{p-52920496.js → p-19dc71e9.js} +1 -1
- package/dist/sankhyablocks/p-1bd8eae1.entry.js +1 -0
- package/dist/sankhyablocks/{p-47db7e88.entry.js → p-1cf39cfd.entry.js} +1 -1
- package/dist/sankhyablocks/{p-b0ef4383.js → p-1d19a5b0.js} +1 -1
- package/dist/sankhyablocks/p-23736d75.js +1 -0
- package/dist/sankhyablocks/{p-8eb67fa4.entry.js → p-23cd6abf.entry.js} +1 -1
- package/dist/sankhyablocks/p-28ca3908.entry.js +1 -0
- package/dist/sankhyablocks/{p-95df461f.entry.js → p-2953c481.entry.js} +1 -1
- package/dist/sankhyablocks/p-38179225.js +60 -0
- package/dist/sankhyablocks/p-3ba431c9.js +1 -0
- package/dist/sankhyablocks/p-41c3bee5.js +6 -0
- package/dist/sankhyablocks/{p-72fc257b.entry.js → p-434817f0.entry.js} +1 -1
- package/dist/sankhyablocks/p-47178038.entry.js +1 -0
- package/dist/sankhyablocks/p-478ab2b6.js +1 -0
- package/dist/sankhyablocks/{p-7663f597.entry.js → p-4c9adf1c.entry.js} +1 -1
- package/dist/sankhyablocks/p-50bf8dbc.entry.js +1 -0
- package/dist/sankhyablocks/{p-aaa3ee68.entry.js → p-5f157b09.entry.js} +1 -1
- package/dist/sankhyablocks/p-643b2aaa.entry.js +1 -0
- package/dist/sankhyablocks/p-655bdd60.js +1 -0
- package/dist/sankhyablocks/p-6fc8bfa2.entry.js +1 -0
- package/dist/sankhyablocks/p-73b037a8.entry.js +1 -0
- package/dist/sankhyablocks/p-7dd49d15.js +1 -0
- package/dist/sankhyablocks/{p-2c68b3ae.entry.js → p-82ee6dc3.entry.js} +1 -1
- package/dist/sankhyablocks/p-89c92727.entry.js +1 -0
- package/dist/sankhyablocks/{p-41f8bfa3.entry.js → p-8c235d4c.entry.js} +1 -1
- package/dist/sankhyablocks/p-91e34755.entry.js +1 -0
- package/dist/sankhyablocks/p-9a99c67b.entry.js +1 -0
- package/dist/sankhyablocks/p-a04f38aa.entry.js +1 -0
- package/dist/sankhyablocks/p-ae26e8d0.entry.js +1 -0
- package/dist/sankhyablocks/p-bd234604.entry.js +1 -0
- package/dist/sankhyablocks/p-c021a3a9.entry.js +1 -0
- package/dist/sankhyablocks/p-c2e468c9.entry.js +1 -0
- package/dist/sankhyablocks/p-d62228fb.js +1 -0
- package/dist/sankhyablocks/p-d9bb48c4.entry.js +11 -0
- package/dist/sankhyablocks/p-edbe8e15.entry.js +1 -0
- package/dist/sankhyablocks/{p-913a9979.js → p-f0b9303b.js} +1 -1
- package/dist/sankhyablocks/p-f8db6795.entry.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-actions-button/actions/index.d.ts +1 -0
- package/dist/types/components/snk-actions-button/interfaces/index.d.ts +3 -0
- package/dist/types/components/snk-actions-button/snk-actions-button.d.ts +3 -2
- package/dist/types/components/snk-application/request-listener/DebouncedRequestListener.d.ts +11 -0
- package/dist/types/components/snk-application/request-listener/RequestListenerFactory.d.ts +12 -0
- package/dist/types/components/snk-application/request-listener/RequestListenerLoadingBar.d.ts +13 -0
- package/dist/types/components/snk-application/snk-application.d.ts +38 -14
- package/dist/types/components/snk-attach/snk-attach.d.ts +1 -0
- package/dist/types/components/snk-crud/snk-crud.d.ts +21 -0
- package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +15 -0
- package/dist/types/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.d.ts +1 -0
- package/dist/types/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.d.ts +1 -0
- package/dist/types/components/snk-data-exporter/test/resources/ClientSideExporterStrategyResources.d.ts +3 -3
- package/dist/types/components/snk-data-exporter/utils/ParserExport.d.ts +1 -1
- package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +2 -0
- package/dist/types/components/snk-filter-bar/filter-item/filter-item-type-mask.enum.d.ts +7 -0
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +2 -0
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +15 -1
- package/dist/types/components/snk-form-config/SnkFormConfigManager.d.ts +7 -2
- package/dist/types/components/snk-form-config/snk-form-config.d.ts +4 -0
- package/dist/types/components/snk-grid/snk-grid.d.ts +28 -0
- package/dist/types/components/snk-pesquisa/pesquisa-grid/pesquisa-grid.d.ts +44 -0
- package/dist/types/components/snk-pesquisa/pesquisa-tree/pesquisa-tree.d.ts +33 -0
- package/dist/types/components/snk-pesquisa/pesquisaHelper.d.ts +24 -0
- package/dist/types/components/snk-pesquisa/snk-pesquisa.d.ts +35 -1
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +27 -3
- package/dist/types/components/snk-simple-form-config/snk-simple-form-config.d.ts +34 -0
- package/dist/types/components/snk-taskbar/processor/taskbar-processor.d.ts +1 -0
- package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +11 -0
- package/dist/types/components.d.ts +390 -14
- package/dist/types/lib/dataUnit/dataUnitInMemoryUtils.d.ts +12 -2
- package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +1 -0
- package/dist/types/lib/http/data-fetcher/fetchers/AttachFetcher/anexo-sistema-fetcher.d.ts +3 -2
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/DataUnitDataLoader.d.ts +9 -1
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/cache/ArrayRepository.d.ts +4 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/helpers/DataUnitDataLoaderHelper.d.ts +6 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/interfaces/ILoadingInfo.d.ts +4 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.d.ts +3 -3
- package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterParams.d.ts +1 -1
- package/dist/types/lib/http/data-fetcher/fetchers/form-config-fetcher.d.ts +8 -2
- package/dist/types/lib/http/data-fetcher/fetchers/parameters-fecher.d.ts +1 -0
- package/dist/types/lib/http/data-fetcher/fetchers/pesquisa-fetcher.d.ts +17 -1
- package/dist/types/lib/index.d.ts +1 -0
- package/dist/types/lib/utils/ContinuousInsertUtils.d.ts +10 -0
- package/dist/types/lib/utils/CrudUtils.d.ts +1 -0
- package/dist/types/lib/utils/GetSelectedRecordsIDsInfo.d.ts +3 -0
- package/dist/types/lib/utils/constants.d.ts +7 -0
- package/package.json +4 -3
- package/react/components.d.ts +3 -0
- package/react/components.js +3 -0
- package/react/components.js.map +1 -1
- package/dist/cjs/pesquisa-fetcher-680e198f.js +0 -166
- package/dist/cjs/snk-config-options.cjs.entry.js +0 -239
- package/dist/cjs/snk-filter-bar.cjs.entry.js +0 -714
- package/dist/cjs/snk-filter-item.cjs.entry.js +0 -312
- package/dist/cjs/snk-filter-list.cjs.entry.js +0 -152
- package/dist/cjs/snk-filter-modal.cjs.entry.js +0 -249
- package/dist/cjs/snk-form.cjs.entry.js +0 -143
- package/dist/components/pesquisa-fetcher.js +0 -164
- package/dist/esm/pesquisa-fetcher-03c8f919.js +0 -164
- package/dist/esm/snk-config-options.entry.js +0 -235
- package/dist/esm/snk-filter-bar.entry.js +0 -710
- package/dist/esm/snk-filter-item.entry.js +0 -308
- package/dist/esm/snk-filter-list.entry.js +0 -148
- package/dist/esm/snk-filter-modal.entry.js +0 -245
- package/dist/esm/snk-form.entry.js +0 -139
- package/dist/sankhyablocks/p-045eae4d.entry.js +0 -11
- package/dist/sankhyablocks/p-219f888d.entry.js +0 -1
- package/dist/sankhyablocks/p-2a408684.js +0 -1
- package/dist/sankhyablocks/p-3a212712.js +0 -1
- package/dist/sankhyablocks/p-3b60db06.entry.js +0 -1
- package/dist/sankhyablocks/p-450c60e4.entry.js +0 -1
- package/dist/sankhyablocks/p-4e5e1313.entry.js +0 -1
- package/dist/sankhyablocks/p-547eeac8.entry.js +0 -1
- package/dist/sankhyablocks/p-62ba211a.entry.js +0 -1
- package/dist/sankhyablocks/p-70a4af56.entry.js +0 -1
- package/dist/sankhyablocks/p-7505da04.entry.js +0 -1
- package/dist/sankhyablocks/p-75e674ed.entry.js +0 -1
- package/dist/sankhyablocks/p-7a337364.js +0 -1
- package/dist/sankhyablocks/p-7a85fd49.entry.js +0 -1
- package/dist/sankhyablocks/p-7b08d0f8.entry.js +0 -1
- package/dist/sankhyablocks/p-80042dc6.entry.js +0 -1
- package/dist/sankhyablocks/p-88aa931b.entry.js +0 -1
- package/dist/sankhyablocks/p-96a89d58.entry.js +0 -1
- package/dist/sankhyablocks/p-9863d682.js +0 -1
- package/dist/sankhyablocks/p-af8efd95.js +0 -6
- package/dist/sankhyablocks/p-b05d8893.entry.js +0 -1
- package/dist/sankhyablocks/p-b11aa1e0.entry.js +0 -1
- package/dist/sankhyablocks/p-c1d57831.entry.js +0 -1
- package/dist/sankhyablocks/p-c2495304.js +0 -1
- package/dist/sankhyablocks/p-d1791da2.entry.js +0 -1
- package/dist/sankhyablocks/p-d3f53df2.entry.js +0 -1
- package/dist/sankhyablocks/p-d6e26ea8.entry.js +0 -1
- package/dist/sankhyablocks/p-dc7c9047.js +0 -1
- package/dist/sankhyablocks/p-df5451c7.js +0 -26
- package/dist/sankhyablocks/p-e549f7d1.js +0 -1
- package/dist/sankhyablocks/p-e8763234.entry.js +0 -1
- package/dist/sankhyablocks/p-f2809746.entry.js +0 -1
- package/dist/sankhyablocks/p-fa4d8cb4.js +0 -1
- package/dist/sankhyablocks/p-fe79f83a.js +0 -60
- package/dist/types/components/snk-data-exporter/utils/RecordIDUtils.d.ts +0 -3
@@ -2,7 +2,6 @@ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/
|
|
2
2
|
import { StringUtils, ElementIDUtils, ApplicationContext, JSUtils, FloatingManager } from '@sankhyalabs/core';
|
3
3
|
import { T as TaskbarElement, d as defineCustomElement$3 } from './snk-taskbar2.js';
|
4
4
|
import './DataFetcher.js';
|
5
|
-
import './pesquisa-fetcher.js';
|
6
5
|
import { P as PresentationMode } from './ISave.js';
|
7
6
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
8
7
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
@@ -11,33 +10,34 @@ import './filter-item-type.enum.js';
|
|
11
10
|
import './form-config-fetcher.js';
|
12
11
|
import { V as VIEW_MODE } from './constants.js';
|
13
12
|
import { A as AutorizationType } from './auth-fetcher.js';
|
14
|
-
import { d as defineCustomElement$
|
15
|
-
import { d as defineCustomElement$
|
16
|
-
import { d as defineCustomElement$
|
17
|
-
import { d as defineCustomElement$
|
18
|
-
import { d as defineCustomElement$
|
19
|
-
import { d as defineCustomElement$
|
20
|
-
import { d as defineCustomElement$
|
21
|
-
import { d as defineCustomElement$
|
22
|
-
import { d as defineCustomElement$
|
23
|
-
import { d as defineCustomElement$
|
24
|
-
import { d as defineCustomElement$
|
25
|
-
import { d as defineCustomElement$
|
26
|
-
import { d as defineCustomElement$
|
27
|
-
import { d as defineCustomElement$
|
28
|
-
import { d as defineCustomElement$
|
29
|
-
import { d as defineCustomElement$
|
30
|
-
import { d as defineCustomElement$
|
31
|
-
import { d as defineCustomElement$
|
32
|
-
import { d as defineCustomElement$
|
33
|
-
import { d as defineCustomElement$
|
34
|
-
import { d as defineCustomElement$
|
35
|
-
import { d as defineCustomElement$
|
36
|
-
import { d as defineCustomElement$
|
37
|
-
import { d as defineCustomElement$
|
38
|
-
import { d as defineCustomElement$
|
39
|
-
import { d as defineCustomElement$
|
40
|
-
import { d as defineCustomElement$
|
13
|
+
import { d as defineCustomElement$x } from './snk-actions-button2.js';
|
14
|
+
import { d as defineCustomElement$w } from './snk-attach2.js';
|
15
|
+
import { d as defineCustomElement$v } from './snk-config-options2.js';
|
16
|
+
import { d as defineCustomElement$u } from './snk-configurator2.js';
|
17
|
+
import { d as defineCustomElement$t } from './snk-data-exporter2.js';
|
18
|
+
import { d as defineCustomElement$s } from './snk-data-unit2.js';
|
19
|
+
import { d as defineCustomElement$a, a as defineCustomElement$r } from './snk-detail-view2.js';
|
20
|
+
import { d as defineCustomElement$q } from './snk-exporter-email-sender2.js';
|
21
|
+
import { d as defineCustomElement$p } from './snk-expression-group2.js';
|
22
|
+
import { d as defineCustomElement$o } from './snk-expression-item2.js';
|
23
|
+
import { d as defineCustomElement$n } from './snk-field-config2.js';
|
24
|
+
import { d as defineCustomElement$m } from './snk-filter-advanced-mode2.js';
|
25
|
+
import { d as defineCustomElement$l } from './snk-filter-assistent-mode2.js';
|
26
|
+
import { d as defineCustomElement$k } from './snk-filter-bar2.js';
|
27
|
+
import { d as defineCustomElement$j } from './snk-filter-detail2.js';
|
28
|
+
import { d as defineCustomElement$i } from './snk-filter-field-search2.js';
|
29
|
+
import { d as defineCustomElement$h } from './snk-filter-item2.js';
|
30
|
+
import { d as defineCustomElement$g } from './snk-filter-param-config2.js';
|
31
|
+
import { d as defineCustomElement$f } from './snk-form-config2.js';
|
32
|
+
import { d as defineCustomElement$e } from './snk-form-summary2.js';
|
33
|
+
import { d as defineCustomElement$d } from './snk-form-view2.js';
|
34
|
+
import { d as defineCustomElement$c } from './snk-grid2.js';
|
35
|
+
import { d as defineCustomElement$b } from './snk-grid-config2.js';
|
36
|
+
import { d as defineCustomElement$9 } from './snk-personalized-filter2.js';
|
37
|
+
import { d as defineCustomElement$8 } from './snk-select-box2.js';
|
38
|
+
import { d as defineCustomElement$7 } from './snk-simple-bar2.js';
|
39
|
+
import { d as defineCustomElement$6 } from './snk-simple-crud2.js';
|
40
|
+
import { d as defineCustomElement$5 } from './snk-simple-form-config2.js';
|
41
41
|
import { d as defineCustomElement$4 } from './snk-tab-config2.js';
|
42
42
|
import { d as defineCustomElement$2 } from './taskbar-actions-button2.js';
|
43
43
|
|
@@ -51,6 +51,7 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
51
51
|
this.configuratorSave = createEvent(this, "configuratorSave", 7);
|
52
52
|
this.configuratorCancel = createEvent(this, "configuratorCancel", 7);
|
53
53
|
this.formItemsReady = createEvent(this, "formItemsReady", 7);
|
54
|
+
this.viewModeChanged = createEvent(this, "viewModeChanged", 7);
|
54
55
|
this._keyDownHandler = async (event) => this.keyDownListener(event);
|
55
56
|
this._viewHistory = [];
|
56
57
|
this._customEditors = new Map();
|
@@ -61,6 +62,8 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
61
62
|
this._currentViewMode = VIEW_MODE.GRID;
|
62
63
|
this._canEdit = undefined;
|
63
64
|
this._resourceID = undefined;
|
65
|
+
this.enableLockManagerLoadingComp = false;
|
66
|
+
this.enableLockManagerTaskbarClick = false;
|
64
67
|
this.configName = undefined;
|
65
68
|
this.filterBarTitle = undefined;
|
66
69
|
this.selectionToastConfig = undefined;
|
@@ -79,7 +82,10 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
79
82
|
this.disablePersonalizedFilter = undefined;
|
80
83
|
this.autoLoad = undefined;
|
81
84
|
this.autoFocus = true;
|
85
|
+
this.enableGridInsert = false;
|
82
86
|
this.domainMessagesBuilder = undefined;
|
87
|
+
this.ignoreReadOnlyFormFields = undefined;
|
88
|
+
this.setCustomFormTitle = undefined;
|
83
89
|
this.customContainerId = `SNK-CRUD-CUSTOM-CONTAINER-${StringUtils.generateUUID()}`;
|
84
90
|
}
|
85
91
|
/**
|
@@ -188,6 +194,7 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
188
194
|
else if (viewMode === VIEW_MODE.FORM) {
|
189
195
|
this._guidesViewer.setFocus();
|
190
196
|
}
|
197
|
+
this.viewModeChanged.emit(viewMode);
|
191
198
|
}
|
192
199
|
openConfig(viewMode) {
|
193
200
|
this._snkConfigurator.close();
|
@@ -203,6 +210,8 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
203
210
|
ElementIDUtils.addIDInfo(this._element, null, dataInfo);
|
204
211
|
}
|
205
212
|
insertionModeHandler() {
|
213
|
+
if (this.enableGridInsert)
|
214
|
+
return;
|
206
215
|
this.gridToForm();
|
207
216
|
}
|
208
217
|
cancelHandler() {
|
@@ -316,11 +325,16 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
316
325
|
if (!isDocumentBody)
|
317
326
|
element.focus();
|
318
327
|
}
|
328
|
+
async function handleAddRecord() {
|
329
|
+
if (!dataUnit.hasNewRecord()) {
|
330
|
+
dataUnit.addRecord();
|
331
|
+
}
|
332
|
+
}
|
319
333
|
keyboardManager
|
320
334
|
.bind("F6", this.toggleView.bind(this), { description: "Alterna entre modo formulário e grade.", element: this._element })
|
321
335
|
.bind("F7", saveDataUnitHandlingFocus.bind(this), { description: "Salva os dados.", element: this._element })
|
322
336
|
.bind("ctrl + \\", saveDataUnitHandlingFocus.bind(this), { description: "Salva os dados.", element: this._element })
|
323
|
-
.bind("F8",
|
337
|
+
.bind("F8", handleAddRecord.bind(this), { description: "Adiciona um novo registro.", element: this._element })
|
324
338
|
.bind("F9", dataUnit.removeSelectedRecords.bind(dataUnit), { description: "Remove o registro selecionado.", element: this._element })
|
325
339
|
.bind("ctrl + F9", dataUnit.removeSelectedRecords.bind(dataUnit), { description: "Remove o registro selecionado.", element: this._element })
|
326
340
|
.bind("ctrl + .", () => {
|
@@ -416,8 +430,8 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
416
430
|
if (this._resourceID == undefined) {
|
417
431
|
return;
|
418
432
|
}
|
419
|
-
this._snkDataUnit.ignoreSaveMessage = this._currentViewMode === VIEW_MODE.GRID;
|
420
|
-
return (h(Host, null, h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "crud" }, h("stack-item",
|
433
|
+
this._snkDataUnit.ignoreSaveMessage = (this._currentViewMode === VIEW_MODE.GRID && !this.enableGridInsert);
|
434
|
+
return (h(Host, null, h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "crud" }, h("stack-item", { class: 'ez-flex ez-flex--column ez-size-height--full ez-size-width--full ez-padding--medium' }, h("snk-grid", { ref: (ref) => this._snkGrid = ref, class: 'ez-flex ez-flex--column ez-size-height--full ez-size-width--full', filterBarTitle: this.filterBarTitle, "data-element-id": "crud_grid", configName: this.configName, onGridDoubleClick: () => this.gridToForm(true), taskbarManager: this.taskbarManager, onActionClick: evt => this.executeAction(evt.detail), messagesBuilder: this.messagesBuilder, actionsList: this.actionsList, statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, presentationMode: this.presentationMode, recordsValidator: this.recordsValidator, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, canEdit: this._canEdit, resourceID: this._resourceID, disablePersonalizedFilter: this.disablePersonalizedFilter, gridLegacyConfigName: this.gridLegacyConfigName, filterBarLegacyConfigName: this.filterBarLegacyConfigName, autoLoad: this.autoLoad, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp }, h("slot", { name: "GRID_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "GRID_HEADER_CUSTOM_ELEMENTS" }), h("slot", { name: "SnkGridHeader" }), h("slot", { name: "SnkGridFooter" }), h("slot", { name: "SnkGridTaskBar" }))), h("stack-item", null, h("snk-guides-viewer", { ref: ref => this._guidesViewer = ref, entityPath: this._snkDataUnit.entityName, messagesBuilder: this.messagesBuilder, onExit: () => this.setViewMode(VIEW_MODE.GRID), dataState: this._dataState, dataUnit: this._dataUnit, actionsList: this.actionsList, taskbarManager: this.taskbarManager, configName: this.configName, onActionClick: evt => this.executeAction(evt.detail), presentationMode: this.presentationMode, "data-element-id": "crud_form", canEdit: this._canEdit, recordsValidator: this.recordsValidator, resourceID: this._resourceID, detailTaskbarCustomContainerId: this.customContainerId, formLegacyConfigName: this.formLegacyConfigName, enableGridInsert: this.enableGridInsert, getCustomTitle: this.setCustomFormTitle, ignoreReadOnlyFormFields: this.ignoreReadOnlyFormFields }, h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "SnkFormTaskBar" }))), h("stack-item", null, h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this._snkDataUnit.entityName, onBack: this.backView.bind(this) })), h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.setViewMode(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showActionButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this._resourceID, customContainerId: this.customContainerId })), h("div", { id: `${this.customContainerId}` }, h("slot", { name: "SnkConfigContainerSlot" }), h("slot", { name: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS" }), h("slot", { name: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }))));
|
421
435
|
}
|
422
436
|
get _element() { return this; }
|
423
437
|
static get watchers() { return {
|
@@ -425,6 +439,8 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
425
439
|
}; }
|
426
440
|
static get style() { return snkCrudCss; }
|
427
441
|
}, [6, "snk-crud", {
|
442
|
+
"enableLockManagerLoadingComp": [4, "enable-lock-manager-loading-comp"],
|
443
|
+
"enableLockManagerTaskbarClick": [4, "enable-lock-manager-taskbar-click"],
|
428
444
|
"configName": [1025, "config-name"],
|
429
445
|
"filterBarTitle": [1, "filter-bar-title"],
|
430
446
|
"selectionToastConfig": [16],
|
@@ -443,7 +459,10 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
443
459
|
"disablePersonalizedFilter": [4, "disable-personalized-filter"],
|
444
460
|
"autoLoad": [4, "auto-load"],
|
445
461
|
"autoFocus": [4, "auto-focus"],
|
462
|
+
"enableGridInsert": [4, "enable-grid-insert"],
|
446
463
|
"domainMessagesBuilder": [1, "domain-messages-builder"],
|
464
|
+
"ignoreReadOnlyFormFields": [4, "ignore-read-only-form-fields"],
|
465
|
+
"setCustomFormTitle": [16],
|
447
466
|
"_dataUnit": [32],
|
448
467
|
"_dataState": [32],
|
449
468
|
"attachmentRegisterKey": [32],
|
@@ -466,7 +485,7 @@ function defineCustomElement$1() {
|
|
466
485
|
if (typeof customElements === "undefined") {
|
467
486
|
return;
|
468
487
|
}
|
469
|
-
const components = ["snk-crud", "snk-actions-button", "snk-attach", "snk-config-options", "snk-configurator", "snk-data-exporter", "snk-data-unit", "snk-detail-view", "snk-exporter-email-sender", "snk-expression-group", "snk-expression-item", "snk-field-config", "snk-filter-advanced-mode", "snk-filter-assistent-mode", "snk-filter-bar", "snk-filter-detail", "snk-filter-field-search", "snk-filter-item", "snk-filter-param-config", "snk-form-config", "snk-form-summary", "snk-form-view", "snk-grid", "snk-grid-config", "snk-guides-viewer", "snk-personalized-filter", "snk-select-box", "snk-simple-bar", "snk-simple-crud", "snk-tab-config", "snk-taskbar", "taskbar-actions-button"];
|
488
|
+
const components = ["snk-crud", "snk-actions-button", "snk-attach", "snk-config-options", "snk-configurator", "snk-data-exporter", "snk-data-unit", "snk-detail-view", "snk-exporter-email-sender", "snk-expression-group", "snk-expression-item", "snk-field-config", "snk-filter-advanced-mode", "snk-filter-assistent-mode", "snk-filter-bar", "snk-filter-detail", "snk-filter-field-search", "snk-filter-item", "snk-filter-param-config", "snk-form-config", "snk-form-summary", "snk-form-view", "snk-grid", "snk-grid-config", "snk-guides-viewer", "snk-personalized-filter", "snk-select-box", "snk-simple-bar", "snk-simple-crud", "snk-simple-form-config", "snk-tab-config", "snk-taskbar", "taskbar-actions-button"];
|
470
489
|
components.forEach(tagName => { switch (tagName) {
|
471
490
|
case "snk-crud":
|
472
491
|
if (!customElements.get(tagName)) {
|
@@ -475,140 +494,145 @@ function defineCustomElement$1() {
|
|
475
494
|
break;
|
476
495
|
case "snk-actions-button":
|
477
496
|
if (!customElements.get(tagName)) {
|
478
|
-
defineCustomElement$
|
497
|
+
defineCustomElement$x();
|
479
498
|
}
|
480
499
|
break;
|
481
500
|
case "snk-attach":
|
482
501
|
if (!customElements.get(tagName)) {
|
483
|
-
defineCustomElement$
|
502
|
+
defineCustomElement$w();
|
484
503
|
}
|
485
504
|
break;
|
486
505
|
case "snk-config-options":
|
487
506
|
if (!customElements.get(tagName)) {
|
488
|
-
defineCustomElement$
|
507
|
+
defineCustomElement$v();
|
489
508
|
}
|
490
509
|
break;
|
491
510
|
case "snk-configurator":
|
492
511
|
if (!customElements.get(tagName)) {
|
493
|
-
defineCustomElement$
|
512
|
+
defineCustomElement$u();
|
494
513
|
}
|
495
514
|
break;
|
496
515
|
case "snk-data-exporter":
|
497
516
|
if (!customElements.get(tagName)) {
|
498
|
-
defineCustomElement$
|
517
|
+
defineCustomElement$t();
|
499
518
|
}
|
500
519
|
break;
|
501
520
|
case "snk-data-unit":
|
502
521
|
if (!customElements.get(tagName)) {
|
503
|
-
defineCustomElement$
|
522
|
+
defineCustomElement$s();
|
504
523
|
}
|
505
524
|
break;
|
506
525
|
case "snk-detail-view":
|
507
526
|
if (!customElements.get(tagName)) {
|
508
|
-
defineCustomElement$
|
527
|
+
defineCustomElement$r();
|
509
528
|
}
|
510
529
|
break;
|
511
530
|
case "snk-exporter-email-sender":
|
512
531
|
if (!customElements.get(tagName)) {
|
513
|
-
defineCustomElement$
|
532
|
+
defineCustomElement$q();
|
514
533
|
}
|
515
534
|
break;
|
516
535
|
case "snk-expression-group":
|
517
536
|
if (!customElements.get(tagName)) {
|
518
|
-
defineCustomElement$
|
537
|
+
defineCustomElement$p();
|
519
538
|
}
|
520
539
|
break;
|
521
540
|
case "snk-expression-item":
|
522
541
|
if (!customElements.get(tagName)) {
|
523
|
-
defineCustomElement$
|
542
|
+
defineCustomElement$o();
|
524
543
|
}
|
525
544
|
break;
|
526
545
|
case "snk-field-config":
|
527
546
|
if (!customElements.get(tagName)) {
|
528
|
-
defineCustomElement$
|
547
|
+
defineCustomElement$n();
|
529
548
|
}
|
530
549
|
break;
|
531
550
|
case "snk-filter-advanced-mode":
|
532
551
|
if (!customElements.get(tagName)) {
|
533
|
-
defineCustomElement$
|
552
|
+
defineCustomElement$m();
|
534
553
|
}
|
535
554
|
break;
|
536
555
|
case "snk-filter-assistent-mode":
|
537
556
|
if (!customElements.get(tagName)) {
|
538
|
-
defineCustomElement$
|
557
|
+
defineCustomElement$l();
|
539
558
|
}
|
540
559
|
break;
|
541
560
|
case "snk-filter-bar":
|
542
561
|
if (!customElements.get(tagName)) {
|
543
|
-
defineCustomElement$
|
562
|
+
defineCustomElement$k();
|
544
563
|
}
|
545
564
|
break;
|
546
565
|
case "snk-filter-detail":
|
547
566
|
if (!customElements.get(tagName)) {
|
548
|
-
defineCustomElement$
|
567
|
+
defineCustomElement$j();
|
549
568
|
}
|
550
569
|
break;
|
551
570
|
case "snk-filter-field-search":
|
552
571
|
if (!customElements.get(tagName)) {
|
553
|
-
defineCustomElement$
|
572
|
+
defineCustomElement$i();
|
554
573
|
}
|
555
574
|
break;
|
556
575
|
case "snk-filter-item":
|
557
576
|
if (!customElements.get(tagName)) {
|
558
|
-
defineCustomElement$
|
577
|
+
defineCustomElement$h();
|
559
578
|
}
|
560
579
|
break;
|
561
580
|
case "snk-filter-param-config":
|
562
581
|
if (!customElements.get(tagName)) {
|
563
|
-
defineCustomElement$
|
582
|
+
defineCustomElement$g();
|
564
583
|
}
|
565
584
|
break;
|
566
585
|
case "snk-form-config":
|
567
586
|
if (!customElements.get(tagName)) {
|
568
|
-
defineCustomElement$
|
587
|
+
defineCustomElement$f();
|
569
588
|
}
|
570
589
|
break;
|
571
590
|
case "snk-form-summary":
|
572
591
|
if (!customElements.get(tagName)) {
|
573
|
-
defineCustomElement$
|
592
|
+
defineCustomElement$e();
|
574
593
|
}
|
575
594
|
break;
|
576
595
|
case "snk-form-view":
|
577
596
|
if (!customElements.get(tagName)) {
|
578
|
-
defineCustomElement$
|
597
|
+
defineCustomElement$d();
|
579
598
|
}
|
580
599
|
break;
|
581
600
|
case "snk-grid":
|
582
601
|
if (!customElements.get(tagName)) {
|
583
|
-
defineCustomElement$
|
602
|
+
defineCustomElement$c();
|
584
603
|
}
|
585
604
|
break;
|
586
605
|
case "snk-grid-config":
|
587
606
|
if (!customElements.get(tagName)) {
|
588
|
-
defineCustomElement$
|
607
|
+
defineCustomElement$b();
|
589
608
|
}
|
590
609
|
break;
|
591
610
|
case "snk-guides-viewer":
|
592
611
|
if (!customElements.get(tagName)) {
|
593
|
-
defineCustomElement$
|
612
|
+
defineCustomElement$a();
|
594
613
|
}
|
595
614
|
break;
|
596
615
|
case "snk-personalized-filter":
|
597
616
|
if (!customElements.get(tagName)) {
|
598
|
-
defineCustomElement$
|
617
|
+
defineCustomElement$9();
|
599
618
|
}
|
600
619
|
break;
|
601
620
|
case "snk-select-box":
|
602
621
|
if (!customElements.get(tagName)) {
|
603
|
-
defineCustomElement$
|
622
|
+
defineCustomElement$8();
|
604
623
|
}
|
605
624
|
break;
|
606
625
|
case "snk-simple-bar":
|
607
626
|
if (!customElements.get(tagName)) {
|
608
|
-
defineCustomElement$
|
627
|
+
defineCustomElement$7();
|
609
628
|
}
|
610
629
|
break;
|
611
630
|
case "snk-simple-crud":
|
631
|
+
if (!customElements.get(tagName)) {
|
632
|
+
defineCustomElement$6();
|
633
|
+
}
|
634
|
+
break;
|
635
|
+
case "snk-simple-form-config":
|
612
636
|
if (!customElements.get(tagName)) {
|
613
637
|
defineCustomElement$5();
|
614
638
|
}
|
@@ -1,11 +1,10 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
2
2
|
import { ApplicationContext, ObjectUtils, UserInterface, DataType, ElementIDUtils } from '@sankhyalabs/core';
|
3
3
|
import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
|
4
|
-
import { D as DataExporterOption,
|
4
|
+
import { D as DataExporterOption, b as DataExporterType, c as DataExporterFormat } from './ISave.js';
|
5
5
|
import { R as REPORT_LAUNCHER_RESOURCE_ID } from './constants.js';
|
6
6
|
import { D as DataFetcher } from './DataFetcher.js';
|
7
7
|
import { S as SnkDataUnit } from './snk-data-unit2.js';
|
8
|
-
import './pesquisa-fetcher.js';
|
9
8
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
10
9
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
11
10
|
import './dataunit-fetcher.js';
|
@@ -124,7 +123,7 @@ class ItemBuilder {
|
|
124
123
|
getExportToXLS(groupName) {
|
125
124
|
return {
|
126
125
|
id: DataExporterOption.EXPORT_TO_XLS,
|
127
|
-
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.
|
126
|
+
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xls)`,
|
128
127
|
group: groupName
|
129
128
|
};
|
130
129
|
}
|
@@ -167,7 +166,7 @@ class ItemBuilder {
|
|
167
166
|
getExportPageToXLS() {
|
168
167
|
return {
|
169
168
|
id: DataExporterOption.EXPORT_PAGE_TO_XLS,
|
170
|
-
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.
|
169
|
+
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xls)`
|
171
170
|
};
|
172
171
|
}
|
173
172
|
/**
|
@@ -243,7 +242,7 @@ function getFormatResponse(result) {
|
|
243
242
|
return ObjectUtils.stringToObject(response);
|
244
243
|
}
|
245
244
|
|
246
|
-
const DOC_MAX_WIDTH =
|
245
|
+
const DOC_MAX_WIDTH = 760;
|
247
246
|
function getVisibleColumns(columns) {
|
248
247
|
const visibleColumns = [];
|
249
248
|
let totalWidth = 0;
|
@@ -283,10 +282,17 @@ class ServerSideExporterStrategy {
|
|
283
282
|
const visibleColumns = getVisibleColumns(columns);
|
284
283
|
return visibleColumns;
|
285
284
|
}
|
285
|
+
async getColumns(resolveProps) {
|
286
|
+
var _a;
|
287
|
+
if ((_a = getOptionKey(resolveProps === null || resolveProps === void 0 ? void 0 : resolveProps.exportOption)) === null || _a === void 0 ? void 0 : _a.includes("PDF")) {
|
288
|
+
return await this.getParsedColumns();
|
289
|
+
}
|
290
|
+
return await this._provider.getColumnsMetadata();
|
291
|
+
}
|
286
292
|
async getParams(resolveProps) {
|
287
293
|
var _a, _b, _c, _d, _e, _f;
|
288
294
|
const filters = (_b = (_a = this._provider).getFilters) === null || _b === void 0 ? void 0 : _b.call(_a);
|
289
|
-
const columns =
|
295
|
+
const columns = await this.getColumns(resolveProps);
|
290
296
|
const sort = (_d = (_c = this._provider).getOrders) === null || _d === void 0 ? void 0 : _d.call(_c);
|
291
297
|
const resourceURI = (_f = (_e = this._provider).getResourceURI) === null || _f === void 0 ? void 0 : _f.call(_e);
|
292
298
|
const selectedIDs = this._provider.getSelectedIDs();
|
@@ -342,16 +348,23 @@ class ClientSideExporterStrategy {
|
|
342
348
|
const visibleColumns = getVisibleColumns(columns);
|
343
349
|
return visibleColumns;
|
344
350
|
}
|
351
|
+
async getColumns(resolveProps) {
|
352
|
+
var _a;
|
353
|
+
if ((_a = getOptionKey(resolveProps === null || resolveProps === void 0 ? void 0 : resolveProps.exportOption)) === null || _a === void 0 ? void 0 : _a.includes("PDF")) {
|
354
|
+
return await this.getParsedColumns();
|
355
|
+
}
|
356
|
+
return await this._provider.getColumnsMetadata();
|
357
|
+
}
|
345
358
|
async executeExport(resolveProps) {
|
346
|
-
const { methodName,
|
359
|
+
const { methodName, gridTitle } = resolveProps;
|
347
360
|
const records = await this._provider.getRecords();
|
348
|
-
const columns =
|
361
|
+
const columns = await this.getColumns(resolveProps);
|
349
362
|
const [serviceName, processor] = this.getExecutor(methodName);
|
350
363
|
const payload = {
|
351
364
|
serviceName,
|
352
365
|
requestBody: {
|
353
366
|
grid: {
|
354
|
-
|
367
|
+
gridTitle,
|
355
368
|
columns: this.buildColumnsObject(columns),
|
356
369
|
rows: this.buildRowsObject(columns, records),
|
357
370
|
customOptions: { xlsxExtension: false }
|
@@ -382,10 +395,10 @@ class ClientSideExporterStrategy {
|
|
382
395
|
"GridXLSBuilderSP.buildXLSFromJson",
|
383
396
|
responseBody => ({
|
384
397
|
fileSessionKey: responseBody.chaveXLS.valor,
|
385
|
-
canPrint:
|
386
|
-
canExport:
|
398
|
+
canPrint: true,
|
399
|
+
canExport: true,
|
400
|
+
canSendEmail: true,
|
387
401
|
useAppPrint: false,
|
388
|
-
canSendEmail: false
|
389
402
|
})
|
390
403
|
];
|
391
404
|
}
|
@@ -462,7 +475,7 @@ const SnkDataExporter = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
462
475
|
resolver: ({ type, format, email: { to, subject, message } }) => {
|
463
476
|
var _a;
|
464
477
|
const methodName = (_a = DataExporterFormat[format === null || format === void 0 ? void 0 : format.toUpperCase()]) !== null && _a !== void 0 ? _a : DataExporterFormat.PDF;
|
465
|
-
this.resolveExporter({ type, methodName, to, subject, message, fileName: this._appLabel,
|
478
|
+
this.resolveExporter({ type, methodName, to, subject, message, fileName: this._appLabel, gridTitle: this._appLabel }, () => {
|
466
479
|
this._snkEmailSender.close();
|
467
480
|
ApplicationUtils.info(this.getMessage("snkDataExporter.message.emailSuccess"), { iconName: "check" });
|
468
481
|
});
|
@@ -546,19 +559,17 @@ const SnkDataExporter = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
546
559
|
var _a, _b, _c;
|
547
560
|
const optionKey = this.getOptionKey(option);
|
548
561
|
const fileType = (_a = DataExporterType[optionKey]) !== null && _a !== void 0 ? _a : DataExporterType.EXPORT_TO_PDF;
|
549
|
-
const isDownload = DataExporterType[optionKey] === DataExporterType.EXPORT_TO_XLS;
|
550
562
|
const params = {
|
551
563
|
methodName: DataExporterOption[`EXPORT_TO_${fileType}`],
|
552
564
|
fileName: this._appLabel,
|
553
|
-
|
565
|
+
gridTitle: this._appLabel,
|
554
566
|
exportOption: option,
|
555
567
|
limit: (_c = (_b = this.provider) === null || _b === void 0 ? void 0 : _b.getExportLimit) === null || _c === void 0 ? void 0 : _c.call(_b),
|
556
568
|
type: this.getExportType(option),
|
557
569
|
};
|
558
570
|
await this.resolveExporter(params, (response) => {
|
559
571
|
if (response.canExport || fileType === DataExporterType.EXPORT_TO_PDF) {
|
560
|
-
fileViewer(Object.assign(Object.assign({}, response), { fileType
|
561
|
-
isDownload }));
|
572
|
+
fileViewer(Object.assign(Object.assign({}, response), { fileType }));
|
562
573
|
}
|
563
574
|
else {
|
564
575
|
ApplicationUtils.error(this.getMessage("snkDataExporter.title.permission"), this.getMessage("snkDataExporter.message.exportPermission"));
|