@bagelink/vue 1.2.25 → 1.2.33
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/dist/components/calendar/views/DayView.vue.d.ts.map +1 -1
- package/dist/components/calendar/views/MonthView.vue.d.ts +162 -2
- package/dist/components/calendar/views/MonthView.vue.d.ts.map +1 -1
- package/dist/components/calendar/views/WeekView.vue.d.ts +162 -2
- package/dist/components/calendar/views/WeekView.vue.d.ts.map +1 -1
- package/dist/index.cjs +19 -21
- package/dist/index.mjs +19 -21
- package/dist/style.css +70 -70
- package/dist/utils/calendar/dateUtils.d.ts +15 -9
- package/dist/utils/calendar/dateUtils.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/calendar/Index.vue +3 -3
- package/src/components/calendar/views/AgendaView.vue +1 -1
- package/src/components/calendar/views/DayView.vue +2 -1
- package/src/components/calendar/views/MonthView.vue +5 -4
- package/src/components/calendar/views/WeekView.vue +6 -5
- package/src/components/form/inputs/DateInput.vue +2 -2
- package/src/utils/calendar/dateUtils.ts +21 -27
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DayView.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/calendar/views/DayView.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DayView.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/calendar/views/DayView.vue"],"names":[],"mappings":"AAyXA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AASrD,KAAK,WAAW,GAAG;IAClB,MAAM,EAAE,aAAa,EAAE,CAAA;IACvB,SAAS,EAAE,IAAI,CAAA;CACf,CAAC;AA2LF,iBAAS,cAAc;WAuIT,OAAO,IAA6B;;;;;;;;;;;;;YAXhB,GAAG;;;;;;EAgBpC;AAyBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;oBA5VoB,IAAI;kBAAY,IAAI;;;;;oBAApB,IAAI;kBAAY,IAAI;;;;kBAqW3D,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -3,13 +3,173 @@ type __VLS_Props = {
|
|
|
3
3
|
events: CalendarEvent[];
|
|
4
4
|
startDate: Date;
|
|
5
5
|
};
|
|
6
|
-
declare function __VLS_template():
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
eventContent?(_: {
|
|
10
|
+
event: {
|
|
11
|
+
id: string;
|
|
12
|
+
title: string;
|
|
13
|
+
description?: string | undefined;
|
|
14
|
+
start_time: Date;
|
|
15
|
+
end_time: Date;
|
|
16
|
+
color?: string | undefined;
|
|
17
|
+
category?: string | undefined;
|
|
18
|
+
allDay?: boolean | undefined;
|
|
19
|
+
};
|
|
20
|
+
}): any;
|
|
21
|
+
};
|
|
22
|
+
refs: {
|
|
23
|
+
popoverRef: ({
|
|
24
|
+
$: import('vue').ComponentInternalInstance;
|
|
25
|
+
$data: {};
|
|
26
|
+
$props: {
|
|
27
|
+
readonly label?: string | undefined;
|
|
28
|
+
readonly thin?: boolean | undefined;
|
|
29
|
+
readonly outline?: boolean | undefined;
|
|
30
|
+
readonly h100?: boolean | undefined;
|
|
31
|
+
readonly to?: string | undefined;
|
|
32
|
+
readonly overflowX?: boolean | undefined;
|
|
33
|
+
readonly overflowY?: boolean | undefined;
|
|
34
|
+
readonly bg?: "gray" | "light" | "dark" | "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "white" | "transparent" | undefined;
|
|
35
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
36
|
+
$attrs: {
|
|
37
|
+
[x: string]: unknown;
|
|
38
|
+
};
|
|
39
|
+
$refs: {
|
|
40
|
+
[x: string]: unknown;
|
|
41
|
+
};
|
|
42
|
+
$slots: Readonly<{
|
|
43
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
44
|
+
}>;
|
|
45
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
46
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
47
|
+
$host: Element | null;
|
|
48
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
49
|
+
$el: any;
|
|
50
|
+
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
51
|
+
label?: string;
|
|
52
|
+
thin?: boolean;
|
|
53
|
+
outline?: boolean;
|
|
54
|
+
h100?: boolean;
|
|
55
|
+
to?: string;
|
|
56
|
+
overflowX?: boolean;
|
|
57
|
+
overflowY?: boolean;
|
|
58
|
+
bg?: "gray" | "light" | "dark" | "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "white" | "transparent";
|
|
59
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
60
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
61
|
+
created?: (() => void) | (() => void)[];
|
|
62
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
63
|
+
mounted?: (() => void) | (() => void)[];
|
|
64
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
65
|
+
updated?: (() => void) | (() => void)[];
|
|
66
|
+
activated?: (() => void) | (() => void)[];
|
|
67
|
+
deactivated?: (() => void) | (() => void)[];
|
|
68
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
69
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
70
|
+
destroyed?: (() => void) | (() => void)[];
|
|
71
|
+
unmounted?: (() => void) | (() => void)[];
|
|
72
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
73
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
74
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
75
|
+
};
|
|
76
|
+
$forceUpdate: () => void;
|
|
77
|
+
$nextTick: typeof import('vue').nextTick;
|
|
78
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
79
|
+
} & Readonly<{}> & Omit<Readonly<{
|
|
80
|
+
label?: string;
|
|
81
|
+
thin?: boolean;
|
|
82
|
+
outline?: boolean;
|
|
83
|
+
h100?: boolean;
|
|
84
|
+
to?: string;
|
|
85
|
+
overflowX?: boolean;
|
|
86
|
+
overflowY?: boolean;
|
|
87
|
+
bg?: "gray" | "light" | "dark" | "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "white" | "transparent";
|
|
88
|
+
}> & Readonly<{}>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
89
|
+
$slots: {
|
|
90
|
+
default?(_: {}): any;
|
|
91
|
+
};
|
|
92
|
+
}) | null;
|
|
93
|
+
};
|
|
94
|
+
rootEl: HTMLDivElement;
|
|
95
|
+
};
|
|
7
96
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
8
97
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
9
98
|
eventClick: (event: CalendarEvent) => any;
|
|
10
99
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
100
|
onEventClick?: ((event: CalendarEvent) => any) | undefined;
|
|
12
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false,
|
|
101
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
102
|
+
popoverRef: ({
|
|
103
|
+
$: import('vue').ComponentInternalInstance;
|
|
104
|
+
$data: {};
|
|
105
|
+
$props: {
|
|
106
|
+
readonly label?: string | undefined;
|
|
107
|
+
readonly thin?: boolean | undefined;
|
|
108
|
+
readonly outline?: boolean | undefined;
|
|
109
|
+
readonly h100?: boolean | undefined;
|
|
110
|
+
readonly to?: string | undefined;
|
|
111
|
+
readonly overflowX?: boolean | undefined;
|
|
112
|
+
readonly overflowY?: boolean | undefined;
|
|
113
|
+
readonly bg?: "gray" | "light" | "dark" | "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "white" | "transparent" | undefined;
|
|
114
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
115
|
+
$attrs: {
|
|
116
|
+
[x: string]: unknown;
|
|
117
|
+
};
|
|
118
|
+
$refs: {
|
|
119
|
+
[x: string]: unknown;
|
|
120
|
+
};
|
|
121
|
+
$slots: Readonly<{
|
|
122
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
123
|
+
}>;
|
|
124
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
125
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
126
|
+
$host: Element | null;
|
|
127
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
128
|
+
$el: any;
|
|
129
|
+
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
130
|
+
label?: string;
|
|
131
|
+
thin?: boolean;
|
|
132
|
+
outline?: boolean;
|
|
133
|
+
h100?: boolean;
|
|
134
|
+
to?: string;
|
|
135
|
+
overflowX?: boolean;
|
|
136
|
+
overflowY?: boolean;
|
|
137
|
+
bg?: "gray" | "light" | "dark" | "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "white" | "transparent";
|
|
138
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
139
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
140
|
+
created?: (() => void) | (() => void)[];
|
|
141
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
142
|
+
mounted?: (() => void) | (() => void)[];
|
|
143
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
144
|
+
updated?: (() => void) | (() => void)[];
|
|
145
|
+
activated?: (() => void) | (() => void)[];
|
|
146
|
+
deactivated?: (() => void) | (() => void)[];
|
|
147
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
148
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
149
|
+
destroyed?: (() => void) | (() => void)[];
|
|
150
|
+
unmounted?: (() => void) | (() => void)[];
|
|
151
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
152
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
153
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
154
|
+
};
|
|
155
|
+
$forceUpdate: () => void;
|
|
156
|
+
$nextTick: typeof import('vue').nextTick;
|
|
157
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
158
|
+
} & Readonly<{}> & Omit<Readonly<{
|
|
159
|
+
label?: string;
|
|
160
|
+
thin?: boolean;
|
|
161
|
+
outline?: boolean;
|
|
162
|
+
h100?: boolean;
|
|
163
|
+
to?: string;
|
|
164
|
+
overflowX?: boolean;
|
|
165
|
+
overflowY?: boolean;
|
|
166
|
+
bg?: "gray" | "light" | "dark" | "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "white" | "transparent";
|
|
167
|
+
}> & Readonly<{}>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
168
|
+
$slots: {
|
|
169
|
+
default?(_: {}): any;
|
|
170
|
+
};
|
|
171
|
+
}) | null;
|
|
172
|
+
}, HTMLDivElement>;
|
|
13
173
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
14
174
|
export default _default;
|
|
15
175
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MonthView.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/calendar/views/MonthView.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MonthView.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/calendar/views/MonthView.vue"],"names":[],"mappings":"AA6TA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAgBrD,KAAK,WAAW,GAAG;IAClB,MAAM,EAAE,aAAa,EAAE,CAAA;IACvB,SAAS,EAAE,IAAI,CAAA;CACf,CAAC;AAsGF,iBAAS,cAAc;WAqIT,OAAO,IAA6B;;;;;;;;;;;;;YAXhB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA+DyjT,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;EA/CntT;AAsBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAwBykT,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;kBAfltT,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -4,7 +4,96 @@ type __VLS_Props = {
|
|
|
4
4
|
startDate?: Date;
|
|
5
5
|
weekStart?: WeekStart;
|
|
6
6
|
};
|
|
7
|
-
declare function __VLS_template():
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
slots: {
|
|
10
|
+
eventContent?(_: {
|
|
11
|
+
event: {
|
|
12
|
+
id: string;
|
|
13
|
+
title: string;
|
|
14
|
+
description?: string | undefined;
|
|
15
|
+
start_time: Date;
|
|
16
|
+
end_time: Date;
|
|
17
|
+
color?: string | undefined;
|
|
18
|
+
category?: string | undefined;
|
|
19
|
+
allDay?: boolean | undefined;
|
|
20
|
+
};
|
|
21
|
+
}): any;
|
|
22
|
+
};
|
|
23
|
+
refs: {
|
|
24
|
+
popoverRef: ({
|
|
25
|
+
$: import('vue').ComponentInternalInstance;
|
|
26
|
+
$data: {};
|
|
27
|
+
$props: {
|
|
28
|
+
readonly label?: string | undefined;
|
|
29
|
+
readonly thin?: boolean | undefined;
|
|
30
|
+
readonly outline?: boolean | undefined;
|
|
31
|
+
readonly h100?: boolean | undefined;
|
|
32
|
+
readonly to?: string | undefined;
|
|
33
|
+
readonly overflowX?: boolean | undefined;
|
|
34
|
+
readonly overflowY?: boolean | undefined;
|
|
35
|
+
readonly bg?: "gray" | "light" | "dark" | "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "white" | "transparent" | undefined;
|
|
36
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
37
|
+
$attrs: {
|
|
38
|
+
[x: string]: unknown;
|
|
39
|
+
};
|
|
40
|
+
$refs: {
|
|
41
|
+
[x: string]: unknown;
|
|
42
|
+
};
|
|
43
|
+
$slots: Readonly<{
|
|
44
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
45
|
+
}>;
|
|
46
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
47
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
48
|
+
$host: Element | null;
|
|
49
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
50
|
+
$el: any;
|
|
51
|
+
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
52
|
+
label?: string;
|
|
53
|
+
thin?: boolean;
|
|
54
|
+
outline?: boolean;
|
|
55
|
+
h100?: boolean;
|
|
56
|
+
to?: string;
|
|
57
|
+
overflowX?: boolean;
|
|
58
|
+
overflowY?: boolean;
|
|
59
|
+
bg?: "gray" | "light" | "dark" | "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "white" | "transparent";
|
|
60
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
61
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
62
|
+
created?: (() => void) | (() => void)[];
|
|
63
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
64
|
+
mounted?: (() => void) | (() => void)[];
|
|
65
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
66
|
+
updated?: (() => void) | (() => void)[];
|
|
67
|
+
activated?: (() => void) | (() => void)[];
|
|
68
|
+
deactivated?: (() => void) | (() => void)[];
|
|
69
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
70
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
71
|
+
destroyed?: (() => void) | (() => void)[];
|
|
72
|
+
unmounted?: (() => void) | (() => void)[];
|
|
73
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
74
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
75
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
76
|
+
};
|
|
77
|
+
$forceUpdate: () => void;
|
|
78
|
+
$nextTick: typeof import('vue').nextTick;
|
|
79
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
80
|
+
} & Readonly<{}> & Omit<Readonly<{
|
|
81
|
+
label?: string;
|
|
82
|
+
thin?: boolean;
|
|
83
|
+
outline?: boolean;
|
|
84
|
+
h100?: boolean;
|
|
85
|
+
to?: string;
|
|
86
|
+
overflowX?: boolean;
|
|
87
|
+
overflowY?: boolean;
|
|
88
|
+
bg?: "gray" | "light" | "dark" | "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "white" | "transparent";
|
|
89
|
+
}> & Readonly<{}>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
90
|
+
$slots: {
|
|
91
|
+
default?(_: {}): any;
|
|
92
|
+
};
|
|
93
|
+
}) | null;
|
|
94
|
+
};
|
|
95
|
+
rootEl: HTMLDivElement;
|
|
96
|
+
};
|
|
8
97
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
9
98
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
10
99
|
eventClick: (event: CalendarEvent) => any;
|
|
@@ -22,7 +111,78 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
22
111
|
events: CalendarEvent[];
|
|
23
112
|
startDate: Date;
|
|
24
113
|
weekStart: WeekStart;
|
|
25
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false,
|
|
114
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
115
|
+
popoverRef: ({
|
|
116
|
+
$: import('vue').ComponentInternalInstance;
|
|
117
|
+
$data: {};
|
|
118
|
+
$props: {
|
|
119
|
+
readonly label?: string | undefined;
|
|
120
|
+
readonly thin?: boolean | undefined;
|
|
121
|
+
readonly outline?: boolean | undefined;
|
|
122
|
+
readonly h100?: boolean | undefined;
|
|
123
|
+
readonly to?: string | undefined;
|
|
124
|
+
readonly overflowX?: boolean | undefined;
|
|
125
|
+
readonly overflowY?: boolean | undefined;
|
|
126
|
+
readonly bg?: "gray" | "light" | "dark" | "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "white" | "transparent" | undefined;
|
|
127
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
128
|
+
$attrs: {
|
|
129
|
+
[x: string]: unknown;
|
|
130
|
+
};
|
|
131
|
+
$refs: {
|
|
132
|
+
[x: string]: unknown;
|
|
133
|
+
};
|
|
134
|
+
$slots: Readonly<{
|
|
135
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
136
|
+
}>;
|
|
137
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
138
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
139
|
+
$host: Element | null;
|
|
140
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
141
|
+
$el: any;
|
|
142
|
+
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
143
|
+
label?: string;
|
|
144
|
+
thin?: boolean;
|
|
145
|
+
outline?: boolean;
|
|
146
|
+
h100?: boolean;
|
|
147
|
+
to?: string;
|
|
148
|
+
overflowX?: boolean;
|
|
149
|
+
overflowY?: boolean;
|
|
150
|
+
bg?: "gray" | "light" | "dark" | "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "white" | "transparent";
|
|
151
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
152
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
153
|
+
created?: (() => void) | (() => void)[];
|
|
154
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
155
|
+
mounted?: (() => void) | (() => void)[];
|
|
156
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
157
|
+
updated?: (() => void) | (() => void)[];
|
|
158
|
+
activated?: (() => void) | (() => void)[];
|
|
159
|
+
deactivated?: (() => void) | (() => void)[];
|
|
160
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
161
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
162
|
+
destroyed?: (() => void) | (() => void)[];
|
|
163
|
+
unmounted?: (() => void) | (() => void)[];
|
|
164
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
165
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
166
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
167
|
+
};
|
|
168
|
+
$forceUpdate: () => void;
|
|
169
|
+
$nextTick: typeof import('vue').nextTick;
|
|
170
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
171
|
+
} & Readonly<{}> & Omit<Readonly<{
|
|
172
|
+
label?: string;
|
|
173
|
+
thin?: boolean;
|
|
174
|
+
outline?: boolean;
|
|
175
|
+
h100?: boolean;
|
|
176
|
+
to?: string;
|
|
177
|
+
overflowX?: boolean;
|
|
178
|
+
overflowY?: boolean;
|
|
179
|
+
bg?: "gray" | "light" | "dark" | "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "white" | "transparent";
|
|
180
|
+
}> & Readonly<{}>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
181
|
+
$slots: {
|
|
182
|
+
default?(_: {}): any;
|
|
183
|
+
};
|
|
184
|
+
}) | null;
|
|
185
|
+
}, HTMLDivElement>;
|
|
26
186
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
27
187
|
export default _default;
|
|
28
188
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WeekView.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/calendar/views/WeekView.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WeekView.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/calendar/views/WeekView.vue"],"names":[],"mappings":"AAmbA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAkBhE,KAAK,WAAW,GAAG;IAClB,MAAM,CAAC,EAAE,aAAa,EAAE,CAAA;IACxB,SAAS,CAAC,EAAE,IAAI,CAAA;IAChB,SAAS,CAAC,EAAE,SAAS,CAAA;CACrB,CAAC;AA6PF,iBAAS,cAAc;WAqKT,OAAO,IAA6B;;;;;;;;;;;;;YAXhB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAFmkB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;EAkB7tB;AA4BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;oBA3boB,IAAI;kBAAY,IAAI;;;;;oBAApB,IAAI;kBAAY,IAAI;;;YAZnD,aAAa,EAAE;eACZ,IAAI;eACJ,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAsZklB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;kBAyD5tB,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"}
|
package/dist/index.cjs
CHANGED
|
@@ -590,7 +590,7 @@ const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
|
|
|
590
590
|
onClick: vue.withModifiers(($event) => emit2("eventClick", event), ["stop"])
|
|
591
591
|
}, [
|
|
592
592
|
vue.createElementVNode("div", _hoisted_3$C, [
|
|
593
|
-
vue.createElementVNode("div", _hoisted_4$p, vue.toDisplayString(vue.unref(formatDate)(event.start_time, "HH:mm")), 1),
|
|
593
|
+
vue.createElementVNode("div", _hoisted_4$p, vue.toDisplayString(vue.unref(formatDate)(event.start_time, { fmt: "HH:mm" })), 1),
|
|
594
594
|
vue.createElementVNode("div", _hoisted_5$o, [
|
|
595
595
|
vue.createElementVNode("div", _hoisted_6$l, vue.toDisplayString(event.title), 1),
|
|
596
596
|
vue.createElementVNode("div", {
|
|
@@ -605,7 +605,7 @@ const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
|
|
|
605
605
|
};
|
|
606
606
|
}
|
|
607
607
|
});
|
|
608
|
-
const AgendaView = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-
|
|
608
|
+
const AgendaView = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-520aee85"]]);
|
|
609
609
|
function calculatePopoverPosition(target, popoverWidth = 300, popoverHeight = 150) {
|
|
610
610
|
const rect = target.getBoundingClientRect();
|
|
611
611
|
const { scrollY, scrollX, innerHeight, innerWidth } = window;
|
|
@@ -857,7 +857,7 @@ const _sfc_main$14 = /* @__PURE__ */ vue.defineComponent({
|
|
|
857
857
|
};
|
|
858
858
|
}
|
|
859
859
|
});
|
|
860
|
-
const DayView = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-
|
|
860
|
+
const DayView = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-bc647d79"]]);
|
|
861
861
|
const _hoisted_1$V = { class: "month-view" };
|
|
862
862
|
const _hoisted_2$G = { class: "month-header" };
|
|
863
863
|
const _hoisted_3$A = { class: "month-grid" };
|
|
@@ -971,7 +971,7 @@ const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
|
|
|
971
971
|
"other-month": !day.isCurrentMonth
|
|
972
972
|
}])
|
|
973
973
|
}, [
|
|
974
|
-
vue.createElementVNode("div", _hoisted_4$n, vue.toDisplayString(vue.unref(
|
|
974
|
+
vue.createElementVNode("div", _hoisted_4$n, vue.toDisplayString(vue.unref(fmtDate)(day.date, { fmt: "DD" })), 1),
|
|
975
975
|
vue.createElementVNode("div", _hoisted_5$m, [
|
|
976
976
|
isMobile.value ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
977
977
|
day.events.length > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$j)) : vue.createCommentVNode("", true)
|
|
@@ -983,7 +983,7 @@ const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
|
|
|
983
983
|
onClick: vue.withModifiers(($event) => vue.unref(slots).eventContent ? openPopover$1(event, $event) : emit2("eventClick", event), ["stop"])
|
|
984
984
|
}, [
|
|
985
985
|
vue.createElementVNode("div", _hoisted_8$7, vue.toDisplayString(event.title), 1),
|
|
986
|
-
vue.createElementVNode("div", _hoisted_9$6, vue.toDisplayString(vue.unref(
|
|
986
|
+
vue.createElementVNode("div", _hoisted_9$6, vue.toDisplayString(vue.unref(fmtDate)(event.start_time, { fmt: "HH:mm" })), 1)
|
|
987
987
|
], 12, _hoisted_7$f);
|
|
988
988
|
}), 128))
|
|
989
989
|
])
|
|
@@ -1013,7 +1013,7 @@ const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1013
1013
|
};
|
|
1014
1014
|
}
|
|
1015
1015
|
});
|
|
1016
|
-
const MonthView = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-
|
|
1016
|
+
const MonthView = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-e972943e"]]);
|
|
1017
1017
|
const _hoisted_1$U = { class: "w-100p overflow-hidden m_overflow h-100p grid" };
|
|
1018
1018
|
const _hoisted_2$F = { class: "weekGrid border-bottom me-1" };
|
|
1019
1019
|
const _hoisted_3$z = { class: "overflow h-100p pe-05" };
|
|
@@ -1210,13 +1210,13 @@ const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1210
1210
|
key: day.toISOString(),
|
|
1211
1211
|
class: "day-header p-05 txt-center"
|
|
1212
1212
|
}, [
|
|
1213
|
-
vue.createTextVNode(vue.toDisplayString(vue.unref(
|
|
1213
|
+
vue.createTextVNode(vue.toDisplayString(vue.unref(fmtDate)(day, { fmt: "DDD" })) + " ", 1),
|
|
1214
1214
|
vue.createElementVNode("span", {
|
|
1215
1215
|
class: vue.normalizeClass(["txt-12 round p-025", {
|
|
1216
1216
|
"color-gray": day.toDateString() !== (/* @__PURE__ */ new Date()).toDateString(),
|
|
1217
1217
|
"bg-primary color-white": day.toDateString() === (/* @__PURE__ */ new Date()).toDateString()
|
|
1218
1218
|
}])
|
|
1219
|
-
}, vue.toDisplayString(vue.unref(
|
|
1219
|
+
}, vue.toDisplayString(vue.unref(fmtDate)(day, { fmt: "DD" })), 3)
|
|
1220
1220
|
]);
|
|
1221
1221
|
}), 128))
|
|
1222
1222
|
]),
|
|
@@ -1262,7 +1262,7 @@ const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1262
1262
|
}, [
|
|
1263
1263
|
vue.createElementVNode("div", _hoisted_5$l, [
|
|
1264
1264
|
vue.createElementVNode("div", _hoisted_6$i, vue.toDisplayString(event.title), 1),
|
|
1265
|
-
vue.createElementVNode("div", _hoisted_7$e, vue.toDisplayString(vue.unref(
|
|
1265
|
+
vue.createElementVNode("div", _hoisted_7$e, vue.toDisplayString(vue.unref(fmtDate)(event.start_time, { fmt: "HH:mm" })), 1)
|
|
1266
1266
|
])
|
|
1267
1267
|
], 12, _hoisted_4$m);
|
|
1268
1268
|
}), 128))
|
|
@@ -1304,7 +1304,7 @@ const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1304
1304
|
};
|
|
1305
1305
|
}
|
|
1306
1306
|
});
|
|
1307
|
-
const WeekView = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-
|
|
1307
|
+
const WeekView = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-c29ed3b2"]]);
|
|
1308
1308
|
const _hoisted_1$T = { class: "calendar" };
|
|
1309
1309
|
const _hoisted_2$E = { class: "flex m_block m_pb-1" };
|
|
1310
1310
|
const _hoisted_3$y = { class: "txt-light my-0" };
|
|
@@ -1372,8 +1372,8 @@ const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1372
1372
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$T, [
|
|
1373
1373
|
vue.createElementVNode("div", _hoisted_2$E, [
|
|
1374
1374
|
vue.createElementVNode("h3", _hoisted_3$y, [
|
|
1375
|
-
vue.createElementVNode("b", null, vue.toDisplayString(vue.unref(
|
|
1376
|
-
vue.createTextVNode(" " + vue.toDisplayString(vue.unref(
|
|
1375
|
+
vue.createElementVNode("b", null, vue.toDisplayString(vue.unref(fmtDate)(currentDate.value, { fmt: "MMMM" })), 1),
|
|
1376
|
+
vue.createTextVNode(" " + vue.toDisplayString(vue.unref(fmtDate)(currentDate.value, { fmt: "YYYY" })), 1)
|
|
1377
1377
|
]),
|
|
1378
1378
|
vue.createElementVNode("div", _hoisted_4$l, [
|
|
1379
1379
|
vue.createVNode(vue.unref(_sfc_main$W), {
|
|
@@ -1433,7 +1433,7 @@ const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1433
1433
|
};
|
|
1434
1434
|
}
|
|
1435
1435
|
});
|
|
1436
|
-
const Index$1 = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["__scopeId", "data-v-
|
|
1436
|
+
const Index$1 = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["__scopeId", "data-v-98cddf40"]]);
|
|
1437
1437
|
const _hoisted_1$S = {
|
|
1438
1438
|
key: 0,
|
|
1439
1439
|
class: "card_label"
|
|
@@ -15127,7 +15127,7 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
|
15127
15127
|
function useFormatting() {
|
|
15128
15128
|
const formatDisplayDate2 = (date2) => {
|
|
15129
15129
|
if (!date2) return "";
|
|
15130
|
-
return
|
|
15130
|
+
return fmtDate(date2, { fmt: props2.enableTime ? "DD.MM.YY HH:mm" : "DD.MM.YY" });
|
|
15131
15131
|
};
|
|
15132
15132
|
const parseUserInput2 = (input) => {
|
|
15133
15133
|
const date2 = new Date(input);
|
|
@@ -15275,7 +15275,7 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
|
15275
15275
|
};
|
|
15276
15276
|
}
|
|
15277
15277
|
});
|
|
15278
|
-
const DateInput = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-
|
|
15278
|
+
const DateInput = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-a0f799e6"]]);
|
|
15279
15279
|
const _hoisted_1$D = { class: "bagel-input" };
|
|
15280
15280
|
const _hoisted_2$r = {
|
|
15281
15281
|
key: 0,
|
|
@@ -36414,12 +36414,13 @@ function getDatePartsMap(date2, locale2, timeZone) {
|
|
|
36414
36414
|
const _datePartsMapNow = getDatePartsMap(/* @__PURE__ */ new Date(), getBrowserNavigatorLocale());
|
|
36415
36415
|
const _orderedDateTokens = Object.keys(_datePartsMapNow).sort((a2, b2) => b2.length - a2.length);
|
|
36416
36416
|
const _tokenRegExPattern = new RegExp(_orderedDateTokens.map((token) => token).join("|"), "g");
|
|
36417
|
-
|
|
36417
|
+
function formatDate(date2, opts = {}) {
|
|
36418
|
+
let { fmt: format2, locale: locale2, tz: timeZone } = opts;
|
|
36418
36419
|
if (!date2) return "";
|
|
36419
36420
|
format2 = format2 || "DD.MM.YY";
|
|
36420
36421
|
locale2 = locale2 || getBrowserNavigatorLocale();
|
|
36421
36422
|
try {
|
|
36422
|
-
const d2 = typeof date2 === "string" ? new Date(date2) : date2;
|
|
36423
|
+
const d2 = typeof date2 === "string" || typeof date2 === "number" ? new Date(date2) : date2;
|
|
36423
36424
|
if (Number.isNaN(d2.getTime())) {
|
|
36424
36425
|
console.warn("Invalid date provided to formatDate:", date2);
|
|
36425
36426
|
return "";
|
|
@@ -36463,11 +36464,8 @@ const formatDate = (date2, format2, locale2, timeZone) => {
|
|
|
36463
36464
|
console.warn(`Error formatting date: ${date2} with format: ${format2}`, error);
|
|
36464
36465
|
return "";
|
|
36465
36466
|
}
|
|
36466
|
-
};
|
|
36467
|
-
function fmtDate(opts) {
|
|
36468
|
-
const { date: date2, format: format2, locale: locale2, timeZone } = opts;
|
|
36469
|
-
return formatDate(date2, format2, locale2, timeZone);
|
|
36470
36467
|
}
|
|
36468
|
+
const fmtDate = formatDate;
|
|
36471
36469
|
const IMAGE_FORMATS = ["jpeg", "png", "webp", "avif", "apng", "gif", "avifs", "svg", "bmp", "jpg", "heic", "heif", "ico", "cur", "tif", "tiff"];
|
|
36472
36470
|
const IMAGE_FORMATS_REGEXP = new RegExp(`(${IMAGE_FORMATS.join("|")})$`, "i");
|
|
36473
36471
|
const VIDEO_FORMATS = ["mp4", "webm", "ogg", "mov", "avi", "flv", "wmv", "mkv", "ts", "m3u8"];
|