UNPKG

@vue-js-cron/light

Version:
355 lines (348 loc) 10.2 kB
import { App } from 'vue'; import { ComponentOptionsMixin } from 'vue'; import { ComponentProvideOptions } from 'vue'; import { ComputedRef } from 'vue'; import { CronFormat } from '@vue-js-cron/core'; import { DefineComponent } from 'vue'; import { ExtractPropTypes } from 'vue'; import { Field } from '@vue-js-cron/core'; import { FieldItem } from '@vue-js-cron/core'; import { Localization } from '@vue-js-cron/core'; import { Period } from '@vue-js-cron/core'; import { PropType } from 'vue'; import { PublicProps } from 'vue'; import { Ref } from 'vue'; import { Strategy } from '@floating-ui/utils'; declare const __VLS_export: DefineComponent<ExtractPropTypes<{ theme: { type: PropType<"ant" | "legacy">; default: string; }; modelValue: { type: StringConstructor; }; period: { type: StringConstructor; }; format: { type: PropType< CronFormat>; }; locale: { type: StringConstructor; }; fields: { type: PropType< Field[]>; }; periods: { type: PropType< Period[]>; }; customLocale: { type: PropType< Localization>; }; cols: { type: PropType<Record<string, number>>; default: () => { second: number; minute: number; hour: number; day: number; }; }; disabled: { type: BooleanConstructor; default: boolean; }; clearable: { type: BooleanConstructor; default: boolean; }; }>, { cron: Ref<string, string>; error: Ref<string, string>; segments: { id: string; items: FieldItem[]; cron: Ref<string, string>; selected: Ref<number[], number[]>; error: Ref<string, string>; select: (evt: number[]) => void; text: Ref<string, string>; prefix: Ref<string, string>; suffix: Ref<string, string>; }[]; selected: ComputedRef<{ id: string; items: FieldItem[]; cron: Ref<string, string>; selected: Ref<number[], number[]>; error: Ref<string, string>; select: (evt: number[]) => void; text: Ref<string, string>; prefix: Ref<string, string>; suffix: Ref<string, string>; }[]>; period: { select: (periodId: string) => void; selected: Ref<{ id: string; value: string[]; text?: string | undefined; } | { text: any; id: string; value: string[]; }, Period | { text: any; id: string; value: string[]; } | { id: string; value: string[]; text?: string | undefined; } | { text: any; id: string; value: string[]; }>; items: { text: any; id: string; value: string[]; }[]; prefix: Ref<string, string>; suffix: Ref<string, string>; }; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("update:model-value" | "error" | "update:period")[], "update:model-value" | "error" | "update:period", PublicProps, Readonly<ExtractPropTypes<{ theme: { type: PropType<"ant" | "legacy">; default: string; }; modelValue: { type: StringConstructor; }; period: { type: StringConstructor; }; format: { type: PropType< CronFormat>; }; locale: { type: StringConstructor; }; fields: { type: PropType< Field[]>; }; periods: { type: PropType< Period[]>; }; customLocale: { type: PropType< Localization>; }; cols: { type: PropType<Record<string, number>>; default: () => { second: number; minute: number; hour: number; day: number; }; }; disabled: { type: BooleanConstructor; default: boolean; }; clearable: { type: BooleanConstructor; default: boolean; }; }>> & Readonly<{ onError?: ((...args: any[]) => any) | undefined; "onUpdate:model-value"?: ((...args: any[]) => any) | undefined; "onUpdate:period"?: ((...args: any[]) => any) | undefined; }>, { clearable: boolean; cols: Record<string, number>; disabled: boolean; theme: "ant" | "legacy"; }, {}, { CustomSelect: DefineComponent<ExtractPropTypes<{ modelValue: { type: PropType<unknown>; }; selection: { type: StringConstructor; }; clearable: { type: BooleanConstructor; default: boolean; }; items: { type: PropType<unknown[]>; default: () => never[]; }; multiple: { type: BooleanConstructor; default: boolean; }; cols: { type: NumberConstructor; default: number; }; itemText: { type: PropType<string | ((item: unknown) => string)>; default: string; }; itemValue: { type: PropType<string | ((item: unknown) => unknown)>; default: string; }; disabled: { type: BooleanConstructor; default: boolean; }; }>, { menu: Ref<boolean, boolean>; toggleMenu: () => void; btn: Ref<null, null>; floating: Ref<null, null>; floatingStyles: Readonly< Ref<{ position: Strategy; top: string; left: string; transform?: string; willChange?: string; }, { position: Strategy; top: string; left: string; transform?: string; willChange?: string; }>>; iconClicked: (e: Event) => void; select: (item: any) => void; selected: Ref<any, any>; selectedStr: Ref<string, string>; itemRows: any[][]; setItems: (items: any[]) => void; setValues: (values: any) => void; isEmpty: ComputedRef<boolean>; has: (item: any) => boolean; values: Set<any>; add: (item: any) => void; toggle: (item: any) => void; remove: (item: any) => void; clear: () => void; updated: Ref<number, number>; equals: (items: any[]) => boolean; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:model-value"[], "update:model-value", PublicProps, Readonly<ExtractPropTypes<{ modelValue: { type: PropType<unknown>; }; selection: { type: StringConstructor; }; clearable: { type: BooleanConstructor; default: boolean; }; items: { type: PropType<unknown[]>; default: () => never[]; }; multiple: { type: BooleanConstructor; default: boolean; }; cols: { type: NumberConstructor; default: number; }; itemText: { type: PropType<string | ((item: unknown) => string)>; default: string; }; itemValue: { type: PropType<string | ((item: unknown) => unknown)>; default: string; }; disabled: { type: BooleanConstructor; default: boolean; }; }>> & Readonly<{ "onUpdate:model-value"?: ((...args: any[]) => any) | undefined; }>, { clearable: boolean; items: unknown[]; multiple: boolean; cols: number; itemText: string | ((item: unknown) => string); itemValue: string | ((item: unknown) => unknown); disabled: boolean; }, {}, { CloseCircleFilled: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>; DownOutlined: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>; }, {}, string, ComponentProvideOptions, true, {}, any>; }, {}, string, ComponentProvideOptions, true, {}, any>; /** * @class */ export declare const CronLight: typeof __VLS_export; declare const CronLightPlugin: { install: (app: App) => void; }; export { CronLightPlugin } export default CronLightPlugin; /** * Props of {@link CronLight} * * See {@link @vue-js-cron/core!CronCoreProps | CronCoreProps} for a detailed description of each prop * * @interface */ export declare type CronLightProps = Partial<ExtractPropTypes<ReturnType<typeof cronLightProps>>>; export declare const cronLightProps: () => { theme: { type: PropType<"ant" | "legacy">; default: string; }; modelValue: { type: StringConstructor; }; period: { type: StringConstructor; }; format: { type: PropType< CronFormat>; }; locale: { type: StringConstructor; }; fields: { type: PropType< Field[]>; }; periods: { type: PropType< Period[]>; }; customLocale: { type: PropType< Localization>; }; cols: { type: PropType<Record<string, number>>; default: () => { second: number; minute: number; hour: number; day: number; }; }; disabled: { type: BooleanConstructor; default: boolean; }; clearable: { type: BooleanConstructor; default: boolean; }; }; export { }