@eternalheart/vue-file-preview 1.7.0 → 1.7.1
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/README.zh-CN.md +2 -0
- package/lib/FilePreviewContent.vue.d.ts +9 -1
- package/lib/FilePreviewEmbed.vue.d.ts +6 -1
- package/lib/FilePreviewModal.vue.d.ts +6 -1
- package/lib/chunks/{EmptyState.vue_vue_type_script_setup_true_lang--ZOobbGi.mjs → EmptyState.vue_vue_type_script_setup_true_lang-DSQp7H-K.mjs} +1 -1
- package/lib/chunks/{avifLoader-CAUzjn-d-CnJpGYJ2.mjs → avifLoader-CAUzjn-d-Cf00sjt2.mjs} +1 -1
- package/lib/chunks/{heicLoader-D_9PukkA-g_dLrWLP.mjs → heicLoader-D_9PukkA-cn1P7b2x.mjs} +1 -1
- package/lib/chunks/{index-C8lyQPe3.mjs → index-0VXtKKev.mjs} +3 -3
- package/lib/chunks/index-0fXL30y0.mjs +333 -0
- package/lib/chunks/{index-CWPdNhoe.mjs → index-B1AwVHWI.mjs} +60 -60
- package/lib/chunks/{index-C4hIk6pa.mjs → index-B77rFiau.mjs} +2 -2
- package/lib/chunks/{index-BzwJ0VWu.mjs → index-BB10as16.mjs} +33 -33
- package/lib/chunks/{index-BfOWoMpY.mjs → index-BBIn-k4u.mjs} +77 -77
- package/lib/chunks/{index-6XZXYqbp.mjs → index-BSzaI9ea.mjs} +29 -32
- package/lib/chunks/{index-Bg8poMIm.mjs → index-BZvy39tn.mjs} +29 -29
- package/lib/chunks/{index-zLQlyNR2.mjs → index-BlJEM2Lb.mjs} +62 -62
- package/lib/chunks/{index-z9RqL2wI.mjs → index-CZlnxQFA.mjs} +453 -453
- package/lib/chunks/{index-BPSzwMOC.mjs → index-ClhTPqDI.mjs} +46 -46
- package/lib/chunks/{index-Bf94DwQu.mjs → index-D690gnNu.mjs} +24 -24
- package/lib/chunks/index-D7WykPYL.mjs +51 -0
- package/lib/chunks/{index-c-pYJEmH.mjs → index-DBzyeU0G.mjs} +1028 -989
- package/lib/chunks/{index-LPGxJDnT.mjs → index-DKFX5ToE.mjs} +18 -18
- package/lib/chunks/{index-aKiIuKKx.mjs → index-DRmKaFXK.mjs} +50 -50
- package/lib/chunks/{index-D5IF9F-D.mjs → index-DXf3wXT5.mjs} +22 -22
- package/lib/chunks/{index-CrVQPnFj.mjs → index-Dp7QQjNH.mjs} +18 -18
- package/lib/chunks/{index-BYQ9S7Mk.mjs → index-FzI__DHC.mjs} +30 -30
- package/lib/chunks/{index-DZe0BxAB.mjs → index-PWjCziZG.mjs} +20 -20
- package/lib/chunks/{index-DM8Dfl-m.mjs → index-bT6XWKO_.mjs} +15 -15
- package/lib/chunks/{index-DFeKS8tR.mjs → index-tX9VR6Vo.mjs} +22 -22
- package/lib/chunks/{jp2Loader-Dig19xyo-fCO1knZ0.mjs → jp2Loader-Dig19xyo-D-OEDL3n.mjs} +1 -1
- package/lib/chunks/{psdLoader-C0tKUXXl-DihMskai.mjs → psdLoader-C0tKUXXl-CVN06LUc.mjs} +1 -1
- package/lib/chunks/{rawLoader-C-tPeFAB-BSfDPl-z.mjs → rawLoader-C-tPeFAB-DBqcJPFK.mjs} +1 -1
- package/lib/chunks/{tiffLoader-BlhByX8w-JY5DaTre.mjs → tiffLoader-BlhByX8w-8-0icdyL.mjs} +1 -1
- package/lib/chunks/{useShikiHighlight-C-ztcJBE.mjs → useShikiHighlight-a_GUszuU.mjs} +1 -1
- package/lib/composables/usePreviewEvents.d.ts +2 -2
- package/lib/core/events.d.ts +18 -1
- package/lib/core/index.d.ts +1 -1
- package/lib/index.cjs +48 -48
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.mjs +5 -5
- package/package.json +1 -1
- package/lib/chunks/index-C41YET0_.mjs +0 -51
- package/lib/chunks/index-GFcSJEwj.mjs +0 -330
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as ke, ref as s, watch as
|
|
2
|
-
import { u as Ue, a as
|
|
3
|
-
import { ZoomOut as We, ZoomIn as $e, Scan as Pe, Maximize2 as je, RotateCcw as He, RotateCw as Ze, RefreshCw as
|
|
1
|
+
import { defineComponent as ke, ref as s, watch as I, onBeforeUnmount as ae, onMounted as Ee, computed as le, openBlock as w, createElementBlock as U, normalizeStyle as oe, createElementVNode as _, createTextVNode as Ce, toDisplayString as b, unref as D, createCommentVNode as E, createBlock as ne, normalizeClass as Te } from "vue";
|
|
2
|
+
import { u as Ue, a as Ye, b as ze, $ as Se, _ as Xe, J as ie, M as Be, I as De, p as se, A as Oe } from "./index-DBzyeU0G.mjs";
|
|
3
|
+
import { ZoomOut as We, ZoomIn as $e, Scan as Pe, Maximize2 as je, RotateCcw as He, RotateCw as Ze, RefreshCw as Ie } from "lucide-vue-next";
|
|
4
4
|
import { _ as re } from "./RendererError.vue_vue_type_script_setup_true_lang-FmkMQHB8.mjs";
|
|
5
|
-
import { T as
|
|
6
|
-
const
|
|
5
|
+
import { T as Ne } from "./base.types-DaftHyg7.mjs";
|
|
6
|
+
const Ae = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "vfp-absolute vfp-inset-0 vfp-renderer-loading vfp-bg-surface-1/80 vfp-z-10"
|
|
9
|
-
},
|
|
9
|
+
}, Ve = { class: "vfp-renderer-loading-content" }, Fe = { class: "vfp-renderer-loading-text" }, Ge = { key: 0 }, Qe = {
|
|
10
10
|
key: 2,
|
|
11
11
|
class: "vfp-renderer-loading"
|
|
12
|
-
},
|
|
12
|
+
}, qe = { class: "vfp-renderer-loading-content" }, Je = { class: "vfp-renderer-loading-text" }, Ke = ["src"], et = {
|
|
13
13
|
key: 5,
|
|
14
14
|
class: "vfp-absolute vfp-bottom-2 vfp-right-3 vfp-text-[10px] vfp-text-fg-disabled hover:vfp-text-fg-secondary vfp-transition-colors vfp-pointer-events-auto vfp-select-none vfp-cursor-default"
|
|
15
15
|
}, tt = {
|
|
@@ -23,11 +23,11 @@ const Ve = {
|
|
|
23
23
|
file: {}
|
|
24
24
|
},
|
|
25
25
|
setup(ue, { expose: ce }) {
|
|
26
|
-
const f = ue,
|
|
27
|
-
let
|
|
26
|
+
const f = ue, V = new Ne(), { t: i } = Ue(), ve = Ye(), B = ze(), r = s(1), C = s(0), T = s(!1), M = s(null), p = s(!1), O = s(0), R = s(null), L = s(""), k = s(1), Y = s(1), F = s(!1), l = s({ x: 0, y: 0 }), y = s(!1);
|
|
27
|
+
let z = { x: 0, y: 0 };
|
|
28
28
|
const m = s(1), v = s({ width: 0, height: 0 });
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
I([r, C], () => {
|
|
30
|
+
V.notify();
|
|
31
31
|
}), ce({
|
|
32
32
|
getToolbarGroups: () => [
|
|
33
33
|
{
|
|
@@ -59,7 +59,7 @@ const Ve = {
|
|
|
59
59
|
type: "button",
|
|
60
60
|
icon: Pe,
|
|
61
61
|
tooltip: i.value("toolbar.fit_to_window"),
|
|
62
|
-
action:
|
|
62
|
+
action: G
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
type: "button",
|
|
@@ -89,14 +89,14 @@ const Ve = {
|
|
|
89
89
|
items: [
|
|
90
90
|
{
|
|
91
91
|
type: "button",
|
|
92
|
-
icon:
|
|
92
|
+
icon: Ie,
|
|
93
93
|
tooltip: i.value("toolbar.reset"),
|
|
94
94
|
action: ge
|
|
95
95
|
}
|
|
96
96
|
]
|
|
97
97
|
}
|
|
98
98
|
],
|
|
99
|
-
onToolbarChange: (e) =>
|
|
99
|
+
onToolbarChange: (e) => V.subscribe(e)
|
|
100
100
|
});
|
|
101
101
|
const de = () => {
|
|
102
102
|
r.value = Math.min(r.value + 0.1, 10);
|
|
@@ -109,25 +109,25 @@ const Ve = {
|
|
|
109
109
|
}, me = () => {
|
|
110
110
|
r.value = 1, C.value = 0, l.value = { x: 0, y: 0 };
|
|
111
111
|
}, ge = () => {
|
|
112
|
-
|
|
113
|
-
},
|
|
112
|
+
G();
|
|
113
|
+
}, G = () => {
|
|
114
114
|
if (h.value && v.value.width > 0 && v.value.height > 0) {
|
|
115
115
|
const e = h.value.clientWidth, t = h.value.clientHeight, a = e / v.value.width, u = t / v.value.height;
|
|
116
116
|
r.value = Math.max(0.01, Math.min(10, Math.min(a, u))), l.value = { x: 0, y: 0 };
|
|
117
117
|
}
|
|
118
118
|
}, be = s(null), h = s(null);
|
|
119
|
-
let
|
|
119
|
+
let S = null, W = null, $ = null;
|
|
120
120
|
const g = /* @__PURE__ */ new Map();
|
|
121
|
-
let P = !1, j = 0, Q = 1,
|
|
122
|
-
|
|
121
|
+
let P = !1, j = 0, Q = 1, N = { x: 0, y: 0 }, q = 0;
|
|
122
|
+
I(
|
|
123
123
|
() => [f.url, f.file],
|
|
124
124
|
async () => {
|
|
125
|
-
if (
|
|
125
|
+
if (B.begin(f.url), L.value = "", T.value = !1, M.value = null, p.value = !1, R.value = null, O.value = 0, l.value = { x: 0, y: 0 }, m.value = 1, r.value = 1, k.value = 1, Y.value = 1, F.value = !1, S && (URL.revokeObjectURL(S), S = null), g.forEach((e) => URL.revokeObjectURL(e)), g.clear(), W = null, $ = null, !f.file) {
|
|
126
126
|
L.value = f.url;
|
|
127
127
|
return;
|
|
128
128
|
}
|
|
129
129
|
try {
|
|
130
|
-
const e = await
|
|
130
|
+
const e = await Se(f.file), t = await Xe(e);
|
|
131
131
|
if (!t || !await t.needsDecode(e)) {
|
|
132
132
|
L.value = f.url;
|
|
133
133
|
return;
|
|
@@ -143,10 +143,10 @@ const Ve = {
|
|
|
143
143
|
if (!n.ok) throw new ie("file.load_failed");
|
|
144
144
|
a = await n.blob();
|
|
145
145
|
}
|
|
146
|
-
if (W = a, $ = t, e.startsWith("image/x-") && (
|
|
146
|
+
if (W = a, $ = t, e.startsWith("image/x-") && (F.value = !0), t.getMetadata)
|
|
147
147
|
try {
|
|
148
148
|
const n = await t.getMetadata(a);
|
|
149
|
-
n.pageCount && n.pageCount > 1 && (
|
|
149
|
+
n.pageCount && n.pageCount > 1 && (Y.value = n.pageCount);
|
|
150
150
|
} catch {
|
|
151
151
|
}
|
|
152
152
|
const c = {
|
|
@@ -170,15 +170,15 @@ const Ve = {
|
|
|
170
170
|
else
|
|
171
171
|
o = await t.decode(a, c);
|
|
172
172
|
const d = typeof o == "string" ? o : URL.createObjectURL(o);
|
|
173
|
-
|
|
173
|
+
S = d, g.set(1, d), L.value = d, p.value = !1;
|
|
174
174
|
} catch (e) {
|
|
175
|
-
R.value = se(i.value, e) || i.value("image.decode_failed"), p.value = !1,
|
|
175
|
+
R.value = se(i.value, e) || i.value("image.decode_failed"), p.value = !1, B.error(e);
|
|
176
176
|
}
|
|
177
177
|
},
|
|
178
178
|
{ immediate: !0 }
|
|
179
179
|
);
|
|
180
180
|
const J = async (e) => {
|
|
181
|
-
if (!W || !$ || e < 1 || e >
|
|
181
|
+
if (!W || !$ || e < 1 || e > Y.value) return;
|
|
182
182
|
const t = g.get(e);
|
|
183
183
|
if (t) {
|
|
184
184
|
k.value = e, L.value = t;
|
|
@@ -196,38 +196,38 @@ const Ve = {
|
|
|
196
196
|
}
|
|
197
197
|
g.set(e, u), k.value = e, L.value = u, p.value = !1;
|
|
198
198
|
} catch (a) {
|
|
199
|
-
R.value = se(i.value, a) || i.value("image.page_decode_failed"), p.value = !1,
|
|
199
|
+
R.value = se(i.value, a) || i.value("image.page_decode_failed"), p.value = !1, B.error(a, "render");
|
|
200
200
|
}
|
|
201
201
|
};
|
|
202
202
|
ae(() => {
|
|
203
|
-
|
|
203
|
+
S && URL.revokeObjectURL(S), g.forEach((t) => URL.revokeObjectURL(t)), g.clear();
|
|
204
204
|
const e = h.value;
|
|
205
|
-
e && e.removeEventListener("wheel",
|
|
206
|
-
}),
|
|
205
|
+
e && e.removeEventListener("wheel", A);
|
|
206
|
+
}), I(r, (e) => {
|
|
207
207
|
m.value = e;
|
|
208
|
-
}),
|
|
208
|
+
}), I(m, (e) => {
|
|
209
209
|
r.value = e;
|
|
210
210
|
});
|
|
211
211
|
const H = (e, t) => {
|
|
212
212
|
const a = h.value;
|
|
213
213
|
if (!a || v.value.width === 0) return e;
|
|
214
|
-
const u = a.clientWidth, c = a.clientHeight, o = v.value.width * t, d = v.value.height * t, n = Math.min(80, u * 0.15, c * 0.15), x = (u + o) / 2 - n,
|
|
214
|
+
const u = a.clientWidth, c = a.clientHeight, o = v.value.width * t, d = v.value.height * t, n = Math.min(80, u * 0.15, c * 0.15), x = (u + o) / 2 - n, X = (c + d) / 2 - n;
|
|
215
215
|
return {
|
|
216
216
|
x: x > 0 ? Math.max(-x, Math.min(x, e.x)) : 0,
|
|
217
|
-
y:
|
|
217
|
+
y: X > 0 ? Math.max(-X, Math.min(X, e.y)) : 0
|
|
218
218
|
};
|
|
219
219
|
}, ye = (e) => {
|
|
220
220
|
T.value = !0;
|
|
221
221
|
const t = e.currentTarget;
|
|
222
|
-
if (v.value = { width: t.naturalWidth, height: t.naturalHeight }, h.value && v.value.width > 0 && v.value.height > 0) {
|
|
222
|
+
if (v.value = { width: t.naturalWidth, height: t.naturalHeight }, B.ready(), h.value && v.value.width > 0 && v.value.height > 0) {
|
|
223
223
|
const a = h.value.clientWidth, u = h.value.clientHeight, c = a / v.value.width, o = u / v.value.height, d = Math.min(c, o);
|
|
224
224
|
r.value = Math.max(0.01, Math.min(10, d)), l.value = { x: 0, y: 0 };
|
|
225
225
|
}
|
|
226
226
|
}, xe = () => {
|
|
227
|
-
M.value = i.value("image.load_failed"), T.value = !0,
|
|
227
|
+
M.value = i.value("image.load_failed"), T.value = !0, B.error(new ie("image.load_failed"), "request");
|
|
228
228
|
}, we = () => {
|
|
229
229
|
l.value = { x: 0, y: 0 }, r.value = 1;
|
|
230
|
-
},
|
|
230
|
+
}, A = (e) => {
|
|
231
231
|
e.preventDefault(), e.stopPropagation();
|
|
232
232
|
const t = h.value;
|
|
233
233
|
if (!t) return;
|
|
@@ -242,21 +242,21 @@ const Ve = {
|
|
|
242
242
|
};
|
|
243
243
|
Ee(() => {
|
|
244
244
|
const e = h.value;
|
|
245
|
-
e && (e.addEventListener("wheel",
|
|
245
|
+
e && (e.addEventListener("wheel", A, { passive: !1 }), e.addEventListener("touchstart", ee, { passive: !1 }), e.addEventListener("touchmove", te, { passive: !1 }), e.addEventListener("touchend", Z), e.addEventListener("touchcancel", Z));
|
|
246
246
|
}), ae(() => {
|
|
247
247
|
const e = h.value;
|
|
248
|
-
e && (e.removeEventListener("wheel",
|
|
248
|
+
e && (e.removeEventListener("wheel", A), e.removeEventListener("touchstart", ee), e.removeEventListener("touchmove", te), e.removeEventListener("touchend", Z), e.removeEventListener("touchcancel", Z));
|
|
249
249
|
});
|
|
250
250
|
const _e = (e) => {
|
|
251
|
-
P || e.button === 0 && (y.value = !0,
|
|
251
|
+
P || e.button === 0 && (y.value = !0, z = {
|
|
252
252
|
x: e.clientX - l.value.x,
|
|
253
253
|
y: e.clientY - l.value.y
|
|
254
254
|
});
|
|
255
255
|
}, Me = (e) => {
|
|
256
256
|
P || y.value && (l.value = H(
|
|
257
257
|
{
|
|
258
|
-
x: e.clientX -
|
|
259
|
-
y: e.clientY -
|
|
258
|
+
x: e.clientX - z.x,
|
|
259
|
+
y: e.clientY - z.y
|
|
260
260
|
},
|
|
261
261
|
m.value
|
|
262
262
|
));
|
|
@@ -266,24 +266,24 @@ const Ve = {
|
|
|
266
266
|
P = !0, e.preventDefault();
|
|
267
267
|
const t = e.touches;
|
|
268
268
|
if (t.length === 1) {
|
|
269
|
-
y.value = !0,
|
|
269
|
+
y.value = !0, z = {
|
|
270
270
|
x: t[0].clientX - l.value.x,
|
|
271
271
|
y: t[0].clientY - l.value.y
|
|
272
272
|
};
|
|
273
273
|
const a = Date.now();
|
|
274
|
-
a -
|
|
274
|
+
a - q < 300 && (l.value = { x: 0, y: 0 }, r.value = 1), q = a;
|
|
275
275
|
} else t.length === 2 && (y.value = !1, j = Math.hypot(
|
|
276
276
|
t[1].clientX - t[0].clientX,
|
|
277
277
|
t[1].clientY - t[0].clientY
|
|
278
|
-
), Q = m.value,
|
|
278
|
+
), Q = m.value, N = { ...l.value });
|
|
279
279
|
}, te = (e) => {
|
|
280
280
|
e.preventDefault();
|
|
281
281
|
const t = e.touches;
|
|
282
282
|
if (t.length === 1 && y.value)
|
|
283
283
|
l.value = H(
|
|
284
284
|
{
|
|
285
|
-
x: t[0].clientX -
|
|
286
|
-
y: t[0].clientY -
|
|
285
|
+
x: t[0].clientX - z.x,
|
|
286
|
+
y: t[0].clientY - z.y
|
|
287
287
|
},
|
|
288
288
|
m.value
|
|
289
289
|
);
|
|
@@ -295,11 +295,11 @@ const Ve = {
|
|
|
295
295
|
t[1].clientY - t[0].clientY
|
|
296
296
|
);
|
|
297
297
|
if (Math.abs(u - j) < 5) return;
|
|
298
|
-
const c = u / j, o = Math.max(0.01, Math.min(10, Q * c)), d = a.getBoundingClientRect(), n = (t[0].clientX + t[1].clientX) / 2 - d.left - d.width / 2, x = (t[0].clientY + t[1].clientY) / 2 - d.top - d.height / 2,
|
|
298
|
+
const c = u / j, o = Math.max(0.01, Math.min(10, Q * c)), d = a.getBoundingClientRect(), n = (t[0].clientX + t[1].clientX) / 2 - d.left - d.width / 2, x = (t[0].clientY + t[1].clientY) / 2 - d.top - d.height / 2, X = o / m.value;
|
|
299
299
|
l.value = H(
|
|
300
300
|
{
|
|
301
|
-
x: n -
|
|
302
|
-
y: x -
|
|
301
|
+
x: n - X * (n - N.x),
|
|
302
|
+
y: x - X * (x - N.y)
|
|
303
303
|
},
|
|
304
304
|
o
|
|
305
305
|
), m.value = o;
|
|
@@ -322,24 +322,24 @@ const Ve = {
|
|
|
322
322
|
onMouseup: K,
|
|
323
323
|
onMouseleave: K
|
|
324
324
|
}, [
|
|
325
|
-
p.value ? (w(), U("div",
|
|
326
|
-
_("div",
|
|
325
|
+
p.value ? (w(), U("div", Ae, [
|
|
326
|
+
_("div", Ve, [
|
|
327
327
|
t[2] || (t[2] = _("div", { class: "vfp-renderer-spinner" }, null, -1)),
|
|
328
|
-
_("p",
|
|
329
|
-
Ce(b(
|
|
330
|
-
O.value > 0 ? (w(), U("span",
|
|
328
|
+
_("p", Fe, [
|
|
329
|
+
Ce(b(D(i)("image.decoding")) + " ", 1),
|
|
330
|
+
O.value > 0 ? (w(), U("span", Ge, b(Math.round(O.value)) + "%", 1)) : E("", !0)
|
|
331
331
|
])
|
|
332
332
|
])
|
|
333
333
|
])) : E("", !0),
|
|
334
334
|
R.value ? (w(), ne(re, {
|
|
335
335
|
key: 1,
|
|
336
|
-
message:
|
|
336
|
+
message: D(i)("image.decode_failed"),
|
|
337
337
|
detail: R.value
|
|
338
338
|
}, null, 8, ["message", "detail"])) : E("", !0),
|
|
339
339
|
!T.value && !M.value && !p.value && !R.value ? (w(), U("div", Qe, [
|
|
340
|
-
_("div",
|
|
340
|
+
_("div", qe, [
|
|
341
341
|
t[3] || (t[3] = _("div", { class: "vfp-renderer-spinner" }, null, -1)),
|
|
342
|
-
_("span", Je, b(
|
|
342
|
+
_("span", Je, b(D(i)("common.loading")), 1)
|
|
343
343
|
])
|
|
344
344
|
])) : E("", !0),
|
|
345
345
|
M.value ? (w(), ne(re, {
|
|
@@ -360,20 +360,20 @@ const Ve = {
|
|
|
360
360
|
onDblclick: we
|
|
361
361
|
}, null, 46, Ke)) : E("", !0),
|
|
362
362
|
T.value && !M.value && v.value.width > 0 ? (w(), U("div", et, b(v.value.width) + " × " + b(v.value.height) + b(Le.value), 1)) : E("", !0),
|
|
363
|
-
|
|
363
|
+
Y.value > 1 ? (w(), U("div", tt, [
|
|
364
364
|
_("button", {
|
|
365
365
|
type: "button",
|
|
366
366
|
disabled: k.value <= 1 || p.value,
|
|
367
367
|
class: "vfp-px-2 vfp-py-0.5 vfp-rounded hover:vfp-bg-surface-nav-hover disabled:vfp-opacity-40 disabled:vfp-cursor-not-allowed",
|
|
368
368
|
onClick: t[0] || (t[0] = (a) => J(k.value - 1))
|
|
369
|
-
}, b(
|
|
370
|
-
_("span", lt, b(k.value) + " / " + b(
|
|
369
|
+
}, b(D(i)("toolbar.prev_page")), 9, at),
|
|
370
|
+
_("span", lt, b(k.value) + " / " + b(Y.value), 1),
|
|
371
371
|
_("button", {
|
|
372
372
|
type: "button",
|
|
373
|
-
disabled: k.value >=
|
|
373
|
+
disabled: k.value >= Y.value || p.value,
|
|
374
374
|
class: "vfp-px-2 vfp-py-0.5 vfp-rounded hover:vfp-bg-surface-nav-hover disabled:vfp-opacity-40 disabled:vfp-cursor-not-allowed",
|
|
375
375
|
onClick: t[1] || (t[1] = (a) => J(k.value + 1))
|
|
376
|
-
}, b(
|
|
376
|
+
}, b(D(i)("toolbar.next_page")), 9, ot)
|
|
377
377
|
])) : E("", !0)
|
|
378
378
|
], 36));
|
|
379
379
|
}
|