@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
|
@@ -66,6 +66,8 @@ export class SnkFilterBar {
|
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
+
if (this._loadingPending || this._configUpdated)
|
|
70
|
+
this.configUpdated.emit(newValue);
|
|
69
71
|
this.processAfterUpdateConfig();
|
|
70
72
|
}
|
|
71
73
|
/**
|
|
@@ -74,6 +76,62 @@ export class SnkFilterBar {
|
|
|
74
76
|
async reload() {
|
|
75
77
|
this.loadConfigFromStorage();
|
|
76
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* Retorna um item de filtro pelo ID.
|
|
81
|
+
*/
|
|
82
|
+
async getFilterItem(id) {
|
|
83
|
+
const item = this.filterConfig.find(item => item.id === id);
|
|
84
|
+
return Promise.resolve(ObjectUtils.copy(item));
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Atualiza um item do filtro.
|
|
88
|
+
*
|
|
89
|
+
* @param filterItem - Item com as informações atualizadas, caso o item não seja encontrado no array ele mão será modificado
|
|
90
|
+
*/
|
|
91
|
+
async updateFilterItem(newFilterItem) {
|
|
92
|
+
const itemIndex = this.filterConfig.findIndex(item => item.id === newFilterItem.id);
|
|
93
|
+
if (itemIndex == -1) {
|
|
94
|
+
console.warn("[SnkFilterBar.updateFilterItem] FilterItem não encontrado, o mesmo não será atualizado.");
|
|
95
|
+
return Promise.resolve();
|
|
96
|
+
}
|
|
97
|
+
this._loadingPending = true;
|
|
98
|
+
this.updateFilter(newFilterItem);
|
|
99
|
+
return Promise.resolve();
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Adiciona um item de filtro.
|
|
103
|
+
*
|
|
104
|
+
* @param filterItem - Item a ser adicionado, caso o item já exista com o ID ele não será adicionado novamente
|
|
105
|
+
*/
|
|
106
|
+
async addFilterItem(filterItem) {
|
|
107
|
+
const itemIndex = this.filterConfig.findIndex(item => item.id === filterItem.id);
|
|
108
|
+
if (itemIndex > -1) {
|
|
109
|
+
console.warn("[SnkFilterBar.addFilterItem] FilterItem já existe , o mesmo não será adicionado novamente.");
|
|
110
|
+
return Promise.resolve();
|
|
111
|
+
}
|
|
112
|
+
this.filterConfig.push(filterItem);
|
|
113
|
+
this._loadingPending = true;
|
|
114
|
+
this.updateFilter(filterItem);
|
|
115
|
+
return Promise.resolve();
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Remove um item de filtro.
|
|
119
|
+
*
|
|
120
|
+
* @param filterID - ID do a ser adicionado
|
|
121
|
+
*
|
|
122
|
+
* @returns {Promise<SnkFilterItemConfig|undefined>} - Retorna o item de filtro removido, ou undefined caso não encontrado.
|
|
123
|
+
*/
|
|
124
|
+
async removeFilterItem(filterID) {
|
|
125
|
+
const itemIndex = this.filterConfig.findIndex(item => item.id === filterID);
|
|
126
|
+
if (itemIndex > -1) {
|
|
127
|
+
console.warn("[SnkFilterBar.removeFilterItem] FilterItem não encontrado");
|
|
128
|
+
return Promise.resolve(undefined);
|
|
129
|
+
}
|
|
130
|
+
const itemToRemove = this.filterConfig[itemIndex];
|
|
131
|
+
;
|
|
132
|
+
this.filterConfig = this.filterConfig.filter(item => item.id !== filterID);
|
|
133
|
+
return Promise.resolve(itemToRemove);
|
|
134
|
+
}
|
|
77
135
|
componentDidLoad() {
|
|
78
136
|
if (this._element) {
|
|
79
137
|
const dataInfo = { dataUnit: this.dataUnit };
|
|
@@ -98,6 +156,8 @@ export class SnkFilterBar {
|
|
|
98
156
|
}
|
|
99
157
|
async processAfterUpdateConfig() {
|
|
100
158
|
if (this._loadingPending) {
|
|
159
|
+
if (await this._application.isLoadedByPk() && !this._configUpdated)
|
|
160
|
+
return;
|
|
101
161
|
const personalizedFilter = this.getPersonalizedFilterItem();
|
|
102
162
|
this._pendingVariables = !PersonalizedFilterUtils.validateVariableValues(personalizedFilter);
|
|
103
163
|
if (this._pendingVariables) {
|
|
@@ -269,13 +329,18 @@ export class SnkFilterBar {
|
|
|
269
329
|
const callbackOnApplyFilter = (filters) => {
|
|
270
330
|
this.filterConfig = filters.map(this.normalizeItem).sort((a, b) => this._filtersComparator(a, b));
|
|
271
331
|
};
|
|
332
|
+
let filtersConfigCopy = ObjectUtils.copy(this.filterConfig);
|
|
333
|
+
filtersConfigCopy = filtersConfigCopy.sort((itemA, itemB) => {
|
|
334
|
+
return itemA.originOrder - itemB.originOrder;
|
|
335
|
+
});
|
|
272
336
|
const factoryParams = {
|
|
273
|
-
filterConfig:
|
|
337
|
+
filterConfig: filtersConfigCopy,
|
|
274
338
|
configName: this.configName,
|
|
275
339
|
onComplete: callbackOnApplyFilter,
|
|
276
340
|
getMessage: (key, props) => this.getMessage(key, props),
|
|
277
341
|
onAddPersonalizedFilter: () => this.addPersonalizedFilter(),
|
|
278
|
-
onEditPersonalizedFilter: (id) => this.editPersonalizedFilter(id)
|
|
342
|
+
onEditPersonalizedFilter: (id) => this.editPersonalizedFilter(id),
|
|
343
|
+
onDeletePersonalizedFilter: (filter, configName) => this.deletePersonalizedFilter(filter, FilterItemType.PERSONALIZED, configName),
|
|
279
344
|
};
|
|
280
345
|
this._filterModalFactory = new SnkFilterModalFactory(factoryParams);
|
|
281
346
|
await this._filterModalFactory.showModal();
|
|
@@ -293,11 +358,24 @@ export class SnkFilterBar {
|
|
|
293
358
|
this.showPersonalizedFilter = true;
|
|
294
359
|
this.personalizedFilterId = id;
|
|
295
360
|
}
|
|
361
|
+
deletePersonalizedFilter(filter, filterItemType, configName) {
|
|
362
|
+
if (filterItemType === FilterItemType.PERSONALIZED) {
|
|
363
|
+
ConfigStorage.removePersonalizedFilter(filter, this.resourceID, configName);
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
handleHidePersonalizedFilter(reloadFilterBar) {
|
|
367
|
+
if (reloadFilterBar) {
|
|
368
|
+
this.loadConfigFromStorage().then(() => {
|
|
369
|
+
this.hidePersonalizedFilter();
|
|
370
|
+
});
|
|
371
|
+
}
|
|
372
|
+
else {
|
|
373
|
+
this.hidePersonalizedFilter();
|
|
374
|
+
}
|
|
375
|
+
}
|
|
296
376
|
hidePersonalizedFilter() {
|
|
297
|
-
this.
|
|
298
|
-
|
|
299
|
-
this.showPersonalizedFilter = false;
|
|
300
|
-
});
|
|
377
|
+
this.personalizedFilterId = undefined;
|
|
378
|
+
this.showPersonalizedFilter = false;
|
|
301
379
|
}
|
|
302
380
|
componentWillLoad() {
|
|
303
381
|
this._application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
@@ -315,7 +393,7 @@ export class SnkFilterBar {
|
|
|
315
393
|
return undefined;
|
|
316
394
|
}
|
|
317
395
|
if (this.showPersonalizedFilter) {
|
|
318
|
-
return h("snk-personalized-filter", { class: "filter-bar__personalized-filter", filterId: this.personalizedFilterId, ref: (el) => this._elPersonalizedFilter = el, onEzCancel: () => this.
|
|
396
|
+
return h("snk-personalized-filter", { class: "filter-bar__personalized-filter", filterId: this.personalizedFilterId, ref: (el) => this._elPersonalizedFilter = el, onEzCancel: () => this.handleHidePersonalizedFilter(false), onEzAfterSave: () => this.handleHidePersonalizedFilter(true), entityUri: this.dataUnit.name, configName: this.configName, resourceID: this.resourceID });
|
|
319
397
|
}
|
|
320
398
|
return (h(Host, null, h("ez-scroller", { class: "snk-filter-bar__scroller", direction: EzScrollDirection.HORIZONTAL, activeShadow: true, locked: this.scrollerLocked }, h("section", { class: "snk-filter-bar__filter-item-container" }, this.getFilterItems())), h("ez-button", { class: "ez-padding-left--medium", size: "small", label: this.getMessage('snkFilterBar.filters', undefined, 'Filtros'), onClick: this.showFilterModal.bind(this) }, h("ez-icon", { slot: "leftIcon", iconName: "plus", class: "ez-padding-right--small" }))));
|
|
321
399
|
}
|
|
@@ -440,6 +518,29 @@ export class SnkFilterBar {
|
|
|
440
518
|
"personalizedFilterId": {}
|
|
441
519
|
};
|
|
442
520
|
}
|
|
521
|
+
static get events() {
|
|
522
|
+
return [{
|
|
523
|
+
"method": "configUpdated",
|
|
524
|
+
"name": "configUpdated",
|
|
525
|
+
"bubbles": true,
|
|
526
|
+
"cancelable": true,
|
|
527
|
+
"composed": true,
|
|
528
|
+
"docs": {
|
|
529
|
+
"tags": [],
|
|
530
|
+
"text": ""
|
|
531
|
+
},
|
|
532
|
+
"complexType": {
|
|
533
|
+
"original": "SnkFilterItemConfig[]",
|
|
534
|
+
"resolved": "SnkFilterItemConfig[]",
|
|
535
|
+
"references": {
|
|
536
|
+
"SnkFilterItemConfig": {
|
|
537
|
+
"location": "import",
|
|
538
|
+
"path": "./filter-item/snk-filter-item"
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
}];
|
|
543
|
+
}
|
|
443
544
|
static get methods() {
|
|
444
545
|
return {
|
|
445
546
|
"reload": {
|
|
@@ -457,6 +558,116 @@ export class SnkFilterBar {
|
|
|
457
558
|
"text": "Faz o recarregamento da filterbar buscando o state no servidor.",
|
|
458
559
|
"tags": []
|
|
459
560
|
}
|
|
561
|
+
},
|
|
562
|
+
"getFilterItem": {
|
|
563
|
+
"complexType": {
|
|
564
|
+
"signature": "(id: string) => Promise<SnkFilterItemConfig | undefined>",
|
|
565
|
+
"parameters": [{
|
|
566
|
+
"tags": [],
|
|
567
|
+
"text": ""
|
|
568
|
+
}],
|
|
569
|
+
"references": {
|
|
570
|
+
"Promise": {
|
|
571
|
+
"location": "global"
|
|
572
|
+
},
|
|
573
|
+
"SnkFilterItemConfig": {
|
|
574
|
+
"location": "import",
|
|
575
|
+
"path": "./filter-item/snk-filter-item"
|
|
576
|
+
}
|
|
577
|
+
},
|
|
578
|
+
"return": "Promise<SnkFilterItemConfig>"
|
|
579
|
+
},
|
|
580
|
+
"docs": {
|
|
581
|
+
"text": "Retorna um item de filtro pelo ID.",
|
|
582
|
+
"tags": []
|
|
583
|
+
}
|
|
584
|
+
},
|
|
585
|
+
"updateFilterItem": {
|
|
586
|
+
"complexType": {
|
|
587
|
+
"signature": "(newFilterItem: SnkFilterItemConfig) => Promise<void>",
|
|
588
|
+
"parameters": [{
|
|
589
|
+
"tags": [],
|
|
590
|
+
"text": ""
|
|
591
|
+
}],
|
|
592
|
+
"references": {
|
|
593
|
+
"Promise": {
|
|
594
|
+
"location": "global"
|
|
595
|
+
},
|
|
596
|
+
"SnkFilterItemConfig": {
|
|
597
|
+
"location": "import",
|
|
598
|
+
"path": "./filter-item/snk-filter-item"
|
|
599
|
+
}
|
|
600
|
+
},
|
|
601
|
+
"return": "Promise<void>"
|
|
602
|
+
},
|
|
603
|
+
"docs": {
|
|
604
|
+
"text": "Atualiza um item do filtro.",
|
|
605
|
+
"tags": [{
|
|
606
|
+
"name": "param",
|
|
607
|
+
"text": "filterItem - Item com as informa\u00E7\u00F5es atualizadas, caso o item n\u00E3o seja encontrado no array ele m\u00E3o ser\u00E1 modificado"
|
|
608
|
+
}]
|
|
609
|
+
}
|
|
610
|
+
},
|
|
611
|
+
"addFilterItem": {
|
|
612
|
+
"complexType": {
|
|
613
|
+
"signature": "(filterItem: SnkFilterItemConfig) => Promise<void>",
|
|
614
|
+
"parameters": [{
|
|
615
|
+
"tags": [{
|
|
616
|
+
"name": "param",
|
|
617
|
+
"text": "filterItem - Item a ser adicionado, caso o item j\u00E1 exista com o ID ele n\u00E3o ser\u00E1 adicionado novamente"
|
|
618
|
+
}],
|
|
619
|
+
"text": "- Item a ser adicionado, caso o item j\u00E1 exista com o ID ele n\u00E3o ser\u00E1 adicionado novamente"
|
|
620
|
+
}],
|
|
621
|
+
"references": {
|
|
622
|
+
"Promise": {
|
|
623
|
+
"location": "global"
|
|
624
|
+
},
|
|
625
|
+
"SnkFilterItemConfig": {
|
|
626
|
+
"location": "import",
|
|
627
|
+
"path": "./filter-item/snk-filter-item"
|
|
628
|
+
}
|
|
629
|
+
},
|
|
630
|
+
"return": "Promise<void>"
|
|
631
|
+
},
|
|
632
|
+
"docs": {
|
|
633
|
+
"text": "Adiciona um item de filtro.",
|
|
634
|
+
"tags": [{
|
|
635
|
+
"name": "param",
|
|
636
|
+
"text": "filterItem - Item a ser adicionado, caso o item j\u00E1 exista com o ID ele n\u00E3o ser\u00E1 adicionado novamente"
|
|
637
|
+
}]
|
|
638
|
+
}
|
|
639
|
+
},
|
|
640
|
+
"removeFilterItem": {
|
|
641
|
+
"complexType": {
|
|
642
|
+
"signature": "(filterID: string) => Promise<SnkFilterItemConfig | undefined>",
|
|
643
|
+
"parameters": [{
|
|
644
|
+
"tags": [{
|
|
645
|
+
"name": "param",
|
|
646
|
+
"text": "filterID - ID do a ser adicionado"
|
|
647
|
+
}],
|
|
648
|
+
"text": "- ID do a ser adicionado"
|
|
649
|
+
}],
|
|
650
|
+
"references": {
|
|
651
|
+
"Promise": {
|
|
652
|
+
"location": "global"
|
|
653
|
+
},
|
|
654
|
+
"SnkFilterItemConfig": {
|
|
655
|
+
"location": "import",
|
|
656
|
+
"path": "./filter-item/snk-filter-item"
|
|
657
|
+
}
|
|
658
|
+
},
|
|
659
|
+
"return": "Promise<SnkFilterItemConfig>"
|
|
660
|
+
},
|
|
661
|
+
"docs": {
|
|
662
|
+
"text": "Remove um item de filtro.",
|
|
663
|
+
"tags": [{
|
|
664
|
+
"name": "param",
|
|
665
|
+
"text": "filterID - ID do a ser adicionado"
|
|
666
|
+
}, {
|
|
667
|
+
"name": "returns",
|
|
668
|
+
"text": "- Retorna o item de filtro removido, ou undefined caso n\u00E3o encontrado."
|
|
669
|
+
}]
|
|
670
|
+
}
|
|
460
671
|
}
|
|
461
672
|
};
|
|
462
673
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { ApplicationUtils } from "@sankhyalabs/ezui/dist/collection/utils";
|
|
2
2
|
class SnkFilterModalFactory {
|
|
3
|
-
constructor({ filterConfig, configName, onComplete, getMessage, onAddPersonalizedFilter, onEditPersonalizedFilter }) {
|
|
3
|
+
constructor({ filterConfig, configName, onComplete, getMessage, onAddPersonalizedFilter, onEditPersonalizedFilter, onDeletePersonalizedFilter }) {
|
|
4
4
|
this._filterConfig = filterConfig;
|
|
5
5
|
this._configName = configName;
|
|
6
6
|
this._onComplete = onComplete;
|
|
7
7
|
this._getMessage = getMessage;
|
|
8
8
|
this._addPersonalizedFilterFn = onAddPersonalizedFilter;
|
|
9
9
|
this._editPersonalizedFilterFn = onEditPersonalizedFilter;
|
|
10
|
+
this._onDeletePersonalizedFilter = onDeletePersonalizedFilter;
|
|
10
11
|
}
|
|
11
12
|
applyFilters(newFilterConfig) {
|
|
12
13
|
this._onComplete(newFilterConfig);
|
|
@@ -22,6 +23,7 @@ class SnkFilterModalFactory {
|
|
|
22
23
|
filterModal.closeModal = () => this._closeModal();
|
|
23
24
|
filterModal.addPersonalizedFilter = () => this._addPersonalizedFilterFn();
|
|
24
25
|
filterModal.editPersonalizedFilter = (id) => this._editPersonalizedFilterFn(id);
|
|
26
|
+
filterModal.deletePersonalizedFilter = (filter, configName) => this._onDeletePersonalizedFilter(filter, configName);
|
|
25
27
|
return filterModal;
|
|
26
28
|
}
|
|
27
29
|
async showModal() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConfigStorage } from "../../lib/configs/ConfigStorage";
|
|
2
|
-
import { ObjectUtils } from "@sankhyalabs/core";
|
|
2
|
+
import { ObjectUtils, StringUtils } from "@sankhyalabs/core";
|
|
3
3
|
import { FormConfigFetcher } from "../../lib/http/data-fetcher/fetchers/form-config-fetcher";
|
|
4
4
|
export class SnkFormConfigManager {
|
|
5
5
|
constructor(configName, resourceID, onConfigChange) {
|
|
@@ -62,19 +62,36 @@ export class SnkFormConfigManager {
|
|
|
62
62
|
}
|
|
63
63
|
return updatingCardConfig;
|
|
64
64
|
}
|
|
65
|
-
getFieldsList(dataUnit) {
|
|
65
|
+
getFieldsList(dataUnit, descriptionFilter) {
|
|
66
66
|
var _a;
|
|
67
67
|
const fields = (_a = this._config) === null || _a === void 0 ? void 0 : _a.fields;
|
|
68
68
|
if (fields != undefined && fields.length > 0) {
|
|
69
|
-
return
|
|
69
|
+
return fields.map(({ label, name, readOnly }) => {
|
|
70
|
+
if (label == undefined) {
|
|
71
|
+
return dataUnit.getField(name);
|
|
72
|
+
}
|
|
73
|
+
return { name, label, readOnly };
|
|
74
|
+
})
|
|
75
|
+
.filter(field => this.isFieldVisible(field, descriptionFilter));
|
|
70
76
|
}
|
|
71
77
|
if (dataUnit != undefined) {
|
|
72
78
|
return dataUnit.metadata.fields
|
|
73
|
-
.filter(field => field
|
|
74
|
-
.map(({ name }) => { return { name }; });
|
|
79
|
+
.filter(field => this.isFieldVisible(field, descriptionFilter))
|
|
80
|
+
.map(({ label, name, readOnly }) => { return { label, name, readOnly }; });
|
|
75
81
|
}
|
|
76
82
|
return [];
|
|
77
83
|
}
|
|
84
|
+
isFieldVisible(field, descriptionFilter) {
|
|
85
|
+
if (field.visible === false) {
|
|
86
|
+
return false;
|
|
87
|
+
}
|
|
88
|
+
if (descriptionFilter == undefined) {
|
|
89
|
+
return true;
|
|
90
|
+
}
|
|
91
|
+
const normalizedText = StringUtils.replaceAccentuatedCharsLower((field.label || field.name).toLocaleLowerCase());
|
|
92
|
+
const normalizedFilter = StringUtils.replaceAccentuatedCharsLower(descriptionFilter.toLocaleLowerCase());
|
|
93
|
+
return normalizedText.includes(normalizedFilter);
|
|
94
|
+
}
|
|
78
95
|
getInsertionConfig(dataUnit) {
|
|
79
96
|
const fields = this.getFieldsList(dataUnit).filter(field => {
|
|
80
97
|
if (dataUnit) {
|
package/dist/collection/components/snk-form/subcomponents/snk-form-config/snk-form-config.js
CHANGED
|
@@ -2,7 +2,7 @@ import { h, Host } from "@stencil/core";
|
|
|
2
2
|
import { Sortable } from '@shopify/draggable';
|
|
3
3
|
import { ObjectUtils, ArrayUtils, ElementIDUtils } from '@sankhyalabs/core';
|
|
4
4
|
import { ApplicationUtils, DialogType } from "@sankhyalabs/ezui/dist/collection/utils";
|
|
5
|
-
import { ACTION_CONFIG, CONFIG_EVENTS, DEFAULT_TYPE, TAB_NAMES } from "../../../../lib/utils/constants";
|
|
5
|
+
import { ACTION_CONFIG, CONFIG_EVENTS, CONFIG_SORTABLE_EVENTS, DEFAULT_TYPE, TAB_NAMES } from "../../../../lib/utils/constants";
|
|
6
6
|
import { UserConfigType } from "../../../../lib/http/data-fetcher/fetchers/form-config-fetcher";
|
|
7
7
|
import { buildFormConfigFromDataUnit } from "@sankhyalabs/ezui/dist/collection/utils/form";
|
|
8
8
|
const CONTAINER_ID = {
|
|
@@ -410,11 +410,12 @@ export class SnkFormConfig {
|
|
|
410
410
|
draggable: '[data-draggable-element="field"]',
|
|
411
411
|
mirror: {
|
|
412
412
|
constrainDimensions: true
|
|
413
|
-
}
|
|
413
|
+
},
|
|
414
|
+
distance: CONFIG_EVENTS.dragStartDistance
|
|
414
415
|
});
|
|
415
|
-
this._sortableField.on(
|
|
416
|
-
this._sortableField.on(
|
|
417
|
-
this._sortableField.on(
|
|
416
|
+
this._sortableField.on(CONFIG_SORTABLE_EVENTS.dragStart, (evt) => this.controlStartDraggingField(evt));
|
|
417
|
+
this._sortableField.on(CONFIG_SORTABLE_EVENTS.dragSorted, (evt) => this.controlSortedDraggingField(evt));
|
|
418
|
+
this._sortableField.on(CONFIG_SORTABLE_EVENTS.dragStop, (evt) => this.controlStopDraggingField(evt));
|
|
418
419
|
}
|
|
419
420
|
controlStartDraggingGroup(evt) {
|
|
420
421
|
if (this._mouseOnFieldConfig || this._editingTitleGroup) {
|
|
@@ -440,10 +441,11 @@ export class SnkFormConfig {
|
|
|
440
441
|
draggable: '[data-draggable-element="group"]',
|
|
441
442
|
mirror: {
|
|
442
443
|
constrainDimensions: true
|
|
443
|
-
}
|
|
444
|
+
},
|
|
445
|
+
distance: CONFIG_EVENTS.dragStartDistance
|
|
444
446
|
});
|
|
445
|
-
this._sortableGroup.on(
|
|
446
|
-
this._sortableGroup.on(
|
|
447
|
+
this._sortableGroup.on(CONFIG_SORTABLE_EVENTS.dragStart, (evt) => this.controlStartDraggingGroup(evt));
|
|
448
|
+
this._sortableGroup.on(CONFIG_SORTABLE_EVENTS.dragStop, (evt) => this.controlStopDraggingGroup(evt));
|
|
447
449
|
}
|
|
448
450
|
loadUserConfig() {
|
|
449
451
|
if (this.configManager == undefined) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, Host, Fragment } from "@stencil/core";
|
|
2
2
|
import { Sortable } from '@shopify/draggable';
|
|
3
3
|
import { ApplicationContext, ElementIDUtils } from "@sankhyalabs/core";
|
|
4
|
-
import { CONFIG_EVENTS, KEY_EVENTS, TAB_NAMES, TYPE_ACTIONS } from "../../../../lib/utils/constants";
|
|
4
|
+
import { CONFIG_EVENTS, CONFIG_SORTABLE_EVENTS, KEY_EVENTS, TAB_NAMES, TYPE_ACTIONS } from "../../../../lib/utils/constants";
|
|
5
5
|
export class SnkTabConfig {
|
|
6
6
|
constructor() {
|
|
7
7
|
this._refTabActions = [];
|
|
@@ -33,10 +33,11 @@ export class SnkTabConfig {
|
|
|
33
33
|
draggable: '[data-draggable-element="tab"]',
|
|
34
34
|
mirror: {
|
|
35
35
|
constrainDimensions: true
|
|
36
|
-
}
|
|
36
|
+
},
|
|
37
|
+
distance: CONFIG_EVENTS.dragStartDistance
|
|
37
38
|
});
|
|
38
|
-
this._sortableTab.on(
|
|
39
|
-
this._sortableTab.on(
|
|
39
|
+
this._sortableTab.on(CONFIG_SORTABLE_EVENTS.dragStart, (evt) => this.controlStartDraggingTab(evt));
|
|
40
|
+
this._sortableTab.on(CONFIG_SORTABLE_EVENTS.dragStop, (evt) => this.controlStopDraggingTab(evt));
|
|
40
41
|
}
|
|
41
42
|
controlStartDraggingTab(evt) {
|
|
42
43
|
var _a, _b;
|
|
@@ -211,8 +212,9 @@ export class SnkTabConfig {
|
|
|
211
212
|
};
|
|
212
213
|
return styledLabel;
|
|
213
214
|
}
|
|
214
|
-
cancelEditText() {
|
|
215
|
+
cancelEditText(cancelTextEdition) {
|
|
215
216
|
var _a;
|
|
217
|
+
cancelTextEdition.stopPropagation();
|
|
216
218
|
this._activeEditText = false;
|
|
217
219
|
if (this._scrollContainer != undefined) {
|
|
218
220
|
(_a = this._scrollContainer.querySelector('.tab-config__tab--is-active')) === null || _a === void 0 ? void 0 : _a.focus();
|
|
@@ -234,13 +236,13 @@ export class SnkTabConfig {
|
|
|
234
236
|
handleSaveEditionText(editDetails) {
|
|
235
237
|
const { value, newValue } = editDetails.detail;
|
|
236
238
|
if (value === newValue) {
|
|
237
|
-
this.cancelEditText();
|
|
239
|
+
this.cancelEditText(editDetails);
|
|
238
240
|
return;
|
|
239
241
|
}
|
|
240
242
|
this._processedTabs.forEach((tab) => {
|
|
241
243
|
if (tab.label === value) {
|
|
242
244
|
tab.label = newValue;
|
|
243
|
-
this.cancelEditText();
|
|
245
|
+
this.cancelEditText(editDetails);
|
|
244
246
|
this.editionTitleTab.emit(editDetails);
|
|
245
247
|
}
|
|
246
248
|
});
|
|
@@ -306,7 +308,7 @@ export class SnkTabConfig {
|
|
|
306
308
|
return h("button", { id: tabId, class: `tab-config__tab${isSelected ? " tab-config__tab--is-active" : ""}`, onClick: () => this.handleTabClick(tab), onDblClick: () => { this._activeEditText = true; this._activeEditTextIndex = index; }, "data-draggable-element": index > 0 ? "tab" : "", onMouseLeave: () => this.onHideActions(index), key: tab.label }, (this._activeEditText === true && this._activeEditTextIndex === index && index > 0) ||
|
|
307
309
|
h(Fragment, null, index > 0 && h("ez-icon", { iconName: tab.leftIcon || "drag-indicator", class: "tab-config__left-icon" }), (tab.visible === false && index > 0) && h("ez-icon", { iconName: tab.leftIcon || "eye-off", class: "tab-config__left-icon tab-config__left-icon--eye-off" }), h("span", { class: "tab-config__tab-label" + (tab.visible === false && index > 0 ? " tab-config__tab-label-disabled" : ""), title: tab.label }, tab.label), index > 0 &&
|
|
308
310
|
h("ez-actions-button", { class: "tab-config__actions-button", size: "small", ref: elem => this._refTabActions[index] = elem, actions: tab.visible === false ? this._actionsShow : this._actionsHide, isTransparent: true, arrowActive: true, onEzAction: (ev) => this.handleActions(ev, tab) }), h("slot", { name: tabId, onSlotchange: (ev) => { this.handleSlotChange(ev); } })), (this._activeEditText === true && index > 0 && this._activeEditTextIndex === index) &&
|
|
309
|
-
h("ez-text-edit", { value: tab.label, styled: this.getStyledLabel(tabId), class: "tab-config__edit-text", onSaveEdition: (ev) => this.handleSaveEditionText(ev), onCancelEdition: () => this.cancelEditText() }));
|
|
311
|
+
h("ez-text-edit", { value: tab.label, styled: this.getStyledLabel(tabId), class: "tab-config__edit-text", onSaveEdition: (ev) => this.handleSaveEditionText(ev), onCancelEdition: (ev) => this.cancelEditText(ev) }));
|
|
310
312
|
})), h("button", { class: "tab-config__forward-button", ref: (el) => this._forwardButton = el, onClick: () => this.scrollFoward() })));
|
|
311
313
|
}
|
|
312
314
|
static get is() { return "snk-tab-config"; }
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { DateUtils, UserInterface } from '@sankhyalabs/core';
|
|
2
|
+
import { default as InMemoryFilterColumnDataSource } from '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource';
|
|
3
|
+
import PreloadManager from '../../../lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager';
|
|
2
4
|
export default class SnkMultiSelectionListDataSource {
|
|
3
5
|
setDataUnit(dataUnit) {
|
|
4
6
|
this._dataUnit = dataUnit;
|
|
@@ -13,6 +15,12 @@ export default class SnkMultiSelectionListDataSource {
|
|
|
13
15
|
}
|
|
14
16
|
return String(this._dataUnit.getFormattedValue(fieldName, value));
|
|
15
17
|
}
|
|
18
|
+
async getStaticOptions(fieldName) {
|
|
19
|
+
if (fieldName == undefined) {
|
|
20
|
+
return Promise.resolve(undefined);
|
|
21
|
+
}
|
|
22
|
+
return Promise.resolve(await PreloadManager.getDistinct(this._dataUnit, fieldName));
|
|
23
|
+
}
|
|
16
24
|
fetchData(filterTerm, fieldName) {
|
|
17
25
|
return new Promise(resolve => {
|
|
18
26
|
this._application.executeSelectDistinct(this._dataUnit, fieldName, filterTerm).then(result => {
|
|
@@ -26,4 +34,7 @@ export default class SnkMultiSelectionListDataSource {
|
|
|
26
34
|
});
|
|
27
35
|
});
|
|
28
36
|
}
|
|
37
|
+
sortItems(fieldName, items) {
|
|
38
|
+
return InMemoryFilterColumnDataSource.defaultSorterMultSelectionOption(this._dataUnit, fieldName, items);
|
|
39
|
+
}
|
|
29
40
|
}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
--snk-grid-min-height: 300px;
|
|
3
|
+
}
|
|
4
|
+
|
|
1
5
|
.snk-grid__container {
|
|
2
6
|
display: flex;
|
|
3
7
|
height: 100%;
|
|
@@ -5,9 +9,10 @@
|
|
|
5
9
|
}
|
|
6
10
|
|
|
7
11
|
.snk-grid__header {
|
|
12
|
+
width: 100%;
|
|
8
13
|
display: flex;
|
|
9
14
|
flex-wrap: nowrap;
|
|
10
|
-
|
|
15
|
+
justify-content: flex-end;
|
|
11
16
|
}
|
|
12
17
|
|
|
13
18
|
.snk-grid__filter-bar {
|
|
@@ -20,7 +25,7 @@
|
|
|
20
25
|
}
|
|
21
26
|
|
|
22
27
|
.snk-grid__table {
|
|
23
|
-
min-height:
|
|
28
|
+
min-height: var(--snk-grid-min-height);
|
|
24
29
|
}
|
|
25
30
|
|
|
26
31
|
.snk-grid-container__without-shadow {
|