@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,4 +1,4 @@
1
- import { defineComponent as J, inject as A, ref as K, computed as O, resolveDirective as Q, createBlock as c, openBlock as r, unref as e, withCtx as b, renderSlot as N, createCommentVNode as u, withDirectives as T, mergeProps as m, createElementBlock as p, normalizeProps as v, Fragment as X, renderList as Y, toDisplayString as y, createElementVNode as E, guardReactiveProps as H } from "vue";
1
+ import { defineComponent as J, inject as A, ref as K, computed as O, resolveDirective as Q, createBlock as c, openBlock as r, unref as o, withCtx as b, renderSlot as N, createCommentVNode as u, withDirectives as T, mergeProps as m, createElementBlock as p, normalizeProps as v, Fragment as X, renderList as Y, toDisplayString as y, createElementVNode as E, guardReactiveProps as H } from "vue";
2
2
  import { u as Z } from "../plugins/WangsVue.es.js";
3
3
  import { g as _ } from "../utils/object.util.es.js";
4
4
  import { s as x } from "../vendor/primevue/dialog/dialog.esm.es.js";
@@ -34,48 +34,48 @@ const ie = /* @__PURE__ */ J({
34
34
  }, W = () => {
35
35
  i("confirm"), l.closeAfterConfirm && i("update:visible", !1);
36
36
  };
37
- return (o, f) => {
38
- var g, C, h, B, L, w, k, D, $, P, I, S, V;
37
+ return (e, f) => {
38
+ var g, C, h, B, L, w, k, $, D, P, I, S, V;
39
39
  const q = Q("focus");
40
- return r(), c(e(x), {
40
+ return r(), c(o(x), {
41
41
  ref_key: "dialogConfirm",
42
42
  ref: M,
43
43
  closable: !1,
44
44
  draggable: !1,
45
- header: o.header,
45
+ header: e.$t(e.header),
46
46
  pt: {
47
47
  root: {
48
48
  class: [
49
- ...(g = e(n)) == null ? void 0 : g.root({ state: {} }).class,
50
- ...(C = e(t)) == null ? void 0 : C.root.class
49
+ ...(g = o(n)) == null ? void 0 : g.root({ state: {} }).class,
50
+ ...(C = o(t)) == null ? void 0 : C.root.class
51
51
  ],
52
- "data-wv-section": (h = e(t)) == null ? void 0 : h.root["data-wv-section"](
53
- o.$attrs["data-wv-section"]
52
+ "data-wv-section": (h = o(t)) == null ? void 0 : h.root["data-wv-section"](
53
+ e.$attrs["data-wv-section"]
54
54
  ),
55
- "data-wv-name": (B = e(t)) == null ? void 0 : B.root["data-wv-name"](
56
- o.$attrs["data-wv-name"]
55
+ "data-wv-name": (B = o(t)) == null ? void 0 : B.root["data-wv-name"](
56
+ e.$attrs["data-wv-name"]
57
57
  )
58
58
  },
59
59
  header: {
60
- ...(L = e(t)) == null ? void 0 : L.header,
60
+ ...(L = o(t)) == null ? void 0 : L.header,
61
61
  class: [
62
- ...(w = e(n)) == null ? void 0 : w.header.class,
63
- (k = e(t)) == null ? void 0 : k.header.class
62
+ ...(w = o(n)) == null ? void 0 : w.header.class,
63
+ (k = o(t)) == null ? void 0 : k.header.class
64
64
  ]
65
65
  },
66
66
  content: {
67
- ...(D = e(t)) == null ? void 0 : D.content,
67
+ ...($ = o(t)) == null ? void 0 : $.content,
68
68
  class: [
69
- ...($ = e(n)) == null ? void 0 : $.content({ state: {}, instance: {} }).class,
70
- (P = e(t)) == null ? void 0 : P.content.class,
69
+ ...(D = o(n)) == null ? void 0 : D.content({ state: {}, instance: {} }).class,
70
+ (P = o(t)) == null ? void 0 : P.content.class,
71
71
  l.contentClass
72
72
  ]
73
73
  },
74
74
  footer: {
75
- ...(I = e(t)) == null ? void 0 : I.footer,
75
+ ...(I = o(t)) == null ? void 0 : I.footer,
76
76
  class: [
77
- ...(S = e(n)) == null ? void 0 : S.footer.class,
78
- (V = e(t)) == null ? void 0 : V.footer.class
77
+ ...(S = o(n)) == null ? void 0 : S.footer.class,
78
+ (V = o(t)) == null ? void 0 : V.footer.class
79
79
  ]
80
80
  }
81
81
  },
@@ -88,41 +88,41 @@ const ie = /* @__PURE__ */ J({
88
88
  header: b(() => {
89
89
  var a, s;
90
90
  return [
91
- o.showIcon ? (r(), c(ee, m({ key: 0 }, (a = e(t)) == null ? void 0 : a.headericon({ props: l }), {
92
- severity: o.severity,
91
+ e.showIcon ? (r(), c(ee, m({ key: 0 }, (a = o(t)) == null ? void 0 : a.headericon({ props: l }), {
92
+ severity: e.severity,
93
93
  "aria-label": "Header Icon"
94
94
  }), null, 16, ["severity"])) : u("", !0),
95
- E("h3", v(H((s = e(t)) == null ? void 0 : s.headertitle(o.severity))), y(o.header), 17)
95
+ E("h3", v(H((s = o(t)) == null ? void 0 : s.headertitle(e.severity))), y(e.$t(e.header)), 17)
96
96
  ];
97
97
  }),
98
98
  default: b(() => {
99
99
  var a;
100
100
  return [
101
- o.list ? (r(), p("ul", v(m({ key: 0 }, (a = e(t)) == null ? void 0 : a.list)), [
102
- (r(!0), p(X, null, Y(o.list, (s, G) => (r(), p("li", { key: G }, y(o.listLabel && typeof s != "string" ? e(_)(s, o.listLabel) : s), 1))), 128))
101
+ e.list ? (r(), p("ul", v(m({ key: 0 }, (a = o(t)) == null ? void 0 : a.list)), [
102
+ (r(!0), p(X, null, Y(e.list, (s, G) => (r(), p("li", { key: G }, y(e.listLabel && typeof s != "string" ? o(_)(s, e.listLabel) : s), 1))), 128))
103
103
  ], 16)) : u("", !0),
104
- N(o.$slots, "body", { items: o.list }, () => {
104
+ N(e.$slots, "body", { items: e.list }, () => {
105
105
  var s;
106
106
  return [
107
- E("p", v(H((s = e(t)) == null ? void 0 : s.bodymessage)), y(o.message ?? e(d).defaultConfirmMessage), 17)
107
+ E("p", v(H((s = o(t)) == null ? void 0 : s.bodymessage)), y(e.$t(e.message ?? o(d).defaultConfirmMessage)), 17)
108
108
  ];
109
109
  })
110
110
  ];
111
111
  }),
112
112
  footer: b(() => [
113
- N(o.$slots, "footer", {}, () => {
113
+ N(e.$slots, "footer", {}, () => {
114
114
  var a, s;
115
115
  return [
116
- o.showCloseButton ? (r(), c(j, m({ key: 0 }, (a = e(t)) == null ? void 0 : a.cancelbutton, {
116
+ e.showCloseButton ? (r(), c(j, m({ key: 0 }, (a = o(t)) == null ? void 0 : a.cancelbutton, {
117
117
  label: R.value,
118
118
  onClick: U,
119
119
  severity: "secondary",
120
120
  text: ""
121
121
  }), null, 16, ["label"])) : u("", !0),
122
- o.actionable ? T((r(), c(j, m({ key: 1 }, (s = e(t)) == null ? void 0 : s.confirmbutton, {
123
- disabled: o.disableConfirmButton,
124
- label: o.confirmLabel ?? e(d).defaultConfirmLabel,
125
- severity: o.confirmButtonSeverity ?? o.severity,
122
+ e.actionable ? T((r(), c(j, m({ key: 1 }, (s = o(t)) == null ? void 0 : s.confirmbutton, {
123
+ disabled: e.disableConfirmButton,
124
+ label: e.confirmLabel ?? o(d).defaultConfirmLabel,
125
+ severity: e.confirmButtonSeverity ?? e.severity,
126
126
  onClick: W
127
127
  }), null, 16, ["disabled", "label", "severity"])), [
128
128
  [q]
@@ -1,23 +1,23 @@
1
- import { defineComponent as xe, mergeModels as ee, useModel as be, ref as c, computed as te, watch as _e, createBlock as p, openBlock as n, withCtx as v, createElementVNode as t, createVNode as i, createCommentVNode as x, toDisplayString as d, createElementBlock as ae, unref as se, Fragment as ye, createTextVNode as he, normalizeClass as b } from "vue";
1
+ import { defineComponent as xe, mergeModels as ee, useModel as be, ref as c, computed as te, watch as _e, createBlock as p, openBlock as i, withCtx as v, createElementVNode as a, createVNode as d, createCommentVNode as x, toDisplayString as o, createElementBlock as ae, unref as se, Fragment as he, createTextVNode as ye, normalizeClass as b } from "vue";
2
2
  import { t as we } from "../vendor/single-spa/lib/es2015/esm/single-spa.min.es.js";
3
3
  import { DamageServices as De } from "@tagsamurai/fats-api-services";
4
4
  import { u as ke } from "../assetinfo/index.es.js";
5
- import { a as Ie } from "../utils/role.util.es.js";
6
- import { f as qe } from "../utils/date.util.es.js";
7
- import { u as Re } from "../utils/toast.util.es.js";
5
+ import { a as $e } from "../utils/role.util.es.js";
6
+ import { f as Ie } from "../utils/date.util.es.js";
7
+ import { u as qe } from "../utils/toast.util.es.js";
8
8
  import { _ as f } from "../badge/index.es.js";
9
- import { _ as Ne } from "../dialog/index.es.js";
10
- import { _ as re } from "../image/index.es.js";
11
- import { _ as Ce } from "../tabmenu/index.es.js";
12
- import { _ as Le } from "../tagtype/index.es.js";
13
- import { _ as Se } from "../timeline/index.es.js";
14
- const $e = { class: "w-full flex items-center justify-between" }, Te = { class: "flex items-center gap-2" }, Be = ["disabled"], Me = ["disabled"], Pe = { class: "flex items-start gap-[18px]" }, Ve = { class: "flex flex-col w-full" }, Ae = { class: "w-full flex items-center justify-between" }, je = { class: "text-body-medium !font-bold" }, Ee = { class: "flex items-center gap-[6px] text-general-400 dark:text-general-200" }, ze = { class: "flex gap-3 w-full mt-[6px]" }, Fe = { class: "flex flex-col gap-1 items-start self-stretch" }, Ge = { class: "flex gap-2" }, Ue = ["data-wv-section"], Ke = {
9
+ import { _ as Re } from "../dialog/index.es.js";
10
+ import { _ as oe } from "../image/index.es.js";
11
+ import { _ as Ne } from "../tabmenu/index.es.js";
12
+ import { _ as Ce } from "../tagtype/index.es.js";
13
+ import { _ as Le } from "../timeline/index.es.js";
14
+ const Se = { class: "w-full flex items-center justify-between" }, Te = { class: "!text-base font-bold" }, Be = { class: "flex items-center gap-2" }, Me = ["disabled"], Pe = ["disabled"], Ve = { class: "flex items-start gap-[18px]" }, Ae = { class: "flex flex-col w-full" }, je = { class: "w-full flex items-center justify-between" }, Ee = { class: "text-body-medium !font-bold" }, ze = { class: "flex items-center gap-[6px] text-general-400 dark:text-general-200" }, Fe = { class: "flex gap-3 w-full mt-[6px]" }, Ge = { class: "flex flex-col justify-between items-start self-stretch" }, Ue = { class: "flex flex-col gap-1 items-start self-stretch" }, Ke = { class: "flex gap-2" }, We = ["data-wv-section"], He = {
15
15
  class: "text-body-medium text-general-400 dark:text-general-200",
16
16
  "data-wv-section": "key"
17
- }, We = {
17
+ }, Je = {
18
18
  key: 1,
19
19
  class: "text-body-medium"
20
- }, lt = /* @__PURE__ */ xe({
20
+ }, it = /* @__PURE__ */ xe({
21
21
  __name: "DialogDamageLog",
22
22
  props: /* @__PURE__ */ ee({
23
23
  id: {},
@@ -27,14 +27,14 @@ const $e = { class: "w-full flex items-center justify-between" }, Te = { class:
27
27
  modelModifiers: {}
28
28
  }),
29
29
  emits: /* @__PURE__ */ ee(["prev", "next"], ["update:modelValue"]),
30
- setup(_, { emit: oe }) {
31
- const y = _, h = oe, w = be(_, "modelValue"), le = Re(), { setLoading: D } = ke(), s = c(), o = c(0), k = c(0), u = te(() => y.listId), ne = [
30
+ setup(_, { emit: re }) {
31
+ const h = _, y = re, w = be(_, "modelValue"), le = qe(), { setLoading: D } = ke(), s = c(), l = c(0), k = c(0), u = te(() => h.listId), ne = [
32
32
  {
33
33
  label: "Damage Log"
34
34
  }
35
35
  ], g = c([]), ie = te(() => {
36
- var a, e;
37
- switch ((e = (a = s.value) == null ? void 0 : a.request) == null ? void 0 : e.status) {
36
+ var t, e;
37
+ switch ((e = (t = s.value) == null ? void 0 : t.request) == null ? void 0 : e.status) {
38
38
  case "Damaged":
39
39
  return "danger";
40
40
  case "Repaired":
@@ -42,12 +42,12 @@ const $e = { class: "w-full flex items-center justify-between" }, Te = { class:
42
42
  default:
43
43
  return "dark";
44
44
  }
45
- }), de = async (a) => (pe(a), await I(o.value)), I = async (a) => {
45
+ }), de = async (t) => (pe(t), await $(l.value)), $ = async (t) => {
46
46
  var e;
47
47
  try {
48
48
  D(!0);
49
49
  const { data: r } = await De.getDamageReportDetail(
50
- u.value[a]
50
+ u.value[t]
51
51
  );
52
52
  s.value = r.data, g.value = ce((e = s.value) == null ? void 0 : e.logs), k.value++;
53
53
  } catch (r) {
@@ -58,8 +58,8 @@ const $e = { class: "w-full flex items-center justify-between" }, Te = { class:
58
58
  } finally {
59
59
  D(!1);
60
60
  }
61
- }, ue = (a) => {
62
- switch (a) {
61
+ }, ue = (t) => {
62
+ switch (t) {
63
63
  case "Reported Damaged":
64
64
  return "Reported damaged by";
65
65
  case "Reported Disposal":
@@ -75,8 +75,8 @@ const $e = { class: "w-full flex items-center justify-between" }, Te = { class:
75
75
  default:
76
76
  return "";
77
77
  }
78
- }, me = (a, e) => {
79
- switch (a) {
78
+ }, me = (t, e) => {
79
+ switch (t) {
80
80
  case "Reported Damaged":
81
81
  return {
82
82
  Note: (e == null ? void 0 : e.notes) ?? "-",
@@ -88,7 +88,7 @@ const $e = { class: "w-full flex items-center justify-between" }, Te = { class:
88
88
  Note: (e == null ? void 0 : e.notes) ?? "-"
89
89
  };
90
90
  }
91
- }, ce = (a) => a.map((e) => ({
91
+ }, ce = (t) => t.map((e) => ({
92
92
  _id: e._id,
93
93
  action: ue(e.action),
94
94
  date: e.createdAt,
@@ -96,105 +96,105 @@ const $e = { class: "w-full flex items-center justify-between" }, Te = { class:
96
96
  danger: !1,
97
97
  detail: me(e.action, e.detail),
98
98
  createdAt: e.createdAt
99
- })), pe = (a) => {
99
+ })), pe = (t) => {
100
100
  var r;
101
- const e = (r = y.listId) == null ? void 0 : r.findIndex((m) => m === a);
102
- o.value = e;
101
+ const e = (r = h.listId) == null ? void 0 : r.findIndex((m) => m === t);
102
+ l.value = e;
103
103
  }, ve = () => {
104
- o.value++, h("next", o.value);
104
+ l.value++, y("next", l.value);
105
105
  }, fe = () => {
106
- o.value--, h("prev", o.value);
106
+ l.value--, y("prev", l.value);
107
107
  }, ge = () => {
108
- var a, e;
109
- we(`/assets/detail/${(e = (a = s.value) == null ? void 0 : a.request) == null ? void 0 : e.asset}`);
108
+ var t, e;
109
+ we(`/assets/detail/${(e = (t = s.value) == null ? void 0 : t.request) == null ? void 0 : e.asset}`);
110
110
  };
111
111
  return _e(
112
- () => o.value,
113
- (a) => {
114
- I(a);
112
+ () => l.value,
113
+ (t) => {
114
+ $(t);
115
115
  }
116
- ), (a, e) => (n(), p(Ne, {
116
+ ), (t, e) => (i(), p(Re, {
117
117
  visible: w.value,
118
118
  "onUpdate:visible": e[0] || (e[0] = (r) => w.value = r),
119
- onShow: e[1] || (e[1] = (r) => de(a.id)),
119
+ onShow: e[1] || (e[1] = (r) => de(t.id)),
120
120
  class: "w-[600px]",
121
121
  modal: ""
122
122
  }, {
123
123
  header: v(() => [
124
- t("div", $e, [
125
- e[2] || (e[2] = t("h1", { class: "!text-base font-bold" }, "Damage Log", -1)),
126
- t("div", Te, [
127
- t("button", {
124
+ a("div", Se, [
125
+ a("h1", Te, o(t.$t("Damage Log")), 1),
126
+ a("div", Be, [
127
+ a("button", {
128
128
  class: b([
129
- o.value === 0 ? "text-general-100 dark:text-general-400" : "text-primary-500 dark:text-primary-300",
129
+ l.value === 0 ? "text-general-100 dark:text-general-400" : "text-primary-500 dark:text-primary-300",
130
130
  "text-xs font-medium"
131
131
  ]),
132
- disabled: o.value === 0,
132
+ disabled: l.value === 0,
133
133
  onClick: fe,
134
134
  "data-wv-section": "prev-button"
135
- }, " <Prev ", 10, Be),
136
- t("button", {
135
+ }, " <" + o(t.$t("Prev")), 11, Me),
136
+ a("button", {
137
137
  class: b([
138
- o.value === u.value.length - 1 || u.value.length === 1 ? "text-general-100 dark:text-general-400" : "text-primary-500 dark:text-primary-300",
138
+ l.value === u.value.length - 1 || u.value.length === 1 ? "text-general-100 dark:text-general-400" : "text-primary-500 dark:text-primary-300",
139
139
  "text-xs font-medium"
140
140
  ]),
141
- disabled: o.value === u.value.length - 1 || u.value.length === 1,
141
+ disabled: l.value === u.value.length - 1 || u.value.length === 1,
142
142
  onClick: ve,
143
143
  "data-wv-section": "next-button"
144
- }, " Next> ", 10, Me)
144
+ }, o(t.$t("Next")) + "> ", 11, Pe)
145
145
  ])
146
146
  ])
147
147
  ]),
148
148
  default: v(() => {
149
- var r, m, q, R, N, C, L, S, $, T, B, M, P, V, A, j, E, z, F, G, U, K, W, H, J, O, Q, X, Y;
149
+ var r, m, I, q, R, N, C, L, S, T, B, M, P, V, A, j, E, z, F, G, U, K, W, H, J, O, Q, X, Y;
150
150
  return [
151
- t("div", Pe, [
152
- i(re, {
151
+ a("div", Ve, [
152
+ d(oe, {
153
153
  src: (m = (r = s.value) == null ? void 0 : r.request) == null ? void 0 : m.assetImage,
154
154
  size: "big"
155
155
  }, null, 8, ["src"]),
156
- t("div", Ve, [
157
- t("div", Ae, [
158
- t("p", je, d((N = (R = (q = s.value) == null ? void 0 : q.request) == null ? void 0 : R.assetName) == null ? void 0 : N.nameWithSequence), 1),
159
- t("button", {
156
+ a("div", Ae, [
157
+ a("div", je, [
158
+ a("p", Ee, o((R = (q = (I = s.value) == null ? void 0 : I.request) == null ? void 0 : q.assetName) == null ? void 0 : R.nameWithSequence), 1),
159
+ a("button", {
160
160
  onClick: ge,
161
161
  class: "!text-xs font-medium !text-primary-500 dark:!text-primary-300",
162
162
  "data-wv-section": "detail-button"
163
- }, " Asset Detail > ")
163
+ }, o(t.$t("Asset Detail")) + " > ", 1)
164
164
  ]),
165
- t("div", Ee, [
166
- t("p", null, d(((L = (C = s.value) == null ? void 0 : C.request) == null ? void 0 : L.assetId) ?? "-") + " " + d((B = (T = ($ = (S = s.value) == null ? void 0 : S.request) == null ? void 0 : $.assetName) == null ? void 0 : T.aliasCode) != null && B.length ? `(${(V = (P = (M = s.value) == null ? void 0 : M.request) == null ? void 0 : P.assetName) == null ? void 0 : V.aliasCode})` : ""), 1),
167
- se(Ie)() === "Enterprise" ? (n(), ae(ye, { key: 0 }, [
168
- e[3] || (e[3] = t("div", { class: "w-[6px] h-[6px] bg-general-100 dark:bg-general-400 rounded" }, null, -1)),
169
- (j = (A = s.value) == null ? void 0 : A.request) != null && j.tagType ? (n(), p(Le, {
165
+ a("div", ze, [
166
+ a("p", null, o(((C = (N = s.value) == null ? void 0 : N.request) == null ? void 0 : C.assetId) ?? "-") + " " + o((B = (T = (S = (L = s.value) == null ? void 0 : L.request) == null ? void 0 : S.assetName) == null ? void 0 : T.aliasCode) != null && B.length ? `(${(V = (P = (M = s.value) == null ? void 0 : M.request) == null ? void 0 : P.assetName) == null ? void 0 : V.aliasCode})` : ""), 1),
167
+ se($e)() === "Enterprise" ? (i(), ae(he, { key: 0 }, [
168
+ e[2] || (e[2] = a("div", { class: "w-[6px] h-[6px] bg-general-100 dark:bg-general-400 rounded" }, null, -1)),
169
+ (j = (A = s.value) == null ? void 0 : A.request) != null && j.tagType ? (i(), p(Ce, {
170
170
  key: 0,
171
171
  type: (z = (E = s.value) == null ? void 0 : E.request) == null ? void 0 : z.tagType
172
172
  }, null, 8, ["type"])) : x("", !0)
173
173
  ], 64)) : x("", !0)
174
174
  ]),
175
- t("div", ze, [
176
- e[4] || (e[4] = t("div", { class: "flex flex-col justify-between items-start self-stretch" }, [
177
- t("p", null, "Brand"),
178
- t("p", null, "Model/Type"),
179
- t("p", null, "Group")
180
- ], -1)),
181
- e[5] || (e[5] = t("div", { class: "flex flex-col justify-between items-start self-stretch" }, [
182
- t("p", null, ":"),
183
- t("p", null, ":"),
184
- t("p", null, ":")
175
+ a("div", Fe, [
176
+ a("div", Ge, [
177
+ a("p", null, o(t.$t("Brand")), 1),
178
+ a("p", null, o(t.$t("Model/Type")), 1),
179
+ a("p", null, o(t.$t("Group")), 1)
180
+ ]),
181
+ e[3] || (e[3] = a("div", { class: "flex flex-col justify-between items-start self-stretch" }, [
182
+ a("p", null, ":"),
183
+ a("p", null, ":"),
184
+ a("p", null, ":")
185
185
  ], -1)),
186
- t("div", Fe, [
187
- i(f, {
186
+ a("div", Ue, [
187
+ d(f, {
188
188
  label: (U = (G = (F = s.value) == null ? void 0 : F.request) == null ? void 0 : G.assetBrand) == null ? void 0 : U.name,
189
189
  format: "nowrap",
190
190
  severity: "dark"
191
191
  }, null, 8, ["label"]),
192
- i(f, {
192
+ d(f, {
193
193
  label: (H = (W = (K = s.value) == null ? void 0 : K.request) == null ? void 0 : W.assetModel) == null ? void 0 : H.name,
194
194
  format: "nowrap",
195
195
  severity: "dark"
196
196
  }, null, 8, ["label"]),
197
- i(f, {
197
+ d(f, {
198
198
  label: (Q = (O = (J = s.value) == null ? void 0 : J.request) == null ? void 0 : O.assetGroup) == null ? void 0 : Q.name,
199
199
  format: "nowrap",
200
200
  severity: "primary"
@@ -203,41 +203,41 @@ const $e = { class: "w-full flex items-center justify-between" }, Te = { class:
203
203
  ])
204
204
  ])
205
205
  ]),
206
- t("div", Ge, [
207
- e[6] || (e[6] = t("p", { class: "text-xs font-medium tracking-tight" }, "Status:", -1)),
208
- i(f, {
206
+ a("div", Ke, [
207
+ e[4] || (e[4] = a("p", { class: "text-xs font-medium tracking-tight" }, "Status:", -1)),
208
+ d(f, {
209
209
  label: (Y = (X = s.value) == null ? void 0 : X.request) == null ? void 0 : Y.status,
210
210
  severity: ie.value,
211
211
  format: "nowrap"
212
212
  }, null, 8, ["label", "severity"])
213
213
  ]),
214
- i(Ce, {
214
+ d(Ne, {
215
215
  "active-index": 0,
216
216
  menu: ne,
217
217
  type: "tab"
218
218
  }),
219
- g.value.length ? (n(), p(Se, {
219
+ g.value.length ? (i(), p(Le, {
220
220
  key: k.value,
221
221
  value: g.value
222
222
  }, {
223
- detail: v(({ key: l, value: Z }) => [
224
- t("div", {
223
+ detail: v(({ key: n, value: Z }) => [
224
+ a("div", {
225
225
  class: b([
226
226
  "flex gap-1 items-baseline",
227
- { "flex-col": l === "Damaged Photo" }
227
+ { "flex-col": n === "Damaged Photo" }
228
228
  ]),
229
- "data-wv-section": l
229
+ "data-wv-section": n
230
230
  }, [
231
- t("span", Ke, d(l) + ": ", 1),
232
- l === "Damaged Photo" ? (n(), p(re, {
231
+ a("span", He, o(n) + ": ", 1),
232
+ n === "Damaged Photo" ? (i(), p(oe, {
233
233
  key: 0,
234
234
  src: Z,
235
235
  width: 36
236
- }, null, 8, ["src"])) : (n(), ae("span", We, d(Z), 1))
237
- ], 10, Ue)
236
+ }, null, 8, ["src"])) : (i(), ae("span", Je, o(Z), 1))
237
+ ], 10, We)
238
238
  ]),
239
- date: v(({ date: l }) => [
240
- he(d(se(qe)(new Date(l), { showTime: !0 })), 1)
239
+ date: v(({ date: n }) => [
240
+ ye(o(t.$t(se(Ie)(new Date(n), { showTime: !0 }))), 1)
241
241
  ]),
242
242
  _: 1
243
243
  }, 8, ["value"])) : x("", !0)
@@ -248,5 +248,5 @@ const $e = { class: "w-full flex items-center justify-between" }, Te = { class:
248
248
  }
249
249
  });
250
250
  export {
251
- lt as _
251
+ it as _
252
252
  };
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as oe, useSlots as ie, inject as G, ref as D, shallowRef as P, computed as re, createBlock as m, openBlock as n, unref as t, mergeProps as i, withCtx as J, createElementVNode as k, normalizeProps as p, guardReactiveProps as $, createElementBlock as Q, createCommentVNode as d, createVNode as X, renderSlot as S, toDisplayString as ne, withDirectives as ue, vShow as de } from "vue";
2
2
  import { u as me } from "../plugins/WangsVue.es.js";
3
- import { s as ce } from "../vendor/primevue/dialog/dialog.esm.es.js";
3
+ import { s as be } from "../vendor/primevue/dialog/dialog.esm.es.js";
4
4
  import { _ as w } from "../button/index.es.js";
5
- import { _ as be } from "../checkbox/index.es.js";
5
+ import { _ as ce } from "../checkbox/index.es.js";
6
6
  import { _ as ve } from "../form/index.es.js";
7
7
  import { _ as fe } from "../icon/index.es.js";
8
8
  import { _ as pe } from "../validatormessage/index.es.js";
@@ -42,11 +42,11 @@ const Le = /* @__PURE__ */ oe({
42
42
  },
43
43
  emits: ["clear", "close", "hide", "show", "submit", "update:visible"],
44
44
  setup(Y, { expose: Z, emit: x }) {
45
- const s = Y, r = x, L = ie(), { locale: c } = me("DialogForm"), _ = G("preset", {}).dialog, l = G("preset", {}).dialogform, o = D(), ee = D(), te = P(0), V = P(!1), b = P(!1), C = D({
45
+ const s = Y, r = x, L = ie(), { locale: b } = me("DialogForm"), _ = G("preset", {}).dialog, l = G("preset", {}).dialogform, o = D(), ee = D(), te = P(0), V = P(!1), c = P(!1), C = D({
46
46
  stayAfterSubmit: !1,
47
47
  formValues: {}
48
48
  }), ae = re(() => {
49
- const e = L["aside-right"] && b.value ? s.asideRightWidth : 0;
49
+ const e = L["aside-right"] && c.value ? s.asideRightWidth : 0;
50
50
  return `calc(${{
51
51
  small: 400,
52
52
  medium: 500,
@@ -91,14 +91,14 @@ const Le = /* @__PURE__ */ oe({
91
91
  }
92
92
  }), (e, a) => {
93
93
  var v, y, T, E;
94
- return n(), m(t(ce), i({
94
+ return n(), m(t(be), i({
95
95
  ref_key: "dialogForm",
96
96
  ref: ee
97
97
  }, (v = t(l)) == null ? void 0 : v.root, {
98
98
  class: s.class,
99
99
  closable: e.closable,
100
100
  draggable: !1,
101
- header: e.header,
101
+ header: e.$t(e.header),
102
102
  pt: {
103
103
  root: {
104
104
  class: [
@@ -117,7 +117,7 @@ const Le = /* @__PURE__ */ oe({
117
117
  container: J(() => {
118
118
  var f, M, I, H, N, O, U, j, z, K;
119
119
  return [
120
- k("div", p($((f = t(l)) == null ? void 0 : f.container(b.value))), [
120
+ k("div", p($((f = t(l)) == null ? void 0 : f.container(c.value))), [
121
121
  k("section", i((M = t(l)) == null ? void 0 : M.mainsection, { id: "main" }), [
122
122
  k("div", p($((I = t(l)) == null ? void 0 : I.header)), [
123
123
  S(e.$slots, "header", {}, () => {
@@ -128,10 +128,10 @@ const Le = /* @__PURE__ */ oe({
128
128
  severity: e.severity,
129
129
  "aria-label": "Header Icon"
130
130
  }), null, 16, ["icon", "severity"])) : d("", !0),
131
- k("h3", p($((h = t(l)) == null ? void 0 : h.headertitle)), ne(e.header), 17),
131
+ k("h3", p($((h = t(l)) == null ? void 0 : h.headertitle)), ne(e.$t(e.header)), 17),
132
132
  e.$slots["aside-right"] ? (n(), m(w, i({ key: 1 }, (g = t(l)) == null ? void 0 : g.expandasidebutton, {
133
- label: b.value ? t(c).asideRightExpandedButtonLabel : t(c).asideRightCollapsedButtonLabel,
134
- onClick: a[0] || (a[0] = (R) => b.value = !b.value),
133
+ label: c.value ? t(b).asideRightExpandedButtonLabel : t(b).asideRightCollapsedButtonLabel,
134
+ onClick: a[0] || (a[0] = (R) => c.value = !c.value),
135
135
  text: ""
136
136
  }), null, 16, ["label"])) : d("", !0),
137
137
  e.closable ? (n(), m(w, i({
@@ -170,8 +170,8 @@ const Le = /* @__PURE__ */ oe({
170
170
  visible: V.value
171
171
  }),
172
172
  k("div", p($((N = t(l)) == null ? void 0 : N.footer)), [
173
- e.showStayCheckbox ? (n(), m(be, i({ key: 0 }, (O = t(l)) == null ? void 0 : O.staycheckbox, {
174
- label: e.stayCheckboxLabel ?? t(c).stayCheckboxLabel,
173
+ e.showStayCheckbox ? (n(), m(ce, i({ key: 0 }, (O = t(l)) == null ? void 0 : O.staycheckbox, {
174
+ label: e.stayCheckboxLabel ?? t(b).stayCheckboxLabel,
175
175
  "model-value": (U = o.value) == null ? void 0 : U.stayAfterSubmit,
176
176
  "onUpdate:modelValue": a[1] || (a[1] = (u) => o.value && (o.value.stayAfterSubmit = u))
177
177
  }), null, 16, ["label", "model-value"])) : d("", !0),
@@ -186,19 +186,19 @@ const Le = /* @__PURE__ */ oe({
186
186
  var u, h, g, B, R, q;
187
187
  return [
188
188
  (u = s.buttonsTemplate) != null && u.includes("cancel") ? (n(), m(w, i({ key: 0 }, (h = t(l)) == null ? void 0 : h.cancelbtn, {
189
- label: e.cancelBtnLabel ?? t(c).cancelBtnLabel,
189
+ label: e.cancelBtnLabel ?? t(b).cancelBtnLabel,
190
190
  onClick: a[2] || (a[2] = (ye) => (r("close"), r("update:visible", !1))),
191
191
  severity: "secondary",
192
192
  text: ""
193
193
  }), null, 16, ["label"])) : d("", !0),
194
194
  (g = s.buttonsTemplate) != null && g.includes("clear") ? (n(), m(w, i({ key: 1 }, (B = t(l)) == null ? void 0 : B.clearfield, {
195
- label: e.clearBtnLabel ?? t(c).clearBtnLabel,
195
+ label: e.clearBtnLabel ?? t(b).clearBtnLabel,
196
196
  onClick: F,
197
197
  class: "whitespace-nowrap",
198
198
  text: ""
199
199
  }), null, 16, ["label"])) : d("", !0),
200
200
  (R = s.buttonsTemplate) != null && R.includes("submit") ? (n(), m(w, i({ key: 2 }, (q = t(l)) == null ? void 0 : q.savesubmitbutton, {
201
- label: e.submitBtnLabel ?? t(c).submitBtnLabel,
201
+ label: e.submitBtnLabel ?? t(b).submitBtnLabel,
202
202
  severity: s.severity === "primary" ? void 0 : s.severity ?? "success",
203
203
  onClick: W
204
204
  }), null, 16, ["label", "severity"])) : d("", !0)
@@ -207,7 +207,7 @@ const Le = /* @__PURE__ */ oe({
207
207
  ], 16)) : d("", !0)
208
208
  ], 16)
209
209
  ], 16),
210
- e.$slots["aside-right"] ? (n(), Q("aside", p(i({ key: 0 }, (K = t(l)) == null ? void 0 : K.asidesection(b.value, e.asideRightWidth))), [
210
+ e.$slots["aside-right"] ? (n(), Q("aside", p(i({ key: 0 }, (K = t(l)) == null ? void 0 : K.asidesection(c.value, e.asideRightWidth))), [
211
211
  S(e.$slots, "aside-right")
212
212
  ], 16)) : d("", !0)
213
213
  ], 16)