@sankhyalabs/sankhyablocks 8.16.0-dev.6 → 8.16.0-dev.61
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/{ConfigStorage-a343e418.js → ConfigStorage-9b965af9.js} +2 -2
- package/dist/cjs/{IExporterProvider-597949f9.js → ContinuousInsertUtils-42636ac1.js} +64 -22
- package/dist/cjs/{DataFetcher-313debd8.js → DataFetcher-e059eb72.js} +28 -20
- package/dist/cjs/{RecordIDUtils-3735135c.js → GetSelectedRecordsIDsInfo-bd50caf1.js} +10 -10
- package/dist/cjs/{SnkFormConfigManager-166cbd1f.js → SnkFormConfigManager-51caf3d0.js} +72 -16
- package/dist/cjs/{SnkMessageBuilder-722b104e.js → SnkMessageBuilder-bae64d0d.js} +7 -3
- package/dist/cjs/{auth-fetcher-54f5ff9d.js → auth-fetcher-a78242d1.js} +1 -1
- package/dist/cjs/{dataunit-fetcher-688d3f05.js → dataunit-fetcher-228016f4.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-91fba2b1.js} +42 -2
- package/dist/cjs/index-f9e81701.js +12 -32
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{pesquisa-fetcher-680e198f.js → pesquisa-fetcher-2ec4811b.js} +10 -2
- 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} +130 -36
- package/dist/cjs/snk-application.cjs.entry.js +119 -61
- 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 +23 -8
- package/dist/cjs/snk-data-exporter.cjs.entry.js +23 -24
- package/dist/cjs/{snk-data-unit-685272e7.js → snk-data-unit-3d9b6ed4.js} +66 -34
- 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 +1422 -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 +67 -21
- package/dist/cjs/{snk-guides-viewer-bdc41281.js → snk-guides-viewer-421555af.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-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 -44
- package/dist/cjs/snk-taskbar.cjs.entry.js +64 -38
- package/dist/collection/collection-manifest.json +12 -31
- package/dist/collection/components/snk-actions-button/actions/index.js +12 -9
- 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 +28 -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.js +44 -54
- 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 +7 -7
- package/dist/collection/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.js +5 -5
- 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-unit/snk-data-unit.js +81 -32
- 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.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 +79 -21
- package/dist/collection/components/snk-form/snk-form.js +2 -2
- package/dist/collection/components/snk-form-config/SnkFormConfigManager.js +70 -14
- 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 +119 -8
- 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 +163 -35
- 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 +179 -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 +10 -2
- 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} +65 -21
- package/dist/components/DataFetcher.js +29 -21
- package/dist/{esm/RecordIDUtils-87d02110.js → components/GetSelectedRecordsIDsInfo.js} +10 -10
- package/dist/components/SnkFormConfigManager.js +70 -14
- 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 +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/pesquisa-fetcher.js +10 -2
- package/dist/components/snk-actions-button2.js +39 -35
- package/dist/components/snk-application2.js +114 -55
- package/dist/components/snk-attach2.js +54 -59
- package/dist/components/snk-crud.js +84 -58
- package/dist/components/snk-data-exporter2.js +16 -17
- package/dist/components/snk-data-unit2.js +68 -72
- package/dist/components/snk-detail-view2.js +114 -104
- package/dist/components/snk-exporter-email-sender2.js +1 -1
- package/dist/components/snk-filter-bar2.js +41 -22
- 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 +3 -1
- 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 +62 -12
- package/dist/components/snk-personalized-filter-editor.js +4 -4
- 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 -64
- 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 +119 -0
- package/dist/components/snk-taskbar2.js +66 -40
- package/dist/esm/{ConfigStorage-3806514e.js → ConfigStorage-ff99377a.js} +2 -2
- package/dist/esm/{IExporterProvider-63a188b6.js → ContinuousInsertUtils-071e0b6a.js} +65 -24
- package/dist/esm/{DataFetcher-c1baf61d.js → DataFetcher-5034df59.js} +29 -21
- package/dist/esm/GetSelectedRecordsIDsInfo-9fa41508.js +41 -0
- package/dist/esm/{SnkFormConfigManager-31b24066.js → SnkFormConfigManager-a7770e24.js} +72 -16
- package/dist/esm/{SnkMessageBuilder-89925609.js → SnkMessageBuilder-6fff4a4c.js} +7 -3
- package/dist/esm/{auth-fetcher-039abba3.js → auth-fetcher-0b78ca31.js} +1 -1
- package/dist/esm/{constants-8457af36.js → constants-7302ee87.js} +1 -1
- package/dist/esm/{dataunit-fetcher-264191b2.js → dataunit-fetcher-56cb648b.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-0c2620ef.js} +42 -2
- package/dist/esm/index-a7d3d3f1.js +12 -32
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{pesquisa-fetcher-03c8f919.js → pesquisa-fetcher-24e5bba0.js} +11 -3
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/{snk-actions-button_4.entry.js → snk-actions-button_5.entry.js} +132 -39
- package/dist/esm/snk-application.entry.js +119 -61
- 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 +24 -9
- package/dist/esm/snk-data-exporter.entry.js +24 -25
- package/dist/esm/{snk-data-unit-63f83504.js → snk-data-unit-9fa7d2b9.js} +66 -34
- 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 +1415 -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 +62 -16
- package/dist/esm/{snk-guides-viewer-dda0fede.js → snk-guides-viewer-b740a1fe.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-print-selector.entry.js +1 -1
- package/dist/esm/snk-simple-bar.entry.js +1 -1
- package/dist/esm/snk-simple-crud.entry.js +99 -42
- package/dist/esm/snk-tab-config.entry.js +1 -1
- package/dist/esm/snk-taskbar.entry.js +65 -39
- package/dist/sankhyablocks/p-00278e07.js +1 -0
- package/dist/sankhyablocks/p-036b4807.entry.js +1 -0
- package/dist/sankhyablocks/p-0d2a2e9e.entry.js +1 -0
- package/dist/sankhyablocks/p-16a1dd18.entry.js +1 -0
- package/dist/sankhyablocks/p-17425c72.js +1 -0
- package/dist/sankhyablocks/p-23736d75.js +1 -0
- package/dist/sankhyablocks/p-29643bef.entry.js +1 -0
- package/dist/sankhyablocks/{p-8eb67fa4.entry.js → p-2d3f9482.entry.js} +1 -1
- package/dist/sankhyablocks/p-342eeb3b.js +1 -0
- package/dist/sankhyablocks/{p-2c68b3ae.entry.js → p-35882caf.entry.js} +1 -1
- package/dist/sankhyablocks/p-365d8ed4.entry.js +1 -0
- package/dist/sankhyablocks/p-399e1b74.entry.js +1 -0
- 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-47178038.entry.js +1 -0
- package/dist/sankhyablocks/p-47d24ac8.js +60 -0
- package/dist/sankhyablocks/p-53ae0296.entry.js +1 -0
- package/dist/sankhyablocks/{p-aaa3ee68.entry.js → p-5f157b09.entry.js} +1 -1
- package/dist/sankhyablocks/p-619aeac8.entry.js +1 -0
- package/dist/sankhyablocks/p-65650e05.entry.js +1 -0
- package/dist/sankhyablocks/p-72a451c8.js +1 -0
- package/dist/sankhyablocks/{p-52920496.js → p-763edad2.js} +1 -1
- package/dist/sankhyablocks/p-7dd49d15.js +1 -0
- package/dist/sankhyablocks/p-82274cb0.js +1 -0
- package/dist/sankhyablocks/p-89c92727.entry.js +1 -0
- package/dist/sankhyablocks/{p-c1d57831.entry.js → p-89da2953.entry.js} +1 -1
- package/dist/sankhyablocks/{p-95df461f.entry.js → p-8b4fc28f.entry.js} +1 -1
- package/dist/sankhyablocks/{p-41f8bfa3.entry.js → p-8c235d4c.entry.js} +1 -1
- package/dist/sankhyablocks/p-8cf0a9fe.entry.js +1 -0
- package/dist/sankhyablocks/{p-b0ef4383.js → p-95ce311a.js} +1 -1
- package/dist/sankhyablocks/p-acca8a69.js +26 -0
- package/dist/sankhyablocks/p-c271fbf1.js +1 -0
- package/dist/sankhyablocks/p-c2e468c9.entry.js +1 -0
- package/dist/sankhyablocks/p-c629c07a.entry.js +1 -0
- package/dist/sankhyablocks/p-cd8fa07b.entry.js +1 -0
- package/dist/sankhyablocks/p-e6683406.js +6 -0
- package/dist/sankhyablocks/{p-47db7e88.entry.js → p-e9432f45.entry.js} +1 -1
- package/dist/sankhyablocks/p-eda55eef.entry.js +11 -0
- package/dist/sankhyablocks/p-fcc662c6.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-actions-button/actions/index.d.ts +1 -0
- package/dist/types/components/snk-actions-button/interfaces/index.d.ts +3 -0
- package/dist/types/components/snk-actions-button/snk-actions-button.d.ts +3 -2
- package/dist/types/components/snk-application/request-listener/DebouncedRequestListener.d.ts +11 -0
- package/dist/types/components/snk-application/request-listener/RequestListenerFactory.d.ts +12 -0
- package/dist/types/components/snk-application/request-listener/RequestListenerLoadingBar.d.ts +13 -0
- package/dist/types/components/snk-application/snk-application.d.ts +9 -13
- 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/test/resources/ClientSideExporterStrategyResources.d.ts +3 -3
- package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +7 -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 +9 -0
- 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 +21 -0
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +24 -3
- package/dist/types/components/snk-simple-form-config/snk-simple-form-config.d.ts +33 -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 +197 -0
- 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/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 +1 -0
- package/react/components.js +1 -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/snk-config-options.entry.js +0 -235
- package/dist/esm/snk-filter-bar.entry.js +0 -710
- package/dist/esm/snk-filter-item.entry.js +0 -308
- package/dist/esm/snk-filter-list.entry.js +0 -148
- package/dist/esm/snk-filter-modal.entry.js +0 -245
- package/dist/esm/snk-form.entry.js +0 -139
- package/dist/sankhyablocks/p-045eae4d.entry.js +0 -11
- package/dist/sankhyablocks/p-219f888d.entry.js +0 -1
- package/dist/sankhyablocks/p-2a408684.js +0 -1
- package/dist/sankhyablocks/p-3a212712.js +0 -1
- package/dist/sankhyablocks/p-3b60db06.entry.js +0 -1
- package/dist/sankhyablocks/p-450c60e4.entry.js +0 -1
- package/dist/sankhyablocks/p-4e5e1313.entry.js +0 -1
- package/dist/sankhyablocks/p-4f3717df.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-75f83d1d.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-88aa931b.entry.js +0 -1
- package/dist/sankhyablocks/p-913a9979.js +0 -1
- package/dist/sankhyablocks/p-941bf3ef.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-b11aa1e0.entry.js +0 -1
- package/dist/sankhyablocks/p-c2495304.js +0 -1
- package/dist/sankhyablocks/p-c5268346.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-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-fcac4dfc.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,20 +2,20 @@ import { r as registerInstance, h, H as Host, g as getElement } from './index-a7
|
|
2
2
|
import { ApplicationContext, ObjectUtils, UserInterface, DataType, ElementIDUtils } from '@sankhyalabs/core';
|
3
3
|
import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
|
4
4
|
import { D as DataExporterOption, a as DataExporterType, b as DataExporterFormat } from './index-3aa4977a.js';
|
5
|
-
import { R as REPORT_LAUNCHER_RESOURCE_ID } from './constants-
|
6
|
-
import { D as DataFetcher } from './DataFetcher-
|
7
|
-
import { S as SnkDataUnit } from './snk-data-unit-
|
8
|
-
import './pesquisa-fetcher-
|
5
|
+
import { R as REPORT_LAUNCHER_RESOURCE_ID } from './constants-7302ee87.js';
|
6
|
+
import { D as DataFetcher } from './DataFetcher-5034df59.js';
|
7
|
+
import { S as SnkDataUnit } from './snk-data-unit-9fa7d2b9.js';
|
8
|
+
import './pesquisa-fetcher-24e5bba0.js';
|
9
9
|
import './ISave-d8c8bc59.js';
|
10
10
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
11
11
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
12
|
-
import './dataunit-fetcher-
|
12
|
+
import './dataunit-fetcher-56cb648b.js';
|
13
13
|
import './filter-item-type.enum-d45e026f.js';
|
14
|
-
import './form-config-fetcher-
|
14
|
+
import './form-config-fetcher-0c2620ef.js';
|
15
15
|
import './PrintUtils-3e4ff0f5.js';
|
16
|
-
import './SnkMessageBuilder-
|
17
|
-
import './RecordIDUtils-87d02110.js';
|
16
|
+
import './SnkMessageBuilder-6fff4a4c.js';
|
18
17
|
import '@sankhyalabs/core/dist/dataunit/metadata/DataType';
|
18
|
+
import './GetSelectedRecordsIDsInfo-9fa41508.js';
|
19
19
|
import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
|
20
20
|
import '@sankhyalabs/core/dist/utils/SortingUtils';
|
21
21
|
import './ResourceIDUtils-a114189a.js';
|
@@ -131,7 +131,7 @@ class ItemBuilder {
|
|
131
131
|
getExportToXLS(groupName) {
|
132
132
|
return {
|
133
133
|
id: DataExporterOption.EXPORT_TO_XLS,
|
134
|
-
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.
|
134
|
+
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xls)`,
|
135
135
|
group: groupName
|
136
136
|
};
|
137
137
|
}
|
@@ -174,7 +174,7 @@ class ItemBuilder {
|
|
174
174
|
getExportPageToXLS() {
|
175
175
|
return {
|
176
176
|
id: DataExporterOption.EXPORT_PAGE_TO_XLS,
|
177
|
-
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.
|
177
|
+
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xls)`
|
178
178
|
};
|
179
179
|
}
|
180
180
|
/**
|
@@ -291,11 +291,11 @@ class ServerSideExporterStrategy {
|
|
291
291
|
return visibleColumns;
|
292
292
|
}
|
293
293
|
async getParams(resolveProps) {
|
294
|
-
var _a, _b, _c, _d, _e, _f;
|
294
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
295
295
|
const filters = (_b = (_a = this._provider).getFilters) === null || _b === void 0 ? void 0 : _b.call(_a);
|
296
|
-
const columns =
|
297
|
-
const sort = (
|
298
|
-
const resourceURI = (
|
296
|
+
const columns = ((_c = getOptionKey(resolveProps === null || resolveProps === void 0 ? void 0 : resolveProps.exportOption)) === null || _c === void 0 ? void 0 : _c.includes("PDF")) ? await this.getParsedColumns() : await this._provider.getColumnsMetadata();
|
297
|
+
const sort = (_e = (_d = this._provider).getOrders) === null || _e === void 0 ? void 0 : _e.call(_d);
|
298
|
+
const resourceURI = (_g = (_f = this._provider).getResourceURI) === null || _g === void 0 ? void 0 : _g.call(_f);
|
299
299
|
const selectedIDs = this._provider.getSelectedIDs();
|
300
300
|
const option = resolveProps.exportOption;
|
301
301
|
const currentPageOptions = [
|
@@ -350,15 +350,16 @@ class ClientSideExporterStrategy {
|
|
350
350
|
return visibleColumns;
|
351
351
|
}
|
352
352
|
async executeExport(resolveProps) {
|
353
|
-
|
353
|
+
var _a;
|
354
|
+
const { methodName, gridTitle } = resolveProps;
|
354
355
|
const records = await this._provider.getRecords();
|
355
|
-
const columns =
|
356
|
+
const columns = ((_a = getOptionKey(resolveProps === null || resolveProps === void 0 ? void 0 : resolveProps.exportOption)) === null || _a === void 0 ? void 0 : _a.includes("PDF")) ? await this.getParsedColumns() : await this._provider.getColumnsMetadata();
|
356
357
|
const [serviceName, processor] = this.getExecutor(methodName);
|
357
358
|
const payload = {
|
358
359
|
serviceName,
|
359
360
|
requestBody: {
|
360
361
|
grid: {
|
361
|
-
|
362
|
+
gridTitle,
|
362
363
|
columns: this.buildColumnsObject(columns),
|
363
364
|
rows: this.buildRowsObject(columns, records),
|
364
365
|
customOptions: { xlsxExtension: false }
|
@@ -389,10 +390,10 @@ class ClientSideExporterStrategy {
|
|
389
390
|
"GridXLSBuilderSP.buildXLSFromJson",
|
390
391
|
responseBody => ({
|
391
392
|
fileSessionKey: responseBody.chaveXLS.valor,
|
392
|
-
canPrint:
|
393
|
-
canExport:
|
393
|
+
canPrint: true,
|
394
|
+
canExport: true,
|
395
|
+
canSendEmail: true,
|
394
396
|
useAppPrint: false,
|
395
|
-
canSendEmail: false
|
396
397
|
})
|
397
398
|
];
|
398
399
|
}
|
@@ -468,7 +469,7 @@ const SnkDataExporter = class {
|
|
468
469
|
resolver: ({ type, format, email: { to, subject, message } }) => {
|
469
470
|
var _a;
|
470
471
|
const methodName = (_a = DataExporterFormat[format === null || format === void 0 ? void 0 : format.toUpperCase()]) !== null && _a !== void 0 ? _a : DataExporterFormat.PDF;
|
471
|
-
this.resolveExporter({ type, methodName, to, subject, message, fileName: this._appLabel,
|
472
|
+
this.resolveExporter({ type, methodName, to, subject, message, fileName: this._appLabel, gridTitle: this._appLabel }, () => {
|
472
473
|
this._snkEmailSender.close();
|
473
474
|
ApplicationUtils.info(this.getMessage("snkDataExporter.message.emailSuccess"), { iconName: "check" });
|
474
475
|
});
|
@@ -552,19 +553,17 @@ const SnkDataExporter = class {
|
|
552
553
|
var _a, _b, _c;
|
553
554
|
const optionKey = this.getOptionKey(option);
|
554
555
|
const fileType = (_a = DataExporterType[optionKey]) !== null && _a !== void 0 ? _a : DataExporterType.EXPORT_TO_PDF;
|
555
|
-
const isDownload = DataExporterType[optionKey] === DataExporterType.EXPORT_TO_XLS;
|
556
556
|
const params = {
|
557
557
|
methodName: DataExporterOption[`EXPORT_TO_${fileType}`],
|
558
558
|
fileName: this._appLabel,
|
559
|
-
|
559
|
+
gridTitle: this._appLabel,
|
560
560
|
exportOption: option,
|
561
561
|
limit: (_c = (_b = this.provider) === null || _b === void 0 ? void 0 : _b.getExportLimit) === null || _c === void 0 ? void 0 : _c.call(_b),
|
562
562
|
type: this.getExportType(option),
|
563
563
|
};
|
564
564
|
await this.resolveExporter(params, (response) => {
|
565
565
|
if (response.canExport || fileType === DataExporterType.EXPORT_TO_PDF) {
|
566
|
-
fileViewer(Object.assign(Object.assign({}, response), { fileType
|
567
|
-
isDownload }));
|
566
|
+
fileViewer(Object.assign(Object.assign({}, response), { fileType }));
|
568
567
|
}
|
569
568
|
else {
|
570
569
|
ApplicationUtils.error(this.getMessage("snkDataExporter.title.permission"), this.getMessage("snkDataExporter.message.exportPermission"));
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-a7d3d3f1.js';
|
2
2
|
import { Action, ObjectUtils, DataUnitAction, StringUtils, ApplicationContext } from '@sankhyalabs/core';
|
3
3
|
import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
|
4
|
-
import { O as OperationMap, S as SnkMessageBuilder } from './SnkMessageBuilder-
|
5
|
-
import { g as getRecordValue, a as DatasetStrategy } from './dataunit-fetcher-
|
6
|
-
import { g as getSelectedIDs } from './RecordIDUtils-87d02110.js';
|
4
|
+
import { O as OperationMap, S as SnkMessageBuilder } from './SnkMessageBuilder-6fff4a4c.js';
|
5
|
+
import { g as getRecordValue, a as DatasetStrategy } from './dataunit-fetcher-56cb648b.js';
|
7
6
|
import { convertType } from '@sankhyalabs/core/dist/dataunit/metadata/DataType';
|
7
|
+
import { g as getSelectedRecordsIDsInfo } from './GetSelectedRecordsIDsInfo-9fa41508.js';
|
8
8
|
|
9
9
|
const SnkDataUnit = class {
|
10
10
|
constructor(hostRef) {
|
@@ -23,7 +23,7 @@ const SnkDataUnit = class {
|
|
23
23
|
this._rowMetadataCache = new Map();
|
24
24
|
this.REGEX_DATAUNIT_NAME = /dd:\/\/(.+?)\//;
|
25
25
|
this._dataUnitObserver = async (action) => {
|
26
|
-
const duState = this.buildDataState(action.type);
|
26
|
+
const duState = await this.buildDataState(action.type);
|
27
27
|
this.dataState = duState;
|
28
28
|
this.messagesBuilder.currentOperation = this.getMessageOperation();
|
29
29
|
switch (action.type) {
|
@@ -59,6 +59,7 @@ const SnkDataUnit = class {
|
|
59
59
|
this.ignoreSaveMessage = undefined;
|
60
60
|
this.configName = undefined;
|
61
61
|
this.resourceID = undefined;
|
62
|
+
this.domainMessagesBuilder = undefined;
|
62
63
|
}
|
63
64
|
observePageSize() {
|
64
65
|
if (this.dataUnit) {
|
@@ -114,7 +115,7 @@ const SnkDataUnit = class {
|
|
114
115
|
* @returns Retorna a lista de IDs dos registros selecionados.
|
115
116
|
*/
|
116
117
|
async getSelectedRecordsIDsInfo() {
|
117
|
-
return
|
118
|
+
return getSelectedRecordsIDsInfo(this.dataUnit);
|
118
119
|
}
|
119
120
|
/**
|
120
121
|
* Retorna os campos que possuem a propriedade "rmp" (Row Metadata Provider).
|
@@ -134,14 +135,22 @@ const SnkDataUnit = class {
|
|
134
135
|
async getRowMetadata(record) {
|
135
136
|
return this.doGetRowMetadata(record);
|
136
137
|
}
|
137
|
-
doGetRowMetadata(record) {
|
138
|
+
async doGetRowMetadata(record) {
|
138
139
|
const selectedRecord = this.dataUnit.getSelectedRecord();
|
139
140
|
if (!record && !selectedRecord) {
|
140
141
|
return;
|
141
142
|
}
|
142
143
|
const currentRecord = record || selectedRecord;
|
143
144
|
const recordId = typeof currentRecord === 'string' ? currentRecord : currentRecord.__record__id__;
|
144
|
-
|
145
|
+
let rowMetadata = this._metadataByRow.get(recordId);
|
146
|
+
/*
|
147
|
+
Nao fazemos cache de metadataByRow pra registros novos, pois a chave do mesmo
|
148
|
+
muda ao ser salvo, por isso essa tratativa é necessária para que o dataState fique com metadados
|
149
|
+
corretos nao confiando apenas no _metadataByRow
|
150
|
+
*/
|
151
|
+
if (this.dataUnit.isNewRecord(recordId) && !rowMetadata) {
|
152
|
+
rowMetadata = await this.handleLoadRowMetadata(selectedRecord);
|
153
|
+
}
|
145
154
|
if (!rowMetadata) {
|
146
155
|
return;
|
147
156
|
}
|
@@ -335,7 +344,7 @@ const SnkDataUnit = class {
|
|
335
344
|
case Action.RECORDS_COPIED:
|
336
345
|
return this.interceptRecordsCopied(action);
|
337
346
|
case Action.DATA_CHANGED:
|
338
|
-
await this.handleLoadRowMetadata(action);
|
347
|
+
await this.handleLoadRowMetadata(action.payload);
|
339
348
|
return await this.interceptDataChange(action);
|
340
349
|
case Action.CHANGING_DATA:
|
341
350
|
return await this.interceptDataChange(action);
|
@@ -355,8 +364,9 @@ const SnkDataUnit = class {
|
|
355
364
|
return action;
|
356
365
|
}
|
357
366
|
}
|
358
|
-
async handleLoadRowMetadata(
|
359
|
-
|
367
|
+
async handleLoadRowMetadata(record) {
|
368
|
+
if (!record)
|
369
|
+
return;
|
360
370
|
const keysPayload = Object.keys(record);
|
361
371
|
const rmpField = keysPayload.find((field) => this._fieldsWithRmp.includes(field));
|
362
372
|
if (rmpField) {
|
@@ -435,7 +445,7 @@ const SnkDataUnit = class {
|
|
435
445
|
isAllowed(flag) {
|
436
446
|
return this._permissions ? this._permissions.isSup || this._permissions[flag] : false;
|
437
447
|
}
|
438
|
-
buildDataState(actionType) {
|
448
|
+
async buildDataState(actionType) {
|
439
449
|
var _a;
|
440
450
|
const selectionInfo = this.dataUnit.getSelectionInfo();
|
441
451
|
const isStartingInsertionMode = (this.dataUnit.hasDirtyRecords() || this.dataUnit.hasWaitingChanges()) && (selectionInfo === null || selectionInfo === void 0 ? void 0 : selectionInfo.isEmpty());
|
@@ -443,7 +453,7 @@ const SnkDataUnit = class {
|
|
443
453
|
let rowMetadata = (_a = this.dataState) === null || _a === void 0 ? void 0 : _a.rowMetadata;
|
444
454
|
const allowedOverwrite = [Action.SELECTION_CHANGED, Action.EDITION_CANCELED, Action.NEXT_SELECTED, Action.PREVIOUS_SELECTED];
|
445
455
|
if (selectedRecord && (!rowMetadata || allowedOverwrite.includes(actionType))) {
|
446
|
-
rowMetadata = this.doGetRowMetadata(selectedRecord);
|
456
|
+
rowMetadata = await this.doGetRowMetadata(selectedRecord);
|
447
457
|
}
|
448
458
|
else if (rowMetadata) {
|
449
459
|
rowMetadata.getProp = this.buildGetPropRowMetadata(rowMetadata);
|
@@ -465,31 +475,28 @@ const SnkDataUnit = class {
|
|
465
475
|
});
|
466
476
|
}
|
467
477
|
async handleDataSaved(action) {
|
468
|
-
|
478
|
+
var _a, _b, _c;
|
479
|
+
const newRowMetadata = await this.handleLoadRowMetadata((_c = (_b = (_a = action === null || action === void 0 ? void 0 : action.payload) === null || _a === void 0 ? void 0 : _a.changes) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.record);
|
469
480
|
if (newRowMetadata) {
|
470
481
|
newRowMetadata.getProp = this.buildGetPropRowMetadata(newRowMetadata);
|
471
482
|
}
|
472
483
|
const recordId = action.payload.records[0].__record__id__;
|
473
484
|
this._metadataByRow.set(recordId, newRowMetadata);
|
474
|
-
this.dataState = this.buildDataState();
|
475
|
-
|
485
|
+
this.dataState = await this.buildDataState();
|
486
|
+
let saveOperation = action.payload.changes[0]._operation.toLowerCase();
|
487
|
+
if (saveOperation == 'copy')
|
488
|
+
saveOperation = OperationMap.CLONE;
|
489
|
+
if (this.ignoreSaveMessage && ![OperationMap.CLONE, OperationMap.INSERT].includes(saveOperation)) {
|
476
490
|
return;
|
477
491
|
}
|
478
|
-
const msg = this.getMessage("snkDataUnit.saveInfo", action.payload.records[0]);
|
492
|
+
const msg = this.getMessage("snkDataUnit.saveInfo", action.payload.records[0], saveOperation);
|
479
493
|
if (msg != undefined) {
|
480
494
|
this.showSuccessMessage(msg);
|
481
495
|
}
|
482
496
|
}
|
483
497
|
handleRecordsRemoved(action) {
|
484
498
|
var _a, _b;
|
485
|
-
|
486
|
-
let removeFinishMsg;
|
487
|
-
if ((cachedRecords === null || cachedRecords === void 0 ? void 0 : cachedRecords.length) > 1) {
|
488
|
-
removeFinishMsg = this.getMessage("snkDataUnit.removeAllInfo", { size: cachedRecords.length });
|
489
|
-
}
|
490
|
-
else {
|
491
|
-
removeFinishMsg = this.getMessage("snkDataUnit.removeInfo", action.payload.cachedRecords[0]);
|
492
|
-
}
|
499
|
+
let removeFinishMsg = this.buildRemoveFinishMessage(action);
|
493
500
|
if (removeFinishMsg != undefined) {
|
494
501
|
this.showSuccessMessage(removeFinishMsg);
|
495
502
|
}
|
@@ -500,16 +507,27 @@ const SnkDataUnit = class {
|
|
500
507
|
this.dataUnit.gotoPage(page);
|
501
508
|
}
|
502
509
|
}
|
510
|
+
buildRemoveFinishMessage(action) {
|
511
|
+
const records = action.payload.records;
|
512
|
+
if (!records || !records.length)
|
513
|
+
return undefined;
|
514
|
+
if ((records === null || records === void 0 ? void 0 : records.length) > 1)
|
515
|
+
return this.getMessage('snkDataUnit.removeAllInfo', { size: records.length });
|
516
|
+
return this.getMessage('snkDataUnit.removeInfo', records);
|
517
|
+
}
|
503
518
|
/**
|
504
519
|
* Conforme mecanismo de mensagens, é possível customizar as mensagens dos blocos de construção
|
505
520
|
* através de um pequeno modulo na estrutura da aplicação:
|
506
521
|
* - Criar um arquivo no seguinte caminho: /messages/appmessages.msg.js.
|
507
522
|
* Para conhecer os detalhes do módulo, vide o arquivo neste projeto "/src/lib/message/resources/snk-data-unit.msg.ts"
|
508
523
|
*/
|
509
|
-
getMessage(key, params = undefined) {
|
524
|
+
getMessage(key, params = undefined, customOperation) {
|
510
525
|
if (!params) {
|
511
526
|
params = this.getMessageParams();
|
512
527
|
}
|
528
|
+
if (customOperation) {
|
529
|
+
this.messagesBuilder.currentOperation = customOperation;
|
530
|
+
}
|
513
531
|
return this.messagesBuilder.getMessage(key, params);
|
514
532
|
}
|
515
533
|
getMessageParams() {
|
@@ -540,21 +558,30 @@ const SnkDataUnit = class {
|
|
540
558
|
return await this._application.getDataUnit(this.entityName, cacheName, null, this.configName, this.resourceID);
|
541
559
|
}
|
542
560
|
}
|
561
|
+
updateMetadataWithRMP() {
|
562
|
+
this.fillFieldsWithRmp(this.dataUnit.metadata);
|
563
|
+
this.fillFieldsWithRmPrecision(this.dataUnit.metadata);
|
564
|
+
const dataUnitUpdatedMetadata = this.handleDULinksOnMetadataLoaded(this.dataUnit.metadata);
|
565
|
+
this.dataUnit.metadata = dataUnitUpdatedMetadata;
|
566
|
+
}
|
543
567
|
async loadDataUnit() {
|
544
|
-
var _a;
|
568
|
+
var _a, _b;
|
545
569
|
if (this.dataUnit == null && this._application && this.entityName) {
|
546
570
|
this.dataUnit = await this.getDataUnitParentOrChild();
|
547
571
|
}
|
548
572
|
if (this.dataUnit) {
|
549
573
|
this.dataUnit.pageSize = this.pageSize;
|
550
574
|
this.dataUnit.unsubscribe(this._dataUnitObserver);
|
551
|
-
this.dataUnit.addInterceptor(this);
|
552
575
|
this.dataUnit.subscribe(this._dataUnitObserver);
|
553
|
-
|
554
|
-
|
555
|
-
this.getMetadataByRow(this.dataUnit);
|
576
|
+
if ((_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.metadata) {
|
577
|
+
this.updateMetadataWithRMP();
|
556
578
|
}
|
557
|
-
this.
|
579
|
+
this.dataUnit.addInterceptor(this);
|
580
|
+
if ((_b = this.dataUnit.records) === null || _b === void 0 ? void 0 : _b.length) {
|
581
|
+
const { records } = this.getMetadataByRow(this.dataUnit);
|
582
|
+
this.dataUnit.records = records;
|
583
|
+
}
|
584
|
+
this.dataState = await this.buildDataState();
|
558
585
|
let resolver;
|
559
586
|
while (resolver = this._onDataUnitResolve.pop()) {
|
560
587
|
resolver(this.dataUnit);
|
@@ -616,6 +643,13 @@ const SnkDataUnit = class {
|
|
616
643
|
parent = parent.parentElement;
|
617
644
|
}
|
618
645
|
}
|
646
|
+
instanceMessagesBuilder() {
|
647
|
+
var _a;
|
648
|
+
if (this.messagesBuilder) {
|
649
|
+
return;
|
650
|
+
}
|
651
|
+
this.messagesBuilder = new SnkMessageBuilder((_a = this.domainMessagesBuilder) !== null && _a !== void 0 ? _a : this.entityName);
|
652
|
+
}
|
619
653
|
//---------------------------------------------
|
620
654
|
// Lifecycle web component
|
621
655
|
//---------------------------------------------
|
@@ -623,9 +657,7 @@ const SnkDataUnit = class {
|
|
623
657
|
this._application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
624
658
|
this._application.getAllAccess(this.resourceID).then(access => this._permissions = access);
|
625
659
|
this._parentSnkDataUnit = this.getParentSnkDataUnit();
|
626
|
-
|
627
|
-
this.messagesBuilder = new SnkMessageBuilder(this.entityName);
|
628
|
-
}
|
660
|
+
this.instanceMessagesBuilder();
|
629
661
|
}
|
630
662
|
disconnectedCallback() {
|
631
663
|
if (this.dataUnit) {
|
@@ -1,15 +1,15 @@
|
|
1
|
-
export { S as snk_data_unit } from './snk-data-unit-
|
1
|
+
export { S as snk_data_unit } from './snk-data-unit-9fa7d2b9.js';
|
2
2
|
import './index-a7d3d3f1.js';
|
3
3
|
import '@sankhyalabs/core';
|
4
4
|
import '@sankhyalabs/ezui/dist/collection/utils';
|
5
|
-
import './SnkMessageBuilder-
|
6
|
-
import './dataunit-fetcher-
|
7
|
-
import './DataFetcher-
|
5
|
+
import './SnkMessageBuilder-6fff4a4c.js';
|
6
|
+
import './dataunit-fetcher-56cb648b.js';
|
7
|
+
import './DataFetcher-5034df59.js';
|
8
8
|
import './PrintUtils-3e4ff0f5.js';
|
9
9
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
10
10
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
11
11
|
import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
|
12
12
|
import '@sankhyalabs/core/dist/utils/SortingUtils';
|
13
13
|
import './ResourceIDUtils-a114189a.js';
|
14
|
-
import './RecordIDUtils-87d02110.js';
|
15
14
|
import '@sankhyalabs/core/dist/dataunit/metadata/DataType';
|
15
|
+
import './GetSelectedRecordsIDsInfo-9fa41508.js';
|
@@ -1,27 +1,27 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host } from './index-a7d3d3f1.js';
|
2
2
|
import { Action } from '@sankhyalabs/core';
|
3
|
-
import { S as SnkFormConfigManager } from './SnkFormConfigManager-
|
3
|
+
import { S as SnkFormConfigManager } from './SnkFormConfigManager-a7770e24.js';
|
4
4
|
import { FormMetadata, buildFormMetadata } from '@sankhyalabs/ezui/dist/collection/utils/form';
|
5
|
-
import './DataFetcher-
|
6
|
-
import './pesquisa-fetcher-
|
5
|
+
import './DataFetcher-5034df59.js';
|
6
|
+
import './pesquisa-fetcher-24e5bba0.js';
|
7
7
|
import { P as PresentationMode } from './index-3aa4977a.js';
|
8
8
|
import './ISave-d8c8bc59.js';
|
9
9
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
10
10
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
11
|
-
import './dataunit-fetcher-
|
11
|
+
import './dataunit-fetcher-56cb648b.js';
|
12
12
|
import './filter-item-type.enum-d45e026f.js';
|
13
|
-
import './form-config-fetcher-
|
13
|
+
import './form-config-fetcher-0c2620ef.js';
|
14
14
|
import { T as TaskbarElement } from './taskbar-elements-d59867f1.js';
|
15
|
-
import {
|
16
|
-
import { S as SnkGuidesViewer } from './snk-guides-viewer-
|
17
|
-
import { S as SnkMessageBuilder } from './SnkMessageBuilder-
|
18
|
-
import './ConfigStorage-
|
15
|
+
import { V as VIEW_MODE } from './constants-7302ee87.js';
|
16
|
+
import { S as SnkGuidesViewer } from './snk-guides-viewer-b740a1fe.js';
|
17
|
+
import { S as SnkMessageBuilder } from './SnkMessageBuilder-6fff4a4c.js';
|
18
|
+
import './ConfigStorage-ff99377a.js';
|
19
19
|
import './PrintUtils-3e4ff0f5.js';
|
20
20
|
import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
|
21
21
|
import '@sankhyalabs/core/dist/utils/SortingUtils';
|
22
22
|
import './ResourceIDUtils-a114189a.js';
|
23
23
|
import './index-bdf75557.js';
|
24
|
-
import './field-search-
|
24
|
+
import './field-search-f8b1d91e.js';
|
25
25
|
import '@sankhyalabs/core/dist/dataunit/DataUnit';
|
26
26
|
|
27
27
|
class GuideBuilder {
|
@@ -263,7 +263,7 @@ const SnkDetailView = class {
|
|
263
263
|
this.emitSwitchEvent(VIEW_MODE.GRID);
|
264
264
|
evt.stopPropagation();
|
265
265
|
}
|
266
|
-
if (evt.detail === TaskbarElement.FORM_MODE) {
|
266
|
+
if (evt.detail === TaskbarElement.FORM_MODE || evt.detail === TaskbarElement.UPDATE) {
|
267
267
|
this.emitSwitchEvent(VIEW_MODE.FORM);
|
268
268
|
evt.stopPropagation();
|
269
269
|
}
|
@@ -287,7 +287,7 @@ const SnkDetailView = class {
|
|
287
287
|
}
|
288
288
|
componentWillLoad() {
|
289
289
|
this._configName = `dynaform.${this.entityName}`;
|
290
|
-
this.formConfigManager = new SnkFormConfigManager(this._configName, this.resourceID, () => this.loadMetadata());
|
290
|
+
this.formConfigManager = new SnkFormConfigManager(this._configName, this.resourceID, () => this.loadMetadata(), this.dataUnit);
|
291
291
|
this.formConfigManager.loadConfig();
|
292
292
|
if (this.messagesBuilder == undefined) {
|
293
293
|
this.messagesBuilder = new SnkMessageBuilder(this.entityName);
|
@@ -312,7 +312,7 @@ const SnkDetailView = class {
|
|
312
312
|
render() {
|
313
313
|
this.updateLabel();
|
314
314
|
//const cardConfig: IFormCardConfig = this._cardsState?.get(this.selectedForm);
|
315
|
-
return (h(Host, null, h("snk-data-unit", { ref: (el) => this._snkDataUnit = el, dataUnitName: `${this.dataUnitName}`, onDataUnitReady: evt => this.dataUnitReadyHandler(evt), entityName: this.entityName, onDataStateChange: this.handleDataStateChange.bind(this), ignoreSaveMessage: this._currentView === VIEW_MODE.GRID, messagesBuilder: this.messagesBuilder, configName: this._configName }, h("ez-view-stack", { ref: (ref) => this.updateViewStack(ref) }, h("stack-item", null, h("div", { class: "ez-box ez-box--shadow grid-container" }, h("div", { class: "ez-flex ez-title--primary ez-size-width--full ez-padding--large detail-header" }, h("div", { class: "ez-flex ez-text ez-text--bold ez-flex--justify-start ez-flex--align-items-center" }, this._levelPath ? h("span", { class: "level-path" }, this._levelPath + " /") : undefined, this.label)), h("snk-grid", { class: "ez-size-width--full ez-size-height--full", ref: (ref) => this._snkGrid = ref, configName: this._configName, messagesBuilder: this.messagesBuilder, onGridDoubleClick: () => this.emitSwitchEvent(VIEW_MODE.FORM), onActionClick: (evt) => this.executeActionHandler(evt), presentationMode: PresentationMode.SECONDARY, canEdit: this.canEdit, isDetail: true, taskbarCustomContainerId: this.taskbarCustomContainerId, gridHeaderCustomSlotId: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS", topTaskbarCustomSlotId: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS" }))), h("stack-item", null, h("snk-form-view", { ref: (ref) => this._snkFormView = ref, canExpand: false, canFix: false, name: this.selectedForm, formMetadata: this._formMetadata, dataUnit: this.dataUnit, fields: this.getFormFields(), label: this.label, levelPath: this._levelPath, onFormItemsReady: ({ detail: formItems }) => this.formItemsReady.emit(formItems) }, h("snk-taskbar", { key: "guideViewerTaskbar", class: "form-taskbar", "data-element-id": "guideViewer", configName: this._configName, messagesBuilder: this.messagesBuilder, disabledButtons: this._disabledButtons, buttons: "INSERT,PREVIOUS,NEXT,DIVIDER,CLONE,REMOVE,MORE_OPTIONS,DIVIDER,GRID_MODE,CONFIGURATOR", primaryButton: "INSERT", presentationMode: PresentationMode.SECONDARY, onActionClick: evt => this.executeActionHandler(evt), dataUnit: this.dataUnit, resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }, h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" })))), h("stack-item", null, h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this.entityName, onBack: this.handleAttachBack.bind(this) }))))));
|
315
|
+
return (h(Host, null, h("snk-data-unit", { ref: (el) => this._snkDataUnit = el, dataUnitName: `${this.dataUnitName}`, onDataUnitReady: evt => this.dataUnitReadyHandler(evt), entityName: this.entityName, onDataStateChange: this.handleDataStateChange.bind(this), ignoreSaveMessage: this._currentView === VIEW_MODE.GRID, messagesBuilder: this.messagesBuilder, configName: this._configName }, h("ez-view-stack", { ref: (ref) => this.updateViewStack(ref) }, h("stack-item", null, h("div", { class: "ez-box ez-box--shadow grid-container" }, h("div", { class: "ez-flex ez-title--primary ez-size-width--full ez-padding--large detail-header" }, h("div", { class: "ez-flex ez-text ez-text--bold ez-flex--justify-start ez-flex--align-items-center" }, this._levelPath ? h("span", { class: "level-path" }, this._levelPath + " /") : undefined, this.label)), h("snk-grid", { class: "ez-size-width--full ez-size-height--full", ref: (ref) => this._snkGrid = ref, configName: this._configName, messagesBuilder: this.messagesBuilder, onGridDoubleClick: () => this.emitSwitchEvent(VIEW_MODE.FORM), onActionClick: (evt) => this.executeActionHandler(evt), presentationMode: PresentationMode.SECONDARY, canEdit: this.canEdit, isDetail: true, taskbarCustomContainerId: this.taskbarCustomContainerId, gridHeaderCustomSlotId: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS", topTaskbarCustomSlotId: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS", outlineMode: false }))), h("stack-item", null, h("snk-form-view", { ref: (ref) => this._snkFormView = ref, canExpand: false, canFix: false, name: this.selectedForm, formMetadata: this._formMetadata, dataUnit: this.dataUnit, fields: this.getFormFields(), label: this.label, levelPath: this._levelPath, onFormItemsReady: ({ detail: formItems }) => this.formItemsReady.emit(formItems) }, h("snk-taskbar", { key: "guideViewerTaskbar", class: "form-taskbar", "data-element-id": "guideViewer", configName: this._configName, messagesBuilder: this.messagesBuilder, disabledButtons: this._disabledButtons, buttons: "INSERT,PREVIOUS,NEXT,DIVIDER,CLONE,REMOVE,MORE_OPTIONS,DIVIDER,GRID_MODE,CONFIGURATOR", primaryButton: "INSERT", presentationMode: PresentationMode.SECONDARY, onActionClick: evt => this.executeActionHandler(evt), dataUnit: this.dataUnit, resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }, h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" })))), h("stack-item", null, h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this.entityName, onBack: this.handleAttachBack.bind(this) }))))));
|
316
316
|
}
|
317
317
|
static get watchers() { return {
|
318
318
|
"dataUnit": ["observeDataUnit"],
|
@@ -16,7 +16,7 @@ const OptionsStep = ({ getMessage, changeInfo, data }) => {
|
|
16
16
|
const selectionCount = (data === null || data === void 0 ? void 0 : data.selectedRows) || 0;
|
17
17
|
const formatOptions = [
|
18
18
|
{ label: getMessage("snkExporter.emailSenderOptStep_formatPDF"), value: "pdf" },
|
19
|
-
{ label: getMessage("snkExporter.
|
19
|
+
{ label: getMessage("snkExporter.emailSenderOptStep_formatXLS"), value: "xls" }
|
20
20
|
];
|
21
21
|
const typeOptions = [
|
22
22
|
{ label: getMessage("snkExporter.emailSenderOptStep_allData"), value: "all" },
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-a7d3d3f1.js';
|
2
2
|
import { ElementIDUtils } from '@sankhyalabs/core';
|
3
|
-
import { A as ACTION_CONFIG } from './constants-
|
3
|
+
import { A as ACTION_CONFIG } from './constants-7302ee87.js';
|
4
4
|
|
5
5
|
const snkFieldConfigCss = ".sc-snk-field-config-h{--snk-field-config--height:42px;--snk-field-config--width:100%;--snk-field-config__icon--width:48px;--snk-field-config-slim--height:32px;--snk-field-config--border-radius:var(--border--radius-medium, 12px);--snk-field-config--font-size:var(--text--medium, 14px);--snk-field-config--font-family:var(--font-pattern, Arial);--snk-field-config--font-weight:var(--text-weight--medium, 400);--snk-field-config--color:var(--title--primary, #000);--snk-field-config--padding-left:var(--space--medium, 6px);--snk-field-config__input--background-color:var(--background--medium, #e0e0e0);--snk-field-config__input--border:var(--border--medium, 2px solid);--snk-field-config__input--border-color:var(--background--xlight, #fff);--snk-field-config__required--color:var(--color--error, #FF0000);--snk-field-config__label--gap:var(--space--extra-small, 3px);--snk-field-config__transition--visibility:var(--transition, 0.2s linear);--snk-field-config__transition--opacity:var(--transition, 0.15s linear);--snk-field-config__config-popover--z-index:var(--more-visible, 2);--snk-field-config__config-outer-arrow--background-color:var(--color--secondary-200, #D2D3DA);--snk-field-config__draggable--padding-right:var(--space--small, 6px);display:flex;flex-wrap:wrap;position:relative;width:var(--snk-field-config--width)}.field-config.sc-snk-field-config{width:100%;box-sizing:border-box;display:flex;align-items:center;padding-left:var(--snk-field-config--padding-left);font-weight:var(--snk-field-config--font-weight);height:var(--snk-field-config--height);border-radius:var(--snk-field-config--border-radius);font-family:var(--snk-field-config--font-family);font-size:var(--snk-field-config--font-size);border:var(--snk-field-config__input--border);border-color:var(--snk-field-config__input--border-color);background-color:var(--snk-field-config__input--background-color);color:var(--snk-field-config--color)}.field-config__config-popover.sc-snk-field-config{width:40px;margin-left:auto;z-index:var(--snk-field-config__config-popover--z-index)}.field-config__label.sc-snk-field-config{display:flex;flex-direction:row-reverse;line-height:calc(var(--snk-field-config--font-size) + 2px);gap:var(--snk-field-config__label--gap)}.field-config__label-text.sc-snk-field-config{overflow:hidden;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;height:auto;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;display:-webkit-box;-o-text-overflow:ellipsis;text-overflow:ellipsis;word-break:break-word}.field-config__label-required.sc-snk-field-config{color:var(--snk-field-config__required--color)}.field-config__add.sc-snk-field-config{display:flex;margin-left:auto;visibility:hidden;opacity:0;transition:visibility var(--snk-field-config__transition--visibility), opacity var(--snk-field-config__transition--opacity)}.field-config__options.sc-snk-field-config{display:flex;margin-left:auto;visibility:hidden;opacity:0;transition:visibility var(--snk-field-config__transition--visibility), opacity var(--snk-field-config__transition--opacity)}.field-config__options--is-active.sc-snk-field-config{display:flex;visibility:visible;opacity:1}.field-config__remove-icon.sc-snk-field-config{margin-right:-15px}.field-config.sc-snk-field-config:hover .field-config__options.sc-snk-field-config{display:flex;visibility:visible;opacity:1}.field-config.sc-snk-field-config:hover .field-config__add.sc-snk-field-config{visibility:visible;opacity:1}.field-config__draggable.sc-snk-field-config{padding-right:var(--snk-field-config__draggable--padding-right)}.field-config__config-outer-arrow.sc-snk-field-config{clip-path:polygon(50% 0, 90% 100%, 10% 100%);border-radius:0.25em 0 0 0;width:30px;height:15px;padding-top:3px;border-bottom:1px solid #FFFFFF;background-color:var(--snk-field-config__config-outer-arrow--background-color)}.field-config__config-inner-arrow.sc-snk-field-config{background-color:#FFFFFF;clip-path:polygon(50% 0, 90% 100%, 10% 100%);border-radius:0.25em 0 0 0;width:30px;height:15px}.ez-box__container.sc-snk-field-config ez-collapsible-box.sc-snk-field-config{--snk-collapsible-box__header--padding-left:6px}ez-icon.sc-snk-field-config{--snk-icon--color:var(--snk-field-config--color)}ez-popover.sc-snk-field-config{--snk-popover__box--background-color:transparent;--snk-popover__box--box-shadow:none}.field-config__options.sc-snk-field-config ez-button.sc-snk-field-config{--snk-button--background-color:transparent;--snk-button--focus--border:none;--snk-button--focus--box-shadow:none}@media screen and (min-width: 1200px){.field-config__label.sc-snk-field-config{flex-direction:row}}";
|
6
6
|
|