From cee0f3f05cb6ad997145832faf96cf789d72be68 Mon Sep 17 00:00:00 2001 From: basseche Date: Mon, 20 Jan 2025 14:50:42 +0100 Subject: [PATCH 01/16] Improve GUI Criteria Filter : PlaceHolder Ok Signed-off-by: basseche --- .../inputs/reactQueryBuilder/PropertyValueEditor.tsx | 11 ++++++++++- src/translations/en/filterExpertEn.ts | 1 + src/translations/fr/filterExpertFr.ts | 1 + 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/components/inputs/reactQueryBuilder/PropertyValueEditor.tsx b/src/components/inputs/reactQueryBuilder/PropertyValueEditor.tsx index eddf6cf3..4da204dd 100644 --- a/src/components/inputs/reactQueryBuilder/PropertyValueEditor.tsx +++ b/src/components/inputs/reactQueryBuilder/PropertyValueEditor.tsx @@ -109,7 +109,16 @@ export function PropertyValueEditor(props: ExpertFilterPropertyProps) { options={predefinedValues ?? []} title={valueEditorProps?.title} multiple - renderInput={(params) => } + renderInput={(params) => { + console.log('[FieldConstants.PROPERTY_VALUES] : ', [FieldConstants.PROPERTY_VALUES]); + return ( + + ); + }} freeSolo autoSelect onChange={(event, value: any) => { diff --git a/src/translations/en/filterExpertEn.ts b/src/translations/en/filterExpertEn.ts index 8e5afcf5..9bba0506 100644 --- a/src/translations/en/filterExpertEn.ts +++ b/src/translations/en/filterExpertEn.ts @@ -189,4 +189,5 @@ export const filterExpertEn = { 'The operator will be changed and will be applied to all the rules already created in the group.', lowShortCircuitCurrentLimit: 'Low short-circuit current limit', highShortCircuitCurrentLimit: 'High short-circuit current limit', + valuesList: 'Values list', }; diff --git a/src/translations/fr/filterExpertFr.ts b/src/translations/fr/filterExpertFr.ts index 1e4c5d49..df07dcb7 100644 --- a/src/translations/fr/filterExpertFr.ts +++ b/src/translations/fr/filterExpertFr.ts @@ -188,4 +188,5 @@ export const filterExpertFr = { changeOperatorMessage: "L'opérateur sera modifié et s'appliquera sur toutes les règles déjà créées dans le groupe.", lowShortCircuitCurrentLimit: 'Limite ICC min', highShortCircuitCurrentLimit: 'Limite ICC max', + valuesList: 'Liste de valeurs', }; From 71ecf9944d70cbf726ea539eab4b964bab79aeda Mon Sep 17 00:00:00 2001 From: basseche Date: Mon, 20 Jan 2025 16:01:38 +0100 Subject: [PATCH 02/16] Improve GUI Criteria Filter : Spacing Ok Signed-off-by: basseche --- .../inputs/reactQueryBuilder/PropertyValueEditor.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/inputs/reactQueryBuilder/PropertyValueEditor.tsx b/src/components/inputs/reactQueryBuilder/PropertyValueEditor.tsx index 4da204dd..5387f207 100644 --- a/src/components/inputs/reactQueryBuilder/PropertyValueEditor.tsx +++ b/src/components/inputs/reactQueryBuilder/PropertyValueEditor.tsx @@ -71,7 +71,7 @@ export function PropertyValueEditor(props: ExpertFilterPropertyProps) { ); return ( - + - +