@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,5 +1,5 @@
1
- import { defineComponent as i, computed as l, unref as a, openBlock as n, createElementBlock as c, createBlock as r, createCommentVNode as u } from "vue";
2
- import { E as d, au as p, _ as m } from "./entry-DK9FjQZ_.js";
1
+ import { defineComponent as i, computed as l, unref as a, openBlock as n, createElementBlock as c, createBlock as r, createCommentVNode as d } from "vue";
2
+ import { E as u, at as p, _ as m } from "./entry-FNjvjYxd.js";
3
3
  const f = {
4
4
  key: 0,
5
5
  class: "material-selection-plate",
@@ -11,7 +11,7 @@ const f = {
11
11
  animate: { type: Boolean }
12
12
  },
13
13
  setup(e) {
14
- const o = e, t = d(), s = l(
14
+ const o = e, t = u(), s = l(
15
15
  () => o.animate && !t.value ? { type: "spring", visualDuration: 0.19, bounce: 0.06 } : { duration: 0 }
16
16
  );
17
17
  return (y, k) => e.selected && a(t) ? (n(), c("span", f)) : e.selected ? (n(), r(a(p).span, {
@@ -22,7 +22,7 @@ const f = {
22
22
  "layout-id": "selection",
23
23
  crossfade: !1,
24
24
  transition: s.value
25
- }, null, 8, ["transition"])) : u("", !0);
25
+ }, null, 8, ["transition"])) : d("", !0);
26
26
  }
27
27
  }), v = /* @__PURE__ */ m(_, [["__scopeId", "data-v-e9f640a3"]]);
