@zealicsolutions/web-ui 1.0.60-test.1 → 1.0.60-test.3
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/cjs/index.js +247 -247
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/molecules/Calendar/CalendarMolecule.d.ts +75 -24
- package/dist/cjs/molecules/Calendar/CalendarMolecule.stories.d.ts +3 -17
- package/dist/cjs/molecules/Calendar/ResourceTimelineCalendar.d.ts +95 -2
- package/dist/cjs/molecules/Calendar/SimpleCalendar.d.ts +98 -2
- package/dist/cjs/molecules/Calendar/YearViewCalendar.d.ts +85 -2
- package/dist/cjs/molecules/Calendar/hooks/useCalendarCore.d.ts +14 -0
- package/dist/cjs/molecules/Calendar/hooks/useCalendarStyling.d.ts +229 -0
- package/dist/cjs/molecules/DatePicker/DatePicker.d.ts +3 -1
- package/dist/esm/containers/FormContainer.js +1 -1
- package/dist/esm/containers/FormContainer.js.map +1 -1
- package/dist/esm/molecules/Calendar/CalendarMolecule.d.ts +75 -24
- package/dist/esm/molecules/Calendar/CalendarMolecule.stories.d.ts +3 -17
- package/dist/esm/molecules/Calendar/ResourceTimelineCalendar.d.ts +95 -2
- package/dist/esm/molecules/Calendar/ResourceTimelineCalendar.js +1 -1
- package/dist/esm/molecules/Calendar/ResourceTimelineCalendar.js.map +1 -1
- package/dist/esm/molecules/Calendar/SimpleCalendar.d.ts +98 -2
- package/dist/esm/molecules/Calendar/SimpleCalendar.js +1 -1
- package/dist/esm/molecules/Calendar/SimpleCalendar.js.map +1 -1
- package/dist/esm/molecules/Calendar/YearViewCalendar.d.ts +85 -2
- package/dist/esm/molecules/Calendar/YearViewCalendar.js +1 -1
- package/dist/esm/molecules/Calendar/YearViewCalendar.js.map +1 -1
- package/dist/esm/molecules/Calendar/hooks/useCalendarCore.d.ts +14 -0
- package/dist/esm/molecules/Calendar/hooks/useCalendarCore.js +2 -0
- package/dist/esm/molecules/Calendar/hooks/useCalendarCore.js.map +1 -0
- package/dist/esm/molecules/Calendar/hooks/useCalendarStyling.d.ts +229 -0
- package/dist/esm/molecules/Calendar/hooks/useCalendarStyling.js +2 -0
- package/dist/esm/molecules/Calendar/hooks/useCalendarStyling.js.map +1 -0
- package/dist/esm/molecules/DatePicker/DatePicker.d.ts +3 -1
- package/dist/esm/molecules/DatePicker/DatePicker.js +1 -1
- package/dist/esm/molecules/DatePicker/DatePicker.js.map +1 -1
- package/dist/esm/node_modules/@fullcalendar/premium-common/index.js +1 -1
- package/dist/esm/node_modules/@fullcalendar/premium-common/index.js.map +1 -1
- package/dist/esm/node_modules/@fullcalendar/timeline/internal.js +1 -1
- package/dist/esm/node_modules/@fullcalendar/timeline/internal.js.map +1 -1
- package/dist/index.d.ts +77 -24
- package/package.json +1 -1
- package/dist/esm/molecules/Calendar/CalendarMolecule.js +0 -2
- package/dist/esm/molecules/Calendar/CalendarMolecule.js.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"FormContainer.js","sources":["../../../../src/containers/FormContainer.tsx"],"sourcesContent":[null],"names":["walkFields","node","fn","Object","values","forEach","child","_f","FormContainer","_a","_b","mode","state","children","methods","useForm","defaultValues","onStateChange","useStateModifierHandler","_c","useOrganismContext","formId","useEffect","reset","keepErrors","keepDirty","keepTouched","keepValues","clearErrors","trigger","t_1","setTimeout","__awaiter","control","_fields","name","pattern","value","RegExp","source","flags","setError","type","message","clearTimeout","formState","isDirty","id","_jsx","FormProvider","__assign","
|
1
|
+
{"version":3,"file":"FormContainer.js","sources":["../../../../src/containers/FormContainer.tsx"],"sourcesContent":[null],"names":["walkFields","node","fn","Object","values","forEach","child","_f","FormContainer","_a","_b","mode","state","children","methods","useForm","defaultValues","onStateChange","useStateModifierHandler","_c","useOrganismContext","formId","useEffect","reset","keepErrors","keepDirty","keepTouched","keepValues","clearErrors","trigger","t_1","setTimeout","__awaiter","control","_fields","name","pattern","value","RegExp","source","flags","setError","type","message","clearTimeout","formState","isDirty","id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C,GAEH,OAAO,WAAM,OAAAC,aAAad,EAAE,CAC7B,CA9CkB,CA+CrB,GAAG,CAAClB,IAGJU,GAAU,WACJR,EAAQ+B,UAAUC,SAAS7B,EAAc,CAAE8B,GAAI1B,EAAQqB,KAAM,WAClE,GAAE,CAAC5B,EAAQ+B,UAAUC,UAGpBE,EAACC,EAAYC,EAAA,CAAA,EAAKpC,EAAO,CAAAD,SACvBmC,EAACG,EAAyB,CAAAtC,SAAAA,MAGhC"}
|
@@ -7,12 +7,15 @@ export interface CalendarMoleculeProps {
|
|
7
7
|
enableDayView?: boolean;
|
8
8
|
enableWeekView?: boolean;
|
9
9
|
enableMonthView?: boolean;
|
10
|
+
enableYearView?: boolean;
|
10
11
|
enableDayListView?: boolean;
|
11
12
|
enableWeekListView?: boolean;
|
12
13
|
enableGridView?: boolean;
|
13
14
|
enableTimelineView?: boolean;
|
14
15
|
enableResourceView?: boolean;
|
15
|
-
|
16
|
+
monthsPerRow?: number;
|
17
|
+
dayMaxEvents?: number;
|
18
|
+
yearViewMode?: 'grid' | 'stack' | 'continuous';
|
16
19
|
showPrevButton?: boolean;
|
17
20
|
showNextButton?: boolean;
|
18
21
|
showTodayButton?: boolean;
|
@@ -20,23 +23,13 @@ export interface CalendarMoleculeProps {
|
|
20
23
|
editable?: boolean;
|
21
24
|
droppable?: boolean;
|
22
25
|
selectable?: boolean;
|
23
|
-
monthsPerRow?: number;
|
24
|
-
dayMaxEvents?: number;
|
25
|
-
yearViewMode?: 'grid' | 'stack' | 'continuous';
|
26
26
|
slotDuration?: string;
|
27
27
|
snapDuration?: string;
|
28
28
|
businessHours?: any;
|
29
29
|
eventOverlap?: boolean;
|
30
30
|
showGridLines?: boolean;
|
31
|
-
buttonBorderRadius?: string;
|
32
|
-
eventFontSize?: string | number;
|
33
|
-
eventFontFamily?: string;
|
34
|
-
eventFontWeight?: string | number;
|
35
|
-
resourceGroupCollapsible?: boolean;
|
36
31
|
width?: string | number;
|
37
32
|
height?: string | number;
|
38
|
-
backgroundColor?: string;
|
39
|
-
themeSystem?: any;
|
40
33
|
marginLeft?: string;
|
41
34
|
marginTop?: string;
|
42
35
|
marginRight?: string;
|
@@ -45,27 +38,85 @@ export interface CalendarMoleculeProps {
|
|
45
38
|
paddingTop?: string;
|
46
39
|
paddingRight?: string;
|
47
40
|
paddingBottom?: string;
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
41
|
+
themeSystem?: any;
|
42
|
+
buttonFontSize?: string | number;
|
43
|
+
buttonPaddingY?: string;
|
44
|
+
buttonPaddingX?: string;
|
45
|
+
buttonColor?: string;
|
53
46
|
buttonTextColor?: string;
|
54
|
-
|
47
|
+
buttonBorderColor?: string;
|
48
|
+
buttonFontWeight?: string | number;
|
49
|
+
buttonElevation?: number;
|
50
|
+
buttonHeight?: string | number;
|
51
|
+
buttonMinWidth?: string | number;
|
52
|
+
buttonMarginY?: string;
|
53
|
+
buttonMarginX?: string;
|
54
|
+
buttonBorderRadius?: string;
|
55
|
+
buttonHoverColor?: string;
|
56
|
+
buttonHoverTextColor?: string;
|
57
|
+
buttonHoverBorderColor?: string;
|
58
|
+
headerBackgroundColor?: string;
|
59
|
+
headerBorderColor?: string;
|
60
|
+
headerPadding?: string;
|
61
|
+
headerHeight?: string | number;
|
62
|
+
headerFontSize?: string | number;
|
63
|
+
headerFontWeight?: string | number;
|
64
|
+
headerTextColor?: string;
|
55
65
|
dayHeaderColor?: string;
|
56
66
|
dayHeaderFontWeight?: string | number;
|
57
|
-
|
58
|
-
slotLabelFontSize?: string | number;
|
59
|
-
eventBg?: string;
|
67
|
+
eventBackgroundColor?: string;
|
60
68
|
eventBorderColor?: string;
|
61
69
|
eventTextColor?: string;
|
62
|
-
|
70
|
+
eventBorderRadius?: string;
|
71
|
+
eventOpacity?: number;
|
72
|
+
eventElevation?: number;
|
73
|
+
eventPadding?: string;
|
74
|
+
eventFontSize?: string | number;
|
75
|
+
eventFontFamily?: string;
|
76
|
+
eventFontWeight?: string | number;
|
77
|
+
cellBackgroundColor?: string;
|
78
|
+
cellHoverBackgroundColor?: string;
|
79
|
+
cellTodayBackgroundColor?: string;
|
80
|
+
cellBorderColor?: string;
|
81
|
+
cellTextColor?: string;
|
82
|
+
cellFontSize?: string | number;
|
83
|
+
cellPadding?: string;
|
84
|
+
cellHeight?: string | number;
|
85
|
+
timeGridSlotHeight?: string | number;
|
86
|
+
timeGridSlotBorderColor?: string;
|
87
|
+
timeGridNowIndicatorColor?: string;
|
88
|
+
timeGridLabelFontSize?: string | number;
|
89
|
+
timeGridLabelColor?: string;
|
63
90
|
nowIndicatorColor?: string;
|
64
|
-
|
91
|
+
allDaySlot?: boolean;
|
92
|
+
allDayBackgroundColor?: string;
|
93
|
+
allDayTextColor?: string;
|
94
|
+
resourceAreaWidth?: string | number;
|
95
|
+
resourceBackgroundColor?: string;
|
65
96
|
resourceTextColor?: string;
|
66
97
|
resourceBorderColor?: string;
|
67
|
-
|
68
|
-
|
98
|
+
resourceFontSize?: string | number;
|
99
|
+
resourcePadding?: string;
|
100
|
+
resourceGroupCollapsible?: boolean;
|
101
|
+
borderStyle?: 'none' | 'solid' | 'dashed' | 'dotted' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset';
|
102
|
+
borderWidth?: string;
|
103
|
+
borderColor?: string;
|
104
|
+
borderRadius?: string;
|
105
|
+
backgroundColor?: string;
|
106
|
+
fontFamily?: string;
|
107
|
+
elevation?: number;
|
108
|
+
overlayColor?: string;
|
109
|
+
overlayOpacity?: 'none' | 'light' | 'medium' | 'strong';
|
110
|
+
glassEffect?: 'none' | 'light' | 'medium' | 'strong';
|
111
|
+
headerLetterSpacing?: 'normal' | 'wide' | 'wider' | 'tight';
|
112
|
+
textShadowStyle?: 'none' | 'subtle' | 'medium' | 'strong';
|
113
|
+
enableAnimations?: boolean;
|
114
|
+
animationSpeed?: 'slow' | 'medium' | 'fast';
|
115
|
+
hoverEffect?: 'none' | 'lift' | 'scale' | 'glow' | 'bounce';
|
116
|
+
customButtons?: Record<string, {
|
117
|
+
text: string;
|
118
|
+
click: () => void;
|
119
|
+
}>;
|
69
120
|
onEventAdd?: (e: any) => void;
|
70
121
|
configurationItemInfo?: ConfigurationItemInfo;
|
71
122
|
}
|
@@ -3,20 +3,6 @@ import { CalendarMolecule } from './CalendarMolecule';
|
|
3
3
|
declare const meta: Meta<typeof CalendarMolecule>;
|
4
4
|
export default meta;
|
5
5
|
declare type Story = StoryObj<typeof CalendarMolecule>;
|
6
|
-
export declare const
|
7
|
-
export declare const
|
8
|
-
export declare const
|
9
|
-
export declare const DayGridView: Story;
|
10
|
-
export declare const DayTimelineView: Story;
|
11
|
-
export declare const ListViews: Story;
|
12
|
-
export declare const ResourceGridViews: Story;
|
13
|
-
export declare const ResourceTimelineViews: Story;
|
14
|
-
export declare const ResourceListViews: Story;
|
15
|
-
export declare const DragAndDrop: Story;
|
16
|
-
export declare const SelectableDates: Story;
|
17
|
-
export declare const BackgroundEvents: Story;
|
18
|
-
export declare const YearView: Story;
|
19
|
-
export declare const AllViewsEnabled: Story;
|
20
|
-
export declare const CustomToolbar: Story;
|
21
|
-
export declare const MinimalToolbar: Story;
|
22
|
-
export declare const Themed: Story;
|
6
|
+
export declare const ResourcesWithVisits: Story;
|
7
|
+
export declare const Simple: Story;
|
8
|
+
export declare const Styled: Story;
|
@@ -1,3 +1,96 @@
|
|
1
|
+
import { ConfigurationItemInfo } from 'containers';
|
1
2
|
import React from 'react';
|
2
|
-
|
3
|
-
|
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
|
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","
|
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":"+wBAcA,IAAMA,EAAiB,CACrB,CAAEC,GAAI,QAASC,MAAO,UACtB,CAAED,GAAI,QAASC,MAAO,WAgJXC,EAA4E,SAACC,GAExF,IAAAC,EAA0BD,EAAAE,OAAlBC,OAAa,IAAAF,EAAG,GAAEA,EAC1BG,cAAAC,OAAY,IAAAD,EAAAR,EAAcQ,EAG1BE,EAAoCN,EAAAO,YAApCA,OAAW,IAAAD,EAAG,uBAAsBA,EAGpCE,EAA0BR,EAAAS,mBAA1BA,OAAkB,IAAAD,GAAQA,EAG1BE,EAAqBV,EAAAW,eAArBA,OAAc,IAAAD,GAAOA,EACrBE,mBAAAC,OAAiB,IAAAD,GAAIA,EACrBE,oBAAAC,OAAkB,IAAAD,GAAIA,EACtBE,qBAAAC,OAAmB,IAAAD,GAAIA,EAGvBE,EAAelB,EAAAmB,SAAfA,cAAeD,EACfE,EAAApB,EAAAqB,UAAAA,OAAS,IAAAD,GAAOA,EAChBE,EAAiBtB,EAAAuB,WAAjBA,OAAU,IAAAD,GAAOA,EAGjBE,EAAyBxB,EAAAyB,aAAzBA,aAAe,WAAUD,EACzBE,EAAyB1B,EAAA2B,aAAzBA,OAAe,IAAAD,EAAA,aACfE,kBACAC,EAAA7B,EAAA8B,aAAAA,OAAY,IAAAD,GAAQA,EAGpBE,EAAM/B,EAAA+B,OAGNC,EAAgChC,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C,IAAMC,EAAY,GACd7E,GAAgB6E,EAAUC,KAAK,QAC/B5E,GAAgB2E,EAAUC,KAAK,QAC/B1E,GAAiByE,EAAUC,KAAK,SAEpC,IAAMC,EAAa,GAMnB,OALIzE,IACFyE,EAAWD,KAAKhC,GAAoB,QACpCiC,EAAWD,KAAKhC,GAAoB,UAG/B,CACLkC,KAAMH,EAAUI,KAAK,KACrBC,OAAQ,QACRC,MAAOJ,EAAWE,KAAK,KAE3B,GAAG,CAACnF,EAAoBE,EAAgBE,EAAgBE,EAAiBE,IAEzE,OACE8E,EAACC,EAAG3B,EAAA,CAACnB,GAAIA,IAAQd,EACf,CAAA4C,SAAAe,EAACE,EACC5B,EAAA,CAAA6B,IAAKnD,GACLhB,OAAQA,EACRQ,QAASA,EACT4D,YAAY,WACZC,oBAAoB,6CACpB7F,YAAawD,GACbsC,cAAef,KACfnE,SAAUA,EACVE,UAAWA,EACXE,WAAYA,EACZK,cAAeA,EACfE,aAAcA,EACdwE,WAAYtD,GACZb,WAAYA,EACZV,aAAcA,EACdE,aAAcA,EACdzB,OAAQ4C,GACRzC,UAAWA,EACXkG,kBAAmBlE,EAAakE,kBAChCC,aAAcvD,IACVgB,OAIZ"}
|
@@ -1,3 +1,99 @@
|
|
1
|
+
import { ConfigurationItemInfo } from 'containers';
|
1
2
|
import React from 'react';
|
2
|
-
|
3
|
-
|
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
|
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","
|
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,g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AAK,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,86 @@
|
|
1
|
+
import { ConfigurationItemInfo } from 'containers';
|
1
2
|
import React from 'react';
|
2
|
-
|
3
|
-
|
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
|
+
themeSystem?: any;
|
28
|
+
buttonFontSize?: string | number;
|
29
|
+
buttonPaddingY?: string;
|
30
|
+
buttonPaddingX?: string;
|
31
|
+
buttonColor?: string;
|
32
|
+
buttonTextColor?: string;
|
33
|
+
buttonBorderColor?: string;
|
34
|
+
buttonFontWeight?: string | number;
|
35
|
+
buttonElevation?: number;
|
36
|
+
buttonHeight?: string | number;
|
37
|
+
buttonMinWidth?: string | number;
|
38
|
+
buttonMarginY?: string;
|
39
|
+
buttonMarginX?: string;
|
40
|
+
buttonBorderRadius?: string;
|
41
|
+
buttonHoverColor?: string;
|
42
|
+
buttonHoverTextColor?: string;
|
43
|
+
buttonHoverBorderColor?: string;
|
44
|
+
headerBackgroundColor?: string;
|
45
|
+
headerBorderColor?: string;
|
46
|
+
headerPadding?: string;
|
47
|
+
headerHeight?: string | number;
|
48
|
+
headerFontSize?: string | number;
|
49
|
+
headerFontWeight?: string | number;
|
50
|
+
headerTextColor?: string;
|
51
|
+
dayHeaderColor?: string;
|
52
|
+
dayHeaderFontWeight?: string | number;
|
53
|
+
eventBackgroundColor?: string;
|
54
|
+
eventBorderColor?: string;
|
55
|
+
eventTextColor?: string;
|
56
|
+
eventBorderRadius?: string;
|
57
|
+
eventOpacity?: number;
|
58
|
+
eventElevation?: number;
|
59
|
+
eventPadding?: string;
|
60
|
+
eventFontSize?: string | number;
|
61
|
+
eventFontFamily?: string;
|
62
|
+
eventFontWeight?: string | number;
|
63
|
+
cellBackgroundColor?: string;
|
64
|
+
cellHoverBackgroundColor?: string;
|
65
|
+
cellTodayBackgroundColor?: string;
|
66
|
+
cellBorderColor?: string;
|
67
|
+
cellTextColor?: string;
|
68
|
+
cellFontSize?: string | number;
|
69
|
+
cellPadding?: string;
|
70
|
+
cellHeight?: string | number;
|
71
|
+
borderStyle?: 'none' | 'solid' | 'dashed' | 'dotted' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset';
|
72
|
+
borderWidth?: string;
|
73
|
+
borderColor?: string;
|
74
|
+
borderRadius?: string;
|
75
|
+
backgroundColor?: string;
|
76
|
+
fontFamily?: string;
|
77
|
+
elevation?: number;
|
78
|
+
headerLetterSpacing?: 'normal' | 'wide' | 'wider' | 'tight';
|
79
|
+
textShadowStyle?: 'none' | 'subtle' | 'medium' | 'strong';
|
80
|
+
enableAnimations?: boolean;
|
81
|
+
animationSpeed?: string;
|
82
|
+
hoverEffect?: 'none' | 'lift' | 'scale' | 'glow' | 'bounce';
|
83
|
+
onEventAdd?: (e: any) => void;
|
84
|
+
configurationItemInfo?: ConfigurationItemInfo;
|
85
|
+
}
|
86
|
+
export declare const YearViewCalendarMolecule: React.FC<YearViewCalendarProps>;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import{__assign as
|
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 s}from"./hooks/useCalendarCore.js";import{useCalendarStyling as r}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 m=function(m){var u=m.events,v=void 0===u?[]:u,h=m.monthsPerRow,p=void 0===h?3:h,c=m.dayMaxEvents,f=void 0===c?3:c,b=m.yearViewMode,x=void 0===b?"grid":b,w=m.showPrevButton,y=void 0===w||w,M=m.showNextButton,j=void 0===M||M,g=m.showTodayButton,B=void 0===g||g,C=m.editable,E=void 0!==C&&C,_=m.droppable,A=void 0!==_&&_,R=m.selectable,S=void 0!==R&&R,H=m.businessHours,I=m.eventOverlap,N=void 0===I||I;m.showGridLines;var P=m.height,T=m.themeSystem,k=void 0===T?"standard":T,L=m.onEventAdd,O=m.configurationItemInfo,V=e(m,["events","monthsPerRow","dayMaxEvents","yearViewMode","showPrevButton","showNextButton","showTodayButton","editable","droppable","selectable","businessHours","eventOverlap","showGridLines","height","themeSystem","onEventAdd","configurationItemInfo"]),Y=[d,a],D=s({initialEvents:v,onEventAdd:L,businessHours:H}),G=D.eventsState,K=D.calRef,W=D.allowDrop,q=D.onReceive,z=r(V).sx,F={multiMonthYear:{type:"multiMonth",duration:{years:1},buttonText:"Year",multiMonthMaxColumns:"grid"===x?p:"stack"===x?1:p,multiMonthMinWidth:"continuous"===x?250:void 0,dayMaxEvents:f}},J=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:z},O,{children:t(i,{ref:K,height:P,plugins:Y,themeSystem:k,schedulerLicenseKey:"CC-Attribution-NonCommercial-NoDerivatives",initialView:"multiMonthYear",headerToolbar:J(),views:F,editable:E,droppable:A,selectable:S,businessHours:H,eventOverlap:N,eventAllow:W,events:G,eventReceive:q})}))};export{m 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","
|
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","height","_p","themeSystem","onEventAdd","configurationItemInfo","stylingProps","__rest","plugins","interactionPlugin","multiMonthPlugin","_q","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","schedulerLicenseKey","initialView","headerToolbar","views","eventAllow","eventReceive"],"mappings":"mmBA2IO,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,cAEpB,IACAC,EAAM1B,EAAA0B,OAGNC,EAAwB3B,EAAA4B,YAAxBA,OAAW,IAAAD,EAAG,WAAUA,EAGxBE,EAAU7B,EAAA6B,WAGVC,EAAqB9B,EAAA8B,sBAElBC,EAAYC,EAAAhC,EApCyD,4PAuClEiC,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,EACLb,OAAQA,EACRO,QAASA,EACTL,YAAaA,EACbuC,oBAAoB,6CACpBC,YAAY,iBACZC,cAAehB,IACfiB,MAAO1B,EACP3B,SAAUA,EACVE,UAAWA,EACXE,WAAYA,EACZC,cAAeA,EACfE,aAAcA,EACd+C,WAAY/B,EACZtC,OAAQoC,EACRkC,aAAc/B,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,SA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