@nocobase/plugin-gantt 2.2.0-beta.5 → 2.2.0-beta.6
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-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,{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","Scroll to today on first display":"Scroll to today on first display","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":"季度","Scroll to today on first display":"默认定位到今天","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:"f2215e8e2c830646",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,g=b.g.document;if(!v&&g&&(g.currentScript&&"SCRIPT"===g.currentScript.tagName.toUpperCase()&&(v=g.currentScript.src),!v)){var h=g.getElementsByTagName("script");if(h.length)for(var m=h.length-1;m>-1&&(!v||!/^http(s?):/.test(v));)v=h[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){var r=window.__nocobase_modern_client_prefix__||"v",o="/"+(r=String(r).replace(/^\/+|\/+$/g,"")||"v")+"/";if(!(e=window.__nocobase_public_path__||"")&&window.location&&window.location.pathname){var a=window.location.pathname||"/",i=a.indexOf(o);e=i>=0?a.slice(0,i+1):"/"}e&&(e=e.replace(RegExp("/"+r+"/?$"),"/")),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}()});
|
|
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","Scroll to today on first display":"Scroll to today on first display","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":"季度","Scroll to today on first display":"默认定位到今天","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:"63c7a9384da01b66",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,g=b.g.document;if(!v&&g&&(g.currentScript&&"SCRIPT"===g.currentScript.tagName.toUpperCase()&&(v=g.currentScript.src),!v)){var h=g.getElementsByTagName("script");if(h.length)for(var m=h.length-1;m>-1&&(!v||!/^http(s?):/.test(v));)v=h[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){var n=t.src.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"");n.indexOf("/static/plugins/@nocobase/plugin-gantt/dist/client-v2/")>=0&&(e=n.replace(/\/[^\/]+$/,"/"))}if(!e){var r=window.__webpack_public_path__||"";r&&("/"!==r.charAt(r.length-1)&&(r+="/"),e=r+"static/plugins/@nocobase/plugin-gantt/dist/client-v2/")}if(!e){var o=window.__nocobase_modern_client_prefix__||"v",a="/"+(o=String(o).replace(/^\/+|\/+$/g,"")||"v")+"/";if(!(e=window.__nocobase_public_path__||"")&&window.location&&window.location.pathname){var i=window.location.pathname||"/",l=i.indexOf(a);e=l>=0?i.slice(0,l+1):"/"}e&&(e=e.replace(RegExp("/"+o+"/?$"),"/")),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}()});
|
|
@@ -15,6 +15,7 @@ type GanttScrollToDateOptions = {
|
|
|
15
15
|
};
|
|
16
16
|
type GanttPopupActionOptions = {
|
|
17
17
|
persist?: boolean;
|
|
18
|
+
preserveActionTemplate?: boolean;
|
|
18
19
|
};
|
|
19
20
|
export declare class GanttBlockModel extends TableBlockModel {
|
|
20
21
|
static scene: import("@nocobase/client-v2").BlockSceneType;
|
|
@@ -81,14 +82,21 @@ export declare class GanttBlockModel extends TableBlockModel {
|
|
|
81
82
|
dataSourceKey: any;
|
|
82
83
|
};
|
|
83
84
|
getStoredPopupSettings(): any;
|
|
85
|
+
clearStoredPopupSettings(): void;
|
|
86
|
+
getPopupActionSettings(action: any): any;
|
|
87
|
+
hasPopupTemplateState(popupSettings?: Record<string, any>): boolean;
|
|
88
|
+
mergePopupTemplateSettings(baseSettings: Record<string, any>, popupSettings?: Record<string, any>): Record<string, any>;
|
|
84
89
|
normalizePopupSettings(popupSettings?: Record<string, any>): {
|
|
85
90
|
[x: string]: any;
|
|
86
91
|
};
|
|
87
92
|
setPopupSettings(popupSettings?: Record<string, any>): {
|
|
88
93
|
[x: string]: any;
|
|
89
94
|
};
|
|
90
|
-
getPopupSettings(action: any, actionUid?: string): any;
|
|
95
|
+
getPopupSettings(action: any, actionUid?: string, options?: GanttPopupActionOptions): any;
|
|
91
96
|
syncPopupActionSettings(action: any, options?: GanttPopupActionOptions): Promise<void>;
|
|
97
|
+
setPopupActionSettings(action: any, popupSettings?: Record<string, any>, options?: GanttPopupActionOptions): Promise<{
|
|
98
|
+
[x: string]: any;
|
|
99
|
+
}>;
|
|
92
100
|
loadPopupAction(actionKey: 'eventViewAction'): Promise<import("@nocobase/flow-engine").FlowModel<import("@nocobase/flow-engine").DefaultStructure>>;
|
|
93
101
|
ensurePopupAction(actionKey?: 'eventViewAction', options?: GanttPopupActionOptions): Promise<any>;
|
|
94
102
|
openEvent(record: any): Promise<void>;
|
package/dist/externalVersion.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
|
-
"@nocobase/client": "2.2.0-beta.
|
|
11
|
+
"@nocobase/client": "2.2.0-beta.6",
|
|
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.2.0-beta.
|
|
20
|
-
"@nocobase/client-v2": "2.2.0-beta.
|
|
21
|
-
"@nocobase/server": "2.2.0-beta.
|
|
22
|
-
"@nocobase/test": "2.2.0-beta.
|
|
19
|
+
"@nocobase/flow-engine": "2.2.0-beta.6",
|
|
20
|
+
"@nocobase/client-v2": "2.2.0-beta.6",
|
|
21
|
+
"@nocobase/server": "2.2.0-beta.6",
|
|
22
|
+
"@nocobase/test": "2.2.0-beta.6",
|
|
23
23
|
"antd": "5.24.2",
|
|
24
24
|
"@emotion/css": "11.13.0",
|
|
25
25
|
"antd-style": "3.7.1",
|
|
26
|
-
"@nocobase/utils": "2.2.0-beta.
|
|
26
|
+
"@nocobase/utils": "2.2.0-beta.6"
|
|
27
27
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-gantt",
|
|
3
|
-
"version": "2.2.0-beta.
|
|
3
|
+
"version": "2.2.0-beta.6",
|
|
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": "dc9246516f8a3efd6056f22fe7b3bc947bd4575b",
|
|
25
25
|
"keywords": [
|
|
26
26
|
"Blocks"
|
|
27
27
|
]
|