@sankhyalabs/sankhyablocks 8.16.0-dev.7 → 8.16.0-dev.71
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/{ConfigStorage-a343e418.js → ConfigStorage-d024aec8.js} +2 -2
- package/dist/cjs/{IExporterProvider-597949f9.js → ContinuousInsertUtils-54d44192.js} +65 -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-07f747be.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/{dataunit-fetcher-688d3f05.js → dataunit-fetcher-8ea97d88.js} +48 -20
- 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-680e198f.js → pesquisa-fetcher-f3454c23.js} +185 -2
- package/dist/cjs/pesquisa-grid_2.cjs.entry.js +133 -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} +136 -40
- package/dist/cjs/snk-application.cjs.entry.js +248 -69
- package/dist/cjs/snk-attach.cjs.entry.js +46 -33
- package/dist/cjs/{snk-form-config.cjs.entry.js → snk-config-options_3.cjs.entry.js} +398 -12
- package/dist/cjs/snk-crud.cjs.entry.js +22 -8
- package/dist/cjs/snk-data-exporter.cjs.entry.js +34 -22
- package/dist/cjs/{snk-data-unit-04df81bf.js → snk-data-unit-72ef8777.js} +54 -32
- package/dist/cjs/snk-data-unit.cjs.entry.js +5 -5
- package/dist/cjs/snk-detail-view.cjs.entry.js +12 -12
- package/dist/cjs/snk-exporter-email-sender.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 +71 -21
- package/dist/cjs/{snk-guides-viewer-bdc41281.js → snk-guides-viewer-b20b0cfd.js} +29 -13
- 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 +123 -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 +101 -45
- package/dist/cjs/snk-taskbar.cjs.entry.js +64 -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 +34 -0
- package/dist/collection/components/snk-application/snk-application.js +235 -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-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 +153 -8
- package/dist/collection/components/snk-pesquisa/pesquisa-grid/pesquisa-grid.css +10 -0
- package/dist/collection/components/snk-pesquisa/pesquisa-grid/pesquisa-grid.js +190 -0
- package/dist/collection/components/snk-pesquisa/pesquisa-tree/pesquisa-tree.css +25 -0
- package/dist/collection/components/snk-pesquisa/pesquisa-tree/pesquisa-tree.js +179 -0
- package/dist/collection/components/snk-pesquisa/pesquisaHelper.js +89 -0
- package/dist/collection/components/snk-pesquisa/snk-pesquisa.css +24 -5
- package/dist/collection/components/snk-pesquisa/snk-pesquisa.js +186 -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 +160 -50
- 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 +106 -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 +2 -2
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js +9 -2
- 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 +98 -4
- 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/sw.js +46 -0
- package/dist/components/{IExporterProvider.js → ContinuousInsertUtils.js} +66 -23
- package/dist/components/DataFetcher.js +217 -77
- package/dist/{esm/RecordIDUtils-87d02110.js → components/GetSelectedRecordsIDsInfo.js} +10 -10
- package/dist/components/ISave.js +346 -1
- package/dist/components/SnkFormConfigManager.js +73 -15
- package/dist/components/SnkMessageBuilder.js +7 -3
- package/dist/components/dataunit-fetcher.js +47 -17
- 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 +86 -0
- package/dist/components/pesquisa-tree.d.ts +11 -0
- package/dist/components/pesquisa-tree.js +6 -0
- package/dist/components/pesquisa-tree2.js +82 -0
- package/dist/components/snk-actions-button2.js +43 -40
- package/dist/components/snk-application2.js +264 -68
- package/dist/components/snk-attach2.js +54 -60
- 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 +114 -105
- 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 +34 -9
- package/dist/components/snk-form.js +2 -2
- package/dist/components/snk-grid2.js +68 -13
- package/dist/components/snk-personalized-filter-editor.js +4 -4
- package/dist/components/snk-pesquisa2.js +136 -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 -66
- 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 +120 -0
- package/dist/components/snk-taskbar2.js +66 -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-25e7bd9a.js} +66 -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-1ff928fa.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-7302ee87.js} +1 -1
- package/dist/esm/{dataunit-fetcher-264191b2.js → dataunit-fetcher-8dd93d8b.js} +48 -18
- 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/{components/pesquisa-fetcher.js → esm/pesquisa-fetcher-0af41f09.js} +186 -4
- package/dist/esm/pesquisa-grid_2.entry.js +128 -0
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/{snk-actions-button_4.entry.js → snk-actions-button_5.entry.js} +138 -43
- package/dist/esm/snk-application.entry.js +250 -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 +1 -1
- 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-11a49fc3.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 +66 -16
- package/dist/esm/{snk-guides-viewer-dda0fede.js → snk-guides-viewer-94918cf7.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 +123 -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 -43
- package/dist/esm/snk-tab-config.entry.js +1 -1
- package/dist/esm/snk-taskbar.entry.js +65 -39
- package/dist/sankhyablocks/p-09067bee.entry.js +1 -0
- package/dist/sankhyablocks/p-0d86c004.entry.js +1 -0
- package/dist/sankhyablocks/p-1435701f.js +26 -0
- package/dist/sankhyablocks/p-16a1dd18.entry.js +1 -0
- package/dist/sankhyablocks/p-16cc8640.entry.js +11 -0
- package/dist/sankhyablocks/p-17425c72.js +1 -0
- package/dist/sankhyablocks/{p-52920496.js → p-19dc71e9.js} +1 -1
- package/dist/sankhyablocks/p-1a91d1f3.entry.js +1 -0
- package/dist/sankhyablocks/{p-47db7e88.entry.js → p-1cf39cfd.entry.js} +1 -1
- package/dist/sankhyablocks/p-23736d75.js +1 -0
- package/dist/sankhyablocks/{p-8eb67fa4.entry.js → p-2d3f9482.entry.js} +1 -1
- package/dist/sankhyablocks/p-3150ad41.js +1 -0
- package/dist/sankhyablocks/{p-c1d57831.entry.js → p-3a3d4055.entry.js} +1 -1
- package/dist/sankhyablocks/{p-7663f597.entry.js → p-41793e17.entry.js} +1 -1
- package/dist/sankhyablocks/{p-72fc257b.entry.js → p-434817f0.entry.js} +1 -1
- package/dist/sankhyablocks/p-469384a2.entry.js +1 -0
- package/dist/sankhyablocks/p-47178038.entry.js +1 -0
- package/dist/sankhyablocks/p-471785a1.entry.js +1 -0
- package/dist/sankhyablocks/p-4ca8e061.entry.js +1 -0
- package/dist/sankhyablocks/{p-aaa3ee68.entry.js → p-5f157b09.entry.js} +1 -1
- package/dist/sankhyablocks/p-60e4db34.js +1 -0
- package/dist/sankhyablocks/p-618a29ed.entry.js +1 -0
- package/dist/sankhyablocks/p-619aeac8.entry.js +1 -0
- package/dist/sankhyablocks/p-68134a67.entry.js +1 -0
- package/dist/sankhyablocks/p-798386c7.js +6 -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-8a1ee5b5.js +1 -0
- package/dist/sankhyablocks/{p-95df461f.entry.js → p-8b4fc28f.entry.js} +1 -1
- package/dist/sankhyablocks/p-8bd86610.entry.js +1 -0
- package/dist/sankhyablocks/{p-41f8bfa3.entry.js → p-8c235d4c.entry.js} +1 -1
- package/dist/sankhyablocks/{p-b0ef4383.js → p-95ce311a.js} +1 -1
- package/dist/sankhyablocks/p-a3803d7c.entry.js +1 -0
- package/dist/sankhyablocks/p-aaef93e8.js +1 -0
- package/dist/sankhyablocks/p-c2e468c9.entry.js +1 -0
- package/dist/sankhyablocks/p-d62228fb.js +1 -0
- package/dist/sankhyablocks/p-d92d4f91.entry.js +1 -0
- package/dist/sankhyablocks/p-ddefbbc7.js +60 -0
- package/dist/sankhyablocks/p-edbe8e15.entry.js +1 -0
- package/dist/sankhyablocks/{p-913a9979.js → p-f0b9303b.js} +1 -1
- 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 +28 -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 +26 -0
- package/dist/types/components/snk-pesquisa/pesquisa-grid/pesquisa-grid.d.ts +38 -0
- package/dist/types/components/snk-pesquisa/pesquisa-tree/pesquisa-tree.d.ts +29 -0
- package/dist/types/components/snk-pesquisa/pesquisaHelper.d.ts +19 -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 +27 -7
- 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 +372 -15
- 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/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 +10 -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/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/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/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-46d38387.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-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-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,31 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
const core = require('@sankhyalabs/core');
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
const selectionInfo = dataUnit.getSelectionInfo();
|
|
5
|
+
function getSelectedRecordsIDsInfo(dataUnit) {
|
|
6
|
+
const selectionInfo = dataUnit === null || dataUnit === void 0 ? void 0 : dataUnit.getSelectionInfo();
|
|
7
7
|
if (selectionInfo === null || selectionInfo === void 0 ? void 0 : selectionInfo.isAllRecords()) {
|
|
8
8
|
return [];
|
|
9
9
|
}
|
|
10
10
|
const selectedRecordsIDsInfo = [];
|
|
11
|
-
const selectedRecords = selectionInfo === null || selectionInfo === void 0 ? void 0 : selectionInfo.
|
|
11
|
+
const selectedRecords = selectionInfo === null || selectionInfo === void 0 ? void 0 : selectionInfo.records;
|
|
12
12
|
if ((selectedRecords === null || selectedRecords === void 0 ? void 0 : selectedRecords.length) > 0) {
|
|
13
|
-
selectedRecords.forEach(
|
|
14
|
-
if (!dataUnit.isNewRecord(
|
|
13
|
+
selectedRecords.forEach(({ __record__id__ }) => {
|
|
14
|
+
if (!dataUnit.isNewRecord(__record__id__)) {
|
|
15
15
|
/*
|
|
16
16
|
Esse if foi necessário para tratar corretamente o ID
|
|
17
17
|
do record quando está sendo utilizado no modo standAlone
|
|
18
18
|
isso não faz a exportação da grid funcionar no modo standAlone
|
|
19
19
|
mas deixa de causar erro nas oprações de CRUD.
|
|
20
20
|
*/
|
|
21
|
-
if (!core.JSUtils.isBase64(
|
|
21
|
+
if (!core.JSUtils.isBase64(__record__id__)) {
|
|
22
22
|
selectedRecordsIDsInfo.push({
|
|
23
23
|
name: "__record__id__",
|
|
24
24
|
type: core.DataType.TEXT,
|
|
25
|
-
value:
|
|
25
|
+
value: __record__id__
|
|
26
26
|
});
|
|
27
27
|
return;
|
|
28
28
|
}
|
|
29
|
-
const revertBase64ToObject = JSON.parse(window.atob(
|
|
29
|
+
const revertBase64ToObject = JSON.parse(window.atob(__record__id__));
|
|
30
30
|
Object.entries(revertBase64ToObject).forEach(([name, value]) => {
|
|
31
31
|
const metadataField = dataUnit === null || dataUnit === void 0 ? void 0 : dataUnit.getField(name);
|
|
32
32
|
if (metadataField == undefined) {
|
|
@@ -38,6 +38,6 @@ const getSelectedIDs = (dataUnit) => {
|
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
return selectedRecordsIDsInfo;
|
|
41
|
-
}
|
|
41
|
+
}
|
|
42
42
|
|
|
43
|
-
exports.
|
|
43
|
+
exports.getSelectedRecordsIDsInfo = getSelectedRecordsIDsInfo;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const ConfigStorage = require('./ConfigStorage-
|
|
3
|
+
const ConfigStorage = require('./ConfigStorage-d024aec8.js');
|
|
4
4
|
const core = require('@sankhyalabs/core');
|
|
5
|
-
const formConfigFetcher = require('./form-config-fetcher-
|
|
5
|
+
const formConfigFetcher = require('./form-config-fetcher-90126e4c.js');
|
|
6
|
+
const constants = require('./constants-35ddd366.js');
|
|
6
7
|
|
|
7
8
|
class SnkFormConfigManager {
|
|
8
|
-
constructor(configName, resourceID, onConfigChange) {
|
|
9
|
+
constructor(configName, resourceID, onConfigChange, dataUnit) {
|
|
9
10
|
this._resourceID = resourceID;
|
|
10
11
|
this._configName = configName;
|
|
11
12
|
this._onConfigChange = onConfigChange;
|
|
13
|
+
this._dataUnit = dataUnit;
|
|
12
14
|
}
|
|
13
15
|
addFormLegacyConfig(legacyConfigName) {
|
|
14
16
|
if (this._configName) {
|
|
@@ -19,6 +21,7 @@ class SnkFormConfigManager {
|
|
|
19
21
|
return new Promise(resolve => {
|
|
20
22
|
ConfigStorage.ConfigStorage.loadFormConfig(this._configName, this._resourceID)
|
|
21
23
|
.then((config) => {
|
|
24
|
+
config = this.buildFormMetadataUITabs(config);
|
|
22
25
|
this.setConfig(config);
|
|
23
26
|
resolve(config);
|
|
24
27
|
})
|
|
@@ -27,6 +30,10 @@ class SnkFormConfigManager {
|
|
|
27
30
|
});
|
|
28
31
|
});
|
|
29
32
|
}
|
|
33
|
+
getEmptyConfig() {
|
|
34
|
+
const config = this.buildFormMetadataUITabs({ fields: [], emptyConfig: true }, true);
|
|
35
|
+
return config;
|
|
36
|
+
}
|
|
30
37
|
saveConfig(config) {
|
|
31
38
|
const configToSave = core.ObjectUtils.copy(config);
|
|
32
39
|
return new Promise(accept => {
|
|
@@ -70,28 +77,41 @@ class SnkFormConfigManager {
|
|
|
70
77
|
}
|
|
71
78
|
return updatingCardConfig;
|
|
72
79
|
}
|
|
73
|
-
|
|
80
|
+
hasConfig(config) {
|
|
81
|
+
var _a;
|
|
82
|
+
const currentConfig = config !== null && config !== void 0 ? config : this._config;
|
|
83
|
+
if (currentConfig && ((_a = currentConfig.fields) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
return false;
|
|
87
|
+
}
|
|
88
|
+
getFieldsList(descriptionFilter, forceEmptyConfig = false) {
|
|
74
89
|
var _a;
|
|
75
90
|
const fields = (_a = this._config) === null || _a === void 0 ? void 0 : _a.fields;
|
|
76
|
-
|
|
77
|
-
|
|
91
|
+
const hasConfig = this.hasConfig();
|
|
92
|
+
if (hasConfig && !forceEmptyConfig) {
|
|
93
|
+
return fields.map(({ label, name, readOnly, visible, required, tab, group }) => {
|
|
94
|
+
var _a;
|
|
78
95
|
if (label == undefined) {
|
|
79
|
-
const currentField =
|
|
80
|
-
|
|
96
|
+
const currentField = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getField(name);
|
|
97
|
+
if (!currentField)
|
|
98
|
+
return;
|
|
99
|
+
return Object.assign(Object.assign({}, currentField), { name: name !== null && name !== void 0 ? name : currentField.name, readOnly: readOnly !== null && readOnly !== void 0 ? readOnly : currentField.readOnly, visible: visible !== null && visible !== void 0 ? visible : currentField.visible, required: required !== null && required !== void 0 ? required : currentField.required, tab: tab, group: group });
|
|
81
100
|
}
|
|
82
|
-
return { name, label, readOnly, visible, required };
|
|
101
|
+
return { name, label, readOnly, visible, required, tab, group };
|
|
83
102
|
})
|
|
84
103
|
.filter(field => this.isFieldVisible(field, descriptionFilter));
|
|
85
104
|
}
|
|
86
|
-
if (
|
|
87
|
-
return
|
|
88
|
-
.filter(field => this.isFieldVisible(field, descriptionFilter))
|
|
89
|
-
.map(({ label, name, readOnly }) => { return { label, name, readOnly }; });
|
|
105
|
+
if (!this._dataUnit) {
|
|
106
|
+
return [];
|
|
90
107
|
}
|
|
91
|
-
|
|
108
|
+
const filteredFields = this._dataUnit.metadata.fields
|
|
109
|
+
.filter(field => this.isFieldVisible(field, descriptionFilter))
|
|
110
|
+
.map(({ label, name, readOnly, visible, required, properties }) => ({ label, name, readOnly, visible, required, tab: properties === null || properties === void 0 ? void 0 : properties.UITabName }));
|
|
111
|
+
return filteredFields;
|
|
92
112
|
}
|
|
93
113
|
isFieldVisible(field, descriptionFilter) {
|
|
94
|
-
if (field.visible === false) {
|
|
114
|
+
if (field === undefined || field.visible === false) {
|
|
95
115
|
return false;
|
|
96
116
|
}
|
|
97
117
|
if (descriptionFilter == undefined) {
|
|
@@ -101,8 +121,8 @@ class SnkFormConfigManager {
|
|
|
101
121
|
const normalizedFilter = core.StringUtils.replaceAccentuatedCharsLower(descriptionFilter.toLocaleLowerCase());
|
|
102
122
|
return normalizedText.includes(normalizedFilter);
|
|
103
123
|
}
|
|
104
|
-
getFormConfig(dataUnit, ignoreReadOnlyFormFields) {
|
|
105
|
-
let fields = this.getFieldsList(
|
|
124
|
+
getFormConfig(dataUnit, ignoreReadOnlyFormFields, forceEmptyConfig = false) {
|
|
125
|
+
let fields = this.getFieldsList(undefined, forceEmptyConfig);
|
|
106
126
|
if (ignoreReadOnlyFormFields) {
|
|
107
127
|
fields = fields.filter(field => {
|
|
108
128
|
if (dataUnit) {
|
|
@@ -155,6 +175,44 @@ class SnkFormConfigManager {
|
|
|
155
175
|
async fetchDefaultConfig() {
|
|
156
176
|
return this.getFormConfigFetcher().fetchDefaultConfig(this._configName, this._resourceID);
|
|
157
177
|
}
|
|
178
|
+
parseObjectList(object) {
|
|
179
|
+
if (!object) {
|
|
180
|
+
return [];
|
|
181
|
+
}
|
|
182
|
+
return Array.isArray(object) ? object : [object];
|
|
183
|
+
}
|
|
184
|
+
buildFormMetadataUITabs(config, forceEmptyConfig = false) {
|
|
185
|
+
var _a;
|
|
186
|
+
const hasConfig = this.hasConfig(config);
|
|
187
|
+
if (!forceEmptyConfig && (!this._dataUnit || hasConfig)) {
|
|
188
|
+
return config;
|
|
189
|
+
}
|
|
190
|
+
config = this.getFormConfig(this._dataUnit, false, true);
|
|
191
|
+
config.tabs = this.parseObjectList(config.tabs);
|
|
192
|
+
config.emptyConfig = false;
|
|
193
|
+
config.defaultConfiguration = true;
|
|
194
|
+
const fields = this._dataUnit.metadata.fields;
|
|
195
|
+
for (const currentField of fields) {
|
|
196
|
+
const field = config.fields.find(field => field.name === currentField.name);
|
|
197
|
+
const uiTabName = (_a = currentField.properties) === null || _a === void 0 ? void 0 : _a.UITabName;
|
|
198
|
+
if (!uiTabName || uiTabName === constants.TAB_NAMES.main) {
|
|
199
|
+
continue;
|
|
200
|
+
}
|
|
201
|
+
const haveTab = config.tabs.some((tab) => tab.label === uiTabName);
|
|
202
|
+
if (!haveTab) {
|
|
203
|
+
config.tabs.push({
|
|
204
|
+
label: uiTabName,
|
|
205
|
+
name: uiTabName,
|
|
206
|
+
order: 0,
|
|
207
|
+
visible: true,
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
if (field) {
|
|
211
|
+
field.tab = uiTabName;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
return config;
|
|
215
|
+
}
|
|
158
216
|
}
|
|
159
217
|
|
|
160
218
|
exports.SnkFormConfigManager = SnkFormConfigManager;
|
|
@@ -30,7 +30,7 @@ const snkDataUnitMessages = {
|
|
|
30
30
|
},
|
|
31
31
|
cancelInfo: {
|
|
32
32
|
clone: "Duplicação descartada!",
|
|
33
|
-
insert: "A inclusão descartada!",
|
|
33
|
+
insert: "A inclusão foi descartada!",
|
|
34
34
|
update: "A edição foi descartada!"
|
|
35
35
|
},
|
|
36
36
|
confirm: {
|
|
@@ -144,7 +144,7 @@ const snkExporterMessages = {
|
|
|
144
144
|
emailSenderOptStep_subtitle: "Primeiro, escolha o formato do arquivo",
|
|
145
145
|
emailSenderOptStep_lblFormat: "Formato:",
|
|
146
146
|
emailSenderOptStep_formatPDF: "PDF (.pdf)",
|
|
147
|
-
|
|
147
|
+
emailSenderOptStep_formatXLS: "Planilha (.xls)",
|
|
148
148
|
emailSenderOptStep_export: "Exportar:",
|
|
149
149
|
emailSenderOptStep_allData: "Toda a grade",
|
|
150
150
|
emailSenderOptStep_currentPage: "Somente a página atual",
|
|
@@ -267,7 +267,11 @@ const snkConfiguratorMessages = {
|
|
|
267
267
|
};
|
|
268
268
|
|
|
269
269
|
const snkGridMessages = {
|
|
270
|
-
findColumn: "Busca de colunas"
|
|
270
|
+
findColumn: "Busca de colunas",
|
|
271
|
+
cancelConfirmation: {
|
|
272
|
+
title: "Aviso",
|
|
273
|
+
message: "As alterações realizadas serão descartadas<br/><br/><b>Você realmente gostaria de cancelar?</b>",
|
|
274
|
+
}
|
|
271
275
|
};
|
|
272
276
|
const snkGridConfigMessages = {
|
|
273
277
|
gridConfiguration: "Configuração da Grade",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const core = require('@sankhyalabs/core');
|
|
4
|
-
const formConfigFetcher = require('./form-config-fetcher-
|
|
4
|
+
const formConfigFetcher = require('./form-config-fetcher-90126e4c.js');
|
|
5
5
|
|
|
6
6
|
class AuthFetcher extends formConfigFetcher.ResourceFetcher {
|
|
7
7
|
getData(resourceID) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const core = require('@sankhyalabs/core');
|
|
4
|
-
const DataFetcher = require('./DataFetcher-
|
|
4
|
+
const DataFetcher = require('./DataFetcher-65879b2c.js');
|
|
5
5
|
const constants = require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
6
6
|
const UnitMetadata = require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
7
7
|
const utils = require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
@@ -241,6 +241,21 @@ function applyFilter(records, dataUnit, filters) {
|
|
|
241
241
|
}
|
|
242
242
|
return records.filter(filterFunction);
|
|
243
243
|
}
|
|
244
|
+
function buildLoadDataResponse(recordsIn, dataUnit, request) {
|
|
245
|
+
let records = recordsIn ? [...recordsIn] : [];
|
|
246
|
+
records = applyFilter(records, dataUnit, request.filters);
|
|
247
|
+
records = applySorting(records, dataUnit, request.sort);
|
|
248
|
+
const { offset, limit } = request;
|
|
249
|
+
const paginationInfoBuilderParams = {
|
|
250
|
+
recordsLength: records.length,
|
|
251
|
+
offset,
|
|
252
|
+
recordsPerPage: limit,
|
|
253
|
+
};
|
|
254
|
+
return Promise.resolve({
|
|
255
|
+
records: getPagesByRecords(records, offset, limit),
|
|
256
|
+
paginationInfo: dataUnit.pageSize ? buildPaginationInfo(paginationInfoBuilderParams) : undefined,
|
|
257
|
+
});
|
|
258
|
+
}
|
|
244
259
|
function applySorting(records, dataUnit, sorting) {
|
|
245
260
|
if (sorting == undefined || sorting.length == 0) {
|
|
246
261
|
return records;
|
|
@@ -251,18 +266,28 @@ function applySorting(records, dataUnit, sorting) {
|
|
|
251
266
|
}
|
|
252
267
|
return records.sort(sortingFunction);
|
|
253
268
|
}
|
|
254
|
-
function
|
|
255
|
-
|
|
256
|
-
|
|
269
|
+
function hasValidLimitAndOffset(offset, limit) {
|
|
270
|
+
return offset >= 0 && limit >= 0;
|
|
271
|
+
}
|
|
272
|
+
function getPagesByRecords(records, offset = 0, limit = 0) {
|
|
273
|
+
if (!records || !records.length || !hasValidLimitAndOffset(offset, limit))
|
|
274
|
+
return [];
|
|
275
|
+
if (limit === 0 && offset === 0)
|
|
276
|
+
return records;
|
|
277
|
+
return records.slice(offset, offset + limit);
|
|
278
|
+
}
|
|
279
|
+
function buildPaginationInfo({ recordsLength = 0, offset = 0, recordsPerPage = 0 }) {
|
|
280
|
+
if (!recordsLength) {
|
|
281
|
+
return { currentPage: 0, firstRecord: 0, lastRecord: 0, total: 0, hasMore: false };
|
|
257
282
|
}
|
|
258
|
-
const
|
|
259
|
-
const lastRecord = Math.min(
|
|
283
|
+
const lastRecordIndex = offset + recordsPerPage;
|
|
284
|
+
const lastRecord = lastRecordIndex ? Math.min(lastRecordIndex, recordsLength) : recordsLength;
|
|
260
285
|
return {
|
|
261
|
-
currentPage:
|
|
262
|
-
firstRecord: offset,
|
|
286
|
+
currentPage: recordsPerPage === 0 ? 0 : Math.ceil(offset / recordsPerPage),
|
|
287
|
+
firstRecord: offset + 1,
|
|
263
288
|
lastRecord: lastRecord,
|
|
264
|
-
total:
|
|
265
|
-
hasMore:
|
|
289
|
+
total: recordsLength,
|
|
290
|
+
hasMore: lastRecord < recordsLength,
|
|
266
291
|
};
|
|
267
292
|
}
|
|
268
293
|
|
|
@@ -348,9 +373,7 @@ class InMemoryLoader {
|
|
|
348
373
|
return core.StringUtils.generateUUID();
|
|
349
374
|
}
|
|
350
375
|
inMemoryLoader(dataUnit, request, recordsIn) {
|
|
351
|
-
|
|
352
|
-
records = applySorting(records, dataUnit, request.sort);
|
|
353
|
-
return Promise.resolve({ records, paginationInfo: buildPaginationInfo(records, request.offset, request.limit) });
|
|
376
|
+
return buildLoadDataResponse(recordsIn, dataUnit, request);
|
|
354
377
|
}
|
|
355
378
|
metadaLoader() {
|
|
356
379
|
return Promise.resolve(this._metadata);
|
|
@@ -430,12 +453,19 @@ class DatasetStrategy {
|
|
|
430
453
|
const records = this.processRecords(dataUnit, fields, responseRecords);
|
|
431
454
|
const loadingInProgress = pagerId != undefined;
|
|
432
455
|
const count = loadingInfo.count + records.length;
|
|
456
|
+
const isInsertingNewRecord = dataUnit.hasNewRecord();
|
|
433
457
|
const needReload = !loadingInProgress && localSorting.length > 0;
|
|
458
|
+
/**
|
|
459
|
+
* Caso precise recarregar dados, porém está no meio de uma inserção, os dados não devem recarregados instantaneamente,
|
|
460
|
+
* Mas sim, sinalizar que o dataUnit está aguardando para der recarregado.
|
|
461
|
+
*/
|
|
462
|
+
if (needReload && isInsertingNewRecord) {
|
|
463
|
+
dataUnit.setWaitingToReload(true);
|
|
464
|
+
}
|
|
434
465
|
return Promise.resolve({
|
|
435
466
|
records,
|
|
436
467
|
loadingInfo: Object.assign(Object.assign({}, loadingInfo), { pagerId,
|
|
437
|
-
loadingInProgress, total: loadingInProgress ? undefined : count, count,
|
|
438
|
-
needReload })
|
|
468
|
+
loadingInProgress, total: loadingInProgress ? undefined : count, count, needReload: needReload && !isInsertingNewRecord })
|
|
439
469
|
});
|
|
440
470
|
}
|
|
441
471
|
catch (error) {
|
|
@@ -688,7 +718,7 @@ class DataUnitDataLoader {
|
|
|
688
718
|
}
|
|
689
719
|
const count = loadingInfo.count;
|
|
690
720
|
if (loadingInfo.loadingInProgress) {
|
|
691
|
-
dataUnit.updatePagination(Object.assign(Object.assign({}, dataUnitPagination), { count }));
|
|
721
|
+
dataUnit.updatePagination(Object.assign(Object.assign({}, dataUnitPagination), { count, loadingInProgress: true }));
|
|
692
722
|
return;
|
|
693
723
|
}
|
|
694
724
|
if (loadingInfo.needReload) {
|
|
@@ -696,7 +726,7 @@ class DataUnitDataLoader {
|
|
|
696
726
|
dataUnit.gotoPage(0);
|
|
697
727
|
return;
|
|
698
728
|
}
|
|
699
|
-
dataUnit.updatePagination(Object.assign(Object.assign({}, dataUnitPagination), { total: count, count }));
|
|
729
|
+
dataUnit.updatePagination(Object.assign(Object.assign({}, dataUnitPagination), { total: count, count, loadingInProgress: false }));
|
|
700
730
|
}
|
|
701
731
|
static registryLoading(dataUnit, loadingInfo) {
|
|
702
732
|
if (loadingInfo == undefined) {
|
|
@@ -1062,7 +1092,5 @@ exports.DataUnitFetcher = DataUnitFetcher;
|
|
|
1062
1092
|
exports.DatasetStrategy = DatasetStrategy;
|
|
1063
1093
|
exports.InMemoryLoader = InMemoryLoader;
|
|
1064
1094
|
exports.PreloadManager = PreloadManager;
|
|
1065
|
-
exports.
|
|
1066
|
-
exports.applySorting = applySorting;
|
|
1067
|
-
exports.buildPaginationInfo = buildPaginationInfo;
|
|
1095
|
+
exports.buildLoadDataResponse = buildLoadDataResponse;
|
|
1068
1096
|
exports.getRecordValue = getRecordValue;
|
|
@@ -33,12 +33,16 @@ class TaskbarProcessor {
|
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
35
|
getButtonsArray(taskbarId, taskbarManager, dataState) {
|
|
36
|
-
const defaults = this.
|
|
36
|
+
const defaults = this.getButtonsFromKey(taskbarId);
|
|
37
37
|
if (taskbarManager) {
|
|
38
38
|
return taskbarManager.getButtons(taskbarId, dataState, [...defaults]);
|
|
39
39
|
}
|
|
40
40
|
return defaults;
|
|
41
41
|
}
|
|
42
|
+
getButtonsFromKey(taskbarId) {
|
|
43
|
+
const btnsValue = this._defaultButtons[taskbarId];
|
|
44
|
+
return typeof btnsValue === 'function' ? btnsValue() : btnsValue;
|
|
45
|
+
}
|
|
42
46
|
isEnabled(taskbarId, taskbarManager, buttonName, dataState, disabled) {
|
|
43
47
|
const originalValue = disabled.includes(buttonName) ? false : true;
|
|
44
48
|
if (taskbarManager && taskbarManager.isEnabled) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const DataFetcher = require('./DataFetcher-
|
|
3
|
+
const DataFetcher = require('./DataFetcher-65879b2c.js');
|
|
4
4
|
const core = require('@sankhyalabs/core');
|
|
5
5
|
|
|
6
6
|
class ResourceFetcher {
|
|
@@ -219,7 +219,10 @@ class FormConfigFetcher extends ResourceFetcher {
|
|
|
219
219
|
query: this.queryConfig.get("fetchDefaultConfig"),
|
|
220
220
|
})
|
|
221
221
|
.then((result) => {
|
|
222
|
-
|
|
222
|
+
if (!(result === null || result === void 0 ? void 0 : result.resource)) {
|
|
223
|
+
resolve(null);
|
|
224
|
+
}
|
|
225
|
+
resolve(core.ObjectUtils.stringToObject(result === null || result === void 0 ? void 0 : result.resource));
|
|
223
226
|
})
|
|
224
227
|
.catch((error) => {
|
|
225
228
|
reject(error);
|
|
@@ -239,6 +242,43 @@ class FormConfigFetcher extends ResourceFetcher {
|
|
|
239
242
|
return undefined;
|
|
240
243
|
return this.buildLegacyConfigurableForm(response);
|
|
241
244
|
}
|
|
245
|
+
async fetchSimpleFormConfig(configName) {
|
|
246
|
+
const payload = { 'requestBody': { 'formConfig': { 'configName': configName } } };
|
|
247
|
+
const response = await DataFetcher.DataFetcher.get().callServiceBroker('FormConfig.getFormConfig', JSON.stringify(payload));
|
|
248
|
+
return this.processConfig(response);
|
|
249
|
+
}
|
|
250
|
+
async saveSimpleFormConfig(configName, fieldList) {
|
|
251
|
+
const payload = this.buildSaveSimpleFormConfigPayload(configName, fieldList);
|
|
252
|
+
const response = await DataFetcher.DataFetcher.get().callServiceBroker('FormConfig.saveFormConfig', JSON.stringify(payload));
|
|
253
|
+
this.processConfig(response);
|
|
254
|
+
}
|
|
255
|
+
processConfig(response) {
|
|
256
|
+
if (core.ObjectUtils.isEmpty(response))
|
|
257
|
+
return [];
|
|
258
|
+
const fields = this.getResponseAsArray(response);
|
|
259
|
+
return fields.map(field => field.name);
|
|
260
|
+
}
|
|
261
|
+
getResponseAsArray(response) {
|
|
262
|
+
var _a, _b, _c;
|
|
263
|
+
const rawFields = (_c = (_b = (_a = response === null || response === void 0 ? void 0 : response.formConfig) === null || _a === void 0 ? void 0 : _a.layout) === null || _b === void 0 ? void 0 : _b.field) !== null && _c !== void 0 ? _c : [];
|
|
264
|
+
return Array.isArray(rawFields) ? rawFields : [rawFields];
|
|
265
|
+
}
|
|
266
|
+
buildSaveSimpleFormConfigPayload(configName, fieldNameList) {
|
|
267
|
+
const fieldList = fieldNameList.map(fieldName => { return { name: fieldName }; });
|
|
268
|
+
return {
|
|
269
|
+
formConfig: {
|
|
270
|
+
configName,
|
|
271
|
+
layout: {
|
|
272
|
+
field: fieldList,
|
|
273
|
+
},
|
|
274
|
+
metadata: { field: [] },
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
}
|
|
278
|
+
async restoreFormConfig(configName) {
|
|
279
|
+
const payload = { 'requestBody': { 'formConfig': { 'configName': configName } } };
|
|
280
|
+
await DataFetcher.DataFetcher.get().callServiceBroker('FormConfig.restoreFormConfig', JSON.stringify(payload));
|
|
281
|
+
}
|
|
242
282
|
buildLegacyConfigurableForm(config) {
|
|
243
283
|
var _a, _b, _c;
|
|
244
284
|
const rawFields = (_c = (_b = (_a = config === null || config === void 0 ? void 0 : config.formConfig) === null || _a === void 0 ? void 0 : _a.layout) === null || _b === void 0 ? void 0 : _b.field) !== null && _c !== void 0 ? _c : [];
|
|
@@ -2056,18 +2056,6 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
2056
2056
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2057
2057
|
/* webpackMode: "lazy" */
|
|
2058
2058
|
'./snk-application.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2059
|
-
case 'snk-form.cjs':
|
|
2060
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2061
|
-
/* webpackMode: "lazy" */
|
|
2062
|
-
'./snk-form.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2063
|
-
case 'snk-form-config.cjs':
|
|
2064
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2065
|
-
/* webpackMode: "lazy" */
|
|
2066
|
-
'./snk-form-config.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2067
|
-
case 'snk-config-options.cjs':
|
|
2068
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2069
|
-
/* webpackMode: "lazy" */
|
|
2070
|
-
'./snk-config-options.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2071
2059
|
case 'snk-tab-config.cjs':
|
|
2072
2060
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2073
2061
|
/* webpackMode: "lazy" */
|
|
@@ -2108,22 +2096,6 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
2108
2096
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2109
2097
|
/* webpackMode: "lazy" */
|
|
2110
2098
|
'./snk-data-unit.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2111
|
-
case 'snk-filter-bar.cjs':
|
|
2112
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2113
|
-
/* webpackMode: "lazy" */
|
|
2114
|
-
'./snk-filter-bar.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2115
|
-
case 'snk-filter-item.cjs':
|
|
2116
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2117
|
-
/* webpackMode: "lazy" */
|
|
2118
|
-
'./snk-filter-item.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2119
|
-
case 'snk-filter-list.cjs':
|
|
2120
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2121
|
-
/* webpackMode: "lazy" */
|
|
2122
|
-
'./snk-filter-list.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2123
|
-
case 'snk-filter-modal.cjs':
|
|
2124
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2125
|
-
/* webpackMode: "lazy" */
|
|
2126
|
-
'./snk-filter-modal.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2127
2099
|
case 'snk-field-config.cjs':
|
|
2128
2100
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2129
2101
|
/* webpackMode: "lazy" */
|
|
@@ -2140,6 +2112,14 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
2140
2112
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2141
2113
|
/* webpackMode: "lazy" */
|
|
2142
2114
|
'./snk-taskbar.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2115
|
+
case 'snk-config-options_3.cjs':
|
|
2116
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2117
|
+
/* webpackMode: "lazy" */
|
|
2118
|
+
'./snk-config-options_3.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2119
|
+
case 'snk-filter-bar_4.cjs':
|
|
2120
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2121
|
+
/* webpackMode: "lazy" */
|
|
2122
|
+
'./snk-filter-bar_4.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2143
2123
|
case 'snk-actions-form.cjs':
|
|
2144
2124
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2145
2125
|
/* webpackMode: "lazy" */
|
|
@@ -2200,6 +2180,10 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
2200
2180
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2201
2181
|
/* webpackMode: "lazy" */
|
|
2202
2182
|
'./snk-filter-modal-item.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2183
|
+
case 'pesquisa-grid_2.cjs':
|
|
2184
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2185
|
+
/* webpackMode: "lazy" */
|
|
2186
|
+
'./pesquisa-grid_2.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2203
2187
|
case 'snk-attach.cjs':
|
|
2204
2188
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2205
2189
|
/* webpackMode: "lazy" */
|
|
@@ -2212,6 +2196,10 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
2212
2196
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2213
2197
|
/* webpackMode: "lazy" */
|
|
2214
2198
|
'./snk-personalized-filter.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2199
|
+
case 'snk-actions-button_5.cjs':
|
|
2200
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2201
|
+
/* webpackMode: "lazy" */
|
|
2202
|
+
'./snk-actions-button_5.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2215
2203
|
case 'snk-filter-advanced-mode_2.cjs':
|
|
2216
2204
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2217
2205
|
/* webpackMode: "lazy" */
|
|
@@ -2220,10 +2208,6 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
2220
2208
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2221
2209
|
/* webpackMode: "lazy" */
|
|
2222
2210
|
'./snk-filter-detail.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2223
|
-
case 'snk-actions-button_4.cjs':
|
|
2224
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2225
|
-
/* webpackMode: "lazy" */
|
|
2226
|
-
'./snk-actions-button_4.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2227
2211
|
case 'snk-simple-bar.cjs':
|
|
2228
2212
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2229
2213
|
/* webpackMode: "lazy" */
|