@zealicsolutions/web-ui 1.0.60-test.2 → 1.0.60-test.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.
Files changed (32) hide show
  1. package/dist/cjs/index.js +247 -247
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/molecules/Calendar/CalendarMolecule.d.ts +0 -7
  4. package/dist/cjs/molecules/Calendar/ResourceTimelineCalendar.d.ts +95 -2
  5. package/dist/cjs/molecules/Calendar/SimpleCalendar.d.ts +98 -2
  6. package/dist/cjs/molecules/Calendar/YearViewCalendar.d.ts +84 -2
  7. package/dist/cjs/molecules/Calendar/hooks/useCalendarCore.d.ts +14 -0
  8. package/dist/cjs/molecules/Calendar/hooks/useCalendarStyling.d.ts +229 -0
  9. package/dist/esm/molecules/Calendar/CalendarMolecule.d.ts +0 -7
  10. package/dist/esm/molecules/Calendar/ResourceTimelineCalendar.d.ts +95 -2
  11. package/dist/esm/molecules/Calendar/ResourceTimelineCalendar.js +1 -1
  12. package/dist/esm/molecules/Calendar/ResourceTimelineCalendar.js.map +1 -1
  13. package/dist/esm/molecules/Calendar/SimpleCalendar.d.ts +98 -2
  14. package/dist/esm/molecules/Calendar/SimpleCalendar.js +1 -1
  15. package/dist/esm/molecules/Calendar/SimpleCalendar.js.map +1 -1
  16. package/dist/esm/molecules/Calendar/YearViewCalendar.d.ts +84 -2
  17. package/dist/esm/molecules/Calendar/YearViewCalendar.js +1 -1
  18. package/dist/esm/molecules/Calendar/YearViewCalendar.js.map +1 -1
  19. package/dist/esm/molecules/Calendar/hooks/useCalendarCore.d.ts +14 -0
  20. package/dist/esm/molecules/Calendar/hooks/useCalendarCore.js +2 -0
  21. package/dist/esm/molecules/Calendar/hooks/useCalendarCore.js.map +1 -0
  22. package/dist/esm/molecules/Calendar/hooks/useCalendarStyling.d.ts +229 -0
  23. package/dist/esm/molecules/Calendar/hooks/useCalendarStyling.js +2 -0
  24. package/dist/esm/molecules/Calendar/hooks/useCalendarStyling.js.map +1 -0
  25. package/dist/esm/node_modules/@fullcalendar/premium-common/index.js +1 -1
  26. package/dist/esm/node_modules/@fullcalendar/premium-common/index.js.map +1 -1
  27. package/dist/esm/node_modules/@fullcalendar/timeline/internal.js +1 -1
  28. package/dist/esm/node_modules/@fullcalendar/timeline/internal.js.map +1 -1
  29. package/dist/index.d.ts +0 -7
  30. package/package.json +1 -1
  31. package/dist/esm/molecules/Calendar/CalendarMolecule.js +0 -2
  32. package/dist/esm/molecules/Calendar/CalendarMolecule.js.map +0 -1
@@ -1,3 +1,96 @@
1
+ import { ConfigurationItemInfo } from 'containers';
1
2
  import React from 'react';
