UNPKG

@nextcloud/vue

Version:
464 lines (463 loc) 18.6 kB
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{ /** * The provider id implemented with `\OCA\RelatedResources\IRelatedResourceProvider::getProviderId()` */ providerId: { type: StringConstructor; default: null; }; /** * The item id which uniquely identities the e.g. Calendar event, Deck board, file, Talk room, etc. */ itemId: { type: (StringConstructor | NumberConstructor)[]; default: null; }; /** * Limits to specific resource type. i.e. any provider id implemented with `\OCA\RelatedResources\IRelatedResourceProvider::getProviderId()` */ resourceType: { type: StringConstructor; default: string; }; /** * Set the maximum number of resources to load */ limit: { type: NumberConstructor; default: number; }; /** * Only used by the files sidebar * * File info is passed when registered with `OCA.Sharing.ShareTabSections.registerSection()` */ fileInfo: { type: ObjectConstructor; default: null; }; /** * Make the header name dynamic */ header: { type: StringConstructor; default: string; }; description: { type: StringConstructor; default: string; }; /** * If this element is used on a primary element set to true for primary styling. */ primary: { type: BooleanConstructor; default: boolean; }; }>, {}, { appEnabled: boolean; loading: boolean; error: null; resources: never[]; }, { isVisible(): boolean; subline(): string; hasResourceInfo(): boolean; isFiles(): boolean; url(): string; }, { t: (original: string, placeholders?: Record<string, string | number>) => string; fetchRelatedResources(): Promise<void>; }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("hasError" | "hasResources")[], "hasError" | "hasResources", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{ /** * The provider id implemented with `\OCA\RelatedResources\IRelatedResourceProvider::getProviderId()` */ providerId: { type: StringConstructor; default: null; }; /** * The item id which uniquely identities the e.g. Calendar event, Deck board, file, Talk room, etc. */ itemId: { type: (StringConstructor | NumberConstructor)[]; default: null; }; /** * Limits to specific resource type. i.e. any provider id implemented with `\OCA\RelatedResources\IRelatedResourceProvider::getProviderId()` */ resourceType: { type: StringConstructor; default: string; }; /** * Set the maximum number of resources to load */ limit: { type: NumberConstructor; default: number; }; /** * Only used by the files sidebar * * File info is passed when registered with `OCA.Sharing.ShareTabSections.registerSection()` */ fileInfo: { type: ObjectConstructor; default: null; }; /** * Make the header name dynamic */ header: { type: StringConstructor; default: string; }; description: { type: StringConstructor; default: string; }; /** * If this element is used on a primary element set to true for primary styling. */ primary: { type: BooleanConstructor; default: boolean; }; }>> & Readonly<{ onHasError?: ((...args: any[]) => any) | undefined; onHasResources?: ((...args: any[]) => any) | undefined; }>, { providerId: string; description: string; header: string; limit: number; primary: boolean; itemId: string | number; resourceType: string; fileInfo: Record<string, any>; }, {}, { NcResource: import('vue').DefineComponent<import('vue').ExtractPropTypes<{ icon: { type: StringConstructor; required: true; }; name: { type: StringConstructor; required: true; }; url: { type: StringConstructor; required: true; }; }>, {}, { labelTranslated: string; }, { route(): string | null; }, { t: (original: string, placeholders?: Record<string, string | number>) => string; }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{ icon: { type: StringConstructor; required: true; }; name: { type: StringConstructor; required: true; }; url: { type: StringConstructor; required: true; }; }>> & Readonly<{}>, {}, {}, { NcButton: { new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{ alignment?: import('../NcButton/NcButton.vue').ButtonAlignment; ariaLabel?: string; disabled?: boolean; download?: string | true; href?: string; pressed?: boolean | undefined; size?: import('../NcButton/NcButton.vue').ButtonSize; target?: string; text?: string; to?: import('vue-router').RouteLocationRaw; type?: import('../NcButton/NcButton.vue').ButtonType; variant?: import('../NcButton/NcButton.vue').ButtonVariant; wide?: boolean; }> & Readonly<{ onClick?: ((e: MouseEvent) => any) | undefined; "onUpdate:pressed"?: ((pressed: boolean) => any) | undefined; }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { click: (e: MouseEvent) => any; "update:pressed": (pressed: boolean) => any; }, import('vue').PublicProps, { size: import('../NcButton/NcButton.vue').ButtonSize; type: import('../NcButton/NcButton.vue').ButtonType; text: string; alignment: import('../NcButton/NcButton.vue').ButtonAlignment; ariaLabel: string; download: string | true; href: string; pressed: boolean; target: string; to: import('vue-router').RouteLocationRaw; variant: import('../NcButton/NcButton.vue').ButtonVariant; }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, { P: {}; B: {}; D: {}; C: {}; M: {}; Defaults: {}; }, Readonly<{ alignment?: import('../NcButton/NcButton.vue').ButtonAlignment; ariaLabel?: string; disabled?: boolean; download?: string | true; href?: string; pressed?: boolean | undefined; size?: import('../NcButton/NcButton.vue').ButtonSize; target?: string; text?: string; to?: import('vue-router').RouteLocationRaw; type?: import('../NcButton/NcButton.vue').ButtonType; variant?: import('../NcButton/NcButton.vue').ButtonVariant; wide?: boolean; }> & Readonly<{ onClick?: ((e: MouseEvent) => any) | undefined; "onUpdate:pressed"?: ((pressed: boolean) => any) | undefined; }>, {}, {}, {}, {}, { size: import('../NcButton/NcButton.vue').ButtonSize; type: import('../NcButton/NcButton.vue').ButtonType; text: string; alignment: import('../NcButton/NcButton.vue').ButtonAlignment; ariaLabel: string; download: string | true; href: string; pressed: boolean; target: string; to: import('vue-router').RouteLocationRaw; variant: import('../NcButton/NcButton.vue').ButtonVariant; }>; __isFragment?: never; __isTeleport?: never; __isSuspense?: never; } & import('vue').ComponentOptionsBase<Readonly<{ alignment?: import('../NcButton/NcButton.vue').ButtonAlignment; ariaLabel?: string; disabled?: boolean; download?: string | true; href?: string; pressed?: boolean | undefined; size?: import('../NcButton/NcButton.vue').ButtonSize; target?: string; text?: string; to?: import('vue-router').RouteLocationRaw; type?: import('../NcButton/NcButton.vue').ButtonType; variant?: import('../NcButton/NcButton.vue').ButtonVariant; wide?: boolean; }> & Readonly<{ onClick?: ((e: MouseEvent) => any) | undefined; "onUpdate:pressed"?: ((pressed: boolean) => any) | undefined; }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { click: (e: MouseEvent) => any; "update:pressed": (pressed: boolean) => any; }, string, { size: import('../NcButton/NcButton.vue').ButtonSize; type: import('../NcButton/NcButton.vue').ButtonType; text: string; alignment: import('../NcButton/NcButton.vue').ButtonAlignment; ariaLabel: string; download: string | true; href: string; pressed: boolean; target: string; to: import('vue-router').RouteLocationRaw; variant: import('../NcButton/NcButton.vue').ButtonVariant; }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => { $slots: Readonly<{ default?: import('vue').Slot; icon?: import('vue').Slot; }> & { default?: import('vue').Slot; icon?: import('vue').Slot; }; }); }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>; NcTeamResources: import('vue').DefineComponent<import('vue').ExtractPropTypes<{ providerId: { type: StringConstructor; default: null; }; itemId: { type: (StringConstructor | NumberConstructor)[]; default: null; }; }>, {}, { appEnabled: boolean; loading: boolean; teamResources: null; teamOpen: never[]; }, { isVisible(): boolean; teamProviders(): (teamId: any) => any; open(): (teamId: any) => boolean; }, { t: (original: string, placeholders?: Record<string, string | number>) => string; fetchTeamResources(): Promise<void>; toggleOpen(teamId: any, open: any): void; }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{ providerId: { type: StringConstructor; default: null; }; itemId: { type: (StringConstructor | NumberConstructor)[]; default: null; }; }>> & Readonly<{}>, { providerId: string; itemId: string | number; }, {}, { AccountGroup: any; ChevronDown: any; ChevronUp: any; OpenInNew: any; NcButton: { new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{ alignment?: import('../NcButton/NcButton.vue').ButtonAlignment; ariaLabel?: string; disabled?: boolean; download?: string | true; href?: string; pressed?: boolean | undefined; size?: import('../NcButton/NcButton.vue').ButtonSize; target?: string; text?: string; to?: import('vue-router').RouteLocationRaw; type?: import('../NcButton/NcButton.vue').ButtonType; variant?: import('../NcButton/NcButton.vue').ButtonVariant; wide?: boolean; }> & Readonly<{ onClick?: ((e: MouseEvent) => any) | undefined; "onUpdate:pressed"?: ((pressed: boolean) => any) | undefined; }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { click: (e: MouseEvent) => any; "update:pressed": (pressed: boolean) => any; }, import('vue').PublicProps, { size: import('../NcButton/NcButton.vue').ButtonSize; type: import('../NcButton/NcButton.vue').ButtonType; text: string; alignment: import('../NcButton/NcButton.vue').ButtonAlignment; ariaLabel: string; download: string | true; href: string; pressed: boolean; target: string; to: import('vue-router').RouteLocationRaw; variant: import('../NcButton/NcButton.vue').ButtonVariant; }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, { P: {}; B: {}; D: {}; C: {}; M: {}; Defaults: {}; }, Readonly<{ alignment?: import('../NcButton/NcButton.vue').ButtonAlignment; ariaLabel?: string; disabled?: boolean; download?: string | true; href?: string; pressed?: boolean | undefined; size?: import('../NcButton/NcButton.vue').ButtonSize; target?: string; text?: string; to?: import('vue-router').RouteLocationRaw; type?: import('../NcButton/NcButton.vue').ButtonType; variant?: import('../NcButton/NcButton.vue').ButtonVariant; wide?: boolean; }> & Readonly<{ onClick?: ((e: MouseEvent) => any) | undefined; "onUpdate:pressed"?: ((pressed: boolean) => any) | undefined; }>, {}, {}, {}, {}, { size: import('../NcButton/NcButton.vue').ButtonSize; type: import('../NcButton/NcButton.vue').ButtonType; text: string; alignment: import('../NcButton/NcButton.vue').ButtonAlignment; ariaLabel: string; download: string | true; href: string; pressed: boolean; target: string; to: import('vue-router').RouteLocationRaw; variant: import('../NcButton/NcButton.vue').ButtonVariant; }>; __isFragment?: never; __isTeleport?: never; __isSuspense?: never; } & import('vue').ComponentOptionsBase<Readonly<{ alignment?: import('../NcButton/NcButton.vue').ButtonAlignment; ariaLabel?: string; disabled?: boolean; download?: string | true; href?: string; pressed?: boolean | undefined; size?: import('../NcButton/NcButton.vue').ButtonSize; target?: string; text?: string; to?: import('vue-router').RouteLocationRaw; type?: import('../NcButton/NcButton.vue').ButtonType; variant?: import('../NcButton/NcButton.vue').ButtonVariant; wide?: boolean; }> & Readonly<{ onClick?: ((e: MouseEvent) => any) | undefined; "onUpdate:pressed"?: ((pressed: boolean) => any) | undefined; }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { click: (e: MouseEvent) => any; "update:pressed": (pressed: boolean) => any; }, string, { size: import('../NcButton/NcButton.vue').ButtonSize; type: import('../NcButton/NcButton.vue').ButtonType; text: string; alignment: import('../NcButton/NcButton.vue').ButtonAlignment; ariaLabel: string; download: string | true; href: string; pressed: boolean; target: string; to: import('vue-router').RouteLocationRaw; variant: import('../NcButton/NcButton.vue').ButtonVariant; }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => { $slots: Readonly<{ default?: import('vue').Slot; icon?: import('vue').Slot; }> & { default?: import('vue').Slot; icon?: import('vue').Slot; }; }); NcIconSvgWrapper: import('vue').DefineComponent<{ directional?: boolean; inline?: boolean; svg?: string; name?: string; path?: string; size?: number | "auto"; }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{ directional?: boolean; inline?: boolean; svg?: string; name?: string; path?: string; size?: number | "auto"; }> & Readonly<{}>, { size: number | "auto"; name: string; svg: string; path: string; }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>; }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>; }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>; export default _default;