@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
package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-checkbox-list.js
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { ElementIDUtils } from '@sankhyalabs/core';
|
|
2
|
+
import { h } from '@stencil/core';
|
|
3
|
+
import FilterItemType from '../filter-item-type.enum';
|
|
4
|
+
export class SnkFilterCheckboxList {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.config = undefined;
|
|
7
|
+
this.optionsList = [];
|
|
8
|
+
}
|
|
9
|
+
componentDidLoad() {
|
|
10
|
+
if (this._element) {
|
|
11
|
+
ElementIDUtils.addIDInfo(this._element, 'filterContentEditor');
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
handleToggleCheck(itemChanged, checked) {
|
|
15
|
+
var _a, _b;
|
|
16
|
+
let configValueMap = (_a = this.config.value) !== null && _a !== void 0 ? _a : {};
|
|
17
|
+
configValueMap[itemChanged.name] = checked;
|
|
18
|
+
this.config = Object.assign(Object.assign({}, this.config), { value: configValueMap });
|
|
19
|
+
this.valueChanged.emit((_b = this.config) === null || _b === void 0 ? void 0 : _b.value);
|
|
20
|
+
}
|
|
21
|
+
renderOptions() {
|
|
22
|
+
return this.optionsList.map(option => (h("ez-check", { label: option.label, compact: true, onEzChange: (event) => this.handleToggleCheck(option, event.detail), value: !!this.isChecked(option.name) })));
|
|
23
|
+
}
|
|
24
|
+
isChecked(itemName) {
|
|
25
|
+
var _a;
|
|
26
|
+
return (_a = this.config.value) === null || _a === void 0 ? void 0 : _a[itemName];
|
|
27
|
+
}
|
|
28
|
+
buidOptions() {
|
|
29
|
+
var _a, _b, _c;
|
|
30
|
+
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 : [];
|
|
31
|
+
this.optionsList = [...propsOptions];
|
|
32
|
+
}
|
|
33
|
+
componentWillRender() {
|
|
34
|
+
this.buidOptions();
|
|
35
|
+
}
|
|
36
|
+
render() {
|
|
37
|
+
if (!this.config || this.config.type !== FilterItemType.CHECK_BOX_LIST) {
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
40
|
+
return (h("div", { class: 'ez-flex ez-flex--column' }, this.renderOptions()));
|
|
41
|
+
}
|
|
42
|
+
static get is() { return "snk-filter-checkbox-list"; }
|
|
43
|
+
static get properties() {
|
|
44
|
+
return {
|
|
45
|
+
"config": {
|
|
46
|
+
"type": "unknown",
|
|
47
|
+
"mutable": true,
|
|
48
|
+
"complexType": {
|
|
49
|
+
"original": "SnkFilterItemConfig",
|
|
50
|
+
"resolved": "SnkFilterItemConfig",
|
|
51
|
+
"references": {
|
|
52
|
+
"SnkFilterItemConfig": {
|
|
53
|
+
"location": "import",
|
|
54
|
+
"path": "../snk-filter-item"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"required": false,
|
|
59
|
+
"optional": false,
|
|
60
|
+
"docs": {
|
|
61
|
+
"tags": [],
|
|
62
|
+
"text": "Define as configura\u00E7\u00F5es do componente snk-filter-multi-select"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
static get states() {
|
|
68
|
+
return {
|
|
69
|
+
"optionsList": {}
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
static get events() {
|
|
73
|
+
return [{
|
|
74
|
+
"method": "valueChanged",
|
|
75
|
+
"name": "valueChanged",
|
|
76
|
+
"bubbles": true,
|
|
77
|
+
"cancelable": true,
|
|
78
|
+
"composed": true,
|
|
79
|
+
"docs": {
|
|
80
|
+
"tags": [],
|
|
81
|
+
"text": "Emite um evento customizado ao realizar altera\u00E7\u00E3o nos valores do componente"
|
|
82
|
+
},
|
|
83
|
+
"complexType": {
|
|
84
|
+
"original": "CustomEvent",
|
|
85
|
+
"resolved": "CustomEvent<any>",
|
|
86
|
+
"references": {
|
|
87
|
+
"CustomEvent": {
|
|
88
|
+
"location": "global"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}];
|
|
93
|
+
}
|
|
94
|
+
static get elementRef() { return "_element"; }
|
|
95
|
+
}
|
|
@@ -1,15 +1,28 @@
|
|
|
1
1
|
import { ElementIDUtils } from '@sankhyalabs/core';
|
|
2
2
|
import { h } from '@stencil/core';
|
|
3
3
|
import FilterItemType from '../filter-item-type.enum';
|
|
4
|
+
import { EPresentationMode } from './enum/presentationMode';
|
|
5
|
+
import { FilterNumberVariation } from './enum/filterNumberVariation';
|
|
4
6
|
export class SnkFilterPeriod {
|
|
5
7
|
constructor() {
|
|
8
|
+
this._startIntervalLabel = 'Inicial';
|
|
9
|
+
this._endIntervalLabel = 'Final';
|
|
6
10
|
this.config = undefined;
|
|
11
|
+
this.getMessage = undefined;
|
|
7
12
|
this.value = undefined;
|
|
13
|
+
this.presentationMode = EPresentationMode.CHIP;
|
|
8
14
|
}
|
|
9
15
|
/**
|
|
10
16
|
* Emitido quando acontece a alteração de valor do componente snk-filter-number
|
|
11
17
|
*/
|
|
12
18
|
ezChangeListener(evt) {
|
|
19
|
+
if (this.getVariation() === FilterNumberVariation.INTERVAL) {
|
|
20
|
+
const start = this._startInterval.value;
|
|
21
|
+
const end = this._endInterval.value;
|
|
22
|
+
this.value = (start || end ? { start, end } : undefined);
|
|
23
|
+
this.valueChanged.emit(this.value);
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
13
26
|
this.value = evt.detail;
|
|
14
27
|
this.valueChanged.emit(this.value);
|
|
15
28
|
}
|
|
@@ -17,19 +30,45 @@ export class SnkFilterPeriod {
|
|
|
17
30
|
* Exibe o componente snk-filter-number
|
|
18
31
|
*/
|
|
19
32
|
async show() {
|
|
33
|
+
if (this.getVariation() === FilterNumberVariation.INTERVAL) {
|
|
34
|
+
this._startInterval.setFocus();
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
20
37
|
this._numberElement.setFocus();
|
|
21
38
|
}
|
|
39
|
+
getIntervalValue(prop) {
|
|
40
|
+
const objValue = this.value ? this.value[prop] : null;
|
|
41
|
+
return objValue !== null && objValue !== void 0 ? objValue : null;
|
|
42
|
+
}
|
|
43
|
+
buildLabel() {
|
|
44
|
+
if (this.presentationMode === EPresentationMode.CHIP) {
|
|
45
|
+
return h("label", { class: "ez-text ez-text--medium ez-text--primary ez-margin--medium" }, "at\u00E9");
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
getVariation() {
|
|
49
|
+
var _a, _b;
|
|
50
|
+
return (_b = (_a = this.config.props) === null || _a === void 0 ? void 0 : _a.variation) !== null && _b !== void 0 ? _b : FilterNumberVariation.DEFAULT;
|
|
51
|
+
}
|
|
52
|
+
componentWillLoad() {
|
|
53
|
+
if (this.getMessage) {
|
|
54
|
+
this._startIntervalLabel = this.getMessage('snkFilterBar.labelStart');
|
|
55
|
+
this._endIntervalLabel = this.getMessage('snkFilterBar.labelEnd');
|
|
56
|
+
}
|
|
57
|
+
}
|
|
22
58
|
componentDidLoad() {
|
|
23
59
|
if (this._element) {
|
|
24
60
|
ElementIDUtils.addIDInfo(this._element, 'filterContentEditor');
|
|
25
61
|
}
|
|
26
62
|
}
|
|
27
63
|
render() {
|
|
28
|
-
var _a;
|
|
64
|
+
var _a, _b, _c;
|
|
29
65
|
if (!this.config || this.config.type !== FilterItemType.NUMBER) {
|
|
30
66
|
return undefined;
|
|
31
67
|
}
|
|
32
|
-
|
|
68
|
+
if (this.getVariation() === FilterNumberVariation.INTERVAL) {
|
|
69
|
+
return (h("div", { class: "ez-col ez-col--nowrap" }, h("ez-number-input", { id: `${this.config.id}_start`, class: this.presentationMode === EPresentationMode.MODAL ? 'ez-padding--small' : '', label: this._startIntervalLabel, ref: ref => this._startInterval = ref, value: this.getIntervalValue("start"), precision: (_a = this.config.props) === null || _a === void 0 ? void 0 : _a.precision }), this.buildLabel(), h("ez-number-input", { id: `${this.config.id}_end`, class: this.presentationMode === EPresentationMode.MODAL ? 'ez-padding--small' : '', label: this._endIntervalLabel, ref: ref => this._endInterval = ref, value: this.getIntervalValue("end"), precision: (_b = this.config.props) === null || _b === void 0 ? void 0 : _b.precision })));
|
|
70
|
+
}
|
|
71
|
+
return (h("ez-number-input", { id: this.config.id, ref: ref => this._numberElement = ref, label: this.config.label, value: this.config.value, precision: (_c = this.config.props) === null || _c === void 0 ? void 0 : _c.precision }));
|
|
33
72
|
}
|
|
34
73
|
static get is() { return "snk-filter-number"; }
|
|
35
74
|
static get properties() {
|
|
@@ -54,13 +93,32 @@ export class SnkFilterPeriod {
|
|
|
54
93
|
"text": "Define as configura\u00E7\u00F5es do componente snk-filter-number"
|
|
55
94
|
}
|
|
56
95
|
},
|
|
96
|
+
"getMessage": {
|
|
97
|
+
"type": "unknown",
|
|
98
|
+
"mutable": false,
|
|
99
|
+
"complexType": {
|
|
100
|
+
"original": "(key: string, props?: any) => string",
|
|
101
|
+
"resolved": "(key: string, props?: any) => string",
|
|
102
|
+
"references": {}
|
|
103
|
+
},
|
|
104
|
+
"required": false,
|
|
105
|
+
"optional": false,
|
|
106
|
+
"docs": {
|
|
107
|
+
"tags": [],
|
|
108
|
+
"text": "Usado pra flexibilizar os verbetes e mensagens de acordo com o SnkMessageBuilder."
|
|
109
|
+
}
|
|
110
|
+
},
|
|
57
111
|
"value": {
|
|
58
112
|
"type": "number",
|
|
59
113
|
"mutable": false,
|
|
60
114
|
"complexType": {
|
|
61
|
-
"original": "
|
|
62
|
-
"resolved": "number",
|
|
63
|
-
"references": {
|
|
115
|
+
"original": "FilterNumberValueType",
|
|
116
|
+
"resolved": "number | { start: number; end: number; }",
|
|
117
|
+
"references": {
|
|
118
|
+
"FilterNumberValueType": {
|
|
119
|
+
"location": "global"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
64
122
|
},
|
|
65
123
|
"required": false,
|
|
66
124
|
"optional": false,
|
|
@@ -70,6 +128,29 @@ export class SnkFilterPeriod {
|
|
|
70
128
|
},
|
|
71
129
|
"attribute": "value",
|
|
72
130
|
"reflect": false
|
|
131
|
+
},
|
|
132
|
+
"presentationMode": {
|
|
133
|
+
"type": "number",
|
|
134
|
+
"mutable": false,
|
|
135
|
+
"complexType": {
|
|
136
|
+
"original": "EPresentationMode",
|
|
137
|
+
"resolved": "EPresentationMode.CHIP | EPresentationMode.MODAL",
|
|
138
|
+
"references": {
|
|
139
|
+
"EPresentationMode": {
|
|
140
|
+
"location": "import",
|
|
141
|
+
"path": "./enum/presentationMode"
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"required": false,
|
|
146
|
+
"optional": false,
|
|
147
|
+
"docs": {
|
|
148
|
+
"tags": [],
|
|
149
|
+
"text": "Define a varia\u00E7\u00E3o do componente"
|
|
150
|
+
},
|
|
151
|
+
"attribute": "presentation-mode",
|
|
152
|
+
"reflect": false,
|
|
153
|
+
"defaultValue": "EPresentationMode.CHIP"
|
|
73
154
|
}
|
|
74
155
|
};
|
|
75
156
|
}
|
|
@@ -85,9 +166,13 @@ export class SnkFilterPeriod {
|
|
|
85
166
|
"text": "Emitido quando o valor do filtro \u00E9 alterado."
|
|
86
167
|
},
|
|
87
168
|
"complexType": {
|
|
88
|
-
"original": "
|
|
89
|
-
"resolved": "
|
|
90
|
-
"references": {
|
|
169
|
+
"original": "FilterNumberValueType",
|
|
170
|
+
"resolved": "number | { start: number; end: number; }",
|
|
171
|
+
"references": {
|
|
172
|
+
"FilterNumberValueType": {
|
|
173
|
+
"location": "global"
|
|
174
|
+
}
|
|
175
|
+
}
|
|
91
176
|
}
|
|
92
177
|
}];
|
|
93
178
|
}
|
|
@@ -50,8 +50,8 @@ export class SnkFilterPeriod {
|
|
|
50
50
|
}
|
|
51
51
|
componentWillLoad() {
|
|
52
52
|
if (this.getMessage) {
|
|
53
|
-
this._startDateLabel = this.getMessage('snkFilterBar.
|
|
54
|
-
this._endDateLabel = this.getMessage('snkFilterBar.
|
|
53
|
+
this._startDateLabel = this.getMessage('snkFilterBar.labelStart');
|
|
54
|
+
this._endDateLabel = this.getMessage('snkFilterBar.labelEnd');
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
render() {
|
|
@@ -9,5 +9,6 @@ var FilterItemType;
|
|
|
9
9
|
FilterItemType["DEFAULT_FILTER"] = "DEFAULT_FILTER";
|
|
10
10
|
FilterItemType["PERSONALIZED"] = "PERSONALIZED";
|
|
11
11
|
FilterItemType["MULTI_LIST"] = "MULTI_LIST";
|
|
12
|
+
FilterItemType["CHECK_BOX_LIST"] = "CHECK_BOX_LIST";
|
|
12
13
|
})(FilterItemType || (FilterItemType = {}));
|
|
13
14
|
export default FilterItemType;
|
|
@@ -51,6 +51,13 @@ export class SnkFilterDetail {
|
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
53
|
return snkFilterPersonalizedProps;
|
|
54
|
+
case FilterItemType.CHECK_BOX_LIST:
|
|
55
|
+
return {
|
|
56
|
+
tag: "snk-filter-checkbox-list",
|
|
57
|
+
props: {
|
|
58
|
+
onValueChanged: evt => this.config = Object.assign(Object.assign({}, this.config), { value: evt.detail })
|
|
59
|
+
}
|
|
60
|
+
};
|
|
54
61
|
case FilterItemType.MULTI_LIST:
|
|
55
62
|
return {
|
|
56
63
|
tag: "snk-entity-list",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ElementIDUtils, FloatingManager, DateUtils } from '@sankhyalabs/core';
|
|
2
2
|
import { h, Host } from '@stencil/core';
|
|
3
3
|
import FilterItemType from './filter-item-type.enum';
|
|
4
|
+
import { FilterNumberVariation } from './editors/enum/filterNumberVariation';
|
|
4
5
|
export class SnkFilterItem {
|
|
5
6
|
constructor() {
|
|
6
7
|
this.innerClickCheck = (_floatingContainer, node) => {
|
|
@@ -123,7 +124,7 @@ export class SnkFilterItem {
|
|
|
123
124
|
}
|
|
124
125
|
}
|
|
125
126
|
getLabel(isTooltipLabel = false) {
|
|
126
|
-
var _a;
|
|
127
|
+
var _a, _b;
|
|
127
128
|
const { type, value, label, props, groupedItems = [] } = this.config;
|
|
128
129
|
if (value || groupedItems.length) {
|
|
129
130
|
if (type === FilterItemType.BINARY_SELECT) {
|
|
@@ -163,10 +164,10 @@ export class SnkFilterItem {
|
|
|
163
164
|
}
|
|
164
165
|
else {
|
|
165
166
|
if (start) {
|
|
166
|
-
return `${label}: ${this.getMessage('snkFilterBar.
|
|
167
|
+
return `${label}: ${this.getMessage('snkFilterBar.onlyStartToltip')} ${dateFormater.format(start)}`;
|
|
167
168
|
}
|
|
168
169
|
else if (end) {
|
|
169
|
-
return `${label}: ${this.getMessage('snkFilterBar.
|
|
170
|
+
return `${label}: ${this.getMessage('snkFilterBar.onlyEndToltip')} ${dateFormater.format(end)}`;
|
|
170
171
|
}
|
|
171
172
|
else {
|
|
172
173
|
return label;
|
|
@@ -184,23 +185,46 @@ export class SnkFilterItem {
|
|
|
184
185
|
}
|
|
185
186
|
if (type === FilterItemType.MULTI_LIST) {
|
|
186
187
|
const selectedOptions = ((_a = value.elements) !== null && _a !== void 0 ? _a : value).filter(item => item === null || item === void 0 ? void 0 : item.check);
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
188
|
+
return this.getLabelFromCheckedOptions(selectedOptions, label, isTooltipLabel);
|
|
189
|
+
}
|
|
190
|
+
if (type === FilterItemType.CHECK_BOX_LIST) {
|
|
191
|
+
const selectedValues = Object.entries(value !== null && value !== void 0 ? value : {})
|
|
192
|
+
.filter(([_, value]) => value === true)
|
|
193
|
+
.map(([key, _]) => key);
|
|
194
|
+
const options = (_b = props.options) !== null && _b !== void 0 ? _b : [];
|
|
195
|
+
const selectedOptions = options.filter(option => selectedValues.includes(option.name));
|
|
196
|
+
return this.getLabelFromCheckedOptions(selectedOptions, label, isTooltipLabel);
|
|
197
|
+
}
|
|
198
|
+
if (type === FilterItemType.NUMBER && props.variation === FilterNumberVariation.INTERVAL) {
|
|
199
|
+
const { start, end } = value;
|
|
200
|
+
if (start && end) {
|
|
201
|
+
return this.getMessage('snkFilterBar.fullIntervalTooltip', { LABEL: label, START_LABEL: start, END_LABEL: end });
|
|
190
202
|
}
|
|
191
|
-
if (
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
}
|
|
196
|
-
return `${label}: ${checkedAmount} ${this.getMessage('snkFilterBar.multiListToltip')}`;
|
|
203
|
+
if (start) {
|
|
204
|
+
return `${label}: ${this.getMessage('snkFilterBar.onlyStartToltip')} ${Number(start)}`;
|
|
205
|
+
}
|
|
206
|
+
if (end) {
|
|
207
|
+
return `${label}: ${this.getMessage('snkFilterBar.onlyEndToltip')} ${Number(end)}`;
|
|
197
208
|
}
|
|
198
|
-
return `${label}: ${selectedOptions[0].label}`;
|
|
199
209
|
}
|
|
200
210
|
return `${label}: ${value}`;
|
|
201
211
|
}
|
|
202
212
|
return label;
|
|
203
213
|
}
|
|
214
|
+
getLabelFromCheckedOptions(selectedOptions, label, isTooltipLabel) {
|
|
215
|
+
const checkedAmount = selectedOptions.length;
|
|
216
|
+
if (checkedAmount === 0) {
|
|
217
|
+
return `${label}`;
|
|
218
|
+
}
|
|
219
|
+
if (checkedAmount > 1) {
|
|
220
|
+
if (isTooltipLabel) {
|
|
221
|
+
const selectedOptionsDescrptions = selectedOptions.map(item => item.label);
|
|
222
|
+
return `${label}: ${selectedOptionsDescrptions.join(',')}`;
|
|
223
|
+
}
|
|
224
|
+
return `${label}: ${checkedAmount} ${this.getMessage('snkFilterBar.multiListToltip')}`;
|
|
225
|
+
}
|
|
226
|
+
return `${label}: ${selectedOptions[0].label}`;
|
|
227
|
+
}
|
|
204
228
|
calculateActiveCount(groupedItems) {
|
|
205
229
|
return groupedItems.reduce((total, item) => {
|
|
206
230
|
if (!!item.visible)
|
|
@@ -262,7 +286,7 @@ export class SnkFilterItem {
|
|
|
262
286
|
}
|
|
263
287
|
render() {
|
|
264
288
|
const leftIcon = this.getLeftIconName();
|
|
265
|
-
return (h(Host, null, h("ez-chip", { id: this.config.id, ref: ref => this._chipElement = ref, label: this.getLabel(), value: this.getEnabledChip() }, leftIcon ? h("ez-icon", { ref: ref => this._leftIconElement = ref, iconName: leftIcon, class: "ez-padding-right--small", slot: "leftIcon" }) : undefined, h("ez-icon", { ref: ref => this._rightIconElement = ref, iconName: this.getRightIconName(), class: "ez-padding-left--small", slot: "rightIcon", id: "removeFilter" })), h("section", { class: "ez-margin-top--small sc-snk-filter-bar snk-filter__popover-container", ref: elem => this._popoverContainer = elem }, 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 }))));
|
|
289
|
+
return (h(Host, null, h("ez-chip", { id: this.config.id, ref: ref => this._chipElement = ref, label: this.getLabel(), value: this.getEnabledChip() }, leftIcon ? h("ez-icon", { ref: ref => this._leftIconElement = ref, iconName: leftIcon, class: "ez-padding-right--small", slot: "leftIcon" }) : undefined, h("ez-icon", { ref: ref => this._rightIconElement = ref, iconName: this.getRightIconName(), class: "ez-padding-left--small", slot: "rightIcon", id: "removeFilter" })), h("section", { class: "ez-margin-top--small sc-snk-filter-bar snk-filter__popover-container", ref: elem => this._popoverContainer = elem }, 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 }))));
|
|
266
290
|
}
|
|
267
291
|
static get is() { return "snk-filter-item"; }
|
|
268
292
|
static get properties() {
|
|
@@ -137,7 +137,7 @@ export class SnkFilterList {
|
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
render() {
|
|
140
|
-
return (h(Host, { class: "ez-flex ez-flex--column" }, h("ez-button", { class: this.buttonClass, label: this.label, onClick: () => this.buttonClick(), mode: this.iconName ? "icon" : undefined, iconName: this.iconName, size: "small" }, h("slot", { name: "leftIcon" })), h("section", { class: "ez-margin-top--small sc-snk-filter-bar snk-filter__popover-container", ref: elem => this._popoverContainer = elem }, h("div", { class: "sc-snk-filter-bar snk-filter__popover ez-padding--small", ref: elem => this._popover = elem }, 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(), h("hr", { class: "sc-snk-filter-bar snk-filter__popover-rule" }), this.items ? this.getFooterItems().map(item => this.buildItemElement(item)) : undefined))));
|
|
140
|
+
return (h(Host, { class: "ez-flex ez-flex--column" }, h("ez-button", { class: this.buttonClass, label: this.label, onClick: () => this.buttonClick(), mode: this.iconName ? "icon" : undefined, iconName: this.iconName, size: "small" }, h("slot", { name: "leftIcon" })), h("section", { class: "ez-margin-top--small sc-snk-filter-bar snk-filter__popover-container", ref: elem => this._popoverContainer = elem }, h("div", { class: "sc-snk-filter-bar snk-filter__popover ez-padding--small ez-elevation--4", ref: elem => this._popover = elem }, 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(), h("hr", { class: "sc-snk-filter-bar snk-filter__popover-rule" }), this.items ? this.getFooterItems().map(item => this.buildItemElement(item)) : undefined))));
|
|
141
141
|
}
|
|
142
142
|
static get is() { return "snk-filter-list"; }
|
|
143
143
|
static get properties() {
|
|
@@ -5,6 +5,7 @@ import FilterType from '../types/filter-type.enum';
|
|
|
5
5
|
import FilterItemType from '../filter-item/filter-item-type.enum';
|
|
6
6
|
import { ObjectUtils } from '@sankhyalabs/core';
|
|
7
7
|
import { PersonalizedFilterUtils } from '../../snk-personalized-filter/subcomponents/snk-filter-param-config/utils/PersonalizedFilterUtils';
|
|
8
|
+
import { FilterNumberVariation } from '../filter-item/editors/enum/filterNumberVariation';
|
|
8
9
|
export class SnkFilterModal {
|
|
9
10
|
constructor() {
|
|
10
11
|
this.getMessage = undefined;
|
|
@@ -14,6 +15,14 @@ export class SnkFilterModal {
|
|
|
14
15
|
this.closeModal = undefined;
|
|
15
16
|
this.addPersonalizedFilter = undefined;
|
|
16
17
|
this.editPersonalizedFilter = undefined;
|
|
18
|
+
this.deletePersonalizedFilter = undefined;
|
|
19
|
+
this.filtersToDelete = [];
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Emitido quando um filtro personalizado é deletado.
|
|
23
|
+
*/
|
|
24
|
+
deletePersonalizedFilterListener(event) {
|
|
25
|
+
this.filtersToDelete.push(event.detail);
|
|
17
26
|
}
|
|
18
27
|
getCustomMessage(key, params) {
|
|
19
28
|
var _a;
|
|
@@ -81,6 +90,12 @@ export class SnkFilterModal {
|
|
|
81
90
|
if (this.isValidCustomFilter(filterPersonalized)) {
|
|
82
91
|
this.applyFilters(this.filters);
|
|
83
92
|
}
|
|
93
|
+
if (this.filtersToDelete.length > 0) {
|
|
94
|
+
this.filtersToDelete.forEach(filter => {
|
|
95
|
+
this.deletePersonalizedFilter(filter, this.configName);
|
|
96
|
+
});
|
|
97
|
+
this.filtersToDelete = [];
|
|
98
|
+
}
|
|
84
99
|
}
|
|
85
100
|
isValidCustomFilter(filterPersonalized) {
|
|
86
101
|
const isValid = PersonalizedFilterUtils.validateVariableValues(filterPersonalized);
|
|
@@ -120,10 +135,15 @@ export class SnkFilterModal {
|
|
|
120
135
|
const index = filterListCopy.findIndex(item => item.id === filterItem.id);
|
|
121
136
|
filterListCopy.splice(index, 1, filterItemCopy);
|
|
122
137
|
this.filters = ObjectUtils.copy(filterListCopy);
|
|
138
|
+
return;
|
|
123
139
|
}
|
|
124
|
-
|
|
125
|
-
|
|
140
|
+
if (FilterItemType.CHECK_BOX_LIST === filterItem.type) {
|
|
141
|
+
const filterListCopy = ObjectUtils.copy(this.filters);
|
|
142
|
+
filterListCopy.find(filter => filter.id === filterItem.id).value = undefined;
|
|
143
|
+
this.filters = ObjectUtils.copy(filterListCopy);
|
|
144
|
+
return;
|
|
126
145
|
}
|
|
146
|
+
this.filters.find(filter => filter.id === filterItem.id).value = undefined;
|
|
127
147
|
}
|
|
128
148
|
uncheckFilterValues(valueList) {
|
|
129
149
|
valueList.forEach(value => {
|
|
@@ -136,6 +156,11 @@ export class SnkFilterModal {
|
|
|
136
156
|
renderFilterItem(filterItem, fullRow) {
|
|
137
157
|
return (h("snk-filter-modal-item", { class: fullRow ? 'ez-col ez-col--sd-12' : 'ez-col ez-col--sd-6 ez-padding--small', filterItem: filterItem, configName: this.configName, onFilterChange: (event) => this.handleFilterChange(event.detail), onEditPersonalizedFilter: evt => this.editPersonalizedFilter(evt.detail), onAddPersonalizedFilter: () => this.addPersonalizedFilter() }));
|
|
138
158
|
}
|
|
159
|
+
isDefaultFilterNumberVariation(filter) {
|
|
160
|
+
var _a;
|
|
161
|
+
return filter.type === FilterItemType.NUMBER
|
|
162
|
+
&& (!filter.props.variation || ((_a = filter.props) === null || _a === void 0 ? void 0 : _a.variation) === FilterNumberVariation.DEFAULT);
|
|
163
|
+
}
|
|
139
164
|
mountFiltersLines(filters) {
|
|
140
165
|
const MAX_LINE_LENGTH = 2;
|
|
141
166
|
let currentLine = 0;
|
|
@@ -145,8 +170,8 @@ export class SnkFilterModal {
|
|
|
145
170
|
filtersLines[currentLine] = filtersLines[currentLine] || [];
|
|
146
171
|
const item = filters[curr];
|
|
147
172
|
const isLast = curr === filters.length - 1;
|
|
148
|
-
const currentItemMatch =
|
|
149
|
-
const nextItemMatch = isLast ? false : [FilterItemType.TEXT
|
|
173
|
+
const currentItemMatch = item.type === FilterItemType.TEXT || this.isDefaultFilterNumberVariation(item);
|
|
174
|
+
const nextItemMatch = isLast ? false : filters[curr + 1].type === FilterItemType.TEXT || this.isDefaultFilterNumberVariation(filters[curr + 1]);
|
|
150
175
|
if ((currentItemMatch && nextItemMatch) || forceAddCurrent) {
|
|
151
176
|
filtersLines[currentLine].push(item);
|
|
152
177
|
forceAddCurrent = filtersLines[currentLine].length < MAX_LINE_LENGTH;
|
|
@@ -167,11 +192,17 @@ export class SnkFilterModal {
|
|
|
167
192
|
getIformedFiltersCount(listItems) {
|
|
168
193
|
let countInformedItens = 0;
|
|
169
194
|
listItems.forEach(item => {
|
|
170
|
-
var _a, _b, _c, _d, _e;
|
|
195
|
+
var _a, _b, _c, _d, _e, _f;
|
|
171
196
|
if (FilterItemType.MULTI_LIST === item.type) {
|
|
172
197
|
countInformedItens += (_e = (_d = (_c = ((_b = (_a = item.value) === null || _a === void 0 ? void 0 : _a.elements) !== null && _b !== void 0 ? _b : item.value)) === null || _c === void 0 ? void 0 : _c.filter(value => value === null || value === void 0 ? void 0 : value.check)) === null || _d === void 0 ? void 0 : _d.length) !== null && _e !== void 0 ? _e : 0;
|
|
173
198
|
return;
|
|
174
199
|
}
|
|
200
|
+
if (FilterItemType.CHECK_BOX_LIST === item.type) {
|
|
201
|
+
countInformedItens += Object.entries((_f = item.value) !== null && _f !== void 0 ? _f : {})
|
|
202
|
+
.filter(([_, value]) => value === true)
|
|
203
|
+
.map(([key, _]) => key).length;
|
|
204
|
+
return;
|
|
205
|
+
}
|
|
175
206
|
if (item.groupedItems != undefined) {
|
|
176
207
|
countInformedItens = item.groupedItems.filter(item => item.visible).length;
|
|
177
208
|
return;
|
|
@@ -337,9 +368,59 @@ export class SnkFilterModal {
|
|
|
337
368
|
"optional": false,
|
|
338
369
|
"docs": {
|
|
339
370
|
"tags": [],
|
|
340
|
-
"text": "A\u00E7\u00E3o executada ao
|
|
371
|
+
"text": "A\u00E7\u00E3o executada ao editar um filtro personalizado"
|
|
341
372
|
}
|
|
373
|
+
},
|
|
374
|
+
"deletePersonalizedFilter": {
|
|
375
|
+
"type": "unknown",
|
|
376
|
+
"mutable": false,
|
|
377
|
+
"complexType": {
|
|
378
|
+
"original": "(filter: IPersonalizedFilter, configName: string) => void",
|
|
379
|
+
"resolved": "(filter: IPersonalizedFilter, configName: string) => void",
|
|
380
|
+
"references": {
|
|
381
|
+
"IPersonalizedFilter": {
|
|
382
|
+
"location": "import",
|
|
383
|
+
"path": "../../snk-personalized-filter/interfaces/IPersonalizedFilter"
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
"required": false,
|
|
388
|
+
"optional": false,
|
|
389
|
+
"docs": {
|
|
390
|
+
"tags": [],
|
|
391
|
+
"text": "A\u00E7\u00E3o executada ao deletar um filtro personalizado"
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
"filtersToDelete": {
|
|
395
|
+
"type": "unknown",
|
|
396
|
+
"mutable": false,
|
|
397
|
+
"complexType": {
|
|
398
|
+
"original": "IPersonalizedFilter[]",
|
|
399
|
+
"resolved": "IPersonalizedFilter[]",
|
|
400
|
+
"references": {
|
|
401
|
+
"IPersonalizedFilter": {
|
|
402
|
+
"location": "import",
|
|
403
|
+
"path": "../../snk-personalized-filter/interfaces/IPersonalizedFilter"
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
"required": false,
|
|
408
|
+
"optional": false,
|
|
409
|
+
"docs": {
|
|
410
|
+
"tags": [],
|
|
411
|
+
"text": "Guarda filtros a serem deletados no Apply do modal"
|
|
412
|
+
},
|
|
413
|
+
"defaultValue": "[]"
|
|
342
414
|
}
|
|
343
415
|
};
|
|
344
416
|
}
|
|
417
|
+
static get listeners() {
|
|
418
|
+
return [{
|
|
419
|
+
"name": "deleteFilter",
|
|
420
|
+
"method": "deletePersonalizedFilterListener",
|
|
421
|
+
"target": undefined,
|
|
422
|
+
"capture": false,
|
|
423
|
+
"passive": false
|
|
424
|
+
}];
|
|
425
|
+
}
|
|
345
426
|
}
|
|
@@ -28,9 +28,11 @@ export class SnkFilterModalItem {
|
|
|
28
28
|
case FilterItemType.SEARCH:
|
|
29
29
|
return { tag: "snk-filter-search" };
|
|
30
30
|
case FilterItemType.NUMBER:
|
|
31
|
-
return { tag: "snk-filter-number" };
|
|
31
|
+
return { tag: "snk-filter-number", props };
|
|
32
32
|
case FilterItemType.PERSONALIZED:
|
|
33
33
|
return this.buildSnkFilterPersonalizedProps();
|
|
34
|
+
case FilterItemType.CHECK_BOX_LIST:
|
|
35
|
+
return { tag: "snk-filter-checkbox-list", props };
|
|
34
36
|
case FilterItemType.MULTI_LIST:
|
|
35
37
|
return { tag: "snk-entity-list", props: { maxHeightList: "640px", rightListSlotBuilder: item => this.buildRightSlot(item) } };
|
|
36
38
|
}
|
|
@@ -39,7 +41,6 @@ export class SnkFilterModalItem {
|
|
|
39
41
|
buildSnkFilterPersonalizedProps() {
|
|
40
42
|
return {
|
|
41
43
|
tag: "snk-personalized-filter-editor", props: {
|
|
42
|
-
onDeleteFilter: (event) => this.handleDeleteFilter(event.detail, FilterItemType.PERSONALIZED),
|
|
43
44
|
onEditFilter: (event) => this.editPersonalizedFilter.emit(event.detail),
|
|
44
45
|
onAddFilter: () => this.addPersonalizedFilter.emit(),
|
|
45
46
|
}
|
|
@@ -54,7 +55,7 @@ export class SnkFilterModalItem {
|
|
|
54
55
|
this.filterItem = Object.assign(Object.assign({}, this.filterItem), { visible: newValue > 0, value: newValue, groupedItems: data.items });
|
|
55
56
|
}
|
|
56
57
|
else {
|
|
57
|
-
this.filterItem = Object.assign(Object.assign({}, this.filterItem), { value: this.filterItem.type === FilterItemType.SEARCH ? data : newValue, visible: this.isVisible(newValue) });
|
|
58
|
+
this.filterItem = Object.assign(Object.assign({}, this.filterItem), { value: this.filterItem.type === (FilterItemType.SEARCH || FilterItemType.CHECK_BOX_LIST) ? data : newValue, visible: this.isVisible(newValue) });
|
|
58
59
|
}
|
|
59
60
|
}
|
|
60
61
|
handleDeleteFilter(filter, filterItemType) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
grid-template-columns: minmax(100px, 100%) 1fr 1fr;
|
|
4
4
|
|
|
5
5
|
/*@doc Define o z-index do componente.*/
|
|
6
|
-
--snk-personalized-filter--z-index: var(--
|
|
6
|
+
--snk-personalized-filter--z-index: var(--elevation--20, 20);
|
|
7
7
|
/*@doc Define a cor de fundo do componente.*/
|
|
8
8
|
--snk-personalized-filter--background-color: var(--background--xlight, #fff);
|
|
9
9
|
}
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
width: 100%;
|
|
25
25
|
height: 100%;
|
|
26
26
|
overflow: auto;
|
|
27
|
-
|
|
27
|
+
|
|
28
28
|
/*public*/
|
|
29
29
|
z-index: var(--snk-personalized-filter--z-index);
|
|
30
30
|
background-color: var(--snk-personalized-filter--background-color);
|
|
@@ -38,9 +38,8 @@
|
|
|
38
38
|
width: fit-content;
|
|
39
39
|
height: fit-content;
|
|
40
40
|
min-width: 265px;
|
|
41
|
-
|
|
41
|
+
|
|
42
42
|
/*public*/
|
|
43
|
-
z-index: var(--most-visible, 3);
|
|
44
43
|
background-color: var(--background--xlight, #fff);
|
|
45
44
|
border-radius: var(--border--radius-medium, 12px);
|
|
46
45
|
box-shadow: var(--shadow, 0px 0px 16px 0px #000);
|
|
@@ -162,7 +161,7 @@
|
|
|
162
161
|
background-color: var(--background--medium, #f0f3f7);
|
|
163
162
|
border: none;
|
|
164
163
|
width: 100%;
|
|
165
|
-
|
|
164
|
+
|
|
166
165
|
}
|
|
167
166
|
|
|
168
167
|
.snk-filter-bar__filter-modal-item:focus-visible{
|
|
@@ -181,4 +180,4 @@
|
|
|
181
180
|
grid-template-rows: auto auto 1fr auto;
|
|
182
181
|
width: 99%;
|
|
183
182
|
height: 100%;
|
|
184
|
-
}
|
|
183
|
+
}
|