2
- import { CalendarMoleculeProps } from './CalendarMolecule';
3
- export declare const ResourceTimelineCalendarMolecule: React.FC<Omit<CalendarMoleculeProps, 'initialView' | 'enableDayView' | 'enableWeekView' | 'enableMonthView' | 'enableDayListView' | 'enableWeekListView' | 'enableGridView' | 'enableTimelineView' | 'enableResourceView' | 'enableYearView'>>;
3
+ export interface ResourceTimelineCalendarProps {
4
+ events?: any[];
5
+ resources?: any[];
6
+ initialView?: 'resourceTimeGridDay' | 'resourceTimeGridWeek' | 'resourceTimelineDay' | 'resourceTimelineWeek';
7
+ enableTimelineView?: boolean;
8
+ showPrevButton?: boolean;
9
+ showNextButton?: boolean;
10
+ showTodayButton?: boolean;
11
+ showViewSwitcher?: boolean;
12
+ editable?: boolean;
13
+ droppable?: boolean;
14
+ selectable?: boolean;
15
+ slotDuration?: string;
16
+ snapDuration?: string;
17
+ businessHours?: any;
18
+ eventOverlap?: boolean;
19
+ showGridLines?: boolean;
20
+ width?: string | number;
21
+ height?: string | number;
22
+ marginLeft?: string;
23
+ marginTop?: string;
24
+ marginRight?: string;
25
+ marginBottom?: string;
26
+ paddingLeft?: string;
27
+ paddingTop?: string;
28
+ paddingRight?: string;
29
+ paddingBottom?: string;
30
+ buttonFontSize?: string | number;
31
+ buttonPaddingY?: string;
32
+ buttonPaddingX?: string;
33
+ buttonColor?: string;
34
+ buttonTextColor?: string;
35
+ buttonBorderColor?: string;
36
+ buttonFontWeight?: string | number;
37
+ buttonElevation?: number;
38
+ buttonHeight?: string | number;
39
+ buttonMinWidth?: string | number;
40
+ buttonMarginY?: string;
41
+ buttonMarginX?: string;
42
+ buttonBorderRadius?: string;
43
+ buttonHoverColor?: string;
44
+ buttonHoverTextColor?: string;
45
+ buttonHoverBorderColor?: string;
46
+ headerBackgroundColor?: string;
47
+ headerBorderColor?: string;
48
+ headerPadding?: string;
49
+ headerHeight?: string | number;
50
+ headerFontSize?: string | number;
51
+ headerFontWeight?: string | number;
52
+ headerTextColor?: string;
53
+ dayHeaderColor?: string;
54
+ dayHeaderFontWeight?: string | number;
55
+ eventBackgroundColor?: string;
56
+ eventBorderColor?: string;
57
+ eventTextColor?: string;
58
+ eventBorderRadius?: string;
59
+ eventOpacity?: number;
60
+ eventElevation?: number;
61
+ eventPadding?: string;
62
+ eventFontSize?: string | number;
63
+ eventFontFamily?: string;
64
+ eventFontWeight?: string | number;
65
+ timeGridSlotHeight?: string | number;
66
+ timeGridSlotBorderColor?: string;
67
+ timeGridNowIndicatorColor?: string;
68
+ timeGridLabelFontSize?: string | number;
69
+ timeGridLabelColor?: string;
70
+ nowIndicatorColor?: string;
71
+ allDaySlot?: boolean;
72
+ allDayBackgroundColor?: string;
73
+ allDayTextColor?: string;
74
+ resourceAreaWidth?: string | number;
75
+ resourceBackgroundColor?: string;
76
+ resourceTextColor?: string;
77
+ resourceBorderColor?: string;
78
+ resourceFontSize?: string | number;
79
+ resourcePadding?: string;
80
+ resourceGroupCollapsible?: boolean;
81
+ borderStyle?: 'none' | 'solid' | 'dashed' | 'dotted' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset';
82
+ borderWidth?: string;
83
+ borderColor?: string;
84
+ borderRadius?: string;
85
+ backgroundColor?: string;
86
+ fontFamily?: string;
87
+ elevation?: number;
88
+ headerLetterSpacing?: 'normal' | 'wide' | 'wider' | 'tight';
89
+ textShadowStyle?: 'none' | 'subtle' | 'medium' | 'strong';
90
+ enableAnimations?: boolean;
91
+ animationSpeed?: string;
92
+ hoverEffect?: 'none' | 'lift' | 'scale' | 'glow' | 'bounce';
93
+ onEventAdd?: (e: any) => void;
94
+ configurationItemInfo?: ConfigurationItemInfo;
95
+ }
96
+ export declare const ResourceTimelineCalendarMolecule: React.FC<ResourceTimelineCalendarProps>;
@@ -1,2 +1,2 @@
1
- import{__rest as e,__assign as i}from"../../node_modules/tslib/tslib.es6.js";import{jsx as o}from"../../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js";import{CalendarMolecule as r}from"./CalendarMolecule.js";var l=[{id:"roomA",title:"Room A"},{id:"roomB",title:"Room B"}],t=function(t){var n=t.resources,s=e(t,["resources"]);return o(r,i({},s,{resources:null!=n?n:l,initialView:"resourceTimeGridWeek",enableDayView:!1,enableWeekView:!1,enableMonthView:!1,enableDayListView:!1,enableWeekListView:!1,enableGridView:!1,enableTimelineView:!1,enableResourceView:!0,enableYearView:!1,editable:!0,droppable:!0,selectable:!0}))};export{t as ResourceTimelineCalendarMolecule};
1
+ import{__rest as e,__assign as o}from"../../node_modules/tslib/tslib.es6.js";import{jsxs as r,jsx as i}from"../../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js";import t from"../../node_modules/@fullcalendar/react/dist/index.js";import{useState as n,useCallback as s}from"react";import{useCalendarCore as l}from"./hooks/useCalendarCore.js";import{useCalendarStyling as a}from"./hooks/useCalendarStyling.js";import u from"../../node_modules/@fullcalendar/interaction/index.js";import d from"../../node_modules/@fullcalendar/resource/index.js";import c from"../../node_modules/@fullcalendar/resource-timegrid/index.js";import m from"../../node_modules/@fullcalendar/resource-timeline/index.js";import p from"../../node_modules/@mui/material/Box/Box.js";var v=[{id:"roomA",title:"Room A"},{id:"roomB",title:"Room B"}],h=function(h){var f=h.events,b=void 0===f?[]:f,w=h.resources,x=void 0===w?v:w,j=h.initialView,g=void 0===j?"resourceTimeGridWeek":j,C=h.enableTimelineView,T=void 0!==C&&C,y=h.showPrevButton,A=void 0===y||y,D=h.showNextButton,S=void 0===D||D,B=h.showTodayButton,V=void 0===B||B,_=h.showViewSwitcher,k=void 0===_||_,G=h.editable,R=void 0===G||G,W=h.droppable,E=void 0===W||W,H=h.selectable,I=void 0===H||H,N=h.slotDuration,O=void 0===N?"00:15:00":N,L=h.snapDuration,P=void 0===L?"00:05:00":L,U=h.businessHours,K=h.eventOverlap,q=void 0!==K&&K,z=h.height,F=h.resourceGroupCollapsible,J=void 0!==F&&F,M=h.onEventAdd,Q=h.allDaySlot,X=h.configurationItemInfo,Y=e(h,["events","resources","initialView","enableTimelineView","showPrevButton","showNextButton","showTodayButton","showViewSwitcher","editable","droppable","selectable","slotDuration","snapDuration","businessHours","eventOverlap","height","resourceGroupCollapsible","onEventAdd","allDaySlot","configurationItemInfo"]),Z=[u,d,c,m],$=l({initialEvents:b,onEventAdd:M,businessHours:U}),ee=$.eventsState,oe=$.calRef,re=$.allowDrop,ie=$.onReceive,te=a(Y).sx,ne=n(new Set),se=ne[0],le=ne[1],ae=function(e){return T?"resourceTimeline".concat(e.charAt(0).toUpperCase()+e.slice(1)):"resourceTimeGrid".concat(e.charAt(0).toUpperCase()+e.slice(1))},ue=T?g.includes("Timeline")?g:"resourceTimelineWeek":g.includes("TimeGrid")?g:"resourceTimeGridWeek",de=J?{resourceGroupLabelContent:function(e){return r("span",o({style:{cursor:"pointer",userSelect:"none"},onClick:function(){return o=e.groupValue,le((function(e){var r=new Set(e);return r.has(o)?r.delete(o):r.add(o),r}));var o}},{children:[se.has(e.groupValue)?"▶ ":"▼ ",e.text]}))},filterResourcesWithEvents:!0,resources:null==x?void 0:x.filter((function(e){return!se.has(e.group)}))}:{},ce=s((function(){var e=[];A&&e.push("prev"),S&&e.push("next"),V&&e.push("today");var o=[];return k&&(o.push(ae("day")),o.push(ae("week"))),{left:e.join(","),center:"title",right:o.join(",")}}),[T,A,S,V,k]);return i(p,o({sx:te},X,{children:i(t,o({ref:oe,height:z,plugins:Z,themeSystem:"standard",schedulerLicenseKey:"CC-Attribution-NonCommercial-NoDerivatives",initialView:ue,headerToolbar:ce(),editable:R,droppable:E,selectable:I,businessHours:U,eventOverlap:q,eventAllow:re,allDaySlot:Q,slotDuration:O,snapDuration:P,events:ee,resources:x,resourceAreaWidth:Y.resourceAreaWidth,eventReceive:ie},de))}))};export{h as ResourceTimelineCalendarMolecule};
2
2
  //# sourceMappingURL=ResourceTimelineCalendar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ResourceTimelineCalendar.js","sources":["../../../../../src/molecules/Calendar/ResourceTimelineCalendar.tsx"],"sourcesContent":[null],"names":["MOCK_RESOURCES","id","title","ResourceTimelineCalendarMolecule","_a","resources","rest","__rest","_jsx","CalendarMolecule","__assign","initialView","enableDayView","enableWeekView","enableMonthView","enableDayListView","enableWeekListView","enableGridView","enableTimelineView","enableResourceView","enableYearView","editable","droppable","selectable"],"mappings":"gPAIA,IAAMA,EAAiB,CACrB,CAAEC,GAAI,QAASC,MAAO,UACtB,CAAED,GAAI,QAASC,MAAO,WAGXC,EAKT,SAACC,GAAE,IAAAC,EAASD,EAAAC,UAAKC,EAAIC,EAAAH,EAApB,eAA2B,OAC9BI,EAACC,EACKC,EAAA,CAAA,EAAAJ,GACJD,UAAWA,QAAAA,EAAaL,EACxBW,YAAY,uBACZC,eAAe,EACfC,gBAAgB,EAChBC,iBAAiB,EACjBC,mBAAmB,EACnBC,oBAAoB,EACpBC,gBAAgB,EAChBC,oBAAoB,EACpBC,oBAAkB,EAClBC,gBAAgB,EAEhBC,YACAC,WAAS,EACTC,YAAU"}
