@nocobase/plugin-calendar 2.1.0-beta.44 → 2.1.0-beta.46

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.
@@ -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("react-dom"),require("@nocobase/client-v2"),require("dayjs"),require("@formily/shared"),require("react"),require("antd"),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-calendar/client-v2",["react-dom","@nocobase/client-v2","dayjs","@formily/shared","react","antd","@ant-design/icons","antd-style","@nocobase/flow-engine","@nocobase/utils/client","lodash"],t):"object"==typeof exports?exports["@nocobase/plugin-calendar/client-v2"]=t(require("react-dom"),require("@nocobase/client-v2"),require("dayjs"),require("@formily/shared"),require("react"),require("antd"),require("@ant-design/icons"),require("antd-style"),require("@nocobase/flow-engine"),require("@nocobase/utils/client"),require("lodash")):e["@nocobase/plugin-calendar/client-v2"]=t(e["react-dom"],e["@nocobase/client-v2"],e.dayjs,e["@formily/shared"],e.react,e.antd,e["@ant-design/icons"],e["antd-style"],e["@nocobase/flow-engine"],e["@nocobase/utils/client"],e.lodash)}(self,function(e,t,n,r,o,i,l,a,u,c,f){return function(){"use strict";var d,s,p,b={9488:function(e,t,n){n.d(t,{M:function(){return l},k:function(){return i}});var r=n(7694);function o(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 i(){var e=(0,r.useFlowEngine)();return function(t,n){return e.context.t(t,o({ns:["calendar","client"]},n))}}function l(e,t){return(0,r.tExpr)(e,o({ns:"calendar"},t))}},7375:function(e){e.exports=l},166:function(e){e.exports=r},3485:function(e){e.exports=t},7694:function(e){e.exports=u},7768:function(e){e.exports=c},2059:function(e){e.exports=i},3235:function(e){e.exports=a},9185:function(e){e.exports=n},6773:function(e){e.exports=f},9155:function(e){e.exports=o},9514:function(t){t.exports=e}},v={};function y(e){var t=v[e];if(void 0!==t)return t.exports;var n=v[e]={exports:{}};return b[e].call(n.exports,n,n.exports,y),n.exports}y.m=b,y.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return y.d(t,{a:t}),t},g=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},y.t=function(e,t){if(1&t&&(e=this(e)),8&t||"object"==typeof e&&e&&(4&t&&e.__esModule||16&t&&"function"==typeof e.then))return e;var n=Object.create(null);y.r(n);var r={};h=h||[null,g({}),g([]),g(g)];for(var o=2&t&&e;("object"==typeof o||"function"==typeof o)&&!~h.indexOf(o);o=g(o))Object.getOwnPropertyNames(o).forEach(function(t){r[t]=function(){return e[t]}});return r.default=function(){return e},y.d(n,r),n},y.d=function(e,t){for(var n in t)y.o(t,n)&&!y.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},y.f={},y.e=function(e){return Promise.all(Object.keys(y.f).reduce(function(t,n){return y.f[n](e,t),t},[]))},y.u=function(e){return""+e+"."+({110:"ad5ac59b04b06988",701:"ab4233a614cd3e0a",82:"7b76afd4bcb77bb9",944:"ae8f373289233106",952:"2e8bdb07443a31df",953:"6fd23a3f18022252"})[e]+".js"},y.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),y.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},m={},y.l=function(e,t,n,r){if(m[e])return void m[e].push(t);if(void 0!==n)for(var o,i,l=document.getElementsByTagName("script"),a=0;a<l.length;a++){var u=l[a];if(u.getAttribute("src")==e||u.getAttribute("data-rspack")=="@nocobase/plugin-calendar/client-v2:"+n){o=u;break}}o||(i=!0,(o=document.createElement("script")).timeout=120,y.nc&&o.setAttribute("nonce",y.nc),o.setAttribute("data-rspack","@nocobase/plugin-calendar/client-v2:"+n),o.src=e),m[e]=[t];var c=function(t,n){o.onerror=o.onload=null,clearTimeout(f);var r=m[e];if(delete m[e],o.parentNode&&o.parentNode.removeChild(o),r&&r.forEach(function(e){return e(n)}),t)return t(n)},f=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),i&&document.head.appendChild(o)},y.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},y.g.importScripts&&(w=y.g.location+"");var h,g,m,w,_=y.g.document;if(!w&&_&&(_.currentScript&&"SCRIPT"===_.currentScript.tagName.toUpperCase()&&(w=_.currentScript.src),!w)){var j=_.getElementsByTagName("script");if(j.length)for(var k=j.length-1;k>-1&&(!w||!/^http(s?):/.test(w));)w=j[k--].src}if(!w)throw Error("Automatic publicPath is not supported in this browser");y.p=w.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),d={889:0},y.f.j=function(e,t){var n=y.o(d,e)?d[e]:void 0;if(0!==n)if(n)t.push(n[2]);else{var r=new Promise(function(t,r){n=d[e]=[t,r]});t.push(n[2]=r);var o=y.p+y.u(e),i=Error();y.l(o,function(t){if(y.o(d,e)&&(0!==(n=d[e])&&(d[e]=void 0),n)){var r=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;i.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",i.name="ChunkLoadError",i.type=r,i.request=o,n[1](i)}},"chunk-"+e,e)}},s=function(e,t){var n,r,o=t[0],i=t[1],l=t[2],a=0;if(o.some(function(e){return 0!==d[e]})){for(n in i)y.o(i,n)&&(y.m[n]=i[n]);l&&l(y)}for(e&&e(t);a<o.length;a++)r=o[a],y.o(d,r)&&d[r]&&d[r][0](),d[r]=0},(p=self.webpackChunk_nocobase_plugin_calendar_client_v2=self.webpackChunk_nocobase_plugin_calendar_client_v2||[]).forEach(s.bind(null,0)),p.push=s.bind(null,p.push.bind(p));var O={};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-calendar/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-calendar/dist/client-v2/"}y.p=e}(),!function(){y.r(O),y.d(O,{PluginCalendarClient:function(){return m},default:function(){return w}});var e=y(3485),t=y(9155),n=y.n(t),r=y(9488);function o(e,t,n,r,o,i,l){try{var a=e[i](l),u=a.value}catch(e){n(e);return}a.done?t(u):Promise.resolve(u).then(r,o)}function i(e,t,n){return(i=d()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&u(o,n.prototype),o}).apply(null,arguments)}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function f(e){var t="function"==typeof Map?new Map:void 0;return(f=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 i(e,arguments,a(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),u(n,e)})(e)}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(d=function(){return!!e})()}var s=function(e){var t=e.value;return n().createElement("span",{"aria-label":"event-title"},t||"N/A")},p=new Set(["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]),b=function(e){return null==e||""===e?null:(void 0===e?"undefined":c(e))==="object"?b(e.hex||e.hexString||e.color||e.value):String(e)},v=function(e,t){var n=b(t);return n&&"default"!==n?p.has(n)?{backgroundColor:(null==e?void 0:e["".concat(n,"1")])||null,borderColor:(null==e?void 0:e["".concat(n,"3")])||null,fontColor:(null==e?void 0:e["".concat(n,"7")])||null}:{backgroundColor:n,borderColor:"transparent",fontColor:(null==e?void 0:e.colorTextLightSolid)||"#fff"}:null},h=function(e,t){var n;return(Array.isArray(null==e||null==(n=e.uiSchema)?void 0:n.enum)?e.uiSchema.enum:[]).find(function(e){var n,r,o;return String(null!=(n=null!=(r=null!=(o=null==e?void 0:e.value)?o:null==e?void 0:e.name)?r:null==e?void 0:e.id)?n:"")===String(t)})},g=function(e,t){return{loading:!1,getFontColor:function(n){var r,o=h(e,n);return(null==e?void 0:e.interface)==="color"?null:(null==(r=v(null==t?void 0:t.token,null==o?void 0:o.color))?void 0:r.fontColor)||null},getBackgroundColor:function(n){var r,o=h(e,n);return(null==e?void 0:e.interface)==="color"?b(n):(null==(r=v(null==t?void 0:t.token,null==o?void 0:o.color))?void 0:r.backgroundColor)||null},getBorderColor:function(n){var r,o=h(e,n);return(null==e?void 0:e.interface)==="color"?b(n):(null==(r=v(null==t?void 0:t.token,null==o?void 0:o.color))?void 0:r.borderColor)||null}}},m=function(e){var t;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function n(){var e,t,r;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");return t=n,r=arguments,t=a(t),l(e=function(e,t){if(t&&("object"===c(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,d()?Reflect.construct(t,r||[],a(this).constructor):t.apply(this,r)),"titleFieldInterfaces",{input:{TitleRenderer:s},select:{TitleRenderer:s},phone:{TitleRenderer:s},email:{TitleRenderer:s},radioGroup:{TitleRenderer:s}}),l(e,"colorFieldInterfaces",{select:{useGetColor:g},radioGroup:{useGetColor:g},color:{useGetColor:g}}),l(e,"dateTimeFieldInterfaces",["date","datetime","dateOnly","datetimeNoTz","unixTimestamp","createdAt","updatedAt"]),e}return n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&u(n,e),t=[{key:"registerTitleFieldInterface",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{TitleRenderer:s};this.titleFieldInterfaces[e]=t}},{key:"getTitleFieldInterface",value:function(e){return e?this.titleFieldInterfaces[e]:this.titleFieldInterfaces}},{key:"getTitleFieldInterfaces",value:function(){return Object.keys(this.titleFieldInterfaces)}},{key:"registerDateTimeFieldInterface",value:function(e){Array.isArray(e)?this.dateTimeFieldInterfaces=this.dateTimeFieldInterfaces.concat(e):this.dateTimeFieldInterfaces.push(e)}},{key:"getDateTimeFieldInterfaces",value:function(){return this.dateTimeFieldInterfaces}},{key:"registerColorFieldInterface",value:function(e,t){this.colorFieldInterfaces[e]=t}},{key:"getColorFieldInterface",value:function(e){return this.colorFieldInterfaces[e]}},{key:"getColorFieldInterfaces",value:function(){return Object.keys(this.colorFieldInterfaces)}},{key:"load",value:function(){var e;return(e=function(){var e,t;return function(e,t){var n,r,o,i={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),a=Object.defineProperty;return a(l,"next",{value:u(0)}),a(l,"throw",{value:u(1)}),a(l,"return",{value:u(2)}),"function"==typeof Symbol&&a(l,Symbol.iterator,{value:function(){return this}}),l;function u(a){return function(u){var c=[a,u];if(n)throw TypeError("Generator is already executing.");for(;l&&(l=0,c[0]&&(i=0)),i;)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 i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}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(n){return null==(t=this.app.pm.get("@nocobase/plugin-data-source-manager")||this.app.pm.get("data-source-manager"))||null==(e=t.registerCollectionTemplate)||e.call(t,{name:"calendar",title:(0,r.M)("Calendar collection"),order:20,color:"orange",collection:{options:{template:"calendar",createdBy:!0,updatedBy:!0,createdAt:!0,updatedAt:!0,sortable:!0},fields:[{name:"cron",type:"string",uiSchema:{type:"string",title:(0,r.M)("Repeats"),"x-component":"CronSet","x-component-props":"allowClear",enum:[{label:(0,r.M)("Daily"),value:"0 0 0 * * ?"},{label:(0,r.M)("Weekly"),value:"every_week"},{label:(0,r.M)("Monthly"),value:"every_month"},{label:(0,r.M)("Yearly"),value:"every_year"}]},interface:"select"},{name:"exclude",type:"json"}]},fieldInterfaces:{include:[]}}),this.flowEngine.registerModelLoaders({CalendarBlockModel:{loader:function(){return Promise.all([y.e("701"),y.e("952"),y.e("110")]).then(y.bind(y,2245))}},CalendarCollectionActionGroupModel:{loader:function(){return y.e("944").then(y.bind(y,971))}},CalendarEventViewActionModel:{loader:function(){return y.e("952").then(y.bind(y,6875))}},CalendarNavActionModel:{loader:function(){return y.e("944").then(y.bind(y,971))}},CalendarQuickCreateActionModel:{loader:function(){return y.e("952").then(y.bind(y,6875))}},CalendarTitleActionModel:{loader:function(){return y.e("944").then(y.bind(y,971))}},CalendarTodayActionModel:{loader:function(){return y.e("944").then(y.bind(y,971))}},CalendarViewSelectActionModel:{loader:function(){return y.e("944").then(y.bind(y,971))}}}),[2]})},function(){var t=this,n=arguments;return new Promise(function(r,i){var l=e.apply(t,n);function a(e){o(l,r,i,a,u,"next",e)}function u(e){o(l,r,i,a,u,"throw",e)}a(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)}}(n.prototype,t),n}(f(e.Plugin)),w=m}(),O}()});
10
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react-dom"),require("@nocobase/client-v2"),require("dayjs"),require("@formily/shared"),require("react"),require("antd"),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-calendar/client-v2",["react-dom","@nocobase/client-v2","dayjs","@formily/shared","react","antd","@ant-design/icons","antd-style","@nocobase/flow-engine","@nocobase/utils/client","lodash"],t):"object"==typeof exports?exports["@nocobase/plugin-calendar/client-v2"]=t(require("react-dom"),require("@nocobase/client-v2"),require("dayjs"),require("@formily/shared"),require("react"),require("antd"),require("@ant-design/icons"),require("antd-style"),require("@nocobase/flow-engine"),require("@nocobase/utils/client"),require("lodash")):e["@nocobase/plugin-calendar/client-v2"]=t(e["react-dom"],e["@nocobase/client-v2"],e.dayjs,e["@formily/shared"],e.react,e.antd,e["@ant-design/icons"],e["antd-style"],e["@nocobase/flow-engine"],e["@nocobase/utils/client"],e.lodash)}(self,function(e,t,n,r,o,i,l,a,u,c,f){return function(){"use strict";var d,s,p,b={9488:function(e,t,n){n.d(t,{M:function(){return l},k:function(){return i}});var r=n(7694);function o(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 i(){var e=(0,r.useFlowEngine)();return function(t,n){return e.context.t(t,o({ns:["calendar","client"]},n))}}function l(e,t){return(0,r.tExpr)(e,o({ns:"calendar"},t))}},7375:function(e){e.exports=l},166:function(e){e.exports=r},3485:function(e){e.exports=t},7694:function(e){e.exports=u},7768:function(e){e.exports=c},2059:function(e){e.exports=i},3235:function(e){e.exports=a},9185:function(e){e.exports=n},6773:function(e){e.exports=f},9155:function(e){e.exports=o},9514:function(t){t.exports=e}},v={};function y(e){var t=v[e];if(void 0!==t)return t.exports;var n=v[e]={exports:{}};return b[e].call(n.exports,n,n.exports,y),n.exports}y.m=b,y.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return y.d(t,{a:t}),t},g=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},y.t=function(e,t){if(1&t&&(e=this(e)),8&t||"object"==typeof e&&e&&(4&t&&e.__esModule||16&t&&"function"==typeof e.then))return e;var n=Object.create(null);y.r(n);var r={};h=h||[null,g({}),g([]),g(g)];for(var o=2&t&&e;("object"==typeof o||"function"==typeof o)&&!~h.indexOf(o);o=g(o))Object.getOwnPropertyNames(o).forEach(function(t){r[t]=function(){return e[t]}});return r.default=function(){return e},y.d(n,r),n},y.d=function(e,t){for(var n in t)y.o(t,n)&&!y.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},y.f={},y.e=function(e){return Promise.all(Object.keys(y.f).reduce(function(t,n){return y.f[n](e,t),t},[]))},y.u=function(e){return""+e+"."+({110:"ad5ac59b04b06988",701:"ab4233a614cd3e0a",82:"7b76afd4bcb77bb9",944:"ae8f373289233106",952:"2e8bdb07443a31df",953:"6fd23a3f18022252"})[e]+".js"},y.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),y.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},m={},y.l=function(e,t,n,r){if(m[e])return void m[e].push(t);if(void 0!==n)for(var o,i,l=document.getElementsByTagName("script"),a=0;a<l.length;a++){var u=l[a];if(u.getAttribute("src")==e||u.getAttribute("data-rspack")=="@nocobase/plugin-calendar/client-v2:"+n){o=u;break}}o||(i=!0,(o=document.createElement("script")).timeout=120,y.nc&&o.setAttribute("nonce",y.nc),o.setAttribute("data-rspack","@nocobase/plugin-calendar/client-v2:"+n),o.src=e),m[e]=[t];var c=function(t,n){o.onerror=o.onload=null,clearTimeout(f);var r=m[e];if(delete m[e],o.parentNode&&o.parentNode.removeChild(o),r&&r.forEach(function(e){return e(n)}),t)return t(n)},f=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),i&&document.head.appendChild(o)},y.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},y.g.importScripts&&(w=y.g.location+"");var h,g,m,w,_=y.g.document;if(!w&&_&&(_.currentScript&&"SCRIPT"===_.currentScript.tagName.toUpperCase()&&(w=_.currentScript.src),!w)){var j=_.getElementsByTagName("script");if(j.length)for(var k=j.length-1;k>-1&&(!w||!/^http(s?):/.test(w));)w=j[k--].src}if(!w)throw Error("Automatic publicPath is not supported in this browser");y.p=w.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),d={889:0},y.f.j=function(e,t){var n=y.o(d,e)?d[e]:void 0;if(0!==n)if(n)t.push(n[2]);else{var r=new Promise(function(t,r){n=d[e]=[t,r]});t.push(n[2]=r);var o=y.p+y.u(e),i=Error();y.l(o,function(t){if(y.o(d,e)&&(0!==(n=d[e])&&(d[e]=void 0),n)){var r=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;i.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",i.name="ChunkLoadError",i.type=r,i.request=o,n[1](i)}},"chunk-"+e,e)}},s=function(e,t){var n,r,o=t[0],i=t[1],l=t[2],a=0;if(o.some(function(e){return 0!==d[e]})){for(n in i)y.o(i,n)&&(y.m[n]=i[n]);l&&l(y)}for(e&&e(t);a<o.length;a++)r=o[a],y.o(d,r)&&d[r]&&d[r][0](),d[r]=0},(p=self.webpackChunk_nocobase_plugin_calendar_client_v2=self.webpackChunk_nocobase_plugin_calendar_client_v2||[]).forEach(s.bind(null,0)),p.push=s.bind(null,p.push.bind(p));var O={};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-calendar/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 i=window.location.pathname||"/",l=i.indexOf(o);e=l>=0?i.slice(0,l+1):"/"}e&&(e=e.replace(RegExp("/"+r+"/?$"),"/")),e||(e="/"),"/"!==e.charAt(e.length-1)&&(e+="/"),e+="static/plugins/@nocobase/plugin-calendar/dist/client-v2/"}y.p=e}(),!function(){y.r(O),y.d(O,{PluginCalendarClient:function(){return m},default:function(){return w}});var e=y(3485),t=y(9155),n=y.n(t),r=y(9488);function o(e,t,n,r,o,i,l){try{var a=e[i](l),u=a.value}catch(e){n(e);return}a.done?t(u):Promise.resolve(u).then(r,o)}function i(e,t,n){return(i=d()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&u(o,n.prototype),o}).apply(null,arguments)}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function f(e){var t="function"==typeof Map?new Map:void 0;return(f=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 i(e,arguments,a(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),u(n,e)})(e)}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(d=function(){return!!e})()}var s=function(e){var t=e.value;return n().createElement("span",{"aria-label":"event-title"},t||"N/A")},p=new Set(["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]),b=function(e){return null==e||""===e?null:(void 0===e?"undefined":c(e))==="object"?b(e.hex||e.hexString||e.color||e.value):String(e)},v=function(e,t){var n=b(t);return n&&"default"!==n?p.has(n)?{backgroundColor:(null==e?void 0:e["".concat(n,"1")])||null,borderColor:(null==e?void 0:e["".concat(n,"3")])||null,fontColor:(null==e?void 0:e["".concat(n,"7")])||null}:{backgroundColor:n,borderColor:"transparent",fontColor:(null==e?void 0:e.colorTextLightSolid)||"#fff"}:null},h=function(e,t){var n;return(Array.isArray(null==e||null==(n=e.uiSchema)?void 0:n.enum)?e.uiSchema.enum:[]).find(function(e){var n,r,o;return String(null!=(n=null!=(r=null!=(o=null==e?void 0:e.value)?o:null==e?void 0:e.name)?r:null==e?void 0:e.id)?n:"")===String(t)})},g=function(e,t){return{loading:!1,getFontColor:function(n){var r,o=h(e,n);return(null==e?void 0:e.interface)==="color"?null:(null==(r=v(null==t?void 0:t.token,null==o?void 0:o.color))?void 0:r.fontColor)||null},getBackgroundColor:function(n){var r,o=h(e,n);return(null==e?void 0:e.interface)==="color"?b(n):(null==(r=v(null==t?void 0:t.token,null==o?void 0:o.color))?void 0:r.backgroundColor)||null},getBorderColor:function(n){var r,o=h(e,n);return(null==e?void 0:e.interface)==="color"?b(n):(null==(r=v(null==t?void 0:t.token,null==o?void 0:o.color))?void 0:r.borderColor)||null}}},m=function(e){var t;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function n(){var e,t,r;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");return t=n,r=arguments,t=a(t),l(e=function(e,t){if(t&&("object"===c(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,d()?Reflect.construct(t,r||[],a(this).constructor):t.apply(this,r)),"titleFieldInterfaces",{input:{TitleRenderer:s},select:{TitleRenderer:s},phone:{TitleRenderer:s},email:{TitleRenderer:s},radioGroup:{TitleRenderer:s}}),l(e,"colorFieldInterfaces",{select:{useGetColor:g},radioGroup:{useGetColor:g},color:{useGetColor:g}}),l(e,"dateTimeFieldInterfaces",["date","datetime","dateOnly","datetimeNoTz","unixTimestamp","createdAt","updatedAt"]),e}return n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&u(n,e),t=[{key:"registerTitleFieldInterface",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{TitleRenderer:s};this.titleFieldInterfaces[e]=t}},{key:"getTitleFieldInterface",value:function(e){return e?this.titleFieldInterfaces[e]:this.titleFieldInterfaces}},{key:"getTitleFieldInterfaces",value:function(){return Object.keys(this.titleFieldInterfaces)}},{key:"registerDateTimeFieldInterface",value:function(e){Array.isArray(e)?this.dateTimeFieldInterfaces=this.dateTimeFieldInterfaces.concat(e):this.dateTimeFieldInterfaces.push(e)}},{key:"getDateTimeFieldInterfaces",value:function(){return this.dateTimeFieldInterfaces}},{key:"registerColorFieldInterface",value:function(e,t){this.colorFieldInterfaces[e]=t}},{key:"getColorFieldInterface",value:function(e){return this.colorFieldInterfaces[e]}},{key:"getColorFieldInterfaces",value:function(){return Object.keys(this.colorFieldInterfaces)}},{key:"load",value:function(){var e;return(e=function(){var e,t;return function(e,t){var n,r,o,i={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),a=Object.defineProperty;return a(l,"next",{value:u(0)}),a(l,"throw",{value:u(1)}),a(l,"return",{value:u(2)}),"function"==typeof Symbol&&a(l,Symbol.iterator,{value:function(){return this}}),l;function u(a){return function(u){var c=[a,u];if(n)throw TypeError("Generator is already executing.");for(;l&&(l=0,c[0]&&(i=0)),i;)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 i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}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(n){return null==(t=this.app.pm.get("@nocobase/plugin-data-source-manager")||this.app.pm.get("data-source-manager"))||null==(e=t.registerCollectionTemplate)||e.call(t,{name:"calendar",title:(0,r.M)("Calendar collection"),order:20,color:"orange",collection:{options:{template:"calendar",createdBy:!0,updatedBy:!0,createdAt:!0,updatedAt:!0,sortable:!0},fields:[{name:"cron",type:"string",uiSchema:{type:"string",title:(0,r.M)("Repeats"),"x-component":"CronSet","x-component-props":"allowClear",enum:[{label:(0,r.M)("Daily"),value:"0 0 0 * * ?"},{label:(0,r.M)("Weekly"),value:"every_week"},{label:(0,r.M)("Monthly"),value:"every_month"},{label:(0,r.M)("Yearly"),value:"every_year"}]},interface:"select"},{name:"exclude",type:"json"}]},fieldInterfaces:{include:[]}}),this.flowEngine.registerModelLoaders({CalendarBlockModel:{loader:function(){return Promise.all([y.e("701"),y.e("952"),y.e("110")]).then(y.bind(y,2245))}},CalendarCollectionActionGroupModel:{loader:function(){return y.e("944").then(y.bind(y,971))}},CalendarEventViewActionModel:{loader:function(){return y.e("952").then(y.bind(y,6875))}},CalendarNavActionModel:{loader:function(){return y.e("944").then(y.bind(y,971))}},CalendarQuickCreateActionModel:{loader:function(){return y.e("952").then(y.bind(y,6875))}},CalendarTitleActionModel:{loader:function(){return y.e("944").then(y.bind(y,971))}},CalendarTodayActionModel:{loader:function(){return y.e("944").then(y.bind(y,971))}},CalendarViewSelectActionModel:{loader:function(){return y.e("944").then(y.bind(y,971))}}}),[2]})},function(){var t=this,n=arguments;return new Promise(function(r,i){var l=e.apply(t,n);function a(e){o(l,r,i,a,u,"next",e)}function u(e){o(l,r,i,a,u,"throw",e)}a(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)}}(n.prototype,t),n}(f(e.Plugin)),w=m}(),O}()});
@@ -8,15 +8,15 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@nocobase/client": "2.1.0-beta.44",
11
+ "@nocobase/client": "2.1.0-beta.46",
12
12
  "react": "18.2.0",
13
- "@nocobase/flow-engine": "2.1.0-beta.44",
14
- "@nocobase/client-v2": "2.1.0-beta.44",
13
+ "@nocobase/flow-engine": "2.1.0-beta.46",
14
+ "@nocobase/client-v2": "2.1.0-beta.46",
15
15
  "react-i18next": "11.18.6",
16
- "@nocobase/server": "2.1.0-beta.44",
16
+ "@nocobase/server": "2.1.0-beta.46",
17
17
  "dayjs": "1.11.13",
18
18
  "lodash": "4.18.1",
19
- "@nocobase/test": "2.1.0-beta.44",
19
+ "@nocobase/test": "2.1.0-beta.46",
20
20
  "@ant-design/icons": "5.6.1",
21
21
  "@formily/react": "2.3.7",
22
22
  "antd": "5.24.2",
@@ -25,5 +25,5 @@ module.exports = {
25
25
  "@formily/core": "2.3.7",
26
26
  "@formily/shared": "2.3.7",
27
27
  "@formily/antd-v5": "1.2.3",
28
- "@nocobase/utils": "2.1.0-beta.44"
28
+ "@nocobase/utils": "2.1.0-beta.46"
29
29
  };
@@ -1 +1 @@
1
- {"name":"solarlunar-es","version":"1.0.9","description":"一个公历农历转化工具,支持esmodule","main":"./dist/solarlunar.cjs.js","module":"./dist/solarlunar.esm.js","types":"./dist/solarlunar.d.ts","scripts":{"build":"rollup -c","test":"mocha"},"files":["dist"],"keywords":["solarlunar","esm","公历农历转换"],"repository":{"type":"git","url":"https://github.com/qiuquanwu/solarlunar-es"},"author":"qiuquanwu","license":"ISC","devDependencies":{"@babel/core":"^7.12.10","@rollup/plugin-commonjs":"^17.1.0","@rollup/plugin-node-resolve":"^11.1.0","rollup":"^2.38.1","rollup-plugin-babel":"^4.4.0","rollup-plugin-dts":"^4.1.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript":"^1.0.1","typescript":"^4.5.5","chai":"^4.3.6","mocha":"^9.2.1"},"_lastModified":"2026-06-03T13:56:43.682Z"}
1
+ {"name":"solarlunar-es","version":"1.0.9","description":"一个公历农历转化工具,支持esmodule","main":"./dist/solarlunar.cjs.js","module":"./dist/solarlunar.esm.js","types":"./dist/solarlunar.d.ts","scripts":{"build":"rollup -c","test":"mocha"},"files":["dist"],"keywords":["solarlunar","esm","公历农历转换"],"repository":{"type":"git","url":"https://github.com/qiuquanwu/solarlunar-es"},"author":"qiuquanwu","license":"ISC","devDependencies":{"@babel/core":"^7.12.10","@rollup/plugin-commonjs":"^17.1.0","@rollup/plugin-node-resolve":"^11.1.0","rollup":"^2.38.1","rollup-plugin-babel":"^4.4.0","rollup-plugin-dts":"^4.1.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript":"^1.0.1","typescript":"^4.5.5","chai":"^4.3.6","mocha":"^9.2.1"},"_lastModified":"2026-06-08T07:14:05.399Z"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-calendar",
3
- "version": "2.1.0-beta.44",
3
+ "version": "2.1.0-beta.46",
4
4
  "displayName": "Calendar",
5
5
  "displayName.ru-RU": "Календарь",
6
6
  "displayName.zh-CN": "日历",
@@ -41,7 +41,7 @@
41
41
  "url": "git+https://github.com/nocobase/nocobase.git",
42
42
  "directory": "packages/plugins/calendar"
43
43
  },
44
- "gitHead": "540d4897b1696cc24c0754521b0b766978b4933c",
44
+ "gitHead": "91fd3ab238a5ff58735bbfca04a8cb05d233b0af",
45
45
  "keywords": [
46
46
  "Collections",
47
47
  "Blocks"