rtcpts 0.0.3 → 0.0.4
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/README.md +2 -0
- package/dist/components/j-c-more-menu/index.d.ts +1 -0
- package/dist/components/j-q-table/pagination.d.ts +20 -19
- package/dist/index.css +1 -1
- package/dist/rtcpt.cjs.js +1 -1
- package/dist/rtcpt.es.js +1081 -1080
- package/package.json +1 -1
package/dist/rtcpt.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as U, ref as h, computed as
|
|
2
|
-
import { QIcon as le, copyToClipboard as Zt, QBtn as re, QCardActions as Rt, QCardSection as ve, QCard as Se, QPopupProxy as Ae, ClosePopup as
|
|
1
|
+
import { defineComponent as U, ref as h, computed as C, resolveComponent as N, createBlock as Y, openBlock as m, createElementBlock as T, createCommentVNode as $, Fragment as ee, renderList as ne, normalizeClass as V, createElementVNode as y, renderSlot as O, createVNode as j, inject as Ve, toDisplayString as w, watch as G, withCtx as I, normalizeStyle as H, getCurrentInstance as Et, resolveDirective as tt, withDirectives as oe, vShow as ie, createTextVNode as W, Suspense as $t, resolveDynamicComponent as Mt, mergeProps as Te, toHandlers as Yt, createApp as Vt, nextTick as de, onMounted as he, onUnmounted as Qt, h as Pt, createSlots as we, withModifiers as _, reactive as De, Transition as qt, normalizeProps as ue, guardReactiveProps as ge, onBeforeUnmount as Ut, withKeys as Bt, isRef as gt } from "vue";
|
|
2
|
+
import { QIcon as le, copyToClipboard as Zt, QBtn as re, QCardActions as Rt, QCardSection as ve, QCard as Se, QPopupProxy as Ae, ClosePopup as Dt, QInnerLoading as At, QDialog as Nt, QInput as Pe, QTooltip as Le, QItemSection as Ct, QItem as jt, QList as Wt, QMenu as xt, QTree as Gt, QField as ke, QDate as zt, date as R, QSelect as nt, QOptionGroup as Ht, QSpinner as Ft, QPagination as Jt, QTd as Kt, QTh as Xt, QTable as _t, useDialogPluginComponent as mt, setCssVar as Ce } from "quasar";
|
|
3
3
|
import { _ as B } from "./charts-DFQ978tO.js";
|
|
4
4
|
import { i as Ls, a as ks, b as Os, c as Es, d as $s, e as Ys } from "./charts-DFQ978tO.js";
|
|
5
5
|
const en = U({
|
|
@@ -20,7 +20,7 @@ const en = U({
|
|
|
20
20
|
setup(e) {
|
|
21
21
|
const t = h(!1);
|
|
22
22
|
let n = null;
|
|
23
|
-
const l =
|
|
23
|
+
const l = C(() => t.value ? "check" : "app:rt-copy"), r = C(() => t.value ? "grey" : void 0);
|
|
24
24
|
return {
|
|
25
25
|
copied: t,
|
|
26
26
|
iconName: l,
|
|
@@ -31,16 +31,16 @@ const en = U({
|
|
|
31
31
|
await Zt(e.text), t.value = !0, n && clearTimeout(n), n = setTimeout(() => {
|
|
32
32
|
t.value = !1, n = null;
|
|
33
33
|
}, e.revertDelay);
|
|
34
|
-
} catch (
|
|
35
|
-
console.error("复制失败:",
|
|
34
|
+
} catch (s) {
|
|
35
|
+
console.error("复制失败:", s);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
41
|
function tn(e, t, n, l, r, a) {
|
|
42
|
-
const
|
|
43
|
-
return m(),
|
|
42
|
+
const s = N("q-icon");
|
|
43
|
+
return m(), Y(s, {
|
|
44
44
|
name: e.iconName,
|
|
45
45
|
size: "16px",
|
|
46
46
|
color: e.iconColor,
|
|
@@ -78,7 +78,7 @@ const nn = /* @__PURE__ */ B(en, [["render", tn]]), ln = U({
|
|
|
78
78
|
emits: ["update:modelValue"],
|
|
79
79
|
slots: Object,
|
|
80
80
|
setup(e, { emit: t }) {
|
|
81
|
-
const n =
|
|
81
|
+
const n = C({
|
|
82
82
|
get: () => e.modelValue,
|
|
83
83
|
set: (o) => {
|
|
84
84
|
t("update:modelValue", o);
|
|
@@ -86,19 +86,19 @@ const nn = /* @__PURE__ */ B(en, [["render", tn]]), ln = U({
|
|
|
86
86
|
});
|
|
87
87
|
return {
|
|
88
88
|
innerValue: n,
|
|
89
|
-
getKey: (o,
|
|
90
|
-
updateItem: (o,
|
|
89
|
+
getKey: (o, i) => o.id || o.key || i,
|
|
90
|
+
updateItem: (o, i) => {
|
|
91
91
|
const c = [...n.value];
|
|
92
|
-
typeof
|
|
92
|
+
typeof i == "object" && !Array.isArray(i) && typeof c[o] == "object" && !Array.isArray(c[o]) ? c[o] = { ...c[o], ...i } : c[o] = i, n.value = c;
|
|
93
93
|
},
|
|
94
94
|
addItem: (o) => {
|
|
95
|
-
const
|
|
96
|
-
|
|
95
|
+
const i = [...n.value];
|
|
96
|
+
i.splice(o, 0, JSON.parse(JSON.stringify(e.defaultNewItem))), n.value = i;
|
|
97
97
|
},
|
|
98
98
|
removeItem: (o) => {
|
|
99
99
|
if (n.value.length <= e.minItems) return;
|
|
100
|
-
const
|
|
101
|
-
|
|
100
|
+
const i = [...n.value];
|
|
101
|
+
i.splice(o, 1), n.value = i;
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
104
|
}
|
|
@@ -110,18 +110,18 @@ const nn = /* @__PURE__ */ B(en, [["render", tn]]), ln = U({
|
|
|
110
110
|
class: "list-footer-actions"
|
|
111
111
|
};
|
|
112
112
|
function rn(e, t, n, l, r, a) {
|
|
113
|
-
const
|
|
114
|
-
return m(),
|
|
115
|
-
(m(!0),
|
|
116
|
-
key: e.getKey(o,
|
|
117
|
-
class:
|
|
113
|
+
const s = N("q-btn");
|
|
114
|
+
return m(), T("div", null, [
|
|
115
|
+
(m(!0), T(ee, null, ne(e.innerValue, (o, i) => (m(), T("div", {
|
|
116
|
+
key: e.getKey(o, i),
|
|
117
|
+
class: V(["q-mb-md list-item-row relative-position", { "compact-item": e.actionMode === "compact" }])
|
|
118
118
|
}, [
|
|
119
119
|
y("div", on, [
|
|
120
|
-
|
|
120
|
+
O(e.$slots, "item-content", {
|
|
121
121
|
item: o,
|
|
122
|
-
index:
|
|
122
|
+
index: i,
|
|
123
123
|
updateItem: e.updateItem,
|
|
124
|
-
isLast:
|
|
124
|
+
isLast: i === e.innerValue.length - 1,
|
|
125
125
|
addItem: e.addItem,
|
|
126
126
|
removeItem: e.removeItem,
|
|
127
127
|
canAdd: e.innerValue.length < e.maxItems,
|
|
@@ -129,25 +129,25 @@ function rn(e, t, n, l, r, a) {
|
|
|
129
129
|
mode: e.actionMode
|
|
130
130
|
}, void 0, !0)
|
|
131
131
|
]),
|
|
132
|
-
e.actionMode === "compact" && e.innerValue.length > e.minItems && e.showRemoveButton ? (m(),
|
|
133
|
-
|
|
132
|
+
e.actionMode === "compact" && e.innerValue.length > e.minItems && e.showRemoveButton ? (m(), T("div", an, [
|
|
133
|
+
j(s, {
|
|
134
134
|
icon: "close",
|
|
135
135
|
flat: "",
|
|
136
136
|
round: "",
|
|
137
137
|
dense: "",
|
|
138
138
|
color: "grey",
|
|
139
139
|
size: "sm",
|
|
140
|
-
onClick: (c) => e.removeItem(
|
|
140
|
+
onClick: (c) => e.removeItem(i)
|
|
141
141
|
}, null, 8, ["onClick"])
|
|
142
|
-
])) :
|
|
142
|
+
])) : $("", !0)
|
|
143
143
|
], 2))), 128)),
|
|
144
|
-
e.actionMode === "compact" ? (m(),
|
|
145
|
-
|
|
144
|
+
e.actionMode === "compact" ? (m(), T("div", sn, [
|
|
145
|
+
O(e.$slots, "list-footer-actions", {
|
|
146
146
|
addItem: e.addItem,
|
|
147
147
|
canAdd: e.innerValue.length < e.maxItems && e.showAddButton,
|
|
148
148
|
nextIndex: e.innerValue.length
|
|
149
149
|
}, () => [
|
|
150
|
-
e.innerValue.length < e.maxItems && e.showAddButton ? (m(),
|
|
150
|
+
e.innerValue.length < e.maxItems && e.showAddButton ? (m(), Y(s, {
|
|
151
151
|
key: 0,
|
|
152
152
|
label: "添加新项",
|
|
153
153
|
icon: "add",
|
|
@@ -155,12 +155,12 @@ function rn(e, t, n, l, r, a) {
|
|
|
155
155
|
dense: "",
|
|
156
156
|
color: "primary",
|
|
157
157
|
onClick: t[0] || (t[0] = (o) => e.addItem(e.innerValue.length))
|
|
158
|
-
})) :
|
|
158
|
+
})) : $("", !0)
|
|
159
159
|
], !0)
|
|
160
|
-
])) :
|
|
160
|
+
])) : $("", !0)
|
|
161
161
|
]);
|
|
162
162
|
}
|
|
163
|
-
const os = /* @__PURE__ */ B(ln, [["render", rn], ["__scopeId", "data-v-22406c09"]]),
|
|
163
|
+
const os = /* @__PURE__ */ B(ln, [["render", rn], ["__scopeId", "data-v-22406c09"]]), lt = Symbol("pageActionPermissionId"), ot = Symbol("pagePermissionId"), un = U({
|
|
164
164
|
name: "JCPermission",
|
|
165
165
|
props: {
|
|
166
166
|
/**
|
|
@@ -202,31 +202,31 @@ const os = /* @__PURE__ */ B(ln, [["render", rn], ["__scopeId", "data-v-22406c09
|
|
|
202
202
|
},
|
|
203
203
|
slots: Object,
|
|
204
204
|
setup(e) {
|
|
205
|
-
const t =
|
|
205
|
+
const t = Ve(lt, h([])), n = Ve(ot, h([])), l = C(() => e.pagePermissionId && e.pagePermissionId.length > 0 ? e.pagePermissionId : n.value || []), r = C(() => e.pageActionPermissionId && e.pageActionPermissionId.length > 0 ? e.pageActionPermissionId : t.value || []), a = C(() => {
|
|
206
206
|
const o = e.code;
|
|
207
207
|
return o ? l.value.includes(o) || r.value.includes(o) : !0;
|
|
208
|
-
}),
|
|
208
|
+
}), s = C(() => !!(a.value || !e.rmDom));
|
|
209
209
|
return {
|
|
210
210
|
hasPermission: a,
|
|
211
|
-
canRender:
|
|
211
|
+
canRender: s
|
|
212
212
|
};
|
|
213
213
|
}
|
|
214
214
|
}), dn = { key: 0 };
|
|
215
215
|
function cn(e, t, n, l, r, a) {
|
|
216
|
-
return e.hasPermission ?
|
|
217
|
-
e.rmDom ?
|
|
216
|
+
return e.hasPermission ? O(e.$slots, "default", { key: 0 }) : (m(), T(ee, { key: 1 }, [
|
|
217
|
+
e.rmDom ? $("", !0) : (m(), T("span", dn, w(e.defaultContent), 1))
|
|
218
218
|
], 64));
|
|
219
219
|
}
|
|
220
220
|
const bt = /* @__PURE__ */ B(un, [["render", cn]]), Mn = async (e) => (await {
|
|
221
221
|
"zh-CN": () => import("./index-EGZV35Ev.js"),
|
|
222
222
|
"en-US": () => import("./index-CHKEi8Wc.js")
|
|
223
|
-
}[e]()).default,
|
|
223
|
+
}[e]()).default, xe = {}, gn = async (e) => (xe[e] || (xe[e] = await Mn(e)), xe[e]), mn = {
|
|
224
224
|
"zh-CN": () => import("./zh-CN-BoRskSmh.js"),
|
|
225
225
|
"en-US": () => import("./en-US-Di49EX5C.js")
|
|
226
|
-
},
|
|
227
|
-
let
|
|
226
|
+
}, at = h("zh-CN"), Je = h(null);
|
|
227
|
+
let Ke = null;
|
|
228
228
|
function pn(e) {
|
|
229
|
-
|
|
229
|
+
Ke = e;
|
|
230
230
|
}
|
|
231
231
|
function fn(e, t) {
|
|
232
232
|
const n = t.split(".");
|
|
@@ -242,33 +242,33 @@ function yn(e, t) {
|
|
|
242
242
|
return t ? e.replace(/\{(\w+)\}/g, (n, l) => t[l] !== void 0 ? String(t[l]) : n) : e;
|
|
243
243
|
}
|
|
244
244
|
function Tt(e, t) {
|
|
245
|
-
if (!
|
|
245
|
+
if (!Je.value)
|
|
246
246
|
return console.warn("[rtcpt] i18n messages not loaded yet, please call setLocale first"), e;
|
|
247
|
-
const n = fn(
|
|
247
|
+
const n = fn(Je.value, e);
|
|
248
248
|
return yn(n, t);
|
|
249
249
|
}
|
|
250
|
-
async function
|
|
251
|
-
|
|
250
|
+
async function Xe(e) {
|
|
251
|
+
at.value = e;
|
|
252
252
|
try {
|
|
253
|
-
|
|
253
|
+
Je.value = await gn(e);
|
|
254
254
|
} catch (n) {
|
|
255
255
|
console.error(`[rtcpt] Failed to load locale messages for ${e}:`, n);
|
|
256
256
|
}
|
|
257
257
|
const t = mn[e];
|
|
258
|
-
t &&
|
|
259
|
-
|
|
258
|
+
t && Ke && t().then((n) => {
|
|
259
|
+
Ke.lang.set(n.default);
|
|
260
260
|
}).catch((n) => {
|
|
261
261
|
console.error(`[rtcpt] Failed to load Quasar locale for ${e}:`, n);
|
|
262
262
|
});
|
|
263
263
|
}
|
|
264
264
|
function ht() {
|
|
265
|
-
return
|
|
265
|
+
return at.value;
|
|
266
266
|
}
|
|
267
267
|
function K() {
|
|
268
268
|
return {
|
|
269
269
|
t: Tt,
|
|
270
|
-
locale:
|
|
271
|
-
setLocale:
|
|
270
|
+
locale: at,
|
|
271
|
+
setLocale: Xe,
|
|
272
272
|
getLocale: ht
|
|
273
273
|
};
|
|
274
274
|
}
|
|
@@ -313,7 +313,7 @@ const In = U({
|
|
|
313
313
|
emits: ["update:modelValue", "saved", "confirm"],
|
|
314
314
|
slots: Object,
|
|
315
315
|
setup(e, { emit: t }) {
|
|
316
|
-
const { t: n } = K(), l = h(null), r = h(e.modelValue), a = h(null),
|
|
316
|
+
const { t: n } = K(), l = h(null), r = h(e.modelValue), a = h(null), s = h(!1), o = (M) => {
|
|
317
317
|
r.value = M;
|
|
318
318
|
};
|
|
319
319
|
G(
|
|
@@ -323,22 +323,22 @@ const In = U({
|
|
|
323
323
|
},
|
|
324
324
|
{ immediate: !0 }
|
|
325
325
|
);
|
|
326
|
-
const
|
|
326
|
+
const i = () => {
|
|
327
327
|
r.value = e.modelValue ?? "";
|
|
328
328
|
}, c = async () => {
|
|
329
329
|
var d;
|
|
330
330
|
let M = !0;
|
|
331
331
|
if (a.value && typeof a.value.validate == "function" && (M = a.value.validate()), !!M) {
|
|
332
332
|
if (r.value !== e.modelValue) {
|
|
333
|
-
|
|
334
|
-
const p = (
|
|
335
|
-
var
|
|
336
|
-
const { success:
|
|
337
|
-
if (
|
|
333
|
+
s.value = !0;
|
|
334
|
+
const p = (A = {}) => {
|
|
335
|
+
var E, z, D;
|
|
336
|
+
const { success: v = !0, close: Q = v, resetValue: q = !v } = A;
|
|
337
|
+
if (s.value = !1, v) {
|
|
338
338
|
g();
|
|
339
339
|
return;
|
|
340
340
|
}
|
|
341
|
-
q && (r.value = e.modelValue ?? "", (
|
|
341
|
+
q && (r.value = e.modelValue ?? "", (z = (E = a.value) == null ? void 0 : E.resetValidation) == null || z.call(E)), Q && ((D = l.value) == null || D.hide());
|
|
342
342
|
};
|
|
343
343
|
t("confirm", r.value, p);
|
|
344
344
|
return;
|
|
@@ -353,11 +353,11 @@ const In = U({
|
|
|
353
353
|
};
|
|
354
354
|
return {
|
|
355
355
|
t: n,
|
|
356
|
-
saveLoading:
|
|
356
|
+
saveLoading: s,
|
|
357
357
|
popupRef: l,
|
|
358
358
|
tempValue: r,
|
|
359
359
|
updateTempValue: o,
|
|
360
|
-
handleProxyShow:
|
|
360
|
+
handleProxyShow: i,
|
|
361
361
|
handleSave: c,
|
|
362
362
|
editorRef: a,
|
|
363
363
|
setEditorRef: u
|
|
@@ -365,26 +365,26 @@ const In = U({
|
|
|
365
365
|
}
|
|
366
366
|
}), Dn = { class: "row items-end no-wrap jc-editable-proxy" }, An = { class: "q-pr-sm display-value" };
|
|
367
367
|
function Nn(e, t, n, l, r, a) {
|
|
368
|
-
const
|
|
369
|
-
return m(),
|
|
368
|
+
const s = N("q-card-section"), o = N("q-btn"), i = N("q-card-actions"), c = N("q-card"), u = N("q-popup-proxy"), g = N("q-icon"), M = N("j-c-permission");
|
|
369
|
+
return m(), T("div", Dn, [
|
|
370
370
|
y("div", An, [
|
|
371
|
-
|
|
372
|
-
y("span", null,
|
|
371
|
+
O(e.$slots, "display", {}, () => [
|
|
372
|
+
y("span", null, w(e.modelValue), 1)
|
|
373
373
|
], !0)
|
|
374
374
|
]),
|
|
375
|
-
|
|
375
|
+
j(M, {
|
|
376
376
|
code: e.code,
|
|
377
377
|
"rm-dom": !0
|
|
378
378
|
}, {
|
|
379
379
|
default: I(() => [
|
|
380
|
-
|
|
380
|
+
j(g, {
|
|
381
381
|
name: "app:edit",
|
|
382
382
|
class: "cursor-pointer",
|
|
383
383
|
size: e.iconSize,
|
|
384
384
|
style: H(e.iconStyle)
|
|
385
385
|
}, {
|
|
386
386
|
default: I(() => [
|
|
387
|
-
|
|
387
|
+
j(u, {
|
|
388
388
|
ref: "popupRef",
|
|
389
389
|
"transition-show": "jump-down",
|
|
390
390
|
"transition-hide": "jump-up",
|
|
@@ -392,13 +392,13 @@ function Nn(e, t, n, l, r, a) {
|
|
|
392
392
|
onShow: e.handleProxyShow
|
|
393
393
|
}, {
|
|
394
394
|
default: I(() => [
|
|
395
|
-
|
|
395
|
+
j(c, {
|
|
396
396
|
style: H({ width: e.popupWidth })
|
|
397
397
|
}, {
|
|
398
398
|
default: I(() => [
|
|
399
|
-
|
|
399
|
+
j(s, { class: "q-pt-md q-px-md q-pb-none" }, {
|
|
400
400
|
default: I(() => [
|
|
401
|
-
|
|
401
|
+
O(e.$slots, "editor", {
|
|
402
402
|
tempValue: e.tempValue,
|
|
403
403
|
updateTempValue: e.updateTempValue,
|
|
404
404
|
setEditorRef: e.setEditorRef
|
|
@@ -406,12 +406,12 @@ function Nn(e, t, n, l, r, a) {
|
|
|
406
406
|
]),
|
|
407
407
|
_: 3
|
|
408
408
|
}),
|
|
409
|
-
|
|
409
|
+
j(i, {
|
|
410
410
|
align: "right",
|
|
411
|
-
class:
|
|
411
|
+
class: V(["q-pb-md q-px-md", { "q-pt-none": e.required, "q-pt-md": !e.required }])
|
|
412
412
|
}, {
|
|
413
413
|
default: I(() => [
|
|
414
|
-
|
|
414
|
+
j(o, {
|
|
415
415
|
dense: "",
|
|
416
416
|
label: e.t("action.confirm"),
|
|
417
417
|
color: "primary",
|
|
@@ -477,7 +477,7 @@ const as = /* @__PURE__ */ B(In, [["render", Nn], ["__scopeId", "data-v-ab93db6b
|
|
|
477
477
|
slots: Object,
|
|
478
478
|
setup(e) {
|
|
479
479
|
return {
|
|
480
|
-
hasValue:
|
|
480
|
+
hasValue: C(() => {
|
|
481
481
|
const n = e.value;
|
|
482
482
|
return e.zeroIsValid && (n === 0 || n === "0") || e.falseIsValid && n === !1 ? !0 : !!n;
|
|
483
483
|
})
|
|
@@ -485,8 +485,8 @@ const as = /* @__PURE__ */ B(In, [["render", Nn], ["__scopeId", "data-v-ab93db6b
|
|
|
485
485
|
}
|
|
486
486
|
}), jn = { key: 0 };
|
|
487
487
|
function zn(e, t, n, l, r, a) {
|
|
488
|
-
return e.hasValue ?
|
|
489
|
-
e.rmDom ?
|
|
488
|
+
return e.hasValue ? O(e.$slots, "default", { key: 0 }) : (m(), T(ee, { key: 1 }, [
|
|
489
|
+
e.rmDom ? $("", !0) : (m(), T("span", jn, w(e.defaultContent), 1))
|
|
490
490
|
], 64));
|
|
491
491
|
}
|
|
492
492
|
const ss = /* @__PURE__ */ B(Cn, [["render", zn]]);
|
|
@@ -504,9 +504,9 @@ function bn(e) {
|
|
|
504
504
|
if (a !== -1) {
|
|
505
505
|
const o = r.substring(1, a).split(",").map((c) => c.trim().replace(/^['"](.*)['"]$/, "$1")).filter((c) => c.length > 0);
|
|
506
506
|
l.push(o);
|
|
507
|
-
const
|
|
508
|
-
if (
|
|
509
|
-
const c =
|
|
507
|
+
const i = r.substring(a + 1).trim();
|
|
508
|
+
if (i.startsWith(",")) {
|
|
509
|
+
const c = i.substring(1).split(",").map((u) => {
|
|
510
510
|
const g = u.trim();
|
|
511
511
|
if (g === "true") return !0;
|
|
512
512
|
if (g === "false") return !1;
|
|
@@ -518,11 +518,11 @@ function bn(e) {
|
|
|
518
518
|
}
|
|
519
519
|
} else
|
|
520
520
|
l = r.split(",").map((a) => {
|
|
521
|
-
const
|
|
522
|
-
if (
|
|
523
|
-
if (
|
|
524
|
-
const o = Number(
|
|
525
|
-
return isNaN(o) ?
|
|
521
|
+
const s = a.trim();
|
|
522
|
+
if (s === "true") return !0;
|
|
523
|
+
if (s === "false") return !1;
|
|
524
|
+
const o = Number(s);
|
|
525
|
+
return isNaN(o) ? s : o;
|
|
526
526
|
});
|
|
527
527
|
}
|
|
528
528
|
return { name: n, args: l };
|
|
@@ -530,27 +530,27 @@ function bn(e) {
|
|
|
530
530
|
return { name: e, args: [] };
|
|
531
531
|
}
|
|
532
532
|
function Tn(e, t, n = [], l) {
|
|
533
|
-
const a =
|
|
533
|
+
const a = st(l)[e];
|
|
534
534
|
if (!a)
|
|
535
535
|
return console.warn(`Rule '${e}' not found in formRules.`), !0;
|
|
536
|
-
let
|
|
536
|
+
let s = [];
|
|
537
537
|
if (Array.isArray(a))
|
|
538
|
-
|
|
538
|
+
s = a;
|
|
539
539
|
else if (typeof a == "function") {
|
|
540
540
|
const o = a(...n);
|
|
541
541
|
if (Array.isArray(o))
|
|
542
|
-
|
|
542
|
+
s = o;
|
|
543
543
|
else
|
|
544
544
|
return console.error(`[JQSelectNewValue] Rule '${e}' function did not return an array of validation functions.`), !0;
|
|
545
545
|
}
|
|
546
|
-
for (const o of
|
|
547
|
-
const
|
|
548
|
-
if (
|
|
549
|
-
return
|
|
546
|
+
for (const o of s) {
|
|
547
|
+
const i = o(t);
|
|
548
|
+
if (i !== !0)
|
|
549
|
+
return i;
|
|
550
550
|
}
|
|
551
551
|
return !0;
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function st(e) {
|
|
554
554
|
return {
|
|
555
555
|
required: [
|
|
556
556
|
(t) => {
|
|
@@ -570,10 +570,10 @@ function lt(e) {
|
|
|
570
570
|
const n = t.includes("left"), l = t.includes("right"), r = /^(100(?:\.0{1,2})?|\d{1,2}(?:\.\d{1,2})?)$/;
|
|
571
571
|
return [
|
|
572
572
|
(a) => {
|
|
573
|
-
const
|
|
574
|
-
if (!r.test(
|
|
573
|
+
const s = String(a).trim();
|
|
574
|
+
if (!r.test(s))
|
|
575
575
|
return e("messages.formRules.percentageInvalid");
|
|
576
|
-
const o = parseFloat(
|
|
576
|
+
const o = parseFloat(s);
|
|
577
577
|
return !n && o === 0 ? e("messages.formRules.over0") : !l && o === 100 ? e("messages.formRules.less100") : !0;
|
|
578
578
|
}
|
|
579
579
|
];
|
|
@@ -599,22 +599,22 @@ function lt(e) {
|
|
|
599
599
|
ip: "1.1.1.1",
|
|
600
600
|
ipPort: "1.1.1.1:8080",
|
|
601
601
|
path: "/test/example"
|
|
602
|
-
},
|
|
603
|
-
const
|
|
604
|
-
if (!
|
|
602
|
+
}, s = [(o) => {
|
|
603
|
+
const i = String(o || "").trim();
|
|
604
|
+
if (!i) return !0;
|
|
605
605
|
let c = "";
|
|
606
606
|
return t.some((g) => {
|
|
607
607
|
switch (g) {
|
|
608
608
|
case "url":
|
|
609
|
-
return c = r.url, l.url.test(
|
|
609
|
+
return c = r.url, l.url.test(i);
|
|
610
610
|
case "domain":
|
|
611
|
-
return c = r.domain, l.domain.test(
|
|
611
|
+
return c = r.domain, l.domain.test(i);
|
|
612
612
|
case "ip":
|
|
613
|
-
return
|
|
613
|
+
return i.includes(":") ? !1 : (c = r.ip, l.ip.test(i));
|
|
614
614
|
case "ip-port":
|
|
615
|
-
return c = r.ipPort, l.ipPort.test(
|
|
615
|
+
return c = r.ipPort, l.ipPort.test(i);
|
|
616
616
|
case "path":
|
|
617
|
-
return c = r.path, l.path.test(
|
|
617
|
+
return c = r.path, l.path.test(i);
|
|
618
618
|
default:
|
|
619
619
|
return !1;
|
|
620
620
|
}
|
|
@@ -622,10 +622,10 @@ function lt(e) {
|
|
|
622
622
|
example: c
|
|
623
623
|
});
|
|
624
624
|
}];
|
|
625
|
-
return n &&
|
|
626
|
-
const
|
|
627
|
-
return !
|
|
628
|
-
}),
|
|
625
|
+
return n && s.unshift((o) => {
|
|
626
|
+
const i = Array.isArray(o) && o.length === 0, c = o == null || o === "";
|
|
627
|
+
return !i && !c || e("messages.formRules.required");
|
|
628
|
+
}), s;
|
|
629
629
|
},
|
|
630
630
|
email: [
|
|
631
631
|
(t) => /\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/gi.test(t) ? !0 : e("messages.formRules.emailInvalid")
|
|
@@ -692,24 +692,24 @@ class wn {
|
|
|
692
692
|
});
|
|
693
693
|
try {
|
|
694
694
|
je != null && je.notify ? je.notify(a) : (console.error("[JQMessage] Quasar Notify plugin not available. Make sure rtcptInit has been called."), alert(a.message));
|
|
695
|
-
} catch (
|
|
696
|
-
console.log(
|
|
695
|
+
} catch (s) {
|
|
696
|
+
console.log(s), alert(a.message);
|
|
697
697
|
}
|
|
698
698
|
}
|
|
699
699
|
}
|
|
700
|
-
const
|
|
700
|
+
const Qe = new wn();
|
|
701
701
|
function vn(e, t = { size: 5, accept: ["xls", "xlsx"] }) {
|
|
702
702
|
const n = e[0], { size: l, accept: r } = t, { t: a } = K();
|
|
703
703
|
if (l < n.size / Math.pow(1024, l)) {
|
|
704
|
-
|
|
704
|
+
Qe.show({
|
|
705
705
|
content: a("messages.jQFile.maxFileSizeIs", { max: l }),
|
|
706
706
|
type: "error"
|
|
707
707
|
});
|
|
708
708
|
return;
|
|
709
709
|
}
|
|
710
|
-
let
|
|
711
|
-
if (
|
|
712
|
-
|
|
710
|
+
let s = n.name.substring(n.name.lastIndexOf(".")).toLowerCase();
|
|
711
|
+
if (s = s.replace(".", ""), r.indexOf(s) === -1) {
|
|
712
|
+
Qe.show({
|
|
713
713
|
content: a("messages.jQFile.unsupportFileFormat"),
|
|
714
714
|
type: "error"
|
|
715
715
|
});
|
|
@@ -720,14 +720,14 @@ function vn(e, t = { size: 5, accept: ["xls", "xlsx"] }) {
|
|
|
720
720
|
const Sn = U({
|
|
721
721
|
name: "jQDialog",
|
|
722
722
|
components: {
|
|
723
|
-
QDialog:
|
|
723
|
+
QDialog: Nt,
|
|
724
724
|
QCard: Se,
|
|
725
725
|
QCardSection: ve,
|
|
726
|
-
QInnerLoading:
|
|
726
|
+
QInnerLoading: At,
|
|
727
727
|
QBtn: re
|
|
728
728
|
},
|
|
729
729
|
directives: {
|
|
730
|
-
ClosePopup:
|
|
730
|
+
ClosePopup: Dt
|
|
731
731
|
},
|
|
732
732
|
props: {
|
|
733
733
|
allowFocusOutside: { type: Boolean, default: !0 },
|
|
@@ -751,46 +751,46 @@ const Sn = U({
|
|
|
751
751
|
mounted() {
|
|
752
752
|
},
|
|
753
753
|
setup(e, { emit: t, expose: n }) {
|
|
754
|
-
const l = h(!1), r = h(!1), a = h(null),
|
|
755
|
-
let c = h(
|
|
756
|
-
const g =
|
|
754
|
+
const l = h(!1), r = h(!1), a = h(null), s = h(e.showConfirm), o = Et(), { t: i } = K();
|
|
755
|
+
let c = h(i("action.cancel")), u = h(i("action.confirm"));
|
|
756
|
+
const g = st(i), M = vn, d = C(() => ({
|
|
757
757
|
...e.componentBind,
|
|
758
758
|
dialogInstance: {
|
|
759
|
-
open:
|
|
760
|
-
close:
|
|
761
|
-
setLoading:
|
|
762
|
-
changeCancelText:
|
|
763
|
-
changeConfirmText:
|
|
764
|
-
setConfirmVisible:
|
|
759
|
+
open: z,
|
|
760
|
+
close: D,
|
|
761
|
+
setLoading: k,
|
|
762
|
+
changeCancelText: v,
|
|
763
|
+
changeConfirmText: Q,
|
|
764
|
+
setConfirmVisible: S,
|
|
765
765
|
rules: g,
|
|
766
766
|
beforeFile: M
|
|
767
767
|
}
|
|
768
|
-
})), p =
|
|
768
|
+
})), p = C(() => e.maxWidth && e.position === "standard" ? {
|
|
769
769
|
"max-width": typeof e.maxWidth == "string" ? e.maxWidth : `${e.maxWidth}px`,
|
|
770
770
|
width: typeof e.maxWidth == "string" ? e.maxWidth : `${e.maxWidth}px`
|
|
771
|
-
} : {}),
|
|
771
|
+
} : {}), A = C(() => r.value), v = (P) => {
|
|
772
772
|
c.value = P;
|
|
773
|
-
},
|
|
773
|
+
}, Q = (P) => {
|
|
774
774
|
u.value = P;
|
|
775
775
|
}, q = () => {
|
|
776
776
|
var P, J, te;
|
|
777
|
-
((P = o == null ? void 0 : o.refs) == null ? void 0 : P.dynamicCompRef).handleClickCancel && ((J = o == null ? void 0 : o.refs) == null ? void 0 : J.dynamicCompRef).handleClickCancel(), ((te = o == null ? void 0 : o.refs) == null ? void 0 : te.dynamicCompRef).handleClickCancel ||
|
|
778
|
-
},
|
|
777
|
+
((P = o == null ? void 0 : o.refs) == null ? void 0 : P.dynamicCompRef).handleClickCancel && ((J = o == null ? void 0 : o.refs) == null ? void 0 : J.dynamicCompRef).handleClickCancel(), ((te = o == null ? void 0 : o.refs) == null ? void 0 : te.dynamicCompRef).handleClickCancel || D();
|
|
778
|
+
}, E = () => {
|
|
779
779
|
var P, J;
|
|
780
780
|
((P = o == null ? void 0 : o.refs) == null ? void 0 : P.dynamicCompRef).handleClickConfirm && ((J = o == null ? void 0 : o.refs) == null ? void 0 : J.dynamicCompRef).handleClickConfirm();
|
|
781
|
-
},
|
|
781
|
+
}, z = () => {
|
|
782
782
|
l.value = !0;
|
|
783
|
-
},
|
|
783
|
+
}, D = () => {
|
|
784
784
|
l.value = !1;
|
|
785
|
-
}, O = (P) => {
|
|
786
|
-
r.value = P;
|
|
787
785
|
}, k = (P) => {
|
|
788
|
-
|
|
786
|
+
r.value = P;
|
|
787
|
+
}, S = (P) => {
|
|
788
|
+
s.value = P;
|
|
789
789
|
}, Z = () => {
|
|
790
|
-
e.dialogId &&
|
|
790
|
+
e.dialogId && it.destroy(e.dialogId);
|
|
791
791
|
};
|
|
792
|
-
return n({ open:
|
|
793
|
-
persistent:
|
|
792
|
+
return n({ open: z, close: D, setLoading: k, setConfirmVisible: S, changeCancelText: v, changeConfirmText: Q, rules: g }), {
|
|
793
|
+
persistent: A,
|
|
794
794
|
dynamicCompRef: a,
|
|
795
795
|
cancelText: c,
|
|
796
796
|
confirmText: u,
|
|
@@ -798,22 +798,22 @@ const Sn = U({
|
|
|
798
798
|
getDataLoading: r,
|
|
799
799
|
computedComponentBind: d,
|
|
800
800
|
computedDialogWidth: p,
|
|
801
|
-
open:
|
|
802
|
-
close:
|
|
801
|
+
open: z,
|
|
802
|
+
close: D,
|
|
803
803
|
destroy: Z,
|
|
804
804
|
handleClickCancel: q,
|
|
805
|
-
handleClickConfirm:
|
|
806
|
-
confirmBtnVisible:
|
|
807
|
-
setConfirmVisible:
|
|
805
|
+
handleClickConfirm: E,
|
|
806
|
+
confirmBtnVisible: s,
|
|
807
|
+
setConfirmVisible: S,
|
|
808
808
|
rules: g,
|
|
809
|
-
t:
|
|
809
|
+
t: i
|
|
810
810
|
};
|
|
811
811
|
}
|
|
812
812
|
}), Ln = { class: "loading-mask" }, kn = { class: "dialog-title" }, On = { class: "async-component-loading-mask" };
|
|
813
813
|
function En(e, t, n, l, r, a) {
|
|
814
|
-
const
|
|
815
|
-
return m(),
|
|
816
|
-
class:
|
|
814
|
+
const s = N("q-inner-loading"), o = N("q-btn"), i = N("q-card-section"), c = N("q-card"), u = N("q-dialog"), g = tt("close-popup");
|
|
815
|
+
return m(), Y(u, {
|
|
816
|
+
class: V(["j-q-dialog", { "right-panel": e.position === "right" }]),
|
|
817
817
|
modelValue: e.visible,
|
|
818
818
|
"onUpdate:modelValue": t[0] || (t[0] = (M) => e.visible = M),
|
|
819
819
|
"allow-focus-outside": e.allowFocusOutside,
|
|
@@ -827,13 +827,13 @@ function En(e, t, n, l, r, a) {
|
|
|
827
827
|
"transition-hide": e.position === "right" ? "slide-right" : "jump-up"
|
|
828
828
|
}, {
|
|
829
829
|
default: I(() => [
|
|
830
|
-
|
|
830
|
+
j(c, {
|
|
831
831
|
class: "dialog-main",
|
|
832
832
|
style: H(e.computedDialogWidth)
|
|
833
833
|
}, {
|
|
834
834
|
default: I(() => [
|
|
835
835
|
oe(y("div", Ln, [
|
|
836
|
-
|
|
836
|
+
j(s, {
|
|
837
837
|
showing: e.getDataLoading,
|
|
838
838
|
label: e.t("messages.loading"),
|
|
839
839
|
color: "primary",
|
|
@@ -843,17 +843,17 @@ function En(e, t, n, l, r, a) {
|
|
|
843
843
|
], 512), [
|
|
844
844
|
[ie, e.getDataLoading]
|
|
845
845
|
]),
|
|
846
|
-
e.showHeader ? (m(),
|
|
846
|
+
e.showHeader ? (m(), Y(i, {
|
|
847
847
|
key: 0,
|
|
848
848
|
class: "dialog-header q-pa-none"
|
|
849
849
|
}, {
|
|
850
850
|
default: I(() => [
|
|
851
851
|
y("div", kn, [
|
|
852
|
-
|
|
853
|
-
W(
|
|
852
|
+
O(e.$slots, "title", {}, () => [
|
|
853
|
+
W(w(e.title), 1)
|
|
854
854
|
], !0)
|
|
855
855
|
]),
|
|
856
|
-
oe(
|
|
856
|
+
oe(j(o, {
|
|
857
857
|
class: "dialog-close",
|
|
858
858
|
icon: "close",
|
|
859
859
|
dense: "",
|
|
@@ -864,33 +864,33 @@ function En(e, t, n, l, r, a) {
|
|
|
864
864
|
])
|
|
865
865
|
]),
|
|
866
866
|
_: 3
|
|
867
|
-
})) :
|
|
868
|
-
(m(),
|
|
867
|
+
})) : $("", !0),
|
|
868
|
+
(m(), Y($t, null, {
|
|
869
869
|
default: I(() => [
|
|
870
870
|
y("div", null, [
|
|
871
|
-
|
|
871
|
+
j(i, {
|
|
872
872
|
class: "dialog-body",
|
|
873
873
|
style: H({ "min-height": typeof e.minHeight == "string" ? e.minHeight : `${e.minHeight}px` })
|
|
874
874
|
}, {
|
|
875
875
|
default: I(() => [
|
|
876
|
-
e.component ? (m(),
|
|
877
|
-
|
|
876
|
+
e.component ? (m(), Y(Mt(e.component), Te({ key: 0 }, e.computedComponentBind, Yt(e.componentOn), { ref: "dynamicCompRef" }), null, 16)) : e.content ? (m(), Y(Mt(e.content), { key: 1 })) : $("", !0),
|
|
877
|
+
O(e.$slots, "default", {}, void 0, !0)
|
|
878
878
|
]),
|
|
879
879
|
_: 3
|
|
880
880
|
}, 8, ["style"]),
|
|
881
|
-
e.showFooter ? (m(),
|
|
881
|
+
e.showFooter ? (m(), Y(i, {
|
|
882
882
|
key: 0,
|
|
883
883
|
class: "q-pa-none dialog-footer"
|
|
884
884
|
}, {
|
|
885
885
|
default: I(() => [
|
|
886
|
-
|
|
886
|
+
j(o, {
|
|
887
887
|
label: e.cancelText,
|
|
888
888
|
unelevated: "",
|
|
889
889
|
"no-caps": "",
|
|
890
890
|
onClick: e.handleClickCancel,
|
|
891
891
|
outline: ""
|
|
892
892
|
}, null, 8, ["label", "onClick"]),
|
|
893
|
-
e.confirmBtnVisible ? (m(),
|
|
893
|
+
e.confirmBtnVisible ? (m(), Y(o, {
|
|
894
894
|
key: 0,
|
|
895
895
|
label: e.confirmText,
|
|
896
896
|
color: "primary",
|
|
@@ -898,17 +898,17 @@ function En(e, t, n, l, r, a) {
|
|
|
898
898
|
unelevated: "",
|
|
899
899
|
"no-caps": "",
|
|
900
900
|
onClick: e.handleClickConfirm
|
|
901
|
-
}, null, 8, ["label", "onClick"])) :
|
|
901
|
+
}, null, 8, ["label", "onClick"])) : $("", !0)
|
|
902
902
|
]),
|
|
903
903
|
_: 1
|
|
904
|
-
})) :
|
|
904
|
+
})) : $("", !0)
|
|
905
905
|
])
|
|
906
906
|
]),
|
|
907
907
|
fallback: I(() => [
|
|
908
|
-
|
|
908
|
+
j(i, null, {
|
|
909
909
|
default: I(() => [
|
|
910
910
|
y("div", On, [
|
|
911
|
-
|
|
911
|
+
j(s, {
|
|
912
912
|
showing: !0,
|
|
913
913
|
label: e.t("action.loading"),
|
|
914
914
|
color: "primary",
|
|
@@ -929,12 +929,12 @@ function En(e, t, n, l, r, a) {
|
|
|
929
929
|
_: 3
|
|
930
930
|
}, 8, ["class", "modelValue", "allow-focus-outside", "no-backdrop-dismiss", "no-esc-dismiss", "position", "onHide", "persistent", "full-height", "transition-show", "transition-hide"]);
|
|
931
931
|
}
|
|
932
|
-
const $n = /* @__PURE__ */ B(Sn, [["render", En], ["__scopeId", "data-v-c4f8c6ec"]]),
|
|
932
|
+
const $n = /* @__PURE__ */ B(Sn, [["render", En], ["__scopeId", "data-v-c4f8c6ec"]]), Ge = /* @__PURE__ */ new Map();
|
|
933
933
|
function Yn(e) {
|
|
934
|
-
return
|
|
934
|
+
return st(e || Tt);
|
|
935
935
|
}
|
|
936
936
|
let ae = {};
|
|
937
|
-
const
|
|
937
|
+
const it = {
|
|
938
938
|
/**
|
|
939
939
|
* 配置 DialogProvider 选项
|
|
940
940
|
*/
|
|
@@ -944,25 +944,25 @@ const ot = {
|
|
|
944
944
|
async register(e) {
|
|
945
945
|
const t = Math.random().toString(36).slice(2), n = Vt($n, { ...e, dialogId: t });
|
|
946
946
|
ae.router && n.use(ae.router), ae.store && n.use(ae.store), ae.i18n && n.use(ae.i18n), ae.plugins && ae.plugins.forEach((c) => n.use(c));
|
|
947
|
-
const { Quasar: l, Notify: r, Dialog: a, Loading:
|
|
947
|
+
const { Quasar: l, Notify: r, Dialog: a, Loading: s } = await import("quasar");
|
|
948
948
|
n.use(l, {
|
|
949
949
|
plugins: {
|
|
950
950
|
Notify: r,
|
|
951
951
|
Dialog: a,
|
|
952
|
-
Loading:
|
|
952
|
+
Loading: s
|
|
953
953
|
},
|
|
954
954
|
animations: "all"
|
|
955
955
|
}), ae.iconMapFn && (n.config.globalProperties.$q.iconMapFn = ae.iconMapFn);
|
|
956
956
|
const o = document.createElement("div");
|
|
957
957
|
document.body.appendChild(o);
|
|
958
|
-
const
|
|
959
|
-
return
|
|
960
|
-
|
|
961
|
-
}).then((c) => c),
|
|
958
|
+
const i = n.mount(o);
|
|
959
|
+
return Ge.set(t, { app: n, appInstance: i }), de(() => {
|
|
960
|
+
i.open();
|
|
961
|
+
}).then((c) => c), i;
|
|
962
962
|
},
|
|
963
963
|
destroy(e) {
|
|
964
|
-
const t =
|
|
965
|
-
t && (t.app.unmount(), document.body.removeChild(t.app._container),
|
|
964
|
+
const t = Ge.get(e);
|
|
965
|
+
t && (t.app.unmount(), document.body.removeChild(t.app._container), Ge.delete(e));
|
|
966
966
|
}
|
|
967
967
|
}, Vn = U({
|
|
968
968
|
name: "JCFoldableList",
|
|
@@ -990,31 +990,31 @@ const ot = {
|
|
|
990
990
|
},
|
|
991
991
|
setup(e, { slots: t }) {
|
|
992
992
|
const n = h(null), l = h(0), r = h(e.defaultCollapsed);
|
|
993
|
-
let a = null,
|
|
994
|
-
const o = 5, { t:
|
|
993
|
+
let a = null, s = 0;
|
|
994
|
+
const o = 5, { t: i } = K(), c = () => {
|
|
995
995
|
if (n.value) {
|
|
996
996
|
a && a.disconnect();
|
|
997
|
-
const
|
|
998
|
-
|
|
997
|
+
const A = n.value.scrollHeight;
|
|
998
|
+
A > 0 ? (l.value = A, s = 0) : n.value.children.length > 0 && s < o && (s++, setTimeout(() => {
|
|
999
999
|
c();
|
|
1000
1000
|
}, 100)), a && n.value && a.observe(n.value, {
|
|
1001
1001
|
childList: !0,
|
|
1002
1002
|
subtree: !0
|
|
1003
1003
|
});
|
|
1004
1004
|
}
|
|
1005
|
-
}, u =
|
|
1005
|
+
}, u = C(() => l.value > e.maxHeight), g = C(() => r.value && u.value ? {
|
|
1006
1006
|
maxHeight: `${e.maxHeight}px`,
|
|
1007
1007
|
overflow: "hidden"
|
|
1008
1008
|
} : {}), M = () => {
|
|
1009
|
-
var
|
|
1010
|
-
const
|
|
1011
|
-
|
|
1012
|
-
title: e.dialogTitle ||
|
|
1009
|
+
var v;
|
|
1010
|
+
const A = (v = t.default) == null ? void 0 : v.call(t);
|
|
1011
|
+
A && it.register({
|
|
1012
|
+
title: e.dialogTitle || i("action.viewAll"),
|
|
1013
1013
|
maxWidth: e.dialogMaxWidth,
|
|
1014
1014
|
minHeight: "auto",
|
|
1015
1015
|
showHeader: !0,
|
|
1016
1016
|
showFooter: !1,
|
|
1017
|
-
content: () => Pt("div", { class: "jc-foldable-list-dialog-content" },
|
|
1017
|
+
content: () => Pt("div", { class: "jc-foldable-list-dialog-content" }, A)
|
|
1018
1018
|
});
|
|
1019
1019
|
}, d = () => {
|
|
1020
1020
|
e.viewInDialog ? M() : r.value = !r.value;
|
|
@@ -1031,14 +1031,14 @@ const ot = {
|
|
|
1031
1031
|
}), Qt(() => {
|
|
1032
1032
|
a && (a.disconnect(), a = null);
|
|
1033
1033
|
}), {
|
|
1034
|
-
t:
|
|
1034
|
+
t: i,
|
|
1035
1035
|
contentWrapperRef: n,
|
|
1036
1036
|
isCollapsed: r,
|
|
1037
1037
|
needsToggle: u,
|
|
1038
1038
|
toggleList: d,
|
|
1039
1039
|
currentStyle: g,
|
|
1040
1040
|
remeasure: () => {
|
|
1041
|
-
|
|
1041
|
+
s = 0, de(c);
|
|
1042
1042
|
}
|
|
1043
1043
|
};
|
|
1044
1044
|
}
|
|
@@ -1047,27 +1047,27 @@ const ot = {
|
|
|
1047
1047
|
class: "jc-toggle-overlay"
|
|
1048
1048
|
};
|
|
1049
1049
|
function Un(e, t, n, l, r, a) {
|
|
1050
|
-
return m(),
|
|
1050
|
+
return m(), T("div", Qn, [
|
|
1051
1051
|
y("div", Pn, [
|
|
1052
1052
|
y("div", {
|
|
1053
1053
|
ref: "contentWrapperRef",
|
|
1054
1054
|
style: H(e.currentStyle),
|
|
1055
|
-
class:
|
|
1055
|
+
class: V([{ "jc-content-transition": e.needsToggle }, "jc-content-wrapper"])
|
|
1056
1056
|
}, [
|
|
1057
|
-
|
|
1057
|
+
O(e.$slots, "default", {}, void 0, !0)
|
|
1058
1058
|
], 6),
|
|
1059
|
-
e.needsToggle ? (m(),
|
|
1059
|
+
e.needsToggle ? (m(), T("div", qn, [
|
|
1060
1060
|
y("span", {
|
|
1061
1061
|
class: "link-type",
|
|
1062
|
-
onClick: t[0] || (t[0] = (...
|
|
1062
|
+
onClick: t[0] || (t[0] = (...s) => e.toggleList && e.toggleList(...s))
|
|
1063
1063
|
}, [
|
|
1064
|
-
e.viewInDialog ? (m(),
|
|
1065
|
-
W(
|
|
1066
|
-
], 64)) : (m(),
|
|
1067
|
-
W(
|
|
1064
|
+
e.viewInDialog ? (m(), T(ee, { key: 0 }, [
|
|
1065
|
+
W(w(e.t("action.viewAll")), 1)
|
|
1066
|
+
], 64)) : (m(), T(ee, { key: 1 }, [
|
|
1067
|
+
W(w(e.isCollapsed ? e.t("action.expandAll") : e.t("action.collapseAll")), 1)
|
|
1068
1068
|
], 64))
|
|
1069
1069
|
])
|
|
1070
|
-
])) :
|
|
1070
|
+
])) : $("", !0)
|
|
1071
1071
|
])
|
|
1072
1072
|
]);
|
|
1073
1073
|
}
|
|
@@ -1114,11 +1114,11 @@ const is = /* @__PURE__ */ B(Vn, [["render", Un], ["__scopeId", "data-v-48376fdd
|
|
|
1114
1114
|
},
|
|
1115
1115
|
slots: Object,
|
|
1116
1116
|
setup(e) {
|
|
1117
|
-
const t =
|
|
1118
|
-
const r = e.value, a = e.options,
|
|
1117
|
+
const t = C(() => {
|
|
1118
|
+
const r = e.value, a = e.options, s = e.matchKeys;
|
|
1119
1119
|
if (!(r === null || !a || a.length === 0))
|
|
1120
|
-
return a.find((o) =>
|
|
1121
|
-
}), n =
|
|
1120
|
+
return a.find((o) => s.some((i) => o[i] !== void 0 && o[i] === r));
|
|
1121
|
+
}), n = C(() => !!t.value), l = C(() => t.value ? t.value.label : e.defaultContent);
|
|
1122
1122
|
return {
|
|
1123
1123
|
hasMatch: n,
|
|
1124
1124
|
displayLabel: l
|
|
@@ -1126,19 +1126,19 @@ const is = /* @__PURE__ */ B(Vn, [["render", Un], ["__scopeId", "data-v-48376fdd
|
|
|
1126
1126
|
}
|
|
1127
1127
|
}), Zn = { key: 0 };
|
|
1128
1128
|
function Rn(e, t, n, l, r, a) {
|
|
1129
|
-
return e.hasMatch ?
|
|
1129
|
+
return e.hasMatch ? O(e.$slots, "default", {
|
|
1130
1130
|
key: 0,
|
|
1131
1131
|
label: e.displayLabel
|
|
1132
1132
|
}, () => [
|
|
1133
|
-
y("span", null,
|
|
1134
|
-
]) : (m(),
|
|
1135
|
-
e.rmDom ?
|
|
1133
|
+
y("span", null, w(e.displayLabel), 1)
|
|
1134
|
+
]) : (m(), T(ee, { key: 1 }, [
|
|
1135
|
+
e.rmDom ? $("", !0) : (m(), T("span", Zn, w(e.defaultContent), 1))
|
|
1136
1136
|
], 64));
|
|
1137
1137
|
}
|
|
1138
1138
|
const rs = /* @__PURE__ */ B(Bn, [["render", Rn]]), Wn = U({
|
|
1139
1139
|
name: "JQInput",
|
|
1140
1140
|
components: {
|
|
1141
|
-
QInput:
|
|
1141
|
+
QInput: Pe
|
|
1142
1142
|
},
|
|
1143
1143
|
props: {
|
|
1144
1144
|
modelValue: { type: [String, Number] },
|
|
@@ -1165,18 +1165,18 @@ const rs = /* @__PURE__ */ B(Bn, [["render", Rn]]), Wn = U({
|
|
|
1165
1165
|
},
|
|
1166
1166
|
slots: Object,
|
|
1167
1167
|
setup(e, { emit: t, slots: n, expose: l }) {
|
|
1168
|
-
const { t: r } = K(), a = h(e.modelValue ?? ""),
|
|
1168
|
+
const { t: r } = K(), a = h(e.modelValue ?? ""), s = h(null), o = h(e.customType !== "secret" && e.customType !== "password"), i = C(() => {
|
|
1169
1169
|
const d = String(e.modelValue ?? "");
|
|
1170
1170
|
if (e.customType === "secret" && !o.value) {
|
|
1171
1171
|
if (d.length === 0)
|
|
1172
1172
|
return "";
|
|
1173
1173
|
if (d.length <= 6)
|
|
1174
1174
|
return "***";
|
|
1175
|
-
const p = d.substring(0, 3),
|
|
1176
|
-
return `${p}***${
|
|
1175
|
+
const p = d.substring(0, 3), A = d.substring(d.length - 3);
|
|
1176
|
+
return `${p}***${A}`;
|
|
1177
1177
|
}
|
|
1178
1178
|
return d;
|
|
1179
|
-
}), c =
|
|
1179
|
+
}), c = C(() => e.customType === "secret" ? i.value : a.value), u = C(() => ({
|
|
1180
1180
|
"input-password": e.customType === "password" && !o.value,
|
|
1181
1181
|
"j-q-input--table": e.label,
|
|
1182
1182
|
"j-q-input--form": !e.label && e.type !== "textarea" && !e.smInput,
|
|
@@ -1207,30 +1207,30 @@ const rs = /* @__PURE__ */ B(Bn, [["render", Rn]]), Wn = U({
|
|
|
1207
1207
|
return l({
|
|
1208
1208
|
validate: () => {
|
|
1209
1209
|
var d;
|
|
1210
|
-
return ((d =
|
|
1210
|
+
return ((d = s.value) == null ? void 0 : d.validate()) ?? !1;
|
|
1211
1211
|
},
|
|
1212
1212
|
resetValidation: () => {
|
|
1213
1213
|
var d;
|
|
1214
|
-
return (d =
|
|
1214
|
+
return (d = s.value) == null ? void 0 : d.resetValidation();
|
|
1215
1215
|
},
|
|
1216
1216
|
toggleVisibility: M
|
|
1217
1217
|
}), {
|
|
1218
1218
|
t: r,
|
|
1219
1219
|
innerModel: a,
|
|
1220
1220
|
computedInputValue: c,
|
|
1221
|
-
computedDisplayValue:
|
|
1221
|
+
computedDisplayValue: i,
|
|
1222
1222
|
computedClass: u,
|
|
1223
1223
|
change: g,
|
|
1224
|
-
qInputRef:
|
|
1224
|
+
qInputRef: s,
|
|
1225
1225
|
isContentVisible: o,
|
|
1226
1226
|
toggleVisibility: M
|
|
1227
1227
|
};
|
|
1228
1228
|
}
|
|
1229
1229
|
});
|
|
1230
1230
|
function xn(e, t, n, l, r, a) {
|
|
1231
|
-
const
|
|
1232
|
-
return m(),
|
|
1233
|
-
class:
|
|
1231
|
+
const s = N("q-input");
|
|
1232
|
+
return m(), Y(s, {
|
|
1233
|
+
class: V(["j-q-input", e.computedClass]),
|
|
1234
1234
|
"model-value": e.computedInputValue,
|
|
1235
1235
|
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.innerModel = o),
|
|
1236
1236
|
borderless: e.borderless,
|
|
@@ -1254,14 +1254,14 @@ function xn(e, t, n, l, r, a) {
|
|
|
1254
1254
|
e.$slots.prepend ? {
|
|
1255
1255
|
name: "prepend",
|
|
1256
1256
|
fn: I(() => [
|
|
1257
|
-
|
|
1257
|
+
O(e.$slots, "prepend")
|
|
1258
1258
|
]),
|
|
1259
1259
|
key: "0"
|
|
1260
1260
|
} : void 0,
|
|
1261
1261
|
e.$slots.append ? {
|
|
1262
1262
|
name: "append",
|
|
1263
1263
|
fn: I(() => [
|
|
1264
|
-
|
|
1264
|
+
O(e.$slots, "append", {
|
|
1265
1265
|
toggleVisibility: e.toggleVisibility,
|
|
1266
1266
|
customType: e.customType,
|
|
1267
1267
|
rawValue: e.modelValue,
|
|
@@ -1274,7 +1274,7 @@ function xn(e, t, n, l, r, a) {
|
|
|
1274
1274
|
e.$slots.after ? {
|
|
1275
1275
|
name: "after",
|
|
1276
1276
|
fn: I(() => [
|
|
1277
|
-
|
|
1277
|
+
O(e.$slots, "after")
|
|
1278
1278
|
]),
|
|
1279
1279
|
key: "2"
|
|
1280
1280
|
} : void 0
|
|
@@ -1297,61 +1297,61 @@ const wt = /* @__PURE__ */ B(Wn, [["render", xn]]), Gn = U({
|
|
|
1297
1297
|
},
|
|
1298
1298
|
slots: Object,
|
|
1299
1299
|
setup(e, { slots: t }) {
|
|
1300
|
-
const n =
|
|
1300
|
+
const n = C(() => {
|
|
1301
1301
|
const r = !!e.label || !!t.label;
|
|
1302
1302
|
return e.horizontal ? !0 : r;
|
|
1303
1303
|
});
|
|
1304
1304
|
return {
|
|
1305
|
-
directionClass:
|
|
1305
|
+
directionClass: C(() => e.vertical ? "form-label--vertical" : e.horizontal ? "form-label--horizontal" : "form-label--vertical"),
|
|
1306
1306
|
showLabel: n,
|
|
1307
1307
|
slots: t
|
|
1308
1308
|
};
|
|
1309
1309
|
}
|
|
1310
1310
|
}), Hn = { class: "row items-center" }, Fn = { class: "form-content" }, Jn = { class: "form-value__inner" }, Kn = { class: "form-item-detail-wrapper" };
|
|
1311
1311
|
function Xn(e, t, n, l, r, a) {
|
|
1312
|
-
const
|
|
1313
|
-
return m(),
|
|
1314
|
-
class:
|
|
1312
|
+
const s = N("q-tooltip"), o = N("q-icon");
|
|
1313
|
+
return m(), T("div", {
|
|
1314
|
+
class: V(["j-q-form-label", [e.directionClass, { required: e.required }]])
|
|
1315
1315
|
}, [
|
|
1316
|
-
e.showLabel ? (m(),
|
|
1316
|
+
e.showLabel ? (m(), T("div", {
|
|
1317
1317
|
key: 0,
|
|
1318
|
-
class:
|
|
1318
|
+
class: V(["form-label", [e.labelClass, { required: e.required }]])
|
|
1319
1319
|
}, [
|
|
1320
1320
|
y("div", Hn, [
|
|
1321
|
-
W(
|
|
1322
|
-
e.tip ? (m(),
|
|
1321
|
+
W(w(e.label) + " ", 1),
|
|
1322
|
+
e.tip ? (m(), Y(o, {
|
|
1323
1323
|
key: 0,
|
|
1324
1324
|
name: "app:question",
|
|
1325
1325
|
size: "14px",
|
|
1326
1326
|
class: "q-ml-xs"
|
|
1327
1327
|
}, {
|
|
1328
1328
|
default: I(() => [
|
|
1329
|
-
|
|
1329
|
+
j(s, {
|
|
1330
1330
|
anchor: "top middle",
|
|
1331
1331
|
self: "bottom middle",
|
|
1332
1332
|
offset: [10, 10]
|
|
1333
1333
|
}, {
|
|
1334
1334
|
default: I(() => [
|
|
1335
|
-
W(
|
|
1335
|
+
W(w(e.tip), 1)
|
|
1336
1336
|
]),
|
|
1337
1337
|
_: 1
|
|
1338
1338
|
})
|
|
1339
1339
|
]),
|
|
1340
1340
|
_: 1
|
|
1341
|
-
})) :
|
|
1341
|
+
})) : $("", !0)
|
|
1342
1342
|
]),
|
|
1343
|
-
|
|
1344
|
-
], 2)) :
|
|
1343
|
+
O(e.$slots, "label-hint")
|
|
1344
|
+
], 2)) : $("", !0),
|
|
1345
1345
|
y("div", Fn, [
|
|
1346
1346
|
y("div", {
|
|
1347
|
-
class:
|
|
1347
|
+
class: V(["form-value", e.valueClass])
|
|
1348
1348
|
}, [
|
|
1349
1349
|
y("div", Jn, [
|
|
1350
|
-
|
|
1350
|
+
O(e.$slots, "default")
|
|
1351
1351
|
])
|
|
1352
1352
|
], 2),
|
|
1353
1353
|
y("div", Kn, [
|
|
1354
|
-
|
|
1354
|
+
O(e.$slots, "form-item-detail")
|
|
1355
1355
|
])
|
|
1356
1356
|
])
|
|
1357
1357
|
], 2);
|
|
@@ -1380,47 +1380,47 @@ const _n = /* @__PURE__ */ B(Gn, [["render", Xn]]), el = U({
|
|
|
1380
1380
|
emits: ["update:modelValue"],
|
|
1381
1381
|
slots: Object,
|
|
1382
1382
|
setup(e, { emit: t }) {
|
|
1383
|
-
const { t: n } = K(), l =
|
|
1383
|
+
const { t: n } = K(), l = C({
|
|
1384
1384
|
get: () => e.modelValue,
|
|
1385
|
-
set: (
|
|
1386
|
-
t("update:modelValue",
|
|
1385
|
+
set: (i) => {
|
|
1386
|
+
t("update:modelValue", i);
|
|
1387
1387
|
}
|
|
1388
1388
|
});
|
|
1389
1389
|
return {
|
|
1390
|
-
computedPlaceholder:
|
|
1390
|
+
computedPlaceholder: C(() => e.placeholder || n("messages.pleaseEnter")),
|
|
1391
1391
|
innerValue: l,
|
|
1392
|
-
updateItem: (
|
|
1392
|
+
updateItem: (i, c) => {
|
|
1393
1393
|
const u = String(c ?? "");
|
|
1394
|
-
if (l.value[
|
|
1394
|
+
if (l.value[i] !== u) {
|
|
1395
1395
|
const g = [...l.value];
|
|
1396
|
-
g[
|
|
1396
|
+
g[i] = u, l.value = g;
|
|
1397
1397
|
}
|
|
1398
1398
|
},
|
|
1399
|
-
addItem: (
|
|
1399
|
+
addItem: (i) => {
|
|
1400
1400
|
const c = [...l.value];
|
|
1401
|
-
c.splice(
|
|
1401
|
+
c.splice(i, 0, e.defaultNewValue), l.value = c;
|
|
1402
1402
|
},
|
|
1403
|
-
removeItem: (
|
|
1403
|
+
removeItem: (i) => {
|
|
1404
1404
|
const c = [...l.value];
|
|
1405
|
-
c.splice(
|
|
1405
|
+
c.splice(i, 1), l.value = c;
|
|
1406
1406
|
}
|
|
1407
1407
|
};
|
|
1408
1408
|
}
|
|
1409
1409
|
}), tl = { class: "col-6" }, nl = { style: { "margin-top": "4px" } };
|
|
1410
1410
|
function ll(e, t, n, l, r, a) {
|
|
1411
|
-
const
|
|
1412
|
-
return m(),
|
|
1413
|
-
|
|
1411
|
+
const s = N("j-q-input"), o = N("q-btn"), i = N("j-q-form-label");
|
|
1412
|
+
return m(), T("div", null, [
|
|
1413
|
+
j(i, {
|
|
1414
1414
|
label: e.label,
|
|
1415
1415
|
required: e.required
|
|
1416
1416
|
}, {
|
|
1417
1417
|
default: I(() => [
|
|
1418
|
-
(m(!0),
|
|
1418
|
+
(m(!0), T(ee, null, ne(e.innerValue, (c, u) => (m(), T("div", {
|
|
1419
1419
|
key: u,
|
|
1420
1420
|
class: "row q-col-gutter-sm"
|
|
1421
1421
|
}, [
|
|
1422
1422
|
y("div", tl, [
|
|
1423
|
-
|
|
1423
|
+
j(s, {
|
|
1424
1424
|
"model-value": c,
|
|
1425
1425
|
"onUpdate:modelValue": (g) => e.updateItem(u, g),
|
|
1426
1426
|
rules: e.rules,
|
|
@@ -1428,13 +1428,13 @@ function ll(e, t, n, l, r, a) {
|
|
|
1428
1428
|
placeholder: e.computedPlaceholder
|
|
1429
1429
|
}, {
|
|
1430
1430
|
after: I(() => [
|
|
1431
|
-
|
|
1431
|
+
O(e.$slots, "after")
|
|
1432
1432
|
]),
|
|
1433
1433
|
_: 3
|
|
1434
1434
|
}, 8, ["model-value", "onUpdate:modelValue", "rules", "readonly", "placeholder"])
|
|
1435
1435
|
]),
|
|
1436
1436
|
y("div", nl, [
|
|
1437
|
-
e.innerValue.length > 1 ? (m(),
|
|
1437
|
+
e.innerValue.length > 1 ? (m(), Y(o, {
|
|
1438
1438
|
key: 0,
|
|
1439
1439
|
icon: "remove_circle_outline",
|
|
1440
1440
|
flat: "",
|
|
@@ -1442,8 +1442,8 @@ function ll(e, t, n, l, r, a) {
|
|
|
1442
1442
|
dense: "",
|
|
1443
1443
|
color: "grey",
|
|
1444
1444
|
onClick: (g) => e.removeItem(u)
|
|
1445
|
-
}, null, 8, ["onClick"])) :
|
|
1446
|
-
e.innerValue.length - 1 === u && e.innerValue.length < e.maxItems ? (m(),
|
|
1445
|
+
}, null, 8, ["onClick"])) : $("", !0),
|
|
1446
|
+
e.innerValue.length - 1 === u && e.innerValue.length < e.maxItems ? (m(), Y(o, {
|
|
1447
1447
|
key: 1,
|
|
1448
1448
|
icon: "add_circle_outline",
|
|
1449
1449
|
flat: "",
|
|
@@ -1452,7 +1452,7 @@ function ll(e, t, n, l, r, a) {
|
|
|
1452
1452
|
color: "grey",
|
|
1453
1453
|
onClick: (g) => e.addItem(u + 1),
|
|
1454
1454
|
type: e.inputType
|
|
1455
|
-
}, null, 8, ["onClick", "type"])) :
|
|
1455
|
+
}, null, 8, ["onClick", "type"])) : $("", !0)
|
|
1456
1456
|
])
|
|
1457
1457
|
]))), 128))
|
|
1458
1458
|
]),
|
|
@@ -1466,8 +1466,8 @@ const us = /* @__PURE__ */ B(el, [["render", ll]]), ol = U({
|
|
|
1466
1466
|
QIcon: le,
|
|
1467
1467
|
QMenu: xt,
|
|
1468
1468
|
QList: Wt,
|
|
1469
|
-
QItem:
|
|
1470
|
-
QItemSection:
|
|
1469
|
+
QItem: jt,
|
|
1470
|
+
QItemSection: Ct,
|
|
1471
1471
|
JCPermission: bt
|
|
1472
1472
|
},
|
|
1473
1473
|
props: {
|
|
@@ -1527,32 +1527,33 @@ const us = /* @__PURE__ */ B(el, [["render", ll]]), ol = U({
|
|
|
1527
1527
|
action: (e) => !0
|
|
1528
1528
|
},
|
|
1529
1529
|
setup(e, { emit: t }) {
|
|
1530
|
-
const { t: n } = K(), l =
|
|
1530
|
+
const { t: n } = K(), l = C(() => e.translate ?? n), r = Ve(lt, h([])), a = Ve(ot, h([])), s = (D, k, S) => typeof D == "function" ? !!D(k) : typeof D == "boolean" ? D : S, o = (D) => s(D.visible, e.item, !0), i = (D) => s(D.disabled, e.item, !1), c = (D) => D ? a.value.includes(D) || r.value.includes(D) : !0, u = (D) => o(D) ? c(D.permissionCode) : !1, g = C(() => e.actions.some((D) => u(D))), M = C(() => typeof e.fit == "boolean" ? e.fit : e.preset === "option"), d = C(() => {
|
|
1531
1531
|
if (e.preset === "action")
|
|
1532
1532
|
return e.offset ?? [5, 10];
|
|
1533
|
-
}),
|
|
1533
|
+
}), p = C(() => {
|
|
1534
1534
|
if (e.preset === "action")
|
|
1535
1535
|
return e.anchor ?? "bottom left";
|
|
1536
|
-
}),
|
|
1536
|
+
}), A = C(() => {
|
|
1537
1537
|
if (e.preset === "action")
|
|
1538
1538
|
return e.self ?? "top start";
|
|
1539
|
-
}),
|
|
1540
|
-
t("action", { action:
|
|
1539
|
+
}), v = C(() => e.preset !== "action" ? void 0 : { minWidth: e.listMinWidth ?? "80px" }), Q = C(() => e.menuClass ?? void 0), q = C(() => e.preset === "option" ? { "styling-menu-option": "" } : e.preset === "action" ? { "styling-menu-action": "" } : {}), E = (D) => typeof D.label == "function" ? D.label({ item: e.item, action: D }) : typeof D.label == "string" && D.label ? D.label : D.i18nKey ? l.value(D.i18nKey) : "", z = async (D) => {
|
|
1540
|
+
t("action", { action: D, item: e.item }), D.onClick && await D.onClick(e.item);
|
|
1541
1541
|
};
|
|
1542
1542
|
return {
|
|
1543
|
-
hasVisibleActions:
|
|
1544
|
-
isActionVisible:
|
|
1543
|
+
hasVisibleActions: g,
|
|
1544
|
+
isActionVisible: o,
|
|
1545
1545
|
isActionDisabled: i,
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1546
|
+
shouldShowAction: u,
|
|
1547
|
+
preset: C(() => e.preset),
|
|
1548
|
+
computedFit: M,
|
|
1549
|
+
computedOffset: d,
|
|
1550
|
+
computedAnchor: p,
|
|
1551
|
+
computedSelf: A,
|
|
1552
|
+
computedListStyle: v,
|
|
1553
|
+
computedMenuClass: Q,
|
|
1554
|
+
computedMenuAttrs: q,
|
|
1555
|
+
getActionLabel: E,
|
|
1556
|
+
handleActionClick: z
|
|
1556
1557
|
};
|
|
1557
1558
|
}
|
|
1558
1559
|
}), al = {
|
|
@@ -1560,17 +1561,17 @@ const us = /* @__PURE__ */ B(el, [["render", ll]]), ol = U({
|
|
|
1560
1561
|
class: "jc-more-menu"
|
|
1561
1562
|
}, sl = { class: "jc-more-menu__icon" };
|
|
1562
1563
|
function il(e, t, n, l, r, a) {
|
|
1563
|
-
const
|
|
1564
|
-
return e.hasVisibleActions ? (m(),
|
|
1564
|
+
const s = N("q-icon"), o = N("q-item-section"), i = N("q-item"), c = N("j-c-permission"), u = N("q-list"), g = N("q-menu"), M = tt("close-popup");
|
|
1565
|
+
return e.hasVisibleActions ? (m(), T("div", al, [
|
|
1565
1566
|
y("div", sl, [
|
|
1566
|
-
|
|
1567
|
-
|
|
1567
|
+
O(e.$slots, "trigger", {}, () => [
|
|
1568
|
+
j(s, {
|
|
1568
1569
|
class: "cursor-pointer",
|
|
1569
1570
|
name: "more_vert",
|
|
1570
1571
|
size: e.triggerSize
|
|
1571
1572
|
}, null, 8, ["size"])
|
|
1572
1573
|
], !0),
|
|
1573
|
-
|
|
1574
|
+
j(g, Te({
|
|
1574
1575
|
fit: e.computedFit,
|
|
1575
1576
|
class: e.computedMenuClass,
|
|
1576
1577
|
offset: e.computedOffset,
|
|
@@ -1578,28 +1579,28 @@ function il(e, t, n, l, r, a) {
|
|
|
1578
1579
|
self: e.computedSelf
|
|
1579
1580
|
}, e.computedMenuAttrs), {
|
|
1580
1581
|
default: I(() => [
|
|
1581
|
-
|
|
1582
|
+
j(u, {
|
|
1582
1583
|
dense: e.dense,
|
|
1583
1584
|
style: H(e.computedListStyle)
|
|
1584
1585
|
}, {
|
|
1585
1586
|
default: I(() => [
|
|
1586
|
-
(m(!0),
|
|
1587
|
+
(m(!0), T(ee, null, ne(e.actions, (d, p) => (m(), Y(c, {
|
|
1587
1588
|
key: d.key ?? p,
|
|
1588
1589
|
"rm-dom": d.rmDom ?? !0,
|
|
1589
1590
|
code: d.permissionCode ?? null,
|
|
1590
1591
|
"default-content": d.defaultContent ?? "--"
|
|
1591
1592
|
}, {
|
|
1592
1593
|
default: I(() => [
|
|
1593
|
-
e.
|
|
1594
|
+
e.shouldShowAction(d) ? oe((m(), Y(i, {
|
|
1594
1595
|
key: 0,
|
|
1595
1596
|
clickable: d.clickable ?? !0,
|
|
1596
1597
|
disable: e.isActionDisabled(d),
|
|
1597
|
-
onClick: (
|
|
1598
|
+
onClick: (A) => e.handleActionClick(d)
|
|
1598
1599
|
}, {
|
|
1599
1600
|
default: I(() => [
|
|
1600
|
-
|
|
1601
|
+
j(o, null, {
|
|
1601
1602
|
default: I(() => [
|
|
1602
|
-
W(
|
|
1603
|
+
W(w(e.getActionLabel(d)), 1)
|
|
1603
1604
|
]),
|
|
1604
1605
|
_: 2
|
|
1605
1606
|
}, 1024)
|
|
@@ -1607,7 +1608,7 @@ function il(e, t, n, l, r, a) {
|
|
|
1607
1608
|
_: 2
|
|
1608
1609
|
}, 1032, ["clickable", "disable", "onClick"])), [
|
|
1609
1610
|
[M, d.closePopup ?? !0]
|
|
1610
|
-
]) :
|
|
1611
|
+
]) : $("", !0)
|
|
1611
1612
|
]),
|
|
1612
1613
|
_: 2
|
|
1613
1614
|
}, 1032, ["rm-dom", "code", "default-content"]))), 128))
|
|
@@ -1618,13 +1619,13 @@ function il(e, t, n, l, r, a) {
|
|
|
1618
1619
|
_: 1
|
|
1619
1620
|
}, 16, ["fit", "class", "offset", "anchor", "self"])
|
|
1620
1621
|
])
|
|
1621
|
-
])) :
|
|
1622
|
+
])) : $("", !0);
|
|
1622
1623
|
}
|
|
1623
|
-
const ds = /* @__PURE__ */ B(ol, [["render", il], ["__scopeId", "data-v-
|
|
1624
|
+
const ds = /* @__PURE__ */ B(ol, [["render", il], ["__scopeId", "data-v-97961741"]]), _e = h("hide-tooltip"), rl = {
|
|
1624
1625
|
mounted(e, t) {
|
|
1625
1626
|
const n = t.arg === "lines" ? t.value : 1;
|
|
1626
1627
|
e.addEventListener("mouseenter", () => {
|
|
1627
|
-
ul(e, n) ?
|
|
1628
|
+
ul(e, n) ? _e.value = "" : _e.value = "hide-tooltip";
|
|
1628
1629
|
});
|
|
1629
1630
|
}
|
|
1630
1631
|
};
|
|
@@ -1655,7 +1656,7 @@ const dl = U({
|
|
|
1655
1656
|
"j-q-tooltip": rl
|
|
1656
1657
|
},
|
|
1657
1658
|
setup(e) {
|
|
1658
|
-
const t =
|
|
1659
|
+
const t = C(() => _e.value), n = C(() => e.lines === 1 ? "ellipsis" : "ellipsis-multi"), l = C(() => {
|
|
1659
1660
|
const r = e.contentStyle;
|
|
1660
1661
|
return e.lines > 1 ? `${r}; -webkit-line-clamp: ${e.lines};` : r;
|
|
1661
1662
|
});
|
|
@@ -1667,20 +1668,20 @@ const dl = U({
|
|
|
1667
1668
|
}
|
|
1668
1669
|
});
|
|
1669
1670
|
function cl(e, t, n, l, r, a) {
|
|
1670
|
-
const
|
|
1671
|
-
return oe((m(),
|
|
1672
|
-
class:
|
|
1671
|
+
const s = N("q-tooltip"), o = tt("j-q-tooltip");
|
|
1672
|
+
return oe((m(), T("div", {
|
|
1673
|
+
class: V(["block", e.ellipsisClass]),
|
|
1673
1674
|
style: H(e.computedStyle)
|
|
1674
1675
|
}, [
|
|
1675
|
-
W(
|
|
1676
|
-
|
|
1677
|
-
class:
|
|
1676
|
+
W(w(e.content) + " ", 1),
|
|
1677
|
+
j(s, {
|
|
1678
|
+
class: V([e.toolTipClass, "j-q-tooltip-content"]),
|
|
1678
1679
|
anchor: "top middle",
|
|
1679
1680
|
self: "bottom middle",
|
|
1680
1681
|
"max-width": "300px"
|
|
1681
1682
|
}, {
|
|
1682
1683
|
default: I(() => [
|
|
1683
|
-
W(
|
|
1684
|
+
W(w(e.content), 1)
|
|
1684
1685
|
]),
|
|
1685
1686
|
_: 1
|
|
1686
1687
|
}, 8, ["class"])
|
|
@@ -1688,10 +1689,10 @@ function cl(e, t, n, l, r, a) {
|
|
|
1688
1689
|
[o, e.lines, "lines"]
|
|
1689
1690
|
]);
|
|
1690
1691
|
}
|
|
1691
|
-
const
|
|
1692
|
+
const rt = /* @__PURE__ */ B(dl, [["render", cl]]), Ml = U({
|
|
1692
1693
|
name: "JCTabs",
|
|
1693
1694
|
components: {
|
|
1694
|
-
JQTooltip:
|
|
1695
|
+
JQTooltip: rt
|
|
1695
1696
|
},
|
|
1696
1697
|
props: {
|
|
1697
1698
|
// 绑定当前选中的值 (v-model)
|
|
@@ -1739,30 +1740,30 @@ const at = /* @__PURE__ */ B(dl, [["render", cl]]), Ml = U({
|
|
|
1739
1740
|
change: (e) => !0
|
|
1740
1741
|
},
|
|
1741
1742
|
setup(e, { emit: t }) {
|
|
1742
|
-
const n = (
|
|
1743
|
-
if (e.disable || e.modelValue ===
|
|
1743
|
+
const n = (s) => {
|
|
1744
|
+
if (e.disable || e.modelValue === s)
|
|
1744
1745
|
return;
|
|
1745
|
-
const o = e.options.find((
|
|
1746
|
-
o != null && o.disable || (t("update:modelValue",
|
|
1747
|
-
}, l = (
|
|
1748
|
-
if (!(
|
|
1749
|
-
return typeof
|
|
1746
|
+
const o = e.options.find((i) => i.value === s);
|
|
1747
|
+
o != null && o.disable || (t("update:modelValue", s), t("change", s));
|
|
1748
|
+
}, l = (s, o) => s.value === null || s.value === void 0 ? String(o) : String(s.value), r = (s) => {
|
|
1749
|
+
if (!(s == null || s === ""))
|
|
1750
|
+
return typeof s == "number" ? `${s}px` : s;
|
|
1750
1751
|
};
|
|
1751
1752
|
return {
|
|
1752
1753
|
handleClickTab: n,
|
|
1753
1754
|
slotKey: l,
|
|
1754
|
-
getItemLabelStyle: (
|
|
1755
|
-
const o = r(
|
|
1756
|
-
return o ? `${
|
|
1755
|
+
getItemLabelStyle: (s) => {
|
|
1756
|
+
const o = r(s.maxWidth ?? e.itemMaxWidth), i = "display:inline-block; vertical-align:middle;";
|
|
1757
|
+
return o ? `${i} max-width:${o};` : `${i}`;
|
|
1757
1758
|
}
|
|
1758
1759
|
};
|
|
1759
1760
|
}
|
|
1760
1761
|
}), gl = ["onClick"];
|
|
1761
1762
|
function ml(e, t, n, l, r, a) {
|
|
1762
|
-
const
|
|
1763
|
-
return m(),
|
|
1763
|
+
const s = N("JQTooltip");
|
|
1764
|
+
return m(), T("div", null, [
|
|
1764
1765
|
y("ul", {
|
|
1765
|
-
class:
|
|
1766
|
+
class: V(["j-c-tabs", {
|
|
1766
1767
|
"j-c-tabs--disabled": e.disable,
|
|
1767
1768
|
"j-c-tabs--flat": e.variant === "flat",
|
|
1768
1769
|
"j-c-tabs--line": e.variant === "line",
|
|
@@ -1770,27 +1771,27 @@ function ml(e, t, n, l, r, a) {
|
|
|
1770
1771
|
"j-c-tabs--expand": e.expand
|
|
1771
1772
|
}])
|
|
1772
1773
|
}, [
|
|
1773
|
-
(m(!0),
|
|
1774
|
-
key:
|
|
1775
|
-
class:
|
|
1774
|
+
(m(!0), T(ee, null, ne(e.options, (o, i) => (m(), T("li", {
|
|
1775
|
+
key: i,
|
|
1776
|
+
class: V({
|
|
1776
1777
|
active: e.modelValue === o.value,
|
|
1777
1778
|
"is-disabled": e.disable || o.disable
|
|
1778
1779
|
}),
|
|
1779
1780
|
onClick: (c) => e.handleClickTab(o.value)
|
|
1780
1781
|
}, [
|
|
1781
|
-
|
|
1782
|
+
O(e.$slots, `item-${e.slotKey(o, i)}`, {
|
|
1782
1783
|
item: o,
|
|
1783
|
-
index:
|
|
1784
|
+
index: i,
|
|
1784
1785
|
active: e.modelValue === o.value,
|
|
1785
1786
|
labelStyle: e.getItemLabelStyle(o)
|
|
1786
1787
|
}, () => [
|
|
1787
|
-
|
|
1788
|
+
O(e.$slots, "item", {
|
|
1788
1789
|
item: o,
|
|
1789
|
-
index:
|
|
1790
|
+
index: i,
|
|
1790
1791
|
active: e.modelValue === o.value,
|
|
1791
1792
|
labelStyle: e.getItemLabelStyle(o)
|
|
1792
1793
|
}, () => [
|
|
1793
|
-
|
|
1794
|
+
j(s, {
|
|
1794
1795
|
content: o.label,
|
|
1795
1796
|
lines: 1,
|
|
1796
1797
|
"content-style": e.getItemLabelStyle(o)
|
|
@@ -1799,7 +1800,7 @@ function ml(e, t, n, l, r, a) {
|
|
|
1799
1800
|
], !0)
|
|
1800
1801
|
], 10, gl))), 128))
|
|
1801
1802
|
], 2),
|
|
1802
|
-
|
|
1803
|
+
O(e.$slots, "default", {}, void 0, !0)
|
|
1803
1804
|
]);
|
|
1804
1805
|
}
|
|
1805
1806
|
const cs = /* @__PURE__ */ B(Ml, [["render", ml], ["__scopeId", "data-v-cc043f30"]]), pl = U({
|
|
@@ -1818,13 +1819,13 @@ const cs = /* @__PURE__ */ B(Ml, [["render", ml], ["__scopeId", "data-v-cc043f30
|
|
|
1818
1819
|
class: "title-line__extra"
|
|
1819
1820
|
};
|
|
1820
1821
|
function Il(e, t, n, l, r, a) {
|
|
1821
|
-
return m(),
|
|
1822
|
+
return m(), T("div", null, [
|
|
1822
1823
|
y("div", fl, [
|
|
1823
1824
|
y("span", null, [
|
|
1824
|
-
W(
|
|
1825
|
-
e.hasSlot("default") ? (m(),
|
|
1826
|
-
|
|
1827
|
-
])) :
|
|
1825
|
+
W(w(e.label) + " ", 1),
|
|
1826
|
+
e.hasSlot("default") ? (m(), T("span", yl, [
|
|
1827
|
+
O(e.$slots, "default", {}, void 0, !0)
|
|
1828
|
+
])) : $("", !0)
|
|
1828
1829
|
])
|
|
1829
1830
|
])
|
|
1830
1831
|
]);
|
|
@@ -1832,7 +1833,7 @@ function Il(e, t, n, l, r, a) {
|
|
|
1832
1833
|
const Ms = /* @__PURE__ */ B(pl, [["render", Il], ["__scopeId", "data-v-634ec7db"]]), Dl = U({
|
|
1833
1834
|
name: "jCTree",
|
|
1834
1835
|
components: {
|
|
1835
|
-
JQTooltip:
|
|
1836
|
+
JQTooltip: rt,
|
|
1836
1837
|
QTree: Gt
|
|
1837
1838
|
},
|
|
1838
1839
|
props: {
|
|
@@ -1847,14 +1848,14 @@ const Ms = /* @__PURE__ */ B(pl, [["render", Il], ["__scopeId", "data-v-634ec7db
|
|
|
1847
1848
|
},
|
|
1848
1849
|
emits: ["update:modelValue"],
|
|
1849
1850
|
setup(e, { emit: t, expose: n }) {
|
|
1850
|
-
const l = h(null), { t: r } = K(), a = h(e.modelValue ?? []),
|
|
1851
|
+
const l = h(null), { t: r } = K(), a = h(e.modelValue ?? []), s = C(() => e.tickStrategy === "strict" && !e.multiple), o = C({
|
|
1851
1852
|
get() {
|
|
1852
1853
|
return e.modelValue ?? a.value;
|
|
1853
1854
|
},
|
|
1854
|
-
set(
|
|
1855
|
-
let c =
|
|
1856
|
-
if (
|
|
1857
|
-
const u = Array.isArray(
|
|
1855
|
+
set(i) {
|
|
1856
|
+
let c = i;
|
|
1857
|
+
if (s.value) {
|
|
1858
|
+
const u = Array.isArray(i) ? i : [], g = u.length > 0 ? u[u.length - 1] : void 0;
|
|
1858
1859
|
c = g ? [g] : [];
|
|
1859
1860
|
}
|
|
1860
1861
|
a.value = c, t("update:modelValue", c);
|
|
@@ -1862,8 +1863,8 @@ const Ms = /* @__PURE__ */ B(pl, [["render", Il], ["__scopeId", "data-v-634ec7db
|
|
|
1862
1863
|
});
|
|
1863
1864
|
return G(
|
|
1864
1865
|
() => e.modelValue,
|
|
1865
|
-
(
|
|
1866
|
-
a.value =
|
|
1866
|
+
(i) => {
|
|
1867
|
+
a.value = i ?? [];
|
|
1867
1868
|
}
|
|
1868
1869
|
), n({
|
|
1869
1870
|
qTreeRef: l
|
|
@@ -1875,11 +1876,11 @@ const Ms = /* @__PURE__ */ B(pl, [["render", Il], ["__scopeId", "data-v-634ec7db
|
|
|
1875
1876
|
}
|
|
1876
1877
|
}), Al = { class: "q-tree-label-wrapper" }, Nl = { class: "q-tree-label-truncate" };
|
|
1877
1878
|
function Cl(e, t, n, l, r, a) {
|
|
1878
|
-
const
|
|
1879
|
-
return m(),
|
|
1879
|
+
const s = N("j-q-tooltip"), o = N("q-tree");
|
|
1880
|
+
return m(), Y(o, {
|
|
1880
1881
|
ref: "main",
|
|
1881
1882
|
ticked: e.computedValue,
|
|
1882
|
-
"onUpdate:ticked": t[0] || (t[0] = (
|
|
1883
|
+
"onUpdate:ticked": t[0] || (t[0] = (i) => e.computedValue = i),
|
|
1883
1884
|
"default-expand-all": "",
|
|
1884
1885
|
"label-key": e.optionLabel,
|
|
1885
1886
|
"node-key": e.optionValue,
|
|
@@ -1887,14 +1888,14 @@ function Cl(e, t, n, l, r, a) {
|
|
|
1887
1888
|
"tick-strategy": e.tickStrategy,
|
|
1888
1889
|
"no-nodes-label": e.t("messages.noData")
|
|
1889
1890
|
}, {
|
|
1890
|
-
"default-header": I((
|
|
1891
|
+
"default-header": I((i) => [
|
|
1891
1892
|
y("div", Al, [
|
|
1892
|
-
|
|
1893
|
-
content:
|
|
1893
|
+
j(s, {
|
|
1894
|
+
content: i.node[e.optionLabel],
|
|
1894
1895
|
style: { "max-width": "320px" }
|
|
1895
1896
|
}, {
|
|
1896
1897
|
default: I(() => [
|
|
1897
|
-
y("div", Nl,
|
|
1898
|
+
y("div", Nl, w(i.node[e.optionLabel]), 1)
|
|
1898
1899
|
]),
|
|
1899
1900
|
_: 2
|
|
1900
1901
|
}, 1032, ["content"])
|
|
@@ -1935,69 +1936,69 @@ const jl = /* @__PURE__ */ B(Dl, [["render", Cl]]), zl = U({
|
|
|
1935
1936
|
},
|
|
1936
1937
|
slots: Object,
|
|
1937
1938
|
setup(e, { emit: t, expose: n }) {
|
|
1938
|
-
const l = h(null), { t: r } = K(), a = h(!1),
|
|
1939
|
+
const l = h(null), { t: r } = K(), a = h(!1), s = h(""), o = h([]), i = h(e.modelValue ?? []), c = C(() => e.tickStrategy === "strict" && !e.multiple), u = C({
|
|
1939
1940
|
get() {
|
|
1940
|
-
return e.modelValue ||
|
|
1941
|
+
return e.modelValue || i.value;
|
|
1941
1942
|
},
|
|
1942
|
-
set(
|
|
1943
|
-
let
|
|
1944
|
-
|
|
1943
|
+
set(E) {
|
|
1944
|
+
let z = E;
|
|
1945
|
+
i.value = z, t("update:modelValue", z), c.value && z != null && z.length && (a.value = !1);
|
|
1945
1946
|
}
|
|
1946
|
-
}), g =
|
|
1947
|
+
}), g = C({
|
|
1947
1948
|
get() {
|
|
1948
1949
|
return e.disable || e.readonly ? !1 : a.value;
|
|
1949
1950
|
},
|
|
1950
|
-
set(
|
|
1951
|
-
a.value =
|
|
1951
|
+
set(E) {
|
|
1952
|
+
a.value = E;
|
|
1952
1953
|
}
|
|
1953
1954
|
});
|
|
1954
1955
|
G(
|
|
1955
1956
|
() => e.modelValue,
|
|
1956
|
-
(
|
|
1957
|
-
|
|
1957
|
+
(E) => {
|
|
1958
|
+
i.value = E ?? [];
|
|
1958
1959
|
}
|
|
1959
|
-
), G(a, (
|
|
1960
|
-
|
|
1960
|
+
), G(a, (E) => {
|
|
1961
|
+
E || (s.value = "");
|
|
1961
1962
|
});
|
|
1962
1963
|
const M = () => {
|
|
1963
|
-
var
|
|
1964
|
-
if (!((
|
|
1965
|
-
const
|
|
1964
|
+
var k;
|
|
1965
|
+
if (!((k = u.value) != null && k.length)) return;
|
|
1966
|
+
const E = [], z = (S) => {
|
|
1966
1967
|
var Z, P;
|
|
1967
|
-
(Z =
|
|
1968
|
+
(Z = S.children) != null && Z.length && S.children.forEach(z), (P = u.value) != null && P.includes(S[e.optionValue]) && E.push(S);
|
|
1968
1969
|
};
|
|
1969
|
-
return (e.options || []).forEach(
|
|
1970
|
-
}, d =
|
|
1971
|
-
var
|
|
1972
|
-
if (!((
|
|
1970
|
+
return (e.options || []).forEach(z), E;
|
|
1971
|
+
}, d = C(() => {
|
|
1972
|
+
var z;
|
|
1973
|
+
if (!((z = u.value) != null && z.length)) return;
|
|
1973
1974
|
if (e.valueDisplayFn) return e.valueDisplayFn(u.value, e.options || []);
|
|
1974
|
-
const
|
|
1975
|
-
return
|
|
1976
|
-
}), p =
|
|
1977
|
-
if (o.value = [],
|
|
1978
|
-
let
|
|
1975
|
+
const E = M();
|
|
1976
|
+
return E == null ? void 0 : E.map((D) => D[e.optionLabel]).toString();
|
|
1977
|
+
}), p = C(() => e.options || []), A = C(() => s.value ? o.value : p.value), v = (E) => {
|
|
1978
|
+
if (o.value = [], !E) return;
|
|
1979
|
+
let z;
|
|
1979
1980
|
try {
|
|
1980
|
-
|
|
1981
|
+
z = new RegExp(E.toString(), "i");
|
|
1981
1982
|
} catch {
|
|
1982
1983
|
return;
|
|
1983
1984
|
}
|
|
1984
|
-
const
|
|
1985
|
+
const D = (k, S) => {
|
|
1985
1986
|
var te, me;
|
|
1986
|
-
const Z = { ...
|
|
1987
|
+
const Z = { ...k }, P = ((te = k[e.optionLabel]) == null ? void 0 : te.toString()) || "";
|
|
1987
1988
|
let J = !1;
|
|
1988
|
-
if (
|
|
1989
|
+
if (z.test(P) && (J = !0), (me = k.children) != null && me.length) {
|
|
1989
1990
|
const ce = [];
|
|
1990
|
-
|
|
1991
|
-
|
|
1991
|
+
k.children.forEach((Ne) => {
|
|
1992
|
+
D(Ne, ce) && (J = !0);
|
|
1992
1993
|
}), ce.length > 0 ? Z.children = ce : delete Z.children;
|
|
1993
1994
|
}
|
|
1994
|
-
return J ? (
|
|
1995
|
+
return J ? (S.push(Z), !0) : !1;
|
|
1995
1996
|
};
|
|
1996
|
-
p.value.forEach((
|
|
1997
|
-
},
|
|
1997
|
+
p.value.forEach((k) => D(k, o.value));
|
|
1998
|
+
}, Q = () => {
|
|
1998
1999
|
t("update:modelValue", []);
|
|
1999
2000
|
}, q = () => {
|
|
2000
|
-
|
|
2001
|
+
Q();
|
|
2001
2002
|
};
|
|
2002
2003
|
return n({
|
|
2003
2004
|
getFullValue: M
|
|
@@ -2008,10 +2009,10 @@ const jl = /* @__PURE__ */ B(Dl, [["render", Cl]]), zl = U({
|
|
|
2008
2009
|
computedValue: u,
|
|
2009
2010
|
computedValueDisplay: d,
|
|
2010
2011
|
popupVisible: g,
|
|
2011
|
-
inputValue:
|
|
2012
|
-
computedTreeOptions:
|
|
2013
|
-
onUpdateInputValue:
|
|
2014
|
-
handleClear:
|
|
2012
|
+
inputValue: s,
|
|
2013
|
+
computedTreeOptions: A,
|
|
2014
|
+
onUpdateInputValue: v,
|
|
2015
|
+
handleClear: Q,
|
|
2015
2016
|
getFullValue: M
|
|
2016
2017
|
};
|
|
2017
2018
|
}
|
|
@@ -2020,9 +2021,9 @@ const jl = /* @__PURE__ */ B(Dl, [["render", Cl]]), zl = U({
|
|
|
2020
2021
|
class: "j-c-tree-select-popup__header"
|
|
2021
2022
|
}, wl = { class: "j-c-tree-select-popup__main" };
|
|
2022
2023
|
function vl(e, t, n, l, r, a) {
|
|
2023
|
-
const
|
|
2024
|
-
return m(),
|
|
2025
|
-
class:
|
|
2024
|
+
const s = N("q-icon"), o = N("j-q-input"), i = N("j-c-tree"), c = N("q-popup-proxy"), u = N("q-field");
|
|
2025
|
+
return m(), Y(u, {
|
|
2026
|
+
class: V(["j-c-tree-select", {
|
|
2026
2027
|
"j-c-tree-select--table": e.label,
|
|
2027
2028
|
"j-c-tree-select--form": !e.label
|
|
2028
2029
|
}]),
|
|
@@ -2039,21 +2040,21 @@ function vl(e, t, n, l, r, a) {
|
|
|
2039
2040
|
}, {
|
|
2040
2041
|
control: I(() => [
|
|
2041
2042
|
y("div", bl, [
|
|
2042
|
-
|
|
2043
|
-
W(
|
|
2043
|
+
O(e.$slots, "value-display", {}, () => [
|
|
2044
|
+
W(w(e.computedValueDisplay), 1)
|
|
2044
2045
|
])
|
|
2045
2046
|
])
|
|
2046
2047
|
]),
|
|
2047
2048
|
append: I(() => {
|
|
2048
2049
|
var g;
|
|
2049
2050
|
return [
|
|
2050
|
-
e.clearable && !e.readonly && !e.disable && ((g = e.computedValue) != null && g.length) ? (m(),
|
|
2051
|
+
e.clearable && !e.readonly && !e.disable && ((g = e.computedValue) != null && g.length) ? (m(), Y(s, {
|
|
2051
2052
|
key: 0,
|
|
2052
2053
|
name: e.clearIcon,
|
|
2053
2054
|
class: "cursor-pointer q-field__focusable-action",
|
|
2054
2055
|
onMousedown: _(e.handleClearClick, ["stop"])
|
|
2055
|
-
}, null, 8, ["name", "onMousedown"])) :
|
|
2056
|
-
e.readonly || e.disable ?
|
|
2056
|
+
}, null, 8, ["name", "onMousedown"])) : $("", !0),
|
|
2057
|
+
e.readonly || e.disable ? $("", !0) : (m(), Y(s, {
|
|
2057
2058
|
key: 1,
|
|
2058
2059
|
name: e.dropdownIcon,
|
|
2059
2060
|
size: e.label ? "18px" : "20px",
|
|
@@ -2062,18 +2063,18 @@ function vl(e, t, n, l, r, a) {
|
|
|
2062
2063
|
];
|
|
2063
2064
|
}),
|
|
2064
2065
|
default: I(() => [
|
|
2065
|
-
oe(y("div", { class: "float-placeholder" },
|
|
2066
|
+
oe(y("div", { class: "float-placeholder" }, w(e.t("messages.pleaseSelect")), 513), [
|
|
2066
2067
|
[ie, !e.label && (e.computedValue === null || e.computedValue === void 0 || Array.isArray(e.computedValue) && e.computedValue.length === 0)]
|
|
2067
2068
|
]),
|
|
2068
|
-
|
|
2069
|
+
j(c, {
|
|
2069
2070
|
modelValue: e.popupVisible,
|
|
2070
2071
|
"onUpdate:modelValue": t[2] || (t[2] = (g) => e.popupVisible = g),
|
|
2071
2072
|
style: { "border-top-left-radius": "4px", "border-top-right-radius": "4px" }
|
|
2072
2073
|
}, {
|
|
2073
2074
|
default: I(() => [
|
|
2074
2075
|
y("div", Tl, [
|
|
2075
|
-
e.filterable ? (m(),
|
|
2076
|
-
|
|
2076
|
+
e.filterable ? (m(), T("div", hl, [
|
|
2077
|
+
j(o, {
|
|
2077
2078
|
modelValue: e.inputValue,
|
|
2078
2079
|
"onUpdate:modelValue": [
|
|
2079
2080
|
t[0] || (t[0] = (g) => e.inputValue = g),
|
|
@@ -2085,9 +2086,9 @@ function vl(e, t, n, l, r, a) {
|
|
|
2085
2086
|
class: "text-to-input",
|
|
2086
2087
|
"sm-input": ""
|
|
2087
2088
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "readonly", "disable"])
|
|
2088
|
-
])) :
|
|
2089
|
+
])) : $("", !0),
|
|
2089
2090
|
y("div", wl, [
|
|
2090
|
-
|
|
2091
|
+
j(i, {
|
|
2091
2092
|
ref: "treeRef",
|
|
2092
2093
|
modelValue: e.computedValue,
|
|
2093
2094
|
"onUpdate:modelValue": t[1] || (t[1] = (g) => e.computedValue = g),
|
|
@@ -2108,12 +2109,12 @@ function vl(e, t, n, l, r, a) {
|
|
|
2108
2109
|
_: 3
|
|
2109
2110
|
}, 8, ["class", "model-value", "label", "outlined", "rules", "readonly", "disable", "onClear"]);
|
|
2110
2111
|
}
|
|
2111
|
-
const gs = /* @__PURE__ */ B(zl, [["render", vl]]), Sl = { username: "current_user" },
|
|
2112
|
+
const gs = /* @__PURE__ */ B(zl, [["render", vl]]), Sl = { username: "current_user" }, pt = () => localStorage.getItem("APP_SEARCH_HISTORY") || "{}", Ll = (e) => {
|
|
2112
2113
|
localStorage.setItem("APP_SEARCH_HISTORY", e);
|
|
2113
2114
|
}, kl = U({
|
|
2114
2115
|
name: "JQAutocomplete",
|
|
2115
2116
|
components: {
|
|
2116
|
-
QInput:
|
|
2117
|
+
QInput: Pe
|
|
2117
2118
|
},
|
|
2118
2119
|
emits: ["update:model-value"],
|
|
2119
2120
|
props: {
|
|
@@ -2123,7 +2124,7 @@ const gs = /* @__PURE__ */ B(zl, [["render", vl]]), Sl = { username: "current_us
|
|
|
2123
2124
|
label: { type: String, default: "" }
|
|
2124
2125
|
},
|
|
2125
2126
|
setup(e, { emit: t, expose: n }) {
|
|
2126
|
-
const l =
|
|
2127
|
+
const l = C(() => `search_history__${Sl.username}__${e.searchKey}`), r = h(null), a = De({
|
|
2127
2128
|
maxLength: 5,
|
|
2128
2129
|
width: {
|
|
2129
2130
|
eid: "250px"
|
|
@@ -2134,39 +2135,39 @@ const gs = /* @__PURE__ */ B(zl, [["render", vl]]), Sl = { username: "current_us
|
|
|
2134
2135
|
uniqueKey: l.value
|
|
2135
2136
|
});
|
|
2136
2137
|
he(() => {
|
|
2137
|
-
|
|
2138
|
+
s();
|
|
2138
2139
|
}), G(
|
|
2139
2140
|
() => e.modelValue,
|
|
2140
2141
|
(d) => {
|
|
2141
2142
|
a.filterList = a.list.filter((p) => p.value.includes(d));
|
|
2142
2143
|
}
|
|
2143
2144
|
);
|
|
2144
|
-
const
|
|
2145
|
+
const s = () => {
|
|
2145
2146
|
try {
|
|
2146
|
-
const d =
|
|
2147
|
+
const d = pt(), p = JSON.parse(d);
|
|
2147
2148
|
a.list = p[l.value] || [];
|
|
2148
2149
|
} catch (d) {
|
|
2149
2150
|
console.error("Failed to load search history:", d), a.list = [];
|
|
2150
2151
|
}
|
|
2151
2152
|
}, o = () => {
|
|
2152
|
-
|
|
2153
|
+
s();
|
|
2153
2154
|
const d = e.modelValue;
|
|
2154
2155
|
d ? a.filterList = a.list.filter((p) => p.value.includes(d)) : a.filterList = a.list, a.visible = !0;
|
|
2155
|
-
},
|
|
2156
|
+
}, i = () => {
|
|
2156
2157
|
a.visible = !1;
|
|
2157
2158
|
}, c = () => {
|
|
2158
2159
|
a.filterList = a.list, r.value.blur();
|
|
2159
2160
|
}, u = (d) => {
|
|
2160
2161
|
const p = String(d ?? "");
|
|
2161
|
-
t("update:model-value", p), a.filterList = a.list.filter((
|
|
2162
|
+
t("update:model-value", p), a.filterList = a.list.filter((A) => A.value.includes(p));
|
|
2162
2163
|
}, g = (d) => {
|
|
2163
2164
|
t("update:model-value", d.value), a.visible = !1;
|
|
2164
2165
|
}, M = (d) => {
|
|
2165
|
-
if (!d || a.list.find((
|
|
2166
|
+
if (!d || a.list.find((A) => A.value === d)) return;
|
|
2166
2167
|
a.list.length >= a.maxLength && a.list.pop(), a.list.unshift({ id: +/* @__PURE__ */ new Date(), value: d });
|
|
2167
2168
|
let p;
|
|
2168
2169
|
try {
|
|
2169
|
-
p = JSON.parse(
|
|
2170
|
+
p = JSON.parse(pt());
|
|
2170
2171
|
} catch {
|
|
2171
2172
|
p = {};
|
|
2172
2173
|
}
|
|
@@ -2176,7 +2177,7 @@ const gs = /* @__PURE__ */ B(zl, [["render", vl]]), Sl = { username: "current_us
|
|
|
2176
2177
|
inputRef: r,
|
|
2177
2178
|
historyParams: a,
|
|
2178
2179
|
onFocus: o,
|
|
2179
|
-
onBlur:
|
|
2180
|
+
onBlur: i,
|
|
2180
2181
|
onClear: c,
|
|
2181
2182
|
onUpdateValue: u,
|
|
2182
2183
|
onSelectItem: g,
|
|
@@ -2186,12 +2187,12 @@ const gs = /* @__PURE__ */ B(zl, [["render", vl]]), Sl = { username: "current_us
|
|
|
2186
2187
|
}
|
|
2187
2188
|
}), Ol = { class: "j-q-autocomplete-list-container" }, El = ["onMousedown"], $l = { class: "value" };
|
|
2188
2189
|
function Yl(e, t, n, l, r, a) {
|
|
2189
|
-
const
|
|
2190
|
-
return m(),
|
|
2190
|
+
const s = N("q-input");
|
|
2191
|
+
return m(), T("div", {
|
|
2191
2192
|
class: "j-q-autocomplete",
|
|
2192
2193
|
style: H(`width: ${e.historyParams.width[e.searchId] || "auto"}`)
|
|
2193
2194
|
}, [
|
|
2194
|
-
|
|
2195
|
+
j(s, Te({
|
|
2195
2196
|
class: {
|
|
2196
2197
|
"j-q-input--table": e.label,
|
|
2197
2198
|
"j-q-input--form": !e.label
|
|
@@ -2216,11 +2217,11 @@ function Yl(e, t, n, l, r, a) {
|
|
|
2216
2217
|
}), null, 16, ["class", "label", "model-value", "onUpdate:modelValue", "onFocus", "onBlur", "onClear"]),
|
|
2217
2218
|
oe(y("div", Ol, [
|
|
2218
2219
|
y("ul", null, [
|
|
2219
|
-
(m(!0),
|
|
2220
|
+
(m(!0), T(ee, null, ne(e.historyParams.filterList, (o) => (m(), T("li", {
|
|
2220
2221
|
key: o.id,
|
|
2221
|
-
onMousedown: (
|
|
2222
|
+
onMousedown: (i) => e.onSelectItem(o)
|
|
2222
2223
|
}, [
|
|
2223
|
-
y("span", $l,
|
|
2224
|
+
y("span", $l, w(o.value), 1)
|
|
2224
2225
|
], 40, El))), 128))
|
|
2225
2226
|
])
|
|
2226
2227
|
], 512), [
|
|
@@ -2252,7 +2253,7 @@ const ms = /* @__PURE__ */ B(kl, [["render", Yl], ["__scopeId", "data-v-cd4f47bd
|
|
|
2252
2253
|
emits: ["confirm"],
|
|
2253
2254
|
slots: Object,
|
|
2254
2255
|
setup(e, { emit: t }) {
|
|
2255
|
-
const { t: n } = K(), l = h(null), r =
|
|
2256
|
+
const { t: n } = K(), l = h(null), r = C(() => e.confirmText || n("action.confirm")), a = C(() => e.cancelText || n("action.cancel"));
|
|
2256
2257
|
return {
|
|
2257
2258
|
popupRef: l,
|
|
2258
2259
|
handleCancel: () => {
|
|
@@ -2267,19 +2268,19 @@ const ms = /* @__PURE__ */ B(kl, [["render", Yl], ["__scopeId", "data-v-cd4f47bd
|
|
|
2267
2268
|
}
|
|
2268
2269
|
}), Ql = { class: "inline-block" }, Pl = { class: "title" }, ql = { class: "j-q-confirm-actions" };
|
|
2269
2270
|
function Ul(e, t, n, l, r, a) {
|
|
2270
|
-
const
|
|
2271
|
-
return m(),
|
|
2272
|
-
|
|
2273
|
-
|
|
2271
|
+
const s = N("q-card-section"), o = N("q-card"), i = N("q-popup-proxy");
|
|
2272
|
+
return m(), T("div", Ql, [
|
|
2273
|
+
O(e.$slots, "default", {}, void 0, !0),
|
|
2274
|
+
j(i, { ref: "popupRef" }, {
|
|
2274
2275
|
default: I(() => [
|
|
2275
|
-
|
|
2276
|
+
j(o, {
|
|
2276
2277
|
class: "j-q-confirm",
|
|
2277
2278
|
flat: ""
|
|
2278
2279
|
}, {
|
|
2279
2280
|
default: I(() => [
|
|
2280
|
-
|
|
2281
|
+
j(s, { class: "row items-center q-pa-none" }, {
|
|
2281
2282
|
default: I(() => [
|
|
2282
|
-
y("span", Pl,
|
|
2283
|
+
y("span", Pl, w(e.title), 1)
|
|
2283
2284
|
]),
|
|
2284
2285
|
_: 1
|
|
2285
2286
|
}),
|
|
@@ -2287,11 +2288,11 @@ function Ul(e, t, n, l, r, a) {
|
|
|
2287
2288
|
y("div", {
|
|
2288
2289
|
class: "j-q-confirm-btn j-q-confirm-btn--cancel",
|
|
2289
2290
|
onClick: t[0] || (t[0] = (...c) => e.handleCancel && e.handleCancel(...c))
|
|
2290
|
-
},
|
|
2291
|
+
}, w(e.computedCancelText), 1),
|
|
2291
2292
|
y("div", {
|
|
2292
2293
|
class: "j-q-confirm-btn j-q-confirm-btn--confirm",
|
|
2293
2294
|
onClick: t[1] || (t[1] = (...c) => e.handleConfirm && e.handleConfirm(...c))
|
|
2294
|
-
},
|
|
2295
|
+
}, w(e.computedConfirmText), 1)
|
|
2295
2296
|
])
|
|
2296
2297
|
]),
|
|
2297
2298
|
_: 1
|
|
@@ -2301,7 +2302,7 @@ function Ul(e, t, n, l, r, a) {
|
|
|
2301
2302
|
}, 512)
|
|
2302
2303
|
]);
|
|
2303
2304
|
}
|
|
2304
|
-
const ps = /* @__PURE__ */ B(Vl, [["render", Ul], ["__scopeId", "data-v-0525ec02"]]), ye = "YYYY-MM-DD HH:mm:ss",
|
|
2305
|
+
const ps = /* @__PURE__ */ B(Vl, [["render", Ul], ["__scopeId", "data-v-0525ec02"]]), ye = "YYYY-MM-DD HH:mm:ss", He = (e) => {
|
|
2305
2306
|
if (e === null || typeof e > "u" || e === "") return null;
|
|
2306
2307
|
if (typeof e == "number") return new Date(e);
|
|
2307
2308
|
if (typeof e == "string" && /^\d+$/.test(e)) return new Date(Number(e));
|
|
@@ -2313,7 +2314,7 @@ const ps = /* @__PURE__ */ B(Vl, [["render", Ul], ["__scopeId", "data-v-0525ec02
|
|
|
2313
2314
|
components: {
|
|
2314
2315
|
QField: ke,
|
|
2315
2316
|
QPopupProxy: Ae,
|
|
2316
|
-
QDate:
|
|
2317
|
+
QDate: zt,
|
|
2317
2318
|
QIcon: le
|
|
2318
2319
|
},
|
|
2319
2320
|
props: {
|
|
@@ -2340,71 +2341,71 @@ const ps = /* @__PURE__ */ B(Vl, [["render", Ul], ["__scopeId", "data-v-0525ec02
|
|
|
2340
2341
|
},
|
|
2341
2342
|
slots: Object,
|
|
2342
2343
|
setup(e, { emit: t, expose: n, slots: l }) {
|
|
2343
|
-
const r = h(!1), a = h(null), { t:
|
|
2344
|
+
const r = h(!1), a = h(null), { t: s } = K(), o = C({
|
|
2344
2345
|
get() {
|
|
2345
|
-
const
|
|
2346
|
-
if (
|
|
2346
|
+
const A = e.modelValue;
|
|
2347
|
+
if (A == null || A === "")
|
|
2347
2348
|
return null;
|
|
2348
2349
|
if (e.range) {
|
|
2349
|
-
if (typeof
|
|
2350
|
-
const
|
|
2351
|
-
if (
|
|
2350
|
+
if (typeof A == "object" && A !== null) {
|
|
2351
|
+
const Q = A.from, q = A.to, E = He(Q), z = He(q);
|
|
2352
|
+
if (E || z)
|
|
2352
2353
|
return {
|
|
2353
|
-
from:
|
|
2354
|
-
to:
|
|
2354
|
+
from: E ? R.formatDate(E, e.mask) : "",
|
|
2355
|
+
to: z ? R.formatDate(z, e.mask) : ""
|
|
2355
2356
|
};
|
|
2356
2357
|
}
|
|
2357
2358
|
return null;
|
|
2358
2359
|
}
|
|
2359
|
-
const
|
|
2360
|
-
return
|
|
2360
|
+
const v = He(A);
|
|
2361
|
+
return v ? R.formatDate(v, e.mask) : A;
|
|
2361
2362
|
},
|
|
2362
|
-
set(
|
|
2363
|
-
if (
|
|
2364
|
-
if (e.range && typeof
|
|
2365
|
-
const
|
|
2366
|
-
if (
|
|
2367
|
-
const
|
|
2368
|
-
R.formatDate(R.startOfDate(
|
|
2363
|
+
set(A) {
|
|
2364
|
+
if (A) {
|
|
2365
|
+
if (e.range && typeof A == "object" && A !== null) {
|
|
2366
|
+
const v = A;
|
|
2367
|
+
if (v.from && v.to) {
|
|
2368
|
+
const Q = R.extractDate(v.from, e.mask || "YYYY-MM-DD"), q = R.extractDate(v.to, e.mask || "YYYY-MM-DD");
|
|
2369
|
+
R.formatDate(R.startOfDate(Q, "day"), ye), R.formatDate(R.endOfDate(q, "day"), ye);
|
|
2369
2370
|
}
|
|
2370
|
-
} else if (!e.range && typeof
|
|
2371
|
-
const
|
|
2372
|
-
R.formatDate(R.startOfDate(
|
|
2373
|
-
} else if (e.range && typeof
|
|
2374
|
-
const
|
|
2375
|
-
R.formatDate(R.startOfDate(
|
|
2371
|
+
} else if (!e.range && typeof A == "string") {
|
|
2372
|
+
const v = R.extractDate(A, e.mask || "YYYY-MM-DD");
|
|
2373
|
+
R.formatDate(R.startOfDate(v, "day"), ye);
|
|
2374
|
+
} else if (e.range && typeof A == "string") {
|
|
2375
|
+
const v = R.extractDate(A, e.mask || "YYYY-MM-DD");
|
|
2376
|
+
R.formatDate(R.startOfDate(v, "day"), ye), R.formatDate(R.endOfDate(v, "day"), ye);
|
|
2376
2377
|
}
|
|
2377
2378
|
}
|
|
2378
|
-
t("update:modelValue",
|
|
2379
|
+
t("update:modelValue", A), A && (e.range || (r.value = !1));
|
|
2379
2380
|
}
|
|
2380
|
-
}),
|
|
2381
|
+
}), i = C(() => {
|
|
2381
2382
|
if (e.valueDisplayFn)
|
|
2382
2383
|
return String(e.valueDisplayFn(e.modelValue) ?? "");
|
|
2383
|
-
const
|
|
2384
|
-
if (!
|
|
2385
|
-
if (e.range && typeof
|
|
2386
|
-
const { from:
|
|
2387
|
-
return !
|
|
2384
|
+
const A = o.value;
|
|
2385
|
+
if (!A) return "";
|
|
2386
|
+
if (e.range && typeof A == "object") {
|
|
2387
|
+
const { from: v, to: Q } = A;
|
|
2388
|
+
return !v || !Q ? "" : v && Q ? `${v} - ${Q}` : "";
|
|
2388
2389
|
}
|
|
2389
|
-
return String(
|
|
2390
|
-
}), c =
|
|
2391
|
-
t("rangeStart",
|
|
2392
|
-
}, g = (
|
|
2393
|
-
t("rangeEnd",
|
|
2394
|
-
}, M = (
|
|
2395
|
-
t("hide",
|
|
2390
|
+
return String(A);
|
|
2391
|
+
}), c = C(() => !!l["popup-prepend"]), u = (A) => {
|
|
2392
|
+
t("rangeStart", A);
|
|
2393
|
+
}, g = (A) => {
|
|
2394
|
+
t("rangeEnd", A);
|
|
2395
|
+
}, M = (A) => {
|
|
2396
|
+
t("hide", A);
|
|
2396
2397
|
}, d = () => {
|
|
2397
2398
|
o.value = null, a.value.blur();
|
|
2398
2399
|
}, p = () => {
|
|
2399
2400
|
d();
|
|
2400
2401
|
};
|
|
2401
2402
|
return n({ popupVisible: r }), {
|
|
2402
|
-
t:
|
|
2403
|
+
t: s,
|
|
2403
2404
|
fieldRef: a,
|
|
2404
2405
|
handleClear: d,
|
|
2405
2406
|
handleClearClick: p,
|
|
2406
2407
|
computedValue: o,
|
|
2407
|
-
computedValueDisplay:
|
|
2408
|
+
computedValueDisplay: i,
|
|
2408
2409
|
popupVisible: r,
|
|
2409
2410
|
hasPopupPrepend: c,
|
|
2410
2411
|
onHidePopup: M,
|
|
@@ -2418,10 +2419,10 @@ const ps = /* @__PURE__ */ B(Vl, [["render", Ul], ["__scopeId", "data-v-0525ec02
|
|
|
2418
2419
|
class: "date-popup-prepend"
|
|
2419
2420
|
};
|
|
2420
2421
|
function Wl(e, t, n, l, r, a) {
|
|
2421
|
-
const
|
|
2422
|
-
return m(),
|
|
2422
|
+
const s = N("q-date"), o = N("q-popup-proxy"), i = N("q-icon"), c = N("q-field");
|
|
2423
|
+
return m(), Y(c, {
|
|
2423
2424
|
ref: "fieldRef",
|
|
2424
|
-
class:
|
|
2425
|
+
class: V(["j-q-date", {
|
|
2425
2426
|
"j-q-date--table": e.label,
|
|
2426
2427
|
"j-q-date--form": !e.label
|
|
2427
2428
|
}]),
|
|
@@ -2439,23 +2440,23 @@ function Wl(e, t, n, l, r, a) {
|
|
|
2439
2440
|
onClear: e.handleClear
|
|
2440
2441
|
}, {
|
|
2441
2442
|
control: I(() => [
|
|
2442
|
-
y("div", Zl,
|
|
2443
|
+
y("div", Zl, w(e.computedValueDisplay), 1)
|
|
2443
2444
|
]),
|
|
2444
2445
|
append: I(() => [
|
|
2445
|
-
e.clearable && !e.readonly && !e.disable && e.computedValue ? (m(),
|
|
2446
|
+
e.clearable && !e.readonly && !e.disable && e.computedValue ? (m(), Y(i, {
|
|
2446
2447
|
key: 0,
|
|
2447
2448
|
name: "app:clear",
|
|
2448
2449
|
class: "cursor-pointer q-field__focusable-action",
|
|
2449
2450
|
onClick: _(e.handleClearClick, ["stop", "prevent"]),
|
|
2450
2451
|
size: "16px",
|
|
2451
2452
|
color: "grey"
|
|
2452
|
-
}, null, 8, ["onClick"])) :
|
|
2453
|
+
}, null, 8, ["onClick"])) : $("", !0)
|
|
2453
2454
|
]),
|
|
2454
2455
|
default: I(() => [
|
|
2455
|
-
oe(y("div", { class: "float-placeholder" },
|
|
2456
|
+
oe(y("div", { class: "float-placeholder" }, w(e.t("messages.pleaseSelect")), 513), [
|
|
2456
2457
|
[ie, !e.computedValueDisplay && !e.label]
|
|
2457
2458
|
]),
|
|
2458
|
-
|
|
2459
|
+
j(o, {
|
|
2459
2460
|
modelValue: e.popupVisible,
|
|
2460
2461
|
"onUpdate:modelValue": t[1] || (t[1] = (u) => e.popupVisible = u),
|
|
2461
2462
|
onHide: e.onHidePopup
|
|
@@ -2465,10 +2466,10 @@ function Wl(e, t, n, l, r, a) {
|
|
|
2465
2466
|
class: "date-popup__inner",
|
|
2466
2467
|
style: H(e.popupInnerStyle)
|
|
2467
2468
|
}, [
|
|
2468
|
-
e.slots["popup-prepend"] ? (m(),
|
|
2469
|
-
|
|
2470
|
-
])) :
|
|
2471
|
-
|
|
2469
|
+
e.slots["popup-prepend"] ? (m(), T("div", Rl, [
|
|
2470
|
+
O(e.$slots, "popup-prepend")
|
|
2471
|
+
])) : $("", !0),
|
|
2472
|
+
j(s, {
|
|
2472
2473
|
modelValue: e.computedValue,
|
|
2473
2474
|
"onUpdate:modelValue": t[0] || (t[0] = (u) => e.computedValue = u),
|
|
2474
2475
|
minimal: "",
|
|
@@ -2486,9 +2487,9 @@ function Wl(e, t, n, l, r, a) {
|
|
|
2486
2487
|
_: 3
|
|
2487
2488
|
}, 8, ["class", "modelValue", "dense", "disable", "label", "outlined", "rules", "title", "onClear"]);
|
|
2488
2489
|
}
|
|
2489
|
-
const fs = /* @__PURE__ */ B(Bl, [["render", Wl]]), xl = "rtcpt", vt = `${xl}_third_component_state`,
|
|
2490
|
+
const fs = /* @__PURE__ */ B(Bl, [["render", Wl]]), xl = "rtcpt", vt = `${xl}_third_component_state`, ft = () => localStorage.getItem(vt), yt = (e) => {
|
|
2490
2491
|
localStorage.setItem(vt, e);
|
|
2491
|
-
}, Ie = "YYYY-MM-DD HH:mm:ss",
|
|
2492
|
+
}, Ie = "YYYY-MM-DD HH:mm:ss", Fe = "YYYY/MM/DD", Gl = (e, t) => Math.min(t, Math.max(0, Math.floor(e))), Hl = (e, t) => {
|
|
2492
2493
|
const n = t + 1;
|
|
2493
2494
|
let l = e % n;
|
|
2494
2495
|
return l < 0 ? l + n : l;
|
|
@@ -2511,8 +2512,8 @@ const fs = /* @__PURE__ */ B(Bl, [["render", Wl]]), xl = "rtcpt", vt = `${xl}_th
|
|
|
2511
2512
|
components: {
|
|
2512
2513
|
QField: ke,
|
|
2513
2514
|
QPopupProxy: Ae,
|
|
2514
|
-
QDate:
|
|
2515
|
-
QInput:
|
|
2515
|
+
QDate: zt,
|
|
2516
|
+
QInput: Pe,
|
|
2516
2517
|
QBtn: re,
|
|
2517
2518
|
QIcon: le
|
|
2518
2519
|
},
|
|
@@ -2534,7 +2535,7 @@ const fs = /* @__PURE__ */ B(Bl, [["render", Wl]]), xl = "rtcpt", vt = `${xl}_th
|
|
|
2534
2535
|
emits: ["hide", "update:modelValue"],
|
|
2535
2536
|
slots: Object,
|
|
2536
2537
|
setup(e, { emit: t, expose: n, slots: l }) {
|
|
2537
|
-
const { t: r } = K(), a = h(!1),
|
|
2538
|
+
const { t: r } = K(), a = h(!1), s = h(null), o = h(!1), i = h(!1), c = () => ({
|
|
2538
2539
|
h: parseInt(e.endhhmmss[0], 10) || 0,
|
|
2539
2540
|
m: parseInt(e.endhhmmss[1], 10) || 0,
|
|
2540
2541
|
s: parseInt(e.endhhmmss[2], 10) || 0
|
|
@@ -2543,7 +2544,7 @@ const fs = /* @__PURE__ */ B(Bl, [["render", Wl]]), xl = "rtcpt", vt = `${xl}_th
|
|
|
2543
2544
|
he(() => {
|
|
2544
2545
|
if (e.showTooltip)
|
|
2545
2546
|
try {
|
|
2546
|
-
const L =
|
|
2547
|
+
const L = ft();
|
|
2547
2548
|
if (L) {
|
|
2548
2549
|
const f = JSON.parse(L);
|
|
2549
2550
|
u.value = f.datetimeTooltipVisible !== !1;
|
|
@@ -2558,100 +2559,100 @@ const fs = /* @__PURE__ */ B(Bl, [["render", Wl]]), xl = "rtcpt", vt = `${xl}_th
|
|
|
2558
2559
|
const M = () => {
|
|
2559
2560
|
u.value = !1, g && (clearTimeout(g), g = null);
|
|
2560
2561
|
try {
|
|
2561
|
-
const L =
|
|
2562
|
+
const L = ft();
|
|
2562
2563
|
let f = L ? JSON.parse(L) : {};
|
|
2563
|
-
f.datetimeTooltipVisible = !1,
|
|
2564
|
+
f.datetimeTooltipVisible = !1, yt(JSON.stringify(f));
|
|
2564
2565
|
} catch {
|
|
2565
|
-
|
|
2566
|
+
yt(JSON.stringify({ datetimeTooltipVisible: !1 }));
|
|
2566
2567
|
}
|
|
2567
|
-
}, d = h({ from: null, to: null }), p = h(""),
|
|
2568
|
+
}, d = h({ from: null, to: null }), p = h(""), A = De(fe(null)), v = De(fe(null)), Q = h(null), q = h(""), E = De(fe(null)), z = C({
|
|
2568
2569
|
get: () => typeof e.modelValue == "string" && e.modelValue === "" ? null : e.modelValue,
|
|
2569
2570
|
set: (L) => t("update:modelValue", L)
|
|
2570
|
-
}),
|
|
2571
|
+
}), D = () => {
|
|
2571
2572
|
if (o.value) return;
|
|
2572
|
-
|
|
2573
|
-
const L =
|
|
2573
|
+
i.value = !0;
|
|
2574
|
+
const L = z.value;
|
|
2574
2575
|
if (e.range) {
|
|
2575
|
-
const f = L || { from: null, to: null },
|
|
2576
|
-
Object.assign(
|
|
2577
|
-
const x =
|
|
2578
|
-
X.h === 0 && X.m === 0 && X.s === 0 && F ? Object.assign(
|
|
2579
|
-
const pe = F ? R.formatDate(F,
|
|
2576
|
+
const f = L || { from: null, to: null }, b = se(f.from);
|
|
2577
|
+
Object.assign(A, fe(f.from));
|
|
2578
|
+
const x = b ? R.formatDate(b, Fe) : "", F = se(f.to), X = fe(f.to);
|
|
2579
|
+
X.h === 0 && X.m === 0 && X.s === 0 && F ? Object.assign(v, c()) : Object.assign(v, X);
|
|
2580
|
+
const pe = F ? R.formatDate(F, Fe) : "";
|
|
2580
2581
|
d.value = {
|
|
2581
|
-
from:
|
|
2582
|
-
to: F ? Me(pe,
|
|
2582
|
+
from: b ? R.formatDate(b, Ie) : null,
|
|
2583
|
+
to: F ? Me(pe, v) : null
|
|
2583
2584
|
}, p.value = x && pe ? { from: x, to: pe } : "";
|
|
2584
2585
|
} else {
|
|
2585
2586
|
const f = se(L);
|
|
2586
|
-
Object.assign(
|
|
2587
|
+
Object.assign(E, fe(L)), Q.value = f ? R.formatDate(f, Ie) : null, q.value = f ? R.formatDate(f, Fe) : "";
|
|
2587
2588
|
}
|
|
2588
2589
|
de(() => {
|
|
2589
|
-
|
|
2590
|
+
i.value = !1;
|
|
2590
2591
|
});
|
|
2591
2592
|
};
|
|
2592
|
-
G(() => e.modelValue,
|
|
2593
|
+
G(() => e.modelValue, D, { immediate: !0 }), G(
|
|
2593
2594
|
p,
|
|
2594
2595
|
(L, f) => {
|
|
2595
|
-
if (e.range && !
|
|
2596
|
+
if (e.range && !i.value)
|
|
2596
2597
|
if (typeof L == "object" && L !== null) {
|
|
2597
|
-
const
|
|
2598
|
-
if (f && typeof f == "object" && f !== null ? (
|
|
2599
|
-
const F = Me(
|
|
2598
|
+
const b = L.from, x = L.to;
|
|
2599
|
+
if (f && typeof f == "object" && f !== null ? (b !== f.from && Object.assign(A, { h: 0, m: 0, s: 0 }), x !== f.to && Object.assign(v, c())) : (Object.assign(A, { h: 0, m: 0, s: 0 }), Object.assign(v, c())), b && x) {
|
|
2600
|
+
const F = Me(b, A), X = Me(x, v);
|
|
2600
2601
|
if (d.value.from = F, d.value.to = X, F && X) {
|
|
2601
|
-
const pe = se(F),
|
|
2602
|
-
pe &&
|
|
2602
|
+
const pe = se(F), ct = se(X);
|
|
2603
|
+
pe && ct && pe.getTime() > ct.getTime() ? z.value = { from: X, to: F } : z.value = { from: F, to: X };
|
|
2603
2604
|
}
|
|
2604
2605
|
}
|
|
2605
|
-
} else typeof L == "string" && f && typeof f == "object" && (Object.assign(
|
|
2606
|
+
} else typeof L == "string" && f && typeof f == "object" && (Object.assign(A, { h: 0, m: 0, s: 0 }), d.value.from = Me(L, A));
|
|
2606
2607
|
},
|
|
2607
2608
|
{ deep: !0 }
|
|
2608
2609
|
), G(q, (L, f) => {
|
|
2609
|
-
e.range || o.value ||
|
|
2610
|
+
e.range || o.value || i.value || (L !== f && Object.assign(E, { h: 0, m: 0, s: 0 }), Q.value = Me(L, E));
|
|
2610
2611
|
});
|
|
2611
|
-
const
|
|
2612
|
+
const k = (L) => {
|
|
2612
2613
|
if (L === "single")
|
|
2613
|
-
|
|
2614
|
+
Q.value = Me(q.value, E);
|
|
2614
2615
|
else {
|
|
2615
|
-
const f = L === "from" ?
|
|
2616
|
-
let
|
|
2617
|
-
typeof p.value == "object" && p.value !== null ?
|
|
2616
|
+
const f = L === "from" ? A : v;
|
|
2617
|
+
let b = "";
|
|
2618
|
+
typeof p.value == "object" && p.value !== null ? b = L === "from" ? p.value.from : p.value.to : L === "from" && typeof p.value == "string" && (b = p.value), b && (d.value[L] = Me(b, f));
|
|
2618
2619
|
}
|
|
2619
2620
|
};
|
|
2620
2621
|
G(
|
|
2621
2622
|
d,
|
|
2622
2623
|
(L) => {
|
|
2623
|
-
if (!(!e.range ||
|
|
2624
|
-
const f = se(L.from),
|
|
2625
|
-
f &&
|
|
2624
|
+
if (!(!e.range || i.value) && L.from && L.to) {
|
|
2625
|
+
const f = se(L.from), b = se(L.to);
|
|
2626
|
+
f && b && f.getTime() > b.getTime() ? z.value = { from: L.to, to: L.from } : z.value = L;
|
|
2626
2627
|
}
|
|
2627
2628
|
},
|
|
2628
2629
|
{ deep: !0 }
|
|
2629
|
-
), G(
|
|
2630
|
-
e.range ||
|
|
2630
|
+
), G(Q, (L) => {
|
|
2631
|
+
e.range || i.value || (z.value = L);
|
|
2631
2632
|
});
|
|
2632
|
-
const
|
|
2633
|
+
const S = (L, f, b, x) => C({
|
|
2633
2634
|
get: () => String(L[f]).padStart(2, "0"),
|
|
2634
2635
|
set: (F) => {
|
|
2635
2636
|
let X = parseInt(F, 10);
|
|
2636
|
-
isNaN(X) && (X = 0), L[f] = Gl(X,
|
|
2637
|
+
isNaN(X) && (X = 0), L[f] = Gl(X, b), k(x);
|
|
2637
2638
|
}
|
|
2638
|
-
}), Z =
|
|
2639
|
+
}), Z = S(A, "h", 23, "from"), P = S(A, "m", 59, "from"), J = S(A, "s", 59, "from"), te = S(v, "h", 23, "to"), me = S(v, "m", 59, "to"), ce = S(v, "s", 59, "to"), Ne = S(E, "h", 23, "single"), Ee = S(E, "m", 59, "single"), qe = S(E, "s", 59, "single"), Ue = () => a.value = !1, $e = () => {
|
|
2639
2640
|
var L;
|
|
2640
|
-
o.value = !0, e.range ? (d.value = { from: null, to: null }, Object.assign(
|
|
2641
|
-
},
|
|
2641
|
+
o.value = !0, e.range ? (d.value = { from: null, to: null }, Object.assign(A, { h: 0, m: 0, s: 0 }), Object.assign(v, c()), p.value = { from: "", to: "" }) : (Q.value = null, Object.assign(E, { h: 0, m: 0, s: 0 }), q.value = ""), z.value = null, (L = s.value) == null || L.blur(), a.value = !1, setTimeout(() => o.value = !1, 0);
|
|
2642
|
+
}, Be = () => {
|
|
2642
2643
|
$e();
|
|
2643
|
-
},
|
|
2644
|
+
}, Ze = (L, f, b, x, F) => {
|
|
2644
2645
|
L.preventDefault();
|
|
2645
2646
|
const X = L.deltaY > 0 ? -1 : 1;
|
|
2646
|
-
f[
|
|
2647
|
-
},
|
|
2647
|
+
f[b] = Hl(f[b] + X, x), k(F);
|
|
2648
|
+
}, Re = C(() => {
|
|
2648
2649
|
if (e.valueDisplayFn) return String(e.valueDisplayFn(e.modelValue) ?? "");
|
|
2649
2650
|
if (e.range) {
|
|
2650
2651
|
const L = e.modelValue;
|
|
2651
2652
|
if (!L) return "";
|
|
2652
|
-
const { from: f, to:
|
|
2653
|
-
if (!f || !
|
|
2654
|
-
const x = se(f), F = se(
|
|
2653
|
+
const { from: f, to: b } = L;
|
|
2654
|
+
if (!f || !b) return "";
|
|
2655
|
+
const x = se(f), F = se(b);
|
|
2655
2656
|
if (x && F) return `${R.formatDate(x, Ie)} - ${R.formatDate(F, Ie)}`;
|
|
2656
2657
|
} else {
|
|
2657
2658
|
const L = se(e.modelValue);
|
|
@@ -2659,23 +2660,23 @@ const fs = /* @__PURE__ */ B(Bl, [["render", Wl]]), xl = "rtcpt", vt = `${xl}_th
|
|
|
2659
2660
|
}
|
|
2660
2661
|
return "";
|
|
2661
2662
|
}), Ye = () => {
|
|
2662
|
-
e.disable || e.readonly || (
|
|
2663
|
+
e.disable || e.readonly || (D(), a.value = !0, u.value && (g && clearTimeout(g), g = setTimeout(() => {
|
|
2663
2664
|
M();
|
|
2664
2665
|
}, 2e3)));
|
|
2665
|
-
},
|
|
2666
|
+
}, We = (L) => {
|
|
2666
2667
|
t("hide", L);
|
|
2667
2668
|
};
|
|
2668
2669
|
return n({ popupVisible: a }), {
|
|
2669
2670
|
t: r,
|
|
2670
|
-
fieldRef:
|
|
2671
|
+
fieldRef: s,
|
|
2671
2672
|
popupVisible: a,
|
|
2672
2673
|
handleClear: $e,
|
|
2673
|
-
handleClearClick:
|
|
2674
|
+
handleClearClick: Be,
|
|
2674
2675
|
handleFieldClick: Ye,
|
|
2675
|
-
handleConfirm:
|
|
2676
|
-
handleTimeWheel:
|
|
2677
|
-
computedValue:
|
|
2678
|
-
computedValueDisplay:
|
|
2676
|
+
handleConfirm: Ue,
|
|
2677
|
+
handleTimeWheel: Ze,
|
|
2678
|
+
computedValue: z,
|
|
2679
|
+
computedValueDisplay: Re,
|
|
2679
2680
|
currentRangeDate: p,
|
|
2680
2681
|
currentSingleDate: q,
|
|
2681
2682
|
fromH: Z,
|
|
@@ -2686,11 +2687,11 @@ const fs = /* @__PURE__ */ B(Bl, [["render", Wl]]), xl = "rtcpt", vt = `${xl}_th
|
|
|
2686
2687
|
toS: ce,
|
|
2687
2688
|
singleH: Ne,
|
|
2688
2689
|
singleM: Ee,
|
|
2689
|
-
singleS:
|
|
2690
|
-
fromTimeParts:
|
|
2691
|
-
toTimeParts:
|
|
2692
|
-
singleTimeParts:
|
|
2693
|
-
onHidePopup:
|
|
2690
|
+
singleS: qe,
|
|
2691
|
+
fromTimeParts: A,
|
|
2692
|
+
toTimeParts: v,
|
|
2693
|
+
singleTimeParts: E,
|
|
2694
|
+
onHidePopup: We,
|
|
2694
2695
|
slots: l,
|
|
2695
2696
|
showScrollTooltip: u,
|
|
2696
2697
|
closeTooltip: M
|
|
@@ -2704,10 +2705,10 @@ const fs = /* @__PURE__ */ B(Bl, [["render", Wl]]), xl = "rtcpt", vt = `${xl}_th
|
|
|
2704
2705
|
class: "datetime-scroll-tooltip"
|
|
2705
2706
|
}, no = { class: "tooltip-content" }, lo = { class: "row column q-mb-sm q-mt-auto" }, oo = { class: "fs-12 text-grey h-30 row items-center q-mt-sm" }, ao = { class: "row q-gutter-x-xs items-center" }, so = { class: "row column q-mb-md" }, io = { class: "fs-12 text-grey h-30 row items-center" }, ro = { class: "row q-gutter-x-xs items-center" }, uo = { class: "row column q-mb-sm q-mt-auto" }, co = { class: "fs-12 text-grey h-30 row items-center q-mt-sm" }, Mo = { class: "row q-gutter-x-xs items-center" };
|
|
2706
2707
|
function go(e, t, n, l, r, a) {
|
|
2707
|
-
const
|
|
2708
|
-
return m(),
|
|
2708
|
+
const s = N("q-date"), o = N("q-icon"), i = N("q-input"), c = N("q-btn"), u = N("q-popup-proxy"), g = N("q-field");
|
|
2709
|
+
return m(), Y(g, {
|
|
2709
2710
|
ref: "fieldRef",
|
|
2710
|
-
class:
|
|
2711
|
+
class: V(["j-q-datetime j-q-datetime-range", {
|
|
2711
2712
|
"j-q-datetime--table": e.label,
|
|
2712
2713
|
"j-q-datetime--form": !e.label
|
|
2713
2714
|
}]),
|
|
@@ -2724,34 +2725,34 @@ function go(e, t, n, l, r, a) {
|
|
|
2724
2725
|
onClick: e.handleFieldClick
|
|
2725
2726
|
}, {
|
|
2726
2727
|
control: I(() => [
|
|
2727
|
-
y("div", Jl,
|
|
2728
|
+
y("div", Jl, w(e.computedValueDisplay), 1)
|
|
2728
2729
|
]),
|
|
2729
2730
|
append: I(() => [
|
|
2730
|
-
e.clearable && !e.readonly && !e.disable && e.computedValue ? (m(),
|
|
2731
|
+
e.clearable && !e.readonly && !e.disable && e.computedValue ? (m(), Y(o, {
|
|
2731
2732
|
key: 0,
|
|
2732
2733
|
name: "app:clear",
|
|
2733
2734
|
class: "cursor-pointer q-field__focusable-action q-mr-xs",
|
|
2734
2735
|
onClick: _(e.handleClearClick, ["stop", "prevent"]),
|
|
2735
2736
|
size: "16px",
|
|
2736
2737
|
color: "grey"
|
|
2737
|
-
}, null, 8, ["onClick"])) :
|
|
2738
|
+
}, null, 8, ["onClick"])) : $("", !0)
|
|
2738
2739
|
]),
|
|
2739
2740
|
default: I(() => [
|
|
2740
|
-
oe(y("div", { class: "float-placeholder" },
|
|
2741
|
+
oe(y("div", { class: "float-placeholder" }, w(e.t("messages.pleaseSelect")), 513), [
|
|
2741
2742
|
[ie, !e.computedValueDisplay && !e.label]
|
|
2742
2743
|
]),
|
|
2743
|
-
|
|
2744
|
+
j(u, {
|
|
2744
2745
|
modelValue: e.popupVisible,
|
|
2745
2746
|
"onUpdate:modelValue": t[19] || (t[19] = (M) => e.popupVisible = M),
|
|
2746
2747
|
onHide: e.onHidePopup
|
|
2747
2748
|
}, {
|
|
2748
2749
|
default: I(() => [
|
|
2749
2750
|
y("div", Kl, [
|
|
2750
|
-
e.slots["popup-prepend"] ? (m(),
|
|
2751
|
-
|
|
2752
|
-
])) :
|
|
2751
|
+
e.slots["popup-prepend"] ? (m(), T("div", Xl, [
|
|
2752
|
+
O(e.$slots, "popup-prepend")
|
|
2753
|
+
])) : $("", !0),
|
|
2753
2754
|
y("div", _l, [
|
|
2754
|
-
|
|
2755
|
+
j(s, {
|
|
2755
2756
|
"model-value": e.range ? e.currentRangeDate : e.currentSingleDate,
|
|
2756
2757
|
"onUpdate:modelValue": t[0] || (t[0] = (M) => e.range ? e.currentRangeDate = M : e.currentSingleDate = M),
|
|
2757
2758
|
minimal: "",
|
|
@@ -2759,12 +2760,12 @@ function go(e, t, n, l, r, a) {
|
|
|
2759
2760
|
range: e.range
|
|
2760
2761
|
}, null, 8, ["model-value", "options", "range"]),
|
|
2761
2762
|
y("div", eo, [
|
|
2762
|
-
|
|
2763
|
+
j(qt, { name: "tooltip-fade" }, {
|
|
2763
2764
|
default: I(() => [
|
|
2764
|
-
e.showScrollTooltip ? (m(),
|
|
2765
|
+
e.showScrollTooltip ? (m(), T("div", to, [
|
|
2765
2766
|
y("div", no, [
|
|
2766
|
-
W(
|
|
2767
|
-
|
|
2767
|
+
W(w(e.t("messages.date.scrollTooltip")) + " ", 1),
|
|
2768
|
+
j(o, {
|
|
2768
2769
|
name: "close",
|
|
2769
2770
|
size: "14px",
|
|
2770
2771
|
class: "tooltip-close",
|
|
@@ -2772,15 +2773,15 @@ function go(e, t, n, l, r, a) {
|
|
|
2772
2773
|
}, null, 8, ["onClick"])
|
|
2773
2774
|
]),
|
|
2774
2775
|
t[20] || (t[20] = y("div", { class: "tooltip-arrow" }, null, -1))
|
|
2775
|
-
])) :
|
|
2776
|
+
])) : $("", !0)
|
|
2776
2777
|
]),
|
|
2777
2778
|
_: 1
|
|
2778
2779
|
}),
|
|
2779
|
-
e.range ? (m(),
|
|
2780
|
+
e.range ? (m(), T(ee, { key: 0 }, [
|
|
2780
2781
|
y("div", lo, [
|
|
2781
|
-
y("div", oo,
|
|
2782
|
+
y("div", oo, w(e.t("messages.date.start")), 1),
|
|
2782
2783
|
y("div", ao, [
|
|
2783
|
-
|
|
2784
|
+
j(i, {
|
|
2784
2785
|
key: "fromH",
|
|
2785
2786
|
modelValue: e.fromH,
|
|
2786
2787
|
"onUpdate:modelValue": t[1] || (t[1] = (M) => e.fromH = M),
|
|
@@ -2792,7 +2793,7 @@ function go(e, t, n, l, r, a) {
|
|
|
2792
2793
|
onWheel: t[2] || (t[2] = _((M) => e.handleTimeWheel(M, e.fromTimeParts, "h", 23, "from"), ["prevent"]))
|
|
2793
2794
|
}, null, 8, ["modelValue", "label"]),
|
|
2794
2795
|
t[21] || (t[21] = y("div", { class: "text-caption" }, ":", -1)),
|
|
2795
|
-
|
|
2796
|
+
j(i, {
|
|
2796
2797
|
key: "fromM",
|
|
2797
2798
|
modelValue: e.fromM,
|
|
2798
2799
|
"onUpdate:modelValue": t[3] || (t[3] = (M) => e.fromM = M),
|
|
@@ -2804,7 +2805,7 @@ function go(e, t, n, l, r, a) {
|
|
|
2804
2805
|
onWheel: t[4] || (t[4] = _((M) => e.handleTimeWheel(M, e.fromTimeParts, "m", 59, "from"), ["prevent"]))
|
|
2805
2806
|
}, null, 8, ["modelValue", "label"]),
|
|
2806
2807
|
t[22] || (t[22] = y("div", { class: "text-caption" }, ":", -1)),
|
|
2807
|
-
|
|
2808
|
+
j(i, {
|
|
2808
2809
|
key: "fromS",
|
|
2809
2810
|
modelValue: e.fromS,
|
|
2810
2811
|
"onUpdate:modelValue": t[5] || (t[5] = (M) => e.fromS = M),
|
|
@@ -2818,9 +2819,9 @@ function go(e, t, n, l, r, a) {
|
|
|
2818
2819
|
])
|
|
2819
2820
|
]),
|
|
2820
2821
|
y("div", so, [
|
|
2821
|
-
y("div", io,
|
|
2822
|
+
y("div", io, w(e.t("messages.date.end")), 1),
|
|
2822
2823
|
y("div", ro, [
|
|
2823
|
-
|
|
2824
|
+
j(i, {
|
|
2824
2825
|
key: "toH",
|
|
2825
2826
|
modelValue: e.toH,
|
|
2826
2827
|
"onUpdate:modelValue": t[7] || (t[7] = (M) => e.toH = M),
|
|
@@ -2832,7 +2833,7 @@ function go(e, t, n, l, r, a) {
|
|
|
2832
2833
|
onWheel: t[8] || (t[8] = _((M) => e.handleTimeWheel(M, e.toTimeParts, "h", 23, "to"), ["prevent"]))
|
|
2833
2834
|
}, null, 8, ["modelValue", "label"]),
|
|
2834
2835
|
t[23] || (t[23] = y("div", { class: "text-caption" }, ":", -1)),
|
|
2835
|
-
|
|
2836
|
+
j(i, {
|
|
2836
2837
|
key: "toM",
|
|
2837
2838
|
modelValue: e.toM,
|
|
2838
2839
|
"onUpdate:modelValue": t[9] || (t[9] = (M) => e.toM = M),
|
|
@@ -2844,7 +2845,7 @@ function go(e, t, n, l, r, a) {
|
|
|
2844
2845
|
onWheel: t[10] || (t[10] = _((M) => e.handleTimeWheel(M, e.toTimeParts, "m", 59, "to"), ["prevent"]))
|
|
2845
2846
|
}, null, 8, ["modelValue", "label"]),
|
|
2846
2847
|
t[24] || (t[24] = y("div", { class: "text-caption" }, ":", -1)),
|
|
2847
|
-
|
|
2848
|
+
j(i, {
|
|
2848
2849
|
key: "toS",
|
|
2849
2850
|
modelValue: e.toS,
|
|
2850
2851
|
"onUpdate:modelValue": t[11] || (t[11] = (M) => e.toS = M),
|
|
@@ -2857,11 +2858,11 @@ function go(e, t, n, l, r, a) {
|
|
|
2857
2858
|
}, null, 8, ["modelValue", "label"])
|
|
2858
2859
|
])
|
|
2859
2860
|
])
|
|
2860
|
-
], 64)) : (m(),
|
|
2861
|
+
], 64)) : (m(), T(ee, { key: 1 }, [
|
|
2861
2862
|
y("div", uo, [
|
|
2862
|
-
y("div", co,
|
|
2863
|
+
y("div", co, w(e.t("messages.date.hour")) + "/" + w(e.t("messages.date.minute")) + "/" + w(e.t("messages.date.second")), 1),
|
|
2863
2864
|
y("div", Mo, [
|
|
2864
|
-
|
|
2865
|
+
j(i, {
|
|
2865
2866
|
key: "singleH",
|
|
2866
2867
|
modelValue: e.singleH,
|
|
2867
2868
|
"onUpdate:modelValue": t[13] || (t[13] = (M) => e.singleH = M),
|
|
@@ -2873,7 +2874,7 @@ function go(e, t, n, l, r, a) {
|
|
|
2873
2874
|
onWheel: t[14] || (t[14] = _((M) => e.handleTimeWheel(M, e.singleTimeParts, "h", 23, "single"), ["prevent"]))
|
|
2874
2875
|
}, null, 8, ["modelValue", "label"]),
|
|
2875
2876
|
t[25] || (t[25] = y("div", { class: "text-caption" }, ":", -1)),
|
|
2876
|
-
|
|
2877
|
+
j(i, {
|
|
2877
2878
|
key: "singleM",
|
|
2878
2879
|
modelValue: e.singleM,
|
|
2879
2880
|
"onUpdate:modelValue": t[15] || (t[15] = (M) => e.singleM = M),
|
|
@@ -2885,7 +2886,7 @@ function go(e, t, n, l, r, a) {
|
|
|
2885
2886
|
onWheel: t[16] || (t[16] = _((M) => e.handleTimeWheel(M, e.singleTimeParts, "m", 59, "single"), ["prevent"]))
|
|
2886
2887
|
}, null, 8, ["modelValue", "label"]),
|
|
2887
2888
|
t[26] || (t[26] = y("div", { class: "text-caption" }, ":", -1)),
|
|
2888
|
-
|
|
2889
|
+
j(i, {
|
|
2889
2890
|
key: "singleS",
|
|
2890
2891
|
modelValue: e.singleS,
|
|
2891
2892
|
"onUpdate:modelValue": t[17] || (t[17] = (M) => e.singleS = M),
|
|
@@ -2903,7 +2904,7 @@ function go(e, t, n, l, r, a) {
|
|
|
2903
2904
|
y("div", { class: "row q-gutter-x-xs items-center" })
|
|
2904
2905
|
], -1))
|
|
2905
2906
|
], 64)),
|
|
2906
|
-
|
|
2907
|
+
j(c, {
|
|
2907
2908
|
label: e.t("messages.date.confirm"),
|
|
2908
2909
|
onClick: e.handleConfirm,
|
|
2909
2910
|
unelevated: "",
|
|
@@ -2922,20 +2923,20 @@ function go(e, t, n, l, r, a) {
|
|
|
2922
2923
|
}, 8, ["class", "model-value", "dense", "disable", "label", "outlined", "rules", "title", "onClick"]);
|
|
2923
2924
|
}
|
|
2924
2925
|
const ys = /* @__PURE__ */ B(Fl, [["render", go]]);
|
|
2925
|
-
function
|
|
2926
|
+
function et(e) {
|
|
2926
2927
|
return e === !1 ? !1 : e === 0 || String(e) === "0" || e ? e : "--";
|
|
2927
2928
|
}
|
|
2928
2929
|
function St(e) {
|
|
2929
|
-
const { size: t, unit: n = "B", maxUnit: l, numberFormatOptions: r } = e, { size: a, unit:
|
|
2930
|
-
return `${a.toLocaleString(void 0, r)} ${
|
|
2930
|
+
const { size: t, unit: n = "B", maxUnit: l, numberFormatOptions: r } = e, { size: a, unit: s } = Oe({ size: t, unit: n }, { maxUnit: l });
|
|
2931
|
+
return `${a.toLocaleString(void 0, r)} ${s}`;
|
|
2931
2932
|
}
|
|
2932
2933
|
function Oe(e, t) {
|
|
2933
2934
|
const n = ["B", "KB", "MB", "GB", "TB"], { size: l, unit: r = "B" } = e, a = n.indexOf(r);
|
|
2934
2935
|
if (a === -1 || a === n.length - 1) return { size: l, unit: r };
|
|
2935
|
-
const
|
|
2936
|
+
const s = (t == null ? void 0 : t.maxUnit) || "TB", o = n.indexOf(s);
|
|
2936
2937
|
return a === o ? { size: l, unit: r } : l < 1024 ? { size: l, unit: r } : Oe({ size: l / 1024, unit: n[a + 1] }, t);
|
|
2937
2938
|
}
|
|
2938
|
-
function
|
|
2939
|
+
function ut(e, t = "--") {
|
|
2939
2940
|
return (n, l) => n === 0 || n === "0" ? e ? e(n, l) : n : n ? e ? e(n, l) : n.toString() : t;
|
|
2940
2941
|
}
|
|
2941
2942
|
function Lt(e) {
|
|
@@ -2957,7 +2958,7 @@ function Lt(e) {
|
|
|
2957
2958
|
}
|
|
2958
2959
|
function be(e, t = "YYYY-MM-DD HH:mm:ss") {
|
|
2959
2960
|
const n = Lt(e);
|
|
2960
|
-
return
|
|
2961
|
+
return et(n ? R.formatDate(n, t) : e);
|
|
2961
2962
|
}
|
|
2962
2963
|
function mo(e = "YYYY-MM-DD HH:mm:ss", t = "--") {
|
|
2963
2964
|
return (n, l) => {
|
|
@@ -2975,7 +2976,7 @@ function mo(e = "YYYY-MM-DD HH:mm:ss", t = "--") {
|
|
|
2975
2976
|
};
|
|
2976
2977
|
}
|
|
2977
2978
|
function po(e = "--", t) {
|
|
2978
|
-
return
|
|
2979
|
+
return ut((l) => {
|
|
2979
2980
|
const r = typeof l == "string" ? Number(l) : l;
|
|
2980
2981
|
return Number.isFinite(r) ? St({
|
|
2981
2982
|
size: r,
|
|
@@ -2988,16 +2989,16 @@ function po(e = "--", t) {
|
|
|
2988
2989
|
}, e);
|
|
2989
2990
|
}
|
|
2990
2991
|
function fo(e = "--", t) {
|
|
2991
|
-
return
|
|
2992
|
+
return ut((l) => {
|
|
2992
2993
|
const r = ["B", "KB", "MB", "GB", "TB"];
|
|
2993
|
-
let a = typeof l == "string" ? Number(l) : l,
|
|
2994
|
+
let a = typeof l == "string" ? Number(l) : l, s = (t == null ? void 0 : t.unit) || "B";
|
|
2994
2995
|
const o = (t == null ? void 0 : t.digits) ?? 2;
|
|
2995
2996
|
if (a === 0)
|
|
2996
|
-
return `${a.toFixed(o)} ${
|
|
2997
|
-
let
|
|
2998
|
-
for (
|
|
2999
|
-
a = a / 1024,
|
|
3000
|
-
return `${a.toFixed(o)} ${
|
|
2997
|
+
return `${a.toFixed(o)} ${s}`;
|
|
2998
|
+
let i = r.indexOf(s);
|
|
2999
|
+
for (i === -1 && (i = 0, s = "B"); i < r.length - 1 && a % 1024 === 0; )
|
|
3000
|
+
a = a / 1024, i++, s = r[i];
|
|
3001
|
+
return `${a.toFixed(o)} ${s}`;
|
|
3001
3002
|
}, e);
|
|
3002
3003
|
}
|
|
3003
3004
|
const yo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -3005,15 +3006,15 @@ const yo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3005
3006
|
defaultAutoDataFormat: fo,
|
|
3006
3007
|
defaultDataFormat: po,
|
|
3007
3008
|
defaultDateFormat: mo,
|
|
3008
|
-
defaultFill:
|
|
3009
|
-
defaultFormat:
|
|
3009
|
+
defaultFill: et,
|
|
3010
|
+
defaultFormat: ut,
|
|
3010
3011
|
formatDate: be,
|
|
3011
3012
|
formatSize: St,
|
|
3012
3013
|
getUpperSize: Oe
|
|
3013
3014
|
}, Symbol.toStringTag, { value: "Module" })), Io = U({
|
|
3014
3015
|
name: "JQDetailList",
|
|
3015
3016
|
components: {
|
|
3016
|
-
JQTooltip:
|
|
3017
|
+
JQTooltip: rt,
|
|
3017
3018
|
JCCopy: nn,
|
|
3018
3019
|
QIcon: le,
|
|
3019
3020
|
QTooltip: Le
|
|
@@ -3042,45 +3043,45 @@ const yo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3042
3043
|
},
|
|
3043
3044
|
slots: Object,
|
|
3044
3045
|
setup(e, { slots: t }) {
|
|
3045
|
-
const n = (d) => d.visible === void 0 || d.visible === null ? !0 : typeof d.visible == "boolean" ? d.visible : typeof d.visible == "function" ? d.visible(e.data) : !0, l =
|
|
3046
|
+
const n = (d) => d.visible === void 0 || d.visible === null ? !0 : typeof d.visible == "boolean" ? d.visible : typeof d.visible == "function" ? d.visible(e.data) : !0, l = C(() => e.items.filter((d) => n(d))), r = C(() => e.layout === "horizontal-left" ? {
|
|
3046
3047
|
"--label-width": e.labelWidth
|
|
3047
|
-
} : {}), a =
|
|
3048
|
-
const { options:
|
|
3049
|
-
if (!
|
|
3048
|
+
} : {}), a = C(() => e.items.filter((d) => Reflect.has(t, `item-value-${d.name}`))), s = (d, p) => {
|
|
3049
|
+
const { options: A, findByKey: v, displayKey: Q = "label" } = d;
|
|
3050
|
+
if (!A || !v)
|
|
3050
3051
|
return p;
|
|
3051
|
-
const q =
|
|
3052
|
-
return q ? q[
|
|
3052
|
+
const q = A.find((E) => String(E[v]) === String(p));
|
|
3053
|
+
return q ? q[Q] : p;
|
|
3053
3054
|
}, o = (d) => {
|
|
3054
3055
|
let p = e.data[d.name];
|
|
3055
3056
|
if (p == null || p === "")
|
|
3056
3057
|
return "--";
|
|
3057
|
-
if (d.options && d.findByKey && (p =
|
|
3058
|
+
if (d.options && d.findByKey && (p = s(d, p)), d.format && typeof d.format == "function" && (p = d.format(p, e.data)), d.date) {
|
|
3058
3059
|
if (d.date === !0 && typeof d.date == "boolean")
|
|
3059
3060
|
return be(p);
|
|
3060
3061
|
if (typeof d.date == "string")
|
|
3061
3062
|
return be(p, d.date);
|
|
3062
3063
|
}
|
|
3063
3064
|
return String(p);
|
|
3064
|
-
},
|
|
3065
|
+
}, i = (d) => {
|
|
3065
3066
|
let p = e.data[d.name];
|
|
3066
|
-
const { options:
|
|
3067
|
-
if (!
|
|
3067
|
+
const { options: A, findByKey: v } = d;
|
|
3068
|
+
if (!A || !v)
|
|
3068
3069
|
return "";
|
|
3069
|
-
const
|
|
3070
|
-
return
|
|
3070
|
+
const Q = A.find((q) => String(q[v]) === String(p));
|
|
3071
|
+
return Q ? Q.class : "";
|
|
3071
3072
|
}, c = (d) => d.onClick ? d.clickable === void 0 || d.clickable === null ? !0 : typeof d.clickable == "boolean" ? d.clickable : typeof d.clickable == "function" ? d.clickable(e.data) : !1 : !1;
|
|
3072
3073
|
return {
|
|
3073
3074
|
visibleItems: l,
|
|
3074
|
-
getOptionClass:
|
|
3075
|
+
getOptionClass: i,
|
|
3075
3076
|
computedSlotItems: a,
|
|
3076
3077
|
getDefaultValue: o,
|
|
3077
3078
|
getCopyValue: (d) => {
|
|
3078
3079
|
let p = e.data[d.name];
|
|
3079
3080
|
if (p == null || p === "")
|
|
3080
3081
|
return "";
|
|
3081
|
-
if (d.options && d.findByKey && (p =
|
|
3082
|
-
const
|
|
3083
|
-
|
|
3082
|
+
if (d.options && d.findByKey && (p = s(d, p)), d.format && typeof d.format == "function" && (p = d.format(p, e.data), typeof p == "string" && p.includes("<"))) {
|
|
3083
|
+
const A = document.createElement("div");
|
|
3084
|
+
A.innerHTML = p, p = A.textContent || A.innerText || "";
|
|
3084
3085
|
}
|
|
3085
3086
|
if (d.date) {
|
|
3086
3087
|
if (d.date === !0 && typeof d.date == "boolean")
|
|
@@ -3114,25 +3115,25 @@ const yo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3114
3115
|
class: "value-suffix q-ml-xs"
|
|
3115
3116
|
};
|
|
3116
3117
|
function $o(e, t, n, l, r, a) {
|
|
3117
|
-
const
|
|
3118
|
-
return e.layout === "vertical" ? (m(),
|
|
3118
|
+
const s = N("q-tooltip"), o = N("q-icon"), i = N("j-q-tooltip"), c = N("j-c-copy");
|
|
3119
|
+
return e.layout === "vertical" ? (m(), T("div", {
|
|
3119
3120
|
key: 0,
|
|
3120
|
-
class:
|
|
3121
|
+
class: V(["row", e.gutter])
|
|
3121
3122
|
}, [
|
|
3122
|
-
(m(!0),
|
|
3123
|
+
(m(!0), T(ee, null, ne(e.visibleItems, (u) => (m(), T("div", {
|
|
3123
3124
|
key: u.name,
|
|
3124
|
-
class:
|
|
3125
|
+
class: V([[`col-${u.span || 6}`], "detail-item-container"])
|
|
3125
3126
|
}, [
|
|
3126
3127
|
y("div", Do, [
|
|
3127
|
-
W(
|
|
3128
|
-
u.tip ? (m(),
|
|
3128
|
+
W(w(u.label) + " ", 1),
|
|
3129
|
+
u.tip ? (m(), Y(o, {
|
|
3129
3130
|
key: 0,
|
|
3130
3131
|
name: "app:question",
|
|
3131
3132
|
size: "14px",
|
|
3132
3133
|
class: "q-ml-xs tip-icon"
|
|
3133
3134
|
}, {
|
|
3134
3135
|
default: I(() => [
|
|
3135
|
-
|
|
3136
|
+
j(s, {
|
|
3136
3137
|
class: "j-q-tooltip-content",
|
|
3137
3138
|
anchor: "top middle",
|
|
3138
3139
|
self: "bottom middle",
|
|
@@ -3140,199 +3141,199 @@ function $o(e, t, n, l, r, a) {
|
|
|
3140
3141
|
"max-width": "300px"
|
|
3141
3142
|
}, {
|
|
3142
3143
|
default: I(() => [
|
|
3143
|
-
W(
|
|
3144
|
+
W(w(u.tip), 1)
|
|
3144
3145
|
]),
|
|
3145
3146
|
_: 2
|
|
3146
3147
|
}, 1024)
|
|
3147
3148
|
]),
|
|
3148
3149
|
_: 2
|
|
3149
|
-
}, 1024)) :
|
|
3150
|
+
}, 1024)) : $("", !0)
|
|
3150
3151
|
]),
|
|
3151
3152
|
y("div", {
|
|
3152
|
-
class:
|
|
3153
|
+
class: V(["detail-value-wrapper row items-center no-wrap", `text-${u.align || "left"}`])
|
|
3153
3154
|
}, [
|
|
3154
3155
|
y("div", {
|
|
3155
|
-
class:
|
|
3156
|
+
class: V(["detail-value text-body2", { clickable: e.isClickable(u) }]),
|
|
3156
3157
|
onClick: (g) => e.handleClick(u)
|
|
3157
3158
|
}, [
|
|
3158
|
-
e.slots[`item-value-${u.name}`] ?
|
|
3159
|
+
e.slots[`item-value-${u.name}`] ? O(e.$slots, `item-value-${u.name}`, {
|
|
3159
3160
|
key: 0,
|
|
3160
3161
|
value: e.data[u.name],
|
|
3161
3162
|
item: u,
|
|
3162
3163
|
data: e.data,
|
|
3163
3164
|
fieldName: u.name
|
|
3164
|
-
}, void 0, !0) : u.html ? (m(),
|
|
3165
|
+
}, void 0, !0) : u.html ? (m(), T("div", {
|
|
3165
3166
|
key: 1,
|
|
3166
3167
|
innerHTML: e.getDefaultValue(u),
|
|
3167
|
-
class:
|
|
3168
|
+
class: V([e.getOptionClass(u), "html-content"]),
|
|
3168
3169
|
style: H(e.getHtmlStyle(u))
|
|
3169
|
-
}, null, 14, No)) : (m(),
|
|
3170
|
+
}, null, 14, No)) : (m(), Y(i, {
|
|
3170
3171
|
key: 2,
|
|
3171
3172
|
content: e.getDefaultValue(u),
|
|
3172
3173
|
lines: u.whiteSpace || 1,
|
|
3173
|
-
class:
|
|
3174
|
+
class: V(e.getOptionClass(u))
|
|
3174
3175
|
}, null, 8, ["content", "lines", "class"]))
|
|
3175
3176
|
], 10, Ao),
|
|
3176
|
-
u.copy || e.slots[`item-suffix-${u.name}`] ? (m(),
|
|
3177
|
-
e.slots[`item-suffix-${u.name}`] ?
|
|
3177
|
+
u.copy || e.slots[`item-suffix-${u.name}`] ? (m(), T("div", Co, [
|
|
3178
|
+
e.slots[`item-suffix-${u.name}`] ? O(e.$slots, `item-suffix-${u.name}`, {
|
|
3178
3179
|
key: 0,
|
|
3179
3180
|
value: e.data[u.name],
|
|
3180
3181
|
item: u,
|
|
3181
3182
|
data: e.data,
|
|
3182
3183
|
fieldName: u.name
|
|
3183
|
-
}, void 0, !0) : u.copy ? (m(),
|
|
3184
|
+
}, void 0, !0) : u.copy ? (m(), Y(c, {
|
|
3184
3185
|
key: 1,
|
|
3185
3186
|
text: e.getCopyValue(u)
|
|
3186
|
-
}, null, 8, ["text"])) :
|
|
3187
|
-
])) :
|
|
3187
|
+
}, null, 8, ["text"])) : $("", !0)
|
|
3188
|
+
])) : $("", !0)
|
|
3188
3189
|
], 2)
|
|
3189
3190
|
], 2))), 128))
|
|
3190
|
-
], 2)) : e.layout === "horizontal-between" ? (m(),
|
|
3191
|
+
], 2)) : e.layout === "horizontal-between" ? (m(), T("div", {
|
|
3191
3192
|
key: 1,
|
|
3192
|
-
class:
|
|
3193
|
+
class: V(["row horizontal-between-container", e.gutter])
|
|
3193
3194
|
}, [
|
|
3194
|
-
(m(!0),
|
|
3195
|
+
(m(!0), T(ee, null, ne(e.visibleItems, (u) => (m(), T("div", {
|
|
3195
3196
|
key: u.name,
|
|
3196
|
-
class:
|
|
3197
|
+
class: V([`col-${u.span || 6}`])
|
|
3197
3198
|
}, [
|
|
3198
3199
|
y("div", jo, [
|
|
3199
3200
|
y("div", zo, [
|
|
3200
|
-
W(
|
|
3201
|
-
u.tip ? (m(),
|
|
3201
|
+
W(w(u.label) + " ", 1),
|
|
3202
|
+
u.tip ? (m(), Y(o, {
|
|
3202
3203
|
key: 0,
|
|
3203
3204
|
name: "app:question",
|
|
3204
3205
|
size: "14px",
|
|
3205
3206
|
class: "q-ml-xs tip-icon"
|
|
3206
3207
|
}, {
|
|
3207
3208
|
default: I(() => [
|
|
3208
|
-
|
|
3209
|
+
j(s, {
|
|
3209
3210
|
anchor: "top middle",
|
|
3210
3211
|
self: "bottom middle",
|
|
3211
3212
|
offset: [10, 10],
|
|
3212
3213
|
"max-width": "300px"
|
|
3213
3214
|
}, {
|
|
3214
3215
|
default: I(() => [
|
|
3215
|
-
W(
|
|
3216
|
+
W(w(u.tip), 1)
|
|
3216
3217
|
]),
|
|
3217
3218
|
_: 2
|
|
3218
3219
|
}, 1024)
|
|
3219
3220
|
]),
|
|
3220
3221
|
_: 2
|
|
3221
|
-
}, 1024)) :
|
|
3222
|
+
}, 1024)) : $("", !0)
|
|
3222
3223
|
]),
|
|
3223
3224
|
y("div", bo, [
|
|
3224
3225
|
y("div", {
|
|
3225
|
-
class:
|
|
3226
|
+
class: V(["value", { clickable: e.isClickable(u) }]),
|
|
3226
3227
|
onClick: (g) => e.handleClick(u)
|
|
3227
3228
|
}, [
|
|
3228
|
-
e.slots[`item-value-${u.name}`] ?
|
|
3229
|
+
e.slots[`item-value-${u.name}`] ? O(e.$slots, `item-value-${u.name}`, {
|
|
3229
3230
|
key: 0,
|
|
3230
3231
|
value: e.data[u.name],
|
|
3231
3232
|
item: u,
|
|
3232
3233
|
data: e.data,
|
|
3233
3234
|
fieldName: u.name
|
|
3234
|
-
}, void 0, !0) : u.html ? (m(),
|
|
3235
|
+
}, void 0, !0) : u.html ? (m(), T("div", {
|
|
3235
3236
|
key: 1,
|
|
3236
3237
|
innerHTML: e.getDefaultValue(u),
|
|
3237
|
-
class:
|
|
3238
|
+
class: V([e.getOptionClass(u), "html-content"]),
|
|
3238
3239
|
style: H(e.getHtmlStyle(u))
|
|
3239
|
-
}, null, 14, ho)) : (m(),
|
|
3240
|
+
}, null, 14, ho)) : (m(), Y(i, {
|
|
3240
3241
|
key: 2,
|
|
3241
3242
|
content: e.getDefaultValue(u),
|
|
3242
3243
|
lines: u.whiteSpace || 1,
|
|
3243
|
-
class:
|
|
3244
|
+
class: V(e.getOptionClass(u))
|
|
3244
3245
|
}, null, 8, ["content", "lines", "class"]))
|
|
3245
3246
|
], 10, To),
|
|
3246
|
-
u.copy || e.slots[`item-suffix-${u.name}`] ? (m(),
|
|
3247
|
-
e.slots[`item-suffix-${u.name}`] ?
|
|
3247
|
+
u.copy || e.slots[`item-suffix-${u.name}`] ? (m(), T("div", wo, [
|
|
3248
|
+
e.slots[`item-suffix-${u.name}`] ? O(e.$slots, `item-suffix-${u.name}`, {
|
|
3248
3249
|
key: 0,
|
|
3249
3250
|
value: e.data[u.name],
|
|
3250
3251
|
item: u,
|
|
3251
3252
|
data: e.data,
|
|
3252
3253
|
fieldName: u.name
|
|
3253
|
-
}, void 0, !0) : u.copy ? (m(),
|
|
3254
|
+
}, void 0, !0) : u.copy ? (m(), Y(c, {
|
|
3254
3255
|
key: 1,
|
|
3255
3256
|
text: e.getCopyValue(u)
|
|
3256
|
-
}, null, 8, ["text"])) :
|
|
3257
|
-
])) :
|
|
3257
|
+
}, null, 8, ["text"])) : $("", !0)
|
|
3258
|
+
])) : $("", !0)
|
|
3258
3259
|
])
|
|
3259
3260
|
])
|
|
3260
3261
|
], 2))), 128))
|
|
3261
|
-
], 2)) : e.layout === "horizontal-left" ? (m(),
|
|
3262
|
+
], 2)) : e.layout === "horizontal-left" ? (m(), T("div", {
|
|
3262
3263
|
key: 2,
|
|
3263
|
-
class:
|
|
3264
|
+
class: V(["row horizontal-left-container", e.gutter]),
|
|
3264
3265
|
style: H(e.containerStyle)
|
|
3265
3266
|
}, [
|
|
3266
|
-
(m(!0),
|
|
3267
|
+
(m(!0), T(ee, null, ne(e.visibleItems, (u) => (m(), T("div", {
|
|
3267
3268
|
key: u.name,
|
|
3268
|
-
class:
|
|
3269
|
+
class: V([`col-${u.span || 6}`])
|
|
3269
3270
|
}, [
|
|
3270
3271
|
y("div", vo, [
|
|
3271
3272
|
y("div", So, [
|
|
3272
|
-
W(
|
|
3273
|
-
u.tip ? (m(),
|
|
3273
|
+
W(w(u.label) + " ", 1),
|
|
3274
|
+
u.tip ? (m(), Y(o, {
|
|
3274
3275
|
key: 0,
|
|
3275
3276
|
name: "app:question",
|
|
3276
3277
|
size: "14px",
|
|
3277
3278
|
class: "q-ml-xs tip-icon"
|
|
3278
3279
|
}, {
|
|
3279
3280
|
default: I(() => [
|
|
3280
|
-
|
|
3281
|
+
j(s, {
|
|
3281
3282
|
anchor: "top middle",
|
|
3282
3283
|
self: "bottom middle",
|
|
3283
3284
|
offset: [10, 10],
|
|
3284
3285
|
"max-width": "300px"
|
|
3285
3286
|
}, {
|
|
3286
3287
|
default: I(() => [
|
|
3287
|
-
W(
|
|
3288
|
+
W(w(u.tip), 1)
|
|
3288
3289
|
]),
|
|
3289
3290
|
_: 2
|
|
3290
3291
|
}, 1024)
|
|
3291
3292
|
]),
|
|
3292
3293
|
_: 2
|
|
3293
|
-
}, 1024)) :
|
|
3294
|
+
}, 1024)) : $("", !0)
|
|
3294
3295
|
]),
|
|
3295
3296
|
y("div", Lo, [
|
|
3296
3297
|
y("div", {
|
|
3297
|
-
class:
|
|
3298
|
+
class: V(["value", { clickable: e.isClickable(u) }]),
|
|
3298
3299
|
onClick: (g) => e.handleClick(u)
|
|
3299
3300
|
}, [
|
|
3300
|
-
e.slots[`item-value-${u.name}`] ?
|
|
3301
|
+
e.slots[`item-value-${u.name}`] ? O(e.$slots, `item-value-${u.name}`, {
|
|
3301
3302
|
key: 0,
|
|
3302
3303
|
value: e.data[u.name],
|
|
3303
3304
|
item: u,
|
|
3304
3305
|
data: e.data,
|
|
3305
3306
|
fieldName: u.name
|
|
3306
|
-
}, void 0, !0) : u.html ? (m(),
|
|
3307
|
+
}, void 0, !0) : u.html ? (m(), T("div", {
|
|
3307
3308
|
key: 1,
|
|
3308
3309
|
innerHTML: e.getDefaultValue(u),
|
|
3309
|
-
class:
|
|
3310
|
+
class: V([e.getOptionClass(u), "html-content"]),
|
|
3310
3311
|
style: H(e.getHtmlStyle(u))
|
|
3311
|
-
}, null, 14, Oo)) : (m(),
|
|
3312
|
+
}, null, 14, Oo)) : (m(), Y(i, {
|
|
3312
3313
|
key: 2,
|
|
3313
3314
|
content: e.getDefaultValue(u),
|
|
3314
3315
|
lines: u.whiteSpace || 1,
|
|
3315
|
-
class:
|
|
3316
|
+
class: V(e.getOptionClass(u))
|
|
3316
3317
|
}, null, 8, ["content", "lines", "class"]))
|
|
3317
3318
|
], 10, ko),
|
|
3318
|
-
u.copy || e.slots[`item-suffix-${u.name}`] ? (m(),
|
|
3319
|
-
e.slots[`item-suffix-${u.name}`] ?
|
|
3319
|
+
u.copy || e.slots[`item-suffix-${u.name}`] ? (m(), T("div", Eo, [
|
|
3320
|
+
e.slots[`item-suffix-${u.name}`] ? O(e.$slots, `item-suffix-${u.name}`, {
|
|
3320
3321
|
key: 0,
|
|
3321
3322
|
value: e.data[u.name],
|
|
3322
3323
|
item: u,
|
|
3323
3324
|
data: e.data,
|
|
3324
3325
|
fieldName: u.name
|
|
3325
|
-
}, void 0, !0) : u.copy ? (m(),
|
|
3326
|
+
}, void 0, !0) : u.copy ? (m(), Y(c, {
|
|
3326
3327
|
key: 1,
|
|
3327
3328
|
text: e.getCopyValue(u)
|
|
3328
|
-
}, null, 8, ["text"])) :
|
|
3329
|
-
])) :
|
|
3329
|
+
}, null, 8, ["text"])) : $("", !0)
|
|
3330
|
+
])) : $("", !0)
|
|
3330
3331
|
])
|
|
3331
3332
|
])
|
|
3332
3333
|
], 2))), 128))
|
|
3333
|
-
], 6)) :
|
|
3334
|
+
], 6)) : $("", !0);
|
|
3334
3335
|
}
|
|
3335
|
-
const Is = /* @__PURE__ */ B(Io, [["render", $o], ["__scopeId", "data-v-
|
|
3336
|
+
const Is = /* @__PURE__ */ B(Io, [["render", $o], ["__scopeId", "data-v-dd8b449a"]]), Yo = U({
|
|
3336
3337
|
name: "JQFile",
|
|
3337
3338
|
components: {
|
|
3338
3339
|
QField: ke,
|
|
@@ -3353,65 +3354,65 @@ const Is = /* @__PURE__ */ B(Io, [["render", $o], ["__scopeId", "data-v-f9923d28
|
|
|
3353
3354
|
},
|
|
3354
3355
|
slots: Object,
|
|
3355
3356
|
setup(e, { emit: t, slots: n }) {
|
|
3356
|
-
const { t: l } = K(), r = h(null), a = h(e.modelValue ?? []),
|
|
3357
|
+
const { t: l } = K(), r = h(null), a = h(e.modelValue ?? []), s = C({
|
|
3357
3358
|
get() {
|
|
3358
3359
|
return e.modelValue ?? a.value ?? [];
|
|
3359
3360
|
},
|
|
3360
|
-
set(
|
|
3361
|
-
t("update:modelValue",
|
|
3361
|
+
set(D) {
|
|
3362
|
+
t("update:modelValue", D), a.value = D;
|
|
3362
3363
|
}
|
|
3363
|
-
}), o = h(!1),
|
|
3364
|
-
const
|
|
3365
|
-
let Z = [...
|
|
3366
|
-
if (
|
|
3367
|
-
|
|
3364
|
+
}), o = h(!1), i = C(() => Number(e.maxlength) || 0), c = C(() => i.value > 0 && i.value <= s.value.length), u = (D) => D != null && D.length ? Array.from(D) : [], g = async (D) => {
|
|
3365
|
+
const k = s.value.length, S = i.value - k;
|
|
3366
|
+
let Z = [...D];
|
|
3367
|
+
if (i.value > 0 && S <= 0) {
|
|
3368
|
+
Qe.show({ type: "error", content: l("messages.jQFile.maxlength", { count: i.value }) });
|
|
3368
3369
|
return;
|
|
3369
3370
|
}
|
|
3370
|
-
if (
|
|
3371
|
+
if (i.value > 0 && Z.length > S && (Z = Z.slice(0, S)), e.beforeHandle) {
|
|
3371
3372
|
const P = await e.beforeHandle(Z);
|
|
3372
|
-
P && (
|
|
3373
|
+
P && (s.value = [...s.value, ...P]);
|
|
3373
3374
|
} else
|
|
3374
|
-
|
|
3375
|
+
s.value = [...s.value, ...Z];
|
|
3375
3376
|
}, M = () => {
|
|
3376
|
-
var
|
|
3377
|
-
(
|
|
3378
|
-
}, d = (
|
|
3379
|
-
const
|
|
3380
|
-
|
|
3381
|
-
}, p = (
|
|
3382
|
-
var
|
|
3377
|
+
var D;
|
|
3378
|
+
(D = r.value) == null || D.click();
|
|
3379
|
+
}, d = (D) => {
|
|
3380
|
+
const k = D.target, S = u(k.files);
|
|
3381
|
+
S.length && g(S), k.value = "";
|
|
3382
|
+
}, p = (D) => {
|
|
3383
|
+
var S;
|
|
3383
3384
|
o.value = !1;
|
|
3384
|
-
const
|
|
3385
|
-
|
|
3386
|
-
},
|
|
3387
|
-
o.value = !0;
|
|
3388
|
-
}, S = () => {
|
|
3385
|
+
const k = u((S = D.dataTransfer) == null ? void 0 : S.files);
|
|
3386
|
+
k.length && g(k);
|
|
3387
|
+
}, A = () => {
|
|
3389
3388
|
o.value = !0;
|
|
3390
3389
|
}, v = () => {
|
|
3390
|
+
o.value = !0;
|
|
3391
|
+
}, Q = () => {
|
|
3391
3392
|
o.value = !1;
|
|
3392
|
-
}, q = (
|
|
3393
|
-
const { size:
|
|
3394
|
-
return `${
|
|
3395
|
-
},
|
|
3396
|
-
const
|
|
3397
|
-
|
|
3398
|
-
},
|
|
3393
|
+
}, q = (D) => {
|
|
3394
|
+
const { size: k, unit: S } = Oe({ size: D.size });
|
|
3395
|
+
return `${k.toLocaleString()} ${S}`;
|
|
3396
|
+
}, E = (D, k) => {
|
|
3397
|
+
const S = [...s.value];
|
|
3398
|
+
S.splice(k, 1), s.value = S;
|
|
3399
|
+
}, z = C(() => Reflect.has(n, "hint"));
|
|
3399
3400
|
return {
|
|
3400
3401
|
t: l,
|
|
3401
3402
|
fileInputRef: r,
|
|
3402
|
-
computedValue:
|
|
3403
|
-
computedMaxlength:
|
|
3403
|
+
computedValue: s,
|
|
3404
|
+
computedMaxlength: i,
|
|
3404
3405
|
isDragging: o,
|
|
3405
3406
|
isMaxlength: c,
|
|
3406
3407
|
browseFile: M,
|
|
3407
3408
|
inputFile: d,
|
|
3408
|
-
dragenter:
|
|
3409
|
-
dragover:
|
|
3410
|
-
dragleave:
|
|
3409
|
+
dragenter: A,
|
|
3410
|
+
dragover: v,
|
|
3411
|
+
dragleave: Q,
|
|
3411
3412
|
dropFile: p,
|
|
3412
3413
|
getFileSizeDisplay: q,
|
|
3413
|
-
deleteFile:
|
|
3414
|
-
hasSlotHint:
|
|
3414
|
+
deleteFile: E,
|
|
3415
|
+
hasSlotHint: z
|
|
3415
3416
|
};
|
|
3416
3417
|
}
|
|
3417
3418
|
}), Vo = { class: "j-q-file" }, Qo = { class: "fs-14 q-mt-sm" }, Po = { class: "text-grey fs-12 q-mt-xs" }, qo = { class: "file-filers" }, Uo = { class: "filer-content" }, Bo = ["title"], Zo = {
|
|
@@ -3422,9 +3423,9 @@ const Is = /* @__PURE__ */ B(Io, [["render", $o], ["__scopeId", "data-v-f9923d28
|
|
|
3422
3423
|
class: "file-hint"
|
|
3423
3424
|
};
|
|
3424
3425
|
function xo(e, t, n, l, r, a) {
|
|
3425
|
-
const
|
|
3426
|
-
return m(),
|
|
3427
|
-
|
|
3426
|
+
const s = N("q-icon"), o = N("q-btn"), i = N("q-field");
|
|
3427
|
+
return m(), T("div", Vo, [
|
|
3428
|
+
j(i, {
|
|
3428
3429
|
modelValue: e.computedValue,
|
|
3429
3430
|
"onUpdate:modelValue": t[6] || (t[6] = (c) => e.computedValue = c),
|
|
3430
3431
|
borderless: "",
|
|
@@ -3436,27 +3437,27 @@ function xo(e, t, n, l, r, a) {
|
|
|
3436
3437
|
}, {
|
|
3437
3438
|
prepend: I(() => [
|
|
3438
3439
|
oe(y("div", {
|
|
3439
|
-
class:
|
|
3440
|
+
class: V(["file-action", { "file-action--dragging": e.isDragging }]),
|
|
3440
3441
|
onDragenter: t[0] || (t[0] = _((...c) => e.dragenter && e.dragenter(...c), ["prevent"])),
|
|
3441
3442
|
onDragover: t[1] || (t[1] = _((...c) => e.dragover && e.dragover(...c), ["prevent"])),
|
|
3442
3443
|
onDragleave: t[2] || (t[2] = _((...c) => e.dragleave && e.dragleave(...c), ["prevent"])),
|
|
3443
3444
|
onDrop: t[3] || (t[3] = _((...c) => e.dropFile && e.dropFile(...c), ["prevent"])),
|
|
3444
3445
|
onClick: t[4] || (t[4] = (...c) => e.browseFile && e.browseFile(...c))
|
|
3445
3446
|
}, [
|
|
3446
|
-
|
|
3447
|
+
j(s, {
|
|
3447
3448
|
class: "action-icon",
|
|
3448
3449
|
name: "app:upload",
|
|
3449
3450
|
size: "32px"
|
|
3450
3451
|
}),
|
|
3451
|
-
y("p", Qo,
|
|
3452
|
-
y("p", Po,
|
|
3452
|
+
y("p", Qo, w(e.t("messages.jQFile.click_or_drag_file")), 1),
|
|
3453
|
+
y("p", Po, w(e.t("messages.jQFile.file_type_is", { type: e.accept.split(",").join(" ") })) + ", " + w(e.t("messages.jQFile.max_file_size", {
|
|
3453
3454
|
size: e.maxFileSize
|
|
3454
3455
|
})), 1)
|
|
3455
3456
|
], 34), [
|
|
3456
3457
|
[ie, e.computedValue.length !== Number(e.maxlength)]
|
|
3457
3458
|
]),
|
|
3458
3459
|
oe(y("ul", qo, [
|
|
3459
|
-
(m(!0),
|
|
3460
|
+
(m(!0), T(ee, null, ne(e.computedValue, (c, u) => (m(), T("li", {
|
|
3460
3461
|
key: u,
|
|
3461
3462
|
class: "filer-item"
|
|
3462
3463
|
}, [
|
|
@@ -3464,10 +3465,10 @@ function xo(e, t, n, l, r, a) {
|
|
|
3464
3465
|
y("div", {
|
|
3465
3466
|
class: "filer-name text-black",
|
|
3466
3467
|
title: c.name
|
|
3467
|
-
},
|
|
3468
|
-
c.size ? (m(),
|
|
3468
|
+
}, w(c.name), 9, Bo),
|
|
3469
|
+
c.size ? (m(), T("div", Zo, w(e.getFileSizeDisplay(c)), 1)) : $("", !0)
|
|
3469
3470
|
]),
|
|
3470
|
-
|
|
3471
|
+
j(o, {
|
|
3471
3472
|
class: "filer-remove",
|
|
3472
3473
|
dense: "",
|
|
3473
3474
|
flat: "",
|
|
@@ -3494,15 +3495,15 @@ function xo(e, t, n, l, r, a) {
|
|
|
3494
3495
|
]),
|
|
3495
3496
|
_: 1
|
|
3496
3497
|
}, 8, ["modelValue", "disable", "rules"]),
|
|
3497
|
-
e.hasSlotHint ? (m(),
|
|
3498
|
-
|
|
3499
|
-
])) :
|
|
3498
|
+
e.hasSlotHint ? (m(), T("div", Wo, [
|
|
3499
|
+
O(e.$slots, "hint")
|
|
3500
|
+
])) : $("", !0)
|
|
3500
3501
|
]);
|
|
3501
3502
|
}
|
|
3502
3503
|
const Ds = /* @__PURE__ */ B(Yo, [["render", xo]]), Go = U({
|
|
3503
3504
|
name: "JQNewValue",
|
|
3504
3505
|
components: {
|
|
3505
|
-
QSelect:
|
|
3506
|
+
QSelect: nt,
|
|
3506
3507
|
QIcon: le
|
|
3507
3508
|
},
|
|
3508
3509
|
props: {
|
|
@@ -3523,24 +3524,24 @@ const Ds = /* @__PURE__ */ B(Yo, [["render", xo]]), Go = U({
|
|
|
3523
3524
|
"update:modelValue": (e) => !0
|
|
3524
3525
|
},
|
|
3525
3526
|
setup(e, { emit: t, expose: n, slots: l }) {
|
|
3526
|
-
const r = h(e.modelValue ?? []), a = h(null), { t:
|
|
3527
|
-
|
|
3527
|
+
const r = h(e.modelValue ?? []), a = h(null), { t: s } = K(), o = h(""), i = C(() => Object.keys(l)), c = (p, A) => {
|
|
3528
|
+
A(() => {
|
|
3528
3529
|
});
|
|
3529
|
-
}, u = (p,
|
|
3530
|
-
var
|
|
3531
|
-
const
|
|
3532
|
-
if (o.value = "",
|
|
3530
|
+
}, u = (p, A) => {
|
|
3531
|
+
var Q, q, E;
|
|
3532
|
+
const v = p.trim();
|
|
3533
|
+
if (o.value = "", v.length > 0) {
|
|
3533
3534
|
if (e.maxlength > 0 && r.value && r.value.length >= e.maxlength) {
|
|
3534
|
-
o.value =
|
|
3535
|
+
o.value = s("messages.formRules.maxLengthExceeded", { max: e.maxlength }), (Q = a.value) == null || Q.focus();
|
|
3535
3536
|
return;
|
|
3536
3537
|
}
|
|
3537
|
-
if (!e.allowDuplicates && r.value && r.value.includes(
|
|
3538
|
-
o.value =
|
|
3538
|
+
if (!e.allowDuplicates && r.value && r.value.includes(v)) {
|
|
3539
|
+
o.value = s("messages.formRules.duplicateItemNotAllowed", { value: v }), (q = a.value) == null || q.focus();
|
|
3539
3540
|
return;
|
|
3540
3541
|
}
|
|
3541
|
-
let
|
|
3542
|
-
const { name:
|
|
3543
|
-
e.addRulesName && (
|
|
3542
|
+
let z = !0;
|
|
3543
|
+
const { name: D, args: k } = bn(e.addRulesName);
|
|
3544
|
+
e.addRulesName && (z = Tn(D, v, k, s)), z === !0 && A(v, "add"), z !== !0 && (o.value = z, (E = a.value) == null || E.focus());
|
|
3544
3545
|
}
|
|
3545
3546
|
};
|
|
3546
3547
|
G(
|
|
@@ -3552,8 +3553,8 @@ const Ds = /* @__PURE__ */ B(Yo, [["render", xo]]), Go = U({
|
|
|
3552
3553
|
), G(
|
|
3553
3554
|
() => r.value,
|
|
3554
3555
|
(p) => {
|
|
3555
|
-
var
|
|
3556
|
-
t("update:modelValue", p), o.value = "", e.rules && e.rules.length > 0 && ((
|
|
3556
|
+
var A;
|
|
3557
|
+
t("update:modelValue", p), o.value = "", e.rules && e.rules.length > 0 && ((A = a.value) == null || A.validate());
|
|
3557
3558
|
}
|
|
3558
3559
|
);
|
|
3559
3560
|
const g = (p) => {
|
|
@@ -3573,7 +3574,7 @@ const Ds = /* @__PURE__ */ B(Yo, [["render", xo]]), Go = U({
|
|
|
3573
3574
|
return (p = a.value) == null ? void 0 : p.resetValidation();
|
|
3574
3575
|
}
|
|
3575
3576
|
}), {
|
|
3576
|
-
t:
|
|
3577
|
+
t: s,
|
|
3577
3578
|
newValueErrorMessage: o,
|
|
3578
3579
|
innerModel: r,
|
|
3579
3580
|
qSelectRef: a,
|
|
@@ -3582,13 +3583,13 @@ const Ds = /* @__PURE__ */ B(Yo, [["render", xo]]), Go = U({
|
|
|
3582
3583
|
handleUpdateModelValue: g,
|
|
3583
3584
|
handleBlur: d,
|
|
3584
3585
|
change: M,
|
|
3585
|
-
slotNames:
|
|
3586
|
+
slotNames: i
|
|
3586
3587
|
};
|
|
3587
3588
|
}
|
|
3588
3589
|
}), Ho = { class: "select-selected-item" };
|
|
3589
3590
|
function Fo(e, t, n, l, r, a) {
|
|
3590
|
-
const
|
|
3591
|
-
return m(),
|
|
3591
|
+
const s = N("q-icon"), o = N("q-select");
|
|
3592
|
+
return m(), Y(o, {
|
|
3592
3593
|
class: "j-q-select-new-value",
|
|
3593
3594
|
"model-value": e.innerModel,
|
|
3594
3595
|
"onUpdate:modelValue": e.handleUpdateModelValue,
|
|
@@ -3617,21 +3618,21 @@ function Fo(e, t, n, l, r, a) {
|
|
|
3617
3618
|
error: !!e.newValueErrorMessage,
|
|
3618
3619
|
"error-message": e.newValueErrorMessage
|
|
3619
3620
|
}, we({ _: 2 }, [
|
|
3620
|
-
ne(e.slotNames, (
|
|
3621
|
-
name:
|
|
3621
|
+
ne(e.slotNames, (i) => ({
|
|
3622
|
+
name: i,
|
|
3622
3623
|
fn: I((c) => [
|
|
3623
|
-
|
|
3624
|
+
O(e.$slots, i, ue(ge(c)))
|
|
3624
3625
|
])
|
|
3625
3626
|
})),
|
|
3626
3627
|
e.useChips ? {
|
|
3627
3628
|
name: "selected-item",
|
|
3628
|
-
fn: I((
|
|
3629
|
+
fn: I((i) => [
|
|
3629
3630
|
y("span", Ho, [
|
|
3630
|
-
y("span", null,
|
|
3631
|
-
|
|
3631
|
+
y("span", null, w(i.opt), 1),
|
|
3632
|
+
j(s, {
|
|
3632
3633
|
name: "close",
|
|
3633
3634
|
class: "cursor-pointer q-ml-xs",
|
|
3634
|
-
onClick: _((c) =>
|
|
3635
|
+
onClick: _((c) => i.removeAtIndex(i.index), ["stop"]),
|
|
3635
3636
|
color: "grey"
|
|
3636
3637
|
}, null, 8, ["onClick"])
|
|
3637
3638
|
])
|
|
@@ -3676,8 +3677,8 @@ const As = /* @__PURE__ */ B(Go, [["render", Fo]]), Jo = U({
|
|
|
3676
3677
|
},
|
|
3677
3678
|
// q-option-group 不支持 slots 扩展,故省略 slots 定义
|
|
3678
3679
|
setup(e, { emit: t }) {
|
|
3679
|
-
const n = h(e.modelValue ?? null), l =
|
|
3680
|
-
...
|
|
3680
|
+
const n = h(e.modelValue ?? null), l = C(() => e.options ? e.options.map((s) => ({
|
|
3681
|
+
...s,
|
|
3681
3682
|
...{
|
|
3682
3683
|
radio: {
|
|
3683
3684
|
checkedIcon: "app:radio-checked",
|
|
@@ -3689,34 +3690,34 @@ const As = /* @__PURE__ */ B(Go, [["render", Fo]]), Jo = U({
|
|
|
3689
3690
|
indeterminateIcon: "app:table-not-full-check"
|
|
3690
3691
|
}
|
|
3691
3692
|
}[e.type] || {}
|
|
3692
|
-
})) : []), r =
|
|
3693
|
+
})) : []), r = C(() => e.inline ? "" : `inline-span-${e.inlineSpanCount}`);
|
|
3693
3694
|
return G(
|
|
3694
3695
|
() => e.modelValue,
|
|
3695
|
-
(
|
|
3696
|
-
|
|
3696
|
+
(s) => {
|
|
3697
|
+
s !== n.value && (n.value = s ?? null);
|
|
3697
3698
|
},
|
|
3698
3699
|
{ immediate: !0 }
|
|
3699
3700
|
// 立即执行一次,确保初始值设置正确
|
|
3700
3701
|
), G(
|
|
3701
3702
|
() => n.value,
|
|
3702
|
-
(
|
|
3703
|
-
t("update:modelValue",
|
|
3703
|
+
(s) => {
|
|
3704
|
+
t("update:modelValue", s);
|
|
3704
3705
|
}
|
|
3705
3706
|
), {
|
|
3706
3707
|
computedInlineSpanClass: r,
|
|
3707
3708
|
innerModel: n,
|
|
3708
3709
|
computedOptions: l,
|
|
3709
|
-
change: (
|
|
3710
|
-
t("change",
|
|
3710
|
+
change: (s) => {
|
|
3711
|
+
t("change", s);
|
|
3711
3712
|
}
|
|
3712
3713
|
};
|
|
3713
3714
|
}
|
|
3714
3715
|
});
|
|
3715
3716
|
function Ko(e, t, n, l, r, a) {
|
|
3716
3717
|
var u;
|
|
3717
|
-
const
|
|
3718
|
-
return m(),
|
|
3719
|
-
class:
|
|
3718
|
+
const s = N("q-tooltip"), o = N("q-icon"), i = N("q-option-group"), c = N("q-field");
|
|
3719
|
+
return m(), Y(c, {
|
|
3720
|
+
class: V(["j-q-option-group no-border-field", [{ "inline-block": e.inline, "q-mb-xs": !((u = e.rules) != null && u.length) }, e.filedClass]]),
|
|
3720
3721
|
label: e.label,
|
|
3721
3722
|
disable: e.disable,
|
|
3722
3723
|
rules: e.rules,
|
|
@@ -3729,10 +3730,10 @@ function Ko(e, t, n, l, r, a) {
|
|
|
3729
3730
|
"onUpdate:modelValue": t[1] || (t[1] = (g) => e.innerModel = g)
|
|
3730
3731
|
}, {
|
|
3731
3732
|
control: I(() => [
|
|
3732
|
-
|
|
3733
|
+
j(i, {
|
|
3733
3734
|
modelValue: e.innerModel,
|
|
3734
3735
|
"onUpdate:modelValue": t[0] || (t[0] = (g) => e.innerModel = g),
|
|
3735
|
-
class:
|
|
3736
|
+
class: V(e.computedInlineSpanClass),
|
|
3736
3737
|
options: e.computedOptions,
|
|
3737
3738
|
type: e.type,
|
|
3738
3739
|
disable: e.disable,
|
|
@@ -3743,27 +3744,27 @@ function Ko(e, t, n, l, r, a) {
|
|
|
3743
3744
|
dense: e.dense
|
|
3744
3745
|
}, {
|
|
3745
3746
|
label: I((g) => [
|
|
3746
|
-
W(
|
|
3747
|
-
g.tip ? (m(),
|
|
3747
|
+
W(w(g.label) + " ", 1),
|
|
3748
|
+
g.tip ? (m(), Y(o, {
|
|
3748
3749
|
key: 0,
|
|
3749
3750
|
name: "app:question",
|
|
3750
3751
|
size: "14px",
|
|
3751
3752
|
class: "q-ml-xs"
|
|
3752
3753
|
}, {
|
|
3753
3754
|
default: I(() => [
|
|
3754
|
-
|
|
3755
|
+
j(s, {
|
|
3755
3756
|
anchor: "top middle",
|
|
3756
3757
|
self: "bottom middle",
|
|
3757
3758
|
offset: [10, 10]
|
|
3758
3759
|
}, {
|
|
3759
3760
|
default: I(() => [
|
|
3760
|
-
W(
|
|
3761
|
+
W(w(g.tip), 1)
|
|
3761
3762
|
]),
|
|
3762
3763
|
_: 2
|
|
3763
3764
|
}, 1024)
|
|
3764
3765
|
]),
|
|
3765
3766
|
_: 2
|
|
3766
|
-
}, 1024)) :
|
|
3767
|
+
}, 1024)) : $("", !0)
|
|
3767
3768
|
]),
|
|
3768
3769
|
_: 1
|
|
3769
3770
|
}, 8, ["modelValue", "class", "options", "type", "disable", "inline", "size", "color", "onChange", "dense"])
|
|
@@ -3795,7 +3796,7 @@ const Ns = /* @__PURE__ */ B(Jo, [["render", Ko], ["__scopeId", "data-v-cd2d30aa
|
|
|
3795
3796
|
},
|
|
3796
3797
|
slots: Object,
|
|
3797
3798
|
setup(e) {
|
|
3798
|
-
const t = h(null), n = h(null), l =
|
|
3799
|
+
const t = h(null), n = h(null), l = C(() => {
|
|
3799
3800
|
let o = e.width;
|
|
3800
3801
|
return typeof o == "number" && (o = `${o}px`), {
|
|
3801
3802
|
minWidth: o
|
|
@@ -3804,17 +3805,17 @@ const Ns = /* @__PURE__ */ B(Jo, [["render", Ko], ["__scopeId", "data-v-cd2d30aa
|
|
|
3804
3805
|
e.trigger === "click" && t.value && t.value.toggle();
|
|
3805
3806
|
}, a = () => {
|
|
3806
3807
|
e.trigger === "hover" && t.value && t.value.show();
|
|
3807
|
-
},
|
|
3808
|
+
}, s = () => {
|
|
3808
3809
|
e.trigger === "hover" && t.value && t.value.hide();
|
|
3809
3810
|
};
|
|
3810
3811
|
return he(() => {
|
|
3811
|
-
var
|
|
3812
|
-
const o = ((
|
|
3813
|
-
o && (e.trigger === "click" ? o.addEventListener("click", r) : e.trigger === "hover" && (o.addEventListener("mouseenter", a), o.addEventListener("mouseleave",
|
|
3812
|
+
var i;
|
|
3813
|
+
const o = ((i = n.value) == null ? void 0 : i.$el) || document.querySelector(".inline-block");
|
|
3814
|
+
o && (e.trigger === "click" ? o.addEventListener("click", r) : e.trigger === "hover" && (o.addEventListener("mouseenter", a), o.addEventListener("mouseleave", s)));
|
|
3814
3815
|
}), Ut(() => {
|
|
3815
|
-
var
|
|
3816
|
-
const o = ((
|
|
3817
|
-
o && (e.trigger === "click" ? o.removeEventListener("click", r) : e.trigger === "hover" && (o.removeEventListener("mouseenter", a), o.removeEventListener("mouseleave",
|
|
3816
|
+
var i;
|
|
3817
|
+
const o = ((i = n.value) == null ? void 0 : i.$el) || document.querySelector(".inline-block");
|
|
3818
|
+
o && (e.trigger === "click" ? o.removeEventListener("click", r) : e.trigger === "hover" && (o.removeEventListener("mouseenter", a), o.removeEventListener("mouseleave", s)));
|
|
3818
3819
|
}), {
|
|
3819
3820
|
popupRef: t,
|
|
3820
3821
|
rootRef: n,
|
|
@@ -3823,24 +3824,24 @@ const Ns = /* @__PURE__ */ B(Jo, [["render", Ko], ["__scopeId", "data-v-cd2d30aa
|
|
|
3823
3824
|
}
|
|
3824
3825
|
}), _o = { class: "inline-block" }, ea = { class: "text-body2 text-grey" };
|
|
3825
3826
|
function ta(e, t, n, l, r, a) {
|
|
3826
|
-
const
|
|
3827
|
-
return m(),
|
|
3828
|
-
|
|
3829
|
-
|
|
3827
|
+
const s = N("q-card-section"), o = N("q-card"), i = N("q-popup-proxy");
|
|
3828
|
+
return m(), T("div", _o, [
|
|
3829
|
+
O(e.$slots, "default", {}, void 0, !0),
|
|
3830
|
+
j(i, {
|
|
3830
3831
|
ref: "popupRef",
|
|
3831
3832
|
offset: [12, 12]
|
|
3832
3833
|
}, {
|
|
3833
3834
|
default: I(() => [
|
|
3834
|
-
|
|
3835
|
+
j(o, {
|
|
3835
3836
|
class: "j-q-popover",
|
|
3836
3837
|
flat: "",
|
|
3837
3838
|
style: H(e.popoverStyle)
|
|
3838
3839
|
}, {
|
|
3839
3840
|
default: I(() => [
|
|
3840
|
-
|
|
3841
|
+
j(s, { class: "q-pa-sm" }, {
|
|
3841
3842
|
default: I(() => [
|
|
3842
|
-
|
|
3843
|
-
y("span", ea,
|
|
3843
|
+
O(e.$slots, "content", {}, () => [
|
|
3844
|
+
y("span", ea, w(e.title), 1)
|
|
3844
3845
|
], !0)
|
|
3845
3846
|
]),
|
|
3846
3847
|
_: 3
|
|
@@ -3875,21 +3876,21 @@ const Cs = /* @__PURE__ */ B(Xo, [["render", ta], ["__scopeId", "data-v-8de7d551
|
|
|
3875
3876
|
const { t: l } = K(), r = h(null), a = h({});
|
|
3876
3877
|
G(
|
|
3877
3878
|
() => e.modelValue,
|
|
3878
|
-
(
|
|
3879
|
-
Object.keys(a.value).length === 0 && (a.value = JSON.parse(JSON.stringify(
|
|
3879
|
+
(i) => {
|
|
3880
|
+
Object.keys(a.value).length === 0 && (a.value = JSON.parse(JSON.stringify(i)));
|
|
3880
3881
|
},
|
|
3881
3882
|
{ deep: !0, immediate: !0 }
|
|
3882
3883
|
);
|
|
3883
|
-
const
|
|
3884
|
+
const s = () => {
|
|
3884
3885
|
t("query");
|
|
3885
3886
|
}, o = () => {
|
|
3886
|
-
const
|
|
3887
|
-
t("update:modelValue",
|
|
3887
|
+
const i = JSON.parse(JSON.stringify(a.value));
|
|
3888
|
+
t("update:modelValue", i), t("reset");
|
|
3888
3889
|
};
|
|
3889
3890
|
return n({ searchFormRef: r }), {
|
|
3890
3891
|
t: l,
|
|
3891
3892
|
searchFormRef: r,
|
|
3892
|
-
handleClickQuery:
|
|
3893
|
+
handleClickQuery: s,
|
|
3893
3894
|
handleClickReset: o
|
|
3894
3895
|
};
|
|
3895
3896
|
}
|
|
@@ -3901,15 +3902,15 @@ const Cs = /* @__PURE__ */ B(Xo, [["render", ta], ["__scopeId", "data-v-8de7d551
|
|
|
3901
3902
|
class: "default-operation-buttons"
|
|
3902
3903
|
}, ra = { class: "search-bar-extra-operation" };
|
|
3903
3904
|
function ua(e, t, n, l, r, a) {
|
|
3904
|
-
const
|
|
3905
|
-
return m(),
|
|
3905
|
+
const s = N("q-btn");
|
|
3906
|
+
return m(), T("div", null, [
|
|
3906
3907
|
y("div", la, [
|
|
3907
3908
|
y("div", oa, [
|
|
3908
3909
|
y("div", aa, [
|
|
3909
3910
|
y("div", sa, [
|
|
3910
|
-
|
|
3911
|
-
e.operationVisible ? (m(),
|
|
3912
|
-
|
|
3911
|
+
O(e.$slots, "default"),
|
|
3912
|
+
e.operationVisible ? (m(), T("div", ia, [
|
|
3913
|
+
j(s, {
|
|
3913
3914
|
color: "primary",
|
|
3914
3915
|
loading: e.queryLoading,
|
|
3915
3916
|
"no-caps": "",
|
|
@@ -3918,11 +3919,11 @@ function ua(e, t, n, l, r, a) {
|
|
|
3918
3919
|
onClick: e.handleClickQuery
|
|
3919
3920
|
}, {
|
|
3920
3921
|
default: I(() => [
|
|
3921
|
-
W(
|
|
3922
|
+
W(w(e.t("action.query")), 1)
|
|
3922
3923
|
]),
|
|
3923
3924
|
_: 1
|
|
3924
3925
|
}, 8, ["loading", "onClick"]),
|
|
3925
|
-
e.resetVisible ? (m(),
|
|
3926
|
+
e.resetVisible ? (m(), Y(s, {
|
|
3926
3927
|
key: 0,
|
|
3927
3928
|
class: "operation-reset",
|
|
3928
3929
|
loading: e.resetLoading,
|
|
@@ -3932,14 +3933,14 @@ function ua(e, t, n, l, r, a) {
|
|
|
3932
3933
|
outline: ""
|
|
3933
3934
|
}, {
|
|
3934
3935
|
default: I(() => [
|
|
3935
|
-
W(
|
|
3936
|
+
W(w(e.t("action.reset")), 1)
|
|
3936
3937
|
]),
|
|
3937
3938
|
_: 1
|
|
3938
|
-
}, 8, ["loading", "onClick"])) :
|
|
3939
|
-
])) :
|
|
3939
|
+
}, 8, ["loading", "onClick"])) : $("", !0)
|
|
3940
|
+
])) : $("", !0)
|
|
3940
3941
|
]),
|
|
3941
3942
|
y("div", ra, [
|
|
3942
|
-
|
|
3943
|
+
O(e.$slots, "extra-operation")
|
|
3943
3944
|
])
|
|
3944
3945
|
])
|
|
3945
3946
|
])
|
|
@@ -3949,10 +3950,10 @@ function ua(e, t, n, l, r, a) {
|
|
|
3949
3950
|
const js = /* @__PURE__ */ B(na, [["render", ua]]), da = U({
|
|
3950
3951
|
name: "JQSelect",
|
|
3951
3952
|
components: {
|
|
3952
|
-
QSelect:
|
|
3953
|
+
QSelect: nt,
|
|
3953
3954
|
QSpinner: Ft,
|
|
3954
|
-
QItem:
|
|
3955
|
-
QItemSection:
|
|
3955
|
+
QItem: jt,
|
|
3956
|
+
QItemSection: Ct,
|
|
3956
3957
|
QIcon: le
|
|
3957
3958
|
},
|
|
3958
3959
|
props: {
|
|
@@ -3989,98 +3990,98 @@ const js = /* @__PURE__ */ B(na, [["render", ua]]), da = U({
|
|
|
3989
3990
|
},
|
|
3990
3991
|
slots: Object,
|
|
3991
3992
|
setup(e, { emit: t, slots: n, expose: l }) {
|
|
3992
|
-
const r = h(null), { t: a } = K(),
|
|
3993
|
+
const r = h(null), { t: a } = K(), s = h(!1), o = C({
|
|
3993
3994
|
get() {
|
|
3994
3995
|
return e.multiple && (e.modelValue === null || e.modelValue === void 0) ? [] : e.modelValue;
|
|
3995
3996
|
},
|
|
3996
|
-
set(
|
|
3997
|
-
t("update:modelValue",
|
|
3997
|
+
set(z) {
|
|
3998
|
+
t("update:modelValue", z);
|
|
3998
3999
|
}
|
|
3999
|
-
}),
|
|
4000
|
-
const
|
|
4001
|
-
return String(
|
|
4002
|
-
}) : e.options), d =
|
|
4003
|
-
const
|
|
4004
|
-
let
|
|
4000
|
+
}), i = h(e.options), c = h(""), u = h(void 0), g = C(() => !!e.optionValue), M = C(() => u.value ? u.value : c.value ? e.options.filter((z) => {
|
|
4001
|
+
const D = (z == null ? void 0 : z[e.optionLabel]) ?? JSON.stringify(z);
|
|
4002
|
+
return String(D).toLowerCase().includes(c.value.toLowerCase());
|
|
4003
|
+
}) : e.options), d = C(() => {
|
|
4004
|
+
const z = e.options, D = z.length;
|
|
4005
|
+
let k = o.value;
|
|
4005
4006
|
if (e.valueDisplayFn)
|
|
4006
|
-
return e.valueDisplayFn(
|
|
4007
|
-
if (
|
|
4007
|
+
return e.valueDisplayFn(k);
|
|
4008
|
+
if (k == null || Array.isArray(k) && k.length === 0)
|
|
4008
4009
|
return "";
|
|
4009
4010
|
if (e.multiple)
|
|
4010
|
-
return (Array.isArray(
|
|
4011
|
+
return (Array.isArray(k) ? k : []).map((P) => {
|
|
4011
4012
|
if (g.value) {
|
|
4012
|
-
const J =
|
|
4013
|
-
return !J &&
|
|
4013
|
+
const J = z.find((te) => (te == null ? void 0 : te[e.optionValue]) === P);
|
|
4014
|
+
return !J && D === 0 ? "" : (J == null ? void 0 : J[e.optionLabel]) ?? P;
|
|
4014
4015
|
}
|
|
4015
4016
|
return (P == null ? void 0 : P[e.optionLabel]) ?? P;
|
|
4016
4017
|
}).filter(Boolean).join(", ");
|
|
4017
4018
|
if (g.value) {
|
|
4018
|
-
const
|
|
4019
|
-
return !
|
|
4019
|
+
const S = z.find((Z) => (Z == null ? void 0 : Z[e.optionValue]) === k);
|
|
4020
|
+
return !S && D === 0 ? "" : (S == null ? void 0 : S[e.optionLabel]) ?? k;
|
|
4020
4021
|
}
|
|
4021
|
-
return (
|
|
4022
|
-
}), p = (
|
|
4023
|
-
const
|
|
4024
|
-
if (!Array.isArray(
|
|
4025
|
-
const
|
|
4026
|
-
return (
|
|
4027
|
-
},
|
|
4028
|
-
const
|
|
4029
|
-
if (!Array.isArray(
|
|
4030
|
-
const
|
|
4031
|
-
return g.value ? e.options.find((
|
|
4032
|
-
},
|
|
4033
|
-
const
|
|
4022
|
+
return (k == null ? void 0 : k[e.optionLabel]) ?? k;
|
|
4023
|
+
}), p = (z) => {
|
|
4024
|
+
const D = o.value;
|
|
4025
|
+
if (!Array.isArray(D)) return "";
|
|
4026
|
+
const k = D[z], S = e.options.find((Z) => (Z == null ? void 0 : Z[e.optionValue]) === k);
|
|
4027
|
+
return (S == null ? void 0 : S[e.optionLabel]) ?? k;
|
|
4028
|
+
}, A = (z) => {
|
|
4029
|
+
const D = o.value;
|
|
4030
|
+
if (!Array.isArray(D)) return;
|
|
4031
|
+
const k = D[z];
|
|
4032
|
+
return g.value ? e.options.find((S) => (S == null ? void 0 : S[e.optionValue]) === k) : typeof k == "object" && k !== null ? k : void 0;
|
|
4033
|
+
}, v = (z, D, k) => {
|
|
4034
|
+
const S = z.trim().toLowerCase();
|
|
4034
4035
|
if (e.filterFn) {
|
|
4035
4036
|
try {
|
|
4036
|
-
e.filterFn(
|
|
4037
|
-
|
|
4037
|
+
e.filterFn(S, (Z) => {
|
|
4038
|
+
D(Z);
|
|
4038
4039
|
});
|
|
4039
4040
|
} catch {
|
|
4040
|
-
|
|
4041
|
+
D([]);
|
|
4041
4042
|
}
|
|
4042
|
-
c.value =
|
|
4043
|
+
c.value = S, u.value = void 0;
|
|
4043
4044
|
return;
|
|
4044
4045
|
}
|
|
4045
|
-
if (
|
|
4046
|
+
if (S) {
|
|
4046
4047
|
const Z = e.options.filter((P) => {
|
|
4047
4048
|
const J = (P == null ? void 0 : P[e.optionLabel]) ?? JSON.stringify(P);
|
|
4048
|
-
return String(J).toLowerCase().includes(
|
|
4049
|
+
return String(J).toLowerCase().includes(S);
|
|
4049
4050
|
});
|
|
4050
|
-
|
|
4051
|
+
D(Z);
|
|
4051
4052
|
} else
|
|
4052
|
-
|
|
4053
|
-
c.value =
|
|
4054
|
-
},
|
|
4055
|
-
let
|
|
4056
|
-
return e.popupContentClass && (
|
|
4053
|
+
D(e.options);
|
|
4054
|
+
c.value = S, u.value = void 0;
|
|
4055
|
+
}, Q = C(() => {
|
|
4056
|
+
let z = "j-q-select-popup select-popup-content height1";
|
|
4057
|
+
return e.popupContentClass && (z += ` ${e.popupContentClass}`), z;
|
|
4057
4058
|
}), q = () => {
|
|
4058
4059
|
de(() => {
|
|
4059
4060
|
if (r.value) {
|
|
4060
|
-
const
|
|
4061
|
-
|
|
4061
|
+
const z = r.value.$el, D = z == null ? void 0 : z.querySelector(".q-field__native span");
|
|
4062
|
+
D && (s.value = D.scrollWidth > D.clientWidth);
|
|
4062
4063
|
}
|
|
4063
4064
|
});
|
|
4064
|
-
},
|
|
4065
|
+
}, E = C(() => e.filterable && s.value ? !1 : e.filterable ?? e.useInput);
|
|
4065
4066
|
return G([o, d], () => {
|
|
4066
4067
|
e.filterable && q();
|
|
4067
4068
|
}), he(() => {
|
|
4068
4069
|
e.filterable && q();
|
|
4069
4070
|
}), G(
|
|
4070
4071
|
o,
|
|
4071
|
-
(
|
|
4072
|
-
e.multiple && e.closeOnSelect && r.value && Array.isArray(
|
|
4072
|
+
(z, D) => {
|
|
4073
|
+
e.multiple && e.closeOnSelect && r.value && Array.isArray(z) && Array.isArray(D) && z.length !== D.length && r.value.hidePopup();
|
|
4073
4074
|
},
|
|
4074
4075
|
{ deep: !0 }
|
|
4075
4076
|
), l({
|
|
4076
|
-
copyOptions:
|
|
4077
|
+
copyOptions: i,
|
|
4077
4078
|
validate: () => {
|
|
4078
|
-
var
|
|
4079
|
-
return ((
|
|
4079
|
+
var z;
|
|
4080
|
+
return ((z = r.value) == null ? void 0 : z.validate()) ?? !1;
|
|
4080
4081
|
},
|
|
4081
4082
|
resetValidation: () => {
|
|
4082
|
-
var
|
|
4083
|
-
return (
|
|
4083
|
+
var z;
|
|
4084
|
+
return (z = r.value) == null ? void 0 : z.resetValidation();
|
|
4084
4085
|
}
|
|
4085
4086
|
}), {
|
|
4086
4087
|
t: a,
|
|
@@ -4088,21 +4089,21 @@ const js = /* @__PURE__ */ B(na, [["render", ua]]), da = U({
|
|
|
4088
4089
|
innerValue: o,
|
|
4089
4090
|
computedEmitValue: g,
|
|
4090
4091
|
computedDisplayValue: d,
|
|
4091
|
-
computedUseInput:
|
|
4092
|
+
computedUseInput: E,
|
|
4092
4093
|
getSelectedItemLabelByIndex: p,
|
|
4093
|
-
getSelectedItemOptionByIndex:
|
|
4094
|
-
filter:
|
|
4095
|
-
computedPopupContentClass:
|
|
4094
|
+
getSelectedItemOptionByIndex: A,
|
|
4095
|
+
filter: v,
|
|
4096
|
+
computedPopupContentClass: Q,
|
|
4096
4097
|
computedOptions: M,
|
|
4097
4098
|
slots: n
|
|
4098
4099
|
};
|
|
4099
4100
|
}
|
|
4100
4101
|
}), ca = { class: "select-selected-item" };
|
|
4101
4102
|
function Ma(e, t, n, l, r, a) {
|
|
4102
|
-
const
|
|
4103
|
-
return m(),
|
|
4103
|
+
const s = N("q-spinner"), o = N("q-icon"), i = N("q-item-section"), c = N("q-item"), u = N("q-select");
|
|
4104
|
+
return m(), Y(u, {
|
|
4104
4105
|
ref: "qSelectRef",
|
|
4105
|
-
class:
|
|
4106
|
+
class: V([{
|
|
4106
4107
|
"j-q-select--table": e.label,
|
|
4107
4108
|
"j-q-select--form": !e.label && !e.smInput,
|
|
4108
4109
|
"j-q-input--sm": e.smInput && !e.label
|
|
@@ -4139,14 +4140,14 @@ function Ma(e, t, n, l, r, a) {
|
|
|
4139
4140
|
"hide-dropdown-icon": e.readonly
|
|
4140
4141
|
}, we({
|
|
4141
4142
|
loading: I(() => [
|
|
4142
|
-
|
|
4143
|
+
j(s, {
|
|
4143
4144
|
color: "primary",
|
|
4144
4145
|
size: "14px",
|
|
4145
4146
|
thickness: 2
|
|
4146
4147
|
})
|
|
4147
4148
|
]),
|
|
4148
4149
|
default: I(() => [
|
|
4149
|
-
oe(y("div", { class: "float-placeholder" },
|
|
4150
|
+
oe(y("div", { class: "float-placeholder" }, w(e.t("messages.pleaseSelect")), 513), [
|
|
4150
4151
|
[ie, !e.filterable && !e.label && (e.innerValue === null || e.innerValue === "" || e.innerValue === void 0 || Array.isArray(e.innerValue) && e.innerValue.length === 0)]
|
|
4151
4152
|
])
|
|
4152
4153
|
]),
|
|
@@ -4155,7 +4156,7 @@ function Ma(e, t, n, l, r, a) {
|
|
|
4155
4156
|
e.slots["value-display"] ? {
|
|
4156
4157
|
name: "selected",
|
|
4157
4158
|
fn: I(() => [
|
|
4158
|
-
|
|
4159
|
+
O(e.$slots, "value-display")
|
|
4159
4160
|
]),
|
|
4160
4161
|
key: "0"
|
|
4161
4162
|
} : void 0,
|
|
@@ -4165,10 +4166,10 @@ function Ma(e, t, n, l, r, a) {
|
|
|
4165
4166
|
var M;
|
|
4166
4167
|
return [
|
|
4167
4168
|
y("span", ca, [
|
|
4168
|
-
|
|
4169
|
-
W(
|
|
4169
|
+
O(e.$slots, "chip-value-display", ue(ge(g)), () => [
|
|
4170
|
+
W(w(e.getSelectedItemLabelByIndex(g.index)), 1)
|
|
4170
4171
|
]),
|
|
4171
|
-
(M = e.getSelectedItemOptionByIndex(g.index)) != null && M.hideRemove ?
|
|
4172
|
+
(M = e.getSelectedItemOptionByIndex(g.index)) != null && M.hideRemove ? $("", !0) : (m(), Y(o, {
|
|
4172
4173
|
key: 0,
|
|
4173
4174
|
name: "close",
|
|
4174
4175
|
class: "cursor-pointer q-ml-xs",
|
|
@@ -4183,40 +4184,40 @@ function Ma(e, t, n, l, r, a) {
|
|
|
4183
4184
|
e.slots.prepend ? {
|
|
4184
4185
|
name: "prepend",
|
|
4185
4186
|
fn: I(() => [
|
|
4186
|
-
|
|
4187
|
+
O(e.$slots, "prepend")
|
|
4187
4188
|
]),
|
|
4188
4189
|
key: "2"
|
|
4189
4190
|
} : void 0,
|
|
4190
4191
|
e.slots.append ? {
|
|
4191
4192
|
name: "append",
|
|
4192
4193
|
fn: I(() => [
|
|
4193
|
-
|
|
4194
|
+
O(e.$slots, "append")
|
|
4194
4195
|
]),
|
|
4195
4196
|
key: "3"
|
|
4196
4197
|
} : void 0,
|
|
4197
4198
|
e.slots.after ? {
|
|
4198
4199
|
name: "after",
|
|
4199
4200
|
fn: I(() => [
|
|
4200
|
-
|
|
4201
|
+
O(e.$slots, "after")
|
|
4201
4202
|
]),
|
|
4202
4203
|
key: "4"
|
|
4203
4204
|
} : void 0,
|
|
4204
4205
|
e.slots.hint ? {
|
|
4205
4206
|
name: "hint",
|
|
4206
4207
|
fn: I(() => [
|
|
4207
|
-
|
|
4208
|
+
O(e.$slots, "hint")
|
|
4208
4209
|
]),
|
|
4209
4210
|
key: "5"
|
|
4210
4211
|
} : void 0,
|
|
4211
4212
|
e.slots["no-option"] || e.emptyOption ? {
|
|
4212
4213
|
name: "no-option",
|
|
4213
4214
|
fn: I(() => [
|
|
4214
|
-
|
|
4215
|
-
|
|
4215
|
+
O(e.$slots, "no-option", {}, () => [
|
|
4216
|
+
j(c, { dense: e.dense }, {
|
|
4216
4217
|
default: I(() => [
|
|
4217
|
-
|
|
4218
|
+
j(i, { class: "text-grey text-caption" }, {
|
|
4218
4219
|
default: I(() => [
|
|
4219
|
-
W(
|
|
4220
|
+
W(w(e.t("messages.noData")), 1)
|
|
4220
4221
|
]),
|
|
4221
4222
|
_: 1
|
|
4222
4223
|
})
|
|
@@ -4230,40 +4231,40 @@ function Ma(e, t, n, l, r, a) {
|
|
|
4230
4231
|
e.slots.option ? {
|
|
4231
4232
|
name: "option",
|
|
4232
4233
|
fn: I((g) => [
|
|
4233
|
-
|
|
4234
|
+
O(e.$slots, "option", ue(ge(g)))
|
|
4234
4235
|
]),
|
|
4235
4236
|
key: "7"
|
|
4236
4237
|
} : void 0
|
|
4237
4238
|
]), 1032, ["class", "modelValue", "clearable", "dense", "placeholder", "disable", "display-value", "dropdown-icon", "emit-value", "input-debounce", "label", "max-values", "multiple", "no-error-icon", "options", "option-label", "option-value", "options-dense", "outlined", "popup-content-class", "readonly", "rules", "title", "use-chips", "use-input", "loading", "onFilter", "hide-dropdown-icon"]);
|
|
4238
4239
|
}
|
|
4239
|
-
const zs = /* @__PURE__ */ B(da, [["render", Ma]]),
|
|
4240
|
+
const zs = /* @__PURE__ */ B(da, [["render", Ma]]), dt = 15, kt = [10, 15, 20, 30, 50];
|
|
4240
4241
|
function ga(e) {
|
|
4241
|
-
const t =
|
|
4242
|
+
const t = dt, n = De({
|
|
4242
4243
|
page: 1,
|
|
4243
4244
|
rowsPerPage: t,
|
|
4244
4245
|
rowsNumber: 0
|
|
4245
4246
|
});
|
|
4246
|
-
return { paginationInfo: n, getPaginationParam: () => n, getNum: () => n.page, setNum: (
|
|
4247
|
-
n.page =
|
|
4248
|
-
}, setSize: (
|
|
4249
|
-
n.rowsPerPage =
|
|
4250
|
-
}, setTotal: (
|
|
4251
|
-
n.rowsNumber =
|
|
4247
|
+
return { paginationInfo: n, getPaginationParam: () => n, getNum: () => n.page, setNum: (i) => {
|
|
4248
|
+
n.page = i ?? 1;
|
|
4249
|
+
}, setSize: (i) => {
|
|
4250
|
+
n.rowsPerPage = i ?? t;
|
|
4251
|
+
}, setTotal: (i) => {
|
|
4252
|
+
n.rowsNumber = i ?? 0;
|
|
4252
4253
|
} };
|
|
4253
4254
|
}
|
|
4254
4255
|
const ma = U({
|
|
4255
4256
|
name: "MyPaginationComponent",
|
|
4256
4257
|
components: {
|
|
4257
|
-
QSelect:
|
|
4258
|
+
QSelect: nt,
|
|
4258
4259
|
QPagination: Jt,
|
|
4259
|
-
QInput:
|
|
4260
|
+
QInput: Pe
|
|
4260
4261
|
},
|
|
4261
4262
|
props: {
|
|
4262
4263
|
paginationInfo: {
|
|
4263
4264
|
type: Object,
|
|
4264
4265
|
default: () => ({
|
|
4265
4266
|
page: 1,
|
|
4266
|
-
rowsPerPage:
|
|
4267
|
+
rowsPerPage: dt,
|
|
4267
4268
|
rowsNumber: 0
|
|
4268
4269
|
})
|
|
4269
4270
|
}
|
|
@@ -4277,10 +4278,10 @@ const ma = U({
|
|
|
4277
4278
|
totalPage: 0,
|
|
4278
4279
|
// 初始化为 0,等计算
|
|
4279
4280
|
currentPage: ""
|
|
4280
|
-
}), r = kt, a =
|
|
4281
|
+
}), r = kt, a = C(() => {
|
|
4281
4282
|
const { rowsNumber: g, rowsPerPage: M } = l, d = Math.ceil(g / M);
|
|
4282
4283
|
return d < 1 ? 1 : d;
|
|
4283
|
-
}),
|
|
4284
|
+
}), s = C(() => `${l.page} / ${l.totalPage}`), o = C(() => {
|
|
4284
4285
|
const g = a.value.toString();
|
|
4285
4286
|
return Array(g.length).fill("#").join("");
|
|
4286
4287
|
});
|
|
@@ -4297,7 +4298,7 @@ const ma = U({
|
|
|
4297
4298
|
},
|
|
4298
4299
|
{ immediate: !0 }
|
|
4299
4300
|
);
|
|
4300
|
-
const
|
|
4301
|
+
const i = () => {
|
|
4301
4302
|
const g = {
|
|
4302
4303
|
page: l.page,
|
|
4303
4304
|
rowsPerPage: l.rowsPerPage,
|
|
@@ -4305,19 +4306,19 @@ const ma = U({
|
|
|
4305
4306
|
};
|
|
4306
4307
|
t("pagination", g);
|
|
4307
4308
|
}, c = () => {
|
|
4308
|
-
l.page = 1,
|
|
4309
|
+
l.page = 1, i();
|
|
4309
4310
|
}, u = () => {
|
|
4310
4311
|
if (l.currentPage) {
|
|
4311
4312
|
let g = Number(l.currentPage);
|
|
4312
4313
|
isNaN(g) || g < 1 ? g = 1 : g > a.value && (g = a.value), l.page = g, l.currentPage = "";
|
|
4313
4314
|
}
|
|
4314
|
-
l.page < 1 && (l.page = 1), l.page > a.value && (l.page = a.value),
|
|
4315
|
+
l.page < 1 && (l.page = 1), l.page > a.value && (l.page = a.value), i();
|
|
4315
4316
|
};
|
|
4316
4317
|
return {
|
|
4317
4318
|
t: n,
|
|
4318
4319
|
internalInfo: l,
|
|
4319
4320
|
rowNumbersArr: r,
|
|
4320
|
-
currentPagePlaceholder:
|
|
4321
|
+
currentPagePlaceholder: s,
|
|
4321
4322
|
currentPageMask: o,
|
|
4322
4323
|
maxPage: a,
|
|
4323
4324
|
handleRowsPerPageChange: c,
|
|
@@ -4328,13 +4329,13 @@ const ma = U({
|
|
|
4328
4329
|
}
|
|
4329
4330
|
}), pa = { class: "row items-center justify-end" }, fa = { style: { "margin-top": "4px" } }, ya = { style: { "margin-top": "4px", "margin-right": "24px" } }, Ia = { style: { "margin-left": "24px" } };
|
|
4330
4331
|
function Da(e, t, n, l, r, a) {
|
|
4331
|
-
const
|
|
4332
|
-
return m(),
|
|
4332
|
+
const s = N("q-select"), o = N("q-pagination"), i = N("q-input");
|
|
4333
|
+
return m(), T("div", null, [
|
|
4333
4334
|
y("div", pa, [
|
|
4334
4335
|
y("div", fa, [
|
|
4335
|
-
y("span", null,
|
|
4336
|
+
y("span", null, w(e.t("messages.pagination.total", { total: e.internalInfo.rowsNumber })), 1)
|
|
4336
4337
|
]),
|
|
4337
|
-
|
|
4338
|
+
j(s, {
|
|
4338
4339
|
class: "my-pagination",
|
|
4339
4340
|
modelValue: e.internalInfo.rowsPerPage,
|
|
4340
4341
|
"onUpdate:modelValue": [
|
|
@@ -4351,9 +4352,9 @@ function Da(e, t, n, l, r, a) {
|
|
|
4351
4352
|
"popup-content-class": "j-q-select-popup select-popup-content height1"
|
|
4352
4353
|
}, null, 8, ["modelValue", "options", "onUpdate:modelValue"]),
|
|
4353
4354
|
y("div", ya, [
|
|
4354
|
-
y("span", null,
|
|
4355
|
+
y("span", null, w(e.t("messages.pagination.pieces_page")), 1)
|
|
4355
4356
|
]),
|
|
4356
|
-
|
|
4357
|
+
j(o, {
|
|
4357
4358
|
modelValue: e.internalInfo.page,
|
|
4358
4359
|
"onUpdate:modelValue": [
|
|
4359
4360
|
t[1] || (t[1] = (c) => e.internalInfo.page = c),
|
|
@@ -4370,8 +4371,8 @@ function Da(e, t, n, l, r, a) {
|
|
|
4370
4371
|
"active-text-color": "white",
|
|
4371
4372
|
ripple: !1
|
|
4372
4373
|
}, null, 8, ["modelValue", "max", "onUpdate:modelValue"]),
|
|
4373
|
-
y("p", Ia,
|
|
4374
|
-
|
|
4374
|
+
y("p", Ia, w(e.t("messages.pagination.goto")), 1),
|
|
4375
|
+
j(i, {
|
|
4375
4376
|
autofocus: !1,
|
|
4376
4377
|
modelValue: e.internalInfo.currentPage,
|
|
4377
4378
|
"onUpdate:modelValue": t[2] || (t[2] = (c) => e.internalInfo.currentPage = c),
|
|
@@ -4396,7 +4397,7 @@ const Aa = /* @__PURE__ */ B(ma, [["render", Da]]), Na = U({
|
|
|
4396
4397
|
QTable: _t,
|
|
4397
4398
|
QTh: Xt,
|
|
4398
4399
|
QTd: Kt,
|
|
4399
|
-
QInnerLoading:
|
|
4400
|
+
QInnerLoading: At
|
|
4400
4401
|
},
|
|
4401
4402
|
props: {
|
|
4402
4403
|
autoHeight: { type: Boolean, default: !1 },
|
|
@@ -4420,113 +4421,113 @@ const Aa = /* @__PURE__ */ B(ma, [["render", Da]]), Na = U({
|
|
|
4420
4421
|
},
|
|
4421
4422
|
slots: Object,
|
|
4422
4423
|
setup(e, { emit: t, expose: n, slots: l }) {
|
|
4423
|
-
const { t: r } = K(), a = h(null),
|
|
4424
|
+
const { t: r } = K(), a = h(null), s = h([]), o = h(/* @__PURE__ */ new Map()), i = h(/* @__PURE__ */ new Map()), c = (f) => Reflect.has(l, f), u = C({
|
|
4424
4425
|
get() {
|
|
4425
|
-
return e.selected ??
|
|
4426
|
+
return e.selected ?? s.value;
|
|
4426
4427
|
},
|
|
4427
4428
|
set(f) {
|
|
4428
|
-
t("update:selected", f),
|
|
4429
|
+
t("update:selected", f), s.value = f;
|
|
4429
4430
|
}
|
|
4430
|
-
}), g =
|
|
4431
|
+
}), g = C(() => e.tableHeaderClass), M = C(() => {
|
|
4431
4432
|
var f;
|
|
4432
|
-
return ((f = e.columns) == null ? void 0 : f.filter((
|
|
4433
|
-
}), d =
|
|
4433
|
+
return ((f = e.columns) == null ? void 0 : f.filter((b) => Reflect.has(l, `header-cell-${b.name}`))) || [];
|
|
4434
|
+
}), d = C(() => {
|
|
4434
4435
|
var f;
|
|
4435
|
-
return ((f = e.columns) == null ? void 0 : f.filter(({ name:
|
|
4436
|
-
}), p =
|
|
4436
|
+
return ((f = e.columns) == null ? void 0 : f.filter(({ name: b, onClick: x }) => Reflect.has(l, `body-cell-${b}`) && !x)) || [];
|
|
4437
|
+
}), p = C(() => {
|
|
4437
4438
|
var f;
|
|
4438
|
-
return ((f = e.columns) == null ? void 0 : f.filter(({ onClick:
|
|
4439
|
-
}),
|
|
4439
|
+
return ((f = e.columns) == null ? void 0 : f.filter(({ onClick: b }) => b)) || [];
|
|
4440
|
+
}), A = C(() => {
|
|
4440
4441
|
var f;
|
|
4441
|
-
return ((f = e.columns) == null ? void 0 : f.filter(({ whiteSpace:
|
|
4442
|
-
}),
|
|
4442
|
+
return ((f = e.columns) == null ? void 0 : f.filter(({ whiteSpace: b, onClick: x, name: F }) => b && !x && !Reflect.has(l, `body-cell-${F}`))) || [];
|
|
4443
|
+
}), v = C(() => {
|
|
4443
4444
|
var f;
|
|
4444
|
-
return ((f = e.columns) == null ? void 0 : f.filter(({ limitWidth:
|
|
4445
|
-
}), { paginationInfo:
|
|
4445
|
+
return ((f = e.columns) == null ? void 0 : f.filter(({ limitWidth: b, whiteSpace: x, onClick: F, name: X }) => b && !x && !F && !Reflect.has(l, `body-cell-${X}`))) || [];
|
|
4446
|
+
}), { paginationInfo: Q, getPaginationParam: q, getNum: E, setNum: z, setTotal: D, setSize: k } = ga(), S = C(() => ({
|
|
4446
4447
|
rowsPerPage: 0
|
|
4447
4448
|
})), Z = () => {
|
|
4448
|
-
t("changeNum",
|
|
4449
|
+
t("changeNum", Q), e.autoScrollOnChangePage && te();
|
|
4449
4450
|
}, P = () => {
|
|
4450
|
-
t("changeSize",
|
|
4451
|
+
t("changeSize", Q), e.autoScrollOnChangePage && te();
|
|
4451
4452
|
}, J = (f) => {
|
|
4452
4453
|
t("paginationChange", f), e.autoScrollOnChangePage && te();
|
|
4453
4454
|
}, te = () => {
|
|
4454
|
-
var
|
|
4455
|
-
const f = (
|
|
4455
|
+
var b;
|
|
4456
|
+
const f = (b = a.value) == null ? void 0 : b.$el;
|
|
4456
4457
|
f == null || f.scrollIntoView({ behavior: "smooth" });
|
|
4457
|
-
}, me = (f,
|
|
4458
|
-
f.onClick && typeof f.onClick == "function" && f.onClick(
|
|
4459
|
-
}, Ne = (f,
|
|
4460
|
-
const
|
|
4458
|
+
}, me = (f, b) => f.format && typeof f.format == "function" ? f.format(b) : b, ce = (f, b) => {
|
|
4459
|
+
f.onClick && typeof f.onClick == "function" && f.onClick(b);
|
|
4460
|
+
}, Ne = (f, b, x) => f.clickable && typeof f.clickable == "function" ? f.clickable(b, x) : b != null, Ee = (f) => {
|
|
4461
|
+
const b = window.innerWidth <= 1440;
|
|
4461
4462
|
if (f) {
|
|
4462
|
-
if (
|
|
4463
|
+
if (b && f.cellMaxWidthSmall !== void 0)
|
|
4463
4464
|
return f.cellMaxWidthSmall;
|
|
4464
|
-
if (!
|
|
4465
|
+
if (!b && f.cellMaxWidth !== void 0)
|
|
4465
4466
|
return f.cellMaxWidth;
|
|
4466
4467
|
}
|
|
4467
|
-
return
|
|
4468
|
-
},
|
|
4468
|
+
return b ? e.cellMaxWidthSmall : e.cellMaxWidth;
|
|
4469
|
+
}, qe = (f) => {
|
|
4469
4470
|
if (!f.whiteSpace) return {};
|
|
4470
|
-
const
|
|
4471
|
+
const b = Ee(f);
|
|
4471
4472
|
return {
|
|
4472
|
-
width: `${
|
|
4473
|
-
maxWidth: `${
|
|
4474
|
-
minWidth: `${
|
|
4473
|
+
width: `${b}px`,
|
|
4474
|
+
maxWidth: `${b}px`,
|
|
4475
|
+
minWidth: `${b}px`
|
|
4475
4476
|
};
|
|
4476
|
-
},
|
|
4477
|
-
const
|
|
4477
|
+
}, Ue = (f) => {
|
|
4478
|
+
const b = window.innerWidth <= 1440;
|
|
4478
4479
|
if (f) {
|
|
4479
|
-
if (
|
|
4480
|
+
if (b && f.cellMaxWidthSmall !== void 0)
|
|
4480
4481
|
return { "--cell-max-width-small": `${f.cellMaxWidthSmall}px` };
|
|
4481
|
-
if (!
|
|
4482
|
+
if (!b && f.cellMaxWidth !== void 0)
|
|
4482
4483
|
return { "--cell-max-width": `${f.cellMaxWidth}px` };
|
|
4483
4484
|
}
|
|
4484
4485
|
return {};
|
|
4485
|
-
}, $e = (f) => f.whiteSpace ? `cell-ellipsis cell-ellipsis--${Math.min(Math.max(1, Number(f.whiteSpace) || 1), 3)}` : "",
|
|
4486
|
+
}, $e = (f) => f.whiteSpace ? `cell-ellipsis cell-ellipsis--${Math.min(Math.max(1, Number(f.whiteSpace) || 1), 3)}` : "", Be = () => ({
|
|
4486
4487
|
whiteSpace: "normal",
|
|
4487
4488
|
wordBreak: "break-word",
|
|
4488
4489
|
overflowWrap: "break-word"
|
|
4489
|
-
}),
|
|
4490
|
-
f && (o.value.set(
|
|
4491
|
-
Ye(
|
|
4490
|
+
}), Ze = (f) => Ee(f) <= 300 ? "j-tooltip--small" : "j-tooltip--large", Re = (f, b) => {
|
|
4491
|
+
f && (o.value.set(b, f), de(() => {
|
|
4492
|
+
Ye(b);
|
|
4492
4493
|
}));
|
|
4493
4494
|
}, Ye = (f) => {
|
|
4494
|
-
const
|
|
4495
|
-
if (!
|
|
4496
|
-
|
|
4495
|
+
const b = o.value.get(f);
|
|
4496
|
+
if (!b) {
|
|
4497
|
+
i.value.set(f, !1);
|
|
4497
4498
|
return;
|
|
4498
4499
|
}
|
|
4499
|
-
const x =
|
|
4500
|
-
|
|
4501
|
-
},
|
|
4500
|
+
const x = b.scrollWidth > b.clientWidth || b.scrollHeight > b.clientHeight;
|
|
4501
|
+
i.value.set(f, x);
|
|
4502
|
+
}, We = (f) => i.value.get(f) || !1, L = () => {
|
|
4502
4503
|
de(() => {
|
|
4503
|
-
o.value.forEach((f,
|
|
4504
|
-
Ye(
|
|
4504
|
+
o.value.forEach((f, b) => {
|
|
4505
|
+
Ye(b);
|
|
4505
4506
|
});
|
|
4506
4507
|
});
|
|
4507
4508
|
};
|
|
4508
4509
|
return G(
|
|
4509
4510
|
() => e.rows,
|
|
4510
4511
|
() => {
|
|
4511
|
-
o.value.clear(),
|
|
4512
|
+
o.value.clear(), i.value.clear(), L();
|
|
4512
4513
|
},
|
|
4513
4514
|
{ deep: !0 }
|
|
4514
4515
|
), G(
|
|
4515
4516
|
() => e.loading,
|
|
4516
|
-
(f,
|
|
4517
|
-
|
|
4517
|
+
(f, b) => {
|
|
4518
|
+
b && !f && L();
|
|
4518
4519
|
}
|
|
4519
4520
|
), n({
|
|
4520
4521
|
JQTableRef: a,
|
|
4521
|
-
paginationInfo:
|
|
4522
|
+
paginationInfo: Q,
|
|
4522
4523
|
getPaginationParam: q,
|
|
4523
|
-
getNum:
|
|
4524
|
-
setNum:
|
|
4525
|
-
setTotal:
|
|
4526
|
-
setSize:
|
|
4524
|
+
getNum: E,
|
|
4525
|
+
setNum: z,
|
|
4526
|
+
setTotal: D,
|
|
4527
|
+
setSize: k,
|
|
4527
4528
|
scrollTop: te,
|
|
4528
4529
|
ROWS_PER_PAGE_OPTIONS: kt,
|
|
4529
|
-
DEFAULT_ROWS_PER_PAGE:
|
|
4530
|
+
DEFAULT_ROWS_PER_PAGE: dt
|
|
4530
4531
|
}), {
|
|
4531
4532
|
t: r,
|
|
4532
4533
|
JQTableRef: a,
|
|
@@ -4536,45 +4537,45 @@ const Aa = /* @__PURE__ */ B(ma, [["render", Da]]), Na = U({
|
|
|
4536
4537
|
computedSlotHeaderCellColumns: M,
|
|
4537
4538
|
computedSlotBodyCellColumns: d,
|
|
4538
4539
|
computedClickableColumns: p,
|
|
4539
|
-
computedWhiteSpaceColumns:
|
|
4540
|
-
computedLimitWidthColumns:
|
|
4541
|
-
paginationInfo:
|
|
4540
|
+
computedWhiteSpaceColumns: A,
|
|
4541
|
+
computedLimitWidthColumns: v,
|
|
4542
|
+
paginationInfo: Q,
|
|
4542
4543
|
getPaginationParam: q,
|
|
4543
|
-
getNum:
|
|
4544
|
-
setNum:
|
|
4545
|
-
setTotal:
|
|
4546
|
-
setSize:
|
|
4547
|
-
clacPagination:
|
|
4544
|
+
getNum: E,
|
|
4545
|
+
setNum: z,
|
|
4546
|
+
setTotal: D,
|
|
4547
|
+
setSize: k,
|
|
4548
|
+
clacPagination: S,
|
|
4548
4549
|
changeNum: Z,
|
|
4549
4550
|
changeSize: P,
|
|
4550
4551
|
onPaginationChange: J,
|
|
4551
4552
|
formatColumnValue: me,
|
|
4552
4553
|
handleColumnClick: ce,
|
|
4553
4554
|
isClickable: Ne,
|
|
4554
|
-
getCellStyle:
|
|
4555
|
+
getCellStyle: qe,
|
|
4555
4556
|
getCellClass: $e,
|
|
4556
|
-
getCellLimitWidthStyle:
|
|
4557
|
-
getTooltipStyle:
|
|
4558
|
-
getTooltipClass:
|
|
4559
|
-
setEllipsisRef:
|
|
4560
|
-
shouldShowTooltip:
|
|
4557
|
+
getCellLimitWidthStyle: Ue,
|
|
4558
|
+
getTooltipStyle: Be,
|
|
4559
|
+
getTooltipClass: Ze,
|
|
4560
|
+
setEllipsisRef: Re,
|
|
4561
|
+
shouldShowTooltip: We
|
|
4561
4562
|
};
|
|
4562
4563
|
}
|
|
4563
4564
|
}), Ca = ["onClick"];
|
|
4564
4565
|
function ja(e, t, n, l, r, a) {
|
|
4565
|
-
const
|
|
4566
|
-
return m(),
|
|
4566
|
+
const s = N("q-th"), o = N("q-td"), i = N("q-tooltip"), c = N("q-inner-loading"), u = N("q-table"), g = N("Pagination");
|
|
4567
|
+
return m(), T("div", {
|
|
4567
4568
|
class: "j-q-table-container",
|
|
4568
4569
|
style: H({
|
|
4569
4570
|
"--cell-max-width": `${e.cellMaxWidth}px`,
|
|
4570
4571
|
"--cell-max-width-small": `${e.cellMaxWidthSmall}px`
|
|
4571
4572
|
})
|
|
4572
4573
|
}, [
|
|
4573
|
-
|
|
4574
|
+
j(u, {
|
|
4574
4575
|
ref: "JQTableRef",
|
|
4575
4576
|
selected: e.computedSelected,
|
|
4576
4577
|
"onUpdate:selected": t[0] || (t[0] = (M) => e.computedSelected = M),
|
|
4577
|
-
class:
|
|
4578
|
+
class: V([e.tableClass, "j-q-table"]),
|
|
4578
4579
|
columns: e.columns,
|
|
4579
4580
|
dense: e.dense,
|
|
4580
4581
|
flat: e.flat,
|
|
@@ -4587,7 +4588,7 @@ function ja(e, t, n, l, r, a) {
|
|
|
4587
4588
|
"binary-state-sort": !1
|
|
4588
4589
|
}, we({
|
|
4589
4590
|
loading: I(() => [
|
|
4590
|
-
|
|
4591
|
+
j(c, {
|
|
4591
4592
|
showing: "",
|
|
4592
4593
|
label: e.t("messages.loading"),
|
|
4593
4594
|
color: "primary",
|
|
@@ -4596,37 +4597,37 @@ function ja(e, t, n, l, r, a) {
|
|
|
4596
4597
|
}, null, 8, ["label"])
|
|
4597
4598
|
]),
|
|
4598
4599
|
"no-data": I(() => [
|
|
4599
|
-
W(
|
|
4600
|
+
W(w(e.t("messages.noData")), 1)
|
|
4600
4601
|
]),
|
|
4601
4602
|
_: 2
|
|
4602
4603
|
}, [
|
|
4603
4604
|
e.hasSlot("top") ? {
|
|
4604
4605
|
name: "top",
|
|
4605
4606
|
fn: I(() => [
|
|
4606
|
-
|
|
4607
|
+
O(e.$slots, "top")
|
|
4607
4608
|
]),
|
|
4608
4609
|
key: "0"
|
|
4609
4610
|
} : void 0,
|
|
4610
4611
|
e.hasSlot("header") ? {
|
|
4611
4612
|
name: "header",
|
|
4612
4613
|
fn: I((M) => [
|
|
4613
|
-
|
|
4614
|
+
O(e.$slots, "header", ue(ge(M)))
|
|
4614
4615
|
]),
|
|
4615
4616
|
key: "1"
|
|
4616
4617
|
} : void 0,
|
|
4617
4618
|
e.hasSlot("body") ? {
|
|
4618
4619
|
name: "body",
|
|
4619
4620
|
fn: I((M) => [
|
|
4620
|
-
|
|
4621
|
+
O(e.$slots, "body", ue(ge(M)))
|
|
4621
4622
|
]),
|
|
4622
4623
|
key: "2"
|
|
4623
4624
|
} : void 0,
|
|
4624
4625
|
ne(e.computedSlotHeaderCellColumns, (M) => ({
|
|
4625
4626
|
name: `header-cell-${M.name}`,
|
|
4626
4627
|
fn: I((d) => [
|
|
4627
|
-
|
|
4628
|
+
j(s, { props: d }, {
|
|
4628
4629
|
default: I(() => [
|
|
4629
|
-
|
|
4630
|
+
O(e.$slots, `header-cell-${M.name}`, ue(ge(d)))
|
|
4630
4631
|
]),
|
|
4631
4632
|
_: 2
|
|
4632
4633
|
}, 1032, ["props"])
|
|
@@ -4635,15 +4636,15 @@ function ja(e, t, n, l, r, a) {
|
|
|
4635
4636
|
ne(e.computedSlotBodyCellColumns, (M) => ({
|
|
4636
4637
|
name: `body-cell-${M.name}`,
|
|
4637
4638
|
fn: I((d) => [
|
|
4638
|
-
|
|
4639
|
+
j(o, { props: d }, {
|
|
4639
4640
|
default: I(() => [
|
|
4640
|
-
M.limitWidth ? (m(),
|
|
4641
|
+
M.limitWidth ? (m(), T("div", {
|
|
4641
4642
|
key: 0,
|
|
4642
4643
|
class: "cell-limit-width",
|
|
4643
4644
|
style: H(e.getCellLimitWidthStyle(M))
|
|
4644
4645
|
}, [
|
|
4645
|
-
|
|
4646
|
-
], 4)) :
|
|
4646
|
+
O(e.$slots, `body-cell-${M.name}`, ue(ge(d)))
|
|
4647
|
+
], 4)) : O(e.$slots, `body-cell-${M.name}`, ue(Te({ key: 1 }, d)))
|
|
4647
4648
|
]),
|
|
4648
4649
|
_: 2
|
|
4649
4650
|
}, 1032, ["props"])
|
|
@@ -4652,12 +4653,12 @@ function ja(e, t, n, l, r, a) {
|
|
|
4652
4653
|
ne(e.computedLimitWidthColumns, (M) => ({
|
|
4653
4654
|
name: `body-cell-${M.name}`,
|
|
4654
4655
|
fn: I((d) => [
|
|
4655
|
-
|
|
4656
|
+
j(o, { props: d }, {
|
|
4656
4657
|
default: I(() => [
|
|
4657
4658
|
y("div", {
|
|
4658
4659
|
class: "cell-limit-width",
|
|
4659
4660
|
style: H(e.getCellLimitWidthStyle(M))
|
|
4660
|
-
},
|
|
4661
|
+
}, w(e.formatColumnValue(M, d.value)), 5)
|
|
4661
4662
|
]),
|
|
4662
4663
|
_: 2
|
|
4663
4664
|
}, 1032, ["props"])
|
|
@@ -4666,28 +4667,28 @@ function ja(e, t, n, l, r, a) {
|
|
|
4666
4667
|
ne(e.computedWhiteSpaceColumns, (M) => ({
|
|
4667
4668
|
name: `body-cell-${M.name}`,
|
|
4668
4669
|
fn: I((d) => [
|
|
4669
|
-
|
|
4670
|
+
j(o, {
|
|
4670
4671
|
props: d,
|
|
4671
4672
|
style: H(e.getCellStyle(M))
|
|
4672
4673
|
}, {
|
|
4673
4674
|
default: I(() => [
|
|
4674
4675
|
y("div", {
|
|
4675
|
-
class:
|
|
4676
|
+
class: V(e.getCellClass(M)),
|
|
4676
4677
|
ref: (p) => e.setEllipsisRef(p, `${M.name}-${d.row[e.rowKey]}`)
|
|
4677
|
-
},
|
|
4678
|
-
e.shouldShowTooltip(`${M.name}-${d.row[e.rowKey]}`) ? (m(),
|
|
4678
|
+
}, w(e.formatColumnValue(M, d.value)), 3),
|
|
4679
|
+
e.shouldShowTooltip(`${M.name}-${d.row[e.rowKey]}`) ? (m(), Y(i, {
|
|
4679
4680
|
key: 0,
|
|
4680
4681
|
style: H(e.getTooltipStyle()),
|
|
4681
|
-
class:
|
|
4682
|
+
class: V(e.getTooltipClass()),
|
|
4682
4683
|
anchor: "top middle",
|
|
4683
4684
|
self: "bottom middle",
|
|
4684
4685
|
offset: [10, 10]
|
|
4685
4686
|
}, {
|
|
4686
4687
|
default: I(() => [
|
|
4687
|
-
W(
|
|
4688
|
+
W(w(e.formatColumnValue(M, d.value)), 1)
|
|
4688
4689
|
]),
|
|
4689
4690
|
_: 2
|
|
4690
|
-
}, 1032, ["style", "class"])) :
|
|
4691
|
+
}, 1032, ["style", "class"])) : $("", !0)
|
|
4691
4692
|
]),
|
|
4692
4693
|
_: 2
|
|
4693
4694
|
}, 1032, ["props", "style"])
|
|
@@ -4696,48 +4697,48 @@ function ja(e, t, n, l, r, a) {
|
|
|
4696
4697
|
ne(e.computedClickableColumns, (M) => ({
|
|
4697
4698
|
name: `body-cell-${M.name}`,
|
|
4698
4699
|
fn: I((d) => [
|
|
4699
|
-
|
|
4700
|
+
j(o, {
|
|
4700
4701
|
props: d,
|
|
4701
4702
|
style: H(e.getCellStyle(M))
|
|
4702
4703
|
}, {
|
|
4703
4704
|
default: I(() => [
|
|
4704
|
-
e.isClickable(M, d.value, d.row) ? (m(),
|
|
4705
|
+
e.isClickable(M, d.value, d.row) ? (m(), T(ee, { key: 0 }, [
|
|
4705
4706
|
y("div", {
|
|
4706
|
-
class:
|
|
4707
|
+
class: V(["link-type", e.getCellClass(M)]),
|
|
4707
4708
|
ref: M.whiteSpace ? (p) => e.setEllipsisRef(p, `${M.name}-${d.row[e.rowKey]}`) : void 0,
|
|
4708
4709
|
onClick: (p) => e.handleColumnClick(M, d.row)
|
|
4709
|
-
},
|
|
4710
|
-
M.whiteSpace && e.shouldShowTooltip(`${M.name}-${d.row[e.rowKey]}`) ? (m(),
|
|
4710
|
+
}, w(e.formatColumnValue(M, d.value)), 11, Ca),
|
|
4711
|
+
M.whiteSpace && e.shouldShowTooltip(`${M.name}-${d.row[e.rowKey]}`) ? (m(), Y(i, {
|
|
4711
4712
|
key: 0,
|
|
4712
4713
|
style: H(e.getTooltipStyle()),
|
|
4713
|
-
class:
|
|
4714
|
+
class: V(e.getTooltipClass(M)),
|
|
4714
4715
|
anchor: "top middle",
|
|
4715
4716
|
self: "bottom middle",
|
|
4716
4717
|
offset: [10, 10]
|
|
4717
4718
|
}, {
|
|
4718
4719
|
default: I(() => [
|
|
4719
|
-
W(
|
|
4720
|
+
W(w(e.formatColumnValue(M, d.value)), 1)
|
|
4720
4721
|
]),
|
|
4721
4722
|
_: 2
|
|
4722
|
-
}, 1032, ["style", "class"])) :
|
|
4723
|
-
], 64)) : (m(),
|
|
4723
|
+
}, 1032, ["style", "class"])) : $("", !0)
|
|
4724
|
+
], 64)) : (m(), T(ee, { key: 1 }, [
|
|
4724
4725
|
y("div", {
|
|
4725
|
-
class:
|
|
4726
|
+
class: V(e.getCellClass(M)),
|
|
4726
4727
|
ref: M.whiteSpace ? (p) => e.setEllipsisRef(p, `${M.name}-${d.row[e.rowKey]}`) : void 0
|
|
4727
|
-
},
|
|
4728
|
-
M.whiteSpace && e.shouldShowTooltip(`${M.name}-${d.row[e.rowKey]}`) ? (m(),
|
|
4728
|
+
}, w(e.formatColumnValue(M, d.value)), 3),
|
|
4729
|
+
M.whiteSpace && e.shouldShowTooltip(`${M.name}-${d.row[e.rowKey]}`) ? (m(), Y(i, {
|
|
4729
4730
|
key: 0,
|
|
4730
4731
|
style: H(e.getTooltipStyle()),
|
|
4731
|
-
class:
|
|
4732
|
+
class: V(e.getTooltipClass(M)),
|
|
4732
4733
|
anchor: "top middle",
|
|
4733
4734
|
self: "bottom middle",
|
|
4734
4735
|
offset: [10, 10]
|
|
4735
4736
|
}, {
|
|
4736
4737
|
default: I(() => [
|
|
4737
|
-
W(
|
|
4738
|
+
W(w(e.formatColumnValue(M, d.value)), 1)
|
|
4738
4739
|
]),
|
|
4739
4740
|
_: 2
|
|
4740
|
-
}, 1032, ["style", "class"])) :
|
|
4741
|
+
}, 1032, ["style", "class"])) : $("", !0)
|
|
4741
4742
|
], 64))
|
|
4742
4743
|
]),
|
|
4743
4744
|
_: 2
|
|
@@ -4745,25 +4746,25 @@ function ja(e, t, n, l, r, a) {
|
|
|
4745
4746
|
])
|
|
4746
4747
|
}))
|
|
4747
4748
|
]), 1032, ["selected", "class", "columns", "dense", "flat", "loading", "pagination", "row-key", "rows", "table-header-class"]),
|
|
4748
|
-
!e.hidePagination && e.paginationInfo.rowsNumber ? (m(),
|
|
4749
|
+
!e.hidePagination && e.paginationInfo.rowsNumber ? (m(), Y(g, {
|
|
4749
4750
|
key: 0,
|
|
4750
4751
|
paginationInfo: e.paginationInfo,
|
|
4751
4752
|
class: "q-pa-md",
|
|
4752
4753
|
onPagination: e.onPaginationChange
|
|
4753
|
-
}, null, 8, ["paginationInfo", "onPagination"])) :
|
|
4754
|
-
|
|
4754
|
+
}, null, 8, ["paginationInfo", "onPagination"])) : $("", !0),
|
|
4755
|
+
O(e.$slots, "append")
|
|
4755
4756
|
], 4);
|
|
4756
4757
|
}
|
|
4757
4758
|
const bs = /* @__PURE__ */ B(Na, [["render", ja]]), za = U({
|
|
4758
4759
|
name: "dialogConfirmComponent",
|
|
4759
4760
|
components: {
|
|
4760
|
-
QDialog:
|
|
4761
|
+
QDialog: Nt,
|
|
4761
4762
|
QCard: Se,
|
|
4762
4763
|
QCardSection: ve,
|
|
4763
4764
|
QBtn: re,
|
|
4764
4765
|
QIcon: le
|
|
4765
4766
|
},
|
|
4766
|
-
emits: [...
|
|
4767
|
+
emits: [...mt.emits],
|
|
4767
4768
|
props: {
|
|
4768
4769
|
title: { type: String, default: "" },
|
|
4769
4770
|
content: { type: String, default: "" },
|
|
@@ -4772,7 +4773,7 @@ const bs = /* @__PURE__ */ B(Na, [["render", ja]]), za = U({
|
|
|
4772
4773
|
isDelete: { type: Boolean, default: !1 }
|
|
4773
4774
|
},
|
|
4774
4775
|
setup(e) {
|
|
4775
|
-
const { t } = K(), { dialogRef: n, onDialogHide: l, onDialogOK: r, onDialogCancel: a } =
|
|
4776
|
+
const { t } = K(), { dialogRef: n, onDialogHide: l, onDialogOK: r, onDialogCancel: a } = mt(), s = C(() => e.confirmButtonText || t("action.confirm")), o = C(() => e.cancelButtonText || t("action.cancel"));
|
|
4776
4777
|
return {
|
|
4777
4778
|
dialogRef: n,
|
|
4778
4779
|
onDialogHide: l,
|
|
@@ -4781,13 +4782,13 @@ const bs = /* @__PURE__ */ B(Na, [["render", ja]]), za = U({
|
|
|
4781
4782
|
},
|
|
4782
4783
|
onCancelClick: a,
|
|
4783
4784
|
computedCancelText: o,
|
|
4784
|
-
computedConfirmText:
|
|
4785
|
+
computedConfirmText: s
|
|
4785
4786
|
};
|
|
4786
4787
|
}
|
|
4787
4788
|
}), ba = { class: "title" };
|
|
4788
4789
|
function Ta(e, t, n, l, r, a) {
|
|
4789
|
-
const
|
|
4790
|
-
return m(),
|
|
4790
|
+
const s = N("q-icon"), o = N("q-card-section"), i = N("q-btn"), c = N("q-card"), u = N("q-dialog");
|
|
4791
|
+
return m(), Y(u, {
|
|
4791
4792
|
ref: "dialogRef",
|
|
4792
4793
|
onHide: e.onDialogHide,
|
|
4793
4794
|
"transition-show": "jump-up",
|
|
@@ -4795,29 +4796,29 @@ function Ta(e, t, n, l, r, a) {
|
|
|
4795
4796
|
persistent: ""
|
|
4796
4797
|
}, {
|
|
4797
4798
|
default: I(() => [
|
|
4798
|
-
|
|
4799
|
+
j(c, { class: "q-dialog-plugin" }, {
|
|
4799
4800
|
default: I(() => [
|
|
4800
|
-
|
|
4801
|
+
j(o, { class: "row items-center no-wrap" }, {
|
|
4801
4802
|
default: I(() => [
|
|
4802
|
-
e.isDelete ? (m(),
|
|
4803
|
+
e.isDelete ? (m(), Y(s, {
|
|
4803
4804
|
key: 0,
|
|
4804
4805
|
name: "app:delete-confirm",
|
|
4805
4806
|
class: "q-mr-sm",
|
|
4806
4807
|
size: "24px"
|
|
4807
|
-
})) :
|
|
4808
|
-
y("div", ba,
|
|
4808
|
+
})) : $("", !0),
|
|
4809
|
+
y("div", ba, w(e.title), 1)
|
|
4809
4810
|
]),
|
|
4810
4811
|
_: 1
|
|
4811
4812
|
}),
|
|
4812
|
-
|
|
4813
|
+
j(o, { class: "q-pt-none content" }, {
|
|
4813
4814
|
default: I(() => [
|
|
4814
|
-
W(
|
|
4815
|
+
W(w(e.content), 1)
|
|
4815
4816
|
]),
|
|
4816
4817
|
_: 1
|
|
4817
4818
|
}),
|
|
4818
|
-
|
|
4819
|
+
j(o, { class: "row q-gutter-sm justify-end" }, {
|
|
4819
4820
|
default: I(() => [
|
|
4820
|
-
|
|
4821
|
+
j(i, {
|
|
4821
4822
|
outline: "",
|
|
4822
4823
|
label: e.computedCancelText,
|
|
4823
4824
|
onClick: e.onCancelClick,
|
|
@@ -4825,7 +4826,7 @@ function Ta(e, t, n, l, r, a) {
|
|
|
4825
4826
|
ripple: !1,
|
|
4826
4827
|
style: { "min-width": "80px" }
|
|
4827
4828
|
}, null, 8, ["label", "onClick"]),
|
|
4828
|
-
|
|
4829
|
+
j(i, {
|
|
4829
4830
|
color: e.isDelete ? "negative" : "primary",
|
|
4830
4831
|
label: e.computedConfirmText,
|
|
4831
4832
|
onClick: e.onOKClick,
|
|
@@ -4856,24 +4857,24 @@ class wa {
|
|
|
4856
4857
|
/**
|
|
4857
4858
|
* 弹出自定义确认对话框,返回一个 Promise,resolve(true) 表示确定,resolve(false) 表示取消/关闭。
|
|
4858
4859
|
*/
|
|
4859
|
-
async show({ title: t, color: n, content: l, confirmButtonText: r, cancelButtonText: a, showCancelButton:
|
|
4860
|
-
return ze != null && ze.dialog ? new Promise((
|
|
4860
|
+
async show({ title: t, color: n, content: l, confirmButtonText: r, cancelButtonText: a, showCancelButton: s, isDelete: o }) {
|
|
4861
|
+
return ze != null && ze.dialog ? new Promise((i) => {
|
|
4861
4862
|
ze.dialog({
|
|
4862
4863
|
component: ha,
|
|
4863
|
-
cancel:
|
|
4864
|
+
cancel: s === void 0 ? !0 : s,
|
|
4864
4865
|
componentProps: {
|
|
4865
4866
|
title: t,
|
|
4866
4867
|
color: n,
|
|
4867
4868
|
content: l,
|
|
4868
4869
|
confirmButtonText: r,
|
|
4869
4870
|
cancelButtonText: a,
|
|
4870
|
-
cancel:
|
|
4871
|
+
cancel: s === void 0 ? !0 : s,
|
|
4871
4872
|
isDelete: o
|
|
4872
4873
|
}
|
|
4873
4874
|
}).onOk(() => {
|
|
4874
|
-
|
|
4875
|
+
i(!0);
|
|
4875
4876
|
}).onCancel(() => {
|
|
4876
|
-
|
|
4877
|
+
i(!1);
|
|
4877
4878
|
}).onDismiss(() => {
|
|
4878
4879
|
});
|
|
4879
4880
|
}) : (console.error("[JQConfirmDialog] Quasar Dialog plugin not available. Make sure rtcptInit has been called."), Promise.resolve(!1));
|
|
@@ -4950,7 +4951,7 @@ const va = new wa(), Sa = U({
|
|
|
4950
4951
|
click: (e) => !0
|
|
4951
4952
|
},
|
|
4952
4953
|
setup(e, { emit: t, expose: n, slots: l }) {
|
|
4953
|
-
const r = h(null), a =
|
|
4954
|
+
const r = h(null), a = C(() => ({ "j-q-button-label": (l.icon || e.icon) && (l.default || e.label) })), s = C(() => [
|
|
4954
4955
|
"primary",
|
|
4955
4956
|
"secondary"
|
|
4956
4957
|
/* SECONDARY */
|
|
@@ -4967,11 +4968,11 @@ const va = new wa(), Sa = U({
|
|
|
4967
4968
|
} : {
|
|
4968
4969
|
"j-q-button--text": e.type === "text"
|
|
4969
4970
|
/* TEXT */
|
|
4970
|
-
}), o = (
|
|
4971
|
-
t("click",
|
|
4971
|
+
}), o = (i) => {
|
|
4972
|
+
t("click", i);
|
|
4972
4973
|
};
|
|
4973
4974
|
return n({}), {
|
|
4974
|
-
computedClass:
|
|
4975
|
+
computedClass: s,
|
|
4975
4976
|
iconPadding: a,
|
|
4976
4977
|
click: o,
|
|
4977
4978
|
qBtnRef: r
|
|
@@ -4982,8 +4983,8 @@ const va = new wa(), Sa = U({
|
|
|
4982
4983
|
class: "j-q-button-prefix-icon"
|
|
4983
4984
|
};
|
|
4984
4985
|
function ka(e, t, n, l, r, a) {
|
|
4985
|
-
const
|
|
4986
|
-
return m(),
|
|
4986
|
+
const s = N("q-tooltip"), o = N("q-btn");
|
|
4987
|
+
return m(), Y(o, Te({
|
|
4987
4988
|
class: e.computedClass,
|
|
4988
4989
|
loading: e.loading
|
|
4989
4990
|
}, e.$attrs, {
|
|
@@ -4995,17 +4996,17 @@ function ka(e, t, n, l, r, a) {
|
|
|
4995
4996
|
ref: "qBtnRef"
|
|
4996
4997
|
}), we({
|
|
4997
4998
|
default: I(() => [
|
|
4998
|
-
!e.icon && e.$slots.icon ? (m(),
|
|
4999
|
-
|
|
5000
|
-
])) :
|
|
4999
|
+
!e.icon && e.$slots.icon ? (m(), T("span", La, [
|
|
5000
|
+
O(e.$slots, "icon", {}, void 0, !0)
|
|
5001
|
+
])) : $("", !0),
|
|
5001
5002
|
y("span", {
|
|
5002
|
-
class:
|
|
5003
|
+
class: V(e.iconPadding)
|
|
5003
5004
|
}, [
|
|
5004
|
-
|
|
5005
|
-
W(
|
|
5005
|
+
O(e.$slots, "default", {}, () => [
|
|
5006
|
+
W(w(e.label), 1)
|
|
5006
5007
|
], !0)
|
|
5007
5008
|
], 2),
|
|
5008
|
-
e.tips ? (m(),
|
|
5009
|
+
e.tips ? (m(), Y(s, {
|
|
5009
5010
|
key: 1,
|
|
5010
5011
|
class: "j-q-button-tooltip",
|
|
5011
5012
|
anchor: "top middle",
|
|
@@ -5013,17 +5014,17 @@ function ka(e, t, n, l, r, a) {
|
|
|
5013
5014
|
offset: [10, 6]
|
|
5014
5015
|
}, {
|
|
5015
5016
|
default: I(() => [
|
|
5016
|
-
W(
|
|
5017
|
+
W(w(e.tips), 1)
|
|
5017
5018
|
]),
|
|
5018
5019
|
_: 1
|
|
5019
|
-
})) :
|
|
5020
|
+
})) : $("", !0)
|
|
5020
5021
|
]),
|
|
5021
5022
|
_: 2
|
|
5022
5023
|
}, [
|
|
5023
5024
|
e.$slots.loading ? {
|
|
5024
5025
|
name: "loading",
|
|
5025
5026
|
fn: I(() => [
|
|
5026
|
-
|
|
5027
|
+
O(e.$slots, "loading", {}, void 0, !0)
|
|
5027
5028
|
]),
|
|
5028
5029
|
key: "0"
|
|
5029
5030
|
} : void 0
|
|
@@ -5035,13 +5036,13 @@ function Ot(e, t = {}) {
|
|
|
5035
5036
|
return [];
|
|
5036
5037
|
const { optionLabel: n = "label", optionValue: l = "value", optionChildren: r = "children" } = t;
|
|
5037
5038
|
return e.map((a) => {
|
|
5038
|
-
const
|
|
5039
|
-
label:
|
|
5039
|
+
const s = String(a[n] ?? ""), o = a[l], i = {
|
|
5040
|
+
label: s,
|
|
5040
5041
|
value: o,
|
|
5041
5042
|
row: a
|
|
5042
5043
|
// 保留原始对象
|
|
5043
5044
|
}, c = a[r];
|
|
5044
|
-
return Array.isArray(c) && c.length > 0 && (
|
|
5045
|
+
return Array.isArray(c) && c.length > 0 && (i.children = Ot(c, t)), i;
|
|
5045
5046
|
});
|
|
5046
5047
|
}
|
|
5047
5048
|
const Oa = (e, t) => {
|
|
@@ -5123,7 +5124,7 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5123
5124
|
"grey-medium": "#aaaaaa",
|
|
5124
5125
|
"grey-light": "#eeeeee",
|
|
5125
5126
|
"grey-lighter": "#f5f6fa"
|
|
5126
|
-
},
|
|
5127
|
+
}, It = {
|
|
5127
5128
|
"app:clear": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxzdmcgd2lkdGg9IjIwcHgiIGhlaWdodD0iMjBweCIgdmlld0JveD0iMCAwIDIwIDIwIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyINCiAgICB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+DQoNCiAgICA8ZyBpZD0icXVhc2FyLWN1c3RvbS1zdmciIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPg0KICAgICAgICA8ZyBpZD0iZVNJTS1Hcm91cC1BZGQtZmlyc3QtbGV2ZWwtZ3JvdXBzIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNzE5LjAwMDAwMCwgLTMwOS4wMDAwMDApIj4NCiAgICAgICAgICAgIDxnIGlkPSLnvJbnu4QtMTQiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDM2MS4wMDAwMDAsIDIwMy4wMDAwMDApIj4NCiAgICAgICAgICAgICAgICA8ZyBpZD0i57yW57uELTEyIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg5MC4wMDAwMDAsIDcyLjAwMDAwMCkiPg0KICAgICAgICAgICAgICAgICAgICA8ZyBpZD0i57yW57uELTflpIfku70tOCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMC4wMDAwMDAsIDI2LjAwMDAwMCkiPg0KICAgICAgICAgICAgICAgICAgICAgICAgPGcgaWQ9Iue8lue7hCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjY4LjAwMDAwMCwgOC4wMDAwMDApIj4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cmVjdCBpZD0i55+p5b2iIiB4PSIwIiB5PSIwIiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiPjwvcmVjdD4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cGF0aA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkPSJNMTAsMS42NjY2NjY2NyBDNS40MDUsMS42NjY2NjY2NyAxLjY2NjY2NjY3LDUuNDA1IDEuNjY2NjY2NjcsMTAgQzEuNjY2NjY2NjcsMTQuNTk1IDUuNDA1LDE4LjMzMzMzMzMgMTAsMTguMzMzMzMzMyBDMTQuNTk1LDE4LjMzMzMzMzMgMTguMzMzMzMzMywxNC41OTUgMTguMzMzMzMzMywxMCBDMTguMzMzMzMzMyw1LjQwNSAxNC41OTUsMS42NjY2NjY2NyAxMCwxLjY2NjY2NjY3Ig0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZD0iUGF0aCIgZmlsbD0iI0VCRUNGMCIgZmlsbC1ydWxlPSJub256ZXJvIj48L3BhdGg+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHBhdGgNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZD0iTTEyLjI1NTgzMzMsNy43NDQxNjY2NyBDMTEuOTMsNy40MTgzMzMzMyAxMS40MDMzMzMzLDcuNDE4MzMzMzMgMTEuMDc3NSw3Ljc0NDE2NjY3IEwxMCw4LjgyMTY2NjY3IEw4LjkyMjUsNy43NDQxNjY2NyBDOC41OTY2NjY2Nyw3LjQxODMzMzMzIDguMDcsNy40MTgzMzMzMyA3Ljc0NDE2NjY3LDcuNzQ0MTY2NjcgQzcuNDE4MzMzMzMsOC4wNyA3LjQxODMzMzMzLDguNTk2NjY2NjcgNy43NDQxNjY2Nyw4LjkyMjUgTDguODIxNjY2NjcsMTAgTDcuNzQ0MTY2NjcsMTEuMDc3NSBDNy40MTgzMzMzMywxMS40MDMzMzMzIDcuNDE4MzMzMzMsMTEuOTMgNy43NDQxNjY2NywxMi4yNTU4MzMzIEM3LjkwNjY2NjY3LDEyLjQxODMzMzMgOC4xMiwxMi41IDguMzMzMzMzMzMsMTIuNSBDOC41NDY2NjY2NywxMi41IDguNzYsMTIuNDE4MzMzMyA4LjkyMjUsMTIuMjU1ODMzMyBMMTAsMTEuMTc4MzMzMyBMMTEuMDc3NSwxMi4yNTU4MzMzIEMxMS4yNCwxMi40MTgzMzMzIDExLjQ1MzMzMzMsMTIuNSAxMS42NjY2NjY3LDEyLjUgQzExLjg4LDEyLjUgMTIuMDkzMzMzMywxMi40MTgzMzMzIDEyLjI1NTgzMzMsMTIuMjU1ODMzMyBDMTIuNTgxNjY2NywxMS45MyAxMi41ODE2NjY3LDExLjQwMzMzMzMgMTIuMjU1ODMzMywxMS4wNzc1IEwxMS4xNzgzMzMzLDEwIEwxMi4yNTU4MzMzLDguOTIyNSBDMTIuNTgxNjY2Nyw4LjU5NjY2NjY3IDEyLjU4MTY2NjcsOC4wNyAxMi4yNTU4MzMzLDcuNzQ0MTY2NjciDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlkPSJQYXRoIiBmaWxsPSIjOTk5REI0IiBmaWxsLXJ1bGU9Im5vbnplcm8iPjwvcGF0aD4NCiAgICAgICAgICAgICAgICAgICAgICAgIDwvZz4NCiAgICAgICAgICAgICAgICAgICAgPC9nPg0KICAgICAgICAgICAgICAgIDwvZz4NCiAgICAgICAgICAgIDwvZz4NCiAgICAgICAgPC9nPg0KICAgIDwvZz4NCjwvc3ZnPg==",
|
|
5128
5129
|
"app:delete-confirm": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAyNCAyNCI+PGNpcmNsZSBmaWxsPSIjRTIxQTFBIiByPSIxMCIgY3k9IjEyIiBjeD0iMTIiLz48cGF0aCBmaWxsPSIjZmZmZmZmIiBkPSJNMTUuMDQxIDcuODdhLjc1Ljc1IDAgMCAxIDEuMDYgMS4wNmwtMy4wNDEgMy4wNCAzLjA0MiAzLjA0M2EuNzUuNzUgMCAwIDEtMS4wNiAxLjA2bC0zLjA0My0zLjA0Mi0zLjA0IDMuMDQyYS43NS43NSAwIDAgMS0xLjA2MS0xLjA2bDMuMDQtMy4wNDItMy4wNC0zLjA0MWEuNzUuNzUgMCAwIDEgMS4wNi0xLjA2TDEyIDEwLjkxbDMuMDQyLTMuMDRaIi8+PC9zdmc+",
|
|
5129
5130
|
"app:edit": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0iIzVBNjA3RiIgZD0iTTE5Ljk5OCAyMC4yNWEuNzUuNzUgMCAwIDEgMCAxLjVoLTE2YS43NS43NSAwIDAgMSAwLTEuNWgxNlpNMTMuOSAzLjg4NWEyLjc1IDIuNzUgMCAwIDEgMy44OTEgMGwuODI0LjgyNWEyLjc1IDIuNzUgMCAwIDEgMCAzLjg4OEw5Ljk4IDE3LjIzN2ExLjc1MSAxLjc1MSAwIDAgMS0xLjIzOC41MTNINS40OThhLjc1Ljc1IDAgMCAxLS43NS0uNzV2LTMuMjI3YzAtLjQ2My4xODQtLjkwOC41MTItMS4yMzZsOC42NC04LjY1MlptMi44MyAxLjA2YTEuMjUgMS4yNSAwIDAgMC0xLjc2OCAwbC04LjY0IDguNjUxYS4yNTIuMjUyIDAgMCAwLS4wNzQuMTc3djIuNDc3aDIuNDk0YS4yNS4yNSAwIDAgMCAuMTc3LS4wNzRsOC42MzYtOC42MzhhMS4yNSAxLjI1IDAgMCAwIDAtMS43NjhsLS44MjUtLjgyNFoiIGRhdGEtZm9sbG93LWZpbGw9IiM1QTYwN0YiLz48L3N2Zz4=",
|
|
@@ -5144,9 +5145,9 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5144
5145
|
n.push(r, r.toLowerCase());
|
|
5145
5146
|
} else
|
|
5146
5147
|
n.push(`app:${e}`, `app:${e.toLowerCase()}`);
|
|
5147
|
-
const l = n.find((r) =>
|
|
5148
|
+
const l = n.find((r) => It[r] !== void 0);
|
|
5148
5149
|
if (l)
|
|
5149
|
-
return { icon: t +
|
|
5150
|
+
return { icon: t + It[l] };
|
|
5150
5151
|
};
|
|
5151
5152
|
function Ka(...e) {
|
|
5152
5153
|
return (t) => {
|
|
@@ -5158,29 +5159,29 @@ function Ka(...e) {
|
|
|
5158
5159
|
};
|
|
5159
5160
|
}
|
|
5160
5161
|
function hs(e) {
|
|
5161
|
-
const { app: t, router: n, store: l, i18n: r, pagePermissionIds: a, pageActionPermissionIds:
|
|
5162
|
+
const { app: t, router: n, store: l, i18n: r, pagePermissionIds: a, pageActionPermissionIds: s, defaultLanguage: o, colors: i } = e;
|
|
5162
5163
|
es(t);
|
|
5163
5164
|
const c = t.config.globalProperties.$q;
|
|
5164
|
-
c ? (pn(c),
|
|
5165
|
+
c ? (pn(c), Qe.setQuasarInstance(c), va.setQuasarInstance(c), _a(c)) : console.warn("[rtcpt] Quasar instance not found. Make sure you have installed Quasar."), o ? Xe(o).catch((g) => {
|
|
5165
5166
|
console.error("[rtcpt] Failed to set default language:", g);
|
|
5166
|
-
}) :
|
|
5167
|
+
}) : Xe("zh-CN").catch((g) => {
|
|
5167
5168
|
console.error("[rtcpt] Failed to load default locale:", g);
|
|
5168
5169
|
});
|
|
5169
5170
|
const u = Ja;
|
|
5170
|
-
if (
|
|
5171
|
+
if (it.configure({
|
|
5171
5172
|
router: n,
|
|
5172
5173
|
store: l,
|
|
5173
5174
|
i18n: r,
|
|
5174
5175
|
iconMapFn: u
|
|
5175
5176
|
}), a) {
|
|
5176
|
-
const g =
|
|
5177
|
-
console.log("[rtcpt] Permission IDs provided:", g.value), t.provide(
|
|
5177
|
+
const g = gt(a) ? a : h(a);
|
|
5178
|
+
console.log("[rtcpt] Permission IDs provided:", g.value), t.provide(ot, g);
|
|
5178
5179
|
}
|
|
5179
|
-
if (
|
|
5180
|
-
const g =
|
|
5181
|
-
console.log("[rtcpt] Action Permission IDs provided:", g.value), t.provide(
|
|
5180
|
+
if (s) {
|
|
5181
|
+
const g = gt(s) ? s : h(s);
|
|
5182
|
+
console.log("[rtcpt] Action Permission IDs provided:", g.value), t.provide(lt, g);
|
|
5182
5183
|
}
|
|
5183
|
-
|
|
5184
|
+
i && c && Xa(i), console.log("[rtcpt] Initialization started..."), c && (c.iconMapFn = Ka(c.iconMapFn, u)), console.log("[rtcpt] Initialization completed successfully.");
|
|
5184
5185
|
}
|
|
5185
5186
|
function Xa(e, t) {
|
|
5186
5187
|
const n = { ...Fa, ...e }, l = document.documentElement;
|
|
@@ -5197,7 +5198,7 @@ function _a(e) {
|
|
|
5197
5198
|
function es(e) {
|
|
5198
5199
|
var n;
|
|
5199
5200
|
const t = (n = e == null ? void 0 : e._context) == null ? void 0 : n.directives;
|
|
5200
|
-
t != null && t["close-popup"] || e.directive("close-popup",
|
|
5201
|
+
t != null && t["close-popup"] || e.directive("close-popup", Dt);
|
|
5201
5202
|
}
|
|
5202
5203
|
const ws = {
|
|
5203
5204
|
transformTreeUseLabelAndValue: Ot,
|
|
@@ -5208,7 +5209,7 @@ const ws = {
|
|
|
5208
5209
|
formUtils: Pa
|
|
5209
5210
|
};
|
|
5210
5211
|
export {
|
|
5211
|
-
|
|
5212
|
+
it as DialogProvider,
|
|
5212
5213
|
nn as JCCopy,
|
|
5213
5214
|
os as JCDuoListEditor,
|
|
5214
5215
|
as as JCEditableProxy,
|
|
@@ -5239,23 +5240,23 @@ export {
|
|
|
5239
5240
|
Ds as JQFile,
|
|
5240
5241
|
_n as JQFormLabel,
|
|
5241
5242
|
wt as JQInput,
|
|
5242
|
-
|
|
5243
|
+
Qe as JQMessage,
|
|
5243
5244
|
As as JQNewValue,
|
|
5244
5245
|
Ns as JQOptionGroup,
|
|
5245
5246
|
Cs as JQPopover,
|
|
5246
5247
|
js as JQSearchForm,
|
|
5247
5248
|
zs as JQSelect,
|
|
5248
5249
|
bs as JQTable,
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5250
|
+
rt as JQTooltip,
|
|
5251
|
+
lt as PAGE_ACTION_PERMISSION_KEY,
|
|
5252
|
+
ot as PAGE_PERMISSION_KEY,
|
|
5252
5253
|
Ka as composeIconMapFn,
|
|
5253
5254
|
Pa as formUtils,
|
|
5254
5255
|
ht as getLocale,
|
|
5255
5256
|
ws as jqTool,
|
|
5256
5257
|
Ja as rtcptIconMapFn,
|
|
5257
5258
|
hs as rtcptInit,
|
|
5258
|
-
|
|
5259
|
+
Xe as setLocale,
|
|
5259
5260
|
Tt as t,
|
|
5260
5261
|
K as useI18n
|
|
5261
5262
|
};
|