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

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 (96) hide show
  1. package/animation/index.es.js +30 -20
  2. package/approverinfo/index.es.js +50 -50
  3. package/assetinfo/index.d.ts +5 -4
  4. package/assetinfo/index.es.js +116 -100
  5. package/assets/lottiejs/loading-page-dark.es.js +4 -0
  6. package/assets/lottiejs/loading-table-dark.es.js +4 -0
  7. package/assets/lottiejs/no-data-dark.es.js +4 -0
  8. package/backgroundimagecropper/index.es.js +14 -12
  9. package/button/index.es.js +58 -48
  10. package/buttonbulkaction/index.es.js +67 -59
  11. package/buttoncopy/index.es.js +8 -8
  12. package/buttondownload/index.es.js +18 -18
  13. package/buttonradio/index.es.js +11 -11
  14. package/buttonscan/index.es.js +48 -48
  15. package/buttonsearch/index.es.js +14 -14
  16. package/buttonselectuser/index.es.js +29 -29
  17. package/carousel/index.es.js +24 -24
  18. package/checkbox/index.es.js +5 -5
  19. package/columnlist/index.es.js +142 -132
  20. package/config/defaultProps.es.js +15 -11
  21. package/datatable/index.d.ts +14 -0
  22. package/datatable/index.es.js +520 -509
  23. package/datepicker/index.es.js +24 -24
  24. package/daypicker/index.es.js +29 -29
  25. package/dialog/index.es.js +17 -15
  26. package/dialogbasictransferlog/index.es.js +100 -100
  27. package/dialogconfirm/index.es.js +33 -33
  28. package/dialogdamagelog/index.es.js +106 -103
  29. package/dialogform/index.es.js +25 -25
  30. package/dialogfulltransferlog/index.es.js +98 -98
  31. package/dialoglinkedasset/index.es.js +61 -61
  32. package/dialogprintqr/index.es.js +78 -80
  33. package/dialogreportdamage/index.es.js +57 -57
  34. package/dialogreportmissing/index.es.js +94 -86
  35. package/dialogselecttree/index.es.js +18 -16
  36. package/dialogselectuser/index.es.js +17 -17
  37. package/directives/index.d.ts +1 -0
  38. package/directives/index.es.js +1 -0
  39. package/directives/safeHtml.d.ts +16 -0
  40. package/directives/safeHtml.es.js +12 -0
  41. package/disposalreport/index.es.js +3 -3
  42. package/disposalreportbulkaction/index.es.js +40 -41
  43. package/disposalreportdialogselectasset/index.es.js +72 -72
  44. package/disposalreporttable/index.es.js +108 -108
  45. package/disposalreporttablefilter/index.es.js +16 -17
  46. package/dropdown/index.es.js +120 -117
  47. package/editor/index.es.js +51 -48
  48. package/fieldwrapper/index.es.js +7 -7
  49. package/fileupload/index.es.js +44 -40
  50. package/hardwaresync/index.es.js +12 -12
  51. package/headercell/index.es.js +4 -4
  52. package/icon/index.es.js +36 -35
  53. package/imagecompressor/index.es.js +155 -155
  54. package/imageinputinfo/index.es.js +13 -13
  55. package/inlinemessage/index.es.js +12 -12
  56. package/inputbadge/index.es.js +42 -43
  57. package/inputnumber/index.es.js +7 -7
  58. package/inputpassword/index.es.js +9 -9
  59. package/inputrangenumber/index.es.js +16 -16
  60. package/inputsearch/index.es.js +27 -27
  61. package/inputtext/index.es.js +33 -33
  62. package/litedropdown/index.es.js +47 -39
  63. package/loading-page-dark-e0SrRAHc.js +4 -0
  64. package/loading-page-dark-mz8tLHZ3.js +1 -0
  65. package/loading-table-dark-BGh0tAPM.js +4 -0
  66. package/loading-table-dark-Cky7AB_C.js +1 -0
  67. package/menuitem/index.es.js +27 -26
  68. package/multirow/index.es.js +17 -16
  69. package/multiselect/index.es.js +86 -83
  70. package/no-data-dark-DERIJ8Ml.js +1 -0
  71. package/no-data-dark-nK4e4RAM.js +4 -0
  72. package/package.json +1 -1
  73. package/plugins/WangsVue.es.js +11 -9
  74. package/plugins/basei18n.d.ts +2 -2
  75. package/plugins/basei18n.es.js +48 -42
  76. package/stats.html +1 -1
  77. package/steps/index.es.js +18 -16
  78. package/style.css +2 -2
  79. package/tabmenu/index.es.js +14 -9
  80. package/tagtype/index.es.js +35 -32
  81. package/textarea/index.es.js +3 -3
  82. package/toggledarkmode/store/index.d.ts +7 -0
  83. package/toggleswitch/index.es.js +3 -3
  84. package/transactionroles/index.es.js +4 -1
  85. package/treesearchinput/index.es.js +15 -15
  86. package/username/index.es.js +37 -37
  87. package/utils/baseToast.util.es.js +23 -22
  88. package/utils/index.es.js +1 -2
  89. package/utils/textFormatter.util.d.ts +32 -0
  90. package/utils/textFormatter.util.es.js +38 -10
  91. package/validatormessage/index.es.js +1 -1
  92. package/vendor/dompurify/dist/purify.es.es.js +553 -0
  93. package/wangsvue-fats.d.ts +2 -1
  94. package/wangsvue-fats.es.js +190 -186
  95. package/wangsvue-fats.esm.browser.js +22487 -21781
  96. package/wangsvue-fats.system.js +72 -71
