@nextcloud/vue 9.11.0 → 9.12.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 (129) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/assets/NcAppNavigationItem.css +45 -49
  3. package/dist/assets/NcAppNavigationList.css +2 -26
  4. package/dist/assets/NcAppNavigationNewItem.css +0 -4
  5. package/dist/assets/NcAppNavigationSettings.css +6 -6
  6. package/dist/assets/NcAppSettingsDialog.css +3 -3
  7. package/dist/assets/NcAppSettingsShortcutsSection.css +1 -1
  8. package/dist/assets/NcAppSidebar.css +28 -28
  9. package/dist/assets/NcAssistantButton.css +9 -9
  10. package/dist/assets/NcAssistantContent.css +3 -3
  11. package/dist/assets/NcAssistantIcon.css +4 -4
  12. package/dist/assets/NcAvatar.css +26 -26
  13. package/dist/assets/NcBlurHash.css +2 -2
  14. package/dist/assets/NcDateTimePicker.css +234 -234
  15. package/dist/assets/NcFilePicker.css +1 -1
  16. package/dist/assets/NcFormBox.css +11 -11
  17. package/dist/assets/NcFormBoxButton.css +2 -2
  18. package/dist/assets/NcFormBoxItem.css +15 -15
  19. package/dist/assets/NcFormBoxSwitch.css +2 -2
  20. package/dist/assets/NcFormGroup.css +7 -7
  21. package/dist/assets/NcHotkey.css +8 -8
  22. package/dist/assets/NcHotkeyList.css +2 -2
  23. package/dist/assets/NcIconToggleSwitch.css +4 -4
  24. package/dist/assets/NcKbd.css +3 -3
  25. package/dist/assets/NcModal.css +69 -63
  26. package/dist/assets/NcPopover.css +16 -16
  27. package/dist/assets/NcProfileHoverCard.css +82 -59
  28. package/dist/assets/NcRadioGroup.css +2 -2
  29. package/dist/assets/NcRadioGroupButton.css +14 -14
  30. package/dist/assets/NcRichContenteditable.css +17 -17
  31. package/dist/assets/NcRichText.css +2 -2
  32. package/dist/assets/NcUploadPicker.css +41 -0
  33. package/dist/assets/autolink.css +3 -3
  34. package/dist/chunks/NcActionInput.mjs +2 -2
  35. package/dist/chunks/NcActions.mjs +2 -2
  36. package/dist/chunks/NcAppContent.mjs +4 -4
  37. package/dist/chunks/NcAppContent.mjs.map +1 -1
  38. package/dist/chunks/NcAppNavigation.mjs +2 -2
  39. package/dist/chunks/NcAppNavigationItem.mjs +6 -29
  40. package/dist/chunks/NcAppNavigationItem.mjs.map +1 -1
  41. package/dist/chunks/NcAppNavigationList.mjs +8 -138
  42. package/dist/chunks/NcAppNavigationList.mjs.map +1 -1
  43. package/dist/chunks/NcAppNavigationNewItem.mjs +1 -1
  44. package/dist/chunks/NcAppNavigationNewItem.mjs.map +1 -1
  45. package/dist/chunks/NcAppNavigationSearch.mjs +2 -2
  46. package/dist/chunks/NcAppNavigationSettings.mjs +8 -8
  47. package/dist/chunks/NcAppSettingsDialog.mjs +5 -5
  48. package/dist/chunks/NcAppSettingsShortcutsSection.mjs +3 -3
  49. package/dist/chunks/NcAppSidebar.mjs +15 -15
  50. package/dist/chunks/NcAppSidebar.mjs.map +1 -1
  51. package/dist/chunks/NcAssistantButton.mjs +7 -7
  52. package/dist/chunks/NcAssistantContent.mjs +3 -3
  53. package/dist/chunks/NcAssistantIcon.mjs +4 -4
  54. package/dist/chunks/NcAvatar.mjs +17 -4
  55. package/dist/chunks/NcAvatar.mjs.map +1 -1
  56. package/dist/chunks/NcBlurHash.mjs +2 -2
  57. package/dist/chunks/NcCheckboxRadioSwitch.mjs +1 -1
  58. package/dist/chunks/NcCollectionList.mjs +3 -3
  59. package/dist/chunks/NcColorPicker.mjs +2 -2
  60. package/dist/chunks/NcContent.mjs +2 -2
  61. package/dist/chunks/NcDashboardWidget.mjs +4 -4
  62. package/dist/chunks/NcDashboardWidget.mjs.map +1 -1
  63. package/dist/chunks/NcDateTimePicker.mjs +7 -4
  64. package/dist/chunks/NcDateTimePicker.mjs.map +1 -1
  65. package/dist/chunks/NcDateTimePickerNative.mjs +2 -2
  66. package/dist/chunks/NcDialogButton.vue_vue_type_script_setup_true_lang.mjs +2 -2
  67. package/dist/chunks/NcEmojiPicker.mjs +2 -2
  68. package/dist/chunks/NcFilePicker.mjs +6 -5
  69. package/dist/chunks/NcFilePicker.mjs.map +1 -1
  70. package/dist/chunks/NcFormBox.mjs +5 -5
  71. package/dist/chunks/NcFormBoxButton.mjs +2 -2
  72. package/dist/chunks/NcFormBoxItem.mjs +8 -8
  73. package/dist/chunks/NcFormBoxSwitch.mjs +2 -2
  74. package/dist/chunks/NcFormGroup.mjs +7 -7
  75. package/dist/chunks/NcHotkey.mjs +4 -4
  76. package/dist/chunks/NcHotkeyList.mjs +4 -4
  77. package/dist/chunks/NcIconToggleSwitch.mjs +2 -2
  78. package/dist/chunks/NcKbd.mjs +4 -4
  79. package/dist/chunks/NcModal.mjs +13 -8
  80. package/dist/chunks/NcModal.mjs.map +1 -1
  81. package/dist/chunks/NcPasswordField.mjs +2 -2
  82. package/dist/chunks/NcPopover.mjs +2 -2
  83. package/dist/chunks/NcProfileHoverCard.mjs +205 -157
  84. package/dist/chunks/NcProfileHoverCard.mjs.map +1 -1
  85. package/dist/chunks/NcRadioGroup.mjs +2 -2
  86. package/dist/chunks/NcRadioGroupButton.mjs +6 -6
  87. package/dist/chunks/NcReferenceWidget.mjs +2 -2
  88. package/dist/chunks/NcRelatedResourcesPanel.mjs +4 -4
  89. package/dist/chunks/NcRichContenteditable.mjs +12 -12
  90. package/dist/chunks/NcRichText.mjs +3 -3
  91. package/dist/chunks/NcRichText.mjs.map +1 -1
  92. package/dist/chunks/NcSettingsSection.mjs +2 -2
  93. package/dist/chunks/NcSettingsSelectGroup.mjs +2 -2
  94. package/dist/chunks/NcTextField.vue_vue_type_script_setup_true_lang.mjs +2 -2
  95. package/dist/chunks/NcTimezonePicker.vue_vue_type_script_setup_true_lang.mjs +2 -2
  96. package/dist/chunks/NcUploadPicker.mjs +269 -0
  97. package/dist/chunks/NcUploadPicker.mjs.map +1 -0
  98. package/dist/chunks/NcUserStatusIcon.mjs +2 -2
  99. package/dist/chunks/_l10n.mjs +86 -84
  100. package/dist/chunks/_l10n.mjs.map +1 -1
  101. package/dist/chunks/autolink.mjs +3 -3
  102. package/dist/chunks/colors.mjs +2 -2
  103. package/dist/chunks/mdi.mjs +7 -5
  104. package/dist/chunks/mdi.mjs.map +1 -1
  105. package/dist/chunks/referencePickerModal.mjs +5 -5
  106. package/dist/components/NcActionInput/NcActionInput.vue.d.ts +3 -3
  107. package/dist/components/NcAppNavigationItem/NcAppNavigationItem.vue.d.ts +0 -4
  108. package/dist/components/NcAppNavigationList/NcAppNavigationList.vue.d.ts +1 -57
  109. package/dist/components/NcAvatar/NcAvatar.vue.d.ts +9 -0
  110. package/dist/components/NcCollectionList/NcCollectionList.vue.d.ts +8 -0
  111. package/dist/components/NcCollectionList/NcCollectionListItem.vue.d.ts +4 -0
  112. package/dist/components/NcDashboardWidget/NcDashboardWidget.vue.d.ts +8 -0
  113. package/dist/components/NcDashboardWidgetItem/NcDashboardWidgetItem.vue.d.ts +4 -0
  114. package/dist/components/NcDateTimePicker/NcDateTimePicker.vue.d.ts +2 -2
  115. package/dist/components/NcFilePicker/NcFilePicker.vue.d.ts +7 -0
  116. package/dist/components/NcListItemIcon/NcListItemIcon.vue.d.ts +5 -1
  117. package/dist/components/NcProfileHoverCard/NcProfileHoverCard.vue.d.ts +6 -0
  118. package/dist/components/NcUploadPicker/NcUploadPicker.vue.d.ts +180 -0
  119. package/dist/components/NcUploadPicker/index.d.ts +6 -0
  120. package/dist/components/NcUploadPicker/index.mjs +5 -0
  121. package/dist/components/NcUploadPicker/index.mjs.map +1 -0
  122. package/dist/components/index.d.ts +1 -0
  123. package/dist/composables/useFormatDateTime/index.mjs +2 -2
  124. package/dist/index.mjs +2 -0
  125. package/dist/index.mjs.map +1 -1
  126. package/package.json +25 -11
  127. package/dist/chunks/highlight.mjs +0 -5
  128. package/dist/chunks/highlight.mjs.map +0 -1
  129. package/dist/components/NcAppNavigationList/highlight.d.ts +0 -12
