@bagelink/vue 1.2.39 → 1.2.41

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.
Files changed (45) hide show
  1. package/dist/components/calendar/CalendarPopover.vue.d.ts +179 -0
  2. package/dist/components/calendar/CalendarPopover.vue.d.ts.map +1 -0
  3. package/dist/components/calendar/CalendarTypes.d.ts +15 -0
  4. package/dist/components/calendar/CalendarTypes.d.ts.map +1 -1
  5. package/dist/components/calendar/Index.vue.d.ts +20 -12
  6. package/dist/components/calendar/Index.vue.d.ts.map +1 -1
  7. package/dist/components/calendar/views/AgendaView.vue.d.ts +8 -0
  8. package/dist/components/calendar/views/AgendaView.vue.d.ts.map +1 -1
  9. package/dist/components/calendar/views/CalendarPopover.vue.d.ts +175 -0
  10. package/dist/components/calendar/views/CalendarPopover.vue.d.ts.map +1 -0
  11. package/dist/components/calendar/views/DayView.vue.d.ts +10 -32
  12. package/dist/components/calendar/views/DayView.vue.d.ts.map +1 -1
  13. package/dist/components/calendar/views/MonthView.vue.d.ts +10 -170
  14. package/dist/components/calendar/views/MonthView.vue.d.ts.map +1 -1
  15. package/dist/components/calendar/views/WeekView.vue.d.ts +12 -168
  16. package/dist/components/calendar/views/WeekView.vue.d.ts.map +1 -1
  17. package/dist/components/form/inputs/DateInput.vue.d.ts.map +1 -1
  18. package/dist/components/form/inputs/DatePicker.vue.d.ts.map +1 -1
  19. package/dist/composables/useDevice.d.ts +3 -0
  20. package/dist/composables/useDevice.d.ts.map +1 -1
  21. package/dist/index.cjs +426 -280
  22. package/dist/index.mjs +426 -280
  23. package/dist/style.css +210 -167
  24. package/dist/types/BagelForm.d.ts +14 -11
  25. package/dist/types/BagelForm.d.ts.map +1 -1
  26. package/dist/utils/BagelFormUtils.d.ts +10 -10
  27. package/dist/utils/BagelFormUtils.d.ts.map +1 -1
  28. package/dist/utils/calendar/dateUtils.d.ts +7 -7
  29. package/package.json +1 -1
  30. package/src/components/calendar/CalendarPopover.vue +102 -0
  31. package/src/components/calendar/CalendarTypes.ts +14 -0
  32. package/src/components/calendar/Index.vue +75 -34
  33. package/src/components/calendar/views/AgendaView.vue +26 -2
  34. package/src/components/calendar/views/DayView.vue +83 -104
  35. package/src/components/calendar/views/MonthView.vue +21 -49
  36. package/src/components/calendar/views/WeekView.vue +227 -134
  37. package/src/components/form/inputs/DateInput.vue +3 -1
  38. package/src/components/form/inputs/DatePicker.vue +7 -0
  39. package/src/composables/useDevice.ts +13 -2
  40. package/src/styles/layout.css +14 -0
  41. package/src/styles/mobilLayout.css +12 -0
  42. package/src/types/BagelForm.ts +30 -53
  43. package/src/utils/BagelFormUtils.ts +11 -10
  44. package/src/utils/calendar/dateUtils.ts +22 -22
  45. package/src/components/calendar/utils.ts +0 -70