28
28
  export {
@@ -0,0 +1,116 @@
1
+ import { defineComponent as P, openBlock as k, createElementBlock as g, unref as e, createElementVNode as l, createTextVNode as i, toDisplayString as s, createVNode as n, createBlock as V, withCtx as x } from "vue";
2
+ import { F as v, P as r, a4 as h, _ as T, G as y, a5 as f } from "./entry-FNjvjYxd.js";
3
+ import { u as C, a as A, c as B, _ as D } from "./PluginActionFooter.vue_vue_type_script_setup_true_lang-DI8W37RA.js";
4
+ const M = ["disabled", "aria-label"], U = { class: "metadata-default" }, E = ["aria-label", "disabled", "checked"], F = ["aria-label", "disabled", "checked"], N = /* @__PURE__ */ P({
5
+ __name: "MetadataPanel",
6
+ props: {
7
+ modelValue: {},
8
+ disabled: { type: Boolean }
9
+ },
10
+ emits: ["update:modelValue"],
11
+ setup(t, { emit: o }) {
12
+ const { ui: a, uiText: _ } = v(), c = t, p = o;
13
+ function u(b, d) {
14
+ c.disabled || p("update:modelValue", {
15
+ ...c.modelValue,
16
+ [b]: d.target.checked
17
+ });
18
+ }
19
+ return (b, d) => (k(), g("fieldset", {
20
+ class: "metadata-panel",
21
+ disabled: t.disabled,
22
+ "aria-label": e(a)("tools.metadata_cleanup.metadataPanel_a48b2f8f")
23
+ }, [
24
+ l("div", U, [
25
+ l("strong", null, [
26
+ i(s(e(a)("tools.metadata_cleanup.metadataPanel_07bee879")), 1),
27
+ n(r, {
28
+ text: e(a)("tools.metadata_cleanup.metadataPanel_81215dfc")
29
+ }, null, 8, ["text"])
30
+ ]),
31
+ l("p", null, s(e(a)("tools.metadata_cleanup.metadataPanel_77ca0e65")), 1)
32
+ ]),
33
+ l("label", null, [
34
+ n(e(h), {
35
+ class: "metadata-check",
36
+ size: 14,
37
+ "aria-hidden": "true"
38
+ }),
39
+ l("input", {
40
+ type: "checkbox",
41
+ "aria-label": e(a)("tools.metadata_cleanup.metadataPanel_e6c30387"),
42
+ disabled: t.disabled,
43
+ checked: t.modelValue.removeTime,
44
+ onChange: d[0] || (d[0] = (m) => u("removeTime", m))
45
+ }, null, 40, E),
46
+ l("span", null, [
47
+ l("strong", null, [
48
+ i(s(e(a)("tools.metadata_cleanup.metadataPanel_e6c30387")), 1),
49
+ n(r, {
50
+ text: e(a)("tools.metadata_cleanup.metadataPanel_e54e326a")
51
+ }, null, 8, ["text"])
52
+ ])
53
+ ])
54
+ ]),
55
+ l("label", null, [
56
+ n(e(h), {
57
+ class: "metadata-check",
58
+ size: 14,
59
+ "aria-hidden": "true"
60
+ }),
61
+ l("input", {
62
+ type: "checkbox",
63
+ "aria-label": e(a)("tools.metadata_cleanup.metadataPanel_cceb9076"),
64
+ disabled: t.disabled,
65
+ checked: t.modelValue.removeAuthorComments,
66
+ onChange: d[1] || (d[1] = (m) => u("removeAuthorComments", m))
67
+ }, null, 40, F),
68
+ l("span", null, [
69
+ l("strong", null, [
70
+ i(s(e(a)("tools.metadata_cleanup.metadataPanel_cceb9076")), 1),
71
+ n(r, {
72
+ text: e(a)("tools.metadata_cleanup.metadataPanel_5303f066")
73
+ }, null, 8, ["text"])
74
+ ])
75
+ ])
76
+ ])
77
+ ], 8, M));
78
+ }
79
+ }), z = /* @__PURE__ */ T(N, [["__scopeId", "data-v-17c18305"]]), G = /* @__PURE__ */ P({
80
+ __name: "MetadataToolPanel",
81
+ props: {
82
+ context: {}
83
+ },
84
+ setup(t) {
85
+ const o = t, a = C(() => o.context);
86
+ function _() {
87
+ o.context.resetDraft({ metadata: { ...f } });
88
+ }
89
+ const c = A(() => o.context, "metadata");
90
+ return (p, u) => (k(), V(y, {
91
+ context: t.context,
92
+ layout: "contained",
93
+ changed: e(B)(e(a).metadata, e(f)),
94
+ onReset: _
95
+ }, {
96
+ actions: x(() => [
97
+ n(D, {
98
+ context: t.context,
99
+ available: !0,
100
+ ready: !0
101
+ }, null, 8, ["context"])
102
+ ]),
103
+ default: x(() => [
104
+ n(z, {
105
+ "model-value": e(a).metadata,
106
+ disabled: t.context.readonly,
107
+ "onUpdate:modelValue": e(c)
108
+ }, null, 8, ["model-value", "disabled", "onUpdate:modelValue"])
109
+ ]),
110
+ _: 1
111
+ }, 8, ["context", "changed"]));
112
+ }
113
+ });
114
+ export {
115
+ G as default
116
+ };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as v, ref as R, openBlock as b, createElementBlock as k, unref as e, createElementVNode as l, createTextVNode as x, toDisplayString as u, createVNode as f, Fragment as P, renderList as V, createCommentVNode as A, nextTick as T, createBlock as U, withCtx as g } from "vue";
2
- import { F as E, P as O, R as F, _ as N, G as $ } from "./entry-DK9FjQZ_.js";
3
- import { D as y } from "./hosted-resources-COzZ7nZY.js";
4
- import { u as H, a as I, c as K, _ as L, n as z } from "./PluginActionFooter.vue_vue_type_script_setup_true_lang-C2kJCYeA.js";
2
+ import { F as E, P as O, R as F, _ as N, G as $ } from "./entry-FNjvjYxd.js";
3
+ import { D as y } from "./hosted-resources-C3iu_zn4.js";
4
+ import { u as H, a as I, c as K, _ as L, n as z } from "./PluginActionFooter.vue_vue_type_script_setup_true_lang-DI8W37RA.js";
5
5
  const S = ["disabled", "aria-label"], G = { class: "orientation-switch-row" }, M = ["aria-label", "aria-checked"], q = { class: "orientation-rotation-field" }, J = ["aria-label"], Q = ["data-rotation", "aria-label", "aria-checked", "tabindex", "onClick", "onKeydown"], W = { class: "orientation-flips" }, X = ["aria-label", "aria-checked", "onClick"], Y = ["aria-label"], Z = /* @__PURE__ */ v({
6
6
  __name: "BasicOrientationPanel",
7
7
  props: {
@@ -0,0 +1,122 @@
1
+ import { computed as c, defineComponent as h, openBlock as v, createElementBlock as f, createVNode as l, unref as o, withCtx as w, createElementVNode as p, createCommentVNode as k } from "vue";
2
+ import { J as A, F as C, H as g, aT as x, at as P, au as I } from "./entry-FNjvjYxd.js";
3
+ import { A as S } from "./arrow-up-DT1zSe8a.js";
4
+ /**
5
+ * @license @lucide/vue v1.47.0 - ISC
6
+ *
7
+ * This source code is licensed under the ISC license.
8
+ * See the LICENSE file in the root directory of this source tree.
9
+ */
10
+ const B = {
11
+ name: "refresh-cw",
12
+ size: 24,
13
+ node: [
14
+ ["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
15
+ ["path", { d: "M21 3v5h-5", key: "1q7to0" }],
16
+ ["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
17
+ ["path", { d: "M8 16H3v5", key: "1cv678" }]
18
+ ]
19
+ }, j = A(B);
20
+ function r(e) {
21
+ return Array.isArray(e) ? e.map(r) : e && typeof e == "object" ? Object.fromEntries(Object.entries(e).map(([a, n]) => [a, r(n)])) : e;
22
+ }
23
+ function E(e) {
24
+ return c(() => r(e().draft));
25
+ }
26
+ const L = (e, a) => Object.entries(a).some(([n, i]) => e[n] !== i), O = (e, a = e.toolId) => e.executionAvailable ?? (e.view.availableNodeTools ?? ["resize", "background"]).includes(a), U = (e) => e.executionAvailable ?? (e.view.aiAvailable !== !1 && e.view.availableTools.includes(e.toolId));
27
+ function V(e, a) {
28
+ return c(() => {
29
+ const n = e();
30
+ return (i) => {
31
+ const t = {};
32
+ return t[a] = i, n.updateDraft(t);
33
+ };
34
+ });
35
+ }
36
+ const z = { class: "execution-box" }, F = {
37
+ key: 0,
38
+ class: "service-status service-status-compact"
39
+ }, M = ["disabled", "aria-label", "title"], q = /* @__PURE__ */ h({
40
+ __name: "PluginActionFooter",
41
+ props: {
42
+ context: {},
43
+ available: { type: Boolean, default: !0 },
44
+ ready: { type: Boolean, default: !0 },
45
+ label: {},
46
+ unavailableReason: {},
47
+ showServiceStatus: { type: Boolean, default: !0 }
48
+ },
49
+ setup(e) {
50
+ const { ui: a, uiText: n } = C(), i = g(), t = e, s = c(
51
+ () => t.context.readonly || t.context.executionAvailable === !1 || !t.context.view.count || !t.available || !t.ready || t.context.submitting
52
+ ), u = c(
53
+ () => t.context.submitting ? a("common.toolPanel_cfe317f2") : t.label ?? (t.context.view.waitingCount ? a("common.toolPanel_a699267c", { p0: t.context.view.count }) : a("common.toolPanel_5d31495f", { p0: t.context.view.count }))
54
+ );
55
+ async function d() {
56
+ return !s.value && await t.context.requestSubmit();
57
+ }
58
+ const b = c(() => ({
59
+ toolId: t.context.toolId,
60
+ entryId: t.context.entryId,
61
+ params: t.context.submissionParams,
62
+ count: t.context.view.count,
63
+ disabled: s.value,
64
+ submit: d
65
+ }));
66
+ return (N, m) => (v(), f("div", z, [
67
+ l(o(x), {
68
+ name: "mainAction",
69
+ action: b.value
70
+ }, null, 8, ["action"]),
71
+ l(o(P).button, {
72
+ "data-onboarding": "tool-submit",
73
+ "data-material-action": "primary",
74
+ "data-tool-id": e.context.toolId,
75
+ class: "primary-action",
76
+ "aria-label": u.value,
77
+ title: u.value,
78
+ "aria-busy": e.context.submitting,
79
+ disabled: s.value,
80
+ "while-press": { scale: 0.97 },
81
+ transition: o(I),
82
+ onClick: d
83
+ }, {
84
+ default: w(() => [
85
+ l(o(x), {
86
+ name: "mainActionContent",
87
+ action: b.value
88
+ }, null, 8, ["action"]),
89
+ l(o(S), {
90
+ size: 20,
91
+ "aria-hidden": "true"
92
+ })
93
+ ]),
94
+ _: 1
95
+ }, 8, ["data-tool-id", "aria-label", "title", "aria-busy", "disabled", "transition"]),
96
+ !e.available && e.showServiceStatus && o(i)?.config.value.visibility?.serviceStatus !== !1 ? (v(), f("div", F, [
97
+ p("button", {
98
+ type: "button",
99
+ disabled: e.context.view.aiChecking,
100
+ "aria-label": e.context.view.aiChecking ? o(a)("common.toolPanel_e8b970bc") : o(a)("common.toolPanel_107e25c0"),
101
+ title: e.unavailableReason || (e.context.view.aiAvailable === !1 ? o(n)(e.context.view.aiFeedback) || o(a)("common.toolPanel_8665eaa2") : o(a)("common.toolPanel_6afbb9ca")),
102
+ onClick: m[0] || (m[0] = //@ts-ignore
103
+ (...y) => e.context.refreshCapabilities && e.context.refreshCapabilities(...y))
104
+ }, [
105
+ l(o(j), {
106
+ size: 15,
107
+ "aria-hidden": "true"
108
+ })
109
+ ], 8, M)
110
+ ])) : k("", !0)
111
+ ]));
112
+ }
113
+ });
114
+ export {
115
+ j as R,
116
+ q as _,
117
+ V as a,
118
+ U as b,
119
+ L as c,
120
+ O as n,
121
+ E as u
122
+ };