@ws-ui/roles-editor 1.13.0-dev.5 → 1.13.0-dev.6
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.es.js
CHANGED
|
@@ -32686,25 +32686,29 @@ const vS = xr(null), yle = () => ({
|
|
|
32686
32686
|
host: n,
|
|
32687
32687
|
onSetTabFlags: i,
|
|
32688
32688
|
history: o,
|
|
32689
|
-
|
|
32689
|
+
selectedTab: a,
|
|
32690
|
+
onTabChange: s,
|
|
32691
|
+
initialState: c
|
|
32690
32692
|
}) => {
|
|
32691
|
-
const [
|
|
32693
|
+
const [d, u] = Dl(ble, {
|
|
32692
32694
|
...yle(),
|
|
32693
|
-
...
|
|
32694
|
-
}),
|
|
32695
|
+
...c
|
|
32696
|
+
}), h = Re(
|
|
32695
32697
|
() => t ? XV(t) : null,
|
|
32696
32698
|
[t]
|
|
32697
|
-
),
|
|
32699
|
+
), p = Re(
|
|
32698
32700
|
() => ({
|
|
32699
|
-
catalog:
|
|
32701
|
+
catalog: h,
|
|
32700
32702
|
qodly: r,
|
|
32701
32703
|
host: n,
|
|
32702
32704
|
onSetTabFlags: i,
|
|
32703
|
-
history: o
|
|
32705
|
+
history: o,
|
|
32706
|
+
selectedTab: a,
|
|
32707
|
+
onTabChange: s
|
|
32704
32708
|
}),
|
|
32705
|
-
[
|
|
32709
|
+
[h, r, n, i, o, a, s]
|
|
32706
32710
|
);
|
|
32707
|
-
return /* @__PURE__ */ I(vS.Provider, { value: { state:
|
|
32711
|
+
return /* @__PURE__ */ I(vS.Provider, { value: { state: d, dispatch: u, external: p }, children: e });
|
|
32708
32712
|
};
|
|
32709
32713
|
function xle() {
|
|
32710
32714
|
var s, c, d, u;
|
|
@@ -32752,7 +32756,10 @@ function xle() {
|
|
|
32752
32756
|
),
|
|
32753
32757
|
getCatalog: me(() => n.catalog ?? null, [n.catalog]),
|
|
32754
32758
|
getQodly: me(() => n.qodly ?? !1, [n.qodly]),
|
|
32755
|
-
getSelectedTab: me(
|
|
32759
|
+
getSelectedTab: me(
|
|
32760
|
+
() => n.selectedTab ?? t.selectedTab,
|
|
32761
|
+
[n.selectedTab, t.selectedTab]
|
|
32762
|
+
),
|
|
32756
32763
|
getForceLogin: me(
|
|
32757
32764
|
() => t.forceLogin ?? !1,
|
|
32758
32765
|
[t.forceLogin]
|
|
@@ -32824,9 +32831,12 @@ function xle() {
|
|
|
32824
32831
|
},
|
|
32825
32832
|
[]
|
|
32826
32833
|
),
|
|
32827
|
-
toggleTab: me(
|
|
32828
|
-
|
|
32829
|
-
|
|
32834
|
+
toggleTab: me(
|
|
32835
|
+
(h) => {
|
|
32836
|
+
n.onTabChange && n.onTabChange(h), n.selectedTab === void 0 && r({ type: "TOGGLE_TAB", payload: h });
|
|
32837
|
+
},
|
|
32838
|
+
[n.onTabChange, n.selectedTab]
|
|
32839
|
+
),
|
|
32830
32840
|
toggleForceLogin: me(
|
|
32831
32841
|
(h) => {
|
|
32832
32842
|
a.markEdit(), r({ type: "TOGGLE_FORCE_LOGIN", payload: h });
|
|
@@ -40175,9 +40185,11 @@ const Kue = ({ selectedRole: e }) => {
|
|
|
40175
40185
|
initialValue: e,
|
|
40176
40186
|
catalog: t,
|
|
40177
40187
|
history: r,
|
|
40178
|
-
|
|
40188
|
+
activeTab: n,
|
|
40189
|
+
onTabChange: i,
|
|
40190
|
+
...o
|
|
40179
40191
|
}) => {
|
|
40180
|
-
const
|
|
40192
|
+
const a = Re(
|
|
40181
40193
|
() => ({
|
|
40182
40194
|
...Mo(G7(e)),
|
|
40183
40195
|
flags: { touched: !1 }
|
|
@@ -40187,10 +40199,12 @@ const Kue = ({ selectedRole: e }) => {
|
|
|
40187
40199
|
return /* @__PURE__ */ I(
|
|
40188
40200
|
wle,
|
|
40189
40201
|
{
|
|
40190
|
-
initialState:
|
|
40202
|
+
initialState: a,
|
|
40191
40203
|
catalog: t,
|
|
40192
40204
|
history: r,
|
|
40193
|
-
|
|
40205
|
+
selectedTab: n,
|
|
40206
|
+
onTabChange: i,
|
|
40207
|
+
children: /* @__PURE__ */ I(ide, { initialValue: e, ...o })
|
|
40194
40208
|
}
|
|
40195
40209
|
);
|
|
40196
40210
|
};
|