@fewangsit/wangsvue-fats 1.0.1-alpha.67 → 1.0.1-alpha.68

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 (49) hide show
  1. package/animation/index.es.js +29 -20
  2. package/approverinfo/index.es.js +50 -50
  3. package/assetinfo/index.es.js +8 -8
  4. package/assets/lottiejs/loading-page-dark.es.js +4 -0
  5. package/assets/lottiejs/loading-table-dark.es.js +4 -0
  6. package/assets/lottiejs/no-data-dark.es.js +4 -0
  7. package/buttoncopy/index.es.js +8 -8
  8. package/buttonscan/index.es.js +47 -47
  9. package/carousel/index.es.js +24 -24
  10. package/columnlist/index.es.js +142 -132
  11. package/config/defaultProps.es.js +14 -9
  12. package/datatable/index.d.ts +14 -0
  13. package/datatable/index.es.js +416 -410
  14. package/datepicker/index.es.js +22 -22
  15. package/daypicker/index.es.js +13 -13
  16. package/dialogbasictransferlog/index.es.js +25 -25
  17. package/dialogdamagelog/index.es.js +69 -66
  18. package/dialogform/index.es.js +11 -11
  19. package/dialogfulltransferlog/index.es.js +11 -11
  20. package/dialoglinkedasset/index.es.js +35 -35
  21. package/dialogprintqr/index.es.js +33 -35
  22. package/dialogselecttree/index.es.js +4 -4
  23. package/dialogselectuser/index.es.js +1 -1
  24. package/disposalreport/index.es.js +2 -2
  25. package/editor/index.es.js +51 -48
  26. package/fileupload/index.es.js +14 -14
  27. package/icon/index.es.js +27 -27
  28. package/imagecompressor/index.es.js +82 -82
  29. package/imageinputinfo/index.es.js +9 -9
  30. package/inputsearch/index.es.js +27 -27
  31. package/litedropdown/index.es.js +26 -26
  32. package/loading-page-dark-e0SrRAHc.js +4 -0
  33. package/loading-page-dark-mz8tLHZ3.js +1 -0
  34. package/loading-table-dark-BGh0tAPM.js +4 -0
  35. package/loading-table-dark-Cky7AB_C.js +1 -0
  36. package/multirow/index.es.js +11 -10
  37. package/no-data-dark-DERIJ8Ml.js +1 -0
  38. package/no-data-dark-nK4e4RAM.js +4 -0
  39. package/package.json +1 -1
  40. package/plugins/WangsVue.es.js +11 -9
  41. package/stats.html +1 -1
  42. package/steps/index.es.js +18 -16
  43. package/style.css +2 -2
  44. package/tagtype/index.es.js +13 -13
  45. package/transactionroles/index.es.js +4 -1
  46. package/treesearchinput/index.es.js +7 -7
  47. package/username/index.es.js +8 -8
  48. package/wangsvue-fats.esm.browser.js +18613 -18571
  49. package/wangsvue-fats.system.js +72 -72
@@ -1,4 +1,4 @@
1
- import { defineComponent as Ce, mergeModels as oe, inject as Be, onMounted as Pe, onUnmounted as Me, ref as w, shallowRef as A, useModel as Ue, reactive as Fe, computed as J, watch as N, createElementBlock as f, openBlock as n, Fragment as V, createVNode as m, normalizeClass as y, withCtx as O, createElementVNode as h, createCommentVNode as c, createBlock as I, renderList as ze, unref as S } from "vue";
1
+ import { defineComponent as Ce, mergeModels as oe, inject as Be, onMounted as Pe, onUnmounted as Me, ref as w, shallowRef as A, useModel as Ue, reactive as Fe, computed as J, watch as N, createElementBlock as g, openBlock as n, Fragment as V, createVNode as m, normalizeClass as y, withCtx as x, createElementVNode as h, createCommentVNode as p, createBlock as k, renderList as ze, unref as S } from "vue";
2
2
  import { g as Ae } from "../dialogprintqr/index.es.js";
3
3
  import { r as Se } from "../vendor/base64toblob/base64toblob.es.js";
4
4
  import { u as $e } from "../vendor/vee-validate/dist/vee-validate.esm.es.js";
@@ -10,10 +10,10 @@ import { _ as $ } from "../button/index.es.js";
10
10
  import { _ as Ee } from "../buttonradio/index.es.js";
11
11
  import { _ as Te } from "../dialog/index.es.js";
12
12
  import { _ as je } from "../dialogconfirm/index.es.js";
13
- import { _ as Oe } from "../fieldwrapper/index.es.js";
14
- import { _ as q } from "../icon/index.es.js";
15
- import { _ as qe } from "../invisiblefield/index.es.js";
16
- import { _ as xe } from "../validatormessage/index.es.js";
13
+ import { _ as xe } from "../fieldwrapper/index.es.js";
14
+ import { _ as O } from "../icon/index.es.js";
15
+ import { _ as Oe } from "../invisiblefield/index.es.js";
16
+ import { _ as qe } from "../validatormessage/index.es.js";
17
17
  import { B as Ke } from "../backgroundimagecropper/index.es.js";
