@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.
Files changed (51) hide show
  1. package/dist/{TextEditor-DjjOAW4z.js → TextEditor-Cn7QTWpj.js} +43 -40
  2. package/dist/assets/worker-B8_1fnv6.js +40 -0
  3. package/dist/assets/worker-CexULVXL.js +40 -0
  4. package/dist/assets/{worker-CvdOYtKy.js → worker-DW5HxaGD.js} +20 -30
  5. package/dist/{index-R7qeOPe_.js → index-BAXp6cDe.js} +17735 -18054
  6. package/dist/src/components/AppBar/AppBar.vue.d.ts +2 -0
  7. package/dist/src/components/BatchActions.vue.d.ts +1 -0
  8. package/dist/src/components/ContextActions/ActionMenuItem.vue.d.ts +1 -0
  9. package/dist/src/components/ContextActions/ContextActionMenu.vue.d.ts +1 -0
  10. package/dist/src/components/ContextActions/ContextMenuQuickAction.vue.d.ts +32 -38
  11. package/dist/src/components/CreateLinkModal.vue.d.ts +19 -159
  12. package/dist/src/components/FilesList/ContextActions.vue.d.ts +1 -0
  13. package/dist/src/components/FilesList/ResourceTable.vue.d.ts +480 -1481
  14. package/dist/src/components/FilesList/ResourceTile.vue.d.ts +4 -2
  15. package/dist/src/components/FilesList/ResourceTiles.vue.d.ts +5 -5
  16. package/dist/src/components/ItemFilter.vue.d.ts +4 -0
  17. package/dist/src/components/SideBar/FileSideBar.vue.d.ts +60 -85
  18. package/dist/src/composables/actions/types.d.ts +1 -1
  19. package/dist/src/composables/clipboard/useClipboard.d.ts +3 -0
  20. package/dist/src/composables/filesList/useResourceRouteResolver.d.ts +3 -1
  21. package/dist/src/composables/links/index.d.ts +1 -0
  22. package/dist/src/composables/links/useCopyLink.d.ts +14 -0
  23. package/dist/src/composables/piniaStores/capabilities.d.ts +40 -1
  24. package/dist/src/composables/piniaStores/config/config.d.ts +4 -1
  25. package/dist/src/composables/piniaStores/groupwareConfig/groupwareConfig.d.ts +297 -0
  26. package/dist/src/composables/piniaStores/groupwareConfig/index.d.ts +2 -0
  27. package/dist/src/composables/piniaStores/groupwareConfig/types.d.ts +140 -0
  28. package/dist/src/composables/piniaStores/index.d.ts +1 -0
  29. package/dist/src/composables/piniaStores/messages.d.ts +6 -6
  30. package/dist/src/composables/resources/index.d.ts +2 -0
  31. package/dist/src/composables/resources/useGetResourceContext.d.ts +1 -1
  32. package/dist/src/composables/resources/useResourceViewDrag.d.ts +58 -0
  33. package/dist/src/composables/resources/useResourceViewHelpers.d.ts +77 -0
  34. package/dist/src/composables/selection/index.d.ts +0 -1
  35. package/dist/src/helpers/index.d.ts +1 -0
  36. package/dist/src/helpers/promise.d.ts +2 -0
  37. package/dist/src/helpers/resource/index.d.ts +1 -0
  38. package/dist/src/helpers/resource/isItemInCurrentFolder.d.ts +5 -0
  39. package/dist/src/index.d.ts +0 -1
  40. package/dist/src/services/archiver.d.ts +1 -0
  41. package/dist/src/services/cache.d.ts +1 -0
  42. package/dist/web-pkg.js +348 -334
  43. package/dist/web-pkg.umd.cjs +46 -66
  44. package/package.json +4 -4
  45. package/src/index.ts +0 -3
  46. package/dist/assets/worker-CGWVcik_.js +0 -50
  47. package/dist/assets/worker-DLek5ZML.js +0 -50
  48. package/dist/src/cern/composables/index.d.ts +0 -1
  49. package/dist/src/cern/composables/useGroupingSettings.d.ts +0 -34
  50. package/dist/src/cern/index.d.ts +0 -1
  51. 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 x, o as g, f as L, w, g as v } from "./index-R7qeOPe_.js";
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 "vue-router";
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
- }, J = {
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
- }, V = {
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: J,
691
- "jp-JP": $,
692
- "id-ID": V
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 b = F(), { currentTheme: h } = C(), k = I(!0), T = d(() => {
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(T).showPreviewOnlyMd), m = d(() => r(h).isDark ? "dark" : "light"), c = d(() => r(t) ? [
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: b,
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: k
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 X(e, i, b, h, k, T) {
808
- const t = u("md-preview"), m = u("oc-icon"), c = u("NormalToolbar"), f = u("md-editor");
809
- return g(), x("div", Q, [
810
- e.isReadOnly ? (g(), L(t, {
811
- key: 0,
812
- id: "text-editor-preview-component",
813
- "model-value": e.currentContent,
814
- "no-katex": "",
815
- "no-mermaid": "",
816
- "no-prettier": "",
817
- "no-upload-img": "",
818
- "no-highlight": "",
819
- "no-echarts": "",
820
- language: e.languages[e.language.current] || "en-US",
821
- theme: e.theme,
822
- "auto-focus": "",
823
- "read-only": ""
824
- }, null, 8, ["model-value", "language", "theme"])) : (g(), L(f, {
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: w(() => [
842
- v(c, {
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: w(() => [
847
- v(m, {
848
- class: "!flex items-center justify-center w-[24px] h-[24px]",
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 je = /* @__PURE__ */ D(Z, [["render", X]]);
864
+ const Re = /* @__PURE__ */ D(Z, [["render", Y]]);
862
865
  export {
863
- je as default
866
+ Re as default
864
867
  };