@jsonforms/vue-vuetify
Version:
Vue Vuetify renderers for JSON Forms
149 lines (147 loc) • 5.93 kB
TypeScript
import { LabelElement, JsonSchema, JsonFormsRendererRegistryEntry, JsonFormsCellRendererRegistryEntry } from '@jsonforms/core';
import { DefineComponent, ComputedRef, ComponentOptionsMixin, PublicProps, CreateComponentPublicInstanceWithMixins, StyleValue, CSSProperties, VNodeChild, VNodeProps, AllowedComponentProps, ComponentCustomProps, SlotsType, VNode, RendererNode, RendererElement, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, PropType, ExtractPropTypes } from 'vue';
import { Styles } from '..';
import { FilterPropsOptions } from 'vuetify/lib/util/defineComponent.mjs';
declare const labelRenderer: DefineComponent<{
schema: JsonSchema;
uischema: LabelElement;
path: string;
enabled?: boolean | undefined;
readonly?: boolean | undefined;
renderers?: JsonFormsRendererRegistryEntry[] | undefined;
cells?: JsonFormsCellRendererRegistryEntry[] | undefined;
config?: any;
}, {
label: ComputedRef<{
schema: NonNullable< JsonSchema>;
uischema: LabelElement;
path: string;
enabled: NonNullable<boolean | undefined>;
readonly: NonNullable<boolean | undefined>;
renderers: JsonFormsRendererRegistryEntry[];
cells: JsonFormsCellRendererRegistryEntry[];
config: any;
text: string;
visible: boolean;
}>;
} & {
appliedOptions: ComputedRef<any>;
vuetifyProps: (path: string) => any;
styles: Styles;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
schema: JsonSchema;
uischema: LabelElement;
path: string;
enabled?: boolean | undefined;
readonly?: boolean | undefined;
renderers?: JsonFormsRendererRegistryEntry[] | undefined;
cells?: JsonFormsCellRendererRegistryEntry[] | undefined;
config?: any;
}> & Readonly<{}>, {
enabled: boolean;
readonly: boolean;
renderers: JsonFormsRendererRegistryEntry[];
cells: JsonFormsCellRendererRegistryEntry[];
config: Record<string, any>;
}, {}, {
VLabel: {
new (...args: any[]): CreateComponentPublicInstanceWithMixins<{
style: string | false | StyleValue[] | CSSProperties | null;
} & {
theme?: string | undefined;
class?: any;
text?: string | undefined;
onClick?: ((args_0: MouseEvent) => void) | undefined;
} & {
$children?: {
default?: (() => VNodeChild) | undefined;
} | {
$stable?: boolean | undefined;
} | (() => VNodeChild) | VNodeChild;
"v-slots"?: {
default?: false | (() => VNodeChild) | undefined;
} | undefined;
} & {
"v-slot:default"?: false | (() => VNodeChild) | undefined;
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, VNodeProps & AllowedComponentProps & ComponentCustomProps, {
style: StyleValue;
}, true, {}, SlotsType<Partial<{
default: () => VNode<RendererNode, RendererElement, {
[key: string]: any;
}>[];
}>>, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, {
style: string | false | StyleValue[] | CSSProperties | null;
} & {
theme?: string | undefined;
class?: any;
text?: string | undefined;
onClick?: ((args_0: MouseEvent) => void) | undefined;
} & {
$children?: {
default?: (() => VNodeChild) | undefined;
} | {
$stable?: boolean | undefined;
} | (() => VNodeChild) | VNodeChild;
"v-slots"?: {
default?: false | (() => VNodeChild) | undefined;
} | undefined;
} & {
"v-slot:default"?: false | (() => VNodeChild) | undefined;
}, {}, {}, {}, {}, {
style: StyleValue;
}>;
__isFragment?: undefined;
__isTeleport?: undefined;
__isSuspense?: undefined;
} & ComponentOptionsBase<{
style: string | false | StyleValue[] | CSSProperties | null;
} & {
theme?: string | undefined;
class?: any;
text?: string | undefined;
onClick?: ((args_0: MouseEvent) => void) | undefined;
} & {
$children?: {
default?: (() => VNodeChild) | undefined;
} | {
$stable?: boolean | undefined;
} | (() => VNodeChild) | VNodeChild;
"v-slots"?: {
default?: false | (() => VNodeChild) | undefined;
} | undefined;
} & {
"v-slot:default"?: false | (() => VNodeChild) | undefined;
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, {
style: StyleValue;
}, {}, string, SlotsType<Partial<{
default: () => VNode<RendererNode, RendererElement, {
[key: string]: any;
}>[];
}>>, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & FilterPropsOptions<{
theme: StringConstructor;
class: PropType<any>;
style: {
type: PropType<StyleValue>;
default: null;
};
text: StringConstructor;
onClick: PropType<(args_0: MouseEvent) => void>;
}, ExtractPropTypes<{
theme: StringConstructor;
class: PropType<any>;
style: {
type: PropType<StyleValue>;
default: null;
};
text: StringConstructor;
onClick: PropType<(args_0: MouseEvent) => void>;
}>>;
}, {}, string, ComponentProvideOptions, true, {}, any>;
export default labelRenderer;