@fewangsit/wangsvue-fats 1.0.1-alpha.68 → 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 (78) hide show
  1. package/animation/index.es.js +9 -8
  2. package/assetinfo/index.d.ts +5 -4
  3. package/assetinfo/index.es.js +113 -97
  4. package/backgroundimagecropper/index.es.js +14 -12
  5. package/button/index.es.js +58 -48
  6. package/buttonbulkaction/index.es.js +67 -59
  7. package/buttondownload/index.es.js +18 -18
  8. package/buttonradio/index.es.js +11 -11
  9. package/buttonscan/index.es.js +1 -1
  10. package/buttonsearch/index.es.js +14 -14
  11. package/buttonselectuser/index.es.js +29 -29
  12. package/checkbox/index.es.js +5 -5
  13. package/config/defaultProps.es.js +3 -4
  14. package/datatable/index.es.js +470 -465
  15. package/datepicker/index.es.js +17 -17
  16. package/daypicker/index.es.js +21 -21
  17. package/dialog/index.es.js +17 -15
  18. package/dialogbasictransferlog/index.es.js +89 -89
  19. package/dialogconfirm/index.es.js +33 -33
  20. package/dialogdamagelog/index.es.js +89 -89
  21. package/dialogform/index.es.js +16 -16
  22. package/dialogfulltransferlog/index.es.js +96 -96
  23. package/dialoglinkedasset/index.es.js +48 -48
  24. package/dialogprintqr/index.es.js +70 -70
  25. package/dialogreportdamage/index.es.js +57 -57
  26. package/dialogreportmissing/index.es.js +94 -86
  27. package/dialogselecttree/index.es.js +18 -16
  28. package/dialogselectuser/index.es.js +16 -16
  29. package/directives/index.d.ts +1 -0
  30. package/directives/index.es.js +1 -0
  31. package/directives/safeHtml.d.ts +16 -0
  32. package/directives/safeHtml.es.js +12 -0
  33. package/disposalreport/index.es.js +1 -1
  34. package/disposalreportbulkaction/index.es.js +40 -41
  35. package/disposalreportdialogselectasset/index.es.js +72 -72
  36. package/disposalreporttable/index.es.js +108 -108
  37. package/disposalreporttablefilter/index.es.js +16 -17
  38. package/dropdown/index.es.js +120 -117
  39. package/fieldwrapper/index.es.js +7 -7
  40. package/fileupload/index.es.js +35 -31
  41. package/hardwaresync/index.es.js +12 -12
  42. package/headercell/index.es.js +4 -4
  43. package/icon/index.es.js +26 -25
  44. package/imagecompressor/index.es.js +143 -143
  45. package/imageinputinfo/index.es.js +13 -13
  46. package/inlinemessage/index.es.js +12 -12
  47. package/inputbadge/index.es.js +42 -43
  48. package/inputnumber/index.es.js +7 -7
  49. package/inputpassword/index.es.js +9 -9
  50. package/inputrangenumber/index.es.js +16 -16
  51. package/inputsearch/index.es.js +18 -18
  52. package/inputtext/index.es.js +33 -33
  53. package/litedropdown/index.es.js +48 -40
  54. package/menuitem/index.es.js +27 -26
  55. package/multirow/index.es.js +16 -16
  56. package/multiselect/index.es.js +86 -83
  57. package/package.json +1 -1
  58. package/plugins/basei18n.d.ts +2 -2
  59. package/plugins/basei18n.es.js +48 -42
  60. package/stats.html +1 -1
  61. package/style.css +1 -1
  62. package/tabmenu/index.es.js +14 -9
  63. package/tagtype/index.es.js +33 -30
  64. package/textarea/index.es.js +3 -3
  65. package/toggledarkmode/store/index.d.ts +7 -0
  66. package/toggleswitch/index.es.js +3 -3
  67. package/treesearchinput/index.es.js +11 -11
  68. package/username/index.es.js +39 -39
  69. package/utils/baseToast.util.es.js +23 -22
  70. package/utils/index.es.js +1 -2
  71. package/utils/textFormatter.util.d.ts +32 -0
  72. package/utils/textFormatter.util.es.js +38 -10
  73. package/validatormessage/index.es.js +1 -1
  74. package/vendor/dompurify/dist/purify.es.es.js +553 -0
  75. package/wangsvue-fats.d.ts +2 -1
  76. package/wangsvue-fats.es.js +190 -186
  77. package/wangsvue-fats.esm.browser.js +17750 -17086
  78. package/wangsvue-fats.system.js +73 -72
