@fewangsit/wangsvue-fats 1.0.1-alpha.67 → 1.0.1-alpha.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/animation/index.es.js +30 -20
- package/approverinfo/index.es.js +50 -50
- package/assetinfo/index.d.ts +5 -4
- package/assetinfo/index.es.js +116 -100
- package/assets/lottiejs/loading-page-dark.es.js +4 -0
- package/assets/lottiejs/loading-table-dark.es.js +4 -0
- package/assets/lottiejs/no-data-dark.es.js +4 -0
- package/backgroundimagecropper/index.es.js +14 -12
- package/button/index.es.js +58 -48
- package/buttonbulkaction/index.es.js +67 -59
- package/buttoncopy/index.es.js +8 -8
- package/buttondownload/index.es.js +18 -18
- package/buttonradio/index.es.js +11 -11
- package/buttonscan/index.es.js +48 -48
- package/buttonsearch/index.es.js +14 -14
- package/buttonselectuser/index.es.js +29 -29
- package/carousel/index.es.js +24 -24
- package/checkbox/index.es.js +5 -5
- package/columnlist/index.es.js +142 -132
- package/config/defaultProps.es.js +15 -11
- package/datatable/index.d.ts +14 -0
- package/datatable/index.es.js +520 -509
- package/datepicker/index.es.js +24 -24
- package/daypicker/index.es.js +29 -29
- package/dialog/index.es.js +17 -15
- package/dialogbasictransferlog/index.es.js +100 -100
- package/dialogconfirm/index.es.js +33 -33
- package/dialogdamagelog/index.es.js +106 -103
- package/dialogform/index.es.js +25 -25
- package/dialogfulltransferlog/index.es.js +98 -98
- package/dialoglinkedasset/index.es.js +61 -61
- package/dialogprintqr/index.es.js +78 -80
- 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 +17 -17
- 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 +3 -3
- 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/editor/index.es.js +51 -48
- package/fieldwrapper/index.es.js +7 -7
- package/fileupload/index.es.js +44 -40
- package/hardwaresync/index.es.js +12 -12
- package/headercell/index.es.js +4 -4
- package/icon/index.es.js +36 -35
- package/imagecompressor/index.es.js +155 -155
- 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 +27 -27
- package/inputtext/index.es.js +33 -33
- package/litedropdown/index.es.js +47 -39
- package/loading-page-dark-e0SrRAHc.js +4 -0
- package/loading-page-dark-mz8tLHZ3.js +1 -0
- package/loading-table-dark-BGh0tAPM.js +4 -0
- package/loading-table-dark-Cky7AB_C.js +1 -0
- package/menuitem/index.es.js +27 -26
- package/multirow/index.es.js +17 -16
- package/multiselect/index.es.js +86 -83
- package/no-data-dark-DERIJ8Ml.js +1 -0
- package/no-data-dark-nK4e4RAM.js +4 -0
- package/package.json +1 -1
- package/plugins/WangsVue.es.js +11 -9
- package/plugins/basei18n.d.ts +2 -2
- package/plugins/basei18n.es.js +48 -42
- package/stats.html +1 -1
- package/steps/index.es.js +18 -16
- package/style.css +2 -2
- package/tabmenu/index.es.js +14 -9
- package/tagtype/index.es.js +35 -32
- package/textarea/index.es.js +3 -3
- package/toggledarkmode/store/index.d.ts +7 -0
- package/toggleswitch/index.es.js +3 -3
- package/transactionroles/index.es.js +4 -1
- package/treesearchinput/index.es.js +15 -15
- package/username/index.es.js +37 -37
- 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 +22487 -21781
- package/wangsvue-fats.system.js +72 -71
package/directives/index.es.js
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { DirectiveBinding } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* V-safe-html directive
|
|
4
|
+
*
|
|
5
|
+
* Usage:
|
|
6
|
+
* <div v-safe-html="htmlString"></div>
|
|
7
|
+
*
|
|
8
|
+
* - Sanitizes HTML from the binding value
|
|
9
|
+
* - Prevents XSS
|
|
10
|
+
* - Only updates when the value actually changes
|
|
11
|
+
*/
|
|
12
|
+
declare const SafeHtml: {
|
|
13
|
+
mounted: (el: HTMLElement, binding: DirectiveBinding<string>) => void;
|
|
14
|
+
updated: (el: HTMLElement, binding: DirectiveBinding<string>) => void;
|
|
15
|
+
};
|
|
16
|
+
export default SafeHtml;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { p as t } from "../vendor/dompurify/dist/purify.es.es.js";
|
|
2
|
+
const l = {
|
|
3
|
+
mounted: (a, e) => {
|
|
4
|
+
a.innerHTML = t.sanitize(e.value ?? "");
|
|
5
|
+
},
|
|
6
|
+
updated: (a, e) => {
|
|
7
|
+
e.value !== e.oldValue && (a.innerHTML = t.sanitize(e.value ?? ""));
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
l as S
|
|
12
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as r, createBlock as a, openBlock as n, withCtx as p, createElementVNode as o, createVNode as i, toDisplayString as l, unref as e, normalizeProps as c, guardReactiveProps as m } from "vue";
|
|
2
2
|
import { u as _ } from "../plugins/basei18n.es.js";
|
|
3
3
|
import { a as f } from "../utils/role.util.es.js";
|
|
4
|
-
import "../
|
|
4
|
+
import "../utils/baseToast.util.es.js";
|
|
5
5
|
import { _ as d } from "../card/index.es.js";
|
|
6
6
|
import { _ as u } from "../disposalreporttable/index.es.js";
|
|
7
7
|
const g = {
|
|
8
8
|
class: "flex flex-col gap-3",
|
|
9
9
|
"data-ts-name": "disposalreport"
|
|
10
10
|
}, x = {
|
|
11
|
-
class: "text-general-800 font-bold text-base leading-[21.86px] tracking-[0.02em]",
|
|
11
|
+
class: "text-general-800 dark:text-general-200 font-bold text-base leading-[21.86px] tracking-[0.02em]",
|
|
12
12
|
"data-ts-section": "pagetitle"
|
|
13
13
|
}, v = /* @__PURE__ */ r({
|
|
14
14
|
__name: "DisposalReport",
|
|
@@ -19,7 +19,7 @@ const g = {
|
|
|
19
19
|
},
|
|
20
20
|
setup(h) {
|
|
21
21
|
const { t } = _();
|
|
22
|
-
return (s,
|
|
22
|
+
return (s, k) => (n(), a(d, null, {
|
|
23
23
|
content: p(() => [
|
|
24
24
|
o("div", g, [
|
|
25
25
|
o("h2", x, l(e(f)() === "Basic" ? e(t)("Report Disposal") : e(t)("Asset Disposal")), 1),
|
|
@@ -1,57 +1,55 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { e as
|
|
3
|
-
import {
|
|
4
|
-
import { _ as
|
|
5
|
-
import { _ as
|
|
6
|
-
|
|
7
|
-
const S = /* @__PURE__ */ _({
|
|
1
|
+
import { defineComponent as g, ref as N, shallowRef as s, createElementBlock as _, openBlock as i, Fragment as x, createVNode as u, mergeProps as w, withCtx as R, createBlock as k, createCommentVNode as B } from "vue";
|
|
2
|
+
import { e as d } from "../event-bus/index.es.js";
|
|
3
|
+
import { _ as V } from "../buttonbulkaction/index.es.js";
|
|
4
|
+
import { _ as h } from "../dialogconfirm/index.es.js";
|
|
5
|
+
import { _ as y } from "../textarea/index.es.js";
|
|
6
|
+
const U = /* @__PURE__ */ g({
|
|
8
7
|
__name: "DisposalReportBulkAction",
|
|
9
8
|
props: {
|
|
10
9
|
tableName: {}
|
|
11
10
|
},
|
|
12
11
|
emits: ["noted", "removed"],
|
|
13
|
-
setup(
|
|
14
|
-
const
|
|
12
|
+
setup(v, { emit: p }) {
|
|
13
|
+
const m = v, n = p, a = N([]), l = s(!1), o = s(), c = [
|
|
15
14
|
{
|
|
16
|
-
label:
|
|
15
|
+
label: "Note",
|
|
17
16
|
icon: "note",
|
|
18
17
|
useAdditionSlot: !0,
|
|
19
18
|
command: () => {
|
|
20
|
-
|
|
21
|
-
tableName:
|
|
22
|
-
}),
|
|
19
|
+
n("noted", a.value, o.value), d.emit("data-table:clear-selected-data", {
|
|
20
|
+
tableName: m.tableName
|
|
21
|
+
}), o.value = void 0;
|
|
23
22
|
}
|
|
24
23
|
},
|
|
25
24
|
{
|
|
26
|
-
label:
|
|
25
|
+
label: "Remove from List",
|
|
27
26
|
icon: "delete-bin",
|
|
28
27
|
danger: !0,
|
|
29
28
|
command: () => {
|
|
30
|
-
|
|
29
|
+
l.value = !0;
|
|
31
30
|
}
|
|
32
31
|
}
|
|
33
|
-
],
|
|
34
|
-
|
|
35
|
-
tableName:
|
|
32
|
+
], b = () => {
|
|
33
|
+
n("removed", a.value), d.emit("data-table:clear-selected-data", {
|
|
34
|
+
tableName: m.tableName
|
|
36
35
|
});
|
|
37
36
|
};
|
|
38
|
-
return (
|
|
39
|
-
|
|
40
|
-
"selected-data":
|
|
41
|
-
"onUpdate:selectedData": t[1] || (t[1] = (
|
|
42
|
-
},
|
|
43
|
-
options:
|
|
44
|
-
"table-name":
|
|
37
|
+
return (r, t) => (i(), _(x, null, [
|
|
38
|
+
u(V, w({
|
|
39
|
+
"selected-data": a.value,
|
|
40
|
+
"onUpdate:selectedData": t[1] || (t[1] = (e) => a.value = e)
|
|
41
|
+
}, r.$attrs, {
|
|
42
|
+
options: c,
|
|
43
|
+
"table-name": r.tableName,
|
|
45
44
|
naming: "Asset(s)"
|
|
46
45
|
}), {
|
|
47
|
-
addition:
|
|
48
|
-
(
|
|
46
|
+
addition: R(({ selectedOption: e }) => [
|
|
47
|
+
(e == null ? void 0 : e.label) === "Note" ? (i(), k(y, {
|
|
49
48
|
key: 0,
|
|
50
|
-
modelValue:
|
|
51
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
49
|
+
modelValue: o.value,
|
|
50
|
+
"onUpdate:modelValue": t[0] || (t[0] = (f) => o.value = f),
|
|
52
51
|
"max-input": 30,
|
|
53
52
|
maxlength: 30,
|
|
54
|
-
placeholder: l(e)("Enter note"),
|
|
55
53
|
rows: 1,
|
|
56
54
|
"textarea-pt": {
|
|
57
55
|
root: {
|
|
@@ -59,25 +57,26 @@ const S = /* @__PURE__ */ _({
|
|
|
59
57
|
}
|
|
60
58
|
},
|
|
61
59
|
class: "!max-w-[250px]",
|
|
60
|
+
placeholder: "Enter note",
|
|
62
61
|
"prevent-input-on-max-length": ""
|
|
63
|
-
}, null, 8, ["modelValue"
|
|
62
|
+
}, null, 8, ["modelValue"])) : B("", !0)
|
|
64
63
|
]),
|
|
65
64
|
_: 1
|
|
66
65
|
}, 16, ["selected-data", "table-name"]),
|
|
67
|
-
|
|
68
|
-
visible:
|
|
69
|
-
"onUpdate:visible": t[2] || (t[2] = (
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
onConfirm: g,
|
|
66
|
+
u(h, {
|
|
67
|
+
visible: l.value,
|
|
68
|
+
"onUpdate:visible": t[2] || (t[2] = (e) => l.value = e),
|
|
69
|
+
list: a.value,
|
|
70
|
+
onConfirm: b,
|
|
71
|
+
"confirm-label": "Remove",
|
|
72
|
+
header: "Remove from List",
|
|
75
73
|
"list-label": "name.nameWithSequence",
|
|
74
|
+
message: "Are you sure you want to remove it?",
|
|
76
75
|
severity: "danger"
|
|
77
|
-
}, null, 8, ["visible", "
|
|
76
|
+
}, null, 8, ["visible", "list"])
|
|
78
77
|
], 64));
|
|
79
78
|
}
|
|
80
79
|
});
|
|
81
80
|
export {
|
|
82
|
-
|
|
81
|
+
U as _
|
|
83
82
|
};
|
|
@@ -1,23 +1,20 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { AssetServices as
|
|
3
|
-
import { e as
|
|
1
|
+
import { defineComponent as M, mergeModels as h, useModel as T, shallowRef as y, ref as J, computed as m, createBlock as U, openBlock as j, withCtx as g, createElementVNode as l, createVNode as n, toDisplayString as _, withDirectives as R, vShow as V } from "vue";
|
|
2
|
+
import { AssetServices as O } from "@tagsamurai/fats-api-services";
|
|
3
|
+
import { e as E } from "../event-bus/index.es.js";
|
|
4
4
|
import "../utils/role.util.es.js";
|
|
5
|
-
import { u as
|
|
5
|
+
import { u as G } from "../utils/toast.util.es.js";
|
|
6
6
|
import { _ as f } from "../badge/index.es.js";
|
|
7
|
-
import { _ as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { _ as
|
|
10
|
-
import { D as
|
|
11
|
-
import { _ as
|
|
12
|
-
import { _ as
|
|
13
|
-
import { _ as
|
|
14
|
-
const
|
|
7
|
+
import { _ as S } from "../button/index.es.js";
|
|
8
|
+
import { _ as P } from "../buttonfilter/index.es.js";
|
|
9
|
+
import { _ as q } from "../buttonsearch/index.es.js";
|
|
10
|
+
import { D as H } from "../datatable/index.es.js";
|
|
11
|
+
import { _ as K } from "../dialog/index.es.js";
|
|
12
|
+
import { _ as L } from "../image/index.es.js";
|
|
13
|
+
import { _ as W } from "../filtercontainer/index.es.js";
|
|
14
|
+
const Y = { class: "flex justify-between items-center" }, Q = {
|
|
15
15
|
class: "flex gap-1 items-center justify-end",
|
|
16
16
|
"data-ts-section": "button-group"
|
|
17
|
-
},
|
|
18
|
-
class: "text-xs text-red-600",
|
|
19
|
-
"data-ts-section": "message-validator"
|
|
20
|
-
}, Z = { class: "flex items-center justify-end gap-1" }, pe = /* @__PURE__ */ z({
|
|
17
|
+
}, X = { class: "flex flex-col gap-1" }, Z = { class: "flex items-center justify-end gap-1" }, pe = /* @__PURE__ */ M({
|
|
21
18
|
__name: "DisposalReportDialogSelectAsset",
|
|
22
19
|
props: /* @__PURE__ */ h({
|
|
23
20
|
from: {},
|
|
@@ -33,16 +30,16 @@ const W = { class: "flex justify-between items-center" }, Y = {
|
|
|
33
30
|
visibleModifiers: {}
|
|
34
31
|
}),
|
|
35
32
|
emits: /* @__PURE__ */ h(["select"], ["update:visible"]),
|
|
36
|
-
setup(b, { emit:
|
|
37
|
-
const s = b,
|
|
33
|
+
setup(b, { emit: $ }) {
|
|
34
|
+
const s = b, x = $, c = T(b, "visible"), F = G(), i = y("select-asset-table"), d = y(!1), r = J([]), A = m(() => [
|
|
38
35
|
{
|
|
39
36
|
field: "assetImage",
|
|
40
37
|
header: "Photo",
|
|
41
38
|
style: "min-width: 72px",
|
|
42
|
-
bodyComponent: (
|
|
43
|
-
component:
|
|
39
|
+
bodyComponent: (e) => ({
|
|
40
|
+
component: L,
|
|
44
41
|
props: {
|
|
45
|
-
src:
|
|
42
|
+
src: e.assetImage ?? e.damageImage,
|
|
46
43
|
size: "small"
|
|
47
44
|
}
|
|
48
45
|
})
|
|
@@ -61,12 +58,12 @@ const W = { class: "flex justify-between items-center" }, Y = {
|
|
|
61
58
|
field: `${o("brand")}.name`,
|
|
62
59
|
header: "Brand",
|
|
63
60
|
sortable: !0,
|
|
64
|
-
bodyComponent: (
|
|
65
|
-
var
|
|
61
|
+
bodyComponent: (e) => {
|
|
62
|
+
var t;
|
|
66
63
|
return {
|
|
67
64
|
component: f,
|
|
68
65
|
props: {
|
|
69
|
-
label: (
|
|
66
|
+
label: (t = e[o("brand")]) == null ? void 0 : t.name,
|
|
70
67
|
severity: "dark"
|
|
71
68
|
}
|
|
72
69
|
};
|
|
@@ -76,12 +73,12 @@ const W = { class: "flex justify-between items-center" }, Y = {
|
|
|
76
73
|
field: `${o("model")}.name`,
|
|
77
74
|
header: "Model/Type",
|
|
78
75
|
sortable: !0,
|
|
79
|
-
bodyComponent: (
|
|
80
|
-
var
|
|
76
|
+
bodyComponent: (e) => {
|
|
77
|
+
var t;
|
|
81
78
|
return {
|
|
82
79
|
component: f,
|
|
83
80
|
props: {
|
|
84
|
-
label: (
|
|
81
|
+
label: (t = e[o("model")]) == null ? void 0 : t.name,
|
|
85
82
|
severity: "dark"
|
|
86
83
|
}
|
|
87
84
|
};
|
|
@@ -91,17 +88,17 @@ const W = { class: "flex justify-between items-center" }, Y = {
|
|
|
91
88
|
field: `${o("group")}.name`,
|
|
92
89
|
header: "Group",
|
|
93
90
|
sortable: !0,
|
|
94
|
-
bodyComponent: (
|
|
95
|
-
var
|
|
91
|
+
bodyComponent: (e) => {
|
|
92
|
+
var t;
|
|
96
93
|
return {
|
|
97
94
|
component: f,
|
|
98
95
|
props: {
|
|
99
|
-
label: (
|
|
96
|
+
label: (t = e[o("group")]) == null ? void 0 : t.name
|
|
100
97
|
}
|
|
101
98
|
};
|
|
102
99
|
}
|
|
103
100
|
}
|
|
104
|
-
]),
|
|
101
|
+
]), w = m(() => [
|
|
105
102
|
{
|
|
106
103
|
label: "Name",
|
|
107
104
|
field: o("name"),
|
|
@@ -128,7 +125,7 @@ const W = { class: "flex justify-between items-center" }, Y = {
|
|
|
128
125
|
field: o("group"),
|
|
129
126
|
type: "group"
|
|
130
127
|
}
|
|
131
|
-
]),
|
|
128
|
+
]), C = m(() => {
|
|
132
129
|
switch (s.size) {
|
|
133
130
|
case "large":
|
|
134
131
|
return "1000px";
|
|
@@ -137,63 +134,66 @@ const W = { class: "flex justify-between items-center" }, Y = {
|
|
|
137
134
|
default:
|
|
138
135
|
return "800px";
|
|
139
136
|
}
|
|
140
|
-
}),
|
|
137
|
+
}), D = m(() => s.header ?? "Select Asset"), o = (e) => s.from === "all" ? e : `asset${e.charAt(0).toUpperCase()}${e.slice(1)}`, u = (e) => s.from === "all" ? `${e}Options` : `asset${e.charAt(0).toUpperCase()}${e.slice(1)}Options`, p = async (e) => {
|
|
141
138
|
var v;
|
|
142
|
-
const
|
|
143
|
-
[
|
|
144
|
-
excludeId:
|
|
139
|
+
const t = JSON.stringify(s.selectedAssets ?? []), a = {
|
|
140
|
+
[e]: !0,
|
|
141
|
+
excludeId: t,
|
|
145
142
|
status: JSON.stringify(s.assetStatus ?? ["Available"])
|
|
146
|
-
}, { data:
|
|
147
|
-
return ((v =
|
|
148
|
-
},
|
|
149
|
-
const
|
|
143
|
+
}, { data: z } = await O.getAllAssetsOptions(a);
|
|
144
|
+
return ((v = z.data) == null ? void 0 : v[e]) ?? [];
|
|
145
|
+
}, N = async (e) => {
|
|
146
|
+
const t = JSON.stringify(s.selectedAssets ?? []);
|
|
150
147
|
try {
|
|
151
|
-
const { data: a } = await
|
|
152
|
-
excludeId:
|
|
148
|
+
const { data: a } = await O.getAllAssets({
|
|
149
|
+
excludeId: t,
|
|
153
150
|
status: JSON.stringify(s.assetStatus ?? ["Available"]),
|
|
154
|
-
...
|
|
151
|
+
...e
|
|
155
152
|
});
|
|
156
153
|
return a;
|
|
157
154
|
} catch (a) {
|
|
158
|
-
console.error(a),
|
|
155
|
+
console.error(a), F.add({
|
|
159
156
|
error: a,
|
|
160
157
|
message: "Error, failed to get asset list."
|
|
161
158
|
});
|
|
162
159
|
}
|
|
163
|
-
}, N = () => {
|
|
164
|
-
r.value.length === 0 ? d.value = !0 : k();
|
|
165
160
|
}, k = () => {
|
|
166
|
-
|
|
161
|
+
r.value.length === 0 ? d.value = !0 : I();
|
|
167
162
|
}, I = () => {
|
|
168
|
-
r.value =
|
|
163
|
+
x("select", r.value), d.value = !1, c.value = !1;
|
|
164
|
+
}, B = () => {
|
|
165
|
+
r.value = [], E.emit("data-table:clear-selected-data", {
|
|
169
166
|
tableName: i.value
|
|
170
167
|
});
|
|
171
168
|
};
|
|
172
|
-
return (
|
|
169
|
+
return (e, t) => (j(), U(K, {
|
|
173
170
|
visible: c.value,
|
|
174
|
-
"onUpdate:visible":
|
|
175
|
-
header:
|
|
176
|
-
pt: { root: { style: { width:
|
|
177
|
-
onHide:
|
|
171
|
+
"onUpdate:visible": t[3] || (t[3] = (a) => c.value = a),
|
|
172
|
+
header: D.value,
|
|
173
|
+
pt: { root: { style: { width: C.value } } },
|
|
174
|
+
onHide: B,
|
|
178
175
|
closable: "",
|
|
179
176
|
"data-ts-section": "dialogselectasset",
|
|
180
177
|
modal: ""
|
|
181
178
|
}, {
|
|
182
179
|
footer: g(() => [
|
|
183
|
-
l("div",
|
|
184
|
-
|
|
185
|
-
|
|
180
|
+
l("div", X, [
|
|
181
|
+
R(l("small", {
|
|
182
|
+
class: "text-xs text-red-600",
|
|
183
|
+
"data-ts-section": "message-validator"
|
|
184
|
+
}, _(e.$t("You must pick an asset")), 513), [
|
|
185
|
+
[V, d.value]
|
|
186
186
|
]),
|
|
187
187
|
l("div", Z, [
|
|
188
|
-
n(
|
|
189
|
-
onClick:
|
|
188
|
+
n(S, {
|
|
189
|
+
onClick: t[2] || (t[2] = (a) => c.value = !1),
|
|
190
190
|
"data-ts-section": "button-cancel",
|
|
191
191
|
label: "Cancel",
|
|
192
192
|
severity: "secondary",
|
|
193
193
|
text: ""
|
|
194
194
|
}),
|
|
195
|
-
n(
|
|
196
|
-
onClick:
|
|
195
|
+
n(S, {
|
|
196
|
+
onClick: k,
|
|
197
197
|
"data-ts-section": "button-select",
|
|
198
198
|
label: "Select",
|
|
199
199
|
severity: "success"
|
|
@@ -202,26 +202,26 @@ const W = { class: "flex justify-between items-center" }, Y = {
|
|
|
202
202
|
])
|
|
203
203
|
]),
|
|
204
204
|
default: g(() => [
|
|
205
|
-
l("div",
|
|
206
|
-
|
|
207
|
-
l("div",
|
|
208
|
-
n(
|
|
209
|
-
n(
|
|
205
|
+
l("div", Y, [
|
|
206
|
+
l("span", null, _(e.$t("Select asset(s) to be disposed.")), 1),
|
|
207
|
+
l("div", Q, [
|
|
208
|
+
n(q, { "table-name": i.value }, null, 8, ["table-name"]),
|
|
209
|
+
n(P, { "table-name": i.value }, null, 8, ["table-name"])
|
|
210
210
|
])
|
|
211
211
|
]),
|
|
212
|
-
n(
|
|
213
|
-
fields:
|
|
212
|
+
n(W, {
|
|
213
|
+
fields: w.value,
|
|
214
214
|
"table-name": i.value
|
|
215
215
|
}, null, 8, ["fields", "table-name"]),
|
|
216
|
-
n(
|
|
216
|
+
n(H, {
|
|
217
217
|
"selected-data": r.value,
|
|
218
|
-
"onUpdate:selectedData":
|
|
219
|
-
columns:
|
|
220
|
-
"fetch-function": s.fetchFunction ??
|
|
218
|
+
"onUpdate:selectedData": t[0] || (t[0] = (a) => r.value = a),
|
|
219
|
+
columns: A.value,
|
|
220
|
+
"fetch-function": s.fetchFunction ?? N,
|
|
221
221
|
rows: 10,
|
|
222
222
|
"table-name": i.value,
|
|
223
223
|
"use-option": !1,
|
|
224
|
-
onRowSelect:
|
|
224
|
+
onRowSelect: t[1] || (t[1] = (a) => d.value = !1),
|
|
225
225
|
"data-key": "_id",
|
|
226
226
|
"data-ts-section": "dialog-select-asset-table",
|
|
227
227
|
lazy: "",
|