UNPKG

@nextcloud/vue

Version:
64 lines (63 loc) 2.26 kB
import { Color } from '../../utils/colors.ts'; type __VLS_Props = { /** * Set to `true` to enable advanced fields including HEX, RGB, and HSL */ advancedFields?: boolean; /** * Allow to clear the current color. * When set the `update:modelValue` and `submit` event might emit also `undefined`. */ clearable?: boolean; /** * Selector for the popover container */ container?: string | Element; /** * Provide a custom array of colors to show. * Can be either an array of string hexadecimal colors, * or an array of object with a `color` property with hexadecimal color string, * and a `name` property for accessibility. * * @type {string[] | {color: string, name: string}[]} */ palette?: string[] | Color[]; /** * Limit selectable colors to only the provided palette */ paletteOnly?: boolean; }; type __VLS_PublicProps = { modelValue: string | undefined; 'open'?: boolean; } & __VLS_Props; declare function __VLS_template(): { attrs: Partial<{}>; slots: { default?(_: any): any; }; refs: {}; rootEl: any; }; type __VLS_TemplateResult = ReturnType<typeof __VLS_template>; declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { submit: (args_0: string | undefined) => any; "update:modelValue": (value: string | undefined) => any; closed: () => any; "update:open": (value: boolean) => any; }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{ onSubmit?: ((args_0: string | undefined) => any) | undefined; "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined; onClosed?: (() => any) | undefined; "onUpdate:open"?: ((value: boolean) => any) | undefined; }>, { container: string | Element; palette: string[] | Color[]; }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>; declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>; export default _default; type __VLS_WithTemplateSlots<T, S> = T & { new (): { $slots: S; }; };