@@ -0,0 +1,179 @@
1
+ import { CalendarEvent } from './CalendarTypes';
2
+ type __VLS_Props = {
3
+ event?: CalendarEvent;
4
+ targetElement?: HTMLElement;
5
+ position?: {
6
+ top: number;
7
+ left: number;
8
+ };
9
+ show: boolean;
10
+ hasEventContentSlot: boolean;
11
+ };
12
+ declare function __VLS_template(): {
13
+ attrs: Partial<{}>;
14
+ slots: {
15
+ eventContent?(_: {
16
+ event: CalendarEvent;
17
+ }): any;
18
+ };
19
+ refs: {
20
+ popoverRef: ({
21
+ $: import('vue').ComponentInternalInstance;
22
+ $data: {};
23
+ $props: {
24
+ readonly label?: string | undefined;
25
+ readonly thin?: boolean | undefined;
26
+ readonly outline?: boolean | undefined;
27
+ readonly h100?: boolean | undefined;
28
+ readonly to?: string | undefined;
29
+ readonly overflowX?: boolean | undefined;
30
+ readonly overflowY?: boolean | undefined;
31
+ readonly bg?: "gray" | "light" | "dark" | "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "white" | "transparent" | undefined;
32
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
33
+ $attrs: {
34
+ [x: string]: unknown;
35
+ };
36
+ $refs: {
37
+ [x: string]: unknown;
38
+ };
39
+ $slots: Readonly<{
40
+ [name: string]: import('vue').Slot<any> | undefined;
41
+ }>;
42
+ $root: import('vue').ComponentPublicInstance | null;
43
+ $parent: import('vue').ComponentPublicInstance | null;
44
+ $host: Element | null;
45
+ $emit: (event: string, ...args: any[]) => void;
46
+ $el: any;
47
+ $options: import('vue').ComponentOptionsBase<Readonly<{
48
+ label?: string;
49
+ thin?: boolean;
50
+ outline?: boolean;
51
+ h100?: boolean;
52
+ to?: string;
53
+ overflowX?: boolean;
54
+ overflowY?: boolean;
55
+ bg?: "gray" | "light" | "dark" | "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "white" | "transparent";
56
+ }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
57
+ beforeCreate?: (() => void) | (() => void)[];
58
+ created?: (() => void) | (() => void)[];
59
+ beforeMount?: (() => void) | (() => void)[];
60
+ mounted?: (() => void) | (() => void)[];
61
+ beforeUpdate?: (() => void) | (() => void)[];
62
+ updated?: (() => void) | (() => void)[];
63
+ activated?: (() => void) | (() => void)[];
64
+ deactivated?: (() => void) | (() => void)[];
65
+ beforeDestroy?: (() => void) | (() => void)[];
66
+ beforeUnmount?: (() => void) | (() => void)[];
67
+ destroyed?: (() => void) | (() => void)[];
68
+ unmounted?: (() => void) | (() => void)[];
69
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
70
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
71
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
72
+ };
73
+ $forceUpdate: () => void;
74
+ $nextTick: typeof import('vue').nextTick;
75
+ $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;
76
+ } & Readonly<{}> & Omit<Readonly<{
77
+ label?: string;
78
+ thin?: boolean;
79
+ outline?: boolean;
80
+ h100?: boolean;
81
+ to?: string;
82
+ overflowX?: boolean;
83
+ overflowY?: boolean;
84
+ bg?: "gray" | "light" | "dark" | "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "white" | "transparent";
85
+ }> & Readonly<{}>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
86
+ $slots: {
87
+ default?(_: {}): any;
88
+ };
89
+ }) | null;
90
+ };
91
+ rootEl: any;
92
+ };
93
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
94
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
95
+ close: () => any;
96
+ eventClick: (event: CalendarEvent) => any;
97
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
98
+ onClose?: (() => any) | undefined;
99
+ onEventClick?: ((event: CalendarEvent) => any) | undefined;
100
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
101
+ popoverRef: ({
102
+ $: import('vue').ComponentInternalInstance;
103
+ $data: {};
104
+ $props: {
105
+ readonly label?: string | undefined;
106
+ readonly thin?: boolean | undefined;
107
+ readonly outline?: boolean | undefined;
108
+ readonly h100?: boolean | undefined;
109
+ readonly to?: string | undefined;
110
+ readonly overflowX?: boolean | undefined;
111
+ readonly overflowY?: boolean | undefined;
112
+ readonly bg?: "gray" | "light" | "dark" | "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "white" | "transparent" | undefined;
113
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
114
+ $attrs: {
115
+ [x: string]: unknown;
116
+ };
117
+ $refs: {
118
+ [x: string]: unknown;
119
+ };
120
+ $slots: Readonly<{
121
+ [name: string]: import('vue').Slot<any> | undefined;
122
+ }>;
123
+ $root: import('vue').ComponentPublicInstance | null;
124
+ $parent: import('vue').ComponentPublicInstance | null;
125
+ $host: Element | null;
126
+ $emit: (event: string, ...args: any[]) => void;
127
+ $el: any;
128
+ $options: import('vue').ComponentOptionsBase<Readonly<{
129
+ label?: string;
130
+ thin?: boolean;
131
+ outline?: boolean;
132
+ h100?: boolean;
133
+ to?: string;
134
+ overflowX?: boolean;
135
+ overflowY?: boolean;
136
+ bg?: "gray" | "light" | "dark" | "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "white" | "transparent";
137
+ }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
138
+ beforeCreate?: (() => void) | (() => void)[];
139
+ created?: (() => void) | (() => void)[];
140
+ beforeMount?: (() => void) | (() => void)[];
141
+ mounted?: (() => void) | (() => void)[];
142
+ beforeUpdate?: (() => void) | (() => void)[];
143
+ updated?: (() => void) | (() => void)[];
144
+ activated?: (() => void) | (() => void)[];
145
+ deactivated?: (() => void) | (() => void)[];
146
+ beforeDestroy?: (() => void) | (() => void)[];
147
+ beforeUnmount?: (() => void) | (() => void)[];
148
+ destroyed?: (() => void) | (() => void)[];
149
+ unmounted?: (() => void) | (() => void)[];
150
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
151
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
152
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
153
+ };
154
+ $forceUpdate: () => void;
155
+ $nextTick: typeof import('vue').nextTick;
156
+ $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;
157
+ } & Readonly<{}> & Omit<Readonly<{
158
+ label?: string;
159
+ thin?: boolean;
160
+ outline?: boolean;
161
+ h100?: boolean;
162
+ to?: string;
163
+ overflowX?: boolean;
164
+ overflowY?: boolean;
165
+ bg?: "gray" | "light" | "dark" | "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "white" | "transparent";
166
+ }> & Readonly<{}>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
167
+ $slots: {
168
+ default?(_: {}): any;
169
+ };
170
+ }) | null;
171
+ }, any>;
172
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
173
+ export default _default;
174
+ type __VLS_WithTemplateSlots<T, S> = T & {
175
+ new (): {
176
+ $slots: S;
177
+ };
178
+ };
179
+ //# sourceMappingURL=CalendarPopover.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CalendarPopover.vue.d.ts","sourceRoot":"","sources":["../../../src/components/calendar/CalendarPopover.vue"],"names":[],"mappings":"AAwGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAIpD,KAAK,WAAW,GAAG;IAClB,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,aAAa,CAAC,EAAE,WAAW,CAAA;IAC3B,QAAQ,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;IACxC,IAAI,EAAE,OAAO,CAAA;IACb,mBAAmB,EAAE,OAAO,CAAA;CAC5B,CAAC;AAqDF,iBAAS,cAAc;WAyDT,OAAO,IAA6B;;;;YAXhB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAqD6ljB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;EArCvvjB;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAuB6mjB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;OAftvjB,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"}
@@ -10,4 +10,19 @@ export interface CalendarEvent {
10
10
  }
