@sankhyalabs/sankhyablocks 5.19.0 → 6.0.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-0a738cdc.js +304 -0
- package/dist/cjs/IExpressionItem-1090c3fd.js +7 -0
- package/dist/cjs/PersonalizedFilterUtils-7d959e91.js +229 -0
- package/dist/cjs/{SnkFormConfigManager-69df3f74.js → SnkFormConfigManager-a583f503.js} +1 -1
- package/dist/cjs/{SnkMessageBuilder-3b5b5614.js → SnkMessageBuilder-8a2d3f26.js} +65 -4
- package/dist/cjs/{filter-bar-config-fetcher-a14536bf.js → filter-bar-config-fetcher-75219599.js} +34 -11
- package/dist/cjs/{index-de79181a.js → index-59a3e2de.js} +1 -1
- package/dist/cjs/{index-f400b1d6.js → index-614af008.js} +2 -0
- package/dist/cjs/{index-21bd01e1.js → index-aaaa2af5.js} +6 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/sankhyablocks.cjs.js +2 -2
- package/dist/cjs/snk-actions-button.cjs.entry.js +2 -2
- package/dist/cjs/snk-actions-form.cjs.entry.js +1 -1
- package/dist/cjs/snk-application.cjs.entry.js +4 -4
- package/dist/cjs/snk-attach.cjs.entry.js +4 -4
- package/dist/cjs/snk-client-confirm.cjs.entry.js +2 -2
- package/dist/cjs/snk-config-options.cjs.entry.js +1 -1
- package/dist/cjs/snk-configurator.cjs.entry.js +1 -1
- package/dist/cjs/snk-crud.cjs.entry.js +4 -4
- package/dist/cjs/snk-data-exporter.cjs.entry.js +4 -4
- package/dist/cjs/{snk-data-unit-e9c20097.js → snk-data-unit-53fc9200.js} +2 -2
- package/dist/cjs/snk-data-unit.cjs.entry.js +3 -3
- package/dist/cjs/snk-detail-view.cjs.entry.js +10 -10
- package/dist/cjs/snk-entity-list.cjs.entry.js +6 -4
- package/dist/cjs/snk-exporter-email-sender.cjs.entry.js +1 -1
- package/dist/cjs/snk-expression-group.cjs.entry.js +246 -0
- package/dist/cjs/{snk-filter-field-search_2.cjs.entry.js → snk-expression-item_3.cjs.entry.js} +327 -66
- package/dist/cjs/snk-field-config.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-bar.cjs.entry.js +161 -72
- package/dist/cjs/snk-filter-binary-select.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-detail.cjs.entry.js +54 -69
- package/dist/cjs/snk-filter-item.cjs.entry.js +21 -7
- package/dist/cjs/snk-filter-list.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +57 -29
- package/dist/cjs/snk-filter-modal.cjs.entry.js +66 -12
- package/dist/cjs/snk-filter-multi-select.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-number.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-period.cjs.entry.js +5 -3
- package/dist/cjs/snk-filter-personalized.cjs.entry.js +135 -55
- package/dist/cjs/snk-filter-search.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-text.cjs.entry.js +1 -1
- package/dist/cjs/snk-form-config.cjs.entry.js +1 -1
- package/dist/cjs/snk-form-summary.cjs.entry.js +1 -1
- package/dist/cjs/snk-form-view.cjs.entry.js +1 -1
- package/dist/cjs/snk-form.cjs.entry.js +4 -4
- package/dist/cjs/snk-grid-config.cjs.entry.js +3 -3
- package/dist/cjs/snk-grid.cjs.entry.js +7 -7
- package/dist/cjs/{snk-guides-viewer-c8843478.js → snk-guides-viewer-10ffca10.js} +5 -5
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +9 -9
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +166 -94
- package/dist/cjs/snk-pesquisa.cjs.entry.js +1 -1
- package/dist/cjs/snk-select-box.cjs.entry.js +1 -1
- package/dist/cjs/snk-simple-bar.cjs.entry.js +45 -0
- package/dist/cjs/{snk-simple-bar_2.cjs.entry.js → snk-simple-crud.cjs.entry.js} +5 -43
- package/dist/cjs/snk-tab-config.cjs.entry.js +1 -1
- package/dist/cjs/snk-taskbar.cjs.entry.js +4 -4
- package/dist/cjs/{taskbar-elements-3be287d6.js → taskbar-elements-068aa945.js} +3 -3
- package/dist/cjs/{taskbar-processor-02f0fc84.js → taskbar-processor-6442c585.js} +1 -1
- package/dist/cjs/teste-pesquisa.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/snk-actions-button/subcomponents/snk-client-confirm.js +1 -1
- package/dist/collection/components/snk-entity-list/snk-entity-list.js +6 -4
- package/dist/collection/components/snk-filter-bar/filter-item/dataunitfilter/data-unit-filter-builder.js +34 -12
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js +4 -2
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-personalized/snk-filter-personalized.css +66 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-personalized/snk-filter-personalized.js +370 -0
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +52 -68
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +20 -6
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.css +1 -0
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +110 -10
- package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.js +98 -27
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +21 -0
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +100 -49
- package/dist/collection/components/snk-filter-bar/types/custom-element-filter.js +1 -0
- package/dist/collection/components/snk-filter-bar/utils/SnkFilterModalFactory.js +22 -3
- package/dist/collection/components/snk-filter-bar/utils/filters-mock.js +96 -0
- package/dist/collection/components/snk-filter-field-search/snk-filter-field-search.css +1 -1
- package/dist/collection/components/snk-filter-field-search/snk-filter-field-search.js +27 -6
- package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.css +39 -2
- package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js +276 -30
- package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.css +73 -0
- package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.js +443 -0
- package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/filter-operands/filter-operands.js +16 -24
- package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.css +18 -4
- package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.js +131 -21
- package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/interfaces/IExpressionGroup.js +0 -0
- package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/interfaces/IExpressionItem.js +5 -1
- package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/interfaces/IParameter.js +1 -0
- package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/interfaces/IPersonalizedFilter.js +1 -0
- package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/interfaces/index.js +3 -0
- package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/snk-filter-param-config.js +1 -1
- package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/utils/PersonalizedFilterUtils.js +184 -15
- package/dist/collection/lib/@types/index.js +2 -0
- package/dist/collection/lib/configs/ConfigStorage.js +15 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.js +36 -13
- package/dist/collection/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.js +106 -4
- package/dist/collection/lib/message/resources/snk-filter-bar.msg.js +15 -2
- package/dist/collection/lib/message/resources/snk-filter-field-search.msg.js +2 -0
- package/dist/collection/lib/message/resources/snk-personalized-filter.msg.js +48 -2
- package/dist/components/ConfigStorage.js +180 -1
- package/dist/components/PersonalizedFilterUtils.js +227 -0
- package/dist/components/SnkMessageBuilder.js +65 -4
- package/dist/components/filter-bar-config-fetcher.js +34 -11
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +1 -0
- package/dist/components/index2.js +3 -1
- package/dist/components/snk-client-confirm.js +1 -1
- package/dist/components/snk-crud.js +65 -35
- package/dist/components/snk-data-exporter2.js +1 -1
- package/dist/components/snk-detail-view2.js +99 -44
- package/dist/components/snk-entity-list.js +6 -4
- package/dist/components/snk-expression-group.d.ts +11 -0
- package/dist/components/snk-expression-group.js +6 -0
- package/dist/components/snk-expression-group2.js +296 -0
- package/dist/components/snk-expression-item2.js +133 -46
- package/dist/components/snk-filter-bar2.js +195 -68
- package/dist/components/snk-filter-detail2.js +52 -68
- package/dist/components/snk-filter-field-search2.js +26 -5
- package/dist/components/snk-filter-item2.js +20 -6
- package/dist/components/snk-filter-modal-item2.js +54 -27
- package/dist/components/snk-filter-modal.js +68 -12
- package/dist/components/snk-filter-param-config2.js +3 -57
- package/dist/components/snk-filter-period.js +4 -2
- package/dist/components/snk-filter-personalized.js +139 -58
- package/dist/components/snk-grid2.js +52 -16
- package/dist/components/snk-personalized-filter.js +1 -153
- package/dist/components/snk-personalized-filter2.js +238 -0
- package/dist/esm/ConfigStorage-9f4d2e67.js +300 -0
- package/dist/esm/IExpressionItem-2e922b2c.js +7 -0
- package/dist/esm/PersonalizedFilterUtils-202cd721.js +227 -0
- package/dist/esm/{SnkFormConfigManager-e60367a0.js → SnkFormConfigManager-def999fe.js} +1 -1
- package/dist/esm/{SnkMessageBuilder-188a38bb.js → SnkMessageBuilder-cc4d1599.js} +65 -4
- package/dist/esm/{filter-bar-config-fetcher-edc48f4b.js → filter-bar-config-fetcher-bd2070a3.js} +34 -11
- package/dist/esm/{index-cfd4bb13.js → index-8c3d76a6.js} +6 -1
- package/dist/esm/{index-507e19ec.js → index-a255b326.js} +3 -1
- package/dist/esm/{index-8efbf198.js → index-d60ca0ac.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/sankhyablocks.js +3 -3
- package/dist/esm/snk-actions-button.entry.js +2 -2
- package/dist/esm/snk-actions-form.entry.js +1 -1
- package/dist/esm/snk-application.entry.js +4 -4
- package/dist/esm/snk-attach.entry.js +4 -4
- package/dist/esm/snk-client-confirm.entry.js +2 -2
- package/dist/esm/snk-config-options.entry.js +1 -1
- package/dist/esm/snk-configurator.entry.js +1 -1
- package/dist/esm/snk-crud.entry.js +4 -4
- package/dist/esm/snk-data-exporter.entry.js +4 -4
- package/dist/esm/{snk-data-unit-79b1583a.js → snk-data-unit-97824457.js} +2 -2
- package/dist/esm/snk-data-unit.entry.js +3 -3
- package/dist/esm/snk-detail-view.entry.js +10 -10
- package/dist/esm/snk-entity-list.entry.js +7 -5
- package/dist/esm/snk-exporter-email-sender.entry.js +1 -1
- package/dist/esm/snk-expression-group.entry.js +242 -0
- package/dist/esm/{snk-filter-field-search_2.entry.js → snk-expression-item_3.entry.js} +326 -66
- package/dist/esm/snk-field-config.entry.js +1 -1
- package/dist/esm/snk-filter-bar.entry.js +156 -67
- package/dist/esm/snk-filter-binary-select.entry.js +1 -1
- package/dist/esm/snk-filter-detail.entry.js +55 -70
- package/dist/esm/snk-filter-item.entry.js +21 -7
- package/dist/esm/snk-filter-list.entry.js +1 -1
- package/dist/esm/snk-filter-modal-item.entry.js +57 -29
- package/dist/esm/snk-filter-modal.entry.js +66 -12
- package/dist/esm/snk-filter-multi-select.entry.js +1 -1
- package/dist/esm/snk-filter-number.entry.js +1 -1
- package/dist/esm/snk-filter-period.entry.js +5 -3
- package/dist/esm/snk-filter-personalized.entry.js +135 -55
- package/dist/esm/snk-filter-search.entry.js +1 -1
- package/dist/esm/snk-filter-text.entry.js +1 -1
- package/dist/esm/snk-form-config.entry.js +1 -1
- package/dist/esm/snk-form-summary.entry.js +1 -1
- package/dist/esm/snk-form-view.entry.js +1 -1
- package/dist/esm/snk-form.entry.js +4 -4
- package/dist/esm/snk-grid-config.entry.js +3 -3
- package/dist/esm/snk-grid.entry.js +7 -7
- package/dist/esm/{snk-guides-viewer-59d3a78c.js → snk-guides-viewer-0380f3df.js} +5 -5
- package/dist/esm/snk-guides-viewer.entry.js +9 -9
- package/dist/esm/snk-personalized-filter.entry.js +166 -94
- package/dist/esm/snk-pesquisa.entry.js +1 -1
- package/dist/esm/snk-select-box.entry.js +1 -1
- package/dist/esm/snk-simple-bar.entry.js +41 -0
- package/dist/esm/{snk-simple-bar_2.entry.js → snk-simple-crud.entry.js} +7 -44
- package/dist/esm/snk-tab-config.entry.js +1 -1
- package/dist/esm/snk-taskbar.entry.js +4 -4
- package/dist/esm/{taskbar-elements-8ff33c26.js → taskbar-elements-26d0fba3.js} +3 -3
- package/dist/esm/{taskbar-processor-20de6616.js → taskbar-processor-dfef41a8.js} +1 -1
- package/dist/esm/teste-pesquisa.entry.js +1 -1
- package/dist/sankhyablocks/{p-f27dc5e9.entry.js → p-00d1cac4.entry.js} +1 -1
- package/dist/sankhyablocks/{p-b9667fbe.js → p-066ee142.js} +2 -2
- package/dist/sankhyablocks/p-09a058ba.entry.js +1 -0
- package/dist/sankhyablocks/{p-82bc4666.entry.js → p-0dec4d29.entry.js} +1 -1
- package/dist/sankhyablocks/{p-1e6a95f5.entry.js → p-12632b8e.entry.js} +1 -1
- package/dist/sankhyablocks/{p-384c4a6b.js → p-18b34bb4.js} +1 -1
- package/dist/sankhyablocks/{p-538c057a.entry.js → p-2ad89e28.entry.js} +1 -1
- package/dist/sankhyablocks/p-2d5108b3.js +1 -0
- package/dist/sankhyablocks/{p-ff398057.entry.js → p-34cd4b39.entry.js} +1 -1
- package/dist/sankhyablocks/p-36ecb6ab.js +1 -0
- package/dist/sankhyablocks/p-372e0185.entry.js +1 -0
- package/dist/sankhyablocks/p-3be34bd1.entry.js +1 -0
- package/dist/sankhyablocks/p-3d45107f.js +1 -0
- package/dist/sankhyablocks/{p-28c12f65.js → p-463e0936.js} +1 -1
- package/dist/sankhyablocks/{p-e701646c.entry.js → p-49d628d1.entry.js} +1 -1
- package/dist/sankhyablocks/{p-e642bf7a.entry.js → p-50db4bc4.entry.js} +1 -1
- package/dist/sankhyablocks/{p-093febff.entry.js → p-5427566a.entry.js} +1 -1
- package/dist/sankhyablocks/{p-6a02e236.js → p-590d8900.js} +1 -1
- package/dist/sankhyablocks/p-5a6c090e.entry.js +1 -0
- package/dist/sankhyablocks/p-639be4aa.entry.js +1 -0
- package/dist/sankhyablocks/{p-e2bb9c9a.entry.js → p-67a19b48.entry.js} +1 -1
- package/dist/sankhyablocks/{p-19692f92.js → p-69770075.js} +1 -1
- package/dist/sankhyablocks/p-6d4169fc.entry.js +1 -0
- package/dist/sankhyablocks/{p-0b40c655.js → p-708ee8ee.js} +1 -1
- package/dist/sankhyablocks/{p-9af04fc7.entry.js → p-718cc24b.entry.js} +1 -1
- package/dist/sankhyablocks/{p-2d0fc912.entry.js → p-7946512f.entry.js} +1 -1
- package/dist/sankhyablocks/{p-900b2889.entry.js → p-7a5e1be7.entry.js} +1 -1
- package/dist/sankhyablocks/p-801b8858.js +68 -0
- package/dist/sankhyablocks/{p-80e52e85.entry.js → p-847b9506.entry.js} +1 -1
- package/dist/sankhyablocks/{p-56d70073.entry.js → p-8d541539.entry.js} +1 -1
- package/dist/sankhyablocks/{p-584a315a.entry.js → p-8e98a893.entry.js} +1 -1
- package/dist/sankhyablocks/p-9731180c.entry.js +1 -0
- package/dist/sankhyablocks/p-a6055eb9.entry.js +1 -0
- package/dist/sankhyablocks/{p-b680fa7a.entry.js → p-a655ea15.entry.js} +1 -1
- package/dist/sankhyablocks/{p-b75ce8b8.entry.js → p-a8b06801.entry.js} +1 -1
- package/dist/sankhyablocks/{p-b25450ab.js → p-a8e5ded0.js} +1 -1
- package/dist/sankhyablocks/{p-6ac29569.entry.js → p-b66b99d9.entry.js} +1 -1
- package/dist/sankhyablocks/p-b7efc49a.entry.js +1 -0
- package/dist/sankhyablocks/{p-9c7f7214.entry.js → p-b91ee370.entry.js} +1 -1
- package/dist/sankhyablocks/{p-e551b19a.entry.js → p-b940798f.entry.js} +1 -1
- package/dist/sankhyablocks/{p-72e78de0.entry.js → p-bbefb3b2.entry.js} +1 -1
- package/dist/sankhyablocks/p-bdd61fa8.entry.js +1 -0
- package/dist/sankhyablocks/{p-f8c66aa3.entry.js → p-c06973e7.entry.js} +1 -1
- package/dist/sankhyablocks/{p-257c71a7.entry.js → p-c17e19a2.entry.js} +1 -1
- package/dist/sankhyablocks/p-c6bf66e0.js +1 -0
- package/dist/sankhyablocks/p-cf90a195.entry.js +1 -0
- package/dist/sankhyablocks/{p-44c2ed16.entry.js → p-d11c5026.entry.js} +1 -1
- package/dist/sankhyablocks/p-d5145c3f.entry.js +1 -0
- package/dist/sankhyablocks/p-de328b00.entry.js +1 -0
- package/dist/sankhyablocks/{p-971abcc2.entry.js → p-e500863b.entry.js} +1 -1
- package/dist/sankhyablocks/{p-22e44b9d.entry.js → p-e824aef2.entry.js} +1 -1
- package/dist/sankhyablocks/{p-4ce96831.entry.js → p-eb24c092.entry.js} +1 -1
- package/dist/sankhyablocks/{p-4c2015a9.js → p-eb90de43.js} +1 -1
- package/dist/sankhyablocks/p-ebb8de34.entry.js +1 -0
- package/dist/sankhyablocks/{p-8652d177.entry.js → p-fc512cbe.entry.js} +1 -1
- package/dist/sankhyablocks/{p-786ae316.entry.js → p-fced1d89.entry.js} +1 -1
- package/dist/sankhyablocks/{p-e0b4aec3.entry.js → p-fdb43927.entry.js} +1 -1
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-personalized/snk-filter-personalized.d.ts +85 -0
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-detail.d.ts +6 -6
- 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 +18 -1
- package/dist/types/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.d.ts +14 -6
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +10 -3
- package/dist/types/components/snk-filter-bar/types/custom-element-filter.d.ts +6 -0
- package/dist/types/components/snk-filter-bar/utils/SnkFilterModalFactory.d.ts +10 -1
- package/dist/types/components/snk-filter-bar/utils/filters-mock.d.ts +92 -15
- package/dist/types/components/snk-filter-field-search/interfaces/index.d.ts +5 -11
- package/dist/types/components/snk-filter-field-search/snk-filter-field-search.d.ts +3 -0
- package/dist/types/components/snk-personalized-filter/snk-personalized-filter.d.ts +39 -6
- package/dist/types/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.d.ts +82 -0
- package/dist/types/components/snk-personalized-filter/subcomponents/snk-expression-item/filter-operands/filter-operands.d.ts +1 -1
- package/dist/types/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.d.ts +13 -1
- package/dist/types/components/snk-personalized-filter/subcomponents/snk-filter-param-config/interfaces/IExpressionGroup.d.ts +0 -0
- package/dist/types/components/snk-personalized-filter/subcomponents/snk-filter-param-config/interfaces/IExpressionItem.d.ts +23 -3
- package/dist/types/components/snk-personalized-filter/subcomponents/snk-filter-param-config/interfaces/IParameter.d.ts +21 -0
- package/dist/types/components/snk-personalized-filter/subcomponents/snk-filter-param-config/interfaces/IPersonalizedFilter.d.ts +11 -0
- package/dist/types/components/snk-personalized-filter/subcomponents/snk-filter-param-config/interfaces/index.d.ts +3 -0
- package/dist/types/components/snk-personalized-filter/subcomponents/snk-filter-param-config/utils/PersonalizedFilterUtils.d.ts +14 -2
- package/dist/types/components.d.ts +169 -10
- package/dist/types/lib/@types/index.d.ts +3 -1
- package/dist/types/lib/configs/ConfigStorage.d.ts +5 -0
- package/dist/types/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.d.ts +4 -2
- package/dist/types/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.d.ts +5 -0
- package/dist/types/lib/store/index.d.ts +1 -2
- package/package.json +5 -5
- package/react/components.d.ts +1 -0
- package/react/components.js +1 -0
- package/react/components.js.map +1 -1
- package/dist/cjs/ConfigStorage-f68c3607.js +0 -124
- package/dist/cjs/index-8d94b7e0.js +0 -7
- package/dist/cjs/snk-expression-item.cjs.entry.js +0 -213
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-personalized.js +0 -214
- package/dist/esm/ConfigStorage-e6c17998.js +0 -121
- package/dist/esm/index-620ac460.js +0 -7
- package/dist/esm/snk-expression-item.entry.js +0 -209
- package/dist/sankhyablocks/p-0b6ddb67.entry.js +0 -1
- package/dist/sankhyablocks/p-0c2afa63.entry.js +0 -1
- package/dist/sankhyablocks/p-343699ad.entry.js +0 -1
- package/dist/sankhyablocks/p-471568c7.entry.js +0 -1
- package/dist/sankhyablocks/p-6c2c71ca.js +0 -1
- package/dist/sankhyablocks/p-8ce9ea9f.entry.js +0 -1
- package/dist/sankhyablocks/p-8efb0f47.entry.js +0 -1
- package/dist/sankhyablocks/p-9a448ff9.entry.js +0 -1
- package/dist/sankhyablocks/p-9e50681c.entry.js +0 -1
- package/dist/sankhyablocks/p-9f66bc54.entry.js +0 -1
- package/dist/sankhyablocks/p-b1c02726.js +0 -1
- package/dist/sankhyablocks/p-b34d23fa.js +0 -1
- package/dist/sankhyablocks/p-c20dd153.entry.js +0 -1
- package/dist/sankhyablocks/p-cbb5c440.entry.js +0 -1
- package/dist/sankhyablocks/p-f3241ada.entry.js +0 -1
- package/dist/sankhyablocks/p-f4184ce7.js +0 -1
- package/dist/sankhyablocks/p-ff96b509.entry.js +0 -27
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-personalized.d.ts +0 -40
@@ -1,4 +1,72 @@
|
|
1
1
|
export declare const filtersMock: ({
|
2
|
+
id: string;
|
3
|
+
label: string;
|
4
|
+
detailTitle: string;
|
5
|
+
detailModal: string;
|
6
|
+
visible: boolean;
|
7
|
+
type: string;
|
8
|
+
filterType: string;
|
9
|
+
groupedItems: ({
|
10
|
+
id: string;
|
11
|
+
label: string;
|
12
|
+
detailTitle: string;
|
13
|
+
type: string;
|
14
|
+
active: boolean;
|
15
|
+
props: {
|
16
|
+
expression: string;
|
17
|
+
personalizedFilter: {
|
18
|
+
parameters: {
|
19
|
+
name: string;
|
20
|
+
label: string;
|
21
|
+
type: string;
|
22
|
+
dataType: string;
|
23
|
+
searchContext: {
|
24
|
+
entity: string;
|
25
|
+
entityDescription: string;
|
26
|
+
searchOptions: {
|
27
|
+
rootEntity: string;
|
28
|
+
descriptionFieldName: string;
|
29
|
+
codeFieldName: string;
|
30
|
+
showInactives: boolean;
|
31
|
+
};
|
32
|
+
};
|
33
|
+
}[];
|
34
|
+
};
|
35
|
+
};
|
36
|
+
value: {
|
37
|
+
value: string;
|
38
|
+
label: string;
|
39
|
+
}[];
|
40
|
+
visible: boolean;
|
41
|
+
filterType: string;
|
42
|
+
} | {
|
43
|
+
id: string;
|
44
|
+
label: string;
|
45
|
+
detailTitle: string;
|
46
|
+
type: string;
|
47
|
+
props: {
|
48
|
+
expression: string;
|
49
|
+
personalizedFilter: {
|
50
|
+
parameters: {
|
51
|
+
name: string;
|
52
|
+
label: string;
|
53
|
+
type: string;
|
54
|
+
dataType: string;
|
55
|
+
props: {
|
56
|
+
precision: string;
|
57
|
+
};
|
58
|
+
}[];
|
59
|
+
};
|
60
|
+
};
|
61
|
+
value: number[];
|
62
|
+
visible: boolean;
|
63
|
+
filterType: string;
|
64
|
+
active?: undefined;
|
65
|
+
})[];
|
66
|
+
props?: undefined;
|
67
|
+
value?: undefined;
|
68
|
+
hardFixed?: undefined;
|
69
|
+
} | {
|
2
70
|
id: string;
|
3
71
|
label: string;
|
4
72
|
detailTitle: string;
|
@@ -18,6 +86,7 @@ export declare const filtersMock: ({
|
|
18
86
|
visible: boolean;
|
19
87
|
filterType: string;
|
20
88
|
detailModal: string;
|
89
|
+
groupedItems?: undefined;
|
21
90
|
} | {
|
22
91
|
id: string;
|
23
92
|
label: string;
|
@@ -31,9 +100,10 @@ export declare const filtersMock: ({
|
|
31
100
|
};
|
32
101
|
visible: boolean;
|
33
102
|
filterType: string;
|
103
|
+
detailModal?: undefined;
|
104
|
+
groupedItems?: undefined;
|
34
105
|
value?: undefined;
|
35
106
|
hardFixed?: undefined;
|
36
|
-
detailModal?: undefined;
|
37
107
|
} | {
|
38
108
|
id: string;
|
39
109
|
label: string;
|
@@ -51,9 +121,10 @@ export declare const filtersMock: ({
|
|
51
121
|
};
|
52
122
|
visible: boolean;
|
53
123
|
filterType: string;
|
124
|
+
detailModal?: undefined;
|
125
|
+
groupedItems?: undefined;
|
54
126
|
value?: undefined;
|
55
127
|
hardFixed?: undefined;
|
56
|
-
detailModal?: undefined;
|
57
128
|
} | {
|
58
129
|
id: string;
|
59
130
|
label: string;
|
@@ -68,10 +139,11 @@ export declare const filtersMock: ({
|
|
68
139
|
searchContext?: undefined;
|
69
140
|
};
|
70
141
|
filterType: string;
|
142
|
+
detailModal?: undefined;
|
143
|
+
visible?: undefined;
|
144
|
+
groupedItems?: undefined;
|
71
145
|
value?: undefined;
|
72
146
|
hardFixed?: undefined;
|
73
|
-
visible?: undefined;
|
74
|
-
detailModal?: undefined;
|
75
147
|
} | {
|
76
148
|
id: string;
|
77
149
|
label: string;
|
@@ -95,6 +167,7 @@ export declare const filtersMock: ({
|
|
95
167
|
visible: boolean;
|
96
168
|
filterType: string;
|
97
169
|
detailModal: string;
|
170
|
+
groupedItems?: undefined;
|
98
171
|
value?: undefined;
|
99
172
|
hardFixed?: undefined;
|
100
173
|
} | {
|
@@ -118,10 +191,11 @@ export declare const filtersMock: ({
|
|
118
191
|
personalizedFilter?: undefined;
|
119
192
|
};
|
120
193
|
filterType: string;
|
194
|
+
detailModal?: undefined;
|
195
|
+
visible?: undefined;
|
196
|
+
groupedItems?: undefined;
|
121
197
|
value?: undefined;
|
122
198
|
hardFixed?: undefined;
|
123
|
-
visible?: undefined;
|
124
|
-
detailModal?: undefined;
|
125
199
|
} | {
|
126
200
|
id: string;
|
127
201
|
label: string;
|
@@ -137,11 +211,12 @@ export declare const filtersMock: ({
|
|
137
211
|
personalizedFilter?: undefined;
|
138
212
|
searchContext?: undefined;
|
139
213
|
};
|
140
|
-
|
141
|
-
hardFixed?: undefined;
|
214
|
+
detailModal?: undefined;
|
142
215
|
visible?: undefined;
|
143
216
|
filterType?: undefined;
|
144
|
-
|
217
|
+
groupedItems?: undefined;
|
218
|
+
value?: undefined;
|
219
|
+
hardFixed?: undefined;
|
145
220
|
} | {
|
146
221
|
id: string;
|
147
222
|
label: string;
|
@@ -153,11 +228,12 @@ export declare const filtersMock: ({
|
|
153
228
|
personalizedFilter?: undefined;
|
154
229
|
searchContext?: undefined;
|
155
230
|
};
|
156
|
-
|
157
|
-
hardFixed?: undefined;
|
231
|
+
detailModal?: undefined;
|
158
232
|
visible?: undefined;
|
159
233
|
filterType?: undefined;
|
160
|
-
|
234
|
+
groupedItems?: undefined;
|
235
|
+
value?: undefined;
|
236
|
+
hardFixed?: undefined;
|
161
237
|
} | {
|
162
238
|
id: string;
|
163
239
|
label: string;
|
@@ -178,9 +254,10 @@ export declare const filtersMock: ({
|
|
178
254
|
options?: undefined;
|
179
255
|
personalizedFilter?: undefined;
|
180
256
|
};
|
181
|
-
|
182
|
-
hardFixed?: undefined;
|
257
|
+
detailModal?: undefined;
|
183
258
|
visible?: undefined;
|
184
259
|
filterType?: undefined;
|
185
|
-
|
260
|
+
groupedItems?: undefined;
|
261
|
+
value?: undefined;
|
262
|
+
hardFixed?: undefined;
|
186
263
|
})[];
|
@@ -7,16 +7,8 @@ export declare enum SelectedItemType {
|
|
7
7
|
LINK = "LINK",
|
8
8
|
FIELD = "FIELD"
|
9
9
|
}
|
10
|
-
export interface
|
11
|
-
|
12
|
-
value: string;
|
13
|
-
}
|
14
|
-
export interface IPropertiesSearch {
|
15
|
-
CODEFIELD: string;
|
16
|
-
DESCRIPTIONENTITY: string;
|
17
|
-
DESCRIPTIONFIELD: string;
|
18
|
-
ENTITYNAME: string;
|
19
|
-
RESOURCEID: string;
|
10
|
+
export interface IPropertiesFieldSearch {
|
11
|
+
[key: string]: any;
|
20
12
|
}
|
21
13
|
export interface IFilterField {
|
22
14
|
description: string;
|
@@ -26,9 +18,11 @@ export interface IFilterField {
|
|
26
18
|
onlyDate: boolean;
|
27
19
|
dataType: DataType;
|
28
20
|
userInterface: UserInterface;
|
29
|
-
properties:
|
21
|
+
properties: IPropertiesFieldSearch;
|
22
|
+
entityName?: string;
|
30
23
|
type?: SelectedItemType;
|
31
24
|
path?: string;
|
25
|
+
entityPath?: Array<string>;
|
32
26
|
}
|
33
27
|
export interface IFilterLink {
|
34
28
|
id?: string;
|
@@ -24,6 +24,8 @@ export declare class SnkFilterFieldSearch {
|
|
24
24
|
breadcrumbItems: Array<IBreadcrumbItem>;
|
25
25
|
linkItems: Array<ListGroup>;
|
26
26
|
fieldItems: Array<ListGroup>;
|
27
|
+
searchEmpty: boolean;
|
28
|
+
groupEmpty: boolean;
|
27
29
|
/**
|
28
30
|
* Emitido sempre que um item da lista for selecionado
|
29
31
|
* @type {EventEmitter<IFilterField | IFilterLink>}
|
@@ -45,6 +47,7 @@ export declare class SnkFilterFieldSearch {
|
|
45
47
|
private mapDataSourceToFieldItems;
|
46
48
|
private handleFilterChange;
|
47
49
|
private handleSelectLink;
|
50
|
+
private getEntityFromBreadCrumbItem;
|
48
51
|
private handleSelectField;
|
49
52
|
private getElementID;
|
50
53
|
/**
|
@@ -1,16 +1,49 @@
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
1
2
|
import { FilterFieldsDataSource } from "../snk-filter-field-search/interfaces";
|
2
3
|
import { SnkMessageBuilder } from '../../lib/message/SnkMessageBuilder';
|
4
|
+
import { IPersonalizedFilter } from './subcomponents/snk-filter-param-config/interfaces/IPersonalizedFilter';
|
3
5
|
export declare class SnkPersonalizedFilter {
|
6
|
+
private readonly _personalizedFilterFetcher;
|
7
|
+
private _application;
|
8
|
+
private _mainExpressionGroup;
|
9
|
+
private _elTextAreaExpression;
|
10
|
+
private _originalFilterAssistent;
|
11
|
+
private _elButtonSave;
|
12
|
+
private _filterAssistentMode;
|
13
|
+
private _filterAssistent;
|
4
14
|
/**
|
5
|
-
|
6
|
-
|
15
|
+
* Responsável por flexibilizar e padronizar o uso de mensagens nos blocos de construção.
|
16
|
+
*/
|
7
17
|
messagesBuilder: SnkMessageBuilder;
|
8
|
-
|
18
|
+
/**
|
19
|
+
* Responsável por receber a URI da entidade.
|
20
|
+
*/
|
21
|
+
entityUri: string;
|
22
|
+
/**
|
23
|
+
* Id do filtro que será carregado.
|
24
|
+
*/
|
25
|
+
filterId: string;
|
26
|
+
/**
|
27
|
+
* Nome da config para buscar no resourceId
|
28
|
+
*/
|
29
|
+
configName: string;
|
30
|
+
ezCancel: EventEmitter<void>;
|
31
|
+
ezSave: EventEmitter<string>;
|
32
|
+
createPersonalizedFilter(): Promise<void>;
|
33
|
+
loadFilter(newValue: string, oldValue: string): void;
|
9
34
|
_dataSourceFetcher: FilterFieldsDataSource;
|
10
|
-
private items;
|
11
35
|
componentWillLoad(): void;
|
12
|
-
|
13
|
-
|
36
|
+
getMessage(key: string, params?: any): string;
|
37
|
+
saveFilter(): void;
|
38
|
+
removeFilter(): void;
|
39
|
+
handleFilterGroupChange(): Promise<void>;
|
40
|
+
hasChangesToSave(): boolean;
|
41
|
+
handleSave(): Promise<boolean>;
|
42
|
+
handleCancel(): CustomEvent<void>;
|
43
|
+
handleTitleChange(name: string): void;
|
44
|
+
addLabelToItems(resp: IPersonalizedFilter): IPersonalizedFilter;
|
45
|
+
handleExpressionChange(expression: string): void;
|
46
|
+
getWarningMessageComponent(): HTMLElement;
|
14
47
|
render(): any;
|
15
48
|
}
|
16
49
|
export interface IEntity {
|
@@ -0,0 +1,82 @@
|
|
1
|
+
import { EventEmitter } from '../../../../stencil-public-runtime';
|
2
|
+
import { SnkMessageBuilder } from '../../../../lib/message/SnkMessageBuilder';
|
3
|
+
import { IExpressionGroup } from '../../subcomponents/snk-filter-param-config/interfaces/IExpressionItem';
|
4
|
+
export declare class SnkExpressionGroup {
|
5
|
+
private readonly FIRST_LEVEL;
|
6
|
+
private application;
|
7
|
+
_element: HTMLElement;
|
8
|
+
private _conditionOperator;
|
9
|
+
private _group;
|
10
|
+
private _selfTop;
|
11
|
+
canAddExpression: boolean;
|
12
|
+
private _showDashes;
|
13
|
+
/**
|
14
|
+
* Tamanho do elemento pai do grupo
|
15
|
+
*/
|
16
|
+
parentTop: number;
|
17
|
+
/**
|
18
|
+
* Grupo que será representado visualmente pelo componente.
|
19
|
+
*/
|
20
|
+
group: IExpressionGroup;
|
21
|
+
/**
|
22
|
+
* Responsável por flexibilizar e padronizar o uso de mensagens nos blocos de construção.
|
23
|
+
*/
|
24
|
+
messagesBuilder: SnkMessageBuilder;
|
25
|
+
/**
|
26
|
+
* Id do filtro que será carregado.
|
27
|
+
*/
|
28
|
+
filterId: string;
|
29
|
+
/**
|
30
|
+
* Identificador da unidade de dados.
|
31
|
+
*/
|
32
|
+
entityURI: string;
|
33
|
+
/**
|
34
|
+
* Emitido quando ocorrer alterações no grupo.
|
35
|
+
*/
|
36
|
+
ezFilterGroupChange: EventEmitter<IExpressionGroup>;
|
37
|
+
/**
|
38
|
+
* Emitido ao pressionar o botão de remover grupo.
|
39
|
+
*/
|
40
|
+
ezFilterGroupRemove: EventEmitter<IExpressionGroup>;
|
41
|
+
/**
|
42
|
+
* Emitido ao alterar quantidade de grupos ou expressões
|
43
|
+
*/
|
44
|
+
ezExpressionGroupLayoutChanged: EventEmitter<null>;
|
45
|
+
/**
|
46
|
+
* Listener para capturar adição e remoção de grupos e items de expressão.
|
47
|
+
*/
|
48
|
+
todoCompletedHandler(_: CustomEvent<string>): void;
|
49
|
+
getExpressionGroup(): Promise<IExpressionGroup>;
|
50
|
+
watchGroup(newValue: IExpressionGroup): void;
|
51
|
+
componentWillLoad(): void;
|
52
|
+
componentDidRender(): void;
|
53
|
+
changeHandler(): void;
|
54
|
+
/**
|
55
|
+
* Função que define o valor atualizado da propriedade top do elemento em tela para calcular o tamanho do tracejado.
|
56
|
+
*/
|
57
|
+
private setSelfTop;
|
58
|
+
/**
|
59
|
+
* Função que calcula o tamanho que deve ter o tracejado.
|
60
|
+
*/
|
61
|
+
private getDashedHeight;
|
62
|
+
private getMessage;
|
63
|
+
private updateDashes;
|
64
|
+
private renderExpressionItems;
|
65
|
+
private renderGroups;
|
66
|
+
private handleFilterGroupRemove;
|
67
|
+
private handleFilterItemRemove;
|
68
|
+
private handleFilterItemChange;
|
69
|
+
private handleAddExpression;
|
70
|
+
private handleAddGroup;
|
71
|
+
private buildGroupStyle;
|
72
|
+
private handleConditionOperatorChange;
|
73
|
+
private confirmRemoveGroup;
|
74
|
+
private getTooltipMessageForOperator;
|
75
|
+
private getDataGroupLevel;
|
76
|
+
private canAddGroup;
|
77
|
+
private isFirstLevel;
|
78
|
+
private onStopPropagation;
|
79
|
+
private handleMessageAddTooltip;
|
80
|
+
private canChangeGroupCondition;
|
81
|
+
render(): any;
|
82
|
+
}
|
@@ -4,6 +4,6 @@ export declare const FilterOperandDefault: IOptionOperand[];
|
|
4
4
|
export declare const FilterOperandTypeTextSearch: IOptionOperand[];
|
5
5
|
export declare const FIELD_TYPE_SEARCH_AND_TEXT: Array<UserInterface>;
|
6
6
|
export interface IOptionOperand {
|
7
|
-
value: FilterOperand;
|
8
7
|
label: string;
|
8
|
+
value: keyof typeof FilterOperand;
|
9
9
|
}
|
@@ -1,11 +1,13 @@
|
|
1
1
|
import { EventEmitter } from '../../../../stencil-public-runtime';
|
2
|
-
import {
|
2
|
+
import { IPropertiesFieldSearch } from "../../../snk-filter-field-search/interfaces";
|
3
|
+
import { IExpressionItem, IPropertiesExpressionItem } from "../../../snk-personalized-filter/subcomponents/snk-filter-param-config/interfaces/IExpressionItem";
|
3
4
|
import { SnkMessageBuilder } from '../../../../lib/message/SnkMessageBuilder';
|
4
5
|
export declare class SnkExpressionItem {
|
5
6
|
private _elFilterParamConfigRef;
|
6
7
|
private _elValueVariable;
|
7
8
|
private _elFilterFieldSearch;
|
8
9
|
private _elFieldDynamic;
|
10
|
+
private _elFilterInput;
|
9
11
|
private _dataSourceFetcher;
|
10
12
|
private application;
|
11
13
|
private filterOperandDefault;
|
@@ -33,9 +35,18 @@ export declare class SnkExpressionItem {
|
|
33
35
|
* Emitido ao confirmar uma remoção.
|
34
36
|
*/
|
35
37
|
ezFilterItemRemove: EventEmitter<IExpressionItem>;
|
38
|
+
/**
|
39
|
+
* Identificador da unidade de dados.
|
40
|
+
*/
|
41
|
+
entityURI: string;
|
36
42
|
expressionChanged(newValue: IExpressionItem, oldValue?: IExpressionItem): void;
|
37
43
|
componentWillLoad(): void;
|
44
|
+
componentDidRender(): void;
|
45
|
+
private updateFieldSelected;
|
46
|
+
private buildExpression;
|
38
47
|
private setValueExpression;
|
48
|
+
fieldPropsToExpressionProps(properties: IPropertiesFieldSearch): Array<IPropertiesExpressionItem>;
|
49
|
+
expressionPropsToFieldProps(properties: Array<IPropertiesExpressionItem>): IPropertiesFieldSearch;
|
39
50
|
private getMessage;
|
40
51
|
private handleSelectItem;
|
41
52
|
private handleFocus;
|
@@ -48,6 +59,7 @@ export declare class SnkExpressionItem {
|
|
48
59
|
private checkOptionIsNull;
|
49
60
|
private confirmRemove;
|
50
61
|
private buildFieldByType;
|
62
|
+
private getExpressiontValue;
|
51
63
|
private configureFieldByType;
|
52
64
|
private setCriteriaSearch;
|
53
65
|
render(): any;
|
File without changes
|
@@ -1,15 +1,35 @@
|
|
1
1
|
import { ISystemFilterConfig } from "./ISystemFilterConfig";
|
2
2
|
import { IUserFilterConfig } from "./IUserFilterConfig";
|
3
|
-
import { FilterOperand
|
3
|
+
import { FilterOperand } from "../../../../../lib/@types";
|
4
|
+
import { DataType, UserInterface } from "@sankhyalabs/core";
|
5
|
+
export interface IPropertiesExpressionItem {
|
6
|
+
name: string;
|
7
|
+
value: any;
|
8
|
+
}
|
4
9
|
export interface IExpressionItem {
|
10
|
+
id: string;
|
5
11
|
entityName: string;
|
6
12
|
fieldName: string;
|
7
13
|
description: string;
|
8
|
-
|
14
|
+
fieldLabel?: string;
|
15
|
+
type?: DataType;
|
16
|
+
userInterface?: UserInterface;
|
9
17
|
expression: string;
|
10
|
-
operand: FilterOperand;
|
18
|
+
operand: keyof typeof FilterOperand;
|
11
19
|
paramVariable: boolean;
|
12
20
|
value: string;
|
21
|
+
label?: string;
|
22
|
+
props?: Array<IPropertiesExpressionItem>;
|
13
23
|
systemConfig?: ISystemFilterConfig;
|
14
24
|
userConfig?: IUserFilterConfig;
|
15
25
|
}
|
26
|
+
export interface IExpressionGroup {
|
27
|
+
id: string;
|
28
|
+
items: Array<IExpressionItem>;
|
29
|
+
childrenGroups?: Array<IExpressionGroup>;
|
30
|
+
operand: FilterGroupCondition;
|
31
|
+
}
|
32
|
+
export declare enum FilterGroupCondition {
|
33
|
+
AND = "AND",
|
34
|
+
OR = "OR"
|
35
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { UserInterface } from "@sankhyalabs/core";
|
2
|
+
export interface IParameter {
|
3
|
+
entityName: string;
|
4
|
+
fieldName: string;
|
5
|
+
label?: string;
|
6
|
+
dataType: string;
|
7
|
+
description: string;
|
8
|
+
userInterface: UserInterface;
|
9
|
+
searchContext: ISearchContext;
|
10
|
+
}
|
11
|
+
export interface ISearchContext {
|
12
|
+
entity: string;
|
13
|
+
entityDescription: string;
|
14
|
+
searchOptions: ISearchOptions;
|
15
|
+
}
|
16
|
+
export interface ISearchOptions {
|
17
|
+
codeFieldName?: string;
|
18
|
+
descriptionFieldName?: string;
|
19
|
+
rootEntity?: string;
|
20
|
+
showInactives?: string;
|
21
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { IExpressionGroup } from './IExpressionItem';
|
2
|
+
import { IParameter } from './IParameter';
|
3
|
+
export interface IPersonalizedFilter {
|
4
|
+
id?: string;
|
5
|
+
name: string;
|
6
|
+
active: boolean;
|
7
|
+
expression: string;
|
8
|
+
parameters: Array<IParameter>;
|
9
|
+
assistent: IExpressionGroup;
|
10
|
+
warningMessage?: string;
|
11
|
+
}
|
@@ -1,15 +1,27 @@
|
|
1
|
-
import { IExpressionItem } from "../interfaces
|
1
|
+
import { IExpressionGroup, IExpressionItem } from "../interfaces";
|
2
|
+
import { SnkFilterItemConfig } from "../../../../snk-filter-bar/filter-item/snk-filter-item";
|
3
|
+
import { IParameter } from "../interfaces/IParameter";
|
2
4
|
export declare class PersonalizedFilterUtils {
|
3
5
|
/**
|
4
6
|
* Cria uma expressão de filtro a partir de um IExpressionItem.
|
5
7
|
* @param expressionItem - Objeto com os parâmetros necessários para montar a expressão.
|
6
8
|
* @returns Retorna a expressão de filtro.
|
7
9
|
*/
|
8
|
-
static buildFilterExpression(expressionItem: IExpressionItem): string;
|
10
|
+
static buildFilterExpression(expressionItem: IExpressionItem, ignoreInvalidExpressions?: boolean): string;
|
9
11
|
/**
|
10
12
|
* Obtém o valor do parâmetro a partir de um IExpressionItem.
|
11
13
|
* @param expressionItem - Objeto com os parâmetros necessários para montar a expressão.
|
12
14
|
* @returns Retorna o valor do parâmetro.
|
13
15
|
*/
|
14
16
|
static buildVariableParameterValue(expressionItem: IExpressionItem): string;
|
17
|
+
private static checkIsValidNumber;
|
18
|
+
private static proccessVarialbeParameter;
|
19
|
+
private static convertDataValue;
|
20
|
+
static buildGroupExpression(expressionGroup: IExpressionGroup, ignoreInvalidExpressions?: boolean): string;
|
21
|
+
static validateFields(expressionGroup: IExpressionGroup): boolean;
|
22
|
+
private static buildPlainExpressionItems;
|
23
|
+
private static validateExpressionItem;
|
24
|
+
private static getNormalizedValue;
|
25
|
+
static validateVariableValues(config: SnkFilterItemConfig, editorValue?: any): boolean;
|
26
|
+
static buildVariableParameters(expressionGroup: IExpressionGroup): Array<IParameter>;
|
15
27
|
}
|