@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,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as v, createElementBlock as D, openBlock as E, Fragment as x, createVNode as g } from "vue";
|
|
2
|
-
import { DisposalServices as S, AssetServices as
|
|
3
|
-
import { u as B } from "../assetinfo/
|
|
2
|
+
import { DisposalServices as S, AssetServices as y } from "@tagsamurai/fats-api-services";
|
|
3
|
+
import { u as B } from "../assetinfo/index.es.js";
|
|
4
4
|
import { u as w } from "../utils/toast.util.es.js";
|
|
5
|
-
import P from "../buttonsearchbyscan/index.es.js";
|
|
6
|
-
import q from "../toast/index.es.js";
|
|
5
|
+
import { _ as P } from "../buttonsearchbyscan/index.es.js";
|
|
6
|
+
import { _ as q } from "../toast/index.es.js";
|
|
7
7
|
const $ = /* @__PURE__ */ v({
|
|
8
8
|
__name: "ButtonAddByScan",
|
|
9
9
|
props: {
|
|
@@ -13,8 +13,8 @@ const $ = /* @__PURE__ */ v({
|
|
|
13
13
|
queryParams: {}
|
|
14
14
|
},
|
|
15
15
|
emits: ["update:modelValue", "scan"],
|
|
16
|
-
setup(
|
|
17
|
-
const d = w(), { setLoading: c } = B(), s =
|
|
16
|
+
setup(f, { emit: h }) {
|
|
17
|
+
const d = w(), { setLoading: c } = B(), s = f, m = h, A = async (t) => {
|
|
18
18
|
var o, l, i, n;
|
|
19
19
|
try {
|
|
20
20
|
c(!0);
|
|
@@ -23,7 +23,7 @@ const $ = /* @__PURE__ */ v({
|
|
|
23
23
|
tag: t.code,
|
|
24
24
|
page: 1,
|
|
25
25
|
limit: 1
|
|
26
|
-
}, { data: a } = await
|
|
26
|
+
}, { data: a } = await y.getAvailableAssets(r);
|
|
27
27
|
if ((l = (o = a == null ? void 0 : a.data) == null ? void 0 : o.data) != null && l.length) {
|
|
28
28
|
const e = (i = a == null ? void 0 : a.data) == null ? void 0 : i.data[0];
|
|
29
29
|
if ((n = s.modelValue) == null ? void 0 : n.some(
|
|
@@ -65,7 +65,7 @@ const $ = /* @__PURE__ */ v({
|
|
|
65
65
|
) : void 0,
|
|
66
66
|
page: 1,
|
|
67
67
|
limit: 1
|
|
68
|
-
}, { data: a } = await
|
|
68
|
+
}, { data: a } = await y.getAllAssets(r);
|
|
69
69
|
if ((i = (l = a == null ? void 0 : a.data) == null ? void 0 : l.data) != null && i.length) {
|
|
70
70
|
const e = (n = a == null ? void 0 : a.data) == null ? void 0 : n.data[0];
|
|
71
71
|
if (["On Disposal Process", "Reported Disposal"].includes(
|
|
@@ -95,7 +95,7 @@ const $ = /* @__PURE__ */ v({
|
|
|
95
95
|
} finally {
|
|
96
96
|
c(!1);
|
|
97
97
|
}
|
|
98
|
-
},
|
|
98
|
+
}, _ = async (t) => {
|
|
99
99
|
var o, l, i, n;
|
|
100
100
|
try {
|
|
101
101
|
c(!0);
|
|
@@ -126,8 +126,8 @@ const $ = /* @__PURE__ */ v({
|
|
|
126
126
|
} finally {
|
|
127
127
|
c(!1);
|
|
128
128
|
}
|
|
129
|
-
},
|
|
130
|
-
s.reportedDisposalAssets ? await
|
|
129
|
+
}, V = async (t) => {
|
|
130
|
+
s.reportedDisposalAssets ? await _(t) : s.noDisposalAssets ? await b(t) : await A(t);
|
|
131
131
|
};
|
|
132
132
|
return (t, o) => (E(), D(x, null, [
|
|
133
133
|
g(q, {
|
|
@@ -136,7 +136,7 @@ const $ = /* @__PURE__ */ v({
|
|
|
136
136
|
group: "add-by-scan-error"
|
|
137
137
|
}),
|
|
138
138
|
g(P, {
|
|
139
|
-
onScan:
|
|
139
|
+
onScan: V,
|
|
140
140
|
bulk: "",
|
|
141
141
|
label: "Add By Scan"
|
|
142
142
|
})
|
|
@@ -144,5 +144,5 @@ const $ = /* @__PURE__ */ v({
|
|
|
144
144
|
}
|
|
145
145
|
});
|
|
146
146
|
export {
|
|
147
|
-
$ as
|
|
147
|
+
$ as _
|
|
148
148
|
};
|
|
@@ -1,4 +1,186 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineComponent as Y, onMounted as Z, onUnmounted as I, ref as R, shallowRef as k, computed as x, watch as F, withDirectives as y, createElementBlock as h, openBlock as r, mergeProps as f, createBlock as E, createCommentVNode as w, createVNode as v, unref as o, Fragment as T, renderSlot as ee, withCtx as V, normalizeClass as te, vShow as $, createElementVNode as le, normalizeProps as ae, guardReactiveProps as oe, toDisplayString as P, createTextVNode as H, nextTick as ne } from "vue";
|
|
2
|
+
import { e as c } from "../event-bus/index.es.js";
|
|
3
|
+
import { u as se } from "../plugins/WangsVue.es.js";
|
|
4
|
+
import { m as ie } from "../utils/mergePropsWithDefaults.util.es.js";
|
|
5
|
+
import { s as re } from "../vendor/primevue/dropdown/dropdown.esm.es.js";
|
|
6
|
+
import { _ as A } from "../button/index.es.js";
|
|
7
|
+
import { _ as ue } from "../icon/index.es.js";
|
|
8
|
+
import { _ as ce } from "../menu/index.es.js";
|
|
9
|
+
import { _ as de } from "../menuitem/index.es.js";
|
|
10
|
+
const pe = (D, N) => {
|
|
11
|
+
const l = {
|
|
12
|
+
label: N,
|
|
13
|
+
disabled: !0
|
|
14
|
+
}, g = D.filter((d) => d.visible !== !1);
|
|
15
|
+
return g.length ? g : [l];
|
|
16
|
+
}, $e = /* @__PURE__ */ Y({
|
|
17
|
+
__name: "ButtonBulkAction",
|
|
18
|
+
props: {
|
|
19
|
+
disabled: { type: Boolean },
|
|
20
|
+
selectedData: { default: () => [] },
|
|
21
|
+
totalRecords: {},
|
|
22
|
+
options: { default: () => [] },
|
|
23
|
+
tableName: { default: "datatable" },
|
|
24
|
+
selectMenuType: {},
|
|
25
|
+
naming: {}
|
|
26
|
+
},
|
|
27
|
+
emits: ["apply", "update:selectedData"],
|
|
28
|
+
setup(D, { emit: N }) {
|
|
29
|
+
const l = D, { defaultProps: g, locale: d } = se("ButtonBulkAction"), p = ie(l, g), B = N;
|
|
30
|
+
Z(() => {
|
|
31
|
+
window.addEventListener("disableBulkAction", O), c.on("data-table:update-selected-data", L), c.on("data-table:update-total-record", z);
|
|
32
|
+
}), I(() => {
|
|
33
|
+
window.removeEventListener("disableBulkAction", O), c.off("data-table:update-total-record", L), c.off("data-table:update-selected-data", z);
|
|
34
|
+
});
|
|
35
|
+
const S = R(), _ = R(), n = k(), m = k(0), C = k(!1), M = k(!1), i = R(l.selectedData), j = x(
|
|
36
|
+
() => {
|
|
37
|
+
var e;
|
|
38
|
+
return ((e = i.value) == null ? void 0 : e.length) && !M.value && m.value > 0;
|
|
39
|
+
}
|
|
40
|
+
), G = () => {
|
|
41
|
+
window.dispatchEvent(
|
|
42
|
+
new CustomEvent("fetchAllData", { detail: l.tableName })
|
|
43
|
+
), c.emit("data-table:select-all-record", { tableName: l.tableName });
|
|
44
|
+
}, J = () => {
|
|
45
|
+
B("update:selectedData", []), c.emit("data-table:clear-selected-data", {
|
|
46
|
+
tableName: l.tableName
|
|
47
|
+
});
|
|
48
|
+
}, O = (e) => {
|
|
49
|
+
l.tableName === e.detail.tableName && (M.value = e.detail.value);
|
|
50
|
+
}, K = (e) => {
|
|
51
|
+
var t;
|
|
52
|
+
(t = S.value) == null || t.toggle(e);
|
|
53
|
+
}, z = (e) => {
|
|
54
|
+
l.tableName === (e == null ? void 0 : e.tableName) && (m.value = e == null ? void 0 : e.total);
|
|
55
|
+
}, L = (e) => {
|
|
56
|
+
e.tableName === l.tableName && (i.value = e.data, B("update:selectedData", e.data ?? []));
|
|
57
|
+
}, Q = async (e) => {
|
|
58
|
+
var t, s;
|
|
59
|
+
if (e.useAdditionSlot) {
|
|
60
|
+
n.value = e, await ne();
|
|
61
|
+
const u = (t = _.value) == null ? void 0 : t.children[1], a = u == null ? void 0 : u.querySelector(
|
|
62
|
+
"input"
|
|
63
|
+
);
|
|
64
|
+
a && (a == null || a.click(), a == null || a.focus());
|
|
65
|
+
} else e.command ? (e.command({
|
|
66
|
+
originalEvent: void 0,
|
|
67
|
+
item: e
|
|
68
|
+
}), (s = S.value) == null || s.hide(), n.value = void 0) : e.url ? window.open(e.url, e.target) : e.route && window.history.pushState(void 0, "", e.route);
|
|
69
|
+
}, X = (e) => {
|
|
70
|
+
var t, s;
|
|
71
|
+
(s = (t = n.value) == null ? void 0 : t.command) == null || s.call(t, {
|
|
72
|
+
originalEvent: e,
|
|
73
|
+
item: n.value
|
|
74
|
+
}), n.value = void 0, B("apply");
|
|
75
|
+
};
|
|
76
|
+
return F(
|
|
77
|
+
[i, m],
|
|
78
|
+
([e, t]) => {
|
|
79
|
+
e != null && e.length || (n.value = void 0), C.value = (e == null ? void 0 : e.length) === t;
|
|
80
|
+
},
|
|
81
|
+
{ deep: !0 }
|
|
82
|
+
), F(
|
|
83
|
+
() => l.totalRecords,
|
|
84
|
+
(e) => m.value = e ?? 0,
|
|
85
|
+
{ immediate: !0 }
|
|
86
|
+
), (e, t) => {
|
|
87
|
+
var s, u, a, U, W, q;
|
|
88
|
+
return y((r(), h("div", f(e.$preset.buttonbulkaction.root, {
|
|
89
|
+
ref_key: "wrapper",
|
|
90
|
+
ref: _
|
|
91
|
+
}), [
|
|
92
|
+
o(p).selectMenuType === "overlay-panel" && ((s = i.value) != null && s.length) ? (r(), E(ce, {
|
|
93
|
+
key: 0,
|
|
94
|
+
ref_key: "menu",
|
|
95
|
+
ref: S,
|
|
96
|
+
model: e.options,
|
|
97
|
+
popup: ""
|
|
98
|
+
}, null, 8, ["model"])) : w("", !0),
|
|
99
|
+
o(p).selectMenuType === "dropdown" ? (r(), h(T, { key: 1 }, [
|
|
100
|
+
(u = e.selectedData) != null && u.length ? (r(), E(o(re), {
|
|
101
|
+
key: 0,
|
|
102
|
+
disabled: l.disabled || M.value || !((a = e.selectedData) != null && a.length),
|
|
103
|
+
options: o(pe)(
|
|
104
|
+
e.options,
|
|
105
|
+
e.$wangsvue.config.locale.components.Menu.noOptionLabel
|
|
106
|
+
),
|
|
107
|
+
pt: e.$preset.buttonbulkaction.dropdownmenu,
|
|
108
|
+
"onUpdate:modelValue": t[0] || (t[0] = (b) => Q(b)),
|
|
109
|
+
"option-label": "label",
|
|
110
|
+
outlined: "",
|
|
111
|
+
placeholder: "Bulk Action"
|
|
112
|
+
}, {
|
|
113
|
+
dropdownicon: V(({ class: b }) => [
|
|
114
|
+
v(ue, {
|
|
115
|
+
class: te([b]),
|
|
116
|
+
icon: "arrow-down"
|
|
117
|
+
}, null, 8, ["class"])
|
|
118
|
+
]),
|
|
119
|
+
option: V(({ option: b }) => [
|
|
120
|
+
v(de, {
|
|
121
|
+
item: b,
|
|
122
|
+
"router-props": {
|
|
123
|
+
action: e.$preset.menu.action,
|
|
124
|
+
label: e.$preset.menu.label,
|
|
125
|
+
icon: e.$preset.menu.icon
|
|
126
|
+
}
|
|
127
|
+
}, null, 8, ["item", "router-props"])
|
|
128
|
+
]),
|
|
129
|
+
_: 1
|
|
130
|
+
}, 8, ["disabled", "options", "pt"])) : w("", !0),
|
|
131
|
+
ee(e.$slots, "addition", { selectedOption: n.value }),
|
|
132
|
+
y(v(A, f({ onClick: X }, e.$preset.buttonbulkaction.applybutton, { label: "Apply" }), null, 16), [
|
|
133
|
+
[$, (U = n.value) == null ? void 0 : U.useAdditionSlot]
|
|
134
|
+
])
|
|
135
|
+
], 64)) : w("", !0),
|
|
136
|
+
y(le("span", ae(oe(e.$preset.buttonbulkaction.selectionmessage)), P(o(d).currentSelectionMessage.replace(
|
|
137
|
+
"{length} {naming}",
|
|
138
|
+
`${i.value.length.toString()} ${o(p).naming}`
|
|
139
|
+
)), 17), [
|
|
140
|
+
[$, (W = i.value) == null ? void 0 : W.length]
|
|
141
|
+
]),
|
|
142
|
+
y(v(A, f(
|
|
143
|
+
{ onClick: G },
|
|
144
|
+
e.$preset.buttonbulkaction.buttonselectall({
|
|
145
|
+
context: { selectedAll: C.value }
|
|
146
|
+
}),
|
|
147
|
+
{ text: "" }
|
|
148
|
+
), {
|
|
149
|
+
default: V(() => [
|
|
150
|
+
C.value ? (r(), h(T, { key: 1 }, [
|
|
151
|
+
H(P(o(d).allRecordSelected.replace("{naming}", o(p).naming)), 1)
|
|
152
|
+
], 64)) : (r(), h(T, { key: 0 }, [
|
|
153
|
+
H(P(o(d).selectAllRecords.replace(
|
|
154
|
+
"{totalRecords}",
|
|
155
|
+
m.value.toString()
|
|
156
|
+
)), 1)
|
|
157
|
+
], 64))
|
|
158
|
+
]),
|
|
159
|
+
_: 1
|
|
160
|
+
}, 16), [
|
|
161
|
+
[$, j.value]
|
|
162
|
+
]),
|
|
163
|
+
o(p).selectMenuType === "overlay-panel" ? (r(), E(A, f({
|
|
164
|
+
key: 2,
|
|
165
|
+
onClick: K
|
|
166
|
+
}, e.$preset.buttonbulkaction.bulkactiontoggle, {
|
|
167
|
+
icon: "ellipsis-h",
|
|
168
|
+
outlined: "",
|
|
169
|
+
severity: "secondary",
|
|
170
|
+
size: "small"
|
|
171
|
+
}), null, 16)) : w("", !0),
|
|
172
|
+
v(A, f({ onClick: J }, e.$preset.buttonbulkaction.buttonclearselection, {
|
|
173
|
+
icon: "close",
|
|
174
|
+
severity: "danger",
|
|
175
|
+
text: ""
|
|
176
|
+
}), null, 16)
|
|
177
|
+
], 16)), [
|
|
178
|
+
[$, (q = i.value) == null ? void 0 : q.length]
|
|
179
|
+
]);
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
});
|
|
2
183
|
export {
|
|
3
|
-
|
|
184
|
+
$e as _,
|
|
185
|
+
pe as f
|
|
4
186
|
};
|
package/buttoncopy/index.es.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { defineComponent as c, createBlock as a, openBlock as n, withCtx as r, createVNode as p } from "vue";
|
|
2
|
-
import { _ as s } from "../button/
|
|
3
|
-
import i from "../icon/index.es.js";
|
|
2
|
+
import { _ as s } from "../button/index.es.js";
|
|
3
|
+
import { _ as i } from "../icon/index.es.js";
|
|
4
4
|
const u = /* @__PURE__ */ c({
|
|
5
5
|
__name: "ButtonCopy",
|
|
6
6
|
props: {
|
|
7
7
|
text: {}
|
|
8
8
|
},
|
|
9
9
|
setup(t) {
|
|
10
|
-
const
|
|
11
|
-
navigator.clipboard.writeText(
|
|
10
|
+
const o = t, e = () => {
|
|
11
|
+
navigator.clipboard.writeText(o.text);
|
|
12
12
|
};
|
|
13
13
|
return (m, _) => (n(), a(s, {
|
|
14
|
-
onClick:
|
|
14
|
+
onClick: e,
|
|
15
15
|
class: "p-0 m-0",
|
|
16
16
|
"data-wv-name": "buttoncopy",
|
|
17
17
|
text: ""
|
|
@@ -27,5 +27,5 @@ const u = /* @__PURE__ */ c({
|
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
export {
|
|
30
|
-
u as
|
|
30
|
+
u as _
|
|
31
31
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as L, inject as x, computed as N, ref as S, createElementBlock as v, openBlock as y, mergeProps as B, unref as C, createVNode as W, createCommentVNode as $, toDisplayString as G } from "vue";
|
|
2
|
-
import { e as r } from "../
|
|
3
|
-
import { u as H } from "../
|
|
2
|
+
import { e as r } from "../event-bus/index.es.js";
|
|
3
|
+
import { u as H } from "../plugins/WangsVue.es.js";
|
|
4
4
|
import { u as O } from "../utils/baseToast.util.es.js";
|
|
5
|
-
import { n as R, e as
|
|
5
|
+
import { n as R, e as _ } from "../utils/exportToExcel.util.es.js";
|
|
6
6
|
import { m as Z } from "../utils/mergePropsWithDefaults.util.es.js";
|
|
7
|
-
import { u as q } from "../assetinfo/
|
|
8
|
-
import I from "../icon/index.es.js";
|
|
7
|
+
import { u as q } from "../assetinfo/index.es.js";
|
|
8
|
+
import { _ as I } from "../icon/index.es.js";
|
|
9
9
|
const J = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "inherit text-xs"
|
|
@@ -20,8 +20,8 @@ const J = {
|
|
|
20
20
|
dataConfigs: {},
|
|
21
21
|
excelToastErrorMessage: {}
|
|
22
22
|
},
|
|
23
|
-
setup(
|
|
24
|
-
const l =
|
|
23
|
+
setup(D) {
|
|
24
|
+
const l = D, { setLoading: d } = q(), E = x("useToastConfig"), u = O(E), { defaultProps: P, locale: m } = H("ButtonDownload"), f = N(() => Z(l, P)), p = x("preset", {}).buttondownload, i = S({}), b = N(() => Object.entries(i.value).map(([e]) => e)), k = async (e) => {
|
|
25
25
|
const a = await e();
|
|
26
26
|
if (a instanceof Error) throw a;
|
|
27
27
|
return (a == null ? void 0 : a.data) ?? { data: [], totalRecords: 0 };
|
|
@@ -29,8 +29,8 @@ const J = {
|
|
|
29
29
|
const { fileName: e, tableName: a, multiTableNames: t, dataConfigs: o } = f.value;
|
|
30
30
|
if (o != null && o.length && A(o), t != null && t.length)
|
|
31
31
|
r.on("button-download:multi-tables", T), t.forEach((n) => {
|
|
32
|
-
const
|
|
33
|
-
r.emit("data-table:download",
|
|
32
|
+
const c = { fileName: e, tableName: n, multiTableNames: t };
|
|
33
|
+
r.emit("data-table:download", c);
|
|
34
34
|
});
|
|
35
35
|
else {
|
|
36
36
|
const n = {
|
|
@@ -45,10 +45,10 @@ const J = {
|
|
|
45
45
|
try {
|
|
46
46
|
const o = await Promise.all(
|
|
47
47
|
e.map(async (n) => {
|
|
48
|
-
const { columns:
|
|
48
|
+
const { columns: c, data: V, fetchFunction: h, tableTitle: j } = n, w = c.filter((s) => s.visible !== !1).filter((s) => !s.excluded), z = w.map(
|
|
49
49
|
(s) => s.header ?? s.exportHeader ?? "-"
|
|
50
50
|
);
|
|
51
|
-
|
|
51
|
+
d(!0, m.downloadingMessage);
|
|
52
52
|
const { data: F } = h ? await k(h) : { data: V };
|
|
53
53
|
return {
|
|
54
54
|
data: R(
|
|
@@ -61,7 +61,7 @@ const J = {
|
|
|
61
61
|
};
|
|
62
62
|
})
|
|
63
63
|
);
|
|
64
|
-
await
|
|
64
|
+
await _({
|
|
65
65
|
tables: o,
|
|
66
66
|
additionalTexts: l.additionalTextBelowTable,
|
|
67
67
|
fileName: g()
|
|
@@ -76,7 +76,7 @@ const J = {
|
|
|
76
76
|
group: "download"
|
|
77
77
|
});
|
|
78
78
|
} finally {
|
|
79
|
-
|
|
79
|
+
d(!1);
|
|
80
80
|
}
|
|
81
81
|
}, T = async ({
|
|
82
82
|
table: e
|
|
@@ -89,7 +89,7 @@ const J = {
|
|
|
89
89
|
const o = [];
|
|
90
90
|
l.multiTableNames.forEach((n) => {
|
|
91
91
|
o.push(i.value[n]);
|
|
92
|
-
}), await
|
|
92
|
+
}), await _({
|
|
93
93
|
tables: o,
|
|
94
94
|
additionalTexts: l.additionalTextBelowTable,
|
|
95
95
|
fileName: g()
|
|
@@ -109,5 +109,5 @@ const J = {
|
|
|
109
109
|
}
|
|
110
110
|
});
|
|
111
111
|
export {
|
|
112
|
-
ne as
|
|
112
|
+
ne as _
|
|
113
113
|
};
|
package/buttonfilter/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as u, inject as f, shallowRef as p, createElementBlock as v, openBlock as
|
|
2
|
-
import { e as h } from "../
|
|
3
|
-
import w from "../icon/index.es.js";
|
|
1
|
+
import { defineComponent as u, inject as f, shallowRef as p, createElementBlock as v, openBlock as _, mergeProps as n, unref as a, createVNode as b } from "vue";
|
|
2
|
+
import { e as h } from "../event-bus/index.es.js";
|
|
3
|
+
import { _ as w } from "../icon/index.es.js";
|
|
4
4
|
const g = /* @__PURE__ */ u({
|
|
5
5
|
__name: "ButtonFilter",
|
|
6
6
|
props: {
|
|
@@ -16,8 +16,8 @@ const g = /* @__PURE__ */ u({
|
|
|
16
16
|
};
|
|
17
17
|
return (F, d) => {
|
|
18
18
|
var o, l;
|
|
19
|
-
return
|
|
20
|
-
|
|
19
|
+
return _(), v("button", n({ onClick: m }, (o = a(t)) == null ? void 0 : o.root({ context: { active: e.value } }), { type: "button" }), [
|
|
20
|
+
b(w, n((l = a(t)) == null ? void 0 : l.icon({ context: { active: e.value } }), {
|
|
21
21
|
icon: e.value ? "filter-fill" : "filter",
|
|
22
22
|
info: "Filter",
|
|
23
23
|
"tooltip-pos": "bottom"
|
|
@@ -27,5 +27,5 @@ const g = /* @__PURE__ */ u({
|
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
export {
|
|
30
|
-
g as
|
|
30
|
+
g as _
|
|
31
31
|
};
|
package/buttonradio/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h as k, defineComponent as C, inject as V, computed as S, createBlock as f, openBlock as d, unref as l, mergeProps as p, withCtx as P, createElementVNode as i, renderSlot as w, createCommentVNode as m, normalizeProps as c, guardReactiveProps as b, normalizeStyle as E, normalizeClass as z, createElementBlock as j, toDisplayString as q } from "vue";
|
|
2
|
-
import A from "../icon/index.es.js";
|
|
2
|
+
import { _ as A } from "../icon/index.es.js";
|
|
3
3
|
import { i as I } from "../vendor/lodash-es/isEqual.es.js";
|
|
4
4
|
const L = (r, s) => {
|
|
5
5
|
const { attrs: t, slots: a } = s || {};
|
|
@@ -89,5 +89,5 @@ const L = (r, s) => {
|
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
91
|
export {
|
|
92
|
-
F as
|
|
92
|
+
F as _
|
|
93
93
|
};
|