11
11
  export type CalendarView = 'Week' | 'Month' | 'Day' | 'Agenda';
12
12
  export type WeekStart = 'Sunday' | 'Monday';
13
+ export interface CalendarProps {
14
+ events?: CalendarEvent[];
15
+ startDate?: Date;
16
+ view?: CalendarView;
17
+ weekStart?: WeekStart;
18
+ }
19
+ export interface CalendarViewState {
20
+ currentView?: CalendarView;
21
+ weekStart?: WeekStart;
22
+ visibleDateRange?: {
23
+ start: Date;
24
+ end: Date;
25
+ };
26
+ currentDate?: Date;
27
+ }
13
28
  //# sourceMappingURL=CalendarTypes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CalendarTypes.d.ts","sourceRoot":"","sources":["../../../src/components/calendar/CalendarTypes.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,IAAI,CAAA;IAChB,QAAQ,EAAE,IAAI,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;CAChB;AACD,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAA;AAE9D,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAA"}
1
+ {"version":3,"file":"CalendarTypes.d.ts","sourceRoot":"","sources":["../../../src/components/calendar/CalendarTypes.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,IAAI,CAAA;IAChB,QAAQ,EAAE,IAAI,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;CAChB;AACD,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAA;AAE9D,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAA;AAE3C,MAAM,WAAW,aAAa;IAC7B,MAAM,CAAC,EAAE,aAAa,EAAE,CAAA;IACxB,SAAS,CAAC,EAAE,IAAI,CAAA;IAChB,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,SAAS,CAAC,EAAE,SAAS,CAAA;CACrB;AAED,MAAM,WAAW,iBAAiB;IACjC,WAAW,CAAC,EAAE,YAAY,CAAA;IAC1B,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,gBAAgB,CAAC,EAAE;QAAE,KAAK,EAAE,IAAI,CAAC;QAAC,GAAG,EAAE,IAAI,CAAA;KAAE,CAAA;IAC7C,WAAW,CAAC,EAAE,IAAI,CAAA;CAClB"}
@@ -1,16 +1,18 @@
1
- import { CalendarEvent, CalendarView, WeekStart } from './CalendarTypes';
2
- interface CalendarProps {
3
- events?: CalendarEvent[];
4
- startDate?: Date;
5
- view?: CalendarView;
6
- weekStart?: WeekStart;
7
- }
1
+ import { CalendarEvent, CalendarProps, CalendarView, CalendarViewState } from './CalendarTypes';
2
+ declare function openPopover(event: CalendarEvent, position?: {
3
+ top: number;
4
+ left: number;
5
+ }): void;
6
+ declare function closePopover(): void;
8
7
  declare function __VLS_template(): {
9
8
  attrs: Partial<{}>;
10
9
  slots: {
11
10
  eventContent?(_: {
12
11
  event: any;
13
12
  }): any;
13
+ eventContent?(_: {
14
+ event: CalendarEvent;
15
+ }): any;
14
16
  };
15
17
  refs: {};
16
18
  rootEl: HTMLDivElement;
@@ -21,31 +23,37 @@ declare const __VLS_component: import('vue').DefineComponent<CalendarProps, {
21
23
  start: Date;
22
24
  end: Date;
23
25
  }>;
26
+ currentView: import('vue').Ref<CalendarView, CalendarView>;
27
+ currentDate: import('vue').Ref<Date, Date>;
28
+ openPopover: typeof openPopover;
29
+ closePopover: typeof closePopover;
24
30
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
25
31
  eventClick: (event: CalendarEvent) => any;
26
- dateChange: (date: Date) => any;
32
+ dateChange: (changeEvent: CalendarViewState) => any;
27
33
  eventCreate: (event: {
28
34
  start_time: Date;
29
35
  end_time: Date;
30
36
  }) => any;
31
37
  eventUpdate: (event: CalendarEvent) => any;
32
38
  eventDelete: (eventId: string) => any;
33
- viewChange: (view: CalendarView) => any;
39
+ viewChange: (changeEvent: CalendarViewState) => any;
40
+ ready: (changeEvent: CalendarViewState) => any;
34
41
  }, string, import('vue').PublicProps, Readonly<CalendarProps> & Readonly<{
35
42
  onEventClick?: ((event: CalendarEvent) => any) | undefined;
36
- onDateChange?: ((date: Date) => any) | undefined;
43
+ onDateChange?: ((changeEvent: CalendarViewState) => any) | undefined;
37
44
  onEventCreate?: ((event: {
38
45
  start_time: Date;
39
46
  end_time: Date;
40
47
  }) => any) | undefined;
41
48
  onEventUpdate?: ((event: CalendarEvent) => any) | undefined;
42
49
  onEventDelete?: ((eventId: string) => any) | undefined;
43
- onViewChange?: ((view: CalendarView) => any) | undefined;
50
+ onViewChange?: ((changeEvent: CalendarViewState) => any) | undefined;
51
+ onReady?: ((changeEvent: CalendarViewState) => any) | undefined;
44
52
  }>, {
45
53
  view: CalendarView;
46
54
  events: CalendarEvent[];
47
55
  startDate: Date;
48
- weekStart: WeekStart;
56
+ weekStart: import('./CalendarTypes').WeekStart;
49
57
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
50
58
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
51
59
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"Index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/calendar/Index.vue"],"names":[],"mappings":"AA4JA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAQ7E,UAAU,aAAa;IACtB,MAAM,CAAC,EAAE,aAAa,EAAE,CAAA;IACxB,SAAS,CAAC,EAAE,IAAI,CAAA;IAChB,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,SAAS,CAAC,EAAE,SAAS,CAAA;CACrB;AA2FD,iBAAS,cAAc;WAkMT,OAAO,IAA6B;;;;YAVf,GAAG;;;;EAerC;AAwBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;oBA/SoB,IAAI;kBAAY,IAAI;;;;;;;;;oBAApB,IAAI;kBAAY,IAAI;;;;;;UAdrD,YAAY;YAFV,aAAa,EAAE;eACZ,IAAI;eAEJ,SAAS;wFAsUpB,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"}
1
+ {"version":3,"file":"Index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/calendar/Index.vue"],"names":[],"mappings":"AAqMA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAmGpG,iBAAS,WAAW,CAAC,KAAK,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,QAIlF;AAED,iBAAS,YAAY,SAIpB;AA2BD,iBAAS,cAAc;WA2OT,OAAO,IAA6B;;;;YAXf,GAAG;;;YACH,GAAG;;;;EAerC;AA8BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;oBApYoB,IAAI;kBAAY,IAAI;;;;;;;;;;oBAApB,IAAI;kBAAY,IAAI;;;;;;;;;;;wFA8Y3D,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"}
@@ -6,9 +6,17 @@ type __VLS_Props = {
6
6
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
7
7
  eventClick: (event: CalendarEvent) => any;
8
8
  dateChange: (date: Date) => any;
9
+ openPopover: (event: CalendarEvent, position?: {
10
+ top: number;
11
+ left: number;
12
+ } | undefined) => any;
9
13
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
10
14
  onEventClick?: ((event: CalendarEvent) => any) | undefined;
11
15
  onDateChange?: ((date: Date) => any) | undefined;
16
+ onOpenPopover?: ((event: CalendarEvent, position?: {
17
+ top: number;
18
+ left: number;
19
+ } | undefined) => any) | undefined;
12
20
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
13
21
  containerRef: HTMLDivElement;
14
22
  }, HTMLDivElement>;
