@vgip/meta-ui 1.4.2 → 1.4.3
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.
|
@@ -792,15 +792,14 @@ const metaNormalizer = (meta, integration, resourceType) => {
|
|
|
792
792
|
if (resourceType === 'CandidateNote' || resourceType === 'ContactNote') {
|
|
793
793
|
metaV3.layout.editable = false;
|
|
794
794
|
}
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
}
|
|
795
|
+
// } else if (integrationCode === 'CLIO') {
|
|
796
|
+
// if (resourceType === 'PhoneCommunication') {
|
|
797
|
+
// for (const f of metaV3.layout.sections[0].fields) {
|
|
798
|
+
// if (f.name === 'time_entries') {
|
|
799
|
+
// f.visible = 'CREATE';
|
|
800
|
+
// }
|
|
801
|
+
// }
|
|
802
|
+
// }
|
|
804
803
|
}
|
|
805
804
|
return sortObj(metaV3);
|
|
806
805
|
};
|
|
@@ -979,15 +978,20 @@ class FieldAbstract {
|
|
|
979
978
|
this.parentChangeSubject.subscribe((value) => {
|
|
980
979
|
if (value && value.hasOwnProperty(par.split('.')[0])) {
|
|
981
980
|
setHiddenByPropertyConfig(par);
|
|
981
|
+
if (this.meta.$hidden) {
|
|
982
|
+
delete this.parent[this.meta.name];
|
|
983
|
+
}
|
|
982
984
|
}
|
|
983
985
|
});
|
|
984
986
|
}
|
|
985
987
|
}
|
|
986
|
-
else if (this.meta.hidden === '
|
|
987
|
-
this.meta
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
this.meta
|
|
988
|
+
else if (typeof (this.meta.hidden) === 'string') {
|
|
989
|
+
if (this.meta.hidden.toUpperCase() === 'CREATE') {
|
|
990
|
+
this.meta.$hidden = !this.isPersistedParent;
|
|
991
|
+
}
|
|
992
|
+
else if (this.meta.hidden.toUpperCase() === 'UPDATE') {
|
|
993
|
+
this.meta.$hidden = this.isPersistedParent;
|
|
994
|
+
}
|
|
991
995
|
}
|
|
992
996
|
else {
|
|
993
997
|
this.meta.$hidden = !!this.meta.hidden;
|
|
@@ -1023,11 +1027,13 @@ class FieldAbstract {
|
|
|
1023
1027
|
});
|
|
1024
1028
|
}
|
|
1025
1029
|
}
|
|
1026
|
-
else if (this.meta.visible === '
|
|
1027
|
-
this.meta
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
this.meta
|
|
1030
|
+
else if (typeof (this.meta.visible) === 'string') {
|
|
1031
|
+
if (this.meta.visible.toUpperCase() === 'CREATE') {
|
|
1032
|
+
this.meta.$invisible = this.isPersistedParent;
|
|
1033
|
+
}
|
|
1034
|
+
else if (this.meta.visible.toUpperCase() === 'UPDATE') {
|
|
1035
|
+
this.meta.$invisible = !this.isPersistedParent;
|
|
1036
|
+
}
|
|
1031
1037
|
}
|
|
1032
1038
|
}
|
|
1033
1039
|
if (this.theme !== 'inherit') {
|