@@ -0,0 +1,4 @@
1
+ const A = "data:application/octet-stream;base64,UEsDBBQAAAAIAJUQc1sIGu2wgQAAALUAAAANAAAAbWFuaWZlc3QuanNvbo2NQQ7CIBBF7zJrqaUilq56AU9gXEwLKIaCgdHENL27s3Lt7v/kvbwV3q7UkBMMIGEHN5dcQcqF/2gzxUwU3P63xKOOsumalll80f0/MIUFiSMVhssKwbJjJR5m66U4eSWF8hMK06pJeKP71hxn3eme1WfEzzlbx0bKZcEI23X7AlBLAwQUAAAACACVEHNbR9UNAfEOAAAEVQAANAAAAGFuaW1hdGlvbnMvZDFhM2NkZjEtN2Y0MS00ZmJhLTkwNGItZjk2ODA5NWM2MjY4Lmpzb27tXFtvG8cZ/SvCvna52ftFT70mKJAARZP2xQgKRqZixqQokLTb1NB/7znnm9mdpUhZqi1pjShAvNq5fDM7M+e7Dz9EV+voPPrTZn292S3/u9xcLc6KKI5ev34dnadx9CY6z3M8/x2dF00eR+vFfh6df4h+Rqffrzb7/XJxuVwtdl/tN5vV2+V+9svuLE2KIsmjmzhazX9dbHfR+asP0f5X0dNo86vleq6xfoehdtvoPMNjrwab6+i8wnOJJ8fHNC7nq91imNJPIMGa+e67+e5tXz3fqPgthvsQaY74hwUYPsu7OEvzpIrTH0H6PxgQs/MtfaMii/V/6hvVbISqoFWKIsxs1K/rQDjLyp54jkb4qLCbG5Xdd+PJsQhTD0owAdc8u0Hl4hKDgDK2IK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Y2lo+Vebzfqn7Rz/PfHvqt0vbwVc/P/IV8FvBvLXI774PJVpXHRyzAyKBjgkeFrZOnc7zHtcGKCZ7xwAyD3mzQYAUvY/stQVV6ikfRgZUEEZiFQWKsd1GVwtAgmoVvY7YRmjDPiNQb1BPIJ9wqEZ5DejPfuHNBkQ5C+GkG8xtq4fTOC9Kg7BWyCYOMZoFPsDBf48CrnhOHYidyGuaNinFKZ+ut8tAhX+yCI9/kXwEycFbpOkDE3QOBJvVQnsNMxdehl/4qiFFMAtWHB3+3kWBkWor3UuXwAJq4xKQI2VhSgSCqx0ElGjQewnxEpEv6E1MtLjrnTxE0XTrkBi1IIKJdvACfMMXJk/m8KdbJGzCMUMn/gRrlw8M1Om6Ya5tlCpG6rlj82Ua/598z9QSwECFAAUAAAACACVEHNbCBrtsIEAAAC1AAAADQAAAAAAAAAAAAAAAAAAAAAAbWFuaWZlc3QuanNvblBLAQIUABQAAAAIAJUQc1tH1Q0B8Q4AAARVAAA0AAAAAAAAAAAAAAAAAKwAAABhbmltYXRpb25zL2QxYTNjZGYxLTdmNDEtNGZiYS05MDRiLWY5NjgwOTVjNjI2OC5qc29uUEsFBgAAAAACAAIAnQAAAO8PAAAAAA==";
2
+ export {
3
+ A as default
4
+ };
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as p, shallowRef as f, ref as m, createBlock as h, openBlock as v, unref as a, withCtx as d, renderSlot as z, createElementVNode as g, normalizeClass as w, toDisplayString as C } from "vue";
2
2
  import { o as y } from "../vendor/vue-advanced-cropper/dist/index.esm-bundler.es.js";
