@sankhyalabs/sankhyablocks 5.19.1 → 6.0.1
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 +1 -1
- 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 +162 -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 +67 -13
- 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-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 +15 -15
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +111 -11
- 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 +23 -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-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 +196 -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 +69 -13
- 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 +1 -1
- 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 +157 -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 +67 -13
- 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-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-b680fa7a.entry.js → p-a655ea15.entry.js} +1 -1
- package/dist/sankhyablocks/{p-eae124e3.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-cdfddb41.entry.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-f55450d5.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
package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-personalized.js
DELETED
@@ -1,214 +0,0 @@
|
|
1
|
-
import { ApplicationContext, ElementIDUtils, UserInterface } from '@sankhyalabs/core';
|
2
|
-
import { convertType } from '@sankhyalabs/core/dist/dataunit/metadata/DataType';
|
3
|
-
import { h, Host } from '@stencil/core';
|
4
|
-
import { CheckMode } from "@sankhyalabs/ezui/dist/collection/utils";
|
5
|
-
import FilterItemType from '../filter-item-type.enum';
|
6
|
-
export class SnkFilterPersonalized {
|
7
|
-
constructor() {
|
8
|
-
this.config = undefined;
|
9
|
-
this.value = undefined;
|
10
|
-
this.fix = undefined;
|
11
|
-
this.unfix = undefined;
|
12
|
-
}
|
13
|
-
componentDidLoad() {
|
14
|
-
if (this._element) {
|
15
|
-
ElementIDUtils.addIDInfo(this._element, 'filterContentEditor');
|
16
|
-
}
|
17
|
-
}
|
18
|
-
getValue(param, index) {
|
19
|
-
if (this.value && index >= 0 && index < this.value.length) {
|
20
|
-
const rawValue = this.value[index];
|
21
|
-
if (param.type === UserInterface.SEARCH) {
|
22
|
-
return rawValue;
|
23
|
-
}
|
24
|
-
return convertType(param.dataType, rawValue);
|
25
|
-
}
|
26
|
-
return undefined;
|
27
|
-
}
|
28
|
-
setValue(index, value) {
|
29
|
-
if (this.value == undefined) {
|
30
|
-
this.value = Array(index).fill(null);
|
31
|
-
}
|
32
|
-
else {
|
33
|
-
this.value = [...this.value];
|
34
|
-
}
|
35
|
-
this.value[index] = value;
|
36
|
-
if (this.value.filter(item => item != undefined).length == 0) {
|
37
|
-
this.value = null;
|
38
|
-
}
|
39
|
-
this.valueChanged.emit(this.value || []);
|
40
|
-
}
|
41
|
-
doSearch(mode, argument, param) {
|
42
|
-
const application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
43
|
-
return new Promise((resolve, reject) => {
|
44
|
-
application.executePreparedSearch(mode, argument, param.searchContext)
|
45
|
-
.then(result => {
|
46
|
-
resolve(result);
|
47
|
-
}).catch(reason => {
|
48
|
-
reject(reason);
|
49
|
-
});
|
50
|
-
});
|
51
|
-
}
|
52
|
-
getParamsInterface() {
|
53
|
-
var _a, _b, _c;
|
54
|
-
const params = (_c = (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.props) === null || _b === void 0 ? void 0 : _b.personalizedFilter) === null || _c === void 0 ? void 0 : _c.parameters;
|
55
|
-
return params.map((param, index) => {
|
56
|
-
var _a;
|
57
|
-
const elemId = 'param_' + index;
|
58
|
-
switch (param.type) {
|
59
|
-
case UserInterface.SEARCH:
|
60
|
-
return h("ez-search", { id: elemId, suppressEmptyOption: true, value: this.getValue(param, index), onEzChange: evt => this.setValue(index, evt.detail), label: param.label, optionLoader: ({ mode, argument }) => this.doSearch(mode, argument, param) });
|
61
|
-
case UserInterface.SWITCH:
|
62
|
-
case UserInterface.CHECKBOX:
|
63
|
-
const mode = UserInterface.SWITCH === param.type ? CheckMode.SWITCH : CheckMode.REGULAR;
|
64
|
-
return h("ez-check", { id: elemId, class: "ez-padding-bottom--medium", mode: mode, value: this.getValue(param, index), label: param.label, onEzChange: evt => this.setValue(index, evt.detail) });
|
65
|
-
case UserInterface.DECIMALNUMBER:
|
66
|
-
case UserInterface.INTEGERNUMBER:
|
67
|
-
return h("ez-number-input", { id: elemId, label: param.label, value: this.getValue(param, index), precision: (_a = param.props) === null || _a === void 0 ? void 0 : _a.precision, onEzChange: evt => this.setValue(index, evt.detail) });
|
68
|
-
case UserInterface.OPTIONSELECTOR:
|
69
|
-
return h("ez-combo-box", { id: elemId, label: param.label, value: this.getValue(param, index), options: param.options, onEzChange: evt => { var _a; return this.setValue(index, (_a = evt.detail) === null || _a === void 0 ? void 0 : _a.value); } });
|
70
|
-
case UserInterface.DATE:
|
71
|
-
return h("ez-date-input", { id: elemId, label: param.label, value: this.getValue(param, index), onEzChange: evt => this.setValue(index, evt.detail) });
|
72
|
-
case UserInterface.DATETIME:
|
73
|
-
return h("ez-date-time-input", { id: elemId, label: param.label, value: this.getValue(param, index), onEzChange: evt => this.setValue(index, evt.detail) });
|
74
|
-
default:
|
75
|
-
return h("ez-text-input", { id: elemId, label: param.label, value: this.getValue(param, index), onEzChange: evt => this.setValue(index, evt.detail) });
|
76
|
-
}
|
77
|
-
});
|
78
|
-
}
|
79
|
-
/**
|
80
|
-
* Exibe o componente snk-filter-personalized
|
81
|
-
*/
|
82
|
-
async show() {
|
83
|
-
const elem = document.querySelector("#param_0");
|
84
|
-
if (elem) {
|
85
|
-
elem["setFocus"]();
|
86
|
-
}
|
87
|
-
}
|
88
|
-
render() {
|
89
|
-
if (!this.config || this.config.type !== FilterItemType.PERSONALIZED) {
|
90
|
-
return undefined;
|
91
|
-
}
|
92
|
-
return (h(Host, null, this.getParamsInterface()));
|
93
|
-
}
|
94
|
-
static get is() { return "snk-filter-personalized"; }
|
95
|
-
static get properties() {
|
96
|
-
return {
|
97
|
-
"config": {
|
98
|
-
"type": "unknown",
|
99
|
-
"mutable": false,
|
100
|
-
"complexType": {
|
101
|
-
"original": "SnkFilterItemConfig",
|
102
|
-
"resolved": "SnkFilterItemConfig",
|
103
|
-
"references": {
|
104
|
-
"SnkFilterItemConfig": {
|
105
|
-
"location": "import",
|
106
|
-
"path": "../snk-filter-item"
|
107
|
-
}
|
108
|
-
}
|
109
|
-
},
|
110
|
-
"required": false,
|
111
|
-
"optional": false,
|
112
|
-
"docs": {
|
113
|
-
"tags": [],
|
114
|
-
"text": "Define as configura\u00E7\u00F5es do componente snk-filter-personalized"
|
115
|
-
}
|
116
|
-
},
|
117
|
-
"value": {
|
118
|
-
"type": "unknown",
|
119
|
-
"mutable": true,
|
120
|
-
"complexType": {
|
121
|
-
"original": "Array<IOption|boolean|string|number|Date>",
|
122
|
-
"resolved": "(string | number | boolean | Date | IOption)[]",
|
123
|
-
"references": {
|
124
|
-
"Array": {
|
125
|
-
"location": "global"
|
126
|
-
},
|
127
|
-
"IOption": {
|
128
|
-
"location": "import",
|
129
|
-
"path": "@sankhyalabs/ezui/dist/types/components/ez-combo-box/ez-combo-box"
|
130
|
-
},
|
131
|
-
"Date": {
|
132
|
-
"location": "global"
|
133
|
-
}
|
134
|
-
}
|
135
|
-
},
|
136
|
-
"required": false,
|
137
|
-
"optional": false,
|
138
|
-
"docs": {
|
139
|
-
"tags": [],
|
140
|
-
"text": "Define o valor do componente snk-filter-personalized"
|
141
|
-
}
|
142
|
-
},
|
143
|
-
"fix": {
|
144
|
-
"type": "unknown",
|
145
|
-
"mutable": false,
|
146
|
-
"complexType": {
|
147
|
-
"original": "()=>void",
|
148
|
-
"resolved": "() => void",
|
149
|
-
"references": {}
|
150
|
-
},
|
151
|
-
"required": false,
|
152
|
-
"optional": false,
|
153
|
-
"docs": {
|
154
|
-
"tags": [],
|
155
|
-
"text": ""
|
156
|
-
}
|
157
|
-
},
|
158
|
-
"unfix": {
|
159
|
-
"type": "unknown",
|
160
|
-
"mutable": false,
|
161
|
-
"complexType": {
|
162
|
-
"original": "()=>void",
|
163
|
-
"resolved": "() => void",
|
164
|
-
"references": {}
|
165
|
-
},
|
166
|
-
"required": false,
|
167
|
-
"optional": false,
|
168
|
-
"docs": {
|
169
|
-
"tags": [],
|
170
|
-
"text": ""
|
171
|
-
}
|
172
|
-
}
|
173
|
-
};
|
174
|
-
}
|
175
|
-
static get events() {
|
176
|
-
return [{
|
177
|
-
"method": "valueChanged",
|
178
|
-
"name": "valueChanged",
|
179
|
-
"bubbles": true,
|
180
|
-
"cancelable": true,
|
181
|
-
"composed": true,
|
182
|
-
"docs": {
|
183
|
-
"tags": [],
|
184
|
-
"text": "Emitido quando o valor do filtro \u00E9 alterado."
|
185
|
-
},
|
186
|
-
"complexType": {
|
187
|
-
"original": "any",
|
188
|
-
"resolved": "any",
|
189
|
-
"references": {}
|
190
|
-
}
|
191
|
-
}];
|
192
|
-
}
|
193
|
-
static get methods() {
|
194
|
-
return {
|
195
|
-
"show": {
|
196
|
-
"complexType": {
|
197
|
-
"signature": "() => Promise<void>",
|
198
|
-
"parameters": [],
|
199
|
-
"references": {
|
200
|
-
"Promise": {
|
201
|
-
"location": "global"
|
202
|
-
}
|
203
|
-
},
|
204
|
-
"return": "Promise<void>"
|
205
|
-
},
|
206
|
-
"docs": {
|
207
|
-
"text": "Exibe o componente snk-filter-personalized",
|
208
|
-
"tags": []
|
209
|
-
}
|
210
|
-
}
|
211
|
-
};
|
212
|
-
}
|
213
|
-
static get elementRef() { return "_element"; }
|
214
|
-
}
|
@@ -1,121 +0,0 @@
|
|
1
|
-
import { ApplicationContext } from '@sankhyalabs/core';
|
2
|
-
import { F as FormConfigFetcher } from './form-config-fetcher-cac8cd96.js';
|
3
|
-
import { R as ResourceFetcher } from './resource-fetcher-02642924.js';
|
4
|
-
import { F as FilterBarConfigFetcher } from './filter-bar-config-fetcher-edc48f4b.js';
|
5
|
-
|
6
|
-
class GridConfigFetcher extends ResourceFetcher {
|
7
|
-
constructor() {
|
8
|
-
super(...arguments);
|
9
|
-
this.GRID_CONFIG_VERSION = "V3:";
|
10
|
-
}
|
11
|
-
getConfig(gridName, resourceID) {
|
12
|
-
const completePath = this.getPath(resourceID, gridName);
|
13
|
-
return new Promise((resolve, reject) => {
|
14
|
-
this.loadResource(completePath)
|
15
|
-
.then(loadedResource => {
|
16
|
-
let config = undefined;
|
17
|
-
if (loadedResource) {
|
18
|
-
config = JSON.parse(loadedResource);
|
19
|
-
}
|
20
|
-
resolve(config);
|
21
|
-
}).catch((error) => {
|
22
|
-
reject(error);
|
23
|
-
});
|
24
|
-
});
|
25
|
-
}
|
26
|
-
saveConfig(config, gridName, resourceID) {
|
27
|
-
const completePath = this.getPath(resourceID, gridName);
|
28
|
-
return new Promise((resolve, reject) => {
|
29
|
-
this.saveResource(config, completePath)
|
30
|
-
.then((resp) => {
|
31
|
-
resolve(JSON.parse(resp.resource));
|
32
|
-
})
|
33
|
-
.catch((error) => {
|
34
|
-
reject(error);
|
35
|
-
});
|
36
|
-
});
|
37
|
-
}
|
38
|
-
getPath(resourceID, name) {
|
39
|
-
if (name) {
|
40
|
-
return `cfg://grid/${this.GRID_CONFIG_VERSION}${resourceID}/${name}`;
|
41
|
-
}
|
42
|
-
return `cfg://grid/${this.GRID_CONFIG_VERSION}${resourceID}`;
|
43
|
-
}
|
44
|
-
}
|
45
|
-
|
46
|
-
const CONFIG_SOURCE = {
|
47
|
-
form: "form",
|
48
|
-
grid: "grid",
|
49
|
-
filterBar: "filterBar"
|
50
|
-
};
|
51
|
-
class ConfigStorage {
|
52
|
-
static async get() {
|
53
|
-
if (!ConfigStorage.instance) {
|
54
|
-
const application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
55
|
-
if (application != undefined) {
|
56
|
-
const configName = application.configName;
|
57
|
-
const resourceID = await application.getResourceID();
|
58
|
-
ConfigStorage.instance = new ConfigStorage();
|
59
|
-
ConfigStorage.resourceID = resourceID;
|
60
|
-
ConfigStorage.instance.loadFilterBarConfig(configName);
|
61
|
-
ConfigStorage.instance.loadFormConfig(configName);
|
62
|
-
ConfigStorage.instance.loadGridConfig(configName);
|
63
|
-
}
|
64
|
-
}
|
65
|
-
return this.instance;
|
66
|
-
}
|
67
|
-
async loadFilterBarConfig(name) {
|
68
|
-
const cacheID = ConfigStorage.buildCacheID(name, CONFIG_SOURCE.filterBar);
|
69
|
-
if (!ConfigStorage.configById.has(cacheID)) {
|
70
|
-
ConfigStorage.configById.set(cacheID, ConfigStorage.filterBarConfigFetcher.getConfig(ConfigStorage.resourceID, name));
|
71
|
-
}
|
72
|
-
return ConfigStorage.configById.get(cacheID);
|
73
|
-
}
|
74
|
-
async loadFormConfig(name) {
|
75
|
-
const cacheID = ConfigStorage.buildCacheID(name, CONFIG_SOURCE.form);
|
76
|
-
if (!ConfigStorage.configById.has(cacheID)) {
|
77
|
-
ConfigStorage.configById.set(cacheID, ConfigStorage.formConfigFetcher.loadFormConfig(name, ConfigStorage.resourceID));
|
78
|
-
}
|
79
|
-
return ConfigStorage.configById.get(cacheID);
|
80
|
-
}
|
81
|
-
async loadGridConfig(name) {
|
82
|
-
const cacheID = ConfigStorage.buildCacheID(name, CONFIG_SOURCE.grid);
|
83
|
-
if (!ConfigStorage.configById.has(cacheID)) {
|
84
|
-
ConfigStorage.configById.set(cacheID, ConfigStorage.gridConfigFetcher.getConfig(name, ConfigStorage.resourceID));
|
85
|
-
}
|
86
|
-
return ConfigStorage.configById.get(cacheID);
|
87
|
-
}
|
88
|
-
static async saveFilterBarConfig(config, name) {
|
89
|
-
const cacheID = this.buildCacheID(name, CONFIG_SOURCE.filterBar);
|
90
|
-
this.configById.delete(cacheID);
|
91
|
-
return this.filterBarConfigFetcher.saveConfig(config, this.resourceID, name);
|
92
|
-
}
|
93
|
-
static async saveFormConfig(config, name) {
|
94
|
-
const cacheID = this.buildCacheID(name, CONFIG_SOURCE.form);
|
95
|
-
this.configById.delete(cacheID);
|
96
|
-
return this.formConfigFetcher.saveConfig(config, name, this.resourceID);
|
97
|
-
}
|
98
|
-
static async saveCardState(config, name) {
|
99
|
-
return this.formConfigFetcher.saveCardState(config, name, this.resourceID);
|
100
|
-
}
|
101
|
-
static async saveGridConfig(config, name) {
|
102
|
-
if (config == undefined) {
|
103
|
-
return;
|
104
|
-
}
|
105
|
-
const cacheID = this.buildCacheID(name, CONFIG_SOURCE.grid);
|
106
|
-
this.configById.delete(cacheID);
|
107
|
-
return this.gridConfigFetcher.saveConfig(config, name, this.resourceID);
|
108
|
-
}
|
109
|
-
static buildCacheID(name, source) {
|
110
|
-
if (name == undefined) {
|
111
|
-
return `req_${source}_${this.resourceID}`;
|
112
|
-
}
|
113
|
-
return `req_${source}_${name}_${this.resourceID}`;
|
114
|
-
}
|
115
|
-
}
|
116
|
-
ConfigStorage.configById = new Map();
|
117
|
-
ConfigStorage.filterBarConfigFetcher = new FilterBarConfigFetcher();
|
118
|
-
ConfigStorage.formConfigFetcher = new FormConfigFetcher();
|
119
|
-
ConfigStorage.gridConfigFetcher = new GridConfigFetcher();
|
120
|
-
|
121
|
-
export { ConfigStorage as C, GridConfigFetcher as G };
|
@@ -1,209 +0,0 @@
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-cfd4bb13.js';
|
2
|
-
import { UserInterface, ApplicationContext } from '@sankhyalabs/core';
|
3
|
-
import { S as SelectedItemType } from './index-620ac460.js';
|
4
|
-
import { ApplicationUtils, CheckMode } from '@sankhyalabs/ezui/dist/collection/utils';
|
5
|
-
import { fieldBuilder } from '@sankhyalabs/ezui/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder';
|
6
|
-
import { c as FilterOperand } from './index-507e19ec.js';
|
7
|
-
import { s as store } from './index-8efbf198.js';
|
8
|
-
|
9
|
-
const FilterOperandDefault = [
|
10
|
-
{ value: FilterOperand.EQUAL, label: "Igual (=)" },
|
11
|
-
{ value: FilterOperand.DIFFERENT, label: "Diferente (<>)" },
|
12
|
-
{ value: FilterOperand.LIKE, label: "Contendo (LIKE)" },
|
13
|
-
{ value: FilterOperand.IN, label: "Contido em (IN)" },
|
14
|
-
{ value: FilterOperand.START_WITH, label: "Iniciado com (%?)" },
|
15
|
-
{ value: FilterOperand.FINISHED_WITH, label: "Terminado com (?%)" },
|
16
|
-
{ value: FilterOperand.NULL, label: "Vazio (NULL)" },
|
17
|
-
{ value: FilterOperand.NOT_NULL, label: "Não Vazio (NOT NULL)" },
|
18
|
-
{ value: FilterOperand.LARGER, label: "Maior (>)" },
|
19
|
-
{ value: FilterOperand.LARGER_EQUAL, label: "Maior ou Igual (>=)" },
|
20
|
-
{ value: FilterOperand.SMALLER, label: "Menor (<)" },
|
21
|
-
{ value: FilterOperand.SMALLER_EQUAL, label: "Menor ou Igual (<=)" }
|
22
|
-
];
|
23
|
-
const FilterOperandTypeTextSearch = [
|
24
|
-
{ value: FilterOperand.EQUAL, label: "Igual (=)" },
|
25
|
-
{ value: FilterOperand.DIFFERENT, label: "Diferente (<>)" },
|
26
|
-
{ value: FilterOperand.LIKE, label: "Contendo (LIKE)" },
|
27
|
-
{ value: FilterOperand.IN, label: "Contido em (IN)" },
|
28
|
-
{ value: FilterOperand.START_WITH, label: "Iniciado com (%?)" },
|
29
|
-
{ value: FilterOperand.FINISHED_WITH, label: "Terminado com (?%)" },
|
30
|
-
{ value: FilterOperand.NULL, label: "Vazio (NULL)" },
|
31
|
-
{ value: FilterOperand.NOT_NULL, label: "Não Vazio (NOT NULL)" }
|
32
|
-
];
|
33
|
-
const FIELD_TYPE_SEARCH_AND_TEXT = [
|
34
|
-
UserInterface.SEARCH,
|
35
|
-
UserInterface.SHORTTEXT,
|
36
|
-
UserInterface.PASSWORD,
|
37
|
-
UserInterface.MASKEDTEXT,
|
38
|
-
UserInterface.LONGTEXT,
|
39
|
-
UserInterface.HTML
|
40
|
-
];
|
41
|
-
|
42
|
-
const snkExpressionItemCss = ".sc-snk-expression-item-h{display:flex;width:100%;--snk-expression-item--background-color:var(--background--xlight, #fff);--snk-expression-item__itens--padding:var(--space--small, 6px);--snk-expression-item__width--input-operator:220px;--snk-expression-item__width--input-value:240px;--snk-expression-item__width--input-value-variable:176px;--snk-expression-item--border-radius:var(--border--radius-medium, 12px);--snk-expression-item--border-color:var(--color--strokes, #DCE0E8);--snk-expression-item--border-style:var(--border--small, 1px solid)}.box.sc-snk-expression-item{width:100%;height:100%;background:var(--snk-expression-item--background-color);margin:var(--space--small, 6px);border:var(--snk-expression-item--border-color) var(--snk-expression-item--border-style);border-radius:var(--snk-expression-item--border-radius)}.box__container.sc-snk-expression-item{display:flex;align-items:center;justify-content:space-between;white-space:nowrap;margin:var(--space--small, 6px)}.box__container--input-filter.sc-snk-expression-item{width:100%}.box__container--input-operator.sc-snk-expression-item{display:flex;width:var(--snk-expression-item__width--input-operator);min-width:var(--snk-expression-item__width--input-operator)}.box__container--input-value.sc-snk-expression-item{display:flex;width:var(--snk-expression-item__width--input-value);min-width:var(--snk-expression-item__width--input-value)}.box__container--input-value-variable.sc-snk-expression-item{display:flex;width:var(--snk-expression-item__width--input-value-variable);min-width:var(--snk-expression-item__width--input-value-variable)}.box__container--button-delete.sc-snk-expression-item{display:flex}.box__container.sc-snk-expression-item>div.sc-snk-expression-item{padding-left:var(--snk-expression-item__itens--padding);padding-right:var(--snk-expression-item__itens--padding)}.box__container--button-delete--icon.sc-snk-expression-item{width:42px;min-width:42px}.box__container--input-value-variable--icon.sc-snk-expression-item{cursor:pointer}";
|
43
|
-
|
44
|
-
const SnkExpressionItem = class {
|
45
|
-
constructor(hostRef) {
|
46
|
-
registerInstance(this, hostRef);
|
47
|
-
this.ezFilterItemChange = createEvent(this, "ezFilterItemChange", 7);
|
48
|
-
this.ezFilterItemRemove = createEvent(this, "ezFilterItemRemove", 7);
|
49
|
-
this.application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
50
|
-
this.filterOperandDefault = FilterOperandDefault;
|
51
|
-
this.filterOperandTypeTextSearch = FilterOperandTypeTextSearch;
|
52
|
-
this._showValueVariable = false;
|
53
|
-
this._fieldSelected = undefined;
|
54
|
-
this._optionNotNull = false;
|
55
|
-
this.expression = undefined;
|
56
|
-
this.canRemove = true;
|
57
|
-
this.messagesBuilder = undefined;
|
58
|
-
}
|
59
|
-
expressionChanged(newValue, oldValue) {
|
60
|
-
if (newValue !== oldValue) {
|
61
|
-
this.ezFilterItemChange.emit(newValue);
|
62
|
-
}
|
63
|
-
}
|
64
|
-
componentWillLoad() {
|
65
|
-
this._dataSourceFetcher = store.get("filterFieldsDataSource");
|
66
|
-
store.onChange('filterFieldsDataSource', () => {
|
67
|
-
this._dataSourceFetcher = store.get("filterFieldsDataSource");
|
68
|
-
});
|
69
|
-
}
|
70
|
-
setValueExpression(key, value) {
|
71
|
-
this.expression[key] = value;
|
72
|
-
this.expressionChanged(this.expression);
|
73
|
-
}
|
74
|
-
getMessage(key, params) {
|
75
|
-
return this.application.messagesBuilder.getMessage(key, params);
|
76
|
-
}
|
77
|
-
handleSelectItem(filterField) {
|
78
|
-
if (filterField.type === SelectedItemType.FIELD) {
|
79
|
-
const field = filterField;
|
80
|
-
this._fieldSelected = field;
|
81
|
-
this.setValueExpression("fieldName", field.name);
|
82
|
-
}
|
83
|
-
}
|
84
|
-
handleFocus() {
|
85
|
-
if (this._elFilterFieldSearch)
|
86
|
-
this._elFilterFieldSearch.show();
|
87
|
-
}
|
88
|
-
handleChangeFilterInput(evt) {
|
89
|
-
this._elFilterFieldSearch.applyFilter(evt.detail);
|
90
|
-
}
|
91
|
-
handleChangeValueVariable(showValueVariable) {
|
92
|
-
this._showValueVariable = showValueVariable;
|
93
|
-
if (this._elFieldDynamic) {
|
94
|
-
this._elFieldDynamic.value = undefined;
|
95
|
-
this._elFieldDynamic.enabled = !showValueVariable;
|
96
|
-
}
|
97
|
-
}
|
98
|
-
openSnkFilterParamConfig() {
|
99
|
-
var _a;
|
100
|
-
(_a = this._elFilterParamConfigRef) === null || _a === void 0 ? void 0 : _a.open(this.expression).then(this.onOpenPromiseReady.bind(this)).catch(error => {
|
101
|
-
console.error(error);
|
102
|
-
});
|
103
|
-
}
|
104
|
-
onOpenPromiseReady(changes) {
|
105
|
-
this.expression = changes;
|
106
|
-
}
|
107
|
-
buildOptionsOperator() {
|
108
|
-
var _a;
|
109
|
-
if (FIELD_TYPE_SEARCH_AND_TEXT.includes((_a = this._fieldSelected) === null || _a === void 0 ? void 0 : _a.userInterface)) {
|
110
|
-
return this.filterOperandTypeTextSearch;
|
111
|
-
}
|
112
|
-
else {
|
113
|
-
return this.filterOperandDefault;
|
114
|
-
}
|
115
|
-
}
|
116
|
-
handleChangeOperator(optionSelected) {
|
117
|
-
this.checkOptionIsNull(optionSelected);
|
118
|
-
this.setValueExpression("operand", optionSelected);
|
119
|
-
}
|
120
|
-
checkOptionIsNull(optionSelected) {
|
121
|
-
if (optionSelected === FilterOperand.NULL || optionSelected === FilterOperand.NOT_NULL) {
|
122
|
-
this._optionNotNull = true;
|
123
|
-
if (this._elFieldDynamic) {
|
124
|
-
this._elFieldDynamic.enabled = false;
|
125
|
-
this._elFieldDynamic.value = undefined;
|
126
|
-
}
|
127
|
-
}
|
128
|
-
else {
|
129
|
-
this._optionNotNull = false;
|
130
|
-
if (this._elFieldDynamic) {
|
131
|
-
this._elFieldDynamic.enabled = this._showValueVariable ? false : true;
|
132
|
-
}
|
133
|
-
}
|
134
|
-
}
|
135
|
-
confirmRemove(evt) {
|
136
|
-
evt.preventDefault();
|
137
|
-
evt.stopPropagation();
|
138
|
-
ApplicationUtils.confirm(this.getMessage("snkPersonalizedFilter.confirm.title"), this.getMessage("snkPersonalizedFilter.confirm.description"))
|
139
|
-
.then((canRemove) => {
|
140
|
-
if (canRemove) {
|
141
|
-
this.ezFilterItemRemove.emit(this.expression);
|
142
|
-
}
|
143
|
-
});
|
144
|
-
}
|
145
|
-
buildFieldByType() {
|
146
|
-
var _a, _b;
|
147
|
-
if (!this._fieldSelected)
|
148
|
-
return;
|
149
|
-
const inputFieldData = (_a = fieldBuilder(this.configureFieldByType())) === null || _a === void 0 ? void 0 : _a.$children$.shift();
|
150
|
-
if (this._optionNotNull && inputFieldData || ((_b = this._elValueVariable) === null || _b === void 0 ? void 0 : _b.value) && inputFieldData) {
|
151
|
-
inputFieldData.$attrs$.enabled = false;
|
152
|
-
}
|
153
|
-
return h(inputFieldData.$tag$, Object.assign(Object.assign({}, inputFieldData.$attrs$), { ref: (el) => {
|
154
|
-
this._elFieldDynamic = el;
|
155
|
-
} }));
|
156
|
-
}
|
157
|
-
configureFieldByType() {
|
158
|
-
const field = {
|
159
|
-
userInterface: this._fieldSelected.userInterface,
|
160
|
-
name: this._fieldSelected.name,
|
161
|
-
label: this._fieldSelected.label,
|
162
|
-
canShowError: false
|
163
|
-
};
|
164
|
-
switch (field.userInterface) {
|
165
|
-
case UserInterface.OPTIONSELECTOR:
|
166
|
-
field.props = {
|
167
|
-
options: this._fieldSelected.properties.map(option => ({
|
168
|
-
value: option.value,
|
169
|
-
label: option.name,
|
170
|
-
})),
|
171
|
-
};
|
172
|
-
break;
|
173
|
-
case UserInterface.LONGTEXT:
|
174
|
-
field.rows = 1;
|
175
|
-
break;
|
176
|
-
case UserInterface.SEARCH:
|
177
|
-
field.optionLoader = searchArgument => this.setCriteriaSearch(searchArgument, this.application);
|
178
|
-
break;
|
179
|
-
}
|
180
|
-
return field;
|
181
|
-
}
|
182
|
-
setCriteriaSearch({ mode, argument }, application) {
|
183
|
-
if (application == undefined)
|
184
|
-
return;
|
185
|
-
const searchOptions = {
|
186
|
-
showInactives: false
|
187
|
-
};
|
188
|
-
const options = {
|
189
|
-
entity: this._fieldSelected.properties.ENTITYNAME,
|
190
|
-
searchOptions: searchOptions,
|
191
|
-
entityDescription: this._fieldSelected.label
|
192
|
-
};
|
193
|
-
return application.executePreparedSearch(mode, argument, options);
|
194
|
-
}
|
195
|
-
render() {
|
196
|
-
var _a;
|
197
|
-
return (h(Host, null, h("div", { class: "box" }, h("div", { class: "box__container" }, h("div", { class: "box__container--input-filter" }, h("ez-filter-input", { value: (_a = this._fieldSelected) === null || _a === void 0 ? void 0 : _a.path, label: this.getMessage("snkPersonalizedFilter.info.labelSearchField"), canShowError: false, onEzChange: (evt) => this.handleChangeFilterInput(evt), onFocus: () => this.handleFocus() }), h("snk-filter-field-search", { ref: ref => this._elFilterFieldSearch = ref, searchable: false, onEzSelectFilterItem: (ev) => this.handleSelectItem(ev.detail), fieldsDataSource: this._dataSourceFetcher })), h("div", { class: "box__container--input-operator" }, h("ez-combo-box", { label: this.getMessage("snkPersonalizedFilter.info.labelOperator"), canShowError: false, options: this.buildOptionsOperator(), onEzChange: (evt) => this.handleChangeOperator(evt.detail.value), suppressEmptyOption: true })), h("div", { class: "box__container--input-value" }, !this._fieldSelected ?
|
198
|
-
h("ez-number-input", { label: "Valor", canShowError: false, enabled: (!this._showValueVariable && !this._optionNotNull) }) :
|
199
|
-
this.buildFieldByType()), h("div", { class: "box__container--input-value-variable", title: this.getMessage("snkPersonalizedFilter.info.titleTooltip") }, !this._optionNotNull &&
|
200
|
-
h("ez-check", { ref: ref => this._elValueVariable = ref, label: this.getMessage("snkPersonalizedFilter.info.labelValueVarible"), mode: CheckMode.SWITCH, onEzChange: (evt) => this.handleChangeValueVariable(evt.detail) }), (this._showValueVariable && !this._optionNotNull) &&
|
201
|
-
h("ez-icon", { class: "box__container--input-value-variable--icon", size: "large", iconName: "settings-inverted", onClick: () => this.openSnkFilterParamConfig() }), h("snk-filter-param-config", { ref: (el) => this._elFilterParamConfigRef = el, messagesBuilder: this.messagesBuilder })), h("div", { class: "box__container--button-delete" }, h("div", { class: "box__container--button-delete--icon" }, this.canRemove && h("ez-button", { mode: "icon", iconName: "delete", onClick: (evt) => this.confirmRemove(evt) })))))));
|
202
|
-
}
|
203
|
-
static get watchers() { return {
|
204
|
-
"expression": ["expressionChanged"]
|
205
|
-
}; }
|
206
|
-
};
|
207
|
-
SnkExpressionItem.style = snkExpressionItemCss;
|
208
|
-
|
209
|
-
export { SnkExpressionItem as snk_expression_item };
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as t,c as s,h as i,g as e}from"./p-b9667fbe.js";import{ElementIDUtils as r,ApplicationContext as a,DataUnit as n,StringUtils as o,SortMode as h,DataType as l,ChangeOperation as d,ObjectUtils as m,UserInterface as c}from"@sankhyalabs/core";import{c as u,S as p}from"./p-17375123.js";import{T as b}from"./p-19692f92.js";import"./p-41d92871.js";import"./p-11028eba.js";import{P as g}from"./p-4c2015a9.js";import{T as k}from"./p-384c4a6b.js";import"./p-6a02e236.js";import"./p-112455b1.js";const f=class{constructor(i){t(this,i),this.clickBreadcrumbItem=s(this,"clickBreadcrumbItem",3),this.exit=s(this,"exit",3),this.label=void 0,this.breadcrumbItens=void 0,this.messagesBuilder=void 0}getMessage(t,s){var i;return this.messagesBuilder?this.messagesBuilder.getMessage(t,s):(null===(i=this._application)||void 0===i?void 0:i.messagesBuilder)?this._application.messagesBuilder.getMessage(t,s):void 0}componentDidLoad(){this._element&&(r.addIDInfo(this._element),this._application=a.getContextValue("__SNK__APPLICATION__"))}render(){return i("div",{class:"simple-bar__container ez-margin-vertical--medium ez-padding--extra-small"},i("div",{class:"simple-bar__left-slot"},i("ez-button",{class:"ez-padding-right--medium",title:this.getMessage("snkSimpleBar.backTitle"),mode:"icon",iconName:"arrow_back",size:"medium",onClick:()=>this.exit.emit()}),i("div",{class:"simple-bar__column"},i("h1",{class:"ez-title ez-title--primary ez-title--extra-large"},this.label),i("ez-breadcrumb",{items:this.breadcrumbItens,onSelectedItem:({detail:t})=>this.clickBreadcrumbItem.emit(t)}))),i("div",{class:"simple-bar__right-slot"},i("slot",{name:"rightSlot"})))}get _element(){return e(this)}};f.style=".sc-snk-simple-bar-h{display:flex;height:100%;width:100%}.simple-bar__container.sc-snk-simple-bar{flex:1;display:flex;align-items:stretch;gap:var(--space--small)}.simple-bar__left-slot.sc-snk-simple-bar{min-width:280px;flex:1;display:flex;align-items:center}.simple-bar__right-slot.sc-snk-simple-bar{flex:1;display:flex;align-items:center;justify-content:flex-end}.simple-bar__column.sc-snk-simple-bar{flex:1;display:flex;flex-direction:column}";class v{constructor(t,s){this.records=s||[],this.metadata=t,this._dataUnit=new n("InMemoryDataUnit"),this._dataUnit.metadataLoader=()=>this.metadaLoader(),this._dataUnit.dataLoader=(t,s)=>this.dataLoader(t,s),this._dataUnit.saveLoader=(t,s)=>this.saveLoader(t,s),this._dataUnit.removeLoader=(t,s)=>this.removeLoader(t,s),this.dataUnit.loadMetadata().then((()=>this.dataUnit.loadData()))}get dataUnit(){return this._dataUnit}get records(){return this._records}set records(t){this._records=null==t?void 0:t.map((t=>(t.__record__id__||(t.__record__id__=this.generateUniqueId()),t))),this._dataUnit&&(this._dataUnit.records=[...this._records])}get metadata(){return this._metadata}set metadata(t){this._metadata=t,this._dataUnit&&(this._dataUnit.metadata=this._metadata)}generateUniqueId(){return o.generateUUID()}metadaLoader(){return Promise.resolve(this._metadata)}dataLoader(t,s){let i=[...this._records];return s.sort&&s.sort.forEach((t=>{i=i.sort(((s,i)=>{const e=s[t.field],r=i[t.field];return this.getSortFn(t.dataType)(e,r)*(t.mode==h.ASC?1:-1)}))})),Promise.resolve({records:i})}getSortFn(t){switch(t){case l.NUMBER:return this.sortNumber;case l.DATE:return this.sortDate;case l.OBJECT:return this.sortObject;default:return o.compare}}sortObject(t,s){return o.compare(t.label,s.label)}sortNumber(t,s){return t-s}sortDate(t,s){let i=t.getTime(),e=s.getTime();return i===e?0:i<e?-1:1}saveLoader(t,s){return new Promise((t=>{let i=[];s.forEach((t=>{let{record:s,updatingFields:e,operation:r}=t,a=!1;r!==d.INSERT&&r!==d.COPY||(s.__old__id__=s.__record__id__,s.__record__id__=this.generateUniqueId(),a=!0);const n=Object.assign(Object.assign({},s),e);if(a)this.records.push(n);else{const t=this.records.findIndex((t=>t.__record__id__==n.__record__id__));this.records[t]=n}i.push(n)})),t(i)}))}removeLoader(t,s){return new Promise((t=>{this._records=this._records.filter((t=>!s.includes(t.__record__id__))),t(s)}))}}const _=class{constructor(i){t(this,i),this.dataStateChange=s(this,"dataStateChange",3),this.dataUnitReady=s(this,"dataUnitReady",3),this.actionClick=s(this,"actionClick",7),this.REGULAR_DEFAULT_BTNS=["INSERT","REFRESH","PREVIOUS","NEXT","DIVIDER"],this.REGULAR_SELECTED_BTNS=["INSERT","REFRESH","PREVIOUS","NEXT","DIVIDER","CLONE","REMOVE","DIVIDER"],this._taskbarProcessor=new k({"snkSimpleCrudTaskbar.form_regular":this.resolveInMemoryBtns(this.REGULAR_DEFAULT_BTNS).concat(b.GRID_MODE),"snkSimpleCrudTaskbar.grid_regular":this.resolveInMemoryBtns(this.REGULAR_DEFAULT_BTNS).concat(b.FORM_MODE),"snkSimpleCrudTaskbar.form_selected":this.resolveInMemoryBtns(this.REGULAR_SELECTED_BTNS).concat(b.GRID_MODE),"snkSimpleCrudTaskbar.grid_selected":this.resolveInMemoryBtns(this.REGULAR_SELECTED_BTNS).concat(b.FORM_MODE),"snkSimpleCrudTaskbar.finish_edition":["CANCEL","SAVE"]}),this._currentViewMode=u.GRID,this._config=void 0,this.dataState=void 0,this.dataUnit=void 0,this.mode=p.SERVER,this.gridConfig=void 0,this.formConfig=void 0,this.useCancelConfirm=!0,this.taskbarManager=void 0,this.messagesBuilder=void 0}resolveInMemoryBtns(t){const s=[...t];return this.mode===p.IN_MEMORY&&s.splice(1,1),s}async goToView(t){this._currentViewMode=t,this._viewStack&&this._viewStack.show(t)}actionClickListener(t){const s=t.detail;s===b.GRID_MODE?this.goToView(u.GRID):s===b.FORM_MODE&&this.goToView(u.FORM),t.stopPropagation()}onModeChange(){this.mode==p.IN_MEMORY&&this.initInMemoryDataUnit()}observeDataState(t,s){m.objectToString(s)!=m.objectToString(t)&&this.dataStateChange.emit(t)}componentWillRender(){this._taskbarProcessor.process(this.getTaskBarId(),this.taskbarManager,this.dataState,this.getTaskBarDisabledButtons())}componentWillLoad(){this.processMetadata(),this.onModeChange()}getTaskBarId(){var t,s,i;return(null===(t=this.dataState)||void 0===t?void 0:t.isDirty)?"snkSimpleCrudTaskbar.finish_edition":(null===(s=this.dataState)||void 0===s?void 0:s.selectionInfo)&&!this.dataState.selectionInfo.isAllRecords()&&(null===(i=this.dataState.selectionInfo.records)||void 0===i?void 0:i.length)>0?this._currentViewMode===u.GRID?"snkSimpleCrudTaskbar.grid_selected":"snkSimpleCrudTaskbar.form_selected":this._currentViewMode===u.GRID?"snkSimpleCrudTaskbar.grid_regular":"snkSimpleCrudTaskbar.form_regular"}initInMemoryDataUnit(){this._inMemoryLoader=new v(this._metadata),this.dataUnit=this._inMemoryLoader.dataUnit,this.dataUnitReady.emit(this.dataUnit)}setMetadata(t){return this._inMemoryLoader?this._inMemoryLoader.metadata=t:this.dataUnit&&(this.dataUnit.metadata=t),Promise.resolve()}setRecords(t){return this._inMemoryLoader?this._inMemoryLoader.records=t:this.dataUnit&&(this.dataUnit.records=t),Promise.resolve()}getRecords(){return Promise.resolve(this.dataUnit.records)}processMetadata(){const t=this._element.querySelectorAll("snk-field-metadata"),s=[],i={fields:[],emptyConfig:!1};t.forEach((t=>{const e={name:t.getAttribute("name")||t.getAttribute("label"),label:t.getAttribute("label"),dataType:l[t.getAttribute("dataType")]||l.TEXT,userInterface:c[t.getAttribute("userInterface")]||c.SHORTTEXT,readOnly:"true"==t.getAttribute("readOnly"),required:"true"==t.getAttribute("required"),tab:t.getAttribute("tab")||void 0,visible:"false"!=t.getAttribute("visible")};i.fields.push({name:e.name,tab:e.tab,visible:e.visible}),s.push(e)})),s.length>0&&(this.formConfig||(this.formConfig=i),this._metadata={name:"SimpleCrud",label:"SimpleCrud",fields:s})}onDataStateChange(t){this.dataState=Object.assign({},t.detail)}getTaskBarDisabledButtons(){var t,s;const i=[];return(null===(t=this.dataState)||void 0===t?void 0:t.hasNext)||i.push(b.NEXT),(null===(s=this.dataState)||void 0===s?void 0:s.hasPrevious)||i.push(b.PREVIOUS),i}render(){var t;return i("snk-data-unit",{class:"simple-crud__container",dataUnit:this.dataUnit,useCancelConfirm:this.useCancelConfirm,onDataStateChange:t=>this.onDataStateChange(t),onInsertionMode:()=>this.goToView(u.FORM),onDataUnitReady:t=>this.dataUnitReady.emit(t.detail),onMessagesBuilderUpdated:t=>this.messagesBuilder=t.detail},i("header",null,i("slot",{name:"snkSimpleCrudHeader"})),i("section",{class:"ez-flex ez-box ez-box--shadow"},i("snk-taskbar",{class:"simple-crud__taskbar ez-box ez-box--shadow ez-padding--medium",dataUnit:this.dataUnit,primaryButton:(null===(t=this.dataState)||void 0===t?void 0:t.isDirty)?"SAVE":"INSERT","data-element-id":"grid_left",messagesBuilder:this.messagesBuilder,buttons:this._taskbarProcessor.buttons,disabledButtons:this._taskbarProcessor.disabledButtons,customButtons:this._taskbarProcessor.customButtons,slot:"leftButtons",presentationMode:g.SECONDARY}),i("ez-view-stack",{class:"ez-flex ez-flex--column",ref:t=>this._viewStack=t,"data-element-id":"simple-crud"},i("stack-item",null,i("ez-grid",{dataUnit:this.dataUnit,onEzDoubleClick:()=>this.goToView(u.FORM),config:this.gridConfig,"no-header":!0},i("div",{slot:"footer"},i("slot",{name:"snkSimpleCrudFooter"})))),i("stack-item",null,i("ez-form",{dataUnit:this.dataUnit,config:this.formConfig})))))}get _element(){return e(this)}static get watchers(){return{mode:["onModeChange"],dataState:["observeDataState"]}}};_.style=".sc-snk-simple-crud-h{display:flex;height:100%;width:100%}.simple-crud__container.sc-snk-simple-crud{display:grid;grid-template-rows:auto;row-gap:12px;height:100%;width:100%}.simple-crud__taskbar.sc-snk-simple-crud{z-index:var(--more-visible, 2);margin-bottom:var(--space--medium)}ez-grid.sc-snk-simple-crud{--ez-grid__container--shadow:none;min-height:300px}ez-form.sc-snk-simple-crud{min-height:300px}";export{f as snk_simple_bar,_ as snk_simple_crud}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as i,c as t,h as s,H as l}from"./p-b9667fbe.js";import{ApplicationContext as e}from"@sankhyalabs/core";const o=class{constructor(s){i(this,s),this.valueChanged=t(this,"valueChanged",7),this.saveConfig=t(this,"saveConfig",7),this._searchValue=void 0,this._ezListSource=[],this.config=void 0,this.rightListSlotBuilder=void 0,this.maxHeightList=""}async reloadList(){this.loadListSource(),this.saveConfig.emit(this.config)}observeConfig(){var i,t;null===(t=null===(i=this._searchElement)||void 0===i?void 0:i.clearValue)||void 0===t||t.call(i)}ezListChangeListener(i){var t,s;null===(t=this.getListConfigValue(this.config))||void 0===t||t.forEach((t=>{var s,l;t&&t.id===(null===(s=i.detail)||void 0===s?void 0:s.id)&&(t.check=null===(l=i.detail)||void 0===l?void 0:l.check)})),this.saveConfig.emit(this.config),this.valueChanged.emit(null===(s=this.config)||void 0===s?void 0:s.value)}loadListSource(){var i;this._ezListSource=[],null===(i=this.getListConfigValue(this.config))||void 0===i||i.forEach((i=>{i&&this._ezListSource.push({label:`${i.id} - ${i.label}`,check:i.check,id:i.id})}))}componentDidLoad(){var i,t,s,l,o;let n=this.getListConfigValue(this.config),a=[];Array.isArray(n)?a=n:a.push(null===(t=null===(i=this.config)||void 0===i?void 0:i.value)||void 0===t?void 0:t.members),this.config.value=a,this._entityName=null===(o=null===(l=null===(s=this.config)||void 0===s?void 0:s.props)||void 0===l?void 0:l.searchContext)||void 0===o?void 0:o.entity,this._application=e.getContextValue("__SNK__APPLICATION__"),this.loadListSource()}optionLoader(i){var t,s,l,e;const{mode:o,argument:n}=i;if(void 0===this._application)return;const a=null===(l=null===(s=null===(t=this.config)||void 0===t?void 0:t.props)||void 0===s?void 0:s.searchContext)||void 0===l?void 0:l.searchOptions,v={entityDescription:null===(e=this.config)||void 0===e?void 0:e.label,entity:this._entityName,searchOptions:a};return this._application.executePreparedSearch(o,n,v)}onEzSearchChange(i){var t,s,l,e;null!=i.detail&&void 0===(null===(t=this.getListConfigValue(this.config))||void 0===t?void 0:t.find((t=>{var s;return(null==t?void 0:t.id)==(null===(s=i.detail)||void 0===s?void 0:s.value)})))&&(this.config=Object.assign(Object.assign({},this.config),{value:[...null!==(l=null===(s=this.config)||void 0===s?void 0:s.value)&&void 0!==l?l:[],{id:i.detail.value,check:!0,label:i.detail.label}]}),this.loadListSource(),this.saveConfig.emit(this.config),this.valueChanged.emit(null===(e=this.config)||void 0===e?void 0:e.value))}getMessage(i,t){var s;return null===(s=this._application)||void 0===s?void 0:s.messagesBuilder.getMessage(i,t)}getListConfigValue(i){var t,s,l,e;return null!==(e=null!==(s=null===(t=i.value)||void 0===t?void 0:t.elements)&&void 0!==s?s:null===(l=null==i?void 0:i.value)||void 0===l?void 0:l.members)&&void 0!==e?e:null==i?void 0:i.value}render(){var i;return s(l,null,s("ez-search",{ref:i=>this._searchElement=i,optionLoader:i=>this.optionLoader(i),value:this._searchValue,label:null===(i=this.config)||void 0===i?void 0:i.label,onEzChange:i=>this.onEzSearchChange(i)}),s("label",{class:"label"},this.getMessage("snkEntityList.selected")),s("div",{style:this.maxHeightList?{"max-height":this.maxHeightList}:{},class:{"snk-entity-list--overflow":!!this.maxHeightList}},s("ez-list",{ref:i=>this._ezList=i,id:"snkEntityList",listMode:"check",dataSource:this._ezListSource,hoverFeedback:!0,itemSlotBuilder:this.rightListSlotBuilder,onEzCheckChange:i=>this.ezListChangeListener(i)})))}static get watchers(){return{config:["observeConfig"]}}};o.style=".sc-snk-entity-list-h{--snk-entity-list--label--font-size:var(--text--medium, 14px);--snk-entity-list--label--font-family:var(--font-pattern, Arial);--snk-entity-list--label--color:var(--title--primary, #000);--snk-entity-list--label--disabled--color:var(--text--disable, #AFB6C0)}.label.sc-snk-entity-list{flex-shrink:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--snk-entity-list--label--color);font-size:var(--snk-entity-list--label--font-size);font-family:var(--snk-entity-list--label--font-family);cursor:default;padding-left:var(--space--small);padding-bottom:var(--space--extra-small)}.snk-entity-list--overflow.sc-snk-entity-list{overflow:auto}.snk-entity-list--overflow.sc-snk-entity-list::-webkit-scrollbar{width:var(--space--small);min-width:var(--space--small);max-width:var(--space--small)}";export{o as snk_entity_list}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as e,c as i,h as s,H as t}from"./p-b9667fbe.js";import{UserInterface as n,ApplicationContext as a}from"@sankhyalabs/core";import{S as o}from"./p-f4184ce7.js";import{ApplicationUtils as r,CheckMode as l}from"@sankhyalabs/ezui/dist/collection/utils";import{fieldBuilder as h}from"@sankhyalabs/ezui/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder";import{c as d}from"./p-4c2015a9.js";import{s as c}from"./p-6a02e236.js";const p=[{value:d.EQUAL,label:"Igual (=)"},{value:d.DIFFERENT,label:"Diferente (<>)"},{value:d.LIKE,label:"Contendo (LIKE)"},{value:d.IN,label:"Contido em (IN)"},{value:d.START_WITH,label:"Iniciado com (%?)"},{value:d.FINISHED_WITH,label:"Terminado com (?%)"},{value:d.NULL,label:"Vazio (NULL)"},{value:d.NOT_NULL,label:"Não Vazio (NOT NULL)"},{value:d.LARGER,label:"Maior (>)"},{value:d.LARGER_EQUAL,label:"Maior ou Igual (>=)"},{value:d.SMALLER,label:"Menor (<)"},{value:d.SMALLER_EQUAL,label:"Menor ou Igual (<=)"}],u=[{value:d.EQUAL,label:"Igual (=)"},{value:d.DIFFERENT,label:"Diferente (<>)"},{value:d.LIKE,label:"Contendo (LIKE)"},{value:d.IN,label:"Contido em (IN)"},{value:d.START_WITH,label:"Iniciado com (%?)"},{value:d.FINISHED_WITH,label:"Terminado com (?%)"},{value:d.NULL,label:"Vazio (NULL)"},{value:d.NOT_NULL,label:"Não Vazio (NOT NULL)"}],m=[n.SEARCH,n.SHORTTEXT,n.PASSWORD,n.MASKEDTEXT,n.LONGTEXT,n.HTML],b=class{constructor(s){e(this,s),this.ezFilterItemChange=i(this,"ezFilterItemChange",7),this.ezFilterItemRemove=i(this,"ezFilterItemRemove",7),this.application=a.getContextValue("__SNK__APPLICATION__"),this.filterOperandDefault=p,this.filterOperandTypeTextSearch=u,this._showValueVariable=!1,this._fieldSelected=void 0,this._optionNotNull=!1,this.expression=void 0,this.canRemove=!0,this.messagesBuilder=void 0}expressionChanged(e,i){e!==i&&this.ezFilterItemChange.emit(e)}componentWillLoad(){this._dataSourceFetcher=c.get("filterFieldsDataSource"),c.onChange("filterFieldsDataSource",(()=>{this._dataSourceFetcher=c.get("filterFieldsDataSource")}))}setValueExpression(e,i){this.expression[e]=i,this.expressionChanged(this.expression)}getMessage(e,i){return this.application.messagesBuilder.getMessage(e,i)}handleSelectItem(e){if(e.type===o.FIELD){const i=e;this._fieldSelected=i,this.setValueExpression("fieldName",i.name)}}handleFocus(){this._elFilterFieldSearch&&this._elFilterFieldSearch.show()}handleChangeFilterInput(e){this._elFilterFieldSearch.applyFilter(e.detail)}handleChangeValueVariable(e){this._showValueVariable=e,this._elFieldDynamic&&(this._elFieldDynamic.value=void 0,this._elFieldDynamic.enabled=!e)}openSnkFilterParamConfig(){var e;null===(e=this._elFilterParamConfigRef)||void 0===e||e.open(this.expression).then(this.onOpenPromiseReady.bind(this)).catch((e=>{console.error(e)}))}onOpenPromiseReady(e){this.expression=e}buildOptionsOperator(){var e;return m.includes(null===(e=this._fieldSelected)||void 0===e?void 0:e.userInterface)?this.filterOperandTypeTextSearch:this.filterOperandDefault}handleChangeOperator(e){this.checkOptionIsNull(e),this.setValueExpression("operand",e)}checkOptionIsNull(e){e===d.NULL||e===d.NOT_NULL?(this._optionNotNull=!0,this._elFieldDynamic&&(this._elFieldDynamic.enabled=!1,this._elFieldDynamic.value=void 0)):(this._optionNotNull=!1,this._elFieldDynamic&&(this._elFieldDynamic.enabled=!this._showValueVariable))}confirmRemove(e){e.preventDefault(),e.stopPropagation(),r.confirm(this.getMessage("snkPersonalizedFilter.confirm.title"),this.getMessage("snkPersonalizedFilter.confirm.description")).then((e=>{e&&this.ezFilterItemRemove.emit(this.expression)}))}buildFieldByType(){var e,i;if(!this._fieldSelected)return;const t=null===(e=h(this.configureFieldByType()))||void 0===e?void 0:e.i.shift();return(this._optionNotNull&&t||(null===(i=this._elValueVariable)||void 0===i?void 0:i.value)&&t)&&(t.t.enabled=!1),s(t.o,Object.assign(Object.assign({},t.t),{ref:e=>{this._elFieldDynamic=e}}))}configureFieldByType(){const e={userInterface:this._fieldSelected.userInterface,name:this._fieldSelected.name,label:this._fieldSelected.label,canShowError:!1};switch(e.userInterface){case n.OPTIONSELECTOR:e.props={options:this._fieldSelected.properties.map((e=>({value:e.value,label:e.name})))};break;case n.LONGTEXT:e.rows=1;break;case n.SEARCH:e.optionLoader=e=>this.setCriteriaSearch(e,this.application)}return e}setCriteriaSearch({mode:e,argument:i},s){if(null!=s)return s.executePreparedSearch(e,i,{entity:this._fieldSelected.properties.ENTITYNAME,searchOptions:{showInactives:!1},entityDescription:this._fieldSelected.label})}render(){var e;return s(t,null,s("div",{class:"box"},s("div",{class:"box__container"},s("div",{class:"box__container--input-filter"},s("ez-filter-input",{value:null===(e=this._fieldSelected)||void 0===e?void 0:e.path,label:this.getMessage("snkPersonalizedFilter.info.labelSearchField"),canShowError:!1,onEzChange:e=>this.handleChangeFilterInput(e),onFocus:()=>this.handleFocus()}),s("snk-filter-field-search",{ref:e=>this._elFilterFieldSearch=e,searchable:!1,onEzSelectFilterItem:e=>this.handleSelectItem(e.detail),fieldsDataSource:this._dataSourceFetcher})),s("div",{class:"box__container--input-operator"},s("ez-combo-box",{label:this.getMessage("snkPersonalizedFilter.info.labelOperator"),canShowError:!1,options:this.buildOptionsOperator(),onEzChange:e=>this.handleChangeOperator(e.detail.value),suppressEmptyOption:!0})),s("div",{class:"box__container--input-value"},this._fieldSelected?this.buildFieldByType():s("ez-number-input",{label:"Valor",canShowError:!1,enabled:!this._showValueVariable&&!this._optionNotNull})),s("div",{class:"box__container--input-value-variable",title:this.getMessage("snkPersonalizedFilter.info.titleTooltip")},!this._optionNotNull&&s("ez-check",{ref:e=>this._elValueVariable=e,label:this.getMessage("snkPersonalizedFilter.info.labelValueVarible"),mode:l.SWITCH,onEzChange:e=>this.handleChangeValueVariable(e.detail)}),this._showValueVariable&&!this._optionNotNull&&s("ez-icon",{class:"box__container--input-value-variable--icon",size:"large",iconName:"settings-inverted",onClick:()=>this.openSnkFilterParamConfig()}),s("snk-filter-param-config",{ref:e=>this._elFilterParamConfigRef=e,messagesBuilder:this.messagesBuilder})),s("div",{class:"box__container--button-delete"},s("div",{class:"box__container--button-delete--icon"},this.canRemove&&s("ez-button",{mode:"icon",iconName:"delete",onClick:e=>this.confirmRemove(e)}))))))}static get watchers(){return{expression:["expressionChanged"]}}};b.style=".sc-snk-expression-item-h{display:flex;width:100%;--snk-expression-item--background-color:var(--background--xlight, #fff);--snk-expression-item__itens--padding:var(--space--small, 6px);--snk-expression-item__width--input-operator:220px;--snk-expression-item__width--input-value:240px;--snk-expression-item__width--input-value-variable:176px;--snk-expression-item--border-radius:var(--border--radius-medium, 12px);--snk-expression-item--border-color:var(--color--strokes, #DCE0E8);--snk-expression-item--border-style:var(--border--small, 1px solid)}.box.sc-snk-expression-item{width:100%;height:100%;background:var(--snk-expression-item--background-color);margin:var(--space--small, 6px);border:var(--snk-expression-item--border-color) var(--snk-expression-item--border-style);border-radius:var(--snk-expression-item--border-radius)}.box__container.sc-snk-expression-item{display:flex;align-items:center;justify-content:space-between;white-space:nowrap;margin:var(--space--small, 6px)}.box__container--input-filter.sc-snk-expression-item{width:100%}.box__container--input-operator.sc-snk-expression-item{display:flex;width:var(--snk-expression-item__width--input-operator);min-width:var(--snk-expression-item__width--input-operator)}.box__container--input-value.sc-snk-expression-item{display:flex;width:var(--snk-expression-item__width--input-value);min-width:var(--snk-expression-item__width--input-value)}.box__container--input-value-variable.sc-snk-expression-item{display:flex;width:var(--snk-expression-item__width--input-value-variable);min-width:var(--snk-expression-item__width--input-value-variable)}.box__container--button-delete.sc-snk-expression-item{display:flex}.box__container.sc-snk-expression-item>div.sc-snk-expression-item{padding-left:var(--snk-expression-item__itens--padding);padding-right:var(--snk-expression-item__itens--padding)}.box__container--button-delete--icon.sc-snk-expression-item{width:42px;min-width:42px}.box__container--input-value-variable--icon.sc-snk-expression-item{cursor:pointer}";export{b as snk_expression_item}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as t,c as i,h as e,F as s,H as l,g as r}from"./p-b9667fbe.js";import{ApplicationUtils as n}from"@sankhyalabs/ezui/dist/collection/utils";import{F as o}from"./p-584d7212.js";import{ApplicationContext as a,ElementIDUtils as h,DataType as c}from"@sankhyalabs/core";import{F as d}from"./p-6c2c71ca.js";import"./p-79f78e10.js";import"./p-41d92871.js";import"./p-112455b1.js";const u=class{constructor(e){t(this,e),this.filterChange=i(this,"filterChange",7),this.config=void 0,this.getMessage=void 0}async show(){var t,i;null===(i=null===(t=this._editor)||void 0===t?void 0:t.show)||void 0===i||i.call(t)}observeConfig(){var t,i;null===(i=null===(t=this._editor)||void 0===t?void 0:t.reloadList)||void 0===i||i.call(t)}componentDidLoad(){if(this._element){this._application=a.getContextValue("__SNK__APPLICATION__"),h.addIDInfo(this._element);const t=this._element.getAttribute(h.DATA_ELEMENT_ID_ATTRIBUTE_NAME);this._idContentEditor=`${t}_${this.config.id}`}}changeConfig(t){this.filterChange.emit(t)}getContentEditor(){switch(this.config.type){case o.BINARY_SELECT:return"snk-filter-binary-select";case o.MULTI_SELECT:return"snk-filter-multi-select";case o.PERIOD:return"snk-filter-period";case o.SEARCH:return"snk-filter-search";case o.NUMBER:return"snk-filter-number";case o.PERSONALIZED:return"snk-filter-personalized";case o.MULTI_LIST:return"snk-entity-list"}return"snk-filter-text"}removeItem(){this.changeConfig(Object.assign(Object.assign({},this.config),{visible:!1,fixed:!1,value:void 0}))}getPopUpHeaderButtons(){return e(s,null,!this.config.removalBlocked&&this.buildIcon(this.getMessage("snkFilterBar.removeFilter"),"delete",(()=>this.removeItem())),!this.config.hardFixed&&this.buildIcon(this.getMessage(this.config.fixed?"snkFilterBar.unpinFilter":"snkFilterBar.pinFilter"),this.config.fixed?"un-pin":"push-pin",(()=>this.changeConfig(Object.assign(Object.assign({},this.config),{fixed:!this.config.fixed})))))}buildIcon(t,i,s){return e("button",{onClick:()=>s(),class:"sc-snk-filter-bar snk-filter-item__editor-header-button",ref:i=>i&&this.buildIdButton(i,t)},e("ez-icon",Object.assign({title:t,iconName:i},{[h.DATA_ELEMENT_ID_ATTRIBUTE_NAME]:`${h.getInternalIDInfo(`_${t}`)}`})))}buildIdButton(t,i){if(!t)return;const e={id:i};t.removeAttribute(h.DATA_ELEMENT_ID_ATTRIBUTE_NAME),h.addIDInfoIfNotExists(t,"button",e)}getNormalizedValue(t,i){return t.reduce(((t,i,e)=>(i.dataType!==c.BOOLEAN||null!=t&&null!=t[e]||((t=t||[])[e]=!1),t)),i)}apply(){var t;let i=this._editor.value,e=!0;if(this.config.type===o.PERSONALIZED){const s=(null===(t=this.config.props.personalizedFilter)||void 0===t?void 0:t.parameters)||[];i=this.getNormalizedValue(s,i);const l=s.length;0===l?i=[]:e=this.validateAllFilled(l,i)}e&&this.changeConfig(Object.assign(Object.assign({},this.config),{value:i}))}validateAllFilled(t,i){let e=!0;return null!=i&&t>1&&(t>i.length?e=!1:i.forEach((t=>{null==t&&(e=!1)}))),e||n.alert("Filtro parcialmente preenchido","Favor completar todas as informações do filtro."),e}clear(){var t,i;o.MULTI_LIST===this.config.type?(null===(t=this.config.value)||void 0===t||t.forEach((t=>{t&&(t.check=!1)})),null===(i=this._editor)||void 0===i||i.reloadList()):this.changeConfig(Object.assign(Object.assign({},this.config),{value:void 0}))}onKeyDonwListener(t){"Enter"===t.key&&this._applyButton.setFocus().then((()=>this.apply()))}buildRightSlot(t){return e("ez-icon",{iconName:"delete",onClick:()=>this.removeValueFromConfig(t)})}removeValueFromConfig(t){var i,e,s,l,r,n;const o=null===(e=null===(i=this.config)||void 0===i?void 0:i.value)||void 0===e?void 0:e.findIndex((i=>(null==i?void 0:i.id)===t.id));null===(l=null===(s=this.config)||void 0===s?void 0:s.value)||void 0===l||l.splice(o,1),null===(n=null===(r=this._editor)||void 0===r?void 0:r.reloadList)||void 0===n||n.call(r)}saveConfig(t){var i;null===(i=this._application)||void 0===i||i.getResourceID().then((i=>{(new d).saveEntityListConfig(t,i,this._application.configName),this.config=t}))}render(){const t=this.getContentEditor();return e(l,null,e("div",{class:"col ez-col--sd-12 ez-align--right ez-padding-medium ez-flex--align-items-center"},e("div",{class:"ez-text ez-title ez-title--small ez-padding--small sc-snk-filter-bar snk-filter-item__editor-header"},this.config.detailTitle),this.getPopUpHeaderButtons()),e(t,{maxHeightList:"240px",ref:t=>this._editor=t,value:this.config.value,config:this.config,onKeyDown:t=>this.onKeyDonwListener(t),"data-element-id":this._idContentEditor,getMessage:this.getMessage,onSaveConfig:t=>this.saveConfig(t.detail),rightListSlotBuilder:t=>this.buildRightSlot(t)}),e("hr",{class:"sc-snk-filter-bar snk-filter__popover-rule"}),e("div",{class:"ez-col ez-col--sd-12 ez-align--right"},e("ez-button",{label:this.getMessage("snkFilterBar.cleanFilter"),onClick:()=>this.clear(),size:"small"}),e("ez-button",{ref:t=>this._applyButton=t,label:this.getMessage("snkFilterBar.applyFilter"),onClick:()=>this.apply(),size:"small",class:"ez-button--primary ez-padding-left--medium"})))}get _element(){return r(this)}static get watchers(){return{config:["observeConfig"]}}};export{u as snk_filter_detail}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{F as e}from"./p-584d7212.js";import{R as t}from"./p-79f78e10.js";function i(t,r){if(null==t)return t;if(t instanceof Date)return t.toISOString();if("object"==typeof t){if(t instanceof Array)return t.map((t=>i(e.MULTI_LIST===r?function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(i[r[n]]=e[r[n]])}return i}(t,["label"]):t)));{const e=Object.assign({},t);return Object.keys(t).forEach((n=>{t[n]?e[n]=i(t[n],r):delete e[n]})),e}}return t}class r extends t{saveConfig(e,t,r){const n=e.map((e=>{const{id:t,value:r,fixed:n,visible:s,type:f}=e,o={id:t};return r&&(o.value=i(r,f)),n&&(o.fixed=n),s&&(o.visible=!0),o}));return this.saveResource(n,this.getPath(t,r))}getConfig(e,t){return new Promise(((i,r)=>{this.loadResource(this.getPath(e,t)).then((e=>{let t;e&&(t=JSON.parse(e).items),i(t||[])})).catch((e=>{r(e)}))}))}saveEntityListConfig(e,t,r){return new Promise(((n,s)=>{this.getConfig(t,r).then((f=>{const o=f.map((({id:e,value:t,fixed:r,visible:n,type:s})=>Object.assign(Object.assign(Object.assign({id:e},t&&{value:i(t,s)}),r&&{fixed:r}),n&&{visible:!0}))),a=o.findIndex((({id:t})=>t===e.id)),c={id:e.id,value:i(e.value,e.type),fixed:e.fixed,visible:!0};a>-1?o[a]=c:o.push(c),this.saveResource(o,this.getPath(t,r)).then((e=>{n(e)})).catch((e=>{s(e)}))})).catch((e=>{s(e)}))}))}getPath(e,t){return t?`cfg://filter/FilterBarState:${e}/${t}`:`cfg://filter/FilterBarState:${e}`}}export{r as F}
|
@@ -1 +0,0 @@
|
|
1
|
-
export{S as snk_guides_viewer}from"./p-28c12f65.js";import"./p-b9667fbe.js";import"@sankhyalabs/core";import"./p-b25450ab.js";import"./p-b1c02726.js";import"./p-2ea933b2.js";import"./p-41d92871.js";import"./p-112455b1.js";import"./p-79f78e10.js";import"./p-6c2c71ca.js";import"./p-584d7212.js";import"@sankhyalabs/ezui/dist/collection/utils/form";import"./p-384c4a6b.js";import"./p-19692f92.js";import"./p-4c2015a9.js";import"./p-6a02e236.js";import"./p-17375123.js";import"./p-11028eba.js";
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as t,c as e,h as i,H as s,g as a}from"./p-b9667fbe.js";import{ElementIDUtils as n,UserInterface as o,ApplicationContext as r}from"@sankhyalabs/core";import{convertType as l}from"@sankhyalabs/core/dist/dataunit/metadata/DataType";import{CheckMode as h}from"@sankhyalabs/ezui/dist/collection/utils";import{F as u}from"./p-584d7212.js";const d=class{constructor(i){t(this,i),this.valueChanged=e(this,"valueChanged",7),this.config=void 0,this.value=void 0,this.fix=void 0,this.unfix=void 0}componentDidLoad(){this._element&&n.addIDInfo(this._element,"filterContentEditor")}getValue(t,e){if(this.value&&e>=0&&e<this.value.length){const i=this.value[e];return t.type===o.SEARCH?i:l(t.dataType,i)}}setValue(t,e){this.value=null==this.value?Array(t).fill(null):[...this.value],this.value[t]=e,0==this.value.filter((t=>null!=t)).length&&(this.value=null),this.valueChanged.emit(this.value||[])}doSearch(t,e,i){const s=r.getContextValue("__SNK__APPLICATION__");return new Promise(((a,n)=>{s.executePreparedSearch(t,e,i.searchContext).then((t=>{a(t)})).catch((t=>{n(t)}))}))}getParamsInterface(){var t,e,s;return(null===(s=null===(e=null===(t=this.config)||void 0===t?void 0:t.props)||void 0===e?void 0:e.personalizedFilter)||void 0===s?void 0:s.parameters).map(((t,e)=>{var s;const a="param_"+e;switch(t.type){case o.SEARCH:return i("ez-search",{id:a,suppressEmptyOption:!0,value:this.getValue(t,e),onEzChange:t=>this.setValue(e,t.detail),label:t.label,optionLoader:({mode:e,argument:i})=>this.doSearch(e,i,t)});case o.SWITCH:case o.CHECKBOX:return i("ez-check",{id:a,class:"ez-padding-bottom--medium",mode:o.SWITCH===t.type?h.SWITCH:h.REGULAR,value:this.getValue(t,e),label:t.label,onEzChange:t=>this.setValue(e,t.detail)});case o.DECIMALNUMBER:case o.INTEGERNUMBER:return i("ez-number-input",{id:a,label:t.label,value:this.getValue(t,e),precision:null===(s=t.props)||void 0===s?void 0:s.precision,onEzChange:t=>this.setValue(e,t.detail)});case o.OPTIONSELECTOR:return i("ez-combo-box",{id:a,label:t.label,value:this.getValue(t,e),options:t.options,onEzChange:t=>{var i;return this.setValue(e,null===(i=t.detail)||void 0===i?void 0:i.value)}});case o.DATE:return i("ez-date-input",{id:a,label:t.label,value:this.getValue(t,e),onEzChange:t=>this.setValue(e,t.detail)});case o.DATETIME:return i("ez-date-time-input",{id:a,label:t.label,value:this.getValue(t,e),onEzChange:t=>this.setValue(e,t.detail)});default:return i("ez-text-input",{id:a,label:t.label,value:this.getValue(t,e),onEzChange:t=>this.setValue(e,t.detail)})}}))}async show(){const t=document.querySelector("#param_0");t&&t.setFocus()}render(){if(this.config&&this.config.type===u.PERSONALIZED)return i(s,null,this.getParamsInterface())}get _element(){return a(this)}};export{d as snk_filter_personalized}
|