Parameter dynamicLogicConditionTypeList

This commit is contained in:
Yurii
2026-04-23 20:37:58 +03:00
parent c47f6058ab
commit 19b5bd277f
4 changed files with 19 additions and 2 deletions

View File

@@ -111,6 +111,10 @@ class PipelinesUpdateHook implements UpdateHook
'inlineEditDisabled',
],
'view' => 'views/fields/extra/pipeline-stage',
'dynamicLogicConditionTypeList' => [
'isEmpty',
'isNotEmpty',
]
],
],
'links' => [

View File

@@ -102,7 +102,10 @@ export default class DynamicLogicConditionFieldTypeBaseView extends View {
this.itemData = this.options.itemData;
this.additionalData = (this.itemData.data || {});
this.typeList = this.getMetadata().get(`clientDefs.DynamicLogic.fieldTypes.${this.fieldType}.typeList`);
// Warning. The same data is retrieved in group-base.
this.typeList =
this.getMetadata().get(`entityDefs.${this.scope}.fields.${this.field}.dynamicLogicConditionTypeList`) ??
this.getMetadata().get(`clientDefs.DynamicLogic.fieldTypes.${this.fieldType}.typeList`);
this.baseModel = new Model();

View File

@@ -294,7 +294,12 @@ export default class DynamicLogicConditionGroupBaseView extends View {
throw new Error();
}
const type = this.getMetadata().get(['clientDefs', 'DynamicLogic', 'fieldTypes', fieldType, 'typeList'])[0];
// Warning. The same data is retrieved in conditions/base.
const typeList =
this.getMetadata().get(`entityDefs.${this.scope}.fields.${field}.dynamicLogicConditionTypeList`) ??
this.getMetadata().get(`clientDefs.DynamicLogic.fieldTypes.${fieldType}.typeList`);
const type = typeList[0];
const i = this.getIndexForNewItem();
const key = this.getKey(i);

View File

@@ -1095,6 +1095,11 @@
"type": "boolean",
"description": "Dynamic logic cannot be customized."
},
"dynamicLogicConditionTypeList": {
"type": "array",
"items": {"type": "string"},
"description": "Overrides Dynamic Logic condition types. As of 10.0."
},
"fieldManagerParamList": {
"type": "array",
"items": {