quarkd
Version:
Mobile UI Components built on Web Components.
63 lines (62 loc) • 2.11 kB
TypeScript
import { QuarkElement } from "quarkc";
import type { CalendarDayType, CalendarDayItem } from "./types";
export interface Props {
date: number | string;
maxdate: number | string;
mindate: number | string;
type: string;
weekfirstday: number;
hidemark: boolean;
lazyrender: boolean;
allowsameday: boolean;
showmonthtitle: boolean;
}
export interface CustomEvent {
click: (item: CalendarDayItem) => void;
}
declare class QuarkCalendarMonth extends QuarkElement {
date: any;
maxdate: any;
mindate: any;
type: string;
weekfirstday: any;
hidemark: any;
lazyrender: any;
allowsameday: any;
showmonthtitle: any;
visible: boolean;
title: string;
offset: number;
totalDay: number;
shouldRender: boolean;
placeholders: CalendarDayItem[];
days: CalendarDayItem[];
currentDate: Date | Date[];
innerMaxDate: Date;
innerMinDate: Date;
innerDate: Date;
formatter: (item: CalendarDayItem) => CalendarDayItem;
daysRef: import("quarkc").Ref<any>;
monthRef: import("quarkc").Ref<any>;
componentDidUpdate(propName: string, oldValue: any, newValue: any): void;
setValue: (value: Date | Date[]) => void;
setFormatter: (formatter: (item: CalendarDayItem) => CalendarDayItem) => void;
setVisible: (visible: any) => void;
getTitle: () => string;
getDisabledDays: () => CalendarDayItem[];
setTitle: () => void;
setTotalDay: () => void;
setShouldRender: () => void;
setOffset: () => number;
setPlaceholders: () => void;
setDays: () => void;
getMultipleDayType: (day: Date) => "" | "start" | "end" | "multiple-middle" | "multiple-selected";
getRangeDayType: (day: Date) => "" | "start" | "start-end" | "middle" | "end";
getDayType: (day: Date) => CalendarDayType;
getBottomInfo: (dayType: CalendarDayType) => string;
onClickDay: (item: CalendarDayItem) => void;
scrollToDate: (body: Element, targetDate: Date) => void;
renderDay: (item: CalendarDayItem, index: number) => any;
render(): any;
}
export default QuarkCalendarMonth;