From 919767ef8a45322a5fc179548e9bc92d622703ed Mon Sep 17 00:00:00 2001 From: MichalKinas <113341662+MichalKinas@users.noreply.github.com> Date: Mon, 5 Jun 2023 11:58:30 +0200 Subject: [PATCH] [ACS-5181] Introduce logical search filter (#3245) * [ACS-5181] Introduce logical search filter * [ACS-5181] Correct filters order --- app/src/app.config.json.tpl | 13 +++++++ app/src/assets/plugins/app.search.json | 13 +++++++ .../aca-content/assets/app.extensions.json | 39 +++++++++++++++++++ projects/aca-content/assets/i18n/en.json | 3 +- 4 files changed, 67 insertions(+), 1 deletion(-) diff --git a/app/src/app.config.json.tpl b/app/src/app.config.json.tpl index 97adb099ad..9bc7f5d1a2 100644 --- a/app/src/app.config.json.tpl +++ b/app/src/app.config.json.tpl @@ -946,6 +946,19 @@ "TAG" ], "categories": [ + { + "id": "logic", + "name": "SEARCH.CATEGORIES.LOGIC", + "enabled": true, + "component": { + "selector": "logical-filter", + "settings": { + "allowUpdateOnChange": false, + "hideDefaultAction": true, + "field": "cm:name,cm:title,cm:description,TEXT,TAG" + } + } + }, { "id": "queryName", "name": "SEARCH.SEARCH_HEADER.FILTERS.NAME.TITLE", diff --git a/app/src/assets/plugins/app.search.json b/app/src/assets/plugins/app.search.json index b7d56f4569..4c13765700 100644 --- a/app/src/assets/plugins/app.search.json +++ b/app/src/assets/plugins/app.search.json @@ -135,6 +135,19 @@ } }, "categories": [ + { + "id": "logic", + "name": "SEARCH.CATEGORIES.LOGIC", + "enabled": true, + "component": { + "selector": "logical-filter", + "settings": { + "allowUpdateOnChange": false, + "hideDefaultAction": true, + "field": "cm:name,cm:title,cm:description,TEXT,TAG" + } + } + }, { "id": "createdDateRange", "name": "SEARCH.CATEGORIES.CREATED_DATE", diff --git a/projects/aca-content/assets/app.extensions.json b/projects/aca-content/assets/app.extensions.json index a39d329755..16631b0bfb 100644 --- a/projects/aca-content/assets/app.extensions.json +++ b/projects/aca-content/assets/app.extensions.json @@ -1485,6 +1485,19 @@ } }, "categories": [ + { + "id": "logic", + "name": "SEARCH.CATEGORIES.LOGIC", + "enabled": true, + "component": { + "selector": "logical-filter", + "settings": { + "allowUpdateOnChange": false, + "hideDefaultAction": true, + "field": "cm:name,cm:title,cm:description,TEXT,TAG" + } + } + }, { "id": "size", "name": "SEARCH.CATEGORIES.SIZE", @@ -1641,6 +1654,19 @@ ] }, "categories": [ + { + "id": "logic", + "name": "SEARCH.CATEGORIES.LOGIC", + "enabled": true, + "component": { + "selector": "logical-filter", + "settings": { + "allowUpdateOnChange": false, + "hideDefaultAction": true, + "field": "cm:name,cm:title,cm:description,TEXT,TAG" + } + } + }, { "id": "createdDateRange", "name": "SEARCH.CATEGORIES.CREATED_DATE", @@ -1795,6 +1821,19 @@ } }, "categories": [ + { + "id": "logic", + "name": "SEARCH.CATEGORIES.LOGIC", + "enabled": true, + "component": { + "selector": "logical-filter", + "settings": { + "allowUpdateOnChange": false, + "hideDefaultAction": true, + "field": "cm:name,cm:title,cm:description,TEXT,TAG" + } + } + }, { "id": "createdDateRange", "name": "SEARCH.CATEGORIES.CREATED_DATE", diff --git a/projects/aca-content/assets/i18n/en.json b/projects/aca-content/assets/i18n/en.json index 52e89999f7..12ecd8ac15 100644 --- a/projects/aca-content/assets/i18n/en.json +++ b/projects/aca-content/assets/i18n/en.json @@ -568,7 +568,8 @@ }, "CREATED_DATE": "Created date", "EFFECTIVITY_FROM": "Effectivity from", - "EFFECTIVITY_TO": "Effectivity to" + "EFFECTIVITY_TO": "Effectivity to", + "LOGIC": "Logic" }, "FACET_QUERIES": { "TODAY": "Today",