fullcalendar 6.1.4 → 6.1.5
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/index.global.js +420 -413
- package/index.global.min.js +2 -2
- package/index.js +8 -8
- package/package.json +8 -7
package/index.global.js
CHANGED
|
@@ -1,51 +1,55 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
FullCalendar Standard Bundle v6.1.
|
|
2
|
+
FullCalendar Standard Bundle v6.1.5
|
|
3
3
|
Docs & License: https://fullcalendar.io/docs/initialize-globals
|
|
4
4
|
(c) 2023 Adam Shaw
|
|
5
5
|
*/
|
|
6
6
|
var FullCalendar = (function (exports) {
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
|
-
var n,l$1,u$1,i$1,t,o,r$1,f$1={},e$1=[],c$1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function s(n,l){for(var u in l)n[u]=l[u];return n}function a$1(n){var l=n.parentNode;l&&l.removeChild(n);}function h(l,u,i){var t,o,r,f={};for(r in u)"key"==r?t=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):i),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return v$1(l,f,t,o,null)}function v$1(n,i,t,o,r){var f={type:n,props:i,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++u$1:r};return null==r&&null!=l$1.vnode&&l$1.vnode(f),f}function y(){return {current:null}}function p(n){return n.children}function d(n,l){this.props=n,this.context=l;}function _(n,l){if(null==l)return n.__?_(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?_(n):null}function k$1(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return k$1(n)}}function b$1(n){(!n.__d&&(n.__d=!0)&&t.push(n)&&!g$2.__r++||o!==l$1.debounceRendering)&&((o=l$1.debounceRendering)||setTimeout)(g$2);}function g$2(){for(var n;g$2.__r=t.length;)n=t.sort(function(n,l){return n.__v.__b-l.__v.__b}),t=[],n.some(function(n){var l,u,i,t,o,r;n.__d&&(o=(t=(l=n).__v).__e,(r=l.__P)&&(u=[],(i=s({},t)).__v=t.__v+1,j$2(r,t,i,l.__n,void 0!==r.ownerSVGElement,null!=t.__h?[o]:null,u,null==o?_(t):o,t.__h),z$1(u,t),t.__e!=o&&k$1(t)));});}function w$2(n,l,u,i,t,o,r,c,s,a){var h,y,d,k,b,g,w,x=i&&i.__k||e$1,C=x.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(k=u.__k[h]=null==(k=l[h])||"boolean"==typeof k?null:"string"==typeof k||"number"==typeof k||"bigint"==typeof k?v$1(null,k,null,null,k):Array.isArray(k)?v$1(p,{children:k},null,null,null):k.__b>0?v$1(k.type,k.props,k.key,k.ref?k.ref:null,k.__v):k)){if(k.__=u,k.__b=u.__b+1,null===(d=x[h])||d&&k.key==d.key&&k.type===d.type)x[h]=void 0;else for(y=0;y<C;y++){if((d=x[y])&&k.key==d.key&&k.type===d.type){x[y]=void 0;break}d=null;}j$2(n,k,d=d||f$1,t,o,r,c,s,a),b=k.__e,(y=k.ref)&&d.ref!=y&&(w||(w=[]),d.ref&&w.push(d.ref,null,k),w.push(y,k.__c||b,k)),null!=b?(null==g&&(g=b),"function"==typeof k.type&&k.__k===d.__k?k.__d=s=m$1(k,s,n):s=A(n,k,d,x,b,s),"function"==typeof u.type&&(u.__d=s)):s&&d.__e==s&&s.parentNode!=n&&(s=_(d));}for(u.__e=g,h=C;h--;)null!=x[h]&&N(x[h],x[h]);if(w)for(h=0;h<w.length;h++)M(w[h],w[++h],w[++h]);}function m$1(n,l,u){for(var i,t=n.__k,o=0;t&&o<t.length;o++)(i=t[o])&&(i.__=n,l="function"==typeof i.type?m$1(i,l,u):A(u,i,i,t,i.__e,l));return l}function x$1(n,l){return l=l||[],null==n||"boolean"==typeof n||(Array.isArray(n)?n.some(function(n){x$1(n,l);}):l.push(n)),l}function A(n,l,u,i,t,o){var r,f,e;if(void 0!==l.__d)r=l.__d,l.__d=void 0;else if(null==u||t!=o||null==t.parentNode)n:if(null==o||o.parentNode!==n)n.appendChild(t),r=null;else {for(f=o,e=0;(f=f.nextSibling)&&e<i.length;e+=1)if(f==t)break n;n.insertBefore(t,o),r=o;}return void 0!==r?r:t.nextSibling}function C$1(n,l,u,i,t){var o;for(o in u)"children"===o||"key"===o||o in l||H$1(n,o,null,u[o],i);for(o in l)t&&"function"!=typeof l[o]||"children"===o||"key"===o||"value"===o||"checked"===o||u[o]===l[o]||H$1(n,o,l[o],u[o],i);}function $$1(n,l,u){"-"===l[0]?n.setProperty(l,u):n[l]=null==u?"":"number"!=typeof u||c$1.test(l)?u:u+"px";}function H$1(n,l,u,i,t){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||$$1(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||$$1(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?i||n.addEventListener(l,o?T$1:I$1,o):n.removeEventListener(l,o?T$1:I$1,o);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&-1==l.indexOf("-")?n.removeAttribute(l):n.setAttribute(l,u));}}function I$1(n){this.l[n.type+!1](l$1.event?l$1.event(n):n);}function T$1(n){this.l[n.type+!0](l$1.event?l$1.event(n):n);}function j$2(n,u,i,t,o,r,f,e,c){var a,h,v,y,_,k,b,g,m,x,A,C,$,H,I,T=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(c=i.__h,e=u.__e=i.__e,u.__h=null,r=[e]),(a=l$1.__b)&&a(u);try{n:if("function"==typeof T){if(g=u.props,m=(a=T.contextType)&&t[a.__c],x=a?m?m.props.value:a.__:t,i.__c?b=(h=u.__c=i.__c).__=h.__E:("prototype"in T&&T.prototype.render?u.__c=h=new T(g,x):(u.__c=h=new d(g,x),h.constructor=T,h.render=O),m&&m.sub(h),h.props=g,h.state||(h.state={}),h.context=x,h.__n=t,v=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=T.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=s({},h.__s)),s(h.__s,T.getDerivedStateFromProps(g,h.__s))),y=h.props,_=h.state,v)null==T.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(null==T.getDerivedStateFromProps&&g!==y&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(g,x),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(g,h.__s,x)||u.__v===i.__v){for(h.props=g,h.state=h.__s,u.__v!==i.__v&&(h.__d=!1),h.__v=u,u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u);}),A=0;A<h._sb.length;A++)h.__h.push(h._sb[A]);h._sb=[],h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(g,h.__s,x),null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(y,_,k);});}if(h.context=x,h.props=g,h.__v=u,h.__P=n,C=l$1.__r,$=0,"prototype"in T&&T.prototype.render){for(h.state=h.__s,h.__d=!1,C&&C(u),a=h.render(h.props,h.state,h.context),H=0;H<h._sb.length;H++)h.__h.push(h._sb[H]);h._sb=[];}else do{h.__d=!1,C&&C(u),a=h.render(h.props,h.state,h.context),h.state=h.__s;}while(h.__d&&++$<25);h.state=h.__s,null!=h.getChildContext&&(t=s(s({},t),h.getChildContext())),v||null==h.getSnapshotBeforeUpdate||(k=h.getSnapshotBeforeUpdate(y,_)),I=null!=a&&a.type===p&&null==a.key?a.props.children:a,w$2(n,Array.isArray(I)?I:[I],u,i,t,o,r,f,e,c),h.base=u.__e,u.__h=null,h.__h.length&&f.push(h),b&&(h.__E=h.__=null),h.__e=!1;}else null==r&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=L$1(i.__e,u,i,t,o,r,f,c);(a=l$1.diffed)&&a(u);}catch(n){u.__v=null,(c||null!=r)&&(u.__e=e,u.__h=!!c,r[r.indexOf(e)]=null),l$1.__e(n,u,i);}}function z$1(n,u){l$1.__c&&l$1.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$1.__e(n,u.__v);}});}function L$1(l,u,i,t,o,r,e,c){var s,h,v,y=i.props,p=u.props,d=u.type,k=0;if("svg"===d&&(o=!0),null!=r)for(;k<r.length;k++)if((s=r[k])&&"setAttribute"in s==!!d&&(d?s.localName===d:3===s.nodeType)){l=s,r[k]=null;break}if(null==l){if(null===d)return document.createTextNode(p);l=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),r=null,c=!1;}if(null===d)y===p||c&&l.data===p||(l.data=p);else {if(r=r&&n.call(l.childNodes),h=(y=i.props||f$1).dangerouslySetInnerHTML,v=p.dangerouslySetInnerHTML,!c){if(null!=r)for(y={},k=0;k<l.attributes.length;k++)y[l.attributes[k].name]=l.attributes[k].value;(v||h)&&(v&&(h&&v.__html==h.__html||v.__html===l.innerHTML)||(l.innerHTML=v&&v.__html||""));}if(C$1(l,p,y,o,c),v)u.__k=[];else if(k=u.props.children,w$2(l,Array.isArray(k)?k:[k],u,i,t,o&&"foreignObject"!==d,r,e,r?r[0]:i.__k&&_(i,0),c),null!=r)for(k=r.length;k--;)null!=r[k]&&a$1(r[k]);c||("value"in p&&void 0!==(k=p.value)&&(k!==l.value||"progress"===d&&!k||"option"===d&&k!==y.value)&&H$1(l,"value",k,y.value,!1),"checked"in p&&void 0!==(k=p.checked)&&k!==l.checked&&H$1(l,"checked",k,y.checked,!1));}return l}function M(n,u,i){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$1.__e(n,i);}}function N(n,u,i){var t,o;if(l$1.unmount&&l$1.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||M(t,null,u)),null!=(t=n.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount();}catch(n){l$1.__e(n,u);}t.base=t.__P=null,n.__c=void 0;}if(t=n.__k)for(o=0;o<t.length;o++)t[o]&&N(t[o],u,i||"function"!=typeof n.type);i||null==n.__e||a$1(n.__e),n.__=n.__e=n.__d=void 0;}function O(n,l,u){return this.constructor(n,u)}function P$1(u,i,t){var o,r,e;l$1.__&&l$1.__(u,i),r=(o="function"==typeof t)?null:t&&t.__k||i.__k,e=[],j$2(i,u=(!o&&t||i).__k=h(p,null,[u]),r||f$1,f$1,void 0!==i.ownerSVGElement,!o&&t?[t]:r?null:i.firstChild?n.call(i.childNodes):null,e,!o&&t?t:r?r.__e:i.firstChild,o),z$1(e,u);}function S(n,l){P$1(n,l,S);}function q(l,u,i){var t,o,r,f=s({},l.props);for(r in u)"key"==r?t=u[r]:"ref"==r?o=u[r]:f[r]=u[r];return arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):i),v$1(l.type,f,t||l.key,o||l.ref,null)}function B$1(n,l){var u={__c:l="__cC"+r$1++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,i;return this.getChildContext||(u=[],(i={})[l]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(b$1);},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u.splice(u.indexOf(n),1),l&&l.call(n);};}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n=e$1.slice,l$1={__e:function(n,l,u,i){for(var t,o,r;l=l.__;)if((t=l.__c)&&!t.__)try{if((o=t.constructor)&&null!=o.getDerivedStateFromError&&(t.setState(o.getDerivedStateFromError(n)),r=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(n,i||{}),r=t.__d),r)return t.__E=t}catch(l){n=l;}throw n}},u$1=0,i$1=function(n){return null!=n&&void 0===n.constructor},d.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=s({},this.state),"function"==typeof n&&(n=n(s({},u),this.props)),n&&s(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),b$1(this));},d.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),b$1(this));},d.prototype.render=p,t=[],g$2.__r=0,r$1=0;
|
|
9
|
+
var n,l$1,u$1,i$1,t,r$1,o,f$1,e$1,c$1={},s=[],a$1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function h(n,l){for(var u in l)n[u]=l[u];return n}function v$1(n){var l=n.parentNode;l&&l.removeChild(n);}function y(l,u,i){var t,r,o,f={};for(o in u)"key"==o?t=u[o]:"ref"==o?r=u[o]:f[o]=u[o];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):i),"function"==typeof l&&null!=l.defaultProps)for(o in l.defaultProps)void 0===f[o]&&(f[o]=l.defaultProps[o]);return p(l,f,t,r,null)}function p(n,i,t,r,o){var f={type:n,props:i,key:t,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++u$1:o};return null==o&&null!=l$1.vnode&&l$1.vnode(f),f}function d(){return {current:null}}function _(n){return n.children}function k$1(n,l,u,i,t){var r;for(r in u)"children"===r||"key"===r||r in l||g$2(n,r,null,u[r],i);for(r in l)t&&"function"!=typeof l[r]||"children"===r||"key"===r||"value"===r||"checked"===r||u[r]===l[r]||g$2(n,r,l[r],u[r],i);}function b$1(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||a$1.test(l)?u:u+"px";}function g$2(n,l,u,i,t){var r;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||b$1(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||b$1(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])r=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+r]=u,u?i||n.addEventListener(l,r?w$2:m$1,r):n.removeEventListener(l,r?w$2:m$1,r);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==l&&"height"!==l&&"href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&-1==l.indexOf("-")?n.removeAttribute(l):n.setAttribute(l,u));}}function m$1(n){t=!0;try{return this.l[n.type+!1](l$1.event?l$1.event(n):n)}finally{t=!1;}}function w$2(n){t=!0;try{return this.l[n.type+!0](l$1.event?l$1.event(n):n)}finally{t=!1;}}function x$1(n,l){this.props=n,this.context=l;}function A(n,l){if(null==l)return n.__?A(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?A(n):null}function P$1(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return P$1(n)}}function C$1(n){t?setTimeout(n):f$1(n);}function T$1(n){(!n.__d&&(n.__d=!0)&&r$1.push(n)&&!$$1.__r++||o!==l$1.debounceRendering)&&((o=l$1.debounceRendering)||C$1)($$1);}function $$1(){var n,l,u,i,t,o,f,e;for(r$1.sort(function(n,l){return n.__v.__b-l.__v.__b});n=r$1.shift();)n.__d&&(l=r$1.length,i=void 0,t=void 0,f=(o=(u=n).__v).__e,(e=u.__P)&&(i=[],(t=h({},o)).__v=o.__v+1,M(e,o,t,u.__n,void 0!==e.ownerSVGElement,null!=o.__h?[f]:null,i,null==f?A(o):f,o.__h),N(i,o),o.__e!=f&&P$1(o)),r$1.length>l&&r$1.sort(function(n,l){return n.__v.__b-l.__v.__b}));$$1.__r=0;}function H$1(n,l,u,i,t,r,o,f,e,a){var h,v,y,d,k,b,g,m=i&&i.__k||s,w=m.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(d=u.__k[h]=null==(d=l[h])||"boolean"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?p(null,d,null,null,d):Array.isArray(d)?p(_,{children:d},null,null,null):d.__b>0?p(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)){if(d.__=u,d.__b=u.__b+1,null===(y=m[h])||y&&d.key==y.key&&d.type===y.type)m[h]=void 0;else for(v=0;v<w;v++){if((y=m[v])&&d.key==y.key&&d.type===y.type){m[v]=void 0;break}y=null;}M(n,d,y=y||c$1,t,r,o,f,e,a),k=d.__e,(v=d.ref)&&y.ref!=v&&(g||(g=[]),y.ref&&g.push(y.ref,null,d),g.push(v,d.__c||k,d)),null!=k?(null==b&&(b=k),"function"==typeof d.type&&d.__k===y.__k?d.__d=e=I$1(d,e,n):e=z$1(n,d,y,m,k,e),"function"==typeof u.type&&(u.__d=e)):e&&y.__e==e&&e.parentNode!=n&&(e=A(y));}for(u.__e=b,h=w;h--;)null!=m[h]&&("function"==typeof u.type&&null!=m[h].__e&&m[h].__e==u.__d&&(u.__d=L$1(i).nextSibling),q(m[h],m[h]));if(g)for(h=0;h<g.length;h++)S(g[h],g[++h],g[++h]);}function I$1(n,l,u){for(var i,t=n.__k,r=0;t&&r<t.length;r++)(i=t[r])&&(i.__=n,l="function"==typeof i.type?I$1(i,l,u):z$1(u,i,i,t,i.__e,l));return l}function j$2(n,l){return l=l||[],null==n||"boolean"==typeof n||(Array.isArray(n)?n.some(function(n){j$2(n,l);}):l.push(n)),l}function z$1(n,l,u,i,t,r){var o,f,e;if(void 0!==l.__d)o=l.__d,l.__d=void 0;else if(null==u||t!=r||null==t.parentNode)n:if(null==r||r.parentNode!==n)n.appendChild(t),o=null;else {for(f=r,e=0;(f=f.nextSibling)&&e<i.length;e+=1)if(f==t)break n;n.insertBefore(t,r),o=r;}return void 0!==o?o:t.nextSibling}function L$1(n){var l,u,i;if(null==n.type||"string"==typeof n.type)return n.__e;if(n.__k)for(l=n.__k.length-1;l>=0;l--)if((u=n.__k[l])&&(i=L$1(u)))return i;return null}function M(n,u,i,t,r,o,f,e,c){var s,a,v,y,p,d,k,b,g,m,w,A,P,C,T,$=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(c=i.__h,e=u.__e=i.__e,u.__h=null,o=[e]),(s=l$1.__b)&&s(u);try{n:if("function"==typeof $){if(b=u.props,g=(s=$.contextType)&&t[s.__c],m=s?g?g.props.value:s.__:t,i.__c?k=(a=u.__c=i.__c).__=a.__E:("prototype"in $&&$.prototype.render?u.__c=a=new $(b,m):(u.__c=a=new x$1(b,m),a.constructor=$,a.render=B$1),g&&g.sub(a),a.props=b,a.state||(a.state={}),a.context=m,a.__n=t,v=a.__d=!0,a.__h=[],a._sb=[]),null==a.__s&&(a.__s=a.state),null!=$.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=h({},a.__s)),h(a.__s,$.getDerivedStateFromProps(b,a.__s))),y=a.props,p=a.state,a.__v=u,v)null==$.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else {if(null==$.getDerivedStateFromProps&&b!==y&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(b,m),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(b,a.__s,m)||u.__v===i.__v){for(u.__v!==i.__v&&(a.props=b,a.state=a.__s,a.__d=!1),u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u);}),w=0;w<a._sb.length;w++)a.__h.push(a._sb[w]);a._sb=[],a.__h.length&&f.push(a);break n}null!=a.componentWillUpdate&&a.componentWillUpdate(b,a.__s,m),null!=a.componentDidUpdate&&a.__h.push(function(){a.componentDidUpdate(y,p,d);});}if(a.context=m,a.props=b,a.__P=n,A=l$1.__r,P=0,"prototype"in $&&$.prototype.render){for(a.state=a.__s,a.__d=!1,A&&A(u),s=a.render(a.props,a.state,a.context),C=0;C<a._sb.length;C++)a.__h.push(a._sb[C]);a._sb=[];}else do{a.__d=!1,A&&A(u),s=a.render(a.props,a.state,a.context),a.state=a.__s;}while(a.__d&&++P<25);a.state=a.__s,null!=a.getChildContext&&(t=h(h({},t),a.getChildContext())),v||null==a.getSnapshotBeforeUpdate||(d=a.getSnapshotBeforeUpdate(y,p)),T=null!=s&&s.type===_&&null==s.key?s.props.children:s,H$1(n,Array.isArray(T)?T:[T],u,i,t,r,o,f,e,c),a.base=u.__e,u.__h=null,a.__h.length&&f.push(a),k&&(a.__E=a.__=null),a.__e=!1;}else null==o&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=O(i.__e,u,i,t,r,o,f,c);(s=l$1.diffed)&&s(u);}catch(n){u.__v=null,(c||null!=o)&&(u.__e=e,u.__h=!!c,o[o.indexOf(e)]=null),l$1.__e(n,u,i);}}function N(n,u){l$1.__c&&l$1.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$1.__e(n,u.__v);}});}function O(l,u,i,t,r,o,f,e){var s,a,h,y=i.props,p=u.props,d=u.type,_=0;if("svg"===d&&(r=!0),null!=o)for(;_<o.length;_++)if((s=o[_])&&"setAttribute"in s==!!d&&(d?s.localName===d:3===s.nodeType)){l=s,o[_]=null;break}if(null==l){if(null===d)return document.createTextNode(p);l=r?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),o=null,e=!1;}if(null===d)y===p||e&&l.data===p||(l.data=p);else {if(o=o&&n.call(l.childNodes),a=(y=i.props||c$1).dangerouslySetInnerHTML,h=p.dangerouslySetInnerHTML,!e){if(null!=o)for(y={},_=0;_<l.attributes.length;_++)y[l.attributes[_].name]=l.attributes[_].value;(h||a)&&(h&&(a&&h.__html==a.__html||h.__html===l.innerHTML)||(l.innerHTML=h&&h.__html||""));}if(k$1(l,p,y,r,e),h)u.__k=[];else if(_=u.props.children,H$1(l,Array.isArray(_)?_:[_],u,i,t,r&&"foreignObject"!==d,o,f,o?o[0]:i.__k&&A(i,0),e),null!=o)for(_=o.length;_--;)null!=o[_]&&v$1(o[_]);e||("value"in p&&void 0!==(_=p.value)&&(_!==l.value||"progress"===d&&!_||"option"===d&&_!==y.value)&&g$2(l,"value",_,y.value,!1),"checked"in p&&void 0!==(_=p.checked)&&_!==l.checked&&g$2(l,"checked",_,y.checked,!1));}return l}function S(n,u,i){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$1.__e(n,i);}}function q(n,u,i){var t,r;if(l$1.unmount&&l$1.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||S(t,null,u)),null!=(t=n.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount();}catch(n){l$1.__e(n,u);}t.base=t.__P=null,n.__c=void 0;}if(t=n.__k)for(r=0;r<t.length;r++)t[r]&&q(t[r],u,i||"function"!=typeof n.type);i||null==n.__e||v$1(n.__e),n.__=n.__e=n.__d=void 0;}function B$1(n,l,u){return this.constructor(n,u)}function D$1(u,i,t){var r,o,f;l$1.__&&l$1.__(u,i),o=(r="function"==typeof t)?null:t&&t.__k||i.__k,f=[],M(i,u=(!r&&t||i).__k=y(_,null,[u]),o||c$1,c$1,void 0!==i.ownerSVGElement,!r&&t?[t]:o?null:i.firstChild?n.call(i.childNodes):null,f,!r&&t?t:o?o.__e:i.firstChild,r),N(f,u);}function E(n,l){D$1(n,l,E);}function F$1(l,u,i){var t,r,o,f=h({},l.props);for(o in u)"key"==o?t=u[o]:"ref"==o?r=u[o]:f[o]=u[o];return arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):i),p(l.type,f,t||l.key,r||l.ref,null)}function G$1(n,l){var u={__c:l="__cC"+e$1++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,i;return this.getChildContext||(u=[],(i={})[l]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(function(n){n.__e=!0,T$1(n);});},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u.splice(u.indexOf(n),1),l&&l.call(n);};}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n=s.slice,l$1={__e:function(n,l,u,i){for(var t,r,o;l=l.__;)if((t=l.__c)&&!t.__)try{if((r=t.constructor)&&null!=r.getDerivedStateFromError&&(t.setState(r.getDerivedStateFromError(n)),o=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(n,i||{}),o=t.__d),o)return t.__E=t}catch(l){n=l;}throw n}},u$1=0,i$1=function(n){return null!=n&&void 0===n.constructor},t=!1,x$1.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof n&&(n=n(h({},u),this.props)),n&&h(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),T$1(this));},x$1.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),T$1(this));},x$1.prototype.render=_,r$1=[],f$1="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,$$1.__r=0,e$1=0;
|
|
10
10
|
|
|
11
11
|
var r,u,i,f=[],c=[],e=l$1.__b,a=l$1.__r,v=l$1.diffed,l=l$1.__c,m=l$1.unmount;function b(){for(var t;t=f.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(k),t.__H.__h.forEach(w$1),t.__H.__h=[];}catch(r){t.__H.__h=[],l$1.__e(r,t.__v);}}l$1.__b=function(n){r=null,e&&e(n);},l$1.__r=function(n){a&&a(n);var i=(r=n.__c).__H;i&&(u===r?(i.__h=[],r.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=c,n.__N=n.i=void 0;})):(i.__h.forEach(k),i.__h.forEach(w$1),i.__h=[])),u=r;},l$1.diffed=function(t){v&&v(t);var o=t.__c;o&&o.__H&&(o.__H.__h.length&&(1!==f.push(o)&&i===l$1.requestAnimationFrame||((i=l$1.requestAnimationFrame)||j$1)(b)),o.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==c&&(n.__=n.__V),n.i=void 0,n.__V=c;})),u=r=null;},l$1.__c=function(t,r){r.some(function(t){try{t.__h.forEach(k),t.__h=t.__h.filter(function(n){return !n.__||w$1(n)});}catch(u){r.some(function(n){n.__h&&(n.__h=[]);}),r=[],l$1.__e(u,t.__v);}}),l&&l(t,r);},l$1.unmount=function(t){m&&m(t);var r,u=t.__c;u&&u.__H&&(u.__H.__.forEach(function(n){try{k(n);}catch(n){r=n;}}),u.__H=void 0,r&&l$1.__e(r,u.__v));};var g$1="function"==typeof requestAnimationFrame;function j$1(n){var t,r=function(){clearTimeout(u),g$1&&cancelAnimationFrame(t),setTimeout(n);},u=setTimeout(r,100);g$1&&(t=requestAnimationFrame(r));}function k(n){var t=r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r=t;}function w$1(n){var t=r;n.__c=n.__(),r=t;}
|
|
12
12
|
|
|
13
|
-
function g(n,t){for(var e in t)n[e]=t[e];return n}function C(n,t){for(var e in n)if("__source"!==e&&!(e in t))return !0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return !0;return !1}function w(n){this.props=n;}(w.prototype=new
|
|
13
|
+
function g(n,t){for(var e in t)n[e]=t[e];return n}function C(n,t){for(var e in n)if("__source"!==e&&!(e in t))return !0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return !0;return !1}function w(n){this.props=n;}(w.prototype=new x$1).isPureReactComponent=!0,w.prototype.shouldComponentUpdate=function(n,t){return C(this.props,n)||C(this.state,t)};var x=l$1.__b;l$1.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),x&&x(n);};var T=l$1.__e;l$1.__e=function(n,t,e,r){if(n.then)for(var u,o=t;o=o.__;)if((u=o.__c)&&u.__c)return null==t.__e&&(t.__e=e.__e,t.__k=e.__k),u.__c(n,t);T(n,t,e,r);};var I=l$1.unmount;function L(n,t,e){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach(function(n){"function"==typeof n.__c&&n.__c();}),n.__c.__H=null),null!=(n=g({},n)).__c&&(n.__c.__P===e&&(n.__c.__P=t),n.__c=null),n.__k=n.__k&&n.__k.map(function(n){return L(n,t,e)})),n}function U(n,t,e){return n&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(n){return U(n,t,e)}),n.__c&&n.__c.__P===t&&(n.__e&&e.insertBefore(n.__e,n.__d),n.__c.__e=!0,n.__c.__P=e)),n}function D(){this.__u=0,this.t=null,this.__b=null;}function F(n){var t=n.__.__c;return t&&t.__a&&t.__a(n)}function V(){this.u=null,this.o=null;}l$1.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&!0===n.__h&&(n.type=null),I&&I(n);},(D.prototype=new x$1).__c=function(n,t){var e=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(e);var u=F(r.__v),o=!1,i=function(){o||(o=!0,e.__R=null,u?u(l):l());};e.__R=i;var l=function(){if(!--r.__u){if(r.state.__a){var n=r.state.__a;r.__v.__k[0]=U(n,n.__c.__P,n.__c.__O);}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate();}},c=!0===t.__h;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),n.then(i,i);},D.prototype.componentWillUnmount=function(){this.t=[];},D.prototype.render=function(n,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=L(this.__b,r,o.__O=o.__P);}this.__b=null;}var i=e.__a&&y(_,null,n.fallback);return i&&(i.__h=null),[y(_,null,e.__a?null:n.children),i]};var W=function(n,t,e){if(++e[1]===e[0]&&n.o.delete(t),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.o.size))for(e=n.u;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.u=e=e[2];}};function P(n){return this.getChildContext=function(){return n.context},n.children}function $(n){var e=this,r=n.i;e.componentWillUnmount=function(){D$1(null,e.l),e.l=null,e.i=null;},e.i&&e.i!==r&&e.componentWillUnmount(),n.__v?(e.l||(e.i=r,e.l={nodeType:1,parentNode:r,childNodes:[],appendChild:function(n){this.childNodes.push(n),e.i.appendChild(n);},insertBefore:function(n,t){this.childNodes.push(n),e.i.appendChild(n);},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.i.removeChild(n);}}),D$1(y(P,{context:e.context},n.__v),e.l)):e.l&&e.componentWillUnmount();}function j(n,e){var r=y($,{__v:n,i:e});return r.containerInfo=e,r}(V.prototype=new x$1).__a=function(n){var t=this,e=F(t.__v),r=t.o.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),W(t,n,r)):u();};e?e(o):o();}},V.prototype.render=function(n){this.u=null,this.o=new Map;var t=j$2(n.children);n.revealOrder&&"b"===n.revealOrder[0]&&t.reverse();for(var e=t.length;e--;)this.o.set(t[e],this.u=[1,0,this.u]);return n.children},V.prototype.componentDidUpdate=V.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(t,e){W(n,e,t);});};var z="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,B=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,H="undefined"!=typeof document,Z=function(n){return ("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(n)};x$1.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(x$1.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n});}});});var G=l$1.event;function J(){}function K(){return this.cancelBubble}function Q(){return this.defaultPrevented}l$1.event=function(n){return G&&(n=G(n)),n.persist=J,n.isPropagationStopped=K,n.isDefaultPrevented=Q,n.nativeEvent=n};var nn={configurable:!0,get:function(){return this.class}},tn=l$1.vnode;l$1.vnode=function(n){var t=n.type,e=n.props,u=e;if("string"==typeof t){var o=-1===t.indexOf("-");for(var i in u={},e){var l=e[i];H&&"children"===i&&"noscript"===t||"value"===i&&"defaultValue"in e&&null==l||("defaultValue"===i&&"value"in e&&null==e.value?i="value":"download"===i&&!0===l?l="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!Z(e.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&B.test(i)?i=i.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===l&&(l=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),u[i]&&(i="oninputCapture")),u[i]=l);}"select"==t&&u.multiple&&Array.isArray(u.value)&&(u.value=j$2(e.children).forEach(function(n){n.props.selected=-1!=u.value.indexOf(n.props.value);})),"select"==t&&null!=u.defaultValue&&(u.value=j$2(e.children).forEach(function(n){n.props.selected=u.multiple?-1!=u.defaultValue.indexOf(n.props.value):u.defaultValue==n.props.value;})),n.props=u,e.class!=e.className&&(nn.enumerable="className"in e,null!=e.className&&(u.class=e.className),Object.defineProperty(u,"className",nn));}n.$$typeof=z,tn&&tn(n);};var en=l$1.__r;l$1.__r=function(n){en&&en(n),n.__c;};
|
|
14
14
|
|
|
15
|
-
const
|
|
16
|
-
const
|
|
15
|
+
const styleTexts = [];
|
|
16
|
+
const styleEndMarkers = new Map(); // rootNode:endMarker
|
|
17
|
+
const commentText = ' fullcalendar styles ';
|
|
17
18
|
if (typeof document !== 'undefined') {
|
|
18
|
-
|
|
19
|
+
registerStylesRoot(document, document.head, document.head.querySelector('script,link,style'));
|
|
19
20
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
function injectStyles(styleText) {
|
|
22
|
+
styleTexts.push(styleText);
|
|
23
|
+
styleEndMarkers.forEach((endMarker) => {
|
|
24
|
+
injectStylesBefore(styleText, endMarker);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
function ensureElHasStyles(el) {
|
|
28
|
+
registerStylesRoot(el.getRootNode());
|
|
29
|
+
}
|
|
30
|
+
function registerStylesRoot(rootNode, parentEl = rootNode, insertBefore = parentEl.firstChild) {
|
|
31
|
+
if (!styleEndMarkers.has(rootNode)) {
|
|
32
|
+
const startMarker = document.createComment(commentText);
|
|
33
|
+
const endMarker = document.createComment(` END${commentText}`);
|
|
34
|
+
parentEl.insertBefore(endMarker, insertBefore);
|
|
35
|
+
parentEl.insertBefore(startMarker, endMarker);
|
|
36
|
+
styleEndMarkers.set(rootNode, endMarker);
|
|
37
|
+
hydrateStylesRoot(endMarker);
|
|
26
38
|
}
|
|
27
39
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
function ensureElHasStyles(calendarEl) {
|
|
32
|
-
const root = calendarEl.getRootNode();
|
|
33
|
-
if (!rootHasStyles.get(root)) {
|
|
34
|
-
rootHasStyles.set(root, true);
|
|
35
|
-
for (const injectedStyleEl of injectedStyleEls) {
|
|
36
|
-
injectStylesInParent(root, injectedStyleEl.innerText);
|
|
37
|
-
}
|
|
40
|
+
function hydrateStylesRoot(endMarker) {
|
|
41
|
+
for (const styleText of styleTexts) {
|
|
42
|
+
injectStylesBefore(styleText, endMarker);
|
|
38
43
|
}
|
|
39
44
|
}
|
|
40
|
-
function
|
|
41
|
-
const
|
|
45
|
+
function injectStylesBefore(styleText, endMarker) {
|
|
46
|
+
const styleNode = document.createElement('style');
|
|
42
47
|
const nonce = getNonceValue();
|
|
43
48
|
if (nonce) {
|
|
44
|
-
|
|
49
|
+
styleNode.nonce = nonce;
|
|
45
50
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
return style;
|
|
51
|
+
styleNode.innerText = styleText;
|
|
52
|
+
endMarker.parentNode.insertBefore(styleNode, endMarker);
|
|
49
53
|
}
|
|
50
54
|
// nonce
|
|
51
55
|
// -------------------------------------------------------------------------------------------------
|
|
@@ -68,6 +72,9 @@ var FullCalendar = (function (exports) {
|
|
|
68
72
|
return '';
|
|
69
73
|
}
|
|
70
74
|
|
|
75
|
+
var css_248z$4 = ":root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url(\"data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=\") format(\"truetype\")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:\"\\e900\"}.fc-icon-chevron-right:before{content:\"\\e901\"}.fc-icon-chevrons-left:before{content:\"\\e902\"}.fc-icon-chevrons-right:before{content:\"\\e903\"}.fc-icon-minus-square:before{content:\"\\e904\"}.fc-icon-plus-square:before{content:\"\\e905\"}.fc-icon-x:before{content:\"\\e906\"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button::-moz-focus-inner{border-style:none;padding:0}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:\"\";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:\"\";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:\"\";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}";
|
|
76
|
+
injectStyles(css_248z$4);
|
|
77
|
+
|
|
71
78
|
class DelayedRunner {
|
|
72
79
|
constructor(drainedOption) {
|
|
73
80
|
this.drainedOption = drainedOption;
|
|
@@ -327,11 +334,11 @@ var FullCalendar = (function (exports) {
|
|
|
327
334
|
/* Selection
|
|
328
335
|
----------------------------------------------------------------------------------------------------------------------*/
|
|
329
336
|
function preventSelection(el) {
|
|
330
|
-
el.
|
|
337
|
+
el.style.userSelect = 'none';
|
|
331
338
|
el.addEventListener('selectstart', preventDefault);
|
|
332
339
|
}
|
|
333
340
|
function allowSelection(el) {
|
|
334
|
-
el.
|
|
341
|
+
el.style.userSelect = '';
|
|
335
342
|
el.removeEventListener('selectstart', preventDefault);
|
|
336
343
|
}
|
|
337
344
|
/* Context Menu
|
|
@@ -2214,19 +2221,19 @@ var FullCalendar = (function (exports) {
|
|
|
2214
2221
|
callbackQ.push(callback);
|
|
2215
2222
|
}
|
|
2216
2223
|
l$1.debounceRendering = execCallbackSync;
|
|
2217
|
-
|
|
2224
|
+
D$1(y(FakeComponent, {}), document.createElement('div'));
|
|
2218
2225
|
while (callbackQ.length) {
|
|
2219
2226
|
callbackQ.shift()();
|
|
2220
2227
|
}
|
|
2221
2228
|
l$1.debounceRendering = oldDebounceRendering;
|
|
2222
2229
|
}
|
|
2223
|
-
class FakeComponent extends
|
|
2224
|
-
render() { return
|
|
2230
|
+
class FakeComponent extends x$1 {
|
|
2231
|
+
render() { return y('div', {}); }
|
|
2225
2232
|
componentDidMount() { this.setState({}); }
|
|
2226
2233
|
}
|
|
2227
2234
|
// TODO: use preact/compat instead?
|
|
2228
2235
|
function createContext(defaultValue) {
|
|
2229
|
-
let ContextType =
|
|
2236
|
+
let ContextType = G$1(defaultValue);
|
|
2230
2237
|
let origProvider = ContextType.Provider;
|
|
2231
2238
|
ContextType.Provider = function () {
|
|
2232
2239
|
let isNew = !this.getChildContext;
|
|
@@ -2321,7 +2328,7 @@ var FullCalendar = (function (exports) {
|
|
|
2321
2328
|
}
|
|
2322
2329
|
|
|
2323
2330
|
/* eslint max-classes-per-file: off */
|
|
2324
|
-
class PureComponent extends
|
|
2331
|
+
class PureComponent extends x$1 {
|
|
2325
2332
|
shouldComponentUpdate(nextProps, nextState) {
|
|
2326
2333
|
if (this.debug) {
|
|
2327
2334
|
// eslint-disable-next-line no-console
|
|
@@ -2389,7 +2396,7 @@ var FullCalendar = (function (exports) {
|
|
|
2389
2396
|
let currentGeneratorMeta;
|
|
2390
2397
|
if (customGenerator != null) {
|
|
2391
2398
|
const customGeneratorRes = typeof customGenerator === 'function' ?
|
|
2392
|
-
customGenerator(renderProps,
|
|
2399
|
+
customGenerator(renderProps, y) :
|
|
2393
2400
|
customGenerator;
|
|
2394
2401
|
if (customGeneratorRes === true) {
|
|
2395
2402
|
useDefault = true;
|
|
@@ -2420,7 +2427,7 @@ var FullCalendar = (function (exports) {
|
|
|
2420
2427
|
}
|
|
2421
2428
|
this.queuedDomNodes = queuedDomNodes;
|
|
2422
2429
|
this.currentGeneratorMeta = currentGeneratorMeta;
|
|
2423
|
-
return
|
|
2430
|
+
return y(props.elTag, attrs, innerContent);
|
|
2424
2431
|
}
|
|
2425
2432
|
componentDidMount() {
|
|
2426
2433
|
this.applyQueueudDomNodes();
|
|
@@ -2441,7 +2448,7 @@ var FullCalendar = (function (exports) {
|
|
|
2441
2448
|
const generatorMeta = (_a = this.currentGeneratorMeta) !== null && _a !== void 0 ? _a : customRenderingMetaMap === null || customRenderingMetaMap === void 0 ? void 0 : customRenderingMetaMap[props.generatorName];
|
|
2442
2449
|
if (generatorMeta) {
|
|
2443
2450
|
handleCustomRendering(Object.assign(Object.assign({ id: this.id, isActive, containerEl: this.base, reportNewContainerEl: this.handleEl, // for customRenderingReplacesEl
|
|
2444
|
-
generatorMeta }, props), { elClasses: props.elClasses.filter(isTruthy) }));
|
|
2451
|
+
generatorMeta }, props), { elClasses: (props.elClasses || []).filter(isTruthy) }));
|
|
2445
2452
|
}
|
|
2446
2453
|
}
|
|
2447
2454
|
}
|
|
@@ -2493,10 +2500,16 @@ var FullCalendar = (function (exports) {
|
|
|
2493
2500
|
|
|
2494
2501
|
const RenderId = createContext(0);
|
|
2495
2502
|
|
|
2496
|
-
class ContentContainer extends
|
|
2503
|
+
class ContentContainer extends x$1 {
|
|
2497
2504
|
constructor() {
|
|
2498
2505
|
super(...arguments);
|
|
2499
2506
|
this.InnerContent = InnerContentInjector.bind(undefined, this);
|
|
2507
|
+
this.handleRootEl = (el) => {
|
|
2508
|
+
this.rootEl = el;
|
|
2509
|
+
if (this.props.elRef) {
|
|
2510
|
+
setRef(this.props.elRef, el);
|
|
2511
|
+
}
|
|
2512
|
+
};
|
|
2500
2513
|
}
|
|
2501
2514
|
render() {
|
|
2502
2515
|
const { props } = this;
|
|
@@ -2505,29 +2518,29 @@ var FullCalendar = (function (exports) {
|
|
|
2505
2518
|
const elAttrs = buildElAttrs(props, generatedClassNames);
|
|
2506
2519
|
const children = props.children(this.InnerContent, props.renderProps, elAttrs);
|
|
2507
2520
|
if (props.elTag) {
|
|
2508
|
-
return
|
|
2521
|
+
return y(props.elTag, elAttrs, children);
|
|
2509
2522
|
}
|
|
2510
2523
|
else {
|
|
2511
2524
|
return children;
|
|
2512
2525
|
}
|
|
2513
2526
|
}
|
|
2514
2527
|
else {
|
|
2515
|
-
return
|
|
2528
|
+
return y((ContentInjector), Object.assign(Object.assign({}, props), { elRef: this.handleRootEl, elTag: props.elTag || 'div', elClasses: (props.elClasses || []).concat(generatedClassNames), renderId: this.context }));
|
|
2516
2529
|
}
|
|
2517
2530
|
}
|
|
2518
2531
|
componentDidMount() {
|
|
2519
2532
|
var _a, _b;
|
|
2520
|
-
(_b = (_a = this.props).didMount) === null || _b === void 0 ? void 0 : _b.call(_a, Object.assign(Object.assign({}, this.props.renderProps), { el: this.base }));
|
|
2533
|
+
(_b = (_a = this.props).didMount) === null || _b === void 0 ? void 0 : _b.call(_a, Object.assign(Object.assign({}, this.props.renderProps), { el: this.rootEl || this.base }));
|
|
2521
2534
|
}
|
|
2522
2535
|
componentWillUnmount() {
|
|
2523
2536
|
var _a, _b;
|
|
2524
|
-
(_b = (_a = this.props).willUnmount) === null || _b === void 0 ? void 0 : _b.call(_a, Object.assign(Object.assign({}, this.props.renderProps), { el: this.base }));
|
|
2537
|
+
(_b = (_a = this.props).willUnmount) === null || _b === void 0 ? void 0 : _b.call(_a, Object.assign(Object.assign({}, this.props.renderProps), { el: this.rootEl || this.base }));
|
|
2525
2538
|
}
|
|
2526
2539
|
}
|
|
2527
2540
|
ContentContainer.contextType = RenderId;
|
|
2528
2541
|
function InnerContentInjector(containerComponent, props) {
|
|
2529
2542
|
const parentProps = containerComponent.props;
|
|
2530
|
-
return
|
|
2543
|
+
return y((ContentInjector), Object.assign({ renderProps: parentProps.renderProps, generatorName: parentProps.generatorName, customGenerator: parentProps.customGenerator, defaultGenerator: parentProps.defaultGenerator, renderId: containerComponent.context }, props));
|
|
2531
2544
|
}
|
|
2532
2545
|
// Utils
|
|
2533
2546
|
function generateClassNames(classNameGenerator, renderProps) {
|
|
@@ -2542,7 +2555,7 @@ var FullCalendar = (function (exports) {
|
|
|
2542
2555
|
let { props, context } = this;
|
|
2543
2556
|
let { options } = context;
|
|
2544
2557
|
let renderProps = { view: context.viewApi };
|
|
2545
|
-
return (
|
|
2558
|
+
return (y(ContentContainer, Object.assign({}, props, { elTag: props.elTag || 'div', elClasses: [
|
|
2546
2559
|
...buildViewClassNames(props.viewSpec),
|
|
2547
2560
|
...(props.elClasses || []),
|
|
2548
2561
|
], renderProps: renderProps, classNameGenerator: options.viewClassNames, generatorName: undefined, didMount: options.viewDidMount, willUnmount: options.viewWillUnmount }), () => props.children));
|
|
@@ -3482,7 +3495,7 @@ var FullCalendar = (function (exports) {
|
|
|
3482
3495
|
case 'RECEIVE_EVENTS': // raw
|
|
3483
3496
|
return receiveRawEvents(eventStore, eventSources[action.sourceId], action.fetchId, action.fetchRange, action.rawEvents, context);
|
|
3484
3497
|
case 'RESET_RAW_EVENTS':
|
|
3485
|
-
return resetRawEvents(eventStore, eventSources[action.sourceId], action.rawEvents, context);
|
|
3498
|
+
return resetRawEvents(eventStore, eventSources[action.sourceId], action.rawEvents, dateProfile.activeRange, context);
|
|
3486
3499
|
case 'ADD_EVENTS': // already parsed, but not expanded
|
|
3487
3500
|
return addEvent(eventStore, action.eventStore, // new ones
|
|
3488
3501
|
dateProfile ? dateProfile.activeRange : null, context);
|
|
@@ -3523,13 +3536,10 @@ var FullCalendar = (function (exports) {
|
|
|
3523
3536
|
}
|
|
3524
3537
|
return eventStore;
|
|
3525
3538
|
}
|
|
3526
|
-
function resetRawEvents(existingEventStore, eventSource, rawEvents, context) {
|
|
3539
|
+
function resetRawEvents(existingEventStore, eventSource, rawEvents, activeRange, context) {
|
|
3527
3540
|
const { defIdMap, instanceIdMap } = buildPublicIdMaps(existingEventStore);
|
|
3528
3541
|
let newEventStore = parseEvents(transformRawEvents(rawEvents, eventSource, context), eventSource, context, false, defIdMap, instanceIdMap);
|
|
3529
|
-
|
|
3530
|
-
newEventStore = expandRecurring(newEventStore, eventSource.fetchRange, context);
|
|
3531
|
-
}
|
|
3532
|
-
return newEventStore;
|
|
3542
|
+
return expandRecurring(newEventStore, activeRange, context);
|
|
3533
3543
|
}
|
|
3534
3544
|
function transformRawEvents(rawEvents, eventSource, context) {
|
|
3535
3545
|
let calEachTransform = context.options.eventDataTransform;
|
|
@@ -6027,7 +6037,7 @@ var FullCalendar = (function (exports) {
|
|
|
6027
6037
|
? buildNavLinkAttrs(this.context, date)
|
|
6028
6038
|
: {};
|
|
6029
6039
|
let renderProps = Object.assign(Object.assign(Object.assign({ date: dateEnv.toDate(date), view: viewApi }, props.extraRenderProps), { text }), dayMeta);
|
|
6030
|
-
return (
|
|
6040
|
+
return (y(ContentContainer, { elTag: "th", elClasses: classNames, elAttrs: Object.assign({ role: 'columnheader', colSpan: props.colSpan, 'data-date': !dayMeta.isDisabled ? formatDayString(date) : undefined }, props.extraDataAttrs), renderProps: renderProps, generatorName: "dayHeaderContent", customGenerator: options.dayHeaderContent, defaultGenerator: renderInner$1, classNameGenerator: options.dayHeaderClassNames, didMount: options.dayHeaderDidMount, willUnmount: options.dayHeaderWillUnmount }, (InnerContainer) => (y("div", { className: "fc-scrollgrid-sync-inner" }, !dayMeta.isDisabled && (y(InnerContainer, { elTag: "a", elAttrs: navLinkAttrs, elClasses: [
|
|
6031
6041
|
'fc-col-header-cell-cushion',
|
|
6032
6042
|
props.isSticky && 'fc-sticky',
|
|
6033
6043
|
] }))))));
|
|
@@ -6051,12 +6061,12 @@ var FullCalendar = (function (exports) {
|
|
|
6051
6061
|
let text = dateEnv.format(date, props.dayHeaderFormat);
|
|
6052
6062
|
let renderProps = Object.assign(Object.assign(Object.assign(Object.assign({ // TODO: make this public?
|
|
6053
6063
|
date }, dateMeta), { view: viewApi }), props.extraRenderProps), { text });
|
|
6054
|
-
return (
|
|
6064
|
+
return (y(ContentContainer, { elTag: "th", elClasses: [
|
|
6055
6065
|
CLASS_NAME,
|
|
6056
6066
|
...getDayClassNames(dateMeta, theme),
|
|
6057
6067
|
...(props.extraClassNames || []),
|
|
6058
|
-
], elAttrs: Object.assign({ role: 'columnheader', colSpan: props.colSpan }, props.extraDataAttrs), renderProps: renderProps, generatorName: "dayHeaderContent", customGenerator: options.dayHeaderContent, defaultGenerator: renderInner$1, classNameGenerator: options.dayHeaderClassNames, didMount: options.dayHeaderDidMount, willUnmount: options.dayHeaderWillUnmount }, (InnerContent) => (
|
|
6059
|
-
|
|
6068
|
+
], elAttrs: Object.assign({ role: 'columnheader', colSpan: props.colSpan }, props.extraDataAttrs), renderProps: renderProps, generatorName: "dayHeaderContent", customGenerator: options.dayHeaderContent, defaultGenerator: renderInner$1, classNameGenerator: options.dayHeaderClassNames, didMount: options.dayHeaderDidMount, willUnmount: options.dayHeaderWillUnmount }, (InnerContent) => (y("div", { className: "fc-scrollgrid-sync-inner" },
|
|
6069
|
+
y(InnerContent, { elTag: "a", elClasses: [
|
|
6060
6070
|
'fc-col-header-cell-cushion',
|
|
6061
6071
|
props.isSticky && 'fc-sticky',
|
|
6062
6072
|
], elAttrs: {
|
|
@@ -6065,7 +6075,7 @@ var FullCalendar = (function (exports) {
|
|
|
6065
6075
|
}
|
|
6066
6076
|
}
|
|
6067
6077
|
|
|
6068
|
-
class NowTimer extends
|
|
6078
|
+
class NowTimer extends x$1 {
|
|
6069
6079
|
constructor(props, context) {
|
|
6070
6080
|
super(props, context);
|
|
6071
6081
|
this.initialNowDate = getNow(context.options.now, context.dateEnv);
|
|
@@ -6133,9 +6143,9 @@ var FullCalendar = (function (exports) {
|
|
|
6133
6143
|
let { context } = this;
|
|
6134
6144
|
let { dates, dateProfile, datesRepDistinctDays, renderIntro } = this.props;
|
|
6135
6145
|
let dayHeaderFormat = this.createDayHeaderFormatter(context.options.dayHeaderFormat, datesRepDistinctDays, dates.length);
|
|
6136
|
-
return (
|
|
6146
|
+
return (y(NowTimer, { unit: "day" }, (nowDate, todayRange) => (y("tr", { role: "row" },
|
|
6137
6147
|
renderIntro && renderIntro('day'),
|
|
6138
|
-
dates.map((date) => (datesRepDistinctDays ? (
|
|
6148
|
+
dates.map((date) => (datesRepDistinctDays ? (y(TableDateCell, { key: date.toISOString(), date: date, dateProfile: dateProfile, todayRange: todayRange, colCnt: dates.length, dayHeaderFormat: dayHeaderFormat })) : (y(TableDowCell, { key: date.getUTCDay(), dow: date.getUTCDay(), dayHeaderFormat: dayHeaderFormat }))))))));
|
|
6139
6149
|
}
|
|
6140
6150
|
}
|
|
6141
6151
|
function createDayHeaderFormatter(explicitFormat, datesRepDistinctDays, dateCnt) {
|
|
@@ -6599,7 +6609,7 @@ var FullCalendar = (function (exports) {
|
|
|
6599
6609
|
className.push('fc-scroller-liquid');
|
|
6600
6610
|
}
|
|
6601
6611
|
}
|
|
6602
|
-
return (
|
|
6612
|
+
return (y("div", { ref: this.handleEl, className: className.join(' '), style: {
|
|
6603
6613
|
overflowX: props.overflowX,
|
|
6604
6614
|
overflowY: props.overflowY,
|
|
6605
6615
|
left: (isAbsolute && -(props.overcomeLeft || 0)) || '',
|
|
@@ -6740,7 +6750,7 @@ var FullCalendar = (function (exports) {
|
|
|
6740
6750
|
let { expandRows } = arg;
|
|
6741
6751
|
let content = typeof chunkConfig.content === 'function' ?
|
|
6742
6752
|
chunkConfig.content(arg) :
|
|
6743
|
-
|
|
6753
|
+
y('table', {
|
|
6744
6754
|
role: 'presentation',
|
|
6745
6755
|
className: [
|
|
6746
6756
|
chunkConfig.tableClassName,
|
|
@@ -6751,7 +6761,7 @@ var FullCalendar = (function (exports) {
|
|
|
6751
6761
|
width: arg.clientWidth,
|
|
6752
6762
|
height: expandRows ? arg.clientHeight : '', // css `height` on a <table> serves as a min-height
|
|
6753
6763
|
},
|
|
6754
|
-
}, arg.tableColGroupNode,
|
|
6764
|
+
}, arg.tableColGroupNode, y(isHeader ? 'thead' : 'tbody', {
|
|
6755
6765
|
role: 'presentation',
|
|
6756
6766
|
}, typeof chunkConfig.rowContent === 'function'
|
|
6757
6767
|
? chunkConfig.rowContent(arg)
|
|
@@ -6771,13 +6781,13 @@ var FullCalendar = (function (exports) {
|
|
|
6771
6781
|
for (let colProps of cols) {
|
|
6772
6782
|
let span = colProps.span || 1;
|
|
6773
6783
|
for (let i = 0; i < span; i += 1) {
|
|
6774
|
-
colNodes.push(
|
|
6784
|
+
colNodes.push(y("col", { style: {
|
|
6775
6785
|
width: colProps.width === 'shrink' ? sanitizeShrinkWidth(shrinkWidth) : (colProps.width || ''),
|
|
6776
6786
|
minWidth: colProps.minWidth || '',
|
|
6777
6787
|
} }));
|
|
6778
6788
|
}
|
|
6779
6789
|
}
|
|
6780
|
-
return
|
|
6790
|
+
return y('colgroup', {}, ...colNodes);
|
|
6781
6791
|
}
|
|
6782
6792
|
function sanitizeShrinkWidth(shrinkWidth) {
|
|
6783
6793
|
/* why 4? if we do 0, it will kill any border, which are needed for computeSmallestCellWidth
|
|
@@ -6817,7 +6827,7 @@ var FullCalendar = (function (exports) {
|
|
|
6817
6827
|
return classNames;
|
|
6818
6828
|
}
|
|
6819
6829
|
function renderScrollShim(arg) {
|
|
6820
|
-
return (
|
|
6830
|
+
return (y("div", { className: "fc-scrollgrid-sticky-shim", style: {
|
|
6821
6831
|
width: arg.clientWidth,
|
|
6822
6832
|
minWidth: arg.tableMinWidth,
|
|
6823
6833
|
} }));
|
|
@@ -6890,17 +6900,17 @@ var FullCalendar = (function (exports) {
|
|
|
6890
6900
|
// if so, use a simpler dom structure, jam everything into a lone tbody.
|
|
6891
6901
|
let isBuggy = !getCanVGrowWithinCell();
|
|
6892
6902
|
const roleAttrs = { role: 'rowgroup' };
|
|
6893
|
-
return
|
|
6903
|
+
return y('table', {
|
|
6894
6904
|
role: 'grid',
|
|
6895
6905
|
className: classNames.join(' '),
|
|
6896
6906
|
style: { height: props.height },
|
|
6897
|
-
}, Boolean(!isBuggy && headSectionNodes.length) &&
|
|
6907
|
+
}, Boolean(!isBuggy && headSectionNodes.length) && y('thead', roleAttrs, ...headSectionNodes), Boolean(!isBuggy && bodySectionNodes.length) && y('tbody', roleAttrs, ...bodySectionNodes), Boolean(!isBuggy && footSectionNodes.length) && y('tfoot', roleAttrs, ...footSectionNodes), isBuggy && y('tbody', roleAttrs, ...headSectionNodes, ...bodySectionNodes, ...footSectionNodes));
|
|
6898
6908
|
}
|
|
6899
6909
|
renderSection(sectionConfig, microColGroupNode, isHeader) {
|
|
6900
6910
|
if ('outerContent' in sectionConfig) {
|
|
6901
|
-
return (
|
|
6911
|
+
return (y(_, { key: sectionConfig.key }, sectionConfig.outerContent));
|
|
6902
6912
|
}
|
|
6903
|
-
return (
|
|
6913
|
+
return (y("tr", { key: sectionConfig.key, role: "presentation", className: getSectionClassNames(sectionConfig, this.props.liquid).join(' ') }, this.renderChunkTd(sectionConfig, microColGroupNode, sectionConfig.chunk, isHeader)));
|
|
6904
6914
|
}
|
|
6905
6915
|
renderChunkTd(sectionConfig, microColGroupNode, chunkConfig, isHeader) {
|
|
6906
6916
|
if ('outerContent' in chunkConfig) {
|
|
@@ -6927,11 +6937,11 @@ var FullCalendar = (function (exports) {
|
|
|
6927
6937
|
rowSyncHeights: [],
|
|
6928
6938
|
reportRowHeightChange: () => { },
|
|
6929
6939
|
}, isHeader);
|
|
6930
|
-
return
|
|
6940
|
+
return y(isHeader ? 'th' : 'td', {
|
|
6931
6941
|
ref: chunkConfig.elRef,
|
|
6932
6942
|
role: 'presentation',
|
|
6933
|
-
},
|
|
6934
|
-
|
|
6943
|
+
}, y("div", { className: `fc-scroller-harness${isLiquid ? ' fc-scroller-harness-liquid' : ''}` },
|
|
6944
|
+
y(Scroller, { ref: this.scrollerRefs.createRef(sectionKey), elRef: this.scrollerElRefs.createRef(sectionKey), overflowY: overflowY, overflowX: !props.liquid ? 'visible' : 'hidden' /* natural height? */, maxHeight: sectionConfig.maxHeight, liquid: isLiquid, liquidIsAbsolute // because its within a harness
|
|
6935
6945
|
: true }, content)));
|
|
6936
6946
|
}
|
|
6937
6947
|
_handleScrollerEl(scrollerEl, key) {
|
|
@@ -7032,7 +7042,7 @@ var FullCalendar = (function (exports) {
|
|
|
7032
7042
|
isDragging: Boolean(props.isDragging),
|
|
7033
7043
|
isResizing: Boolean(props.isResizing),
|
|
7034
7044
|
};
|
|
7035
|
-
return (
|
|
7045
|
+
return (y(ContentContainer, Object.assign({}, props /* contains children */, { elRef: this.handleEl, elClasses: [
|
|
7036
7046
|
...getEventClassNames(renderProps),
|
|
7037
7047
|
...seg.eventRange.ui.classNames,
|
|
7038
7048
|
...(props.elClasses || []),
|
|
@@ -7054,30 +7064,30 @@ var FullCalendar = (function (exports) {
|
|
|
7054
7064
|
let { ui } = seg.eventRange;
|
|
7055
7065
|
let timeFormat = options.eventTimeFormat || props.defaultTimeFormat;
|
|
7056
7066
|
let timeText = buildSegTimeText(seg, timeFormat, context, props.defaultDisplayEventTime, props.defaultDisplayEventEnd);
|
|
7057
|
-
return (
|
|
7067
|
+
return (y(EventContainer, Object.assign({}, props /* includes elRef */, { elTag: "a", elStyle: {
|
|
7058
7068
|
borderColor: ui.borderColor,
|
|
7059
7069
|
backgroundColor: ui.backgroundColor,
|
|
7060
|
-
}, elAttrs: getSegAnchorAttrs(seg, context), defaultGenerator: renderInnerContent$1$1, timeText: timeText }), (InnerContent, eventContentArg) => (
|
|
7061
|
-
|
|
7062
|
-
Boolean(eventContentArg.isStartResizable) && (
|
|
7063
|
-
Boolean(eventContentArg.isEndResizable) && (
|
|
7070
|
+
}, elAttrs: getSegAnchorAttrs(seg, context), defaultGenerator: renderInnerContent$1$1, timeText: timeText }), (InnerContent, eventContentArg) => (y(_, null,
|
|
7071
|
+
y(InnerContent, { elTag: "div", elClasses: ['fc-event-main'], elStyle: { color: eventContentArg.textColor } }),
|
|
7072
|
+
Boolean(eventContentArg.isStartResizable) && (y("div", { className: "fc-event-resizer fc-event-resizer-start" })),
|
|
7073
|
+
Boolean(eventContentArg.isEndResizable) && (y("div", { className: "fc-event-resizer fc-event-resizer-end" }))))));
|
|
7064
7074
|
}
|
|
7065
7075
|
}
|
|
7066
7076
|
function renderInnerContent$1$1(innerProps) {
|
|
7067
|
-
return (
|
|
7068
|
-
innerProps.timeText && (
|
|
7069
|
-
|
|
7070
|
-
|
|
7077
|
+
return (y("div", { className: "fc-event-main-frame" },
|
|
7078
|
+
innerProps.timeText && (y("div", { className: "fc-event-time" }, innerProps.timeText)),
|
|
7079
|
+
y("div", { className: "fc-event-title-container" },
|
|
7080
|
+
y("div", { className: "fc-event-title fc-sticky" }, innerProps.event.title || y(_, null, "\u00A0")))));
|
|
7071
7081
|
}
|
|
7072
7082
|
|
|
7073
|
-
const NowIndicatorContainer = (props) => (
|
|
7083
|
+
const NowIndicatorContainer = (props) => (y(ViewContextType.Consumer, null, (context) => {
|
|
7074
7084
|
let { options } = context;
|
|
7075
7085
|
let renderProps = {
|
|
7076
7086
|
isAxis: props.isAxis,
|
|
7077
7087
|
date: context.dateEnv.toDate(props.date),
|
|
7078
7088
|
view: context.viewApi,
|
|
7079
7089
|
};
|
|
7080
|
-
return (
|
|
7090
|
+
return (y(ContentContainer, Object.assign({}, props /* includes children */, { elTag: props.elTag || 'div', renderProps: renderProps, generatorName: "nowIndicatorContent", customGenerator: options.nowIndicatorContent, classNameGenerator: options.nowIndicatorClassNames, didMount: options.nowIndicatorDidMount, willUnmount: options.nowIndicatorWillUnmount })));
|
|
7081
7091
|
}));
|
|
7082
7092
|
|
|
7083
7093
|
const DAY_NUM_FORMAT = createFormatter({ day: 'numeric' });
|
|
@@ -7100,7 +7110,7 @@ var FullCalendar = (function (exports) {
|
|
|
7100
7110
|
dateEnv: context.dateEnv,
|
|
7101
7111
|
monthStartFormat: options.monthStartFormat,
|
|
7102
7112
|
});
|
|
7103
|
-
return (
|
|
7113
|
+
return (y(ContentContainer, Object.assign({}, props /* includes children */, { elClasses: [
|
|
7104
7114
|
...getDayClassNames(renderProps, context.theme),
|
|
7105
7115
|
...(props.elClasses || []),
|
|
7106
7116
|
], elAttrs: Object.assign(Object.assign({}, props.elAttrs), (renderProps.isDisabled ? {} : { 'data-date': formatDayString(props.date) })), renderProps: renderProps, generatorName: "dayCellContent", customGenerator: options.dayCellContent, defaultGenerator: props.defaultGenerator, classNameGenerator:
|
|
@@ -7123,25 +7133,25 @@ var FullCalendar = (function (exports) {
|
|
|
7123
7133
|
render() {
|
|
7124
7134
|
let { props } = this;
|
|
7125
7135
|
let { seg } = props;
|
|
7126
|
-
return (
|
|
7136
|
+
return (y(EventContainer, { elTag: "div", elClasses: ['fc-bg-event'], elStyle: { backgroundColor: seg.eventRange.ui.backgroundColor }, defaultGenerator: renderInnerContent$3, seg: seg, timeText: "", isDragging: false, isResizing: false, isDateSelecting: false, isSelected: false, isPast: props.isPast, isFuture: props.isFuture, isToday: props.isToday, disableDragging: true, disableResizing: true }));
|
|
7127
7137
|
}
|
|
7128
7138
|
}
|
|
7129
7139
|
function renderInnerContent$3(props) {
|
|
7130
7140
|
let { title } = props.event;
|
|
7131
|
-
return title && (
|
|
7141
|
+
return title && (y("div", { className: "fc-event-title" }, props.event.title));
|
|
7132
7142
|
}
|
|
7133
7143
|
function renderFill(fillType) {
|
|
7134
|
-
return (
|
|
7144
|
+
return (y("div", { className: `fc-${fillType}` }));
|
|
7135
7145
|
}
|
|
7136
7146
|
|
|
7137
|
-
const WeekNumberContainer = (props) => (
|
|
7147
|
+
const WeekNumberContainer = (props) => (y(ViewContextType.Consumer, null, (context) => {
|
|
7138
7148
|
let { dateEnv, options } = context;
|
|
7139
7149
|
let { date } = props;
|
|
7140
7150
|
let format = options.weekNumberFormat || props.defaultFormat;
|
|
7141
7151
|
let num = dateEnv.computeWeekNumber(date); // TODO: somehow use for formatting as well?
|
|
7142
7152
|
let text = dateEnv.format(date, format);
|
|
7143
7153
|
let renderProps = { num, text, date };
|
|
7144
|
-
return (
|
|
7154
|
+
return (y(ContentContainer // why isn't WeekNumberContentArg being auto-detected?
|
|
7145
7155
|
, Object.assign({}, props /* includes children */, { renderProps: renderProps, generatorName: "weekNumberContent", customGenerator: options.weekNumberContent, defaultGenerator: renderInner, classNameGenerator: options.weekNumberClassNames, didMount: options.weekNumberDidMount, willUnmount: options.weekNumberWillUnmount })));
|
|
7146
7156
|
}));
|
|
7147
7157
|
function renderInner(innerProps) {
|
|
@@ -7188,11 +7198,11 @@ var FullCalendar = (function (exports) {
|
|
|
7188
7198
|
'fc-popover',
|
|
7189
7199
|
theme.getClass('popover'),
|
|
7190
7200
|
].concat(props.extraClassNames || []);
|
|
7191
|
-
return j(
|
|
7192
|
-
|
|
7193
|
-
|
|
7194
|
-
|
|
7195
|
-
|
|
7201
|
+
return j(y("div", Object.assign({}, props.extraAttrs, { id: props.id, className: classNames.join(' '), "aria-labelledby": state.titleId, ref: this.handleRootEl }),
|
|
7202
|
+
y("div", { className: 'fc-popover-header ' + theme.getClass('popoverHeader') },
|
|
7203
|
+
y("span", { className: "fc-popover-title", id: state.titleId }, props.title),
|
|
7204
|
+
y("span", { className: 'fc-popover-close ' + theme.getIconClass('close'), title: options.closeHint, onClick: this.handleCloseClick })),
|
|
7205
|
+
y("div", { className: 'fc-popover-body ' + theme.getClass('popoverContent') }, props.children)), props.parentEl);
|
|
7196
7206
|
}
|
|
7197
7207
|
componentDidMount() {
|
|
7198
7208
|
document.addEventListener('mousedown', this.handleDocumentMouseDown);
|
|
@@ -7249,8 +7259,8 @@ var FullCalendar = (function (exports) {
|
|
|
7249
7259
|
let { props } = this;
|
|
7250
7260
|
let { startDate, todayRange, dateProfile } = props;
|
|
7251
7261
|
let title = dateEnv.format(startDate, options.dayPopoverFormat);
|
|
7252
|
-
return (
|
|
7253
|
-
hasCustomDayCellContent(options) && (
|
|
7262
|
+
return (y(DayCellContainer, { elRef: this.handleRootEl, date: startDate, dateProfile: dateProfile, todayRange: todayRange }, (InnerContent, renderProps, elAttrs) => (y(Popover, { elRef: elAttrs.ref, id: props.id, title: title, extraClassNames: ['fc-more-popover'].concat(elAttrs.className || []), extraAttrs: elAttrs /* TODO: make these time-based when not whole-day? */, parentEl: props.parentEl, alignmentEl: props.alignmentEl, alignGridTop: props.alignGridTop, onClose: props.onClose },
|
|
7263
|
+
hasCustomDayCellContent(options) && (y(InnerContent, { elTag: "div", elClasses: ['fc-more-popover-misc'] })),
|
|
7254
7264
|
props.children))));
|
|
7255
7265
|
}
|
|
7256
7266
|
queryHit(positionLeft, positionTop, elWidth, elHeight) {
|
|
@@ -7259,7 +7269,7 @@ var FullCalendar = (function (exports) {
|
|
|
7259
7269
|
positionTop >= 0 && positionTop < elHeight) {
|
|
7260
7270
|
return {
|
|
7261
7271
|
dateProfile: props.dateProfile,
|
|
7262
|
-
dateSpan: Object.assign({ allDay:
|
|
7272
|
+
dateSpan: Object.assign({ allDay: !props.forceTimed, range: {
|
|
7263
7273
|
start: props.startDate,
|
|
7264
7274
|
end: props.endDate,
|
|
7265
7275
|
} }, props.extraDateSpan),
|
|
@@ -7327,7 +7337,7 @@ var FullCalendar = (function (exports) {
|
|
|
7327
7337
|
}
|
|
7328
7338
|
render() {
|
|
7329
7339
|
let { props, state } = this;
|
|
7330
|
-
return (
|
|
7340
|
+
return (y(ViewContextType.Consumer, null, (context) => {
|
|
7331
7341
|
let { viewApi, options, calendarApi } = context;
|
|
7332
7342
|
let { moreLinkText } = options;
|
|
7333
7343
|
let { moreCnt } = props;
|
|
@@ -7342,14 +7352,14 @@ var FullCalendar = (function (exports) {
|
|
|
7342
7352
|
text,
|
|
7343
7353
|
view: viewApi,
|
|
7344
7354
|
};
|
|
7345
|
-
return (
|
|
7346
|
-
Boolean(props.moreCnt) && (
|
|
7355
|
+
return (y(_, null,
|
|
7356
|
+
Boolean(props.moreCnt) && (y(ContentContainer, { elTag: props.elTag || 'a', elRef: this.handleLinkEl, elClasses: [
|
|
7347
7357
|
...(props.elClasses || []),
|
|
7348
7358
|
'fc-more-link',
|
|
7349
7359
|
], elStyle: props.elStyle, elAttrs: Object.assign(Object.assign(Object.assign({}, props.elAttrs), createAriaClickAttrs(this.handleClick)), { title: hint, 'aria-expanded': state.isPopoverOpen, 'aria-controls': state.isPopoverOpen ? state.popoverId : '' }), renderProps: renderProps, generatorName: "moreLinkContent", customGenerator: options.moreLinkContent, defaultGenerator: props.defaultGenerator || renderMoreLinkInner$1, classNameGenerator: options.moreLinkClassNames, didMount: options.moreLinkDidMount, willUnmount: options.moreLinkWillUnmount }, props.children)),
|
|
7350
|
-
state.isPopoverOpen && (
|
|
7360
|
+
state.isPopoverOpen && (y(MorePopover, { id: state.popoverId, startDate: range.start, endDate: range.end, dateProfile: props.dateProfile, todayRange: props.todayRange, extraDateSpan: props.extraDateSpan, parentEl: this.parentEl, alignmentEl: props.alignmentElRef ?
|
|
7351
7361
|
props.alignmentElRef.current :
|
|
7352
|
-
this.linkEl, alignGridTop: props.alignGridTop, onClose: this.handlePopoverClose }, props.popoverContent()))));
|
|
7362
|
+
this.linkEl, alignGridTop: props.alignGridTop, forceTimed: props.forceTimed, onClose: this.handlePopoverClose }, props.popoverContent()))));
|
|
7353
7363
|
}));
|
|
7354
7364
|
}
|
|
7355
7365
|
componentDidMount() {
|
|
@@ -7632,22 +7642,19 @@ var FullCalendar = (function (exports) {
|
|
|
7632
7642
|
createPortal: j,
|
|
7633
7643
|
createContext: createContext,
|
|
7634
7644
|
flushSync: flushSync,
|
|
7635
|
-
Component:
|
|
7636
|
-
Fragment:
|
|
7637
|
-
cloneElement:
|
|
7638
|
-
createElement:
|
|
7639
|
-
createRef:
|
|
7640
|
-
h:
|
|
7641
|
-
hydrate:
|
|
7645
|
+
Component: x$1,
|
|
7646
|
+
Fragment: _,
|
|
7647
|
+
cloneElement: F$1,
|
|
7648
|
+
createElement: y,
|
|
7649
|
+
createRef: d,
|
|
7650
|
+
h: y,
|
|
7651
|
+
hydrate: E,
|
|
7642
7652
|
get isValidElement () { return i$1; },
|
|
7643
7653
|
get options () { return l$1; },
|
|
7644
|
-
render:
|
|
7645
|
-
toChildArray:
|
|
7654
|
+
render: D$1,
|
|
7655
|
+
toChildArray: j$2
|
|
7646
7656
|
};
|
|
7647
7657
|
|
|
7648
|
-
var css_248z$4 = ":root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc-unselectable{-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;-moz-user-select:none;user-select:none}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url(\"data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=\") format(\"truetype\")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:\"\\e900\"}.fc-icon-chevron-right:before{content:\"\\e901\"}.fc-icon-chevrons-left:before{content:\"\\e902\"}.fc-icon-chevrons-right:before{content:\"\\e903\"}.fc-icon-minus-square:before{content:\"\\e904\"}.fc-icon-plus-square:before{content:\"\\e905\"}.fc-icon-x:before{content:\"\\e906\"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button::-moz-focus-inner{border-style:none;padding:0}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:\"\";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:\"\";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:\"\";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}";
|
|
7649
|
-
injectStyles(css_248z$4);
|
|
7650
|
-
|
|
7651
7658
|
const globalLocales = [];
|
|
7652
7659
|
|
|
7653
7660
|
const MINIMAL_RAW_EN_LOCALE = {
|
|
@@ -7997,7 +8004,7 @@ var FullCalendar = (function (exports) {
|
|
|
7997
8004
|
};
|
|
7998
8005
|
}
|
|
7999
8006
|
function createViewHookComponent(options) {
|
|
8000
|
-
return (viewProps) => (
|
|
8007
|
+
return (viewProps) => (y(ViewContextType.Consumer, null, (context) => (y(ContentContainer, { elTag: "div", elClasses: buildViewClassNames(context.viewSpec), renderProps: Object.assign(Object.assign({}, viewProps), { nextDayThreshold: context.options.nextDayThreshold }), generatorName: undefined, customGenerator: options.content, classNameGenerator: options.classNames, didMount: options.didMount, willUnmount: options.willUnmount }))));
|
|
8001
8008
|
}
|
|
8002
8009
|
|
|
8003
8010
|
function buildViewSpecs(defaultInputs, optionOverrides, dynamicOptionOverrides, localeDefaults) {
|
|
@@ -9263,7 +9270,7 @@ var FullCalendar = (function (exports) {
|
|
|
9263
9270
|
class ToolbarSection extends BaseComponent {
|
|
9264
9271
|
render() {
|
|
9265
9272
|
let children = this.props.widgetGroups.map((widgetGroup) => this.renderWidgetGroup(widgetGroup));
|
|
9266
|
-
return
|
|
9273
|
+
return y('div', { className: 'fc-toolbar-chunk' }, ...children);
|
|
9267
9274
|
}
|
|
9268
9275
|
renderWidgetGroup(widgetGroup) {
|
|
9269
9276
|
let { props } = this;
|
|
@@ -9274,7 +9281,7 @@ var FullCalendar = (function (exports) {
|
|
|
9274
9281
|
let { buttonName, buttonClick, buttonText, buttonIcon, buttonHint } = widget;
|
|
9275
9282
|
if (buttonName === 'title') {
|
|
9276
9283
|
isOnlyButtons = false;
|
|
9277
|
-
children.push(
|
|
9284
|
+
children.push(y("h2", { className: "fc-toolbar-title", id: props.titleId }, props.title));
|
|
9278
9285
|
}
|
|
9279
9286
|
else {
|
|
9280
9287
|
let isPressed = buttonName === props.activeButton;
|
|
@@ -9285,12 +9292,12 @@ var FullCalendar = (function (exports) {
|
|
|
9285
9292
|
if (isPressed) {
|
|
9286
9293
|
buttonClasses.push(theme.getClass('buttonActive'));
|
|
9287
9294
|
}
|
|
9288
|
-
children.push(
|
|
9295
|
+
children.push(y("button", { type: "button", title: typeof buttonHint === 'function' ? buttonHint(props.navUnit) : buttonHint, disabled: isDisabled, "aria-pressed": isPressed, className: buttonClasses.join(' '), onClick: buttonClick }, buttonText || (buttonIcon ? y("span", { className: buttonIcon }) : '')));
|
|
9289
9296
|
}
|
|
9290
9297
|
}
|
|
9291
9298
|
if (children.length > 1) {
|
|
9292
9299
|
let groupClassName = (isOnlyButtons && theme.getClass('buttonGroup')) || '';
|
|
9293
|
-
return
|
|
9300
|
+
return y('div', { className: groupClassName }, ...children);
|
|
9294
9301
|
}
|
|
9295
9302
|
return children[0];
|
|
9296
9303
|
}
|
|
@@ -9323,14 +9330,14 @@ var FullCalendar = (function (exports) {
|
|
|
9323
9330
|
'fc-toolbar',
|
|
9324
9331
|
forceLtr ? 'fc-toolbar-ltr' : '',
|
|
9325
9332
|
];
|
|
9326
|
-
return (
|
|
9333
|
+
return (y("div", { className: classNames.join(' ') },
|
|
9327
9334
|
this.renderSection('start', startContent || []),
|
|
9328
9335
|
this.renderSection('center', centerContent || []),
|
|
9329
9336
|
this.renderSection('end', endContent || [])));
|
|
9330
9337
|
}
|
|
9331
9338
|
renderSection(key, widgetGroups) {
|
|
9332
9339
|
let { props } = this;
|
|
9333
|
-
return (
|
|
9340
|
+
return (y(ToolbarSection, { key: key, widgetGroups: widgetGroups, title: props.title, navUnit: props.navUnit, activeButton: props.activeButton, isTodayEnabled: props.isTodayEnabled, isPrevEnabled: props.isPrevEnabled, isNextEnabled: props.isNextEnabled, titleId: props.titleId }));
|
|
9334
9341
|
}
|
|
9335
9342
|
}
|
|
9336
9343
|
|
|
@@ -9375,7 +9382,7 @@ var FullCalendar = (function (exports) {
|
|
|
9375
9382
|
else {
|
|
9376
9383
|
height = props.height || '';
|
|
9377
9384
|
}
|
|
9378
|
-
return (
|
|
9385
|
+
return (y("div", { "aria-labelledby": props.labeledById, ref: this.handleEl, className: classNames.join(' '), style: { height, paddingBottom } }, props.children));
|
|
9379
9386
|
}
|
|
9380
9387
|
componentDidMount() {
|
|
9381
9388
|
this.context.addResizeHandler(this.handleResize);
|
|
@@ -9476,8 +9483,8 @@ var FullCalendar = (function (exports) {
|
|
|
9476
9483
|
this.buildViewContext = memoize(buildViewContext);
|
|
9477
9484
|
this.buildViewPropTransformers = memoize(buildViewPropTransformers);
|
|
9478
9485
|
this.buildToolbarProps = memoize(buildToolbarProps);
|
|
9479
|
-
this.headerRef =
|
|
9480
|
-
this.footerRef =
|
|
9486
|
+
this.headerRef = d();
|
|
9487
|
+
this.footerRef = d();
|
|
9481
9488
|
this.interactionsStore = {};
|
|
9482
9489
|
// eslint-disable-next-line
|
|
9483
9490
|
this.state = {
|
|
@@ -9548,12 +9555,12 @@ var FullCalendar = (function (exports) {
|
|
|
9548
9555
|
let viewLabelId = (toolbarConfig.header && toolbarConfig.header.hasTitle)
|
|
9549
9556
|
? this.state.viewLabelId
|
|
9550
9557
|
: '';
|
|
9551
|
-
return (
|
|
9552
|
-
toolbarConfig.header && (
|
|
9553
|
-
|
|
9558
|
+
return (y(ViewContextType.Provider, { value: viewContext },
|
|
9559
|
+
toolbarConfig.header && (y(Toolbar, Object.assign({ ref: this.headerRef, extraClassName: "fc-header-toolbar", model: toolbarConfig.header, titleId: viewLabelId }, toolbarProps))),
|
|
9560
|
+
y(ViewHarness, { liquid: viewVGrow, height: viewHeight, aspectRatio: viewAspectRatio, labeledById: viewLabelId },
|
|
9554
9561
|
this.renderView(props),
|
|
9555
9562
|
this.buildAppendContent()),
|
|
9556
|
-
toolbarConfig.footer && (
|
|
9563
|
+
toolbarConfig.footer && (y(Toolbar, Object.assign({ ref: this.footerRef, extraClassName: "fc-footer-toolbar", model: toolbarConfig.footer, titleId: "" }, toolbarProps)))));
|
|
9557
9564
|
}
|
|
9558
9565
|
componentDidMount() {
|
|
9559
9566
|
let { props } = this;
|
|
@@ -9585,7 +9592,7 @@ var FullCalendar = (function (exports) {
|
|
|
9585
9592
|
buildAppendContent() {
|
|
9586
9593
|
let { props } = this;
|
|
9587
9594
|
let children = props.pluginHooks.viewContainerAppends.map((buildAppendContent) => buildAppendContent(props));
|
|
9588
|
-
return
|
|
9595
|
+
return y(_, {}, ...children);
|
|
9589
9596
|
}
|
|
9590
9597
|
renderView(props) {
|
|
9591
9598
|
let { pluginHooks } = props;
|
|
@@ -9607,7 +9614,7 @@ var FullCalendar = (function (exports) {
|
|
|
9607
9614
|
Object.assign(viewProps, transformer.transform(viewProps, props));
|
|
9608
9615
|
}
|
|
9609
9616
|
let ViewComponent = viewSpec.component;
|
|
9610
|
-
return (
|
|
9617
|
+
return (y(ViewComponent, Object.assign({}, viewProps)));
|
|
9611
9618
|
}
|
|
9612
9619
|
}
|
|
9613
9620
|
function buildToolbarProps(viewSpec, dateProfile, dateProfileGenerator, currentDate, now, title) {
|
|
@@ -9654,17 +9661,17 @@ var FullCalendar = (function (exports) {
|
|
|
9654
9661
|
this.isRendered = true;
|
|
9655
9662
|
let { currentData } = this;
|
|
9656
9663
|
flushSync(() => {
|
|
9657
|
-
|
|
9664
|
+
D$1(y(CalendarRoot, { options: currentData.calendarOptions, theme: currentData.theme, emitter: currentData.emitter }, (classNames, height, isHeightAuto, forPrint) => {
|
|
9658
9665
|
this.setClassNames(classNames);
|
|
9659
9666
|
this.setHeight(height);
|
|
9660
|
-
return (
|
|
9661
|
-
|
|
9667
|
+
return (y(RenderId.Provider, { value: this.customContentRenderId },
|
|
9668
|
+
y(CalendarContent, Object.assign({ isHeightAuto: isHeightAuto, forPrint: forPrint }, currentData))));
|
|
9662
9669
|
}), this.el);
|
|
9663
9670
|
});
|
|
9664
9671
|
}
|
|
9665
9672
|
else if (this.isRendered) {
|
|
9666
9673
|
this.isRendered = false;
|
|
9667
|
-
|
|
9674
|
+
D$1(null, this.el);
|
|
9668
9675
|
this.setClassNames([]);
|
|
9669
9676
|
this.setHeight('');
|
|
9670
9677
|
}
|
|
@@ -9775,7 +9782,7 @@ var FullCalendar = (function (exports) {
|
|
|
9775
9782
|
return sliceEventStore(props.eventStore, props.eventUiBases, props.dateProfile.activeRange, allDay ? props.nextDayThreshold : null).fg;
|
|
9776
9783
|
}
|
|
9777
9784
|
|
|
9778
|
-
const version = '6.1.
|
|
9785
|
+
const version = '6.1.5';
|
|
9779
9786
|
|
|
9780
9787
|
config.touchMouseIgnoreWait = 500;
|
|
9781
9788
|
let ignoreMouseDepth = 0;
|
|
@@ -10151,7 +10158,7 @@ var FullCalendar = (function (exports) {
|
|
|
10151
10158
|
mirrorEl = this.mirrorEl = this.sourceEl.cloneNode(true); // cloneChildren=true
|
|
10152
10159
|
// we don't want long taps or any mouse interaction causing selection/menus.
|
|
10153
10160
|
// would use preventSelection(), but that prevents selectstart, causing problems.
|
|
10154
|
-
mirrorEl.
|
|
10161
|
+
mirrorEl.style.userSelect = 'none';
|
|
10155
10162
|
mirrorEl.classList.add('fc-event-dragging');
|
|
10156
10163
|
applyStyle(mirrorEl, {
|
|
10157
10164
|
position: 'fixed',
|
|
@@ -11872,6 +11879,87 @@ var FullCalendar = (function (exports) {
|
|
|
11872
11879
|
listenerRefiners: LISTENER_REFINERS,
|
|
11873
11880
|
});
|
|
11874
11881
|
|
|
11882
|
+
/* An abstract class for the daygrid views, as well as month view. Renders one or more rows of day cells.
|
|
11883
|
+
----------------------------------------------------------------------------------------------------------------------*/
|
|
11884
|
+
// It is a manager for a Table subcomponent, which does most of the heavy lifting.
|
|
11885
|
+
// It is responsible for managing width/height.
|
|
11886
|
+
class TableView extends DateComponent {
|
|
11887
|
+
constructor() {
|
|
11888
|
+
super(...arguments);
|
|
11889
|
+
this.headerElRef = d();
|
|
11890
|
+
}
|
|
11891
|
+
renderSimpleLayout(headerRowContent, bodyContent) {
|
|
11892
|
+
let { props, context } = this;
|
|
11893
|
+
let sections = [];
|
|
11894
|
+
let stickyHeaderDates = getStickyHeaderDates(context.options);
|
|
11895
|
+
if (headerRowContent) {
|
|
11896
|
+
sections.push({
|
|
11897
|
+
type: 'header',
|
|
11898
|
+
key: 'header',
|
|
11899
|
+
isSticky: stickyHeaderDates,
|
|
11900
|
+
chunk: {
|
|
11901
|
+
elRef: this.headerElRef,
|
|
11902
|
+
tableClassName: 'fc-col-header',
|
|
11903
|
+
rowContent: headerRowContent,
|
|
11904
|
+
},
|
|
11905
|
+
});
|
|
11906
|
+
}
|
|
11907
|
+
sections.push({
|
|
11908
|
+
type: 'body',
|
|
11909
|
+
key: 'body',
|
|
11910
|
+
liquid: true,
|
|
11911
|
+
chunk: { content: bodyContent },
|
|
11912
|
+
});
|
|
11913
|
+
return (y(ViewContainer, { elClasses: ['fc-daygrid'], viewSpec: context.viewSpec },
|
|
11914
|
+
y(SimpleScrollGrid, { liquid: !props.isHeightAuto && !props.forPrint, collapsibleWidth: props.forPrint, cols: [] /* TODO: make optional? */, sections: sections })));
|
|
11915
|
+
}
|
|
11916
|
+
renderHScrollLayout(headerRowContent, bodyContent, colCnt, dayMinWidth) {
|
|
11917
|
+
let ScrollGrid = this.context.pluginHooks.scrollGridImpl;
|
|
11918
|
+
if (!ScrollGrid) {
|
|
11919
|
+
throw new Error('No ScrollGrid implementation');
|
|
11920
|
+
}
|
|
11921
|
+
let { props, context } = this;
|
|
11922
|
+
let stickyHeaderDates = !props.forPrint && getStickyHeaderDates(context.options);
|
|
11923
|
+
let stickyFooterScrollbar = !props.forPrint && getStickyFooterScrollbar(context.options);
|
|
11924
|
+
let sections = [];
|
|
11925
|
+
if (headerRowContent) {
|
|
11926
|
+
sections.push({
|
|
11927
|
+
type: 'header',
|
|
11928
|
+
key: 'header',
|
|
11929
|
+
isSticky: stickyHeaderDates,
|
|
11930
|
+
chunks: [{
|
|
11931
|
+
key: 'main',
|
|
11932
|
+
elRef: this.headerElRef,
|
|
11933
|
+
tableClassName: 'fc-col-header',
|
|
11934
|
+
rowContent: headerRowContent,
|
|
11935
|
+
}],
|
|
11936
|
+
});
|
|
11937
|
+
}
|
|
11938
|
+
sections.push({
|
|
11939
|
+
type: 'body',
|
|
11940
|
+
key: 'body',
|
|
11941
|
+
liquid: true,
|
|
11942
|
+
chunks: [{
|
|
11943
|
+
key: 'main',
|
|
11944
|
+
content: bodyContent,
|
|
11945
|
+
}],
|
|
11946
|
+
});
|
|
11947
|
+
if (stickyFooterScrollbar) {
|
|
11948
|
+
sections.push({
|
|
11949
|
+
type: 'footer',
|
|
11950
|
+
key: 'footer',
|
|
11951
|
+
isSticky: true,
|
|
11952
|
+
chunks: [{
|
|
11953
|
+
key: 'main',
|
|
11954
|
+
content: renderScrollShim,
|
|
11955
|
+
}],
|
|
11956
|
+
});
|
|
11957
|
+
}
|
|
11958
|
+
return (y(ViewContainer, { elClasses: ['fc-daygrid'], viewSpec: context.viewSpec },
|
|
11959
|
+
y(ScrollGrid, { liquid: !props.isHeightAuto && !props.forPrint, forPrint: props.forPrint, collapsibleWidth: props.forPrint, colGroups: [{ cols: [{ span: colCnt, minWidth: dayMinWidth }] }], sections: sections })));
|
|
11960
|
+
}
|
|
11961
|
+
}
|
|
11962
|
+
|
|
11875
11963
|
function splitSegsByRow(segs, rowCnt) {
|
|
11876
11964
|
let byRow = [];
|
|
11877
11965
|
for (let i = 0; i < rowCnt; i += 1) {
|
|
@@ -11933,7 +12021,7 @@ var FullCalendar = (function (exports) {
|
|
|
11933
12021
|
class TableBlockEvent extends BaseComponent {
|
|
11934
12022
|
render() {
|
|
11935
12023
|
let { props } = this;
|
|
11936
|
-
return (
|
|
12024
|
+
return (y(StandardEvent, Object.assign({}, props, { elClasses: ['fc-daygrid-event', 'fc-daygrid-block-event', 'fc-h-event'], defaultTimeFormat: DEFAULT_TABLE_EVENT_TIME_FORMAT, defaultDisplayEventEnd: props.defaultDisplayEventEnd, disableResizing: !props.seg.eventRange.def.allDay })));
|
|
11937
12025
|
}
|
|
11938
12026
|
}
|
|
11939
12027
|
|
|
@@ -11944,14 +12032,14 @@ var FullCalendar = (function (exports) {
|
|
|
11944
12032
|
let { seg } = props;
|
|
11945
12033
|
let timeFormat = options.eventTimeFormat || DEFAULT_TABLE_EVENT_TIME_FORMAT;
|
|
11946
12034
|
let timeText = buildSegTimeText(seg, timeFormat, context, true, props.defaultDisplayEventEnd);
|
|
11947
|
-
return (
|
|
12035
|
+
return (y(EventContainer, Object.assign({}, props, { elTag: "a", elClasses: ['fc-daygrid-event', 'fc-daygrid-dot-event'], elAttrs: getSegAnchorAttrs(props.seg, context), defaultGenerator: renderInnerContent$2, timeText: timeText, isResizing: false, isDateSelecting: false })));
|
|
11948
12036
|
}
|
|
11949
12037
|
}
|
|
11950
12038
|
function renderInnerContent$2(renderProps) {
|
|
11951
|
-
return (
|
|
11952
|
-
|
|
11953
|
-
renderProps.timeText && (
|
|
11954
|
-
|
|
12039
|
+
return (y(_, null,
|
|
12040
|
+
y("div", { className: "fc-daygrid-event-dot", style: { borderColor: renderProps.borderColor || renderProps.backgroundColor } }),
|
|
12041
|
+
renderProps.timeText && (y("div", { className: "fc-event-time" }, renderProps.timeText)),
|
|
12042
|
+
y("div", { className: "fc-event-title" }, renderProps.event.title || y(_, null, "\u00A0"))));
|
|
11955
12043
|
}
|
|
11956
12044
|
|
|
11957
12045
|
class TableCellMoreLink extends BaseComponent {
|
|
@@ -11962,15 +12050,15 @@ var FullCalendar = (function (exports) {
|
|
|
11962
12050
|
render() {
|
|
11963
12051
|
let { props } = this;
|
|
11964
12052
|
let { allSegs, invisibleSegs } = this.compileSegs(props.singlePlacements);
|
|
11965
|
-
return (
|
|
12053
|
+
return (y(MoreLinkContainer, { elClasses: ['fc-daygrid-more-link'], dateProfile: props.dateProfile, todayRange: props.todayRange, allDayDate: props.allDayDate, moreCnt: props.moreCnt, allSegs: allSegs, hiddenSegs: invisibleSegs, alignmentElRef: props.alignmentElRef, alignGridTop: props.alignGridTop, extraDateSpan: props.extraDateSpan, popoverContent: () => {
|
|
11966
12054
|
let isForcedInvisible = (props.eventDrag ? props.eventDrag.affectedInstances : null) ||
|
|
11967
12055
|
(props.eventResize ? props.eventResize.affectedInstances : null) ||
|
|
11968
12056
|
{};
|
|
11969
|
-
return (
|
|
12057
|
+
return (y(_, null, allSegs.map((seg) => {
|
|
11970
12058
|
let instanceId = seg.eventRange.instance.instanceId;
|
|
11971
|
-
return (
|
|
12059
|
+
return (y("div", { className: "fc-daygrid-event-harness", key: instanceId, style: {
|
|
11972
12060
|
visibility: isForcedInvisible[instanceId] ? 'hidden' : '',
|
|
11973
|
-
} }, hasListItemDisplay(seg) ? (
|
|
12061
|
+
} }, hasListItemDisplay(seg) ? (y(TableListItemEvent, Object.assign({ seg: seg, isDragging: false, isSelected: instanceId === props.eventSelection, defaultDisplayEventEnd: false }, getSegMeta(seg, props.todayRange)))) : (y(TableBlockEvent, Object.assign({ seg: seg, isDragging: false, isResizing: false, isDateSelecting: false, isSelected: instanceId === props.eventSelection, defaultDisplayEventEnd: false }, getSegMeta(seg, props.todayRange))))));
|
|
11974
12062
|
})));
|
|
11975
12063
|
} }));
|
|
11976
12064
|
}
|
|
@@ -11991,7 +12079,7 @@ var FullCalendar = (function (exports) {
|
|
|
11991
12079
|
class TableCell extends DateComponent {
|
|
11992
12080
|
constructor() {
|
|
11993
12081
|
super(...arguments);
|
|
11994
|
-
this.rootElRef =
|
|
12082
|
+
this.rootElRef = d();
|
|
11995
12083
|
this.state = {
|
|
11996
12084
|
dayNumberId: getUniqueDomId(),
|
|
11997
12085
|
};
|
|
@@ -12007,29 +12095,29 @@ var FullCalendar = (function (exports) {
|
|
|
12007
12095
|
// TODO: memoize this?
|
|
12008
12096
|
const isMonthStart = props.showDayNumber &&
|
|
12009
12097
|
shouldDisplayMonthStart(date, dateProfile.currentRange, dateEnv);
|
|
12010
|
-
return (
|
|
12098
|
+
return (y(DayCellContainer, { elTag: "td", elRef: this.handleRootEl, elClasses: [
|
|
12011
12099
|
'fc-daygrid-day',
|
|
12012
12100
|
...(props.extraClassNames || []),
|
|
12013
|
-
], elAttrs: Object.assign(Object.assign(Object.assign({}, props.extraDataAttrs), (props.showDayNumber ? { 'aria-labelledby': state.dayNumberId } : {})), { role: 'gridcell' }), defaultGenerator: renderTopInner, date: date, dateProfile: dateProfile, todayRange: props.todayRange, showDayNumber: props.showDayNumber, isMonthStart: isMonthStart, extraRenderProps: props.extraRenderProps }, (InnerContent, renderProps) => (
|
|
12014
|
-
props.showWeekNumber && (
|
|
12101
|
+
], elAttrs: Object.assign(Object.assign(Object.assign({}, props.extraDataAttrs), (props.showDayNumber ? { 'aria-labelledby': state.dayNumberId } : {})), { role: 'gridcell' }), defaultGenerator: renderTopInner, date: date, dateProfile: dateProfile, todayRange: props.todayRange, showDayNumber: props.showDayNumber, isMonthStart: isMonthStart, extraRenderProps: props.extraRenderProps }, (InnerContent, renderProps) => (y("div", { ref: props.innerElRef, className: "fc-daygrid-day-frame fc-scrollgrid-sync-inner", style: { minHeight: props.minHeight } },
|
|
12102
|
+
props.showWeekNumber && (y(WeekNumberContainer, { elTag: "a", elClasses: ['fc-daygrid-week-number'], elAttrs: buildNavLinkAttrs(context, date, 'week'), date: date, defaultFormat: DEFAULT_WEEK_NUM_FORMAT$1 })),
|
|
12015
12103
|
!renderProps.isDisabled &&
|
|
12016
|
-
(props.showDayNumber || hasCustomDayCellContent(options) || props.forceDayTop) ? (
|
|
12017
|
-
|
|
12104
|
+
(props.showDayNumber || hasCustomDayCellContent(options) || props.forceDayTop) ? (y("div", { className: "fc-daygrid-day-top" },
|
|
12105
|
+
y(InnerContent, { elTag: "a", elClasses: [
|
|
12018
12106
|
'fc-daygrid-day-number',
|
|
12019
12107
|
isMonthStart && 'fc-daygrid-month-start',
|
|
12020
12108
|
], elAttrs: Object.assign(Object.assign({}, buildNavLinkAttrs(context, date)), { id: state.dayNumberId }) }))) : props.showDayNumber ? (
|
|
12021
12109
|
// for creating correct amount of space (see issue #7162)
|
|
12022
|
-
|
|
12023
|
-
|
|
12024
|
-
|
|
12110
|
+
y("div", { className: "fc-daygrid-day-top", style: { visibility: 'hidden' } },
|
|
12111
|
+
y("a", { className: "fc-daygrid-day-number" }, "\u00A0"))) : undefined,
|
|
12112
|
+
y("div", { className: "fc-daygrid-day-events", ref: props.fgContentElRef },
|
|
12025
12113
|
props.fgContent,
|
|
12026
|
-
|
|
12027
|
-
|
|
12028
|
-
|
|
12114
|
+
y("div", { className: "fc-daygrid-day-bottom", style: { marginTop: props.moreMarginTop } },
|
|
12115
|
+
y(TableCellMoreLink, { allDayDate: date, singlePlacements: props.singlePlacements, moreCnt: props.moreCnt, alignmentElRef: rootElRef, alignGridTop: !props.showDayNumber, extraDateSpan: props.extraDateSpan, dateProfile: props.dateProfile, eventSelection: props.eventSelection, eventDrag: props.eventDrag, eventResize: props.eventResize, todayRange: props.todayRange }))),
|
|
12116
|
+
y("div", { className: "fc-daygrid-day-bg" }, props.bgContent)))));
|
|
12029
12117
|
}
|
|
12030
12118
|
}
|
|
12031
12119
|
function renderTopInner(props) {
|
|
12032
|
-
return props.dayNumberText ||
|
|
12120
|
+
return props.dayNumberText || y(_, null, "\u00A0");
|
|
12033
12121
|
}
|
|
12034
12122
|
function shouldDisplayMonthStart(date, currentRange, dateEnv) {
|
|
12035
12123
|
const { start: currentStart, end: currentEnd } = currentRange;
|
|
@@ -12279,7 +12367,7 @@ var FullCalendar = (function (exports) {
|
|
|
12279
12367
|
this.frameElRefs = new RefMap(); // the fc-daygrid-day-frame
|
|
12280
12368
|
this.fgElRefs = new RefMap(); // the fc-daygrid-day-events
|
|
12281
12369
|
this.segHarnessRefs = new RefMap(); // indexed by "instanceId:firstCol"
|
|
12282
|
-
this.rootElRef =
|
|
12370
|
+
this.rootElRef = d();
|
|
12283
12371
|
this.state = {
|
|
12284
12372
|
framePositions: null,
|
|
12285
12373
|
maxContentHeight: null,
|
|
@@ -12304,16 +12392,16 @@ var FullCalendar = (function (exports) {
|
|
|
12304
12392
|
(props.eventDrag && props.eventDrag.affectedInstances) ||
|
|
12305
12393
|
(props.eventResize && props.eventResize.affectedInstances) ||
|
|
12306
12394
|
{};
|
|
12307
|
-
return (
|
|
12395
|
+
return (y("tr", { ref: this.rootElRef, role: "row" },
|
|
12308
12396
|
props.renderIntro && props.renderIntro(),
|
|
12309
12397
|
props.cells.map((cell, col) => {
|
|
12310
12398
|
let normalFgNodes = this.renderFgSegs(col, props.forPrint ? singleColPlacements[col] : multiColPlacements[col], props.todayRange, isForcedInvisible);
|
|
12311
12399
|
let mirrorFgNodes = this.renderFgSegs(col, buildMirrorPlacements(mirrorSegsByCol[col], multiColPlacements), props.todayRange, {}, Boolean(props.eventDrag), Boolean(props.eventResize), false);
|
|
12312
|
-
return (
|
|
12313
|
-
|
|
12314
|
-
|
|
12315
|
-
|
|
12316
|
-
|
|
12400
|
+
return (y(TableCell, { key: cell.key, elRef: this.cellElRefs.createRef(cell.key), innerElRef: this.frameElRefs.createRef(cell.key) /* FF <td> problem, but okay to use for left/right. TODO: rename prop */, dateProfile: props.dateProfile, date: cell.date, showDayNumber: props.showDayNumbers, showWeekNumber: props.showWeekNumbers && col === 0, forceDayTop: props.showWeekNumbers /* even displaying weeknum for row, not necessarily day */, todayRange: props.todayRange, eventSelection: props.eventSelection, eventDrag: props.eventDrag, eventResize: props.eventResize, extraRenderProps: cell.extraRenderProps, extraDataAttrs: cell.extraDataAttrs, extraClassNames: cell.extraClassNames, extraDateSpan: cell.extraDateSpan, moreCnt: moreCnts[col], moreMarginTop: moreMarginTops[col], singlePlacements: singleColPlacements[col], fgContentElRef: this.fgElRefs.createRef(cell.key), fgContent: ( // Fragment scopes the keys
|
|
12401
|
+
y(_, null,
|
|
12402
|
+
y(_, null, normalFgNodes),
|
|
12403
|
+
y(_, null, mirrorFgNodes))), bgContent: ( // Fragment scopes the keys
|
|
12404
|
+
y(_, null,
|
|
12317
12405
|
this.renderFillSegs(highlightSegsByCol[col], 'highlight'),
|
|
12318
12406
|
this.renderFillSegs(businessHoursByCol[col], 'non-business'),
|
|
12319
12407
|
this.renderFillSegs(bgEventSegsByCol[col], 'bg-event'))), minHeight: props.cellMinHeight }));
|
|
@@ -12377,13 +12465,13 @@ var FullCalendar = (function (exports) {
|
|
|
12377
12465
|
known bug: events that are force to be list-item but span multiple days still take up space in later columns
|
|
12378
12466
|
todo: in print view, for multi-day events, don't display title within non-start/end segs
|
|
12379
12467
|
*/
|
|
12380
|
-
nodes.push(
|
|
12468
|
+
nodes.push(y("div", { className: 'fc-daygrid-event-harness' + (isAbsolute ? ' fc-daygrid-event-harness-abs' : ''), key: key, ref: isMirror ? null : this.segHarnessRefs.createRef(key), style: {
|
|
12381
12469
|
visibility: isVisible ? '' : 'hidden',
|
|
12382
12470
|
marginTop: isAbsolute ? '' : placement.marginTop,
|
|
12383
12471
|
top: isAbsolute ? placement.absoluteTop : '',
|
|
12384
12472
|
left,
|
|
12385
12473
|
right,
|
|
12386
|
-
} }, hasListItemDisplay(seg) ? (
|
|
12474
|
+
} }, hasListItemDisplay(seg) ? (y(TableListItemEvent, Object.assign({ seg: seg, isDragging: isDragging, isSelected: instanceId === eventSelection, defaultDisplayEventEnd: defaultDisplayEventEnd }, getSegMeta(seg, todayRange)))) : (y(TableBlockEvent, Object.assign({ seg: seg, isDragging: isDragging, isResizing: isResizing, isDateSelecting: isDateSelecting, isSelected: instanceId === eventSelection, defaultDisplayEventEnd: defaultDisplayEventEnd }, getSegMeta(seg, todayRange))))));
|
|
12387
12475
|
}
|
|
12388
12476
|
}
|
|
12389
12477
|
return nodes;
|
|
@@ -12402,12 +12490,12 @@ var FullCalendar = (function (exports) {
|
|
|
12402
12490
|
left: 0,
|
|
12403
12491
|
right: framePositions.rights[seg.firstCol] - framePositions.rights[seg.lastCol],
|
|
12404
12492
|
};
|
|
12405
|
-
nodes.push(
|
|
12406
|
-
|
|
12493
|
+
nodes.push(y("div", { key: buildEventRangeKey(seg.eventRange), className: "fc-daygrid-bg-harness", style: leftRightCss }, fillType === 'bg-event' ?
|
|
12494
|
+
y(BgEvent, Object.assign({ seg: seg }, getSegMeta(seg, todayRange))) :
|
|
12407
12495
|
renderFill(fillType)));
|
|
12408
12496
|
}
|
|
12409
12497
|
}
|
|
12410
|
-
return
|
|
12498
|
+
return y(_, {}, ...nodes);
|
|
12411
12499
|
}
|
|
12412
12500
|
updateSizing(isExternalSizingChange) {
|
|
12413
12501
|
let { props, state, frameElRefs } = this;
|
|
@@ -12513,7 +12601,7 @@ var FullCalendar = (function (exports) {
|
|
|
12513
12601
|
let cellMinHeight = (rowCnt >= 7 && props.clientWidth) ?
|
|
12514
12602
|
props.clientWidth / context.options.aspectRatio / 6 :
|
|
12515
12603
|
null;
|
|
12516
|
-
return (
|
|
12604
|
+
return (y(NowTimer, { unit: "day" }, (nowDate, todayRange) => (y(_, null, props.cells.map((cells, row) => (y(TableRow, { ref: this.rowRefs.createRef(row), key: cells.length
|
|
12517
12605
|
? cells[0].date.toISOString() /* best? or put key on cell? or use diff formatter? */
|
|
12518
12606
|
: row // in case there are no cells (like when resource view is loading)
|
|
12519
12607
|
, showDayNumbers: rowCnt > 1, showWeekNumbers: props.showWeekNumbers, todayRange: todayRange, dateProfile: props.dateProfile, cells: cells, renderIntro: props.renderRowIntro, businessHourSegs: businessHourSegsByRow[row], eventSelection: props.eventSelection, bgEventSegs: bgEventSegsByRow[row].filter(isSegAllDay) /* hack */, fgEventSegs: fgEventSegsByRow[row], dateSelectionSegs: dateSelectionSegsByRow[row], eventDrag: eventDragByRow[row], eventResize: eventResizeByRow[row], dayMaxEvents: props.dayMaxEvents, dayMaxEventRows: props.dayMaxEventRows, clientWidth: props.clientWidth, clientHeight: props.clientHeight, cellMinHeight: cellMinHeight, forPrint: props.forPrint })))))));
|
|
@@ -12582,7 +12670,7 @@ var FullCalendar = (function (exports) {
|
|
|
12582
12670
|
class Table extends DateComponent {
|
|
12583
12671
|
constructor() {
|
|
12584
12672
|
super(...arguments);
|
|
12585
|
-
this.elRef =
|
|
12673
|
+
this.elRef = d();
|
|
12586
12674
|
this.needsScrollReset = false;
|
|
12587
12675
|
}
|
|
12588
12676
|
render() {
|
|
@@ -12601,20 +12689,20 @@ var FullCalendar = (function (exports) {
|
|
|
12601
12689
|
limitViaBalanced ? 'fc-daygrid-body-balanced' : 'fc-daygrid-body-unbalanced',
|
|
12602
12690
|
expandRows ? '' : 'fc-daygrid-body-natural', // will height of one row depend on the others?
|
|
12603
12691
|
];
|
|
12604
|
-
return (
|
|
12692
|
+
return (y("div", { ref: this.elRef, className: classNames.join(' '), style: {
|
|
12605
12693
|
// these props are important to give this wrapper correct dimensions for interactions
|
|
12606
12694
|
// TODO: if we set it here, can we avoid giving to inner tables?
|
|
12607
12695
|
width: props.clientWidth,
|
|
12608
12696
|
minWidth: props.tableMinWidth,
|
|
12609
12697
|
} },
|
|
12610
|
-
|
|
12698
|
+
y("table", { role: "presentation", className: "fc-scrollgrid-sync-table", style: {
|
|
12611
12699
|
width: props.clientWidth,
|
|
12612
12700
|
minWidth: props.tableMinWidth,
|
|
12613
12701
|
height: expandRows ? props.clientHeight : '',
|
|
12614
12702
|
} },
|
|
12615
12703
|
props.colGroupNode,
|
|
12616
|
-
|
|
12617
|
-
|
|
12704
|
+
y("tbody", { role: "presentation" },
|
|
12705
|
+
y(TableRows, { dateProfile: props.dateProfile, cells: props.cells, renderRowIntro: props.renderRowIntro, showWeekNumbers: props.showWeekNumbers, clientWidth: props.clientWidth, clientHeight: props.clientHeight, businessHourSegs: props.businessHourSegs, bgEventSegs: props.bgEventSegs, fgEventSegs: props.fgEventSegs, dateSelectionSegs: props.dateSelectionSegs, eventSelection: props.eventSelection, eventDrag: props.eventDrag, eventResize: props.eventResize, dayMaxEvents: dayMaxEvents, dayMaxEventRows: dayMaxEventRows, forPrint: props.forPrint, isHitComboAllowed: props.isHitComboAllowed })))));
|
|
12618
12706
|
}
|
|
12619
12707
|
componentDidMount() {
|
|
12620
12708
|
this.requestScrollReset();
|
|
@@ -12674,14 +12762,38 @@ var FullCalendar = (function (exports) {
|
|
|
12674
12762
|
constructor() {
|
|
12675
12763
|
super(...arguments);
|
|
12676
12764
|
this.slicer = new DayTableSlicer();
|
|
12677
|
-
this.tableRef =
|
|
12765
|
+
this.tableRef = d();
|
|
12678
12766
|
}
|
|
12679
12767
|
render() {
|
|
12680
12768
|
let { props, context } = this;
|
|
12681
|
-
return (
|
|
12769
|
+
return (y(Table, Object.assign({ ref: this.tableRef }, this.slicer.sliceProps(props, props.dateProfile, props.nextDayThreshold, context, props.dayTableModel), { dateProfile: props.dateProfile, cells: props.dayTableModel.cells, colGroupNode: props.colGroupNode, tableMinWidth: props.tableMinWidth, renderRowIntro: props.renderRowIntro, dayMaxEvents: props.dayMaxEvents, dayMaxEventRows: props.dayMaxEventRows, showWeekNumbers: props.showWeekNumbers, expandRows: props.expandRows, headerAlignElRef: props.headerAlignElRef, clientWidth: props.clientWidth, clientHeight: props.clientHeight, forPrint: props.forPrint })));
|
|
12682
12770
|
}
|
|
12683
12771
|
}
|
|
12684
12772
|
|
|
12773
|
+
class DayTableView extends TableView {
|
|
12774
|
+
constructor() {
|
|
12775
|
+
super(...arguments);
|
|
12776
|
+
this.buildDayTableModel = memoize(buildDayTableModel);
|
|
12777
|
+
this.headerRef = d();
|
|
12778
|
+
this.tableRef = d();
|
|
12779
|
+
// can't override any lifecycle methods from parent
|
|
12780
|
+
}
|
|
12781
|
+
render() {
|
|
12782
|
+
let { options, dateProfileGenerator } = this.context;
|
|
12783
|
+
let { props } = this;
|
|
12784
|
+
let dayTableModel = this.buildDayTableModel(props.dateProfile, dateProfileGenerator);
|
|
12785
|
+
let headerContent = options.dayHeaders && (y(DayHeader, { ref: this.headerRef, dateProfile: props.dateProfile, dates: dayTableModel.headerDates, datesRepDistinctDays: dayTableModel.rowCnt === 1 }));
|
|
12786
|
+
let bodyContent = (contentArg) => (y(DayTable, { ref: this.tableRef, dateProfile: props.dateProfile, dayTableModel: dayTableModel, businessHours: props.businessHours, dateSelection: props.dateSelection, eventStore: props.eventStore, eventUiBases: props.eventUiBases, eventSelection: props.eventSelection, eventDrag: props.eventDrag, eventResize: props.eventResize, nextDayThreshold: options.nextDayThreshold, colGroupNode: contentArg.tableColGroupNode, tableMinWidth: contentArg.tableMinWidth, dayMaxEvents: options.dayMaxEvents, dayMaxEventRows: options.dayMaxEventRows, showWeekNumbers: options.weekNumbers, expandRows: !props.isHeightAuto, headerAlignElRef: this.headerElRef, clientWidth: contentArg.clientWidth, clientHeight: contentArg.clientHeight, forPrint: props.forPrint }));
|
|
12787
|
+
return options.dayMinWidth
|
|
12788
|
+
? this.renderHScrollLayout(headerContent, bodyContent, dayTableModel.colCnt, options.dayMinWidth)
|
|
12789
|
+
: this.renderSimpleLayout(headerContent, bodyContent);
|
|
12790
|
+
}
|
|
12791
|
+
}
|
|
12792
|
+
function buildDayTableModel(dateProfile, dateProfileGenerator) {
|
|
12793
|
+
let daySeries = new DaySeriesModel(dateProfile.renderRange, dateProfileGenerator);
|
|
12794
|
+
return new DayTableModel(daySeries, /year|month|week/.test(dateProfile.currentRangeUnit));
|
|
12795
|
+
}
|
|
12796
|
+
|
|
12685
12797
|
class TableDateProfileGenerator extends DateProfileGenerator {
|
|
12686
12798
|
// Computes the date range that will be rendered
|
|
12687
12799
|
buildRenderRange(currentRange, currentRangeUnit, isRangeAllDay) {
|
|
@@ -12720,111 +12832,6 @@ var FullCalendar = (function (exports) {
|
|
|
12720
12832
|
return { start, end };
|
|
12721
12833
|
}
|
|
12722
12834
|
|
|
12723
|
-
/* An abstract class for the daygrid views, as well as month view. Renders one or more rows of day cells.
|
|
12724
|
-
----------------------------------------------------------------------------------------------------------------------*/
|
|
12725
|
-
// It is a manager for a Table subcomponent, which does most of the heavy lifting.
|
|
12726
|
-
// It is responsible for managing width/height.
|
|
12727
|
-
class TableView extends DateComponent {
|
|
12728
|
-
constructor() {
|
|
12729
|
-
super(...arguments);
|
|
12730
|
-
this.headerElRef = y();
|
|
12731
|
-
}
|
|
12732
|
-
renderSimpleLayout(headerRowContent, bodyContent) {
|
|
12733
|
-
let { props, context } = this;
|
|
12734
|
-
let sections = [];
|
|
12735
|
-
let stickyHeaderDates = getStickyHeaderDates(context.options);
|
|
12736
|
-
if (headerRowContent) {
|
|
12737
|
-
sections.push({
|
|
12738
|
-
type: 'header',
|
|
12739
|
-
key: 'header',
|
|
12740
|
-
isSticky: stickyHeaderDates,
|
|
12741
|
-
chunk: {
|
|
12742
|
-
elRef: this.headerElRef,
|
|
12743
|
-
tableClassName: 'fc-col-header',
|
|
12744
|
-
rowContent: headerRowContent,
|
|
12745
|
-
},
|
|
12746
|
-
});
|
|
12747
|
-
}
|
|
12748
|
-
sections.push({
|
|
12749
|
-
type: 'body',
|
|
12750
|
-
key: 'body',
|
|
12751
|
-
liquid: true,
|
|
12752
|
-
chunk: { content: bodyContent },
|
|
12753
|
-
});
|
|
12754
|
-
return (h(ViewContainer, { elClasses: ['fc-daygrid'], viewSpec: context.viewSpec },
|
|
12755
|
-
h(SimpleScrollGrid, { liquid: !props.isHeightAuto && !props.forPrint, collapsibleWidth: props.forPrint, cols: [] /* TODO: make optional? */, sections: sections })));
|
|
12756
|
-
}
|
|
12757
|
-
renderHScrollLayout(headerRowContent, bodyContent, colCnt, dayMinWidth) {
|
|
12758
|
-
let ScrollGrid = this.context.pluginHooks.scrollGridImpl;
|
|
12759
|
-
if (!ScrollGrid) {
|
|
12760
|
-
throw new Error('No ScrollGrid implementation');
|
|
12761
|
-
}
|
|
12762
|
-
let { props, context } = this;
|
|
12763
|
-
let stickyHeaderDates = !props.forPrint && getStickyHeaderDates(context.options);
|
|
12764
|
-
let stickyFooterScrollbar = !props.forPrint && getStickyFooterScrollbar(context.options);
|
|
12765
|
-
let sections = [];
|
|
12766
|
-
if (headerRowContent) {
|
|
12767
|
-
sections.push({
|
|
12768
|
-
type: 'header',
|
|
12769
|
-
key: 'header',
|
|
12770
|
-
isSticky: stickyHeaderDates,
|
|
12771
|
-
chunks: [{
|
|
12772
|
-
key: 'main',
|
|
12773
|
-
elRef: this.headerElRef,
|
|
12774
|
-
tableClassName: 'fc-col-header',
|
|
12775
|
-
rowContent: headerRowContent,
|
|
12776
|
-
}],
|
|
12777
|
-
});
|
|
12778
|
-
}
|
|
12779
|
-
sections.push({
|
|
12780
|
-
type: 'body',
|
|
12781
|
-
key: 'body',
|
|
12782
|
-
liquid: true,
|
|
12783
|
-
chunks: [{
|
|
12784
|
-
key: 'main',
|
|
12785
|
-
content: bodyContent,
|
|
12786
|
-
}],
|
|
12787
|
-
});
|
|
12788
|
-
if (stickyFooterScrollbar) {
|
|
12789
|
-
sections.push({
|
|
12790
|
-
type: 'footer',
|
|
12791
|
-
key: 'footer',
|
|
12792
|
-
isSticky: true,
|
|
12793
|
-
chunks: [{
|
|
12794
|
-
key: 'main',
|
|
12795
|
-
content: renderScrollShim,
|
|
12796
|
-
}],
|
|
12797
|
-
});
|
|
12798
|
-
}
|
|
12799
|
-
return (h(ViewContainer, { elClasses: ['fc-daygrid'], viewSpec: context.viewSpec },
|
|
12800
|
-
h(ScrollGrid, { liquid: !props.isHeightAuto && !props.forPrint, collapsibleWidth: props.forPrint, colGroups: [{ cols: [{ span: colCnt, minWidth: dayMinWidth }] }], sections: sections })));
|
|
12801
|
-
}
|
|
12802
|
-
}
|
|
12803
|
-
|
|
12804
|
-
class DayTableView extends TableView {
|
|
12805
|
-
constructor() {
|
|
12806
|
-
super(...arguments);
|
|
12807
|
-
this.buildDayTableModel = memoize(buildDayTableModel);
|
|
12808
|
-
this.headerRef = y();
|
|
12809
|
-
this.tableRef = y();
|
|
12810
|
-
// can't override any lifecycle methods from parent
|
|
12811
|
-
}
|
|
12812
|
-
render() {
|
|
12813
|
-
let { options, dateProfileGenerator } = this.context;
|
|
12814
|
-
let { props } = this;
|
|
12815
|
-
let dayTableModel = this.buildDayTableModel(props.dateProfile, dateProfileGenerator);
|
|
12816
|
-
let headerContent = options.dayHeaders && (h(DayHeader, { ref: this.headerRef, dateProfile: props.dateProfile, dates: dayTableModel.headerDates, datesRepDistinctDays: dayTableModel.rowCnt === 1 }));
|
|
12817
|
-
let bodyContent = (contentArg) => (h(DayTable, { ref: this.tableRef, dateProfile: props.dateProfile, dayTableModel: dayTableModel, businessHours: props.businessHours, dateSelection: props.dateSelection, eventStore: props.eventStore, eventUiBases: props.eventUiBases, eventSelection: props.eventSelection, eventDrag: props.eventDrag, eventResize: props.eventResize, nextDayThreshold: options.nextDayThreshold, colGroupNode: contentArg.tableColGroupNode, tableMinWidth: contentArg.tableMinWidth, dayMaxEvents: options.dayMaxEvents, dayMaxEventRows: options.dayMaxEventRows, showWeekNumbers: options.weekNumbers, expandRows: !props.isHeightAuto, headerAlignElRef: this.headerElRef, clientWidth: contentArg.clientWidth, clientHeight: contentArg.clientHeight, forPrint: props.forPrint }));
|
|
12818
|
-
return options.dayMinWidth
|
|
12819
|
-
? this.renderHScrollLayout(headerContent, bodyContent, dayTableModel.colCnt, options.dayMinWidth)
|
|
12820
|
-
: this.renderSimpleLayout(headerContent, bodyContent);
|
|
12821
|
-
}
|
|
12822
|
-
}
|
|
12823
|
-
function buildDayTableModel(dateProfile, dateProfileGenerator) {
|
|
12824
|
-
let daySeries = new DaySeriesModel(dateProfile.renderRange, dateProfileGenerator);
|
|
12825
|
-
return new DayTableModel(daySeries, /year|month|week/.test(dateProfile.currentRangeUnit));
|
|
12826
|
-
}
|
|
12827
|
-
|
|
12828
12835
|
var css_248z$3 = ":root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:\"\";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:\"\";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}";
|
|
12829
12836
|
injectStyles(css_248z$3);
|
|
12830
12837
|
|
|
@@ -12892,9 +12899,9 @@ var FullCalendar = (function (exports) {
|
|
|
12892
12899
|
'fc-timegrid-slot-label',
|
|
12893
12900
|
props.isLabeled ? 'fc-scrollgrid-shrink' : 'fc-timegrid-slot-minor',
|
|
12894
12901
|
];
|
|
12895
|
-
return (
|
|
12902
|
+
return (y(ViewContextType.Consumer, null, (context) => {
|
|
12896
12903
|
if (!props.isLabeled) {
|
|
12897
|
-
return (
|
|
12904
|
+
return (y("td", { className: classNames.join(' '), "data-time": props.isoTimeStr }));
|
|
12898
12905
|
}
|
|
12899
12906
|
let { dateEnv, options, viewApi } = context;
|
|
12900
12907
|
let labelFormat = // TODO: fully pre-parse
|
|
@@ -12908,10 +12915,10 @@ var FullCalendar = (function (exports) {
|
|
|
12908
12915
|
view: viewApi,
|
|
12909
12916
|
text: dateEnv.format(props.date, labelFormat),
|
|
12910
12917
|
};
|
|
12911
|
-
return (
|
|
12918
|
+
return (y(ContentContainer, { elTag: "td", elClasses: classNames, elAttrs: {
|
|
12912
12919
|
'data-time': props.isoTimeStr,
|
|
12913
|
-
}, renderProps: renderProps, generatorName: "slotLabelContent", customGenerator: options.slotLabelContent, defaultGenerator: renderInnerContent$1, classNameGenerator: options.slotLabelClassNames, didMount: options.slotLabelDidMount, willUnmount: options.slotLabelWillUnmount }, (InnerContent) => (
|
|
12914
|
-
|
|
12920
|
+
}, renderProps: renderProps, generatorName: "slotLabelContent", customGenerator: options.slotLabelContent, defaultGenerator: renderInnerContent$1, classNameGenerator: options.slotLabelClassNames, didMount: options.slotLabelDidMount, willUnmount: options.slotLabelWillUnmount }, (InnerContent) => (y("div", { className: "fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame" },
|
|
12921
|
+
y(InnerContent, { elTag: "div", elClasses: [
|
|
12915
12922
|
'fc-timegrid-slot-label-cushion',
|
|
12916
12923
|
'fc-scrollgrid-shrink-cushion',
|
|
12917
12924
|
] })))));
|
|
@@ -12923,8 +12930,8 @@ var FullCalendar = (function (exports) {
|
|
|
12923
12930
|
|
|
12924
12931
|
class TimeBodyAxis extends BaseComponent {
|
|
12925
12932
|
render() {
|
|
12926
|
-
return this.props.slatMetas.map((slatMeta) => (
|
|
12927
|
-
|
|
12933
|
+
return this.props.slatMetas.map((slatMeta) => (y("tr", { key: slatMeta.key },
|
|
12934
|
+
y(TimeColsAxisCell, Object.assign({}, slatMeta)))));
|
|
12928
12935
|
}
|
|
12929
12936
|
}
|
|
12930
12937
|
|
|
@@ -12934,9 +12941,9 @@ var FullCalendar = (function (exports) {
|
|
|
12934
12941
|
constructor() {
|
|
12935
12942
|
super(...arguments);
|
|
12936
12943
|
this.allDaySplitter = new AllDaySplitter(); // for use by subclasses
|
|
12937
|
-
this.headerElRef =
|
|
12938
|
-
this.rootElRef =
|
|
12939
|
-
this.scrollerElRef =
|
|
12944
|
+
this.headerElRef = d();
|
|
12945
|
+
this.rootElRef = d();
|
|
12946
|
+
this.scrollerElRef = d();
|
|
12940
12947
|
this.state = {
|
|
12941
12948
|
slatCoords: null,
|
|
12942
12949
|
};
|
|
@@ -12958,24 +12965,24 @@ var FullCalendar = (function (exports) {
|
|
|
12958
12965
|
? buildNavLinkAttrs(this.context, range.start, 'week')
|
|
12959
12966
|
: {};
|
|
12960
12967
|
if (options.weekNumbers && rowKey === 'day') {
|
|
12961
|
-
return (
|
|
12968
|
+
return (y(WeekNumberContainer, { elTag: "th", elClasses: [
|
|
12962
12969
|
'fc-timegrid-axis',
|
|
12963
12970
|
'fc-scrollgrid-shrink',
|
|
12964
12971
|
], elAttrs: {
|
|
12965
12972
|
'aria-hidden': true,
|
|
12966
|
-
}, date: range.start, defaultFormat: DEFAULT_WEEK_NUM_FORMAT }, (InnerContent) => (
|
|
12973
|
+
}, date: range.start, defaultFormat: DEFAULT_WEEK_NUM_FORMAT }, (InnerContent) => (y("div", { className: [
|
|
12967
12974
|
'fc-timegrid-axis-frame',
|
|
12968
12975
|
'fc-scrollgrid-shrink-frame',
|
|
12969
12976
|
'fc-timegrid-axis-frame-liquid',
|
|
12970
12977
|
].join(' '), style: { height: frameHeight } },
|
|
12971
|
-
|
|
12978
|
+
y(InnerContent, { elTag: "a", elClasses: [
|
|
12972
12979
|
'fc-timegrid-axis-cushion',
|
|
12973
12980
|
'fc-scrollgrid-shrink-cushion',
|
|
12974
12981
|
'fc-scrollgrid-sync-inner',
|
|
12975
12982
|
], elAttrs: navLinkAttrs })))));
|
|
12976
12983
|
}
|
|
12977
|
-
return (
|
|
12978
|
-
|
|
12984
|
+
return (y("th", { "aria-hidden": true, className: "fc-timegrid-axis" },
|
|
12985
|
+
y("div", { className: "fc-timegrid-axis-frame", style: { height: frameHeight } })));
|
|
12979
12986
|
};
|
|
12980
12987
|
/* Table Component Render Methods
|
|
12981
12988
|
------------------------------------------------------------------------------------------------------------------*/
|
|
@@ -12989,17 +12996,17 @@ var FullCalendar = (function (exports) {
|
|
|
12989
12996
|
};
|
|
12990
12997
|
return (
|
|
12991
12998
|
// TODO: make reusable hook. used in list view too
|
|
12992
|
-
|
|
12999
|
+
y(ContentContainer, { elTag: "td", elClasses: [
|
|
12993
13000
|
'fc-timegrid-axis',
|
|
12994
13001
|
'fc-scrollgrid-shrink',
|
|
12995
13002
|
], elAttrs: {
|
|
12996
13003
|
'aria-hidden': true,
|
|
12997
|
-
}, renderProps: renderProps, generatorName: "allDayContent", customGenerator: options.allDayContent, defaultGenerator: renderAllDayInner$1, classNameGenerator: options.allDayClassNames, didMount: options.allDayDidMount, willUnmount: options.allDayWillUnmount }, (InnerContent) => (
|
|
13004
|
+
}, renderProps: renderProps, generatorName: "allDayContent", customGenerator: options.allDayContent, defaultGenerator: renderAllDayInner$1, classNameGenerator: options.allDayClassNames, didMount: options.allDayDidMount, willUnmount: options.allDayWillUnmount }, (InnerContent) => (y("div", { className: [
|
|
12998
13005
|
'fc-timegrid-axis-frame',
|
|
12999
13006
|
'fc-scrollgrid-shrink-frame',
|
|
13000
13007
|
rowHeight == null ? ' fc-timegrid-axis-frame-liquid' : '',
|
|
13001
13008
|
].join(' '), style: { height: rowHeight } },
|
|
13002
|
-
|
|
13009
|
+
y(InnerContent, { elTag: "span", elClasses: [
|
|
13003
13010
|
'fc-timegrid-axis-cushion',
|
|
13004
13011
|
'fc-scrollgrid-shrink-cushion',
|
|
13005
13012
|
'fc-scrollgrid-sync-inner',
|
|
@@ -13037,8 +13044,8 @@ var FullCalendar = (function (exports) {
|
|
|
13037
13044
|
type: 'body',
|
|
13038
13045
|
key: 'all-day-divider',
|
|
13039
13046
|
outerContent: ( // TODO: rename to cellContent so don't need to define <tr>?
|
|
13040
|
-
|
|
13041
|
-
|
|
13047
|
+
y("tr", { role: "presentation", className: "fc-scrollgrid-section" },
|
|
13048
|
+
y("td", { className: 'fc-timegrid-divider ' + context.theme.getClass('tableCellShaded') }))),
|
|
13042
13049
|
});
|
|
13043
13050
|
}
|
|
13044
13051
|
sections.push({
|
|
@@ -13051,8 +13058,8 @@ var FullCalendar = (function (exports) {
|
|
|
13051
13058
|
content: timeContent,
|
|
13052
13059
|
},
|
|
13053
13060
|
});
|
|
13054
|
-
return (
|
|
13055
|
-
|
|
13061
|
+
return (y(ViewContainer, { elRef: this.rootElRef, elClasses: ['fc-timegrid'], viewSpec: context.viewSpec },
|
|
13062
|
+
y(SimpleScrollGrid, { liquid: !props.isHeightAuto && !props.forPrint, collapsibleWidth: props.forPrint, cols: [{ width: 'shrink' }], sections: sections })));
|
|
13056
13063
|
}
|
|
13057
13064
|
renderHScrollLayout(headerRowContent, allDayContent, timeContent, colCnt, dayMinWidth, slatMetas, slatCoords) {
|
|
13058
13065
|
let ScrollGrid = this.context.pluginHooks.scrollGridImpl;
|
|
@@ -13072,7 +13079,7 @@ var FullCalendar = (function (exports) {
|
|
|
13072
13079
|
chunks: [
|
|
13073
13080
|
{
|
|
13074
13081
|
key: 'axis',
|
|
13075
|
-
rowContent: (arg) => (
|
|
13082
|
+
rowContent: (arg) => (y("tr", { role: "presentation" }, this.renderHeadAxis('day', arg.rowSyncHeights[0]))),
|
|
13076
13083
|
},
|
|
13077
13084
|
{
|
|
13078
13085
|
key: 'cols',
|
|
@@ -13091,7 +13098,7 @@ var FullCalendar = (function (exports) {
|
|
|
13091
13098
|
chunks: [
|
|
13092
13099
|
{
|
|
13093
13100
|
key: 'axis',
|
|
13094
|
-
rowContent: (contentArg) => (
|
|
13101
|
+
rowContent: (contentArg) => (y("tr", { role: "presentation" }, this.renderTableRowAxis(contentArg.rowSyncHeights[0]))),
|
|
13095
13102
|
},
|
|
13096
13103
|
{
|
|
13097
13104
|
key: 'cols',
|
|
@@ -13103,8 +13110,8 @@ var FullCalendar = (function (exports) {
|
|
|
13103
13110
|
key: 'all-day-divider',
|
|
13104
13111
|
type: 'body',
|
|
13105
13112
|
outerContent: ( // TODO: rename to cellContent so don't need to define <tr>?
|
|
13106
|
-
|
|
13107
|
-
|
|
13113
|
+
y("tr", { role: "presentation", className: "fc-scrollgrid-section" },
|
|
13114
|
+
y("td", { colSpan: 2, className: 'fc-timegrid-divider ' + context.theme.getClass('tableCellShaded') }))),
|
|
13108
13115
|
});
|
|
13109
13116
|
}
|
|
13110
13117
|
let isNowIndicator = context.options.nowIndicator;
|
|
@@ -13118,18 +13125,18 @@ var FullCalendar = (function (exports) {
|
|
|
13118
13125
|
key: 'axis',
|
|
13119
13126
|
content: (arg) => (
|
|
13120
13127
|
// TODO: make this now-indicator arrow more DRY with TimeColsContent
|
|
13121
|
-
|
|
13122
|
-
|
|
13128
|
+
y("div", { className: "fc-timegrid-axis-chunk" },
|
|
13129
|
+
y("table", { "aria-hidden": true, style: { height: arg.expandRows ? arg.clientHeight : '' } },
|
|
13123
13130
|
arg.tableColGroupNode,
|
|
13124
|
-
|
|
13125
|
-
|
|
13126
|
-
|
|
13127
|
-
|
|
13131
|
+
y("tbody", null,
|
|
13132
|
+
y(TimeBodyAxis, { slatMetas: slatMetas }))),
|
|
13133
|
+
y("div", { className: "fc-timegrid-now-indicator-container" },
|
|
13134
|
+
y(NowTimer, { unit: isNowIndicator ? 'minute' : 'day' /* hacky */ }, (nowDate) => {
|
|
13128
13135
|
let nowIndicatorTop = isNowIndicator &&
|
|
13129
13136
|
slatCoords &&
|
|
13130
13137
|
slatCoords.safeComputeTop(nowDate); // might return void
|
|
13131
13138
|
if (typeof nowIndicatorTop === 'number') {
|
|
13132
|
-
return (
|
|
13139
|
+
return (y(NowIndicatorContainer, { elClasses: ['fc-timegrid-now-indicator-arrow'], elStyle: { top: nowIndicatorTop }, isAxis: true, date: nowDate }));
|
|
13133
13140
|
}
|
|
13134
13141
|
return null;
|
|
13135
13142
|
})))),
|
|
@@ -13158,8 +13165,8 @@ var FullCalendar = (function (exports) {
|
|
|
13158
13165
|
],
|
|
13159
13166
|
});
|
|
13160
13167
|
}
|
|
13161
|
-
return (
|
|
13162
|
-
|
|
13168
|
+
return (y(ViewContainer, { elRef: this.rootElRef, elClasses: ['fc-timegrid'], viewSpec: context.viewSpec },
|
|
13169
|
+
y(ScrollGrid, { liquid: !props.isHeightAuto && !props.forPrint, forPrint: props.forPrint, collapsibleWidth: false, colGroups: [
|
|
13163
13170
|
{ width: 'shrink', cols: [{ width: 'shrink' }] },
|
|
13164
13171
|
{ cols: [{ span: colCnt, minWidth: dayMinWidth }] },
|
|
13165
13172
|
], sections: sections })));
|
|
@@ -13237,15 +13244,15 @@ var FullCalendar = (function (exports) {
|
|
|
13237
13244
|
let { props, context } = this;
|
|
13238
13245
|
let { options } = context;
|
|
13239
13246
|
let { slatElRefs } = props;
|
|
13240
|
-
return (
|
|
13247
|
+
return (y("tbody", null, props.slatMetas.map((slatMeta, i) => {
|
|
13241
13248
|
let renderProps = {
|
|
13242
13249
|
time: slatMeta.time,
|
|
13243
13250
|
date: context.dateEnv.toDate(slatMeta.date),
|
|
13244
13251
|
view: context.viewApi,
|
|
13245
13252
|
};
|
|
13246
|
-
return (
|
|
13247
|
-
props.axis && (
|
|
13248
|
-
|
|
13253
|
+
return (y("tr", { key: slatMeta.key, ref: slatElRefs.createRef(slatMeta.key) },
|
|
13254
|
+
props.axis && (y(TimeColsAxisCell, Object.assign({}, slatMeta))),
|
|
13255
|
+
y(ContentContainer, { elTag: "td", elClasses: [
|
|
13249
13256
|
'fc-timegrid-slot',
|
|
13250
13257
|
'fc-timegrid-slot-lane',
|
|
13251
13258
|
!slatMeta.isLabeled && 'fc-timegrid-slot-minor',
|
|
@@ -13262,19 +13269,19 @@ var FullCalendar = (function (exports) {
|
|
|
13262
13269
|
class TimeColsSlats extends BaseComponent {
|
|
13263
13270
|
constructor() {
|
|
13264
13271
|
super(...arguments);
|
|
13265
|
-
this.rootElRef =
|
|
13272
|
+
this.rootElRef = d();
|
|
13266
13273
|
this.slatElRefs = new RefMap();
|
|
13267
13274
|
}
|
|
13268
13275
|
render() {
|
|
13269
13276
|
let { props, context } = this;
|
|
13270
|
-
return (
|
|
13271
|
-
|
|
13277
|
+
return (y("div", { ref: this.rootElRef, className: "fc-timegrid-slots" },
|
|
13278
|
+
y("table", { "aria-hidden": true, className: context.theme.getClass('table'), style: {
|
|
13272
13279
|
minWidth: props.tableMinWidth,
|
|
13273
13280
|
width: props.clientWidth,
|
|
13274
13281
|
height: props.minHeight,
|
|
13275
13282
|
} },
|
|
13276
13283
|
props.tableColGroupNode /* relies on there only being a single <col> for the axis */,
|
|
13277
|
-
|
|
13284
|
+
y(TimeColsSlatsBody, { slatElRefs: this.slatElRefs, axis: props.axis, slatMetas: props.slatMetas }))));
|
|
13278
13285
|
}
|
|
13279
13286
|
componentDidMount() {
|
|
13280
13287
|
this.updateSizing();
|
|
@@ -13341,10 +13348,10 @@ var FullCalendar = (function (exports) {
|
|
|
13341
13348
|
class TimeColMoreLink extends BaseComponent {
|
|
13342
13349
|
render() {
|
|
13343
13350
|
let { props } = this;
|
|
13344
|
-
return (
|
|
13351
|
+
return (y(MoreLinkContainer, { elClasses: ['fc-timegrid-more-link'], elStyle: {
|
|
13345
13352
|
top: props.top,
|
|
13346
13353
|
bottom: props.bottom,
|
|
13347
|
-
}, allDayDate: null, moreCnt: props.hiddenSegs.length, allSegs: props.hiddenSegs, hiddenSegs: props.hiddenSegs, extraDateSpan: props.extraDateSpan, dateProfile: props.dateProfile, todayRange: props.todayRange, popoverContent: () => renderPlainFgSegs(props.hiddenSegs, props), defaultGenerator: renderMoreLinkInner }, (InnerContent) => (
|
|
13354
|
+
}, allDayDate: null, moreCnt: props.hiddenSegs.length, allSegs: props.hiddenSegs, hiddenSegs: props.hiddenSegs, extraDateSpan: props.extraDateSpan, dateProfile: props.dateProfile, todayRange: props.todayRange, popoverContent: () => renderPlainFgSegs(props.hiddenSegs, props), defaultGenerator: renderMoreLinkInner, forceTimed: true }, (InnerContent) => (y(InnerContent, { elTag: "div", elClasses: ['fc-timegrid-more-link-inner', 'fc-sticky'] }))));
|
|
13348
13355
|
}
|
|
13349
13356
|
}
|
|
13350
13357
|
function renderMoreLinkInner(props) {
|
|
@@ -13543,7 +13550,7 @@ var FullCalendar = (function (exports) {
|
|
|
13543
13550
|
});
|
|
13544
13551
|
class TimeColEvent extends BaseComponent {
|
|
13545
13552
|
render() {
|
|
13546
|
-
return (
|
|
13553
|
+
return (y(StandardEvent, Object.assign({}, this.props, { elClasses: [
|
|
13547
13554
|
'fc-timegrid-event',
|
|
13548
13555
|
'fc-v-event',
|
|
13549
13556
|
this.props.isShort && 'fc-timegrid-event-short',
|
|
@@ -13571,18 +13578,18 @@ var FullCalendar = (function (exports) {
|
|
|
13571
13578
|
(props.eventResize && props.eventResize.affectedInstances) ||
|
|
13572
13579
|
{};
|
|
13573
13580
|
let sortedFgSegs = this.sortEventSegs(props.fgEventSegs, options.eventOrder);
|
|
13574
|
-
return (
|
|
13581
|
+
return (y(DayCellContainer, { elTag: "td", elRef: props.elRef, elClasses: [
|
|
13575
13582
|
'fc-timegrid-col',
|
|
13576
13583
|
...(props.extraClassNames || []),
|
|
13577
|
-
], elAttrs: Object.assign({ role: 'gridcell' }, props.extraDataAttrs), date: props.date, dateProfile: props.dateProfile, todayRange: props.todayRange, extraRenderProps: props.extraRenderProps }, (InnerContent) => (
|
|
13578
|
-
|
|
13584
|
+
], elAttrs: Object.assign({ role: 'gridcell' }, props.extraDataAttrs), date: props.date, dateProfile: props.dateProfile, todayRange: props.todayRange, extraRenderProps: props.extraRenderProps }, (InnerContent) => (y("div", { className: "fc-timegrid-col-frame" },
|
|
13585
|
+
y("div", { className: "fc-timegrid-col-bg" },
|
|
13579
13586
|
this.renderFillSegs(props.businessHourSegs, 'non-business'),
|
|
13580
13587
|
this.renderFillSegs(props.bgEventSegs, 'bg-event'),
|
|
13581
13588
|
this.renderFillSegs(props.dateSelectionSegs, 'highlight')),
|
|
13582
|
-
|
|
13583
|
-
|
|
13584
|
-
|
|
13585
|
-
hasCustomDayCellContent(options) && (
|
|
13589
|
+
y("div", { className: "fc-timegrid-col-events" }, this.renderFgSegs(sortedFgSegs, interactionAffectedInstances, false, false, false)),
|
|
13590
|
+
y("div", { className: "fc-timegrid-col-events" }, this.renderFgSegs(mirrorSegs, {}, Boolean(props.eventDrag), Boolean(props.eventResize), Boolean(isSelectMirror))),
|
|
13591
|
+
y("div", { className: "fc-timegrid-now-indicator-container" }, this.renderNowIndicator(props.nowIndicatorSegs)),
|
|
13592
|
+
hasCustomDayCellContent(options) && (y(InnerContent, { elTag: "div", elClasses: ['fc-timegrid-col-misc'] }))))));
|
|
13586
13593
|
}
|
|
13587
13594
|
renderFgSegs(sortedFgSegs, segIsInvisible, isDragging, isResizing, isDateSelecting) {
|
|
13588
13595
|
let { props } = this;
|
|
@@ -13598,7 +13605,7 @@ var FullCalendar = (function (exports) {
|
|
|
13598
13605
|
let isMirror = isDragging || isResizing || isDateSelecting;
|
|
13599
13606
|
let segVCoords = computeSegVCoords(segs, date, slatCoords, eventMinHeight);
|
|
13600
13607
|
let { segPlacements, hiddenGroups } = computeFgSegPlacements(segs, segVCoords, eventOrderStrict, eventMaxStack);
|
|
13601
|
-
return (
|
|
13608
|
+
return (y(_, null,
|
|
13602
13609
|
this.renderHiddenGroups(hiddenGroups, segs),
|
|
13603
13610
|
segPlacements.map((segPlacement) => {
|
|
13604
13611
|
let { seg, rect } = segPlacement;
|
|
@@ -13608,18 +13615,18 @@ var FullCalendar = (function (exports) {
|
|
|
13608
13615
|
let hStyle = (!isMirror && rect) ? this.computeSegHStyle(rect) : { left: 0, right: 0 };
|
|
13609
13616
|
let isInset = Boolean(rect) && rect.stackForward > 0;
|
|
13610
13617
|
let isShort = Boolean(rect) && (rect.span.end - rect.span.start) < eventShortHeight; // look at other places for this problem
|
|
13611
|
-
return (
|
|
13618
|
+
return (y("div", { className: 'fc-timegrid-event-harness' +
|
|
13612
13619
|
(isInset ? ' fc-timegrid-event-harness-inset' : ''), key: instanceId, style: Object.assign(Object.assign({ visibility: isVisible ? '' : 'hidden' }, vStyle), hStyle) },
|
|
13613
|
-
|
|
13620
|
+
y(TimeColEvent, Object.assign({ seg: seg, isDragging: isDragging, isResizing: isResizing, isDateSelecting: isDateSelecting, isSelected: instanceId === eventSelection, isShort: isShort }, getSegMeta(seg, todayRange, nowDate)))));
|
|
13614
13621
|
})));
|
|
13615
13622
|
}
|
|
13616
13623
|
// will already have eventMinHeight applied because segInputs already had it
|
|
13617
13624
|
renderHiddenGroups(hiddenGroups, segs) {
|
|
13618
13625
|
let { extraDateSpan, dateProfile, todayRange, nowDate, eventSelection, eventDrag, eventResize } = this.props;
|
|
13619
|
-
return (
|
|
13626
|
+
return (y(_, null, hiddenGroups.map((hiddenGroup) => {
|
|
13620
13627
|
let positionCss = computeSegVStyle(hiddenGroup.span);
|
|
13621
13628
|
let hiddenSegs = compileSegsFromEntries(hiddenGroup.entries, segs);
|
|
13622
|
-
return (
|
|
13629
|
+
return (y(TimeColMoreLink, { key: buildIsoString(computeEarliestSegStart(hiddenSegs)), hiddenSegs: hiddenSegs, top: positionCss.top, bottom: positionCss.bottom, extraDateSpan: extraDateSpan, dateProfile: dateProfile, todayRange: todayRange, nowDate: nowDate, eventSelection: eventSelection, eventDrag: eventDrag, eventResize: eventResize }));
|
|
13623
13630
|
})));
|
|
13624
13631
|
}
|
|
13625
13632
|
renderFillSegs(segs, fillType) {
|
|
@@ -13627,18 +13634,18 @@ var FullCalendar = (function (exports) {
|
|
|
13627
13634
|
let segVCoords = computeSegVCoords(segs, props.date, props.slatCoords, context.options.eventMinHeight); // don't assume all populated
|
|
13628
13635
|
let children = segVCoords.map((vcoords, i) => {
|
|
13629
13636
|
let seg = segs[i];
|
|
13630
|
-
return (
|
|
13631
|
-
|
|
13637
|
+
return (y("div", { key: buildEventRangeKey(seg.eventRange), className: "fc-timegrid-bg-harness", style: computeSegVStyle(vcoords) }, fillType === 'bg-event' ?
|
|
13638
|
+
y(BgEvent, Object.assign({ seg: seg }, getSegMeta(seg, props.todayRange, props.nowDate))) :
|
|
13632
13639
|
renderFill(fillType)));
|
|
13633
13640
|
});
|
|
13634
|
-
return
|
|
13641
|
+
return y(_, null, children);
|
|
13635
13642
|
}
|
|
13636
13643
|
renderNowIndicator(segs) {
|
|
13637
13644
|
let { slatCoords, date } = this.props;
|
|
13638
13645
|
if (!slatCoords) {
|
|
13639
13646
|
return null;
|
|
13640
13647
|
}
|
|
13641
|
-
return segs.map((seg, i) => (
|
|
13648
|
+
return segs.map((seg, i) => (y(NowIndicatorContainer
|
|
13642
13649
|
// key doesn't matter. will only ever be one
|
|
13643
13650
|
, {
|
|
13644
13651
|
// key doesn't matter. will only ever be one
|
|
@@ -13681,10 +13688,10 @@ var FullCalendar = (function (exports) {
|
|
|
13681
13688
|
let hiddenInstances = (eventDrag ? eventDrag.affectedInstances : null) ||
|
|
13682
13689
|
(eventResize ? eventResize.affectedInstances : null) ||
|
|
13683
13690
|
{};
|
|
13684
|
-
return (
|
|
13691
|
+
return (y(_, null, sortedFgSegs.map((seg) => {
|
|
13685
13692
|
let instanceId = seg.eventRange.instance.instanceId;
|
|
13686
|
-
return (
|
|
13687
|
-
|
|
13693
|
+
return (y("div", { key: instanceId, style: { visibility: hiddenInstances[instanceId] ? 'hidden' : '' } },
|
|
13694
|
+
y(TimeColEvent, Object.assign({ seg: seg, isDragging: false, isResizing: false, isDateSelecting: false, isSelected: instanceId === eventSelection, isShort: false }, getSegMeta(seg, todayRange, nowDate)))));
|
|
13688
13695
|
})));
|
|
13689
13696
|
}
|
|
13690
13697
|
function computeSegVStyle(segVCoords) {
|
|
@@ -13710,7 +13717,7 @@ var FullCalendar = (function (exports) {
|
|
|
13710
13717
|
this.splitDateSelectionSegs = memoize(splitSegsByCol);
|
|
13711
13718
|
this.splitEventDrag = memoize(splitInteractionByCol);
|
|
13712
13719
|
this.splitEventResize = memoize(splitInteractionByCol);
|
|
13713
|
-
this.rootElRef =
|
|
13720
|
+
this.rootElRef = d();
|
|
13714
13721
|
this.cellElRefs = new RefMap();
|
|
13715
13722
|
}
|
|
13716
13723
|
render() {
|
|
@@ -13726,18 +13733,18 @@ var FullCalendar = (function (exports) {
|
|
|
13726
13733
|
let dateSelectionSegsByRow = this.splitDateSelectionSegs(props.dateSelectionSegs, colCnt);
|
|
13727
13734
|
let eventDragByRow = this.splitEventDrag(props.eventDrag, colCnt);
|
|
13728
13735
|
let eventResizeByRow = this.splitEventResize(props.eventResize, colCnt);
|
|
13729
|
-
return (
|
|
13730
|
-
|
|
13736
|
+
return (y("div", { className: "fc-timegrid-cols", ref: this.rootElRef },
|
|
13737
|
+
y("table", { role: "presentation", style: {
|
|
13731
13738
|
minWidth: props.tableMinWidth,
|
|
13732
13739
|
width: props.clientWidth,
|
|
13733
13740
|
} },
|
|
13734
13741
|
props.tableColGroupNode,
|
|
13735
|
-
|
|
13736
|
-
|
|
13737
|
-
props.axis && (
|
|
13738
|
-
|
|
13739
|
-
|
|
13740
|
-
props.cells.map((cell, i) => (
|
|
13742
|
+
y("tbody", { role: "presentation" },
|
|
13743
|
+
y("tr", { role: "row" },
|
|
13744
|
+
props.axis && (y("td", { "aria-hidden": true, className: "fc-timegrid-col fc-timegrid-axis" },
|
|
13745
|
+
y("div", { className: "fc-timegrid-col-frame" },
|
|
13746
|
+
y("div", { className: "fc-timegrid-now-indicator-container" }, typeof nowIndicatorTop === 'number' && (y(NowIndicatorContainer, { elClasses: ['fc-timegrid-now-indicator-arrow'], elStyle: { top: nowIndicatorTop }, isAxis: true, date: props.nowDate })))))),
|
|
13747
|
+
props.cells.map((cell, i) => (y(TimeCol, { key: cell.key, elRef: this.cellElRefs.createRef(cell.key), dateProfile: props.dateProfile, date: cell.date, nowDate: props.nowDate, todayRange: props.todayRange, extraRenderProps: cell.extraRenderProps, extraDataAttrs: cell.extraDataAttrs, extraClassNames: cell.extraClassNames, extraDateSpan: cell.extraDateSpan, fgEventSegs: fgEventSegsByRow[i], bgEventSegs: bgEventSegsByRow[i], businessHourSegs: businessHourSegsByRow[i], nowIndicatorSegs: nowIndicatorSegsByRow[i], dateSelectionSegs: dateSelectionSegsByRow[i], eventDrag: eventDragByRow[i], eventResize: eventResizeByRow[i], slatCoords: props.slatCoords, eventSelection: props.eventSelection, forPrint: props.forPrint }))))))));
|
|
13741
13748
|
}
|
|
13742
13749
|
componentDidMount() {
|
|
13743
13750
|
this.updateCoords();
|
|
@@ -13807,14 +13814,14 @@ var FullCalendar = (function (exports) {
|
|
|
13807
13814
|
}
|
|
13808
13815
|
render() {
|
|
13809
13816
|
let { props, state } = this;
|
|
13810
|
-
return (
|
|
13817
|
+
return (y("div", { className: "fc-timegrid-body", ref: this.handleRootEl, style: {
|
|
13811
13818
|
// these props are important to give this wrapper correct dimensions for interactions
|
|
13812
13819
|
// TODO: if we set it here, can we avoid giving to inner tables?
|
|
13813
13820
|
width: props.clientWidth,
|
|
13814
13821
|
minWidth: props.tableMinWidth,
|
|
13815
13822
|
} },
|
|
13816
|
-
|
|
13817
|
-
|
|
13823
|
+
y(TimeColsSlats, { axis: props.axis, dateProfile: props.dateProfile, slatMetas: props.slatMetas, clientWidth: props.clientWidth, minHeight: props.expandRows ? props.clientHeight : '', tableMinWidth: props.tableMinWidth, tableColGroupNode: props.axis ? props.tableColGroupNode : null /* axis depends on the colgroup's shrinking */, onCoords: this.handleSlatCoords }),
|
|
13824
|
+
y(TimeColsContent, { cells: props.cells, axis: props.axis, dateProfile: props.dateProfile, businessHourSegs: props.businessHourSegs, bgEventSegs: props.bgEventSegs, fgEventSegs: props.fgEventSegs, dateSelectionSegs: props.dateSelectionSegs, eventSelection: props.eventSelection, eventDrag: props.eventDrag, eventResize: props.eventResize, todayRange: props.todayRange, nowDate: props.nowDate, nowIndicatorSegs: props.nowIndicatorSegs, clientWidth: props.clientWidth, tableMinWidth: props.tableMinWidth, tableColGroupNode: props.tableColGroupNode, slatCoords: state.slatCoords, onColCoords: this.handleColCoords, forPrint: props.forPrint })));
|
|
13818
13825
|
}
|
|
13819
13826
|
componentDidMount() {
|
|
13820
13827
|
this.scrollResponder = this.context.createScrollResponder(this.handleScrollRequest);
|
|
@@ -13895,7 +13902,7 @@ var FullCalendar = (function (exports) {
|
|
|
13895
13902
|
super(...arguments);
|
|
13896
13903
|
this.buildDayRanges = memoize(buildDayRanges);
|
|
13897
13904
|
this.slicer = new DayTimeColsSlicer();
|
|
13898
|
-
this.timeColsRef =
|
|
13905
|
+
this.timeColsRef = d();
|
|
13899
13906
|
}
|
|
13900
13907
|
render() {
|
|
13901
13908
|
let { props, context } = this;
|
|
@@ -13904,7 +13911,7 @@ var FullCalendar = (function (exports) {
|
|
|
13904
13911
|
let dayRanges = this.buildDayRanges(dayTableModel, dateProfile, context.dateEnv);
|
|
13905
13912
|
// give it the first row of cells
|
|
13906
13913
|
// TODO: would move this further down hierarchy, but sliceNowDate needs it
|
|
13907
|
-
return (
|
|
13914
|
+
return (y(NowTimer, { unit: nowIndicator ? 'minute' : 'day' }, (nowDate, todayRange) => (y(TimeCols, Object.assign({ ref: this.timeColsRef }, this.slicer.sliceProps(props, dateProfile, null, context, dayRanges), { forPrint: props.forPrint, axis: props.axis, dateProfile: dateProfile, slatMetas: props.slatMetas, slotDuration: props.slotDuration, cells: dayTableModel.cells[0], tableColGroupNode: props.tableColGroupNode, tableMinWidth: props.tableMinWidth, clientWidth: props.clientWidth, clientHeight: props.clientHeight, expandRows: props.expandRows, nowDate: nowDate, nowIndicatorSegs: nowIndicator && this.slicer.sliceNowDate(nowDate, dateProfile, nextDayThreshold, context, dayRanges), todayRange: todayRange, onScrollTopRequest: props.onScrollTopRequest, onSlatCoords: props.onSlatCoords })))));
|
|
13908
13915
|
}
|
|
13909
13916
|
}
|
|
13910
13917
|
function buildDayRanges(dayTableModel, dateProfile, dateEnv) {
|
|
@@ -13980,9 +13987,9 @@ var FullCalendar = (function (exports) {
|
|
|
13980
13987
|
let { dayMinWidth } = options;
|
|
13981
13988
|
let hasAttachedAxis = !dayMinWidth;
|
|
13982
13989
|
let hasDetachedAxis = dayMinWidth;
|
|
13983
|
-
let headerContent = options.dayHeaders && (
|
|
13984
|
-
let allDayContent = (options.allDaySlot !== false) && ((contentArg) => (
|
|
13985
|
-
let timeGridContent = (contentArg) => (
|
|
13990
|
+
let headerContent = options.dayHeaders && (y(DayHeader, { dates: dayTableModel.headerDates, dateProfile: dateProfile, datesRepDistinctDays: true, renderIntro: hasAttachedAxis ? this.renderHeadAxis : null }));
|
|
13991
|
+
let allDayContent = (options.allDaySlot !== false) && ((contentArg) => (y(DayTable, Object.assign({}, splitProps.allDay, { dateProfile: dateProfile, dayTableModel: dayTableModel, nextDayThreshold: options.nextDayThreshold, tableMinWidth: contentArg.tableMinWidth, colGroupNode: contentArg.tableColGroupNode, renderRowIntro: hasAttachedAxis ? this.renderTableRowAxis : null, showWeekNumbers: false, expandRows: false, headerAlignElRef: this.headerElRef, clientWidth: contentArg.clientWidth, clientHeight: contentArg.clientHeight, forPrint: props.forPrint }, this.getAllDayMaxEventProps()))));
|
|
13992
|
+
let timeGridContent = (contentArg) => (y(DayTimeCols, Object.assign({}, splitProps.timed, { dayTableModel: dayTableModel, dateProfile: dateProfile, axis: hasAttachedAxis, slotDuration: options.slotDuration, slatMetas: slatMetas, forPrint: props.forPrint, tableColGroupNode: contentArg.tableColGroupNode, tableMinWidth: contentArg.tableMinWidth, clientWidth: contentArg.clientWidth, clientHeight: contentArg.clientHeight, onSlatCoords: this.handleSlatCoords, expandRows: contentArg.expandRows, onScrollTopRequest: this.handleScrollTopRequest })));
|
|
13986
13993
|
return hasDetachedAxis
|
|
13987
13994
|
? this.renderHScrollLayout(headerContent, allDayContent, timeGridContent, dayTableModel.colCnt, dayMinWidth, slatMetas, this.state.slatCoords)
|
|
13988
13995
|
: this.renderSimpleLayout(headerContent, allDayContent, timeGridContent);
|
|
@@ -13993,13 +14000,13 @@ var FullCalendar = (function (exports) {
|
|
|
13993
14000
|
return new DayTableModel(daySeries, false);
|
|
13994
14001
|
}
|
|
13995
14002
|
|
|
14003
|
+
var css_248z$2 = ".fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:\"\\00a0\"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:\"\\00a0-\\00a0\"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}";
|
|
14004
|
+
injectStyles(css_248z$2);
|
|
14005
|
+
|
|
13996
14006
|
const OPTION_REFINERS$2 = {
|
|
13997
14007
|
allDaySlot: Boolean,
|
|
13998
14008
|
};
|
|
13999
14009
|
|
|
14000
|
-
var css_248z$2 = ".fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:\"\\00a0\"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:\"\\00a0-\\00a0\"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}";
|
|
14001
|
-
injectStyles(css_248z$2);
|
|
14002
|
-
|
|
14003
14010
|
var index$2 = createPlugin({
|
|
14004
14011
|
name: '@fullcalendar/timegrid',
|
|
14005
14012
|
initialView: 'timeGridWeek',
|
|
@@ -14023,6 +14030,9 @@ var FullCalendar = (function (exports) {
|
|
|
14023
14030
|
},
|
|
14024
14031
|
});
|
|
14025
14032
|
|
|
14033
|
+
var css_248z$1 = ":root{--fc-list-event-dot-width:10px;--fc-list-event-hover-bg-color:#f5f5f5}.fc-theme-standard .fc-list{border:1px solid var(--fc-border-color)}.fc .fc-list-empty{align-items:center;background-color:var(--fc-neutral-bg-color);display:flex;height:100%;justify-content:center}.fc .fc-list-empty-cushion{margin:5em 0}.fc .fc-list-table{border-style:hidden;width:100%}.fc .fc-list-table tr>*{border-left:0;border-right:0}.fc .fc-list-sticky .fc-list-day>*{background:var(--fc-page-bg-color);position:sticky;top:0}.fc .fc-list-table thead{left:-10000px;position:absolute}.fc .fc-list-table tbody>tr:first-child th{border-top:0}.fc .fc-list-table th{padding:0}.fc .fc-list-day-cushion,.fc .fc-list-table td{padding:8px 14px}.fc .fc-list-day-cushion:after{clear:both;content:\"\";display:table}.fc-theme-standard .fc-list-day-cushion{background-color:var(--fc-neutral-bg-color)}.fc-direction-ltr .fc-list-day-text,.fc-direction-rtl .fc-list-day-side-text{float:left}.fc-direction-ltr .fc-list-day-side-text,.fc-direction-rtl .fc-list-day-text{float:right}.fc-direction-ltr .fc-list-table .fc-list-event-graphic{padding-right:0}.fc-direction-rtl .fc-list-table .fc-list-event-graphic{padding-left:0}.fc .fc-list-event.fc-event-forced-url{cursor:pointer}.fc .fc-list-event:hover td{background-color:var(--fc-list-event-hover-bg-color)}.fc .fc-list-event-graphic,.fc .fc-list-event-time{white-space:nowrap;width:1px}.fc .fc-list-event-dot{border:calc(var(--fc-list-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-list-event-dot-width)/2);box-sizing:content-box;display:inline-block;height:0;width:0}.fc .fc-list-event-title a{color:inherit;text-decoration:none}.fc .fc-list-event.fc-event-forced-url:hover a{text-decoration:underline}";
|
|
14034
|
+
injectStyles(css_248z$1);
|
|
14035
|
+
|
|
14026
14036
|
class ListViewHeaderRow extends BaseComponent {
|
|
14027
14037
|
constructor() {
|
|
14028
14038
|
super(...arguments);
|
|
@@ -14043,23 +14053,23 @@ var FullCalendar = (function (exports) {
|
|
|
14043
14053
|
text,
|
|
14044
14054
|
sideText, navLinkAttrs: buildNavLinkAttrs(this.context, dayDate), sideNavLinkAttrs: buildNavLinkAttrs(this.context, dayDate, 'day', false) }, dayMeta);
|
|
14045
14055
|
// TODO: make a reusable HOC for dayHeader (used in daygrid/timegrid too)
|
|
14046
|
-
return (
|
|
14056
|
+
return (y(ContentContainer, { elTag: "tr", elClasses: [
|
|
14047
14057
|
'fc-list-day',
|
|
14048
14058
|
...getDayClassNames(dayMeta, theme),
|
|
14049
14059
|
], elAttrs: {
|
|
14050
14060
|
'data-date': formatDayString(dayDate),
|
|
14051
14061
|
}, renderProps: renderProps, generatorName: "dayHeaderContent", customGenerator: options.dayHeaderContent, defaultGenerator: renderInnerContent, classNameGenerator: options.dayHeaderClassNames, didMount: options.dayHeaderDidMount, willUnmount: options.dayHeaderWillUnmount }, (InnerContent) => ( // TODO: force-hide top border based on :first-child
|
|
14052
|
-
|
|
14053
|
-
|
|
14062
|
+
y("th", { scope: "colgroup", colSpan: 3, id: cellId, "aria-labelledby": textId },
|
|
14063
|
+
y(InnerContent, { elTag: "div", elClasses: [
|
|
14054
14064
|
'fc-list-day-cushion',
|
|
14055
14065
|
theme.getClass('tableCellShaded'),
|
|
14056
14066
|
] })))));
|
|
14057
14067
|
}
|
|
14058
14068
|
}
|
|
14059
14069
|
function renderInnerContent(props) {
|
|
14060
|
-
return (
|
|
14061
|
-
props.text && (
|
|
14062
|
-
props.sideText && ( /* not keyboard tabbable */
|
|
14070
|
+
return (y(_, null,
|
|
14071
|
+
props.text && (y("a", Object.assign({ id: props.textId, className: "fc-list-day-text" }, props.navLinkAttrs), props.text)),
|
|
14072
|
+
props.sideText && ( /* not keyboard tabbable */y("a", Object.assign({ "aria-hidden": true, className: "fc-list-day-side-text" }, props.sideNavLinkAttrs), props.sideText))));
|
|
14063
14073
|
}
|
|
14064
14074
|
|
|
14065
14075
|
const DEFAULT_TIME_FORMAT = createFormatter({
|
|
@@ -14073,21 +14083,21 @@ var FullCalendar = (function (exports) {
|
|
|
14073
14083
|
let { options } = context;
|
|
14074
14084
|
let { seg, timeHeaderId, eventHeaderId, dateHeaderId } = props;
|
|
14075
14085
|
let timeFormat = options.eventTimeFormat || DEFAULT_TIME_FORMAT;
|
|
14076
|
-
return (
|
|
14086
|
+
return (y(EventContainer, Object.assign({}, props, { elTag: "tr", elClasses: [
|
|
14077
14087
|
'fc-list-event',
|
|
14078
14088
|
seg.eventRange.def.url && 'fc-event-forced-url',
|
|
14079
|
-
], defaultGenerator: () => renderEventInnerContent(seg, context) /* weird */, seg: seg, timeText: "", disableDragging: true, disableResizing: true }), (InnerContent, eventContentArg) => (
|
|
14089
|
+
], defaultGenerator: () => renderEventInnerContent(seg, context) /* weird */, seg: seg, timeText: "", disableDragging: true, disableResizing: true }), (InnerContent, eventContentArg) => (y(_, null,
|
|
14080
14090
|
buildTimeContent(seg, timeFormat, context, timeHeaderId, dateHeaderId),
|
|
14081
|
-
|
|
14082
|
-
|
|
14091
|
+
y("td", { "aria-hidden": true, className: "fc-list-event-graphic" },
|
|
14092
|
+
y("span", { className: "fc-list-event-dot", style: {
|
|
14083
14093
|
borderColor: eventContentArg.borderColor || eventContentArg.backgroundColor,
|
|
14084
14094
|
} })),
|
|
14085
|
-
|
|
14095
|
+
y(InnerContent, { elTag: "td", elClasses: ['fc-list-event-title'], elAttrs: { headers: `${eventHeaderId} ${dateHeaderId}` } })))));
|
|
14086
14096
|
}
|
|
14087
14097
|
}
|
|
14088
14098
|
function renderEventInnerContent(seg, context) {
|
|
14089
14099
|
let interactiveAttrs = getSegAnchorAttrs(seg, context);
|
|
14090
|
-
return (
|
|
14100
|
+
return (y("a", Object.assign({}, interactiveAttrs), seg.eventRange.def.title));
|
|
14091
14101
|
}
|
|
14092
14102
|
function buildTimeContent(seg, timeFormat, context, timeHeaderId, dateHeaderId) {
|
|
14093
14103
|
let { options } = context;
|
|
@@ -14118,11 +14128,11 @@ var FullCalendar = (function (exports) {
|
|
|
14118
14128
|
text: context.options.allDayText,
|
|
14119
14129
|
view: context.viewApi,
|
|
14120
14130
|
};
|
|
14121
|
-
return (
|
|
14131
|
+
return (y(ContentContainer, { elTag: "td", elClasses: ['fc-list-event-time'], elAttrs: {
|
|
14122
14132
|
headers: `${timeHeaderId} ${dateHeaderId}`,
|
|
14123
14133
|
}, renderProps: renderProps, generatorName: "allDayContent", customGenerator: options.allDayContent, defaultGenerator: renderAllDayInner, classNameGenerator: options.allDayClassNames, didMount: options.allDayDidMount, willUnmount: options.allDayWillUnmount }));
|
|
14124
14134
|
}
|
|
14125
|
-
return (
|
|
14135
|
+
return (y("td", { className: "fc-list-event-time" }, timeText));
|
|
14126
14136
|
}
|
|
14127
14137
|
return null;
|
|
14128
14138
|
}
|
|
@@ -14158,14 +14168,14 @@ var FullCalendar = (function (exports) {
|
|
|
14158
14168
|
let { props, context } = this;
|
|
14159
14169
|
let { dayDates, dayRanges } = this.computeDateVars(props.dateProfile);
|
|
14160
14170
|
let eventSegs = this.eventStoreToSegs(props.eventStore, props.eventUiBases, dayRanges);
|
|
14161
|
-
return (
|
|
14171
|
+
return (y(ViewContainer, { elRef: this.setRootEl, elClasses: [
|
|
14162
14172
|
'fc-list',
|
|
14163
14173
|
context.theme.getClass('table'),
|
|
14164
14174
|
context.options.stickyHeaderDates !== false ?
|
|
14165
14175
|
'fc-list-sticky' :
|
|
14166
14176
|
'',
|
|
14167
14177
|
], viewSpec: context.viewSpec },
|
|
14168
|
-
|
|
14178
|
+
y(Scroller, { liquid: !props.isHeightAuto, overflowX: props.isHeightAuto ? 'visible' : 'hidden', overflowY: props.isHeightAuto ? 'visible' : 'auto' }, eventSegs.length > 0 ?
|
|
14169
14179
|
this.renderSegList(eventSegs, dayDates) :
|
|
14170
14180
|
this.renderEmptyMessage())));
|
|
14171
14181
|
}
|
|
@@ -14175,13 +14185,13 @@ var FullCalendar = (function (exports) {
|
|
|
14175
14185
|
text: options.noEventsText,
|
|
14176
14186
|
view: viewApi,
|
|
14177
14187
|
};
|
|
14178
|
-
return (
|
|
14188
|
+
return (y(ContentContainer, { elTag: "div", elClasses: ['fc-list-empty'], renderProps: renderProps, generatorName: "noEventsContent", customGenerator: options.noEventsContent, defaultGenerator: renderNoEventsInner, classNameGenerator: options.noEventsClassNames, didMount: options.noEventsDidMount, willUnmount: options.noEventsWillUnmount }, (InnerContent) => (y(InnerContent, { elTag: "div", elClasses: ['fc-list-empty-cushion'] }))));
|
|
14179
14189
|
}
|
|
14180
14190
|
renderSegList(allSegs, dayDates) {
|
|
14181
14191
|
let { theme, options } = this.context;
|
|
14182
14192
|
let { timeHeaderId, eventHeaderId, dateHeaderIdRoot } = this.state;
|
|
14183
14193
|
let segsByDay = groupSegsByDay(allSegs); // sparse array
|
|
14184
|
-
return (
|
|
14194
|
+
return (y(NowTimer, { unit: "day" }, (nowDate, todayRange) => {
|
|
14185
14195
|
let innerNodes = [];
|
|
14186
14196
|
for (let dayIndex = 0; dayIndex < segsByDay.length; dayIndex += 1) {
|
|
14187
14197
|
let daySegs = segsByDay[dayIndex];
|
|
@@ -14189,20 +14199,20 @@ var FullCalendar = (function (exports) {
|
|
|
14189
14199
|
let dayStr = formatDayString(dayDates[dayIndex]);
|
|
14190
14200
|
let dateHeaderId = dateHeaderIdRoot + '-' + dayStr;
|
|
14191
14201
|
// append a day header
|
|
14192
|
-
innerNodes.push(
|
|
14202
|
+
innerNodes.push(y(ListViewHeaderRow, { key: dayStr, cellId: dateHeaderId, dayDate: dayDates[dayIndex], todayRange: todayRange }));
|
|
14193
14203
|
daySegs = sortEventSegs(daySegs, options.eventOrder);
|
|
14194
14204
|
for (let seg of daySegs) {
|
|
14195
|
-
innerNodes.push(
|
|
14205
|
+
innerNodes.push(y(ListViewEventRow, Object.assign({ key: dayStr + ':' + seg.eventRange.instance.instanceId /* are multiple segs for an instanceId */, seg: seg, isDragging: false, isResizing: false, isDateSelecting: false, isSelected: false, timeHeaderId: timeHeaderId, eventHeaderId: eventHeaderId, dateHeaderId: dateHeaderId }, getSegMeta(seg, todayRange, nowDate))));
|
|
14196
14206
|
}
|
|
14197
14207
|
}
|
|
14198
14208
|
}
|
|
14199
|
-
return (
|
|
14200
|
-
|
|
14201
|
-
|
|
14202
|
-
|
|
14203
|
-
|
|
14204
|
-
|
|
14205
|
-
|
|
14209
|
+
return (y("table", { className: 'fc-list-table ' + theme.getClass('table') },
|
|
14210
|
+
y("thead", null,
|
|
14211
|
+
y("tr", null,
|
|
14212
|
+
y("th", { scope: "col", id: timeHeaderId }, options.timeHint),
|
|
14213
|
+
y("th", { scope: "col", "aria-hidden": true }),
|
|
14214
|
+
y("th", { scope: "col", id: eventHeaderId }, options.eventHint))),
|
|
14215
|
+
y("tbody", null, innerNodes)));
|
|
14206
14216
|
}));
|
|
14207
14217
|
}
|
|
14208
14218
|
_eventStoreToSegs(eventStore, eventUiBases, dayRanges) {
|
|
@@ -14296,9 +14306,6 @@ var FullCalendar = (function (exports) {
|
|
|
14296
14306
|
return input === false ? null : createFormatter(input);
|
|
14297
14307
|
}
|
|
14298
14308
|
|
|
14299
|
-
var css_248z$1 = ":root{--fc-list-event-dot-width:10px;--fc-list-event-hover-bg-color:#f5f5f5}.fc-theme-standard .fc-list{border:1px solid var(--fc-border-color)}.fc .fc-list-empty{align-items:center;background-color:var(--fc-neutral-bg-color);display:flex;height:100%;justify-content:center}.fc .fc-list-empty-cushion{margin:5em 0}.fc .fc-list-table{border-style:hidden;width:100%}.fc .fc-list-table tr>*{border-left:0;border-right:0}.fc .fc-list-sticky .fc-list-day>*{background:var(--fc-page-bg-color);position:sticky;top:0}.fc .fc-list-table thead{left:-10000px;position:absolute}.fc .fc-list-table tbody>tr:first-child th{border-top:0}.fc .fc-list-table th{padding:0}.fc .fc-list-day-cushion,.fc .fc-list-table td{padding:8px 14px}.fc .fc-list-day-cushion:after{clear:both;content:\"\";display:table}.fc-theme-standard .fc-list-day-cushion{background-color:var(--fc-neutral-bg-color)}.fc-direction-ltr .fc-list-day-text,.fc-direction-rtl .fc-list-day-side-text{float:left}.fc-direction-ltr .fc-list-day-side-text,.fc-direction-rtl .fc-list-day-text{float:right}.fc-direction-ltr .fc-list-table .fc-list-event-graphic{padding-right:0}.fc-direction-rtl .fc-list-table .fc-list-event-graphic{padding-left:0}.fc .fc-list-event.fc-event-forced-url{cursor:pointer}.fc .fc-list-event:hover td{background-color:var(--fc-list-event-hover-bg-color)}.fc .fc-list-event-graphic,.fc .fc-list-event-time{white-space:nowrap;width:1px}.fc .fc-list-event-dot{border:calc(var(--fc-list-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-list-event-dot-width)/2);box-sizing:content-box;display:inline-block;height:0;width:0}.fc .fc-list-event-title a{color:inherit;text-decoration:none}.fc .fc-list-event.fc-event-forced-url:hover a{text-decoration:underline}";
|
|
14300
|
-
injectStyles(css_248z$1);
|
|
14301
|
-
|
|
14302
14309
|
var index$1 = createPlugin({
|
|
14303
14310
|
name: '@fullcalendar/list',
|
|
14304
14311
|
optionRefiners: OPTION_REFINERS$1,
|
|
@@ -14351,16 +14358,16 @@ var FullCalendar = (function (exports) {
|
|
|
14351
14358
|
const tableHeight = props.tableWidth != null ? props.tableWidth / options.aspectRatio : null;
|
|
14352
14359
|
const rowCnt = dayTableModel.cells.length;
|
|
14353
14360
|
const rowHeight = tableHeight != null ? tableHeight / rowCnt : null;
|
|
14354
|
-
return (
|
|
14355
|
-
|
|
14356
|
-
|
|
14357
|
-
|
|
14361
|
+
return (y("div", { ref: props.elRef, "data-date": props.isoDateStr, className: "fc-multimonth-month", style: { width: props.width }, role: "grid", "aria-labelledby": state.labelId },
|
|
14362
|
+
y("div", { className: "fc-multimonth-header", style: { marginBottom: rowHeight }, role: "presentation" },
|
|
14363
|
+
y("div", { className: "fc-multimonth-title", id: state.labelId }, context.dateEnv.format(props.dateProfile.currentRange.start, props.titleFormat)),
|
|
14364
|
+
y("table", { className: [
|
|
14358
14365
|
'fc-multimonth-header-table',
|
|
14359
14366
|
context.theme.getClass('table'),
|
|
14360
14367
|
].join(' '), role: "presentation" },
|
|
14361
|
-
|
|
14362
|
-
|
|
14363
|
-
|
|
14368
|
+
y("thead", { role: "rowgroup" },
|
|
14369
|
+
y(DayHeader, { dateProfile: props.dateProfile, dates: dayTableModel.headerDates, datesRepDistinctDays: false })))),
|
|
14370
|
+
y("div", { className: [
|
|
14364
14371
|
'fc-multimonth-daygrid',
|
|
14365
14372
|
'fc-daygrid',
|
|
14366
14373
|
'fc-daygrid-body',
|
|
@@ -14368,12 +14375,12 @@ var FullCalendar = (function (exports) {
|
|
|
14368
14375
|
forPrint && 'fc-daygrid-body-unbalanced',
|
|
14369
14376
|
forPrint && 'fc-daygrid-body-natural',
|
|
14370
14377
|
].join(' '), style: { marginTop: -rowHeight } },
|
|
14371
|
-
|
|
14378
|
+
y("table", { className: [
|
|
14372
14379
|
'fc-multimonth-daygrid-table',
|
|
14373
14380
|
context.theme.getClass('table'),
|
|
14374
14381
|
].join(' '), style: { height: forPrint ? '' : tableHeight }, role: "presentation" },
|
|
14375
|
-
|
|
14376
|
-
|
|
14382
|
+
y("tbody", { role: "rowgroup" },
|
|
14383
|
+
y(TableRows, Object.assign({}, slicedProps, { dateProfile: dateProfile, cells: dayTableModel.cells, eventSelection: props.eventSelection, dayMaxEvents: !forPrint, dayMaxEventRows: !forPrint, showWeekNumbers: options.weekNumbers, clientWidth: props.clientWidth, clientHeight: props.clientHeight, forPrint: forPrint })))))));
|
|
14377
14384
|
}
|
|
14378
14385
|
}
|
|
14379
14386
|
|
|
@@ -14382,8 +14389,8 @@ var FullCalendar = (function (exports) {
|
|
|
14382
14389
|
super(...arguments);
|
|
14383
14390
|
this.splitDateProfileByMonth = memoize(splitDateProfileByMonth);
|
|
14384
14391
|
this.buildMonthFormat = memoize(buildMonthFormat);
|
|
14385
|
-
this.scrollElRef =
|
|
14386
|
-
this.firstMonthElRef =
|
|
14392
|
+
this.scrollElRef = d();
|
|
14393
|
+
this.firstMonthElRef = d();
|
|
14387
14394
|
this.needsScrollReset = false;
|
|
14388
14395
|
this.handleSizing = (isForced) => {
|
|
14389
14396
|
if (isForced) {
|
|
@@ -14414,9 +14421,9 @@ var FullCalendar = (function (exports) {
|
|
|
14414
14421
|
'fc-multimonth-compact' :
|
|
14415
14422
|
'',
|
|
14416
14423
|
];
|
|
14417
|
-
return (
|
|
14424
|
+
return (y(ViewContainer, { elRef: this.scrollElRef, elClasses: rootClassNames, viewSpec: context.viewSpec }, monthDateProfiles.map((monthDateProfile, i) => {
|
|
14418
14425
|
const monthStr = formatIsoMonthStr(monthDateProfile.currentRange.start);
|
|
14419
|
-
return (
|
|
14426
|
+
return (y(SingleMonth, Object.assign({}, props, { key: monthStr, isoDateStr: monthStr, elRef: i === 0 ? this.firstMonthElRef : undefined, titleFormat: monthTitleFormat, dateProfile: monthDateProfile, width: monthWidthPct, tableWidth: monthTableWidth, clientWidth: clientWidth, clientHeight: clientHeight })));
|
|
14420
14427
|
})));
|
|
14421
14428
|
}
|
|
14422
14429
|
componentDidMount() {
|