@zealicsolutions/web-ui 1.0.44-beta-8 → 1.0.44-beta-9
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 +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/molecules/Calendar/CalendarMolecule.d.ts +19 -0
- package/dist/esm/molecules/Calendar/CalendarMolecule.d.ts +19 -0
- package/dist/esm/molecules/Calendar/CalendarMolecule.js +1 -1
- package/dist/esm/molecules/Calendar/CalendarMolecule.js.map +1 -1
- package/dist/index.d.ts +19 -0
- package/package.json +1 -1
@@ -28,6 +28,25 @@ export interface CalendarMoleculeProps {
|
|
28
28
|
paddingBottom?: string;
|
29
29
|
primaryColor?: string;
|
30
30
|
secondaryColor?: string;
|
31
|
+
toolbarBg?: string;
|
32
|
+
toolbarTextColor?: string;
|
33
|
+
buttonBg?: string;
|
34
|
+
buttonTextColor?: string;
|
35
|
+
buttonHoverBg?: string;
|
36
|
+
dayHeaderColor?: string;
|
37
|
+
dayHeaderFontWeight?: number | string;
|
38
|
+
slotLabelColor?: string;
|
39
|
+
slotLabelFontSize?: string | number;
|
40
|
+
eventBg?: string;
|
41
|
+
eventBorderColor?: string;
|
42
|
+
eventTextColor?: string;
|
43
|
+
eventHoverBg?: string;
|
44
|
+
nowIndicatorColor?: string;
|
45
|
+
resourceAreaBg?: string;
|
46
|
+
resourceTextColor?: string;
|
47
|
+
resourceBorderColor?: string;
|
48
|
+
bodyBg?: string;
|
49
|
+
resourceAreaWidth?: string | number;
|
31
50
|
/** callback whenever a drop creates a new event */
|
32
51
|
onEventAdd?: (e: EventInput) => void;
|
33
52
|
configurationItemInfo?: ConfigurationItemInfo;
|
@@ -28,6 +28,25 @@ export interface CalendarMoleculeProps {
|
|
28
28
|
paddingBottom?: string;
|
29
29
|
primaryColor?: string;
|
30
30
|
secondaryColor?: string;
|
31
|
+
toolbarBg?: string;
|
32
|
+
toolbarTextColor?: string;
|
33
|
+
buttonBg?: string;
|
34
|
+
buttonTextColor?: string;
|
35
|
+
buttonHoverBg?: string;
|
36
|
+
dayHeaderColor?: string;
|
37
|
+
dayHeaderFontWeight?: number | string;
|
38
|
+
slotLabelColor?: string;
|
39
|
+
slotLabelFontSize?: string | number;
|
40
|
+
eventBg?: string;
|
41
|
+
eventBorderColor?: string;
|
42
|
+
eventTextColor?: string;
|
43
|
+
eventHoverBg?: string;
|
44
|
+
nowIndicatorColor?: string;
|
45
|
+
resourceAreaBg?: string;
|
46
|
+
resourceTextColor?: string;
|
47
|
+
resourceBorderColor?: string;
|
48
|
+
bodyBg?: string;
|
49
|
+
resourceAreaWidth?: string | number;
|
31
50
|
/** callback whenever a drop creates a new event */
|
32
51
|
onEventAdd?: (e: EventInput) => void;
|
33
52
|
configurationItemInfo?: ConfigurationItemInfo;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import{__spreadArray as e,__assign as
|
1
|
+
import{__spreadArray as e,__assign as o}from"../../node_modules/tslib/tslib.es6.js";import{jsx as r}from"../../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js";import{useRef as t,useState as i,useEffect as n,useCallback as d}from"react";import a from"../../node_modules/@fullcalendar/react/dist/index.js";import l,{Draggable as c}from"../../node_modules/@fullcalendar/interaction/index.js";import s from"../../node_modules/@fullcalendar/daygrid/index.js";import u from"../../node_modules/@fullcalendar/timegrid/index.js";import m from"../../node_modules/@fullcalendar/list/index.js";import f from"../../node_modules/@fullcalendar/timeline/index.js";import g from"../../node_modules/@fullcalendar/resource/index.js";import v from"../../node_modules/@fullcalendar/resource-timegrid/index.js";import b from"../../node_modules/@fullcalendar/resource-timeline/index.js";import p from"../../node_modules/@mui/material/Box/Box.js";var h=function(h){var y=h.events,C=void 0===y?[]:y,x=h.resources,T=h.initialView,j=void 0===T?"dayGridMonth":T,B=h.enableDayGrid,D=void 0===B||B,k=h.enableTimeGrid,_=void 0===k||k,G=h.enableList,S=void 0!==G&&G,W=h.enableTimeline,w=void 0!==W&&W,L=h.enableResourceTimeline,M=void 0!==L&&L,A=h.slotDuration,H=void 0===A?"00:15:00":A,R=h.snapDuration,I=void 0===R?"00:05:00":R,N=h.businessHours,O=h.width,z=h.height,E=void 0===z?"auto":z,F=h.backgroundColor,J=h.themeSystem,V=void 0===J?"standard":J,Y=h.marginLeft,K=void 0===Y?"0":Y,q=h.marginTop,P=void 0===q?"0":q,Q=h.marginRight,U=void 0===Q?"0":Q,X=h.marginBottom,Z=void 0===X?"0":X,$=h.paddingLeft,ee=void 0===$?"0":$,oe=h.paddingTop,re=void 0===oe?"0":oe,te=h.paddingRight,ie=void 0===te?"0":te,ne=h.paddingBottom,de=void 0===ne?"0":ne,ae=h.primaryColor;h.secondaryColor,h.toolbarBg,h.toolbarTextColor,h.buttonBg,h.buttonTextColor,h.buttonHoverBg,h.dayHeaderColor,h.dayHeaderFontWeight,h.slotLabelColor,h.slotLabelFontSize,h.eventBg,h.eventBorderColor,h.eventTextColor,h.eventHoverBg,h.nowIndicatorColor,h.resourceAreaBg,h.resourceTextColor,h.resourceBorderColor,h.bodyBg,h.resourceAreaWidth;var le=h.onEventAdd,ce=h.configurationItemInfo,se=t(null),ue=i(C),me=ue[0],fe=ue[1];n((function(){var e=new c(document.body,{itemSelector:".fc-event-external",eventData:function(e){var o=JSON.parse(e.getAttribute("data-event")),r=Math.floor(o.duration/60),t=o.duration%60;return{id:o.id,title:o.title,duration:"".concat(r,":").concat(t.toString().padStart(2,"0"))}}});return function(){return e.destroy()}}),[]);var ge=d((function(o){var r=JSON.parse(o.draggedEl.getAttribute("data-event")),t=o.event.start,i=new Date(t.getTime()+6e4*r.duration),n={id:"".concat(r.id,"-").concat(t.getTime()),title:r.title,start:t,end:i,resourceId:r.resourceId};fe((function(o){return e(e([],o,!0),[n],!1)})),null==le||le(n),o.event.remove()}),[le]),ve=[l,s,u,m,f,g,v,b],be={dayGridMonth:D,dayGridWeek:D,dayGridDay:D,timeGridWeek:_,timeGridDay:_,listYear:S,listMonth:S,listWeek:S,listDay:S,timelineYear:w,timelineMonth:w,timelineWeek:w,timelineDay:w,resourceTimeGridWeek:M,resourceTimeGridDay:M,resourceTimelineMonth:M,resourceTimelineWeek:M,resourceTimelineDay:M},pe=Object.entries(be).filter((function(e){return e[0],e[1]})).map((function(e){return e[0]})).join(","),he=be[j]?j:pe.split(",")[0]||"dayGridMonth";return console.log(ae),r(p,o({sx:{width:O,height:E,backgroundColor:F,marginLeft:K,marginTop:P,marginRight:U,marginBottom:Z,paddingLeft:ee,paddingTop:re,paddingRight:ie,paddingBottom:de,"--fc-button-bg":ae,"--fc-button-color":ae,"--fc-button-hover-bg":ae,"& .fc .fc-toolbar":{backgroundColor:ae},"& .fc .fc-col-header-cell-cushion":{color:ae,fontWeight:ae},"& .fc .fc-timegrid-slot-label-cushion":{color:ae,fontSize:ae},"& .fc .fc-event":{backgroundColor:ae,borderColor:ae,color:ae},"& .fc .fc-event:hover":{backgroundColor:ae},"& .fc .fc-now-indicator":{backgroundColor:ae},"& .fc .fc-resource-area":{backgroundColor:ae},"& .fc .fc-resource .fc-resource-title":{color:ae},"& .fc .fc-resource-area-cell":{borderColor:ae},"& .fc .fc-scrollgrid-section":{backgroundColor:ae}}},ce,{children:r(a,{ref:se,themeSystem:V,schedulerLicenseKey:"CC-Attribution-NonCommercial-NoDerivatives",plugins:ve,initialView:he,headerToolbar:{left:"prev,next today",center:"title",right:"".concat(pe)},editable:!0,droppable:!0,selectable:!0,businessHours:N,slotDuration:H,snapDuration:I,events:me,resources:x,eventReceive:ge})}))};export{h as CalendarMolecule};
|
2
2
|
//# sourceMappingURL=CalendarMolecule.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CalendarMolecule.js","sources":["../../../../../src/molecules/Calendar/CalendarMolecule.tsx"],"sourcesContent":[null],"names":["CalendarMolecule","_a","_b","events","initialEvents","resources","_c","initialView","_d","enableDayGrid","_e","enableTimeGrid","_f","enableList","_g","enableTimeline","_h","enableResourceTimeline","_j","slotDuration","_k","snapDuration","businessHours","width","_l","height","backgroundColor","_m","themeSystem","_o","marginLeft","_p","marginTop","_q","marginRight","_r","marginBottom","_s","paddingLeft","_t","paddingTop","_u","paddingRight","_v","paddingBottom","primaryColor","secondaryColor","onEventAdd","configurationItemInfo","calendarRef","useRef","_w","useState","eventsState","setEventsState","useEffect","dd","Draggable","document","body","itemSelector","eventData","el","raw","JSON","parse","getAttribute","hrs","Math","floor","duration","mins","id","title","concat","toString","padStart","destroy","onEventReceive","useCallback","info","draggedEl","start","event","end","Date","getTime","newEvt","resourceId","prev","__spreadArray","remove","ALL_PLUGINS","interactionPlugin","dayGridPlugin","timeGridPlugin","listPlugin","timelinePlugin","resourcePlugin","resourceTimeGridPlugin","resourceTimelinePlugin","viewMap","dayGridMonth","dayGridWeek","dayGridDay","timeGridWeek","timeGridDay","listYear","listMonth","listWeek","listDay","timelineYear","timelineMonth","timelineWeek","timelineDay","resourceTimeGridWeek","resourceTimeGridDay","resourceTimelineMonth","resourceTimelineWeek","resourceTimelineDay","toolbarViews","Object","entries","filter","map","join","safeInitialView","split","_jsx","Box","__assign","sx","FullCalendar","ref","schedulerLicenseKey","plugins","headerToolbar","left","center","right","editable","droppable","selectable","eventReceive"],"mappings":"
|
1
|
+
{"version":3,"file":"CalendarMolecule.js","sources":["../../../../../src/molecules/Calendar/CalendarMolecule.tsx"],"sourcesContent":[null],"names":["CalendarMolecule","_a","_b","events","initialEvents","resources","_c","initialView","_d","enableDayGrid","_e","enableTimeGrid","_f","enableList","_g","enableTimeline","_h","enableResourceTimeline","_j","slotDuration","_k","snapDuration","businessHours","width","_l","height","backgroundColor","_m","themeSystem","_o","marginLeft","_p","marginTop","_q","marginRight","_r","marginBottom","_s","paddingLeft","_t","paddingTop","_u","paddingRight","_v","paddingBottom","primaryColor","secondaryColor","toolbarBg","toolbarTextColor","buttonBg","buttonTextColor","buttonHoverBg","dayHeaderColor","dayHeaderFontWeight","slotLabelFontSize","eventBg","eventBorderColor","eventTextColor","eventHoverBg","nowIndicatorColor","resourceAreaBg","resourceTextColor","bodyBg","resourceAreaWidth","onEventAdd","configurationItemInfo","calendarRef","useRef","_w","useState","eventsState","setEventsState","useEffect","dd","Draggable","document","body","itemSelector","eventData","el","raw","JSON","parse","getAttribute","hrs","Math","floor","duration","mins","id","title","concat","toString","padStart","destroy","onEventReceive","useCallback","info","draggedEl","start","event","end","Date","getTime","newEvt","resourceId","prev","__spreadArray","remove","ALL_PLUGINS","interactionPlugin","dayGridPlugin","timeGridPlugin","listPlugin","timelinePlugin","resourcePlugin","resourceTimeGridPlugin","resourceTimelinePlugin","viewMap","dayGridMonth","dayGridWeek","dayGridDay","timeGridWeek","timeGridDay","listYear","listMonth","listWeek","listDay","timelineYear","timelineMonth","timelineWeek","timelineDay","resourceTimeGridWeek","resourceTimeGridDay","resourceTimelineMonth","resourceTimelineWeek","resourceTimelineDay","toolbarViews","Object","entries","filter","map","join","safeInitialView","split","console","log","_jsx","Box","__assign","sx","color","fontWeight","fontSize","borderColor","FullCalendar","ref","schedulerLicenseKey","plugins","headerToolbar","left","center","right","editable","droppable","selectable","eventReceive"],"mappings":"07BAwFO,IAAMA,EAAoD,SAACC,OAChEC,EAA0BD,EAAAE,OAAlBC,OAAgB,IAAAF,EAAA,KACxBG,EAASJ,EAAAI,UACTC,EAA4BL,EAAAM,YAA5BA,OAAc,IAAAD,EAAA,iBACdE,EAAAP,EAAAQ,cAAAA,OAAa,IAAAD,GAAOA,EACpBE,EAAAT,EAAAU,eAAAA,OAAc,IAAAD,GAAOA,EACrBE,eAAAC,OAAa,IAAAD,GAAKA,EAClBE,mBAAAC,OAAiB,IAAAD,GAAKA,EACtBE,2BAAAC,OAAyB,IAAAD,GAAKA,EAC9BE,iBAAAC,aAAe,WAAUD,EACzBE,EAAyBnB,EAAAoB,aAAzBA,OAAY,IAAAD,EAAG,WAAUA,EACzBE,EAAarB,EAAAqB,cACbC,EAAKtB,EAAAsB,MACLC,WAAAC,OAAS,IAAAD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W,CAChB/H,MAAKA,EACLE,OAAMA,EACNC,gBAAeA,EACfI,WAAUA,EACVE,UAASA,EACTE,YAAWA,EACXE,aAAYA,EACZE,YAAWA,GACXE,WAAUA,GACVE,aAAYA,GACZE,cAAaA,GACb,iBAAkBC,GAClB,oBAAqBA,GACrB,uBAAwBA,GAExB,oBAAqB,CACnBnB,gBAAiBmB,IAEnB,oCAAqC,CACnC0G,MAAO1G,GACP2G,WAAY3G,IAEd,wCAAyC,CACvC0G,MAAO1G,GACP4G,SAAU5G,IAEZ,kBAAmB,CACjBnB,gBAAiBmB,GACjB6G,YAAa7G,GACb0G,MAAO1G,IAET,wBAAyB,CACvBnB,gBAAiBmB,IAEnB,0BAA2B,CACzBnB,gBAAiBmB,IAEnB,0BAA2B,CACzBnB,gBAAiBmB,IAEnB,wCAAyC,CACvC0G,MAAO1G,IAET,+BAAgC,CAC9B6G,YAAa7G,IAEf,+BAAgC,CAC9BnB,gBAAiBmB,MAKKoB,aACtBkF,EAACQ,EACC,CAAAC,IAAK1F,GACLtC,YAAaA,EACbiI,oBAAoB,6CACpBC,QAASjD,GACTtG,YAAawI,GACbgB,cAAe,CACbC,KAAM,kBACNC,OAAQ,QACRC,MAAO,GAAGvE,OAAA8C,KAEZ0B,UAAQ,EACRC,WAAS,EACTC,YACA,EAAA/I,cAAeA,EACfH,aAAcA,EACdE,aAAcA,EACdlB,OAAQmE,GACRjE,UAAWA,EACXiK,aAAcvE,OAItB"}
|
package/dist/index.d.ts
CHANGED
@@ -1832,6 +1832,25 @@ interface CalendarMoleculeProps {
|
|
1832
1832
|
paddingBottom?: string;
|
1833
1833
|
primaryColor?: string;
|
1834
1834
|
secondaryColor?: string;
|
1835
|
+
toolbarBg?: string;
|
1836
|
+
toolbarTextColor?: string;
|
1837
|
+
buttonBg?: string;
|
1838
|
+
buttonTextColor?: string;
|
1839
|
+
buttonHoverBg?: string;
|
1840
|
+
dayHeaderColor?: string;
|
1841
|
+
dayHeaderFontWeight?: number | string;
|
1842
|
+
slotLabelColor?: string;
|
1843
|
+
slotLabelFontSize?: string | number;
|
1844
|
+
eventBg?: string;
|
1845
|
+
eventBorderColor?: string;
|
1846
|
+
eventTextColor?: string;
|
1847
|
+
eventHoverBg?: string;
|
1848
|
+
nowIndicatorColor?: string;
|
1849
|
+
resourceAreaBg?: string;
|
1850
|
+
resourceTextColor?: string;
|
1851
|
+
resourceBorderColor?: string;
|
1852
|
+
bodyBg?: string;
|
1853
|
+
resourceAreaWidth?: string | number;
|
1835
1854
|
/** callback whenever a drop creates a new event */
|
1836
1855
|
onEventAdd?: (e: EventInput) => void;
|
1837
1856
|
configurationItemInfo?: ConfigurationItemInfo$1;
|