@ws-ui/store 1.5.5 → 1.5.7
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.map +1 -1
- package/dist/index.es.js +78 -73
- package/dist/index.es.js.map +1 -1
- package/dist/package.json +2 -2
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -12356,9 +12356,7 @@ const N$ = Y("explorer/uploadFileAndGetResponse", async (e) => {
|
|
|
12356
12356
|
path: t,
|
|
12357
12357
|
asText: [L.CLASS, L.METHOD].includes(n)
|
|
12358
12358
|
});
|
|
12359
|
-
return a.error && (a.flags.expanded ? await i(Rr(a.path)) : await i(
|
|
12360
|
-
as(a.path)
|
|
12361
|
-
)), {
|
|
12359
|
+
return a.error && (a.flags.expanded ? await i(Rr(a.path)) : await i(as(a.path))), {
|
|
12362
12360
|
qodly: f,
|
|
12363
12361
|
file: h,
|
|
12364
12362
|
parentNode: a
|
|
@@ -14106,76 +14104,79 @@ const ov = Lt({
|
|
|
14106
14104
|
return n(Nt(s)), s;
|
|
14107
14105
|
n(Tu());
|
|
14108
14106
|
}
|
|
14109
|
-
), TN = Y(
|
|
14110
|
-
|
|
14111
|
-
|
|
14112
|
-
|
|
14113
|
-
|
|
14114
|
-
|
|
14115
|
-
|
|
14116
|
-
|
|
14117
|
-
|
|
14118
|
-
|
|
14119
|
-
|
|
14120
|
-
|
|
14121
|
-
|
|
14122
|
-
|
|
14123
|
-
|
|
14124
|
-
|
|
14125
|
-
|
|
14126
|
-
|
|
14127
|
-
|
|
14128
|
-
|
|
14129
|
-
|
|
14130
|
-
|
|
14131
|
-
|
|
14132
|
-
|
|
14133
|
-
|
|
14134
|
-
|
|
14135
|
-
|
|
14136
|
-
i == null || i.forEach((v) => {
|
|
14137
|
-
var y;
|
|
14138
|
-
v.path === `Classes/${e}___[<QODLY_ID>]` ? (y = v.children) == null || y.forEach((_) => {
|
|
14139
|
-
var E, x, O, D;
|
|
14140
|
-
const w = { ..._, name: (E = _.info) == null ? void 0 : E.filename };
|
|
14141
|
-
((x = _.info) == null ? void 0 : x.filename) === e ? (f.class.found = !0, f.class.file = w) : ((O = _.info) == null ? void 0 : O.filename) === `${e}Entity` ? (f.entity.found = !0, f.entity.file = w) : ((D = _.info) == null ? void 0 : D.filename) === n && (f.selection.found = !0, f.selection.file = w);
|
|
14142
|
-
}) : (v.name === f.class.filename_update && (f.class.newNameTaken = !0), v.name === f.entity.filename_update && (f.entity.newNameTaken = !0), v.name === f.selection.filename_update && (f.selection.newNameTaken = !0));
|
|
14143
|
-
});
|
|
14144
|
-
const p = Object.entries(f).reduce((v, y) => {
|
|
14145
|
-
const [_, w] = y;
|
|
14146
|
-
return w.found ? w.newNameTaken ? [
|
|
14147
|
-
...v,
|
|
14148
|
-
{
|
|
14149
|
-
type: "error",
|
|
14150
|
-
message: `Cannot rename ${_} file to ${w.filename_update} because it already exists. The existing file will be used instead!`
|
|
14151
|
-
}
|
|
14152
|
-
] : v : [
|
|
14153
|
-
...v,
|
|
14154
|
-
{
|
|
14155
|
-
type: "warning",
|
|
14156
|
-
message: `${e} ${_} file was not found`
|
|
14157
|
-
}
|
|
14158
|
-
];
|
|
14159
|
-
}, []);
|
|
14160
|
-
p.length > 0 && s(
|
|
14161
|
-
dn({
|
|
14162
|
-
message: "The following errors were encountered during dataclass rename:",
|
|
14163
|
-
views: {
|
|
14164
|
-
tips: p
|
|
14107
|
+
), TN = Y(
|
|
14108
|
+
"model/rename-dataclass",
|
|
14109
|
+
async ({ dataclassId: e, selectionId: n, name: t }, { getState: a, dispatch: s }) => {
|
|
14110
|
+
const i = await s(rP()).then(
|
|
14111
|
+
(v) => v.payload
|
|
14112
|
+
);
|
|
14113
|
+
if (!a().explorer.find(
|
|
14114
|
+
(v) => v.path === Ge.CLASSES
|
|
14115
|
+
)) throw new Error("Classes folder was not found!");
|
|
14116
|
+
const f = {
|
|
14117
|
+
class: {
|
|
14118
|
+
found: !1,
|
|
14119
|
+
newNameTaken: !1,
|
|
14120
|
+
file: null,
|
|
14121
|
+
filename_update: t
|
|
14122
|
+
},
|
|
14123
|
+
entity: {
|
|
14124
|
+
found: !1,
|
|
14125
|
+
newNameTaken: !1,
|
|
14126
|
+
file: null,
|
|
14127
|
+
filename_update: `${t}Entity`
|
|
14128
|
+
},
|
|
14129
|
+
selection: {
|
|
14130
|
+
found: !1,
|
|
14131
|
+
newNameTaken: !1,
|
|
14132
|
+
file: null,
|
|
14133
|
+
filename_update: `${t}Selection`
|
|
14165
14134
|
}
|
|
14166
|
-
}
|
|
14167
|
-
|
|
14168
|
-
|
|
14169
|
-
|
|
14170
|
-
|
|
14171
|
-
|
|
14172
|
-
|
|
14173
|
-
|
|
14174
|
-
|
|
14135
|
+
};
|
|
14136
|
+
i == null || i.forEach((v) => {
|
|
14137
|
+
var y;
|
|
14138
|
+
v.path === `Classes/${e}___[<QODLY_ID>]` ? (y = v.children) == null || y.forEach((_) => {
|
|
14139
|
+
var E, x, O, D;
|
|
14140
|
+
const w = { ..._, name: (E = _.info) == null ? void 0 : E.filename };
|
|
14141
|
+
((x = _.info) == null ? void 0 : x.filename) === e ? (f.class.found = !0, f.class.file = w) : ((O = _.info) == null ? void 0 : O.filename) === `${e}Entity` ? (f.entity.found = !0, f.entity.file = w) : ((D = _.info) == null ? void 0 : D.filename) === n && (f.selection.found = !0, f.selection.file = w);
|
|
14142
|
+
}) : (v.name === f.class.filename_update && (f.class.newNameTaken = !0), v.name === f.entity.filename_update && (f.entity.newNameTaken = !0), v.name === f.selection.filename_update && (f.selection.newNameTaken = !0));
|
|
14143
|
+
});
|
|
14144
|
+
const p = Object.entries(f).reduce((v, y) => {
|
|
14145
|
+
const [_, w] = y;
|
|
14146
|
+
return w.found ? w.newNameTaken ? [
|
|
14147
|
+
...v,
|
|
14148
|
+
{
|
|
14149
|
+
type: "error",
|
|
14150
|
+
message: `Cannot rename ${_} file to ${w.filename_update} because it already exists. The existing file will be used instead!`
|
|
14151
|
+
}
|
|
14152
|
+
] : v : [
|
|
14153
|
+
...v,
|
|
14154
|
+
{
|
|
14155
|
+
type: "warning",
|
|
14156
|
+
message: `${e} ${_} file was not found`
|
|
14157
|
+
}
|
|
14158
|
+
];
|
|
14159
|
+
}, []);
|
|
14160
|
+
p.length > 0 && s(
|
|
14161
|
+
dn({
|
|
14162
|
+
message: "The following errors were encountered during dataclass rename:",
|
|
14163
|
+
views: {
|
|
14164
|
+
tips: p
|
|
14165
|
+
}
|
|
14166
|
+
})
|
|
14167
|
+
);
|
|
14168
|
+
const h = Object.values(f).filter(
|
|
14169
|
+
(v) => v.found && v.file && !v.newNameTaken
|
|
14170
|
+
);
|
|
14171
|
+
await Promise.all(
|
|
14172
|
+
h.map(
|
|
14173
|
+
async (v) => await s(
|
|
14174
|
+
ka({ file: v.file, newname: v.filename_update })
|
|
14175
|
+
)
|
|
14175
14176
|
)
|
|
14176
|
-
)
|
|
14177
|
-
|
|
14178
|
-
|
|
14177
|
+
);
|
|
14178
|
+
}
|
|
14179
|
+
), Es = {
|
|
14179
14180
|
DATACLASS_DELETE: "dataclass.delete",
|
|
14180
14181
|
DATACLASS_DRAGGABLE: "dataclass.draggable"
|
|
14181
14182
|
}, vP = {
|
|
@@ -15904,7 +15905,9 @@ exposed Function ${t.meta.arg.name}()
|
|
|
15904
15905
|
return fe.entries(ZP).forEach(([c, l]) => {
|
|
15905
15906
|
const f = [], p = a[c];
|
|
15906
15907
|
p && p.length ? l.forEach((h) => {
|
|
15907
|
-
const v = p.find(
|
|
15908
|
+
const v = p.find(
|
|
15909
|
+
(y) => y.id === h.id
|
|
15910
|
+
);
|
|
15908
15911
|
v ? eI(v, h) && f.push(v) : (i = !0, f.push(h));
|
|
15909
15912
|
}) : (f.push(...l), i = !0), s[c] = f;
|
|
15910
15913
|
}), a = {
|
|
@@ -16176,7 +16179,9 @@ const gv = Lt({
|
|
|
16176
16179
|
...a
|
|
16177
16180
|
}
|
|
16178
16181
|
};
|
|
16179
|
-
return c.payload.status === "finished" && (c.payload.duration = Math.ceil(
|
|
16182
|
+
return c.payload.status === "finished" && (c.payload.duration = Math.ceil(
|
|
16183
|
+
((/* @__PURE__ */ new Date()).valueOf() - new Date(c.payload.date).valueOf()) / 1e3
|
|
16184
|
+
)), c;
|
|
16180
16185
|
}
|
|
16181
16186
|
return i;
|
|
16182
16187
|
});
|