@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
|
@@ -6,24 +6,23 @@ const index = require('./index-1894343a.js');
|
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
|
8
8
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
9
|
-
require('./DataFetcher-
|
|
10
|
-
require('./ISave-
|
|
11
|
-
const SnkMultiSelectionListDataSource = require('./SnkMultiSelectionListDataSource-
|
|
12
|
-
const index$1 = require('./index-
|
|
9
|
+
require('./DataFetcher-d13b4637.js');
|
|
10
|
+
require('./ISave-55d9dcc3.js');
|
|
11
|
+
const SnkMultiSelectionListDataSource = require('./SnkMultiSelectionListDataSource-5c5badfc.js');
|
|
12
|
+
const index$1 = require('./index-bc950921.js');
|
|
13
13
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
14
14
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
15
|
-
require('./dataunit-fetcher-
|
|
15
|
+
require('./dataunit-fetcher-fae710c5.js');
|
|
16
16
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
17
|
-
require('./form-config-fetcher-
|
|
17
|
+
require('./form-config-fetcher-bbebdcb8.js');
|
|
18
18
|
require('./constants-6d82e405.js');
|
|
19
|
-
const ConfigStorage = require('./ConfigStorage-
|
|
19
|
+
const ConfigStorage = require('./ConfigStorage-156bfcac.js');
|
|
20
20
|
const index$2 = require('./index-f0fe7e6e.js');
|
|
21
|
+
const ContinuousInsertUtils = require('./ContinuousInsertUtils-1ae0c6ac.js');
|
|
21
22
|
const GetSelectedRecordsIDsInfo = require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
|
|
22
23
|
const filterValidate = require('./filter-validate-cb4ed41a.js');
|
|
23
|
-
const taskbarElements = require('./taskbar-elements-
|
|
24
|
-
const taskbarProcessor = require('./taskbar-processor-2fba34a8.js');
|
|
24
|
+
const taskbarElements = require('./taskbar-elements-25f800b3.js');
|
|
25
25
|
require('./PrintUtils-bcaeb82f.js');
|
|
26
|
-
require('./SnkMessageBuilder-d9558dba.js');
|
|
27
26
|
require('./IFetchDataExporterParams-e78ec415.js');
|
|
28
27
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource');
|
|
29
28
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
@@ -84,7 +83,7 @@ class ServerSideExporterProvider extends SnkMultiSelectionListDataSource.Commons
|
|
|
84
83
|
}
|
|
85
84
|
}
|
|
86
85
|
|
|
87
|
-
const snkGridCss = ".sc-snk-grid-h{--snk-grid-min-height:300px;--snk-grid-padding:var(--space--small)}.snk-grid__container.sc-snk-grid{display:flex;height:100%;
|
|
86
|
+
const snkGridCss = ".sc-snk-grid-h{--snk-grid-min-height:300px;--snk-grid-padding:unset;--snk-grid-margin:var(--space--small);--snk-grid-box-shadow:var(--shadow--small);--snk-grid__header-padding:unset}.snk-grid__container.sc-snk-grid{display:flex;height:100%;margin:var(--snk-grid-margin);outline:none;border:1px solid var(--color--strokes, #E1E2E5);border-radius:var(--border--radius-12, 12px);box-shadow:var(--snk-grid-box-shadow);padding:var(--snk-grid-padding);--snk-grid-header--min-height:var(--space--52)}.snk-grid__header.sc-snk-grid{width:100%;display:flex;flex-wrap:nowrap;justify-content:flex-end;align-items:flex-start;min-height:var(--snk-grid-header--min-height);padding-top:var(--snk-grid__header-padding);padding-right:var(--snk-grid__header-padding)}.snk-grid__filter-bar.sc-snk-grid{width:100%}.snk-grid__header-divider.sc-snk-grid{margin-bottom:var(--space--medium);margin-right:var(--space--0);align-self:stretch}.snk-grid__header.sc-snk-grid snk-taskbar.sc-snk-grid{display:flex;align-items:flex-start;min-height:var(--snk-grid-header--min-height)}.snk-grid__header.sc-snk-grid ez-tooltip.sc-snk-grid{width:auto;margin-inline:var(--space--8, 8px)}.snk-grid__table.sc-snk-grid{min-height:var(--snk-grid-min-height)}.snk-grid-container__without-shadow.sc-snk-grid{--ezgrid__container--shadow:unset}.snk-grid-container__footer.sc-snk-grid{background-color:var(--background--xlight, #FFF);border-radius:0 0 var(--border--radius-medium) var(--border--radius-medium)}.snk-grid-container__footer.sc-snk-grid:has(*){border-top:1px solid var(--color--strokes, #E1E2E5)}";
|
|
88
87
|
|
|
89
88
|
const SnkGrid = class {
|
|
90
89
|
constructor(hostRef) {
|
|
@@ -95,7 +94,7 @@ const SnkGrid = class {
|
|
|
95
94
|
this._customEditors = new Map();
|
|
96
95
|
this._customRenders = new Map();
|
|
97
96
|
this._keyboardManager = new core.KeyboardManager();
|
|
98
|
-
this._topTaskbarProcessor = new
|
|
97
|
+
this._topTaskbarProcessor = new SnkMultiSelectionListDataSource.TaskbarProcessor({
|
|
99
98
|
'snkGridTopTaskbar.regular': ['FORM_MODE', 'CONFIGURATOR', 'INSERT'],
|
|
100
99
|
'snkGridTopTaskbar.regular.secondary': ['FORM_MODE', 'CONFIGURATOR', 'INSERT'],
|
|
101
100
|
'snkGridTopTaskbar.regular.singleTaskbar': [],
|
|
@@ -103,15 +102,15 @@ const SnkGrid = class {
|
|
|
103
102
|
'snkGridTopTaskbar.finish_edition.secondary': [],
|
|
104
103
|
'snkGridTopTaskbar.finish_edition.singleTaskbar': [],
|
|
105
104
|
});
|
|
106
|
-
this._headerTaskbarProcessor = new
|
|
105
|
+
this._headerTaskbarProcessor = new SnkMultiSelectionListDataSource.TaskbarProcessor({
|
|
107
106
|
'snkGridHeaderTaskbar.unselected': ['REFRESH', 'DATA_EXPORTER', 'ACTIONS_BUTTON', 'MORE_OPTIONS'],
|
|
108
107
|
'snkGridHeaderTaskbar.selected': this.getGridHeaderSelectedBtns(),
|
|
109
|
-
'snkGridHeaderTaskbar.detail.unselected': ['REFRESH', 'MORE_OPTIONS'],
|
|
110
|
-
'snkGridHeaderTaskbar.detail.selected':
|
|
108
|
+
'snkGridHeaderTaskbar.detail.unselected': ['REFRESH', 'ACTIONS_BUTTON', 'MORE_OPTIONS'],
|
|
109
|
+
'snkGridHeaderTaskbar.detail.selected': this.getDetailGridSelectedBtns(),
|
|
111
110
|
'snkGridHeaderTaskbar.singleTaskbar.unselected': ['INSERT', 'FORM_MODE', 'CONFIGURATOR', 'REFRESH', 'DATA_EXPORTER', 'ACTIONS_BUTTON', 'MORE_OPTIONS'],
|
|
112
111
|
'snkGridHeaderTaskbar.singleTaskbar.selected': ['UPDATE', 'CLONE', 'REMOVE', 'MORE_OPTIONS', 'DIVIDER', 'ATTACH', 'FORM_MODE', 'CONFIGURATOR', 'REFRESH', 'DATA_EXPORTER', 'ACTIONS_BUTTON'],
|
|
113
|
-
'snkGridHeaderTaskbar.singleTaskbar.detail.unselected': ['INSERT', 'FORM_MODE', 'CONFIGURATOR', 'REFRESH', 'MORE_OPTIONS'],
|
|
114
|
-
'snkGridHeaderTaskbar.singleTaskbar.detail.selected': ['UPDATE', 'ATTACH', 'CLONE', 'REMOVE', 'MORE_OPTIONS', 'DIVIDER', 'FORM_MODE', 'CONFIGURATOR', 'REFRESH'],
|
|
112
|
+
'snkGridHeaderTaskbar.singleTaskbar.detail.unselected': ['INSERT', 'FORM_MODE', 'CONFIGURATOR', 'REFRESH', 'ACTIONS_BUTTON', 'MORE_OPTIONS'],
|
|
113
|
+
'snkGridHeaderTaskbar.singleTaskbar.detail.selected': ['UPDATE', 'ATTACH', 'CLONE', 'REMOVE', 'MORE_OPTIONS', 'DIVIDER', 'FORM_MODE', 'CONFIGURATOR', 'REFRESH', 'ACTIONS_BUTTON'],
|
|
115
114
|
'snkGridHeaderTaskbar.singleTaskbar.finish_edition': ['CANCEL', 'SAVE', this.handleAddFormMode()],
|
|
116
115
|
});
|
|
117
116
|
this.dataUnitInterceptor = {
|
|
@@ -170,6 +169,18 @@ const SnkGrid = class {
|
|
|
170
169
|
this.compact = undefined;
|
|
171
170
|
this.filterCustomConfig = undefined;
|
|
172
171
|
this.filterCustomConfigInterceptor = undefined;
|
|
172
|
+
this.hidePagination = false;
|
|
173
|
+
this.hideHeader = false;
|
|
174
|
+
this.hideGridTaskbar = false;
|
|
175
|
+
}
|
|
176
|
+
getDetailGridSelectedBtns() {
|
|
177
|
+
const btns = [
|
|
178
|
+
taskbarElements.TaskbarElement.UPDATE, taskbarElements.TaskbarElement.ATTACH, taskbarElements.TaskbarElement.CLONE, taskbarElements.TaskbarElement.MORE_OPTIONS,
|
|
179
|
+
taskbarElements.TaskbarElement.DIVIDER, taskbarElements.TaskbarElement.REFRESH, taskbarElements.TaskbarElement.ACTIONS_BUTTON
|
|
180
|
+
];
|
|
181
|
+
if (this.multipleEditionEnabled)
|
|
182
|
+
btns.unshift(taskbarElements.TaskbarElement.UPDATE_MULTIPLE);
|
|
183
|
+
return btns;
|
|
173
184
|
}
|
|
174
185
|
getGridHeaderSelectedBtns() {
|
|
175
186
|
const btns = [
|
|
@@ -310,6 +321,24 @@ const SnkGrid = class {
|
|
|
310
321
|
async setFocus() {
|
|
311
322
|
this._grid.setFocus();
|
|
312
323
|
}
|
|
324
|
+
/**
|
|
325
|
+
* Manipula a mudança de página da grid.
|
|
326
|
+
*/
|
|
327
|
+
async handlePageChange() {
|
|
328
|
+
await this._grid.handlePageChange();
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* Localiza determinada coluna tornando-a visível.
|
|
332
|
+
*/
|
|
333
|
+
async locateColumn(columnName) {
|
|
334
|
+
return this._grid.locateColumn(columnName);
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* Usa um argumento para filtrar as colunas por label
|
|
338
|
+
*/
|
|
339
|
+
async filterColumns(search) {
|
|
340
|
+
return this._grid.filterColumns(search);
|
|
341
|
+
}
|
|
313
342
|
async handleClick(event) {
|
|
314
343
|
var _a;
|
|
315
344
|
if (this.hasToBlockEvent(event)) {
|
|
@@ -525,7 +554,7 @@ const SnkGrid = class {
|
|
|
525
554
|
this._rmPrecisionCustomValueFormatter = new SnkMultiSelectionListDataSource.RmPrecisionCustomValueFormatter();
|
|
526
555
|
this.addGridLegacyConfigName();
|
|
527
556
|
this.loadConfig();
|
|
528
|
-
this._continuousInsertUtils = new
|
|
557
|
+
this._continuousInsertUtils = new ContinuousInsertUtils.ContinuousInsertUtils(this._application, this.resourceID, this.configName);
|
|
529
558
|
if (this.enableGridInsert) {
|
|
530
559
|
this._continuousInsertUtils.getConfig().then(value => this._enableContinuousInsert = value);
|
|
531
560
|
}
|
|
@@ -673,13 +702,16 @@ const SnkGrid = class {
|
|
|
673
702
|
return this.enableGridInsert && this._dataUnit.hasNewRecord();
|
|
674
703
|
}
|
|
675
704
|
render() {
|
|
705
|
+
var _a, _b;
|
|
676
706
|
if (!this._dataUnit) {
|
|
677
707
|
return undefined;
|
|
678
708
|
}
|
|
679
|
-
return (index.h("div", { class: "snk-grid__container ez-flex ez-flex--column ez-flex-item--auto ez-
|
|
680
|
-
index.h(
|
|
709
|
+
return (index.h("div", { class: "snk-grid__container ez-flex ez-flex--column ez-flex-item--auto ez-box--no-outline", tabindex: "0" }, !this.hideHeader &&
|
|
710
|
+
index.h("div", { class: "snk-grid__header" }, this._showSnkFilterBar &&
|
|
711
|
+
index.h(index.Fragment, null, index.h("snk-filter-bar", { ref: (ref) => this._snkFilterBar = ref, title: this.filterBarTitle, dataUnit: this._dataUnit, "data-element-id": "gridFilter", class: "snk-grid__filter-bar ez-align--top", 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, filterCustomConfig: this.filterCustomConfig, filterCustomConfigInterceptor: this.filterCustomConfigInterceptor, mode: this._filterMode, hideFilterButton: true }), index.h("ez-tooltip", { message: (_a = this.messagesBuilder) === null || _a === void 0 ? void 0 : _a.getMessage("snkCrud.customButtons.filter") }, index.h("ez-button", { mode: "icon", iconName: "filter", onClick: () => this._snkFilterBar.showFilterModal(), size: "small" }))), index.h("snk-taskbar", { "data-element-id": "grid_top", key: "topTaskbar", configName: this.configName, dataUnit: this._dataUnit, messagesBuilder: this.messagesBuilder, buttons: this._topTaskbarProcessor.buttons, disabledButtons: this._topTaskbarProcessor.disabledButtons, customButtons: this._topTaskbarProcessor.customButtons, primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.topTaskbarCustomSlotId, overflowStrategy: 'none', actionsSettingsList: this.getActionsSettingsList() }, index.h("slot", { name: this.topTaskbarCustomSlotId }))), index.h("ez-grid", { ref: ref => this._grid = ref, class: (this.presentationMode === index$1.PresentationMode.SECONDARY ? 'snk-grid-container__without-shadow ' : '') + 'snk-grid__table', "data-element-id": "embedded", dataUnit: this._dataUnit, key: 'grid-' + this._snkDataUnit.entityName, config: this._gridConfig, onConfigChange: (evt) => {
|
|
681
712
|
this.gridConfigChangeHandler(evt);
|
|
682
|
-
}, onEzColumnFilterChanged: async () => await this.dataExporterProviderStore(), onEzDoubleClick: (evt) => this.gridDoubleClick.emit(evt.detail), statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, columnfilterDataSource: this.columnFilterDataSource, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, recordsValidator: this.recordsValidator, canEdit: this.canEdit, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this._enableContinuousInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, outlineMode: this.outlineMode, useSearchColumn: this.useSearchColumn, suppressHorizontalScroll: this.suppressHorizontalScroll, paginationCounterMode: this.paginationCounterMode, suppressCheckboxColumn: this.suppressCheckboxColumn, suppressFilterColumn: this.suppressFilterColumn, compact: this.compact
|
|
713
|
+
}, onEzColumnFilterChanged: async () => await this.dataExporterProviderStore(), onEzDoubleClick: (evt) => this.gridDoubleClick.emit(evt.detail), statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, columnfilterDataSource: this.columnFilterDataSource, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, recordsValidator: this.recordsValidator, canEdit: this.canEdit, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this._enableContinuousInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, outlineMode: this.outlineMode, useSearchColumn: this.useSearchColumn, suppressHorizontalScroll: this.suppressHorizontalScroll, paginationCounterMode: this.paginationCounterMode, suppressCheckboxColumn: this.suppressCheckboxColumn, suppressFilterColumn: this.suppressFilterColumn, compact: this.compact, hidePagination: this.hidePagination }, !this.hideGridTaskbar &&
|
|
714
|
+
index.h("snk-taskbar", { id: 'teste', dataUnit: this._dataUnit, configName: this.configName, messagesBuilder: this.messagesBuilder, "data-element-id": "grid_left", buttons: this.getGridHeaderButtons(), presentationMode: this.presentationMode, disabledButtons: this._headerTaskbarProcessor.disabledButtons, customButtons: this._headerTaskbarProcessor.customButtons, slot: "leftButtons", actionsList: this.getActionsList(), primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.gridHeaderCustomSlotId, additionalSlotId: this.gridHeaderDynamicSearchSlotId, actionsSettingsList: this.getActionsSettingsList() }, index.h("slot", { name: this.gridHeaderCustomSlotId }), index.h("slot", { name: this.gridHeaderDynamicSearchSlotId }))), index.h("div", { class: "ez-col ez-col--sd-12 snk-grid-container__footer" }, index.h("slot", { name: "SnkGridFooter" })), index.h("ez-popup", { size: "medium", heightMode: "auto", useHeader: false, opened: this._popUpGridConfig, onEzClosePopup: () => this.closeGridConfig() }, index.h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this._gridConfig, "data-element-id": this._element.getAttribute(core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resourceID, metadata: (_b = this._dataUnit) === null || _b === void 0 ? void 0 : _b.metadata }))));
|
|
683
715
|
}
|
|
684
716
|
get _element() { return index.getElement(this); }
|
|
685
717
|
static get watchers() { return {
|
|
@@ -2,23 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
const index = require('./index-1894343a.js');
|
|
4
4
|
const core = require('@sankhyalabs/core');
|
|
5
|
-
const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
|
6
5
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
7
6
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
|
8
|
-
require('./DataFetcher-3a8ea521.js');
|
|
9
|
-
require('./ISave-a66bb65e.js');
|
|
10
|
-
const index$1 = require('./index-e3e39724.js');
|
|
11
|
-
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
12
|
-
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
13
|
-
require('./dataunit-fetcher-6febd6c4.js');
|
|
14
|
-
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
15
|
-
require('./form-config-fetcher-72cf0e3d.js');
|
|
16
7
|
const constants = require('./constants-6d82e405.js');
|
|
17
|
-
const SnkFormConfigManager = require('./SnkFormConfigManager-
|
|
18
|
-
const taskbarElements = require('./taskbar-elements-
|
|
19
|
-
const taskbarProcessor = require('./taskbar-processor-2fba34a8.js');
|
|
8
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-5cb9a39c.js');
|
|
9
|
+
const taskbarElements = require('./taskbar-elements-25f800b3.js');
|
|
20
10
|
|
|
21
|
-
const snkGuidesViewerCss = ".sc-snk-guides-viewer-h{--snk-guides-viewer--space-large:var(--space--large, 24px);--snk-guides-viewer--space-small:var(--space--2xs, 8px);--snk-guides-viewer__header--min-height:
|
|
11
|
+
const snkGuidesViewerCss = ".sc-snk-guides-viewer-h{--snk-guides-viewer--space-large:var(--space--large, 24px);--snk-guides-viewer--space-small:var(--space--2xs, 8px);--snk-guides-viewer__header--min-height:132px;--snk-guides-viewer__header--z-index:var(--more-visible, 2);--snk-guides-viewer__header--background-color:var(--background--body, #fafcff);--snk-guides-viewer__guide-navigator--width:340px;--snk-workspace--header-height:40px;display:block;outline:none}ez-guide-navigator.sc-snk-guides-viewer{--ez-guide-navigator--border-radius:var(--space--12, 12px)}snk-form-view.sc-snk-guides-viewer{width:100%}stack-item.snk-guides-viewer.sc-snk-guides-viewer{display:grid}stack-item.sc-snk-guides-viewer.sc-snk-guides-viewer{display:grid;min-height:100%}.snk-guides-viewer.sc-snk-guides-viewer{position:relative;padding:0 var(--snk-guides-viewer--space-small);padding-bottom:var(--snk-guides-viewer--space-small)}.snk-guides-viewer__detail-container.sc-snk-guides-viewer{display:flex;row-gap:24px;flex-direction:column;max-height:calc(100vh - var(--snk-guides-viewer__header--min-height));overflow-y:auto}.snk-guides-viewer__header.sc-snk-guides-viewer{position:sticky;align-items:center;top:0;z-index:var(--snk-guides-viewer__header--z-index);background-color:var(--snk-guides-viewer__header--background-color);min-height:var(--snk-guides-viewer__header--min-height);width:calc(100% + (var(--snk-guides-viewer--space-large) * 2));padding-left:var(--snk-guides-viewer--space-large);padding-right:var(--snk-guides-viewer--space-large);padding-top:var(--snk-guides-viewer--space-large);padding-bottom:var(--snk-guides-viewer--space-small);margin-left:calc(var(--snk-guides-viewer--space-large) * -1);margin-right:calc(var(--snk-guides-viewer--space-large) * -1);margin-bottom:var(--snk-guides-viewer--space-small)}.snk-guides-viewer__header-breadcrumb.sc-snk-guides-viewer{width:25%;display:flex}.snk-guides-viewer__header-taskbar.sc-snk-guides-viewer{width:75%}.snk-guides-viewer__container.sc-snk-guides-viewer{display:grid;grid-template-columns:minmax(0, auto) minmax(0, 100%);height:100%;column-gap:var(--snk-guides-viewer--space-small)}.snk-guides-viewer__guide-navigator.sc-snk-guides-viewer{position:sticky;top:var(--snk-guides-viewer--space-small);height:calc(100vh - var(--snk-guides-viewer__header--min-height))}.snk-guides-viewer__guide-navigator[open].sc-snk-guides-viewer{width:var(--snk-guides-viewer__guide-navigator--width);max-width:var(--snk-guides-viewer__guide-navigator--width);min-width:var(--snk-guides-viewer__guide-navigator--width)}.snk-guides-viewer__detail-content.sc-snk-guides-viewer{min-height:100%;align-items:flex-start;align-content:flex-start}";
|
|
22
12
|
|
|
23
13
|
const FORM_NAME_PREFIX = "__FORM:";
|
|
24
14
|
const SnkGuidesViewer = class {
|
|
@@ -120,7 +110,7 @@ const SnkGuidesViewer = class {
|
|
|
120
110
|
*/
|
|
121
111
|
async setFocus() {
|
|
122
112
|
var _a;
|
|
123
|
-
(_a = this._container) === null || _a === void 0 ? void 0 : _a.focus();
|
|
113
|
+
(_a = this._container) === null || _a === void 0 ? void 0 : _a.focus({ preventScroll: true });
|
|
124
114
|
}
|
|
125
115
|
/**
|
|
126
116
|
* Recarrega os guias baseada nos metadados atuais.
|
|
@@ -223,63 +213,6 @@ const SnkGuidesViewer = class {
|
|
|
223
213
|
});
|
|
224
214
|
}
|
|
225
215
|
}
|
|
226
|
-
getTaskBarId() {
|
|
227
|
-
var _a;
|
|
228
|
-
if ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.isDirty) {
|
|
229
|
-
return TASKBAR_ID.FINISH_EDITION;
|
|
230
|
-
}
|
|
231
|
-
if (this.dataUnit.isMultipleEdition) {
|
|
232
|
-
return TASKBAR_ID.MUTIPLE_EDITION;
|
|
233
|
-
}
|
|
234
|
-
return TASKBAR_ID.REGULAR;
|
|
235
|
-
}
|
|
236
|
-
loadTaskbarProcessor() {
|
|
237
|
-
const taskbarIDs = {};
|
|
238
|
-
taskbarIDs[TASKBAR_ID.REGULAR] = this.buildBtnsRegularMode();
|
|
239
|
-
taskbarIDs[TASKBAR_ID.FINISH_EDITION] = [taskbarElements.TaskbarElement.CANCEL, taskbarElements.TaskbarElement.SAVE, this.handleAddGridMode()];
|
|
240
|
-
taskbarIDs[TASKBAR_ID.MUTIPLE_EDITION] = [taskbarElements.TaskbarElement.CANCEL];
|
|
241
|
-
this._taskbarProcessor = new taskbarProcessor.TaskbarProcessor(taskbarIDs);
|
|
242
|
-
this._taskbarProcessor.process(this.getTaskBarId(), this.taskbarManager, this.dataState, this.buildDisabledButtons(), this.buildInvisibleButtons());
|
|
243
|
-
}
|
|
244
|
-
buildBtnsRegularMode() {
|
|
245
|
-
var _a, _b;
|
|
246
|
-
const btnsRegularMode = [
|
|
247
|
-
taskbarElements.TaskbarElement.ATTACH, taskbarElements.TaskbarElement.CLONE, taskbarElements.TaskbarElement.REMOVE, taskbarElements.TaskbarElement.MORE_OPTIONS,
|
|
248
|
-
taskbarElements.TaskbarElement.ACTIONS_BUTTON, taskbarElements.TaskbarElement.DIVIDER, taskbarElements.TaskbarElement.GRID_MODE, taskbarElements.TaskbarElement.CONFIGURATOR,
|
|
249
|
-
];
|
|
250
|
-
if (((_b = (_a = this.dataState) === null || _a === void 0 ? void 0 : _a.selectionInfo) === null || _b === void 0 ? void 0 : _b.length) <= 1) {
|
|
251
|
-
btnsRegularMode.unshift(taskbarElements.TaskbarElement.PREVIOUS, taskbarElements.TaskbarElement.NEXT, taskbarElements.TaskbarElement.DIVIDER);
|
|
252
|
-
}
|
|
253
|
-
if (this.presentationMode == index$1.PresentationMode.SECONDARY) {
|
|
254
|
-
btnsRegularMode.unshift(taskbarElements.TaskbarElement.INSERT);
|
|
255
|
-
}
|
|
256
|
-
else {
|
|
257
|
-
btnsRegularMode.push(taskbarElements.TaskbarElement.INSERT);
|
|
258
|
-
}
|
|
259
|
-
return btnsRegularMode;
|
|
260
|
-
}
|
|
261
|
-
buildDisabledButtons() {
|
|
262
|
-
var _a, _b, _c, _d, _e, _f;
|
|
263
|
-
const disabledButtons = [];
|
|
264
|
-
if (!((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.hasPrevious))
|
|
265
|
-
disabledButtons.push(taskbarElements.TaskbarElement.PREVIOUS);
|
|
266
|
-
if (!((_b = this.dataState) === null || _b === void 0 ? void 0 : _b.hasNext))
|
|
267
|
-
disabledButtons.push(taskbarElements.TaskbarElement.NEXT);
|
|
268
|
-
if (((_d = (_c = this.dataState) === null || _c === void 0 ? void 0 : _c.selectionInfo) === null || _d === void 0 ? void 0 : _d.length) > 1)
|
|
269
|
-
disabledButtons.push(taskbarElements.TaskbarElement.CLONE);
|
|
270
|
-
if ((_f = (_e = this.dataState) === null || _e === void 0 ? void 0 : _e.selectionInfo) === null || _f === void 0 ? void 0 : _f.isAllRecords())
|
|
271
|
-
disabledButtons.push(taskbarElements.TaskbarElement.REMOVE);
|
|
272
|
-
return disabledButtons;
|
|
273
|
-
}
|
|
274
|
-
handleAddGridMode() {
|
|
275
|
-
return this.enableGridInsert ? taskbarElements.TaskbarElement.GRID_MODE : "";
|
|
276
|
-
}
|
|
277
|
-
buildInvisibleButtons() {
|
|
278
|
-
const invisibleButtons = [];
|
|
279
|
-
if (this.dataState && this.dataState.selectionInfo.mode === DataUnit.SelectionMode.ALL_RECORDS)
|
|
280
|
-
invisibleButtons.push(taskbarElements.TaskbarElement.ACTIONS_BUTTON);
|
|
281
|
-
return invisibleButtons;
|
|
282
|
-
}
|
|
283
216
|
static updateContentCard(formName, cardConfig, propertyChanged, configManager) {
|
|
284
217
|
return configManager.saveCardState(formName, cardConfig, propertyChanged);
|
|
285
218
|
}
|
|
@@ -347,7 +280,7 @@ const SnkGuidesViewer = class {
|
|
|
347
280
|
if (!sheet)
|
|
348
281
|
return;
|
|
349
282
|
const cardConfig = (_b = (_a = this.masterFormConfig) === null || _a === void 0 ? void 0 : _a.cardsState) === null || _b === void 0 ? void 0 : _b.get(cardId);
|
|
350
|
-
return (index.h("snk-form-view", { ref: ref => this._mainForm = ref, fixed: cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.fixed, summaryFields: (_d = (_c = this.masterFormConfig) === null || _c === void 0 ? void 0 : _c.summary) === null || _d === void 0 ? void 0 : _d.get(cardId), name: cardId, label: sheet.label, fields: sheet.fields, dataUnit: this.dataUnit, formMetadata: this._masterFormMetadata, recordsValidator: this.recordsValidator, fieldToFocus: this._fieldToGetFocus, key: cardId, onSnkRequestClearFieldToFocus: _ => this.clearFieldToFocusHandler(), customEditors: this._customEditors, fieldsProps: this._fieldsProps, fieldSearch: this._fieldSearch, entityPath: this.entityPath }
|
|
283
|
+
return (index.h("snk-form-view", { ref: ref => this._mainForm = ref, fixed: cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.fixed, summaryFields: (_d = (_c = this.masterFormConfig) === null || _c === void 0 ? void 0 : _c.summary) === null || _d === void 0 ? void 0 : _d.get(cardId), name: cardId, label: sheet.label, fields: sheet.fields, dataUnit: this.dataUnit, formMetadata: this._masterFormMetadata, recordsValidator: this.recordsValidator, fieldToFocus: this._fieldToGetFocus, key: cardId, onSnkRequestClearFieldToFocus: _ => this.clearFieldToFocusHandler(), customEditors: this._customEditors, fieldsProps: this._fieldsProps, fieldSearch: this._fieldSearch, entityPath: this.entityPath }));
|
|
351
284
|
}
|
|
352
285
|
isDetailGuide(childEntityName, levels) {
|
|
353
286
|
return childEntityName || levels.length > 0;
|
|
@@ -370,12 +303,6 @@ const SnkGuidesViewer = class {
|
|
|
370
303
|
var _a;
|
|
371
304
|
return (_a = this.customGuidesConfig) === null || _a === void 0 ? void 0 : _a.map(g => g.id).includes(guideId);
|
|
372
305
|
}
|
|
373
|
-
onBreadcrumbClickHandler(item) {
|
|
374
|
-
if ((item === null || item === void 0 ? void 0 : item.id) == undefined) {
|
|
375
|
-
return;
|
|
376
|
-
}
|
|
377
|
-
this._guideNavigator.selectGuide(item.id);
|
|
378
|
-
}
|
|
379
306
|
updateSelectedGuideHandler(currentItem) {
|
|
380
307
|
this._guideHasChanged = this.selectedGuide != currentItem;
|
|
381
308
|
this.selectedGuide = currentItem;
|
|
@@ -384,10 +311,6 @@ const SnkGuidesViewer = class {
|
|
|
384
311
|
});
|
|
385
312
|
this.resetGuideBadge(currentItem);
|
|
386
313
|
}
|
|
387
|
-
changeGuideHandler(guideName) {
|
|
388
|
-
var _a;
|
|
389
|
-
(_a = this._guideNavigator) === null || _a === void 0 ? void 0 : _a.selectGuide(guideName);
|
|
390
|
-
}
|
|
391
314
|
clearFieldToFocusHandler() {
|
|
392
315
|
this._fieldToGetFocus = undefined;
|
|
393
316
|
}
|
|
@@ -457,59 +380,9 @@ const SnkGuidesViewer = class {
|
|
|
457
380
|
if (!this._guideHasChanged) {
|
|
458
381
|
return;
|
|
459
382
|
}
|
|
460
|
-
|
|
461
|
-
this._currentDetail.showUp();
|
|
462
|
-
}
|
|
463
|
-
else {
|
|
464
|
-
if (this._mainForm) {
|
|
465
|
-
this._mainForm.showUp();
|
|
466
|
-
}
|
|
467
|
-
}
|
|
383
|
+
window.scrollTo(0, 0);
|
|
468
384
|
this._guideHasChanged = false;
|
|
469
385
|
}
|
|
470
|
-
getFieldsSearch(item) {
|
|
471
|
-
if (this._fieldSearch == undefined || this._hasToCreateFieldSearch) {
|
|
472
|
-
this._hasToCreateFieldSearch = false;
|
|
473
|
-
this._fieldSearch = utils.buildFieldSearch(item, ({ argument }) => this.fieldsOptionLoader(argument), (option) => this.onSelectField(option));
|
|
474
|
-
}
|
|
475
|
-
return this._fieldSearch;
|
|
476
|
-
}
|
|
477
|
-
fieldsOptionLoader(argument) {
|
|
478
|
-
return Promise.resolve(this._configManager.getFieldsList(argument)
|
|
479
|
-
.map(field => ({ value: field.name, label: field.label })));
|
|
480
|
-
}
|
|
481
|
-
onSelectField(option) {
|
|
482
|
-
if (option == undefined) {
|
|
483
|
-
return;
|
|
484
|
-
}
|
|
485
|
-
this._fieldToGetFocus = option.value;
|
|
486
|
-
const fieldGuideName = this.getGuideName(option.value);
|
|
487
|
-
if (fieldGuideName !== this.selectedGuide.id) {
|
|
488
|
-
this.changeGuideHandler(fieldGuideName);
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
getActionsList() {
|
|
492
|
-
var _a;
|
|
493
|
-
const hardList = [];
|
|
494
|
-
if (this.taskbarManager != undefined && this.taskbarManager.getMoreOptions != undefined) {
|
|
495
|
-
return hardList.concat((_a = this.taskbarManager.getMoreOptions(this.getTaskBarId(), this.configName, this.dataState, this.actionsList)) !== null && _a !== void 0 ? _a : []);
|
|
496
|
-
}
|
|
497
|
-
return hardList.concat(this.actionsList);
|
|
498
|
-
}
|
|
499
|
-
getSettingsListForm() {
|
|
500
|
-
const hardList = [{
|
|
501
|
-
value: core.StringUtils.generateUUID(),
|
|
502
|
-
label: this.getMessage("snkCrud.findColumn"),
|
|
503
|
-
disableCloseOnSelect: true,
|
|
504
|
-
eagerInitialize: true,
|
|
505
|
-
itemBuilder: (_, item) => this.getFieldsSearch(item)
|
|
506
|
-
}];
|
|
507
|
-
return hardList;
|
|
508
|
-
}
|
|
509
|
-
buildTaskBar() {
|
|
510
|
-
var _a;
|
|
511
|
-
return index.h("div", { class: `snk-guides-viewer__header-taskbar ${this.presentationMode != index$1.PresentationMode.SECONDARY ? 'ez-align--right' : 'ez-padding-bottom--medium'}` }, index.h("snk-taskbar", { key: "guideViewerTaskbar", "data-element-id": "guideViewer", configName: this.configName, buttons: this._taskbarProcessor.buttons, disabledButtons: this._taskbarProcessor.disabledButtons, customButtons: this._taskbarProcessor.customButtons, actionsList: this.getActionsList(), actionsSettingsList: this.getSettingsListForm(), messagesBuilder: this.messagesBuilder, presentationMode: this.presentationMode, primaryButton: ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.isDirty) ? taskbarElements.TaskbarElement.SAVE : taskbarElements.TaskbarElement.INSERT, "data-taskbar-owner": "master", dataUnit: this.dataUnit, resourceID: this.resourceID, customSlotId: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS", additionalSlotId: "GUIDES_VIEWER_DYNAMIC_SEARCH", alignRigth: true }, index.h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "GUIDES_VIEWER_DYNAMIC_SEARCH" })));
|
|
512
|
-
}
|
|
513
386
|
async dataUnitActionHandler(action) {
|
|
514
387
|
var _a;
|
|
515
388
|
switch (action.type) {
|
|
@@ -564,30 +437,42 @@ const SnkGuidesViewer = class {
|
|
|
564
437
|
}
|
|
565
438
|
return "";
|
|
566
439
|
}
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
return (_b = (_a = this.getCustomTitle) === null || _a === void 0 ? void 0 : _a.call(this)) !== null && _b !== void 0 ? _b : this.getMessage("snkCrud.title");
|
|
570
|
-
}
|
|
571
|
-
getTitleTooltip() {
|
|
572
|
-
if (!this.dataUnit.isMultipleEdition)
|
|
573
|
-
return;
|
|
574
|
-
return this.buildRecordIdsArray();
|
|
440
|
+
getCustomGuidesConfig() {
|
|
441
|
+
return this._currentDetail ? [] : this.customGuidesConfig;
|
|
575
442
|
}
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
443
|
+
getFieldsSearch() {
|
|
444
|
+
if (this._fieldSearch == undefined || this._hasToCreateFieldSearch) {
|
|
445
|
+
this._hasToCreateFieldSearch = false;
|
|
446
|
+
const item = {
|
|
447
|
+
label: this.getMessage("snkSimpleCrud.findFields"),
|
|
448
|
+
value: "findFields",
|
|
449
|
+
};
|
|
450
|
+
this._fieldSearch = utils.buildFieldSearch(item, ({ argument }) => this.fieldsOptionLoader(argument), (option) => this.onSelectField(option));
|
|
581
451
|
}
|
|
582
|
-
|
|
583
|
-
return `[${labels.join(", ")}]`;
|
|
452
|
+
return this._fieldSearch;
|
|
584
453
|
}
|
|
585
|
-
|
|
586
|
-
return
|
|
454
|
+
fieldsOptionLoader(argument) {
|
|
455
|
+
return Promise.resolve(this._configManager.getFieldsList(argument)
|
|
456
|
+
.map(field => ({ value: field.name, label: field.label })));
|
|
457
|
+
}
|
|
458
|
+
changeGuideHandler(guideName) {
|
|
459
|
+
var _a;
|
|
460
|
+
(_a = this._guideNavigator) === null || _a === void 0 ? void 0 : _a.selectGuide(guideName);
|
|
461
|
+
}
|
|
462
|
+
onSelectField(option) {
|
|
463
|
+
if (option == undefined) {
|
|
464
|
+
return;
|
|
465
|
+
}
|
|
466
|
+
this._fieldToGetFocus = option.value;
|
|
467
|
+
const fieldGuideName = this.getGuideName(option.value);
|
|
468
|
+
if (fieldGuideName !== this.selectedGuide.id) {
|
|
469
|
+
this.changeGuideHandler(fieldGuideName);
|
|
470
|
+
}
|
|
587
471
|
}
|
|
588
472
|
componentDidLoad() {
|
|
589
473
|
this.dataUnit.subscribe(this.dataUnitActionHandler.bind(this));
|
|
590
474
|
this.initKeyboardManager();
|
|
475
|
+
this.getFieldsSearch();
|
|
591
476
|
}
|
|
592
477
|
disconnectedCallback() {
|
|
593
478
|
var _a;
|
|
@@ -607,15 +492,14 @@ const SnkGuidesViewer = class {
|
|
|
607
492
|
}
|
|
608
493
|
}
|
|
609
494
|
renderGuidesNavigator(showGuides) {
|
|
610
|
-
var _a
|
|
611
|
-
return (index.h("section", { class: "snk-guides-viewer", ref: ref => this._container = ref, tabIndex: -1 }, index.h("div", { class: "
|
|
612
|
-
index.h("div", { class: "ez-margin-top--extra-small" }, index.h("ez-breadcrumb", Object.assign({ items: this._breadcrumbItems, onSelectedItem: (evt) => this.onBreadcrumbClickHandler(evt === null || evt === void 0 ? void 0 : evt.detail) }, { [core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `${core.ElementIDUtils.getInternalIDInfo("breadcrumb")}` }))))), this.presentationMode != index$1.PresentationMode.SECONDARY && this.buildTaskBar()), index.h("div", { class: "snk-guides-viewer__container" }, showGuides ?
|
|
495
|
+
var _a;
|
|
496
|
+
return (index.h("section", { class: "snk-guides-viewer", ref: ref => this._container = ref, tabIndex: -1 }, index.h("div", { class: "snk-guides-viewer__container" }, showGuides ?
|
|
613
497
|
index.h("ez-guide-navigator", { ref: (ref) => this._guideNavigator = ref, class: "snk-guides-viewer__guide-navigator", items: this._guides, selectedId: this.selectedGuide ? this.selectedGuide.id : undefined, onEzSelectionChange: evt => this.updateSelectedGuideHandler(evt.detail) })
|
|
614
498
|
:
|
|
615
499
|
index.h("div", null), index.h("div", { class: "snk-guides-viewer__detail-container" }, SnkGuidesViewer.buildFixedForms({
|
|
616
500
|
formConfig: this.masterFormConfig,
|
|
617
501
|
formMetadata: this._masterFormMetadata,
|
|
618
|
-
selectedForm: (
|
|
502
|
+
selectedForm: (_a = this.selectedGuide) === null || _a === void 0 ? void 0 : _a.id,
|
|
619
503
|
dataUnit: this.dataUnit,
|
|
620
504
|
recordsValidator: this.recordsValidator,
|
|
621
505
|
fieldToFocus: this._fieldToGetFocus,
|
|
@@ -629,7 +513,6 @@ const SnkGuidesViewer = class {
|
|
|
629
513
|
if (!this.dataUnit || !this._configManager.isLoaded) {
|
|
630
514
|
return;
|
|
631
515
|
}
|
|
632
|
-
this.loadTaskbarProcessor();
|
|
633
516
|
const showGuides = this._guides && (this._guides.length > 1);
|
|
634
517
|
return (index.h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "guides-viewer-stack" }, index.h("stack-item", null, this.renderGuidesNavigator(showGuides)), index.h("stack-item", null, this.renderFormConfig())));
|
|
635
518
|
}
|
|
@@ -641,12 +524,6 @@ const SnkGuidesViewer = class {
|
|
|
641
524
|
"masterFormConfig": ["observeMasterFormConfig"]
|
|
642
525
|
}; }
|
|
643
526
|
};
|
|
644
|
-
var TASKBAR_ID;
|
|
645
|
-
(function (TASKBAR_ID) {
|
|
646
|
-
TASKBAR_ID["FINISH_EDITION"] = "snkGuideViewer.finish_edition";
|
|
647
|
-
TASKBAR_ID["MUTIPLE_EDITION"] = "snkGuideViewer.multiple_edition";
|
|
648
|
-
TASKBAR_ID["REGULAR"] = "snkGuideViewer.regular";
|
|
649
|
-
})(TASKBAR_ID || (TASKBAR_ID = {}));
|
|
650
527
|
var GUIDES_VIEWER_VIEW_MODE;
|
|
651
528
|
(function (GUIDES_VIEWER_VIEW_MODE) {
|
|
652
529
|
GUIDES_VIEWER_VIEW_MODE[GUIDES_VIEWER_VIEW_MODE["GUIDES"] = 0] = "GUIDES";
|
|
@@ -2,31 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const snkGuidesViewer = require('./snk-guides-viewer-
|
|
5
|
+
const snkGuidesViewer = require('./snk-guides-viewer-67b9cca9.js');
|
|
6
6
|
require('./index-1894343a.js');
|
|
7
7
|
require('@sankhyalabs/core');
|
|
8
|
-
require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
|
9
8
|
require('@sankhyalabs/ezui/dist/collection/utils');
|
|
10
9
|
require('@sankhyalabs/ezui/dist/collection/utils/form');
|
|
11
|
-
require('./
|
|
10
|
+
require('./constants-6d82e405.js');
|
|
11
|
+
require('./SnkFormConfigManager-5cb9a39c.js');
|
|
12
|
+
require('./ConfigStorage-156bfcac.js');
|
|
13
|
+
require('./form-config-fetcher-bbebdcb8.js');
|
|
14
|
+
require('./DataFetcher-d13b4637.js');
|
|
12
15
|
require('./PrintUtils-bcaeb82f.js');
|
|
13
|
-
require('./SnkMessageBuilder-d9558dba.js');
|
|
14
16
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
15
|
-
require('./ISave-a66bb65e.js');
|
|
16
|
-
require('./index-e3e39724.js');
|
|
17
|
-
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
18
|
-
require('./dataunit-fetcher-6febd6c4.js');
|
|
19
|
-
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
20
|
-
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
|
21
|
-
require('./ResourceIDUtils-5ff86aa7.js');
|
|
22
17
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
23
|
-
require('./
|
|
24
|
-
require('./
|
|
25
|
-
require('./SnkFormConfigManager-c88cf1e9.js');
|
|
26
|
-
require('./ConfigStorage-d9d24844.js');
|
|
27
|
-
require('./taskbar-elements-a94d4318.js');
|
|
18
|
+
require('./taskbar-elements-25f800b3.js');
|
|
19
|
+
require('./index-bc950921.js');
|
|
28
20
|
require('./index-f0fe7e6e.js');
|
|
29
|
-
require('./taskbar-processor-2fba34a8.js');
|
|
30
21
|
|
|
31
22
|
|
|
32
23
|
|
|
@@ -3,19 +3,18 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1894343a.js');
|
|
6
|
-
require('./DataFetcher-
|
|
7
|
-
require('./ISave-
|
|
6
|
+
require('./DataFetcher-d13b4637.js');
|
|
7
|
+
require('./ISave-55d9dcc3.js');
|
|
8
8
|
const core = require('@sankhyalabs/core');
|
|
9
|
-
require('./index-
|
|
9
|
+
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
|
-
const formConfigFetcher = require('./form-config-fetcher-
|
|
14
|
+
const formConfigFetcher = require('./form-config-fetcher-bbebdcb8.js');
|
|
15
15
|
require('./constants-6d82e405.js');
|
|
16
16
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
17
17
|
require('./PrintUtils-bcaeb82f.js');
|
|
18
|
-
require('./SnkMessageBuilder-d9558dba.js');
|
|
19
18
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
20
19
|
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
|
21
20
|
require('./ResourceIDUtils-5ff86aa7.js');
|
|
@@ -4,17 +4,16 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1894343a.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const ISave = require('./ISave-
|
|
8
|
-
require('./DataFetcher-
|
|
9
|
-
require('./index-
|
|
7
|
+
const ISave = require('./ISave-55d9dcc3.js');
|
|
8
|
+
require('./DataFetcher-d13b4637.js');
|
|
9
|
+
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
|
require('./constants-6d82e405.js');
|
|
16
16
|
require('./PrintUtils-bcaeb82f.js');
|
|
17
|
-
require('./SnkMessageBuilder-d9558dba.js');
|
|
18
17
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
19
18
|
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
|
20
19
|
require('./ResourceIDUtils-5ff86aa7.js');
|