@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.
- package/animation/index.es.js +9 -8
- package/assetinfo/index.d.ts +5 -4
- package/assetinfo/index.es.js +113 -97
- package/backgroundimagecropper/index.es.js +14 -12
- package/button/index.es.js +58 -48
- package/buttonbulkaction/index.es.js +67 -59
- package/buttondownload/index.es.js +18 -18
- package/buttonradio/index.es.js +11 -11
- package/buttonscan/index.es.js +1 -1
- package/buttonsearch/index.es.js +14 -14
- package/buttonselectuser/index.es.js +29 -29
- package/checkbox/index.es.js +5 -5
- package/config/defaultProps.es.js +3 -4
- package/datatable/index.es.js +470 -465
- package/datepicker/index.es.js +17 -17
- package/daypicker/index.es.js +21 -21
- package/dialog/index.es.js +17 -15
- package/dialogbasictransferlog/index.es.js +89 -89
- package/dialogconfirm/index.es.js +33 -33
- package/dialogdamagelog/index.es.js +89 -89
- package/dialogform/index.es.js +16 -16
- package/dialogfulltransferlog/index.es.js +96 -96
- package/dialoglinkedasset/index.es.js +48 -48
- package/dialogprintqr/index.es.js +70 -70
- package/dialogreportdamage/index.es.js +57 -57
- package/dialogreportmissing/index.es.js +94 -86
- package/dialogselecttree/index.es.js +18 -16
- package/dialogselectuser/index.es.js +16 -16
- package/directives/index.d.ts +1 -0
- package/directives/index.es.js +1 -0
- package/directives/safeHtml.d.ts +16 -0
- package/directives/safeHtml.es.js +12 -0
- package/disposalreport/index.es.js +1 -1
- package/disposalreportbulkaction/index.es.js +40 -41
- package/disposalreportdialogselectasset/index.es.js +72 -72
- package/disposalreporttable/index.es.js +108 -108
- package/disposalreporttablefilter/index.es.js +16 -17
- package/dropdown/index.es.js +120 -117
- package/fieldwrapper/index.es.js +7 -7
- package/fileupload/index.es.js +35 -31
- package/hardwaresync/index.es.js +12 -12
- package/headercell/index.es.js +4 -4
- package/icon/index.es.js +26 -25
- package/imagecompressor/index.es.js +143 -143
- package/imageinputinfo/index.es.js +13 -13
- package/inlinemessage/index.es.js +12 -12
- package/inputbadge/index.es.js +42 -43
- package/inputnumber/index.es.js +7 -7
- package/inputpassword/index.es.js +9 -9
- package/inputrangenumber/index.es.js +16 -16
- package/inputsearch/index.es.js +18 -18
- package/inputtext/index.es.js +33 -33
- package/litedropdown/index.es.js +48 -40
- package/menuitem/index.es.js +27 -26
- package/multirow/index.es.js +16 -16
- package/multiselect/index.es.js +86 -83
- package/package.json +1 -1
- package/plugins/basei18n.d.ts +2 -2
- package/plugins/basei18n.es.js +48 -42
- package/stats.html +1 -1
- package/style.css +1 -1
- package/tabmenu/index.es.js +14 -9
- package/tagtype/index.es.js +33 -30
- package/textarea/index.es.js +3 -3
- package/toggledarkmode/store/index.d.ts +7 -0
- package/toggleswitch/index.es.js +3 -3
- package/treesearchinput/index.es.js +11 -11
- package/username/index.es.js +39 -39
- package/utils/baseToast.util.es.js +23 -22
- package/utils/index.es.js +1 -2
- package/utils/textFormatter.util.d.ts +32 -0
- package/utils/textFormatter.util.es.js +38 -10
- package/validatormessage/index.es.js +1 -1
- package/vendor/dompurify/dist/purify.es.es.js +553 -0
- package/wangsvue-fats.d.ts +2 -1
- package/wangsvue-fats.es.js +190 -186
- package/wangsvue-fats.esm.browser.js +17750 -17086
- 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
|
|
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 (
|
|
38
|
-
var g, C, h, B, L, w, k, D,
|
|
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(
|
|
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:
|
|
45
|
+
header: e.$t(e.header),
|
|
46
46
|
pt: {
|
|
47
47
|
root: {
|
|
48
48
|
class: [
|
|
49
|
-
...(g =
|
|
50
|
-
...(C =
|
|
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 =
|
|
53
|
-
|
|
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 =
|
|
56
|
-
|
|
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 =
|
|
60
|
+
...(L = o(t)) == null ? void 0 : L.header,
|
|
61
61
|
class: [
|
|
62
|
-
...(w =
|
|
63
|
-
(k =
|
|
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
|
-
...(
|
|
67
|
+
...($ = o(t)) == null ? void 0 : $.content,
|
|
68
68
|
class: [
|
|
69
|
-
...(
|
|
70
|
-
(P =
|
|
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 =
|
|
75
|
+
...(I = o(t)) == null ? void 0 : I.footer,
|
|
76
76
|
class: [
|
|
77
|
-
...(S =
|
|
78
|
-
(V =
|
|
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
|
-
|
|
92
|
-
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 =
|
|
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
|
-
|
|
102
|
-
(r(!0), p(X, null, Y(
|
|
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(
|
|
104
|
+
N(e.$slots, "body", { items: e.list }, () => {
|
|
105
105
|
var s;
|
|
106
106
|
return [
|
|
107
|
-
E("p", v(H((s =
|
|
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(
|
|
113
|
+
N(e.$slots, "footer", {}, () => {
|
|
114
114
|
var a, s;
|
|
115
115
|
return [
|
|
116
|
-
|
|
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
|
-
|
|
123
|
-
disabled:
|
|
124
|
-
label:
|
|
125
|
-
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
|
|
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
|
|
6
|
-
import { f as
|
|
7
|
-
import { u as
|
|
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
|
|
10
|
-
import { _ as
|
|
11
|
-
import { _ as
|
|
12
|
-
import { _ as
|
|
13
|
-
import { _ as
|
|
14
|
-
const
|
|
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
|
-
},
|
|
17
|
+
}, Je = {
|
|
18
18
|
key: 1,
|
|
19
19
|
class: "text-body-medium"
|
|
20
|
-
},
|
|
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:
|
|
31
|
-
const
|
|
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
|
|
37
|
-
switch ((e = (
|
|
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 (
|
|
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[
|
|
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 = (
|
|
62
|
-
switch (
|
|
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 = (
|
|
79
|
-
switch (
|
|
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 = (
|
|
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 = (
|
|
99
|
+
})), pe = (t) => {
|
|
100
100
|
var r;
|
|
101
|
-
const e = (r =
|
|
102
|
-
|
|
101
|
+
const e = (r = h.listId) == null ? void 0 : r.findIndex((m) => m === t);
|
|
102
|
+
l.value = e;
|
|
103
103
|
}, ve = () => {
|
|
104
|
-
|
|
104
|
+
l.value++, y("next", l.value);
|
|
105
105
|
}, fe = () => {
|
|
106
|
-
|
|
106
|
+
l.value--, y("prev", l.value);
|
|
107
107
|
}, ge = () => {
|
|
108
|
-
var
|
|
109
|
-
we(`/assets/detail/${(e = (
|
|
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
|
-
() =>
|
|
113
|
-
(
|
|
114
|
-
|
|
112
|
+
() => l.value,
|
|
113
|
+
(t) => {
|
|
114
|
+
$(t);
|
|
115
115
|
}
|
|
116
|
-
), (
|
|
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(
|
|
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
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
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
|
-
|
|
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:
|
|
132
|
+
disabled: l.value === 0,
|
|
133
133
|
onClick: fe,
|
|
134
134
|
"data-wv-section": "prev-button"
|
|
135
|
-
}, " <
|
|
136
|
-
|
|
135
|
+
}, " <" + o(t.$t("Prev")), 11, Me),
|
|
136
|
+
a("button", {
|
|
137
137
|
class: b([
|
|
138
|
-
|
|
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:
|
|
141
|
+
disabled: l.value === u.value.length - 1 || u.value.length === 1,
|
|
142
142
|
onClick: ve,
|
|
143
143
|
"data-wv-section": "next-button"
|
|
144
|
-
}, "
|
|
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,
|
|
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
|
-
|
|
152
|
-
|
|
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
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
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
|
-
}, "
|
|
163
|
+
}, o(t.$t("Asset Detail")) + " > ", 1)
|
|
164
164
|
]),
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
se(
|
|
168
|
-
e[
|
|
169
|
-
(j = (A = s.value) == null ? void 0 : A.request) != null && j.tagType ? (
|
|
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
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
]
|
|
181
|
-
e[
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
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
|
-
|
|
187
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
207
|
-
e[
|
|
208
|
-
|
|
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
|
-
|
|
214
|
+
d(Ne, {
|
|
215
215
|
"active-index": 0,
|
|
216
216
|
menu: ne,
|
|
217
217
|
type: "tab"
|
|
218
218
|
}),
|
|
219
|
-
g.value.length ? (
|
|
219
|
+
g.value.length ? (i(), p(Le, {
|
|
220
220
|
key: k.value,
|
|
221
221
|
value: g.value
|
|
222
222
|
}, {
|
|
223
|
-
detail: v(({ key:
|
|
224
|
-
|
|
223
|
+
detail: v(({ key: n, value: Z }) => [
|
|
224
|
+
a("div", {
|
|
225
225
|
class: b([
|
|
226
226
|
"flex gap-1 items-baseline",
|
|
227
|
-
{ "flex-col":
|
|
227
|
+
{ "flex-col": n === "Damaged Photo" }
|
|
228
228
|
]),
|
|
229
|
-
"data-wv-section":
|
|
229
|
+
"data-wv-section": n
|
|
230
230
|
}, [
|
|
231
|
-
|
|
232
|
-
|
|
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"])) : (
|
|
237
|
-
], 10,
|
|
236
|
+
}, null, 8, ["src"])) : (i(), ae("span", Je, o(Z), 1))
|
|
237
|
+
], 10, We)
|
|
238
238
|
]),
|
|
239
|
-
date: v(({ date:
|
|
240
|
-
|
|
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
|
-
|
|
251
|
+
it as _
|
|
252
252
|
};
|
package/dialogform/index.es.js
CHANGED
|
@@ -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
|
|
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
|
|
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:
|
|
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"] &&
|
|
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(
|
|
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(
|
|
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:
|
|
134
|
-
onClick: a[0] || (a[0] = (R) =>
|
|
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(
|
|
174
|
-
label: e.stayCheckboxLabel ?? t(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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)
|