fullcalendar 6.1.3 → 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 +344 -325
- 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
|
|
@@ -1909,6 +1916,9 @@ var FullCalendar = (function (exports) {
|
|
|
1909
1916
|
getMonth(marker) {
|
|
1910
1917
|
return this.calendarSystem.getMarkerMonth(marker);
|
|
1911
1918
|
}
|
|
1919
|
+
getDay(marker) {
|
|
1920
|
+
return this.calendarSystem.getMarkerDay(marker);
|
|
1921
|
+
}
|
|
1912
1922
|
// Adding / Subtracting
|
|
1913
1923
|
add(marker, dur) {
|
|
1914
1924
|
let a = this.calendarSystem.markerToArray(marker);
|
|
@@ -2211,19 +2221,19 @@ var FullCalendar = (function (exports) {
|
|
|
2211
2221
|
callbackQ.push(callback);
|
|
2212
2222
|
}
|
|
2213
2223
|
l$1.debounceRendering = execCallbackSync;
|
|
2214
|
-
|
|
2224
|
+
D$1(y(FakeComponent, {}), document.createElement('div'));
|
|
2215
2225
|
while (callbackQ.length) {
|
|
2216
2226
|
callbackQ.shift()();
|
|
2217
2227
|
}
|
|
2218
2228
|
l$1.debounceRendering = oldDebounceRendering;
|
|
2219
2229
|
}
|
|
2220
|
-
class FakeComponent extends
|
|
2221
|
-
render() { return
|
|
2230
|
+
class FakeComponent extends x$1 {
|
|
2231
|
+
render() { return y('div', {}); }
|
|
2222
2232
|
componentDidMount() { this.setState({}); }
|
|
2223
2233
|
}
|
|
2224
2234
|
// TODO: use preact/compat instead?
|
|
2225
2235
|
function createContext(defaultValue) {
|
|
2226
|
-
let ContextType =
|
|
2236
|
+
let ContextType = G$1(defaultValue);
|
|
2227
2237
|
let origProvider = ContextType.Provider;
|
|
2228
2238
|
ContextType.Provider = function () {
|
|
2229
2239
|
let isNew = !this.getChildContext;
|
|
@@ -2318,7 +2328,7 @@ var FullCalendar = (function (exports) {
|
|
|
2318
2328
|
}
|
|
2319
2329
|
|
|
2320
2330
|
/* eslint max-classes-per-file: off */
|
|
2321
|
-
class PureComponent extends
|
|
2331
|
+
class PureComponent extends x$1 {
|
|
2322
2332
|
shouldComponentUpdate(nextProps, nextState) {
|
|
2323
2333
|
if (this.debug) {
|
|
2324
2334
|
// eslint-disable-next-line no-console
|
|
@@ -2386,7 +2396,7 @@ var FullCalendar = (function (exports) {
|
|
|
2386
2396
|
let currentGeneratorMeta;
|
|
2387
2397
|
if (customGenerator != null) {
|
|
2388
2398
|
const customGeneratorRes = typeof customGenerator === 'function' ?
|
|
2389
|
-
customGenerator(renderProps,
|
|
2399
|
+
customGenerator(renderProps, y) :
|
|
2390
2400
|
customGenerator;
|
|
2391
2401
|
if (customGeneratorRes === true) {
|
|
2392
2402
|
useDefault = true;
|
|
@@ -2417,7 +2427,7 @@ var FullCalendar = (function (exports) {
|
|
|
2417
2427
|
}
|
|
2418
2428
|
this.queuedDomNodes = queuedDomNodes;
|
|
2419
2429
|
this.currentGeneratorMeta = currentGeneratorMeta;
|
|
2420
|
-
return
|
|
2430
|
+
return y(props.elTag, attrs, innerContent);
|
|
2421
2431
|
}
|
|
2422
2432
|
componentDidMount() {
|
|
2423
2433
|
this.applyQueueudDomNodes();
|
|
@@ -2438,7 +2448,7 @@ var FullCalendar = (function (exports) {
|
|
|
2438
2448
|
const generatorMeta = (_a = this.currentGeneratorMeta) !== null && _a !== void 0 ? _a : customRenderingMetaMap === null || customRenderingMetaMap === void 0 ? void 0 : customRenderingMetaMap[props.generatorName];
|
|
2439
2449
|
if (generatorMeta) {
|
|
2440
2450
|
handleCustomRendering(Object.assign(Object.assign({ id: this.id, isActive, containerEl: this.base, reportNewContainerEl: this.handleEl, // for customRenderingReplacesEl
|
|
2441
|
-
generatorMeta }, props), { elClasses: props.elClasses.filter(isTruthy) }));
|
|
2451
|
+
generatorMeta }, props), { elClasses: (props.elClasses || []).filter(isTruthy) }));
|
|
2442
2452
|
}
|
|
2443
2453
|
}
|
|
2444
2454
|
}
|
|
@@ -2490,10 +2500,16 @@ var FullCalendar = (function (exports) {
|
|
|
2490
2500
|
|
|
2491
2501
|
const RenderId = createContext(0);
|
|
2492
2502
|
|
|
2493
|
-
class ContentContainer extends
|
|
2503
|
+
class ContentContainer extends x$1 {
|
|
2494
2504
|
constructor() {
|
|
2495
2505
|
super(...arguments);
|
|
2496
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
|
+
};
|
|
2497
2513
|
}
|
|
2498
2514
|
render() {
|
|
2499
2515
|
const { props } = this;
|
|
@@ -2502,29 +2518,29 @@ var FullCalendar = (function (exports) {
|
|
|
2502
2518
|
const elAttrs = buildElAttrs(props, generatedClassNames);
|
|
2503
2519
|
const children = props.children(this.InnerContent, props.renderProps, elAttrs);
|
|
2504
2520
|
if (props.elTag) {
|
|
2505
|
-
return
|
|
2521
|
+
return y(props.elTag, elAttrs, children);
|
|
2506
2522
|
}
|
|
2507
2523
|
else {
|
|
2508
2524
|
return children;
|
|
2509
2525
|
}
|
|
2510
2526
|
}
|
|
2511
2527
|
else {
|
|
2512
|
-
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 }));
|
|
2513
2529
|
}
|
|
2514
2530
|
}
|
|
2515
2531
|
componentDidMount() {
|
|
2516
2532
|
var _a, _b;
|
|
2517
|
-
(_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 }));
|
|
2518
2534
|
}
|
|
2519
2535
|
componentWillUnmount() {
|
|
2520
2536
|
var _a, _b;
|
|
2521
|
-
(_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 }));
|
|
2522
2538
|
}
|
|
2523
2539
|
}
|
|
2524
2540
|
ContentContainer.contextType = RenderId;
|
|
2525
2541
|
function InnerContentInjector(containerComponent, props) {
|
|
2526
2542
|
const parentProps = containerComponent.props;
|
|
2527
|
-
return
|
|
2543
|
+
return y((ContentInjector), Object.assign({ renderProps: parentProps.renderProps, generatorName: parentProps.generatorName, customGenerator: parentProps.customGenerator, defaultGenerator: parentProps.defaultGenerator, renderId: containerComponent.context }, props));
|
|
2528
2544
|
}
|
|
2529
2545
|
// Utils
|
|
2530
2546
|
function generateClassNames(classNameGenerator, renderProps) {
|
|
@@ -2539,7 +2555,7 @@ var FullCalendar = (function (exports) {
|
|
|
2539
2555
|
let { props, context } = this;
|
|
2540
2556
|
let { options } = context;
|
|
2541
2557
|
let renderProps = { view: context.viewApi };
|
|
2542
|
-
return (
|
|
2558
|
+
return (y(ContentContainer, Object.assign({}, props, { elTag: props.elTag || 'div', elClasses: [
|
|
2543
2559
|
...buildViewClassNames(props.viewSpec),
|
|
2544
2560
|
...(props.elClasses || []),
|
|
2545
2561
|
], renderProps: renderProps, classNameGenerator: options.viewClassNames, generatorName: undefined, didMount: options.viewDidMount, willUnmount: options.viewWillUnmount }), () => props.children));
|
|
@@ -3479,7 +3495,7 @@ var FullCalendar = (function (exports) {
|
|
|
3479
3495
|
case 'RECEIVE_EVENTS': // raw
|
|
3480
3496
|
return receiveRawEvents(eventStore, eventSources[action.sourceId], action.fetchId, action.fetchRange, action.rawEvents, context);
|
|
3481
3497
|
case 'RESET_RAW_EVENTS':
|
|
3482
|
-
return resetRawEvents(eventStore, eventSources[action.sourceId], action.rawEvents, context);
|
|
3498
|
+
return resetRawEvents(eventStore, eventSources[action.sourceId], action.rawEvents, dateProfile.activeRange, context);
|
|
3483
3499
|
case 'ADD_EVENTS': // already parsed, but not expanded
|
|
3484
3500
|
return addEvent(eventStore, action.eventStore, // new ones
|
|
3485
3501
|
dateProfile ? dateProfile.activeRange : null, context);
|
|
@@ -3520,13 +3536,10 @@ var FullCalendar = (function (exports) {
|
|
|
3520
3536
|
}
|
|
3521
3537
|
return eventStore;
|
|
3522
3538
|
}
|
|
3523
|
-
function resetRawEvents(existingEventStore, eventSource, rawEvents, context) {
|
|
3539
|
+
function resetRawEvents(existingEventStore, eventSource, rawEvents, activeRange, context) {
|
|
3524
3540
|
const { defIdMap, instanceIdMap } = buildPublicIdMaps(existingEventStore);
|
|
3525
3541
|
let newEventStore = parseEvents(transformRawEvents(rawEvents, eventSource, context), eventSource, context, false, defIdMap, instanceIdMap);
|
|
3526
|
-
|
|
3527
|
-
newEventStore = expandRecurring(newEventStore, eventSource.fetchRange, context);
|
|
3528
|
-
}
|
|
3529
|
-
return newEventStore;
|
|
3542
|
+
return expandRecurring(newEventStore, activeRange, context);
|
|
3530
3543
|
}
|
|
3531
3544
|
function transformRawEvents(rawEvents, eventSource, context) {
|
|
3532
3545
|
let calEachTransform = context.options.eventDataTransform;
|
|
@@ -6024,7 +6037,7 @@ var FullCalendar = (function (exports) {
|
|
|
6024
6037
|
? buildNavLinkAttrs(this.context, date)
|
|
6025
6038
|
: {};
|
|
6026
6039
|
let renderProps = Object.assign(Object.assign(Object.assign({ date: dateEnv.toDate(date), view: viewApi }, props.extraRenderProps), { text }), dayMeta);
|
|
6027
|
-
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: [
|
|
6028
6041
|
'fc-col-header-cell-cushion',
|
|
6029
6042
|
props.isSticky && 'fc-sticky',
|
|
6030
6043
|
] }))))));
|
|
@@ -6048,12 +6061,12 @@ var FullCalendar = (function (exports) {
|
|
|
6048
6061
|
let text = dateEnv.format(date, props.dayHeaderFormat);
|
|
6049
6062
|
let renderProps = Object.assign(Object.assign(Object.assign(Object.assign({ // TODO: make this public?
|
|
6050
6063
|
date }, dateMeta), { view: viewApi }), props.extraRenderProps), { text });
|
|
6051
|
-
return (
|
|
6064
|
+
return (y(ContentContainer, { elTag: "th", elClasses: [
|
|
6052
6065
|
CLASS_NAME,
|
|
6053
6066
|
...getDayClassNames(dateMeta, theme),
|
|
6054
6067
|
...(props.extraClassNames || []),
|
|
6055
|
-
], 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) => (
|
|
6056
|
-
|
|
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: [
|
|
6057
6070
|
'fc-col-header-cell-cushion',
|
|
6058
6071
|
props.isSticky && 'fc-sticky',
|
|
6059
6072
|
], elAttrs: {
|
|
@@ -6062,7 +6075,7 @@ var FullCalendar = (function (exports) {
|
|
|
6062
6075
|
}
|
|
6063
6076
|
}
|
|
6064
6077
|
|
|
6065
|
-
class NowTimer extends
|
|
6078
|
+
class NowTimer extends x$1 {
|
|
6066
6079
|
constructor(props, context) {
|
|
6067
6080
|
super(props, context);
|
|
6068
6081
|
this.initialNowDate = getNow(context.options.now, context.dateEnv);
|
|
@@ -6130,9 +6143,9 @@ var FullCalendar = (function (exports) {
|
|
|
6130
6143
|
let { context } = this;
|
|
6131
6144
|
let { dates, dateProfile, datesRepDistinctDays, renderIntro } = this.props;
|
|
6132
6145
|
let dayHeaderFormat = this.createDayHeaderFormatter(context.options.dayHeaderFormat, datesRepDistinctDays, dates.length);
|
|
6133
|
-
return (
|
|
6146
|
+
return (y(NowTimer, { unit: "day" }, (nowDate, todayRange) => (y("tr", { role: "row" },
|
|
6134
6147
|
renderIntro && renderIntro('day'),
|
|
6135
|
-
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 }))))))));
|
|
6136
6149
|
}
|
|
6137
6150
|
}
|
|
6138
6151
|
function createDayHeaderFormatter(explicitFormat, datesRepDistinctDays, dateCnt) {
|
|
@@ -6596,7 +6609,7 @@ var FullCalendar = (function (exports) {
|
|
|
6596
6609
|
className.push('fc-scroller-liquid');
|
|
6597
6610
|
}
|
|
6598
6611
|
}
|
|
6599
|
-
return (
|
|
6612
|
+
return (y("div", { ref: this.handleEl, className: className.join(' '), style: {
|
|
6600
6613
|
overflowX: props.overflowX,
|
|
6601
6614
|
overflowY: props.overflowY,
|
|
6602
6615
|
left: (isAbsolute && -(props.overcomeLeft || 0)) || '',
|
|
@@ -6737,7 +6750,7 @@ var FullCalendar = (function (exports) {
|
|
|
6737
6750
|
let { expandRows } = arg;
|
|
6738
6751
|
let content = typeof chunkConfig.content === 'function' ?
|
|
6739
6752
|
chunkConfig.content(arg) :
|
|
6740
|
-
|
|
6753
|
+
y('table', {
|
|
6741
6754
|
role: 'presentation',
|
|
6742
6755
|
className: [
|
|
6743
6756
|
chunkConfig.tableClassName,
|
|
@@ -6748,7 +6761,7 @@ var FullCalendar = (function (exports) {
|
|
|
6748
6761
|
width: arg.clientWidth,
|
|
6749
6762
|
height: expandRows ? arg.clientHeight : '', // css `height` on a <table> serves as a min-height
|
|
6750
6763
|
},
|
|
6751
|
-
}, arg.tableColGroupNode,
|
|
6764
|
+
}, arg.tableColGroupNode, y(isHeader ? 'thead' : 'tbody', {
|
|
6752
6765
|
role: 'presentation',
|
|
6753
6766
|
}, typeof chunkConfig.rowContent === 'function'
|
|
6754
6767
|
? chunkConfig.rowContent(arg)
|
|
@@ -6768,13 +6781,13 @@ var FullCalendar = (function (exports) {
|
|
|
6768
6781
|
for (let colProps of cols) {
|
|
6769
6782
|
let span = colProps.span || 1;
|
|
6770
6783
|
for (let i = 0; i < span; i += 1) {
|
|
6771
|
-
colNodes.push(
|
|
6784
|
+
colNodes.push(y("col", { style: {
|
|
6772
6785
|
width: colProps.width === 'shrink' ? sanitizeShrinkWidth(shrinkWidth) : (colProps.width || ''),
|
|
6773
6786
|
minWidth: colProps.minWidth || '',
|
|
6774
6787
|
} }));
|
|
6775
6788
|
}
|
|
6776
6789
|
}
|
|
6777
|
-
return
|
|
6790
|
+
return y('colgroup', {}, ...colNodes);
|
|
6778
6791
|
}
|
|
6779
6792
|
function sanitizeShrinkWidth(shrinkWidth) {
|
|
6780
6793
|
/* why 4? if we do 0, it will kill any border, which are needed for computeSmallestCellWidth
|
|
@@ -6814,7 +6827,7 @@ var FullCalendar = (function (exports) {
|
|
|
6814
6827
|
return classNames;
|
|
6815
6828
|
}
|
|
6816
6829
|
function renderScrollShim(arg) {
|
|
6817
|
-
return (
|
|
6830
|
+
return (y("div", { className: "fc-scrollgrid-sticky-shim", style: {
|
|
6818
6831
|
width: arg.clientWidth,
|
|
6819
6832
|
minWidth: arg.tableMinWidth,
|
|
6820
6833
|
} }));
|
|
@@ -6887,17 +6900,17 @@ var FullCalendar = (function (exports) {
|
|
|
6887
6900
|
// if so, use a simpler dom structure, jam everything into a lone tbody.
|
|
6888
6901
|
let isBuggy = !getCanVGrowWithinCell();
|
|
6889
6902
|
const roleAttrs = { role: 'rowgroup' };
|
|
6890
|
-
return
|
|
6903
|
+
return y('table', {
|
|
6891
6904
|
role: 'grid',
|
|
6892
6905
|
className: classNames.join(' '),
|
|
6893
6906
|
style: { height: props.height },
|
|
6894
|
-
}, 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));
|
|
6895
6908
|
}
|
|
6896
6909
|
renderSection(sectionConfig, microColGroupNode, isHeader) {
|
|
6897
6910
|
if ('outerContent' in sectionConfig) {
|
|
6898
|
-
return (
|
|
6911
|
+
return (y(_, { key: sectionConfig.key }, sectionConfig.outerContent));
|
|
6899
6912
|
}
|
|
6900
|
-
return (
|
|
6913
|
+
return (y("tr", { key: sectionConfig.key, role: "presentation", className: getSectionClassNames(sectionConfig, this.props.liquid).join(' ') }, this.renderChunkTd(sectionConfig, microColGroupNode, sectionConfig.chunk, isHeader)));
|
|
6901
6914
|
}
|
|
6902
6915
|
renderChunkTd(sectionConfig, microColGroupNode, chunkConfig, isHeader) {
|
|
6903
6916
|
if ('outerContent' in chunkConfig) {
|
|
@@ -6924,11 +6937,11 @@ var FullCalendar = (function (exports) {
|
|
|
6924
6937
|
rowSyncHeights: [],
|
|
6925
6938
|
reportRowHeightChange: () => { },
|
|
6926
6939
|
}, isHeader);
|
|
6927
|
-
return
|
|
6940
|
+
return y(isHeader ? 'th' : 'td', {
|
|
6928
6941
|
ref: chunkConfig.elRef,
|
|
6929
6942
|
role: 'presentation',
|
|
6930
|
-
},
|
|
6931
|
-
|
|
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
|
|
6932
6945
|
: true }, content)));
|
|
6933
6946
|
}
|
|
6934
6947
|
_handleScrollerEl(scrollerEl, key) {
|
|
@@ -7029,7 +7042,7 @@ var FullCalendar = (function (exports) {
|
|
|
7029
7042
|
isDragging: Boolean(props.isDragging),
|
|
7030
7043
|
isResizing: Boolean(props.isResizing),
|
|
7031
7044
|
};
|
|
7032
|
-
return (
|
|
7045
|
+
return (y(ContentContainer, Object.assign({}, props /* contains children */, { elRef: this.handleEl, elClasses: [
|
|
7033
7046
|
...getEventClassNames(renderProps),
|
|
7034
7047
|
...seg.eventRange.ui.classNames,
|
|
7035
7048
|
...(props.elClasses || []),
|
|
@@ -7051,30 +7064,30 @@ var FullCalendar = (function (exports) {
|
|
|
7051
7064
|
let { ui } = seg.eventRange;
|
|
7052
7065
|
let timeFormat = options.eventTimeFormat || props.defaultTimeFormat;
|
|
7053
7066
|
let timeText = buildSegTimeText(seg, timeFormat, context, props.defaultDisplayEventTime, props.defaultDisplayEventEnd);
|
|
7054
|
-
return (
|
|
7067
|
+
return (y(EventContainer, Object.assign({}, props /* includes elRef */, { elTag: "a", elStyle: {
|
|
7055
7068
|
borderColor: ui.borderColor,
|
|
7056
7069
|
backgroundColor: ui.backgroundColor,
|
|
7057
|
-
}, elAttrs: getSegAnchorAttrs(seg, context), defaultGenerator: renderInnerContent$1$1, timeText: timeText }), (InnerContent, eventContentArg) => (
|
|
7058
|
-
|
|
7059
|
-
Boolean(eventContentArg.isStartResizable) && (
|
|
7060
|
-
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" }))))));
|
|
7061
7074
|
}
|
|
7062
7075
|
}
|
|
7063
7076
|
function renderInnerContent$1$1(innerProps) {
|
|
7064
|
-
return (
|
|
7065
|
-
innerProps.timeText && (
|
|
7066
|
-
|
|
7067
|
-
|
|
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")))));
|
|
7068
7081
|
}
|
|
7069
7082
|
|
|
7070
|
-
const NowIndicatorContainer = (props) => (
|
|
7083
|
+
const NowIndicatorContainer = (props) => (y(ViewContextType.Consumer, null, (context) => {
|
|
7071
7084
|
let { options } = context;
|
|
7072
7085
|
let renderProps = {
|
|
7073
7086
|
isAxis: props.isAxis,
|
|
7074
7087
|
date: context.dateEnv.toDate(props.date),
|
|
7075
7088
|
view: context.viewApi,
|
|
7076
7089
|
};
|
|
7077
|
-
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 })));
|
|
7078
7091
|
}));
|
|
7079
7092
|
|
|
7080
7093
|
const DAY_NUM_FORMAT = createFormatter({ day: 'numeric' });
|
|
@@ -7097,7 +7110,7 @@ var FullCalendar = (function (exports) {
|
|
|
7097
7110
|
dateEnv: context.dateEnv,
|
|
7098
7111
|
monthStartFormat: options.monthStartFormat,
|
|
7099
7112
|
});
|
|
7100
|
-
return (
|
|
7113
|
+
return (y(ContentContainer, Object.assign({}, props /* includes children */, { elClasses: [
|
|
7101
7114
|
...getDayClassNames(renderProps, context.theme),
|
|
7102
7115
|
...(props.elClasses || []),
|
|
7103
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:
|
|
@@ -7120,25 +7133,25 @@ var FullCalendar = (function (exports) {
|
|
|
7120
7133
|
render() {
|
|
7121
7134
|
let { props } = this;
|
|
7122
7135
|
let { seg } = props;
|
|
7123
|
-
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 }));
|
|
7124
7137
|
}
|
|
7125
7138
|
}
|
|
7126
7139
|
function renderInnerContent$3(props) {
|
|
7127
7140
|
let { title } = props.event;
|
|
7128
|
-
return title && (
|
|
7141
|
+
return title && (y("div", { className: "fc-event-title" }, props.event.title));
|
|
7129
7142
|
}
|
|
7130
7143
|
function renderFill(fillType) {
|
|
7131
|
-
return (
|
|
7144
|
+
return (y("div", { className: `fc-${fillType}` }));
|
|
7132
7145
|
}
|
|
7133
7146
|
|
|
7134
|
-
const WeekNumberContainer = (props) => (
|
|
7147
|
+
const WeekNumberContainer = (props) => (y(ViewContextType.Consumer, null, (context) => {
|
|
7135
7148
|
let { dateEnv, options } = context;
|
|
7136
7149
|
let { date } = props;
|
|
7137
7150
|
let format = options.weekNumberFormat || props.defaultFormat;
|
|
7138
7151
|
let num = dateEnv.computeWeekNumber(date); // TODO: somehow use for formatting as well?
|
|
7139
7152
|
let text = dateEnv.format(date, format);
|
|
7140
7153
|
let renderProps = { num, text, date };
|
|
7141
|
-
return (
|
|
7154
|
+
return (y(ContentContainer // why isn't WeekNumberContentArg being auto-detected?
|
|
7142
7155
|
, Object.assign({}, props /* includes children */, { renderProps: renderProps, generatorName: "weekNumberContent", customGenerator: options.weekNumberContent, defaultGenerator: renderInner, classNameGenerator: options.weekNumberClassNames, didMount: options.weekNumberDidMount, willUnmount: options.weekNumberWillUnmount })));
|
|
7143
7156
|
}));
|
|
7144
7157
|
function renderInner(innerProps) {
|
|
@@ -7185,11 +7198,11 @@ var FullCalendar = (function (exports) {
|
|
|
7185
7198
|
'fc-popover',
|
|
7186
7199
|
theme.getClass('popover'),
|
|
7187
7200
|
].concat(props.extraClassNames || []);
|
|
7188
|
-
return j(
|
|
7189
|
-
|
|
7190
|
-
|
|
7191
|
-
|
|
7192
|
-
|
|
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);
|
|
7193
7206
|
}
|
|
7194
7207
|
componentDidMount() {
|
|
7195
7208
|
document.addEventListener('mousedown', this.handleDocumentMouseDown);
|
|
@@ -7246,8 +7259,8 @@ var FullCalendar = (function (exports) {
|
|
|
7246
7259
|
let { props } = this;
|
|
7247
7260
|
let { startDate, todayRange, dateProfile } = props;
|
|
7248
7261
|
let title = dateEnv.format(startDate, options.dayPopoverFormat);
|
|
7249
|
-
return (
|
|
7250
|
-
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'] })),
|
|
7251
7264
|
props.children))));
|
|
7252
7265
|
}
|
|
7253
7266
|
queryHit(positionLeft, positionTop, elWidth, elHeight) {
|
|
@@ -7256,7 +7269,7 @@ var FullCalendar = (function (exports) {
|
|
|
7256
7269
|
positionTop >= 0 && positionTop < elHeight) {
|
|
7257
7270
|
return {
|
|
7258
7271
|
dateProfile: props.dateProfile,
|
|
7259
|
-
dateSpan: Object.assign({ allDay:
|
|
7272
|
+
dateSpan: Object.assign({ allDay: !props.forceTimed, range: {
|
|
7260
7273
|
start: props.startDate,
|
|
7261
7274
|
end: props.endDate,
|
|
7262
7275
|
} }, props.extraDateSpan),
|
|
@@ -7324,7 +7337,7 @@ var FullCalendar = (function (exports) {
|
|
|
7324
7337
|
}
|
|
7325
7338
|
render() {
|
|
7326
7339
|
let { props, state } = this;
|
|
7327
|
-
return (
|
|
7340
|
+
return (y(ViewContextType.Consumer, null, (context) => {
|
|
7328
7341
|
let { viewApi, options, calendarApi } = context;
|
|
7329
7342
|
let { moreLinkText } = options;
|
|
7330
7343
|
let { moreCnt } = props;
|
|
@@ -7339,14 +7352,14 @@ var FullCalendar = (function (exports) {
|
|
|
7339
7352
|
text,
|
|
7340
7353
|
view: viewApi,
|
|
7341
7354
|
};
|
|
7342
|
-
return (
|
|
7343
|
-
Boolean(props.moreCnt) && (
|
|
7355
|
+
return (y(_, null,
|
|
7356
|
+
Boolean(props.moreCnt) && (y(ContentContainer, { elTag: props.elTag || 'a', elRef: this.handleLinkEl, elClasses: [
|
|
7344
7357
|
...(props.elClasses || []),
|
|
7345
7358
|
'fc-more-link',
|
|
7346
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)),
|
|
7347
|
-
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 ?
|
|
7348
7361
|
props.alignmentElRef.current :
|
|
7349
|
-
this.linkEl, alignGridTop: props.alignGridTop, onClose: this.handlePopoverClose }, props.popoverContent()))));
|
|
7362
|
+
this.linkEl, alignGridTop: props.alignGridTop, forceTimed: props.forceTimed, onClose: this.handlePopoverClose }, props.popoverContent()))));
|
|
7350
7363
|
}));
|
|
7351
7364
|
}
|
|
7352
7365
|
componentDidMount() {
|
|
@@ -7629,22 +7642,19 @@ var FullCalendar = (function (exports) {
|
|
|
7629
7642
|
createPortal: j,
|
|
7630
7643
|
createContext: createContext,
|
|
7631
7644
|
flushSync: flushSync,
|
|
7632
|
-
Component:
|
|
7633
|
-
Fragment:
|
|
7634
|
-
cloneElement:
|
|
7635
|
-
createElement:
|
|
7636
|
-
createRef:
|
|
7637
|
-
h:
|
|
7638
|
-
hydrate:
|
|
7645
|
+
Component: x$1,
|
|
7646
|
+
Fragment: _,
|
|
7647
|
+
cloneElement: F$1,
|
|
7648
|
+
createElement: y,
|
|
7649
|
+
createRef: d,
|
|
7650
|
+
h: y,
|
|
7651
|
+
hydrate: E,
|
|
7639
7652
|
get isValidElement () { return i$1; },
|
|
7640
7653
|
get options () { return l$1; },
|
|
7641
|
-
render:
|
|
7642
|
-
toChildArray:
|
|
7654
|
+
render: D$1,
|
|
7655
|
+
toChildArray: j$2
|
|
7643
7656
|
};
|
|
7644
7657
|
|
|
7645
|
-
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)}";
|
|
7646
|
-
injectStyles(css_248z$4);
|
|
7647
|
-
|
|
7648
7658
|
const globalLocales = [];
|
|
7649
7659
|
|
|
7650
7660
|
const MINIMAL_RAW_EN_LOCALE = {
|
|
@@ -7994,7 +8004,7 @@ var FullCalendar = (function (exports) {
|
|
|
7994
8004
|
};
|
|
7995
8005
|
}
|
|
7996
8006
|
function createViewHookComponent(options) {
|
|
7997
|
-
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 }))));
|
|
7998
8008
|
}
|
|
7999
8009
|
|
|
8000
8010
|
function buildViewSpecs(defaultInputs, optionOverrides, dynamicOptionOverrides, localeDefaults) {
|
|
@@ -9260,7 +9270,7 @@ var FullCalendar = (function (exports) {
|
|
|
9260
9270
|
class ToolbarSection extends BaseComponent {
|
|
9261
9271
|
render() {
|
|
9262
9272
|
let children = this.props.widgetGroups.map((widgetGroup) => this.renderWidgetGroup(widgetGroup));
|
|
9263
|
-
return
|
|
9273
|
+
return y('div', { className: 'fc-toolbar-chunk' }, ...children);
|
|
9264
9274
|
}
|
|
9265
9275
|
renderWidgetGroup(widgetGroup) {
|
|
9266
9276
|
let { props } = this;
|
|
@@ -9271,7 +9281,7 @@ var FullCalendar = (function (exports) {
|
|
|
9271
9281
|
let { buttonName, buttonClick, buttonText, buttonIcon, buttonHint } = widget;
|
|
9272
9282
|
if (buttonName === 'title') {
|
|
9273
9283
|
isOnlyButtons = false;
|
|
9274
|
-
children.push(
|
|
9284
|
+
children.push(y("h2", { className: "fc-toolbar-title", id: props.titleId }, props.title));
|
|
9275
9285
|
}
|
|
9276
9286
|
else {
|
|
9277
9287
|
let isPressed = buttonName === props.activeButton;
|
|
@@ -9282,12 +9292,12 @@ var FullCalendar = (function (exports) {
|
|
|
9282
9292
|
if (isPressed) {
|
|
9283
9293
|
buttonClasses.push(theme.getClass('buttonActive'));
|
|
9284
9294
|
}
|
|
9285
|
-
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 }) : '')));
|
|
9286
9296
|
}
|
|
9287
9297
|
}
|
|
9288
9298
|
if (children.length > 1) {
|
|
9289
9299
|
let groupClassName = (isOnlyButtons && theme.getClass('buttonGroup')) || '';
|
|
9290
|
-
return
|
|
9300
|
+
return y('div', { className: groupClassName }, ...children);
|
|
9291
9301
|
}
|
|
9292
9302
|
return children[0];
|
|
9293
9303
|
}
|
|
@@ -9320,14 +9330,14 @@ var FullCalendar = (function (exports) {
|
|
|
9320
9330
|
'fc-toolbar',
|
|
9321
9331
|
forceLtr ? 'fc-toolbar-ltr' : '',
|
|
9322
9332
|
];
|
|
9323
|
-
return (
|
|
9333
|
+
return (y("div", { className: classNames.join(' ') },
|
|
9324
9334
|
this.renderSection('start', startContent || []),
|
|
9325
9335
|
this.renderSection('center', centerContent || []),
|
|
9326
9336
|
this.renderSection('end', endContent || [])));
|
|
9327
9337
|
}
|
|
9328
9338
|
renderSection(key, widgetGroups) {
|
|
9329
9339
|
let { props } = this;
|
|
9330
|
-
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 }));
|
|
9331
9341
|
}
|
|
9332
9342
|
}
|
|
9333
9343
|
|
|
@@ -9372,7 +9382,7 @@ var FullCalendar = (function (exports) {
|
|
|
9372
9382
|
else {
|
|
9373
9383
|
height = props.height || '';
|
|
9374
9384
|
}
|
|
9375
|
-
return (
|
|
9385
|
+
return (y("div", { "aria-labelledby": props.labeledById, ref: this.handleEl, className: classNames.join(' '), style: { height, paddingBottom } }, props.children));
|
|
9376
9386
|
}
|
|
9377
9387
|
componentDidMount() {
|
|
9378
9388
|
this.context.addResizeHandler(this.handleResize);
|
|
@@ -9473,8 +9483,8 @@ var FullCalendar = (function (exports) {
|
|
|
9473
9483
|
this.buildViewContext = memoize(buildViewContext);
|
|
9474
9484
|
this.buildViewPropTransformers = memoize(buildViewPropTransformers);
|
|
9475
9485
|
this.buildToolbarProps = memoize(buildToolbarProps);
|
|
9476
|
-
this.headerRef =
|
|
9477
|
-
this.footerRef =
|
|
9486
|
+
this.headerRef = d();
|
|
9487
|
+
this.footerRef = d();
|
|
9478
9488
|
this.interactionsStore = {};
|
|
9479
9489
|
// eslint-disable-next-line
|
|
9480
9490
|
this.state = {
|
|
@@ -9545,12 +9555,12 @@ var FullCalendar = (function (exports) {
|
|
|
9545
9555
|
let viewLabelId = (toolbarConfig.header && toolbarConfig.header.hasTitle)
|
|
9546
9556
|
? this.state.viewLabelId
|
|
9547
9557
|
: '';
|
|
9548
|
-
return (
|
|
9549
|
-
toolbarConfig.header && (
|
|
9550
|
-
|
|
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 },
|
|
9551
9561
|
this.renderView(props),
|
|
9552
9562
|
this.buildAppendContent()),
|
|
9553
|
-
toolbarConfig.footer && (
|
|
9563
|
+
toolbarConfig.footer && (y(Toolbar, Object.assign({ ref: this.footerRef, extraClassName: "fc-footer-toolbar", model: toolbarConfig.footer, titleId: "" }, toolbarProps)))));
|
|
9554
9564
|
}
|
|
9555
9565
|
componentDidMount() {
|
|
9556
9566
|
let { props } = this;
|
|
@@ -9582,7 +9592,7 @@ var FullCalendar = (function (exports) {
|
|
|
9582
9592
|
buildAppendContent() {
|
|
9583
9593
|
let { props } = this;
|
|
9584
9594
|
let children = props.pluginHooks.viewContainerAppends.map((buildAppendContent) => buildAppendContent(props));
|
|
9585
|
-
return
|
|
9595
|
+
return y(_, {}, ...children);
|
|
9586
9596
|
}
|
|
9587
9597
|
renderView(props) {
|
|
9588
9598
|
let { pluginHooks } = props;
|
|
@@ -9604,7 +9614,7 @@ var FullCalendar = (function (exports) {
|
|
|
9604
9614
|
Object.assign(viewProps, transformer.transform(viewProps, props));
|
|
9605
9615
|
}
|
|
9606
9616
|
let ViewComponent = viewSpec.component;
|
|
9607
|
-
return (
|
|
9617
|
+
return (y(ViewComponent, Object.assign({}, viewProps)));
|
|
9608
9618
|
}
|
|
9609
9619
|
}
|
|
9610
9620
|
function buildToolbarProps(viewSpec, dateProfile, dateProfileGenerator, currentDate, now, title) {
|
|
@@ -9651,17 +9661,17 @@ var FullCalendar = (function (exports) {
|
|
|
9651
9661
|
this.isRendered = true;
|
|
9652
9662
|
let { currentData } = this;
|
|
9653
9663
|
flushSync(() => {
|
|
9654
|
-
|
|
9664
|
+
D$1(y(CalendarRoot, { options: currentData.calendarOptions, theme: currentData.theme, emitter: currentData.emitter }, (classNames, height, isHeightAuto, forPrint) => {
|
|
9655
9665
|
this.setClassNames(classNames);
|
|
9656
9666
|
this.setHeight(height);
|
|
9657
|
-
return (
|
|
9658
|
-
|
|
9667
|
+
return (y(RenderId.Provider, { value: this.customContentRenderId },
|
|
9668
|
+
y(CalendarContent, Object.assign({ isHeightAuto: isHeightAuto, forPrint: forPrint }, currentData))));
|
|
9659
9669
|
}), this.el);
|
|
9660
9670
|
});
|
|
9661
9671
|
}
|
|
9662
9672
|
else if (this.isRendered) {
|
|
9663
9673
|
this.isRendered = false;
|
|
9664
|
-
|
|
9674
|
+
D$1(null, this.el);
|
|
9665
9675
|
this.setClassNames([]);
|
|
9666
9676
|
this.setHeight('');
|
|
9667
9677
|
}
|
|
@@ -9772,7 +9782,7 @@ var FullCalendar = (function (exports) {
|
|
|
9772
9782
|
return sliceEventStore(props.eventStore, props.eventUiBases, props.dateProfile.activeRange, allDay ? props.nextDayThreshold : null).fg;
|
|
9773
9783
|
}
|
|
9774
9784
|
|
|
9775
|
-
const version = '6.1.
|
|
9785
|
+
const version = '6.1.5';
|
|
9776
9786
|
|
|
9777
9787
|
config.touchMouseIgnoreWait = 500;
|
|
9778
9788
|
let ignoreMouseDepth = 0;
|
|
@@ -10148,7 +10158,7 @@ var FullCalendar = (function (exports) {
|
|
|
10148
10158
|
mirrorEl = this.mirrorEl = this.sourceEl.cloneNode(true); // cloneChildren=true
|
|
10149
10159
|
// we don't want long taps or any mouse interaction causing selection/menus.
|
|
10150
10160
|
// would use preventSelection(), but that prevents selectstart, causing problems.
|
|
10151
|
-
mirrorEl.
|
|
10161
|
+
mirrorEl.style.userSelect = 'none';
|
|
10152
10162
|
mirrorEl.classList.add('fc-event-dragging');
|
|
10153
10163
|
applyStyle(mirrorEl, {
|
|
10154
10164
|
position: 'fixed',
|
|
@@ -11876,7 +11886,7 @@ var FullCalendar = (function (exports) {
|
|
|
11876
11886
|
class TableView extends DateComponent {
|
|
11877
11887
|
constructor() {
|
|
11878
11888
|
super(...arguments);
|
|
11879
|
-
this.headerElRef =
|
|
11889
|
+
this.headerElRef = d();
|
|
11880
11890
|
}
|
|
11881
11891
|
renderSimpleLayout(headerRowContent, bodyContent) {
|
|
11882
11892
|
let { props, context } = this;
|
|
@@ -11900,8 +11910,8 @@ var FullCalendar = (function (exports) {
|
|
|
11900
11910
|
liquid: true,
|
|
11901
11911
|
chunk: { content: bodyContent },
|
|
11902
11912
|
});
|
|
11903
|
-
return (
|
|
11904
|
-
|
|
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 })));
|
|
11905
11915
|
}
|
|
11906
11916
|
renderHScrollLayout(headerRowContent, bodyContent, colCnt, dayMinWidth) {
|
|
11907
11917
|
let ScrollGrid = this.context.pluginHooks.scrollGridImpl;
|
|
@@ -11945,8 +11955,8 @@ var FullCalendar = (function (exports) {
|
|
|
11945
11955
|
}],
|
|
11946
11956
|
});
|
|
11947
11957
|
}
|
|
11948
|
-
return (
|
|
11949
|
-
|
|
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 })));
|
|
11950
11960
|
}
|
|
11951
11961
|
}
|
|
11952
11962
|
|
|
@@ -12011,7 +12021,7 @@ var FullCalendar = (function (exports) {
|
|
|
12011
12021
|
class TableBlockEvent extends BaseComponent {
|
|
12012
12022
|
render() {
|
|
12013
12023
|
let { props } = this;
|
|
12014
|
-
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 })));
|
|
12015
12025
|
}
|
|
12016
12026
|
}
|
|
12017
12027
|
|
|
@@ -12022,14 +12032,14 @@ var FullCalendar = (function (exports) {
|
|
|
12022
12032
|
let { seg } = props;
|
|
12023
12033
|
let timeFormat = options.eventTimeFormat || DEFAULT_TABLE_EVENT_TIME_FORMAT;
|
|
12024
12034
|
let timeText = buildSegTimeText(seg, timeFormat, context, true, props.defaultDisplayEventEnd);
|
|
12025
|
-
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 })));
|
|
12026
12036
|
}
|
|
12027
12037
|
}
|
|
12028
12038
|
function renderInnerContent$2(renderProps) {
|
|
12029
|
-
return (
|
|
12030
|
-
|
|
12031
|
-
renderProps.timeText && (
|
|
12032
|
-
|
|
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"))));
|
|
12033
12043
|
}
|
|
12034
12044
|
|
|
12035
12045
|
class TableCellMoreLink extends BaseComponent {
|
|
@@ -12040,15 +12050,15 @@ var FullCalendar = (function (exports) {
|
|
|
12040
12050
|
render() {
|
|
12041
12051
|
let { props } = this;
|
|
12042
12052
|
let { allSegs, invisibleSegs } = this.compileSegs(props.singlePlacements);
|
|
12043
|
-
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: () => {
|
|
12044
12054
|
let isForcedInvisible = (props.eventDrag ? props.eventDrag.affectedInstances : null) ||
|
|
12045
12055
|
(props.eventResize ? props.eventResize.affectedInstances : null) ||
|
|
12046
12056
|
{};
|
|
12047
|
-
return (
|
|
12057
|
+
return (y(_, null, allSegs.map((seg) => {
|
|
12048
12058
|
let instanceId = seg.eventRange.instance.instanceId;
|
|
12049
|
-
return (
|
|
12059
|
+
return (y("div", { className: "fc-daygrid-event-harness", key: instanceId, style: {
|
|
12050
12060
|
visibility: isForcedInvisible[instanceId] ? 'hidden' : '',
|
|
12051
|
-
} }, 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))))));
|
|
12052
12062
|
})));
|
|
12053
12063
|
} }));
|
|
12054
12064
|
}
|
|
@@ -12069,7 +12079,7 @@ var FullCalendar = (function (exports) {
|
|
|
12069
12079
|
class TableCell extends DateComponent {
|
|
12070
12080
|
constructor() {
|
|
12071
12081
|
super(...arguments);
|
|
12072
|
-
this.rootElRef =
|
|
12082
|
+
this.rootElRef = d();
|
|
12073
12083
|
this.state = {
|
|
12074
12084
|
dayNumberId: getUniqueDomId(),
|
|
12075
12085
|
};
|
|
@@ -12080,40 +12090,49 @@ var FullCalendar = (function (exports) {
|
|
|
12080
12090
|
}
|
|
12081
12091
|
render() {
|
|
12082
12092
|
let { context, props, state, rootElRef } = this;
|
|
12083
|
-
let { options } = context;
|
|
12093
|
+
let { options, dateEnv } = context;
|
|
12084
12094
|
let { date, dateProfile } = props;
|
|
12085
12095
|
// TODO: memoize this?
|
|
12086
|
-
const { currentRange } = dateProfile;
|
|
12087
12096
|
const isMonthStart = props.showDayNumber &&
|
|
12088
|
-
|
|
12089
|
-
|
|
12090
|
-
// first date in current view?
|
|
12091
|
-
date.valueOf() === currentRange.start.valueOf() ||
|
|
12092
|
-
// a month-start that's within the current range?
|
|
12093
|
-
(date.getUTCDate() === 1 && date.valueOf() < currentRange.end.valueOf()));
|
|
12094
|
-
return (h(DayCellContainer, { elTag: "td", elRef: this.handleRootEl, elClasses: [
|
|
12097
|
+
shouldDisplayMonthStart(date, dateProfile.currentRange, dateEnv);
|
|
12098
|
+
return (y(DayCellContainer, { elTag: "td", elRef: this.handleRootEl, elClasses: [
|
|
12095
12099
|
'fc-daygrid-day',
|
|
12096
12100
|
...(props.extraClassNames || []),
|
|
12097
|
-
], 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) => (
|
|
12098
|
-
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 })),
|
|
12099
12103
|
!renderProps.isDisabled &&
|
|
12100
|
-
(props.showDayNumber || hasCustomDayCellContent(options) || props.forceDayTop) ? (
|
|
12101
|
-
|
|
12104
|
+
(props.showDayNumber || hasCustomDayCellContent(options) || props.forceDayTop) ? (y("div", { className: "fc-daygrid-day-top" },
|
|
12105
|
+
y(InnerContent, { elTag: "a", elClasses: [
|
|
12102
12106
|
'fc-daygrid-day-number',
|
|
12103
12107
|
isMonthStart && 'fc-daygrid-month-start',
|
|
12104
12108
|
], elAttrs: Object.assign(Object.assign({}, buildNavLinkAttrs(context, date)), { id: state.dayNumberId }) }))) : props.showDayNumber ? (
|
|
12105
12109
|
// for creating correct amount of space (see issue #7162)
|
|
12106
|
-
|
|
12107
|
-
|
|
12108
|
-
|
|
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 },
|
|
12109
12113
|
props.fgContent,
|
|
12110
|
-
|
|
12111
|
-
|
|
12112
|
-
|
|
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)))));
|
|
12113
12117
|
}
|
|
12114
12118
|
}
|
|
12115
12119
|
function renderTopInner(props) {
|
|
12116
|
-
return props.dayNumberText ||
|
|
12120
|
+
return props.dayNumberText || y(_, null, "\u00A0");
|
|
12121
|
+
}
|
|
12122
|
+
function shouldDisplayMonthStart(date, currentRange, dateEnv) {
|
|
12123
|
+
const { start: currentStart, end: currentEnd } = currentRange;
|
|
12124
|
+
const currentEndIncl = addMs(currentEnd, -1);
|
|
12125
|
+
const currentFirstYear = dateEnv.getYear(currentStart);
|
|
12126
|
+
const currentFirstMonth = dateEnv.getMonth(currentStart);
|
|
12127
|
+
const currentLastYear = dateEnv.getYear(currentEndIncl);
|
|
12128
|
+
const currentLastMonth = dateEnv.getMonth(currentEndIncl);
|
|
12129
|
+
// spans more than one month?
|
|
12130
|
+
return !(currentFirstYear === currentLastYear && currentFirstMonth === currentLastMonth) &&
|
|
12131
|
+
Boolean(
|
|
12132
|
+
// first date in current view?
|
|
12133
|
+
date.valueOf() === currentStart.valueOf() ||
|
|
12134
|
+
// a month-start that's within the current range?
|
|
12135
|
+
(dateEnv.getDay(date) === 1 && date.valueOf() < currentEnd.valueOf()));
|
|
12117
12136
|
}
|
|
12118
12137
|
|
|
12119
12138
|
function computeFgSegPlacement(segs, // assumed already sorted
|
|
@@ -12348,7 +12367,7 @@ var FullCalendar = (function (exports) {
|
|
|
12348
12367
|
this.frameElRefs = new RefMap(); // the fc-daygrid-day-frame
|
|
12349
12368
|
this.fgElRefs = new RefMap(); // the fc-daygrid-day-events
|
|
12350
12369
|
this.segHarnessRefs = new RefMap(); // indexed by "instanceId:firstCol"
|
|
12351
|
-
this.rootElRef =
|
|
12370
|
+
this.rootElRef = d();
|
|
12352
12371
|
this.state = {
|
|
12353
12372
|
framePositions: null,
|
|
12354
12373
|
maxContentHeight: null,
|
|
@@ -12373,16 +12392,16 @@ var FullCalendar = (function (exports) {
|
|
|
12373
12392
|
(props.eventDrag && props.eventDrag.affectedInstances) ||
|
|
12374
12393
|
(props.eventResize && props.eventResize.affectedInstances) ||
|
|
12375
12394
|
{};
|
|
12376
|
-
return (
|
|
12395
|
+
return (y("tr", { ref: this.rootElRef, role: "row" },
|
|
12377
12396
|
props.renderIntro && props.renderIntro(),
|
|
12378
12397
|
props.cells.map((cell, col) => {
|
|
12379
12398
|
let normalFgNodes = this.renderFgSegs(col, props.forPrint ? singleColPlacements[col] : multiColPlacements[col], props.todayRange, isForcedInvisible);
|
|
12380
12399
|
let mirrorFgNodes = this.renderFgSegs(col, buildMirrorPlacements(mirrorSegsByCol[col], multiColPlacements), props.todayRange, {}, Boolean(props.eventDrag), Boolean(props.eventResize), false);
|
|
12381
|
-
return (
|
|
12382
|
-
|
|
12383
|
-
|
|
12384
|
-
|
|
12385
|
-
|
|
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,
|
|
12386
12405
|
this.renderFillSegs(highlightSegsByCol[col], 'highlight'),
|
|
12387
12406
|
this.renderFillSegs(businessHoursByCol[col], 'non-business'),
|
|
12388
12407
|
this.renderFillSegs(bgEventSegsByCol[col], 'bg-event'))), minHeight: props.cellMinHeight }));
|
|
@@ -12446,13 +12465,13 @@ var FullCalendar = (function (exports) {
|
|
|
12446
12465
|
known bug: events that are force to be list-item but span multiple days still take up space in later columns
|
|
12447
12466
|
todo: in print view, for multi-day events, don't display title within non-start/end segs
|
|
12448
12467
|
*/
|
|
12449
|
-
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: {
|
|
12450
12469
|
visibility: isVisible ? '' : 'hidden',
|
|
12451
12470
|
marginTop: isAbsolute ? '' : placement.marginTop,
|
|
12452
12471
|
top: isAbsolute ? placement.absoluteTop : '',
|
|
12453
12472
|
left,
|
|
12454
12473
|
right,
|
|
12455
|
-
} }, 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))))));
|
|
12456
12475
|
}
|
|
12457
12476
|
}
|
|
12458
12477
|
return nodes;
|
|
@@ -12471,12 +12490,12 @@ var FullCalendar = (function (exports) {
|
|
|
12471
12490
|
left: 0,
|
|
12472
12491
|
right: framePositions.rights[seg.firstCol] - framePositions.rights[seg.lastCol],
|
|
12473
12492
|
};
|
|
12474
|
-
nodes.push(
|
|
12475
|
-
|
|
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))) :
|
|
12476
12495
|
renderFill(fillType)));
|
|
12477
12496
|
}
|
|
12478
12497
|
}
|
|
12479
|
-
return
|
|
12498
|
+
return y(_, {}, ...nodes);
|
|
12480
12499
|
}
|
|
12481
12500
|
updateSizing(isExternalSizingChange) {
|
|
12482
12501
|
let { props, state, frameElRefs } = this;
|
|
@@ -12582,7 +12601,7 @@ var FullCalendar = (function (exports) {
|
|
|
12582
12601
|
let cellMinHeight = (rowCnt >= 7 && props.clientWidth) ?
|
|
12583
12602
|
props.clientWidth / context.options.aspectRatio / 6 :
|
|
12584
12603
|
null;
|
|
12585
|
-
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
|
|
12586
12605
|
? cells[0].date.toISOString() /* best? or put key on cell? or use diff formatter? */
|
|
12587
12606
|
: row // in case there are no cells (like when resource view is loading)
|
|
12588
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 })))))));
|
|
@@ -12651,7 +12670,7 @@ var FullCalendar = (function (exports) {
|
|
|
12651
12670
|
class Table extends DateComponent {
|
|
12652
12671
|
constructor() {
|
|
12653
12672
|
super(...arguments);
|
|
12654
|
-
this.elRef =
|
|
12673
|
+
this.elRef = d();
|
|
12655
12674
|
this.needsScrollReset = false;
|
|
12656
12675
|
}
|
|
12657
12676
|
render() {
|
|
@@ -12670,20 +12689,20 @@ var FullCalendar = (function (exports) {
|
|
|
12670
12689
|
limitViaBalanced ? 'fc-daygrid-body-balanced' : 'fc-daygrid-body-unbalanced',
|
|
12671
12690
|
expandRows ? '' : 'fc-daygrid-body-natural', // will height of one row depend on the others?
|
|
12672
12691
|
];
|
|
12673
|
-
return (
|
|
12692
|
+
return (y("div", { ref: this.elRef, className: classNames.join(' '), style: {
|
|
12674
12693
|
// these props are important to give this wrapper correct dimensions for interactions
|
|
12675
12694
|
// TODO: if we set it here, can we avoid giving to inner tables?
|
|
12676
12695
|
width: props.clientWidth,
|
|
12677
12696
|
minWidth: props.tableMinWidth,
|
|
12678
12697
|
} },
|
|
12679
|
-
|
|
12698
|
+
y("table", { role: "presentation", className: "fc-scrollgrid-sync-table", style: {
|
|
12680
12699
|
width: props.clientWidth,
|
|
12681
12700
|
minWidth: props.tableMinWidth,
|
|
12682
12701
|
height: expandRows ? props.clientHeight : '',
|
|
12683
12702
|
} },
|
|
12684
12703
|
props.colGroupNode,
|
|
12685
|
-
|
|
12686
|
-
|
|
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 })))));
|
|
12687
12706
|
}
|
|
12688
12707
|
componentDidMount() {
|
|
12689
12708
|
this.requestScrollReset();
|
|
@@ -12743,11 +12762,11 @@ var FullCalendar = (function (exports) {
|
|
|
12743
12762
|
constructor() {
|
|
12744
12763
|
super(...arguments);
|
|
12745
12764
|
this.slicer = new DayTableSlicer();
|
|
12746
|
-
this.tableRef =
|
|
12765
|
+
this.tableRef = d();
|
|
12747
12766
|
}
|
|
12748
12767
|
render() {
|
|
12749
12768
|
let { props, context } = this;
|
|
12750
|
-
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 })));
|
|
12751
12770
|
}
|
|
12752
12771
|
}
|
|
12753
12772
|
|
|
@@ -12755,16 +12774,16 @@ var FullCalendar = (function (exports) {
|
|
|
12755
12774
|
constructor() {
|
|
12756
12775
|
super(...arguments);
|
|
12757
12776
|
this.buildDayTableModel = memoize(buildDayTableModel);
|
|
12758
|
-
this.headerRef =
|
|
12759
|
-
this.tableRef =
|
|
12777
|
+
this.headerRef = d();
|
|
12778
|
+
this.tableRef = d();
|
|
12760
12779
|
// can't override any lifecycle methods from parent
|
|
12761
12780
|
}
|
|
12762
12781
|
render() {
|
|
12763
12782
|
let { options, dateProfileGenerator } = this.context;
|
|
12764
12783
|
let { props } = this;
|
|
12765
12784
|
let dayTableModel = this.buildDayTableModel(props.dateProfile, dateProfileGenerator);
|
|
12766
|
-
let headerContent = options.dayHeaders && (
|
|
12767
|
-
let bodyContent = (contentArg) => (
|
|
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 }));
|
|
12768
12787
|
return options.dayMinWidth
|
|
12769
12788
|
? this.renderHScrollLayout(headerContent, bodyContent, dayTableModel.colCnt, options.dayMinWidth)
|
|
12770
12789
|
: this.renderSimpleLayout(headerContent, bodyContent);
|
|
@@ -12880,9 +12899,9 @@ var FullCalendar = (function (exports) {
|
|
|
12880
12899
|
'fc-timegrid-slot-label',
|
|
12881
12900
|
props.isLabeled ? 'fc-scrollgrid-shrink' : 'fc-timegrid-slot-minor',
|
|
12882
12901
|
];
|
|
12883
|
-
return (
|
|
12902
|
+
return (y(ViewContextType.Consumer, null, (context) => {
|
|
12884
12903
|
if (!props.isLabeled) {
|
|
12885
|
-
return (
|
|
12904
|
+
return (y("td", { className: classNames.join(' '), "data-time": props.isoTimeStr }));
|
|
12886
12905
|
}
|
|
12887
12906
|
let { dateEnv, options, viewApi } = context;
|
|
12888
12907
|
let labelFormat = // TODO: fully pre-parse
|
|
@@ -12896,10 +12915,10 @@ var FullCalendar = (function (exports) {
|
|
|
12896
12915
|
view: viewApi,
|
|
12897
12916
|
text: dateEnv.format(props.date, labelFormat),
|
|
12898
12917
|
};
|
|
12899
|
-
return (
|
|
12918
|
+
return (y(ContentContainer, { elTag: "td", elClasses: classNames, elAttrs: {
|
|
12900
12919
|
'data-time': props.isoTimeStr,
|
|
12901
|
-
}, renderProps: renderProps, generatorName: "slotLabelContent", customGenerator: options.slotLabelContent, defaultGenerator: renderInnerContent$1, classNameGenerator: options.slotLabelClassNames, didMount: options.slotLabelDidMount, willUnmount: options.slotLabelWillUnmount }, (InnerContent) => (
|
|
12902
|
-
|
|
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: [
|
|
12903
12922
|
'fc-timegrid-slot-label-cushion',
|
|
12904
12923
|
'fc-scrollgrid-shrink-cushion',
|
|
12905
12924
|
] })))));
|
|
@@ -12911,8 +12930,8 @@ var FullCalendar = (function (exports) {
|
|
|
12911
12930
|
|
|
12912
12931
|
class TimeBodyAxis extends BaseComponent {
|
|
12913
12932
|
render() {
|
|
12914
|
-
return this.props.slatMetas.map((slatMeta) => (
|
|
12915
|
-
|
|
12933
|
+
return this.props.slatMetas.map((slatMeta) => (y("tr", { key: slatMeta.key },
|
|
12934
|
+
y(TimeColsAxisCell, Object.assign({}, slatMeta)))));
|
|
12916
12935
|
}
|
|
12917
12936
|
}
|
|
12918
12937
|
|
|
@@ -12922,9 +12941,9 @@ var FullCalendar = (function (exports) {
|
|
|
12922
12941
|
constructor() {
|
|
12923
12942
|
super(...arguments);
|
|
12924
12943
|
this.allDaySplitter = new AllDaySplitter(); // for use by subclasses
|
|
12925
|
-
this.headerElRef =
|
|
12926
|
-
this.rootElRef =
|
|
12927
|
-
this.scrollerElRef =
|
|
12944
|
+
this.headerElRef = d();
|
|
12945
|
+
this.rootElRef = d();
|
|
12946
|
+
this.scrollerElRef = d();
|
|
12928
12947
|
this.state = {
|
|
12929
12948
|
slatCoords: null,
|
|
12930
12949
|
};
|
|
@@ -12946,24 +12965,24 @@ var FullCalendar = (function (exports) {
|
|
|
12946
12965
|
? buildNavLinkAttrs(this.context, range.start, 'week')
|
|
12947
12966
|
: {};
|
|
12948
12967
|
if (options.weekNumbers && rowKey === 'day') {
|
|
12949
|
-
return (
|
|
12968
|
+
return (y(WeekNumberContainer, { elTag: "th", elClasses: [
|
|
12950
12969
|
'fc-timegrid-axis',
|
|
12951
12970
|
'fc-scrollgrid-shrink',
|
|
12952
12971
|
], elAttrs: {
|
|
12953
12972
|
'aria-hidden': true,
|
|
12954
|
-
}, date: range.start, defaultFormat: DEFAULT_WEEK_NUM_FORMAT }, (InnerContent) => (
|
|
12973
|
+
}, date: range.start, defaultFormat: DEFAULT_WEEK_NUM_FORMAT }, (InnerContent) => (y("div", { className: [
|
|
12955
12974
|
'fc-timegrid-axis-frame',
|
|
12956
12975
|
'fc-scrollgrid-shrink-frame',
|
|
12957
12976
|
'fc-timegrid-axis-frame-liquid',
|
|
12958
12977
|
].join(' '), style: { height: frameHeight } },
|
|
12959
|
-
|
|
12978
|
+
y(InnerContent, { elTag: "a", elClasses: [
|
|
12960
12979
|
'fc-timegrid-axis-cushion',
|
|
12961
12980
|
'fc-scrollgrid-shrink-cushion',
|
|
12962
12981
|
'fc-scrollgrid-sync-inner',
|
|
12963
12982
|
], elAttrs: navLinkAttrs })))));
|
|
12964
12983
|
}
|
|
12965
|
-
return (
|
|
12966
|
-
|
|
12984
|
+
return (y("th", { "aria-hidden": true, className: "fc-timegrid-axis" },
|
|
12985
|
+
y("div", { className: "fc-timegrid-axis-frame", style: { height: frameHeight } })));
|
|
12967
12986
|
};
|
|
12968
12987
|
/* Table Component Render Methods
|
|
12969
12988
|
------------------------------------------------------------------------------------------------------------------*/
|
|
@@ -12977,17 +12996,17 @@ var FullCalendar = (function (exports) {
|
|
|
12977
12996
|
};
|
|
12978
12997
|
return (
|
|
12979
12998
|
// TODO: make reusable hook. used in list view too
|
|
12980
|
-
|
|
12999
|
+
y(ContentContainer, { elTag: "td", elClasses: [
|
|
12981
13000
|
'fc-timegrid-axis',
|
|
12982
13001
|
'fc-scrollgrid-shrink',
|
|
12983
13002
|
], elAttrs: {
|
|
12984
13003
|
'aria-hidden': true,
|
|
12985
|
-
}, 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: [
|
|
12986
13005
|
'fc-timegrid-axis-frame',
|
|
12987
13006
|
'fc-scrollgrid-shrink-frame',
|
|
12988
13007
|
rowHeight == null ? ' fc-timegrid-axis-frame-liquid' : '',
|
|
12989
13008
|
].join(' '), style: { height: rowHeight } },
|
|
12990
|
-
|
|
13009
|
+
y(InnerContent, { elTag: "span", elClasses: [
|
|
12991
13010
|
'fc-timegrid-axis-cushion',
|
|
12992
13011
|
'fc-scrollgrid-shrink-cushion',
|
|
12993
13012
|
'fc-scrollgrid-sync-inner',
|
|
@@ -13025,8 +13044,8 @@ var FullCalendar = (function (exports) {
|
|
|
13025
13044
|
type: 'body',
|
|
13026
13045
|
key: 'all-day-divider',
|
|
13027
13046
|
outerContent: ( // TODO: rename to cellContent so don't need to define <tr>?
|
|
13028
|
-
|
|
13029
|
-
|
|
13047
|
+
y("tr", { role: "presentation", className: "fc-scrollgrid-section" },
|
|
13048
|
+
y("td", { className: 'fc-timegrid-divider ' + context.theme.getClass('tableCellShaded') }))),
|
|
13030
13049
|
});
|
|
13031
13050
|
}
|
|
13032
13051
|
sections.push({
|
|
@@ -13039,8 +13058,8 @@ var FullCalendar = (function (exports) {
|
|
|
13039
13058
|
content: timeContent,
|
|
13040
13059
|
},
|
|
13041
13060
|
});
|
|
13042
|
-
return (
|
|
13043
|
-
|
|
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 })));
|
|
13044
13063
|
}
|
|
13045
13064
|
renderHScrollLayout(headerRowContent, allDayContent, timeContent, colCnt, dayMinWidth, slatMetas, slatCoords) {
|
|
13046
13065
|
let ScrollGrid = this.context.pluginHooks.scrollGridImpl;
|
|
@@ -13060,7 +13079,7 @@ var FullCalendar = (function (exports) {
|
|
|
13060
13079
|
chunks: [
|
|
13061
13080
|
{
|
|
13062
13081
|
key: 'axis',
|
|
13063
|
-
rowContent: (arg) => (
|
|
13082
|
+
rowContent: (arg) => (y("tr", { role: "presentation" }, this.renderHeadAxis('day', arg.rowSyncHeights[0]))),
|
|
13064
13083
|
},
|
|
13065
13084
|
{
|
|
13066
13085
|
key: 'cols',
|
|
@@ -13079,7 +13098,7 @@ var FullCalendar = (function (exports) {
|
|
|
13079
13098
|
chunks: [
|
|
13080
13099
|
{
|
|
13081
13100
|
key: 'axis',
|
|
13082
|
-
rowContent: (contentArg) => (
|
|
13101
|
+
rowContent: (contentArg) => (y("tr", { role: "presentation" }, this.renderTableRowAxis(contentArg.rowSyncHeights[0]))),
|
|
13083
13102
|
},
|
|
13084
13103
|
{
|
|
13085
13104
|
key: 'cols',
|
|
@@ -13091,8 +13110,8 @@ var FullCalendar = (function (exports) {
|
|
|
13091
13110
|
key: 'all-day-divider',
|
|
13092
13111
|
type: 'body',
|
|
13093
13112
|
outerContent: ( // TODO: rename to cellContent so don't need to define <tr>?
|
|
13094
|
-
|
|
13095
|
-
|
|
13113
|
+
y("tr", { role: "presentation", className: "fc-scrollgrid-section" },
|
|
13114
|
+
y("td", { colSpan: 2, className: 'fc-timegrid-divider ' + context.theme.getClass('tableCellShaded') }))),
|
|
13096
13115
|
});
|
|
13097
13116
|
}
|
|
13098
13117
|
let isNowIndicator = context.options.nowIndicator;
|
|
@@ -13106,18 +13125,18 @@ var FullCalendar = (function (exports) {
|
|
|
13106
13125
|
key: 'axis',
|
|
13107
13126
|
content: (arg) => (
|
|
13108
13127
|
// TODO: make this now-indicator arrow more DRY with TimeColsContent
|
|
13109
|
-
|
|
13110
|
-
|
|
13128
|
+
y("div", { className: "fc-timegrid-axis-chunk" },
|
|
13129
|
+
y("table", { "aria-hidden": true, style: { height: arg.expandRows ? arg.clientHeight : '' } },
|
|
13111
13130
|
arg.tableColGroupNode,
|
|
13112
|
-
|
|
13113
|
-
|
|
13114
|
-
|
|
13115
|
-
|
|
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) => {
|
|
13116
13135
|
let nowIndicatorTop = isNowIndicator &&
|
|
13117
13136
|
slatCoords &&
|
|
13118
13137
|
slatCoords.safeComputeTop(nowDate); // might return void
|
|
13119
13138
|
if (typeof nowIndicatorTop === 'number') {
|
|
13120
|
-
return (
|
|
13139
|
+
return (y(NowIndicatorContainer, { elClasses: ['fc-timegrid-now-indicator-arrow'], elStyle: { top: nowIndicatorTop }, isAxis: true, date: nowDate }));
|
|
13121
13140
|
}
|
|
13122
13141
|
return null;
|
|
13123
13142
|
})))),
|
|
@@ -13146,8 +13165,8 @@ var FullCalendar = (function (exports) {
|
|
|
13146
13165
|
],
|
|
13147
13166
|
});
|
|
13148
13167
|
}
|
|
13149
|
-
return (
|
|
13150
|
-
|
|
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: [
|
|
13151
13170
|
{ width: 'shrink', cols: [{ width: 'shrink' }] },
|
|
13152
13171
|
{ cols: [{ span: colCnt, minWidth: dayMinWidth }] },
|
|
13153
13172
|
], sections: sections })));
|
|
@@ -13225,15 +13244,15 @@ var FullCalendar = (function (exports) {
|
|
|
13225
13244
|
let { props, context } = this;
|
|
13226
13245
|
let { options } = context;
|
|
13227
13246
|
let { slatElRefs } = props;
|
|
13228
|
-
return (
|
|
13247
|
+
return (y("tbody", null, props.slatMetas.map((slatMeta, i) => {
|
|
13229
13248
|
let renderProps = {
|
|
13230
13249
|
time: slatMeta.time,
|
|
13231
13250
|
date: context.dateEnv.toDate(slatMeta.date),
|
|
13232
13251
|
view: context.viewApi,
|
|
13233
13252
|
};
|
|
13234
|
-
return (
|
|
13235
|
-
props.axis && (
|
|
13236
|
-
|
|
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: [
|
|
13237
13256
|
'fc-timegrid-slot',
|
|
13238
13257
|
'fc-timegrid-slot-lane',
|
|
13239
13258
|
!slatMeta.isLabeled && 'fc-timegrid-slot-minor',
|
|
@@ -13250,19 +13269,19 @@ var FullCalendar = (function (exports) {
|
|
|
13250
13269
|
class TimeColsSlats extends BaseComponent {
|
|
13251
13270
|
constructor() {
|
|
13252
13271
|
super(...arguments);
|
|
13253
|
-
this.rootElRef =
|
|
13272
|
+
this.rootElRef = d();
|
|
13254
13273
|
this.slatElRefs = new RefMap();
|
|
13255
13274
|
}
|
|
13256
13275
|
render() {
|
|
13257
13276
|
let { props, context } = this;
|
|
13258
|
-
return (
|
|
13259
|
-
|
|
13277
|
+
return (y("div", { ref: this.rootElRef, className: "fc-timegrid-slots" },
|
|
13278
|
+
y("table", { "aria-hidden": true, className: context.theme.getClass('table'), style: {
|
|
13260
13279
|
minWidth: props.tableMinWidth,
|
|
13261
13280
|
width: props.clientWidth,
|
|
13262
13281
|
height: props.minHeight,
|
|
13263
13282
|
} },
|
|
13264
13283
|
props.tableColGroupNode /* relies on there only being a single <col> for the axis */,
|
|
13265
|
-
|
|
13284
|
+
y(TimeColsSlatsBody, { slatElRefs: this.slatElRefs, axis: props.axis, slatMetas: props.slatMetas }))));
|
|
13266
13285
|
}
|
|
13267
13286
|
componentDidMount() {
|
|
13268
13287
|
this.updateSizing();
|
|
@@ -13329,10 +13348,10 @@ var FullCalendar = (function (exports) {
|
|
|
13329
13348
|
class TimeColMoreLink extends BaseComponent {
|
|
13330
13349
|
render() {
|
|
13331
13350
|
let { props } = this;
|
|
13332
|
-
return (
|
|
13351
|
+
return (y(MoreLinkContainer, { elClasses: ['fc-timegrid-more-link'], elStyle: {
|
|
13333
13352
|
top: props.top,
|
|
13334
13353
|
bottom: props.bottom,
|
|
13335
|
-
}, 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'] }))));
|
|
13336
13355
|
}
|
|
13337
13356
|
}
|
|
13338
13357
|
function renderMoreLinkInner(props) {
|
|
@@ -13531,7 +13550,7 @@ var FullCalendar = (function (exports) {
|
|
|
13531
13550
|
});
|
|
13532
13551
|
class TimeColEvent extends BaseComponent {
|
|
13533
13552
|
render() {
|
|
13534
|
-
return (
|
|
13553
|
+
return (y(StandardEvent, Object.assign({}, this.props, { elClasses: [
|
|
13535
13554
|
'fc-timegrid-event',
|
|
13536
13555
|
'fc-v-event',
|
|
13537
13556
|
this.props.isShort && 'fc-timegrid-event-short',
|
|
@@ -13559,18 +13578,18 @@ var FullCalendar = (function (exports) {
|
|
|
13559
13578
|
(props.eventResize && props.eventResize.affectedInstances) ||
|
|
13560
13579
|
{};
|
|
13561
13580
|
let sortedFgSegs = this.sortEventSegs(props.fgEventSegs, options.eventOrder);
|
|
13562
|
-
return (
|
|
13581
|
+
return (y(DayCellContainer, { elTag: "td", elRef: props.elRef, elClasses: [
|
|
13563
13582
|
'fc-timegrid-col',
|
|
13564
13583
|
...(props.extraClassNames || []),
|
|
13565
|
-
], elAttrs: Object.assign({ role: 'gridcell' }, props.extraDataAttrs), date: props.date, dateProfile: props.dateProfile, todayRange: props.todayRange, extraRenderProps: props.extraRenderProps }, (InnerContent) => (
|
|
13566
|
-
|
|
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" },
|
|
13567
13586
|
this.renderFillSegs(props.businessHourSegs, 'non-business'),
|
|
13568
13587
|
this.renderFillSegs(props.bgEventSegs, 'bg-event'),
|
|
13569
13588
|
this.renderFillSegs(props.dateSelectionSegs, 'highlight')),
|
|
13570
|
-
|
|
13571
|
-
|
|
13572
|
-
|
|
13573
|
-
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'] }))))));
|
|
13574
13593
|
}
|
|
13575
13594
|
renderFgSegs(sortedFgSegs, segIsInvisible, isDragging, isResizing, isDateSelecting) {
|
|
13576
13595
|
let { props } = this;
|
|
@@ -13586,7 +13605,7 @@ var FullCalendar = (function (exports) {
|
|
|
13586
13605
|
let isMirror = isDragging || isResizing || isDateSelecting;
|
|
13587
13606
|
let segVCoords = computeSegVCoords(segs, date, slatCoords, eventMinHeight);
|
|
13588
13607
|
let { segPlacements, hiddenGroups } = computeFgSegPlacements(segs, segVCoords, eventOrderStrict, eventMaxStack);
|
|
13589
|
-
return (
|
|
13608
|
+
return (y(_, null,
|
|
13590
13609
|
this.renderHiddenGroups(hiddenGroups, segs),
|
|
13591
13610
|
segPlacements.map((segPlacement) => {
|
|
13592
13611
|
let { seg, rect } = segPlacement;
|
|
@@ -13596,18 +13615,18 @@ var FullCalendar = (function (exports) {
|
|
|
13596
13615
|
let hStyle = (!isMirror && rect) ? this.computeSegHStyle(rect) : { left: 0, right: 0 };
|
|
13597
13616
|
let isInset = Boolean(rect) && rect.stackForward > 0;
|
|
13598
13617
|
let isShort = Boolean(rect) && (rect.span.end - rect.span.start) < eventShortHeight; // look at other places for this problem
|
|
13599
|
-
return (
|
|
13618
|
+
return (y("div", { className: 'fc-timegrid-event-harness' +
|
|
13600
13619
|
(isInset ? ' fc-timegrid-event-harness-inset' : ''), key: instanceId, style: Object.assign(Object.assign({ visibility: isVisible ? '' : 'hidden' }, vStyle), hStyle) },
|
|
13601
|
-
|
|
13620
|
+
y(TimeColEvent, Object.assign({ seg: seg, isDragging: isDragging, isResizing: isResizing, isDateSelecting: isDateSelecting, isSelected: instanceId === eventSelection, isShort: isShort }, getSegMeta(seg, todayRange, nowDate)))));
|
|
13602
13621
|
})));
|
|
13603
13622
|
}
|
|
13604
13623
|
// will already have eventMinHeight applied because segInputs already had it
|
|
13605
13624
|
renderHiddenGroups(hiddenGroups, segs) {
|
|
13606
13625
|
let { extraDateSpan, dateProfile, todayRange, nowDate, eventSelection, eventDrag, eventResize } = this.props;
|
|
13607
|
-
return (
|
|
13626
|
+
return (y(_, null, hiddenGroups.map((hiddenGroup) => {
|
|
13608
13627
|
let positionCss = computeSegVStyle(hiddenGroup.span);
|
|
13609
13628
|
let hiddenSegs = compileSegsFromEntries(hiddenGroup.entries, segs);
|
|
13610
|
-
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 }));
|
|
13611
13630
|
})));
|
|
13612
13631
|
}
|
|
13613
13632
|
renderFillSegs(segs, fillType) {
|
|
@@ -13615,18 +13634,18 @@ var FullCalendar = (function (exports) {
|
|
|
13615
13634
|
let segVCoords = computeSegVCoords(segs, props.date, props.slatCoords, context.options.eventMinHeight); // don't assume all populated
|
|
13616
13635
|
let children = segVCoords.map((vcoords, i) => {
|
|
13617
13636
|
let seg = segs[i];
|
|
13618
|
-
return (
|
|
13619
|
-
|
|
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))) :
|
|
13620
13639
|
renderFill(fillType)));
|
|
13621
13640
|
});
|
|
13622
|
-
return
|
|
13641
|
+
return y(_, null, children);
|
|
13623
13642
|
}
|
|
13624
13643
|
renderNowIndicator(segs) {
|
|
13625
13644
|
let { slatCoords, date } = this.props;
|
|
13626
13645
|
if (!slatCoords) {
|
|
13627
13646
|
return null;
|
|
13628
13647
|
}
|
|
13629
|
-
return segs.map((seg, i) => (
|
|
13648
|
+
return segs.map((seg, i) => (y(NowIndicatorContainer
|
|
13630
13649
|
// key doesn't matter. will only ever be one
|
|
13631
13650
|
, {
|
|
13632
13651
|
// key doesn't matter. will only ever be one
|
|
@@ -13669,10 +13688,10 @@ var FullCalendar = (function (exports) {
|
|
|
13669
13688
|
let hiddenInstances = (eventDrag ? eventDrag.affectedInstances : null) ||
|
|
13670
13689
|
(eventResize ? eventResize.affectedInstances : null) ||
|
|
13671
13690
|
{};
|
|
13672
|
-
return (
|
|
13691
|
+
return (y(_, null, sortedFgSegs.map((seg) => {
|
|
13673
13692
|
let instanceId = seg.eventRange.instance.instanceId;
|
|
13674
|
-
return (
|
|
13675
|
-
|
|
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)))));
|
|
13676
13695
|
})));
|
|
13677
13696
|
}
|
|
13678
13697
|
function computeSegVStyle(segVCoords) {
|
|
@@ -13698,7 +13717,7 @@ var FullCalendar = (function (exports) {
|
|
|
13698
13717
|
this.splitDateSelectionSegs = memoize(splitSegsByCol);
|
|
13699
13718
|
this.splitEventDrag = memoize(splitInteractionByCol);
|
|
13700
13719
|
this.splitEventResize = memoize(splitInteractionByCol);
|
|
13701
|
-
this.rootElRef =
|
|
13720
|
+
this.rootElRef = d();
|
|
13702
13721
|
this.cellElRefs = new RefMap();
|
|
13703
13722
|
}
|
|
13704
13723
|
render() {
|
|
@@ -13714,18 +13733,18 @@ var FullCalendar = (function (exports) {
|
|
|
13714
13733
|
let dateSelectionSegsByRow = this.splitDateSelectionSegs(props.dateSelectionSegs, colCnt);
|
|
13715
13734
|
let eventDragByRow = this.splitEventDrag(props.eventDrag, colCnt);
|
|
13716
13735
|
let eventResizeByRow = this.splitEventResize(props.eventResize, colCnt);
|
|
13717
|
-
return (
|
|
13718
|
-
|
|
13736
|
+
return (y("div", { className: "fc-timegrid-cols", ref: this.rootElRef },
|
|
13737
|
+
y("table", { role: "presentation", style: {
|
|
13719
13738
|
minWidth: props.tableMinWidth,
|
|
13720
13739
|
width: props.clientWidth,
|
|
13721
13740
|
} },
|
|
13722
13741
|
props.tableColGroupNode,
|
|
13723
|
-
|
|
13724
|
-
|
|
13725
|
-
props.axis && (
|
|
13726
|
-
|
|
13727
|
-
|
|
13728
|
-
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 }))))))));
|
|
13729
13748
|
}
|
|
13730
13749
|
componentDidMount() {
|
|
13731
13750
|
this.updateCoords();
|
|
@@ -13795,14 +13814,14 @@ var FullCalendar = (function (exports) {
|
|
|
13795
13814
|
}
|
|
13796
13815
|
render() {
|
|
13797
13816
|
let { props, state } = this;
|
|
13798
|
-
return (
|
|
13817
|
+
return (y("div", { className: "fc-timegrid-body", ref: this.handleRootEl, style: {
|
|
13799
13818
|
// these props are important to give this wrapper correct dimensions for interactions
|
|
13800
13819
|
// TODO: if we set it here, can we avoid giving to inner tables?
|
|
13801
13820
|
width: props.clientWidth,
|
|
13802
13821
|
minWidth: props.tableMinWidth,
|
|
13803
13822
|
} },
|
|
13804
|
-
|
|
13805
|
-
|
|
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 })));
|
|
13806
13825
|
}
|
|
13807
13826
|
componentDidMount() {
|
|
13808
13827
|
this.scrollResponder = this.context.createScrollResponder(this.handleScrollRequest);
|
|
@@ -13883,7 +13902,7 @@ var FullCalendar = (function (exports) {
|
|
|
13883
13902
|
super(...arguments);
|
|
13884
13903
|
this.buildDayRanges = memoize(buildDayRanges);
|
|
13885
13904
|
this.slicer = new DayTimeColsSlicer();
|
|
13886
|
-
this.timeColsRef =
|
|
13905
|
+
this.timeColsRef = d();
|
|
13887
13906
|
}
|
|
13888
13907
|
render() {
|
|
13889
13908
|
let { props, context } = this;
|
|
@@ -13892,7 +13911,7 @@ var FullCalendar = (function (exports) {
|
|
|
13892
13911
|
let dayRanges = this.buildDayRanges(dayTableModel, dateProfile, context.dateEnv);
|
|
13893
13912
|
// give it the first row of cells
|
|
13894
13913
|
// TODO: would move this further down hierarchy, but sliceNowDate needs it
|
|
13895
|
-
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 })))));
|
|
13896
13915
|
}
|
|
13897
13916
|
}
|
|
13898
13917
|
function buildDayRanges(dayTableModel, dateProfile, dateEnv) {
|
|
@@ -13968,9 +13987,9 @@ var FullCalendar = (function (exports) {
|
|
|
13968
13987
|
let { dayMinWidth } = options;
|
|
13969
13988
|
let hasAttachedAxis = !dayMinWidth;
|
|
13970
13989
|
let hasDetachedAxis = dayMinWidth;
|
|
13971
|
-
let headerContent = options.dayHeaders && (
|
|
13972
|
-
let allDayContent = (options.allDaySlot !== false) && ((contentArg) => (
|
|
13973
|
-
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 })));
|
|
13974
13993
|
return hasDetachedAxis
|
|
13975
13994
|
? this.renderHScrollLayout(headerContent, allDayContent, timeGridContent, dayTableModel.colCnt, dayMinWidth, slatMetas, this.state.slatCoords)
|
|
13976
13995
|
: this.renderSimpleLayout(headerContent, allDayContent, timeGridContent);
|
|
@@ -13981,13 +14000,13 @@ var FullCalendar = (function (exports) {
|
|
|
13981
14000
|
return new DayTableModel(daySeries, false);
|
|
13982
14001
|
}
|
|
13983
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
|
+
|
|
13984
14006
|
const OPTION_REFINERS$2 = {
|
|
13985
14007
|
allDaySlot: Boolean,
|
|
13986
14008
|
};
|
|
13987
14009
|
|
|
13988
|
-
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}";
|
|
13989
|
-
injectStyles(css_248z$2);
|
|
13990
|
-
|
|
13991
14010
|
var index$2 = createPlugin({
|
|
13992
14011
|
name: '@fullcalendar/timegrid',
|
|
13993
14012
|
initialView: 'timeGridWeek',
|
|
@@ -14011,6 +14030,9 @@ var FullCalendar = (function (exports) {
|
|
|
14011
14030
|
},
|
|
14012
14031
|
});
|
|
14013
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
|
+
|
|
14014
14036
|
class ListViewHeaderRow extends BaseComponent {
|
|
14015
14037
|
constructor() {
|
|
14016
14038
|
super(...arguments);
|
|
@@ -14031,23 +14053,23 @@ var FullCalendar = (function (exports) {
|
|
|
14031
14053
|
text,
|
|
14032
14054
|
sideText, navLinkAttrs: buildNavLinkAttrs(this.context, dayDate), sideNavLinkAttrs: buildNavLinkAttrs(this.context, dayDate, 'day', false) }, dayMeta);
|
|
14033
14055
|
// TODO: make a reusable HOC for dayHeader (used in daygrid/timegrid too)
|
|
14034
|
-
return (
|
|
14056
|
+
return (y(ContentContainer, { elTag: "tr", elClasses: [
|
|
14035
14057
|
'fc-list-day',
|
|
14036
14058
|
...getDayClassNames(dayMeta, theme),
|
|
14037
14059
|
], elAttrs: {
|
|
14038
14060
|
'data-date': formatDayString(dayDate),
|
|
14039
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
|
|
14040
|
-
|
|
14041
|
-
|
|
14062
|
+
y("th", { scope: "colgroup", colSpan: 3, id: cellId, "aria-labelledby": textId },
|
|
14063
|
+
y(InnerContent, { elTag: "div", elClasses: [
|
|
14042
14064
|
'fc-list-day-cushion',
|
|
14043
14065
|
theme.getClass('tableCellShaded'),
|
|
14044
14066
|
] })))));
|
|
14045
14067
|
}
|
|
14046
14068
|
}
|
|
14047
14069
|
function renderInnerContent(props) {
|
|
14048
|
-
return (
|
|
14049
|
-
props.text && (
|
|
14050
|
-
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))));
|
|
14051
14073
|
}
|
|
14052
14074
|
|
|
14053
14075
|
const DEFAULT_TIME_FORMAT = createFormatter({
|
|
@@ -14061,21 +14083,21 @@ var FullCalendar = (function (exports) {
|
|
|
14061
14083
|
let { options } = context;
|
|
14062
14084
|
let { seg, timeHeaderId, eventHeaderId, dateHeaderId } = props;
|
|
14063
14085
|
let timeFormat = options.eventTimeFormat || DEFAULT_TIME_FORMAT;
|
|
14064
|
-
return (
|
|
14086
|
+
return (y(EventContainer, Object.assign({}, props, { elTag: "tr", elClasses: [
|
|
14065
14087
|
'fc-list-event',
|
|
14066
14088
|
seg.eventRange.def.url && 'fc-event-forced-url',
|
|
14067
|
-
], 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,
|
|
14068
14090
|
buildTimeContent(seg, timeFormat, context, timeHeaderId, dateHeaderId),
|
|
14069
|
-
|
|
14070
|
-
|
|
14091
|
+
y("td", { "aria-hidden": true, className: "fc-list-event-graphic" },
|
|
14092
|
+
y("span", { className: "fc-list-event-dot", style: {
|
|
14071
14093
|
borderColor: eventContentArg.borderColor || eventContentArg.backgroundColor,
|
|
14072
14094
|
} })),
|
|
14073
|
-
|
|
14095
|
+
y(InnerContent, { elTag: "td", elClasses: ['fc-list-event-title'], elAttrs: { headers: `${eventHeaderId} ${dateHeaderId}` } })))));
|
|
14074
14096
|
}
|
|
14075
14097
|
}
|
|
14076
14098
|
function renderEventInnerContent(seg, context) {
|
|
14077
14099
|
let interactiveAttrs = getSegAnchorAttrs(seg, context);
|
|
14078
|
-
return (
|
|
14100
|
+
return (y("a", Object.assign({}, interactiveAttrs), seg.eventRange.def.title));
|
|
14079
14101
|
}
|
|
14080
14102
|
function buildTimeContent(seg, timeFormat, context, timeHeaderId, dateHeaderId) {
|
|
14081
14103
|
let { options } = context;
|
|
@@ -14106,11 +14128,11 @@ var FullCalendar = (function (exports) {
|
|
|
14106
14128
|
text: context.options.allDayText,
|
|
14107
14129
|
view: context.viewApi,
|
|
14108
14130
|
};
|
|
14109
|
-
return (
|
|
14131
|
+
return (y(ContentContainer, { elTag: "td", elClasses: ['fc-list-event-time'], elAttrs: {
|
|
14110
14132
|
headers: `${timeHeaderId} ${dateHeaderId}`,
|
|
14111
14133
|
}, renderProps: renderProps, generatorName: "allDayContent", customGenerator: options.allDayContent, defaultGenerator: renderAllDayInner, classNameGenerator: options.allDayClassNames, didMount: options.allDayDidMount, willUnmount: options.allDayWillUnmount }));
|
|
14112
14134
|
}
|
|
14113
|
-
return (
|
|
14135
|
+
return (y("td", { className: "fc-list-event-time" }, timeText));
|
|
14114
14136
|
}
|
|
14115
14137
|
return null;
|
|
14116
14138
|
}
|
|
@@ -14146,14 +14168,14 @@ var FullCalendar = (function (exports) {
|
|
|
14146
14168
|
let { props, context } = this;
|
|
14147
14169
|
let { dayDates, dayRanges } = this.computeDateVars(props.dateProfile);
|
|
14148
14170
|
let eventSegs = this.eventStoreToSegs(props.eventStore, props.eventUiBases, dayRanges);
|
|
14149
|
-
return (
|
|
14171
|
+
return (y(ViewContainer, { elRef: this.setRootEl, elClasses: [
|
|
14150
14172
|
'fc-list',
|
|
14151
14173
|
context.theme.getClass('table'),
|
|
14152
14174
|
context.options.stickyHeaderDates !== false ?
|
|
14153
14175
|
'fc-list-sticky' :
|
|
14154
14176
|
'',
|
|
14155
14177
|
], viewSpec: context.viewSpec },
|
|
14156
|
-
|
|
14178
|
+
y(Scroller, { liquid: !props.isHeightAuto, overflowX: props.isHeightAuto ? 'visible' : 'hidden', overflowY: props.isHeightAuto ? 'visible' : 'auto' }, eventSegs.length > 0 ?
|
|
14157
14179
|
this.renderSegList(eventSegs, dayDates) :
|
|
14158
14180
|
this.renderEmptyMessage())));
|
|
14159
14181
|
}
|
|
@@ -14163,13 +14185,13 @@ var FullCalendar = (function (exports) {
|
|
|
14163
14185
|
text: options.noEventsText,
|
|
14164
14186
|
view: viewApi,
|
|
14165
14187
|
};
|
|
14166
|
-
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'] }))));
|
|
14167
14189
|
}
|
|
14168
14190
|
renderSegList(allSegs, dayDates) {
|
|
14169
14191
|
let { theme, options } = this.context;
|
|
14170
14192
|
let { timeHeaderId, eventHeaderId, dateHeaderIdRoot } = this.state;
|
|
14171
14193
|
let segsByDay = groupSegsByDay(allSegs); // sparse array
|
|
14172
|
-
return (
|
|
14194
|
+
return (y(NowTimer, { unit: "day" }, (nowDate, todayRange) => {
|
|
14173
14195
|
let innerNodes = [];
|
|
14174
14196
|
for (let dayIndex = 0; dayIndex < segsByDay.length; dayIndex += 1) {
|
|
14175
14197
|
let daySegs = segsByDay[dayIndex];
|
|
@@ -14177,20 +14199,20 @@ var FullCalendar = (function (exports) {
|
|
|
14177
14199
|
let dayStr = formatDayString(dayDates[dayIndex]);
|
|
14178
14200
|
let dateHeaderId = dateHeaderIdRoot + '-' + dayStr;
|
|
14179
14201
|
// append a day header
|
|
14180
|
-
innerNodes.push(
|
|
14202
|
+
innerNodes.push(y(ListViewHeaderRow, { key: dayStr, cellId: dateHeaderId, dayDate: dayDates[dayIndex], todayRange: todayRange }));
|
|
14181
14203
|
daySegs = sortEventSegs(daySegs, options.eventOrder);
|
|
14182
14204
|
for (let seg of daySegs) {
|
|
14183
|
-
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))));
|
|
14184
14206
|
}
|
|
14185
14207
|
}
|
|
14186
14208
|
}
|
|
14187
|
-
return (
|
|
14188
|
-
|
|
14189
|
-
|
|
14190
|
-
|
|
14191
|
-
|
|
14192
|
-
|
|
14193
|
-
|
|
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)));
|
|
14194
14216
|
}));
|
|
14195
14217
|
}
|
|
14196
14218
|
_eventStoreToSegs(eventStore, eventUiBases, dayRanges) {
|
|
@@ -14284,9 +14306,6 @@ var FullCalendar = (function (exports) {
|
|
|
14284
14306
|
return input === false ? null : createFormatter(input);
|
|
14285
14307
|
}
|
|
14286
14308
|
|
|
14287
|
-
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}";
|
|
14288
|
-
injectStyles(css_248z$1);
|
|
14289
|
-
|
|
14290
14309
|
var index$1 = createPlugin({
|
|
14291
14310
|
name: '@fullcalendar/list',
|
|
14292
14311
|
optionRefiners: OPTION_REFINERS$1,
|
|
@@ -14339,16 +14358,16 @@ var FullCalendar = (function (exports) {
|
|
|
14339
14358
|
const tableHeight = props.tableWidth != null ? props.tableWidth / options.aspectRatio : null;
|
|
14340
14359
|
const rowCnt = dayTableModel.cells.length;
|
|
14341
14360
|
const rowHeight = tableHeight != null ? tableHeight / rowCnt : null;
|
|
14342
|
-
return (
|
|
14343
|
-
|
|
14344
|
-
|
|
14345
|
-
|
|
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: [
|
|
14346
14365
|
'fc-multimonth-header-table',
|
|
14347
14366
|
context.theme.getClass('table'),
|
|
14348
14367
|
].join(' '), role: "presentation" },
|
|
14349
|
-
|
|
14350
|
-
|
|
14351
|
-
|
|
14368
|
+
y("thead", { role: "rowgroup" },
|
|
14369
|
+
y(DayHeader, { dateProfile: props.dateProfile, dates: dayTableModel.headerDates, datesRepDistinctDays: false })))),
|
|
14370
|
+
y("div", { className: [
|
|
14352
14371
|
'fc-multimonth-daygrid',
|
|
14353
14372
|
'fc-daygrid',
|
|
14354
14373
|
'fc-daygrid-body',
|
|
@@ -14356,12 +14375,12 @@ var FullCalendar = (function (exports) {
|
|
|
14356
14375
|
forPrint && 'fc-daygrid-body-unbalanced',
|
|
14357
14376
|
forPrint && 'fc-daygrid-body-natural',
|
|
14358
14377
|
].join(' '), style: { marginTop: -rowHeight } },
|
|
14359
|
-
|
|
14378
|
+
y("table", { className: [
|
|
14360
14379
|
'fc-multimonth-daygrid-table',
|
|
14361
14380
|
context.theme.getClass('table'),
|
|
14362
14381
|
].join(' '), style: { height: forPrint ? '' : tableHeight }, role: "presentation" },
|
|
14363
|
-
|
|
14364
|
-
|
|
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 })))))));
|
|
14365
14384
|
}
|
|
14366
14385
|
}
|
|
14367
14386
|
|
|
@@ -14370,8 +14389,8 @@ var FullCalendar = (function (exports) {
|
|
|
14370
14389
|
super(...arguments);
|
|
14371
14390
|
this.splitDateProfileByMonth = memoize(splitDateProfileByMonth);
|
|
14372
14391
|
this.buildMonthFormat = memoize(buildMonthFormat);
|
|
14373
|
-
this.scrollElRef =
|
|
14374
|
-
this.firstMonthElRef =
|
|
14392
|
+
this.scrollElRef = d();
|
|
14393
|
+
this.firstMonthElRef = d();
|
|
14375
14394
|
this.needsScrollReset = false;
|
|
14376
14395
|
this.handleSizing = (isForced) => {
|
|
14377
14396
|
if (isForced) {
|
|
@@ -14402,9 +14421,9 @@ var FullCalendar = (function (exports) {
|
|
|
14402
14421
|
'fc-multimonth-compact' :
|
|
14403
14422
|
'',
|
|
14404
14423
|
];
|
|
14405
|
-
return (
|
|
14424
|
+
return (y(ViewContainer, { elRef: this.scrollElRef, elClasses: rootClassNames, viewSpec: context.viewSpec }, monthDateProfiles.map((monthDateProfile, i) => {
|
|
14406
14425
|
const monthStr = formatIsoMonthStr(monthDateProfile.currentRange.start);
|
|
14407
|
-
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 })));
|
|
14408
14427
|
})));
|
|
14409
14428
|
}
|
|
14410
14429
|
componentDidMount() {
|