@kuzntsv/uikit 1.0.114 → 1.0.116
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
|
|
@@ -1851,9 +1853,12 @@ var BaseSignalPageClass = class BaseSignalPageClass {
|
|
|
1851
1853
|
dataResource;
|
|
1852
1854
|
countResource;
|
|
1853
1855
|
data = computed(() => {
|
|
1856
|
+
console.log("data start");
|
|
1854
1857
|
if (!this.dataResource) return [];
|
|
1855
1858
|
if (this.dataResource.error()) return [];
|
|
1859
|
+
console.log("data after error, this.dataResource?.value()=", this.dataResource?.value());
|
|
1856
1860
|
const rawData = this.dataResource?.value() || [];
|
|
1861
|
+
console.log("this.fnMapEntity=", this.fnMapEntity, "Array.isArray(rawData)=", Array.isArray(rawData));
|
|
1857
1862
|
return this.fnMapEntity && Array.isArray(rawData) ? rawData.map(this.fnMapEntity()) : rawData;
|
|
1858
1863
|
}, ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
|
|
1859
1864
|
length = computed(() => {
|