@zealicsolutions/web-ui 1.0.60-test.2 → 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 +0 -6
- 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/esm/molecules/Calendar/CalendarMolecule.d.ts +0 -6
- 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/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 +0 -6
- 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,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,EAA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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,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,EACA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|
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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
+
/// <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 {};
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{__assign as o}from"../../../node_modules/tslib/tslib.es6.js";import{useMemo as r}from"react";var p=function(p){var x=function(o){if(!o||o<0)return"none";var r={0:"none",1:"0px 2px 1px -1px rgba(0,0,0,0.2), 0px 1px 1px 0px rgba(0,0,0,0.14), 0px 1px 3px 0px rgba(0,0,0,0.12)",2:"0px 3px 1px -2px rgba(0,0,0,0.2), 0px 2px 2px 0px rgba(0,0,0,0.14), 0px 1px 5px 0px rgba(0,0,0,0.12)",3:"0px 3px 3px -2px rgba(0,0,0,0.2), 0px 3px 4px 0px rgba(0,0,0,0.14), 0px 1px 8px 0px rgba(0,0,0,0.12)",4:"0px 2px 4px -1px rgba(0,0,0,0.2), 0px 4px 5px 0px rgba(0,0,0,0.14), 0px 1px 10px 0px rgba(0,0,0,0.12)",5:"0px 3px 5px -1px rgba(0,0,0,0.2), 0px 5px 8px 0px rgba(0,0,0,0.14), 0px 1px 14px 0px rgba(0,0,0,0.12)",6:"0px 3px 5px -1px rgba(0,0,0,0.2), 0px 6px 10px 0px rgba(0,0,0,0.14), 0px 1px 18px 0px rgba(0,0,0,0.12)",7:"0px 4px 5px -2px rgba(0,0,0,0.2), 0px 7px 10px 1px rgba(0,0,0,0.14), 0px 2px 16px 1px rgba(0,0,0,0.12)",8:"0px 5px 5px -3px rgba(0,0,0,0.2), 0px 8px 10px 1px rgba(0,0,0,0.14), 0px 3px 14px 2px rgba(0,0,0,0.12)",9:"0px 5px 6px -3px rgba(0,0,0,0.2), 0px 9px 12px 1px rgba(0,0,0,0.14), 0px 3px 16px 2px rgba(0,0,0,0.12)",10:"0px 6px 6px -3px rgba(0,0,0,0.2), 0px 10px 14px 1px rgba(0,0,0,0.14), 0px 4px 18px 3px rgba(0,0,0,0.12)",11:"0px 6px 7px -4px rgba(0,0,0,0.2), 0px 11px 15px 1px rgba(0,0,0,0.14), 0px 4px 20px 3px rgba(0,0,0,0.12)",12:"0px 7px 8px -4px rgba(0,0,0,0.2), 0px 12px 17px 2px rgba(0,0,0,0.14), 0px 5px 22px 4px rgba(0,0,0,0.12)",13:"0px 7px 8px -4px rgba(0,0,0,0.2), 0px 13px 19px 2px rgba(0,0,0,0.14), 0px 5px 24px 4px rgba(0,0,0,0.12)",14:"0px 7px 9px -4px rgba(0,0,0,0.2), 0px 14px 21px 2px rgba(0,0,0,0.14), 0px 5px 26px 4px rgba(0,0,0,0.12)",15:"0px 8px 9px -5px rgba(0,0,0,0.2), 0px 15px 22px 2px rgba(0,0,0,0.14), 0px 6px 28px 5px rgba(0,0,0,0.12)",16:"0px 8px 10px -5px rgba(0,0,0,0.2), 0px 16px 24px 2px rgba(0,0,0,0.14), 0px 6px 30px 5px rgba(0,0,0,0.12)",17:"0px 8px 11px -5px rgba(0,0,0,0.2), 0px 17px 26px 2px rgba(0,0,0,0.14), 0px 6px 32px 5px rgba(0,0,0,0.12)",18:"0px 9px 11px -5px rgba(0,0,0,0.2), 0px 18px 28px 2px rgba(0,0,0,0.14), 0px 7px 34px 6px rgba(0,0,0,0.12)",19:"0px 9px 12px -6px rgba(0,0,0,0.2), 0px 19px 29px 2px rgba(0,0,0,0.14), 0px 7px 36px 6px rgba(0,0,0,0.12)",20:"0px 10px 13px -6px rgba(0,0,0,0.2), 0px 20px 31px 3px rgba(0,0,0,0.14), 0px 8px 38px 7px rgba(0,0,0,0.12)",21:"0px 10px 13px -6px rgba(0,0,0,0.2), 0px 21px 33px 3px rgba(0,0,0,0.14), 0px 8px 40px 7px rgba(0,0,0,0.12)",22:"0px 10px 14px -6px rgba(0,0,0,0.2), 0px 22px 35px 3px rgba(0,0,0,0.14), 0px 8px 42px 7px rgba(0,0,0,0.12)",23:"0px 11px 14px -7px rgba(0,0,0,0.2), 0px 23px 36px 3px rgba(0,0,0,0.14), 0px 9px 44px 8px rgba(0,0,0,0.12)",24:"0px 11px 15px -7px rgba(0,0,0,0.2), 0px 24px 38px 3px rgba(0,0,0,0.14), 0px 9px 46px 8px rgba(0,0,0,0.12)"};return r[Math.min(Math.max(Math.round(o),0),24)]||r[0]};return{sx:r((function(){var r=p.width,e=p.marginLeft,a=p.marginTop,t=p.marginRight,n=p.marginBottom,d=p.paddingLeft,l=p.paddingTop,i=p.paddingRight,g=p.paddingBottom,c=p.buttonFontSize,b=p.buttonPaddingY,f=p.buttonPaddingX,u=p.buttonColor,s=p.buttonTextColor,h=p.buttonBorderColor,C=p.buttonFontWeight,m=p.buttonElevation,v=p.buttonHeight,y=p.buttonMinWidth,S=p.buttonMarginY,k=p.buttonMarginX,B=p.buttonBorderRadius,W=p.buttonHoverColor,F=p.buttonHoverTextColor,w=p.buttonHoverBorderColor,z=p.headerBackgroundColor,T=p.headerBorderColor,H=p.headerPadding,R=p.headerHeight,Y=p.headerFontSize,L=p.headerFontWeight,M=p.headerTextColor,G=p.dayHeaderColor,P=p.dayHeaderFontWeight,E=p.eventBackgroundColor,A=p.eventBorderColor,D=p.eventTextColor,I=p.eventBorderRadius,X=p.eventOpacity,j=p.eventElevation,N=p.eventPadding,O=p.eventFontSize,_=p.eventFontFamily,q=p.eventFontWeight,J=p.cellBackgroundColor,K=p.cellHoverBackgroundColor,Q=p.cellTodayBackgroundColor,U=p.cellBorderColor,V=p.cellTextColor,Z=p.cellFontSize,$=p.cellPadding,oo=p.cellHeight,ro=p.timeGridSlotHeight,po=p.timeGridSlotBorderColor,xo=p.timeGridNowIndicatorColor,eo=p.timeGridLabelFontSize,ao=p.timeGridLabelColor,to=p.nowIndicatorColor,no=p.allDayBackgroundColor,lo=p.allDayTextColor,io=p.resourceAreaWidth,go=p.resourceBackgroundColor,co=p.resourceTextColor,bo=p.resourceBorderColor,fo=p.resourceFontSize,uo=p.resourcePadding,so=p.borderStyle,ho=p.borderWidth,Co=p.borderColor,mo=p.borderRadius,vo=p.backgroundColor,yo=p.fontFamily,So=p.elevation,ko=p.enableAnimations,Bo=p.animationSpeed,Wo=p.hoverEffect,Fo=p.showGridLines;return o(o({width:r,marginLeft:e,marginTop:a,marginRight:t,marginBottom:n,paddingLeft:d,paddingTop:l,paddingRight:i,paddingBottom:g,"& .fc .fc-toolbar":{backgroundColor:z,color:M,borderColor:T,padding:H,height:R,"& .fc-toolbar-title":{fontSize:Y,fontWeight:L,color:M}},"& .fc .fc-col-header-cell-cushion":{color:G,fontWeight:P},"& .fc .fc-timegrid-slot-label-cushion":{color:ao,fontSize:eo},"& .fc .fc-event":{color:D},"& .fc .fc-event:hover":{backgroundColor:E},"& .fc .fc-event-title":{fontSize:O,fontFamily:_,fontWeight:q},"& .fc .fc-now-indicator":{backgroundColor:to},"& .fc .fc-timegrid-now-indicator-line":{backgroundColor:xo||to},"& .fc .fc-timegrid-slot":{height:ro,borderColor:po},"& .fc .fc-resource-area":{backgroundColor:go,width:io,borderColor:bo,"& .fc-resource-cell":{color:co,fontSize:fo,padding:uo}},"& .fc .fc-resource .fc-resource-title":{color:co},"& .fc .fc-resource-area-cell":{borderColor:bo}},Fo?{}:{"& .fc .fc-scrollgrid-shim, & .fc .fc-timegrid-divider":{display:"none"}}),{"& .fc":{borderRadius:mo,borderColor:Co,borderWidth:ho,borderStyle:so||"none",boxShadow:x(So),fontFamily:yo,backgroundColor:vo},"& .fc .fc-button":o({fontSize:c,padding:b||f?"".concat(b||"0"," ").concat(f||"0"):void 0,borderRadius:B,backgroundColor:u,color:s,borderColor:h,fontWeight:C,boxShadow:x(m),height:v,minWidth:y,margin:S||k?"".concat(S||"0"," ").concat(k||"0"):void 0},ko&&{transition:"all ".concat(Bo||"0.3s"," ease"),"&:hover":{backgroundColor:W,color:F,borderColor:w,transform:"lift"===Wo?"translateY(-2px)":"scale"===Wo?"scale(1.05)":"bounce"===Wo?"translateY(-1px) scale(1.02)":"none"}}),"& .fc-event":o({backgroundColor:E,color:D,borderColor:A,borderRadius:I,fontSize:O,fontWeight:q,opacity:X,boxShadow:x(j),padding:N,borderWidth:ho,borderStyle:so||"none"},ko&&{transition:"all ".concat(Bo||"0.3s"," ease"),"&:hover":{transform:"lift"===Wo?"translateY(-3px)":"scale"===Wo?"scale(1.02)":"glow"===Wo?"translateY(-1px)":"bounce"===Wo?"translateY(-2px) scale(1.01)":"none",boxShadow:"".concat(x(j)||"","glow"===Wo?", 0 0 20px rgba(103, 58, 183, 0.4)":", 0 8px 25px rgba(0, 0, 0, 0.15)")}}),"& .fc .fc-daygrid-day, & .fc .fc-timegrid-slot, & .fc .fc-col-header-cell":o({backgroundColor:J,borderColor:U,borderWidth:ho,borderStyle:so||"none",padding:$,height:oo,color:V,fontSize:Z},ko&&{transition:"all ".concat(Bo||"0.3s"," ease"),"&:hover":{backgroundColor:K,transform:"scale"===Wo?"scale(1.02)":"lift"===Wo?"translateY(-1px)":"none"}}),"& .fc .fc-day-today":{backgroundColor:Q},"& .fc .fc-timegrid-all-day-slot":{backgroundColor:no},"& .fc .fc-timegrid-all-day-slot .fc-event":{color:lo},'& .fc .fc-daygrid-day .fc-event[data-all-day="true"]':{color:lo,backgroundColor:no}})}),[p]),getMaterialElevation:x}};export{p as useCalendarStyling};
|
2
|
+
//# sourceMappingURL=useCalendarStyling.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useCalendarStyling.js","sources":["../../../../../../src/molecules/Calendar/hooks/useCalendarStyling.ts"],"sourcesContent":[null],"names":["useCalendarStyling","props","getMaterialElevation","elevation","shadows","Math","min","max","round","sx","useMemo","width","marginLeft","marginTop","marginRight","marginBottom","paddingLeft","paddingTop","paddingRight","paddingBottom","buttonFontSize","buttonPaddingY","buttonPaddingX","buttonColor","buttonTextColor","buttonBorderColor","buttonFontWeight","buttonElevation","buttonHeight","buttonMinWidth","buttonMarginY","buttonMarginX","buttonBorderRadius","buttonHoverColor","buttonHoverTextColor","buttonHoverBorderColor","headerBackgroundColor","headerBorderColor","headerPadding","headerHeight","headerFontSize","headerFontWeight","headerTextColor","dayHeaderColor","dayHeaderFontWeight","eventBackgroundColor","eventBorderColor","eventTextColor","eventBorderRadius","eventOpacity","eventElevation","eventPadding","eventFontSize","eventFontFamily","eventFontWeight","cellBackgroundColor","cellHoverBackgroundColor","cellTodayBackgroundColor","cellBorderColor","cellTextColor","cellFontSize","cellPadding","cellHeight","timeGridSlotHeight","timeGridSlotBorderColor","timeGridNowIndicatorColor","timeGridLabelFontSize","timeGridLabelColor","nowIndicatorColor","allDayBackgroundColor","allDayTextColor","resourceAreaWidth","resourceBackgroundColor","resourceTextColor","resourceBorderColor","resourceFontSize","resourcePadding","borderStyle","borderWidth","borderColor","borderRadius","backgroundColor","fontFamily","enableAnimations","animationSpeed","hoverEffect","showGridLines","__assign","color","padding","height","fontSize","fontWeight","display","boxShadow","concat","undefined","minWidth","margin","transition","transform","opacity"],"mappings":"oGAmGO,IAAMA,EAAqB,SAACC,GAE/B,IAAMC,EAAuB,SAACC,GAC1B,IAAKA,GAAaA,EAAY,EAAG,MAAO,OAExC,IAAMC,EAAU,CACZ,EAAG,OACH,EAAG,uGACH,EAAG,uGACH,EAAG,uGACH,EAAG,wGACH,EAAG,wGACH,EAAG,yGACH,EAAG,yGACH,EAAG,yGACH,EAAG,yGACH,GAAI,0GACJ,GAAI,0GACJ,GAAI,0GACJ,GAAI,0GACJ,GAAI,0GACJ,GAAI,0GACJ,GAAI,2GACJ,GAAI,2GACJ,GAAI,2GACJ,GAAI,2GACJ,GAAI,4GACJ,GAAI,4GACJ,GAAI,4GACJ,GAAI,4GACJ,GAAI,6GAIR,OAAOA,EADkBC,KAAKC,IAAID,KAAKE,IAAIF,KAAKG,MAAML,GAAY,GAAI,MACVC,EAAQ,EACxE,EAgQA,MAAO,CAAEK,GA9PEC,GAAQ,WAEX,IAAAC,EA6EAV,EAAKU,MA5ELC,EA4EAX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L,WAAhBA,GAA2B,+BAAiC,OACxES,UACM,UAAG5F,EAAqBgD,IAAmB,GADtB,SAAhBmC,GAC4E,qCACF,uCAMjG,+EACIJ,gBAAiB1B,EACjBwB,YAAarB,EACboB,YAAaA,GACbD,YAAaA,IAAe,OAC5BY,QAAS5B,EACT6B,OAAQ5B,GACR0B,MAAO7B,EACPgC,SAAU/B,GACNuB,IAAoB,CACpBgB,WAAY,OAAAJ,OAAOX,IAAkB,OAAa,SAClD,UAAW,CACPH,gBAAiBzB,EACjB4C,UAA2B,UAAhBf,GAA0B,cACjB,SAAhBA,GAAyB,mBAAqB,UAM9D,sBAAuB,CACnBJ,gBAAiBxB,GAIrB,kCAAmC,CAC/BwB,gBAAiBZ,IAErB,4CAA6C,CACzCmB,MAAOlB,IAEX,uDAAwD,CACpDkB,MAAOlB,GACPW,gBAAiBZ,KAG7B,GAAG,CAACpE,IAESC,qBAAoBA,EACrC"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import{createPlugin as e}from"../core/index.js";import{
|
1
|
+
import{createPlugin as e}from"../core/index.js";import{createElement as o,Fragment as t}from"../../preact/dist/preact.mjs.js";import{bk as i,t as n,bG as r}from"../core/internal-common.js";const s=["GPL-My-Project-Is-Open-Source","CC-Attribution-NonCommercial-NoDerivatives"],a={position:"absolute",zIndex:99999,bottom:"1px",left:"1px",background:"#eee",borderColor:"#ddd",borderStyle:"solid",borderWidth:"1px 1px 0 0",padding:"2px 4px",fontSize:"12px",borderTopRightRadius:"3px"};var l=e({name:"@fullcalendar/premium-common",premiumReleaseDate:"2025-04-02",optionRefiners:{schedulerLicenseKey:String},viewContainerAppends:[function(e){let l=e.options.schedulerLicenseKey,d="undefined"!=typeof window?window.location.href:"";if(!/\w+:\/\/fullcalendar\.io\/|\/examples\/[\w-]+\.html$/.test(d)){let d=function(e,o){if(-1!==s.indexOf(e))return"valid";const t=(e||"").match(/^(\d+)-fcs-(\d+)$/);if(t&&10===t[1].length){const e=new Date(1e3*parseInt(t[2],10)),s=r.mockSchedulerReleaseDate||o;if(i(s)){return n(s,-372)<e?"valid":"outdated"}}return"invalid"}(l,e.pluginHooks.premiumReleaseDate);if("valid"!==d)return o("div",{className:"fc-license-message",style:a},"outdated"===d?o(t,null,"Your license key is too old to work with this version. ",o("a",{href:"https://fullcalendar.io/docs/schedulerLicenseKey#outdated"},"More Info")):o(t,null,"Your license key is invalid. ",o("a",{href:"https://fullcalendar.io/docs/schedulerLicenseKey#invalid"},"More Info")))}return null}]});export{l as default};
|
2
2
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../node_modules/@fullcalendar/premium-common/index.js"],"sourcesContent":["import { createPlugin } from '@fullcalendar/core/index.js';\nimport { config, isValidDate, addDays } from '@fullcalendar/core/internal.js';\nimport { createElement, Fragment } from '@fullcalendar/core/preact.js';\n\nconst UPGRADE_WINDOW = 365 + 7; // days. 1 week leeway, for tz shift reasons too\nconst INVALID_LICENSE_URL = 'https://fullcalendar.io/docs/schedulerLicenseKey#invalid';\nconst OUTDATED_LICENSE_URL = 'https://fullcalendar.io/docs/schedulerLicenseKey#outdated';\nconst PRESET_LICENSE_KEYS = [\n 'GPL-My-Project-Is-Open-Source',\n 'CC-Attribution-NonCommercial-NoDerivatives',\n];\nconst CSS = {\n position: 'absolute',\n zIndex: 99999,\n bottom: '1px',\n left: '1px',\n background: '#eee',\n borderColor: '#ddd',\n borderStyle: 'solid',\n borderWidth: '1px 1px 0 0',\n padding: '2px 4px',\n fontSize: '12px',\n borderTopRightRadius: '3px',\n};\nfunction buildLicenseWarning(context) {\n let key = context.options.schedulerLicenseKey;\n let currentUrl = typeof window !== 'undefined' ? window.location.href : '';\n if (!isImmuneUrl(currentUrl)) {\n let status = processLicenseKey(key, context.pluginHooks.premiumReleaseDate);\n if (status !== 'valid') {\n return (createElement(\"div\", { className: \"fc-license-message\", style: CSS }, (status === 'outdated') ? (createElement(Fragment, null,\n 'Your license key is too old to work with this version. ',\n createElement(\"a\", { href: OUTDATED_LICENSE_URL }, \"More Info\"))) : (createElement(Fragment, null,\n 'Your license key is invalid. ',\n createElement(\"a\", { href: INVALID_LICENSE_URL }, \"More Info\")))));\n }\n }\n return null;\n}\n/*\nThis decryption is not meant to be bulletproof. Just a way to remind about an upgrade.\n*/\nfunction processLicenseKey(key, premiumReleaseDate) {\n if (PRESET_LICENSE_KEYS.indexOf(key) !== -1) {\n return 'valid';\n }\n const parts = (key || '').match(/^(\\d+)-fcs-(\\d+)$/);\n if (parts && (parts[1].length === 10)) {\n const purchaseDate = new Date(parseInt(parts[2], 10) * 1000);\n const releaseDate = config.mockSchedulerReleaseDate || premiumReleaseDate;\n if (isValidDate(releaseDate)) { // token won't be replaced in dev mode\n const minPurchaseDate = addDays(releaseDate, -UPGRADE_WINDOW);\n if (minPurchaseDate < purchaseDate) {\n return 'valid';\n }\n return 'outdated';\n }\n }\n return 'invalid';\n}\nfunction isImmuneUrl(url) {\n return /\\w+:\\/\\/fullcalendar\\.io\\/|\\/examples\\/[\\w-]+\\.html$/.test(url);\n}\n\nconst OPTION_REFINERS = {\n schedulerLicenseKey: String,\n};\n\nvar index = createPlugin({\n name: '@fullcalendar/premium-common',\n premiumReleaseDate: '2025-04-02',\n optionRefiners: OPTION_REFINERS,\n viewContainerAppends: [buildLicenseWarning],\n});\n\nexport { index as default };\n"],"names":["PRESET_LICENSE_KEYS","CSS","position","zIndex","bottom","left","background","borderColor","borderStyle","borderWidth","padding","fontSize","borderTopRightRadius","index","createPlugin","name","premiumReleaseDate","optionRefiners","schedulerLicenseKey","String","viewContainerAppends","context","key","options","currentUrl","window","location","href","test","status","indexOf","parts","match","length","purchaseDate","Date","parseInt","releaseDate","config","mockSchedulerReleaseDate","isValidDate","addDays","processLicenseKey","pluginHooks","createElement","className","style","Fragment"],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../node_modules/@fullcalendar/premium-common/index.js"],"sourcesContent":["import { createPlugin } from '@fullcalendar/core/index.js';\nimport { config, isValidDate, addDays } from '@fullcalendar/core/internal.js';\nimport { createElement, Fragment } from '@fullcalendar/core/preact.js';\n\nconst UPGRADE_WINDOW = 365 + 7; // days. 1 week leeway, for tz shift reasons too\nconst INVALID_LICENSE_URL = 'https://fullcalendar.io/docs/schedulerLicenseKey#invalid';\nconst OUTDATED_LICENSE_URL = 'https://fullcalendar.io/docs/schedulerLicenseKey#outdated';\nconst PRESET_LICENSE_KEYS = [\n 'GPL-My-Project-Is-Open-Source',\n 'CC-Attribution-NonCommercial-NoDerivatives',\n];\nconst CSS = {\n position: 'absolute',\n zIndex: 99999,\n bottom: '1px',\n left: '1px',\n background: '#eee',\n borderColor: '#ddd',\n borderStyle: 'solid',\n borderWidth: '1px 1px 0 0',\n padding: '2px 4px',\n fontSize: '12px',\n borderTopRightRadius: '3px',\n};\nfunction buildLicenseWarning(context) {\n let key = context.options.schedulerLicenseKey;\n let currentUrl = typeof window !== 'undefined' ? window.location.href : '';\n if (!isImmuneUrl(currentUrl)) {\n let status = processLicenseKey(key, context.pluginHooks.premiumReleaseDate);\n if (status !== 'valid') {\n return (createElement(\"div\", { className: \"fc-license-message\", style: CSS }, (status === 'outdated') ? (createElement(Fragment, null,\n 'Your license key is too old to work with this version. ',\n createElement(\"a\", { href: OUTDATED_LICENSE_URL }, \"More Info\"))) : (createElement(Fragment, null,\n 'Your license key is invalid. ',\n createElement(\"a\", { href: INVALID_LICENSE_URL }, \"More Info\")))));\n }\n }\n return null;\n}\n/*\nThis decryption is not meant to be bulletproof. Just a way to remind about an upgrade.\n*/\nfunction processLicenseKey(key, premiumReleaseDate) {\n if (PRESET_LICENSE_KEYS.indexOf(key) !== -1) {\n return 'valid';\n }\n const parts = (key || '').match(/^(\\d+)-fcs-(\\d+)$/);\n if (parts && (parts[1].length === 10)) {\n const purchaseDate = new Date(parseInt(parts[2], 10) * 1000);\n const releaseDate = config.mockSchedulerReleaseDate || premiumReleaseDate;\n if (isValidDate(releaseDate)) { // token won't be replaced in dev mode\n const minPurchaseDate = addDays(releaseDate, -UPGRADE_WINDOW);\n if (minPurchaseDate < purchaseDate) {\n return 'valid';\n }\n return 'outdated';\n }\n }\n return 'invalid';\n}\nfunction isImmuneUrl(url) {\n return /\\w+:\\/\\/fullcalendar\\.io\\/|\\/examples\\/[\\w-]+\\.html$/.test(url);\n}\n\nconst OPTION_REFINERS = {\n schedulerLicenseKey: String,\n};\n\nvar index = createPlugin({\n name: '@fullcalendar/premium-common',\n premiumReleaseDate: '2025-04-02',\n optionRefiners: OPTION_REFINERS,\n viewContainerAppends: [buildLicenseWarning],\n});\n\nexport { index as default };\n"],"names":["PRESET_LICENSE_KEYS","CSS","position","zIndex","bottom","left","background","borderColor","borderStyle","borderWidth","padding","fontSize","borderTopRightRadius","index","createPlugin","name","premiumReleaseDate","optionRefiners","schedulerLicenseKey","String","viewContainerAppends","context","key","options","currentUrl","window","location","href","test","status","indexOf","parts","match","length","purchaseDate","Date","parseInt","releaseDate","config","mockSchedulerReleaseDate","isValidDate","addDays","processLicenseKey","pluginHooks","createElement","className","style","Fragment"],"mappings":"6LAIA,MAGMA,EAAsB,CACxB,gCACA,8CAEEC,EAAM,CACRC,SAAU,WACVC,OAAQ,MACRC,OAAQ,MACRC,KAAM,MACNC,WAAY,OACZC,YAAa,OACbC,YAAa,QACbC,YAAa,cACbC,QAAS,UACTC,SAAU,OACVC,qBAAsB,OA8CvB,IAACC,EAAQC,EAAa,CACrBC,KAAM,+BACNC,mBAAoB,aACpBC,eAPoB,CACpBC,oBAAqBC,QAOrBC,qBAAsB,CAhD1B,SAA6BC,GACzB,IAAIC,EAAMD,EAAQE,QAAQL,oBACtBM,EAA+B,oBAAXC,OAAyBA,OAAOC,SAASC,KAAO,GACxE,IAkCO,uDAAuDC,KAlC7CJ,GAAa,CAC1B,IAAIK,EAcZ,SAA2BP,EAAKN,GAC5B,IAA0C,IAAtChB,EAAoB8B,QAAQR,GAC5B,MAAO,QAEX,MAAMS,GAAST,GAAO,IAAIU,MAAM,qBAChC,GAAID,GAA8B,KAApBA,EAAM,GAAGE,OAAgB,CACnC,MAAMC,EAAe,IAAIC,KAA8B,IAAzBC,SAASL,EAAM,GAAI,KAC3CM,EAAcC,EAAOC,0BAA4BvB,EACvD,GAAIwB,EAAYH,GAAc,CAE1B,OADwBI,EAAQJ,GA/CrB,KAgDWH,EACX,QAEJ,UACV,CACJ,CACD,MAAO,SACX,CA/BqBQ,CAAkBpB,EAAKD,EAAQsB,YAAY3B,oBACxD,GAAe,UAAXa,EACA,OAAQe,EAAc,MAAO,CAAEC,UAAW,qBAAsBC,MAAO7C,GAAmB,aAAX4B,EAA0Be,EAAcG,EAAU,KAC7H,0DACAH,EAAc,IAAK,CAAEjB,KA1BR,6DA0BsC,cAAkBiB,EAAcG,EAAU,KAC7F,gCACAH,EAAc,IAAK,CAAEjB,KA7BT,4DA6BsC,cAE7D,CACD,OAAO,IACX"}
|