3
- import { u as _ } from "../plugins/WangsVue.es.js";
4
- const I = (i, s) => {
3
+ import { u as I } from "../plugins/WangsVue.es.js";
4
+ const R = (i, s) => {
5
5
  const r = i.__vccOpts || i;
6
6
  for (const [o, l] of s)
7
7
  r[o] = l;
8
8
  return r;
9
- }, R = /* @__PURE__ */ p({
9
+ }, _ = /* @__PURE__ */ p({
10
10
  __name: "BackgroundImageCropper",
11
11
  props: {
12
12
  touchMove: {},
@@ -16,24 +16,24 @@ const I = (i, s) => {
16
16
  },
17
17
  emits: ["move", "resize"],
18
18
  setup(i) {
19
- const s = i, { locale: r } = _("ImageCompressor"), o = f(!1), l = m(), n = (e, t) => {
19
+ const s = i, { locale: r } = I("ImageCompressor"), o = f(!1), l = m(), c = (e, t) => {
20
20
  if (e.type === "touchstart" || e.type === "touchmove") {
21
21
  if (e.touches.length === 1 && !t)
22
- return o.value = !0, l.value = "touch", c(), !1;
22
+ return o.value = !0, l.value = "touch", n(), !1;
23
23
  o.value = !1;
24
24
  } else if (e.type === "wheel") {
25
25
  if (!t && !e.ctrlKey)
26
- return o.value = !0, l.value = "wheel", c(), !1;
26
+ return o.value = !0, l.value = "wheel", n(), !1;
27
27
  o.value = !1;
28
28
  }
29
29
  e.preventDefault(), e.stopPropagation();
30
- }, c = () => {
30
+ }, n = () => {
31
31
  setTimeout(() => {
32
32
  o.value = !1;
33
33
  }, 1e3);
34
34
  };
35
35
  return (e, t) => (v(), h(a(y), {
36
- "events-filter": n,
36
+ "events-filter": c,
37
37
  "mouse-move": s.mouseMove,
38
38
  "touch-move": s.touchMove,
39
39
  "touch-resize": s.touchResize,
@@ -45,13 +45,15 @@ const I = (i, s) => {
45
45
  z(e.$slots, "default", {}, void 0, !0),
46
46
  g("div", {
47
47
  class: w([{ "cropper-event-notification--visible": o.value }, "cropper-event-notification"])
48
- }, C(l.value === "wheel" ? a(r).cropperCtrlScrollInfo : a(r).cropperTwoFingerInfo), 3)
48
+ }, C(e.$t(
49
+ l.value === "wheel" ? a(r).cropperCtrlScrollInfo : a(r).cropperTwoFingerInfo
50
+ )), 3)
49
51
  ]),
50
52
  _: 3
51
53
  }, 8, ["mouse-move", "touch-move", "touch-resize", "wheel-resize"]));
52
54
  }
53
- }), S = /* @__PURE__ */ I(R, [["__scopeId", "data-v-9031c32d"]]);
55
+ }), $ = /* @__PURE__ */ R(_, [["__scopeId", "data-v-6f59d31e"]]);
54
56
  export {
55
- S as B,
56
- I as _
57
+ $ as B,
58
+ R as _
57
59
  };
