@opencloud-eu/web-pkg 4.2.1 → 5.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/{TextEditor-BEOcGAsh.js → TextEditor-uEaAtt7z.js} +44 -42
  2. package/dist/assets/worker-Br2EoHIh.js +40 -0
  3. package/dist/assets/{worker-DkMHRpBn.js → worker-CL8AMTxB.js} +20 -30
  4. package/dist/assets/worker-SrzUf4Ns.js +40 -0
  5. package/dist/{index-C-VmIu2P.js → index-BwyOzVbn.js} +18618 -18873
  6. package/dist/src/apps/types.d.ts +1 -0
  7. package/dist/src/components/AppBar/AppBar.vue.d.ts +2 -0
  8. package/dist/src/components/BatchActions.vue.d.ts +1 -0
  9. package/dist/src/components/ContextActions/ActionMenuItem.vue.d.ts +1 -0
  10. package/dist/src/components/ContextActions/ContextActionMenu.vue.d.ts +1 -0
  11. package/dist/src/components/ContextActions/ContextMenuQuickAction.vue.d.ts +2 -2
  12. package/dist/src/components/CreateLinkModal.vue.d.ts +17 -141
  13. package/dist/src/components/FilesList/ContextActions.vue.d.ts +1 -0
  14. package/dist/src/components/FilesList/ResourceGhostElement.vue.d.ts +7 -28
  15. package/dist/src/components/FilesList/ResourceIcon.vue.d.ts +5 -44
  16. package/dist/src/components/FilesList/ResourceTable.vue.d.ts +174 -1533
  17. package/dist/src/components/FilesList/ResourceTile.vue.d.ts +4 -2
  18. package/dist/src/components/FilesList/ResourceTiles.vue.d.ts +19 -67
  19. package/dist/src/components/ItemFilter.vue.d.ts +12 -9
  20. package/dist/src/components/SideBar/FileSideBar.vue.d.ts +60 -85
  21. package/dist/src/composables/actions/files/index.d.ts +12 -11
  22. package/dist/src/composables/actions/files/useFileActions.d.ts +2 -7
  23. package/dist/src/composables/actions/files/useFileActionsOpenWithDefault.d.ts +4 -0
  24. package/dist/src/composables/actions/types.d.ts +2 -2
  25. package/dist/src/composables/filesList/useResourceRouteResolver.d.ts +8 -4
  26. package/dist/src/composables/folderLink/useFolderLink.d.ts +2 -2
  27. package/dist/src/composables/keyboardActions/useInterceptModifierClick.d.ts +1 -1
  28. package/dist/src/composables/piniaStores/apps.d.ts +6 -0
  29. package/dist/src/composables/piniaStores/capabilities.d.ts +27 -0
  30. package/dist/src/composables/piniaStores/config/config.d.ts +4 -1
  31. package/dist/src/composables/piniaStores/groupwareConfig/groupwareConfig.d.ts +297 -0
  32. package/dist/src/composables/piniaStores/groupwareConfig/index.d.ts +2 -0
  33. package/dist/src/composables/piniaStores/groupwareConfig/types.d.ts +140 -0
  34. package/dist/src/composables/piniaStores/index.d.ts +1 -0
  35. package/dist/src/composables/piniaStores/messages.d.ts +12 -12
  36. package/dist/src/composables/resources/index.d.ts +4 -0
  37. package/dist/src/composables/resources/useResourceViewContextMenu.d.ts +11 -0
  38. package/dist/src/composables/resources/useResourceViewDrag.d.ts +37 -0
  39. package/dist/src/composables/resources/useResourceViewHelpers.d.ts +67 -0
  40. package/dist/src/composables/resources/useResourceViewSelection.d.ts +13 -0
  41. package/dist/src/composables/selection/index.d.ts +0 -1
  42. package/dist/src/composables/sort/useSort.d.ts +2 -0
  43. package/dist/src/constants.d.ts +3 -0
  44. package/dist/src/helpers/contextMenuDropdown.d.ts +1 -1
  45. package/dist/src/helpers/index.d.ts +1 -1
  46. package/dist/src/helpers/promise.d.ts +2 -0
  47. package/dist/src/index.d.ts +0 -1
  48. package/dist/web-pkg.js +345 -332
  49. package/dist/web-pkg.umd.cjs +47 -66
  50. package/package.json +4 -4
  51. package/src/index.ts +0 -3
  52. package/dist/assets/worker-C2IPj8GP.js +0 -50
  53. package/dist/assets/worker-CQqhh0uK.js +0 -50
  54. package/dist/src/cern/composables/index.d.ts +0 -1
  55. package/dist/src/cern/composables/useGroupingSettings.d.ts +0 -34
  56. package/dist/src/cern/index.d.ts +0 -1
  57. package/dist/src/composables/selection/useToggleTile.d.ts +0 -4
  58. package/dist/src/helpers/folderLink/index.d.ts +0 -1
  59. package/dist/src/helpers/folderLink/types.d.ts +0 -6
@@ -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-C-VmIu2P.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-BwyOzVbn.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";
@@ -19,13 +19,14 @@ import "@uppy/xhr-upload";
19
19
  import "@uppy/utils";
20
20
  import "pinia";
21
21
  import "oidc-client-ts";
22
- import "p-queue";
23
22
  import "@vueuse/core";
24
- import M from "cropperjs";
23
+ import "deepmerge";
24
+ import "portal-vue";
25
25
  import "dompurify";
26
26
  import "mark.js";
27
+ import "p-queue";
28
+ import M from "cropperjs";
27
29
  import "vue-router";
28
- import "portal-vue";
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)"]),
@@ -839,14 +841,14 @@ function X(e, i, b, h, k, T) {
839
841
  "auto-focus": "",
840
842
  onOnChange: i[1] || (i[1] = (a) => e.$emit("update:currentContent", a))
841
843
  }, {
842
- defToolbars: w(() => [
843
- v(c, {
844
+ defToolbars: v(() => [
845
+ b(c, {
844
846
  title: e.showLineNumbers ? e.$gettext("hide line numbers") : e.$gettext("show line numbers"),
845
847
  onOnClick: i[0] || (i[0] = (a) => e.showLineNumbers = !e.showLineNumbers)
846
848
  }, {
847
- default: w(() => [
848
- v(m, {
849
- 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",
850
852
  size: "small",
851
853
  name: "hashtag",
852
854
  "fill-type": "none"
@@ -859,7 +861,7 @@ function X(e, i, b, h, k, T) {
859
861
  }, 8, ["class", "model-value", "on-upload-img", "language", "theme", "preview", "toolbars"]))
860
862
  ]);
861
863
  }
862
- const je = /* @__PURE__ */ D(Z, [["render", X]]);
864
+ const Re = /* @__PURE__ */ D(Z, [["render", Y]]);
863
865
  export {
864
- je as default
866
+ Re as default
865
867
  };