@fewangsit/wangsvue-fats 1.0.1-rc.0 → 1.0.1-rc.11

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 (242) hide show
  1. package/animation/index.es.js +50 -0
  2. package/approverinfo/index.es.js +6 -6
  3. package/assetinfo/index.es.js +160 -2
  4. package/backgroundimagecropper/{BackgroundImageCropper.es.js → index.es.js} +1 -1
  5. package/badge/index.es.js +7 -7
  6. package/badgegroup/index.es.js +7 -7
  7. package/basecalendar/{BaseCalendar.es.js → index.es.js} +6 -6
  8. package/basetree/index.es.js +14 -14
  9. package/breadcrumb/index.es.js +6 -6
  10. package/button/index.es.js +118 -2
  11. package/buttonaddbyscan/index.es.js +13 -13
  12. package/buttonbulkaction/index.es.js +184 -2
  13. package/buttoncopy/index.es.js +6 -6
  14. package/buttondownload/index.es.js +15 -15
  15. package/buttonfilter/index.es.js +6 -6
  16. package/buttonradio/index.es.js +2 -2
  17. package/buttonscan/index.es.js +414 -2
  18. package/buttonsearch/index.es.js +9 -9
  19. package/buttonsearchbyscan/index.es.js +7 -7
  20. package/buttonselecttree/index.es.js +22 -22
  21. package/buttonselectuser/index.es.js +25 -25
  22. package/buttonsync/index.es.js +12 -12
  23. package/buttontoggle/index.es.js +6 -6
  24. package/buttonviewlog/index.es.js +2 -2
  25. package/calendar/index.es.js +4 -4
  26. package/card/index.es.js +4 -4
  27. package/carousel/index.es.js +7 -7
  28. package/checkbox/index.es.js +2 -2
  29. package/codesnippet/{CodeSnippet.es.js → index.es.js} +1 -1
  30. package/codesnippetadapter/{CodeSnippetAdapter.es.js → index.es.js} +1 -1
  31. package/columnlist/{ColumnList.es.js → index.es.js} +8 -8
  32. package/config/defaultProps.es.js +133 -0
  33. package/config/index.es.js +10 -218
  34. package/config/locale.es.js +85 -0
  35. package/customcolumn/index.es.js +8 -8
  36. package/datatable/index.es.js +108 -107
  37. package/datepicker/index.es.js +138 -2
  38. package/daypicker/index.es.js +6 -6
  39. package/dialog/index.es.js +4 -4
  40. package/dialogassetnamedetail/index.es.js +11 -11
  41. package/dialogbasictransferlog/{DialogBasicTransferLog.es.js → index.es.js} +17 -17
  42. package/dialogconfirm/index.es.js +17 -17
  43. package/dialogdamagelog/index.es.js +14 -14
  44. package/dialogform/index.es.js +32 -32
  45. package/dialogfulltransferlog/{DialogFullTransferLog.es.js → index.es.js} +16 -16
  46. package/dialoglinkedasset/index.es.js +9 -9
  47. package/dialogprintqr/index.es.js +332 -2
  48. package/dialogreportdamage/index.es.js +12 -12
  49. package/dialogreportmissing/index.es.js +12 -12
  50. package/dialogreporttag/index.es.js +8 -8
  51. package/dialogselecttree/index.es.js +13 -13
  52. package/dialogselectuser/index.d.ts +2 -2
  53. package/dialogselectuser/index.es.js +18 -18
  54. package/dialogselectuserfilter/{DialogSelectUserFilter.es.js → index.es.js} +2 -2
  55. package/dialogtransferlog/index.es.js +9 -9
  56. package/directives/{focus/index.es.js → focus.es.js} +2 -2
  57. package/directives/index.es.js +2 -0
  58. package/directives/tooltip.es.js +1 -0
  59. package/disposalreport/index.es.js +8 -8
  60. package/disposalreportbulkaction/{DisposalReportBulkAction.es.js → index.es.js} +9 -8
  61. package/disposalreporttable/{DisposalReportTable.es.js → index.es.js} +16 -16
  62. package/disposalreporttablefilter/{DisposalReportTableFilter.es.js → index.es.js} +5 -5
  63. package/dropdown/index.es.js +37 -37
  64. package/editor/{Editor.es.js → index.es.js} +57 -57
  65. package/editorbutton/{EditorButton.es.js → index.es.js} +1 -1
  66. package/event-bus/index.es.js +4 -3
  67. package/event-bus/mitt.es.js +53 -0
  68. package/fieldwrapper/{FieldWrapper.es.js → index.es.js} +2 -2
  69. package/fileupload/index.es.js +13 -13
  70. package/filtercontainer/index.es.js +34 -34
  71. package/form/index.es.js +23 -23
  72. package/hardwaresync/{HardwareSync.es.js → index.es.js} +42 -42
  73. package/icon/index.es.js +4 -4
  74. package/image/index.es.js +14 -14
  75. package/imagecompressor/index.es.js +14 -14
  76. package/imageinputinfo/{ImageInputInfo.es.js → index.es.js} +2 -2
  77. package/inlinemessage/index.es.js +7 -7
  78. package/inputbadge/index.es.js +14 -14
  79. package/inputcurrency/index.es.js +147 -2
  80. package/inputemail/index.es.js +4 -4
  81. package/inputnumber/index.es.js +6 -6
  82. package/inputotp/index.es.js +1 -1
  83. package/inputpassword/index.es.js +10 -10
  84. package/inputphonenumber/index.es.js +28 -28
  85. package/inputrangenumber/index.es.js +9 -9
  86. package/inputsearch/index.es.js +2 -2
  87. package/inputtext/index.es.js +11 -11
  88. package/inputurl/index.es.js +5 -5
  89. package/invisiblefield/index.es.js +8 -8
  90. package/languagedropdownoption/{LanguageDropdownOption.es.js → index.es.js} +3 -3
  91. package/languageswitcher/index.es.js +7 -7
  92. package/litedropdown/index.es.js +10 -10
  93. package/loading/index.es.js +8 -8
  94. package/mentionlist/{MentionList.es.js → index.es.js} +4 -4
  95. package/menu/index.es.js +20 -19
  96. package/menuitem/{MenuItem.es.js → index.es.js} +1 -1
  97. package/multiselect/index.es.js +27 -27
  98. package/overlaypanel/index.es.js +6 -6
  99. package/package.json +1 -5
  100. package/paginator/index.es.js +11 -11
  101. package/plugins/VueHtmlToPaper.es.js +40 -0
  102. package/{animation/Animation.es.js → plugins/WangsVue.es.js} +38 -83
  103. package/plugins/basei18n.d.ts +103 -0
  104. package/plugins/basei18n.es.js +88 -0
  105. package/plugins/{formValidation/index.es.js → formValidation.es.js} +4 -4
  106. package/plugins/i18n.d.ts +5 -102
  107. package/plugins/i18n.es.js +6 -0
  108. package/stats.html +1 -1
  109. package/steps/index.es.js +4 -4
  110. package/tabmenu/index.es.js +1 -1
  111. package/tagtype/index.es.js +6 -6
  112. package/textarea/index.es.js +5 -5
  113. package/timeline/index.es.js +5 -5
  114. package/timelinecontentbytype/{TimelineContentByType.es.js → index.es.js} +9 -9
  115. package/toast/index.es.js +3 -3
  116. package/toggleswitch/index.es.js +2 -2
  117. package/transactionroles/index.es.js +2 -2
  118. package/tree/index.es.js +117 -107
  119. package/treenode/{TreeNode.es.js → index.es.js} +4 -4
  120. package/treesearchinput/{TreeSearchInput.es.js → index.es.js} +4 -4
  121. package/username/index.es.js +20 -20
  122. package/userwithicon/index.es.js +4 -4
  123. package/utils/baseToast.util.es.js +1 -1
  124. package/utils/date.util.es.js +2 -2
  125. package/utils/index.es.js +3 -36
  126. package/utils/role.util.es.js +2 -2
  127. package/validatormessage/index.es.js +4 -4
  128. package/vendor/highlight.js/es/core.es.js +1 -1
  129. package/vendor/lodash/_freeGlobal.es.js +1 -1
  130. package/vendor/simplebar-core/dist/index.es.js +1 -1
  131. package/wangsvue-fats.d.ts +1 -2
  132. package/wangsvue-fats.es.js +219 -256
  133. package/wangsvue-fats.system.js +56 -56
  134. package/approverinfo/package.json +0 -4
  135. package/assetinfo/AssetInfo.es.js +0 -179
  136. package/assetinfo/package.json +0 -4
  137. package/badge/package.json +0 -4
  138. package/badgegroup/package.json +0 -4
  139. package/basetree/package.json +0 -4
  140. package/breadcrumb/package.json +0 -4
  141. package/button/Button.es.js +0 -120
  142. package/button/package.json +0 -4
  143. package/buttonaddbyscan/package.json +0 -4
  144. package/buttonbulkaction/ButtonBulkAction.es.js +0 -238
  145. package/buttonbulkaction/package.json +0 -4
  146. package/buttoncopy/package.json +0 -4
  147. package/buttondownload/package.json +0 -4
  148. package/buttonfilter/package.json +0 -4
  149. package/buttonradio/package.json +0 -4
  150. package/buttonscan/ButtonScan.es.js +0 -416
  151. package/buttonscan/package.json +0 -4
  152. package/buttonsearch/package.json +0 -4
  153. package/buttonsearchbyscan/package.json +0 -4
  154. package/buttonselecttree/package.json +0 -4
  155. package/buttonselectuser/package.json +0 -4
  156. package/buttonsync/package.json +0 -4
  157. package/buttontoggle/package.json +0 -4
  158. package/buttonviewlog/package.json +0 -4
  159. package/calendar/package.json +0 -4
  160. package/card/package.json +0 -4
  161. package/carousel/package.json +0 -4
  162. package/checkbox/package.json +0 -4
  163. package/config/package.json +0 -4
  164. package/customcolumn/package.json +0 -4
  165. package/datatable/package.json +0 -4
  166. package/datepicker/DatePicker.es.js +0 -224
  167. package/datepicker/package.json +0 -4
  168. package/daypicker/package.json +0 -4
  169. package/dialog/package.json +0 -4
  170. package/dialogassetnamedetail/package.json +0 -4
  171. package/dialogconfirm/package.json +0 -4
  172. package/dialogdamagelog/package.json +0 -4
  173. package/dialogform/package.json +0 -4
  174. package/dialoglinkedasset/package.json +0 -4
  175. package/dialogprintqr/DialogPrintQR.es.js +0 -334
  176. package/dialogprintqr/package.json +0 -4
  177. package/dialogreportdamage/package.json +0 -4
  178. package/dialogreportmissing/package.json +0 -4
  179. package/dialogreporttag/package.json +0 -4
  180. package/dialogselecttree/package.json +0 -4
  181. package/dialogselectuser/package.json +0 -4
  182. package/dialogtransferlog/package.json +0 -4
  183. package/directives/focus/package.json +0 -4
  184. package/directives/tooltip/index.es.js +0 -4
  185. package/directives/tooltip/package.json +0 -4
  186. package/disposalreport/package.json +0 -4
  187. package/dropdown/package.json +0 -4
  188. package/event-bus/package.json +0 -4
  189. package/fileupload/package.json +0 -4
  190. package/filtercontainer/package.json +0 -4
  191. package/form/package.json +0 -4
  192. package/icon/package.json +0 -4
  193. package/image/package.json +0 -4
  194. package/imagecompressor/package.json +0 -4
  195. package/index.d.ts +0 -2
  196. package/inlinemessage/package.json +0 -4
  197. package/inputbadge/package.json +0 -4
  198. package/inputcurrency/InputCurrency.es.js +0 -150
  199. package/inputcurrency/helpers/index.es.js +0 -5
  200. package/inputcurrency/helpers/package.json +0 -4
  201. package/inputcurrency/package.json +0 -4
  202. package/inputemail/package.json +0 -4
  203. package/inputnumber/package.json +0 -4
  204. package/inputotp/package.json +0 -4
  205. package/inputpassword/package.json +0 -4
  206. package/inputphonenumber/package.json +0 -4
  207. package/inputrangenumber/package.json +0 -4
  208. package/inputsearch/package.json +0 -4
  209. package/inputtext/package.json +0 -4
  210. package/inputurl/package.json +0 -4
  211. package/invisiblefield/package.json +0 -4
  212. package/languageswitcher/package.json +0 -4
  213. package/litedropdown/package.json +0 -4
  214. package/loading/package.json +0 -4
  215. package/loading/store/index.es.js +0 -5
  216. package/loading/store/package.json +0 -4
  217. package/menu/package.json +0 -4
  218. package/multiselect/package.json +0 -4
  219. package/overlaypanel/package.json +0 -4
  220. package/paginator/package.json +0 -4
  221. package/plugins/formValidation/package.json +0 -4
  222. package/plugins/i18n/index.es.js +0 -8
  223. package/plugins/i18n/package.json +0 -4
  224. package/plugins/i18n-extension.d.ts +0 -4
  225. package/steps/package.json +0 -4
  226. package/tabmenu/package.json +0 -4
  227. package/tagtype/package.json +0 -4
  228. package/textarea/package.json +0 -4
  229. package/timeline/package.json +0 -4
  230. package/toast/package.json +0 -4
  231. package/toast/service/index.es.js +0 -5
  232. package/toast/service/package.json +0 -4
  233. package/toggleswitch/package.json +0 -4
  234. package/transactionroles/package.json +0 -4
  235. package/tree/package.json +0 -4
  236. package/username/package.json +0 -4
  237. package/userwithicon/package.json +0 -4
  238. package/utils/package.json +0 -4
  239. package/validatormessage/package.json +0 -4
  240. /package/inputgroup/{InputGroup.es.js → index.es.js} +0 -0
  241. /package/mentionsection/{MentionSection.es.js → index.es.js} +0 -0
  242. /package/multirow/{MultiRow.es.js → index.es.js} +0 -0
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as v, createElementBlock as D, openBlock as E, Fragment as x, createVNode as g } from "vue";
2
- import { DisposalServices as S, AssetServices as f } from "@tagsamurai/fats-api-services";
3
- import { u as B } from "../assetinfo/AssetInfo.es.js";
2
+ import { DisposalServices as S, AssetServices as y } from "@tagsamurai/fats-api-services";
3
+ import { u as B } from "../assetinfo/index.es.js";
4
4
  import { u as w } from "../utils/toast.util.es.js";
