@nocobase/plugin-gantt 2.1.0-beta.38 → 2.1.0-beta.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/index.js +1 -1
- package/dist/client-v2/793.629d4cd39664b681.js +10 -0
- package/dist/client-v2/index.js +1 -1
- package/dist/client-v2/locale.d.ts +6 -0
- package/dist/client-v2/models/GanttBlockModel.d.ts +1 -1
- package/dist/client-v2/models/components/GanttBlock.helpers.d.ts +8 -0
- package/dist/client-v2/models/components/GanttBlock.styles.d.ts +2 -1
- package/dist/client-v2/models/components/GanttBlock.tree.d.ts +9 -6
- package/dist/{shared → client-v2/shared}/components/grid/style.d.ts +4 -3
- package/dist/{shared → client-v2/shared}/components/other/horizontal-scroll.d.ts +1 -1
- package/dist/externalVersion.js +6 -6
- package/dist/locale/en-US.json +4 -1
- package/dist/locale/zh-CN.json +4 -1
- package/package.json +2 -2
- package/dist/client-v2/143.1a8cf1cd5ce17b64.js +0 -10
- package/dist/node_modules/@ctrl/tinycolor/LICENSE +0 -7
- package/dist/node_modules/@ctrl/tinycolor/dist/bundles/tinycolor.umd.min.js +0 -2
- package/dist/node_modules/@ctrl/tinycolor/dist/conversion.d.ts +0 -61
- package/dist/node_modules/@ctrl/tinycolor/dist/conversion.js +0 -250
- package/dist/node_modules/@ctrl/tinycolor/dist/css-color-names.d.ts +0 -4
- package/dist/node_modules/@ctrl/tinycolor/dist/css-color-names.js +0 -157
- package/dist/node_modules/@ctrl/tinycolor/dist/format-input.d.ts +0 -37
- package/dist/node_modules/@ctrl/tinycolor/dist/format-input.js +0 -189
- package/dist/node_modules/@ctrl/tinycolor/dist/from-ratio.d.ts +0 -14
- package/dist/node_modules/@ctrl/tinycolor/dist/from-ratio.js +0 -30
- package/dist/node_modules/@ctrl/tinycolor/dist/index.d.ts +0 -207
- package/dist/node_modules/@ctrl/tinycolor/dist/index.js +0 -512
- package/dist/node_modules/@ctrl/tinycolor/dist/interfaces.d.ts +0 -46
- package/dist/node_modules/@ctrl/tinycolor/dist/interfaces.js +0 -2
- package/dist/node_modules/@ctrl/tinycolor/dist/module/conversion.js +0 -235
- package/dist/node_modules/@ctrl/tinycolor/dist/module/css-color-names.js +0 -154
- package/dist/node_modules/@ctrl/tinycolor/dist/module/format-input.js +0 -183
- package/dist/node_modules/@ctrl/tinycolor/dist/module/from-ratio.js +0 -25
- package/dist/node_modules/@ctrl/tinycolor/dist/module/index.js +0 -508
- package/dist/node_modules/@ctrl/tinycolor/dist/module/interfaces.js +0 -1
- package/dist/node_modules/@ctrl/tinycolor/dist/module/public_api.js +0 -12
- package/dist/node_modules/@ctrl/tinycolor/dist/module/random.js +0 -278
- package/dist/node_modules/@ctrl/tinycolor/dist/module/readability.js +0 -80
- package/dist/node_modules/@ctrl/tinycolor/dist/module/to-ms-filter.js +0 -16
- package/dist/node_modules/@ctrl/tinycolor/dist/module/umd_api.js +0 -20
- package/dist/node_modules/@ctrl/tinycolor/dist/module/util.js +0 -82
- package/dist/node_modules/@ctrl/tinycolor/dist/public_api.d.ts +0 -11
- package/dist/node_modules/@ctrl/tinycolor/dist/public_api.js +0 -1
- package/dist/node_modules/@ctrl/tinycolor/dist/random.d.ts +0 -24
- package/dist/node_modules/@ctrl/tinycolor/dist/random.js +0 -282
- package/dist/node_modules/@ctrl/tinycolor/dist/readability.d.ts +0 -46
- package/dist/node_modules/@ctrl/tinycolor/dist/readability.js +0 -86
- package/dist/node_modules/@ctrl/tinycolor/dist/to-ms-filter.d.ts +0 -5
- package/dist/node_modules/@ctrl/tinycolor/dist/to-ms-filter.js +0 -20
- package/dist/node_modules/@ctrl/tinycolor/dist/umd_api.d.ts +0 -23
- package/dist/node_modules/@ctrl/tinycolor/dist/umd_api.js +0 -22
- package/dist/node_modules/@ctrl/tinycolor/dist/util.d.ts +0 -36
- package/dist/node_modules/@ctrl/tinycolor/dist/util.js +0 -92
- package/dist/node_modules/@ctrl/tinycolor/package.json +0 -1
- package/dist/shared/components/calendar/calendar.js +0 -417
- package/dist/shared/components/calendar/style.js +0 -79
- package/dist/shared/components/calendar/top-part-of-calendar.js +0 -57
- package/dist/shared/components/gantt/style.js +0 -74
- package/dist/shared/components/gantt/task-gantt-content.js +0 -337
- package/dist/shared/components/gantt/task-gantt.js +0 -128
- package/dist/shared/components/grid/grid-body.js +0 -114
- package/dist/shared/components/grid/grid.js +0 -50
- package/dist/shared/components/grid/style.js +0 -54
- package/dist/shared/components/other/arrow.js +0 -90
- package/dist/shared/components/other/horizontal-scroll.js +0 -64
- package/dist/shared/components/other/style.js +0 -125
- package/dist/shared/components/other/tooltip.js +0 -137
- package/dist/shared/components/other/vertical-scroll.js +0 -74
- package/dist/shared/components/task-item/bar/bar-date-handle.js +0 -62
- package/dist/shared/components/task-item/bar/bar-display.js +0 -98
- package/dist/shared/components/task-item/bar/bar-progress-handle.js +0 -49
- package/dist/shared/components/task-item/bar/bar-small.js +0 -85
- package/dist/shared/components/task-item/bar/bar.js +0 -113
- package/dist/shared/components/task-item/bar/style.js +0 -58
- package/dist/shared/components/task-item/milestone/milestone.js +0 -72
- package/dist/shared/components/task-item/milestone/style.js +0 -45
- package/dist/shared/components/task-item/project/project.js +0 -77
- package/dist/shared/components/task-item/project/style.js +0 -51
- package/dist/shared/components/task-item/style.js +0 -74
- package/dist/shared/components/task-item/task-item.js +0 -132
- package/dist/shared/helpers/bar-helper.js +0 -415
- package/dist/shared/helpers/date-helper.js +0 -231
- package/dist/shared/helpers/other-helper.js +0 -97
- package/dist/shared/types/bar-task.js +0 -24
- package/dist/shared/types/date-setup.js +0 -24
- package/dist/shared/types/gantt-task-actions.js +0 -24
- package/dist/shared/types/public-types.js +0 -46
- /package/dist/{shared → client-v2/shared}/components/calendar/calendar.d.ts +0 -0
- /package/dist/{shared → client-v2/shared}/components/calendar/style.d.ts +0 -0
- /package/dist/{shared → client-v2/shared}/components/calendar/top-part-of-calendar.d.ts +0 -0
- /package/dist/{shared → client-v2/shared}/components/gantt/style.d.ts +0 -0
- /package/dist/{shared → client-v2/shared}/components/gantt/task-gantt-content.d.ts +0 -0
- /package/dist/{shared → client-v2/shared}/components/gantt/task-gantt.d.ts +0 -0
- /package/dist/{shared → client-v2/shared}/components/grid/grid-body.d.ts +0 -0
- /package/dist/{shared → client-v2/shared}/components/grid/grid.d.ts +0 -0
- /package/dist/{shared → client-v2/shared}/components/other/arrow.d.ts +0 -0
- /package/dist/{shared → client-v2/shared}/components/other/style.d.ts +0 -0
- /package/dist/{shared → client-v2/shared}/components/other/tooltip.d.ts +0 -0
- /package/dist/{shared → client-v2/shared}/components/other/vertical-scroll.d.ts +0 -0
- /package/dist/{shared → client-v2/shared}/components/task-item/bar/bar-date-handle.d.ts +0 -0
- /package/dist/{shared → client-v2/shared}/components/task-item/bar/bar-display.d.ts +0 -0
- /package/dist/{shared → client-v2/shared}/components/task-item/bar/bar-progress-handle.d.ts +0 -0
- /package/dist/{shared → client-v2/shared}/components/task-item/bar/bar-small.d.ts +0 -0
- /package/dist/{shared → client-v2/shared}/components/task-item/bar/bar.d.ts +0 -0
- /package/dist/{shared → client-v2/shared}/components/task-item/bar/style.d.ts +0 -0
- /package/dist/{shared → client-v2/shared}/components/task-item/milestone/milestone.d.ts +0 -0
- /package/dist/{shared → client-v2/shared}/components/task-item/milestone/style.d.ts +0 -0
- /package/dist/{shared → client-v2/shared}/components/task-item/project/project.d.ts +0 -0
- /package/dist/{shared → client-v2/shared}/components/task-item/project/style.d.ts +0 -0
- /package/dist/{shared → client-v2/shared}/components/task-item/style.d.ts +0 -0
- /package/dist/{shared → client-v2/shared}/components/task-item/task-item.d.ts +0 -0
- /package/dist/{shared → client-v2/shared}/helpers/bar-helper.d.ts +0 -0
- /package/dist/{shared → client-v2/shared}/helpers/date-helper.d.ts +0 -0
- /package/dist/{shared → client-v2/shared}/helpers/other-helper.d.ts +0 -0
- /package/dist/{shared → client-v2/shared}/types/bar-task.d.ts +0 -0
- /package/dist/{shared → client-v2/shared}/types/date-setup.d.ts +0 -0
- /package/dist/{shared → client-v2/shared}/types/gantt-task-actions.d.ts +0 -0
- /package/dist/{shared → client-v2/shared}/types/public-types.d.ts +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
"use strict";(self.webpackChunk_nocobase_plugin_gantt_client_v2=self.webpackChunk_nocobase_plugin_gantt_client_v2||[]).push([["793"],{896:function(e,t,n){n.r(t),n.d(t,{GanttBlockModel:function(){return nw}});var r,o,a,l,i,c,u=n(375),s=n(485),f=n(694),d=n(59),p=n(155),h=n.n(p),g=n(619),b=n(773);function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function m(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var a=[],l=!0,i=!1;try{for(o=o.call(e);!(l=(n=o.next()).done)&&(a.push(n.value),!t||a.length!==t);l=!0);}catch(e){i=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(i)throw r}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var S=function(e,t,n,r,o,a,l,i,c,u,s,f,d,p,h,g,b,v){var y=e.map(function(e,y){return x(e,y,t,n,r,o,a,l,i,c,u,s,f,d,p,h,g,b,v)}),m=new Map(y.map(function(e){return[e.id,e]}));return y.forEach(function(e){for(var t=e.dependencies||[],n=0;n<t.length;n++){var r=m.get(t[n]);r&&r.barChildren.push(e)}}),y},x=function(e,t,n,r,o,a,l,i,c,u,s,f,d,p,h,g,b,v,y){var m;switch(e.type){case"milestone":m=O(e,t,n,r,o,a,l,i,v,y);break;case"project":m=k(e,t,n,r,o,.5*a,l,i,c,p,h,g,b);break;default:m=k(e,t,n,r,o,a,l,i,c,u,s,f,d)}return m},k=function(e,t,n,r,o,a,l,i,c,u,s,f,d){c?(h=P(e.start,n,r),p=P(e.end,n,r)):(p=T(e.start,n,r),h=T(e.end,n,r));var p,h,g=e.type;"task"===g&&h-p<2*i&&(g="smalltask",h=p>0?p+2*i:p);var b=w(j(p,h,e.progress,c),2),v=b[0],S=b[1],x="project"===e.type?E(t,o,a)+8:E(t,o,a),k="project"===e.type?e.hideChildren:void 0,O=y({backgroundColor:f,backgroundSelectedColor:d,progressColor:u,progressSelectedColor:s},e.styles);return m(y({},e),{typeInternal:g,x1:p,x2:h,y:x,index:t,progressX:S,progressWidth:v,barCornerRadius:l,handleWidth:i,hideChildren:k,height:a,barChildren:[],styles:O})},O=function(e,t,n,r,o,a,l,i,c,u){var s=T(e.start,n,r),f=E(t,o,a),d=s-.5*a,p=s+.5*a,h=a/1.414,g=y({backgroundColor:c,backgroundSelectedColor:u,progressColor:"",progressSelectedColor:""},e.styles);return m(y({},e),{end:e.start,x1:d,x2:p,y:f,index:t,progressX:0,progressWidth:0,barCornerRadius:l,handleWidth:i,typeInternal:e.type,progress:0,height:h,hideChildren:void 0,barChildren:[],styles:g})},T=function(e,t,n){var r,o,a,l=t.findIndex(function(t){return(null==t?void 0:t.getTime())>=(null==e?void 0:e.getTime())})-1,i=((null==e?void 0:e.getTime())-(null==(r=t[l])?void 0:r.getTime()))/((null==(o=t[l+1])?void 0:o.getTime())-(null==(a=t[l])?void 0:a.getTime())),c=l*n+i*n;return isNaN(c)?0:c},P=function(e,t,n){var r=T(e,t,n);return isNaN(r+=n)?0:r},E=function(e,t,n){var r=e*t+(t-n)/2;return isNaN(r)?0:r},j=function(e,t,n,r){var o,a=(t-e)*n*.01;return o=r?t-a:e,[a,o]},C=function(e,t){if(e>=t.x2)return 100;if(e<=t.x1)return 0;var n=t.x2-t.x1;return Math.round((e-t.x1)*100/n)},M=function(e,t){if(e>=t.x2)return 0;if(e<=t.x1)return 100;var n=t.x2-t.x1;return Math.round((t.x2-e)*100/n)},D=function(e,t,n){return[e-5,t+n,e+5,t+n,e,t+n-8.66].join(",")},A=function(e,t,n){e>=n.x2-2*n.handleWidth&&(e=n.x2-2*n.handleWidth);var r=Math.round((e-n.x1)/t);return n.x1+r*t},F=function(e,t,n){e<=n.x1+2*n.handleWidth&&(e=n.x1+2*n.handleWidth);var r=Math.round((e-n.x2)/t);return n.x2+r*t},R=function(e,t,n){var r=Math.round((e-n.x1)/t),o=n.x1+r*t,a=o+n.x2-n.x1;return[o,a]},N=function(e,t,n,r,o){var a,l,i=new Date((e-t)/r*o+(null==n||null==(a=n.getTime)?void 0:a.call(n)));return new Date((null==i||null==(l=i.getTime)?void 0:l.call(i))+((null==i?void 0:i.getTimezoneOffset())-(null==n?void 0:n.getTimezoneOffset()))*6e4)},z=function(e,t,n,r,o,a,l){return"milestone"===n.type?W(e,t,n,r,o,a):I(e,t,n,r,o,a,l)},I=function(e,t,n,r,o,a,l){var i=y({},n),c=!1;switch(t){case"progress":if(l?i.progress=M(e,n):i.progress=C(e,n),c=i.progress!==n.progress){var u=w(j(i.x1,i.x2,i.progress,l),2),s=u[0],f=u[1];i.progressWidth=s,i.progressX=f}break;case"start":var d=A(e,r,n);if(i.x1=d,c=i.x1!==n.x1){l?i.end=N(d,n.x1,n.end,r,o):i.start=N(d,n.x1,n.start,r,o);var p=w(j(i.x1,i.x2,i.progress,l),2),h=p[0],g=p[1];i.progressWidth=h,i.progressX=g}break;case"end":var b=F(e,r,n);if(i.x2=b,c=i.x2!==n.x2){l?i.start=N(b,n.x2,n.start,r,o):i.end=N(b,n.x2,n.end,r,o);var v=w(j(i.x1,i.x2,i.progress,l),2),m=v[0],S=v[1];i.progressWidth=m,i.progressX=S}break;case"move":var x=w(R(e-a,r,n),2),k=x[0],O=x[1];if(c=k!==n.x1){i.start=N(k,n.x1,n.start,r,o),i.end=N(O,n.x2,n.end,r,o),i.x1=k,i.x2=O;var T=w(j(i.x1,i.x2,i.progress,l),2),P=T[0],E=T[1];i.progressWidth=P,i.progressX=E}}return{isChanged:c,changedTask:i}},W=function(e,t,n,r,o,a){var l=y({},n),i=!1;if("move"===t){var c=w(R(e-a,r,n),2),u=c[0],s=c[1];(i=u!==n.x1)&&(l.start=N(u,n.x1,n.start,r,o),l.end=l.start,l.x1=u,l.x2=s)}return{isChanged:i,changedTask:l}},H=((a={}).Hour="hour",a.QuarterDay="quarterDay",a.HalfDay="halfDay",a.Day="day",a.Week="week",a.Month="month",a.QuarterYear="quarterYear",a.Year="year",a);Intl.DateTimeFormat,Intl.DateTimeFormatOptions;var L={},B=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=JSON.stringify([e,t]),r=L[n];return r||(r=new Intl.DateTimeFormat(e,t),L[n]=r),r},_=function(e,t,n){return new Date(e.getFullYear()+("year"===n?t:0),e.getMonth()+("month"===n?t:0),e.getDate()+("day"===n?t:0),e.getHours()+("hour"===n?t:0),e.getMinutes()+("minute"===n?t:0),e.getSeconds()+("second"===n?t:0),e.getMilliseconds()+("millisecond"===n?t:0))},G=function(e,t){var n=["millisecond","second","minute","hour","day","month","year"],r=function(e){var r=n.indexOf(t);return n.indexOf(e)<=r};return new Date(null==e?void 0:e.getFullYear(),r("year")?0:e.getMonth(),r("month")?1:e.getDate(),r("day")?0:e.getHours(),r("hour")?0:e.getMinutes(),r("minute")?0:e.getSeconds(),r("second")?0:e.getMilliseconds())},Y=function(e,t,n){var r=(null==(c=e[0])?void 0:c.start)||new Date,o=(null==(u=e[0])?void 0:u.start)||new Date,a=!0,l=!1,i=void 0;try{for(var c,u,s,f=e[Symbol.iterator]();!(a=(s=f.next()).done);a=!0){var d=s.value;d.start<r&&(r=d.start),d.end>o&&(o=d.end)}}catch(e){l=!0,i=e}finally{try{a||null==f.return||f.return()}finally{if(l)throw i}}switch(t){case H.Year:r=G(r=_(r,-1,"year"),"year"),o=G(o=_(o,1,"year"),"year");break;case H.QuarterYear:r=G(r=_(r,-3,"month"),"month"),o=G(o=_(o,3,"year"),"year");break;case H.Month:r=G(r=_(r,-1*n,"month"),"month"),o=G(o=_(o,1,"year"),"year");break;case H.Week:r=_(K(r=G(r,"day")),-7*n,"day"),o=_(o=G(o,"day"),1.5,"month");break;case H.Day:r=_(r=G(r,"day"),-1*n,"day"),o=_(o=G(o,"day"),19,"day");break;case H.QuarterDay:r=_(r=G(r,"day"),-1*n,"day"),o=_(o=G(o,"day"),66,"hour");break;case H.HalfDay:r=_(r=G(r,"day"),-1*n,"day"),o=_(o=G(o,"day"),108,"hour");break;case H.Hour:r=_(r=G(r,"hour"),-1*n,"hour"),o=_(o=G(o,"day"),1,"day")}return[r,o]},U=function(e,t,n){for(var r=new Date(e),o=[r];r<t;){switch(n){case H.Year:r=_(r,1,"year");break;case H.QuarterYear:r=_(r,3,"month");break;case H.Month:r=_(r,1,"month");break;case H.Week:r=_(r,7,"day");break;case H.Day:r=_(r,1,"day");break;case H.HalfDay:r=_(r,12,"hour");break;case H.QuarterDay:r=_(r,6,"hour");break;case H.Hour:r=_(r,1,"hour")}o.push(r)}return o},V=function(e,t){var n=B(t,{month:"long"}).format(e);return n.replace(n[0],n[0].toLocaleUpperCase())},X=function(e,t,n){var r=B(t,{weekday:n}).format(e);return r.replace(r[0],r[0].toLocaleUpperCase())},K=function(e){var t=e.getDay(),n=e.getDate()-t+(0===t?-6:1);return new Date(e.setDate(n))},Z=function(e){var t=new Date(e.valueOf()),n=(t.getDay()+6)%7;t.setDate(t.getDate()-n+3);var r=t.valueOf();t.setMonth(0,1),4!==t.getDay()&&t.setMonth(0,1+(4-t.getDay()+7)%7);var o=(1+Math.ceil((r-t.valueOf())/6048e5)).toString();return 1===o.length?"0".concat(o):o},q=n(477),Q=n(235);function $(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function J(){var e=$(["\n overflow-x: auto;\n overflow-y: hidden;\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n max-width: 100%;\n height: 17px;\n scrollbar-color: "," ",";\n border-left: 2px solid ",";\n &::-webkit-scrollbar {\n width: 16px;\n height: 16px;\n }\n &::-webkit-scrollbar-corner {\n background: ",";\n }\n &::-webkit-scrollbar-track {\n background: ",";\n }\n &::-webkit-scrollbar-thumb {\n background: ",";\n border-radius: 100px;\n }\n &::-webkit-scrollbar-thumb:hover {\n background: ",";\n }\n "]);return J=function(){return e},e}function ee(){var e=$(["\n padding: 12px;\n background-color: ",";\n background-clip: padding-box;\n border-radius: ",";\n box-shadow: ",";\n b {\n display: block;\n margin-bottom: ",";\n }\n .tooltipDefaultContainerParagraph {\n font-size: ",";\n margin-bottom: ","px;\n color: ",";\n }\n "]);return ee=function(){return e},e}function et(){var e=$(["\n position: absolute;\n display: flex;\n flex-shrink: 0;\n pointer-events: none;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n "]);return et=function(){return e},e}function en(){var e=$(["\n visibility: hidden;\n position: absolute;\n display: flex;\n pointer-events: none;\n "]);return en=function(){return e},e}function er(){var e=$(["\n .horizontalScroll {\n height: 1px;\n }\n\n &.verticalScroll {\n overflow: hidden auto;\n width: 1rem;\n flex-shrink: 0;\n &::before {\n content: '';\n position: absolute;\n top: -17px;\n left: 0;\n right: 0;\n height: 17px;\n background: ",";\n pointer-events: none;\n }\n scrollbar-color: "," ",";\n &::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n }\n &::-webkit-scrollbar-corner {\n background: ",";\n }\n &::-webkit-scrollbar-track {\n background: ",";\n }\n &::-webkit-scrollbar-thumb {\n background: ",";\n border-radius: 100px;\n }\n &::-webkit-scrollbar-thumb:hover {\n background: ",";\n }\n }\n "]);return er=function(){return e},e}var eo=(0,Q.createStyles)(function(e){var t=e.token,n=e.css;return{scrollWrapper:n(J(),t.colorTextPlaceholder,t.colorSplit,t.colorSplit,t.colorSplit,t.colorSplit,t.colorTextPlaceholder,t.colorTextHeading),tooltipDefaultContainer:n(ee(),t.colorBgElevated,t.borderRadius,t.boxShadow,t.marginXS,t.fontSizeSM,t.marginXS,t.colorText),tooltipDetailsContainer:n(et()),tooltipDetailsContainerHidden:n(en()),nbGridOther:n(er(),t.colorSplit,t.colorTextPlaceholder,t.colorSplit,t.colorSplit,t.colorSplit,t.colorTextPlaceholder,t.colorTextHeading)}}),ea=(0,p.forwardRef)(function(e,t){var n=e.scrollWidth,r=(e.rtl,e.onScroll),o=eo().styles;return h().createElement("div",{dir:"ltr",className:(0,q.cx)(o.nbGridOther,o.scrollWrapper,"gantt-horizontal-scoll"),onScroll:r,ref:t},h().createElement("div",{style:{width:n,height:1},className:"horizontalScroll"}))});ea.displayName="HorizontalScroll";var el=n(816),ei=function(e,t){var n=e.displayOrder||Number.MAX_VALUE,r=t.displayOrder||Number.MAX_VALUE;return n>r?1:n<r?-1:0},ec=function(e){var t;return isNaN(null==e||null==(t=e.getTime)?void 0:t.call(e))?0:e.getFullYear()+"/"+"".concat(e.getMonth()+1)+"/"+e.getDate()};function eu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function es(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var a=[],l=!0,i=!1;try{for(o=o.call(e);!(l=(n=o.next()).done)&&(a.push(n.value),!t||a.length!==t);l=!0);}catch(e){i=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(i)throw r}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return eu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eu(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ef=function(e){var t=e.task,n=e.rowHeight,r=e.rtl,o=e.svgContainerHeight,a=e.svgContainerWidth,l=e.scrollX,i=e.scrollY,c=e.arrowIndent,u=e.fontSize,s=e.fontFamily,f=e.headerHeight,d=e.TooltipContent,g=eo().styles,b=(0,p.useRef)(null),v=es((0,p.useState)(0),2),y=v[0],m=v[1],w=es((0,p.useState)(0),2),S=w[0],x=w[1];return(0,p.useEffect)(function(){if(b.current){var e,u=1.1*b.current.offsetHeight,s=1.1*b.current.offsetWidth,d=t.index*n-i+f;r?((e=t.x1-1.5*c-s-l)<0&&(e=t.x2+1.5*c-l),s+e>a&&(e=a-s,d+=n)):(s+(e=t.x2+1.5*c-l)>a&&(e=t.x1-1.5*c-l-s),e<0&&(e=a-s,d+=n)),u+d-i>o-i&&(d=o-u),m(d),x(e)}},[b,t,c,l,i,f,n,o,a,r]),h().createElement("div",{ref:b,className:(0,q.cx)(S?g.tooltipDetailsContainer:g.tooltipDetailsContainerHidden,g.nbGridOther),style:{left:S,top:y}},h().createElement(d,{task:t,fontSize:u,fontFamily:s}))},ed=function(e){var t,n,r,o,a,l,i,c,u=e.task,s=e.fontSize,f=e.fontFamily,d=eo().styles,p=(0,el.kj)(),g=(null==(n=u.end)||null==(t=n.getTime)?void 0:t.call(n))-(null==(o=u.start)||null==(r=o.getTime)?void 0:r.call(o))!=0?Math.round(((null==(l=u.end)||null==(a=l.getTime)?void 0:a.call(l))-(null==(c=u.start)||null==(i=c.getTime)?void 0:i.call(c)))/864e5*10)/10||"":null;return h().createElement("div",{className:(0,q.cx)(d.nbGridOther,d.tooltipDefaultContainer),"aria-label":"nb-gantt-tooltip",style:{fontSize:s,fontFamily:f}},h().createElement("b",{style:{fontSize:s}},p("Task date range",{name:u.name,start:ec(u.start),end:ec(u.end),interpolation:{escapeValue:!1}})),null!==g&&h().createElement("p",{className:"tooltipDefaultContainerParagraph"},p("Duration: {{value}} day(s)",{value:g,interpolation:{escapeValue:!1}})),h().createElement("p",{className:"tooltipDefaultContainerParagraph"},!!u.progress&&p("Progress: {{value}}%",{value:u.progress,interpolation:{escapeValue:!1}})))},ep=function(e){var t=e.scroll,n=e.ganttHeight,r=e.ganttFullHeight,o=e.headerHeight,a=e.rtl,l=e.onScroll,i=eo().styles,c=(0,p.useRef)(null);return(0,p.useEffect)(function(){c.current&&(c.current.scrollTop=t)},[t]),h().createElement("div",{style:{position:"absolute",top:o,bottom:0,right:a?void 0:0,left:a?0:void 0,maxHeight:n},className:(0,q.cx)(i.nbGridOther,"verticalScroll"),onScroll:l,ref:c},h().createElement("div",{style:{height:r,width:1}}))},eh=n(864);function eg(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function eb(){var e=eg(["\n color: ",";\n fill: ",";\n stroke-width: 1.4;\n background: ",";\n border-bottom: 1px solid ",";\n "]);return eb=function(){return e},e}function ev(){var e=eg(["\n font-size: 12px;\n font-weight: 400;\n fill: ",";\n text-anchor: middle;\n user-select: none;\n pointer-events: none;\n "]);return ev=function(){return e},e}function ey(){var e=eg(["\n .calendarBottomText,\n .calendarbottomtext {\n font-size: 12px;\n font-weight: 400;\n fill: ",";\n text-anchor: middle;\n user-select: none;\n pointer-events: none;\n }\n .calendarTopTick,\n .calendartoptick {\n stroke: ",";\n stroke-width: 0;\n }\n .calendarTopText,\n .calendartoptext {\n font-size: ","px;\n font-weight: 600;\n fill: ",";\n text-anchor: middle;\n user-select: none;\n pointer-events: none;\n }\n "]);return ey=function(){return e},e}var em=(0,Q.createStyles)(function(e){var t=e.token,n=e.css,r=new eh.q(t.colorFillAlter).onBackground(t.colorBgContainer).toHexShortString();return{calendarheader:n(eb(),t.colorText,r,r,t.colorBorderSecondary),calendarBottomText:n(ev(),t.colorTextSecondary),nbGanttCalendar:n(ey(),t.colorTextSecondary,t.colorBorderSecondary,t.fontSize,t.colorText)}}),ew=function(e){var t=e.value,n=e.x1Line,r=e.y1Line,o=e.y2Line,a=e.xText,l=e.yText;return h().createElement("g",{className:"calendarTop"},h().createElement("line",{x1:n,y1:r,x2:n,y2:o,className:(0,q.cx)("calendarTopTick"),key:t+"line"}),h().createElement("text",{key:t+"text",y:l,x:a,className:(0,q.cx)("calendarTopText")},t))};function eS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ex(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var a=[],l=!0,i=!1;try{for(o=o.call(e);!(l=(n=o.next()).done)&&(a.push(n.value),!t||a.length!==t);l=!0);}catch(e){i=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(i)throw r}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return eS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eS(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ek=function(e){var t,n,r,o,a,l,i,c=e.dateSetup,u=e.locale,s=e.viewMode,f=e.rtl,d=e.headerHeight,p=e.columnWidth,g=e.fontFamily,b=e.fontSize,v=em().styles,y=[],m=[];switch(c.viewMode){case H.Year:y=(t=ex(function(){for(var e=[],t=[],n=.5*d,r=0;r<c.dates.length;r++){var o=c.dates[r],a=o.getFullYear();if(t.push(h().createElement("text",{key:o.getTime(),y:.8*d,x:p*r+.5*p},a)),0===r||o.getFullYear()!==c.dates[r-1].getFullYear()){var l=o.getFullYear().toString(),i=void 0;i=f?(6+r+o.getFullYear()+1)*p:(6+r-o.getFullYear())*p,e.push(h().createElement(ew,{key:l,value:l,x1Line:p*r,y1Line:0,y2Line:d,xText:i,yText:.9*n}))}}return[e,t]}(),2))[0],m=t[1];break;case H.QuarterYear:y=(n=ex(function(){for(var e=[],t=[],n=.5*d,r=0;r<c.dates.length;r++){var o=c.dates[r],a="Q"+Math.floor((o.getMonth()+3)/3);if(t.push(h().createElement("text",{key:o.getTime(),y:.8*d,x:p*r+.5*p,className:v.calendarBottomText},a)),0===r||o.getFullYear()!==c.dates[r-1].getFullYear()){var l=o.getFullYear().toString(),i=void 0;i=f?(6+r+o.getMonth()+1)*p:(6+r-o.getMonth())*p,e.push(h().createElement(ew,{key:l,value:l,x1Line:p*r,y1Line:0,y2Line:n,xText:Math.abs(i)-200,yText:.9*n}))}}return[e,t]}(),2))[0],m=n[1];break;case H.Month:y=(r=ex(function(){for(var e=[],t=[],n=.5*d,r=0;r<c.dates.length;r++){var o=c.dates[r],a=V(o,u);if(t.push(h().createElement("text",{key:a+o.getFullYear(),y:.8*d,x:p*r+.5*p,className:v.calendarBottomText},a)),0===r||o.getFullYear()!==c.dates[r-1].getFullYear()){var l=o.getFullYear().toString(),i=void 0;i=f?(6+r+o.getMonth()+1)*p:(6+r-o.getMonth())*p,e.push(h().createElement(ew,{key:l,value:l,x1Line:p*r,y1Line:0,y2Line:n,xText:i,yText:.9*n}))}}return[e,t]}(),2))[0],m=r[1];break;case H.Week:y=(o=ex(function(){for(var e=[],t=[],n=1,r=.5*d,o=c.dates,a=o.length-1;a>=0;a--){var l=o[a],i="";(0===a||l.getMonth()!==o[a-1].getMonth())&&(i="".concat(V(l,u),", ").concat(l.getFullYear()));var s="W".concat(Z(l));t.push(h().createElement("text",{key:l.getTime(),y:.8*d,x:p*a+.5*p,className:v.calendarBottomText},s)),i&&(a!==o.length-1&&e.push(h().createElement(ew,{key:i,value:i,x1Line:p*a+n*p,y1Line:0,y2Line:r,xText:p*a+p*n*.5,yText:.9*r})),n=0),n++}return[e,t]}(),2))[0],m=o[1];break;case H.Day:y=(a=ex(function(){for(var e=[],t=[],n=.5*d,r=c.dates,o=0;o<r.length;o++){var a=r[o],l="".concat(a.getDate().toString());t.push(h().createElement("text",{key:a.getTime(),y:.8*d,x:p*o+.5*p,className:(0,q.cx)("calendarBottomText")},l))}for(var i=0,s=0;s<r.length;s++){var f=s+1===r.length,g=!f&&r[s].getMonth()!==r[s+1].getMonth();if(f||g){var b=r[i],v=g?s+1:r.length,y=V(b,u);e.push(h().createElement(ew,{key:"".concat(y,"-").concat(b.getFullYear(),"-").concat(i),value:y,x1Line:p*i,y1Line:0,y2Line:n,xText:p*(i+(v-i)*.5),yText:.9*n})),i=s+1}}return[e,t]}(),2))[0],m=a[1];break;case H.QuarterDay:case H.HalfDay:y=(l=ex(function(){for(var e=[],t=[],n=s===H.HalfDay?2:4,r=.5*d,o=c.dates,a=0;a<o.length;a++){var l=o[a],i=B(u,{hour:"numeric"}).format(l).replace("时","");if(t.push(h().createElement("text",{key:l.getTime(),y:.8*d,x:p*a+.5*p,className:(0,q.cx)("calendarBottomText"),fontFamily:g},i)),0===a||l.getDate()!==o[a-1].getDate()){var f="".concat(X(l,u,"short"),", ").concat(l.getDate()," ").concat(V(l,u));e.push(h().createElement(ew,{key:f+l.getFullYear(),value:f,x1Line:p*a+n*p,y1Line:0,y2Line:r,xText:p*a+n*p*.5,yText:.9*r}))}}return[e,t]}(),2))[0],m=l[1];break;case H.Hour:y=(i=ex(function(){for(var e=[],t=[],n=.5*d,r=c.dates,o=0;o<r.length;o++){var a,l=r[o],i=null==(a=B(u,{hour:"numeric"}).format(l))?void 0:a.replace("时","");if(t.push(h().createElement("text",{key:l.getTime(),y:.8*d,x:p*o+.5*p,className:(0,q.cx)("calendarBottomText"),fontFamily:g},i)),0!==o&&l.getDate()!==r[o-1].getDate()){var s=r[o-1],f="".concat(X(s,u,"long"),", ").concat(s.getDate()," ").concat(V(s,u)),b=(l.getHours()-24)/2;e.push(h().createElement(ew,{key:f+s.getFullYear(),value:f,x1Line:p*o,y1Line:0,y2Line:n,xText:p*(o+b),yText:.9*n}))}}return[e,t]}(),2))[0],m=i[1]}return h().createElement("g",{className:v.nbGanttCalendar,fontSize:b,fontFamily:g},h().createElement("rect",{x:0,y:0,width:p*c.dates.length,height:d,className:v.calendarheader}),m," ",y)};function eO(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function eT(){var e=eO(["\n fill: ",";\n "]);return eT=function(){return e},e}function eP(){var e=eO(["\n fill: ",";\n opacity: 0.8;\n "]);return eP=function(){return e},e}function eE(){var e=eO(["\n fill: ",";\n "]);return eE=function(){return e},e}function ej(){var e=eO(["\n stroke: ",";\n stroke-width: 1;\n "]);return ej=function(){return e},e}var eC=(0,Q.createStyles)(function(e){var t=e.token,n=e.css;return{gridBackground:n(eT(),t.colorBgContainer),gridColumnShade:n(eP(),t.colorFillAlter),gridSelectedRow:n(eE(),t.colorPrimaryBg),gridRowLine:n(ej(),t.colorBorderSecondary)}}),eM=function(e){var t=e.tasks,n=e.dates,r=e.rowHeight,o=e.svgWidth,a=e.columnWidth,l=e.todayColor,i=e.rtl,c=e.selectedRowKeys,u=eC().styles,s=t.length*r,f=new Set(null==c?void 0:c.map(function(e){return String(e)})),d=0,p=[],g=[h().createElement("line",{key:"RowLineFirst",x1:0,y1:0,x2:o,y2:0,className:u.gridRowLine})],b=!0,v=!1,y=void 0;try{for(var m,w=t[Symbol.iterator]();!(b=(m=w.next()).done);b=!0){var S=m.value;f.has(String(S.id))&&p.push(h().createElement("rect",{key:"Row"+S.id,x:0,y:d,width:o,height:r,className:u.gridSelectedRow})),g.push(h().createElement("line",{key:"RowLine"+S.id,x1:0,y1:d+r,x2:o,y2:d+r,className:u.gridRowLine})),d+=r}}catch(e){v=!0,y=e}finally{try{b||null==w.return||w.return()}finally{if(v)throw y}}for(var x=new Date,k=0,O=[],T=null,P=0;P<n.length;P++){var E=n[P];P%2==1&&O.push(h().createElement("rect",{key:"ColumnShade".concat(E.getTime()),x:k,y:0,width:a,height:s,className:u.gridColumnShade})),(P+1!==n.length&&E.getTime()<x.getTime()&&n[P+1].getTime()>=x.getTime()||0!==P&&P+1===n.length&&E.getTime()<x.getTime()&&_(E,E.getTime()-n[P-1].getTime(),"millisecond").getTime()>=x.getTime())&&(T=h().createElement("rect",{x:k,y:0,width:a,height:s,fill:l})),i&&P+1!==n.length&&E.getTime()>=x.getTime()&&n[P+1].getTime()<x.getTime()&&(T=h().createElement("rect",{x:k+a,y:0,width:a,height:s,fill:l})),k+=a}return h().createElement("g",{className:(0,q.cx)("gridBody")},h().createElement("g",{className:"background"},h().createElement("rect",{x:0,y:0,width:o,height:s,className:u.gridBackground})),h().createElement("g",{className:"columns"},O),h().createElement("g",{className:"today"},T),h().createElement("g",{className:"rows"},p),h().createElement("g",{className:"rowLines"},g))},eD=function(e){return h().createElement("g",{className:"grid"},h().createElement(eM,e))};function eA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function eF(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var a=[],l=!0,i=!1;try{for(o=o.call(e);!(l=(n=o.next()).done)&&(a.push(n.value),!t||a.length!==t);l=!0);}catch(e){i=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(i)throw r}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return eA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eA(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var eR=function(e){var t,n,r,o,a=e.taskFrom,l=e.taskTo,i=e.rowHeight,c=e.taskHeight,u=e.arrowIndent;return e.rtl?(t=(r=eF(ez(a,l,i,c,u),2))[0],n=r[1]):(t=(o=eF(eN(a,l,i,c,u),2))[0],n=o[1]),h().createElement("g",{className:"arrow"},h().createElement("path",{strokeWidth:"1.5",d:t,fill:"none"}),h().createElement("polygon",{points:n}))},eN=function(e,t,n,r,o){var a=e.index>t.index?-1:1,l=t.y+r/2,i=e.x2+2*o,c=i<t.x1?"":"H ".concat(t.x1-o),u=i>t.x1?o:t.x1-e.x2-o;return["M ".concat(e.x2," ").concat(e.y+r/2," \n h ").concat(o," \n v ").concat(a*n/2," \n ").concat(c,"\n V ").concat(l," \n h ").concat(u),"".concat(t.x1,",").concat(l," \n ").concat(t.x1-5,",").concat(l-5," \n ").concat(t.x1-5,",").concat(l+5)]},ez=function(e,t,n,r,o){var a=e.index>t.index?-1:1,l=t.y+r/2,i=e.x1-2*o,c=i>t.x2?"":"H ".concat(t.x2+o),u=i<t.x2?-o:t.x2-e.x1+o;return["M ".concat(e.x1," ").concat(e.y+r/2," \n h ").concat(-o," \n v ").concat(a*n/2," \n ").concat(c,"\n V ").concat(l," \n h ").concat(u),"".concat(t.x2,",").concat(l," \n ").concat(t.x2+5,",").concat(l+5," \n ").concat(t.x2+5,",").concat(l-5)]},eI=function(e){var t=e.x,n=e.y,r=e.width,o=e.height,a=e.barCornerRadius,l=e.onMouseDown;return h().createElement("rect",{x:t,y:n,width:r,height:o,className:"barHandle",role:"button",ry:a,rx:a,onMouseDown:l})};function eW(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function eH(){var e=eW(["\n cursor: pointer;\n outline: none;\n .barHandle {\n fill: #ddd;\n cursor: ew-resize;\n opacity: 0;\n }\n &:hover .barHandle {\n opacity: 1;\n }\n &:hover .barProgressHandle {\n opacity: 1;\n }\n"]);return eH=function(){return e},e}function eL(){var e=eW(["\n user-select: none;\n stroke-width: 0;\n opacity: 0.6;\n"]);return eL=function(){return e},e}var eB=(0,q.css)(eH()),e_=(0,q.css)(eL()),eG=function(e){var t=e.x,n=e.y,r=e.color,o=e.width,a=e.height,l=e.isSelected,i=e.progressX,c=e.progressWidth,u=e.barCornerRadius,s=e.styles,f=e.onMouseDown;return h().createElement("g",{onMouseDown:f},h().createElement("rect",{x:t,width:o,y:n,height:a,ry:u,rx:u,fill:r||(l?s.backgroundSelectedColor:s.backgroundColor),className:(0,q.cx)(e_)}),h().createElement("rect",{x:i,width:c,y:n,height:a,ry:u,rx:u,fill:r||(l?s.progressSelectedColor:s.progressColor)}))},eY=function(e){var t=e.progressPoint,n=e.onMouseDown;return h().createElement("polygon",{className:"barHandle barProgressHandle",points:t,onMouseDown:n})},eU=function(e){var t=e.task,n=e.isProgressChangeable,r=e.isDateChangeable,o=e.rtl,a=e.onEventStart,l=e.isSelected,i=D(!o*t.progressWidth+t.progressX,t.y,t.height),c=t.height-2;return h().createElement("g",{className:(0,q.cx)(eB),"aria-label":"task-bar",tabIndex:0},h().createElement(eG,{x:t.x1,y:t.y,color:t.color,width:t.x2-t.x1,height:t.height,progressX:t.progressX,progressWidth:t.progressWidth,barCornerRadius:t.barCornerRadius,styles:t.styles,isSelected:l,onMouseDown:function(e){r&&a("move",t,e)}}),h().createElement("g",{className:"handleGroup"},r&&h().createElement("g",null,h().createElement(eI,{x:t.x1+1,y:t.y+1,width:t.handleWidth,height:c,barCornerRadius:t.barCornerRadius,onMouseDown:function(e){a("start",t,e)}}),h().createElement(eI,{x:t.x2-t.handleWidth-1,y:t.y+1,width:t.handleWidth,height:c,barCornerRadius:t.barCornerRadius,onMouseDown:function(e){a("end",t,e)}})),n&&h().createElement(eY,{progressPoint:i,onMouseDown:function(e){a("progress",t,e)}})))},eV=function(e){var t=e.task,n=e.isProgressChangeable,r=e.isDateChangeable,o=e.onEventStart,a=e.isSelected,l=D(t.progressWidth+t.x1+10,t.y,t.height);return h().createElement("g",{className:(0,q.cx)(eB),tabIndex:0},h().createElement(eG,{x:t.x1,y:t.y,width:t.x2-t.x1,height:t.height,progressX:t.progressX,progressWidth:t.progressWidth,barCornerRadius:t.barCornerRadius,styles:t.styles,isSelected:a,onMouseDown:function(e){r&&o("move",t,e)}}),h().createElement("g",{className:"handleGroup"},n&&h().createElement(eY,{progressPoint:l,onMouseDown:function(e){o("progress",t,e)}})))};function eX(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function eK(){var e=eX(["\n cursor: pointer;\n outline: none;\n"]);return eK=function(){return e},e}function eZ(){var e=eX(["\n user-select: none;\n"]);return eZ=function(){return e},e}var eq=(0,q.css)(eK()),eQ=(0,q.css)(eZ()),e$=function(e){var t=e.task,n=e.isDateChangeable,r=e.onEventStart,o=e.isSelected,a="rotate(45 ".concat(t.x1+.356*t.height," \n ").concat(t.y+.85*t.height,")");return h().createElement("g",{tabIndex:0,className:(0,q.cx)(eq)},h().createElement("rect",{fill:o?t.styles.backgroundSelectedColor:t.styles.backgroundColor,x:t.x1,width:t.height,y:t.y,height:t.height,rx:t.barCornerRadius,ry:t.barCornerRadius,transform:a,className:(0,q.cx)(eQ),onMouseDown:function(e){n&&r("move",t,e)}}))};function eJ(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function e0(){var e=eJ(["\n cursor: pointer;\n outline: none;\n"]);return e0=function(){return e},e}function e1(){var e=eJ(["\n user-select: none;\n opacity: 0.6;\n"]);return e1=function(){return e},e}function e2(){var e=eJ(["\n user-select: none;\n"]);return e2=function(){return e},e}var e5=(0,q.css)(e0()),e6=(0,q.css)(e1());(0,q.css)(e2());var e3=function(e){var t=e.task,n=e.isSelected,r=n?t.styles.backgroundSelectedColor:t.styles.backgroundColor,o=n?t.styles.progressSelectedColor:t.styles.progressColor,a=t.x2-t.x1;return h().createElement("g",{tabIndex:0,className:(0,q.cx)(e5)},h().createElement("rect",{fill:t.color||r,x:t.x1,width:a,y:t.y,height:t.height,rx:t.barCornerRadius,ry:t.barCornerRadius,className:(0,q.cx)(e6)}),h().createElement("rect",{x:t.progressX,width:t.progressWidth,y:t.y,height:t.height,ry:t.barCornerRadius,rx:t.barCornerRadius,fill:t.color||o}))};function e4(){var e,t,n=(e=["\n cursor: pointer;\n .barLabel: {\n fill: ",",\n textAnchor: middle,\n font-weight: 400,\n dominantBaseline: central,\n WebkitTouchCallout: none,\n WebkitUserSelect: none,\n MozUserSelect: none,\n msUserSelect: none,\n userSelect: none,\n pointerEvents: none,\n cursor: pointer,\n },\n .projectLabel: {\n fill: #130d0d,\n fontWeight: 500,\n fontSize: 0.9em,\n dominantBaseline: central,\n WebkitTouchCallout: none,\n WebkitUserSelect: none,\n MozUserSelect: none,\n msUserSelect: none,\n userSelect: none,\n pointerEvents: none,\n cursor: pointer,\n },\n .barLabelOutside: {\n fill: ",",\n textAnchor: start,\n WebkitTouchCallout: none,\n WebkitUserSelect: none,\n MozUserSelect: none,\n msUserSelect: none,\n userSelect: none,\n pointerEvents: none,\n cursor: pointer,\n },\n }\n }"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return e4=function(){return n},n}var e8=(0,Q.createStyles)(function(e){var t=e.token;return{nbganttTaskitem:(0,e.css)(e4(),t.colorTextLightSolid,t.colorTextLabel)}});function e7(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var e9=function(e){var t,n,r,o=e8().styles,a=(0,el.kj)(),l=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},e),i=l.task,c=l.arrowIndent,u=l.isDelete,s=l.taskHeight,f=l.rtl,d=l.onEventStart,g=(0,p.useRef)(null),b=function(e){if(Array.isArray(e))return e}(t=(0,p.useState)(0))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(t=r.next()).done)&&(o.push(t.value),2!==o.length);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw n}}return o}}(t)||function(e){if(e){if("string"==typeof e)return e7(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return e7(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),v=b[0],y=b[1],m="project"===i.typeInternal,w=m&&ec(i.start)&&ec(i.end)?a("Task date range",{name:i.name,start:ec(i.start),end:ec(i.end),interpolation:{escapeValue:!1}}):i.name,S=v<i.x2-i.x1;return(0,p.useEffect)(function(){if(g.current){var e=g.current.getBBox().width;y(function(t){return t===e?t:e})}},[w,i.x1,i.x2]),h().createElement("g",{className:(0,q.cx)(o.nbganttTaskitem),onKeyDown:function(e){"Delete"===e.key&&u&&d("delete",i,e),e.stopPropagation()},onMouseEnter:function(e){d("mouseenter",i,e)},onMouseLeave:function(e){d("mouseleave",i,e)},onDoubleClick:function(e){d("dblclick",i,e)},onClick:function(e){d("click",i,e)},onFocus:function(){d("select",i)}},function(){switch(i.typeInternal){case"milestone":return h().createElement(e$,e);case"project":return h().createElement(e3,e);case"smalltask":return h().createElement(eV,e);default:return h().createElement(eU,e)}}(),h().createElement("text",{x:m?i.x1:(n=i.x2-i.x1,r=i.barChildren.length>0,S?i.x1+.5*n:f?i.x1-v-c*r-.2*c:i.x1+n+c*r+.2*c),y:m?i.y-8:i.y+.65*s,className:m?(0,q.cx)("projectLabel"):S?(0,q.cx)("barLabel"):(0,q.cx)("barLabelOutside"),ref:g},w))};function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function tt(e,t,n,r,o,a,l){try{var i=e[a](l),c=i.value}catch(e){n(e);return}i.done?t(c):Promise.resolve(c).then(r,o)}function tn(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function l(e){tt(a,r,o,l,i,"next",e)}function i(e){tt(a,r,o,l,i,"throw",e)}l(void 0)})}}function tr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var a=[],l=!0,i=!1;try{for(o=o.call(e);!(l=(n=o.next()).done)&&(a.push(n.value),!t||a.length!==t);l=!0);}catch(e){i=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(i)throw r}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return te(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return te(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function to(e,t){var n,r,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),i=Object.defineProperty;return i(l,"next",{value:c(0)}),i(l,"throw",{value:c(1)}),i(l,"return",{value:c(2)}),"function"==typeof Symbol&&i(l,Symbol.iterator,{value:function(){return this}}),l;function c(i){return function(c){var u=[i,c];if(n)throw TypeError("Generator is already executing.");for(;l&&(l=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var ta=function(e){var t=e.tasks,n=e.dates,r=e.ganttEvent,o=e.selectedTask,a=e.rowHeight,l=e.columnWidth,i=e.timeStep,c=e.svg,u=e.taskHeight,s=e.arrowColor,f=e.arrowIndent,d=e.fontFamily,g=e.fontSize,b=e.rtl,v=e.setGanttEvent,y=e.setFailedTask,m=e.setSelectedTask,w=e.onDateChange,S=e.onProgressChange,x=e.onDoubleClick,k=e.onClick,O=e.onDelete,T=e.enableDragToReschedule,P=void 0===T||T,E=tr((0,p.useState)(0),2),j=E[0],C=E[1],M=tr((0,p.useState)(0),2),D=M[0],A=M[1],F=(0,p.useRef)(null),R=(0,p.useRef)(null),N=(0,p.useRef)(r),I=(0,p.useRef)(j),W=(0,p.useRef)(D),H=(0,p.useRef)(b),L=(0,p.useRef)(null);N.current=r,I.current=j,W.current=D,H.current=b;var B=(0,p.useMemo)(function(){return new Map(t.map(function(e){return[String(e.id),e]}))},[t]),_=!!r.changedTask;(0,p.useEffect)(function(){return function(){L.current&&clearTimeout(L.current)}},[]),(0,p.useEffect)(function(){var e,t,r,o;C(i*l/((null==(e=n[1])?void 0:e.getTime())-(null==(t=n[0])?void 0:t.getTime())-(null==(r=n[1])?void 0:r.getTimezoneOffset())*6e4+(null==(o=n[0])?void 0:o.getTimezoneOffset())*6e4))},[l,n,i]);var G=(0,p.useCallback)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==c?void 0:c.current,n=null==t?void 0:t.getScreenCTM();if(!t||!n)return null;var r=t.createSVGPoint();return r.x=e.clientX,r.matrixTransform(n.inverse()).x},[c]);(0,p.useEffect)(function(){var e=null==c?void 0:c.current,t=function(t){return tn(function(){var n,r,o,a,l;return to(this,function(c){var u,s;return(n=N.current).changedTask&&e&&(t.preventDefault(),null!==(r=G(t,e)))?(a=(o=z(r,n.action,n.changedTask,I.current,i,W.current,H.current)).isChanged,l=o.changedTask,a&&v((u=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},n),s=s={changedTask:l},Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(s)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(s)).forEach(function(e){Object.defineProperty(u,e,Object.getOwnPropertyDescriptor(s,e))}),u)),[2]):[2]})})()},n=function(r){return tn(function(){var o,a,l,c,u,s,f,d,p,h;return to(this,function(g){switch(g.label){case 0:if(a=(o=N.current).action,l=o.originalSelectedTask,!(c=o.changedTask)||!e||!l||(r.preventDefault(),null===(u=G(r,e))))return window.removeEventListener("mousemove",t),window.removeEventListener("mouseup",n),v({action:""}),[2];if(s=z(u,a,c,I.current,i,W.current,H.current).changedTask,f=l.start!==s.start||l.end!==s.end||l.progress!==s.progress,window.removeEventListener("mousemove",t),window.removeEventListener("mouseup",n),v({action:""}),d=!0,!(("move"===a||"end"===a||"start"===a)&&w&&f))return[3,5];g.label=1;case 1:return g.trys.push([1,3,,4]),[4,w(s,s.barChildren)];case 2:return void 0!==(p=g.sent())&&(d=p),[3,4];case 3:return g.sent(),d=!1,[3,4];case 4:return[3,9];case 5:if(!(S&&f))return[3,9];g.label=6;case 6:return g.trys.push([6,8,,9]),[4,S(s,s.barChildren)];case 7:return void 0!==(h=g.sent())&&(d=h),[3,9];case 8:return g.sent(),d=!1,[3,9];case 9:return d||y(l),[2]}})})()};return("move"===r.action||"end"===r.action||"start"===r.action||"progress"===r.action)&&_&&e&&(window.addEventListener("mousemove",t),window.addEventListener("mouseup",n)),function(){window.removeEventListener("mousemove",t),window.removeEventListener("mouseup",n)}},[r.action,_,S,i,w,c,G,y,v]);var Y=function(e,t,n){return tn(function(){var r,o,a,l;return to(this,function(i){switch(i.label){case 0:if(n)return[3,1];return"select"===e&&m(t.id),[3,7];case 1:if(void 0===n.key)return[3,6];if("delete"!==e||!O)return[3,5];i.label=2;case 2:return i.trys.push([2,4,,5]),[4,O(t)];case 3:return void 0!==(r=i.sent())&&r&&v({action:e,changedTask:t}),[3,5];case 4:return console.error("Error on Delete. "+i.sent()),[3,5];case 5:return[3,7];case 6:if("mouseenter"===e)L.current&&(clearTimeout(L.current),L.current=null),(o=N.current).action&&"mouseenter"!==o.action||v({action:e,changedTask:t,originalSelectedTask:t});else if("mouseleave"===e)a=t.id,"mouseenter"===N.current.action&&(L.current&&clearTimeout(L.current),L.current=setTimeout(function(){var e,t=N.current;"mouseenter"===t.action&&(null==(e=t.changedTask)?void 0:e.id)===a&&v({action:""}),L.current=null},300));else if("dblclick"===e)x&&x(t);else if("click"===e)v({action:""}),k&&k(t);else if("move"===e){if(null===(l=G(n)))return[2];A(l-t.x1),v({action:e,changedTask:t,originalSelectedTask:t})}else v({action:e,changedTask:t,originalSelectedTask:t});i.label=7;case 7:return[2]}})})()},U=function(e,t,n){["click"].includes(e)?(["start","end","progress"].includes(F.current)||R.current&&R.current!==t.start||Y(e,t,n),F.current=null,R.current=null):(["move","select"].includes(e)?R.current=t.start:(R.current=t.start,F.current=e),Y(e,t,n))};return h().createElement("g",{className:"content"},h().createElement("g",{className:"arrows",fill:s,stroke:s},t.map(function(e){return e.barChildren.map(function(t){var n=B.get(String(t.id));return n?h().createElement(eR,{key:"Arrow from ".concat(e.id," to ").concat(t.id),taskFrom:e,taskTo:n,rowHeight:a,taskHeight:u,arrowIndent:f,rtl:b}):null})})),h().createElement("g",{className:"bar",fontFamily:d,fontSize:g},t.map(function(e){return h().createElement(e9,{task:e,arrowIndent:f,taskHeight:u,isProgressChangeable:!!S&&!e.isDisabled,isDateChangeable:P&&!!w&&!e.isDisabled,isDelete:!e.isDisabled,onEventStart:U,key:e.id,isSelected:!!o&&e.id===o.id,rtl:b})})))};function tl(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function ti(){var e=tl(["\n overflow: hidden;\n font-size: 0;\n margin: 0;\n padding: 0;\n width: 100%;\n border-left: 2px solid ",";\n overflow-x: hidden;\n .ganttHeader {\n border-bottom: 1px solid ",";\n font-weight: normal;\n }\n .ganttBody {\n border-bottom: 1px solid ",";\n }\n "]);return ti=function(){return e},e}function tc(){var e=tl(["\n margin: 0;\n padding: 0;\n overflow: hidden;\n "]);return tc=function(){return e},e}function tu(){var e=tl(["\n display: flex;\n padding: 0;\n margin: 0;\n list-style: none;\n outline: none;\n position: relative;\n .gantt-horizontal-scoll {\n display: none;\n }\n &:hover {\n .gantt-horizontal-scoll {\n display: block;\n }\n }\n "]);return tu=function(){return e},e}var ts=(0,Q.createStyles)(function(e){var t=e.token,n=e.css;return{ganttverticalcontainer:n(ti(),t.colorBorderSecondary,t.colorBorderSecondary,t.colorBorderSecondary),horizontalcontainer:n(tc()),wrapper:n(tu())}}),tf=(0,p.forwardRef)(function(e,t){var n,r,o=e.gridProps,a=e.calendarProps,l=e.barProps,i=e.ganttHeight,c=e.ganttFullHeight,u=e.scrollY,s=e.onHorizontalScroll,f=e.showLeftBorder,g=(0,p.useRef)(null),b=(0,p.useRef)(null),v=(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},l),r=r={svg:g},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n),y=ts().styles;return(0,p.useEffect)(function(){b.current&&(b.current.scrollTop=u)},[u]),(0,p.useEffect)(function(){var e=t.current;if(e&&s){var n=function(){s(e.scrollLeft)};return e.addEventListener("scroll",n),function(){e.removeEventListener("scroll",n)}}},[s,t]),h().createElement("div",{className:y.ganttverticalcontainer,ref:t,dir:"ltr",style:{borderLeft:void 0===f||f?void 0:"none"}},h().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o.svgWidth,height:a.headerHeight,fontFamily:l.fontFamily,className:"ganttHeader"},h().createElement(ek,a)),h().createElement(d.Spin,{spinning:null==l?void 0:l.loading},h().createElement("div",{ref:b,className:y.horizontalcontainer,style:i?{maxHeight:i,width:o.svgWidth}:{width:o.svgWidth}},h().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o.svgWidth,height:null!=c?c:l.rowHeight*l.tasks.length,fontFamily:l.fontFamily,ref:g,className:"ganttBody"},h().createElement(eD,o),h().createElement(ta,v)))))});tf.displayName="TaskGantt";var td=function(e,t){return Math.max(0,e-t)},tp=function(e,t){var n=Math.max(0,t);return Number.isFinite(e)?Math.min(Math.max(0,e),n):0},th=function(e){var t=e.scrollLeft,n=e.fromMaxScrollLeft,r=e.toMaxScrollLeft,o=Math.max(0,n),a=Math.max(0,r);return 0===a?0:0===o?tp(t,a):tp(t,o)/o*a},tg=function(e,t){var n,r,o=null==(r=e.collection)||null==(n=r.getFilterByTK)?void 0:n.call(r,t);return null!=o?(void 0===o?"undefined":o&&"u">typeof Symbol&&o.constructor===Symbol?"symbol":typeof o)=="object"?JSON.stringify(o):String(o):String(null==t?void 0:t.id)},tb=function(e){return(null==e?void 0:e.getBoundingClientRect().height)||0},tv=function(e){var t=[];return null==e||e.split(".").forEach(function(e){isNaN(Number(e))||t.push(String(Number(e)+1))}),t.join(".")},ty=function(e){var t=e.page,n=e.pageSize,r=e.rowIndex,o=e.rowPath;return o?tv(o):r+((t||1)-1)*(n||20)+1};function tm(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function tw(){var e=tm(["\n .ant-table-container::after {\n box-shadow: none !important;\n }\n "]);return tw=function(){return e},e}function tS(){var e=tm(["\n position: relative;\n display: flex;\n align-items: stretch;\n width: 100%;\n overflow: hidden;\n border: 1px solid ",";\n border-radius: ","px;\n "]);return tS=function(){return e},e}function tx(){var e=tm(["\n flex: 0 0 min(","px, calc(100% - 160px));\n width: min(","px, calc(100% - 160px));\n max-width: calc(100% - 160px);\n min-width: ","px;\n background: ",";\n border-inline-end: 1px solid ",";\n overflow: hidden;\n ","\n "]);return tx=function(){return e},e}function tk(){var e=tm(["\n .ant-table {\n background: ",";\n }\n .ant-table-cell {\n border-color: ",";\n white-space: nowrap;\n }\n .ant-table-tbody > tr {\n height: ","px;\n }\n .ant-table-tbody > tr > td {\n height: ","px;\n }\n .nb-gantt-table-index {\n opacity: 0;\n }\n .nb-gantt-row-selection:not(.checked) .nb-gantt-table-index {\n opacity: 1;\n }\n .nb-gantt-row-selection:hover .nb-gantt-table-index {\n opacity: 0;\n }\n .nb-gantt-origin-node {\n opacity: 0;\n pointer-events: none;\n }\n .nb-gantt-row-selection:hover .nb-gantt-origin-node,\n .nb-gantt-origin-node.checked {\n opacity: 1;\n pointer-events: auto;\n }\n ","\n "]);return tk=function(){return e},e}function tO(){var e=tm(["\n flex: 1 1 auto;\n min-width: 0;\n position: relative;\n ","\n ","\n "]);return tO=function(){return e},e}function tT(){var e=tm(["\n display: flex;\n justify-content: flex-end;\n padding-top: ","px;\n "]);return tT=function(){return e},e}var tP=function(e){var t=e.token,n=e.tableWidth,r=e.hasVerticalScroll,o=e.hasHorizontalScroll,a=e.hasHorizontalTableScroll,l=e.rowHeight;return{tableClass:(0,q.cx)((0,q.css)(tw())),contentClass:(0,q.cx)((0,q.css)(tS(),t.colorBorderSecondary,t.borderRadius)),actionsColumnClass:(0,q.cx)((0,q.css)(tx(),n,n,Math.min(n,120),t.colorBgContainer,t.colorBorderSecondary,o&&!a?"padding-bottom: 16px;":"")),actionsTableClass:(0,q.cx)((0,q.css)(tk(),t.colorBgContainer,t.colorSplit,l,l,r?"\n .ant-table-body,\n .ant-table-content {\n overflow-y: scroll !important;\n scrollbar-gutter: stable;\n }\n ":"")),chartClass:(0,q.cx)((0,q.css)(tO(),o?"padding-bottom: 16px;":"",r?"padding-inline-end: 1rem;":"")),paginationClass:(0,q.cx)((0,q.css)(tT(),t.paddingSM))}};function tE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function tj(e,t){if(e){if("string"==typeof e)return tE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tE(e,t)}}var tC="__ganttChildren",tM=function(e){var t=e.project;return null==t?void 0:String(t)},tD=function(e){var t=new Map,n=new Map,r=new Map;e.forEach(function(e){t.set(String(e.id),e)}),e.forEach(function(e){var r=tM(e);if(r&&t.has(r)){var o=n.get(r)||[];o.push(e),n.set(r,o)}});var o=e.filter(function(e){var n=tM(e);return!n||!t.has(n)}),a=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set,o=String(e.id),l=r.get(o);if(void 0!==l)return l;var i=tM(e),c=i?t.get(i):void 0;if(!c||n.has(o))return r.set(o,0),0;n.add(o);var u=a(c,n)+1;return n.delete(o),r.set(o,u),u};return e.forEach(function(e){a(e)}),{childrenByParent:n,depthByTaskId:r,roots:o}},tA=function(e){var t=e.expandedRowKeySet,n=e.tasks,r=e.treeTableEnabled,o=e.treeMeta;if(!r)return n;var a=o||tD(n),l=a.childrenByParent,i=a.roots,c=[],u=function(e){c.push(e);var n=l.get(String(e.id))||[];n.length&&t.has(String(e.id))&&n.forEach(u)};return i.forEach(u),c},tF=function(e,t){var n=(t||tD(e)).childrenByParent;return e.filter(function(e){return(n.get(String(e.id))||[]).length>0}).map(function(e){return String(e.id)})},tR=function(e){var t=e.tasks;return e.treeTableEnabled?t:((function(e){if(Array.isArray(e))return tE(e)})(t)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||tj(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).sort(ei)},tN=function(e){var t=e.tasks,n=e.treeTableEnabled,r=e.treeMeta,o=tR({tasks:t,treeTableEnabled:n}),a=r||tD(o),l=a.childrenByParent,i=a.depthByTaskId,c=a.roots,u=0,s=function(e,t,r){var o,a,c,f=l.get(String(e.id))||[],d=r?"".concat(r,".children.").concat(t):"".concat(t),p=(o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},e.record),a=a={__index:d,__ganttTaskId:e.id,__ganttTaskIndex:u++,__ganttTaskIndexPath:d,__ganttTaskDepth:null!=(c=i.get(String(e.id)))?c:0,__ganttHasChildren:f.length>0},Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(a)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(a)).forEach(function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(a,e))}),o);return n&&f.length&&(p[tC]=f.map(function(e,t){return s(e,t,d)})),p};return n?c.map(function(e,t){return s(e,t)}):o.map(function(e,t){return s(e,t)})},tz=function(e){var t,n=e.model,r=e.tasks,o=e.tableColumns,a=n.isTreeTableEnabled(),l=n.shouldDefaultExpandAllRows(),i=function(e){if(Array.isArray(e))return e}(t=(0,p.useState)([]))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(t=r.next()).done)&&(o.push(t.value),2!==o.length);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw n}}return o}}(t)||tj(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),c=i[0],u=i[1],s=(0,p.useMemo)(function(){return new Set(c.map(function(e){return String(e)}))},[c]),f=(0,p.useMemo)(function(){return tR({tasks:r,treeTableEnabled:a})},[r,a]),d=(0,p.useMemo)(function(){return tD(f)},[f]),h=(0,p.useMemo)(function(){return tF(f,d)},[f,d]),g=(0,p.useMemo)(function(){return tA({expandedRowKeySet:s,tasks:f,treeTableEnabled:a,treeMeta:d})},[s,f,a,d]),b=(0,p.useMemo)(function(){return tN({tasks:f,treeTableEnabled:a,treeMeta:d})},[f,a,d]);(0,p.useEffect)(function(){if(!a){u([]),n.setTreeExpandFlag(!1);return}l&&u(h)},[l,h,n,a]),(0,p.useEffect)(function(){if(a){var e=function(){u(h)},t=function(){u([])};return n.emitter.on("expandAllTreeRows",e),n.emitter.on("collapseAllTreeRows",t),function(){n.emitter.off("expandAllTreeRows",e),n.emitter.off("collapseAllTreeRows",t)}}},[h,n,a]),(0,p.useEffect)(function(){var e=new Set(c.map(function(e){return String(e)})),t=a&&h.length>0&&h.every(function(t){return e.has(String(t))});n.setTreeExpandFlag(t)},[h,c,n,a]);var v=(0,p.useMemo)(function(){if(a)return{expandedRowKeys:c,onExpand:function(e,t){u(function(n){var r=String(t.__ganttTaskId),o=new Set(n.map(function(e){return String(e)}));return e?o.add(r):o.delete(r),Array.from(o)})}}},[c,a]);return{treeTableEnabled:a,visibleTasks:g,tableRecords:b,resolvedTableColumns:o,expandable:v}};function tI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function tW(e,t,n,r,o,a,l){try{var i=e[a](l),c=i.value}catch(e){n(e);return}i.done?t(c):Promise.resolve(c).then(r,o)}function tH(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function l(e){tW(a,r,o,l,i,"next",e)}function i(e){tW(a,r,o,l,i,"throw",e)}l(void 0)})}}function tL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tB(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function t_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){tL(e,t,n[t])})}return e}function tG(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var a=[],l=!0,i=!1;try{for(o=o.call(e);!(l=(n=o.next()).done)&&(a.push(n.value),!t||a.length!==t);l=!0);}catch(e){i=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(i)throw r}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return tI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tI(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tY(e,t){var n,r,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),i=Object.defineProperty;return i(l,"next",{value:c(0)}),i(l,"throw",{value:c(1)}),i(l,"return",{value:c(2)}),"function"==typeof Symbol&&i(l,Symbol.iterator,{value:function(){return this}}),l;function c(i){return function(c){var u=[i,c];if(n)throw TypeError("Generator is already executing.");for(;l&&(l=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var tU=(0,f.observer)(function(e){var t,n,r,o,a,l,i,c,u,s=e.model,f=d.theme.useToken().token,g=s.props||{},v=g.ganttHeight,y=void 0===v?0:v,m=g.preStepsCount,w=void 0===m?1:m,x=g.barFill,k=void 0===x?60:x,O=g.barCornerRadius,T=void 0===O?f.borderRadiusXS:O,P=g.barProgressColor,E=void 0===P?f.colorPrimary:P,j=g.barProgressSelectedColor,C=void 0===j?f.colorPrimary:j,M=g.barBackgroundColor,D=void 0===M?f.colorPrimary:M,A=g.barBackgroundSelectedColor,F=void 0===A?f.colorPrimary:A,R=g.projectProgressColor,N=void 0===R?f.colorPrimary:R,z=g.projectProgressSelectedColor,I=void 0===z?f.colorPrimary:z,W=g.projectBackgroundColor,H=void 0===W?f.colorPrimary:W,L=g.projectBackgroundSelectedColor,B=void 0===L?f.colorPrimary:L,_=g.milestoneBackgroundColor,G=void 0===_?f.colorWarning:_,V=g.milestoneBackgroundSelectedColor,X=void 0===V?f.colorWarningActive:V,K=g.rtl,Z=void 0!==K&&K,q=g.handleWidth,Q=void 0===q?f.sizeXXS:q,$=g.timeStep,J=g.arrowColor,ee=void 0===J?f.colorTextSecondary:J,et=g.fontFamily,en=void 0===et?f.fontFamily:et,er=g.fontSize,eo=void 0===er?f.fontSize:er,el=g.arrowIndent,ei=void 0===el?f.margin:el,ec=g.todayColor,eu=void 0===ec?f.colorPrimaryBg:ec,es=g.viewDate,eh=g.TooltipContent,eg=g.enableDragToReschedule,eb=f.controlHeight+f.paddingSM,ev=f.controlHeightLG+f.marginLG,ey=s.getFieldNames().range||"day",em=(0,p.useRef)(null),ew=(0,p.useRef)(null),eS=(0,p.useRef)(null),ex=(0,p.useRef)(null),ek=(0,p.useRef)(null),eO=(0,p.useRef)(null),eT=tG((0,p.useState)({headerHeight:eb,rowHeight:ev}),2),eP=eT[0],eE=eT[1],ej=tG((0,p.useState)(function(){return s.getTasks()}),2),eC=ej[0],eM=ej[1],eD=tG((0,p.useState)(function(){var e=tG(Y(eC,ey,w),2);return{viewMode:ey,dates:U(e[0],e[1],ey)}}),2),eA=eD[0],eF=eD[1],eR=tG((0,p.useState)(void 0),2),eN=eR[0],ez=eR[1],eI=tG((0,p.useState)(0),2),eW=eI[0],eH=eI[1],eL=tG((0,p.useState)(0),2),eB=eL[0],e_=eL[1],eG=tG((0,p.useState)(0),2),eY=eG[0],eU=eG[1],eV=tG((0,p.useState)(y),2),eX=eV[0],eK=eV[1],eZ=tG((0,p.useState)([]),2),eq=eZ[0],eQ=eZ[1],e$=tG((0,p.useState)({action:""}),2),eJ=e$[0],e0=e$[1],e1=eP.headerHeight,e2=eP.rowHeight,e5=(0,p.useMemo)(function(){return e2*k/100},[e2,k]),e6=tG((0,p.useState)(),2),e3=e6[0],e4=e6[1],e8=tG((0,p.useState)(null),2),e7=e8[0],e9=e8[1],te=tG((0,p.useState)(0),2),tt=te[0],tn=te[1],tr=(0,p.useRef)(!1),to=(0,p.useRef)(0),ta=(0,p.useRef)(-1),tl=(0,p.useCallback)(function(e){to.current=e,tn(e)},[]),ti=(0,p.useMemo)(function(){return(0,b.debounce)(function(e){return tH(function(){var t,n,r;return tY(this,function(o){switch(o.label){case 0:return n=s.getFieldNames(),[4,s.resource.update(s.getRecordFilterByTk(e.record,e.id),(tL(r={},n.start,e.start),tL(r,n.end,e.end),r))];case 1:return o.sent(),null==(t=s.context.message)||t.success(s.context.t("Saved successfully")),[2]}})})()},300)},[s]),tc=(0,p.useMemo)(function(){return(0,b.debounce)(function(e){return tH(function(){var t,n;return tY(this,function(r){switch(r.label){case 0:return n=s.getFieldNames(),[4,s.resource.update(s.getRecordFilterByTk(e.record,e.id),tL({},n.progress,e.progress/100))];case 1:return r.sent(),null==(t=s.context.message)||t.success(s.context.t("Saved successfully")),[2]}})})()},300)},[s]),tu=(t=eA.dates.length,(n=null==(a=ew.current)?void 0:a.clientWidth)/t>50?Math.floor(n/t)+20:60),ts=eA.dates.length*tu,tv=(0,p.useMemo)(function(){var e=eJ.action,t=eJ.changedTask;if(!t||"move"!==e&&"end"!==e&&"start"!==e&&"progress"!==e)return eq;var n=!1,r=eq.map(function(e){return e.id!==t.id?e:(n=!0,t)});return n?r:eq},[eq,eJ]),tm=tv.length*e2,tw=y?Math.min(y,tm):void 0,tS=!!tw&&tm>tw,tx=s.resource.loading,tk=s.resource.getData(),tO=null==(l=s.props)?void 0:l.fieldNames,tT=null==(i=s.props)?void 0:i.enableDragToReschedule,tE=(null==(c=s.props)?void 0:c.showTable)!==!1,tj=s.shouldShowRowNumbers(),tM=s.getColumns().filter(function(e){return(null==e?void 0:e.key)!=="empty"}),tD=tE&&tM.length>0,tA=s.isTreeTableEnabled(),tF=s.getAutoTableWidth(),tR=s.getTableWidth(),tN=tF>(eW||tR)+1,tI=eB||(null==(u=ek.current)?void 0:u.offsetWidth)||0,tW=tI>0&&ts>tI+1,tU=tw?t_({y:tw},tN?{x:tF}:{}):tN?{x:tF}:void 0,tV=tP({token:f,tableWidth:tR,hasVerticalScroll:tS,hasHorizontalScroll:tW,hasHorizontalTableScroll:tN,rowHeight:e2}),tX=tV.tableClass,tK=tV.contentClass,tZ=tV.actionsColumnClass,tq=tV.actionsTableClass,tQ=tV.chartClass,t$=tV.paginationClass,tJ=tz({model:s,tasks:eC,tableColumns:tM}),t0=tJ.visibleTasks,t1=tJ.tableRecords,t2=tJ.resolvedTableColumns,t5=tJ.expandable,t6=s.resource.getSelectedRows().map(function(e){return tg(s,e)}),t3=s.pagination(),t4=(0,p.useCallback)(function(){var e=ew.current;return e?td(e.scrollWidth,e.clientWidth):td(ts,tI)},[tI,ts]),t8=(0,p.useCallback)(function(){var e=eS.current;return e?td(e.scrollWidth,e.clientWidth):td(ts,tI)},[tI,ts]),t7=(0,p.useCallback)(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"auto",r=ew.current,o=eS.current,a=t4(),l=t8(),i="scrollbar"===t?th({scrollLeft:e,fromMaxScrollLeft:l,toMaxScrollLeft:a}):tp(e,a),c="chart"===t?th({scrollLeft:e,fromMaxScrollLeft:a,toMaxScrollLeft:l}):"scrollbar"===t?tp(e,l):th({scrollLeft:i,fromMaxScrollLeft:a,toMaxScrollLeft:l}),u=1>=Math.abs(a-i)?a:i,s=1>=Math.abs(l-c)?l:c;ta.current=u,"chart"!==t&&r&&Math.abs(r.scrollLeft-u)>1&&("smooth"===n&&"function"==typeof r.scrollTo?r.scrollTo({left:u,behavior:n}):r.scrollLeft=u),"scrollbar"!==t&&o&&Math.abs(o.scrollLeft-s)>1&&("smooth"===n&&"function"==typeof o.scrollTo?o.scrollTo({left:s,behavior:n}):o.scrollLeft=s)},[t4,t8]),t9=(0,p.useCallback)(function(e){eS.current=e,e&&ta.current>=0&&t7(ta.current)},[t7]),ne=(0,p.useCallback)(function(e){t7(e,"chart")},[t7]),nt=(0,p.useCallback)(function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto",r=(t=eA.dates).findIndex(function(n,r){return e.valueOf()>=n.valueOf()&&r+1!==t.length&&e.valueOf()<t[r+1].valueOf()});return -1!==r&&(t7(tu*r,void 0,n),!0)},[tu,eA.dates,t7]);(0,p.useEffect)(function(){eM(s.getTasks())},[s,tk,tO,tT]),(0,p.useEffect)(function(){return function(){ti.cancel(),tc.cancel()}},[tc,ti]),(0,p.useEffect)(function(){var e=eO.current;if(e){var t=0,n=function(){var t=Array.from(e.querySelectorAll(".ant-table-tbody > tr:not(.ant-table-measure-row)")),n=t.map(function(e){var t=Array.from(e.children).filter(function(e){return"TD"===e.tagName}),n=e.style.height,r=t.map(function(e){return e.style.height});return e.style.height="auto",t.forEach(function(e){e.style.height="auto"}),{row:e,rowHeight:n,cells:t,cellHeights:r}}),r=t.reduce(function(e,t){return Math.max(e,tb(t))},0);return n.forEach(function(e){var t=e.row,n=e.rowHeight,r=e.cells,o=e.cellHeights;t.style.height=n,r.forEach(function(e,t){e.style.height=o[t]})}),r},r=function(){cancelAnimationFrame(t),t=requestAnimationFrame(function(){var t=tb(e.querySelector(".ant-table-thead > tr:not(.ant-table-measure-row)")||e.querySelector(".ant-table-thead > tr")||e.querySelector(".ant-table-thead")),r=n()||tb(e.querySelector(".ant-table-tbody > tr.ant-table-row")||e.querySelector(".ant-table-tbody > tr:not(.ant-table-measure-row)")||e.querySelector(".ant-table-row"));eH(e.clientWidth),eE(function(e){var n=t||e.headerHeight,o=r||e.rowHeight;return e.headerHeight===n&&e.rowHeight===o?e:{headerHeight:n,rowHeight:o}})})};r();var o=new ResizeObserver(r);return o.observe(e),e.querySelectorAll(".ant-table-thead, .ant-table-tbody, .ant-table-thead > tr, .ant-table-tbody > tr, .ant-table-row, .ant-table-body, .ant-table-content").forEach(function(e){return o.observe(e)}),function(){cancelAnimationFrame(t),o.disconnect()}}},[tw,tN,tM.length,t1.length]),(0,p.useEffect)(function(){var e=tG(Y(t0,ey,w),2),t=U(e[0],e[1],ey);Z&&(t=t.reverse(),-1===ta.current&&t7(t.length*tu)),eF({dates:t,viewMode:ey}),eQ(S(t0,t,tu,e2,e5,T,Q,Z,E,C,D,F,N,I,H,B,G,X))},[t0,ey,w,e2,T,tu,e5,Q,E,C,D,F,N,I,H,B,G,X,Z,tA,t7]),(0,p.useEffect)(function(){ey===eA.viewMode&&(es&&!eN||es&&(null==eN?void 0:eN.valueOf())!==es.valueOf())&&nt(es)&&ez(es)},[es,eA.viewMode,ey,eN,ez,nt]),(0,p.useEffect)(function(){var e=function(e){tB(e,Date)?nt(e):tB(null==e?void 0:e.date,Date)&&nt(e.date,e.behavior)};return s.emitter.on("scrollToDate",e),function(){s.emitter.off("scrollToDate",e)}},[s,nt]),(0,p.useEffect)(function(){var e=eJ.changedTask,t=eJ.action;e&&"delete"===t&&(e0({action:""}),eQ(function(t){return t.filter(function(t){return t.id!==e.id})}))},[eJ]),(0,p.useEffect)(function(){e7&&(eQ(function(e){return e.map(function(e){return e.id!==e7.id?e:e7})}),e9(null))},[e7]),(0,p.useEffect)(function(){if(em.current){var e;e_((null==(e=ek.current)?void 0:e.offsetWidth)||em.current.offsetWidth)}},[em,tR]),(0,p.useEffect)(function(){var e=ew.current;if(e){var t=function(){eU(e.scrollWidth)};t();var n=new ResizeObserver(t);return n.observe(e),Array.from(e.children).forEach(function(e){return n.observe(e)}),function(){n.disconnect()}}},[ts,tw,e1,tv.length]),(0,p.useEffect)(function(){y?eK((tw||0)+e1):eK(tm+e1)},[tw,y,tm,e1]),(0,p.useEffect)(function(){var e,t=null==(e=eO.current)?void 0:e.querySelector(".ant-table-body");t&&t.scrollTop!==tt&&(tr.current=!0,t.scrollTop=tt,requestAnimationFrame(function(){tr.current=!1}))},[tt]),(0,p.useEffect)(function(){var e,t=null==(e=eO.current)?void 0:e.querySelector(".ant-table-body");if(t){var n=function(){tr.current||t.scrollTop!==to.current&&tl(t.scrollTop)};return t.addEventListener("scroll",n),function(){t.removeEventListener("scroll",n)}}},[tw,tN,tl,tD,t1.length]),(0,p.useEffect)(function(){var e=em.current,t=function(e){if(e.shiftKey||e.deltaX){var t=e.deltaX?e.deltaX:e.deltaY;t7(tp(ta.current+t,t4())),e.preventDefault()}else if(y){var n=to.current,r=n+e.deltaY;r<0?r=0:r>tm-y&&(r=tm-y),r!==n&&(tl(r),e.preventDefault())}};return null==e||e.addEventListener("wheel",t,{passive:!1}),function(){null==e||e.removeEventListener("wheel",t)}},[em,y,tm,t7,t4,tl]);var nn=(0,p.useCallback)(function(e,t){return tH(function(){var n;return tY(this,function(r){switch(r.label){case 0:return n=s.normalizePageSize(t),s.resource.getPageSize()!==n?s.resource.setPage(1):s.resource.setPage(e),s.resource.loading=!0,s.resource.setPageSize(n),[4,s.resource.refresh()];case 1:return r.sent(),tl(0),[2]}})})()},[s,tl]),nr=(0,p.useCallback)(function(e,t,n,r){if(!tj)return r;var o=Number.isFinite(Number(t.__ganttTaskIndex))?Number(t.__ganttTaskIndex):n,a=ty({page:s.resource.getPage(),pageSize:s.resource.getPageSize(),rowIndex:o,rowPath:t.__ganttTaskIndexPath});return h().createElement("div",{role:"button","aria-label":"table-index-".concat(a),className:"nb-gantt-row-selection".concat(e?" checked":""),style:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",minHeight:16,paddingRight:0}},h().createElement("div",{className:"nb-gantt-table-index",style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%"}},a),h().createElement("div",{className:"nb-gantt-origin-node".concat(e?" checked":""),style:{position:"absolute",right:"50%",transform:"translateX(50%)"}},r))},[s.resource,tj]),no=function(e){e4(tv.find(function(t){return t.id===e}))},na=function(e){var t=String(e.id);eM(function(n){return n.map(function(n){return String(n.id)===t?e:n})}),eQ(function(n){return n.map(function(n){return String(n.id)===t?t_({},n,e):n})})},nl={columnWidth:tu,svgWidth:ts,tasks:tv,rowHeight:e2,dates:eA.dates,todayColor:eu,rtl:Z,selectedRowKeys:t6},ni={dateSetup:eA,locale:s.context.locale||"en-US",viewMode:ey,headerHeight:e1,columnWidth:tu,fontFamily:en,fontSize:eo,rtl:Z},nc={tasks:tv,dates:eA.dates,ganttEvent:eJ,selectedTask:e3,rowHeight:e2,taskHeight:e5,columnWidth:tu,arrowColor:ee,timeStep:void 0===$?3e5:$,fontFamily:en,fontSize:eo,arrowIndent:ei,svgWidth:ts,rtl:Z,setGanttEvent:e0,setFailedTask:e9,setSelectedTask:no,onDateChange:function(e){return tH(function(){return tY(this,function(t){switch(t.label){case 0:return na(e),[4,ti(e)];case 1:return t.sent(),[2]}})})()},onProgressChange:s.getFieldNames().progress&&function(e){return tH(function(){return tY(this,function(t){switch(t.label){case 0:return na(e),[4,tc(e)];case 1:return t.sent(),[2]}})})()},onClick:function(e){no(e.id),s.openEvent(e.record)},enableDragToReschedule:void 0===eg||eg,loading:tx};return h().createElement("div",{className:tX,ref:ex},h().createElement("div",{onKeyDown:function(e){e.preventDefault();var t=to.current,n=ta.current,r=!0;switch(e.key){case"Down":case"ArrowDown":t+=e2,r=!1;break;case"Up":case"ArrowUp":t-=e2,r=!1;break;case"Left":case"ArrowLeft":n-=tu;break;case"Right":case"ArrowRight":n+=tu}r?t7(n=tp(n,t4())):(t<0?t=0:t>tm-y&&(t=tm-y),tl(t))},tabIndex:0,ref:em},h().createElement("div",{className:tK},tD&&h().createElement("div",{className:tZ,ref:eO},h().createElement(d.Table,{className:tq,columns:t2,dataSource:t1,pagination:!1,rowKey:function(e){return e.__ganttTaskId},rowSelection:{columnWidth:50,type:"checkbox",selectedRowKeys:s.resource.getSelectedRows().map(function(e){return tg(s,e)}),onChange:function(e,t){s.resource.setSelectedRows(t)},renderCell:nr},scroll:tU,expandable:t5,childrenColumnName:tC,indentSize:15,showSorterTooltip:!1})),h().createElement("div",{className:tQ,ref:ek},h().createElement(tf,{gridProps:nl,calendarProps:ni,barProps:nc,ganttHeight:tw,ganttFullHeight:tm,scrollY:tt,onHorizontalScroll:ne,showLeftBorder:tD,ref:ew}),eJ.changedTask&&h().createElement(ef,{arrowIndent:ei,rowHeight:e2,svgContainerHeight:eX,svgContainerWidth:eB,fontFamily:en,fontSize:eo,scrollX:ta.current,scrollY:tt,task:eJ.changedTask,headerHeight:e1,TooltipContent:void 0===eh?ed:eh,rtl:Z,svgWidth:ts}),tS&&h().createElement(ep,{ganttFullHeight:tm,ganttHeight:tw,headerHeight:e1,scroll:tt,onScroll:function(e){tr.current||to.current!==e.currentTarget.scrollTop&&tl(e.currentTarget.scrollTop)},rtl:Z}),h().createElement(ea,{scrollWidth:eY||ts,rtl:Z,onScroll:function(e){t7(e.currentTarget.scrollLeft,"scrollbar")},ref:t9}))),h().createElement("div",{className:t$},h().createElement(d.Pagination,(r=t_({},t3),o=o={onChange:nn},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}),r)))))},{displayName:"GanttBlock"}),tV=n(768),tX=function(e){var t,n=(0,tV.getDefaultFormat)(e),r=(0,tV.str2moment)(e.value,e);return Array.isArray(t=r&&r.isValid()?r.format(n):e.value)?t.join("~"):t},tK=function(e,t){if(Array.isArray(null==e?void 0:e.enum)&&null!=t){var n,r,o,a=e.enum.find(function(e){return e.value===t});return null!=(o=null==a?void 0:a.label)?o:t}return(null==e?void 0:e["x-component"])!=="DatePicker"?t:tX((n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},null==e?void 0:e["x-component-props"]),r=r={value:t},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n))},tZ=function(e){if(null==e)return"";if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e)return String(e);if(h().isValidElement(e)){var t,n;return String(null!=(t=null==(n=e.props)?void 0:n.children)?t:"")}return String(e)};function tq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}var tQ=["date","datetime","dateOnly","datetimeNoTz","unixTimestamp","createdAt","updatedAt"],t$=["string"],tJ=["float"],t0=["select","color"],t1=[{label:"Hour",value:"hour"},{label:"Quarter of day",value:"quarterDay"},{label:"Half of day",value:"halfDay"},{label:"Day",value:"day"},{label:"Week",value:"week"},{label:"Month",value:"month"},{label:"Year",value:"year"},{label:"QuarterYear",value:"quarterYear"}],t2=function(e){return t1.map(function(t){var n,r;return n=tq({},t),r=r={label:e?e(t.label,{ns:[el.CU,el.IC,"client"],nsMode:"fallback"}):(0,el.MZ)(t.label)},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n})},t5=[{key:"drag-handler",component:f.DragHandler,sort:1}],t6=["quickEdit","tableDensity","dragSort","dragSortBy"],t3=new Set(["ExpandCollapseActionModel"]),t4=function(e,t){return e&&t.includes(e)},t8=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t7=function(e,t){var n,r,o=tq({},(null==(n=e.props)?void 0:n.fieldNames)||{}),a={},l=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(r&&(null==n||""===n)){delete o[e],t[e]=null,a[e]=null;return}o[e]=n,a[e]=n};t8(t,"title")&&l("title",t.title),t8(t,"start")&&l("start",t.start),t8(t,"end")&&l("end",t.end),t8(t,"progress")&&l("progress",t.progress,!0),t8(t,"color")&&l("color",t.color,!0),t8(t,"range")&&l("range",t.range||"day"),e.setProps({fieldNames:o}),Object.keys(a).length&&(null==(r=e.setStepParams)||r.call(e,"ganttSettings","fields",a))},t9=function(e,t){if(!t)return 0;var n=Number(null==e?void 0:e[t]);if(!Number.isFinite(n))return 0;var r=Number((100*n).toFixed(2));return r>100?100:r||0},ne=function(e){if(null!=e&&""!==e){if((void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object")return e.hex||e.hexString||e.color||e.value;var t=String(e);return"default"===t?"#d9d9d9":d.theme.defaultSeed[t]||t}},nt=function(e,t){var n,r=ne(t);if(r){var o=(Array.isArray(null==e||null==(n=e.uiSchema)?void 0:n.enum)?e.uiSchema.enum:[]).find(function(e){var t,n,o;return String(null!=(t=null!=(n=null!=(o=null==e?void 0:e.value)?o:null==e?void 0:e.name)?n:null==e?void 0:e.id)?t:"")===String(r)});return ne(null==o?void 0:o.color)}};function nn(e,t,n,r,o,a,l){try{var i=e[a](l),c=i.value}catch(e){n(e);return}i.done?t(c):Promise.resolve(c).then(r,o)}function nr(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function l(e){nn(a,r,o,l,i,"next",e)}function i(e){nn(a,r,o,l,i,"throw",e)}l(void 0)})}}function no(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function na(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function nl(e,t){var n,r,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),i=Object.defineProperty;return i(l,"next",{value:c(0)}),i(l,"throw",{value:c(1)}),i(l,"return",{value:c(2)}),"function"==typeof Symbol&&i(l,Symbol.iterator,{value:function(){return this}}),l;function c(i){return function(c){var u=[i,c];if(n)throw TypeError("Generator is already executing.");for(;l&&(l=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var ni=function(e){return e.model},nc=function(e){var t,n;return!ni(e).isTreeCollection()||(null==(n=e.view)||null==(t=n.inputArgs)?void 0:t.scene)==="select"};function nu(e,t,n,r,o,a,l){try{var i=e[a](l),c=i.value}catch(e){n(e);return}i.done?t(c):Promise.resolve(c).then(r,o)}function ns(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function l(e){nu(a,r,o,l,i,"next",e)}function i(e){nu(a,r,o,l,i,"throw",e)}l(void 0)})}}function nf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function np(e,t,n){return(np="u">typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=nh(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n||e):o.value}})(e,t,n||e)}function nh(e){return(nh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ng(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){nd(e,t,n[t])})}return e}function nb(e,t){return(nb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function nv(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function ny(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ny=function(){return!!e})()}function nm(e,t){var n,r,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),i=Object.defineProperty;return i(l,"next",{value:c(0)}),i(l,"throw",{value:c(1)}),i(l,"return",{value:c(2)}),"function"==typeof Symbol&&i(l,Symbol.iterator,{value:function(){return this}}),l;function c(i){return function(c){var u=[i,c];if(n)throw TypeError("Generator is already executing.");for(;l&&(l=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var nw=function(e){var t,n;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function r(){var e,t,n;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return t=r,n=arguments,t=nh(t),nd(e=function(e,t){if(t&&("object"===nv(t)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,ny()?Reflect.construct(t,n||[],nh(this).constructor):t.apply(this,n)),"customModelClasses",{CollectionActionGroupModel:"GanttCollectionActionGroupModel",RecordActionGroupModel:"RecordActionGroupModel",TableColumnModel:"TableColumnModel",TableAssociationFieldGroupModel:"TableAssociationFieldGroupModel",TableCustomColumnModel:"TableCustomColumnModel"}),nd(e,"treeExpanded",!1),e}return r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),e&&nb(r,e),t=[{key:"resource",get:function(){return np(nh(r.prototype),"resource",this)}},{key:"createResource",value:function(){var e,t,n,r,o=this.context.createResource(f.MultiRecordResource);o.setPageSize(this.getPageSize()),this.isTreeTableEnabled()&&o.setRequestParameters({tree:!0});var a=Array.isArray(null==(e=this.collection)?void 0:e.filterTargetKey)?this.collection.filterTargetKey[0]:(null==(t=this.collection)?void 0:t.filterTargetKey)||"id";return o.setSort((null==(r=this.props)||null==(n=r.globalSort)?void 0:n.length)?this.props.globalSort:[a]),o}},{key:"normalizePageSize",value:function(e){var t=Number(e);return Number.isFinite(t)&&t>0?t:20}},{key:"getPageSize",value:function(){var e,t,n;return this.normalizePageSize(null!=(e=null==(t=this.props)?void 0:t.pageSize)?e:null==(n=this.getStepParams("tableSettings","pageSize"))?void 0:n.pageSize)}},{key:"normalizeTableWidth",value:function(e){var t=Number(e);return Number.isFinite(t)&&t>0?Math.max(120,Math.round(t)):void 0}},{key:"getAutoTableWidth",value:function(){return(this.getColumns().filter(function(e){return(null==e?void 0:e.key)!=="empty"}).reduce(function(e,t){return e+("number"==typeof(null==t?void 0:t.width)?t.width:0)},0)||150)+50+42*!!this.isTreeTableEnabled()}},{key:"getTableWidth",value:function(){var e,t,n;return this.normalizeTableWidth(null!=(e=null==(t=this.props)?void 0:t.tableWidth)?e:null==(n=this.getStepParams("ganttSettings","tableWidth"))?void 0:n.tableWidth)||this.getAutoTableWidth()}},{key:"shouldShowRowNumbers",value:function(){var e,t,n;return(null!=(e=null==(t=this.props)?void 0:t.showIndex)?e:null==(n=this.getStepParams("tableSettings","showRowNumbers"))?void 0:n.showIndex)!==!1}},{key:"isTreeCollection",value:function(){try{var e,t,n,r;return(null==(e=this.collection)?void 0:e.template)==="tree"||(null==(n=this.collection)||null==(t=n.options)?void 0:t.template)==="tree"||!!(null==(r=this.collection)?void 0:r.tree)}catch(e){return!1}}},{key:"isTreeTableEnabled",value:function(){var e,t,n;return!!this.isTreeCollection()&&(null!=(e=null==(t=this.props)?void 0:t.treeTable)?e:null==(n=this.getStepParams("tableSettings","treeTable"))?void 0:n.treeTable)===!0}},{key:"shouldDefaultExpandAllRows",value:function(){var e,t,n;return(null!=(e=null==(t=this.props)?void 0:t.defaultExpandAllRows)?e:null==(n=this.getStepParams("tableSettings","defaultExpandAllRows"))?void 0:n.defaultExpandAllRows)===!0}},{key:"getTreeChildrenFieldName",value:function(){var e;return(null==(e=this.getCollectionFields().find(function(e){var t;return(null==e?void 0:e.treeChildren)||(null==e||null==(t=e.options)?void 0:t.treeChildren)}))?void 0:e.name)||"children"}},{key:"isTreeExpanded",value:function(){return this.treeExpanded}},{key:"setTreeExpandFlag",value:function(e){this.treeExpanded=e,this.mapSubModels("actions",function(t){(null==t?void 0:t.use)==="GanttExpandCollapseActionModel"&&"function"==typeof t.setExpandFlag&&t.setExpandFlag(e)})}},{key:"expandAllTreeRows",value:function(){this.emitter.emit("expandAllTreeRows")}},{key:"collapseAllTreeRows",value:function(){this.emitter.emit("collapseAllTreeRows")}},{key:"toggleAllTreeRows",value:function(){this.isTreeExpanded()?this.collapseAllTreeRows():this.expandAllTreeRows()}},{key:"scrollToDate",value:function(e,t){this.emitter.emit("scrollToDate",{date:e,behavior:null==t?void 0:t.behavior})}},{key:"scrollToToday",value:function(e){var t;this.scrollToDate(new Date,{behavior:null!=(t=null==e?void 0:e.behavior)?t:"smooth"})}},{key:"getCollectionFields",value:function(){var e,t;return(null==(t=this.collection)||null==(e=t.getFields)?void 0:e.call(t))||[]}},{key:"getFieldOptions",value:function(e){return this.getCollectionFields().filter(function(t){var n;return t4(t.type,e)||t4(t.interface,e)||t4(null==(n=t.uiSchema)?void 0:n.type,e)}).map(function(e){var t;return{label:e.title||(null==(t=e.uiSchema)?void 0:t.title)||e.name,value:e.name}})}},{key:"getDefaultTitleFieldName",value:function(){var e,t;return(null==(e=this.getFieldOptions(t$)[0])?void 0:e.value)||(null==(t=this.collection)?void 0:t.filterTargetKey)||"id"}},{key:"getDefaultStartFieldName",value:function(){var e,t,n=this.getFieldOptions(tQ);return(null==(e=n.find(function(e){return"createdAt"===e.value}))?void 0:e.value)||(null==(t=n[0])?void 0:t.value)}},{key:"getDefaultEndFieldName",value:function(){var e,t=this.getDefaultStartFieldName();return(null==(e=this.getFieldOptions(tQ).find(function(e){return e.value!==t}))?void 0:e.value)||t}},{key:"getFieldNames",value:function(){var e,t=(null==(e=this.props)?void 0:e.fieldNames)||{};return{title:t.title||this.getDefaultTitleFieldName(),start:t.start||this.getDefaultStartFieldName(),end:t.end||this.getDefaultEndFieldName(),progress:t.progress,color:t.color,range:t.range||"day"}}},{key:"getRecordFilterByTk",value:function(e,t){if(e){var n,r,o;return null!=(n=null==(o=this.collection)||null==(r=o.getFilterByTK)?void 0:r.call(o,e))?n:t}try{return JSON.parse(t)}catch(e){return t}}},{key:"getTaskId",value:function(e){var t,n,r=null==(n=this.collection)||null==(t=n.getFilterByTK)?void 0:t.call(n,e);return null!=r?(void 0===r?"undefined":nv(r))==="object"?JSON.stringify(r):String(r):String(null==e?void 0:e.id)}},{key:"formatTitle",value:function(e,t){var n,r,o=null==(r=this.collection)||null==(n=r.getField)?void 0:n.call(r,t);return tZ(tK(null==o?void 0:o.uiSchema,null==e?void 0:e[t]))}},{key:"getRecordColor",value:function(e,t){if(!t)return ne(null==e?void 0:e.color);var n,r,o=null==(r=this.collection)||null==(n=r.getField)?void 0:n.call(r,t),a=null==e?void 0:e[t],l=ne(null==e?void 0:e.color);return t4(null==o?void 0:o.interface,["select"])||t4(null==o?void 0:o.type,["select"])?nt(o,a)||l:ne(a)||l}},{key:"formatData",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,o=this.getFieldNames();return t.forEach(function(t){var a=e.formatTitle(t,o.title),l=e.getTaskId(t),i=e.getTreeChildrenFieldName(),c=Array.isArray(t[i])?t[i]:[],u=t[o.start]?new Date(t[o.start]):void 0,s=t[o.end]?new Date(t[o.end]):u,f=e.getRecordColor(t,o.color);c.length?(n.push({start:u,end:s,name:a,id:l,type:o.end?"task":"milestone",progress:t9(t,o.progress),project:r,color:f,isDisabled:!1,record:t}),e.formatData(c,n,l)):n.push({start:u,end:s,name:a,id:l,type:o.end?"task":"milestone",progress:t9(t,o.progress),project:r,color:f,isDisabled:!1,record:t})}),n}},{key:"getTasks",value:function(){return this.formatData(this.resource.getData()||[])}},{key:"getEventViewAction",value:function(){var e;return null==(e=this.subModels)?void 0:e.eventViewAction}},{key:"getPopupActionUid",value:function(e){return"".concat(this.uid,"-").concat(e)}},{key:"getPopupSettingsDefaults",value:function(e){var t,n,r,o;return{mode:"modal"===(o=null==(t=this.props)?void 0:t.eventOpenMode)?"dialog":"page"===o?"embed":"dialog"===o||"embed"===o?o:"drawer",size:"medium",pageModelClass:"ChildPageModel",uid:e,collectionName:null==(n=this.collection)?void 0:n.name,dataSourceKey:null==(r=this.collection)?void 0:r.dataSourceKey}}},{key:"getStoredPopupSettings",value:function(){var e;return(null==(e=this.props)?void 0:e.eventPopupSettings)||{}}},{key:"normalizePopupSettings",value:function(e){var t=ng({},e||{}),n=Object.prototype.hasOwnProperty.call(t,"popupTemplateUid"),r="string"==typeof t.popupTemplateUid?t.popupTemplateUid.trim():t.popupTemplateUid;return n&&(null==r||""===r)&&(delete t.popupTemplateUid,delete t.popupTemplateContext,delete t.popupTemplateHasFilterByTk,delete t.popupTemplateHasSourceId,delete t.uid),t}},{key:"setPopupSettings",value:function(e){var t=this.normalizePopupSettings(e);return this.setProps({eventPopupSettings:t}),t}},{key:"getPopupSettings",value:function(e,t){var n,r,o=this.getPopupSettingsDefaults((null==e?void 0:e.uid)||t),a=this.getStoredPopupSettings();return n=ng({},o,a),r=r={uid:a.uid||o.uid,collectionName:a.collectionName||o.collectionName,dataSourceKey:a.dataSourceKey||o.dataSourceKey},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n}},{key:"syncPopupActionSettings",value:function(e){return ns(function(){var t,n;return nm(this,function(r){switch(r.label){case 0:if(!e||(n=this.getPopupSettings(e,null==e?void 0:e.uid),JSON.stringify((null==(t=e.getStepParams)?void 0:t.call(e,"popupSettings","openView"))||{})===JSON.stringify(n)))return[2];if(e.setStepParams("popupSettings","openView",n),!(this.context.flowSettingsEnabled&&(null==e?void 0:e.saveStepParams)))return[3,2];return[4,e.saveStepParams()];case 1:r.sent(),r.label=2;case 2:return[2]}})}).call(this)}},{key:"loadPopupAction",value:function(e){return ns(function(){var t,n;return nm(this,function(r){switch(r.label){case 0:t=this.getPopupActionUid(e),r.label=1;case 1:if(r.trys.push([1,4,,5]),n=this.flowEngine.getModel(t))return[3,3];return[4,this.flowEngine.loadModel({uid:t})];case 2:n=r.sent(),r.label=3;case 3:return[2,n];case 4:return r.sent(),[2,null];case 5:return[2]}})}).call(this)}},{key:"ensurePopupAction",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"eventViewAction";return ns(function(){var t,n,r,o;return nm(this,function(a){switch(a.label){case 0:if(n=null==(t=this.subModels)?void 0:t[e])return[3,2];return[4,this.loadPopupAction(e)];case 1:(o=a.sent())?this.setSubModel(e,o):this.setSubModel(e,(0,g.createGanttEventViewActionOptions)(this.getPopupActionUid(e))),n=null==(r=this.subModels)?void 0:r[e],a.label=2;case 2:if(!(this.context.flowSettingsEnabled&&(null==n?void 0:n.save)))return[3,4];return[4,n.save()];case 3:a.sent(),a.label=4;case 4:return[4,this.syncPopupActionSettings(n)];case 5:return a.sent(),[2,n]}})}).call(this)}},{key:"openEvent",value:function(e){return ns(function(){var t,n,r,o,a,l;return nm(this,function(i){switch(i.label){case 0:return[4,this.ensurePopupAction("eventViewAction")];case 1:if(!(a=i.sent())||!e||!(l=null!=(t=null==(r=this.collection)||null==(n=r.getFilterByTK)?void 0:n.call(r,e))?t:null==e?void 0:e[(null==(o=this.collection)?void 0:o.filterTargetKey)||"id"]))return[2];return[4,a.dispatchEvent("click",{filterByTk:l},{debounce:!0})];case 2:return i.sent(),[2]}})}).call(this)}},{key:"getActionsColumn",value:function(){return this.findSubModel("columns",function(e){var t;return null!=(t=s.TableActionsColumnModel)&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t})}},{key:"renderConfigureActions",value:function(){var e="gantt-add-actions-".concat(this.isTreeTableEnabled()?"tree":"plain");return h().createElement(f.AddSubModelButton,{key:e,model:this,subModelBaseClass:this.getModelClassName("CollectionActionGroupModel"),subModelKey:"actions"},h().createElement(f.FlowSettingsButton,{icon:h().createElement(u.SettingOutlined,null)},this.translate("Actions")))}},{key:"getVisibleActionModels",value:function(){return this.mapSubModels("actions",function(e){return e}).filter(function(e){var t,n="string"==typeof e.use?e.use:null==(t=e.constructor)?void 0:t.name;return!t3.has(n)})}},{key:"renderActionBar",value:function(){var e=!!this.context.flowSettingsEnabled,t=this.getVisibleActionModels();return h().createElement(f.DndProvider,null,h().createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:this.context.themeToken.marginXXS}},h().createElement(d.Space,{wrap:!0},t.map(function(t){if(!t.hidden||e)return"left"!==t.props.position?null:h().createElement(f.FlowModelRenderer,{key:t.uid,model:t,showFlowSettings:{showBackground:!1,showBorder:!1,toolbarPosition:"above"},extraToolbarItems:t5})}),h().createElement("span",null)),h().createElement(d.Space,{wrap:!0},t.map(function(t){if(!t.hidden||e){if("left"===t.props.position)return null;var n=h().createElement(f.FlowModelRenderer,{key:t.uid,model:t,showFlowSettings:{showBackground:!1,showBorder:!1,toolbarPosition:"above"},extraToolbarItems:t5});return e?h().createElement(f.Droppable,{model:t,key:t.uid},n):n}}),this.renderConfigureActions())))}},{key:"renderComponent",value:function(){return h().createElement(d.Space,{direction:"vertical",size:this.context.themeToken.margin,style:{width:"100%"}},this.renderActionBar(),h().createElement(tU,{model:this}))}}],n=[{key:"filterCollection",value:function(e){var t;return!!np(nh(r),"filterCollection",this).call(this,e)&&((null==e||null==(t=e.getFields)?void 0:t.call(e))||[]).some(function(e){var t;return t4(null==e?void 0:e.type,tQ)||t4(null==e?void 0:e.interface,tQ)||t4(null==e||null==(t=e.uiSchema)?void 0:t.type,tQ)})}}],t&&nf(r.prototype,t),n&&nf(r,n),r}(s.TableBlockModel);nd(nw,"scene",s.BlockSceneEnum.many),nw.registerFlow({key:"ganttSettings",sort:500,title:(0,el.MZ)("Gantt"),steps:{fields:{title:(0,el.MZ)("Gantt fields"),preset:!0,hideInSettings:!0,uiSchema:function(e){var t=ni(e),n=t.getFieldOptions(t$),r=t.getFieldOptions(tQ),o=t.getFieldOptions(tJ),a=t.getFieldOptions(t0),l=t2(e.t);return{title:{type:"string",title:(0,el.MZ)("Title field"),required:!0,enum:n,"x-component":"Select","x-decorator":"FormItem","x-component-props":{options:n}},start:{type:"string",title:(0,el.MZ)("Start date field"),required:!0,enum:r,"x-component":"Select","x-decorator":"FormItem","x-component-props":{options:r}},end:{type:"string",title:(0,el.MZ)("End date field"),required:!0,enum:r,"x-component":"Select","x-decorator":"FormItem","x-component-props":{options:r}},progress:{type:"string",title:(0,el.MZ)("Progress field"),enum:o,"x-component":"Select","x-decorator":"FormItem","x-component-props":{options:o,allowClear:!0}},color:{type:"string",title:(0,el.MZ)("Color field"),enum:a,"x-component":"Select","x-decorator":"FormItem","x-component-props":{options:a,allowClear:!0}},range:{type:"string",title:(0,el.MZ)("Time scale"),default:"day",enum:l,"x-component":"Select","x-decorator":"FormItem","x-component-props":{options:l}}}},defaultParams:function(){return{}},handler:function(e,t){t7(e.model,t)},beforeParamsSave:function(e,t){t7(e.model,t)}},titleField:{title:(0,el.MZ)("Title field"),uiMode:function(e){return{type:"select",key:"title",props:{options:ni(e).getFieldOptions(t$)}}},defaultParams:function(e){return{title:ni(e).getFieldNames().title}},handler:function(e,t){t7(e.model,t)},beforeParamsSave:function(e,t){t7(e.model,t)}},timeScale:{title:(0,el.MZ)("Time scale"),uiMode:function(e){return{type:"select",key:"range",props:{options:t2(e.t)}}},defaultParams:function(e){return{range:ni(e).getFieldNames().range}},handler:function(e,t){t7(e.model,t)},beforeParamsSave:function(e,t){t7(e.model,t)}},startDateField:{title:(0,el.MZ)("Start date field"),uiMode:function(e){return{type:"select",key:"start",props:{options:ni(e).getFieldOptions(tQ)}}},defaultParams:function(e){return{start:ni(e).getFieldNames().start}},handler:function(e,t){t7(e.model,t)},beforeParamsSave:function(e,t){t7(e.model,t)}},endDateField:{title:(0,el.MZ)("End date field"),uiMode:function(e){return{type:"select",key:"end",props:{options:ni(e).getFieldOptions(tQ)}}},defaultParams:function(e){return{end:ni(e).getFieldNames().end}},handler:function(e,t){t7(e.model,t)},beforeParamsSave:function(e,t){t7(e.model,t)}},processField:{title:(0,el.MZ)("Progress field"),uiMode:function(e){return{type:"select",key:"progress",props:{options:ni(e).getFieldOptions(tJ),allowClear:!0}}},defaultParams:function(e){return{progress:ni(e).getFieldNames().progress}},handler:function(e,t){Object.prototype.hasOwnProperty.call(t,"progress")||(t.progress=null),t7(e.model,t)},beforeParamsSave:function(e,t){Object.prototype.hasOwnProperty.call(t,"progress")||(t.progress=null),t7(e.model,t)}},colorField:{title:(0,el.MZ)("Color field"),uiMode:function(e){return{type:"select",key:"color",props:{options:ni(e).getFieldOptions(t0),allowClear:!0}}},defaultParams:function(e){return{color:ni(e).getFieldNames().color}},handler:function(e,t){Object.prototype.hasOwnProperty.call(t,"color")||(t.color=null),t7(e.model,t)},beforeParamsSave:function(e,t){Object.prototype.hasOwnProperty.call(t,"color")||(t.color=null),t7(e.model,t)}},showTable:{title:(0,el.MZ)("Show table"),uiMode:{type:"switch",key:"showTable"},defaultParams:function(e){var t;return{showTable:(null==(t=ni(e).props)?void 0:t.showTable)!==!1}},handler:function(e,t){ni(e).setProps("showTable",!1!==t.showTable)},beforeParamsSave:function(e,t){ni(e).setProps("showTable",!1!==t.showTable)}},tableWidth:{title:(0,el.MZ)("Table width"),hideInSettings:function(e){var t;return(null==(t=ni(e).props)?void 0:t.showTable)===!1},uiSchema:{tableWidth:{type:"number","x-component":d.InputNumber,"x-decorator":"FormItem","x-component-props":{min:120,precision:0,style:{width:"100%"}}}},defaultParams:function(e){return{tableWidth:ni(e).getTableWidth()}},handler:function(e,t){var n=ni(e),r=n.normalizeTableWidth(t.tableWidth)||n.getAutoTableWidth();t.tableWidth=r,n.setProps("tableWidth",r)},beforeParamsSave:function(e,t){var n=ni(e),r=n.normalizeTableWidth(t.tableWidth)||n.getAutoTableWidth();t.tableWidth=r,n.setProps("tableWidth",r)}},enableDragToReschedule:{title:(0,el.MZ)("Enable drag to reschedule"),uiMode:{type:"switch",key:"enableDragToReschedule"},defaultParams:function(e){var t;return{enableDragToReschedule:(null==(t=ni(e).props)?void 0:t.enableDragToReschedule)!==!1}},handler:function(e,t){ni(e).setProps("enableDragToReschedule",!1!==t.enableDragToReschedule)},beforeParamsSave:function(e,t){ni(e).setProps("enableDragToReschedule",!1!==t.enableDragToReschedule)}},eventPopupSettings:{use:"openView",title:(0,el.MZ)("Event popup settings"),defaultParams:function(e){return nr(function(){var t,n;return nl(this,function(r){switch(r.label){case 0:return[4,(t=ni(e)).ensurePopupAction("eventViewAction")];case 1:return n=r.sent(),[2,t.getPopupSettings(n,t.getPopupActionUid("eventViewAction"))]}})})()},handler:function(e,t){return nr(function(){var n,r;return nl(this,function(o){switch(o.label){case 0:return(n=ni(e)).setPopupSettings(t),[4,n.ensurePopupAction("eventViewAction")];case 1:return r=o.sent(),[4,n.syncPopupActionSettings(r)];case 2:return o.sent(),[2]}})})()}}}}),c=s.TableBlockModel.globalFlowRegistry.getFlow("tableSettings"),nw.registerFlow({key:"tableSettings",sort:null!=(l=null==c?void 0:c.sort)?l:500,title:null!=(i=null==c?void 0:c.title)?i:(0,el.MZ)("Table settings"),steps:(o=no({},(null==(r=s.TableBlockModel.globalFlowRegistry.getFlow("tableSettings"))?void 0:r.steps)||{}),t6.forEach(function(e){o[e]&&(o[e]=na(no({},o[e]),{hideInSettings:!0}))}),o.pageSize&&(o.pageSize=na(no({},o.pageSize),{defaultParams:function(e){return{pageSize:ni(e).getPageSize()}},handler:function(e,t){return nr(function(){var n,r;return nl(this,function(o){switch(o.label){case 0:return r=(n=ni(e)).normalizePageSize(t.pageSize),n.setProps("pageSize",r),n.resource.loading=!0,n.resource.setPage(1),n.resource.setPageSize(r),[4,n.resource.refresh()];case 1:return o.sent(),[2]}})})()},beforeParamsSave:function(e,t){var n=ni(e);n.setProps("pageSize",n.normalizePageSize(t.pageSize))}})),o.showRowNumbers&&(o.showRowNumbers=na(no({},o.showRowNumbers),{defaultParams:function(e){return{showIndex:ni(e).shouldShowRowNumbers()}}})),o.treeTable&&(o.treeTable=na(no({},o.treeTable),{hideInSettings:nc,defaultParams:function(e){return{treeTable:ni(e).isTreeTableEnabled()}},handler:function(e,t){return nr(function(){var n,r;return nl(this,function(o){switch(o.label){case 0:return n=ni(e),r=!!t.treeTable,n.setProps("treeTable",r),n.resource.loading=!0,n.resource.setPage(1),n.resource.setRequestParameters({tree:r}),[4,n.resource.refresh()];case 1:return o.sent(),[2]}})})()},beforeParamsSave:function(e,t){ni(e).setProps("treeTable",!!t.treeTable)}})),o.defaultExpandAllRows&&(o.defaultExpandAllRows=na(no({},o.defaultExpandAllRows),{hideInSettings:nc,defaultParams:function(e){return{defaultExpandAllRows:ni(e).shouldDefaultExpandAllRows()}},handler:function(e,t){ni(e).setProps("defaultExpandAllRows",!!t.defaultExpandAllRows)},beforeParamsSave:function(e,t){ni(e).setProps("defaultExpandAllRows",!!t.defaultExpandAllRows)}})),o)}),nw.define({label:(0,el.MZ)("Gantt"),group:(0,el.MZ)("Content"),searchable:!0,searchPlaceholder:(0,el.MZ)("Search"),createModelOptions:{use:"GanttBlockModel",props:{enableDragToReschedule:!0,showTable:!0},subModels:{actions:[],columns:[{use:"TableActionsColumnModel",props:{title:(0,el.MZ)("Actions"),width:150}}]}},sort:500})},619:function(e,t,n){n.r(t),n.d(t,{GanttEventViewActionModel:function(){return v},createGanttEventViewActionOptions:function(){return b}});var r=n(485),o=n(816);function a(e,t,n,r,o,a,l){try{var i=e[a](l),c=i.value}catch(e){n(e);return}i.done?t(c):Promise.resolve(c).then(r,o)}function l(e,t,n){return t=d(t),function(e,t){var n;if(t&&("object"==((n=t)&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e,g()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function i(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t,n){return(f="u">typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n||e):o.value}})(e,t,n||e)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(g=function(){return!!e})()}var b=function(e){return{uid:e,use:"GanttEventViewActionModel"}},v=function(e){function t(){var e;return i(this,t),e=l(this,t,arguments),s(e,"defaultPopupTitle",(0,o.MZ)("Details")),e}return p(t,e),u(t,[{key:"getAclActionName",value:function(){return"view"}}]),t}(function(e){function t(){return i(this,t),l(this,t,arguments)}return p(t,e),u(t,[{key:"collection",get:function(){var e;return this.context.collection||(null==(e=this.context.blockModel)?void 0:e.collection)}},{key:"getInputArgs",value:function(){var e,n,r=f(d(t.prototype),"getInputArgs",this).call(this),o=this.collection;return e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){s(e,t,n[t])})}return e}({},r),n=n={dataSourceKey:null==o?void 0:o.dataSourceKey,collectionName:null==o?void 0:o.name},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}}]),t}(r.PopupActionModel));s(v,"scene",r.ActionSceneEnum.record),v.define({hide:!0,createModelOptions:function(){var e;return(e=function(){return function(e,t){var n,r,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),i=Object.defineProperty;return i(l,"next",{value:c(0)}),i(l,"throw",{value:c(1)}),i(l,"return",{value:c(2)}),"function"==typeof Symbol&&i(l,Symbol.iterator,{value:function(){return this}}),l;function c(i){return function(c){var u=[i,c];if(n)throw TypeError("Generator is already executing.");for(;l&&(l=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(e){return[2,b()]})},function(){var t=this,n=arguments;return new Promise(function(r,o){var l=e.apply(t,n);function i(e){a(l,r,o,i,c,"next",e)}function c(e){a(l,r,o,i,c,"throw",e)}i(void 0)})})()}})}}]);
|
package/dist/client-v2/index.js
CHANGED
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@emotion/css"),require("@nocobase/client-v2"),require("antd"),require("react"),require("@ant-design/icons"),require("antd-style"),require("@nocobase/flow-engine"),require("@nocobase/utils/client"),require("lodash")):"function"==typeof define&&define.amd?define("@nocobase/plugin-gantt/client-v2",["@emotion/css","@nocobase/client-v2","antd","react","@ant-design/icons","antd-style","@nocobase/flow-engine","@nocobase/utils/client","lodash"],t):"object"==typeof exports?exports["@nocobase/plugin-gantt/client-v2"]=t(require("@emotion/css"),require("@nocobase/client-v2"),require("antd"),require("react"),require("@ant-design/icons"),require("antd-style"),require("@nocobase/flow-engine"),require("@nocobase/utils/client"),require("lodash")):e["@nocobase/plugin-gantt/client-v2"]=t(e["@emotion/css"],e["@nocobase/client-v2"],e.antd,e.react,e["@ant-design/icons"],e["antd-style"],e["@nocobase/flow-engine"],e["@nocobase/utils/client"],e.lodash)}(self,function(e,t,n,r,o,a,i,l,u){return function(){"use strict";var c,s,f,p={816:function(e,t,n){n.d(t,{qs:function(){return u},IC:function(){return l},CU:function(){return i},MZ:function(){return c}});var r=n(694),o=JSON.parse('{"Actions":"Actions","Collapse all":"Collapse all","Color field":"Color field","Day":"Day","Enable drag to reschedule":"Enable drag to reschedule","Enable tree table":"Enable tree table","End date field":"End date field","Details":"Details","Event popup settings":"Event popup settings","Expand all":"Expand all","Expand all rows by default":"Expand all rows by default","Expand/Collapse":"Expand/Collapse","Gantt":"Gantt","Gantt action":"Gantt action","Gantt fields":"Gantt fields","Half of day":"Half of day","Hour":"Hour","Month":"Month","Page size":"Page size","Progress field":"Progress field","Quarter of day":"Quarter of day","QuarterYear":"QuarterYear","Show table":"Show table","Start date field":"Start date field","Table width":"Table width","Time scale":"Time scale","Title field":"Title field","Today":"Today","Week":"Week","Year":"Year"}'),a=JSON.parse('{"Actions":"操作","Collapse all":"全部折叠","Color field":"颜色字段","Day":"天","Details":"详情","Enable drag to reschedule":"启用拖动重新排期","Enable tree table":"启用树表格","End date field":"结束日期字段","Event popup settings":"任务弹窗设置","Expand all":"全部展开","Expand all rows by default":"默认展开全部行","Expand/Collapse":"展开/折叠","Gantt":"甘特图","Gantt action":"甘特图操作","Gantt fields":"甘特图字段","Half of day":"半天","Hour":"小时","Month":"月","Page size":"每页条数","Progress field":"进度字段","Quarter of day":"一天的四分之一","QuarterYear":"季度","Show table":"表格显示","Start date field":"开始日期字段","Table width":"表格宽度","Time scale":"时间缩放等级","Title field":"标题字段","Today":"今天","Week":"周","Year":"年"}'),i="@nocobase/plugin-gantt",l="gantt",u={"en-US":o,"zh-CN":a};function c(e,t){return(0,r.tExpr)(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({ns:[i,l,"client"],nsMode:"fallback"},t))}},375:function(e){e.exports=o},477:function(t){t.exports=e},485:function(e){e.exports=t},694:function(e){e.exports=i},768:function(e){e.exports=l},59:function(e){e.exports=n},235:function(e){e.exports=a},773:function(e){e.exports=u},155:function(e){e.exports=r}},d={};function b(e){var t=d[e];if(void 0!==t)return t.exports;var n=d[e]={exports:{}};return p[e](n,n.exports,b),n.exports}b.m=p,b.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(t,{a:t}),t},b.d=function(e,t){for(var n in t)b.o(t,n)&&!b.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},b.f={},b.e=function(e){return Promise.all(Object.keys(b.f).reduce(function(t,n){return b.f[n](e,t),t},[]))},b.u=function(e){return""+e+"."+({143:"1a8cf1cd5ce17b64",416:"b7bb09162520e448",617:"de3dc437887f3f07",872:"e640aca77c79d895"})[e]+".js"},b.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),b.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},y={},b.l=function(e,t,n,r){if(y[e])return void y[e].push(t);if(void 0!==n)for(var o,a,i=document.getElementsByTagName("script"),l=0;l<i.length;l++){var u=i[l];if(u.getAttribute("src")==e||u.getAttribute("data-rspack")=="@nocobase/plugin-gantt/client-v2:"+n){o=u;break}}o||(a=!0,(o=document.createElement("script")).timeout=120,b.nc&&o.setAttribute("nonce",b.nc),o.setAttribute("data-rspack","@nocobase/plugin-gantt/client-v2:"+n),o.src=e),y[e]=[t];var c=function(t,n){o.onerror=o.onload=null,clearTimeout(s);var r=y[e];if(delete y[e],o.parentNode&&o.parentNode.removeChild(o),r&&r.forEach(function(e){return e(n)}),t)return t(n)},s=setTimeout(c.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=c.bind(null,o.onerror),o.onload=c.bind(null,o.onload),a&&document.head.appendChild(o)},b.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},b.g.importScripts&&(h=b.g.location+"");var y,h,v=b.g.document;if(!h&&v&&(v.currentScript&&"SCRIPT"===v.currentScript.tagName.toUpperCase()&&(h=v.currentScript.src),!h)){var g=v.getElementsByTagName("script");if(g.length)for(var m=g.length-1;m>-1&&(!h||!/^http(s?):/.test(h));)h=g[m--].src}if(!h)throw Error("Automatic publicPath is not supported in this browser");b.p=h.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),c={889:0},b.f.j=function(e,t){var n=b.o(c,e)?c[e]:void 0;if(0!==n)if(n)t.push(n[2]);else{var r=new Promise(function(t,r){n=c[e]=[t,r]});t.push(n[2]=r);var o=b.p+b.u(e),a=Error();b.l(o,function(t){if(b.o(c,e)&&(0!==(n=c[e])&&(c[e]=void 0),n)){var r=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;a.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",a.name="ChunkLoadError",a.type=r,a.request=o,n[1](a)}},"chunk-"+e,e)}},s=function(e,t){var n,r,o=t[0],a=t[1],i=t[2],l=0;if(o.some(function(e){return 0!==c[e]})){for(n in a)b.o(a,n)&&(b.m[n]=a[n]);i&&i(b)}for(e&&e(t);l<o.length;l++)r=o[l],b.o(c,r)&&c[r]&&c[r][0](),c[r]=0},(f=self.webpackChunk_nocobase_plugin_gantt_client_v2=self.webpackChunk_nocobase_plugin_gantt_client_v2||[]).forEach(s.bind(null,0)),f.push=s.bind(null,f.push.bind(f));var w={};return!function(){var e="",t="u">typeof document?document.currentScript:null;if(t&&t.src&&(e=t.src.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")),!e){var n=window.__webpack_public_path__||"";n&&("/"!==n.charAt(n.length-1)&&(n+="/"),e=n+"static/plugins/@nocobase/plugin-gantt/dist/client-v2/")}if(!e){if(!(e=window.__nocobase_public_path__||"")&&window.location&&window.location.pathname){var r=window.location.pathname||"/",o=r.indexOf("/v2/");e=o>=0?r.slice(0,o+1):"/"}e&&(e=e.replace(/\/v2\/?$/,"/")),e||(e="/"),"/"!==e.charAt(e.length-1)&&(e+="/"),e+="static/plugins/@nocobase/plugin-gantt/dist/client-v2/"}b.p=e}(),!function(){b.r(w),b.d(w,{PluginGanttClient:function(){return c},default:function(){return s}});var e=b(485),t=b(816);function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function r(e,t,n,r,o,a,i){try{var l=e[a](i),u=l.value}catch(e){n(e);return}l.done?t(u):Promise.resolve(u).then(r,o)}function o(e,t,n){return(o=u()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&i(o,n.prototype),o}).apply(null,arguments)}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t="function"==typeof Map?new Map:void 0;return(l=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return o(e,arguments,a(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),i(n,e)})(e)}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=function(){return!!e})()}var c=function(e){var o;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function l(){var e,t;if(!(this instanceof l))throw TypeError("Cannot call a class as a function");return e=l,t=arguments,e=a(e),function(e,t){var n;if(t&&("object"==((n=t)&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,u()?Reflect.construct(e,t||[],a(this).constructor):e.apply(this,t))}return l.prototype=Object.create(e&&e.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),e&&i(l,e),o=[{key:"load",value:function(){var e;return(e=function(){var e;return function(e,t){var n,r,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(i,"next",{value:u(0)}),l(i,"throw",{value:u(1)}),l(i,"return",{value:u(2)}),"function"==typeof Symbol&&l(i,Symbol.iterator,{value:function(){return this}}),i;function u(l){return function(u){var c=[l,u];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(r){return e=this,Object.entries(t.qs).forEach(function(r){var o,a=function(e){if(Array.isArray(e))return e}(r)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o=[],a=!0,i=!1;try{for(r=r.call(e);!(a=(t=r.next()).done)&&(o.push(t.value),2!==o.length);a=!0);}catch(e){i=!0,n=e}finally{try{a||null==r.return||r.return()}finally{if(i)throw n}}return o}}(r)||function(e){if(e){if("string"==typeof e)return n(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return n(e,2)}}(r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=a[0],l=a[1];e.app.i18n.addResources(i,(null==(o=e.options)?void 0:o.packageName)||t.CU,l),e.app.i18n.addResources(i,t.IC,l)}),this.flowEngine.registerModelLoaders({GanttBlockModel:{loader:function(){return Promise.all([b.e("617"),b.e("143")]).then(b.bind(b,642))}},GanttCollectionActionGroupModel:{loader:function(){return b.e("872").then(b.bind(b,763))}},GanttTodayActionModel:{loader:function(){return b.e("872").then(b.bind(b,763))}},GanttExpandCollapseActionModel:{loader:function(){return b.e("872").then(b.bind(b,763))}},GanttEventViewActionModel:{loader:function(){return b.e("416").then(b.bind(b,619))}}}),[2]})},function(){var t=this,n=arguments;return new Promise(function(o,a){var i=e.apply(t,n);function l(e){r(i,o,a,l,u,"next",e)}function u(e){r(i,o,a,l,u,"throw",e)}l(void 0)})}).call(this)}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(l.prototype,o),l}(l(e.Plugin)),s=c}(),w}()});
|
|
10
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@emotion/css"),require("@nocobase/client-v2"),require("antd"),require("react"),require("@ant-design/icons"),require("antd-style"),require("@nocobase/flow-engine"),require("@nocobase/utils/client"),require("lodash")):"function"==typeof define&&define.amd?define("@nocobase/plugin-gantt/client-v2",["@emotion/css","@nocobase/client-v2","antd","react","@ant-design/icons","antd-style","@nocobase/flow-engine","@nocobase/utils/client","lodash"],t):"object"==typeof exports?exports["@nocobase/plugin-gantt/client-v2"]=t(require("@emotion/css"),require("@nocobase/client-v2"),require("antd"),require("react"),require("@ant-design/icons"),require("antd-style"),require("@nocobase/flow-engine"),require("@nocobase/utils/client"),require("lodash")):e["@nocobase/plugin-gantt/client-v2"]=t(e["@emotion/css"],e["@nocobase/client-v2"],e.antd,e.react,e["@ant-design/icons"],e["antd-style"],e["@nocobase/flow-engine"],e["@nocobase/utils/client"],e.lodash)}(self,function(e,t,n,r,o,a,i,l,u){return function(){"use strict";var c,s,f,p={816:function(e,t,n){n.d(t,{kj:function(){return s},qs:function(){return c},IC:function(){return u},CU:function(){return l},MZ:function(){return f}});var r=n(694),o=JSON.parse('{"Actions":"Actions","Collapse all":"Collapse all","Color field":"Color field","Day":"Day","Enable drag to reschedule":"Enable drag to reschedule","Enable tree table":"Enable tree table","End date field":"End date field","Details":"Details","Duration: {{value}} day(s)":"Duration: {{value}} day(s)","Event popup settings":"Event popup settings","Expand all":"Expand all","Expand all rows by default":"Expand all rows by default","Expand/Collapse":"Expand/Collapse","Gantt":"Gantt","Gantt action":"Gantt action","Gantt fields":"Gantt fields","Half of day":"Half of day","Hour":"Hour","Month":"Month","Page size":"Page size","Progress field":"Progress field","Quarter of day":"Quarter of day","QuarterYear":"QuarterYear","Show table":"Show table","Start date field":"Start date field","Table width":"Table width","Task date range":"{{name}}: {{start}} ~ {{end}}","Time scale":"Time scale","Title field":"Title field","Today":"Today","Week":"Week","Year":"Year","Progress: {{value}}%":"Progress: {{value}}%"}'),a=JSON.parse('{"Actions":"操作","Collapse all":"全部折叠","Color field":"颜色字段","Day":"天","Details":"详情","Duration: {{value}} day(s)":"时长:{{value}} 天","Enable drag to reschedule":"启用拖动重新排期","Enable tree table":"启用树表格","End date field":"结束日期字段","Event popup settings":"任务弹窗设置","Expand all":"全部展开","Expand all rows by default":"默认展开全部行","Expand/Collapse":"展开/折叠","Gantt":"甘特图","Gantt action":"甘特图操作","Gantt fields":"甘特图字段","Half of day":"半天","Hour":"小时","Month":"月","Page size":"每页条数","Progress field":"进度字段","Quarter of day":"一天的四分之一","QuarterYear":"季度","Show table":"表格显示","Start date field":"开始日期字段","Table width":"表格宽度","Task date range":"{{name}}:{{start}} ~ {{end}}","Time scale":"时间缩放等级","Title field":"标题字段","Today":"今天","Week":"周","Year":"年","Progress: {{value}}%":"进度:{{value}}%"}');function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}var l="@nocobase/plugin-gantt",u="gantt",c={"en-US":o,"zh-CN":a};function s(){var e=(0,r.useFlowEngine)();return function(t,n){return e.context.t(t,i({ns:[l,u,"client"],nsMode:"fallback"},n))}}function f(e,t){return(0,r.tExpr)(e,i({ns:[l,u,"client"],nsMode:"fallback"},t))}},375:function(e){e.exports=o},477:function(t){t.exports=e},485:function(e){e.exports=t},694:function(e){e.exports=i},768:function(e){e.exports=l},59:function(e){e.exports=n},235:function(e){e.exports=a},773:function(e){e.exports=u},155:function(e){e.exports=r}},d={};function b(e){var t=d[e];if(void 0!==t)return t.exports;var n=d[e]={exports:{}};return p[e](n,n.exports,b),n.exports}b.m=p,b.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(t,{a:t}),t},b.d=function(e,t){for(var n in t)b.o(t,n)&&!b.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},b.f={},b.e=function(e){return Promise.all(Object.keys(b.f).reduce(function(t,n){return b.f[n](e,t),t},[]))},b.u=function(e){return""+e+"."+({416:"b7bb09162520e448",617:"de3dc437887f3f07",793:"629d4cd39664b681",872:"e640aca77c79d895"})[e]+".js"},b.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),b.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},y={},b.l=function(e,t,n,r){if(y[e])return void y[e].push(t);if(void 0!==n)for(var o,a,i=document.getElementsByTagName("script"),l=0;l<i.length;l++){var u=i[l];if(u.getAttribute("src")==e||u.getAttribute("data-rspack")=="@nocobase/plugin-gantt/client-v2:"+n){o=u;break}}o||(a=!0,(o=document.createElement("script")).timeout=120,b.nc&&o.setAttribute("nonce",b.nc),o.setAttribute("data-rspack","@nocobase/plugin-gantt/client-v2:"+n),o.src=e),y[e]=[t];var c=function(t,n){o.onerror=o.onload=null,clearTimeout(s);var r=y[e];if(delete y[e],o.parentNode&&o.parentNode.removeChild(o),r&&r.forEach(function(e){return e(n)}),t)return t(n)},s=setTimeout(c.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=c.bind(null,o.onerror),o.onload=c.bind(null,o.onload),a&&document.head.appendChild(o)},b.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},b.g.importScripts&&(v=b.g.location+"");var y,v,h=b.g.document;if(!v&&h&&(h.currentScript&&"SCRIPT"===h.currentScript.tagName.toUpperCase()&&(v=h.currentScript.src),!v)){var g=h.getElementsByTagName("script");if(g.length)for(var m=g.length-1;m>-1&&(!v||!/^http(s?):/.test(v));)v=g[m--].src}if(!v)throw Error("Automatic publicPath is not supported in this browser");b.p=v.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),c={889:0},b.f.j=function(e,t){var n=b.o(c,e)?c[e]:void 0;if(0!==n)if(n)t.push(n[2]);else{var r=new Promise(function(t,r){n=c[e]=[t,r]});t.push(n[2]=r);var o=b.p+b.u(e),a=Error();b.l(o,function(t){if(b.o(c,e)&&(0!==(n=c[e])&&(c[e]=void 0),n)){var r=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;a.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",a.name="ChunkLoadError",a.type=r,a.request=o,n[1](a)}},"chunk-"+e,e)}},s=function(e,t){var n,r,o=t[0],a=t[1],i=t[2],l=0;if(o.some(function(e){return 0!==c[e]})){for(n in a)b.o(a,n)&&(b.m[n]=a[n]);i&&i(b)}for(e&&e(t);l<o.length;l++)r=o[l],b.o(c,r)&&c[r]&&c[r][0](),c[r]=0},(f=self.webpackChunk_nocobase_plugin_gantt_client_v2=self.webpackChunk_nocobase_plugin_gantt_client_v2||[]).forEach(s.bind(null,0)),f.push=s.bind(null,f.push.bind(f));var w={};return!function(){var e="",t="u">typeof document?document.currentScript:null;if(t&&t.src&&(e=t.src.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")),!e){var n=window.__webpack_public_path__||"";n&&("/"!==n.charAt(n.length-1)&&(n+="/"),e=n+"static/plugins/@nocobase/plugin-gantt/dist/client-v2/")}if(!e){if(!(e=window.__nocobase_public_path__||"")&&window.location&&window.location.pathname){var r=window.location.pathname||"/",o=r.indexOf("/v2/");e=o>=0?r.slice(0,o+1):"/"}e&&(e=e.replace(/\/v2\/?$/,"/")),e||(e="/"),"/"!==e.charAt(e.length-1)&&(e+="/"),e+="static/plugins/@nocobase/plugin-gantt/dist/client-v2/"}b.p=e}(),!function(){b.r(w),b.d(w,{PluginGanttClient:function(){return c},default:function(){return s}});var e=b(485),t=b(816);function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function r(e,t,n,r,o,a,i){try{var l=e[a](i),u=l.value}catch(e){n(e);return}l.done?t(u):Promise.resolve(u).then(r,o)}function o(e,t,n){return(o=u()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&i(o,n.prototype),o}).apply(null,arguments)}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t="function"==typeof Map?new Map:void 0;return(l=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return o(e,arguments,a(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),i(n,e)})(e)}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=function(){return!!e})()}var c=function(e){var o;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function l(){var e,t;if(!(this instanceof l))throw TypeError("Cannot call a class as a function");return e=l,t=arguments,e=a(e),function(e,t){var n;if(t&&("object"==((n=t)&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,u()?Reflect.construct(e,t||[],a(this).constructor):e.apply(this,t))}return l.prototype=Object.create(e&&e.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),e&&i(l,e),o=[{key:"load",value:function(){var e;return(e=function(){var e;return function(e,t){var n,r,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(i,"next",{value:u(0)}),l(i,"throw",{value:u(1)}),l(i,"return",{value:u(2)}),"function"==typeof Symbol&&l(i,Symbol.iterator,{value:function(){return this}}),i;function u(l){return function(u){var c=[l,u];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(r){return e=this,Object.entries(t.qs).forEach(function(r){var o,a=function(e){if(Array.isArray(e))return e}(r)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o=[],a=!0,i=!1;try{for(r=r.call(e);!(a=(t=r.next()).done)&&(o.push(t.value),2!==o.length);a=!0);}catch(e){i=!0,n=e}finally{try{a||null==r.return||r.return()}finally{if(i)throw n}}return o}}(r)||function(e){if(e){if("string"==typeof e)return n(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return n(e,2)}}(r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=a[0],l=a[1];e.app.i18n.addResources(i,(null==(o=e.options)?void 0:o.packageName)||t.CU,l),e.app.i18n.addResources(i,t.IC,l)}),this.flowEngine.registerModelLoaders({GanttBlockModel:{loader:function(){return Promise.all([b.e("617"),b.e("793")]).then(b.bind(b,896))}},GanttCollectionActionGroupModel:{loader:function(){return b.e("872").then(b.bind(b,763))}},GanttTodayActionModel:{loader:function(){return b.e("872").then(b.bind(b,763))}},GanttExpandCollapseActionModel:{loader:function(){return b.e("872").then(b.bind(b,763))}},GanttEventViewActionModel:{loader:function(){return b.e("416").then(b.bind(b,619))}}}),[2]})},function(){var t=this,n=arguments;return new Promise(function(o,a){var i=e.apply(t,n);function l(e){r(i,o,a,l,u,"next",e)}function u(e){r(i,o,a,l,u,"throw",e)}l(void 0)})}).call(this)}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(l.prototype,o),l}(l(e.Plugin)),s=c}(),w}()});
|
|
@@ -18,6 +18,7 @@ export declare const ganttLocaleResources: {
|
|
|
18
18
|
"Enable tree table": string;
|
|
19
19
|
"End date field": string;
|
|
20
20
|
Details: string;
|
|
21
|
+
"Duration: {{value}} day(s)": string;
|
|
21
22
|
"Event popup settings": string;
|
|
22
23
|
"Expand all": string;
|
|
23
24
|
"Expand all rows by default": string;
|
|
@@ -35,11 +36,13 @@ export declare const ganttLocaleResources: {
|
|
|
35
36
|
"Show table": string;
|
|
36
37
|
"Start date field": string;
|
|
37
38
|
"Table width": string;
|
|
39
|
+
"Task date range": string;
|
|
38
40
|
"Time scale": string;
|
|
39
41
|
"Title field": string;
|
|
40
42
|
Today: string;
|
|
41
43
|
Week: string;
|
|
42
44
|
Year: string;
|
|
45
|
+
"Progress: {{value}}%": string;
|
|
43
46
|
};
|
|
44
47
|
'zh-CN': {
|
|
45
48
|
Actions: string;
|
|
@@ -47,6 +50,7 @@ export declare const ganttLocaleResources: {
|
|
|
47
50
|
"Color field": string;
|
|
48
51
|
Day: string;
|
|
49
52
|
Details: string;
|
|
53
|
+
"Duration: {{value}} day(s)": string;
|
|
50
54
|
"Enable drag to reschedule": string;
|
|
51
55
|
"Enable tree table": string;
|
|
52
56
|
"End date field": string;
|
|
@@ -67,11 +71,13 @@ export declare const ganttLocaleResources: {
|
|
|
67
71
|
"Show table": string;
|
|
68
72
|
"Start date field": string;
|
|
69
73
|
"Table width": string;
|
|
74
|
+
"Task date range": string;
|
|
70
75
|
"Time scale": string;
|
|
71
76
|
"Title field": string;
|
|
72
77
|
Today: string;
|
|
73
78
|
Week: string;
|
|
74
79
|
Year: string;
|
|
80
|
+
"Progress: {{value}}%": string;
|
|
75
81
|
};
|
|
76
82
|
};
|
|
77
83
|
export declare function useT(): (str: string, options?: Record<string, any>) => string;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import { ActionModel, TableActionsColumnModel, TableBlockModel } from '@nocobase/client-v2';
|
|
10
10
|
import { MultiRecordResource } from '@nocobase/flow-engine';
|
|
11
11
|
import React from 'react';
|
|
12
|
-
import { Task } from '
|
|
12
|
+
import { Task } from '../shared/types/public-types';
|
|
13
13
|
type GanttScrollToDateOptions = {
|
|
14
14
|
behavior?: ScrollBehavior;
|
|
15
15
|
};
|
|
@@ -10,8 +10,16 @@ import type { GanttBlockModel } from '../GanttBlockModel';
|
|
|
10
10
|
export declare const ROW_SELECTION_COLUMN_WIDTH = 50;
|
|
11
11
|
export declare const TREE_EXPAND_COLUMN_WIDTH = 42;
|
|
12
12
|
export declare const getColumnWidth: (dataSetLength: any, clientWidth: any) => number;
|
|
13
|
+
export declare const getMaxHorizontalScrollLeft: (scrollWidth: number, clientWidth: number) => number;
|
|
14
|
+
export declare const clampHorizontalScrollLeft: (scrollLeft: number, maxScrollLeft: number) => number;
|
|
15
|
+
export declare const mapHorizontalScrollLeft: ({ scrollLeft, fromMaxScrollLeft, toMaxScrollLeft, }: {
|
|
16
|
+
scrollLeft: number;
|
|
17
|
+
fromMaxScrollLeft: number;
|
|
18
|
+
toMaxScrollLeft: number;
|
|
19
|
+
}) => number;
|
|
13
20
|
export declare const getGanttRowKey: (model: GanttBlockModel, record: any) => string;
|
|
14
21
|
export declare const measureElementHeight: (element: Element | null) => number;
|
|
22
|
+
export declare const measureMaxElementHeight: (elements: Element[]) => number;
|
|
15
23
|
export declare const getDateIndex: (date: Date, dates: Date[]) => number;
|
|
16
24
|
export declare const getTreeRowNumber: (path?: string) => string;
|
|
17
25
|
export declare const getRowNumber: ({ page, pageSize, rowIndex, rowPath, }: {
|
|
@@ -6,12 +6,13 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
-
export declare const createGanttBlockClassNames: ({ token, tableWidth, hasVerticalScroll, hasHorizontalScroll, hasHorizontalTableScroll, }: {
|
|
9
|
+
export declare const createGanttBlockClassNames: ({ token, tableWidth, hasVerticalScroll, hasHorizontalScroll, hasHorizontalTableScroll, rowHeight, }: {
|
|
10
10
|
token: any;
|
|
11
11
|
tableWidth: number;
|
|
12
12
|
hasVerticalScroll?: boolean;
|
|
13
13
|
hasHorizontalScroll?: boolean;
|
|
14
14
|
hasHorizontalTableScroll?: boolean;
|
|
15
|
+
rowHeight: number;
|
|
15
16
|
}) => {
|
|
16
17
|
tableClass: string;
|
|
17
18
|
contentClass: string;
|
|
@@ -8,27 +8,30 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import type { ColumnsType } from 'antd/es/table';
|
|
10
10
|
import React from 'react';
|
|
11
|
-
import type { Task } from '
|
|
11
|
+
import type { Task } from '../../shared/types/public-types';
|
|
12
12
|
import type { GanttBlockModel } from '../GanttBlockModel';
|
|
13
13
|
export declare const GANTT_TREE_CHILDREN_COLUMN = "__ganttChildren";
|
|
14
|
-
export
|
|
14
|
+
export type GanttTreeMeta = {
|
|
15
15
|
childrenByParent: Map<string, Task[]>;
|
|
16
|
-
|
|
16
|
+
depthByTaskId: Map<string, number>;
|
|
17
17
|
roots: Task[];
|
|
18
18
|
};
|
|
19
|
-
export declare const
|
|
19
|
+
export declare const getGanttTreeMeta: (tasks: Task[]) => GanttTreeMeta;
|
|
20
|
+
export declare const getVisibleGanttTasks: ({ expandedRowKeySet, tasks, treeTableEnabled, treeMeta, }: {
|
|
20
21
|
expandedRowKeySet: Set<string>;
|
|
21
22
|
tasks: Task[];
|
|
22
23
|
treeTableEnabled: boolean;
|
|
24
|
+
treeMeta?: GanttTreeMeta;
|
|
23
25
|
}) => Task[];
|
|
24
|
-
export declare const getExpandableGanttRowKeys: (tasks: Task[]) => string[];
|
|
26
|
+
export declare const getExpandableGanttRowKeys: (tasks: Task[], treeMeta?: GanttTreeMeta) => string[];
|
|
25
27
|
export declare const getOrderedGanttTasks: ({ tasks, treeTableEnabled }: {
|
|
26
28
|
tasks: Task[];
|
|
27
29
|
treeTableEnabled: boolean;
|
|
28
30
|
}) => Task[];
|
|
29
|
-
export declare const getGanttTableRecords: ({ tasks, treeTableEnabled }: {
|
|
31
|
+
export declare const getGanttTableRecords: ({ tasks, treeTableEnabled, treeMeta, }: {
|
|
30
32
|
tasks: Task[];
|
|
31
33
|
treeTableEnabled: boolean;
|
|
34
|
+
treeMeta?: GanttTreeMeta;
|
|
32
35
|
}) => Record<string, any>[];
|
|
33
36
|
export declare const useGanttTree: ({ model, tasks, tableColumns, }: {
|
|
34
37
|
model: GanttBlockModel;
|
|
@@ -7,8 +7,9 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
gridBackground: import("antd-style").SerializedStyles;
|
|
11
|
+
gridColumnShade: import("antd-style").SerializedStyles;
|
|
12
|
+
gridSelectedRow: import("antd-style").SerializedStyles;
|
|
13
|
+
gridRowLine: import("antd-style").SerializedStyles;
|
|
13
14
|
}>;
|
|
14
15
|
export default useStyles;
|
package/dist/externalVersion.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
|
-
"@nocobase/client": "2.1.0-beta.
|
|
11
|
+
"@nocobase/client": "2.1.0-beta.41",
|
|
12
12
|
"react": "18.2.0",
|
|
13
13
|
"@formily/react": "2.3.7",
|
|
14
14
|
"react-i18next": "11.18.6",
|
|
@@ -16,12 +16,12 @@ module.exports = {
|
|
|
16
16
|
"@formily/antd-v5": "1.2.3",
|
|
17
17
|
"lodash": "4.18.1",
|
|
18
18
|
"@formily/shared": "2.3.7",
|
|
19
|
-
"@nocobase/flow-engine": "2.1.0-beta.
|
|
20
|
-
"@nocobase/client-v2": "2.1.0-beta.
|
|
21
|
-
"@nocobase/server": "2.1.0-beta.
|
|
22
|
-
"@nocobase/test": "2.1.0-beta.
|
|
19
|
+
"@nocobase/flow-engine": "2.1.0-beta.41",
|
|
20
|
+
"@nocobase/client-v2": "2.1.0-beta.41",
|
|
21
|
+
"@nocobase/server": "2.1.0-beta.41",
|
|
22
|
+
"@nocobase/test": "2.1.0-beta.41",
|
|
23
23
|
"antd": "5.24.2",
|
|
24
24
|
"@emotion/css": "11.13.0",
|
|
25
25
|
"antd-style": "3.7.1",
|
|
26
|
-
"@nocobase/utils": "2.1.0-beta.
|
|
26
|
+
"@nocobase/utils": "2.1.0-beta.41"
|
|
27
27
|
};
|
package/dist/locale/en-US.json
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
"Enable tree table": "Enable tree table",
|
|
8
8
|
"End date field": "End date field",
|
|
9
9
|
"Details": "Details",
|
|
10
|
+
"Duration: {{value}} day(s)": "Duration: {{value}} day(s)",
|
|
10
11
|
"Event popup settings": "Event popup settings",
|
|
11
12
|
"Expand all": "Expand all",
|
|
12
13
|
"Expand all rows by default": "Expand all rows by default",
|
|
@@ -24,9 +25,11 @@
|
|
|
24
25
|
"Show table": "Show table",
|
|
25
26
|
"Start date field": "Start date field",
|
|
26
27
|
"Table width": "Table width",
|
|
28
|
+
"Task date range": "{{name}}: {{start}} ~ {{end}}",
|
|
27
29
|
"Time scale": "Time scale",
|
|
28
30
|
"Title field": "Title field",
|
|
29
31
|
"Today": "Today",
|
|
30
32
|
"Week": "Week",
|
|
31
|
-
"Year": "Year"
|
|
33
|
+
"Year": "Year",
|
|
34
|
+
"Progress: {{value}}%": "Progress: {{value}}%"
|
|
32
35
|
}
|
package/dist/locale/zh-CN.json
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
"Color field": "颜色字段",
|
|
5
5
|
"Day": "天",
|
|
6
6
|
"Details": "详情",
|
|
7
|
+
"Duration: {{value}} day(s)": "时长:{{value}} 天",
|
|
7
8
|
"Enable drag to reschedule": "启用拖动重新排期",
|
|
8
9
|
"Enable tree table": "启用树表格",
|
|
9
10
|
"End date field": "结束日期字段",
|
|
@@ -24,9 +25,11 @@
|
|
|
24
25
|
"Show table": "表格显示",
|
|
25
26
|
"Start date field": "开始日期字段",
|
|
26
27
|
"Table width": "表格宽度",
|
|
28
|
+
"Task date range": "{{name}}:{{start}} ~ {{end}}",
|
|
27
29
|
"Time scale": "时间缩放等级",
|
|
28
30
|
"Title field": "标题字段",
|
|
29
31
|
"Today": "今天",
|
|
30
32
|
"Week": "周",
|
|
31
|
-
"Year": "年"
|
|
33
|
+
"Year": "年",
|
|
34
|
+
"Progress: {{value}}%": "进度:{{value}}%"
|
|
32
35
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-gantt",
|
|
3
|
-
"version": "2.1.0-beta.
|
|
3
|
+
"version": "2.1.0-beta.41",
|
|
4
4
|
"displayName": "Block: Gantt",
|
|
5
5
|
"displayName.ru-RU": "Блок: Диаграмма Ганта",
|
|
6
6
|
"displayName.zh-CN": "区块:甘特图",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@nocobase/server": "2.x",
|
|
22
22
|
"@nocobase/test": "2.x"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "ea3f966811146edb13c9e8016bf4cdc81597a003",
|
|
25
25
|
"keywords": [
|
|
26
26
|
"Blocks"
|
|
27
27
|
]
|