@reinosoft-ui/core 0.1.31 → 0.1.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,30 @@
1
+ import type { Props } from './types';
2
+ type __VLS_Props = Props;
3
+ type __VLS_ModelProps = {
4
+ modelValue?: Date | null;
5
+ };
6
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
7
+ declare var __VLS_14: {};
8
+ type __VLS_Slots = {} & {
9
+ time?: (props: typeof __VLS_14) => any;
10
+ };
11
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ "update:modelValue": (value: Date | null | undefined) => any;
13
+ } & {
14
+ "update:open": (value: boolean) => any;
15
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
16
+ "onUpdate:modelValue"?: ((value: Date | null | undefined) => any) | undefined;
17
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
18
+ }>, {
19
+ locale: string;
20
+ format: string;
21
+ firstDayOfWeek: number;
22
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
24
+ declare const _default: typeof __VLS_export;
25
+ export default _default;
26
+ type __VLS_WithSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
@@ -0,0 +1,17 @@
1
+ import type { Props } from './types';
2
+ type __VLS_Props = Props;
3
+ type __VLS_ModelProps = {
4
+ modelValue: Date | null;
5
+ };
6
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ "update:modelValue": (value: Date | null) => any;
9
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
10
+ "onUpdate:modelValue"?: ((value: Date | null) => any) | undefined;
11
+ }>, {
12
+ locale: string;
13
+ format: string;
14
+ firstDayOfWeek: number;
15
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
@@ -0,0 +1,6 @@
1
+ export type DateFormatToken = 'DD' | 'MM' | 'YYYY' | 'HH' | 'mm' | 'ss';
2
+ export declare const formatDate: (date: Date, format: string) => string;
3
+ export declare const parseDateTime: (value: string, format: string) => Date | null;
4
+ export declare function isValidDateParts(day: number, month: number, year: number, minYear?: number, maxYear?: number): boolean;
5
+ export declare const applyMask: (raw: string, format: string) => string;
6
+ export declare const getMaxDigits: (format: string) => number;
@@ -0,0 +1,8 @@
1
+ import type { App } from 'vue';
2
+ import DatePicker from './DatePicker.vue';
3
+ import DateTimePicker from './DateTimePicker.vue';
4
+ export { DatePicker, DateTimePicker };
5
+ declare const _default: {
6
+ install(app: App): void;
7
+ };
8
+ export default _default;
@@ -0,0 +1,12 @@
1
+ export interface UseCalendarOptions {
2
+ modelValue?: Date | null;
3
+ locale?: string;
4
+ firstDayOfWeek?: number;
5
+ }
6
+ export interface Props {
7
+ id?: string;
8
+ locale?: string;
9
+ format?: string;
10
+ placeholder?: string;
11
+ firstDayOfWeek?: number;
12
+ }
@@ -0,0 +1,12 @@
1
+ import type { UseCalendarOptions } from './types';
2
+ export declare const useCalendar: (options: UseCalendarOptions) => {
3
+ today: Date;
4
+ selected: import("vue").Ref<Date | null, Date | null>;
5
+ currentMonth: import("vue").Ref<Date, Date>;
6
+ monthLabel: import("vue").ComputedRef<string>;
7
+ weekDays: import("vue").ComputedRef<string[]>;
8
+ days: import("vue").ComputedRef<(Date | null)[]>;
9
+ nextMonth: () => Date;
10
+ prevMonth: () => Date;
11
+ select: (date: Date | null) => Date | null;
12
+ };
package/dist/index.d.ts CHANGED
@@ -31,6 +31,7 @@ export * from './components/Timeline';
31
31
  export * from './components/Carousel';
32
32
  export * from './components/Tab/Tabs';
33
33
  export * from './components/Dropdown';
34
+ export * from './components/DatePicker';
34
35
  export * from './components/Table/Table';
35
36
  export * from './components/Modal/Modal';
36
37
  export * from './components/Accordion/Accordion';