5
- import P from "../buttonsearchbyscan/index.es.js";
6
- import q from "../toast/index.es.js";
5
+ import { _ as P } from "../buttonsearchbyscan/index.es.js";
6
+ import { _ as q } from "../toast/index.es.js";
7
7
  const $ = /* @__PURE__ */ v({
8
8
  __name: "ButtonAddByScan",
9
9
  props: {
@@ -13,8 +13,8 @@ const $ = /* @__PURE__ */ v({
13
13
  queryParams: {}
14
14
  },
15
15
  emits: ["update:modelValue", "scan"],
16
- setup(y, { emit: h }) {
17
- const d = w(), { setLoading: c } = B(), s = y, m = h, A = async (t) => {
16
+ setup(f, { emit: h }) {
17
+ const d = w(), { setLoading: c } = B(), s = f, m = h, A = async (t) => {
18
18
  var o, l, i, n;
19
19
  try {
20
20
  c(!0);
@@ -23,7 +23,7 @@ const $ = /* @__PURE__ */ v({
23
23
  tag: t.code,
24
24
  page: 1,
25
25
  limit: 1
26
- }, { data: a } = await f.getAvailableAssets(r);
26
+ }, { data: a } = await y.getAvailableAssets(r);
27
27
  if ((l = (o = a == null ? void 0 : a.data) == null ? void 0 : o.data) != null && l.length) {
28
28
  const e = (i = a == null ? void 0 : a.data) == null ? void 0 : i.data[0];
29
29
  if ((n = s.modelValue) == null ? void 0 : n.some(
@@ -65,7 +65,7 @@ const $ = /* @__PURE__ */ v({
65
65
  ) : void 0,
66
66
  page: 1,
67
67
  limit: 1
68
- }, { data: a } = await f.getAllAssets(r);
68
+ }, { data: a } = await y.getAllAssets(r);
69
69
  if ((i = (l = a == null ? void 0 : a.data) == null ? void 0 : l.data) != null && i.length) {
70
70
  const e = (n = a == null ? void 0 : a.data) == null ? void 0 : n.data[0];
71
71
  if (["On Disposal Process", "Reported Disposal"].includes(
@@ -95,7 +95,7 @@ const $ = /* @__PURE__ */ v({
95
95
  } finally {
96
96
  c(!1);
97
97
  }
98
- }, V = async (t) => {
98
+ }, _ = async (t) => {
99
99
  var o, l, i, n;
100
100
  try {
101
101
  c(!0);
@@ -126,8 +126,8 @@ const $ = /* @__PURE__ */ v({
126
126
  } finally {
127
127
  c(!1);
128
128
  }
129
- }, _ = async (t) => {
130
- s.reportedDisposalAssets ? await V(t) : s.noDisposalAssets ? await b(t) : await A(t);
129
+ }, V = async (t) => {
130
+ s.reportedDisposalAssets ? await _(t) : s.noDisposalAssets ? await b(t) : await A(t);
131
131
  };
132
132
  return (t, o) => (E(), D(x, null, [
133
133
  g(q, {
@@ -136,7 +136,7 @@ const $ = /* @__PURE__ */ v({
136
136
  group: "add-by-scan-error"
137
137
  }),
138
138
  g(P, {
139
- onScan: _,
139
+ onScan: V,
140
140
  bulk: "",
141
141
  label: "Add By Scan"
142
142
  })
@@ -144,5 +144,5 @@ const $ = /* @__PURE__ */ v({
144
144
  }
145
145
  });
146
146
  export {
147
- $ as default
147
+ $ as _
148
148
  };
@@ -1,4 +1,186 @@
1
- import { _ as f } from "./ButtonBulkAction.es.js";
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 r, 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";
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 re } from "../vendor/primevue/dropdown/dropdown.esm.es.js";
6
+ import { _ as A } from "../button/index.es.js";
7
+ import { _ as ue } 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) => {
11
+ const l = {
12
+ label: N,
13
+ disabled: !0
14
+ }, g = D.filter((d) => d.visible !== !1);
15
+ return g.length ? g : [l];
16
+ }, $e = /* @__PURE__ */ Y({
17
+ __name: "ButtonBulkAction",
18
+ props: {
19
+ disabled: { type: Boolean },
20
+ selectedData: { default: () => [] },
21
+ totalRecords: {},
22
+ options: { default: () => [] },
23
+ tableName: { default: "datatable" },
24
+ selectMenuType: {},
25
+ naming: {}
26
+ },
27
+ emits: ["apply", "update:selectedData"],
28
+ 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);
34
+ });
35
+ const S = R(), _ = R(), n = k(), m = k(0), C = k(!1), M = k(!1), i = R(l.selectedData), j = x(
36
+ () => {
37
+ var e;
38
+ return ((e = i.value) == null ? void 0 : e.length) && !M.value && m.value > 0;
39
+ }
40
+ ), G = () => {
41
+ window.dispatchEvent(
42
+ new CustomEvent("fetchAllData", { detail: l.tableName })
43
+ ), c.emit("data-table:select-all-record", { tableName: l.tableName });
44
+ }, J = () => {
45
+ B("update:selectedData", []), c.emit("data-table:clear-selected-data", {
46
+ tableName: l.tableName
47
+ });
48
+ }, O = (e) => {
49
+ l.tableName === e.detail.tableName && (M.value = e.detail.value);
50
+ }, K = (e) => {
51
+ var t;
52
+ (t = S.value) == null || t.toggle(e);
53
+ }, z = (e) => {
54
+ l.tableName === (e == null ? void 0 : e.tableName) && (m.value = e == null ? void 0 : e.total);
55
+ }, L = (e) => {
56
+ e.tableName === l.tableName && (i.value = e.data, B("update:selectedData", e.data ?? []));
57
+ }, Q = async (e) => {
58
+ var t, s;
59
+ if (e.useAdditionSlot) {
60
+ n.value = e, await ne();
61
+ const u = (t = _.value) == null ? void 0 : t.children[1], a = u == null ? void 0 : u.querySelector(
62
+ "input"
63
+ );
64
+ a && (a == null || a.click(), a == null || a.focus());
65
+ } else e.command ? (e.command({
66
+ originalEvent: void 0,
67
+ item: e
68
+ }), (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) => {
70
+ var t, s;
71
+ (s = (t = n.value) == null ? void 0 : t.command) == null || s.call(t, {
72
+ originalEvent: e,
73
+ item: n.value
74
+ }), n.value = void 0, B("apply");
75
+ };
76
+ return F(
77
+ [i, m],
78
+ ([e, t]) => {
79
+ e != null && e.length || (n.value = void 0), C.value = (e == null ? void 0 : e.length) === t;
80
+ },
81
+ { deep: !0 }
82
+ ), F(
83
+ () => l.totalRecords,
84
+ (e) => m.value = e ?? 0,
85
+ { immediate: !0 }
86
+ ), (e, t) => {
87
+ var s, u, a, U, W, q;
88
+ return y((r(), h("div", f(e.$preset.buttonbulkaction.root, {
89
+ ref_key: "wrapper",
90
+ ref: _
91
+ }), [
92
+ o(p).selectMenuType === "overlay-panel" && ((s = i.value) != null && s.length) ? (r(), E(ce, {
93
+ key: 0,
94
+ ref_key: "menu",
95
+ ref: S,
96
+ model: e.options,
97
+ popup: ""
98
+ }, null, 8, ["model"])) : w("", !0),
99
+ o(p).selectMenuType === "dropdown" ? (r(), h(T, { key: 1 }, [
100
+ (u = e.selectedData) != null && u.length ? (r(), E(o(re), {
101
+ key: 0,
102
+ disabled: l.disabled || M.value || !((a = e.selectedData) != null && a.length),
103
+ options: o(pe)(
104
+ e.options,
105
+ e.$wangsvue.config.locale.components.Menu.noOptionLabel
106
+ ),
107
+ pt: e.$preset.buttonbulkaction.dropdownmenu,
108
+ "onUpdate:modelValue": t[0] || (t[0] = (b) => Q(b)),
109
+ "option-label": "label",
110
+ outlined: "",
111
+ placeholder: "Bulk Action"
112
+ }, {
113
+ dropdownicon: V(({ class: b }) => [
114
+ v(ue, {
115
+ class: te([b]),
116
+ icon: "arrow-down"
117
+ }, null, 8, ["class"])
118
+ ]),
119
+ option: V(({ option: b }) => [
120
+ v(de, {
121
+ item: b,
122
+ "router-props": {
123
+ action: e.$preset.menu.action,
124
+ label: e.$preset.menu.label,
125
+ icon: e.$preset.menu.icon
126
+ }
127
+ }, null, 8, ["item", "router-props"])
128
+ ]),
129
+ _: 1
130
+ }, 8, ["disabled", "options", "pt"])) : w("", !0),
131
+ ee(e.$slots, "addition", { selectedOption: n.value }),
132
+ y(v(A, f({ onClick: X }, e.$preset.buttonbulkaction.applybutton, { label: "Apply" }), null, 16), [
133
+ [$, (U = n.value) == null ? void 0 : U.useAdditionSlot]
134
+ ])
135
+ ], 64)) : w("", !0),
136
+ y(le("span", ae(oe(e.$preset.buttonbulkaction.selectionmessage)), P(o(d).currentSelectionMessage.replace(
137
+ "{length} {naming}",
138
+ `${i.value.length.toString()} ${o(p).naming}`
139
+ )), 17), [
140
+ [$, (W = i.value) == null ? void 0 : W.length]
141
+ ]),
142
+ y(v(A, f(
143
+ { onClick: G },
144
+ e.$preset.buttonbulkaction.buttonselectall({
145
+ context: { selectedAll: C.value }
146
+ }),
147
+ { text: "" }
148
+ ), {
149
+ default: V(() => [
150
+ C.value ? (r(), h(T, { key: 1 }, [
151
+ H(P(o(d).allRecordSelected.replace("{naming}", o(p).naming)), 1)
152
+ ], 64)) : (r(), h(T, { key: 0 }, [
153
+ H(P(o(d).selectAllRecords.replace(
154
+ "{totalRecords}",
155
+ m.value.toString()
156
+ )), 1)
157
+ ], 64))
158
+ ]),
159
+ _: 1
160
+ }, 16), [
161
+ [$, j.value]
162
+ ]),
163
+ o(p).selectMenuType === "overlay-panel" ? (r(), E(A, f({
164
+ key: 2,
165
+ onClick: K
166
+ }, e.$preset.buttonbulkaction.bulkactiontoggle, {
167
+ icon: "ellipsis-h",
168
+ outlined: "",
169
+ severity: "secondary",
170
+ size: "small"
171
+ }), null, 16)) : w("", !0),
172
+ v(A, f({ onClick: J }, e.$preset.buttonbulkaction.buttonclearselection, {
173
+ icon: "close",
174
+ severity: "danger",
175
+ text: ""
176
+ }), null, 16)
177
+ ], 16)), [
178
+ [$, (q = i.value) == null ? void 0 : q.length]
179
+ ]);
180
+ };
181
+ }
182
+ });
2
183
  export {
3
- f as default
184
+ $e as _,
185
+ pe as f
4
186
  };
@@ -1,17 +1,17 @@
1
1
  import { defineComponent as c, createBlock as a, openBlock as n, withCtx as r, createVNode as p } from "vue";
2
- import { _ as s } from "../button/Button.es.js";
3
- import i from "../icon/index.es.js";
2
+ import { _ as s } from "../button/index.es.js";
3
+ import { _ as i } from "../icon/index.es.js";
4
4
  const u = /* @__PURE__ */ c({
5
5
  __name: "ButtonCopy",
6
6
  props: {
7
7
  text: {}
8
8
  },
9
9
  setup(t) {
10
- const e = t, o = () => {
11
- navigator.clipboard.writeText(e.text);
10
+ const o = t, e = () => {
11
+ navigator.clipboard.writeText(o.text);
12
12
  };
13
13
  return (m, _) => (n(), a(s, {
14
- onClick: o,
14
+ onClick: e,
15
15
  class: "p-0 m-0",
16
16
  "data-wv-name": "buttoncopy",
17
17
  text: ""
@@ -27,5 +27,5 @@ const u = /* @__PURE__ */ c({
27
27
  }
28
28
  });
29
29
  export {
30
- u as default
30
+ u as _
31
31
  };
@@ -1,11 +1,11 @@
1
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";
2
- import { e as r } from "../buttonbulkaction/ButtonBulkAction.es.js";
3
- import { u as H } from "../animation/Animation.es.js";
2
+ import { e as r } from "../event-bus/index.es.js";
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 D } from "../utils/exportToExcel.util.es.js";
5
+ import { n as R, e as _ } from "../utils/exportToExcel.util.es.js";
6
6
  import { m as Z } from "../utils/mergePropsWithDefaults.util.es.js";
7
- import { u as q } from "../assetinfo/AssetInfo.es.js";
8
- import I from "../icon/index.es.js";
7
+ import { u as q } from "../assetinfo/index.es.js";
8
+ import { _ as I } from "../icon/index.es.js";
9
9
  const J = {
10
10
  key: 0,
11
11
  class: "inherit text-xs"
@@ -20,8 +20,8 @@ const J = {
20
20
  dataConfigs: {},
21
21
  excelToastErrorMessage: {}
22
22
  },
23
- setup(E) {
24
- const l = E, { setLoading: c } = q(), _ = x("useToastConfig"), u = O(_), { 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(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) => {
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 d = { fileName: e, tableName: n, multiTableNames: t };
33
- r.emit("data-table:download", d);
32
+ const c = { fileName: e, tableName: n, multiTableNames: t };
33
+ r.emit("data-table:download", c);
34
34
  });
35
35
  else {
36
36
  const n = {
@@ -45,10 +45,10 @@ const J = {
45
45
  try {
46
46
  const o = await Promise.all(
47
47
  e.map(async (n) => {
48
- const { columns: d, data: V, fetchFunction: h, tableTitle: j } = n, w = d.filter((s) => s.visible !== !1).filter((s) => !s.excluded), z = w.map(
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(
49
49
  (s) => s.header ?? s.exportHeader ?? "-"
50
50
  );
51
- c(!0, m.downloadingMessage);
51
+ d(!0, m.downloadingMessage);
52
52
  const { data: F } = h ? await k(h) : { data: V };
53
53
  return {
54
54
  data: R(
@@ -61,7 +61,7 @@ const J = {
61
61
  };
62
62
  })
63
63
  );
64
- await D({
64
+ await _({
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
- c(!1);
79
+ d(!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 D({
92
+ }), await _({
93
93
  tables: o,
94
94
  additionalTexts: l.additionalTextBelowTable,
95
95
  fileName: g()
@@ -109,5 +109,5 @@ const J = {
109
109
  }
110
110
  });
111
111
  export {
112
- ne as default
112
+ ne as _
113
113
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as u, inject as f, shallowRef as p, createElementBlock as v, openBlock as b, mergeProps as n, unref as a, createVNode as _ } from "vue";
2
- import { e as h } from "../buttonbulkaction/ButtonBulkAction.es.js";
3
- import w from "../icon/index.es.js";
1
+ import { defineComponent as u, inject as f, shallowRef as p, createElementBlock as v, openBlock as _, mergeProps as n, unref as a, createVNode as b } from "vue";
2
+ import { e as h } from "../event-bus/index.es.js";
3
+ import { _ as w } from "../icon/index.es.js";
4
4
  const g = /* @__PURE__ */ u({
5
5
  __name: "ButtonFilter",
6
6
  props: {
@@ -16,8 +16,8 @@ const g = /* @__PURE__ */ u({
16
16
  };
17
17
  return (F, d) => {
18
18
  var o, l;
19
- return b(), v("button", n({ onClick: m }, (o = a(t)) == null ? void 0 : o.root({ context: { active: e.value } }), { type: "button" }), [
20
- _(w, n((l = a(t)) == null ? void 0 : l.icon({ context: { active: e.value } }), {
19
+ return _(), v("button", n({ onClick: m }, (o = a(t)) == null ? void 0 : o.root({ context: { active: e.value } }), { type: "button" }), [
20
+ b(w, n((l = a(t)) == null ? void 0 : l.icon({ context: { active: e.value } }), {
21
21
  icon: e.value ? "filter-fill" : "filter",
22
22
  info: "Filter",
23
23
  "tooltip-pos": "bottom"
@@ -27,5 +27,5 @@ const g = /* @__PURE__ */ u({
27
27
  }
28
28
  });
29
29
  export {
30
- g as default
30
+ g as _
31
31
  };
@@ -1,5 +1,5 @@
1
1
  import { h as k, defineComponent as C, inject as V, computed as S, createBlock as f, openBlock as d, unref as l, mergeProps as p, withCtx as P, createElementVNode as i, renderSlot as w, createCommentVNode as m, normalizeProps as c, guardReactiveProps as b, normalizeStyle as E, normalizeClass as z, createElementBlock as j, toDisplayString as q } from "vue";
2
- import A from "../icon/index.es.js";
2
+ import { _ as A } from "../icon/index.es.js";
3
3
  import { i as I } from "../vendor/lodash-es/isEqual.es.js";
4
4
  const L = (r, s) => {
5
5
  const { attrs: t, slots: a } = s || {};
@@ -89,5 +89,5 @@ const L = (r, s) => {
89
89
  }
90
90
  });
91
91
  export {
92
- F as default
92
+ F as _
93
93
  };