@@ -1,7 +1,8 @@
1
- import { defineComponent as P, inject as B, computed as b, resolveDirective as g, withDirectives as c, createBlock as i, openBlock as n, unref as p, mergeProps as t, withCtx as l, renderSlot as u, createCommentVNode as d, normalizeProps as v } from "vue";
2
- import { s as y } from "../vendor/primevue/button/button.esm.es.js";
3
- import { _ as f } from "../icon/index.es.js";
4
- const C = (s) => s ? Array.isArray(s) ? s : [s] : [], z = /* @__PURE__ */ P({
1
+ import { defineComponent as g, inject as $, computed as P, resolveDirective as C, withDirectives as c, createBlock as l, openBlock as t, unref as u, mergeProps as i, withCtx as n, renderSlot as d, createCommentVNode as f, normalizeProps as m } from "vue";
2
+ import { u as h } from "../plugins/basei18n.es.js";
3
+ import { s as v } from "../vendor/primevue/button/button.esm.es.js";
4
+ import { _ as y } from "../icon/index.es.js";
5
+ const A = (s) => s ? Array.isArray(s) ? s : [s] : [], j = /* @__PURE__ */ g({
5
6
  __name: "Button",
6
7
  props: {
7
8
  style: {},
@@ -27,86 +28,95 @@ const C = (s) => s ? Array.isArray(s) ? s : [s] : [], z = /* @__PURE__ */ P({
27
28
  plain: { type: Boolean }
28
29
  },
29
30
  setup(s) {
30
- const e = s, m = B("preset", {}).button, r = b(() => ({
31
+ const e = s, b = $("preset", {}).button, { t: k } = h(), a = P(() => ({
31
32
  icon: e.icon ?? "check",
32
33
  class: [
33
- ...(m == null ? void 0 : m.icon({ props: e }).class) ?? {},
34
+ ...(b == null ? void 0 : b.icon({ props: e }).class) ?? {},
34
35
  { "text-base": e.icon && !e.label },
35
36
  // Need to use attrs, because props.label is always undefined.
36
- ...C(e.iconClass)
37
+ ...A(e.iconClass)
37
38
  ]
38
- }));
39
- return (o, h) => {
40
- const a = g("tooltip");
41
- return o.tooltipPos === "top" ? c((n(), i(p(y), t({ key: 0 }, e, {
39
+ })), r = P(() => {
40
+ if (typeof e.tooltip == "string")
41
+ return k(e.tooltip);
42
+ if (e.tooltip)
43
+ return { ...e.tooltip, value: k(e.tooltip.value) };
44
+ });
45
+ return (o, w) => {
46
+ const p = C("tooltip");
47
+ return o.tooltipPos === "top" ? c((t(), l(u(v), i({ key: 0 }, e, {
42
48
  icon: o.icon,
43
- "icon-pos": o.iconPos
49
+ "icon-pos": o.iconPos,
50
+ label: o.$t(e.label)
44
51
  }), {
45
- icon: l(({ class: k }) => [
46
- o.icon ? (n(), i(f, t({ key: 0 }, r.value, { class: k }), null, 16, ["class"])) : d("", !0)
52
+ icon: n(({ class: B }) => [
53
+ o.icon ? (t(), l(y, i({ key: 0 }, a.value, { class: B }), null, 16, ["class"])) : f("", !0)
47
54
  ]),
48
- default: l(() => [
49
- u(o.$slots, "default")
55
+ default: n(() => [
56
+ d(o.$slots, "default")
50
57
  ]),
51
58
  _: 3
52
- }, 16, ["icon", "icon-pos"])), [
59
+ }, 16, ["icon", "icon-pos", "label"])), [
53
60
  [
54
- a,
55
- o.tooltip,
61
+ p,
62
+ r.value,
56
63
  void 0,
57
64
  { top: !0 }
58
65
  ]
59
- ]) : o.tooltipPos === "left" ? c((n(), i(p(y), t({ key: 1 }, e, {
66
+ ]) : o.tooltipPos === "left" ? c((t(), l(u(v), i({ key: 1 }, e, {
60
67
  icon: o.icon,
61
- "icon-pos": o.iconPos
68
+ "icon-pos": o.iconPos,
69
+ label: o.$t(e.label)
62
70
  }), {
63
- icon: l(() => [
64
- o.icon ? (n(), i(f, v(t({ key: 0 }, r.value)), null, 16)) : d("", !0)
71
+ icon: n(() => [
72
+ o.icon ? (t(), l(y, m(i({ key: 0 }, a.value)), null, 16)) : f("", !0)
65
73
  ]),
66
- default: l(() => [
67
- u(o.$slots, "default")
74
+ default: n(() => [
75
+ d(o.$slots, "default")
68
76
  ]),
69
77
  _: 3
70
- }, 16, ["icon", "icon-pos"])), [
78
+ }, 16, ["icon", "icon-pos", "label"])), [
71
79
  [
72
- a,
73
- o.tooltip,
80
+ p,
81
+ r.value,
74
82
  void 0,
75
83
  { left: !0 }
76
84
  ]
77
- ]) : o.tooltipPos === "right" ? c((n(), i(p(y), t({ key: 2 }, e, {
85
+ ]) : o.tooltipPos === "right" ? c((t(), l(u(v), i({ key: 2 }, e, {
78
86
  icon: o.icon,
79
- "icon-pos": o.iconPos
87
+ "icon-pos": o.iconPos,
88
+ label: o.$t(e.label)
80
89
  }), {
81
- icon: l(() => [
82
- o.icon ? (n(), i(f, v(t({ key: 0 }, r.value)), null, 16)) : d("", !0)
90
+ icon: n(() => [
91
+ o.icon ? (t(), l(y, m(i({ key: 0 }, a.value)), null, 16)) : f("", !0)
83
92
  ]),
84
- default: l(() => [
85
- u(o.$slots, "default")
93
+ default: n(() => [
94
+ d(o.$slots, "default")
86
95
  ]),
87
96
  _: 3
88
- }, 16, ["icon", "icon-pos"])), [
97
+ }, 16, ["icon", "icon-pos", "label"])), [
89
98
  [
90
- a,
91
- o.tooltip,
99
+ p,
100
+ r.value,
92
101
  void 0,
93
102
  { right: !0 }
94
103
  ]
95
- ]) : c((n(), i(p(y), t({ key: 3 }, e, {
104
+ ]) : c((t(), l(u(v), i({ key: 3 }, e, {
96
105
  icon: o.icon,
97
- "icon-pos": o.iconPos
106
+ "icon-pos": o.iconPos,
107
+ label: o.$t(e.label)
98
108
  }), {
99
- icon: l(() => [
100
- o.icon ? (n(), i(f, v(t({ key: 0 }, r.value)), null, 16)) : d("", !0)
109
+ icon: n(() => [
110
+ o.icon ? (t(), l(y, m(i({ key: 0 }, a.value)), null, 16)) : f("", !0)
101
111
  ]),
102
- default: l(() => [
103
- u(o.$slots, "default")
112
+ default: n(() => [
113
+ d(o.$slots, "default")
104
114
  ]),
105
115
  _: 3
106
- }, 16, ["icon", "icon-pos"])), [
116
+ }, 16, ["icon", "icon-pos", "label"])), [
107
117
  [
108
- a,
109
- o.tooltip,
118
+ p,
119
+ r.value,
110
120
  void 0,
111
121
  { bottom: !0 }
112
122
  ]
@@ -115,6 +125,6 @@ const C = (s) => s ? Array.isArray(s) ? s : [s] : [], z = /* @__PURE__ */ P({
115
125
  }
116
126
  });
117
127
  export {
118
- z as _,
119
- C as c
128
+ j as _,
129
+ A as c
120
130
  };
@@ -1,19 +1,20 @@
1
- import { defineComponent as Y, onMounted as Z, onUnmounted as I, ref as R, shallowRef as k, computed as x, watch as F, withDirectives as y, createElementBlock as h, openBlock as u, mergeProps as f, createBlock as E, createCommentVNode as w, createVNode as v, unref as o, Fragment as T, renderSlot as ee, withCtx as V, normalizeClass as te, vShow as $, createElementVNode as le, normalizeProps as ae, guardReactiveProps as oe, toDisplayString as P, createTextVNode as H, nextTick as ne } from "vue";
1
+ import { defineComponent as x, onMounted as ee, onUnmounted as te, ref as R, shallowRef as k, computed as H, watch as j, withDirectives as y, createElementBlock as h, openBlock as u, mergeProps as f, createBlock as E, createCommentVNode as w, createVNode as v, unref as o, Fragment as T, renderSlot as le, withCtx as V, normalizeClass as ae, vShow as $, createElementVNode as oe, normalizeProps as ne, guardReactiveProps as se, toDisplayString as P, createTextVNode as G, nextTick as ie } from "vue";
2
2
  import { e as c } from "../event-bus/index.es.js";
3
- import { u as se } from "../plugins/WangsVue.es.js";
4
- import { m as ie } from "../utils/mergePropsWithDefaults.util.es.js";
5
- import { s as ue } from "../vendor/primevue/dropdown/dropdown.esm.es.js";
3
+ import { u as ue } from "../plugins/basei18n.es.js";
4
+ import { u as re } from "../plugins/WangsVue.es.js";
5
+ import { m as ce } from "../utils/mergePropsWithDefaults.util.es.js";
6
+ import { s as de } from "../vendor/primevue/dropdown/dropdown.esm.es.js";
6
7
  import { _ as A } from "../button/index.es.js";
7
- import { _ as re } from "../icon/index.es.js";
8
- import { _ as ce } from "../menu/index.es.js";
9
- import { _ as de } from "../menuitem/index.es.js";
10
- const pe = (D, N) => {
8
+ import { _ as pe } from "../icon/index.es.js";
9
+ import { _ as me } from "../menu/index.es.js";
10
+ import { _ as be } from "../menuitem/index.es.js";
11
+ const fe = (D, N) => {
11
12
  const l = {
12
13
  label: N,
13
14
  disabled: !0
14
15
  }, g = D.filter((d) => d.visible !== !1);
15
16
  return g.length ? g : [l];
16
- }, $e = /* @__PURE__ */ Y({
17
+ }, Be = /* @__PURE__ */ x({
17
18
  __name: "ButtonBulkAction",
18
19
  props: {
19
20
  disabled: { type: Boolean },
@@ -26,39 +27,42 @@ const pe = (D, N) => {
26
27
  },
27
28
  emits: ["apply", "update:selectedData"],
28
29
  setup(D, { emit: N }) {
29
- const l = D, { defaultProps: g, locale: d } = se("ButtonBulkAction"), p = ie(l, g), B = N;
30
- Z(() => {
31
- window.addEventListener("disableBulkAction", O), c.on("data-table:update-selected-data", L), c.on("data-table:update-total-record", z);
32
- }), I(() => {
33
- window.removeEventListener("disableBulkAction", O), c.off("data-table:update-total-record", L), c.off("data-table:update-selected-data", z);
30
+ const l = D, { defaultProps: g, locale: d } = re("ButtonBulkAction"), p = ce(l, g), { t: J } = ue(), B = N;
31
+ ee(() => {
32
+ window.addEventListener("disableBulkAction", L), c.on("data-table:update-selected-data", _), c.on("data-table:update-total-record", U);
33
+ }), te(() => {
34
+ window.removeEventListener("disableBulkAction", L), c.off("data-table:update-total-record", _), c.off("data-table:update-selected-data", U);
34
35
  });
35
- const S = R(), _ = R(), n = k(), m = k(0), C = k(!1), M = k(!1), i = R(l.selectedData), j = x(
36
+ const S = R(), O = R(), n = k(), m = k(0), C = k(!1), M = k(!1), i = R(l.selectedData), K = H(
36
37
  () => {
37
38
  var e;
38
39
  return ((e = i.value) == null ? void 0 : e.length) && !M.value && m.value > 0;
39
40
  }
40
- ), G = () => {
41
+ ), z = H(() => l.options.map((e) => ({
42
+ ...e,
43
+ label: J(e.label)
44
+ }))), Q = () => {
41
45
  window.dispatchEvent(
42
46
  new CustomEvent("fetchAllData", { detail: l.tableName })
43
47
  ), c.emit("data-table:select-all-record", { tableName: l.tableName });
44
- }, J = () => {
48
+ }, X = () => {
45
49
  B("update:selectedData", []), c.emit("data-table:clear-selected-data", {
46
50
  tableName: l.tableName
47
51
  });
48
- }, O = (e) => {
52
+ }, L = (e) => {
49
53
  l.tableName === e.detail.tableName && (M.value = e.detail.value);
50
- }, K = (e) => {
54
+ }, Y = (e) => {
51
55
  var t;
52
56
  (t = S.value) == null || t.toggle(e);
53
- }, z = (e) => {
57
+ }, U = (e) => {
54
58
  l.tableName === (e == null ? void 0 : e.tableName) && (m.value = e == null ? void 0 : e.total);
55
- }, L = (e) => {
59
+ }, _ = (e) => {
56
60
  e.tableName === l.tableName && (i.value = e.data, B("update:selectedData", e.data ?? []));
57
- }, Q = async (e) => {
61
+ }, Z = async (e) => {
58
62
  var t, s;
59
63
  if (e.useAdditionSlot) {
60
- n.value = e, await ne();
61
- const r = (t = _.value) == null ? void 0 : t.children[1], a = r == null ? void 0 : r.querySelector(
64
+ n.value = e, await ie();
65
+ const r = (t = O.value) == null ? void 0 : t.children[1], a = r == null ? void 0 : r.querySelector(
62
66
  "input"
63
67
  );
64
68
  a && (a == null || a.click(), a == null || a.focus());
@@ -66,59 +70,59 @@ const pe = (D, N) => {
66
70
  originalEvent: void 0,
67
71
  item: e
68
72
  }), (s = S.value) == null || s.hide(), n.value = void 0) : e.url ? window.open(e.url, e.target) : e.route && window.history.pushState(void 0, "", e.route);
69
- }, X = (e) => {
73
+ }, I = (e) => {
70
74
  var t, s;
71
75
  (s = (t = n.value) == null ? void 0 : t.command) == null || s.call(t, {
72
76
  originalEvent: e,
73
77
  item: n.value
74
78
  }), n.value = void 0, B("apply");
75
79
  };
76
- return F(
80
+ return j(
77
81
  [i, m],
78
82
  ([e, t]) => {
79
83
  e != null && e.length || (n.value = void 0), C.value = (e == null ? void 0 : e.length) === t;
80
84
  },
81
85
  { deep: !0 }
82
- ), F(
86
+ ), j(
83
87
  () => l.totalRecords,
84
88
  (e) => m.value = e ?? 0,
85
89
  { immediate: !0 }
86
90
  ), (e, t) => {
87
- var s, r, a, U, W, q;
91
+ var s, r, a, W, q, F;
88
92
  return y((u(), h("div", f(e.$preset.buttonbulkaction.root, {
89
93
  ref_key: "wrapper",
90
- ref: _
94
+ ref: O
91
95
  }), [
92
- o(p).selectMenuType === "overlay-panel" && ((s = i.value) != null && s.length) ? (u(), E(ce, {
96
+ o(p).selectMenuType === "overlay-panel" && ((s = i.value) != null && s.length) ? (u(), E(me, {
93
97
  key: 0,
94
98
  ref_key: "menu",
95
99
  ref: S,
96
- model: e.options,
100
+ model: z.value,
97
101
  popup: ""
98
102
  }, null, 8, ["model"])) : w("", !0),
99
103
  o(p).selectMenuType === "dropdown" ? (u(), h(T, { key: 1 }, [
100
- (r = e.selectedData) != null && r.length ? (u(), E(o(ue), {
104
+ (r = e.selectedData) != null && r.length ? (u(), E(o(de), {
101
105
  key: 0,
102
106
  disabled: l.disabled || M.value || !((a = e.selectedData) != null && a.length),
103
107
  "model-value": n.value,
104
- options: o(pe)(
105
- e.options,
108
+ options: o(fe)(
109
+ z.value,
106
110
  e.$wangsvue.config.locale.components.Menu.noOptionLabel
107
111
  ),
112
+ placeholder: e.$t("Bulk Action"),
108
113
  pt: e.$preset.buttonbulkaction.dropdownmenu,
109
- "onUpdate:modelValue": t[0] || (t[0] = (b) => Q(b)),
114
+ "onUpdate:modelValue": t[0] || (t[0] = (b) => Z(b)),
110
115
  "option-label": "label",
111
- outlined: "",
112
- placeholder: "Bulk Action"
116
+ outlined: ""
113
117
  }, {
114
118
  dropdownicon: V(({ class: b }) => [
115
- v(re, {
116
- class: te([b]),
119
+ v(pe, {
120
+ class: ae([b]),
117
121
  icon: "arrow-down"
118
122
  }, null, 8, ["class"])
119
123
  ]),
120
124
  option: V(({ option: b }) => [
121
- v(de, {
125
+ v(be, {
122
126
  item: b,
123
127
  "router-props": {
124
128
  action: e.$preset.menu.action,
@@ -128,20 +132,22 @@ const pe = (D, N) => {
128
132
  }, null, 8, ["item", "router-props"])
129
133
  ]),
130
134
  _: 1
131
- }, 8, ["disabled", "model-value", "options", "pt"])) : w("", !0),
132
- ee(e.$slots, "addition", { selectedOption: n.value }),
133
- y(v(A, f({ onClick: X }, e.$preset.buttonbulkaction.applybutton, { label: "Apply" }), null, 16), [
134
- [$, (U = n.value) == null ? void 0 : U.useAdditionSlot]
135
+ }, 8, ["disabled", "model-value", "options", "placeholder", "pt"])) : w("", !0),
136
+ le(e.$slots, "addition", { selectedOption: n.value }),
137
+ y(v(A, f({ onClick: I }, e.$preset.buttonbulkaction.applybutton, { label: "Apply" }), null, 16), [
138
+ [$, (W = n.value) == null ? void 0 : W.useAdditionSlot]
135
139
  ])
136
140
  ], 64)) : w("", !0),
137
- y(le("span", ae(oe(e.$preset.buttonbulkaction.selectionmessage)), P(o(d).currentSelectionMessage.replace(
138
- "{length} {naming}",
139
- `${i.value.length.toString()} ${o(p).naming}`
141
+ y(oe("span", ne(se(e.$preset.buttonbulkaction.selectionmessage)), P(e.$t(
142
+ o(d).currentSelectionMessage.replace(
143
+ "{length} {naming}",
144
+ `${i.value.length.toString()} ${o(p).naming}`
145
+ )
140
146
  )), 17), [
141
- [$, (W = i.value) == null ? void 0 : W.length]
147
+ [$, (q = i.value) == null ? void 0 : q.length]
142
148
  ]),
143
149
  y(v(A, f(
144
- { onClick: G },
150
+ { onClick: Q },
145
151
  e.$preset.buttonbulkaction.buttonselectall({
146
152
  context: { selectedAll: C.value }
147
153
  }),
@@ -149,39 +155,41 @@ const pe = (D, N) => {
149
155
  ), {
150
156
  default: V(() => [
151
157
  C.value ? (u(), h(T, { key: 1 }, [
152
- H(P(o(d).allRecordSelected.replace("{naming}", o(p).naming)), 1)
158
+ G(P(e.$t(o(d).allRecordSelected.replace("{naming}", o(p).naming))), 1)
153
159
  ], 64)) : (u(), h(T, { key: 0 }, [
154
- H(P(o(d).selectAllRecords.replace(
155
- "{totalRecords}",
156
- m.value.toString()
160
+ G(P(e.$t(
161
+ o(d).selectAllRecords.replace(
162
+ "{totalRecords}",
163
+ m.value.toString()
164
+ )
157
165
  )), 1)
158
166
  ], 64))
159
167
  ]),
160
168
  _: 1
161
169
  }, 16), [
162
- [$, j.value]
170
+ [$, K.value]
163
171
  ]),
164
172
  o(p).selectMenuType === "overlay-panel" ? (u(), E(A, f({
165
173
  key: 2,
166
- onClick: K
174
+ onClick: Y
167
175
  }, e.$preset.buttonbulkaction.bulkactiontoggle, {
168
176
  icon: "ellipsis-h",
169
177
  outlined: "",
170
178
  severity: "secondary",
171
179
  size: "small"
172
180
  }), null, 16)) : w("", !0),
173
- v(A, f({ onClick: J }, e.$preset.buttonbulkaction.buttonclearselection, {
181
+ v(A, f({ onClick: X }, e.$preset.buttonbulkaction.buttonclearselection, {
174
182
  icon: "close",
175
183
  severity: "danger",
176
184
  text: ""
177
185
  }), null, 16)
178
186
  ], 16)), [
179
- [$, (q = i.value) == null ? void 0 : q.length]
187
+ [$, (F = i.value) == null ? void 0 : F.length]
180
188
  ]);
181
189
  };
182
190
  }
183
191
  });
184
192
  export {
185
- $e as _,
186
- pe as f
193
+ Be as _,
194
+ fe as f
187
195
  };
@@ -1,24 +1,24 @@
1
- import { defineComponent as c, createBlock as a, openBlock as n, withCtx as r, createVNode as p } from "vue";
1
+ import { defineComponent as a, createBlock as c, openBlock as n, withCtx as r, createVNode as p } from "vue";
2
2
  import { _ as s } from "../button/index.es.js";
3
3
  import { _ as i } from "../icon/index.es.js";
4
- const u = /* @__PURE__ */ c({
4
+ const d = /* @__PURE__ */ a({
5
5
  __name: "ButtonCopy",
6
6
  props: {
7
7
  text: {}
8
8
  },
9
9
  setup(t) {
10
- const o = t, e = () => {
11
- navigator.clipboard.writeText(o.text);
10
+ const e = t, o = () => {
11
+ navigator.clipboard.writeText(e.text);
12
12
  };
13
- return (m, _) => (n(), a(s, {
14
- onClick: e,
13
+ return (m, _) => (n(), c(s, {
14
+ onClick: o,
15
15
  class: "p-0 m-0",
16
16
  "data-wv-name": "buttoncopy",
17
17
  text: ""
18
18
  }, {
19
19
  default: r(() => [
20
20
  p(i, {
21
- class: "h-[14px] text-sm text-general-200",
21
+ class: "h-[14px] text-sm text-general-200 dark:text-general-500",
22
22
  icon: "file-copy"
23
23
  })
24
24
  ]),
@@ -27,5 +27,5 @@ const u = /* @__PURE__ */ c({
27
27
  }
28
28
  });
29
29
  export {
30
- u as _
30
+ d as _
31
31
  };
@@ -1,15 +1,15 @@
1
- import { defineComponent as L, inject as x, computed as N, ref as S, createElementBlock as v, openBlock as y, mergeProps as B, unref as C, createVNode as W, createCommentVNode as $, toDisplayString as G } from "vue";
1
+ import { defineComponent as F, inject as x, computed as N, ref as L, createElementBlock as v, openBlock as y, mergeProps as B, unref as C, createVNode as S, createCommentVNode as W, toDisplayString as G } from "vue";
2
2
  import { e as r } from "../event-bus/index.es.js";
3
3
  import { u as H } from "../plugins/WangsVue.es.js";
4
4
  import { u as O } from "../utils/baseToast.util.es.js";
5
- import { n as R, e as _ } from "../utils/exportToExcel.util.es.js";
5
+ import { n as R, e as D } from "../utils/exportToExcel.util.es.js";
6
6
  import { m as Z } from "../utils/mergePropsWithDefaults.util.es.js";
7
7
  import { u as q } from "../assetinfo/index.es.js";
8
8
  import { _ as I } from "../icon/index.es.js";
9
9
  const J = {
10
10
  key: 0,
11
11
  class: "inherit text-xs"
12
- }, ne = /* @__PURE__ */ L({
12
+ }, ne = /* @__PURE__ */ F({
13
13
  __name: "ButtonDownload",
14
14
  props: {
15
15
  fileName: {},
@@ -20,8 +20,8 @@ const J = {
20
20
  dataConfigs: {},
21
21
  excelToastErrorMessage: {}
22
22
  },
23
- setup(D) {
24
- const l = D, { setLoading: d } = q(), E = x("useToastConfig"), u = O(E), { defaultProps: P, locale: m } = H("ButtonDownload"), f = N(() => Z(l, P)), p = x("preset", {}).buttondownload, i = S({}), b = N(() => Object.entries(i.value).map(([e]) => e)), k = async (e) => {
23
+ setup(_) {
24
+ const l = _, { setLoading: c } = q(), E = x("useToastConfig"), u = O(E), { defaultProps: P, locale: m } = H("ButtonDownload"), f = N(() => Z(l, P)), p = x("preset", {}).buttondownload, i = L({}), b = N(() => Object.entries(i.value).map(([e]) => e)), k = async (e) => {
25
25
  const a = await e();
26
26
  if (a instanceof Error) throw a;
27
27
  return (a == null ? void 0 : a.data) ?? { data: [], totalRecords: 0 };
@@ -29,8 +29,8 @@ const J = {
29
29
  const { fileName: e, tableName: a, multiTableNames: t, dataConfigs: o } = f.value;
30
30
  if (o != null && o.length && A(o), t != null && t.length)
31
31
  r.on("button-download:multi-tables", T), t.forEach((n) => {
32
- const c = { fileName: e, tableName: n, multiTableNames: t };
33
- r.emit("data-table:download", c);
32
+ const d = { fileName: e, tableName: n, multiTableNames: t };
33
+ r.emit("data-table:download", d);
34
34
  });
35
35
  else {
36
36
  const n = {
@@ -45,23 +45,23 @@ const J = {
45
45
  try {
46
46
  const o = await Promise.all(
47
47
  e.map(async (n) => {
48
- const { columns: c, data: V, fetchFunction: h, tableTitle: j } = n, w = c.filter((s) => s.visible !== !1).filter((s) => !s.excluded), z = w.map(
48
+ const { columns: d, data: V, fetchFunction: h, tableTitle: $ } = n, w = d.filter((s) => s.visible !== !1).filter((s) => !s.excluded), j = w.map(
49
49
  (s) => s.header ?? s.exportHeader ?? "-"
50
50
  );
51
- d(!0, m.downloadingMessage);
52
- const { data: F } = h ? await k(h) : { data: V };
51
+ c(!0, m.downloadingMessage);
52
+ const { data: z } = h ? await k(h) : { data: V };
53
53
  return {
54
54
  data: R(
55
- F,
55
+ z,
56
56
  w,
57
57
  m
58
58
  ),
59
- headers: z,
60
- tableTitle: j
59
+ headers: j,
60
+ tableTitle: $
61
61
  };
62
62
  })
63
63
  );
64
- await _({
64
+ await D({
65
65
  tables: o,
66
66
  additionalTexts: l.additionalTextBelowTable,
67
67
  fileName: g()
@@ -76,7 +76,7 @@ const J = {
76
76
  group: "download"
77
77
  });
78
78
  } finally {
79
- d(!1);
79
+ c(!1);
80
80
  }
81
81
  }, T = async ({
82
82
  table: e
@@ -89,7 +89,7 @@ const J = {
89
89
  const o = [];
90
90
  l.multiTableNames.forEach((n) => {
91
91
  o.push(i.value[n]);
92
- }), await _({
92
+ }), await D({
93
93
  tables: o,
94
94
  additionalTexts: l.additionalTextBelowTable,
95
95
  fileName: g()
@@ -99,12 +99,12 @@ const J = {
99
99
  }
100
100
  };
101
101
  return (e, a) => (y(), v("button", B({ onClick: M }, C(p).root({ props: l }), { type: "button" }), [
102
- W(I, B(C(p).icon, {
102
+ S(I, B(C(p).icon, {
103
103
  icon: "download",
104
104
  info: "Download",
105
105
  "tooltip-pos": "bottom"
106
106
  }), null, 16),
107
- e.label ? (y(), v("span", J, G(e.label), 1)) : $("", !0)
107
+ e.label ? (y(), v("span", J, G(e.$t(e.label)), 1)) : W("", !0)
108
108
  ], 16));
109
109
  }
110
110
  });