@@ -1 +1 @@
1
- {"version":3,"file":"AgendaView.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/calendar/views/AgendaView.vue"],"names":[],"mappings":"AAyQA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAUrD,KAAK,WAAW,GAAG;IAClB,MAAM,EAAE,aAAa,EAAE,CAAA;IACvB,SAAS,EAAE,IAAI,CAAA;CACf,CAAC;;;;;;;;;;AAoNF,wBASG"}
1
+ {"version":3,"file":"AgendaView.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/calendar/views/AgendaView.vue"],"names":[],"mappings":"AAkSA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAUrD,KAAK,WAAW,GAAG;IAClB,MAAM,EAAE,aAAa,EAAE,CAAA;IACvB,SAAS,EAAE,IAAI,CAAA;CACf,CAAC;;;;;aAM0D,MAAM;cAAQ,MAAM;;;;;;aAApB,MAAM;cAAQ,MAAM;;;;;AAqOhF,wBASG"}
@@ -0,0 +1,175 @@
1
+ import { CalendarEvent } from '../CalendarTypes';
2
+ type __VLS_Props = {
3
+ event?: CalendarEvent;
4
+ targetElement?: HTMLElement;
5
+ show: boolean;
6
+ hasEventContentSlot: boolean;
7
+ };
8
+ declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
10
+ slots: {
11
+ eventContent?(_: {
12
+ event: CalendarEvent;
13
+ }): any;
14
+ };
15
+ refs: {
16
+ popoverRef: ({
17
+ $: import('vue').ComponentInternalInstance;
18
+ $data: {};
19
+ $props: {
20
+ readonly label?: string | undefined;
21
+ readonly thin?: boolean | undefined;
22
+ readonly outline?: boolean | undefined;
23
+ readonly h100?: boolean | undefined;
24
+ readonly to?: string | undefined;
25
+ readonly overflowX?: boolean | undefined;
26
+ readonly overflowY?: boolean | undefined;
27
+ readonly bg?: "gray" | "light" | "dark" | "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "white" | "transparent" | undefined;
28
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
29
+ $attrs: {
30
+ [x: string]: unknown;
31
+ };
32
+ $refs: {
33
+ [x: string]: unknown;
34
+ };
35
+ $slots: Readonly<{
36
+ [name: string]: import('vue').Slot<any> | undefined;
37
+ }>;
38
+ $root: import('vue').ComponentPublicInstance | null;
39
+ $parent: import('vue').ComponentPublicInstance | null;
40
+ $host: Element | null;
41
+ $emit: (event: string, ...args: any[]) => void;
42
+ $el: any;
43
+ $options: import('vue').ComponentOptionsBase<Readonly<{
44
+ label?: string;
45
+ thin?: boolean;
46
+ outline?: boolean;
47
+ h100?: boolean;
48
+ to?: string;
49
+ overflowX?: boolean;
50
+ overflowY?: boolean;
51
+ bg?: "gray" | "light" | "dark" | "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "white" | "transparent";
52
+ }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
53
+ beforeCreate?: (() => void) | (() => void)[];
54
+ created?: (() => void) | (() => void)[];
55
+ beforeMount?: (() => void) | (() => void)[];
56
+ mounted?: (() => void) | (() => void)[];
57
+ beforeUpdate?: (() => void) | (() => void)[];
58
+ updated?: (() => void) | (() => void)[];
59
+ activated?: (() => void) | (() => void)[];
60
+ deactivated?: (() => void) | (() => void)[];
61
+ beforeDestroy?: (() => void) | (() => void)[];
62
+ beforeUnmount?: (() => void) | (() => void)[];
63
+ destroyed?: (() => void) | (() => void)[];
64
+ unmounted?: (() => void) | (() => void)[];
65
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
66
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
67
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
68
+ };
69
+ $forceUpdate: () => void;
70
+ $nextTick: typeof import('vue').nextTick;
71
+ $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;
72
+ } & Readonly<{}> & Omit<Readonly<{
73
+ label?: string;
74
+ thin?: boolean;
75
+ outline?: boolean;
76
+ h100?: boolean;
77
+ to?: string;
78
+ overflowX?: boolean;
79
+ overflowY?: boolean;
80
+ bg?: "gray" | "light" | "dark" | "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "white" | "transparent";
81
+ }> & Readonly<{}>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
82
+ $slots: {
83
+ default?(_: {}): any;
84
+ };
85
+ }) | null;
86
+ };
87
+ rootEl: any;
88
+ };
89
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
90
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
91
+ close: () => any;
92
+ eventClick: (event: CalendarEvent) => any;
93
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
94
+ onClose?: (() => any) | undefined;
95
+ onEventClick?: ((event: CalendarEvent) => any) | undefined;
96
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
97
+ popoverRef: ({
98
+ $: import('vue').ComponentInternalInstance;
99
+ $data: {};
100
+ $props: {
101
+ readonly label?: string | undefined;
102
+ readonly thin?: boolean | undefined;
103
+ readonly outline?: boolean | undefined;
104
+ readonly h100?: boolean | undefined;
105
+ readonly to?: string | undefined;
106
+ readonly overflowX?: boolean | undefined;
107
+ readonly overflowY?: boolean | undefined;
108
+ readonly bg?: "gray" | "light" | "dark" | "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "white" | "transparent" | undefined;
109
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
110
+ $attrs: {
111
+ [x: string]: unknown;
112
+ };
113
+ $refs: {
114
+ [x: string]: unknown;
115
+ };
116
+ $slots: Readonly<{
117
+ [name: string]: import('vue').Slot<any> | undefined;
118
+ }>;
119
+ $root: import('vue').ComponentPublicInstance | null;
120
+ $parent: import('vue').ComponentPublicInstance | null;
121
+ $host: Element | null;
122
+ $emit: (event: string, ...args: any[]) => void;
123
+ $el: any;
124
+ $options: import('vue').ComponentOptionsBase<Readonly<{
125
+ label?: string;
126
+ thin?: boolean;
127
+ outline?: boolean;
128
+ h100?: boolean;
129
+ to?: string;
130
+ overflowX?: boolean;
131
+ overflowY?: boolean;
132
+ bg?: "gray" | "light" | "dark" | "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "white" | "transparent";
133
+ }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
134
+ beforeCreate?: (() => void) | (() => void)[];
135
+ created?: (() => void) | (() => void)[];
136
+ beforeMount?: (() => void) | (() => void)[];
137
+ mounted?: (() => void) | (() => void)[];
138
+ beforeUpdate?: (() => void) | (() => void)[];
139
+ updated?: (() => void) | (() => void)[];
140
+ activated?: (() => void) | (() => void)[];
141
+ deactivated?: (() => void) | (() => void)[];
142
+ beforeDestroy?: (() => void) | (() => void)[];
143
+ beforeUnmount?: (() => void) | (() => void)[];
144
+ destroyed?: (() => void) | (() => void)[];
145
+ unmounted?: (() => void) | (() => void)[];
146
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
147
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
148
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
149
+ };
150
+ $forceUpdate: () => void;
151
+ $nextTick: typeof import('vue').nextTick;
152
+ $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;
153
+ } & Readonly<{}> & Omit<Readonly<{
154
+ label?: string;
155
+ thin?: boolean;
156
+ outline?: boolean;
157
+ h100?: boolean;
158
+ to?: string;
159
+ overflowX?: boolean;
160
+ overflowY?: boolean;
161
+ bg?: "gray" | "light" | "dark" | "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "white" | "transparent";
162
+ }> & Readonly<{}>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
163
+ $slots: {
164
+ default?(_: {}): any;
165
+ };
166
+ }) | null;
167
+ }, any>;
168
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
169
+ export default _default;
170
+ type __VLS_WithTemplateSlots<T, S> = T & {
171
+ new (): {
172
+ $slots: S;
173
+ };
174
+ };
175
+ //# sourceMappingURL=CalendarPopover.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CalendarPopover.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/calendar/views/CalendarPopover.vue"],"names":[],"mappings":"AAAA,OA2FO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAIrD,KAAK,WAAW,GAAG;IAClB,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,aAAa,CAAC,EAAE,WAAW,CAAA;IAC3B,IAAI,EAAE,OAAO,CAAA;IACb,mBAAmB,EAAE,OAAO,CAAA;CAC5B,CAAC;AAyCF,iBAAS,cAAc;WAyDT,OAAO,IAA6B;;;;YAXhB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAqDsnlB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;EArChxlB;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAuBsolB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;OAf/wlB,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,48 +3,26 @@ type __VLS_Props = {
3
3
  events: CalendarEvent[];
