@kuzntsv/uikit 1.0.114 → 1.0.115
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.
|
@@ -1639,6 +1639,7 @@ var BaseSignalEditClass = class BaseSignalEditClass {
|
|
|
1639
1639
|
formAction = computed(() => this.dialogData().action, ...ngDevMode ? [{ debugName: "formAction" }] : /* istanbul ignore next */ []);
|
|
1640
1640
|
formActionIsAdd = computed(() => this.dialogData().action === Action.Add, ...ngDevMode ? [{ debugName: "formActionIsAdd" }] : /* istanbul ignore next */ []);
|
|
1641
1641
|
formActionIsEdit = computed(() => this.dialogData().action === Action.Edit, ...ngDevMode ? [{ debugName: "formActionIsEdit" }] : /* istanbul ignore next */ []);
|
|
1642
|
+
domainSchema;
|
|
1642
1643
|
domainModel = computed(() => this.dialogData().entity, ...ngDevMode ? [{ debugName: "domainModel" }] : /* istanbul ignore next */ []);
|
|
1643
1644
|
formModel = linkedSignal({
|
|
1644
1645
|
...ngDevMode ? { debugName: "formModel" } : /* istanbul ignore next */ {},
|
|
@@ -1653,6 +1654,7 @@ var BaseSignalEditClass = class BaseSignalEditClass {
|
|
|
1653
1654
|
return { ...domainModel };
|
|
1654
1655
|
}
|
|
1655
1656
|
formModelToDomainModel(formModel, originalDomain) {
|
|
1657
|
+
if (this.domainSchema) return this.domainSchema.parse(formModel);
|
|
1656
1658
|
return {
|
|
1657
1659
|
...originalDomain,
|
|
1658
1660
|
...formModel
|