@@ -1,11 +1,11 @@
1
- import { defineComponent as Y, onMounted as Z, shallowRef as f, ref as ee, createElementBlock as te, openBlock as se, Fragment as ae, createElementVNode as g, createVNode as i, mergeProps as oe, unref as d, withCtx as re, toDisplayString as M } from "vue";
2
- import { AssetServices as D, DisposalServices as ne, DamageServices as T, MissingServices as N } from "@tagsamurai/fats-api-services";
1
+ import { defineComponent as Y, onMounted as Z, shallowRef as m, ref as ee, createElementBlock as te, openBlock as se, Fragment as ae, createElementVNode as c, createVNode as l, mergeProps as oe, withCtx as re, toDisplayString as k, unref as M } from "vue";
2
+ import { AssetServices as _, DisposalServices as ne, DamageServices as T, MissingServices as N } from "@tagsamurai/fats-api-services";
3
3
  import { u as le } from "../assetinfo/index.es.js";
4
4
  import { u as ie } from "../plugins/basei18n.es.js";
5
5
  import "../utils/role.util.es.js";
6
6
  import { u as de } from "../utils/toast.util.es.js";
7
- import { _ as I } from "../badge/index.es.js";
8
- import { _ as x } from "../button/index.es.js";
7
+ import { _ as D } from "../badge/index.es.js";
8
+ import { _ as h } from "../button/index.es.js";
9
9
  import { _ as pe } from "../buttonfilter/index.es.js";
10
10
  import { _ as ue } from "../buttonsearch/index.es.js";
11
11
  import { D as me } from "../datatable/index.es.js";
