@opencloud-eu/web-pkg 4.2.0 → 4.3.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-DjjOAW4z.js → TextEditor-Cn7QTWpj.js} +43 -40
- package/dist/assets/worker-B8_1fnv6.js +40 -0
- package/dist/assets/worker-CexULVXL.js +40 -0
- package/dist/assets/{worker-CvdOYtKy.js → worker-DW5HxaGD.js} +20 -30
- package/dist/{index-R7qeOPe_.js → index-BAXp6cDe.js} +17735 -18054
- package/dist/src/components/AppBar/AppBar.vue.d.ts +2 -0
- package/dist/src/components/BatchActions.vue.d.ts +1 -0
- package/dist/src/components/ContextActions/ActionMenuItem.vue.d.ts +1 -0
- package/dist/src/components/ContextActions/ContextActionMenu.vue.d.ts +1 -0
- package/dist/src/components/ContextActions/ContextMenuQuickAction.vue.d.ts +32 -38
- package/dist/src/components/CreateLinkModal.vue.d.ts +19 -159
- package/dist/src/components/FilesList/ContextActions.vue.d.ts +1 -0
- package/dist/src/components/FilesList/ResourceTable.vue.d.ts +480 -1481
- package/dist/src/components/FilesList/ResourceTile.vue.d.ts +4 -2
- package/dist/src/components/FilesList/ResourceTiles.vue.d.ts +5 -5
- package/dist/src/components/ItemFilter.vue.d.ts +4 -0
- package/dist/src/components/SideBar/FileSideBar.vue.d.ts +60 -85
- package/dist/src/composables/actions/types.d.ts +1 -1
- package/dist/src/composables/clipboard/useClipboard.d.ts +3 -0
- package/dist/src/composables/filesList/useResourceRouteResolver.d.ts +3 -1
- package/dist/src/composables/links/index.d.ts +1 -0
- package/dist/src/composables/links/useCopyLink.d.ts +14 -0
- package/dist/src/composables/piniaStores/capabilities.d.ts +40 -1
- package/dist/src/composables/piniaStores/config/config.d.ts +4 -1
- package/dist/src/composables/piniaStores/groupwareConfig/groupwareConfig.d.ts +297 -0
- package/dist/src/composables/piniaStores/groupwareConfig/index.d.ts +2 -0
- package/dist/src/composables/piniaStores/groupwareConfig/types.d.ts +140 -0
- package/dist/src/composables/piniaStores/index.d.ts +1 -0
- package/dist/src/composables/piniaStores/messages.d.ts +6 -6
- package/dist/src/composables/resources/index.d.ts +2 -0
- package/dist/src/composables/resources/useGetResourceContext.d.ts +1 -1
- package/dist/src/composables/resources/useResourceViewDrag.d.ts +58 -0
- package/dist/src/composables/resources/useResourceViewHelpers.d.ts +77 -0
- package/dist/src/composables/selection/index.d.ts +0 -1
- package/dist/src/helpers/index.d.ts +1 -0
- package/dist/src/helpers/promise.d.ts +2 -0
- package/dist/src/helpers/resource/index.d.ts +1 -0
- package/dist/src/helpers/resource/isItemInCurrentFolder.d.ts +5 -0
- package/dist/src/index.d.ts +0 -1
- package/dist/src/services/archiver.d.ts +1 -0
- package/dist/src/services/cache.d.ts +1 -0
- package/dist/web-pkg.js +348 -334
- package/dist/web-pkg.umd.cjs +46 -66
- package/package.json +4 -4
- package/src/index.ts +0 -3
- package/dist/assets/worker-CGWVcik_.js +0 -50
- package/dist/assets/worker-DLek5ZML.js +0 -50
- package/dist/src/cern/composables/index.d.ts +0 -1
- package/dist/src/cern/composables/useGroupingSettings.d.ts +0 -34
- package/dist/src/cern/index.d.ts +0 -1
- package/dist/src/composables/selection/useToggleTile.d.ts +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as P, u as C, r as I, c as d, a as r, _ as D, b as u, e as
|
|
1
|
+
import { d as P, u as C, r as I, c as d, a as r, _ as D, b as u, e as w, o as g, f as x, g as b, w as v } from "./index-BAXp6cDe.js";
|
|
2
2
|
import { NormalToolbar as j, MdPreview as E, MdEditor as R, config as S, XSSPlugin as U } from "md-editor-v3";
|
|
3
3
|
import { useGettext as F } from "vue3-gettext";
|
|
4
4
|
import "@casl/vue";
|
|
@@ -24,8 +24,9 @@ import "@vueuse/core";
|
|
|
24
24
|
import M from "cropperjs";
|
|
25
25
|
import "dompurify";
|
|
26
26
|
import "mark.js";
|
|
27
|
-
import "
|
|
27
|
+
import "deepmerge";
|
|
28
28
|
import "portal-vue";
|
|
29
|
+
import "vue-router";
|
|
29
30
|
import q from "screenfull";
|
|
30
31
|
import { lineNumbers as A } from "@codemirror/view";
|
|
31
32
|
import { normalizeClass as H } from "@vue/shared";
|
|
@@ -429,7 +430,7 @@ const O = {
|
|
|
429
430
|
markdownTotal: "Liczba znaków",
|
|
430
431
|
scrollAuto: "Automatyczne przewijanie"
|
|
431
432
|
}
|
|
432
|
-
},
|
|
433
|
+
}, _ = {
|
|
433
434
|
toolbarTips: {
|
|
434
435
|
bold: "жирный",
|
|
435
436
|
underline: "подчёркнутый",
|
|
@@ -510,7 +511,7 @@ const O = {
|
|
|
510
511
|
markdownTotal: "Кол-во символов",
|
|
511
512
|
scrollAuto: "Автопрокрутка"
|
|
512
513
|
}
|
|
513
|
-
},
|
|
514
|
+
}, J = {
|
|
514
515
|
toolbarTips: {
|
|
515
516
|
bold: "太字",
|
|
516
517
|
underline: "下線",
|
|
@@ -590,7 +591,7 @@ const O = {
|
|
|
590
591
|
markdownTotal: "単語数",
|
|
591
592
|
scrollAuto: "同期スクロール"
|
|
592
593
|
}
|
|
593
|
-
},
|
|
594
|
+
}, $ = {
|
|
594
595
|
toolbarTips: {
|
|
595
596
|
bold: "tebal",
|
|
596
597
|
underline: "garis bawah",
|
|
@@ -670,7 +671,7 @@ const O = {
|
|
|
670
671
|
markdownTotal: "Jumlah Kata",
|
|
671
672
|
scrollAuto: "Gulir Otomatis"
|
|
672
673
|
}
|
|
673
|
-
},
|
|
674
|
+
}, V = {
|
|
674
675
|
zh: "zh-CN",
|
|
675
676
|
fr: "fr-FR",
|
|
676
677
|
ja: "jp-JP",
|
|
@@ -687,9 +688,9 @@ const O = {
|
|
|
687
688
|
"it-IT": B,
|
|
688
689
|
"es-ES": K,
|
|
689
690
|
"pl-PL": G,
|
|
690
|
-
ru:
|
|
691
|
-
"jp-JP":
|
|
692
|
-
"id-ID":
|
|
691
|
+
ru: _,
|
|
692
|
+
"jp-JP": J,
|
|
693
|
+
"id-ID": $
|
|
693
694
|
}, Z = P({
|
|
694
695
|
name: "TextEditor",
|
|
695
696
|
// type casts are needed to ensure type inference works correctly when building web-pkg
|
|
@@ -710,10 +711,10 @@ const O = {
|
|
|
710
711
|
},
|
|
711
712
|
emits: ["update:currentContent"],
|
|
712
713
|
setup(e, { emit: i }) {
|
|
713
|
-
const
|
|
714
|
+
const h = F(), { currentTheme: k } = C(), T = I(!0), f = d(() => {
|
|
714
715
|
const { showPreviewOnlyMd: a = !0 } = e.applicationConfig;
|
|
715
716
|
return { showPreviewOnlyMd: a };
|
|
716
|
-
}), t = d(() => e.markdownMode || ["md", "markdown"].includes(e.resource?.extension) || !r(
|
|
717
|
+
}), t = d(() => e.markdownMode || ["md", "markdown"].includes(e.resource?.extension) || !r(f).showPreviewOnlyMd), m = d(() => r(k).isDark ? "dark" : "light"), c = d(() => r(t) ? [
|
|
717
718
|
"bold",
|
|
718
719
|
"underline",
|
|
719
720
|
"italic",
|
|
@@ -780,8 +781,8 @@ const O = {
|
|
|
780
781
|
isMarkdown: t,
|
|
781
782
|
theme: m,
|
|
782
783
|
toolbars: c,
|
|
783
|
-
language:
|
|
784
|
-
languages:
|
|
784
|
+
language: h,
|
|
785
|
+
languages: V,
|
|
785
786
|
onUploadImg: async (a) => {
|
|
786
787
|
const n = (await Promise.all(
|
|
787
788
|
[...a].map(
|
|
@@ -797,31 +798,32 @@ ${n.join(`
|
|
|
797
798
|
`;
|
|
798
799
|
i("update:currentContent", o);
|
|
799
800
|
},
|
|
800
|
-
showLineNumbers:
|
|
801
|
+
showLineNumbers: T
|
|
801
802
|
};
|
|
802
803
|
}
|
|
803
804
|
}), Q = {
|
|
804
805
|
id: "text-editor-container",
|
|
805
806
|
class: "h-full [&_.md-editor-preview]:!font-(family-name:--oc-font-family)"
|
|
806
|
-
};
|
|
807
|
-
function
|
|
808
|
-
const t = u("md-preview"), m = u("oc-icon"), c = u("NormalToolbar"),
|
|
809
|
-
return g(),
|
|
810
|
-
e.isReadOnly ? (g(),
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
807
|
+
}, X = { key: 0 };
|
|
808
|
+
function Y(e, i, h, k, T, f) {
|
|
809
|
+
const t = u("md-preview"), m = u("oc-icon"), c = u("NormalToolbar"), L = u("md-editor");
|
|
810
|
+
return g(), w("div", Q, [
|
|
811
|
+
e.isReadOnly ? (g(), w("article", X, [
|
|
812
|
+
b(t, {
|
|
813
|
+
id: "text-editor-preview-component",
|
|
814
|
+
"model-value": e.currentContent,
|
|
815
|
+
"no-katex": "",
|
|
816
|
+
"no-mermaid": "",
|
|
817
|
+
"no-prettier": "",
|
|
818
|
+
"no-upload-img": "",
|
|
819
|
+
"no-highlight": "",
|
|
820
|
+
"no-echarts": "",
|
|
821
|
+
language: e.languages[e.language.current] || "en-US",
|
|
822
|
+
theme: e.theme,
|
|
823
|
+
"auto-focus": "",
|
|
824
|
+
"read-only": ""
|
|
825
|
+
}, null, 8, ["model-value", "language", "theme"])
|
|
826
|
+
])) : (g(), x(L, {
|
|
825
827
|
key: 1,
|
|
826
828
|
id: "text-editor-component",
|
|
827
829
|
class: H([{ "no-line-numbers": !e.showLineNumbers }, "[&_.cm-content]:!font-(family-name:--oc-font-family)"]),
|
|
@@ -830,6 +832,7 @@ function X(e, i, b, h, k, T) {
|
|
|
830
832
|
"no-mermaid": "",
|
|
831
833
|
"no-prettier": "",
|
|
832
834
|
"no-highlight": "",
|
|
835
|
+
"no-echarts": "",
|
|
833
836
|
"on-upload-img": e.onUploadImg,
|
|
834
837
|
language: e.languages[e.language.current] || "en-US",
|
|
835
838
|
theme: e.theme,
|
|
@@ -838,14 +841,14 @@ function X(e, i, b, h, k, T) {
|
|
|
838
841
|
"auto-focus": "",
|
|
839
842
|
onOnChange: i[1] || (i[1] = (a) => e.$emit("update:currentContent", a))
|
|
840
843
|
}, {
|
|
841
|
-
defToolbars:
|
|
842
|
-
|
|
844
|
+
defToolbars: v(() => [
|
|
845
|
+
b(c, {
|
|
843
846
|
title: e.showLineNumbers ? e.$gettext("hide line numbers") : e.$gettext("show line numbers"),
|
|
844
847
|
onOnClick: i[0] || (i[0] = (a) => e.showLineNumbers = !e.showLineNumbers)
|
|
845
848
|
}, {
|
|
846
|
-
default:
|
|
847
|
-
|
|
848
|
-
class: "!flex items-center justify-center
|
|
849
|
+
default: v(() => [
|
|
850
|
+
b(m, {
|
|
851
|
+
class: "!flex items-center justify-center size-6",
|
|
849
852
|
size: "small",
|
|
850
853
|
name: "hashtag",
|
|
851
854
|
"fill-type": "none"
|
|
@@ -858,7 +861,7 @@ function X(e, i, b, h, k, T) {
|
|
|
858
861
|
}, 8, ["class", "model-value", "on-upload-img", "language", "theme", "preview", "toolbars"]))
|
|
859
862
|
]);
|
|
860
863
|
}
|
|
861
|
-
const
|
|
864
|
+
const Re = /* @__PURE__ */ D(Z, [["render", Y]]);
|
|
862
865
|
export {
|
|
863
|
-
|
|
866
|
+
Re as default
|
|
864
867
|
};
|