@sankhyalabs/sankhyablocks 0.0.0-bugfix-dev-KB-131882.2 → 0.0.0-bugfix-dev-KB-174860.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +4 -1
- package/dist/cjs/{ConfigStorage-d9d24844.js → ConfigStorage-156bfcac.js} +19 -2
- package/dist/cjs/ContinuousInsertUtils-1ae0c6ac.js +41 -0
- package/dist/cjs/{DataFetcher-3a8ea521.js → DataFetcher-d13b4637.js} +2803 -2
- package/dist/cjs/FormConfigHelper-c5f5473a.js +342 -0
- package/dist/cjs/{ISave-a66bb65e.js → ISave-55d9dcc3.js} +1 -1
- package/dist/cjs/{ImageUtils-5e3f406b.js → ImageUtils-d6139911.js} +5 -3
- package/dist/cjs/{PersonalizedFilterUtils-eccb267a.js → PersonalizedFilterUtils-263e4d24.js} +52 -5
- package/dist/cjs/{SnkFormConfigManager-c88cf1e9.js → SnkFormConfigManager-5cb9a39c.js} +2 -2
- package/dist/cjs/{SnkMultiSelectionListDataSource-f53b60c4.js → SnkMultiSelectionListDataSource-5c5badfc.js} +146 -74
- package/dist/cjs/{auth-fetcher-faa61f64.js → auth-fetcher-d1715459.js} +1 -1
- package/dist/cjs/{dataunit-fetcher-6febd6c4.js → dataunit-fetcher-fae710c5.js} +68 -110
- package/dist/cjs/fields-layout.cjs.entry.js +1 -1
- package/dist/cjs/fields-selector.cjs.entry.js +1 -1
- package/dist/cjs/{filter-type.enum-2bb46d2a.js → filter-type.enum-b3b388af.js} +7 -0
- package/dist/cjs/{form-config-fetcher-72cf0e3d.js → form-config-fetcher-bbebdcb8.js} +41 -5
- package/dist/cjs/guides-configurator.cjs.entry.js +2 -2
- package/dist/cjs/index-1894343a.js +28 -40
- package/dist/cjs/{index-e3e39724.js → index-bc950921.js} +6 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/pesquisa-grid_2.cjs.entry.js +5 -6
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/{snk-actions-button_8.cjs.entry.js → snk-actions-button_9.cjs.entry.js} +151 -63
- package/dist/cjs/snk-application.cjs.entry.js +8 -9
- package/dist/cjs/snk-attach_11.cjs.entry.js +2958 -0
- package/dist/cjs/snk-configurator.cjs.entry.js +2 -0
- package/dist/cjs/snk-crud.cjs.entry.js +140 -99
- package/dist/cjs/snk-data-exporter.cjs.entry.js +61 -16
- package/dist/cjs/{snk-data-unit-94757628.js → snk-data-unit-32237a2d.js} +11 -11
- package/dist/cjs/snk-data-unit.cjs.entry.js +3 -4
- package/dist/cjs/snk-detail-view.cjs.entry.js +28 -20
- package/dist/cjs/snk-dynaform-config-header_5.cjs.entry.js +739 -0
- package/dist/cjs/snk-dynaform-detail-view_2.cjs.entry.js +961 -0
- package/dist/cjs/snk-dynaform-field-config_2.cjs.entry.js +327 -0
- package/dist/cjs/snk-dynaform-guides-view-2c7c6ce4.js +1094 -0
- package/dist/cjs/snk-dynaform-guides-view.cjs.entry.js +23 -0
- package/dist/cjs/snk-dynaform.cjs.entry.js +679 -0
- package/dist/cjs/snk-entity-search.cjs.entry.js +211 -0
- package/dist/cjs/snk-exporter-email-sender.cjs.entry.js +1 -1
- package/dist/cjs/{snk-expression-group_2.cjs.entry.js → snk-expression-group_4.cjs.entry.js} +421 -18
- package/dist/cjs/snk-filter-bar_4.cjs.entry.js +137 -121
- package/dist/cjs/snk-filter-search.cjs.entry.js +10 -0
- package/dist/cjs/snk-form-view.cjs.entry.js +1 -4
- package/dist/cjs/snk-form_2.cjs.entry.js +4 -5
- package/dist/cjs/snk-grid.cjs.entry.js +53 -21
- package/dist/cjs/{snk-guides-viewer-315f8580.js → snk-guides-viewer-67b9cca9.js} +38 -161
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +8 -17
- package/dist/cjs/snk-layout-form-config.cjs.entry.js +5 -6
- package/dist/cjs/snk-pesquisa.cjs.entry.js +5 -6
- package/dist/cjs/snk-taskbar.cjs.entry.js +182 -125
- package/dist/cjs/{sortable.esm-9a110bb7.js → sortable.esm-b87669ab.js} +76 -90
- package/dist/cjs/taskbar-elements-25f800b3.js +152 -0
- package/dist/cjs/taskbarUtils-99aaa01f.js +236 -0
- package/dist/collection/collection-manifest.json +19 -0
- package/dist/collection/components/snk-actions-button/actions/executor/launch-screen.executor.js +6 -3
- package/dist/collection/components/snk-actions-button/snk-actions-button.js +30 -6
- package/dist/collection/components/snk-attach/snk-attach.css +29 -7
- package/dist/collection/components/snk-attach/snk-attach.js +93 -18
- package/dist/collection/components/snk-configurator/snk-configurator.js +2 -0
- package/dist/collection/components/snk-crud/snk-crud.css +55 -0
- package/dist/collection/components/snk-crud/snk-crud.js +147 -94
- package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.css +4 -1
- package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +18 -7
- package/dist/collection/components/snk-crud/subcomponents/snk-entity-search.css +17 -0
- package/dist/collection/components/snk-crud/subcomponents/snk-entity-search.js +330 -0
- package/dist/collection/components/snk-crud/subcomponents/snk-form-view.js +0 -3
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.css +22 -8
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +36 -152
- package/dist/collection/components/snk-crud/utils/taskbarUtils.js +163 -0
- package/dist/collection/components/snk-data-exporter/exporter-email-sender/snk-exporter-email-sender.js +1 -1
- package/dist/collection/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.js +2 -2
- package/dist/collection/components/snk-data-exporter/interfaces/IExporterProvider.js +78 -23
- package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +28 -5
- package/dist/collection/components/snk-data-exporter/structure/ItemBuilder.js +43 -2
- package/dist/collection/components/snk-dynaform/interfaces/PropsCustomEditor.js +1 -0
- package/dist/collection/components/snk-dynaform/interfaces/PropsCustomRender.js +1 -0
- package/dist/collection/components/snk-dynaform/snk-dynaform.css +69 -0
- package/dist/collection/components/snk-dynaform/snk-dynaform.js +1661 -0
- package/dist/collection/components/snk-dynaform/subcomponents/CardFormResizeObserver.js +26 -0
- package/dist/collection/components/snk-dynaform/subcomponents/GuideBuilder.js +51 -0
- package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-detail-view/snk-dynaform-detail-view.css +182 -0
- package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-detail-view/snk-dynaform-detail-view.js +1015 -0
- package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-form-view/snk-dynaform-form-view.css +98 -0
- package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-form-view/snk-dynaform-form-view.js +590 -0
- package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-guides-view/snk-dynaform-guides-view.css +321 -0
- package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-guides-view/snk-dynaform-guides-view.js +1587 -0
- package/dist/collection/components/snk-dynaform-form-config/FormConfigHelper.js +325 -0
- package/dist/collection/components/snk-dynaform-form-config/SnkFormConfigManager.js +219 -0
- package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-config-header/snk-dynaform-config-header.css +17 -0
- package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-config-header/snk-dynaform-config-header.js +236 -0
- package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-config-header/snk-dynaform-configs-button/snk-dynaform-configs-button.css +41 -0
- package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-config-header/snk-dynaform-configs-button/snk-dynaform-configs-button.js +170 -0
- package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-field-item/snk-dynaform-field-config/snk-dynaform-field-config.css +22 -0
- package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-field-item/snk-dynaform-field-config/snk-dynaform-field-config.js +408 -0
- package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-field-item/snk-dynaform-field-item.css +88 -0
- package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-field-item/snk-dynaform-field-item.js +209 -0
- package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-fields-layout/snk-dynaform-fields-layout.css +167 -0
- package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-fields-layout/snk-dynaform-fields-layout.js +655 -0
- package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-fields-selector/snk-dynaform-fields-selector.css +42 -0
- package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-fields-selector/snk-dynaform-fields-selector.js +171 -0
- package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-form-config.css +66 -0
- package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-form-config.js +557 -0
- package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-guides-configurator/snk-dynaform-guides-configurator.css +80 -0
- package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-guides-configurator/snk-dynaform-guides-configurator.js +326 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-search.js +30 -0
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +9 -3
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.css +2 -2
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +24 -4
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.css +6 -1
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +8 -5
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +1 -6
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +148 -77
- package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.css +0 -1
- package/dist/collection/components/snk-grid/snk-grid.css +21 -5
- package/dist/collection/components/snk-grid/snk-grid.js +161 -7
- package/dist/collection/components/snk-grid-config/snk-grid-config.js +111 -44
- package/dist/collection/components/snk-image-input/snk-image-input.js +15 -3
- package/dist/collection/components/snk-image-input/utils/ImageUtils.js +5 -3
- package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js +1 -1
- package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.css +8 -0
- package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.js +38 -2
- package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +51 -35
- package/dist/collection/components/snk-taskbar/elements/taskbar-split-button/taskbar-split-button.js +27 -1
- package/dist/collection/components/snk-taskbar/processor/simple-taskbar-processor.js +55 -0
- package/dist/collection/components/snk-taskbar/snk-taskbar.css +44 -1
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +248 -132
- package/dist/collection/components/snk-taskbar/subcomponents/snk-taskbar-skeleton.css +12 -0
- package/dist/collection/components/snk-taskbar/subcomponents/snk-taskbar-skeleton.js +19 -0
- package/dist/collection/lib/@types/index.js +6 -0
- package/dist/collection/lib/configs/ConfigStorage.js +5 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/DataUnitDataLoader.js +1 -1
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.js +51 -4
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/helpers/DataUnitDataLoaderHelper.js +15 -104
- package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +22 -4
- package/dist/collection/lib/http/data-fetcher/fetchers/grid-config-fetcher.js +12 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/resource-fetcher.js +18 -0
- package/dist/collection/lib/message/resources/en-us/dataUnitDataLoaderHelper.msg.js +0 -13
- package/dist/collection/lib/message/resources/en-us/snk-crud.msg.js +12 -0
- package/dist/collection/lib/message/resources/es-es/dataUnitDataLoaderHelper.msg.js +0 -13
- package/dist/collection/lib/message/resources/es-es/snk-crud.msg.js +12 -0
- package/dist/collection/lib/message/resources/pt-br/dataUnitDataLoaderHelper.msg.js +0 -13
- package/dist/collection/lib/message/resources/pt-br/snk-crud.msg.js +12 -0
- package/dist/collection/lib/utils/CrudUtils.js +7 -4
- package/dist/components/ConfigStorage.js +17 -0
- package/dist/components/ContinuousInsertUtils.js +86 -28
- package/dist/components/ISave.js +6 -0
- package/dist/components/SnkMessageBuilder.js +36 -39
- package/dist/components/dataunit-fetcher.js +67 -109
- package/dist/components/form-config-fetcher.js +40 -4
- package/dist/components/guides-configurator2.js +1 -1
- package/dist/components/index.d.ts +14 -0
- package/dist/components/index.js +14 -0
- package/dist/components/snk-actions-button2.js +15 -9
- package/dist/components/snk-attach2.js +67 -26
- package/dist/components/snk-configurator2.js +2 -0
- package/dist/components/snk-crud.js +229 -175
- package/dist/components/snk-data-exporter2.js +56 -9
- package/dist/components/snk-detail-view2.js +174 -267
- package/dist/components/snk-dynaform-config-header.d.ts +11 -0
- package/dist/components/snk-dynaform-config-header.js +6 -0
- package/dist/components/snk-dynaform-config-header2.js +103 -0
- package/dist/components/snk-dynaform-configs-button.d.ts +11 -0
- package/dist/components/snk-dynaform-configs-button.js +6 -0
- package/dist/components/snk-dynaform-configs-button2.js +76 -0
- package/dist/components/snk-dynaform-detail-view.d.ts +11 -0
- package/dist/components/snk-dynaform-detail-view.js +6 -0
- package/dist/components/snk-dynaform-detail-view2.js +2213 -0
- package/dist/components/snk-dynaform-field-config.d.ts +11 -0
- package/dist/components/snk-dynaform-field-config.js +6 -0
- package/dist/components/snk-dynaform-field-config2.js +605 -0
- package/dist/components/snk-dynaform-field-item.d.ts +11 -0
- package/dist/components/snk-dynaform-field-item.js +6 -0
- package/dist/components/snk-dynaform-field-item2.js +96 -0
- package/dist/components/snk-dynaform-fields-layout.d.ts +11 -0
- package/dist/components/snk-dynaform-fields-layout.js +6 -0
- package/dist/components/snk-dynaform-fields-layout2.js +428 -0
- package/dist/components/snk-dynaform-fields-selector.d.ts +11 -0
- package/dist/components/snk-dynaform-fields-selector.js +6 -0
- package/dist/components/snk-dynaform-fields-selector2.js +104 -0
- package/dist/components/snk-dynaform-form-config.d.ts +11 -0
- package/dist/components/snk-dynaform-form-config.js +6 -0
- package/dist/components/snk-dynaform-form-config2.js +430 -0
- package/dist/components/snk-dynaform-form-view.d.ts +11 -0
- package/dist/components/snk-dynaform-form-view.js +6 -0
- package/dist/components/snk-dynaform-form-view2.js +272 -0
- package/dist/components/snk-dynaform-guides-configurator.d.ts +11 -0
- package/dist/components/snk-dynaform-guides-configurator.js +6 -0
- package/dist/components/snk-dynaform-guides-configurator2.js +173 -0
- package/dist/components/snk-dynaform-guides-view.d.ts +11 -0
- package/dist/components/snk-dynaform-guides-view.js +6 -0
- package/dist/components/snk-dynaform.d.ts +11 -0
- package/dist/components/snk-dynaform.js +1007 -0
- package/dist/components/snk-entity-search.d.ts +11 -0
- package/dist/components/snk-entity-search.js +6 -0
- package/dist/components/snk-entity-search2.js +231 -0
- package/dist/components/snk-exporter-email-sender2.js +1 -1
- package/dist/components/snk-filter-bar2.js +98 -79
- package/dist/components/snk-filter-detail2.js +9 -3
- package/dist/components/snk-filter-item2.js +5 -5
- package/dist/components/snk-filter-modal2.js +8 -5
- package/dist/components/snk-filter-search.js +12 -1
- package/dist/components/snk-form-view2.js +0 -3
- package/dist/components/snk-grid-config2.js +92 -44
- package/dist/components/snk-grid2.js +95 -50
- package/dist/components/snk-image-input2.js +20 -6
- package/dist/components/snk-personalized-filter2.js +1 -1
- package/dist/components/snk-simple-crud2.js +29 -23
- package/dist/components/snk-taskbar-skeleton.d.ts +11 -0
- package/dist/components/snk-taskbar-skeleton.js +6 -0
- package/dist/components/snk-taskbar-skeleton2.js +29 -0
- package/dist/components/snk-taskbar2.js +253 -174
- package/dist/components/sortable.esm.js +76 -90
- package/dist/components/taskbar-actions-button2.js +21 -2
- package/dist/components/taskbar-split-button2.js +10 -1
- package/dist/components/taskbarUtils.js +229 -0
- package/dist/esm/{ConfigStorage-d15d2014.js → ConfigStorage-0d1c0695.js} +19 -2
- package/dist/esm/ContinuousInsertUtils-bce77dc1.js +39 -0
- package/dist/esm/{DataFetcher-1dd7e8c0.js → DataFetcher-70de9419.js} +2803 -3
- package/dist/esm/FormConfigHelper-efc29480.js +328 -0
- package/dist/esm/{ISave-498c4831.js → ISave-f5704813.js} +1 -1
- package/dist/esm/{ImageUtils-8fc8d905.js → ImageUtils-efbea0e4.js} +5 -3
- package/dist/esm/{PersonalizedFilterUtils-d2439a9a.js → PersonalizedFilterUtils-45b5803c.js} +49 -2
- package/dist/esm/{SnkFormConfigManager-86befa68.js → SnkFormConfigManager-e7f05f79.js} +2 -2
- package/dist/esm/{SnkMultiSelectionListDataSource-6e9496f0.js → SnkMultiSelectionListDataSource-6ac291a9.js} +141 -69
- package/dist/esm/{auth-fetcher-69cbda8d.js → auth-fetcher-e34880e5.js} +1 -1
- package/dist/esm/{dataunit-fetcher-21c43ec7.js → dataunit-fetcher-d26e4a08.js} +68 -110
- package/dist/esm/fields-layout.entry.js +1 -1
- package/dist/esm/fields-selector.entry.js +1 -1
- package/dist/esm/{filter-type.enum-f6a8fe23.js → filter-type.enum-62b7fe88.js} +8 -1
- package/dist/esm/{form-config-fetcher-fcc7b62f.js → form-config-fetcher-98c42169.js} +41 -5
- package/dist/esm/guides-configurator.entry.js +2 -2
- package/dist/esm/index-04f73a26.js +28 -40
- package/dist/esm/{index-b40568ff.js → index-c6721886.js} +6 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/pesquisa-grid_2.entry.js +5 -6
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/{snk-actions-button_8.entry.js → snk-actions-button_9.entry.js} +152 -65
- package/dist/esm/snk-application.entry.js +7 -8
- package/dist/esm/snk-attach_11.entry.js +2944 -0
- package/dist/esm/snk-configurator.entry.js +2 -0
- package/dist/esm/snk-crud.entry.js +140 -99
- package/dist/esm/snk-data-exporter.entry.js +61 -16
- package/dist/esm/{snk-data-unit-3b06a0f3.js → snk-data-unit-ff57ac90.js} +2 -2
- package/dist/esm/snk-data-unit.entry.js +3 -4
- package/dist/esm/snk-detail-view.entry.js +26 -18
- package/dist/esm/snk-dynaform-config-header_5.entry.js +731 -0
- package/dist/esm/snk-dynaform-detail-view_2.entry.js +956 -0
- package/dist/esm/snk-dynaform-field-config_2.entry.js +322 -0
- package/dist/esm/snk-dynaform-guides-view-0dfbefc1.js +1091 -0
- package/dist/esm/snk-dynaform-guides-view.entry.js +15 -0
- package/dist/esm/snk-dynaform.entry.js +675 -0
- package/dist/esm/snk-entity-search.entry.js +207 -0
- package/dist/esm/snk-exporter-email-sender.entry.js +1 -1
- package/dist/esm/{snk-expression-group_2.entry.js → snk-expression-group_4.entry.js} +405 -4
- package/dist/esm/snk-filter-bar_4.entry.js +112 -96
- package/dist/esm/snk-filter-search.entry.js +10 -0
- package/dist/esm/snk-form-view.entry.js +1 -4
- package/dist/esm/snk-form_2.entry.js +4 -5
- package/dist/esm/snk-grid.entry.js +50 -18
- package/dist/esm/{snk-guides-viewer-a4e31f63.js → snk-guides-viewer-31a0a23d.js} +39 -162
- package/dist/esm/snk-guides-viewer.entry.js +8 -17
- package/dist/esm/snk-layout-form-config.entry.js +5 -6
- package/dist/esm/snk-pesquisa.entry.js +5 -6
- package/dist/esm/snk-taskbar.entry.js +183 -126
- package/dist/esm/{sortable.esm-842f85a3.js → sortable.esm-bc277c12.js} +76 -90
- package/dist/esm/taskbar-elements-ba9d6889.js +149 -0
- package/dist/esm/taskbarUtils-cb9db0d9.js +230 -0
- package/dist/sankhyablocks/{p-32ad76cc.js → p-097d75b3.js} +2 -2
- package/dist/sankhyablocks/p-0dbd53d9.js +1 -0
- package/dist/sankhyablocks/p-12579574.entry.js +1 -0
- package/dist/sankhyablocks/p-1d31aec3.entry.js +1 -0
- package/dist/sankhyablocks/{p-2cc2526e.entry.js → p-1d7d5814.entry.js} +1 -1
- package/dist/sankhyablocks/p-24b059ee.entry.js +1 -0
- package/dist/sankhyablocks/p-250b273e.entry.js +1 -0
- package/dist/sankhyablocks/p-26f1919e.entry.js +1 -0
- package/dist/sankhyablocks/p-2a83f20e.entry.js +1 -0
- package/dist/sankhyablocks/p-2c4f7fdd.entry.js +1 -0
- package/dist/sankhyablocks/p-2ec98523.js +1 -0
- package/dist/sankhyablocks/p-449dfe55.entry.js +1 -0
- package/dist/sankhyablocks/p-46d7e2de.js +1 -0
- package/dist/sankhyablocks/p-4dd574d6.js +1 -0
- package/dist/sankhyablocks/p-541c72ec.entry.js +1 -0
- package/dist/sankhyablocks/p-58709cf9.js +1 -0
- package/dist/sankhyablocks/p-5aeae67f.js +1 -0
- package/dist/sankhyablocks/p-5d50f59a.entry.js +1 -0
- package/dist/sankhyablocks/p-5ef0e9a8.entry.js +1 -0
- package/dist/sankhyablocks/p-6d3bcabf.entry.js +1 -0
- package/dist/sankhyablocks/p-6f60df43.js +1 -0
- package/dist/sankhyablocks/p-846d8f79.entry.js +1 -0
- package/dist/sankhyablocks/{p-e30acdca.entry.js → p-855ccf64.entry.js} +1 -1
- package/dist/sankhyablocks/p-885262ce.entry.js +1 -0
- package/dist/sankhyablocks/p-8d1ef77a.js +60 -0
- package/dist/sankhyablocks/{p-9114e869.js → p-8d81c8d3.js} +2 -2
- package/dist/sankhyablocks/p-8f5dd87d.entry.js +1 -0
- package/dist/sankhyablocks/p-90037547.js +1 -0
- package/dist/sankhyablocks/{p-7150eacf.entry.js → p-9742ea0e.entry.js} +1 -1
- package/dist/sankhyablocks/p-9e02a785.js +1 -0
- package/dist/sankhyablocks/{p-6564180d.entry.js → p-9e7dc97d.entry.js} +1 -1
- package/dist/sankhyablocks/p-a25ab2ff.entry.js +1 -0
- package/dist/sankhyablocks/p-a696bbcd.entry.js +1 -0
- package/dist/sankhyablocks/{p-88b0797e.entry.js → p-a9012341.entry.js} +2 -2
- package/dist/sankhyablocks/p-abcb646d.js +1 -0
- package/dist/sankhyablocks/{p-4ff3b494.js → p-af673291.js} +1 -1
- package/dist/sankhyablocks/p-bd2a845c.js +1 -0
- package/dist/sankhyablocks/p-c4b34e2b.entry.js +1 -0
- package/dist/sankhyablocks/{p-7e9f8fa4.js → p-c9440c8a.js} +1 -1
- package/dist/sankhyablocks/p-ca3728c0.entry.js +1 -0
- package/dist/sankhyablocks/p-cbb8e351.js +7 -0
- package/dist/sankhyablocks/p-cd153f71.entry.js +1 -0
- package/dist/sankhyablocks/p-ce8ccd72.entry.js +1 -0
- package/dist/sankhyablocks/p-ddb160eb.entry.js +1 -0
- package/dist/sankhyablocks/p-e5a3711f.js +1 -0
- package/dist/sankhyablocks/{p-2b882835.entry.js → p-e737fd5a.entry.js} +1 -1
- package/dist/sankhyablocks/{p-362e6e8c.js → p-eac48627.js} +1 -1
- package/dist/sankhyablocks/p-ec7c87bb.js +28 -0
- package/dist/sankhyablocks/p-fb6e3c65.entry.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-actions-button/snk-actions-button.d.ts +4 -0
- package/dist/types/components/snk-attach/snk-attach.d.ts +22 -4
- package/dist/types/components/snk-crud/snk-crud.d.ts +28 -10
- package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +3 -2
- package/dist/types/components/snk-crud/subcomponents/snk-entity-search.d.ts +62 -0
- package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +4 -18
- package/dist/types/components/snk-crud/utils/taskbarUtils.d.ts +13 -0
- package/dist/types/components/snk-data-exporter/interfaces/IExporterProvider.d.ts +8 -0
- package/dist/types/components/snk-data-exporter/snk-data-exporter.d.ts +4 -0
- package/dist/types/components/snk-data-exporter/structure/ItemBuilder.d.ts +16 -0
- package/dist/types/components/snk-dynaform/interfaces/PropsCustomEditor.d.ts +4 -0
- package/dist/types/components/snk-dynaform/interfaces/PropsCustomRender.d.ts +4 -0
- package/dist/types/components/snk-dynaform/subcomponents/CardFormResizeObserver.d.ts +1 -0
- package/dist/types/components/snk-dynaform/subcomponents/GuideBuilder.d.ts +14 -0
- package/dist/types/components/snk-dynaform/subcomponents/snk-dynaform-detail-view/snk-dynaform-detail-view.d.ts +169 -0
- package/dist/types/components/snk-dynaform/subcomponents/snk-dynaform-form-view/snk-dynaform-form-view.d.ts +108 -0
- package/dist/types/components/snk-dynaform-form-config/FormConfigHelper.d.ts +36 -0
- package/dist/types/components/snk-dynaform-form-config/SnkFormConfigManager.d.ts +35 -0
- package/dist/types/components/snk-dynaform-form-config/snk-dynaform-config-header/snk-dynaform-config-header.d.ts +23 -0
- package/dist/types/components/snk-dynaform-form-config/snk-dynaform-config-header/snk-dynaform-configs-button/snk-dynaform-configs-button.d.ts +19 -0
- package/dist/types/components/snk-dynaform-form-config/snk-dynaform-field-item/snk-dynaform-field-config/snk-dynaform-field-config.d.ts +56 -0
- package/dist/types/components/snk-dynaform-form-config/snk-dynaform-fields-layout/snk-dynaform-fields-layout.d.ts +74 -0
- package/dist/types/components/snk-dynaform-form-config/snk-dynaform-fields-selector/snk-dynaform-fields-selector.d.ts +21 -0
- package/dist/types/components/snk-dynaform-form-config/snk-dynaform-form-config.d.ts +95 -0
- package/dist/types/components/snk-dynaform-form-config/snk-dynaform-guides-configurator/snk-dynaform-guides-configurator.d.ts +35 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-search.d.ts +1 -0
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-detail.d.ts +1 -1
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +5 -1
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +33 -16
- package/dist/types/components/snk-grid/snk-grid.d.ts +29 -1
- package/dist/types/components/snk-grid-config/snk-grid-config.d.ts +7 -0
- package/dist/types/components/snk-image-input/snk-image-input.d.ts +1 -0
- package/dist/types/components/snk-image-input/utils/ImageUtils.d.ts +1 -1
- package/dist/types/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.d.ts +6 -0
- package/dist/types/components/snk-taskbar/elements/taskbar-elements.d.ts +29 -2
- package/dist/types/components/snk-taskbar/elements/taskbar-split-button/taskbar-split-button.d.ts +5 -0
- package/dist/types/components/snk-taskbar/processor/simple-taskbar-processor.d.ts +31 -0
- package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +32 -21
- package/dist/types/components/snk-taskbar/subcomponents/snk-taskbar-skeleton.d.ts +3 -0
- package/dist/types/components.d.ts +2503 -1188
- package/dist/types/lib/@types/index.d.ts +6 -0
- package/dist/types/lib/configs/ConfigStorage.d.ts +1 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.d.ts +1 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/helpers/DataUnitDataLoaderHelper.d.ts +3 -1
- package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterParams.d.ts +2 -0
- package/dist/types/lib/http/data-fetcher/fetchers/form-config-fetcher.d.ts +1 -0
- package/dist/types/lib/http/data-fetcher/fetchers/grid-config-fetcher.d.ts +1 -0
- package/dist/types/lib/http/data-fetcher/fetchers/resource-fetcher.d.ts +1 -0
- package/package.json +11 -8
- package/react/components.d.ts +14 -0
- package/react/components.js +14 -0
- package/react/components.js.map +1 -1
- package/dist/cjs/SnkMessageBuilder-d9558dba.js +0 -2809
- package/dist/cjs/default-filters-a09bf82b.js +0 -8
- package/dist/cjs/index-62760a9c.js +0 -49
- package/dist/cjs/index-8d94b7e0.js +0 -7
- package/dist/cjs/snk-attach.cjs.entry.js +0 -911
- package/dist/cjs/snk-default-filter.cjs.entry.js +0 -77
- package/dist/cjs/snk-filter-advanced-mode_2.cjs.entry.js +0 -61
- package/dist/cjs/snk-filter-detail.cjs.entry.js +0 -198
- package/dist/cjs/snk-filter-field-search_2.cjs.entry.js +0 -408
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +0 -109
- package/dist/cjs/snk-image-input.cjs.entry.js +0 -148
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +0 -358
- package/dist/cjs/snk-simple-bar.cjs.entry.js +0 -45
- package/dist/cjs/snk-simple-crud.cjs.entry.js +0 -865
- package/dist/cjs/taskbar-elements-a94d4318.js +0 -133
- package/dist/cjs/taskbar-processor-2fba34a8.js +0 -53
- package/dist/esm/SnkMessageBuilder-c0bc4424.js +0 -2807
- package/dist/esm/default-filters-50105e43.js +0 -8
- package/dist/esm/index-620ac460.js +0 -7
- package/dist/esm/index-8acbae97.js +0 -49
- package/dist/esm/snk-attach.entry.js +0 -907
- package/dist/esm/snk-default-filter.entry.js +0 -73
- package/dist/esm/snk-filter-advanced-mode_2.entry.js +0 -56
- package/dist/esm/snk-filter-detail.entry.js +0 -194
- package/dist/esm/snk-filter-field-search_2.entry.js +0 -403
- package/dist/esm/snk-filter-modal-item.entry.js +0 -105
- package/dist/esm/snk-image-input.entry.js +0 -144
- package/dist/esm/snk-personalized-filter.entry.js +0 -354
- package/dist/esm/snk-simple-bar.entry.js +0 -41
- package/dist/esm/snk-simple-crud.entry.js +0 -861
- package/dist/esm/taskbar-elements-97541bdd.js +0 -130
- package/dist/esm/taskbar-processor-3436124c.js +0 -51
- package/dist/sankhyablocks/p-07619e85.entry.js +0 -1
- package/dist/sankhyablocks/p-0d15b109.entry.js +0 -1
- package/dist/sankhyablocks/p-0f3698af.js +0 -1
- package/dist/sankhyablocks/p-10cad767.entry.js +0 -1
- package/dist/sankhyablocks/p-17653b22.entry.js +0 -1
- package/dist/sankhyablocks/p-1a0caadb.js +0 -1
- package/dist/sankhyablocks/p-25540da8.js +0 -1
- package/dist/sankhyablocks/p-27d6590e.js +0 -1
- package/dist/sankhyablocks/p-27e0cd68.entry.js +0 -1
- package/dist/sankhyablocks/p-2a356340.entry.js +0 -1
- package/dist/sankhyablocks/p-438a225f.entry.js +0 -1
- package/dist/sankhyablocks/p-45a830d9.js +0 -1
- package/dist/sankhyablocks/p-48c580b9.entry.js +0 -1
- package/dist/sankhyablocks/p-4a8d0917.entry.js +0 -1
- package/dist/sankhyablocks/p-4cdfa0e4.entry.js +0 -1
- package/dist/sankhyablocks/p-4fe8380b.entry.js +0 -1
- package/dist/sankhyablocks/p-51833248.js +0 -7
- package/dist/sankhyablocks/p-68c1a093.js +0 -1
- package/dist/sankhyablocks/p-6a4b21dd.js +0 -1
- package/dist/sankhyablocks/p-72d62f22.js +0 -1
- package/dist/sankhyablocks/p-73b455e1.entry.js +0 -1
- package/dist/sankhyablocks/p-84345e7a.js +0 -1
- package/dist/sankhyablocks/p-8bb4e86b.entry.js +0 -1
- package/dist/sankhyablocks/p-9c1ff75e.entry.js +0 -1
- package/dist/sankhyablocks/p-a9839628.js +0 -26
- package/dist/sankhyablocks/p-b25777fa.entry.js +0 -1
- package/dist/sankhyablocks/p-b568c1d4.js +0 -1
- package/dist/sankhyablocks/p-b9970342.js +0 -60
- package/dist/sankhyablocks/p-bdf0077f.js +0 -1
- package/dist/sankhyablocks/p-c8043a53.entry.js +0 -1
- package/dist/sankhyablocks/p-c860552e.entry.js +0 -1
- package/dist/sankhyablocks/p-cc64239c.entry.js +0 -1
- package/dist/sankhyablocks/p-cd00a3d1.entry.js +0 -1
- package/dist/sankhyablocks/p-e0a6818c.js +0 -1
- package/dist/sankhyablocks/p-e0e3914e.entry.js +0 -1
- package/dist/sankhyablocks/p-ebce5394.entry.js +0 -1
- package/dist/sankhyablocks/p-ef9343c3.entry.js +0 -1
- package/dist/sankhyablocks/p-f1110b78.entry.js +0 -1
- package/dist/sankhyablocks/p-f1bf7248.entry.js +0 -1
- package/dist/sankhyablocks/p-f1d541e9.entry.js +0 -1
- package/dist/sankhyablocks/p-f2472d12.entry.js +0 -1
- package/dist/sankhyablocks/p-f4184ce7.js +0 -1
|
@@ -91,6 +91,7 @@ const SnkConfigurator = class {
|
|
|
91
91
|
if (!this.disableNumberingConfig) {
|
|
92
92
|
const result = await ((_a = this._snkNumberingConfig) === null || _a === void 0 ? void 0 : _a.save());
|
|
93
93
|
if (!result) {
|
|
94
|
+
this.closeConfig();
|
|
94
95
|
return;
|
|
95
96
|
}
|
|
96
97
|
}
|
|
@@ -98,6 +99,7 @@ const SnkConfigurator = class {
|
|
|
98
99
|
this._snkLayoutFormConfig.save();
|
|
99
100
|
}
|
|
100
101
|
this.save.emit();
|
|
102
|
+
this.closeConfig();
|
|
101
103
|
}
|
|
102
104
|
componentWillLoad() {
|
|
103
105
|
this._application = core.ApplicationContext.getContextValue('__SNK__APPLICATION__');
|
|
@@ -4,26 +4,29 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1894343a.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
require('./DataFetcher-
|
|
8
|
-
require('./ISave-
|
|
9
|
-
const index$1 = require('./index-
|
|
7
|
+
require('./DataFetcher-d13b4637.js');
|
|
8
|
+
require('./ISave-55d9dcc3.js');
|
|
9
|
+
const index$1 = require('./index-bc950921.js');
|
|
10
10
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
11
11
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
12
|
-
require('./dataunit-fetcher-
|
|
12
|
+
require('./dataunit-fetcher-fae710c5.js');
|
|
13
13
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
14
|
-
require('./form-config-fetcher-
|
|
14
|
+
require('./form-config-fetcher-bbebdcb8.js');
|
|
15
15
|
const constants = require('./constants-6d82e405.js');
|
|
16
|
-
const authFetcher = require('./auth-fetcher-
|
|
16
|
+
const authFetcher = require('./auth-fetcher-d1715459.js');
|
|
17
17
|
const ServicesNumberingConfig = require('./ServicesNumberingConfig-69038a0f.js');
|
|
18
|
-
const taskbarElements = require('./taskbar-elements-
|
|
18
|
+
const taskbarElements = require('./taskbar-elements-25f800b3.js');
|
|
19
|
+
const taskbarUtils = require('./taskbarUtils-99aaa01f.js');
|
|
20
|
+
const filterValidate = require('./filter-validate-cb4ed41a.js');
|
|
21
|
+
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
22
|
+
const ContinuousInsertUtils = require('./ContinuousInsertUtils-1ae0c6ac.js');
|
|
19
23
|
require('./PrintUtils-bcaeb82f.js');
|
|
20
|
-
require('./SnkMessageBuilder-d9558dba.js');
|
|
21
24
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
22
25
|
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
|
23
26
|
require('./ResourceIDUtils-5ff86aa7.js');
|
|
24
27
|
require('./index-f0fe7e6e.js');
|
|
25
28
|
|
|
26
|
-
const snkCrudCss = ".sc-snk-crud-h{display:flex;flex-direction:column;height:100%;width:100%}";
|
|
29
|
+
const snkCrudCss = ".sc-snk-crud-h{display:flex;flex-direction:column;height:100%;width:100%;overflow-y:auto;scrollbar-gutter:stable both-edges}snk-grid.sc-snk-crud{--snk-grid-padding:0 var(--space--6, 6px) var(--space--6, 6px) var(--space--6, 6px)}stack-item.sc-snk-crud.sc-snk-crud{display:grid;min-height:100%}.snk-crud__grid-stack-item.sc-snk-crud{display:flex;flex-direction:column;height:100%;width:100%;padding:0 var(--space--2, 2px)}.snk-crud__header-top.sc-snk-crud{display:flex;justify-content:space-between;align-items:center;padding:var(--space--8, 8px);padding-top:var(--space--12, 12px)}.snk-crud__header-bottom.sc-snk-crud{display:flex;justify-content:space-between;align-items:center;padding:0 var(--space--8, 8px) 0 var(--space--6, 6px)}.snk-crud__header-bottom.sc-snk-crud>snk-taskbar.sc-snk-crud{padding-bottom:var(--space--8, 8px);margin-left:var(--space--12, 12px)}.snk-crud--hidden.sc-snk-crud{display:none !important}.snk-crud__filter-bar--hidden.sc-snk-crud{display:none !important}snk-filter-bar.sc-snk-crud{padding-inline:var(--space--4, 4px)}ez-record-navigation.sc-snk-crud,ez-grid-pagination.sc-snk-crud{margin-bottom:var(--space--8, 8px)}";
|
|
27
30
|
|
|
28
31
|
const SnkCrud = class {
|
|
29
32
|
constructor(hostRef) {
|
|
@@ -38,44 +41,18 @@ const SnkCrud = class {
|
|
|
38
41
|
this._viewHistory = [];
|
|
39
42
|
this._customEditors = new Map();
|
|
40
43
|
this._customRenders = new Map();
|
|
41
|
-
this.
|
|
42
|
-
|
|
43
|
-
const value = (_a = argument === null || argument === void 0 ? void 0 : argument.argument) !== null && _a !== void 0 ? _a : '';
|
|
44
|
-
const mode = (argument === null || argument === void 0 ? void 0 : argument.mode) || "PREDICTIVE";
|
|
45
|
-
if (!value || value.trim().length === 0) {
|
|
46
|
-
return [];
|
|
47
|
-
}
|
|
48
|
-
try {
|
|
49
|
-
this._showMoreOnSearch = false;
|
|
50
|
-
const entityName = this._snkDataUnit.entityName;
|
|
51
|
-
if (mode === "PREDICTIVE") {
|
|
52
|
-
return await this.handlePredictiveSearch(value, entityName);
|
|
53
|
-
}
|
|
54
|
-
return await this._application.executePreparedSearch(mode, value, this.buildSearchOptions(entityName));
|
|
55
|
-
}
|
|
56
|
-
catch (error) {
|
|
57
|
-
console.error('Erro ao carregar sugestões de entidades:', error);
|
|
58
|
-
return [];
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
this.searchEntitySelect = async (item) => {
|
|
62
|
-
if (!this._entityPKField || !item) {
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
try {
|
|
66
|
-
const pk = [{ name: this._entityPKField, value: item.value }];
|
|
67
|
-
await this.refreshDataUnitByPk(pk);
|
|
68
|
-
}
|
|
69
|
-
catch (error) {
|
|
70
|
-
console.error('Erro ao selecionar entidade:', error);
|
|
71
|
-
}
|
|
72
|
-
};
|
|
44
|
+
this._taskbarProcessor = new taskbarUtils.SimpleTaskbarProcessor(taskbarUtils.DEFAULT_TASKBAR_BUTTONS);
|
|
45
|
+
this._taskbarCustomProcessor = new taskbarUtils.SimpleTaskbarProcessor([]);
|
|
73
46
|
this.dataUnitInterceptor = {
|
|
74
|
-
interceptAction: (action) => {
|
|
75
|
-
|
|
76
|
-
|
|
47
|
+
interceptAction: async (action) => {
|
|
48
|
+
switch (action.type) {
|
|
49
|
+
case core.Action.DATA_SAVED:
|
|
50
|
+
return this.interceptDataSaved(action);
|
|
51
|
+
case core.Action.LOADING_DATA:
|
|
52
|
+
return await this.interceptLoadData(action);
|
|
53
|
+
default:
|
|
54
|
+
return action;
|
|
77
55
|
}
|
|
78
|
-
return action;
|
|
79
56
|
},
|
|
80
57
|
};
|
|
81
58
|
this._dataUnit = undefined;
|
|
@@ -86,8 +63,9 @@ const SnkCrud = class {
|
|
|
86
63
|
this._resourceID = undefined;
|
|
87
64
|
this.customContainerId = `SNK-CRUD-CUSTOM-CONTAINER-${core.StringUtils.generateUUID()}`;
|
|
88
65
|
this.numberingConfig = undefined;
|
|
89
|
-
this.
|
|
90
|
-
this.
|
|
66
|
+
this._filterMode = 'regular';
|
|
67
|
+
this._enableContinuousInsert = false;
|
|
68
|
+
this._headerVisible = true;
|
|
91
69
|
this.enableLockManagerLoadingComp = false;
|
|
92
70
|
this.enableLockManagerTaskbarClick = false;
|
|
93
71
|
this.configName = undefined;
|
|
@@ -120,6 +98,9 @@ const SnkCrud = class {
|
|
|
120
98
|
this.showEntitySearch = true;
|
|
121
99
|
this.disableNumberingConfig = false;
|
|
122
100
|
}
|
|
101
|
+
handleActionClick(evt) {
|
|
102
|
+
this.executeAction(evt.detail);
|
|
103
|
+
}
|
|
123
104
|
/**
|
|
124
105
|
* Usado para alternar a visão entre GRID e FORM externamente.
|
|
125
106
|
*/
|
|
@@ -217,6 +198,7 @@ const SnkCrud = class {
|
|
|
217
198
|
this.setViewMode(constants.VIEW_MODE.FORM);
|
|
218
199
|
}
|
|
219
200
|
async executeAction(act) {
|
|
201
|
+
var _a;
|
|
220
202
|
switch (act) {
|
|
221
203
|
case taskbarElements.TaskbarElement.GRID_MODE:
|
|
222
204
|
return this.setViewMode(constants.VIEW_MODE.GRID);
|
|
@@ -229,13 +211,13 @@ const SnkCrud = class {
|
|
|
229
211
|
case taskbarElements.TaskbarElement.CONFIGURATOR:
|
|
230
212
|
return this._snkConfigurator.open();
|
|
231
213
|
case taskbarElements.TaskbarElement.ATTACH:
|
|
232
|
-
return this.
|
|
214
|
+
return this._snkAttach.open();
|
|
215
|
+
case taskbarUtils.CustomTaskbarButton.FILTER:
|
|
216
|
+
return (_a = this._snkFilterBar) === null || _a === void 0 ? void 0 : _a.showFilterModal();
|
|
217
|
+
case taskbarUtils.CustomTaskbarButton.ENTITY_SEARCH:
|
|
218
|
+
return this.openSearchPopover();
|
|
233
219
|
}
|
|
234
220
|
}
|
|
235
|
-
backView() {
|
|
236
|
-
const lastView = this._viewHistory.at(-2) || constants.VIEW_MODE.GRID;
|
|
237
|
-
this.setViewMode(lastView);
|
|
238
|
-
}
|
|
239
221
|
setViewMode(viewMode) {
|
|
240
222
|
this._viewStack.show(viewMode);
|
|
241
223
|
this._currentViewMode = viewMode;
|
|
@@ -297,6 +279,16 @@ const SnkCrud = class {
|
|
|
297
279
|
this._customEditors.delete(fieldName);
|
|
298
280
|
}
|
|
299
281
|
}
|
|
282
|
+
initializeTaskbarProcessor() {
|
|
283
|
+
const nativeTaskbarManager = taskbarUtils.buildNativeTaskbarManager(this._currentViewMode, this.taskbarManager, this.messagesBuilder);
|
|
284
|
+
const topTaskbarId = taskbarUtils.getTopTaskBarId(this._dataState, this.presentationMode);
|
|
285
|
+
this._taskbarProcessor.process(topTaskbarId, nativeTaskbarManager, this._dataState, undefined, []);
|
|
286
|
+
const headerTaskbarId = taskbarUtils.getHeaderTaskbarId(this._dataState, this.presentationMode);
|
|
287
|
+
this._taskbarCustomProcessor.process(headerTaskbarId, this.taskbarManager, this._dataState, undefined, []);
|
|
288
|
+
}
|
|
289
|
+
componentWillRender() {
|
|
290
|
+
this.initializeTaskbarProcessor();
|
|
291
|
+
}
|
|
300
292
|
componentDidRender() {
|
|
301
293
|
this.setCustomRenders();
|
|
302
294
|
this.setCustomEditors();
|
|
@@ -332,6 +324,7 @@ const SnkCrud = class {
|
|
|
332
324
|
if (!this.configName) {
|
|
333
325
|
this.configName = this._application.configName;
|
|
334
326
|
}
|
|
327
|
+
this.initContinuousInsertUtils();
|
|
335
328
|
}
|
|
336
329
|
componentDidLoad() {
|
|
337
330
|
this.initKeyboardManager();
|
|
@@ -413,49 +406,6 @@ const SnkCrud = class {
|
|
|
413
406
|
var _a;
|
|
414
407
|
(_a = this._keyboardManager) === null || _a === void 0 ? void 0 : _a.unbindAllShortcutKeys();
|
|
415
408
|
}
|
|
416
|
-
async handlePredictiveSearch(argument, entityName) {
|
|
417
|
-
var _a, _b;
|
|
418
|
-
const response = await this._application.executePreparedSearchWithFullResponse(argument, this.buildSearchOptions(entityName, 5));
|
|
419
|
-
this._showMoreOnSearch = (_a = response === null || response === void 0 ? void 0 : response.hasMore) !== null && _a !== void 0 ? _a : false;
|
|
420
|
-
this._entityPKField = response === null || response === void 0 ? void 0 : response.pkField;
|
|
421
|
-
return (_b = response === null || response === void 0 ? void 0 : response.data) !== null && _b !== void 0 ? _b : [];
|
|
422
|
-
}
|
|
423
|
-
async refreshDataUnitByPk(pks) {
|
|
424
|
-
try {
|
|
425
|
-
const pkField = pks[0].name;
|
|
426
|
-
const pkValue = pks[0].value;
|
|
427
|
-
// Criar filtro para a busca específica
|
|
428
|
-
const quickFilter = {
|
|
429
|
-
term: '',
|
|
430
|
-
filter: {
|
|
431
|
-
name: '',
|
|
432
|
-
params: [],
|
|
433
|
-
expression: `(${pkField} = ${pkValue})`
|
|
434
|
-
}
|
|
435
|
-
};
|
|
436
|
-
// Carregar dados com o filtro aplicado diretamente
|
|
437
|
-
await this._dataUnit.loadData(quickFilter);
|
|
438
|
-
// Navegar para o formulário se houver apenas um registro
|
|
439
|
-
if (this._dataUnit.records.length === 1) {
|
|
440
|
-
this._dataUnit.selectFirst();
|
|
441
|
-
this.gridToForm(true);
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
catch (error) {
|
|
445
|
-
console.error('Erro ao atualizar dataset:', error);
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
buildSearchOptions(entityName, limit) {
|
|
449
|
-
return {
|
|
450
|
-
entity: entityName,
|
|
451
|
-
entityDescription: entityName,
|
|
452
|
-
executeOnOpen: true,
|
|
453
|
-
searchOptions: {
|
|
454
|
-
localEntityName: entityName,
|
|
455
|
-
limit,
|
|
456
|
-
}
|
|
457
|
-
};
|
|
458
|
-
}
|
|
459
409
|
async toggleView() {
|
|
460
410
|
const currentView = await this._viewStack.getSelectedIndex();
|
|
461
411
|
this.setViewMode(constants.VIEW_MODE.GRID === currentView ? constants.VIEW_MODE.FORM : constants.VIEW_MODE.GRID);
|
|
@@ -499,6 +449,17 @@ const SnkCrud = class {
|
|
|
499
449
|
this.updateNumberingConfigAfterInsert(action);
|
|
500
450
|
return action;
|
|
501
451
|
}
|
|
452
|
+
async interceptLoadData(action) {
|
|
453
|
+
var _a;
|
|
454
|
+
const hasInvalidFilters = !filterValidate.validateFilters((_a = this._snkFilterBar) === null || _a === void 0 ? void 0 : _a.filterConfig);
|
|
455
|
+
if (hasInvalidFilters) {
|
|
456
|
+
const errorTitle = this.messagesBuilder.getMessage("snkGrid.requiredFiltersNotFilled.title", {});
|
|
457
|
+
const errorMessage = this.messagesBuilder.getMessage("snkGrid.requiredFiltersNotFilled.message", {});
|
|
458
|
+
await this._application.error(errorTitle, errorMessage);
|
|
459
|
+
return;
|
|
460
|
+
}
|
|
461
|
+
return action;
|
|
462
|
+
}
|
|
502
463
|
onDataUnitReady() {
|
|
503
464
|
var _a;
|
|
504
465
|
(_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.addInterceptor(this.dataUnitInterceptor);
|
|
@@ -518,6 +479,12 @@ const SnkCrud = class {
|
|
|
518
479
|
}
|
|
519
480
|
this.onDataUnitReady();
|
|
520
481
|
}
|
|
482
|
+
initContinuousInsertUtils() {
|
|
483
|
+
this._continuousInsertUtils = new ContinuousInsertUtils.ContinuousInsertUtils(this._application, this._resourceID, this.configName);
|
|
484
|
+
if (this.enableGridInsert) {
|
|
485
|
+
this._continuousInsertUtils.getConfig().then(value => this._enableContinuousInsert = value);
|
|
486
|
+
}
|
|
487
|
+
}
|
|
521
488
|
async loadNumberingConfig() {
|
|
522
489
|
if (this.numberingConfig || !this._snkDataUnit || !this._snkDataUnit.entityName || this.disableNumberingConfig) {
|
|
523
490
|
return;
|
|
@@ -567,18 +534,92 @@ const SnkCrud = class {
|
|
|
567
534
|
return;
|
|
568
535
|
return this.customGuidesConfig.map(g => index.h("slot", { name: g.id }));
|
|
569
536
|
}
|
|
570
|
-
|
|
537
|
+
getColumnSearch(item) {
|
|
538
|
+
if (this._columnSearch != undefined) {
|
|
539
|
+
return this._columnSearch;
|
|
540
|
+
}
|
|
541
|
+
this._columnSearch = utils.buildFieldSearch(item, ({ argument }) => new Promise(accept => {
|
|
542
|
+
this._snkGrid.filterColumns(argument).then((columns) => {
|
|
543
|
+
accept(columns
|
|
544
|
+
.filter(column => !column.hidden)
|
|
545
|
+
.map(column => ({ label: column.label, value: column.name })));
|
|
546
|
+
});
|
|
547
|
+
}), (option) => {
|
|
548
|
+
if (option != undefined) {
|
|
549
|
+
this._snkGrid.locateColumn(option.value);
|
|
550
|
+
}
|
|
551
|
+
});
|
|
552
|
+
return this._columnSearch;
|
|
553
|
+
}
|
|
554
|
+
buildTaskbarCustomActionsList() {
|
|
555
|
+
return [this.buildSearchColumnTaskbarAction()];
|
|
556
|
+
}
|
|
557
|
+
buildSearchColumnTaskbarAction() {
|
|
558
|
+
return {
|
|
559
|
+
value: core.StringUtils.generateUUID(),
|
|
560
|
+
label: this.messagesBuilder.getMessage('snkGrid.findColumn', {}),
|
|
561
|
+
disableCloseOnSelect: true,
|
|
562
|
+
eagerInitialize: true,
|
|
563
|
+
itemBuilder: (_, item) => this.getColumnSearch(item),
|
|
564
|
+
};
|
|
565
|
+
}
|
|
566
|
+
isGridInsertActive() {
|
|
567
|
+
return this.enableGridInsert && this._dataUnit.hasNewRecord();
|
|
568
|
+
}
|
|
569
|
+
getActionsList() {
|
|
570
|
+
const hardList = [];
|
|
571
|
+
if (this.enableGridInsert) {
|
|
572
|
+
hardList.push(this._continuousInsertUtils.actionContinuousInsert(this._enableContinuousInsert, () => {
|
|
573
|
+
this._enableContinuousInsert = !this._enableContinuousInsert;
|
|
574
|
+
this._continuousInsertUtils.handleSaveConfig(this._enableContinuousInsert);
|
|
575
|
+
}));
|
|
576
|
+
}
|
|
577
|
+
if (this.isGridInsertActive())
|
|
578
|
+
return hardList;
|
|
579
|
+
if (this.taskbarManager != undefined && this.taskbarManager.getMoreOptions != undefined) {
|
|
580
|
+
const taskbarID = taskbarUtils.getTopTaskBarId(this._dataState, this.presentationMode);
|
|
581
|
+
return hardList.concat(this.taskbarManager.getMoreOptions(taskbarID, this.configName, this._dataState, this.actionsList));
|
|
582
|
+
}
|
|
583
|
+
return hardList.concat(this.actionsList);
|
|
584
|
+
}
|
|
585
|
+
async openSearchPopover() {
|
|
586
|
+
if (!this._popoverSearchEntity) {
|
|
587
|
+
return;
|
|
588
|
+
}
|
|
589
|
+
const buttonElement = this._element.querySelector(`[data-taskbar-element="${taskbarUtils.CustomTaskbarButton.ENTITY_SEARCH}"]`);
|
|
590
|
+
await this._popoverSearchEntity.showUnder(buttonElement);
|
|
591
|
+
}
|
|
592
|
+
handleLoadedSearch(evt) {
|
|
593
|
+
if (evt.detail.length === 1) {
|
|
594
|
+
this._dataUnit.selectFirst();
|
|
595
|
+
this.gridToForm(true);
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
renderDynamicSearch() {
|
|
571
599
|
var _a;
|
|
572
|
-
if (!this.showEntitySearch
|
|
600
|
+
if (!this.showEntitySearch)
|
|
601
|
+
return;
|
|
602
|
+
return (index.h("snk-entity-search", { ref: (ref) => this._popoverSearchEntity = ref, dataUnit: this._dataUnit, entityName: (_a = this._snkDataUnit) === null || _a === void 0 ? void 0 : _a.entityName, messagesBuilder: this.messagesBuilder, onLoaded: (evt) => this.handleLoadedSearch(evt) }));
|
|
603
|
+
}
|
|
604
|
+
handleFilterConfigUpdated(filterConfig) {
|
|
605
|
+
if (!filterConfig.length) {
|
|
573
606
|
return;
|
|
574
|
-
|
|
607
|
+
}
|
|
608
|
+
if (filterConfig.length === 1 && filterConfig[0].id === 'PERSONALIZED_FILTER_GROUP') {
|
|
609
|
+
this._filterMode = filterConfig[0].groupedItems.length > 0 ? 'regular' : 'button';
|
|
610
|
+
return;
|
|
611
|
+
}
|
|
575
612
|
}
|
|
576
613
|
render() {
|
|
577
614
|
if (this._resourceID == undefined) {
|
|
578
615
|
return;
|
|
579
616
|
}
|
|
580
617
|
this._snkDataUnit.ignoreSaveMessage = (this._currentViewMode === constants.VIEW_MODE.GRID && !this.enableGridInsert);
|
|
581
|
-
return (index.h(index.Host, null, index.h("
|
|
618
|
+
return (index.h(index.Host, null, index.h("header", { class: { 'snk-crud--hidden': !this._headerVisible, 'snk-crud__header': true } }, index.h("div", { class: "snk-crud__header-top" }, index.h("snk-taskbar", { "data-element-id": "grid_top", key: "snkGridTopTaskbar", configName: this.configName, dataUnit: this._dataUnit, messagesBuilder: this.messagesBuilder, buttons: this._taskbarProcessor.buttons, disabledButtons: this._taskbarProcessor.disabledButtons, customButtons: this._taskbarProcessor.customButtons, resourceID: this._resourceID, primaryButton: "INSERT", overflowStrategy: "hiddenItems", alignRigth: true, actionsList: this.getActionsList(), customActionsList: this.buildTaskbarCustomActionsList(), sizeButtons: 'medium' })), index.h("snk-filter-bar", { ref: (ref) => this._snkFilterBar = ref, title: this.filterBarTitle, dataUnit: this._dataUnit, "data-element-id": "gridFilter", class: {
|
|
619
|
+
'snk-grid__filter-bar': true,
|
|
620
|
+
'ez-align--top': true,
|
|
621
|
+
'snk-crud__filter-bar--hidden': this._currentViewMode !== constants.VIEW_MODE.GRID
|
|
622
|
+
}, configName: this.configName, messagesBuilder: this.messagesBuilder, resourceID: this._resourceID, onConfigUpdated: evt => this.handleFilterConfigUpdated(evt.detail), disablePersonalizedFilter: this.disablePersonalizedFilter, filterBarLegacyConfigName: this.filterBarLegacyConfigName, autoLoad: this.autoLoad, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, mode: this._filterMode, hideFilterButton: true, sizeChips: 'default' })), index.h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "crud" }, index.h("stack-item", { class: 'snk-crud__grid-stack-item' }, index.h("snk-grid", { ref: (ref) => this._snkGrid = ref, class: 'ez-flex ez-flex--column ez-size-height--full ez-size-width--full', filterBarTitle: this.filterBarTitle, "data-element-id": "crud_grid", configName: this.configName, onGridDoubleClick: () => this.gridToForm(true), taskbarManager: this.taskbarManager, onActionClick: evt => this.executeAction(evt.detail), messagesBuilder: this.messagesBuilder, actionsList: this.actionsList, statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, presentationMode: this.presentationMode, recordsValidator: this.recordsValidator, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, canEdit: this._canEdit, resourceID: this._resourceID, disablePersonalizedFilter: this.disablePersonalizedFilter, gridLegacyConfigName: this.gridLegacyConfigName, filterBarLegacyConfigName: this.filterBarLegacyConfigName, autoLoad: this.autoLoad, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, strategyExporter: this.strategyExporter, multipleEditionEnabled: this.multipleEditionEnabled, paginationCounterMode: this.paginationCounterMode, hideHeader: true, hideGridTaskbar: true }, index.h("slot", { name: "GRID_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "GRID_HEADER_CUSTOM_ELEMENTS" }), index.h("slot", { name: "SnkGridHeader" }), index.h("slot", { name: "SnkGridFooter" }), index.h("slot", { name: "SnkGridTaskBar" }))), index.h("stack-item", null, index.h("snk-guides-viewer", { ref: ref => this._guidesViewer = ref, customGuidesConfig: this.customGuidesConfig, entityPath: this._snkDataUnit.entityName, messagesBuilder: this.messagesBuilder, onExit: () => this.setViewMode(constants.VIEW_MODE.GRID), dataState: this._dataState, dataUnit: this._dataUnit, actionsList: this.actionsList, taskbarManager: this.taskbarManager, configName: this.configName, onActionClick: evt => this.executeAction(evt.detail), presentationMode: this.presentationMode, "data-element-id": "crud_form", canEdit: this._canEdit, recordsValidator: this.recordsValidator, resourceID: this._resourceID, detailTaskbarCustomContainerId: this.customContainerId, formLegacyConfigName: this.formLegacyConfigName, enableGridInsert: this.enableGridInsert, getCustomTitle: this.setCustomFormTitle, ignoreReadOnlyFormFields: this.ignoreReadOnlyFormFields, onFormConfigVisibilityChanged: evt => this._headerVisible = !evt.detail }, index.h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }), this.renderCustomGuideSlots(), index.h("slot", { name: "SnkFormTaskBar" })))), index.h("snk-attach", { ref: (ref) => this._snkAttach = ref, registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this._snkDataUnit.entityName }), index.h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, entityName: this._snkDataUnit.entityName, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.setViewMode(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showActionButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this._resourceID, customContainerId: this.customContainerId, layoutFormConfig: this.layoutFormConfig }), this.renderDynamicSearch(), index.h("div", { id: `${this.customContainerId}` }, index.h("slot", { name: "SnkConfigContainerSlot" }), index.h("slot", { name: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS" }), index.h("slot", { name: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }))));
|
|
582
623
|
}
|
|
583
624
|
get _element() { return index.getElement(this); }
|
|
584
625
|
static get watchers() { return {
|
|
@@ -6,18 +6,17 @@ const index$1 = require('./index-1894343a.js');
|
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
8
8
|
const IFetchDataExporterParams = require('./IFetchDataExporterParams-e78ec415.js');
|
|
9
|
-
const index = require('./index-
|
|
9
|
+
const index = require('./index-bc950921.js');
|
|
10
10
|
const constants = require('./constants-6d82e405.js');
|
|
11
|
-
const DataFetcher = require('./DataFetcher-
|
|
12
|
-
const snkDataUnit = require('./snk-data-unit-
|
|
13
|
-
require('./ISave-
|
|
11
|
+
const DataFetcher = require('./DataFetcher-d13b4637.js');
|
|
12
|
+
const snkDataUnit = require('./snk-data-unit-32237a2d.js');
|
|
13
|
+
require('./ISave-55d9dcc3.js');
|
|
14
14
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
15
15
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
16
|
-
require('./dataunit-fetcher-
|
|
16
|
+
require('./dataunit-fetcher-fae710c5.js');
|
|
17
17
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
18
|
-
require('./form-config-fetcher-
|
|
18
|
+
require('./form-config-fetcher-bbebdcb8.js');
|
|
19
19
|
require('./PrintUtils-bcaeb82f.js');
|
|
20
|
-
require('./SnkMessageBuilder-d9558dba.js');
|
|
21
20
|
require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
|
|
22
21
|
require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
|
|
23
22
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
@@ -43,6 +42,9 @@ class ItemBuilder {
|
|
|
43
42
|
if (option === index.DataExporterOption.EXPORT_TO_XLS) {
|
|
44
43
|
items.push(this.getExportToXLS(groupName));
|
|
45
44
|
}
|
|
45
|
+
if (option === index.DataExporterOption.EXPORT_TO_XLSX) {
|
|
46
|
+
items.push(this.getExportToXLSX(groupName));
|
|
47
|
+
}
|
|
46
48
|
this.setExportCurrentPage(option, items);
|
|
47
49
|
if (this._selectedNumber > 0) {
|
|
48
50
|
this.setExportAllRecords(option, items);
|
|
@@ -56,7 +58,7 @@ class ItemBuilder {
|
|
|
56
58
|
*/
|
|
57
59
|
setExportCurrentPage(option, items) {
|
|
58
60
|
var _a;
|
|
59
|
-
const pageOptions = [index.DataExporterOption.EXPORT_PAGE_TO_PDF, index.DataExporterOption.EXPORT_PAGE_TO_XLS];
|
|
61
|
+
const pageOptions = [index.DataExporterOption.EXPORT_PAGE_TO_PDF, index.DataExporterOption.EXPORT_PAGE_TO_XLS, index.DataExporterOption.EXPORT_PAGE_TO_XLSX];
|
|
60
62
|
if (option === index.DataExporterOption.EXPORT_CURRENT_PAGE) {
|
|
61
63
|
items.push(this.getCurrentPage());
|
|
62
64
|
}
|
|
@@ -75,6 +77,9 @@ class ItemBuilder {
|
|
|
75
77
|
if (option === index.DataExporterOption.EXPORT_PAGE_TO_XLS) {
|
|
76
78
|
item.children.push(this.getExportPageToXLS());
|
|
77
79
|
}
|
|
80
|
+
if (option === index.DataExporterOption.EXPORT_PAGE_TO_XLSX) {
|
|
81
|
+
item.children.push(this.getExportPageToXLSX());
|
|
82
|
+
}
|
|
78
83
|
}
|
|
79
84
|
}
|
|
80
85
|
/**
|
|
@@ -84,7 +89,7 @@ class ItemBuilder {
|
|
|
84
89
|
*/
|
|
85
90
|
setExportAllRecords(option, items) {
|
|
86
91
|
var _a;
|
|
87
|
-
const pageOptions = [index.DataExporterOption.EXPORT_ALL_RECORDS_TO_PDF, index.DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS];
|
|
92
|
+
const pageOptions = [index.DataExporterOption.EXPORT_ALL_RECORDS_TO_PDF, index.DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS, index.DataExporterOption.EXPORT_ALL_RECORDS_TO_XLSX];
|
|
88
93
|
if (option === index.DataExporterOption.EXPORT_ALL_RECORDS) {
|
|
89
94
|
items.push(this.getAllRecords());
|
|
90
95
|
}
|
|
@@ -103,6 +108,9 @@ class ItemBuilder {
|
|
|
103
108
|
if (option === index.DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS) {
|
|
104
109
|
item.children.push(this.getExportAllRecordsToXLS());
|
|
105
110
|
}
|
|
111
|
+
if (option === index.DataExporterOption.EXPORT_ALL_RECORDS_TO_XLSX) {
|
|
112
|
+
item.children.push(this.getExportAllRecordsToXLSX());
|
|
113
|
+
}
|
|
106
114
|
}
|
|
107
115
|
}
|
|
108
116
|
/**
|
|
@@ -139,6 +147,18 @@ class ItemBuilder {
|
|
|
139
147
|
group: groupName
|
|
140
148
|
};
|
|
141
149
|
}
|
|
150
|
+
/**
|
|
151
|
+
* Método responsável por capturar o objeto com os dados de exportação em XLSX.
|
|
152
|
+
* @param groupName - Nome do grupo da opção que será inserida na lista.
|
|
153
|
+
* @returns Retorna o objeto com os dados de exportação em XLSX.
|
|
154
|
+
*/
|
|
155
|
+
getExportToXLSX(groupName) {
|
|
156
|
+
return {
|
|
157
|
+
id: index.DataExporterOption.EXPORT_TO_XLSX,
|
|
158
|
+
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xlsx)`,
|
|
159
|
+
group: groupName
|
|
160
|
+
};
|
|
161
|
+
}
|
|
142
162
|
/**
|
|
143
163
|
* Método responsável por capturar o objeto com os dados de exportação personalizada.
|
|
144
164
|
* @returns Retorna o objeto com os dados de exportação personalizada.
|
|
@@ -181,6 +201,16 @@ class ItemBuilder {
|
|
|
181
201
|
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xls)`
|
|
182
202
|
};
|
|
183
203
|
}
|
|
204
|
+
/**
|
|
205
|
+
* Método responsável por capturar o objeto com os dados de exportação da página atual em XLSX.
|
|
206
|
+
* @returns Retorna o objeto com os dados de exportação da página atual em XLSX.
|
|
207
|
+
*/
|
|
208
|
+
getExportPageToXLSX() {
|
|
209
|
+
return {
|
|
210
|
+
id: index.DataExporterOption.EXPORT_PAGE_TO_XLSX,
|
|
211
|
+
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xlsx)`
|
|
212
|
+
};
|
|
213
|
+
}
|
|
184
214
|
/**
|
|
185
215
|
* Método responsável por capturar o objeto com todos os dados de exportação em PDF.
|
|
186
216
|
* @returns Retorna o objeto com todos os dados de exportação em PDF.
|
|
@@ -198,6 +228,16 @@ class ItemBuilder {
|
|
|
198
228
|
getExportAllRecordsToXLS() {
|
|
199
229
|
return {
|
|
200
230
|
id: index.DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS,
|
|
231
|
+
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xls)`
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Método responsável por capturar o objeto com todos os dados de exportação em XLSX.
|
|
236
|
+
* @returns Retorna o objeto com todos os dados de exportação em XLSX.
|
|
237
|
+
*/
|
|
238
|
+
getExportAllRecordsToXLSX() {
|
|
239
|
+
return {
|
|
240
|
+
id: index.DataExporterOption.EXPORT_ALL_RECORDS_TO_XLSX,
|
|
201
241
|
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xlsx)`
|
|
202
242
|
};
|
|
203
243
|
}
|
|
@@ -361,7 +401,7 @@ class ClientSideExporterStrategy {
|
|
|
361
401
|
return visibleColumns;
|
|
362
402
|
}
|
|
363
403
|
async executeExport(resolveProps) {
|
|
364
|
-
var _a;
|
|
404
|
+
var _a, _b;
|
|
365
405
|
const { methodName, gridTitle } = resolveProps;
|
|
366
406
|
const records = await this._provider.getRecords(resolveProps.type);
|
|
367
407
|
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();
|
|
@@ -373,7 +413,7 @@ class ClientSideExporterStrategy {
|
|
|
373
413
|
gridTitle,
|
|
374
414
|
columns: this.buildColumnsObject(columns),
|
|
375
415
|
rows: this.buildRowsObject(columns, records),
|
|
376
|
-
customOptions: { xlsxExtension: false }
|
|
416
|
+
customOptions: { xlsxExtension: (_b = resolveProps === null || resolveProps === void 0 ? void 0 : resolveProps.xlsxExtension) !== null && _b !== void 0 ? _b : false }
|
|
377
417
|
}
|
|
378
418
|
}
|
|
379
419
|
};
|
|
@@ -454,18 +494,22 @@ const SnkDataExporter = class {
|
|
|
454
494
|
this._releasedToExport = [
|
|
455
495
|
index.DataExporterOption.EXPORT_TO_PDF,
|
|
456
496
|
index.DataExporterOption.EXPORT_TO_XLS,
|
|
497
|
+
index.DataExporterOption.EXPORT_TO_XLSX,
|
|
457
498
|
index.DataExporterOption.EXPORT_BY_EMAIL,
|
|
458
499
|
index.DataExporterOption.EXPORT_PDF_TO_EMAIL,
|
|
459
500
|
index.DataExporterOption.EXPORT_XLS_TO_EMAIL,
|
|
460
501
|
index.DataExporterOption.EXPORT_PAGE_TO_PDF,
|
|
461
502
|
index.DataExporterOption.EXPORT_PAGE_TO_XLS,
|
|
503
|
+
index.DataExporterOption.EXPORT_PAGE_TO_XLSX,
|
|
462
504
|
index.DataExporterOption.EXPORT_ALL_RECORDS_TO_PDF,
|
|
463
505
|
index.DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS,
|
|
506
|
+
index.DataExporterOption.EXPORT_ALL_RECORDS_TO_XLSX,
|
|
464
507
|
];
|
|
465
508
|
this._items = [];
|
|
466
509
|
this._showDropdown = false;
|
|
467
510
|
this.provider = null;
|
|
468
511
|
this.messagesBuilder = undefined;
|
|
512
|
+
this.size = 'medium';
|
|
469
513
|
}
|
|
470
514
|
async exportByEmail() {
|
|
471
515
|
const selectedRows = this._selectedNumber;
|
|
@@ -554,16 +598,16 @@ const SnkDataExporter = class {
|
|
|
554
598
|
});
|
|
555
599
|
}
|
|
556
600
|
getExportType(option) {
|
|
557
|
-
if (option === index.DataExporterOption.EXPORT_ALL_RECORDS_TO_PDF || option === index.DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS) {
|
|
601
|
+
if (option === index.DataExporterOption.EXPORT_ALL_RECORDS_TO_PDF || option === index.DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS || option === index.DataExporterOption.EXPORT_ALL_RECORDS_TO_XLSX) {
|
|
558
602
|
return IFetchDataExporterParams.IExportType.ALL;
|
|
559
603
|
}
|
|
560
|
-
if (option === index.DataExporterOption.EXPORT_PAGE_TO_PDF || option === index.DataExporterOption.EXPORT_PAGE_TO_XLS) {
|
|
604
|
+
if (option === index.DataExporterOption.EXPORT_PAGE_TO_PDF || option === index.DataExporterOption.EXPORT_PAGE_TO_XLS || option === index.DataExporterOption.EXPORT_PAGE_TO_XLSX) {
|
|
561
605
|
return IFetchDataExporterParams.IExportType.PAGE;
|
|
562
606
|
}
|
|
563
607
|
return IFetchDataExporterParams.IExportType.SELECTION;
|
|
564
608
|
}
|
|
565
609
|
async dispatchExporter(option) {
|
|
566
|
-
var _a, _b, _c;
|
|
610
|
+
var _a, _b, _c, _d;
|
|
567
611
|
const optionKey = this.getOptionKey(option);
|
|
568
612
|
const fileType = (_a = index.DataExporterType[optionKey]) !== null && _a !== void 0 ? _a : index.DataExporterType.EXPORT_TO_PDF;
|
|
569
613
|
const params = {
|
|
@@ -573,6 +617,7 @@ const SnkDataExporter = class {
|
|
|
573
617
|
exportOption: option,
|
|
574
618
|
limit: (_c = (_b = this.provider) === null || _b === void 0 ? void 0 : _b.getExportLimit) === null || _c === void 0 ? void 0 : _c.call(_b),
|
|
575
619
|
type: this.getExportType(option),
|
|
620
|
+
xlsxExtension: (_d = optionKey === null || optionKey === void 0 ? void 0 : optionKey.includes("XLSX")) !== null && _d !== void 0 ? _d : false,
|
|
576
621
|
};
|
|
577
622
|
await this.resolveExporter(params, (response) => {
|
|
578
623
|
if (response.canExport || fileType === index.DataExporterType.EXPORT_TO_PDF) {
|
|
@@ -586,7 +631,7 @@ const SnkDataExporter = class {
|
|
|
586
631
|
async processExporter(evt) {
|
|
587
632
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
588
633
|
const item = evt === null || evt === void 0 ? void 0 : evt.detail;
|
|
589
|
-
const exportCurrentPageOptions = [index.DataExporterOption.EXPORT_PAGE_TO_PDF, index.DataExporterOption.EXPORT_PAGE_TO_XLS];
|
|
634
|
+
const exportCurrentPageOptions = [index.DataExporterOption.EXPORT_PAGE_TO_PDF, index.DataExporterOption.EXPORT_PAGE_TO_XLS, index.DataExporterOption.EXPORT_PAGE_TO_XLSX];
|
|
590
635
|
const isCustomReport = (_a = item === null || item === void 0 ? void 0 : item.id) === null || _a === void 0 ? void 0 : _a.includes(this._customPrefix);
|
|
591
636
|
if ((item === null || item === void 0 ? void 0 : item.id) === index.DataExporterOption.EXPORT_CURRENT_PAGE)
|
|
592
637
|
return;
|
|
@@ -751,7 +796,7 @@ const SnkDataExporter = class {
|
|
|
751
796
|
render() {
|
|
752
797
|
return (index$1.h(index$1.Host, null, index$1.h("div", { class: `snk-data-exporter
|
|
753
798
|
${this.canShowDropdown() ? " ez-elevation--16" : ""}
|
|
754
|
-
` }, index$1.h("ez-button", Object.assign({ ref: (ref) => this._ezButton = ref, iconName: "file-download",
|
|
799
|
+
` }, index$1.h("ez-tooltip", { message: this.getMessage("snkDataExporter.group.export.title") }, index$1.h("ez-button", Object.assign({ ref: (ref) => this._ezButton = ref, iconName: "file-download", mode: "icon", onClick: () => this.controlDropdown(), size: this.size }, this.getElementID("button")))), index$1.h("div", Object.assign({ ref: (ref) => this._dropdownParent = ref, class: `snk-data-exporter__dropdown
|
|
755
800
|
${this.canShowDropdown() ? "snk-data-exporter__dropdown--show" : ""}
|
|
756
801
|
` }, this.getElementID("dropdown")), this.canShowDropdown() &&
|
|
757
802
|
index$1.h("ez-dropdown", Object.assign({ items: this._items, onEzClick: (evt) => this.processExporter(evt) }, this.getElementID("dropdown"))))), this.canShowDropdown() &&
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
const index = require('./index-1894343a.js');
|
|
4
4
|
const core = require('@sankhyalabs/core');
|
|
5
5
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
6
|
-
const
|
|
7
|
-
const dataunitFetcher = require('./dataunit-fetcher-
|
|
6
|
+
const DataFetcher = require('./DataFetcher-d13b4637.js');
|
|
7
|
+
const dataunitFetcher = require('./dataunit-fetcher-fae710c5.js');
|
|
8
8
|
const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
|
|
9
9
|
const GetSelectedRecordsIDsInfo = require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
|
|
10
10
|
|
|
@@ -700,7 +700,7 @@ const SnkDataUnit = class {
|
|
|
700
700
|
this.dataState = await this.buildDataState();
|
|
701
701
|
let saveOperation = changes[0]._operation.toLowerCase();
|
|
702
702
|
if (saveOperation == 'copy') {
|
|
703
|
-
saveOperation =
|
|
703
|
+
saveOperation = DataFetcher.OperationMap.CLONE;
|
|
704
704
|
}
|
|
705
705
|
if (this.canIgnoreOperationMessage(saveOperation))
|
|
706
706
|
return;
|
|
@@ -713,7 +713,7 @@ const SnkDataUnit = class {
|
|
|
713
713
|
return this.ignoreSaveMessage && !this.isCloneOrInsertOperation(saveOperation);
|
|
714
714
|
}
|
|
715
715
|
isCloneOrInsertOperation(saveOperation) {
|
|
716
|
-
return [
|
|
716
|
+
return [DataFetcher.OperationMap.CLONE, DataFetcher.OperationMap.INSERT].includes(saveOperation);
|
|
717
717
|
}
|
|
718
718
|
buildOperationMessage(saveOperation, records) {
|
|
719
719
|
if (this.isMultiplesUpdate(saveOperation, records)) {
|
|
@@ -728,10 +728,10 @@ const SnkDataUnit = class {
|
|
|
728
728
|
* de um registro se trata de uma chave composta.
|
|
729
729
|
*/
|
|
730
730
|
const key = `snkDataUnit.${isCancel ? 'cancelInfo' : 'saveInfo'}`;
|
|
731
|
-
return this.getMessage(key, { records: records },
|
|
731
|
+
return this.getMessage(key, { records: records }, DataFetcher.OperationMap.UPDATE_MULTIPLES);
|
|
732
732
|
}
|
|
733
733
|
isMultiplesUpdate(saveOperation, records) {
|
|
734
|
-
return saveOperation ===
|
|
734
|
+
return saveOperation === DataFetcher.OperationMap.UPDATE && records.length > 1;
|
|
735
735
|
}
|
|
736
736
|
handleRecordsRemoved(action) {
|
|
737
737
|
var _a, _b;
|
|
@@ -776,15 +776,15 @@ const SnkDataUnit = class {
|
|
|
776
776
|
}
|
|
777
777
|
getMessageOperation() {
|
|
778
778
|
if (this.dataState.copyMode) {
|
|
779
|
-
return
|
|
779
|
+
return DataFetcher.OperationMap.CLONE;
|
|
780
780
|
}
|
|
781
781
|
if (this.dataState.insertionMode || this.dataState.isStartingInsertionMode) {
|
|
782
|
-
return
|
|
782
|
+
return DataFetcher.OperationMap.INSERT;
|
|
783
783
|
}
|
|
784
784
|
if (this.dataState.isDirty) {
|
|
785
|
-
return
|
|
785
|
+
return DataFetcher.OperationMap.UPDATE;
|
|
786
786
|
}
|
|
787
|
-
return
|
|
787
|
+
return DataFetcher.OperationMap.CLEAN;
|
|
788
788
|
}
|
|
789
789
|
async getDataUnitParentOrChild() {
|
|
790
790
|
var _a;
|
|
@@ -887,7 +887,7 @@ const SnkDataUnit = class {
|
|
|
887
887
|
if (this.messagesBuilder) {
|
|
888
888
|
return;
|
|
889
889
|
}
|
|
890
|
-
this.messagesBuilder = new
|
|
890
|
+
this.messagesBuilder = new DataFetcher.SnkMessageBuilder((_a = this.domainMessagesBuilder) !== null && _a !== void 0 ? _a : this.entityName);
|
|
891
891
|
}
|
|
892
892
|
//---------------------------------------------
|
|
893
893
|
// Lifecycle web component
|