@@ -7,7 +7,7 @@ import { a as renderCustomPickerElement, d as destroyCustomPickerElement, i as i
7
7
  import axios from "@nextcloud/axios";
8
8
  import { loadState } from "@nextcloud/initial-state";
9
9
  import { imagePath, generateOcsUrl } from "@nextcloud/router";
10
- import { r as register, X as t9, a as t, Y as t47, Z as t42, _ as t26, s as t44, $ as t33, A as t20, a0 as t13 } from "./_l10n.mjs";
10
+ import { r as register, Y as t8, a as t, Z as t48, _ as t43, $ as t27, s as t45, a0 as t34, A as t20, a1 as t13 } from "./_l10n.mjs";
11
11
  import { l as logger } from "./logger.mjs";
12
12
  import { N as NcEmptyContent } from "./NcEmptyContent.mjs";
13
13
  import { _ as _sfc_main$9 } from "./NcHighlight.vue_vue_type_script_lang.mjs";
@@ -175,7 +175,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
175
175
  ], 16, _hoisted_1$6);
176
176
  }
177
177
  const LinkVariantIcon = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6]]);
178
- register(t9);
178
+ register(t8);
179
179
  const anyLinkProviderId = "any-link";
180
180
  const anyLinkProvider = {
181
181
  id: anyLinkProviderId,
@@ -230,7 +230,7 @@ async function touchProvider(providerId) {
230
230
  await axios.put(url, { timestamp });
231
231
  window._vue_richtext_reference_provider_timestamps[providerId] = timestamp;
232
232
  }
233
- register(t42, t47);
233
+ register(t43, t48);
234
234
  /*!
235
235
  * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
236
236
  * SPDX-License-Identifier: AGPL-3.0-or-later
@@ -364,7 +364,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
364
364
  ]);
365
365
  }
366
366
  const NcProviderList = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__scopeId", "data-v-c9740c42"]]);
367
- register(t26);
367
+ register(t27);
368
368
  const _sfc_main$4 = {
369
369
  name: "NcRawLinkInput",
370
370
  components: {
@@ -554,7 +554,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
554
554
  ]);
555
555
  }
556
556
  const NcSearchResult = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-059edcfb"]]);
557
- register(t33, t42, t44);
557
+ register(t34, t43, t45);
558
558
  const LIMIT = 5;
559
559
  const _sfc_main$2 = {
560
560
  name: "NcSearch",
@@ -735,7 +735,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
735
735
  placeholder?: string;
736
736
  showTimezoneSelect?: boolean;
737
737
  showWeekNumber?: boolean;
738
- type?: "date" | "datetime" | "time" | "week" | "month" | "year" | "date-range" | "time-range" | "datetime-range";
738
+ type?: "week" | "month" | "year" | "date" | "date-range" | "time" | "time-range" | "datetime" | "datetime-range";
739
739
  inline?: boolean;
740
740
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
741
741
  blur: () => any;
@@ -758,14 +758,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
758
758
  placeholder?: string;
759
759
  showTimezoneSelect?: boolean;
760
760
  showWeekNumber?: boolean;
761
- type?: "date" | "datetime" | "time" | "week" | "month" | "year" | "date-range" | "time-range" | "datetime-range";
761
+ type?: "week" | "month" | "year" | "date" | "date-range" | "time" | "time-range" | "datetime" | "datetime-range";
762
762
  inline?: boolean;
763
763
  }> & Readonly<{
764
764
  onBlur?: (() => any) | undefined;
765
765
  "onUpdate:modelValue"?: ((args_0: Date | [Date, Date] | null) => any) | undefined;
766
766
  "onUpdate:timezoneId"?: ((...args: unknown[]) => any) | undefined;
767
767
  }>, {
768
- type: "date" | "datetime" | "time" | "week" | "month" | "year" | "date-range" | "time-range" | "datetime-range";
768
+ type: "week" | "month" | "year" | "date" | "date-range" | "time" | "time-range" | "datetime" | "datetime-range";
769
769
  inline: boolean;
770
770
  ariaLabel: string;
771
771
  placeholder: string;
@@ -183,10 +183,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
183
183
  editButtonAriaLabel(): string;
184
184
  undoButtonAriaLabel(): string;
185
185
  }, {
186
- /** Ask the parent list to move its highlight onto this entry */
187
- requestHighlight(): void;
188
- /** Tell the parent list this entry no longer wants the highlight */
189
- releaseHighlight(): void;
190
186
  onMenuToggle(state: any): void;
191
187
  toggleCollapse(): void;
192
188
  /**
@@ -1,58 +1,2 @@
1
- import { APP_NAVIGATION_HIGHLIGHT } from './highlight.ts';
2
- declare const _default: import('vue').DefineComponent<{}, {}, {
3
- /** Entry the highlight is on, as reported by that entry itself */
4
- entry: HTMLElement | null;
5
- /** Whether the highlight is shown */
6
- visible: boolean;
7
- /** Whether position changes should transition (slide) or snap */
8
- animated: boolean;
9
- /** Whether the highlight sits on the active entry (turns transparent) */
10
- overActive: boolean;
11
- /** Vertical offset of the highlight inside the scrollable content */
12
- top: number;
13
- /** Height of the highlight */
14
- height: number;
15
- /** Pending animation frame for re-measuring while scrolling */
16
- scrollFrame: number;
17
- }, {
18
- highlightStyle(): Record<string, string>;
19
- }, {
20
- /**
21
- * Move the highlight onto an entry. It slides there if already visible,
22
- * otherwise it snaps into place so it does not slide in from the entry
23
- * that was hovered before. Over the active entry it turns transparent so
24
- * that entry keeps its own static highlight.
25
- *
26
- * @param entry the entry element asking for the highlight
27
- */
28
- show(entry: HTMLElement): void;
29
- /**
30
- * Hide the highlight if it is on the given entry, e.g. because that entry
31
- * is being removed. While the pointer only moves between entries the
32
- * highlight stays visible, so it can slide on to the next one.
33
- *
34
- * @param entry the entry element that no longer wants the highlight
35
- */
36
- hide(entry: HTMLElement): void;
37
- /** Hide the highlight, as the pointer or focus left the list */
38
- hideNow(): void;
39
- /**
40
- * Hide the highlight once focus leaves the list entirely
41
- *
42
- * @param event the focusout event
43
- */
44
- onFocusOut(event: FocusEvent): void;
45
- /** Read the current entry's geometry relative to the list content */
46
- measure(): void;
47
- /**
48
- * Keep the highlight on its entry while scrolling. Needed because a
49
- * virtual scroller repositions its entries as the list scrolls.
50
- */
51
- onScroll(): void;
52
- }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, () => {
53
- [APP_NAVIGATION_HIGHLIGHT]: {
54
- show: (entry: HTMLElement) => void;
55
- hide: (entry: HTMLElement) => void;
56
- };
57
- }, true, {}, any>;
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
58
2
  export default _default;
