@sankhyalabs/sankhyablocks 0.0.0-bugfix-dev-KB-11997.0 → 0.0.0-bugfix-dev-KB-99999.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ConfigStorage-0e4275f5.js → ConfigStorage-8009ecb2.js} +20 -4
- package/dist/cjs/{DataFetcher-bd3d53a8.js → DataFetcher-ba94ed5b.js} +142 -102
- package/dist/cjs/{PersonalizedFilterUtils-1aeb625d.js → PersonalizedFilterUtils-0184ffbb.js} +11 -4
- package/dist/cjs/PreloadManager-84466da6.js +224 -0
- package/dist/cjs/{SnkFormConfigManager-5b485cd4.js → SnkFormConfigManager-7d850fbc.js} +23 -6
- package/dist/cjs/{SnkMessageBuilder-d0abb63d.js → SnkMessageBuilder-7293d0ad.js} +29 -8
- package/dist/cjs/{SnkMultiSelectionListDataSource-804ff4c7.js → SnkMultiSelectionListDataSource-ba5838c2.js} +15 -0
- package/dist/cjs/Sortable-fb1c4cbb.js +2853 -0
- package/dist/cjs/{auth-fetcher-1583fe43.js → auth-fetcher-c8467c07.js} +1 -1
- package/dist/cjs/{constants-d187e03e.js → constants-35ddd366.js} +4 -0
- package/dist/cjs/dataunit-fetcher-de65b9fc.js +725 -0
- package/dist/cjs/{taskbar-processor-bce3f499.js → field-search-f56aa7d6.js} +35 -0
- package/dist/cjs/{filter-item-type.enum-aa823a00.js → filter-item-type.enum-a7ffdaa6.js} +1 -0
- package/dist/cjs/filterNumberVariation-d65332da.js +7 -0
- package/dist/cjs/{form-config-fetcher-f6cb55e6.js → form-config-fetcher-df043d3d.js} +1 -1
- package/dist/cjs/{index-0e663819.js → index-0922807b.js} +1 -0
- package/dist/cjs/index-f9e81701.js +10 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{pesquisa-fetcher-3356b3df.js → pesquisa-fetcher-ef050a47.js} +1 -1
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/{snk-actions-button.cjs.entry.js → snk-actions-button_2.cjs.entry.js} +214 -91
- package/dist/cjs/snk-application.cjs.entry.js +474 -140
- package/dist/cjs/snk-attach.cjs.entry.js +27 -11
- package/dist/cjs/snk-config-options.cjs.entry.js +1 -1
- package/dist/cjs/snk-configurator.cjs.entry.js +17 -2
- package/dist/cjs/snk-crud.cjs.entry.js +127 -17
- package/dist/cjs/snk-custom-slot-elements.cjs.entry.js +20 -0
- package/dist/cjs/snk-data-exporter.cjs.entry.js +12 -11
- package/dist/cjs/{snk-data-unit-7cc1846d.js → snk-data-unit-1bc69073.js} +15 -5
- package/dist/cjs/snk-data-unit.cjs.entry.js +2 -2
- package/dist/cjs/snk-detail-view.cjs.entry.js +34 -14
- package/dist/cjs/snk-field-config.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-advanced-mode_2.cjs.entry.js +2 -2
- package/dist/cjs/snk-filter-bar.cjs.entry.js +163 -17
- package/dist/cjs/snk-filter-binary-select.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-checkbox-list.cjs.entry.js +52 -0
- package/dist/cjs/snk-filter-detail.cjs.entry.js +9 -2
- package/dist/cjs/snk-filter-field-search_2.cjs.entry.js +2 -2
- package/dist/cjs/snk-filter-item.cjs.entry.js +39 -15
- package/dist/cjs/snk-filter-list.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +9 -9
- package/dist/cjs/snk-filter-modal.cjs.entry.js +38 -7
- package/dist/cjs/snk-filter-multi-select.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-number.cjs.entry.js +42 -3
- package/dist/cjs/snk-filter-period.cjs.entry.js +3 -3
- package/dist/cjs/snk-filter-search.cjs.entry.js +1 -1
- package/dist/cjs/snk-form-config.cjs.entry.js +16 -15
- package/dist/cjs/snk-form-view.cjs.entry.js +14 -0
- package/dist/cjs/snk-form.cjs.entry.js +6 -7
- package/dist/cjs/snk-grid-config.cjs.entry.js +6 -7
- package/dist/cjs/snk-grid.cjs.entry.js +131 -40
- package/dist/cjs/{snk-guides-viewer-5e22097d.js → snk-guides-viewer-7f9b6d94.js} +161 -22
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +16 -13
- package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js +1 -1
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +24 -13
- package/dist/cjs/snk-select-box.cjs.entry.js +1 -1
- package/dist/cjs/snk-simple-crud.cjs.entry.js +127 -103
- package/dist/cjs/snk-tab-config.cjs.entry.js +12 -11
- package/dist/cjs/snk-taskbar.cjs.entry.js +3 -3
- package/dist/cjs/{taskbar-elements-39949c7a.js → taskbar-elements-01b85b99.js} +4 -4
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/snk-actions-button/actions/executor/java.executor.js +2 -2
- package/dist/collection/components/snk-actions-button/actions/executor/javascript.executor.js +2 -2
- package/dist/collection/components/snk-actions-button/actions/executor/procedure.executor.js +2 -2
- package/dist/collection/components/snk-actions-button/clientEvent/index.js +81 -76
- package/dist/collection/components/snk-actions-button/snk-actions-button.css +4 -11
- package/dist/collection/components/snk-actions-button/snk-actions-button.js +2 -2
- package/dist/collection/components/snk-application/snk-application.js +485 -84
- package/dist/collection/components/snk-attach/snk-attach.css +6 -0
- package/dist/collection/components/snk-attach/snk-attach.js +15 -3
- package/dist/collection/components/snk-attach/structure/data-unit-builder.js +4 -1
- package/dist/collection/components/snk-configurator/snk-configurator.js +33 -1
- package/dist/collection/components/snk-crud/snk-crud.js +136 -10
- package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +21 -1
- package/dist/collection/components/snk-crud/subcomponents/snk-form-view.js +45 -0
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +178 -22
- package/dist/collection/components/snk-custom-slot-elements/snk-custom-slot-elements.css +3 -0
- package/dist/collection/components/{snk-taskbar/snk-taskbar-custom-elements.js → snk-custom-slot-elements/snk-custom-slot-elements.js} +10 -10
- package/dist/collection/components/snk-data-exporter/snk-data-exporter.css +1 -9
- package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +1 -1
- package/dist/collection/components/snk-data-unit/snk-data-unit.js +15 -12
- package/dist/collection/components/snk-filter-bar/filter-item/dataunitfilter/data-unit-filter-builder.js +69 -2
- package/dist/collection/components/snk-filter-bar/filter-item/editors/enum/filterNumberVariation.js +5 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-checkbox-list.js +95 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js +93 -8
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js +2 -2
- package/dist/collection/components/snk-filter-bar/filter-item/filter-item-type.enum.js +1 -0
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +7 -0
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +38 -14
- package/dist/collection/components/snk-filter-bar/filter-list/snk-filter-list.js +1 -1
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +87 -6
- package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.js +4 -3
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +5 -6
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +218 -7
- package/dist/collection/components/snk-filter-bar/utils/SnkFilterModalFactory.js +3 -1
- package/dist/collection/components/snk-form/SnkFormConfigManager.js +22 -5
- package/dist/collection/components/snk-form/subcomponents/snk-form-config/snk-form-config.js +10 -8
- package/dist/collection/components/snk-form/subcomponents/snk-tab-config/snk-tab-config.js +10 -8
- package/dist/collection/components/snk-grid/filtercolumn/SnkMultiSelectionListDataSource.js +11 -0
- package/dist/collection/components/snk-grid/snk-grid.css +7 -2
- package/dist/collection/components/snk-grid/snk-grid.js +166 -39
- package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js +32 -6
- package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/utils/PersonalizedFilterUtils.js +13 -4
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.css +8 -2
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +115 -6
- package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.css +6 -0
- package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.js +310 -0
- package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +3 -3
- package/dist/collection/components/snk-taskbar/snk-taskbar.css +0 -4
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +1 -1
- package/dist/collection/components/snk-taskbar/subcomponents/field-search.js +31 -0
- package/dist/collection/lib/@types/index.js +1 -0
- package/dist/collection/lib/dataUnit/InMemoryLoader.js +74 -15
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +61 -43
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/DataUnitDataLoader.js +118 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/ArrayRepository.js +80 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.js +139 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/{dataunit-fetcher.js → data-unit/dataunit-fetcher.js} +49 -100
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/ILoadDataResult.js +1 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/ILoadDataStrategy.js +1 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/ILoadingInfo.js +1 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IRecordField.js +1 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IResponseRecord.js +1 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DataUnitStrategy.js +68 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js +162 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/index.js +3 -2
- package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/personalized-reports-fetcher.js +3 -2
- package/dist/collection/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.js +14 -1
- package/dist/collection/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.js +3 -0
- package/dist/collection/lib/index.js +1 -1
- package/dist/collection/lib/message/SnkMessageBuilder.js +9 -3
- package/dist/collection/lib/message/resources/snk-application.msg.js +9 -0
- package/dist/collection/lib/message/resources/snk-crud.msg.js +1 -0
- package/dist/collection/lib/message/resources/snk-filter-bar.msg.js +5 -4
- package/dist/collection/lib/message/resources/snk-grid.msg.js +3 -1
- package/dist/collection/lib/message/resources/snk-simple-crud.msg.js +4 -0
- package/dist/collection/lib/utils/constants.js +3 -0
- package/dist/collection/lib/utils/urlutils.js +10 -4
- package/dist/collection/lib/workspace/workspace.js +27 -0
- package/dist/components/ConfigStorage.js +17 -1
- package/dist/components/DataFetcher.js +101 -61
- package/dist/components/PersonalizedFilterUtils.js +10 -3
- package/dist/components/SnkFormConfigManager.js +22 -5
- package/dist/components/SnkMessageBuilder.js +29 -8
- package/dist/components/constants.js +4 -1
- package/dist/components/dataunit-fetcher.js +846 -100
- package/dist/components/{SnkMultiSelectionListDataSource.js → field-search.js} +44 -1
- package/dist/components/filter-item-type.enum.js +1 -0
- package/dist/components/filterNumberVariation.js +7 -0
- package/dist/components/index.d.ts +3 -1
- package/dist/components/index.js +3 -1
- package/dist/components/index2.js +1 -0
- package/dist/components/snk-actions-button2.js +91 -86
- package/dist/components/snk-application2.js +392 -55
- package/dist/components/snk-attach2.js +39 -19
- package/dist/components/snk-configurator2.js +18 -2
- package/dist/components/snk-crud.js +184 -70
- package/dist/components/snk-custom-slot-elements.d.ts +11 -0
- package/dist/components/snk-custom-slot-elements.js +35 -0
- package/dist/components/snk-data-exporter2.js +7 -5
- package/dist/components/snk-data-unit2.js +15 -5
- package/dist/components/snk-detail-view2.js +264 -96
- package/dist/components/snk-filter-bar2.js +164 -13
- package/dist/components/snk-filter-checkbox-list.d.ts +11 -0
- package/dist/components/snk-filter-checkbox-list.js +68 -0
- package/dist/components/snk-filter-detail2.js +7 -0
- package/dist/components/snk-filter-item2.js +38 -14
- package/dist/components/snk-filter-list.js +1 -1
- package/dist/components/snk-filter-modal-item2.js +4 -3
- package/dist/components/snk-filter-modal.js +40 -7
- package/dist/components/snk-filter-number.js +43 -2
- package/dist/components/snk-filter-period.js +2 -2
- package/dist/components/snk-form-config2.js +13 -11
- package/dist/components/snk-form-view2.js +15 -0
- package/dist/components/snk-grid2.js +166 -68
- package/dist/components/snk-personalized-filter2.js +18 -6
- package/dist/components/snk-simple-crud2.js +132 -104
- package/dist/components/snk-tab-config2.js +2203 -6233
- package/dist/components/snk-taskbar2.js +16 -10
- package/dist/components/taskbar-actions-button.d.ts +11 -0
- package/dist/components/taskbar-actions-button.js +6 -0
- package/dist/components/taskbar-actions-button2.js +140 -0
- package/dist/esm/{ConfigStorage-f359573c.js → ConfigStorage-1244b8b0.js} +20 -4
- package/dist/esm/{DataFetcher-8daff9ad.js → DataFetcher-aa159c5a.js} +101 -61
- package/dist/esm/{PersonalizedFilterUtils-75fb0106.js → PersonalizedFilterUtils-e2b38ef7.js} +11 -4
- package/dist/esm/PreloadManager-c1c2f2b4.js +222 -0
- package/dist/esm/{SnkFormConfigManager-35876bad.js → SnkFormConfigManager-9be0e7d4.js} +24 -7
- package/dist/esm/{SnkMessageBuilder-68c1c25a.js → SnkMessageBuilder-ca843d1b.js} +29 -8
- package/dist/esm/{SnkMultiSelectionListDataSource-892f37f9.js → SnkMultiSelectionListDataSource-44494b0e.js} +11 -0
- package/dist/esm/Sortable-83960219.js +2851 -0
- package/dist/esm/{auth-fetcher-299fed55.js → auth-fetcher-c05dc474.js} +1 -1
- package/dist/esm/{constants-3644f1b6.js → constants-8457af36.js} +4 -1
- package/dist/esm/dataunit-fetcher-e218c6d2.js +722 -0
- package/dist/esm/{taskbar-processor-94402e6e.js → field-search-efbe307f.js} +34 -1
- package/dist/esm/{filter-item-type.enum-5028ed3f.js → filter-item-type.enum-d45e026f.js} +1 -0
- package/dist/esm/filterNumberVariation-8cee02ea.js +7 -0
- package/dist/esm/{form-config-fetcher-8ef7be16.js → form-config-fetcher-36219cd3.js} +1 -1
- package/dist/esm/{index-1564817d.js → index-0ece87a6.js} +1 -0
- package/dist/esm/index-a7d3d3f1.js +10 -6
- package/dist/esm/loader.js +1 -1
- package/dist/{components/pesquisa-fetcher.js → esm/pesquisa-fetcher-dd3ca0a5.js} +1 -1
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/{snk-actions-button.entry.js → snk-actions-button_2.entry.js} +215 -93
- package/dist/esm/snk-application.entry.js +475 -141
- package/dist/esm/snk-attach.entry.js +27 -11
- package/dist/esm/snk-config-options.entry.js +1 -1
- package/dist/esm/snk-configurator.entry.js +18 -3
- package/dist/esm/snk-crud.entry.js +128 -18
- package/dist/esm/snk-custom-slot-elements.entry.js +16 -0
- package/dist/esm/snk-data-exporter.entry.js +13 -12
- package/dist/esm/{snk-data-unit-1715d2f1.js → snk-data-unit-6208ebf0.js} +16 -6
- package/dist/esm/snk-data-unit.entry.js +2 -2
- package/dist/esm/snk-detail-view.entry.js +34 -14
- package/dist/esm/snk-field-config.entry.js +1 -1
- package/dist/esm/snk-filter-advanced-mode_2.entry.js +2 -2
- package/dist/esm/snk-filter-bar.entry.js +165 -19
- package/dist/esm/snk-filter-binary-select.entry.js +1 -1
- package/dist/esm/snk-filter-checkbox-list.entry.js +48 -0
- package/dist/esm/snk-filter-detail.entry.js +9 -2
- package/dist/esm/snk-filter-field-search_2.entry.js +2 -2
- package/dist/esm/snk-filter-item.entry.js +39 -15
- package/dist/esm/snk-filter-list.entry.js +1 -1
- package/dist/esm/snk-filter-modal-item.entry.js +9 -9
- package/dist/esm/snk-filter-modal.entry.js +38 -7
- package/dist/esm/snk-filter-multi-select.entry.js +1 -1
- package/dist/esm/snk-filter-number.entry.js +42 -3
- package/dist/esm/snk-filter-period.entry.js +3 -3
- package/dist/esm/snk-filter-search.entry.js +1 -1
- package/dist/esm/snk-form-config.entry.js +16 -15
- package/dist/esm/snk-form-view.entry.js +14 -0
- package/dist/esm/snk-form.entry.js +6 -7
- package/dist/esm/snk-grid-config.entry.js +6 -7
- package/dist/esm/snk-grid.entry.js +132 -41
- package/dist/esm/{snk-guides-viewer-b0e32a7d.js → snk-guides-viewer-9d5e073f.js} +161 -22
- package/dist/esm/snk-guides-viewer.entry.js +16 -13
- package/dist/esm/snk-personalized-filter-editor.entry.js +1 -1
- package/dist/esm/snk-personalized-filter.entry.js +24 -13
- package/dist/esm/snk-select-box.entry.js +1 -1
- package/dist/esm/snk-simple-crud.entry.js +126 -102
- package/dist/esm/snk-tab-config.entry.js +12 -11
- package/dist/esm/snk-taskbar.entry.js +3 -3
- package/dist/esm/{taskbar-elements-0a6b8b95.js → taskbar-elements-d4d0b424.js} +4 -4
- package/dist/sankhyablocks/p-01ba23cd.entry.js +1 -0
- package/dist/sankhyablocks/p-03dcc5ff.entry.js +1 -0
- package/dist/sankhyablocks/{p-5c1aacc7.js → p-057fad05.js} +1 -1
- package/dist/sankhyablocks/p-0874adb5.entry.js +1 -0
- package/dist/sankhyablocks/p-094c30cb.js +1 -0
- package/dist/sankhyablocks/p-0d084a0f.entry.js +1 -0
- package/dist/sankhyablocks/{p-c870b530.js → p-0d7863ed.js} +1 -1
- package/dist/sankhyablocks/p-11081798.entry.js +1 -0
- package/dist/sankhyablocks/p-143425c0.entry.js +1 -0
- package/dist/sankhyablocks/{p-cb37982f.entry.js → p-20726710.entry.js} +1 -1
- package/dist/sankhyablocks/p-32f0935f.js +1 -0
- package/dist/sankhyablocks/p-3520c088.entry.js +1 -0
- package/dist/sankhyablocks/p-374d03f6.js +1 -0
- package/dist/sankhyablocks/p-38289a55.js +1 -0
- package/dist/sankhyablocks/{p-25c5428f.entry.js → p-3ab6df3d.entry.js} +1 -1
- package/dist/sankhyablocks/p-3b60db06.entry.js +1 -0
- package/dist/sankhyablocks/{p-eb636e15.entry.js → p-41f8bfa3.entry.js} +1 -1
- package/dist/sankhyablocks/p-4775a293.entry.js +1 -0
- package/dist/sankhyablocks/p-4b0938f6.entry.js +1 -0
- package/dist/sankhyablocks/p-585294ee.js +56 -0
- package/dist/sankhyablocks/p-5f74c859.entry.js +1 -0
- package/dist/sankhyablocks/p-69754d94.entry.js +1 -0
- package/dist/sankhyablocks/p-6977a26c.entry.js +1 -0
- package/dist/sankhyablocks/{p-648a7c72.entry.js → p-69efa80d.entry.js} +1 -1
- package/dist/sankhyablocks/p-70589af8.entry.js +1 -0
- package/dist/sankhyablocks/p-776ee8e3.js +1 -0
- package/dist/sankhyablocks/{p-959e0835.entry.js → p-7e2ded86.entry.js} +1 -1
- package/dist/sankhyablocks/p-7f9d6b5d.entry.js +11 -0
- package/dist/sankhyablocks/{p-0885ed3c.entry.js → p-8002dcd0.entry.js} +1 -1
- package/dist/sankhyablocks/p-809f367d.entry.js +1 -0
- package/dist/sankhyablocks/p-8437508f.js +1 -0
- package/dist/sankhyablocks/p-8eb67fa4.entry.js +1 -0
- package/dist/sankhyablocks/{p-f30526a7.entry.js → p-95df461f.entry.js} +1 -1
- package/dist/sankhyablocks/p-9695f78b.js +1 -0
- package/dist/sankhyablocks/{p-838f8234.entry.js → p-98674137.entry.js} +1 -1
- package/dist/sankhyablocks/p-a87229cd.entry.js +1 -0
- package/dist/sankhyablocks/p-a9e5b094.entry.js +1 -0
- package/dist/sankhyablocks/p-aaa3ee68.entry.js +1 -0
- package/dist/sankhyablocks/p-b0ef4383.js +1 -0
- package/dist/sankhyablocks/p-ba627e85.js +60 -0
- package/dist/sankhyablocks/p-c22c1d8e.js +1 -0
- package/dist/sankhyablocks/p-c2495304.js +1 -0
- package/dist/sankhyablocks/{p-26ad62b9.entry.js → p-c758265f.entry.js} +1 -1
- package/dist/sankhyablocks/{p-fe49067d.entry.js → p-c8622597.entry.js} +1 -1
- package/dist/sankhyablocks/p-cb7419e0.entry.js +1 -0
- package/dist/sankhyablocks/p-d1007720.entry.js +1 -0
- package/dist/sankhyablocks/{p-a1e1b305.entry.js → p-d3f53df2.entry.js} +1 -1
- package/dist/sankhyablocks/p-d6317851.entry.js +1 -0
- package/dist/sankhyablocks/{p-b13cb8b5.js → p-d9bb09b3.js} +2 -2
- package/dist/sankhyablocks/p-e3132789.entry.js +1 -0
- package/dist/sankhyablocks/p-e6380c60.js +1 -0
- package/dist/sankhyablocks/p-f514913b.entry.js +1 -0
- package/dist/sankhyablocks/p-fa80e546.js +1 -0
- package/dist/sankhyablocks/p-fa816fb2.js +1 -0
- package/dist/sankhyablocks/p-fd8814b9.entry.js +1 -0
- package/dist/sankhyablocks/{p-584d7212.js → p-ff1990ad.js} +1 -1
- package/dist/sankhyablocks/p-ff6064e7.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-actions-button/clientEvent/index.d.ts +1 -1
- package/dist/types/components/snk-actions-button/subcomponents/snk-actions-form.d.ts +1 -1
- package/dist/types/components/snk-application/snk-application.d.ts +90 -15
- package/dist/types/components/snk-attach/snk-attach.d.ts +1 -0
- package/dist/types/components/snk-configurator/snk-configurator.d.ts +6 -0
- package/dist/types/components/snk-crud/snk-crud.d.ts +13 -0
- package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +3 -0
- package/dist/types/components/snk-crud/subcomponents/snk-form-view.d.ts +10 -1
- package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +49 -12
- package/dist/types/components/snk-custom-slot-elements/snk-custom-slot-elements.d.ts +7 -0
- package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +1 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/enum/filterNumberVariation.d.ts +4 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-checkbox-list.d.ts +27 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-number.d.ts +24 -2
- package/dist/types/components/snk-filter-bar/filter-item/filter-item-type.enum.d.ts +2 -1
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +2 -0
- package/dist/types/components/snk-filter-bar/filter-modal/snk-filter-modal.d.ts +15 -1
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +30 -0
- package/dist/types/components/snk-filter-bar/utils/SnkFilterModalFactory.d.ts +5 -1
- package/dist/types/components/snk-form/SnkFormConfigManager.d.ts +6 -1
- package/dist/types/components/snk-grid/filtercolumn/SnkMultiSelectionListDataSource.d.ts +2 -0
- package/dist/types/components/snk-grid/snk-grid.d.ts +20 -6
- package/dist/types/components/snk-personalized-filter/snk-personalized-filter.d.ts +4 -1
- package/dist/types/components/snk-personalized-filter/subcomponents/snk-filter-param-config/utils/PersonalizedFilterUtils.d.ts +1 -1
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +24 -2
- package/dist/types/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.d.ts +59 -0
- package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +18 -2
- package/dist/types/components/snk-taskbar/subcomponents/field-search.d.ts +4 -0
- package/dist/types/components.d.ts +256 -32
- package/dist/types/lib/@types/index.d.ts +2 -1
- package/dist/types/lib/dataUnit/InMemoryLoader.d.ts +5 -1
- package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +8 -4
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/DataUnitDataLoader.d.ts +13 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/cache/ArrayRepository.d.ts +19 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.d.ts +22 -0
- package/dist/types/lib/http/data-fetcher/fetchers/{dataunit-fetcher.d.ts → data-unit/dataunit-fetcher.d.ts} +5 -3
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/interfaces/ILoadDataResult.d.ts +6 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/interfaces/ILoadDataStrategy.d.ts +7 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/interfaces/ILoadingInfo.d.ts +10 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/interfaces/IRecordField.d.ts +4 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/interfaces/IResponseRecord.d.ts +6 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DataUnitStrategy.d.ts +9 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.d.ts +16 -0
- package/dist/types/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.d.ts +1 -1
- package/dist/types/lib/index.d.ts +1 -1
- package/dist/types/lib/message/resources/snk-application.msg.d.ts +2 -0
- package/dist/types/lib/message/resources/snk-simple-crud.msg.d.ts +2 -0
- package/dist/types/lib/utils/constants.d.ts +3 -4
- package/dist/types/lib/workspace/workspace.d.ts +6 -0
- package/package.json +4 -4
- package/react/components.d.ts +3 -1
- package/react/components.js +3 -1
- package/react/components.js.map +1 -1
- package/dist/cjs/_commonjsHelpers-537d719a.js +0 -20
- package/dist/cjs/dataunit-fetcher-910be4ce.js +0 -356
- package/dist/cjs/draggable.bundle-82a25c06.js +0 -6886
- package/dist/cjs/snk-taskbar-custom-elements.cjs.entry.js +0 -20
- package/dist/collection/components/snk-data-unit/snk-data-unit.css +0 -6
- package/dist/components/_commonjsHelpers.js +0 -17
- package/dist/components/snk-taskbar-custom-elements.d.ts +0 -11
- package/dist/components/snk-taskbar-custom-elements.js +0 -35
- package/dist/esm/_commonjsHelpers-9943807e.js +0 -17
- package/dist/esm/dataunit-fetcher-bd8f9572.js +0 -354
- package/dist/esm/draggable.bundle-41d56f06.js +0 -6884
- package/dist/esm/pesquisa-fetcher-27819123.js +0 -165
- package/dist/esm/snk-taskbar-custom-elements.entry.js +0 -16
- package/dist/sankhyablocks/p-0df2ead8.entry.js +0 -11
- package/dist/sankhyablocks/p-112455b1.js +0 -1
- package/dist/sankhyablocks/p-324ce41e.entry.js +0 -1
- package/dist/sankhyablocks/p-34604220.entry.js +0 -1
- package/dist/sankhyablocks/p-4a78e118.js +0 -1
- package/dist/sankhyablocks/p-5534e08c.js +0 -1
- package/dist/sankhyablocks/p-5d04ae42.entry.js +0 -1
- package/dist/sankhyablocks/p-6a38bda5.entry.js +0 -1
- package/dist/sankhyablocks/p-7bcd2f89.js +0 -56
- package/dist/sankhyablocks/p-7bd5aea7.js +0 -1
- package/dist/sankhyablocks/p-8014cc25.entry.js +0 -1
- package/dist/sankhyablocks/p-928efcaa.entry.js +0 -1
- package/dist/sankhyablocks/p-989937ee.entry.js +0 -1
- package/dist/sankhyablocks/p-9a270401.entry.js +0 -1
- package/dist/sankhyablocks/p-a7ee0e6f.entry.js +0 -1
- package/dist/sankhyablocks/p-ac0556a3.js +0 -1
- package/dist/sankhyablocks/p-ae6aff81.js +0 -1
- package/dist/sankhyablocks/p-b244640b.js +0 -1
- package/dist/sankhyablocks/p-b6d6b172.js +0 -1
- package/dist/sankhyablocks/p-bba91710.entry.js +0 -1
- package/dist/sankhyablocks/p-bd628455.entry.js +0 -1
- package/dist/sankhyablocks/p-c2beb95c.js +0 -1
- package/dist/sankhyablocks/p-c555075c.entry.js +0 -1
- package/dist/sankhyablocks/p-c9841939.js +0 -1
- package/dist/sankhyablocks/p-d3ec3586.entry.js +0 -1
- package/dist/sankhyablocks/p-d708b4ab.entry.js +0 -1
- package/dist/sankhyablocks/p-d84bc5c1.js +0 -1
- package/dist/sankhyablocks/p-de76b8a8.js +0 -76
- package/dist/sankhyablocks/p-e19014a9.entry.js +0 -1
- package/dist/sankhyablocks/p-e1cb1f0b.js +0 -1
- package/dist/sankhyablocks/p-e3a82e1c.entry.js +0 -1
- package/dist/sankhyablocks/p-e9b53a9a.entry.js +0 -1
- package/dist/sankhyablocks/p-ebf8c5df.entry.js +0 -1
- package/dist/sankhyablocks/p-ed5f1204.entry.js +0 -1
- package/dist/sankhyablocks/p-f9395c20.entry.js +0 -1
- package/dist/sankhyablocks/p-f94b999e.entry.js +0 -1
- package/dist/sankhyablocks/p-fa9d3f73.js +0 -1
- package/dist/sankhyablocks/p-fb1ecd0b.entry.js +0 -1
- package/dist/sankhyablocks/p-fcd09423.entry.js +0 -1
- package/dist/sankhyablocks/p-fd15aaac.entry.js +0 -1
- package/dist/types/components/snk-taskbar/snk-taskbar-custom-elements.d.ts +0 -7
|
@@ -1,46 +1,47 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Fragment, forceUpdate, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { Action, ElementIDUtils } from '@sankhyalabs/core';
|
|
2
3
|
import { S as SnkFormConfigManager } from './SnkFormConfigManager.js';
|
|
3
4
|
import { buildFormMetadata, FormMetadata } from '@sankhyalabs/ezui/dist/collection/utils/form';
|
|
4
5
|
import './DataFetcher.js';
|
|
5
|
-
import './
|
|
6
|
-
import { ElementIDUtils } from '@sankhyalabs/core';
|
|
6
|
+
import './dataunit-fetcher.js';
|
|
7
7
|
import { P as PresentationMode } from './index2.js';
|
|
8
|
-
import { d as defineCustomElement$
|
|
8
|
+
import { d as defineCustomElement$u } from './snk-actions-button2.js';
|
|
9
9
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
10
10
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
11
11
|
import './filter-item-type.enum.js';
|
|
12
12
|
import './form-config-fetcher.js';
|
|
13
|
-
import { T as TaskbarElement, d as defineCustomElement$
|
|
13
|
+
import { T as TaskbarElement, d as defineCustomElement$3 } from './snk-taskbar2.js';
|
|
14
14
|
import { V as VIEW_MODE } from './constants.js';
|
|
15
|
-
import { T as TaskbarProcessor } from './
|
|
15
|
+
import { o as openFieldSearch, T as TaskbarProcessor, b as buildFieldSearch } from './field-search.js';
|
|
16
16
|
import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
|
|
17
|
-
import { d as defineCustomElement$
|
|
18
|
-
import { d as defineCustomElement$
|
|
19
|
-
import { d as defineCustomElement$
|
|
20
|
-
import { d as defineCustomElement$
|
|
21
|
-
import { d as defineCustomElement$
|
|
17
|
+
import { d as defineCustomElement$t } from './snk-attach2.js';
|
|
18
|
+
import { d as defineCustomElement$s } from './snk-config-options2.js';
|
|
19
|
+
import { d as defineCustomElement$r } from './snk-configurator2.js';
|
|
20
|
+
import { d as defineCustomElement$q } from './snk-data-exporter2.js';
|
|
21
|
+
import { d as defineCustomElement$p } from './snk-data-unit2.js';
|
|
22
22
|
import { S as SnkMessageBuilder } from './SnkMessageBuilder.js';
|
|
23
|
-
import { d as defineCustomElement$
|
|
24
|
-
import { d as defineCustomElement$
|
|
25
|
-
import { d as defineCustomElement$
|
|
26
|
-
import { d as defineCustomElement$
|
|
27
|
-
import { d as defineCustomElement$
|
|
28
|
-
import { d as defineCustomElement$
|
|
29
|
-
import { d as defineCustomElement$
|
|
30
|
-
import { d as defineCustomElement$
|
|
31
|
-
import { d as defineCustomElement$
|
|
32
|
-
import { d as defineCustomElement$
|
|
33
|
-
import { d as defineCustomElement$
|
|
34
|
-
import { d as defineCustomElement$
|
|
35
|
-
import { d as defineCustomElement$
|
|
36
|
-
import { d as defineCustomElement$
|
|
37
|
-
import { d as defineCustomElement$
|
|
38
|
-
import { d as defineCustomElement$
|
|
39
|
-
import { d as defineCustomElement$
|
|
40
|
-
import { d as defineCustomElement$
|
|
41
|
-
import { d as defineCustomElement$
|
|
42
|
-
import { d as defineCustomElement$
|
|
43
|
-
import { d as defineCustomElement$
|
|
23
|
+
import { d as defineCustomElement$o } from './snk-exporter-email-sender2.js';
|
|
24
|
+
import { d as defineCustomElement$n } from './snk-expression-group2.js';
|
|
25
|
+
import { d as defineCustomElement$m } from './snk-expression-item2.js';
|
|
26
|
+
import { d as defineCustomElement$k } from './snk-filter-advanced-mode2.js';
|
|
27
|
+
import { d as defineCustomElement$j } from './snk-filter-assistent-mode2.js';
|
|
28
|
+
import { d as defineCustomElement$i } from './snk-filter-bar2.js';
|
|
29
|
+
import { d as defineCustomElement$h } from './snk-filter-detail2.js';
|
|
30
|
+
import { d as defineCustomElement$g } from './snk-filter-field-search2.js';
|
|
31
|
+
import { d as defineCustomElement$f } from './snk-filter-item2.js';
|
|
32
|
+
import { d as defineCustomElement$e } from './snk-filter-param-config2.js';
|
|
33
|
+
import { d as defineCustomElement$c } from './snk-form-summary2.js';
|
|
34
|
+
import { d as defineCustomElement$b } from './snk-form-view2.js';
|
|
35
|
+
import { d as defineCustomElement$a } from './snk-grid2.js';
|
|
36
|
+
import { d as defineCustomElement$9 } from './snk-grid-config2.js';
|
|
37
|
+
import { d as defineCustomElement$8 } from './snk-personalized-filter2.js';
|
|
38
|
+
import { d as defineCustomElement$7 } from './snk-select-box2.js';
|
|
39
|
+
import { d as defineCustomElement$6 } from './snk-simple-bar2.js';
|
|
40
|
+
import { d as defineCustomElement$5 } from './snk-simple-crud2.js';
|
|
41
|
+
import { d as defineCustomElement$2 } from './taskbar-actions-button2.js';
|
|
42
|
+
import { d as defineCustomElement$l } from './snk-field-config2.js';
|
|
43
|
+
import { d as defineCustomElement$d } from './snk-form-config2.js';
|
|
44
|
+
import { d as defineCustomElement$4 } from './snk-tab-config2.js';
|
|
44
45
|
|
|
45
46
|
const snkGuidesViewerCss = ".sc-snk-guides-viewer-h{--snk-guides-viewer--space-large:var(--space--large, 24px);--snk-guides-viewer--space-medium:var(--space--medium, 12px);--snk-guides-viewer__header--min-height:94px;--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;display:block}snk-form-view.sc-snk-guides-viewer{width:100%}.snk-guides-viewer.sc-snk-guides-viewer{position:relative;padding-left:0px;padding-top:0px;padding-right:var(--snk-guides-viewer--space-large);padding-bottom:var(--snk-guides-viewer--space-large)}.snk-guides-viewer__detail-container.sc-snk-guides-viewer{display:flex;row-gap:24px;flex-direction:column}.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-medium);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-medium)}.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-large)}.snk-guides-viewer__guide-navigator.sc-snk-guides-viewer{position:sticky;top:calc(var(--snk-guides-viewer__header--min-height) + var(--snk-guides-viewer--space-medium));height:calc(100vh - var(--snk-guides-viewer__header--min-height) - var(--snk-guides-viewer--space-large) - var(--snk-guides-viewer--space-medium))}.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}";
|
|
46
47
|
|
|
@@ -67,10 +68,12 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
67
68
|
this.presentationMode = undefined;
|
|
68
69
|
this.resourceID = undefined;
|
|
69
70
|
this.detailTaskbarCustomContainerId = undefined;
|
|
71
|
+
this._hasToCreateFieldSearch = true;
|
|
70
72
|
this._breadcrumbItems = [];
|
|
71
73
|
this._guides = undefined;
|
|
72
74
|
this._formEditorConfigManager = undefined;
|
|
73
75
|
this._formEditorDataUnit = undefined;
|
|
76
|
+
this._fieldToGetFocus = undefined;
|
|
74
77
|
}
|
|
75
78
|
observeDataUnit() {
|
|
76
79
|
this.loadGuides(true);
|
|
@@ -95,6 +98,12 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
95
98
|
this._formEditorConfigManager = masterConfig ? this._configManager : this._currentDetail.formConfigManager;
|
|
96
99
|
this._formEditorDataUnit = masterConfig ? this.dataUnit : this._currentDetail.dataUnit;
|
|
97
100
|
}
|
|
101
|
+
/**
|
|
102
|
+
* Abre o localizador de campos
|
|
103
|
+
*/
|
|
104
|
+
async findField() {
|
|
105
|
+
await openFieldSearch(this._moreOptions, this._fieldSearch);
|
|
106
|
+
}
|
|
98
107
|
exitViewer() {
|
|
99
108
|
if (this.dataUnit.isDirty()) {
|
|
100
109
|
this.dataUnit.cancelEdition({ after: () => this.exit.emit() });
|
|
@@ -165,11 +174,21 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
165
174
|
this._breadcrumbItems = breadcrumbs;
|
|
166
175
|
});
|
|
167
176
|
});
|
|
177
|
+
this._guides = this._guides.map(guide => {
|
|
178
|
+
if (guide.id === guideItem.id) {
|
|
179
|
+
return Object.assign(Object.assign({}, guide), guideItem);
|
|
180
|
+
}
|
|
181
|
+
return guide;
|
|
182
|
+
});
|
|
168
183
|
}
|
|
169
184
|
}
|
|
185
|
+
getTaskBarId() {
|
|
186
|
+
var _a;
|
|
187
|
+
return ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.isDirty) ? "snkGuideViewer.finish_edition" : "snkGuideViewer.regular";
|
|
188
|
+
}
|
|
170
189
|
loadTaskbarProcessor() {
|
|
171
|
-
var _a
|
|
172
|
-
const taskbarId =
|
|
190
|
+
var _a;
|
|
191
|
+
const taskbarId = this.getTaskBarId();
|
|
173
192
|
const disabledButtons = [];
|
|
174
193
|
if (!this.dataState || !this.dataState.hasPrevious) {
|
|
175
194
|
disabledButtons.push("PREVIOUS");
|
|
@@ -177,7 +196,7 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
177
196
|
if (!this.dataState || !this.dataState.hasNext) {
|
|
178
197
|
disabledButtons.push("NEXT");
|
|
179
198
|
}
|
|
180
|
-
if ((
|
|
199
|
+
if ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.selectionInfo) {
|
|
181
200
|
if (this.dataState.selectionInfo.length > 1) {
|
|
182
201
|
disabledButtons.push("CLONE");
|
|
183
202
|
}
|
|
@@ -208,25 +227,26 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
208
227
|
static updateContentCard(formName, cardConfig, propertyChanged, configManager) {
|
|
209
228
|
return configManager.saveCardState(formName, cardConfig, propertyChanged);
|
|
210
229
|
}
|
|
211
|
-
static buildFixedForms(
|
|
212
|
-
|
|
230
|
+
static buildFixedForms(params) {
|
|
231
|
+
var _a;
|
|
232
|
+
const cardsState = (_a = params.formConfig) === null || _a === void 0 ? void 0 : _a.cardsState;
|
|
213
233
|
if (cardsState == undefined) {
|
|
214
234
|
return;
|
|
215
235
|
}
|
|
216
236
|
return (h(Fragment, null, Array.from(cardsState.entries())
|
|
217
|
-
.filter(([formName, cardConfig]) => (cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.fixed) && formName != selectedForm)
|
|
237
|
+
.filter(([formName, cardConfig]) => (cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.fixed) && formName != params.selectedForm)
|
|
218
238
|
.sort(([, cardConfigA], [, cardConfigB]) => {
|
|
219
239
|
const indexA = (cardConfigA === null || cardConfigA === void 0 ? void 0 : cardConfigA.fixSequence) || 0;
|
|
220
240
|
const indexB = (cardConfigB === null || cardConfigB === void 0 ? void 0 : cardConfigB.fixSequence) || 0;
|
|
221
241
|
return indexA - indexB;
|
|
222
242
|
})
|
|
223
243
|
.map(([formName, cardConfig]) => {
|
|
224
|
-
var _a;
|
|
225
|
-
const sheet = formMetadata.getSheet(formName);
|
|
244
|
+
var _a, _b;
|
|
245
|
+
const sheet = params.formMetadata.getSheet(formName);
|
|
226
246
|
if (sheet == undefined) {
|
|
227
247
|
return;
|
|
228
248
|
}
|
|
229
|
-
return h("snk-form-view", { levelPath: levelPath, label: sheet.label, name: formName, fields: sheet.fields, formMetadata: formMetadata, dataUnit: dataUnit, recordsValidator: recordsValidator, contracted: (cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.presentation) === "CONTRACTED", fixed: cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.fixed, summaryFields: (_a = formConfig === null ||
|
|
249
|
+
return h("snk-form-view", { levelPath: params.levelPath, label: sheet.label, name: formName, fields: sheet.fields, formMetadata: params.formMetadata, dataUnit: params.dataUnit, recordsValidator: params.recordsValidator, contracted: (cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.presentation) === "CONTRACTED", fixed: cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.fixed, summaryFields: (_b = (_a = params.formConfig) === null || _a === void 0 ? void 0 : _a.summary) === null || _b === void 0 ? void 0 : _b.get(formName), fieldToFocus: params.fieldToFocus, key: formName, onSnkRequestClearFieldToFocus: _ => { var _a; return (_a = params.onRequestClearFieldToFocus) === null || _a === void 0 ? void 0 : _a.call(params); } });
|
|
230
250
|
})));
|
|
231
251
|
}
|
|
232
252
|
wrapDetail(levels, content) {
|
|
@@ -275,7 +295,7 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
275
295
|
const sheet = this._masterFormMetadata.getSheet(cardId);
|
|
276
296
|
if (sheet) {
|
|
277
297
|
const cardConfig = (_c = (_b = this.masterFormConfig) === null || _b === void 0 ? void 0 : _b.cardsState) === null || _c === void 0 ? void 0 : _c.get(cardId);
|
|
278
|
-
content = h("snk-form-view", { ref: ref => this._mainForm = ref, fixed: cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.fixed, summaryFields: (_e = (_d = this.masterFormConfig) === null || _d === void 0 ? void 0 : _d.summary) === null || _e === void 0 ? void 0 : _e.get(cardId), name: cardId, label: sheet.label, fields: sheet.fields, dataUnit: this.dataUnit, formMetadata: this._masterFormMetadata, recordsValidator: this.recordsValidator, key: guideId }, this.presentationMode == PresentationMode.SECONDARY && this.buildTaskBar());
|
|
298
|
+
content = h("snk-form-view", { ref: ref => this._mainForm = ref, fixed: cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.fixed, summaryFields: (_e = (_d = this.masterFormConfig) === null || _d === void 0 ? void 0 : _d.summary) === null || _e === void 0 ? void 0 : _e.get(cardId), name: cardId, label: sheet.label, fields: sheet.fields, dataUnit: this.dataUnit, formMetadata: this._masterFormMetadata, recordsValidator: this.recordsValidator, fieldToFocus: this._fieldToGetFocus, key: guideId, onSnkRequestClearFieldToFocus: _ => this.clearFieldToFocusHandler() }, this.presentationMode == PresentationMode.SECONDARY && this.buildTaskBar());
|
|
279
299
|
}
|
|
280
300
|
}
|
|
281
301
|
return content;
|
|
@@ -292,6 +312,35 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
292
312
|
this._guideNavigator.getCurrentPath().then(breadcrumbs => {
|
|
293
313
|
this._breadcrumbItems = breadcrumbs;
|
|
294
314
|
});
|
|
315
|
+
this.resetGuideBadge(currentItem);
|
|
316
|
+
}
|
|
317
|
+
changeGuideHandler(guideName) {
|
|
318
|
+
var _a;
|
|
319
|
+
(_a = this._guideNavigator) === null || _a === void 0 ? void 0 : _a.selectGuide(guideName);
|
|
320
|
+
}
|
|
321
|
+
clearFieldToFocusHandler() {
|
|
322
|
+
this._fieldToGetFocus = undefined;
|
|
323
|
+
}
|
|
324
|
+
resetGuideBadge(selectedGuide) {
|
|
325
|
+
var _a;
|
|
326
|
+
this._guides = [...(_a = this._guides) === null || _a === void 0 ? void 0 : _a.map(guide => {
|
|
327
|
+
if (this.canClearGuideBadge(guide, selectedGuide.id)) {
|
|
328
|
+
return Object.assign(Object.assign({}, guide), { badge: null });
|
|
329
|
+
}
|
|
330
|
+
return guide;
|
|
331
|
+
})];
|
|
332
|
+
}
|
|
333
|
+
canClearGuideBadge(guide, idToCheck) {
|
|
334
|
+
return (guide.id === idToCheck) || this.isIncludedInChildrenList(guide, idToCheck);
|
|
335
|
+
}
|
|
336
|
+
isIncludedInChildrenList(guide, guideId) {
|
|
337
|
+
return this.hasChildren(guide) && this.getChildrenIdList(guide).includes(guideId);
|
|
338
|
+
}
|
|
339
|
+
hasChildren(guide) {
|
|
340
|
+
return guide.children && Array.isArray(guide.children);
|
|
341
|
+
}
|
|
342
|
+
getChildrenIdList(guide) {
|
|
343
|
+
return (guide.children).map(guideChild => guideChild.id);
|
|
295
344
|
}
|
|
296
345
|
getConfigViewMode() {
|
|
297
346
|
return VIEW_MODE.GRID;
|
|
@@ -337,9 +386,90 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
337
386
|
}
|
|
338
387
|
this._guideHasChanged = false;
|
|
339
388
|
}
|
|
389
|
+
getFieldsSearch(actionButton, item) {
|
|
390
|
+
if (this._fieldSearch == undefined || this._hasToCreateFieldSearch) {
|
|
391
|
+
this._hasToCreateFieldSearch = false;
|
|
392
|
+
this._moreOptions = actionButton;
|
|
393
|
+
actionButton.addEventListener("taskbarActionsButtonDisconnected", () => this._hasToCreateFieldSearch = true);
|
|
394
|
+
this._fieldSearch = buildFieldSearch(item, ({ argument }) => this.fieldsOptionLoader(argument), (option) => this.onSelectField(option, actionButton));
|
|
395
|
+
}
|
|
396
|
+
return this._fieldSearch;
|
|
397
|
+
}
|
|
398
|
+
fieldsOptionLoader(argument) {
|
|
399
|
+
return Promise.resolve(this._configManager.getFieldsList(this.dataUnit, argument)
|
|
400
|
+
.map(field => ({ value: field.name, label: field.label })));
|
|
401
|
+
}
|
|
402
|
+
onSelectField(option, actionButton) {
|
|
403
|
+
if (option == undefined) {
|
|
404
|
+
return;
|
|
405
|
+
}
|
|
406
|
+
this._fieldToGetFocus = option.value;
|
|
407
|
+
const fieldGuideName = this.getGuideName(option.value);
|
|
408
|
+
if (fieldGuideName !== this.selectedGuide.id) {
|
|
409
|
+
this.changeGuideHandler(fieldGuideName);
|
|
410
|
+
}
|
|
411
|
+
actionButton.hideActions();
|
|
412
|
+
}
|
|
413
|
+
getActionsList() {
|
|
414
|
+
const hardList = [{
|
|
415
|
+
value: "",
|
|
416
|
+
label: this.getMessage("snkCrud.findColumn"),
|
|
417
|
+
disableCloseOnSelect: true,
|
|
418
|
+
eagerInitialize: true,
|
|
419
|
+
itemBuilder: (actionButton, item) => this.getFieldsSearch(actionButton, item)
|
|
420
|
+
}];
|
|
421
|
+
if (this.taskbarManager != undefined && this.taskbarManager.getMoreOptions != undefined) {
|
|
422
|
+
return hardList.concat(this.taskbarManager.getMoreOptions(this.getTaskBarId(), this.configName, this.dataState, this.actionsList));
|
|
423
|
+
}
|
|
424
|
+
return hardList.concat(this.actionsList);
|
|
425
|
+
}
|
|
340
426
|
buildTaskBar() {
|
|
341
427
|
var _a;
|
|
342
|
-
return h("div", { class: `ez-col ez-flex-item--align-center ez-col--sd-6 ez-col--tb-6 ${this.presentationMode != PresentationMode.SECONDARY ? 'ez-align--right' : 'ez-padding-bottom--medium'}` }, h("snk-taskbar", { key: "guideViewerTaskbar", "data-element-id": "guideViewer", configName: this.configName, buttons: this._taskbarProcessor.buttons, disabledButtons: this._taskbarProcessor.disabledButtons, customButtons: this._taskbarProcessor.customButtons, actionsList: this.
|
|
428
|
+
return h("div", { class: `ez-col ez-flex-item--align-center ez-col--sd-6 ez-col--tb-6 ${this.presentationMode != PresentationMode.SECONDARY ? 'ez-align--right' : 'ez-padding-bottom--medium'}` }, h("snk-taskbar", { key: "guideViewerTaskbar", "data-element-id": "guideViewer", configName: this.configName, buttons: this._taskbarProcessor.buttons, disabledButtons: this._taskbarProcessor.disabledButtons, customButtons: this._taskbarProcessor.customButtons, actionsList: this.getActionsList(), messagesBuilder: this.messagesBuilder, presentationMode: this.presentationMode, primaryButton: ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.isDirty) ? "SAVE" : "INSERT", "data-taskbar-owner": "master", dataUnit: this.dataUnit, resourceID: this.resourceID, customSlotId: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }, h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" })));
|
|
429
|
+
}
|
|
430
|
+
async dataUnitActionHandler(action) {
|
|
431
|
+
var _a;
|
|
432
|
+
if (action.type === Action.FIELD_INVALIDATED) {
|
|
433
|
+
const guideName = this.getGuideName((_a = action.payload) === null || _a === void 0 ? void 0 : _a.fieldName);
|
|
434
|
+
await this.addErrorBadgeToGuide(guideName);
|
|
435
|
+
await this.openGuideNavigator(guideName);
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
async addErrorBadgeToGuide(guideName) {
|
|
439
|
+
var _a;
|
|
440
|
+
this._guides = [...(_a = this._guides) === null || _a === void 0 ? void 0 : _a.map(guide => {
|
|
441
|
+
return Object.assign(Object.assign({}, guide), { badge: this.getBadge(guide, guideName) });
|
|
442
|
+
})];
|
|
443
|
+
}
|
|
444
|
+
async openGuideNavigator(guideName) {
|
|
445
|
+
if (this.selectedGuide.id !== guideName) {
|
|
446
|
+
await this._guideNavigator.openGuideNavidator();
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
getBadge(guide, tabName) {
|
|
450
|
+
var _a;
|
|
451
|
+
if (this.selectedGuide.id === tabName) {
|
|
452
|
+
return null;
|
|
453
|
+
}
|
|
454
|
+
if (tabName === guide.id) {
|
|
455
|
+
return "error";
|
|
456
|
+
}
|
|
457
|
+
return (_a = guide.badge) !== null && _a !== void 0 ? _a : null;
|
|
458
|
+
}
|
|
459
|
+
getGuideName(fieldName) {
|
|
460
|
+
var _a;
|
|
461
|
+
for (const sheet of this._masterFormMetadata.getAllSheets()) {
|
|
462
|
+
const formFields = (_a = sheet[1]) === null || _a === void 0 ? void 0 : _a.fields;
|
|
463
|
+
for (const field of formFields) {
|
|
464
|
+
if (field.name === fieldName) {
|
|
465
|
+
return sheet[0];
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
return "";
|
|
470
|
+
}
|
|
471
|
+
componentDidLoad() {
|
|
472
|
+
this.dataUnit.subscribe(this.dataUnitActionHandler.bind(this));
|
|
343
473
|
}
|
|
344
474
|
render() {
|
|
345
475
|
var _a, _b;
|
|
@@ -358,7 +488,15 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
358
488
|
h("div", { class: "ez-margin-top--extra-small" }, h("ez-breadcrumb", Object.assign({ items: this._breadcrumbItems, onSelectedItem: (evt) => this.onBreadcrumbClickHandler(evt === null || evt === void 0 ? void 0 : evt.detail) }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `${ElementIDUtils.getInternalIDInfo("breadcrumb")}` }))))), this.presentationMode != PresentationMode.SECONDARY && this.buildTaskBar()), h("div", { class: "snk-guides-viewer__container" }, showGuides ?
|
|
359
489
|
h("ez-guide-navigator", { ref: (ref) => this._guideNavigator = ref, class: "snk-guides-viewer__guide-navigator", items: this._guides, selectedId: this.selectedGuide ? this.selectedGuide.id : undefined, onEzSelectionChange: evt => this.updateSelectedGuideHandler(evt.detail) })
|
|
360
490
|
:
|
|
361
|
-
h("div", null), h("div", { class: "snk-guides-viewer__detail-container" }, SnkGuidesViewer.buildFixedForms(
|
|
491
|
+
h("div", null), h("div", { class: "snk-guides-viewer__detail-container" }, SnkGuidesViewer.buildFixedForms({
|
|
492
|
+
formConfig: this.masterFormConfig,
|
|
493
|
+
formMetadata: this._masterFormMetadata,
|
|
494
|
+
selectedForm: (_b = this.selectedGuide) === null || _b === void 0 ? void 0 : _b.id,
|
|
495
|
+
dataUnit: this.dataUnit,
|
|
496
|
+
recordsValidator: this.recordsValidator,
|
|
497
|
+
fieldToFocus: this._fieldToGetFocus,
|
|
498
|
+
onRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this)
|
|
499
|
+
}), this.getContent())), h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this.getConfigViewMode(), onConfigSelected: (evt) => this.changeConfigViewMode(evt.detail), messagesBuilder: this.messagesBuilder, onOpenConfig: (evt) => this.openConfig(evt.detail), resourceID: this.resourceID })));
|
|
362
500
|
}
|
|
363
501
|
static get watchers() { return {
|
|
364
502
|
"dataUnit": ["observeDataUnit"],
|
|
@@ -381,17 +519,20 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
381
519
|
"presentationMode": [1, "presentation-mode"],
|
|
382
520
|
"resourceID": [1, "resource-i-d"],
|
|
383
521
|
"detailTaskbarCustomContainerId": [1, "detail-taskbar-custom-container-id"],
|
|
522
|
+
"_hasToCreateFieldSearch": [32],
|
|
384
523
|
"_breadcrumbItems": [32],
|
|
385
524
|
"_guides": [32],
|
|
386
525
|
"_formEditorConfigManager": [32],
|
|
387
526
|
"_formEditorDataUnit": [32],
|
|
388
|
-
"
|
|
527
|
+
"_fieldToGetFocus": [32],
|
|
528
|
+
"showFormConfig": [64],
|
|
529
|
+
"findField": [64]
|
|
389
530
|
}, [[2, "actionClick", "onActionClick"], [0, "snkContentCardChanged", "onContentCardChanged"]]]);
|
|
390
531
|
function defineCustomElement$1() {
|
|
391
532
|
if (typeof customElements === "undefined") {
|
|
392
533
|
return;
|
|
393
534
|
}
|
|
394
|
-
const components = ["snk-guides-viewer", "snk-actions-button", "snk-attach", "snk-config-options", "snk-configurator", "snk-data-exporter", "snk-data-unit", "snk-detail-view", "snk-exporter-email-sender", "snk-expression-group", "snk-expression-item", "snk-field-config", "snk-filter-advanced-mode", "snk-filter-assistent-mode", "snk-filter-bar", "snk-filter-detail", "snk-filter-field-search", "snk-filter-item", "snk-filter-param-config", "snk-form-config", "snk-form-summary", "snk-form-view", "snk-grid", "snk-grid-config", "snk-personalized-filter", "snk-select-box", "snk-simple-bar", "snk-simple-crud", "snk-tab-config", "snk-taskbar"];
|
|
535
|
+
const components = ["snk-guides-viewer", "snk-actions-button", "snk-attach", "snk-config-options", "snk-configurator", "snk-data-exporter", "snk-data-unit", "snk-detail-view", "snk-exporter-email-sender", "snk-expression-group", "snk-expression-item", "snk-field-config", "snk-filter-advanced-mode", "snk-filter-assistent-mode", "snk-filter-bar", "snk-filter-detail", "snk-filter-field-search", "snk-filter-item", "snk-filter-param-config", "snk-form-config", "snk-form-summary", "snk-form-view", "snk-grid", "snk-grid-config", "snk-personalized-filter", "snk-select-box", "snk-simple-bar", "snk-simple-crud", "snk-tab-config", "snk-taskbar", "taskbar-actions-button"];
|
|
395
536
|
components.forEach(tagName => { switch (tagName) {
|
|
396
537
|
case "snk-guides-viewer":
|
|
397
538
|
if (!customElements.get(tagName)) {
|
|
@@ -400,32 +541,32 @@ function defineCustomElement$1() {
|
|
|
400
541
|
break;
|
|
401
542
|
case "snk-actions-button":
|
|
402
543
|
if (!customElements.get(tagName)) {
|
|
403
|
-
defineCustomElement$
|
|
544
|
+
defineCustomElement$u();
|
|
404
545
|
}
|
|
405
546
|
break;
|
|
406
547
|
case "snk-attach":
|
|
407
548
|
if (!customElements.get(tagName)) {
|
|
408
|
-
defineCustomElement$
|
|
549
|
+
defineCustomElement$t();
|
|
409
550
|
}
|
|
410
551
|
break;
|
|
411
552
|
case "snk-config-options":
|
|
412
553
|
if (!customElements.get(tagName)) {
|
|
413
|
-
defineCustomElement$
|
|
554
|
+
defineCustomElement$s();
|
|
414
555
|
}
|
|
415
556
|
break;
|
|
416
557
|
case "snk-configurator":
|
|
417
558
|
if (!customElements.get(tagName)) {
|
|
418
|
-
defineCustomElement$
|
|
559
|
+
defineCustomElement$r();
|
|
419
560
|
}
|
|
420
561
|
break;
|
|
421
562
|
case "snk-data-exporter":
|
|
422
563
|
if (!customElements.get(tagName)) {
|
|
423
|
-
defineCustomElement$
|
|
564
|
+
defineCustomElement$q();
|
|
424
565
|
}
|
|
425
566
|
break;
|
|
426
567
|
case "snk-data-unit":
|
|
427
568
|
if (!customElements.get(tagName)) {
|
|
428
|
-
defineCustomElement$
|
|
569
|
+
defineCustomElement$p();
|
|
429
570
|
}
|
|
430
571
|
break;
|
|
431
572
|
case "snk-detail-view":
|
|
@@ -435,110 +576,115 @@ function defineCustomElement$1() {
|
|
|
435
576
|
break;
|
|
436
577
|
case "snk-exporter-email-sender":
|
|
437
578
|
if (!customElements.get(tagName)) {
|
|
438
|
-
defineCustomElement$
|
|
579
|
+
defineCustomElement$o();
|
|
439
580
|
}
|
|
440
581
|
break;
|
|
441
582
|
case "snk-expression-group":
|
|
442
583
|
if (!customElements.get(tagName)) {
|
|
443
|
-
defineCustomElement$
|
|
584
|
+
defineCustomElement$n();
|
|
444
585
|
}
|
|
445
586
|
break;
|
|
446
587
|
case "snk-expression-item":
|
|
447
588
|
if (!customElements.get(tagName)) {
|
|
448
|
-
defineCustomElement$
|
|
589
|
+
defineCustomElement$m();
|
|
449
590
|
}
|
|
450
591
|
break;
|
|
451
592
|
case "snk-field-config":
|
|
452
593
|
if (!customElements.get(tagName)) {
|
|
453
|
-
defineCustomElement$
|
|
594
|
+
defineCustomElement$l();
|
|
454
595
|
}
|
|
455
596
|
break;
|
|
456
597
|
case "snk-filter-advanced-mode":
|
|
457
598
|
if (!customElements.get(tagName)) {
|
|
458
|
-
defineCustomElement$
|
|
599
|
+
defineCustomElement$k();
|
|
459
600
|
}
|
|
460
601
|
break;
|
|
461
602
|
case "snk-filter-assistent-mode":
|
|
462
603
|
if (!customElements.get(tagName)) {
|
|
463
|
-
defineCustomElement$
|
|
604
|
+
defineCustomElement$j();
|
|
464
605
|
}
|
|
465
606
|
break;
|
|
466
607
|
case "snk-filter-bar":
|
|
467
608
|
if (!customElements.get(tagName)) {
|
|
468
|
-
defineCustomElement$
|
|
609
|
+
defineCustomElement$i();
|
|
469
610
|
}
|
|
470
611
|
break;
|
|
471
612
|
case "snk-filter-detail":
|
|
472
613
|
if (!customElements.get(tagName)) {
|
|
473
|
-
defineCustomElement$
|
|
614
|
+
defineCustomElement$h();
|
|
474
615
|
}
|
|
475
616
|
break;
|
|
476
617
|
case "snk-filter-field-search":
|
|
477
618
|
if (!customElements.get(tagName)) {
|
|
478
|
-
defineCustomElement$
|
|
619
|
+
defineCustomElement$g();
|
|
479
620
|
}
|
|
480
621
|
break;
|
|
481
622
|
case "snk-filter-item":
|
|
482
623
|
if (!customElements.get(tagName)) {
|
|
483
|
-
defineCustomElement$
|
|
624
|
+
defineCustomElement$f();
|
|
484
625
|
}
|
|
485
626
|
break;
|
|
486
627
|
case "snk-filter-param-config":
|
|
487
628
|
if (!customElements.get(tagName)) {
|
|
488
|
-
defineCustomElement$
|
|
629
|
+
defineCustomElement$e();
|
|
489
630
|
}
|
|
490
631
|
break;
|
|
491
632
|
case "snk-form-config":
|
|
492
633
|
if (!customElements.get(tagName)) {
|
|
493
|
-
defineCustomElement$
|
|
634
|
+
defineCustomElement$d();
|
|
494
635
|
}
|
|
495
636
|
break;
|
|
496
637
|
case "snk-form-summary":
|
|
497
638
|
if (!customElements.get(tagName)) {
|
|
498
|
-
defineCustomElement$
|
|
639
|
+
defineCustomElement$c();
|
|
499
640
|
}
|
|
500
641
|
break;
|
|
501
642
|
case "snk-form-view":
|
|
502
643
|
if (!customElements.get(tagName)) {
|
|
503
|
-
defineCustomElement$
|
|
644
|
+
defineCustomElement$b();
|
|
504
645
|
}
|
|
505
646
|
break;
|
|
506
647
|
case "snk-grid":
|
|
507
648
|
if (!customElements.get(tagName)) {
|
|
508
|
-
defineCustomElement$
|
|
649
|
+
defineCustomElement$a();
|
|
509
650
|
}
|
|
510
651
|
break;
|
|
511
652
|
case "snk-grid-config":
|
|
512
653
|
if (!customElements.get(tagName)) {
|
|
513
|
-
defineCustomElement$
|
|
654
|
+
defineCustomElement$9();
|
|
514
655
|
}
|
|
515
656
|
break;
|
|
516
657
|
case "snk-personalized-filter":
|
|
517
658
|
if (!customElements.get(tagName)) {
|
|
518
|
-
defineCustomElement$
|
|
659
|
+
defineCustomElement$8();
|
|
519
660
|
}
|
|
520
661
|
break;
|
|
521
662
|
case "snk-select-box":
|
|
522
663
|
if (!customElements.get(tagName)) {
|
|
523
|
-
defineCustomElement$
|
|
664
|
+
defineCustomElement$7();
|
|
524
665
|
}
|
|
525
666
|
break;
|
|
526
667
|
case "snk-simple-bar":
|
|
527
668
|
if (!customElements.get(tagName)) {
|
|
528
|
-
defineCustomElement$
|
|
669
|
+
defineCustomElement$6();
|
|
529
670
|
}
|
|
530
671
|
break;
|
|
531
672
|
case "snk-simple-crud":
|
|
532
673
|
if (!customElements.get(tagName)) {
|
|
533
|
-
defineCustomElement$
|
|
674
|
+
defineCustomElement$5();
|
|
534
675
|
}
|
|
535
676
|
break;
|
|
536
677
|
case "snk-tab-config":
|
|
537
678
|
if (!customElements.get(tagName)) {
|
|
538
|
-
defineCustomElement$
|
|
679
|
+
defineCustomElement$4();
|
|
539
680
|
}
|
|
540
681
|
break;
|
|
541
682
|
case "snk-taskbar":
|
|
683
|
+
if (!customElements.get(tagName)) {
|
|
684
|
+
defineCustomElement$3();
|
|
685
|
+
}
|
|
686
|
+
break;
|
|
687
|
+
case "taskbar-actions-button":
|
|
542
688
|
if (!customElements.get(tagName)) {
|
|
543
689
|
defineCustomElement$2();
|
|
544
690
|
}
|
|
@@ -615,6 +761,10 @@ const SnkDetailView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
615
761
|
this.canEdit = true;
|
|
616
762
|
this.taskbarCustomContainerId = undefined;
|
|
617
763
|
}
|
|
764
|
+
observeDataUnit(newDataUnit, oldDataUnit) {
|
|
765
|
+
newDataUnit === null || newDataUnit === void 0 ? void 0 : newDataUnit.subscribe(this.dataUnitActionHandler.bind(this));
|
|
766
|
+
oldDataUnit === null || oldDataUnit === void 0 ? void 0 : oldDataUnit.unsubscribe(this.dataUnitActionHandler);
|
|
767
|
+
}
|
|
618
768
|
observerDataState(newValue, oldValue) {
|
|
619
769
|
const openInsertion = !(oldValue === null || oldValue === void 0 ? void 0 : oldValue.insertionMode) && (newValue === null || newValue === void 0 ? void 0 : newValue.insertionMode);
|
|
620
770
|
const closeInsertion = (oldValue === null || oldValue === void 0 ? void 0 : oldValue.insertionMode) && !(newValue === null || newValue === void 0 ? void 0 : newValue.insertionMode);
|
|
@@ -649,6 +799,9 @@ const SnkDetailView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
649
799
|
if (!this.dataState.hasNext) {
|
|
650
800
|
disabledButtons.push(TaskbarElement.NEXT);
|
|
651
801
|
}
|
|
802
|
+
if (this.dataState.insertionMode) {
|
|
803
|
+
disabledButtons.push(TaskbarElement.INSERT);
|
|
804
|
+
}
|
|
652
805
|
this._disabledButtons = disabledButtons;
|
|
653
806
|
}
|
|
654
807
|
/**
|
|
@@ -780,12 +933,22 @@ const SnkDetailView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
780
933
|
this.messagesBuilder = new SnkMessageBuilder(this.entityName);
|
|
781
934
|
}
|
|
782
935
|
}
|
|
936
|
+
async dataUnitActionHandler(action) {
|
|
937
|
+
if (action.type === Action.FIELD_INVALIDATED) {
|
|
938
|
+
this.addErrorBadgeToBranchGuide();
|
|
939
|
+
}
|
|
940
|
+
}
|
|
941
|
+
addErrorBadgeToBranchGuide() {
|
|
942
|
+
this.branchGuide = Object.assign(Object.assign({}, this.branchGuide), { badge: 'error' });
|
|
943
|
+
this.snkDetailGuidesChange.emit(new GuideBuilder(this.branchGuide, this._formMetadata, this.dataUnit));
|
|
944
|
+
}
|
|
783
945
|
render() {
|
|
784
946
|
this.updateLabel();
|
|
785
947
|
//const cardConfig: IFormCardConfig = this._cardsState?.get(this.selectedForm);
|
|
786
948
|
return (h(Host, null, h("snk-data-unit", { ref: (el) => this._snkDataUnit = el, dataUnitName: `${this.dataUnitName}`, onDataUnitReady: evt => this.dataUnitReadyHandler(evt), entityName: this.entityName, onDataStateChange: this.handleDataStateChange.bind(this), ignoreSaveMessage: this._currentView === VIEW_MODE.GRID, messagesBuilder: this.messagesBuilder, configName: this._configName }, h("ez-view-stack", { ref: (ref) => this.updateViewStack(ref) }, h("stack-item", null, h("div", { class: "ez-box ez-box--shadow grid-container" }, h("div", { class: "ez-flex ez-title--primary ez-size-width--full ez-padding--large detail-header" }, h("div", { class: "ez-flex ez-text ez-text--bold ez-flex--justify-start ez-flex--align-items-center" }, this._levelPath ? h("span", { class: "level-path" }, this._levelPath + " /") : undefined, this.label)), h("snk-grid", { class: "ez-size-width--full ez-size-height--full", ref: (ref) => this._snkGrid = ref, configName: this._configName, messagesBuilder: this.messagesBuilder, onGridDoubleClick: () => this.emitSwitchEvent(VIEW_MODE.FORM), onActionClick: (evt) => this.executeActionHandler(evt), presentationMode: PresentationMode.SECONDARY, canEdit: this.canEdit, isDetail: true, taskbarCustomContainerId: this.taskbarCustomContainerId, gridHeaderCustomSlotId: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS", topTaskbarCustomSlotId: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS" }))), h("stack-item", null, h("snk-form-view", { ref: (ref) => this._snkFormView = ref, canExpand: false, canFix: false, name: this.selectedForm, formMetadata: this._formMetadata, dataUnit: this.dataUnit, fields: this.getFormFields(), label: this.label, levelPath: this._levelPath, onFormItemsReady: ({ detail: formItems }) => this.formItemsReady.emit(formItems) }, h("snk-taskbar", { key: "guideViewerTaskbar", class: "form-taskbar", "data-element-id": "guideViewer", configName: this._configName, messagesBuilder: this.messagesBuilder, disabledButtons: this._disabledButtons, buttons: "INSERT,PREVIOUS,NEXT,DIVIDER,CLONE,REMOVE,MORE_OPTIONS,DIVIDER,GRID_MODE,CONFIGURATOR", primaryButton: "INSERT", presentationMode: PresentationMode.SECONDARY, onActionClick: evt => this.executeActionHandler(evt), dataUnit: this.dataUnit, resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }, h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" })))), h("stack-item", null, h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this.entityName, onBack: this.handleAttachBack.bind(this) }))))));
|
|
787
949
|
}
|
|
788
950
|
static get watchers() { return {
|
|
951
|
+
"dataUnit": ["observeDataUnit"],
|
|
789
952
|
"dataState": ["observerDataState"]
|
|
790
953
|
}; }
|
|
791
954
|
static get style() { return snkDetailViewCss; }
|
|
@@ -800,7 +963,7 @@ const SnkDetailView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
800
963
|
"selectedForm": [1025, "selected-form"],
|
|
801
964
|
"dataState": [1040],
|
|
802
965
|
"messagesBuilder": [1040],
|
|
803
|
-
"branchGuide": [
|
|
966
|
+
"branchGuide": [1040],
|
|
804
967
|
"canEdit": [4, "can-edit"],
|
|
805
968
|
"taskbarCustomContainerId": [1, "taskbar-custom-container-id"],
|
|
806
969
|
"_disabledButtons": [32],
|
|
@@ -815,7 +978,7 @@ function defineCustomElement() {
|
|
|
815
978
|
if (typeof customElements === "undefined") {
|
|
816
979
|
return;
|
|
817
980
|
}
|
|
818
|
-
const components = ["snk-detail-view", "snk-actions-button", "snk-attach", "snk-data-exporter", "snk-data-unit", "snk-exporter-email-sender", "snk-expression-group", "snk-expression-item", "snk-filter-advanced-mode", "snk-filter-assistent-mode", "snk-filter-bar", "snk-filter-detail", "snk-filter-field-search", "snk-filter-item", "snk-filter-param-config", "snk-form-summary", "snk-form-view", "snk-grid", "snk-grid-config", "snk-personalized-filter", "snk-select-box", "snk-simple-bar", "snk-simple-crud", "snk-taskbar"];
|
|
981
|
+
const components = ["snk-detail-view", "snk-actions-button", "snk-attach", "snk-data-exporter", "snk-data-unit", "snk-exporter-email-sender", "snk-expression-group", "snk-expression-item", "snk-filter-advanced-mode", "snk-filter-assistent-mode", "snk-filter-bar", "snk-filter-detail", "snk-filter-field-search", "snk-filter-item", "snk-filter-param-config", "snk-form-summary", "snk-form-view", "snk-grid", "snk-grid-config", "snk-personalized-filter", "snk-select-box", "snk-simple-bar", "snk-simple-crud", "snk-taskbar", "taskbar-actions-button"];
|
|
819
982
|
components.forEach(tagName => { switch (tagName) {
|
|
820
983
|
case "snk-detail-view":
|
|
821
984
|
if (!customElements.get(tagName)) {
|
|
@@ -824,115 +987,120 @@ function defineCustomElement() {
|
|
|
824
987
|
break;
|
|
825
988
|
case "snk-actions-button":
|
|
826
989
|
if (!customElements.get(tagName)) {
|
|
827
|
-
defineCustomElement$
|
|
990
|
+
defineCustomElement$u();
|
|
828
991
|
}
|
|
829
992
|
break;
|
|
830
993
|
case "snk-attach":
|
|
831
994
|
if (!customElements.get(tagName)) {
|
|
832
|
-
defineCustomElement$
|
|
995
|
+
defineCustomElement$t();
|
|
833
996
|
}
|
|
834
997
|
break;
|
|
835
998
|
case "snk-data-exporter":
|
|
836
999
|
if (!customElements.get(tagName)) {
|
|
837
|
-
defineCustomElement$
|
|
1000
|
+
defineCustomElement$q();
|
|
838
1001
|
}
|
|
839
1002
|
break;
|
|
840
1003
|
case "snk-data-unit":
|
|
841
1004
|
if (!customElements.get(tagName)) {
|
|
842
|
-
defineCustomElement$
|
|
1005
|
+
defineCustomElement$p();
|
|
843
1006
|
}
|
|
844
1007
|
break;
|
|
845
1008
|
case "snk-exporter-email-sender":
|
|
846
1009
|
if (!customElements.get(tagName)) {
|
|
847
|
-
defineCustomElement$
|
|
1010
|
+
defineCustomElement$o();
|
|
848
1011
|
}
|
|
849
1012
|
break;
|
|
850
1013
|
case "snk-expression-group":
|
|
851
1014
|
if (!customElements.get(tagName)) {
|
|
852
|
-
defineCustomElement$
|
|
1015
|
+
defineCustomElement$n();
|
|
853
1016
|
}
|
|
854
1017
|
break;
|
|
855
1018
|
case "snk-expression-item":
|
|
856
1019
|
if (!customElements.get(tagName)) {
|
|
857
|
-
defineCustomElement$
|
|
1020
|
+
defineCustomElement$m();
|
|
858
1021
|
}
|
|
859
1022
|
break;
|
|
860
1023
|
case "snk-filter-advanced-mode":
|
|
861
1024
|
if (!customElements.get(tagName)) {
|
|
862
|
-
defineCustomElement$
|
|
1025
|
+
defineCustomElement$k();
|
|
863
1026
|
}
|
|
864
1027
|
break;
|
|
865
1028
|
case "snk-filter-assistent-mode":
|
|
866
1029
|
if (!customElements.get(tagName)) {
|
|
867
|
-
defineCustomElement$
|
|
1030
|
+
defineCustomElement$j();
|
|
868
1031
|
}
|
|
869
1032
|
break;
|
|
870
1033
|
case "snk-filter-bar":
|
|
871
1034
|
if (!customElements.get(tagName)) {
|
|
872
|
-
defineCustomElement$
|
|
1035
|
+
defineCustomElement$i();
|
|
873
1036
|
}
|
|
874
1037
|
break;
|
|
875
1038
|
case "snk-filter-detail":
|
|
876
1039
|
if (!customElements.get(tagName)) {
|
|
877
|
-
defineCustomElement$
|
|
1040
|
+
defineCustomElement$h();
|
|
878
1041
|
}
|
|
879
1042
|
break;
|
|
880
1043
|
case "snk-filter-field-search":
|
|
881
1044
|
if (!customElements.get(tagName)) {
|
|
882
|
-
defineCustomElement$
|
|
1045
|
+
defineCustomElement$g();
|
|
883
1046
|
}
|
|
884
1047
|
break;
|
|
885
1048
|
case "snk-filter-item":
|
|
886
1049
|
if (!customElements.get(tagName)) {
|
|
887
|
-
defineCustomElement$
|
|
1050
|
+
defineCustomElement$f();
|
|
888
1051
|
}
|
|
889
1052
|
break;
|
|
890
1053
|
case "snk-filter-param-config":
|
|
891
1054
|
if (!customElements.get(tagName)) {
|
|
892
|
-
defineCustomElement$
|
|
1055
|
+
defineCustomElement$e();
|
|
893
1056
|
}
|
|
894
1057
|
break;
|
|
895
1058
|
case "snk-form-summary":
|
|
896
1059
|
if (!customElements.get(tagName)) {
|
|
897
|
-
defineCustomElement$
|
|
1060
|
+
defineCustomElement$c();
|
|
898
1061
|
}
|
|
899
1062
|
break;
|
|
900
1063
|
case "snk-form-view":
|
|
901
1064
|
if (!customElements.get(tagName)) {
|
|
902
|
-
defineCustomElement$
|
|
1065
|
+
defineCustomElement$b();
|
|
903
1066
|
}
|
|
904
1067
|
break;
|
|
905
1068
|
case "snk-grid":
|
|
906
1069
|
if (!customElements.get(tagName)) {
|
|
907
|
-
defineCustomElement$
|
|
1070
|
+
defineCustomElement$a();
|
|
908
1071
|
}
|
|
909
1072
|
break;
|
|
910
1073
|
case "snk-grid-config":
|
|
911
1074
|
if (!customElements.get(tagName)) {
|
|
912
|
-
defineCustomElement$
|
|
1075
|
+
defineCustomElement$9();
|
|
913
1076
|
}
|
|
914
1077
|
break;
|
|
915
1078
|
case "snk-personalized-filter":
|
|
916
1079
|
if (!customElements.get(tagName)) {
|
|
917
|
-
defineCustomElement$
|
|
1080
|
+
defineCustomElement$8();
|
|
918
1081
|
}
|
|
919
1082
|
break;
|
|
920
1083
|
case "snk-select-box":
|
|
921
1084
|
if (!customElements.get(tagName)) {
|
|
922
|
-
defineCustomElement$
|
|
1085
|
+
defineCustomElement$7();
|
|
923
1086
|
}
|
|
924
1087
|
break;
|
|
925
1088
|
case "snk-simple-bar":
|
|
926
1089
|
if (!customElements.get(tagName)) {
|
|
927
|
-
defineCustomElement$
|
|
1090
|
+
defineCustomElement$6();
|
|
928
1091
|
}
|
|
929
1092
|
break;
|
|
930
1093
|
case "snk-simple-crud":
|
|
931
1094
|
if (!customElements.get(tagName)) {
|
|
932
|
-
defineCustomElement$
|
|
1095
|
+
defineCustomElement$5();
|
|
933
1096
|
}
|
|
934
1097
|
break;
|
|
935
1098
|
case "snk-taskbar":
|
|
1099
|
+
if (!customElements.get(tagName)) {
|
|
1100
|
+
defineCustomElement$3();
|
|
1101
|
+
}
|
|
1102
|
+
break;
|
|
1103
|
+
case "taskbar-actions-button":
|
|
936
1104
|
if (!customElements.get(tagName)) {
|
|
937
1105
|
defineCustomElement$2();
|
|
938
1106
|
}
|