awing-library 2.1.2-dev.63 → 2.1.2-dev.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js
CHANGED
|
@@ -26596,7 +26596,7 @@ var WorkspaceSharing$3 = {
|
|
|
26596
26596
|
Create: "Thêm",
|
|
26597
26597
|
AddALL: "Thêm tất cả"
|
|
26598
26598
|
},
|
|
26599
|
-
AliasDestination: "
|
|
26599
|
+
AliasDestination: "Mã chia sẻ",
|
|
26600
26600
|
SourceDirectoryId: "Thư mục nguồn"
|
|
26601
26601
|
};
|
|
26602
26602
|
var Language$3 = {
|
|
@@ -173871,6 +173871,7 @@ function LogicExpressionInput(props) {
|
|
|
173871
173871
|
inputValue: inputValue,
|
|
173872
173872
|
onInputChange: handleInputChange,
|
|
173873
173873
|
options: suggestions,
|
|
173874
|
+
disabled: rest.disabled,
|
|
173874
173875
|
renderInput: params => jsxRuntimeExports.jsx(TextField, Object.assign({}, params, {
|
|
173875
173876
|
error: !isValid,
|
|
173876
173877
|
helperText: isValid ? '' : t("LogicExpression.".concat(errorCode)),
|
|
@@ -182423,18 +182424,14 @@ const CreateOrEdit$6 = () => {
|
|
|
182423
182424
|
value: item.value.toString(),
|
|
182424
182425
|
text: item.key
|
|
182425
182426
|
})),
|
|
182426
|
-
|
|
182427
|
-
readOnly: !!objectFilterId
|
|
182428
|
-
}
|
|
182427
|
+
disabled: !!objectFilterId
|
|
182429
182428
|
}, {
|
|
182430
182429
|
fieldName: 'name',
|
|
182431
182430
|
type: FIELD_TYPE.TEXT,
|
|
182432
182431
|
label: t('Filter.Name'),
|
|
182433
182432
|
required: true,
|
|
182434
182433
|
length: 200,
|
|
182435
|
-
|
|
182436
|
-
readOnly: !!objectFilterId && !fieldEditPermission.name
|
|
182437
|
-
}
|
|
182434
|
+
disabled: !!objectFilterId && !fieldEditPermission.name
|
|
182438
182435
|
}, {
|
|
182439
182436
|
fieldName: 'logicalExpression',
|
|
182440
182437
|
type: FIELD_TYPE.LOGIC_EXPRESSION,
|
|
@@ -182648,7 +182645,7 @@ const CreateOrEdit$5 = () => {
|
|
|
182648
182645
|
// State nhận giá trị khi get API
|
|
182649
182646
|
const [notificationFilter, setNotificationFilter] = useState(defaultObjectFilter);
|
|
182650
182647
|
const [loadingNotificationFilter, setLoadingNotificationFilter] = useState(false);
|
|
182651
|
-
const [
|
|
182648
|
+
const [fieldEditPermission, setFieldEditPermission] = useState({
|
|
182652
182649
|
configType: false,
|
|
182653
182650
|
name: false,
|
|
182654
182651
|
logicalExpression: false
|
|
@@ -182812,7 +182809,8 @@ const CreateOrEdit$5 = () => {
|
|
|
182812
182809
|
type: FIELD_TYPE.TEXT,
|
|
182813
182810
|
label: t('Filter.Name'),
|
|
182814
182811
|
required: true,
|
|
182815
|
-
length: 200
|
|
182812
|
+
length: 200,
|
|
182813
|
+
disabled: !!notificationFilterId && !fieldEditPermission.name
|
|
182816
182814
|
}, {
|
|
182817
182815
|
fieldName: 'graphqlQueryId',
|
|
182818
182816
|
type: FIELD_TYPE.SELECT,
|
|
@@ -182824,7 +182822,8 @@ const CreateOrEdit$5 = () => {
|
|
|
182824
182822
|
value: (_b = (_a = item.id) === null || _a === void 0 ? void 0 : _a.toString()) !== null && _b !== void 0 ? _b : '',
|
|
182825
182823
|
text: (_c = item.name) !== null && _c !== void 0 ? _c : ''
|
|
182826
182824
|
};
|
|
182827
|
-
})
|
|
182825
|
+
}),
|
|
182826
|
+
disabled: !!notificationFilterId
|
|
182828
182827
|
}, {
|
|
182829
182828
|
fieldName: 'logicalExpression',
|
|
182830
182829
|
type: FIELD_TYPE.LOGIC_EXPRESSION,
|
|
@@ -182832,7 +182831,8 @@ const CreateOrEdit$5 = () => {
|
|
|
182832
182831
|
label: t('Filter.LogicExpression'),
|
|
182833
182832
|
functionStructures: (_a = logicExpressionsStructure === null || logicExpressionsStructure === void 0 ? void 0 : logicExpressionsStructure.functionStructures) !== null && _a !== void 0 ? _a : [],
|
|
182834
182833
|
objectStructures: objectStructuresByObjectTypeCode !== null && objectStructuresByObjectTypeCode !== void 0 ? objectStructuresByObjectTypeCode : [],
|
|
182835
|
-
defaultValue: notificationFilter.logicalExpression
|
|
182834
|
+
defaultValue: notificationFilter.logicalExpression,
|
|
182835
|
+
disabled: !!notificationFilterId && !fieldEditPermission.logicalExpression
|
|
182836
182836
|
}],
|
|
182837
182837
|
oldValue: notificationFilter,
|
|
182838
182838
|
onUpdate: (obj, formValid, key) => {
|
|
@@ -183888,9 +183888,7 @@ graphqlQueries) => {
|
|
|
183888
183888
|
text: (_c = (_b = item === null || item === void 0 ? void 0 : item.name) === null || _b === void 0 ? void 0 : _b.toString()) !== null && _c !== void 0 ? _c : ''
|
|
183889
183889
|
};
|
|
183890
183890
|
}),
|
|
183891
|
-
|
|
183892
|
-
readOnly: mode === FormMode.EDIT ? !fieldPermissions.objectType : false
|
|
183893
|
-
}
|
|
183891
|
+
disabled: mode === FormMode.EDIT ? !fieldPermissions.objectType : false
|
|
183894
183892
|
}, {
|
|
183895
183893
|
fieldName: 'configType',
|
|
183896
183894
|
type: FIELD_TYPE.SELECT,
|
|
@@ -183900,9 +183898,7 @@ graphqlQueries) => {
|
|
|
183900
183898
|
value: value,
|
|
183901
183899
|
text: t("ConfigTypeCode.".concat(value))
|
|
183902
183900
|
})),
|
|
183903
|
-
|
|
183904
|
-
readOnly: mode === FormMode.EDIT ? !fieldPermissions.configType : false
|
|
183905
|
-
}
|
|
183901
|
+
disabled: mode === FormMode.EDIT ? !fieldPermissions.configType : false
|
|
183906
183902
|
// defaultValue: mode === FormMode.EDIT ? templateData?.template?.configType : ConfigTypeCodeMap.OBJECT_AND_CHANGED,
|
|
183907
183903
|
}, {
|
|
183908
183904
|
fieldName: 'name',
|
|
@@ -183910,9 +183906,7 @@ graphqlQueries) => {
|
|
|
183910
183906
|
label: t('Template.Label.Name'),
|
|
183911
183907
|
required: true,
|
|
183912
183908
|
length: 200,
|
|
183913
|
-
|
|
183914
|
-
readOnly: mode === FormMode.EDIT ? !fieldPermissions.name : false
|
|
183915
|
-
}
|
|
183909
|
+
disabled: mode === FormMode.EDIT ? !fieldPermissions.name : false
|
|
183916
183910
|
}, {
|
|
183917
183911
|
fieldName: 'channelType',
|
|
183918
183912
|
type: FIELD_TYPE.SELECT,
|
|
@@ -183925,9 +183919,7 @@ graphqlQueries) => {
|
|
|
183925
183919
|
text: value
|
|
183926
183920
|
};
|
|
183927
183921
|
}),
|
|
183928
|
-
|
|
183929
|
-
readOnly: mode === FormMode.EDIT ? !fieldPermissions.channelType : false
|
|
183930
|
-
}
|
|
183922
|
+
disabled: mode === FormMode.EDIT ? !fieldPermissions.channelType : false
|
|
183931
183923
|
}, {
|
|
183932
183924
|
fieldName: 'contentType',
|
|
183933
183925
|
type: FIELD_TYPE.SELECT,
|
|
@@ -183940,9 +183932,7 @@ graphqlQueries) => {
|
|
|
183940
183932
|
text: value
|
|
183941
183933
|
};
|
|
183942
183934
|
}),
|
|
183943
|
-
|
|
183944
|
-
readOnly: mode === FormMode.EDIT ? !fieldPermissions.contentType : false
|
|
183945
|
-
}
|
|
183935
|
+
disabled: mode === FormMode.EDIT ? !fieldPermissions.contentType : false
|
|
183946
183936
|
}];
|
|
183947
183937
|
const channelType = (templateInput === null || templateInput === void 0 ? void 0 : templateInput.channelType) || (templateData === null || templateData === void 0 ? void 0 : templateData.channelType);
|
|
183948
183938
|
if (channelType === 'FILE') {
|