@beeintel/batch-image 1.0.1 → 1.1.1

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.
Files changed (60) hide show
  1. package/README.md +188 -184
  2. package/dist/chunks/{AdjustToolPanel-BELqYSUR.js → AdjustToolPanel-BEqQFYEO.js} +30 -29
  3. package/dist/chunks/BackgroundToolPanel-Dw3uT7S-.js +43 -0
  4. package/dist/chunks/{BatchMaterials-niGKrga3.js → BatchMaterials-HiK3VQc3.js} +1 -1
  5. package/dist/chunks/BatchModeChoices-BAslK92y.js +118 -0
  6. package/dist/chunks/{BatchOutputColorPicker-CCvmIF-b.js → BatchOutputColorPicker-CgtnQBA3.js} +1 -1
  7. package/dist/chunks/BatchReferenceFields-DbjXtKC4.js +308 -0
  8. package/dist/chunks/BeautifyToolPanel-imF6jnTG.js +220 -0
  9. package/dist/chunks/{BrandMarkToolPanel-FKxXth_3.js → BrandMarkToolPanel-C-gouhaT.js} +319 -333
  10. package/dist/chunks/{ContentTrimControl-BQfigZPq.js → ContentTrimControl-LgNIZbXa.js} +2 -2
  11. package/dist/chunks/{CropToolPanel-BhSuHkYm.js → CropToolPanel-DsPgFUWI.js} +60 -56
  12. package/dist/chunks/CutoutToolPanel-BhJngz89.js +78 -0
  13. package/dist/chunks/DisclosureToolPanel-DOaWm-im.js +72 -0
  14. package/dist/chunks/ExpandToolPanel-CuufFNiC.js +69 -0
  15. package/dist/chunks/{ImageEffectsToolPanel-BRLPIt4q.js → ImageEffectsToolPanel-BsfBZdYp.js} +63 -52
  16. package/dist/chunks/{IpAuditToolPanel-DfY-mBSe.js → IpAuditToolPanel-DOB7TEoI.js} +15 -13
  17. package/dist/chunks/{ListingToolPanel-B9Yh3LBK.js → ListingToolPanel-Dapetiw-.js} +170 -184
  18. package/dist/chunks/{MaterialSelectionPlate-DhioUjdW.js → MaterialSelectionPlate-BjNttUh8.js} +4 -4
  19. package/dist/chunks/MetadataToolPanel-G56L-VTi.js +116 -0
  20. package/dist/chunks/{OrientToolPanel-BTrwaWBm.js → OrientToolPanel-BJHfMixX.js} +3 -3
  21. package/dist/chunks/PluginActionFooter.vue_vue_type_script_setup_true_lang-DI8W37RA.js +122 -0
  22. package/dist/chunks/ResizeToolPanel-HDDArzWx.js +1171 -0
  23. package/dist/chunks/RetouchToolPanel-Drei3Dj7.js +358 -0
  24. package/dist/chunks/ShadowToolPanel-BM5MRfYB.js +258 -0
  25. package/dist/chunks/SvgExportToolPanel-D3KNi5AS.js +208 -0
  26. package/dist/chunks/TranslationToolPanel-DbNO3IKA.js +104 -0
  27. package/dist/chunks/{UpscaleToolPanel-D0H-j2Tr.js → UpscaleToolPanel-5kT1uUl0.js} +44 -39
  28. package/dist/chunks/arrow-up-DT1zSe8a.js +18 -0
  29. package/dist/chunks/{engine-D-T-1RSx.js → engine-BZ0nkcqj.js} +1 -1
  30. package/dist/chunks/{entry-DK9FjQZ_.js → entry-FNjvjYxd.js} +7512 -7395
  31. package/dist/chunks/{hosted-resources-COzZ7nZY.js → hosted-resources-C3iu_zn4.js} +2 -2
  32. package/dist/chunks/{loader-circle-UFoEem2a.js → loader-circle-pki8gM3_.js} +1 -1
  33. package/dist/chunks/{motionFeatures-D4miwXxc.js → motionFeatures-Cp11tdeb.js} +1 -1
  34. package/dist/chunks/{search-BjTSm1KS.js → search-BNwQCPna.js} +1 -1
  35. package/dist/chunks/{standard-cutout-vPpP6xBc.js → standard-cutout-iIOMfl6q.js} +1 -1
  36. package/dist/chunks/{static-logo-2F9ORZWc.js → static-logo-7HK4ubmZ.js} +1 -1
  37. package/dist/config.d.ts +6 -0
  38. package/dist/index.d.ts +1 -0
  39. package/dist/index.js +6 -5
  40. package/dist/processing.js +3 -3
  41. package/dist/resources.json +113 -103
  42. package/dist/slots.d.ts +2 -0
  43. package/dist/style.css +1 -1
  44. package/dist/tool-links.d.ts +10 -0
  45. package/dist/types/batch/public/config.d.ts +6 -0
  46. package/package.json +95 -95
  47. package/dist/chunks/BackgroundToolPanel-Dy_l8KFl.js +0 -41
  48. package/dist/chunks/BatchModeChoices-BRqn6zNI.js +0 -111
  49. package/dist/chunks/BatchReferenceFields-C4t7OSTw.js +0 -316
  50. package/dist/chunks/BeautifyToolPanel-Dc-ddaBC.js +0 -215
  51. package/dist/chunks/CutoutToolPanel-BfaZZSE_.js +0 -73
  52. package/dist/chunks/DisclosureToolPanel-B_oc5fld.js +0 -76
  53. package/dist/chunks/ExpandToolPanel-D_ZODTUZ.js +0 -67
  54. package/dist/chunks/MetadataToolPanel-KVrtb3K0.js +0 -104
  55. package/dist/chunks/PluginActionFooter.vue_vue_type_script_setup_true_lang-C2kJCYeA.js +0 -102
  56. package/dist/chunks/ResizeToolPanel-Ch_-WR74.js +0 -1178
  57. package/dist/chunks/RetouchToolPanel-BTS33Dsd.js +0 -350
  58. package/dist/chunks/ShadowToolPanel-DxJE4eyV.js +0 -254
  59. package/dist/chunks/SvgExportToolPanel-RHmuQARH.js +0 -219
  60. package/dist/chunks/TranslationToolPanel-B_qTA1hM.js +0 -125
