@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,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as x, ref as N, shallowRef as S, onMounted as G, onBeforeUnmount as I, watch as Q, withDirectives as z, createElementBlock as k, openBlock as h, mergeProps as b, withModifiers as X, unref as w, createElementVNode as Y, Fragment as B, renderList as Z, createBlock as _, renderSlot as ee, createVNode as M, vShow as te, withCtx as ae } from "vue";
|
|
2
|
-
import oe from "../buttonselecttree/index.es.js";
|
|
2
|
+
import { _ as oe } from "../buttonselecttree/index.es.js";
|
|
3
3
|
import { a as re } from "../vendor/vee-validate/dist/vee-validate.esm.es.js";
|
|
4
|
-
import { e as p } from "../
|
|
5
|
-
import { u as
|
|
4
|
+
import { e as p } from "../event-bus/index.es.js";
|
|
5
|
+
import { u as se } from "../plugins/WangsVue.es.js";
|
|
6
6
|
import { g as L, s as ne } from "../utils/object.util.es.js";
|
|
7
|
-
import { _ as R } from "../button/
|
|
8
|
-
import
|
|
9
|
-
import ie from "../dropdown/index.es.js";
|
|
10
|
-
import ce from "../inputrangenumber/index.es.js";
|
|
11
|
-
import ue from "../multiselect/index.es.js";
|
|
7
|
+
import { _ as R } from "../button/index.es.js";
|
|
8
|
+
import { _ as le } from "../calendar/index.es.js";
|
|
9
|
+
import { _ as ie } from "../dropdown/index.es.js";
|
|
10
|
+
import { _ as ce } from "../inputrangenumber/index.es.js";
|
|
11
|
+
import { _ as ue } from "../multiselect/index.es.js";
|
|
12
12
|
const J = (n) => {
|
|
13
13
|
if (Array.isArray(n)) {
|
|
14
14
|
const [u, o] = n;
|
|
@@ -18,8 +18,8 @@ const J = (n) => {
|
|
|
18
18
|
];
|
|
19
19
|
}
|
|
20
20
|
}, me = (n, u, o) => {
|
|
21
|
-
const
|
|
22
|
-
p.emit("multi-select:hide-overlay"),
|
|
21
|
+
const l = Object.keys(n), s = {};
|
|
22
|
+
p.emit("multi-select:hide-overlay"), l.forEach((r) => {
|
|
23
23
|
var f;
|
|
24
24
|
const i = Array.isArray(n[r]), F = typeof n[r] == "string", c = i ? (f = n[r]) == null ? void 0 : f.filter((v) => v != null) : n[r];
|
|
25
25
|
if ((c != null && !i || i && c.length) && !F) {
|
|
@@ -28,36 +28,36 @@ const J = (n) => {
|
|
|
28
28
|
!isNaN(new Date(d).getTime())
|
|
29
29
|
// Converts to a valid date
|
|
30
30
|
)) {
|
|
31
|
-
|
|
31
|
+
s[r] = JSON.stringify(
|
|
32
32
|
// Adjust the end range time to 23.59.59 and the start to 00.00.00 to fix filtering issue when user only select a date
|
|
33
33
|
J(c)
|
|
34
34
|
);
|
|
35
35
|
return;
|
|
36
36
|
}
|
|
37
|
-
|
|
37
|
+
s[r] = c != null && c.length ? JSON.stringify(n[r]) : JSON.stringify(c);
|
|
38
38
|
} else
|
|
39
|
-
|
|
39
|
+
s[r] = n[r];
|
|
40
40
|
}), p.emit("data-table:apply-filter", {
|
|
41
41
|
tableName: u,
|
|
42
|
-
filter:
|
|
42
|
+
filter: s
|
|
43
43
|
}), p.emit("data-table:clear-selected-data", {
|
|
44
44
|
tableName: u
|
|
45
|
-
}), o == null || o("apply",
|
|
46
|
-
}, pe = (n, u, o,
|
|
47
|
-
const
|
|
45
|
+
}), o == null || o("apply", s);
|
|
46
|
+
}, pe = (n, u, o, l) => {
|
|
47
|
+
const s = {};
|
|
48
48
|
p.emit("multi-select:hide-overlay"), o.forEach((r) => {
|
|
49
49
|
if ("field" in r) {
|
|
50
50
|
const i = L(n, r.field);
|
|
51
|
-
"value" in i && i.value != null && (
|
|
51
|
+
"value" in i && i.value != null && (s[r.field] = i, "matchMode" in i && i.matchMode == "DATE_BETWEEN" && (s[r.field].value = J(
|
|
52
52
|
i.value
|
|
53
|
-
)), Array.isArray(i.value) && !i.value.filter(Boolean).length && delete
|
|
53
|
+
)), Array.isArray(i.value) && !i.value.filter(Boolean).length && delete s[r.field]);
|
|
54
54
|
}
|
|
55
55
|
}), p.emit("data-table:apply-filter", {
|
|
56
56
|
tableName: u,
|
|
57
|
-
filter:
|
|
57
|
+
filter: s
|
|
58
58
|
}), p.emit("data-table:clear-selected-data", {
|
|
59
59
|
tableName: u
|
|
60
|
-
}),
|
|
60
|
+
}), l == null || l("apply", s);
|
|
61
61
|
}, fe = {
|
|
62
62
|
class: "flex items-end justify-end gap-2",
|
|
63
63
|
"data-wv-section": "filteractionbuttons"
|
|
@@ -72,7 +72,7 @@ const J = (n) => {
|
|
|
72
72
|
},
|
|
73
73
|
emits: ["apply"],
|
|
74
74
|
setup(n, { emit: u }) {
|
|
75
|
-
const o = n,
|
|
75
|
+
const o = n, l = u, { locale: s } = se("FilterContainer"), { resetForm: r, handleSubmit: i, setValues: F } = re(), c = N({}), f = N({}), v = S(), d = N(null), T = S(!1), O = S(0);
|
|
76
76
|
G(() => {
|
|
77
77
|
V(), p.on("show-filter", C), p.on("data-table:updated", D), U();
|
|
78
78
|
}), I(() => {
|
|
@@ -123,7 +123,7 @@ const J = (n) => {
|
|
|
123
123
|
}, j = () => {
|
|
124
124
|
r(), O.value++;
|
|
125
125
|
}, E = i((t) => {
|
|
126
|
-
o.static ? pe(t, o.tableName, A,
|
|
126
|
+
o.static ? pe(t, o.tableName, A, l) : me(t, o.tableName, l);
|
|
127
127
|
}), H = (t, a) => {
|
|
128
128
|
var e;
|
|
129
129
|
switch (t.type) {
|
|
@@ -230,7 +230,7 @@ const J = (n) => {
|
|
|
230
230
|
"option-label": "label",
|
|
231
231
|
"option-value": "value",
|
|
232
232
|
"use-validator": ""
|
|
233
|
-
}), null, 16, ["field-name", "loading", "options", "onShow"])) : e.type === "calendar" ? (h(), _(
|
|
233
|
+
}), null, 16, ["field-name", "loading", "options", "onShow"])) : e.type === "calendar" ? (h(), _(le, b({
|
|
234
234
|
key: 3,
|
|
235
235
|
ref_for: !0
|
|
236
236
|
}, e, {
|
|
@@ -247,13 +247,13 @@ const J = (n) => {
|
|
|
247
247
|
], 64))), 128)),
|
|
248
248
|
Y("div", fe, [
|
|
249
249
|
M(R, {
|
|
250
|
-
label: w(
|
|
250
|
+
label: w(s).clearFieldText,
|
|
251
251
|
onClick: j,
|
|
252
252
|
"data-wv-section": "clearbutton",
|
|
253
253
|
text: ""
|
|
254
254
|
}, null, 8, ["label"]),
|
|
255
255
|
M(R, {
|
|
256
|
-
label: w(
|
|
256
|
+
label: w(s).applyText,
|
|
257
257
|
onClick: w(E),
|
|
258
258
|
"data-wv-section": "applybutton",
|
|
259
259
|
severity: "success"
|
|
@@ -269,14 +269,14 @@ const J = (n) => {
|
|
|
269
269
|
return (u, o) => (h(), _(de, b({
|
|
270
270
|
fields: u.$attrs.fields
|
|
271
271
|
}, u.$attrs), {
|
|
272
|
-
field: ae(({ field:
|
|
273
|
-
M(oe, b(
|
|
274
|
-
"field-data-key":
|
|
275
|
-
"field-label":
|
|
276
|
-
"field-name":
|
|
277
|
-
label:
|
|
272
|
+
field: ae(({ field: l, fieldName: s }) => [
|
|
273
|
+
M(oe, b(l, {
|
|
274
|
+
"field-data-key": l.fieldDataKey ?? "key",
|
|
275
|
+
"field-label": l.label,
|
|
276
|
+
"field-name": s,
|
|
277
|
+
label: l.buttonLabel,
|
|
278
278
|
mandatory: !1,
|
|
279
|
-
params:
|
|
279
|
+
params: l.params,
|
|
280
280
|
"show-optional-text": !1,
|
|
281
281
|
"use-validator": ""
|
|
282
282
|
}), null, 16, ["field-data-key", "field-label", "field-name", "label", "params"])
|
|
@@ -286,5 +286,5 @@ const J = (n) => {
|
|
|
286
286
|
}
|
|
287
287
|
});
|
|
288
288
|
export {
|
|
289
|
-
Ne as
|
|
289
|
+
Ne as _
|
|
290
290
|
};
|
package/form/index.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as ne, onMounted as ue, ref as S, inject as fe, shallowRef as n, provide as de, watch as me, createElementBlock as $, openBlock as u, mergeProps as o, unref as
|
|
1
|
+
import { defineComponent as ne, onMounted as ue, ref as S, inject as fe, shallowRef as n, provide as de, watch as me, createElementBlock as $, openBlock as u, mergeProps as o, unref as a, withModifiers as ve, createElementVNode as B, createCommentVNode as m, renderSlot as ce, normalizeProps as Y, createVNode as Z, withDirectives as be, vShow as pe, guardReactiveProps as ye, createBlock as h } from "vue";
|
|
2
2
|
import { a as ke } from "../vendor/vee-validate/dist/vee-validate.esm.es.js";
|
|
3
|
-
import { _ as C } from "../button/
|
|
4
|
-
import Se from "../checkbox/index.es.js";
|
|
5
|
-
import Be from "../validatormessage/index.es.js";
|
|
3
|
+
import { _ as C } from "../button/index.es.js";
|
|
4
|
+
import { _ as Se } from "../checkbox/index.es.js";
|
|
5
|
+
import { _ as Be } from "../validatormessage/index.es.js";
|
|
6
6
|
const we = /* @__PURE__ */ ne({
|
|
7
7
|
__name: "Form",
|
|
8
8
|
props: {
|
|
@@ -33,12 +33,12 @@ const we = /* @__PURE__ */ ne({
|
|
|
33
33
|
w.value.style.gridTemplateColumns = `repeat(${e}, minmax(0, 1fr))`, E();
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
|
-
const
|
|
36
|
+
const l = fe("preset", {}).form, {
|
|
37
37
|
handleSubmit: te,
|
|
38
38
|
values: p,
|
|
39
39
|
resetForm: P,
|
|
40
|
-
errors:
|
|
41
|
-
resetField:
|
|
40
|
+
errors: ae,
|
|
41
|
+
resetField: le,
|
|
42
42
|
setValues: se,
|
|
43
43
|
setFieldValue: oe,
|
|
44
44
|
setErrors: re
|
|
@@ -96,8 +96,8 @@ const we = /* @__PURE__ */ ne({
|
|
|
96
96
|
showValidator: r,
|
|
97
97
|
formElement: T,
|
|
98
98
|
clearField: O,
|
|
99
|
-
resetField:
|
|
100
|
-
errors:
|
|
99
|
+
resetField: le,
|
|
100
|
+
errors: ae,
|
|
101
101
|
setOuterFieldsWrapperHeight: E,
|
|
102
102
|
setValues: se,
|
|
103
103
|
setFieldValue: oe,
|
|
@@ -109,11 +109,11 @@ const we = /* @__PURE__ */ ne({
|
|
|
109
109
|
return u(), $("form", o({
|
|
110
110
|
ref_key: "formElement",
|
|
111
111
|
ref: T
|
|
112
|
-
}, (i = l
|
|
112
|
+
}, (i = a(l)) == null ? void 0 : i.root({ props: s }), {
|
|
113
113
|
onInput: t[2] || (t[2] = (c) => r.value = !1),
|
|
114
114
|
onSubmit: t[3] || (t[3] = ve(
|
|
115
115
|
//@ts-ignore
|
|
116
|
-
(...c) =>
|
|
116
|
+
(...c) => a(k) && a(k)(...c),
|
|
117
117
|
["prevent"]
|
|
118
118
|
))
|
|
119
119
|
}), [
|
|
@@ -124,10 +124,10 @@ const we = /* @__PURE__ */ ne({
|
|
|
124
124
|
B("div", o({
|
|
125
125
|
ref_key: "fieldsWrapper",
|
|
126
126
|
ref: w
|
|
127
|
-
}, (d = l
|
|
127
|
+
}, (d = a(l)) == null ? void 0 : d["fields-wrapper"]), [
|
|
128
128
|
ce(e.$slots, "fields", {
|
|
129
129
|
key: V.value,
|
|
130
|
-
formValues:
|
|
130
|
+
formValues: a(p)
|
|
131
131
|
})
|
|
132
132
|
], 16)
|
|
133
133
|
], 512),
|
|
@@ -135,20 +135,20 @@ const we = /* @__PURE__ */ ne({
|
|
|
135
135
|
key: 0,
|
|
136
136
|
ref_key: "footer",
|
|
137
137
|
ref: g
|
|
138
|
-
}, (H = l
|
|
139
|
-
e.hideStayCheckbox ? m("", !0) : (u(), $("div", Y(o({ key: 0 }, (N = l
|
|
138
|
+
}, (H = a(l)) == null ? void 0 : H.footer), [
|
|
139
|
+
e.hideStayCheckbox ? m("", !0) : (u(), $("div", Y(o({ key: 0 }, (N = a(l)) == null ? void 0 : N.staycheckbox)), [
|
|
140
140
|
Z(Se, {
|
|
141
141
|
modelValue: v.value,
|
|
142
142
|
"onUpdate:modelValue": t[0] || (t[0] = (c) => v.value = c),
|
|
143
143
|
label: e.stayCheckboxLabel
|
|
144
144
|
}, null, 8, ["modelValue", "label"])
|
|
145
145
|
], 16)),
|
|
146
|
-
B("div", o({ id: "footer-actions-wrapper" }, (j = l
|
|
147
|
-
be(Z(Be, o((q = l
|
|
146
|
+
B("div", o({ id: "footer-actions-wrapper" }, (j = a(l)) == null ? void 0 : j["action-buttons"]), [
|
|
147
|
+
be(Z(Be, o((q = a(l)) == null ? void 0 : q["validator-message"], { message: e.validatorMessage }), null, 16, ["message"]), [
|
|
148
148
|
[pe, r.value || s.invalid]
|
|
149
149
|
]),
|
|
150
|
-
B("div", Y(ye((z = l
|
|
151
|
-
(D = s.buttonsTemplate) != null && D.includes("cancel") ? (u(), h(C, o({ key: 0 }, (I = l
|
|
150
|
+
B("div", Y(ye((z = a(l)) == null ? void 0 : z["button-wrapper"])), [
|
|
151
|
+
(D = s.buttonsTemplate) != null && D.includes("cancel") ? (u(), h(C, o({ key: 0 }, (I = a(l)) == null ? void 0 : I["cancel-button"], {
|
|
152
152
|
label: e.cancelBtnLabel,
|
|
153
153
|
severity: e.cancelBtnSeverity,
|
|
154
154
|
onClick: t[1] || (t[1] = (c) => e.$emit("cancel")),
|
|
@@ -156,20 +156,20 @@ const we = /* @__PURE__ */ ne({
|
|
|
156
156
|
text: "",
|
|
157
157
|
type: "button"
|
|
158
158
|
}), null, 16, ["label", "severity"])) : m("", !0),
|
|
159
|
-
(K = s.buttonsTemplate) != null && K.includes("clear") ? (u(), h(C, o({ key: 1 }, (U = l
|
|
159
|
+
(K = s.buttonsTemplate) != null && K.includes("clear") ? (u(), h(C, o({ key: 1 }, (U = a(l)) == null ? void 0 : U["clear-button"], {
|
|
160
160
|
label: e.clearBtnLabel,
|
|
161
161
|
onClick: O,
|
|
162
162
|
text: "",
|
|
163
163
|
type: "button"
|
|
164
164
|
}), null, 16, ["label"])) : m("", !0),
|
|
165
|
-
(G = s.buttonsTemplate) != null && G.includes("save") ? (u(), h(C, o({ key: 2 }, (J = l
|
|
165
|
+
(G = s.buttonsTemplate) != null && G.includes("save") ? (u(), h(C, o({ key: 2 }, (J = a(l)) == null ? void 0 : J["save-button"], {
|
|
166
166
|
label: e.saveBtnLabel,
|
|
167
167
|
severity: e.saveBtnSeverity,
|
|
168
168
|
onClick: M,
|
|
169
169
|
outlined: "",
|
|
170
170
|
type: "button"
|
|
171
171
|
}), null, 16, ["label", "severity"])) : m("", !0),
|
|
172
|
-
(Q = s.buttonsTemplate) != null && Q.includes("submit") ? (u(), h(C, o({ key: 3 }, (X = l
|
|
172
|
+
(Q = s.buttonsTemplate) != null && Q.includes("submit") ? (u(), h(C, o({ key: 3 }, (X = a(l)) == null ? void 0 : X["submit-button"], {
|
|
173
173
|
disabled: e.disableSubmit,
|
|
174
174
|
label: e.submitBtnLabel,
|
|
175
175
|
severity: e.submitBtnSeverity,
|
|
@@ -184,5 +184,5 @@ const we = /* @__PURE__ */ ne({
|
|
|
184
184
|
}
|
|
185
185
|
});
|
|
186
186
|
export {
|
|
187
|
-
we as
|
|
187
|
+
we as _
|
|
188
188
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as G, onMounted as K, shallowRef as u, computed as d, ref as X, watch as ee, createBlock as g, openBlock as m, createSlots as ae, withCtx as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as oe, W as re, g as ie } from "../buttonscan/
|
|
4
|
-
import { _
|
|
5
|
-
import ce from "../dialog/index.es.js";
|
|
6
|
-
import $ from "../dropdown/index.es.js";
|
|
7
|
-
import ue from "../icon/index.es.js";
|
|
8
|
-
import ve from "../inlinemessage/index.es.js";
|
|
1
|
+
import { defineComponent as G, onMounted as K, shallowRef as u, computed as d, ref as X, watch as ee, createBlock as g, openBlock as m, createSlots as ae, withCtx as E, createCommentVNode as b, createVNode as R, createElementVNode as V, normalizeClass as M, createElementBlock as ne, Fragment as te, toDisplayString as se } from "vue";
|
|
2
|
+
import { u as le } from "../utils/baseToast.util.es.js";
|
|
3
|
+
import { u as oe, W as re, g as ie } from "../buttonscan/index.es.js";
|
|
4
|
+
import { _ } from "../button/index.es.js";
|
|
5
|
+
import { _ as ce } from "../dialog/index.es.js";
|
|
6
|
+
import { _ as $ } from "../dropdown/index.es.js";
|
|
7
|
+
import { _ as ue } from "../icon/index.es.js";
|
|
8
|
+
import { _ as ve } from "../inlinemessage/index.es.js";
|
|
9
9
|
const De = /* @__PURE__ */ G({
|
|
10
10
|
__name: "HardwareSync",
|
|
11
11
|
props: {
|
|
@@ -17,12 +17,12 @@ const De = /* @__PURE__ */ G({
|
|
|
17
17
|
},
|
|
18
18
|
emits: ["update:visible", "scan"],
|
|
19
19
|
setup(W, { emit: x }) {
|
|
20
|
-
const o = W, k = x, P =
|
|
20
|
+
const o = W, k = x, P = le();
|
|
21
21
|
K(() => {
|
|
22
22
|
O();
|
|
23
23
|
});
|
|
24
24
|
const {
|
|
25
|
-
device:
|
|
25
|
+
device: C,
|
|
26
26
|
devices: I,
|
|
27
27
|
saveDevices: U,
|
|
28
28
|
setDevice: Q,
|
|
@@ -30,33 +30,33 @@ const De = /* @__PURE__ */ G({
|
|
|
30
30
|
} = oe(), i = {
|
|
31
31
|
label: "None",
|
|
32
32
|
device: void 0
|
|
33
|
-
}, v = u(!1),
|
|
33
|
+
}, v = u(!1), l = u(i), r = u(i), T = (n) => {
|
|
34
34
|
var e, a;
|
|
35
35
|
if ((e = I.value) != null && e.length) {
|
|
36
|
-
const
|
|
36
|
+
const s = (a = I.value) == null ? void 0 : a.filter((t) => t[n]).map((t) => ({
|
|
37
37
|
label: `${t.name ?? t.jenisDevice + " - " + t.serialNumber}`,
|
|
38
38
|
device: t
|
|
39
39
|
}));
|
|
40
|
-
return
|
|
40
|
+
return s.length ? s : [];
|
|
41
41
|
}
|
|
42
|
-
return
|
|
43
|
-
}, p = d(() => T("rfidScan")), f = d(() => T("qrScan")),
|
|
42
|
+
return l.value = i, r.value = i, [];
|
|
43
|
+
}, p = d(() => T("rfidScan")), f = d(() => T("qrScan")), w = d(
|
|
44
44
|
() => o.errorCode === "NOT_SUPPORTED_SYSTEM"
|
|
45
|
-
), H = d(() => o.searchBy === "RFID" &&
|
|
45
|
+
), H = d(() => o.searchBy === "RFID" && l.value.device), Y = d(() => o.searchBy === "QR" && r.value.device), D = d(() => !!o.searchBy && o.errorCode !== "HARDWARE_NOT_SYNCHRONIZED"), B = async (n) => {
|
|
46
46
|
try {
|
|
47
47
|
U(n);
|
|
48
48
|
const e = p.value.some(
|
|
49
|
-
(
|
|
49
|
+
(s) => {
|
|
50
50
|
var t, y, S;
|
|
51
|
-
return ((t =
|
|
51
|
+
return ((t = s == null ? void 0 : s.device) == null ? void 0 : t.serialNumber) === ((S = (y = l.value) == null ? void 0 : y.device) == null ? void 0 : S.serialNumber);
|
|
52
52
|
}
|
|
53
53
|
), a = f.value.some(
|
|
54
|
-
(
|
|
54
|
+
(s) => {
|
|
55
55
|
var t, y, S;
|
|
56
|
-
return ((t =
|
|
56
|
+
return ((t = s == null ? void 0 : s.device) == null ? void 0 : t.serialNumber) === ((S = (y = r.value) == null ? void 0 : y.device) == null ? void 0 : S.serialNumber);
|
|
57
57
|
}
|
|
58
58
|
);
|
|
59
|
-
|
|
59
|
+
l.value = e ? l.value : p.value[0] ?? i, r.value = a ? r.value : f.value[0] ?? i, N();
|
|
60
60
|
} catch (e) {
|
|
61
61
|
c.value = h(ie(e));
|
|
62
62
|
} finally {
|
|
@@ -94,14 +94,14 @@ const De = /* @__PURE__ */ G({
|
|
|
94
94
|
}
|
|
95
95
|
}, N = () => {
|
|
96
96
|
Q({
|
|
97
|
-
RFID:
|
|
97
|
+
RFID: l.value.device,
|
|
98
98
|
QR: r.value.device
|
|
99
99
|
});
|
|
100
100
|
}, O = () => {
|
|
101
|
-
z(),
|
|
102
|
-
label:
|
|
103
|
-
device:
|
|
104
|
-
} : p.value.length && (
|
|
101
|
+
z(), C.value.RFID ? l.value = {
|
|
102
|
+
label: C.value.RFID.name,
|
|
103
|
+
device: C.value.RFID
|
|
104
|
+
} : p.value.length && (l.value = p.value[0] ?? i), f.value.length && (r.value = f.value[0] ?? i), N();
|
|
105
105
|
}, F = () => {
|
|
106
106
|
k("update:visible", !1), k("scan");
|
|
107
107
|
}, Z = () => {
|
|
@@ -109,10 +109,10 @@ const De = /* @__PURE__ */ G({
|
|
|
109
109
|
v.value = !0, c.value = void 0, window.scannerWorker.onmessage = ({ data: e }) => {
|
|
110
110
|
var a;
|
|
111
111
|
if (e.status === "synced") {
|
|
112
|
-
const
|
|
113
|
-
B(
|
|
112
|
+
const s = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.deviceList) ?? [];
|
|
113
|
+
B(s);
|
|
114
114
|
const { error: t } = (e == null ? void 0 : e.data) ?? {};
|
|
115
|
-
t === "Driver not connected to server" ? (v.value = !1, c.value = h("DRIVER_NOT_FOUND")) :
|
|
115
|
+
t === "Driver not connected to server" ? (v.value = !1, c.value = h("DRIVER_NOT_FOUND")) : s.length || (v.value = !1, c.value = h("DEVICE_NOT_CONNECTED"));
|
|
116
116
|
} else e.status === "error_sync" && (v.value = !1, B([]), P.add({ message: "Failed to connecting scanner", severity: "error" }));
|
|
117
117
|
}, window.scannerWorker.postMessage({
|
|
118
118
|
command: "sync",
|
|
@@ -141,22 +141,22 @@ const De = /* @__PURE__ */ G({
|
|
|
141
141
|
header: "Hardware Synchronize",
|
|
142
142
|
modal: ""
|
|
143
143
|
}, ae({
|
|
144
|
-
footer:
|
|
145
|
-
D.value ? (m(), g(
|
|
144
|
+
footer: E(() => [
|
|
145
|
+
D.value ? (m(), g(_, {
|
|
146
146
|
key: 0,
|
|
147
147
|
onClick: e[2] || (e[2] = (a) => n.$emit("update:visible", !1)),
|
|
148
148
|
label: "Close",
|
|
149
149
|
severity: "secondary",
|
|
150
150
|
text: ""
|
|
151
151
|
})) : b("", !0),
|
|
152
|
-
|
|
153
|
-
H.value && !o.withoutScanBtn ? (m(), g(
|
|
152
|
+
w.value ? b("", !0) : (m(), ne(te, { key: 1 }, [
|
|
153
|
+
H.value && !o.withoutScanBtn ? (m(), g(_, {
|
|
154
154
|
key: 0,
|
|
155
155
|
onClick: F,
|
|
156
156
|
icon: "rfid",
|
|
157
157
|
label: "Scan RFID"
|
|
158
158
|
})) : b("", !0),
|
|
159
|
-
Y.value && !o.withoutScanBtn ? (m(), g(
|
|
159
|
+
Y.value && !o.withoutScanBtn ? (m(), g(_, {
|
|
160
160
|
key: 1,
|
|
161
161
|
onClick: F,
|
|
162
162
|
icon: "qr",
|
|
@@ -164,7 +164,7 @@ const De = /* @__PURE__ */ G({
|
|
|
164
164
|
})) : b("", !0)
|
|
165
165
|
], 64))
|
|
166
166
|
]),
|
|
167
|
-
default:
|
|
167
|
+
default: E(() => [
|
|
168
168
|
c.value ? (m(), g(ve, {
|
|
169
169
|
key: 0,
|
|
170
170
|
class: M(["p-[9.52px] transition"]),
|
|
@@ -175,8 +175,8 @@ const De = /* @__PURE__ */ G({
|
|
|
175
175
|
"message-wrapper-class": "text-[11px] leading-[14px] tracking-[0.02em]",
|
|
176
176
|
severity: "danger"
|
|
177
177
|
}, null, 8, ["message", "title"])) : b("", !0),
|
|
178
|
-
R(
|
|
179
|
-
disabled:
|
|
178
|
+
R(_, {
|
|
179
|
+
disabled: w.value,
|
|
180
180
|
loading: v.value,
|
|
181
181
|
onClick: Z,
|
|
182
182
|
icon: "refresh",
|
|
@@ -187,14 +187,14 @@ const De = /* @__PURE__ */ G({
|
|
|
187
187
|
V("section", {
|
|
188
188
|
class: M([
|
|
189
189
|
"grid grid-cols-2 gap-3 justify-start w-full",
|
|
190
|
-
{ "opacity-60 pointer-events-none":
|
|
190
|
+
{ "opacity-60 pointer-events-none": w.value }
|
|
191
191
|
]),
|
|
192
192
|
"data-ts-section": "scanner-list"
|
|
193
193
|
}, [
|
|
194
194
|
R($, {
|
|
195
|
-
modelValue:
|
|
195
|
+
modelValue: l.value,
|
|
196
196
|
"onUpdate:modelValue": [
|
|
197
|
-
e[0] || (e[0] = (a) =>
|
|
197
|
+
e[0] || (e[0] = (a) => l.value = a),
|
|
198
198
|
N
|
|
199
199
|
],
|
|
200
200
|
options: p.value,
|
|
@@ -217,13 +217,13 @@ const De = /* @__PURE__ */ G({
|
|
|
217
217
|
}, [
|
|
218
218
|
D.value ? {
|
|
219
219
|
name: "header",
|
|
220
|
-
fn:
|
|
220
|
+
fn: E(() => {
|
|
221
221
|
var a;
|
|
222
222
|
return [
|
|
223
223
|
R(ue, {
|
|
224
224
|
icon: (a = n.searchBy) == null ? void 0 : a.toLowerCase()
|
|
225
225
|
}, null, 8, ["icon"]),
|
|
226
|
-
V("h3", null, "Scan " +
|
|
226
|
+
V("h3", null, "Scan " + se(n.searchBy), 1)
|
|
227
227
|
];
|
|
228
228
|
}),
|
|
229
229
|
key: "0"
|
package/icon/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as c, computed as d, resolveDirective as
|
|
1
|
+
import { defineComponent as c, computed as d, resolveDirective as v, createElementBlock as t, openBlock as o, Fragment as f, withDirectives as i, createCommentVNode as n, mergeProps as l } from "vue";
|
|
2
2
|
const $ = /* @__PURE__ */ c({
|
|
3
3
|
__name: "Icon",
|
|
4
4
|
props: {
|
|
@@ -31,8 +31,8 @@ const $ = /* @__PURE__ */ c({
|
|
|
31
31
|
"cursor-pointer !shrink-0"
|
|
32
32
|
]);
|
|
33
33
|
return (e, m) => {
|
|
34
|
-
const r =
|
|
35
|
-
return o(), t(
|
|
34
|
+
const r = v("tooltip");
|
|
35
|
+
return o(), t(f, null, [
|
|
36
36
|
e.tooltipPos === "top" ? i((o(), t("i", l({ key: 0 }, e.$attrs, {
|
|
37
37
|
class: [...s.value, e.$props.class]
|
|
38
38
|
}), null, 16)), [
|
|
@@ -78,5 +78,5 @@ const $ = /* @__PURE__ */ c({
|
|
|
78
78
|
}
|
|
79
79
|
});
|
|
80
80
|
export {
|
|
81
|
-
$ as
|
|
81
|
+
$ as _
|
|
82
82
|
};
|
package/image/index.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as j, computed as p, onMounted as G, onUnmounted as M, shallowRef as f, createBlock as W, openBlock as n, unref as q, mergeProps as I, withCtx as b, createElementBlock as m, normalizeStyle as k, Fragment as _, createElementVNode as U, renderList as T, withDirectives as A, vShow as H, withModifiers as D, createVNode as C, normalizeClass as z } from "vue";
|
|
2
|
-
import { u as J } from "../
|
|
2
|
+
import { u as J } from "../plugins/WangsVue.es.js";
|
|
3
3
|
import { m as K } from "../utils/mergePropsWithDefaults.util.es.js";
|
|
4
4
|
import { s as Q } from "../vendor/primevue/image/image.esm.es.js";
|
|
5
|
-
import { _ as O } from "../button/
|
|
6
|
-
import X from "../icon/index.es.js";
|
|
5
|
+
import { _ as O } from "../button/index.es.js";
|
|
6
|
+
import { _ as X } from "../icon/index.es.js";
|
|
7
7
|
const Y = ["src"], Z = ["src"], ee = ["src"], te = ["src", "onClick"], ne = /* @__PURE__ */ j({
|
|
8
8
|
__name: "Image",
|
|
9
9
|
props: {
|
|
@@ -58,7 +58,7 @@ const Y = ["src"], Z = ["src"], ee = ["src"], te = ["src", "onClick"], ne = /* @
|
|
|
58
58
|
var t, l, a, g;
|
|
59
59
|
const e = u.value;
|
|
60
60
|
if (typeof e == "string") {
|
|
61
|
-
const
|
|
61
|
+
const s = (l = (t = c.value).getImageURL) == null ? void 0 : l.call(t, "preview"), i = s && !(s != null && s.includes("undefined")) ? new URL(s).origin : "", R = i && e.includes(i);
|
|
62
62
|
return e.includes("http") && !R || // From public resource
|
|
63
63
|
e.includes("data:image/svg+xml") ? e : (g = (a = c.value).getImageURL) == null ? void 0 : g.call(a, r.src);
|
|
64
64
|
}
|
|
@@ -97,15 +97,15 @@ const Y = ["src"], Z = ["src"], ee = ["src"], te = ["src", "onClick"], ne = /* @
|
|
|
97
97
|
var g;
|
|
98
98
|
return [
|
|
99
99
|
(g = e.galleries) != null && g.length ? (n(), m(_, { key: 1 }, [
|
|
100
|
-
(n(!0), m(_, null, T(e.galleries, ({ src:
|
|
101
|
-
key:
|
|
100
|
+
(n(!0), m(_, null, T(e.galleries, ({ src: s }, i) => A((n(), m("img", {
|
|
101
|
+
key: i,
|
|
102
102
|
onerror: d,
|
|
103
|
-
src: S(
|
|
103
|
+
src: S(s),
|
|
104
104
|
style: k(a.style),
|
|
105
105
|
alt: "",
|
|
106
106
|
"data-wv-section": "image-gallery"
|
|
107
107
|
}, null, 12, ee)), [
|
|
108
|
-
[H,
|
|
108
|
+
[H, i === o.value]
|
|
109
109
|
])), 128)),
|
|
110
110
|
U("div", {
|
|
111
111
|
onClick: t[0] || (t[0] = D(() => {
|
|
@@ -126,16 +126,16 @@ const Y = ["src"], Z = ["src"], ee = ["src"], te = ["src", "onClick"], ne = /* @
|
|
|
126
126
|
severity: "secondary",
|
|
127
127
|
text: ""
|
|
128
128
|
}),
|
|
129
|
-
(n(!0), m(_, null, T(e.galleries, ({ src:
|
|
130
|
-
key:
|
|
129
|
+
(n(!0), m(_, null, T(e.galleries, ({ src: s }, i) => (n(), m("img", {
|
|
130
|
+
key: i,
|
|
131
131
|
class: z([
|
|
132
132
|
"h-10 w-10 object-cover cursor-pointer opacity-50 hover:opacity-100 transition-opacity",
|
|
133
|
-
{ "!opacity-100": o.value ==
|
|
133
|
+
{ "!opacity-100": o.value == i }
|
|
134
134
|
]),
|
|
135
135
|
onerror: d,
|
|
136
|
-
src: S(
|
|
136
|
+
src: S(s),
|
|
137
137
|
style: k(a.style),
|
|
138
|
-
onClick: D((R) => y(
|
|
138
|
+
onClick: D((R) => y(i), ["stop"]),
|
|
139
139
|
alt: "",
|
|
140
140
|
"data-wv-section": "thumbnail-image"
|
|
141
141
|
}, null, 14, te))), 128)),
|
|
@@ -167,5 +167,5 @@ const Y = ["src"], Z = ["src"], ee = ["src"], te = ["src", "onClick"], ne = /* @
|
|
|
167
167
|
}
|
|
168
168
|
});
|
|
169
169
|
export {
|
|
170
|
-
ne as
|
|
170
|
+
ne as _
|
|
171
171
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { defineComponent as ke, mergeModels as re, inject as Ce, onMounted as Be, onUnmounted as Pe, ref as w, shallowRef as S, useModel as Me, reactive as Ue, computed as oe, watch as N, createElementBlock as f, openBlock as n, Fragment as V, createVNode as m, normalizeClass as y, withCtx as O, createElementVNode as h, createCommentVNode as c, createBlock as I, renderList as Fe, unref as $ } from "vue";
|
|
2
|
-
import { g as Ae } from "../dialogprintqr/
|
|
2
|
+
import { g as Ae } from "../dialogprintqr/index.es.js";
|
|
3
3
|
import { r as Se } from "../vendor/base64toblob/base64toblob.es.js";
|
|
4
4
|
import { u as $e } from "../vendor/vee-validate/dist/vee-validate.esm.es.js";
|
|
5
5
|
import { f as Re } from "../vendor/vue-advanced-cropper/dist/index.esm-bundler.es.js";
|
|
6
|
-
import { u as ze } from "../
|
|
6
|
+
import { u as ze } from "../plugins/WangsVue.es.js";
|
|
7
7
|
import { g as De, a as Le } from "../utils/genPlaceholder.util.es.js";
|
|
8
|
-
import Ne from "../image/index.es.js";
|
|
9
|
-
import { _ as R } from "../button/
|
|
10
|
-
import Ve from "../buttonradio/index.es.js";
|
|
11
|
-
import Ee from "../dialog/index.es.js";
|
|
12
|
-
import Te from "../dialogconfirm/index.es.js";
|
|
13
|
-
import { _ as je } from "../fieldwrapper/
|
|
14
|
-
import q from "../icon/index.es.js";
|
|
15
|
-
import Oe from "../invisiblefield/index.es.js";
|
|
16
|
-
import qe from "../validatormessage/index.es.js";
|
|
17
|
-
import { B as xe } from "../backgroundimagecropper/
|
|
18
|
-
import { _ as se } from "../imageinputinfo/
|
|
8
|
+
import { _ as Ne } from "../image/index.es.js";
|
|
9
|
+
import { _ as R } from "../button/index.es.js";
|
|
10
|
+
import { _ as Ve } from "../buttonradio/index.es.js";
|
|
11
|
+
import { _ as Ee } from "../dialog/index.es.js";
|
|
12
|
+
import { _ as Te } from "../dialogconfirm/index.es.js";
|
|
13
|
+
import { _ as je } from "../fieldwrapper/index.es.js";
|
|
14
|
+
import { _ as q } from "../icon/index.es.js";
|
|
15
|
+
import { _ as Oe } from "../invisiblefield/index.es.js";
|
|
16
|
+
import { _ as qe } from "../validatormessage/index.es.js";
|
|
17
|
+
import { B as xe } from "../backgroundimagecropper/index.es.js";
|
|
18
|
+
import { _ as se } from "../imageinputinfo/index.es.js";
|
|
19
19
|
/* empty css */
|
|
20
20
|
var Ke = Se();
|
|
21
21
|
const He = /* @__PURE__ */ Ae(Ke), We = {
|
|
@@ -525,5 +525,5 @@ const He = /* @__PURE__ */ Ae(Ke), We = {
|
|
|
525
525
|
}
|
|
526
526
|
});
|
|
527
527
|
export {
|
|
528
|
-
va as
|
|
528
|
+
va as _
|
|
529
529
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as d, createElementBlock as t, openBlock as o, createCommentVNode as a, createBlock as c, renderSlot as f, normalizeClass as _, Fragment as m, renderList as g, toDisplayString as r, createElementVNode as u, unref as p } from "vue";
|
|
2
|
-
import { u as y } from "../
|
|
3
|
-
import { _ as k } from "../button/
|
|
2
|
+
import { u as y } from "../plugins/WangsVue.es.js";
|
|
3
|
+
import { _ as k } from "../button/index.es.js";
|
|
4
4
|
const h = { class: "flex flex-col gap-y-4" }, w = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: /* @__PURE__ */ _([
|