@ws-ui/store 0.2.0-beta.20240712 → 0.2.0-beta.20240726.0
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/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +37 -19
- package/dist/index.es.js.map +1 -1
- package/dist/modules/webforms/thunks.d.ts +8 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -13575,7 +13575,7 @@ const ZA = {
|
|
|
13575
13575
|
c
|
|
13576
13576
|
]
|
|
13577
13577
|
};
|
|
13578
|
-
d.push(...p[e.type][c.namespace]), await cr(p);
|
|
13578
|
+
d.push(...p[e.type][c.namespace]), await cr(p, e.type);
|
|
13579
13579
|
} else
|
|
13580
13580
|
(((s = (a = i.root.tabs.find(
|
|
13581
13581
|
xn("path", e.path)
|
|
@@ -13598,13 +13598,21 @@ const ZA = {
|
|
|
13598
13598
|
d[a || s],
|
|
13599
13599
|
[]
|
|
13600
13600
|
);
|
|
13601
|
-
|
|
13602
|
-
...h,
|
|
13601
|
+
const h = e.changes ?? {
|
|
13603
13602
|
[e.property]: e.value
|
|
13604
|
-
}
|
|
13605
|
-
|
|
13606
|
-
|
|
13607
|
-
|
|
13603
|
+
};
|
|
13604
|
+
return p = p.map((v) => v.id === e.id ? {
|
|
13605
|
+
...v,
|
|
13606
|
+
...h
|
|
13607
|
+
} : v), f && await cr(
|
|
13608
|
+
{
|
|
13609
|
+
...c.sharedDatasources.sources,
|
|
13610
|
+
[i]: {
|
|
13611
|
+
[e.namespace]: p
|
|
13612
|
+
}
|
|
13613
|
+
},
|
|
13614
|
+
i
|
|
13615
|
+
), {
|
|
13608
13616
|
list: p,
|
|
13609
13617
|
path: e.path,
|
|
13610
13618
|
namespace: e.namespace
|
|
@@ -13682,10 +13690,15 @@ const ZA = {
|
|
|
13682
13690
|
is_shared: s
|
|
13683
13691
|
});
|
|
13684
13692
|
}
|
|
13685
|
-
return s && await cr(
|
|
13686
|
-
|
|
13687
|
-
|
|
13688
|
-
|
|
13693
|
+
return s && await cr(
|
|
13694
|
+
{
|
|
13695
|
+
...a.sharedDatasources.sources,
|
|
13696
|
+
[e.type]: {
|
|
13697
|
+
[e.namespace]: f
|
|
13698
|
+
}
|
|
13699
|
+
},
|
|
13700
|
+
e.type
|
|
13701
|
+
), {
|
|
13689
13702
|
list: f,
|
|
13690
13703
|
path: e.path,
|
|
13691
13704
|
namespace: e.namespace
|
|
@@ -13701,10 +13714,15 @@ const ZA = {
|
|
|
13701
13714
|
async (e, { getState: n, rejectWithValue: t }) => {
|
|
13702
13715
|
try {
|
|
13703
13716
|
const a = n(), s = !!e.namespace, i = e.namespace || e.path, f = af(e.path, a, e.type)[i].filter(Sw(e.id));
|
|
13704
|
-
return s && await cr(
|
|
13705
|
-
|
|
13706
|
-
|
|
13707
|
-
|
|
13717
|
+
return s && await cr(
|
|
13718
|
+
{
|
|
13719
|
+
...a.sharedDatasources.sources,
|
|
13720
|
+
[e.type]: {
|
|
13721
|
+
[e.namespace]: f
|
|
13722
|
+
}
|
|
13723
|
+
},
|
|
13724
|
+
e.type
|
|
13725
|
+
), {
|
|
13708
13726
|
list: f,
|
|
13709
13727
|
path: e.path,
|
|
13710
13728
|
namespace: e.namespace
|
|
@@ -14739,7 +14757,7 @@ exposed Function ${t.meta.arg.name}()
|
|
|
14739
14757
|
s.sources[n][e.namespace] ? s.sources[n][e.namespace].push(e) : s.sources[n][e.namespace] = [e];
|
|
14740
14758
|
else
|
|
14741
14759
|
return t("Namespace is required");
|
|
14742
|
-
return await cr(s.sources), s.sources;
|
|
14760
|
+
return await cr(s.sources, n), s.sources;
|
|
14743
14761
|
} catch {
|
|
14744
14762
|
return t("Error while saving the shared datasources");
|
|
14745
14763
|
}
|
|
@@ -14760,7 +14778,7 @@ exposed Function ${t.meta.arg.name}()
|
|
|
14760
14778
|
);
|
|
14761
14779
|
else
|
|
14762
14780
|
return n("Namespace not found");
|
|
14763
|
-
return await cr(a.sources), a.sources;
|
|
14781
|
+
return await cr(a.sources, i), a.sources;
|
|
14764
14782
|
} catch {
|
|
14765
14783
|
return n("Error while saving the shared datasources");
|
|
14766
14784
|
}
|
|
@@ -14785,7 +14803,7 @@ exposed Function ${t.meta.arg.name}()
|
|
|
14785
14803
|
}
|
|
14786
14804
|
};
|
|
14787
14805
|
}
|
|
14788
|
-
return await cr(a.sources), a.sources;
|
|
14806
|
+
return await cr(a.sources, e.type), a.sources;
|
|
14789
14807
|
} catch {
|
|
14790
14808
|
return n("Error while saving the shared datasources");
|
|
14791
14809
|
}
|
|
@@ -14805,7 +14823,7 @@ exposed Function ${t.meta.arg.name}()
|
|
|
14805
14823
|
else
|
|
14806
14824
|
return n("Namespace not found");
|
|
14807
14825
|
}
|
|
14808
|
-
return await cr(a.sources), a;
|
|
14826
|
+
return await cr(a.sources, i), a;
|
|
14809
14827
|
} catch {
|
|
14810
14828
|
return n("Error while saving the shared datasources");
|
|
14811
14829
|
}
|