From 723790495a481ada9f3e65971b76d9f99adaa103 Mon Sep 17 00:00:00 2001 From: Yevhenii Moroziuk Date: Mon, 10 Jun 2024 10:20:38 +0300 Subject: [PATCH] HCK-6346: Min and Max Properties fields should only be available for types Map and Object (#21) * HCK-6346: fix field level config * HCK-6346: fix typo in localization --- .gitignore | 3 +++ localization/en.json | 2 +- .../field_level/fieldLevelConfig.json | 18 ++++++++++++++++++ types/geometry.json | 2 -- 4 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bf7460d --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.DS_Store +.vscode +.idea diff --git a/localization/en.json b/localization/en.json index db12742..ac7f65f 100644 --- a/localization/en.json +++ b/localization/en.json @@ -16,7 +16,7 @@ "TOOLBAR___ADD_ATTRIBUTE": "Add Column", "TOOLBAR___INSERT_FIELD": "Insert Column", "TOOLBAR___APPEND_FIELD": "Append Column", - "TOOLBAR___TOGGLE_FIELD_DETAILS": "Toogle field details", + "TOOLBAR___TOGGLE_FIELD_DETAILS": "Toggle field details", "TOOLBAR___SHOW_FOREIGN_MASTER": "Toggle foreign master", "TOOLBAR___SHOW_MODEL_VIEW": "Toggle model views", "TOOLBAR___DISTRIBUTE_ORTHOGONALLY": "Distribute tables orthogonally", diff --git a/properties_pane/field_level/fieldLevelConfig.json b/properties_pane/field_level/fieldLevelConfig.json index f22fb41..8babcec 100644 --- a/properties_pane/field_level/fieldLevelConfig.json +++ b/properties_pane/field_level/fieldLevelConfig.json @@ -3528,6 +3528,24 @@ making sure that you maintain a proper JSON format. ], "defaultValue": "object" }, + { + "propertyName": "Min Properties", + "propertyKeyword": "minProperties", + "propertyType": "numeric", + "dependency": { + "key": "subtype", + "value": "object" + } + }, + { + "propertyName": "Max Properties", + "propertyKeyword": "maxProperties", + "propertyType": "numeric", + "dependency": { + "key": "subtype", + "value": "object" + } + }, { "propertyName": "Comments", "propertyKeyword": "description", diff --git a/types/geometry.json b/types/geometry.json index 225af99..1006e40 100644 --- a/types/geometry.json +++ b/types/geometry.json @@ -11,8 +11,6 @@ "foreignCollection": "", "foreignField": [], "dependencies": [], - "minProperties": "", - "maxProperties": "", "additionalProperties": false, "enum": [] },