@@ -169,6 +169,12 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
169
169
  * @return {Array|null}
170
170
  */
171
171
  hoverCardActions(): any[] | null;
172
+ /**
173
+ * Best available display name for the hover card (prop or contacts menu).
174
+ *
175
+ * @return {string|undefined}
176
+ */
177
+ hoverCardDisplayName(): string | undefined;
172
178
  /**
173
179
  * Status already known by this avatar so the hover card does not fetch it again.
174
180
  * Omitted while status is still the empty default (fetch in progress).
@@ -864,6 +870,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
864
870
  NcPopover: import('vue').DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import('vue').PublicProps>;
865
871
  NcProfileHoverCard: import('vue').DefineComponent<{
866
872
  user?: string | null;
873
+ displayName?: string | null;
867
874
  profile?: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IProfileData | null;
868
875
  preloadedUserStatus?: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IUserStatus | null;
869
876
  open?: boolean;
@@ -871,12 +878,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
871
878
  actionsLoading?: boolean;
872
879
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
873
880
  user?: string | null;
881
+ displayName?: string | null;
874
882
  profile?: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IProfileData | null;
875
883
  preloadedUserStatus?: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IUserStatus | null;
876
884
  open?: boolean;
877
885
  actions?: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IProfileHoverCardAction[] | null;
878
886
  actionsLoading?: boolean;
879
887
  }> & Readonly<{}>, {
888
+ displayName: string | null;
880
889
  open: boolean;
881
890
  actions: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IProfileHoverCardAction[] | null;
882
891
  user: string | null;
@@ -269,6 +269,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
269
269
  tooltip(): string | null | undefined;
270
270
  initials(): string;
271
271
  hoverCardActions(): any[] | null;
272
+ hoverCardDisplayName(): string | undefined;
272
273
  hoverCardPreloadedUserStatus(): object | undefined;
273
274
  menu(): any[];
274
275
  legacyMenu(): any[];
@@ -875,6 +876,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
875
876
  NcPopover: import('vue').DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import('vue').PublicProps>;
876
877
  NcProfileHoverCard: import('vue').DefineComponent<{
877
878
  user?: string | null;
879
+ displayName?: string | null;
878
880
  profile?: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IProfileData | null;
879
881
  preloadedUserStatus?: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IUserStatus | null;
880
882
  open?: boolean;
@@ -882,12 +884,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
882
884
  actionsLoading?: boolean;
883
885
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
884
886
  user?: string | null;
887
+ displayName?: string | null;
885
888
  profile?: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IProfileData | null;
886
889
  preloadedUserStatus?: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IUserStatus | null;
887
890
  open?: boolean;
888
891
  actions?: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IProfileHoverCardAction[] | null;
889
892
  actionsLoading?: boolean;
890
893
  }> & Readonly<{}>, {
894
+ displayName: string | null;
891
895
  open: boolean;
892
896
  actions: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IProfileHoverCardAction[] | null;
893
897
  user: string | null;
@@ -1512,6 +1516,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
1512
1516
  tooltip(): string | null | undefined;
1513
1517
  initials(): string;
1514
1518
  hoverCardActions(): any[] | null;
1519
+ hoverCardDisplayName(): string | undefined;
1515
1520
  hoverCardPreloadedUserStatus(): object | undefined;
1516
1521
  menu(): any[];
1517
1522
  legacyMenu(): any[];
@@ -2118,6 +2123,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
2118
2123
  NcPopover: import('vue').DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import('vue').PublicProps>;
2119
2124
  NcProfileHoverCard: import('vue').DefineComponent<{
2120
2125
  user?: string | null;
2126
+ displayName?: string | null;
2121
2127
  profile?: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IProfileData | null;
2122
2128
  preloadedUserStatus?: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IUserStatus | null;
2123
2129
  open?: boolean;
@@ -2125,12 +2131,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
2125
2131
  actionsLoading?: boolean;
2126
2132
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
2127
2133
  user?: string | null;
2134
+ displayName?: string | null;
2128
2135
  profile?: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IProfileData | null;
2129
2136
  preloadedUserStatus?: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IUserStatus | null;
2130
2137
  open?: boolean;
2131
2138
  actions?: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IProfileHoverCardAction[] | null;
2132
2139
  actionsLoading?: boolean;
2133
2140
  }> & Readonly<{}>, {
2141
+ displayName: string | null;
2134
2142
  open: boolean;
2135
2143
  actions: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IProfileHoverCardAction[] | null;
2136
2144
  user: string | null;
@@ -157,6 +157,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
157
157
  tooltip(): string | null | undefined;
158
158
  initials(): string;
159
159
  hoverCardActions(): any[] | null;
160
+ hoverCardDisplayName(): string | undefined;
160
161
  hoverCardPreloadedUserStatus(): object | undefined;
161
162
  menu(): any[];
162
163
  legacyMenu(): any[];
@@ -763,6 +764,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
763
764
  NcPopover: import('vue').DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import('vue').PublicProps>;
764
765
  NcProfileHoverCard: import('vue').DefineComponent<{
765
766
  user?: string | null;
767
+ displayName?: string | null;
766
768
  profile?: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IProfileData | null;
767
769
  preloadedUserStatus?: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IUserStatus | null;
768
770
  open?: boolean;
@@ -770,12 +772,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
770
772
  actionsLoading?: boolean;
771
773
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
772
774
  user?: string | null;
775
+ displayName?: string | null;
773
776
  profile?: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IProfileData | null;
774
777
  preloadedUserStatus?: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IUserStatus | null;
775
778
  open?: boolean;
776
779
  actions?: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IProfileHoverCardAction[] | null;
777
780
  actionsLoading?: boolean;
778
781
  }> & Readonly<{}>, {
782
+ displayName: string | null;
779
783
  open: boolean;
780
784
  actions: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IProfileHoverCardAction[] | null;
781
785
  user: string | null;
@@ -237,6 +237,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
237
237
  tooltip(): string | null | undefined;
238
238
  initials(): string;
239
239
  hoverCardActions(): any[] | null;
240
+ hoverCardDisplayName(): string | undefined;
240
241
  hoverCardPreloadedUserStatus(): object | undefined;
241
242
  menu(): any[];
242
243
  legacyMenu(): any[];
@@ -843,6 +844,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
843
844
  NcPopover: import('vue').DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import('vue').PublicProps>;
844
845
  NcProfileHoverCard: import('vue').DefineComponent<{
845
846
  user?: string | null;
847
+ displayName?: string | null;
846
848
  profile?: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IProfileData | null;
847
849
  preloadedUserStatus?: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IUserStatus | null;
848
850
  open?: boolean;
@@ -850,12 +852,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
850
852
  actionsLoading?: boolean;
851
853
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
852
854
  user?: string | null;
855
+ displayName?: string | null;
853
856
  profile?: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IProfileData | null;
854
857
  preloadedUserStatus?: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IUserStatus | null;
855
858
  open?: boolean;
856
859
  actions?: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IProfileHoverCardAction[] | null;
857
860
  actionsLoading?: boolean;
858
861
  }> & Readonly<{}>, {
862
+ displayName: string | null;
859
863
  open: boolean;
860
864
  actions: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IProfileHoverCardAction[] | null;
861
865
  user: string | null;
@@ -1091,6 +1095,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
1091
1095
  tooltip(): string | null | undefined;
1092
1096
  initials(): string;
1093
1097
  hoverCardActions(): any[] | null;
1098
+ hoverCardDisplayName(): string | undefined;
1094
1099
  hoverCardPreloadedUserStatus(): object | undefined;
1095
1100
  menu(): any[];
1096
1101
  legacyMenu(): any[];
@@ -1697,6 +1702,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
1697
1702
  NcPopover: import('vue').DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import('vue').PublicProps>;
1698
1703
  NcProfileHoverCard: import('vue').DefineComponent<{
1699
1704
  user?: string | null;
1705
+ displayName?: string | null;
1700
1706
  profile?: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IProfileData | null;
1701
1707
  preloadedUserStatus?: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IUserStatus | null;
1702
1708
  open?: boolean;
@@ -1704,12 +1710,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
1704
1710
  actionsLoading?: boolean;
1705
1711
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
1706
1712
  user?: string | null;
1713
+ displayName?: string | null;
1707
1714
  profile?: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IProfileData | null;
1708
1715
  preloadedUserStatus?: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IUserStatus | null;
1709
1716
  open?: boolean;
1710
1717
  actions?: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IProfileHoverCardAction[] | null;
1711
1718
  actionsLoading?: boolean;
1712
1719
  }> & Readonly<{}>, {
1720
+ displayName: string | null;
1713
1721
  open: boolean;
1714
1722
  actions: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IProfileHoverCardAction[] | null;
1715
1723
  user: string | null;
@@ -265,6 +265,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
265
265
  tooltip(): string | null | undefined;
266
266
  initials(): string;
267
267
  hoverCardActions(): any[] | null;
268
+ hoverCardDisplayName(): string | undefined;
268
269
  hoverCardPreloadedUserStatus(): object | undefined;
269
270
  menu(): any[];
270
271
  legacyMenu(): any[];
@@ -871,6 +872,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
871
872
  NcPopover: import('vue').DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import('vue').PublicProps>;
872
873
  NcProfileHoverCard: import('vue').DefineComponent<{
873
874
  user?: string | null;
875
+ displayName?: string | null;
874
876
  profile?: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IProfileData | null;
875
877
  preloadedUserStatus?: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IUserStatus | null;
876
878
  open?: boolean;
@@ -878,12 +880,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
878
880
  actionsLoading?: boolean;
879
881
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
880
882
  user?: string | null;
883
+ displayName?: string | null;
881
884
  profile?: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IProfileData | null;
882
885
  preloadedUserStatus?: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IUserStatus | null;
883
886
  open?: boolean;
884
887
  actions?: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IProfileHoverCardAction[] | null;
885
888
  actionsLoading?: boolean;
886
889
  }> & Readonly<{}>, {
890
+ displayName: string | null;
887
891
  open: boolean;
888
892
  actions: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IProfileHoverCardAction[] | null;
889
893
  user: string | null;
@@ -96,7 +96,7 @@ type __VLS_Props = {
96
96
  *
97
97
  * @default 'date'
98
98
  */
