@opencloud-eu/web-pkg 6.1.0 → 6.2.0
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/dist/{TextEditor-B0ZZfO_w.js → TextEditor-CTRIgoeG.js} +1 -1
- package/dist/assets/worker-Bv-mZ-VL.js +25 -0
- package/dist/assets/worker-Dx2ttEp-.js +25 -0
- package/dist/assets/worker-nUcRt7qV.js +25 -0
- package/dist/{composables-TkULFBg4.js → composables-CAlEpA5b.js} +2457 -2450
- package/dist/src/components/AppBar/AppBar.vue.d.ts +34 -91
- package/dist/src/components/AppTemplates/AppWrapper.vue.d.ts +1 -9
- package/dist/src/components/AppTopBar.vue.d.ts +3 -11
- package/dist/src/components/Avatars/UserAvatar.vue.d.ts +1 -9
- package/dist/src/components/ContextActions/ActionMenuDropItem.vue.d.ts +1 -9
- package/dist/src/components/ContextActions/ContextActionMenu.vue.d.ts +9 -27
- package/dist/src/components/ContextActions/ContextMenuQuickAction.vue.d.ts +15 -125
- package/dist/src/components/CreateLinkModal.vue.d.ts +6 -14
- package/dist/src/components/CreateShortcutModal.vue.d.ts +19 -133
- package/dist/src/components/CustomComponentTarget.vue.d.ts +1 -9
- package/dist/src/components/FilesList/ContextActions.vue.d.ts +9 -27
- package/dist/src/components/FilesList/ResourceGhostElement.vue.d.ts +7 -17
- package/dist/src/components/FilesList/ResourceIcon.vue.d.ts +1 -9
- package/dist/src/components/FilesList/ResourceListItem.vue.d.ts +5 -12
- package/dist/src/components/FilesList/ResourceName.vue.d.ts +3 -9
- package/dist/src/components/FilesList/ResourceStatusIndicators.vue.d.ts +1 -9
- package/dist/src/components/FilesList/ResourceTable.vue.d.ts +8 -16
- package/dist/src/components/FilesList/ResourceTile.vue.d.ts +6 -14
- package/dist/src/components/FilesList/ResourceTiles.vue.d.ts +7 -15
- package/dist/src/components/Filters/DateFilter.vue.d.ts +5 -13
- package/dist/src/components/ItemFilter.vue.d.ts +5 -13
- package/dist/src/components/NoContentMessage.vue.d.ts +1 -9
- package/dist/src/components/Search/ResourcePreview.vue.d.ts +1 -9
- package/dist/src/components/SideBar/CompareSaveDialog.vue.d.ts +1 -1
- package/dist/src/components/SideBar/FileSideBar.vue.d.ts +1 -9
- package/dist/src/components/SideBar/Files/FileInfo.vue.d.ts +1 -9
- package/dist/src/components/SideBar/SideBar.vue.d.ts +5 -13
- package/dist/src/components/SideBar/SideBarPanels.vue.d.ts +6 -14
- package/dist/src/components/SideBar/Spaces/Details/SpaceDetails.vue.d.ts +1 -9
- package/dist/src/components/SideBar/Spaces/Details/SpaceDetailsMultiple.vue.d.ts +1 -9
- package/dist/src/components/SideBar/Spaces/SpaceInfo.vue.d.ts +5 -1
- package/dist/src/components/SpaceQuota.vue.d.ts +1 -9
- package/dist/src/components/Spaces/QuotaModal.vue.d.ts +3 -11
- package/dist/src/components/Spaces/SpaceImageModal.vue.d.ts +2 -10
- package/dist/src/components/TextEditor/TextEditor.vue.d.ts +4 -12
- package/dist/src/components/TextEditor/index.d.ts +16 -38
- package/dist/src/components/ViewOptions.vue.d.ts +1 -9
- package/dist/src/components/index.d.ts +0 -1
- package/dist/src/composables/actions/types.d.ts +92 -2
- package/dist/src/composables/keyboardActions/useKeyboardActions.d.ts +1 -0
- package/dist/src/composables/piniaStores/avatars.d.ts +3 -3
- package/dist/src/composables/piniaStores/messages.d.ts +6 -588
- package/dist/src/composables/resources/useResourceViewDrag.d.ts +7 -17
- package/dist/src/composables/resources/useResourceViewHelpers.d.ts +7 -17
- package/dist/web-pkg.js +1225 -1295
- package/package.json +4 -4
- package/dist/assets/worker-C-Nrpmiq.js +0 -24
- package/dist/assets/worker-CzI1mBNb.js +0 -24
- package/dist/assets/worker-DDmV-och.js +0 -24
- package/dist/src/components/Navigation/MobileNav.vue.d.ts +0 -3
- package/dist/src/components/Navigation/index.d.ts +0 -1
package/dist/web-pkg.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as e, $a as t, $i as n, $n as r, $r as i, $t as a, A as o, Aa as s, Ai as c, An as l, Ao as u, Ar as d, At as f, B as p, Ba as m, Bi as h, Bn as g, Bo as _, Br as v, Bt as y, C as b, Ca as x, Ci as S, Cn as C, Co as ee, Cr as w, Ct as T, D as te, Da as E, Di as D, Dn as O, Do as k, Dr as A, Dt as ne, E as re, Ea as j, Ei as ie, En as ae, Eo as M, Er as
|
|
1
|
+
import { $ as e, $a as t, $i as n, $n as r, $r as i, $t as a, A as o, Aa as s, Ai as c, An as l, Ao as u, Ar as d, At as f, B as p, Ba as m, Bi as h, Bn as g, Bo as _, Br as v, Bt as y, C as b, Ca as x, Ci as S, Cn as C, Co as ee, Cr as w, Ct as T, D as te, Da as E, Di as D, Dn as O, Do as k, Dr as A, Dt as ne, E as re, Ea as j, Ei as ie, En as ae, Eo as M, Er as N, Et as oe, F as se, Fa as ce, Fi as le, Fn as ue, Fo as de, Fr as fe, Ft as pe, G as me, Ga as he, Gi as ge, Gn as _e, Go as ve, Gr as ye, Gt as be, H as xe, Ha as Se, Hi as Ce, Hn as we, Ho as Te, Hr as Ee, Ht as De, I as Oe, Ia as ke, Ii as Ae, In as je, Io as P, Ir as Me, It as Ne, J as Pe, Ja as Fe, Ji as Ie, Jn as Le, Jr as Re, Jt as ze, K as Be, Ka as Ve, Ki as He, Kn as Ue, Kr as We, Kt as Ge, L as Ke, La as qe, Li as Je, Ln as Ye, Lo as F, Lr as Xe, Lt as Ze, M as Qe, Ma as $e, Mi as et, Mn as tt, Mo as nt, Mr as rt, Mt as it, N as at, Na as ot, Ni as st, Nn as ct, No as lt, Nr as ut, Nt as dt, O as ft, Oa as pt, Oi as mt, On as ht, Oo as I, Or as gt, Ot as _t, P as vt, Pa as yt, Pi as bt, Pn as xt, Po as St, Pr as Ct, Pt as wt, Q as Tt, Qa as Et, Qi as Dt, Qn as Ot, Qr as kt, Qt as At, R as jt, Ra as Mt, Ri as Nt, Rn as Pt, Ro as L, Rr as Ft, Rt as It, S as Lt, Sa as Rt, Si as zt, Sn as Bt, So as Vt, Sr as Ht, St as Ut, T as Wt, Ta as Gt, Ti as Kt, Tn as qt, To as Jt, Tr as Yt, Tt as Xt, U as Zt, Ua as Qt, Ui as $t, Un as en, Uo as R, Ur as tn, Ut as nn, V as rn, Va as an, Vi as on, Vn as sn, Vo as z, Vr as cn, Vt as ln, W as un, Wa as dn, Wi as fn, Wn as pn, Wo as mn, Wr as hn, Wt as gn, X as _n, Xa as B, Xi as vn, Xn as yn, Xr as bn, Xt as xn, Y as Sn, Ya as Cn, Yi as wn, Yn as Tn, Yr as En, Yt as Dn, Z as On, Za as kn, Zi as An, Zn as jn, Zr as Mn, Zt as Nn, _ as Pn, _a as Fn, _i as In, _n as Ln, _o as Rn, _r as zn, _t as Bn, a as Vn, aa as Hn, ai as Un, an as Wn, ao as Gn, ar as Kn, at as qn, b as Jn, ba as Yn, bi as Xn, bn as Zn, bo as V, br as Qn, bt as $n, c as er, ca as tr, ci as nr, cn as rr, co as H, cr as ir, ct as ar, d as or, da as sr, di as cr, dn as lr, do as ur, dr, dt as fr, ea as pr, ei as mr, en as hr, eo as gr, er as _r, et as vr, f as yr, fa as br, fi as xr, fn as Sr, fo as Cr, fr as wr, ft as Tr, g as Er, ga as Dr, gi as Or, gn as kr, go as Ar, gr as jr, gt as Mr, h as Nr, ha as Pr, hi as Fr, hn as Ir, ho as U, hr as Lr, ht as Rr, i as zr, ia as Br, ii as Vr, in as Hr, io as W, ir as Ur, it as Wr, j as Gr, ja as Kr, ji as qr, jn as Jr, jo as G, jr as Yr, jt as Xr, k as Zr, ka as Qr, ki as $r, kn as ei, ko as ti, kr as ni, kt as ri, l as ii, la as ai, li as oi, ln as si, lo as K, lr as ci, lt as li, m as ui, ma as di, mi as fi, mn as pi, mo as mi, mr as hi, mt as gi, n as _i, na as vi, ni as yi, nn as bi, no as xi, nr as Si, nt as Ci, o as wi, oa as Ti, oi as Ei, on as Di, oo as q, or as Oi, ot as ki, p as Ai, pa as ji, pi as Mi, pn as Ni, po as J, pr as Pi, pt as Fi, q as Ii, qa as Li, qi as Ri, qn as zi, qr as Bi, qt as Vi, r as Hi, ra as Ui, ri as Wi, rn as Gi, ro as Ki, rr as qi, rt as Ji, s as Yi, sa as Xi, si as Zi, sn as Qi, so as Y, sr as $i, st as ea, t as ta, ta as na, ti as ra, tn as ia, to as aa, tr as oa, tt as sa, u as ca, ua as la, ui as ua, un as da, uo as X, ur as fa, ut as pa, v as ma, va as ha, vi as ga, vn as _a, vo as va, vr as ya, vt as ba, w as xa, wa as Sa, wi as Ca, wn as wa, wo as Z, wr as Ta, wt as Ea, x as Da, xa as Oa, xi as ka, xn as Aa, xo as ja, xr as Ma, xt as Na, y as Pa, ya as Fa, yi as Ia, yn as La, yo as Ra, yr as za, yt as Ba, z as Va, za as Ha, zi as Ua, zn as Wa, zo as Ga, zr as Ka, zt as qa } from "./composables-CAlEpA5b.js";
|
|
2
2
|
import { HttpError as Ja, ShareTypes as Ya, buildIncomingShareResource as Xa, buildSpaceImageResource as Za, call as Qa, extractDomSelector as $a, getSpaceManagers as eo, isCollaboratorShare as to, isIncomingShareResource as no, isLinkShare as ro, isManager as io, isOutgoingShareResource as ao, isPersonalSpaceResource as oo, isProjectSpaceResource as so, isPublicSpaceResource as co, isShareResource as lo, isShareSpaceResource as uo, isSpaceResource as fo } from "@opencloud-eu/web-client";
|
|
3
3
|
import { useGettext as Q } from "vue3-gettext";
|
|
4
4
|
import po from "fuse.js";
|
|
@@ -12,7 +12,7 @@ import bo from "mark.js";
|
|
|
12
12
|
import xo from "cropperjs";
|
|
13
13
|
import { onBeforeRouteLeave as So, useRouter as Co } from "vue-router";
|
|
14
14
|
//#region src/apps/types.ts
|
|
15
|
-
var wo = (e) => e, To =
|
|
15
|
+
var wo = (e) => e, To = U({
|
|
16
16
|
name: "ActionMenuItem",
|
|
17
17
|
props: {
|
|
18
18
|
action: {
|
|
@@ -48,18 +48,18 @@ var wo = (e) => e, To = H({
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
setup(e) {
|
|
51
|
-
let { options: t } = $(
|
|
51
|
+
let { options: t } = $(Hn()), n = q(() => Object.hasOwn(e.action, "route") ? "router-link" : Object.hasOwn(e.action, "href") ? "a" : (Object.hasOwn(e.action, "handler") || console.warn("ActionMenuItem: No handler, route or href callback found in action", e.action), "button"));
|
|
52
52
|
return {
|
|
53
53
|
componentType: n,
|
|
54
|
-
componentProps:
|
|
54
|
+
componentProps: q(() => ({
|
|
55
55
|
appearance: e.action.appearance || e.appearance,
|
|
56
56
|
...e.action.isDisabled && { disabled: e.action.isDisabled(e.actionOptions) },
|
|
57
57
|
...e.action.id && { id: e.action.id },
|
|
58
|
-
...
|
|
59
|
-
...
|
|
60
|
-
...["router-link", "a"].includes(
|
|
58
|
+
...R(n) === "router-link" && { to: e.action.route(e.actionOptions) },
|
|
59
|
+
...R(n) === "a" && { href: e.action.href(e.actionOptions) },
|
|
60
|
+
...["router-link", "a"].includes(R(n)) && { target: t.value.openFilesInNewTab ? "_blank" : "_self" }
|
|
61
61
|
})),
|
|
62
|
-
actionIcon:
|
|
62
|
+
actionIcon: q(() => typeof e.action.icon == "function" ? e.action.icon(e.actionOptions) : e.action.icon)
|
|
63
63
|
};
|
|
64
64
|
},
|
|
65
65
|
computed: {
|
|
@@ -80,8 +80,8 @@ var wo = (e) => e, To = H({
|
|
|
80
80
|
"data-testid": "action-label"
|
|
81
81
|
}, Do = ["textContent"], Oo = ["textContent"];
|
|
82
82
|
function ko(e, t, n, r, i, a) {
|
|
83
|
-
let o =
|
|
84
|
-
return
|
|
83
|
+
let o = I("oc-image"), s = I("oc-icon"), c = I("oc-button"), l = ti("oc-tooltip");
|
|
84
|
+
return L((Z(), X("li", null, [L((Z(), H(c, va({ type: e.componentType }, e.componentProps, {
|
|
85
85
|
class: [
|
|
86
86
|
e.action.class,
|
|
87
87
|
"action-menu-item",
|
|
@@ -93,21 +93,21 @@ function ko(e, t, n, r, i, a) {
|
|
|
93
93
|
"data-testid": "action-handler",
|
|
94
94
|
size: e.size,
|
|
95
95
|
"justify-content": "left"
|
|
96
|
-
},
|
|
97
|
-
default:
|
|
98
|
-
e.action.img ? (Z(),
|
|
96
|
+
}, nt(e.componentListeners)), {
|
|
97
|
+
default: F(() => [
|
|
98
|
+
e.action.img ? (Z(), H(o, {
|
|
99
99
|
key: 0,
|
|
100
100
|
"data-testid": "action-img",
|
|
101
101
|
src: e.action.img,
|
|
102
102
|
alt: "",
|
|
103
103
|
class: "oc-icon oc-icon-m w-[22px]"
|
|
104
|
-
}, null, 8, ["src"])) : e.hasExternalImageIcon ? (Z(),
|
|
104
|
+
}, null, 8, ["src"])) : e.hasExternalImageIcon ? (Z(), H(o, {
|
|
105
105
|
key: 1,
|
|
106
106
|
"data-testid": "action-img",
|
|
107
107
|
src: e.actionIcon,
|
|
108
108
|
alt: "",
|
|
109
109
|
class: "oc-icon oc-icon-m w-[22px]"
|
|
110
|
-
}, null, 8, ["src"])) : e.actionIcon ? (Z(),
|
|
110
|
+
}, null, 8, ["src"])) : e.actionIcon ? (Z(), H(s, {
|
|
111
111
|
key: 2,
|
|
112
112
|
"data-testid": "action-icon",
|
|
113
113
|
name: e.actionIcon,
|
|
@@ -117,16 +117,16 @@ function ko(e, t, n, r, i, a) {
|
|
|
117
117
|
"name",
|
|
118
118
|
"fill-type",
|
|
119
119
|
"size"
|
|
120
|
-
])) :
|
|
121
|
-
e.action.hideLabel ?
|
|
120
|
+
])) : K("", !0),
|
|
121
|
+
e.action.hideLabel ? K("", !0) : (Z(), X("span", Eo, [Y("span", {
|
|
122
122
|
class: "text-left",
|
|
123
|
-
textContent:
|
|
123
|
+
textContent: G(e.action.label(e.actionOptions))
|
|
124
124
|
}, null, 8, Do)])),
|
|
125
125
|
e.action.shortcut && e.shortcutHint ? (Z(), X("span", {
|
|
126
126
|
key: 4,
|
|
127
127
|
class: "text-sm flex-row-reverse",
|
|
128
|
-
textContent:
|
|
129
|
-
}, null, 8, Oo)) :
|
|
128
|
+
textContent: G(e.action.shortcut)
|
|
129
|
+
}, null, 8, Oo)) : K("", !0)
|
|
130
130
|
]),
|
|
131
131
|
_: 1
|
|
132
132
|
}, 16, [
|
|
@@ -136,7 +136,7 @@ function ko(e, t, n, r, i, a) {
|
|
|
136
136
|
"size"
|
|
137
137
|
])), [[l, e.showTooltip || e.action.hideLabel ? e.action.label(e.actionOptions) : ""]])])), [[l, e.componentProps.disabled ? e.action.disabledTooltip?.(e.actionOptions) : ""]]);
|
|
138
138
|
}
|
|
139
|
-
var Ao = /* @__PURE__ */
|
|
139
|
+
var Ao = /* @__PURE__ */ B(To, [["render", ko]]), jo = U({
|
|
140
140
|
name: "BatchActions",
|
|
141
141
|
components: { ActionMenuItem: Ao },
|
|
142
142
|
props: {
|
|
@@ -158,12 +158,12 @@ var Ao = /* @__PURE__ */ z(To, [["render", ko]]), jo = H({
|
|
|
158
158
|
//#endregion
|
|
159
159
|
//#region src/components/BatchActions.vue
|
|
160
160
|
function Mo(e, t, n, r, i, a) {
|
|
161
|
-
let o =
|
|
162
|
-
return Z(), X("div", null, [
|
|
161
|
+
let o = I("action-menu-item"), s = I("oc-list");
|
|
162
|
+
return Z(), X("div", null, [J(s, {
|
|
163
163
|
id: "oc-appbar-batch-actions",
|
|
164
|
-
class:
|
|
164
|
+
class: V(["block xl:flex xl:items-center", { "oc-appbar-batch-actions-squashed [&_.oc-files-context-action-label]:hidden": e.limitedScreenSpace }])
|
|
165
165
|
}, {
|
|
166
|
-
default:
|
|
166
|
+
default: F(() => [(Z(!0), X(W, null, M(e.actions, (t, n) => (Z(), H(o, {
|
|
167
167
|
key: `action-${n}`,
|
|
168
168
|
action: t,
|
|
169
169
|
"action-options": e.actionOptions,
|
|
@@ -179,7 +179,7 @@ function Mo(e, t, n, r, i, a) {
|
|
|
179
179
|
_: 1
|
|
180
180
|
}, 8, ["class"])]);
|
|
181
181
|
}
|
|
182
|
-
var No = /* @__PURE__ */
|
|
182
|
+
var No = /* @__PURE__ */ B(jo, [["render", Mo]]), Po = { class: "context-menu px-2" }, Fo = { class: "inline-flex gap-2" }, Io = { class: "flex oc-files-context-action-label" }, Lo = ["textContent"], Ro = /* @__PURE__ */ U({
|
|
183
183
|
__name: "ActionMenuDropItem",
|
|
184
184
|
props: {
|
|
185
185
|
menuSectionDrop: {},
|
|
@@ -187,31 +187,31 @@ var No = /* @__PURE__ */ z(jo, [["render", Mo]]), Po = { class: "context-menu px
|
|
|
187
187
|
actionOptions: {}
|
|
188
188
|
},
|
|
189
189
|
setup(e) {
|
|
190
|
-
let t =
|
|
190
|
+
let t = wn(`oc-files-context-actions-${e.menuSectionDrop.name}-drop-`), n = wn(`oc-files-context-actions-${e.menuSectionDrop.name}-toggle-`);
|
|
191
191
|
return (r, i) => {
|
|
192
|
-
let a =
|
|
193
|
-
return Z(), X("li", Po, [
|
|
194
|
-
id:
|
|
192
|
+
let a = I("oc-icon"), o = I("oc-button"), s = I("oc-list");
|
|
193
|
+
return Z(), X("li", Po, [J(o, {
|
|
194
|
+
id: R(n),
|
|
195
195
|
appearance: "raw",
|
|
196
196
|
"justify-content": "space-between",
|
|
197
197
|
"gap-size": "medium",
|
|
198
198
|
class: "w-full flex justify-between",
|
|
199
199
|
"aria-expanded": "false"
|
|
200
200
|
}, {
|
|
201
|
-
default:
|
|
201
|
+
default: F(() => [Y("span", Fo, [J(a, {
|
|
202
202
|
name: e.menuSectionDrop.icon,
|
|
203
203
|
size: "medium",
|
|
204
204
|
"fill-type": "line"
|
|
205
|
-
}, null, 8, ["name"]), Y("span", Io, [Y("span", { textContent:
|
|
205
|
+
}, null, 8, ["name"]), Y("span", Io, [Y("span", { textContent: G(e.menuSectionDrop.label) }, null, 8, Lo)])]), J(a, {
|
|
206
206
|
name: "arrow-right-s",
|
|
207
207
|
size: "small",
|
|
208
208
|
"fill-type": "line"
|
|
209
209
|
})]),
|
|
210
210
|
_: 1
|
|
211
|
-
}, 8, ["id"]),
|
|
211
|
+
}, 8, ["id"]), J(R(si), {
|
|
212
212
|
title: e.menuSectionDrop.label,
|
|
213
|
-
"drop-id":
|
|
214
|
-
toggle: `#${
|
|
213
|
+
"drop-id": R(t),
|
|
214
|
+
toggle: `#${R(n)}`,
|
|
215
215
|
mode: "hover",
|
|
216
216
|
class: "w-3xs oc-files-context-action-drop",
|
|
217
217
|
"padding-size": "small",
|
|
@@ -219,8 +219,8 @@ var No = /* @__PURE__ */ z(jo, [["render", Mo]]), Po = { class: "context-menu px
|
|
|
219
219
|
position: "right-start",
|
|
220
220
|
"close-on-click": ""
|
|
221
221
|
}, {
|
|
222
|
-
default:
|
|
223
|
-
default:
|
|
222
|
+
default: F(() => [e.menuSectionDrop.items.length ? (Z(), H(s, { key: 0 }, {
|
|
223
|
+
default: F(() => [(Z(!0), X(W, null, M(e.menuSectionDrop.items, (t, n) => (Z(), H(Ao, {
|
|
224
224
|
key: `section-${e.menuSectionDrop.label}-action-${n}`,
|
|
225
225
|
action: t,
|
|
226
226
|
appearance: e.appearance,
|
|
@@ -231,7 +231,7 @@ var No = /* @__PURE__ */ z(jo, [["render", Mo]]), Po = { class: "context-menu px
|
|
|
231
231
|
"action-options"
|
|
232
232
|
]))), 128))]),
|
|
233
233
|
_: 1
|
|
234
|
-
})) :
|
|
234
|
+
})) : K("", !0)]),
|
|
235
235
|
_: 1
|
|
236
236
|
}, 8, [
|
|
237
237
|
"title",
|
|
@@ -240,7 +240,7 @@ var No = /* @__PURE__ */ z(jo, [["render", Mo]]), Po = { class: "context-menu px
|
|
|
240
240
|
])]);
|
|
241
241
|
};
|
|
242
242
|
}
|
|
243
|
-
}), zo =
|
|
243
|
+
}), zo = U({
|
|
244
244
|
name: "ContextActionMenu",
|
|
245
245
|
components: {
|
|
246
246
|
ActionMenuDropItem: Ro,
|
|
@@ -266,13 +266,13 @@ var No = /* @__PURE__ */ z(jo, [["render", Mo]]), Po = { class: "context-menu px
|
|
|
266
266
|
} }
|
|
267
267
|
}), Bo = { id: "oc-files-context-menu" };
|
|
268
268
|
function Vo(e, t, n, r, i, a) {
|
|
269
|
-
let o =
|
|
270
|
-
return Z(), X("div", Bo, [(Z(!0), X(
|
|
269
|
+
let o = I("action-menu-item"), s = I("action-menu-drop-item"), c = I("oc-list");
|
|
270
|
+
return Z(), X("div", Bo, [(Z(!0), X(W, null, M(e.menuSections, (t, n) => (Z(), H(c, {
|
|
271
271
|
id: `oc-files-context-actions-${t.name}`,
|
|
272
272
|
key: `section-${t.name}-list`,
|
|
273
|
-
class:
|
|
273
|
+
class: V(["[&_li]:px-0", e.getSectionClasses(n)])
|
|
274
274
|
}, {
|
|
275
|
-
default:
|
|
275
|
+
default: F(() => [t.items ? (Z(!0), X(W, { key: 0 }, M(t.items, (n, r) => (Z(), H(o, {
|
|
276
276
|
key: `section-${t.name}-action-${r}`,
|
|
277
277
|
action: n,
|
|
278
278
|
appearance: e.appearance,
|
|
@@ -282,7 +282,7 @@ function Vo(e, t, n, r, i, a) {
|
|
|
282
282
|
"action",
|
|
283
283
|
"appearance",
|
|
284
284
|
"action-options"
|
|
285
|
-
]))), 128)) :
|
|
285
|
+
]))), 128)) : K("", !0), (Z(!0), X(W, null, M(t.dropItems, (t) => (Z(), X(W, null, [t.items.length ? (Z(), H(s, {
|
|
286
286
|
key: t.name,
|
|
287
287
|
"menu-section-drop": t,
|
|
288
288
|
appearance: e.appearance,
|
|
@@ -291,11 +291,11 @@ function Vo(e, t, n, r, i, a) {
|
|
|
291
291
|
"menu-section-drop",
|
|
292
292
|
"appearance",
|
|
293
293
|
"action-options"
|
|
294
|
-
])) :
|
|
294
|
+
])) : K("", !0)], 64))), 256))]),
|
|
295
295
|
_: 2
|
|
296
296
|
}, 1032, ["id", "class"]))), 128))]);
|
|
297
297
|
}
|
|
298
|
-
var Ho = /* @__PURE__ */
|
|
298
|
+
var Ho = /* @__PURE__ */ B(zo, [["render", Vo]]), Uo = U({
|
|
299
299
|
name: "ContextActions",
|
|
300
300
|
components: { ContextActionMenu: Ho },
|
|
301
301
|
props: { actionOptions: {
|
|
@@ -303,75 +303,75 @@ var Ho = /* @__PURE__ */ z(zo, [["render", Vo]]), Uo = H({
|
|
|
303
303
|
required: !0
|
|
304
304
|
} },
|
|
305
305
|
setup(e) {
|
|
306
|
-
let { getAllOpenWithActions: t } = La(), { $gettext: n } = Q(), { actions: r } = Ea(), { actions: i } =
|
|
306
|
+
let { getAllOpenWithActions: t } = La(), { $gettext: n } = Q(), { actions: r } = Ea(), { actions: i } = _t(), { actions: a } = qn(), { actions: o } = _a(), { actions: s } = Sr(), { actions: c } = wt(), { actions: l } = pe(), { actions: u } = it(), { actions: d } = f(), { actions: p } = ne(), { actions: m } = oe(), { actions: h } = Bn(), { actions: g } = Mr(), { actions: _ } = Rr(), { actions: v } = fr(), { actions: y } = li(), { actions: b } = Ne(), { actions: x } = ki(), S = ut(), C = q(() => S.requestExtensions({
|
|
307
307
|
id: "global.files.context-actions",
|
|
308
308
|
extensionType: "action"
|
|
309
|
-
}).map((e) => e.action)), ee =
|
|
309
|
+
}).map((e) => e.action)), ee = q(() => S.requestExtensions({
|
|
310
310
|
id: "global.files.batch-actions",
|
|
311
311
|
extensionType: "action"
|
|
312
|
-
}).map((e) => e.action)), w =
|
|
313
|
-
...
|
|
314
|
-
...
|
|
315
|
-
...
|
|
316
|
-
...
|
|
317
|
-
...
|
|
318
|
-
...
|
|
319
|
-
...
|
|
320
|
-
...
|
|
321
|
-
...
|
|
322
|
-
].filter((e) => e.isVisible(
|
|
323
|
-
...
|
|
312
|
+
}).map((e) => e.action)), w = Te(e, "actionOptions"), T = q(() => [
|
|
313
|
+
...R(i),
|
|
314
|
+
...R(c),
|
|
315
|
+
...R(u),
|
|
316
|
+
...R(m),
|
|
317
|
+
...R(o),
|
|
318
|
+
...R(l),
|
|
319
|
+
...R(_),
|
|
320
|
+
...R(b),
|
|
321
|
+
...R(ee).filter((e) => e.category === "actions" || mo(e.category))
|
|
322
|
+
].filter((e) => e.isVisible(R(w)))), te = q(() => [...R(y), ...R(ee).filter((e) => e.category === "sidebar")].filter((e) => e.isVisible(R(w)))), E = q(() => R(r).filter((e) => e.isVisible(R(w))).sort((e, t) => Number(t.hasPriority) - Number(e.hasPriority))), D = q(() => t({
|
|
323
|
+
...R(w),
|
|
324
324
|
omitSystemActions: !0
|
|
325
|
-
}).filter((e) => e.isVisible(
|
|
326
|
-
...
|
|
327
|
-
...
|
|
328
|
-
...
|
|
329
|
-
].filter((e) => e.isVisible(
|
|
330
|
-
...
|
|
331
|
-
...
|
|
332
|
-
...
|
|
333
|
-
...
|
|
334
|
-
...
|
|
335
|
-
...
|
|
336
|
-
...
|
|
337
|
-
...
|
|
338
|
-
...
|
|
339
|
-
...
|
|
340
|
-
...
|
|
341
|
-
...
|
|
342
|
-
...
|
|
343
|
-
...
|
|
344
|
-
].filter((e) => e.isVisible(
|
|
345
|
-
...
|
|
346
|
-
...
|
|
347
|
-
...
|
|
348
|
-
].filter((e) => e.isVisible(
|
|
349
|
-
return { menuSections:
|
|
325
|
+
}).filter((e) => e.isVisible(R(w))).sort((e, t) => Number(t.hasPriority) - Number(e.hasPriority))), O = q(() => [
|
|
326
|
+
...R(x),
|
|
327
|
+
...R(s),
|
|
328
|
+
...R(C).filter((e) => e.category === "share")
|
|
329
|
+
].filter((e) => e.isVisible(R(w)))), k = q(() => [
|
|
330
|
+
...R(u),
|
|
331
|
+
...R(d),
|
|
332
|
+
...R(l),
|
|
333
|
+
...R(m),
|
|
334
|
+
...R(o),
|
|
335
|
+
...R(h),
|
|
336
|
+
...R(g),
|
|
337
|
+
...R(b),
|
|
338
|
+
...R(_),
|
|
339
|
+
...R(i),
|
|
340
|
+
...R(c),
|
|
341
|
+
...R(a),
|
|
342
|
+
...R(v),
|
|
343
|
+
...R(C).filter((e) => e.category === "actions" || mo(e.category))
|
|
344
|
+
].filter((e) => e.isVisible(R(w)))), A = q(() => [
|
|
345
|
+
...R(p),
|
|
346
|
+
...R(y),
|
|
347
|
+
...R(C).filter((e) => e.category === "sidebar")
|
|
348
|
+
].filter((e) => e.isVisible(R(w))));
|
|
349
|
+
return { menuSections: q(() => {
|
|
350
350
|
let e = [];
|
|
351
|
-
return
|
|
351
|
+
return R(w).resources.length > 1 ? (R(T).length && e.push({
|
|
352
352
|
name: "batch-actions",
|
|
353
|
-
items: [...
|
|
353
|
+
items: [...R(T)]
|
|
354
354
|
}), e.push({
|
|
355
355
|
name: "batch-details",
|
|
356
|
-
items: [...
|
|
357
|
-
}), e) : ([...
|
|
356
|
+
items: [...R(te)]
|
|
357
|
+
}), e) : ([...R(E), ...R(D)].length && e.push({
|
|
358
358
|
name: "context",
|
|
359
|
-
items: [...
|
|
359
|
+
items: [...R(E)],
|
|
360
360
|
dropItems: [{
|
|
361
361
|
label: n("Open with..."),
|
|
362
362
|
name: "open-with",
|
|
363
363
|
icon: "apps",
|
|
364
|
-
items: [...
|
|
364
|
+
items: [...R(D)]
|
|
365
365
|
}]
|
|
366
|
-
}),
|
|
366
|
+
}), R(O).length && e.push({
|
|
367
367
|
name: "share",
|
|
368
|
-
items:
|
|
369
|
-
}),
|
|
368
|
+
items: R(O)
|
|
369
|
+
}), R(k).length && e.push({
|
|
370
370
|
name: "actions",
|
|
371
|
-
items:
|
|
372
|
-
}),
|
|
371
|
+
items: R(k)
|
|
372
|
+
}), R(A).length && e.push({
|
|
373
373
|
name: "sidebar",
|
|
374
|
-
items:
|
|
374
|
+
items: R(A)
|
|
375
375
|
}), e);
|
|
376
376
|
}) };
|
|
377
377
|
}
|
|
@@ -379,13 +379,13 @@ var Ho = /* @__PURE__ */ z(zo, [["render", Vo]]), Uo = H({
|
|
|
379
379
|
//#endregion
|
|
380
380
|
//#region src/components/FilesList/ContextActions.vue
|
|
381
381
|
function Wo(e, t, n, r, i, a) {
|
|
382
|
-
let o =
|
|
383
|
-
return Z(),
|
|
382
|
+
let o = I("context-action-menu");
|
|
383
|
+
return Z(), H(o, {
|
|
384
384
|
"menu-sections": e.menuSections,
|
|
385
385
|
"action-options": e.actionOptions
|
|
386
386
|
}, null, 8, ["menu-sections", "action-options"]);
|
|
387
387
|
}
|
|
388
|
-
var Go = /* @__PURE__ */
|
|
388
|
+
var Go = /* @__PURE__ */ B(Uo, [["render", Wo]]), Ko = { class: "flex items-center" }, qo = { class: "flex justify-between w-full" }, Jo = { class: "flex items-center gap-2" }, Yo = ["textContent"], Xo = {
|
|
389
389
|
key: 0,
|
|
390
390
|
class: "mt-2 mb-4 last:mb-0 [&>*]:flex [&>*]:justify-between"
|
|
391
391
|
}, Zo = {
|
|
@@ -403,7 +403,7 @@ var Go = /* @__PURE__ */ z(Uo, [["render", Wo]]), Ko = { class: "flex items-cent
|
|
|
403
403
|
}, ts = {
|
|
404
404
|
key: 5,
|
|
405
405
|
class: "mt-2 mb-4 last:mb-0 flex justify-between items-center [&>*]:flex [&>*]:justify-between"
|
|
406
|
-
}, ns = ["textContent"], rs = ["max"], is = /* @__PURE__ */
|
|
406
|
+
}, ns = ["textContent"], rs = ["max"], is = /* @__PURE__ */ B(/* @__PURE__ */ U({
|
|
407
407
|
__name: "ViewOptions",
|
|
408
408
|
props: {
|
|
409
409
|
perPageStoragePrefix: {},
|
|
@@ -419,31 +419,31 @@ var Go = /* @__PURE__ */ z(Uo, [["render", Wo]]), Ko = { class: "flex items-cent
|
|
|
419
419
|
type: Boolean,
|
|
420
420
|
default: !0
|
|
421
421
|
},
|
|
422
|
-
paginationOptions: { default: () =>
|
|
423
|
-
perPageQueryName: { default: () =>
|
|
424
|
-
perPageDefault: { default: () =>
|
|
422
|
+
paginationOptions: { default: () => Wt.options },
|
|
423
|
+
perPageQueryName: { default: () => Wt.perPageQueryName },
|
|
424
|
+
perPageDefault: { default: () => Wt.perPageDefault },
|
|
425
425
|
viewModeDefault: { default: () => ma.defaultModeName },
|
|
426
426
|
viewModes: { default: () => [] }
|
|
427
427
|
},
|
|
428
428
|
setup(e) {
|
|
429
|
-
let t =
|
|
429
|
+
let t = ji(), n = br(), { $gettext: i } = Q(), a = dr(), { setAreHiddenFilesShown: o, setAreFileExtensionsShown: s, setAreDisabledSpacesShown: c, setAreEmptyTrashesShown: l } = a, { areHiddenFilesShown: u, areFileExtensionsShown: d, areDisabledSpacesShown: f, areEmptyTrashesShown: p } = $(a), m = z(!1), h = jn(Qr, "files-spaces-projects"), g = jn(ha, "files-trash-overview"), _ = r("page"), v = q(() => R(_) ? parseInt(Le(R(_))) : 1), y = Ot({
|
|
430
430
|
name: e.perPageQueryName,
|
|
431
431
|
defaultValue: e.perPageDefault,
|
|
432
432
|
storagePrefix: e.perPageStoragePrefix
|
|
433
|
-
}), b =
|
|
433
|
+
}), b = Ot({
|
|
434
434
|
name: ma.queryName,
|
|
435
435
|
defaultValue: e.viewModeDefault
|
|
436
|
-
}), x =
|
|
436
|
+
}), x = q(() => e.viewModes.find((e) => e.name === Le(R(b)))), S = Ot({
|
|
437
437
|
name: ma.tilesSizeQueryName,
|
|
438
438
|
defaultValue: ma.tilesSizeDefault.toString()
|
|
439
439
|
}), C = (r) => t.replace({ query: {
|
|
440
|
-
...
|
|
440
|
+
...R(n).query,
|
|
441
441
|
[e.perPageQueryName]: r.toString(),
|
|
442
|
-
...
|
|
442
|
+
...R(v) > 1 && { page: "1" }
|
|
443
443
|
} }), ee = (e) => {
|
|
444
444
|
b.value = e.name;
|
|
445
445
|
};
|
|
446
|
-
|
|
446
|
+
P([
|
|
447
447
|
y,
|
|
448
448
|
b,
|
|
449
449
|
S
|
|
@@ -453,30 +453,30 @@ var Go = /* @__PURE__ */ z(Uo, [["render", Wo]]), Ko = { class: "flex items-cent
|
|
|
453
453
|
immediate: !0,
|
|
454
454
|
deep: !0
|
|
455
455
|
});
|
|
456
|
-
let w =
|
|
456
|
+
let w = Er(), T = q({
|
|
457
457
|
get() {
|
|
458
|
-
return
|
|
458
|
+
return R(u);
|
|
459
459
|
},
|
|
460
460
|
set(e) {
|
|
461
461
|
o(e);
|
|
462
462
|
}
|
|
463
|
-
}), te =
|
|
463
|
+
}), te = q({
|
|
464
464
|
get() {
|
|
465
|
-
return
|
|
465
|
+
return R(d);
|
|
466
466
|
},
|
|
467
467
|
set(e) {
|
|
468
468
|
s(e);
|
|
469
469
|
}
|
|
470
|
-
}), E =
|
|
470
|
+
}), E = q({
|
|
471
471
|
get() {
|
|
472
|
-
return
|
|
472
|
+
return R(f);
|
|
473
473
|
},
|
|
474
474
|
set(e) {
|
|
475
475
|
c(e);
|
|
476
476
|
}
|
|
477
|
-
}), D =
|
|
477
|
+
}), D = q({
|
|
478
478
|
get() {
|
|
479
|
-
return
|
|
479
|
+
return R(p);
|
|
480
480
|
},
|
|
481
481
|
set(e) {
|
|
482
482
|
l(e);
|
|
@@ -491,47 +491,47 @@ var Go = /* @__PURE__ */ z(Uo, [["render", Wo]]), Ko = { class: "flex items-cent
|
|
|
491
491
|
D.value = e;
|
|
492
492
|
};
|
|
493
493
|
return (t, n) => {
|
|
494
|
-
let r =
|
|
494
|
+
let r = I("oc-icon"), a = I("oc-button"), o = I("oc-list"), s = I("oc-drop"), c = I("oc-switch"), l = I("oc-page-size"), u = ti("oc-tooltip");
|
|
495
495
|
return Z(), X("div", Ko, [
|
|
496
|
-
e.viewModes.length > 1 ? (Z(), X(
|
|
496
|
+
e.viewModes.length > 1 ? (Z(), X(W, { key: 0 }, [L((Z(), H(a, {
|
|
497
497
|
id: "viewmode-switch-toggle",
|
|
498
|
-
"aria-label":
|
|
498
|
+
"aria-label": R(i)("Switch view mode"),
|
|
499
499
|
appearance: "raw",
|
|
500
500
|
class: "my-2 mx-1 p-1 align-middle"
|
|
501
501
|
}, {
|
|
502
|
-
default:
|
|
502
|
+
default: F(() => [x.value ? (Z(), H(r, {
|
|
503
503
|
key: 0,
|
|
504
504
|
name: x.value.icon.name,
|
|
505
505
|
"fill-type": x.value.icon.fillType
|
|
506
|
-
}, null, 8, ["name", "fill-type"])) :
|
|
506
|
+
}, null, 8, ["name", "fill-type"])) : K("", !0)]),
|
|
507
507
|
_: 1
|
|
508
|
-
}, 8, ["aria-label"])), [[u,
|
|
509
|
-
title:
|
|
508
|
+
}, 8, ["aria-label"])), [[u, R(i)("Switch view mode")]]), J(s, {
|
|
509
|
+
title: R(i)("View mode"),
|
|
510
510
|
"drop-id": "viewmode-switch-drop",
|
|
511
511
|
toggle: "#viewmode-switch-toggle",
|
|
512
512
|
class: "w-auto",
|
|
513
513
|
"padding-size": "small",
|
|
514
514
|
"close-on-click": ""
|
|
515
515
|
}, {
|
|
516
|
-
default:
|
|
517
|
-
default:
|
|
518
|
-
appearance:
|
|
519
|
-
"color-role":
|
|
520
|
-
"no-hover":
|
|
521
|
-
class:
|
|
516
|
+
default: F(() => [J(o, null, {
|
|
517
|
+
default: F(() => [(Z(!0), X(W, null, M(e.viewModes, (e) => (Z(), X("li", { key: e.name }, [J(a, {
|
|
518
|
+
appearance: R(b) === e.name ? "filled" : "raw",
|
|
519
|
+
"color-role": R(b) === e.name ? "secondaryContainer" : "secondary",
|
|
520
|
+
"no-hover": R(b) === e.name,
|
|
521
|
+
class: V([[e.name], "p-2"]),
|
|
522
522
|
"justify-content": "left",
|
|
523
523
|
onClick: (t) => ee(e)
|
|
524
524
|
}, {
|
|
525
|
-
default:
|
|
525
|
+
default: F(() => [Y("div", qo, [Y("span", Jo, [J(r, {
|
|
526
526
|
name: e.icon.name,
|
|
527
527
|
"fill-type": e.icon.fillType,
|
|
528
528
|
size: "medium"
|
|
529
|
-
}, null, 8, ["name", "fill-type"]), Y("span", { textContent:
|
|
529
|
+
}, null, 8, ["name", "fill-type"]), Y("span", { textContent: G(e.label) }, null, 8, Yo)]), R(b) === e.name ? (Z(), H(r, {
|
|
530
530
|
key: 0,
|
|
531
531
|
name: "check",
|
|
532
532
|
size: "medium",
|
|
533
533
|
class: "ml-1"
|
|
534
|
-
})) :
|
|
534
|
+
})) : K("", !0)])]),
|
|
535
535
|
_: 2
|
|
536
536
|
}, 1032, [
|
|
537
537
|
"appearance",
|
|
@@ -543,23 +543,23 @@ var Go = /* @__PURE__ */ z(Uo, [["render", Wo]]), Ko = { class: "flex items-cent
|
|
|
543
543
|
_: 1
|
|
544
544
|
})]),
|
|
545
545
|
_: 1
|
|
546
|
-
}, 8, ["title"])], 64)) :
|
|
547
|
-
|
|
546
|
+
}, 8, ["title"])], 64)) : K("", !0),
|
|
547
|
+
L((Z(), H(a, {
|
|
548
548
|
id: "files-view-options-btn",
|
|
549
549
|
key: "files-view-options-btn",
|
|
550
550
|
"data-testid": "files-view-options-btn",
|
|
551
|
-
"aria-label":
|
|
551
|
+
"aria-label": R(i)("Display customization options of the files list"),
|
|
552
552
|
appearance: "raw",
|
|
553
553
|
class: "my-2 mx-1 p-1 align-middle"
|
|
554
554
|
}, {
|
|
555
|
-
default:
|
|
555
|
+
default: F(() => [J(r, {
|
|
556
556
|
name: "settings-3",
|
|
557
557
|
"fill-type": "line"
|
|
558
558
|
})]),
|
|
559
559
|
_: 1
|
|
560
|
-
}, 8, ["aria-label"])), [[u,
|
|
561
|
-
|
|
562
|
-
title:
|
|
560
|
+
}, 8, ["aria-label"])), [[u, R(i)("Display customization options of the files list")]]),
|
|
561
|
+
J(s, {
|
|
562
|
+
title: R(i)("View options"),
|
|
563
563
|
"drop-id": "files-view-options-drop",
|
|
564
564
|
toggle: "#files-view-options-btn",
|
|
565
565
|
mode: "click",
|
|
@@ -567,25 +567,25 @@ var Go = /* @__PURE__ */ z(Uo, [["render", Wo]]), Ko = { class: "flex items-cent
|
|
|
567
567
|
"padding-size": "medium",
|
|
568
568
|
"is-menu": !1
|
|
569
569
|
}, {
|
|
570
|
-
default:
|
|
571
|
-
default:
|
|
572
|
-
e.hasHiddenFiles ? (Z(), X("li", Xo, [
|
|
570
|
+
default: F(() => [J(o, null, {
|
|
571
|
+
default: F(() => [
|
|
572
|
+
e.hasHiddenFiles ? (Z(), X("li", Xo, [J(c, {
|
|
573
573
|
checked: T.value,
|
|
574
574
|
"onUpdate:checked": [n[0] ||= (e) => T.value = e, O],
|
|
575
575
|
"data-testid": "files-switch-hidden-files",
|
|
576
|
-
label:
|
|
577
|
-
}, null, 8, ["checked", "label"])])) :
|
|
578
|
-
e.hasFileExtensions ? (Z(), X("li", Zo, [
|
|
576
|
+
label: R(i)("Show hidden files")
|
|
577
|
+
}, null, 8, ["checked", "label"])])) : K("", !0),
|
|
578
|
+
e.hasFileExtensions ? (Z(), X("li", Zo, [J(c, {
|
|
579
579
|
checked: te.value,
|
|
580
580
|
"onUpdate:checked": [n[1] ||= (e) => te.value = e, k],
|
|
581
581
|
"data-testid": "files-switch-files-extensions-files",
|
|
582
|
-
label:
|
|
583
|
-
}, null, 8, ["checked", "label"])])) :
|
|
584
|
-
e.hasPagination ? (Z(), X("li", Qo, [m.value ?
|
|
582
|
+
label: R(i)("Show file extensions")
|
|
583
|
+
}, null, 8, ["checked", "label"])])) : K("", !0),
|
|
584
|
+
e.hasPagination ? (Z(), X("li", Qo, [m.value ? K("", !0) : (Z(), H(l, {
|
|
585
585
|
key: 0,
|
|
586
|
-
selected:
|
|
586
|
+
selected: R(Le)(R(y)),
|
|
587
587
|
"data-testid": "files-pagination-size",
|
|
588
|
-
label:
|
|
588
|
+
label: R(i)("Items per page"),
|
|
589
589
|
options: e.paginationOptions,
|
|
590
590
|
class: "files-pagination-size",
|
|
591
591
|
onChange: C
|
|
@@ -593,31 +593,31 @@ var Go = /* @__PURE__ */ z(Uo, [["render", Wo]]), Ko = { class: "flex items-cent
|
|
|
593
593
|
"selected",
|
|
594
594
|
"label",
|
|
595
595
|
"options"
|
|
596
|
-
]))])) :
|
|
597
|
-
|
|
596
|
+
]))])) : K("", !0),
|
|
597
|
+
R(h) ? (Z(), X("li", $o, [J(c, {
|
|
598
598
|
checked: E.value,
|
|
599
599
|
"onUpdate:checked": [n[2] ||= (e) => E.value = e, A],
|
|
600
600
|
"data-testid": "files-switch-projects-show-disabled",
|
|
601
|
-
label:
|
|
602
|
-
}, null, 8, ["checked", "label"])])) :
|
|
603
|
-
|
|
601
|
+
label: R(i)("Show disabled Spaces")
|
|
602
|
+
}, null, 8, ["checked", "label"])])) : K("", !0),
|
|
603
|
+
R(g) ? (Z(), X("li", es, [J(c, {
|
|
604
604
|
checked: D.value,
|
|
605
605
|
"onUpdate:checked": [n[3] ||= (e) => D.value = e, ne],
|
|
606
606
|
"data-testid": "files-switch-projects-show-disabled",
|
|
607
|
-
label:
|
|
608
|
-
}, null, 8, ["checked", "label"])])) :
|
|
609
|
-
|
|
607
|
+
label: R(i)("Show empty trash bins")
|
|
608
|
+
}, null, 8, ["checked", "label"])])) : K("", !0),
|
|
609
|
+
R(b) === R(ma).name.tiles ? (Z(), X("li", ts, [Y("label", {
|
|
610
610
|
for: "tiles-size-slider",
|
|
611
|
-
textContent:
|
|
612
|
-
}, null, 8, ns),
|
|
611
|
+
textContent: G(R(i)("Tile size"))
|
|
612
|
+
}, null, 8, ns), L(Y("input", {
|
|
613
613
|
id: "tiles-size-slider",
|
|
614
614
|
"onUpdate:modelValue": n[4] ||= (e) => Ga(S) ? S.value = e : null,
|
|
615
615
|
type: "range",
|
|
616
616
|
min: 1,
|
|
617
|
-
max:
|
|
617
|
+
max: R(w),
|
|
618
618
|
class: "oc-range bg-role-surface-container-high rounded-sm outline-0 w-full max-w-[50%] h-1.5 hover:opacity-100 appearance-none",
|
|
619
619
|
"data-testid": "files-tiles-size-slider"
|
|
620
|
-
}, null, 8, rs), [[aa,
|
|
620
|
+
}, null, 8, rs), [[aa, R(S)]])])) : K("", !0)
|
|
621
621
|
]),
|
|
622
622
|
_: 1
|
|
623
623
|
})]),
|
|
@@ -626,70 +626,12 @@ var Go = /* @__PURE__ */ z(Uo, [["render", Wo]]), Ko = { class: "flex items-cent
|
|
|
626
626
|
]);
|
|
627
627
|
};
|
|
628
628
|
}
|
|
629
|
-
}), [["__scopeId", "data-v-c5e89ed1"]]), as = {
|
|
630
|
-
key: 0,
|
|
631
|
-
id: "mobile-nav"
|
|
632
|
-
}, os = ["aria-current"], ss = { class: "flex" }, cs = ["textContent"], ls = { class: "versions flex flex-col items-center justify-center py-2 mt-4 bg-role-surface-container text-xs text-role-on-surface-variant" }, us = ["textContent"], ds = /* @__PURE__ */ H({
|
|
633
|
-
__name: "MobileNav",
|
|
634
|
-
setup(e) {
|
|
635
|
-
let t = yi(), { isMobile: n } = $i(), { navItems: r } = te(), i = K(() => Ze({ capabilityStore: t })), a = K(() => L(r).find((e) => e.active) || L(r)[0]);
|
|
636
|
-
return (e, t) => {
|
|
637
|
-
let o = F("oc-icon"), s = F("oc-button"), c = F("oc-list"), l = F("version-check"), u = F("oc-drop");
|
|
638
|
-
return L(n) ? (Z(), X("nav", as, [q(s, {
|
|
639
|
-
id: "mobile-nav-button",
|
|
640
|
-
class: "p-1",
|
|
641
|
-
appearance: "raw",
|
|
642
|
-
"aria-current": "page"
|
|
643
|
-
}, {
|
|
644
|
-
default: P(() => [wr(W(a.value.name) + " ", 1), q(o, { name: "arrow-drop-down" })]),
|
|
645
|
-
_: 1
|
|
646
|
-
}), q(u, {
|
|
647
|
-
title: e.$gettext("Navigation"),
|
|
648
|
-
"drop-id": "mobile-nav-drop",
|
|
649
|
-
toggle: "#mobile-nav-button",
|
|
650
|
-
mode: "click",
|
|
651
|
-
"padding-size": "small",
|
|
652
|
-
"close-on-click": ""
|
|
653
|
-
}, {
|
|
654
|
-
default: P(() => [q(c, null, {
|
|
655
|
-
default: P(() => [(Z(!0), X(U, null, M(L(r), (e, t) => (Z(), X("li", {
|
|
656
|
-
key: t,
|
|
657
|
-
class: "mobile-nav-item w-full",
|
|
658
|
-
"aria-current": e.active ? "page" : null
|
|
659
|
-
}, [q(s, {
|
|
660
|
-
type: "router-link",
|
|
661
|
-
appearance: e.active ? "filled" : "raw-inverse",
|
|
662
|
-
"color-role": e.active ? "secondaryContainer" : "surface",
|
|
663
|
-
"justify-content": "left",
|
|
664
|
-
"no-hover": e.active,
|
|
665
|
-
to: e.route,
|
|
666
|
-
class: B(["block p-2", { "router-link-active": e.active }])
|
|
667
|
-
}, {
|
|
668
|
-
default: P(() => [Y("span", ss, [q(o, { name: e.icon }, null, 8, ["name"]), Y("span", {
|
|
669
|
-
class: "ml-4 text",
|
|
670
|
-
textContent: W(e.name)
|
|
671
|
-
}, null, 8, cs)])]),
|
|
672
|
-
_: 2
|
|
673
|
-
}, 1032, [
|
|
674
|
-
"appearance",
|
|
675
|
-
"color-role",
|
|
676
|
-
"no-hover",
|
|
677
|
-
"to",
|
|
678
|
-
"class"
|
|
679
|
-
])], 8, os))), 128))]),
|
|
680
|
-
_: 1
|
|
681
|
-
}), Y("div", ls, [Y("div", { textContent: W(i.value) }, null, 8, us), q(l)])]),
|
|
682
|
-
_: 1
|
|
683
|
-
}, 8, ["title"])])) : G("", !0);
|
|
684
|
-
};
|
|
685
|
-
}
|
|
686
|
-
}), fs = H({
|
|
629
|
+
}), [["__scopeId", "data-v-c5e89ed1"]]), as = U({
|
|
687
630
|
name: "AppBar",
|
|
688
631
|
components: {
|
|
689
632
|
BatchActions: No,
|
|
690
633
|
ContextActions: Go,
|
|
691
|
-
ViewOptions: is
|
|
692
|
-
MobileNav: ds
|
|
634
|
+
ViewOptions: is
|
|
693
635
|
},
|
|
694
636
|
props: {
|
|
695
637
|
viewModeDefault: {
|
|
@@ -744,48 +686,48 @@ var Go = /* @__PURE__ */ z(Uo, [["render", Wo]]), Ko = { class: "flex items-cent
|
|
|
744
686
|
}
|
|
745
687
|
},
|
|
746
688
|
setup(e, { emit: t }) {
|
|
747
|
-
let n =
|
|
689
|
+
let n = hi(), { $gettext: r } = Q(), { can: i } = gr(), a = ji(), { requestExtensions: o } = ut(), { isSticky: s } = ft(), { isSideBarOpen: c } = $(Oi()), l = dr(), { selectedResources: u } = $(l), d = q(() => e.space), { actions: p } = _t(), { actions: m } = qn(), { actions: h } = _a(), { actions: g } = Sn(), { actions: _ } = wt(), { actions: v } = pe(), { actions: y } = it(), { actions: b } = f(), { actions: x } = oe(), { actions: S } = Rr(), { actions: C } = ne(), { actions: ee } = On(), { actions: w } = _n(), { actions: T } = me(), { actions: te } = rn(), E = z(0), D = jn($e, "files-common-search"), O = q(() => Object.hasOwn(St(), "navigation") && i("create-all", "Share")), k = q(() => {
|
|
748
690
|
let e = [
|
|
749
|
-
...
|
|
750
|
-
...
|
|
751
|
-
...
|
|
752
|
-
...
|
|
753
|
-
...
|
|
754
|
-
...
|
|
755
|
-
...
|
|
756
|
-
...
|
|
757
|
-
...
|
|
758
|
-
...
|
|
691
|
+
...R(m),
|
|
692
|
+
...R(p),
|
|
693
|
+
...R(_),
|
|
694
|
+
...R(y),
|
|
695
|
+
...R(b),
|
|
696
|
+
...R(x),
|
|
697
|
+
...R(h),
|
|
698
|
+
...R(v),
|
|
699
|
+
...R(S),
|
|
700
|
+
...R(C)
|
|
759
701
|
];
|
|
760
702
|
D.value || (e = [
|
|
761
703
|
...e,
|
|
762
|
-
...
|
|
763
|
-
...
|
|
764
|
-
...
|
|
765
|
-
...
|
|
766
|
-
...
|
|
704
|
+
...R(g),
|
|
705
|
+
...R(T),
|
|
706
|
+
...R(te),
|
|
707
|
+
...R(ee),
|
|
708
|
+
...R(w)
|
|
767
709
|
]);
|
|
768
710
|
let t = o({
|
|
769
711
|
id: "global.files.batch-actions",
|
|
770
712
|
extensionType: "action"
|
|
771
713
|
});
|
|
772
714
|
return t.length && (e = [...e, ...t.map((e) => e.action)]), e.filter((e) => e.isVisible({
|
|
773
|
-
space:
|
|
715
|
+
space: R(d),
|
|
774
716
|
resources: l.selectedResources
|
|
775
717
|
}));
|
|
776
|
-
}), A =
|
|
777
|
-
t(
|
|
778
|
-
},
|
|
718
|
+
}), A = q(() => n.spaces.filter((e) => oo(e) || so(e))), re = jn(ha, "files-trash-generic"), j = q(() => R(re) && R(A).length === 1 ? !1 : e.breadcrumbs.length), ie = q(() => R(re) && R(A).length === 1 ? e.breadcrumbs.length <= 2 : e.breadcrumbs.length <= 1), ae = q(() => R(d) && (so(R(d)) || uo(R(d))) ? 3 : 2), M = (e) => {
|
|
719
|
+
t(vn, e);
|
|
720
|
+
}, N = oa("title");
|
|
779
721
|
return {
|
|
780
722
|
router: a,
|
|
781
723
|
hasSharesNavigation: O,
|
|
782
724
|
batchActions: k,
|
|
783
|
-
showBreadcrumb:
|
|
784
|
-
showMobileNav:
|
|
725
|
+
showBreadcrumb: j,
|
|
726
|
+
showMobileNav: ie,
|
|
785
727
|
breadcrumbMaxWidth: E,
|
|
786
|
-
breadcrumbTruncationOffset:
|
|
787
|
-
fileDroppedBreadcrumb:
|
|
788
|
-
pageTitle:
|
|
728
|
+
breadcrumbTruncationOffset: ae,
|
|
729
|
+
fileDroppedBreadcrumb: M,
|
|
730
|
+
pageTitle: q(() => R(N) ? r(R(N)) : R(d)?.name || ""),
|
|
789
731
|
selectedResources: u,
|
|
790
732
|
isSticky: s,
|
|
791
733
|
isSideBarOpen: c
|
|
@@ -799,7 +741,7 @@ var Go = /* @__PURE__ */ z(Uo, [["render", Wo]]), Ko = { class: "flex items-cent
|
|
|
799
741
|
},
|
|
800
742
|
computed: {
|
|
801
743
|
showContextActions() {
|
|
802
|
-
return
|
|
744
|
+
return mn(this.breadcrumbs).allowContextActions;
|
|
803
745
|
},
|
|
804
746
|
showBatchActions() {
|
|
805
747
|
return this.hasBulkActions && (this.selectedResources.length >= 1 || ha(this.router, "files-trash-generic"));
|
|
@@ -818,75 +760,71 @@ var Go = /* @__PURE__ */ z(Uo, [["render", Wo]]), Ko = { class: "flex items-cent
|
|
|
818
760
|
let e = document.getElementById("web-content-main")?.getBoundingClientRect().width || 0, t = document.getElementById("web-nav-sidebar")?.getBoundingClientRect().width || 0, n = document.getElementById("app-sidebar")?.getBoundingClientRect().width || 0, r = document.getElementById("files-app-bar-controls-right")?.clientWidth;
|
|
819
761
|
this.breadcrumbMaxWidth = e - t - n - r, this.limitedScreenSpace = this.isSideBarOpen ? window.innerWidth <= 1280 : window.innerWidth <= 1e3;
|
|
820
762
|
} }
|
|
821
|
-
}),
|
|
822
|
-
key:
|
|
763
|
+
}), os = { class: "files-topbar py-1 w-full" }, ss = ["textContent"], cs = {
|
|
764
|
+
key: 1,
|
|
823
765
|
id: "files-app-bar-controls-right",
|
|
824
766
|
class: "flex"
|
|
825
|
-
},
|
|
826
|
-
function
|
|
827
|
-
let o =
|
|
767
|
+
}, ls = { class: "files-app-bar-actions flex items-center justify-end mt-1 min-h-10 gap-2" }, us = { class: "flex-1 flex justify-start items-center" }, ds = { key: 1 };
|
|
768
|
+
function fs(e, t, n, r, i, a) {
|
|
769
|
+
let o = I("oc-hidden-announcer"), s = I("context-actions"), c = I("oc-breadcrumb"), l = I("view-options"), u = I("batch-actions"), d = I("oc-spinner");
|
|
828
770
|
return Z(), X("div", {
|
|
829
771
|
id: "files-app-bar",
|
|
830
772
|
ref: "filesAppBar",
|
|
831
|
-
class:
|
|
773
|
+
class: V(["px-4 bg-role-surface rounded-t-xl [display:inherit] top-0 z-20", {
|
|
832
774
|
"files-app-bar-squashed": e.isSideBarOpen,
|
|
833
775
|
sticky: e.isSticky
|
|
834
776
|
}])
|
|
835
|
-
}, [Y("div",
|
|
777
|
+
}, [Y("div", os, [
|
|
836
778
|
Y("h1", {
|
|
837
779
|
class: "sr-only",
|
|
838
|
-
textContent:
|
|
839
|
-
}, null, 8,
|
|
840
|
-
|
|
780
|
+
textContent: G(e.pageTitle)
|
|
781
|
+
}, null, 8, ss),
|
|
782
|
+
J(o, {
|
|
841
783
|
announcement: e.selectedResourcesAnnouncement,
|
|
842
784
|
level: "polite"
|
|
843
785
|
}, null, 8, ["announcement"]),
|
|
844
|
-
Y("div", { class:
|
|
845
|
-
"justify-between": e.
|
|
846
|
-
"justify-end": !e.
|
|
847
|
-
}]) }, [
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
])])) : G("", !0)
|
|
887
|
-
], 2),
|
|
888
|
-
e.hasSharesNavigation ? k(e.$slots, "navigation", { key: 0 }) : G("", !0),
|
|
889
|
-
Y("div", gs, [Y("div", _s, [k(e.$slots, "actions", { limitedScreenSpace: e.limitedScreenSpace }), e.showBatchActions && !e.batchActionsLoading ? (Z(), V(d, {
|
|
786
|
+
Y("div", { class: V(["flex items-center files-app-bar-controls min-h-12", {
|
|
787
|
+
"justify-between": e.showBreadcrumb || e.hasSharesNavigation,
|
|
788
|
+
"justify-end": !e.showBreadcrumb && !e.hasSharesNavigation
|
|
789
|
+
}]) }, [e.showBreadcrumb ? (Z(), H(c, {
|
|
790
|
+
key: 0,
|
|
791
|
+
id: "files-breadcrumb",
|
|
792
|
+
"context-menu-padding": "small",
|
|
793
|
+
"show-context-actions": e.showContextActions,
|
|
794
|
+
items: e.breadcrumbs,
|
|
795
|
+
"max-width": e.breadcrumbMaxWidth,
|
|
796
|
+
"truncation-offset": e.breadcrumbTruncationOffset,
|
|
797
|
+
"mobile-breakpoint": e.isSideBarOpen ? "md" : "sm",
|
|
798
|
+
onItemDroppedBreadcrumb: e.fileDroppedBreadcrumb
|
|
799
|
+
}, {
|
|
800
|
+
contextMenu: F(() => [J(s, { "action-options": {
|
|
801
|
+
space: e.space,
|
|
802
|
+
resources: e.breadcrumbsContextActionsItems.filter(Boolean)
|
|
803
|
+
} }, null, 8, ["action-options"])]),
|
|
804
|
+
_: 1
|
|
805
|
+
}, 8, [
|
|
806
|
+
"show-context-actions",
|
|
807
|
+
"items",
|
|
808
|
+
"max-width",
|
|
809
|
+
"truncation-offset",
|
|
810
|
+
"mobile-breakpoint",
|
|
811
|
+
"onItemDroppedBreadcrumb"
|
|
812
|
+
])) : K("", !0), e.hasViewOptions ? (Z(), X("div", cs, [J(l, {
|
|
813
|
+
"view-modes": e.viewModes,
|
|
814
|
+
"has-hidden-files": e.hasHiddenFiles,
|
|
815
|
+
"has-file-extensions": e.hasFileExtensions,
|
|
816
|
+
"has-pagination": e.hasPagination,
|
|
817
|
+
"per-page-storage-prefix": "files",
|
|
818
|
+
"view-mode-default": e.viewModeDefault
|
|
819
|
+
}, null, 8, [
|
|
820
|
+
"view-modes",
|
|
821
|
+
"has-hidden-files",
|
|
822
|
+
"has-file-extensions",
|
|
823
|
+
"has-pagination",
|
|
824
|
+
"view-mode-default"
|
|
825
|
+
])])) : K("", !0)], 2),
|
|
826
|
+
e.hasSharesNavigation ? k(e.$slots, "navigation", { key: 0 }) : K("", !0),
|
|
827
|
+
Y("div", ls, [Y("div", us, [k(e.$slots, "actions", { limitedScreenSpace: e.limitedScreenSpace }), e.showBatchActions && !e.batchActionsLoading ? (Z(), H(u, {
|
|
890
828
|
key: 0,
|
|
891
829
|
actions: e.batchActions,
|
|
892
830
|
"action-options": {
|
|
@@ -898,15 +836,15 @@ function ys(e, t, n, r, i, a) {
|
|
|
898
836
|
"actions",
|
|
899
837
|
"action-options",
|
|
900
838
|
"limited-screen-space"
|
|
901
|
-
])) : e.showBatchActions && e.batchActionsLoading ? (Z(), X("div",
|
|
839
|
+
])) : e.showBatchActions && e.batchActionsLoading ? (Z(), X("div", ds, [J(d, { "aria-label": e.$gettext("Loading actions") }, null, 8, ["aria-label"])])) : K("", !0)])]),
|
|
902
840
|
k(e.$slots, "content")
|
|
903
841
|
])], 2);
|
|
904
842
|
}
|
|
905
|
-
var
|
|
843
|
+
var ps = /* @__PURE__ */ B(as, [["render", fs]]), ms = { class: "oc-app-top-bar self-center flex col-[1/4] row-2 sm:col-2 sm:row-1 [&_.parent-folder]:text-role-on-chrome" }, hs = { class: "pl-4 pr-1 my-2 mx-auto sm:m-0 inline-flex items-center justify-between bg-role-chrome border border-role-on-chrome rounded-lg h-10 gap-4 w-full sm:w-fit" }, gs = { class: "open-file-bar flex" }, _s = { class: "flex" }, vs = {
|
|
906
844
|
key: 1,
|
|
907
845
|
class: "flex items-center",
|
|
908
846
|
"data-testid": "autosave-indicator"
|
|
909
|
-
},
|
|
847
|
+
}, ys = /* @__PURE__ */ U({
|
|
910
848
|
__name: "AppTopBar",
|
|
911
849
|
props: {
|
|
912
850
|
dropDownMenuSections: { default: () => [] },
|
|
@@ -931,20 +869,21 @@ var bs = /* @__PURE__ */ z(fs, [["render", ys]]), xs = { class: "oc-app-top-bar
|
|
|
931
869
|
},
|
|
932
870
|
emits: ["close"],
|
|
933
871
|
setup(e) {
|
|
934
|
-
let { $gettext: t, current: n } = Q(), r =
|
|
872
|
+
let { $gettext: t, current: n } = Q(), r = dr(), i = Hn(), { getMatchingSpace: a } = O(), { getParentFolderName: o, getPathPrefix: s, getParentFolderLinkIconAdditionalAttributes: c } = Ba(), l = q(() => r.areFileExtensionsShown), u = q(() => t("Show context menu")), d = q(() => e.isEditor && e.hasAutoSave && i.options.editor.autosaveEnabled), f = q(() => t("Autosave (every %{ duration })", { duration: vo.fromObject({ seconds: i.options.editor.autosaveInterval }, { locale: n }).toHuman() })), p = q(() => a(e.resource)), m = q(() => !co(R(p)));
|
|
935
873
|
return (n, r) => {
|
|
936
|
-
let i =
|
|
937
|
-
return Z(), X("div",
|
|
874
|
+
let i = I("oc-icon"), a = I("oc-button"), p = I("oc-drop"), h = ti("oc-tooltip");
|
|
875
|
+
return Z(), X("div", ms, [Y("div", hs, [Y("div", gs, [e.resource ? (Z(), H(y, {
|
|
938
876
|
key: 0,
|
|
939
877
|
id: "app-top-bar-resource",
|
|
940
878
|
class: "[&_.oc-resource-name]:max-w-60 xs:[&_.oc-resource-name]:max-w-full sm:[&_.oc-resource-name]:max-w-20 md:[&_.oc-resource-name]:max-w-60 [&_svg]:!fill-role-on-chrome [&_span]:text-role-on-chrome",
|
|
941
879
|
"is-thumbnail-displayed": !1,
|
|
942
880
|
"is-extension-displayed": l.value,
|
|
943
|
-
"path-prefix":
|
|
881
|
+
"path-prefix": R(s)(e.resource),
|
|
944
882
|
resource: e.resource,
|
|
945
|
-
"parent-folder-name":
|
|
946
|
-
"parent-folder-link-icon-additional-attributes":
|
|
883
|
+
"parent-folder-name": R(o)(e.resource),
|
|
884
|
+
"parent-folder-link-icon-additional-attributes": R(c)(e.resource),
|
|
947
885
|
"is-path-displayed": m.value,
|
|
886
|
+
"is-favorite-displayed": !1,
|
|
948
887
|
"is-resource-clickable": !1
|
|
949
888
|
}, null, 8, [
|
|
950
889
|
"is-extension-displayed",
|
|
@@ -953,38 +892,38 @@ var bs = /* @__PURE__ */ z(fs, [["render", ys]]), xs = { class: "oc-app-top-bar
|
|
|
953
892
|
"parent-folder-name",
|
|
954
893
|
"parent-folder-link-icon-additional-attributes",
|
|
955
894
|
"is-path-displayed"
|
|
956
|
-
])) :
|
|
957
|
-
e.dropDownMenuSections.length ? (Z(), X(
|
|
895
|
+
])) : K("", !0)]), Y("div", _s, [
|
|
896
|
+
e.dropDownMenuSections.length ? (Z(), X(W, { key: 0 }, [L((Z(), H(a, {
|
|
958
897
|
id: "oc-openfile-contextmenu-trigger",
|
|
959
898
|
"aria-label": u.value,
|
|
960
899
|
appearance: "raw-inverse",
|
|
961
900
|
"color-role": "chrome",
|
|
962
901
|
class: "p-1"
|
|
963
902
|
}, {
|
|
964
|
-
default:
|
|
903
|
+
default: F(() => [J(i, { name: "more-2" })]),
|
|
965
904
|
_: 1
|
|
966
|
-
}, 8, ["aria-label"])), [[h, u.value]]),
|
|
905
|
+
}, 8, ["aria-label"])), [[h, u.value]]), J(p, {
|
|
967
906
|
"drop-id": "oc-openfile-contextmenu",
|
|
968
907
|
mode: "click",
|
|
969
908
|
"padding-size": "small",
|
|
970
909
|
toggle: "#oc-openfile-contextmenu-trigger",
|
|
971
910
|
"close-on-click": "",
|
|
972
911
|
title: e.resource.name,
|
|
973
|
-
onClick: r[0] ||=
|
|
912
|
+
onClick: r[0] ||= Ki(() => {}, ["stop", "prevent"])
|
|
974
913
|
}, {
|
|
975
|
-
default:
|
|
914
|
+
default: F(() => [J(Ho, {
|
|
976
915
|
"menu-sections": e.dropDownMenuSections,
|
|
977
916
|
"action-options": e.dropDownActionOptions
|
|
978
917
|
}, null, 8, ["menu-sections", "action-options"])]),
|
|
979
918
|
_: 1
|
|
980
|
-
}, 8, ["title"])], 64)) :
|
|
981
|
-
d.value && !e.isReadOnly ? (Z(), X("span",
|
|
919
|
+
}, 8, ["title"])], 64)) : K("", !0),
|
|
920
|
+
d.value && !e.isReadOnly ? (Z(), X("span", vs, [L(J(i, {
|
|
982
921
|
"accessible-label": f.value,
|
|
983
922
|
name: "refresh",
|
|
984
|
-
color: "
|
|
923
|
+
color: "var(--oc-role-on-chrome)",
|
|
985
924
|
class: "ox-p-xs mx-1"
|
|
986
|
-
}, null, 8, ["accessible-label"]), [[h, f.value]])])) :
|
|
987
|
-
e.mainActions.length && e.resource ? (Z(),
|
|
925
|
+
}, null, 8, ["accessible-label"]), [[h, f.value]])])) : K("", !0),
|
|
926
|
+
e.mainActions.length && e.resource ? (Z(), H(Ho, {
|
|
988
927
|
key: 2,
|
|
989
928
|
"menu-sections": [{
|
|
990
929
|
name: "main-actions",
|
|
@@ -997,60 +936,60 @@ var bs = /* @__PURE__ */ z(fs, [["render", ys]]), xs = { class: "oc-app-top-bar
|
|
|
997
936
|
"action-options": { resources: [e.resource] },
|
|
998
937
|
appearance: "raw-inverse",
|
|
999
938
|
"color-role": "chrome"
|
|
1000
|
-
}, null, 8, ["menu-sections", "action-options"])) :
|
|
1001
|
-
|
|
939
|
+
}, null, 8, ["menu-sections", "action-options"])) : K("", !0),
|
|
940
|
+
J(a, {
|
|
1002
941
|
id: "app-top-bar-close",
|
|
1003
942
|
appearance: "raw-inverse",
|
|
1004
943
|
"color-role": "chrome",
|
|
1005
944
|
class: "p-1",
|
|
1006
|
-
"aria-label":
|
|
945
|
+
"aria-label": R(t)("Close"),
|
|
1007
946
|
onClick: r[1] ||= (e) => n.$emit("close")
|
|
1008
947
|
}, {
|
|
1009
|
-
default:
|
|
948
|
+
default: F(() => [J(i, { name: "close" })]),
|
|
1010
949
|
_: 1
|
|
1011
950
|
}, 8, ["aria-label"])
|
|
1012
951
|
])])]);
|
|
1013
952
|
};
|
|
1014
953
|
}
|
|
1015
|
-
}),
|
|
954
|
+
}), bs = U({
|
|
1016
955
|
name: "ErrorScreen",
|
|
1017
956
|
props: { message: {
|
|
1018
957
|
default: "",
|
|
1019
958
|
type: String,
|
|
1020
959
|
required: !1
|
|
1021
960
|
} }
|
|
1022
|
-
}),
|
|
961
|
+
}), xs = { class: "text-center flex justify-center items-center h-full" }, Ss = {
|
|
1023
962
|
key: 0,
|
|
1024
963
|
class: "text-xl"
|
|
1025
964
|
};
|
|
1026
|
-
function
|
|
1027
|
-
let o =
|
|
1028
|
-
return Z(), X("div",
|
|
965
|
+
function Cs(e, t, n, r, i, a) {
|
|
966
|
+
let o = I("oc-icon");
|
|
967
|
+
return Z(), X("div", xs, [J(o, {
|
|
1029
968
|
size: "xxlarge",
|
|
1030
969
|
name: "error-warning",
|
|
1031
970
|
"fill-type": "line"
|
|
1032
|
-
}), e.message ? (Z(), X("p",
|
|
971
|
+
}), e.message ? (Z(), X("p", Ss, G(e.message), 1)) : K("", !0)]);
|
|
1033
972
|
}
|
|
1034
|
-
var
|
|
1035
|
-
function
|
|
1036
|
-
let o =
|
|
1037
|
-
return Z(), X("div",
|
|
973
|
+
var ws = /* @__PURE__ */ B(bs, [["render", Cs]]), Ts = U({ name: "LoadingScreen" }), Es = { class: "text-center flex justify-center items-center h-full" }, Ds = ["textContent"];
|
|
974
|
+
function Os(e, t, n, r, i, a) {
|
|
975
|
+
let o = I("oc-spinner");
|
|
976
|
+
return Z(), X("div", Es, [J(o, { size: "xlarge" }), Y("p", {
|
|
1038
977
|
class: "sr-only",
|
|
1039
|
-
textContent:
|
|
1040
|
-
}, null, 8,
|
|
978
|
+
textContent: G(e.$gettext("Loading app"))
|
|
979
|
+
}, null, 8, Ds)]);
|
|
1041
980
|
}
|
|
1042
|
-
var
|
|
981
|
+
var ks = /* @__PURE__ */ B(Ts, [["render", Os]]), As = [
|
|
1043
982
|
"id",
|
|
1044
983
|
"data-testid",
|
|
1045
984
|
"tabindex",
|
|
1046
985
|
"inert"
|
|
1047
|
-
],
|
|
986
|
+
], js = {
|
|
1048
987
|
key: 0,
|
|
1049
|
-
class: "sidebar-panel__header header grid grid-cols-[
|
|
1050
|
-
},
|
|
988
|
+
class: "sidebar-panel__header header grid grid-cols-[1fr_auto] items-center pt-2 px-2 pb-2"
|
|
989
|
+
}, Ms = { class: "sidebar-panel__header-info min-w-0" }, Ns = { class: "flex items-center gap-1 shrink-0" }, Ps = {
|
|
1051
990
|
key: 0,
|
|
1052
991
|
class: "mt-4"
|
|
1053
|
-
},
|
|
992
|
+
}, Fs = /* @__PURE__ */ B(/* @__PURE__ */ U({
|
|
1054
993
|
__name: "SideBarPanels",
|
|
1055
994
|
props: {
|
|
1056
995
|
loading: { type: Boolean },
|
|
@@ -1064,98 +1003,90 @@ var Is = /* @__PURE__ */ z(Ms, [["render", Fs]]), Ls = [
|
|
|
1064
1003
|
"closePanel"
|
|
1065
1004
|
],
|
|
1066
1005
|
setup(e, { emit: t }) {
|
|
1067
|
-
let n = t, { $gettext: r } = Q(), i =
|
|
1006
|
+
let n = t, { $gettext: r } = Q(), i = q(() => e.availablePanels.filter((t) => t.isVisible(e.panelContext) && t.isRoot?.(e.panelContext))), a = q(() => e.availablePanels.filter((t) => t.isVisible(e.panelContext) && !t.isRoot?.(e.panelContext))), o = q(() => R(i).length ? [R(i)[0], ...R(a)] : R(a)), s = q(() => {
|
|
1068
1007
|
let t = e.activePanel?.split("#")[0];
|
|
1069
|
-
return !t || !
|
|
1070
|
-
}), c =
|
|
1008
|
+
return !t || !R(a).map((e) => e.name).includes(t) ? null : t;
|
|
1009
|
+
}), c = q(() => R(s) !== null), l = q(() => R(s) === null), d = z(null), f = (e) => {
|
|
1071
1010
|
d.value = e;
|
|
1072
|
-
}, p =
|
|
1011
|
+
}, p = q(() => R(c) ? R(s) : R(i)[0].name), m = q(() => R(i).length === 1 ? r("Back to %{panel} panel", { panel: R(i)[0].title(e.panelContext) }) : r("Back to main panels")), h = (e) => {
|
|
1073
1012
|
n("selectPanel", e);
|
|
1074
1013
|
}, g = () => {
|
|
1075
1014
|
n("selectPanel", null);
|
|
1076
1015
|
}, _ = () => {
|
|
1077
1016
|
n("close");
|
|
1078
1017
|
}, v = (e) => {
|
|
1079
|
-
f(
|
|
1018
|
+
f(R(p)), h(e);
|
|
1080
1019
|
}, y = () => {
|
|
1081
|
-
f(
|
|
1020
|
+
f(R(p)), g(), n("closePanel");
|
|
1082
1021
|
};
|
|
1083
1022
|
return (t, n) => {
|
|
1084
|
-
let f =
|
|
1085
|
-
return e.loading ? (Z(),
|
|
1023
|
+
let f = I("oc-spinner"), h = I("oc-icon"), g = I("oc-button"), b = ti("oc-tooltip");
|
|
1024
|
+
return e.loading ? (Z(), H(f, {
|
|
1086
1025
|
key: 0,
|
|
1087
|
-
"aria-label":
|
|
1088
|
-
}, null, 8, ["aria-label"])) : (Z(!0), X(
|
|
1026
|
+
"aria-label": R(r)("Loading sidebar content")
|
|
1027
|
+
}, null, 8, ["aria-label"])) : (Z(!0), X(W, { key: 1 }, M(o.value, (n) => (Z(), X("div", {
|
|
1089
1028
|
id: `sidebar-panel-${n.name}`,
|
|
1090
1029
|
key: `panel-${n.name}`,
|
|
1091
1030
|
"data-testid": `sidebar-panel-${n.name}`,
|
|
1092
1031
|
tabindex: p.value === n.name ? -1 : null,
|
|
1093
|
-
class:
|
|
1032
|
+
class: V(["sidebar-panel absolute top-0 grid grid-rows-[auto_1fr] bg-role-surface w-full size-full max-w-full max-h-full motion-reduce:transition-none", {
|
|
1094
1033
|
"is-root-panel transition-[right] duration-[0.4s,0s]": n.isRoot?.(e.panelContext),
|
|
1095
1034
|
"is-active-sub-panel": c.value && s.value === n.name,
|
|
1096
1035
|
"is-active-root-panel transition-[right] duration-[0.4s,0s]": l.value && n.isRoot?.(e.panelContext)
|
|
1097
1036
|
}]),
|
|
1098
1037
|
inert: p.value !== n.name
|
|
1099
|
-
}, [
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
]),
|
|
1149
|
-
_: 2
|
|
1150
|
-
}, 1032, [
|
|
1151
|
-
"id",
|
|
1152
|
-
"data-testid",
|
|
1153
|
-
"onClick"
|
|
1154
|
-
]))), 128))])) : G("", !0)], 2)
|
|
1155
|
-
], 10, Ls))), 128));
|
|
1038
|
+
}, [[p.value, d.value].includes(n.name) ? (Z(), X("div", js, [Y("div", Ms, [n.isRoot?.(e.panelContext) ? k(t.$slots, "rootHeader", { key: 0 }, void 0, !0) : k(t.$slots, "subHeader", { key: 1 }, void 0, !0)]), Y("div", Ns, [n.isRoot?.(e.panelContext) ? K("", !0) : L((Z(), H(g, {
|
|
1039
|
+
key: 0,
|
|
1040
|
+
class: "header__back p-1",
|
|
1041
|
+
appearance: "raw",
|
|
1042
|
+
"aria-label": m.value,
|
|
1043
|
+
onClick: y
|
|
1044
|
+
}, {
|
|
1045
|
+
default: F(() => [J(h, {
|
|
1046
|
+
name: "arrow-left-s",
|
|
1047
|
+
"fill-type": "line"
|
|
1048
|
+
})]),
|
|
1049
|
+
_: 1
|
|
1050
|
+
}, 8, ["aria-label"])), [[b, m.value]]), J(g, {
|
|
1051
|
+
appearance: "raw",
|
|
1052
|
+
class: "header__close p-1",
|
|
1053
|
+
"aria-label": R(r)("Close file sidebar"),
|
|
1054
|
+
onClick: _
|
|
1055
|
+
}, {
|
|
1056
|
+
default: F(() => [J(h, { name: "close" })]),
|
|
1057
|
+
_: 1
|
|
1058
|
+
}, 8, ["aria-label"])])])) : K("", !0), Y("div", { class: V(["sidebar-panel__body flex flex-col px-2 pb-2 pt-0 overflow-y-auto overflow-x-hidden", [`sidebar-panel__body-${n.name}`]]) }, [Y("div", { class: V(["sidebar-panel__body-content", { "flex-1 ": !n.isRoot?.(e.panelContext) }]) }, [k(t.$slots, "body", {}, () => [(Z(!0), X(W, null, M(n.isRoot?.(e.panelContext) ? i.value : [n], (t, n) => (Z(), X("div", { key: `sidebar-panel-${t.name}` }, [(l.value ? t.isRoot?.(e.panelContext) : [p.value, d.value].includes(t.name)) ? (Z(), H(u(t.component), va({
|
|
1059
|
+
key: 0,
|
|
1060
|
+
class: [{ "multi-root-panel-separator mt-4 pt-2 border-t": n > 0 }, "rounded-sm"]
|
|
1061
|
+
}, { ref_for: !0 }, t.componentAttrs?.(e.panelContext) || {}), null, 16, ["class"])) : K("", !0)]))), 128))], !0)], 2), n.isRoot?.(e.panelContext) && a.value.length > 0 ? (Z(), X("div", Ps, [(Z(!0), X(W, null, M(a.value, (t) => (Z(), H(g, {
|
|
1062
|
+
id: `sidebar-panel-${t.name}-select`,
|
|
1063
|
+
key: `panel-select-${t.name}`,
|
|
1064
|
+
"data-testid": `sidebar-panel-${t.name}-select`,
|
|
1065
|
+
appearance: "raw-inverse",
|
|
1066
|
+
"color-role": "surface",
|
|
1067
|
+
class: "!grid !grid-cols-[auto_1fr_auto] text-left px-2 w-full h-12",
|
|
1068
|
+
onClick: (e) => v(t.name)
|
|
1069
|
+
}, {
|
|
1070
|
+
default: F(() => [
|
|
1071
|
+
J(h, {
|
|
1072
|
+
name: t.icon,
|
|
1073
|
+
"fill-type": t.iconFillType
|
|
1074
|
+
}, null, 8, ["name", "fill-type"]),
|
|
1075
|
+
Cr(" " + G(t.title(e.panelContext)) + " ", 1),
|
|
1076
|
+
J(h, {
|
|
1077
|
+
name: "arrow-right-s",
|
|
1078
|
+
"fill-type": "line"
|
|
1079
|
+
})
|
|
1080
|
+
]),
|
|
1081
|
+
_: 2
|
|
1082
|
+
}, 1032, [
|
|
1083
|
+
"id",
|
|
1084
|
+
"data-testid",
|
|
1085
|
+
"onClick"
|
|
1086
|
+
]))), 128))])) : K("", !0)], 2)], 10, As))), 128));
|
|
1156
1087
|
};
|
|
1157
1088
|
}
|
|
1158
|
-
}), [["__scopeId", "data-v-
|
|
1089
|
+
}), [["__scopeId", "data-v-ab6afab6"]]), Is = /* @__PURE__ */ U({
|
|
1159
1090
|
inheritAttrs: !1,
|
|
1160
1091
|
__name: "SideBar",
|
|
1161
1092
|
props: {
|
|
@@ -1165,9 +1096,9 @@ var Is = /* @__PURE__ */ z(Ms, [["render", Fs]]), Ls = [
|
|
|
1165
1096
|
},
|
|
1166
1097
|
emits: ["selectPanel", "close"],
|
|
1167
1098
|
setup(e, { emit: t }) {
|
|
1168
|
-
let n = t, r =
|
|
1169
|
-
if (
|
|
1170
|
-
...
|
|
1099
|
+
let n = t, r = lt(), { isMobile: i } = $i(), a = Oi(), { focusSidebar: o } = a, { sideBarActivePanel: s } = $(a), c = q(() => {
|
|
1100
|
+
if (R(i)) return {
|
|
1101
|
+
...R(r),
|
|
1171
1102
|
isFocusTrapActive: !e.loading,
|
|
1172
1103
|
hasFullHeight: !0,
|
|
1173
1104
|
maxHeight: "max-h-[80vh]",
|
|
@@ -1184,10 +1115,10 @@ var Is = /* @__PURE__ */ z(Ms, [["render", Fs]]), Ls = [
|
|
|
1184
1115
|
"relative",
|
|
1185
1116
|
"focus:shadow-none",
|
|
1186
1117
|
"focus-visible:shadow-none",
|
|
1187
|
-
...
|
|
1118
|
+
...R(r)?.class ? [R(r).class] : []
|
|
1188
1119
|
];
|
|
1189
1120
|
return e.loading && t.push("flex", "justify-center", "items-center"), {
|
|
1190
|
-
...
|
|
1121
|
+
...R(r),
|
|
1191
1122
|
class: t
|
|
1192
1123
|
};
|
|
1193
1124
|
}), l = (e) => {
|
|
@@ -1200,26 +1131,26 @@ var Is = /* @__PURE__ */ z(Ms, [["render", Fs]]), Ls = [
|
|
|
1200
1131
|
a.openSideBarPanel(e), n("selectPanel", e);
|
|
1201
1132
|
};
|
|
1202
1133
|
return ee(() => {
|
|
1203
|
-
|
|
1204
|
-
}), (t, n) => (Z(),
|
|
1134
|
+
R(i) && d();
|
|
1135
|
+
}), (t, n) => (Z(), H(Gn, {
|
|
1205
1136
|
to: "#mobile-right-sidebar",
|
|
1206
|
-
disabled: !
|
|
1207
|
-
}, [(Z(),
|
|
1137
|
+
disabled: !R(i)
|
|
1138
|
+
}, [(Z(), H(u(R(i) ? "oc-bottom-drawer" : "div"), va({
|
|
1208
1139
|
id: "app-sidebar",
|
|
1209
1140
|
tabindex: "-1"
|
|
1210
1141
|
}, c.value), {
|
|
1211
|
-
default:
|
|
1142
|
+
default: F(() => [J(Fs, {
|
|
1212
1143
|
loading: e.loading,
|
|
1213
1144
|
"available-panels": e.availablePanels,
|
|
1214
1145
|
"panel-context": e.panelContext,
|
|
1215
|
-
"active-panel":
|
|
1146
|
+
"active-panel": R(s),
|
|
1216
1147
|
onSelectPanel: f,
|
|
1217
1148
|
onClose: d,
|
|
1218
|
-
onClosePanel:
|
|
1149
|
+
onClosePanel: R(o)
|
|
1219
1150
|
}, {
|
|
1220
|
-
body:
|
|
1221
|
-
rootHeader:
|
|
1222
|
-
subHeader:
|
|
1151
|
+
body: F(() => [k(t.$slots, "body")]),
|
|
1152
|
+
rootHeader: F(() => [k(t.$slots, "rootHeader")]),
|
|
1153
|
+
subHeader: F(() => [k(t.$slots, "subHeader")]),
|
|
1223
1154
|
_: 3
|
|
1224
1155
|
}, 8, [
|
|
1225
1156
|
"loading",
|
|
@@ -1231,72 +1162,74 @@ var Is = /* @__PURE__ */ z(Ms, [["render", Fs]]), Ls = [
|
|
|
1231
1162
|
_: 3
|
|
1232
1163
|
}, 16))], 8, ["disabled"]));
|
|
1233
1164
|
}
|
|
1234
|
-
}),
|
|
1165
|
+
}), Ls = {
|
|
1166
|
+
key: 0,
|
|
1167
|
+
class: "flex items-center min-w-0 ml-2"
|
|
1168
|
+
}, Rs = ["textContent"], zs = /* @__PURE__ */ U({
|
|
1235
1169
|
__name: "SpaceInfo",
|
|
1170
|
+
props: { spaceResource: { default: null } },
|
|
1236
1171
|
setup(e) {
|
|
1237
|
-
let t =
|
|
1238
|
-
return (e,
|
|
1239
|
-
let
|
|
1240
|
-
return Z(), X("div",
|
|
1172
|
+
let t = Rn("resource", null), n = Rn("space", null), r = q(() => e.spaceResource || R(t) || R(n));
|
|
1173
|
+
return (e, t) => {
|
|
1174
|
+
let n = I("oc-icon");
|
|
1175
|
+
return r.value ? (Z(), X("div", Ls, [J(n, {
|
|
1241
1176
|
name: "layout-grid",
|
|
1242
|
-
size:
|
|
1243
|
-
class: "
|
|
1244
|
-
}
|
|
1177
|
+
size: "small",
|
|
1178
|
+
class: "mr-2 shrink-0"
|
|
1179
|
+
}), Y("h2", {
|
|
1245
1180
|
"data-testid": "space-info-name",
|
|
1246
|
-
class: "font-semibold m-0 text-base
|
|
1247
|
-
textContent:
|
|
1248
|
-
}, null, 8,
|
|
1249
|
-
"data-testid": "space-info-subtitle",
|
|
1250
|
-
textContent: W(L(t).description)
|
|
1251
|
-
}, null, 8, Ks)])])]);
|
|
1181
|
+
class: "font-semibold m-0 text-base min-w-0 flex-1 truncate",
|
|
1182
|
+
textContent: G(r.value.name)
|
|
1183
|
+
}, null, 8, Rs)])) : K("", !0);
|
|
1252
1184
|
};
|
|
1253
1185
|
}
|
|
1254
|
-
}),
|
|
1186
|
+
}), Bs = {
|
|
1187
|
+
key: 0,
|
|
1188
|
+
class: "flex justify-between min-w-0 ml-2"
|
|
1189
|
+
}, Vs = { class: "flex items-center min-w-0" }, Hs = { class: "min-w-0" }, Us = {
|
|
1255
1190
|
"data-testid": "files-info-name",
|
|
1256
|
-
class: "font-semibold m-0 text-base
|
|
1257
|
-
},
|
|
1191
|
+
class: "font-semibold m-0 text-base min-w-0"
|
|
1192
|
+
}, Ws = /* @__PURE__ */ U({
|
|
1258
1193
|
__name: "FileInfo",
|
|
1259
|
-
props: { isSubPanelActive: {
|
|
1260
|
-
type: Boolean,
|
|
1261
|
-
default: !0
|
|
1262
|
-
} },
|
|
1194
|
+
props: { isSubPanelActive: { type: Boolean } },
|
|
1263
1195
|
setup(e) {
|
|
1264
|
-
let t =
|
|
1265
|
-
return (
|
|
1266
|
-
|
|
1267
|
-
resource: L(r),
|
|
1196
|
+
let t = dr(), { isPersonalSpaceRoot: n } = O(), r = Rn("resource"), i = Rn("space"), a = q(() => t.areFileExtensionsShown), o = q(() => R(r) ? n(R(r)) && R(i)?.name || R(r).name : "");
|
|
1197
|
+
return (e, t) => R(r) ? (Z(), X("div", Bs, [Y("div", Vs, [J(nn, {
|
|
1198
|
+
resource: R(r),
|
|
1268
1199
|
size: "large",
|
|
1269
|
-
class: "mr-2 relative"
|
|
1270
|
-
}, null, 8, ["resource"])
|
|
1200
|
+
class: "mr-2 relative shrink-0"
|
|
1201
|
+
}, null, 8, ["resource"]), Y("div", Hs, [Y("h2", Us, [J(ln, {
|
|
1271
1202
|
name: o.value,
|
|
1272
|
-
extension:
|
|
1273
|
-
type:
|
|
1274
|
-
"full-path":
|
|
1203
|
+
extension: R(r).extension,
|
|
1204
|
+
type: R(r).type,
|
|
1205
|
+
"full-path": R(r).webDavPath,
|
|
1275
1206
|
"is-extension-displayed": a.value,
|
|
1276
1207
|
"is-path-displayed": !1,
|
|
1277
|
-
"truncate-name": !
|
|
1278
|
-
|
|
1208
|
+
"truncate-name": !0,
|
|
1209
|
+
"is-favorite": R(r).starred,
|
|
1210
|
+
class: "block min-w-0"
|
|
1279
1211
|
}, null, 8, [
|
|
1280
1212
|
"name",
|
|
1281
1213
|
"extension",
|
|
1282
1214
|
"type",
|
|
1283
1215
|
"full-path",
|
|
1284
|
-
"is-extension-displayed"
|
|
1285
|
-
|
|
1216
|
+
"is-extension-displayed",
|
|
1217
|
+
"is-favorite"
|
|
1218
|
+
])])])])])) : K("", !0);
|
|
1286
1219
|
}
|
|
1287
|
-
}),
|
|
1220
|
+
}), Gs = /* @__PURE__ */ U({
|
|
1288
1221
|
__name: "FileSideBar",
|
|
1289
1222
|
props: { space: { default: () => void 0 } },
|
|
1290
1223
|
setup(e) {
|
|
1291
|
-
let t =
|
|
1224
|
+
let t = ji(), n = en(), r = ut(), i = hi(), a = jr(), o = Hn(), s = Xi(), { canListShares: c } = ar(), { canListVersions: l } = Jn(), u = dr(), { currentFolder: d } = $(u), { isSideBarOpen: f, sideBarActivePanel: p } = $(Oi()), m = z(), h = z([]), g = z([]), v = z([]), { selectedResources: y } = wi(), b = z(!1), x = q(() => R(b)), S = q(() => R(y).length === 0 ? {
|
|
1292
1225
|
root: e.space,
|
|
1293
1226
|
parent: null,
|
|
1294
|
-
items:
|
|
1227
|
+
items: R(d)?.id ? [R(d)] : []
|
|
1295
1228
|
} : {
|
|
1296
1229
|
root: e.space,
|
|
1297
|
-
parent:
|
|
1298
|
-
items:
|
|
1299
|
-
}), C =
|
|
1230
|
+
parent: R(d),
|
|
1231
|
+
items: R(y)
|
|
1232
|
+
}), C = jn(Sa, "files-shares-with-me"), ee = jn(Sa, "files-shares-with-others"), w = jn(Sa, "files-shares-via-link"), T = Qr(t, "files-spaces-projects"), te = jn($e, "files-common-favorites"), E = jn($e, "files-common-search"), D = q(() => R(S).items?.length === 1 && !so(R(S).items[0])), O = q(() => R(S).items?.length === 1 && so(R(S).items[0])), k = q(() => R(C) || R(ee) || R(w)), A = q(() => R(k) || R(E) || R(te)), ne = q(() => r.requestExtensions({
|
|
1300
1233
|
id: "global.files.sidebar",
|
|
1301
1234
|
extensionType: "sidebarPanel"
|
|
1302
1235
|
}).map((e) => e.panel)), re = go(function* (e, t) {
|
|
@@ -1319,14 +1252,14 @@ var Is = /* @__PURE__ */ z(Ms, [["render", Fs]]), Ls = [
|
|
|
1319
1252
|
})) || [], s.isAppEnabled("open-cloud-mesh")) {
|
|
1320
1253
|
let { allowedRoles: e } = yield* Qa(f.listPermissions(p, c.fileId, a.graphRoles, {
|
|
1321
1254
|
filter: "@libre.graph.permissions.roles.allowedValues/rolePermissions/any(p:contains(p/condition, '@Subject.UserType==\"Federated\"'))",
|
|
1322
|
-
select: [
|
|
1255
|
+
select: [Lr.LibreGraphPermissionsRolesAllowedValues]
|
|
1323
1256
|
}, { signal: r }));
|
|
1324
1257
|
v.value = e?.map((e) => ({
|
|
1325
1258
|
...e,
|
|
1326
1259
|
icon: b.find((t) => t.id === e.id)?.icon
|
|
1327
1260
|
})) || [];
|
|
1328
1261
|
}
|
|
1329
|
-
!
|
|
1262
|
+
!R(A) && !R(T) && (l.forEach((e) => {
|
|
1330
1263
|
_.some((t) => t.id === e.id) || _.push({
|
|
1331
1264
|
...e,
|
|
1332
1265
|
indirect: !0
|
|
@@ -1336,14 +1269,14 @@ var Is = /* @__PURE__ */ z(Ms, [["render", Fs]]), Ls = [
|
|
|
1336
1269
|
...e,
|
|
1337
1270
|
indirect: !0
|
|
1338
1271
|
});
|
|
1339
|
-
})),
|
|
1340
|
-
folder:
|
|
1272
|
+
})), $e(t, "files-common-search") && (yield u.loadAncestorMetaData({
|
|
1273
|
+
folder: R(c),
|
|
1341
1274
|
space: e.space,
|
|
1342
1275
|
client: n.webdav,
|
|
1343
1276
|
signal: r
|
|
1344
1277
|
}));
|
|
1345
1278
|
let x = [...l, ...d].map(({ resourceId: e }) => e), S = Object.values(u.ancestorMetaData).filter(({ id: t, path: n }) => t === c.id || x.includes(t) || no(c) ? !1 : oo(e.space) ? n !== "/" : !0).map(({ id: e }) => e);
|
|
1346
|
-
|
|
1279
|
+
R(A) && so(e.space) && !so(c) && S.push(e.space.id);
|
|
1347
1280
|
let C = new ho({ concurrency: o.options.concurrentRequests.shares.list }), ee = [...new Set(S)].map((e) => C.add(() => n.graphAuthenticated.permissions.listPermissions(p, e, a.graphRoles, {}, { signal: r }).then((e) => {
|
|
1348
1281
|
let t = e.shares.map((e) => ({
|
|
1349
1282
|
...e,
|
|
@@ -1352,16 +1285,16 @@ var Is = /* @__PURE__ */ z(Ms, [["render", Fs]]), Ls = [
|
|
|
1352
1285
|
_.push(...t.filter(to)), y.push(...t.filter(ro));
|
|
1353
1286
|
})));
|
|
1354
1287
|
yield Promise.allSettled(ee), a.setCollaboratorShares(_), a.setLinkShares(y), a.setLoading(!1);
|
|
1355
|
-
}).restartable(), ie =
|
|
1356
|
-
|
|
1357
|
-
if (
|
|
1358
|
-
if (!
|
|
1288
|
+
}).restartable(), ie = z();
|
|
1289
|
+
P(() => [...R(S).items, f], async (t, n) => {
|
|
1290
|
+
if (R(S).items?.length !== 1) return;
|
|
1291
|
+
if (!R(f)) {
|
|
1359
1292
|
ie.value = void 0, h.value = [];
|
|
1360
1293
|
return;
|
|
1361
1294
|
}
|
|
1362
1295
|
let r = t?.[0], i = n?.[0];
|
|
1363
|
-
if (r?.id === i?.id && r?.mdate ===
|
|
1364
|
-
let a =
|
|
1296
|
+
if (r?.id === i?.id && r?.mdate === R(ie)) return;
|
|
1297
|
+
let a = R(S).items[0];
|
|
1365
1298
|
if (ie.value = a.mdate, re.isRunning && re.cancelAll(), l({
|
|
1366
1299
|
space: e.space,
|
|
1367
1300
|
resource: a
|
|
@@ -1374,14 +1307,14 @@ var Is = /* @__PURE__ */ z(Ms, [["render", Fs]]), Ls = [
|
|
|
1374
1307
|
immediate: !0,
|
|
1375
1308
|
deep: !0
|
|
1376
1309
|
});
|
|
1377
|
-
let ae =
|
|
1378
|
-
return
|
|
1379
|
-
if (!
|
|
1310
|
+
let ae = q(() => R(S).items.map((e) => e.id));
|
|
1311
|
+
return P(() => [ae, f], async () => {
|
|
1312
|
+
if (!R(f) || !R(S).items?.length) {
|
|
1380
1313
|
a.pruneShares(), m.value = null;
|
|
1381
1314
|
return;
|
|
1382
1315
|
}
|
|
1383
|
-
if (
|
|
1384
|
-
let t =
|
|
1316
|
+
if (R(S).items?.length !== 1) return;
|
|
1317
|
+
let t = R(S).items[0];
|
|
1385
1318
|
if (b.value = !0, so(t) && await i.loadGraphPermissions({
|
|
1386
1319
|
ids: [t.id],
|
|
1387
1320
|
graphClient: n.graphAuthenticated
|
|
@@ -1411,7 +1344,7 @@ var Is = /* @__PURE__ */ z(Ms, [["render", Fs]]), Ls = [
|
|
|
1411
1344
|
}, {
|
|
1412
1345
|
deep: !0,
|
|
1413
1346
|
immediate: !0
|
|
1414
|
-
}),
|
|
1347
|
+
}), Jt("resource", _(m)), Jt("versions", _(h)), Jt("space", q(() => e.space)), Jt("availableInternalShareRoles", _(g)), Jt("availableExternalShareRoles", _(v)), Jt("versionsLoading", q(() => re.isRunning)), (e, t) => R(f) ? (Z(), H(Is, va({
|
|
1415
1348
|
key: 0,
|
|
1416
1349
|
ref: "sidebar",
|
|
1417
1350
|
class: "files-side-bar z-30",
|
|
@@ -1419,24 +1352,22 @@ var Is = /* @__PURE__ */ z(Ms, [["render", Fs]]), Ls = [
|
|
|
1419
1352
|
"panel-context": S.value,
|
|
1420
1353
|
loading: x.value
|
|
1421
1354
|
}, e.$attrs, { "data-custom-key-bindings-disabled": "true" }), {
|
|
1422
|
-
rootHeader:
|
|
1355
|
+
rootHeader: F(() => [D.value ? (Z(), H(Ws, {
|
|
1423
1356
|
key: 0,
|
|
1424
|
-
class: "px-2 pt-2",
|
|
1425
1357
|
"is-sub-panel-active": !1
|
|
1426
|
-
})) : O.value ? (Z(),
|
|
1427
|
-
subHeader:
|
|
1358
|
+
})) : O.value ? (Z(), H(zs, { key: 1 })) : K("", !0)]),
|
|
1359
|
+
subHeader: F(() => [D.value ? (Z(), H(Ws, {
|
|
1428
1360
|
key: 0,
|
|
1429
|
-
class: "px-2 pt-2",
|
|
1430
1361
|
"is-sub-panel-active": !0
|
|
1431
|
-
})) : O.value ? (Z(),
|
|
1362
|
+
})) : O.value ? (Z(), H(zs, { key: 1 })) : K("", !0)]),
|
|
1432
1363
|
_: 1
|
|
1433
1364
|
}, 16, [
|
|
1434
1365
|
"available-panels",
|
|
1435
1366
|
"panel-context",
|
|
1436
1367
|
"loading"
|
|
1437
|
-
])) :
|
|
1368
|
+
])) : K("", !0);
|
|
1438
1369
|
}
|
|
1439
|
-
}),
|
|
1370
|
+
}), Ks = /* @__PURE__ */ ve(kn(), 1), qs = U({
|
|
1440
1371
|
name: "DatePickerModal",
|
|
1441
1372
|
props: {
|
|
1442
1373
|
modal: {
|
|
@@ -1460,7 +1391,7 @@ var Is = /* @__PURE__ */ z(Ms, [["render", Fs]]), Ls = [
|
|
|
1460
1391
|
},
|
|
1461
1392
|
emits: ["confirm", "cancel"],
|
|
1462
1393
|
setup() {
|
|
1463
|
-
let { currentTheme: e } = $(za()), t =
|
|
1394
|
+
let { currentTheme: e } = $(za()), t = z(), n = z(!0);
|
|
1464
1395
|
return {
|
|
1465
1396
|
confirmDisabled: n,
|
|
1466
1397
|
onDateChanged: ({ date: e, error: r }) => {
|
|
@@ -1470,10 +1401,10 @@ var Is = /* @__PURE__ */ z(Ms, [["render", Fs]]), Ls = [
|
|
|
1470
1401
|
dateTime: t
|
|
1471
1402
|
};
|
|
1472
1403
|
}
|
|
1473
|
-
}),
|
|
1474
|
-
function
|
|
1475
|
-
let o =
|
|
1476
|
-
return Z(), X(
|
|
1404
|
+
}), Js = { class: "flex justify-end items-center mt-2" };
|
|
1405
|
+
function Ys(e, t, n, r, i, a) {
|
|
1406
|
+
let o = I("oc-datepicker"), s = I("oc-button");
|
|
1407
|
+
return Z(), X(W, null, [J(o, {
|
|
1477
1408
|
label: e.$gettext("Expiration date"),
|
|
1478
1409
|
type: "date",
|
|
1479
1410
|
"min-date": e.minDate,
|
|
@@ -1489,17 +1420,17 @@ function nc(e, t, n, r, i, a) {
|
|
|
1489
1420
|
"is-clearable",
|
|
1490
1421
|
"is-dark",
|
|
1491
1422
|
"onDateChanged"
|
|
1492
|
-
]), Y("div",
|
|
1423
|
+
]), Y("div", Js, [J(s, {
|
|
1493
1424
|
disabled: e.confirmDisabled,
|
|
1494
1425
|
class: "oc-modal-body-actions-confirm ml-2",
|
|
1495
1426
|
appearance: "filled",
|
|
1496
1427
|
onClick: t[0] ||= (t) => e.$emit("confirm", e.dateTime)
|
|
1497
1428
|
}, {
|
|
1498
|
-
default:
|
|
1429
|
+
default: F(() => [Cr(G(e.$gettext("Confirm")), 1)]),
|
|
1499
1430
|
_: 1
|
|
1500
1431
|
}, 8, ["disabled"])])], 64);
|
|
1501
1432
|
}
|
|
1502
|
-
var
|
|
1433
|
+
var Xs = /* @__PURE__ */ B(qs, [["render", Ys]]), Zs = U({
|
|
1503
1434
|
name: "UnsavedChangesModal",
|
|
1504
1435
|
props: {
|
|
1505
1436
|
modal: {
|
|
@@ -1518,73 +1449,73 @@ var rc = /* @__PURE__ */ z(ec, [["render", nc]]), ic = H({
|
|
|
1518
1449
|
t(e.modal.id), e.closeCallback();
|
|
1519
1450
|
} };
|
|
1520
1451
|
}
|
|
1521
|
-
}),
|
|
1522
|
-
function
|
|
1523
|
-
let o =
|
|
1524
|
-
return Z(), X(
|
|
1452
|
+
}), Qs = ["textContent"], $s = { class: "flex justify-end items-center mt-4" }, ec = { class: "oc-modal-body-actions-grid" };
|
|
1453
|
+
function tc(e, t, n, r, i, a) {
|
|
1454
|
+
let o = I("oc-button");
|
|
1455
|
+
return Z(), X(W, null, [
|
|
1525
1456
|
Y("span", {
|
|
1526
1457
|
class: "inline-block mb-4",
|
|
1527
|
-
textContent:
|
|
1528
|
-
}, null, 8,
|
|
1458
|
+
textContent: G(e.$gettext("Your changes were not saved. Do you want to save them?"))
|
|
1459
|
+
}, null, 8, Qs),
|
|
1529
1460
|
t[2] ||= Y("div", { class: "my-4" }, null, -1),
|
|
1530
|
-
Y("div",
|
|
1531
|
-
|
|
1461
|
+
Y("div", $s, [Y("div", ec, [
|
|
1462
|
+
J(o, {
|
|
1532
1463
|
class: "oc-modal-body-actions-cancel ml-2",
|
|
1533
1464
|
onClick: t[0] ||= (t) => e.$emit("cancel")
|
|
1534
1465
|
}, {
|
|
1535
|
-
default:
|
|
1466
|
+
default: F(() => [Cr(G(e.$gettext("Cancel")), 1)]),
|
|
1536
1467
|
_: 1
|
|
1537
1468
|
}),
|
|
1538
|
-
|
|
1469
|
+
J(o, {
|
|
1539
1470
|
class: "oc-modal-body-actions-secondary ml-2",
|
|
1540
1471
|
onClick: e.onClose
|
|
1541
1472
|
}, {
|
|
1542
|
-
default:
|
|
1473
|
+
default: F(() => [Cr(G(e.$gettext("Don't Save")), 1)]),
|
|
1543
1474
|
_: 1
|
|
1544
1475
|
}, 8, ["onClick"]),
|
|
1545
|
-
|
|
1476
|
+
J(o, {
|
|
1546
1477
|
class: "oc-modal-body-actions-confirm ml-2",
|
|
1547
1478
|
appearance: "filled",
|
|
1548
1479
|
onClick: t[1] ||= (t) => e.$emit("confirm")
|
|
1549
1480
|
}, {
|
|
1550
|
-
default:
|
|
1481
|
+
default: F(() => [Cr(G(e.$gettext("Save")), 1)]),
|
|
1551
1482
|
_: 1
|
|
1552
1483
|
})
|
|
1553
1484
|
])])
|
|
1554
1485
|
], 64);
|
|
1555
1486
|
}
|
|
1556
|
-
var
|
|
1557
|
-
function
|
|
1558
|
-
for (var t = e.length; t-- &&
|
|
1487
|
+
var nc = /* @__PURE__ */ B(Zs, [["render", tc]]), rc = /\s/;
|
|
1488
|
+
function ic(e) {
|
|
1489
|
+
for (var t = e.length; t-- && rc.test(e.charAt(t)););
|
|
1559
1490
|
return t;
|
|
1560
1491
|
}
|
|
1561
1492
|
//#endregion
|
|
1562
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
1563
|
-
var
|
|
1564
|
-
function
|
|
1565
|
-
return e && e.slice(0,
|
|
1493
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.js
|
|
1494
|
+
var ac = /^\s+/;
|
|
1495
|
+
function oc(e) {
|
|
1496
|
+
return e && e.slice(0, ic(e) + 1).replace(ac, "");
|
|
1566
1497
|
}
|
|
1567
1498
|
//#endregion
|
|
1568
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
1569
|
-
var
|
|
1570
|
-
function
|
|
1499
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js
|
|
1500
|
+
var sc = NaN, cc = /^[-+]0x[0-9a-f]+$/i, lc = /^0b[01]+$/i, uc = /^0o[0-7]+$/i, dc = parseInt;
|
|
1501
|
+
function fc(e) {
|
|
1571
1502
|
if (typeof e == "number") return e;
|
|
1572
|
-
if (ie(e)) return
|
|
1573
|
-
if (
|
|
1503
|
+
if (ie(e)) return sc;
|
|
1504
|
+
if (ce(e)) {
|
|
1574
1505
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
1575
|
-
e =
|
|
1506
|
+
e = ce(t) ? t + "" : t;
|
|
1576
1507
|
}
|
|
1577
1508
|
if (typeof e != "string") return e === 0 ? e : +e;
|
|
1578
|
-
e =
|
|
1579
|
-
var n =
|
|
1580
|
-
return n ||
|
|
1509
|
+
e = oc(e);
|
|
1510
|
+
var n = lc.test(e);
|
|
1511
|
+
return n || uc.test(e) ? dc(e.slice(2), n ? 2 : 8) : cc.test(e) ? sc : +e;
|
|
1581
1512
|
}
|
|
1582
1513
|
//#endregion
|
|
1583
1514
|
//#region src/components/AppTemplates/AppWrapper.vue?vue&type=script&setup=true&lang.ts
|
|
1584
|
-
var
|
|
1515
|
+
var pc = ["id"], mc = ["textContent"], hc = {
|
|
1585
1516
|
key: 2,
|
|
1586
1517
|
class: "flex size-full"
|
|
1587
|
-
},
|
|
1518
|
+
}, gc = "app.app-wrapper.app-top-bar", _c = /* @__PURE__ */ U({
|
|
1588
1519
|
__name: "AppWrapper",
|
|
1589
1520
|
props: {
|
|
1590
1521
|
applicationId: {},
|
|
@@ -1601,76 +1532,76 @@ var bc = ["id"], xc = ["textContent"], Sc = {
|
|
|
1601
1532
|
}
|
|
1602
1533
|
},
|
|
1603
1534
|
setup(e) {
|
|
1604
|
-
let { $gettext: t, current: n } = Q(), i = Xi(), { showMessage: a, showErrorMessage: o } =
|
|
1605
|
-
|
|
1606
|
-
id:
|
|
1535
|
+
let { $gettext: t, current: n } = Q(), i = Xi(), { showMessage: a, showErrorMessage: o } = Me(), s = Co(), c = br(), l = en(), u = qt(), { getResourceContext: d } = Pa(), { selectedResources: p } = wi(), { dispatchModal: m } = Ma(), h = hi(), g = Hn(), _ = dr(), v = jr(), y = je(), { isMobile: b } = $i(), { isSideBarOpen: x } = $(Oi()), { actions: S } = ba({ appId: e.applicationId }), { actions: C } = Sr(), { actions: ee } = f(), { actions: w } = li(), { actions: T } = ki(), { actions: te } = pe(), E = q(() => !!e.wrappedComponent.emits?.includes("update:resource")), O = z(), A = z(), ne = z(""), re = z(""), j = z(!R(E)), ie = z(), ae = z(!1), M = z(), N = z(), oe = "", se = null, { registerExtensions: ce, unregisterExtensions: le } = ut();
|
|
1536
|
+
ce(q(() => R(j) || R(ie) || !R(O) ? [] : [{
|
|
1537
|
+
id: gc,
|
|
1607
1538
|
type: "customComponent",
|
|
1608
1539
|
extensionPointIds: ["app.runtime.header.left"],
|
|
1609
|
-
content:
|
|
1540
|
+
content: ys,
|
|
1610
1541
|
componentProps: () => ({
|
|
1611
|
-
resource:
|
|
1612
|
-
isReadOnly:
|
|
1613
|
-
isEditor:
|
|
1542
|
+
resource: R(O),
|
|
1543
|
+
isReadOnly: R(ae),
|
|
1544
|
+
isEditor: R(de),
|
|
1614
1545
|
hasAutoSave: !e.disableAutoSave,
|
|
1615
|
-
mainActions:
|
|
1616
|
-
dropDownMenuSections:
|
|
1617
|
-
dropDownActionOptions:
|
|
1546
|
+
mainActions: R(nt),
|
|
1547
|
+
dropDownMenuSections: R(tt),
|
|
1548
|
+
dropDownActionOptions: R(Je),
|
|
1618
1549
|
onClose: () => {
|
|
1619
|
-
|
|
1550
|
+
_e();
|
|
1620
1551
|
}
|
|
1621
1552
|
})
|
|
1622
1553
|
}]));
|
|
1623
|
-
let { actions:
|
|
1554
|
+
let { actions: ue } = Fi({ content: N }), de = q(() => !!e.wrappedComponent.emits?.includes("update:currentContent")), fe = (t) => !!Object.keys(e.wrappedComponent.props).includes(t), me = q(() => R(N) !== R(M)), he = (e) => {
|
|
1624
1555
|
e.preventDefault();
|
|
1625
1556
|
};
|
|
1626
|
-
|
|
1627
|
-
e ? window.addEventListener("beforeunload",
|
|
1557
|
+
P(me, (e) => {
|
|
1558
|
+
e ? window.addEventListener("beforeunload", he) : window.removeEventListener("beforeunload", he);
|
|
1628
1559
|
});
|
|
1629
|
-
let { applicationConfig:
|
|
1560
|
+
let { applicationConfig: ge, closeApp: _e, currentFileContext: ve, getFileContents: ye, getFileInfo: be, getUrlForResource: xe, putFileContents: Se, replaceInvalidFileRoute: Ce, revokeUrl: we, activeFiles: Te, loadFolderForFileContext: Ee, isFolderLoading: De } = Jr({ applicationId: e.applicationId }), { applicationMeta: Oe } = Ye({
|
|
1630
1561
|
applicationId: e.applicationId,
|
|
1631
1562
|
appsStore: i
|
|
1632
|
-
}),
|
|
1633
|
-
let { name: e } =
|
|
1563
|
+
}), ke = q(() => R(Oe).meta?.fileSizeLimit), Ae = q(() => {
|
|
1564
|
+
let { name: e } = R(Oe);
|
|
1634
1565
|
return t("%{appName} for %{fileName}", {
|
|
1635
1566
|
appName: t(e),
|
|
1636
|
-
fileName:
|
|
1567
|
+
fileName: R(R(ve).fileName)
|
|
1637
1568
|
});
|
|
1638
|
-
}),
|
|
1639
|
-
let e =
|
|
1569
|
+
}), Ne = _r("driveAliasAndItem"), Pe = r("fileId"), Fe = q(() => Le(R(Pe))), Ie = async () => {
|
|
1570
|
+
let e = R(Fe), { space: t, path: n } = await d(e), r = t.getDriveAliasAndItem({ path: n });
|
|
1640
1571
|
return oo(t) ? s.push({
|
|
1641
1572
|
params: {
|
|
1642
|
-
...
|
|
1573
|
+
...R(c).params,
|
|
1643
1574
|
driveAliasAndItem: r
|
|
1644
1575
|
},
|
|
1645
1576
|
query: {
|
|
1646
|
-
...
|
|
1577
|
+
...R(c).query,
|
|
1647
1578
|
fileId: e,
|
|
1648
1579
|
contextRouteName: "files-spaces-generic",
|
|
1649
|
-
contextRouteParams: { driveAliasAndItem: (0,
|
|
1580
|
+
contextRouteParams: { driveAliasAndItem: (0, Ks.dirname)(r) }
|
|
1650
1581
|
}
|
|
1651
1582
|
}) : s.push({
|
|
1652
1583
|
params: {
|
|
1653
|
-
...
|
|
1584
|
+
...R(c).params,
|
|
1654
1585
|
driveAliasAndItem: r
|
|
1655
1586
|
},
|
|
1656
1587
|
query: {
|
|
1657
|
-
...
|
|
1588
|
+
...R(c).query,
|
|
1658
1589
|
fileId: e,
|
|
1659
1590
|
contextRouteName: n === "/" ? "files-shares-with-me" : "files-spaces-generic",
|
|
1660
1591
|
...uo(t) && { shareId: t.id },
|
|
1661
|
-
contextRouteParams: { driveAliasAndItem: (0,
|
|
1592
|
+
contextRouteParams: { driveAliasAndItem: (0, Ks.dirname)(r) },
|
|
1662
1593
|
contextRouteQuery: { ...uo(t) && { shareId: t.id } }
|
|
1663
1594
|
}
|
|
1664
1595
|
});
|
|
1665
|
-
},
|
|
1596
|
+
}, Re = go(function* (e) {
|
|
1666
1597
|
try {
|
|
1667
|
-
|
|
1668
|
-
let t = yield
|
|
1669
|
-
if (O.value = t, uo(
|
|
1670
|
-
let e = yield* Qa(
|
|
1598
|
+
R(Ne) || (yield Ie()), A.value = R(R(ve).space);
|
|
1599
|
+
let t = yield be(R(ve), { signal: e });
|
|
1600
|
+
if (O.value = t, uo(R(A)) && (R(O).remoteItemId = R(A).id, R(O).id === R(O).remoteItemId)) {
|
|
1601
|
+
let e = yield* Qa(pr({
|
|
1671
1602
|
graphClient: l.graphAuthenticated,
|
|
1672
1603
|
spacesStore: h,
|
|
1673
|
-
space:
|
|
1604
|
+
space: R(A)
|
|
1674
1605
|
}));
|
|
1675
1606
|
e && (O.value = {
|
|
1676
1607
|
...t,
|
|
@@ -1684,28 +1615,28 @@ var bc = ["id"], xc = ["textContent"], Sc = {
|
|
|
1684
1615
|
}
|
|
1685
1616
|
_.initResourceList({
|
|
1686
1617
|
currentFolder: null,
|
|
1687
|
-
resources: [
|
|
1688
|
-
}), p.value = [
|
|
1618
|
+
resources: [R(O)]
|
|
1619
|
+
}), p.value = [R(O)];
|
|
1689
1620
|
} catch (e) {
|
|
1690
1621
|
console.error(e), ie.value = e, j.value = !1;
|
|
1691
1622
|
}
|
|
1692
|
-
}).restartable(),
|
|
1623
|
+
}).restartable(), ze = go(function* (n) {
|
|
1693
1624
|
try {
|
|
1694
|
-
let r = e.importResourceWithExtension(
|
|
1625
|
+
let r = e.importResourceWithExtension(R(O));
|
|
1695
1626
|
if (r) {
|
|
1696
|
-
let e = _o.local().toFormat("yyyyMMddHHmmss"), i = `${
|
|
1697
|
-
if (!(yield l.webdav.copyFiles(
|
|
1627
|
+
let e = _o.local().toFormat("yyyyMMddHHmmss"), i = `${R(O).name}_${e}.${r}`;
|
|
1628
|
+
if (!(yield l.webdav.copyFiles(R(A), R(O), R(A), { path: i }, { signal: n }))) throw Error(t("Importing failed"));
|
|
1698
1629
|
O.value = { path: i };
|
|
1699
1630
|
}
|
|
1700
|
-
if (
|
|
1701
|
-
if (ae.value = ![D.Updateable, D.FileUpdateable].some((e) => (
|
|
1702
|
-
let t = yield* Qa(
|
|
1631
|
+
if (Ce(ve, R(O))) return;
|
|
1632
|
+
if (ae.value = ![D.Updateable, D.FileUpdateable].some((e) => (R(O).permissions || "").indexOf(e) > -1), R(fe("currentContent"))) {
|
|
1633
|
+
let t = yield* Qa(ye(ve, {
|
|
1703
1634
|
...e.fileContentOptions,
|
|
1704
1635
|
signal: n
|
|
1705
1636
|
}));
|
|
1706
|
-
M.value =
|
|
1637
|
+
M.value = N.value = t.body, ne.value = t.headers["OC-ETag"];
|
|
1707
1638
|
}
|
|
1708
|
-
|
|
1639
|
+
R(fe("url")) && (re.value = yield xe(R(A), R(O), {
|
|
1709
1640
|
...e.urlForResourceOptions,
|
|
1710
1641
|
signal: n
|
|
1711
1642
|
}));
|
|
@@ -1715,202 +1646,202 @@ var bc = ["id"], xc = ["textContent"], Sc = {
|
|
|
1715
1646
|
j.value = !1;
|
|
1716
1647
|
}
|
|
1717
1648
|
}).restartable();
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
title: t("File exceeds %{threshold}", { threshold:
|
|
1649
|
+
P(ve, async () => {
|
|
1650
|
+
R(E) ? A.value = R(R(ve).space) : (await Re.perform(), R(ke) && fc(R(O).size) > R(ke) ? m({
|
|
1651
|
+
title: t("File exceeds %{threshold}", { threshold: We(R(ke), n) }),
|
|
1721
1652
|
message: t("%{resource} exceeds the recommended size of %{threshold} for editing, and may cause performance issues.", {
|
|
1722
|
-
resource:
|
|
1723
|
-
threshold:
|
|
1653
|
+
resource: R(O).name,
|
|
1654
|
+
threshold: We(R(ke), n)
|
|
1724
1655
|
}),
|
|
1725
1656
|
confirmText: t("Continue"),
|
|
1726
1657
|
onCancel: () => {
|
|
1727
|
-
|
|
1658
|
+
_e();
|
|
1728
1659
|
},
|
|
1729
1660
|
onConfirm: () => {
|
|
1730
|
-
|
|
1661
|
+
ze.perform();
|
|
1731
1662
|
}
|
|
1732
|
-
}) :
|
|
1663
|
+
}) : ze.perform());
|
|
1733
1664
|
}, { immediate: !0 });
|
|
1734
|
-
let
|
|
1665
|
+
let Be = (e) => {
|
|
1735
1666
|
console.error(e), o({
|
|
1736
1667
|
title: t("An error occurred"),
|
|
1737
1668
|
desc: e.message,
|
|
1738
1669
|
errors: [e]
|
|
1739
1670
|
});
|
|
1740
|
-
},
|
|
1671
|
+
}, Ve = () => {
|
|
1741
1672
|
a({ title: t("File autosaved") });
|
|
1742
|
-
},
|
|
1743
|
-
let e =
|
|
1673
|
+
}, He = go(function* () {
|
|
1674
|
+
let e = R(N);
|
|
1744
1675
|
try {
|
|
1745
|
-
let t = yield
|
|
1676
|
+
let t = yield Se(ve, {
|
|
1746
1677
|
content: e,
|
|
1747
|
-
previousEntityTag:
|
|
1678
|
+
previousEntityTag: R(ne)
|
|
1748
1679
|
});
|
|
1749
1680
|
M.value = e, ne.value = t.etag, _.upsertResource(t);
|
|
1750
1681
|
} catch (e) {
|
|
1751
1682
|
switch (e.statusCode) {
|
|
1752
1683
|
case 401:
|
|
1753
1684
|
case 403:
|
|
1754
|
-
|
|
1685
|
+
Be(new Ja(t("You're not authorized to save this file"), e.response));
|
|
1755
1686
|
break;
|
|
1756
1687
|
case 409:
|
|
1757
1688
|
case 412:
|
|
1758
|
-
|
|
1689
|
+
Be(new Ja(t("This file was updated outside this window. Please copy your changes or save the file under a new name (»Save As...«)."), e.response));
|
|
1759
1690
|
break;
|
|
1760
1691
|
case 507:
|
|
1761
|
-
let n = h.spaces.find((e) => e.id ===
|
|
1692
|
+
let n = h.spaces.find((e) => e.id === R(O).storageId && so(e));
|
|
1762
1693
|
if (n) {
|
|
1763
|
-
|
|
1694
|
+
Be(new Ja(t("Insufficient quota on \"%{spaceName}\" to save this file", { spaceName: n.name }), e.response));
|
|
1764
1695
|
break;
|
|
1765
1696
|
}
|
|
1766
|
-
|
|
1697
|
+
Be(new Ja(t("Insufficient quota for saving this file"), e.response));
|
|
1767
1698
|
break;
|
|
1768
|
-
default:
|
|
1699
|
+
default: Be(new Ja("", e.response));
|
|
1769
1700
|
}
|
|
1770
1701
|
}
|
|
1771
|
-
}).drop(),
|
|
1772
|
-
await
|
|
1773
|
-
},
|
|
1774
|
-
|
|
1775
|
-
if (
|
|
1702
|
+
}).drop(), Ue = async () => {
|
|
1703
|
+
await He.perform();
|
|
1704
|
+
}, Ge = null;
|
|
1705
|
+
Vt(() => {
|
|
1706
|
+
if (oe = y.subscribe("runtime.resource.deleted", Xe), _.ancestorMetaData?.["/"] && R(A) && _.ancestorMetaData["/"].spaceId !== R(A).id && _.setAncestorMetaData({}), !R(de)) return;
|
|
1776
1707
|
let t = g.options.editor;
|
|
1777
|
-
t.autosaveEnabled && !e.disableAutoSave && (
|
|
1778
|
-
|
|
1708
|
+
t.autosaveEnabled && !e.disableAutoSave && (Ge = setInterval(async () => {
|
|
1709
|
+
me.value && (await Ue(), Ve());
|
|
1779
1710
|
}, (t.autosaveInterval || 120) * 1e3));
|
|
1780
1711
|
}), ja(() => {
|
|
1781
|
-
y.unsubscribe("runtime.resource.deleted",
|
|
1712
|
+
y.unsubscribe("runtime.resource.deleted", oe), le([gc]), u.isLoading || window.removeEventListener("beforeunload", he), R(fe("url")) && we(re.value), R(de) && (clearInterval(Ge), Ge = null);
|
|
1782
1713
|
});
|
|
1783
|
-
let { bindKeyAction:
|
|
1784
|
-
|
|
1785
|
-
modifier:
|
|
1786
|
-
primary:
|
|
1714
|
+
let { bindKeyAction: Ke } = Ln({ skipDisabledKeyBindingsCheck: !0 });
|
|
1715
|
+
Ke({
|
|
1716
|
+
modifier: kr.Ctrl,
|
|
1717
|
+
primary: Ir.S
|
|
1787
1718
|
}, () => {
|
|
1788
|
-
|
|
1719
|
+
R(me) && Ue();
|
|
1789
1720
|
});
|
|
1790
|
-
let
|
|
1721
|
+
let qe = q(() => [{
|
|
1791
1722
|
name: "save-file",
|
|
1792
1723
|
disabledTooltip: () => "",
|
|
1793
|
-
isVisible: () =>
|
|
1794
|
-
isDisabled: () => !
|
|
1724
|
+
isVisible: () => R(de) && !R(ae),
|
|
1725
|
+
isDisabled: () => !R(me),
|
|
1795
1726
|
icon: "save",
|
|
1796
1727
|
id: "app-save-action",
|
|
1797
1728
|
label: () => t("Save"),
|
|
1798
|
-
handler:
|
|
1799
|
-
}]),
|
|
1800
|
-
space:
|
|
1801
|
-
resources: [
|
|
1802
|
-
})),
|
|
1803
|
-
|
|
1804
|
-
},
|
|
1805
|
-
if (e.find((e) => e.id ===
|
|
1806
|
-
if (
|
|
1807
|
-
|
|
1729
|
+
handler: Ue
|
|
1730
|
+
}]), Je = q(() => ({
|
|
1731
|
+
space: R(A),
|
|
1732
|
+
resources: [R(O)]
|
|
1733
|
+
})), F = async (e, t) => {
|
|
1734
|
+
R(me) && (await Ue(), Ve()), t(e);
|
|
1735
|
+
}, Xe = (e) => {
|
|
1736
|
+
if (e.find((e) => e.id === R(O).id)) {
|
|
1737
|
+
if (se) return se();
|
|
1738
|
+
_e();
|
|
1808
1739
|
}
|
|
1809
|
-
},
|
|
1810
|
-
...
|
|
1811
|
-
...
|
|
1812
|
-
...
|
|
1740
|
+
}, Ze = q(() => [
|
|
1741
|
+
...R(S),
|
|
1742
|
+
...R(qe),
|
|
1743
|
+
...R(ue).map((e) => ({
|
|
1813
1744
|
...e,
|
|
1814
|
-
isVisible: (t) =>
|
|
1745
|
+
isVisible: (t) => de.value && e.isVisible(t)
|
|
1815
1746
|
}))
|
|
1816
|
-
].filter((e) => e.isVisible(
|
|
1747
|
+
].filter((e) => e.isVisible(R(Je)))), Qe = q(() => [...R(T), ...R(C)].filter((e) => e.isVisible(R(Je)))), $e = q(() => [...R(ee).map((e) => ({
|
|
1817
1748
|
...e,
|
|
1818
|
-
handler: (t) =>
|
|
1819
|
-
})), ...
|
|
1749
|
+
handler: (t) => F(t, e.handler)
|
|
1750
|
+
})), ...R(te)].filter((e) => e.isVisible(R(Je)))), et = q(() => [...R(w)].filter((e) => e.isVisible(R(Je)))), tt = q(() => {
|
|
1820
1751
|
let e = [];
|
|
1821
|
-
return
|
|
1752
|
+
return R(Ze).length && e.push({
|
|
1822
1753
|
name: "context",
|
|
1823
|
-
items:
|
|
1824
|
-
}),
|
|
1754
|
+
items: R(Ze)
|
|
1755
|
+
}), R(Qe).length && e.push({
|
|
1825
1756
|
name: "share",
|
|
1826
|
-
items:
|
|
1827
|
-
}),
|
|
1757
|
+
items: R(Qe)
|
|
1758
|
+
}), R($e).length && e.push({
|
|
1828
1759
|
name: "actions",
|
|
1829
|
-
items:
|
|
1830
|
-
}),
|
|
1760
|
+
items: R($e)
|
|
1761
|
+
}), R(et).length && e.push({
|
|
1831
1762
|
name: "sidebar",
|
|
1832
|
-
items:
|
|
1763
|
+
items: R(et)
|
|
1833
1764
|
}), e;
|
|
1834
|
-
}),
|
|
1765
|
+
}), nt = q(() => [...R(qe)]);
|
|
1835
1766
|
So((e, n, r) => {
|
|
1836
|
-
|
|
1767
|
+
R(me) ? m({
|
|
1837
1768
|
title: t("Unsaved changes"),
|
|
1838
|
-
customComponent:
|
|
1769
|
+
customComponent: nc,
|
|
1839
1770
|
focusTrapInitial: ".oc-modal-body-actions-confirm",
|
|
1840
1771
|
hideActions: !0,
|
|
1841
1772
|
hideCancelButton: !0,
|
|
1842
1773
|
customComponentAttrs: () => ({ closeCallback: () => {
|
|
1843
|
-
|
|
1774
|
+
le([gc]), r();
|
|
1844
1775
|
} }),
|
|
1845
1776
|
async onConfirm() {
|
|
1846
|
-
|
|
1777
|
+
le([gc]), await Ue(), r();
|
|
1847
1778
|
}
|
|
1848
|
-
}) : (
|
|
1779
|
+
}) : (le([gc]), r());
|
|
1849
1780
|
});
|
|
1850
|
-
let
|
|
1851
|
-
url:
|
|
1852
|
-
space:
|
|
1853
|
-
resource:
|
|
1854
|
-
activeFiles:
|
|
1855
|
-
isDirty:
|
|
1856
|
-
isReadOnly:
|
|
1857
|
-
applicationConfig:
|
|
1858
|
-
currentFileContext:
|
|
1859
|
-
currentContent:
|
|
1860
|
-
isFolderLoading:
|
|
1781
|
+
let rt = q(() => ({
|
|
1782
|
+
url: R(re),
|
|
1783
|
+
space: R(R(ve).space),
|
|
1784
|
+
resource: R(O),
|
|
1785
|
+
activeFiles: R(Te),
|
|
1786
|
+
isDirty: R(me),
|
|
1787
|
+
isReadOnly: R(ae),
|
|
1788
|
+
applicationConfig: R(ge),
|
|
1789
|
+
currentFileContext: R(ve),
|
|
1790
|
+
currentContent: R(N),
|
|
1791
|
+
isFolderLoading: R(De),
|
|
1861
1792
|
"onUpdate:resource": (e) => {
|
|
1862
|
-
A.value =
|
|
1793
|
+
A.value = R(R(ve).space), O.value = {
|
|
1863
1794
|
...e,
|
|
1864
|
-
...uo(
|
|
1865
|
-
}, p.value = [
|
|
1795
|
+
...uo(R(A)) && { remoteItemId: R(A).id }
|
|
1796
|
+
}, p.value = [R(O)];
|
|
1866
1797
|
},
|
|
1867
1798
|
"onUpdate:currentContent": (e) => {
|
|
1868
|
-
|
|
1799
|
+
N.value = e;
|
|
1869
1800
|
},
|
|
1870
1801
|
"onRegister:onDeleteResourceCallback": (e) => {
|
|
1871
|
-
|
|
1802
|
+
se = e;
|
|
1872
1803
|
},
|
|
1873
1804
|
"onDelete:resource": () => {
|
|
1874
|
-
|
|
1875
|
-
space:
|
|
1876
|
-
resources: [
|
|
1877
|
-
}) &&
|
|
1878
|
-
space:
|
|
1879
|
-
resources: [
|
|
1805
|
+
R(te)[0].isVisible({
|
|
1806
|
+
space: R(A),
|
|
1807
|
+
resources: [R(O)]
|
|
1808
|
+
}) && R(te)[0].handler({
|
|
1809
|
+
space: R(A),
|
|
1810
|
+
resources: [R(O)]
|
|
1880
1811
|
});
|
|
1881
1812
|
},
|
|
1882
|
-
onSave:
|
|
1883
|
-
onClose:
|
|
1884
|
-
loadFolderForFileContext:
|
|
1885
|
-
revokeUrl:
|
|
1886
|
-
getUrlForResource:
|
|
1813
|
+
onSave: Ue,
|
|
1814
|
+
onClose: _e,
|
|
1815
|
+
loadFolderForFileContext: Ee,
|
|
1816
|
+
revokeUrl: we,
|
|
1817
|
+
getUrlForResource: xe
|
|
1887
1818
|
}));
|
|
1888
1819
|
return (t, n) => (Z(), X("main", {
|
|
1889
1820
|
id: e.applicationId,
|
|
1890
1821
|
class: "app-wrapper h-full border-0",
|
|
1891
|
-
onKeydown: n[0] ||=
|
|
1822
|
+
onKeydown: n[0] ||= xi((...e) => R(_e) && R(_e)(...e), ["esc"])
|
|
1892
1823
|
}, [Y("h1", {
|
|
1893
1824
|
class: "sr-only",
|
|
1894
|
-
textContent:
|
|
1895
|
-
}, null, 8,
|
|
1825
|
+
textContent: G(Ae.value)
|
|
1826
|
+
}, null, 8, mc), j.value ? (Z(), H(ks, { key: 0 })) : ie.value ? (Z(), H(ws, {
|
|
1896
1827
|
key: 1,
|
|
1897
1828
|
message: ie.value.message
|
|
1898
|
-
}, null, 8, ["message"])) : (Z(), X("div",
|
|
1829
|
+
}, null, 8, ["message"])) : (Z(), X("div", hc, [k(t.$slots, "default", va({ class: ["app-wrapper-content size-full", { "w-[calc(100%-360px)]": R(x) && !R(b) }] }, rt.value)), J(Gs, { space: A.value }, null, 8, ["space"])]))], 40, pc));
|
|
1899
1830
|
}
|
|
1900
1831
|
});
|
|
1901
1832
|
//#endregion
|
|
1902
1833
|
//#region src/components/AppTemplates/AppWrapperRoute.ts
|
|
1903
|
-
function
|
|
1904
|
-
return
|
|
1905
|
-
return
|
|
1834
|
+
function vc(e, t) {
|
|
1835
|
+
return U({ render() {
|
|
1836
|
+
return Ar(_c, {
|
|
1906
1837
|
wrappedComponent: e,
|
|
1907
1838
|
...t
|
|
1908
|
-
}, { default: (t) =>
|
|
1839
|
+
}, { default: (t) => Ar(e, t) });
|
|
1909
1840
|
} });
|
|
1910
1841
|
}
|
|
1911
1842
|
//#endregion
|
|
1912
1843
|
//#region src/components/ContextActions/ContextMenuQuickAction.vue
|
|
1913
|
-
var
|
|
1844
|
+
var yc = /* @__PURE__ */ U({
|
|
1914
1845
|
__name: "ContextMenuQuickAction",
|
|
1915
1846
|
props: {
|
|
1916
1847
|
item: {},
|
|
@@ -1922,27 +1853,27 @@ var Ec = /* @__PURE__ */ H({
|
|
|
1922
1853
|
},
|
|
1923
1854
|
emits: ["quickActionClicked"],
|
|
1924
1855
|
setup(e, { expose: t }) {
|
|
1925
|
-
let { $gettext: n } = Q(), r =
|
|
1856
|
+
let { $gettext: n } = Q(), r = de("drop");
|
|
1926
1857
|
t({ drop: r });
|
|
1927
|
-
let i =
|
|
1858
|
+
let i = q(() => n("Show context menu"));
|
|
1928
1859
|
return (t, n) => {
|
|
1929
|
-
let a =
|
|
1930
|
-
return Z(), X(
|
|
1860
|
+
let a = I("oc-icon"), o = I("oc-button"), s = ti("oc-tooltip");
|
|
1861
|
+
return Z(), X(W, null, [L((Z(), H(o, {
|
|
1931
1862
|
id: `context-menu-trigger-${e.resourceDomSelector(e.item)}`,
|
|
1932
1863
|
"data-test-context-menu-resource-name": e.item.name,
|
|
1933
1864
|
"aria-label": i.value,
|
|
1934
1865
|
appearance: "raw",
|
|
1935
|
-
class:
|
|
1866
|
+
class: V(["quick-action-button ml-1 p-1", t.$attrs.class]),
|
|
1936
1867
|
onClick: n[0] ||= (e) => t.$emit("quickActionClicked", e)
|
|
1937
1868
|
}, {
|
|
1938
|
-
default:
|
|
1869
|
+
default: F(() => [J(a, { name: "more-2" })]),
|
|
1939
1870
|
_: 1
|
|
1940
1871
|
}, 8, [
|
|
1941
1872
|
"id",
|
|
1942
1873
|
"data-test-context-menu-resource-name",
|
|
1943
1874
|
"aria-label",
|
|
1944
1875
|
"class"
|
|
1945
|
-
])), [[s, i.value]]),
|
|
1876
|
+
])), [[s, i.value]]), J(R(si), {
|
|
1946
1877
|
ref_key: "drop",
|
|
1947
1878
|
ref: r,
|
|
1948
1879
|
"drop-id": `context-menu-drop-${e.resourceDomSelector(e.item)}`,
|
|
@@ -1953,7 +1884,7 @@ var Ec = /* @__PURE__ */ H({
|
|
|
1953
1884
|
"padding-size": "small",
|
|
1954
1885
|
"close-on-click": ""
|
|
1955
1886
|
}, {
|
|
1956
|
-
default:
|
|
1887
|
+
default: F(() => [k(t.$slots, "contextMenu", { item: e.item })]),
|
|
1957
1888
|
_: 3
|
|
1958
1889
|
}, 8, [
|
|
1959
1890
|
"drop-id",
|
|
@@ -1962,9 +1893,9 @@ var Ec = /* @__PURE__ */ H({
|
|
|
1962
1893
|
])], 64);
|
|
1963
1894
|
};
|
|
1964
1895
|
}
|
|
1965
|
-
}),
|
|
1896
|
+
}), bc = U({
|
|
1966
1897
|
name: "ResourceGhostElement",
|
|
1967
|
-
components: { ResourceIcon:
|
|
1898
|
+
components: { ResourceIcon: nn },
|
|
1968
1899
|
props: { previewItems: {
|
|
1969
1900
|
type: Array,
|
|
1970
1901
|
required: !0
|
|
@@ -1983,28 +1914,28 @@ var Ec = /* @__PURE__ */ H({
|
|
|
1983
1914
|
return this.previewItems.length;
|
|
1984
1915
|
}
|
|
1985
1916
|
}
|
|
1986
|
-
}),
|
|
1917
|
+
}), xc = {
|
|
1987
1918
|
id: "ghost-element",
|
|
1988
1919
|
class: "z-[var(--z-index-modal)] absolute pt-1 pl-4 bg-transparent"
|
|
1989
|
-
},
|
|
1920
|
+
}, Sc = { class: "relative rounded-sm bg-role-surface-container-high" }, Cc = {
|
|
1990
1921
|
key: 0,
|
|
1991
1922
|
class: "-z-10 absolute top-[3px] left-[3px] right-[-3px] bottom-[-3px] rounded-sm bg-role-surface-container-high brightness-82"
|
|
1992
|
-
},
|
|
1923
|
+
}, wc = {
|
|
1993
1924
|
key: 1,
|
|
1994
1925
|
class: "-z-20 absolute top-[6px] left-[6px] right-[-6px] bottom-[-6px] rounded-sm bg-role-surface-container-high brightness-72"
|
|
1995
|
-
},
|
|
1996
|
-
function
|
|
1997
|
-
let o =
|
|
1998
|
-
return Z(), X("div",
|
|
1999
|
-
|
|
1926
|
+
}, Tc = { class: "badge absolute top-[-2px] right-[-8px] p-1 text-sm text-center leading-2 bg-red-600 text-white rounded-4xl box-content min-w-2 h-2" };
|
|
1927
|
+
function Ec(e, t, n, r, i, a) {
|
|
1928
|
+
let o = I("resource-icon");
|
|
1929
|
+
return Z(), X("div", xc, [Y("div", Sc, [
|
|
1930
|
+
J(o, {
|
|
2000
1931
|
class: "p-1",
|
|
2001
1932
|
resource: e.previewItems[0]
|
|
2002
1933
|
}, null, 8, ["resource"]),
|
|
2003
|
-
e.showSecondLayer ? (Z(), X("div",
|
|
2004
|
-
e.showThirdLayer ? (Z(), X("div",
|
|
2005
|
-
]), Y("span",
|
|
1934
|
+
e.showSecondLayer ? (Z(), X("div", Cc)) : K("", !0),
|
|
1935
|
+
e.showThirdLayer ? (Z(), X("div", wc)) : K("", !0)
|
|
1936
|
+
]), Y("span", Tc, G(e.itemCount), 1)]);
|
|
2006
1937
|
}
|
|
2007
|
-
var
|
|
1938
|
+
var Dc = /* @__PURE__ */ B(bc, [["render", Ec]]), Oc = U({
|
|
2008
1939
|
name: "ResourceSize",
|
|
2009
1940
|
props: { size: {
|
|
2010
1941
|
type: [String, Number],
|
|
@@ -2012,13 +1943,13 @@ var Pc = /* @__PURE__ */ z(Dc, [["render", Nc]]), Fc = H({
|
|
|
2012
1943
|
} },
|
|
2013
1944
|
setup: (e) => {
|
|
2014
1945
|
let { current: t } = Q();
|
|
2015
|
-
return { formattedSize:
|
|
1946
|
+
return { formattedSize: q(() => We(e.size, t)) };
|
|
2016
1947
|
}
|
|
2017
|
-
}),
|
|
2018
|
-
function
|
|
2019
|
-
return Z(), X("span", { textContent:
|
|
1948
|
+
}), kc = ["textContent"];
|
|
1949
|
+
function Ac(e, t, n, r, i, a) {
|
|
1950
|
+
return Z(), X("span", { textContent: G(e.formattedSize) }, null, 8, kc);
|
|
2020
1951
|
}
|
|
2021
|
-
var
|
|
1952
|
+
var jc = /* @__PURE__ */ B(Oc, [["render", Ac]]), Mc = /* @__PURE__ */ U({
|
|
2022
1953
|
__name: "ResourceStatusIndicators",
|
|
2023
1954
|
props: {
|
|
2024
1955
|
resource: {},
|
|
@@ -2029,19 +1960,19 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
|
|
|
2029
1960
|
}
|
|
2030
1961
|
},
|
|
2031
1962
|
setup(e) {
|
|
2032
|
-
let t =
|
|
1963
|
+
let t = lt(), { getIndicators: n } = or(), r = q(() => {
|
|
2033
1964
|
let t = n({
|
|
2034
1965
|
space: e.space,
|
|
2035
1966
|
resource: e.resource
|
|
2036
1967
|
});
|
|
2037
1968
|
return e.filter ? t.filter(e.filter) : t;
|
|
2038
1969
|
});
|
|
2039
|
-
return (n, i) => r.value.length > 0 ? (Z(),
|
|
1970
|
+
return (n, i) => r.value.length > 0 ? (Z(), H(R(Wn), va({ key: 0 }, R(t), {
|
|
2040
1971
|
indicators: r.value,
|
|
2041
1972
|
resource: e.resource
|
|
2042
|
-
}), null, 16, ["indicators", "resource"])) :
|
|
1973
|
+
}), null, 16, ["indicators", "resource"])) : K("", !0);
|
|
2043
1974
|
}
|
|
2044
|
-
}),
|
|
1975
|
+
}), Nc = /* @__PURE__ */ U({
|
|
2045
1976
|
__name: "UserAvatar",
|
|
2046
1977
|
props: {
|
|
2047
1978
|
userId: {},
|
|
@@ -2049,12 +1980,12 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
|
|
|
2049
1980
|
width: { default: 36 }
|
|
2050
1981
|
},
|
|
2051
1982
|
setup(e) {
|
|
2052
|
-
let { avatarMap: t } = $(
|
|
2053
|
-
return
|
|
1983
|
+
let { avatarMap: t } = $(Ui()), { enqueueAvatar: n } = ta(), r = q(() => R(t)[e.userId]);
|
|
1984
|
+
return Vt(() => {
|
|
2054
1985
|
n(e.userId);
|
|
2055
1986
|
}), (t, n) => {
|
|
2056
|
-
let i =
|
|
2057
|
-
return Z(),
|
|
1987
|
+
let i = I("oc-avatar");
|
|
1988
|
+
return Z(), H(i, {
|
|
2058
1989
|
"user-name": e.userName,
|
|
2059
1990
|
src: r.value,
|
|
2060
1991
|
width: e.width
|
|
@@ -2065,17 +1996,17 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
|
|
|
2065
1996
|
]);
|
|
2066
1997
|
};
|
|
2067
1998
|
}
|
|
2068
|
-
}),
|
|
1999
|
+
}), Pc = { class: /* @__PURE__ */ V([
|
|
2069
2000
|
"[&_.cropper-crop-box]:!outline-1",
|
|
2070
2001
|
"[&_.cropper-crop-box]:!outline-role-outline",
|
|
2071
2002
|
"[&_.cropper-view-box]:!rounded-[50%]",
|
|
2072
2003
|
"[&_.cropper-crop-box]:!rounded-[50%]",
|
|
2073
2004
|
"[&_.cropper-line]:!bg-role-outline",
|
|
2074
2005
|
"[&_.cropper-point]:!bg-role-outline"
|
|
2075
|
-
]) },
|
|
2006
|
+
]) }, Fc = { class: "flex flex-col items-center" }, Ic = { class: "oc-button-group" }, Lc = { key: 0 }, Rc = ["src"], zc = { class: "text-sm text-role-on-surface-variant flex items-center mt-1" }, Bc = ["textContent"], Vc = /* @__PURE__ */ U({
|
|
2076
2007
|
__name: "AvatarUpload",
|
|
2077
2008
|
setup(e) {
|
|
2078
|
-
let t =
|
|
2009
|
+
let t = Qn(), n = Ui(), { avatarMap: r } = $(n), { user: i } = $(t), { $gettext: a } = Q(), { showErrorMessage: o, showMessage: s } = Me(), { graphAuthenticated: c } = en(), { setCropperInstance: l } = Ni(), u = z(null), d = z(null), f = z(null), p = z(!1), m = z(!1), h = z(!1), g = z(null), _ = q(() => !!R(r)[R(i).id]), v = (e) => {
|
|
2079
2010
|
let t = e.target.files?.[0];
|
|
2080
2011
|
if (t) {
|
|
2081
2012
|
if (t.size > 10485760) {
|
|
@@ -2085,7 +2016,7 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
|
|
|
2085
2016
|
u.value = URL.createObjectURL(t), m.value = !0;
|
|
2086
2017
|
}
|
|
2087
2018
|
};
|
|
2088
|
-
|
|
2019
|
+
P(u, async (e) => {
|
|
2089
2020
|
e && (await Ra(), f.value && f.value.destroy(), d.value && (f.value = new xo(d.value, {
|
|
2090
2021
|
aspectRatio: 1,
|
|
2091
2022
|
viewMode: 1,
|
|
@@ -2114,7 +2045,7 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
|
|
|
2114
2045
|
lastModified: Date.now()
|
|
2115
2046
|
});
|
|
2116
2047
|
try {
|
|
2117
|
-
await c.photos.updateOwnUserPhotoPatch(r), n.addAvatar(
|
|
2048
|
+
await c.photos.updateOwnUserPhotoPatch(r), n.addAvatar(R(i).id, t), s({ title: a("Profile picture was set successfully") });
|
|
2118
2049
|
} catch (e) {
|
|
2119
2050
|
o({
|
|
2120
2051
|
title: a("Failed to set profile picture"),
|
|
@@ -2124,7 +2055,7 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
|
|
|
2124
2055
|
m.value = !1, w();
|
|
2125
2056
|
}, ee = async () => {
|
|
2126
2057
|
try {
|
|
2127
|
-
await c.photos.deleteOwnUserPhoto(), n.removeAvatar(
|
|
2058
|
+
await c.photos.deleteOwnUserPhoto(), n.removeAvatar(R(i).id), s({ title: a("Profile picture was removed successfully") });
|
|
2128
2059
|
} catch (e) {
|
|
2129
2060
|
o({
|
|
2130
2061
|
title: a("Failed to remove profile picture"),
|
|
@@ -2136,8 +2067,8 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
|
|
|
2136
2067
|
f.value?.destroy(), f.value = null, g.value && (g.value.value = ""), u.value = null;
|
|
2137
2068
|
};
|
|
2138
2069
|
return (e, t) => {
|
|
2139
|
-
let n =
|
|
2140
|
-
return Z(), X("div",
|
|
2070
|
+
let n = I("oc-button"), r = I("oc-icon"), o = I("oc-modal");
|
|
2071
|
+
return Z(), X("div", Pc, [
|
|
2141
2072
|
Y("input", {
|
|
2142
2073
|
ref_key: "fileInputRef",
|
|
2143
2074
|
ref: g,
|
|
@@ -2146,63 +2077,63 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
|
|
|
2146
2077
|
accept: "image/jpeg, image/png",
|
|
2147
2078
|
onChange: v
|
|
2148
2079
|
}, null, 544),
|
|
2149
|
-
Y("div",
|
|
2080
|
+
Y("div", Fc, [J(Nc, {
|
|
2150
2081
|
class: "mb-4",
|
|
2151
2082
|
width: 128,
|
|
2152
|
-
"user-id":
|
|
2153
|
-
"user-name":
|
|
2154
|
-
}, null, 8, ["user-id", "user-name"]), Y("div", null, [Y("div",
|
|
2083
|
+
"user-id": R(i).id,
|
|
2084
|
+
"user-name": R(i).displayName
|
|
2085
|
+
}, null, 8, ["user-id", "user-name"]), Y("div", null, [Y("div", Ic, [J(n, {
|
|
2155
2086
|
size: "small",
|
|
2156
2087
|
onClick: x
|
|
2157
2088
|
}, {
|
|
2158
|
-
default:
|
|
2089
|
+
default: F(() => [Cr(G(R(a)("Upload")), 1)]),
|
|
2159
2090
|
_: 1
|
|
2160
|
-
}), _.value ? (Z(),
|
|
2091
|
+
}), _.value ? (Z(), H(n, {
|
|
2161
2092
|
key: 0,
|
|
2162
2093
|
class: "avatar-upload-remove-button",
|
|
2163
2094
|
size: "small",
|
|
2164
2095
|
onClick: t[0] ||= (e) => h.value = !0
|
|
2165
2096
|
}, {
|
|
2166
|
-
default:
|
|
2097
|
+
default: F(() => [Cr(G(R(a)("Remove")), 1)]),
|
|
2167
2098
|
_: 1
|
|
2168
|
-
})) :
|
|
2169
|
-
m.value ? (Z(),
|
|
2099
|
+
})) : K("", !0)])])]),
|
|
2100
|
+
m.value ? (Z(), H(o, {
|
|
2170
2101
|
key: 0,
|
|
2171
|
-
title:
|
|
2172
|
-
"button-cancel-text":
|
|
2173
|
-
"button-confirm-text":
|
|
2102
|
+
title: R(a)("Crop your new profile picture"),
|
|
2103
|
+
"button-cancel-text": R(a)("Cancel"),
|
|
2104
|
+
"button-confirm-text": R(a)("Set"),
|
|
2174
2105
|
"button-confirm-disabled": !p.value,
|
|
2175
2106
|
"focus-trap-initial": !1,
|
|
2176
2107
|
onCancel: S,
|
|
2177
2108
|
onConfirm: C
|
|
2178
2109
|
}, {
|
|
2179
|
-
content:
|
|
2110
|
+
content: F(() => [u.value ? (Z(), X("div", Lc, [Y("img", {
|
|
2180
2111
|
ref_key: "imageRef",
|
|
2181
2112
|
ref: d,
|
|
2182
2113
|
class: "max-h-[400px]",
|
|
2183
2114
|
src: u.value
|
|
2184
|
-
}, null, 8,
|
|
2115
|
+
}, null, 8, Rc), Y("div", zc, [J(r, {
|
|
2185
2116
|
class: "mr-1",
|
|
2186
2117
|
name: "information",
|
|
2187
2118
|
size: "small",
|
|
2188
2119
|
"fill-type": "line"
|
|
2189
|
-
}), Y("span", { textContent:
|
|
2190
|
-
zoomKeys:
|
|
2191
|
-
panKeys:
|
|
2192
|
-
})) }, null, 8,
|
|
2120
|
+
}), Y("span", { textContent: G(R(a)("Zoom via %{ zoomKeys }, pan via %{ panKeys }", {
|
|
2121
|
+
zoomKeys: R(a)("+-"),
|
|
2122
|
+
panKeys: R(a)("↑↓←→")
|
|
2123
|
+
})) }, null, 8, Bc)])])) : K("", !0)]),
|
|
2193
2124
|
_: 1
|
|
2194
2125
|
}, 8, [
|
|
2195
2126
|
"title",
|
|
2196
2127
|
"button-cancel-text",
|
|
2197
2128
|
"button-confirm-text",
|
|
2198
2129
|
"button-confirm-disabled"
|
|
2199
|
-
])) :
|
|
2200
|
-
h.value ? (Z(),
|
|
2130
|
+
])) : K("", !0),
|
|
2131
|
+
h.value ? (Z(), H(o, {
|
|
2201
2132
|
key: 1,
|
|
2202
|
-
message:
|
|
2203
|
-
title:
|
|
2204
|
-
"button-cancel-text":
|
|
2205
|
-
"button-confirm-text":
|
|
2133
|
+
message: R(a)("Are you sure you want to remove your profile picture?"),
|
|
2134
|
+
title: R(a)("Remove profile picture"),
|
|
2135
|
+
"button-cancel-text": R(a)("Cancel"),
|
|
2136
|
+
"button-confirm-text": R(a)("Remove"),
|
|
2206
2137
|
onCancel: t[1] ||= (e) => h.value = !1,
|
|
2207
2138
|
onConfirm: ee
|
|
2208
2139
|
}, null, 8, [
|
|
@@ -2210,14 +2141,14 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
|
|
|
2210
2141
|
"title",
|
|
2211
2142
|
"button-cancel-text",
|
|
2212
2143
|
"button-confirm-text"
|
|
2213
|
-
])) :
|
|
2144
|
+
])) : K("", !0)
|
|
2214
2145
|
]);
|
|
2215
2146
|
};
|
|
2216
2147
|
}
|
|
2217
|
-
}),
|
|
2148
|
+
}), Hc = { class: "resource-table-select-all flex justify-center items-center" }, Uc = { class: "truncate" }, Wc = ["textContent"], Gc = ["textContent"], Kc = ["textContent"], qc = {
|
|
2218
2149
|
key: 0,
|
|
2219
2150
|
class: "flex items-center justify-end flex-row flex-nowrap"
|
|
2220
|
-
},
|
|
2151
|
+
}, Jc = 850, Yc = /* @__PURE__ */ U({
|
|
2221
2152
|
__name: "ResourceTable",
|
|
2222
2153
|
props: {
|
|
2223
2154
|
resources: {},
|
|
@@ -2274,12 +2205,12 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
|
|
|
2274
2205
|
"update:modelValue"
|
|
2275
2206
|
],
|
|
2276
2207
|
setup(e, { emit: t }) {
|
|
2277
|
-
let n = t, r =
|
|
2278
|
-
space:
|
|
2279
|
-
resources:
|
|
2280
|
-
selectedIds:
|
|
2208
|
+
let n = t, r = ji(), i = vi(), { getMatchingSpace: a } = O(), { interceptModifierClick: o } = pi(), { getParentFolderLink: s, getParentFolderLinkIconAdditionalAttributes: c, getParentFolderName: l, getPathPrefix: d } = Ba({ space: z(e.space) }), { isSticky: f } = ft(), { $gettext: p, $ngettext: m, current: h } = Q(), { isLocationPicker: g, isFilePicker: _ } = ci(), { selectedResources: v, disabledResources: b, isResourceSelected: x, fileContainerClicked: S, fileNameClicked: C, fileCheckboxClicked: ee, isResourceDisabled: w, isResourceInDeleteQueue: T, isResourceClickable: te, isResourceCut: E, getResourceLink: D, dragItem: A, dragSelection: ne, dragStart: re, fileDropped: j, setDropStyling: ie, shouldShowContextDrop: ae, showContextMenuOnRightClick: N, showContextMenuOnBtnClick: oe, selectAllCheckboxLabel: se, getResourceCheckboxLabel: ce, toggleSelectionAll: le, areAllResourcesSelected: ue } = Yi({
|
|
2209
|
+
space: q(() => e.space),
|
|
2210
|
+
resources: q(() => e.resources),
|
|
2211
|
+
selectedIds: q(() => e.selectedIds),
|
|
2281
2212
|
emit: n
|
|
2282
|
-
}),
|
|
2213
|
+
}), de = Oi(), { isSideBarOpen: fe } = $(de), { userContextReady: pe } = $(Ti()), { areFileExtensionsShown: me, latestSelectedId: he } = $(dr()), { width: ge } = yo(), _e = q(() => i.filesTags && ge.value >= Jc), { actions: ve } = Mr(), { actions: ye } = xe(), be = q(() => R(ve)[0].handler), Se = q(() => R(ye)[0].handler), Ce = z({}), we = (e) => p("Search for tag %{tag}", { tag: e }), Te = q(() => {
|
|
2283
2214
|
if (e.resources.length === 0) return [];
|
|
2284
2215
|
let t = e.resources[0], n = [];
|
|
2285
2216
|
e.isSelectable && n.push({
|
|
@@ -2289,7 +2220,7 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
|
|
|
2289
2220
|
headerType: "slot",
|
|
2290
2221
|
width: "shrink"
|
|
2291
2222
|
});
|
|
2292
|
-
let r =
|
|
2223
|
+
let r = Ie(t);
|
|
2293
2224
|
return n.push(...[
|
|
2294
2225
|
{
|
|
2295
2226
|
name: "name",
|
|
@@ -2386,7 +2317,7 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
|
|
|
2386
2317
|
alignH: "right",
|
|
2387
2318
|
wrap: "nowrap",
|
|
2388
2319
|
width: "shrink",
|
|
2389
|
-
accessibleLabelCallback: (e) =>
|
|
2320
|
+
accessibleLabelCallback: (e) => P(e.mdate) + " (" + je(e.mdate) + ")"
|
|
2390
2321
|
},
|
|
2391
2322
|
{
|
|
2392
2323
|
name: "sdate",
|
|
@@ -2395,7 +2326,7 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
|
|
|
2395
2326
|
alignH: "right",
|
|
2396
2327
|
wrap: "nowrap",
|
|
2397
2328
|
width: "shrink",
|
|
2398
|
-
accessibleLabelCallback: (e) =>
|
|
2329
|
+
accessibleLabelCallback: (e) => P(e.sdate) + " (" + je(e.sdate) + ")"
|
|
2399
2330
|
},
|
|
2400
2331
|
{
|
|
2401
2332
|
name: "ddate",
|
|
@@ -2404,13 +2335,13 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
|
|
|
2404
2335
|
alignH: "right",
|
|
2405
2336
|
wrap: "nowrap",
|
|
2406
2337
|
width: "shrink",
|
|
2407
|
-
accessibleLabelCallback: (e) =>
|
|
2338
|
+
accessibleLabelCallback: (e) => P(e.ddate) + " (" + je(e.ddate) + ")"
|
|
2408
2339
|
}
|
|
2409
2340
|
].filter((n) => {
|
|
2410
|
-
if (n.name === "tags" && !
|
|
2341
|
+
if (n.name === "tags" && !R(_e)) return !1;
|
|
2411
2342
|
if (n.name === "indicators") return !0;
|
|
2412
2343
|
let r;
|
|
2413
|
-
return r = n.prop ?
|
|
2344
|
+
return r = n.prop ? Kt(t, n.prop) !== void 0 : Object.prototype.hasOwnProperty.call(t, n.name), e.fieldsDisplayed ? r && e.fieldsDisplayed.includes(n.name) : r;
|
|
2414
2345
|
}).map((e) => {
|
|
2415
2346
|
let t = r.find((t) => t.name === e.name);
|
|
2416
2347
|
return t && Object.assign(e, {
|
|
@@ -2425,39 +2356,39 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
|
|
|
2425
2356
|
wrap: "nowrap",
|
|
2426
2357
|
width: "shrink"
|
|
2427
2358
|
}), n;
|
|
2428
|
-
}),
|
|
2429
|
-
let t =
|
|
2430
|
-
return
|
|
2359
|
+
}), Ee = (e) => {
|
|
2360
|
+
let t = R(r.currentRoute).query?.term;
|
|
2361
|
+
return Kr("files-common-search", { query: {
|
|
2431
2362
|
provider: "files.sdk",
|
|
2432
2363
|
q_tags: e,
|
|
2433
2364
|
...t && { term: t }
|
|
2434
2365
|
} });
|
|
2435
|
-
},
|
|
2366
|
+
}, De = (e) => R(pe) ? { to: Ee(e) } : {}, Oe = (e) => e.id === R(he), ke = (t) => e.showRenameQuickAction ? so(t) ? R(ye).filter((e) => e.isVisible({ resources: [t] })).length : R(ve).filter((n) => n.isVisible({
|
|
2436
2367
|
space: e.space,
|
|
2437
2368
|
resources: [t]
|
|
2438
|
-
})).length : !1,
|
|
2439
|
-
if (so(e)) return
|
|
2440
|
-
|
|
2369
|
+
})).length : !1, Ae = (e) => {
|
|
2370
|
+
if (so(e)) return R(Se)({ resources: [e] });
|
|
2371
|
+
R(be)({
|
|
2441
2372
|
space: a(e),
|
|
2442
2373
|
resources: [e]
|
|
2443
2374
|
});
|
|
2444
|
-
},
|
|
2375
|
+
}, je = (e) => bn(new Date(e), h), P = (e) => ra(new Date(e), h), Me = (e) => {
|
|
2445
2376
|
if (!lo(e)) return;
|
|
2446
2377
|
let t = e.type === "folder" ? p("folder") : p("file"), n = e.sharedWith.filter(({ shareType: e }) => Ya.authenticated.includes(Ya.getByValue(e))).length;
|
|
2447
2378
|
return n ? m("This %{ resourceType } is shared via %{ shareCount } invite", "This %{ resourceType } is shared via %{ shareCount } invites", n, {
|
|
2448
2379
|
resourceType: t,
|
|
2449
2380
|
shareCount: n.toString()
|
|
2450
2381
|
}) : "";
|
|
2451
|
-
},
|
|
2382
|
+
}, Ne = (e) => lo(e) ? p("This %{ resourceType } is shared by %{ user }", {
|
|
2452
2383
|
resourceType: e.type === "folder" ? p("folder") : p("file"),
|
|
2453
2384
|
user: e.sharedBy.map(({ displayName: e }) => e).join(", ")
|
|
2454
|
-
}) : "",
|
|
2385
|
+
}) : "", Pe = (e) => lo(e) ? e.sharedBy.map((e) => ({
|
|
2455
2386
|
displayName: e.displayName,
|
|
2456
2387
|
name: e.displayName,
|
|
2457
2388
|
avatarType: Ya.user.key,
|
|
2458
2389
|
username: e.id,
|
|
2459
2390
|
userId: e.id
|
|
2460
|
-
})) : [],
|
|
2391
|
+
})) : [], Fe = (e) => lo(e) ? e.sharedWith.filter(({ shareType: e }) => Ya.authenticated.includes(Ya.getByValue(e))).map((e) => ({
|
|
2461
2392
|
displayName: e.displayName,
|
|
2462
2393
|
name: e.displayName,
|
|
2463
2394
|
avatarType: Ya.getByValue(e.shareType).key,
|
|
@@ -2465,57 +2396,57 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
|
|
|
2465
2396
|
userId: e.id
|
|
2466
2397
|
})) : [];
|
|
2467
2398
|
return (t, n) => {
|
|
2468
|
-
let r =
|
|
2469
|
-
return Z(), X(
|
|
2399
|
+
let r = I("oc-checkbox"), i = I("oc-icon"), a = I("oc-tag"), m = I("oc-avatars"), h = ti("oc-tooltip");
|
|
2400
|
+
return Z(), X(W, null, [J(R(Hr), va(t.$attrs, {
|
|
2470
2401
|
id: "files-space-table",
|
|
2471
2402
|
class: [{
|
|
2472
|
-
condensed: e.viewMode ===
|
|
2403
|
+
condensed: e.viewMode === R(ma).name.condensedTable,
|
|
2473
2404
|
"files-table": e.resourceType === "file",
|
|
2474
|
-
"files-table-squashed": e.resourceType === "file" &&
|
|
2405
|
+
"files-table-squashed": e.resourceType === "file" && R(fe),
|
|
2475
2406
|
"spaces-table": e.resourceType === "space",
|
|
2476
|
-
"spaces-table-squashed": e.resourceType === "space" &&
|
|
2407
|
+
"spaces-table-squashed": e.resourceType === "space" && R(fe)
|
|
2477
2408
|
}],
|
|
2478
2409
|
data: e.resources,
|
|
2479
|
-
fields:
|
|
2410
|
+
fields: Te.value,
|
|
2480
2411
|
highlighted: e.selectedIds,
|
|
2481
|
-
disabled:
|
|
2482
|
-
sticky:
|
|
2412
|
+
disabled: R(b),
|
|
2413
|
+
sticky: R(f),
|
|
2483
2414
|
"header-position": e.headerPosition,
|
|
2484
2415
|
"drag-drop": e.dragDrop,
|
|
2485
2416
|
hover: e.hover,
|
|
2486
2417
|
"item-dom-selector": e.resourceDomSelector,
|
|
2487
|
-
selection:
|
|
2418
|
+
selection: R(v),
|
|
2488
2419
|
"sort-by": e.sortBy,
|
|
2489
2420
|
"sort-dir": e.sortDir,
|
|
2490
2421
|
lazy: e.lazy,
|
|
2491
2422
|
"padding-x": "medium",
|
|
2492
|
-
onHighlight: n[1] ||= (e) =>
|
|
2423
|
+
onHighlight: n[1] ||= (e) => R(S)({
|
|
2493
2424
|
resource: e[0],
|
|
2494
2425
|
event: e[1]
|
|
2495
2426
|
}),
|
|
2496
|
-
onContextmenuClicked: n[2] ||= (e, t, n) =>
|
|
2497
|
-
onItemDropped: n[3] ||= (e) =>
|
|
2498
|
-
onItemDragged: n[4] ||= (e) =>
|
|
2499
|
-
onDropRowStyling:
|
|
2427
|
+
onContextmenuClicked: n[2] ||= (e, t, n) => R(N)(t, n, Ce.value[n.id]),
|
|
2428
|
+
onItemDropped: n[3] ||= (e) => R(j)(e[0], e[1]),
|
|
2429
|
+
onItemDragged: n[4] ||= (e) => R(re)(e[0], e[1]),
|
|
2430
|
+
onDropRowStyling: R(ie),
|
|
2500
2431
|
onSort: n[5] ||= (e) => t.$emit("sort", e),
|
|
2501
2432
|
"onUpdate:modelValue": n[6] ||= (e) => t.$emit("update:modelValue", e)
|
|
2502
|
-
}),
|
|
2503
|
-
name:
|
|
2433
|
+
}), ur({
|
|
2434
|
+
name: F(({ item: n }) => [Y("div", { class: V(["resource-table-resource-wrapper flex items-center", [{ "resource-table-resource-wrapper-limit-max-width": ke(n) }]]) }, [
|
|
2504
2435
|
k(t.$slots, "image", { resource: n }),
|
|
2505
|
-
(Z(),
|
|
2436
|
+
(Z(), H(y, {
|
|
2506
2437
|
key: `${n.path}-${e.resourceDomSelector(n)}-${n.thumbnail}`,
|
|
2507
2438
|
resource: n,
|
|
2508
|
-
"path-prefix":
|
|
2439
|
+
"path-prefix": R(d)(n),
|
|
2509
2440
|
"is-path-displayed": e.arePathsDisplayed,
|
|
2510
|
-
"parent-folder-name":
|
|
2441
|
+
"parent-folder-name": R(l)(n),
|
|
2511
2442
|
"is-icon-displayed": !t.$slots.image,
|
|
2512
|
-
"is-extension-displayed":
|
|
2513
|
-
"is-resource-clickable":
|
|
2514
|
-
link:
|
|
2515
|
-
"parent-folder-link":
|
|
2516
|
-
"parent-folder-link-icon-additional-attributes":
|
|
2517
|
-
class:
|
|
2518
|
-
onClick:
|
|
2443
|
+
"is-extension-displayed": R(me),
|
|
2444
|
+
"is-resource-clickable": R(te)(n, e.areResourcesClickable),
|
|
2445
|
+
link: R(D)(n),
|
|
2446
|
+
"parent-folder-link": R(s)(n),
|
|
2447
|
+
"parent-folder-link-icon-additional-attributes": R(c)(n),
|
|
2448
|
+
class: V({ "opacity-60": R(E)(n) }),
|
|
2449
|
+
onClick: Ki((e) => R(C)({
|
|
2519
2450
|
resource: n,
|
|
2520
2451
|
event: e
|
|
2521
2452
|
}), ["stop"])
|
|
@@ -2533,17 +2464,17 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
|
|
|
2533
2464
|
"class",
|
|
2534
2465
|
"onClick"
|
|
2535
2466
|
])),
|
|
2536
|
-
|
|
2467
|
+
ke(n) ? (Z(), H(R(lr), {
|
|
2537
2468
|
key: 0,
|
|
2538
2469
|
class: "resource-table-edit-name inline-flex raw-hover-surface p-1 ml-1",
|
|
2539
2470
|
appearance: "raw",
|
|
2540
|
-
"aria-label":
|
|
2541
|
-
title:
|
|
2542
|
-
onClick:
|
|
2543
|
-
|
|
2471
|
+
"aria-label": R(p)("Rename file »%{name}«", { name: n.name }),
|
|
2472
|
+
title: R(p)("Rename"),
|
|
2473
|
+
onClick: Ki((e) => {
|
|
2474
|
+
R(o)(e, n) || Ae(n);
|
|
2544
2475
|
}, ["stop"])
|
|
2545
2476
|
}, {
|
|
2546
|
-
default:
|
|
2477
|
+
default: F(() => [J(i, {
|
|
2547
2478
|
name: "edit-2",
|
|
2548
2479
|
"fill-type": "line",
|
|
2549
2480
|
size: "small",
|
|
@@ -2554,67 +2485,67 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
|
|
|
2554
2485
|
"aria-label",
|
|
2555
2486
|
"title",
|
|
2556
2487
|
"onClick"
|
|
2557
|
-
])) :
|
|
2488
|
+
])) : K("", !0)
|
|
2558
2489
|
], 2), k(t.$slots, "additionalResourceContent", { resource: n })]),
|
|
2559
|
-
syncEnabled:
|
|
2560
|
-
size:
|
|
2561
|
-
tags:
|
|
2562
|
-
default:
|
|
2490
|
+
syncEnabled: F(({ item: e }) => [k(t.$slots, "syncEnabled", { resource: e })]),
|
|
2491
|
+
size: F(({ item: e }) => [J(jc, { size: e.size || NaN }, null, 8, ["size"])]),
|
|
2492
|
+
tags: F(({ item: e }) => [(Z(!0), X(W, null, M(e.tags.slice(0, 2), (e) => (Z(), H(u(R(pe) ? "router-link" : "span"), va({ key: e }, { ref_for: !0 }, De(e), { class: "resource-table-tag-wrapper" }), {
|
|
2493
|
+
default: F(() => [L((Z(), H(a, {
|
|
2563
2494
|
class: "resource-table-tag ml-1 max-w-20",
|
|
2564
2495
|
rounded: !0,
|
|
2565
2496
|
size: "small"
|
|
2566
2497
|
}, {
|
|
2567
|
-
default:
|
|
2498
|
+
default: F(() => [J(i, {
|
|
2568
2499
|
name: "price-tag-3",
|
|
2569
2500
|
size: "small"
|
|
2570
|
-
}), Y("span",
|
|
2501
|
+
}), Y("span", Uc, G(e), 1)]),
|
|
2571
2502
|
_: 2
|
|
2572
|
-
}, 1024)), [[h,
|
|
2503
|
+
}, 1024)), [[h, we(e)]])]),
|
|
2573
2504
|
_: 2
|
|
2574
|
-
}, 1040))), 128)), e.tags.length > 2 ? (Z(),
|
|
2505
|
+
}, 1040))), 128)), e.tags.length > 2 ? (Z(), H(a, {
|
|
2575
2506
|
key: 0,
|
|
2576
2507
|
size: "small",
|
|
2577
2508
|
class: "resource-table-tag-more align-text-bottom cursor-pointer",
|
|
2578
|
-
onClick: n[0] ||= (e) =>
|
|
2509
|
+
onClick: n[0] ||= (e) => R(de).openSideBar()
|
|
2579
2510
|
}, {
|
|
2580
|
-
default:
|
|
2511
|
+
default: F(() => [Cr(" + " + G(e.tags.length - 2), 1)]),
|
|
2581
2512
|
_: 2
|
|
2582
|
-
}, 1024)) :
|
|
2583
|
-
manager:
|
|
2584
|
-
members:
|
|
2585
|
-
totalQuota:
|
|
2586
|
-
usedQuota:
|
|
2587
|
-
remainingQuota:
|
|
2588
|
-
mdate:
|
|
2513
|
+
}, 1024)) : K("", !0)]),
|
|
2514
|
+
manager: F(({ item: e }) => [k(t.$slots, "manager", { resource: e })]),
|
|
2515
|
+
members: F(({ item: e }) => [k(t.$slots, "members", { resource: e })]),
|
|
2516
|
+
totalQuota: F(({ item: e }) => [k(t.$slots, "totalQuota", { resource: e })]),
|
|
2517
|
+
usedQuota: F(({ item: e }) => [k(t.$slots, "usedQuota", { resource: e })]),
|
|
2518
|
+
remainingQuota: F(({ item: e }) => [k(t.$slots, "remainingQuota", { resource: e })]),
|
|
2519
|
+
mdate: F(({ item: e }) => [L(Y("span", {
|
|
2589
2520
|
tabindex: "0",
|
|
2590
|
-
textContent:
|
|
2591
|
-
}, null, 8,
|
|
2592
|
-
indicators:
|
|
2521
|
+
textContent: G(P(e.mdate))
|
|
2522
|
+
}, null, 8, Wc), [[h, je(e.mdate)]])]),
|
|
2523
|
+
indicators: F(({ item: t }) => [J(Mc, {
|
|
2593
2524
|
space: e.space,
|
|
2594
2525
|
resource: t,
|
|
2595
|
-
"disable-handler":
|
|
2526
|
+
"disable-handler": R(w)(t)
|
|
2596
2527
|
}, null, 8, [
|
|
2597
2528
|
"space",
|
|
2598
2529
|
"resource",
|
|
2599
2530
|
"disable-handler"
|
|
2600
2531
|
])]),
|
|
2601
|
-
sdate:
|
|
2532
|
+
sdate: F(({ item: e }) => [L(Y("span", {
|
|
2602
2533
|
tabindex: "0",
|
|
2603
|
-
textContent:
|
|
2604
|
-
}, null, 8,
|
|
2605
|
-
ddate:
|
|
2534
|
+
textContent: G(P(e.sdate))
|
|
2535
|
+
}, null, 8, Gc), [[h, je(e.sdate)]])]),
|
|
2536
|
+
ddate: F(({ item: e }) => [L(Y("p", {
|
|
2606
2537
|
tabindex: "0",
|
|
2607
2538
|
class: "m-0",
|
|
2608
|
-
textContent:
|
|
2609
|
-
}, null, 8,
|
|
2610
|
-
sharedBy:
|
|
2539
|
+
textContent: G(P(e.ddate))
|
|
2540
|
+
}, null, 8, Kc), [[h, je(e.ddate)]])]),
|
|
2541
|
+
sharedBy: F(({ item: e }) => [J(m, {
|
|
2611
2542
|
class: "flex items-center justify-end flex-row flex-nowrap",
|
|
2612
2543
|
"is-tooltip-displayed": !0,
|
|
2613
|
-
items:
|
|
2614
|
-
"accessible-description":
|
|
2544
|
+
items: Pe(e),
|
|
2545
|
+
"accessible-description": Ne(e),
|
|
2615
2546
|
"hover-effect": ""
|
|
2616
2547
|
}, {
|
|
2617
|
-
userAvatars:
|
|
2548
|
+
userAvatars: F(({ avatars: e, width: t }) => [(Z(!0), X(W, null, M(e, (e) => (Z(), H(R(Nc), {
|
|
2618
2549
|
key: e.userId,
|
|
2619
2550
|
"user-id": e.userId,
|
|
2620
2551
|
"user-name": e.displayName,
|
|
@@ -2626,17 +2557,17 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
|
|
|
2626
2557
|
]))), 128))]),
|
|
2627
2558
|
_: 1
|
|
2628
2559
|
}, 8, ["items", "accessible-description"])]),
|
|
2629
|
-
sharedWith:
|
|
2560
|
+
sharedWith: F(({ item: e }) => [J(m, {
|
|
2630
2561
|
class: "flex items-center justify-end flex-row flex-nowrap",
|
|
2631
2562
|
"data-testid": "resource-table-shared-with",
|
|
2632
|
-
items:
|
|
2563
|
+
items: Fe(e),
|
|
2633
2564
|
stacked: !0,
|
|
2634
2565
|
"max-displayed": 3,
|
|
2635
2566
|
"is-tooltip-displayed": !0,
|
|
2636
|
-
"accessible-description":
|
|
2567
|
+
"accessible-description": Me(e),
|
|
2637
2568
|
"hover-effect": ""
|
|
2638
2569
|
}, {
|
|
2639
|
-
userAvatars:
|
|
2570
|
+
userAvatars: F(({ avatars: e, width: t }) => [(Z(!0), X(W, null, M(e, (e) => (Z(), H(R(Nc), {
|
|
2640
2571
|
key: e.userId,
|
|
2641
2572
|
"user-id": e.userId,
|
|
2642
2573
|
"user-name": e.displayName,
|
|
@@ -2648,61 +2579,61 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
|
|
|
2648
2579
|
]))), 128))]),
|
|
2649
2580
|
_: 1
|
|
2650
2581
|
}, 8, ["items", "accessible-description"])]),
|
|
2651
|
-
actions:
|
|
2652
|
-
ref: (e) =>
|
|
2582
|
+
actions: F(({ item: n }) => [R(ae)(n) ? (Z(), X("div", qc, [k(t.$slots, "quickActions", { resource: n }), J(yc, {
|
|
2583
|
+
ref: (e) => Ce.value[n.id] = e?.drop,
|
|
2653
2584
|
title: n.name,
|
|
2654
2585
|
item: n,
|
|
2655
2586
|
"resource-dom-selector": e.resourceDomSelector,
|
|
2656
2587
|
class: "resource-table-btn-action-dropdown",
|
|
2657
|
-
onQuickActionClicked: (e) =>
|
|
2588
|
+
onQuickActionClicked: (e) => R(oe)(e, n, Ce.value[n.id])
|
|
2658
2589
|
}, {
|
|
2659
|
-
contextMenu:
|
|
2590
|
+
contextMenu: F(() => [k(t.$slots, "contextMenu", { resource: n })]),
|
|
2660
2591
|
_: 2
|
|
2661
2592
|
}, 1032, [
|
|
2662
2593
|
"title",
|
|
2663
2594
|
"item",
|
|
2664
2595
|
"resource-dom-selector",
|
|
2665
2596
|
"onQuickActionClicked"
|
|
2666
|
-
])])) :
|
|
2597
|
+
])])) : K("", !0)]),
|
|
2667
2598
|
_: 2
|
|
2668
2599
|
}, [
|
|
2669
|
-
!
|
|
2600
|
+
!R(g) && !R(_) ? {
|
|
2670
2601
|
name: "selectHeader",
|
|
2671
|
-
fn:
|
|
2602
|
+
fn: F(() => [Y("div", Hc, [L(J(r, {
|
|
2672
2603
|
id: "resource-table-select-all",
|
|
2673
2604
|
size: "large",
|
|
2674
|
-
label:
|
|
2675
|
-
disabled: e.resources.length ===
|
|
2605
|
+
label: R(se),
|
|
2606
|
+
disabled: e.resources.length === R(b).length,
|
|
2676
2607
|
"label-hidden": !0,
|
|
2677
|
-
"model-value":
|
|
2678
|
-
onClick:
|
|
2608
|
+
"model-value": R(ue),
|
|
2609
|
+
onClick: Ki(R(le), ["stop"])
|
|
2679
2610
|
}, null, 8, [
|
|
2680
2611
|
"label",
|
|
2681
2612
|
"disabled",
|
|
2682
2613
|
"model-value",
|
|
2683
2614
|
"onClick"
|
|
2684
|
-
]), [[h,
|
|
2615
|
+
]), [[h, R(se)]])])]),
|
|
2685
2616
|
key: "0"
|
|
2686
2617
|
} : void 0,
|
|
2687
|
-
!
|
|
2618
|
+
!R(g) && !R(_) ? {
|
|
2688
2619
|
name: "select",
|
|
2689
|
-
fn:
|
|
2620
|
+
fn: F(({ item: t }) => [R(T)(t.id) ? (Z(), H(R(Di), {
|
|
2690
2621
|
key: 0,
|
|
2691
2622
|
class: "inline-flex ml-1",
|
|
2692
2623
|
size: "medium",
|
|
2693
|
-
"aria-label":
|
|
2694
|
-
}, null, 8, ["aria-label"])) : (Z(),
|
|
2624
|
+
"aria-label": R(p)("File is being processed")
|
|
2625
|
+
}, null, 8, ["aria-label"])) : (Z(), H(r, {
|
|
2695
2626
|
key: 1,
|
|
2696
2627
|
id: `resource-table-select-${e.resourceDomSelector(t)}`,
|
|
2697
|
-
label:
|
|
2628
|
+
label: R(ce)(t),
|
|
2698
2629
|
"label-hidden": !0,
|
|
2699
2630
|
size: "large",
|
|
2700
|
-
disabled:
|
|
2701
|
-
"model-value":
|
|
2702
|
-
outline:
|
|
2631
|
+
disabled: R(w)(t),
|
|
2632
|
+
"model-value": R(x)(t),
|
|
2633
|
+
outline: Oe(t),
|
|
2703
2634
|
"data-test-selection-resource-name": t.name,
|
|
2704
2635
|
"data-test-selection-resource-path": t.path,
|
|
2705
|
-
onClick:
|
|
2636
|
+
onClick: Ki((e) => R(ee)({
|
|
2706
2637
|
resource: t,
|
|
2707
2638
|
event: e
|
|
2708
2639
|
}), ["stop"])
|
|
@@ -2720,7 +2651,7 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
|
|
|
2720
2651
|
} : void 0,
|
|
2721
2652
|
t.$slots.footer ? {
|
|
2722
2653
|
name: "footer",
|
|
2723
|
-
fn:
|
|
2654
|
+
fn: F(() => [k(t.$slots, "footer")]),
|
|
2724
2655
|
key: "2"
|
|
2725
2656
|
} : void 0
|
|
2726
2657
|
]), 1040, [
|
|
@@ -2739,25 +2670,25 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
|
|
|
2739
2670
|
"sort-dir",
|
|
2740
2671
|
"lazy",
|
|
2741
2672
|
"onDropRowStyling"
|
|
2742
|
-
]),
|
|
2673
|
+
]), R(A) ? (Z(), H(Gn, {
|
|
2743
2674
|
key: 0,
|
|
2744
2675
|
to: "body"
|
|
2745
|
-
}, [
|
|
2676
|
+
}, [J(Dc, {
|
|
2746
2677
|
ref: "ghostElement",
|
|
2747
|
-
"preview-items": [
|
|
2748
|
-
}, null, 8, ["preview-items"])])) :
|
|
2678
|
+
"preview-items": [R(A), ...R(ne)]
|
|
2679
|
+
}, null, 8, ["preview-items"])])) : K("", !0)], 64);
|
|
2749
2680
|
};
|
|
2750
2681
|
}
|
|
2751
|
-
}),
|
|
2682
|
+
}), Xc = {
|
|
2752
2683
|
key: 0,
|
|
2753
2684
|
class: "oc-tile-card-lazy-shimmer h-30 overflow-hidden relative after:absolute after:inset-0 after:transform-[translateX(-100%)] opacity-20 after:animate-shimmer"
|
|
2754
|
-
},
|
|
2685
|
+
}, Zc = { class: "z-10 absolute top-0 left-0 [&_input]:not-[.oc-checkbox-checked]:bg-role-surface-container" }, Qc = {
|
|
2755
2686
|
key: 0,
|
|
2756
2687
|
class: "oc-tile-card-loading-spinner z-990 m-2"
|
|
2757
|
-
},
|
|
2688
|
+
}, $c = ["textContent"], el = ["aria-label"], tl = { class: "flex justify-between items-center" }, nl = { class: "flex items-center truncate resource-name-wrapper text-role-on-surface overflow-hidden" }, rl = { class: "flex items-center" }, il = {
|
|
2758
2689
|
key: 0,
|
|
2759
2690
|
class: "text-left my-0 truncate"
|
|
2760
|
-
},
|
|
2691
|
+
}, al = ["textContent"], ol = /* @__PURE__ */ U({
|
|
2761
2692
|
__name: "ResourceTile",
|
|
2762
2693
|
props: {
|
|
2763
2694
|
resource: {},
|
|
@@ -2800,32 +2731,32 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
|
|
|
2800
2731
|
"tileClicked"
|
|
2801
2732
|
],
|
|
2802
2733
|
setup(e, { emit: t }) {
|
|
2803
|
-
let n = t, { $gettext: r } = Q(), { getParentFolderName: i, getParentFolderLink: a } = Ba({ space:
|
|
2734
|
+
let n = t, { $gettext: r } = Q(), { getParentFolderName: i, getParentFolderLink: a } = Ba({ space: z(e.space) }), o = de("observerTarget"), s = q(() => R(o)?.$el), c = q(() => e.resource.locked || e.resource.processing), l = q(() => e.resource.locked ? {
|
|
2804
2735
|
name: "lock",
|
|
2805
2736
|
fillType: "fill"
|
|
2806
2737
|
} : e.resource.processing ? {
|
|
2807
2738
|
name: "loop-right",
|
|
2808
2739
|
fillType: "line"
|
|
2809
|
-
} : {}), u =
|
|
2740
|
+
} : {}), u = q(() => e.resource.locked ? r("This item is locked") : null), d = q(() => fo(e.resource) ? e.resource.description : ""), { isVisible: f } = e.lazy ? ir({
|
|
2810
2741
|
target: s,
|
|
2811
2742
|
onVisibleCallback: () => n("itemVisible")
|
|
2812
|
-
}) : { isVisible:
|
|
2743
|
+
}) : { isVisible: z(!0) }, p = q(() => !R(f));
|
|
2813
2744
|
return e.lazy || n("itemVisible"), (t, n) => {
|
|
2814
|
-
let s =
|
|
2815
|
-
return Z(),
|
|
2745
|
+
let s = I("oc-spinner"), f = I("oc-tag"), m = I("oc-image"), h = I("oc-icon"), g = ti("oc-tooltip");
|
|
2746
|
+
return Z(), H(R(da), {
|
|
2816
2747
|
ref_key: "observerTarget",
|
|
2817
2748
|
ref: o,
|
|
2818
2749
|
"body-class": "p-0",
|
|
2819
|
-
class:
|
|
2750
|
+
class: V(["oc-tile-card flex flex-col h-full shadow-none [&.item-accentuated]:bg-role-secondary-container", {
|
|
2820
2751
|
"oc-tile-card-selected bg-role-secondary-container outline-2 outline-role-outline": e.isResourceSelected,
|
|
2821
2752
|
"bg-role-surface-container hover:bg-role-surface-container-highest outline outline-role-surface-container-highest": !e.isResourceSelected,
|
|
2822
2753
|
"oc-tile-card-disabled opacity-70 grayscale-60 pointer-events-none": e.isResourceDisabled,
|
|
2823
|
-
"state-trashed [&_.tile-preview]:opacity-80 [&_.tile-default-image_svg]:opacity-80 [&_.tile-preview]:grayscale [&_.tile-default-image_svg]:grayscale":
|
|
2754
|
+
"state-trashed [&_.tile-preview]:opacity-80 [&_.tile-default-image_svg]:opacity-80 [&_.tile-preview]:grayscale [&_.tile-default-image_svg]:grayscale": R(so)(e.resource) && e.resource.disabled
|
|
2824
2755
|
}]),
|
|
2825
2756
|
"data-item-id": e.resource.id,
|
|
2826
2757
|
onContextmenu: n[4] ||= (e) => t.$emit("contextmenu", e)
|
|
2827
2758
|
}, {
|
|
2828
|
-
default:
|
|
2759
|
+
default: F(() => [p.value ? (Z(), X("div", Xc)) : (Z(), X(W, { key: 1 }, [J(De, {
|
|
2829
2760
|
class: "oc-card-media-top flex justify-center items-center m-0 w-full relative aspect-[16/9]",
|
|
2830
2761
|
resource: e.resource,
|
|
2831
2762
|
link: e.resourceRoute,
|
|
@@ -2833,45 +2764,45 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
|
|
|
2833
2764
|
tabindex: "-1",
|
|
2834
2765
|
onClick: n[1] ||= (e) => t.$emit("fileNameClicked", e)
|
|
2835
2766
|
}, {
|
|
2836
|
-
default:
|
|
2837
|
-
Y("div",
|
|
2767
|
+
default: F(() => [
|
|
2768
|
+
Y("div", Zc, [e.isLoading ? (Z(), X("div", Qc, [J(s, { "aria-label": R(r)("File is being processed") }, null, 8, ["aria-label"])])) : k(t.$slots, "selection", {
|
|
2838
2769
|
key: 1,
|
|
2839
2770
|
item: e.resource
|
|
2840
2771
|
})]),
|
|
2841
|
-
|
|
2772
|
+
R(so)(e.resource) && e.resource.disabled ? (Z(), H(f, {
|
|
2842
2773
|
key: 0,
|
|
2843
2774
|
class: "z-10 absolute text-role-on-surface",
|
|
2844
2775
|
type: "span"
|
|
2845
2776
|
}, {
|
|
2846
|
-
default:
|
|
2777
|
+
default: F(() => [Y("span", { textContent: G(R(r)("Disabled")) }, null, 8, $c)]),
|
|
2847
2778
|
_: 1
|
|
2848
|
-
})) :
|
|
2849
|
-
|
|
2850
|
-
class:
|
|
2779
|
+
})) : K("", !0),
|
|
2780
|
+
L((Z(), X("div", {
|
|
2781
|
+
class: V(["oc-tile-card-preview flex items-center justify-center text-center size-full absolute", {
|
|
2851
2782
|
"p-2": e.isResourceSelected,
|
|
2852
2783
|
"hover:p-2": !e.isResourceSelected
|
|
2853
2784
|
}]),
|
|
2854
2785
|
"aria-label": u.value
|
|
2855
|
-
}, [k(t.$slots, "imageField", { item: e.resource }, () => [e.resource.thumbnail ? (Z(),
|
|
2786
|
+
}, [k(t.$slots, "imageField", { item: e.resource }, () => [e.resource.thumbnail ? (Z(), H(m, {
|
|
2856
2787
|
key: 0,
|
|
2857
|
-
class:
|
|
2788
|
+
class: V(["tile-preview rounded-t-sm size-full object-cover aspect-[16/9] pointer-events-none", { "rounded-sm": e.isResourceSelected }]),
|
|
2858
2789
|
src: e.resource.thumbnail,
|
|
2859
2790
|
"data-test-thumbnail-resource-name": e.resource.name,
|
|
2860
|
-
onClick: n[0] ||=
|
|
2791
|
+
onClick: n[0] ||= Ki((n) => t.$emit("tileClicked", [e.resource, n]), ["stop"])
|
|
2861
2792
|
}, null, 8, [
|
|
2862
2793
|
"class",
|
|
2863
2794
|
"src",
|
|
2864
2795
|
"data-test-thumbnail-resource-name"
|
|
2865
|
-
])) : (Z(),
|
|
2796
|
+
])) : (Z(), H(nn, {
|
|
2866
2797
|
key: 1,
|
|
2867
2798
|
resource: e.resource,
|
|
2868
2799
|
size: e.resourceIconSize,
|
|
2869
2800
|
class: "tile-default-image pt-1 relative"
|
|
2870
|
-
},
|
|
2801
|
+
}, ur({ _: 2 }, [c.value ? {
|
|
2871
2802
|
name: "status",
|
|
2872
|
-
fn:
|
|
2803
|
+
fn: F(() => [J(h, va(l.value, { size: "xsmall" }), null, 16)]),
|
|
2873
2804
|
key: "0"
|
|
2874
|
-
} : void 0]), 1032, ["resource", "size"]))])], 10,
|
|
2805
|
+
} : void 0]), 1032, ["resource", "size"]))])], 10, el)), [[g, u.value]])
|
|
2875
2806
|
]),
|
|
2876
2807
|
_: 3
|
|
2877
2808
|
}, 8, [
|
|
@@ -2880,18 +2811,18 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
|
|
|
2880
2811
|
"is-resource-clickable"
|
|
2881
2812
|
]), Y("div", {
|
|
2882
2813
|
class: "p-2",
|
|
2883
|
-
onClick: n[3] ||=
|
|
2814
|
+
onClick: n[3] ||= Ki((n) => t.$emit("tileClicked", [e.resource, n]), ["stop"])
|
|
2884
2815
|
}, [
|
|
2885
|
-
Y("div",
|
|
2816
|
+
Y("div", tl, [Y("div", nl, [J(y, {
|
|
2886
2817
|
resource: e.resource,
|
|
2887
2818
|
"is-icon-displayed": !1,
|
|
2888
2819
|
"is-extension-displayed": e.isExtensionDisplayed,
|
|
2889
2820
|
"is-resource-clickable": e.isResourceClickable,
|
|
2890
2821
|
"is-path-displayed": e.isPathDisplayed,
|
|
2891
|
-
"parent-folder-name":
|
|
2892
|
-
"parent-folder-link":
|
|
2822
|
+
"parent-folder-name": R(i)(e.resource),
|
|
2823
|
+
"parent-folder-link": R(a)(e.resource),
|
|
2893
2824
|
link: e.resourceRoute,
|
|
2894
|
-
onClick: n[2] ||=
|
|
2825
|
+
onClick: n[2] ||= Ki((e) => t.$emit("fileNameClicked", e), ["stop"])
|
|
2895
2826
|
}, null, 8, [
|
|
2896
2827
|
"resource",
|
|
2897
2828
|
"is-extension-displayed",
|
|
@@ -2900,7 +2831,7 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
|
|
|
2900
2831
|
"parent-folder-name",
|
|
2901
2832
|
"parent-folder-link",
|
|
2902
2833
|
"link"
|
|
2903
|
-
])]), Y("div",
|
|
2834
|
+
])]), Y("div", rl, [
|
|
2904
2835
|
k(t.$slots, "indicators", {
|
|
2905
2836
|
item: e.resource,
|
|
2906
2837
|
class: "resource-indicators"
|
|
@@ -2908,26 +2839,26 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
|
|
|
2908
2839
|
k(t.$slots, "actions", { item: e.resource }),
|
|
2909
2840
|
k(t.$slots, "contextMenu", { item: e.resource })
|
|
2910
2841
|
])]),
|
|
2911
|
-
d.value ? (Z(), X("p",
|
|
2842
|
+
d.value ? (Z(), X("p", il, [Y("span", {
|
|
2912
2843
|
class: "text-sm",
|
|
2913
|
-
textContent:
|
|
2914
|
-
}, null, 8,
|
|
2844
|
+
textContent: G(d.value)
|
|
2845
|
+
}, null, 8, al)])) : K("", !0),
|
|
2915
2846
|
k(t.$slots, "additionalResourceContent", { item: e.resource })
|
|
2916
2847
|
])], 64))]),
|
|
2917
2848
|
_: 3
|
|
2918
2849
|
}, 8, ["data-item-id", "class"]);
|
|
2919
2850
|
};
|
|
2920
2851
|
}
|
|
2921
|
-
}),
|
|
2852
|
+
}), sl = {
|
|
2922
2853
|
id: "tiles-view",
|
|
2923
2854
|
class: "px-4 pt-2"
|
|
2924
|
-
},
|
|
2855
|
+
}, cl = { class: "flex items-center mb-2 pb-2 oc-tiles-controls" }, ll = {
|
|
2925
2856
|
key: 1,
|
|
2926
2857
|
class: "oc-tiles-sort"
|
|
2927
|
-
},
|
|
2858
|
+
}, ul = {
|
|
2928
2859
|
key: 0,
|
|
2929
2860
|
class: "flex"
|
|
2930
|
-
},
|
|
2861
|
+
}, dl = { class: "p-1 text-sm" }, fl = /* @__PURE__ */ B(/* @__PURE__ */ U({
|
|
2931
2862
|
__name: "ResourceTiles",
|
|
2932
2863
|
props: {
|
|
2933
2864
|
resources: { default: () => [] },
|
|
@@ -2966,77 +2897,77 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
|
|
|
2966
2897
|
"update:selectedIds"
|
|
2967
2898
|
],
|
|
2968
2899
|
setup(e, { emit: t }) {
|
|
2969
|
-
let n = t, { $gettext: r } = Q(), { areFileExtensionsShown: i } = $(
|
|
2970
|
-
space:
|
|
2971
|
-
resources:
|
|
2972
|
-
selectedIds:
|
|
2900
|
+
let n = t, { $gettext: r } = Q(), { areFileExtensionsShown: i } = $(dr()), { isLocationPicker: a, isFilePicker: o } = ci(), s = Er(), c = q(() => Math.min(R(s), e.viewSize)), { isSideBarOpen: l } = $(Oi()), { disabledResources: u, isResourceSelected: d, fileContainerClicked: f, fileNameClicked: p, fileCheckboxClicked: m, isResourceDisabled: h, isResourceInDeleteQueue: g, isResourceClickable: _, isResourceCut: v, getResourceLink: y, dragItem: b, dragSelection: x, dragStart: S, fileDropped: C, setDropStyling: ee, shouldShowContextDrop: w, showContextMenuOnRightClick: T, showContextMenuOnBtnClick: te, selectAllCheckboxLabel: E, getResourceCheckboxLabel: D, toggleSelectionAll: O, areAllResourcesSelected: A } = Yi({
|
|
2901
|
+
space: q(() => e.space),
|
|
2902
|
+
resources: q(() => e.resources),
|
|
2903
|
+
selectedIds: q(() => e.selectedIds),
|
|
2973
2904
|
emit: n
|
|
2974
|
-
}), ne =
|
|
2905
|
+
}), ne = z({}), re = window.__E2E__ === !0 ? !1 : e.lazy, j = q(() => e.sortFields.find((t) => t.name === e.sortBy && t.sortDir === e.sortDir) || e.sortFields[0]), ie = (e) => {
|
|
2975
2906
|
n("sort", {
|
|
2976
2907
|
sortBy: e.name,
|
|
2977
|
-
sortDir:
|
|
2908
|
+
sortDir: R(e.sortDir)
|
|
2978
2909
|
});
|
|
2979
|
-
}, ae =
|
|
2910
|
+
}, ae = q(() => ({
|
|
2980
2911
|
1: "xlarge",
|
|
2981
2912
|
2: "xlarge",
|
|
2982
2913
|
3: "xxlarge",
|
|
2983
2914
|
4: "xxlarge",
|
|
2984
2915
|
5: "xxxlarge",
|
|
2985
2916
|
6: "xxxlarge"
|
|
2986
|
-
})[
|
|
2917
|
+
})[R(c)] ?? "xxlarge"), N = z(0), oe = () => {
|
|
2987
2918
|
let e = document.getElementById("tiles-view"), t = getComputedStyle(e), n = parseInt(t.getPropertyValue("padding-left"), 10) | 0, r = parseInt(t.getPropertyValue("padding-right"), 10) | 0;
|
|
2988
|
-
|
|
2989
|
-
},
|
|
2919
|
+
N.value = e.clientWidth - n - r;
|
|
2920
|
+
}, se = q(() => parseFloat(getComputedStyle(document.documentElement).fontSize)), { calculateTileSizePixels: ce } = Pn(), le = q(() => {
|
|
2990
2921
|
let e = [...Array(ma.tilesSizeMax).keys()].map((e) => e + 1);
|
|
2991
2922
|
return [...new Set(e.map((e) => {
|
|
2992
|
-
let t =
|
|
2993
|
-
return t ? Math.round(
|
|
2923
|
+
let t = ce(e);
|
|
2924
|
+
return t ? Math.round(R(N) / (t + R(se))) : 0;
|
|
2994
2925
|
}))];
|
|
2995
|
-
}),
|
|
2996
|
-
let e =
|
|
2997
|
-
return e.length <
|
|
2998
|
-
}),
|
|
2999
|
-
let t =
|
|
3000
|
-
return t ?
|
|
2926
|
+
}), ue = q(() => {
|
|
2927
|
+
let e = R(le);
|
|
2928
|
+
return e.length < R(c) ? e[e.length - 1] : e[R(c) - 1];
|
|
2929
|
+
}), de = q(() => {
|
|
2930
|
+
let t = R(ue) ? e.resources.length % R(ue) : 0;
|
|
2931
|
+
return t ? R(ue) - t : 0;
|
|
3001
2932
|
});
|
|
3002
|
-
return
|
|
2933
|
+
return P(q(() => R(N) / R(ue) - R(se)), (e) => {
|
|
3003
2934
|
e && !isNaN(e) && document.documentElement.style.setProperty("--oc-size-tiles-actual", `${e}px`);
|
|
3004
|
-
}, { immediate: !0 }),
|
|
2935
|
+
}, { immediate: !0 }), P(le, (e) => {
|
|
3005
2936
|
s.value = Math.max(e.length, 1);
|
|
3006
|
-
}),
|
|
3007
|
-
|
|
3008
|
-
}),
|
|
3009
|
-
window.addEventListener("resize",
|
|
2937
|
+
}), P(l, () => {
|
|
2938
|
+
oe();
|
|
2939
|
+
}), Vt(() => {
|
|
2940
|
+
window.addEventListener("resize", oe), oe();
|
|
3010
2941
|
}), ja(() => {
|
|
3011
|
-
window.removeEventListener("resize",
|
|
2942
|
+
window.removeEventListener("resize", oe);
|
|
3012
2943
|
}), (t, n) => {
|
|
3013
|
-
let s =
|
|
3014
|
-
return Z(), X("div",
|
|
3015
|
-
Y("div",
|
|
2944
|
+
let s = I("oc-checkbox"), c = I("oc-icon"), l = I("oc-button"), N = I("oc-list"), oe = I("oc-filter-chip"), se = ti("oc-tooltip");
|
|
2945
|
+
return Z(), X("div", sl, [
|
|
2946
|
+
Y("div", cl, [e.isSelectable && !R(o) ? L((Z(), H(s, {
|
|
3016
2947
|
key: 0,
|
|
3017
2948
|
id: "tiles-view-select-all",
|
|
3018
2949
|
class: "ml-2",
|
|
3019
2950
|
size: "large",
|
|
3020
|
-
label:
|
|
2951
|
+
label: R(E),
|
|
3021
2952
|
"label-hidden": !0,
|
|
3022
|
-
disabled: e.resources.length ===
|
|
3023
|
-
"model-value":
|
|
3024
|
-
onClick:
|
|
2953
|
+
disabled: e.resources.length === R(u).length,
|
|
2954
|
+
"model-value": R(A),
|
|
2955
|
+
onClick: Ki(R(O), ["stop"])
|
|
3025
2956
|
}, null, 8, [
|
|
3026
2957
|
"label",
|
|
3027
2958
|
"disabled",
|
|
3028
2959
|
"model-value",
|
|
3029
2960
|
"onClick"
|
|
3030
|
-
])), [[
|
|
2961
|
+
])), [[se, R(E)]]) : K("", !0), e.sortFields.length ? (Z(), X("div", ll, [J(oe, {
|
|
3031
2962
|
class: "[&_.oc-filter-chip-label]:text-sm",
|
|
3032
|
-
"filter-label":
|
|
2963
|
+
"filter-label": R(r)("Sort by"),
|
|
3033
2964
|
"selected-item-names": [j.value.label],
|
|
3034
2965
|
"has-active-state": !1,
|
|
3035
2966
|
"close-on-click": "",
|
|
3036
2967
|
raw: ""
|
|
3037
2968
|
}, {
|
|
3038
|
-
default:
|
|
3039
|
-
default:
|
|
2969
|
+
default: F(() => [J(N, null, {
|
|
2970
|
+
default: F(() => [(Z(!0), X(W, null, M(e.sortFields, (e, t) => (Z(), X("li", { key: t }, [J(l, {
|
|
3040
2971
|
appearance: j.value === e ? "filled" : "raw-inverse",
|
|
3041
2972
|
"color-role": j.value === e ? "secondaryContainer" : "surface",
|
|
3042
2973
|
"no-hover": j.value === e,
|
|
@@ -3044,7 +2975,7 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
|
|
|
3044
2975
|
class: "oc-tiles-sort-filter-chip-item",
|
|
3045
2976
|
onClick: (t) => ie(e)
|
|
3046
2977
|
}, {
|
|
3047
|
-
default:
|
|
2978
|
+
default: F(() => [Y("span", null, G(e.label), 1), e === j.value ? (Z(), X("div", ul, [J(c, { name: "check" })])) : K("", !0)]),
|
|
3048
2979
|
_: 2
|
|
3049
2980
|
}, 1032, [
|
|
3050
2981
|
"appearance",
|
|
@@ -3055,55 +2986,55 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
|
|
|
3055
2986
|
_: 1
|
|
3056
2987
|
})]),
|
|
3057
2988
|
_: 1
|
|
3058
|
-
}, 8, ["filter-label", "selected-item-names"])])) :
|
|
3059
|
-
|
|
3060
|
-
default:
|
|
2989
|
+
}, 8, ["filter-label", "selected-item-names"])])) : K("", !0)]),
|
|
2990
|
+
J(N, { class: "oc-tiles grid justify-start gap-3" }, {
|
|
2991
|
+
default: F(() => [(Z(!0), X(W, null, M(e.resources, (r) => (Z(), X("li", {
|
|
3061
2992
|
key: r.id,
|
|
3062
2993
|
class: "oc-tiles-item has-item-context-menu"
|
|
3063
|
-
}, [
|
|
2994
|
+
}, [J(ol, {
|
|
3064
2995
|
resource: r,
|
|
3065
2996
|
space: e.space,
|
|
3066
|
-
"resource-route":
|
|
3067
|
-
"is-resource-selected":
|
|
3068
|
-
"is-resource-clickable":
|
|
3069
|
-
"is-resource-disabled":
|
|
3070
|
-
"is-extension-displayed":
|
|
2997
|
+
"resource-route": R(y)(r),
|
|
2998
|
+
"is-resource-selected": R(d)(r),
|
|
2999
|
+
"is-resource-clickable": R(_)(r, e.areResourcesClickable),
|
|
3000
|
+
"is-resource-disabled": R(h)(r),
|
|
3001
|
+
"is-extension-displayed": R(i),
|
|
3071
3002
|
"is-path-displayed": e.arePathsDisplayed,
|
|
3072
3003
|
"resource-icon-size": ae.value,
|
|
3073
3004
|
draggable: e.dragDrop,
|
|
3074
|
-
lazy:
|
|
3075
|
-
"is-loading":
|
|
3076
|
-
class:
|
|
3077
|
-
onContextmenu: (e) =>
|
|
3078
|
-
onFileNameClicked:
|
|
3005
|
+
lazy: R(re),
|
|
3006
|
+
"is-loading": R(g)(r.id),
|
|
3007
|
+
class: V({ "opacity-60": R(v)(r) }),
|
|
3008
|
+
onContextmenu: (e) => R(T)(e, r, ne.value[r.id]),
|
|
3009
|
+
onFileNameClicked: Ki((e) => R(p)({
|
|
3079
3010
|
resource: r,
|
|
3080
3011
|
event: e
|
|
3081
3012
|
}), ["stop"]),
|
|
3082
|
-
onDragstart: (e) =>
|
|
3083
|
-
onDragenter:
|
|
3084
|
-
onDragleave:
|
|
3085
|
-
onDrop: (e) =>
|
|
3013
|
+
onDragstart: (e) => R(S)(r, e),
|
|
3014
|
+
onDragenter: Ki((e) => R(ee)(r, !1, e), ["prevent"]),
|
|
3015
|
+
onDragleave: Ki((e) => R(ee)(r, !0, e), ["prevent"]),
|
|
3016
|
+
onDrop: (e) => R(C)(r, e),
|
|
3086
3017
|
onDragover: n[0] ||= (e) => e.preventDefault(),
|
|
3087
3018
|
onItemVisible: (e) => t.$emit("itemVisible", r),
|
|
3088
|
-
onTileClicked: (e) =>
|
|
3019
|
+
onTileClicked: (e) => R(f)({
|
|
3089
3020
|
resource: r,
|
|
3090
3021
|
event: e[1]
|
|
3091
3022
|
})
|
|
3092
3023
|
}, {
|
|
3093
|
-
selection:
|
|
3024
|
+
selection: F(() => [e.isSelectable && !R(a) && !R(o) ? (Z(), H(s, {
|
|
3094
3025
|
key: 0,
|
|
3095
|
-
label:
|
|
3026
|
+
label: R(D)(r),
|
|
3096
3027
|
"label-hidden": !0,
|
|
3097
3028
|
size: "large",
|
|
3098
3029
|
class: "inline-flex p-2.5",
|
|
3099
|
-
disabled:
|
|
3100
|
-
"model-value":
|
|
3030
|
+
disabled: R(h)(r),
|
|
3031
|
+
"model-value": R(d)(r),
|
|
3101
3032
|
"data-test-selection-resource-name": r.name,
|
|
3102
3033
|
"data-test-selection-resource-path": r.path,
|
|
3103
|
-
onClick:
|
|
3034
|
+
onClick: Ki((e) => R(m)({
|
|
3104
3035
|
resource: r,
|
|
3105
3036
|
event: e
|
|
3106
|
-
}), ["stop"
|
|
3037
|
+
}), ["stop"])
|
|
3107
3038
|
}, null, 8, [
|
|
3108
3039
|
"label",
|
|
3109
3040
|
"disabled",
|
|
@@ -3111,38 +3042,38 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
|
|
|
3111
3042
|
"data-test-selection-resource-name",
|
|
3112
3043
|
"data-test-selection-resource-path",
|
|
3113
3044
|
"onClick"
|
|
3114
|
-
])) :
|
|
3115
|
-
imageField:
|
|
3116
|
-
indicators:
|
|
3045
|
+
])) : K("", !0)]),
|
|
3046
|
+
imageField: F(() => [k(t.$slots, "image", { resource: r }, void 0, !0)]),
|
|
3047
|
+
indicators: F(() => [J(Mc, {
|
|
3117
3048
|
space: e.space,
|
|
3118
3049
|
class: "ml-2",
|
|
3119
3050
|
resource: r,
|
|
3120
3051
|
filter: (e) => ["system", "sharing"].includes(e.category),
|
|
3121
|
-
"disable-handler":
|
|
3052
|
+
"disable-handler": R(h)(r)
|
|
3122
3053
|
}, null, 8, [
|
|
3123
3054
|
"space",
|
|
3124
3055
|
"resource",
|
|
3125
3056
|
"filter",
|
|
3126
3057
|
"disable-handler"
|
|
3127
3058
|
])]),
|
|
3128
|
-
actions:
|
|
3129
|
-
contextMenu:
|
|
3059
|
+
actions: F(() => [k(t.$slots, "actions", { resource: r }, void 0, !0)]),
|
|
3060
|
+
contextMenu: F(() => [R(w)(r) ? (Z(), H(R(yc), {
|
|
3130
3061
|
key: 0,
|
|
3131
3062
|
ref_for: !0,
|
|
3132
3063
|
ref: (e) => ne.value[r.id] = e?.drop,
|
|
3133
3064
|
item: r,
|
|
3134
3065
|
title: r.name,
|
|
3135
3066
|
class: "resource-tiles-btn-action-dropdown",
|
|
3136
|
-
onQuickActionClicked: (e) =>
|
|
3067
|
+
onQuickActionClicked: (e) => R(te)(e, r, ne.value[r.id])
|
|
3137
3068
|
}, {
|
|
3138
|
-
contextMenu:
|
|
3069
|
+
contextMenu: F(() => [k(t.$slots, "contextMenu", { resource: r }, void 0, !0)]),
|
|
3139
3070
|
_: 2
|
|
3140
3071
|
}, 1032, [
|
|
3141
3072
|
"item",
|
|
3142
3073
|
"title",
|
|
3143
3074
|
"onQuickActionClicked"
|
|
3144
|
-
])) :
|
|
3145
|
-
additionalResourceContent:
|
|
3075
|
+
])) : K("", !0)]),
|
|
3076
|
+
additionalResourceContent: F(() => [k(t.$slots, "additionalResourceContent", { resource: r }, void 0, !0)]),
|
|
3146
3077
|
_: 2
|
|
3147
3078
|
}, 1032, [
|
|
3148
3079
|
"resource",
|
|
@@ -3166,25 +3097,25 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
|
|
|
3166
3097
|
"onDrop",
|
|
3167
3098
|
"onItemVisible",
|
|
3168
3099
|
"onTileClicked"
|
|
3169
|
-
])]))), 128)), (Z(!0), X(
|
|
3100
|
+
])]))), 128)), (Z(!0), X(W, null, M(de.value, (e) => (Z(), X("li", {
|
|
3170
3101
|
key: `ghost-tile-${e}`,
|
|
3171
3102
|
class: "list-item",
|
|
3172
3103
|
"aria-hidden": !0
|
|
3173
3104
|
}))), 128))]),
|
|
3174
3105
|
_: 3
|
|
3175
3106
|
}),
|
|
3176
|
-
|
|
3107
|
+
R(b) ? (Z(), H(Gn, {
|
|
3177
3108
|
key: 0,
|
|
3178
3109
|
to: "body"
|
|
3179
|
-
}, [
|
|
3110
|
+
}, [J(Dc, {
|
|
3180
3111
|
ref: "ghostElement",
|
|
3181
|
-
"preview-items": [
|
|
3182
|
-
}, null, 8, ["preview-items"])])) :
|
|
3183
|
-
Y("div",
|
|
3112
|
+
"preview-items": [R(b), ...R(x)]
|
|
3113
|
+
}, null, 8, ["preview-items"])])) : K("", !0),
|
|
3114
|
+
Y("div", dl, [k(t.$slots, "footer", {}, void 0, !0)])
|
|
3184
3115
|
]);
|
|
3185
3116
|
};
|
|
3186
3117
|
}
|
|
3187
|
-
}), [["__scopeId", "data-v-
|
|
3118
|
+
}), [["__scopeId", "data-v-15ffc95e"]]), pl = { class: "flex items-center truncate" }, ml = { class: "truncate ml-2" }, hl = { class: "flex" }, gl = { class: "my-1" }, _l = { class: "flex items-center truncate" }, vl = { class: "truncate ml-2" }, yl = ["textContent"], bl = { class: "flex" }, xl = { class: "flex items-center justify-between mb-4" }, Sl = ["textContent"], Cl = { class: "mt-2" }, wl = { class: "date-filter-apply-btn text-end" }, Tl = /* @__PURE__ */ B(/* @__PURE__ */ U({
|
|
3188
3119
|
__name: "DateFilter",
|
|
3189
3120
|
props: {
|
|
3190
3121
|
filterLabel: {},
|
|
@@ -3195,40 +3126,40 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
|
|
|
3195
3126
|
},
|
|
3196
3127
|
emits: ["selectionChange"],
|
|
3197
3128
|
setup(e, { expose: t, emit: n }) {
|
|
3198
|
-
let i = n, a =
|
|
3199
|
-
...Zi(
|
|
3200
|
-
...
|
|
3201
|
-
} }), y = (e) =>
|
|
3129
|
+
let i = n, a = ji(), { current: o } = Q(), s = br(), { currentTheme: c } = $(za()), l = z(), u = z(e.items), d = z(), f = z(), p = z(!1), m = z(), h = `q_${e.filterName}`, g = r(h), _ = (t) => t[e.idAttribute], v = () => a.push({ query: {
|
|
3130
|
+
...Zi(R(s).query, [h]),
|
|
3131
|
+
...R(l) && { [h]: _(R(l)) }
|
|
3132
|
+
} }), y = (e) => R(l) && _(R(l)) === _(e), b = () => {
|
|
3202
3133
|
d.value = void 0, f.value = void 0;
|
|
3203
3134
|
}, x = async (e) => {
|
|
3204
|
-
b(), y(e) ? l.value = void 0 : (l.value = e,
|
|
3135
|
+
b(), y(e) ? l.value = void 0 : (l.value = e, R(m).hideDrop()), await v(), i("selectionChange", R(l));
|
|
3205
3136
|
}, S = () => {
|
|
3206
|
-
l.value = void 0, p.value = !1, b(), i("selectionChange",
|
|
3137
|
+
l.value = void 0, p.value = !1, b(), i("selectionChange", R(l)), v();
|
|
3207
3138
|
}, C = () => {
|
|
3208
3139
|
u.value = e.items;
|
|
3209
3140
|
}, ee = () => {
|
|
3210
3141
|
p.value = !1;
|
|
3211
3142
|
}, w = () => {
|
|
3212
|
-
let t =
|
|
3143
|
+
let t = Le(R(g));
|
|
3213
3144
|
if (!t) return;
|
|
3214
3145
|
let n = e.items.find((e) => _(e) === t);
|
|
3215
3146
|
if (n) {
|
|
3216
3147
|
l.value = n;
|
|
3217
3148
|
return;
|
|
3218
3149
|
}
|
|
3219
|
-
if (
|
|
3150
|
+
if (R(T)) {
|
|
3220
3151
|
let e = t.replace("range:", ""), n = Number(e.split(" - ")[0]), r = Number(e.split(" - ")[1]);
|
|
3221
|
-
d.value = _o.fromMillis(n), f.value = _o.fromMillis(r), l.value =
|
|
3152
|
+
d.value = _o.fromMillis(n), f.value = _o.fromMillis(r), l.value = R(E);
|
|
3222
3153
|
}
|
|
3223
|
-
}, T =
|
|
3224
|
-
if (!
|
|
3225
|
-
let t =
|
|
3154
|
+
}, T = q(() => Le(R(g))?.startsWith("range:")), te = q(() => !R(d) || !R(f) ? !1 : R(d) <= R(f)), E = q(() => {
|
|
3155
|
+
if (!R(d) || !R(f)) return null;
|
|
3156
|
+
let t = Bi(R(d), o, _o.DATE_SHORT), n = Bi(R(f), o, _o.DATE_SHORT), r = R(d).toMillis(), i = R(f).toMillis();
|
|
3226
3157
|
return {
|
|
3227
3158
|
[e.idAttribute]: `range:${r} - ${i}`,
|
|
3228
3159
|
[e.displayNameAttribute]: `${t} - ${n}`
|
|
3229
3160
|
};
|
|
3230
3161
|
}), D = async () => {
|
|
3231
|
-
l.value =
|
|
3162
|
+
l.value = R(E), await v(), R(m).hideDrop(), i("selectionChange", R(l));
|
|
3232
3163
|
}, O = ({ date: e, error: t }, n) => {
|
|
3233
3164
|
if (t) {
|
|
3234
3165
|
console.error("date could not be set");
|
|
@@ -3241,11 +3172,11 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
|
|
|
3241
3172
|
}
|
|
3242
3173
|
r.value = n === "from" ? e.startOf("day") : e.endOf("day");
|
|
3243
3174
|
};
|
|
3244
|
-
return t({ setSelectedItemsBasedOnQuery: w }),
|
|
3175
|
+
return t({ setSelectedItemsBasedOnQuery: w }), Vt(() => {
|
|
3245
3176
|
w();
|
|
3246
3177
|
}), (t, n) => {
|
|
3247
|
-
let r =
|
|
3248
|
-
return Z(), X("div", { class:
|
|
3178
|
+
let r = I("oc-icon"), i = I("oc-button"), a = I("oc-list"), o = I("oc-datepicker");
|
|
3179
|
+
return Z(), X("div", { class: V(["date-filter flex overflow-hidden [&_label]:text-sm", `date-filter-${e.filterName}`]) }, [J(R(rr), {
|
|
3249
3180
|
ref_key: "filterChip",
|
|
3250
3181
|
ref: m,
|
|
3251
3182
|
"filter-label": e.filterLabel,
|
|
@@ -3254,84 +3185,84 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
|
|
|
3254
3185
|
onShowDrop: C,
|
|
3255
3186
|
onHideDrop: ee
|
|
3256
3187
|
}, {
|
|
3257
|
-
default:
|
|
3258
|
-
default:
|
|
3188
|
+
default: F(() => [J(a, { class: V({ "invisible min-h-[225px] transition-[visibility] duration-[0.4s,0s]": p.value }) }, {
|
|
3189
|
+
default: F(() => [(Z(!0), X(W, null, M(u.value, (n, a) => (Z(), X("li", {
|
|
3259
3190
|
key: a,
|
|
3260
3191
|
class: "my-1 first:mt-0 last:mb-0"
|
|
3261
|
-
}, [
|
|
3262
|
-
class:
|
|
3192
|
+
}, [J(i, {
|
|
3193
|
+
class: V(["date-filter-list-item flex justify-between items-center w-full p-1", { "date-filter-list-item-active": y(n) }]),
|
|
3263
3194
|
"justify-content": "space-between",
|
|
3264
3195
|
appearance: "raw",
|
|
3265
3196
|
"data-testid": n[e.displayNameAttribute],
|
|
3266
3197
|
onClick: (e) => x(n)
|
|
3267
3198
|
}, {
|
|
3268
|
-
default:
|
|
3199
|
+
default: F(() => [Y("div", pl, [Y("div", ml, [k(t.$slots, "item", { item: n }, void 0, !0)])]), Y("div", hl, [y(n) ? (Z(), H(r, {
|
|
3269
3200
|
key: 0,
|
|
3270
3201
|
name: "check"
|
|
3271
|
-
})) :
|
|
3202
|
+
})) : K("", !0)])]),
|
|
3272
3203
|
_: 2
|
|
3273
3204
|
}, 1032, [
|
|
3274
3205
|
"class",
|
|
3275
3206
|
"data-testid",
|
|
3276
3207
|
"onClick"
|
|
3277
|
-
])]))), 128)), Y("li",
|
|
3278
|
-
class:
|
|
3208
|
+
])]))), 128)), Y("li", gl, [J(i, {
|
|
3209
|
+
class: V(["date-filter-list-item flex justify-between items-center w-full p-1", { "date-filter-list-item-active": T.value }]),
|
|
3279
3210
|
"justify-content": "space-between",
|
|
3280
3211
|
appearance: "raw",
|
|
3281
3212
|
"data-testid": "custom-date-range",
|
|
3282
3213
|
onClick: n[0] ||= (e) => p.value = !0
|
|
3283
3214
|
}, {
|
|
3284
|
-
default:
|
|
3215
|
+
default: F(() => [Y("div", _l, [Y("div", vl, [Y("span", { textContent: G(t.$gettext("Custom date range")) }, null, 8, yl)])]), Y("div", bl, [T.value ? (Z(), H(r, {
|
|
3285
3216
|
key: 0,
|
|
3286
3217
|
name: "check"
|
|
3287
|
-
})) :
|
|
3218
|
+
})) : K("", !0)])]),
|
|
3288
3219
|
_: 1
|
|
3289
3220
|
}, 8, ["class"])])]),
|
|
3290
3221
|
_: 3
|
|
3291
|
-
}, 8, ["class"]), Y("div", { class:
|
|
3222
|
+
}, 8, ["class"]), Y("div", { class: V(["date-filter-range-panel absolute top-0 p-2 bg-role-surface", {
|
|
3292
3223
|
"transform-[translateX(0)] visible": p.value,
|
|
3293
3224
|
"transform-[translateX(100%)] invisible": !p.value
|
|
3294
3225
|
}]) }, [
|
|
3295
|
-
Y("div",
|
|
3296
|
-
|
|
3226
|
+
Y("div", xl, [
|
|
3227
|
+
J(i, {
|
|
3297
3228
|
appearance: "raw",
|
|
3298
3229
|
class: "date-filter-range-panel-back",
|
|
3299
3230
|
"aria-label": t.$gettext("Go back to filter options"),
|
|
3300
3231
|
onClick: n[1] ||= (e) => p.value = !1
|
|
3301
3232
|
}, {
|
|
3302
|
-
default:
|
|
3233
|
+
default: F(() => [J(r, {
|
|
3303
3234
|
name: "arrow-left-s",
|
|
3304
3235
|
"fill-type": "line"
|
|
3305
3236
|
})]),
|
|
3306
3237
|
_: 1
|
|
3307
3238
|
}, 8, ["aria-label"]),
|
|
3308
|
-
Y("span", { textContent:
|
|
3309
|
-
|
|
3239
|
+
Y("span", { textContent: G(t.$gettext("Custom date range")) }, null, 8, Sl),
|
|
3240
|
+
J(i, {
|
|
3310
3241
|
appearance: "raw",
|
|
3311
3242
|
class: "date-filter-range-panel-close",
|
|
3312
3243
|
"aria-label": t.$gettext("Close filter"),
|
|
3313
3244
|
onClick: n[2] ||= (e) => m.value.hideDrop()
|
|
3314
3245
|
}, {
|
|
3315
|
-
default:
|
|
3246
|
+
default: F(() => [J(r, { name: "close" })]),
|
|
3316
3247
|
_: 1
|
|
3317
3248
|
}, 8, ["aria-label"])
|
|
3318
3249
|
]),
|
|
3319
|
-
Y("div",
|
|
3250
|
+
Y("div", Cl, [J(o, {
|
|
3320
3251
|
label: t.$gettext("From"),
|
|
3321
3252
|
"is-clearable": !0,
|
|
3322
3253
|
"current-date": d.value,
|
|
3323
|
-
"is-dark":
|
|
3254
|
+
"is-dark": R(c).isDark,
|
|
3324
3255
|
onDateChanged: n[3] ||= (e) => O(e, "from")
|
|
3325
3256
|
}, null, 8, [
|
|
3326
3257
|
"label",
|
|
3327
3258
|
"current-date",
|
|
3328
3259
|
"is-dark"
|
|
3329
|
-
]),
|
|
3260
|
+
]), J(o, {
|
|
3330
3261
|
label: t.$gettext("To"),
|
|
3331
3262
|
"is-clearable": !0,
|
|
3332
3263
|
"current-date": f.value,
|
|
3333
3264
|
"min-date": d.value ? d.value : void 0,
|
|
3334
|
-
"is-dark":
|
|
3265
|
+
"is-dark": R(c).isDark,
|
|
3335
3266
|
onDateChanged: n[4] ||= (e) => O(e, "to")
|
|
3336
3267
|
}, null, 8, [
|
|
3337
3268
|
"label",
|
|
@@ -3339,12 +3270,12 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
|
|
|
3339
3270
|
"min-date",
|
|
3340
3271
|
"is-dark"
|
|
3341
3272
|
])]),
|
|
3342
|
-
Y("div",
|
|
3273
|
+
Y("div", wl, [J(i, {
|
|
3343
3274
|
size: "small",
|
|
3344
3275
|
disabled: !te.value,
|
|
3345
3276
|
onClick: D
|
|
3346
3277
|
}, {
|
|
3347
|
-
default:
|
|
3278
|
+
default: F(() => [Cr(G(t.$gettext("Apply")), 1)]),
|
|
3348
3279
|
_: 1
|
|
3349
3280
|
}, 8, ["disabled"])])
|
|
3350
3281
|
], 2)]),
|
|
@@ -3352,7 +3283,7 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
|
|
|
3352
3283
|
}, 8, ["filter-label", "selected-item-names"])], 2);
|
|
3353
3284
|
};
|
|
3354
3285
|
}
|
|
3355
|
-
}), [["__scopeId", "data-v-9c476fec"]]),
|
|
3286
|
+
}), [["__scopeId", "data-v-9c476fec"]]), El = U({
|
|
3356
3287
|
name: "ItemFilterInline",
|
|
3357
3288
|
props: {
|
|
3358
3289
|
filterName: {
|
|
@@ -3366,12 +3297,12 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
|
|
|
3366
3297
|
},
|
|
3367
3298
|
emits: ["toggleFilter"],
|
|
3368
3299
|
setup: function(e, { emit: t }) {
|
|
3369
|
-
let n =
|
|
3370
|
-
...Zi(
|
|
3300
|
+
let n = ji(), i = br(), a = z(e.filterOptions[0].name), o = `q_${e.filterName}`, s = r(o), c = (e) => n.push({ query: {
|
|
3301
|
+
...Zi(R(i).query, [o]),
|
|
3371
3302
|
[o]: e
|
|
3372
3303
|
} });
|
|
3373
|
-
return
|
|
3374
|
-
let n =
|
|
3304
|
+
return Vt(() => {
|
|
3305
|
+
let n = Le(R(s));
|
|
3375
3306
|
n && e.filterOptions.some(({ name: e }) => e === n) && (a.value = n, t("toggleFilter", e.filterOptions.find(({ name: e }) => e === n)));
|
|
3376
3307
|
}), {
|
|
3377
3308
|
queryParam: o,
|
|
@@ -3381,22 +3312,22 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
|
|
|
3381
3312
|
}
|
|
3382
3313
|
};
|
|
3383
3314
|
}
|
|
3384
|
-
}),
|
|
3385
|
-
function
|
|
3386
|
-
let o =
|
|
3387
|
-
return Z(), X("div", null, [Y("div", { class:
|
|
3315
|
+
}), Dl = ["textContent"];
|
|
3316
|
+
function Ol(e, t, n, r, i, a) {
|
|
3317
|
+
let o = I("oc-button");
|
|
3318
|
+
return Z(), X("div", null, [Y("div", { class: V(["item-inline-filter inline-flex outline outline-offset-[-1px] rounded-md", `item-inline-filter-${e.filterName}`]) }, [(Z(!0), X(W, null, M(e.filterOptions, (t, n) => (Z(), H(o, {
|
|
3388
3319
|
id: t.name,
|
|
3389
3320
|
key: n,
|
|
3390
|
-
class:
|
|
3321
|
+
class: V(["item-inline-filter-option py-1 px-2 first:rounded-l-md last:rounded-r-md h-[32px]", { "item-inline-filter-option-selected": e.activeOption === t.name }]),
|
|
3391
3322
|
appearance: e.activeOption === t.name ? "filled" : "raw-inverse",
|
|
3392
3323
|
"color-role": e.activeOption === t.name ? "secondaryContainer" : "surface",
|
|
3393
3324
|
"no-hover": e.activeOption === t.name,
|
|
3394
3325
|
onClick: (n) => e.toggleFilter(t)
|
|
3395
3326
|
}, {
|
|
3396
|
-
default:
|
|
3327
|
+
default: F(() => [Y("span", {
|
|
3397
3328
|
class: "truncate item-inline-filter-option-label",
|
|
3398
|
-
textContent:
|
|
3399
|
-
}, null, 8,
|
|
3329
|
+
textContent: G(t.label)
|
|
3330
|
+
}, null, 8, Dl)]),
|
|
3400
3331
|
_: 2
|
|
3401
3332
|
}, 1032, [
|
|
3402
3333
|
"id",
|
|
@@ -3407,18 +3338,18 @@ function Fl(e, t, n, r, i, a) {
|
|
|
3407
3338
|
"onClick"
|
|
3408
3339
|
]))), 128))], 2)]);
|
|
3409
3340
|
}
|
|
3410
|
-
var
|
|
3341
|
+
var kl = /* @__PURE__ */ B(El, [["render", Ol]]), Al = {
|
|
3411
3342
|
key: 1,
|
|
3412
3343
|
class: "flex justify-between items-center w-full"
|
|
3413
|
-
},
|
|
3344
|
+
}, jl = { class: "flex items-center truncate" }, Ml = { class: "flex flex-col items-start ml-5 truncate" }, Nl = ["textContent"], Pl = ["textContent"], Fl = { class: "flex justify-between items-center w-full" }, Il = { class: "flex items-center truncate" }, Ll = { class: "flex flex-col items-start ml-5 truncate" }, Rl = ["textContent"], zl = ["textContent"], Bl = /* @__PURE__ */ U({
|
|
3414
3345
|
__name: "AccountsSwitch",
|
|
3415
3346
|
setup(e) {
|
|
3416
3347
|
let t = w(), { accounts: n, currentAccount: r, isLoading: i } = $(t), { setCurrentAccount: a } = t, o = (e) => {
|
|
3417
3348
|
a(e);
|
|
3418
3349
|
};
|
|
3419
3350
|
return (e, t) => {
|
|
3420
|
-
let a =
|
|
3421
|
-
return Z(), X(
|
|
3351
|
+
let a = I("oc-spinner"), s = I("oc-avatar"), c = I("oc-icon"), l = I("oc-button"), u = I("oc-list"), d = I("oc-drop");
|
|
3352
|
+
return Z(), X(W, null, [J(l, {
|
|
3422
3353
|
id: "account-list-toggle",
|
|
3423
3354
|
class: "w-auto m-2",
|
|
3424
3355
|
appearance: "filled",
|
|
@@ -3426,48 +3357,48 @@ var Il = /* @__PURE__ */ z(Nl, [["render", Fl]]), Ll = {
|
|
|
3426
3357
|
"justify-content": "space-between",
|
|
3427
3358
|
"no-hover": ""
|
|
3428
3359
|
}, {
|
|
3429
|
-
default:
|
|
3360
|
+
default: F(() => [R(i) ? (Z(), H(a, {
|
|
3430
3361
|
key: 0,
|
|
3431
3362
|
"aria-label": e.$gettext("Loading accounts")
|
|
3432
|
-
}, null, 8, ["aria-label"])) : (Z(), X("div",
|
|
3363
|
+
}, null, 8, ["aria-label"])) : (Z(), X("div", Al, [Y("div", jl, [J(s, { "user-name": R(r)?.name || "" }, null, 8, ["user-name"]), Y("div", Ml, [Y("span", {
|
|
3433
3364
|
class: "font-bold",
|
|
3434
|
-
textContent:
|
|
3435
|
-
}, null, 8,
|
|
3365
|
+
textContent: G(R(r)?.name || "")
|
|
3366
|
+
}, null, 8, Nl), R(r)?.identities?.[0]?.email ? (Z(), X("span", {
|
|
3436
3367
|
key: 0,
|
|
3437
3368
|
class: "max-w-full truncate",
|
|
3438
|
-
textContent:
|
|
3439
|
-
}, null, 8,
|
|
3369
|
+
textContent: G(R(r).identities[0].email)
|
|
3370
|
+
}, null, 8, Pl)) : K("", !0)])]), J(c, {
|
|
3440
3371
|
class: "ml-2",
|
|
3441
3372
|
name: "more-2"
|
|
3442
3373
|
})]))]),
|
|
3443
3374
|
_: 1
|
|
3444
|
-
}),
|
|
3375
|
+
}), J(d, {
|
|
3445
3376
|
title: e.$gettext("Accounts"),
|
|
3446
3377
|
class: "w-md",
|
|
3447
3378
|
toggle: "#account-list-toggle",
|
|
3448
3379
|
"close-on-click": ""
|
|
3449
3380
|
}, {
|
|
3450
|
-
default:
|
|
3451
|
-
default:
|
|
3381
|
+
default: F(() => [J(u, null, {
|
|
3382
|
+
default: F(() => [(Z(!0), X(W, null, M(R(n), (e) => (Z(), X("li", {
|
|
3452
3383
|
key: e.accountId,
|
|
3453
3384
|
class: "oc-list"
|
|
3454
|
-
}, [
|
|
3385
|
+
}, [J(l, {
|
|
3455
3386
|
class: "p-2",
|
|
3456
|
-
appearance: e.accountId ===
|
|
3457
|
-
"color-role": e.accountId ===
|
|
3387
|
+
appearance: e.accountId === R(r).accountId ? "filled" : "raw-inverse",
|
|
3388
|
+
"color-role": e.accountId === R(r).accountId ? "secondaryContainer" : "surface",
|
|
3458
3389
|
onClick: (t) => o(e)
|
|
3459
3390
|
}, {
|
|
3460
|
-
default:
|
|
3391
|
+
default: F(() => [Y("div", Fl, [Y("div", Il, [J(s, { "user-name": e.name }, null, 8, ["user-name"]), Y("div", Ll, [Y("span", {
|
|
3461
3392
|
class: "font-bold",
|
|
3462
|
-
textContent:
|
|
3463
|
-
}, null, 8,
|
|
3393
|
+
textContent: G(e.name)
|
|
3394
|
+
}, null, 8, Rl), e.identities?.[0]?.email ? (Z(), X("span", {
|
|
3464
3395
|
key: 0,
|
|
3465
|
-
textContent:
|
|
3466
|
-
}, null, 8,
|
|
3396
|
+
textContent: G(e.identities[0].email)
|
|
3397
|
+
}, null, 8, zl)) : K("", !0)])]), e.accountId === R(r).accountId ? (Z(), H(c, {
|
|
3467
3398
|
key: 0,
|
|
3468
3399
|
class: "ml-2",
|
|
3469
3400
|
name: "check"
|
|
3470
|
-
})) :
|
|
3401
|
+
})) : K("", !0)])]),
|
|
3471
3402
|
_: 2
|
|
3472
3403
|
}, 1032, [
|
|
3473
3404
|
"appearance",
|
|
@@ -3480,26 +3411,26 @@ var Il = /* @__PURE__ */ z(Nl, [["render", Fl]]), Ll = {
|
|
|
3480
3411
|
}, 8, ["title"])], 64);
|
|
3481
3412
|
};
|
|
3482
3413
|
}
|
|
3483
|
-
}),
|
|
3414
|
+
}), Vl = { class: "space-quota" }, Hl = ["textContent"], Ul = /* @__PURE__ */ U({
|
|
3484
3415
|
__name: "SpaceQuota",
|
|
3485
3416
|
props: { spaceQuota: {} },
|
|
3486
3417
|
setup(e) {
|
|
3487
|
-
let { $gettext: t, current: n } = Q(), r =
|
|
3488
|
-
used:
|
|
3489
|
-
total:
|
|
3490
|
-
percentage:
|
|
3491
|
-
}) : t("%{used} used (no restriction)", { used:
|
|
3418
|
+
let { $gettext: t, current: n } = Q(), r = q(() => e.spaceQuota.total ? t("%{used} of %{total} used (%{percentage}% used)", {
|
|
3419
|
+
used: R(a),
|
|
3420
|
+
total: R(i),
|
|
3421
|
+
percentage: R(o).toString()
|
|
3422
|
+
}) : t("%{used} used (no restriction)", { used: R(a) })), i = q(() => We(e.spaceQuota.total, n)), a = q(() => We(e.spaceQuota.used, n)), o = q(() => parseFloat((e.spaceQuota.used / e.spaceQuota.total * 100).toFixed(2))), s = q(() => {
|
|
3492
3423
|
switch (e.spaceQuota.state) {
|
|
3493
3424
|
case "normal": return "var(--oc-role-secondary)";
|
|
3494
3425
|
default: return "var(--oc-role-error)";
|
|
3495
3426
|
}
|
|
3496
3427
|
});
|
|
3497
3428
|
return (e, t) => {
|
|
3498
|
-
let n =
|
|
3499
|
-
return Z(), X("div",
|
|
3429
|
+
let n = I("oc-progress");
|
|
3430
|
+
return Z(), X("div", Vl, [Y("p", {
|
|
3500
3431
|
class: "mb-2 mt-0",
|
|
3501
|
-
textContent:
|
|
3502
|
-
}, null, 8,
|
|
3432
|
+
textContent: G(r.value)
|
|
3433
|
+
}, null, 8, Hl), J(n, {
|
|
3503
3434
|
value: o.value,
|
|
3504
3435
|
max: 100,
|
|
3505
3436
|
size: "small",
|
|
@@ -3508,36 +3439,36 @@ var Il = /* @__PURE__ */ z(Nl, [["render", Fl]]), Ll = {
|
|
|
3508
3439
|
}, null, 8, ["value", "color"])]);
|
|
3509
3440
|
};
|
|
3510
3441
|
}
|
|
3511
|
-
}),
|
|
3442
|
+
}), Wl = U({
|
|
3512
3443
|
name: "WebDavDetails",
|
|
3513
3444
|
props: { space: {
|
|
3514
3445
|
type: Object,
|
|
3515
3446
|
required: !0
|
|
3516
3447
|
} },
|
|
3517
3448
|
setup(e) {
|
|
3518
|
-
let t =
|
|
3449
|
+
let t = Rn("resource"), n = "check", r = "file-copy", i = z(r), a = z(r), o = q(() => Nt(R(t).webDavPath)), s = q(() => e.space?.getWebDavUrl({ path: R(t).path }));
|
|
3519
3450
|
return {
|
|
3520
3451
|
copyWebDAVPathIcon: i,
|
|
3521
3452
|
copyWebDAVPathToClipboard: () => {
|
|
3522
|
-
navigator.clipboard.writeText(
|
|
3453
|
+
navigator.clipboard.writeText(R(o)), i.value = n, setTimeout(() => i.value = r, 1500);
|
|
3523
3454
|
},
|
|
3524
3455
|
copyWebDAVUrlIcon: a,
|
|
3525
3456
|
copyWebDAVUrlToClipboard: () => {
|
|
3526
|
-
navigator.clipboard.writeText(
|
|
3457
|
+
navigator.clipboard.writeText(R(s)), a.value = n, setTimeout(() => a.value = r, 1500);
|
|
3527
3458
|
},
|
|
3528
3459
|
webDavPath: o,
|
|
3529
3460
|
webDavUrl: s
|
|
3530
3461
|
};
|
|
3531
3462
|
}
|
|
3532
|
-
}),
|
|
3533
|
-
function
|
|
3534
|
-
let o =
|
|
3535
|
-
return Z(), X(
|
|
3536
|
-
Y("dt", null,
|
|
3537
|
-
Y("dd",
|
|
3463
|
+
}), Gl = { class: "flex" }, Kl = ["textContent"], ql = { class: "flex" }, Jl = ["textContent"];
|
|
3464
|
+
function Yl(e, t, n, r, i, a) {
|
|
3465
|
+
let o = I("oc-icon"), s = I("oc-button"), c = ti("oc-tooltip");
|
|
3466
|
+
return Z(), X(W, null, [
|
|
3467
|
+
Y("dt", null, G(e.$gettext("WebDAV path")), 1),
|
|
3468
|
+
Y("dd", Gl, [L(Y("div", {
|
|
3538
3469
|
class: "truncate",
|
|
3539
|
-
textContent:
|
|
3540
|
-
}, null, 8,
|
|
3470
|
+
textContent: G(e.webDavPath)
|
|
3471
|
+
}, null, 8, Kl), [[c, e.webDavPath]]), L((Z(), H(s, {
|
|
3541
3472
|
class: "ml-2",
|
|
3542
3473
|
appearance: "raw",
|
|
3543
3474
|
size: "small",
|
|
@@ -3545,14 +3476,14 @@ function nu(e, t, n, r, i, a) {
|
|
|
3545
3476
|
"no-hover": "",
|
|
3546
3477
|
onClick: e.copyWebDAVPathToClipboard
|
|
3547
3478
|
}, {
|
|
3548
|
-
default:
|
|
3479
|
+
default: F(() => [J(o, { name: e.copyWebDAVPathIcon }, null, 8, ["name"])]),
|
|
3549
3480
|
_: 1
|
|
3550
3481
|
}, 8, ["aria-label", "onClick"])), [[c, e.$gettext("Copy WebDAV path")]])]),
|
|
3551
|
-
Y("dt", null,
|
|
3552
|
-
Y("dd",
|
|
3482
|
+
Y("dt", null, G(e.$gettext("WebDAV URL")), 1),
|
|
3483
|
+
Y("dd", ql, [L(Y("div", {
|
|
3553
3484
|
class: "truncate",
|
|
3554
|
-
textContent:
|
|
3555
|
-
}, null, 8,
|
|
3485
|
+
textContent: G(e.webDavUrl)
|
|
3486
|
+
}, null, 8, Jl), [[c, e.webDavUrl]]), L((Z(), H(s, {
|
|
3556
3487
|
class: "ml-2",
|
|
3557
3488
|
appearance: "raw",
|
|
3558
3489
|
size: "small",
|
|
@@ -3560,208 +3491,207 @@ function nu(e, t, n, r, i, a) {
|
|
|
3560
3491
|
"no-hover": "",
|
|
3561
3492
|
onClick: e.copyWebDAVUrlToClipboard
|
|
3562
3493
|
}, {
|
|
3563
|
-
default:
|
|
3494
|
+
default: F(() => [J(o, { name: e.copyWebDAVUrlIcon }, null, 8, ["name"])]),
|
|
3564
3495
|
_: 1
|
|
3565
3496
|
}, 8, ["aria-label", "onClick"])), [[c, e.$gettext("Copy WebDAV URL")]])])
|
|
3566
3497
|
], 64);
|
|
3567
3498
|
}
|
|
3568
|
-
var
|
|
3499
|
+
var Xl = /* @__PURE__ */ B(Wl, [["render", Yl]]), Zl = /* @__PURE__ */ U({
|
|
3569
3500
|
__name: "CustomComponentTarget",
|
|
3570
3501
|
props: { extensionPoint: {} },
|
|
3571
3502
|
setup(e) {
|
|
3572
|
-
let t = e, n =
|
|
3573
|
-
if (t.extensionPoint.multiple ||
|
|
3503
|
+
let t = e, n = ut(), r = Ct(), i = q(() => n.requestExtensions(t.extensionPoint)), a = r.extractDefaultExtensionIds(t.extensionPoint, R(i)), o = q(() => {
|
|
3504
|
+
if (t.extensionPoint.multiple || R(i).length <= 1) return R(i);
|
|
3574
3505
|
let e = r.getExtensionPreference(t.extensionPoint.id, a);
|
|
3575
|
-
return e.selectedExtensionIds.length ? [
|
|
3506
|
+
return e.selectedExtensionIds.length ? [R(i).find((t) => e.selectedExtensionIds.includes(t.id)) || R(i)[0]] : [R(i)[0]];
|
|
3576
3507
|
});
|
|
3577
|
-
return (e, t) => (Z(!0), X(
|
|
3508
|
+
return (e, t) => (Z(!0), X(W, null, M(o.value, (e) => (Z(), H(u(e.content), va({ key: `custom-component-${e.id}` }, { ref_for: !0 }, e.componentProps ? e.componentProps() : void 0), null, 16))), 128));
|
|
3578
3509
|
}
|
|
3579
|
-
}),
|
|
3510
|
+
}), Ql = {
|
|
3580
3511
|
id: "app.files.sidebar.space-details.table",
|
|
3581
3512
|
extensionType: "customComponent"
|
|
3582
|
-
},
|
|
3513
|
+
}, $l = () => q(() => [Ql]), eu = {
|
|
3583
3514
|
id: "oc-space-details-sidebar",
|
|
3584
|
-
class: "p-
|
|
3585
|
-
},
|
|
3515
|
+
class: "p-2"
|
|
3516
|
+
}, tu = {
|
|
3586
3517
|
key: 1,
|
|
3587
|
-
class: "
|
|
3588
|
-
},
|
|
3589
|
-
key:
|
|
3518
|
+
class: "bg-role-surface-container rounded-xl flex items-center justify-center p-4 mb-4"
|
|
3519
|
+
}, nu = { key: 0 }, ru = ["src"], iu = { key: 1 }, au = {
|
|
3520
|
+
key: 2,
|
|
3590
3521
|
class: "flex items-center oc-space-details-sidebar-members mb-2 text-sm gap-2"
|
|
3591
|
-
},
|
|
3522
|
+
}, ou = ["textContent"], su = ["textContent"], cu = ["aria-label"], lu = /* @__PURE__ */ U({
|
|
3592
3523
|
__name: "SpaceDetails",
|
|
3593
3524
|
props: { showShareIndicators: {
|
|
3594
3525
|
type: Boolean,
|
|
3595
3526
|
default: !0
|
|
3596
3527
|
} },
|
|
3597
3528
|
setup(e) {
|
|
3598
|
-
let t =
|
|
3599
|
-
|
|
3529
|
+
let t = Qn(), n = dr(), { resourceContentsText: r } = yr({ showSizeInformation: !1 }), i = ji(), { $gettext: a, $ngettext: o, current: s } = Q(), { loadPreview: c } = Ai(), { openSideBarPanel: l } = Oi(), u = hi(), { imagesLoading: d } = $(u), f = jr(), p = Rn("resource"), m = z(""), { user: h } = $(t), g = q(() => u.getSpaceMembers(R(p))), _ = q(() => f.linkShares.length), v = q(() => n.areWebDavDetailsShown), y = q(() => !Qr(i, "files-spaces-projects")), b = q(() => `${We(R(p).size, s)}, ${R(r)}`);
|
|
3530
|
+
P(() => R(p).spaceImageData, async () => {
|
|
3600
3531
|
m.value = await c({
|
|
3601
|
-
space:
|
|
3602
|
-
resource:
|
|
3603
|
-
dimensions:
|
|
3604
|
-
processor:
|
|
3532
|
+
space: R(p),
|
|
3533
|
+
resource: R(p).spaceImageData ? Za(R(p)) : R(p),
|
|
3534
|
+
dimensions: Ge.Tile,
|
|
3535
|
+
processor: xr.enum.fit,
|
|
3605
3536
|
cancelRunning: !0,
|
|
3606
3537
|
updateStore: !1
|
|
3607
3538
|
});
|
|
3608
3539
|
}, { immediate: !0 });
|
|
3609
|
-
let x =
|
|
3610
|
-
if (
|
|
3611
|
-
if (!
|
|
3612
|
-
switch (
|
|
3613
|
-
case 1: return o("This space has one member and %{linkShareCount} link.", "This space has one member and %{linkShareCount} links.",
|
|
3614
|
-
default: return
|
|
3615
|
-
memberShareCount:
|
|
3616
|
-
linkShareCount:
|
|
3540
|
+
let x = q(() => R(g).length ? R(g).filter(io).map(({ sharedWith: e }) => e.id === R(h)?.id ? a("%{displayName} (me)", { displayName: e.displayName }) : e.displayName).join(", ") : eo(R(p), f.graphRoles)?.map(({ grantedToV2: e }) => e.user?.id === R(h)?.id ? a("%{displayName} (me)", { displayName: e.user.displayName }) : e.user?.displayName || e.group?.displayName).join(", ")), S = q(() => En(R(p).mdate, s)), C = q(() => R(E) || R(D)), ee = q(() => {
|
|
3541
|
+
if (R(E) && !R(D)) return R(k);
|
|
3542
|
+
if (!R(E) && R(D)) return R(A);
|
|
3543
|
+
switch (R(O)) {
|
|
3544
|
+
case 1: return o("This space has one member and %{linkShareCount} link.", "This space has one member and %{linkShareCount} links.", R(_), { linkShareCount: R(_).toString() });
|
|
3545
|
+
default: return R(_) === 1 ? a("This space has %{memberShareCount} members and one link.", { memberShareCount: R(O).toString() }) : a("This space has %{memberShareCount} members and %{linkShareCount} links.", {
|
|
3546
|
+
memberShareCount: R(O).toString(),
|
|
3547
|
+
linkShareCount: R(_).toString()
|
|
3617
3548
|
});
|
|
3618
3549
|
}
|
|
3619
|
-
}), w =
|
|
3550
|
+
}), w = q(() => a("Open share panel")), T = q(() => a("Open link list in share panel")), te = q(() => a("Open member list in share panel")), E = q(() => R(O) > 0), D = q(() => R(_) > 0), O = q(() => R(g).length), k = q(() => o("This space has %{memberShareCount} member.", "This space has %{memberShareCount} members.", R(O), { memberShareCount: R(O).toString() })), A = q(() => o("%{linkShareCount} link giving access.", "%{linkShareCount} links giving access.", R(_), { linkShareCount: R(_).toString() }));
|
|
3620
3551
|
return (t, n) => {
|
|
3621
|
-
let r =
|
|
3622
|
-
return Z(), X("div",
|
|
3623
|
-
|
|
3552
|
+
let r = I("oc-spinner"), i = I("oc-icon"), o = I("oc-button");
|
|
3553
|
+
return Z(), X("div", eu, [
|
|
3554
|
+
R(d).includes(R(p).id) ? (Z(), H(r, {
|
|
3624
3555
|
key: 0,
|
|
3625
|
-
"aria-label":
|
|
3626
|
-
}, null, 8, ["aria-label"])) : m.value ? (Z(), X("div",
|
|
3556
|
+
"aria-label": R(a)("Space image is loading")
|
|
3557
|
+
}, null, 8, ["aria-label"])) : (Z(), X("div", tu, [m.value ? (Z(), X("div", nu, [Y("img", {
|
|
3627
3558
|
src: m.value,
|
|
3628
3559
|
alt: "",
|
|
3629
|
-
class: "
|
|
3630
|
-
}, null, 8,
|
|
3631
|
-
key: 2,
|
|
3560
|
+
class: "h-[160px]"
|
|
3561
|
+
}, null, 8, ru)])) : (Z(), X("div", iu, [J(i, {
|
|
3632
3562
|
name: "layout-grid",
|
|
3633
|
-
size: "
|
|
3563
|
+
size: "xxxlarge",
|
|
3634
3564
|
class: "space-default-image px-4 py-4"
|
|
3635
|
-
}))]),
|
|
3636
|
-
e.showShareIndicators && C.value && !
|
|
3637
|
-
E.value ? (Z(),
|
|
3565
|
+
})]))])),
|
|
3566
|
+
e.showShareIndicators && C.value && !R(p).disabled ? (Z(), X("div", au, [
|
|
3567
|
+
E.value ? (Z(), H(o, {
|
|
3638
3568
|
key: 0,
|
|
3639
3569
|
appearance: "raw",
|
|
3640
3570
|
"aria-label": te.value,
|
|
3641
3571
|
"no-hover": "",
|
|
3642
|
-
onClick: n[0] ||= (e) =>
|
|
3572
|
+
onClick: n[0] ||= (e) => R(l)("space-share")
|
|
3643
3573
|
}, {
|
|
3644
|
-
default:
|
|
3574
|
+
default: F(() => [J(i, {
|
|
3645
3575
|
name: "group",
|
|
3646
3576
|
size: "small",
|
|
3647
3577
|
"fill-type": "line"
|
|
3648
3578
|
})]),
|
|
3649
3579
|
_: 1
|
|
3650
|
-
}, 8, ["aria-label"])) :
|
|
3651
|
-
D.value ? (Z(),
|
|
3580
|
+
}, 8, ["aria-label"])) : K("", !0),
|
|
3581
|
+
D.value ? (Z(), H(o, {
|
|
3652
3582
|
key: 1,
|
|
3653
3583
|
appearance: "raw",
|
|
3654
3584
|
"aria-label": T.value,
|
|
3655
3585
|
"no-hover": "",
|
|
3656
|
-
onClick: n[1] ||= (e) =>
|
|
3586
|
+
onClick: n[1] ||= (e) => R(l)("space-share")
|
|
3657
3587
|
}, {
|
|
3658
|
-
default:
|
|
3588
|
+
default: F(() => [J(i, {
|
|
3659
3589
|
name: "link",
|
|
3660
3590
|
size: "small",
|
|
3661
3591
|
"fill-type": "line"
|
|
3662
3592
|
})]),
|
|
3663
3593
|
_: 1
|
|
3664
|
-
}, 8, ["aria-label"])) :
|
|
3665
|
-
Y("p", { textContent:
|
|
3666
|
-
|
|
3594
|
+
}, 8, ["aria-label"])) : K("", !0),
|
|
3595
|
+
Y("p", { textContent: G(ee.value) }, null, 8, ou),
|
|
3596
|
+
J(o, {
|
|
3667
3597
|
appearance: "raw",
|
|
3668
3598
|
"aria-label": w.value,
|
|
3669
3599
|
size: "small",
|
|
3670
3600
|
"no-hover": "",
|
|
3671
|
-
onClick: n[2] ||= (e) =>
|
|
3601
|
+
onClick: n[2] ||= (e) => R(l)("space-share")
|
|
3672
3602
|
}, {
|
|
3673
|
-
default:
|
|
3603
|
+
default: F(() => [Y("span", {
|
|
3674
3604
|
class: "text-sm",
|
|
3675
|
-
textContent:
|
|
3676
|
-
}, null, 8,
|
|
3605
|
+
textContent: G(R(a)("Show"))
|
|
3606
|
+
}, null, 8, su)]),
|
|
3677
3607
|
_: 1
|
|
3678
3608
|
}, 8, ["aria-label"])
|
|
3679
|
-
])) :
|
|
3609
|
+
])) : K("", !0),
|
|
3680
3610
|
Y("dl", {
|
|
3681
|
-
class: "details-list
|
|
3682
|
-
"aria-label":
|
|
3611
|
+
class: "details-list",
|
|
3612
|
+
"aria-label": R(a)("Overview of the information about the selected space")
|
|
3683
3613
|
}, [
|
|
3684
|
-
Y("dt", null,
|
|
3685
|
-
Y("dd", null,
|
|
3686
|
-
|
|
3687
|
-
Y("dt", null,
|
|
3688
|
-
Y("dd", null,
|
|
3689
|
-
|
|
3690
|
-
y.value ? (Z(), X(
|
|
3691
|
-
v.value ? (Z(),
|
|
3614
|
+
Y("dt", null, G(R(a)("Last activity")), 1),
|
|
3615
|
+
Y("dd", null, G(S.value), 1),
|
|
3616
|
+
R(p).description ? (Z(), X(W, { key: 0 }, [Y("dt", null, G(R(a)("Subtitle")), 1), Y("dd", null, G(R(p).description), 1)], 64)) : K("", !0),
|
|
3617
|
+
Y("dt", null, G(R(a)("Manager")), 1),
|
|
3618
|
+
Y("dd", null, G(x.value), 1),
|
|
3619
|
+
R(p).disabled ? K("", !0) : (Z(), X(W, { key: 1 }, [Y("dt", null, G(R(a)("Quota")), 1), Y("dd", null, [J(Ul, { "space-quota": R(p).spaceQuota }, null, 8, ["space-quota"])])], 64)),
|
|
3620
|
+
y.value ? (Z(), X(W, { key: 2 }, [Y("dt", null, G(R(a)("Size")), 1), Y("dd", null, G(b.value), 1)], 64)) : K("", !0),
|
|
3621
|
+
v.value ? (Z(), H(Xl, {
|
|
3692
3622
|
key: 3,
|
|
3693
|
-
space:
|
|
3694
|
-
}, null, 8, ["space"])) :
|
|
3695
|
-
|
|
3696
|
-
], 8,
|
|
3623
|
+
space: R(p)
|
|
3624
|
+
}, null, 8, ["space"])) : K("", !0),
|
|
3625
|
+
J(Zl, { "extension-point": R(Ql) }, null, 8, ["extension-point"])
|
|
3626
|
+
], 8, cu)
|
|
3697
3627
|
]);
|
|
3698
3628
|
};
|
|
3699
3629
|
}
|
|
3700
|
-
}),
|
|
3630
|
+
}), uu = {
|
|
3701
3631
|
id: "oc-spaces-details-multiple-sidebar",
|
|
3702
3632
|
class: "p-4 bg-role-surface-container rounded-sm"
|
|
3703
|
-
},
|
|
3633
|
+
}, du = { class: "text-center mb-6 rounded-sm" }, fu = ["textContent"], pu = /* @__PURE__ */ U({
|
|
3704
3634
|
__name: "SpaceDetailsMultiple",
|
|
3705
3635
|
props: { selectedSpaces: {} },
|
|
3706
3636
|
setup(e) {
|
|
3707
|
-
let t = Q(), { $gettext: n, $ngettext: r } = t, i =
|
|
3637
|
+
let t = Q(), { $gettext: n, $ngettext: r } = t, i = q(() => {
|
|
3708
3638
|
let n = 0;
|
|
3709
3639
|
return e.selectedSpaces.forEach((e) => {
|
|
3710
3640
|
n += e.spaceQuota.total;
|
|
3711
|
-
}),
|
|
3712
|
-
}), a =
|
|
3641
|
+
}), We(n, t.current);
|
|
3642
|
+
}), a = q(() => {
|
|
3713
3643
|
let n = 0;
|
|
3714
3644
|
return e.selectedSpaces.forEach((e) => {
|
|
3715
3645
|
e.disabled || (n += e.spaceQuota.remaining);
|
|
3716
|
-
}),
|
|
3717
|
-
}), o =
|
|
3646
|
+
}), We(n, t.current);
|
|
3647
|
+
}), o = q(() => {
|
|
3718
3648
|
let n = 0;
|
|
3719
3649
|
return e.selectedSpaces.forEach((e) => {
|
|
3720
3650
|
e.disabled || (n += e.spaceQuota.used);
|
|
3721
|
-
}),
|
|
3722
|
-
}), s =
|
|
3651
|
+
}), We(n, t.current);
|
|
3652
|
+
}), s = q(() => e.selectedSpaces.filter((e) => !e.disabled).length), c = q(() => e.selectedSpaces.filter((e) => e.disabled).length), l = q(() => n("Overview of the information about the selected spaces")), u = q(() => r("%{ itemCount } space selected", "%{ itemCount } spaces selected", e.selectedSpaces.length, { itemCount: e.selectedSpaces.length.toString() })), d = q(() => [
|
|
3723
3653
|
{
|
|
3724
3654
|
term: n("Total quota:"),
|
|
3725
|
-
definition:
|
|
3655
|
+
definition: R(i).toString()
|
|
3726
3656
|
},
|
|
3727
3657
|
{
|
|
3728
3658
|
term: n("Remaining quota:"),
|
|
3729
|
-
definition:
|
|
3659
|
+
definition: R(a).toString()
|
|
3730
3660
|
},
|
|
3731
3661
|
{
|
|
3732
3662
|
term: n("Used quota:"),
|
|
3733
|
-
definition:
|
|
3663
|
+
definition: R(o).toString()
|
|
3734
3664
|
},
|
|
3735
3665
|
{
|
|
3736
3666
|
term: n("Enabled:"),
|
|
3737
|
-
definition:
|
|
3667
|
+
definition: R(s).toString()
|
|
3738
3668
|
},
|
|
3739
3669
|
{
|
|
3740
3670
|
term: n("Disabled:"),
|
|
3741
|
-
definition:
|
|
3671
|
+
definition: R(c).toString()
|
|
3742
3672
|
}
|
|
3743
3673
|
]);
|
|
3744
3674
|
return (e, t) => {
|
|
3745
|
-
let n =
|
|
3746
|
-
return Z(), X("div",
|
|
3675
|
+
let n = I("oc-icon"), r = I("oc-definition-list");
|
|
3676
|
+
return Z(), X("div", uu, [Y("div", du, [Y("div", null, [J(n, {
|
|
3747
3677
|
size: "xxlarge",
|
|
3748
3678
|
name: "layout-grid"
|
|
3749
|
-
}), Y("p", { textContent:
|
|
3679
|
+
}), Y("p", { textContent: G(u.value) }, null, 8, fu)])]), J(r, {
|
|
3750
3680
|
"aria-label": l.value,
|
|
3751
3681
|
items: d.value,
|
|
3752
3682
|
class: "m-0"
|
|
3753
3683
|
}, null, 8, ["aria-label", "items"])]);
|
|
3754
3684
|
};
|
|
3755
3685
|
}
|
|
3756
|
-
}),
|
|
3757
|
-
function
|
|
3758
|
-
let o =
|
|
3759
|
-
return Z(), X("div",
|
|
3686
|
+
}), mu = U({ name: "SpaceNoSelection" }), hu = { class: "mt-12" }, gu = { class: "flex flex-col items-center space-info text-center" }, _u = ["textContent"];
|
|
3687
|
+
function vu(e, t, n, r, i, a) {
|
|
3688
|
+
let o = I("oc-icon");
|
|
3689
|
+
return Z(), X("div", hu, [Y("div", gu, [J(o, {
|
|
3760
3690
|
name: "layout-grid",
|
|
3761
3691
|
size: "xxlarge"
|
|
3762
|
-
}), Y("p", { textContent:
|
|
3692
|
+
}), Y("p", { textContent: G(e.$gettext("Select a space to view details")) }, null, 8, _u)])]);
|
|
3763
3693
|
}
|
|
3764
|
-
var
|
|
3694
|
+
var yu = /* @__PURE__ */ B(mu, [["render", vu]]), bu = U({
|
|
3765
3695
|
name: "CompareSaveDialog",
|
|
3766
3696
|
props: {
|
|
3767
3697
|
originalObject: {
|
|
@@ -3779,18 +3709,18 @@ var Tu = /* @__PURE__ */ z(bu, [["render", wu]]), Eu = H({
|
|
|
3779
3709
|
},
|
|
3780
3710
|
emits: ["confirm", "revert"],
|
|
3781
3711
|
setup() {
|
|
3782
|
-
let e =
|
|
3783
|
-
return
|
|
3784
|
-
t =
|
|
3712
|
+
let e = z(!1), t;
|
|
3713
|
+
return Vt(() => {
|
|
3714
|
+
t = $r.subscribe("sidebar.entity.saved", () => {
|
|
3785
3715
|
e.value = !0;
|
|
3786
3716
|
});
|
|
3787
3717
|
}), ja(() => {
|
|
3788
|
-
|
|
3718
|
+
$r.unsubscribe("sidebar.entity.saved", t);
|
|
3789
3719
|
}), { saved: e };
|
|
3790
3720
|
},
|
|
3791
3721
|
computed: {
|
|
3792
3722
|
unsavedChanges() {
|
|
3793
|
-
return !
|
|
3723
|
+
return !fi(this.originalObject, this.compareObject);
|
|
3794
3724
|
},
|
|
3795
3725
|
unsavedChangesText() {
|
|
3796
3726
|
return this.unsavedChanges ? this.$gettext("Unsaved changes") : this.$gettext("No changes");
|
|
@@ -3804,33 +3734,33 @@ var Tu = /* @__PURE__ */ z(bu, [["render", wu]]), Eu = H({
|
|
|
3804
3734
|
this.saved = !1;
|
|
3805
3735
|
}
|
|
3806
3736
|
}
|
|
3807
|
-
}),
|
|
3737
|
+
}), xu = { class: "w-full flex flex-row flex-wrap justify-between items-center" }, Su = {
|
|
3808
3738
|
key: 0,
|
|
3809
3739
|
class: "flex items-center"
|
|
3810
|
-
},
|
|
3811
|
-
function
|
|
3812
|
-
let o =
|
|
3813
|
-
return Z(), X("div",
|
|
3740
|
+
}, Cu = ["textContent"], wu = { key: 1 }, Tu = ["textContent"], Eu = ["textContent"];
|
|
3741
|
+
function Du(e, t, n, r, i, a) {
|
|
3742
|
+
let o = I("oc-icon"), s = I("oc-button");
|
|
3743
|
+
return Z(), X("div", xu, [e.saved ? (Z(), X("span", Su, [J(o, { name: "checkbox-circle" }), Y("span", {
|
|
3814
3744
|
class: "ml-2",
|
|
3815
|
-
textContent:
|
|
3816
|
-
}, null, 8,
|
|
3745
|
+
textContent: G(e.$gettext("Changes saved"))
|
|
3746
|
+
}, null, 8, Cu)])) : (Z(), X("span", wu, G(e.unsavedChangesText), 1)), Y("div", null, [J(s, {
|
|
3817
3747
|
disabled: !e.unsavedChanges,
|
|
3818
3748
|
class: "compare-save-dialog-revert-btn",
|
|
3819
3749
|
onClick: t[0] ||= (t) => e.$emit("revert")
|
|
3820
3750
|
}, {
|
|
3821
|
-
default:
|
|
3751
|
+
default: F(() => [Y("span", { textContent: G(e.$gettext("Revert")) }, null, 8, Tu)]),
|
|
3822
3752
|
_: 1
|
|
3823
|
-
}, 8, ["disabled"]),
|
|
3753
|
+
}, 8, ["disabled"]), J(s, {
|
|
3824
3754
|
appearance: "filled",
|
|
3825
3755
|
class: "compare-save-dialog-confirm-btn",
|
|
3826
3756
|
disabled: !e.unsavedChanges || e.confirmButtonDisabled,
|
|
3827
3757
|
onClick: t[1] ||= (t) => e.$emit("confirm")
|
|
3828
3758
|
}, {
|
|
3829
|
-
default:
|
|
3759
|
+
default: F(() => [Y("span", { textContent: G(e.$gettext("Save")) }, null, 8, Eu)]),
|
|
3830
3760
|
_: 1
|
|
3831
3761
|
}, 8, ["disabled"])])]);
|
|
3832
3762
|
}
|
|
3833
|
-
var
|
|
3763
|
+
var Ou = /* @__PURE__ */ B(bu, [["render", Du]]), ku = mi(async () => (await import("./TextEditor-CTRIgoeG.js")).default), Au = { class: "flex items-center truncate" }, ju = { class: "truncate" }, Mu = { class: "flex" }, Nu = /* @__PURE__ */ U({
|
|
3834
3764
|
__name: "ItemFilter",
|
|
3835
3765
|
props: {
|
|
3836
3766
|
filterLabel: {},
|
|
@@ -3855,50 +3785,50 @@ var Pu = /* @__PURE__ */ z(Eu, [["render", Nu]]), Fu = hi(async () => (await imp
|
|
|
3855
3785
|
},
|
|
3856
3786
|
emits: ["selectionChange"],
|
|
3857
3787
|
setup(e, { expose: t, emit: n }) {
|
|
3858
|
-
let i = n, a =
|
|
3859
|
-
...Zi(
|
|
3860
|
-
...!!
|
|
3861
|
-
} }), h = (e) => !!
|
|
3862
|
-
h(t) ? c.value =
|
|
3863
|
-
}, _ =
|
|
3788
|
+
let i = n, a = ji(), o = br(), s = de("filterInputRef"), c = z([]), l = z(e.items), u = de("itemFilterListRef"), d = `q_${e.filterName}`, f = r(d), p = (t) => t[e.idAttribute], m = () => a.push({ query: {
|
|
3789
|
+
...Zi(R(o).query, [d]),
|
|
3790
|
+
...!!R(c).length && { [d]: R(c).reduce((e, t) => (e += `${p(t)}+`, e), "").slice(0, -1) }
|
|
3791
|
+
} }), h = (e) => !!R(c).find((t) => p(t) === p(e)), g = async (t) => {
|
|
3792
|
+
h(t) ? c.value = R(c).filter((e) => p(e) !== p(t)) : (e.allowMultiple || (c.value = []), c.value.push(t)), await m(), i("selectionChange", R(c));
|
|
3793
|
+
}, _ = z(), v = (t, n) => {
|
|
3864
3794
|
if (!(n || "").trim()) return t;
|
|
3865
3795
|
let r = new po(t, {
|
|
3866
|
-
...
|
|
3796
|
+
...an,
|
|
3867
3797
|
keys: e.filterableAttributes
|
|
3868
3798
|
}).search(n).map((e) => e.item);
|
|
3869
3799
|
return t.filter((e) => r.includes(e));
|
|
3870
3800
|
}, y = () => {
|
|
3871
|
-
c.value = [], i("selectionChange",
|
|
3801
|
+
c.value = [], i("selectionChange", R(c)), m();
|
|
3872
3802
|
}, b = (e) => {
|
|
3873
3803
|
l.value = e;
|
|
3874
3804
|
}, x = async () => {
|
|
3875
|
-
b(e.items), await Ra(),
|
|
3805
|
+
b(e.items), await Ra(), R(s)?.focus();
|
|
3876
3806
|
}, S;
|
|
3877
|
-
|
|
3878
|
-
b(v(e.items,
|
|
3807
|
+
P(_, () => {
|
|
3808
|
+
b(v(e.items, R(_))), R(u) && (S = new bo(R(u)), S.unmark(), S.mark(R(_), {
|
|
3879
3809
|
element: "span",
|
|
3880
3810
|
className: "mark-highlight"
|
|
3881
3811
|
}));
|
|
3882
3812
|
});
|
|
3883
3813
|
let C = () => {
|
|
3884
|
-
let t =
|
|
3814
|
+
let t = Le(R(f));
|
|
3885
3815
|
if (t) {
|
|
3886
3816
|
let n = t.split("+");
|
|
3887
3817
|
c.value = e.items.filter((e) => n.includes(p(e)));
|
|
3888
3818
|
}
|
|
3889
3819
|
};
|
|
3890
|
-
return t({ setSelectedItemsBasedOnQuery: C }),
|
|
3820
|
+
return t({ setSelectedItemsBasedOnQuery: C }), Vt(() => {
|
|
3891
3821
|
C();
|
|
3892
3822
|
}), (t, n) => {
|
|
3893
|
-
let r =
|
|
3894
|
-
return Z(), X("div", { class:
|
|
3823
|
+
let r = I("oc-checkbox"), i = I("oc-icon"), a = I("oc-button"), o = I("oc-list"), d = I("oc-filter-chip");
|
|
3824
|
+
return Z(), X("div", { class: V(["item-filter flex", `item-filter-${e.filterName}`]) }, [J(d, {
|
|
3895
3825
|
"filter-label": e.filterLabel,
|
|
3896
3826
|
"selected-item-names": c.value.map((t) => t[e.displayNameAttribute]),
|
|
3897
3827
|
"close-on-click": e.closeOnClick,
|
|
3898
3828
|
onClearFilter: y,
|
|
3899
3829
|
onShowDrop: x
|
|
3900
3830
|
}, {
|
|
3901
|
-
default:
|
|
3831
|
+
default: F(() => [e.showOptionFilter && e.filterableAttributes.length ? (Z(), H(R(Qi), {
|
|
3902
3832
|
key: 0,
|
|
3903
3833
|
ref_key: "filterInputRef",
|
|
3904
3834
|
ref: s,
|
|
@@ -3907,15 +3837,15 @@ var Pu = /* @__PURE__ */ z(Eu, [["render", Nu]]), Fu = hi(async () => (await imp
|
|
|
3907
3837
|
class: "item-filter-input mb-4 mt-2",
|
|
3908
3838
|
autocomplete: "off",
|
|
3909
3839
|
label: e.optionFilterLabel === "" ? t.$gettext("Filter list") : e.optionFilterLabel
|
|
3910
|
-
}, null, 8, ["modelValue", "label"])) :
|
|
3840
|
+
}, null, 8, ["modelValue", "label"])) : K("", !0), Y("div", {
|
|
3911
3841
|
ref_key: "itemFilterListRef",
|
|
3912
3842
|
ref: u
|
|
3913
|
-
}, [
|
|
3914
|
-
default:
|
|
3843
|
+
}, [J(o, { class: "item-filter-list" }, {
|
|
3844
|
+
default: F(() => [(Z(!0), X(W, null, M(l.value, (o, s) => (Z(), X("li", {
|
|
3915
3845
|
key: s,
|
|
3916
3846
|
class: "my-1"
|
|
3917
|
-
}, [
|
|
3918
|
-
class:
|
|
3847
|
+
}, [J(a, {
|
|
3848
|
+
class: V(["item-filter-list-item flex items-center w-full", {
|
|
3919
3849
|
"item-filter-list-item-active": !e.allowMultiple && h(o),
|
|
3920
3850
|
"justify-start": e.allowMultiple,
|
|
3921
3851
|
"justify-between": !e.allowMultiple
|
|
@@ -3925,8 +3855,8 @@ var Pu = /* @__PURE__ */ z(Eu, [["render", Nu]]), Fu = hi(async () => (await imp
|
|
|
3925
3855
|
"data-test-value": o[e.displayNameAttribute],
|
|
3926
3856
|
onClick: (e) => g(o)
|
|
3927
3857
|
}, {
|
|
3928
|
-
default:
|
|
3929
|
-
e.allowMultiple ? (Z(),
|
|
3858
|
+
default: F(() => [Y("div", Au, [
|
|
3859
|
+
e.allowMultiple ? (Z(), H(r, {
|
|
3930
3860
|
key: 0,
|
|
3931
3861
|
size: "large",
|
|
3932
3862
|
class: "mr-2",
|
|
@@ -3934,18 +3864,18 @@ var Pu = /* @__PURE__ */ z(Eu, [["render", Nu]]), Fu = hi(async () => (await imp
|
|
|
3934
3864
|
"model-value": h(o),
|
|
3935
3865
|
"label-hidden": !0,
|
|
3936
3866
|
"onUpdate:modelValue": (e) => g(o),
|
|
3937
|
-
onClick: n[1] ||=
|
|
3867
|
+
onClick: n[1] ||= Ki(() => {}, ["stop"])
|
|
3938
3868
|
}, null, 8, [
|
|
3939
3869
|
"label",
|
|
3940
3870
|
"model-value",
|
|
3941
3871
|
"onUpdate:modelValue"
|
|
3942
|
-
])) :
|
|
3872
|
+
])) : K("", !0),
|
|
3943
3873
|
Y("div", null, [k(t.$slots, "image", { item: o })]),
|
|
3944
|
-
Y("div",
|
|
3945
|
-
]), Y("div",
|
|
3874
|
+
Y("div", ju, [k(t.$slots, "item", { item: o })])
|
|
3875
|
+
]), Y("div", Mu, [!e.allowMultiple && h(o) ? (Z(), H(i, {
|
|
3946
3876
|
key: 0,
|
|
3947
3877
|
name: "check"
|
|
3948
|
-
})) :
|
|
3878
|
+
})) : K("", !0)])]),
|
|
3949
3879
|
_: 2
|
|
3950
3880
|
}, 1032, [
|
|
3951
3881
|
"class",
|
|
@@ -3962,7 +3892,7 @@ var Pu = /* @__PURE__ */ z(Eu, [["render", Nu]]), Fu = hi(async () => (await imp
|
|
|
3962
3892
|
])], 2);
|
|
3963
3893
|
};
|
|
3964
3894
|
}
|
|
3965
|
-
}),
|
|
3895
|
+
}), Pu = U({
|
|
3966
3896
|
name: "ItemFilterToggle",
|
|
3967
3897
|
props: {
|
|
3968
3898
|
filterLabel: {
|
|
@@ -3976,26 +3906,26 @@ var Pu = /* @__PURE__ */ z(Eu, [["render", Nu]]), Fu = hi(async () => (await imp
|
|
|
3976
3906
|
},
|
|
3977
3907
|
emits: ["toggleFilter"],
|
|
3978
3908
|
setup: function(e, { emit: t }) {
|
|
3979
|
-
let n =
|
|
3980
|
-
...Zi(
|
|
3981
|
-
...
|
|
3909
|
+
let n = ji(), i = br(), a = z(!1), o = `q_${e.filterName}`, s = r(o), c = () => n.push({ query: {
|
|
3910
|
+
...Zi(R(i).query, [o]),
|
|
3911
|
+
...R(a) && { [o]: "true" }
|
|
3982
3912
|
} });
|
|
3983
|
-
return
|
|
3984
|
-
|
|
3913
|
+
return Vt(() => {
|
|
3914
|
+
Le(R(s)) === "true" && (a.value = !0);
|
|
3985
3915
|
}), {
|
|
3986
3916
|
queryParam: o,
|
|
3987
3917
|
filterActive: a,
|
|
3988
3918
|
toggleFilter: async () => {
|
|
3989
|
-
a.value = !
|
|
3919
|
+
a.value = !R(a), await c(), t("toggleFilter", R(a));
|
|
3990
3920
|
}
|
|
3991
3921
|
};
|
|
3992
3922
|
}
|
|
3993
3923
|
});
|
|
3994
3924
|
//#endregion
|
|
3995
3925
|
//#region src/components/ItemFilterToggle.vue
|
|
3996
|
-
function
|
|
3997
|
-
let o =
|
|
3998
|
-
return Z(), X("div", { class:
|
|
3926
|
+
function Fu(e, t, n, r, i, a) {
|
|
3927
|
+
let o = I("oc-filter-chip");
|
|
3928
|
+
return Z(), X("div", { class: V(["item-filter flex", `item-filter-${e.filterName}`]) }, [J(o, {
|
|
3999
3929
|
"is-toggle": !0,
|
|
4000
3930
|
"filter-label": e.filterLabel,
|
|
4001
3931
|
"is-toggle-active": e.filterActive,
|
|
@@ -4008,38 +3938,38 @@ function Vu(e, t, n, r, i, a) {
|
|
|
4008
3938
|
"onClearFilter"
|
|
4009
3939
|
])], 2);
|
|
4010
3940
|
}
|
|
4011
|
-
var
|
|
3941
|
+
var Iu = /* @__PURE__ */ B(Pu, [["render", Fu]]), Lu = U({
|
|
4012
3942
|
name: "LoadingIndicator",
|
|
4013
3943
|
setup() {
|
|
4014
|
-
let e =
|
|
3944
|
+
let e = qt(), t, n, r, i = z(e.isLoading), a = z(e.currentProgress), o = () => {
|
|
4015
3945
|
a.value = e.currentProgress, i.value = e.isLoading;
|
|
4016
3946
|
}, s = () => {
|
|
4017
3947
|
a.value = e.currentProgress;
|
|
4018
3948
|
};
|
|
4019
|
-
return
|
|
4020
|
-
t =
|
|
3949
|
+
return Vt(() => {
|
|
3950
|
+
t = $r.subscribe(Fr.add, o), n = $r.subscribe(Fr.remove, o), r = $r.subscribe(Fr.setProgress, s);
|
|
4021
3951
|
}), ja(() => {
|
|
4022
|
-
|
|
3952
|
+
$r.unsubscribe(Fr.add, t), $r.unsubscribe(Fr.remove, n), $r.unsubscribe(Fr.setProgress, r);
|
|
4023
3953
|
}), {
|
|
4024
3954
|
isLoading: i,
|
|
4025
3955
|
currentProgress: a
|
|
4026
3956
|
};
|
|
4027
3957
|
}
|
|
4028
|
-
}),
|
|
3958
|
+
}), Ru = {
|
|
4029
3959
|
key: 0,
|
|
4030
3960
|
id: "oc-loading-indicator",
|
|
4031
3961
|
class: "w-full"
|
|
4032
3962
|
};
|
|
4033
|
-
function
|
|
4034
|
-
let o =
|
|
4035
|
-
return e.isLoading ? (Z(), X("div",
|
|
3963
|
+
function zu(e, t, n, r, i, a) {
|
|
3964
|
+
let o = I("oc-progress");
|
|
3965
|
+
return e.isLoading ? (Z(), X("div", Ru, [J(o, {
|
|
4036
3966
|
max: 100,
|
|
4037
3967
|
indeterminate: e.currentProgress === null,
|
|
4038
3968
|
value: e.currentProgress,
|
|
4039
3969
|
size: "xsmall"
|
|
4040
|
-
}, null, 8, ["indeterminate", "value"])])) :
|
|
3970
|
+
}, null, 8, ["indeterminate", "value"])])) : K("", !0);
|
|
4041
3971
|
}
|
|
4042
|
-
var
|
|
3972
|
+
var Bu = /* @__PURE__ */ B(Lu, [["render", zu]]), Vu = { class: "no-content-message flex flex-col justify-center items-center text-center" }, Hu = { class: "text-role-on-surface-variant text-xl" }, Uu = { class: "text-role-on-surface-variant mt-1" }, Wu = /* @__PURE__ */ B(/* @__PURE__ */ U({
|
|
4043
3973
|
__name: "NoContentMessage",
|
|
4044
3974
|
props: {
|
|
4045
3975
|
icon: { default: "" },
|
|
@@ -4048,30 +3978,30 @@ var Ku = /* @__PURE__ */ z(Uu, [["render", Gu]]), qu = { class: "no-content-mess
|
|
|
4048
3978
|
},
|
|
4049
3979
|
setup(e) {
|
|
4050
3980
|
return (t, n) => {
|
|
4051
|
-
let r =
|
|
4052
|
-
return Z(), X("div",
|
|
4053
|
-
e.imgSrc ? (Z(),
|
|
3981
|
+
let r = I("oc-image"), i = I("oc-icon");
|
|
3982
|
+
return Z(), X("div", Vu, [
|
|
3983
|
+
e.imgSrc ? (Z(), H(r, {
|
|
4054
3984
|
key: 0,
|
|
4055
3985
|
width: "120",
|
|
4056
3986
|
height: "120",
|
|
4057
3987
|
class: "mb-4",
|
|
4058
3988
|
src: e.imgSrc,
|
|
4059
3989
|
alt: t.$gettext("No content image")
|
|
4060
|
-
}, null, 8, ["src", "alt"])) :
|
|
4061
|
-
e.icon ? (Z(),
|
|
3990
|
+
}, null, 8, ["src", "alt"])) : K("", !0),
|
|
3991
|
+
e.icon ? (Z(), H(i, {
|
|
4062
3992
|
key: 1,
|
|
4063
3993
|
name: e.icon,
|
|
4064
3994
|
type: "div",
|
|
4065
3995
|
size: "xxlarge",
|
|
4066
3996
|
"fill-type": e.iconFillType,
|
|
4067
3997
|
class: "mb-4"
|
|
4068
|
-
}, null, 8, ["name", "fill-type"])) :
|
|
4069
|
-
Y("div",
|
|
4070
|
-
Y("div",
|
|
3998
|
+
}, null, 8, ["name", "fill-type"])) : K("", !0),
|
|
3999
|
+
Y("div", Hu, [k(t.$slots, "message", {}, void 0, !0)]),
|
|
4000
|
+
Y("div", Uu, [k(t.$slots, "callToAction", {}, void 0, !0)])
|
|
4071
4001
|
]);
|
|
4072
4002
|
};
|
|
4073
4003
|
}
|
|
4074
|
-
}), [["__scopeId", "data-v-02a07e27"]]),
|
|
4004
|
+
}), [["__scopeId", "data-v-02a07e27"]]), Gu = U({
|
|
4075
4005
|
props: {
|
|
4076
4006
|
pages: {
|
|
4077
4007
|
type: Number,
|
|
@@ -4088,9 +4018,9 @@ var Ku = /* @__PURE__ */ z(Uu, [["render", Gu]]), qu = { class: "no-content-mess
|
|
|
4088
4018
|
});
|
|
4089
4019
|
//#endregion
|
|
4090
4020
|
//#region src/components/Pagination.vue
|
|
4091
|
-
function
|
|
4092
|
-
let o =
|
|
4093
|
-
return e.pages > 1 ? (Z(),
|
|
4021
|
+
function Ku(e, t, n, r, i, a) {
|
|
4022
|
+
let o = I("oc-pagination");
|
|
4023
|
+
return e.pages > 1 ? (Z(), H(o, {
|
|
4094
4024
|
key: 0,
|
|
4095
4025
|
pages: e.pages,
|
|
4096
4026
|
"current-page": e.currentPage,
|
|
@@ -4101,9 +4031,9 @@ function Qu(e, t, n, r, i, a) {
|
|
|
4101
4031
|
"pages",
|
|
4102
4032
|
"current-page",
|
|
4103
4033
|
"current-route"
|
|
4104
|
-
])) :
|
|
4034
|
+
])) : K("", !0);
|
|
4105
4035
|
}
|
|
4106
|
-
var
|
|
4036
|
+
var qu = /* @__PURE__ */ B(Gu, [["render", Ku]]), Ju = U({
|
|
4107
4037
|
name: "SearchBarFilter",
|
|
4108
4038
|
props: { currentFolderAvailable: {
|
|
4109
4039
|
type: Boolean,
|
|
@@ -4111,7 +4041,7 @@ var $u = /* @__PURE__ */ z(Zu, [["render", Qu]]), ed = H({
|
|
|
4111
4041
|
} },
|
|
4112
4042
|
emits: ["update:modelValue"],
|
|
4113
4043
|
setup(e, { emit: t }) {
|
|
4114
|
-
let { $gettext: n } = Q(), i = r("useScope"), a =
|
|
4044
|
+
let { $gettext: n } = Q(), i = r("useScope"), a = z(), o = z(), s = q(() => n(a.value?.title)), c = q(() => [{
|
|
4115
4045
|
id: g.currentFolder,
|
|
4116
4046
|
title: n("Current folder"),
|
|
4117
4047
|
enabled: e.currentFolderAvailable
|
|
@@ -4120,24 +4050,24 @@ var $u = /* @__PURE__ */ z(Zu, [["render", Qu]]), ed = H({
|
|
|
4120
4050
|
title: n("All files"),
|
|
4121
4051
|
enabled: !0
|
|
4122
4052
|
}]);
|
|
4123
|
-
return
|
|
4124
|
-
if (
|
|
4125
|
-
if (
|
|
4126
|
-
a.value =
|
|
4053
|
+
return P(() => e.currentFolderAvailable, () => {
|
|
4054
|
+
if (R(i)) {
|
|
4055
|
+
if (R(i).toString() === "true") {
|
|
4056
|
+
a.value = R(c).find(({ id: e }) => e === g.currentFolder);
|
|
4127
4057
|
return;
|
|
4128
4058
|
}
|
|
4129
|
-
a.value =
|
|
4059
|
+
a.value = R(c).find(({ id: e }) => e === g.allFiles);
|
|
4130
4060
|
return;
|
|
4131
4061
|
}
|
|
4132
4062
|
if (!e.currentFolderAvailable) {
|
|
4133
|
-
a.value =
|
|
4063
|
+
a.value = R(c).find(({ id: e }) => e === g.allFiles);
|
|
4134
4064
|
return;
|
|
4135
4065
|
}
|
|
4136
|
-
if (
|
|
4137
|
-
a.value =
|
|
4066
|
+
if (R(o)) {
|
|
4067
|
+
a.value = R(c).find(({ id: e }) => e === R(o).id);
|
|
4138
4068
|
return;
|
|
4139
4069
|
}
|
|
4140
|
-
a.value =
|
|
4070
|
+
a.value = R(c).find(({ id: e }) => e === g.allFiles);
|
|
4141
4071
|
}, { immediate: !0 }), {
|
|
4142
4072
|
currentSelection: a,
|
|
4143
4073
|
currentSelectionTitle: s,
|
|
@@ -4147,17 +4077,17 @@ var $u = /* @__PURE__ */ z(Zu, [["render", Qu]]), ed = H({
|
|
|
4147
4077
|
locationOptions: c
|
|
4148
4078
|
};
|
|
4149
4079
|
}
|
|
4150
|
-
}),
|
|
4080
|
+
}), Yu = { key: 0 }, Xu = {
|
|
4151
4081
|
key: 0,
|
|
4152
4082
|
class: "flex"
|
|
4153
4083
|
};
|
|
4154
|
-
function
|
|
4155
|
-
let o =
|
|
4084
|
+
function Zu(e, t, n, r, i, a) {
|
|
4085
|
+
let o = I("oc-icon"), s = I("oc-button"), c = I("oc-list"), l = I("oc-filter-chip");
|
|
4156
4086
|
return Z(), X("div", {
|
|
4157
4087
|
class: "z-[var(--z-index-modal)] absolute top-[50%] transform-[translateY(-50%)] right-0 ml-4 mb-4 mt-0 mr-[34px] float-right",
|
|
4158
4088
|
"data-testid": "search-bar-filter",
|
|
4159
|
-
onClick: t[0] ||=
|
|
4160
|
-
}, [e.currentSelection ? (Z(), X("div",
|
|
4089
|
+
onClick: t[0] ||= Ki(() => {}, ["stop"])
|
|
4090
|
+
}, [e.currentSelection ? (Z(), X("div", Yu, [J(l, {
|
|
4161
4091
|
"is-toggle": !1,
|
|
4162
4092
|
"is-toggle-active": !1,
|
|
4163
4093
|
"filter-label": e.$gettext("Location filter"),
|
|
@@ -4168,8 +4098,8 @@ function rd(e, t, n, r, i, a) {
|
|
|
4168
4098
|
raw: "",
|
|
4169
4099
|
"close-on-click": ""
|
|
4170
4100
|
}, {
|
|
4171
|
-
default:
|
|
4172
|
-
default:
|
|
4101
|
+
default: F(() => [J(c, null, {
|
|
4102
|
+
default: F(() => [(Z(!0), X(W, null, M(e.locationOptions, (t, n) => (Z(), X("li", { key: n }, [J(s, {
|
|
4173
4103
|
appearance: t.id === e.currentSelection.id ? "filled" : "raw-inverse",
|
|
4174
4104
|
"color-role": t.id === e.currentSelection.id ? "secondaryContainer" : "surface",
|
|
4175
4105
|
"no-hover": t.id === e.currentSelection.id,
|
|
@@ -4180,7 +4110,7 @@ function rd(e, t, n, r, i, a) {
|
|
|
4180
4110
|
"data-test-id": t.id,
|
|
4181
4111
|
onClick: (n) => e.onOptionSelected(t)
|
|
4182
4112
|
}, {
|
|
4183
|
-
default:
|
|
4113
|
+
default: F(() => [Y("span", null, G(t.title), 1), t.id === e.currentSelection.id ? (Z(), X("div", Xu, [J(o, { name: "check" })])) : K("", !0)]),
|
|
4184
4114
|
_: 2
|
|
4185
4115
|
}, 1032, [
|
|
4186
4116
|
"appearance",
|
|
@@ -4193,22 +4123,22 @@ function rd(e, t, n, r, i, a) {
|
|
|
4193
4123
|
_: 1
|
|
4194
4124
|
})]),
|
|
4195
4125
|
_: 1
|
|
4196
|
-
}, 8, ["filter-label", "selected-item-names"])])) :
|
|
4126
|
+
}, 8, ["filter-label", "selected-item-names"])])) : K("", !0)]);
|
|
4197
4127
|
}
|
|
4198
|
-
var
|
|
4128
|
+
var Qu = /* @__PURE__ */ B(Ju, [["render", Zu]]), $u = { key: 0 }, ed = {
|
|
4199
4129
|
key: 0,
|
|
4200
4130
|
class: "version-check-loading flex items-center"
|
|
4201
|
-
},
|
|
4131
|
+
}, td = ["textContent"], nd = {
|
|
4202
4132
|
key: 0,
|
|
4203
4133
|
class: "version-check-no-updates flex items-center"
|
|
4204
|
-
},
|
|
4134
|
+
}, rd = ["textContent"], id = ["textContent"], ad = /* @__PURE__ */ U({
|
|
4205
4135
|
__name: "VersionCheck",
|
|
4206
4136
|
setup(e) {
|
|
4207
|
-
let { $gettext: t } = Q(), n =
|
|
4208
|
-
return
|
|
4209
|
-
if (
|
|
4210
|
-
let e =
|
|
4211
|
-
|
|
4137
|
+
let { $gettext: t } = Q(), n = vi(), r = Kn(), { setHasError: i } = r, a = n.capabilities.core["check-for-updates"], { updates: o, isLoading: s, hasError: c } = $(r), l = q(() => a && !R(c)), u = z(!1), d = z(), f = n.status.edition || "rolling", p = n.status.productversion.split("+")[0];
|
|
4138
|
+
return P(() => o, () => {
|
|
4139
|
+
if (R(o)) try {
|
|
4140
|
+
let e = R(o).channels[f].current_version;
|
|
4141
|
+
le(e, p) > 0 && (u.value = !0, d.value = R(o).channels[f]);
|
|
4212
4142
|
} catch (e) {
|
|
4213
4143
|
console.error(e), i(!0);
|
|
4214
4144
|
}
|
|
@@ -4216,11 +4146,11 @@ var id = /* @__PURE__ */ z(ed, [["render", rd]]), ad = { key: 0 }, od = {
|
|
|
4216
4146
|
immediate: !0,
|
|
4217
4147
|
deep: !0
|
|
4218
4148
|
}), (e, n) => {
|
|
4219
|
-
let r =
|
|
4220
|
-
return l.value ? (Z(), X("div",
|
|
4149
|
+
let r = I("oc-spinner"), i = I("oc-icon"), a = I("oc-button");
|
|
4150
|
+
return l.value ? (Z(), X("div", $u, [R(s) ? (Z(), X("div", ed, [Y("span", { textContent: G(R(t)("Checking for updates")) }, null, 8, td), J(r, {
|
|
4221
4151
|
class: "ml-1",
|
|
4222
4152
|
size: "xsmall"
|
|
4223
|
-
})])) : (Z(), X(
|
|
4153
|
+
})])) : (Z(), X(W, { key: 1 }, [u.value ? (Z(), H(a, {
|
|
4224
4154
|
key: 1,
|
|
4225
4155
|
class: "version-check-update text-role-on-surface-variant",
|
|
4226
4156
|
size: "small",
|
|
@@ -4231,22 +4161,22 @@ var id = /* @__PURE__ */ z(ed, [["render", rd]]), ad = { key: 0 }, od = {
|
|
|
4231
4161
|
appearance: "raw",
|
|
4232
4162
|
"no-hover": ""
|
|
4233
4163
|
}, {
|
|
4234
|
-
default:
|
|
4164
|
+
default: F(() => [Y("span", {
|
|
4235
4165
|
class: "text-xs",
|
|
4236
|
-
textContent:
|
|
4237
|
-
}, null, 8,
|
|
4166
|
+
textContent: G(R(t)("Version %{version} available", { version: d.value.current_version }))
|
|
4167
|
+
}, null, 8, id), J(i, {
|
|
4238
4168
|
name: "refresh",
|
|
4239
4169
|
size: "xsmall",
|
|
4240
4170
|
"fill-type": "line"
|
|
4241
4171
|
})]),
|
|
4242
4172
|
_: 1
|
|
4243
|
-
}, 8, ["href"])) : (Z(), X("div",
|
|
4173
|
+
}, 8, ["href"])) : (Z(), X("div", nd, [Y("span", { textContent: G(R(t)("Up to date")) }, null, 8, rd), J(i, {
|
|
4244
4174
|
class: "ml-0.5",
|
|
4245
4175
|
name: "checkbox-circle",
|
|
4246
4176
|
size: "xsmall",
|
|
4247
4177
|
"fill-type": "line"
|
|
4248
|
-
})]))], 64))])) :
|
|
4178
|
+
})]))], 64))])) : K("", !0);
|
|
4249
4179
|
};
|
|
4250
4180
|
}
|
|
4251
|
-
}),
|
|
4252
|
-
export {
|
|
4181
|
+
}), od = Ua.dirname;
|
|
4182
|
+
export { be as AVATAR_UPLOAD_MAX_FILE_SIZE_MB, Ta as AccountCapabilitiesSchema, Yt as AccountSchema, N as AccountsSchema, Bl as AccountsSwitch, Ro as ActionMenuDropItem, Ao as ActionMenuItem, on as ApiError, ps as AppBar, Ut as AppLoadingSpinner, $t as AppProviderService, ys as AppTopBar, _c as AppWrapper, vc as AppWrapperRoute, bt as ArchiverService, et as Auth, Vc as AvatarUpload, No as BatchActions, na as Cache, c as ClientService, Vr as ClipboardActions, Ou as CompareSaveDialog, Li as ConflictDialog, Ho as ContextActionMenu, Go as ContextActions, yc as ContextMenuQuickAction, hr as CreateLinkModal, It as CreateShortcutModal, Zl as CustomComponentTarget, Tl as DateFilter, Xs as DatePickerModal, jt as EmojiPickerModal, mt as EventBus, Ws as FileInfo, Na as FilePickerModal, Gs as FileSideBar, S as FolderLoaderFavorites, zt as FolderLoaderSharedViaLink, ka as FolderLoaderSharedWithMe, Xn as FolderLoaderSharedWithOthers, Ca as FolderLoaderSpace, Ia as FolderLoaderTrashbin, In as FolderService, ma as FolderViewModeConstants, qr as HttpClient, A as IdentitySchema, Ge as ImageDimension, Vi as ImageType, Nu as ItemFilter, kl as ItemFilterInline, Iu as ItemFilterToggle, Ir as Key, gt as LimitsSchema, ia as LinkRoleDropdown, Fr as LoadingEventTopics, Bu as LoadingIndicator, Or as LoadingService, ni as MailCapabilitiesSchema, fn as MimeTypesToAppsSchema, kr as Modifier, Wu as NoContentMessage, qu as Pagination, Wt as PaginationConstants, cr as PasswordPolicyService, Mi as PreviewService, d as PrimaryAccountsSchema, xr as ProcessorType, Be as QuotaModal, Ii as QuotaSelect, ze as RESOURCE_MAX_CHARACTER_LENGTH, Dn as RESOURCE_NAME_MAX_BYTES, Br as RawConfigSchema, Yr as RawGroupwareConfigSchema, Qt as ResolveStrategy, Fe as ResourceConflictModal, Dc as ResourceGhostElement, nn as ResourceIcon, De as ResourceLink, y as ResourceListItem, ln as ResourceName, qa as ResourcePreview, jc as ResourceSize, Yc as ResourceTable, ol as ResourceTile, fl as ResourceTiles, Se as ResourceTransfer, Ce as RuntimeError, gi as SaveAsModal, Qu as SearchBarFilter, g as SearchLocationFilterConstants, Is as SideBar, Fs as SideBarPanels, rt as SieveCapabilitiesSchema, Vn as SortConstants, lu as SpaceDetails, pu as SpaceDetailsMultiple, Tr as SpaceImageModal, zs as SpaceInfo, Cn as SpaceMoveInfoModal, yu as SpaceNoSelection, Ul as SpaceQuota, ku as TextEditor, zn as ThemeConfig, dn as TransferType, nc as UnsavedChangesModal, nr as UppyService, Nc as UserAvatar, ad as VersionCheck, is as ViewOptions, gn as VisibilityObserver, Xl as WebDavDetails, ya as WebThemeConfig, la as activeApp, Pr as authContextValues, tn as blobToArrayBuffer, Un as breadcrumbsFromPath, ei as buildRoutes, tr as buildUrl, st as cacheService, hn as canvasToBlob, t as cloneStateObject, le as compareVersions, Ei as concatBreadcrumbs, pn as contextQueryToFileContextProps, _e as contextRouteNameKey, Ue as contextRouteParamsKey, zi as contextRouteQueryKey, oi as convertToMinimalUppyFile, Mt as createDefaultFileIconMapping, ai as createFileRouteOptions, ua as createFolderDummyFile, ot as createLocation, Kr as createLocationCommon, Fa as createLocationPublic, x as createLocationShares, pt as createLocationSpaces, Fn as createLocationTrash, an as defaultFuseOptions, wo as defineWebApplication, Ie as determineResourceTableSortFields, ge as determineResourceTilesSortFields, od as dirname, Nt as encodePath, $r as eventBus, $l as extensionPoints, Ql as fileSideBarSpaceDetailsTableExtensionPoint, m as filterResources, An as focusCheckbox, ga as folderService, Bi as formatDateFromDateTime, Re as formatDateFromHTTP, En as formatDateFromISO, bn as formatDateFromJSDate, Mn as formatDateFromRFC, We as formatFileSize, kt as formatRelativeDateFromDateTime, i as formatRelativeDateFromHTTP, mr as formatRelativeDateFromISO, ra as formatRelativeDateFromJSDate, yi as formatRelativeDateFromRFC, Xe as getBackendVersion, re as getExtensionNavItems, Wi as getLocaleFromLanguage, ye as getParentPaths, n as getSharedAncestorRoute, pr as getSharedDriveItem, wr as getSpacesByType, Ka as getTextByteSize, Ft as getWebVersion, qe as isItemInCurrentFolder, l as isLocationActive, yt as isLocationActiveDirector, $e as isLocationCommonActive, Yn as isLocationPublicActive, Sa as isLocationSharesActive, Qr as isLocationSpacesActive, ha as isLocationTrashActive, Ee as isMacOs, v as isPromiseFulfilled, cn as isPromiseRejected, he as isResourceBeeingMovedToSameLocation, Et as isSameResource, Oa as locationPublicLink, Rt as locationPublicUpload, Gt as locationSharesViaLink, j as locationSharesWithMe, E as locationSharesWithOthers, s as locationSpacesGeneric, Je as objectKeys, Ae as parseVersion, Le as queryItemAsString, ke as renameResource, Ve as resolveFileNameDuplicate, Ha as resourceIconMappingInjectionKey, Tn as routeToContextQuery, Dt as setCurrentUserShareSpacePermissions, He as sortFields, Hi as sortHelper, Pi as sortSpaceMembers, Ri as translateSortFields, h as triggerDownloadWithFilename, gr as useAbility, vt as useActionsShowDetails, sr as useActiveApp, jn as useActiveLocation, Dr as useAppConfig, Jr as useAppDefaults, we as useAppFileHandling, Pt as useAppFolderHandling, Ye as useAppMeta, yn as useAppNavigation, Gr as useAppProviderService, Xi as useAppsStore, dt as useArchiverService, sn as useAuthService, Ti as useAuthStore, Ui as useAvatarsStore, o as useBreadcrumbsFromPath, Da as useCanBeOpenedWithSecureView, ar as useCanListShares, Jn as useCanListVersions, ea as useCanShare, vi as useCapabilityStore, en as useClientService, fe as useClipboardStore, Hn as useConfigStore, Gi as useCopyLink, ae as useCreateSpace, Ni as useCropperKeyboardActions, C as useDeleteWorker, ue as useDocumentTitle, Xr as useDownloadFile, tt as useDriveResolver, ci as useEmbedMode, je as useEventBus, Ct as useExtensionPreferencesStore, ut as useExtensionRegistry, Ji as useFileActionFallbackToDownload, La as useFileActions, _a as useFileActionsCopy, Sr as useFileActionsCopyPermanentLink, a as useFileActionsCreateLink, At as useFileActionsCreateNewFile, xn as useFileActionsCreateNewFolder, Ze as useFileActionsCreateNewShortcut, Ne as useFileActionsCreateSpaceFromResource, pe as useFileActionsDelete, Ci as useFileActionsDeleteResources, wt as useFileActionsDisableSync, it as useFileActionsDownloadArchive, f as useFileActionsDownloadFile, ri as useFileActionsEmptyTrashBin, _t as useFileActionsEnableSync, ne as useFileActionsFavorite, oe as useFileActionsMove, Xt as useFileActionsNavigate, T as useFileActionsOpenShortcut, ba as useFileActionsOpenWithApp, Ea as useFileActionsOpenWithDefault, Bn as useFileActionsPaste, Mr as useFileActionsRename, Rr as useFileActionsRestore, Fi as useFileActionsSaveAs, fr as useFileActionsSetImage, pa as useFileActionsShowActions, li as useFileActionsShowDetails, ki as useFileActionsShowShares, qn as useFileActionsToggleHideShare, Wr as useFileActionsUndoDelete, Zr as useFileListHeaderPosition, qi as useFileRouteReplace, Ba as useFolderLink, O as useGetMatchingSpace, Pa as useGetResourceContext, w as useGroupwareAccountsStore, Ht as useGroupwareConfigStore, pi as useInterceptModifierClick, sa as useIsAppActive, vr as useIsFilesAppActive, e as useIsResourceNameValid, Tt as useIsSearchActive, ft as useIsTopBarSticky, Ln as useKeyboardActions, bi as useLinkTypes, ta as useLoadAvatars, Ai as useLoadPreview, qt as useLoadingService, fa as useLocalStorage, Me as useMessages, Ma as useModals, te as useNavItems, at as useOpenEmptyEditor, un as useOpenWithDefaultApp, xa as usePagination, b as usePasswordPolicyService, Bt as usePasteWorker, Lt as usePreviewService, xt as useRequest, wa as useRequestHeaders, yr as useResourceContents, or as useResourceIndicators, $n as useResourceRouteResolver, ca as useResourceViewContextMenu, ii as useResourceViewDrag, Yi as useResourceViewHelpers, er as useResourceViewSelection, dr as useResourcesStore, Aa as useRestoreWorker, br as useRoute, oa as useRouteMeta, Si as useRouteName, _r as useRouteParam, r as useRouteQuery, Ot as useRouteQueryPersisted, ji as useRouter, Nn as useScrollTo, Wa as useSearch, wi as useSelectedResources, di as useService, jr as useSharesStore, Oi as useSideBar, zr as useSort, se as useSpaceActionsCreate, On as useSpaceActionsDelete, Oe as useSpaceActionsDeleteImage, _n as useSpaceActionsDisable, Sn as useSpaceActionsDuplicate, Pe as useSpaceActionsEditDescription, me as useSpaceActionsEditQuota, Zt as useSpaceActionsEditReadmeContent, Va as useSpaceActionsNavigateToTrash, xe as useSpaceActionsRename, rn as useSpaceActionsRestore, Ke as useSpaceActionsSetIcon, p as useSpaceActionsShowMembers, ht as useSpaceHelpers, ct as useSpacesLoading, hi as useSpacesStore, za as useThemeStore, Pn as useTileSize, Zn as useTokenTimerWorker, Kn as useUpdatesStore, _i as useUpload, Qn as useUserStore, ui as useViewMode, Nr as useViewSize, Er as useViewSizeMax, Ur as useWebWorkersStore, Qe as useWindowOpen };
|