kalendly 0.1.2 → 0.1.4
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.
- package/README.md +4 -4
- package/dist/vue/components/Calendar.vue.d.ts +39 -0
- package/dist/vue/components/Calendar.vue.d.ts.map +1 -0
- package/dist/vue/index.d.ts +130 -0
- package/dist/vue/index.d.ts.map +1 -0
- package/dist/vue/types.d.ts +20 -0
- package/dist/vue/types.d.ts.map +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,11 +16,11 @@ A universal calendar scheduler component that works seamlessly across React, Vue
|
|
|
16
16
|
|
|
17
17
|
## Live Examples
|
|
18
18
|
|
|
19
|
-
Check out the interactive examples: [https://kalendly.netlify.app](https://kalendly.netlify.app)
|
|
19
|
+
Check out the interactive examples: [https://kalendly-example.netlify.app/](https://kalendly-example.netlify.app)
|
|
20
20
|
|
|
21
|
-
- [Vanilla JavaScript](https://kalendly.netlify.app/vanilla)
|
|
22
|
-
- [React](https://kalendly.netlify.app/react)
|
|
23
|
-
- [Vue](https://kalendly.netlify.app/vue)
|
|
21
|
+
- [Vanilla JavaScript](https://kalendly-example.netlify.app/vanilla)
|
|
22
|
+
- [React](https://kalendly-example.netlify.app/react)
|
|
23
|
+
- [Vue](https://kalendly-example.netlify.app/vue)
|
|
24
24
|
|
|
25
25
|
## Installation
|
|
26
26
|
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { VueCalendarProps } from '../types';
|
|
2
|
+
import { CalendarEvent } from '../../core/types';
|
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
|
+
declare function __VLS_template(): {
|
|
5
|
+
attrs: Partial<{}>;
|
|
6
|
+
slots: {
|
|
7
|
+
title?(_: {}): any;
|
|
8
|
+
event?(_: {
|
|
9
|
+
event: CalendarEvent;
|
|
10
|
+
}): any;
|
|
11
|
+
'no-events'?(_: {}): any;
|
|
12
|
+
};
|
|
13
|
+
refs: {};
|
|
14
|
+
rootEl: HTMLDivElement;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
+
declare const __VLS_component: DefineComponent<VueCalendarProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
18
|
+
"date-select": (date: Date) => any;
|
|
19
|
+
"event-click": (event: CalendarEvent) => any;
|
|
20
|
+
"month-change": (year: number, month: number) => any;
|
|
21
|
+
}, string, PublicProps, Readonly<VueCalendarProps> & Readonly<{
|
|
22
|
+
"onDate-select"?: ((date: Date) => any) | undefined;
|
|
23
|
+
"onEvent-click"?: ((event: CalendarEvent) => any) | undefined;
|
|
24
|
+
"onMonth-change"?: ((year: number, month: number) => any) | undefined;
|
|
25
|
+
}>, {
|
|
26
|
+
events: CalendarEvent[];
|
|
27
|
+
class: string;
|
|
28
|
+
style: Record<string, string | number>;
|
|
29
|
+
title: string;
|
|
30
|
+
weekStartsOn: 0 | 1;
|
|
31
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
32
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=Calendar.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Calendar.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/Calendar.vue"],"names":[],"mappings":";AAgNA;AAgYA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAgB,MAAM,kBAAkB,CAAC;AAwKpE,iBAAS,cAAc;WAsST,OAAO,IAA6B;;uBAZvB,GAAG;;;YACH,GAAG;6BACG,GAAG;;;;EAenC;AAyBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;wFASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { App, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
|
|
2
|
+
import { VueCalendarProps } from './types';
|
|
3
|
+
import { CalendarEvent } from '../core';
|
|
4
|
+
export { default as Calendar } from './components/Calendar.vue';
|
|
5
|
+
export * from './types';
|
|
6
|
+
export * from '../core';
|
|
7
|
+
export declare function install(app: App): void;
|
|
8
|
+
declare const _default: {
|
|
9
|
+
install: typeof install;
|
|
10
|
+
Calendar: {
|
|
11
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<VueCalendarProps> & Readonly<{
|
|
12
|
+
"onDate-select"?: ((date: Date) => any) | undefined;
|
|
13
|
+
"onEvent-click"?: ((event: CalendarEvent) => any) | undefined;
|
|
14
|
+
"onMonth-change"?: ((year: number, month: number) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
16
|
+
"date-select": (date: Date) => any;
|
|
17
|
+
"event-click": (event: CalendarEvent) => any;
|
|
18
|
+
"month-change": (year: number, month: number) => any;
|
|
19
|
+
}, PublicProps, {
|
|
20
|
+
events: CalendarEvent[];
|
|
21
|
+
class: string;
|
|
22
|
+
style: Record<string, string | number>;
|
|
23
|
+
title: string;
|
|
24
|
+
weekStartsOn: 0 | 1;
|
|
25
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
26
|
+
P: {};
|
|
27
|
+
B: {};
|
|
28
|
+
D: {};
|
|
29
|
+
C: {};
|
|
30
|
+
M: {};
|
|
31
|
+
Defaults: {};
|
|
32
|
+
}, Readonly<VueCalendarProps> & Readonly<{
|
|
33
|
+
"onDate-select"?: ((date: Date) => any) | undefined;
|
|
34
|
+
"onEvent-click"?: ((event: CalendarEvent) => any) | undefined;
|
|
35
|
+
"onMonth-change"?: ((year: number, month: number) => any) | undefined;
|
|
36
|
+
}>, {}, {}, {}, {}, {
|
|
37
|
+
events: CalendarEvent[];
|
|
38
|
+
class: string;
|
|
39
|
+
style: Record<string, string | number>;
|
|
40
|
+
title: string;
|
|
41
|
+
weekStartsOn: 0 | 1;
|
|
42
|
+
}>;
|
|
43
|
+
__isFragment?: never;
|
|
44
|
+
__isTeleport?: never;
|
|
45
|
+
__isSuspense?: never;
|
|
46
|
+
} & ComponentOptionsBase<Readonly<VueCalendarProps> & Readonly<{
|
|
47
|
+
"onDate-select"?: ((date: Date) => any) | undefined;
|
|
48
|
+
"onEvent-click"?: ((event: CalendarEvent) => any) | undefined;
|
|
49
|
+
"onMonth-change"?: ((year: number, month: number) => any) | undefined;
|
|
50
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
51
|
+
"date-select": (date: Date) => any;
|
|
52
|
+
"event-click": (event: CalendarEvent) => any;
|
|
53
|
+
"month-change": (year: number, month: number) => any;
|
|
54
|
+
}, string, {
|
|
55
|
+
events: CalendarEvent[];
|
|
56
|
+
class: string;
|
|
57
|
+
style: Record<string, string | number>;
|
|
58
|
+
title: string;
|
|
59
|
+
weekStartsOn: 0 | 1;
|
|
60
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
61
|
+
$slots: {
|
|
62
|
+
title?(_: {}): any;
|
|
63
|
+
event?(_: {
|
|
64
|
+
event: CalendarEvent;
|
|
65
|
+
}): any;
|
|
66
|
+
'no-events'?(_: {}): any;
|
|
67
|
+
};
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
export default _default;
|
|
71
|
+
export declare function createCalendar(_props: VueCalendarProps): {
|
|
72
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<VueCalendarProps> & Readonly<{
|
|
73
|
+
"onDate-select"?: ((date: Date) => any) | undefined;
|
|
74
|
+
"onEvent-click"?: ((event: CalendarEvent) => any) | undefined;
|
|
75
|
+
"onMonth-change"?: ((year: number, month: number) => any) | undefined;
|
|
76
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
77
|
+
"date-select": (date: Date) => any;
|
|
78
|
+
"event-click": (event: CalendarEvent) => any;
|
|
79
|
+
"month-change": (year: number, month: number) => any;
|
|
80
|
+
}, PublicProps, {
|
|
81
|
+
events: CalendarEvent[];
|
|
82
|
+
class: string;
|
|
83
|
+
style: Record<string, string | number>;
|
|
84
|
+
title: string;
|
|
85
|
+
weekStartsOn: 0 | 1;
|
|
86
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
87
|
+
P: {};
|
|
88
|
+
B: {};
|
|
89
|
+
D: {};
|
|
90
|
+
C: {};
|
|
91
|
+
M: {};
|
|
92
|
+
Defaults: {};
|
|
93
|
+
}, Readonly<VueCalendarProps> & Readonly<{
|
|
94
|
+
"onDate-select"?: ((date: Date) => any) | undefined;
|
|
95
|
+
"onEvent-click"?: ((event: CalendarEvent) => any) | undefined;
|
|
96
|
+
"onMonth-change"?: ((year: number, month: number) => any) | undefined;
|
|
97
|
+
}>, {}, {}, {}, {}, {
|
|
98
|
+
events: CalendarEvent[];
|
|
99
|
+
class: string;
|
|
100
|
+
style: Record<string, string | number>;
|
|
101
|
+
title: string;
|
|
102
|
+
weekStartsOn: 0 | 1;
|
|
103
|
+
}>;
|
|
104
|
+
__isFragment?: never;
|
|
105
|
+
__isTeleport?: never;
|
|
106
|
+
__isSuspense?: never;
|
|
107
|
+
} & ComponentOptionsBase<Readonly<VueCalendarProps> & Readonly<{
|
|
108
|
+
"onDate-select"?: ((date: Date) => any) | undefined;
|
|
109
|
+
"onEvent-click"?: ((event: CalendarEvent) => any) | undefined;
|
|
110
|
+
"onMonth-change"?: ((year: number, month: number) => any) | undefined;
|
|
111
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
112
|
+
"date-select": (date: Date) => any;
|
|
113
|
+
"event-click": (event: CalendarEvent) => any;
|
|
114
|
+
"month-change": (year: number, month: number) => any;
|
|
115
|
+
}, string, {
|
|
116
|
+
events: CalendarEvent[];
|
|
117
|
+
class: string;
|
|
118
|
+
style: Record<string, string | number>;
|
|
119
|
+
title: string;
|
|
120
|
+
weekStartsOn: 0 | 1;
|
|
121
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
122
|
+
$slots: {
|
|
123
|
+
title?(_: {}): any;
|
|
124
|
+
event?(_: {
|
|
125
|
+
event: CalendarEvent;
|
|
126
|
+
}): any;
|
|
127
|
+
'no-events'?(_: {}): any;
|
|
128
|
+
};
|
|
129
|
+
});
|
|
130
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/vue/index.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAGhD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAChE,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AAGxB,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,QAE/B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGD,wBAGE;AAGF,wBAAgB,cAAc,CAAC,MAAM,EAAE,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAEtD"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CalendarProps as CoreCalendarProps, CalendarEvent } from '../core';
|
|
2
|
+
import { VNode } from 'vue';
|
|
3
|
+
export interface VueCalendarProps extends CoreCalendarProps {
|
|
4
|
+
class?: string;
|
|
5
|
+
style?: Record<string, string | number>;
|
|
6
|
+
title?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface VueCalendarEmits {
|
|
9
|
+
'date-select': (date: Date) => void;
|
|
10
|
+
'event-click': (event: CalendarEvent) => void;
|
|
11
|
+
'month-change': (year: number, month: number) => void;
|
|
12
|
+
}
|
|
13
|
+
export interface VueCalendarSlots {
|
|
14
|
+
title?: () => VNode | VNode[];
|
|
15
|
+
event?: (props: {
|
|
16
|
+
event: CalendarEvent;
|
|
17
|
+
}) => VNode | VNode[];
|
|
18
|
+
'no-events'?: () => VNode | VNode[];
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/vue/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,iBAAiB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC5E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC;AAEjC,MAAM,WAAW,gBAAiB,SAAQ,iBAAiB;IACzD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,gBAAgB;IAC/B,aAAa,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IACpC,aAAa,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IAC9C,cAAc,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACvD;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,MAAM,KAAK,GAAG,KAAK,EAAE,CAAC;IAC9B,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,aAAa,CAAA;KAAE,KAAK,KAAK,GAAG,KAAK,EAAE,CAAC;IAC7D,WAAW,CAAC,EAAE,MAAM,KAAK,GAAG,KAAK,EAAE,CAAC;CACrC"}
|