@@ -1,219 +0,0 @@
1
- import { defineComponent as D, computed as g, ref as h, watch as V, openBlock as a, createBlock as w, normalizeClass as F, withCtx as S, createElementVNode as l, toDisplayString as n, unref as t, createElementBlock as i, Fragment as E, renderList as N, createCommentVNode as v, createVNode as x, createTextVNode as I, nextTick as j } from "vue";
2
- import { F as B, aS as q, G as L, aT as G, az as U, aU as Z, aV as R, _ as $ } from "./entry-DK9FjQZ_.js";
3
- import { L as M } from "./loader-circle-UFoEem2a.js";
4
- function W(c, o) {
5
- return c ? c.matchingOngoing ? { kind: "running", operation: c.matchingOngoing } : c.currentIntent && c.latest?.summary.terminal && c.latest.intent === c.currentIntent && !(o?.projectId === c.projectId && o.operationId === c.latest.summary.operationId) ? { kind: "completed", operation: c.latest } : { kind: "draft" } : { kind: "draft" };
6
- }
7
- const X = { class: "svg-description" }, H = ["disabled"], J = ["value", "checked", "onChange"], K = { class: "svg-choice-copy" }, Q = { class: "svg-choice-heading" }, Y = { key: 0 }, ee = { class: "svg-profile" }, te = ["value"], oe = { value: "raw" }, ne = { value: "p3" }, ae = { value: "p2" }, le = { value: "p1" }, se = {
8
- key: 1,
9
- class: "svg-export-note svg-optimization-note"
10
- }, ie = { class: "svg-export-note" }, ue = { class: "svg-actions" }, re = ["disabled", "aria-busy"], ve = {
11
- key: 1,
12
- class: "svg-error"
13
- }, ce = {
14
- key: 2,
15
- class: "svg-error"
16
- }, de = ["aria-label"], pe = { key: 0 }, ge = { key: 1 }, _e = { key: 2 }, me = { key: 3 }, ke = {
17
- key: 4,
18
- role: "alert"
19
- }, ye = { key: 5 }, ze = ["disabled", "aria-busy"], fe = /* @__PURE__ */ D({
20
- __name: "SvgExportToolPanel",
21
- props: {
22
- context: {}
23
- },
24
- setup(c) {
25
- const { ui: o } = B(), T = c, e = g(() => T.context), p = h(!1), f = h();
26
- V(
27
- () => e.value.svgResult?.flow?.projectId,
28
- () => {
29
- f.value = void 0;
30
- },
31
- { flush: "sync" }
32
- );
33
- const u = g(
34
- () => W(e.value.svgResult?.flow, f.value)
35
- ), C = h();
36
- async function A() {
37
- const d = e.value.svgResult?.flow;
38
- d?.latest && (f.value = { projectId: d.projectId, operationId: d.latest.summary.operationId }), await j(), C.value?.querySelector("input:checked")?.focus();
39
- }
40
- const k = g(
41
- () => e.value.draft.svgExport ?? q
42
- ), y = g(() => k.value.engine), z = (d) => e.value.modeAllowed ? e.value.modeAllowed(d) : d === "imagetracer" ? typeof Worker < "u" && typeof OffscreenCanvas < "u" && typeof createImageBitmap < "u" : e.value.view.aiAvailable !== !1 && (e.value.view.svgEngines ?? (e.value.view.availableTools.includes("vectorize_svg") ? ["recraft", "image2svg"] : [])).includes(d), b = g(
43
- () => k.value.optimize ? k.value.optimizationProfile : "raw"
44
- ), s = g(() => e.value.svgResult?.summary), _ = g(() => e.value.svgResult?.preparation);
45
- function P(d) {
46
- e.value.updateDraft({ svgExport: { ...k.value, ...d } });
47
- }
48
- async function O() {
49
- if (!(u.value.kind === "running" || p.value || e.value.readonly || e.value.executionAvailable === !1 || e.value.view.count < 1 || !z(y.value))) {
50
- p.value = !0;
51
- try {
52
- await e.value.requestSubmit();
53
- } finally {
54
- p.value = !1;
55
- }
56
- }
57
- }
58
- return (d, m) => (a(), w(L, {
59
- class: F(["svg-export-panel", { "svg-completed": u.value.kind === "completed" }]),
60
- context: e.value,
61
- layout: "contained",
62
- "body-class": "svg-export-options"
63
- }, {
64
- actions: S(() => [
65
- l("div", ue, [
66
- x(t(Z), {
67
- name: "mainAction",
68
- action: {
69
- toolId: e.value.toolId,
70
- entryId: e.value.entryId,
71
- params: e.value.submissionParams,
72
- count: e.value.view.count,
73
- disabled: e.value.readonly || e.value.executionAvailable === !1 || e.value.submitting || !z(y.value),
74
- submit: e.value.requestSubmit
75
- }
76
- }, null, 8, ["action"]),
77
- u.value.kind !== "completed" ? (a(), i("button", {
78
- key: 0,
79
- class: "primary-action svg-submit",
80
- type: "button",
81
- disabled: u.value.kind === "running" || e.value.readonly || e.value.executionAvailable === !1 || p.value || e.value.submitting || e.value.view.count < 1 || !z(y.value),
82
- "aria-busy": u.value.kind === "running" || p.value || e.value.submitting,
83
- onClick: O
84
- }, [
85
- u.value.kind === "running" || p.value || e.value.submitting ? (a(), w(t(M), {
86
- key: 0,
87
- class: "svg-working",
88
- size: 17,
89
- "aria-hidden": "true"
90
- })) : (a(), w(t(R), {
91
- key: 1,
92
- size: 17
93
- })),
94
- I(n(u.value.kind === "running" ? t(o)("tools.vectorize_svg.running") + " " + t(o)(
95
- u.value.operation.summary.unknown ? "tools.vectorize_svg.unknown" : "tools.vectorize_svg.resultProgress",
96
- {
97
- count: u.value.operation.summary.unknown,
98
- done: u.value.operation.summary.ended,
99
- total: u.value.operation.summary.total,
100
- succeeded: u.value.operation.summary.succeeded
101
- }
102
- ) : p.value || e.value.submitting ? t(o)("tools.vectorize_svg.running") : t(o)(
103
- s.value ? "tools.vectorize_svg.enqueueSelected" : "tools.vectorize_svg.startSelected",
104
- {
105
- count: e.value.view.count
106
- }
107
- )), 1)
108
- ], 8, re)) : v("", !0),
109
- u.value.kind !== "completed" && !z(y.value) ? (a(), i("p", ve, n(t(o)("tools.vectorize_svg.unavailable")), 1)) : v("", !0),
110
- e.value.view.count < 1 ? (a(), i("p", ce, n(t(o)("tools.vectorize_svg.emptySelection")), 1)) : v("", !0),
111
- s.value?.terminal ? (a(), i("section", {
112
- key: 3,
113
- class: "svg-result",
114
- "aria-live": "polite",
115
- "aria-label": t(o)("tools.vectorize_svg.resultTitle")
116
- }, [
117
- l("strong", null, n(t(o)("tools.vectorize_svg.resultTitle")), 1),
118
- l("p", null, n(t(o)("tools.vectorize_svg.resultProgress", {
119
- done: s.value.ended,
120
- total: s.value.total,
121
- succeeded: s.value.succeeded
122
- })), 1),
123
- s.value.failed ? (a(), i("p", pe, n(t(o)("tools.vectorize_svg.failed", { count: s.value.failed })), 1)) : v("", !0),
124
- s.value.cancelled || s.value.skipped ? (a(), i("p", ge, n(t(o)("tools.vectorize_svg.notCompleted", {
125
- count: s.value.cancelled + s.value.skipped
126
- })), 1)) : v("", !0),
127
- s.value.unknown ? (a(), i("p", _e, n(t(o)("tools.vectorize_svg.unknown", { count: s.value.unknown })), 1)) : v("", !0),
128
- s.value.pending ? (a(), i("p", me, n(t(o)("tools.vectorize_svg.processing", { count: s.value.pending })), 1)) : v("", !0),
129
- _.value?.kind === "error" ? (a(), i("p", ke, n(t(o)("tools.vectorize_svg.archiveFailure")), 1)) : v("", !0),
130
- _.value?.kind === "cancelled" ? (a(), i("p", ye, n(t(o)("tools.vectorize_svg.preparationCancelled")), 1)) : v("", !0),
131
- l("button", {
132
- type: "button",
133
- class: "primary-action",
134
- disabled: !s.value.canDownload || _.value?.kind === "preparing",
135
- "aria-busy": _.value?.kind === "preparing",
136
- onClick: m[1] || (m[1] = (r) => e.value.svgResult?.download())
137
- }, [
138
- x(t(R), { size: 16 }),
139
- I(n(_.value?.kind === "preparing" ? t(o)("tools.vectorize_svg.preparing") : t(o)("tools.vectorize_svg.downloadZipCount", {
140
- label: t(o)(
141
- b.value === "raw" ? "tools.vectorize_svg.downloadRawZip" : "tools.vectorize_svg.downloadOptimizedZip"
142
- ),
143
- count: s.value.succeeded
144
- })), 1)
145
- ], 8, ze),
146
- _.value?.kind === "preparing" ? (a(), i("button", {
147
- key: 6,
148
- type: "button",
149
- class: "svg-cancel",
150
- onClick: m[2] || (m[2] = (r) => e.value.svgResult?.cancel())
151
- }, n(t(o)("tools.vectorize_svg.cancelPreparation")), 1)) : v("", !0)
152
- ], 8, de)) : v("", !0),
153
- u.value.kind === "completed" ? (a(), i("button", {
154
- key: 4,
155
- type: "button",
156
- class: "svg-continue",
157
- onClick: A
158
- }, n(t(o)("tools.vectorize_svg.continueConversion")), 1)) : v("", !0)
159
- ])
160
- ]),
161
- default: S(() => [
162
- l("p", X, n(t(o)("tools.vectorize_svg.description")), 1),
163
- l("fieldset", {
164
- ref_key: "generationOptions",
165
- ref: C,
166
- class: "svg-options",
167
- disabled: e.value.readonly || p.value || e.value.submitting
168
- }, [
169
- u.value.kind !== "completed" ? (a(), i(E, { key: 0 }, [
170
- l("legend", null, n(t(o)("tools.vectorize_svg.generationMode")), 1),
171
- (a(!0), i(E, null, N(t(G).filter(
172
- (r) => e.value.modeAllowed?.(r.engine) !== !1
173
- ), (r) => (a(), i("label", {
174
- key: r.engine,
175
- class: "svg-choice"
176
- }, [
177
- l("input", {
178
- type: "radio",
179
- name: "svg-engine",
180
- value: r.engine,
181
- checked: y.value === r.engine,
182
- onChange: (be) => P({ engine: r.engine })
183
- }, null, 40, J),
184
- l("span", K, [
185
- l("strong", Q, n(t(o)(`tools.vectorize_svg.${r.title}`)), 1),
186
- l("small", null, n(t(o)(`tools.vectorize_svg.${r.description}`)), 1),
187
- z(r.engine) ? v("", !0) : (a(), i("small", Y, n(t(o)("tools.vectorize_svg.unavailable")), 1))
188
- ])
189
- ]))), 128))
190
- ], 64)) : v("", !0),
191
- l("label", ee, [
192
- l("span", null, n(t(o)("tools.vectorize_svg.optimizationProfile")), 1),
193
- l("select", {
194
- value: b.value,
195
- onChange: m[0] || (m[0] = (r) => P({
196
- optimize: r.target.value !== "raw",
197
- optimizationProfile: r.target.value === "raw" ? k.value.optimizationProfile : r.target.value
198
- }))
199
- }, [
200
- l("option", oe, n(t(o)("tools.vectorize_svg.uncompressed")), 1),
201
- l("option", ne, n(t(o)("tools.vectorize_svg.conservative")), 1),
202
- l("option", ae, n(t(o)("tools.vectorize_svg.balancedRecommended")), 1),
203
- l("option", le, n(t(o)("tools.vectorize_svg.sizeFirst")), 1)
204
- ], 40, te)
205
- ]),
206
- b.value !== "raw" ? (a(), i("p", se, n(t(o)("tools.vectorize_svg.optimizationNote")), 1)) : v("", !0)
207
- ], 8, H),
208
- l("p", ie, [
209
- x(t(U), { size: 14 }),
210
- I(n(t(o)("tools.vectorize_svg.compareNote")), 1)
211
- ])
212
- ]),
213
- _: 1
214
- }, 8, ["class", "context"]));
215
- }
216
- }), Ie = /* @__PURE__ */ $(fe, [["__scopeId", "data-v-7fab4cab"]]);
217
- export {
218
- Ie as default
219
- };
@@ -1,125 +0,0 @@
1
- import { defineComponent as C, computed as T, openBlock as u, createElementBlock as d, createElementVNode as r, createTextVNode as x, toDisplayString as i, unref as e, Fragment as b, renderList as V, createCommentVNode as F, createBlock as A, withCtx as y, createVNode as k } from "vue";
2
- import { F as L, H as I, _ as N, G as B } from "./entry-DK9FjQZ_.js";
3
- import { a$ as P, b0 as E, b1 as S, S as U } from "./hosted-resources-COzZ7nZY.js";
4
- import { u as $, a as O, _ as D, b as G } from "./PluginActionFooter.vue_vue_type_script_setup_true_lang-C2kJCYeA.js";
5
- const R = { class: "translation-fields" }, H = ["value"], M = {
6
- disabled: "",
7
- value: ""
8
- }, W = ["value"], j = ["value"], q = { key: 0 }, z = ["value", "placeholder"], J = ["value", "placeholder"], K = {
9
- key: 1,
10
- class: "hint",
11
- role: "alert"
12
- }, Q = /* @__PURE__ */ C({
13
- __name: "TranslationFields",
14
- props: {
15
- modelValue: {}
16
- },
17
- emits: ["update:modelValue"],
18
- setup(a, { emit: g }) {
19
- const { ui: o, uiText: f, uiTargetLanguage: c } = L(), _ = a, v = g, m = I(), n = T(() => m?.config.value.toolOptions?.translation?.targets), h = T(() => {
20
- if (n.value) return "";
21
- const l = _.modelValue;
22
- return l.targetLanguage || l.termsText || l.notes ? P(l) : "";
23
- });
24
- function w(l) {
25
- if (n.value) {
26
- n.value.some((t) => t.code === l) && v("update:modelValue", {
27
- targetLanguage: null,
28
- targetCode: l,
29
- termsText: "",
30
- notes: ""
31
- });
32
- return;
33
- }
34
- const s = U(l);
35
- s && p({ targetLanguage: s.language, targetLocale: s.locale });
36
- }
37
- function p(l) {
38
- v("update:modelValue", { ..._.modelValue, ...l });
39
- }
40
- return (l, s) => (u(), d("div", R, [
41
- r("label", null, [
42
- x(i(e(o)("tools.image_translation.translationFields_966a23e8")), 1),
43
- r("select", {
44
- value: n.value ? a.modelValue.targetCode ?? "" : e(E)(a.modelValue),
45
- onChange: s[0] || (s[0] = (t) => w(t.target.value))
46
- }, [
47
- r("option", M, i(e(o)("tools.image_translation.translationFields_adf0e5eb")), 1),
48
- (u(!0), d(b, null, V(n.value ?? [], (t) => (u(), d("option", {
49
- key: t.code,
50
- value: t.code
51
- }, i(t.label), 9, W))), 128)),
52
- (u(!0), d(b, null, V(n.value ? [] : e(S), (t) => (u(), d("option", {
53
- key: t.locale,
54
- value: t.locale
55
- }, i(e(c)(t.locale)), 9, j))), 128))
56
- ], 40, H)
57
- ]),
58
- n.value ? F("", !0) : (u(), d("details", q, [
59
- r("summary", null, i(e(o)("tools.image_translation.translationFields_86ffbbfc")), 1),
60
- r("label", null, [
61
- x(i(e(o)("tools.image_translation.translationFields_497466ea")), 1),
62
- r("textarea", {
63
- value: a.modelValue.termsText,
64
- maxlength: "4900",
65
- rows: "3",
66
- placeholder: e(o)("tools.image_translation.translationFields_2c7cb6c8"),
67
- onInput: s[1] || (s[1] = (t) => p({ termsText: t.target.value }))
68
- }, null, 40, z)
69
- ]),
70
- r("label", null, [
71
- x(i(e(o)("tools.image_translation.translationFields_a495d2e4")), 1),
72
- r("textarea", {
73
- value: a.modelValue.notes,
74
- maxlength: "1000",
75
- rows: "3",
76
- placeholder: e(o)("tools.image_translation.translationFields_f18de538"),
77
- onInput: s[2] || (s[2] = (t) => p({ notes: t.target.value }))
78
- }, null, 40, J)
79
- ])
80
- ])),
81
- h.value ? (u(), d("p", K, i(e(f)(h.value)), 1)) : F("", !0)
82
- ]));
83
- }
84
- }), X = /* @__PURE__ */ N(Q, [["__scopeId", "data-v-6413ec86"]]), Y = ["disabled"], Z = /* @__PURE__ */ C({
85
- __name: "TranslationToolPanel",
86
- props: {
87
- context: {}
88
- },
89
- setup(a) {
90
- const { ui: g } = L(), o = a, f = I(), c = $(() => o.context), _ = T(() => {
91
- const m = f?.config.value.toolOptions?.translation?.targets;
92
- return m ? !m.some((n) => n.code === c.value.translation.targetCode) : !!P(c.value.translation);
93
- }), v = O(() => o.context, "translation");
94
- return (m, n) => (u(), A(B, {
95
- context: a.context,
96
- layout: "contained",
97
- help: e(g)("tools.image_translation.translationFields_9f7615dc") + " " + e(g)("tools.image_translation.translationFields_5e86b15d")
98
- }, {
99
- actions: y(() => [
100
- k(D, {
101
- class: "translation-action",
102
- context: a.context,
103
- "show-service-status": !1,
104
- available: e(G)(a.context),
105
- ready: !_.value
106
- }, null, 8, ["context", "available", "ready"])
107
- ]),
108
- default: y(() => [
109
- r("fieldset", {
110
- class: "tool-fields plugin-fields",
111
- disabled: a.context.readonly
112
- }, [
113
- k(X, {
114
- "model-value": e(c).translation,
115
- "onUpdate:modelValue": e(v)
116
- }, null, 8, ["model-value", "onUpdate:modelValue"])
117
- ], 8, Y)
118
- ]),
119
- _: 1
120
- }, 8, ["context", "help"]));
121
- }
122
- }), oe = /* @__PURE__ */ N(Z, [["__scopeId", "data-v-1c78ed64"]]);
123
- export {
124
- oe as default
125
- };