@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
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
|
6
|
-
const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-
|
|
6
|
+
const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-0184ffbb.js');
|
|
7
7
|
require('@sankhyalabs/core');
|
|
8
|
+
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
8
9
|
require('./index-c5771aba.js');
|
|
9
|
-
require('./filter-item-type.enum-aa823a00.js');
|
|
10
10
|
|
|
11
11
|
const snkFilterAdvancedModeCss = ".sc-snk-filter-advanced-mode-h{display:block;--snk-personalized-filter--title--color:var(--title--primary, #2B3A54)}.snk-filter-advanced-mode__title.sc-snk-filter-advanced-mode{color:var(--snk-personalized-filter--title--color)}";
|
|
12
12
|
|
|
@@ -5,17 +5,17 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index$1 = require('./index-f9e81701.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const EzScrollDirection = require('@sankhyalabs/ezui/dist/collection/components/ez-scroller/EzScrollDirection');
|
|
8
|
-
const ConfigStorage = require('./ConfigStorage-
|
|
8
|
+
const ConfigStorage = require('./ConfigStorage-8009ecb2.js');
|
|
9
9
|
const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
|
|
10
|
-
const filterItemType_enum = require('./filter-item-type.enum-
|
|
10
|
+
const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
|
|
11
11
|
const index = require('./index-c5771aba.js');
|
|
12
|
+
const filterNumberVariation = require('./filterNumberVariation-d65332da.js');
|
|
12
13
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
13
|
-
const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-
|
|
14
|
-
require('./form-config-fetcher-
|
|
15
|
-
require('./DataFetcher-
|
|
16
|
-
require('./_commonjsHelpers-537d719a.js');
|
|
17
|
-
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
14
|
+
const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-0184ffbb.js');
|
|
15
|
+
require('./form-config-fetcher-df043d3d.js');
|
|
16
|
+
require('./DataFetcher-ba94ed5b.js');
|
|
18
17
|
require('./PrintUtils-bcaeb82f.js');
|
|
18
|
+
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
19
19
|
|
|
20
20
|
const buildFilter = (item) => {
|
|
21
21
|
switch (item.type) {
|
|
@@ -37,6 +37,8 @@ const buildFilter = (item) => {
|
|
|
37
37
|
return buildNumber(item);
|
|
38
38
|
case filterItemType_enum.FilterItemType.PERSONALIZED:
|
|
39
39
|
return buildPersonalized(item);
|
|
40
|
+
case filterItemType_enum.FilterItemType.CHECK_BOX_LIST:
|
|
41
|
+
return buildCheckboxList(item);
|
|
40
42
|
default:
|
|
41
43
|
return undefined;
|
|
42
44
|
}
|
|
@@ -69,6 +71,23 @@ function buildMultiList(item) {
|
|
|
69
71
|
};
|
|
70
72
|
}
|
|
71
73
|
}
|
|
74
|
+
function buildCheckboxList(item) {
|
|
75
|
+
var _a;
|
|
76
|
+
const { id, value, props } = item;
|
|
77
|
+
const selectedOptionNames = Object.entries(value !== null && value !== void 0 ? value : {})
|
|
78
|
+
.filter(([_, valueChecked]) => valueChecked === true)
|
|
79
|
+
.map(([key, _]) => key);
|
|
80
|
+
const selectedOptionsObject = (_a = props.options) === null || _a === void 0 ? void 0 : _a.filter(option => selectedOptionNames.includes(option.name));
|
|
81
|
+
return { name: id, expression: buildCheckboxListExpression(selectedOptionsObject), params: [] };
|
|
82
|
+
}
|
|
83
|
+
function buildCheckboxListExpression(options) {
|
|
84
|
+
let expression = "";
|
|
85
|
+
options.forEach((option, index) => {
|
|
86
|
+
var _a;
|
|
87
|
+
expression += ` ${index > 0 ? ((_a = option.operand) !== null && _a !== void 0 ? _a : 'OR') : ''} ${option.expression}`;
|
|
88
|
+
});
|
|
89
|
+
return expression.trim();
|
|
90
|
+
}
|
|
72
91
|
function parseMultiListValues(multiListValue) {
|
|
73
92
|
var _a, _b;
|
|
74
93
|
const value = (_b = (_a = multiListValue === null || multiListValue === void 0 ? void 0 : multiListValue.elements) !== null && _a !== void 0 ? _a : multiListValue === null || multiListValue === void 0 ? void 0 : multiListValue.members) !== null && _b !== void 0 ? _b : multiListValue;
|
|
@@ -107,15 +126,62 @@ function buildSearch(item) {
|
|
|
107
126
|
return { name: id, expression, params: [{ name: id, dataType: core.DataType.TEXT, value: DataType.toString(core.DataType.TEXT, value.value) }] };
|
|
108
127
|
}
|
|
109
128
|
function buildText(item) {
|
|
110
|
-
|
|
129
|
+
let { id, value, props } = item;
|
|
111
130
|
const expression = props.expression;
|
|
131
|
+
if (!core.StringUtils.isEmpty(props.likeAs)) {
|
|
132
|
+
value = buildLikeValue(value, props.likeAs);
|
|
133
|
+
}
|
|
112
134
|
return { name: id, expression, params: [{ name: id, dataType: core.DataType.TEXT, value: DataType.toString(core.DataType.TEXT, value) }] };
|
|
113
135
|
}
|
|
114
136
|
function buildNumber(item) {
|
|
115
137
|
const { id, value, props } = item;
|
|
138
|
+
const variation = props.variation;
|
|
139
|
+
if (variation === filterNumberVariation.FilterNumberVariation.INTERVAL) {
|
|
140
|
+
const { start, end } = value !== null && value !== void 0 ? value : { start: 0, end: 0 };
|
|
141
|
+
if (start && end) {
|
|
142
|
+
return {
|
|
143
|
+
name: id,
|
|
144
|
+
expression: props.intervalExpression.fullfill,
|
|
145
|
+
params: [
|
|
146
|
+
{ name: `${id}.START`, dataType: core.DataType.NUMBER, value: DataType.toString(core.DataType.NUMBER, start) },
|
|
147
|
+
{ name: `${id}.END`, dataType: core.DataType.NUMBER, value: DataType.toString(core.DataType.NUMBER, end) }
|
|
148
|
+
]
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
if (start) {
|
|
152
|
+
return {
|
|
153
|
+
name: id,
|
|
154
|
+
expression: props.intervalExpression.onlystart,
|
|
155
|
+
params: [
|
|
156
|
+
{ name: id, dataType: core.DataType.NUMBER, value: DataType.toString(core.DataType.NUMBER, start) }
|
|
157
|
+
]
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
if (end) {
|
|
161
|
+
return {
|
|
162
|
+
name: id,
|
|
163
|
+
expression: props.intervalExpression.onlyend,
|
|
164
|
+
params: [
|
|
165
|
+
{ name: id, dataType: core.DataType.NUMBER, value: DataType.toString(core.DataType.NUMBER, end) }
|
|
166
|
+
]
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
}
|
|
116
170
|
const expression = props.expression;
|
|
117
171
|
return { name: id, expression, params: [{ name: id, dataType: core.DataType.NUMBER, value: DataType.toString(core.DataType.NUMBER, value) }] };
|
|
118
172
|
}
|
|
173
|
+
function buildLikeValue(valueAsString, likeAs) {
|
|
174
|
+
if (likeAs === "CONTANIS") {
|
|
175
|
+
return `%${valueAsString}%`;
|
|
176
|
+
}
|
|
177
|
+
else if (likeAs === "STARTS_WITH") {
|
|
178
|
+
return `${valueAsString}%`;
|
|
179
|
+
}
|
|
180
|
+
else if (likeAs === "ENDS_WITH") {
|
|
181
|
+
return `%${valueAsString}`;
|
|
182
|
+
}
|
|
183
|
+
return valueAsString;
|
|
184
|
+
}
|
|
119
185
|
function buildPersonalized(item) {
|
|
120
186
|
const { id, groupedItems = [] } = item;
|
|
121
187
|
const activeFilters = groupedItems.filter(groupItem => !!groupItem.visible);
|
|
@@ -142,13 +208,14 @@ function buildPersonalized(item) {
|
|
|
142
208
|
}
|
|
143
209
|
|
|
144
210
|
class SnkFilterModalFactory {
|
|
145
|
-
constructor({ filterConfig, configName, onComplete, getMessage, onAddPersonalizedFilter, onEditPersonalizedFilter }) {
|
|
211
|
+
constructor({ filterConfig, configName, onComplete, getMessage, onAddPersonalizedFilter, onEditPersonalizedFilter, onDeletePersonalizedFilter }) {
|
|
146
212
|
this._filterConfig = filterConfig;
|
|
147
213
|
this._configName = configName;
|
|
148
214
|
this._onComplete = onComplete;
|
|
149
215
|
this._getMessage = getMessage;
|
|
150
216
|
this._addPersonalizedFilterFn = onAddPersonalizedFilter;
|
|
151
217
|
this._editPersonalizedFilterFn = onEditPersonalizedFilter;
|
|
218
|
+
this._onDeletePersonalizedFilter = onDeletePersonalizedFilter;
|
|
152
219
|
}
|
|
153
220
|
applyFilters(newFilterConfig) {
|
|
154
221
|
this._onComplete(newFilterConfig);
|
|
@@ -164,6 +231,7 @@ class SnkFilterModalFactory {
|
|
|
164
231
|
filterModal.closeModal = () => this._closeModal();
|
|
165
232
|
filterModal.addPersonalizedFilter = () => this._addPersonalizedFilterFn();
|
|
166
233
|
filterModal.editPersonalizedFilter = (id) => this._editPersonalizedFilterFn(id);
|
|
234
|
+
filterModal.deletePersonalizedFilter = (filter, configName) => this._onDeletePersonalizedFilter(filter, configName);
|
|
167
235
|
return filterModal;
|
|
168
236
|
}
|
|
169
237
|
async showModal() {
|
|
@@ -182,11 +250,12 @@ class SnkFilterModalFactory {
|
|
|
182
250
|
}
|
|
183
251
|
}
|
|
184
252
|
|
|
185
|
-
const snkFilterBarCss = ".sc-snk-filter-bar-h{display:grid;grid-template-columns:minmax(100px, 100%) 1fr 1fr;--snk-personalized-filter--z-index:var(--
|
|
253
|
+
const snkFilterBarCss = ".sc-snk-filter-bar-h{display:grid;grid-template-columns:minmax(100px, 100%) 1fr 1fr;--snk-personalized-filter--z-index:var(--elevation--20, 20);--snk-personalized-filter--background-color:var(--background--xlight, #fff)}.snk-filter__popover-container.sc-snk-filter-bar{display:flex;cursor:auto}.filter-bar__personalized-filter.sc-snk-filter-bar{display:flex;flex-direction:column;position:fixed;top:0;left:0;width:100%;height:100%;overflow:auto;z-index:var(--snk-personalized-filter--z-index);background-color:var(--snk-personalized-filter--background-color)}.snk-filter__popover.sc-snk-filter-bar{display:flex;flex-direction:column;position:absolute;width:fit-content;height:fit-content;min-width:265px;background-color:var(--background--xlight, #fff);border-radius:var(--border--radius-medium, 12px);box-shadow:var(--shadow, 0px 0px 16px 0px #000)}.snk-filter-item__editor-header.sc-snk-filter-bar{flex-grow:1;font-weight:var(--text-weight--medium, 400);color:var(--color--title-primary, #2B3A54)}.snk-filter__popover-rule.sc-snk-filter-bar{border-style:solid;border-color:var(--color--disable-secondary, #F2F5F8);border-radius:1px;border-width:1px;width:100%}.editor__ez-check.sc-snk-filter-bar{--ez-check__label--padding-left:0}.snk-filter-item__editor-header-button.sc-snk-filter-bar{cursor:pointer;background-color:transparent;border:none;padding:3px;outline-color:var(--color--primary)}.snk-filter-bar__divider.sc-snk-filter-bar{margin-bottom:var(--space--small)}.snk-filter-bar__scroller.sc-snk-filter-bar{height:calc(100% + var(--space-extra-small, 3px))}.snk-filter-bar__filter-item-container.sc-snk-filter-bar{display:flex;align-self:center}.snk-filter-bar__scroller.sc-snk-filter-bar .sc-snk-filter-bar:first-child{margin-left:var(--space-extra-small, 3px)}.snk-filter-bar__filter-list-items-container.sc-snk-filter-bar{overflow-y:auto;max-height:360px;margin-top:var(--space--small, 6px)}.snk-filter-bar__filter-list-item.sc-snk-filter-bar{cursor:pointer;border-radius:var(--border--radius-small, 6px);border:none;background-color:transparent}.snk-filter-bar__filter-list-item__label.sc-snk-filter-bar{color:var(--title--primary)}.snk-filter-bar__filter-list-item__label--secondary.sc-snk-filter-bar{color:var(--text--primary)}.snk-filter-bar__filter-list-item__icon.sc-snk-filter-bar{--ez-icon--color:var(--title--primary)}.snk-filter-bar__filter-list-item__icon--secondary.sc-snk-filter-bar{--ez-icon--color:var(--text--secondary)}.snk-filter-bar__filter-list-item.sc-snk-filter-bar:focus-visible{outline:none;background-color:var(--background--medium)}.snk-filter-bar__filter-list-item.sc-snk-filter-bar:hover{background-color:var(--background--medium)}.snk-filter-bar__filter-list-items-container--empty.sc-snk-filter-bar{width:100%;height:100px;display:flex;justify-content:center;align-self:center;align-items:center}.snk-filter-bar__filter-list-items-button--active.sc-snk-filter-bar{position:relative}.snk-filter-bar__filter-list-items-button--active.sc-snk-filter-bar::after{display:flex;position:absolute;content:\"\";width:8px;height:8px;top:7px;left:17px;background-color:var(--icon--alert--color, #008561);border-radius:50%}.snk-filter-bar__filter-modal-item.sc-snk-filter-bar{--modal-item-border-width:2px;display:flex;flex-direction:row;margin-left:var(--modal-item-border-width);border-radius:var(--border--radius-medium, 12px);background-color:var(--background--medium, #f0f3f7);border:none;width:100%}.snk-filter-bar__filter-modal-item.sc-snk-filter-bar:focus-visible{outline:var(--color--primary) solid var(--modal-item-border-width)}.snk-filter-bar__filter-modal-item__check.sc-snk-filter-bar{width:auto}.snk-filter-bar__filter-modal-item__label.sc-snk-filter-bar{font-weight:var(--text-weight--medium)}.snk-filter-bar__filter-modal-content.sc-snk-filter-bar{display:grid;grid-template-rows:auto auto 1fr auto;width:99%;height:100%}";
|
|
186
254
|
|
|
187
255
|
const SnkFilterBar = class {
|
|
188
256
|
constructor(hostRef) {
|
|
189
257
|
index$1.registerInstance(this, hostRef);
|
|
258
|
+
this.configUpdated = index$1.createEvent(this, "configUpdated", 7);
|
|
190
259
|
this._updateSequence = [];
|
|
191
260
|
this._loadingPending = false;
|
|
192
261
|
this._configUpdated = false;
|
|
@@ -245,6 +314,8 @@ const SnkFilterBar = class {
|
|
|
245
314
|
});
|
|
246
315
|
}
|
|
247
316
|
}
|
|
317
|
+
if (this._loadingPending || this._configUpdated)
|
|
318
|
+
this.configUpdated.emit(newValue);
|
|
248
319
|
this.processAfterUpdateConfig();
|
|
249
320
|
}
|
|
250
321
|
/**
|
|
@@ -253,6 +324,61 @@ const SnkFilterBar = class {
|
|
|
253
324
|
async reload() {
|
|
254
325
|
this.loadConfigFromStorage();
|
|
255
326
|
}
|
|
327
|
+
/**
|
|
328
|
+
* Retorna um item de filtro pelo ID.
|
|
329
|
+
*/
|
|
330
|
+
async getFilterItem(id) {
|
|
331
|
+
const item = this.filterConfig.find(item => item.id === id);
|
|
332
|
+
return Promise.resolve(core.ObjectUtils.copy(item));
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* Atualiza um item do filtro.
|
|
336
|
+
*
|
|
337
|
+
* @param filterItem - Item com as informações atualizadas, caso o item não seja encontrado no array ele mão será modificado
|
|
338
|
+
*/
|
|
339
|
+
async updateFilterItem(newFilterItem) {
|
|
340
|
+
const itemIndex = this.filterConfig.findIndex(item => item.id === newFilterItem.id);
|
|
341
|
+
if (itemIndex == -1) {
|
|
342
|
+
console.warn("[SnkFilterBar.updateFilterItem] FilterItem não encontrado, o mesmo não será atualizado.");
|
|
343
|
+
return Promise.resolve();
|
|
344
|
+
}
|
|
345
|
+
this._loadingPending = true;
|
|
346
|
+
this.updateFilter(newFilterItem);
|
|
347
|
+
return Promise.resolve();
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* Adiciona um item de filtro.
|
|
351
|
+
*
|
|
352
|
+
* @param filterItem - Item a ser adicionado, caso o item já exista com o ID ele não será adicionado novamente
|
|
353
|
+
*/
|
|
354
|
+
async addFilterItem(filterItem) {
|
|
355
|
+
const itemIndex = this.filterConfig.findIndex(item => item.id === filterItem.id);
|
|
356
|
+
if (itemIndex > -1) {
|
|
357
|
+
console.warn("[SnkFilterBar.addFilterItem] FilterItem já existe , o mesmo não será adicionado novamente.");
|
|
358
|
+
return Promise.resolve();
|
|
359
|
+
}
|
|
360
|
+
this.filterConfig.push(filterItem);
|
|
361
|
+
this._loadingPending = true;
|
|
362
|
+
this.updateFilter(filterItem);
|
|
363
|
+
return Promise.resolve();
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* Remove um item de filtro.
|
|
367
|
+
*
|
|
368
|
+
* @param filterID - ID do a ser adicionado
|
|
369
|
+
*
|
|
370
|
+
* @returns {Promise<SnkFilterItemConfig|undefined>} - Retorna o item de filtro removido, ou undefined caso não encontrado.
|
|
371
|
+
*/
|
|
372
|
+
async removeFilterItem(filterID) {
|
|
373
|
+
const itemIndex = this.filterConfig.findIndex(item => item.id === filterID);
|
|
374
|
+
if (itemIndex > -1) {
|
|
375
|
+
console.warn("[SnkFilterBar.removeFilterItem] FilterItem não encontrado");
|
|
376
|
+
return Promise.resolve(undefined);
|
|
377
|
+
}
|
|
378
|
+
const itemToRemove = this.filterConfig[itemIndex];
|
|
379
|
+
this.filterConfig = this.filterConfig.filter(item => item.id !== filterID);
|
|
380
|
+
return Promise.resolve(itemToRemove);
|
|
381
|
+
}
|
|
256
382
|
componentDidLoad() {
|
|
257
383
|
if (this._element) {
|
|
258
384
|
const dataInfo = { dataUnit: this.dataUnit };
|
|
@@ -277,6 +403,8 @@ const SnkFilterBar = class {
|
|
|
277
403
|
}
|
|
278
404
|
async processAfterUpdateConfig() {
|
|
279
405
|
if (this._loadingPending) {
|
|
406
|
+
if (await this._application.isLoadedByPk() && !this._configUpdated)
|
|
407
|
+
return;
|
|
280
408
|
const personalizedFilter = this.getPersonalizedFilterItem();
|
|
281
409
|
this._pendingVariables = !PersonalizedFilterUtils.PersonalizedFilterUtils.validateVariableValues(personalizedFilter);
|
|
282
410
|
if (this._pendingVariables) {
|
|
@@ -448,13 +576,18 @@ const SnkFilterBar = class {
|
|
|
448
576
|
const callbackOnApplyFilter = (filters) => {
|
|
449
577
|
this.filterConfig = filters.map(this.normalizeItem).sort((a, b) => this._filtersComparator(a, b));
|
|
450
578
|
};
|
|
579
|
+
let filtersConfigCopy = core.ObjectUtils.copy(this.filterConfig);
|
|
580
|
+
filtersConfigCopy = filtersConfigCopy.sort((itemA, itemB) => {
|
|
581
|
+
return itemA.originOrder - itemB.originOrder;
|
|
582
|
+
});
|
|
451
583
|
const factoryParams = {
|
|
452
|
-
filterConfig:
|
|
584
|
+
filterConfig: filtersConfigCopy,
|
|
453
585
|
configName: this.configName,
|
|
454
586
|
onComplete: callbackOnApplyFilter,
|
|
455
587
|
getMessage: (key, props) => this.getMessage(key, props),
|
|
456
588
|
onAddPersonalizedFilter: () => this.addPersonalizedFilter(),
|
|
457
|
-
onEditPersonalizedFilter: (id) => this.editPersonalizedFilter(id)
|
|
589
|
+
onEditPersonalizedFilter: (id) => this.editPersonalizedFilter(id),
|
|
590
|
+
onDeletePersonalizedFilter: (filter, configName) => this.deletePersonalizedFilter(filter, filterItemType_enum.FilterItemType.PERSONALIZED, configName),
|
|
458
591
|
};
|
|
459
592
|
this._filterModalFactory = new SnkFilterModalFactory(factoryParams);
|
|
460
593
|
await this._filterModalFactory.showModal();
|
|
@@ -472,11 +605,24 @@ const SnkFilterBar = class {
|
|
|
472
605
|
this.showPersonalizedFilter = true;
|
|
473
606
|
this.personalizedFilterId = id;
|
|
474
607
|
}
|
|
608
|
+
deletePersonalizedFilter(filter, filterItemType, configName) {
|
|
609
|
+
if (filterItemType === filterItemType_enum.FilterItemType.PERSONALIZED) {
|
|
610
|
+
ConfigStorage.ConfigStorage.removePersonalizedFilter(filter, this.resourceID, configName);
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
handleHidePersonalizedFilter(reloadFilterBar) {
|
|
614
|
+
if (reloadFilterBar) {
|
|
615
|
+
this.loadConfigFromStorage().then(() => {
|
|
616
|
+
this.hidePersonalizedFilter();
|
|
617
|
+
});
|
|
618
|
+
}
|
|
619
|
+
else {
|
|
620
|
+
this.hidePersonalizedFilter();
|
|
621
|
+
}
|
|
622
|
+
}
|
|
475
623
|
hidePersonalizedFilter() {
|
|
476
|
-
this.
|
|
477
|
-
|
|
478
|
-
this.showPersonalizedFilter = false;
|
|
479
|
-
});
|
|
624
|
+
this.personalizedFilterId = undefined;
|
|
625
|
+
this.showPersonalizedFilter = false;
|
|
480
626
|
}
|
|
481
627
|
componentWillLoad() {
|
|
482
628
|
this._application = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
@@ -494,7 +640,7 @@ const SnkFilterBar = class {
|
|
|
494
640
|
return undefined;
|
|
495
641
|
}
|
|
496
642
|
if (this.showPersonalizedFilter) {
|
|
497
|
-
return index$1.h("snk-personalized-filter", { class: "filter-bar__personalized-filter", filterId: this.personalizedFilterId, ref: (el) => this._elPersonalizedFilter = el, onEzCancel: () => this.
|
|
643
|
+
return index$1.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 });
|
|
498
644
|
}
|
|
499
645
|
return (index$1.h(index$1.Host, null, index$1.h("ez-scroller", { class: "snk-filter-bar__scroller", direction: EzScrollDirection.EzScrollDirection.HORIZONTAL, activeShadow: true, locked: this.scrollerLocked }, index$1.h("section", { class: "snk-filter-bar__filter-item-container" }, this.getFilterItems())), index$1.h("ez-button", { class: "ez-padding-left--medium", size: "small", label: this.getMessage('snkFilterBar.filters', undefined, 'Filtros'), onClick: this.showFilterModal.bind(this) }, index$1.h("ez-icon", { slot: "leftIcon", iconName: "plus", class: "ez-padding-right--small" }))));
|
|
500
646
|
}
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const filterItemType_enum = require('./filter-item-type.enum-
|
|
7
|
+
const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
|
|
8
8
|
const presentationMode = require('./presentationMode-52ec3bdd.js');
|
|
9
9
|
|
|
10
10
|
const SnkFilterBinarySelect = class {
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-f9e81701.js');
|
|
6
|
+
const core = require('@sankhyalabs/core');
|
|
7
|
+
const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
|
|
8
|
+
|
|
9
|
+
const SnkFilterCheckboxList = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.valueChanged = index.createEvent(this, "valueChanged", 7);
|
|
13
|
+
this.config = undefined;
|
|
14
|
+
this.optionsList = [];
|
|
15
|
+
}
|
|
16
|
+
componentDidLoad() {
|
|
17
|
+
if (this._element) {
|
|
18
|
+
core.ElementIDUtils.addIDInfo(this._element, 'filterContentEditor');
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
handleToggleCheck(itemChanged, checked) {
|
|
22
|
+
var _a, _b;
|
|
23
|
+
let configValueMap = (_a = this.config.value) !== null && _a !== void 0 ? _a : {};
|
|
24
|
+
configValueMap[itemChanged.name] = checked;
|
|
25
|
+
this.config = Object.assign(Object.assign({}, this.config), { value: configValueMap });
|
|
26
|
+
this.valueChanged.emit((_b = this.config) === null || _b === void 0 ? void 0 : _b.value);
|
|
27
|
+
}
|
|
28
|
+
renderOptions() {
|
|
29
|
+
return this.optionsList.map(option => (index.h("ez-check", { label: option.label, compact: true, onEzChange: (event) => this.handleToggleCheck(option, event.detail), value: !!this.isChecked(option.name) })));
|
|
30
|
+
}
|
|
31
|
+
isChecked(itemName) {
|
|
32
|
+
var _a;
|
|
33
|
+
return (_a = this.config.value) === null || _a === void 0 ? void 0 : _a[itemName];
|
|
34
|
+
}
|
|
35
|
+
buidOptions() {
|
|
36
|
+
var _a, _b, _c;
|
|
37
|
+
const propsOptions = (_c = (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.props) === null || _b === void 0 ? void 0 : _b.options) !== null && _c !== void 0 ? _c : [];
|
|
38
|
+
this.optionsList = [...propsOptions];
|
|
39
|
+
}
|
|
40
|
+
componentWillRender() {
|
|
41
|
+
this.buidOptions();
|
|
42
|
+
}
|
|
43
|
+
render() {
|
|
44
|
+
if (!this.config || this.config.type !== filterItemType_enum.FilterItemType.CHECK_BOX_LIST) {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
return (index.h("div", { class: 'ez-flex ez-flex--column' }, this.renderOptions()));
|
|
48
|
+
}
|
|
49
|
+
get _element() { return index.getElement(this); }
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
exports.snk_filter_checkbox_list = SnkFilterCheckboxList;
|
|
@@ -4,10 +4,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
|
6
6
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
7
|
-
const filterItemType_enum = require('./filter-item-type.enum-
|
|
7
|
+
const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
|
|
8
8
|
const core = require('@sankhyalabs/core');
|
|
9
9
|
const presentationMode = require('./presentationMode-52ec3bdd.js');
|
|
10
|
-
const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-
|
|
10
|
+
const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-0184ffbb.js');
|
|
11
11
|
require('./index-c5771aba.js');
|
|
12
12
|
|
|
13
13
|
const SnkFilterDetail = class {
|
|
@@ -59,6 +59,13 @@ const SnkFilterDetail = class {
|
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
return snkFilterPersonalizedProps;
|
|
62
|
+
case filterItemType_enum.FilterItemType.CHECK_BOX_LIST:
|
|
63
|
+
return {
|
|
64
|
+
tag: "snk-filter-checkbox-list",
|
|
65
|
+
props: {
|
|
66
|
+
onValueChanged: evt => this.config = Object.assign(Object.assign({}, this.config), { value: evt.detail })
|
|
67
|
+
}
|
|
68
|
+
};
|
|
62
69
|
case filterItemType_enum.FilterItemType.MULTI_LIST:
|
|
63
70
|
return {
|
|
64
71
|
tag: "snk-entity-list",
|
|
@@ -7,8 +7,8 @@ const index$1 = require('./index-8d94b7e0.js');
|
|
|
7
7
|
const core = require('@sankhyalabs/core');
|
|
8
8
|
const ezModalContainer = require('@sankhyalabs/ezui/dist/collection/components/ez-modal-container');
|
|
9
9
|
const index$2 = require('./index-c5771aba.js');
|
|
10
|
-
const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-
|
|
11
|
-
require('./filter-item-type.enum-
|
|
10
|
+
const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-0184ffbb.js');
|
|
11
|
+
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
12
12
|
|
|
13
13
|
const ICON_MODES = {
|
|
14
14
|
[core.UserInterface.SHORTTEXT]: 'text',
|
|
@@ -4,7 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const filterItemType_enum = require('./filter-item-type.enum-
|
|
7
|
+
const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
|
|
8
|
+
const filterNumberVariation = require('./filterNumberVariation-d65332da.js');
|
|
8
9
|
|
|
9
10
|
const SnkFilterItem = class {
|
|
10
11
|
constructor(hostRef) {
|
|
@@ -131,7 +132,7 @@ const SnkFilterItem = class {
|
|
|
131
132
|
}
|
|
132
133
|
}
|
|
133
134
|
getLabel(isTooltipLabel = false) {
|
|
134
|
-
var _a;
|
|
135
|
+
var _a, _b;
|
|
135
136
|
const { type, value, label, props, groupedItems = [] } = this.config;
|
|
136
137
|
if (value || groupedItems.length) {
|
|
137
138
|
if (type === filterItemType_enum.FilterItemType.BINARY_SELECT) {
|
|
@@ -171,10 +172,10 @@ const SnkFilterItem = class {
|
|
|
171
172
|
}
|
|
172
173
|
else {
|
|
173
174
|
if (start) {
|
|
174
|
-
return `${label}: ${this.getMessage('snkFilterBar.
|
|
175
|
+
return `${label}: ${this.getMessage('snkFilterBar.onlyStartToltip')} ${dateFormater.format(start)}`;
|
|
175
176
|
}
|
|
176
177
|
else if (end) {
|
|
177
|
-
return `${label}: ${this.getMessage('snkFilterBar.
|
|
178
|
+
return `${label}: ${this.getMessage('snkFilterBar.onlyEndToltip')} ${dateFormater.format(end)}`;
|
|
178
179
|
}
|
|
179
180
|
else {
|
|
180
181
|
return label;
|
|
@@ -192,23 +193,46 @@ const SnkFilterItem = class {
|
|
|
192
193
|
}
|
|
193
194
|
if (type === filterItemType_enum.FilterItemType.MULTI_LIST) {
|
|
194
195
|
const selectedOptions = ((_a = value.elements) !== null && _a !== void 0 ? _a : value).filter(item => item === null || item === void 0 ? void 0 : item.check);
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
196
|
+
return this.getLabelFromCheckedOptions(selectedOptions, label, isTooltipLabel);
|
|
197
|
+
}
|
|
198
|
+
if (type === filterItemType_enum.FilterItemType.CHECK_BOX_LIST) {
|
|
199
|
+
const selectedValues = Object.entries(value !== null && value !== void 0 ? value : {})
|
|
200
|
+
.filter(([_, value]) => value === true)
|
|
201
|
+
.map(([key, _]) => key);
|
|
202
|
+
const options = (_b = props.options) !== null && _b !== void 0 ? _b : [];
|
|
203
|
+
const selectedOptions = options.filter(option => selectedValues.includes(option.name));
|
|
204
|
+
return this.getLabelFromCheckedOptions(selectedOptions, label, isTooltipLabel);
|
|
205
|
+
}
|
|
206
|
+
if (type === filterItemType_enum.FilterItemType.NUMBER && props.variation === filterNumberVariation.FilterNumberVariation.INTERVAL) {
|
|
207
|
+
const { start, end } = value;
|
|
208
|
+
if (start && end) {
|
|
209
|
+
return this.getMessage('snkFilterBar.fullIntervalTooltip', { LABEL: label, START_LABEL: start, END_LABEL: end });
|
|
198
210
|
}
|
|
199
|
-
if (
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
}
|
|
204
|
-
return `${label}: ${checkedAmount} ${this.getMessage('snkFilterBar.multiListToltip')}`;
|
|
211
|
+
if (start) {
|
|
212
|
+
return `${label}: ${this.getMessage('snkFilterBar.onlyStartToltip')} ${Number(start)}`;
|
|
213
|
+
}
|
|
214
|
+
if (end) {
|
|
215
|
+
return `${label}: ${this.getMessage('snkFilterBar.onlyEndToltip')} ${Number(end)}`;
|
|
205
216
|
}
|
|
206
|
-
return `${label}: ${selectedOptions[0].label}`;
|
|
207
217
|
}
|
|
208
218
|
return `${label}: ${value}`;
|
|
209
219
|
}
|
|
210
220
|
return label;
|
|
211
221
|
}
|
|
222
|
+
getLabelFromCheckedOptions(selectedOptions, label, isTooltipLabel) {
|
|
223
|
+
const checkedAmount = selectedOptions.length;
|
|
224
|
+
if (checkedAmount === 0) {
|
|
225
|
+
return `${label}`;
|
|
226
|
+
}
|
|
227
|
+
if (checkedAmount > 1) {
|
|
228
|
+
if (isTooltipLabel) {
|
|
229
|
+
const selectedOptionsDescrptions = selectedOptions.map(item => item.label);
|
|
230
|
+
return `${label}: ${selectedOptionsDescrptions.join(',')}`;
|
|
231
|
+
}
|
|
232
|
+
return `${label}: ${checkedAmount} ${this.getMessage('snkFilterBar.multiListToltip')}`;
|
|
233
|
+
}
|
|
234
|
+
return `${label}: ${selectedOptions[0].label}`;
|
|
235
|
+
}
|
|
212
236
|
calculateActiveCount(groupedItems) {
|
|
213
237
|
return groupedItems.reduce((total, item) => {
|
|
214
238
|
if (!!item.visible)
|
|
@@ -270,7 +294,7 @@ const SnkFilterItem = class {
|
|
|
270
294
|
}
|
|
271
295
|
render() {
|
|
272
296
|
const leftIcon = this.getLeftIconName();
|
|
273
|
-
return (index.h(index.Host, null, index.h("ez-chip", { id: this.config.id, ref: ref => this._chipElement = ref, label: this.getLabel(), value: this.getEnabledChip() }, leftIcon ? index.h("ez-icon", { ref: ref => this._leftIconElement = ref, iconName: leftIcon, class: "ez-padding-right--small", slot: "leftIcon" }) : undefined, index.h("ez-icon", { ref: ref => this._rightIconElement = ref, iconName: this.getRightIconName(), class: "ez-padding-left--small", slot: "rightIcon", id: "removeFilter" })), index.h("section", { class: "ez-margin-top--small sc-snk-filter-bar snk-filter__popover-container", ref: elem => this._popoverContainer = elem }, index.h("snk-filter-detail", { config: this.config, getMessage: this.getMessage, class: "sc-snk-filter-bar snk-filter__popover ez-padding--small", ref: elem => this._popover = elem, key: this.config.id, "data-element-id": this._idSnkFilterDetail }))));
|
|
297
|
+
return (index.h(index.Host, null, index.h("ez-chip", { id: this.config.id, ref: ref => this._chipElement = ref, label: this.getLabel(), value: this.getEnabledChip() }, leftIcon ? index.h("ez-icon", { ref: ref => this._leftIconElement = ref, iconName: leftIcon, class: "ez-padding-right--small", slot: "leftIcon" }) : undefined, index.h("ez-icon", { ref: ref => this._rightIconElement = ref, iconName: this.getRightIconName(), class: "ez-padding-left--small", slot: "rightIcon", id: "removeFilter" })), index.h("section", { class: "ez-margin-top--small sc-snk-filter-bar snk-filter__popover-container", ref: elem => this._popoverContainer = elem }, index.h("snk-filter-detail", { config: this.config, getMessage: this.getMessage, class: "sc-snk-filter-bar snk-filter__popover ez-padding--small ez-elevation--16", ref: elem => this._popover = elem, key: this.config.id, "data-element-id": this._idSnkFilterDetail }))));
|
|
274
298
|
}
|
|
275
299
|
get _filterItemElement() { return index.getElement(this); }
|
|
276
300
|
static get watchers() { return {
|
|
@@ -144,7 +144,7 @@ const SnkFilterList = class {
|
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
render() {
|
|
147
|
-
return (index.h(index.Host, { class: "ez-flex ez-flex--column" }, index.h("ez-button", { class: this.buttonClass, label: this.label, onClick: () => this.buttonClick(), mode: this.iconName ? "icon" : undefined, iconName: this.iconName, size: "small" }, index.h("slot", { name: "leftIcon" })), index.h("section", { class: "ez-margin-top--small sc-snk-filter-bar snk-filter__popover-container", ref: elem => this._popoverContainer = elem }, index.h("div", { class: "sc-snk-filter-bar snk-filter__popover ez-padding--small", ref: elem => this._popover = elem }, index.h("ez-filter-input", { ref: ref => this._filterInput = ref, "data-element-id": "serachFilters", mode: "slim", label: this.findFilterText, value: this._filterArgument, onEzChange: (evt) => this._filterArgument = evt.detail, onFocus: () => this._preselection = 0 }), this.getFilterItems(), index.h("hr", { class: "sc-snk-filter-bar snk-filter__popover-rule" }), this.items ? this.getFooterItems().map(item => this.buildItemElement(item)) : undefined))));
|
|
147
|
+
return (index.h(index.Host, { class: "ez-flex ez-flex--column" }, index.h("ez-button", { class: this.buttonClass, label: this.label, onClick: () => this.buttonClick(), mode: this.iconName ? "icon" : undefined, iconName: this.iconName, size: "small" }, index.h("slot", { name: "leftIcon" })), index.h("section", { class: "ez-margin-top--small sc-snk-filter-bar snk-filter__popover-container", ref: elem => this._popoverContainer = elem }, index.h("div", { class: "sc-snk-filter-bar snk-filter__popover ez-padding--small ez-elevation--4", ref: elem => this._popover = elem }, index.h("ez-filter-input", { ref: ref => this._filterInput = ref, "data-element-id": "serachFilters", mode: "slim", label: this.findFilterText, value: this._filterArgument, onEzChange: (evt) => this._filterArgument = evt.detail, onFocus: () => this._preselection = 0 }), this.getFilterItems(), index.h("hr", { class: "sc-snk-filter-bar snk-filter__popover-rule" }), this.items ? this.getFooterItems().map(item => this.buildItemElement(item)) : undefined))));
|
|
148
148
|
}
|
|
149
149
|
get _element() { return index.getElement(this); }
|
|
150
150
|
};
|
|
@@ -4,15 +4,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const filterItemType_enum = require('./filter-item-type.enum-
|
|
7
|
+
const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
|
|
8
8
|
const presentationMode = require('./presentationMode-52ec3bdd.js');
|
|
9
|
-
const ConfigStorage = require('./ConfigStorage-
|
|
9
|
+
const ConfigStorage = require('./ConfigStorage-8009ecb2.js');
|
|
10
10
|
const filterType_enum = require('./filter-type.enum-b14ce507.js');
|
|
11
|
-
require('./form-config-fetcher-
|
|
12
|
-
require('./DataFetcher-
|
|
13
|
-
require('./_commonjsHelpers-537d719a.js');
|
|
14
|
-
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
11
|
+
require('./form-config-fetcher-df043d3d.js');
|
|
12
|
+
require('./DataFetcher-ba94ed5b.js');
|
|
15
13
|
require('./PrintUtils-bcaeb82f.js');
|
|
14
|
+
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
16
15
|
|
|
17
16
|
const snkFilterModalItemCss = ".grow{flex-grow:1}.gap{gap:4px}";
|
|
18
17
|
|
|
@@ -44,9 +43,11 @@ const SnkFilterModalItem = class {
|
|
|
44
43
|
case filterItemType_enum.FilterItemType.SEARCH:
|
|
45
44
|
return { tag: "snk-filter-search" };
|
|
46
45
|
case filterItemType_enum.FilterItemType.NUMBER:
|
|
47
|
-
return { tag: "snk-filter-number" };
|
|
46
|
+
return { tag: "snk-filter-number", props };
|
|
48
47
|
case filterItemType_enum.FilterItemType.PERSONALIZED:
|
|
49
48
|
return this.buildSnkFilterPersonalizedProps();
|
|
49
|
+
case filterItemType_enum.FilterItemType.CHECK_BOX_LIST:
|
|
50
|
+
return { tag: "snk-filter-checkbox-list", props };
|
|
50
51
|
case filterItemType_enum.FilterItemType.MULTI_LIST:
|
|
51
52
|
return { tag: "snk-entity-list", props: { maxHeightList: "640px", rightListSlotBuilder: item => this.buildRightSlot(item) } };
|
|
52
53
|
}
|
|
@@ -55,7 +56,6 @@ const SnkFilterModalItem = class {
|
|
|
55
56
|
buildSnkFilterPersonalizedProps() {
|
|
56
57
|
return {
|
|
57
58
|
tag: "snk-personalized-filter-editor", props: {
|
|
58
|
-
onDeleteFilter: (event) => this.handleDeleteFilter(event.detail, filterItemType_enum.FilterItemType.PERSONALIZED),
|
|
59
59
|
onEditFilter: (event) => this.editPersonalizedFilter.emit(event.detail),
|
|
60
60
|
onAddFilter: () => this.addPersonalizedFilter.emit(),
|
|
61
61
|
}
|
|
@@ -70,7 +70,7 @@ const SnkFilterModalItem = class {
|
|
|
70
70
|
this.filterItem = Object.assign(Object.assign({}, this.filterItem), { visible: newValue > 0, value: newValue, groupedItems: data.items });
|
|
71
71
|
}
|
|
72
72
|
else {
|
|
73
|
-
this.filterItem = Object.assign(Object.assign({}, this.filterItem), { value: this.filterItem.type === filterItemType_enum.FilterItemType.SEARCH ? data : newValue, visible: this.isVisible(newValue) });
|
|
73
|
+
this.filterItem = Object.assign(Object.assign({}, this.filterItem), { value: this.filterItem.type === (filterItemType_enum.FilterItemType.SEARCH || filterItemType_enum.FilterItemType.CHECK_BOX_LIST) ? data : newValue, visible: this.isVisible(newValue) });
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
handleDeleteFilter(filter, filterItemType) {
|