1
+ {"version":3,"file":"ResourceTimelineCalendar.js","sources":["../../../../../src/molecules/Calendar/ResourceTimelineCalendar.tsx"],"sourcesContent":[null],"names":["MOCK_RESOURCES","id","title","ResourceTimelineCalendarMolecule","_a","_b","events","initialEvents","_c","resources","_d","initialView","_e","enableTimelineView","_f","showPrevButton","_g","showNextButton","_h","showTodayButton","_j","showViewSwitcher","_k","editable","_l","droppable","_m","selectable","_o","slotDuration","_p","snapDuration","businessHours","_q","eventOverlap","height","_r","resourceGroupCollapsible","onEventAdd","allDaySlot","configurationItemInfo","stylingProps","__rest","plugins","interactionPlugin","resourcePlugin","resourceTimeGridPlugin","resourceTimelinePlugin","_s","useCalendarCore","eventsState","calRef","allowDrop","onReceive","sx","useCalendarStyling","_t","useState","Set","collapsedGroups","setCollapsedGroups","getResourceViewType","period","concat","charAt","toUpperCase","slice","normalizedInitialView","includes","resourceOverrides","resourceGroupLabelContent","arg","_jsxs","__assign","style","cursor","userSelect","onClick","groupId","groupValue","s","next","has","add","children","text","filterResourcesWithEvents","filter","r","group","getHeaderToolbarConfig","useCallback","leftItems","push","rightItems","left","join","center","right","_jsx","Box","FullCalendar","ref","themeSystem","schedulerLicenseKey","headerToolbar","eventAllow","resourceAreaWidth","eventReceive"],"mappings":"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"}
@@ -1,3 +1,99 @@
1
+ import { ConfigurationItemInfo } from 'containers';
1
2
  import React from 'react';
2
- import { CalendarMoleculeProps } from './CalendarMolecule';
3
- export declare const SimpleCalendarMolecule: React.FC<Omit<CalendarMoleculeProps, 'initialView' | 'enableYearView' | 'enableResourceView'>>;
3
+ export interface SimpleCalendarProps {
4
+ events?: any[];
5
+ initialView?: 'month' | 'week' | 'day';
6
+ enableDayView?: boolean;
7
+ enableWeekView?: boolean;
8
+ enableMonthView?: boolean;
9
+ enableGridView?: boolean;
10
+ showPrevButton?: boolean;
11
+ showNextButton?: boolean;
12
+ showTodayButton?: boolean;
13
+ showViewSwitcher?: boolean;
14
+ editable?: boolean;
15
+ droppable?: boolean;
16
+ selectable?: boolean;
17
+ slotDuration?: string;
18
+ snapDuration?: string;
19
+ businessHours?: any;
20
+ eventOverlap?: boolean;
21
+ showGridLines?: boolean;
22
+ width?: string | number;
23
+ height?: string | number;
24
+ marginLeft?: string;
25
+ marginTop?: string;
26
+ marginRight?: string;
27
+ marginBottom?: string;
28
+ paddingLeft?: string;
29
+ paddingTop?: string;
30
+ paddingRight?: string;
31
+ paddingBottom?: string;
32
+ buttonFontSize?: string | number;
33
+ buttonPaddingY?: string;
34
+ buttonPaddingX?: string;
35
+ buttonColor?: string;
36
+ buttonTextColor?: string;
37
+ buttonBorderColor?: string;
38
+ buttonFontWeight?: string | number;
39
+ buttonElevation?: number;
40
+ buttonHeight?: string | number;
41
+ buttonMinWidth?: string | number;
42
+ buttonMarginY?: string;
43
+ buttonMarginX?: string;
44
+ buttonBorderRadius?: string;
45
+ buttonHoverColor?: string;
46
+ buttonHoverTextColor?: string;
47
+ buttonHoverBorderColor?: string;
48
+ headerBackgroundColor?: string;
49
+ headerBorderColor?: string;
50
+ headerPadding?: string;
51
+ headerHeight?: string | number;
52
+ headerFontSize?: string | number;
53
+ headerFontWeight?: string | number;
54
+ headerTextColor?: string;
55
+ dayHeaderColor?: string;
56
+ dayHeaderFontWeight?: string | number;
57
+ eventBackgroundColor?: string;
58
+ eventBorderColor?: string;
59
+ eventTextColor?: string;
60
+ eventBorderRadius?: string;
61
+ eventOpacity?: number;
62
+ eventElevation?: number;
63
+ eventPadding?: string;
64
+ eventFontSize?: string | number;
65
+ eventFontFamily?: string;
66
+ eventFontWeight?: string | number;
67
+ cellBackgroundColor?: string;
68
+ cellHoverBackgroundColor?: string;
69
+ cellTodayBackgroundColor?: string;
70
+ cellBorderColor?: string;
71
+ cellTextColor?: string;
72
+ cellFontSize?: string | number;
73
+ cellPadding?: string;
74
+ cellHeight?: string | number;
75
+ timeGridSlotHeight?: string | number;
76
+ timeGridSlotBorderColor?: string;
77
+ timeGridNowIndicatorColor?: string;
78
+ timeGridLabelFontSize?: string | number;
79
+ timeGridLabelColor?: string;
80
+ nowIndicatorColor?: string;
81
+ allDaySlot?: boolean;
82
+ allDayBackgroundColor?: string;
83
+ allDayTextColor?: string;
84
+ borderStyle?: 'none' | 'solid' | 'dashed' | 'dotted' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset';
85
+ borderWidth?: string;
86
+ borderColor?: string;
87
+ borderRadius?: string;
88
+ backgroundColor?: string;
89
+ fontFamily?: string;
90
+ elevation?: number;
91
+ headerLetterSpacing?: 'normal' | 'wide' | 'wider' | 'tight';
92
+ textShadowStyle?: 'none' | 'subtle' | 'medium' | 'strong';
93
+ enableAnimations?: boolean;
94
+ animationSpeed?: string;
95
+ hoverEffect?: 'none' | 'lift' | 'scale' | 'glow' | 'bounce';
96
+ onEventAdd?: (e: any) => void;
97
+ configurationItemInfo?: ConfigurationItemInfo;
98
+ }
99
+ export declare const SimpleCalendarMolecule: React.FC<SimpleCalendarProps>;
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"../../node_modules/tslib/tslib.es6.js";import{jsx as i}from"../../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js";import{CalendarMolecule as n}from"./CalendarMolecule.js";var a=function(a){return i(n,e({},a,{initialView:"dayGridMonth",enableDayView:!0,enableWeekView:!0,enableMonthView:!0,enableDayListView:!1,enableWeekListView:!1,enableGridView:!0,enableTimelineView:!1,enableResourceView:!1,enableYearView:!1,editable:!0,droppable:!0,selectable:!0}))};export{a as SimpleCalendarMolecule};
1
+ import{__rest as e,__assign as o}from"../../node_modules/tslib/tslib.es6.js";import{jsx as i}from"../../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js";import t from"../../node_modules/@fullcalendar/react/dist/index.js";import{useCallback as n}from"react";import{useCalendarCore as r}from"./hooks/useCalendarCore.js";import{useCalendarStyling as a}from"./hooks/useCalendarStyling.js";import d from"../../node_modules/@fullcalendar/daygrid/index.js";import s from"../../node_modules/@fullcalendar/interaction/index.js";import l from"../../node_modules/@fullcalendar/list/index.js";import u from"../../node_modules/@fullcalendar/timegrid/index.js";import m from"../../node_modules/@mui/material/Box/Box.js";var v=function(v){var h=v.events,p=void 0===h?[]:h,w=v.initialView,c=void 0===w?"month":w,f=v.enableDayView,b=void 0===f||f,y=v.enableWeekView,x=void 0===y||y,D=v.enableMonthView,j=void 0===D||D,V=v.enableGridView,k=void 0===V||V,g=v.showPrevButton,G=void 0===g||g,B=v.showNextButton,S=void 0===B||B,_=v.showTodayButton,M=void 0===_||_,C=v.showViewSwitcher,A=void 0===C||C,E=v.editable,H=void 0===E||E,I=v.droppable,N=void 0===I||I,W=v.selectable,O=void 0===W||W,R=v.slotDuration,T=void 0===R?"00:15:00":R,P=v.snapDuration,K=void 0===P?"00:05:00":P,L=v.businessHours,q=v.eventOverlap,z=void 0!==q&&q;v.width;var F=v.height,J=v.allDaySlot,Q=v.onEventAdd,U=v.configurationItemInfo,X=e(v,["events","initialView","enableDayView","enableWeekView","enableMonthView","enableGridView","showPrevButton","showNextButton","showTodayButton","showViewSwitcher","editable","droppable","selectable","slotDuration","snapDuration","businessHours","eventOverlap","width","height","allDaySlot","onEventAdd","configurationItemInfo"]),Y=[s,d,l,u],Z=r({initialEvents:p,onEventAdd:Q,businessHours:L}),$=Z.eventsState,ee=Z.calRef,oe=Z.allowDrop,ie=Z.onReceive,te=a(X).sx,ne=function(e){return k?"day"===e?"timeGridDay":"week"===e?"timeGridWeek":"dayGridMonth":"day"===e?"listDay":"week"===e?"listWeek":"dayGridMonth"},re={month:"dayGridMonth",week:ne("week"),day:ne("day")}[c]||"dayGridMonth",ae=n((function(){var e=[];G&&e.push("prev"),S&&e.push("next"),M&&e.push("today");var o=[];return A&&(j&&o.push("dayGridMonth"),x&&o.push(ne("week")),b&&o.push(ne("day"))),{left:e.join(","),center:"title",right:o.join(",")}}),[b,x,j,k,G,S,M,A]);return i(m,o({sx:te},U,{children:i(t,{ref:ee,height:F,plugins:Y,themeSystem:"standard",schedulerLicenseKey:"CC-Attribution-NonCommercial-NoDerivatives",initialView:re,headerToolbar:ae(),editable:H,droppable:N,selectable:O,businessHours:L,eventOverlap:z,eventAllow:oe,allDaySlot:J,slotDuration:T,snapDuration:K,events:$,eventReceive:ie})}))};export{v as SimpleCalendarMolecule};
2
2
  //# sourceMappingURL=SimpleCalendar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SimpleCalendar.js","sources":["../../../../../src/molecules/Calendar/SimpleCalendar.tsx"],"sourcesContent":[null],"names":["SimpleCalendarMolecule","props","_jsx","CalendarMolecule","__assign","initialView","enableDayView","enableWeekView","enableMonthView","enableDayListView","enableWeekListView","enableGridView","enableTimelineView","enableResourceView","enableYearView","editable","droppable","selectable"],"mappings":"oOAIa,IAAAA,EAET,SAACC,GAAU,OACbC,EAACC,EACKC,EAAA,GAAAH,EACJ,CAAAI,YAAY,eAEZC,eAAa,EACbC,gBAAc,EACdC,iBAAe,EACfC,mBAAmB,EACnBC,oBAAoB,EACpBC,gBAAc,EACdC,oBAAoB,EACpBC,oBAAoB,EACpBC,gBAAgB,EAEhBC,UAAQ,EACRC,WACA,EAAAC,gBAEH"}
