@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
|
@@ -87,6 +87,7 @@ const SnkConfigurator = class {
|
|
|
87
87
|
if (!this.disableNumberingConfig) {
|
|
88
88
|
const result = await ((_a = this._snkNumberingConfig) === null || _a === void 0 ? void 0 : _a.save());
|
|
89
89
|
if (!result) {
|
|
90
|
+
this.closeConfig();
|
|
90
91
|
return;
|
|
91
92
|
}
|
|
92
93
|
}
|
|
@@ -94,6 +95,7 @@ const SnkConfigurator = class {
|
|
|
94
95
|
this._snkLayoutFormConfig.save();
|
|
95
96
|
}
|
|
96
97
|
this.save.emit();
|
|
98
|
+
this.closeConfig();
|
|
97
99
|
}
|
|
98
100
|
componentWillLoad() {
|
|
99
101
|
this._application = ApplicationContext.getContextValue('__SNK__APPLICATION__');
|
|
@@ -1,25 +1,28 @@
|
|
|
1
1
|
import { r as registerInstance, e as createEvent, h, f as Host, g as getElement } from './index-04f73a26.js';
|
|
2
2
|
import { Action, StringUtils, ElementIDUtils, ApplicationContext, KeyboardManager } from '@sankhyalabs/core';
|
|
3
|
-
import './DataFetcher-
|
|
4
|
-
import './ISave-
|
|
5
|
-
import { P as PresentationMode, E as ExporterStrategy } from './index-
|
|
3
|
+
import './DataFetcher-70de9419.js';
|
|
4
|
+
import './ISave-f5704813.js';
|
|
5
|
+
import { P as PresentationMode, E as ExporterStrategy } from './index-c6721886.js';
|
|
6
6
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
7
7
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
8
|
-
import './dataunit-fetcher-
|
|
8
|
+
import './dataunit-fetcher-d26e4a08.js';
|
|
9
9
|
import './filter-item-type.enum-d45e026f.js';
|
|
10
|
-
import './form-config-fetcher-
|
|
10
|
+
import './form-config-fetcher-98c42169.js';
|
|
11
11
|
import { V as VIEW_MODE } from './constants-7b422de0.js';
|
|
12
|
-
import { A as AutorizationType } from './auth-fetcher-
|
|
12
|
+
import { A as AutorizationType } from './auth-fetcher-e34880e5.js';
|
|
13
13
|
import { S as ServicesNumberingConfig } from './ServicesNumberingConfig-2f7b050e.js';
|
|
14
|
-
import { T as TaskbarElement } from './taskbar-elements-
|
|
14
|
+
import { T as TaskbarElement } from './taskbar-elements-ba9d6889.js';
|
|
15
|
+
import { S as SimpleTaskbarProcessor, D as DEFAULT_TASKBAR_BUTTONS, C as CustomTaskbarButton, b as buildNativeTaskbarManager, g as getTopTaskBarId, a as getHeaderTaskbarId } from './taskbarUtils-cb9db0d9.js';
|
|
16
|
+
import { v as validateFilters } from './filter-validate-faf51fa9.js';
|
|
17
|
+
import { buildFieldSearch } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
18
|
+
import { C as ContinuousInsertUtils } from './ContinuousInsertUtils-bce77dc1.js';
|
|
15
19
|
import './PrintUtils-3e4ff0f5.js';
|
|
16
|
-
import './SnkMessageBuilder-c0bc4424.js';
|
|
17
20
|
import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
|
|
18
21
|
import '@sankhyalabs/core/dist/utils/SortingUtils';
|
|
19
22
|
import './ResourceIDUtils-a114189a.js';
|
|
20
23
|
import './index-ea250be6.js';
|
|
21
24
|
|
|
22
|
-
const snkCrudCss = ".sc-snk-crud-h{display:flex;flex-direction:column;height:100%;width:100%}";
|
|
25
|
+
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)}";
|
|
23
26
|
|
|
24
27
|
const SnkCrud = class {
|
|
25
28
|
constructor(hostRef) {
|
|
@@ -34,44 +37,18 @@ const SnkCrud = class {
|
|
|
34
37
|
this._viewHistory = [];
|
|
35
38
|
this._customEditors = new Map();
|
|
36
39
|
this._customRenders = new Map();
|
|
37
|
-
this.
|
|
38
|
-
|
|
39
|
-
const value = (_a = argument === null || argument === void 0 ? void 0 : argument.argument) !== null && _a !== void 0 ? _a : '';
|
|
40
|
-
const mode = (argument === null || argument === void 0 ? void 0 : argument.mode) || "PREDICTIVE";
|
|
41
|
-
if (!value || value.trim().length === 0) {
|
|
42
|
-
return [];
|
|
43
|
-
}
|
|
44
|
-
try {
|
|
45
|
-
this._showMoreOnSearch = false;
|
|
46
|
-
const entityName = this._snkDataUnit.entityName;
|
|
47
|
-
if (mode === "PREDICTIVE") {
|
|
48
|
-
return await this.handlePredictiveSearch(value, entityName);
|
|
49
|
-
}
|
|
50
|
-
return await this._application.executePreparedSearch(mode, value, this.buildSearchOptions(entityName));
|
|
51
|
-
}
|
|
52
|
-
catch (error) {
|
|
53
|
-
console.error('Erro ao carregar sugestões de entidades:', error);
|
|
54
|
-
return [];
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
this.searchEntitySelect = async (item) => {
|
|
58
|
-
if (!this._entityPKField || !item) {
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
try {
|
|
62
|
-
const pk = [{ name: this._entityPKField, value: item.value }];
|
|
63
|
-
await this.refreshDataUnitByPk(pk);
|
|
64
|
-
}
|
|
65
|
-
catch (error) {
|
|
66
|
-
console.error('Erro ao selecionar entidade:', error);
|
|
67
|
-
}
|
|
68
|
-
};
|
|
40
|
+
this._taskbarProcessor = new SimpleTaskbarProcessor(DEFAULT_TASKBAR_BUTTONS);
|
|
41
|
+
this._taskbarCustomProcessor = new SimpleTaskbarProcessor([]);
|
|
69
42
|
this.dataUnitInterceptor = {
|
|
70
|
-
interceptAction: (action) => {
|
|
71
|
-
|
|
72
|
-
|
|
43
|
+
interceptAction: async (action) => {
|
|
44
|
+
switch (action.type) {
|
|
45
|
+
case Action.DATA_SAVED:
|
|
46
|
+
return this.interceptDataSaved(action);
|
|
47
|
+
case Action.LOADING_DATA:
|
|
48
|
+
return await this.interceptLoadData(action);
|
|
49
|
+
default:
|
|
50
|
+
return action;
|
|
73
51
|
}
|
|
74
|
-
return action;
|
|
75
52
|
},
|
|
76
53
|
};
|
|
77
54
|
this._dataUnit = undefined;
|
|
@@ -82,8 +59,9 @@ const SnkCrud = class {
|
|
|
82
59
|
this._resourceID = undefined;
|
|
83
60
|
this.customContainerId = `SNK-CRUD-CUSTOM-CONTAINER-${StringUtils.generateUUID()}`;
|
|
84
61
|
this.numberingConfig = undefined;
|
|
85
|
-
this.
|
|
86
|
-
this.
|
|
62
|
+
this._filterMode = 'regular';
|
|
63
|
+
this._enableContinuousInsert = false;
|
|
64
|
+
this._headerVisible = true;
|
|
87
65
|
this.enableLockManagerLoadingComp = false;
|
|
88
66
|
this.enableLockManagerTaskbarClick = false;
|
|
89
67
|
this.configName = undefined;
|
|
@@ -116,6 +94,9 @@ const SnkCrud = class {
|
|
|
116
94
|
this.showEntitySearch = true;
|
|
117
95
|
this.disableNumberingConfig = false;
|
|
118
96
|
}
|
|
97
|
+
handleActionClick(evt) {
|
|
98
|
+
this.executeAction(evt.detail);
|
|
99
|
+
}
|
|
119
100
|
/**
|
|
120
101
|
* Usado para alternar a visão entre GRID e FORM externamente.
|
|
121
102
|
*/
|
|
@@ -213,6 +194,7 @@ const SnkCrud = class {
|
|
|
213
194
|
this.setViewMode(VIEW_MODE.FORM);
|
|
214
195
|
}
|
|
215
196
|
async executeAction(act) {
|
|
197
|
+
var _a;
|
|
216
198
|
switch (act) {
|
|
217
199
|
case TaskbarElement.GRID_MODE:
|
|
218
200
|
return this.setViewMode(VIEW_MODE.GRID);
|
|
@@ -225,13 +207,13 @@ const SnkCrud = class {
|
|
|
225
207
|
case TaskbarElement.CONFIGURATOR:
|
|
226
208
|
return this._snkConfigurator.open();
|
|
227
209
|
case TaskbarElement.ATTACH:
|
|
228
|
-
return this.
|
|
210
|
+
return this._snkAttach.open();
|
|
211
|
+
case CustomTaskbarButton.FILTER:
|
|
212
|
+
return (_a = this._snkFilterBar) === null || _a === void 0 ? void 0 : _a.showFilterModal();
|
|
213
|
+
case CustomTaskbarButton.ENTITY_SEARCH:
|
|
214
|
+
return this.openSearchPopover();
|
|
229
215
|
}
|
|
230
216
|
}
|
|
231
|
-
backView() {
|
|
232
|
-
const lastView = this._viewHistory.at(-2) || VIEW_MODE.GRID;
|
|
233
|
-
this.setViewMode(lastView);
|
|
234
|
-
}
|
|
235
217
|
setViewMode(viewMode) {
|
|
236
218
|
this._viewStack.show(viewMode);
|
|
237
219
|
this._currentViewMode = viewMode;
|
|
@@ -293,6 +275,16 @@ const SnkCrud = class {
|
|
|
293
275
|
this._customEditors.delete(fieldName);
|
|
294
276
|
}
|
|
295
277
|
}
|
|
278
|
+
initializeTaskbarProcessor() {
|
|
279
|
+
const nativeTaskbarManager = buildNativeTaskbarManager(this._currentViewMode, this.taskbarManager, this.messagesBuilder);
|
|
280
|
+
const topTaskbarId = getTopTaskBarId(this._dataState, this.presentationMode);
|
|
281
|
+
this._taskbarProcessor.process(topTaskbarId, nativeTaskbarManager, this._dataState, undefined, []);
|
|
282
|
+
const headerTaskbarId = getHeaderTaskbarId(this._dataState, this.presentationMode);
|
|
283
|
+
this._taskbarCustomProcessor.process(headerTaskbarId, this.taskbarManager, this._dataState, undefined, []);
|
|
284
|
+
}
|
|
285
|
+
componentWillRender() {
|
|
286
|
+
this.initializeTaskbarProcessor();
|
|
287
|
+
}
|
|
296
288
|
componentDidRender() {
|
|
297
289
|
this.setCustomRenders();
|
|
298
290
|
this.setCustomEditors();
|
|
@@ -328,6 +320,7 @@ const SnkCrud = class {
|
|
|
328
320
|
if (!this.configName) {
|
|
329
321
|
this.configName = this._application.configName;
|
|
330
322
|
}
|
|
323
|
+
this.initContinuousInsertUtils();
|
|
331
324
|
}
|
|
332
325
|
componentDidLoad() {
|
|
333
326
|
this.initKeyboardManager();
|
|
@@ -409,49 +402,6 @@ const SnkCrud = class {
|
|
|
409
402
|
var _a;
|
|
410
403
|
(_a = this._keyboardManager) === null || _a === void 0 ? void 0 : _a.unbindAllShortcutKeys();
|
|
411
404
|
}
|
|
412
|
-
async handlePredictiveSearch(argument, entityName) {
|
|
413
|
-
var _a, _b;
|
|
414
|
-
const response = await this._application.executePreparedSearchWithFullResponse(argument, this.buildSearchOptions(entityName, 5));
|
|
415
|
-
this._showMoreOnSearch = (_a = response === null || response === void 0 ? void 0 : response.hasMore) !== null && _a !== void 0 ? _a : false;
|
|
416
|
-
this._entityPKField = response === null || response === void 0 ? void 0 : response.pkField;
|
|
417
|
-
return (_b = response === null || response === void 0 ? void 0 : response.data) !== null && _b !== void 0 ? _b : [];
|
|
418
|
-
}
|
|
419
|
-
async refreshDataUnitByPk(pks) {
|
|
420
|
-
try {
|
|
421
|
-
const pkField = pks[0].name;
|
|
422
|
-
const pkValue = pks[0].value;
|
|
423
|
-
// Criar filtro para a busca específica
|
|
424
|
-
const quickFilter = {
|
|
425
|
-
term: '',
|
|
426
|
-
filter: {
|
|
427
|
-
name: '',
|
|
428
|
-
params: [],
|
|
429
|
-
expression: `(${pkField} = ${pkValue})`
|
|
430
|
-
}
|
|
431
|
-
};
|
|
432
|
-
// Carregar dados com o filtro aplicado diretamente
|
|
433
|
-
await this._dataUnit.loadData(quickFilter);
|
|
434
|
-
// Navegar para o formulário se houver apenas um registro
|
|
435
|
-
if (this._dataUnit.records.length === 1) {
|
|
436
|
-
this._dataUnit.selectFirst();
|
|
437
|
-
this.gridToForm(true);
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
catch (error) {
|
|
441
|
-
console.error('Erro ao atualizar dataset:', error);
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
buildSearchOptions(entityName, limit) {
|
|
445
|
-
return {
|
|
446
|
-
entity: entityName,
|
|
447
|
-
entityDescription: entityName,
|
|
448
|
-
executeOnOpen: true,
|
|
449
|
-
searchOptions: {
|
|
450
|
-
localEntityName: entityName,
|
|
451
|
-
limit,
|
|
452
|
-
}
|
|
453
|
-
};
|
|
454
|
-
}
|
|
455
405
|
async toggleView() {
|
|
456
406
|
const currentView = await this._viewStack.getSelectedIndex();
|
|
457
407
|
this.setViewMode(VIEW_MODE.GRID === currentView ? VIEW_MODE.FORM : VIEW_MODE.GRID);
|
|
@@ -495,6 +445,17 @@ const SnkCrud = class {
|
|
|
495
445
|
this.updateNumberingConfigAfterInsert(action);
|
|
496
446
|
return action;
|
|
497
447
|
}
|
|
448
|
+
async interceptLoadData(action) {
|
|
449
|
+
var _a;
|
|
450
|
+
const hasInvalidFilters = !validateFilters((_a = this._snkFilterBar) === null || _a === void 0 ? void 0 : _a.filterConfig);
|
|
451
|
+
if (hasInvalidFilters) {
|
|
452
|
+
const errorTitle = this.messagesBuilder.getMessage("snkGrid.requiredFiltersNotFilled.title", {});
|
|
453
|
+
const errorMessage = this.messagesBuilder.getMessage("snkGrid.requiredFiltersNotFilled.message", {});
|
|
454
|
+
await this._application.error(errorTitle, errorMessage);
|
|
455
|
+
return;
|
|
456
|
+
}
|
|
457
|
+
return action;
|
|
458
|
+
}
|
|
498
459
|
onDataUnitReady() {
|
|
499
460
|
var _a;
|
|
500
461
|
(_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.addInterceptor(this.dataUnitInterceptor);
|
|
@@ -514,6 +475,12 @@ const SnkCrud = class {
|
|
|
514
475
|
}
|
|
515
476
|
this.onDataUnitReady();
|
|
516
477
|
}
|
|
478
|
+
initContinuousInsertUtils() {
|
|
479
|
+
this._continuousInsertUtils = new ContinuousInsertUtils(this._application, this._resourceID, this.configName);
|
|
480
|
+
if (this.enableGridInsert) {
|
|
481
|
+
this._continuousInsertUtils.getConfig().then(value => this._enableContinuousInsert = value);
|
|
482
|
+
}
|
|
483
|
+
}
|
|
517
484
|
async loadNumberingConfig() {
|
|
518
485
|
if (this.numberingConfig || !this._snkDataUnit || !this._snkDataUnit.entityName || this.disableNumberingConfig) {
|
|
519
486
|
return;
|
|
@@ -563,18 +530,92 @@ const SnkCrud = class {
|
|
|
563
530
|
return;
|
|
564
531
|
return this.customGuidesConfig.map(g => h("slot", { name: g.id }));
|
|
565
532
|
}
|
|
566
|
-
|
|
533
|
+
getColumnSearch(item) {
|
|
534
|
+
if (this._columnSearch != undefined) {
|
|
535
|
+
return this._columnSearch;
|
|
536
|
+
}
|
|
537
|
+
this._columnSearch = buildFieldSearch(item, ({ argument }) => new Promise(accept => {
|
|
538
|
+
this._snkGrid.filterColumns(argument).then((columns) => {
|
|
539
|
+
accept(columns
|
|
540
|
+
.filter(column => !column.hidden)
|
|
541
|
+
.map(column => ({ label: column.label, value: column.name })));
|
|
542
|
+
});
|
|
543
|
+
}), (option) => {
|
|
544
|
+
if (option != undefined) {
|
|
545
|
+
this._snkGrid.locateColumn(option.value);
|
|
546
|
+
}
|
|
547
|
+
});
|
|
548
|
+
return this._columnSearch;
|
|
549
|
+
}
|
|
550
|
+
buildTaskbarCustomActionsList() {
|
|
551
|
+
return [this.buildSearchColumnTaskbarAction()];
|
|
552
|
+
}
|
|
553
|
+
buildSearchColumnTaskbarAction() {
|
|
554
|
+
return {
|
|
555
|
+
value: StringUtils.generateUUID(),
|
|
556
|
+
label: this.messagesBuilder.getMessage('snkGrid.findColumn', {}),
|
|
557
|
+
disableCloseOnSelect: true,
|
|
558
|
+
eagerInitialize: true,
|
|
559
|
+
itemBuilder: (_, item) => this.getColumnSearch(item),
|
|
560
|
+
};
|
|
561
|
+
}
|
|
562
|
+
isGridInsertActive() {
|
|
563
|
+
return this.enableGridInsert && this._dataUnit.hasNewRecord();
|
|
564
|
+
}
|
|
565
|
+
getActionsList() {
|
|
566
|
+
const hardList = [];
|
|
567
|
+
if (this.enableGridInsert) {
|
|
568
|
+
hardList.push(this._continuousInsertUtils.actionContinuousInsert(this._enableContinuousInsert, () => {
|
|
569
|
+
this._enableContinuousInsert = !this._enableContinuousInsert;
|
|
570
|
+
this._continuousInsertUtils.handleSaveConfig(this._enableContinuousInsert);
|
|
571
|
+
}));
|
|
572
|
+
}
|
|
573
|
+
if (this.isGridInsertActive())
|
|
574
|
+
return hardList;
|
|
575
|
+
if (this.taskbarManager != undefined && this.taskbarManager.getMoreOptions != undefined) {
|
|
576
|
+
const taskbarID = getTopTaskBarId(this._dataState, this.presentationMode);
|
|
577
|
+
return hardList.concat(this.taskbarManager.getMoreOptions(taskbarID, this.configName, this._dataState, this.actionsList));
|
|
578
|
+
}
|
|
579
|
+
return hardList.concat(this.actionsList);
|
|
580
|
+
}
|
|
581
|
+
async openSearchPopover() {
|
|
582
|
+
if (!this._popoverSearchEntity) {
|
|
583
|
+
return;
|
|
584
|
+
}
|
|
585
|
+
const buttonElement = this._element.querySelector(`[data-taskbar-element="${CustomTaskbarButton.ENTITY_SEARCH}"]`);
|
|
586
|
+
await this._popoverSearchEntity.showUnder(buttonElement);
|
|
587
|
+
}
|
|
588
|
+
handleLoadedSearch(evt) {
|
|
589
|
+
if (evt.detail.length === 1) {
|
|
590
|
+
this._dataUnit.selectFirst();
|
|
591
|
+
this.gridToForm(true);
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
renderDynamicSearch() {
|
|
567
595
|
var _a;
|
|
568
|
-
if (!this.showEntitySearch
|
|
596
|
+
if (!this.showEntitySearch)
|
|
597
|
+
return;
|
|
598
|
+
return (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) }));
|
|
599
|
+
}
|
|
600
|
+
handleFilterConfigUpdated(filterConfig) {
|
|
601
|
+
if (!filterConfig.length) {
|
|
569
602
|
return;
|
|
570
|
-
|
|
603
|
+
}
|
|
604
|
+
if (filterConfig.length === 1 && filterConfig[0].id === 'PERSONALIZED_FILTER_GROUP') {
|
|
605
|
+
this._filterMode = filterConfig[0].groupedItems.length > 0 ? 'regular' : 'button';
|
|
606
|
+
return;
|
|
607
|
+
}
|
|
571
608
|
}
|
|
572
609
|
render() {
|
|
573
610
|
if (this._resourceID == undefined) {
|
|
574
611
|
return;
|
|
575
612
|
}
|
|
576
613
|
this._snkDataUnit.ignoreSaveMessage = (this._currentViewMode === VIEW_MODE.GRID && !this.enableGridInsert);
|
|
577
|
-
return (h(Host, null, h("
|
|
614
|
+
return (h(Host, null, h("header", { class: { 'snk-crud--hidden': !this._headerVisible, 'snk-crud__header': true } }, h("div", { class: "snk-crud__header-top" }, 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' })), h("snk-filter-bar", { ref: (ref) => this._snkFilterBar = ref, title: this.filterBarTitle, dataUnit: this._dataUnit, "data-element-id": "gridFilter", class: {
|
|
615
|
+
'snk-grid__filter-bar': true,
|
|
616
|
+
'ez-align--top': true,
|
|
617
|
+
'snk-crud__filter-bar--hidden': this._currentViewMode !== VIEW_MODE.GRID
|
|
618
|
+
}, 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' })), h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "crud" }, h("stack-item", { class: 'snk-crud__grid-stack-item' }, 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 }, h("slot", { name: "GRID_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "GRID_HEADER_CUSTOM_ELEMENTS" }), h("slot", { name: "SnkGridHeader" }), h("slot", { name: "SnkGridFooter" }), h("slot", { name: "SnkGridTaskBar" }))), h("stack-item", null, h("snk-guides-viewer", { ref: ref => this._guidesViewer = ref, customGuidesConfig: this.customGuidesConfig, entityPath: this._snkDataUnit.entityName, messagesBuilder: this.messagesBuilder, onExit: () => this.setViewMode(VIEW_MODE.GRID), dataState: this._dataState, dataUnit: this._dataUnit, actionsList: this.actionsList, taskbarManager: this.taskbarManager, configName: this.configName, onActionClick: evt => this.executeAction(evt.detail), presentationMode: this.presentationMode, "data-element-id": "crud_form", canEdit: this._canEdit, recordsValidator: this.recordsValidator, resourceID: this._resourceID, detailTaskbarCustomContainerId: this.customContainerId, formLegacyConfigName: this.formLegacyConfigName, enableGridInsert: this.enableGridInsert, getCustomTitle: this.setCustomFormTitle, ignoreReadOnlyFormFields: this.ignoreReadOnlyFormFields, onFormConfigVisibilityChanged: evt => this._headerVisible = !evt.detail }, h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }), this.renderCustomGuideSlots(), h("slot", { name: "SnkFormTaskBar" })))), h("snk-attach", { ref: (ref) => this._snkAttach = ref, registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this._snkDataUnit.entityName }), 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(), h("div", { id: `${this.customContainerId}` }, h("slot", { name: "SnkConfigContainerSlot" }), h("slot", { name: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS" }), h("slot", { name: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }))));
|
|
578
619
|
}
|
|
579
620
|
get _element() { return getElement(this); }
|
|
580
621
|
static get watchers() { return {
|
|
@@ -2,18 +2,17 @@ import { r as registerInstance, h, f as Host, g as getElement } from './index-04
|
|
|
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 { I as IExportType } from './IFetchDataExporterParams-d73bed3d.js';
|
|
5
|
-
import { D as DataExporterOption, a as DataExporterType, b as DataExporterFormat } from './index-
|
|
5
|
+
import { D as DataExporterOption, a as DataExporterType, b as DataExporterFormat } from './index-c6721886.js';
|
|
6
6
|
import { R as REPORT_LAUNCHER_RESOURCE_ID } from './constants-7b422de0.js';
|
|
7
|
-
import { D as DataFetcher } from './DataFetcher-
|
|
8
|
-
import { S as SnkDataUnit } from './snk-data-unit-
|
|
9
|
-
import './ISave-
|
|
7
|
+
import { D as DataFetcher } from './DataFetcher-70de9419.js';
|
|
8
|
+
import { S as SnkDataUnit } from './snk-data-unit-ff57ac90.js';
|
|
9
|
+
import './ISave-f5704813.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-d26e4a08.js';
|
|
13
13
|
import './filter-item-type.enum-d45e026f.js';
|
|
14
|
-
import './form-config-fetcher-
|
|
14
|
+
import './form-config-fetcher-98c42169.js';
|
|
15
15
|
import './PrintUtils-3e4ff0f5.js';
|
|
16
|
-
import './SnkMessageBuilder-c0bc4424.js';
|
|
17
16
|
import '@sankhyalabs/core/dist/dataunit/metadata/DataType';
|
|
18
17
|
import './GetSelectedRecordsIDsInfo-9fa41508.js';
|
|
19
18
|
import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
|
|
@@ -39,6 +38,9 @@ class ItemBuilder {
|
|
|
39
38
|
if (option === DataExporterOption.EXPORT_TO_XLS) {
|
|
40
39
|
items.push(this.getExportToXLS(groupName));
|
|
41
40
|
}
|
|
41
|
+
if (option === DataExporterOption.EXPORT_TO_XLSX) {
|
|
42
|
+
items.push(this.getExportToXLSX(groupName));
|
|
43
|
+
}
|
|
42
44
|
this.setExportCurrentPage(option, items);
|
|
43
45
|
if (this._selectedNumber > 0) {
|
|
44
46
|
this.setExportAllRecords(option, items);
|
|
@@ -52,7 +54,7 @@ class ItemBuilder {
|
|
|
52
54
|
*/
|
|
53
55
|
setExportCurrentPage(option, items) {
|
|
54
56
|
var _a;
|
|
55
|
-
const pageOptions = [DataExporterOption.EXPORT_PAGE_TO_PDF, DataExporterOption.EXPORT_PAGE_TO_XLS];
|
|
57
|
+
const pageOptions = [DataExporterOption.EXPORT_PAGE_TO_PDF, DataExporterOption.EXPORT_PAGE_TO_XLS, DataExporterOption.EXPORT_PAGE_TO_XLSX];
|
|
56
58
|
if (option === DataExporterOption.EXPORT_CURRENT_PAGE) {
|
|
57
59
|
items.push(this.getCurrentPage());
|
|
58
60
|
}
|
|
@@ -71,6 +73,9 @@ class ItemBuilder {
|
|
|
71
73
|
if (option === DataExporterOption.EXPORT_PAGE_TO_XLS) {
|
|
72
74
|
item.children.push(this.getExportPageToXLS());
|
|
73
75
|
}
|
|
76
|
+
if (option === DataExporterOption.EXPORT_PAGE_TO_XLSX) {
|
|
77
|
+
item.children.push(this.getExportPageToXLSX());
|
|
78
|
+
}
|
|
74
79
|
}
|
|
75
80
|
}
|
|
76
81
|
/**
|
|
@@ -80,7 +85,7 @@ class ItemBuilder {
|
|
|
80
85
|
*/
|
|
81
86
|
setExportAllRecords(option, items) {
|
|
82
87
|
var _a;
|
|
83
|
-
const pageOptions = [DataExporterOption.EXPORT_ALL_RECORDS_TO_PDF, DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS];
|
|
88
|
+
const pageOptions = [DataExporterOption.EXPORT_ALL_RECORDS_TO_PDF, DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS, DataExporterOption.EXPORT_ALL_RECORDS_TO_XLSX];
|
|
84
89
|
if (option === DataExporterOption.EXPORT_ALL_RECORDS) {
|
|
85
90
|
items.push(this.getAllRecords());
|
|
86
91
|
}
|
|
@@ -99,6 +104,9 @@ class ItemBuilder {
|
|
|
99
104
|
if (option === DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS) {
|
|
100
105
|
item.children.push(this.getExportAllRecordsToXLS());
|
|
101
106
|
}
|
|
107
|
+
if (option === DataExporterOption.EXPORT_ALL_RECORDS_TO_XLSX) {
|
|
108
|
+
item.children.push(this.getExportAllRecordsToXLSX());
|
|
109
|
+
}
|
|
102
110
|
}
|
|
103
111
|
}
|
|
104
112
|
/**
|
|
@@ -135,6 +143,18 @@ class ItemBuilder {
|
|
|
135
143
|
group: groupName
|
|
136
144
|
};
|
|
137
145
|
}
|
|
146
|
+
/**
|
|
147
|
+
* Método responsável por capturar o objeto com os dados de exportação em XLSX.
|
|
148
|
+
* @param groupName - Nome do grupo da opção que será inserida na lista.
|
|
149
|
+
* @returns Retorna o objeto com os dados de exportação em XLSX.
|
|
150
|
+
*/
|
|
151
|
+
getExportToXLSX(groupName) {
|
|
152
|
+
return {
|
|
153
|
+
id: DataExporterOption.EXPORT_TO_XLSX,
|
|
154
|
+
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xlsx)`,
|
|
155
|
+
group: groupName
|
|
156
|
+
};
|
|
157
|
+
}
|
|
138
158
|
/**
|
|
139
159
|
* Método responsável por capturar o objeto com os dados de exportação personalizada.
|
|
140
160
|
* @returns Retorna o objeto com os dados de exportação personalizada.
|
|
@@ -177,6 +197,16 @@ class ItemBuilder {
|
|
|
177
197
|
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xls)`
|
|
178
198
|
};
|
|
179
199
|
}
|
|
200
|
+
/**
|
|
201
|
+
* Método responsável por capturar o objeto com os dados de exportação da página atual em XLSX.
|
|
202
|
+
* @returns Retorna o objeto com os dados de exportação da página atual em XLSX.
|
|
203
|
+
*/
|
|
204
|
+
getExportPageToXLSX() {
|
|
205
|
+
return {
|
|
206
|
+
id: DataExporterOption.EXPORT_PAGE_TO_XLSX,
|
|
207
|
+
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xlsx)`
|
|
208
|
+
};
|
|
209
|
+
}
|
|
180
210
|
/**
|
|
181
211
|
* Método responsável por capturar o objeto com todos os dados de exportação em PDF.
|
|
182
212
|
* @returns Retorna o objeto com todos os dados de exportação em PDF.
|
|
@@ -194,6 +224,16 @@ class ItemBuilder {
|
|
|
194
224
|
getExportAllRecordsToXLS() {
|
|
195
225
|
return {
|
|
196
226
|
id: DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS,
|
|
227
|
+
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xls)`
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Método responsável por capturar o objeto com todos os dados de exportação em XLSX.
|
|
232
|
+
* @returns Retorna o objeto com todos os dados de exportação em XLSX.
|
|
233
|
+
*/
|
|
234
|
+
getExportAllRecordsToXLSX() {
|
|
235
|
+
return {
|
|
236
|
+
id: DataExporterOption.EXPORT_ALL_RECORDS_TO_XLSX,
|
|
197
237
|
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xlsx)`
|
|
198
238
|
};
|
|
199
239
|
}
|
|
@@ -357,7 +397,7 @@ class ClientSideExporterStrategy {
|
|
|
357
397
|
return visibleColumns;
|
|
358
398
|
}
|
|
359
399
|
async executeExport(resolveProps) {
|
|
360
|
-
var _a;
|
|
400
|
+
var _a, _b;
|
|
361
401
|
const { methodName, gridTitle } = resolveProps;
|
|
362
402
|
const records = await this._provider.getRecords(resolveProps.type);
|
|
363
403
|
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();
|
|
@@ -369,7 +409,7 @@ class ClientSideExporterStrategy {
|
|
|
369
409
|
gridTitle,
|
|
370
410
|
columns: this.buildColumnsObject(columns),
|
|
371
411
|
rows: this.buildRowsObject(columns, records),
|
|
372
|
-
customOptions: { xlsxExtension: false }
|
|
412
|
+
customOptions: { xlsxExtension: (_b = resolveProps === null || resolveProps === void 0 ? void 0 : resolveProps.xlsxExtension) !== null && _b !== void 0 ? _b : false }
|
|
373
413
|
}
|
|
374
414
|
}
|
|
375
415
|
};
|
|
@@ -450,18 +490,22 @@ const SnkDataExporter = class {
|
|
|
450
490
|
this._releasedToExport = [
|
|
451
491
|
DataExporterOption.EXPORT_TO_PDF,
|
|
452
492
|
DataExporterOption.EXPORT_TO_XLS,
|
|
493
|
+
DataExporterOption.EXPORT_TO_XLSX,
|
|
453
494
|
DataExporterOption.EXPORT_BY_EMAIL,
|
|
454
495
|
DataExporterOption.EXPORT_PDF_TO_EMAIL,
|
|
455
496
|
DataExporterOption.EXPORT_XLS_TO_EMAIL,
|
|
456
497
|
DataExporterOption.EXPORT_PAGE_TO_PDF,
|
|
457
498
|
DataExporterOption.EXPORT_PAGE_TO_XLS,
|
|
499
|
+
DataExporterOption.EXPORT_PAGE_TO_XLSX,
|
|
458
500
|
DataExporterOption.EXPORT_ALL_RECORDS_TO_PDF,
|
|
459
501
|
DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS,
|
|
502
|
+
DataExporterOption.EXPORT_ALL_RECORDS_TO_XLSX,
|
|
460
503
|
];
|
|
461
504
|
this._items = [];
|
|
462
505
|
this._showDropdown = false;
|
|
463
506
|
this.provider = null;
|
|
464
507
|
this.messagesBuilder = undefined;
|
|
508
|
+
this.size = 'medium';
|
|
465
509
|
}
|
|
466
510
|
async exportByEmail() {
|
|
467
511
|
const selectedRows = this._selectedNumber;
|
|
@@ -550,16 +594,16 @@ const SnkDataExporter = class {
|
|
|
550
594
|
});
|
|
551
595
|
}
|
|
552
596
|
getExportType(option) {
|
|
553
|
-
if (option === DataExporterOption.EXPORT_ALL_RECORDS_TO_PDF || option === DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS) {
|
|
597
|
+
if (option === DataExporterOption.EXPORT_ALL_RECORDS_TO_PDF || option === DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS || option === DataExporterOption.EXPORT_ALL_RECORDS_TO_XLSX) {
|
|
554
598
|
return IExportType.ALL;
|
|
555
599
|
}
|
|
556
|
-
if (option === DataExporterOption.EXPORT_PAGE_TO_PDF || option === DataExporterOption.EXPORT_PAGE_TO_XLS) {
|
|
600
|
+
if (option === DataExporterOption.EXPORT_PAGE_TO_PDF || option === DataExporterOption.EXPORT_PAGE_TO_XLS || option === DataExporterOption.EXPORT_PAGE_TO_XLSX) {
|
|
557
601
|
return IExportType.PAGE;
|
|
558
602
|
}
|
|
559
603
|
return IExportType.SELECTION;
|
|
560
604
|
}
|
|
561
605
|
async dispatchExporter(option) {
|
|
562
|
-
var _a, _b, _c;
|
|
606
|
+
var _a, _b, _c, _d;
|
|
563
607
|
const optionKey = this.getOptionKey(option);
|
|
564
608
|
const fileType = (_a = DataExporterType[optionKey]) !== null && _a !== void 0 ? _a : DataExporterType.EXPORT_TO_PDF;
|
|
565
609
|
const params = {
|
|
@@ -569,6 +613,7 @@ const SnkDataExporter = class {
|
|
|
569
613
|
exportOption: option,
|
|
570
614
|
limit: (_c = (_b = this.provider) === null || _b === void 0 ? void 0 : _b.getExportLimit) === null || _c === void 0 ? void 0 : _c.call(_b),
|
|
571
615
|
type: this.getExportType(option),
|
|
616
|
+
xlsxExtension: (_d = optionKey === null || optionKey === void 0 ? void 0 : optionKey.includes("XLSX")) !== null && _d !== void 0 ? _d : false,
|
|
572
617
|
};
|
|
573
618
|
await this.resolveExporter(params, (response) => {
|
|
574
619
|
if (response.canExport || fileType === DataExporterType.EXPORT_TO_PDF) {
|
|
@@ -582,7 +627,7 @@ const SnkDataExporter = class {
|
|
|
582
627
|
async processExporter(evt) {
|
|
583
628
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
584
629
|
const item = evt === null || evt === void 0 ? void 0 : evt.detail;
|
|
585
|
-
const exportCurrentPageOptions = [DataExporterOption.EXPORT_PAGE_TO_PDF, DataExporterOption.EXPORT_PAGE_TO_XLS];
|
|
630
|
+
const exportCurrentPageOptions = [DataExporterOption.EXPORT_PAGE_TO_PDF, DataExporterOption.EXPORT_PAGE_TO_XLS, DataExporterOption.EXPORT_PAGE_TO_XLSX];
|
|
586
631
|
const isCustomReport = (_a = item === null || item === void 0 ? void 0 : item.id) === null || _a === void 0 ? void 0 : _a.includes(this._customPrefix);
|
|
587
632
|
if ((item === null || item === void 0 ? void 0 : item.id) === DataExporterOption.EXPORT_CURRENT_PAGE)
|
|
588
633
|
return;
|
|
@@ -747,7 +792,7 @@ const SnkDataExporter = class {
|
|
|
747
792
|
render() {
|
|
748
793
|
return (h(Host, null, h("div", { class: `snk-data-exporter
|
|
749
794
|
${this.canShowDropdown() ? " ez-elevation--16" : ""}
|
|
750
|
-
` }, h("ez-button", Object.assign({ ref: (ref) => this._ezButton = ref, iconName: "file-download",
|
|
795
|
+
` }, h("ez-tooltip", { message: this.getMessage("snkDataExporter.group.export.title") }, h("ez-button", Object.assign({ ref: (ref) => this._ezButton = ref, iconName: "file-download", mode: "icon", onClick: () => this.controlDropdown(), size: this.size }, this.getElementID("button")))), h("div", Object.assign({ ref: (ref) => this._dropdownParent = ref, class: `snk-data-exporter__dropdown
|
|
751
796
|
${this.canShowDropdown() ? "snk-data-exporter__dropdown--show" : ""}
|
|
752
797
|
` }, this.getElementID("dropdown")), this.canShowDropdown() &&
|
|
753
798
|
h("ez-dropdown", Object.assign({ items: this._items, onEzClick: (evt) => this.processExporter(evt) }, this.getElementID("dropdown"))))), this.canShowDropdown() &&
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, e as createEvent, h, g as getElement, f as Host } from './index-04f73a26.js';
|
|
2
2
|
import { ApplicationContext, Action, ObjectUtils, DataUnitAction, StringUtils } from '@sankhyalabs/core';
|
|
3
3
|
import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
4
|
-
import { O as OperationMap, S as SnkMessageBuilder } from './
|
|
5
|
-
import { g as getRecordValue, a as DatasetStrategy } from './dataunit-fetcher-
|
|
4
|
+
import { O as OperationMap, S as SnkMessageBuilder } from './DataFetcher-70de9419.js';
|
|
5
|
+
import { g as getRecordValue, a as DatasetStrategy } from './dataunit-fetcher-d26e4a08.js';
|
|
6
6
|
import { convertType } from '@sankhyalabs/core/dist/dataunit/metadata/DataType';
|
|
7
7
|
import { g as getSelectedRecordsIDsInfo } from './GetSelectedRecordsIDsInfo-9fa41508.js';
|
|
8
8
|
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
export { S as snk_data_unit } from './snk-data-unit-
|
|
1
|
+
export { S as snk_data_unit } from './snk-data-unit-ff57ac90.js';
|
|
2
2
|
import './index-04f73a26.js';
|
|
3
3
|
import '@sankhyalabs/core';
|
|
4
4
|
import '@sankhyalabs/ezui/dist/collection/utils';
|
|
5
|
-
import './
|
|
6
|
-
import './dataunit-fetcher-21c43ec7.js';
|
|
7
|
-
import './DataFetcher-1dd7e8c0.js';
|
|
5
|
+
import './DataFetcher-70de9419.js';
|
|
8
6
|
import './PrintUtils-3e4ff0f5.js';
|
|
9
7
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
8
|
+
import './dataunit-fetcher-d26e4a08.js';
|
|
10
9
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
11
10
|
import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
|
|
12
11
|
import '@sankhyalabs/core/dist/utils/SortingUtils';
|