@sankhyalabs/sankhyablocks 8.16.0-dev.11 → 8.16.0-dev.111
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/dist/cjs/ClientSideExporterProvider-a2753c93.js +378 -0
- package/dist/cjs/{ConfigStorage-e49214c6.js → ConfigStorage-df09fb78.js} +2 -2
- package/dist/cjs/{DataFetcher-77729a93.js → DataFetcher-1afdb18e.js} +231 -84
- package/dist/cjs/{RecordIDUtils-3735135c.js → GetSelectedRecordsIDsInfo-bd50caf1.js} +10 -10
- package/dist/cjs/IFetchDataExporterParams-e78ec415.js +8 -0
- package/dist/cjs/ISave-c76e2c51.js +397 -0
- package/dist/cjs/{SnkFormConfigManager-beebf47a.js → SnkFormConfigManager-45a8d7b7.js} +75 -17
- package/dist/cjs/{SnkMessageBuilder-897ffd08.js → SnkMessageBuilder-9deeae08.js} +40 -28
- package/dist/cjs/{auth-fetcher-29bb791c.js → auth-fetcher-1687ac0a.js} +1 -1
- package/dist/cjs/{constants-35ddd366.js → constants-77c1b8bd.js} +10 -0
- package/dist/cjs/{dataunit-fetcher-d4873076.js → dataunit-fetcher-a723f0dc.js} +225 -175
- package/dist/cjs/{form-config-fetcher-feb08214.js → form-config-fetcher-40d3f752.js} +56 -2
- package/dist/cjs/{index-1dfc7a6e.js → index-e3e39724.js} +5 -0
- package/dist/cjs/index-f9e81701.js +16 -32
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/pesquisa-grid_2.cjs.entry.js +155 -0
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/{snk-actions-button_4.cjs.entry.js → snk-actions-button_8.cjs.entry.js} +264 -46
- package/dist/cjs/snk-application.cjs.entry.js +471 -79
- package/dist/cjs/snk-attach.cjs.entry.js +91 -50
- package/dist/cjs/{snk-form-config.cjs.entry.js → snk-config-options_3.cjs.entry.js} +401 -13
- package/dist/cjs/snk-configurator.cjs.entry.js +10 -3
- package/dist/cjs/snk-crud.cjs.entry.js +57 -84
- package/dist/cjs/snk-data-exporter.cjs.entry.js +38 -30
- package/dist/cjs/{snk-data-unit-ece44c4a.js → snk-data-unit-57916de4.js} +275 -37
- package/dist/cjs/snk-data-unit.cjs.entry.js +5 -5
- package/dist/cjs/snk-detail-view.cjs.entry.js +69 -17
- 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 +1438 -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-number.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-search.cjs.entry.js +18 -5
- package/dist/cjs/snk-filter-text.cjs.entry.js +2 -1
- package/dist/cjs/snk-form-view.cjs.entry.js +19 -7
- package/dist/cjs/snk-grid.cjs.entry.js +132 -51
- package/dist/cjs/{snk-guides-viewer-aafc3073.js → snk-guides-viewer-d33379cd.js} +151 -74
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +12 -12
- 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 +116 -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 +237 -200
- package/dist/cjs/snk-tab-config.cjs.entry.js +1 -1
- package/dist/cjs/snk-taskbar.cjs.entry.js +79 -42
- package/dist/cjs/{taskbar-elements-9ad1f9c0.js → taskbar-elements-6f4e06af.js} +12 -1
- package/dist/cjs/{field-search-f56aa7d6.js → taskbar-processor-2fba34a8.js} +5 -36
- package/dist/collection/collection-manifest.json +17 -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/errorhandler/snk-error-handler.js +5 -2
- 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/search-strategy/exec-prepared-search-plus.js +107 -0
- package/dist/collection/components/snk-application/snk-application.css +36 -0
- package/dist/collection/components/snk-application/snk-application.js +450 -72
- package/dist/collection/components/snk-attach/snk-attach.js +51 -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 +19 -18
- package/dist/collection/components/snk-configurator/snk-configurator.css +1 -1
- package/dist/collection/components/snk-configurator/snk-configurator.js +26 -1
- package/dist/collection/components/snk-crud/snk-crud.js +181 -76
- package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.css +10 -1
- package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +84 -6
- package/dist/collection/components/snk-crud/subcomponents/snk-form-view.js +54 -7
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.css +6 -6
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +198 -82
- 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 +8 -8
- package/dist/collection/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.js +9 -2
- package/dist/collection/components/snk-data-exporter/interfaces/IExporterProvider.js +41 -10
- package/dist/collection/components/snk-data-exporter/providers/ClientSideExporterProvider.js +18 -6
- package/dist/collection/components/snk-data-exporter/providers/ServerSideExporterProvider.js +1 -1
- package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +10 -9
- 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/MultipleUpdateHelper.js +128 -0
- package/dist/collection/components/snk-data-unit/snk-data-unit.js +156 -37
- package/dist/collection/components/snk-filter-bar/filter-item/dataunitfilter/data-unit-filter-builder.js +3 -3
- 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-number.js +1 -1
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-search.js +18 -5
- 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 +10 -4
- 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 +2 -6
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +119 -29
- 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-form-config/subcomponents/snk-config-options/snk-config-options.js +5 -3
- package/dist/collection/components/snk-grid/filtercolumn/SnkMultiSelectionListDataSource.js +2 -2
- package/dist/collection/components/snk-grid/snk-grid.css +8 -0
- package/dist/collection/components/snk-grid/snk-grid.js +269 -51
- package/dist/collection/components/snk-grid-config/snk-grid-config.css +1 -1
- package/dist/collection/components/snk-grid-config/snk-grid-config.js +2 -0
- package/dist/collection/components/snk-layout-form-config/snk-layout-form-config.css +3 -0
- package/dist/collection/components/snk-layout-form-config/snk-layout-form-config.js +73 -0
- package/dist/collection/components/snk-layout-form-config/snk-view-representation/snk-view-representation.css +78 -0
- package/dist/collection/components/snk-layout-form-config/snk-view-representation/snk-view-representation.js +57 -0
- 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 +181 -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 +342 -123
- 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/elements/taskbar-actions-button/taskbar-actions-button.css +13 -0
- package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.js +1 -1
- package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +11 -0
- package/dist/collection/components/snk-taskbar/elements/taskbar-split-button/taskbar-split-button.css +0 -0
- package/dist/collection/components/snk-taskbar/elements/taskbar-split-button/taskbar-split-button.js +220 -0
- package/dist/collection/components/snk-taskbar/processor/taskbar-processor.js +5 -1
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +141 -41
- package/dist/collection/lib/@types/index.js +5 -0
- package/dist/collection/lib/DefaultCustomFormatters/RmPrecisionCustomValueFormatter.js +11 -5
- package/dist/collection/lib/configs/LayoutFormConfig.js +25 -0
- package/dist/collection/lib/dataUnit/InMemoryLoader.js +12 -103
- package/dist/collection/lib/dataUnit/dataUnitInMemoryUtils.js +11 -32
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +44 -29
- 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/cache/PreloadManager.js +5 -2
- 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 +23 -14
- package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterParams.js +6 -1
- package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +59 -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 +133 -9
- package/dist/collection/lib/index.js +1 -0
- package/dist/collection/lib/message/SnkMessageBuilder.js +1 -0
- package/dist/collection/lib/message/resources/snk-crud.msg.js +1 -1
- package/dist/collection/lib/message/resources/snk-data-unit.msg.js +28 -23
- 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/message/resources/snk-simple-crud.msg.js +2 -1
- package/dist/collection/lib/message/resources/snk-taskbar.msg.js +1 -0
- 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 +10 -0
- package/dist/collection/sw.js +46 -0
- package/dist/components/ContinuousInsertUtils.js +416 -0
- package/dist/components/DataFetcher.js +231 -84
- package/dist/{esm/RecordIDUtils-87d02110.js → components/GetSelectedRecordsIDsInfo.js} +10 -10
- package/dist/components/ISave.js +391 -1
- package/dist/components/SnkFormConfigManager.js +73 -15
- package/dist/components/SnkMessageBuilder.js +40 -28
- package/dist/components/constants.js +11 -1
- package/dist/components/dataunit-fetcher.js +243 -190
- package/dist/components/form-config-fetcher.js +55 -1
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.js +6 -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 +494 -77
- package/dist/components/snk-attach2.js +114 -73
- package/dist/components/snk-config-options2.js +6 -4
- package/dist/components/snk-configurator2.js +23 -3
- package/dist/components/snk-crud.js +143 -139
- package/dist/components/snk-data-exporter2.js +37 -23
- package/dist/components/snk-data-unit2.js +275 -74
- package/dist/components/snk-detail-view2.js +329 -171
- package/dist/components/snk-exporter-email-sender2.js +1 -1
- package/dist/components/snk-filter-bar2.js +68 -34
- 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 +10 -4
- package/dist/components/snk-filter-modal.js +4 -2
- package/dist/components/snk-filter-number.js +1 -1
- package/dist/components/snk-filter-search.js +18 -5
- package/dist/components/snk-filter-text.js +2 -1
- package/dist/components/snk-form-config2.js +35 -10
- package/dist/components/snk-form-view2.js +22 -8
- package/dist/components/snk-form.js +2 -2
- package/dist/components/snk-grid-config2.js +3 -1
- package/dist/components/snk-grid2.js +169 -75
- package/dist/components/snk-layout-form-config.d.ts +11 -0
- package/dist/components/snk-layout-form-config.js +6 -0
- package/dist/components/snk-layout-form-config2.js +73 -0
- package/dist/components/snk-personalized-filter-editor.js +4 -4
- package/dist/components/snk-pesquisa2.js +132 -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 +246 -203
- 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 +105 -50
- package/dist/components/snk-view-representation.d.ts +11 -0
- package/dist/components/snk-view-representation.js +6 -0
- package/dist/components/snk-view-representation2.js +41 -0
- package/dist/components/taskbar-actions-button2.js +2 -2
- package/dist/components/taskbar-split-button.d.ts +11 -0
- package/dist/components/taskbar-split-button.js +6 -0
- package/dist/components/taskbar-split-button2.js +87 -0
- package/dist/components/teste-pesquisa.js +13 -1
- package/dist/esm/ClientSideExporterProvider-b3871edb.js +367 -0
- package/dist/esm/{ConfigStorage-e476378d.js → ConfigStorage-71e6766f.js} +2 -2
- package/dist/esm/{DataFetcher-773a3e4b.js → DataFetcher-88e56266.js} +231 -84
- package/dist/esm/GetSelectedRecordsIDsInfo-9fa41508.js +41 -0
- package/dist/esm/IFetchDataExporterParams-d73bed3d.js +8 -0
- package/dist/esm/ISave-5efafc97.js +394 -0
- package/dist/esm/{SnkFormConfigManager-298cd647.js → SnkFormConfigManager-be490a33.js} +75 -17
- package/dist/esm/{SnkMessageBuilder-571462fb.js → SnkMessageBuilder-2dbd8fa2.js} +40 -28
- package/dist/esm/{auth-fetcher-a411f73c.js → auth-fetcher-3510520e.js} +1 -1
- package/dist/esm/{constants-8457af36.js → constants-7db1128a.js} +11 -1
- package/dist/esm/{dataunit-fetcher-3d2ec959.js → dataunit-fetcher-0e025732.js} +227 -174
- package/dist/esm/{form-config-fetcher-e0382e5a.js → form-config-fetcher-fa208a6c.js} +56 -2
- package/dist/esm/index-a7d3d3f1.js +16 -32
- package/dist/esm/{index-3aa4977a.js → index-b40568ff.js} +6 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/pesquisa-grid_2.entry.js +150 -0
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/{snk-actions-button_4.entry.js → snk-actions-button_8.entry.js} +263 -49
- package/dist/esm/snk-application.entry.js +472 -80
- package/dist/esm/snk-attach.entry.js +92 -51
- package/dist/esm/{snk-form-config.entry.js → snk-config-options_3.entry.js} +401 -15
- package/dist/esm/snk-configurator.entry.js +10 -3
- package/dist/esm/snk-crud.entry.js +58 -85
- package/dist/esm/snk-data-exporter.entry.js +38 -30
- package/dist/esm/{snk-data-unit-2a1d5d09.js → snk-data-unit-65c9dd1a.js} +275 -37
- package/dist/esm/snk-data-unit.entry.js +5 -5
- package/dist/esm/snk-detail-view.entry.js +71 -19
- 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 +1431 -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-number.entry.js +1 -1
- package/dist/esm/snk-filter-search.entry.js +18 -5
- package/dist/esm/snk-filter-text.entry.js +2 -1
- package/dist/esm/snk-form-view.entry.js +19 -7
- package/dist/esm/snk-grid.entry.js +125 -44
- package/dist/esm/{snk-guides-viewer-62124f3d.js → snk-guides-viewer-72953334.js} +153 -76
- package/dist/esm/snk-guides-viewer.entry.js +12 -12
- 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 +116 -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 +224 -187
- package/dist/esm/snk-tab-config.entry.js +1 -1
- package/dist/esm/snk-taskbar.entry.js +80 -43
- package/dist/esm/{taskbar-elements-d59867f1.js → taskbar-elements-f2cb4922.js} +12 -1
- package/dist/esm/{field-search-efbe307f.js → taskbar-processor-3436124c.js} +6 -35
- package/dist/sankhyablocks/{p-3287a6cc.js → p-03b68a74.js} +1 -1
- package/dist/sankhyablocks/p-0f3698af.js +1 -0
- package/dist/sankhyablocks/p-0fadb620.js +1 -0
- package/dist/sankhyablocks/{p-9dfda04a.entry.js → p-165cde3b.entry.js} +1 -1
- package/dist/sankhyablocks/p-16a1dd18.entry.js +1 -0
- package/dist/sankhyablocks/p-1a0caadb.js +1 -0
- package/dist/sankhyablocks/p-1bdffb17.entry.js +11 -0
- package/dist/sankhyablocks/p-1f80174b.entry.js +1 -0
- package/dist/sankhyablocks/p-24a0dbd2.entry.js +1 -0
- package/dist/sankhyablocks/p-2f7e2251.entry.js +1 -0
- package/dist/sankhyablocks/p-3372178e.entry.js +1 -0
- package/dist/sankhyablocks/{p-95df461f.entry.js → p-3749dffb.entry.js} +1 -1
- package/dist/sankhyablocks/{p-72fc257b.entry.js → p-434817f0.entry.js} +1 -1
- package/dist/sankhyablocks/p-4689c2e6.js +1 -0
- package/dist/sankhyablocks/p-47178038.entry.js +1 -0
- package/dist/sankhyablocks/{p-bd008859.entry.js → p-490b75b5.entry.js} +1 -1
- package/dist/sankhyablocks/p-52d10014.entry.js +1 -0
- package/dist/sankhyablocks/{p-aaa3ee68.entry.js → p-5f157b09.entry.js} +1 -1
- package/dist/sankhyablocks/p-5ffa0493.entry.js +1 -0
- package/dist/sankhyablocks/p-60137b7a.entry.js +1 -0
- package/dist/sankhyablocks/p-601b252b.js +26 -0
- package/dist/sankhyablocks/p-6a03b190.entry.js +1 -0
- package/dist/sankhyablocks/p-6dd38d7b.js +6 -0
- package/dist/sankhyablocks/{p-0cd3c0a9.js → p-73285a8a.js} +1 -1
- package/dist/sankhyablocks/p-7993b2e3.js +60 -0
- package/dist/sankhyablocks/p-79f823f3.entry.js +1 -0
- package/dist/sankhyablocks/p-7beeabc1.entry.js +1 -0
- package/dist/sankhyablocks/p-7dd49d15.js +1 -0
- package/dist/sankhyablocks/p-885802c3.js +1 -0
- 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-8f3f2306.js +1 -0
- package/dist/sankhyablocks/p-90684a75.entry.js +1 -0
- package/dist/sankhyablocks/{p-b0ef4383.js → p-9261d8a0.js} +1 -1
- package/dist/sankhyablocks/p-a14a09c3.entry.js +1 -0
- package/dist/sankhyablocks/p-a4ebeec4.entry.js +1 -0
- package/dist/sankhyablocks/p-b0ab5066.entry.js +1 -0
- package/dist/sankhyablocks/p-b6200d32.entry.js +1 -0
- package/dist/sankhyablocks/p-bc101064.entry.js +1 -0
- package/dist/sankhyablocks/{p-8eb67fa4.entry.js → p-c0eb761b.entry.js} +1 -1
- package/dist/sankhyablocks/p-c2e468c9.entry.js +1 -0
- package/dist/sankhyablocks/p-c9675d64.js +1 -0
- package/dist/sankhyablocks/p-ce94e6c4.entry.js +1 -0
- package/dist/sankhyablocks/p-d07b18a4.js +1 -0
- package/dist/sankhyablocks/p-ddf93f36.entry.js +1 -0
- package/dist/sankhyablocks/p-ebdb9d89.js +1 -0
- package/dist/sankhyablocks/p-fbba7e3d.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/search-strategy/exec-prepared-search-plus.d.ts +5 -0
- package/dist/types/components/snk-application/snk-application.d.ts +55 -16
- package/dist/types/components/snk-attach/snk-attach.d.ts +2 -0
- package/dist/types/components/snk-configurator/snk-configurator.d.ts +6 -0
- package/dist/types/components/snk-crud/snk-crud.d.ts +30 -3
- package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +17 -0
- package/dist/types/components/snk-crud/subcomponents/snk-form-view.d.ts +11 -1
- package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +26 -7
- package/dist/types/components/snk-data-exporter/data/export-result.d.ts +2 -1
- package/dist/types/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.d.ts +1 -0
- package/dist/types/components/snk-data-exporter/interfaces/IExporterProvider.d.ts +9 -1
- package/dist/types/components/snk-data-exporter/interfaces/IRecordID.d.ts +1 -0
- package/dist/types/components/snk-data-exporter/providers/ClientSideExporterProvider.d.ts +3 -1
- 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/MultipleUpdateHelper.d.ts +9 -0
- package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +19 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-search.d.ts +5 -3
- 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/filtercolumn/SnkMultiSelectionListDataSource.d.ts +2 -1
- package/dist/types/components/snk-grid/snk-grid.d.ts +45 -5
- package/dist/types/components/snk-grid-config/snk-grid-config.d.ts +1 -0
- package/dist/types/components/snk-layout-form-config/snk-layout-form-config.d.ts +15 -0
- package/dist/types/components/snk-layout-form-config/snk-view-representation/snk-view-representation.d.ts +10 -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 +36 -1
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +51 -15
- package/dist/types/components/snk-simple-form-config/snk-simple-form-config.d.ts +34 -0
- package/dist/types/components/snk-taskbar/elements/taskbar-elements.d.ts +2 -1
- package/dist/types/components/snk-taskbar/elements/taskbar-split-button/taskbar-split-button.d.ts +44 -0
- package/dist/types/components/snk-taskbar/processor/taskbar-processor.d.ts +1 -0
- package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +17 -0
- package/dist/types/components.d.ts +608 -24
- package/dist/types/lib/@types/index.d.ts +4 -0
- package/dist/types/lib/configs/LayoutFormConfig.d.ts +11 -0
- package/dist/types/lib/dataUnit/InMemoryLoader.d.ts +4 -11
- package/dist/types/lib/dataUnit/dataUnitInMemoryUtils.d.ts +9 -2
- package/dist/types/lib/dataUnit/interfaces/InMemoryLoaderConfig.d.ts +2 -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/cache/PreloadManager.d.ts +1 -1
- 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 +6 -2
- package/dist/types/lib/http/data-fetcher/fetchers/form-config-fetcher.d.ts +14 -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 +21 -2
- package/dist/types/lib/index.d.ts +1 -0
- package/dist/types/lib/message/SnkMessageBuilder.d.ts +2 -1
- 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 +8 -0
- package/package.json +4 -3
- package/react/components.d.ts +6 -0
- package/react/components.js +6 -0
- package/react/components.js.map +1 -1
- package/dist/cjs/IExporterProvider-10b7fed5.js +0 -230
- package/dist/cjs/ISave-e91b70a7.js +0 -9
- package/dist/cjs/pesquisa-fetcher-a1d0353f.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/collection/components/snk-taskbar/subcomponents/field-search.js +0 -31
- package/dist/components/IExporterProvider.js +0 -298
- package/dist/components/pesquisa-fetcher.js +0 -164
- package/dist/esm/IExporterProvider-d597f27d.js +0 -221
- package/dist/esm/ISave-d8c8bc59.js +0 -9
- package/dist/esm/pesquisa-fetcher-a87445a0.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-01ba23cd.entry.js +0 -1
- package/dist/sankhyablocks/p-091ce761.js +0 -60
- package/dist/sankhyablocks/p-14b8b656.entry.js +0 -1
- package/dist/sankhyablocks/p-181975f1.js +0 -26
- package/dist/sankhyablocks/p-1db45d26.entry.js +0 -1
- package/dist/sankhyablocks/p-1e971cb0.entry.js +0 -1
- package/dist/sankhyablocks/p-21749402.js +0 -1
- package/dist/sankhyablocks/p-219f888d.entry.js +0 -1
- package/dist/sankhyablocks/p-25f1fc39.js +0 -6
- package/dist/sankhyablocks/p-2e9c764c.entry.js +0 -1
- package/dist/sankhyablocks/p-30cf616e.js +0 -1
- package/dist/sankhyablocks/p-3b60db06.entry.js +0 -1
- package/dist/sankhyablocks/p-421bec84.entry.js +0 -1
- package/dist/sankhyablocks/p-42f7b05d.entry.js +0 -1
- package/dist/sankhyablocks/p-51999ab5.entry.js +0 -1
- package/dist/sankhyablocks/p-594bc21d.js +0 -1
- package/dist/sankhyablocks/p-5f016aed.js +0 -1
- package/dist/sankhyablocks/p-62f34e6f.entry.js +0 -1
- package/dist/sankhyablocks/p-631954eb.entry.js +0 -1
- package/dist/sankhyablocks/p-65f8c11c.entry.js +0 -1
- package/dist/sankhyablocks/p-684a2590.entry.js +0 -1
- package/dist/sankhyablocks/p-70001ac1.js +0 -1
- package/dist/sankhyablocks/p-70a4af56.entry.js +0 -1
- package/dist/sankhyablocks/p-7663f597.entry.js +0 -1
- package/dist/sankhyablocks/p-76a65660.js +0 -1
- package/dist/sankhyablocks/p-7e7a7473.js +0 -1
- package/dist/sankhyablocks/p-7ef9c55c.js +0 -1
- package/dist/sankhyablocks/p-88aa931b.entry.js +0 -1
- package/dist/sankhyablocks/p-939e15d3.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-b11aa1e0.entry.js +0 -1
- package/dist/sankhyablocks/p-c2495304.js +0 -1
- package/dist/sankhyablocks/p-c8622597.entry.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-d65d98ed.entry.js +0 -1
- package/dist/sankhyablocks/p-d6610d11.entry.js +0 -11
- package/dist/sankhyablocks/p-e8763234.entry.js +0 -1
- package/dist/sankhyablocks/p-f2809746.entry.js +0 -1
- package/dist/sankhyablocks/p-ffa5e4ff.js +0 -1
- package/dist/types/components/snk-data-exporter/utils/RecordIDUtils.d.ts +0 -3
- package/dist/types/components/snk-taskbar/subcomponents/field-search.d.ts +0 -4
@@ -1,5 +1,5 @@
|
|
1
|
-
import { ApplicationContext, DataType, ElementIDUtils,
|
2
|
-
import { CSSVarsUtils } from
|
1
|
+
import { Action as DUAction, ApplicationContext, DataType, ElementIDUtils, KeyboardManager, ObjectUtils, StringUtils, UserInterface, } from '@sankhyalabs/core';
|
2
|
+
import { CSSVarsUtils } from '@sankhyalabs/ezui/dist/collection/utils';
|
3
3
|
import { h } from '@stencil/core';
|
4
4
|
import { SIMPLE_CRUD_MODE, VIEW_MODE } from '../../lib/utils/constants';
|
5
5
|
import { TaskbarElement } from '../snk-taskbar/elements/taskbar-elements';
|
@@ -7,33 +7,28 @@ import { CrudUtils, FormConfigFetcher, PresentationMode } from '../../lib';
|
|
7
7
|
import TaskbarProcessor from '../snk-taskbar/processor/taskbar-processor';
|
8
8
|
import InMemoryLoader from '../../lib/dataUnit/InMemoryLoader';
|
9
9
|
import SnkMultiSelectionListDataSource from '../snk-grid/filtercolumn/SnkMultiSelectionListDataSource';
|
10
|
-
import { buildFieldSearch, openFieldSearch } from '../snk-taskbar/subcomponents/field-search';
|
11
10
|
import { ConfigStorage } from '../../lib/configs/ConfigStorage';
|
12
11
|
import { SnkFormConfigManager } from '../snk-form-config/SnkFormConfigManager';
|
13
12
|
import { REGULAR_DEFAULT_BTNS, REGULAR_SELECTED_BTNS } from './regular-buttons';
|
14
13
|
import RmPrecisionCustomValueFormatter from '../../lib/DefaultCustomFormatters/RmPrecisionCustomValueFormatter';
|
15
14
|
import ClientSideExporterProvider from '../snk-data-exporter/providers/ClientSideExporterProvider';
|
16
|
-
import store from
|
15
|
+
import store from '../../lib/store';
|
16
|
+
import { ContinuousInsertUtils } from '../../lib/utils/ContinuousInsertUtils';
|
17
|
+
import { buildFieldSearch, LABEL_SEARCH_COLUMN, LABEL_SEARCH_FIELD } from '@sankhyalabs/ezui/dist/collection/utils';
|
17
18
|
export class SnkSimpleCrud {
|
18
19
|
constructor() {
|
19
20
|
this._multiSelectionListDataSource = new SnkMultiSelectionListDataSource();
|
20
|
-
this._keyDownHandler = (event) => this.keyDownListener(event);
|
21
21
|
this._formConfigFetcher = new FormConfigFetcher();
|
22
22
|
this._customEditors = new Map();
|
23
23
|
this._customRenders = new Map();
|
24
|
-
this.
|
25
|
-
"snkSimpleCrudTaskbar.form_regular": this.getButtons(false, [TaskbarElement.GRID_MODE]),
|
26
|
-
"snkSimpleCrudTaskbar.grid_regular": this.getButtons(false, [TaskbarElement.DATA_EXPORTER, TaskbarElement.FORM_MODE]),
|
27
|
-
"snkSimpleCrudTaskbar.form_selected": this.getButtons(true, [TaskbarElement.GRID_MODE]),
|
28
|
-
"snkSimpleCrudTaskbar.grid_selected": this.getButtons(true, [TaskbarElement.DATA_EXPORTER, TaskbarElement.FORM_MODE]),
|
29
|
-
"snkSimpleCrudTaskbar.finish_edition": ["CANCEL", "SAVE"]
|
30
|
-
});
|
24
|
+
this._container = undefined;
|
31
25
|
this._showPopUpGridConfig = false;
|
32
|
-
this._showFormConfig = false;
|
33
26
|
this._currentViewMode = VIEW_MODE.GRID;
|
34
27
|
this._config = undefined;
|
35
28
|
this._fieldToGetFocus = undefined;
|
36
29
|
this._customContainerId = `SNK-SIMPLE-CRUD-CUSTOM-CONTAINER-${StringUtils.generateUUID()}`;
|
30
|
+
this.enableLockManagerLoadingComp = false;
|
31
|
+
this.enableLockManagerTaskbarClick = false;
|
37
32
|
this.dataState = undefined;
|
38
33
|
this.dataUnit = undefined;
|
39
34
|
this.entityName = undefined;
|
@@ -42,22 +37,27 @@ export class SnkSimpleCrud {
|
|
42
37
|
this.formConfig = undefined;
|
43
38
|
this._formFields = [];
|
44
39
|
this._fieldsProps = new Map();
|
40
|
+
this.enableContinuousInsert = false;
|
45
41
|
this.multipleSelection = undefined;
|
46
42
|
this.useCancelConfirm = true;
|
47
43
|
this.pageSize = 150;
|
48
44
|
this.resourceID = undefined;
|
45
|
+
this.enableGridInsert = false;
|
49
46
|
this.taskbarManager = undefined;
|
50
47
|
this.messagesBuilder = undefined;
|
51
48
|
this.useEnterLikeTab = false;
|
52
49
|
this.actionsList = undefined;
|
53
50
|
this.configName = undefined;
|
54
|
-
this.showConfiguratorButtons =
|
51
|
+
this.showConfiguratorButtons = false;
|
55
52
|
this.gridLegacyConfigName = undefined;
|
56
53
|
this.formLegacyConfigName = undefined;
|
57
54
|
this.ignoreReadOnlyFormFields = false;
|
58
55
|
this.autoFocus = true;
|
59
56
|
this.domainMessagesBuilder = undefined;
|
57
|
+
this.multipleEditionEnabled = true;
|
58
|
+
this.layoutFormConfig = false;
|
60
59
|
this.autoLoad = undefined;
|
60
|
+
this.outlineMode = false;
|
61
61
|
}
|
62
62
|
/**
|
63
63
|
* Registra um editor customizado para campos da grade e formulário.
|
@@ -115,8 +115,36 @@ export class SnkSimpleCrud {
|
|
115
115
|
newCustomFieldProps.set(fieldName, Object.assign(Object.assign({}, currentProps), { [propName]: value }));
|
116
116
|
this._fieldsProps = newCustomFieldProps;
|
117
117
|
}
|
118
|
-
|
119
|
-
|
118
|
+
loadTaskbarProcessor() {
|
119
|
+
const taskbarIDs = {};
|
120
|
+
taskbarIDs[TASKBAR_ID.FORM_REGULAR] = this.getButtons(false, [TaskbarElement.GRID_MODE], true);
|
121
|
+
taskbarIDs[TASKBAR_ID.GRID_REGULAR] = this.getButtons(false, [TaskbarElement.DATA_EXPORTER, TaskbarElement.FORM_MODE]);
|
122
|
+
taskbarIDs[TASKBAR_ID.FORM_SELECTED] = this.getButtons(true, [TaskbarElement.GRID_MODE], true);
|
123
|
+
taskbarIDs[TASKBAR_ID.GRID_SELECTED] = this.getGridSelectedButtonsCallBack.bind(this);
|
124
|
+
taskbarIDs[TASKBAR_ID.FINISH_EDITION] = this.getFinishEditionButtonsCallback.bind(this);
|
125
|
+
taskbarIDs[TASKBAR_ID.MULTIPLE_EDITION] = [TaskbarElement.CANCEL];
|
126
|
+
this._taskbarProcessor = new TaskbarProcessor(taskbarIDs);
|
127
|
+
}
|
128
|
+
getGridSelectedButtonsCallBack() {
|
129
|
+
var _a, _b, _c;
|
130
|
+
if (!this.multipleEditionEnabled || ((_c = (_b = (_a = this.dataState) === null || _a === void 0 ? void 0 : _a.selectionInfo) === null || _b === void 0 ? void 0 : _b.records) === null || _c === void 0 ? void 0 : _c.length) === 1) {
|
131
|
+
return this.getButtons(true, [TaskbarElement.DATA_EXPORTER, TaskbarElement.FORM_MODE]);
|
132
|
+
}
|
133
|
+
return this.getButtons(true, [TaskbarElement.UPDATE_MULTIPLE, TaskbarElement.DATA_EXPORTER, TaskbarElement.FORM_MODE]);
|
134
|
+
}
|
135
|
+
getFinishEditionButtonsCallback() {
|
136
|
+
const btns = [TaskbarElement.CANCEL, TaskbarElement.SAVE];
|
137
|
+
if (this.enableGridInsert && this._currentViewMode !== VIEW_MODE.ATTACHMENT) {
|
138
|
+
btns.push(this._currentViewMode === VIEW_MODE.GRID ? TaskbarElement.FORM_MODE : TaskbarElement.GRID_MODE);
|
139
|
+
}
|
140
|
+
return btns;
|
141
|
+
}
|
142
|
+
getButtons(selected, extraButtons, removeRefresh) {
|
143
|
+
let btnList = selected ? REGULAR_SELECTED_BTNS : REGULAR_DEFAULT_BTNS;
|
144
|
+
if (removeRefresh) {
|
145
|
+
btnList = btnList.filter(item => item !== TaskbarElement.REFRESH);
|
146
|
+
}
|
147
|
+
return this.addConfigButton(this.resolveInMemoryBtns(btnList)
|
120
148
|
.concat(extraButtons));
|
121
149
|
}
|
122
150
|
addConfigButton(buttons) {
|
@@ -141,22 +169,38 @@ export class SnkSimpleCrud {
|
|
141
169
|
async goToView(view) {
|
142
170
|
this._currentViewMode = view;
|
143
171
|
if (this._viewStack) {
|
172
|
+
if (view === VIEW_MODE.GRID)
|
173
|
+
this.dataUnit.isMultipleEdition = false;
|
144
174
|
this._viewStack.show(view);
|
145
175
|
}
|
146
|
-
|
147
|
-
|
148
|
-
const act = evt.detail;
|
149
|
-
if (act === TaskbarElement.CONFIGURATOR) {
|
150
|
-
this._snkConfigurator.open();
|
151
|
-
}
|
152
|
-
else if (act === TaskbarElement.GRID_MODE) {
|
153
|
-
this.goToView(VIEW_MODE.GRID);
|
176
|
+
if (view === VIEW_MODE.GRID) {
|
177
|
+
requestAnimationFrame(() => this.focusToGrid());
|
154
178
|
}
|
155
|
-
|
156
|
-
this.
|
179
|
+
if (view === VIEW_MODE.FORM) {
|
180
|
+
requestAnimationFrame(() => this.focusToForm());
|
157
181
|
}
|
182
|
+
}
|
183
|
+
actionClickListener(evt) {
|
184
|
+
this.handleTaskbarAction(evt.detail);
|
158
185
|
evt.stopPropagation();
|
159
186
|
}
|
187
|
+
handleTaskbarAction(action) {
|
188
|
+
switch (action) {
|
189
|
+
case TaskbarElement.CONFIGURATOR:
|
190
|
+
this._snkConfigurator.open();
|
191
|
+
break;
|
192
|
+
case TaskbarElement.GRID_MODE:
|
193
|
+
this.goToView(VIEW_MODE.GRID);
|
194
|
+
break;
|
195
|
+
case TaskbarElement.FORM_MODE:
|
196
|
+
this.goToView(VIEW_MODE.FORM);
|
197
|
+
break;
|
198
|
+
case TaskbarElement.UPDATE_MULTIPLE:
|
199
|
+
this.dataUnit.isMultipleEdition = true;
|
200
|
+
this.goToView(VIEW_MODE.FORM);
|
201
|
+
break;
|
202
|
+
}
|
203
|
+
}
|
160
204
|
async onChangeEntityName(newValue) {
|
161
205
|
if (this.dataUnit)
|
162
206
|
return;
|
@@ -197,7 +241,6 @@ export class SnkSimpleCrud {
|
|
197
241
|
await this.setFieldProp(field, 'precision', rmPrecision);
|
198
242
|
await this.setFieldProp(field, 'prettyPrecision', rmPrecision);
|
199
243
|
}
|
200
|
-
;
|
201
244
|
this._rmPrecisionCustomValueFormatter.setDataState(this.dataState);
|
202
245
|
}
|
203
246
|
async handleUpdateGridLegacyConfig(newValue, oldValue) {
|
@@ -236,15 +279,9 @@ export class SnkSimpleCrud {
|
|
236
279
|
});
|
237
280
|
}
|
238
281
|
async openFormConfig() {
|
239
|
-
|
240
|
-
|
241
|
-
if (this.formLegacyConfigName) {
|
242
|
-
const title = (_a = this.messagesBuilder) === null || _a === void 0 ? void 0 : _a.getMessage("snkSimpleCrud.formConfigUnavaliable.title", undefined);
|
243
|
-
const message = (_b = this.messagesBuilder) === null || _b === void 0 ? void 0 : _b.getMessage("snkSimpleCrud.formConfigUnavaliable.message", undefined);
|
244
|
-
await this.application.alert(title, message);
|
245
|
-
return;
|
282
|
+
if (this.formLegacyConfigName || this.configName) {
|
283
|
+
await this._snkSimpleFormConfig.show();
|
246
284
|
}
|
247
|
-
this._showFormConfig = true;
|
248
285
|
}
|
249
286
|
addGridLegacyConfigName() {
|
250
287
|
if (this.gridLegacyConfigName && this.configName) {
|
@@ -274,12 +311,12 @@ export class SnkSimpleCrud {
|
|
274
311
|
formConfigIsLoaded() {
|
275
312
|
return this.formConfig != undefined || this._formConfigAlreadyLoaded;
|
276
313
|
}
|
277
|
-
async loadFormConfig(forceLoad = false) {
|
314
|
+
async loadFormConfig(forceLoad = false, forceSetNewConfig = false) {
|
278
315
|
if (this.configName === undefined) {
|
279
316
|
return;
|
280
317
|
}
|
281
318
|
if (this._formConfigManager == undefined) {
|
282
|
-
this._formConfigManager = new SnkFormConfigManager(this.configName, this.resolveResourceID());
|
319
|
+
this._formConfigManager = new SnkFormConfigManager(this.configName, this.resolveResourceID(), undefined, this.dataUnit);
|
283
320
|
this._formConfigManager.setConfig(this.formConfig);
|
284
321
|
}
|
285
322
|
if (this.formConfigIsLoaded() && !forceLoad) {
|
@@ -289,14 +326,16 @@ export class SnkSimpleCrud {
|
|
289
326
|
let loadedLegacyConfig = await this._formConfigFetcher.fetchLegacyConfigurableForm(this.formLegacyConfigName);
|
290
327
|
if (loadedLegacyConfig != undefined) {
|
291
328
|
this._formConfigManager.setConfig(loadedLegacyConfig);
|
292
|
-
this.setFormConfig(loadedLegacyConfig);
|
329
|
+
this.setFormConfig(loadedLegacyConfig, forceSetNewConfig);
|
293
330
|
return;
|
294
331
|
}
|
295
332
|
this.setFormConfig(await this._formConfigManager.loadConfig());
|
296
333
|
}
|
297
334
|
async componentWillRender() {
|
335
|
+
this.loadTaskbarProcessor();
|
298
336
|
this._resourceID = await this.application.getResourceID();
|
299
337
|
this.dataExporterProviderStore();
|
338
|
+
this.dataExporterProviderStore();
|
300
339
|
this._taskbarProcessor.process(this.getTaskBarId(), this.taskbarManager, this.dataState, this.getTaskBarDisabledButtons());
|
301
340
|
if (this.configName === undefined) {
|
302
341
|
return;
|
@@ -320,9 +359,26 @@ export class SnkSimpleCrud {
|
|
320
359
|
this.onModeChange();
|
321
360
|
this.configDatasource();
|
322
361
|
this._rmPrecisionCustomValueFormatter = new RmPrecisionCustomValueFormatter();
|
362
|
+
this._continuousInsertUtils = new ContinuousInsertUtils(this.application, this.resolveResourceID(), this.configName);
|
363
|
+
if (this.enableGridInsert) {
|
364
|
+
this._continuousInsertUtils.getConfig().then(value => this.enableContinuousInsert = value);
|
365
|
+
}
|
323
366
|
}
|
324
367
|
componentDidLoad() {
|
325
368
|
CSSVarsUtils.applyVarsGrid(this._element, this._grid);
|
369
|
+
this.initKeyboardManager();
|
370
|
+
this.dataUnit.subscribe(this.dataUnitActionHandler.bind(this));
|
371
|
+
}
|
372
|
+
async dataUnitActionHandler(action) {
|
373
|
+
if (action.type === DUAction.EDITION_CANCELED || action.type === DUAction.DATA_SAVED) {
|
374
|
+
if (this.dataUnit.isMultipleEdition) {
|
375
|
+
this.goToView(VIEW_MODE.GRID);
|
376
|
+
}
|
377
|
+
}
|
378
|
+
}
|
379
|
+
disconnectedCallback() {
|
380
|
+
var _a;
|
381
|
+
(_a = this._keyboardManager) === null || _a === void 0 ? void 0 : _a.unbindAllShortcutKeys();
|
326
382
|
}
|
327
383
|
setCustomRenders() {
|
328
384
|
if (!this._grid) {
|
@@ -361,14 +417,17 @@ export class SnkSimpleCrud {
|
|
361
417
|
getTaskBarId() {
|
362
418
|
var _a, _b;
|
363
419
|
if ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.isDirty) {
|
364
|
-
return
|
420
|
+
return TASKBAR_ID.FINISH_EDITION;
|
421
|
+
}
|
422
|
+
if (this.dataUnit.isMultipleEdition) {
|
423
|
+
return TASKBAR_ID.MULTIPLE_EDITION;
|
365
424
|
}
|
366
425
|
if (((_b = this.dataState) === null || _b === void 0 ? void 0 : _b.selectionInfo) &&
|
367
426
|
!this.dataState.selectionInfo.isAllRecords() &&
|
368
427
|
this.dataState.selectionInfo.length > 0) {
|
369
|
-
return this._currentViewMode === VIEW_MODE.GRID ?
|
428
|
+
return this._currentViewMode === VIEW_MODE.GRID ? TASKBAR_ID.GRID_SELECTED : TASKBAR_ID.FORM_SELECTED;
|
370
429
|
}
|
371
|
-
return this._currentViewMode === VIEW_MODE.GRID ?
|
430
|
+
return this._currentViewMode === VIEW_MODE.GRID ? TASKBAR_ID.GRID_REGULAR : TASKBAR_ID.FORM_REGULAR;
|
372
431
|
}
|
373
432
|
initInMemoryDataUnit() {
|
374
433
|
this._inMemoryLoader = new InMemoryLoader(this._metadata, undefined, { autoLoad: this.autoLoad });
|
@@ -498,40 +557,18 @@ export class SnkSimpleCrud {
|
|
498
557
|
}
|
499
558
|
this.configuratorCancel.emit();
|
500
559
|
}
|
501
|
-
|
502
|
-
if (this._columnSearch != undefined) {
|
503
|
-
return this._columnSearch;
|
504
|
-
}
|
505
|
-
this._moreOptions = actionButton;
|
506
|
-
this._columnSearch = buildFieldSearch(item, ({ argument }) => new Promise(accept => {
|
507
|
-
this._grid.filterColumns(argument).then((columns) => {
|
508
|
-
accept(columns
|
509
|
-
.filter(column => !column.hidden)
|
510
|
-
.map(column => ({ label: column.label, value: column.name })));
|
511
|
-
});
|
512
|
-
}), (option) => {
|
513
|
-
var _a;
|
514
|
-
if (option != undefined) {
|
515
|
-
this._grid.locateColumn(option.value);
|
516
|
-
(_a = actionButton["hideActions"]) === null || _a === void 0 ? void 0 : _a.call(actionButton);
|
517
|
-
}
|
518
|
-
});
|
519
|
-
return this._columnSearch;
|
520
|
-
}
|
521
|
-
onSelectField(option, actionButton) {
|
560
|
+
onSelectField(option) {
|
522
561
|
if (option == undefined) {
|
523
562
|
return;
|
524
563
|
}
|
525
564
|
this._fieldToGetFocus = option.value;
|
526
|
-
actionButton.hideActions();
|
527
565
|
}
|
528
|
-
getFieldSearch(
|
566
|
+
getFieldSearch(splitButton, item) {
|
529
567
|
if (this._fieldSearch != undefined) {
|
530
568
|
return this._fieldSearch;
|
531
569
|
}
|
532
|
-
this.
|
533
|
-
|
534
|
-
this._fieldSearch = buildFieldSearch(item, ({ argument }) => this.fieldsOptionLoader(argument), (option) => this.onSelectField(option, actionButton));
|
570
|
+
this._splitButtonForm = splitButton;
|
571
|
+
this._fieldSearch = buildFieldSearch(item, ({ argument }) => this.fieldsOptionLoader(argument), (option) => this.onSelectField(option));
|
535
572
|
return this._fieldSearch;
|
536
573
|
}
|
537
574
|
getFormFields() {
|
@@ -554,69 +591,79 @@ export class SnkSimpleCrud {
|
|
554
591
|
const options = filteredFields.map(field => ({ value: field.name, label: field.label }));
|
555
592
|
return Promise.resolve(options);
|
556
593
|
}
|
594
|
+
isGridInsertActive() {
|
595
|
+
return this.enableGridInsert && this.dataUnit.hasNewRecord();
|
596
|
+
}
|
597
|
+
getColumnSearch(splitButton, item) {
|
598
|
+
if (this._columnSearch != undefined) {
|
599
|
+
return this._columnSearch;
|
600
|
+
}
|
601
|
+
this._splitButton = splitButton;
|
602
|
+
this._columnSearch = buildFieldSearch(item, ({ argument }) => new Promise(accept => {
|
603
|
+
this._grid.filterColumns(argument).then((columns) => {
|
604
|
+
accept(columns
|
605
|
+
.filter(column => !column.hidden)
|
606
|
+
.map(column => ({ label: column.label, value: column.name })));
|
607
|
+
});
|
608
|
+
}), (option) => {
|
609
|
+
if (option != undefined) {
|
610
|
+
this._grid.locateColumn(option.value);
|
611
|
+
}
|
612
|
+
});
|
613
|
+
return this._columnSearch;
|
614
|
+
}
|
557
615
|
getActionsList() {
|
616
|
+
const hardList = [];
|
617
|
+
if (this.enableGridInsert) {
|
618
|
+
hardList.push(this._continuousInsertUtils.actionContinuousInsert(this.enableContinuousInsert, () => {
|
619
|
+
this.enableContinuousInsert = !this.enableContinuousInsert;
|
620
|
+
this._continuousInsertUtils.handleSaveConfig(this.enableContinuousInsert);
|
621
|
+
}));
|
622
|
+
}
|
623
|
+
if (this.isGridInsertActive())
|
624
|
+
return hardList;
|
625
|
+
if (this.taskbarManager != undefined && this.taskbarManager.getMoreOptions != undefined) {
|
626
|
+
const taskbarID = this.getTopTaskBarId();
|
627
|
+
return hardList.concat(this.taskbarManager.getMoreOptions(taskbarID, this.configName, this.dataState, this.actionsList));
|
628
|
+
}
|
629
|
+
return hardList.concat(this.actionsList);
|
630
|
+
}
|
631
|
+
getSettingsListGrid() {
|
558
632
|
var _a, _b;
|
559
633
|
const hardList = [{
|
560
634
|
value: StringUtils.generateUUID(),
|
561
|
-
label: (_b = (_a = this.messagesBuilder) === null || _a === void 0 ? void 0 : _a.getMessage("snkSimpleCrud.findColumn",
|
635
|
+
label: (_b = (_a = this.messagesBuilder) === null || _a === void 0 ? void 0 : _a.getMessage("snkSimpleCrud.findColumn", {})) !== null && _b !== void 0 ? _b : LABEL_SEARCH_COLUMN,
|
562
636
|
disableCloseOnSelect: true,
|
563
637
|
eagerInitialize: true,
|
564
|
-
itemBuilder: (
|
565
|
-
? this.getColumnSearch(actionButton, item)
|
566
|
-
: this.getFieldSearch(actionButton, item)
|
638
|
+
itemBuilder: (splitButton, item) => this.getColumnSearch(splitButton, item)
|
567
639
|
}];
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
640
|
+
return hardList;
|
641
|
+
}
|
642
|
+
getSettingsListForm() {
|
643
|
+
var _a, _b;
|
644
|
+
const hardList = [{
|
645
|
+
value: StringUtils.generateUUID(),
|
646
|
+
label: (_b = (_a = this.messagesBuilder) === null || _a === void 0 ? void 0 : _a.getMessage("snkSimpleCrud.findFields", {})) !== null && _b !== void 0 ? _b : LABEL_SEARCH_FIELD,
|
647
|
+
disableCloseOnSelect: true,
|
648
|
+
eagerInitialize: true,
|
649
|
+
itemBuilder: (splitButton, item) => this.getFieldSearch(splitButton, item)
|
650
|
+
}];
|
651
|
+
return hardList;
|
573
652
|
}
|
574
653
|
getTopTaskBarId() {
|
575
654
|
var _a;
|
576
655
|
return ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.isDirty) ? `snkGridTopTaskbar.finish_edition${PresentationMode.PRIMARY}` :
|
577
656
|
`snkGridTopTaskbar.regular${PresentationMode.PRIMARY}`;
|
578
657
|
}
|
579
|
-
async keyDownListener(event) {
|
580
|
-
if (!event.ctrlKey || event.key == undefined || event.key.toUpperCase() !== "F") {
|
581
|
-
return;
|
582
|
-
}
|
583
|
-
if (this._element == undefined) {
|
584
|
-
return;
|
585
|
-
}
|
586
|
-
if (JSUtils.isHiddenElement(this._element)) {
|
587
|
-
return;
|
588
|
-
}
|
589
|
-
FloatingManager.closeAll();
|
590
|
-
if (this._currentViewMode === VIEW_MODE.GRID) {
|
591
|
-
await this.findColumn();
|
592
|
-
}
|
593
|
-
else {
|
594
|
-
await this.findField();
|
595
|
-
}
|
596
|
-
event.preventDefault();
|
597
|
-
}
|
598
|
-
async findField() {
|
599
|
-
await this.openSeach(this._fieldSearch);
|
600
|
-
}
|
601
|
-
async findColumn() {
|
602
|
-
await this.openSeach(this._columnSearch);
|
603
|
-
}
|
604
|
-
async openSeach(fieldSearch) {
|
605
|
-
await openFieldSearch(this._moreOptions, fieldSearch);
|
606
|
-
}
|
607
658
|
clearFieldToFocusHandler() {
|
608
659
|
this._fieldToGetFocus = undefined;
|
609
660
|
}
|
610
|
-
connectedCallback() {
|
611
|
-
window.addEventListener("keydown", this._keyDownHandler, { capture: true });
|
612
|
-
}
|
613
|
-
disconnectedCallback() {
|
614
|
-
window.removeEventListener("keydown", this._keyDownHandler);
|
615
|
-
}
|
616
661
|
gridConfigChangeHandler(evt) {
|
662
|
+
evt.stopPropagation();
|
663
|
+
if (!this.configName)
|
664
|
+
return;
|
617
665
|
const config = evt.detail;
|
618
666
|
ConfigStorage.saveGridConfig(config, this.configName, this.resolveResourceID());
|
619
|
-
evt.stopPropagation();
|
620
667
|
}
|
621
668
|
modalConfigChangeHandler(evt) {
|
622
669
|
const config = evt.detail;
|
@@ -653,9 +700,6 @@ export class SnkSimpleCrud {
|
|
653
700
|
closeGridConfig() {
|
654
701
|
this._showPopUpGridConfig = false;
|
655
702
|
}
|
656
|
-
closeFormConfig() {
|
657
|
-
this._showFormConfig = false;
|
658
|
-
}
|
659
703
|
getPageSize() {
|
660
704
|
if (this.mode === SIMPLE_CRUD_MODE.IN_MEMORY) {
|
661
705
|
return 0;
|
@@ -665,10 +709,6 @@ export class SnkSimpleCrud {
|
|
665
709
|
}
|
666
710
|
return this.pageSize;
|
667
711
|
}
|
668
|
-
//No momento não daremos suporte para configuração de formulário quando houver formLegacyConfigName
|
669
|
-
handleShowFormConfig() {
|
670
|
-
return this._showFormConfig && !this.formLegacyConfigName;
|
671
|
-
}
|
672
712
|
resolveResourceID() {
|
673
713
|
return StringUtils.isEmpty(this.resourceID) ? this._resourceID : this.resourceID;
|
674
714
|
}
|
@@ -681,22 +721,65 @@ export class SnkSimpleCrud {
|
|
681
721
|
return configFromManager;
|
682
722
|
}
|
683
723
|
updateFormConfig() {
|
684
|
-
|
724
|
+
let newConfig = this.formConfig;
|
725
|
+
if (this.formLegacyConfigName == undefined) {
|
726
|
+
newConfig = Object.assign(Object.assign({}, this.formConfig), { fields: this.dataUnit.metadata.fields });
|
727
|
+
}
|
685
728
|
this.setFormConfig(newConfig, true);
|
686
729
|
if (this._formConfigManager == undefined) {
|
687
730
|
this._formConfigManager = new SnkFormConfigManager(this.configName, this.resolveResourceID());
|
688
731
|
}
|
689
732
|
this._formConfigManager.setConfig(this.formConfig);
|
690
733
|
}
|
734
|
+
handleDataUnitOnInsertionMode() {
|
735
|
+
if (this.enableGridInsert)
|
736
|
+
return;
|
737
|
+
this.goToView(VIEW_MODE.FORM);
|
738
|
+
}
|
739
|
+
async initKeyboardManager() {
|
740
|
+
var _a;
|
741
|
+
this._keyboardManager = new KeyboardManager({ propagate: false, element: this._element });
|
742
|
+
const dataUnit = this.dataUnit || await ((_a = this._snkDataUnit) === null || _a === void 0 ? void 0 : _a.getDataUnit());
|
743
|
+
if (dataUnit == undefined) {
|
744
|
+
return;
|
745
|
+
}
|
746
|
+
this._keyboardManager
|
747
|
+
.bind("F7", () => dataUnit.saveData(), { description: "Salva os dados.", element: this._element })
|
748
|
+
.bind("F8", dataUnit.addRecord.bind(dataUnit), { description: "Adiciona um novo registro.", element: this._element })
|
749
|
+
.bind("F9", dataUnit.removeSelectedRecords.bind(dataUnit), { description: "Remove o registro selecionado.", element: this._element })
|
750
|
+
.bind("Escape", () => {
|
751
|
+
if (dataUnit.isDirty()) {
|
752
|
+
dataUnit.cancelEdition();
|
753
|
+
}
|
754
|
+
}, {
|
755
|
+
debounceTime: 1000,
|
756
|
+
description: "Cancela uma ação.", element: this._element
|
757
|
+
});
|
758
|
+
}
|
759
|
+
async handleFormConfigSaved() {
|
760
|
+
await this.loadFormConfig(true, true);
|
761
|
+
}
|
762
|
+
focusToGrid() {
|
763
|
+
const gridElement = this._grid;
|
764
|
+
gridElement.focus();
|
765
|
+
}
|
766
|
+
focusToForm() {
|
767
|
+
const formElement = this._form;
|
768
|
+
formElement.focus();
|
769
|
+
}
|
770
|
+
renderTaskbarContent(layout) {
|
771
|
+
var _a;
|
772
|
+
return (h("snk-taskbar", { class: `ez-box--no-outline ez-box ${this._currentViewMode === VIEW_MODE.FORM ? (this.outlineMode ? 'ez-box--outline' : 'ez-box--shadow-xsmall') + ' ez-padding--small' : ''}`, dataUnit: this.dataUnit, primaryButton: ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.isDirty) ? "SAVE" : "INSERT", "data-element-id": "grid_left", messagesBuilder: this.messagesBuilder, buttons: this._taskbarProcessor.buttons, actionsList: this.getActionsList(), actionsSettingsList: layout === VIEW_MODE.GRID ? this.getSettingsListGrid() : this.getSettingsListForm(), disabledButtons: this._taskbarProcessor.disabledButtons, customButtons: this._taskbarProcessor.customButtons, "data-exporter-store-key": this.getDataExporterStoreKey(), slot: "leftButtons", presentationMode: PresentationMode.SECONDARY, tabindex: "0" }, h("slot", { name: "TASKBAR_CUSTOM_ELEMENTS" })));
|
773
|
+
}
|
691
774
|
/* istanbul ignore next */
|
692
775
|
render() {
|
693
776
|
var _a;
|
694
777
|
if (this.dataUnit == undefined) {
|
695
778
|
return;
|
696
779
|
}
|
697
|
-
return (h("snk-data-unit", { ref: ref => this._snkDataUnit = ref, class: "simple-crud__container", dataUnit: this.dataUnit, useCancelConfirm: this.useCancelConfirm, onDataStateChange: evt => this.onDataStateChange(evt), onCancelEdition: this.handleCancelEdit.bind(this), pageSize: this.getPageSize(), onInsertionMode:
|
780
|
+
return (h("snk-data-unit", { ref: ref => this._snkDataUnit = ref, class: "simple-crud__container", dataUnit: this.dataUnit, useCancelConfirm: this.useCancelConfirm, onDataStateChange: evt => this.onDataStateChange(evt), onCancelEdition: this.handleCancelEdit.bind(this), pageSize: this.getPageSize(), onInsertionMode: this.handleDataUnitOnInsertionMode.bind(this), onDataUnitReady: (evt) => this.dataUnitReady.emit(evt.detail), onMessagesBuilderUpdated: evt => this.messagesBuilder = evt.detail, onDataUnitFieldsHidded: this.updateFormConfig.bind(this), domainMessagesBuilder: this.domainMessagesBuilder }, h("header", null, h("slot", { name: "snkSimpleCrudHeader" })), h("section", { class: `ez-box ez-box--no-outline ${this.outlineMode ? 'ez-box--outline' : 'ez-box--shadow'} simple-crud__container-section`, ref: (ref) => this._container = ref, tabindex: "0" }, h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "simple-crud" }, h("stack-item", null, h("ez-grid", { class: "ez-margin-bottom--large ez-box--no-outline", ref: ref => this._grid = ref, dataUnit: this.dataUnit, config: this.gridConfig, "no-header": true, multipleSelection: this.multipleSelection, onEzDoubleClick: () => this.goToView(VIEW_MODE.FORM), onConfigChange: evt => this.gridConfigChangeHandler(evt), columnfilterDataSource: this.dataUnit.name && this.dataUnit.name.includes(InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME)
|
698
781
|
? undefined
|
699
|
-
: this._multiSelectionListDataSource, useEnterLikeTab: this.useEnterLikeTab, autoFocus: this.autoFocus }, h("div", { slot: "footer" }, h("slot", { name: "snkSimpleCrudFooter" })))), h("stack-item", null, h("ez-form", { ref: (ref) => this._form = ref, class: `ez-margin-top--large
|
782
|
+
: this._multiSelectionListDataSource, useEnterLikeTab: this.useEnterLikeTab, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this.enableContinuousInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, outlineMode: this.outlineMode, tabindex: "0" }, this.renderTaskbarContent(VIEW_MODE.GRID), h("div", { slot: "footer" }, h("slot", { name: "snkSimpleCrudFooter" })))), h("stack-item", null, this.renderTaskbarContent(VIEW_MODE.FORM), h("ez-form", { ref: (ref) => this._form = ref, class: `ez-margin-top--large ez-box--no-outline`, dataUnit: this.dataUnit, config: this.getFormConfig(), fieldToFocus: this._fieldToGetFocus, onEzFormSetFields: (evt) => this.handleFormSetFields(evt.detail), onEzFormRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this), elementFocusSearchField: this._container, tabindex: "0" }), h("snk-simple-form-config", { ref: (ref) => this._snkSimpleFormConfig = ref, dataUnit: this.dataUnit, onSnkConfigSaved: this.handleFormConfigSaved.bind(this), configName: (_a = this.formLegacyConfigName) !== null && _a !== void 0 ? _a : this.configName })), this.messagesBuilder && h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.goToView(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showConfiguratorButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this.resolveResourceID(), customContainerId: this._customContainerId, layoutFormConfig: this.layoutFormConfig })), h("div", { id: `${this._customContainerId}` }, h("slot", { name: "SnkConfigContainerSlot" }))), h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._showPopUpGridConfig, onEzCloseModal: () => this.closeGridConfig() }, h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this.gridConfig, "data-element-id": this._element.getAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resolveResourceID() }))));
|
700
783
|
}
|
701
784
|
static get is() { return "snk-simple-crud"; }
|
702
785
|
static get encapsulation() { return "scoped"; }
|
@@ -712,6 +795,42 @@ export class SnkSimpleCrud {
|
|
712
795
|
}
|
713
796
|
static get properties() {
|
714
797
|
return {
|
798
|
+
"enableLockManagerLoadingComp": {
|
799
|
+
"type": "boolean",
|
800
|
+
"mutable": false,
|
801
|
+
"complexType": {
|
802
|
+
"original": "boolean",
|
803
|
+
"resolved": "boolean",
|
804
|
+
"references": {}
|
805
|
+
},
|
806
|
+
"required": false,
|
807
|
+
"optional": true,
|
808
|
+
"docs": {
|
809
|
+
"tags": [],
|
810
|
+
"text": "Define se o componente deve usar o LockManager para controle de carregamento da aplica\u00E7\u00E3o"
|
811
|
+
},
|
812
|
+
"attribute": "enable-lock-manager-loading-comp",
|
813
|
+
"reflect": false,
|
814
|
+
"defaultValue": "false"
|
815
|
+
},
|
816
|
+
"enableLockManagerTaskbarClick": {
|
817
|
+
"type": "boolean",
|
818
|
+
"mutable": false,
|
819
|
+
"complexType": {
|
820
|
+
"original": "boolean",
|
821
|
+
"resolved": "boolean",
|
822
|
+
"references": {}
|
823
|
+
},
|
824
|
+
"required": false,
|
825
|
+
"optional": true,
|
826
|
+
"docs": {
|
827
|
+
"tags": [],
|
828
|
+
"text": "Ativa o gerenciamento de locks na grade pela Taskbar."
|
829
|
+
},
|
830
|
+
"attribute": "enable-lock-manager-taskbar-click",
|
831
|
+
"reflect": false,
|
832
|
+
"defaultValue": "false"
|
833
|
+
},
|
715
834
|
"dataState": {
|
716
835
|
"type": "unknown",
|
717
836
|
"mutable": false,
|
@@ -832,6 +951,24 @@ export class SnkSimpleCrud {
|
|
832
951
|
"text": ""
|
833
952
|
}
|
834
953
|
},
|
954
|
+
"enableContinuousInsert": {
|
955
|
+
"type": "boolean",
|
956
|
+
"mutable": true,
|
957
|
+
"complexType": {
|
958
|
+
"original": "boolean",
|
959
|
+
"resolved": "boolean",
|
960
|
+
"references": {}
|
961
|
+
},
|
962
|
+
"required": false,
|
963
|
+
"optional": false,
|
964
|
+
"docs": {
|
965
|
+
"tags": [],
|
966
|
+
"text": ""
|
967
|
+
},
|
968
|
+
"attribute": "enable-continuous-insert",
|
969
|
+
"reflect": false,
|
970
|
+
"defaultValue": "false"
|
971
|
+
},
|
835
972
|
"multipleSelection": {
|
836
973
|
"type": "boolean",
|
837
974
|
"mutable": false,
|
@@ -902,6 +1039,24 @@ export class SnkSimpleCrud {
|
|
902
1039
|
"attribute": "resource-i-d",
|
903
1040
|
"reflect": false
|
904
1041
|
},
|
1042
|
+
"enableGridInsert": {
|
1043
|
+
"type": "boolean",
|
1044
|
+
"mutable": false,
|
1045
|
+
"complexType": {
|
1046
|
+
"original": "boolean",
|
1047
|
+
"resolved": "boolean",
|
1048
|
+
"references": {}
|
1049
|
+
},
|
1050
|
+
"required": false,
|
1051
|
+
"optional": true,
|
1052
|
+
"docs": {
|
1053
|
+
"tags": [],
|
1054
|
+
"text": "Ativa inser\u00E7\u00E3o de registros no modo grade."
|
1055
|
+
},
|
1056
|
+
"attribute": "enable-grid-insert",
|
1057
|
+
"reflect": false,
|
1058
|
+
"defaultValue": "false"
|
1059
|
+
},
|
905
1060
|
"taskbarManager": {
|
906
1061
|
"type": "unknown",
|
907
1062
|
"mutable": false,
|
@@ -1015,7 +1170,8 @@ export class SnkSimpleCrud {
|
|
1015
1170
|
"text": "Usado para exibir os bot\u00F5es de a\u00E7\u00E3o do snk-configurator."
|
1016
1171
|
},
|
1017
1172
|
"attribute": "show-configurator-buttons",
|
1018
|
-
"reflect": false
|
1173
|
+
"reflect": false,
|
1174
|
+
"defaultValue": "false"
|
1019
1175
|
},
|
1020
1176
|
"gridLegacyConfigName": {
|
1021
1177
|
"type": "string",
|
@@ -1104,6 +1260,42 @@ export class SnkSimpleCrud {
|
|
1104
1260
|
"attribute": "domain-messages-builder",
|
1105
1261
|
"reflect": false
|
1106
1262
|
},
|
1263
|
+
"multipleEditionEnabled": {
|
1264
|
+
"type": "boolean",
|
1265
|
+
"mutable": false,
|
1266
|
+
"complexType": {
|
1267
|
+
"original": "boolean",
|
1268
|
+
"resolved": "boolean",
|
1269
|
+
"references": {}
|
1270
|
+
},
|
1271
|
+
"required": false,
|
1272
|
+
"optional": false,
|
1273
|
+
"docs": {
|
1274
|
+
"tags": [],
|
1275
|
+
"text": "Habilita a edi\u00E7\u00E3o de m\u00FAltiplos registros simult\u00E2neos."
|
1276
|
+
},
|
1277
|
+
"attribute": "multiple-edition-enabled",
|
1278
|
+
"reflect": false,
|
1279
|
+
"defaultValue": "true"
|
1280
|
+
},
|
1281
|
+
"layoutFormConfig": {
|
1282
|
+
"type": "boolean",
|
1283
|
+
"mutable": false,
|
1284
|
+
"complexType": {
|
1285
|
+
"original": "boolean",
|
1286
|
+
"resolved": "boolean",
|
1287
|
+
"references": {}
|
1288
|
+
},
|
1289
|
+
"required": false,
|
1290
|
+
"optional": false,
|
1291
|
+
"docs": {
|
1292
|
+
"tags": [],
|
1293
|
+
"text": "Define se o LayoutFormConfig ser\u00E1 exibido no configurador."
|
1294
|
+
},
|
1295
|
+
"attribute": "layout-form-config",
|
1296
|
+
"reflect": false,
|
1297
|
+
"defaultValue": "false"
|
1298
|
+
},
|
1107
1299
|
"autoLoad": {
|
1108
1300
|
"type": "boolean",
|
1109
1301
|
"mutable": false,
|
@@ -1120,13 +1312,31 @@ export class SnkSimpleCrud {
|
|
1120
1312
|
},
|
1121
1313
|
"attribute": "auto-load",
|
1122
1314
|
"reflect": false
|
1315
|
+
},
|
1316
|
+
"outlineMode": {
|
1317
|
+
"type": "boolean",
|
1318
|
+
"mutable": false,
|
1319
|
+
"complexType": {
|
1320
|
+
"original": "boolean",
|
1321
|
+
"resolved": "boolean",
|
1322
|
+
"references": {}
|
1323
|
+
},
|
1324
|
+
"required": false,
|
1325
|
+
"optional": true,
|
1326
|
+
"docs": {
|
1327
|
+
"tags": [],
|
1328
|
+
"text": "Altera visualmente as sombras e bordas do componente\nQuando false, aplica o padr\u00E3o de sombras ao componente (Utilizar quando for o elemento principal do layout)\nQuando true, aplica o padr\u00E3o de outline ao componente (Utilizar quando estiver contido em outro elemento como um painel ou pop-up)"
|
1329
|
+
},
|
1330
|
+
"attribute": "outline-mode",
|
1331
|
+
"reflect": false,
|
1332
|
+
"defaultValue": "false"
|
1123
1333
|
}
|
1124
1334
|
};
|
1125
1335
|
}
|
1126
1336
|
static get states() {
|
1127
1337
|
return {
|
1338
|
+
"_container": {},
|
1128
1339
|
"_showPopUpGridConfig": {},
|
1129
|
-
"_showFormConfig": {},
|
1130
1340
|
"_currentViewMode": {},
|
1131
1341
|
"_config": {},
|
1132
1342
|
"_fieldToGetFocus": {},
|
@@ -1546,3 +1756,12 @@ export class SnkSimpleCrud {
|
|
1546
1756
|
}];
|
1547
1757
|
}
|
1548
1758
|
}
|
1759
|
+
var TASKBAR_ID;
|
1760
|
+
(function (TASKBAR_ID) {
|
1761
|
+
TASKBAR_ID["FORM_REGULAR"] = "snkSimpleCrudTaskbar.form_regular";
|
1762
|
+
TASKBAR_ID["GRID_REGULAR"] = "snkSimpleCrudTaskbar.grid_regular";
|
1763
|
+
TASKBAR_ID["FORM_SELECTED"] = "snkSimpleCrudTaskbar.form_selected";
|
1764
|
+
TASKBAR_ID["GRID_SELECTED"] = "snkSimpleCrudTaskbar.grid_selected";
|
1765
|
+
TASKBAR_ID["FINISH_EDITION"] = "snkSimpleCrudTaskbar.finish_edition";
|
1766
|
+
TASKBAR_ID["MULTIPLE_EDITION"] = "snkSimpleCrudTaskbar.multiple_edition";
|
1767
|
+
})(TASKBAR_ID || (TASKBAR_ID = {}));
|