@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
|
@@ -11,6 +11,7 @@ import { V as VIEW_MODE } from './constants.js';
|
|
|
11
11
|
import { A as AutorizationType } from './auth-fetcher.js';
|
|
12
12
|
import { S as ServicesNumberingConfig, d as defineCustomElement$c } from './snk-numbering-config2.js';
|
|
13
13
|
import { T as TaskbarElement, d as defineCustomElement$6 } from './snk-taskbar2.js';
|
|
14
|
+
import { S as SimpleTaskbarProcessor, D as DEFAULT_TASKBAR_BUTTONS, C as CustomTaskbarButton, b as buildNativeTaskbarManager, g as getTopTaskBarId, a as getHeaderTaskbarId } from './taskbarUtils.js';
|
|
14
15
|
import { v as validateFilters, d as defineCustomElement$n } from './snk-filter-modal2.js';
|
|
15
16
|
import { buildFieldSearch } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
16
17
|
import { C as ContinuousInsertUtils } from './ContinuousInsertUtils.js';
|
|
@@ -57,204 +58,6 @@ import { d as defineCustomElement$4 } from './snk-view-representation2.js';
|
|
|
57
58
|
import { d as defineCustomElement$3 } from './taskbar-actions-button2.js';
|
|
58
59
|
import { d as defineCustomElement$2 } from './taskbar-split-button2.js';
|
|
59
60
|
|
|
60
|
-
class SimpleTaskbarProcessor {
|
|
61
|
-
/**
|
|
62
|
-
* Cria uma nova instância do processador de taskbar.
|
|
63
|
-
* @param defaultButtons - Array com os botões padrão a serem exibidos
|
|
64
|
-
*/
|
|
65
|
-
constructor(defaultButtons) {
|
|
66
|
-
this._defaultButtons = [];
|
|
67
|
-
this._defaultButtons = [...defaultButtons];
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Processa a taskbar aplicando regras de visibilidade e habilitação.
|
|
71
|
-
* @param taskbarID - Identificador único da taskbar
|
|
72
|
-
* @param taskbarManager - Gerenciador de taskbar com regras customizadas
|
|
73
|
-
* @param dataState - Estado atual dos dados
|
|
74
|
-
* @param disabledButtons - Array de botões desabilitados
|
|
75
|
-
* @param invisibleButtons - Array de botões invisíveis
|
|
76
|
-
*/
|
|
77
|
-
process(taskbarID, taskbarManager, dataState, disabledButtons = [], invisibleButtons = []) {
|
|
78
|
-
var _a;
|
|
79
|
-
this.taskbarID = taskbarID;
|
|
80
|
-
this.customButtons = new Map();
|
|
81
|
-
this.buttonsArray = [];
|
|
82
|
-
this.disabledButtons = [...disabledButtons];
|
|
83
|
-
(_a = this.getButtonsArray(taskbarManager, dataState)) === null || _a === void 0 ? void 0 : _a.forEach((btnDef) => {
|
|
84
|
-
let buttonName;
|
|
85
|
-
if (typeof btnDef === "string") {
|
|
86
|
-
buttonName = btnDef;
|
|
87
|
-
}
|
|
88
|
-
else {
|
|
89
|
-
this.customButtons.set(btnDef.name, btnDef);
|
|
90
|
-
buttonName = btnDef.name;
|
|
91
|
-
}
|
|
92
|
-
if (!invisibleButtons.includes(buttonName)) {
|
|
93
|
-
if (!this.isEnabled(taskbarManager, buttonName, dataState, disabledButtons)) {
|
|
94
|
-
this.disabledButtons.push(buttonName);
|
|
95
|
-
}
|
|
96
|
-
this.buttonsArray.push(buttonName);
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
this.buttons = this.buttonsArray.join(",");
|
|
100
|
-
}
|
|
101
|
-
getButtonsArray(taskbarManager, dataState) {
|
|
102
|
-
if (taskbarManager) {
|
|
103
|
-
return taskbarManager.getButtons(this.taskbarID, dataState, [...this._defaultButtons]);
|
|
104
|
-
}
|
|
105
|
-
return this._defaultButtons;
|
|
106
|
-
}
|
|
107
|
-
isEnabled(taskbarManager, buttonName, dataState, disabled) {
|
|
108
|
-
const originalValue = !disabled.includes(buttonName);
|
|
109
|
-
if (taskbarManager && taskbarManager.isEnabled) {
|
|
110
|
-
return taskbarManager.isEnabled(this.taskbarID, dataState, buttonName, originalValue);
|
|
111
|
-
}
|
|
112
|
-
return originalValue;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
const DEFAULT_TASKBAR_BUTTONS = [
|
|
117
|
-
TaskbarElement.FORM_MODE,
|
|
118
|
-
TaskbarElement.PREVIOUS,
|
|
119
|
-
TaskbarElement.NEXT,
|
|
120
|
-
TaskbarElement.REFRESH,
|
|
121
|
-
TaskbarElement.SPACER,
|
|
122
|
-
TaskbarElement.ACTIONS_BUTTON,
|
|
123
|
-
TaskbarElement.DATA_EXPORTER,
|
|
124
|
-
TaskbarElement.ATTACH,
|
|
125
|
-
TaskbarElement.CLONE,
|
|
126
|
-
TaskbarElement.UPDATE,
|
|
127
|
-
TaskbarElement.REMOVE,
|
|
128
|
-
TaskbarElement.INSERT,
|
|
129
|
-
TaskbarElement.CONFIGURATOR,
|
|
130
|
-
TaskbarElement.MORE_OPTIONS,
|
|
131
|
-
];
|
|
132
|
-
var CustomTaskbarButton;
|
|
133
|
-
(function (CustomTaskbarButton) {
|
|
134
|
-
CustomTaskbarButton["FILTER"] = "FILTER";
|
|
135
|
-
CustomTaskbarButton["ENTITY_SEARCH"] = "ENTITY_SEARCH";
|
|
136
|
-
})(CustomTaskbarButton || (CustomTaskbarButton = {}));
|
|
137
|
-
/**
|
|
138
|
-
* Insere os botões customizados à esquerda do elemento SPACER na lista de botões.
|
|
139
|
-
* Caso o SPACER não seja encontrado, os botões são inseridos no início da lista.
|
|
140
|
-
*/
|
|
141
|
-
function insertCustomButtonsBeforeSpacer(buttons, customButtons) {
|
|
142
|
-
const spacerIndex = buttons.findIndex(btn => btn === TaskbarElement.SPACER || (typeof btn === 'string' && btn === 'SPACER'));
|
|
143
|
-
if (spacerIndex > -1) {
|
|
144
|
-
return [
|
|
145
|
-
...buttons.slice(0, spacerIndex),
|
|
146
|
-
...customButtons,
|
|
147
|
-
...buttons.slice(spacerIndex),
|
|
148
|
-
];
|
|
149
|
-
}
|
|
150
|
-
return [...customButtons, ...buttons];
|
|
151
|
-
}
|
|
152
|
-
function buildNativeTaskbarManager(currentViewMode, mergeTaskbarManager, messagesBuilder) {
|
|
153
|
-
var _a, _b;
|
|
154
|
-
const CUSTOM_BUTTONS = [
|
|
155
|
-
{
|
|
156
|
-
name: CustomTaskbarButton.FILTER,
|
|
157
|
-
hint: (_a = messagesBuilder === null || messagesBuilder === void 0 ? void 0 : messagesBuilder.getMessage("snkCrud.customButtons.filter")) !== null && _a !== void 0 ? _a : "Abre o painel de filtros",
|
|
158
|
-
iconName: "filter",
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
name: CustomTaskbarButton.ENTITY_SEARCH,
|
|
162
|
-
hint: (_b = messagesBuilder === null || messagesBuilder === void 0 ? void 0 : messagesBuilder.getMessage("snkCrud.customButtons.entitySearch")) !== null && _b !== void 0 ? _b : "Busca na entidade",
|
|
163
|
-
iconName: "search",
|
|
164
|
-
},
|
|
165
|
-
];
|
|
166
|
-
const EDITION_MODE_BUTTONS = [
|
|
167
|
-
TaskbarElement.CANCEL,
|
|
168
|
-
TaskbarElement.SAVE,
|
|
169
|
-
];
|
|
170
|
-
return {
|
|
171
|
-
getButtons: (taskbarID, dataState, defaultButtons) => {
|
|
172
|
-
var _a, _b;
|
|
173
|
-
if (!taskbarID) {
|
|
174
|
-
console.warn('taskbarID não fornecido');
|
|
175
|
-
return [];
|
|
176
|
-
}
|
|
177
|
-
const isInEditionMode = (dataState === null || dataState === void 0 ? void 0 : dataState.insertionMode) || (dataState === null || dataState === void 0 ? void 0 : dataState.isDirty);
|
|
178
|
-
if (isInEditionMode) {
|
|
179
|
-
return EDITION_MODE_BUTTONS;
|
|
180
|
-
}
|
|
181
|
-
if (currentViewMode === VIEW_MODE.FORM) {
|
|
182
|
-
const indexFormMode = defaultButtons.indexOf(TaskbarElement.FORM_MODE);
|
|
183
|
-
if (indexFormMode > -1) {
|
|
184
|
-
defaultButtons = [
|
|
185
|
-
...defaultButtons.slice(0, indexFormMode),
|
|
186
|
-
TaskbarElement.GRID_MODE,
|
|
187
|
-
...defaultButtons.slice(indexFormMode + 1)
|
|
188
|
-
];
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
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) {
|
|
192
|
-
const indexUpdate = defaultButtons.indexOf(TaskbarElement.UPDATE);
|
|
193
|
-
if (indexUpdate > -1) {
|
|
194
|
-
defaultButtons = [
|
|
195
|
-
...defaultButtons.slice(0, indexUpdate),
|
|
196
|
-
TaskbarElement.UPDATE_MULTIPLE,
|
|
197
|
-
...defaultButtons.slice(indexUpdate + 1)
|
|
198
|
-
];
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
const defaultsWithCustomButtons = insertCustomButtonsBeforeSpacer(defaultButtons, CUSTOM_BUTTONS);
|
|
202
|
-
if (mergeTaskbarManager === null || mergeTaskbarManager === void 0 ? void 0 : mergeTaskbarManager.getButtons) {
|
|
203
|
-
return mergeTaskbarManager.getButtons(taskbarID, dataState, defaultsWithCustomButtons);
|
|
204
|
-
}
|
|
205
|
-
return defaultsWithCustomButtons;
|
|
206
|
-
},
|
|
207
|
-
isEnabled: (_, dataState, buttonName, originalValue) => {
|
|
208
|
-
var _a;
|
|
209
|
-
if (!dataState) {
|
|
210
|
-
return originalValue;
|
|
211
|
-
}
|
|
212
|
-
const hasSelectedRecord = dataState.selectedRecord !== undefined;
|
|
213
|
-
const buttonsRequiringSelection = [
|
|
214
|
-
TaskbarElement.UPDATE,
|
|
215
|
-
TaskbarElement.REMOVE,
|
|
216
|
-
TaskbarElement.ATTACH,
|
|
217
|
-
TaskbarElement.CLONE,
|
|
218
|
-
];
|
|
219
|
-
if (!hasSelectedRecord && buttonsRequiringSelection.includes(buttonName)) {
|
|
220
|
-
return false;
|
|
221
|
-
}
|
|
222
|
-
return (_a = mergeTaskbarManager === null || mergeTaskbarManager === void 0 ? void 0 : mergeTaskbarManager.isEnabled(_, dataState, buttonName, originalValue)) !== null && _a !== void 0 ? _a : originalValue;
|
|
223
|
-
},
|
|
224
|
-
getMoreOptions(taskbarId, configName, dataState, currentActions) {
|
|
225
|
-
var _a;
|
|
226
|
-
return (_a = mergeTaskbarManager === null || mergeTaskbarManager === void 0 ? void 0 : mergeTaskbarManager.getMoreOptions) === null || _a === void 0 ? void 0 : _a.call(mergeTaskbarManager, taskbarId, configName, dataState, currentActions);
|
|
227
|
-
},
|
|
228
|
-
};
|
|
229
|
-
}
|
|
230
|
-
function getHeaderTaskbarId(dataState, presentationMode) {
|
|
231
|
-
var _a;
|
|
232
|
-
const hasSelectedRecord = dataState && !!((_a = dataState.selectionInfo) === null || _a === void 0 ? void 0 : _a.length);
|
|
233
|
-
const taskbarIdPrefixLookup = {
|
|
234
|
-
primary: "snkGridHeaderTaskbar",
|
|
235
|
-
secondary: "snkGridHeaderTaskbar",
|
|
236
|
-
singleTaskbar: "snkGridHeaderTaskbar.singleTaskbar",
|
|
237
|
-
};
|
|
238
|
-
const taskbarIdPrefix = taskbarIdPrefixLookup[presentationMode];
|
|
239
|
-
let headerTaskbarId = hasSelectedRecord ? `${taskbarIdPrefix}.selected` : `${taskbarIdPrefix}.unselected`;
|
|
240
|
-
if ((dataState === null || dataState === void 0 ? void 0 : dataState.isDirty) && presentationMode === PresentationMode.SINGLE_TASKBAR) {
|
|
241
|
-
headerTaskbarId = "snkGridHeaderTaskbar.singleTaskbar.finish_edition";
|
|
242
|
-
}
|
|
243
|
-
return headerTaskbarId;
|
|
244
|
-
}
|
|
245
|
-
function getTopTaskBarId(dataState, presentationMode) {
|
|
246
|
-
const suffixLookup = {
|
|
247
|
-
primary: '',
|
|
248
|
-
secondary: '.secondary',
|
|
249
|
-
singleTaskbar: '.singleTaskbar',
|
|
250
|
-
};
|
|
251
|
-
const sufix = suffixLookup[presentationMode];
|
|
252
|
-
if (dataState === null || dataState === void 0 ? void 0 : dataState.isDirty) {
|
|
253
|
-
return `snkGridTopTaskbar.finish_edition${sufix}`;
|
|
254
|
-
}
|
|
255
|
-
return `snkGridTopTaskbar.regular${sufix}`;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
61
|
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)}";
|
|
259
62
|
|
|
260
63
|
const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
@@ -56,7 +56,7 @@ import { d as defineCustomElement$3 } from './taskbar-actions-button2.js';
|
|
|
56
56
|
import { d as defineCustomElement$2 } from './taskbar-split-button2.js';
|
|
57
57
|
import { d as defineCustomElement$j } from './snk-form-config2.js';
|
|
58
58
|
|
|
59
|
-
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:
|
|
59
|
+
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}";
|
|
60
60
|
|
|
61
61
|
const FORM_NAME_PREFIX = "__FORM:";
|
|
62
62
|
const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
@@ -899,7 +899,7 @@ class GuideBuilder {
|
|
|
899
899
|
}
|
|
900
900
|
}
|
|
901
901
|
|
|
902
|
-
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% -
|
|
902
|
+
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}";
|
|
903
903
|
|
|
904
904
|
const SnkDetailView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
905
905
|
constructor() {
|
|
@@ -1148,6 +1148,12 @@ const SnkDetailView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
1148
1148
|
this.addErrorBadgeToBranchGuide();
|
|
1149
1149
|
}
|
|
1150
1150
|
else if (action.type === Action.DATA_LOADED) {
|
|
1151
|
+
this.handleDataLoaded();
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
handleDataLoaded() {
|
|
1155
|
+
var _a;
|
|
1156
|
+
if (!((_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getSelectedRecord())) {
|
|
1151
1157
|
this.dataUnit.selectFirst();
|
|
1152
1158
|
}
|
|
1153
1159
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface SnkDynaformConfigHeader extends Components.SnkDynaformConfigHeader, HTMLElement {}
|
|
4
|
+
export const SnkDynaformConfigHeader: {
|
|
5
|
+
prototype: SnkDynaformConfigHeader;
|
|
6
|
+
new (): SnkDynaformConfigHeader;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { S as SnkDynaformConfigHeader$1, d as defineCustomElement$1 } from './snk-dynaform-config-header2.js';
|
|
2
|
+
|
|
3
|
+
const SnkDynaformConfigHeader = SnkDynaformConfigHeader$1;
|
|
4
|
+
const defineCustomElement = defineCustomElement$1;
|
|
5
|
+
|
|
6
|
+
export { SnkDynaformConfigHeader, defineCustomElement };
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
3
|
+
import { d as defineCustomElement$1 } from './snk-dynaform-configs-button2.js';
|
|
4
|
+
|
|
5
|
+
const snkDynaformConfigHeaderCss = ".sc-snk-dynaform-config-header-h{display:flex;padding-top:var(--space--12, 12px);align-items:center;width:100%;justify-content:space-between}.left-group.sc-snk-dynaform-config-header{display:flex;gap:var(--space--8, 8px);align-items:center}.right-group.sc-snk-dynaform-config-header{display:flex}";
|
|
6
|
+
|
|
7
|
+
const SnkDynaformConfigHeader = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
8
|
+
constructor() {
|
|
9
|
+
super();
|
|
10
|
+
this.__registerHost();
|
|
11
|
+
this.configClose = createEvent(this, "configClose", 7);
|
|
12
|
+
this.saveConfig = createEvent(this, "saveConfig", 7);
|
|
13
|
+
this.isEditingGuide = false;
|
|
14
|
+
this.isEditingGroup = false;
|
|
15
|
+
this.configOptions = [];
|
|
16
|
+
this.selectedConfig = undefined;
|
|
17
|
+
this.messagesBuilder = undefined;
|
|
18
|
+
this.hasChanges = false;
|
|
19
|
+
this.optionConfigChanged = false;
|
|
20
|
+
}
|
|
21
|
+
handleIsEditingGuideName({ detail }) {
|
|
22
|
+
this.isEditingGuide = detail;
|
|
23
|
+
}
|
|
24
|
+
handleIsEditingGroupName({ detail }) {
|
|
25
|
+
this.isEditingGroup = detail;
|
|
26
|
+
}
|
|
27
|
+
saveFormConfig() {
|
|
28
|
+
if (this.isEditingGuide || this.isEditingGroup) {
|
|
29
|
+
const title = this.getMessage('snkFormConfig.confirm.title');
|
|
30
|
+
const message = this.isEditingGuide
|
|
31
|
+
? this.getMessage('snkFormConfig.alert.titleGuideEditing')
|
|
32
|
+
: this.getMessage('snkFormConfig.alert.titleGroupEditing');
|
|
33
|
+
ApplicationUtils.alert(title, message);
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
this.saveConfig.emit();
|
|
37
|
+
}
|
|
38
|
+
async closeFormConfig() {
|
|
39
|
+
if (this.hasChanges) {
|
|
40
|
+
const title = this.getMessage('snkFormConfig.confirm.title');
|
|
41
|
+
const msg = this.getMessage('snkFormConfig.confirm.cancel');
|
|
42
|
+
const confirm = await ApplicationUtils.confirm(title, msg);
|
|
43
|
+
if (!confirm)
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
this.configClose.emit();
|
|
47
|
+
}
|
|
48
|
+
getMessage(key, params) {
|
|
49
|
+
return this.messagesBuilder.getMessage(key, params);
|
|
50
|
+
}
|
|
51
|
+
openConfirmDialog(msg = '', title = this.getMessage('snkFormConfig.confirm.title')) {
|
|
52
|
+
return ApplicationUtils.confirm(title, msg);
|
|
53
|
+
}
|
|
54
|
+
async applyOptionConfig() {
|
|
55
|
+
var _a, _b;
|
|
56
|
+
const name = (_b = (_a = this.selectedConfig) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : this.getMessage('snkFormConfig.configs.selectedConfig');
|
|
57
|
+
const msg = this.getMessage('snkFormConfig.confirm.apply').replace('{0}', name);
|
|
58
|
+
const confirm = await this.openConfirmDialog(msg);
|
|
59
|
+
if (confirm) {
|
|
60
|
+
this.saveConfig.emit();
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
renderSaveActions() {
|
|
64
|
+
if (!this.hasChanges && !this.optionConfigChanged)
|
|
65
|
+
return;
|
|
66
|
+
if (this.hasChanges) {
|
|
67
|
+
return (h("div", { class: "right-group" }, h("ez-button", { title: this.getMessage('snkFormConfig.actions.cancel'), label: this.getMessage('snkFormConfig.actions.cancel'), onClick: this.closeFormConfig.bind(this), size: "medium" }), h("ez-button", { title: this.getMessage('snkFormConfig.actions.save'), label: this.getMessage('snkFormConfig.actions.save'), class: 'ez-button--primary ez-padding-left--medium', onClick: () => this.saveFormConfig(), size: "medium" })));
|
|
68
|
+
}
|
|
69
|
+
return (h("div", { class: "right-group" }, h("ez-button", { title: this.getMessage('snkFormConfig.actions.cancel'), label: this.getMessage('snkFormConfig.actions.cancel'), onClick: this.closeFormConfig.bind(this), size: "medium" }), h("ez-button", { title: this.getMessage('snkFormConfig.actions.save'), label: this.getMessage('snkFormConfig.applyConfig'), class: 'ez-button--primary ez-padding-left--medium', onClick: async () => await this.applyOptionConfig(), size: "medium" })));
|
|
70
|
+
}
|
|
71
|
+
render() {
|
|
72
|
+
return (h(Host, null, h("div", { class: 'left-group' }, h("ez-button", { mode: "icon", title: this.getMessage('snkFormConfig.goBackTitle'), iconName: "arrow_back", size: "small", onClick: this.closeFormConfig.bind(this), id: "formConfigToBack" }), h("h1", { class: "ez-title ez-title--primary ez-title--extra-large ez-padding--small" }, this.getMessage('snkFormConfig.title')), h("snk-dynaform-configs-button", { hasChanges: this.hasChanges, configOptions: this.configOptions, selectedConfig: this.selectedConfig, messagesBuilder: this.messagesBuilder })), this.renderSaveActions()));
|
|
73
|
+
}
|
|
74
|
+
static get style() { return snkDynaformConfigHeaderCss; }
|
|
75
|
+
}, [2, "snk-dynaform-config-header", {
|
|
76
|
+
"configOptions": [16],
|
|
77
|
+
"selectedConfig": [16],
|
|
78
|
+
"messagesBuilder": [1040],
|
|
79
|
+
"hasChanges": [4, "has-changes"],
|
|
80
|
+
"optionConfigChanged": [4, "option-config-changed"],
|
|
81
|
+
"isEditingGuide": [32],
|
|
82
|
+
"isEditingGroup": [32]
|
|
83
|
+
}, [[16, "isEditingGuideName", "handleIsEditingGuideName"], [16, "isEditingGroupName", "handleIsEditingGroupName"]]]);
|
|
84
|
+
function defineCustomElement() {
|
|
85
|
+
if (typeof customElements === "undefined") {
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
const components = ["snk-dynaform-config-header", "snk-dynaform-configs-button"];
|
|
89
|
+
components.forEach(tagName => { switch (tagName) {
|
|
90
|
+
case "snk-dynaform-config-header":
|
|
91
|
+
if (!customElements.get(tagName)) {
|
|
92
|
+
customElements.define(tagName, SnkDynaformConfigHeader);
|
|
93
|
+
}
|
|
94
|
+
break;
|
|
95
|
+
case "snk-dynaform-configs-button":
|
|
96
|
+
if (!customElements.get(tagName)) {
|
|
97
|
+
defineCustomElement$1();
|
|
98
|
+
}
|
|
99
|
+
break;
|
|
100
|
+
} });
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export { SnkDynaformConfigHeader as S, defineCustomElement as d };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface SnkDynaformConfigsButton extends Components.SnkDynaformConfigsButton, HTMLElement {}
|
|
4
|
+
export const SnkDynaformConfigsButton: {
|
|
5
|
+
prototype: SnkDynaformConfigsButton;
|
|
6
|
+
new (): SnkDynaformConfigsButton;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { S as SnkDynaformConfigsButton$1, d as defineCustomElement$1 } from './snk-dynaform-configs-button2.js';
|
|
2
|
+
|
|
3
|
+
const SnkDynaformConfigsButton = SnkDynaformConfigsButton$1;
|
|
4
|
+
const defineCustomElement = defineCustomElement$1;
|
|
5
|
+
|
|
6
|
+
export { SnkDynaformConfigsButton, defineCustomElement };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { ObjectUtils } from '@sankhyalabs/core';
|
|
3
|
+
import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
4
|
+
|
|
5
|
+
const snkDynaformConfigsButtonCss = ".dropdown-container.sc-snk-dynaform-configs-button{font-family:'Roboto';font-size:12px;font-weight:400;display:flex;flex-direction:column;color:#2b3a54;width:200px}.main-item.sc-snk-dynaform-configs-button{padding:12px;font-size:14px;cursor:pointer;transition:all .2s ease-in-out;display:flex;flex-direction:row;gap:8px;align-items:center;justify-content:start}.main-item.sc-snk-dynaform-configs-button ez-icon.sc-snk-dynaform-configs-button{--ez-icon--color:#008561}.main-item.sc-snk-dynaform-configs-button:nth-of-type(1){padding-bottom:6px}.main-item.sc-snk-dynaform-configs-button:nth-of-type(2){padding-top:6px}.main-item.sc-snk-dynaform-configs-button:hover{background-color:#FAFCFF}.item-label.sc-snk-dynaform-configs-button{display:flex}";
|
|
6
|
+
|
|
7
|
+
const SnkDynaformConfigsButton = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
8
|
+
constructor() {
|
|
9
|
+
super();
|
|
10
|
+
this.__registerHost();
|
|
11
|
+
this.formConfigOptionSelected = createEvent(this, "formConfigOptionSelected", 7);
|
|
12
|
+
this.configOptions = [];
|
|
13
|
+
this.selectedConfig = undefined;
|
|
14
|
+
this.hasChanges = false;
|
|
15
|
+
this.messagesBuilder = undefined;
|
|
16
|
+
}
|
|
17
|
+
getMessage(key, params) {
|
|
18
|
+
return this.messagesBuilder.getMessage(key, params);
|
|
19
|
+
}
|
|
20
|
+
async showShareConfigOptions() {
|
|
21
|
+
if (this._refOptionsPopover && this._refShareConfigBtn) {
|
|
22
|
+
await this._refOptionsPopover.showUnder(this._refShareConfigBtn);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
async handleSelectOption(option) {
|
|
26
|
+
if (ObjectUtils.equals(option, this.selectedConfig))
|
|
27
|
+
return;
|
|
28
|
+
if (this.hasChanges) {
|
|
29
|
+
const title = this.getMessage('snkFormConfig.confirm.title');
|
|
30
|
+
const msg = this.getMessage('snkFormConfig.confirm.cancel');
|
|
31
|
+
const confirm = await ApplicationUtils.confirm(title, msg);
|
|
32
|
+
if (!confirm)
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
this.selectedConfig = option;
|
|
36
|
+
this.formConfigOptionSelected.emit(option);
|
|
37
|
+
await this._refOptionsPopover.hide();
|
|
38
|
+
}
|
|
39
|
+
getButtonLabel() {
|
|
40
|
+
var _a, _b;
|
|
41
|
+
return (_b = (_a = this.selectedConfig) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : this.getMessage('snkFormConfig.configs.buttonLabel');
|
|
42
|
+
}
|
|
43
|
+
renderConfigOptions() {
|
|
44
|
+
return this.configOptions.map((option) => {
|
|
45
|
+
return (h("div", { class: `main-item`, onClick: async () => await this.handleSelectOption(option) }, h("span", { class: 'item-label' }, " ", option.name), this.renderCheckIcon(option)));
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
renderCheckIcon(option) {
|
|
49
|
+
if (this.selectedConfig && this.selectedConfig.origin === option.origin)
|
|
50
|
+
return h("ez-icon", { iconName: "check" });
|
|
51
|
+
}
|
|
52
|
+
render() {
|
|
53
|
+
return (h(Host, null, h("ez-button", { ref: ref => this._refShareConfigBtn = ref, label: this.getButtonLabel(), onClick: async () => await this.showShareConfigOptions() }, h("ez-icon", { slot: "rightIcon", iconName: "chevron-down" })), h("ez-popover-plus", { ref: ref => this._refOptionsPopover = ref, autoClose: true, overlayType: "none" }, h("div", { class: 'dropdown-container' }, this.renderConfigOptions()))));
|
|
54
|
+
}
|
|
55
|
+
static get style() { return snkDynaformConfigsButtonCss; }
|
|
56
|
+
}, [2, "snk-dynaform-configs-button", {
|
|
57
|
+
"configOptions": [16],
|
|
58
|
+
"selectedConfig": [16],
|
|
59
|
+
"hasChanges": [4, "has-changes"],
|
|
60
|
+
"messagesBuilder": [1040]
|
|
61
|
+
}]);
|
|
62
|
+
function defineCustomElement() {
|
|
63
|
+
if (typeof customElements === "undefined") {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
const components = ["snk-dynaform-configs-button"];
|
|
67
|
+
components.forEach(tagName => { switch (tagName) {
|
|
68
|
+
case "snk-dynaform-configs-button":
|
|
69
|
+
if (!customElements.get(tagName)) {
|
|
70
|
+
customElements.define(tagName, SnkDynaformConfigsButton);
|
|
71
|
+
}
|
|
72
|
+
break;
|
|
73
|
+
} });
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export { SnkDynaformConfigsButton as S, defineCustomElement as d };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface SnkDynaformDetailView extends Components.SnkDynaformDetailView, HTMLElement {}
|
|
4
|
+
export const SnkDynaformDetailView: {
|
|
5
|
+
prototype: SnkDynaformDetailView;
|
|
6
|
+
new (): SnkDynaformDetailView;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { S as SnkDynaformDetailView$1, a as defineCustomElement$1 } from './snk-dynaform-detail-view2.js';
|
|
2
|
+
|
|
3
|
+
const SnkDynaformDetailView = SnkDynaformDetailView$1;
|
|
4
|
+
const defineCustomElement = defineCustomElement$1;
|
|
5
|
+
|
|
6
|
+
export { SnkDynaformDetailView, defineCustomElement };
|