99
- type?: 'date' | 'datetime' | 'time' | 'week' | 'month' | 'year' | 'date-range' | 'time-range' | 'datetime-range';
99
+ type?: 'week' | 'month' | 'year' | 'date' | 'date-range' | 'time' | 'time-range' | 'datetime' | 'datetime-range';
100
100
  /**
101
101
  * Render the calendar inline (no input field).
102
102
  *
@@ -116,7 +116,7 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
116
116
  "onUpdate:modelValue"?: ((args_0: Date | [Date, Date] | null) => any) | undefined;
117
117
  "onUpdate:timezoneId"?: ((...args: unknown[]) => any) | undefined;
118
118
  }>, {
119
- type: "date" | "datetime" | "time" | "week" | "month" | "year" | "date-range" | "time-range" | "datetime-range";
119
+ type: "week" | "month" | "year" | "date" | "date-range" | "time" | "time-range" | "datetime" | "datetime-range";
120
120
  inline: boolean;
121
121
  ariaLabel: string;
122
122
  placeholder: string;
@@ -73,6 +73,12 @@ type __VLS_Props = {
73
73
  */
74
74
  variant?: 'primary' | 'secondary' | 'tertiary';
75
75
  };
76
+ /**
77
+ * Trigger file picker
78
+ *
79
+ * @param uploadFolders - Whether to upload folders or files
80
+ */
81
+ declare function triggerPickFiles(uploadFolders: boolean): void;
76
82
  /**
77
83
  * Reset the picker state of the currently selected files.
78
84
  */
