@ws-ui/store 0.2.8 → 0.2.9
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 +27 -27
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +26 -25
- package/dist/index.es.js.map +1 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -6877,7 +6877,7 @@ const Zr = () => ({
|
|
|
6877
6877
|
`
|
|
6878
6878
|
}),
|
|
6879
6879
|
collection: ({ name: e, qodly: n }) => ({
|
|
6880
|
-
name: e
|
|
6880
|
+
name: `${e}Selection`,
|
|
6881
6881
|
content: n ? `extends EntitySelection
|
|
6882
6882
|
` : `Class extends EntitySelection
|
|
6883
6883
|
`
|
|
@@ -11632,19 +11632,20 @@ const XI = Q(
|
|
|
11632
11632
|
}
|
|
11633
11633
|
}
|
|
11634
11634
|
), Ki = async (e, n = {}) => {
|
|
11635
|
+
var t;
|
|
11635
11636
|
try {
|
|
11636
|
-
const
|
|
11637
|
+
const a = e.path.split(".").at(-1), i = await Rn({
|
|
11637
11638
|
verb: it.GET_INFO,
|
|
11638
11639
|
path: e.path,
|
|
11639
|
-
content:
|
|
11640
|
-
as: z1(
|
|
11641
|
-
}),
|
|
11640
|
+
content: ((t = e.editor) == null ? void 0 : t.key) !== "editors:img",
|
|
11641
|
+
as: z1(a) ? "json" : "text"
|
|
11642
|
+
}), s = {
|
|
11642
11643
|
editor: e.editor
|
|
11643
|
-
},
|
|
11644
|
-
|
|
11645
|
-
const { content:
|
|
11644
|
+
}, c = ec(e.path);
|
|
11645
|
+
c === j.METHOD && (s.attributes = Pc(i.content), i.content = ih(i.content, {}));
|
|
11646
|
+
const { content: f, date: d, ext: p } = i;
|
|
11646
11647
|
return n.confirmed === void 0 && (n.confirmed = !0), {
|
|
11647
|
-
date:
|
|
11648
|
+
date: d,
|
|
11648
11649
|
view: {
|
|
11649
11650
|
panel: {
|
|
11650
11651
|
isOpen: !1,
|
|
@@ -11653,27 +11654,27 @@ const XI = Q(
|
|
|
11653
11654
|
}
|
|
11654
11655
|
},
|
|
11655
11656
|
flags: {
|
|
11656
|
-
enabled: ["WebForm", "MForm"].includes(
|
|
11657
|
+
enabled: ["WebForm", "MForm"].includes(p),
|
|
11657
11658
|
confirmed: n.confirmed
|
|
11658
11659
|
},
|
|
11659
|
-
extra:
|
|
11660
|
+
extra: s,
|
|
11660
11661
|
name: e.name,
|
|
11661
11662
|
path: e.path,
|
|
11662
|
-
type:
|
|
11663
|
-
initialContent:
|
|
11664
|
-
content:
|
|
11663
|
+
type: c,
|
|
11664
|
+
initialContent: f,
|
|
11665
|
+
content: f,
|
|
11665
11666
|
history: {
|
|
11666
11667
|
stack: [],
|
|
11667
11668
|
active: -1,
|
|
11668
11669
|
locked: !1
|
|
11669
11670
|
}
|
|
11670
11671
|
};
|
|
11671
|
-
} catch (
|
|
11672
|
-
const { data:
|
|
11673
|
-
if (
|
|
11672
|
+
} catch (a) {
|
|
11673
|
+
const { data: i } = a;
|
|
11674
|
+
if (i.__ERROR.find((s) => s.errCode === Zu.FILE_NOT_FOUND))
|
|
11674
11675
|
switch (e.path) {
|
|
11675
11676
|
case Ot: {
|
|
11676
|
-
const
|
|
11677
|
+
const s = {
|
|
11677
11678
|
permissions: {
|
|
11678
11679
|
allowed: []
|
|
11679
11680
|
},
|
|
@@ -11691,12 +11692,12 @@ const XI = Q(
|
|
|
11691
11692
|
name: "Roles & Privileges",
|
|
11692
11693
|
path: e.path,
|
|
11693
11694
|
type: j.ROLES,
|
|
11694
|
-
initialContent:
|
|
11695
|
-
content:
|
|
11695
|
+
initialContent: s,
|
|
11696
|
+
content: s
|
|
11696
11697
|
};
|
|
11697
11698
|
}
|
|
11698
11699
|
case Ir: {
|
|
11699
|
-
const
|
|
11700
|
+
const s = {};
|
|
11700
11701
|
return {
|
|
11701
11702
|
date: (/* @__PURE__ */ new Date()).toISOString(),
|
|
11702
11703
|
flags: n,
|
|
@@ -11708,12 +11709,12 @@ const XI = Q(
|
|
|
11708
11709
|
name: "Settings",
|
|
11709
11710
|
path: e.path,
|
|
11710
11711
|
type: j.SETTINGS,
|
|
11711
|
-
initialContent:
|
|
11712
|
-
content:
|
|
11712
|
+
initialContent: s,
|
|
11713
|
+
content: s
|
|
11713
11714
|
};
|
|
11714
11715
|
}
|
|
11715
11716
|
}
|
|
11716
|
-
throw
|
|
11717
|
+
throw a;
|
|
11717
11718
|
}
|
|
11718
11719
|
}, ci = Q(
|
|
11719
11720
|
"explorer/openFile",
|
|
@@ -14448,7 +14449,7 @@ exposed Function ${t.meta.arg.name}()
|
|
|
14448
14449
|
`, a.flags = { ...a.flags, touched: !0, confirmed: !0 };
|
|
14449
14450
|
const i = a.content.split(`
|
|
14450
14451
|
`);
|
|
14451
|
-
a.extra = {
|
|
14452
|
+
a.path.startsWith("Classes/") && (a.type = j.CLASS), a.extra = {
|
|
14452
14453
|
...a.extra,
|
|
14453
14454
|
editor: Qu.Code,
|
|
14454
14455
|
initialLineInfo: {
|