@fewangsit/wangsvue-fats 1.0.1-rc.0 → 1.0.1-rc.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/animation/index.es.js +50 -0
- package/approverinfo/index.es.js +6 -6
- package/assetinfo/index.es.js +160 -2
- package/backgroundimagecropper/{BackgroundImageCropper.es.js → index.es.js} +1 -1
- package/badge/index.es.js +7 -7
- package/badgegroup/index.es.js +7 -7
- package/basecalendar/{BaseCalendar.es.js → index.es.js} +6 -6
- package/basetree/index.es.js +14 -14
- package/breadcrumb/index.es.js +6 -6
- package/button/index.es.js +118 -2
- package/buttonaddbyscan/index.es.js +13 -13
- package/buttonbulkaction/index.es.js +184 -2
- package/buttoncopy/index.es.js +6 -6
- package/buttondownload/index.es.js +15 -15
- package/buttonfilter/index.es.js +6 -6
- package/buttonradio/index.es.js +2 -2
- package/buttonscan/index.es.js +414 -2
- package/buttonsearch/index.es.js +9 -9
- package/buttonsearchbyscan/index.es.js +7 -7
- package/buttonselecttree/index.es.js +22 -22
- package/buttonselectuser/index.es.js +25 -25
- package/buttonsync/index.es.js +12 -12
- package/buttontoggle/index.es.js +6 -6
- package/buttonviewlog/index.es.js +2 -2
- package/calendar/index.es.js +4 -4
- package/card/index.es.js +4 -4
- package/carousel/index.es.js +7 -7
- package/checkbox/index.es.js +2 -2
- package/codesnippet/{CodeSnippet.es.js → index.es.js} +1 -1
- package/codesnippetadapter/{CodeSnippetAdapter.es.js → index.es.js} +1 -1
- package/columnlist/{ColumnList.es.js → index.es.js} +8 -8
- package/config/defaultProps.es.js +133 -0
- package/config/index.es.js +10 -218
- package/config/locale.es.js +85 -0
- package/customcolumn/index.es.js +8 -8
- package/datatable/index.es.js +108 -107
- package/datepicker/index.es.js +138 -2
- package/daypicker/index.es.js +6 -6
- package/dialog/index.es.js +4 -4
- package/dialogassetnamedetail/index.es.js +11 -11
- package/dialogbasictransferlog/{DialogBasicTransferLog.es.js → index.es.js} +17 -17
- package/dialogconfirm/index.es.js +17 -17
- package/dialogdamagelog/index.es.js +14 -14
- package/dialogform/index.es.js +32 -32
- package/dialogfulltransferlog/{DialogFullTransferLog.es.js → index.es.js} +16 -16
- package/dialoglinkedasset/index.es.js +9 -9
- package/dialogprintqr/index.es.js +332 -2
- package/dialogreportdamage/index.es.js +12 -12
- package/dialogreportmissing/index.es.js +12 -12
- package/dialogreporttag/index.es.js +8 -8
- package/dialogselecttree/index.es.js +13 -13
- package/dialogselectuser/index.d.ts +2 -2
- package/dialogselectuser/index.es.js +18 -18
- package/dialogselectuserfilter/{DialogSelectUserFilter.es.js → index.es.js} +2 -2
- package/dialogtransferlog/index.es.js +9 -9
- package/directives/{focus/index.es.js → focus.es.js} +2 -2
- package/directives/index.es.js +2 -0
- package/directives/tooltip.es.js +1 -0
- package/disposalreport/index.es.js +8 -8
- package/disposalreportbulkaction/{DisposalReportBulkAction.es.js → index.es.js} +9 -8
- package/disposalreporttable/{DisposalReportTable.es.js → index.es.js} +16 -16
- package/disposalreporttablefilter/{DisposalReportTableFilter.es.js → index.es.js} +5 -5
- package/dropdown/index.es.js +37 -37
- package/editor/{Editor.es.js → index.es.js} +57 -57
- package/editorbutton/{EditorButton.es.js → index.es.js} +1 -1
- package/event-bus/index.es.js +4 -3
- package/event-bus/mitt.es.js +53 -0
- package/fieldwrapper/{FieldWrapper.es.js → index.es.js} +2 -2
- package/fileupload/index.es.js +13 -13
- package/filtercontainer/index.es.js +34 -34
- package/form/index.es.js +23 -23
- package/hardwaresync/{HardwareSync.es.js → index.es.js} +42 -42
- package/icon/index.es.js +4 -4
- package/image/index.es.js +14 -14
- package/imagecompressor/index.es.js +14 -14
- package/imageinputinfo/{ImageInputInfo.es.js → index.es.js} +2 -2
- package/inlinemessage/index.es.js +7 -7
- package/inputbadge/index.es.js +14 -14
- package/inputcurrency/index.es.js +147 -2
- package/inputemail/index.es.js +4 -4
- package/inputnumber/index.es.js +6 -6
- package/inputotp/index.es.js +1 -1
- package/inputpassword/index.es.js +10 -10
- package/inputphonenumber/index.es.js +28 -28
- package/inputrangenumber/index.es.js +9 -9
- package/inputsearch/index.es.js +2 -2
- package/inputtext/index.es.js +11 -11
- package/inputurl/index.es.js +5 -5
- package/invisiblefield/index.es.js +8 -8
- package/languagedropdownoption/{LanguageDropdownOption.es.js → index.es.js} +3 -3
- package/languageswitcher/index.es.js +7 -7
- package/litedropdown/index.es.js +10 -10
- package/loading/index.es.js +8 -8
- package/mentionlist/{MentionList.es.js → index.es.js} +4 -4
- package/menu/index.es.js +20 -19
- package/menuitem/{MenuItem.es.js → index.es.js} +1 -1
- package/multiselect/index.es.js +27 -27
- package/overlaypanel/index.es.js +6 -6
- package/package.json +1 -5
- package/paginator/index.es.js +11 -11
- package/plugins/VueHtmlToPaper.es.js +40 -0
- package/{animation/Animation.es.js → plugins/WangsVue.es.js} +38 -83
- package/plugins/basei18n.d.ts +103 -0
- package/plugins/basei18n.es.js +88 -0
- package/plugins/{formValidation/index.es.js → formValidation.es.js} +4 -4
- package/plugins/i18n.d.ts +5 -102
- package/plugins/i18n.es.js +6 -0
- package/stats.html +1 -1
- package/steps/index.es.js +4 -4
- package/tabmenu/index.es.js +1 -1
- package/tagtype/index.es.js +6 -6
- package/textarea/index.es.js +5 -5
- package/timeline/index.es.js +5 -5
- package/timelinecontentbytype/{TimelineContentByType.es.js → index.es.js} +9 -9
- package/toast/index.es.js +3 -3
- package/toggleswitch/index.es.js +2 -2
- package/transactionroles/index.es.js +2 -2
- package/tree/index.es.js +117 -107
- package/treenode/{TreeNode.es.js → index.es.js} +4 -4
- package/treesearchinput/{TreeSearchInput.es.js → index.es.js} +4 -4
- package/username/index.es.js +20 -20
- package/userwithicon/index.es.js +4 -4
- package/utils/baseToast.util.es.js +1 -1
- package/utils/date.util.es.js +2 -2
- package/utils/index.es.js +3 -36
- package/utils/role.util.es.js +2 -2
- package/validatormessage/index.es.js +4 -4
- package/vendor/highlight.js/es/core.es.js +1 -1
- package/vendor/lodash/_freeGlobal.es.js +1 -1
- package/vendor/simplebar-core/dist/index.es.js +1 -1
- package/wangsvue-fats.d.ts +1 -2
- package/wangsvue-fats.es.js +219 -256
- package/wangsvue-fats.system.js +56 -56
- package/approverinfo/package.json +0 -4
- package/assetinfo/AssetInfo.es.js +0 -179
- package/assetinfo/package.json +0 -4
- package/badge/package.json +0 -4
- package/badgegroup/package.json +0 -4
- package/basetree/package.json +0 -4
- package/breadcrumb/package.json +0 -4
- package/button/Button.es.js +0 -120
- package/button/package.json +0 -4
- package/buttonaddbyscan/package.json +0 -4
- package/buttonbulkaction/ButtonBulkAction.es.js +0 -238
- package/buttonbulkaction/package.json +0 -4
- package/buttoncopy/package.json +0 -4
- package/buttondownload/package.json +0 -4
- package/buttonfilter/package.json +0 -4
- package/buttonradio/package.json +0 -4
- package/buttonscan/ButtonScan.es.js +0 -416
- package/buttonscan/package.json +0 -4
- package/buttonsearch/package.json +0 -4
- package/buttonsearchbyscan/package.json +0 -4
- package/buttonselecttree/package.json +0 -4
- package/buttonselectuser/package.json +0 -4
- package/buttonsync/package.json +0 -4
- package/buttontoggle/package.json +0 -4
- package/buttonviewlog/package.json +0 -4
- package/calendar/package.json +0 -4
- package/card/package.json +0 -4
- package/carousel/package.json +0 -4
- package/checkbox/package.json +0 -4
- package/config/package.json +0 -4
- package/customcolumn/package.json +0 -4
- package/datatable/package.json +0 -4
- package/datepicker/DatePicker.es.js +0 -224
- package/datepicker/package.json +0 -4
- package/daypicker/package.json +0 -4
- package/dialog/package.json +0 -4
- package/dialogassetnamedetail/package.json +0 -4
- package/dialogconfirm/package.json +0 -4
- package/dialogdamagelog/package.json +0 -4
- package/dialogform/package.json +0 -4
- package/dialoglinkedasset/package.json +0 -4
- package/dialogprintqr/DialogPrintQR.es.js +0 -334
- package/dialogprintqr/package.json +0 -4
- package/dialogreportdamage/package.json +0 -4
- package/dialogreportmissing/package.json +0 -4
- package/dialogreporttag/package.json +0 -4
- package/dialogselecttree/package.json +0 -4
- package/dialogselectuser/package.json +0 -4
- package/dialogtransferlog/package.json +0 -4
- package/directives/focus/package.json +0 -4
- package/directives/tooltip/index.es.js +0 -4
- package/directives/tooltip/package.json +0 -4
- package/disposalreport/package.json +0 -4
- package/dropdown/package.json +0 -4
- package/event-bus/package.json +0 -4
- package/fileupload/package.json +0 -4
- package/filtercontainer/package.json +0 -4
- package/form/package.json +0 -4
- package/icon/package.json +0 -4
- package/image/package.json +0 -4
- package/imagecompressor/package.json +0 -4
- package/index.d.ts +0 -2
- package/inlinemessage/package.json +0 -4
- package/inputbadge/package.json +0 -4
- package/inputcurrency/InputCurrency.es.js +0 -150
- package/inputcurrency/helpers/index.es.js +0 -5
- package/inputcurrency/helpers/package.json +0 -4
- package/inputcurrency/package.json +0 -4
- package/inputemail/package.json +0 -4
- package/inputnumber/package.json +0 -4
- package/inputotp/package.json +0 -4
- package/inputpassword/package.json +0 -4
- package/inputphonenumber/package.json +0 -4
- package/inputrangenumber/package.json +0 -4
- package/inputsearch/package.json +0 -4
- package/inputtext/package.json +0 -4
- package/inputurl/package.json +0 -4
- package/invisiblefield/package.json +0 -4
- package/languageswitcher/package.json +0 -4
- package/litedropdown/package.json +0 -4
- package/loading/package.json +0 -4
- package/loading/store/index.es.js +0 -5
- package/loading/store/package.json +0 -4
- package/menu/package.json +0 -4
- package/multiselect/package.json +0 -4
- package/overlaypanel/package.json +0 -4
- package/paginator/package.json +0 -4
- package/plugins/formValidation/package.json +0 -4
- package/plugins/i18n/index.es.js +0 -8
- package/plugins/i18n/package.json +0 -4
- package/plugins/i18n-extension.d.ts +0 -4
- package/steps/package.json +0 -4
- package/tabmenu/package.json +0 -4
- package/tagtype/package.json +0 -4
- package/textarea/package.json +0 -4
- package/timeline/package.json +0 -4
- package/toast/package.json +0 -4
- package/toast/service/index.es.js +0 -5
- package/toast/service/package.json +0 -4
- package/toggleswitch/package.json +0 -4
- package/transactionroles/package.json +0 -4
- package/tree/package.json +0 -4
- package/username/package.json +0 -4
- package/userwithicon/package.json +0 -4
- package/utils/package.json +0 -4
- package/validatormessage/package.json +0 -4
- /package/inputgroup/{InputGroup.es.js → index.es.js} +0 -0
- /package/mentionsection/{MentionSection.es.js → index.es.js} +0 -0
- /package/multirow/{MultiRow.es.js → index.es.js} +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { defineComponent as z, computed as v, ref as V, shallowRef as $, watch as q, createElementBlock as R, openBlock as u, Fragment as j, createVNode as l, withCtx as S, createElementVNode as b, createCommentVNode as m, unref as J, createBlock as k, createTextVNode as O, toDisplayString as H } from "vue";
|
|
2
2
|
import { DamageServices as K, AssetServices as X } from "@tagsamurai/fats-api-services";
|
|
3
|
-
import { u as Y, _ as Z } from "../assetinfo/
|
|
3
|
+
import { u as Y, _ as Z } from "../assetinfo/index.es.js";
|
|
4
4
|
import { u as P } from "../utils/toast.util.es.js";
|
|
5
|
-
import B from "../badge/index.es.js";
|
|
6
|
-
import { _ as ee } from "../button/
|
|
7
|
-
import { _ as I } from "../buttonscan/
|
|
8
|
-
import te from "../dialogconfirm/index.es.js";
|
|
9
|
-
import ae from "../dialogform/index.es.js";
|
|
10
|
-
import se from "../icon/index.es.js";
|
|
11
|
-
import oe from "../imagecompressor/index.es.js";
|
|
12
|
-
import re from "../inputtext/index.es.js";
|
|
13
|
-
import ie from "../textarea/index.es.js";
|
|
14
|
-
import le from "../dialogreporttag/index.es.js";
|
|
5
|
+
import { _ as B } from "../badge/index.es.js";
|
|
6
|
+
import { _ as ee } from "../button/index.es.js";
|
|
7
|
+
import { _ as I } from "../buttonscan/index.es.js";
|
|
8
|
+
import { _ as te } from "../dialogconfirm/index.es.js";
|
|
9
|
+
import { _ as ae } from "../dialogform/index.es.js";
|
|
10
|
+
import { _ as se } from "../icon/index.es.js";
|
|
11
|
+
import { _ as oe } from "../imagecompressor/index.es.js";
|
|
12
|
+
import { _ as re } from "../inputtext/index.es.js";
|
|
13
|
+
import { _ as ie } from "../textarea/index.es.js";
|
|
14
|
+
import { _ as le } from "../dialogreporttag/index.es.js";
|
|
15
15
|
const ne = { class: "font-bold" }, de = { class: "flex flex-col gap-3" }, ue = {
|
|
16
16
|
key: 0,
|
|
17
17
|
class: "flex flex-col gap-3"
|
|
@@ -236,5 +236,5 @@ const ne = { class: "font-bold" }, de = { class: "flex flex-col gap-3" }, ue = {
|
|
|
236
236
|
}
|
|
237
237
|
});
|
|
238
238
|
export {
|
|
239
|
-
Fe as
|
|
239
|
+
Fe as _
|
|
240
240
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as x, computed as r, ref as k, createBlock as
|
|
1
|
+
import { defineComponent as x, computed as r, ref as k, createBlock as f, openBlock as b, withCtx as l, createElementVNode as o, createVNode as y, createTextVNode as R, toDisplayString as v } from "vue";
|
|
2
2
|
import { TrackingServices as C, MissingServices as $ } from "@tagsamurai/fats-api-services";
|
|
3
|
-
import { u as B, _ as F } from "../assetinfo/
|
|
3
|
+
import { u as B, _ as F } from "../assetinfo/index.es.js";
|
|
4
4
|
import { u as N } from "../utils/toast.util.es.js";
|
|
5
|
-
import A from "../dialogconfirm/index.es.js";
|
|
6
|
-
import E from "../dialogform/index.es.js";
|
|
7
|
-
import I from "../textarea/index.es.js";
|
|
5
|
+
import { _ as A } from "../dialogconfirm/index.es.js";
|
|
6
|
+
import { _ as E } from "../dialogform/index.es.js";
|
|
7
|
+
import { _ as I } from "../textarea/index.es.js";
|
|
8
8
|
const V = { class: "font-bold" }, T = { class: "flex flex-col gap-3" }, j = /* @__PURE__ */ x({
|
|
9
9
|
__name: "DialogReportMissing",
|
|
10
10
|
props: {
|
|
@@ -18,8 +18,8 @@ const V = { class: "font-bold" }, T = { class: "flex flex-col gap-3" }, j = /* @
|
|
|
18
18
|
submitFunction: { type: Function }
|
|
19
19
|
},
|
|
20
20
|
emits: ["update:visible", "reported"],
|
|
21
|
-
setup(
|
|
22
|
-
const e =
|
|
21
|
+
setup(_, { emit: M }) {
|
|
22
|
+
const e = _, n = M, { setLoading: m } = B(), a = N(), p = r(() => e.visible), h = r(
|
|
23
23
|
() => e.permanentlyMissing ? "Report Permanently Missing" : "Report Missing"
|
|
24
24
|
), S = r(
|
|
25
25
|
() => e.permanentlyMissing ? "Report as Permanenly Missing" : "Report Missing Asset"
|
|
@@ -48,7 +48,7 @@ const V = { class: "font-bold" }, T = { class: "flex flex-col gap-3" }, j = /* @
|
|
|
48
48
|
m(!1);
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
|
-
return (c, s) => (b(),
|
|
51
|
+
return (c, s) => (b(), f(E, {
|
|
52
52
|
visible: p.value,
|
|
53
53
|
"onUpdate:visible": s[0] || (s[0] = (t) => p.value = t),
|
|
54
54
|
"buttons-template": ["cancel", "submit"],
|
|
@@ -73,10 +73,10 @@ const V = { class: "font-bold" }, T = { class: "flex flex-col gap-3" }, j = /* @
|
|
|
73
73
|
severity: "danger"
|
|
74
74
|
}, {
|
|
75
75
|
body: l(() => {
|
|
76
|
-
var i, u,
|
|
76
|
+
var i, u, g;
|
|
77
77
|
return [
|
|
78
78
|
o("p", null, [
|
|
79
|
-
o("span", V, v(((
|
|
79
|
+
o("span", V, v(((g = (u = (i = d.value) == null ? void 0 : i.asset) == null ? void 0 : u.name) == null ? void 0 : g.nameWithSequence) ?? "-"), 1),
|
|
80
80
|
R(" will be reported as " + v(e.permanentlyMissing ? "permanently missing asset" : "missing asset") + ". ", 1)
|
|
81
81
|
]),
|
|
82
82
|
s[2] || (s[2] = o("p", null, "Are you sure you want to report it?", -1))
|
|
@@ -87,7 +87,7 @@ const V = { class: "font-bold" }, T = { class: "flex flex-col gap-3" }, j = /* @
|
|
|
87
87
|
]),
|
|
88
88
|
fields: l(() => [
|
|
89
89
|
o("div", T, [
|
|
90
|
-
(b(),
|
|
90
|
+
(b(), f(F, {
|
|
91
91
|
id: e.id,
|
|
92
92
|
key: e.id,
|
|
93
93
|
ref_key: "assetInfo",
|
|
@@ -112,5 +112,5 @@ const V = { class: "font-bold" }, T = { class: "flex flex-col gap-3" }, j = /* @
|
|
|
112
112
|
}
|
|
113
113
|
});
|
|
114
114
|
export {
|
|
115
|
-
j as
|
|
115
|
+
j as _
|
|
116
116
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as U, computed as c, ref as W, createBlock as k, openBlock as x, withCtx as C, createElementVNode as E, createVNode as V, createCommentVNode as O } from "vue";
|
|
2
2
|
import { TAGServices as j } from "@tagsamurai/fats-api-services";
|
|
3
|
-
import { u as z, _ as H } from "../assetinfo/
|
|
3
|
+
import { u as z, _ as H } from "../assetinfo/index.es.js";
|
|
4
4
|
import { u as J } from "../utils/toast.util.es.js";
|
|
5
|
-
import K from "../dialogconfirm/index.es.js";
|
|
6
|
-
import X from "../dialogform/index.es.js";
|
|
7
|
-
import Y from "../dropdown/index.es.js";
|
|
5
|
+
import { _ as K } from "../dialogconfirm/index.es.js";
|
|
6
|
+
import { _ as X } from "../dialogform/index.es.js";
|
|
7
|
+
import { _ as Y } from "../dropdown/index.es.js";
|
|
8
8
|
const Z = { class: "flex flex-col gap-3" }, le = /* @__PURE__ */ U({
|
|
9
9
|
__name: "DialogReportTag",
|
|
10
10
|
props: {
|
|
@@ -19,7 +19,7 @@ const Z = { class: "flex flex-col gap-3" }, le = /* @__PURE__ */ U({
|
|
|
19
19
|
emits: ["update:visible", "reported"],
|
|
20
20
|
setup($, { emit: B }) {
|
|
21
21
|
const { setLoading: m } = z(), d = J(), s = $, r = B, f = c(() => s.visible), p = c(() => {
|
|
22
|
-
var e, i, o, n, u, b, v, g, R, T, y, A,
|
|
22
|
+
var e, i, o, n, u, b, v, g, R, T, _, y, A, F, G, h, I, D, q, Q, w, S;
|
|
23
23
|
const l = (e = s.tagReported) == null ? void 0 : e.rfid, t = (i = s.tagReported) == null ? void 0 : i.qr;
|
|
24
24
|
return [
|
|
25
25
|
{
|
|
@@ -30,12 +30,12 @@ const Z = { class: "flex flex-col gap-3" }, le = /* @__PURE__ */ U({
|
|
|
30
30
|
{
|
|
31
31
|
label: "QR TAG",
|
|
32
32
|
value: "QR",
|
|
33
|
-
visible: ((R = (g = a.value) == null ? void 0 : g.asset) == null ? void 0 : R.qr) && !t && !((
|
|
33
|
+
visible: ((R = (g = a.value) == null ? void 0 : g.asset) == null ? void 0 : R.qr) && !t && !((y = (_ = (T = a.value) == null ? void 0 : T.asset) == null ? void 0 : _.tagReported) != null && y.qr)
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
label: "RFID & QR TAG",
|
|
37
37
|
value: "RFID & QR",
|
|
38
|
-
visible: ((F = (
|
|
38
|
+
visible: ((F = (A = a.value) == null ? void 0 : A.asset) == null ? void 0 : F.rfid) && ((h = (G = a.value) == null ? void 0 : G.asset) == null ? void 0 : h.qr) && !l && !((q = (D = (I = a.value) == null ? void 0 : I.asset) == null ? void 0 : D.tagReported) != null && q.rfid) && !t && !((S = (w = (Q = a.value) == null ? void 0 : Q.asset) == null ? void 0 : w.tagReported) != null && S.qr)
|
|
39
39
|
}
|
|
40
40
|
].filter((N) => N.visible);
|
|
41
41
|
}), a = W(), L = async (l) => {
|
|
@@ -126,5 +126,5 @@ const Z = { class: "flex flex-col gap-3" }, le = /* @__PURE__ */ U({
|
|
|
126
126
|
}
|
|
127
127
|
});
|
|
128
128
|
export {
|
|
129
|
-
le as
|
|
129
|
+
le as _
|
|
130
130
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as G, mergeModels as T, useModel as P, inject as U, ref as o, computed as W, watch as b, createBlock as N, openBlock as d, unref as
|
|
1
|
+
import { defineComponent as G, mergeModels as T, useModel as P, inject as U, ref as o, computed as W, watch as b, createBlock as N, openBlock as d, unref as v, createSlots as O, withCtx as g, createVNode as B, mergeProps as z, renderSlot as D, createElementVNode as K, createElementBlock as k, createCommentVNode as h, normalizeClass as V, toDisplayString as L, Fragment as I, renderList as Y, withDirectives as q, vShow as J } from "vue";
|
|
2
2
|
import { g as Q } from "../utils/object.util.es.js";
|
|
3
|
-
import { _ as j } from "../button/
|
|
4
|
-
import R from "../dialog/index.es.js";
|
|
5
|
-
import X from "../tree/index.es.js";
|
|
6
|
-
import { _ as Z } from "../treesearchinput/
|
|
7
|
-
import _ from "../validatormessage/index.es.js";
|
|
3
|
+
import { _ as j } from "../button/index.es.js";
|
|
4
|
+
import { _ as R } from "../dialog/index.es.js";
|
|
5
|
+
import { _ as X } from "../tree/index.es.js";
|
|
6
|
+
import { _ as Z } from "../treesearchinput/index.es.js";
|
|
7
|
+
import { _ } from "../validatormessage/index.es.js";
|
|
8
8
|
const ee = {
|
|
9
9
|
class: "flex flex-col gap-3 items-start w-full",
|
|
10
10
|
"data-wv-section": "header-wrapper"
|
|
@@ -78,7 +78,7 @@ const ee = {
|
|
|
78
78
|
}),
|
|
79
79
|
emits: /* @__PURE__ */ T(["select", "hide"], ["update:visible"]),
|
|
80
80
|
setup($, { expose: A, emit: x }) {
|
|
81
|
-
const s = $, C = x, n = P($, "visible"),
|
|
81
|
+
const s = $, C = x, n = P($, "visible"), f = U("preset", {}).dialog, r = o(), p = o(""), y = o(""), m = o([]), c = o(), S = o(), E = o(!1), u = o(), w = o(), H = W(() => s.header ? s.header : s.type === "group" ? "Select Group" : "Select Category"), M = (e = !0) => {
|
|
82
82
|
c.value = u.value, S.value = w.value, Object.keys(c.value ?? {}).length ? (C("select", {
|
|
83
83
|
keys: c.value,
|
|
84
84
|
selectedNodes: m.value,
|
|
@@ -115,7 +115,7 @@ const ee = {
|
|
|
115
115
|
pt: {
|
|
116
116
|
root: {
|
|
117
117
|
class: [
|
|
118
|
-
...f
|
|
118
|
+
...v(f).root({ state: {} }).class,
|
|
119
119
|
"!w-[400px]",
|
|
120
120
|
{ "!hidden": e.hidden }
|
|
121
121
|
]
|
|
@@ -128,7 +128,7 @@ const ee = {
|
|
|
128
128
|
},
|
|
129
129
|
content: {
|
|
130
130
|
class: [
|
|
131
|
-
...f
|
|
131
|
+
...v(f).content({ state: {}, instance: {} }).class,
|
|
132
132
|
"pr-1.5 focus-visible:outline-none"
|
|
133
133
|
]
|
|
134
134
|
},
|
|
@@ -161,17 +161,17 @@ const ee = {
|
|
|
161
161
|
return [
|
|
162
162
|
K("div", ee, [
|
|
163
163
|
K("h3", {
|
|
164
|
-
class: V([...f
|
|
164
|
+
class: V([...v(f).title.class, "!leading-6"])
|
|
165
165
|
}, L(H.value), 3),
|
|
166
166
|
e.lists ? (d(), k("ul", le, [
|
|
167
167
|
(d(!0), k(I, null, Y(e.lists, (i, F) => (d(), k("li", {
|
|
168
168
|
key: F,
|
|
169
169
|
class: "text-xs leading-[16.39px] tracking-[0.02em] font-medium text-general-800 list-disc ps-[6px]"
|
|
170
|
-
}, L(e.listLabel && typeof i != "string" ?
|
|
170
|
+
}, L(e.listLabel && typeof i != "string" ? v(Q)(i, e.listLabel) : i), 1))), 128))
|
|
171
171
|
])) : h("", !0),
|
|
172
172
|
e.subHeader ? (d(), k("h4", {
|
|
173
173
|
key: 1,
|
|
174
|
-
class: V([...f
|
|
174
|
+
class: V([...v(f).title.class, "!leading-6 text-sm"])
|
|
175
175
|
}, L(e.subHeader), 3)) : h("", !0),
|
|
176
176
|
(a = r.value) != null && a.isLoading ? h("", !0) : (d(), N(Z, {
|
|
177
177
|
key: 2,
|
|
@@ -265,5 +265,5 @@ const ee = {
|
|
|
265
265
|
}
|
|
266
266
|
});
|
|
267
267
|
export {
|
|
268
|
-
ue as
|
|
268
|
+
ue as _
|
|
269
269
|
};
|
|
@@ -91,10 +91,10 @@ export type DialogSelectUserEmits<T = User> = {
|
|
|
91
91
|
*
|
|
92
92
|
* @group components
|
|
93
93
|
*/
|
|
94
|
-
declare
|
|
94
|
+
declare class DialogSelectUser extends ClassComponent<
|
|
95
95
|
DialogSelectUserProps,
|
|
96
96
|
unknown,
|
|
97
97
|
DialogSelectUserEmits
|
|
98
|
-
|
|
98
|
+
> {}
|
|
99
99
|
|
|
100
100
|
export default DialogSelectUser;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as u, defineComponent as S, computed as U, watch as $, createBlock as C, openBlock as c, withCtx as v, createElementVNode as i, createElementBlock as f, createCommentVNode as y, createVNode as n, Fragment as N, renderList as B, toDisplayString as h, unref as D, renderSlot as P } from "vue";
|
|
2
2
|
import { getImageURL as E } from "@tagsamurai/fats-api-services";
|
|
3
|
-
import I from "../image/index.es.js";
|
|
4
|
-
import { _
|
|
5
|
-
import L from "../buttonfilter/index.es.js";
|
|
6
|
-
import O from "../buttonsearch/index.es.js";
|
|
7
|
-
import j from "../datatable/index.es.js";
|
|
8
|
-
import V from "../dialog/index.es.js";
|
|
9
|
-
import { _ as z } from "../dialogselectuserfilter/
|
|
10
|
-
const R = () =>
|
|
3
|
+
import { _ as I } from "../image/index.es.js";
|
|
4
|
+
import { _ } from "../button/index.es.js";
|
|
5
|
+
import { _ as L } from "../buttonfilter/index.es.js";
|
|
6
|
+
import { _ as O } from "../buttonsearch/index.es.js";
|
|
7
|
+
import { D as j } from "../datatable/index.es.js";
|
|
8
|
+
import { _ as V } from "../dialog/index.es.js";
|
|
9
|
+
import { _ as z } from "../dialogselectuserfilter/index.es.js";
|
|
10
|
+
const R = () => u([
|
|
11
11
|
{
|
|
12
12
|
field: "profilePictureSmall",
|
|
13
13
|
header: "Photo",
|
|
@@ -93,8 +93,8 @@ const R = () => c([
|
|
|
93
93
|
fetchOptionFunction: {}
|
|
94
94
|
},
|
|
95
95
|
emits: ["update:visible", "selected"],
|
|
96
|
-
setup(e, { emit:
|
|
97
|
-
const t = e, m =
|
|
96
|
+
setup(e, { emit: g }) {
|
|
97
|
+
const t = e, m = g, p = U(() => t.visible), d = u(!1), b = u(), r = u([]), a = u(), k = R(), x = () => {
|
|
98
98
|
!r.value.length && !a.value ? d.value = !0 : (t.selectionType === "checkbox" ? m("selected", r.value) : m("selected", a.value), m("update:visible", !1));
|
|
99
99
|
}, w = () => {
|
|
100
100
|
r.value = [], a.value = void 0, d.value = !1;
|
|
@@ -108,7 +108,7 @@ const R = () => c([
|
|
|
108
108
|
w(), o && t.fetchOptionFunction && (b.value = await t.fetchOptionFunction());
|
|
109
109
|
},
|
|
110
110
|
{ immediate: !0 }
|
|
111
|
-
), (o, l) => (
|
|
111
|
+
), (o, l) => (c(), C(V, {
|
|
112
112
|
visible: p.value,
|
|
113
113
|
"onUpdate:visible": [
|
|
114
114
|
l[3] || (l[3] = (s) => p.value = s),
|
|
@@ -124,15 +124,15 @@ const R = () => c([
|
|
|
124
124
|
footer: v(() => [
|
|
125
125
|
P(o.$slots, "footer", {}, () => [
|
|
126
126
|
i("div", H, [
|
|
127
|
-
d.value ? (
|
|
127
|
+
d.value ? (c(), f("span", J, " You must pick a user ")) : y("", !0),
|
|
128
128
|
i("div", null, [
|
|
129
|
-
n(
|
|
129
|
+
n(_, {
|
|
130
130
|
onClick: l[2] || (l[2] = (s) => o.$emit("update:visible", !1)),
|
|
131
131
|
label: "Cancel",
|
|
132
132
|
severity: "dark",
|
|
133
133
|
text: ""
|
|
134
134
|
}),
|
|
135
|
-
n(
|
|
135
|
+
n(_, {
|
|
136
136
|
label: t.selectButtonLabel,
|
|
137
137
|
onClick: x,
|
|
138
138
|
"data-ts-section": "select-button",
|
|
@@ -144,8 +144,8 @@ const R = () => c([
|
|
|
144
144
|
]),
|
|
145
145
|
default: v(() => [
|
|
146
146
|
i("div", W, [
|
|
147
|
-
t.list && t.list.length ? (
|
|
148
|
-
(
|
|
147
|
+
t.list && t.list.length ? (c(), f("ul", Y, [
|
|
148
|
+
(c(!0), f(N, null, B(t.list, (s, F) => (c(), f("li", { key: F }, h(s), 1))), 128))
|
|
149
149
|
])) : y("", !0),
|
|
150
150
|
i("div", q, [
|
|
151
151
|
i("div", A, h(o.description), 1),
|
|
@@ -182,5 +182,5 @@ const R = () => c([
|
|
|
182
182
|
}
|
|
183
183
|
});
|
|
184
184
|
export {
|
|
185
|
-
oe as
|
|
185
|
+
oe as _
|
|
186
186
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as l, computed as n, createBlock as s, openBlock as p } from "vue";
|
|
2
|
-
import
|
|
2
|
+
import { _ as a } from "../filtercontainer/index.es.js";
|
|
3
3
|
const m = /* @__PURE__ */ l({
|
|
4
4
|
__name: "DialogSelectUserFilter",
|
|
5
5
|
props: {
|
|
@@ -29,7 +29,7 @@ const m = /* @__PURE__ */ l({
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
]);
|
|
32
|
-
return (e,
|
|
32
|
+
return (e, r) => (p(), s(a, {
|
|
33
33
|
fields: o.value,
|
|
34
34
|
"table-name": e.tableName
|
|
35
35
|
}, null, 8, ["fields", "table-name"]));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as a, mergeModels as t, useModel as v, createBlock as
|
|
2
|
-
import { i as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { _ as
|
|
1
|
+
import { defineComponent as a, mergeModels as t, useModel as v, createBlock as l, unref as m, openBlock as n } from "vue";
|
|
2
|
+
import { i as p } from "../utils/isBasic.util.es.js";
|
|
3
|
+
import { _ as d } from "../dialogbasictransferlog/index.es.js";
|
|
4
|
+
import { _ as b } from "../dialogfulltransferlog/index.es.js";
|
|
5
5
|
const k = /* @__PURE__ */ a({
|
|
6
6
|
__name: "DialogTransferLog",
|
|
7
7
|
props: /* @__PURE__ */ t({
|
|
@@ -14,19 +14,19 @@ const k = /* @__PURE__ */ a({
|
|
|
14
14
|
emits: ["update:visible"],
|
|
15
15
|
setup(r) {
|
|
16
16
|
const i = v(r, "visible");
|
|
17
|
-
return (
|
|
17
|
+
return (o, e) => m(p)() ? (n(), l(d, {
|
|
18
18
|
key: 0,
|
|
19
|
-
id:
|
|
19
|
+
id: o.id,
|
|
20
20
|
visible: i.value,
|
|
21
21
|
"onUpdate:visible": e[0] || (e[0] = (s) => i.value = s)
|
|
22
|
-
}, null, 8, ["id", "visible"])) : (n(),
|
|
22
|
+
}, null, 8, ["id", "visible"])) : (n(), l(b, {
|
|
23
23
|
key: 1,
|
|
24
|
-
id:
|
|
24
|
+
id: o.id,
|
|
25
25
|
visible: i.value,
|
|
26
26
|
"onUpdate:visible": e[1] || (e[1] = (s) => i.value = s)
|
|
27
27
|
}, null, 8, ["id", "visible"]));
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
export {
|
|
31
|
-
k as
|
|
31
|
+
k as _
|
|
32
32
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { nextTick as n } from "vue";
|
|
2
|
-
const
|
|
2
|
+
const c = {
|
|
3
3
|
mounted: async (t) => {
|
|
4
4
|
const s = t.tagName.toLowerCase() === "input", e = t.tagName.toLowerCase() === "button";
|
|
5
5
|
n(() => {
|
|
@@ -9,5 +9,5 @@ const a = {
|
|
|
9
9
|
}
|
|
10
10
|
};
|
|
11
11
|
export {
|
|
12
|
-
|
|
12
|
+
c as F
|
|
13
13
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../vendor/primevue/tooltip/tooltip.esm.es.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as s, createBlock as a, openBlock as r, withCtx as n, createElementVNode as e, createVNode as p, toDisplayString as i, unref as
|
|
2
|
-
import { u as
|
|
3
|
-
import d from "../card/index.es.js";
|
|
4
|
-
import { _ as f } from "../disposalreporttable/
|
|
1
|
+
import { defineComponent as s, createBlock as a, openBlock as r, withCtx as n, createElementVNode as e, createVNode as p, toDisplayString as i, unref as c, normalizeProps as l, guardReactiveProps as _ } from "vue";
|
|
2
|
+
import { u as m } from "../plugins/basei18n.es.js";
|
|
3
|
+
import { _ as d } from "../card/index.es.js";
|
|
4
|
+
import { _ as f } from "../disposalreporttable/index.es.js";
|
|
5
5
|
const u = {
|
|
6
6
|
class: "flex flex-col gap-3",
|
|
7
7
|
"data-ts-name": "disposalreport"
|
|
@@ -15,12 +15,12 @@ const u = {
|
|
|
15
15
|
reason: {}
|
|
16
16
|
},
|
|
17
17
|
setup(x) {
|
|
18
|
-
const { t } =
|
|
18
|
+
const { t } = m();
|
|
19
19
|
return (o, h) => (r(), a(d, null, {
|
|
20
20
|
content: n(() => [
|
|
21
21
|
e("div", u, [
|
|
22
|
-
e("h2", g, i(
|
|
23
|
-
p(f,
|
|
22
|
+
e("h2", g, i(c(t)("Asset Disposal")), 1),
|
|
23
|
+
p(f, l(_(o.$props)), null, 16)
|
|
24
24
|
])
|
|
25
25
|
]),
|
|
26
26
|
_: 1
|
|
@@ -28,5 +28,5 @@ const u = {
|
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
export {
|
|
31
|
-
v as
|
|
31
|
+
v as _
|
|
32
32
|
};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { defineComponent as _, ref as w, shallowRef as u, createElementBlock as R, openBlock as d, Fragment as k, createVNode as v, mergeProps as x, withCtx as B, createBlock as V, createCommentVNode as h, unref as l } from "vue";
|
|
2
|
-
import { e as c
|
|
3
|
-
import { u as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
2
|
+
import { e as c } from "../event-bus/index.es.js";
|
|
3
|
+
import { u as y } from "../plugins/basei18n.es.js";
|
|
4
|
+
import { _ as A } from "../buttonbulkaction/index.es.js";
|
|
5
|
+
import { _ as C } from "../dialogconfirm/index.es.js";
|
|
6
|
+
import { _ as D } from "../textarea/index.es.js";
|
|
7
|
+
const S = /* @__PURE__ */ _({
|
|
7
8
|
__name: "DisposalReportBulkAction",
|
|
8
9
|
props: {
|
|
9
10
|
tableName: {}
|
|
10
11
|
},
|
|
11
12
|
emits: ["noted", "removed"],
|
|
12
13
|
setup(p, { emit: b }) {
|
|
13
|
-
const { t: e } =
|
|
14
|
+
const { t: e } = y(), r = p, s = b, o = w([]), n = u(!1), m = u(), f = [
|
|
14
15
|
{
|
|
15
16
|
label: e("Note"),
|
|
16
17
|
icon: "note",
|
|
@@ -35,7 +36,7 @@ const I = /* @__PURE__ */ _({
|
|
|
35
36
|
});
|
|
36
37
|
};
|
|
37
38
|
return (i, t) => (d(), R(k, null, [
|
|
38
|
-
v(
|
|
39
|
+
v(A, x({
|
|
39
40
|
"selected-data": o.value,
|
|
40
41
|
"onUpdate:selectedData": t[1] || (t[1] = (a) => o.value = a)
|
|
41
42
|
}, i.$attrs, {
|
|
@@ -75,5 +76,5 @@ const I = /* @__PURE__ */ _({
|
|
|
75
76
|
}
|
|
76
77
|
});
|
|
77
78
|
export {
|
|
78
|
-
|
|
79
|
+
S as _
|
|
79
80
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { defineComponent as E, onMounted as I, shallowRef as i, ref as N, createElementBlock as F, openBlock as M, Fragment as P, createElementVNode as d, createVNode as s, mergeProps as L, unref as l, withCtx as U, toDisplayString as _ } from "vue";
|
|
2
2
|
import { AssetServices as V, DisposalServices as q } from "@tagsamurai/fats-api-services";
|
|
3
|
-
import { u as z } from "../assetinfo/
|
|
4
|
-
import { u as O } from "../
|
|
3
|
+
import { u as z } from "../assetinfo/index.es.js";
|
|
4
|
+
import { u as O } from "../plugins/basei18n.es.js";
|
|
5
5
|
import "../vendor/single-spa/lib/es2015/esm/single-spa.min.es.js";
|
|
6
6
|
import { u as W } from "../utils/toast.util.es.js";
|
|
7
|
-
import v from "../badge/index.es.js";
|
|
8
|
-
import { _ as w } from "../button/
|
|
9
|
-
import j from "../buttonfilter/index.es.js";
|
|
10
|
-
import H from "../buttonsearch/index.es.js";
|
|
11
|
-
import K from "../datatable/index.es.js";
|
|
12
|
-
import R from "../dialogconfirm/index.es.js";
|
|
13
|
-
import G from "../image/index.es.js";
|
|
14
|
-
import Q from "../textarea/index.es.js";
|
|
15
|
-
import { _ as J } from "../disposalreportbulkaction/
|
|
16
|
-
import { _ as X } from "../disposalreporttablefilter/
|
|
7
|
+
import { _ as v } from "../badge/index.es.js";
|
|
8
|
+
import { _ as w } from "../button/index.es.js";
|
|
9
|
+
import { _ as j } from "../buttonfilter/index.es.js";
|
|
10
|
+
import { _ as H } from "../buttonsearch/index.es.js";
|
|
11
|
+
import { D as K } from "../datatable/index.es.js";
|
|
12
|
+
import { _ as R } from "../dialogconfirm/index.es.js";
|
|
13
|
+
import { _ as G } from "../image/index.es.js";
|
|
14
|
+
import { _ as Q } from "../textarea/index.es.js";
|
|
15
|
+
import { _ as J } from "../disposalreportbulkaction/index.es.js";
|
|
16
|
+
import { _ as X } from "../disposalreporttablefilter/index.es.js";
|
|
17
17
|
const Y = {
|
|
18
18
|
class: "flex flex-col gap-2",
|
|
19
19
|
"data-ts-section": "disposalreporttablewrapper"
|
|
@@ -178,7 +178,7 @@ const Y = {
|
|
|
178
178
|
} finally {
|
|
179
179
|
m(!1);
|
|
180
180
|
}
|
|
181
|
-
},
|
|
181
|
+
}, D = [
|
|
182
182
|
{
|
|
183
183
|
label: a("Remove from List"),
|
|
184
184
|
icon: "delete-bin",
|
|
@@ -190,8 +190,8 @@ const Y = {
|
|
|
190
190
|
], h = (o) => {
|
|
191
191
|
r.value = r.value.filter(
|
|
192
192
|
(e) => !o.some((t) => e._id === t._id)
|
|
193
|
-
),
|
|
194
|
-
},
|
|
193
|
+
), T(o);
|
|
194
|
+
}, T = (o) => {
|
|
195
195
|
o.forEach((e) => {
|
|
196
196
|
n.value.delete(e._id ?? "");
|
|
197
197
|
}), r.value.length || b(), p.add({
|
|
@@ -254,7 +254,7 @@ const Y = {
|
|
|
254
254
|
columns: S,
|
|
255
255
|
data: r.value,
|
|
256
256
|
lazy: !1,
|
|
257
|
-
options:
|
|
257
|
+
options: D,
|
|
258
258
|
rows: 10,
|
|
259
259
|
onToggleOption: e[3] || (e[3] = (t) => f.value = t),
|
|
260
260
|
"data-key": "_id",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as y, shallowRef as r, ref as g, createBlock as b, openBlock as h } from "vue";
|
|
2
|
-
import { AssetServices as
|
|
3
|
-
import { u as
|
|
2
|
+
import { AssetServices as _ } from "@tagsamurai/fats-api-services";
|
|
3
|
+
import { u as O } from "../plugins/basei18n.es.js";
|
|
4
4
|
import "../vendor/single-spa/lib/es2015/esm/single-spa.min.es.js";
|
|
5
5
|
import { u as k } from "../utils/toast.util.es.js";
|
|
6
|
-
import v from "../filtercontainer/index.es.js";
|
|
6
|
+
import { _ as v } from "../filtercontainer/index.es.js";
|
|
7
7
|
const x = /* @__PURE__ */ y({
|
|
8
8
|
__name: "DisposalReportTableFilter",
|
|
9
9
|
props: {
|
|
@@ -11,7 +11,7 @@ const x = /* @__PURE__ */ y({
|
|
|
11
11
|
tableName: {}
|
|
12
12
|
},
|
|
13
13
|
setup(p) {
|
|
14
|
-
const o = p, c = k(), { t: e } =
|
|
14
|
+
const o = p, c = k(), { t: e } = O(), i = r([
|
|
15
15
|
{
|
|
16
16
|
label: e("Name"),
|
|
17
17
|
placeholder: e("Select asset name"),
|
|
@@ -49,7 +49,7 @@ const x = /* @__PURE__ */ y({
|
|
|
49
49
|
const d = {
|
|
50
50
|
_id: JSON.stringify(a),
|
|
51
51
|
[t]: !0
|
|
52
|
-
}, { data: f } = await
|
|
52
|
+
}, { data: f } = await _.getAllAssetsOptions(d);
|
|
53
53
|
return (l = f.data) == null ? void 0 : l[t];
|
|
54
54
|
} catch (a) {
|
|
55
55
|
return console.error(a), c.add({
|