@sankhyalabs/sankhyablocks 8.16.0-dev.113 → 8.16.0-dev.115
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/{ClientSideExporterProvider-a2753c93.js → ClientSideExporterProvider-0ce2bcd9.js} +2 -2
- package/dist/cjs/{ConfigStorage-df09fb78.js → ConfigStorage-48ba265b.js} +45 -17
- package/dist/cjs/FormConfigHelper-c664dbae.js +260 -0
- package/dist/cjs/{PersonalizedFilterUtils-0184ffbb.js → PersonalizedFilterUtils-7259cf65.js} +1 -1
- package/dist/cjs/{SnkFormConfigManager-45a8d7b7.js → SnkFormConfigManager-aa4631bd.js} +3 -4
- package/dist/cjs/{SnkMessageBuilder-9deeae08.js → SnkMessageBuilder-e3b7850b.js} +28 -3
- package/dist/cjs/config-header.cjs.entry.js +79 -0
- package/dist/cjs/configs-button.cjs.entry.js +61 -0
- package/dist/cjs/{constants-77c1b8bd.js → constants-6d82e405.js} +8 -38
- package/dist/cjs/default-filters-a09bf82b.js +8 -0
- package/dist/cjs/field-config_2.cjs.entry.js +324 -0
- package/dist/cjs/fields-layout.cjs.entry.js +341 -0
- package/dist/cjs/fields-selector.cjs.entry.js +74 -0
- package/dist/cjs/{filter-type.enum-b14ce507.js → filter-type.enum-2bb46d2a.js} +1 -0
- package/dist/cjs/guides-configurator.cjs.entry.js +164 -0
- package/dist/cjs/{index-102ba62d.js → index-0ad2baeb.js} +4 -5
- package/dist/cjs/{index-f9e81701.js → index-1cf293c1.js} +32 -10
- package/dist/cjs/{index-c5771aba.js → index-62760a9c.js} +5 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/pesquisa-grid_2.cjs.entry.js +2 -2
- package/dist/cjs/sankhyablocks.cjs.js +2 -2
- package/dist/cjs/snk-actions-button_8.cjs.entry.js +3 -3
- 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-configurator.cjs.entry.js +2 -2
- package/dist/cjs/snk-crud.cjs.entry.js +4 -4
- package/dist/cjs/snk-custom-slot-elements.cjs.entry.js +1 -1
- package/dist/cjs/snk-data-exporter.cjs.entry.js +4 -4
- package/dist/cjs/{snk-data-unit-57916de4.js → snk-data-unit-3684c96e.js} +2 -2
- package/dist/cjs/snk-data-unit.cjs.entry.js +3 -3
- package/dist/cjs/snk-default-filter.cjs.entry.js +77 -0
- package/dist/cjs/snk-detail-view.cjs.entry.js +8 -8
- package/dist/cjs/snk-entity-list.cjs.entry.js +1 -1
- package/dist/cjs/snk-exporter-email-sender.cjs.entry.js +1 -1
- package/dist/cjs/snk-expression-group_2.cjs.entry.js +10 -8
- package/dist/cjs/snk-filter-advanced-mode_2.cjs.entry.js +5 -4
- package/dist/cjs/snk-filter-bar_4.cjs.entry.js +82 -28
- package/dist/cjs/snk-filter-binary-select.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-checkbox-list.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-detail.cjs.entry.js +3 -3
- package/dist/cjs/snk-filter-field-search_2.cjs.entry.js +3 -3
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
- 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 +1 -1
- 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-summary.cjs.entry.js +1 -1
- package/dist/cjs/snk-form-view.cjs.entry.js +1 -1
- package/dist/cjs/snk-form_2.cjs.entry.js +433 -0
- package/dist/cjs/snk-grid.cjs.entry.js +6 -6
- package/dist/cjs/{snk-guides-viewer-d33379cd.js → snk-guides-viewer-edc0a00a.js} +5 -5
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +7 -7
- package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js +1 -1
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +53 -18
- package/dist/cjs/snk-pesquisa.cjs.entry.js +2 -2
- package/dist/cjs/snk-print-selector.cjs.entry.js +1 -1
- package/dist/cjs/snk-simple-bar.cjs.entry.js +1 -1
- package/dist/cjs/snk-simple-crud.cjs.entry.js +7 -7
- package/dist/cjs/snk-taskbar.cjs.entry.js +3 -3
- package/dist/cjs/sortable.esm-9a110bb7.js +2668 -0
- package/dist/cjs/{taskbar-elements-6f4e06af.js → taskbar-elements-3b74cd21.js} +2 -2
- package/dist/cjs/teste-pesquisa.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +8 -14
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +1 -1
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +80 -12
- package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-default-filter/snk-default-filter.css +34 -0
- package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-default-filter/snk-default-filter.js +142 -0
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +24 -15
- package/dist/collection/components/snk-filter-bar/types/default-filters.js +6 -0
- package/dist/collection/components/snk-filter-bar/types/filter-type.enum.js +1 -0
- package/dist/collection/components/snk-filter-bar/utils/SnkFilterModalFactory.js +4 -4
- package/dist/collection/components/snk-form-config/FormConfigHelper.js +245 -0
- package/dist/collection/components/snk-form-config/SnkFormConfigManager.js +4 -5
- package/dist/collection/components/snk-form-config/config-header/config-header.css +18 -0
- package/dist/collection/components/snk-form-config/config-header/config-header.js +236 -0
- package/dist/collection/components/snk-form-config/config-header/configs-button/configs-button.css +41 -0
- package/dist/collection/components/snk-form-config/config-header/configs-button/configs-button.js +170 -0
- package/dist/collection/components/snk-form-config/field-item/field-config/field-config.css +21 -0
- package/dist/collection/components/snk-form-config/field-item/field-config/field-config.js +408 -0
- package/dist/collection/components/snk-form-config/field-item/field-item.css +108 -0
- package/dist/collection/components/snk-form-config/field-item/field-item.js +206 -0
- package/dist/collection/components/snk-form-config/fields-layout/fields-layout.css +133 -0
- package/dist/collection/components/snk-form-config/fields-layout/fields-layout.js +578 -0
- package/dist/collection/components/snk-form-config/fields-selector/fields-selector.css +38 -0
- package/dist/collection/components/snk-form-config/fields-selector/fields-selector.js +146 -0
- package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.css +132 -0
- package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.js +317 -0
- package/dist/collection/components/snk-form-config/snk-form-config.css +16 -229
- package/dist/collection/components/snk-form-config/snk-form-config.js +288 -980
- package/dist/collection/components/snk-personalized-filter/interfaces/index.js +5 -0
- package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js +67 -13
- package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.css +3 -0
- package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.js +20 -1
- package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.js +22 -3
- package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-assistent-mode/snk-filter-assistent-mode.js +20 -1
- package/dist/collection/lib/configs/ConfigStorage.js +16 -8
- package/dist/collection/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.js +29 -9
- package/dist/collection/lib/message/resources/snk-filter-bar.msg.js +6 -0
- package/dist/collection/lib/message/resources/snk-form.msg.js +16 -2
- package/dist/collection/lib/message/resources/snk-personalized-filter.msg.js +6 -1
- package/dist/collection/lib/utils/constants.js +7 -1
- package/dist/components/ConfigStorage.js +45 -17
- package/dist/components/PersonalizedFilterUtils.js +6 -1
- package/dist/components/SnkFormConfigManager.js +2 -3
- package/dist/components/SnkMessageBuilder.js +28 -3
- package/dist/components/{snk-tab-config.d.ts → config-header.d.ts} +4 -4
- package/dist/components/config-header.js +6 -0
- package/dist/components/config-header2.js +103 -0
- package/dist/components/configs-button.d.ts +11 -0
- package/dist/components/configs-button.js +6 -0
- package/dist/components/configs-button2.js +76 -0
- package/dist/components/constants.js +8 -34
- package/dist/components/field-config.d.ts +11 -0
- package/dist/components/field-config.js +6 -0
- package/dist/components/field-config2.js +525 -0
- package/dist/components/field-item.d.ts +11 -0
- package/dist/components/field-item.js +6 -0
- package/dist/components/field-item2.js +93 -0
- package/dist/components/fields-layout.d.ts +11 -0
- package/dist/components/fields-layout.js +6 -0
- package/dist/components/fields-layout2.js +370 -0
- package/dist/components/{snk-field-config.d.ts → fields-selector.d.ts} +4 -4
- package/dist/components/fields-selector.js +6 -0
- package/dist/components/fields-selector2.js +98 -0
- package/dist/components/guides-configurator.d.ts +11 -0
- package/dist/components/guides-configurator.js +6 -0
- package/dist/components/guides-configurator2.js +182 -0
- package/dist/components/index.d.ts +8 -3
- package/dist/components/index.js +8 -3
- package/dist/components/index2.js +3 -4
- package/dist/components/snk-application2.js +1 -1
- package/dist/components/snk-crud.js +86 -62
- package/dist/components/{snk-config-options.d.ts → snk-default-filter.d.ts} +4 -4
- package/dist/components/snk-default-filter.js +6 -0
- package/dist/components/snk-default-filter2.js +97 -0
- package/dist/components/snk-detail-view2.js +113 -89
- package/dist/components/snk-expression-group2.js +4 -2
- package/dist/components/snk-expression-item2.js +5 -3
- package/dist/components/snk-filter-assistent-mode2.js +4 -2
- package/dist/components/snk-filter-bar2.js +28 -19
- package/dist/components/snk-filter-modal-item2.js +1 -0
- package/dist/components/snk-filter-modal.js +59 -8
- package/dist/components/snk-form-config2.js +253 -953
- package/dist/components/snk-form.js +33 -9
- package/dist/components/snk-personalized-filter2.js +50 -14
- package/dist/components/sortable.esm.js +2666 -0
- package/dist/esm/{ClientSideExporterProvider-b3871edb.js → ClientSideExporterProvider-3ed744fd.js} +2 -2
- package/dist/esm/{ConfigStorage-71e6766f.js → ConfigStorage-79b9e180.js} +45 -17
- package/dist/esm/FormConfigHelper-49fe72ca.js +248 -0
- package/dist/esm/{PersonalizedFilterUtils-e2b38ef7.js → PersonalizedFilterUtils-2db38ff2.js} +1 -1
- package/dist/esm/{SnkFormConfigManager-be490a33.js → SnkFormConfigManager-b4b93298.js} +3 -4
- package/dist/esm/{SnkMessageBuilder-2dbd8fa2.js → SnkMessageBuilder-9c269caf.js} +28 -3
- package/dist/esm/config-header.entry.js +75 -0
- package/dist/esm/configs-button.entry.js +57 -0
- package/dist/esm/{constants-7db1128a.js → constants-7b422de0.js} +8 -34
- package/dist/esm/default-filters-50105e43.js +8 -0
- package/dist/esm/field-config_2.entry.js +319 -0
- package/dist/esm/fields-layout.entry.js +337 -0
- package/dist/esm/fields-selector.entry.js +70 -0
- package/dist/esm/{filter-type.enum-a80c1b6b.js → filter-type.enum-f6a8fe23.js} +1 -0
- package/dist/esm/guides-configurator.entry.js +160 -0
- package/dist/esm/{index-a7d3d3f1.js → index-479e1293.js} +32 -10
- package/dist/esm/{index-ae591a44.js → index-8acbae97.js} +6 -1
- package/dist/esm/{index-bdf75557.js → index-b72af127.js} +4 -5
- package/dist/esm/loader.js +3 -3
- package/dist/esm/pesquisa-grid_2.entry.js +2 -2
- package/dist/esm/sankhyablocks.js +3 -3
- package/dist/esm/snk-actions-button_8.entry.js +3 -3
- 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-configurator.entry.js +2 -2
- package/dist/esm/snk-crud.entry.js +4 -4
- package/dist/esm/snk-custom-slot-elements.entry.js +1 -1
- package/dist/esm/snk-data-exporter.entry.js +4 -4
- package/dist/esm/{snk-data-unit-65c9dd1a.js → snk-data-unit-027bca56.js} +2 -2
- package/dist/esm/snk-data-unit.entry.js +3 -3
- package/dist/esm/snk-default-filter.entry.js +73 -0
- package/dist/esm/snk-detail-view.entry.js +8 -8
- package/dist/esm/snk-entity-list.entry.js +1 -1
- package/dist/esm/snk-exporter-email-sender.entry.js +1 -1
- package/dist/esm/snk-expression-group_2.entry.js +10 -8
- package/dist/esm/snk-filter-advanced-mode_2.entry.js +5 -4
- package/dist/esm/snk-filter-bar_4.entry.js +82 -28
- package/dist/esm/snk-filter-binary-select.entry.js +1 -1
- package/dist/esm/snk-filter-checkbox-list.entry.js +1 -1
- package/dist/esm/snk-filter-detail.entry.js +3 -3
- package/dist/esm/snk-filter-field-search_2.entry.js +3 -3
- package/dist/esm/snk-filter-modal-item.entry.js +3 -3
- 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 +1 -1
- 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-summary.entry.js +1 -1
- package/dist/esm/snk-form-view.entry.js +1 -1
- package/dist/esm/snk-form_2.entry.js +428 -0
- package/dist/esm/snk-grid.entry.js +6 -6
- package/dist/esm/{snk-guides-viewer-72953334.js → snk-guides-viewer-32f3d3ab.js} +5 -5
- package/dist/esm/snk-guides-viewer.entry.js +7 -7
- package/dist/esm/snk-personalized-filter-editor.entry.js +1 -1
- package/dist/esm/snk-personalized-filter.entry.js +53 -18
- package/dist/esm/snk-pesquisa.entry.js +2 -2
- package/dist/esm/snk-print-selector.entry.js +1 -1
- package/dist/esm/snk-simple-bar.entry.js +1 -1
- package/dist/esm/snk-simple-crud.entry.js +7 -7
- package/dist/esm/snk-taskbar.entry.js +3 -3
- package/dist/esm/sortable.esm-842f85a3.js +2666 -0
- package/dist/esm/{taskbar-elements-f2cb4922.js → taskbar-elements-171476d4.js} +2 -2
- package/dist/esm/teste-pesquisa.entry.js +1 -1
- package/dist/sankhyablocks/{p-24a0dbd2.entry.js → p-0024d3fd.entry.js} +1 -1
- package/dist/sankhyablocks/{p-b8d649dd.entry.js → p-09e60995.entry.js} +1 -1
- package/dist/sankhyablocks/{p-bc101064.entry.js → p-0cb295c1.entry.js} +1 -1
- package/dist/sankhyablocks/{p-b0ab5066.entry.js → p-1456d7cb.entry.js} +1 -1
- package/dist/sankhyablocks/{p-9531fd46.entry.js → p-180716b2.entry.js} +1 -1
- package/dist/sankhyablocks/{p-6a03b190.entry.js → p-1ea34488.entry.js} +1 -1
- package/dist/sankhyablocks/p-21107f0d.entry.js +1 -0
- package/dist/sankhyablocks/{p-118e769b.entry.js → p-27482793.entry.js} +1 -1
- package/dist/sankhyablocks/p-290fea5f.entry.js +1 -0
- package/dist/sankhyablocks/{p-08ea6c86.entry.js → p-295aa209.entry.js} +1 -1
- package/dist/sankhyablocks/{p-c9675d64.js → p-2bde486e.js} +1 -1
- package/dist/sankhyablocks/{p-26b0ce3e.entry.js → p-2fdac5e6.entry.js} +1 -1
- package/dist/sankhyablocks/p-349d1968.entry.js +1 -0
- package/dist/sankhyablocks/p-35e73c5d.js +1 -0
- package/dist/sankhyablocks/{p-89c92727.entry.js → p-398cdd67.entry.js} +1 -1
- package/dist/sankhyablocks/{p-ddf93f36.entry.js → p-3a48bff3.entry.js} +1 -1
- package/dist/sankhyablocks/{p-434817f0.entry.js → p-3d41f5a8.entry.js} +1 -1
- package/dist/sankhyablocks/p-3f24c9b2.js +1 -0
- package/dist/sankhyablocks/{p-8002dcd0.entry.js → p-471b34f4.entry.js} +1 -1
- package/dist/sankhyablocks/{p-7e2ded86.entry.js → p-49d968e2.entry.js} +1 -1
- package/dist/sankhyablocks/p-4d2ff2fb.entry.js +1 -0
- package/dist/sankhyablocks/p-51833248.js +7 -0
- package/dist/sankhyablocks/p-60dd1d27.entry.js +1 -0
- package/dist/sankhyablocks/p-6416975c.js +56 -0
- package/dist/sankhyablocks/{p-7beeabc1.entry.js → p-65c5d430.entry.js} +1 -1
- package/dist/sankhyablocks/{p-21a81901.entry.js → p-667cab42.entry.js} +1 -1
- package/dist/sankhyablocks/p-6a4b21dd.js +1 -0
- package/dist/sankhyablocks/p-71a05822.entry.js +1 -0
- package/dist/sankhyablocks/{p-ac8d1cd6.entry.js → p-7345782c.entry.js} +1 -1
- package/dist/sankhyablocks/{p-885802c3.js → p-763b04fa.js} +1 -1
- package/dist/sankhyablocks/{p-d07b18a4.js → p-7de79adf.js} +1 -1
- package/dist/sankhyablocks/p-7e250432.entry.js +1 -0
- package/dist/sankhyablocks/{p-47178038.entry.js → p-83c100f2.entry.js} +1 -1
- package/dist/sankhyablocks/p-84345e7a.js +1 -0
- package/dist/sankhyablocks/p-86bd4478.entry.js +1 -0
- package/dist/sankhyablocks/p-9019a32f.js +1 -0
- package/dist/sankhyablocks/{p-54a5d52a.entry.js → p-90805683.entry.js} +1 -1
- package/dist/sankhyablocks/{p-c2e468c9.entry.js → p-91a9abb6.entry.js} +1 -1
- package/dist/sankhyablocks/p-9751c42f.entry.js +1 -0
- package/dist/sankhyablocks/{p-057fad05.js → p-988afe78.js} +1 -1
- package/dist/sankhyablocks/{p-16a1dd18.entry.js → p-9a63f3f7.entry.js} +1 -1
- package/dist/sankhyablocks/{p-90684a75.entry.js → p-9ad3557c.entry.js} +1 -1
- package/dist/sankhyablocks/{p-b6200d32.entry.js → p-9fd87bfd.entry.js} +1 -1
- package/dist/sankhyablocks/p-a06bf7b9.entry.js +1 -0
- package/dist/sankhyablocks/{p-33718dfc.entry.js → p-a227b650.entry.js} +1 -1
- package/dist/sankhyablocks/p-a349689a.js +1 -0
- package/dist/sankhyablocks/p-a5bb2f93.entry.js +1 -0
- package/dist/sankhyablocks/{p-ebdb9d89.js → p-a6513fcb.js} +1 -1
- package/dist/sankhyablocks/{p-8c235d4c.entry.js → p-a76e6d51.entry.js} +1 -1
- package/dist/sankhyablocks/p-b568c1d4.js +1 -0
- package/dist/sankhyablocks/{p-ce94e6c4.entry.js → p-bd665460.entry.js} +1 -1
- package/dist/sankhyablocks/p-c3324d79.entry.js +1 -0
- package/dist/sankhyablocks/{p-bf2acf72.entry.js → p-c6a8a8bc.entry.js} +1 -1
- package/dist/sankhyablocks/{p-165cde3b.entry.js → p-c926cf6b.entry.js} +1 -1
- package/dist/sankhyablocks/{p-79f823f3.entry.js → p-d67526b6.entry.js} +1 -1
- package/dist/sankhyablocks/{p-d2d301a6.js → p-d8d8169b.js} +1 -1
- package/dist/sankhyablocks/{p-5f157b09.entry.js → p-dff65083.entry.js} +1 -1
- package/dist/sankhyablocks/{p-3372178e.entry.js → p-e2988bb1.entry.js} +1 -1
- package/dist/sankhyablocks/{p-a4ebeec4.entry.js → p-e3521eae.entry.js} +1 -1
- package/dist/sankhyablocks/p-e7cccc45.entry.js +1 -0
- package/dist/sankhyablocks/{p-1f80174b.entry.js → p-f4e31122.entry.js} +1 -1
- package/dist/sankhyablocks/{p-0fadb620.js → p-fc0b609e.js} +1 -1
- package/dist/sankhyablocks/{p-a14a09c3.entry.js → p-ff7060bc.entry.js} +1 -1
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-filter-bar/filter-modal/snk-filter-modal.d.ts +16 -4
- package/dist/types/components/snk-filter-bar/filter-modal/subcomponents/snk-default-filter/snk-default-filter.d.ts +27 -0
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +4 -3
- package/dist/types/components/snk-filter-bar/types/default-filters.d.ts +5 -0
- package/dist/types/components/snk-filter-bar/types/filter-type.enum.d.ts +2 -1
- package/dist/types/components/snk-filter-bar/utils/SnkFilterModalFactory.d.ts +3 -3
- package/dist/types/components/snk-form-config/FormConfigHelper.d.ts +31 -0
- package/dist/types/components/snk-form-config/SnkFormConfigManager.d.ts +3 -3
- package/dist/types/components/snk-form-config/config-header/config-header.d.ts +23 -0
- package/dist/types/components/snk-form-config/config-header/configs-button/configs-button.d.ts +19 -0
- package/dist/types/components/snk-form-config/field-item/field-config/field-config.d.ts +56 -0
- package/dist/types/components/snk-form-config/fields-layout/fields-layout.d.ts +63 -0
- package/dist/types/components/snk-form-config/fields-selector/fields-selector.d.ts +18 -0
- package/dist/types/components/snk-form-config/guides-configurator/guides-configurator.d.ts +42 -0
- package/dist/types/components/snk-form-config/snk-form-config.d.ts +51 -120
- package/dist/types/components/snk-personalized-filter/interfaces/index.d.ts +4 -0
- package/dist/types/components/snk-personalized-filter/snk-personalized-filter.d.ts +7 -1
- package/dist/types/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.d.ts +4 -0
- package/dist/types/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.d.ts +4 -0
- package/dist/types/components/snk-personalized-filter/subcomponents/snk-filter-assistent-mode/snk-filter-assistent-mode.d.ts +4 -0
- package/dist/types/components.d.ts +276 -203
- package/dist/types/lib/configs/ConfigStorage.d.ts +4 -2
- package/dist/types/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.d.ts +8 -4
- package/dist/types/lib/utils/constants.d.ts +6 -0
- package/package.json +4 -2
- package/react/components.d.ts +8 -3
- package/react/components.js +8 -3
- package/react/components.js.map +1 -1
- package/dist/cjs/Sortable-fb1c4cbb.js +0 -2853
- package/dist/cjs/snk-config-options_3.cjs.entry.js +0 -1390
- package/dist/cjs/snk-field-config.cjs.entry.js +0 -60
- package/dist/cjs/snk-tab-config.cjs.entry.js +0 -332
- package/dist/collection/components/snk-form-config/subcomponents/snk-config-options/snk-config-options.css +0 -16
- package/dist/collection/components/snk-form-config/subcomponents/snk-config-options/snk-config-options.js +0 -346
- package/dist/collection/components/snk-form-config/subcomponents/snk-field-config/snk-field-config.css +0 -219
- package/dist/collection/components/snk-form-config/subcomponents/snk-field-config/snk-field-config.js +0 -184
- package/dist/collection/components/snk-form-config/subcomponents/snk-tab-config/snk-tab-config.css +0 -323
- package/dist/collection/components/snk-form-config/subcomponents/snk-tab-config/snk-tab-config.js +0 -527
- package/dist/components/snk-config-options.js +0 -6
- package/dist/components/snk-config-options2.js +0 -257
- package/dist/components/snk-field-config.js +0 -6
- package/dist/components/snk-field-config2.js +0 -76
- package/dist/components/snk-tab-config.js +0 -6
- package/dist/components/snk-tab-config2.js +0 -3202
- package/dist/esm/Sortable-83960219.js +0 -2851
- package/dist/esm/snk-config-options_3.entry.js +0 -1384
- package/dist/esm/snk-field-config.entry.js +0 -56
- package/dist/esm/snk-tab-config.entry.js +0 -328
- package/dist/sankhyablocks/p-03b68a74.js +0 -56
- package/dist/sankhyablocks/p-3749dffb.entry.js +0 -1
- package/dist/sankhyablocks/p-3ab6df3d.entry.js +0 -1
- package/dist/sankhyablocks/p-4689c2e6.js +0 -1
- package/dist/sankhyablocks/p-490b75b5.entry.js +0 -1
- package/dist/sankhyablocks/p-52d10014.entry.js +0 -1
- package/dist/sankhyablocks/p-5ffa0493.entry.js +0 -1
- package/dist/sankhyablocks/p-60137b7a.entry.js +0 -1
- package/dist/sankhyablocks/p-6dc031de.js +0 -1
- package/dist/sankhyablocks/p-9261d8a0.js +0 -1
- package/dist/sankhyablocks/p-933c0c0b.js +0 -1
- package/dist/sankhyablocks/p-9d3a025a.entry.js +0 -1
- package/dist/sankhyablocks/p-c0eb761b.entry.js +0 -1
- package/dist/sankhyablocks/p-d9804798.js +0 -1
- package/dist/sankhyablocks/p-fa816fb2.js +0 -1
- package/dist/types/components/snk-form-config/subcomponents/snk-config-options/snk-config-options.d.ts +0 -57
- package/dist/types/components/snk-form-config/subcomponents/snk-field-config/snk-field-config.d.ts +0 -43
- package/dist/types/components/snk-form-config/subcomponents/snk-tab-config/snk-tab-config.d.ts +0 -105
@@ -1,6 +1,6 @@
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-479e1293.js';
|
2
2
|
import { StringUtils, ElementIDUtils, ApplicationContext, KeyboardManager } from '@sankhyalabs/core';
|
3
|
-
import { T as TaskbarElement } from './taskbar-elements-
|
3
|
+
import { T as TaskbarElement } from './taskbar-elements-171476d4.js';
|
4
4
|
import './DataFetcher-88e56266.js';
|
5
5
|
import './ISave-5efafc97.js';
|
6
6
|
import { P as PresentationMode, E as ExporterStrategy } from './index-b40568ff.js';
|
@@ -9,9 +9,9 @@ import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
9
9
|
import './dataunit-fetcher-0e025732.js';
|
10
10
|
import './filter-item-type.enum-d45e026f.js';
|
11
11
|
import './form-config-fetcher-fa208a6c.js';
|
12
|
-
import { V as VIEW_MODE } from './constants-
|
12
|
+
import { V as VIEW_MODE } from './constants-7b422de0.js';
|
13
13
|
import { A as AutorizationType } from './auth-fetcher-3510520e.js';
|
14
|
-
import './index-
|
14
|
+
import './index-b72af127.js';
|
15
15
|
import './PrintUtils-3e4ff0f5.js';
|
16
16
|
import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
|
17
17
|
import '@sankhyalabs/core/dist/utils/SortingUtils';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-479e1293.js';
|
2
2
|
|
3
3
|
const snkCustomSlotElementsCss = ".sc-snk-custom-slot-elements-h{display:none}";
|
4
4
|
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-479e1293.js';
|
2
2
|
import { ApplicationContext, ObjectUtils, UserInterface, DataType, ElementIDUtils } from '@sankhyalabs/core';
|
3
3
|
import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
|
4
4
|
import { I as IExportType } from './IFetchDataExporterParams-d73bed3d.js';
|
5
5
|
import { D as DataExporterOption, a as DataExporterType, b as DataExporterFormat } from './index-b40568ff.js';
|
6
|
-
import { R as REPORT_LAUNCHER_RESOURCE_ID } from './constants-
|
6
|
+
import { R as REPORT_LAUNCHER_RESOURCE_ID } from './constants-7b422de0.js';
|
7
7
|
import { D as DataFetcher } from './DataFetcher-88e56266.js';
|
8
|
-
import { S as SnkDataUnit } from './snk-data-unit-
|
8
|
+
import { S as SnkDataUnit } from './snk-data-unit-027bca56.js';
|
9
9
|
import './ISave-5efafc97.js';
|
10
10
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
11
11
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
@@ -13,7 +13,7 @@ import './dataunit-fetcher-0e025732.js';
|
|
13
13
|
import './filter-item-type.enum-d45e026f.js';
|
14
14
|
import './form-config-fetcher-fa208a6c.js';
|
15
15
|
import './PrintUtils-3e4ff0f5.js';
|
16
|
-
import './SnkMessageBuilder-
|
16
|
+
import './SnkMessageBuilder-9c269caf.js';
|
17
17
|
import '@sankhyalabs/core/dist/dataunit/metadata/DataType';
|
18
18
|
import './GetSelectedRecordsIDsInfo-9fa41508.js';
|
19
19
|
import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-479e1293.js';
|
2
2
|
import { Action, ObjectUtils, DataUnitAction, StringUtils, ApplicationContext } from '@sankhyalabs/core';
|
3
3
|
import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
|
4
|
-
import { O as OperationMap, S as SnkMessageBuilder } from './SnkMessageBuilder-
|
4
|
+
import { O as OperationMap, S as SnkMessageBuilder } from './SnkMessageBuilder-9c269caf.js';
|
5
5
|
import { g as getRecordValue, a as DatasetStrategy } from './dataunit-fetcher-0e025732.js';
|
6
6
|
import { convertType } from '@sankhyalabs/core/dist/dataunit/metadata/DataType';
|
7
7
|
import { g as getSelectedRecordsIDsInfo } from './GetSelectedRecordsIDsInfo-9fa41508.js';
|
@@ -1,8 +1,8 @@
|
|
1
|
-
export { S as snk_data_unit } from './snk-data-unit-
|
2
|
-
import './index-
|
1
|
+
export { S as snk_data_unit } from './snk-data-unit-027bca56.js';
|
2
|
+
import './index-479e1293.js';
|
3
3
|
import '@sankhyalabs/core';
|
4
4
|
import '@sankhyalabs/ezui/dist/collection/utils';
|
5
|
-
import './SnkMessageBuilder-
|
5
|
+
import './SnkMessageBuilder-9c269caf.js';
|
6
6
|
import './dataunit-fetcher-0e025732.js';
|
7
7
|
import './DataFetcher-88e56266.js';
|
8
8
|
import './PrintUtils-3e4ff0f5.js';
|
@@ -0,0 +1,73 @@
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-479e1293.js';
|
2
|
+
import { A as ActionDefaultFilter } from './default-filters-50105e43.js';
|
3
|
+
|
4
|
+
const snkDefaultFilterCss = ".sc-snk-default-filter-h{display:flex;justify-content:flex-end}.default_container.sc-snk-default-filter{border:none;background:none;display:flex;align-items:center;gap:var(--space--3xs, 4px);font-family:var(--font-pattern);color:var(--title--primary, #2b3a54);font-size:var(--text--medium, 14px);padding:0;outline:none}.default_container.sc-snk-default-filter ez-icon.sc-snk-default-filter{cursor:pointer}.default_container.sc-snk-default-filter ez-icon.sc-snk-default-filter:hover{color:var(--color--primary-600)}.new_filter.sc-snk-default-filter{cursor:pointer;margin:0 var(--space--3xs, 4px)}.new_filter.sc-snk-default-filter:hover{color:var(--color--primary-600)}";
|
5
|
+
|
6
|
+
const SnkDefaultFilter = class {
|
7
|
+
constructor(hostRef) {
|
8
|
+
registerInstance(this, hostRef);
|
9
|
+
this.actionSelected = createEvent(this, "actionSelected", 7);
|
10
|
+
this.OFFSET_HEIGHT = 5;
|
11
|
+
this.getMessage = undefined;
|
12
|
+
this.hasDefaultFilter = false;
|
13
|
+
this._opened = false;
|
14
|
+
}
|
15
|
+
repositionDropDown() {
|
16
|
+
if (!this._refIcon || !this._refDropdown) {
|
17
|
+
return;
|
18
|
+
}
|
19
|
+
const boundingIcon = this._refIcon.getBoundingClientRect();
|
20
|
+
const boundingDropDown = this._refDropdown.getBoundingClientRect();
|
21
|
+
this._refDropdown.style.top = (boundingIcon.y + boundingIcon.height + this.OFFSET_HEIGHT) + "px";
|
22
|
+
this._refDropdown.style.left = ((boundingIcon.x + (boundingIcon.width / 2)) - boundingDropDown.width) + "px";
|
23
|
+
}
|
24
|
+
toggleDropdown() {
|
25
|
+
this._opened = !this._opened;
|
26
|
+
}
|
27
|
+
closeDropdown(evt) {
|
28
|
+
const target = evt === null || evt === void 0 ? void 0 : evt.target;
|
29
|
+
if (!target) {
|
30
|
+
return;
|
31
|
+
}
|
32
|
+
if (!target.closest("#dropdown-parent-demo")) {
|
33
|
+
this._opened = false;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
buildItems() {
|
37
|
+
return ([
|
38
|
+
{
|
39
|
+
id: ActionDefaultFilter.EDIT,
|
40
|
+
label: this.getMessage('defaultFilter.edit'),
|
41
|
+
},
|
42
|
+
{
|
43
|
+
id: ActionDefaultFilter.REMOVE,
|
44
|
+
label: this.getMessage('defaultFilter.remove'),
|
45
|
+
},
|
46
|
+
]);
|
47
|
+
}
|
48
|
+
onValueSelected({ detail: item }) {
|
49
|
+
this._opened = false;
|
50
|
+
this.actionSelected.emit(item.id);
|
51
|
+
}
|
52
|
+
openCreateNewFilter() {
|
53
|
+
this.actionSelected.emit(ActionDefaultFilter.CREATE);
|
54
|
+
}
|
55
|
+
componentDidRender() {
|
56
|
+
this.repositionDropDown();
|
57
|
+
}
|
58
|
+
componentWillLoad() {
|
59
|
+
this._items = this.buildItems();
|
60
|
+
document.removeEventListener("scroll", this.repositionDropDown.bind(this));
|
61
|
+
document.addEventListener("scroll", this.repositionDropDown.bind(this));
|
62
|
+
}
|
63
|
+
render() {
|
64
|
+
if (!this.hasDefaultFilter) {
|
65
|
+
return (h(Host, null, h("button", { class: "default_container new_filter", onClick: this.openCreateNewFilter.bind(this) }, h("span", null, this.getMessage('defaultFilter.create')))));
|
66
|
+
}
|
67
|
+
return (h(Host, null, h("button", { class: "default_container", onClick: this.toggleDropdown.bind(this) }, h("span", null, this.getMessage('defaultFilter.title')), h("ez-icon", { ref: (ref) => this._refIcon = ref, iconName: 'dots-vertical' })), this._opened &&
|
68
|
+
h("ez-dropdown", { ref: (ref) => this._refDropdown = ref, items: this._items, onEzClick: this.onValueSelected.bind(this), onEzOutsideClick: this.closeDropdown.bind(this) })));
|
69
|
+
}
|
70
|
+
};
|
71
|
+
SnkDefaultFilter.style = snkDefaultFilterCss;
|
72
|
+
|
73
|
+
export { SnkDefaultFilter as snk_default_filter };
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-
|
1
|
+
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-479e1293.js';
|
2
2
|
import { Action, StringUtils, KeyboardManager } from '@sankhyalabs/core';
|
3
|
-
import { S as SnkFormConfigManager } from './SnkFormConfigManager-
|
3
|
+
import { S as SnkFormConfigManager } from './SnkFormConfigManager-b4b93298.js';
|
4
4
|
import { FormMetadata, buildFormMetadata } from '@sankhyalabs/ezui/dist/collection/utils/form';
|
5
5
|
import './DataFetcher-88e56266.js';
|
6
6
|
import './ISave-5efafc97.js';
|
@@ -10,17 +10,17 @@ import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
10
10
|
import './dataunit-fetcher-0e025732.js';
|
11
11
|
import './filter-item-type.enum-d45e026f.js';
|
12
12
|
import './form-config-fetcher-fa208a6c.js';
|
13
|
-
import { V as VIEW_MODE } from './constants-
|
14
|
-
import { T as TaskbarElement } from './taskbar-elements-
|
15
|
-
import { S as SnkGuidesViewer } from './snk-guides-viewer-
|
16
|
-
import { S as SnkMessageBuilder } from './SnkMessageBuilder-
|
13
|
+
import { V as VIEW_MODE } from './constants-7b422de0.js';
|
14
|
+
import { T as TaskbarElement } from './taskbar-elements-171476d4.js';
|
15
|
+
import { S as SnkGuidesViewer } from './snk-guides-viewer-32f3d3ab.js';
|
16
|
+
import { S as SnkMessageBuilder } from './SnkMessageBuilder-9c269caf.js';
|
17
17
|
import { buildFieldSearch, SHORTCUT_SEARCH_FIELD, LABEL_SEARCH_FIELD } from '@sankhyalabs/ezui/dist/collection/utils';
|
18
|
-
import './ConfigStorage-
|
18
|
+
import './ConfigStorage-79b9e180.js';
|
19
19
|
import './PrintUtils-3e4ff0f5.js';
|
20
20
|
import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
|
21
21
|
import '@sankhyalabs/core/dist/utils/SortingUtils';
|
22
22
|
import './ResourceIDUtils-a114189a.js';
|
23
|
-
import './index-
|
23
|
+
import './index-b72af127.js';
|
24
24
|
import './taskbar-processor-3436124c.js';
|
25
25
|
import '@sankhyalabs/core/dist/dataunit/DataUnit';
|
26
26
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-479e1293.js';
|
2
2
|
import { ObjectUtils, ApplicationContext } from '@sankhyalabs/core';
|
3
3
|
|
4
4
|
const snkEntityListCss = ".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)}";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { h, r as registerInstance, g as getElement } from './index-
|
1
|
+
import { h, r as registerInstance, g as getElement } from './index-479e1293.js';
|
2
2
|
import { ElementIDUtils } from '@sankhyalabs/core';
|
3
3
|
import { ModalAction } from '@sankhyalabs/ezui/dist/collection/components/ez-modal-container';
|
4
4
|
|
@@ -1,13 +1,13 @@
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, f as forceUpdate, H as Host, g as getElement } from './index-
|
2
|
-
import { a as FilterGroupCondition, F as FilterOperand } from './index-
|
1
|
+
import { r as registerInstance, c as createEvent, h, f as forceUpdate, H as Host, g as getElement } from './index-479e1293.js';
|
2
|
+
import { a as FilterGroupCondition, F as FilterOperand } from './index-8acbae97.js';
|
3
3
|
import { ApplicationUtils, CheckMode } from '@sankhyalabs/ezui/dist/collection/utils';
|
4
4
|
import { ApplicationContext, StringUtils, ElementIDUtils, UserInterface } from '@sankhyalabs/core';
|
5
5
|
import { S as SelectedItemType } from './index-620ac460.js';
|
6
6
|
import { fieldBuilder } from '@sankhyalabs/ezui/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder';
|
7
|
-
import { s as store } from './index-
|
7
|
+
import { s as store } from './index-b72af127.js';
|
8
8
|
import { convertType } from '@sankhyalabs/core/dist/dataunit/metadata/DataType';
|
9
9
|
|
10
|
-
const snkExpressionGroupCss = ".sc-snk-expression-group-h{display:block;--snk-expression-group--container-condition--width:184px;--snk-expression-group--container-condition--height:38px;--snk-expression-group--container-condition--border-radius:var(--border--radius-medium, 12px);--snk-expression-group--container-option--width:85px;--snk-expression-group__container-condition--background-and:#66B6A0;--snk-expression-group__container-condition--background-or:#EBC65E;--snk-expression-group__container-expression--padding-left:26px;--snk-expression-group__background-color-dashed:var(--background--body, #fafcff)}.snk-expression-group__container-condition.sc-snk-expression-group{width:var(--snk-expression-group--container-condition--width);height:var(--snk-expression-group--container-condition--height);border-radius:var(--snk-expression-group--container-condition--border-radius);z-index:var(--more-visible--2x, 3)}.snk-expression-group__container-option.sc-snk-expression-group{width:var(--snk-expression-group--container-option--width)}.snk-expression-group__container-condition[data-condition=\"AND\"].sc-snk-expression-group{background-color:var(--snk-expression-group__container-condition--background-and)}.snk-expression-group__container-condition[data-condition=\"OR\"].sc-snk-expression-group{background-color:var(--snk-expression-group__container-condition--background-or)}.snk-expression-group__container-expression.sc-snk-expression-group{padding-left:var(--snk-expression-group__container-expression--padding-left)}.dashes.sc-snk-expression-group{z-index:var(--visible, 1);background:var(--snk-expression-group__background-color-dashed);border-left:2px dashed var(--text-secondary, #A2ABB9);position:absolute;width:15px;height:58px;margin-left:-15px;margin-top:-36.5px}.horizontal-dashes.sc-snk-expression-group{z-index:var(--more-visible, 2);border-bottom:2px dashed var(--text-secondary, #A2ABB9);position:absolute;width:15px;height:54px;margin-left:-15px;margin-top:-33.5px}.hidden.sc-snk-expression-group{display:none}";
|
10
|
+
const snkExpressionGroupCss = ".sc-snk-expression-group-h{display:block;--snk-expression-group--container-condition--width:184px;--snk-expression-group--container-condition--height:38px;--snk-expression-group--container-condition--border-radius:var(--border--radius-medium, 12px);--snk-expression-group--container-option--width:85px;--snk-expression-group__container-condition--background-and:#66B6A0;--snk-expression-group__container-condition--background-or:#EBC65E;--snk-expression-group__container-expression--padding-left:26px;--snk-expression-group__background-color-dashed:var(--background--body, #fafcff);--ez-text-input__margin-bottom:0px}.snk-expression-group__container-condition.sc-snk-expression-group{width:var(--snk-expression-group--container-condition--width);height:var(--snk-expression-group--container-condition--height);border-radius:var(--snk-expression-group--container-condition--border-radius);z-index:var(--more-visible--2x, 3);padding:var(--space--nano, 2px)}.snk-expression-group__container-option.sc-snk-expression-group{width:var(--snk-expression-group--container-option--width)}.snk-expression-group__container-condition[data-condition=\"AND\"].sc-snk-expression-group{background-color:var(--snk-expression-group__container-condition--background-and)}.snk-expression-group__container-condition[data-condition=\"OR\"].sc-snk-expression-group{background-color:var(--snk-expression-group__container-condition--background-or)}.snk-expression-group__container-expression.sc-snk-expression-group{padding-left:var(--snk-expression-group__container-expression--padding-left)}.dashes.sc-snk-expression-group{z-index:var(--visible, 1);background:var(--snk-expression-group__background-color-dashed);border-left:2px dashed var(--text-secondary, #A2ABB9);position:absolute;width:15px;height:58px;margin-left:-15px;margin-top:-36.5px}.horizontal-dashes.sc-snk-expression-group{z-index:var(--more-visible, 2);border-bottom:2px dashed var(--text-secondary, #A2ABB9);position:absolute;width:15px;height:54px;margin-left:-15px;margin-top:-33.5px}.hidden.sc-snk-expression-group{display:none}";
|
11
11
|
|
12
12
|
const SnkExpressionGroup = class {
|
13
13
|
constructor(hostRef) {
|
@@ -28,6 +28,7 @@ const SnkExpressionGroup = class {
|
|
28
28
|
this.messagesBuilder = undefined;
|
29
29
|
this.filterId = undefined;
|
30
30
|
this.entityURI = undefined;
|
31
|
+
this.isDefaultFilter = false;
|
31
32
|
}
|
32
33
|
/**
|
33
34
|
* Listener para capturar adição e remoção de grupos e items de expressão.
|
@@ -84,7 +85,7 @@ const SnkExpressionGroup = class {
|
|
84
85
|
}
|
85
86
|
renderExpressionItems() {
|
86
87
|
var _a;
|
87
|
-
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 })));
|
88
|
+
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, isDefaultFilter: this.isDefaultFilter })));
|
88
89
|
}
|
89
90
|
renderGroups() {
|
90
91
|
var _a;
|
@@ -291,6 +292,7 @@ const SnkExpressionItem = class {
|
|
291
292
|
this.expression = undefined;
|
292
293
|
this.canRemove = true;
|
293
294
|
this.messagesBuilder = undefined;
|
295
|
+
this.isDefaultFilter = false;
|
294
296
|
this.entityURI = undefined;
|
295
297
|
}
|
296
298
|
expressionChanged(newValue, oldValue) {
|
@@ -510,14 +512,14 @@ const SnkExpressionItem = class {
|
|
510
512
|
return field;
|
511
513
|
}
|
512
514
|
setCriteriaSearch({ mode, argument }, application) {
|
513
|
-
var _a, _b;
|
515
|
+
var _a, _b, _c;
|
514
516
|
if (application == undefined)
|
515
517
|
return;
|
516
518
|
const searchOptions = {
|
517
519
|
showInactives: false
|
518
520
|
};
|
519
521
|
const options = {
|
520
|
-
entity: (_b = (_a = this._fieldSelected) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b.ENTITYNAME,
|
522
|
+
entity: (_c = (_b = (_a = this._fieldSelected) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b.ENTITYNAME) !== null && _c !== void 0 ? _c : this._fieldSelected.entityName,
|
521
523
|
searchOptions,
|
522
524
|
entityDescription: this._fieldSelected.description
|
523
525
|
};
|
@@ -528,7 +530,7 @@ const SnkExpressionItem = class {
|
|
528
530
|
return (h(Host, null, h("div", { class: "dashes" }), h("div", { class: "box" }, h("div", { class: "box__container" }, h("div", { class: "box__container--input-filter" }, h("ez-filter-input", Object.assign({ ref: ref => this._elFilterInput = ref, 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() }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `expressionFilterInput_${this.expression.fieldName || this.DEFAULT_FIELD_NAME}` })), 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", Object.assign({ label: this.getMessage("snkPersonalizedFilter.info.labelOperator"), value: this.expression.operand, canShowError: false, options: this.buildOptionsOperator(), onEzChange: (evt) => { var _a; return this.handleChangeOperator((_a = evt.detail) === null || _a === void 0 ? void 0 : _a.value); }, suppressEmptyOption: true }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `comboBoxOperand_${this.expression.fieldName || this.DEFAULT_FIELD_NAME}` }))), h("div", { class: "box__container--input-value" }, !this._fieldSelected ?
|
529
531
|
h("ez-number-input", { label: "Valor", canShowError: false, enabled: (!this._showValueVariable && !this._optionNotNull) }) :
|
530
532
|
this.buildFieldByType()), h("div", { class: "box__container--input-value-variable" }, !this._optionNotNull &&
|
531
|
-
h("ez-check", { ref: ref => this._elValueVariable = ref, value: this.expression.paramVariable, label: this.getMessage("snkPersonalizedFilter.info.labelValueVarible"), mode: CheckMode.SWITCH, onEzChange: (evt) => this.handleChangeValueVariable(evt.detail) }), (this._showValueVariable && !this._optionNotNull) &&
|
533
|
+
h("ez-tooltip", { message: this.getMessage("snkPersonalizedFilter.info.checkVariableDisabled"), active: this.isDefaultFilter }, h("ez-check", { ref: ref => this._elValueVariable = ref, value: this.expression.paramVariable, label: this.getMessage("snkPersonalizedFilter.info.labelValueVarible"), mode: CheckMode.SWITCH, onEzChange: (evt) => this.handleChangeValueVariable(evt.detail), enabled: !this.isDefaultFilter })), (this._showValueVariable && !this._optionNotNull) &&
|
532
534
|
h("ez-icon", Object.assign({ class: "box__container--input-value-variable--icon", size: "large", iconName: "settings-inverted" }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: 'iconConfig' }, { title: this.getMessage("snkPersonalizedFilter.info.titleTooltip"), 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" }, h("ez-button", { mode: "icon", iconName: "delete", enabled: this.canRemove, label: this.getMessage("snkPersonalizedFilter.info.labelDeleteItem"), onClick: (evt) => this.confirmRemove(evt) })))))));
|
533
535
|
}
|
534
536
|
static get watchers() { return {
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-
|
2
|
-
import { P as PersonalizedFilterUtils } from './PersonalizedFilterUtils-
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-479e1293.js';
|
2
|
+
import { P as PersonalizedFilterUtils } from './PersonalizedFilterUtils-2db38ff2.js';
|
3
3
|
import '@sankhyalabs/core';
|
4
4
|
import './filter-item-type.enum-d45e026f.js';
|
5
|
-
import './index-
|
5
|
+
import './index-8acbae97.js';
|
6
6
|
|
7
7
|
const snkFilterAdvancedModeCss = ".sc-snk-filter-advanced-mode-h{display:block;--snk-personalized-filter--title--color:var(--title--primary, #2B3A54)}.snk-filter-advanced-mode__title.sc-snk-filter-advanced-mode{color:var(--snk-personalized-filter--title--color)}";
|
8
8
|
|
@@ -34,6 +34,7 @@ const SnkFilterAssistentMode = class {
|
|
34
34
|
this.filterId = undefined;
|
35
35
|
this.entityUri = undefined;
|
36
36
|
this.application = undefined;
|
37
|
+
this.isDefaultFilter = false;
|
37
38
|
}
|
38
39
|
getMessage(key, params) {
|
39
40
|
return this.application.messagesBuilder.getMessage(key, params);
|
@@ -47,7 +48,7 @@ const SnkFilterAssistentMode = class {
|
|
47
48
|
}
|
48
49
|
render() {
|
49
50
|
var _a, _b;
|
50
|
-
return (h(Host, null, h("div", { class: "ez-padding-top--small snk-personalized-filter__group" }, h("snk-expression-group", { ref: (el) => this._mainExpressionGroup = el, group: (_a = this.filterAssistent) === null || _a === void 0 ? void 0 : _a.assistent, messagesBuilder: this.messagesBuilder, onEzFilterGroupChange: this.handleFilterGroupChange.bind(this), filterId: this.filterId, entityURI: this.entityUri })), h("div", { class: "ez-margin-top--auto" }, h("div", { class: "snk-personalized-filter__expression-input--line" }), h("ez-collapsible-box", { label: this.getMessage("snkPersonalizedFilter.info.titleCollapsible"), headerSize: "medium", value: true }, h("div", { class: "ez-box" }, h("div", { class: "ez-box__container--external" }, h("div", { class: "ez-box__container--internal" }, h("span", { class: "ez-box__container--title" }, this.getMessage("snkPersonalizedFilter.info.labelExpression")), h("span", { class: "ez-box__container--expression" }, (_b = this.filterAssistent) === null || _b === void 0 ? void 0 : _b.expression))))))));
|
51
|
+
return (h(Host, null, h("div", { class: "ez-padding-top--small snk-personalized-filter__group" }, h("snk-expression-group", { ref: (el) => this._mainExpressionGroup = el, group: (_a = this.filterAssistent) === null || _a === void 0 ? void 0 : _a.assistent, messagesBuilder: this.messagesBuilder, onEzFilterGroupChange: this.handleFilterGroupChange.bind(this), filterId: this.filterId, entityURI: this.entityUri, isDefaultFilter: this.isDefaultFilter })), h("div", { class: "ez-margin-top--auto" }, h("div", { class: "snk-personalized-filter__expression-input--line" }), h("ez-collapsible-box", { label: this.getMessage("snkPersonalizedFilter.info.titleCollapsible"), headerSize: "medium", value: true }, h("div", { class: "ez-box" }, h("div", { class: "ez-box__container--external" }, h("div", { class: "ez-box__container--internal" }, h("span", { class: "ez-box__container--title" }, this.getMessage("snkPersonalizedFilter.info.labelExpression")), h("span", { class: "ez-box__container--expression" }, (_b = this.filterAssistent) === null || _b === void 0 ? void 0 : _b.expression))))))));
|
51
52
|
}
|
52
53
|
};
|
53
54
|
SnkFilterAssistentMode.style = snkFilterAssistentModeCss;
|
@@ -1,15 +1,16 @@
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-479e1293.js';
|
2
2
|
import { DataType, StringUtils, ObjectUtils, ElementIDUtils, ErrorException, ApplicationContext, LockManager, LockManagerOperation, FloatingManager, DateUtils, MaskFormatter, ArrayUtils } from '@sankhyalabs/core';
|
3
3
|
import { EzScrollDirection } from '@sankhyalabs/ezui/dist/collection/components/ez-scroller/EzScrollDirection';
|
4
|
-
import { C as ConfigStorage } from './ConfigStorage-
|
4
|
+
import { C as ConfigStorage } from './ConfigStorage-79b9e180.js';
|
5
5
|
import { toString } from '@sankhyalabs/core/dist/dataunit/metadata/DataType';
|
6
6
|
import { F as FilterItemType } from './filter-item-type.enum-d45e026f.js';
|
7
|
-
import { F as FilterOperand } from './index-
|
7
|
+
import { F as FilterOperand, D as DefaultFilter } from './index-8acbae97.js';
|
8
8
|
import { F as FilterNumberVariation } from './filterNumberVariation-8cee02ea.js';
|
9
9
|
import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
|
10
|
-
import { P as PersonalizedFilterUtils } from './PersonalizedFilterUtils-
|
10
|
+
import { P as PersonalizedFilterUtils } from './PersonalizedFilterUtils-2db38ff2.js';
|
11
11
|
import { ModalAction } from '@sankhyalabs/ezui/dist/collection/components/ez-modal-container';
|
12
|
-
import { F as FilterType } from './filter-type.enum-
|
12
|
+
import { F as FilterType } from './filter-type.enum-f6a8fe23.js';
|
13
|
+
import { A as ActionDefaultFilter } from './default-filters-50105e43.js';
|
13
14
|
import './form-config-fetcher-fa208a6c.js';
|
14
15
|
import './DataFetcher-88e56266.js';
|
15
16
|
import './PrintUtils-3e4ff0f5.js';
|
@@ -229,16 +230,16 @@ class SnkFilterModalFactory {
|
|
229
230
|
filterModal.getMessage = this._getMessage.bind(this);
|
230
231
|
filterModal.applyFilters = this.applyFilters.bind(this);
|
231
232
|
filterModal.closeModal = () => this._closeModal();
|
232
|
-
filterModal.addPersonalizedFilter = () => this._addPersonalizedFilterFn();
|
233
|
-
filterModal.editPersonalizedFilter = (id) => this._editPersonalizedFilterFn(id);
|
234
|
-
filterModal.deletePersonalizedFilter = (filter, configName) => this._onDeletePersonalizedFilter(filter, configName);
|
233
|
+
filterModal.addPersonalizedFilter = (isDefault) => this._addPersonalizedFilterFn(isDefault);
|
234
|
+
filterModal.editPersonalizedFilter = (id, isDefault) => this._editPersonalizedFilterFn(id, isDefault);
|
235
|
+
filterModal.deletePersonalizedFilter = (filter, configName, isDefault) => this._onDeletePersonalizedFilter(filter, configName, isDefault);
|
235
236
|
return filterModal;
|
236
237
|
}
|
237
238
|
async showModal() {
|
238
239
|
const filterModal = this.buildFilterModal();
|
239
240
|
const modalProps = {
|
240
241
|
content: filterModal,
|
241
|
-
position: '
|
242
|
+
position: 'right',
|
242
243
|
heightMode: 'full',
|
243
244
|
closeOutsideClick: false,
|
244
245
|
useScrimLight: true
|
@@ -261,6 +262,7 @@ const SnkFilterBar = class {
|
|
261
262
|
this._configUpdated = false;
|
262
263
|
this._firstLoad = true;
|
263
264
|
this._pendingVariables = false;
|
265
|
+
this._isDefaultFilter = false;
|
264
266
|
this._customfiltersToBeUpdated = [];
|
265
267
|
this._resolveLoading = undefined;
|
266
268
|
this._calculateSortIndex = (item) => {
|
@@ -493,10 +495,10 @@ const SnkFilterBar = class {
|
|
493
495
|
}
|
494
496
|
return this.filterActiveFilter(item) && (item.groupedItems || item.value != undefined);
|
495
497
|
}
|
496
|
-
registryFilterProvider() {
|
498
|
+
async registryFilterProvider() {
|
497
499
|
this.dataUnit.addFilterProvider(this);
|
498
500
|
if (this.filterConfig) {
|
499
|
-
this.doLoadData();
|
501
|
+
await this.doLoadData();
|
500
502
|
}
|
501
503
|
}
|
502
504
|
itemFocused(selectedItem) {
|
@@ -585,7 +587,7 @@ const SnkFilterBar = class {
|
|
585
587
|
this._application.isUserSup().then(value => this.allowDefault = value);
|
586
588
|
}
|
587
589
|
addFilterBarLegacyConfigName() {
|
588
|
-
if (this.filterBarLegacyConfigName
|
590
|
+
if (this.filterBarLegacyConfigName) {
|
589
591
|
ConfigStorage.addFilterBarLegacyConfig(this.configName, this.filterBarLegacyConfigName);
|
590
592
|
}
|
591
593
|
}
|
@@ -608,7 +610,7 @@ const SnkFilterBar = class {
|
|
608
610
|
throw new ErrorException(this.getMessage("snkFilterBar.failToLoadConfig"), e);
|
609
611
|
}
|
610
612
|
}
|
611
|
-
attachDataUnit() {
|
613
|
+
async attachDataUnit() {
|
612
614
|
if (this.dataUnit == undefined) {
|
613
615
|
let parent = this._element.parentElement;
|
614
616
|
while (parent) {
|
@@ -616,12 +618,12 @@ const SnkFilterBar = class {
|
|
616
618
|
const snkDataUnit = parent;
|
617
619
|
this.dataUnit = snkDataUnit.dataUnit;
|
618
620
|
if (this.dataUnit) {
|
619
|
-
this.registryFilterProvider();
|
621
|
+
await this.registryFilterProvider();
|
620
622
|
}
|
621
623
|
else {
|
622
|
-
snkDataUnit.addEventListener("dataUnitReady", (evt) => {
|
624
|
+
snkDataUnit.addEventListener("dataUnitReady", async (evt) => {
|
623
625
|
this.dataUnit = evt.detail;
|
624
|
-
this.registryFilterProvider();
|
626
|
+
await this.registryFilterProvider();
|
625
627
|
});
|
626
628
|
}
|
627
629
|
break;
|
@@ -630,7 +632,7 @@ const SnkFilterBar = class {
|
|
630
632
|
parent = parent.parentElement;
|
631
633
|
}
|
632
634
|
else {
|
633
|
-
this.registryFilterProvider();
|
635
|
+
await this.registryFilterProvider();
|
634
636
|
}
|
635
637
|
}
|
636
638
|
/**
|
@@ -658,27 +660,34 @@ const SnkFilterBar = class {
|
|
658
660
|
onComplete: callbackOnApplyFilter,
|
659
661
|
disablePersonalizedFilter: this.disablePersonalizedFilter,
|
660
662
|
getMessage: (key, props) => this.getMessage(key, props),
|
661
|
-
onAddPersonalizedFilter: () => this.addPersonalizedFilter(),
|
662
|
-
onEditPersonalizedFilter: (id) => this.editPersonalizedFilter(id),
|
663
|
-
onDeletePersonalizedFilter: (filter, configName) => this.deletePersonalizedFilter(filter, FilterItemType.PERSONALIZED, configName),
|
663
|
+
onAddPersonalizedFilter: (isDefault) => this.addPersonalizedFilter(isDefault),
|
664
|
+
onEditPersonalizedFilter: (id, isDefault) => this.editPersonalizedFilter(id, isDefault),
|
665
|
+
onDeletePersonalizedFilter: (filter, configName, isDefault) => this.deletePersonalizedFilter(filter, FilterItemType.PERSONALIZED, configName, isDefault),
|
664
666
|
};
|
665
667
|
this._filterModalFactory = new SnkFilterModalFactory(factoryParams);
|
666
668
|
await this._filterModalFactory.showModal();
|
667
669
|
}
|
668
|
-
addPersonalizedFilter() {
|
670
|
+
addPersonalizedFilter(isDefault = false) {
|
669
671
|
this._filterModalFactory.closeModal();
|
672
|
+
this._isDefaultFilter = isDefault;
|
670
673
|
this.personalizedFilterId = undefined;
|
671
674
|
this.showPersonalizedFilter = true;
|
672
675
|
window.requestAnimationFrame(() => {
|
673
676
|
this._elPersonalizedFilter.createPersonalizedFilter();
|
674
677
|
});
|
675
678
|
}
|
676
|
-
editPersonalizedFilter(id) {
|
679
|
+
editPersonalizedFilter(id, isDefault = false) {
|
677
680
|
this._filterModalFactory.closeModal();
|
681
|
+
this._isDefaultFilter = isDefault;
|
678
682
|
this.showPersonalizedFilter = true;
|
679
683
|
this.personalizedFilterId = id;
|
680
684
|
}
|
681
|
-
deletePersonalizedFilter(filter, filterItemType, configName) {
|
685
|
+
deletePersonalizedFilter(filter, filterItemType, configName, isDefault = false) {
|
686
|
+
if (isDefault) {
|
687
|
+
ConfigStorage.removeDefaultFilter(filter, this.resourceID, configName);
|
688
|
+
this._isDefaultFilter = false;
|
689
|
+
return;
|
690
|
+
}
|
682
691
|
if (filterItemType === FilterItemType.PERSONALIZED) {
|
683
692
|
ConfigStorage.removePersonalizedFilter(filter, this.resourceID, configName);
|
684
693
|
}
|
@@ -696,6 +705,7 @@ const SnkFilterBar = class {
|
|
696
705
|
hidePersonalizedFilter() {
|
697
706
|
this.personalizedFilterId = undefined;
|
698
707
|
this.showPersonalizedFilter = false;
|
708
|
+
this._isDefaultFilter = false;
|
699
709
|
}
|
700
710
|
async componentWillLoad() {
|
701
711
|
var _a;
|
@@ -726,7 +736,7 @@ const SnkFilterBar = class {
|
|
726
736
|
return undefined;
|
727
737
|
}
|
728
738
|
if (this.showPersonalizedFilter) {
|
729
|
-
return h("snk-personalized-filter", { class: "filter-bar__personalized-filter", filterId: this.personalizedFilterId, ref: (el) => this._elPersonalizedFilter = el, onEzCancel: () => this.handleHidePersonalizedFilter(false), onEzAfterSave: () => this.handleHidePersonalizedFilter(true), entityUri: this.dataUnit.name, configName: this.configName, resourceID: this.resourceID });
|
739
|
+
return h("snk-personalized-filter", { class: "filter-bar__personalized-filter", filterId: this.personalizedFilterId, ref: (el) => this._elPersonalizedFilter = el, isDefaultFilter: this._isDefaultFilter, onEzCancel: () => this.handleHidePersonalizedFilter(false), onEzAfterSave: () => this.handleHidePersonalizedFilter(true), entityUri: this.dataUnit.name, configName: this.configName, resourceID: this.resourceID });
|
730
740
|
}
|
731
741
|
if (this.mode !== "regular") {
|
732
742
|
return (h(Host, { "data-mode": this.mode }, this.getPersonalizedFilterVariableItems(), this.mode === 'button' && (h("ez-button", { class: "ez-margin-left--medium", size: "small", label: this.getMessage('snkFilterBar.filters', undefined, 'Filtros'), onClick: this.showFilterModal.bind(this) }))));
|
@@ -1206,6 +1216,7 @@ const SnkFilterModal = class {
|
|
1206
1216
|
this.editPersonalizedFilter = undefined;
|
1207
1217
|
this.deletePersonalizedFilter = undefined;
|
1208
1218
|
this.filtersToDelete = [];
|
1219
|
+
this.filterDefaultToDelete = undefined;
|
1209
1220
|
this.disablePersonalizedFilter = undefined;
|
1210
1221
|
}
|
1211
1222
|
/**
|
@@ -1264,8 +1275,12 @@ const SnkFilterModal = class {
|
|
1264
1275
|
return copy;
|
1265
1276
|
});
|
1266
1277
|
}
|
1278
|
+
hasChangeToSave() {
|
1279
|
+
const hasChangesPersonalizedFilters = ObjectUtils.objectToString(this.filters) !== ObjectUtils.objectToString(this._originalFilterConfig);
|
1280
|
+
return hasChangesPersonalizedFilters;
|
1281
|
+
}
|
1267
1282
|
handleClose() {
|
1268
|
-
const hasChangesToSave =
|
1283
|
+
const hasChangesToSave = this.hasChangeToSave();
|
1269
1284
|
if (!hasChangesToSave) {
|
1270
1285
|
this.closeModal();
|
1271
1286
|
return;
|
@@ -1276,7 +1291,7 @@ const SnkFilterModal = class {
|
|
1276
1291
|
});
|
1277
1292
|
}
|
1278
1293
|
handleApplyFilters() {
|
1279
|
-
const filterPersonalized = this.filters.find(filter => filter.filterType === FilterType.CUSTOM_FILTER);
|
1294
|
+
const filterPersonalized = this.filters.find(filter => filter.filterType === FilterType.CUSTOM_FILTER || filter.filterType === FilterType.DEFAULT_FILTER);
|
1280
1295
|
if (this.isValidCustomFilter(filterPersonalized)) {
|
1281
1296
|
this.applyFilters(this.filters);
|
1282
1297
|
}
|
@@ -1286,6 +1301,11 @@ const SnkFilterModal = class {
|
|
1286
1301
|
});
|
1287
1302
|
this.filtersToDelete = [];
|
1288
1303
|
}
|
1304
|
+
if (this.filterDefaultToDelete) {
|
1305
|
+
this.deletePersonalizedFilter(this.filterDefaultToDelete, this.configName, true);
|
1306
|
+
this._defaultFilter = undefined;
|
1307
|
+
this.filterDefaultToDelete = undefined;
|
1308
|
+
}
|
1289
1309
|
}
|
1290
1310
|
isValidCustomFilter(filterPersonalized) {
|
1291
1311
|
const isValid = PersonalizedFilterUtils.validateVariableValues(filterPersonalized);
|
@@ -1410,6 +1430,39 @@ const SnkFilterModal = class {
|
|
1410
1430
|
const lines = this.mountFiltersLines(listItems);
|
1411
1431
|
return (h("ez-collapsible-box", { class: "snk-filter-modal__collapsible-box", headerSize: "medium", value: true, label: label }, !!appliedFilters && (h("ez-badge", { class: "ez-badge--primary-subtle", slot: "rightSlot", label: appliedFilters === null || appliedFilters === void 0 ? void 0 : appliedFilters.toString() })), h("div", { class: "ez-row snk-filter-modal__rendered-items" }, lines.map(this.renderFilterLine.bind(this))), shouldRenderFooter && (h("div", { class: "ez-flex ez-flex--justify-end grow" }, h("ez-button", { class: "ez-button--tertiary", size: "medium", label: "Limpar", onClick: () => isSingleItem ? this.handleClearSigleFilter(listItems[0]) : this.handleClearFilterList(listItems) })))));
|
1412
1432
|
}
|
1433
|
+
handleDeleteFilter() {
|
1434
|
+
this._application.confirm(this.getMessage('snkPersonalizedFilter.deleteConfirm.title'), this.getMessage('snkPersonalizedFilter.info.deleteDefaultFilterConfirm'), "alert-circle-inverted", "critical").then((actionConfirmed) => {
|
1435
|
+
if (!actionConfirmed) {
|
1436
|
+
return;
|
1437
|
+
}
|
1438
|
+
this.filterDefaultToDelete = this._defaultFilter;
|
1439
|
+
this.filters = this.filters.filter(filter => filter.id !== FilterType.DEFAULT_FILTER);
|
1440
|
+
});
|
1441
|
+
}
|
1442
|
+
handleActionSelectedDefaultFilter({ detail: action }) {
|
1443
|
+
switch (action) {
|
1444
|
+
case ActionDefaultFilter.CREATE:
|
1445
|
+
this.addPersonalizedFilter(true);
|
1446
|
+
break;
|
1447
|
+
case ActionDefaultFilter.EDIT:
|
1448
|
+
this.editPersonalizedFilter(this._defaultFilter.id, true);
|
1449
|
+
break;
|
1450
|
+
case ActionDefaultFilter.REMOVE:
|
1451
|
+
this.handleDeleteFilter();
|
1452
|
+
break;
|
1453
|
+
}
|
1454
|
+
}
|
1455
|
+
getCustomFilter(filters) {
|
1456
|
+
const customFilters = filters.filter((filter) => filter.filterType === FilterType.CUSTOM_FILTER);
|
1457
|
+
return customFilters;
|
1458
|
+
}
|
1459
|
+
getDefaultFilter(filters) {
|
1460
|
+
const defaultFilter = filters.find((item) => item.id === DefaultFilter.id);
|
1461
|
+
return defaultFilter;
|
1462
|
+
}
|
1463
|
+
componentWillLoad() {
|
1464
|
+
this._application = ApplicationContext.getContextValue('__SNK__APPLICATION__');
|
1465
|
+
}
|
1413
1466
|
componentWillRender() {
|
1414
1467
|
this._modalTitle = this.getCustomMessage('title');
|
1415
1468
|
this._okButtonLabel = this.getCustomMessage('okButtonLabel');
|
@@ -1420,10 +1473,11 @@ const SnkFilterModal = class {
|
|
1420
1473
|
this._originalFilterConfig = this.filters;
|
1421
1474
|
}
|
1422
1475
|
render() {
|
1423
|
-
|
1476
|
+
this._defaultFilter = this.getDefaultFilter(this.filters);
|
1477
|
+
const customFilters = this.getCustomFilter(this.filters);
|
1424
1478
|
const quickFilters = this.filters.filter(filter => filter.filterType === FilterType.QUICK_FILTER);
|
1425
1479
|
const otherFilters = this.filters.filter(filter => filter.filterType === FilterType.OTHER_FILTERS);
|
1426
|
-
return (h("ez-modal-container", { class: "snk-filter-modal__container", modalTitle: this._modalTitle, cancelButtonLabel: this._cancelButtonLabel, okButtonLabel: this._okButtonLabel, onEzModalAction: this.modalActionListener.bind(this) }, h("div", { class: "snk-filter-modal__content ez-col--sd-12" }, !this.disablePersonalizedFilter && this.renderCollapsibleFilterBox(this.getCustomMessage('customFilters'), customFilters, false, false), this.renderCollapsibleFilterBox(this.getCustomMessage('quickFilters'), quickFilters, false), otherFilters.map(filter => this.renderCollapsibleFilterBox(filter.label, [filter], true)))));
|
1480
|
+
return (h("ez-modal-container", { class: "snk-filter-modal__container", modalTitle: this._modalTitle, cancelButtonLabel: this._cancelButtonLabel, okButtonLabel: this._okButtonLabel, onEzModalAction: this.modalActionListener.bind(this) }, h("div", { class: "snk-filter-modal__content ez-col--sd-12" }, h("snk-default-filter", { getMessage: this.getCustomMessage.bind(this), hasDefaultFilter: !!this._defaultFilter, onActionSelected: this.handleActionSelectedDefaultFilter.bind(this) }), !this.disablePersonalizedFilter && this.renderCollapsibleFilterBox(this.getCustomMessage('customFilters'), customFilters, false, false), this.renderCollapsibleFilterBox(this.getCustomMessage('quickFilters'), quickFilters, false), otherFilters.map(filter => this.renderCollapsibleFilterBox(filter.label, [filter], true)))));
|
1427
1481
|
}
|
1428
1482
|
};
|
1429
1483
|
SnkFilterModal.style = snkFilterModalCss;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-479e1293.js';
|
2
2
|
import { ElementIDUtils } from '@sankhyalabs/core';
|
3
3
|
import { F as FilterItemType } from './filter-item-type.enum-d45e026f.js';
|
4
4
|
import { E as EPresentationMode } from './presentationMode-783bbf9d.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-479e1293.js';
|
2
2
|
import { ElementIDUtils } from '@sankhyalabs/core';
|
3
3
|
import { F as FilterItemType } from './filter-item-type.enum-d45e026f.js';
|
4
4
|
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host, g as getElement } from './index-
|
1
|
+
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host, g as getElement } from './index-479e1293.js';
|
2
2
|
import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
|
3
3
|
import { F as FilterItemType } from './filter-item-type.enum-d45e026f.js';
|
4
4
|
import { ElementIDUtils, ObjectUtils } from '@sankhyalabs/core';
|
5
5
|
import { E as EPresentationMode } from './presentationMode-783bbf9d.js';
|
6
|
-
import { P as PersonalizedFilterUtils } from './PersonalizedFilterUtils-
|
7
|
-
import './index-
|
6
|
+
import { P as PersonalizedFilterUtils } from './PersonalizedFilterUtils-2db38ff2.js';
|
7
|
+
import './index-8acbae97.js';
|
8
8
|
|
9
9
|
const SnkFilterDetail = class {
|
10
10
|
constructor(hostRef) {
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { h, r as registerInstance, c as createEvent, g as getElement } from './index-
|
1
|
+
import { h, r as registerInstance, c as createEvent, g as getElement } from './index-479e1293.js';
|
2
2
|
import { S as SelectedItemType } from './index-620ac460.js';
|
3
3
|
import { UserInterface, JSUtils, ElementIDUtils, ApplicationContext, StringUtils, DataType } from '@sankhyalabs/core';
|
4
4
|
import { ModalAction } from '@sankhyalabs/ezui/dist/collection/components/ez-modal-container';
|
5
|
-
import { b as FilterConfigType, c as FilterEntities, d as FilterUserConfigTypes } from './index-
|
6
|
-
import { P as PersonalizedFilterUtils } from './PersonalizedFilterUtils-
|
5
|
+
import { b as FilterConfigType, c as FilterEntities, d as FilterUserConfigTypes } from './index-8acbae97.js';
|
6
|
+
import { P as PersonalizedFilterUtils } from './PersonalizedFilterUtils-2db38ff2.js';
|
7
7
|
import './filter-item-type.enum-d45e026f.js';
|
8
8
|
|
9
9
|
const ICON_MODES = {
|