@zealicsolutions/web-ui 1.0.45-beta.1 → 1.0.45-beta.2

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.
@@ -2,7 +2,6 @@ import React from 'react';
2
2
  import { EventInput, ThemeSystem } from '@fullcalendar/react';
3
3
  import { ConfigurationItemInfo } from 'containers';
4
4
  export interface CalendarMoleculeProps {
5
- /** initial events (will be copied into internal state) */
6
5
  events?: EventInput[];
7
6
  resources?: any[];
8
7
  initialView?: string;
@@ -34,7 +33,7 @@ export interface CalendarMoleculeProps {
34
33
  buttonTextColor?: string;
35
34
  buttonHoverBg?: string;
36
35
  dayHeaderColor?: string;
37
- dayHeaderFontWeight?: number | string;
36
+ dayHeaderFontWeight?: string | number;
38
37
  slotLabelColor?: string;
39
38
  slotLabelFontSize?: string | number;
40
39
  eventBg?: string;
@@ -45,9 +44,8 @@ export interface CalendarMoleculeProps {
45
44
  resourceAreaBg?: string;
46
45
  resourceTextColor?: string;
47
46
  resourceBorderColor?: string;
48
- bodyBg?: string;
49
47
  resourceAreaWidth?: string | number;
50
- /** callback whenever a drop creates a new event */
48
+ bodyBg?: string;
51
49
  onEventAdd?: (e: EventInput) => void;
52
50
  configurationItemInfo?: ConfigurationItemInfo;
53
51
  }
@@ -2,7 +2,6 @@ import React from 'react';
2
2
  import { EventInput, ThemeSystem } from '@fullcalendar/react';
3
3
  import { ConfigurationItemInfo } from 'containers';
4
4
  export interface CalendarMoleculeProps {
5
- /** initial events (will be copied into internal state) */
6
5
  events?: EventInput[];
7
6
  resources?: any[];
8
7
  initialView?: string;
@@ -34,7 +33,7 @@ export interface CalendarMoleculeProps {
34
33
  buttonTextColor?: string;
35
34
  buttonHoverBg?: string;
36
35
  dayHeaderColor?: string;
37
- dayHeaderFontWeight?: number | string;
36
+ dayHeaderFontWeight?: string | number;
38
37
  slotLabelColor?: string;
39
38
  slotLabelFontSize?: string | number;
40
39
  eventBg?: string;
@@ -45,9 +44,8 @@ export interface CalendarMoleculeProps {
45
44
  resourceAreaBg?: string;
46
45
  resourceTextColor?: string;
47
46
  resourceBorderColor?: string;
48
- bodyBg?: string;
49
47
  resourceAreaWidth?: string | number;
50
- /** callback whenever a drop creates a new event */
48
+ bodyBg?: string;
51
49
  onEventAdd?: (e: EventInput) => void;
52
50
  configurationItemInfo?: ConfigurationItemInfo;
53
51
  }
@@ -1,2 +1,2 @@
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;h.primaryColor,h.secondaryColor;var ae=h.toolbarBg;h.toolbarTextColor;var le=h.buttonBg,ce=h.buttonTextColor,se=h.buttonHoverBg,ue=h.dayHeaderColor,me=h.dayHeaderFontWeight,fe=h.slotLabelColor,ge=h.slotLabelFontSize,ve=h.eventBg,be=h.eventBorderColor,pe=h.eventTextColor,he=h.eventHoverBg,ye=h.nowIndicatorColor,Ce=h.resourceAreaBg,xe=h.resourceTextColor,Te=h.resourceBorderColor,je=h.bodyBg;h.resourceAreaWidth;var Be=h.onEventAdd,De=h.configurationItemInfo,ke=t(null),_e=i(C),Ge=_e[0],Se=_e[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 We=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};Se((function(o){return e(e([],o,!0),[n],!1)})),null==Be||Be(n),o.event.remove()}),[Be]),we=[l,s,u,m,f,g,v,b],Le={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},Me=Object.entries(Le).filter((function(e){return e[0],e[1]})).map((function(e){return e[0]})).join(","),Ae=Le[j]?j:Me.split(",")[0]||"dayGridMonth";return 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":le,"--fc-button-color":ce,"--fc-button-hover-bg":se,"& .fc .fc-toolbar":{backgroundColor:ae},"& .fc .fc-col-header-cell-cushion":{color:ue,fontWeight:me},"& .fc .fc-timegrid-slot-label-cushion":{color:fe,fontSize:ge},"& .fc .fc-event":{backgroundColor:ve,borderColor:be,color:pe},"& .fc .fc-event:hover":{backgroundColor:he},"& .fc .fc-now-indicator":{backgroundColor:ye},"& .fc .fc-resource-area":{backgroundColor:Ce},"& .fc .fc-resource .fc-resource-title":{color:xe},"& .fc .fc-resource-area-cell":{borderColor:Te},"& .fc .fc-scrollgrid-section":{backgroundColor:je}}},De,{children:r(a,{ref:ke,themeSystem:V,schedulerLicenseKey:"CC-Attribution-NonCommercial-NoDerivatives",plugins:we,initialView:Ae,headerToolbar:{left:"prev,next today",center:"title",right:"".concat(Me)},editable:!0,droppable:!0,selectable:!0,businessHours:N,slotDuration:H,snapDuration:I,events:Ge,resources:x,eventReceive:We})}))};export{h as CalendarMolecule};
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{useState as i,useCallback as t,useRef as n}from"react";import d from"../../node_modules/@fullcalendar/react/dist/index.js";import l from"../../node_modules/@fullcalendar/interaction/index.js";import a from"../../node_modules/@fullcalendar/daygrid/index.js";import c from"../../node_modules/@fullcalendar/timegrid/index.js";import s from"../../node_modules/@fullcalendar/list/index.js";import u from"../../node_modules/@fullcalendar/timeline/index.js";import m from"../../node_modules/@fullcalendar/resource/index.js";import f from"../../node_modules/@fullcalendar/resource-timegrid/index.js";import g from"../../node_modules/@fullcalendar/resource-timeline/index.js";import v from"../../node_modules/@mui/material/Box/Box.js";var b=function(b){var p=b.events,h=void 0===p?[]:p,C=b.resources,y=b.initialView,x=void 0===y?"dayGridMonth":y,j=b.enableDayGrid,T=void 0===j||j,B=b.enableTimeGrid,k=void 0===B||B,D=b.enableList,_=void 0!==D&&D,G=b.enableTimeline,W=void 0!==G&&G,L=b.enableResourceTimeline,w=void 0!==L&&L,A=b.slotDuration,H=void 0===A?"00:15:00":A,R=b.snapDuration,I=void 0===R?"00:05:00":R,S=b.businessHours,M=b.width,N=b.height,z=void 0===N?"auto":N,E=b.backgroundColor,F=b.themeSystem,O=void 0===F?"standard":F,V=b.marginLeft,J=void 0===V?"0":V,K=b.marginTop,q=void 0===K?"0":K,P=b.marginRight,Q=void 0===P?"0":P,U=b.marginBottom,X=void 0===U?"0":U,Y=b.paddingLeft,Z=void 0===Y?"0":Y,$=b.paddingTop,ee=void 0===$?"0":$,oe=b.paddingRight,re=void 0===oe?"0":oe,ie=b.paddingBottom,te=void 0===ie?"0":ie,ne=b.primaryColor,de=b.secondaryColor,le=b.toolbarBg,ae=b.toolbarTextColor,ce=b.buttonBg,se=b.buttonTextColor,ue=b.buttonHoverBg,me=b.dayHeaderColor,fe=b.dayHeaderFontWeight,ge=b.slotLabelColor,ve=b.slotLabelFontSize,be=b.eventBg,pe=b.eventBorderColor,he=b.eventTextColor,Ce=b.eventHoverBg,ye=b.nowIndicatorColor,xe=b.resourceAreaBg,je=b.resourceTextColor,Te=b.resourceBorderColor,Be=b.resourceAreaWidth,ke=b.bodyBg,De=b.onEventAdd,_e=b.configurationItemInfo,Ge=i(h),We=Ge[0],Le=Ge[1],we=t((function(o){var r=JSON.parse(o.draggedEl.getAttribute("data-event")),i=o.event.start,t=new Date(i.getTime()+6e4*r.duration),n={id:"".concat(r.id,"-").concat(i.getTime()),title:r.title,start:i,end:t,resourceId:r.resourceId};Le((function(o){return e(e([],o,!0),[n],!1)})),null==De||De(n),o.event.remove()}),[De]),Ae=[l,a,c,s,u,m,f,g],He={dayGridMonth:T,dayGridWeek:T,dayGridDay:T,timeGridWeek:k,timeGridDay:k,listWeek:_,listDay:_,timelineWeek:W,timelineDay:W,resourceTimeGridWeek:w,resourceTimeGridDay:w},Re=Object.entries(He).filter((function(e){return e[1]})).map((function(e){return e[0]})),Ie=He[x]?x:Re[0]||"dayGridMonth";return r(v,o({sx:{width:M,height:z,backgroundColor:E,marginLeft:J,marginTop:q,marginRight:Q,marginBottom:X,paddingLeft:Z,paddingTop:ee,paddingRight:re,paddingBottom:te,"--fc-button-bg":ce||ne,"--fc-button-color":se,"--fc-button-hover-bg":ue||ne,"--fc-event-bg":be||de,"--fc-event-border-color":pe||de,"& .fc .fc-toolbar":{backgroundColor:le,color:ae},"& .fc .fc-col-header-cell-cushion":{color:me,fontWeight:fe},"& .fc .fc-timegrid-slot-label-cushion":{color:ge,fontSize:ve},"& .fc .fc-event":{color:he},"& .fc .fc-event:hover":{backgroundColor:Ce||de},"& .fc .fc-now-indicator":{backgroundColor:ye},"& .fc .fc-resource-area":{backgroundColor:xe},"& .fc .fc-resource .fc-resource-title":{color:je},"& .fc .fc-resource-area-cell":{borderColor:Te},"& .fc .fc-scrollgrid-section":{backgroundColor:ke}}},_e,{children:r(d,{plugins:Ae,ref:n(null),themeSystem:O,schedulerLicenseKey:"CC-Attribution-NonCommercial-NoDerivatives",initialView:Ie,headerToolbar:{left:"prev,next today",center:"title",right:Re.join(",")},editable:!0,droppable:!0,businessHours:S,slotDuration:H,snapDuration:I,events:We,resources:C,resourceAreaWidth:Be,eventReceive:we})}))};export{b 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","secondaryColor","toolbarBg","toolbarTextColor","buttonBg","buttonTextColor","buttonHoverBg","dayHeaderColor","dayHeaderFontWeight","slotLabelColor","slotLabelFontSize","eventBg","eventBorderColor","eventTextColor","eventHoverBg","nowIndicatorColor","resourceAreaBg","resourceTextColor","resourceBorderColor","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","_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,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tBwH,oBAAqBxH,GAGjByH,GAAeC,OAAOC,QAAQrB,IACjCsB,QAAO,SAAC5I,GAAiB,OAAfA,EAAA,GAASA,EAAA,EAAM,IACzB6I,KAAI,SAAC7I,GAAW,OAANA,EAAA,EAAM,IAChB8I,KAAK,KAEFC,GAAkBzB,GAAQhH,GAC5BA,EACAmI,GAAaO,MAAM,KAAK,IAAM,eAsDlC,OACEC,EAACC,EAAGC,EAAA,CAACC,GArDW,CAChB9H,MAAKA,EACLE,OAAMA,EACNC,gBAAeA,EACfI,WAAUA,EACVE,UAASA,EACTE,YAAWA,EACXE,aAAYA,EACZE,YAAWA,GACXE,WAAUA,GACVE,aAAYA,GACZE,cAAaA,GACb,iBAAkBI,GAClB,oBAAqBC,GACrB,uBAAwBC,GAExB,oBAAqB,CACnBxB,gBAAiBoB,IAEnB,oCAAqC,CACnCwG,MAAOnG,GACPoG,WAAYnG,IAEd,wCAAyC,CACvCkG,MAAOjG,GACPmG,SAAUlG,IAEZ,kBAAmB,CACjB5B,gBAAiB6B,GACjBkG,YAAajG,GACb8F,MAAO7F,IAET,wBAAyB,CACvB/B,gBAAiBgC,IAEnB,0BAA2B,CACzBhC,gBAAiBiC,IAEnB,0BAA2B,CACzBjC,gBAAiBkC,IAEnB,wCAAyC,CACvC0F,MAAOzF,IAET,+BAAgC,CAC9B4F,YAAa3F,IAEf,+BAAgC,CAC9BpC,gBAAiBqC,MAKKG,aACtBgF,EAACQ,EACC,CAAAC,IAAKxF,GACLvC,YAAaA,EACbgI,oBAAoB,6CACpBC,QAAS/C,GACTvG,YAAayI,GACbc,cAAe,CACbC,KAAM,kBACNC,OAAQ,QACRC,MAAO,GAAGrE,OAAA8C,KAEZwB,UAAQ,EACRC,WAAS,EACTC,YACA,EAAA9I,cAAeA,EACfH,aAAcA,EACdE,aAAcA,EACdlB,OAAQoE,GACRlE,UAAWA,EACXgK,aAAcrE,OAItB"}
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","slotLabelColor","slotLabelFontSize","eventBg","eventBorderColor","eventTextColor","eventHoverBg","nowIndicatorColor","resourceAreaBg","resourceTextColor","resourceBorderColor","resourceAreaWidth","bodyBg","onEventAdd","configurationItemInfo","_w","useState","eventsState","setEventsState","onEventReceive","useCallback","info","raw","JSON","parse","draggedEl","getAttribute","start","event","end","Date","getTime","duration","newEvt","id","concat","title","resourceId","prev","__spreadArray","remove","plugins","interactionPlugin","dayGridPlugin","timeGridPlugin","listPlugin","timelinePlugin","resourcePlugin","resourceTimeGridPlugin","resourceTimelinePlugin","viewMap","dayGridMonth","dayGridWeek","dayGridDay","timeGridWeek","timeGridDay","listWeek","listDay","timelineWeek","timelineDay","resourceTimeGridWeek","resourceTimeGridDay","enabledViews","Object","entries","filter","map","safeInitial","_jsx","Box","sx","color","fontWeight","fontSize","borderColor","FullCalendar","ref","useRef","schedulerLicenseKey","headerToolbar","left","center","right","join","editable","droppable","eventReceive"],"mappings":"25BA8DO,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,I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0BAA2BW,IAAoBX,GAE/C,oBAAqB,CAAEpB,gBAAiBqB,GAAW6E,MAAO5E,IAC1D,oCAAqC,CAAE4E,MAAOxE,GAAgByE,WAAYxE,IAC1E,wCAAyC,CAAEuE,MAAOtE,GAAgBwE,SAAUvE,IAC5E,kBAAmB,CAAEqE,MAAOlE,IAC5B,wBAAyB,CAAEhC,gBAAiBiC,IAAgBb,IAC5D,0BAA2B,CAAEpB,gBAAiBkC,IAC9C,0BAA2B,CAAElC,gBAAiBmC,IAC9C,wCAAyC,CAAE+D,MAAO9D,IAClD,+BAAgC,CAAEiE,YAAahE,IAC/C,+BAAgC,CAAErC,gBAAiBuC,MAIlCE,aACfsD,EAACO,GACClC,QAASA,GACTmC,IAAKC,EAAO,MACZtG,YAAaA,EACbuG,oBAAoB,6CACpB5H,YAAaiH,GACbY,cAAe,CAAEC,KAAM,kBAAmBC,OAAQ,QAASC,MAAOpB,GAAaqB,KAAK,MACpFC,UACA,EAAAC,aACApH,cAAeA,EACfH,aAAcA,EACdE,aAAcA,EACdlB,OAAQmE,GACRjE,UAAWA,EACX2D,kBAAmBA,GACnB2E,aAAcnE,OAItB"}
@@ -1,2 +1,2 @@
1
- import{__exports as e}from"../../../_virtual/index5.js";Object.defineProperty(e,"__esModule",{value:!0});for(var r="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),t={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},o={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:r?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},n={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},a=1;a<20;a++)n["f"+a]=111+a;function i(e,r,t){r&&!("byKey"in r)&&(t=r,r=null),Array.isArray(e)||(e=[e]);var o=e.map((function(e){return l(e,r)})),n=function(e){return o.some((function(r){return c(r,e)}))};return null==t?n:n(t)}function l(e,r){var o=r&&r.byKey,n={},a=(e=e.replace("++","+add")).split("+"),i=a.length;for(var l in t)n[t[l]]=!1;var c=!0,d=!1,y=void 0;try{for(var f,p=a[Symbol.iterator]();!(c=(f=p.next()).done);c=!0){var w=f.value,h=w.endsWith("?")&&w.length>1;h&&(w=w.slice(0,-1));var m=s(w),v=t[m];1!==i&&v||(o?n.key=m:n.which=u(w)),v&&(n[v]=!h||null)}}catch(e){d=!0,y=e}finally{try{!c&&p.return&&p.return()}finally{if(d)throw y}}return n}function c(e,r){for(var t in e){var o=e[t],n=void 0;if(null!=o&&((null!=(n="key"===t&&null!=r.key?r.key.toLowerCase():"which"===t?91===o&&93===r.which?91:r.which:r[t])||!1!==o)&&n!==o))return!1}return!0}function u(e){return e=s(e),n[e]||e.toUpperCase().charCodeAt(0)}function s(e){return e=e.toLowerCase(),e=o[e]||e}e.default=i,e.isHotkey=i,e.isCodeHotkey=function(e,r){return i(e,r)};var d=e.isKeyHotkey=function(e,r){return i(e,{byKey:!0},r)};e.parseHotkey=l,e.compareHotkey=c,e.toKeyCode=u,e.toKeyName=s;export{d as isKeyHotkey};
1
+ import{__exports as e}from"../../../_virtual/index4.js";Object.defineProperty(e,"__esModule",{value:!0});for(var r="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),t={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},o={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:r?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},n={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},a=1;a<20;a++)n["f"+a]=111+a;function i(e,r,t){r&&!("byKey"in r)&&(t=r,r=null),Array.isArray(e)||(e=[e]);var o=e.map((function(e){return l(e,r)})),n=function(e){return o.some((function(r){return c(r,e)}))};return null==t?n:n(t)}function l(e,r){var o=r&&r.byKey,n={},a=(e=e.replace("++","+add")).split("+"),i=a.length;for(var l in t)n[t[l]]=!1;var c=!0,d=!1,y=void 0;try{for(var f,p=a[Symbol.iterator]();!(c=(f=p.next()).done);c=!0){var w=f.value,h=w.endsWith("?")&&w.length>1;h&&(w=w.slice(0,-1));var m=s(w),v=t[m];1!==i&&v||(o?n.key=m:n.which=u(w)),v&&(n[v]=!h||null)}}catch(e){d=!0,y=e}finally{try{!c&&p.return&&p.return()}finally{if(d)throw y}}return n}function c(e,r){for(var t in e){var o=e[t],n=void 0;if(null!=o&&((null!=(n="key"===t&&null!=r.key?r.key.toLowerCase():"which"===t?91===o&&93===r.which?91:r.which:r[t])||!1!==o)&&n!==o))return!1}return!0}function u(e){return e=s(e),n[e]||e.toUpperCase().charCodeAt(0)}function s(e){return e=e.toLowerCase(),e=o[e]||e}e.default=i,e.isHotkey=i,e.isCodeHotkey=function(e,r){return i(e,r)};var d=e.isKeyHotkey=function(e,r){return i(e,{byKey:!0},r)};e.parseHotkey=l,e.compareHotkey=c,e.toKeyCode=u,e.toKeyName=s;export{d as isKeyHotkey};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{getDefaultExportFromCjs as e}from"../../../_virtual/_commonjsHelpers.js";import{__exports as r}from"../../../_virtual/index4.js";import"./slider.js";import{__exports as t}from"../../../_virtual/slider.js";!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,o=(r=t)&&r.__esModule?r:{default:r};e.default=o.default}(r);var o=e(r);export{o as default};
1
+ import{getDefaultExportFromCjs as e}from"../../../_virtual/_commonjsHelpers.js";import{__exports as r}from"../../../_virtual/index5.js";import"./slider.js";import{__exports as t}from"../../../_virtual/slider.js";!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,o=(r=t)&&r.__esModule?r:{default:r};e.default=o.default}(r);var o=e(r);export{o as default};
2
2
  //# sourceMappingURL=index.js.map
package/dist/index.d.ts CHANGED
@@ -1892,7 +1892,6 @@ interface VisitMoleculeProps {
1892
1892
  }
1893
1893
 
1894
1894
  interface CalendarMoleculeProps {
1895
- /** initial events (will be copied into internal state) */
1896
1895
  events?: EventInput[];
1897
1896
  resources?: any[];
1898
1897
  initialView?: string;
@@ -1924,7 +1923,7 @@ interface CalendarMoleculeProps {
1924
1923
  buttonTextColor?: string;
1925
1924
  buttonHoverBg?: string;
1926
1925
  dayHeaderColor?: string;
1927
- dayHeaderFontWeight?: number | string;
1926
+ dayHeaderFontWeight?: string | number;
1928
1927
  slotLabelColor?: string;
1929
1928
  slotLabelFontSize?: string | number;
1930
1929
  eventBg?: string;
@@ -1935,9 +1934,8 @@ interface CalendarMoleculeProps {
1935
1934
  resourceAreaBg?: string;
1936
1935
  resourceTextColor?: string;
1937
1936
  resourceBorderColor?: string;
1938
- bodyBg?: string;
1939
1937
  resourceAreaWidth?: string | number;
1940
- /** callback whenever a drop creates a new event */
1938
+ bodyBg?: string;
1941
1939
  onEventAdd?: (e: EventInput) => void;
1942
1940
  configurationItemInfo?: ConfigurationItemInfo$1;
1943
1941
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zealicsolutions/web-ui",
3
- "version": "1.0.45-beta.1",
3
+ "version": "1.0.45-beta.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"