From 12fe137c5547a1ebdf9942abdd4d51fabd9dd3ac Mon Sep 17 00:00:00 2001 From: Johan Lahti Date: Thu, 10 Aug 2023 16:42:35 +0200 Subject: [PATCH] refactor: add border to above search group --- .../property-panel/data/data-panel/index.ts | 37 +++++++++---------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/packages/sn-filter-pane/src/ext/property-panel/data/data-panel/index.ts b/packages/sn-filter-pane/src/ext/property-panel/data/data-panel/index.ts index 509a1ced..551eac16 100644 --- a/packages/sn-filter-pane/src/ext/property-panel/data/data-panel/index.ts +++ b/packages/sn-filter-pane/src/ext/property-panel/data/data-panel/index.ts @@ -72,28 +72,27 @@ export default function getDataPanelItems(env: IEnv) { }, }, }, - searchGroup: { + showSearch: { + ref: 'searchEnabled', + type: 'boolean', + component: 'switch', + translation: 'properties.filterpane.searchField', + options: [ + { + value: true, + translation: 'properties.show', + }, + { + value: false, + translation: 'properties.hide', + }, + ], + defaultValue: true, + }, + wildCardSearchGroup: { type: 'items', - translation: 'properties.filterpane.searchMode', grouped: true, items: { - showSearch: { - ref: 'searchEnabled', - type: 'boolean', - component: 'switch', - translation: 'properties.filterpane.searchField', - options: [ - { - value: true, - translation: 'properties.show', - }, - { - value: false, - translation: 'properties.hide', - }, - ], - defaultValue: true, - }, wildCardSearch: { translation: 'properties.filterpane.searchMode', ref: 'wildCardSearch',