@sankhyalabs/sankhyablocks 10.1.0-dev.51 → 10.1.0-dev.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ConfigStorage-a1fab5ca.js → ConfigStorage-4201dd3d.js} +2 -2
- package/dist/cjs/{DataFetcher-384d2ce8.js → DataFetcher-b3a8075d.js} +2830 -2
- package/dist/cjs/FormConfigHelper-c5f5473a.js +342 -0
- package/dist/cjs/{ISave-ecbe9336.js → ISave-4674c283.js} +1 -1
- package/dist/cjs/{PersonalizedFilterUtils-eccb267a.js → PersonalizedFilterUtils-263e4d24.js} +52 -5
- package/dist/cjs/{SnkFormConfigManager-44386305.js → SnkFormConfigManager-c3a49038.js} +2 -2
- package/dist/cjs/{SnkMultiSelectionListDataSource-293bc3d2.js → SnkMultiSelectionListDataSource-0bc94d36.js} +71 -24
- package/dist/cjs/{auth-fetcher-6b134ec4.js → auth-fetcher-0ecc53ff.js} +1 -1
- package/dist/cjs/{dataunit-fetcher-b9822794.js → dataunit-fetcher-bcbc38c0.js} +2 -3
- package/dist/cjs/{filter-type.enum-2bb46d2a.js → filter-type.enum-b3b388af.js} +7 -0
- package/dist/cjs/{form-config-fetcher-45d1964c.js → form-config-fetcher-f80dbc3b.js} +23 -5
- package/dist/cjs/index-1894343a.js +24 -36
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/pesquisa-grid_2.cjs.entry.js +4 -5
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/snk-actions-button_9.cjs.entry.js +5 -6
- package/dist/cjs/snk-application.cjs.entry.js +7 -8
- package/dist/cjs/snk-attach_11.cjs.entry.js +2950 -0
- package/dist/cjs/snk-crud.cjs.entry.js +31 -229
- package/dist/cjs/snk-data-exporter.cjs.entry.js +5 -6
- package/dist/cjs/{snk-data-unit-4b6dc396.js → snk-data-unit-3b94547d.js} +11 -11
- package/dist/cjs/snk-data-unit.cjs.entry.js +3 -4
- package/dist/cjs/snk-detail-view.cjs.entry.js +16 -11
- package/dist/cjs/snk-dynaform-config-header_5.cjs.entry.js +739 -0
- package/dist/cjs/snk-dynaform-detail-view_2.cjs.entry.js +938 -0
- package/dist/cjs/snk-dynaform-field-config_2.cjs.entry.js +327 -0
- package/dist/cjs/snk-dynaform-guides-view-e98f7f3a.js +747 -0
- package/dist/cjs/snk-dynaform-guides-view.cjs.entry.js +23 -0
- package/dist/cjs/snk-dynaform.cjs.entry.js +675 -0
- 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 +41 -44
- package/dist/cjs/snk-form_2.cjs.entry.js +4 -5
- package/dist/cjs/snk-grid.cjs.entry.js +7 -8
- package/dist/cjs/{snk-guides-viewer-b4ca3437.js → snk-guides-viewer-3054d541.js} +2 -2
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +5 -6
- package/dist/cjs/snk-layout-form-config.cjs.entry.js +4 -5
- package/dist/cjs/snk-pesquisa.cjs.entry.js +4 -5
- package/dist/cjs/taskbarUtils-38748460.js +231 -0
- package/dist/collection/collection-manifest.json +17 -0
- 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 +6 -0
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.css +1 -1
- package/dist/collection/components/snk-crud/utils/taskbarUtils.js +14 -0
- package/dist/collection/components/snk-data-exporter/interfaces/IExporterProvider.js +67 -20
- 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 +64 -0
- package/dist/collection/components/snk-dynaform/snk-dynaform.js +1657 -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 +112 -0
- package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-detail-view/snk-dynaform-detail-view.js +992 -0
- package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-form-view/snk-dynaform-form-view.css +64 -0
- package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-form-view/snk-dynaform-form-view.js +588 -0
- package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-guides-view/snk-dynaform-guides-view.css +98 -0
- package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-guides-view/snk-dynaform-guides-view.js +1167 -0
- package/dist/collection/components/snk-dynaform-form-config/FormConfigHelper.js +325 -0
- package/dist/collection/components/snk-dynaform-form-config/SnkFormConfigManager.js +212 -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-grid/snk-grid.css +14 -7
- package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +22 -4
- package/dist/components/ContinuousInsertUtils.js +67 -20
- package/dist/components/form-config-fetcher.js +22 -4
- package/dist/components/index.d.ts +12 -0
- package/dist/components/index.js +12 -0
- package/dist/components/snk-crud.js +1 -198
- package/dist/components/snk-detail-view2.js +8 -2
- 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 +1835 -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 +270 -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 +1003 -0
- package/dist/components/snk-grid2.js +1 -1
- package/dist/components/taskbarUtils.js +224 -0
- package/dist/esm/{ConfigStorage-76872695.js → ConfigStorage-e834d1ea.js} +2 -2
- package/dist/esm/{DataFetcher-e60f8d53.js → DataFetcher-5ed0a377.js} +2830 -3
- package/dist/esm/FormConfigHelper-efc29480.js +328 -0
- package/dist/esm/{ISave-4929c071.js → ISave-5b46d691.js} +1 -1
- package/dist/esm/{PersonalizedFilterUtils-d2439a9a.js → PersonalizedFilterUtils-45b5803c.js} +49 -2
- package/dist/esm/{SnkFormConfigManager-83f6b22f.js → SnkFormConfigManager-bfd575c2.js} +2 -2
- package/dist/esm/{SnkMultiSelectionListDataSource-f6cabd15.js → SnkMultiSelectionListDataSource-9e9166ae.js} +71 -24
- package/dist/esm/{auth-fetcher-1a31c1e4.js → auth-fetcher-5283045d.js} +1 -1
- package/dist/esm/{dataunit-fetcher-c176e002.js → dataunit-fetcher-3b1ca96e.js} +1 -2
- package/dist/esm/{filter-type.enum-f6a8fe23.js → filter-type.enum-62b7fe88.js} +8 -1
- package/dist/esm/{form-config-fetcher-b44b2727.js → form-config-fetcher-db1bf140.js} +23 -5
- package/dist/esm/index-04f73a26.js +24 -36
- package/dist/esm/loader.js +1 -1
- package/dist/esm/pesquisa-grid_2.entry.js +4 -5
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/snk-actions-button_9.entry.js +5 -6
- package/dist/esm/snk-application.entry.js +6 -7
- package/dist/esm/snk-attach_11.entry.js +2936 -0
- package/dist/esm/snk-crud.entry.js +6 -204
- package/dist/esm/snk-data-exporter.entry.js +5 -6
- package/dist/esm/{snk-data-unit-d8cfa950.js → snk-data-unit-dfde62cb.js} +2 -2
- package/dist/esm/snk-data-unit.entry.js +3 -4
- package/dist/esm/snk-detail-view.entry.js +14 -9
- package/dist/esm/snk-dynaform-config-header_5.entry.js +731 -0
- package/dist/esm/snk-dynaform-detail-view_2.entry.js +933 -0
- package/dist/esm/snk-dynaform-field-config_2.entry.js +322 -0
- package/dist/esm/snk-dynaform-guides-view-1f1455d6.js +744 -0
- package/dist/esm/snk-dynaform-guides-view.entry.js +15 -0
- package/dist/esm/snk-dynaform.entry.js +671 -0
- 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 +5 -8
- package/dist/esm/snk-form_2.entry.js +4 -5
- package/dist/esm/snk-grid.entry.js +7 -8
- package/dist/esm/{snk-guides-viewer-cc37535b.js → snk-guides-viewer-95fefcaa.js} +2 -2
- package/dist/esm/snk-guides-viewer.entry.js +5 -6
- package/dist/esm/snk-layout-form-config.entry.js +4 -5
- package/dist/esm/snk-pesquisa.entry.js +4 -5
- package/dist/esm/taskbarUtils-8501d09e.js +225 -0
- package/dist/sankhyablocks/p-0dbd53d9.js +1 -0
- package/dist/sankhyablocks/{p-f5ad0720.js → p-19d1ca14.js} +1 -1
- package/dist/sankhyablocks/{p-ab5e12fa.js → p-1cc4cf61.js} +1 -1
- package/dist/sankhyablocks/p-1edd6be6.entry.js +1 -0
- package/dist/sankhyablocks/p-22ddc1a5.entry.js +1 -0
- package/dist/sankhyablocks/p-24b059ee.entry.js +1 -0
- package/dist/sankhyablocks/p-2c00b93d.js +1 -0
- package/dist/sankhyablocks/p-3623fddf.entry.js +1 -0
- package/dist/sankhyablocks/p-43c94ba5.entry.js +1 -0
- package/dist/sankhyablocks/p-449dfe55.entry.js +1 -0
- package/dist/sankhyablocks/p-451b5bcc.entry.js +1 -0
- package/dist/sankhyablocks/p-46d7e2de.js +1 -0
- package/dist/sankhyablocks/{p-3c990841.js → p-51e853f2.js} +1 -1
- package/dist/sankhyablocks/p-58709cf9.js +1 -0
- package/dist/sankhyablocks/p-589016e2.entry.js +1 -0
- package/dist/sankhyablocks/p-5d02c032.js +1 -0
- package/dist/sankhyablocks/p-5d50f59a.entry.js +1 -0
- package/dist/sankhyablocks/p-61776b68.entry.js +1 -0
- package/dist/sankhyablocks/p-6b8a1ec3.js +1 -0
- package/dist/sankhyablocks/p-7038cf62.entry.js +1 -0
- package/dist/sankhyablocks/{p-771b137e.js → p-70c2ee5c.js} +1 -1
- package/dist/sankhyablocks/p-7628e04f.entry.js +1 -0
- package/dist/sankhyablocks/p-7798788b.entry.js +1 -0
- package/dist/sankhyablocks/p-77c26de0.js +1 -0
- package/dist/sankhyablocks/p-7c34a0f7.entry.js +1 -0
- package/dist/sankhyablocks/p-a4a0d9b7.entry.js +1 -0
- package/dist/sankhyablocks/{p-4f7adf97.js → p-b1bf9564.js} +1 -1
- package/dist/sankhyablocks/p-b4c2a99c.entry.js +1 -0
- package/dist/sankhyablocks/p-b75af274.entry.js +1 -0
- package/dist/sankhyablocks/p-c538bd6c.entry.js +1 -0
- package/dist/sankhyablocks/{p-3704bf1b.js → p-d5810110.js} +1 -1
- package/dist/sankhyablocks/p-d7fd447e.entry.js +1 -0
- package/dist/sankhyablocks/p-d88278f8.js +28 -0
- package/dist/sankhyablocks/p-f076d742.js +60 -0
- package/dist/sankhyablocks/{p-8fe740b7.entry.js → p-f1ef090f.entry.js} +2 -2
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +1 -0
- package/dist/types/components/snk-data-exporter/interfaces/IExporterProvider.d.ts +8 -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 +158 -0
- package/dist/types/components/snk-dynaform/subcomponents/snk-dynaform-form-view/snk-dynaform-form-view.d.ts +107 -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.d.ts +2403 -1322
- package/dist/types/lib/http/data-fetcher/fetchers/form-config-fetcher.d.ts +1 -0
- package/package.json +1 -1
- package/react/components.d.ts +12 -0
- package/react/components.js +12 -0
- package/react/components.js.map +1 -1
- package/dist/cjs/SnkMessageBuilder-a9300ebe.js +0 -2833
- 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 -948
- package/dist/cjs/snk-default-filter.cjs.entry.js +0 -77
- package/dist/cjs/snk-filter-advanced-mode_3.cjs.entry.js +0 -99
- 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 -160
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +0 -358
- package/dist/cjs/snk-simple-crud.cjs.entry.js +0 -865
- package/dist/esm/SnkMessageBuilder-1eb7a1af.js +0 -2831
- 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 -944
- package/dist/esm/snk-default-filter.entry.js +0 -73
- package/dist/esm/snk-filter-advanced-mode_3.entry.js +0 -93
- 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 -156
- package/dist/esm/snk-personalized-filter.entry.js +0 -354
- package/dist/esm/snk-simple-crud.entry.js +0 -861
- package/dist/sankhyablocks/p-0afc64df.entry.js +0 -1
- package/dist/sankhyablocks/p-10f27dc6.entry.js +0 -1
- package/dist/sankhyablocks/p-134702f6.entry.js +0 -1
- package/dist/sankhyablocks/p-20f03230.entry.js +0 -1
- package/dist/sankhyablocks/p-2af8aca3.js +0 -1
- package/dist/sankhyablocks/p-33492640.entry.js +0 -1
- package/dist/sankhyablocks/p-3870748a.js +0 -28
- package/dist/sankhyablocks/p-438a225f.entry.js +0 -1
- package/dist/sankhyablocks/p-4d04bc75.entry.js +0 -1
- package/dist/sankhyablocks/p-554c0e54.js +0 -1
- package/dist/sankhyablocks/p-68c1a093.js +0 -1
- package/dist/sankhyablocks/p-6a4b21dd.js +0 -1
- package/dist/sankhyablocks/p-6ae7543b.entry.js +0 -1
- package/dist/sankhyablocks/p-6e278003.js +0 -60
- package/dist/sankhyablocks/p-82bcb4cf.entry.js +0 -1
- package/dist/sankhyablocks/p-84345e7a.js +0 -1
- package/dist/sankhyablocks/p-95af0bb1.entry.js +0 -1
- package/dist/sankhyablocks/p-95b36bd3.entry.js +0 -1
- package/dist/sankhyablocks/p-9e77e136.js +0 -1
- package/dist/sankhyablocks/p-a905712a.entry.js +0 -1
- package/dist/sankhyablocks/p-aff2d081.entry.js +0 -1
- package/dist/sankhyablocks/p-b0a357b4.entry.js +0 -1
- package/dist/sankhyablocks/p-b568c1d4.js +0 -1
- package/dist/sankhyablocks/p-bab4cde4.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-d9ec8c4b.entry.js +0 -1
- package/dist/sankhyablocks/p-e8df1dea.entry.js +0 -1
- package/dist/sankhyablocks/p-ef9343c3.entry.js +0 -1
- package/dist/sankhyablocks/p-f1bbf065.entry.js +0 -1
- package/dist/sankhyablocks/p-f4184ce7.js +0 -1
- package/dist/sankhyablocks/p-fec88660.entry.js +0 -1
|
@@ -2,245 +2,47 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index
|
|
5
|
+
const index = require('./index-1894343a.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
require('./DataFetcher-
|
|
8
|
-
require('./ISave-
|
|
9
|
-
const index = require('./index-e3e39724.js');
|
|
7
|
+
require('./DataFetcher-b3a8075d.js');
|
|
8
|
+
require('./ISave-4674c283.js');
|
|
9
|
+
const index$1 = require('./index-e3e39724.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-bcbc38c0.js');
|
|
13
13
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
14
|
-
require('./form-config-fetcher-
|
|
14
|
+
require('./form-config-fetcher-f80dbc3b.js');
|
|
15
15
|
const constants = require('./constants-6d82e405.js');
|
|
16
|
-
const authFetcher = require('./auth-fetcher-
|
|
16
|
+
const authFetcher = require('./auth-fetcher-0ecc53ff.js');
|
|
17
17
|
const ServicesNumberingConfig = require('./ServicesNumberingConfig-69038a0f.js');
|
|
18
18
|
const taskbarElements = require('./taskbar-elements-80eddec8.js');
|
|
19
|
+
const taskbarUtils = require('./taskbarUtils-38748460.js');
|
|
19
20
|
const filterValidate = require('./filter-validate-cb4ed41a.js');
|
|
20
21
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
21
22
|
const ContinuousInsertUtils = require('./ContinuousInsertUtils-1ae0c6ac.js');
|
|
22
23
|
require('./PrintUtils-bcaeb82f.js');
|
|
23
|
-
require('./SnkMessageBuilder-a9300ebe.js');
|
|
24
24
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
25
25
|
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
|
26
26
|
require('./ResourceIDUtils-5ff86aa7.js');
|
|
27
27
|
require('./index-f0fe7e6e.js');
|
|
28
28
|
|
|
29
|
-
class SimpleTaskbarProcessor {
|
|
30
|
-
/**
|
|
31
|
-
* Cria uma nova instância do processador de taskbar.
|
|
32
|
-
* @param defaultButtons - Array com os botões padrão a serem exibidos
|
|
33
|
-
*/
|
|
34
|
-
constructor(defaultButtons) {
|
|
35
|
-
this._defaultButtons = [];
|
|
36
|
-
this._defaultButtons = [...defaultButtons];
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Processa a taskbar aplicando regras de visibilidade e habilitação.
|
|
40
|
-
* @param taskbarID - Identificador único da taskbar
|
|
41
|
-
* @param taskbarManager - Gerenciador de taskbar com regras customizadas
|
|
42
|
-
* @param dataState - Estado atual dos dados
|
|
43
|
-
* @param disabledButtons - Array de botões desabilitados
|
|
44
|
-
* @param invisibleButtons - Array de botões invisíveis
|
|
45
|
-
*/
|
|
46
|
-
process(taskbarID, taskbarManager, dataState, disabledButtons = [], invisibleButtons = []) {
|
|
47
|
-
var _a;
|
|
48
|
-
this.taskbarID = taskbarID;
|
|
49
|
-
this.customButtons = new Map();
|
|
50
|
-
this.buttonsArray = [];
|
|
51
|
-
this.disabledButtons = [...disabledButtons];
|
|
52
|
-
(_a = this.getButtonsArray(taskbarManager, dataState)) === null || _a === void 0 ? void 0 : _a.forEach((btnDef) => {
|
|
53
|
-
let buttonName;
|
|
54
|
-
if (typeof btnDef === "string") {
|
|
55
|
-
buttonName = btnDef;
|
|
56
|
-
}
|
|
57
|
-
else {
|
|
58
|
-
this.customButtons.set(btnDef.name, btnDef);
|
|
59
|
-
buttonName = btnDef.name;
|
|
60
|
-
}
|
|
61
|
-
if (!invisibleButtons.includes(buttonName)) {
|
|
62
|
-
if (!this.isEnabled(taskbarManager, buttonName, dataState, disabledButtons)) {
|
|
63
|
-
this.disabledButtons.push(buttonName);
|
|
64
|
-
}
|
|
65
|
-
this.buttonsArray.push(buttonName);
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
this.buttons = this.buttonsArray.join(",");
|
|
69
|
-
}
|
|
70
|
-
getButtonsArray(taskbarManager, dataState) {
|
|
71
|
-
if (taskbarManager) {
|
|
72
|
-
return taskbarManager.getButtons(this.taskbarID, dataState, [...this._defaultButtons]);
|
|
73
|
-
}
|
|
74
|
-
return this._defaultButtons;
|
|
75
|
-
}
|
|
76
|
-
isEnabled(taskbarManager, buttonName, dataState, disabled) {
|
|
77
|
-
const originalValue = !disabled.includes(buttonName);
|
|
78
|
-
if (taskbarManager && taskbarManager.isEnabled) {
|
|
79
|
-
return taskbarManager.isEnabled(this.taskbarID, dataState, buttonName, originalValue);
|
|
80
|
-
}
|
|
81
|
-
return originalValue;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
const DEFAULT_TASKBAR_BUTTONS = [
|
|
86
|
-
taskbarElements.TaskbarElement.FORM_MODE,
|
|
87
|
-
taskbarElements.TaskbarElement.PREVIOUS,
|
|
88
|
-
taskbarElements.TaskbarElement.NEXT,
|
|
89
|
-
taskbarElements.TaskbarElement.REFRESH,
|
|
90
|
-
taskbarElements.TaskbarElement.SPACER,
|
|
91
|
-
taskbarElements.TaskbarElement.ACTIONS_BUTTON,
|
|
92
|
-
taskbarElements.TaskbarElement.DATA_EXPORTER,
|
|
93
|
-
taskbarElements.TaskbarElement.ATTACH,
|
|
94
|
-
taskbarElements.TaskbarElement.CLONE,
|
|
95
|
-
taskbarElements.TaskbarElement.UPDATE,
|
|
96
|
-
taskbarElements.TaskbarElement.REMOVE,
|
|
97
|
-
taskbarElements.TaskbarElement.INSERT,
|
|
98
|
-
taskbarElements.TaskbarElement.CONFIGURATOR,
|
|
99
|
-
taskbarElements.TaskbarElement.MORE_OPTIONS,
|
|
100
|
-
];
|
|
101
|
-
var CustomTaskbarButton;
|
|
102
|
-
(function (CustomTaskbarButton) {
|
|
103
|
-
CustomTaskbarButton["FILTER"] = "FILTER";
|
|
104
|
-
CustomTaskbarButton["ENTITY_SEARCH"] = "ENTITY_SEARCH";
|
|
105
|
-
})(CustomTaskbarButton || (CustomTaskbarButton = {}));
|
|
106
|
-
/**
|
|
107
|
-
* Insere os botões customizados à esquerda do elemento SPACER na lista de botões.
|
|
108
|
-
* Caso o SPACER não seja encontrado, os botões são inseridos no início da lista.
|
|
109
|
-
*/
|
|
110
|
-
function insertCustomButtonsBeforeSpacer(buttons, customButtons) {
|
|
111
|
-
const spacerIndex = buttons.findIndex(btn => btn === taskbarElements.TaskbarElement.SPACER || (typeof btn === 'string' && btn === 'SPACER'));
|
|
112
|
-
if (spacerIndex > -1) {
|
|
113
|
-
return [
|
|
114
|
-
...buttons.slice(0, spacerIndex),
|
|
115
|
-
...customButtons,
|
|
116
|
-
...buttons.slice(spacerIndex),
|
|
117
|
-
];
|
|
118
|
-
}
|
|
119
|
-
return [...customButtons, ...buttons];
|
|
120
|
-
}
|
|
121
|
-
function buildNativeTaskbarManager(currentViewMode, mergeTaskbarManager, messagesBuilder) {
|
|
122
|
-
var _a, _b;
|
|
123
|
-
const CUSTOM_BUTTONS = [
|
|
124
|
-
{
|
|
125
|
-
name: CustomTaskbarButton.FILTER,
|
|
126
|
-
hint: (_a = messagesBuilder === null || messagesBuilder === void 0 ? void 0 : messagesBuilder.getMessage("snkCrud.customButtons.filter")) !== null && _a !== void 0 ? _a : "Abre o painel de filtros",
|
|
127
|
-
iconName: "filter",
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
name: CustomTaskbarButton.ENTITY_SEARCH,
|
|
131
|
-
hint: (_b = messagesBuilder === null || messagesBuilder === void 0 ? void 0 : messagesBuilder.getMessage("snkCrud.customButtons.entitySearch")) !== null && _b !== void 0 ? _b : "Busca na entidade",
|
|
132
|
-
iconName: "search",
|
|
133
|
-
},
|
|
134
|
-
];
|
|
135
|
-
const EDITION_MODE_BUTTONS = [
|
|
136
|
-
taskbarElements.TaskbarElement.CANCEL,
|
|
137
|
-
taskbarElements.TaskbarElement.SAVE,
|
|
138
|
-
];
|
|
139
|
-
return {
|
|
140
|
-
getButtons: (taskbarID, dataState, defaultButtons) => {
|
|
141
|
-
var _a, _b;
|
|
142
|
-
if (!taskbarID) {
|
|
143
|
-
console.warn('taskbarID não fornecido');
|
|
144
|
-
return [];
|
|
145
|
-
}
|
|
146
|
-
const isInEditionMode = (dataState === null || dataState === void 0 ? void 0 : dataState.insertionMode) || (dataState === null || dataState === void 0 ? void 0 : dataState.isDirty);
|
|
147
|
-
if (isInEditionMode) {
|
|
148
|
-
return EDITION_MODE_BUTTONS;
|
|
149
|
-
}
|
|
150
|
-
if (currentViewMode === constants.VIEW_MODE.FORM) {
|
|
151
|
-
const indexFormMode = defaultButtons.indexOf(taskbarElements.TaskbarElement.FORM_MODE);
|
|
152
|
-
if (indexFormMode > -1) {
|
|
153
|
-
defaultButtons = [
|
|
154
|
-
...defaultButtons.slice(0, indexFormMode),
|
|
155
|
-
taskbarElements.TaskbarElement.GRID_MODE,
|
|
156
|
-
...defaultButtons.slice(indexFormMode + 1)
|
|
157
|
-
];
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
if (((_b = (_a = dataState === null || dataState === void 0 ? void 0 : dataState.selectionInfo) === null || _a === void 0 ? void 0 : _a.records) === null || _b === void 0 ? void 0 : _b.length) > 1) {
|
|
161
|
-
const indexUpdate = defaultButtons.indexOf(taskbarElements.TaskbarElement.UPDATE);
|
|
162
|
-
if (indexUpdate > -1) {
|
|
163
|
-
defaultButtons = [
|
|
164
|
-
...defaultButtons.slice(0, indexUpdate),
|
|
165
|
-
taskbarElements.TaskbarElement.UPDATE_MULTIPLE,
|
|
166
|
-
...defaultButtons.slice(indexUpdate + 1)
|
|
167
|
-
];
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
const defaultsWithCustomButtons = insertCustomButtonsBeforeSpacer(defaultButtons, CUSTOM_BUTTONS);
|
|
171
|
-
if (mergeTaskbarManager === null || mergeTaskbarManager === void 0 ? void 0 : mergeTaskbarManager.getButtons) {
|
|
172
|
-
return mergeTaskbarManager.getButtons(taskbarID, dataState, defaultsWithCustomButtons);
|
|
173
|
-
}
|
|
174
|
-
return defaultsWithCustomButtons;
|
|
175
|
-
},
|
|
176
|
-
isEnabled: (_, dataState, buttonName, originalValue) => {
|
|
177
|
-
var _a;
|
|
178
|
-
if (!dataState) {
|
|
179
|
-
return originalValue;
|
|
180
|
-
}
|
|
181
|
-
const hasSelectedRecord = dataState.selectedRecord !== undefined;
|
|
182
|
-
const buttonsRequiringSelection = [
|
|
183
|
-
taskbarElements.TaskbarElement.UPDATE,
|
|
184
|
-
taskbarElements.TaskbarElement.REMOVE,
|
|
185
|
-
taskbarElements.TaskbarElement.ATTACH,
|
|
186
|
-
taskbarElements.TaskbarElement.CLONE,
|
|
187
|
-
];
|
|
188
|
-
if (!hasSelectedRecord && buttonsRequiringSelection.includes(buttonName)) {
|
|
189
|
-
return false;
|
|
190
|
-
}
|
|
191
|
-
return (_a = mergeTaskbarManager === null || mergeTaskbarManager === void 0 ? void 0 : mergeTaskbarManager.isEnabled(_, dataState, buttonName, originalValue)) !== null && _a !== void 0 ? _a : originalValue;
|
|
192
|
-
},
|
|
193
|
-
getMoreOptions(taskbarId, configName, dataState, currentActions) {
|
|
194
|
-
var _a;
|
|
195
|
-
return (_a = mergeTaskbarManager === null || mergeTaskbarManager === void 0 ? void 0 : mergeTaskbarManager.getMoreOptions) === null || _a === void 0 ? void 0 : _a.call(mergeTaskbarManager, taskbarId, configName, dataState, currentActions);
|
|
196
|
-
},
|
|
197
|
-
};
|
|
198
|
-
}
|
|
199
|
-
function getHeaderTaskbarId(dataState, presentationMode) {
|
|
200
|
-
var _a;
|
|
201
|
-
const hasSelectedRecord = dataState && !!((_a = dataState.selectionInfo) === null || _a === void 0 ? void 0 : _a.length);
|
|
202
|
-
const taskbarIdPrefixLookup = {
|
|
203
|
-
primary: "snkGridHeaderTaskbar",
|
|
204
|
-
secondary: "snkGridHeaderTaskbar",
|
|
205
|
-
singleTaskbar: "snkGridHeaderTaskbar.singleTaskbar",
|
|
206
|
-
};
|
|
207
|
-
const taskbarIdPrefix = taskbarIdPrefixLookup[presentationMode];
|
|
208
|
-
let headerTaskbarId = hasSelectedRecord ? `${taskbarIdPrefix}.selected` : `${taskbarIdPrefix}.unselected`;
|
|
209
|
-
if ((dataState === null || dataState === void 0 ? void 0 : dataState.isDirty) && presentationMode === index.PresentationMode.SINGLE_TASKBAR) {
|
|
210
|
-
headerTaskbarId = "snkGridHeaderTaskbar.singleTaskbar.finish_edition";
|
|
211
|
-
}
|
|
212
|
-
return headerTaskbarId;
|
|
213
|
-
}
|
|
214
|
-
function getTopTaskBarId(dataState, presentationMode) {
|
|
215
|
-
const suffixLookup = {
|
|
216
|
-
primary: '',
|
|
217
|
-
secondary: '.secondary',
|
|
218
|
-
singleTaskbar: '.singleTaskbar',
|
|
219
|
-
};
|
|
220
|
-
const sufix = suffixLookup[presentationMode];
|
|
221
|
-
if (dataState === null || dataState === void 0 ? void 0 : dataState.isDirty) {
|
|
222
|
-
return `snkGridTopTaskbar.finish_edition${sufix}`;
|
|
223
|
-
}
|
|
224
|
-
return `snkGridTopTaskbar.regular${sufix}`;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
29
|
const snkCrudCss = ".sc-snk-crud-h{display:flex;flex-direction:column;height:100%;width:100%;overflow-y:auto;scrollbar-gutter:stable both-edges}snk-grid.sc-snk-crud{--snk-grid-padding:0 var(--space--6, 6px) var(--space--6, 6px) var(--space--6, 6px)}stack-item.sc-snk-crud.sc-snk-crud{display:grid;min-height:100%}.snk-crud__header.sc-snk-crud{margin-bottom:var(--space--10, 10px)}.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}ez-record-navigation.sc-snk-crud,ez-grid-pagination.sc-snk-crud{margin-bottom:var(--space--8, 8px)}";
|
|
228
30
|
|
|
229
31
|
const SnkCrud = class {
|
|
230
32
|
constructor(hostRef) {
|
|
231
|
-
index
|
|
232
|
-
this.snkShowGuide = index
|
|
233
|
-
this.actionClick = index
|
|
234
|
-
this.configuratorSave = index
|
|
235
|
-
this.configuratorCancel = index
|
|
236
|
-
this.formItemsReady = index
|
|
237
|
-
this.viewModeChanged = index
|
|
238
|
-
this.numberingConfigChanged = index
|
|
33
|
+
index.registerInstance(this, hostRef);
|
|
34
|
+
this.snkShowGuide = index.createEvent(this, "snkShowGuide", 7);
|
|
35
|
+
this.actionClick = index.createEvent(this, "actionClick", 7);
|
|
36
|
+
this.configuratorSave = index.createEvent(this, "configuratorSave", 7);
|
|
37
|
+
this.configuratorCancel = index.createEvent(this, "configuratorCancel", 7);
|
|
38
|
+
this.formItemsReady = index.createEvent(this, "formItemsReady", 7);
|
|
39
|
+
this.viewModeChanged = index.createEvent(this, "viewModeChanged", 7);
|
|
40
|
+
this.numberingConfigChanged = index.createEvent(this, "numberingConfigChanged", 7);
|
|
239
41
|
this._viewHistory = [];
|
|
240
42
|
this._customEditors = new Map();
|
|
241
43
|
this._customRenders = new Map();
|
|
242
|
-
this._taskbarProcessor = new SimpleTaskbarProcessor(DEFAULT_TASKBAR_BUTTONS);
|
|
243
|
-
this._taskbarCustomProcessor = new SimpleTaskbarProcessor([]);
|
|
44
|
+
this._taskbarProcessor = new taskbarUtils.SimpleTaskbarProcessor(taskbarUtils.DEFAULT_TASKBAR_BUTTONS);
|
|
45
|
+
this._taskbarCustomProcessor = new taskbarUtils.SimpleTaskbarProcessor([]);
|
|
244
46
|
this.dataUnitInterceptor = {
|
|
245
47
|
interceptAction: async (action) => {
|
|
246
48
|
switch (action.type) {
|
|
@@ -275,7 +77,7 @@ const SnkCrud = class {
|
|
|
275
77
|
this.recordsValidator = undefined;
|
|
276
78
|
this.statusResolver = undefined;
|
|
277
79
|
this.multipleSelection = true;
|
|
278
|
-
this.presentationMode = index.PresentationMode.PRIMARY;
|
|
80
|
+
this.presentationMode = index$1.PresentationMode.PRIMARY;
|
|
279
81
|
this.messagesBuilder = undefined;
|
|
280
82
|
this.useEnterLikeTab = false;
|
|
281
83
|
this.gridLegacyConfigName = undefined;
|
|
@@ -288,7 +90,7 @@ const SnkCrud = class {
|
|
|
288
90
|
this.domainMessagesBuilder = undefined;
|
|
289
91
|
this.ignoreReadOnlyFormFields = undefined;
|
|
290
92
|
this.setCustomFormTitle = undefined;
|
|
291
|
-
this.strategyExporter = index.ExporterStrategy.SERVER_SIDE;
|
|
93
|
+
this.strategyExporter = index$1.ExporterStrategy.SERVER_SIDE;
|
|
292
94
|
this.layoutFormConfig = true;
|
|
293
95
|
this.multipleEditionEnabled = true;
|
|
294
96
|
this.paginationCounterMode = 'auto';
|
|
@@ -410,9 +212,9 @@ const SnkCrud = class {
|
|
|
410
212
|
return this._snkConfigurator.open();
|
|
411
213
|
case taskbarElements.TaskbarElement.ATTACH:
|
|
412
214
|
return this._snkAttach.open();
|
|
413
|
-
case CustomTaskbarButton.FILTER:
|
|
215
|
+
case taskbarUtils.CustomTaskbarButton.FILTER:
|
|
414
216
|
return (_a = this._snkFilterBar) === null || _a === void 0 ? void 0 : _a.showFilterModal();
|
|
415
|
-
case CustomTaskbarButton.ENTITY_SEARCH:
|
|
217
|
+
case taskbarUtils.CustomTaskbarButton.ENTITY_SEARCH:
|
|
416
218
|
return this.openSearchPopover();
|
|
417
219
|
}
|
|
418
220
|
}
|
|
@@ -478,10 +280,10 @@ const SnkCrud = class {
|
|
|
478
280
|
}
|
|
479
281
|
}
|
|
480
282
|
initializeTaskbarProcessor() {
|
|
481
|
-
const nativeTaskbarManager = buildNativeTaskbarManager(this._currentViewMode, this.taskbarManager, this.messagesBuilder);
|
|
482
|
-
const topTaskbarId = getTopTaskBarId(this._dataState, this.presentationMode);
|
|
283
|
+
const nativeTaskbarManager = taskbarUtils.buildNativeTaskbarManager(this._currentViewMode, this.taskbarManager, this.messagesBuilder);
|
|
284
|
+
const topTaskbarId = taskbarUtils.getTopTaskBarId(this._dataState, this.presentationMode);
|
|
483
285
|
this._taskbarProcessor.process(topTaskbarId, nativeTaskbarManager, this._dataState, undefined, []);
|
|
484
|
-
const headerTaskbarId = getHeaderTaskbarId(this._dataState, this.presentationMode);
|
|
286
|
+
const headerTaskbarId = taskbarUtils.getHeaderTaskbarId(this._dataState, this.presentationMode);
|
|
485
287
|
this._taskbarCustomProcessor.process(headerTaskbarId, this.taskbarManager, this._dataState, undefined, []);
|
|
486
288
|
}
|
|
487
289
|
componentWillRender() {
|
|
@@ -730,7 +532,7 @@ const SnkCrud = class {
|
|
|
730
532
|
renderCustomGuideSlots() {
|
|
731
533
|
if (!this.customGuidesConfig)
|
|
732
534
|
return;
|
|
733
|
-
return this.customGuidesConfig.map(g => index
|
|
535
|
+
return this.customGuidesConfig.map(g => index.h("slot", { name: g.id }));
|
|
734
536
|
}
|
|
735
537
|
getColumnSearch(item) {
|
|
736
538
|
if (this._columnSearch != undefined) {
|
|
@@ -775,7 +577,7 @@ const SnkCrud = class {
|
|
|
775
577
|
if (this.isGridInsertActive())
|
|
776
578
|
return hardList;
|
|
777
579
|
if (this.taskbarManager != undefined && this.taskbarManager.getMoreOptions != undefined) {
|
|
778
|
-
const taskbarID = getTopTaskBarId(this._dataState, this.presentationMode);
|
|
580
|
+
const taskbarID = taskbarUtils.getTopTaskBarId(this._dataState, this.presentationMode);
|
|
779
581
|
return hardList.concat(this.taskbarManager.getMoreOptions(taskbarID, this.configName, this._dataState, this.actionsList));
|
|
780
582
|
}
|
|
781
583
|
return hardList.concat(this.actionsList);
|
|
@@ -784,7 +586,7 @@ const SnkCrud = class {
|
|
|
784
586
|
if (!this._popoverSearchEntity) {
|
|
785
587
|
return;
|
|
786
588
|
}
|
|
787
|
-
const buttonElement = this._element.querySelector(`[data-taskbar-element="${CustomTaskbarButton.ENTITY_SEARCH}"]`);
|
|
589
|
+
const buttonElement = this._element.querySelector(`[data-taskbar-element="${taskbarUtils.CustomTaskbarButton.ENTITY_SEARCH}"]`);
|
|
788
590
|
await this._popoverSearchEntity.showUnder(buttonElement);
|
|
789
591
|
}
|
|
790
592
|
handleLoadedSearch(evt) {
|
|
@@ -797,7 +599,7 @@ const SnkCrud = class {
|
|
|
797
599
|
var _a;
|
|
798
600
|
if (!this.showEntitySearch)
|
|
799
601
|
return;
|
|
800
|
-
return (index
|
|
602
|
+
return (index.h("snk-entity-search", { ref: (ref) => this._popoverSearchEntity = ref, dataUnit: this._dataUnit, entityName: (_a = this._snkDataUnit) === null || _a === void 0 ? void 0 : _a.entityName, messagesBuilder: this.messagesBuilder, onLoaded: (evt) => this.handleLoadedSearch(evt) }));
|
|
801
603
|
}
|
|
802
604
|
handleFilterConfigUpdated(filterConfig) {
|
|
803
605
|
if (!filterConfig.length) {
|
|
@@ -813,9 +615,9 @@ const SnkCrud = class {
|
|
|
813
615
|
return;
|
|
814
616
|
}
|
|
815
617
|
this._snkDataUnit.ignoreSaveMessage = (this._currentViewMode === constants.VIEW_MODE.GRID && !this.enableGridInsert);
|
|
816
|
-
return (index
|
|
618
|
+
return (index.h(index.Host, null, index.h("header", { class: { 'snk-crud--hidden': !this._headerVisible, 'snk-crud__header': true } }, index.h("div", { class: "snk-crud__header-top" }, index.h("snk-taskbar", { "data-element-id": "grid_top", key: "snkGridTopTaskbar", configName: this.configName, dataUnit: this._dataUnit, messagesBuilder: this.messagesBuilder, buttons: this._taskbarProcessor.buttons, disabledButtons: this._taskbarProcessor.disabledButtons, customButtons: this._taskbarProcessor.customButtons, resourceID: this._resourceID, primaryButton: "INSERT", overflowStrategy: "hiddenItems", alignRigth: true, actionsList: this.getActionsList(), customActionsList: this.buildTaskbarCustomActionsList(), sizeButtons: 'medium' })), index.h("snk-filter-bar", { ref: (ref) => this._snkFilterBar = ref, title: this.filterBarTitle, dataUnit: this._dataUnit, "data-element-id": "gridFilter", class: "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, mode: this._filterMode, hideFilterButton: true, sizeChips: 'default' })), index.h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "crud" }, index.h("stack-item", { class: 'snk-crud__grid-stack-item' }, index.h("snk-grid", { ref: (ref) => this._snkGrid = ref, class: 'ez-flex ez-flex--column ez-size-height--full ez-size-width--full', filterBarTitle: this.filterBarTitle, "data-element-id": "crud_grid", configName: this.configName, onGridDoubleClick: () => this.gridToForm(true), taskbarManager: this.taskbarManager, onActionClick: evt => this.executeAction(evt.detail), messagesBuilder: this.messagesBuilder, actionsList: this.actionsList, statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, presentationMode: this.presentationMode, recordsValidator: this.recordsValidator, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, canEdit: this._canEdit, resourceID: this._resourceID, disablePersonalizedFilter: this.disablePersonalizedFilter, gridLegacyConfigName: this.gridLegacyConfigName, filterBarLegacyConfigName: this.filterBarLegacyConfigName, autoLoad: this.autoLoad, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, strategyExporter: this.strategyExporter, multipleEditionEnabled: this.multipleEditionEnabled, paginationCounterMode: this.paginationCounterMode, hideHeader: true, hideGridTaskbar: true }, index.h("slot", { name: "GRID_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "GRID_HEADER_CUSTOM_ELEMENTS" }), index.h("slot", { name: "SnkGridHeader" }), index.h("slot", { name: "SnkGridFooter" }), index.h("slot", { name: "SnkGridTaskBar" }))), index.h("stack-item", null, index.h("snk-guides-viewer", { ref: ref => this._guidesViewer = ref, customGuidesConfig: this.customGuidesConfig, entityPath: this._snkDataUnit.entityName, messagesBuilder: this.messagesBuilder, onExit: () => this.setViewMode(constants.VIEW_MODE.GRID), dataState: this._dataState, dataUnit: this._dataUnit, actionsList: this.actionsList, taskbarManager: this.taskbarManager, configName: this.configName, onActionClick: evt => this.executeAction(evt.detail), presentationMode: this.presentationMode, "data-element-id": "crud_form", canEdit: this._canEdit, recordsValidator: this.recordsValidator, resourceID: this._resourceID, detailTaskbarCustomContainerId: this.customContainerId, formLegacyConfigName: this.formLegacyConfigName, enableGridInsert: this.enableGridInsert, getCustomTitle: this.setCustomFormTitle, ignoreReadOnlyFormFields: this.ignoreReadOnlyFormFields, onFormConfigVisibilityChanged: evt => this._headerVisible = !evt.detail }, index.h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }), this.renderCustomGuideSlots(), index.h("slot", { name: "SnkFormTaskBar" })))), index.h("snk-attach", { ref: (ref) => this._snkAttach = ref, registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this._snkDataUnit.entityName }), index.h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, entityName: this._snkDataUnit.entityName, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.setViewMode(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showActionButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this._resourceID, customContainerId: this.customContainerId, layoutFormConfig: this.layoutFormConfig }), this.renderDynamicSearch(), index.h("div", { id: `${this.customContainerId}` }, index.h("slot", { name: "SnkConfigContainerSlot" }), index.h("slot", { name: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS" }), index.h("slot", { name: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }))));
|
|
817
619
|
}
|
|
818
|
-
get _element() { return index
|
|
620
|
+
get _element() { return index.getElement(this); }
|
|
819
621
|
static get watchers() { return {
|
|
820
622
|
"_currentViewMode": ["currentViewModeWatcher"]
|
|
821
623
|
}; }
|
|
@@ -8,16 +8,15 @@ const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
|
8
8
|
const IFetchDataExporterParams = require('./IFetchDataExporterParams-e78ec415.js');
|
|
9
9
|
const index = require('./index-e3e39724.js');
|
|
10
10
|
const constants = require('./constants-6d82e405.js');
|
|
11
|
-
const DataFetcher = require('./DataFetcher-
|
|
12
|
-
const snkDataUnit = require('./snk-data-unit-
|
|
13
|
-
require('./ISave-
|
|
11
|
+
const DataFetcher = require('./DataFetcher-b3a8075d.js');
|
|
12
|
+
const snkDataUnit = require('./snk-data-unit-3b94547d.js');
|
|
13
|
+
require('./ISave-4674c283.js');
|
|
14
14
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
15
15
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
16
|
-
require('./dataunit-fetcher-
|
|
16
|
+
require('./dataunit-fetcher-bcbc38c0.js');
|
|
17
17
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
18
|
-
require('./form-config-fetcher-
|
|
18
|
+
require('./form-config-fetcher-f80dbc3b.js');
|
|
19
19
|
require('./PrintUtils-bcaeb82f.js');
|
|
20
|
-
require('./SnkMessageBuilder-a9300ebe.js');
|
|
21
20
|
require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
|
|
22
21
|
require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
|
|
23
22
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
const index = require('./index-1894343a.js');
|
|
4
4
|
const core = require('@sankhyalabs/core');
|
|
5
5
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
6
|
-
const
|
|
7
|
-
const dataunitFetcher = require('./dataunit-fetcher-
|
|
6
|
+
const DataFetcher = require('./DataFetcher-b3a8075d.js');
|
|
7
|
+
const dataunitFetcher = require('./dataunit-fetcher-bcbc38c0.js');
|
|
8
8
|
const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
|
|
9
9
|
const GetSelectedRecordsIDsInfo = require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
|
|
10
10
|
|
|
@@ -700,7 +700,7 @@ const SnkDataUnit = class {
|
|
|
700
700
|
this.dataState = await this.buildDataState();
|
|
701
701
|
let saveOperation = changes[0]._operation.toLowerCase();
|
|
702
702
|
if (saveOperation == 'copy') {
|
|
703
|
-
saveOperation =
|
|
703
|
+
saveOperation = DataFetcher.OperationMap.CLONE;
|
|
704
704
|
}
|
|
705
705
|
if (this.canIgnoreOperationMessage(saveOperation))
|
|
706
706
|
return;
|
|
@@ -713,7 +713,7 @@ const SnkDataUnit = class {
|
|
|
713
713
|
return this.ignoreSaveMessage && !this.isCloneOrInsertOperation(saveOperation);
|
|
714
714
|
}
|
|
715
715
|
isCloneOrInsertOperation(saveOperation) {
|
|
716
|
-
return [
|
|
716
|
+
return [DataFetcher.OperationMap.CLONE, DataFetcher.OperationMap.INSERT].includes(saveOperation);
|
|
717
717
|
}
|
|
718
718
|
buildOperationMessage(saveOperation, records) {
|
|
719
719
|
if (this.isMultiplesUpdate(saveOperation, records)) {
|
|
@@ -728,10 +728,10 @@ const SnkDataUnit = class {
|
|
|
728
728
|
* de um registro se trata de uma chave composta.
|
|
729
729
|
*/
|
|
730
730
|
const key = `snkDataUnit.${isCancel ? 'cancelInfo' : 'saveInfo'}`;
|
|
731
|
-
return this.getMessage(key, { records: records },
|
|
731
|
+
return this.getMessage(key, { records: records }, DataFetcher.OperationMap.UPDATE_MULTIPLES);
|
|
732
732
|
}
|
|
733
733
|
isMultiplesUpdate(saveOperation, records) {
|
|
734
|
-
return saveOperation ===
|
|
734
|
+
return saveOperation === DataFetcher.OperationMap.UPDATE && records.length > 1;
|
|
735
735
|
}
|
|
736
736
|
handleRecordsRemoved(action) {
|
|
737
737
|
var _a, _b;
|
|
@@ -776,15 +776,15 @@ const SnkDataUnit = class {
|
|
|
776
776
|
}
|
|
777
777
|
getMessageOperation() {
|
|
778
778
|
if (this.dataState.copyMode) {
|
|
779
|
-
return
|
|
779
|
+
return DataFetcher.OperationMap.CLONE;
|
|
780
780
|
}
|
|
781
781
|
if (this.dataState.insertionMode || this.dataState.isStartingInsertionMode) {
|
|
782
|
-
return
|
|
782
|
+
return DataFetcher.OperationMap.INSERT;
|
|
783
783
|
}
|
|
784
784
|
if (this.dataState.isDirty) {
|
|
785
|
-
return
|
|
785
|
+
return DataFetcher.OperationMap.UPDATE;
|
|
786
786
|
}
|
|
787
|
-
return
|
|
787
|
+
return DataFetcher.OperationMap.CLEAN;
|
|
788
788
|
}
|
|
789
789
|
async getDataUnitParentOrChild() {
|
|
790
790
|
var _a;
|
|
@@ -887,7 +887,7 @@ const SnkDataUnit = class {
|
|
|
887
887
|
if (this.messagesBuilder) {
|
|
888
888
|
return;
|
|
889
889
|
}
|
|
890
|
-
this.messagesBuilder = new
|
|
890
|
+
this.messagesBuilder = new DataFetcher.SnkMessageBuilder((_a = this.domainMessagesBuilder) !== null && _a !== void 0 ? _a : this.entityName);
|
|
891
891
|
}
|
|
892
892
|
//---------------------------------------------
|
|
893
893
|
// Lifecycle web component
|
|
@@ -2,15 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const snkDataUnit = require('./snk-data-unit-
|
|
5
|
+
const snkDataUnit = require('./snk-data-unit-3b94547d.js');
|
|
6
6
|
require('./index-1894343a.js');
|
|
7
7
|
require('@sankhyalabs/core');
|
|
8
8
|
require('@sankhyalabs/ezui/dist/collection/utils');
|
|
9
|
-
require('./
|
|
10
|
-
require('./dataunit-fetcher-b9822794.js');
|
|
11
|
-
require('./DataFetcher-384d2ce8.js');
|
|
9
|
+
require('./DataFetcher-b3a8075d.js');
|
|
12
10
|
require('./PrintUtils-bcaeb82f.js');
|
|
13
11
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
12
|
+
require('./dataunit-fetcher-bcbc38c0.js');
|
|
14
13
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
15
14
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
16
15
|
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
|
@@ -4,22 +4,21 @@ 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 SnkFormConfigManager = require('./SnkFormConfigManager-
|
|
7
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-c3a49038.js');
|
|
8
8
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
|
9
|
-
require('./DataFetcher-
|
|
10
|
-
require('./ISave-
|
|
9
|
+
const DataFetcher = require('./DataFetcher-b3a8075d.js');
|
|
10
|
+
require('./ISave-4674c283.js');
|
|
11
11
|
const index$1 = require('./index-e3e39724.js');
|
|
12
12
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
13
13
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
14
|
-
require('./dataunit-fetcher-
|
|
14
|
+
require('./dataunit-fetcher-bcbc38c0.js');
|
|
15
15
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
16
|
-
require('./form-config-fetcher-
|
|
16
|
+
require('./form-config-fetcher-f80dbc3b.js');
|
|
17
17
|
const constants = require('./constants-6d82e405.js');
|
|
18
18
|
const taskbarElements = require('./taskbar-elements-80eddec8.js');
|
|
19
|
-
const snkGuidesViewer = require('./snk-guides-viewer-
|
|
20
|
-
const SnkMessageBuilder = require('./SnkMessageBuilder-a9300ebe.js');
|
|
19
|
+
const snkGuidesViewer = require('./snk-guides-viewer-3054d541.js');
|
|
21
20
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
22
|
-
require('./ConfigStorage-
|
|
21
|
+
require('./ConfigStorage-4201dd3d.js');
|
|
23
22
|
require('./PrintUtils-bcaeb82f.js');
|
|
24
23
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
25
24
|
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
|
@@ -33,7 +32,7 @@ class GuideBuilder {
|
|
|
33
32
|
this._dataUnit = dataUnit;
|
|
34
33
|
this._messageBuilder = messageBuilder;
|
|
35
34
|
if (!this._messageBuilder) {
|
|
36
|
-
this._messageBuilder = new
|
|
35
|
+
this._messageBuilder = new DataFetcher.SnkMessageBuilder();
|
|
37
36
|
}
|
|
38
37
|
}
|
|
39
38
|
get id() {
|
|
@@ -76,7 +75,7 @@ class GuideBuilder {
|
|
|
76
75
|
}
|
|
77
76
|
}
|
|
78
77
|
|
|
79
|
-
const snkDetailViewCss = ".sc-snk-detail-view-h{display:flex;row-gap:24px;flex-direction:column;width:100%;height:100%}.level-path.sc-snk-detail-view{color:var(--color--title-primary, #2B3A54);font-weight:var(--text-weight--medium, 400);padding-right:3px}.form-taskbar.sc-snk-detail-view{padding-bottom:var(--space--medium)}.grid-container.sc-snk-detail-view{background-color:#FFF;min-height:100px;height:100%}.detail-header.sc-snk-detail-view{padding-bottom:0}snk-data-unit.sc-snk-detail-view{flex:1}snk-grid.sc-snk-detail-view{height:calc(100% -
|
|
78
|
+
const snkDetailViewCss = ".sc-snk-detail-view-h{display:flex;row-gap:24px;flex-direction:column;width:100%;height:100%}.level-path.sc-snk-detail-view{color:var(--color--title-primary, #2B3A54);font-weight:var(--text-weight--medium, 400);padding-right:3px}.form-taskbar.sc-snk-detail-view{padding-bottom:var(--space--medium)}.grid-container.sc-snk-detail-view{background-color:#FFF;min-height:100px;height:100%}.detail-header.sc-snk-detail-view{padding-bottom:0}snk-data-unit.sc-snk-detail-view{flex:1}snk-grid.sc-snk-detail-view{height:calc(100% - 56px);--snk-grid__header-padding:var(--space--4, 4px);--snk-grid-padding:var(--space--8, 8px);--snk-grid-box-shadow:unset}";
|
|
80
79
|
|
|
81
80
|
const SnkDetailView = class {
|
|
82
81
|
constructor(hostRef) {
|
|
@@ -307,7 +306,7 @@ const SnkDetailView = class {
|
|
|
307
306
|
this.formConfigManager = new SnkFormConfigManager.SnkFormConfigManager(this._configName, this.resourceID, () => this.loadMetadata(), this.dataUnit);
|
|
308
307
|
this.formConfigManager.loadConfig();
|
|
309
308
|
if (this.messagesBuilder == undefined) {
|
|
310
|
-
this.messagesBuilder = new
|
|
309
|
+
this.messagesBuilder = new DataFetcher.SnkMessageBuilder(this.entityName);
|
|
311
310
|
}
|
|
312
311
|
}
|
|
313
312
|
async componentDidLoad() {
|
|
@@ -324,6 +323,12 @@ const SnkDetailView = class {
|
|
|
324
323
|
this.addErrorBadgeToBranchGuide();
|
|
325
324
|
}
|
|
326
325
|
else if (action.type === core.Action.DATA_LOADED) {
|
|
326
|
+
this.handleDataLoaded();
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
handleDataLoaded() {
|
|
330
|
+
var _a;
|
|
331
|
+
if (!((_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getSelectedRecord())) {
|
|
327
332
|
this.dataUnit.selectFirst();
|
|
328
333
|
}
|
|
329
334
|
}
|