1
+ {"version":3,"file":"SimpleCalendar.js","sources":["../../../../../src/molecules/Calendar/SimpleCalendar.tsx"],"sourcesContent":[null],"names":["SimpleCalendarMolecule","_a","_b","events","initialEvents","_c","initialView","_d","enableDayView","_e","enableWeekView","_f","enableMonthView","_g","enableGridView","_h","showPrevButton","_j","showNextButton","_k","showTodayButton","_l","showViewSwitcher","_m","editable","_o","droppable","_p","selectable","_q","slotDuration","_r","snapDuration","businessHours","_s","eventOverlap","width","height","allDaySlot","onEventAdd","configurationItemInfo","stylingProps","__rest","plugins","interactionPlugin","dayGridPlugin","listPlugin","timeGridPlugin","_t","useCalendarCore","eventsState","calRef","allowDrop","onReceive","sx","useCalendarStyling","getViewType","baseView","normalizedInitialView","month","week","day","getHeaderToolbarConfig","useCallback","leftItems","push","rightItems","left","join","center","right","_jsx","Box","FullCalendar","ref","themeSystem","schedulerLicenseKey","headerToolbar","eventAllow","eventReceive"],"mappings":"guBAgKO,IAAMA,EAAwD,SAACC,OAEpEC,EAA0BD,EAAAE,OAAlBC,OAAa,IAAAF,EAAG,GAAEA,EAG1BG,EAAqBJ,EAAAK,YAArBA,OAAW,IAAAD,EAAG,QAAOA,EAGrBE,EAAoBN,EAAAO,cAApBA,cAAoBD,EACpBE,EAAAR,EAAAS,eAAAA,OAAc,IAAAD,GAAOA,EACrBE,EAAsBV,EAAAW,gBAAtBA,OAAe,IAAAD,GAAOA,EAGtBE,EAAqBZ,EAAAa,eAArBA,OAAc,IAAAD,GAAOA,EAGrBE,EAAqBd,EAAAe,eAArBA,OAAc,IAAAD,GAAOA,EACrBE,mBAAAC,OAAiB,IAAAD,GAAIA,EACrBE,oBAAAC,OAAkB,IAAAD,GAAIA,EACtBE,qBAAAC,OAAmB,IAAAD,GAAIA,EAGvBE,EAAetB,EAAAuB,SAAfA,cAAeD,EACfE,EAAAxB,EAAAyB,UAAAA,OAAS,IAAAD,GAAOA,EAChBE,EAAiB1B,EAAA2B,WAAjBA,OAAU,IAAAD,GAAOA,EAGjBE,EAAyB5B,EAAA6B,aAAzBA,aAAe,WAAUD,EACzBE,EAAyB9B,EAAA+B,aAAzBA,OAAe,IAAAD,EAAA,aACfE,kBACAC,EAAAjC,EAAAkC,aAAAA,OAAY,IAAAD,GAAQA,EAGfjC,EAAAmC,MACL,IAAAC,EAAMpC,EAAAoC,OAGNC,EAAUrC,EAAAqC,WAGVC,EAAUtC,EAAAsC,WAGVC,EAAqBvC,EAAAuC,sBAElBC,EAAYC,EAAAzC,EA7CqD,yUAgD9D0C,EAAU,CACdC,EACAC,EACAC,EACAC,GAGIC,EAKFC,EAAgB,CAClB7C,cAAaA,EACbmC,WAAUA,EACVN,cAAaA,IAPbiB,EAAWF,EAAAE,YACXC,GAAMH,EAAAG,OACNC,GAASJ,EAAAI,UACTC,GAASL,EAAAK,UAOHC,GAAOC,EAAmBd,MAG5Be,GAAc,SAACC,GACnB,OAAK3C,EAKe,QAAb2C,EAAqB,cACb,SAAbA,EAAsB,eAAiB,eAJnB,QAAbA,EAAqB,UACb,SAAbA,EAAsB,WAAa,cAIzC,EAQMC,GANU,CACdC,MAAO,eACPC,KAAMJ,GAAY,QAClBK,IAAKL,GAAY,QAGmBlD,IAAgB,eAGhDwD,GAAyBC,GAAY,WACzC,IAAMC,EAAY,GACdhD,GAAgBgD,EAAUC,KAAK,QAC/B/C,GAAgB8C,EAAUC,KAAK,QAC/B7C,GAAiB4C,EAAUC,KAAK,SAEpC,IAAMC,EAAa,GAOnB,OANI5C,IACEV,GAAiBsD,EAAWD,KAAK,gBACjCvD,GAAgBwD,EAAWD,KAAKT,GAAY,SAC5ChD,GAAe0D,EAAWD,KAAKT,GAAY,SAG1C,CACLW,KAAMH,EAAUI,KAAK,KACrBC,OAAQ,QACRC,MAAOJ,EAAWE,KAAK,KAE3B,GAAG,CAAC5D,EAAeE,EAAgBE,EAAiBE,EAAgBE,EAAgBE,EAAgBE,EAAiBE,IAErH,OACEiD,EAACC,KAAIlB,GAAIA,IAAQd,YACf+B,EAACE,GACCC,IAAKvB,GACLd,OAAQA,EACRM,QAASA,EACTgC,YAAY,WACZC,oBAAoB,6CACpBtE,YAAaoD,GACbmB,cAAef,KACftC,SAAUA,EACVE,UAAWA,EACXE,WAAYA,EACZK,cAAeA,EACfE,aAAcA,EACd2C,WAAY1B,GACZd,WAAYA,EACZR,aAAcA,EACdE,aAAcA,EACd7B,OAAQ+C,EACR6B,aAAc1B,OAItB"}
@@ -1,3 +1,85 @@
1
+ import { ConfigurationItemInfo } from 'containers';
1
2
  import React from 'react';
