From 1e0bc8b31290bfa323bd19e173e0a6d92ba35cf9 Mon Sep 17 00:00:00 2001 From: yevhenii-moroziuk Date: Wed, 12 Mar 2025 11:25:55 +0200 Subject: [PATCH 1/7] HCK-10339: Override config --- .../entity_level/entityLevelConfig.json | 131 ++++++++++++++++++ 1 file changed, 131 insertions(+) diff --git a/properties_pane/entity_level/entityLevelConfig.json b/properties_pane/entity_level/entityLevelConfig.json index 0bdcb21..22e4aa6 100644 --- a/properties_pane/entity_level/entityLevelConfig.json +++ b/properties_pane/entity_level/entityLevelConfig.json @@ -466,6 +466,137 @@ making sure that you maintain a proper JSON format. "value": "response" } }, + { + "fieldName": "$ref", + "fieldKeyword": "refPath", + "shouldValidate": true, + "fieldTooltip": "ref path", + "fieldType": "details", + "template": "selectPolyglotDefinition", + "changeAction": "changePolyglotReferencePath", + "dependency": { + "type": "and", + "values": [ + { + "key": "refPath", + "exist": true + }, + { + "key": "refType", + "value": "polyglot" + }, + { + "type": "not", + "values": [ + { + "key": "entityType", + "value": "response" + } + ] + } + ] + }, + "disabledOnCondition": [ + { + "type": "and", + "values": [ + { + "env": "browser" + }, + { + "type": "or", + "values": [ + { + "key": "refType", + "value": "external" + }, + { + "key": "refType", + "value": "polyglot" + } + ] + }, + { + "type": "not", + "values": [ + { + "key": "entityType", + "value": "response" + } + ] + } + ] + } + ], + "enableForReference": true + }, + { + "propertyName": "$ref", + "propertyKeyword": "refPath", + "propertyValidate": false, + "propertyType": "referencePath", + "enableForReference": true, + "readonly": false, + "dependency": { + "type": "and", + "values": [ + { + "type": "or", + "values": [ + { + "key": "refPath", + "exist": false + }, + { + "key": "refType", + "value": "model" + } + ] + }, + { + "type": "not", + "values": [ + { + "key": "entityType", + "value": "response" + } + ] + } + ] + } + }, + { + "fieldName": "$ref", + "fieldKeyword": "refPath", + "shouldValidate": true, + "fieldTooltip": "Edit ref path", + "fieldType": "details", + "template": "showExternalDefinition", + "dependency": { + "type": "and", + "values": [ + { + "key": "refPath", + "exist": true + }, + { + "key": "refType", + "value": "external" + }, + { + "type": "not", + "values": [ + { + "key": "entityType", + "value": "response" + } + ] + } + ] + }, + "enableForReference": true, + "changeAction": "changeReferencePath" + }, { "propertyName": "Activated", "propertyKeyword": "isActivated", From abebfe2c1f3a6a98fe5c0f23861e6fb542c46a6a Mon Sep 17 00:00:00 2001 From: yevhenii-moroziuk Date: Wed, 12 Mar 2025 12:08:21 +0200 Subject: [PATCH 2/7] HCK-10339: Override config --- .../entity_level/entityLevelConfig.json | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/properties_pane/entity_level/entityLevelConfig.json b/properties_pane/entity_level/entityLevelConfig.json index 22e4aa6..7b1fb16 100644 --- a/properties_pane/entity_level/entityLevelConfig.json +++ b/properties_pane/entity_level/entityLevelConfig.json @@ -597,6 +597,36 @@ making sure that you maintain a proper JSON format. "enableForReference": true, "changeAction": "changeReferencePath" }, + { + "fieldName": "Reference description", + "fieldKeyword": "refDescription", + "shouldValidate": false, + "fieldTooltip": "This description is specific to this instance of the definition", + "skipTooltipPrefix": true, + "fieldType": "details", + "template": "textarea", + "changeAction": "changeCollectionProperty", + "valueType": "string", + "enableForReference": true, + "dependency": { + "type": "and", + "values": [ + { + "key": "type", + "value": "reference" + }, + { + "type": "not", + "values": [ + { + "key": "entityType", + "value": "response" + } + ] + } + ] + } + }, { "propertyName": "Activated", "propertyKeyword": "isActivated", From 52b7f350b2117e1697da96c115d949ad7891e53d Mon Sep 17 00:00:00 2001 From: yevhenii-moroziuk Date: Wed, 12 Mar 2025 15:12:59 +0200 Subject: [PATCH 3/7] HCK-10339: Simplify config --- .../entity_level/entityLevelConfig.json | 155 +----------------- 1 file changed, 1 insertion(+), 154 deletions(-) diff --git a/properties_pane/entity_level/entityLevelConfig.json b/properties_pane/entity_level/entityLevelConfig.json index 7b1fb16..f8177aa 100644 --- a/properties_pane/entity_level/entityLevelConfig.json +++ b/properties_pane/entity_level/entityLevelConfig.json @@ -472,160 +472,7 @@ making sure that you maintain a proper JSON format. "shouldValidate": true, "fieldTooltip": "ref path", "fieldType": "details", - "template": "selectPolyglotDefinition", - "changeAction": "changePolyglotReferencePath", - "dependency": { - "type": "and", - "values": [ - { - "key": "refPath", - "exist": true - }, - { - "key": "refType", - "value": "polyglot" - }, - { - "type": "not", - "values": [ - { - "key": "entityType", - "value": "response" - } - ] - } - ] - }, - "disabledOnCondition": [ - { - "type": "and", - "values": [ - { - "env": "browser" - }, - { - "type": "or", - "values": [ - { - "key": "refType", - "value": "external" - }, - { - "key": "refType", - "value": "polyglot" - } - ] - }, - { - "type": "not", - "values": [ - { - "key": "entityType", - "value": "response" - } - ] - } - ] - } - ], - "enableForReference": true - }, - { - "propertyName": "$ref", - "propertyKeyword": "refPath", - "propertyValidate": false, - "propertyType": "referencePath", - "enableForReference": true, - "readonly": false, - "dependency": { - "type": "and", - "values": [ - { - "type": "or", - "values": [ - { - "key": "refPath", - "exist": false - }, - { - "key": "refType", - "value": "model" - } - ] - }, - { - "type": "not", - "values": [ - { - "key": "entityType", - "value": "response" - } - ] - } - ] - } - }, - { - "fieldName": "$ref", - "fieldKeyword": "refPath", - "shouldValidate": true, - "fieldTooltip": "Edit ref path", - "fieldType": "details", - "template": "showExternalDefinition", - "dependency": { - "type": "and", - "values": [ - { - "key": "refPath", - "exist": true - }, - { - "key": "refType", - "value": "external" - }, - { - "type": "not", - "values": [ - { - "key": "entityType", - "value": "response" - } - ] - } - ] - }, - "enableForReference": true, - "changeAction": "changeReferencePath" - }, - { - "fieldName": "Reference description", - "fieldKeyword": "refDescription", - "shouldValidate": false, - "fieldTooltip": "This description is specific to this instance of the definition", - "skipTooltipPrefix": true, - "fieldType": "details", - "template": "textarea", - "changeAction": "changeCollectionProperty", - "valueType": "string", - "enableForReference": true, - "dependency": { - "type": "and", - "values": [ - { - "key": "type", - "value": "reference" - }, - { - "type": "not", - "values": [ - { - "key": "entityType", - "value": "response" - } - ] - } - ] - } + "disabled": true }, { "propertyName": "Activated", From bc9f863c07ecde2715e31b32af7ae8cf342ec4cc Mon Sep 17 00:00:00 2001 From: yevhenii-moroziuk Date: Wed, 12 Mar 2025 15:28:12 +0200 Subject: [PATCH 4/7] HCK-10339: Hide property --- properties_pane/entity_level/entityLevelConfig.json | 2 -- 1 file changed, 2 deletions(-) diff --git a/properties_pane/entity_level/entityLevelConfig.json b/properties_pane/entity_level/entityLevelConfig.json index f8177aa..6c1eb92 100644 --- a/properties_pane/entity_level/entityLevelConfig.json +++ b/properties_pane/entity_level/entityLevelConfig.json @@ -467,9 +467,7 @@ making sure that you maintain a proper JSON format. } }, { - "fieldName": "$ref", "fieldKeyword": "refPath", - "shouldValidate": true, "fieldTooltip": "ref path", "fieldType": "details", "disabled": true From 545bddd0def13d05b73f8ede70e9577842b3f881 Mon Sep 17 00:00:00 2001 From: yevhenii-moroziuk Date: Wed, 12 Mar 2025 15:42:30 +0200 Subject: [PATCH 5/7] HCK-10339: Hide property --- properties_pane/entity_level/entityLevelConfig.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/properties_pane/entity_level/entityLevelConfig.json b/properties_pane/entity_level/entityLevelConfig.json index 6c1eb92..19dd70c 100644 --- a/properties_pane/entity_level/entityLevelConfig.json +++ b/properties_pane/entity_level/entityLevelConfig.json @@ -468,9 +468,7 @@ making sure that you maintain a proper JSON format. }, { "fieldKeyword": "refPath", - "fieldTooltip": "ref path", - "fieldType": "details", - "disabled": true + "hidden": true }, { "propertyName": "Activated", From 8e6a7b34933a77685da10f16c9672841646fc06d Mon Sep 17 00:00:00 2001 From: yevhenii-moroziuk Date: Wed, 12 Mar 2025 15:45:51 +0200 Subject: [PATCH 6/7] HCK-10339: Use propertyKeyword instead of fieldKeyword --- properties_pane/entity_level/entityLevelConfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/properties_pane/entity_level/entityLevelConfig.json b/properties_pane/entity_level/entityLevelConfig.json index 19dd70c..56a227c 100644 --- a/properties_pane/entity_level/entityLevelConfig.json +++ b/properties_pane/entity_level/entityLevelConfig.json @@ -467,7 +467,7 @@ making sure that you maintain a proper JSON format. } }, { - "fieldKeyword": "refPath", + "propertyKeyword": "refPath", "hidden": true }, { From 8affc0e3c3847efcf7713846ff56b1ad49acdfa5 Mon Sep 17 00:00:00 2001 From: yevhenii-moroziuk Date: Wed, 12 Mar 2025 17:21:32 +0200 Subject: [PATCH 7/7] HCK-10339: Restore important props --- properties_pane/entity_level/entityLevelConfig.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/properties_pane/entity_level/entityLevelConfig.json b/properties_pane/entity_level/entityLevelConfig.json index 56a227c..0e5a688 100644 --- a/properties_pane/entity_level/entityLevelConfig.json +++ b/properties_pane/entity_level/entityLevelConfig.json @@ -467,7 +467,9 @@ making sure that you maintain a proper JSON format. } }, { + "propertyName": "$ref", "propertyKeyword": "refPath", + "propertyType": "details", "hidden": true }, {