@nocobase/plugin-workflow-date-calculation 2.1.0-alpha.12 → 2.1.0-alpha.14

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-i18next"),require("@formily/antd-v5"),require("react"),require("antd"),require("@nocobase/client"),require("@formily/react"),require("@ant-design/icons"),require("@nocobase/plugin-workflow/client"),require("lodash")):"function"==typeof define&&define.amd?define("@nocobase/plugin-workflow-date-calculation",["react-i18next","@formily/antd-v5","react","antd","@nocobase/client","@formily/react","@ant-design/icons","@nocobase/plugin-workflow/client","lodash"],t):"object"==typeof exports?exports["@nocobase/plugin-workflow-date-calculation"]=t(require("react-i18next"),require("@formily/antd-v5"),require("react"),require("antd"),require("@nocobase/client"),require("@formily/react"),require("@ant-design/icons"),require("@nocobase/plugin-workflow/client"),require("lodash")):e["@nocobase/plugin-workflow-date-calculation"]=t(e["react-i18next"],e["@formily/antd-v5"],e.react,e.antd,e["@nocobase/client"],e["@formily/react"],e["@ant-design/icons"],e["@nocobase/plugin-workflow/client"],e.lodash)}(self,function(e,t,n,o,r,a,c,u,i){return function(){"use strict";var l,s,p,f={7375:function(e){e.exports=c},418:function(e){e.exports=t},5230:function(e){e.exports=a},3342:function(e){e.exports=r},1990:function(e){e.exports=u},2059:function(e){e.exports=o},6773:function(e){e.exports=i},9155:function(e){e.exports=n},5953:function(t){t.exports=e}},d={};function m(e){var t=d[e];if(void 0!==t)return t.exports;var n=d[e]={id:e,loaded:!1,exports:{}};return f[e].call(n.exports,n,n.exports,m),n.loaded=!0,n.exports}m.m=f,m.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return m.d(t,{a:t}),t},b=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},m.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);m.r(n);var o={};y=y||[null,b({}),b([]),b(b)];for(var r=2&t&&e;("object"==typeof r||"function"==typeof r)&&!~y.indexOf(r);r=b(r))Object.getOwnPropertyNames(r).forEach(function(t){o[t]=function(){return e[t]}});return o.default=function(){return e},m.d(n,o),n},m.d=function(e,t){for(var n in t)m.o(t,n)&&!m.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},m.f={},m.e=function(e){return Promise.all(Object.keys(m.f).reduce(function(t,n){return m.f[n](e,t),t},[]))},m.u=function(e){return""+({200:"c9331449ad965b93",297:"e83af37f528cbee3"})[e]+".js"},m.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),m.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},v={},m.l=function(e,t,n,o){if(v[e])return void v[e].push(t);if(void 0!==n)for(var r,a,c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var i=c[u];if(i.getAttribute("src")==e||i.getAttribute("data-rspack")=="@nocobase/plugin-workflow-date-calculation:"+n){r=i;break}}r||(a=!0,(r=document.createElement("script")).timeout=120,m.nc&&r.setAttribute("nonce",m.nc),r.setAttribute("data-rspack","@nocobase/plugin-workflow-date-calculation:"+n),r.src=e),v[e]=[t];var l=function(t,n){r.onerror=r.onload=null,clearTimeout(s);var o=v[e];if(delete v[e],r.parentNode&&r.parentNode.removeChild(r),o&&o.forEach(function(e){return e(n)}),t)return t(n)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=l.bind(null,r.onerror),r.onload=l.bind(null,r.onload),a&&document.head.appendChild(r)},m.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},m.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},m.g.importScripts&&(g=m.g.location+"");var y,b,v,g,h=m.g.document;if(!g&&h&&(h.currentScript&&"SCRIPT"===h.currentScript.tagName.toUpperCase()&&(g=h.currentScript.src),!g)){var w=h.getElementsByTagName("script");if(w.length)for(var O=w.length-1;O>-1&&(!g||!/^http(s?):/.test(g));)g=w[O--].src}if(!g)throw Error("Automatic publicPath is not supported in this browser");m.p=g.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),l={889:0},m.f.j=function(e,t){var n=m.o(l,e)?l[e]:void 0;if(0!==n)if(n)t.push(n[2]);else{var o=new Promise(function(t,o){n=l[e]=[t,o]});t.push(n[2]=o);var r=m.p+m.u(e),a=Error();m.l(r,function(t){if(m.o(l,e)&&(0!==(n=l[e])&&(l[e]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),r=t&&t.target&&t.target.src;a.message="Loading chunk "+e+" failed.\n("+o+": "+r+")",a.name="ChunkLoadError",a.type=o,a.request=r,n[1](a)}},"chunk-"+e,e)}},s=function(e,t){var n,o,r=t[0],a=t[1],c=t[2],u=0;if(r.some(function(e){return 0!==l[e]})){for(n in a)m.o(a,n)&&(m.m[n]=a[n]);c&&c(m)}for(e&&e(t);u<r.length;u++)o=r[u],m.o(l,o)&&l[o]&&l[o][0](),l[o]=0},(p=self.webpackChunk_nocobase_plugin_workflow_date_calculation=self.webpackChunk_nocobase_plugin_workflow_date_calculation||[]).forEach(s.bind(null,0)),p.push=s.bind(null,p.push.bind(p));var x={},j=window.__nocobase_public_path__||"";if(!j&&window.location&&window.location.pathname){var k=window.location.pathname||"/",T=k.indexOf("/v2/");j=T>=0?k.slice(0,T+1):"/"}return j&&(j=j.replace(/\/v2\/?$/,"/")),j||(j="/"),"/"!==j.charAt(j.length-1)&&(j+="/"),m.p=j+"static/plugins/@nocobase/plugin-workflow-date-calculation/dist/client/",!function(){m.r(x),m.d(x,{PluginWorkflowDateCalculationClient:function(){return H},default:function(){return Q}});var e=m(3342),t=m(9155),n=m.n(t),o=m(5953),r=m(2059),a=m(7375),c=m(5230),u=m(418),i=m(1990),l=m(6773),s="workflow-date-calculation";function p(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,(t=n,(0,o.useTranslation)(s,t)).t)(e)}function f(t){var n,o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.i18n.t(t,(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){var o;o=n[t],t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o})}return e}({},r),o=o={ns:s},Object.getOwnPropertyDescriptors?Object.defineProperties(n,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(n,e,Object.getOwnPropertyDescriptor(o,e))}),n))}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=[{label:"{{t('Year', { ns: \"".concat(s,'" })}}'),value:"year"},{label:"{{t('Quarter', { ns: \"".concat(s,'" })}}'),value:"quarter"},{label:"{{t('Month', { ns: \"".concat(s,'" })}}'),value:"month"},{label:"{{t('Week', { ns: \"".concat(s,'" })}}'),value:"week"},{label:"{{t('Day', { ns: \"".concat(s,'" })}}'),value:"day"},{label:"{{t('Hour', { ns: \"".concat(s,'" })}}'),value:"hour"},{label:"{{t('Minute', { ns: \"".concat(s,'" })}}'),value:"minute"},{label:"{{t('Second', { ns: \"".concat(s,'" })}}'),value:"second"},{label:"{{t('Millisecond', { ns: \"".concat(s,'" })}}'),value:"millisecond"}],b=[{label:"{{t('Date', { ns: \"".concat(s,'" })}}'),value:"date",color:"blue"},{label:"{{t('Number', { ns: \"".concat(s,'" })}}'),value:"number",color:"geekblue"},{label:"{{t('Boolean', { ns: \"".concat(s,'" })}}'),value:"boolean",color:"cyan"},{label:"{{t('String', { ns: \"".concat(s,'" })}}'),value:"string",color:"orange"}].reduce(function(e,t){var n,o;return n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){d(e,t,n[t])})}return e}({},e),o=null!=(o=d({},t.value,t))?o:{},Object.getOwnPropertyDescriptors?Object.defineProperties(n,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(n,e,Object.getOwnPropertyDescriptor(o,e))}),n},{});function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){var o;o=n[t],t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o})}return e}function h(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 t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function O(){var e=w(["\n margin-inline-end: 0;\n "]);return O=function(){return e},e}function j(){var e=w(["\n display: inline-flex;\n align-items: center;\n "]);return j=function(){return e},e}function k(e){return{value:e,label:e}}var T=[{key:"toDate",label:'{{t("To another date", { ns: "'.concat(s,'" })}}')},{key:"getter",label:'{{t("Get value", { ns: "'.concat(s,'" })}}')},{key:"converter",label:'{{t("Value conversion", { ns: "'.concat(s,'" })}}')},{key:"toString",label:'{{t("Format", { ns: "'.concat(s,'" })}}')}],P={groupKey:"toDate",inputType:"date",outputType:"date",fieldset:{unit:{type:"string","x-component":"Select","x-component-props":{placeholder:"{{t('Unit', { ns: \"".concat(s,'" })}}'),className:"auto-width"},enum:y.filter(function(e){return"millisecond"!==e.value}),default:"day"}},defaultParams:function(){return{unit:"day"}}},S={add:{key:"add",title:'{{t("Add a range", { ns: "'.concat(s,'" })}}'),groupKey:"toDate",inputType:"date",outputType:"date",fieldset:{compact:{type:"void","x-component":"Space.Compact",properties:{number:{"x-component-props":{changeOnSelect:!0,useTypedConstant:[["number",{precision:0}]]},"x-component":"WorkflowVariableInput",default:1},unit:{type:"string","x-component":"Select","x-component-props":{className:"auto-width"},enum:y,default:"day"}}}},defaultParams:function(){return{number:1,unit:"day"}}},subtract:{key:"subtract",title:'{{t("Subtract a range", { ns: "'.concat(s,'" })}}'),groupKey:"toDate",inputType:"date",outputType:"date",fieldset:{compact:{type:"void","x-component":"Space.Compact",properties:{number:{"x-component-props":{changeOnSelect:!0,useTypedConstant:[["number",{precision:0}]]},"x-component":"WorkflowVariableInput",default:1},unit:{type:"string","x-component":"Select","x-component-props":{className:"auto-width"},enum:y}}}},defaultParams:function(){return{number:1,unit:"day"}}},diff:{key:"diff",title:'{{t("Get difference with another date value", { ns: "'.concat(s,'" })}}'),groupKey:"getter",inputType:"date",outputType:"number",fieldset:{date:{type:"string","x-component":"WorkflowVariableInput","x-component-props":{useTypedConstant:["date"],variableOptions:{types:["date"]}}},unit:{type:"string","x-component":"Select","x-component-props":{placeholder:"{{t('Unit', { ns: \"".concat(s,'" })}}'),className:"auto-width"},enum:y},isAbs:{type:"boolean","x-component":"Checkbox","x-component-props":{className:(0,e.css)(j())},"x-content":"{{t('Absolute value', { ns: \"".concat(s,'" })}}')},round:{type:"select","x-component":"Select","x-component-props":{allowClear:!1,placeholder:"小数",className:"auto-width"},enum:[{value:!1,label:"{{t('Keep decimals', { ns: \"".concat(s,'" })}}')},{value:0,label:"{{t('Round', { ns: \"".concat(s,'" })}}')},{value:1,label:"{{t('Round up', { ns: \"".concat(s,'" })}}')},{value:-1,label:"{{t('Round down', { ns: \"".concat(s,'" })}}')}]}},defaultParams:function(){return{date:new Date,unit:"day",isAbs:!1,round:!1}}},get:{key:"get",title:'{{t("Get value on specific unit of input date", { ns: "'.concat(s,'" })}}'),groupKey:"getter",inputType:"date",outputType:"number",fieldset:{unit:{type:"string","x-component":"Select","x-component-props":{placeholder:"{{t('Unit', { ns: \"".concat(s,'" })}}'),className:"auto-width"},enum:y,default:"day"}},defaultParams:function(){return{unit:"day"}}},toTimestamp:{key:"toTimestamp",title:'{{t("From date to timestamp", { ns: "'.concat(s,'" })}}'),groupKey:"converter",inputType:"date",outputType:"number",fieldset:{unitBeforeText:{type:"void","x-component":"div","x-content":'{{t("To", { ns: "'.concat(s,'" })}}')},unit:{type:"string","x-component":"Select","x-component-props":{placeholder:"{{t('Unit', { ns: \"".concat(s,'" })}}'),className:"auto-width"},enum:y.filter(function(e){return"millisecond"===e.value||"second"===e.value}),default:"second"}}},tsToDate:{key:"tsToDate",title:'{{t("From timestamp to date", { ns: "'.concat(s,'" })}}'),groupKey:"converter",inputType:"number",outputType:"date",fieldset:{unitBeforeText:{type:"void","x-component":"div","x-content":'{{t("From", { ns: "'.concat(s,'" })}}')},unit:{type:"string","x-component":"Select","x-component-props":{placeholder:"{{t('Unit', { ns: \"".concat(s,'" })}}'),className:"auto-width"},enum:y.filter(function(e){return"millisecond"===e.value||"second"===e.value}),default:"second"}}},startOfTime:h(g({},P),{key:"startOfTime",title:'{{t("Set to time of unit start", { ns: "'.concat(s,'" })}}')}),endOfTime:h(g({},P),{key:"endOfTime",title:'{{t("Set to time of unit end", { ns: "'.concat(s,'" })}}')}),isLeapYear:{key:"isLeapYear",title:'{{t("Is leap year", { ns: "'.concat(s,'" })}}'),groupKey:"getter",inputType:"date",outputType:"boolean",fieldset:{}},format:{key:"format",title:'{{t("Format to string", { ns: "'.concat(s,'" })}}'),groupKey:"toString",inputType:"date",outputType:"string",fieldset:{format:{type:"string","x-component":"Input","x-component-props":{placeholder:'{{t("Pattern", { ns: "'.concat(s,'" })}}')},default:"YYYY-MM-DD"}},defaultParams:function(){return{format:"YYYY-MM-DD"}}},transDuration:{key:"transDuration",title:'{{t("Convert unit", { ns: "'.concat(s,'" })}}'),groupKey:"converter",inputType:"number",outputType:"number",fieldset:{unitBeforeText:{type:"void","x-component":"div","x-content":'{{t("From", { ns: "'.concat(s,'" })}}')},unitBefore:{type:"string","x-component":"Select","x-component-props":{placeholder:"{{t('Unit', { ns: \"".concat(s,'" })}}'),className:"auto-width"},enum:y.filter(function(e){return"quarter"!==e.value}),default:"day"},unitAfterText:{type:"void","x-component":"div","x-content":'{{t("To", { ns: "'.concat(s,'" })}}')},unitAfter:{type:"string","x-component":"Select","x-component-props":{placeholder:"{{t('Unit', { ns: \"".concat(s,'" })}}'),className:"auto-width"},enum:y.filter(function(e){return"quarter"!==e.value}),default:"day"},round:{type:"select","x-component":"Select","x-component-props":{allowClear:!1,className:"auto-width"},enum:[{value:!1,label:"{{t('Keep decimals', { ns: \"".concat(s,'" })}}')},{value:0,label:"{{t('Round', { ns: \"".concat(s,'" })}}')},{value:1,label:"{{t('Round up', { ns: \"".concat(s,'" })}}')},{value:-1,label:"{{t('Round down', { ns: \"".concat(s,'" })}}')}]}},defaultParams:function(){return{unitBefore:"day",unitAfter:"day",round:!1}}},changeTimezone:{key:"changeTimezone",title:'{{t("Change timezone", { ns: "'.concat(s,'" })}}'),groupKey:"toDate",inputType:"date",outputType:"date",fieldset:{timezone:{type:"string","x-component":(0,c.connect)(function(e){var o,a,c,u,i=(c=(a=function(e){if(Array.isArray(e))return e}(o=(0,t.useState)([]))||function(e){var t,n,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var r=[],a=!0,c=!1;try{for(o=o.call(e);!(a=(t=o.next()).done)&&(r.push(t.value),2!==r.length);a=!0);}catch(e){c=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(c)throw n}}return r}}(o)||function(e){if(e){if("string"==typeof e)return v(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 v(e,2)}}(o)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],u=a[1],(0,t.useEffect)(function(){var e,t=function(){n=!1},n=!0;return(null==(e=Intl)?void 0:e.supportedValuesOf)?u(Intl.supportedValuesOf("timeZone").map(k)):Promise.all([m.e("297"),m.e("200")]).then(m.t.bind(m,4743,23)).then(function(e){n&&u(e.tz.names().map(k))}).catch(console.error),t},[]),c);return n().createElement(r.Select,h(g({},e),{options:i}))}),"x-component-props":{placeholder:'{{t("Target timezone", { ns: "'.concat(s,'" })}}'),showSearch:!0}}}}};function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function C(e,t){return(C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function I(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function D(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(D=function(){return!!e})()}function A(){var e=I(["\n margin: 1em;\n "]);return A=function(){return e},e}function N(){var e=I(["\n font-size: 10px;\n line-height: 14px;\n "]);return N=function(){return e},e}function q(){var e=I(["\n display: inline-block;\n background: #87d068;\n margin-left: 1rem;\n padding: 0.25em 0.5rem;\n border-radius: 0 0 0.25em 0.25em;\n color: #fff;\n font-size: 12px;\n "]);return q=function(){return e},e}function R(){var e=I(["\n display: flex;\n gap: 0.5rem;\n padding: 0.5rem 1rem;\n "]);return R=function(){return e},e}function M(){var e=I(["\n flex-direction: column;\n width: 100%;\n overflow: hidden;\n background: #f5f5f5;\n border: none;\n border-radius: 0.5em;\n padding: 0;\n margin-bottom: 0;\n "]);return M=function(){return e},e}function B(){var e=I(["\n flex-grow: 1;\n position: relative;\n line-height: 1;\n "]);return B=function(){return e},e}var F={Step:function(t){var o=t.children,c=(0,e.useCompile)(),i=u.ArrayItems.useRecord();if(!(null==i?void 0:i.function))return null;var l=b[S[i.function].outputType],s=l.color,p=l.label;return n().createElement(n().Fragment,null,o,n().createElement(r.Flex,{align:"center"},n().createElement(a.ArrowDownOutlined,{className:(0,e.css)(A())}),n().createElement(r.Tag,{color:s,className:(0,e.css)(N())},c(p))))},Title:function(t){var o=t.value,r=(0,e.useCompile)()(S[o].title);return n().createElement("span",{className:(0,e.css)(q())},r)},Arguments:function(){var t=u.ArrayItems.useIndex(),o=u.ArrayItems.useRecord(),r=S[o.function].fieldset;return n().createElement(e.SchemaComponent,{schema:{type:"void",name:"".concat(t,"_").concat(o.function),"x-component":"fieldset","x-component-props":{className:(0,e.css)(R())},properties:r}})},Addition:function(){var o,i,s=(0,c.useForm)(),f=s.values,d=s.disabled,m=u.ArrayItems.useArray(),y=function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"date",a=(0,e.useCompile)();return(0,t.useMemo)(function(){var t=(0,l.filter)(S,function(e){return e.inputType===o}),c=(0,l.groupBy)(t,"groupKey");return Object.keys(c).map(function(t){var o=T.find(function(e){return e.key===t});return{key:t,label:a(o.label),type:"group",children:c[t].map(function(t){return{key:t.key,title:a(t.title),label:n().createElement(r.Flex,{justify:"space-between",align:"center",gap:"large"},a(t.title),n().createElement(r.Tag,{color:b[t.outputType].color,className:(0,e.css)(O())},a(b[t.outputType].label)))}})}})},[a,o])}((null==(o=f.steps)?void 0:o.length)?null==(i=S[f.steps[f.steps.length-1].function])?void 0:i.outputType:f.inputType),v=p("Add step"),g=p("Result");return y.length?n().createElement(r.Dropdown,{disabled:d,menu:{items:y,onClick:function(e){var t,n,o,r,a=e.key,c=null!=(t=null==(n=(o=S[a]).defaultParams)?void 0:n.call(o))?t:{};null==(r=m.field)||r.push({function:a,arguments:c})}}},n().createElement(r.Button,{icon:n().createElement(a.PlusOutlined,null)},v)):n().createElement(r.Button,{disabled:!0},g)},Removable:function(e){var t=e.children,n=(0,c.useForm)().values;return u.ArrayItems.useIndex()===n.steps.length-1?t:null}},z=function(t){var c;if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");function l(){var t,c,p;if(!(this instanceof l))throw TypeError("Cannot call a class as a function");return c=l,p=arguments,c=E(c),_(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}(this,D()?Reflect.construct(c,p||[],E(this).constructor):c.apply(this,p)),"title",'{{t("Date calculation", { ns: "'.concat(s,'" })}}')),_(t,"type","dateCalculation"),_(t,"group","calculation"),_(t,"description",'{{t("Used for doing a series of date related calculation on an input value.", { ns: "'.concat(s,'" })}}')),_(t,"icon",n().createElement(a.CalendarOutlined,null)),_(t,"fieldset",{input:{type:"string",title:'{{t("Input", { ns: "'.concat(s,'" })}}'),"x-decorator":"FormItem","x-component":"WorkflowVariableInput","x-component-props":{changeOnSelect:!0,useTypedConstant:["date","number"],parseOptions:{stringToDate:!0}},required:!0,default:"{{$system.now}}"},inputType:{type:"string",title:'{{t("Input type as", { ns: "'.concat(s,'" })}}'),"x-decorator":"FormItem","x-component":"RadioWithTooltip","x-component-props":{options:[{label:n().createElement(r.Tag,{color:b.date.color},n().createElement(o.Trans,{ns:s},"Date type")),value:"date",tooltip:'{{t("Input value will be converted from its original type to date type to do futher calculation by Day.js constructor.", { ns: "'.concat(s,'" })}}')},{label:n().createElement(r.Tag,{color:b.number.color},n().createElement(o.Trans,{ns:s},"Number type")),value:"number",tooltip:'{{t("Only calculation functions with numeric input value are supported.", { ns: "'.concat(s,'" })}}')}]},default:"date","x-reactions":[{target:"steps",effects:["onFieldValueChange"],fulfill:{state:{value:[]}}}]},steps:{type:"array",title:'{{t("Calculation steps", { ns: "'.concat(s,'" })}}'),"x-decorator":"FormItem","x-component":"ArrayItems",items:{type:"object","x-decorator":"Calculation.Step","x-component":"ArrayItems.Item","x-component-props":{className:(0,e.css)(M())},properties:{meta:{type:"void","x-component":"header","x-component-props":{className:(0,e.css)(B())},properties:{function:{type:"string","x-component":"Calculation.Title"},remove:{type:"void","x-decorator":"Calculation.Removable","x-component":"ArrayItems.Remove","x-component-props":{size:"small",style:{position:"absolute",right:"0.25rem",top:"0.25rem",padding:0,display:"flex",alignItems:"center",justifyContent:"center"}}}}},arguments:{type:"object","x-component":"Calculation.Arguments"}}},properties:{add:{type:"void","x-component":"Calculation.Addition"}}}}),_(t,"components",{WorkflowVariableInput:i.WorkflowVariableInput,RadioWithTooltip:i.RadioWithTooltip,ArrayItems:u.ArrayItems,Calculation:F,Space:r.Space}),_(t,"testable",!0),t}return l.prototype=Object.create(t&&t.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),t&&C(l,t),c=[{key:"useVariables",value:function(e,t){var n=e.key,o=e.title,r=t.types;return(void 0===t.fieldNames&&i.defaultFieldNames,r&&!r.some(function(e){return e in i.BaseTypeSets||Object.values(i.BaseTypeSets).some(function(t){return t.has(e)})}))?null:{value:n,label:o}}},{key:"useInitializers",value:function(e){var t,n;return{name:null!=(t=e.title)?t:"#".concat(e.id),type:"item",title:null!=(n=e.title)?n:"#".concat(e.id),Component:i.ValueBlock.Initializer,node:e,resultTitle:f("Date calculation result")}}},{key:"getCreateModelMenuItem",value:function(e){var t,n,o=e.node;return{key:null!=(t=o.title)?t:"#".concat(o.id),label:null!=(n=o.title)?n:"#".concat(o.id),useModel:"NodeValueModel",createModelOptions:{use:"NodeValueModel",stepParams:{valueSettings:{init:{dataSource:"{{$jobsMapByNodeKey.".concat(o.key,"}}"),defaultValue:f("Date calculation result")}},cardSettings:{titleDescription:{title:'{{t("Date calculation", { ns: "'.concat(s,'" })}}')}}}}}}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(l.prototype,c),l}(i.Instruction);function K(e,t,n,o,r,a,c){try{var u=e[a](c),i=u.value}catch(e){n(e);return}u.done?t(i):Promise.resolve(i).then(o,r)}function V(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function c(e){K(a,o,r,c,u,"next",e)}function u(e){K(a,o,r,c,u,"throw",e)}c(void 0)})}}function W(e,t,n){return(W=L()?Reflect.construct:function(e,t,n){var o=[null];o.push.apply(o,t);var r=new(Function.bind.apply(e,o));return n&&U(r,n.prototype),r}).apply(null,arguments)}function Y(e){return(Y=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 $(e){var t="function"==typeof Map?new Map:void 0;return($=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 W(e,arguments,Y(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),U(n,e)})(e)}function L(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L=function(){return!!e})()}function G(e,t){var n,o,r,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},c=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(c,"next",{value:i(0)}),u(c,"throw",{value:i(1)}),u(c,"return",{value:i(2)}),"function"==typeof Symbol&&u(c,Symbol.iterator,{value:function(){return this}}),c;function i(u){return function(i){var l=[u,i];if(n)throw TypeError("Generator is already executing.");for(;c&&(c=0,l[0]&&(a=0)),a;)try{if(n=1,o&&(r=2&l[0]?o.return:l[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,l[1])).done)return r;switch(o=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,o=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]<r[3])){a.label=l[1];break}if(6===l[0]&&a.label<r[1]){a.label=r[1],r=l;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(l);break}r[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],o=0}finally{n=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}var H=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;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");return e=n,t=arguments,e=Y(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,L()?Reflect.construct(e,t||[],Y(this).constructor):e.apply(this,t))}return n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&U(n,e),t=[{key:"afterAdd",value:function(){return V(function(){return G(this,function(e){return[2]})})()}},{key:"beforeLoad",value:function(){return V(function(){return G(this,function(e){return[2]})})()}},{key:"load",value:function(){return V(function(){return G(this,function(e){return console.log(this.app),this.app.pm.get("workflow").registerInstruction("dateCalculation",z),[2]})}).call(this)}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(n.prototype,t),n}($(e.Plugin)),Q=H}(),x}()});
10
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react-i18next"),require("@formily/antd-v5"),require("react"),require("antd"),require("@nocobase/client"),require("@formily/react"),require("@ant-design/icons"),require("@nocobase/plugin-workflow/client"),require("lodash")):"function"==typeof define&&define.amd?define("@nocobase/plugin-workflow-date-calculation",["react-i18next","@formily/antd-v5","react","antd","@nocobase/client","@formily/react","@ant-design/icons","@nocobase/plugin-workflow/client","lodash"],t):"object"==typeof exports?exports["@nocobase/plugin-workflow-date-calculation"]=t(require("react-i18next"),require("@formily/antd-v5"),require("react"),require("antd"),require("@nocobase/client"),require("@formily/react"),require("@ant-design/icons"),require("@nocobase/plugin-workflow/client"),require("lodash")):e["@nocobase/plugin-workflow-date-calculation"]=t(e["react-i18next"],e["@formily/antd-v5"],e.react,e.antd,e["@nocobase/client"],e["@formily/react"],e["@ant-design/icons"],e["@nocobase/plugin-workflow/client"],e.lodash)}(self,function(e,t,n,o,r,a,c,u,i){return function(){"use strict";var l,s,p,f={7375:function(e){e.exports=c},418:function(e){e.exports=t},5230:function(e){e.exports=a},3342:function(e){e.exports=r},1990:function(e){e.exports=u},2059:function(e){e.exports=o},6773:function(e){e.exports=i},9155:function(e){e.exports=n},5953:function(t){t.exports=e}},d={};function m(e){var t=d[e];if(void 0!==t)return t.exports;var n=d[e]={id:e,loaded:!1,exports:{}};return f[e].call(n.exports,n,n.exports,m),n.loaded=!0,n.exports}m.m=f,m.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return m.d(t,{a:t}),t},b=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},m.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);m.r(n);var o={};y=y||[null,b({}),b([]),b(b)];for(var r=2&t&&e;("object"==typeof r||"function"==typeof r)&&!~y.indexOf(r);r=b(r))Object.getOwnPropertyNames(r).forEach(function(t){o[t]=function(){return e[t]}});return o.default=function(){return e},m.d(n,o),n},m.d=function(e,t){for(var n in t)m.o(t,n)&&!m.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},m.f={},m.e=function(e){return Promise.all(Object.keys(m.f).reduce(function(t,n){return m.f[n](e,t),t},[]))},m.u=function(e){return""+({200:"c9331449ad965b93",297:"e83af37f528cbee3"})[e]+".js"},m.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),m.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},v={},m.l=function(e,t,n,o){if(v[e])return void v[e].push(t);if(void 0!==n)for(var r,a,c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var i=c[u];if(i.getAttribute("src")==e||i.getAttribute("data-rspack")=="@nocobase/plugin-workflow-date-calculation:"+n){r=i;break}}r||(a=!0,(r=document.createElement("script")).timeout=120,m.nc&&r.setAttribute("nonce",m.nc),r.setAttribute("data-rspack","@nocobase/plugin-workflow-date-calculation:"+n),r.src=e),v[e]=[t];var l=function(t,n){r.onerror=r.onload=null,clearTimeout(s);var o=v[e];if(delete v[e],r.parentNode&&r.parentNode.removeChild(r),o&&o.forEach(function(e){return e(n)}),t)return t(n)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=l.bind(null,r.onerror),r.onload=l.bind(null,r.onload),a&&document.head.appendChild(r)},m.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},m.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},m.g.importScripts&&(g=m.g.location+"");var y,b,v,g,h=m.g.document;if(!g&&h&&(h.currentScript&&"SCRIPT"===h.currentScript.tagName.toUpperCase()&&(g=h.currentScript.src),!g)){var w=h.getElementsByTagName("script");if(w.length)for(var O=w.length-1;O>-1&&(!g||!/^http(s?):/.test(g));)g=w[O--].src}if(!g)throw Error("Automatic publicPath is not supported in this browser");m.p=g.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),l={889:0},m.f.j=function(e,t){var n=m.o(l,e)?l[e]:void 0;if(0!==n)if(n)t.push(n[2]);else{var o=new Promise(function(t,o){n=l[e]=[t,o]});t.push(n[2]=o);var r=m.p+m.u(e),a=Error();m.l(r,function(t){if(m.o(l,e)&&(0!==(n=l[e])&&(l[e]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),r=t&&t.target&&t.target.src;a.message="Loading chunk "+e+" failed.\n("+o+": "+r+")",a.name="ChunkLoadError",a.type=o,a.request=r,n[1](a)}},"chunk-"+e,e)}},s=function(e,t){var n,o,r=t[0],a=t[1],c=t[2],u=0;if(r.some(function(e){return 0!==l[e]})){for(n in a)m.o(a,n)&&(m.m[n]=a[n]);c&&c(m)}for(e&&e(t);u<r.length;u++)o=r[u],m.o(l,o)&&l[o]&&l[o][0](),l[o]=0},(p=self.webpackChunk_nocobase_plugin_workflow_date_calculation=self.webpackChunk_nocobase_plugin_workflow_date_calculation||[]).forEach(s.bind(null,0)),p.push=s.bind(null,p.push.bind(p));var x={};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-workflow-date-calculation/dist/client/")}if(!e){if(!(e=window.__nocobase_public_path__||"")&&window.location&&window.location.pathname){var o=window.location.pathname||"/",r=o.indexOf("/v2/");e=r>=0?o.slice(0,r+1):"/"}e&&(e=e.replace(/\/v2\/?$/,"/")),e||(e="/"),"/"!==e.charAt(e.length-1)&&(e+="/"),e+="static/plugins/@nocobase/plugin-workflow-date-calculation/dist/client/"}m.p=e}(),!function(){m.r(x),m.d(x,{PluginWorkflowDateCalculationClient:function(){return H},default:function(){return Q}});var e=m(3342),t=m(9155),n=m.n(t),o=m(5953),r=m(2059),a=m(7375),c=m(5230),u=m(418),i=m(1990),l=m(6773),s="workflow-date-calculation";function p(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,(t=n,(0,o.useTranslation)(s,t)).t)(e)}function f(t){var n,o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.i18n.t(t,(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){var o;o=n[t],t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o})}return e}({},r),o=o={ns:s},Object.getOwnPropertyDescriptors?Object.defineProperties(n,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(n,e,Object.getOwnPropertyDescriptor(o,e))}),n))}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=[{label:"{{t('Year', { ns: \"".concat(s,'" })}}'),value:"year"},{label:"{{t('Quarter', { ns: \"".concat(s,'" })}}'),value:"quarter"},{label:"{{t('Month', { ns: \"".concat(s,'" })}}'),value:"month"},{label:"{{t('Week', { ns: \"".concat(s,'" })}}'),value:"week"},{label:"{{t('Day', { ns: \"".concat(s,'" })}}'),value:"day"},{label:"{{t('Hour', { ns: \"".concat(s,'" })}}'),value:"hour"},{label:"{{t('Minute', { ns: \"".concat(s,'" })}}'),value:"minute"},{label:"{{t('Second', { ns: \"".concat(s,'" })}}'),value:"second"},{label:"{{t('Millisecond', { ns: \"".concat(s,'" })}}'),value:"millisecond"}],b=[{label:"{{t('Date', { ns: \"".concat(s,'" })}}'),value:"date",color:"blue"},{label:"{{t('Number', { ns: \"".concat(s,'" })}}'),value:"number",color:"geekblue"},{label:"{{t('Boolean', { ns: \"".concat(s,'" })}}'),value:"boolean",color:"cyan"},{label:"{{t('String', { ns: \"".concat(s,'" })}}'),value:"string",color:"orange"}].reduce(function(e,t){var n,o;return n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){d(e,t,n[t])})}return e}({},e),o=null!=(o=d({},t.value,t))?o:{},Object.getOwnPropertyDescriptors?Object.defineProperties(n,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(n,e,Object.getOwnPropertyDescriptor(o,e))}),n},{});function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){var o;o=n[t],t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o})}return e}function h(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 t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function O(){var e=w(["\n margin-inline-end: 0;\n "]);return O=function(){return e},e}function j(){var e=w(["\n display: inline-flex;\n align-items: center;\n "]);return j=function(){return e},e}function k(e){return{value:e,label:e}}var T=[{key:"toDate",label:'{{t("To another date", { ns: "'.concat(s,'" })}}')},{key:"getter",label:'{{t("Get value", { ns: "'.concat(s,'" })}}')},{key:"converter",label:'{{t("Value conversion", { ns: "'.concat(s,'" })}}')},{key:"toString",label:'{{t("Format", { ns: "'.concat(s,'" })}}')}],P={groupKey:"toDate",inputType:"date",outputType:"date",fieldset:{unit:{type:"string","x-component":"Select","x-component-props":{placeholder:"{{t('Unit', { ns: \"".concat(s,'" })}}'),className:"auto-width"},enum:y.filter(function(e){return"millisecond"!==e.value}),default:"day"}},defaultParams:function(){return{unit:"day"}}},S={add:{key:"add",title:'{{t("Add a range", { ns: "'.concat(s,'" })}}'),groupKey:"toDate",inputType:"date",outputType:"date",fieldset:{compact:{type:"void","x-component":"Space.Compact",properties:{number:{"x-component-props":{changeOnSelect:!0,useTypedConstant:[["number",{precision:0}]]},"x-component":"WorkflowVariableInput",default:1},unit:{type:"string","x-component":"Select","x-component-props":{className:"auto-width"},enum:y,default:"day"}}}},defaultParams:function(){return{number:1,unit:"day"}}},subtract:{key:"subtract",title:'{{t("Subtract a range", { ns: "'.concat(s,'" })}}'),groupKey:"toDate",inputType:"date",outputType:"date",fieldset:{compact:{type:"void","x-component":"Space.Compact",properties:{number:{"x-component-props":{changeOnSelect:!0,useTypedConstant:[["number",{precision:0}]]},"x-component":"WorkflowVariableInput",default:1},unit:{type:"string","x-component":"Select","x-component-props":{className:"auto-width"},enum:y}}}},defaultParams:function(){return{number:1,unit:"day"}}},diff:{key:"diff",title:'{{t("Get difference with another date value", { ns: "'.concat(s,'" })}}'),groupKey:"getter",inputType:"date",outputType:"number",fieldset:{date:{type:"string","x-component":"WorkflowVariableInput","x-component-props":{useTypedConstant:["date"],variableOptions:{types:["date"]}}},unit:{type:"string","x-component":"Select","x-component-props":{placeholder:"{{t('Unit', { ns: \"".concat(s,'" })}}'),className:"auto-width"},enum:y},isAbs:{type:"boolean","x-component":"Checkbox","x-component-props":{className:(0,e.css)(j())},"x-content":"{{t('Absolute value', { ns: \"".concat(s,'" })}}')},round:{type:"select","x-component":"Select","x-component-props":{allowClear:!1,placeholder:"小数",className:"auto-width"},enum:[{value:!1,label:"{{t('Keep decimals', { ns: \"".concat(s,'" })}}')},{value:0,label:"{{t('Round', { ns: \"".concat(s,'" })}}')},{value:1,label:"{{t('Round up', { ns: \"".concat(s,'" })}}')},{value:-1,label:"{{t('Round down', { ns: \"".concat(s,'" })}}')}]}},defaultParams:function(){return{date:new Date,unit:"day",isAbs:!1,round:!1}}},get:{key:"get",title:'{{t("Get value on specific unit of input date", { ns: "'.concat(s,'" })}}'),groupKey:"getter",inputType:"date",outputType:"number",fieldset:{unit:{type:"string","x-component":"Select","x-component-props":{placeholder:"{{t('Unit', { ns: \"".concat(s,'" })}}'),className:"auto-width"},enum:y,default:"day"}},defaultParams:function(){return{unit:"day"}}},toTimestamp:{key:"toTimestamp",title:'{{t("From date to timestamp", { ns: "'.concat(s,'" })}}'),groupKey:"converter",inputType:"date",outputType:"number",fieldset:{unitBeforeText:{type:"void","x-component":"div","x-content":'{{t("To", { ns: "'.concat(s,'" })}}')},unit:{type:"string","x-component":"Select","x-component-props":{placeholder:"{{t('Unit', { ns: \"".concat(s,'" })}}'),className:"auto-width"},enum:y.filter(function(e){return"millisecond"===e.value||"second"===e.value}),default:"second"}}},tsToDate:{key:"tsToDate",title:'{{t("From timestamp to date", { ns: "'.concat(s,'" })}}'),groupKey:"converter",inputType:"number",outputType:"date",fieldset:{unitBeforeText:{type:"void","x-component":"div","x-content":'{{t("From", { ns: "'.concat(s,'" })}}')},unit:{type:"string","x-component":"Select","x-component-props":{placeholder:"{{t('Unit', { ns: \"".concat(s,'" })}}'),className:"auto-width"},enum:y.filter(function(e){return"millisecond"===e.value||"second"===e.value}),default:"second"}}},startOfTime:h(g({},P),{key:"startOfTime",title:'{{t("Set to time of unit start", { ns: "'.concat(s,'" })}}')}),endOfTime:h(g({},P),{key:"endOfTime",title:'{{t("Set to time of unit end", { ns: "'.concat(s,'" })}}')}),isLeapYear:{key:"isLeapYear",title:'{{t("Is leap year", { ns: "'.concat(s,'" })}}'),groupKey:"getter",inputType:"date",outputType:"boolean",fieldset:{}},format:{key:"format",title:'{{t("Format to string", { ns: "'.concat(s,'" })}}'),groupKey:"toString",inputType:"date",outputType:"string",fieldset:{format:{type:"string","x-component":"Input","x-component-props":{placeholder:'{{t("Pattern", { ns: "'.concat(s,'" })}}')},default:"YYYY-MM-DD"}},defaultParams:function(){return{format:"YYYY-MM-DD"}}},transDuration:{key:"transDuration",title:'{{t("Convert unit", { ns: "'.concat(s,'" })}}'),groupKey:"converter",inputType:"number",outputType:"number",fieldset:{unitBeforeText:{type:"void","x-component":"div","x-content":'{{t("From", { ns: "'.concat(s,'" })}}')},unitBefore:{type:"string","x-component":"Select","x-component-props":{placeholder:"{{t('Unit', { ns: \"".concat(s,'" })}}'),className:"auto-width"},enum:y.filter(function(e){return"quarter"!==e.value}),default:"day"},unitAfterText:{type:"void","x-component":"div","x-content":'{{t("To", { ns: "'.concat(s,'" })}}')},unitAfter:{type:"string","x-component":"Select","x-component-props":{placeholder:"{{t('Unit', { ns: \"".concat(s,'" })}}'),className:"auto-width"},enum:y.filter(function(e){return"quarter"!==e.value}),default:"day"},round:{type:"select","x-component":"Select","x-component-props":{allowClear:!1,className:"auto-width"},enum:[{value:!1,label:"{{t('Keep decimals', { ns: \"".concat(s,'" })}}')},{value:0,label:"{{t('Round', { ns: \"".concat(s,'" })}}')},{value:1,label:"{{t('Round up', { ns: \"".concat(s,'" })}}')},{value:-1,label:"{{t('Round down', { ns: \"".concat(s,'" })}}')}]}},defaultParams:function(){return{unitBefore:"day",unitAfter:"day",round:!1}}},changeTimezone:{key:"changeTimezone",title:'{{t("Change timezone", { ns: "'.concat(s,'" })}}'),groupKey:"toDate",inputType:"date",outputType:"date",fieldset:{timezone:{type:"string","x-component":(0,c.connect)(function(e){var o,a,c,u,i=(c=(a=function(e){if(Array.isArray(e))return e}(o=(0,t.useState)([]))||function(e){var t,n,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var r=[],a=!0,c=!1;try{for(o=o.call(e);!(a=(t=o.next()).done)&&(r.push(t.value),2!==r.length);a=!0);}catch(e){c=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(c)throw n}}return r}}(o)||function(e){if(e){if("string"==typeof e)return v(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 v(e,2)}}(o)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],u=a[1],(0,t.useEffect)(function(){var e,t=function(){n=!1},n=!0;return(null==(e=Intl)?void 0:e.supportedValuesOf)?u(Intl.supportedValuesOf("timeZone").map(k)):Promise.all([m.e("297"),m.e("200")]).then(m.t.bind(m,4743,23)).then(function(e){n&&u(e.tz.names().map(k))}).catch(console.error),t},[]),c);return n().createElement(r.Select,h(g({},e),{options:i}))}),"x-component-props":{placeholder:'{{t("Target timezone", { ns: "'.concat(s,'" })}}'),showSearch:!0}}}}};function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function C(e,t){return(C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function I(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function D(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(D=function(){return!!e})()}function A(){var e=I(["\n margin: 1em;\n "]);return A=function(){return e},e}function N(){var e=I(["\n font-size: 10px;\n line-height: 14px;\n "]);return N=function(){return e},e}function q(){var e=I(["\n display: inline-block;\n background: #87d068;\n margin-left: 1rem;\n padding: 0.25em 0.5rem;\n border-radius: 0 0 0.25em 0.25em;\n color: #fff;\n font-size: 12px;\n "]);return q=function(){return e},e}function R(){var e=I(["\n display: flex;\n gap: 0.5rem;\n padding: 0.5rem 1rem;\n "]);return R=function(){return e},e}function M(){var e=I(["\n flex-direction: column;\n width: 100%;\n overflow: hidden;\n background: #f5f5f5;\n border: none;\n border-radius: 0.5em;\n padding: 0;\n margin-bottom: 0;\n "]);return M=function(){return e},e}function B(){var e=I(["\n flex-grow: 1;\n position: relative;\n line-height: 1;\n "]);return B=function(){return e},e}var F={Step:function(t){var o=t.children,c=(0,e.useCompile)(),i=u.ArrayItems.useRecord();if(!(null==i?void 0:i.function))return null;var l=b[S[i.function].outputType],s=l.color,p=l.label;return n().createElement(n().Fragment,null,o,n().createElement(r.Flex,{align:"center"},n().createElement(a.ArrowDownOutlined,{className:(0,e.css)(A())}),n().createElement(r.Tag,{color:s,className:(0,e.css)(N())},c(p))))},Title:function(t){var o=t.value,r=(0,e.useCompile)()(S[o].title);return n().createElement("span",{className:(0,e.css)(q())},r)},Arguments:function(){var t=u.ArrayItems.useIndex(),o=u.ArrayItems.useRecord(),r=S[o.function].fieldset;return n().createElement(e.SchemaComponent,{schema:{type:"void",name:"".concat(t,"_").concat(o.function),"x-component":"fieldset","x-component-props":{className:(0,e.css)(R())},properties:r}})},Addition:function(){var o,i,s=(0,c.useForm)(),f=s.values,d=s.disabled,m=u.ArrayItems.useArray(),y=function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"date",a=(0,e.useCompile)();return(0,t.useMemo)(function(){var t=(0,l.filter)(S,function(e){return e.inputType===o}),c=(0,l.groupBy)(t,"groupKey");return Object.keys(c).map(function(t){var o=T.find(function(e){return e.key===t});return{key:t,label:a(o.label),type:"group",children:c[t].map(function(t){return{key:t.key,title:a(t.title),label:n().createElement(r.Flex,{justify:"space-between",align:"center",gap:"large"},a(t.title),n().createElement(r.Tag,{color:b[t.outputType].color,className:(0,e.css)(O())},a(b[t.outputType].label)))}})}})},[a,o])}((null==(o=f.steps)?void 0:o.length)?null==(i=S[f.steps[f.steps.length-1].function])?void 0:i.outputType:f.inputType),v=p("Add step"),g=p("Result");return y.length?n().createElement(r.Dropdown,{disabled:d,menu:{items:y,onClick:function(e){var t,n,o,r,a=e.key,c=null!=(t=null==(n=(o=S[a]).defaultParams)?void 0:n.call(o))?t:{};null==(r=m.field)||r.push({function:a,arguments:c})}}},n().createElement(r.Button,{icon:n().createElement(a.PlusOutlined,null)},v)):n().createElement(r.Button,{disabled:!0},g)},Removable:function(e){var t=e.children,n=(0,c.useForm)().values;return u.ArrayItems.useIndex()===n.steps.length-1?t:null}},z=function(t){var c;if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");function l(){var t,c,p;if(!(this instanceof l))throw TypeError("Cannot call a class as a function");return c=l,p=arguments,c=E(c),_(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}(this,D()?Reflect.construct(c,p||[],E(this).constructor):c.apply(this,p)),"title",'{{t("Date calculation", { ns: "'.concat(s,'" })}}')),_(t,"type","dateCalculation"),_(t,"group","calculation"),_(t,"description",'{{t("Used for doing a series of date related calculation on an input value.", { ns: "'.concat(s,'" })}}')),_(t,"icon",n().createElement(a.CalendarOutlined,null)),_(t,"fieldset",{input:{type:"string",title:'{{t("Input", { ns: "'.concat(s,'" })}}'),"x-decorator":"FormItem","x-component":"WorkflowVariableInput","x-component-props":{changeOnSelect:!0,useTypedConstant:["date","number"],parseOptions:{stringToDate:!0}},required:!0,default:"{{$system.now}}"},inputType:{type:"string",title:'{{t("Input type as", { ns: "'.concat(s,'" })}}'),"x-decorator":"FormItem","x-component":"RadioWithTooltip","x-component-props":{options:[{label:n().createElement(r.Tag,{color:b.date.color},n().createElement(o.Trans,{ns:s},"Date type")),value:"date",tooltip:'{{t("Input value will be converted from its original type to date type to do futher calculation by Day.js constructor.", { ns: "'.concat(s,'" })}}')},{label:n().createElement(r.Tag,{color:b.number.color},n().createElement(o.Trans,{ns:s},"Number type")),value:"number",tooltip:'{{t("Only calculation functions with numeric input value are supported.", { ns: "'.concat(s,'" })}}')}]},default:"date","x-reactions":[{target:"steps",effects:["onFieldValueChange"],fulfill:{state:{value:[]}}}]},steps:{type:"array",title:'{{t("Calculation steps", { ns: "'.concat(s,'" })}}'),"x-decorator":"FormItem","x-component":"ArrayItems",items:{type:"object","x-decorator":"Calculation.Step","x-component":"ArrayItems.Item","x-component-props":{className:(0,e.css)(M())},properties:{meta:{type:"void","x-component":"header","x-component-props":{className:(0,e.css)(B())},properties:{function:{type:"string","x-component":"Calculation.Title"},remove:{type:"void","x-decorator":"Calculation.Removable","x-component":"ArrayItems.Remove","x-component-props":{size:"small",style:{position:"absolute",right:"0.25rem",top:"0.25rem",padding:0,display:"flex",alignItems:"center",justifyContent:"center"}}}}},arguments:{type:"object","x-component":"Calculation.Arguments"}}},properties:{add:{type:"void","x-component":"Calculation.Addition"}}}}),_(t,"components",{WorkflowVariableInput:i.WorkflowVariableInput,RadioWithTooltip:i.RadioWithTooltip,ArrayItems:u.ArrayItems,Calculation:F,Space:r.Space}),_(t,"testable",!0),t}return l.prototype=Object.create(t&&t.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),t&&C(l,t),c=[{key:"useVariables",value:function(e,t){var n=e.key,o=e.title,r=t.types;return(void 0===t.fieldNames&&i.defaultFieldNames,r&&!r.some(function(e){return e in i.BaseTypeSets||Object.values(i.BaseTypeSets).some(function(t){return t.has(e)})}))?null:{value:n,label:o}}},{key:"useInitializers",value:function(e){var t,n;return{name:null!=(t=e.title)?t:"#".concat(e.id),type:"item",title:null!=(n=e.title)?n:"#".concat(e.id),Component:i.ValueBlock.Initializer,node:e,resultTitle:f("Date calculation result")}}},{key:"getCreateModelMenuItem",value:function(e){var t,n,o=e.node;return{key:null!=(t=o.title)?t:"#".concat(o.id),label:null!=(n=o.title)?n:"#".concat(o.id),useModel:"NodeValueModel",createModelOptions:{use:"NodeValueModel",stepParams:{valueSettings:{init:{dataSource:"{{$jobsMapByNodeKey.".concat(o.key,"}}"),defaultValue:f("Date calculation result")}},cardSettings:{titleDescription:{title:'{{t("Date calculation", { ns: "'.concat(s,'" })}}')}}}}}}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(l.prototype,c),l}(i.Instruction);function K(e,t,n,o,r,a,c){try{var u=e[a](c),i=u.value}catch(e){n(e);return}u.done?t(i):Promise.resolve(i).then(o,r)}function V(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function c(e){K(a,o,r,c,u,"next",e)}function u(e){K(a,o,r,c,u,"throw",e)}c(void 0)})}}function W(e,t,n){return(W=L()?Reflect.construct:function(e,t,n){var o=[null];o.push.apply(o,t);var r=new(Function.bind.apply(e,o));return n&&U(r,n.prototype),r}).apply(null,arguments)}function Y(e){return(Y=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 $(e){var t="function"==typeof Map?new Map:void 0;return($=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 W(e,arguments,Y(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),U(n,e)})(e)}function L(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L=function(){return!!e})()}function G(e,t){var n,o,r,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},c=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(c,"next",{value:i(0)}),u(c,"throw",{value:i(1)}),u(c,"return",{value:i(2)}),"function"==typeof Symbol&&u(c,Symbol.iterator,{value:function(){return this}}),c;function i(u){return function(i){var l=[u,i];if(n)throw TypeError("Generator is already executing.");for(;c&&(c=0,l[0]&&(a=0)),a;)try{if(n=1,o&&(r=2&l[0]?o.return:l[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,l[1])).done)return r;switch(o=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,o=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]<r[3])){a.label=l[1];break}if(6===l[0]&&a.label<r[1]){a.label=r[1],r=l;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(l);break}r[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],o=0}finally{n=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}var H=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;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");return e=n,t=arguments,e=Y(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,L()?Reflect.construct(e,t||[],Y(this).constructor):e.apply(this,t))}return n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&U(n,e),t=[{key:"afterAdd",value:function(){return V(function(){return G(this,function(e){return[2]})})()}},{key:"beforeLoad",value:function(){return V(function(){return G(this,function(e){return[2]})})()}},{key:"load",value:function(){return V(function(){return G(this,function(e){return console.log(this.app),this.app.pm.get("workflow").registerInstruction("dateCalculation",z),[2]})}).call(this)}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(n.prototype,t),n}($(e.Plugin)),Q=H}(),x}()});
@@ -14,11 +14,11 @@ module.exports = {
14
14
  "@ant-design/icons": "5.6.1",
15
15
  "@formily/react": "2.3.7",
16
16
  "@formily/antd-v5": "1.2.3",
17
- "@nocobase/client": "2.1.0-alpha.12",
18
- "@nocobase/plugin-workflow": "2.1.0-alpha.12",
19
- "@nocobase/flow-engine": "2.1.0-alpha.12",
17
+ "@nocobase/client": "2.1.0-alpha.14",
18
+ "@nocobase/plugin-workflow": "2.1.0-alpha.14",
19
+ "@nocobase/flow-engine": "2.1.0-alpha.14",
20
20
  "lodash": "4.17.21",
21
21
  "dayjs": "1.11.13",
22
- "@nocobase/utils": "2.1.0-alpha.12",
23
- "@nocobase/server": "2.1.0-alpha.12"
22
+ "@nocobase/utils": "2.1.0-alpha.14",
23
+ "@nocobase/server": "2.1.0-alpha.14"
24
24
  };
@@ -1 +1 @@
1
- {"name":"joi","description":"Object schema validation","version":"17.13.3","repository":"git://github.com/hapijs/joi","main":"lib/index.js","types":"lib/index.d.ts","browser":"dist/joi-browser.min.js","files":["lib/**/*","dist/*"],"keywords":["schema","validation"],"dependencies":{"@hapi/hoek":"^9.3.0","@hapi/topo":"^5.1.0","@sideway/address":"^4.1.5","@sideway/formula":"^3.0.1","@sideway/pinpoint":"^2.0.0"},"devDependencies":{"@hapi/bourne":"2.x.x","@hapi/code":"8.x.x","@hapi/joi-legacy-test":"npm:@hapi/joi@15.x.x","@hapi/lab":"^25.1.3","@types/node":"^14.18.63","typescript":"4.3.x"},"scripts":{"prepublishOnly":"cd browser && npm install && npm run build","test":"lab -t 100 -a @hapi/code -L -Y","test-cov-html":"lab -r html -o coverage.html -a @hapi/code"},"license":"BSD-3-Clause","_lastModified":"2026-03-25T14:12:28.970Z"}
1
+ {"name":"joi","description":"Object schema validation","version":"17.13.3","repository":"git://github.com/hapijs/joi","main":"lib/index.js","types":"lib/index.d.ts","browser":"dist/joi-browser.min.js","files":["lib/**/*","dist/*"],"keywords":["schema","validation"],"dependencies":{"@hapi/hoek":"^9.3.0","@hapi/topo":"^5.1.0","@sideway/address":"^4.1.5","@sideway/formula":"^3.0.1","@sideway/pinpoint":"^2.0.0"},"devDependencies":{"@hapi/bourne":"2.x.x","@hapi/code":"8.x.x","@hapi/joi-legacy-test":"npm:@hapi/joi@15.x.x","@hapi/lab":"^25.1.3","@types/node":"^14.18.63","typescript":"4.3.x"},"scripts":{"prepublishOnly":"cd browser && npm install && npm run build","test":"lab -t 100 -a @hapi/code -L -Y","test-cov-html":"lab -r html -o coverage.html -a @hapi/code"},"license":"BSD-3-Clause","_lastModified":"2026-04-07T15:55:30.812Z"}
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "displayName.zh-CN": "工作流: 日期计算节点",
5
5
  "description": "Used to do date calculation in workflows, such as manipulating, comparing and formatting, etc.",
6
6
  "description.zh-CN": "可用于在工作流中对日期进行操作求值,如加减、比较操作,格式化等。",
7
- "version": "2.1.0-alpha.12",
7
+ "version": "2.1.0-alpha.14",
8
8
  "main": "dist/server/index.js",
9
9
  "devDependencies": {
10
10
  "joi": "^17.13.3",
@@ -27,5 +27,5 @@
27
27
  "Workflow"
28
28
  ],
29
29
  "license": "Apache-2.0",
30
- "gitHead": "f12c4a75470590b1670ce54510b96ef94c2cd7a2"
30
+ "gitHead": "d8735b541de0ff9557bba704de49c799b4962672"
31
31
  }