2
- import { CalendarMoleculeProps } from './CalendarMolecule';
3
- export declare const YearViewCalendarMolecule: React.FC<Omit<CalendarMoleculeProps, 'initialView' | 'enableDayView' | 'enableWeekView' | 'enableDayListView' | 'enableWeekListView' | 'enableGridView' | 'enableTimelineView' | 'enableResourceView'>>;
3
+ export interface YearViewCalendarProps {
4
+ events?: any[];
5
+ monthsPerRow?: number;
6
+ dayMaxEvents?: number;
7
+ yearViewMode?: 'grid' | 'stack' | 'continuous';
8
+ showPrevButton?: boolean;
9
+ showNextButton?: boolean;
10
+ showTodayButton?: boolean;
11
+ editable?: boolean;
12
+ droppable?: boolean;
13
+ selectable?: boolean;
14
+ businessHours?: any;
15
+ eventOverlap?: boolean;
16
+ showGridLines?: boolean;
17
+ width?: string | number;
18
+ height?: string | number;
19
+ marginLeft?: string;
20
+ marginTop?: string;
21
+ marginRight?: string;
22
+ marginBottom?: string;
23
+ paddingLeft?: string;
24
+ paddingTop?: string;
25
+ paddingRight?: string;
26
+ paddingBottom?: string;
27
+ buttonFontSize?: string | number;
28
+ buttonPaddingY?: string;
29
+ buttonPaddingX?: string;
30
+ buttonColor?: string;
31
+ buttonTextColor?: string;
32
+ buttonBorderColor?: string;
33
+ buttonFontWeight?: string | number;
34
+ buttonElevation?: number;
35
+ buttonHeight?: string | number;
36
+ buttonMinWidth?: string | number;
37
+ buttonMarginY?: string;
38
+ buttonMarginX?: string;
39
+ buttonBorderRadius?: string;
40
+ buttonHoverColor?: string;
41
+ buttonHoverTextColor?: string;
42
+ buttonHoverBorderColor?: string;
43
+ headerBackgroundColor?: string;
44
+ headerBorderColor?: string;
45
+ headerPadding?: string;
46
+ headerHeight?: string | number;
47
+ headerFontSize?: string | number;
48
+ headerFontWeight?: string | number;
49
+ headerTextColor?: string;
50
+ dayHeaderColor?: string;
51
+ dayHeaderFontWeight?: string | number;
52
+ eventBackgroundColor?: string;
53
+ eventBorderColor?: string;
54
+ eventTextColor?: string;
55
+ eventBorderRadius?: string;
56
+ eventOpacity?: number;
57
+ eventElevation?: number;
58
+ eventPadding?: string;
59
+ eventFontSize?: string | number;
60
+ eventFontFamily?: string;
61
+ eventFontWeight?: string | number;
62
+ cellBackgroundColor?: string;
63
+ cellHoverBackgroundColor?: string;
64
+ cellTodayBackgroundColor?: string;
65
+ cellBorderColor?: string;
66
+ cellTextColor?: string;
67
+ cellFontSize?: string | number;
68
+ cellPadding?: string;
69
+ cellHeight?: string | number;
70
+ borderStyle?: 'none' | 'solid' | 'dashed' | 'dotted' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset';
71
+ borderWidth?: string;
72
+ borderColor?: string;
73
+ borderRadius?: string;
74
+ backgroundColor?: string;
75
+ fontFamily?: string;
76
+ elevation?: number;
77
+ headerLetterSpacing?: 'normal' | 'wide' | 'wider' | 'tight';
78
+ textShadowStyle?: 'none' | 'subtle' | 'medium' | 'strong';
79
+ enableAnimations?: boolean;
80
+ animationSpeed?: string;
81
+ hoverEffect?: 'none' | 'lift' | 'scale' | 'glow' | 'bounce';
82
+ onEventAdd?: (e: any) => void;
83
+ configurationItemInfo?: ConfigurationItemInfo;
84
+ }
85
+ export declare const YearViewCalendarMolecule: React.FC<YearViewCalendarProps>;
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"../../node_modules/tslib/tslib.es6.js";import{jsx as i}from"../../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js";import{CalendarMolecule as a}from"./CalendarMolecule.js";var n=function(n){return i(a,e({},n,{initialView:"multiMonthYear",enableYearView:!0,enableDayView:!1,enableWeekView:!1,enableMonthView:!1,enableDayListView:!1,enableWeekListView:!1,enableGridView:!1,enableTimelineView:!1,enableResourceView:!1,monthsPerRow:3,yearViewMode:"grid",dayMaxEvents:3,editable:!1,droppable:!1,selectable:!1}))};export{n as YearViewCalendarMolecule};
1
+ import{__rest as e,__assign as o}from"../../node_modules/tslib/tslib.es6.js";import{jsx as t}from"../../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js";import i from"../../node_modules/@fullcalendar/react/dist/index.js";import{useCallback as n}from"react";import{useCalendarCore as r}from"./hooks/useCalendarCore.js";import{useCalendarStyling as s}from"./hooks/useCalendarStyling.js";import d from"../../node_modules/@fullcalendar/interaction/index.js";import a from"../../node_modules/@fullcalendar/multimonth/index.js";import l from"../../node_modules/@mui/material/Box/Box.js";var u=function(u){var m=u.events,v=void 0===m?[]:m,h=u.monthsPerRow,p=void 0===h?3:h,c=u.dayMaxEvents,f=void 0===c?3:c,b=u.yearViewMode,w=void 0===b?"grid":b,x=u.showPrevButton,y=void 0===x||x,M=u.showNextButton,j=void 0===M||M,g=u.showTodayButton,B=void 0===g||g,C=u.editable,E=void 0!==C&&C,_=u.droppable,A=void 0!==_&&_,R=u.selectable,S=void 0!==R&&R,H=u.businessHours,I=u.eventOverlap,N=void 0===I||I;u.showGridLines,u.width;var P=u.height;u.buttonFontSize;var T=u.onEventAdd,k=u.configurationItemInfo,L=e(u,["events","monthsPerRow","dayMaxEvents","yearViewMode","showPrevButton","showNextButton","showTodayButton","editable","droppable","selectable","businessHours","eventOverlap","showGridLines","width","height","buttonFontSize","onEventAdd","configurationItemInfo"]),O=[d,a],V=r({initialEvents:v,onEventAdd:T,businessHours:H}),Y=V.eventsState,z=V.calRef,D=V.allowDrop,F=V.onReceive,G=s(L).sx,K={multiMonthYear:{type:"multiMonth",duration:{years:1},buttonText:"Year",multiMonthMaxColumns:"grid"===w?p:"stack"===w?1:p,multiMonthMinWidth:"continuous"===w?250:void 0,dayMaxEvents:f}},W=n((function(){var e=[];return y&&e.push("prev"),j&&e.push("next"),B&&e.push("today"),{left:e.join(","),center:"title",right:""}}),[y,j,B]);return t(l,o({sx:G},k,{children:t(i,{ref:z,height:P,plugins:O,themeSystem:"standard",schedulerLicenseKey:"CC-Attribution-NonCommercial-NoDerivatives",initialView:"multiMonthYear",headerToolbar:W(),views:K,editable:E,droppable:A,selectable:S,businessHours:H,eventOverlap:N,eventAllow:D,events:Y,eventReceive:F})}))};export{u as YearViewCalendarMolecule};
2
2
  //# sourceMappingURL=YearViewCalendar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"YearViewCalendar.js","sources":["../../../../../src/molecules/Calendar/YearViewCalendar.tsx"],"sourcesContent":[null],"names":["YearViewCalendarMolecule","props","_jsx","CalendarMolecule","__assign","initialView","enableYearView","enableDayView","enableWeekView","enableMonthView","enableDayListView","enableWeekListView","enableGridView","enableTimelineView","enableResourceView","monthsPerRow","yearViewMode","dayMaxEvents","editable","droppable","selectable"],"mappings":"wOAIaA,EAYT,SAACC,GAAU,OACbC,EAACC,EACKC,EAAA,CAAA,EAAAH,GACJI,YAAY,iBACZC,gBAAc,EAEdC,eAAe,EACfC,gBAAgB,EAChBC,iBAAiB,EACjBC,mBAAmB,EACnBC,oBAAoB,EACpBC,gBAAgB,EAChBC,oBAAoB,EACpBC,oBAAoB,EAEpBC,aAAc,EACdC,aAAa,OACbC,aAAc,EAEdC,UAAU,EACVC,WAAW,EACXC,YAAY,IAEf"}
