@beeintel/batch-image 1.0.1 → 1.1.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/README.md +186 -184
- package/dist/chunks/{AdjustToolPanel-BELqYSUR.js → AdjustToolPanel-DCNhkuE4.js} +29 -28
- package/dist/chunks/BackgroundToolPanel-D3TILm-m.js +43 -0
- package/dist/chunks/{BatchMaterials-niGKrga3.js → BatchMaterials-BPJeE3y9.js} +1 -1
- package/dist/chunks/BatchModeChoices-BuP83uOq.js +118 -0
- package/dist/chunks/{BatchOutputColorPicker-CCvmIF-b.js → BatchOutputColorPicker-CZoQzBII.js} +1 -1
- package/dist/chunks/BatchReferenceFields-B7SL__lu.js +308 -0
- package/dist/chunks/BeautifyToolPanel-DsTOjndh.js +220 -0
- package/dist/chunks/{BrandMarkToolPanel-FKxXth_3.js → BrandMarkToolPanel-Cob9bPYT.js} +319 -333
- package/dist/chunks/{ContentTrimControl-BQfigZPq.js → ContentTrimControl-CKNfHz_u.js} +1 -1
- package/dist/chunks/{CropToolPanel-BhSuHkYm.js → CropToolPanel-6MiynTP2.js} +60 -56
- package/dist/chunks/CutoutToolPanel-V-AUrbwz.js +78 -0
- package/dist/chunks/DisclosureToolPanel-DvouSIbA.js +72 -0
- package/dist/chunks/ExpandToolPanel-C98UZmBx.js +69 -0
- package/dist/chunks/{ImageEffectsToolPanel-BRLPIt4q.js → ImageEffectsToolPanel-hA0TlEix.js} +63 -52
- package/dist/chunks/{IpAuditToolPanel-DfY-mBSe.js → IpAuditToolPanel-BCQ8Kewh.js} +15 -13
- package/dist/chunks/{ListingToolPanel-B9Yh3LBK.js → ListingToolPanel-DH-xpvLp.js} +170 -184
- package/dist/chunks/{MaterialSelectionPlate-DhioUjdW.js → MaterialSelectionPlate-CQBIf6ZJ.js} +4 -4
- package/dist/chunks/MetadataToolPanel-z4RK3JCb.js +116 -0
- package/dist/chunks/{OrientToolPanel-BTrwaWBm.js → OrientToolPanel-BwtT0xKI.js} +2 -2
- package/dist/chunks/PluginActionFooter.vue_vue_type_script_setup_true_lang-DIRuJ1De.js +122 -0
- package/dist/chunks/ResizeToolPanel-BVeZbKJl.js +1171 -0
- package/dist/chunks/RetouchToolPanel-CqSzWVOK.js +358 -0
- package/dist/chunks/ShadowToolPanel-BgsCgLay.js +258 -0
- package/dist/chunks/SvgExportToolPanel-CdCXYYHF.js +208 -0
- package/dist/chunks/TranslationToolPanel-D4ETI6sf.js +102 -0
- package/dist/chunks/{UpscaleToolPanel-D0H-j2Tr.js → UpscaleToolPanel-D_hmQLEi.js} +44 -39
- package/dist/chunks/arrow-up-C1vBvuff.js +18 -0
- package/dist/chunks/{entry-DK9FjQZ_.js → entry-DVV89YMR.js} +7504 -7389
- package/dist/chunks/{loader-circle-UFoEem2a.js → loader-circle-GPucRX_4.js} +1 -1
- package/dist/chunks/{motionFeatures-D4miwXxc.js → motionFeatures-_pQ-ZW4p.js} +1 -1
- package/dist/chunks/{search-BjTSm1KS.js → search-CUAg5uDr.js} +1 -1
- package/dist/config.d.ts +6 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6 -5
- package/dist/resources.json +104 -94
- package/dist/slots.d.ts +2 -0
- package/dist/style.css +1 -1
- package/dist/tool-links.d.ts +10 -0
- package/dist/types/batch/public/config.d.ts +6 -0
- package/package.json +95 -95
- package/dist/chunks/BackgroundToolPanel-Dy_l8KFl.js +0 -41
- package/dist/chunks/BatchModeChoices-BRqn6zNI.js +0 -111
- package/dist/chunks/BatchReferenceFields-C4t7OSTw.js +0 -316
- package/dist/chunks/BeautifyToolPanel-Dc-ddaBC.js +0 -215
- package/dist/chunks/CutoutToolPanel-BfaZZSE_.js +0 -73
- package/dist/chunks/DisclosureToolPanel-B_oc5fld.js +0 -76
- package/dist/chunks/ExpandToolPanel-D_ZODTUZ.js +0 -67
- package/dist/chunks/MetadataToolPanel-KVrtb3K0.js +0 -104
- package/dist/chunks/PluginActionFooter.vue_vue_type_script_setup_true_lang-C2kJCYeA.js +0 -102
- package/dist/chunks/ResizeToolPanel-Ch_-WR74.js +0 -1178
- package/dist/chunks/RetouchToolPanel-BTS33Dsd.js +0 -350
- package/dist/chunks/ShadowToolPanel-DxJE4eyV.js +0 -254
- package/dist/chunks/SvgExportToolPanel-RHmuQARH.js +0 -219
- package/dist/chunks/TranslationToolPanel-B_qTA1hM.js +0 -125
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { defineComponent as b, computed as p, watch as h, openBlock as c, createBlock as g, withCtx as x, createElementVNode as n, createTextVNode as f, toDisplayString as s, unref as e, createVNode as v, createElementBlock as i, Fragment as k, renderList as y, createCommentVNode as P } from "vue";
|
|
2
|
-
import { F as C, H as D, G as I, P as w, I as B, _ as E } from "./entry-DK9FjQZ_.js";
|
|
3
|
-
import { u as N, _ as T, b as V } from "./PluginActionFooter.vue_vue_type_script_setup_true_lang-C2kJCYeA.js";
|
|
4
|
-
const F = ["disabled"], R = ["aria-label", "value"], A = { key: 0 }, H = ["value", "placeholder"], O = { class: "hint" }, S = {
|
|
5
|
-
key: 1,
|
|
6
|
-
class: "tool-note"
|
|
7
|
-
}, G = /* @__PURE__ */ b({
|
|
8
|
-
__name: "ExpandToolPanel",
|
|
9
|
-
props: {
|
|
10
|
-
context: {}
|
|
11
|
-
},
|
|
12
|
-
setup(t) {
|
|
13
|
-
const { ui: o } = C(), l = t, r = N(() => l.context), _ = D(), d = p(() => _?.config.value.toolOptions?.expand), m = p(() => l.context.view.skippedCount);
|
|
14
|
-
return h(
|
|
15
|
-
() => [d.value, r.value.expandPrompt, l.context.readonly],
|
|
16
|
-
() => {
|
|
17
|
-
d.value?.prompt === !1 && r.value.expandPrompt && !l.context.readonly && l.context.updateDraft({ expandPrompt: "" });
|
|
18
|
-
},
|
|
19
|
-
{ immediate: !0 }
|
|
20
|
-
), (L, u) => (c(), g(I, { context: t.context }, {
|
|
21
|
-
actions: x(() => [
|
|
22
|
-
v(T, {
|
|
23
|
-
context: t.context,
|
|
24
|
-
available: e(V)(t.context)
|
|
25
|
-
}, null, 8, ["context", "available"])
|
|
26
|
-
]),
|
|
27
|
-
default: x(() => [
|
|
28
|
-
n("fieldset", {
|
|
29
|
-
class: "tool-fields plugin-fields",
|
|
30
|
-
disabled: t.context.readonly
|
|
31
|
-
}, [
|
|
32
|
-
n("label", null, [
|
|
33
|
-
n("span", null, [
|
|
34
|
-
f(s(e(o)("common.toolPanel_16e195aa")), 1),
|
|
35
|
-
v(w, {
|
|
36
|
-
text: e(o)("common.toolPanel_c3c522b1")
|
|
37
|
-
}, null, 8, ["text"])
|
|
38
|
-
]),
|
|
39
|
-
n("select", {
|
|
40
|
-
"aria-label": e(o)("common.toolPanel_16e195aa"),
|
|
41
|
-
value: e(r).aspectRatio,
|
|
42
|
-
onChange: u[0] || (u[0] = (a) => t.context.updateDraft({ aspectRatio: a.target.value }))
|
|
43
|
-
}, [
|
|
44
|
-
(c(!0), i(k, null, y(d.value?.ratios ?? e(B), (a) => (c(), i("option", { key: a }, s(a), 1))), 128))
|
|
45
|
-
], 40, R)
|
|
46
|
-
]),
|
|
47
|
-
d.value?.prompt !== !1 ? (c(), i("label", A, [
|
|
48
|
-
f(s(e(o)("common.toolPanel_40c2f529")), 1),
|
|
49
|
-
n("textarea", {
|
|
50
|
-
value: e(r).expandPrompt,
|
|
51
|
-
maxlength: "2000",
|
|
52
|
-
rows: "3",
|
|
53
|
-
placeholder: e(o)("common.toolPanel_7ab546ce"),
|
|
54
|
-
onInput: u[1] || (u[1] = (a) => t.context.updateDraft({ expandPrompt: a.target.value }))
|
|
55
|
-
}, null, 40, H)
|
|
56
|
-
])) : P("", !0),
|
|
57
|
-
n("p", O, s(e(o)("common.toolPanel_f3ddc1b3")), 1),
|
|
58
|
-
m.value ? (c(), i("p", S, s(e(o)("common.toolPanel_e9af8109", { p0: m.value })), 1)) : P("", !0)
|
|
59
|
-
], 8, F)
|
|
60
|
-
]),
|
|
61
|
-
_: 1
|
|
62
|
-
}, 8, ["context"]));
|
|
63
|
-
}
|
|
64
|
-
}), j = /* @__PURE__ */ E(G, [["__scopeId", "data-v-0af9bdc0"]]);
|
|
65
|
-
export {
|
|
66
|
-
j as default
|
|
67
|
-
};
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { defineComponent as h, openBlock as x, createElementBlock as P, unref as a, createElementVNode as e, toDisplayString as n, createVNode as s, createBlock as k, withCtx as _ } from "vue";
|
|
2
|
-
import { F as g, a4 as b, _ as V, G as v, a5 as f } from "./entry-DK9FjQZ_.js";
|
|
3
|
-
import { u as y, a as C, c as T, _ as A } from "./PluginActionFooter.vue_vue_type_script_setup_true_lang-C2kJCYeA.js";
|
|
4
|
-
const B = ["disabled", "aria-label"], D = { class: "metadata-default" }, M = ["aria-label", "disabled", "checked"], U = ["aria-label", "disabled", "checked"], E = /* @__PURE__ */ h({
|
|
5
|
-
__name: "MetadataPanel",
|
|
6
|
-
props: {
|
|
7
|
-
modelValue: {},
|
|
8
|
-
disabled: { type: Boolean }
|
|
9
|
-
},
|
|
10
|
-
emits: ["update:modelValue"],
|
|
11
|
-
setup(l, { emit: o }) {
|
|
12
|
-
const { ui: t, uiText: i } = g(), c = l, r = o;
|
|
13
|
-
function m(p, d) {
|
|
14
|
-
c.disabled || r("update:modelValue", {
|
|
15
|
-
...c.modelValue,
|
|
16
|
-
[p]: d.target.checked
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
return (p, d) => (x(), P("fieldset", {
|
|
20
|
-
class: "metadata-panel",
|
|
21
|
-
disabled: l.disabled,
|
|
22
|
-
"aria-label": a(t)("tools.metadata_cleanup.metadataPanel_a48b2f8f")
|
|
23
|
-
}, [
|
|
24
|
-
e("div", D, [
|
|
25
|
-
e("strong", null, n(a(t)("tools.metadata_cleanup.metadataPanel_07bee879")), 1),
|
|
26
|
-
e("p", null, n(a(t)("tools.metadata_cleanup.metadataPanel_77ca0e65")), 1),
|
|
27
|
-
e("p", null, n(a(t)("tools.metadata_cleanup.metadataPanel_81215dfc")), 1)
|
|
28
|
-
]),
|
|
29
|
-
e("label", null, [
|
|
30
|
-
s(a(b), {
|
|
31
|
-
class: "metadata-check",
|
|
32
|
-
size: 14,
|
|
33
|
-
"aria-hidden": "true"
|
|
34
|
-
}),
|
|
35
|
-
e("input", {
|
|
36
|
-
type: "checkbox",
|
|
37
|
-
"aria-label": a(t)("tools.metadata_cleanup.metadataPanel_e6c30387"),
|
|
38
|
-
disabled: l.disabled,
|
|
39
|
-
checked: l.modelValue.removeTime,
|
|
40
|
-
onChange: d[0] || (d[0] = (u) => m("removeTime", u))
|
|
41
|
-
}, null, 40, M),
|
|
42
|
-
e("span", null, [
|
|
43
|
-
e("strong", null, n(a(t)("tools.metadata_cleanup.metadataPanel_e6c30387")), 1),
|
|
44
|
-
e("small", null, n(a(t)("tools.metadata_cleanup.metadataPanel_e54e326a")), 1)
|
|
45
|
-
])
|
|
46
|
-
]),
|
|
47
|
-
e("label", null, [
|
|
48
|
-
s(a(b), {
|
|
49
|
-
class: "metadata-check",
|
|
50
|
-
size: 14,
|
|
51
|
-
"aria-hidden": "true"
|
|
52
|
-
}),
|
|
53
|
-
e("input", {
|
|
54
|
-
type: "checkbox",
|
|
55
|
-
"aria-label": a(t)("tools.metadata_cleanup.metadataPanel_cceb9076"),
|
|
56
|
-
disabled: l.disabled,
|
|
57
|
-
checked: l.modelValue.removeAuthorComments,
|
|
58
|
-
onChange: d[1] || (d[1] = (u) => m("removeAuthorComments", u))
|
|
59
|
-
}, null, 40, U),
|
|
60
|
-
e("span", null, [
|
|
61
|
-
e("strong", null, n(a(t)("tools.metadata_cleanup.metadataPanel_cceb9076")), 1),
|
|
62
|
-
e("small", null, n(a(t)("tools.metadata_cleanup.metadataPanel_5303f066")), 1)
|
|
63
|
-
])
|
|
64
|
-
])
|
|
65
|
-
], 8, B));
|
|
66
|
-
}
|
|
67
|
-
}), F = /* @__PURE__ */ V(E, [["__scopeId", "data-v-7f0e09aa"]]), $ = /* @__PURE__ */ h({
|
|
68
|
-
__name: "MetadataToolPanel",
|
|
69
|
-
props: {
|
|
70
|
-
context: {}
|
|
71
|
-
},
|
|
72
|
-
setup(l) {
|
|
73
|
-
const o = l, t = y(() => o.context);
|
|
74
|
-
function i() {
|
|
75
|
-
o.context.resetDraft({ metadata: { ...f } });
|
|
76
|
-
}
|
|
77
|
-
const c = C(() => o.context, "metadata");
|
|
78
|
-
return (r, m) => (x(), k(v, {
|
|
79
|
-
context: l.context,
|
|
80
|
-
layout: "contained",
|
|
81
|
-
changed: a(T)(a(t).metadata, a(f)),
|
|
82
|
-
onReset: i
|
|
83
|
-
}, {
|
|
84
|
-
actions: _(() => [
|
|
85
|
-
s(A, {
|
|
86
|
-
context: l.context,
|
|
87
|
-
available: !0,
|
|
88
|
-
ready: !0
|
|
89
|
-
}, null, 8, ["context"])
|
|
90
|
-
]),
|
|
91
|
-
default: _(() => [
|
|
92
|
-
s(F, {
|
|
93
|
-
"model-value": a(t).metadata,
|
|
94
|
-
disabled: l.context.readonly,
|
|
95
|
-
"onUpdate:modelValue": a(c)
|
|
96
|
-
}, null, 8, ["model-value", "disabled", "onUpdate:modelValue"])
|
|
97
|
-
]),
|
|
98
|
-
_: 1
|
|
99
|
-
}, 8, ["context", "changed"]));
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
export {
|
|
103
|
-
$ as default
|
|
104
|
-
};
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { computed as r, defineComponent as k, openBlock as l, createElementBlock as s, createTextVNode as b, toDisplayString as i, unref as a, createCommentVNode as u, createElementVNode as x, renderSlot as g, createVNode as w, withCtx as P } from "vue";
|
|
2
|
-
import { F as A, H as S, aU as I, au as B, av as N } from "./entry-DK9FjQZ_.js";
|
|
3
|
-
function m(e) {
|
|
4
|
-
return Array.isArray(e) ? e.map(m) : e && typeof e == "object" ? Object.fromEntries(Object.entries(e).map(([t, n]) => [t, m(n)])) : e;
|
|
5
|
-
}
|
|
6
|
-
function W(e) {
|
|
7
|
-
return r(() => m(e().draft));
|
|
8
|
-
}
|
|
9
|
-
const q = (e, t) => Object.entries(t).some(([n, c]) => e[n] !== c), z = (e, t = e.toolId) => e.executionAvailable ?? (e.view.availableNodeTools ?? ["resize", "background"]).includes(t), H = (e) => e.executionAvailable ?? (e.view.aiAvailable !== !1 && e.view.availableTools.includes(e.toolId));
|
|
10
|
-
function $(e, t) {
|
|
11
|
-
return r(() => {
|
|
12
|
-
const n = e();
|
|
13
|
-
return (c) => {
|
|
14
|
-
const o = {};
|
|
15
|
-
return o[t] = c, n.updateDraft(o);
|
|
16
|
-
};
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
const j = { class: "execution-box" }, F = {
|
|
20
|
-
key: 0,
|
|
21
|
-
class: "hint"
|
|
22
|
-
}, T = { key: 0 }, V = {
|
|
23
|
-
key: 1,
|
|
24
|
-
class: "hint"
|
|
25
|
-
}, D = {
|
|
26
|
-
key: 2,
|
|
27
|
-
class: "service-status",
|
|
28
|
-
role: "status"
|
|
29
|
-
}, E = { class: "hint" }, O = ["disabled"], G = /* @__PURE__ */ k({
|
|
30
|
-
__name: "PluginActionFooter",
|
|
31
|
-
props: {
|
|
32
|
-
context: {},
|
|
33
|
-
available: { type: Boolean, default: !0 },
|
|
34
|
-
ready: { type: Boolean, default: !0 },
|
|
35
|
-
label: {},
|
|
36
|
-
unavailableReason: {},
|
|
37
|
-
showServiceStatus: { type: Boolean, default: !0 }
|
|
38
|
-
},
|
|
39
|
-
setup(e) {
|
|
40
|
-
const { ui: t, uiText: n } = A(), c = S(), o = e, d = r(
|
|
41
|
-
() => o.context.readonly || o.context.executionAvailable === !1 || !o.context.view.count || !o.available || !o.ready || o.context.submitting
|
|
42
|
-
), y = r(
|
|
43
|
-
() => o.context.submitting ? t("common.toolPanel_cfe317f2") : o.label ?? (o.context.view.waitingCount ? t("common.toolPanel_a699267c", { p0: o.context.view.count }) : t("common.toolPanel_5d31495f", { p0: o.context.view.count }))
|
|
44
|
-
);
|
|
45
|
-
async function v() {
|
|
46
|
-
return !d.value && await o.context.requestSubmit();
|
|
47
|
-
}
|
|
48
|
-
return (h, f) => (l(), s("div", j, [
|
|
49
|
-
e.context.view.waitingCount ? (l(), s("p", F, [
|
|
50
|
-
b(i(a(t)("common.toolPanel_0441f4b7", { p0: e.context.view.availableCount ?? 0 })), 1),
|
|
51
|
-
(e.context.view.waitingCount ?? 0) > (e.context.view.blockedCount ?? 0) ? (l(), s("span", T, i(a(t)("common.toolPanel_2d6c7046", {
|
|
52
|
-
p0: (e.context.view.waitingCount ?? 0) - (e.context.view.blockedCount ?? 0)
|
|
53
|
-
})), 1)) : u("", !0),
|
|
54
|
-
b(i(a(t)("common.toolPanel_0eeb8448")), 1)
|
|
55
|
-
])) : u("", !0),
|
|
56
|
-
e.context.view.blockedCount ? (l(), s("p", V, i(a(t)("common.toolPanel_8c81c328", { p0: e.context.view.blockedCount })), 1)) : u("", !0),
|
|
57
|
-
!e.available && e.showServiceStatus && a(c)?.config.value.visibility?.serviceStatus !== !1 ? (l(), s("div", D, [
|
|
58
|
-
x("p", E, i(e.unavailableReason || (e.context.view.aiAvailable === !1 ? a(n)(e.context.view.aiFeedback) || a(t)("common.toolPanel_8665eaa2") : a(t)("common.toolPanel_6afbb9ca"))), 1),
|
|
59
|
-
x("button", {
|
|
60
|
-
disabled: e.context.view.aiChecking,
|
|
61
|
-
onClick: f[0] || (f[0] = //@ts-ignore
|
|
62
|
-
(...C) => e.context.refreshCapabilities && e.context.refreshCapabilities(...C))
|
|
63
|
-
}, i(e.context.view.aiChecking ? a(t)("common.toolPanel_e8b970bc") : a(t)("common.toolPanel_107e25c0")), 9, O)
|
|
64
|
-
])) : u("", !0),
|
|
65
|
-
g(h.$slots, "default"),
|
|
66
|
-
w(a(I), {
|
|
67
|
-
name: "mainAction",
|
|
68
|
-
action: {
|
|
69
|
-
toolId: e.context.toolId,
|
|
70
|
-
entryId: e.context.entryId,
|
|
71
|
-
params: e.context.submissionParams,
|
|
72
|
-
count: e.context.view.count,
|
|
73
|
-
disabled: d.value,
|
|
74
|
-
submit: v
|
|
75
|
-
}
|
|
76
|
-
}, null, 8, ["action"]),
|
|
77
|
-
w(a(B).button, {
|
|
78
|
-
"data-onboarding": "tool-submit",
|
|
79
|
-
"data-material-action": "primary",
|
|
80
|
-
"data-tool-id": e.context.toolId,
|
|
81
|
-
class: "primary-action",
|
|
82
|
-
disabled: d.value,
|
|
83
|
-
"while-press": { scale: 0.97 },
|
|
84
|
-
transition: a(N),
|
|
85
|
-
onClick: v
|
|
86
|
-
}, {
|
|
87
|
-
default: P(() => [
|
|
88
|
-
b(i(y.value), 1)
|
|
89
|
-
]),
|
|
90
|
-
_: 1
|
|
91
|
-
}, 8, ["data-tool-id", "disabled", "transition"])
|
|
92
|
-
]));
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
export {
|
|
96
|
-
G as _,
|
|
97
|
-
$ as a,
|
|
98
|
-
H as b,
|
|
99
|
-
q as c,
|
|
100
|
-
z as n,
|
|
101
|
-
W as u
|
|
102
|
-
};
|