@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
@@ -0,0 +1,443 @@
|
|
1
|
+
import { h, Host, forceUpdate } from '@stencil/core';
|
2
|
+
import { FilterGroupCondition } from '../../subcomponents/snk-filter-param-config/interfaces/IExpressionItem';
|
3
|
+
import { ApplicationUtils } from "@sankhyalabs/ezui/dist/collection/utils";
|
4
|
+
import { ApplicationContext, ElementIDUtils, StringUtils } from '@sankhyalabs/core';
|
5
|
+
const LIMIT_GROUP_LEVEL = 4;
|
6
|
+
export class SnkExpressionGroup {
|
7
|
+
constructor() {
|
8
|
+
this.FIRST_LEVEL = "0";
|
9
|
+
this.application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
10
|
+
this._conditionOperator = FilterGroupCondition.AND;
|
11
|
+
this._group = undefined;
|
12
|
+
this._selfTop = 0;
|
13
|
+
this.canAddExpression = true;
|
14
|
+
this._showDashes = true;
|
15
|
+
this.parentTop = 0;
|
16
|
+
this.group = undefined;
|
17
|
+
this.messagesBuilder = undefined;
|
18
|
+
this.filterId = undefined;
|
19
|
+
this.entityURI = undefined;
|
20
|
+
}
|
21
|
+
/**
|
22
|
+
* Listener para capturar adição e remoção de grupos e items de expressão.
|
23
|
+
*/
|
24
|
+
todoCompletedHandler(_) {
|
25
|
+
this.updateDashes();
|
26
|
+
}
|
27
|
+
/*
|
28
|
+
* Retorna o grupo da expressão.
|
29
|
+
*/
|
30
|
+
async getExpressionGroup() {
|
31
|
+
return this._group;
|
32
|
+
}
|
33
|
+
watchGroup(newValue) {
|
34
|
+
this._group = newValue;
|
35
|
+
this._conditionOperator = !this._group.operand ? FilterGroupCondition.AND : this._group.operand;
|
36
|
+
}
|
37
|
+
componentWillLoad() {
|
38
|
+
this._group = this.group;
|
39
|
+
this._conditionOperator = !this._group.operand ? FilterGroupCondition.AND : this._group.operand;
|
40
|
+
if (!this.getDataGroupLevel()) {
|
41
|
+
this._element.setAttribute('data-group-level', this.FIRST_LEVEL);
|
42
|
+
}
|
43
|
+
if (!this.filterId) {
|
44
|
+
this.canAddExpression = false;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
componentDidRender() {
|
48
|
+
this.setSelfTop();
|
49
|
+
}
|
50
|
+
changeHandler() {
|
51
|
+
this.ezExpressionGroupLayoutChanged.emit();
|
52
|
+
}
|
53
|
+
/**
|
54
|
+
* Função que define o valor atualizado da propriedade top do elemento em tela para calcular o tamanho do tracejado.
|
55
|
+
*/
|
56
|
+
setSelfTop() {
|
57
|
+
this._selfTop = this._element.getBoundingClientRect().top;
|
58
|
+
}
|
59
|
+
/**
|
60
|
+
* Função que calcula o tamanho que deve ter o tracejado.
|
61
|
+
*/
|
62
|
+
getDashedHeight() {
|
63
|
+
return this._selfTop - this.parentTop;
|
64
|
+
}
|
65
|
+
getMessage(key, params) {
|
66
|
+
return this.application.messagesBuilder.getMessage(key, params);
|
67
|
+
}
|
68
|
+
updateDashes() {
|
69
|
+
this._showDashes = false;
|
70
|
+
this.setSelfTop();
|
71
|
+
this._showDashes = true;
|
72
|
+
}
|
73
|
+
renderExpressionItems() {
|
74
|
+
var _a;
|
75
|
+
return (_a = this._group.items) === null || _a === void 0 ? void 0 : _a.map((item) => (h("snk-expression-item", { key: item.id, class: "ez-padding-top--small snk-expression-group__item", expression: item, canRemove: this._group.items.length > 1, onEzFilterItemChange: () => this.handleFilterItemChange(), onEzFilterItemRemove: (evt) => this.handleFilterItemRemove(evt, item.id), messagesBuilder: this.messagesBuilder, entityURI: this.entityURI })));
|
76
|
+
}
|
77
|
+
renderGroups() {
|
78
|
+
var _a;
|
79
|
+
const currentLevel = parseInt(this.getDataGroupLevel() || '0');
|
80
|
+
const newLevel = currentLevel + 1;
|
81
|
+
return (_a = this._group.childrenGroups) === null || _a === void 0 ? void 0 : _a.map((group) => (h("snk-expression-group", { key: group.id, group: group, messagesBuilder: this.messagesBuilder, parentTop: this._selfTop, "data-group-level": newLevel, onEzFilterGroupRemove: (evt) => this.handleFilterGroupRemove(evt, group.id), entityURI: this.entityURI })));
|
82
|
+
}
|
83
|
+
handleFilterGroupRemove(evt, groupId) {
|
84
|
+
this.onStopPropagation(evt);
|
85
|
+
this._group.childrenGroups = this._group.childrenGroups.filter(group => group.id !== groupId);
|
86
|
+
forceUpdate(this);
|
87
|
+
this.ezFilterGroupChange.emit(this._group);
|
88
|
+
this.changeHandler();
|
89
|
+
}
|
90
|
+
handleFilterItemRemove(evt, itemId) {
|
91
|
+
this.onStopPropagation(evt);
|
92
|
+
this._group.items = this._group.items.filter(item => item.id !== itemId);
|
93
|
+
forceUpdate(this);
|
94
|
+
this.ezFilterGroupChange.emit(this._group);
|
95
|
+
this.changeHandler();
|
96
|
+
this.canAddExpression = true;
|
97
|
+
}
|
98
|
+
handleFilterItemChange() {
|
99
|
+
this.ezFilterGroupChange.emit(this._group);
|
100
|
+
this.canAddExpression = this.group.items.every(item => {
|
101
|
+
if (!item.fieldName || !item.operand)
|
102
|
+
return false;
|
103
|
+
if (item.operand === 'NULL' || item.operand === 'NOT_NULL') {
|
104
|
+
return true;
|
105
|
+
}
|
106
|
+
else {
|
107
|
+
return item.paramVariable || (item.userInterface === 'SWITCH') ? true : !!item.value;
|
108
|
+
}
|
109
|
+
});
|
110
|
+
}
|
111
|
+
handleAddExpression() {
|
112
|
+
const newItem = {
|
113
|
+
id: StringUtils.generateUUID(),
|
114
|
+
entityName: "",
|
115
|
+
fieldName: "",
|
116
|
+
description: "",
|
117
|
+
label: "Valor",
|
118
|
+
type: undefined,
|
119
|
+
expression: undefined,
|
120
|
+
operand: undefined,
|
121
|
+
paramVariable: false,
|
122
|
+
value: undefined,
|
123
|
+
systemConfig: null,
|
124
|
+
userConfig: null
|
125
|
+
};
|
126
|
+
this._group.items.push(newItem);
|
127
|
+
forceUpdate(this);
|
128
|
+
this.ezFilterGroupChange.emit(this.group);
|
129
|
+
this.changeHandler();
|
130
|
+
this.canAddExpression = false;
|
131
|
+
}
|
132
|
+
handleAddGroup() {
|
133
|
+
var _a;
|
134
|
+
const newGroup = {
|
135
|
+
id: StringUtils.generateUUID(),
|
136
|
+
items: [
|
137
|
+
{
|
138
|
+
id: StringUtils.generateUUID(),
|
139
|
+
entityName: "",
|
140
|
+
fieldName: "",
|
141
|
+
description: "",
|
142
|
+
label: "Valor",
|
143
|
+
type: undefined,
|
144
|
+
expression: undefined,
|
145
|
+
operand: undefined,
|
146
|
+
paramVariable: false,
|
147
|
+
value: undefined,
|
148
|
+
systemConfig: null,
|
149
|
+
userConfig: null
|
150
|
+
}
|
151
|
+
],
|
152
|
+
childrenGroups: [],
|
153
|
+
operand: FilterGroupCondition.AND
|
154
|
+
};
|
155
|
+
this._group.childrenGroups = (_a = this._group.childrenGroups) !== null && _a !== void 0 ? _a : [];
|
156
|
+
this._group.childrenGroups.push(newGroup);
|
157
|
+
forceUpdate(this);
|
158
|
+
this.ezFilterGroupChange.emit(this.group);
|
159
|
+
this.changeHandler();
|
160
|
+
}
|
161
|
+
buildGroupStyle() {
|
162
|
+
return {
|
163
|
+
height: `${this.getDashedHeight()}px`,
|
164
|
+
marginTop: `${-(this.getDashedHeight()) + 20}px`,
|
165
|
+
};
|
166
|
+
}
|
167
|
+
handleConditionOperatorChange(newOperator) {
|
168
|
+
this._conditionOperator = newOperator;
|
169
|
+
this._group.operand = FilterGroupCondition[newOperator];
|
170
|
+
this.ezFilterGroupChange.emit(this._group);
|
171
|
+
}
|
172
|
+
confirmRemoveGroup(evt) {
|
173
|
+
this.onStopPropagation(evt);
|
174
|
+
ApplicationUtils.confirm(this.getMessage("snkPersonalizedFilter.confirmGroup.title"), this.getMessage("snkPersonalizedFilter.confirmGroup.description"))
|
175
|
+
.then((canRemove) => {
|
176
|
+
if (canRemove) {
|
177
|
+
this.ezFilterGroupRemove.emit(this._group);
|
178
|
+
}
|
179
|
+
});
|
180
|
+
}
|
181
|
+
getTooltipMessageForOperator() {
|
182
|
+
const groupLevel = this.getDataGroupLevel();
|
183
|
+
if (groupLevel === this.FIRST_LEVEL && this._group.items.length === 1) {
|
184
|
+
return this.getMessage("snkPersonalizedFilter.operador.firstLevel");
|
185
|
+
}
|
186
|
+
if (this._conditionOperator === FilterGroupCondition.AND) {
|
187
|
+
return this.getMessage("snkPersonalizedFilter.operador.and");
|
188
|
+
}
|
189
|
+
else if (this._conditionOperator === FilterGroupCondition.OR) {
|
190
|
+
return this.getMessage("snkPersonalizedFilter.operador.or");
|
191
|
+
}
|
192
|
+
}
|
193
|
+
getDataGroupLevel() {
|
194
|
+
return this._element.getAttribute('data-group-level');
|
195
|
+
}
|
196
|
+
canAddGroup() {
|
197
|
+
const dataGroupLevel = Number(this.getDataGroupLevel() || this.FIRST_LEVEL);
|
198
|
+
return dataGroupLevel < LIMIT_GROUP_LEVEL;
|
199
|
+
}
|
200
|
+
isFirstLevel() {
|
201
|
+
return Boolean(this.getDataGroupLevel() === this.FIRST_LEVEL);
|
202
|
+
}
|
203
|
+
onStopPropagation(evt) {
|
204
|
+
evt.preventDefault();
|
205
|
+
evt.stopPropagation();
|
206
|
+
}
|
207
|
+
handleMessageAddTooltip() {
|
208
|
+
if (this.isFirstLevel()) {
|
209
|
+
const allValidItems = this.group.items.every(item => {
|
210
|
+
if (!item.fieldName || !item.operand)
|
211
|
+
return false;
|
212
|
+
return item.paramVariable || !!item.value;
|
213
|
+
});
|
214
|
+
return allValidItems ? this.getMessage("snkPersonalizedFilter.info.labelAddNewExpression") : this.getMessage("snkPersonalizedFilter.info.labelDisabledAddExpressionButton");
|
215
|
+
}
|
216
|
+
else {
|
217
|
+
return this.canAddExpression ? this.getMessage("snkPersonalizedFilter.info.labelAddNewExpression") : this.getMessage("snkPersonalizedFilter.info.labelDisabledAddExpressionButton");
|
218
|
+
}
|
219
|
+
}
|
220
|
+
canChangeGroupCondition() {
|
221
|
+
const membersCount = this._group.items.length + this._group.childrenGroups.length;
|
222
|
+
return membersCount > 1;
|
223
|
+
}
|
224
|
+
render() {
|
225
|
+
const canAddGroup = this.canAddGroup();
|
226
|
+
return (h(Host, null, h("div", { class: !this.isFirstLevel() && this._showDashes ? 'dashes' : 'hidden', style: this.buildGroupStyle() }), h("div", { class: !this.isFirstLevel() && this._showDashes ? 'horizontal-dashes' : 'hidden' }), h("div", { class: 'ez-flex ez-flex--align-items-center' }, h("div", { class: 'snk-expression-group__container-condition ez-flex ez-flex-item--align-center ez-flex--align-items-center', "data-condition": this._conditionOperator, title: this.getTooltipMessageForOperator() }, h("label", { class: "ez-label ez-padding-right--medium ez-padding-left--medium ez-title--primary" }, "Condi\u00E7\u00E3o:"), h("div", null, h("ez-combo-box", Object.assign({ class: "snk-expression-group__container-option", canShowError: false, mode: "slim", suppressEmptyOption: true, enabled: this.canChangeGroupCondition(), value: this._conditionOperator, onEzChange: (evt) => this.handleConditionOperatorChange(evt.detail.value) }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `comboBoxConditions_level_${this.getDataGroupLevel()}` }), h("option", { value: FilterGroupCondition.AND }, "E"), h("option", { value: FilterGroupCondition.OR }, "OU")))), h("ez-button", { class: "ez-padding-right--medium ez-padding-left--medium", mode: "icon", iconName: "plus", size: "small", enabled: this.canAddExpression, title: this.handleMessageAddTooltip(), onClick: () => this.handleAddExpression() }), h("ez-button", { label: "Adicionar grupo", size: "small", enabled: canAddGroup, title: !canAddGroup ? this.getMessage('snkPersonalizedFilter.info.labelDisabledAddGroupButton', { LIMIT_GROUP_LEVEL: LIMIT_GROUP_LEVEL + 1 }) : '', onClick: () => this.handleAddGroup() }, h("ez-icon", { slot: "leftIcon", iconName: "plus" })), !this.isFirstLevel() && h("ez-button", { title: this.getMessage("snkPersonalizedFilter.info.labelDeleteExpression"), class: "ez-padding-left--medium", mode: "icon", iconName: "delete", size: "small", onClick: (evt) => this.confirmRemoveGroup(evt) })), h("div", { class: "ez-padding-top--small snk-expression-group__container-expression" }, h("div", { class: "ez-padding-top--small" }, this.renderExpressionItems())), h("div", { class: "ez-padding-top--small snk-expression-group__container-expression" }, h("div", { class: "ez-padding-top--small" }, this.renderGroups()))));
|
227
|
+
}
|
228
|
+
static get is() { return "snk-expression-group"; }
|
229
|
+
static get encapsulation() { return "scoped"; }
|
230
|
+
static get originalStyleUrls() {
|
231
|
+
return {
|
232
|
+
"$": ["snk-expression-group.css"]
|
233
|
+
};
|
234
|
+
}
|
235
|
+
static get styleUrls() {
|
236
|
+
return {
|
237
|
+
"$": ["snk-expression-group.css"]
|
238
|
+
};
|
239
|
+
}
|
240
|
+
static get properties() {
|
241
|
+
return {
|
242
|
+
"parentTop": {
|
243
|
+
"type": "number",
|
244
|
+
"mutable": true,
|
245
|
+
"complexType": {
|
246
|
+
"original": "number",
|
247
|
+
"resolved": "number",
|
248
|
+
"references": {}
|
249
|
+
},
|
250
|
+
"required": false,
|
251
|
+
"optional": false,
|
252
|
+
"docs": {
|
253
|
+
"tags": [],
|
254
|
+
"text": "Tamanho do elemento pai do grupo"
|
255
|
+
},
|
256
|
+
"attribute": "parent-top",
|
257
|
+
"reflect": false,
|
258
|
+
"defaultValue": "0"
|
259
|
+
},
|
260
|
+
"group": {
|
261
|
+
"type": "unknown",
|
262
|
+
"mutable": true,
|
263
|
+
"complexType": {
|
264
|
+
"original": "IExpressionGroup",
|
265
|
+
"resolved": "IExpressionGroup",
|
266
|
+
"references": {
|
267
|
+
"IExpressionGroup": {
|
268
|
+
"location": "import",
|
269
|
+
"path": "../../subcomponents/snk-filter-param-config/interfaces/IExpressionItem"
|
270
|
+
}
|
271
|
+
}
|
272
|
+
},
|
273
|
+
"required": false,
|
274
|
+
"optional": false,
|
275
|
+
"docs": {
|
276
|
+
"tags": [],
|
277
|
+
"text": "Grupo que ser\u00E1 representado visualmente pelo componente."
|
278
|
+
}
|
279
|
+
},
|
280
|
+
"messagesBuilder": {
|
281
|
+
"type": "unknown",
|
282
|
+
"mutable": true,
|
283
|
+
"complexType": {
|
284
|
+
"original": "SnkMessageBuilder",
|
285
|
+
"resolved": "SnkMessageBuilder",
|
286
|
+
"references": {
|
287
|
+
"SnkMessageBuilder": {
|
288
|
+
"location": "import",
|
289
|
+
"path": "../../../../lib/message/SnkMessageBuilder"
|
290
|
+
}
|
291
|
+
}
|
292
|
+
},
|
293
|
+
"required": false,
|
294
|
+
"optional": false,
|
295
|
+
"docs": {
|
296
|
+
"tags": [],
|
297
|
+
"text": "Respons\u00E1vel por flexibilizar e padronizar o uso de mensagens nos blocos de constru\u00E7\u00E3o."
|
298
|
+
}
|
299
|
+
},
|
300
|
+
"filterId": {
|
301
|
+
"type": "string",
|
302
|
+
"mutable": true,
|
303
|
+
"complexType": {
|
304
|
+
"original": "string",
|
305
|
+
"resolved": "string",
|
306
|
+
"references": {}
|
307
|
+
},
|
308
|
+
"required": false,
|
309
|
+
"optional": false,
|
310
|
+
"docs": {
|
311
|
+
"tags": [],
|
312
|
+
"text": "Id do filtro que ser\u00E1 carregado."
|
313
|
+
},
|
314
|
+
"attribute": "filter-id",
|
315
|
+
"reflect": false
|
316
|
+
},
|
317
|
+
"entityURI": {
|
318
|
+
"type": "string",
|
319
|
+
"mutable": true,
|
320
|
+
"complexType": {
|
321
|
+
"original": "string",
|
322
|
+
"resolved": "string",
|
323
|
+
"references": {}
|
324
|
+
},
|
325
|
+
"required": false,
|
326
|
+
"optional": false,
|
327
|
+
"docs": {
|
328
|
+
"tags": [],
|
329
|
+
"text": "Identificador da unidade de dados."
|
330
|
+
},
|
331
|
+
"attribute": "entity-u-r-i",
|
332
|
+
"reflect": false
|
333
|
+
}
|
334
|
+
};
|
335
|
+
}
|
336
|
+
static get states() {
|
337
|
+
return {
|
338
|
+
"_conditionOperator": {},
|
339
|
+
"_group": {},
|
340
|
+
"_selfTop": {},
|
341
|
+
"canAddExpression": {},
|
342
|
+
"_showDashes": {}
|
343
|
+
};
|
344
|
+
}
|
345
|
+
static get events() {
|
346
|
+
return [{
|
347
|
+
"method": "ezFilterGroupChange",
|
348
|
+
"name": "ezFilterGroupChange",
|
349
|
+
"bubbles": true,
|
350
|
+
"cancelable": true,
|
351
|
+
"composed": true,
|
352
|
+
"docs": {
|
353
|
+
"tags": [],
|
354
|
+
"text": "Emitido quando ocorrer altera\u00E7\u00F5es no grupo."
|
355
|
+
},
|
356
|
+
"complexType": {
|
357
|
+
"original": "IExpressionGroup",
|
358
|
+
"resolved": "IExpressionGroup",
|
359
|
+
"references": {
|
360
|
+
"IExpressionGroup": {
|
361
|
+
"location": "import",
|
362
|
+
"path": "../../subcomponents/snk-filter-param-config/interfaces/IExpressionItem"
|
363
|
+
}
|
364
|
+
}
|
365
|
+
}
|
366
|
+
}, {
|
367
|
+
"method": "ezFilterGroupRemove",
|
368
|
+
"name": "ezFilterGroupRemove",
|
369
|
+
"bubbles": true,
|
370
|
+
"cancelable": true,
|
371
|
+
"composed": true,
|
372
|
+
"docs": {
|
373
|
+
"tags": [],
|
374
|
+
"text": "Emitido ao pressionar o bot\u00E3o de remover grupo."
|
375
|
+
},
|
376
|
+
"complexType": {
|
377
|
+
"original": "IExpressionGroup",
|
378
|
+
"resolved": "IExpressionGroup",
|
379
|
+
"references": {
|
380
|
+
"IExpressionGroup": {
|
381
|
+
"location": "import",
|
382
|
+
"path": "../../subcomponents/snk-filter-param-config/interfaces/IExpressionItem"
|
383
|
+
}
|
384
|
+
}
|
385
|
+
}
|
386
|
+
}, {
|
387
|
+
"method": "ezExpressionGroupLayoutChanged",
|
388
|
+
"name": "ezExpressionLayoutChanged",
|
389
|
+
"bubbles": true,
|
390
|
+
"cancelable": true,
|
391
|
+
"composed": true,
|
392
|
+
"docs": {
|
393
|
+
"tags": [],
|
394
|
+
"text": "Emitido ao alterar quantidade de grupos ou express\u00F5es"
|
395
|
+
},
|
396
|
+
"complexType": {
|
397
|
+
"original": "null",
|
398
|
+
"resolved": "null",
|
399
|
+
"references": {}
|
400
|
+
}
|
401
|
+
}];
|
402
|
+
}
|
403
|
+
static get methods() {
|
404
|
+
return {
|
405
|
+
"getExpressionGroup": {
|
406
|
+
"complexType": {
|
407
|
+
"signature": "() => Promise<IExpressionGroup>",
|
408
|
+
"parameters": [],
|
409
|
+
"references": {
|
410
|
+
"Promise": {
|
411
|
+
"location": "global"
|
412
|
+
},
|
413
|
+
"IExpressionGroup": {
|
414
|
+
"location": "import",
|
415
|
+
"path": "../../subcomponents/snk-filter-param-config/interfaces/IExpressionItem"
|
416
|
+
}
|
417
|
+
},
|
418
|
+
"return": "Promise<IExpressionGroup>"
|
419
|
+
},
|
420
|
+
"docs": {
|
421
|
+
"text": "",
|
422
|
+
"tags": []
|
423
|
+
}
|
424
|
+
}
|
425
|
+
};
|
426
|
+
}
|
427
|
+
static get elementRef() { return "_element"; }
|
428
|
+
static get watchers() {
|
429
|
+
return [{
|
430
|
+
"propName": "group",
|
431
|
+
"methodName": "watchGroup"
|
432
|
+
}];
|
433
|
+
}
|
434
|
+
static get listeners() {
|
435
|
+
return [{
|
436
|
+
"name": "ezExpressionLayoutChanged",
|
437
|
+
"method": "todoCompletedHandler",
|
438
|
+
"target": "window",
|
439
|
+
"capture": false,
|
440
|
+
"passive": false
|
441
|
+
}];
|
442
|
+
}
|
443
|
+
}
|
@@ -1,29 +1,21 @@
|
|
1
|
-
import { FilterOperand } from "../../../../../lib/@types";
|
2
1
|
import { UserInterface } from '@sankhyalabs/core';
|
3
|
-
|
4
|
-
{
|
5
|
-
{
|
6
|
-
{
|
7
|
-
{
|
8
|
-
{
|
9
|
-
{
|
10
|
-
{
|
11
|
-
{
|
12
|
-
{ value: FilterOperand.LARGER, label: "Maior (>)" },
|
13
|
-
{ value: FilterOperand.LARGER_EQUAL, label: "Maior ou Igual (>=)" },
|
14
|
-
{ value: FilterOperand.SMALLER, label: "Menor (<)" },
|
15
|
-
{ value: FilterOperand.SMALLER_EQUAL, label: "Menor ou Igual (<=)" }
|
16
|
-
];
|
17
|
-
export const FilterOperandTypeTextSearch = [
|
18
|
-
{ value: FilterOperand.EQUAL, label: "Igual (=)" },
|
19
|
-
{ value: FilterOperand.DIFFERENT, label: "Diferente (<>)" },
|
20
|
-
{ value: FilterOperand.LIKE, label: "Contendo (LIKE)" },
|
21
|
-
{ value: FilterOperand.IN, label: "Contido em (IN)" },
|
22
|
-
{ value: FilterOperand.START_WITH, label: "Iniciado com (%?)" },
|
23
|
-
{ value: FilterOperand.FINISHED_WITH, label: "Terminado com (?%)" },
|
24
|
-
{ value: FilterOperand.NULL, label: "Vazio (NULL)" },
|
25
|
-
{ value: FilterOperand.NOT_NULL, label: "Não Vazio (NOT NULL)" }
|
2
|
+
const defaultsOperand = [
|
3
|
+
{ label: "Igual (=)", value: "EQUAL" },
|
4
|
+
{ label: "Diferente (<>)", value: "DIFFERENT" },
|
5
|
+
{ label: "Contendo (LIKE)", value: "LIKE" },
|
6
|
+
{ label: "Contido em (IN)", value: "IN" },
|
7
|
+
{ label: "Iniciado com (%?)", value: "START_WITH" },
|
8
|
+
{ label: "Terminado com (?%)", value: "FINISHED_WITH" },
|
9
|
+
{ label: "Vazio (NULL)", value: "NULL" },
|
10
|
+
{ label: "Não Vazio (NOT NULL)", value: "NOT_NULL" },
|
26
11
|
];
|
12
|
+
export const FilterOperandDefault = defaultsOperand.concat([
|
13
|
+
{ label: "Maior (>)", value: "LARGER" },
|
14
|
+
{ label: "Maior ou Igual (>=)", value: "LARGER_EQUAL" },
|
15
|
+
{ label: "Menor (<)", value: "SMALLER" },
|
16
|
+
{ label: "Menor ou Igual (<=)", value: "SMALLER_EQUAL" }
|
17
|
+
]);
|
18
|
+
export const FilterOperandTypeTextSearch = defaultsOperand;
|
27
19
|
export const FIELD_TYPE_SEARCH_AND_TEXT = [
|
28
20
|
UserInterface.SEARCH,
|
29
21
|
UserInterface.SHORTTEXT,
|
@@ -25,16 +25,18 @@
|
|
25
25
|
--snk-expression-item--border-color: var(--color--strokes, #DCE0E8);
|
26
26
|
/*@doc Define largura e estilo da borda.*/
|
27
27
|
--snk-expression-item--border-style: var(--border--small, 1px solid);
|
28
|
+
|
29
|
+
/*@doc Define a cor de efeito de tracejado.*/
|
30
|
+
--snk-expression-item__background-color-dashed: var(--background--body, #fafcff);
|
28
31
|
}
|
29
32
|
|
30
33
|
.box{
|
31
34
|
/*private*/
|
32
35
|
width: 100%;
|
33
|
-
height:
|
36
|
+
height: 56px;
|
34
37
|
background: var(--snk-expression-item--background-color);
|
35
38
|
|
36
39
|
/*public*/
|
37
|
-
margin: var(--space--small, 6px);
|
38
40
|
border: var(--snk-expression-item--border-color) var(--snk-expression-item--border-style);
|
39
41
|
border-radius: var(--snk-expression-item--border-radius);
|
40
42
|
}
|
@@ -42,7 +44,7 @@
|
|
42
44
|
.box__container{
|
43
45
|
/*private*/
|
44
46
|
display: flex;
|
45
|
-
align-items: center;
|
47
|
+
align-items: center;
|
46
48
|
justify-content: space-between;
|
47
49
|
white-space: nowrap;
|
48
50
|
|
@@ -94,4 +96,16 @@
|
|
94
96
|
|
95
97
|
.box__container--input-value-variable--icon{
|
96
98
|
cursor: pointer;
|
97
|
-
}
|
99
|
+
}
|
100
|
+
|
101
|
+
.dashes{
|
102
|
+
z-index: var(--more-visible, 2);
|
103
|
+
background: var(--snk-expression-item__background-color-dashed);
|
104
|
+
border-bottom: 2px dashed var(--text-secondary, #A2ABB9);
|
105
|
+
border-left: 2px dashed var(--text-secondary, #A2ABB9);
|
106
|
+
position: absolute;
|
107
|
+
width: 15px;
|
108
|
+
height: 62px;
|
109
|
+
margin-left: -15px;
|
110
|
+
margin-top: -33.5px;
|
111
|
+
}
|