@jield/solodb-react-components 1.1.2 → 1.1.3
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 +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +27 -17
- package/dist/index.js.map +1 -1
- package/dist/src/modules/run/components/shared/parts_table/element/partActionsButtons.d.ts +1 -1
- package/dist/src/modules/run/components/shared/parts_table/element/partActionsDropdown.d.ts +1 -1
- package/dist/src/modules/run/hooks/run/parts/usePartActions.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -28331,30 +28331,26 @@ function yL({ runStep: e, parts: t, selectedParts: n, getRunPart: r, getRunStepP
|
|
|
28331
28331
|
n,
|
|
28332
28332
|
r,
|
|
28333
28333
|
i
|
|
28334
|
-
]), m = l((t) => {
|
|
28334
|
+
]), m = l(async (t) => {
|
|
28335
28335
|
let n = p();
|
|
28336
28336
|
if (n.length === 0) return;
|
|
28337
28337
|
let r = n.filter((e) => e.available_actions.some(({ id: e }) => e === t));
|
|
28338
28338
|
if (r.length !== 0) {
|
|
28339
28339
|
if (r.length === 1) {
|
|
28340
28340
|
let e = r[0];
|
|
28341
|
-
|
|
28341
|
+
iL(o, {
|
|
28342
28342
|
runStepPart: e,
|
|
28343
|
-
|
|
28344
|
-
}).then((t) => {
|
|
28345
|
-
iL(o, {
|
|
28343
|
+
latestAction: await ft({
|
|
28346
28344
|
runStepPart: e,
|
|
28347
|
-
|
|
28348
|
-
})
|
|
28345
|
+
runStepPartAction: t
|
|
28346
|
+
})
|
|
28349
28347
|
});
|
|
28350
28348
|
return;
|
|
28351
28349
|
}
|
|
28352
|
-
pt({ runStepPartActions: r.map((e) => ({
|
|
28350
|
+
aL(o, e, { latestActions: await pt({ runStepPartActions: r.map((e) => ({
|
|
28353
28351
|
runStepPart: e,
|
|
28354
28352
|
runStepPartAction: t
|
|
28355
|
-
})) })
|
|
28356
|
-
aL(o, e, { latestActions: t });
|
|
28357
|
-
});
|
|
28353
|
+
})) }) });
|
|
28358
28354
|
}
|
|
28359
28355
|
}, [
|
|
28360
28356
|
p,
|
|
@@ -28441,12 +28437,26 @@ var xL = ({ onSelectAll: e, onSelectNone: t, hasSelectedParts: n, actionsDropdow
|
|
|
28441
28437
|
n && r
|
|
28442
28438
|
]
|
|
28443
28439
|
});
|
|
28444
|
-
}, SL = ({ availableActions: e, onActionSelected: t }) =>
|
|
28445
|
-
|
|
28446
|
-
|
|
28447
|
-
|
|
28448
|
-
|
|
28449
|
-
|
|
28440
|
+
}, SL = ({ availableActions: e, onActionSelected: t }) => {
|
|
28441
|
+
if (e.length === 0) return null;
|
|
28442
|
+
let [n, r] = v(null), i = async (e) => {
|
|
28443
|
+
if (n === null) {
|
|
28444
|
+
r(e);
|
|
28445
|
+
try {
|
|
28446
|
+
await t(e);
|
|
28447
|
+
} finally {
|
|
28448
|
+
r(null);
|
|
28449
|
+
}
|
|
28450
|
+
}
|
|
28451
|
+
};
|
|
28452
|
+
return /* @__PURE__ */ x(b, { children: e.map(({ id: e, name: t }) => /* @__PURE__ */ S("button", {
|
|
28453
|
+
type: "button",
|
|
28454
|
+
className: `btn btn-sm ${qI[e]}`,
|
|
28455
|
+
onClick: () => void i(e),
|
|
28456
|
+
disabled: n !== null,
|
|
28457
|
+
children: [n === e && /* @__PURE__ */ x("span", { className: "spinner-border spinner-border-sm me-1" }), t]
|
|
28458
|
+
}, e)) });
|
|
28459
|
+
}, CL = ({ run: e, runStep: n }) => {
|
|
28450
28460
|
let r = O({ queries: [{
|
|
28451
28461
|
queryKey: [
|
|
28452
28462
|
"runParts",
|