@@ -109,6 +115,7 @@ declare function __VLS_template(): {
109
115
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
110
116
  declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
111
117
  reset: typeof reset;
118
+ triggerPickFiles: typeof triggerPickFiles;
112
119
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
113
120
  pick: (files: File[]) => any;
114
121
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
@@ -201,9 +201,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
201
201
  icon: string;
202
202
  displayName: string;
203
203
  avatarSize: number;
204
+ iconSvg: string;
204
205
  isNoUser: boolean;
205
206
  subname: string;
206
- iconSvg: string;
207
207
  iconName: string;
208
208
  noMargin: boolean;
209
209
  }, {}, {
@@ -305,6 +305,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
305
305
  tooltip(): string | null | undefined;
306
306
  initials(): string;
307
307
  hoverCardActions(): any[] | null;
308
+ hoverCardDisplayName(): string | undefined;
308
309
  hoverCardPreloadedUserStatus(): object | undefined;
309
310
  menu(): any[];
310
311
  legacyMenu(): any[];
@@ -911,6 +912,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
911
912
  NcPopover: import('vue').DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import('vue').PublicProps>;
912
913
  NcProfileHoverCard: import('vue').DefineComponent<{
913
914
  user?: string | null;
915
+ displayName?: string | null;
914
916
  profile?: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IProfileData | null;
915
917
  preloadedUserStatus?: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IUserStatus | null;
916
918
  open?: boolean;
@@ -918,12 +920,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
918
920
  actionsLoading?: boolean;
919
921
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
920
922
  user?: string | null;
923
+ displayName?: string | null;
921
924
  profile?: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IProfileData | null;
922
925
  preloadedUserStatus?: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IUserStatus | null;
923
926
  open?: boolean;
924
927
  actions?: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IProfileHoverCardAction[] | null;
925
928
  actionsLoading?: boolean;
926
929
  }> & Readonly<{}>, {
930
+ displayName: string | null;
927
931
  open: boolean;
928
932
  actions: import('../NcProfileHoverCard/NcProfileHoverCard.vue').IProfileHoverCardAction[] | null;
929
933
  user: string | null;
@@ -45,6 +45,11 @@ type __VLS_Props = {
45
45
  * User id whose profile to show.
46
46
  */
47
47
  user?: string | null;
48
+ /**
49
+ * Optional display name when already known (skips `/displaynames` for limited profiles).
50
+ * When omitted and the full profile is unavailable, the card looks the name up itself.
51
+ */
52
+ displayName?: string | null;
48
53
  /**
49
54
  * Optional preloaded profile data (skips the profile API request when set).
50
55
  */
@@ -70,6 +75,7 @@ type __VLS_Props = {
70
75
  actionsLoading?: boolean;
71
76
  };
72
77
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
78
+ displayName: string | null;
73
79
  open: boolean;
74
80
  actions: IProfileHoverCardAction[] | null;
75
81
  user: string | null;
@@ -0,0 +1,180 @@
1
+ import { IFolder, INode } from '@nextcloud/files';
2
+ import { IUpload } from '@nextcloud/files/upload';
3
+ import { FilePickerItem, FilePickerItemGroup } from '../NcFilePicker/NcFilePicker.vue';
4
+ type __VLS_Props = {
5
+ /**
6
+ * Actions to be shown in the upload picker menu.
7
+ */
8
+ actions?: FilePickerItem[] | FilePickerItemGroup[];
9
+ /**
10
+ * The upload destination folder
11
+ */
12
+ destination: IFolder;
13
+ /**
14
+ * A callback function to get the list of files present in the destination folder.
15
+ */
16
+ content: (relativePath?: string) => Promise<INode[]>;
17
+ /**
18
+ * Allowed MIME types to upload
19
+ */
20
+ accept?: string[];
21
+ /**
22
+ * Disable the upload picker
23
+ */
24
+ disabled?: boolean;
25
+ /**
26
+ * The label of the upload picker button
27
+ */
28
+ label?: string;
29
+ /**
30
+ * Allow uploading multiple files
31
+ */
32
+ multiple?: boolean;
33
+ /**
34
+ * Only show the icon without text label
35
+ */
36
+ iconOnly?: boolean;
37
+ /**
38
+ * The variant of the menu button
39
+ */
40
+ variant?: 'primary' | 'secondary' | 'tertiary';
41
+ /**
42
+ * Allow uploading directories
43
+ */
44
+ directory?: boolean;
45
+ };
46
+ /**
47
+ * Reset the file input form
48
+ */
49
+ declare function reset(): void;
50
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {
51
+ reset: typeof reset;
52
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
53
+ "upload:started": (upload: IUpload) => any;
54
+ "upload:finished": (upload: IUpload) => any;
55
+ paused: (queue: IUpload[]) => any;
56
+ resumed: (queue: IUpload[]) => any;
57
+ finished: () => any;
58
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
59
+ "onUpload:started"?: ((upload: IUpload) => any) | undefined;
60
+ "onUpload:finished"?: ((upload: IUpload) => any) | undefined;
61
+ onPaused?: ((queue: IUpload[]) => any) | undefined;
62
+ onResumed?: ((queue: IUpload[]) => any) | undefined;
63
+ onFinished?: (() => any) | undefined;
64
+ }>, {
65
+ label: string;
66
+ variant: "primary" | "secondary" | "tertiary";
67
+ actions: FilePickerItem[] | FilePickerItemGroup[];
68
+ accept: string[];
69
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
70
+ filePicker: ({
71
+ $: import('vue').ComponentInternalInstance;
72
+ $data: {};
73
+ $props: {
74
+ readonly accept?: string[] | undefined;
75
+ readonly actionCaption?: string | undefined;
76
+ readonly actions?: FilePickerItem[] | FilePickerItemGroup[] | undefined;
77
+ readonly directory?: boolean | undefined;
78
+ readonly directoryOnly?: boolean | undefined;
79
+ readonly disabled?: boolean | undefined;
80
+ readonly iconOnly?: boolean | undefined;
81
+ readonly label?: string | undefined;
82
+ readonly loading?: boolean | undefined;
83
+ readonly multiple?: boolean | undefined;
84
+ readonly variant?: "primary" | "secondary" | "tertiary" | undefined;
85
+ readonly onPick?: ((files: File[]) => any) | undefined;
86
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
87
+ $attrs: import('vue').Attrs;
88
+ $refs: {
89
+ [x: string]: unknown;
90
+ } & {
91
+ form: HTMLFormElement;
92
+ input: HTMLInputElement;
93
+ };
94
+ $slots: Readonly<{
95
+ [name: string]: import('vue').Slot<any> | undefined;
96
+ }>;
97
+ $root: import('vue').ComponentPublicInstance | null;
98
+ $parent: import('vue').ComponentPublicInstance | null;
99
+ $host: Element | null;
100
+ $emit: (event: "pick", files: File[]) => void;
101
+ $el: HTMLFormElement;
102
+ $options: import('vue').ComponentOptionsBase<Readonly<{
103
+ accept?: string[];
104
+ actionCaption?: string;
105
+ actions?: FilePickerItem[] | FilePickerItemGroup[];
106
+ directory?: boolean;
107
+ directoryOnly?: boolean;
108
+ disabled?: boolean;
109
+ iconOnly?: boolean;
110
+ label?: string;
111
+ loading?: boolean;
112
+ multiple?: boolean;
113
+ variant?: "primary" | "secondary" | "tertiary";
114
+ }> & Readonly<{
115
+ onPick?: ((files: File[]) => any) | undefined;
116
+ }>, {
117
+ reset: () => void;
118
+ triggerPickFiles: (uploadFolders: boolean) => void;
119
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
120
+ pick: (files: File[]) => any;
121
+ }, string, {
122
+ label: string;
123
+ variant: "primary" | "secondary" | "tertiary";
124
+ actions: FilePickerItem[] | FilePickerItemGroup[];
125
+ accept: string[];
126
+ actionCaption: string;
127
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
128
+ beforeCreate?: (() => void) | (() => void)[];
129
+ created?: (() => void) | (() => void)[];
130
+ beforeMount?: (() => void) | (() => void)[];
131
+ mounted?: (() => void) | (() => void)[];
132
+ beforeUpdate?: (() => void) | (() => void)[];
133
+ updated?: (() => void) | (() => void)[];
134
+ activated?: (() => void) | (() => void)[];
135
+ deactivated?: (() => void) | (() => void)[];
136
+ beforeDestroy?: (() => void) | (() => void)[];
137
+ beforeUnmount?: (() => void) | (() => void)[];
138
+ destroyed?: (() => void) | (() => void)[];
139
+ unmounted?: (() => void) | (() => void)[];
140
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
141
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
142
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
143
+ };
144
+ $forceUpdate: () => void;
145
+ $nextTick: typeof import('vue').nextTick;
146
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
147
+ } & Readonly<{
148
+ label: string;
149
+ variant: "primary" | "secondary" | "tertiary";
150
+ actions: FilePickerItem[] | FilePickerItemGroup[];
151
+ accept: string[];
152
+ actionCaption: string;
153
+ }> & Omit<Readonly<{
154
+ accept?: string[];
155
+ actionCaption?: string;
156
+ actions?: FilePickerItem[] | FilePickerItemGroup[];
157
+ directory?: boolean;
158
+ directoryOnly?: boolean;
159
+ disabled?: boolean;
160
+ iconOnly?: boolean;
161
+ label?: string;
162
+ loading?: boolean;
163
+ multiple?: boolean;
164
+ variant?: "primary" | "secondary" | "tertiary";
165
+ }> & Readonly<{
166
+ onPick?: ((files: File[]) => any) | undefined;
167
+ }>, "reset" | "triggerPickFiles" | ("label" | "variant" | "actions" | "accept" | "actionCaption")> & {
168
+ reset: () => void;
169
+ triggerPickFiles: (uploadFolders: boolean) => void;
170
+ } & {} & import('vue').ComponentCustomProperties & {} & {
171
+ $slots: Readonly<{
172
+ icon?: import('vue').Slot;
173
+ default?: import('vue').Slot;
174
+ }> & {
175
+ icon?: import('vue').Slot;
176
+ default?: import('vue').Slot;
177
+ };
178
+ }) | null;
179
+ }, HTMLFormElement>;
180
+ export default _default;