4
4
  startDate: Date;
5
5
  };
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: HTMLDivElement;
24
- };
25
- rootEl: HTMLDivElement;
26
- };
27
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
28
- declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
29
7
  eventClick: (event: CalendarEvent) => any;
8
+ openPopover: (event: CalendarEvent, position?: {
9
+ top: number;
10
+ left: number;
11
+ } | undefined) => any;
30
12
  eventCreate: (event: {
31
13
  start_time: Date;
32
14
  end_time: Date;
33
15
  }) => any;
34
16
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
35
17
  onEventClick?: ((event: CalendarEvent) => any) | undefined;
18
+ onOpenPopover?: ((event: CalendarEvent, position?: {
19
+ top: number;
20
+ left: number;
21
+ } | undefined) => any) | undefined;
36
22
  onEventCreate?: ((event: {
37
23
  start_time: Date;
38
24
  end_time: Date;
39
25
  }) => any) | undefined;
40
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
41
- popoverRef: HTMLDivElement;
42
- }, HTMLDivElement>;
43
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
26
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
44
27
  export default _default;
45
- type __VLS_WithTemplateSlots<T, S> = T & {
46
- new (): {
47
- $slots: S;
48
- };
49
- };
50
28
  //# sourceMappingURL=DayView.vue.d.ts.map
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"DayView.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/calendar/views/DayView.vue"],"names":[],"mappings":"AAoWA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAIrD,KAAK,WAAW,GAAG;IAClB,MAAM,EAAE,aAAa,EAAE,CAAA;IACvB,SAAS,EAAE,IAAI,CAAA;CACf,CAAC;;;;aAM0D,MAAM;cAAQ,MAAM;;;oBADvC,IAAI;kBAAY,IAAI;;;;;aACD,MAAM;cAAQ,MAAM;;;oBADvC,IAAI;kBAAY,IAAI;;;AA0U7D,wBAQG"}