@@ -18,7 +18,7 @@ import { _ as ve } from "../disposalreporttablefilter/index.es.js";
18
18
  const be = {
19
19
  class: "flex flex-col gap-2",
20
20
  "data-ts-section": "disposalreporttablewrapper"
21
- }, he = { class: "flex gap-1 justify-end" }, _e = { class: "flex gap-1 justify-end" }, Le = /* @__PURE__ */ Y({
21
+ }, _e = { class: "flex gap-1 justify-end" }, De = { class: "flex gap-1 justify-end" }, Le = /* @__PURE__ */ Y({
22
22
  __name: "DisposalReportTable",
23
23
  props: {
24
24
  treeTable: { type: Boolean },
@@ -61,13 +61,13 @@ const be = {
61
61
  from: {}
62
62
  },
63
63
  setup(E) {
64
- const p = E;
64
+ const i = E;
65
65
  Z(() => {
66
66
  L();
67
67
  });
68
- const m = de(), { t: r } = ie(), { setLoading: c } = le(), y = f(!1), v = f(!1), b = f(!1), w = f([]), h = f(), n = f(
68
+ const p = de(), { t: I } = ie(), { setLoading: u } = le(), f = m(!1), g = m(!1), y = m(!1), x = m([]), v = m(), r = m(
69
69
  []
70
- ), u = ee(
70
+ ), d = ee(
71
71
  /* @__PURE__ */ new Map()
72
72
  ), P = [
73
73
  {
@@ -110,7 +110,7 @@ const be = {
110
110
  bodyComponent: (s) => {
111
111
  var e;
112
112
  return {
113
- component: I,
113
+ component: D,
114
114
  props: {
115
115
  label: (e = s.brand) == null ? void 0 : e.name,
116
116
  severity: "dark"
@@ -126,7 +126,7 @@ const be = {
126
126
  bodyComponent: (s) => {
127
127
  var e;
128
128
  return {
129
- component: I,
129
+ component: D,
130
130
  props: {
131
131
  label: (e = s.model) == null ? void 0 : e.name,
132
132
  severity: "dark"
@@ -142,7 +142,7 @@ const be = {
142
142
  bodyComponent: (s) => {
143
143
  var e;
144
144
  return {
145
- component: I,
145
+ component: D,
146
146
  props: {
147
147
  label: (e = s.group) == null ? void 0 : e.name
148
148
  }
@@ -158,16 +158,16 @@ const be = {
158
158
  return {
159
159
  component: fe,
160
160
  props: {
161
- modelValue: (e = u.value.get(s._id ?? "assetId")) == null ? void 0 : e.notes,
162
- placeholder: r("Enter note"),
161
+ modelValue: (e = d.value.get(s._id ?? "assetId")) == null ? void 0 : e.notes,
162
+ placeholder: "Enter note",
163
163
  rows: 1,
164
164
  maxlength: 30,
165
165
  preventInputOnMaxLength: !0
166
166
  },
167
167
  events: {
168
168
  "update:modelValue": (t) => {
169
- const o = u.value.get(s._id ?? "assetId");
170
- u.value.set(s._id ?? "assetId", {
169
+ const o = d.value.get(s._id ?? "assetId");
170
+ d.value.set(s._id ?? "assetId", {
171
171
  ...o,
172
172
  notes: t
173
173
  }), s.note = t;
@@ -179,62 +179,62 @@ const be = {
179
179
  ], L = async () => {
180
180
  const s = sessionStorage.getItem("assetsDisposalReport");
181
181
  if (!s) {
182
- m.add({
183
- message: r("Error, no assets found for disposal report."),
182
+ p.add({
183
+ message: "Error, no assets found for disposal report.",
184
184
  severity: "error"
185
185
  });
186
186
  return;
187
187
  }
188
188
  try {
189
- c(!0);
190
- const { data: e } = await D.getAllAssets({ _id: s });
189
+ u(!0);
190
+ const { data: e } = await _.getAllAssets({ _id: s });
191
191
  e.data.data.forEach((t) => {
192
- u.value.set(t._id ?? "", {
192
+ d.value.set(t._id ?? "", {
193
193
  notes: null,
194
- reason: ["Damaged", "Missing"].includes(t.status) ? t.status : p.reason
194
+ reason: ["Damaged", "Missing"].includes(t.status) ? t.status : i.reason
195
195
  });
196
- }), n.value = e.data.data;
196
+ }), r.value = e.data.data;
197
197
  } catch (e) {
198
- console.error(e), m.add({
198
+ console.error(e), p.add({
199
199
  error: e,
200
200
  message: "Error, failed to get assets. "
201
201
  });
202
202
  } finally {
203
- c(!1);
203
+ u(!1);
204
204
  }
205
205
  }, q = [
206
206
  {
207
- label: r("Remove from List"),
207
+ label: "Remove from List",
208
208
  icon: "delete-bin",
209
209
  danger: !0,
210
210
  command: () => {
211
- v.value = !0;
211
+ g.value = !0;
212
212
  }
213
213
  }
214
- ], R = (s) => {
215
- n.value = n.value.filter(
214
+ ], w = (s) => {
215
+ r.value = r.value.filter(
216
216
  (e) => !s.some((t) => e._id === t._id)
217
217
  ), F(s);
218
218
  }, F = (s) => {
219
219
  s.forEach((e) => {
220
- u.value.delete(e._id ?? "");
221
- }), n.value.length || _(), m.add({
222
- message: r("Success, asset has been removed from the list."),
220
+ d.value.delete(e._id ?? "");
221
+ }), r.value.length || b(), p.add({
222
+ message: "Success, asset has been removed from the list.",
223
223
  severity: "success"
224
224
  });
225
225
  }, J = (s, e) => {
226
226
  s.forEach((t) => {
227
- u.value.set(t._id ?? "", {
227
+ d.value.set(t._id ?? "", {
228
228
  notes: e ?? null,
229
- reason: ["Damaged", "Missing"].includes(t.status) ? t.status : p.reason
229
+ reason: ["Damaged", "Missing"].includes(t.status) ? t.status : i.reason
230
230
  });
231
231
  });
232
- }, _ = () => {
232
+ }, b = () => {
233
233
  const s = window.location.pathname, e = s.slice(0, s.lastIndexOf("/"));
234
- p.router.replace(e), sessionStorage.removeItem("assetsDisposalReport");
234
+ i.router.replace(e), sessionStorage.removeItem("assetsDisposalReport");
235
235
  }, U = async () => {
236
236
  const s = [];
237
- u.value.forEach((e, t) => {
237
+ d.value.forEach((e, t) => {
238
238
  const o = {
239
239
  asset: t,
240
240
  notes: e.notes,
@@ -243,25 +243,25 @@ const be = {
243
243
  s.push(o);
244
244
  });
245
245
  try {
246
- c(!0), await ne.postReportDisposal({ data: s }), m.add({
247
- message: r("Success, disposal report has been submitted.")
248
- }), _();
246
+ u(!0), await ne.postReportDisposal({ data: s }), p.add({
247
+ message: "Success, disposal report has been submitted."
248
+ }), b();
249
249
  } catch (e) {
250
- console.error(e), m.add({
250
+ console.error(e), p.add({
251
251
  error: e,
252
- message: r("Error, failed to submit disposal report.")
252
+ message: "Error, failed to submit disposal report."
253
253
  });
254
254
  } finally {
255
- c(!1);
255
+ u(!1);
256
256
  }
257
257
  }, G = async (s) => {
258
258
  try {
259
- c(!0);
259
+ u(!0);
260
260
  const e = s.map((t) => {
261
- var o, a, l, A, S, O, C, B, k;
262
- return u.value.set(t.asset ?? "", {
261
+ var o, a, n, R, A, S, O, C, B;
262
+ return d.value.set(t.asset ?? "", {
263
263
  notes: null,
264
- reason: ["Damaged", "Missing"].includes(t.status) ? t.status : p.reason
264
+ reason: ["Damaged", "Missing"].includes(t.status) ? t.status : i.reason
265
265
  }), {
266
266
  ...t,
267
267
  reportId: t._id,
@@ -278,29 +278,29 @@ const be = {
278
278
  category: {
279
279
  _id: (o = t.category) == null ? void 0 : o._id,
280
280
  name: (a = t.category) == null ? void 0 : a.name,
281
- key: (l = t.category) == null ? void 0 : l.key
281
+ key: (n = t.category) == null ? void 0 : n.key
282
282
  },
283
283
  group: {
284
- _id: ((A = t.group) == null ? void 0 : A._id) ?? ((S = t.assetGroup) == null ? void 0 : S._id),
285
- name: ((O = t.group) == null ? void 0 : O.name) ?? ((C = t.assetGroup) == null ? void 0 : C.name),
286
- key: ((B = t.group) == null ? void 0 : B.key) ?? ((k = t.assetGroup) == null ? void 0 : k.key)
284
+ _id: ((R = t.group) == null ? void 0 : R._id) ?? ((A = t.assetGroup) == null ? void 0 : A._id),
285
+ name: ((S = t.group) == null ? void 0 : S.name) ?? ((O = t.assetGroup) == null ? void 0 : O.name),
286
+ key: ((C = t.group) == null ? void 0 : C.key) ?? ((B = t.assetGroup) == null ? void 0 : B.key)
287
287
  }
288
288
  };
289
289
  });
290
- n.value = n.value.concat(e);
290
+ r.value = r.value.concat(e);
291
291
  } catch (e) {
292
- console.error(e), m.add({
292
+ console.error(e), p.add({
293
293
  error: e,
294
294
  message: "Error, failed to add asset.",
295
295
  severity: "error"
296
296
  });
297
297
  } finally {
298
- c(!1);
298
+ u(!1);
299
299
  }
300
300
  }, V = async (s) => {
301
301
  var a;
302
302
  const e = JSON.stringify(
303
- ((a = n.value) == null ? void 0 : a.map((l) => l.reportId)) ?? []
303
+ ((a = r.value) == null ? void 0 : a.map((n) => n.reportId)) ?? []
304
304
  ), t = {
305
305
  excludeId: e,
306
306
  excludeIds: e,
@@ -311,7 +311,7 @@ const be = {
311
311
  }, z = async (s) => {
312
312
  var a;
313
313
  const e = JSON.stringify(
314
- ((a = n.value) == null ? void 0 : a.map((l) => l.reportId)) ?? []
314
+ ((a = r.value) == null ? void 0 : a.map((n) => n.reportId)) ?? []
315
315
  ), t = {
316
316
  excludeId: e,
317
317
  excludeIds: e,
@@ -322,17 +322,17 @@ const be = {
322
322
  }, W = async (s) => {
323
323
  var a;
324
324
  const e = JSON.stringify(
325
- ((a = n.value) == null ? void 0 : a.map((l) => l.reportId ?? l._id)) ?? []
325
+ ((a = r.value) == null ? void 0 : a.map((n) => n.reportId ?? n._id)) ?? []
326
326
  ), t = {
327
327
  excludeId: e,
328
328
  excludeIds: e,
329
329
  ...s
330
- }, { data: o } = await D.getAllAssets(t);
330
+ }, { data: o } = await _.getAllAssets(t);
331
331
  return o;
332
- }, j = async (s) => p.from === "damage" ? V(s) : p.from === "missing" ? z(s) : W(s), H = async (s) => {
332
+ }, j = async (s) => i.from === "damage" ? V(s) : i.from === "missing" ? z(s) : W(s), H = async (s) => {
333
333
  var a;
334
334
  const e = JSON.stringify(
335
- ((a = n.value) == null ? void 0 : a.map((l) => l.reportId)) ?? []
335
+ ((a = r.value) == null ? void 0 : a.map((n) => n.reportId)) ?? []
336
336
  ), t = {
337
337
  excludeId: e,
338
338
  excludeIds: e,
@@ -344,7 +344,7 @@ const be = {
344
344
  }, K = async (s) => {
345
345
  var a;
346
346
  const e = JSON.stringify(
347
- ((a = n.value) == null ? void 0 : a.map((l) => l.reportId)) ?? []
347
+ ((a = r.value) == null ? void 0 : a.map((n) => n.reportId)) ?? []
348
348
  ), t = {
349
349
  excludeId: e,
350
350
  excludeIds: e,
@@ -356,45 +356,45 @@ const be = {
356
356
  }, Q = async (s) => {
357
357
  var a;
358
358
  const e = JSON.stringify(
359
- ((a = n.value) == null ? void 0 : a.map((l) => l.reportId)) ?? []
359
+ ((a = r.value) == null ? void 0 : a.map((n) => n.reportId)) ?? []
360
360
  ), t = {
361
361
  excludeId: e,
362
362
  excludeIds: e,
363
363
  [s]: !0
364
- }, { data: o } = await D.getAllAssetsOptions(t);
364
+ }, { data: o } = await _.getAllAssetsOptions(t);
365
365
  return o.data[s] ?? [];
366
- }, X = async (s) => p.from === "damage" ? H(s) : p.from === "missing" ? K(s) : Q(s);
366
+ }, X = async (s) => i.from === "damage" ? H(s) : i.from === "missing" ? K(s) : Q(s);
367
367
  return (s, e) => (se(), te(ae, null, [
368
- g("div", be, [
369
- g("div", he, [
370
- i(ge, {
371
- "assets-to-report": n.value,
372
- "onUpdate:assetsToReport": e[0] || (e[0] = (t) => n.value = t),
373
- "selected-data": w.value,
374
- "onUpdate:selectedData": e[1] || (e[1] = (t) => w.value = t),
368
+ c("div", be, [
369
+ c("div", _e, [
370
+ l(ge, {
371
+ "assets-to-report": r.value,
372
+ "onUpdate:assetsToReport": e[0] || (e[0] = (t) => r.value = t),
373
+ "selected-data": x.value,
374
+ "onUpdate:selectedData": e[1] || (e[1] = (t) => x.value = t),
375
375
  onNoted: J,
376
- onRemoved: e[2] || (e[2] = (t) => R(t)),
376
+ onRemoved: e[2] || (e[2] = (t) => w(t)),
377
377
  "table-name": "disposal-report-page-table"
378
378
  }, null, 8, ["assets-to-report", "selected-data"]),
379
- i(ue, {
379
+ l(ue, {
380
380
  class: "ml-auto",
381
381
  "table-name": "disposal-report-page-table"
382
382
  }),
383
- i(pe, { "table-name": "disposal-report-page-table" }),
384
- i(x, {
385
- onClick: e[3] || (e[3] = (t) => y.value = !0),
383
+ l(pe, { "table-name": "disposal-report-page-table" }),
384
+ l(h, {
385
+ onClick: e[3] || (e[3] = (t) => f.value = !0),
386
386
  icon: "add",
387
387
  label: "Asset"
388
388
  })
389
389
  ]),
390
- i(ve, { "table-name": "disposal-report-page-table" }),
391
- i(me, oe(s.$props, {
390
+ l(ve, { "table-name": "disposal-report-page-table" }),
391
+ l(me, oe(s.$props, {
392
392
  columns: P,
393
- data: n.value,
393
+ data: r.value,
394
394
  lazy: !1,
395
395
  options: q,
396
396
  rows: 10,
397
- onToggleOption: e[4] || (e[4] = (t) => h.value = t),
397
+ onToggleOption: e[4] || (e[4] = (t) => v.value = t),
398
398
  "data-key": "_id",
399
399
  "rounded-header": "",
400
400
  "selection-type": "checkbox",
@@ -403,51 +403,51 @@ const be = {
403
403
  "use-paginator": ""
404
404
  }), null, 16, ["data"])
405
405
  ]),
406
- i(ye, {
407
- visible: y.value,
408
- "onUpdate:visible": e[5] || (e[5] = (t) => y.value = t),
406
+ l(ye, {
407
+ visible: f.value,
408
+ "onUpdate:visible": e[5] || (e[5] = (t) => f.value = t),
409
409
  "fetch-function": j,
410
410
  "fetch-option-function": X,
411
411
  from: s.from,
412
412
  onSelect: G
413
413
  }, null, 8, ["visible", "from"]),
414
- i($, {
415
- visible: v.value,
416
- "onUpdate:visible": e[6] || (e[6] = (t) => v.value = t),
417
- body: d(r)("Are you sure you want to remove it?"),
418
- "confirm-label": d(r)("Remove"),
419
- header: d(r)("Remove from List"),
420
- lists: [h.value],
421
- onConfirm: e[7] || (e[7] = (t) => R([h.value])),
414
+ l($, {
415
+ visible: g.value,
416
+ "onUpdate:visible": e[6] || (e[6] = (t) => g.value = t),
417
+ lists: [v.value],
418
+ onConfirm: e[7] || (e[7] = (t) => w([v.value])),
419
+ body: "Are you sure you want to remove it?",
420
+ "confirm-label": "Remove",
421
+ header: "Remove from List",
422
422
  "list-label": "name.nameWithSequence",
423
423
  severity: "danger"
424
- }, null, 8, ["visible", "body", "confirm-label", "header", "lists"]),
425
- i($, {
426
- visible: b.value,
427
- "onUpdate:visible": e[8] || (e[8] = (t) => b.value = t),
428
- "confirm-label": d(r)("Continue"),
429
- header: d(r)("Cancel Report"),
430
- onConfirm: _,
424
+ }, null, 8, ["visible", "lists"]),
425
+ l($, {
426
+ visible: y.value,
427
+ "onUpdate:visible": e[8] || (e[8] = (t) => y.value = t),
428
+ onConfirm: b,
429
+ "confirm-label": "Continue",
430
+ header: "Cancel Report",
431
431
  severity: "danger"
432
432
  }, {
433
433
  body: re(() => [
434
- g("p", null, M(d(r)("This action will cancel the disposal report.")), 1),
435
- g("p", null, M(d(r)("Are you sure you want to continue?")), 1)
434
+ c("p", null, k(M(I)("This action will cancel the disposal report.")), 1),
435
+ c("p", null, k(M(I)("Are you sure you want to continue?")), 1)
436
436
  ]),
437
437
  _: 1
438
- }, 8, ["visible", "confirm-label", "header"]),
439
- g("div", _e, [
440
- i(x, {
441
- label: d(r)("Cancel"),
442
- onClick: e[9] || (e[9] = (t) => b.value = !0),
438
+ }, 8, ["visible"]),
439
+ c("div", De, [
440
+ l(h, {
441
+ onClick: e[9] || (e[9] = (t) => y.value = !0),
442
+ label: "Cancel",
443
443
  severity: "dark",
444
444
  text: ""
445
- }, null, 8, ["label"]),
446
- i(x, {
447
- label: d(r)("Submit"),
445
+ }),
446
+ l(h, {
448
447
  onClick: U,
448
+ label: "Submit",
449
449
  severity: "success"
450
- }, null, 8, ["label"])
450
+ })
451
451
  ])
452
452
  ], 64));
453
453
  }
@@ -1,40 +1,39 @@
1
- import { defineComponent as t, shallowRef as o, createBlock as p, openBlock as r } from "vue";
2
- import { u as s } from "../plugins/basei18n.es.js";
3
- import { _ as m } from "../filtercontainer/index.es.js";
4
- const u = /* @__PURE__ */ t({
1
+ import { defineComponent as a, shallowRef as t, createBlock as p, openBlock as o } from "vue";
2
+ import { _ as r } from "../filtercontainer/index.es.js";
3
+ const i = /* @__PURE__ */ a({
5
4
  __name: "DisposalReportTableFilter",
6
5
  props: {
7
6
  tableName: {}
8
7
  },
9
- setup(n) {
10
- const { t: e } = s(), l = o([
8
+ setup(s) {
9
+ const e = t([
11
10
  {
12
- label: e("Name"),
13
- placeholder: e("Select asset name"),
11
+ label: "Name",
12
+ placeholder: "Select asset name",
14
13
  field: "name.name",
15
14
  type: "multiselect"
16
15
  },
17
16
  {
18
- label: e("Brand"),
19
- placeholder: e("Select brand"),
17
+ label: "Brand",
18
+ placeholder: "Select brand",
20
19
  field: "brand.name",
21
20
  type: "multiselect"
22
21
  },
23
22
  {
24
- label: e("Model/Type"),
25
- placeholder: e("Select model/type"),
23
+ label: "Model/Type",
24
+ placeholder: "Select model/type",
26
25
  field: "model.name",
27
26
  type: "multiselect"
28
27
  },
29
28
  {
30
- label: e("Group"),
29
+ label: "Group",
31
30
  field: "group.key",
32
31
  type: "group"
33
32
  }
34
33
  ]);
35
- return (a, c) => (r(), p(m, {
36
- fields: l.value,
37
- "table-name": a.tableName,
34
+ return (l, m) => (o(), p(r, {
35
+ fields: e.value,
36
+ "table-name": l.tableName,
38
37
  class: "!gap-x-3 !gap-y-4 !p-3",
39
38
  "data-ts-name": "diposalreportfilter",
40
39
  static: ""
@@ -42,5 +41,5 @@ const u = /* @__PURE__ */ t({
42
41
  }
43
42
  });
44
43
  export {
45
- u as _
44
+ i as _
46
45
  };