18
18
  import { _ as se } from "../imageinputinfo/index.es.js";
19
19
  /* empty css */
@@ -21,7 +21,7 @@ var He = Se();
21
21
  const We = /* @__PURE__ */ Ae(He), Ge = {
22
22
  key: 1,
23
23
  class: "flex gap-1 items-start"
24
- }, Je = ["id", "multiple"], Qe = ["for"], fa = /* @__PURE__ */ Ce({
24
+ }, Je = ["id", "multiple"], Qe = ["for"], ga = /* @__PURE__ */ Ce({
25
25
  __name: "ImageCompressor",
26
26
  props: /* @__PURE__ */ oe({
27
27
  initialName: {},
@@ -53,9 +53,9 @@ const We = /* @__PURE__ */ Ae(He), Ge = {
53
53
  }),
54
54
  emits: /* @__PURE__ */ oe(["apply", "applyProp", "update:defaultImage", "update:fieldValue", "delete"], ["update:defaultImage"]),
55
55
  setup(Q, { expose: ie, emit: ne }) {
56
- const ue = Be("preset", {}).image, l = Q, k = ne, { locale: E } = De("ImageCompressor");
56
+ const ue = Be("preset", {}).image, l = Q, I = ne, { locale: E } = De("ImageCompressor");
57
57
  Pe(async () => {
58
- ge(), M();
58
+ fe(), M();
59
59
  }), Me(() => {
60
60
  F(0), F(1);
61
61
  });
@@ -68,9 +68,9 @@ const We = /* @__PURE__ */ Ae(He), Ge = {
68
68
  src: null,
69
69
  type: null
70
70
  }
71
- ]), me = Ne(), x = w(), C = w(), s = w([]), X = w(), Y = A(0), K = w(), R = w(), d = A(), T = Ue(Q, "defaultImage"), i = Fe({
71
+ ]), me = Ne(), q = w(), C = w(), s = w([]), X = w(), Y = A(0), K = w(), R = w(), d = A(), T = Ue(Q, "defaultImage"), i = Fe({
72
72
  value: l.multiple ? [] : void 0
73
- }), B = A(!1), b = A(), de = A(0), g = A(!1), H = w([!1, !1]), P = J(() => `image/${l.fileType}`), W = (e) => typeof s.value[e] == "string" && s.value[e].includes("data:image/png;base64"), pe = J(() => {
73
+ }), B = A(!1), b = A(), de = A(0), f = A(!1), H = w([!1, !1]), P = J(() => `image/${l.fileType}`), W = (e) => typeof s.value[e] == "string" && s.value[e].includes("data:image/png;base64"), ce = J(() => {
74
74
  const e = {
75
75
  big: 125,
76
76
  medium: 80,
@@ -79,10 +79,10 @@ const We = /* @__PURE__ */ Ae(He), Ge = {
79
79
  return l.type === "inline-table" ? e.small : e[l.imagePreviewSize] || e.small;
80
80
  }), M = async () => {
81
81
  var e, a;
82
- (e = l.imagePreviewUrl) != null && e.length ? s.value = Array.isArray(l.imagePreviewUrl) ? l.imagePreviewUrl : [l.imagePreviewUrl] : Array.isArray(l.compressedBlob) ? s.value = l.compressedBlob : l.compressedBlob ? s.value = [l.compressedBlob] : l.initialName ? (x.value = Le(l.initialName, 125, me), s.value = [(a = x.value) == null ? void 0 : a.toDataURL()]) : s.value = [], l.imagePreviewUrl ? i.value = l.imagePreviewUrl : l.initialName && (i.value = await ce()), k("applyProp");
83
- }, ce = async () => new Promise((e) => {
82
+ (e = l.imagePreviewUrl) != null && e.length ? s.value = Array.isArray(l.imagePreviewUrl) ? l.imagePreviewUrl : [l.imagePreviewUrl] : Array.isArray(l.compressedBlob) ? s.value = l.compressedBlob : l.compressedBlob ? s.value = [l.compressedBlob] : l.initialName ? (q.value = Le(l.initialName, 125, me), s.value = [(a = q.value) == null ? void 0 : a.toDataURL()]) : s.value = [], l.imagePreviewUrl ? i.value = l.imagePreviewUrl : l.initialName && (i.value = await pe()), I("applyProp");
83
+ }, pe = async () => new Promise((e) => {
84
84
  var a;
85
- (a = x.value) == null || a.toBlob((r) => {
85
+ (a = q.value) == null || a.toBlob((r) => {
86
86
  e(
87
87
  new File([r ?? new Blob()], Date.now() + ".png", {
88
88
  type: "image/png"
@@ -100,37 +100,37 @@ const We = /* @__PURE__ */ Ae(He), Ge = {
100
100
  for (const [t, u] of r.entries())
101
101
  try {
102
102
  const o = d.value ?? t;
103
- await fe(u, o);
103
+ await ge(u, o);
104
104
  } catch (o) {
105
105
  console.error("Error loading image:", o);
106
106
  } finally {
107
107
  d.value = void 0;
108
108
  }
109
- }, fe = async (e, a) => {
109
+ }, ge = async (e, a) => {
110
110
  const r = (u) => u.includes("image"), t = (u) => u > 1e6;
111
111
  return new Promise((u, o) => {
112
112
  var D, z;
113
113
  if (e)
114
114
  if (Z(a), !r(e.type))
115
- B.value = !0, b.value = typeof l.validatorMessage != "string" && ((D = l.validatorMessage) != null && D.invalidFormat) ? l.validatorMessage.invalidFormat : "Tipe file harus berupa gambar!", M(), g.value = !1, F(a), o("Tipe file harus berupa gambar!");
115
+ B.value = !0, b.value = typeof l.validatorMessage != "string" && ((D = l.validatorMessage) != null && D.invalidFormat) ? l.validatorMessage.invalidFormat : "Tipe file harus berupa gambar!", M(), f.value = !1, F(a), o("Tipe file harus berupa gambar!");
116
116
  else if (t(e.size))
117
- B.value = !0, b.value = typeof l.validatorMessage != "string" && ((z = l.validatorMessage) != null && z.exceed) ? l.validatorMessage.exceed : "Ukuran gambar terlalu besar! Maks. 1 MB", M(), g.value = !1, F(a), o("Ukuran gambar terlalu besar! Maks. 1 MB");
117
+ B.value = !0, b.value = typeof l.validatorMessage != "string" && ((z = l.validatorMessage) != null && z.exceed) ? l.validatorMessage.exceed : "Ukuran gambar terlalu besar! Maks. 1 MB", M(), f.value = !1, F(a), o("Ukuran gambar terlalu besar! Maks. 1 MB");
118
118
  else {
119
119
  F(a);
120
- const j = URL.createObjectURL(e), p = new FileReader();
121
- p.onload = (L) => {
120
+ const j = URL.createObjectURL(e), c = new FileReader();
121
+ c.onload = (L) => {
122
122
  var re;
123
123
  v.value[a].src = j, v.value[a].type = ye(
124
124
  (re = L == null ? void 0 : L.target) == null ? void 0 : re.result,
125
125
  e.type
126
126
  );
127
- }, p.onerror = (L) => {
127
+ }, c.onerror = (L) => {
128
128
  console.error("🚀 ~ returnnewPromise ~ e:", L);
129
- }, p.readAsArrayBuffer(e), d.value == null && (d.value = a), g.value || (g.value = !0), B.value = !1, b.value = void 0;
129
+ }, c.readAsArrayBuffer(e), d.value == null && (d.value = a), f.value || (f.value = !0), B.value = !1, b.value = void 0;
130
130
  }
131
131
  de.value += 1, R.value = u;
132
132
  });
133
- }, ge = () => {
133
+ }, fe = () => {
134
134
  l.useValidator && Object.assign(
135
135
  i,
136
136
  $e(l.fieldName, (e) => {
@@ -181,23 +181,23 @@ const We = /* @__PURE__ */ Ae(He), Ge = {
181
181
  ee();
182
182
  }, ee = () => {
183
183
  var e;
184
- g.value = !1, (e = R.value) == null || e.call(R), R.value = void 0;
184
+ f.value = !1, (e = R.value) == null || e.call(R), R.value = void 0;
185
185
  }, he = async (e) => {
186
186
  if (K.value) {
187
187
  const a = K.value.getResult();
188
188
  if (a.canvas) {
189
189
  const r = a.canvas.toDataURL(P.value);
190
- await Ie(r, e);
190
+ await ke(r, e);
191
191
  }
192
192
  }
193
- }, Ie = async (e, a) => {
193
+ }, ke = async (e, a) => {
194
194
  try {
195
195
  C.value = document.createElement("canvas");
196
196
  const r = C.value.getContext("2d"), t = new Image();
197
197
  t.src = e, await t.decode();
198
198
  const u = 80 / 100, o = t.width * u, D = t.height * u;
199
199
  C.value.setAttribute("width", o.toString()), C.value.setAttribute("height", D.toString()), r && r.drawImage(t, 0, 0, o, D);
200
- const z = C.value.toDataURL(P.value, 0.95), j = Date.now() + `.${l.fileType}`, p = {
200
+ const z = C.value.toDataURL(P.value, 0.95), j = Date.now() + `.${l.fileType}`, c = {
201
201
  canvas: C.value,
202
202
  compressed: {
203
203
  blob: _(z),
@@ -209,31 +209,31 @@ const We = /* @__PURE__ */ Ae(He), Ge = {
209
209
  },
210
210
  message: "File has been compressed."
211
211
  };
212
- p.compressed.size = Math.round(p.compressed.file.size / 1e3) + "KB", s.value[a] = p.compressed.blob, l.multiple ? i.value && Array.isArray(i.value) ? i.value[a] = p.compressed.file : i.value = [p.compressed.file] : i.value = p.compressed.file, k("apply", p);
212
+ c.compressed.size = Math.round(c.compressed.file.size / 1e3) + "KB", s.value[a] = c.compressed.blob, l.multiple ? i.value && Array.isArray(i.value) ? i.value[a] = c.compressed.file : i.value = [c.compressed.file] : i.value = c.compressed.file, I("apply", c);
213
213
  } catch (r) {
214
214
  console.error(r);
215
215
  }
216
216
  }, F = (e) => {
217
217
  v.value[e].src && URL.revokeObjectURL(v.value[e].src);
218
218
  }, ae = (e) => {
219
- l.confirmOnDelete ? H.value[e] = !0 : l.emitDeleteFn ? k("delete", G, e) : G(e);
219
+ l.confirmOnDelete ? H.value[e] = !0 : l.emitDeleteFn ? I("delete", G, e) : G(e);
220
220
  }, G = (e = 0) => {
221
- B.value = !1, b.value = void 0, s.value = s.value.toSpliced(e, 1), F(e), v.value[e] = { src: null, type: null }, v.value = [v.value[+!e], v.value[e]], d.value = 0, T.value = 0, l.confirmOnDelete || k("delete"), l.multiple && Array.isArray(i.value) ? i.value = i.value.toSpliced(e, 1) : i.handleReset && i.handleReset();
221
+ B.value = !1, b.value = void 0, s.value = s.value.toSpliced(e, 1), F(e), v.value[e] = { src: null, type: null }, v.value = [v.value[+!e], v.value[e]], d.value = 0, T.value = 0, l.confirmOnDelete || I("delete"), l.multiple && Array.isArray(i.value) ? i.value = i.value.toSpliced(e, 1) : i.handleReset && i.handleReset();
222
222
  }, le = (e) => {
223
223
  var r;
224
224
  const a = (r = s.value[e]) == null ? void 0 : r.toString();
225
- d.value = e, a != null && a.includes("blob") ? (d.value = e, g.value = !0) : (Z(e), U());
226
- }, ke = () => {
225
+ d.value = e, a != null && a.includes("blob") ? (d.value = e, f.value = !0) : (Z(e), U());
226
+ }, Ie = () => {
227
227
  U();
228
228
  }, te = J(() => navigator.userAgent.includes("Chrome"));
229
229
  return N(
230
230
  () => i.value,
231
231
  (e) => {
232
- (e instanceof File || Array.isArray(e) && e.some((a) => a instanceof File)) && k("update:fieldValue", e);
232
+ (e instanceof File || Array.isArray(e) && e.some((a) => a instanceof File)) && I("update:fieldValue", e);
233
233
  }
234
234
  ), N(b, (e) => {
235
235
  e && i.setErrors && i.setErrors(e);
236
- }), N(g, (e) => {
236
+ }), N(f, (e) => {
237
237
  e || Y.value++;
238
238
  }), N(
239
239
  () => l.initialName,
@@ -246,8 +246,8 @@ const We = /* @__PURE__ */ Ae(He), Ge = {
246
246
  M();
247
247
  },
248
248
  { once: !0 }
249
- ), ie({ assignPreviewImagesFromProp: M }), (e, a) => (n(), f(V, null, [
250
- m(Oe, {
249
+ ), ie({ assignPreviewImagesFromProp: M }), (e, a) => (n(), g(V, null, [
250
+ m(xe, {
251
251
  class: y([{ "!w-max": !l.multiple, "!w-full": l.multiple }]),
252
252
  info: l.fieldInfo,
253
253
  label: l.label,
@@ -255,7 +255,7 @@ const We = /* @__PURE__ */ Ae(He), Ge = {
255
255
  "data-wv-name": "image-compressor",
256
256
  "data-wv-section": "root"
257
257
  }, {
258
- default: O(() => [
258
+ default: x(() => [
259
259
  h("div", {
260
260
  class: y([
261
261
  "w-full",
@@ -266,9 +266,9 @@ const We = /* @__PURE__ */ Ae(He), Ge = {
266
266
  ]),
267
267
  "data-wv-section": "wrapper"
268
268
  }, [
269
- s.value.length ? (n(!0), f(V, { key: 0 }, ze(s.value, (r, t) => {
269
+ s.value.length ? (n(!0), g(V, { key: 0 }, ze(s.value, (r, t) => {
270
270
  var u;
271
- return n(), f("div", {
271
+ return n(), g("div", {
272
272
  key: t,
273
273
  class: y([[
274
274
  { "items-start": e.type === "normal" },
@@ -303,11 +303,11 @@ const We = /* @__PURE__ */ Ae(He), Ge = {
303
303
  class: y([{ "w-[30px] h-[30px]": e.type === "inline-table" }, "transition-opacity duration-300"]),
304
304
  rounded: e.rounded,
305
305
  src: r,
306
- "thumbnail-size": pe.value,
306
+ "thumbnail-size": ce.value,
307
307
  "use-default-size": !1,
308
308
  "data-wv-section": "preview-image"
309
309
  }, null, 8, ["class", "rounded", "src", "thumbnail-size"]),
310
- W(t) ? (n(), f("button", {
310
+ W(t) ? (n(), g("button", {
311
311
  key: 0,
312
312
  class: y([
313
313
  (u = S(ue)) == null ? void 0 : u.button.class,
@@ -317,15 +317,15 @@ const We = /* @__PURE__ */ Ae(He), Ge = {
317
317
  "data-wv-section": "input-image-trigger",
318
318
  type: "button"
319
319
  }, [
320
- m(q, {
320
+ m(O, {
321
321
  class: "w-6 h-6",
322
322
  "data-wv-section": "trigger-icon",
323
323
  icon: "image-add",
324
324
  severity: "primary"
325
325
  })
326
- ], 2)) : c("", !0)
326
+ ], 2)) : p("", !0)
327
327
  ], 2),
328
- !l.disabled && !W(t) ? (n(), f(V, { key: 0 }, [
328
+ !l.disabled && !W(t) ? (n(), g(V, { key: 0 }, [
329
329
  h("div", {
330
330
  class: y([
331
331
  "flex gap-0.5 justify-center",
@@ -333,7 +333,7 @@ const We = /* @__PURE__ */ Ae(He), Ge = {
333
333
  ]),
334
334
  "data-wv-section": "preview-buttons"
335
335
  }, [
336
- e.type === "normal" ? (n(), f(V, { key: 0 }, [
336
+ e.type === "normal" ? (n(), g(V, { key: 0 }, [
337
337
  m($, {
338
338
  onClick: (o) => le(t),
339
339
  class: "!py-0 !px-1 !h-max",
@@ -341,7 +341,7 @@ const We = /* @__PURE__ */ Ae(He), Ge = {
341
341
  label: "Edit",
342
342
  text: ""
343
343
  }, null, 8, ["onClick"]),
344
- e.useDeleteButton ? (n(), I($, {
344
+ e.useDeleteButton ? (n(), k($, {
345
345
  key: 0,
346
346
  onClick: (o) => ae(t),
347
347
  class: "!py-0 !px-1 !h-max",
@@ -349,15 +349,15 @@ const We = /* @__PURE__ */ Ae(He), Ge = {
349
349
  label: "Delete",
350
350
  severity: "danger",
351
351
  text: ""
352
- }, null, 8, ["onClick"])) : c("", !0)
353
- ], 64)) : (n(), f(V, { key: 1 }, [
354
- m(q, {
352
+ }, null, 8, ["onClick"])) : p("", !0)
353
+ ], 64)) : (n(), g(V, { key: 1 }, [
354
+ m(O, {
355
355
  onClick: (o) => le(t),
356
356
  class: "text-xs p-0.5 rounded-xs mr-1",
357
357
  icon: "pencil",
358
358
  severity: "primary"
359
359
  }, null, 8, ["onClick"]),
360
- m(q, {
360
+ m(O, {
361
361
  onClick: (o) => ae(t),
362
362
  class: "text-xs p-0.5 rounded-xs",
363
363
  icon: "delete-bin",
@@ -369,42 +369,42 @@ const We = /* @__PURE__ */ Ae(He), Ge = {
369
369
  visible: H.value[t],
370
370
  "onUpdate:visible": (o) => H.value[t] = o,
371
371
  closable: !1,
372
- onConfirm: (o) => k("delete", G, t),
372
+ onConfirm: (o) => I("delete", G, t),
373
373
  body: "Are you sure you want to delete it?",
374
374
  "confirm-label": "Delete",
375
375
  header: "Delete Photo",
376
376
  severity: "danger"
377
377
  }, null, 8, ["visible", "onUpdate:visible", "onConfirm"])
378
- ], 64)) : c("", !0)
378
+ ], 64)) : p("", !0)
379
379
  ], 2),
380
- e.type === "normal" ? (n(), I(se, {
380
+ e.type === "normal" ? (n(), k(se, {
381
381
  key: 0,
382
382
  "custom-requirements": e.customRequirements,
383
383
  "show-add-button": s.value.length === 1 && l.multiple,
384
384
  "show-info": e.showInfo,
385
385
  onAddPhoto: a[2] || (a[2] = (o) => U(!0))
386
386
  }, {
387
- default: O(() => [
388
- s.value.length === 2 && l.multiple ? (n(), I(Ee, {
387
+ default: x(() => [
388
+ s.value.length === 2 && l.multiple ? (n(), k(Ee, {
389
389
  key: 0,
390
390
  modelValue: T.value,
391
391
  "onUpdate:modelValue": a[1] || (a[1] = (o) => T.value = o),
392
392
  "label-id": "default-" + t,
393
393
  value: t,
394
394
  label: "Set as default"
395
- }, null, 8, ["modelValue", "label-id", "value"])) : c("", !0)
395
+ }, null, 8, ["modelValue", "label-id", "value"])) : p("", !0)
396
396
  ]),
397
397
  _: 2
398
- }, 1032, ["custom-requirements", "show-add-button", "show-info"])) : c("", !0),
399
- e.multiple && s.value.length == 1 && e.type === "inline-table" ? (n(), I($, {
398
+ }, 1032, ["custom-requirements", "show-add-button", "show-info"])) : p("", !0),
399
+ e.multiple && s.value.length == 1 && e.type === "inline-table" ? (n(), k($, {
400
400
  key: 1,
401
401
  onClick: a[3] || (a[3] = (o) => U(!0)),
402
402
  icon: "add",
403
403
  label: "Photo",
404
404
  text: ""
405
- })) : c("", !0)
405
+ })) : p("", !0)
406
406
  ], 2);
407
- }), 128)) : e.type != "inline-table" ? (n(), f("div", Ge, [
407
+ }), 128)) : e.type != "inline-table" ? (n(), g("div", Ge, [
408
408
  h("button", {
409
409
  class: y([
410
410
  {
@@ -421,19 +421,19 @@ const We = /* @__PURE__ */ Ae(He), Ge = {
421
421
  },
422
422
  { "rounded-full": e.rounded, "rounded-lg": !e.rounded },
423
423
  {
424
- "ring-general-400 focus-visible:ring-primary-500": !B.value && !i.errorMessage,
425
- "ring-danger-500": B.value || i.errorMessage
424
+ "ring-general-400 dark:ring-general-400 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-500": !B.value && !i.errorMessage,
425
+ "ring-danger-500 dark:ring-danger-500": B.value || i.errorMessage
426
426
  },
427
427
  {
428
- "bg-white": !l.disabled,
429
- "bg-general-50": l.disabled
428
+ "bg-white dark:bg-grayscale-900": !l.disabled,
429
+ "bg-general-50 dark:bg-grayscale-800": l.disabled
430
430
  }
431
431
  ]),
432
432
  onClick: a[4] || (a[4] = (r) => U(!1)),
433
433
  "data-wv-section": "input-image-trigger",
434
434
  type: "button"
435
435
  }, [
436
- m(q, {
436
+ m(O, {
437
437
  class: "w-6 h-6",
438
438
  "data-wv-section": "trigger-icon",
439
439
  icon: "image-add",
@@ -444,9 +444,9 @@ const We = /* @__PURE__ */ Ae(He), Ge = {
444
444
  "custom-requirements": e.customRequirements,
445
445
  "show-info": e.showInfo
446
446
  }, null, 8, ["custom-requirements", "show-info"])
447
- ])) : c("", !0)
447
+ ])) : p("", !0)
448
448
  ], 2),
449
- (n(), f("input", {
449
+ (n(), g("input", {
450
450
  id: e.fieldName,
451
451
  key: Y.value,
452
452
  ref_key: "inputImageFile",
@@ -458,30 +458,30 @@ const We = /* @__PURE__ */ Ae(He), Ge = {
458
458
  "data-wv-section": "hidden-image-input",
459
459
  type: "file"
460
460
  }, null, 40, Je)),
461
- e.type === "inline-table" && !s.value.length ? (n(), f("label", {
461
+ e.type === "inline-table" && !s.value.length ? (n(), g("label", {
462
462
  key: 0,
463
463
  for: e.fieldName,
464
464
  class: "inline-flex items-center cursor-pointer"
465
465
  }, a[6] || (a[6] = [
466
- h("span", { class: "inline-flex items-center text-body-medium rounded-bl rounded-tl bg-general-50 px-3 h-[26px] border-[0.5px] border-general-200" }, " Browse ", -1),
467
- h("span", { class: "inline-flex items-center text-body-medium !text-general-200 !font-light rounded-br rounded-tr px-3 h-[26px] leading-4 border-[0.5px] border-l-0 border-general-200" }, " Select File ", -1)
468
- ]), 8, Qe)) : c("", !0),
469
- e.showValidatorMessage ? (n(), I(xe, {
466
+ h("span", { class: "inline-flex items-center text-body-medium rounded-bl rounded-tl bg-general-50 dark:bg-grayscale-800 px-3 h-[26px] border-[0.5px] border-general-200 dark:border-grayscale-800" }, " Browse ", -1),
467
+ h("span", { class: "inline-flex items-center text-body-medium !text-general-200 dark:!text-general-600 !font-light rounded-br rounded-tr px-3 h-[26px] leading-4 border-[0.5px] border-l-0 border-general-200 dark:border-grayscale-800" }, " Select File ", -1)
468
+ ]), 8, Qe)) : p("", !0),
469
+ e.showValidatorMessage ? (n(), k(qe, {
470
470
  key: 1,
471
471
  format: !1,
472
472
  message: i.errorMessage ?? b.value
473
- }, null, 8, ["message"])) : c("", !0),
474
- l.multiple ? (n(), I(qe, {
473
+ }, null, 8, ["message"])) : p("", !0),
474
+ l.multiple ? (n(), k(Oe, {
475
475
  key: 2,
476
476
  value: T.value ? "secondImage" : "firstImage",
477
477
  "field-name": "defaultImage"
478
- }, null, 8, ["value"])) : c("", !0)
478
+ }, null, 8, ["value"])) : p("", !0)
479
479
  ]),
480
480
  _: 1
481
481
  }, 8, ["class", "info", "label", "mandatory"]),
482
482
  m(Te, {
483
- visible: g.value,
484
- "onUpdate:visible": a[5] || (a[5] = (r) => g.value = r),
483
+ visible: f.value,
484
+ "onUpdate:visible": a[5] || (a[5] = (r) => f.value = r),
485
485
  draggable: !1,
486
486
  header: S(E).cropDialogHeader,
487
487
  class: "w-max max-w-[98vw] min-w-[min(500px,98vw)] !max-h-[94vh]",
@@ -490,7 +490,7 @@ const We = /* @__PURE__ */ Ae(He), Ge = {
490
490
  "footer-class": "!gap-1",
491
491
  modal: ""
492
492
  }, {
493
- footer: O(() => [
493
+ footer: x(() => [
494
494
  m($, {
495
495
  label: S(E).cancelCropLabel,
496
496
  onClick: ee,
@@ -501,7 +501,7 @@ const We = /* @__PURE__ */ Ae(He), Ge = {
501
501
  }, null, 8, ["label"]),
502
502
  m($, {
503
503
  label: S(E).changeImageLabel,
504
- onClick: ke,
504
+ onClick: Ie,
505
505
  "data-wv-section": "change-image-button",
506
506
  text: "",
507
507
  type: "button"
@@ -514,8 +514,8 @@ const We = /* @__PURE__ */ Ae(He), Ge = {
514
514
  type: "button"
515
515
  }, null, 8, ["label"])
516
516
  ]),
517
- default: O(() => [
518
- d.value != null ? (n(), I(S(Re), {
517
+ default: x(() => [
518
+ d.value != null ? (n(), k(S(Re), {
519
519
  key: 0,
520
520
  ref_key: "vueAdvanceCropper",
521
521
  ref: K,
@@ -525,7 +525,7 @@ const We = /* @__PURE__ */ Ae(He), Ge = {
525
525
  class: "upload-example-cropper h-400",
526
526
  "foreground-class": "h-400",
527
527
  "image-class": "h-400"
528
- }, null, 8, ["src"])) : c("", !0)
528
+ }, null, 8, ["src"])) : p("", !0)
529
529
  ]),
530
530
  _: 1
531
531
  }, 8, ["visible", "header"])
@@ -533,5 +533,5 @@ const We = /* @__PURE__ */ Ae(He), Ge = {
533
533
  }
534
534
  });
535
535
  export {
536
- fa as _
536
+ ga as _
537
537
  };
@@ -1,16 +1,16 @@
1
- import { defineComponent as d, createElementBlock as t, openBlock as o, createCommentVNode as a, createBlock as c, renderSlot as f, normalizeClass as _, Fragment as m, renderList as g, toDisplayString as r, createElementVNode as u, unref as p } from "vue";
2
- import { u as y } from "../plugins/WangsVue.es.js";
3
- import { _ as k } from "../button/index.es.js";
1
+ import { defineComponent as p, createElementBlock as t, openBlock as o, createCommentVNode as a, createBlock as c, renderSlot as f, normalizeClass as _, Fragment as m, renderList as g, toDisplayString as r, createElementVNode as u, unref as d } from "vue";
2
+ import { u as k } from "../plugins/WangsVue.es.js";
3
+ import { _ as y } from "../button/index.es.js";
4
4
  const h = { class: "flex flex-col gap-y-4" }, w = {
5
5
  key: 0,
6
6
  class: /* @__PURE__ */ _([
7
- "text-xs font-normal text-grayscale-900",
7
+ "text-xs font-normal text-grayscale-900 dark:text-white",
8
8
  "[&_li]:before:content-['•']",
9
9
  "[&_li]:before:inline-block [&_li]:before:w-[12px] [&_li]:before:ml-[-12px] pl-3",
10
10
  "max-w-[121px] [&_li]:pl-0.5"
11
11
  ]),
12
12
  "data-wv-section": "image-requirements-info"
13
- }, C = /* @__PURE__ */ d({
13
+ }, C = /* @__PURE__ */ p({
14
14
  __name: "ImageInputInfo",
15
15
  props: {
16
16
  customRequirements: {},
@@ -19,17 +19,17 @@ const h = { class: "flex flex-col gap-y-4" }, w = {
19
19
  },
20
20
  emits: ["addPhoto"],
21
21
  setup(x) {
22
- const { locale: l } = y("ImageCompressor");
22
+ const { locale: l } = k("ImageCompressor");
23
23
  return (e, s) => {
24
24
  var i;
25
25
  return o(), t("div", h, [
26
26
  e.showInfo ? (o(), t("ul", w, [
27
27
  (i = e.customRequirements) != null && i.length ? (o(!0), t(m, { key: 0 }, g(e.customRequirements, (n) => (o(), t("li", { key: n }, r(n), 1))), 128)) : (o(), t(m, { key: 1 }, [
28
- u("li", null, r(p(l).maxSizeRequirement), 1),
29
- u("li", null, r(p(l).imageTypeRequirement), 1)
28
+ u("li", null, r(d(l).maxSizeRequirement), 1),
29
+ u("li", null, r(d(l).imageTypeRequirement), 1)
30
30
  ], 64))
31
31
  ])) : a("", !0),
32
- e.showAddButton ? (o(), c(k, {
32
+ e.showAddButton ? (o(), c(y, {
33
33
  key: 1,
34
34
  onClick: s[0] || (s[0] = (n) => e.$emit("addPhoto")),
35
35
  icon: "add",
@@ -1,46 +1,46 @@
1
- import { defineComponent as h, shallowRef as c, createElementBlock as v, openBlock as f, withModifiers as x, normalizeClass as l, createElementVNode as g, createVNode as o, unref as _ } from "vue";
2
- import { s as w } from "../vendor/primevue/inputtext/inputtext.esm.es.js";
3
- import { _ as i } from "../icon/index.es.js";
4
- const b = { class: "w-full" }, $ = /* @__PURE__ */ h({
1
+ import { defineComponent as g, shallowRef as c, createElementBlock as x, openBlock as h, withModifiers as v, normalizeClass as a, createElementVNode as f, createVNode as r, unref as _ } from "vue";
2
+ import { s as k } from "../vendor/primevue/inputtext/inputtext.esm.es.js";
3
+ import { _ as d } from "../icon/index.es.js";
4
+ const w = { class: "w-full" }, $ = /* @__PURE__ */ g({
5
5
  __name: "InputSearch",
6
6
  emits: ["search"],
7
- setup(k, { emit: u }) {
8
- const d = u, n = c(), e = c(), m = (a) => {
9
- n.value = a.target.value || void 0, e.value = a.target.value || void 0;
7
+ setup(b, { emit: i }) {
8
+ const u = i, n = c(), e = c(), p = (l) => {
9
+ n.value = l.target.value || void 0, e.value = l.target.value || void 0;
10
10
  };
11
- return (a, t) => {
12
- var s, r;
13
- return f(), v("form", {
14
- class: l([
11
+ return (l, t) => {
12
+ var o, s;
13
+ return h(), x("form", {
14
+ class: a([
15
15
  "text-xs flex gap-1 h-[34px] px-[21px] items-center",
16
- "rounded-[18px] bg-general-50"
16
+ "rounded-[18px] bg-general-50 dark:!bg-general-200"
17
17
  ]),
18
- onSubmit: t[1] || (t[1] = x((p) => d("search", n.value), ["prevent"]))
18
+ onSubmit: t[1] || (t[1] = v((m) => u("search", n.value), ["prevent"]))
19
19
  }, [
20
- g("div", b, [
21
- o(_(w), {
22
- class: l([
23
- "h-auto !shadow-none !p-0 !text-general-500 placeholder:text-general-200 !bg-general-50"
20
+ f("div", w, [
21
+ r(_(k), {
22
+ class: a([
23
+ "h-auto !shadow-none !p-0 !text-general-800 dark:!text-general-900 placeholder:text-general-200 dark:placeholder:text-general-500 !bg-general-50 dark:!bg-general-200"
24
24
  ]),
25
25
  "model-value": e.value,
26
- onInput: m,
26
+ onInput: p,
27
27
  autocomplete: "off",
28
28
  placeholder: "Search asset"
29
29
  }, null, 8, ["model-value"])
30
30
  ]),
31
- o(i, {
32
- class: l([
33
- "text-md !text-general-400 !w-4 !h-4",
34
- { hidden: (s = e.value) == null ? void 0 : s.length }
31
+ r(d, {
32
+ class: a([
33
+ "text-md !text-general-400 dark:!text-general-900 !w-4 !h-4",
34
+ { hidden: (o = e.value) == null ? void 0 : o.length }
35
35
  ]),
36
36
  icon: "search"
37
37
  }, null, 8, ["class"]),
38
- o(i, {
39
- class: l([
40
- "text-md !text-general-400 !w-4 !h-4",
41
- { hidden: !((r = e.value) != null && r.length) }
38
+ r(d, {
39
+ class: a([
40
+ "text-md !text-general-400 dark:!text-general-900 !w-4 !h-4",
41
+ { hidden: !((s = e.value) != null && s.length) }
42
42
  ]),
43
- onClick: t[0] || (t[0] = (p) => e.value = void 0),
43
+ onClick: t[0] || (t[0] = (m) => e.value = void 0),
44
44
  "data-ts-section": "reset-filter-icon",
45
45
  icon: "close"
46
46
  }, null, 8, ["class"])