1
+ {"version":3,"file":"YearViewCalendar.js","sources":["../../../../../src/molecules/Calendar/YearViewCalendar.tsx"],"sourcesContent":[null],"names":["YearViewCalendarMolecule","_a","_b","events","initialEvents","_c","monthsPerRow","_d","dayMaxEvents","_e","yearViewMode","_f","showPrevButton","_g","showNextButton","_h","showTodayButton","_j","editable","_k","droppable","_l","selectable","businessHours","_m","eventOverlap","showGridLines","width","height","buttonFontSize","onEventAdd","configurationItemInfo","stylingProps","__rest","plugins","interactionPlugin","multiMonthPlugin","_p","useCalendarCore","eventsState","calRef","allowDrop","onReceive","sx","useCalendarStyling","yearViewConfig","multiMonthYear","type","duration","years","buttonText","multiMonthMaxColumns","multiMonthMinWidth","undefined","getHeaderToolbarConfig","useCallback","leftItems","push","left","join","center","right","_jsx","Box","__assign","children","FullCalendar","ref","themeSystem","schedulerLicenseKey","initialView","headerToolbar","views","eventAllow","eventReceive"],"mappings":"mmBAwIO,IAAMA,EAA4D,SAACC,OAExEC,EAA0BD,EAAAE,OAAlBC,OAAa,IAAAF,EAAG,GAAEA,EAG1BG,EAAgBJ,EAAAK,aAAhBA,aAAe,EAACD,EAChBE,EAAAN,EAAAO,aAAAA,OAAY,IAAAD,EAAG,EAACA,EAChBE,EAAqBR,EAAAS,aAArBA,OAAY,IAAAD,EAAG,OAAMA,EAGrBE,EAAqBV,EAAAW,eAArBA,cAAqBD,EACrBE,EAAAZ,EAAAa,eAAAA,OAAc,IAAAD,GAAOA,EACrBE,EAAsBd,EAAAe,gBAAtBA,OAAe,IAAAD,GAAOA,EAGtBE,EAAgBhB,EAAAiB,SAAhBA,cAAgBD,EAChBE,EAAAlB,EAAAmB,UAAAA,OAAS,IAAAD,GAAQA,EACjBE,EAAkBpB,EAAAqB,WAAlBA,OAAU,IAAAD,GAAQA,EAGlBE,EAAatB,EAAAsB,cACbC,EAAmBvB,EAAAwB,aAAnBA,OAAe,IAAAD,GAAIA,EACCvB,EAAAyB,cAGfzB,EAAA0B,MACL,IAAAC,EAAM3B,EAAA2B,OAGQ3B,EAAA4B,eAEd,IACAC,EAAU7B,EAAA6B,WAGVC,EAAqB9B,EAAA8B,sBAElBC,EAAYC,EAAAhC,EArCyD,uQAwClEiC,EAAU,CACdC,EACAC,GAGIC,EAKFC,EAAgB,CAClBlC,cAAaA,EACb0B,WAAUA,EACVP,cAAaA,IAPbgB,EAAWF,EAAAE,YACXC,EAAMH,EAAAG,OACNC,EAASJ,EAAAI,UACTC,EAASL,EAAAK,UAOHC,EAAOC,EAAmBZ,MAG5Ba,EAAiB,CACrBC,eAAgB,CACdC,KAAM,aACNC,SAAU,CAAEC,MAAO,GACnBC,WAAY,OACZC,qBACmB,SAAjBzC,EACIJ,EACiB,UAAjBI,EACE,EACAJ,EACR8C,mBAAqC,eAAjB1C,EAAgC,SAAM2C,EAC1D7C,aAAYA,IAKV8C,EAAyBC,GAAY,WACzC,IAAMC,EAAY,GAKlB,OAJI5C,GAAgB4C,EAAUC,KAAK,QAC/B3C,GAAgB0C,EAAUC,KAAK,QAC/BzC,GAAiBwC,EAAUC,KAAK,SAE7B,CACLC,KAAMF,EAAUG,KAAK,KACrBC,OAAQ,QACRC,MAAO,GAEV,GAAE,CAACjD,EAAgBE,EAAgBE,IAEpC,OACE8C,EAACC,EAAIC,EAAA,CAAArB,GAAIA,GAAQZ,EAAqB,CAAAkC,SACpCH,EAACI,EAAY,CACXC,IAAK3B,EACLZ,OAAQA,EACRM,QAASA,EACTkC,YAAY,WACZC,oBAAoB,6CACpBC,YAAY,iBACZC,cAAejB,IACfkB,MAAO3B,EACP3B,SAAUA,EACVE,UAAWA,EACXE,WAAYA,EACZC,cAAeA,EACfE,aAAcA,EACdgD,WAAYhC,EACZtC,OAAQoC,EACRmC,aAAchC,MAItB"}
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ interface UseCalendarCoreOptions {
3
+ initialEvents?: any[];
4
+ onEventAdd?: (event: any) => void;
5
+ businessHours?: any;
6
+ }
7
+ export declare const useCalendarCore: ({ initialEvents, onEventAdd, businessHours, }?: UseCalendarCoreOptions) => {
8
+ eventsState: any[];
9
+ setEventsState: import("react").Dispatch<import("react").SetStateAction<any[]>>;
10
+ calRef: import("react").MutableRefObject<any>;
11
+ allowDrop: (info: any) => boolean;
12
+ onReceive: (info: any) => void;
13
+ };
14
+ export {};
@@ -0,0 +1,2 @@
1
+ import{__spreadArray as t}from"../../../node_modules/tslib/tslib.es6.js";import{useState as e,useRef as n,useCallback as r}from"react";var i=function(i){var o=void 0===i?{}:i,a=o.initialEvents,s=void 0===a?[]:a,u=o.onEventAdd,d=o.businessHours,c=e(s),l=c[0],v=c[1],f=n(null),m=function(t){return"".concat(String(t.getHours()).padStart(2,"0"),":").concat(String(t.getMinutes()).padStart(2,"0"))},g=r((function(t){if(!d)return!0;var e=(Array.isArray(d)?d:[d]).find((function(e){return e.daysOfWeek.includes(t.start.getDay())}));return!!e&&(m(t.start)>=e.startTime&&m(t.end)<=e.endTime)}),[d]),p=r((function(e){var n,r=e.event,i=r.id,o=r.title,a=r.start,s=r.end,d={id:"".concat(i,"-").concat(null==a?void 0:a.getTime()),title:o,start:a,end:s,resourceId:null===(n=e.event.getResources()[0])||void 0===n?void 0:n.id};v((function(e){return t(t([],e,!0),[d],!1)})),null==u||u(d),e.event.remove()}),[u]);return{eventsState:l,setEventsState:v,calRef:f,allowDrop:g,onReceive:p}};export{i as useCalendarCore};
2
+ //# sourceMappingURL=useCalendarCore.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCalendarCore.js","sources":["../../../../../../src/molecules/Calendar/hooks/useCalendarCore.ts"],"sourcesContent":[null],"names":["useCalendarCore","_a","_b","_c","initialEvents","onEventAdd","businessHours","_d","useState","eventsState","setEventsState","calRef","useRef","toTime","d","concat","String","getHours","padStart","getMinutes","allowDrop","useCallback","info","rule","Array","isArray","find","r","daysOfWeek","includes","start","getDay","startTime","end","endTime","onReceive","event","id","title","newEvt","getTime","resourceId","getResources","prev","__spreadArray","remove"],"mappings":"uIAQO,IAAMA,EAAkB,SAACC,GAAA,IAAAC,OAAA,IAAAD,EAIJ,CAAA,EAAEA,EAH1BE,EAAAD,EAAAE,cAAAA,OAAa,IAAAD,EAAG,GAAEA,EAClBE,EAAUH,EAAAG,WACVC,EAAaJ,EAAAI,cAEPC,EAAgCC,EAAgBJ,GAA/CK,EAAWF,EAAA,GAAEG,EAAcH,EAAA,GAC5BI,EAASC,EAAY,MAGrBC,EAAS,SAACC,GACZ,MAAA,GAAGC,OAAAC,OAAOF,EAAEG,YAAYC,SAAS,EAAG,KAAQ,KAAAH,OAAAC,OAAOF,EAAEK,cAAcD,SAAS,EAAG,KAA/E,EAEEE,EAAYC,GACd,SAACC,GACG,IAAKhB,EAAe,OAAO,EAC3B,IACMiB,GADQC,MAAMC,QAAQnB,GAAiBA,EAAgB,CAACA,IAC3CoB,MAAK,SAACC,GAAW,OAAAA,EAAEC,WAAWC,SAASP,EAAKQ,MAAMC,SAAS,IAC9E,QAAKR,IACEV,EAAOS,EAAKQ,QAAUP,EAAKS,WAAanB,EAAOS,EAAKW,MAAQV,EAAKW,QAC5E,GACA,CAAC5B,IAIC6B,EAAYd,GACd,SAACC,SACSpB,EAA4BoB,EAAKc,MAA/BC,EAAEnC,EAAAmC,GAAEC,EAAKpC,EAAAoC,MAAER,EAAK5B,EAAA4B,MAAEG,QACpBM,EAAc,CAChBF,GAAI,GAAAtB,OAAGsB,EAAE,KAAAtB,OAAIe,aAAK,EAALA,EAAOU,WACpBF,MAAKA,EACLR,MAAKA,EACLG,IAAGA,EACHQ,WAAwC,QAA5BxC,EAAAqB,EAAKc,MAAMM,eAAe,UAAE,IAAAzC,OAAA,EAAAA,EAAEoC,IAE9C3B,GAAe,SAACiC,GAAS,OAAAC,EAAAA,EAAA,GAAID,GAAI,GAAA,CAAEJ,IAAM,EAAC,IAC1ClC,SAAAA,EAAakC,GACbjB,EAAKc,MAAMS,QACf,GACA,CAACxC,IAGL,MAAO,CACHI,YAAWA,EACXC,eAAcA,EACdC,OAAMA,EACNS,UAASA,EACTe,UAASA,EAEjB"}
@@ -0,0 +1,229 @@
1
+ interface CalendarStylingProps {
2
+ width?: string | number;
3
+ marginLeft?: string;
4
+ marginTop?: string;
5
+ marginRight?: string;
6
+ marginBottom?: string;
7
+ paddingLeft?: string;
8
+ paddingTop?: string;
9
+ paddingRight?: string;
10
+ paddingBottom?: string;
11
+ buttonFontSize?: string | number;
12
+ buttonPaddingY?: string;
13
+ buttonPaddingX?: string;
14
+ buttonColor?: string;
15
+ buttonTextColor?: string;
16
+ buttonBorderColor?: string;
17
+ buttonFontWeight?: string | number;
18
+ buttonElevation?: number;
19
+ buttonHeight?: string | number;
20
+ buttonMinWidth?: string | number;
21
+ buttonMarginY?: string;
22
+ buttonMarginX?: string;
23
+ buttonBorderRadius?: string;
24
+ buttonHoverColor?: string;
25
+ buttonHoverTextColor?: string;
26
+ buttonHoverBorderColor?: string;
27
+ headerBackgroundColor?: string;
28
+ headerBorderColor?: string;
29
+ headerPadding?: string;
30
+ headerHeight?: string | number;
31
+ headerFontSize?: string | number;
32
+ headerFontWeight?: string | number;
33
+ headerTextColor?: string;
34
+ dayHeaderColor?: string;
35
+ dayHeaderFontWeight?: string | number;
36
+ eventBackgroundColor?: string;
37
+ eventBorderColor?: string;
38
+ eventTextColor?: string;
39
+ eventBorderRadius?: string;
40
+ eventOpacity?: number;
41
+ eventElevation?: number;
42
+ eventPadding?: string;
43
+ eventFontSize?: string | number;
44
+ eventFontFamily?: string;
45
+ eventFontWeight?: string | number;
46
+ cellBackgroundColor?: string;
47
+ cellHoverBackgroundColor?: string;
48
+ cellTodayBackgroundColor?: string;
49
+ cellBorderColor?: string;
50
+ cellTextColor?: string;
51
+ cellFontSize?: string | number;
52
+ cellPadding?: string;
53
+ cellHeight?: string | number;
54
+ timeGridSlotHeight?: string | number;
55
+ timeGridSlotBorderColor?: string;
56
+ timeGridNowIndicatorColor?: string;
57
+ timeGridLabelFontSize?: string | number;
58
+ timeGridLabelColor?: string;
59
+ nowIndicatorColor?: string;
60
+ allDayBackgroundColor?: string;
61
+ allDayTextColor?: string;
62
+ resourceAreaWidth?: string | number;
63
+ resourceBackgroundColor?: string;
64
+ resourceTextColor?: string;
65
+ resourceBorderColor?: string;
66
+ resourceFontSize?: string | number;
67
+ resourcePadding?: string;
68
+ borderStyle?: 'none' | 'solid' | 'dashed' | 'dotted' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset';
69
+ borderWidth?: string;
70
+ borderColor?: string;
71
+ borderRadius?: string;
72
+ backgroundColor?: string;
73
+ fontFamily?: string;
74
+ elevation?: number;
75
+ enableAnimations?: boolean;
76
+ animationSpeed?: string;
77
+ hoverEffect?: 'none' | 'lift' | 'scale' | 'glow' | 'bounce';
78
+ showGridLines?: boolean;
79
+ }
80
+ export declare const useCalendarStyling: (props: CalendarStylingProps) => {
81
+ sx: {
82
+ readonly '& .fc': {
83
+ readonly borderRadius: string | undefined;
84
+ readonly borderColor: string | undefined;
85
+ readonly borderWidth: string | undefined;
86
+ readonly borderStyle: "inset" | "none" | "dashed" | "dotted" | "double" | "groove" | "outset" | "ridge" | "solid";
87
+ readonly boxShadow: string;
88
+ readonly fontFamily: string | undefined;
89
+ readonly backgroundColor: string | undefined;
90
+ };
91
+ readonly '& .fc .fc-button': {
92
+ readonly transition?: string | undefined;
93
+ readonly '&:hover'?: {
94
+ backgroundColor: string | undefined;
95
+ color: string | undefined;
96
+ borderColor: string | undefined;
97
+ transform: string;
98
+ } | undefined;
99
+ readonly fontSize: string | number | undefined;
100
+ readonly padding: string | undefined;
101
+ readonly borderRadius: string | undefined;
102
+ readonly backgroundColor: string | undefined;
103
+ readonly color: string | undefined;
104
+ readonly borderColor: string | undefined;
105
+ readonly fontWeight: string | number | undefined;
106
+ readonly boxShadow: string;
107
+ readonly height: string | number | undefined;
108
+ readonly minWidth: string | number | undefined;
109
+ readonly margin: string | undefined;
110
+ };
111
+ readonly '& .fc-event': {
112
+ readonly transition?: string | undefined;
113
+ readonly '&:hover'?: {
114
+ transform: string;
115
+ boxShadow: string;
116
+ } | undefined;
117
+ readonly backgroundColor: string | undefined;
118
+ readonly color: string | undefined;
119
+ readonly borderColor: string | undefined;
120
+ readonly borderRadius: string | undefined;
121
+ readonly fontSize: string | number | undefined;
122
+ readonly fontWeight: string | number | undefined;
123
+ readonly opacity: number | undefined;
124
+ readonly boxShadow: string;
125
+ readonly padding: string | undefined;
126
+ readonly borderWidth: string | undefined;
127
+ readonly borderStyle: "inset" | "none" | "dashed" | "dotted" | "double" | "groove" | "outset" | "ridge" | "solid";
128
+ };
129
+ readonly '& .fc .fc-daygrid-day, & .fc .fc-timegrid-slot, & .fc .fc-col-header-cell': {
130
+ readonly transition?: string | undefined;
131
+ readonly '&:hover'?: {
132
+ backgroundColor: string | undefined;
133
+ transform: string;
134
+ } | undefined;
135
+ readonly backgroundColor: string | undefined;
136
+ readonly borderColor: string | undefined;
137
+ readonly borderWidth: string | undefined;
138
+ readonly borderStyle: "inset" | "none" | "dashed" | "dotted" | "double" | "groove" | "outset" | "ridge" | "solid";
139
+ readonly padding: string | undefined;
140
+ readonly height: string | number | undefined;
141
+ readonly color: string | undefined;
142
+ readonly fontSize: string | number | undefined;
143
+ };
144
+ readonly '& .fc .fc-day-today': {
145
+ readonly backgroundColor: string | undefined;
146
+ };
147
+ readonly '& .fc .fc-timegrid-all-day-slot': {
148
+ readonly backgroundColor: string | undefined;
149
+ };
150
+ readonly '& .fc .fc-timegrid-all-day-slot .fc-event': {
151
+ readonly color: string | undefined;
152
+ };
153
+ readonly '& .fc .fc-daygrid-day .fc-event[data-all-day="true"]': {
154
+ readonly color: string | undefined;
155
+ readonly backgroundColor: string | undefined;
156
+ };
157
+ readonly '& .fc .fc-scrollgrid-shim, & .fc .fc-timegrid-divider'?: {
158
+ display: string;
159
+ } | undefined;
160
+ readonly width: string | number | undefined;
161
+ readonly marginLeft: string | undefined;
162
+ readonly marginTop: string | undefined;
163
+ readonly marginRight: string | undefined;
164
+ readonly marginBottom: string | undefined;
165
+ readonly paddingLeft: string | undefined;
166
+ readonly paddingTop: string | undefined;
167
+ readonly paddingRight: string | undefined;
168
+ readonly paddingBottom: string | undefined;
169
+ readonly '& .fc .fc-toolbar': {
170
+ readonly backgroundColor: string | undefined;
171
+ readonly color: string | undefined;
172
+ readonly borderColor: string | undefined;
173
+ readonly padding: string | undefined;
174
+ readonly height: string | number | undefined;
175
+ readonly '& .fc-toolbar-title': {
176
+ readonly fontSize: string | number | undefined;
177
+ readonly fontWeight: string | number | undefined;
178
+ readonly color: string | undefined;
179
+ };
180
+ };
181
+ readonly '& .fc .fc-col-header-cell-cushion': {
182
+ readonly color: string | undefined;
183
+ readonly fontWeight: string | number | undefined;
184
+ };
185
+ readonly '& .fc .fc-timegrid-slot-label-cushion': {
186
+ readonly color: string | undefined;
187
+ readonly fontSize: string | number | undefined;
188
+ };
189
+ readonly '& .fc .fc-event': {
190
+ readonly color: string | undefined;
191
+ };
192
+ readonly '& .fc .fc-event:hover': {
193
+ readonly backgroundColor: string | undefined;
194
+ };
195
+ readonly '& .fc .fc-event-title': {
196
+ readonly fontSize: string | number | undefined;
197
+ readonly fontFamily: string | undefined;
198
+ readonly fontWeight: string | number | undefined;
199
+ };
200
+ readonly '& .fc .fc-now-indicator': {
201
+ readonly backgroundColor: string | undefined;
202
+ };
203
+ readonly '& .fc .fc-timegrid-now-indicator-line': {
204
+ readonly backgroundColor: string | undefined;
205
+ };
206
+ readonly '& .fc .fc-timegrid-slot': {
207
+ readonly height: string | number | undefined;
208
+ readonly borderColor: string | undefined;
209
+ };
210
+ readonly '& .fc .fc-resource-area': {
211
+ readonly backgroundColor: string | undefined;
212
+ readonly width: string | number | undefined;
213
+ readonly borderColor: string | undefined;
214
+ readonly '& .fc-resource-cell': {
215
+ readonly color: string | undefined;
216
+ readonly fontSize: string | number | undefined;
217
+ readonly padding: string | undefined;
218
+ };
219
+ };
220
+ readonly '& .fc .fc-resource .fc-resource-title': {
221
+ readonly color: string | undefined;
222
+ };
223
+ readonly '& .fc .fc-resource-area-cell': {
224
+ readonly borderColor: string | undefined;
225
+ };
226
+ };
227
+ getMaterialElevation: (elevation?: number) => string;
228
+ };
229
+ export {};